@localstack/appinspector-ui 1.0.213 → 1.0.214

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