@localstack/appinspector-ui 1.0.213 → 1.0.215

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.js CHANGED
@@ -2421,7 +2421,7 @@ var init_event_streams = __esm({
2421
2421
  });
2422
2422
 
2423
2423
  // src/pages/spans-list-page.tsx
2424
- import { Box as Box23, Paper as Paper2 } from "@mui/material";
2424
+ import { Box as Box24, Paper as Paper2 } from "@mui/material";
2425
2425
  import { useCallback as useCallback12, useEffect as useEffect28, useMemo as useMemo13, useRef as useRef24, useState as useState24 } from "react";
2426
2426
 
2427
2427
  // src/api/errors.ts
@@ -2636,12 +2636,12 @@ var EmulatorVersionBanner = ({
2636
2636
  };
2637
2637
 
2638
2638
  // src/components/spans-list/spans-list.tsx
2639
- import { Alert as Alert2, Box as Box7, Button as Button4 } from "@mui/material";
2639
+ import { Alert as Alert2, Box as Box8, Button as Button4 } from "@mui/material";
2640
2640
 
2641
2641
  // src/components/spans-list/spans-data-grid.tsx
2642
2642
  import { Close, DeleteForeverOutlined, Search } from "@mui/icons-material";
2643
2643
  import {
2644
- Box as Box6,
2644
+ Box as Box7,
2645
2645
  Button as Button3,
2646
2646
  CircularProgress,
2647
2647
  Grid,
@@ -13115,7 +13115,7 @@ var motion = /* @__PURE__ */ createMotionProxy(function(Component, config) {
13115
13115
  });
13116
13116
 
13117
13117
  // src/components/spans-list/spans-data-grid.tsx
13118
- import { memo as memo8, useCallback as useCallback2, useLayoutEffect as useLayoutEffect3, useMemo as useMemo4, useRef as useRef7, useState as useState7 } from "react";
13118
+ import { memo as memo9, useCallback as useCallback2, useLayoutEffect as useLayoutEffect3, useMemo as useMemo4, useRef as useRef7, useState as useState7 } from "react";
13119
13119
 
13120
13120
  // src/components/cells/responsive-timestamp-cell.tsx
13121
13121
  import { memo as memo3 } from "react";
@@ -13564,7 +13564,11 @@ var RequestIssuesCell = (props) => {
13564
13564
  };
13565
13565
 
13566
13566
  // src/components/cells/service-cell.tsx
13567
- import { Box as Box3, Stack, Typography as Typography3, useTheme } from "@mui/material";
13567
+ import { Box as Box4, useTheme } from "@mui/material";
13568
+ import { memo as memo8 } from "react";
13569
+
13570
+ // src/components/operation-identity/operation-identity.tsx
13571
+ import { Box as Box3, Stack, Typography as Typography3 } from "@mui/material";
13568
13572
  import { memo as memo7 } from "react";
13569
13573
 
13570
13574
  // src/utils/service-display-name.ts
@@ -15613,9 +15617,9 @@ var getServiceIconComponent = (service) => ICONS_MAP[service];
15613
15617
 
15614
15618
  // src/components/aws-service-icon/aws-service-icon.tsx
15615
15619
  import { jsx as jsx125 } from "react/jsx-runtime";
15616
- var sizes = { large: [32, 32], medium: [22, 22], small: [11, 11] };
15620
+ var sizes = { large: [32, 32], medium: [22, 22], small: [16, 16] };
15617
15621
  var AwsServiceIcon = memo6(({ hideTooltip, service, size = "medium", title }) => {
15618
- const [width, height] = sizes[size];
15622
+ const [width, height] = typeof size === "number" ? [size, size] : sizes[size];
15619
15623
  return /* @__PURE__ */ jsx125(
15620
15624
  WrapInComponent,
15621
15625
  {
@@ -15626,46 +15630,104 @@ var AwsServiceIcon = memo6(({ hideTooltip, service, size = "medium", title }) =>
15626
15630
  );
15627
15631
  });
15628
15632
 
15629
- // src/components/cells/service-cell.tsx
15633
+ // src/components/operation-identity/operation-identity.tsx
15630
15634
  import { jsx as jsx126, jsxs as jsxs120 } from "react/jsx-runtime";
15631
- var ServiceCell = memo7(({
15635
+ var RESOURCE_CODE_SX = { backgroundColor: "action.hover", borderRadius: "4px", fontFamily: "monospace", px: "4px" };
15636
+ var OperationIdentity = memo7(({
15637
+ arn = "",
15638
+ children,
15639
+ density,
15640
+ iconSize,
15641
+ label,
15642
+ operation: operation2,
15643
+ resourceName = "",
15644
+ resourcePlaceholder,
15645
+ resourcePrefix,
15646
+ service,
15647
+ sx,
15648
+ tailTestId,
15649
+ testId
15650
+ }) => {
15651
+ const resource = shortResourceName(resourceName, arn);
15652
+ const hasResource = resource !== "" && resource !== "*";
15653
+ const hasOperation = operation2 !== void 0 && operation2 !== "";
15654
+ const stackedIconSize = typeof iconSize === "number" ? iconSize : 32;
15655
+ if (density === "heading") {
15656
+ const isText = typeof children === "string";
15657
+ return /* @__PURE__ */ jsxs120(Box3, { "data-testid": testId, sx: { minWidth: 0, ...sx }, children: [
15658
+ label !== void 0 && /* @__PURE__ */ jsx126(Typography3, { color: "text.secondary", component: "div", sx: { fontSize: 11, fontWeight: 500, letterSpacing: "0.06em", lineHeight: "16px", textTransform: "uppercase" }, children: label }),
15659
+ /* @__PURE__ */ jsxs120(Box3, { sx: { alignItems: "center", columnGap: "10px", display: "flex", minWidth: 0 }, children: [
15660
+ /* @__PURE__ */ jsx126(Box3, { sx: { borderRadius: "6px", flex: "none", lineHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ jsx126(AwsServiceIcon, { hideTooltip: true, service, size: "large" }) }),
15661
+ /* @__PURE__ */ jsxs120(Stack, { sx: { flex: 1, minWidth: 0 }, children: [
15662
+ /* @__PURE__ */ jsxs120(Box3, { sx: { alignItems: "baseline", columnGap: "6px", display: "flex", fontSize: 15, lineHeight: "20px", minWidth: 0 }, children: [
15663
+ /* @__PURE__ */ jsx126(Typography3, { component: "span", noWrap: true, sx: { flex: "0 100 auto", fontWeight: 700, minWidth: "3ch" }, title: getServiceDisplayName(service), variant: "inherit", children: getServiceDisplayName(service) }),
15664
+ hasOperation && /* @__PURE__ */ jsx126(Typography3, { component: "span", "data-testid": SERVICE_NODE_OPERATION_NAME_TEST_ID, noWrap: true, sx: { flex: "0 1 auto", minWidth: 0 }, variant: "inherit", children: operation2 })
15665
+ ] }),
15666
+ (hasResource || resourcePlaceholder !== void 0 || children !== void 0) && /* @__PURE__ */ jsxs120(Box3, { sx: { alignItems: "center", color: "text.secondary", columnGap: "6px", display: "flex", flexWrap: isText ? "nowrap" : "wrap", fontSize: 12, lineHeight: "18px", minWidth: 0, rowGap: "4px" }, children: [
15667
+ hasResource && /* @__PURE__ */ jsx126(Typography3, { component: "span", "data-testid": SERVICE_NODE_SERVICE_NAME_TEST_ID, noWrap: true, sx: { ...RESOURCE_CODE_SX, flex: "0 3 auto", minWidth: "3ch" }, title: resourceName || arn, variant: "inherit", children: resource }),
15668
+ !hasResource && resourcePlaceholder !== void 0 && /* @__PURE__ */ jsx126(Box3, { component: "span", sx: { color: "text.disabled", flex: "none" }, children: resourcePlaceholder }),
15669
+ (hasResource || resourcePlaceholder !== void 0) && isText && /* @__PURE__ */ jsx126(Box3, { "aria-hidden": true, component: "span", sx: { color: "text.disabled", flex: "none" }, children: "\xB7" }),
15670
+ isText ? /* @__PURE__ */ jsx126(Typography3, { component: "span", "data-testid": tailTestId, noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: children, variant: "inherit", children }) : children
15671
+ ] })
15672
+ ] })
15673
+ ] })
15674
+ ] });
15675
+ }
15676
+ if (density === "row") {
15677
+ return /* @__PURE__ */ jsxs120(Box3, { "data-testid": testId, sx: { alignItems: "center", columnGap: "6px", display: "flex", minWidth: 0, ...sx }, children: [
15678
+ /* @__PURE__ */ jsx126(Box3, { sx: { borderRadius: "4px", display: "flex", flex: "none", overflow: "hidden" }, children: /* @__PURE__ */ jsx126(AwsServiceIcon, { hideTooltip: true, service, size: iconSize ?? "small" }) }),
15679
+ /* @__PURE__ */ jsx126(Typography3, { component: "span", noWrap: true, sx: { flex: "0 1 auto", fontWeight: 700, minWidth: 0 }, variant: "inherit", children: getServiceDisplayName(service) }),
15680
+ hasOperation && /* @__PURE__ */ jsx126(Typography3, { component: "span", "data-testid": SERVICE_NODE_OPERATION_NAME_TEST_ID, noWrap: true, sx: { flex: "0 1 auto", minWidth: 0 }, variant: "inherit", children: operation2 }),
15681
+ children,
15682
+ hasResource && /* @__PURE__ */ jsx126(Typography3, { color: "text.secondary", component: "span", "data-testid": SERVICE_NODE_SERVICE_NAME_TEST_ID, noWrap: true, sx: { ...RESOURCE_CODE_SX, flex: "0 1 auto", fontSize: "0.875em", minWidth: 0 }, title: resourceName || arn, children: resource })
15683
+ ] });
15684
+ }
15685
+ return /* @__PURE__ */ jsxs120(Box3, { "data-testid": testId, sx: { alignItems: "center", display: "flex", gap: "8px", minWidth: 0, ...sx }, children: [
15686
+ /* @__PURE__ */ jsx126(Box3, { sx: { borderRadius: `${String(Math.round(stackedIconSize / 5))}px`, flexShrink: 0, lineHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ jsx126(AwsServiceIcon, { hideTooltip: true, service, size: stackedIconSize }) }),
15687
+ /* @__PURE__ */ jsxs120(Stack, { sx: { minWidth: 0 }, children: [
15688
+ /* @__PURE__ */ jsxs120(Box3, { sx: { alignItems: "baseline", columnGap: "6px", display: "flex", minWidth: 0 }, children: [
15689
+ /* @__PURE__ */ jsx126(Typography3, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 700, lineHeight: "18px" }, variant: "body2", children: getServiceDisplayName(service) }),
15690
+ hasOperation && /* @__PURE__ */ jsx126(Typography3, { component: "span", "data-testid": SERVICE_NODE_OPERATION_NAME_TEST_ID, noWrap: true, sx: { flex: "0 1 auto", lineHeight: "18px", minWidth: 0 }, variant: "body2", children: operation2 })
15691
+ ] }),
15692
+ (hasResource || resourcePlaceholder !== void 0 || resourcePrefix !== void 0) && /* @__PURE__ */ jsxs120(Box3, { sx: { alignItems: "center", columnGap: "4px", display: "flex", height: 14, minWidth: 0 }, children: [
15693
+ resourcePrefix,
15694
+ hasResource && /* @__PURE__ */ jsx126(Typography3, { color: "text.secondary", "data-testid": SERVICE_NODE_SERVICE_NAME_TEST_ID, noWrap: true, sx: { ...RESOURCE_CODE_SX, lineHeight: "14px", minWidth: 0 }, title: resourceName || arn, variant: "caption", children: resource }),
15695
+ !hasResource && resourcePlaceholder !== void 0 && /* @__PURE__ */ jsx126(Typography3, { color: "text.disabled", sx: { lineHeight: "14px" }, variant: "caption", children: resourcePlaceholder })
15696
+ ] })
15697
+ ] })
15698
+ ] });
15699
+ });
15700
+ OperationIdentity.displayName = "OperationIdentity";
15701
+
15702
+ // src/components/cells/service-cell.tsx
15703
+ import { jsx as jsx127 } from "react/jsx-runtime";
15704
+ var ServiceCell = memo8(({
15705
+ arn,
15706
+ operation: operation2,
15632
15707
  resource,
15633
15708
  selected,
15634
- service,
15635
- showIcon = true
15709
+ service
15636
15710
  }) => {
15637
15711
  const theme = useTheme();
15638
- return /* @__PURE__ */ jsx126(Box3, { sx: { ml: -1, width: "100%" }, children: /* @__PURE__ */ jsxs120(
15639
- Box3,
15712
+ return /* @__PURE__ */ jsx127(Box4, { sx: { ml: -1, width: "100%" }, children: /* @__PURE__ */ jsx127(
15713
+ OperationIdentity,
15640
15714
  {
15715
+ arn,
15716
+ density: "stacked",
15717
+ iconSize: 27,
15718
+ operation: operation2,
15719
+ resourceName: resource,
15720
+ resourcePlaceholder: "\u2014",
15721
+ service,
15641
15722
  sx: {
15642
- alignItems: "center",
15643
15723
  borderRadius: 1,
15644
15724
  display: "inline-flex",
15645
- gap: "8px",
15646
15725
  maxWidth: "100%",
15647
15726
  outline: selected ? `2px solid ${theme.palette.primary.main}` : "none",
15648
15727
  overflow: "hidden",
15649
15728
  px: "8px",
15650
15729
  py: "4px"
15651
- },
15652
- children: [
15653
- showIcon && /* @__PURE__ */ jsx126(Box3, { sx: { borderRadius: "4px", flexShrink: 0, lineHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ jsx126(AwsServiceIcon, { hideTooltip: true, service, size: "medium" }) }),
15654
- /* @__PURE__ */ jsxs120(Stack, { sx: { minWidth: 0 }, children: [
15655
- /* @__PURE__ */ jsx126(Typography3, { noWrap: true, sx: { fontWeight: 700, lineHeight: 1.25 }, variant: "body2", children: getServiceDisplayName(service) }),
15656
- resource ? /* @__PURE__ */ jsx126(
15657
- Typography3,
15658
- {
15659
- color: "text.secondary",
15660
- "data-testid": SERVICE_NODE_SERVICE_NAME_TEST_ID,
15661
- noWrap: true,
15662
- sx: { lineHeight: 1.2 },
15663
- variant: "caption",
15664
- children: resource
15665
- }
15666
- ) : void 0
15667
- ] })
15668
- ]
15730
+ }
15669
15731
  }
15670
15732
  ) });
15671
15733
  });
@@ -15673,9 +15735,9 @@ ServiceCell.displayName = "ServiceCell";
15673
15735
 
15674
15736
  // src/components/spans-list/span-count-badge.tsx
15675
15737
  import { InfoOutlined, WarningAmberOutlined } from "@mui/icons-material";
15676
- import { Box as Box4, Button, Divider as Divider2, IconButton, Popover, Skeleton, Tooltip as Tooltip4, Typography as Typography4 } from "@mui/material";
15738
+ import { Box as Box5, Button, Divider as Divider2, IconButton, Popover, Skeleton, Tooltip as Tooltip4, Typography as Typography4 } from "@mui/material";
15677
15739
  import { useState as useState5 } from "react";
15678
- import { Fragment as Fragment4, jsx as jsx127, jsxs as jsxs121 } from "react/jsx-runtime";
15740
+ import { Fragment as Fragment4, jsx as jsx128, jsxs as jsxs121 } from "react/jsx-runtime";
15679
15741
  var resolveBindingLimit = (systemLimit, licenseLimit) => {
15680
15742
  const numericLimits = [systemLimit, licenseLimit].filter((l2) => typeof l2 === "number");
15681
15743
  if (numericLimits.length > 0) return Math.min(...numericLimits);
@@ -15688,31 +15750,31 @@ var fmtLimit = (value) => {
15688
15750
  if (value === "unlimited") return "Unlimited";
15689
15751
  return fmt(value);
15690
15752
  };
15691
- var StatRow = ({ label, unit, value }) => /* @__PURE__ */ jsxs121(Box4, { sx: { alignItems: "baseline", display: "flex", justifyContent: "space-between", minWidth: 220 }, children: [
15692
- /* @__PURE__ */ jsx127(Typography4, { color: "text.secondary", sx: { mr: 4 }, variant: "caption", children: label }),
15693
- /* @__PURE__ */ jsxs121(Box4, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
15694
- /* @__PURE__ */ jsx127(Typography4, { fontWeight: 600, variant: "body2", children: fmtLimit(value) }),
15695
- value !== void 0 && /* @__PURE__ */ jsx127(Typography4, { color: "text.secondary", variant: "caption", children: value === 1 ? unit : `${unit}s` })
15753
+ var StatRow = ({ label, unit, value }) => /* @__PURE__ */ jsxs121(Box5, { sx: { alignItems: "baseline", display: "flex", justifyContent: "space-between", minWidth: 220 }, children: [
15754
+ /* @__PURE__ */ jsx128(Typography4, { color: "text.secondary", sx: { mr: 4 }, variant: "caption", children: label }),
15755
+ /* @__PURE__ */ jsxs121(Box5, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
15756
+ /* @__PURE__ */ jsx128(Typography4, { fontWeight: 600, variant: "body2", children: fmtLimit(value) }),
15757
+ value !== void 0 && /* @__PURE__ */ jsx128(Typography4, { color: "text.secondary", variant: "caption", children: value === 1 ? unit : `${unit}s` })
15696
15758
  ] })
15697
15759
  ] });
15698
15760
  var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) => {
15699
15761
  const [anchorElement, setAnchorElement] = useState5();
15700
15762
  const bindingLimit = resolveBindingLimit(systemLimit, licenseLimit);
15701
15763
  if (totalCount === void 0 && bindingLimit === void 0) {
15702
- return /* @__PURE__ */ jsx127(Fragment4, {});
15764
+ return /* @__PURE__ */ jsx128(Fragment4, {});
15703
15765
  }
15704
15766
  if (visibleCount !== void 0) totalCount = Math.max(totalCount ?? 0, visibleCount);
15705
15767
  const isLoading = totalCount === void 0;
15706
15768
  const isOpen = anchorElement !== void 0;
15707
15769
  const systemLimitReached = typeof systemLimit === "number" && totalCount !== void 0 && totalCount >= systemLimit;
15708
15770
  const licenseLimitReached = typeof licenseLimit === "number" && totalCount !== void 0 && totalCount >= licenseLimit;
15709
- return /* @__PURE__ */ jsxs121(Box4, { "data-testid": SPAN_COUNT_BADGE_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 0.25 }, children: [
15710
- isLoading ? /* @__PURE__ */ jsx127(Skeleton, { sx: { minWidth: 120 } }) : /* @__PURE__ */ jsxs121(Box4, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
15711
- /* @__PURE__ */ jsx127(Typography4, { color: "text.secondary", variant: "caption", children: "Showing" }),
15712
- /* @__PURE__ */ jsx127(Typography4, { variant: "body2", children: visibleCount === void 0 ? "\u2014" : /* @__PURE__ */ jsx127(AnimatedCount, { value: visibleCount }) }),
15713
- /* @__PURE__ */ jsx127(Typography4, { color: "text.secondary", variant: "caption", children: visibleCount === 1 ? "request" : "requests" })
15771
+ return /* @__PURE__ */ jsxs121(Box5, { "data-testid": SPAN_COUNT_BADGE_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 0.25 }, children: [
15772
+ isLoading ? /* @__PURE__ */ jsx128(Skeleton, { sx: { minWidth: 120 } }) : /* @__PURE__ */ jsxs121(Box5, { sx: { alignItems: "baseline", display: "flex", gap: 0.5 }, children: [
15773
+ /* @__PURE__ */ jsx128(Typography4, { color: "text.secondary", variant: "caption", children: "Showing" }),
15774
+ /* @__PURE__ */ jsx128(Typography4, { variant: "body2", children: visibleCount === void 0 ? "\u2014" : /* @__PURE__ */ jsx128(AnimatedCount, { value: visibleCount }) }),
15775
+ /* @__PURE__ */ jsx128(Typography4, { color: "text.secondary", variant: "caption", children: visibleCount === 1 ? "request" : "requests" })
15714
15776
  ] }),
15715
- /* @__PURE__ */ jsx127(Tooltip4, { title: "Count details", children: /* @__PURE__ */ jsx127(
15777
+ /* @__PURE__ */ jsx128(Tooltip4, { title: "Count details", children: /* @__PURE__ */ jsx128(
15716
15778
  IconButton,
15717
15779
  {
15718
15780
  "aria-describedby": isOpen ? "count-popover" : void 0,
@@ -15721,10 +15783,10 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15721
15783
  },
15722
15784
  size: "small",
15723
15785
  sx: { color: systemLimitReached || licenseLimitReached ? "warning.main" : "text.disabled" },
15724
- children: systemLimitReached || licenseLimitReached ? /* @__PURE__ */ jsx127(WarningAmberOutlined, { sx: { fontSize: 14 } }) : /* @__PURE__ */ jsx127(InfoOutlined, { sx: { fontSize: 14 } })
15786
+ children: systemLimitReached || licenseLimitReached ? /* @__PURE__ */ jsx128(WarningAmberOutlined, { sx: { fontSize: 14 } }) : /* @__PURE__ */ jsx128(InfoOutlined, { sx: { fontSize: 14 } })
15725
15787
  }
15726
15788
  ) }),
15727
- /* @__PURE__ */ jsx127(
15789
+ /* @__PURE__ */ jsx128(
15728
15790
  Popover,
15729
15791
  {
15730
15792
  anchorEl: anchorElement,
@@ -15735,58 +15797,58 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15735
15797
  },
15736
15798
  open: isOpen,
15737
15799
  transformOrigin: { horizontal: "right", vertical: "top" },
15738
- children: /* @__PURE__ */ jsxs121(Box4, { sx: { minWidth: 240, p: 2 }, children: [
15739
- /* @__PURE__ */ jsx127(Typography4, { fontWeight: 700, variant: "body2", children: "Storage" }),
15740
- /* @__PURE__ */ jsx127(Typography4, { color: "text.secondary", sx: { mt: 0.25 }, variant: "caption", children: "Each request groups the operations it caused. Limits count operations." }),
15741
- /* @__PURE__ */ jsxs121(Box4, { sx: { display: "flex", flexDirection: "column", gap: 0.75, mt: 1.5 }, children: [
15742
- /* @__PURE__ */ jsx127(
15800
+ children: /* @__PURE__ */ jsxs121(Box5, { sx: { minWidth: 240, p: 2 }, children: [
15801
+ /* @__PURE__ */ jsx128(Typography4, { fontWeight: 700, variant: "body2", children: "Storage" }),
15802
+ /* @__PURE__ */ jsx128(Typography4, { color: "text.secondary", sx: { mt: 0.25 }, variant: "caption", children: "Each request groups the operations it caused. Limits count operations." }),
15803
+ /* @__PURE__ */ jsxs121(Box5, { sx: { display: "flex", flexDirection: "column", gap: 0.75, mt: 1.5 }, children: [
15804
+ /* @__PURE__ */ jsx128(
15743
15805
  StatRow,
15744
15806
  {
15745
- label: /* @__PURE__ */ jsx127(Tooltip4, { placement: "left", title: "The number of requests currently listed.", children: /* @__PURE__ */ jsx127(Box4, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Requests shown" }) }),
15807
+ label: /* @__PURE__ */ jsx128(Tooltip4, { placement: "left", title: "The number of requests currently listed.", children: /* @__PURE__ */ jsx128(Box5, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Requests shown" }) }),
15746
15808
  unit: "request",
15747
15809
  value: visibleCount
15748
15810
  }
15749
15811
  ),
15750
- /* @__PURE__ */ jsx127(
15812
+ /* @__PURE__ */ jsx128(
15751
15813
  StatRow,
15752
15814
  {
15753
- label: /* @__PURE__ */ jsx127(Tooltip4, { placement: "left", title: "The number of operations stored, including the downstream operations of each request.", children: /* @__PURE__ */ jsx127(Box4, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Operations stored" }) }),
15815
+ label: /* @__PURE__ */ jsx128(Tooltip4, { placement: "left", title: "The number of operations stored, including the downstream operations of each request.", children: /* @__PURE__ */ jsx128(Box5, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "Operations stored" }) }),
15754
15816
  unit: "operation",
15755
15817
  value: totalCount
15756
15818
  }
15757
15819
  )
15758
15820
  ] }),
15759
15821
  (systemLimitReached || licenseLimit !== void 0 && licenseLimit !== "unlimited") && /* @__PURE__ */ jsxs121(Fragment4, { children: [
15760
- /* @__PURE__ */ jsx127(Divider2, { sx: { my: 1.5 } }),
15761
- /* @__PURE__ */ jsx127(Typography4, { color: "text.secondary", fontWeight: 600, variant: "caption", children: "Limits" }),
15762
- /* @__PURE__ */ jsx127(Typography4, { color: "text.secondary", sx: { display: "block", mb: 1.5, mt: 0.25 }, variant: "caption", children: "Limits restrict the total number of operations that can be stored." }),
15763
- /* @__PURE__ */ jsxs121(Box4, { sx: { display: "flex", flexDirection: "column", gap: 0.75 }, children: [
15764
- licenseLimit !== void 0 && licenseLimit !== "unlimited" && /* @__PURE__ */ jsx127(
15822
+ /* @__PURE__ */ jsx128(Divider2, { sx: { my: 1.5 } }),
15823
+ /* @__PURE__ */ jsx128(Typography4, { color: "text.secondary", fontWeight: 600, variant: "caption", children: "Limits" }),
15824
+ /* @__PURE__ */ jsx128(Typography4, { color: "text.secondary", sx: { display: "block", mb: 1.5, mt: 0.25 }, variant: "caption", children: "Limits restrict the total number of operations that can be stored." }),
15825
+ /* @__PURE__ */ jsxs121(Box5, { sx: { display: "flex", flexDirection: "column", gap: 0.75 }, children: [
15826
+ licenseLimit !== void 0 && licenseLimit !== "unlimited" && /* @__PURE__ */ jsx128(
15765
15827
  StatRow,
15766
15828
  {
15767
- label: /* @__PURE__ */ jsx127(Tooltip4, { placement: "left", title: "The maximum number of operations allowed by your current license.", children: /* @__PURE__ */ jsx127(Box4, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "License limit" }) }),
15829
+ label: /* @__PURE__ */ jsx128(Tooltip4, { placement: "left", title: "The maximum number of operations allowed by your current license.", children: /* @__PURE__ */ jsx128(Box5, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "License limit" }) }),
15768
15830
  unit: "operation",
15769
15831
  value: licenseLimit
15770
15832
  }
15771
15833
  ),
15772
- systemLimitReached && /* @__PURE__ */ jsx127(
15834
+ systemLimitReached && /* @__PURE__ */ jsx128(
15773
15835
  StatRow,
15774
15836
  {
15775
- label: /* @__PURE__ */ jsx127(Tooltip4, { placement: "left", title: "The maximum number of operations that can be stored in the system.", children: /* @__PURE__ */ jsx127(Box4, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "System limit" }) }),
15837
+ label: /* @__PURE__ */ jsx128(Tooltip4, { placement: "left", title: "The maximum number of operations that can be stored in the system.", children: /* @__PURE__ */ jsx128(Box5, { component: "span", sx: { borderBottom: "1px dashed", borderColor: "text.secondary", cursor: "help" }, children: "System limit" }) }),
15776
15838
  unit: "operation",
15777
15839
  value: systemLimit
15778
15840
  }
15779
15841
  )
15780
15842
  ] })
15781
15843
  ] }),
15782
- (systemLimitReached || licenseLimitReached) && /* @__PURE__ */ jsxs121(Box4, { sx: { display: "flex", flexDirection: "column", gap: 1, mt: 1.5 }, children: [
15783
- licenseLimitReached && /* @__PURE__ */ jsxs121(Box4, { sx: { backgroundColor: "warning.main", borderRadius: 1, p: 1.5 }, children: [
15784
- /* @__PURE__ */ jsxs121(Box4, { sx: { alignItems: "flex-start", display: "flex", gap: 0.75, mb: 0.75 }, children: [
15785
- /* @__PURE__ */ jsx127(WarningAmberOutlined, { sx: { color: "warning.contrastText", fontSize: 14, mt: "1px" } }),
15786
- /* @__PURE__ */ jsx127(Typography4, { color: "warning.contrastText", fontWeight: 600, variant: "caption", children: "License limit reached" })
15844
+ (systemLimitReached || licenseLimitReached) && /* @__PURE__ */ jsxs121(Box5, { sx: { display: "flex", flexDirection: "column", gap: 1, mt: 1.5 }, children: [
15845
+ licenseLimitReached && /* @__PURE__ */ jsxs121(Box5, { sx: { backgroundColor: "warning.main", borderRadius: 1, p: 1.5 }, children: [
15846
+ /* @__PURE__ */ jsxs121(Box5, { sx: { alignItems: "flex-start", display: "flex", gap: 0.75, mb: 0.75 }, children: [
15847
+ /* @__PURE__ */ jsx128(WarningAmberOutlined, { sx: { color: "warning.contrastText", fontSize: 14, mt: "1px" } }),
15848
+ /* @__PURE__ */ jsx128(Typography4, { color: "warning.contrastText", fontWeight: 600, variant: "caption", children: "License limit reached" })
15787
15849
  ] }),
15788
- /* @__PURE__ */ jsx127(Typography4, { color: "warning.contrastText", sx: { display: "block", mb: 1 }, variant: "caption", children: "Newer operations are being dropped. Upgrade your license to increase the retention limit." }),
15789
- /* @__PURE__ */ jsx127(
15850
+ /* @__PURE__ */ jsx128(Typography4, { color: "warning.contrastText", sx: { display: "block", mb: 1 }, variant: "caption", children: "Newer operations are being dropped. Upgrade your license to increase the retention limit." }),
15851
+ /* @__PURE__ */ jsx128(
15790
15852
  Button,
15791
15853
  {
15792
15854
  color: "inherit",
@@ -15799,9 +15861,9 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15799
15861
  }
15800
15862
  )
15801
15863
  ] }),
15802
- systemLimitReached && !licenseLimitReached && /* @__PURE__ */ jsxs121(Box4, { sx: { alignItems: "flex-start", display: "flex", gap: 0.75 }, children: [
15803
- /* @__PURE__ */ jsx127(WarningAmberOutlined, { color: "warning", sx: { fontSize: 14, mt: "1px" } }),
15804
- /* @__PURE__ */ jsx127(Typography4, { color: "warning.main", variant: "caption", children: "System limit reached \u2014 newer operations are being dropped." })
15864
+ systemLimitReached && !licenseLimitReached && /* @__PURE__ */ jsxs121(Box5, { sx: { alignItems: "flex-start", display: "flex", gap: 0.75 }, children: [
15865
+ /* @__PURE__ */ jsx128(WarningAmberOutlined, { color: "warning", sx: { fontSize: 14, mt: "1px" } }),
15866
+ /* @__PURE__ */ jsx128(Typography4, { color: "warning.main", variant: "caption", children: "System limit reached \u2014 newer operations are being dropped." })
15805
15867
  ] })
15806
15868
  ] })
15807
15869
  ] })
@@ -15813,7 +15875,7 @@ var SpanCountBadge = ({ licenseLimit, systemLimit, totalCount, visibleCount }) =
15813
15875
  // src/components/spans-list/spans-filter-bar.tsx
15814
15876
  import { ArrowDropDown, Cancel as Cancel2, FilterList, GppMaybe as GppMaybe2, Visibility, VisibilityOff } from "@mui/icons-material";
15815
15877
  import {
15816
- Box as Box5,
15878
+ Box as Box6,
15817
15879
  Button as Button2,
15818
15880
  Checkbox,
15819
15881
  Divider as Divider3,
@@ -15837,7 +15899,7 @@ var THEMED_SCROLLBARS = {
15837
15899
  };
15838
15900
 
15839
15901
  // src/components/spans-list/spans-filter-bar.tsx
15840
- import { Fragment as Fragment5, jsx as jsx128, jsxs as jsxs122 } from "react/jsx-runtime";
15902
+ import { Fragment as Fragment5, jsx as jsx129, jsxs as jsxs122 } from "react/jsx-runtime";
15841
15903
  var SHOW_EXCLUSIONS = false;
15842
15904
  var SHOW_PRODUCER = false;
15843
15905
  var toggle = (list, item) => list.includes(item) ? list.filter((other) => other !== item) : [...list, item];
@@ -15858,12 +15920,12 @@ var FilterDropdown = ({ "data-testid": testId, label, onChange, options, value }
15858
15920
  {
15859
15921
  color: hasSelection ? "primary" : "inherit",
15860
15922
  "data-testid": testId,
15861
- endIcon: /* @__PURE__ */ jsx128(ArrowDropDown, {}),
15923
+ endIcon: /* @__PURE__ */ jsx129(ArrowDropDown, {}),
15862
15924
  onClick: (event) => {
15863
15925
  setAnchorElement(event.currentTarget);
15864
15926
  },
15865
15927
  size: "small",
15866
- startIcon: /* @__PURE__ */ jsx128(FilterList, { sx: { fontSize: "16px !important" } }),
15928
+ startIcon: /* @__PURE__ */ jsx129(FilterList, { sx: { fontSize: "16px !important" } }),
15867
15929
  sx: {
15868
15930
  "& .MuiButton-endIcon": { ml: 0.25 },
15869
15931
  "color": hasSelection ? "primary.main" : "text.secondary",
@@ -15874,8 +15936,8 @@ var FilterDropdown = ({ "data-testid": testId, label, onChange, options, value }
15874
15936
  variant: hasSelection ? "outlined" : "text",
15875
15937
  children: [
15876
15938
  label,
15877
- hasSelection && /* @__PURE__ */ jsx128(
15878
- Box5,
15939
+ hasSelection && /* @__PURE__ */ jsx129(
15940
+ Box6,
15879
15941
  {
15880
15942
  component: "span",
15881
15943
  sx: {
@@ -15905,8 +15967,8 @@ var FilterDropdown = ({ "data-testid": testId, label, onChange, options, value }
15905
15967
  open,
15906
15968
  slotProps: { paper: { sx: { ...THEMED_SCROLLBARS, maxHeight: 320, minWidth: 200 } } },
15907
15969
  children: [
15908
- /* @__PURE__ */ jsx128(ListSubheader, { sx: { fontSize: "0.7rem", letterSpacing: "0.08em", lineHeight: "2rem", textTransform: "uppercase" }, children: label }),
15909
- options.length === 0 && /* @__PURE__ */ jsx128(MenuItem, { disabled: true, children: /* @__PURE__ */ jsx128(Typography5, { color: "text.secondary", variant: "body2", children: "No options available" }) }),
15970
+ /* @__PURE__ */ jsx129(ListSubheader, { sx: { fontSize: "0.7rem", letterSpacing: "0.08em", lineHeight: "2rem", textTransform: "uppercase" }, children: label }),
15971
+ options.length === 0 && /* @__PURE__ */ jsx129(MenuItem, { disabled: true, children: /* @__PURE__ */ jsx129(Typography5, { color: "text.secondary", variant: "body2", children: "No options available" }) }),
15910
15972
  options.map((option) => /* @__PURE__ */ jsxs122(
15911
15973
  MenuItem,
15912
15974
  {
@@ -15915,7 +15977,7 @@ var FilterDropdown = ({ "data-testid": testId, label, onChange, options, value }
15915
15977
  handleToggle(option.value);
15916
15978
  },
15917
15979
  children: [
15918
- /* @__PURE__ */ jsx128(
15980
+ /* @__PURE__ */ jsx129(
15919
15981
  Checkbox,
15920
15982
  {
15921
15983
  checked: value.included.includes(option.value),
@@ -15923,16 +15985,16 @@ var FilterDropdown = ({ "data-testid": testId, label, onChange, options, value }
15923
15985
  sx: { mr: 1, p: 0.25 }
15924
15986
  }
15925
15987
  ),
15926
- !!option.serviceCode && /* @__PURE__ */ jsx128(Box5, { sx: { borderRadius: "4px", flexShrink: 0, lineHeight: 0, mr: 1, overflow: "hidden" }, children: /* @__PURE__ */ jsx128(AwsServiceIcon, { hideTooltip: true, service: option.serviceCode, size: "medium" }) }),
15927
- /* @__PURE__ */ jsx128(
15988
+ !!option.serviceCode && /* @__PURE__ */ jsx129(Box6, { sx: { borderRadius: "4px", flexShrink: 0, lineHeight: 0, mr: 1, overflow: "hidden" }, children: /* @__PURE__ */ jsx129(AwsServiceIcon, { hideTooltip: true, service: option.serviceCode, size: "medium" }) }),
15989
+ /* @__PURE__ */ jsx129(
15928
15990
  ListItemText,
15929
15991
  {
15930
15992
  primary: option.label,
15931
15993
  primaryTypographyProps: { variant: "body2" }
15932
15994
  }
15933
15995
  ),
15934
- /* @__PURE__ */ jsx128(Typography5, { color: "text.secondary", sx: { ml: 2 }, variant: "caption", children: /* @__PURE__ */ jsx128(AnimatedCount, { value: option.count }) }),
15935
- SHOW_EXCLUSIONS && /* @__PURE__ */ jsx128(
15996
+ /* @__PURE__ */ jsx129(Typography5, { color: "text.secondary", sx: { ml: 2 }, variant: "caption", children: /* @__PURE__ */ jsx129(AnimatedCount, { value: option.count }) }),
15997
+ SHOW_EXCLUSIONS && /* @__PURE__ */ jsx129(
15936
15998
  IconButton2,
15937
15999
  {
15938
16000
  "aria-label": value.excluded.includes(option.value) ? `Show ${option.label}` : `Hide ${option.label}`,
@@ -15942,7 +16004,7 @@ var FilterDropdown = ({ "data-testid": testId, label, onChange, options, value }
15942
16004
  },
15943
16005
  size: "small",
15944
16006
  sx: { ml: 0.5, p: 0.25 },
15945
- children: value.excluded.includes(option.value) ? /* @__PURE__ */ jsx128(VisibilityOff, { sx: { fontSize: 14 } }) : /* @__PURE__ */ jsx128(Visibility, { sx: { fontSize: 14 } })
16007
+ children: value.excluded.includes(option.value) ? /* @__PURE__ */ jsx129(VisibilityOff, { sx: { fontSize: 14 } }) : /* @__PURE__ */ jsx129(Visibility, { sx: { fontSize: 14 } })
15946
16008
  }
15947
16009
  )
15948
16010
  ]
@@ -15950,15 +16012,15 @@ var FilterDropdown = ({ "data-testid": testId, label, onChange, options, value }
15950
16012
  option.value
15951
16013
  )),
15952
16014
  hasSelection && /* @__PURE__ */ jsxs122(Fragment5, { children: [
15953
- /* @__PURE__ */ jsx128(Divider3, {}),
15954
- /* @__PURE__ */ jsx128(
16015
+ /* @__PURE__ */ jsx129(Divider3, {}),
16016
+ /* @__PURE__ */ jsx129(
15955
16017
  MenuItem,
15956
16018
  {
15957
16019
  dense: true,
15958
16020
  onClick: () => {
15959
16021
  onChange({ excluded: [], included: [] });
15960
16022
  },
15961
- children: /* @__PURE__ */ jsx128(Typography5, { color: "text.secondary", sx: { pl: 4 }, variant: "body2", children: "Clear" })
16023
+ children: /* @__PURE__ */ jsx129(Typography5, { color: "text.secondary", sx: { pl: 4 }, variant: "body2", children: "Clear" })
15962
16024
  }
15963
16025
  )
15964
16026
  ] })
@@ -15967,7 +16029,7 @@ var FilterDropdown = ({ "data-testid": testId, label, onChange, options, value }
15967
16029
  )
15968
16030
  ] });
15969
16031
  };
15970
- var StatusCount = ({ count: count2, "data-testid": testId }) => /* @__PURE__ */ jsx128(Typography5, { color: "text.secondary", component: "span", "data-testid": testId, sx: { ml: 1 }, variant: "caption", children: /* @__PURE__ */ jsx128(AnimatedCount, { value: count2 }) });
16032
+ var StatusCount = ({ count: count2, "data-testid": testId }) => /* @__PURE__ */ jsx129(Typography5, { color: "text.secondary", component: "span", "data-testid": testId, sx: { ml: 1 }, variant: "caption", children: /* @__PURE__ */ jsx129(AnimatedCount, { value: count2 }) });
15971
16033
  var StatusFilter = ({ counts, onChange, value }) => {
15972
16034
  const selected = value.included.length === 0 ? "all" : value.included.length === 1 ? value.included[0] : void 0;
15973
16035
  return /* @__PURE__ */ jsxs122(
@@ -15985,17 +16047,17 @@ var StatusFilter = ({ counts, onChange, value }) => {
15985
16047
  children: [
15986
16048
  /* @__PURE__ */ jsxs122(ToggleButton, { value: "all", children: [
15987
16049
  "All",
15988
- /* @__PURE__ */ jsx128(StatusCount, { count: counts.all })
16050
+ /* @__PURE__ */ jsx129(StatusCount, { count: counts.all })
15989
16051
  ] }),
15990
16052
  /* @__PURE__ */ jsxs122(ToggleButton, { value: "error", children: [
15991
- /* @__PURE__ */ jsx128(Cancel2, { sx: { color: "error.main", fontSize: 16 } }),
16053
+ /* @__PURE__ */ jsx129(Cancel2, { sx: { color: "error.main", fontSize: 16 } }),
15992
16054
  "Errors",
15993
- /* @__PURE__ */ jsx128(StatusCount, { count: counts.error, "data-testid": ERROR_COUNT_TEST_ID })
16055
+ /* @__PURE__ */ jsx129(StatusCount, { count: counts.error, "data-testid": ERROR_COUNT_TEST_ID })
15994
16056
  ] }),
15995
16057
  /* @__PURE__ */ jsxs122(ToggleButton, { value: "warning", children: [
15996
- /* @__PURE__ */ jsx128(GppMaybe2, { sx: { color: "warning.main", fontSize: 16 } }),
16058
+ /* @__PURE__ */ jsx129(GppMaybe2, { sx: { color: "warning.main", fontSize: 16 } }),
15997
16059
  "Warnings",
15998
- /* @__PURE__ */ jsx128(StatusCount, { count: counts.warning, "data-testid": WARNING_COUNT_TEST_ID })
16060
+ /* @__PURE__ */ jsx129(StatusCount, { count: counts.warning, "data-testid": WARNING_COUNT_TEST_ID })
15999
16061
  ] })
16000
16062
  ]
16001
16063
  }
@@ -16007,7 +16069,7 @@ var SpansFilterBar = ({ facets, onQueryChange, query: query2, totalCount }) => {
16007
16069
  const value = getQueryValues(query2, key);
16008
16070
  const loaded = new Set(facetValues.map((facet) => facet.value));
16009
16071
  const missing = [...value.included, ...value.excluded].filter((item) => !loaded.has(item)).map((item) => ({ count: 0, value: item }));
16010
- return /* @__PURE__ */ jsx128(
16072
+ return /* @__PURE__ */ jsx129(
16011
16073
  FilterDropdown,
16012
16074
  {
16013
16075
  "data-testid": testId,
@@ -16023,7 +16085,7 @@ var SpansFilterBar = ({ facets, onQueryChange, query: query2, totalCount }) => {
16023
16085
  return (
16024
16086
  // Its controls wrap as items of the parent's controls row.
16025
16087
  /* @__PURE__ */ jsxs122(Fragment5, { children: [
16026
- /* @__PURE__ */ jsx128(
16088
+ /* @__PURE__ */ jsx129(
16027
16089
  StatusFilter,
16028
16090
  {
16029
16091
  counts: { all: totalCount, error: issueCount("error"), warning: issueCount("warning") },
@@ -16040,7 +16102,7 @@ var SpansFilterBar = ({ facets, onQueryChange, query: query2, totalCount }) => {
16040
16102
  };
16041
16103
 
16042
16104
  // src/components/spans-list/spans-data-grid.tsx
16043
- import { Fragment as Fragment6, jsx as jsx129, jsxs as jsxs123 } from "react/jsx-runtime";
16105
+ import { Fragment as Fragment6, jsx as jsx130, jsxs as jsxs123 } from "react/jsx-runtime";
16044
16106
  var SHOW_FILTERS_IN_SEARCH = false;
16045
16107
  var FILTER_NAMES = [["producer", "Producer"], ["service", "Consumer"], ["status", "Status"]];
16046
16108
  var columnHelper = createColumnHelper();
@@ -16055,19 +16117,19 @@ var LABEL_END_OF_STREAM = "This is the end of the stream";
16055
16117
  var LABEL_NO_SPANS = "There are no operations";
16056
16118
  var SEARCH_MAX_LENGTH = 512;
16057
16119
  var STICK_TO_EDGE_THRESHOLD_PX = 4;
16058
- var StreamBoundaryRow = ({ colSpan, label }) => /* @__PURE__ */ jsx129(TableRow, { children: /* @__PURE__ */ jsx129(TableCell, { colSpan, sx: { fontStyle: "italic", textAlign: "center" }, children: /* @__PURE__ */ jsx129("span", { children: label }) }) });
16059
- var LoadingRow = ({ colSpan }) => /* @__PURE__ */ jsx129(TableRow, { children: /* @__PURE__ */ jsx129(TableCell, { colSpan, sx: { textAlign: "center" }, children: /* @__PURE__ */ jsx129(CircularProgress, { size: 24, sx: { m: 2 } }) }) });
16120
+ var StreamBoundaryRow = ({ colSpan, label }) => /* @__PURE__ */ jsx130(TableRow, { children: /* @__PURE__ */ jsx130(TableCell, { colSpan, sx: { fontStyle: "italic", textAlign: "center" }, children: /* @__PURE__ */ jsx130("span", { children: label }) }) });
16121
+ var LoadingRow = ({ colSpan }) => /* @__PURE__ */ jsx130(TableRow, { children: /* @__PURE__ */ jsx130(TableCell, { colSpan, sx: { textAlign: "center" }, children: /* @__PURE__ */ jsx130(CircularProgress, { size: 24, sx: { m: 2 } }) }) });
16060
16122
  var NoMatchRow = ({ colSpan, filtersActive, onClearAll, searchActive, term }) => {
16061
16123
  const message = searchActive && filtersActive ? `No operations match "${term}" and the active filters` : searchActive ? `No operations match "${term}"` : "No operations match the active filters";
16062
16124
  const clearLabel = searchActive && filtersActive ? "Clear search and filters" : searchActive ? "Clear search" : "Clear filters";
16063
16125
  const testId = searchActive ? SPANS_SEARCH_NO_MATCH_TEST_ID : SPANS_FILTER_NO_MATCH_TEST_ID;
16064
- return /* @__PURE__ */ jsx129(TableRow, { children: /* @__PURE__ */ jsx129(TableCell, { colSpan, "data-testid": testId, sx: { textAlign: "center" }, children: /* @__PURE__ */ jsxs123(Box6, { sx: { alignItems: "center", display: "flex", flexDirection: "column", gap: 1, py: 3 }, children: [
16065
- /* @__PURE__ */ jsx129(Typography6, { sx: { fontStyle: "italic" }, variant: "body2", children: message }),
16066
- /* @__PURE__ */ jsx129(Button3, { onClick: onClearAll, size: "small", variant: "text", children: clearLabel })
16126
+ return /* @__PURE__ */ jsx130(TableRow, { children: /* @__PURE__ */ jsx130(TableCell, { colSpan, "data-testid": testId, sx: { textAlign: "center" }, children: /* @__PURE__ */ jsxs123(Box7, { sx: { alignItems: "center", display: "flex", flexDirection: "column", gap: 1, py: 3 }, children: [
16127
+ /* @__PURE__ */ jsx130(Typography6, { sx: { fontStyle: "italic" }, variant: "body2", children: message }),
16128
+ /* @__PURE__ */ jsx130(Button3, { onClick: onClearAll, size: "small", variant: "text", children: clearLabel })
16067
16129
  ] }) }) });
16068
16130
  };
16069
16131
  var SEARCH_FLEX_BASIS_PX = 160;
16070
- var SpansSearchField = ({ onChange, onClear, value }) => /* @__PURE__ */ jsx129(
16132
+ var SpansSearchField = ({ onChange, onClear, value }) => /* @__PURE__ */ jsx130(
16071
16133
  TextField,
16072
16134
  {
16073
16135
  inputProps: {
@@ -16076,7 +16138,7 @@ var SpansSearchField = ({ onChange, onClear, value }) => /* @__PURE__ */ jsx129(
16076
16138
  "maxLength": SEARCH_MAX_LENGTH
16077
16139
  },
16078
16140
  InputProps: {
16079
- endAdornment: value ? /* @__PURE__ */ jsx129(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx129(
16141
+ endAdornment: value ? /* @__PURE__ */ jsx130(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx130(
16080
16142
  IconButton3,
16081
16143
  {
16082
16144
  "aria-label": "Clear search",
@@ -16084,10 +16146,10 @@ var SpansSearchField = ({ onChange, onClear, value }) => /* @__PURE__ */ jsx129(
16084
16146
  edge: "end",
16085
16147
  onClick: onClear,
16086
16148
  size: "small",
16087
- children: /* @__PURE__ */ jsx129(Close, { sx: { fontSize: 16 } })
16149
+ children: /* @__PURE__ */ jsx130(Close, { sx: { fontSize: 16 } })
16088
16150
  }
16089
16151
  ) }) : void 0,
16090
- startAdornment: /* @__PURE__ */ jsx129(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx129(Search, { sx: { fontSize: 16 } }) })
16152
+ startAdornment: /* @__PURE__ */ jsx130(InputAdornment, { position: "start", children: /* @__PURE__ */ jsx130(Search, { sx: { fontSize: 16 } }) })
16091
16153
  },
16092
16154
  onChange: (event) => {
16093
16155
  onChange(event.target.value);
@@ -16102,10 +16164,10 @@ var SpansSearchField = ({ onChange, onClear, value }) => /* @__PURE__ */ jsx129(
16102
16164
  value
16103
16165
  }
16104
16166
  );
16105
- var SpansDataGridRow = memo8(
16167
+ var SpansDataGridRow = memo9(
16106
16168
  ({ isNew, onSpanClick, row, selected }) => {
16107
16169
  const theme = useTheme2();
16108
- return /* @__PURE__ */ jsx129(
16170
+ return /* @__PURE__ */ jsx130(
16109
16171
  TableRow,
16110
16172
  {
16111
16173
  animate: {
@@ -16123,7 +16185,7 @@ var SpansDataGridRow = memo8(
16123
16185
  sx: { cursor: "pointer" },
16124
16186
  transition: { duration: 2.5, ease: "easeOut" },
16125
16187
  children: row.getVisibleCells().map((cell) => {
16126
- return /* @__PURE__ */ jsx129(
16188
+ return /* @__PURE__ */ jsx130(
16127
16189
  TableCell,
16128
16190
  {
16129
16191
  sx: cell.column.id === REQUEST_OPS_COLUMN_ID ? { height: 48, width: "1%" } : {
@@ -16133,8 +16195,8 @@ var SpansDataGridRow = memo8(
16133
16195
  // The issues column has no header cell of its own to carry its width.
16134
16196
  width: `${cell.column.getSize().toString()}px`
16135
16197
  },
16136
- children: /* @__PURE__ */ jsx129(
16137
- Box6,
16198
+ children: /* @__PURE__ */ jsx130(
16199
+ Box7,
16138
16200
  {
16139
16201
  sx: {
16140
16202
  "alignItems": "center",
@@ -16149,7 +16211,7 @@ var SpansDataGridRow = memo8(
16149
16211
  },
16150
16212
  "width": "100%"
16151
16213
  },
16152
- children: /* @__PURE__ */ jsx129(Box6, { sx: { pl: cell.column.id === REQUEST_ISSUES_COLUMN_ID ? 0 : 1, pr: 1, width: "100%" }, children: flexRender(cell.column.columnDef.cell, cell.getContext()) })
16214
+ children: /* @__PURE__ */ jsx130(Box7, { sx: { pl: cell.column.id === REQUEST_ISSUES_COLUMN_ID ? 0 : 1, pr: 1, width: "100%" }, children: flexRender(cell.column.columnDef.cell, cell.getContext()) })
16153
16215
  }
16154
16216
  )
16155
16217
  },
@@ -16218,8 +16280,8 @@ var SpansDataGrid = ({
16218
16280
  const downstreamOf = useCallback2((spanId) => compute.rows[spanId]?.downstream, [compute.rows]);
16219
16281
  const columns = useMemo4(() => [
16220
16282
  columnHelper.accessor("startTime", {
16221
- cell: (props) => /* @__PURE__ */ jsx129(ResponsiveTimestampCell, { date: props.getValue() }),
16222
- header: () => /* @__PURE__ */ jsx129(
16283
+ cell: (props) => /* @__PURE__ */ jsx130(ResponsiveTimestampCell, { date: props.getValue() }),
16284
+ header: () => /* @__PURE__ */ jsx130(
16223
16285
  TableSortLabel,
16224
16286
  {
16225
16287
  active: true,
@@ -16236,9 +16298,9 @@ var SpansDataGrid = ({
16236
16298
  ...SHOW_PRODUCER ? [columnHelper.display({
16237
16299
  cell: (props) => {
16238
16300
  if (!props.row.original.parent_service_name || !props.row.original.parent_resource_name) {
16239
- return /* @__PURE__ */ jsx129(Typography6, { sx: { fontStyle: "italic" }, variant: "body2", children: "External producer" });
16301
+ return /* @__PURE__ */ jsx130(Typography6, { sx: { fontStyle: "italic" }, variant: "body2", children: "External producer" });
16240
16302
  }
16241
- return /* @__PURE__ */ jsx129(
16303
+ return /* @__PURE__ */ jsx130(
16242
16304
  ServiceCell,
16243
16305
  {
16244
16306
  resource: props.row.original.parent_resource_name,
@@ -16251,14 +16313,14 @@ var SpansDataGrid = ({
16251
16313
  size: 180
16252
16314
  })] : [],
16253
16315
  columnHelper.accessor((span) => getOperationLabel(span), {
16254
- cell: (props) => /* @__PURE__ */ jsx129(
16255
- Box6,
16316
+ cell: (props) => /* @__PURE__ */ jsx130(
16317
+ Box7,
16256
16318
  {
16257
16319
  sx: {
16258
16320
  overflow: "hidden",
16259
16321
  textOverflow: "ellipsis"
16260
16322
  },
16261
- children: /* @__PURE__ */ jsx129(OperationName, { span: props.row.original })
16323
+ children: /* @__PURE__ */ jsx130(OperationName, { span: props.row.original })
16262
16324
  }
16263
16325
  ),
16264
16326
  header: "Action",
@@ -16267,19 +16329,26 @@ var SpansDataGrid = ({
16267
16329
  }),
16268
16330
  columnHelper.display({
16269
16331
  cell: (props) => {
16270
- return /* @__PURE__ */ jsx129(ServiceCell, { resource: props.row.original.resource_name, service: props.row.original.service_name });
16332
+ return /* @__PURE__ */ jsx130(
16333
+ ServiceCell,
16334
+ {
16335
+ arn: props.row.original.arn,
16336
+ resource: props.row.original.resource_name,
16337
+ service: props.row.original.service_name
16338
+ }
16339
+ );
16271
16340
  },
16272
16341
  header: "Consumer",
16273
16342
  id: "consumer",
16274
16343
  size: 260
16275
16344
  }),
16276
16345
  columnHelper.display({
16277
- cell: (props) => /* @__PURE__ */ jsx129(RequestOpsCell, { downstream: props.table.options.meta?.downstreamOf(props.row.original.span_id), span: props.row.original }),
16346
+ cell: (props) => /* @__PURE__ */ jsx130(RequestOpsCell, { downstream: props.table.options.meta?.downstreamOf(props.row.original.span_id), span: props.row.original }),
16278
16347
  header: "Request Details",
16279
16348
  id: REQUEST_OPS_COLUMN_ID
16280
16349
  }),
16281
16350
  columnHelper.display({
16282
- cell: (props) => /* @__PURE__ */ jsx129(RequestIssuesCell, { downstream: props.table.options.meta?.downstreamOf(props.row.original.span_id), span: props.row.original }),
16351
+ cell: (props) => /* @__PURE__ */ jsx130(RequestIssuesCell, { downstream: props.table.options.meta?.downstreamOf(props.row.original.span_id), span: props.row.original }),
16283
16352
  id: REQUEST_ISSUES_COLUMN_ID,
16284
16353
  // Wide enough that the two columns fit the header without widening the ops column.
16285
16354
  size: 96
@@ -16357,9 +16426,9 @@ var SpansDataGrid = ({
16357
16426
  element.dispatchEvent(new Event("scroll"));
16358
16427
  }, [order2, spans?.length, lastSpanId]);
16359
16428
  return /* @__PURE__ */ jsxs123(Fragment6, { children: [
16360
- /* @__PURE__ */ jsx129(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsxs123(Box6, { sx: { display: "flex", flexDirection: "column", gap: "0.5rem", pt: 1, px: 1 }, children: [
16361
- /* @__PURE__ */ jsxs123(Box6, { ref: controlsRef, sx: { alignItems: "center", display: "flex", flexWrap: "wrap", gap: "0.5rem" }, children: [
16362
- /* @__PURE__ */ jsx129(Box6, { sx: { flex: `1 1 ${String(SEARCH_FLEX_BASIS_PX)}px`, maxWidth: 220, order: -1 }, children: /* @__PURE__ */ jsx129(
16429
+ /* @__PURE__ */ jsx130(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsxs123(Box7, { sx: { display: "flex", flexDirection: "column", gap: "0.5rem", pt: 1, px: 1 }, children: [
16430
+ /* @__PURE__ */ jsxs123(Box7, { ref: controlsRef, sx: { alignItems: "center", display: "flex", flexWrap: "wrap", gap: "0.5rem" }, children: [
16431
+ /* @__PURE__ */ jsx130(Box7, { sx: { flex: `1 1 ${String(SEARCH_FLEX_BASIS_PX)}px`, maxWidth: 220, order: -1 }, children: /* @__PURE__ */ jsx130(
16363
16432
  SpansSearchField,
16364
16433
  {
16365
16434
  onChange: (value) => {
@@ -16369,7 +16438,7 @@ var SpansDataGrid = ({
16369
16438
  value: searchText
16370
16439
  }
16371
16440
  ) }),
16372
- /* @__PURE__ */ jsx129(Box6, { ref: filtersRef, sx: { display: "contents" }, children: /* @__PURE__ */ jsx129(
16441
+ /* @__PURE__ */ jsx130(Box7, { ref: filtersRef, sx: { display: "contents" }, children: /* @__PURE__ */ jsx130(
16373
16442
  SpansFilterBar,
16374
16443
  {
16375
16444
  facets: compute.facets,
@@ -16378,20 +16447,20 @@ var SpansDataGrid = ({
16378
16447
  totalCount: compute.totalCount
16379
16448
  }
16380
16449
  ) }),
16381
- /* @__PURE__ */ jsx129(Box6, { ref: clearRef, sx: { flexShrink: 0, ml: "auto", order: controlsOnOneLine ? 1 : -1 }, children: /* @__PURE__ */ jsx129(
16450
+ /* @__PURE__ */ jsx130(Box7, { ref: clearRef, sx: { flexShrink: 0, ml: "auto", order: controlsOnOneLine ? 1 : -1 }, children: /* @__PURE__ */ jsx130(
16382
16451
  Button3,
16383
16452
  {
16384
16453
  "data-testid": CLEAR_SPANS_TEST_ID,
16385
16454
  disabled: clearingSpans,
16386
16455
  onClick: handleClearSpans,
16387
- startIcon: /* @__PURE__ */ jsx129(DeleteForeverOutlined, {}),
16456
+ startIcon: /* @__PURE__ */ jsx130(DeleteForeverOutlined, {}),
16388
16457
  children: "Clear Operations"
16389
16458
  }
16390
16459
  ) }),
16391
- !controlsOnOneLine && /* @__PURE__ */ jsx129(Box6, { sx: { flexBasis: "100%", mt: "-0.5rem", order: -1 } })
16460
+ !controlsOnOneLine && /* @__PURE__ */ jsx130(Box7, { sx: { flexBasis: "100%", mt: "-0.5rem", order: -1 } })
16392
16461
  ] }),
16393
- /* @__PURE__ */ jsxs123(Box6, { sx: { alignItems: "center", display: "flex", gap: "0.5rem", pl: 0.5 }, children: [
16394
- /* @__PURE__ */ jsx129(
16462
+ /* @__PURE__ */ jsxs123(Box7, { sx: { alignItems: "center", display: "flex", gap: "0.5rem", pl: 0.5 }, children: [
16463
+ /* @__PURE__ */ jsx130(
16395
16464
  SpanCountBadge,
16396
16465
  {
16397
16466
  licenseLimit,
@@ -16401,14 +16470,14 @@ var SpansDataGrid = ({
16401
16470
  }
16402
16471
  ),
16403
16472
  filtersActive && /* @__PURE__ */ jsxs123(Fragment6, { children: [
16404
- /* @__PURE__ */ jsx129(Typography6, { color: "text.secondary", variant: "caption", children: "\xB7" }),
16405
- /* @__PURE__ */ jsx129(Typography6, { color: "text.secondary", variant: "caption", children: `Filtered by ${filteredByLabel}` })
16473
+ /* @__PURE__ */ jsx130(Typography6, { color: "text.secondary", variant: "caption", children: "\xB7" }),
16474
+ /* @__PURE__ */ jsx130(Typography6, { color: "text.secondary", variant: "caption", children: `Filtered by ${filteredByLabel}` })
16406
16475
  ] }),
16407
16476
  SHOW_EXCLUSIONS && compute.excludedCount > 0 && /* @__PURE__ */ jsxs123(Fragment6, { children: [
16408
- /* @__PURE__ */ jsx129(Typography6, { color: "text.secondary", variant: "caption", children: "\xB7" }),
16477
+ /* @__PURE__ */ jsx130(Typography6, { color: "text.secondary", variant: "caption", children: "\xB7" }),
16409
16478
  /* @__PURE__ */ jsxs123(Typography6, { color: "text.secondary", "data-testid": HIDDEN_OPS_NOTE_TEST_ID, variant: "caption", children: [
16410
16479
  `${compute.excludedCount.toLocaleString()} ${compute.excludedCount === 1 ? "operation" : "operations"} hidden by filters \xB7 `,
16411
- /* @__PURE__ */ jsx129(
16480
+ /* @__PURE__ */ jsx130(
16412
16481
  Button3,
16413
16482
  {
16414
16483
  onClick: () => {
@@ -16424,7 +16493,7 @@ var SpansDataGrid = ({
16424
16493
  ] })
16425
16494
  ] })
16426
16495
  ] }) }),
16427
- /* @__PURE__ */ jsx129(Box6, { sx: { flexGrow: 1, overflow: "hidden", position: "relative", width: "100%" }, children: /* @__PURE__ */ jsx129(
16496
+ /* @__PURE__ */ jsx130(Box7, { sx: { flexGrow: 1, overflow: "hidden", position: "relative", width: "100%" }, children: /* @__PURE__ */ jsx130(
16428
16497
  TableContainer,
16429
16498
  {
16430
16499
  onScroll: handleScroll,
@@ -16451,8 +16520,8 @@ var SpansDataGrid = ({
16451
16520
  "th+th": { pl: "8px !important" }
16452
16521
  },
16453
16522
  children: [
16454
- /* @__PURE__ */ jsx129(TableHead, { children: table.getHeaderGroups().map((headerGroup) => {
16455
- return /* @__PURE__ */ jsx129(TableRow, { children: headerGroup.headers.filter((header) => header.column.id !== REQUEST_ISSUES_COLUMN_ID).map((header) => /* @__PURE__ */ jsx129(
16523
+ /* @__PURE__ */ jsx130(TableHead, { children: table.getHeaderGroups().map((headerGroup) => {
16524
+ return /* @__PURE__ */ jsx130(TableRow, { children: headerGroup.headers.filter((header) => header.column.id !== REQUEST_ISSUES_COLUMN_ID).map((header) => /* @__PURE__ */ jsx130(
16456
16525
  TableCell,
16457
16526
  {
16458
16527
  colSpan: header.column.id === REQUEST_OPS_COLUMN_ID ? 2 : header.colSpan,
@@ -16468,8 +16537,8 @@ var SpansDataGrid = ({
16468
16537
  )) }, headerGroup.id);
16469
16538
  }) }),
16470
16539
  /* @__PURE__ */ jsxs123(TableBody, { children: [
16471
- (spans === void 0 || clearingSpans || searching) && /* @__PURE__ */ jsx129(TableRow, { children: /* @__PURE__ */ jsx129(TableCell, { colSpan: columnCount, sx: { fontStyle: "italic", textAlign: "center" }, children: /* @__PURE__ */ jsx129(CircularProgress, { size: 48, sx: { m: 4 } }) }) }),
16472
- !clearingSpans && !searching && spans?.length === 0 && (compute.queryActive ? /* @__PURE__ */ jsx129(
16540
+ (spans === void 0 || clearingSpans || searching) && /* @__PURE__ */ jsx130(TableRow, { children: /* @__PURE__ */ jsx130(TableCell, { colSpan: columnCount, sx: { fontStyle: "italic", textAlign: "center" }, children: /* @__PURE__ */ jsx130(CircularProgress, { size: 48, sx: { m: 4 } }) }) }),
16541
+ !clearingSpans && !searching && spans?.length === 0 && (compute.queryActive ? /* @__PURE__ */ jsx130(
16473
16542
  NoMatchRow,
16474
16543
  {
16475
16544
  colSpan: columnCount,
@@ -16478,11 +16547,11 @@ var SpansDataGrid = ({
16478
16547
  searchActive,
16479
16548
  term: searchText
16480
16549
  }
16481
- ) : /* @__PURE__ */ jsx129(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_NO_SPANS })),
16550
+ ) : /* @__PURE__ */ jsx130(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_NO_SPANS })),
16482
16551
  !clearingSpans && order2 === "newest_first" && /* @__PURE__ */ jsxs123(Fragment6, { children: [
16483
- hasRows && hasMoreForward && /* @__PURE__ */ jsx129(LoadingRow, { colSpan: columnCount }),
16484
- hasRows && !hasMoreForward && /* @__PURE__ */ jsx129(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_END_OF_STREAM }),
16485
- hasRows && paddingTop > 0 && /* @__PURE__ */ jsx129(TableRow, { children: /* @__PURE__ */ jsx129(
16552
+ hasRows && hasMoreForward && /* @__PURE__ */ jsx130(LoadingRow, { colSpan: columnCount }),
16553
+ hasRows && !hasMoreForward && /* @__PURE__ */ jsx130(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_END_OF_STREAM }),
16554
+ hasRows && paddingTop > 0 && /* @__PURE__ */ jsx130(TableRow, { children: /* @__PURE__ */ jsx130(
16486
16555
  TableCell,
16487
16556
  {
16488
16557
  colSpan: columnCount,
@@ -16492,7 +16561,7 @@ var SpansDataGrid = ({
16492
16561
  hasRows && virtualItems.map((virtualItem) => {
16493
16562
  const row = displayRows[virtualItem.index];
16494
16563
  const isNew = newSpanIds?.has(row.original.span_id) ?? false;
16495
- return /* @__PURE__ */ jsx129(
16564
+ return /* @__PURE__ */ jsx130(
16496
16565
  SpansDataGridRow,
16497
16566
  {
16498
16567
  downstream: compute.rows[row.original.span_id]?.downstream,
@@ -16504,20 +16573,20 @@ var SpansDataGrid = ({
16504
16573
  row.original.span_id
16505
16574
  );
16506
16575
  }),
16507
- hasRows && paddingBottom > 0 && /* @__PURE__ */ jsx129(TableRow, { children: /* @__PURE__ */ jsx129(
16576
+ hasRows && paddingBottom > 0 && /* @__PURE__ */ jsx130(TableRow, { children: /* @__PURE__ */ jsx130(
16508
16577
  TableCell,
16509
16578
  {
16510
16579
  colSpan: columnCount,
16511
16580
  sx: { border: 0, height: paddingBottom, p: 0 }
16512
16581
  }
16513
16582
  ) }),
16514
- hasRows && hasMoreBackward && /* @__PURE__ */ jsx129(LoadingRow, { colSpan: columnCount }),
16515
- hasRows && !hasMoreBackward && /* @__PURE__ */ jsx129(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_BEGINNING_OF_STREAM })
16583
+ hasRows && hasMoreBackward && /* @__PURE__ */ jsx130(LoadingRow, { colSpan: columnCount }),
16584
+ hasRows && !hasMoreBackward && /* @__PURE__ */ jsx130(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_BEGINNING_OF_STREAM })
16516
16585
  ] }),
16517
16586
  !clearingSpans && order2 === "oldest_first" && /* @__PURE__ */ jsxs123(Fragment6, { children: [
16518
- hasRows && !hasMoreBackward && /* @__PURE__ */ jsx129(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_BEGINNING_OF_STREAM }),
16519
- hasRows && hasMoreBackward && /* @__PURE__ */ jsx129(LoadingRow, { colSpan: columnCount }),
16520
- hasRows && paddingTop > 0 && /* @__PURE__ */ jsx129(TableRow, { children: /* @__PURE__ */ jsx129(
16587
+ hasRows && !hasMoreBackward && /* @__PURE__ */ jsx130(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_BEGINNING_OF_STREAM }),
16588
+ hasRows && hasMoreBackward && /* @__PURE__ */ jsx130(LoadingRow, { colSpan: columnCount }),
16589
+ hasRows && paddingTop > 0 && /* @__PURE__ */ jsx130(TableRow, { children: /* @__PURE__ */ jsx130(
16521
16590
  TableCell,
16522
16591
  {
16523
16592
  colSpan: columnCount,
@@ -16527,7 +16596,7 @@ var SpansDataGrid = ({
16527
16596
  hasRows && virtualItems.map((virtualItem) => {
16528
16597
  const row = displayRows[virtualItem.index];
16529
16598
  const isNew = newSpanIds?.has(row.original.span_id) ?? false;
16530
- return /* @__PURE__ */ jsx129(
16599
+ return /* @__PURE__ */ jsx130(
16531
16600
  SpansDataGridRow,
16532
16601
  {
16533
16602
  downstream: compute.rows[row.original.span_id]?.downstream,
@@ -16539,15 +16608,15 @@ var SpansDataGrid = ({
16539
16608
  row.original.span_id
16540
16609
  );
16541
16610
  }),
16542
- hasRows && paddingBottom > 0 && /* @__PURE__ */ jsx129(TableRow, { children: /* @__PURE__ */ jsx129(
16611
+ hasRows && paddingBottom > 0 && /* @__PURE__ */ jsx130(TableRow, { children: /* @__PURE__ */ jsx130(
16543
16612
  TableCell,
16544
16613
  {
16545
16614
  colSpan: columnCount,
16546
16615
  sx: { border: 0, height: paddingBottom, p: 0 }
16547
16616
  }
16548
16617
  ) }),
16549
- hasRows && hasMoreForward && /* @__PURE__ */ jsx129(LoadingRow, { colSpan: columnCount }),
16550
- hasRows && !hasMoreForward && /* @__PURE__ */ jsx129(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_END_OF_STREAM })
16618
+ hasRows && hasMoreForward && /* @__PURE__ */ jsx130(LoadingRow, { colSpan: columnCount }),
16619
+ hasRows && !hasMoreForward && /* @__PURE__ */ jsx130(StreamBoundaryRow, { colSpan: columnCount, label: LABEL_END_OF_STREAM })
16551
16620
  ] })
16552
16621
  ] })
16553
16622
  ]
@@ -16559,13 +16628,13 @@ var SpansDataGrid = ({
16559
16628
  };
16560
16629
 
16561
16630
  // src/components/spans-list/spans-list.tsx
16562
- import { jsx as jsx130, jsxs as jsxs124 } from "react/jsx-runtime";
16631
+ import { jsx as jsx131, jsxs as jsxs124 } from "react/jsx-runtime";
16563
16632
  var SpansList = (props) => {
16564
- return /* @__PURE__ */ jsxs124(Box7, { "data-testid": SPANS_DATA_GRID_TEST_ID, sx: { display: "flex", flexDirection: "column", flexGrow: 1, gap: 1, width: "100%" }, children: [
16633
+ return /* @__PURE__ */ jsxs124(Box8, { "data-testid": SPANS_DATA_GRID_TEST_ID, sx: { display: "flex", flexDirection: "column", flexGrow: 1, gap: 1, width: "100%" }, children: [
16565
16634
  props.fetchError && /* @__PURE__ */ jsxs124(
16566
16635
  Alert2,
16567
16636
  {
16568
- action: /* @__PURE__ */ jsx130(Button4, { onClick: props.onFetchForward, children: "Retry" }),
16637
+ action: /* @__PURE__ */ jsx131(Button4, { onClick: props.onFetchForward, children: "Retry" }),
16569
16638
  severity: "error",
16570
16639
  sx: { mt: 1, mx: 2 },
16571
16640
  children: [
@@ -16575,7 +16644,7 @@ var SpansList = (props) => {
16575
16644
  ]
16576
16645
  }
16577
16646
  ),
16578
- /* @__PURE__ */ jsx130(
16647
+ /* @__PURE__ */ jsx131(
16579
16648
  SpansDataGrid,
16580
16649
  {
16581
16650
  clearingSpans: props.clearingSpans,
@@ -16602,9 +16671,9 @@ var SpansList = (props) => {
16602
16671
 
16603
16672
  // src/components/status-message/status-message.tsx
16604
16673
  import { ErrorOutline, InfoOutlined as InfoOutlined2 } from "@mui/icons-material";
16605
- import { Alert as Alert3, AlertTitle, Box as Box8, Button as Button5, CircularProgress as CircularProgress2, Link, Typography as Typography7 } from "@mui/material";
16674
+ import { Alert as Alert3, AlertTitle, Box as Box9, Button as Button5, CircularProgress as CircularProgress2, Link, Typography as Typography7 } from "@mui/material";
16606
16675
  import { useState as useState8 } from "react";
16607
- import { Fragment as Fragment7, jsx as jsx131, jsxs as jsxs125 } from "react/jsx-runtime";
16676
+ import { Fragment as Fragment7, jsx as jsx132, jsxs as jsxs125 } from "react/jsx-runtime";
16608
16677
  var START_COMMAND = "LOCALSTACK_APP_INSPECTOR=1 lstk";
16609
16678
  var StatusMessage = ({
16610
16679
  localstackVersion,
@@ -16627,8 +16696,8 @@ var StatusMessage = ({
16627
16696
  }
16628
16697
  };
16629
16698
  if (phase === "CHECKING_STATUS" || phase === "CONNECTING_WS") {
16630
- return /* @__PURE__ */ jsx131(
16631
- Box8,
16699
+ return /* @__PURE__ */ jsx132(
16700
+ Box9,
16632
16701
  {
16633
16702
  sx: {
16634
16703
  alignItems: "center",
@@ -16638,13 +16707,13 @@ var StatusMessage = ({
16638
16707
  justifyContent: "center",
16639
16708
  p: 4
16640
16709
  },
16641
- children: /* @__PURE__ */ jsx131(CircularProgress2, { size: 32 })
16710
+ children: /* @__PURE__ */ jsx132(CircularProgress2, { size: 32 })
16642
16711
  }
16643
16712
  );
16644
16713
  }
16645
16714
  if (phase === "INCOMPATIBLE") {
16646
- return /* @__PURE__ */ jsx131(
16647
- Box8,
16715
+ return /* @__PURE__ */ jsx132(
16716
+ Box9,
16648
16717
  {
16649
16718
  sx: {
16650
16719
  alignItems: "center",
@@ -16657,15 +16726,15 @@ var StatusMessage = ({
16657
16726
  children: /* @__PURE__ */ jsxs125(
16658
16727
  Alert3,
16659
16728
  {
16660
- icon: /* @__PURE__ */ jsx131(ErrorOutline, { fontSize: "large" }),
16729
+ icon: /* @__PURE__ */ jsx132(ErrorOutline, { fontSize: "large" }),
16661
16730
  severity: "error",
16662
16731
  sx: { maxWidth: 600, width: "100%" },
16663
16732
  children: [
16664
- /* @__PURE__ */ jsx131(AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector Not Available" }),
16665
- /* @__PURE__ */ jsx131(Typography7, { sx: { mb: 2 }, variant: "body2", children: localstackVersion === void 0 ? `App Inspector requires LocalStack ${MINIMUM_EMULATOR_VERSION} or later. Please update LocalStack.` : `App Inspector requires LocalStack ${MINIMUM_EMULATOR_VERSION} or later. You are running version ${localstackVersion}. Please update LocalStack.` }),
16666
- /* @__PURE__ */ jsx131(Typography7, { sx: { mb: 1 }, variant: "body2", children: /* @__PURE__ */ jsx131("strong", { children: "Update LocalStack:" }) }),
16667
- /* @__PURE__ */ jsx131(
16668
- Box8,
16733
+ /* @__PURE__ */ jsx132(AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector Not Available" }),
16734
+ /* @__PURE__ */ jsx132(Typography7, { sx: { mb: 2 }, variant: "body2", children: localstackVersion === void 0 ? `App Inspector requires LocalStack ${MINIMUM_EMULATOR_VERSION} or later. Please update LocalStack.` : `App Inspector requires LocalStack ${MINIMUM_EMULATOR_VERSION} or later. You are running version ${localstackVersion}. Please update LocalStack.` }),
16735
+ /* @__PURE__ */ jsx132(Typography7, { sx: { mb: 1 }, variant: "body2", children: /* @__PURE__ */ jsx132("strong", { children: "Update LocalStack:" }) }),
16736
+ /* @__PURE__ */ jsx132(
16737
+ Box9,
16669
16738
  {
16670
16739
  component: "pre",
16671
16740
  sx: {
@@ -16677,7 +16746,7 @@ var StatusMessage = ({
16677
16746
  children: "localstack update docker-images"
16678
16747
  }
16679
16748
  ),
16680
- onRetry && /* @__PURE__ */ jsx131(Box8, { sx: { display: "flex", gap: 1, mt: 2 }, children: /* @__PURE__ */ jsx131(
16749
+ onRetry && /* @__PURE__ */ jsx132(Box9, { sx: { display: "flex", gap: 1, mt: 2 }, children: /* @__PURE__ */ jsx132(
16681
16750
  Button5,
16682
16751
  {
16683
16752
  "aria-label": "Check App Inspector status again",
@@ -16693,8 +16762,8 @@ var StatusMessage = ({
16693
16762
  );
16694
16763
  }
16695
16764
  if (phase === "UNREACHABLE") {
16696
- return /* @__PURE__ */ jsx131(
16697
- Box8,
16765
+ return /* @__PURE__ */ jsx132(
16766
+ Box9,
16698
16767
  {
16699
16768
  sx: {
16700
16769
  alignItems: "center",
@@ -16707,14 +16776,14 @@ var StatusMessage = ({
16707
16776
  children: /* @__PURE__ */ jsxs125(
16708
16777
  Alert3,
16709
16778
  {
16710
- icon: /* @__PURE__ */ jsx131(ErrorOutline, { fontSize: "large" }),
16779
+ icon: /* @__PURE__ */ jsx132(ErrorOutline, { fontSize: "large" }),
16711
16780
  severity: "error",
16712
16781
  sx: { maxWidth: 600, width: "100%" },
16713
16782
  children: [
16714
- /* @__PURE__ */ jsx131(AlertTitle, { sx: { fontWeight: "bold" }, children: "Connection Error" }),
16783
+ /* @__PURE__ */ jsx132(AlertTitle, { sx: { fontWeight: "bold" }, children: "Connection Error" }),
16715
16784
  /* @__PURE__ */ jsxs125(Typography7, { sx: { mb: 2 }, variant: "body2", children: [
16716
16785
  "Failed to connect to LocalStack. Ensure ",
16717
- /* @__PURE__ */ jsx131(
16786
+ /* @__PURE__ */ jsx132(
16718
16787
  Link,
16719
16788
  {
16720
16789
  href: "https://docs.localstack.cloud/aws/getting-started/installation/",
@@ -16725,9 +16794,9 @@ var StatusMessage = ({
16725
16794
  ),
16726
16795
  " is running and accessible."
16727
16796
  ] }),
16728
- /* @__PURE__ */ jsx131(Typography7, { sx: { mb: 1 }, variant: "body2", children: /* @__PURE__ */ jsx131("strong", { children: "Start LocalStack with App Inspector:" }) }),
16729
- /* @__PURE__ */ jsx131(
16730
- Box8,
16797
+ /* @__PURE__ */ jsx132(Typography7, { sx: { mb: 1 }, variant: "body2", children: /* @__PURE__ */ jsx132("strong", { children: "Start LocalStack with App Inspector:" }) }),
16798
+ /* @__PURE__ */ jsx132(
16799
+ Box9,
16731
16800
  {
16732
16801
  component: "pre",
16733
16802
  sx: {
@@ -16739,7 +16808,7 @@ var StatusMessage = ({
16739
16808
  children: START_COMMAND
16740
16809
  }
16741
16810
  ),
16742
- onRetry && /* @__PURE__ */ jsx131(Box8, { sx: { display: "flex", justifyContent: "flex-start", mt: 2 }, children: /* @__PURE__ */ jsx131(
16811
+ onRetry && /* @__PURE__ */ jsx132(Box9, { sx: { display: "flex", justifyContent: "flex-start", mt: 2 }, children: /* @__PURE__ */ jsx132(
16743
16812
  Button5,
16744
16813
  {
16745
16814
  "aria-label": "Retry connection to LocalStack",
@@ -16755,8 +16824,8 @@ var StatusMessage = ({
16755
16824
  );
16756
16825
  }
16757
16826
  if (phase === "DISABLED") {
16758
- return /* @__PURE__ */ jsx131(
16759
- Box8,
16827
+ return /* @__PURE__ */ jsx132(
16828
+ Box9,
16760
16829
  {
16761
16830
  sx: {
16762
16831
  alignItems: "center",
@@ -16769,13 +16838,13 @@ var StatusMessage = ({
16769
16838
  children: /* @__PURE__ */ jsxs125(
16770
16839
  Alert3,
16771
16840
  {
16772
- icon: /* @__PURE__ */ jsx131(InfoOutlined2, { fontSize: "large" }),
16841
+ icon: /* @__PURE__ */ jsx132(InfoOutlined2, { fontSize: "large" }),
16773
16842
  severity: "warning",
16774
16843
  sx: { maxWidth: 600, width: "100%" },
16775
16844
  children: [
16776
- /* @__PURE__ */ jsx131(AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector Is Not Enabled" }),
16777
- /* @__PURE__ */ jsx131(Typography7, { sx: { mb: 2 }, variant: "body2", children: "App Inspector is not currently enabled in LocalStack. You can enable it now, or at startup." }),
16778
- /* @__PURE__ */ jsx131(Box8, { sx: { display: "flex", gap: 1, mb: 2 }, children: onEnable && /* @__PURE__ */ jsx131(
16845
+ /* @__PURE__ */ jsx132(AlertTitle, { sx: { fontWeight: "bold" }, children: "App Inspector Is Not Enabled" }),
16846
+ /* @__PURE__ */ jsx132(Typography7, { sx: { mb: 2 }, variant: "body2", children: "App Inspector is not currently enabled in LocalStack. You can enable it now, or at startup." }),
16847
+ /* @__PURE__ */ jsx132(Box9, { sx: { display: "flex", gap: 1, mb: 2 }, children: onEnable && /* @__PURE__ */ jsx132(
16779
16848
  Button5,
16780
16849
  {
16781
16850
  "aria-label": "Enable App Inspector Now",
@@ -16783,14 +16852,14 @@ var StatusMessage = ({
16783
16852
  onClick: () => {
16784
16853
  void handleEnable();
16785
16854
  },
16786
- startIcon: enabling ? /* @__PURE__ */ jsx131(CircularProgress2, { size: 16 }) : void 0,
16855
+ startIcon: enabling ? /* @__PURE__ */ jsx132(CircularProgress2, { size: 16 }) : void 0,
16787
16856
  variant: "contained",
16788
16857
  children: "Enable App Inspector Now"
16789
16858
  }
16790
16859
  ) }),
16791
- /* @__PURE__ */ jsx131(Typography7, { sx: { mb: 1 }, variant: "body2", children: "If you'd prefer to automatically enable App Inspector at start up, use:" }),
16792
- /* @__PURE__ */ jsx131(
16793
- Box8,
16860
+ /* @__PURE__ */ jsx132(Typography7, { sx: { mb: 1 }, variant: "body2", children: "If you'd prefer to automatically enable App Inspector at start up, use:" }),
16861
+ /* @__PURE__ */ jsx132(
16862
+ Box9,
16794
16863
  {
16795
16864
  component: "pre",
16796
16865
  sx: {
@@ -16802,14 +16871,14 @@ var StatusMessage = ({
16802
16871
  children: START_COMMAND
16803
16872
  }
16804
16873
  ),
16805
- Boolean(enableError) && /* @__PURE__ */ jsx131(Typography7, { color: "error", sx: { mt: 1 }, variant: "body2", children: enableError })
16874
+ Boolean(enableError) && /* @__PURE__ */ jsx132(Typography7, { color: "error", sx: { mt: 1 }, variant: "body2", children: enableError })
16806
16875
  ]
16807
16876
  }
16808
16877
  )
16809
16878
  }
16810
16879
  );
16811
16880
  }
16812
- return /* @__PURE__ */ jsx131(Fragment7, {});
16881
+ return /* @__PURE__ */ jsx132(Fragment7, {});
16813
16882
  };
16814
16883
 
16815
16884
  // src/utils/span-parents.ts
@@ -16902,21 +16971,15 @@ var getTraceBounds = (spans) => {
16902
16971
 
16903
16972
  // src/components/trace-panel/trace-sidebar.tsx
16904
16973
  import { Close as Close4, CloseFullscreen, OpenInFull } from "@mui/icons-material";
16905
- import { Box as Box21, IconButton as IconButton8, ToggleButton as ToggleButton3, ToggleButtonGroup as ToggleButtonGroup3, Typography as Typography16 } from "@mui/material";
16974
+ import { Box as Box22, IconButton as IconButton8, ToggleButton as ToggleButton3, ToggleButtonGroup as ToggleButtonGroup3, Typography as Typography15 } from "@mui/material";
16906
16975
  import { ReactFlowProvider } from "@xyflow/react";
16907
16976
  import * as React125 from "react";
16908
16977
 
16909
16978
  // src/components/event-details/event-details.tsx
16910
16979
  import { Cancel as Cancel5, Close as Close3, GppBad as GppBad2, GppMaybe as GppMaybe6 } from "@mui/icons-material";
16911
- import { Alert as Alert4, Box as Box17, FormControlLabel, IconButton as IconButton6, Stack as Stack4, Switch, Tab, Tabs, Typography as Typography13 } from "@mui/material";
16980
+ import { Alert as Alert4, Box as Box18, FormControlLabel, IconButton as IconButton6, Stack as Stack4, Switch, Tab, Tabs, Typography as Typography13 } from "@mui/material";
16912
16981
  import { useEffect as useEffect17, useMemo as useMemo10, useRef as useRef13, useState as useState14 } from "react";
16913
16982
 
16914
- // src/dev-settings.tsx
16915
- import * as React122 from "react";
16916
- var DEFAULT_DEV_SETTINGS = { operationStatus: "subtitle-chips", waterfallLayout: "tree" };
16917
- var DevSettingsContext = React122.createContext(DEFAULT_DEV_SETTINGS);
16918
- var useDevSettings = () => React122.useContext(DevSettingsContext);
16919
-
16920
16983
  // src/utils/event-utils.ts
16921
16984
  var iamEventParser = (eventName, attributes) => {
16922
16985
  if (attributes?.payload && typeof attributes.payload === "string") {
@@ -17070,7 +17133,7 @@ function unixNanoToMilliseconds(unixNanoString) {
17070
17133
  import { Check, ContentCopy } from "@mui/icons-material";
17071
17134
  import { IconButton as IconButton4, Tooltip as Tooltip5 } from "@mui/material";
17072
17135
  import { useCallback as useCallback3, useState as useState9 } from "react";
17073
- import { jsx as jsx132 } from "react/jsx-runtime";
17136
+ import { jsx as jsx133 } from "react/jsx-runtime";
17074
17137
  var CopyButton = ({ value }) => {
17075
17138
  const [copied, setCopied] = useState9(false);
17076
17139
  const handleCopy = useCallback3(() => {
@@ -17082,80 +17145,83 @@ var CopyButton = ({ value }) => {
17082
17145
  }, 1500);
17083
17146
  });
17084
17147
  }, [value]);
17085
- return /* @__PURE__ */ jsx132(Tooltip5, { title: copied ? "Copied!" : "Copy", children: /* @__PURE__ */ jsx132(
17148
+ if (value === void 0 || value === null || value === "") {
17149
+ return null;
17150
+ }
17151
+ return /* @__PURE__ */ jsx133(Tooltip5, { title: copied ? "Copied!" : "Copy", children: /* @__PURE__ */ jsx133(
17086
17152
  IconButton4,
17087
17153
  {
17088
17154
  className: "copy-btn",
17089
17155
  onClick: handleCopy,
17090
17156
  size: "small",
17091
17157
  sx: { ml: 0.5, opacity: copied ? 1 : 0, p: 0.25, transition: "opacity 0.15s" },
17092
- children: copied ? /* @__PURE__ */ jsx132(Check, { sx: { fontSize: 14 } }) : /* @__PURE__ */ jsx132(ContentCopy, { sx: { fontSize: 14 } })
17158
+ children: copied ? /* @__PURE__ */ jsx133(Check, { sx: { fontSize: 14 } }) : /* @__PURE__ */ jsx133(ContentCopy, { sx: { fontSize: 14 } })
17093
17159
  }
17094
17160
  ) });
17095
17161
  };
17096
17162
 
17097
17163
  // src/components/event-details/event-detail.tsx
17098
17164
  import { KeyboardArrowDown, KeyboardArrowRight } from "@mui/icons-material";
17099
- import { Box as Box14, IconButton as IconButton5, Typography as Typography10 } from "@mui/material";
17165
+ import { Box as Box15, IconButton as IconButton5, Typography as Typography10 } from "@mui/material";
17100
17166
  import { useEffect as useEffect13, useMemo as useMemo7, useRef as useRef9, useState as useState11 } from "react";
17101
17167
 
17102
17168
  // src/components/status-icon.tsx
17103
17169
  import { Cancel as Cancel3, CheckCircle, GppMaybe as GppMaybe3, Info } from "@mui/icons-material";
17104
- import { Box as Box9 } from "@mui/material";
17105
- import { jsx as jsx133 } from "react/jsx-runtime";
17170
+ import { Box as Box10 } from "@mui/material";
17171
+ import { jsx as jsx134 } from "react/jsx-runtime";
17106
17172
  var StatusIcon = ({ errorLevel }) => {
17107
17173
  switch (errorLevel) {
17108
17174
  case EventLevel.LevelError: {
17109
- return /* @__PURE__ */ jsx133(Cancel3, { sx: { color: "red" } });
17175
+ return /* @__PURE__ */ jsx134(Cancel3, { sx: { color: "red" } });
17110
17176
  }
17111
17177
  case EventLevel.LevelInfo: {
17112
- return /* @__PURE__ */ jsx133(Info, { sx: { color: "gray" } });
17178
+ return /* @__PURE__ */ jsx134(Info, { sx: { color: "gray" } });
17113
17179
  }
17114
17180
  case EventLevel.LevelPermission:
17115
17181
  case EventLevel.LevelWarning: {
17116
- return /* @__PURE__ */ jsx133(GppMaybe3, { sx: { color: "orange" } });
17182
+ return /* @__PURE__ */ jsx134(GppMaybe3, { sx: { color: "orange" } });
17117
17183
  }
17118
17184
  default: {
17119
- return /* @__PURE__ */ jsx133(CheckCircle, { sx: { color: "lightgray" } });
17185
+ return /* @__PURE__ */ jsx134(CheckCircle, { sx: { color: "lightgray" } });
17120
17186
  }
17121
17187
  }
17122
17188
  };
17123
17189
 
17124
17190
  // src/components/event-details/iam-event-detail.tsx
17125
17191
  import { CheckCircle as CheckCircle2, Error as ErrorIcon, GppMaybe as GppMaybe4 } from "@mui/icons-material";
17126
- import { Box as Box10, Chip, Typography as Typography8 } from "@mui/material";
17127
- import { jsx as jsx134, jsxs as jsxs126 } from "react/jsx-runtime";
17128
- var DetailRow = ({ content, label }) => /* @__PURE__ */ jsxs126(Box10, { sx: { display: "grid", gap: 1, gridTemplateColumns: "72px 1fr", mb: 0.5 }, children: [
17129
- /* @__PURE__ */ jsx134(Typography8, { color: "text.secondary", sx: { fontWeight: 600 }, variant: "caption", children: label }),
17130
- /* @__PURE__ */ jsx134(Box10, { children: typeof content === "string" ? /* @__PURE__ */ jsx134(Typography8, { sx: { color: "text.primary", wordBreak: "break-word" }, variant: "caption", children: content }) : content })
17192
+ import { Box as Box11, Chip, Typography as Typography8 } from "@mui/material";
17193
+ import { jsx as jsx135, jsxs as jsxs126 } from "react/jsx-runtime";
17194
+ var DetailRow = ({ content, label }) => /* @__PURE__ */ jsxs126(Box11, { sx: { display: "grid", gap: 1, gridTemplateColumns: "72px 1fr", mb: 0.5 }, children: [
17195
+ /* @__PURE__ */ jsx135(Typography8, { color: "text.secondary", sx: { fontWeight: 600 }, variant: "caption", children: label }),
17196
+ /* @__PURE__ */ jsx135(Box11, { children: typeof content === "string" ? /* @__PURE__ */ jsx135(Typography8, { sx: { color: "text.primary", wordBreak: "break-word" }, variant: "caption", children: content }) : content })
17131
17197
  ] });
17132
17198
  var PermissionIcon = ({ status }) => {
17133
17199
  switch (status) {
17134
17200
  case "explicitly_allowed": {
17135
- return /* @__PURE__ */ jsx134(CheckCircle2, { sx: { color: "success.main", fontSize: "1rem" } });
17201
+ return /* @__PURE__ */ jsx135(CheckCircle2, { sx: { color: "success.main", fontSize: "1rem" } });
17136
17202
  }
17137
17203
  case "explicitly_denied": {
17138
- return /* @__PURE__ */ jsx134(ErrorIcon, { sx: { color: "error.main", fontSize: "1rem" } });
17204
+ return /* @__PURE__ */ jsx135(ErrorIcon, { sx: { color: "error.main", fontSize: "1rem" } });
17139
17205
  }
17140
17206
  case "implicitly_denied": {
17141
- return /* @__PURE__ */ jsx134(GppMaybe4, { sx: { color: "warning.main", fontSize: "1rem" } });
17207
+ return /* @__PURE__ */ jsx135(GppMaybe4, { sx: { color: "warning.main", fontSize: "1rem" } });
17142
17208
  }
17143
17209
  }
17144
17210
  };
17145
17211
  var IAMEventDetail = ({ event }) => {
17146
17212
  const payloadString = event.attributes?.payload;
17147
17213
  if (!payloadString) {
17148
- return /* @__PURE__ */ jsx134(Typography8, { color: "text.secondary", variant: "caption", children: "No IAM policy evaluation data available" });
17214
+ return /* @__PURE__ */ jsx135(Typography8, { color: "text.secondary", variant: "caption", children: "No IAM policy evaluation data available" });
17149
17215
  }
17150
17216
  const parsedIAM = parseIAMEvent(payloadString);
17151
17217
  if (!parsedIAM) {
17152
- return /* @__PURE__ */ jsx134(Typography8, { color: "text.secondary", variant: "caption", children: "Failed to parse IAM event data" });
17218
+ return /* @__PURE__ */ jsx135(Typography8, { color: "text.secondary", variant: "caption", children: "Failed to parse IAM event data" });
17153
17219
  }
17154
- return /* @__PURE__ */ jsxs126(Box10, { children: [
17155
- /* @__PURE__ */ jsx134(Box10, { sx: { mb: 1.5 }, children: /* @__PURE__ */ jsx134(
17220
+ return /* @__PURE__ */ jsxs126(Box11, { children: [
17221
+ /* @__PURE__ */ jsx135(Box11, { sx: { mb: 1.5 }, children: /* @__PURE__ */ jsx135(
17156
17222
  Chip,
17157
17223
  {
17158
- icon: /* @__PURE__ */ jsx134(PermissionIcon, { status: parsedIAM.permission }),
17224
+ icon: /* @__PURE__ */ jsx135(PermissionIcon, { status: parsedIAM.permission }),
17159
17225
  label: formatPermissionStatus(parsedIAM.permission),
17160
17226
  size: "small",
17161
17227
  sx: {
@@ -17165,36 +17231,36 @@ var IAMEventDetail = ({ event }) => {
17165
17231
  variant: "outlined"
17166
17232
  }
17167
17233
  ) }),
17168
- /* @__PURE__ */ jsx134(DetailRow, { content: `${parsedIAM.service}:${parsedIAM.operation}`, label: "Operation" }),
17169
- /* @__PURE__ */ jsx134(DetailRow, { content: parsedIAM.principal, label: "Principal" }),
17170
- parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ jsx134(
17234
+ /* @__PURE__ */ jsx135(DetailRow, { content: `${parsedIAM.service}:${parsedIAM.operation}`, label: "Operation" }),
17235
+ /* @__PURE__ */ jsx135(DetailRow, { content: parsedIAM.principal, label: "Principal" }),
17236
+ parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ jsx135(
17171
17237
  DetailRow,
17172
17238
  {
17173
- content: /* @__PURE__ */ jsx134(Box10, { children: parsedIAM.details.actions.map((action) => /* @__PURE__ */ jsx134(Typography8, { sx: { color: "text.primary", display: "block" }, variant: "caption", children: action }, action)) }),
17239
+ content: /* @__PURE__ */ jsx135(Box11, { children: parsedIAM.details.actions.map((action) => /* @__PURE__ */ jsx135(Typography8, { sx: { color: "text.primary", display: "block" }, variant: "caption", children: action }, action)) }),
17174
17240
  label: "Actions"
17175
17241
  }
17176
17242
  ),
17177
- parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ jsx134(
17243
+ parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ jsx135(
17178
17244
  DetailRow,
17179
17245
  {
17180
- content: /* @__PURE__ */ jsx134(Box10, { children: parsedIAM.details.resources.map((resource) => /* @__PURE__ */ jsx134(Typography8, { sx: { color: "text.primary", display: "block", wordBreak: "break-all" }, variant: "caption", children: resource }, resource)) }),
17246
+ content: /* @__PURE__ */ jsx135(Box11, { children: parsedIAM.details.resources.map((resource) => /* @__PURE__ */ jsx135(Typography8, { sx: { color: "text.primary", display: "block", wordBreak: "break-all" }, variant: "caption", children: resource }, resource)) }),
17181
17247
  label: "Resources"
17182
17248
  }
17183
17249
  ),
17184
- (parsedIAM.details.explicitAllows !== void 0 || parsedIAM.details.explicitDenies !== void 0 || parsedIAM.details.implicitDenies !== void 0) && /* @__PURE__ */ jsxs126(Box10, { sx: { mt: 1.5 }, children: [
17185
- /* @__PURE__ */ jsx134(Typography8, { color: "text.secondary", sx: { display: "block", fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Policy Evaluation" }),
17186
- /* @__PURE__ */ jsxs126(Box10, { sx: { display: "grid", gap: 1, gridTemplateColumns: "repeat(3, 1fr)" }, children: [
17187
- parsedIAM.details.explicitAllows !== void 0 && /* @__PURE__ */ jsxs126(Box10, { sx: { textAlign: "center" }, children: [
17188
- /* @__PURE__ */ jsx134(Typography8, { color: "success.main", sx: { display: "block", fontWeight: "bold" }, variant: "subtitle2", children: parsedIAM.details.explicitAllows }),
17189
- /* @__PURE__ */ jsx134(Typography8, { color: "text.secondary", variant: "caption", children: "Explicit Allows" })
17250
+ (parsedIAM.details.explicitAllows !== void 0 || parsedIAM.details.explicitDenies !== void 0 || parsedIAM.details.implicitDenies !== void 0) && /* @__PURE__ */ jsxs126(Box11, { sx: { mt: 1.5 }, children: [
17251
+ /* @__PURE__ */ jsx135(Typography8, { color: "text.secondary", sx: { display: "block", fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Policy Evaluation" }),
17252
+ /* @__PURE__ */ jsxs126(Box11, { sx: { display: "grid", gap: 1, gridTemplateColumns: "repeat(3, 1fr)" }, children: [
17253
+ parsedIAM.details.explicitAllows !== void 0 && /* @__PURE__ */ jsxs126(Box11, { sx: { textAlign: "center" }, children: [
17254
+ /* @__PURE__ */ jsx135(Typography8, { color: "success.main", sx: { display: "block", fontWeight: "bold" }, variant: "subtitle2", children: parsedIAM.details.explicitAllows }),
17255
+ /* @__PURE__ */ jsx135(Typography8, { color: "text.secondary", variant: "caption", children: "Explicit Allows" })
17190
17256
  ] }),
17191
- parsedIAM.details.explicitDenies !== void 0 && /* @__PURE__ */ jsxs126(Box10, { sx: { textAlign: "center" }, children: [
17192
- /* @__PURE__ */ jsx134(Typography8, { color: "error.main", sx: { display: "block", fontWeight: "bold" }, variant: "subtitle2", children: parsedIAM.details.explicitDenies }),
17193
- /* @__PURE__ */ jsx134(Typography8, { color: "text.secondary", variant: "caption", children: "Explicit Denies" })
17257
+ parsedIAM.details.explicitDenies !== void 0 && /* @__PURE__ */ jsxs126(Box11, { sx: { textAlign: "center" }, children: [
17258
+ /* @__PURE__ */ jsx135(Typography8, { color: "error.main", sx: { display: "block", fontWeight: "bold" }, variant: "subtitle2", children: parsedIAM.details.explicitDenies }),
17259
+ /* @__PURE__ */ jsx135(Typography8, { color: "text.secondary", variant: "caption", children: "Explicit Denies" })
17194
17260
  ] }),
17195
- parsedIAM.details.implicitDenies !== void 0 && /* @__PURE__ */ jsxs126(Box10, { sx: { textAlign: "center" }, children: [
17196
- /* @__PURE__ */ jsx134(Typography8, { color: "warning.main", sx: { display: "block", fontWeight: "bold" }, variant: "subtitle2", children: parsedIAM.details.implicitDenies }),
17197
- /* @__PURE__ */ jsx134(Typography8, { color: "text.secondary", variant: "caption", children: "Implicit Denies" })
17261
+ parsedIAM.details.implicitDenies !== void 0 && /* @__PURE__ */ jsxs126(Box11, { sx: { textAlign: "center" }, children: [
17262
+ /* @__PURE__ */ jsx135(Typography8, { color: "warning.main", sx: { display: "block", fontWeight: "bold" }, variant: "subtitle2", children: parsedIAM.details.implicitDenies }),
17263
+ /* @__PURE__ */ jsx135(Typography8, { color: "text.secondary", variant: "caption", children: "Implicit Denies" })
17198
17264
  ] })
17199
17265
  ] })
17200
17266
  ] })
@@ -17202,9 +17268,9 @@ var IAMEventDetail = ({ event }) => {
17202
17268
  };
17203
17269
 
17204
17270
  // src/components/event-details/iam-permission-detail.tsx
17205
- import { Box as Box11, Stack as Stack2, Typography as Typography9 } from "@mui/material";
17271
+ import { Box as Box12, Stack as Stack2, Typography as Typography9 } from "@mui/material";
17206
17272
  import { useMemo as useMemo5 } from "react";
17207
- import { jsx as jsx135, jsxs as jsxs127 } from "react/jsx-runtime";
17273
+ import { jsx as jsx136, jsxs as jsxs127 } from "react/jsx-runtime";
17208
17274
  var IAMPermissionItem = ({ event }) => {
17209
17275
  const parsedData = useMemo5(() => {
17210
17276
  const payloadString = event.attributes?.payload;
@@ -17217,40 +17283,40 @@ var IAMPermissionItem = ({ event }) => {
17217
17283
  return null;
17218
17284
  }
17219
17285
  const { parsedIAM } = parsedData;
17220
- return /* @__PURE__ */ jsx135(Box11, { sx: { mb: 0.5 }, children: /* @__PURE__ */ jsxs127(Stack2, { spacing: 1, children: [
17221
- /* @__PURE__ */ jsxs127(Box11, { "data-testid": EVENT_DETAILS_IAM_PRINCIPAL_TEST_ID, children: [
17222
- /* @__PURE__ */ jsx135(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Principal" }),
17286
+ return /* @__PURE__ */ jsx136(Box12, { sx: { mb: 0.5 }, children: /* @__PURE__ */ jsxs127(Stack2, { spacing: 1, children: [
17287
+ /* @__PURE__ */ jsxs127(Box12, { "data-testid": EVENT_DETAILS_IAM_PRINCIPAL_TEST_ID, children: [
17288
+ /* @__PURE__ */ jsx136(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Principal" }),
17223
17289
  /* @__PURE__ */ jsxs127(Stack2, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17224
- /* @__PURE__ */ jsx135(Typography9, { sx: { wordBreak: "break-all" }, variant: "body2", children: parsedIAM.principal }),
17225
- /* @__PURE__ */ jsx135(CopyButton, { value: parsedIAM.principal })
17290
+ /* @__PURE__ */ jsx136(Typography9, { sx: { wordBreak: "break-all" }, variant: "body2", children: parsedIAM.principal }),
17291
+ /* @__PURE__ */ jsx136(CopyButton, { value: parsedIAM.principal })
17226
17292
  ] })
17227
17293
  ] }),
17228
- parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ jsxs127(Box11, { "data-testid": EVENT_DETAILS_IAM_ACTIONS_TEST_ID, children: [
17229
- /* @__PURE__ */ jsx135(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Actions" }),
17294
+ parsedIAM.details.actions && parsedIAM.details.actions.length > 0 && /* @__PURE__ */ jsxs127(Box12, { "data-testid": EVENT_DETAILS_IAM_ACTIONS_TEST_ID, children: [
17295
+ /* @__PURE__ */ jsx136(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Actions" }),
17230
17296
  parsedIAM.details.actions.map((action) => /* @__PURE__ */ jsxs127(Stack2, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17231
- /* @__PURE__ */ jsx135(Typography9, { sx: { display: "block" }, variant: "body2", children: action }),
17232
- /* @__PURE__ */ jsx135(CopyButton, { value: action })
17297
+ /* @__PURE__ */ jsx136(Typography9, { sx: { display: "block" }, variant: "body2", children: action }),
17298
+ /* @__PURE__ */ jsx136(CopyButton, { value: action })
17233
17299
  ] }, action))
17234
17300
  ] }),
17235
- parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ jsxs127(Box11, { "data-testid": EVENT_DETAILS_IAM_RESOURCES_TEST_ID, children: [
17236
- /* @__PURE__ */ jsx135(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Resources" }),
17301
+ parsedIAM.details.resources && parsedIAM.details.resources.length > 0 && /* @__PURE__ */ jsxs127(Box12, { "data-testid": EVENT_DETAILS_IAM_RESOURCES_TEST_ID, children: [
17302
+ /* @__PURE__ */ jsx136(Typography9, { sx: { display: "block", fontWeight: 600 }, variant: "caption", children: "Resources" }),
17237
17303
  parsedIAM.details.resources.map((resource) => /* @__PURE__ */ jsxs127(Stack2, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
17238
- /* @__PURE__ */ jsx135(Typography9, { sx: { display: "block", wordBreak: "break-all" }, variant: "body2", children: resource }),
17239
- /* @__PURE__ */ jsx135(CopyButton, { value: resource })
17304
+ /* @__PURE__ */ jsx136(Typography9, { sx: { display: "block", wordBreak: "break-all" }, variant: "body2", children: resource }),
17305
+ /* @__PURE__ */ jsx136(CopyButton, { value: resource })
17240
17306
  ] }, resource))
17241
17307
  ] })
17242
17308
  ] }) });
17243
17309
  };
17244
- var IAMPermissionDetail = ({ events }) => /* @__PURE__ */ jsx135(Box11, { children: events.map((event) => /* @__PURE__ */ jsx135(IAMPermissionItem, { event }, `${event.span_id}-${event.event_id}`)) });
17310
+ var IAMPermissionDetail = ({ events }) => /* @__PURE__ */ jsx136(Box12, { children: events.map((event) => /* @__PURE__ */ jsx136(IAMPermissionItem, { event }, `${event.span_id}-${event.event_id}`)) });
17245
17311
 
17246
17312
  // src/components/event-details/payload-viewer.tsx
17247
- import { Box as Box13, useTheme as useTheme3 } from "@mui/material";
17313
+ import { Box as Box14, useTheme as useTheme3 } from "@mui/material";
17248
17314
 
17249
17315
  // node_modules/.pnpm/@textea+json-viewer@3.5.0_@emotion+react@11.14.0_@types+react@17.0.91_react@17.0.2__@em_040507e953752247cb848fd3f764690c/node_modules/@textea/json-viewer/dist/index.mjs
17250
17316
  var import_copy_to_clipboard = __toESM(require_copy_to_clipboard(), 1);
17251
- import { jsx as jsx136, jsxs as jsxs128, Fragment as Fragment8 } from "react/jsx-runtime";
17252
- import { Box as Box12, InputBase, NoSsr, SvgIcon, createTheme, ThemeProvider, Paper } from "@mui/material";
17253
- import { createContext as createContext9, useContext as useContext15, useState as useState10, useRef as useRef8, useCallback as useCallback4, useMemo as useMemo6, useEffect as useEffect12, memo as memo9 } from "react";
17317
+ import { jsx as jsx137, jsxs as jsxs128, Fragment as Fragment8 } from "react/jsx-runtime";
17318
+ import { Box as Box13, InputBase, NoSsr, SvgIcon, createTheme, ThemeProvider, Paper } from "@mui/material";
17319
+ import { createContext as createContext8, useContext as useContext14, useState as useState10, useRef as useRef8, useCallback as useCallback4, useMemo as useMemo6, useEffect as useEffect12, memo as memo10 } from "react";
17254
17320
  import { create, useStore, createStore } from "zustand";
17255
17321
  function r(e2) {
17256
17322
  var t, f2, n = "";
@@ -17366,10 +17432,10 @@ var createJsonViewerStore = (props) => {
17366
17432
  };
17367
17433
  });
17368
17434
  };
17369
- var JsonViewerStoreContext = createContext9(void 0);
17435
+ var JsonViewerStoreContext = createContext8(void 0);
17370
17436
  JsonViewerStoreContext.Provider;
17371
17437
  var useJsonViewerStore = (selector2, equalityFn) => {
17372
- const store = useContext15(JsonViewerStoreContext);
17438
+ const store = useContext14(JsonViewerStoreContext);
17373
17439
  return useStore(store, selector2, equalityFn);
17374
17440
  };
17375
17441
  var useTextColor = () => {
@@ -17603,7 +17669,7 @@ function useInspect(path, value, nestedIndex) {
17603
17669
  setInspect
17604
17670
  ];
17605
17671
  }
17606
- var DataBox = (props) => /* @__PURE__ */ jsx136(Box12, {
17672
+ var DataBox = (props) => /* @__PURE__ */ jsx137(Box13, {
17607
17673
  component: "div",
17608
17674
  ...props,
17609
17675
  sx: {
@@ -17614,7 +17680,7 @@ var DataBox = (props) => /* @__PURE__ */ jsx136(Box12, {
17614
17680
  var DataTypeLabel = (param) => {
17615
17681
  let { dataType, enable = true } = param;
17616
17682
  if (!enable) return null;
17617
- return /* @__PURE__ */ jsx136(DataBox, {
17683
+ return /* @__PURE__ */ jsx137(DataBox, {
17618
17684
  className: "data-type-label",
17619
17685
  sx: {
17620
17686
  mx: 0.5,
@@ -17627,7 +17693,7 @@ var DataTypeLabel = (param) => {
17627
17693
  };
17628
17694
  function defineEasyType(param) {
17629
17695
  let { is, serialize, deserialize, type, colorKey, displayTypeLabel = true, Renderer } = param;
17630
- const Render = /* @__PURE__ */ memo9(Renderer);
17696
+ const Render = /* @__PURE__ */ memo10(Renderer);
17631
17697
  const EasyType = (props) => {
17632
17698
  const storeDisplayDataTypes = useJsonViewerStore((store) => store.displayDataTypes);
17633
17699
  const color2 = useJsonViewerStore((store) => store.colorspace[colorKey]);
@@ -17638,12 +17704,12 @@ function defineEasyType(param) {
17638
17704
  color: color2
17639
17705
  },
17640
17706
  children: [
17641
- displayTypeLabel && storeDisplayDataTypes && /* @__PURE__ */ jsx136(DataTypeLabel, {
17707
+ displayTypeLabel && storeDisplayDataTypes && /* @__PURE__ */ jsx137(DataTypeLabel, {
17642
17708
  dataType: type
17643
17709
  }),
17644
- /* @__PURE__ */ jsx136(DataBox, {
17710
+ /* @__PURE__ */ jsx137(DataBox, {
17645
17711
  className: "".concat(type, "-value"),
17646
- children: /* @__PURE__ */ jsx136(Render, {
17712
+ children: /* @__PURE__ */ jsx137(Render, {
17647
17713
  path: props.path,
17648
17714
  inspect: props.inspect,
17649
17715
  setInspect: props.setInspect,
@@ -17683,7 +17749,7 @@ function defineEasyType(param) {
17683
17749
  }, [
17684
17750
  setValue
17685
17751
  ]);
17686
- return /* @__PURE__ */ jsx136(InputBase, {
17752
+ return /* @__PURE__ */ jsx137(InputBase, {
17687
17753
  autoFocus: true,
17688
17754
  value,
17689
17755
  onChange: handleChange,
@@ -17723,7 +17789,7 @@ var booleanType = defineEasyType({
17723
17789
  },
17724
17790
  Renderer: (param) => {
17725
17791
  let { value } = param;
17726
- return /* @__PURE__ */ jsx136(Fragment8, {
17792
+ return /* @__PURE__ */ jsx137(Fragment8, {
17727
17793
  children: value ? "true" : "false"
17728
17794
  });
17729
17795
  }
@@ -17742,7 +17808,7 @@ var dateType = defineEasyType({
17742
17808
  colorKey: "base0D",
17743
17809
  Renderer: (param) => {
17744
17810
  let { value } = param;
17745
- return /* @__PURE__ */ jsx136(Fragment8, {
17811
+ return /* @__PURE__ */ jsx137(Fragment8, {
17746
17812
  children: value.toLocaleTimeString("en-us", displayOptions)
17747
17813
  });
17748
17814
  }
@@ -17773,10 +17839,10 @@ var rb = "}";
17773
17839
  var PreFunctionType = (props) => {
17774
17840
  return /* @__PURE__ */ jsxs128(NoSsr, {
17775
17841
  children: [
17776
- /* @__PURE__ */ jsx136(DataTypeLabel, {
17842
+ /* @__PURE__ */ jsx137(DataTypeLabel, {
17777
17843
  dataType: "function"
17778
17844
  }),
17779
- /* @__PURE__ */ jsxs128(Box12, {
17845
+ /* @__PURE__ */ jsxs128(Box13, {
17780
17846
  component: "span",
17781
17847
  className: "data-function-start",
17782
17848
  sx: {
@@ -17792,8 +17858,8 @@ var PreFunctionType = (props) => {
17792
17858
  });
17793
17859
  };
17794
17860
  var PostFunctionType = () => {
17795
- return /* @__PURE__ */ jsx136(NoSsr, {
17796
- children: /* @__PURE__ */ jsx136(Box12, {
17861
+ return /* @__PURE__ */ jsx137(NoSsr, {
17862
+ children: /* @__PURE__ */ jsx137(Box13, {
17797
17863
  component: "span",
17798
17864
  className: "data-function-end",
17799
17865
  children: rb
@@ -17802,15 +17868,15 @@ var PostFunctionType = () => {
17802
17868
  };
17803
17869
  var FunctionType = (props) => {
17804
17870
  const functionColor = useJsonViewerStore((store) => store.colorspace.base05);
17805
- return /* @__PURE__ */ jsx136(NoSsr, {
17806
- children: /* @__PURE__ */ jsx136(Box12, {
17871
+ return /* @__PURE__ */ jsx137(NoSsr, {
17872
+ children: /* @__PURE__ */ jsx137(Box13, {
17807
17873
  className: "data-function",
17808
17874
  sx: {
17809
17875
  display: props.inspect ? "block" : "inline-block",
17810
17876
  pl: props.inspect ? 2 : 0,
17811
17877
  color: functionColor
17812
17878
  },
17813
- children: props.inspect ? functionBody(props.value) : /* @__PURE__ */ jsx136(Box12, {
17879
+ children: props.inspect ? functionBody(props.value) : /* @__PURE__ */ jsx137(Box13, {
17814
17880
  component: "span",
17815
17881
  className: "data-function-body",
17816
17882
  onClick: () => props.setInspect(true),
@@ -17838,7 +17904,7 @@ var nullType = defineEasyType({
17838
17904
  displayTypeLabel: false,
17839
17905
  Renderer: () => {
17840
17906
  const backgroundColor = useJsonViewerStore((store) => store.colorspace.base02);
17841
- return /* @__PURE__ */ jsx136(Box12, {
17907
+ return /* @__PURE__ */ jsx137(Box13, {
17842
17908
  sx: {
17843
17909
  fontSize: "0.8rem",
17844
17910
  backgroundColor,
@@ -17861,7 +17927,7 @@ var nanType = defineEasyType({
17861
17927
  deserialize: (value) => parseFloat(value),
17862
17928
  Renderer: () => {
17863
17929
  const backgroundColor = useJsonViewerStore((store) => store.colorspace.base02);
17864
- return /* @__PURE__ */ jsx136(Box12, {
17930
+ return /* @__PURE__ */ jsx137(Box13, {
17865
17931
  sx: {
17866
17932
  backgroundColor,
17867
17933
  fontSize: "0.8rem",
@@ -17881,7 +17947,7 @@ var floatType = defineEasyType({
17881
17947
  deserialize: (value) => parseFloat(value),
17882
17948
  Renderer: (param) => {
17883
17949
  let { value } = param;
17884
- return /* @__PURE__ */ jsx136(Fragment8, {
17950
+ return /* @__PURE__ */ jsx137(Fragment8, {
17885
17951
  children: value
17886
17952
  });
17887
17953
  }
@@ -17895,7 +17961,7 @@ var intType = defineEasyType({
17895
17961
  deserialize: (value) => parseFloat(value),
17896
17962
  Renderer: (param) => {
17897
17963
  let { value } = param;
17898
- return /* @__PURE__ */ jsx136(Fragment8, {
17964
+ return /* @__PURE__ */ jsx137(Fragment8, {
17899
17965
  children: value
17900
17966
  });
17901
17967
  }
@@ -17908,16 +17974,16 @@ var bigIntType = defineEasyType({
17908
17974
  deserialize: (value) => BigInt(value.replace(/\D/g, "")),
17909
17975
  Renderer: (param) => {
17910
17976
  let { value } = param;
17911
- return /* @__PURE__ */ jsx136(Fragment8, {
17977
+ return /* @__PURE__ */ jsx137(Fragment8, {
17912
17978
  children: "".concat(value, "n")
17913
17979
  });
17914
17980
  }
17915
17981
  });
17916
17982
  var BaseIcon = (param) => {
17917
17983
  let { d: d2, ...props } = param;
17918
- return /* @__PURE__ */ jsx136(SvgIcon, {
17984
+ return /* @__PURE__ */ jsx137(SvgIcon, {
17919
17985
  ...props,
17920
- children: /* @__PURE__ */ jsx136("path", {
17986
+ children: /* @__PURE__ */ jsx137("path", {
17921
17987
  d: d2
17922
17988
  })
17923
17989
  });
@@ -17932,55 +17998,55 @@ var Edit = "M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.3
17932
17998
  var ExpandMore = "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z";
17933
17999
  var Delete = "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5l-1-1h-5l-1 1H5v2h14V4z";
17934
18000
  var AddBoxIcon = (props) => {
17935
- return /* @__PURE__ */ jsx136(BaseIcon, {
18001
+ return /* @__PURE__ */ jsx137(BaseIcon, {
17936
18002
  d: AddBox,
17937
18003
  ...props
17938
18004
  });
17939
18005
  };
17940
18006
  var CheckIcon = (props) => {
17941
- return /* @__PURE__ */ jsx136(BaseIcon, {
18007
+ return /* @__PURE__ */ jsx137(BaseIcon, {
17942
18008
  d: Check2,
17943
18009
  ...props
17944
18010
  });
17945
18011
  };
17946
18012
  var ChevronRightIcon = (props) => {
17947
- return /* @__PURE__ */ jsx136(BaseIcon, {
18013
+ return /* @__PURE__ */ jsx137(BaseIcon, {
17948
18014
  d: ChevronRight,
17949
18015
  ...props
17950
18016
  });
17951
18017
  };
17952
18018
  var CircularArrowsIcon = (props) => {
17953
- return /* @__PURE__ */ jsx136(BaseIcon, {
18019
+ return /* @__PURE__ */ jsx137(BaseIcon, {
17954
18020
  d: CircularArrows,
17955
18021
  ...props
17956
18022
  });
17957
18023
  };
17958
18024
  var CloseIcon = (props) => {
17959
- return /* @__PURE__ */ jsx136(BaseIcon, {
18025
+ return /* @__PURE__ */ jsx137(BaseIcon, {
17960
18026
  d: Close2,
17961
18027
  ...props
17962
18028
  });
17963
18029
  };
17964
18030
  var ContentCopyIcon = (props) => {
17965
- return /* @__PURE__ */ jsx136(BaseIcon, {
18031
+ return /* @__PURE__ */ jsx137(BaseIcon, {
17966
18032
  d: ContentCopy2,
17967
18033
  ...props
17968
18034
  });
17969
18035
  };
17970
18036
  var EditIcon = (props) => {
17971
- return /* @__PURE__ */ jsx136(BaseIcon, {
18037
+ return /* @__PURE__ */ jsx137(BaseIcon, {
17972
18038
  d: Edit,
17973
18039
  ...props
17974
18040
  });
17975
18041
  };
17976
18042
  var ExpandMoreIcon = (props) => {
17977
- return /* @__PURE__ */ jsx136(BaseIcon, {
18043
+ return /* @__PURE__ */ jsx137(BaseIcon, {
17978
18044
  d: ExpandMore,
17979
18045
  ...props
17980
18046
  });
17981
18047
  };
17982
18048
  var DeleteIcon = (props) => {
17983
- return /* @__PURE__ */ jsx136(BaseIcon, {
18049
+ return /* @__PURE__ */ jsx137(BaseIcon, {
17984
18050
  d: Delete,
17985
18051
  ...props
17986
18052
  });
@@ -18019,7 +18085,7 @@ var PreObjectType = (props) => {
18019
18085
  props.value
18020
18086
  ]);
18021
18087
  const isTrap = useIsCycleReference(props.path, props.value);
18022
- return /* @__PURE__ */ jsxs128(Box12, {
18088
+ return /* @__PURE__ */ jsxs128(Box13, {
18023
18089
  component: "span",
18024
18090
  className: "data-object-start",
18025
18091
  sx: {
@@ -18027,7 +18093,7 @@ var PreObjectType = (props) => {
18027
18093
  },
18028
18094
  children: [
18029
18095
  isArrayLike ? arrayLb : objectLb,
18030
- shouldDisplaySize && props.inspect && !isEmptyValue && /* @__PURE__ */ jsx136(Box12, {
18096
+ shouldDisplaySize && props.inspect && !isEmptyValue && /* @__PURE__ */ jsx137(Box13, {
18031
18097
  component: "span",
18032
18098
  sx: {
18033
18099
  pl: 0.5,
@@ -18039,14 +18105,14 @@ var PreObjectType = (props) => {
18039
18105
  }),
18040
18106
  isTrap && !props.inspect && /* @__PURE__ */ jsxs128(Fragment8, {
18041
18107
  children: [
18042
- /* @__PURE__ */ jsx136(CircularArrowsIcon, {
18108
+ /* @__PURE__ */ jsx137(CircularArrowsIcon, {
18043
18109
  sx: {
18044
18110
  fontSize: 12,
18045
18111
  color: textColor,
18046
18112
  mx: 0.5
18047
18113
  }
18048
18114
  }),
18049
- /* @__PURE__ */ jsx136(DataBox, {
18115
+ /* @__PURE__ */ jsx137(DataBox, {
18050
18116
  sx: {
18051
18117
  cursor: "pointer",
18052
18118
  userSelect: "none"
@@ -18076,7 +18142,7 @@ var PostObjectType = (props) => {
18076
18142
  props.path,
18077
18143
  props.value
18078
18144
  ]);
18079
- return /* @__PURE__ */ jsxs128(Box12, {
18145
+ return /* @__PURE__ */ jsxs128(Box13, {
18080
18146
  component: "span",
18081
18147
  className: "data-object-end",
18082
18148
  sx: {
@@ -18087,7 +18153,7 @@ var PostObjectType = (props) => {
18087
18153
  },
18088
18154
  children: [
18089
18155
  isArrayLike ? arrayRb : objectRb,
18090
- shouldDisplaySize && (isEmptyValue || !props.inspect) ? /* @__PURE__ */ jsx136(Box12, {
18156
+ shouldDisplaySize && (isEmptyValue || !props.inspect) ? /* @__PURE__ */ jsx137(Box13, {
18091
18157
  component: "span",
18092
18158
  sx: {
18093
18159
  pl: 0.5,
@@ -18127,7 +18193,7 @@ var ObjectType = (props) => {
18127
18193
  ...props.path,
18128
18194
  key
18129
18195
  ];
18130
- elements3.push(/* @__PURE__ */ jsx136(DataKeyPair, {
18196
+ elements3.push(/* @__PURE__ */ jsx137(DataKeyPair, {
18131
18197
  path,
18132
18198
  value: value2,
18133
18199
  prevValue: props.prevValue instanceof Map ? props.prevValue.get(k2) : void 0,
@@ -18143,7 +18209,7 @@ var ObjectType = (props) => {
18143
18209
  while (true) {
18144
18210
  const nextResult = iterator2.next();
18145
18211
  var _nextResult_done;
18146
- elements3.push(/* @__PURE__ */ jsx136(DataKeyPair, {
18212
+ elements3.push(/* @__PURE__ */ jsx137(DataKeyPair, {
18147
18213
  path: [
18148
18214
  ...props.path,
18149
18215
  "iterator:".concat(count2)
@@ -18171,7 +18237,7 @@ var ObjectType = (props) => {
18171
18237
  ...props.path,
18172
18238
  index
18173
18239
  ];
18174
- return /* @__PURE__ */ jsx136(DataKeyPair, {
18240
+ return /* @__PURE__ */ jsx137(DataKeyPair, {
18175
18241
  path,
18176
18242
  value: value2,
18177
18243
  prevValue: Array.isArray(props.prevValue) ? props.prevValue[index] : void 0,
@@ -18203,7 +18269,7 @@ var ObjectType = (props) => {
18203
18269
  const prevElements = Array.isArray(props.prevValue) ? segmentArray(props.prevValue, groupArraysAfterLength) : void 0;
18204
18270
  const elementsLastIndex = elements3.length - 1;
18205
18271
  return elements3.map((list, index) => {
18206
- return /* @__PURE__ */ jsx136(DataKeyPair, {
18272
+ return /* @__PURE__ */ jsx137(DataKeyPair, {
18207
18273
  path: props.path,
18208
18274
  value: list,
18209
18275
  nestedIndex: index,
@@ -18230,7 +18296,7 @@ var ObjectType = (props) => {
18230
18296
  ...props.path,
18231
18297
  key
18232
18298
  ];
18233
- return /* @__PURE__ */ jsx136(DataKeyPair, {
18299
+ return /* @__PURE__ */ jsx137(DataKeyPair, {
18234
18300
  path,
18235
18301
  value: value2,
18236
18302
  prevValue: (_props_prevValue = props.prevValue) === null || _props_prevValue === void 0 ? void 0 : _props_prevValue[key],
@@ -18277,7 +18343,7 @@ var ObjectType = (props) => {
18277
18343
  if (isEmptyValue) {
18278
18344
  return null;
18279
18345
  }
18280
- return /* @__PURE__ */ jsx136(Box12, {
18346
+ return /* @__PURE__ */ jsx137(Box13, {
18281
18347
  className: "data-object",
18282
18348
  sx: {
18283
18349
  display: props.inspect ? "block" : "inline-block",
@@ -18286,7 +18352,7 @@ var ObjectType = (props) => {
18286
18352
  color: keyColor,
18287
18353
  borderLeft: props.inspect ? "1px solid ".concat(borderColor) : "none"
18288
18354
  },
18289
- children: props.inspect ? elements : !isTrap && /* @__PURE__ */ jsx136(Box12, {
18355
+ children: props.inspect ? elements : !isTrap && /* @__PURE__ */ jsx137(Box13, {
18290
18356
  component: "span",
18291
18357
  className: "data-object-body",
18292
18358
  onClick: () => props.setInspect(true),
@@ -18318,7 +18384,7 @@ var stringType = defineEasyType({
18318
18384
  const collapseStringsAfterLength = useJsonViewerStore((store) => store.collapseStringsAfterLength);
18319
18385
  const value = showRest ? props.value : props.value.slice(0, collapseStringsAfterLength);
18320
18386
  const hasRest = props.value.length > collapseStringsAfterLength;
18321
- return /* @__PURE__ */ jsxs128(Box12, {
18387
+ return /* @__PURE__ */ jsxs128(Box13, {
18322
18388
  component: "span",
18323
18389
  sx: {
18324
18390
  overflowWrap: "anywhere",
@@ -18336,7 +18402,7 @@ var stringType = defineEasyType({
18336
18402
  children: [
18337
18403
  '"',
18338
18404
  value,
18339
- hasRest && !showRest && /* @__PURE__ */ jsx136(Box12, {
18405
+ hasRest && !showRest && /* @__PURE__ */ jsx137(Box13, {
18340
18406
  component: "span",
18341
18407
  sx: {
18342
18408
  padding: 0.5
@@ -18355,7 +18421,7 @@ var undefinedType = defineEasyType({
18355
18421
  displayTypeLabel: false,
18356
18422
  Renderer: () => {
18357
18423
  const backgroundColor = useJsonViewerStore((store) => store.colorspace.base02);
18358
- return /* @__PURE__ */ jsx136(Box12, {
18424
+ return /* @__PURE__ */ jsx137(Box13, {
18359
18425
  sx: {
18360
18426
  fontSize: "0.7rem",
18361
18427
  backgroundColor,
@@ -18371,17 +18437,17 @@ function memorizeDataType(dataType) {
18371
18437
  var _prevProps_path, _nextProps_path;
18372
18438
  return Object.is(prevProps.value, nextProps.value) && prevProps.inspect && nextProps.inspect && ((_prevProps_path = prevProps.path) === null || _prevProps_path === void 0 ? void 0 : _prevProps_path.join(".")) === ((_nextProps_path = nextProps.path) === null || _nextProps_path === void 0 ? void 0 : _nextProps_path.join("."));
18373
18439
  }
18374
- dataType.Component = /* @__PURE__ */ memo9(dataType.Component, compare);
18440
+ dataType.Component = /* @__PURE__ */ memo10(dataType.Component, compare);
18375
18441
  if (dataType.Editor) {
18376
- dataType.Editor = /* @__PURE__ */ memo9(dataType.Editor, function compare2(prevProps, nextProps) {
18442
+ dataType.Editor = /* @__PURE__ */ memo10(dataType.Editor, function compare2(prevProps, nextProps) {
18377
18443
  return Object.is(prevProps.value, nextProps.value);
18378
18444
  });
18379
18445
  }
18380
18446
  if (dataType.PreComponent) {
18381
- dataType.PreComponent = /* @__PURE__ */ memo9(dataType.PreComponent, compare);
18447
+ dataType.PreComponent = /* @__PURE__ */ memo10(dataType.PreComponent, compare);
18382
18448
  }
18383
18449
  if (dataType.PostComponent) {
18384
- dataType.PostComponent = /* @__PURE__ */ memo9(dataType.PostComponent, compare);
18450
+ dataType.PostComponent = /* @__PURE__ */ memo10(dataType.PostComponent, compare);
18385
18451
  }
18386
18452
  return dataType;
18387
18453
  }
@@ -18407,10 +18473,10 @@ var createTypeRegistryStore = () => {
18407
18473
  }
18408
18474
  }));
18409
18475
  };
18410
- var TypeRegistryStoreContext = /* @__PURE__ */ createContext9(void 0);
18476
+ var TypeRegistryStoreContext = /* @__PURE__ */ createContext8(void 0);
18411
18477
  TypeRegistryStoreContext.Provider;
18412
18478
  var useTypeRegistryStore = (selector2, equalityFn) => {
18413
- const store = useContext15(TypeRegistryStoreContext);
18479
+ const store = useContext14(TypeRegistryStoreContext);
18414
18480
  return useStore(store, selector2, equalityFn);
18415
18481
  };
18416
18482
  function matchTypeComponents(value, path, registry) {
@@ -18436,7 +18502,7 @@ function useTypeComponents(value, path) {
18436
18502
  registry
18437
18503
  ]);
18438
18504
  }
18439
- var IconBox = (props) => /* @__PURE__ */ jsx136(Box12, {
18505
+ var IconBox = (props) => /* @__PURE__ */ jsx137(Box13, {
18440
18506
  component: "span",
18441
18507
  ...props,
18442
18508
  sx: {
@@ -18624,16 +18690,16 @@ var DataKeyPair = (props) => {
18624
18690
  if (editing) {
18625
18691
  return /* @__PURE__ */ jsxs128(Fragment8, {
18626
18692
  children: [
18627
- /* @__PURE__ */ jsx136(IconBox, {
18628
- children: /* @__PURE__ */ jsx136(CloseIcon, {
18693
+ /* @__PURE__ */ jsx137(IconBox, {
18694
+ children: /* @__PURE__ */ jsx137(CloseIcon, {
18629
18695
  sx: {
18630
18696
  fontSize: ".8rem"
18631
18697
  },
18632
18698
  onClick: abortEditing
18633
18699
  })
18634
18700
  }),
18635
- /* @__PURE__ */ jsx136(IconBox, {
18636
- children: /* @__PURE__ */ jsx136(CheckIcon, {
18701
+ /* @__PURE__ */ jsx137(IconBox, {
18702
+ children: /* @__PURE__ */ jsx137(CheckIcon, {
18637
18703
  sx: {
18638
18704
  fontSize: ".8rem"
18639
18705
  },
@@ -18645,7 +18711,7 @@ var DataKeyPair = (props) => {
18645
18711
  }
18646
18712
  return /* @__PURE__ */ jsxs128(Fragment8, {
18647
18713
  children: [
18648
- enableClipboard && /* @__PURE__ */ jsx136(IconBox, {
18714
+ enableClipboard && /* @__PURE__ */ jsx137(IconBox, {
18649
18715
  onClick: (event) => {
18650
18716
  event.preventDefault();
18651
18717
  try {
@@ -18654,41 +18720,41 @@ var DataKeyPair = (props) => {
18654
18720
  console.error(e2);
18655
18721
  }
18656
18722
  },
18657
- children: copied ? /* @__PURE__ */ jsx136(CheckIcon, {
18723
+ children: copied ? /* @__PURE__ */ jsx137(CheckIcon, {
18658
18724
  sx: {
18659
18725
  fontSize: ".8rem"
18660
18726
  }
18661
- }) : /* @__PURE__ */ jsx136(ContentCopyIcon, {
18727
+ }) : /* @__PURE__ */ jsx137(ContentCopyIcon, {
18662
18728
  sx: {
18663
18729
  fontSize: ".8rem"
18664
18730
  }
18665
18731
  })
18666
18732
  }),
18667
- Editor && editable && serialize && deserialize && /* @__PURE__ */ jsx136(IconBox, {
18733
+ Editor && editable && serialize && deserialize && /* @__PURE__ */ jsx137(IconBox, {
18668
18734
  onClick: startEditing,
18669
- children: /* @__PURE__ */ jsx136(EditIcon, {
18735
+ children: /* @__PURE__ */ jsx137(EditIcon, {
18670
18736
  sx: {
18671
18737
  fontSize: ".8rem"
18672
18738
  }
18673
18739
  })
18674
18740
  }),
18675
- enableAdd && /* @__PURE__ */ jsx136(IconBox, {
18741
+ enableAdd && /* @__PURE__ */ jsx137(IconBox, {
18676
18742
  onClick: (event) => {
18677
18743
  event.preventDefault();
18678
18744
  onAdd === null || onAdd === void 0 ? void 0 : onAdd(path);
18679
18745
  },
18680
- children: /* @__PURE__ */ jsx136(AddBoxIcon, {
18746
+ children: /* @__PURE__ */ jsx137(AddBoxIcon, {
18681
18747
  sx: {
18682
18748
  fontSize: ".8rem"
18683
18749
  }
18684
18750
  })
18685
18751
  }),
18686
- enableDelete && /* @__PURE__ */ jsx136(IconBox, {
18752
+ enableDelete && /* @__PURE__ */ jsx137(IconBox, {
18687
18753
  onClick: (event) => {
18688
18754
  event.preventDefault();
18689
18755
  onDelete === null || onDelete === void 0 ? void 0 : onDelete(path, value);
18690
18756
  },
18691
- children: /* @__PURE__ */ jsx136(DeleteIcon, {
18757
+ children: /* @__PURE__ */ jsx137(DeleteIcon, {
18692
18758
  sx: {
18693
18759
  fontSize: ".9rem"
18694
18760
  }
@@ -18736,7 +18802,7 @@ var DataKeyPair = (props) => {
18736
18802
  prevValue,
18737
18803
  nestedIndex
18738
18804
  ]);
18739
- return /* @__PURE__ */ jsxs128(Box12, {
18805
+ return /* @__PURE__ */ jsxs128(Box13, {
18740
18806
  className: "data-key-pair",
18741
18807
  "data-testid": "data-key-pair" + path.join("."),
18742
18808
  sx: {
@@ -18769,7 +18835,7 @@ var DataKeyPair = (props) => {
18769
18835
  setInspect
18770
18836
  ]),
18771
18837
  children: [
18772
- expandable ? inspect ? /* @__PURE__ */ jsx136(ExpandMoreIcon, {
18838
+ expandable ? inspect ? /* @__PURE__ */ jsx137(ExpandMoreIcon, {
18773
18839
  className: "data-key-toggle-expanded",
18774
18840
  sx: {
18775
18841
  fontSize: ".8rem",
@@ -18777,7 +18843,7 @@ var DataKeyPair = (props) => {
18777
18843
  cursor: "pointer"
18778
18844
  }
18779
18845
  }
18780
- }) : /* @__PURE__ */ jsx136(ChevronRightIcon, {
18846
+ }) : /* @__PURE__ */ jsx137(ChevronRightIcon, {
18781
18847
  className: "data-key-toggle-collapsed",
18782
18848
  sx: {
18783
18849
  fontSize: ".8rem",
@@ -18786,7 +18852,7 @@ var DataKeyPair = (props) => {
18786
18852
  }
18787
18853
  }
18788
18854
  }) : null,
18789
- /* @__PURE__ */ jsx136(Box12, {
18855
+ /* @__PURE__ */ jsx137(Box13, {
18790
18856
  ref: highlightContainer,
18791
18857
  className: "data-key-key",
18792
18858
  component: "span",
@@ -18796,11 +18862,11 @@ var DataKeyPair = (props) => {
18796
18862
  rootName,
18797
18863
  '"'
18798
18864
  ]
18799
- }) : /* @__PURE__ */ jsx136(Fragment8, {
18865
+ }) : /* @__PURE__ */ jsx137(Fragment8, {
18800
18866
  children: rootName
18801
- }) : null : KeyRenderer.when(downstreamProps) ? /* @__PURE__ */ jsx136(KeyRenderer, {
18867
+ }) : null : KeyRenderer.when(downstreamProps) ? /* @__PURE__ */ jsx137(KeyRenderer, {
18802
18868
  ...downstreamProps
18803
- }) : nestedIndex === void 0 && (isNumberKey ? /* @__PURE__ */ jsx136(Box12, {
18869
+ }) : nestedIndex === void 0 && (isNumberKey ? /* @__PURE__ */ jsx137(Box13, {
18804
18870
  component: "span",
18805
18871
  style: {
18806
18872
  color: numberKeyColor,
@@ -18813,17 +18879,17 @@ var DataKeyPair = (props) => {
18813
18879
  key,
18814
18880
  '"'
18815
18881
  ]
18816
- }) : /* @__PURE__ */ jsx136(Fragment8, {
18882
+ }) : /* @__PURE__ */ jsx137(Fragment8, {
18817
18883
  children: key
18818
18884
  }))
18819
18885
  }),
18820
- isRoot ? rootName !== false && /* @__PURE__ */ jsx136(DataBox, {
18886
+ isRoot ? rootName !== false && /* @__PURE__ */ jsx137(DataBox, {
18821
18887
  className: "data-key-colon",
18822
18888
  sx: {
18823
18889
  mr: 0.5
18824
18890
  },
18825
18891
  children: ":"
18826
- }) : nestedIndex === void 0 && /* @__PURE__ */ jsx136(DataBox, {
18892
+ }) : nestedIndex === void 0 && /* @__PURE__ */ jsx137(DataBox, {
18827
18893
  className: "data-key-colon",
18828
18894
  sx: {
18829
18895
  mr: 0.5,
@@ -18834,29 +18900,29 @@ var DataKeyPair = (props) => {
18834
18900
  },
18835
18901
  children: ":"
18836
18902
  }),
18837
- PreComponent && /* @__PURE__ */ jsx136(PreComponent, {
18903
+ PreComponent && /* @__PURE__ */ jsx137(PreComponent, {
18838
18904
  ...downstreamProps
18839
18905
  }),
18840
18906
  isHover && expandable && inspect && actionIcons
18841
18907
  ]
18842
18908
  }),
18843
- editing && editable ? Editor && /* @__PURE__ */ jsx136(Editor, {
18909
+ editing && editable ? Editor && /* @__PURE__ */ jsx137(Editor, {
18844
18910
  path,
18845
18911
  value: tempValue,
18846
18912
  setValue: setTempValue,
18847
18913
  abortEditing,
18848
18914
  commitEditing
18849
- }) : Component ? /* @__PURE__ */ jsx136(Component, {
18915
+ }) : Component ? /* @__PURE__ */ jsx137(Component, {
18850
18916
  ...downstreamProps
18851
- }) : /* @__PURE__ */ jsx136(Box12, {
18917
+ }) : /* @__PURE__ */ jsx137(Box13, {
18852
18918
  component: "span",
18853
18919
  className: "data-value-fallback",
18854
18920
  children: "fallback: ".concat(value)
18855
18921
  }),
18856
- PostComponent && /* @__PURE__ */ jsx136(PostComponent, {
18922
+ PostComponent && /* @__PURE__ */ jsx137(PostComponent, {
18857
18923
  ...downstreamProps
18858
18924
  }),
18859
- !last && displayComma && /* @__PURE__ */ jsx136(DataBox, {
18925
+ !last && displayComma && /* @__PURE__ */ jsx137(DataBox, {
18860
18926
  children: ","
18861
18927
  }),
18862
18928
  isHover && expandable && !inspect && actionIcons,
@@ -18878,7 +18944,7 @@ function useThemeDetector() {
18878
18944
  return isDark;
18879
18945
  }
18880
18946
  function useSetIfNotUndefinedEffect(key, value) {
18881
- const { setState } = useContext15(JsonViewerStoreContext);
18947
+ const { setState } = useContext14(JsonViewerStoreContext);
18882
18948
  useEffect12(() => {
18883
18949
  if (value !== void 0) {
18884
18950
  setState({
@@ -18892,7 +18958,7 @@ function useSetIfNotUndefinedEffect(key, value) {
18892
18958
  ]);
18893
18959
  }
18894
18960
  var JsonViewerInner = (props) => {
18895
- const { setState } = useContext15(JsonViewerStoreContext);
18961
+ const { setState } = useContext14(JsonViewerStoreContext);
18896
18962
  useEffect12(() => {
18897
18963
  setState((state) => ({
18898
18964
  prevValue: state.value,
@@ -18976,7 +19042,7 @@ var JsonViewerInner = (props) => {
18976
19042
  const onMouseLeave = useCallback4(() => setHover(null), [
18977
19043
  setHover
18978
19044
  ]);
18979
- return /* @__PURE__ */ jsx136(Paper, {
19045
+ return /* @__PURE__ */ jsx137(Paper, {
18980
19046
  elevation: 0,
18981
19047
  className: clsx(themeCls, props.className),
18982
19048
  style: props.style,
@@ -18987,7 +19053,7 @@ var JsonViewerInner = (props) => {
18987
19053
  ...props.sx
18988
19054
  },
18989
19055
  onMouseLeave,
18990
- children: /* @__PURE__ */ jsx136(DataKeyPair, {
19056
+ children: /* @__PURE__ */ jsx137(DataKeyPair, {
18991
19057
  value,
18992
19058
  prevValue,
18993
19059
  path: emptyPath,
@@ -19039,13 +19105,13 @@ var JsonViewer = function JsonViewer2(props) {
19039
19105
  };
19040
19106
  const jsonViewerStore = useMemo6(() => createJsonViewerStore(props), []);
19041
19107
  const typeRegistryStore = useMemo6(() => createTypeRegistryStore(), []);
19042
- return /* @__PURE__ */ jsx136(ThemeProvider, {
19108
+ return /* @__PURE__ */ jsx137(ThemeProvider, {
19043
19109
  theme,
19044
- children: /* @__PURE__ */ jsx136(TypeRegistryStoreContext.Provider, {
19110
+ children: /* @__PURE__ */ jsx137(TypeRegistryStoreContext.Provider, {
19045
19111
  value: typeRegistryStore,
19046
- children: /* @__PURE__ */ jsx136(JsonViewerStoreContext.Provider, {
19112
+ children: /* @__PURE__ */ jsx137(JsonViewerStoreContext.Provider, {
19047
19113
  value: jsonViewerStore,
19048
- children: /* @__PURE__ */ jsx136(JsonViewerInner, {
19114
+ children: /* @__PURE__ */ jsx137(JsonViewerInner, {
19049
19115
  ...mixedProps
19050
19116
  })
19051
19117
  })
@@ -19054,11 +19120,11 @@ var JsonViewer = function JsonViewer2(props) {
19054
19120
  };
19055
19121
 
19056
19122
  // src/components/event-details/payload-viewer.tsx
19057
- import { memo as memo10 } from "react";
19058
- import { jsx as jsx137 } from "react/jsx-runtime";
19059
- var PayloadViewer = memo10(({ sx, testId, value }) => {
19123
+ import { memo as memo11 } from "react";
19124
+ import { jsx as jsx138 } from "react/jsx-runtime";
19125
+ var PayloadViewer = memo11(({ sx, testId, value }) => {
19060
19126
  const theme = useTheme3();
19061
- return /* @__PURE__ */ jsx137(Box13, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto", p: 1, ...sx }, children: /* @__PURE__ */ jsx137(
19127
+ return /* @__PURE__ */ jsx138(Box14, { "data-testid": testId, sx: { backgroundColor: "background.default", borderRadius: 1, fontSize: 12, overflow: "auto", p: 1, ...sx }, children: /* @__PURE__ */ jsx138(
19062
19128
  JsonViewer,
19063
19129
  {
19064
19130
  displayDataTypes: false,
@@ -19072,10 +19138,10 @@ var PayloadViewer = memo10(({ sx, testId, value }) => {
19072
19138
  });
19073
19139
 
19074
19140
  // src/components/event-details/event-detail.tsx
19075
- import { Fragment as Fragment9, jsx as jsx138, jsxs as jsxs129 } from "react/jsx-runtime";
19076
- var DetailRow2 = ({ content, label }) => /* @__PURE__ */ jsxs129(Box14, { sx: { display: "grid", gap: 1, gridTemplateColumns: "72px 1fr", mb: 0.5 }, children: [
19077
- /* @__PURE__ */ jsx138(Typography10, { color: "text.secondary", sx: { fontWeight: 600 }, variant: "caption", children: label }),
19078
- /* @__PURE__ */ jsx138(Box14, { children: typeof content === "string" ? /* @__PURE__ */ jsx138(Typography10, { sx: { color: "text.primary", whiteSpace: "pre-wrap" }, variant: "caption", children: content }) : content })
19141
+ import { Fragment as Fragment9, jsx as jsx139, jsxs as jsxs129 } from "react/jsx-runtime";
19142
+ var DetailRow2 = ({ content, label }) => /* @__PURE__ */ jsxs129(Box15, { sx: { display: "grid", gap: 1, gridTemplateColumns: "72px 1fr", mb: 0.5 }, children: [
19143
+ /* @__PURE__ */ jsx139(Typography10, { color: "text.secondary", sx: { fontWeight: 600 }, variant: "caption", children: label }),
19144
+ /* @__PURE__ */ jsx139(Box15, { children: typeof content === "string" ? /* @__PURE__ */ jsx139(Typography10, { sx: { color: "text.primary", whiteSpace: "pre-wrap" }, variant: "caption", children: content }) : content })
19079
19145
  ] });
19080
19146
  var EventMessage = ({ event }) => {
19081
19147
  const [isOpen, setIsOpen] = useState11(false);
@@ -19107,9 +19173,9 @@ var EventMessage = ({ event }) => {
19107
19173
  () => isOverflowing || hasAdditionalContent,
19108
19174
  [isOverflowing, hasAdditionalContent]
19109
19175
  );
19110
- return /* @__PURE__ */ jsxs129(Box14, { sx: { display: "flex", flexDirection: "column" }, children: [
19111
- /* @__PURE__ */ jsxs129(Box14, { sx: { alignItems: "center", display: "flex" }, children: [
19112
- Boolean(shouldShowToggle) && /* @__PURE__ */ jsx138(
19176
+ return /* @__PURE__ */ jsxs129(Box15, { sx: { display: "flex", flexDirection: "column" }, children: [
19177
+ /* @__PURE__ */ jsxs129(Box15, { sx: { alignItems: "center", display: "flex" }, children: [
19178
+ Boolean(shouldShowToggle) && /* @__PURE__ */ jsx139(
19113
19179
  IconButton5,
19114
19180
  {
19115
19181
  onClick: () => {
@@ -19117,10 +19183,10 @@ var EventMessage = ({ event }) => {
19117
19183
  },
19118
19184
  size: "small",
19119
19185
  sx: { mr: 1, p: 0 },
19120
- children: isOpen ? /* @__PURE__ */ jsx138(KeyboardArrowDown, { sx: { fontSize: 16 } }) : /* @__PURE__ */ jsx138(KeyboardArrowRight, { sx: { fontSize: 16 } })
19186
+ children: isOpen ? /* @__PURE__ */ jsx139(KeyboardArrowDown, { sx: { fontSize: 16 } }) : /* @__PURE__ */ jsx139(KeyboardArrowRight, { sx: { fontSize: 16 } })
19121
19187
  }
19122
19188
  ),
19123
- /* @__PURE__ */ jsx138(
19189
+ /* @__PURE__ */ jsx139(
19124
19190
  Typography10,
19125
19191
  {
19126
19192
  ref: textReference,
@@ -19138,12 +19204,12 @@ var EventMessage = ({ event }) => {
19138
19204
  }
19139
19205
  )
19140
19206
  ] }),
19141
- isOpen && /* @__PURE__ */ jsx138(Box14, { sx: { borderColor: "divider", borderLeft: "2px solid", ml: 1, mt: 0.5, pl: 1.5, py: 0.5 }, children: isIAMPolicyEvent ? /* @__PURE__ */ jsx138(IAMEventDetail, { event }) : /* @__PURE__ */ jsxs129(Fragment9, { children: [
19142
- Boolean(parsedMessage.message) && /* @__PURE__ */ jsx138(DetailRow2, { content: parsedMessage.message, label: "Message" }),
19143
- Boolean(parsedMessage.details) && /* @__PURE__ */ jsx138(
19207
+ isOpen && /* @__PURE__ */ jsx139(Box15, { sx: { borderColor: "divider", borderLeft: "2px solid", ml: 1, mt: 0.5, pl: 1.5, py: 0.5 }, children: isIAMPolicyEvent ? /* @__PURE__ */ jsx139(IAMEventDetail, { event }) : /* @__PURE__ */ jsxs129(Fragment9, { children: [
19208
+ Boolean(parsedMessage.message) && /* @__PURE__ */ jsx139(DetailRow2, { content: parsedMessage.message, label: "Message" }),
19209
+ Boolean(parsedMessage.details) && /* @__PURE__ */ jsx139(
19144
19210
  DetailRow2,
19145
19211
  {
19146
- content: /* @__PURE__ */ jsx138(PayloadViewer, { sx: { px: 0 }, value: tryParseJson(parsedMessage.details) }),
19212
+ content: /* @__PURE__ */ jsx139(PayloadViewer, { sx: { px: 0 }, value: tryParseJson(parsedMessage.details) }),
19147
19213
  label: "Details"
19148
19214
  }
19149
19215
  )
@@ -19175,15 +19241,15 @@ var EventDetail = ({
19175
19241
  type
19176
19242
  }) => {
19177
19243
  if (type === "permission") {
19178
- return /* @__PURE__ */ jsx138(IAMPermissionDetail, { events });
19244
+ return /* @__PURE__ */ jsx139(IAMPermissionDetail, { events });
19179
19245
  }
19180
19246
  const eventLevel = getEventLevelFromGroup(type);
19181
- return /* @__PURE__ */ jsxs129(Box14, { children: [
19182
- /* @__PURE__ */ jsxs129(Box14, { sx: { alignItems: "center", display: "flex", mb: 0.5 }, children: [
19183
- /* @__PURE__ */ jsx138(StatusIcon, { errorLevel: eventLevel }),
19184
- /* @__PURE__ */ jsx138(Typography10, { color: "text.secondary", sx: { fontWeight: 600, ml: 0.5 }, variant: "caption", children: displayText })
19247
+ return /* @__PURE__ */ jsxs129(Box15, { children: [
19248
+ /* @__PURE__ */ jsxs129(Box15, { sx: { alignItems: "center", display: "flex", mb: 0.5 }, children: [
19249
+ /* @__PURE__ */ jsx139(StatusIcon, { errorLevel: eventLevel }),
19250
+ /* @__PURE__ */ jsx139(Typography10, { color: "text.secondary", sx: { fontWeight: 600, ml: 0.5 }, variant: "caption", children: displayText })
19185
19251
  ] }),
19186
- /* @__PURE__ */ jsx138(Box14, { children: events.map((event) => /* @__PURE__ */ jsx138(Box14, { sx: { maxWidth: "100%", mb: 0.5 }, children: /* @__PURE__ */ jsx138(EventMessage, { event }) }, `${event.span_id}-${event.event_id}`)) })
19252
+ /* @__PURE__ */ jsx139(Box15, { children: events.map((event) => /* @__PURE__ */ jsx139(Box15, { sx: { maxWidth: "100%", mb: 0.5 }, children: /* @__PURE__ */ jsx139(EventMessage, { event }) }, `${event.span_id}-${event.event_id}`)) })
19187
19253
  ] });
19188
19254
  };
19189
19255
 
@@ -29140,11 +29206,11 @@ var QueryStatus = {
29140
29206
  };
29141
29207
 
29142
29208
  // src/components/event-details/lambda-invoke-logs-section.tsx
29143
- import { Box as Box15, CircularProgress as CircularProgress3, Stack as Stack3, Typography as Typography11 } from "@mui/material";
29209
+ import { Box as Box16, CircularProgress as CircularProgress3, Stack as Stack3, Typography as Typography11 } from "@mui/material";
29144
29210
  import { useEffect as useEffect16, useMemo as useMemo9, useRef as useRef12, useState as useState13 } from "react";
29145
29211
 
29146
29212
  // src/context.tsx
29147
- import { createContext as createContext11, useContext as useContext17 } from "react";
29213
+ import { createContext as createContext10, useContext as useContext16 } from "react";
29148
29214
  import { useCallback as useCallback6, useMemo as useMemo8 } from "react";
29149
29215
 
29150
29216
  // src/api/client.ts
@@ -29429,7 +29495,7 @@ var createApiClient = ({ localstackEndpoint }) => {
29429
29495
  };
29430
29496
 
29431
29497
  // src/hooks/status-provider.tsx
29432
- import { createContext as createContext10, useContext as useContext16 } from "react";
29498
+ import { createContext as createContext9, useContext as useContext15 } from "react";
29433
29499
 
29434
29500
  // src/hooks/use-connection-state-machine.ts
29435
29501
  import { useCallback as useCallback5, useEffect as useEffect14, useRef as useRef10, useState as useState12 } from "react";
@@ -29514,14 +29580,14 @@ function useConnectionStateMachine() {
29514
29580
  }
29515
29581
 
29516
29582
  // src/hooks/status-provider.tsx
29517
- import { jsx as jsx139 } from "react/jsx-runtime";
29518
- var AppInspectorStatusContext = createContext10(void 0);
29583
+ import { jsx as jsx140 } from "react/jsx-runtime";
29584
+ var AppInspectorStatusContext = createContext9(void 0);
29519
29585
  var StatusProvider = ({ children }) => {
29520
29586
  const value = useConnectionStateMachine();
29521
- return /* @__PURE__ */ jsx139(AppInspectorStatusContext.Provider, { value, children });
29587
+ return /* @__PURE__ */ jsx140(AppInspectorStatusContext.Provider, { value, children });
29522
29588
  };
29523
29589
  var useAppInspectorStatus = () => {
29524
- const value = useContext16(AppInspectorStatusContext);
29590
+ const value = useContext15(AppInspectorStatusContext);
29525
29591
  if (!value) {
29526
29592
  throw new Error("@localstack-studio/ui: useAppInspectorStatus must be used within a <StatusProvider> (rendered internally by <AppInspectorContextProvider>)");
29527
29593
  }
@@ -31451,15 +31517,15 @@ var useAppInspectorOpenAnalytics = () => {
31451
31517
 
31452
31518
  // src/theme.tsx
31453
31519
  import { alpha as alpha4, ThemeProvider as ThemeProvider2 } from "@mui/material/styles";
31454
- import { jsx as jsx140 } from "react/jsx-runtime";
31520
+ import { jsx as jsx141 } from "react/jsx-runtime";
31455
31521
  var withVisibleSeparators = (outer) => outer.palette.mode === "dark" ? { ...outer, palette: { ...outer.palette, divider: alpha4(outer.palette.text.primary, 0.14) } } : outer;
31456
- var AppInspectorTheme = ({ children }) => /* @__PURE__ */ jsx140(ThemeProvider2, { theme: withVisibleSeparators, children });
31522
+ var AppInspectorTheme = ({ children }) => /* @__PURE__ */ jsx141(ThemeProvider2, { theme: withVisibleSeparators, children });
31457
31523
 
31458
31524
  // src/context.tsx
31459
- import { Fragment as Fragment10, jsx as jsx141 } from "react/jsx-runtime";
31460
- var AppInspectorContext = createContext11(void 0);
31525
+ import { Fragment as Fragment10, jsx as jsx142 } from "react/jsx-runtime";
31526
+ var AppInspectorContext = createContext10(void 0);
31461
31527
  var useAppInspector = () => {
31462
- const context = useContext17(AppInspectorContext);
31528
+ const context = useContext16(AppInspectorContext);
31463
31529
  if (!context) {
31464
31530
  throw new Error("@localstack-studio/ui: components must be used within a <AppInspectorContextProvider>");
31465
31531
  }
@@ -31467,7 +31533,7 @@ var useAppInspector = () => {
31467
31533
  };
31468
31534
  var AppInspectorAnalyticsBoundary = ({ children }) => {
31469
31535
  useAppInspectorOpenAnalytics();
31470
- return /* @__PURE__ */ jsx141(Fragment10, { children });
31536
+ return /* @__PURE__ */ jsx142(Fragment10, { children });
31471
31537
  };
31472
31538
  var AppInspectorContextProvider = (props) => {
31473
31539
  const api = useMemo8(
@@ -31501,11 +31567,11 @@ var AppInspectorContextProvider = (props) => {
31501
31567
  }),
31502
31568
  [deploymentContainer, props.headerHeight, props.linkComponent, props.localstackEndpoint, props.spansWorkerUrl, resolveLink]
31503
31569
  );
31504
- return /* @__PURE__ */ jsx141(ApiProvider, { api, children: /* @__PURE__ */ jsx141(StatusProvider, { children: /* @__PURE__ */ jsx141(AppInspectorContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx141(AppInspectorAnalyticsBoundary, { children: /* @__PURE__ */ jsx141(AppInspectorTheme, { children: props.children }) }) }) }) });
31570
+ return /* @__PURE__ */ jsx142(ApiProvider, { api, children: /* @__PURE__ */ jsx142(StatusProvider, { children: /* @__PURE__ */ jsx142(AppInspectorContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx142(AppInspectorAnalyticsBoundary, { children: /* @__PURE__ */ jsx142(AppInspectorTheme, { children: props.children }) }) }) }) });
31505
31571
  };
31506
31572
 
31507
31573
  // src/components/event-details/lambda-invoke-logs-section.tsx
31508
- import { jsx as jsx142, jsxs as jsxs130 } from "react/jsx-runtime";
31574
+ import { jsx as jsx143, jsxs as jsxs130 } from "react/jsx-runtime";
31509
31575
  var POLL_INTERVAL_MS2 = 1e3;
31510
31576
  async function pollQueryResults(client, queryId) {
31511
31577
  return client.send(new GetQueryResultsCommand({ queryId }));
@@ -31596,23 +31662,23 @@ var LambdaInvokeLogsSection = ({ endTimeNano, functionName: functionName2, regio
31596
31662
  const { error, loading, logs } = useLambdaInvokeLogs(functionName2, requestId, region, startTimeNano, endTimeNano);
31597
31663
  if (loading) {
31598
31664
  return /* @__PURE__ */ jsxs130(Stack3, { alignItems: "center", direction: "row", spacing: 1, children: [
31599
- /* @__PURE__ */ jsx142(CircularProgress3, { size: 14 }),
31600
- /* @__PURE__ */ jsx142(Typography11, { color: "text.secondary", variant: "body2", children: "Loading logs\u2026" })
31665
+ /* @__PURE__ */ jsx143(CircularProgress3, { size: 14 }),
31666
+ /* @__PURE__ */ jsx143(Typography11, { color: "text.secondary", variant: "body2", children: "Loading logs\u2026" })
31601
31667
  ] });
31602
31668
  }
31603
31669
  if (error !== void 0) {
31604
- return /* @__PURE__ */ jsx142(Typography11, { color: "error", variant: "body2", children: error.message });
31670
+ return /* @__PURE__ */ jsx143(Typography11, { color: "error", variant: "body2", children: error.message });
31605
31671
  }
31606
31672
  if (logs.length === 0) {
31607
- return /* @__PURE__ */ jsx142(Typography11, { color: "text.secondary", variant: "body2", children: "No logs found for this invocation." });
31673
+ return /* @__PURE__ */ jsx143(Typography11, { color: "text.secondary", variant: "body2", children: "No logs found for this invocation." });
31608
31674
  }
31609
- return /* @__PURE__ */ jsx142(Box15, { sx: { backgroundColor: (theme) => theme.palette.background.default, borderRadius: 1, p: 1 }, children: /* @__PURE__ */ jsx142("pre", { style: { margin: 0, overflow: "auto" }, children: logs.map((log) => /* @__PURE__ */ jsx142(Typography11, { variant: "body2", children: `[${log.timestamp}] ${log.message}` }, log.ptr)) }) });
31675
+ return /* @__PURE__ */ jsx143(Box16, { sx: { backgroundColor: (theme) => theme.palette.background.default, borderRadius: 1, p: 1 }, children: /* @__PURE__ */ jsx143("pre", { style: { margin: 0, overflow: "auto" }, children: logs.map((log) => /* @__PURE__ */ jsx143(Typography11, { variant: "body2", children: `[${log.timestamp}] ${log.message}` }, log.ptr)) }) });
31610
31676
  };
31611
31677
 
31612
31678
  // src/components/event-details/operation-status-badges.tsx
31613
31679
  import { Cancel as Cancel4, CheckCircle as CheckCircle3, GppBad, GppGood, GppMaybe as GppMaybe5, HelpOutline } from "@mui/icons-material";
31614
- import { alpha as alpha5, Box as Box16, ButtonBase, Chip as Chip2, darken, lighten, Tooltip as Tooltip6, Typography as Typography12 } from "@mui/material";
31615
- import { jsx as jsx143, jsxs as jsxs131 } from "react/jsx-runtime";
31680
+ import { alpha as alpha5, Box as Box17, ButtonBase, darken, lighten, Typography as Typography12 } from "@mui/material";
31681
+ import { jsx as jsx144, jsxs as jsxs131 } from "react/jsx-runtime";
31616
31682
  var IAM = {
31617
31683
  allowed: { color: "success", icon: GppGood, label: "IAM allowed", title: "IAM allowed the call" },
31618
31684
  denied: { color: "error", icon: GppBad, label: "IAM denied", title: "IAM denied and blocked the call" },
@@ -31632,79 +31698,44 @@ var tint = (color2) => ({
31632
31698
  px: 0.75,
31633
31699
  py: 0.25
31634
31700
  });
31635
- var clickable = (onClick, isTinted) => onClick === void 0 ? {} : {
31701
+ var clickable = (onClick) => onClick === void 0 ? {} : {
31636
31702
  component: ButtonBase,
31637
31703
  onClick,
31638
- sx: { "&:hover": isTinted ? { filter: "brightness(1.15)" } : { textDecoration: "underline" }, "borderRadius": 1, "cursor": "pointer", "font": "inherit" }
31704
+ sx: { "&:hover": { filter: "brightness(1.15)" }, "borderRadius": 1, "cursor": "pointer", "font": "inherit" }
31639
31705
  };
31640
- var OperationStatusBadges = ({ iam, iamPermission, onIamClick, onStatusClick, status, statusLabel, variant }) => {
31706
+ var OperationStatusBadges = ({ iam, iamPermission, onIamClick, onStatusClick, status, statusLabel }) => {
31641
31707
  const isError = status === "error";
31642
31708
  const statusText = isError ? statusLabel ?? "Error" : "OK";
31643
31709
  const StatusIcon2 = isError ? Cancel4 : CheckCircle3;
31644
31710
  const statusColor = isError ? "error" : "success";
31645
31711
  const iamStyle = iam === void 0 ? void 0 : IAM[iam];
31646
- const iamPrefix = variant === "subtitle-chips" ? "" : "IAM \u2022 ";
31647
- const iamLabel = iamPermission === void 0 || iam === "suppressed" ? iamStyle?.label : `${iamPrefix}${sentenceCase(formatPermissionStatus(iamPermission))}`;
31712
+ const iamLabel = iamPermission === void 0 || iam === "suppressed" ? iamStyle?.label : sentenceCase(formatPermissionStatus(iamPermission));
31648
31713
  const showStatus = status !== "unset";
31649
- if (variant === "chips") {
31650
- return /* @__PURE__ */ jsxs131(Box16, { sx: { display: "flex", flex: "none", gap: 0.5 }, children: [
31651
- showStatus && /* @__PURE__ */ jsx143(
31652
- Chip2,
31653
- {
31654
- color: statusColor,
31655
- "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID,
31656
- icon: /* @__PURE__ */ jsx143(StatusIcon2, {}),
31657
- label: statusText,
31658
- size: "small",
31659
- variant: "outlined"
31660
- }
31661
- ),
31662
- iamStyle && /* @__PURE__ */ jsx143(Tooltip6, { title: iamStyle.title, children: /* @__PURE__ */ jsx143(
31663
- Chip2,
31664
- {
31665
- color: iamStyle.color === "text" ? "default" : iamStyle.color,
31666
- "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID,
31667
- icon: /* @__PURE__ */ jsx143(iamStyle.icon, {}),
31668
- label: iamLabel,
31669
- size: "small",
31670
- variant: "outlined"
31671
- }
31672
- ) })
31673
- ] });
31674
- }
31675
- if (variant === "icons") {
31676
- return /* @__PURE__ */ jsxs131(Box16, { sx: { alignItems: "center", display: "flex", flex: "none", gap: 0.25 }, children: [
31677
- showStatus && /* @__PURE__ */ jsx143(Tooltip6, { title: isError ? `Failed: ${statusText}` : "Succeeded", children: /* @__PURE__ */ jsx143(StatusIcon2, { color: statusColor, "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID, fontSize: "small" }) }),
31678
- iamStyle && /* @__PURE__ */ jsx143(Tooltip6, { title: iamStyle.title, children: /* @__PURE__ */ jsx143(iamStyle.icon, { "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID, fontSize: "small", sx: { color: paletteColor(iamStyle.color) } }) })
31679
- ] });
31680
- }
31681
- const isTinted = variant === "subtitle-chips";
31682
31714
  if (!showStatus && !iamStyle) {
31683
31715
  return null;
31684
31716
  }
31685
- return /* @__PURE__ */ jsxs131(Box16, { sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
31717
+ return /* @__PURE__ */ jsxs131(Box17, { sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
31686
31718
  showStatus && /* @__PURE__ */ jsxs131(
31687
- Box16,
31719
+ Box17,
31688
31720
  {
31689
31721
  "data-testid": EVENT_DETAILS_HEADING_STATUS_TEST_ID,
31690
- ...clickable(onStatusClick, isTinted),
31691
- sx: { alignItems: "center", color: `${statusColor}.main`, display: "flex", gap: 0.5, minWidth: 0, ...clickable(onStatusClick, isTinted).sx, ...isTinted ? tint(statusColor) : {} },
31722
+ ...clickable(onStatusClick),
31723
+ sx: { alignItems: "center", display: "flex", gap: 0.5, minWidth: 0, ...clickable(onStatusClick).sx, ...tint(statusColor) },
31692
31724
  children: [
31693
- /* @__PURE__ */ jsx143(StatusIcon2, { sx: { color: isTinted ? `${statusColor}.main` : void 0, fontSize: 14 } }),
31694
- /* @__PURE__ */ jsx143(Typography12, { color: isTinted ? "inherit" : void 0, noWrap: true, variant: "caption", children: isError ? `Failed \xB7 ${statusText}` : "Succeeded" })
31725
+ /* @__PURE__ */ jsx144(StatusIcon2, { sx: { color: `${statusColor}.main`, fontSize: 14 } }),
31726
+ /* @__PURE__ */ jsx144(Typography12, { color: "inherit", noWrap: true, variant: "caption", children: isError ? `Failed \xB7 ${statusText}` : "Succeeded" })
31695
31727
  ]
31696
31728
  }
31697
31729
  ),
31698
- showStatus && iamStyle && !isTinted && /* @__PURE__ */ jsx143(Typography12, { color: "text.disabled", variant: "caption", children: "|" }),
31699
31730
  iamStyle && /* @__PURE__ */ jsxs131(
31700
- Box16,
31731
+ Box17,
31701
31732
  {
31702
31733
  "data-testid": EVENT_DETAILS_HEADING_IAM_TEST_ID,
31703
- ...clickable(onIamClick, isTinted),
31704
- sx: { alignItems: "center", color: paletteColor(iamStyle.color), display: "flex", flex: "none", gap: 0.5, ...clickable(onIamClick, isTinted).sx, ...isTinted ? tint(iamStyle.color) : {} },
31734
+ ...clickable(onIamClick),
31735
+ sx: { alignItems: "center", display: "flex", flex: "none", gap: 0.5, ...clickable(onIamClick).sx, ...tint(iamStyle.color) },
31705
31736
  children: [
31706
- /* @__PURE__ */ jsx143(iamStyle.icon, { sx: { color: isTinted ? paletteColor(iamStyle.color) : void 0, fontSize: 14 } }),
31707
- /* @__PURE__ */ jsx143(Typography12, { color: isTinted ? "inherit" : void 0, variant: "caption", children: iamLabel })
31737
+ /* @__PURE__ */ jsx144(iamStyle.icon, { sx: { color: paletteColor(iamStyle.color), fontSize: 14 } }),
31738
+ /* @__PURE__ */ jsx144(Typography12, { color: "inherit", variant: "caption", children: iamLabel })
31708
31739
  ]
31709
31740
  }
31710
31741
  )
@@ -31712,7 +31743,7 @@ var OperationStatusBadges = ({ iam, iamPermission, onIamClick, onStatusClick, st
31712
31743
  };
31713
31744
 
31714
31745
  // src/components/event-details/event-details.tsx
31715
- import { Fragment as Fragment11, jsx as jsx144, jsxs as jsxs132 } from "react/jsx-runtime";
31746
+ import { Fragment as Fragment11, jsx as jsx145, jsxs as jsxs132 } from "react/jsx-runtime";
31716
31747
  var checkIsLambdaInvoke = (span) => {
31717
31748
  if (span.service_name !== "lambda") {
31718
31749
  return false;
@@ -31735,14 +31766,14 @@ var getOptionalTabs = (span, eventGroups) => ({
31735
31766
  logs: checkIsLambdaInvoke(span) && typeof span.attributes?.["localstack.request_id"] === "string",
31736
31767
  permissions: span.iam_errors_suppressed === true || eventGroups.permissions !== void 0
31737
31768
  });
31738
- var Field = ({ children, copy, label, testId, testIdOn = "value" }) => /* @__PURE__ */ jsxs132(Box17, { children: [
31739
- /* @__PURE__ */ jsx144(Typography13, { sx: { fontWeight: 600 }, variant: "caption", children: label }),
31769
+ var Field = ({ children, copy, label, testId, testIdOn = "value" }) => /* @__PURE__ */ jsxs132(Box18, { children: [
31770
+ /* @__PURE__ */ jsx145(Typography13, { sx: { fontWeight: 600 }, variant: "caption", children: label }),
31740
31771
  /* @__PURE__ */ jsxs132(Stack4, { alignItems: "center", "data-testid": testIdOn === "row" ? testId : void 0, direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
31741
- /* @__PURE__ */ jsx144(Typography13, { "data-testid": testIdOn === "value" ? testId : void 0, variant: "body2", children }),
31742
- /* @__PURE__ */ jsx144(CopyButton, { value: copy ?? children })
31772
+ /* @__PURE__ */ jsx145(Typography13, { "data-testid": testIdOn === "value" ? testId : void 0, variant: "body2", children }),
31773
+ /* @__PURE__ */ jsx145(CopyButton, { value: copy ?? children })
31743
31774
  ] })
31744
31775
  ] });
31745
- var EmptyTab = ({ children }) => /* @__PURE__ */ jsx144(Typography13, { color: "text.secondary", variant: "body2", children });
31776
+ var EmptyTab = ({ children }) => /* @__PURE__ */ jsx145(Typography13, { color: "text.secondary", variant: "body2", children });
31746
31777
  var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31747
31778
  const eventGroups = useMemo10(
31748
31779
  () => getEventGroupsByType(selectedEvent?.events ?? []),
@@ -31750,7 +31781,6 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31750
31781
  );
31751
31782
  const [parseNestedJson, setParseNestedJson] = useState14(true);
31752
31783
  const [tab, setTab] = useState14("details");
31753
- const { operationStatus: variant } = useDevSettings();
31754
31784
  const optionalTabs = selectedEvent ? getOptionalTabs(selectedEvent, eventGroups) : void 0;
31755
31785
  const activeTab = optionalTabs && OPTIONAL_TABS.some((optional) => optional === tab && !optionalTabs[optional]) ? "details" : tab;
31756
31786
  const onOperationShownRef = useRef13(onOperationShown);
@@ -31764,7 +31794,7 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31764
31794
  }
31765
31795
  }, [shownSpanId, activeTab]);
31766
31796
  if (!selectedEvent) {
31767
- return /* @__PURE__ */ jsx144(Box17, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ jsx144(Typography13, { color: "text.secondary", variant: "body2", children: "Select an operation to view graph" }) });
31797
+ return /* @__PURE__ */ jsx145(Box18, { sx: { p: 3, textAlign: "center" }, children: /* @__PURE__ */ jsx145(Typography13, { color: "text.secondary", variant: "body2", children: "Select an operation to view graph" }) });
31768
31798
  }
31769
31799
  const isLambdaInvoke = checkIsLambdaInvoke(selectedEvent);
31770
31800
  const isSqsSendMessage = checkIsSqsSendMessage(selectedEvent);
@@ -31793,13 +31823,12 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31793
31823
  const functionError = isLambdaInvoke ? getLambdaFunctionError(selectedEvent.attributes?.["localstack.aws.service.response"]) : void 0;
31794
31824
  const errorType = functionError?.errorType ?? issues.errorType;
31795
31825
  const duration = selectedEvent.end_time_unix_nano ? ((BigInt(selectedEvent.end_time_unix_nano) - BigInt(selectedEvent.start_time_unix_nano)) / BigInt("1000000")).toString() : void 0;
31796
- const resource = shortResourceName(selectedEvent.resource_name, selectedEvent.arn);
31797
31826
  const { error: showError, logs: showLogs, permissions: showPermissions } = getOptionalTabs(selectedEvent, eventGroups);
31798
31827
  const errorMessages = functionError?.errorMessage === void 0 ? [.../* @__PURE__ */ new Set([selectedEvent.status_message, ...(selectedEvent.errors ?? []).filter((item) => item.level === "error").map((item) => item.message)])].filter((message) => Boolean(message) && message !== errorType) : [functionError.errorMessage];
31799
31828
  const iamEvents = getIamEvents(selectedEvent);
31800
31829
  const iamPermission = getWorstPermission(iamEvents);
31801
31830
  const iamOutcome = selectedEvent.iam_errors_suppressed === true ? "suppressed" : IAM_OUTCOME[iam.level ?? (iamEvents.length > 0 ? "allowed" : "none")];
31802
- const statusBadges = /* @__PURE__ */ jsx144(
31831
+ const statusBadges = /* @__PURE__ */ jsx145(
31803
31832
  OperationStatusBadges,
31804
31833
  {
31805
31834
  iam: iamOutcome,
@@ -31811,25 +31840,27 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31811
31840
  setTab(showError ? "error" : "response");
31812
31841
  },
31813
31842
  status: issues.error ? "error" : selectedEvent.status_code === 1 ? "ok" : "unset",
31814
- statusLabel: errorType,
31815
- variant
31843
+ statusLabel: errorType
31816
31844
  }
31817
31845
  );
31818
- const rawDataSwitch = /* @__PURE__ */ jsx144(
31846
+ const identity = { arn: selectedEvent.arn, operation: /* @__PURE__ */ jsx145(OperationName, { span: selectedEvent }), resourceName: selectedEvent.resource_name, service: selectedEvent.service_name };
31847
+ const rawDataSwitch = /* @__PURE__ */ jsx145(
31819
31848
  FormControlLabel,
31820
31849
  {
31821
- control: /* @__PURE__ */ jsx144(Switch, { checked: !parseNestedJson, onChange: (event) => {
31850
+ control: /* @__PURE__ */ jsx145(Switch, { checked: !parseNestedJson, onChange: (event) => {
31822
31851
  setParseNestedJson(!event.target.checked);
31823
31852
  }, size: "small" }),
31824
- label: /* @__PURE__ */ jsx144(Typography13, { variant: "caption", children: "View raw data" }),
31853
+ label: /* @__PURE__ */ jsx145(Typography13, { variant: "caption", children: "View raw data" }),
31825
31854
  sx: { mb: 1, mr: 0 }
31826
31855
  }
31827
31856
  );
31828
- const permissionsIcon = iam.level === "error" ? /* @__PURE__ */ jsx144(GppBad2, { color: "error", sx: { fontSize: 16 } }) : iam.level === "warning" ? /* @__PURE__ */ jsx144(GppMaybe6, { color: "warning", sx: { fontSize: 16 } }) : void 0;
31829
- return /* @__PURE__ */ jsxs132(Box17, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
31857
+ const permissionsIcon = iam.level === "error" ? /* @__PURE__ */ jsx145(GppBad2, { color: "error", sx: { fontSize: 16 } }) : iam.level === "warning" ? /* @__PURE__ */ jsx145(GppMaybe6, { color: "warning", sx: { fontSize: 16 } }) : void 0;
31858
+ return /* @__PURE__ */ jsxs132(Box18, { "data-testid": EVENT_DETAILS_TEST_ID, sx: { display: "flex", flexDirection: "column", height: "100%" }, children: [
31830
31859
  /* @__PURE__ */ jsxs132(
31831
- Box17,
31860
+ Box18,
31832
31861
  {
31862
+ "aria-label": "Selected operation",
31863
+ component: "header",
31833
31864
  sx: {
31834
31865
  alignItems: "center",
31835
31866
  borderBottom: "1px solid",
@@ -31837,23 +31868,15 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31837
31868
  display: "flex",
31838
31869
  gap: 1.5,
31839
31870
  px: 2,
31840
- py: 1
31871
+ py: 1.25
31841
31872
  },
31842
31873
  children: [
31843
- /* @__PURE__ */ jsxs132(Box17, { sx: { containerType: "inline-size", flex: 1, minWidth: 0 }, children: [
31844
- /* @__PURE__ */ jsx144(Typography13, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Selected operation" }),
31845
- /* @__PURE__ */ jsxs132(Box17, { "data-testid": EVENT_DETAILS_HEADING_TEST_ID, sx: { "@container (min-width: 560px)": { flexWrap: "nowrap" }, "alignItems": "center", "columnGap": 1, "display": "flex", "flexWrap": variant.startsWith("subtitle") ? "wrap" : "nowrap", "minWidth": 0 }, children: [
31846
- /* @__PURE__ */ jsx144(AwsServiceIcon, { hideTooltip: true, service: selectedEvent.service_name, size: "small" }),
31847
- /* @__PURE__ */ jsx144(Typography13, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, variant: "subtitle1", children: /* @__PURE__ */ jsx144(OperationName, { span: selectedEvent }) }),
31848
- /* @__PURE__ */ jsx144(Box17, { sx: variant.startsWith("subtitle") ? { "@container (min-width: 560px)": { flexBasis: "auto", order: 0 }, "display": "flex", "flex": "none", "flexBasis": "100%", "order": 1 } : { display: "flex", flex: "none" }, children: statusBadges }),
31849
- resource !== "" && resource !== "*" && /* @__PURE__ */ jsx144(Typography13, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: resource, variant: "body2", children: resource })
31850
- ] })
31851
- ] }),
31852
- onClose && /* @__PURE__ */ jsx144(IconButton6, { "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ jsx144(Close3, {}) })
31874
+ /* @__PURE__ */ jsx145(OperationIdentity, { ...identity, density: "heading", label: "Selected operation", sx: { flex: 1 }, testId: EVENT_DETAILS_HEADING_TEST_ID, children: statusBadges }),
31875
+ onClose && /* @__PURE__ */ jsx145(IconButton6, { "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ jsx145(Close3, {}) })
31853
31876
  ]
31854
31877
  }
31855
31878
  ),
31856
- /* @__PURE__ */ jsxs132(Box17, { sx: { flexGrow: 1, minHeight: 0, overflow: "auto" }, children: [
31879
+ /* @__PURE__ */ jsxs132(Box18, { sx: { flexGrow: 1, minHeight: 0, overflow: "auto" }, children: [
31857
31880
  /* @__PURE__ */ jsxs132(
31858
31881
  Tabs,
31859
31882
  {
@@ -31862,11 +31885,13 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31862
31885
  },
31863
31886
  scrollButtons: "auto",
31864
31887
  sx: {
31865
- // MUI makes a tab with an icon 72px tall; keep it as tall as the plain ones.
31866
- "& .MuiTab-labelIcon": { minHeight: 48, py: "12px" },
31888
+ // 36px tall rather than the theme's 50px (MUI's 72px with an icon), and 12px side padding with no
31889
+ // minimum width rather than 16px and 90px, so the tabs don't crowd the panel.
31890
+ "& .MuiTab-root": { height: 36, minHeight: 36, minWidth: 0, px: 1.5, py: "6px" },
31867
31891
  "backgroundColor": "background.paper",
31868
31892
  "borderBottom": 1,
31869
31893
  "borderColor": "divider",
31894
+ "minHeight": 36,
31870
31895
  "position": "sticky",
31871
31896
  "top": 0,
31872
31897
  "zIndex": 1
@@ -31874,41 +31899,41 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31874
31899
  value: activeTab,
31875
31900
  variant: "scrollable",
31876
31901
  children: [
31877
- /* @__PURE__ */ jsx144(Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
31878
- /* @__PURE__ */ jsx144(Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "payload" }),
31879
- /* @__PURE__ */ jsx144(Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
31880
- showError && /* @__PURE__ */ jsx144(Tab, { "data-testid": DETAIL_TAB_ERROR_TEST_ID, icon: /* @__PURE__ */ jsx144(Cancel5, { color: "error", sx: { fontSize: 16 } }), iconPosition: "end", label: "Error", value: "error" }),
31881
- showPermissions && /* @__PURE__ */ jsx144(Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
31882
- showLogs && /* @__PURE__ */ jsx144(Tab, { "data-testid": DETAIL_TAB_LOGS_TEST_ID, label: "Logs", value: "logs" }),
31883
- /* @__PURE__ */ jsx144(Tab, { "data-testid": DETAIL_TAB_ADVANCED_TEST_ID, label: "Advanced", value: "advanced" })
31902
+ /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_DETAILS_TEST_ID, label: "Details", value: "details" }),
31903
+ /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_REQUEST_TEST_ID, label: "Payload", value: "payload" }),
31904
+ /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_RESPONSE_TEST_ID, label: "Response", value: "response" }),
31905
+ showError && /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_ERROR_TEST_ID, icon: /* @__PURE__ */ jsx145(Cancel5, { color: "error", sx: { fontSize: 16 } }), iconPosition: "end", label: "Error", value: "error" }),
31906
+ showPermissions && /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_PERMISSIONS_TEST_ID, icon: permissionsIcon, iconPosition: "end", label: "Permissions", value: "permissions" }),
31907
+ showLogs && /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_LOGS_TEST_ID, label: "Logs", value: "logs" }),
31908
+ /* @__PURE__ */ jsx145(Tab, { "data-testid": DETAIL_TAB_ADVANCED_TEST_ID, label: "Advanced", value: "advanced" })
31884
31909
  ]
31885
31910
  }
31886
31911
  ),
31887
- /* @__PURE__ */ jsxs132(Box17, { sx: { p: 2 }, children: [
31912
+ /* @__PURE__ */ jsxs132(Box18, { sx: { p: 2 }, children: [
31888
31913
  activeTab === "details" && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, children: [
31889
31914
  /* @__PURE__ */ jsxs132(Stack4, { "data-testid": EVENT_DETAILS_SECTION_BASIC_INFORMATION_TEST_ID, spacing: 1, children: [
31890
- /* @__PURE__ */ jsxs132(Box17, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31891
- /* @__PURE__ */ jsx144(Field, { copy: getServiceDisplayName(selectedEvent.service_name), label: "Service", testId: EVENT_DETAILS_SERVICE_NAME_TEST_ID, children: getServiceDisplayName(selectedEvent.service_name) }),
31892
- /* @__PURE__ */ jsx144(Field, { label: "Action", testId: EVENT_DETAILS_OPERATION_NAME_TEST_ID, children: /* @__PURE__ */ jsx144(OperationName, { span: selectedEvent }) })
31915
+ /* @__PURE__ */ jsxs132(Box18, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31916
+ /* @__PURE__ */ jsx145(Field, { copy: getServiceDisplayName(selectedEvent.service_name), label: "Service", testId: EVENT_DETAILS_SERVICE_NAME_TEST_ID, children: getServiceDisplayName(selectedEvent.service_name) }),
31917
+ /* @__PURE__ */ jsx145(Field, { label: "Action", testId: EVENT_DETAILS_OPERATION_NAME_TEST_ID, children: /* @__PURE__ */ jsx145(OperationName, { span: selectedEvent }) })
31893
31918
  ] }),
31894
- /* @__PURE__ */ jsxs132(Box17, { sx: cfnResourceType ? { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" } : void 0, children: [
31895
- /* @__PURE__ */ jsx144(Field, { label: "Resource", testId: EVENT_DETAILS_RESOURCE_NAME_TEST_ID, testIdOn: "row", children: selectedEvent.resource_name }),
31896
- Boolean(cfnResourceType) && /* @__PURE__ */ jsx144(Field, { label: "Resource Type", testId: EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID, children: cfnResourceType })
31919
+ /* @__PURE__ */ jsxs132(Box18, { sx: cfnResourceType ? { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" } : void 0, children: [
31920
+ /* @__PURE__ */ jsx145(Field, { copy: selectedEvent.resource_name, label: "Resource", testId: EVENT_DETAILS_RESOURCE_NAME_TEST_ID, testIdOn: "row", children: selectedEvent.resource_name ? /* @__PURE__ */ jsx145(Box18, { component: "span", sx: RESOURCE_CODE_SX, children: selectedEvent.resource_name }) : /* @__PURE__ */ jsx145(Box18, { component: "span", sx: { color: "text.disabled" }, children: "\u2014" }) }),
31921
+ Boolean(cfnResourceType) && /* @__PURE__ */ jsx145(Field, { label: "Resource Type", testId: EVENT_DETAILS_CFN_RESOURCE_TYPE_TEST_ID, children: cfnResourceType })
31897
31922
  ] }),
31898
- Boolean(resourceArn) && /* @__PURE__ */ jsx144(Field, { label: "Resource ARN", testId: EVENT_DETAILS_RESOURCE_ARN_TEST_ID, testIdOn: "row", children: resourceArn }),
31899
- /* @__PURE__ */ jsxs132(Box17, { sx: { display: "grid", gap: 1, gridTemplateColumns: "1.3fr 1fr" }, children: [
31900
- /* @__PURE__ */ jsx144(Field, { label: "Account", testId: EVENT_DETAILS_ACCOUNT_TEST_ID, children: selectedEvent.account_id }),
31901
- /* @__PURE__ */ jsx144(Field, { label: "Region", testId: EVENT_DETAILS_REGION_TEST_ID, children: selectedEvent.region })
31923
+ Boolean(resourceArn) && /* @__PURE__ */ jsx145(Field, { label: "Resource ARN", testId: EVENT_DETAILS_RESOURCE_ARN_TEST_ID, testIdOn: "row", children: resourceArn }),
31924
+ /* @__PURE__ */ jsxs132(Box18, { sx: { display: "grid", gap: 1, gridTemplateColumns: "1.3fr 1fr" }, children: [
31925
+ /* @__PURE__ */ jsx145(Field, { label: "Account", testId: EVENT_DETAILS_ACCOUNT_TEST_ID, children: selectedEvent.account_id }),
31926
+ /* @__PURE__ */ jsx145(Field, { label: "Region", testId: EVENT_DETAILS_REGION_TEST_ID, children: selectedEvent.region })
31902
31927
  ] }),
31903
- /* @__PURE__ */ jsxs132(Box17, { sx: { display: "grid", gap: 1, gridTemplateColumns: duration === void 0 ? "1fr" : "1.3fr 1fr" }, children: [
31904
- /* @__PURE__ */ jsx144(
31928
+ /* @__PURE__ */ jsxs132(Box18, { sx: { display: "grid", gap: 1, gridTemplateColumns: duration === void 0 ? "1fr" : "1.3fr 1fr" }, children: [
31929
+ /* @__PURE__ */ jsx145(
31905
31930
  Field,
31906
31931
  {
31907
31932
  copy: unixNanoToDate(selectedEvent.start_time_unix_nano)?.toISOString(),
31908
31933
  label: "Start Time",
31909
31934
  testId: EVENT_DETAILS_START_TIME_TEST_ID,
31910
31935
  testIdOn: "row",
31911
- children: /* @__PURE__ */ jsx144(ResponsiveTimestampCell, { date: unixNanoToDate(selectedEvent.start_time_unix_nano) })
31936
+ children: /* @__PURE__ */ jsx145(ResponsiveTimestampCell, { date: unixNanoToDate(selectedEvent.start_time_unix_nano) })
31912
31937
  }
31913
31938
  ),
31914
31939
  duration !== void 0 && /* @__PURE__ */ jsxs132(Field, { copy: `${duration}ms`, label: "Duration", testId: EVENT_DETAILS_DURATION_TEST_ID, testIdOn: "row", children: [
@@ -31917,34 +31942,34 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31917
31942
  ] })
31918
31943
  ] })
31919
31944
  ] }),
31920
- eventGroups.errors && /* @__PURE__ */ jsx144(EventDetail, { displayText: "Error", events: eventGroups.errors, type: "error" }),
31921
- eventGroups.warnings && /* @__PURE__ */ jsx144(EventDetail, { displayText: "Warning", events: eventGroups.warnings, type: "warning" }),
31922
- eventGroups.info && /* @__PURE__ */ jsx144(EventDetail, { displayText: "Info", events: eventGroups.info, type: "info" })
31945
+ eventGroups.errors && /* @__PURE__ */ jsx145(EventDetail, { displayText: "Error", events: eventGroups.errors, type: "error" }),
31946
+ eventGroups.warnings && /* @__PURE__ */ jsx145(EventDetail, { displayText: "Warning", events: eventGroups.warnings, type: "warning" }),
31947
+ eventGroups.info && /* @__PURE__ */ jsx145(EventDetail, { displayText: "Info", events: eventGroups.info, type: "info" })
31923
31948
  ] }),
31924
- activeTab === "payload" && (requestPayload === void 0 ? /* @__PURE__ */ jsx144(EmptyTab, { children: "No request payload recorded." }) : /* @__PURE__ */ jsxs132(Fragment11, { children: [
31949
+ activeTab === "payload" && (requestPayload === void 0 ? /* @__PURE__ */ jsx145(EmptyTab, { children: "No request payload recorded." }) : /* @__PURE__ */ jsxs132(Fragment11, { children: [
31925
31950
  rawDataSwitch,
31926
- /* @__PURE__ */ jsx144(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
31951
+ /* @__PURE__ */ jsx145(PayloadViewer, { testId: EVENT_DETAILS_REQUEST_PAYLOAD, value: requestPayload })
31927
31952
  ] })),
31928
- activeTab === "response" && (responsePayload === void 0 && !isResponseSuppressed ? /* @__PURE__ */ jsx144(EmptyTab, { children: issues.error ? "No response: the call failed. See the Error tab." : "No response payload recorded." }) : /* @__PURE__ */ jsxs132(Fragment11, { children: [
31953
+ activeTab === "response" && (responsePayload === void 0 && !isResponseSuppressed ? /* @__PURE__ */ jsx145(EmptyTab, { children: issues.error ? "No response: the call failed. See the Error tab." : "No response payload recorded." }) : /* @__PURE__ */ jsxs132(Fragment11, { children: [
31929
31954
  rawDataSwitch,
31930
- isResponseSuppressed ? /* @__PURE__ */ jsx144(Alert4, { severity: "warning", children: "Response payload is available \u2014 upgrade your license to view" }) : /* @__PURE__ */ jsx144(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
31955
+ isResponseSuppressed ? /* @__PURE__ */ jsx145(Alert4, { severity: "warning", children: "Response payload is available \u2014 upgrade your license to view" }) : /* @__PURE__ */ jsx145(PayloadViewer, { testId: EVENT_DETAILS_RESPONSE_PAYLOAD_TEST_ID, value: responsePayload })
31931
31956
  ] })),
31932
31957
  activeTab === "error" && /* @__PURE__ */ jsxs132(Stack4, { spacing: 2, children: [
31933
31958
  /* @__PURE__ */ jsxs132(Stack4, { spacing: 1, children: [
31934
- /* @__PURE__ */ jsx144(Field, { label: "Type", children: errorType }),
31935
- errorMessages.length > 0 && /* @__PURE__ */ jsx144(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
31936
- functionError && /* @__PURE__ */ jsxs132(Box17, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31937
- functionError.requestId !== void 0 && /* @__PURE__ */ jsx144(Field, { label: "Request ID", children: functionError.requestId }),
31938
- /* @__PURE__ */ jsx144(Field, { label: "Function Error", testId: EVENT_DETAILS_FUNCTION_ERROR_TEST_ID, children: functionError.functionError })
31959
+ /* @__PURE__ */ jsx145(Field, { label: "Type", children: errorType }),
31960
+ errorMessages.length > 0 && /* @__PURE__ */ jsx145(Field, { label: "Message", children: errorMessages.join(" \xB7 ") }),
31961
+ functionError && /* @__PURE__ */ jsxs132(Box18, { sx: { display: "grid", gap: 2, gridTemplateColumns: "1.3fr 1fr" }, children: [
31962
+ functionError.requestId !== void 0 && /* @__PURE__ */ jsx145(Field, { label: "Request ID", children: functionError.requestId }),
31963
+ /* @__PURE__ */ jsx145(Field, { label: "Function Error", testId: EVENT_DETAILS_FUNCTION_ERROR_TEST_ID, children: functionError.functionError })
31939
31964
  ] })
31940
31965
  ] }),
31941
- functionError?.stackTrace !== void 0 && /* @__PURE__ */ jsxs132(Box17, { children: [
31966
+ functionError?.stackTrace !== void 0 && /* @__PURE__ */ jsxs132(Box18, { children: [
31942
31967
  /* @__PURE__ */ jsxs132(Stack4, { alignItems: "center", direction: "row", sx: { "&:hover .copy-btn": { opacity: 1 } }, children: [
31943
- /* @__PURE__ */ jsx144(Typography13, { sx: { fontWeight: 600 }, variant: "caption", children: "Stack Trace" }),
31944
- /* @__PURE__ */ jsx144(CopyButton, { value: functionError.stackTrace })
31968
+ /* @__PURE__ */ jsx145(Typography13, { sx: { fontWeight: 600 }, variant: "caption", children: "Stack Trace" }),
31969
+ /* @__PURE__ */ jsx145(CopyButton, { value: functionError.stackTrace })
31945
31970
  ] }),
31946
- /* @__PURE__ */ jsx144(
31947
- Box17,
31971
+ /* @__PURE__ */ jsx145(
31972
+ Box18,
31948
31973
  {
31949
31974
  component: "pre",
31950
31975
  "data-testid": EVENT_DETAILS_STACK_TRACE_TEST_ID,
@@ -31953,16 +31978,16 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31953
31978
  }
31954
31979
  )
31955
31980
  ] }),
31956
- exceptionPayload !== void 0 && /* @__PURE__ */ jsxs132(Box17, { children: [
31957
- /* @__PURE__ */ jsx144(Typography13, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
31958
- /* @__PURE__ */ jsx144(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
31981
+ exceptionPayload !== void 0 && /* @__PURE__ */ jsxs132(Box18, { children: [
31982
+ /* @__PURE__ */ jsx145(Typography13, { sx: { fontWeight: 600, mb: 0.5 }, variant: "caption", children: "Exception" }),
31983
+ /* @__PURE__ */ jsx145(PayloadViewer, { testId: EVENT_DETAILS_EXCEPTION_PAYLOAD_TEST_ID, value: exceptionPayload })
31959
31984
  ] })
31960
31985
  ] }),
31961
31986
  activeTab === "permissions" && /* @__PURE__ */ jsxs132(Fragment11, { children: [
31962
- selectedEvent.iam_errors_suppressed && /* @__PURE__ */ jsx144(Alert4, { "data-testid": EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID, severity: "warning", sx: { mb: 1 }, children: "IAM errors are suppressed \u2014 upgrade your license to view" }),
31963
- eventGroups.permissions && /* @__PURE__ */ jsx144(EventDetail, { displayText: "Permissions", events: eventGroups.permissions, type: "permission" })
31987
+ selectedEvent.iam_errors_suppressed && /* @__PURE__ */ jsx145(Alert4, { "data-testid": EVENT_DETAILS_IAM_ERRORS_SUPPRESSED_TEST_ID, severity: "warning", sx: { mb: 1 }, children: "IAM errors are suppressed \u2014 upgrade your license to view" }),
31988
+ eventGroups.permissions && /* @__PURE__ */ jsx145(EventDetail, { displayText: "Permissions", events: eventGroups.permissions, type: "permission" })
31964
31989
  ] }),
31965
- activeTab === "logs" && requestId !== void 0 && /* @__PURE__ */ jsx144(
31990
+ activeTab === "logs" && requestId !== void 0 && /* @__PURE__ */ jsx145(
31966
31991
  LambdaInvokeLogsSection,
31967
31992
  {
31968
31993
  endTimeNano: selectedEvent.end_time_unix_nano ?? selectedEvent.start_time_unix_nano,
@@ -31973,9 +31998,9 @@ var EventDetails = ({ onClose, onOperationShown, selectedEvent }) => {
31973
31998
  }
31974
31999
  ),
31975
32000
  activeTab === "advanced" && /* @__PURE__ */ jsxs132(Stack4, { spacing: 1, children: [
31976
- /* @__PURE__ */ jsx144(Field, { label: "Span ID", testId: EVENT_DETAILS_SPAN_ID_TEST_ID, children: selectedEvent.span_id }),
31977
- /* @__PURE__ */ jsx144(Field, { label: "Trace ID", testId: EVENT_DETAILS_TRACE_ID_TEST_ID, children: selectedEvent.trace_id }),
31978
- requestId !== void 0 && /* @__PURE__ */ jsx144(Field, { label: "Request ID", testId: EVENT_DETAILS_REQUEST_ID_TEST_ID, children: requestId })
32001
+ /* @__PURE__ */ jsx145(Field, { label: "Span ID", testId: EVENT_DETAILS_SPAN_ID_TEST_ID, children: selectedEvent.span_id }),
32002
+ /* @__PURE__ */ jsx145(Field, { label: "Trace ID", testId: EVENT_DETAILS_TRACE_ID_TEST_ID, children: selectedEvent.trace_id }),
32003
+ requestId !== void 0 && /* @__PURE__ */ jsx145(Field, { label: "Request ID", testId: EVENT_DETAILS_REQUEST_ID_TEST_ID, children: requestId })
31979
32004
  ] })
31980
32005
  ] })
31981
32006
  ] })
@@ -31990,94 +32015,41 @@ import { useCallback as useCallback7, useEffect as useEffect18, useRef as useRef
31990
32015
 
31991
32016
  // src/components/trace-graph/service-node.tsx
31992
32017
  import { Cancel as Cancel6, GppMaybe as GppMaybe7 } from "@mui/icons-material";
31993
- import { Box as Box18, Divider as Divider4, Stack as Stack5, Tooltip as Tooltip7, Typography as Typography14, useTheme as useTheme4 } from "@mui/material";
32018
+ import { Box as Box19, Tooltip as Tooltip6, useTheme as useTheme4 } from "@mui/material";
31994
32019
  import { Handle, Position } from "@xyflow/react";
31995
32020
  import "@xyflow/react/dist/style.css";
31996
32021
  import "react";
31997
- import { memo as memo11, useRef as useRef14, useState as useState15 } from "react";
31998
- import { Fragment as Fragment12, jsx as jsx145, jsxs as jsxs133 } from "react/jsx-runtime";
32022
+ import { memo as memo12, useRef as useRef14, useState as useState15 } from "react";
32023
+ import { Fragment as Fragment12, jsx as jsx146, jsxs as jsxs133 } from "react/jsx-runtime";
31999
32024
  var handleStyle = {
32000
32025
  backgroundColor: "white",
32001
32026
  borderColor: "lightgray",
32002
32027
  opacity: 0
32003
32028
  };
32004
- var NodeContent = ({ event, expanded, issues }) => {
32029
+ var NodeContent = ({ event, issues }) => {
32005
32030
  const theme = useTheme4();
32006
32031
  return /* @__PURE__ */ jsxs133(Fragment12, { children: [
32007
- /* @__PURE__ */ jsx145(Handle, { position: Position.Left, style: handleStyle, type: "target" }),
32008
- /* @__PURE__ */ jsx145(Handle, { position: Position.Right, style: handleStyle, type: "source" }),
32009
- /* @__PURE__ */ jsxs133(
32010
- Stack5,
32032
+ /* @__PURE__ */ jsx146(Handle, { position: Position.Left, style: handleStyle, type: "target" }),
32033
+ /* @__PURE__ */ jsx146(Handle, { position: Position.Right, style: handleStyle, type: "source" }),
32034
+ /* @__PURE__ */ jsx146(
32035
+ OperationIdentity,
32011
32036
  {
32012
- alignItems: "center",
32013
- direction: "row",
32014
- sx: { gap: "8px", pb: "2px", pt: "6px", px: "8px" },
32015
- children: [
32016
- /* @__PURE__ */ jsx145(Box18, { sx: { borderRadius: "4px", flexShrink: 0, lineHeight: 0, overflow: "hidden" }, children: /* @__PURE__ */ jsx145(AwsServiceIcon, { hideTooltip: true, service: event.service_name, size: "medium" }) }),
32017
- /* @__PURE__ */ jsxs133(Stack5, { sx: expanded ? void 0 : { minWidth: 0 }, children: [
32018
- /* @__PURE__ */ jsx145(
32019
- Typography14,
32020
- {
32021
- noWrap: !expanded,
32022
- sx: { fontWeight: 700, lineHeight: 1.25, ...expanded && { whiteSpace: "nowrap" } },
32023
- variant: "body2",
32024
- children: getServiceDisplayName(event.service_name)
32025
- }
32026
- ),
32027
- event.resource_name != "" && /* @__PURE__ */ jsx145(
32028
- Typography14,
32029
- {
32030
- color: "text.secondary",
32031
- noWrap: !expanded,
32032
- sx: { lineHeight: 1.2, ...expanded && { whiteSpace: "nowrap" } },
32033
- variant: "caption",
32034
- children: event.resource_name
32035
- }
32036
- )
32037
- ] })
32038
- ]
32039
- }
32040
- ),
32041
- /* @__PURE__ */ jsx145(Divider4, { sx: { ml: "38px", mr: "8px", my: "5px" } }),
32042
- /* @__PURE__ */ jsxs133(
32043
- Stack5,
32044
- {
32045
- alignItems: "center",
32046
- direction: "row",
32047
- sx: expanded ? { pb: "5px", pr: "8px", pt: "1px" } : { minWidth: 0, pb: "5px", pr: "8px", pt: "1px" },
32048
- children: [
32049
- /* @__PURE__ */ jsxs133(
32050
- Box18,
32051
- {
32052
- sx: {
32053
- alignItems: "center",
32054
- display: "flex",
32055
- flexShrink: 0,
32056
- justifyContent: "center",
32057
- width: "38px"
32058
- },
32059
- children: [
32060
- issues.error && /* @__PURE__ */ jsx145(Tooltip7, { arrow: true, title: issues.errorType, children: /* @__PURE__ */ jsx145(Box18, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx145(Cancel6, { sx: { color: theme.palette.error.main, fontSize: "16px" } }) }) }),
32061
- issues.warning && /* @__PURE__ */ jsx145(Tooltip7, { arrow: true, title: issues.warningType, children: /* @__PURE__ */ jsx145(Box18, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx145(GppMaybe7, { sx: { color: theme.palette.warning.main, fontSize: "16px" } }) }) })
32062
- ]
32063
- }
32064
- ),
32065
- /* @__PURE__ */ jsx145(
32066
- Typography14,
32067
- {
32068
- "data-testid": SERVICE_NODE_OPERATION_NAME_TEST_ID,
32069
- noWrap: !expanded,
32070
- sx: expanded ? { fontSize: "0.72rem", whiteSpace: "nowrap" } : { flex: 1, fontSize: "0.72rem", minWidth: 0 },
32071
- variant: "caption",
32072
- children: /* @__PURE__ */ jsx145(OperationName, { span: event })
32073
- }
32074
- )
32075
- ]
32037
+ arn: event.arn,
32038
+ density: "stacked",
32039
+ operation: /* @__PURE__ */ jsx146(OperationName, { span: event }),
32040
+ resourceName: event.resource_name,
32041
+ resourcePlaceholder: "\u2014",
32042
+ resourcePrefix: issues.error || issues.warning ? /* @__PURE__ */ jsxs133(Box19, { sx: { display: "flex", flex: "none", gap: "2px" }, children: [
32043
+ issues.error && /* @__PURE__ */ jsx146(Tooltip6, { arrow: true, title: issues.errorType, children: /* @__PURE__ */ jsx146(Box19, { "aria-label": "Error", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx146(Cancel6, { sx: { color: theme.palette.error.main, fontSize: "14px" } }) }) }),
32044
+ issues.warning && /* @__PURE__ */ jsx146(Tooltip6, { arrow: true, title: issues.warningType, children: /* @__PURE__ */ jsx146(Box19, { "aria-label": "Warning", role: "img", sx: { display: "flex" }, children: /* @__PURE__ */ jsx146(GppMaybe7, { sx: { color: theme.palette.warning.main, fontSize: "14px" } }) }) })
32045
+ ] }) : void 0,
32046
+ service: event.service_name,
32047
+ sx: { px: "10px", py: "10px" }
32076
32048
  }
32077
32049
  )
32078
32050
  ] });
32079
32051
  };
32080
- var ServiceNode = memo11(({ data, selected }) => {
32052
+ var ServiceNode = memo12(({ data, selected }) => {
32081
32053
  const theme = useTheme4();
32082
32054
  const [isHovered, setIsHovered] = useState15(false);
32083
32055
  const nodeRef = useRef14(null);
@@ -32109,7 +32081,7 @@ var ServiceNode = memo11(({ data, selected }) => {
32109
32081
  if (xyNode) xyNode.style.zIndex = "";
32110
32082
  };
32111
32083
  return /* @__PURE__ */ jsxs133(
32112
- Box18,
32084
+ Box19,
32113
32085
  {
32114
32086
  "data-testid": SERVICE_NODE_TEST_ID,
32115
32087
  onMouseEnter: handleMouseEnter,
@@ -32119,8 +32091,8 @@ var ServiceNode = memo11(({ data, selected }) => {
32119
32091
  sx: { display: "inline-block", position: "relative" },
32120
32092
  tabIndex: 0,
32121
32093
  children: [
32122
- /* @__PURE__ */ jsx145(
32123
- Box18,
32094
+ /* @__PURE__ */ jsx146(
32095
+ Box19,
32124
32096
  {
32125
32097
  sx: {
32126
32098
  ...sharedBoxSx,
@@ -32128,11 +32100,11 @@ var ServiceNode = memo11(({ data, selected }) => {
32128
32100
  maxWidth: 220,
32129
32101
  overflow: "hidden"
32130
32102
  },
32131
- children: /* @__PURE__ */ jsx145(NodeContent, { ...contentProps, expanded: false })
32103
+ children: /* @__PURE__ */ jsx146(NodeContent, { ...contentProps })
32132
32104
  }
32133
32105
  ),
32134
- /* @__PURE__ */ jsx145(
32135
- Box18,
32106
+ /* @__PURE__ */ jsx146(
32107
+ Box19,
32136
32108
  {
32137
32109
  onMouseLeave: handleMouseLeave,
32138
32110
  sx: {
@@ -32146,7 +32118,7 @@ var ServiceNode = memo11(({ data, selected }) => {
32146
32118
  width: "max-content",
32147
32119
  zIndex: 10
32148
32120
  },
32149
- children: /* @__PURE__ */ jsx145(NodeContent, { ...contentProps, expanded: true })
32121
+ children: /* @__PURE__ */ jsx146(NodeContent, { ...contentProps })
32150
32122
  }
32151
32123
  )
32152
32124
  ]
@@ -32241,17 +32213,17 @@ var getLayoutedNodesAndEdges = (inputNodes, inputEdges) => {
32241
32213
 
32242
32214
  // src/components/trace-graph/xyflow/controls.tsx
32243
32215
  import { Add, FitScreen, Remove } from "@mui/icons-material";
32244
- import { Box as Box19, IconButton as IconButton7 } from "@mui/material";
32216
+ import { Box as Box20, IconButton as IconButton7 } from "@mui/material";
32245
32217
  import { useReactFlow, useStore as useStore2 } from "@xyflow/react";
32246
- import { memo as memo12 } from "react";
32218
+ import { memo as memo13 } from "react";
32247
32219
  import { shallow } from "zustand/shallow";
32248
- import { jsx as jsx146, jsxs as jsxs134 } from "react/jsx-runtime";
32220
+ import { jsx as jsx147, jsxs as jsxs134 } from "react/jsx-runtime";
32249
32221
  var selector = (s) => ({
32250
32222
  isInteractive: s.nodesDraggable || s.nodesConnectable || s.elementsSelectable,
32251
32223
  maxZoomReached: s.transform[2] >= s.maxZoom,
32252
32224
  minZoomReached: s.transform[2] <= s.minZoom
32253
32225
  });
32254
- var Controls = memo12(() => {
32226
+ var Controls = memo13(() => {
32255
32227
  const { maxZoomReached, minZoomReached } = useStore2(selector, shallow);
32256
32228
  const { fitView, zoomIn, zoomOut } = useReactFlow();
32257
32229
  const onZoomInHandler = () => {
@@ -32264,7 +32236,7 @@ var Controls = memo12(() => {
32264
32236
  void fitView();
32265
32237
  };
32266
32238
  return /* @__PURE__ */ jsxs134(
32267
- Box19,
32239
+ Box20,
32268
32240
  {
32269
32241
  sx: {
32270
32242
  bottom: 0,
@@ -32277,33 +32249,33 @@ var Controls = memo12(() => {
32277
32249
  zIndex: 5
32278
32250
  },
32279
32251
  children: [
32280
- /* @__PURE__ */ jsx146(
32252
+ /* @__PURE__ */ jsx147(
32281
32253
  IconButton7,
32282
32254
  {
32283
32255
  className: "react-flow__controls-zoomin",
32284
32256
  disabled: maxZoomReached,
32285
32257
  onClick: onZoomInHandler,
32286
32258
  size: "small",
32287
- children: /* @__PURE__ */ jsx146(Add, {})
32259
+ children: /* @__PURE__ */ jsx147(Add, {})
32288
32260
  }
32289
32261
  ),
32290
- /* @__PURE__ */ jsx146(
32262
+ /* @__PURE__ */ jsx147(
32291
32263
  IconButton7,
32292
32264
  {
32293
32265
  className: "react-flow__controls-zoomout",
32294
32266
  disabled: minZoomReached,
32295
32267
  onClick: onZoomOutHandler,
32296
32268
  size: "small",
32297
- children: /* @__PURE__ */ jsx146(Remove, {})
32269
+ children: /* @__PURE__ */ jsx147(Remove, {})
32298
32270
  }
32299
32271
  ),
32300
- /* @__PURE__ */ jsx146(
32272
+ /* @__PURE__ */ jsx147(
32301
32273
  IconButton7,
32302
32274
  {
32303
32275
  className: "react-flow__controls-fitview",
32304
32276
  onClick: onFitViewHandler,
32305
32277
  size: "small",
32306
- children: /* @__PURE__ */ jsx146(FitScreen, {})
32278
+ children: /* @__PURE__ */ jsx147(FitScreen, {})
32307
32279
  }
32308
32280
  )
32309
32281
  ]
@@ -32314,12 +32286,12 @@ var Controls = memo12(() => {
32314
32286
  // src/components/trace-graph/xyflow/minimap-node.tsx
32315
32287
  import { useTheme as useTheme5 } from "@mui/material";
32316
32288
  import { useStore as useStore3 } from "@xyflow/react";
32317
- import { memo as memo13 } from "react";
32318
- import { jsx as jsx147, jsxs as jsxs135 } from "react/jsx-runtime";
32289
+ import { memo as memo14 } from "react";
32290
+ import { jsx as jsx148, jsxs as jsxs135 } from "react/jsx-runtime";
32319
32291
  var ICON_FRACTION = 0.35;
32320
32292
  var PADDING_FRACTION = 0.18;
32321
32293
  var ICON_NATIVE_SIZE = 80;
32322
- var MinimapServiceNode = memo13(({
32294
+ var MinimapServiceNode = memo14(({
32323
32295
  height,
32324
32296
  id: id2,
32325
32297
  onClick,
@@ -32347,7 +32319,7 @@ var MinimapServiceNode = memo13(({
32347
32319
  return /* @__PURE__ */ jsxs135("g", { onClick: onClick ? (event2) => {
32348
32320
  onClick(event2, id2);
32349
32321
  } : void 0, children: [
32350
- /* @__PURE__ */ jsx147(
32322
+ /* @__PURE__ */ jsx148(
32351
32323
  "rect",
32352
32324
  {
32353
32325
  fill: theme.palette.background.paper,
@@ -32361,7 +32333,7 @@ var MinimapServiceNode = memo13(({
32361
32333
  y
32362
32334
  }
32363
32335
  ),
32364
- isError && /* @__PURE__ */ jsx147(
32336
+ isError && /* @__PURE__ */ jsx148(
32365
32337
  "rect",
32366
32338
  {
32367
32339
  fill: errorColor,
@@ -32373,8 +32345,8 @@ var MinimapServiceNode = memo13(({
32373
32345
  y: y + 3
32374
32346
  }
32375
32347
  ),
32376
- Icon && /* @__PURE__ */ jsx147("g", { transform: `translate(${String(x + padding)}, ${String(y + padding)}) scale(${String(scale2)})`, children: /* @__PURE__ */ jsx147(Icon, { height: ICON_NATIVE_SIZE, width: ICON_NATIVE_SIZE }) }),
32377
- isError && Icon && /* @__PURE__ */ jsx147(
32348
+ Icon && /* @__PURE__ */ jsx148("g", { transform: `translate(${String(x + padding)}, ${String(y + padding)}) scale(${String(scale2)})`, children: /* @__PURE__ */ jsx148(Icon, { height: ICON_NATIVE_SIZE, width: ICON_NATIVE_SIZE }) }),
32349
+ isError && Icon && /* @__PURE__ */ jsx148(
32378
32350
  "circle",
32379
32351
  {
32380
32352
  cx: dotX,
@@ -32387,7 +32359,7 @@ var MinimapServiceNode = memo13(({
32387
32359
  });
32388
32360
 
32389
32361
  // src/components/trace-graph/trace-graph.tsx
32390
- import { Fragment as Fragment13, jsx as jsx148, jsxs as jsxs136 } from "react/jsx-runtime";
32362
+ import { Fragment as Fragment13, jsx as jsx149, jsxs as jsxs136 } from "react/jsx-runtime";
32391
32363
  var nodeTypes = {
32392
32364
  service: ServiceNode
32393
32365
  };
@@ -32503,7 +32475,7 @@ var TraceGraph = ({
32503
32475
  spans.error && /* @__PURE__ */ jsxs136(
32504
32476
  Alert5,
32505
32477
  {
32506
- action: /* @__PURE__ */ jsx148(Button6, { onClick: () => {
32478
+ action: /* @__PURE__ */ jsx149(Button6, { onClick: () => {
32507
32479
  onRefresh();
32508
32480
  }, children: "Retry" }),
32509
32481
  severity: "error",
@@ -32535,9 +32507,9 @@ var TraceGraph = ({
32535
32507
  selectNodesOnDrag: false,
32536
32508
  translateExtent,
32537
32509
  children: [
32538
- /* @__PURE__ */ jsx148(ExtentUpdater, { onUpdate: updateExtent, viewportRef }),
32539
- /* @__PURE__ */ jsx148(Controls, {}),
32540
- !hideMiniMap && /* @__PURE__ */ jsx148(
32510
+ /* @__PURE__ */ jsx149(ExtentUpdater, { onUpdate: updateExtent, viewportRef }),
32511
+ /* @__PURE__ */ jsx149(Controls, {}),
32512
+ !hideMiniMap && /* @__PURE__ */ jsx149(
32541
32513
  MiniMap,
32542
32514
  {
32543
32515
  nodeComponent: MinimapServiceNode,
@@ -32545,7 +32517,7 @@ var TraceGraph = ({
32545
32517
  zoomable: true
32546
32518
  }
32547
32519
  ),
32548
- /* @__PURE__ */ jsx148(
32520
+ /* @__PURE__ */ jsx149(
32549
32521
  Background,
32550
32522
  {
32551
32523
  bgColor: theme.palette.background.default,
@@ -32605,10 +32577,16 @@ function useLocalStorage(key, initialValue) {
32605
32577
 
32606
32578
  // src/components/trace-panel/waterfall.tsx
32607
32579
  import { AccountTreeOutlined, Cancel as Cancel7, FormatListBulleted, GppMaybe as GppMaybe8, KeyboardArrowDown as KeyboardArrowDown2, KeyboardArrowRight as KeyboardArrowRight2 } from "@mui/icons-material";
32608
- import { Box as Box20, ButtonBase as ButtonBase2, ToggleButton as ToggleButton2, ToggleButtonGroup as ToggleButtonGroup2, Typography as Typography15 } from "@mui/material";
32580
+ import { Box as Box21, ButtonBase as ButtonBase2, ToggleButton as ToggleButton2, ToggleButtonGroup as ToggleButtonGroup2, Typography as Typography14 } from "@mui/material";
32609
32581
  import { alpha as alpha6 } from "@mui/material/styles";
32610
32582
  import * as React124 from "react";
32611
32583
 
32584
+ // src/dev-settings.tsx
32585
+ import * as React123 from "react";
32586
+ var DEFAULT_DEV_SETTINGS = { waterfallLayout: "tree" };
32587
+ var DevSettingsContext = React123.createContext(DEFAULT_DEV_SETTINGS);
32588
+ var useDevSettings = () => React123.useContext(DevSettingsContext);
32589
+
32612
32590
  // src/components/trace-panel/axis-ticks.ts
32613
32591
  var getAxisTicks = (durationMs, maxIntervals) => {
32614
32592
  if (durationMs <= 0 || maxIntervals < 1) return [0];
@@ -32648,7 +32626,7 @@ var layoutAxis = (durationMs, width) => {
32648
32626
  };
32649
32627
 
32650
32628
  // src/components/trace-panel/waterfall.tsx
32651
- import { Fragment as Fragment14, jsx as jsx149, jsxs as jsxs137 } from "react/jsx-runtime";
32629
+ import { Fragment as Fragment14, jsx as jsx150, jsxs as jsxs137 } from "react/jsx-runtime";
32652
32630
  var SERVICE_COLORS = {
32653
32631
  apigateway: "#7048E8",
32654
32632
  dynamodb: "#3B5BDB",
@@ -32687,11 +32665,11 @@ var flatten = (nodes2, collapsed, depth = 0, branches = [], parent) => nodes2.fl
32687
32665
  });
32688
32666
  var flattenAll = (nodes2) => flatten(nodes2, /* @__PURE__ */ new Set()).map((row) => ({ ...row, branches: [], depth: 0, last: true })).toSorted((left, right) => compareNano(left.node.span.start_time_unix_nano, right.node.span.start_time_unix_nano));
32689
32667
  var StatusIcons = ({ error, warning: warning2 }) => /* @__PURE__ */ jsxs137(Fragment14, { children: [
32690
- error && /* @__PURE__ */ jsx149(Cancel7, { sx: { color: "error.main", fontSize: 14 } }),
32691
- warning2 && /* @__PURE__ */ jsx149(GppMaybe8, { sx: { color: "warning.main", fontSize: 14 } })
32668
+ error && /* @__PURE__ */ jsx150(Cancel7, { sx: { color: "error.main", fontSize: 14 } }),
32669
+ warning2 && /* @__PURE__ */ jsx150(GppMaybe8, { sx: { color: "warning.main", fontSize: 14 } })
32692
32670
  ] });
32693
- var Line = ({ height, left, top = 0, width = 1 }) => /* @__PURE__ */ jsx149(
32694
- Box20,
32671
+ var Line = ({ height, left, top = 0, width = 1 }) => /* @__PURE__ */ jsx150(
32672
+ Box21,
32695
32673
  {
32696
32674
  "aria-hidden": "true",
32697
32675
  sx: { backgroundColor: "divider", height: height === void 0 ? `calc(100% - ${String(top)}px)` : `${String(height)}px`, left: `${String(left)}px`, pointerEvents: "none", position: "absolute", top: `${String(top)}px`, width: `${String(width)}px` }
@@ -32720,7 +32698,7 @@ var WaterfallAxis = ({ durationMs, flat, onFlatChange }) => {
32720
32698
  const width = useWidth(trackRef);
32721
32699
  const { labels: labels2, marks } = layoutAxis(durationMs, width);
32722
32700
  return /* @__PURE__ */ jsxs137(
32723
- Box20,
32701
+ Box21,
32724
32702
  {
32725
32703
  "data-testid": WATERFALL_AXIS_TEST_ID,
32726
32704
  sx: {
@@ -32735,7 +32713,7 @@ var WaterfallAxis = ({ durationMs, flat, onFlatChange }) => {
32735
32713
  zIndex: 1
32736
32714
  },
32737
32715
  children: [
32738
- /* @__PURE__ */ jsx149(Box20, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gridColumn: "1 / 3", pl: "5px" }, children: onFlatChange && /* @__PURE__ */ jsxs137(
32716
+ /* @__PURE__ */ jsx150(Box21, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gridColumn: "1 / 3", pl: "5px" }, children: onFlatChange && /* @__PURE__ */ jsxs137(
32739
32717
  ToggleButtonGroup2,
32740
32718
  {
32741
32719
  "aria-label": "Operations layout",
@@ -32748,20 +32726,20 @@ var WaterfallAxis = ({ durationMs, flat, onFlatChange }) => {
32748
32726
  value: flat ? "list" : "tree",
32749
32727
  children: [
32750
32728
  /* @__PURE__ */ jsxs137(ToggleButton2, { "data-testid": WATERFALL_TREE_VIEW_BUTTON_TEST_ID, value: "tree", children: [
32751
- /* @__PURE__ */ jsx149(AccountTreeOutlined, { sx: { fontSize: 13 } }),
32729
+ /* @__PURE__ */ jsx150(AccountTreeOutlined, { sx: { fontSize: 13 } }),
32752
32730
  "Tree"
32753
32731
  ] }),
32754
32732
  /* @__PURE__ */ jsxs137(ToggleButton2, { "data-testid": WATERFALL_LIST_VIEW_BUTTON_TEST_ID, value: "list", children: [
32755
- /* @__PURE__ */ jsx149(FormatListBulleted, { sx: { fontSize: 13 } }),
32733
+ /* @__PURE__ */ jsx150(FormatListBulleted, { sx: { fontSize: 13 } }),
32756
32734
  "List"
32757
32735
  ] })
32758
32736
  ]
32759
32737
  }
32760
32738
  ) }),
32761
- /* @__PURE__ */ jsxs137(Box20, { "aria-hidden": "true", ref: trackRef, sx: { mx: TRACK_INSET, position: "relative" }, children: [
32762
- marks.map((x) => /* @__PURE__ */ jsx149(Box20, { sx: { backgroundColor: "divider", bottom: 0, height: "4px", left: `${String(x)}px`, position: "absolute", width: "1px" } }, x)),
32763
- labels2.map((label) => /* @__PURE__ */ jsx149(
32764
- Typography15,
32739
+ /* @__PURE__ */ jsxs137(Box21, { "aria-hidden": "true", ref: trackRef, sx: { mx: TRACK_INSET, position: "relative" }, children: [
32740
+ marks.map((x) => /* @__PURE__ */ jsx150(Box21, { sx: { backgroundColor: "divider", bottom: 0, height: "4px", left: `${String(x)}px`, position: "absolute", width: "1px" } }, x)),
32741
+ labels2.map((label) => /* @__PURE__ */ jsx150(
32742
+ Typography14,
32765
32743
  {
32766
32744
  color: "text.secondary",
32767
32745
  component: "span",
@@ -32824,11 +32802,11 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32824
32802
  else if (event.key === "ArrowLeft" && !flat && node.children.length > 0) setExpanded(spanId, false);
32825
32803
  };
32826
32804
  if (spans.length === 0) {
32827
- return /* @__PURE__ */ jsx149(Typography15, { color: "text.secondary", sx: { p: 2 }, variant: "body2", children: "No operations in this trace." });
32805
+ return /* @__PURE__ */ jsx150(Typography14, { color: "text.secondary", sx: { p: 2 }, variant: "body2", children: "No operations in this trace." });
32828
32806
  }
32829
32807
  const percentAt = (nano) => bounds.durationMs > 0 ? Number(BigInt(nano) - bounds.startNano) / 1e6 / bounds.durationMs * 100 : 0;
32830
- return /* @__PURE__ */ jsxs137(Box20, { "aria-label": "Operations waterfall", "data-testid": WATERFALL_TEST_ID, ref: containerRef, role: "tree", sx: { fontSize: 13, minWidth: 0 }, children: [
32831
- /* @__PURE__ */ jsx149(WaterfallAxis, { durationMs: bounds.durationMs, flat, onFlatChange: waterfallLayout === "toggle" ? setToggledFlat : void 0 }),
32808
+ return /* @__PURE__ */ jsxs137(Box21, { "aria-label": "Operations waterfall", "data-testid": WATERFALL_TEST_ID, ref: containerRef, role: "tree", sx: { fontSize: 13, minWidth: 0 }, children: [
32809
+ /* @__PURE__ */ jsx150(WaterfallAxis, { durationMs: bounds.durationMs, flat, onFlatChange: waterfallLayout === "toggle" ? setToggledFlat : void 0 }),
32832
32810
  rows.map(({ branches, depth, last, node, parent }) => {
32833
32811
  const { span } = node;
32834
32812
  const issues = getSpanIssues(span);
@@ -32844,10 +32822,9 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32844
32822
  const endPercent = startPercent + widthPercent;
32845
32823
  const placement = endPercent <= 84 ? "after" : startPercent >= 16 ? "before" : "inside";
32846
32824
  const label = formatDuration(durationMs);
32847
- const resource = shortResourceName(span.resource_name, span.arn);
32848
32825
  const serviceColor = getServiceColor(span.service_name);
32849
32826
  return /* @__PURE__ */ jsxs137(
32850
- Box20,
32827
+ Box21,
32851
32828
  {
32852
32829
  "aria-expanded": hasChildren ? !isCollapsed : void 0,
32853
32830
  "aria-level": depth + 1,
@@ -32882,10 +32859,10 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32882
32859
  "scrollMarginTop": AXIS_HEIGHT
32883
32860
  }),
32884
32861
  children: [
32885
- /* @__PURE__ */ jsxs137(Box20, { sx: { alignItems: "center", display: "flex", minWidth: 0, pr: 1 }, children: [
32886
- /* @__PURE__ */ jsx149(Box20, { sx: { display: "inline-flex", flex: "none", gap: "2px", pl: 1, width: STATUS_ICONS_WIDTH }, children: /* @__PURE__ */ jsx149(StatusIcons, { error: issues.error, warning: issues.warning }) }),
32862
+ /* @__PURE__ */ jsxs137(Box21, { sx: { alignItems: "center", display: "flex", minWidth: 0, pr: 1 }, children: [
32863
+ /* @__PURE__ */ jsx150(Box21, { sx: { display: "inline-flex", flex: "none", gap: "2px", pl: 1, width: STATUS_ICONS_WIDTH }, children: /* @__PURE__ */ jsx150(StatusIcons, { error: issues.error, warning: issues.warning }) }),
32887
32864
  /* @__PURE__ */ jsxs137(
32888
- Typography15,
32865
+ Typography14,
32889
32866
  {
32890
32867
  color: "text.secondary",
32891
32868
  component: "span",
@@ -32894,20 +32871,20 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32894
32871
  sx: { display: "flex", flex: 1, fontSize: 11, fontVariantNumeric: "tabular-nums", lineHeight: `${String(ROW_HEIGHT)}px` },
32895
32872
  title: "Since the first operation of the trace",
32896
32873
  children: [
32897
- /* @__PURE__ */ jsx149(Box20, { component: "span", sx: { flex: 1, textAlign: "right" }, children: offsetMs > 0 ? `+${offset.value}` : offset.value }),
32898
- /* @__PURE__ */ jsx149(Box20, { component: "span", sx: { flex: "none", pl: "3px", width: OFFSET_UNIT_WIDTH }, children: offset.unit })
32874
+ /* @__PURE__ */ jsx150(Box21, { component: "span", sx: { flex: 1, textAlign: "right" }, children: offsetMs > 0 ? `+${offset.value}` : offset.value }),
32875
+ /* @__PURE__ */ jsx150(Box21, { component: "span", sx: { flex: "none", pl: "3px", width: OFFSET_UNIT_WIDTH }, children: offset.unit })
32899
32876
  ]
32900
32877
  }
32901
32878
  )
32902
32879
  ] }),
32903
- /* @__PURE__ */ jsxs137(Box20, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gap: "5px", minWidth: 0, overflow: "hidden", pl: `${String(8 + depth * INDENT)}px`, position: "relative", pr: 1 }, children: [
32904
- branches.map((runs, level) => runs && /* @__PURE__ */ jsx149(Line, { left: lineX(level) }, level)),
32880
+ /* @__PURE__ */ jsxs137(Box21, { sx: { alignItems: "center", borderRight: 1, borderRightColor: "divider", display: "flex", gap: "5px", minWidth: 0, overflow: "hidden", pl: `${String(8 + depth * INDENT)}px`, position: "relative", pr: 1 }, children: [
32881
+ branches.map((runs, level) => runs && /* @__PURE__ */ jsx150(Line, { left: lineX(level) }, level)),
32905
32882
  depth > 0 && /* @__PURE__ */ jsxs137(Fragment14, { children: [
32906
- /* @__PURE__ */ jsx149(Line, { height: last ? 12 : void 0, left: lineX(depth - 1) }),
32907
- /* @__PURE__ */ jsx149(Line, { height: 1, left: lineX(depth - 1), top: 12, width: hasChildren ? 8 : 20 })
32883
+ /* @__PURE__ */ jsx150(Line, { height: last ? 12 : void 0, left: lineX(depth - 1) }),
32884
+ /* @__PURE__ */ jsx150(Line, { height: 1, left: lineX(depth - 1), top: 12, width: hasChildren ? 8 : 20 })
32908
32885
  ] }),
32909
- hasChildren && !isCollapsed && /* @__PURE__ */ jsx149(Line, { left: lineX(depth), top: 19 }),
32910
- hasChildren ? /* @__PURE__ */ jsx149(
32886
+ hasChildren && !isCollapsed && /* @__PURE__ */ jsx150(Line, { left: lineX(depth), top: 19 }),
32887
+ hasChildren ? /* @__PURE__ */ jsx150(
32911
32888
  ButtonBase2,
32912
32889
  {
32913
32890
  "aria-label": isCollapsed ? "Expand" : "Collapse",
@@ -32927,17 +32904,15 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32927
32904
  "width": 14
32928
32905
  }),
32929
32906
  tabIndex: -1,
32930
- children: isCollapsed ? /* @__PURE__ */ jsx149(KeyboardArrowRight2, { sx: { fontSize: 16 } }) : /* @__PURE__ */ jsx149(KeyboardArrowDown2, { sx: { fontSize: 16 } })
32907
+ children: isCollapsed ? /* @__PURE__ */ jsx150(KeyboardArrowRight2, { sx: { fontSize: 16 } }) : /* @__PURE__ */ jsx150(KeyboardArrowDown2, { sx: { fontSize: 16 } })
32931
32908
  }
32932
- ) : !flat && /* @__PURE__ */ jsx149(Box20, { sx: { flex: "none", width: 14 } }),
32933
- /* @__PURE__ */ jsx149(Box20, { sx: { display: "flex", flex: "none" }, children: /* @__PURE__ */ jsx149(AwsServiceIcon, { hideTooltip: true, service: span.service_name, size: "small" }) }),
32934
- /* @__PURE__ */ jsx149(Typography15, { component: "span", noWrap: true, sx: { flex: "0 1 auto", fontSize: "inherit", fontWeight: 600, minWidth: 0 }, children: /* @__PURE__ */ jsx149(OperationName, { span }) }),
32935
- resource !== "" && resource !== "*" && /* @__PURE__ */ jsx149(Typography15, { color: "text.secondary", component: "span", noWrap: true, sx: { flex: "1 1 0", fontSize: 11, minWidth: 0 }, title: resource, children: resource })
32909
+ ) : !flat && /* @__PURE__ */ jsx150(Box21, { sx: { flex: "none", width: 14 } }),
32910
+ /* @__PURE__ */ jsx150(OperationIdentity, { arn: span.arn, density: "row", operation: /* @__PURE__ */ jsx150(OperationName, { span }), resourceName: span.resource_name, service: span.service_name, sx: { flex: 1 } })
32936
32911
  ] }),
32937
- /* @__PURE__ */ jsxs137(Box20, { sx: { mx: TRACK_INSET, position: "relative" }, children: [
32938
- parentStartPercent !== void 0 && startPercent > parentStartPercent && /* @__PURE__ */ jsx149(Box20, { sx: { backgroundColor: serviceColor, height: "1px", left: `${String(parentStartPercent)}%`, opacity: 0.35, position: "absolute", top: 11.5, width: `${String(startPercent - parentStartPercent)}%` } }),
32939
- /* @__PURE__ */ jsx149(
32940
- Box20,
32912
+ /* @__PURE__ */ jsxs137(Box21, { sx: { mx: TRACK_INSET, position: "relative" }, children: [
32913
+ parentStartPercent !== void 0 && startPercent > parentStartPercent && /* @__PURE__ */ jsx150(Box21, { sx: { backgroundColor: serviceColor, height: "1px", left: `${String(parentStartPercent)}%`, opacity: 0.35, position: "absolute", top: 11.5, width: `${String(startPercent - parentStartPercent)}%` } }),
32914
+ /* @__PURE__ */ jsx150(
32915
+ Box21,
32941
32916
  {
32942
32917
  sx: (theme) => ({
32943
32918
  background: issues.error ? `repeating-linear-gradient(135deg, ${theme.palette.error.main} 0 4px, ${alpha6(theme.palette.error.main, 0.7)} 4px 8px)` : serviceColor,
@@ -32951,8 +32926,8 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32951
32926
  })
32952
32927
  }
32953
32928
  ),
32954
- /* @__PURE__ */ jsx149(
32955
- Typography15,
32929
+ /* @__PURE__ */ jsx150(
32930
+ Typography14,
32956
32931
  {
32957
32932
  color: placement === "inside" ? "#fff" : "text.secondary",
32958
32933
  component: "span",
@@ -32981,7 +32956,7 @@ var Waterfall = ({ onSelectSpan, selectedSpanId, spanMatches, spans }) => {
32981
32956
  };
32982
32957
 
32983
32958
  // src/components/trace-panel/trace-sidebar.tsx
32984
- import { jsx as jsx150, jsxs as jsxs138 } from "react/jsx-runtime";
32959
+ import { jsx as jsx151, jsxs as jsxs138 } from "react/jsx-runtime";
32985
32960
  var DEFAULT_WIDTH_SHARE = 0.75;
32986
32961
  var MAX_WIDTH_SHARE = 0.8;
32987
32962
  var SNAP_WIDTH_SHARE = (MAX_WIDTH_SHARE + 1) / 2;
@@ -33069,7 +33044,6 @@ var TraceSidebar = ({ onClose, onOperationShown, onRequestRendered, onSelectSpan
33069
33044
  }
33070
33045
  };
33071
33046
  }, [spans, selectedSpanId]);
33072
- const rootResource = root2 ? shortResourceName(root2.resource_name, root2.arn) : "";
33073
33047
  const rootSpanId = root2?.span_id;
33074
33048
  React125.useEffect(() => {
33075
33049
  if (!onRequestRendered || rootSpanId === void 0) return;
@@ -33083,7 +33057,7 @@ var TraceSidebar = ({ onClose, onOperationShown, onRequestRendered, onSelectSpan
33083
33057
  };
33084
33058
  }, [onRequestRendered, rootSpanId, view]);
33085
33059
  return /* @__PURE__ */ jsxs138(
33086
- Box21,
33060
+ Box22,
33087
33061
  {
33088
33062
  "data-testid": TRACE_SIDEBAR_TEST_ID,
33089
33063
  ref: sidebarRef,
@@ -33105,8 +33079,8 @@ var TraceSidebar = ({ onClose, onOperationShown, onRequestRendered, onSelectSpan
33105
33079
  width: `${String(width * 100)}%`
33106
33080
  },
33107
33081
  children: [
33108
- /* @__PURE__ */ jsx150(
33109
- Box21,
33082
+ /* @__PURE__ */ jsx151(
33083
+ Box22,
33110
33084
  {
33111
33085
  "aria-label": "Resize the sidebar",
33112
33086
  "aria-orientation": "vertical",
@@ -33134,21 +33108,27 @@ var TraceSidebar = ({ onClose, onOperationShown, onRequestRendered, onSelectSpan
33134
33108
  tabIndex: 0
33135
33109
  }
33136
33110
  ),
33137
- /* @__PURE__ */ jsxs138(Box21, { sx: { alignItems: "center", borderBottom: 1, borderColor: "divider", display: "flex", gap: 1.5, px: 2, py: 1 }, children: [
33138
- /* @__PURE__ */ jsxs138(Box21, { sx: { flex: 1, minWidth: 0 }, children: [
33139
- /* @__PURE__ */ jsx150(Typography16, { color: "text.secondary", component: "div", sx: { lineHeight: 1.5 }, variant: "overline", children: "Request" }),
33140
- root2 && /* @__PURE__ */ jsxs138(Box21, { "data-testid": TRACE_SIDEBAR_ROOT_HEADING_TEST_ID, sx: { alignItems: "center", display: "flex", gap: 1, minWidth: 0 }, children: [
33141
- /* @__PURE__ */ jsx150(AwsServiceIcon, { hideTooltip: true, service: root2.service_name, size: "small" }),
33142
- /* @__PURE__ */ jsx150(Typography16, { noWrap: true, sx: { flex: "0 1 auto", fontWeight: 600, minWidth: 0 }, variant: "subtitle1", children: /* @__PURE__ */ jsx150(OperationName, { span: root2 }) }),
33143
- rootResource !== "" && rootResource !== "*" && /* @__PURE__ */ jsx150(Typography16, { color: "text.secondary", noWrap: true, sx: { flex: "1 1 0", minWidth: 0 }, title: rootResource, variant: "body2", children: rootResource })
33144
- ] }),
33145
- /* @__PURE__ */ jsx150(Typography16, { color: "text.secondary", component: "div", "data-testid": TRACE_SIDEBAR_STATS_TEST_ID, variant: "caption", children: [
33146
- formatDuration(stats.durationMs),
33147
- pluralize(spans.length, "operation"),
33148
- ...stats.errors > 0 ? [pluralize(stats.errors, "error")] : [],
33149
- ...stats.warnings > 0 ? [pluralize(stats.warnings, "warning")] : []
33150
- ].join(" \xB7 ") })
33151
- ] }),
33111
+ /* @__PURE__ */ jsxs138(Box22, { "aria-label": "Request", component: "header", sx: { alignItems: "center", borderBottom: 1, borderColor: "divider", display: "flex", gap: 1.5, px: 2, py: 1.25 }, children: [
33112
+ root2 === void 0 ? /* @__PURE__ */ jsx151(Box22, { sx: { flex: 1 } }) : /* @__PURE__ */ jsx151(
33113
+ OperationIdentity,
33114
+ {
33115
+ arn: root2.arn,
33116
+ density: "heading",
33117
+ label: "Request",
33118
+ operation: /* @__PURE__ */ jsx151(OperationName, { span: root2 }),
33119
+ resourceName: root2.resource_name,
33120
+ service: root2.service_name,
33121
+ sx: { flex: 1 },
33122
+ tailTestId: TRACE_SIDEBAR_STATS_TEST_ID,
33123
+ testId: TRACE_SIDEBAR_ROOT_HEADING_TEST_ID,
33124
+ children: [
33125
+ formatDuration(stats.durationMs),
33126
+ pluralize(spans.length, "operation"),
33127
+ ...stats.errors > 0 ? [pluralize(stats.errors, "error")] : [],
33128
+ ...stats.warnings > 0 ? [pluralize(stats.warnings, "warning")] : []
33129
+ ].join(" \xB7 ")
33130
+ }
33131
+ ),
33152
33132
  /* @__PURE__ */ jsxs138(
33153
33133
  ToggleButtonGroup3,
33154
33134
  {
@@ -33162,17 +33142,17 @@ var TraceSidebar = ({ onClose, onOperationShown, onRequestRendered, onSelectSpan
33162
33142
  size: "small",
33163
33143
  value: view,
33164
33144
  children: [
33165
- /* @__PURE__ */ jsx150(ToggleButton3, { "data-testid": TRACE_SIDEBAR_MAP_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "map", children: "Flow" }),
33166
- /* @__PURE__ */ jsx150(ToggleButton3, { "data-testid": TRACE_SIDEBAR_WATERFALL_BUTTON_TEST_ID, sx: { px: 1.5, py: 0.25, textTransform: "none" }, value: "waterfall", children: "Operations" })
33145
+ /* @__PURE__ */ jsx151(ToggleButton3, { "data-testid": TRACE_SIDEBAR_MAP_BUTTON_TEST_ID, sx: { px: 1.25, py: 0.25, textTransform: "none" }, value: "map", children: "Flow" }),
33146
+ /* @__PURE__ */ jsx151(ToggleButton3, { "data-testid": TRACE_SIDEBAR_WATERFALL_BUTTON_TEST_ID, sx: { px: 1.25, py: 0.25, textTransform: "none" }, value: "waterfall", children: "Operations" })
33167
33147
  ]
33168
33148
  }
33169
33149
  ),
33170
- /* @__PURE__ */ jsx150(IconButton8, { "aria-label": maximized ? "Restore" : "Maximize", "aria-pressed": maximized, "data-testid": TRACE_SIDEBAR_MAXIMIZE_BUTTON_TEST_ID, onClick: () => {
33150
+ /* @__PURE__ */ jsx151(IconButton8, { "aria-label": maximized ? "Restore" : "Maximize", "aria-pressed": maximized, "data-testid": TRACE_SIDEBAR_MAXIMIZE_BUTTON_TEST_ID, onClick: () => {
33171
33151
  setMaximized(!maximized);
33172
- }, size: "small", children: maximized ? /* @__PURE__ */ jsx150(CloseFullscreen, { fontSize: "small" }) : /* @__PURE__ */ jsx150(OpenInFull, { fontSize: "small" }) }),
33173
- /* @__PURE__ */ jsx150(IconButton8, { "aria-label": "Close", "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ jsx150(Close4, {}) })
33152
+ }, size: "small", children: maximized ? /* @__PURE__ */ jsx151(CloseFullscreen, { fontSize: "small" }) : /* @__PURE__ */ jsx151(OpenInFull, { fontSize: "small" }) }),
33153
+ /* @__PURE__ */ jsx151(IconButton8, { "aria-label": "Close", "data-testid": EVENT_DETAILS_CLOSE_BUTTON_TEST_ID, onClick: onClose, size: "small", children: /* @__PURE__ */ jsx151(Close4, {}) })
33174
33154
  ] }),
33175
- /* @__PURE__ */ jsx150(Box21, { ref: traceViewRef, sx: { borderBottom: 1, borderColor: "divider", display: "flex", flex: `0 0 ${String(storedSplit * 100)}%`, flexDirection: "column", minHeight: 0, overflow: "auto", position: "relative" }, children: view === "waterfall" ? /* @__PURE__ */ jsx150(Waterfall, { onSelectSpan, selectedSpanId, spanMatches, spans }) : /* @__PURE__ */ jsx150(Box21, { sx: { height: "100%" }, children: /* @__PURE__ */ jsx150(ReactFlowProvider, { children: /* @__PURE__ */ jsx150(
33155
+ /* @__PURE__ */ jsx151(Box22, { ref: traceViewRef, sx: { borderBottom: 1, borderColor: "divider", display: "flex", flex: `0 0 ${String(storedSplit * 100)}%`, flexDirection: "column", minHeight: 0, overflow: "auto", position: "relative" }, children: view === "waterfall" ? /* @__PURE__ */ jsx151(Waterfall, { onSelectSpan, selectedSpanId, spanMatches, spans }) : /* @__PURE__ */ jsx151(Box22, { sx: { height: "100%" }, children: /* @__PURE__ */ jsx151(ReactFlowProvider, { children: /* @__PURE__ */ jsx151(
33176
33156
  TraceGraph,
33177
33157
  {
33178
33158
  hideMiniMap: true,
@@ -33182,8 +33162,8 @@ var TraceSidebar = ({ onClose, onOperationShown, onRequestRendered, onSelectSpan
33182
33162
  spans: { data: spans, error: void 0, loading: false }
33183
33163
  }
33184
33164
  ) }) }) }),
33185
- /* @__PURE__ */ jsx150(Box21, { sx: { flexShrink: 0, position: "relative" }, children: /* @__PURE__ */ jsx150(
33186
- Box21,
33165
+ /* @__PURE__ */ jsx151(Box22, { sx: { flexShrink: 0, position: "relative" }, children: /* @__PURE__ */ jsx151(
33166
+ Box22,
33187
33167
  {
33188
33168
  "aria-label": "Resize the operation details",
33189
33169
  "aria-orientation": "horizontal",
@@ -33211,7 +33191,7 @@ var TraceSidebar = ({ onClose, onOperationShown, onRequestRendered, onSelectSpan
33211
33191
  tabIndex: 0
33212
33192
  }
33213
33193
  ) }),
33214
- /* @__PURE__ */ jsx150(Box21, { sx: { flex: 1, minHeight: 0 }, children: selectedSpan ? /* @__PURE__ */ jsx150(EventDetails, { onOperationShown, selectedEvent: selectedSpan }) : /* @__PURE__ */ jsx150(Typography16, { color: "text.secondary", sx: { p: 3, textAlign: "center" }, variant: "body2", children: "The selected operation is not part of this trace." }) })
33194
+ /* @__PURE__ */ jsx151(Box22, { sx: { flex: 1, minHeight: 0 }, children: selectedSpan ? /* @__PURE__ */ jsx151(EventDetails, { onOperationShown, selectedEvent: selectedSpan }) : /* @__PURE__ */ jsx151(Typography15, { color: "text.secondary", sx: { p: 3, textAlign: "center" }, variant: "body2", children: "The selected operation is not part of this trace." }) })
33215
33195
  ]
33216
33196
  }
33217
33197
  );
@@ -33219,10 +33199,10 @@ var TraceSidebar = ({ onClose, onOperationShown, onRequestRendered, onSelectSpan
33219
33199
 
33220
33200
  // src/components/worker-error-message/worker-error-message.tsx
33221
33201
  import { ErrorOutline as ErrorOutline2 } from "@mui/icons-material";
33222
- import { Alert as Alert6, AlertTitle as AlertTitle2, Box as Box22, Button as Button7, Typography as Typography17 } from "@mui/material";
33223
- import { jsx as jsx151, jsxs as jsxs139 } from "react/jsx-runtime";
33224
- var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ jsx151(
33225
- Box22,
33202
+ import { Alert as Alert6, AlertTitle as AlertTitle2, Box as Box23, Button as Button7, Typography as Typography16 } from "@mui/material";
33203
+ import { jsx as jsx152, jsxs as jsxs139 } from "react/jsx-runtime";
33204
+ var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ jsx152(
33205
+ Box23,
33226
33206
  {
33227
33207
  sx: {
33228
33208
  alignItems: "center",
@@ -33235,14 +33215,14 @@ var WorkerErrorMessage = ({ error, onRetry }) => /* @__PURE__ */ jsx151(
33235
33215
  children: /* @__PURE__ */ jsxs139(
33236
33216
  Alert6,
33237
33217
  {
33238
- icon: /* @__PURE__ */ jsx151(ErrorOutline2, { fontSize: "large" }),
33218
+ icon: /* @__PURE__ */ jsx152(ErrorOutline2, { fontSize: "large" }),
33239
33219
  severity: "error",
33240
33220
  sx: { maxWidth: 600, width: "100%" },
33241
33221
  children: [
33242
- /* @__PURE__ */ jsx151(AlertTitle2, { sx: { fontWeight: "bold" }, children: "Unable to Start Span Filtering" }),
33243
- /* @__PURE__ */ jsx151(Typography17, { sx: { mb: 2 }, variant: "body2", children: "App Inspector couldn't start the background worker that filters and sorts operations. This is usually caused by a Content-Security-Policy blocking Web Workers in this environment." }),
33244
- /* @__PURE__ */ jsx151(Typography17, { sx: { fontFamily: "monospace", mb: 2 }, variant: "caption", children: error.message }),
33245
- onRetry && /* @__PURE__ */ jsx151(Box22, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx151(
33222
+ /* @__PURE__ */ jsx152(AlertTitle2, { sx: { fontWeight: "bold" }, children: "Unable to Start Span Filtering" }),
33223
+ /* @__PURE__ */ jsx152(Typography16, { sx: { mb: 2 }, variant: "body2", children: "App Inspector couldn't start the background worker that filters and sorts operations. This is usually caused by a Content-Security-Policy blocking Web Workers in this environment." }),
33224
+ /* @__PURE__ */ jsx152(Typography16, { sx: { fontFamily: "monospace", mb: 2 }, variant: "caption", children: error.message }),
33225
+ onRetry && /* @__PURE__ */ jsx152(Box23, { sx: { display: "flex", justifyContent: "flex-start" }, children: /* @__PURE__ */ jsx152(
33246
33226
  Button7,
33247
33227
  {
33248
33228
  "aria-label": "Retry starting the spans filter worker",
@@ -34149,7 +34129,7 @@ var useSpans = () => {
34149
34129
  };
34150
34130
 
34151
34131
  // src/pages/spans-list-page.tsx
34152
- import { jsx as jsx152, jsxs as jsxs140 } from "react/jsx-runtime";
34132
+ import { jsx as jsx153, jsxs as jsxs140 } from "react/jsx-runtime";
34153
34133
  var SpansListPage = () => {
34154
34134
  const api = useAppInspectorApi();
34155
34135
  const {
@@ -34275,10 +34255,10 @@ var SpansListPage = () => {
34275
34255
  switch (phase) {
34276
34256
  case "CHECKING_STATUS":
34277
34257
  case "CONNECTING_WS": {
34278
- return /* @__PURE__ */ jsx152(StatusMessage, { phase });
34258
+ return /* @__PURE__ */ jsx153(StatusMessage, { phase });
34279
34259
  }
34280
34260
  case "DISABLED": {
34281
- return /* @__PURE__ */ jsx152(
34261
+ return /* @__PURE__ */ jsx153(
34282
34262
  StatusMessage,
34283
34263
  {
34284
34264
  onEnable: handleEnable,
@@ -34287,7 +34267,7 @@ var SpansListPage = () => {
34287
34267
  );
34288
34268
  }
34289
34269
  case "INCOMPATIBLE": {
34290
- return /* @__PURE__ */ jsx152(
34270
+ return /* @__PURE__ */ jsx153(
34291
34271
  StatusMessage,
34292
34272
  {
34293
34273
  localstackVersion,
@@ -34298,12 +34278,12 @@ var SpansListPage = () => {
34298
34278
  }
34299
34279
  case "LIVE": {
34300
34280
  if (workerError) {
34301
- return /* @__PURE__ */ jsx152(WorkerErrorMessage, { error: workerError, onRetry: retryWorker });
34281
+ return /* @__PURE__ */ jsx153(WorkerErrorMessage, { error: workerError, onRetry: retryWorker });
34302
34282
  }
34303
34283
  break;
34304
34284
  }
34305
34285
  case "UNREACHABLE": {
34306
- return /* @__PURE__ */ jsx152(
34286
+ return /* @__PURE__ */ jsx153(
34307
34287
  StatusMessage,
34308
34288
  {
34309
34289
  onRetry: handleRetry,
@@ -34314,7 +34294,7 @@ var SpansListPage = () => {
34314
34294
  }
34315
34295
  return /* @__PURE__ */ jsxs140(Paper2, { square: true, sx: { ...THEMED_SCROLLBARS, display: "flex", flexDirection: "row", flexGrow: 1, minHeight: 0, overflow: "hidden" }, children: [
34316
34296
  /* @__PURE__ */ jsxs140(
34317
- Box23,
34297
+ Box24,
34318
34298
  {
34319
34299
  "data-testid": SPANS_LIST_PAGE_TEST_ID,
34320
34300
  sx: {
@@ -34327,7 +34307,7 @@ var SpansListPage = () => {
34327
34307
  overflow: "hidden"
34328
34308
  },
34329
34309
  children: [
34330
- /* @__PURE__ */ jsx152(
34310
+ /* @__PURE__ */ jsx153(
34331
34311
  EmulatorVersionBanner,
34332
34312
  {
34333
34313
  compatibility: bannerDismissed && versionCompatibility === "warning" ? "ok" : versionCompatibility,
@@ -34337,7 +34317,7 @@ var SpansListPage = () => {
34337
34317
  } : void 0
34338
34318
  }
34339
34319
  ),
34340
- /* @__PURE__ */ jsx152(
34320
+ /* @__PURE__ */ jsx153(
34341
34321
  SpansList,
34342
34322
  {
34343
34323
  clearingSpans,
@@ -34364,7 +34344,7 @@ var SpansListPage = () => {
34364
34344
  ]
34365
34345
  }
34366
34346
  ),
34367
- selectedSpanId !== void 0 && rootSpanId !== void 0 && /* @__PURE__ */ jsx152(
34347
+ selectedSpanId !== void 0 && rootSpanId !== void 0 && /* @__PURE__ */ jsx153(
34368
34348
  TraceSidebar,
34369
34349
  {
34370
34350
  onClose: closeSidebar,