@mediaradar/design-components 0.54.1 → 0.56.0

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.cjs CHANGED
@@ -67,6 +67,7 @@ __export(index_exports, {
67
67
  PageHeader: () => PageHeader,
68
68
  Pager: () => Pager,
69
69
  PieChartPlaceholder: () => PieChartPlaceholder,
70
+ PrimaryBadge: () => PrimaryBadge,
70
71
  PublisherBreakdownList: () => PublisherBreakdownList,
71
72
  QUIET_ACTION_CLASS: () => QUIET_ACTION_CLASS,
72
73
  SearchBar: () => SearchBar,
@@ -722,10 +723,21 @@ function Delta({ value, suffix = "%", arrow = false, period, className, testIdPr
722
723
  );
723
724
  }
724
725
 
725
- // src/CheckBox.tsx
726
- var import_react3 = require("react");
726
+ // src/PrimaryBadge.tsx
727
727
  var import_lucide_react5 = require("lucide-react");
728
728
  var import_jsx_runtime7 = require("react/jsx-runtime");
729
+ function PrimaryBadge({ label = "Primary", icon: Icon = import_lucide_react5.Check, title, className, testIdPrefix }) {
730
+ const badge = /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(Badge, { tone: "brand", className: title ? void 0 : className, testIdPrefix, children: [
731
+ Icon && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Icon, { size: 11, "aria-hidden": "true" }),
732
+ label
733
+ ] });
734
+ return title ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { title, className: cn("inline-flex shrink-0", className), children: badge }) : badge;
735
+ }
736
+
737
+ // src/CheckBox.tsx
738
+ var import_react3 = require("react");
739
+ var import_lucide_react6 = require("lucide-react");
740
+ var import_jsx_runtime8 = require("react/jsx-runtime");
729
741
  function boxClass(on, disabled) {
730
742
  return cn(
731
743
  "flex size-4.5 shrink-0 items-center justify-center rounded-small border transition-colors",
@@ -734,12 +746,12 @@ function boxClass(on, disabled) {
734
746
  );
735
747
  }
736
748
  function Glyph({ checked, indeterminate }) {
737
- if (indeterminate) return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react5.Minus, { size: 13, strokeWidth: 3 });
738
- return checked ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react5.Check, { size: 13, strokeWidth: 3 }) : null;
749
+ if (indeterminate) return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react6.Minus, { size: 13, strokeWidth: 3 });
750
+ return checked ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react6.Check, { size: 13, strokeWidth: 3 }) : null;
739
751
  }
740
752
  var CheckBox = (0, import_react3.forwardRef)(function CheckBox2({ checked, indeterminate, onChange, ariaLabel, disabled, stopPropagation = true, testId, testIdPrefix, title, className }, ref) {
741
753
  const on = checked || !!indeterminate;
742
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
754
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
743
755
  "button",
744
756
  {
745
757
  ref,
@@ -764,20 +776,20 @@ var CheckBox = (0, import_react3.forwardRef)(function CheckBox2({ checked, indet
764
776
  disabled && "hover:border-border-interactive",
765
777
  className
766
778
  ),
767
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Glyph, { checked, indeterminate })
779
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Glyph, { checked, indeterminate })
768
780
  }
769
781
  );
770
782
  });
771
783
  CheckBox.displayName = "CheckBox";
772
784
  var CheckBoxBox = (0, import_react3.forwardRef)(function CheckBoxBox2({ checked, indeterminate, disabled, className, testIdPrefix }, ref) {
773
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
785
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
774
786
  "span",
775
787
  {
776
788
  ref,
777
789
  "aria-hidden": "true",
778
790
  "data-testid": testIdPrefix,
779
791
  className: cn(boxClass(checked || !!indeterminate, disabled), className),
780
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(Glyph, { checked, indeterminate })
792
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Glyph, { checked, indeterminate })
781
793
  }
782
794
  );
783
795
  });
@@ -785,8 +797,8 @@ CheckBoxBox.displayName = "CheckBoxBox";
785
797
 
786
798
  // src/DateRangeFilter.tsx
787
799
  var import_react4 = require("react");
788
- var import_lucide_react6 = require("lucide-react");
789
- var import_jsx_runtime8 = require("react/jsx-runtime");
800
+ var import_lucide_react7 = require("lucide-react");
801
+ var import_jsx_runtime9 = require("react/jsx-runtime");
790
802
  var DEFAULT_SHORTCUTS = [
791
803
  "Year to date",
792
804
  "Rolling 3 months",
@@ -1075,8 +1087,8 @@ function DateRangeFilter({
1075
1087
  setFlipBelow(ref.current.getBoundingClientRect().top < popRef.current.offsetHeight + 16);
1076
1088
  }, [open, placement]);
1077
1089
  const above = placement === "above" && !flipBelow;
1078
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: cn("relative", className), ref, "data-testid": testIdPrefix, children: [
1079
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1090
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: cn("relative", className), ref, "data-testid": testIdPrefix, children: [
1091
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1080
1092
  "button",
1081
1093
  {
1082
1094
  ref: triggerRef,
@@ -1086,22 +1098,22 @@ function DateRangeFilter({
1086
1098
  "aria-expanded": open,
1087
1099
  className: chipTriggerClass(),
1088
1100
  children: [
1089
- icon && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "shrink-0 text-text-tertiary", children: icon }),
1090
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
1091
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: showDates && displayDatesLine ? "text-micro leading-none text-text-tertiary" : "text-control-caption leading-none uppercase tracking-wide text-text-tertiary", children: showDates && displayDatesLine ? displayDatesLine : caption }),
1092
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "text-xs leading-none font-medium text-text-primary", children: [
1101
+ icon && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "shrink-0 text-text-tertiary", children: icon }),
1102
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
1103
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: showDates && displayDatesLine ? "text-micro leading-none text-text-tertiary" : "text-control-caption leading-none uppercase tracking-wide text-text-tertiary", children: showDates && displayDatesLine ? displayDatesLine : caption }),
1104
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "text-xs leading-none font-medium text-text-primary", children: [
1093
1105
  displayValue,
1094
- compareLabel(appliedCmp) && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "font-normal text-text-secondary", children: [
1106
+ compareLabel(appliedCmp) && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "font-normal text-text-secondary", children: [
1095
1107
  " \xB7 vs ",
1096
1108
  compareLabel(appliedCmp).toLowerCase()
1097
1109
  ] })
1098
1110
  ] })
1099
1111
  ] }),
1100
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react6.ChevronDown, { size: 14, "aria-hidden": "true", className: `shrink-0 text-text-secondary transition-transform ${open ? "rotate-180" : ""}` })
1112
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.ChevronDown, { size: 14, "aria-hidden": "true", className: `shrink-0 text-text-secondary transition-transform ${open ? "rotate-180" : ""}` })
1101
1113
  ]
1102
1114
  }
1103
1115
  ),
1104
- open && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1116
+ open && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1105
1117
  "div",
1106
1118
  {
1107
1119
  "data-testid": testIdPrefix && `${testIdPrefix}-popover`,
@@ -1110,7 +1122,7 @@ function DateRangeFilter({
1110
1122
  role: "dialog",
1111
1123
  "aria-label": "Select date range",
1112
1124
  children: [
1113
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex w-44 shrink-0 flex-col gap-0.5 border-r border-border-default p-2", children: SHORTCUTS.map((s) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1125
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex w-44 shrink-0 flex-col gap-0.5 border-r border-border-default p-2", children: SHORTCUTS.map((s) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1114
1126
  "button",
1115
1127
  {
1116
1128
  type: "button",
@@ -1121,28 +1133,28 @@ function DateRangeFilter({
1121
1133
  },
1122
1134
  s
1123
1135
  )) }),
1124
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col p-4", children: [
1125
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-end gap-3", children: [
1126
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Field, { label: "Start date", value: start ? showDate(start) : "\u2014" }),
1127
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "pb-2.5 text-text-tertiary", children: "\u2014" }),
1128
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Field, { label: "End date", value: end ? showDate(end) : start ? showDate(start) : "\u2014" })
1136
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col p-4", children: [
1137
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-end gap-3", children: [
1138
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Field, { label: "Start date", value: start ? showDate(start) : "\u2014" }),
1139
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "pb-2.5 text-text-tertiary", children: "\u2014" }),
1140
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Field, { label: "End date", value: end ? showDate(end) : start ? showDate(start) : "\u2014" })
1129
1141
  ] }),
1130
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "my-4 border-t border-border-default" }),
1131
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex gap-8", children: [0, 1].map((offset) => {
1142
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "my-4 border-t border-border-default" }),
1143
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex gap-8", children: [0, 1].map((offset) => {
1132
1144
  const m = addMonths(leftMonth, offset);
1133
1145
  const grid = monthGrid(m.getFullYear(), m.getMonth());
1134
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "w-63", children: [
1135
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "mb-2 flex items-center justify-between", children: [
1136
- offset === 0 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(NavBtn, { onClick: () => setLeftMonth(addMonths(leftMonth, -1)), "aria-label": "Previous month", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react6.ChevronLeft, { size: 16 }) }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "h-7 w-7" }),
1137
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { id: `${monthIdBase}-m${offset}`, "aria-live": "polite", className: "text-panel-title font-semibold text-text-primary", children: [
1146
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "w-63", children: [
1147
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "mb-2 flex items-center justify-between", children: [
1148
+ offset === 0 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(NavBtn, { onClick: () => setLeftMonth(addMonths(leftMonth, -1)), "aria-label": "Previous month", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.ChevronLeft, { size: 16 }) }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "h-7 w-7" }),
1149
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { id: `${monthIdBase}-m${offset}`, "aria-live": "polite", className: "text-panel-title font-semibold text-text-primary", children: [
1138
1150
  MONTHS[m.getMonth()],
1139
1151
  " ",
1140
1152
  m.getFullYear()
1141
1153
  ] }),
1142
- offset === 1 ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(NavBtn, { onClick: () => setLeftMonth(addMonths(leftMonth, 1)), "aria-label": "Next month", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react6.ChevronRight, { size: 16 }) }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "h-7 w-7" })
1154
+ offset === 1 ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(NavBtn, { onClick: () => setLeftMonth(addMonths(leftMonth, 1)), "aria-label": "Next month", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.ChevronRight, { size: 16 }) }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "h-7 w-7" })
1143
1155
  ] }),
1144
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "grid grid-cols-7", role: "group", "aria-labelledby": `${monthIdBase}-m${offset}`, children: [
1145
- WEEKDAYS.map((w) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { "aria-hidden": "true", className: "flex h-8 items-center justify-center text-xs font-semibold text-text-secondary", children: w }, w)),
1156
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "grid grid-cols-7", role: "group", "aria-labelledby": `${monthIdBase}-m${offset}`, children: [
1157
+ WEEKDAYS.map((w) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { "aria-hidden": "true", className: "flex h-8 items-center justify-center text-xs font-semibold text-text-secondary", children: w }, w)),
1146
1158
  grid.map((d, i) => {
1147
1159
  const inMonth = d.getMonth() === m.getMonth();
1148
1160
  const hasRange = !!(start && end);
@@ -1157,7 +1169,7 @@ function DateRangeFilter({
1157
1169
  else if (end && isEnd) band = "left-0 right-1/2";
1158
1170
  else band = "left-0 right-0";
1159
1171
  }
1160
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1172
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1161
1173
  "button",
1162
1174
  {
1163
1175
  type: "button",
@@ -1166,8 +1178,8 @@ function DateRangeFilter({
1166
1178
  "aria-pressed": endpoint || inRange,
1167
1179
  className: "relative flex h-9 items-center justify-center focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
1168
1180
  children: [
1169
- band && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: `absolute inset-y-1 bg-ai-tint ${band}`, "aria-hidden": "true" }),
1170
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1181
+ band && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: `absolute inset-y-1 bg-ai-tint ${band}`, "aria-hidden": "true" }),
1182
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1171
1183
  "span",
1172
1184
  {
1173
1185
  className: `relative z-10 flex h-8 w-8 items-center justify-center rounded-full text-dense tabular-nums ${endpoint ? "bg-brand-primaryAction font-semibold text-brand-onprimary" : inMonth ? "text-text-primary hover:bg-subtle" : "text-text-tertiary"}`,
@@ -1182,16 +1194,16 @@ function DateRangeFilter({
1182
1194
  ] })
1183
1195
  ] }, offset);
1184
1196
  }) }),
1185
- compare && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("fieldset", { className: "mt-4 border-t border-border-default pt-4", children: [
1186
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("legend", { className: "float-left mb-2 w-full text-xs font-medium text-text-secondary", children: "Compare to" }),
1187
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "clear-left flex flex-col gap-1", children: compare.options.map((o) => {
1197
+ compare && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("fieldset", { className: "mt-4 border-t border-border-default pt-4", children: [
1198
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("legend", { className: "float-left mb-2 w-full text-xs font-medium text-text-secondary", children: "Compare to" }),
1199
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "clear-left flex flex-col gap-1", children: compare.options.map((o) => {
1188
1200
  const on = (cmp ?? compare.value) === o.id;
1189
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1201
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1190
1202
  "label",
1191
1203
  {
1192
1204
  className: `flex cursor-pointer items-center gap-2.5 rounded-control px-2 py-1.5 text-dense transition-colors ${on ? "bg-subtle" : "hover:bg-subtle"}`,
1193
1205
  children: [
1194
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1206
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1195
1207
  "input",
1196
1208
  {
1197
1209
  type: "radio",
@@ -1203,21 +1215,21 @@ function DateRangeFilter({
1203
1215
  className: "h-4 w-4 accent-brand-primaryAction"
1204
1216
  }
1205
1217
  ),
1206
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: `w-44 shrink-0 ${on ? "font-semibold text-text-primary" : "text-text-secondary"}`, children: o.label }),
1207
- start && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "tabular-nums text-text-tertiary", children: (formatted ? showRange : spanLabel)(...compareSpan(start, end ?? start, o.id)) })
1218
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: `w-44 shrink-0 ${on ? "font-semibold text-text-primary" : "text-text-secondary"}`, children: o.label }),
1219
+ start && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "tabular-nums text-text-tertiary", children: (formatted ? showRange : spanLabel)(...compareSpan(start, end ?? start, o.id)) })
1208
1220
  ]
1209
1221
  },
1210
1222
  o.id
1211
1223
  );
1212
1224
  }) })
1213
1225
  ] }),
1214
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "mt-4 flex items-center justify-end gap-2", children: [
1215
- monthly && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "mr-auto text-xs text-text-tertiary", children: "Data is monthly, so ranges cover whole months." }),
1216
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", "data-testid": testIdPrefix && `${testIdPrefix}-cancel`, onClick: () => {
1226
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "mt-4 flex items-center justify-end gap-2", children: [
1227
+ monthly && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "mr-auto text-xs text-text-tertiary", children: "Data is monthly, so ranges cover whole months." }),
1228
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", "data-testid": testIdPrefix && `${testIdPrefix}-cancel`, onClick: () => {
1217
1229
  setOpen(false);
1218
1230
  triggerRef.current?.focus();
1219
1231
  }, className: "rounded-control border border-border-default bg-surface px-5 py-2 text-dense font-semibold text-text-primary transition-colors hover:bg-subtle focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: "Cancel" }),
1220
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", "data-testid": testIdPrefix && `${testIdPrefix}-apply`, onClick: apply, disabled: !canApply, className: "rounded-control bg-brand-primaryAction px-5 py-2 text-dense font-semibold text-brand-onprimary transition-[filter] hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: "Apply" })
1232
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", "data-testid": testIdPrefix && `${testIdPrefix}-apply`, onClick: apply, disabled: !canApply, className: "rounded-control bg-brand-primaryAction px-5 py-2 text-dense font-semibold text-brand-onprimary transition-[filter] hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: "Apply" })
1221
1233
  ] })
1222
1234
  ] })
1223
1235
  ]
@@ -1226,19 +1238,19 @@ function DateRangeFilter({
1226
1238
  ] });
1227
1239
  }
1228
1240
  function Field({ label, value }) {
1229
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
1230
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "text-xs font-medium text-text-secondary", children: label }),
1231
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "flex h-10 min-w-35 items-center rounded-control border border-border-strong bg-input px-3 text-sm font-medium text-text-primary", children: value })
1241
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
1242
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "text-xs font-medium text-text-secondary", children: label }),
1243
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "flex h-10 min-w-35 items-center rounded-control border border-border-strong bg-input px-3 text-sm font-medium text-text-primary", children: value })
1232
1244
  ] });
1233
1245
  }
1234
1246
  function NavBtn({ children, onClick, ...rest }) {
1235
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", onClick, className: "flex h-7 w-7 items-center justify-center rounded-full text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", ...rest, children });
1247
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", onClick, className: "flex h-7 w-7 items-center justify-center rounded-full text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", ...rest, children });
1236
1248
  }
1237
1249
 
1238
1250
  // src/SearchBar.tsx
1239
1251
  var import_react5 = require("react");
1240
- var import_lucide_react7 = require("lucide-react");
1241
- var import_jsx_runtime9 = require("react/jsx-runtime");
1252
+ var import_lucide_react8 = require("lucide-react");
1253
+ var import_jsx_runtime10 = require("react/jsx-runtime");
1242
1254
  var HEIGHT = { sm: "h-8", md: "h-10", lg: "h-11" };
1243
1255
  var DEFAULT_SEARCH_MATCH = { mode: "anyWord", wordJoin: "Or" };
1244
1256
  var MODE_LABEL = {
@@ -1340,7 +1352,7 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1340
1352
  };
1341
1353
  }, [open]);
1342
1354
  const showMatch = variant === "filterable" && matchValue;
1343
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1355
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1344
1356
  "div",
1345
1357
  {
1346
1358
  className: cn(
@@ -1353,8 +1365,8 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1353
1365
  ),
1354
1366
  "data-testid": testIdPrefix,
1355
1367
  children: [
1356
- scope && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ScopeMenu, { scope, onOpenChange: onScopeOpenChange, testIdPrefix }),
1357
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1368
+ scope && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ScopeMenu, { scope, onOpenChange: onScopeOpenChange, testIdPrefix }),
1369
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1358
1370
  "div",
1359
1371
  {
1360
1372
  ref: codesRef,
@@ -1366,8 +1378,8 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1366
1378
  }
1367
1379
  },
1368
1380
  children: [
1369
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.Search, { size: 15, "aria-hidden": "true", className: "shrink-0 text-text-tertiary" }),
1370
- adCodeMode && adCodes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1381
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.Search, { size: 15, "aria-hidden": "true", className: "shrink-0 text-text-tertiary" }),
1382
+ adCodeMode && adCodes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1371
1383
  "span",
1372
1384
  {
1373
1385
  className: cn(
@@ -1375,7 +1387,7 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1375
1387
  hasMisses ? "bg-status-danger/15 text-text-danger" : "bg-subtle text-text-primary"
1376
1388
  ),
1377
1389
  children: [
1378
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1390
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1379
1391
  "button",
1380
1392
  {
1381
1393
  type: "button",
@@ -1385,12 +1397,12 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1385
1397
  "data-testid": testIdPrefix && `${testIdPrefix}-ad-codes`,
1386
1398
  className: "inline-flex items-center gap-1 rounded-control focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
1387
1399
  children: [
1388
- hasMisses && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.AlertCircle, { size: 13, "aria-hidden": "true" }),
1400
+ hasMisses && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.AlertCircle, { size: 13, "aria-hidden": "true" }),
1389
1401
  hasMisses ? `${matchedCount} of ${adCodes.length} matched` : adCodes.length === 1 ? adCodes[0] : `${adCodes.length} Ad Codes`
1390
1402
  ]
1391
1403
  }
1392
1404
  ),
1393
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1405
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1394
1406
  "button",
1395
1407
  {
1396
1408
  type: "button",
@@ -1398,13 +1410,13 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1398
1410
  onClick: () => updateCodes([], -1),
1399
1411
  "data-testid": testIdPrefix && `${testIdPrefix}-ad-codes-clear`,
1400
1412
  className: "inline-flex rounded-full p-0.5 hover:bg-surface focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
1401
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.X, { size: 12, "aria-hidden": "true" })
1413
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.X, { size: 12, "aria-hidden": "true" })
1402
1414
  }
1403
1415
  )
1404
1416
  ]
1405
1417
  }
1406
1418
  ),
1407
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1419
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1408
1420
  "input",
1409
1421
  {
1410
1422
  ref: setInput,
@@ -1425,7 +1437,7 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1425
1437
  className: "min-w-0 flex-1 bg-transparent text-dense text-text-primary outline-hidden placeholder:text-text-tertiary"
1426
1438
  }
1427
1439
  ),
1428
- adCodeMode && codesOpen && adCodes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1440
+ adCodeMode && codesOpen && adCodes.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1429
1441
  "div",
1430
1442
  {
1431
1443
  ref: codesPopover,
@@ -1434,10 +1446,10 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1434
1446
  "data-testid": testIdPrefix && `${testIdPrefix}-ad-codes-popover`,
1435
1447
  className: "absolute right-0 top-full z-50 mt-2 w-110 max-w-[90vw] cursor-auto rounded-card border border-border-default bg-surface p-3 shadow-overlay",
1436
1448
  children: [
1437
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "mb-2 text-xs font-medium text-text-secondary", children: isAdCodeMatched ? `${matchedCount} ${matchedCount === 1 ? "ad was" : "ads were"} found` : `${adCodes.length} ${adCodes.length === 1 ? "ad code" : "ad codes"}` }),
1438
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("ul", { className: "flex max-h-50 flex-wrap gap-2 overflow-y-auto p-0.5", children: adCodes.map((code, i) => {
1449
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "mb-2 text-xs font-medium text-text-secondary", children: isAdCodeMatched ? `${matchedCount} ${matchedCount === 1 ? "ad was" : "ads were"} found` : `${adCodes.length} ${adCodes.length === 1 ? "ad code" : "ad codes"}` }),
1450
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("ul", { className: "flex max-h-50 flex-wrap gap-2 overflow-y-auto p-0.5", children: adCodes.map((code, i) => {
1439
1451
  const missed = !!isAdCodeMatched && !isAdCodeMatched(code);
1440
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1452
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1441
1453
  "li",
1442
1454
  {
1443
1455
  className: cn(
@@ -1446,8 +1458,8 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1446
1458
  ),
1447
1459
  children: [
1448
1460
  code,
1449
- missed && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "sr-only", children: " (not found)" }),
1450
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1461
+ missed && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "sr-only", children: " (not found)" }),
1462
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1451
1463
  "button",
1452
1464
  {
1453
1465
  type: "button",
@@ -1456,7 +1468,7 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1456
1468
  onClick: () => updateCodes(adCodes.filter((c) => c !== code), i),
1457
1469
  "data-testid": testIdPrefix && `${testIdPrefix}-ad-code-remove-${slug3(code)}`,
1458
1470
  className: "inline-flex rounded-full p-0.5 hover:bg-surface focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
1459
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.X, { size: 13, "aria-hidden": "true" })
1471
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.X, { size: 13, "aria-hidden": "true" })
1460
1472
  }
1461
1473
  )
1462
1474
  ]
@@ -1464,7 +1476,7 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1464
1476
  code
1465
1477
  );
1466
1478
  }) }),
1467
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "mt-3 flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1479
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "mt-3 flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1468
1480
  "button",
1469
1481
  {
1470
1482
  type: "button",
@@ -1477,11 +1489,11 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1477
1489
  children: "Search"
1478
1490
  }
1479
1491
  ) }),
1480
- onDownloadAdCodes && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "mt-3 flex items-start gap-2 rounded-control border border-border-default px-3 py-2.5 text-card-title text-text-secondary", children: [
1481
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.AlertCircle, { size: 16, "aria-hidden": "true", className: "mt-0.5 shrink-0 text-text-tertiary" }),
1482
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { children: [
1492
+ onDownloadAdCodes && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "mt-3 flex items-start gap-2 rounded-control border border-border-default px-3 py-2.5 text-card-title text-text-secondary", children: [
1493
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.AlertCircle, { size: 16, "aria-hidden": "true", className: "mt-0.5 shrink-0 text-text-tertiary" }),
1494
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { children: [
1483
1495
  hasMisses && "Some ad codes in your search could not be matched. ",
1484
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1496
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1485
1497
  "button",
1486
1498
  {
1487
1499
  type: "button",
@@ -1501,7 +1513,7 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1501
1513
  ]
1502
1514
  }
1503
1515
  ),
1504
- value && onChange && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1516
+ value && onChange && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1505
1517
  "button",
1506
1518
  {
1507
1519
  type: "button",
@@ -1512,7 +1524,7 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1512
1524
  "aria-label": "Clear search",
1513
1525
  "data-testid": testIdPrefix && `${testIdPrefix}-clear`,
1514
1526
  className: "mr-1.5 flex size-6 shrink-0 items-center justify-center self-center rounded-control text-text-tertiary hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
1515
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.X, { size: 14, "aria-hidden": "true" })
1527
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.X, { size: 14, "aria-hidden": "true" })
1516
1528
  }
1517
1529
  ),
1518
1530
  showMatch && // border-border-default, not the bare `border-border` both source
@@ -1526,8 +1538,8 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1526
1538
  // token package (insights-studio-prototype's own src/index.css;
1527
1539
  // mr-clientapps' own tailwind.config.ts `colors.border.DEFAULT`) --
1528
1540
  // an alias this shared component can't rely on existing.
1529
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "relative shrink-0 border-l border-border-default", ref, children: [
1530
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1541
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "relative shrink-0 border-l border-border-default", ref, children: [
1542
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1531
1543
  "button",
1532
1544
  {
1533
1545
  type: "button",
@@ -1538,8 +1550,8 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1538
1550
  className: "flex h-full items-center gap-1 px-2.5 text-dense font-medium text-text-primary transition-colors hover:bg-subtle",
1539
1551
  children: [
1540
1552
  matchValue.mode === "anyWord" ? `${MODE_LABEL.anyWord} (${matchValue.wordJoin})` : MODE_LABEL[matchValue.mode],
1541
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1542
- import_lucide_react7.ChevronDown,
1553
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1554
+ import_lucide_react8.ChevronDown,
1543
1555
  {
1544
1556
  size: 14,
1545
1557
  "aria-hidden": "true",
@@ -1549,25 +1561,25 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1549
1561
  ]
1550
1562
  }
1551
1563
  ),
1552
- open && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1564
+ open && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1553
1565
  "div",
1554
1566
  {
1555
1567
  role: "dialog",
1556
1568
  "aria-label": "Search match type",
1557
1569
  "data-testid": testIdPrefix && `${testIdPrefix}-mode-popover`,
1558
1570
  className: "absolute right-0 top-full mt-2 z-50 w-100 rounded-card border border-border-default bg-surface p-3 shadow-overlay",
1559
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { role: "radiogroup", "aria-label": "Search match type", className: "flex flex-col", children: [
1560
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1571
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { role: "radiogroup", "aria-label": "Search match type", className: "flex flex-col", children: [
1572
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1561
1573
  ModeRow,
1562
1574
  {
1563
1575
  title: "Any Word Text Search",
1564
1576
  selected: matchValue.mode === "anyWord",
1565
1577
  onSelect: () => onMatchChange?.({ mode: "anyWord", wordJoin: matchValue.wordJoin }),
1566
1578
  testId: testIdPrefix && `${testIdPrefix}-mode-anyWord`,
1567
- description: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_jsx_runtime9.Fragment, { children: "Find creatives that contain your keyword(s) using an \u201COr\u201D (match any) or \u201CAnd\u201D (match all) conditional in any order." }),
1579
+ description: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_jsx_runtime10.Fragment, { children: "Find creatives that contain your keyword(s) using an \u201COr\u201D (match any) or \u201CAnd\u201D (match all) conditional in any order." }),
1568
1580
  infoText: "The Or/And choice applies only when Any Word is the active search mode.",
1569
- extra: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex items-center gap-3", children: [
1570
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1581
+ extra: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "flex items-center gap-3", children: [
1582
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1571
1583
  RadioOption,
1572
1584
  {
1573
1585
  label: "Or",
@@ -1576,7 +1588,7 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1576
1588
  testId: testIdPrefix && `${testIdPrefix}-word-join-or`
1577
1589
  }
1578
1590
  ),
1579
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1591
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1580
1592
  RadioOption,
1581
1593
  {
1582
1594
  label: "And",
@@ -1588,8 +1600,8 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1588
1600
  ] })
1589
1601
  }
1590
1602
  ),
1591
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider, {}),
1592
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1603
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Divider, {}),
1604
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1593
1605
  ModeRow,
1594
1606
  {
1595
1607
  title: "Exact Match Text Search",
@@ -1600,8 +1612,8 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1600
1612
  infoText: "Keywords are matched as a single contiguous phrase, in the order you typed them."
1601
1613
  }
1602
1614
  ),
1603
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider, {}),
1604
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1615
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Divider, {}),
1616
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1605
1617
  ModeRow,
1606
1618
  {
1607
1619
  title: "Contextual Search",
@@ -1613,8 +1625,8 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1613
1625
  infoText: "Uses semantic matching, so results can include related terms even when the exact keyword isn't present."
1614
1626
  }
1615
1627
  ),
1616
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Divider, {}),
1617
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1628
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Divider, {}),
1629
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1618
1630
  ModeRow,
1619
1631
  {
1620
1632
  title: "Ad Code Search",
@@ -1635,7 +1647,7 @@ var SearchBar = (0, import_react5.forwardRef)(function SearchBar2({
1635
1647
  });
1636
1648
  SearchBar.displayName = "SearchBar";
1637
1649
  function Divider() {
1638
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: "my-2.5 border-t border-border-default", "aria-hidden": "true" });
1650
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("div", { className: "my-2.5 border-t border-border-default", "aria-hidden": "true" });
1639
1651
  }
1640
1652
  function ModeRow({
1641
1653
  title,
@@ -1648,16 +1660,16 @@ function ModeRow({
1648
1660
  testId
1649
1661
  }) {
1650
1662
  const descId = (0, import_react5.useId)();
1651
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1663
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1652
1664
  "div",
1653
1665
  {
1654
1666
  onClick: onSelect,
1655
1667
  className: "flex cursor-pointer flex-col items-stretch gap-1 rounded-control p-1.5 text-left transition-colors hover:bg-subtle",
1656
1668
  children: [
1657
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
1658
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-wrap items-center gap-3", children: [
1659
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "flex items-center gap-1", children: [
1660
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1669
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex items-center justify-between gap-2", children: [
1670
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex flex-wrap items-center gap-3", children: [
1671
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "flex items-center gap-1", children: [
1672
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1661
1673
  "button",
1662
1674
  {
1663
1675
  type: "button",
@@ -1673,14 +1685,14 @@ function ModeRow({
1673
1685
  children: title
1674
1686
  }
1675
1687
  ),
1676
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RowInfoTip, { text: infoText })
1688
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(RowInfoTip, { text: infoText })
1677
1689
  ] }),
1678
- badge && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Badge, { kind: "category", children: badge }),
1690
+ badge && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(Badge, { kind: "category", children: badge }),
1679
1691
  extra
1680
1692
  ] }),
1681
- selected && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.Check, { size: 16, strokeWidth: 2.5, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" })
1693
+ selected && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.Check, { size: 16, strokeWidth: 2.5, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" })
1682
1694
  ] }),
1683
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { id: descId, className: "block text-xs leading-snug text-text-secondary", children: description })
1695
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { id: descId, className: "block text-xs leading-snug text-text-secondary", children: description })
1684
1696
  ]
1685
1697
  }
1686
1698
  );
@@ -1691,7 +1703,7 @@ function RadioOption({
1691
1703
  onSelect,
1692
1704
  testId
1693
1705
  }) {
1694
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1706
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1695
1707
  "button",
1696
1708
  {
1697
1709
  type: "button",
@@ -1704,14 +1716,14 @@ function RadioOption({
1704
1716
  "aria-checked": checked,
1705
1717
  className: "flex items-center gap-1.5 text-dense font-medium text-text-primary focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
1706
1718
  children: [
1707
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1719
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1708
1720
  "span",
1709
1721
  {
1710
1722
  className: cn(
1711
1723
  "flex h-4 w-4 shrink-0 items-center justify-center rounded-full border-2 transition-colors",
1712
1724
  checked ? "border-brand-primaryAction" : "border-border-interactive"
1713
1725
  ),
1714
- children: checked && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "h-2 w-2 rounded-full bg-brand-primaryAction" })
1726
+ children: checked && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "h-2 w-2 rounded-full bg-brand-primaryAction" })
1715
1727
  }
1716
1728
  ),
1717
1729
  label
@@ -1731,8 +1743,8 @@ function RowInfoTip({ text }) {
1731
1743
  window.addEventListener("mousedown", onDown);
1732
1744
  return () => window.removeEventListener("mousedown", onDown);
1733
1745
  }, [open]);
1734
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "relative inline-flex shrink-0 items-center", ref, children: [
1735
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1746
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "relative inline-flex shrink-0 items-center", ref, children: [
1747
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1736
1748
  "button",
1737
1749
  {
1738
1750
  type: "button",
@@ -1744,10 +1756,10 @@ function RowInfoTip({ text }) {
1744
1756
  "aria-expanded": open,
1745
1757
  "aria-describedby": id,
1746
1758
  className: "-m-1.5 inline-flex size-6 items-center justify-center rounded-control text-text-tertiary transition-colors hover:text-text-primary focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
1747
- children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.AlertCircle, { size: 13, "aria-hidden": "true" })
1759
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.AlertCircle, { size: 13, "aria-hidden": "true" })
1748
1760
  }
1749
1761
  ),
1750
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1762
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1751
1763
  "span",
1752
1764
  {
1753
1765
  id,
@@ -1802,8 +1814,8 @@ function ScopeMenu({
1802
1814
  close(false);
1803
1815
  }
1804
1816
  };
1805
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "relative flex shrink-0 border-r border-border-default", ref, children: [
1806
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1817
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "relative flex shrink-0 border-r border-border-default", ref, children: [
1818
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1807
1819
  "button",
1808
1820
  {
1809
1821
  ref: trigger,
@@ -1817,8 +1829,8 @@ function ScopeMenu({
1817
1829
  className: "flex h-full items-center gap-1.5 rounded-l-control px-2.5 text-dense font-semibold text-text-primary transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
1818
1830
  children: [
1819
1831
  scope.value,
1820
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1821
- import_lucide_react7.ChevronDown,
1832
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1833
+ import_lucide_react8.ChevronDown,
1822
1834
  {
1823
1835
  size: 13,
1824
1836
  "aria-hidden": "true",
@@ -1828,7 +1840,7 @@ function ScopeMenu({
1828
1840
  ]
1829
1841
  }
1830
1842
  ),
1831
- open && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1843
+ open && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1832
1844
  "div",
1833
1845
  {
1834
1846
  ref: list,
@@ -1839,13 +1851,13 @@ function ScopeMenu({
1839
1851
  "data-testid": testIdPrefix && `${testIdPrefix}-scope-popover`,
1840
1852
  className: "absolute left-0 top-[calc(100%+6px)] z-50 min-w-50 max-w-72 rounded-card border border-border-default bg-surface py-1 shadow-overlay",
1841
1853
  children: [
1842
- /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "px-3 pb-1.5 pt-1", "aria-hidden": "true", children: [
1843
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "text-micro font-semibold uppercase tracking-wide text-text-tertiary", children: scope.label }),
1844
- scope.info && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "mt-0.5 text-xs text-text-secondary", children: scope.info })
1854
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "px-3 pb-1.5 pt-1", "aria-hidden": "true", children: [
1855
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "text-micro font-semibold uppercase tracking-wide text-text-tertiary", children: scope.label }),
1856
+ scope.info && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "mt-0.5 text-xs text-text-secondary", children: scope.info })
1845
1857
  ] }),
1846
1858
  scope.options.map((o) => {
1847
1859
  const sel = o === scope.value;
1848
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1860
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1849
1861
  "button",
1850
1862
  {
1851
1863
  type: "button",
@@ -1862,7 +1874,7 @@ function ScopeMenu({
1862
1874
  sel ? "font-semibold text-text-primary" : "text-text-secondary"
1863
1875
  ),
1864
1876
  children: [
1865
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_lucide_react7.Check, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-brand-primaryAction", !sel && "invisible") }),
1877
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.Check, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-brand-primaryAction", !sel && "invisible") }),
1866
1878
  o
1867
1879
  ]
1868
1880
  },
@@ -1877,8 +1889,8 @@ function ScopeMenu({
1877
1889
 
1878
1890
  // src/SectionRail.tsx
1879
1891
  var import_react6 = require("react");
1880
- var import_lucide_react8 = require("lucide-react");
1881
- var import_jsx_runtime10 = require("react/jsx-runtime");
1892
+ var import_lucide_react9 = require("lucide-react");
1893
+ var import_jsx_runtime11 = require("react/jsx-runtime");
1882
1894
  function SectionRail({
1883
1895
  title,
1884
1896
  titleSerif,
@@ -1893,20 +1905,20 @@ function SectionRail({
1893
1905
  const scroll = (direction) => {
1894
1906
  scrollRef.current?.scrollBy({ left: direction * 320, behavior: "smooth" });
1895
1907
  };
1896
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("section", { className: cn("flex flex-col gap-4", className), "data-testid": testIdPrefix, children: [
1897
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("header", { className: "flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between", children: [
1898
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { children: [
1899
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1908
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("section", { className: cn("flex flex-col gap-4", className), "data-testid": testIdPrefix, children: [
1909
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("header", { className: "flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between", children: [
1910
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { children: [
1911
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1900
1912
  "h2",
1901
1913
  {
1902
1914
  className: titleSerif ? "font-serif text-xl font-normal tracking-tight text-text-primary" : "text-xl font-medium tracking-tight text-text-primary",
1903
1915
  children: title
1904
1916
  }
1905
1917
  ),
1906
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("p", { className: "mt-1 text-sm text-text-secondary", children: subtitle })
1918
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("p", { className: "mt-1 text-sm text-text-secondary", children: subtitle })
1907
1919
  ] }),
1908
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("div", { className: "flex items-center gap-2", children: [
1909
- viewAllLabel && viewAllHref && /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
1920
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center gap-2", children: [
1921
+ viewAllLabel && viewAllHref && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1910
1922
  "a",
1911
1923
  {
1912
1924
  href: viewAllHref,
@@ -1917,29 +1929,29 @@ function SectionRail({
1917
1929
  ]
1918
1930
  }
1919
1931
  ),
1920
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1932
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1921
1933
  "button",
1922
1934
  {
1923
1935
  type: "button",
1924
1936
  onClick: () => scroll(-1),
1925
1937
  "aria-label": "Previous",
1926
1938
  className: "hidden h-10 w-10 items-center justify-center rounded-control border border-border-default text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus sm:flex lg:hidden",
1927
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.ChevronLeft, { size: 16 })
1939
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react9.ChevronLeft, { size: 16 })
1928
1940
  }
1929
1941
  ),
1930
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1942
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1931
1943
  "button",
1932
1944
  {
1933
1945
  type: "button",
1934
1946
  onClick: () => scroll(1),
1935
1947
  "aria-label": "Next",
1936
1948
  className: "hidden h-10 w-10 items-center justify-center rounded-control border border-border-default text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus sm:flex lg:hidden",
1937
- children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react8.ChevronRight, { size: 16 })
1949
+ children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react9.ChevronRight, { size: 16 })
1938
1950
  }
1939
1951
  )
1940
1952
  ] })
1941
1953
  ] }),
1942
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
1954
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1943
1955
  "div",
1944
1956
  {
1945
1957
  ref: scrollRef,
@@ -1952,8 +1964,8 @@ function SectionRail({
1952
1964
 
1953
1965
  // src/DataScopeFilter.tsx
1954
1966
  var import_react7 = require("react");
1955
- var import_lucide_react9 = require("lucide-react");
1956
- var import_jsx_runtime11 = require("react/jsx-runtime");
1967
+ var import_lucide_react10 = require("lucide-react");
1968
+ var import_jsx_runtime12 = require("react/jsx-runtime");
1957
1969
  var FINAL_ONLY_TEXT = "Trims time periods to data that has finalized across the selected media formats. Some formats (e.g. Network TV and Cinema) finalize later, so the most recent periods may still change. Turn on for stable, report-ready numbers.";
1958
1970
  function DataScopeFilter({ value, onChange, align = "right", className, testIdPrefix }) {
1959
1971
  const [open, setOpen] = (0, import_react7.useState)(false);
@@ -1976,8 +1988,8 @@ function DataScopeFilter({ value, onChange, align = "right", className, testIdPr
1976
1988
  onChange(v);
1977
1989
  setOpen(false);
1978
1990
  };
1979
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: cn("relative", className), ref, "data-testid": testIdPrefix, children: [
1980
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
1991
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: cn("relative", className), ref, "data-testid": testIdPrefix, children: [
1992
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
1981
1993
  "button",
1982
1994
  {
1983
1995
  type: "button",
@@ -1986,9 +1998,9 @@ function DataScopeFilter({ value, onChange, align = "right", className, testIdPr
1986
1998
  "data-testid": testIdPrefix && `${testIdPrefix}-trigger`,
1987
1999
  className: chipTriggerClass(),
1988
2000
  children: [
1989
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(ChipContent, { caption: "Data", value: display }),
1990
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
1991
- import_lucide_react9.ChevronDown,
2001
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(ChipContent, { caption: "Data", value: display }),
2002
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2003
+ import_lucide_react10.ChevronDown,
1992
2004
  {
1993
2005
  size: 14,
1994
2006
  "aria-hidden": "true",
@@ -1998,7 +2010,7 @@ function DataScopeFilter({ value, onChange, align = "right", className, testIdPr
1998
2010
  ]
1999
2011
  }
2000
2012
  ),
2001
- open && /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2013
+ open && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2002
2014
  "div",
2003
2015
  {
2004
2016
  role: "group",
@@ -2009,8 +2021,8 @@ function DataScopeFilter({ value, onChange, align = "right", className, testIdPr
2009
2021
  align === "right" ? "right-0" : "left-0"
2010
2022
  ),
2011
2023
  children: [
2012
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Option, { label: "All", selected: !value, onClick: () => choose(false) }),
2013
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Option, { label: "Final only", selected: value, onClick: () => choose(true), hint: FINAL_ONLY_TEXT })
2024
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Option, { label: "All", selected: !value, onClick: () => choose(false) }),
2025
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Option, { label: "Final only", selected: value, onClick: () => choose(true), hint: FINAL_ONLY_TEXT })
2014
2026
  ]
2015
2027
  }
2016
2028
  )
@@ -2022,7 +2034,7 @@ function Option({
2022
2034
  onClick,
2023
2035
  hint
2024
2036
  }) {
2025
- const option = /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2037
+ const option = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2026
2038
  "button",
2027
2039
  {
2028
2040
  type: "button",
@@ -2034,33 +2046,33 @@ function Option({
2034
2046
  selected ? "font-semibold text-text-primary" : "text-text-secondary"
2035
2047
  ),
2036
2048
  children: [
2037
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_lucide_react9.Check, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-brand-primaryAction", !selected && "invisible") }),
2049
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react10.Check, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-brand-primaryAction", !selected && "invisible") }),
2038
2050
  label
2039
2051
  ]
2040
2052
  }
2041
2053
  );
2042
2054
  if (!hint) return option;
2043
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)("div", { className: "flex items-center gap-2 pr-2.5", children: [
2055
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex items-center gap-2 pr-2.5", children: [
2044
2056
  option,
2045
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(InfoTip, { text: hint, trigger: "hover", label: `About ${label}` })
2057
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(InfoTip, { text: hint, trigger: "hover", label: `About ${label}` })
2046
2058
  ] });
2047
2059
  }
2048
2060
 
2049
2061
  // src/SelectFilter.tsx
2050
2062
  var import_react8 = require("react");
2051
2063
  var import_react_dom2 = require("react-dom");
2052
- var import_lucide_react10 = require("lucide-react");
2064
+ var import_lucide_react11 = require("lucide-react");
2053
2065
 
2054
2066
  // src/MenuStatus.tsx
2055
- var import_jsx_runtime12 = require("react/jsx-runtime");
2067
+ var import_jsx_runtime13 = require("react/jsx-runtime");
2056
2068
  var ROW_WIDTHS = ["w-3/4", "w-1/2", "w-4/5", "w-3/5"];
2057
2069
  function MenuLoading() {
2058
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { role: "status", "aria-label": "Loading options", className: "p-1", children: ROW_WIDTHS.map((w) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "flex h-9 items-center px-2", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: `inline-block h-3 ${w} animate-pulse rounded-full bg-subtle`, "aria-hidden": "true" }) }, w)) });
2070
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { role: "status", "aria-label": "Loading options", className: "p-1", children: ROW_WIDTHS.map((w) => /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "flex h-9 items-center px-2", children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: `inline-block h-3 ${w} animate-pulse rounded-full bg-subtle`, "aria-hidden": "true" }) }, w)) });
2059
2071
  }
2060
2072
  function MenuError({ onRetry }) {
2061
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { role: "alert", className: "px-3 py-5 text-center text-dense text-text-secondary", children: [
2073
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { role: "alert", className: "px-3 py-5 text-center text-dense text-text-secondary", children: [
2062
2074
  "Couldn't load options.",
2063
- onRetry && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
2075
+ onRetry && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2064
2076
  "button",
2065
2077
  {
2066
2078
  type: "button",
@@ -2073,12 +2085,12 @@ function MenuError({ onRetry }) {
2073
2085
  }
2074
2086
 
2075
2087
  // src/SelectFilter.tsx
2076
- var import_jsx_runtime13 = require("react/jsx-runtime");
2088
+ var import_jsx_runtime14 = require("react/jsx-runtime");
2077
2089
  function slug4(value) {
2078
2090
  return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
2079
2091
  }
2080
2092
  function OptionIcon({ children }) {
2081
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2093
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2082
2094
  "span",
2083
2095
  {
2084
2096
  "aria-hidden": "true",
@@ -2101,10 +2113,12 @@ function SelectFilter({
2101
2113
  onRetry,
2102
2114
  size = "md",
2103
2115
  inlineCaption = false,
2116
+ hideCaption = false,
2104
2117
  disabled = false,
2105
2118
  renderIcon
2106
2119
  }) {
2107
2120
  const sm = size === "sm";
2121
+ const bare = !sm && hideCaption;
2108
2122
  const [open, setOpen] = (0, import_react8.useState)(false);
2109
2123
  const [pos, setPos] = (0, import_react8.useState)(null);
2110
2124
  const ref = (0, import_react8.useRef)(null);
@@ -2144,20 +2158,20 @@ function SelectFilter({
2144
2158
  window.removeEventListener("scroll", reposition, true);
2145
2159
  };
2146
2160
  }, [open, close, reposition]);
2147
- const valueContent = renderIcon ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "flex items-center gap-1.5", children: [
2148
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(OptionIcon, { children: renderIcon(value) }),
2161
+ const valueContent = renderIcon ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "flex items-center gap-1.5", children: [
2162
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(OptionIcon, { children: renderIcon(value) }),
2149
2163
  value
2150
2164
  ] }) : value;
2151
- const triggerValue = sm && inlineCaption ? /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { children: [
2152
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("span", { className: "font-normal text-text-secondary", children: [
2165
+ const triggerValue = sm && inlineCaption ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { children: [
2166
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("span", { className: "font-normal text-text-secondary", children: [
2153
2167
  caption,
2154
2168
  ":"
2155
2169
  ] }),
2156
2170
  " ",
2157
2171
  valueContent
2158
2172
  ] }) : valueContent;
2159
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)("div", { className: cn("relative", fullWidth && "w-full"), ref, "data-testid": testIdPrefix, children: [
2160
- /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2173
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: cn("relative", fullWidth && "w-full"), ref, "data-testid": testIdPrefix, children: [
2174
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2161
2175
  "button",
2162
2176
  {
2163
2177
  type: "button",
@@ -2165,18 +2179,18 @@ function SelectFilter({
2165
2179
  onClick: () => setOpen((o) => !o),
2166
2180
  "aria-expanded": open,
2167
2181
  "aria-haspopup": "listbox",
2168
- "aria-label": sm && !inlineCaption ? caption : void 0,
2182
+ "aria-label": sm && !inlineCaption || bare ? caption : void 0,
2169
2183
  disabled,
2170
2184
  className: cn(
2171
- sm ? "flex h-8 items-center gap-1.5 rounded-control border border-border-strong bg-input pl-2.5 pr-2 text-dense font-medium text-text-primary transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus" : chipTriggerClass(),
2185
+ sm ? "flex h-8 items-center gap-1.5 rounded-control border border-border-strong bg-input pl-2.5 pr-2 text-dense font-medium text-text-primary transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus" : bare ? "flex h-10 items-center gap-2 rounded-control border border-border-strong bg-input pl-3 pr-2.5 text-sm font-medium text-text-primary transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus" : chipTriggerClass(),
2172
2186
  "disabled:pointer-events-none disabled:opacity-40",
2173
2187
  fullWidth && "w-full justify-between",
2174
2188
  className
2175
2189
  ),
2176
2190
  children: [
2177
- sm ? triggerValue : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(ChipContent, { caption, value: triggerValue }),
2178
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2179
- import_lucide_react10.ChevronDown,
2191
+ sm || bare ? triggerValue : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(ChipContent, { caption, value: triggerValue }),
2192
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2193
+ import_lucide_react11.ChevronDown,
2180
2194
  {
2181
2195
  size: 14,
2182
2196
  "aria-hidden": "true",
@@ -2187,7 +2201,7 @@ function SelectFilter({
2187
2201
  }
2188
2202
  ),
2189
2203
  open && pos && (0, import_react_dom2.createPortal)(
2190
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2204
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2191
2205
  "div",
2192
2206
  {
2193
2207
  ref: popoverRef,
@@ -2199,9 +2213,9 @@ function SelectFilter({
2199
2213
  ),
2200
2214
  role: loading || error ? "group" : "listbox",
2201
2215
  "aria-label": caption,
2202
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(MenuLoading, {}) : error ? /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(MenuError, { onRetry }) : /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("div", { className: "max-h-70 overflow-y-auto p-1", children: options.map((o) => {
2216
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(MenuLoading, {}) : error ? /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(MenuError, { onRetry }) : /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "max-h-70 overflow-y-auto p-1", children: options.map((o) => {
2203
2217
  const selected = o === value;
2204
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(
2218
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2205
2219
  "button",
2206
2220
  {
2207
2221
  type: "button",
@@ -2214,9 +2228,9 @@ function SelectFilter({
2214
2228
  },
2215
2229
  className: "flex w-full items-center gap-2.5 rounded-control px-2 py-2 text-left transition-colors hover:bg-subtle focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
2216
2230
  children: [
2217
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center text-brand-primaryAction", children: selected && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_lucide_react10.Check, { size: 15, strokeWidth: 3 }) }),
2218
- renderIcon && /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(OptionIcon, { children: renderIcon(o) }),
2219
- /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
2231
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("span", { className: "flex h-4 w-4 shrink-0 items-center justify-center text-brand-primaryAction", children: selected && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_lucide_react11.Check, { size: 15, strokeWidth: 3 }) }),
2232
+ renderIcon && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(OptionIcon, { children: renderIcon(o) }),
2233
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2220
2234
  "span",
2221
2235
  {
2222
2236
  className: cn("flex-1 text-sm", selected ? "font-semibold text-text-primary" : "text-text-primary"),
@@ -2237,10 +2251,10 @@ function SelectFilter({
2237
2251
 
2238
2252
  // src/Card.tsx
2239
2253
  var import_react9 = require("react");
2240
- var import_jsx_runtime14 = require("react/jsx-runtime");
2254
+ var import_jsx_runtime15 = require("react/jsx-runtime");
2241
2255
  var Card = (0, import_react9.forwardRef)(function Card2({ staticCard, title, titleAs: TitleTag = "h3", subtitle, info, variant = "default", action, className, testIdPrefix, children, ...rest }, ref) {
2242
2256
  const chart = variant === "chart";
2243
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
2257
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2244
2258
  "article",
2245
2259
  {
2246
2260
  ref,
@@ -2253,18 +2267,18 @@ var Card = (0, import_react9.forwardRef)(function Card2({ staticCard, title, tit
2253
2267
  ),
2254
2268
  "data-testid": testIdPrefix,
2255
2269
  ...rest,
2256
- children: title ? /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex flex-1 flex-col p-card-padding", children: [
2257
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
2258
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "min-w-0", children: [
2259
- /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "flex items-center gap-1.5", children: [
2260
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TitleTag, { className: chart ? "text-panel-title font-semibold text-text-primary" : "text-style-card-title", children: title }),
2261
- info && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(InfoTip, { text: info, label: `About ${title.toLowerCase()}` })
2270
+ children: title ? /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex flex-1 flex-col p-card-padding", children: [
2271
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-start justify-between gap-2", children: [
2272
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "min-w-0", children: [
2273
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { className: "flex items-center gap-1.5", children: [
2274
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(TitleTag, { className: chart ? "text-panel-title font-semibold text-text-primary" : "text-style-card-title", children: title }),
2275
+ info && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(InfoTip, { text: info, label: `About ${title.toLowerCase()}` })
2262
2276
  ] }),
2263
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("p", { className: "mt-0.5 text-xs leading-snug text-text-tertiary", children: subtitle })
2277
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("p", { className: "mt-0.5 text-xs leading-snug text-text-tertiary", children: subtitle })
2264
2278
  ] }),
2265
- action && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "shrink-0 text-text-tertiary", children: action })
2279
+ action && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "shrink-0 text-text-tertiary", children: action })
2266
2280
  ] }),
2267
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "mt-4 flex flex-1 flex-col", children })
2281
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "mt-4 flex flex-1 flex-col", children })
2268
2282
  ] }) : children
2269
2283
  }
2270
2284
  );
@@ -2272,9 +2286,9 @@ var Card = (0, import_react9.forwardRef)(function Card2({ staticCard, title, tit
2272
2286
 
2273
2287
  // src/StatStrip.tsx
2274
2288
  var import_react10 = require("react");
2275
- var import_jsx_runtime15 = require("react/jsx-runtime");
2289
+ var import_jsx_runtime16 = require("react/jsx-runtime");
2276
2290
  var StatStrip = (0, import_react10.forwardRef)(
2277
- ({ className, testIdPrefix, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2291
+ ({ className, testIdPrefix, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2278
2292
  "div",
2279
2293
  {
2280
2294
  ref,
@@ -2292,32 +2306,32 @@ var StatStrip = (0, import_react10.forwardRef)(
2292
2306
  );
2293
2307
  StatStrip.displayName = "StatStrip";
2294
2308
  function StatTile({ label, value, unit, change, note, icon, info, children, className, testIdPrefix }) {
2295
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { "data-testid": testIdPrefix, className: cn("flex min-w-0 flex-col gap-1 px-5 py-3", className), children: [
2296
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "flex items-center gap-1.5 text-micro font-semibold uppercase tracking-wide text-text-tertiary", children: [
2297
- icon && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { "aria-hidden": "true", className: "flex shrink-0 text-brand-primaryAction", children: icon }),
2309
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("div", { "data-testid": testIdPrefix, className: cn("flex min-w-0 flex-col gap-1 px-5 py-3", className), children: [
2310
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "flex items-center gap-1.5 text-micro font-semibold uppercase tracking-wide text-text-tertiary", children: [
2311
+ icon && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { "aria-hidden": "true", className: "flex shrink-0 text-brand-primaryAction", children: icon }),
2298
2312
  label,
2299
- info && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(InfoTip, { text: info, label: `About ${label.toLowerCase()}` })
2313
+ info && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(InfoTip, { text: info, label: `About ${label.toLowerCase()}` })
2300
2314
  ] }),
2301
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "flex flex-wrap items-baseline gap-x-2.5 gap-y-0.5", children: [
2302
- /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "text-xl font-bold leading-tight tracking-tight tabular-nums text-text-primary", children: [
2315
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "flex flex-wrap items-baseline gap-x-2.5 gap-y-0.5", children: [
2316
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "text-xl font-bold leading-tight tracking-tight tabular-nums text-text-primary", children: [
2303
2317
  value,
2304
- unit && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("span", { className: "text-dense font-medium tracking-normal text-text-tertiary", children: [
2318
+ unit && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { className: "text-dense font-medium tracking-normal text-text-tertiary", children: [
2305
2319
  " ",
2306
2320
  unit
2307
2321
  ] })
2308
2322
  ] }),
2309
- change && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-card-title font-medium", children: change })
2323
+ change && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-card-title font-medium", children: change })
2310
2324
  ] }),
2311
- note && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("span", { className: "text-xs text-text-tertiary", children: note }),
2312
- children && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: "text-xs text-text-secondary", children })
2325
+ note && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("span", { className: "text-xs text-text-tertiary", children: note }),
2326
+ children && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)("div", { className: "text-xs text-text-secondary", children })
2313
2327
  ] });
2314
2328
  }
2315
2329
 
2316
2330
  // src/ChartLegend.tsx
2317
2331
  var import_react11 = require("react");
2318
- var import_jsx_runtime16 = require("react/jsx-runtime");
2332
+ var import_jsx_runtime17 = require("react/jsx-runtime");
2319
2333
  var ChartLegend = (0, import_react11.forwardRef)(
2320
- ({ className, testIdPrefix, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2334
+ ({ className, testIdPrefix, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2321
2335
  "ul",
2322
2336
  {
2323
2337
  ref,
@@ -2337,8 +2351,8 @@ var MARK = {
2337
2351
  };
2338
2352
  function LegendItem({ mark = "dot", color, you = false, children, className, testIdPrefix }) {
2339
2353
  const dashed = mark === "dashed";
2340
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("li", { "data-testid": testIdPrefix, className: cn("flex items-center gap-1.5", you && "text-text-secondary", className), children: [
2341
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2354
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("li", { "data-testid": testIdPrefix, className: cn("flex items-center gap-1.5", you && "text-text-secondary", className), children: [
2355
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2342
2356
  "span",
2343
2357
  {
2344
2358
  "aria-hidden": "true",
@@ -2352,7 +2366,7 @@ function LegendItem({ mark = "dot", color, you = false, children, className, tes
2352
2366
  style: color ? dashed ? { borderColor: color } : { background: color } : void 0
2353
2367
  }
2354
2368
  ),
2355
- /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)("span", { children: [
2369
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { children: [
2356
2370
  children,
2357
2371
  you && " (you)"
2358
2372
  ] })
@@ -2360,30 +2374,30 @@ function LegendItem({ mark = "dot", color, you = false, children, className, tes
2360
2374
  }
2361
2375
 
2362
2376
  // src/BarList.tsx
2363
- var import_jsx_runtime17 = require("react/jsx-runtime");
2377
+ var import_jsx_runtime18 = require("react/jsx-runtime");
2364
2378
  var COL_WIDTH = ["w-16", "w-13"];
2365
2379
  function BarList({ rows, columns, empty, className, testIdPrefix, "aria-label": ariaLabel }) {
2366
2380
  if (!rows.length) {
2367
- return empty ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("p", { className: cn("text-xs text-text-tertiary", className), children: empty }) : null;
2381
+ return empty ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: cn("text-xs text-text-tertiary", className), children: empty }) : null;
2368
2382
  }
2369
2383
  const max = Math.max(...rows.flatMap((r) => [r.bar, r.tick ?? 0]), 1);
2370
2384
  const full = !!columns?.length;
2371
2385
  const colClass = (i) => full ? COL_WIDTH[i] ?? "w-13" : "";
2372
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { "data-testid": testIdPrefix, className: cn("flex flex-col", className), children: [
2373
- full && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { "aria-hidden": "true", className: "flex items-baseline gap-2 pb-1", children: [
2374
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "flex-1" }),
2375
- columns.map((c, i) => /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: cn("shrink-0 text-right text-micro font-medium text-text-tertiary", colClass(i)), children: c }, c))
2386
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { "data-testid": testIdPrefix, className: cn("flex flex-col", className), children: [
2387
+ full && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { "aria-hidden": "true", className: "flex items-baseline gap-2 pb-1", children: [
2388
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "flex-1" }),
2389
+ columns.map((c, i) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: cn("shrink-0 text-right text-micro font-medium text-text-tertiary", colClass(i)), children: c }, c))
2376
2390
  ] }),
2377
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("ul", { "aria-label": ariaLabel, className: "flex flex-col", children: rows.map((r) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("li", { className: "py-2", children: [
2378
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { className: "mb-1.5 flex items-baseline gap-2", children: [
2379
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "min-w-0 flex-1 truncate text-dense font-semibold text-text-primary", children: [
2391
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("ul", { "aria-label": ariaLabel, className: "flex flex-col", children: rows.map((r) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("li", { className: "py-2", children: [
2392
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "mb-1.5 flex items-baseline gap-2", children: [
2393
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "min-w-0 flex-1 truncate text-dense font-semibold text-text-primary", children: [
2380
2394
  r.label,
2381
- r.note && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "font-normal text-text-tertiary", children: [
2395
+ r.note && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "font-normal text-text-tertiary", children: [
2382
2396
  " \xB7 ",
2383
2397
  r.note
2384
2398
  ] })
2385
2399
  ] }),
2386
- r.values?.map((v, i) => /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(
2400
+ r.values?.map((v, i) => /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(
2387
2401
  "span",
2388
2402
  {
2389
2403
  className: cn(
@@ -2392,7 +2406,7 @@ function BarList({ rows, columns, empty, className, testIdPrefix, "aria-label":
2392
2406
  colClass(i)
2393
2407
  ),
2394
2408
  children: [
2395
- full && /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("span", { className: "sr-only", children: [
2409
+ full && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("span", { className: "sr-only", children: [
2396
2410
  columns[i],
2397
2411
  ": "
2398
2412
  ] }),
@@ -2402,15 +2416,15 @@ function BarList({ rows, columns, empty, className, testIdPrefix, "aria-label":
2402
2416
  i
2403
2417
  ))
2404
2418
  ] }),
2405
- /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)("div", { "aria-hidden": "true", className: "relative h-2 rounded-pill bg-subtle", children: [
2406
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2419
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { "aria-hidden": "true", className: "relative h-2 rounded-pill bg-subtle", children: [
2420
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2407
2421
  "div",
2408
2422
  {
2409
2423
  className: cn("h-full rounded-pill", !r.color && "bg-brand-primaryAction"),
2410
2424
  style: { width: `${Math.max(r.bar, 0) / max * 100}%`, background: r.color }
2411
2425
  }
2412
2426
  ),
2413
- r.tick !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2427
+ r.tick !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2414
2428
  "span",
2415
2429
  {
2416
2430
  className: "absolute -bottom-1 -top-1 w-0.5 -translate-x-1/2 rounded-pill bg-text-primary",
@@ -2418,14 +2432,14 @@ function BarList({ rows, columns, empty, className, testIdPrefix, "aria-label":
2418
2432
  }
2419
2433
  )
2420
2434
  ] }),
2421
- r.tickLabel && /* @__PURE__ */ (0, import_jsx_runtime17.jsx)("span", { className: "sr-only", children: r.tickLabel })
2435
+ r.tickLabel && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "sr-only", children: r.tickLabel })
2422
2436
  ] }, r.key)) })
2423
2437
  ] });
2424
2438
  }
2425
2439
 
2426
2440
  // src/NoResultsEmptyState.tsx
2427
- var import_lucide_react11 = require("lucide-react");
2428
- var import_jsx_runtime18 = require("react/jsx-runtime");
2441
+ var import_lucide_react12 = require("lucide-react");
2442
+ var import_jsx_runtime19 = require("react/jsx-runtime");
2429
2443
  var NO_RESULTS_TITLE = "No results match your filters";
2430
2444
  var NO_RESULTS_BODY = "Your filters may be too narrow, conflict with each other, or have no activity in this period.";
2431
2445
  function noResultsBody(workspaceName) {
@@ -2448,12 +2462,12 @@ function NoResultsEmptyState({
2448
2462
  const showClear = hasFilters !== false && Boolean(onClearFilters);
2449
2463
  const showEdit = Boolean(onEditFilters);
2450
2464
  const hasActions = showClear || showEdit || Boolean(actions && actions.length > 0);
2451
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: cn("flex flex-col items-center justify-center gap-3 text-center", className), "data-testid": testIdPrefix, children: [
2452
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("span", { className: "flex h-11 w-11 items-center justify-center rounded-full bg-subtle text-text-tertiary", children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_lucide_react11.FilterX, { size: 20, "aria-hidden": "true" }) }),
2453
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("h2", { className: "text-base font-semibold text-text-primary", children: title }),
2454
- /* @__PURE__ */ (0, import_jsx_runtime18.jsx)("p", { className: "max-w-105 text-dense leading-relaxed text-text-secondary", children: bodyText }),
2455
- hasActions && /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)("div", { className: "mt-1 flex flex-col items-center gap-3", children: [
2456
- showClear && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2465
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: cn("flex flex-col items-center justify-center gap-3 text-center", className), "data-testid": testIdPrefix, children: [
2466
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "flex h-11 w-11 items-center justify-center rounded-full bg-subtle text-text-tertiary", children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.FilterX, { size: 20, "aria-hidden": "true" }) }),
2467
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("h2", { className: "text-base font-semibold text-text-primary", children: title }),
2468
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "max-w-105 text-dense leading-relaxed text-text-secondary", children: bodyText }),
2469
+ hasActions && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "mt-1 flex flex-col items-center gap-3", children: [
2470
+ showClear && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2457
2471
  "button",
2458
2472
  {
2459
2473
  type: "button",
@@ -2463,7 +2477,7 @@ function NoResultsEmptyState({
2463
2477
  children: "Clear all filters"
2464
2478
  }
2465
2479
  ),
2466
- showEdit && /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2480
+ showEdit && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2467
2481
  "button",
2468
2482
  {
2469
2483
  type: "button",
@@ -2473,7 +2487,7 @@ function NoResultsEmptyState({
2473
2487
  children: "Edit filters"
2474
2488
  }
2475
2489
  ),
2476
- actions?.map((action, i) => /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2490
+ actions?.map((action, i) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2477
2491
  "button",
2478
2492
  {
2479
2493
  type: "button",
@@ -2489,10 +2503,10 @@ function NoResultsEmptyState({
2489
2503
 
2490
2504
  // src/WorkspaceSelectedCard.tsx
2491
2505
  var import_react12 = require("react");
2492
- var import_lucide_react12 = require("lucide-react");
2493
- var import_jsx_runtime19 = require("react/jsx-runtime");
2506
+ var import_lucide_react13 = require("lucide-react");
2507
+ var import_jsx_runtime20 = require("react/jsx-runtime");
2494
2508
  function WorkspaceSelectedCard({ groups, className, testIdPrefix }) {
2495
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2509
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2496
2510
  "aside",
2497
2511
  {
2498
2512
  className: cn(
@@ -2500,7 +2514,7 @@ function WorkspaceSelectedCard({ groups, className, testIdPrefix }) {
2500
2514
  className
2501
2515
  ),
2502
2516
  "data-testid": testIdPrefix,
2503
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "flex flex-col divide-y divide-border-default", children: groups.map((g) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SummaryGroupItem, { group: g, testIdPrefix }, g.id)) })
2517
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex flex-col divide-y divide-border-default", children: groups.map((g) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SummaryGroupItem, { group: g, testIdPrefix }, g.id)) })
2504
2518
  }
2505
2519
  );
2506
2520
  }
@@ -2519,8 +2533,8 @@ function SummaryGroupItem({
2519
2533
  else if (expandCount === 0) setOpen(false);
2520
2534
  wasEmpty.current = expandCount === 0;
2521
2535
  }, [expandCount]);
2522
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: nested ? "" : "py-3 first:pt-0 last:pb-0", children: [
2523
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2536
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: nested ? "" : "py-3 first:pt-0 last:pb-0", children: [
2537
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2524
2538
  "button",
2525
2539
  {
2526
2540
  type: "button",
@@ -2529,45 +2543,45 @@ function SummaryGroupItem({
2529
2543
  "data-testid": testIdPrefix && `${testIdPrefix}-group-${group.id}`,
2530
2544
  className: "flex w-full min-w-0 items-center gap-2 text-left focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
2531
2545
  children: [
2532
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2533
- import_lucide_react12.ChevronDown,
2546
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2547
+ import_lucide_react13.ChevronDown,
2534
2548
  {
2535
2549
  size: 14,
2536
2550
  "aria-hidden": "true",
2537
2551
  className: cn("shrink-0 text-text-secondary transition-transform", !open && "-rotate-90")
2538
2552
  }
2539
2553
  ),
2540
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: cn("truncate font-semibold text-text-primary", nested ? "text-xs" : "text-dense"), children: group.label }),
2541
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "shrink-0 rounded-full bg-subtle px-1.5 py-0.5 text-micro font-semibold text-text-secondary", children: ownCount })
2554
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: cn("truncate font-semibold text-text-primary", nested ? "text-xs" : "text-dense"), children: group.label }),
2555
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "shrink-0 rounded-full bg-subtle px-1.5 py-0.5 text-micro font-semibold text-text-secondary", children: ownCount })
2542
2556
  ]
2543
2557
  }
2544
2558
  ),
2545
- open && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("div", { className: "pt-2.5", children: ownCount === 0 && subCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("p", { className: "text-xs text-text-secondary", children: "Nothing selected." }) : /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex flex-col gap-2.5", children: [
2546
- ownCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
2547
- group.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(
2559
+ open && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "pt-2.5", children: ownCount === 0 && subCount === 0 ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("p", { className: "text-xs text-text-secondary", children: "Nothing selected." }) : /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-2.5", children: [
2560
+ ownCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "flex flex-col gap-1.5", children: [
2561
+ group.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(
2548
2562
  "div",
2549
2563
  {
2550
2564
  className: "flex items-center justify-between gap-2 rounded-control border border-border-default bg-canvas px-2 py-1",
2551
2565
  children: [
2552
- /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)("span", { className: "min-w-0 flex-1", children: [
2553
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "block truncate text-xs text-text-primary", children: item.name }),
2554
- item.meta && /* @__PURE__ */ (0, import_jsx_runtime19.jsx)("span", { className: "block truncate text-micro text-text-secondary", children: item.meta })
2566
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "min-w-0 flex-1", children: [
2567
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "block truncate text-xs text-text-primary", children: item.name }),
2568
+ item.meta && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "block truncate text-micro text-text-secondary", children: item.meta })
2555
2569
  ] }),
2556
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2570
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2557
2571
  "button",
2558
2572
  {
2559
2573
  type: "button",
2560
2574
  "aria-label": `Remove ${item.name}`,
2561
2575
  onClick: () => group.onRemove(item.id),
2562
2576
  className: "flex h-5 w-5 shrink-0 items-center justify-center rounded-control text-text-secondary hover:bg-subtle hover:text-text-danger focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
2563
- children: /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_lucide_react12.X, { size: 12, "aria-hidden": "true" })
2577
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_lucide_react13.X, { size: 12, "aria-hidden": "true" })
2564
2578
  }
2565
2579
  )
2566
2580
  ]
2567
2581
  },
2568
2582
  item.id
2569
2583
  )),
2570
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2584
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2571
2585
  "button",
2572
2586
  {
2573
2587
  type: "button",
@@ -2578,13 +2592,13 @@ function SummaryGroupItem({
2578
2592
  }
2579
2593
  )
2580
2594
  ] }),
2581
- group.subGroups?.map((sg) => /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(SummaryGroupItem, { group: sg, nested: true, testIdPrefix }, sg.id))
2595
+ group.subGroups?.map((sg) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(SummaryGroupItem, { group: sg, nested: true, testIdPrefix }, sg.id))
2582
2596
  ] }) })
2583
2597
  ] });
2584
2598
  }
2585
2599
 
2586
2600
  // src/chart-placeholder-shared.tsx
2587
- var import_jsx_runtime20 = require("react/jsx-runtime");
2601
+ var import_jsx_runtime21 = require("react/jsx-runtime");
2588
2602
  var GRID_ROWS = [0, 25, 50, 75, 100];
2589
2603
  var Y_TICK_WIDTHS = [26, 30, 30, 26, 20];
2590
2604
  var Y_AXIS_W = 48;
@@ -2598,9 +2612,9 @@ function AxisFrame({
2598
2612
  testIdPrefix
2599
2613
  }) {
2600
2614
  const gutter = xTicks > 0 ? X_AXIS_H : 0;
2601
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: cn("w-full", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "relative h-full w-full", children: [
2602
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: "absolute inset-y-0 right-0", style: { left: Y_AXIS_W, bottom: gutter }, children: [
2603
- GRID_ROWS.map((pct) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2615
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: cn("w-full", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "relative h-full w-full", children: [
2616
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("div", { className: "absolute inset-y-0 right-0", style: { left: Y_AXIS_W, bottom: gutter }, children: [
2617
+ GRID_ROWS.map((pct) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2604
2618
  "div",
2605
2619
  {
2606
2620
  className: "absolute inset-x-0 border-t border-dashed",
@@ -2608,9 +2622,9 @@ function AxisFrame({
2608
2622
  },
2609
2623
  pct
2610
2624
  )),
2611
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute inset-0", children })
2625
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute inset-0", children })
2612
2626
  ] }),
2613
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "absolute left-0 top-0", style: { width: Y_AXIS_W, bottom: gutter }, children: GRID_ROWS.map((pct, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2627
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "absolute left-0 top-0", style: { width: Y_AXIS_W, bottom: gutter }, children: GRID_ROWS.map((pct, i) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2614
2628
  "div",
2615
2629
  {
2616
2630
  className: "absolute right-2 h-2 -translate-y-1/2 rounded-xs bg-subtle",
@@ -2618,27 +2632,27 @@ function AxisFrame({
2618
2632
  },
2619
2633
  pct
2620
2634
  )) }),
2621
- xTicks > 0 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2635
+ xTicks > 0 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2622
2636
  "div",
2623
2637
  {
2624
2638
  className: "absolute bottom-0 right-0 flex items-center",
2625
2639
  style: { left: Y_AXIS_W, height: X_AXIS_H },
2626
- children: Array.from({ length: xTicks }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "flex flex-1 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("div", { className: "h-2 w-full max-w-6.5 rounded-xs bg-subtle" }) }, i))
2640
+ children: Array.from({ length: xTicks }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex flex-1 justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "h-2 w-full max-w-6.5 rounded-xs bg-subtle" }) }, i))
2627
2641
  }
2628
2642
  )
2629
2643
  ] }) });
2630
2644
  }
2631
2645
  function BlankLegend({ rows, reverse = false }) {
2632
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2646
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2633
2647
  "ul",
2634
2648
  {
2635
2649
  className: `flex flex-1 justify-center gap-1.5 ${reverse ? "flex-col-reverse" : "flex-col"}`,
2636
2650
  role: "presentation",
2637
2651
  "aria-hidden": "true",
2638
- children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("li", { className: "flex items-center justify-between gap-2", children: [
2639
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("span", { className: "flex items-center gap-1.5", children: [
2640
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "h-2.5 w-2.5 rounded-xs bg-subtle" }),
2641
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2652
+ children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("li", { className: "flex items-center justify-between gap-2", children: [
2653
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)("span", { className: "flex items-center gap-1.5", children: [
2654
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "h-2.5 w-2.5 rounded-xs bg-subtle" }),
2655
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2642
2656
  "span",
2643
2657
  {
2644
2658
  className: "h-2 rounded-xs bg-subtle",
@@ -2646,21 +2660,21 @@ function BlankLegend({ rows, reverse = false }) {
2646
2660
  }
2647
2661
  )
2648
2662
  ] }),
2649
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)("span", { className: "h-2 w-6 rounded-xs bg-subtle" })
2663
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "h-2 w-6 rounded-xs bg-subtle" })
2650
2664
  ] }, i))
2651
2665
  }
2652
2666
  );
2653
2667
  }
2654
2668
 
2655
2669
  // src/BarChartPlaceholder.tsx
2656
- var import_jsx_runtime21 = require("react/jsx-runtime");
2670
+ var import_jsx_runtime22 = require("react/jsx-runtime");
2657
2671
  var BAR_PROFILE = [92, 86, 76, 65, 57, 40, 30, 24, 18, 13];
2658
2672
  function BarChartPlaceholder({ height = 220, className, testIdPrefix }) {
2659
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(AxisFrame, { height, xTicks: BAR_PROFILE.length, className, testIdPrefix, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex h-full w-full items-end gap-2", children: BAR_PROFILE.map((pct, i) => /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", { className: "flex-1 rounded-t-small bg-subtle", style: { height: `${pct}%` } }, i)) }) });
2673
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(AxisFrame, { height, xTicks: BAR_PROFILE.length, className, testIdPrefix, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex h-full w-full items-end gap-2", children: BAR_PROFILE.map((pct, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "flex-1 rounded-t-small bg-subtle", style: { height: `${pct}%` } }, i)) }) });
2660
2674
  }
2661
2675
 
2662
2676
  // src/LineChartPlaceholder.tsx
2663
- var import_jsx_runtime22 = require("react/jsx-runtime");
2677
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2664
2678
  var LINE_SERIES = [
2665
2679
  [58, 52, 55, 41, 45, 33, 36, 25, 28, 17],
2666
2680
  [74, 71, 66, 68, 59, 61, 54, 56, 48, 45],
@@ -2670,9 +2684,9 @@ var LINE_SERIES = [
2670
2684
  var LINE_FORECAST_FROM = 7;
2671
2685
  function LineChartPlaceholder({ height = 280, className, testIdPrefix }) {
2672
2686
  const toPath = (pts, from, to) => pts.slice(from, to).map((y, i) => `${(i + from) / (pts.length - 1) * 100},${y}`).join(" ");
2673
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(AxisFrame, { height, xTicks: LINE_SERIES[0].length, className, testIdPrefix, children: [
2674
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { viewBox: "0 0 100 100", preserveAspectRatio: "none", className: "absolute inset-0 h-full w-full", children: LINE_SERIES.map((pts, s) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("g", { children: [
2675
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2687
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(AxisFrame, { height, xTicks: LINE_SERIES[0].length, className, testIdPrefix, children: [
2688
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("svg", { viewBox: "0 0 100 100", preserveAspectRatio: "none", className: "absolute inset-0 h-full w-full", children: LINE_SERIES.map((pts, s) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("g", { children: [
2689
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2676
2690
  "polyline",
2677
2691
  {
2678
2692
  points: toPath(pts, 0, LINE_FORECAST_FROM + 1),
@@ -2684,7 +2698,7 @@ function LineChartPlaceholder({ height = 280, className, testIdPrefix }) {
2684
2698
  strokeLinejoin: "round"
2685
2699
  }
2686
2700
  ),
2687
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2701
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2688
2702
  "polyline",
2689
2703
  {
2690
2704
  points: toPath(pts, LINE_FORECAST_FROM, pts.length),
@@ -2699,7 +2713,7 @@ function LineChartPlaceholder({ height = 280, className, testIdPrefix }) {
2699
2713
  )
2700
2714
  ] }, s)) }),
2701
2715
  LINE_SERIES.map(
2702
- (pts, s) => pts.map((y, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2716
+ (pts, s) => pts.map((y, i) => /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2703
2717
  "div",
2704
2718
  {
2705
2719
  className: "absolute h-1.5 w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full",
@@ -2716,16 +2730,16 @@ function LineChartPlaceholder({ height = 280, className, testIdPrefix }) {
2716
2730
  }
2717
2731
 
2718
2732
  // src/PieChartPlaceholder.tsx
2719
- var import_jsx_runtime23 = require("react/jsx-runtime");
2733
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2720
2734
  var PIE_SEAMS = [0, 115, 180, 230, 262, 288, 310, 332];
2721
2735
  function PieChartPlaceholder({ height = 220, legendRows = 8, className, testIdPrefix }) {
2722
2736
  const r = 45;
2723
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: cn("flex w-full items-center gap-3", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: [
2724
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("div", { className: "flex h-full items-center justify-center", style: { width: "60%" }, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("svg", { viewBox: "0 0 100 100", className: "h-full", style: { aspectRatio: "1 / 1" }, children: [
2725
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("circle", { cx: "50", cy: "50", r, fill: "var(--mr-color-subtle)" }),
2737
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: cn("flex w-full items-center gap-3", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: [
2738
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex h-full items-center justify-center", style: { width: "60%" }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("svg", { viewBox: "0 0 100 100", className: "h-full", style: { aspectRatio: "1 / 1" }, children: [
2739
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("circle", { cx: "50", cy: "50", r, fill: "var(--mr-color-subtle)" }),
2726
2740
  PIE_SEAMS.map((deg) => {
2727
2741
  const rad = (deg - 90) * Math.PI / 180;
2728
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2742
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2729
2743
  "line",
2730
2744
  {
2731
2745
  x1: "50",
@@ -2739,12 +2753,12 @@ function PieChartPlaceholder({ height = 220, legendRows = 8, className, testIdPr
2739
2753
  );
2740
2754
  })
2741
2755
  ] }) }),
2742
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(BlankLegend, { rows: legendRows })
2756
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(BlankLegend, { rows: legendRows })
2743
2757
  ] });
2744
2758
  }
2745
2759
 
2746
2760
  // src/StackedColumnPlaceholder.tsx
2747
- var import_jsx_runtime24 = require("react/jsx-runtime");
2761
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2748
2762
  var COLUMN_WEIGHTS = [20, 30, 15, 35, 24, 12, 28, 18];
2749
2763
  function columnBands(count) {
2750
2764
  const weights = Array.from({ length: count }, (_, i) => COLUMN_WEIGHTS[i % COLUMN_WEIGHTS.length]);
@@ -2759,7 +2773,7 @@ function StackedColumnPlaceholder({
2759
2773
  className,
2760
2774
  testIdPrefix
2761
2775
  }) {
2762
- const column = /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex h-full flex-col overflow-hidden rounded-control bg-subtle", style: { width }, children: columnBands(legendRows).map((pct, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2776
+ const column = /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex h-full flex-col overflow-hidden rounded-control bg-subtle", style: { width }, children: columnBands(legendRows).map((pct, i) => /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2763
2777
  "div",
2764
2778
  {
2765
2779
  style: {
@@ -2771,16 +2785,16 @@ function StackedColumnPlaceholder({
2771
2785
  },
2772
2786
  i
2773
2787
  )) });
2774
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)("div", { className: cn("flex w-full gap-4", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: [
2775
- axis ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { style: { width: "55%" }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(AxisFrame, { height, xTicks: 0, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex h-full items-stretch justify-center", children: column }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "flex items-stretch py-1", children: column }),
2776
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(BlankLegend, { rows: legendRows, reverse: !axis })
2788
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: cn("flex w-full gap-4", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: [
2789
+ axis ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { style: { width: "55%" }, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(AxisFrame, { height, xTicks: 0, children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex h-full items-stretch justify-center", children: column }) }) }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "flex items-stretch py-1", children: column }),
2790
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(BlankLegend, { rows: legendRows, reverse: !axis })
2777
2791
  ] });
2778
2792
  }
2779
2793
 
2780
2794
  // src/Tooltip.tsx
2781
2795
  var import_react13 = require("react");
2782
2796
  var import_react_dom3 = require("react-dom");
2783
- var import_jsx_runtime25 = require("react/jsx-runtime");
2797
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2784
2798
  function addDescribedBy(el, id) {
2785
2799
  const ids = (el.getAttribute("aria-describedby") ?? "").split(" ").filter(Boolean);
2786
2800
  if (!ids.includes(id)) el.setAttribute("aria-describedby", [...ids, id].join(" "));
@@ -2966,7 +2980,7 @@ function Tooltip({
2966
2980
  }
2967
2981
  }
2968
2982
  const floating = anchor != null && typeof document !== "undefined" ? (0, import_react_dom3.createPortal)(
2969
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2983
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2970
2984
  "span",
2971
2985
  {
2972
2986
  ref: boxRef,
@@ -2997,7 +3011,7 @@ function Tooltip({
2997
3011
  document.body
2998
3012
  ) : null;
2999
3013
  if (anchorRef) return floating;
3000
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
3014
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
3001
3015
  "span",
3002
3016
  {
3003
3017
  ref,
@@ -3019,28 +3033,28 @@ function Tooltip({
3019
3033
  }
3020
3034
 
3021
3035
  // src/AdvertiserNoResults.tsx
3022
- var import_jsx_runtime26 = require("react/jsx-runtime");
3036
+ var import_jsx_runtime27 = require("react/jsx-runtime");
3023
3037
  function AdvertiserNoResults({
3024
3038
  query,
3025
3039
  hint = "Try checking your spelling or searching for a broader brand name.",
3026
3040
  className,
3027
3041
  testIdPrefix
3028
3042
  }) {
3029
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: cn("flex flex-col items-center gap-1.5 px-4 py-8 text-center", className), "data-testid": testIdPrefix, children: [
3030
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("p", { className: "text-dense font-medium text-text-primary", children: [
3043
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: cn("flex flex-col items-center gap-1.5 px-4 py-8 text-center", className), "data-testid": testIdPrefix, children: [
3044
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("p", { className: "text-dense font-medium text-text-primary", children: [
3031
3045
  "No results found for \u201C",
3032
3046
  query,
3033
3047
  "\u201D"
3034
3048
  ] }),
3035
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-xs leading-snug text-text-tertiary", children: hint })
3049
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-xs leading-snug text-text-tertiary", children: hint })
3036
3050
  ] });
3037
3051
  }
3038
3052
 
3039
3053
  // src/SelectAllVisible.tsx
3040
- var import_lucide_react13 = require("lucide-react");
3041
- var import_jsx_runtime27 = require("react/jsx-runtime");
3054
+ var import_lucide_react14 = require("lucide-react");
3055
+ var import_jsx_runtime28 = require("react/jsx-runtime");
3042
3056
  function SelectAllVisible({ count, allSelected, onToggle, className, testIdPrefix }) {
3043
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
3057
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3044
3058
  "button",
3045
3059
  {
3046
3060
  type: "button",
@@ -3051,7 +3065,7 @@ function SelectAllVisible({ count, allSelected, onToggle, className, testIdPrefi
3051
3065
  className
3052
3066
  ),
3053
3067
  children: [
3054
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_lucide_react13.ListChecks, { size: 14, "aria-hidden": "true" }),
3068
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react14.ListChecks, { size: 14, "aria-hidden": "true" }),
3055
3069
  allSelected ? `Deselect ${count} visible` : `Select all ${count} visible`
3056
3070
  ]
3057
3071
  }
@@ -3059,12 +3073,12 @@ function SelectAllVisible({ count, allSelected, onToggle, className, testIdPrefi
3059
3073
  }
3060
3074
 
3061
3075
  // src/SelectedSection.tsx
3062
- var import_lucide_react14 = require("lucide-react");
3063
- var import_jsx_runtime28 = require("react/jsx-runtime");
3076
+ var import_lucide_react15 = require("lucide-react");
3077
+ var import_jsx_runtime29 = require("react/jsx-runtime");
3064
3078
  function SelectedSection({ count, open, onToggle, children, className, testIdPrefix }) {
3065
3079
  if (count === 0) return null;
3066
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: cn("flex flex-col", className), "data-testid": testIdPrefix, children: [
3067
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
3080
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: cn("flex flex-col", className), "data-testid": testIdPrefix, children: [
3081
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3068
3082
  "button",
3069
3083
  {
3070
3084
  type: "button",
@@ -3073,25 +3087,25 @@ function SelectedSection({ count, open, onToggle, children, className, testIdPre
3073
3087
  "aria-expanded": open,
3074
3088
  className: "flex w-full items-center gap-1.5 rounded-control px-2 py-1 text-left text-micro font-semibold uppercase tracking-wide text-text-tertiary transition-colors hover:text-text-primary focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
3075
3089
  children: [
3076
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_lucide_react14.ChevronDown, { size: 13, "aria-hidden": "true", className: cn("transition-transform", !open && "-rotate-90") }),
3090
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react15.ChevronDown, { size: 13, "aria-hidden": "true", className: cn("transition-transform", !open && "-rotate-90") }),
3077
3091
  "Selected (",
3078
3092
  count,
3079
3093
  ")"
3080
3094
  ]
3081
3095
  }
3082
3096
  ),
3083
- open && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "flex flex-col gap-0.5", children })
3097
+ open && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "flex flex-col gap-0.5", children })
3084
3098
  ] });
3085
3099
  }
3086
3100
 
3087
3101
  // src/SelectionPicker.tsx
3088
3102
  var import_react15 = require("react");
3089
3103
  var import_react_dom4 = require("react-dom");
3090
- var import_lucide_react15 = require("lucide-react");
3104
+ var import_lucide_react16 = require("lucide-react");
3091
3105
 
3092
3106
  // src/Tabs.tsx
3093
3107
  var import_react14 = require("react");
3094
- var import_jsx_runtime29 = require("react/jsx-runtime");
3108
+ var import_jsx_runtime30 = require("react/jsx-runtime");
3095
3109
  function arrowKeys(e, row) {
3096
3110
  if (!row || !["ArrowLeft", "ArrowRight", "Home", "End"].includes(e.key)) return;
3097
3111
  const items = Array.from(row.querySelectorAll("button:not([disabled])"));
@@ -3103,7 +3117,7 @@ function arrowKeys(e, row) {
3103
3117
  }
3104
3118
  function Tabs({ items, value, onChange, idPrefix = "tabs", className, testIdPrefix, ...rest }) {
3105
3119
  const row = (0, import_react14.useRef)(null);
3106
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3120
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3107
3121
  "div",
3108
3122
  {
3109
3123
  ref: row,
@@ -3114,7 +3128,7 @@ function Tabs({ items, value, onChange, idPrefix = "tabs", className, testIdPref
3114
3128
  className: cn("flex gap-6 border-b border-border-default", className),
3115
3129
  children: items.map((item) => {
3116
3130
  const on = item.value === value;
3117
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
3131
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3118
3132
  "button",
3119
3133
  {
3120
3134
  type: "button",
@@ -3132,7 +3146,7 @@ function Tabs({ items, value, onChange, idPrefix = "tabs", className, testIdPref
3132
3146
  ),
3133
3147
  children: [
3134
3148
  item.label,
3135
- item.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-xs text-text-tertiary", children: item.count })
3149
+ item.count !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-xs text-text-tertiary", children: item.count })
3136
3150
  ]
3137
3151
  },
3138
3152
  item.value
@@ -3151,7 +3165,7 @@ function SegmentedControl({
3151
3165
  ...rest
3152
3166
  }) {
3153
3167
  const row = (0, import_react14.useRef)(null);
3154
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3168
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3155
3169
  "div",
3156
3170
  {
3157
3171
  ref: row,
@@ -3162,7 +3176,7 @@ function SegmentedControl({
3162
3176
  className: cn("inline-flex w-fit items-stretch gap-0.5 rounded-full bg-subtle p-1", size === "md" ? "h-10" : "h-8", className),
3163
3177
  children: options.map((o) => {
3164
3178
  const on = o.value === value;
3165
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3179
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3166
3180
  "button",
3167
3181
  {
3168
3182
  type: "button",
@@ -3186,7 +3200,7 @@ function SegmentedControl({
3186
3200
  }
3187
3201
 
3188
3202
  // src/SelectionPicker.tsx
3189
- var import_jsx_runtime30 = require("react/jsx-runtime");
3203
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3190
3204
  function slug5(value) {
3191
3205
  return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
3192
3206
  }
@@ -3279,12 +3293,12 @@ function SelectionPicker({
3279
3293
  }
3280
3294
  };
3281
3295
  const rowGridCols = showInfoColumn ? "grid-cols-[36px_1fr_44px]" : "grid-cols-[36px_1fr]";
3282
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: cn("flex flex-col gap-4", className), "data-testid": testIdPrefix, children: [
3283
- helper && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
3284
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-dense text-text-secondary", children: helper }),
3285
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("hr", { className: "-mx-5 -mt-2 border-border-default sm:-mx-6" })
3296
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: cn("flex flex-col gap-4", className), "data-testid": testIdPrefix, children: [
3297
+ helper && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
3298
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-dense text-text-secondary", children: helper }),
3299
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("hr", { className: "-mx-5 -mt-2 border-border-default sm:-mx-6" })
3286
3300
  ] }),
3287
- hasAccountLists && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3301
+ hasAccountLists && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3288
3302
  SegmentedControl,
3289
3303
  {
3290
3304
  "aria-label": "Add from",
@@ -3297,11 +3311,11 @@ function SelectionPicker({
3297
3311
  ]
3298
3312
  }
3299
3313
  ),
3300
- source === "search" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex min-w-0 flex-col gap-3", children: [
3301
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
3302
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex h-8 min-w-50 flex-1 items-center gap-2 rounded-control border border-border-strong bg-input px-3 focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-border-focus", children: [
3303
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Search, { size: 15, className: "text-text-secondary", "aria-hidden": "true" }),
3304
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3314
+ source === "search" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex min-w-0 flex-col gap-3", children: [
3315
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-wrap items-center gap-2", children: [
3316
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex h-8 min-w-50 flex-1 items-center gap-2 rounded-control border border-border-strong bg-input px-3 focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-border-focus", children: [
3317
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Search, { size: 15, className: "text-text-secondary", "aria-hidden": "true" }),
3318
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3305
3319
  "input",
3306
3320
  {
3307
3321
  value: query,
@@ -3317,7 +3331,7 @@ function SelectionPicker({
3317
3331
  }
3318
3332
  )
3319
3333
  ] }),
3320
- filters.map((f) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3334
+ filters.map((f) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3321
3335
  FilterDropdown,
3322
3336
  {
3323
3337
  filter: f,
@@ -3329,14 +3343,14 @@ function SelectionPicker({
3329
3343
  )),
3330
3344
  toolbarExtra
3331
3345
  ] }),
3332
- !hasSearched ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col items-center gap-3 rounded-card border border-dashed border-border-default py-10 text-center", children: [
3333
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-subtle", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Search, { size: 20, className: "text-text-tertiary", "aria-hidden": "true" }) }),
3334
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-1", children: [
3335
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-sm font-semibold text-text-primary", children: "Search to get started" }),
3336
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-dense text-text-tertiary", children: "Use the search or filters above to find and add options." })
3346
+ !hasSearched ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col items-center gap-3 rounded-card border border-dashed border-border-default py-10 text-center", children: [
3347
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-subtle", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Search, { size: 20, className: "text-text-tertiary", "aria-hidden": "true" }) }),
3348
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col gap-1", children: [
3349
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-sm font-semibold text-text-primary", children: "Search to get started" }),
3350
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-dense text-text-tertiary", children: "Use the search or filters above to find and add options." })
3337
3351
  ] })
3338
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "overflow-hidden rounded-control border border-border-default", children: [
3339
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3352
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "overflow-hidden rounded-control border border-border-default", children: [
3353
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3340
3354
  "div",
3341
3355
  {
3342
3356
  className: cn(
@@ -3344,7 +3358,7 @@ function SelectionPicker({
3344
3358
  rowGridCols
3345
3359
  ),
3346
3360
  children: [
3347
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3361
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3348
3362
  CheckBox,
3349
3363
  {
3350
3364
  checked: allSelected,
@@ -3355,18 +3369,18 @@ function SelectionPicker({
3355
3369
  testIdPrefix: testIdPrefix && `${testIdPrefix}-select-all`
3356
3370
  }
3357
3371
  ),
3358
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: cn("grid gap-2", gridForColumns(columns)), children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: c.className, children: c.header }, c.key)) }),
3359
- showInfoColumn && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-right", children: "Info" })
3372
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("grid gap-2", gridForColumns(columns)), children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: c.className, children: c.header }, c.key)) }),
3373
+ showInfoColumn && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-right", children: "Info" })
3360
3374
  ]
3361
3375
  }
3362
3376
  ),
3363
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "max-h-90 overflow-y-auto", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex items-center justify-center py-6", role: "status", "aria-label": "Loading", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Loader2, { size: 18, className: "animate-spin text-text-tertiary", "aria-hidden": "true" }) }) : error ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "px-3 py-8 text-center text-dense text-text-tertiary", children: errorMessage }) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "px-3 py-8 text-center text-dense text-text-tertiary", children: "No matches. Try a different search or filter." }) : rows.map((row) => {
3377
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "max-h-90 overflow-y-auto", children: loading ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center justify-center py-6", role: "status", "aria-label": "Loading", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Loader2, { size: 18, className: "animate-spin text-text-tertiary", "aria-hidden": "true" }) }) : error ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "px-3 py-8 text-center text-dense text-text-tertiary", children: errorMessage }) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "px-3 py-8 text-center text-dense text-text-tertiary", children: "No matches. Try a different search or filter." }) : rows.map((row) => {
3364
3378
  const isSel = selectedIds.has(row.id);
3365
3379
  const isLocked = lockedIds?.has(row.id) ?? false;
3366
3380
  const kids = getChildren?.(row);
3367
3381
  const isOpen = expanded.has(row.id);
3368
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "border-t border-border-default/60 first:border-t-0", children: [
3369
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3382
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "border-t border-border-default/60 first:border-t-0", children: [
3383
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3370
3384
  "div",
3371
3385
  {
3372
3386
  onClick: isLocked ? void 0 : () => toggleRow(row),
@@ -3379,7 +3393,7 @@ function SelectionPicker({
3379
3393
  !isLocked && isSel && "opacity-70"
3380
3394
  ),
3381
3395
  children: [
3382
- isLocked ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3396
+ isLocked ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3383
3397
  CheckBox,
3384
3398
  {
3385
3399
  checked: isSel,
@@ -3388,8 +3402,8 @@ function SelectionPicker({
3388
3402
  testIdPrefix: testIdPrefix && `${testIdPrefix}-row-${slug5(row.id)}`
3389
3403
  }
3390
3404
  ),
3391
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: cn("grid gap-2 text-dense text-text-primary", gridForColumns(columns)), children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: cn("truncate", c.className), children: c.render(row) }, c.key)) }),
3392
- showInfoColumn && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex items-center justify-end", children: kids && kids.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3405
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("grid gap-2 text-dense text-text-primary", gridForColumns(columns)), children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: cn("truncate", c.className), children: c.render(row) }, c.key)) }),
3406
+ showInfoColumn && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex items-center justify-end", children: kids && kids.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3393
3407
  "button",
3394
3408
  {
3395
3409
  type: "button",
@@ -3403,28 +3417,28 @@ function SelectionPicker({
3403
3417
  });
3404
3418
  },
3405
3419
  className: "flex h-7 w-7 items-center justify-center rounded-control text-text-secondary hover:bg-canvas hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
3406
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.ChevronRight, { size: 15, className: cn("transition-transform", isOpen && "rotate-90") })
3420
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.ChevronRight, { size: 15, className: cn("transition-transform", isOpen && "rotate-90") })
3407
3421
  }
3408
- ) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3422
+ ) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3409
3423
  "span",
3410
3424
  {
3411
3425
  className: "flex h-7 w-7 items-center justify-center text-text-tertiary",
3412
3426
  title: "No additional details",
3413
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Info, { size: 14 })
3427
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Info, { size: 14 })
3414
3428
  }
3415
3429
  ) })
3416
3430
  ]
3417
3431
  }
3418
3432
  ),
3419
- isOpen && kids && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "bg-canvas/60 pb-1.5 pl-10 pr-3", children: kids.map((kid) => {
3433
+ isOpen && kids && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "bg-canvas/60 pb-1.5 pl-10 pr-3", children: kids.map((kid) => {
3420
3434
  const kidSel = selectedIds.has(kid.id);
3421
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3435
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3422
3436
  "div",
3423
3437
  {
3424
3438
  className: "flex items-center justify-between gap-2 border-t border-border-default/40 py-2 first:border-t-0",
3425
3439
  children: [
3426
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "truncate text-dense text-text-secondary", children: kid.name }),
3427
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3440
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "truncate text-dense text-text-secondary", children: kid.name }),
3441
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3428
3442
  "button",
3429
3443
  {
3430
3444
  type: "button",
@@ -3435,7 +3449,7 @@ function SelectionPicker({
3435
3449
  kidSel ? "text-text-tertiary" : "text-text-link hover:bg-subtle"
3436
3450
  ),
3437
3451
  children: [
3438
- kidSel ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Check, { size: 13 }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Plus, { size: 13 }),
3452
+ kidSel ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Check, { size: 13 }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Plus, { size: 13 }),
3439
3453
  kidSel ? "Added" : "Add"
3440
3454
  ]
3441
3455
  }
@@ -3447,7 +3461,7 @@ function SelectionPicker({
3447
3461
  }) })
3448
3462
  ] }, row.id);
3449
3463
  }) }),
3450
- !loading && !error && hasMore && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3464
+ !loading && !error && hasMore && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3451
3465
  "button",
3452
3466
  {
3453
3467
  type: "button",
@@ -3456,19 +3470,19 @@ function SelectionPicker({
3456
3470
  "data-testid": testIdPrefix && `${testIdPrefix}-load-more`,
3457
3471
  className: "flex w-full items-center justify-center gap-2 border-t border-border-default px-2 py-1.5 text-dense text-brand-primaryAction transition-colors hover:bg-subtle disabled:opacity-50 focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
3458
3472
  children: [
3459
- loadingMore ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Loader2, { size: 13, className: "animate-spin", "aria-hidden": "true" }) : null,
3473
+ loadingMore ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Loader2, { size: 13, className: "animate-spin", "aria-hidden": "true" }) : null,
3460
3474
  loadingMore ? "Loading\u2026" : "Load more"
3461
3475
  ]
3462
3476
  }
3463
3477
  )
3464
3478
  ] })
3465
3479
  ] }),
3466
- source === "lists" && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex min-w-0 flex-col gap-3", children: [
3467
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-dense text-text-secondary", children: "Select an account list to add all of its accounts at once. Your workspace stays in sync as the list is updated." }),
3468
- accountLists && accountLists.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_jsx_runtime30.Fragment, { children: [
3469
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(ScrollFade, { className: "flex max-h-99 flex-col gap-2 overflow-y-auto pr-0.5", children: accountLists.map((list) => {
3480
+ source === "lists" && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex min-w-0 flex-col gap-3", children: [
3481
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-dense text-text-secondary", children: "Select an account list to add all of its accounts at once. Your workspace stays in sync as the list is updated." }),
3482
+ accountLists && accountLists.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_jsx_runtime31.Fragment, { children: [
3483
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(ScrollFade, { className: "flex max-h-99 flex-col gap-2 overflow-y-auto pr-0.5", children: accountLists.map((list) => {
3470
3484
  const on = (selectedListIds ?? []).includes(list.id);
3471
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3485
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3472
3486
  "button",
3473
3487
  {
3474
3488
  type: "button",
@@ -3480,19 +3494,19 @@ function SelectionPicker({
3480
3494
  on ? "border-brand-primaryAction bg-brand-primarySoft" : "border-border-default bg-surface hover:bg-subtle"
3481
3495
  ),
3482
3496
  children: [
3483
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3497
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3484
3498
  "span",
3485
3499
  {
3486
3500
  className: cn(
3487
3501
  "flex h-5 w-5 shrink-0 items-center justify-center rounded-full",
3488
3502
  on ? "text-brand-primaryAction" : "text-text-secondary"
3489
3503
  ),
3490
- children: on ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Check, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Plus, { size: 16 })
3504
+ children: on ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Check, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Plus, { size: 16 })
3491
3505
  }
3492
3506
  ),
3493
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "min-w-0 flex-1", children: [
3494
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "flex min-w-0 items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "truncate text-sm font-medium text-text-primary", children: list.name }) }),
3495
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "block truncate text-xs text-text-secondary", children: [
3507
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "min-w-0 flex-1", children: [
3508
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "flex min-w-0 items-center gap-2", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "truncate text-sm font-medium text-text-primary", children: list.name }) }),
3509
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "block truncate text-xs text-text-secondary", children: [
3496
3510
  list.count,
3497
3511
  " accounts \xB7 ",
3498
3512
  list.entityTypes.join(", "),
@@ -3500,13 +3514,13 @@ function SelectionPicker({
3500
3514
  formatListDate(list.updatedAt)
3501
3515
  ] })
3502
3516
  ] }),
3503
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: cn("shrink-0 text-xs font-medium", on ? "text-brand-primaryAction" : "text-text-secondary"), children: on ? "Added" : "Add" })
3517
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: cn("shrink-0 text-xs font-medium", on ? "text-brand-primaryAction" : "text-text-secondary"), children: on ? "Added" : "Add" })
3504
3518
  ]
3505
3519
  },
3506
3520
  list.id
3507
3521
  );
3508
3522
  }) }),
3509
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3523
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3510
3524
  "p",
3511
3525
  {
3512
3526
  className: "border-t border-border-default pt-2 text-right text-xs font-medium text-text-tertiary",
@@ -3518,11 +3532,11 @@ function SelectionPicker({
3518
3532
  ]
3519
3533
  }
3520
3534
  )
3521
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col items-center gap-3 rounded-card border border-dashed border-border-default py-10 text-center", children: [
3522
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-subtle", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.List, { size: 20, className: "text-text-tertiary", "aria-hidden": "true" }) }),
3523
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "flex flex-col gap-1", children: [
3524
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-sm font-semibold text-text-primary", children: "No account lists yet" }),
3525
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-dense text-text-tertiary", children: "Account lists set up for you will appear here." })
3535
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col items-center gap-3 rounded-card border border-dashed border-border-default py-10 text-center", children: [
3536
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-subtle", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.List, { size: 20, className: "text-text-tertiary", "aria-hidden": "true" }) }),
3537
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col gap-1", children: [
3538
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-sm font-semibold text-text-primary", children: "No account lists yet" }),
3539
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-dense text-text-tertiary", children: "Account lists set up for you will appear here." })
3526
3540
  ] })
3527
3541
  ] })
3528
3542
  ] })
@@ -3554,7 +3568,7 @@ function ScrollFade({ className, children }) {
3554
3568
  [sync]
3555
3569
  );
3556
3570
  const mask = edges.top || edges.bottom ? `linear-gradient(to bottom, transparent 0, #000 ${edges.top ? EDGE_FADE : 0}px, #000 calc(100% - ${edges.bottom ? EDGE_FADE : 0}px), transparent 100%)` : void 0;
3557
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { ref: attach, onScroll: sync, className, style: { maskImage: mask, WebkitMaskImage: mask }, children });
3571
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { ref: attach, onScroll: sync, className, style: { maskImage: mask, WebkitMaskImage: mask }, children });
3558
3572
  }
3559
3573
  function formatListDate(iso) {
3560
3574
  try {
@@ -3604,8 +3618,8 @@ function FilterDropdown({
3604
3618
  const count = active.size;
3605
3619
  const label = count === 0 ? filter.label : count === 1 ? [...active][0] : "Multiple";
3606
3620
  const filterSlug = slug5(filter.label);
3607
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "relative", children: [
3608
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3621
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "relative", children: [
3622
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3609
3623
  "button",
3610
3624
  {
3611
3625
  ref: btnRef,
@@ -3616,12 +3630,12 @@ function FilterDropdown({
3616
3630
  className: "inline-flex h-8 items-center gap-1.5 whitespace-nowrap rounded-control border border-border-strong bg-input px-3 text-dense font-medium text-text-secondary transition-colors hover:bg-subtle focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
3617
3631
  children: [
3618
3632
  label,
3619
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.ChevronDown, { size: 13, "aria-hidden": "true", className: cn("transition-transform", open && "rotate-180") })
3633
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.ChevronDown, { size: 13, "aria-hidden": "true", className: cn("transition-transform", open && "rotate-180") })
3620
3634
  ]
3621
3635
  }
3622
3636
  ),
3623
3637
  open && pos && (0, import_react_dom4.createPortal)(
3624
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3638
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3625
3639
  "div",
3626
3640
  {
3627
3641
  ref: menuRef,
@@ -3630,9 +3644,9 @@ function FilterDropdown({
3630
3644
  style: { top: pos.top, left: pos.left },
3631
3645
  className: "fixed z-dropdown min-w-55 rounded-card border border-border-default bg-surface p-2 shadow-overlay",
3632
3646
  children: [
3633
- searchable && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "mb-1.5 flex h-8 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5", children: [
3634
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react15.Search, { size: 14, className: "shrink-0 text-text-secondary", "aria-hidden": "true" }),
3635
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3647
+ searchable && /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "mb-1.5 flex h-8 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5", children: [
3648
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_lucide_react16.Search, { size: 14, className: "shrink-0 text-text-secondary", "aria-hidden": "true" }),
3649
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3636
3650
  "input",
3637
3651
  {
3638
3652
  autoFocus: true,
@@ -3643,14 +3657,14 @@ function FilterDropdown({
3643
3657
  }
3644
3658
  )
3645
3659
  ] }),
3646
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("div", { className: cn("flex flex-col gap-0.5", searchable && "max-h-60 overflow-y-auto"), children: shownOptions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "px-2 py-3 text-center text-xs text-text-secondary", children: "No matches." }) : shownOptions.map((opt) => {
3660
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("flex flex-col gap-0.5", searchable && "max-h-60 overflow-y-auto"), children: shownOptions.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "px-2 py-3 text-center text-xs text-text-secondary", children: "No matches." }) : shownOptions.map((opt) => {
3647
3661
  const on = active.has(opt);
3648
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
3662
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(
3649
3663
  "label",
3650
3664
  {
3651
3665
  className: "flex cursor-pointer items-center gap-2 rounded-control px-2 py-1.5 text-dense text-text-primary hover:bg-subtle",
3652
3666
  children: [
3653
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
3667
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3654
3668
  CheckBox,
3655
3669
  {
3656
3670
  checked: on,
@@ -3681,7 +3695,7 @@ function gridForColumns(columns) {
3681
3695
 
3682
3696
  // src/PublisherBreakdownList.tsx
3683
3697
  var import_react16 = require("react");
3684
- var import_jsx_runtime31 = require("react/jsx-runtime");
3698
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3685
3699
  var fmtM = (v) => v >= 100 ? `$${Math.round(v)}M` : `$${v.toFixed(1)}M`;
3686
3700
  function priorYearAmt(spendN, yoy) {
3687
3701
  if (yoy === "NEW" || yoy <= -100) return null;
@@ -3693,7 +3707,7 @@ function initials(name) {
3693
3707
  return name.replace(/[^a-zA-Z0-9]/g, "").slice(0, 2).toUpperCase();
3694
3708
  }
3695
3709
  function Monogram({ name, size = 28 }) {
3696
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3710
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3697
3711
  "span",
3698
3712
  {
3699
3713
  "aria-hidden": "true",
@@ -3704,12 +3718,12 @@ function Monogram({ name, size = 28 }) {
3704
3718
  );
3705
3719
  }
3706
3720
  function BreakdownTag({ children }) {
3707
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "inline-flex items-center whitespace-nowrap rounded-full bg-subtle px-2 py-0.5 text-micro font-medium text-text-secondary", children });
3721
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "inline-flex items-center whitespace-nowrap rounded-full bg-subtle px-2 py-0.5 text-micro font-medium text-text-secondary", children });
3708
3722
  }
3709
3723
  function DelayedTip({ label, children }) {
3710
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "group/dt relative inline-flex", tabIndex: 0, "aria-label": label, children: [
3724
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "group/dt relative inline-flex", tabIndex: 0, "aria-label": label, children: [
3711
3725
  children,
3712
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3726
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3713
3727
  "span",
3714
3728
  {
3715
3729
  role: "tooltip",
@@ -3723,22 +3737,22 @@ var COL_CURRENT = 76;
3723
3737
  var COL_PREVIOUS = 76;
3724
3738
  var COL_YOY = 44;
3725
3739
  function MetricListHeader({ className }) {
3726
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: cn("flex items-baseline gap-2 pb-2", className), children: [
3727
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "flex-1" }),
3728
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3729
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_CURRENT }, children: "Current" }),
3730
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DelayedTip, { label: "Spend during the same time period one year ago.", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_PREVIOUS }, children: "Previous" }) }),
3731
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(DelayedTip, { label: "Percent change from this time period vs. the same time one year ago.", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_YOY }, children: "YoY" }) })
3740
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("flex items-baseline gap-2 pb-2", className), children: [
3741
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "flex-1" }),
3742
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3743
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_CURRENT }, children: "Current" }),
3744
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DelayedTip, { label: "Spend during the same time period one year ago.", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_PREVIOUS }, children: "Previous" }) }),
3745
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(DelayedTip, { label: "Percent change from this time period vs. the same time one year ago.", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_YOY }, children: "YoY" }) })
3732
3746
  ] })
3733
3747
  ] });
3734
3748
  }
3735
3749
  function MetricCells({ spendN, yoy }) {
3736
3750
  const prior = priorYearAmt(spendN, yoy);
3737
3751
  const up = yoy !== "NEW" && yoy >= 0;
3738
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3739
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-right text-xs font-bold tabular-nums text-text-primary", style: { width: COL_CURRENT }, children: fmtM(spendN) }),
3740
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-right text-xs font-normal tabular-nums text-text-primary", style: { width: COL_PREVIOUS }, children: prior ?? "\u2014" }),
3741
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-badge font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { className: cn("text-right text-xs font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
3752
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3753
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-right text-xs font-bold tabular-nums text-text-primary", style: { width: COL_CURRENT }, children: fmtM(spendN) }),
3754
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-right text-xs font-normal tabular-nums text-text-primary", style: { width: COL_PREVIOUS }, children: prior ?? "\u2014" }),
3755
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-badge font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { className: cn("text-right text-xs font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
3742
3756
  up ? "+" : "\u2212",
3743
3757
  Math.abs(yoy),
3744
3758
  "%"
@@ -3757,35 +3771,35 @@ function PublisherBreakdownList({
3757
3771
  const [showAll, setShowAll] = (0, import_react16.useState)(false);
3758
3772
  const visible = showAll ? rows : rows.slice(0, defaultVisibleCount);
3759
3773
  const rowPad = padded ? "px-5" : "";
3760
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: cn("flex flex-col", className), "data-testid": testIdPrefix, children: [
3761
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-col", children: [
3762
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MetricListHeader, { className: rowPad }),
3763
- visible.map((p) => /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: cn("flex items-center justify-between gap-3 border-t border-border-default/60 py-2.5 first:border-t-0", rowPad), children: [
3764
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex min-w-0 items-center gap-2.5", children: [
3765
- renderLogo ? renderLogo(p) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(Monogram, { name: p.brand, size: 28 }),
3766
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "min-w-0", children: [
3767
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "flex flex-wrap items-center gap-1.5", children: [
3768
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-sm font-semibold text-text-primary", children: p.brand }),
3769
- p.tags.map((t) => /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(BreakdownTag, { children: t }, t))
3774
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("flex flex-col", className), "data-testid": testIdPrefix, children: [
3775
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-col", children: [
3776
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetricListHeader, { className: rowPad }),
3777
+ visible.map((p) => /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("flex items-center justify-between gap-3 border-t border-border-default/60 py-2.5 first:border-t-0", rowPad), children: [
3778
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex min-w-0 items-center gap-2.5", children: [
3779
+ renderLogo ? renderLogo(p) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(Monogram, { name: p.brand, size: 28 }),
3780
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "min-w-0", children: [
3781
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "flex flex-wrap items-center gap-1.5", children: [
3782
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-sm font-semibold text-text-primary", children: p.brand }),
3783
+ p.tags.map((t) => /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(BreakdownTag, { children: t }, t))
3770
3784
  ] }),
3771
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: "truncate text-micro text-text-tertiary", children: p.owner })
3785
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: "truncate text-micro text-text-tertiary", children: p.owner })
3772
3786
  ] })
3773
3787
  ] }),
3774
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(MetricCells, { spendN: p.spendN, yoy: p.yoy })
3788
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(MetricCells, { spendN: p.spendN, yoy: p.yoy })
3775
3789
  ] }, p.brand))
3776
3790
  ] }),
3777
- rows.length > defaultVisibleCount && (viewAllHref ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("div", { className: cn("border-t border-border-default py-3", rowPad), children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("a", { href: viewAllHref, className: "text-xs font-semibold text-text-link hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: "See all publishers" }) }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: cn("flex items-center gap-2 border-t border-border-default py-3 text-xs text-text-tertiary", rowPad), children: [
3778
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("span", { children: [
3791
+ rows.length > defaultVisibleCount && (viewAllHref ? /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("div", { className: cn("border-t border-border-default py-3", rowPad), children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("a", { href: viewAllHref, className: "text-xs font-semibold text-text-link hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: "See all publishers" }) }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: cn("flex items-center gap-2 border-t border-border-default py-3 text-xs text-text-tertiary", rowPad), children: [
3792
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("span", { children: [
3779
3793
  "Showing ",
3780
3794
  visible.length,
3781
3795
  " of ",
3782
3796
  rows.length
3783
3797
  ] }),
3784
- !showAll ? /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("button", { type: "button", onClick: () => setShowAll(true), className: "font-semibold text-text-link hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: [
3798
+ !showAll ? /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("button", { type: "button", onClick: () => setShowAll(true), className: "font-semibold text-text-link hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: [
3785
3799
  "See all (",
3786
3800
  rows.length - defaultVisibleCount,
3787
3801
  " more)"
3788
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("button", { type: "button", onClick: () => setShowAll(false), className: "font-semibold text-text-link hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: "Show less" })
3802
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("button", { type: "button", onClick: () => setShowAll(false), className: "font-semibold text-text-link hover:underline focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: "Show less" })
3789
3803
  ] }))
3790
3804
  ] });
3791
3805
  }
@@ -3794,8 +3808,8 @@ function PublisherBreakdownList({
3794
3808
  var import_react17 = require("react");
3795
3809
  var import_react_slot = require("@radix-ui/react-slot");
3796
3810
  var import_class_variance_authority = require("class-variance-authority");
3797
- var import_lucide_react16 = require("lucide-react");
3798
- var import_jsx_runtime32 = require("react/jsx-runtime");
3811
+ var import_lucide_react17 = require("lucide-react");
3812
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3799
3813
  var buttonVariants = (0, import_class_variance_authority.cva)(
3800
3814
  "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-control transition-all duration-(--mr-motion-duration-interactive) ease-interactive disabled:pointer-events-none disabled:opacity-40 focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
3801
3815
  {
@@ -3866,10 +3880,10 @@ var Button = (0, import_react17.forwardRef)(
3866
3880
  ...props
3867
3881
  };
3868
3882
  if (asChild) {
3869
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_slot.Slot, { ref, ...shared, children });
3883
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_slot.Slot, { ref, ...shared, children });
3870
3884
  }
3871
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("button", { ref, ...shared, children: [
3872
- loading && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_lucide_react16.Loader2, { className: "size-4 shrink-0 animate-spin", "aria-hidden": "true" }),
3885
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("button", { ref, ...shared, children: [
3886
+ loading && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_lucide_react17.Loader2, { className: "size-4 shrink-0 animate-spin", "aria-hidden": "true" }),
3873
3887
  children
3874
3888
  ] });
3875
3889
  }
@@ -3877,7 +3891,7 @@ var Button = (0, import_react17.forwardRef)(
3877
3891
  Button.displayName = "Button";
3878
3892
 
3879
3893
  // src/FilterDropdownFooter.tsx
3880
- var import_jsx_runtime33 = require("react/jsx-runtime");
3894
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3881
3895
  function FilterDropdownFooter({
3882
3896
  onClear,
3883
3897
  onApply,
@@ -3886,7 +3900,7 @@ function FilterDropdownFooter({
3886
3900
  className,
3887
3901
  testIdPrefix
3888
3902
  }) {
3889
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
3903
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
3890
3904
  "div",
3891
3905
  {
3892
3906
  className: cn(
@@ -3896,8 +3910,8 @@ function FilterDropdownFooter({
3896
3910
  ),
3897
3911
  "data-testid": testIdPrefix,
3898
3912
  children: [
3899
- onClear && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onClear, children: clearLabel }),
3900
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(Button, { type: "button", variant: "primary", size: "sm", onClick: onApply, children: applyLabel })
3913
+ onClear && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { type: "button", variant: "ghost", size: "sm", onClick: onClear, children: clearLabel }),
3914
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { type: "button", variant: "primary", size: "sm", onClick: onApply, children: applyLabel })
3901
3915
  ]
3902
3916
  }
3903
3917
  );
@@ -3906,7 +3920,7 @@ function FilterDropdownFooter({
3906
3920
  // src/NameListModal.tsx
3907
3921
  var import_react18 = require("react");
3908
3922
  var import_react_dom5 = require("react-dom");
3909
- var import_jsx_runtime34 = require("react/jsx-runtime");
3923
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3910
3924
  function NameListModal({
3911
3925
  title,
3912
3926
  initialName,
@@ -3960,12 +3974,12 @@ function NameListModal({
3960
3974
  // bg-scrim, not a literal: design-tokens gained a scrim token in 2.5.0.
3961
3975
  // No in-data-[theme=dark] override needed any more -- the token redefines
3962
3976
  // itself under that attribute in dark.css, so one class covers both themes.
3963
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3977
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3964
3978
  "div",
3965
3979
  {
3966
3980
  className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim px-4",
3967
3981
  onMouseDown: (e) => e.target === e.currentTarget && onCancel(),
3968
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
3982
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3969
3983
  "div",
3970
3984
  {
3971
3985
  ref: dialogRef,
@@ -3976,10 +3990,10 @@ function NameListModal({
3976
3990
  "data-testid": testIdPrefix,
3977
3991
  className: cn("w-full max-w-110 rounded-card border border-border-default bg-surface p-5 shadow-overlay", className),
3978
3992
  children: [
3979
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
3980
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "mt-4 flex flex-col gap-1.5", children: [
3981
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("label", { htmlFor: fieldId, className: "text-xs font-medium text-text-secondary", children: fieldLabel }),
3982
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3993
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
3994
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mt-4 flex flex-col gap-1.5", children: [
3995
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("label", { htmlFor: fieldId, className: "text-xs font-medium text-text-secondary", children: fieldLabel }),
3996
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3983
3997
  "input",
3984
3998
  {
3985
3999
  id: fieldId,
@@ -3991,13 +4005,13 @@ function NameListModal({
3991
4005
  }
3992
4006
  )
3993
4007
  ] }),
3994
- options && options.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "mt-4 flex flex-col gap-2.5", children: options.map((o) => /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("label", { className: "flex cursor-pointer items-center gap-2.5 text-dense text-text-primary", children: [
3995
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(CheckBox, { checked: !!checked[o.key], onChange: () => toggle(o.key), ariaLabel: o.label }),
4008
+ options && options.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "mt-4 flex flex-col gap-2.5", children: options.map((o) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("label", { className: "flex cursor-pointer items-center gap-2.5 text-dense text-text-primary", children: [
4009
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(CheckBox, { checked: !!checked[o.key], onChange: () => toggle(o.key), ariaLabel: o.label }),
3996
4010
  o.label
3997
4011
  ] }, o.key)) }),
3998
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "mt-5 flex items-center justify-end gap-2", children: [
3999
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { variant: "secondary", onClick: onCancel, children: "Cancel" }),
4000
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Button, { disabled: !name.trim(), onClick: () => onSubmit(name.trim(), checked), children: submitLabel })
4012
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "mt-5 flex items-center justify-end gap-2", children: [
4013
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Button, { variant: "secondary", onClick: onCancel, children: "Cancel" }),
4014
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Button, { disabled: !name.trim(), onClick: () => onSubmit(name.trim(), checked), children: submitLabel })
4001
4015
  ] })
4002
4016
  ]
4003
4017
  }
@@ -4009,12 +4023,12 @@ function NameListModal({
4009
4023
  }
4010
4024
 
4011
4025
  // src/FilterChipBar.tsx
4012
- var import_lucide_react17 = require("lucide-react");
4013
- var import_jsx_runtime35 = require("react/jsx-runtime");
4026
+ var import_lucide_react18 = require("lucide-react");
4027
+ var import_jsx_runtime36 = require("react/jsx-runtime");
4014
4028
  function FilterChipBar({ chips, onRemove, onClearAll, parkedKeys, className, testIdPrefix }) {
4015
4029
  if (chips.length === 0) return null;
4016
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: cn("flex flex-wrap items-center gap-1.5 border-t border-border-default pt-2.5", className), "data-testid": testIdPrefix, children: [
4017
- chips.map((c) => /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4030
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: cn("flex flex-wrap items-center gap-1.5 border-t border-border-default pt-2.5", className), "data-testid": testIdPrefix, children: [
4031
+ chips.map((c) => /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4018
4032
  Chip,
4019
4033
  {
4020
4034
  label: c.label,
@@ -4024,7 +4038,7 @@ function FilterChipBar({ chips, onRemove, onClearAll, parkedKeys, className, tes
4024
4038
  },
4025
4039
  c.key
4026
4040
  )),
4027
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4041
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4028
4042
  "button",
4029
4043
  {
4030
4044
  type: "button",
@@ -4041,8 +4055,8 @@ function Chip({
4041
4055
  parked,
4042
4056
  onRemove
4043
4057
  }) {
4044
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("span", { className: "group relative inline-flex", children: [
4045
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
4058
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("span", { className: "group relative inline-flex", children: [
4059
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
4046
4060
  "span",
4047
4061
  {
4048
4062
  className: cn(
@@ -4054,22 +4068,22 @@ function Chip({
4054
4068
  ) : "bg-subtle text-text-secondary ring-transparent group-hover:bg-border-default group-hover:text-text-primary group-hover:ring-border-interactive"
4055
4069
  ),
4056
4070
  children: [
4057
- parked && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react17.CircleSlash, { size: 11, "aria-hidden": "true", className: "shrink-0 text-text-tertiary" }),
4071
+ parked && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react18.CircleSlash, { size: 11, "aria-hidden": "true", className: "shrink-0 text-text-tertiary" }),
4058
4072
  label,
4059
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4073
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4060
4074
  "button",
4061
4075
  {
4062
4076
  type: "button",
4063
4077
  onClick: onRemove,
4064
4078
  "aria-label": `Remove ${groupLabel}: ${label}`,
4065
4079
  className: "rounded-full text-text-tertiary transition-colors hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
4066
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_lucide_react17.X, { size: 12 })
4080
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react18.X, { size: 12 })
4067
4081
  }
4068
4082
  )
4069
4083
  ]
4070
4084
  }
4071
4085
  ),
4072
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
4086
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4073
4087
  "span",
4074
4088
  {
4075
4089
  role: "tooltip",
@@ -4082,8 +4096,8 @@ function Chip({
4082
4096
 
4083
4097
  // src/SortButton.tsx
4084
4098
  var import_react19 = require("react");
4085
- var import_lucide_react18 = require("lucide-react");
4086
- var import_jsx_runtime36 = require("react/jsx-runtime");
4099
+ var import_lucide_react19 = require("lucide-react");
4100
+ var import_jsx_runtime37 = require("react/jsx-runtime");
4087
4101
  var ALIGN = {
4088
4102
  left: "justify-start text-left",
4089
4103
  center: "justify-center text-center",
@@ -4101,9 +4115,9 @@ var SortButton = (0, import_react19.forwardRef)(
4101
4115
  className,
4102
4116
  testIdPrefix
4103
4117
  }, ref) {
4104
- if (!sortable) return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: cn("inline-flex", ALIGN[align], className), children: label });
4118
+ if (!sortable) return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: cn("inline-flex", ALIGN[align], className), children: label });
4105
4119
  const active = !disabled && sort.key === sortKey;
4106
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
4120
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
4107
4121
  "button",
4108
4122
  {
4109
4123
  ref,
@@ -4134,8 +4148,8 @@ var SortButton = (0, import_react19.forwardRef)(
4134
4148
  ),
4135
4149
  children: [
4136
4150
  label,
4137
- !disabled && (active ? sort.dir === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react18.ArrowUp, { size: 12, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_lucide_react18.ArrowDown, { size: 12, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
4138
- import_lucide_react18.ArrowUpDown,
4151
+ !disabled && (active ? sort.dir === "asc" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react19.ArrowUp, { size: 12, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react19.ArrowDown, { size: 12, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4152
+ import_lucide_react19.ArrowUpDown,
4139
4153
  {
4140
4154
  size: 12,
4141
4155
  "aria-hidden": "true",
@@ -4164,8 +4178,8 @@ function ariaSortFor(sort, key) {
4164
4178
  }
4165
4179
 
4166
4180
  // src/Pager.tsx
4167
- var import_lucide_react19 = require("lucide-react");
4168
- var import_jsx_runtime37 = require("react/jsx-runtime");
4181
+ var import_lucide_react20 = require("lucide-react");
4182
+ var import_jsx_runtime38 = require("react/jsx-runtime");
4169
4183
  function pageWindow(current, total) {
4170
4184
  if (total <= 7) return Array.from({ length: total }, (_, i) => i + 1);
4171
4185
  const keep = /* @__PURE__ */ new Set([1, total, current, current - 1, current + 1]);
@@ -4181,8 +4195,8 @@ function pageWindow(current, total) {
4181
4195
  }
4182
4196
  function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination", className, testIdPrefix }) {
4183
4197
  const btn = "flex h-8 min-w-8 items-center justify-center rounded-control px-2 text-dense transition-colors disabled:pointer-events-none disabled:opacity-30 focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus";
4184
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("nav", { "aria-label": label, className: cn("flex items-center gap-1", className), "data-testid": testIdPrefix, children: [
4185
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4198
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("nav", { "aria-label": label, className: cn("flex items-center gap-1", className), "data-testid": testIdPrefix, children: [
4199
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4186
4200
  "button",
4187
4201
  {
4188
4202
  type: "button",
@@ -4190,11 +4204,11 @@ function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination
4190
4204
  disabled: disabled || page === 1,
4191
4205
  "aria-label": "Previous page",
4192
4206
  className: cn(btn, "text-text-secondary hover:bg-subtle hover:text-text-primary"),
4193
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react19.ChevronLeft, { size: 16 })
4207
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react20.ChevronLeft, { size: 16 })
4194
4208
  }
4195
4209
  ),
4196
4210
  pageWindow(page, totalPages).map(
4197
- (p) => typeof p === "string" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "px-1 text-dense text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4211
+ (p) => typeof p === "string" ? /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "px-1 text-dense text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4198
4212
  "button",
4199
4213
  {
4200
4214
  type: "button",
@@ -4210,7 +4224,7 @@ function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination
4210
4224
  p
4211
4225
  )
4212
4226
  ),
4213
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
4227
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4214
4228
  "button",
4215
4229
  {
4216
4230
  type: "button",
@@ -4218,14 +4232,14 @@ function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination
4218
4232
  disabled: disabled || page === totalPages,
4219
4233
  "aria-label": "Next page",
4220
4234
  className: cn(btn, "text-text-secondary hover:bg-subtle hover:text-text-primary"),
4221
- children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_lucide_react19.ChevronRight, { size: 16 })
4235
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_lucide_react20.ChevronRight, { size: 16 })
4222
4236
  }
4223
4237
  )
4224
4238
  ] });
4225
4239
  }
4226
4240
 
4227
4241
  // src/WorkspaceAvatar.tsx
4228
- var import_jsx_runtime38 = require("react/jsx-runtime");
4242
+ var import_jsx_runtime39 = require("react/jsx-runtime");
4229
4243
  function workspaceInitials(name) {
4230
4244
  const words = name.trim().split(/\s+/).filter(Boolean);
4231
4245
  if (words.length === 0) return "\xB7";
@@ -4244,7 +4258,7 @@ var SIZES = {
4244
4258
  lg: "h-11 w-11 text-panel-title"
4245
4259
  };
4246
4260
  function WorkspaceAvatar({ name, size = "md", className, testIdPrefix }) {
4247
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
4261
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4248
4262
  "span",
4249
4263
  {
4250
4264
  "aria-hidden": "true",
@@ -4262,12 +4276,12 @@ function WorkspaceAvatar({ name, size = "md", className, testIdPrefix }) {
4262
4276
  // src/Toast.tsx
4263
4277
  var import_react20 = require("react");
4264
4278
  var import_react_dom6 = require("react-dom");
4265
- var import_lucide_react20 = require("lucide-react");
4266
- var import_jsx_runtime39 = require("react/jsx-runtime");
4279
+ var import_lucide_react21 = require("lucide-react");
4280
+ var import_jsx_runtime40 = require("react/jsx-runtime");
4267
4281
  var ICON = {
4268
4282
  neutral: null,
4269
- success: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react20.Check, { size: 15, className: "shrink-0", "aria-hidden": "true" }),
4270
- warning: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_lucide_react20.AlertTriangle, { size: 15, className: "shrink-0", "aria-hidden": "true" })
4283
+ success: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react21.Check, { size: 15, className: "shrink-0", "aria-hidden": "true" }),
4284
+ warning: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_lucide_react21.AlertTriangle, { size: 15, className: "shrink-0", "aria-hidden": "true" })
4271
4285
  };
4272
4286
  function Toast({ message, action, onClose, tone = "neutral", duration, className, testIdPrefix }) {
4273
4287
  const ms = duration ?? (action ? 1e4 : 5e3);
@@ -4283,7 +4297,7 @@ function Toast({ message, action, onClose, tone = "neutral", duration, className
4283
4297
  return () => window.clearTimeout(t);
4284
4298
  }, [message, ms, paused]);
4285
4299
  return (0, import_react_dom6.createPortal)(
4286
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
4300
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
4287
4301
  "div",
4288
4302
  {
4289
4303
  role: "status",
@@ -4301,7 +4315,7 @@ function Toast({ message, action, onClose, tone = "neutral", duration, className
4301
4315
  children: [
4302
4316
  ICON[tone] && // The inverse pair, not text-success / text-warning: those are tuned
4303
4317
  // for the page, and on the toast's flipped surface amber drops to 2:1.
4304
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4318
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4305
4319
  "span",
4306
4320
  {
4307
4321
  className: cn(
@@ -4311,8 +4325,8 @@ function Toast({ message, action, onClose, tone = "neutral", duration, className
4311
4325
  children: ICON[tone]
4312
4326
  }
4313
4327
  ),
4314
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "min-w-0", children: message }),
4315
- action && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4328
+ /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("span", { className: "min-w-0", children: message }),
4329
+ action && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
4316
4330
  "button",
4317
4331
  {
4318
4332
  type: "button",
@@ -4334,14 +4348,14 @@ function Toast({ message, action, onClose, tone = "neutral", duration, className
4334
4348
  }
4335
4349
 
4336
4350
  // src/Tag.tsx
4337
- var import_jsx_runtime40 = require("react/jsx-runtime");
4351
+ var import_jsx_runtime41 = require("react/jsx-runtime");
4338
4352
  function Tag({ children, className, testIdPrefix }) {
4339
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(Badge, { kind: "category", className, testIdPrefix, children });
4353
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(Badge, { kind: "category", className, testIdPrefix, children });
4340
4354
  }
4341
4355
 
4342
4356
  // src/TablePagination.tsx
4343
- var import_lucide_react21 = require("lucide-react");
4344
- var import_jsx_runtime41 = require("react/jsx-runtime");
4357
+ var import_lucide_react22 = require("lucide-react");
4358
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4345
4359
  function TablePagination({
4346
4360
  page,
4347
4361
  perPage,
@@ -4361,7 +4375,7 @@ function TablePagination({
4361
4375
  const btn = "flex h-8 min-w-8 items-center justify-center rounded-control px-2 text-dense transition-colors focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus";
4362
4376
  const off = "disabled:pointer-events-none disabled:opacity-30";
4363
4377
  const stepBtn = cn(btn, "text-text-secondary hover:bg-subtle hover:text-text-primary", off);
4364
- const range = /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("span", { className: "text-dense text-text-tertiary tabular-nums", children: [
4378
+ const range = /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "text-dense text-text-tertiary tabular-nums", children: [
4365
4379
  rangeStart.toLocaleString(),
4366
4380
  " \u2013 ",
4367
4381
  rangeEnd.toLocaleString(),
@@ -4370,13 +4384,13 @@ function TablePagination({
4370
4384
  " ",
4371
4385
  itemLabel
4372
4386
  ] });
4373
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: cn("flex flex-wrap items-center justify-between gap-x-4 gap-y-2", className), "data-testid": testIdPrefix, children: [
4374
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4387
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: cn("flex flex-wrap items-center justify-between gap-x-4 gap-y-2", className), "data-testid": testIdPrefix, children: [
4388
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4375
4389
  "div",
4376
4390
  {
4377
4391
  className: cn("flex items-center gap-2 text-dense text-text-secondary", !onPerPageChange && "invisible"),
4378
4392
  children: [
4379
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4393
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4380
4394
  SelectFilter,
4381
4395
  {
4382
4396
  size: "sm",
@@ -4392,8 +4406,8 @@ function TablePagination({
4392
4406
  ]
4393
4407
  }
4394
4408
  ),
4395
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("nav", { className: "flex items-center gap-1", "aria-label": "Pagination", children: [
4396
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4409
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("nav", { className: "flex items-center gap-1", "aria-label": "Pagination", children: [
4410
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4397
4411
  "button",
4398
4412
  {
4399
4413
  type: "button",
@@ -4402,10 +4416,10 @@ function TablePagination({
4402
4416
  "aria-label": "First page",
4403
4417
  "data-testid": testIdPrefix && `${testIdPrefix}-first`,
4404
4418
  className: stepBtn,
4405
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react21.ChevronFirst, { size: 16, "aria-hidden": "true" })
4419
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronFirst, { size: 16, "aria-hidden": "true" })
4406
4420
  }
4407
4421
  ),
4408
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4422
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4409
4423
  "button",
4410
4424
  {
4411
4425
  type: "button",
@@ -4414,11 +4428,11 @@ function TablePagination({
4414
4428
  "aria-label": "Previous page",
4415
4429
  "data-testid": testIdPrefix && `${testIdPrefix}-prev`,
4416
4430
  className: stepBtn,
4417
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react21.ChevronLeft, { size: 16, "aria-hidden": "true" })
4431
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronLeft, { size: 16, "aria-hidden": "true" })
4418
4432
  }
4419
4433
  ),
4420
4434
  pageWindow(current, totalPages).map(
4421
- (p) => typeof p === "string" ? /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("span", { className: "px-1 text-dense text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4435
+ (p) => typeof p === "string" ? /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "px-1 text-dense text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4422
4436
  "button",
4423
4437
  {
4424
4438
  type: "button",
@@ -4436,7 +4450,7 @@ function TablePagination({
4436
4450
  p
4437
4451
  )
4438
4452
  ),
4439
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4453
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4440
4454
  "button",
4441
4455
  {
4442
4456
  type: "button",
@@ -4445,10 +4459,10 @@ function TablePagination({
4445
4459
  "aria-label": "Next page",
4446
4460
  "data-testid": testIdPrefix && `${testIdPrefix}-next`,
4447
4461
  className: stepBtn,
4448
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react21.ChevronRight, { size: 16, "aria-hidden": "true" })
4462
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronRight, { size: 16, "aria-hidden": "true" })
4449
4463
  }
4450
4464
  ),
4451
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4465
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4452
4466
  "button",
4453
4467
  {
4454
4468
  type: "button",
@@ -4457,7 +4471,7 @@ function TablePagination({
4457
4471
  "aria-label": "Last page",
4458
4472
  "data-testid": testIdPrefix && `${testIdPrefix}-last`,
4459
4473
  className: stepBtn,
4460
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_lucide_react21.ChevronLast, { size: 16, "aria-hidden": "true" })
4474
+ children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronLast, { size: 16, "aria-hidden": "true" })
4461
4475
  }
4462
4476
  )
4463
4477
  ] }),
@@ -4467,8 +4481,8 @@ function TablePagination({
4467
4481
 
4468
4482
  // src/DateRangePicker.tsx
4469
4483
  var import_react21 = require("react");
4470
- var import_lucide_react22 = require("lucide-react");
4471
- var import_jsx_runtime42 = require("react/jsx-runtime");
4484
+ var import_lucide_react23 = require("lucide-react");
4485
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4472
4486
  var MONTH_ABBR = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
4473
4487
  var QUARTER_ABBR = ["Q1", "Q2", "Q3", "Q4"];
4474
4488
  var PRESETS = ["Rolling 3 months", "Rolling 6 months", "Rolling 12 months"];
@@ -4506,7 +4520,7 @@ function spanLabel2(label, today, formatDate, formatRange) {
4506
4520
  return `${f(s)} \u2013 ${f(e)}`;
4507
4521
  }
4508
4522
  function MiniSelect({ value, onChange, options }) {
4509
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4523
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4510
4524
  "select",
4511
4525
  {
4512
4526
  value: String(value),
@@ -4515,7 +4529,7 @@ function MiniSelect({ value, onChange, options }) {
4515
4529
  if (opt) onChange(opt.value);
4516
4530
  },
4517
4531
  className: "rounded-control border border-border-strong bg-input px-1.5 py-1 text-xs text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
4518
- children: options.map((o) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("option", { value: String(o.value), children: o.label }, String(o.value)))
4532
+ children: options.map((o) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("option", { value: String(o.value), children: o.label }, String(o.value)))
4519
4533
  }
4520
4534
  );
4521
4535
  }
@@ -4580,8 +4594,8 @@ function DateRangePicker({
4580
4594
  if (showFooter) setDraft(label);
4581
4595
  else commit(label);
4582
4596
  };
4583
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: cn("relative", className), ref, "data-testid": testIdPrefix, children: [
4584
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
4597
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: cn("relative", className), ref, "data-testid": testIdPrefix, children: [
4598
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4585
4599
  "button",
4586
4600
  {
4587
4601
  type: "button",
@@ -4590,16 +4604,16 @@ function DateRangePicker({
4590
4604
  "aria-haspopup": "listbox",
4591
4605
  className: chipTriggerClass(),
4592
4606
  children: [
4593
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
4594
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-control-caption leading-none text-text-tertiary", children: spanLabel2(value, end, formatDate, formatRange) }),
4595
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("span", { className: "text-xs leading-none font-medium text-text-primary", children: value })
4607
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
4608
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "text-control-caption leading-none text-text-tertiary", children: spanLabel2(value, end, formatDate, formatRange) }),
4609
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "text-xs leading-none font-medium text-text-primary", children: value })
4596
4610
  ] }),
4597
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_lucide_react22.ChevronDown, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-text-secondary transition-transform", open && "rotate-180") })
4611
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react23.ChevronDown, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-text-secondary transition-transform", open && "rotate-180") })
4598
4612
  ]
4599
4613
  }
4600
4614
  ),
4601
- open && /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: cn("absolute top-full mt-2 z-30 w-70 overflow-hidden rounded-card border border-border-default bg-surface py-1 shadow-overlay", align === "right" ? "right-0" : "left-0"), children: [
4602
- presets.map((p) => /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4615
+ open && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: cn("absolute top-full mt-2 z-30 w-70 overflow-hidden rounded-card border border-border-default bg-surface py-1 shadow-overlay", align === "right" ? "right-0" : "left-0"), children: [
4616
+ presets.map((p) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4603
4617
  "button",
4604
4618
  {
4605
4619
  type: "button",
@@ -4609,26 +4623,26 @@ function DateRangePicker({
4609
4623
  },
4610
4624
  p
4611
4625
  )),
4612
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "mt-1 border-t border-border-default px-3 pb-2 pt-2", children: [
4613
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { className: "text-dense font-semibold text-text-primary", children: "Custom range" }),
4614
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "mt-2 flex flex-col gap-2", children: [
4615
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4626
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "mt-1 border-t border-border-default px-3 pb-2 pt-2", children: [
4627
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "text-dense font-semibold text-text-primary", children: "Custom range" }),
4628
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "mt-2 flex flex-col gap-2", children: [
4629
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4616
4630
  "From",
4617
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "flex gap-1", children: [
4618
- granularity === "month" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MiniSelect, { value: fromMo, onChange: setFromMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
4619
- granularity === "quarter" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MiniSelect, { value: fromQ, onChange: setFromQ, options: QUARTER_ABBR.map((qq, i) => ({ label: qq, value: i })) }),
4620
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MiniSelect, { value: fromYr, onChange: setFromYr, options: yearOptions.map((y) => ({ label: String(y), value: y })) })
4631
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { className: "flex gap-1", children: [
4632
+ granularity === "month" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MiniSelect, { value: fromMo, onChange: setFromMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
4633
+ granularity === "quarter" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MiniSelect, { value: fromQ, onChange: setFromQ, options: QUARTER_ABBR.map((qq, i) => ({ label: qq, value: i })) }),
4634
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MiniSelect, { value: fromYr, onChange: setFromYr, options: yearOptions.map((y) => ({ label: String(y), value: y })) })
4621
4635
  ] })
4622
4636
  ] }),
4623
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4637
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4624
4638
  "To",
4625
- /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("span", { className: "flex gap-1", children: [
4626
- granularity === "month" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MiniSelect, { value: toMo, onChange: setToMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
4627
- granularity === "quarter" && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MiniSelect, { value: toQ, onChange: setToQ, options: QUARTER_ABBR.map((qq, i) => ({ label: qq, value: i })) }),
4628
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(MiniSelect, { value: toYr, onChange: setToYr, options: yearOptions.map((y) => ({ label: String(y), value: y })) })
4639
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { className: "flex gap-1", children: [
4640
+ granularity === "month" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MiniSelect, { value: toMo, onChange: setToMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
4641
+ granularity === "quarter" && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MiniSelect, { value: toQ, onChange: setToQ, options: QUARTER_ABBR.map((qq, i) => ({ label: qq, value: i })) }),
4642
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MiniSelect, { value: toYr, onChange: setToYr, options: yearOptions.map((y) => ({ label: String(y), value: y })) })
4629
4643
  ] })
4630
4644
  ] }),
4631
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4645
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4632
4646
  "button",
4633
4647
  {
4634
4648
  type: "button",
@@ -4640,15 +4654,15 @@ function DateRangePicker({
4640
4654
  )
4641
4655
  ] })
4642
4656
  ] }),
4643
- showFooter && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(FilterDropdownFooter, { onApply: () => commit(draft) })
4657
+ showFooter && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(FilterDropdownFooter, { onApply: () => commit(draft) })
4644
4658
  ] })
4645
4659
  ] });
4646
4660
  }
4647
4661
 
4648
4662
  // src/MultiSelectFilter.tsx
4649
4663
  var import_react22 = require("react");
4650
- var import_lucide_react23 = require("lucide-react");
4651
- var import_jsx_runtime43 = require("react/jsx-runtime");
4664
+ var import_lucide_react24 = require("lucide-react");
4665
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4652
4666
  var SEARCH_AFTER = 8;
4653
4667
  function MultiSelectFilter({
4654
4668
  caption,
@@ -4746,9 +4760,9 @@ function MultiSelectFilter({
4746
4760
  const shown = open && !showFooter ? draft : selected;
4747
4761
  const isAll = shown.length === 0 || fullIsAll && shown.length === leafOptions.length;
4748
4762
  const value = valueLabel ?? (isAll ? allLabel : shown.length === 1 ? leafOptions.find((o) => o.id === shown[0])?.label ?? `${shown.length} selected` : `${shown.length} selected`);
4749
- const labelled = (id, label) => hints?.[id] ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { className: "flex flex-col", children: [
4750
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { children: label }),
4751
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "text-xs font-normal text-text-tertiary", children: hints[id] })
4763
+ const labelled = (id, label) => hints?.[id] ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { className: "flex flex-col", children: [
4764
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { children: label }),
4765
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "text-xs font-normal text-text-tertiary", children: hints[id] })
4752
4766
  ] }) : label;
4753
4767
  const ql = q.trim().toLowerCase();
4754
4768
  const items = options.filter((o) => isAvailable(o.id) && (!ql || o.label.toLowerCase().includes(ql)));
@@ -4759,8 +4773,8 @@ function MultiSelectFilter({
4759
4773
  const kids = live.filter((c) => c.label.toLowerCase().includes(ql));
4760
4774
  return kids.length ? { ...g, children: kids } : null;
4761
4775
  }).filter((g) => g !== null) : [];
4762
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: cn("relative", fullWidth && "w-full", className), ref, "data-testid": testIdPrefix, children: [
4763
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4776
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: cn("relative", fullWidth && "w-full", className), ref, "data-testid": testIdPrefix, children: [
4777
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4764
4778
  "button",
4765
4779
  {
4766
4780
  type: "button",
@@ -4769,9 +4783,9 @@ function MultiSelectFilter({
4769
4783
  "data-testid": testIdPrefix && `${testIdPrefix}-trigger`,
4770
4784
  className: cn(chipTriggerClass(variant), fullWidth && "w-full justify-between"),
4771
4785
  children: [
4772
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(ChipContent, { caption, value, icon }),
4773
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4774
- import_lucide_react23.ChevronDown,
4786
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(ChipContent, { caption, value, icon }),
4787
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4788
+ import_lucide_react24.ChevronDown,
4775
4789
  {
4776
4790
  size: 14,
4777
4791
  "aria-hidden": "true",
@@ -4781,7 +4795,7 @@ function MultiSelectFilter({
4781
4795
  ]
4782
4796
  }
4783
4797
  ),
4784
- open && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4798
+ open && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4785
4799
  "div",
4786
4800
  {
4787
4801
  className: cn(
@@ -4792,10 +4806,10 @@ function MultiSelectFilter({
4792
4806
  "data-testid": testIdPrefix && `${testIdPrefix}-popover`,
4793
4807
  role: "dialog",
4794
4808
  "aria-label": caption,
4795
- children: loading ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MenuLoading, {}) : error ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(MenuError, { onRetry }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
4796
- showSearch && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "border-b border-border-default p-2", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex h-8 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5 focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-border-focus", children: [
4797
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react23.Search, { size: 14, className: "text-text-secondary", "aria-hidden": "true" }),
4798
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4809
+ children: loading ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MenuLoading, {}) : error ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(MenuError, { onRetry }) : /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
4810
+ showSearch && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "border-b border-border-default p-2", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex h-8 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5 focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-border-focus", children: [
4811
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react24.Search, { size: 14, className: "text-text-secondary", "aria-hidden": "true" }),
4812
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4799
4813
  "input",
4800
4814
  {
4801
4815
  type: "text",
@@ -4805,37 +4819,37 @@ function MultiSelectFilter({
4805
4819
  className: "h-full flex-1 bg-transparent text-dense outline-hidden placeholder:text-text-tertiary"
4806
4820
  }
4807
4821
  ),
4808
- q && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("button", { type: "button", onClick: () => setQ(""), "aria-label": "Clear search", className: "text-text-tertiary hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_lucide_react23.X, { size: 13 }) })
4822
+ q && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("button", { type: "button", onClick: () => setQ(""), "aria-label": "Clear search", className: "text-text-tertiary hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_lucide_react24.X, { size: 13 }) })
4809
4823
  ] }) }),
4810
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "max-h-70 overflow-y-auto p-1", children: [
4824
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "max-h-70 overflow-y-auto p-1", children: [
4811
4825
  groups ? visibleGroups.map((g) => {
4812
4826
  const state = groupState(g);
4813
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { children: [
4814
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4827
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { children: [
4828
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4815
4829
  "button",
4816
4830
  {
4817
4831
  type: "button",
4818
4832
  onClick: () => toggleGroup(g),
4819
4833
  className: "flex w-full items-center gap-2.5 rounded-control px-2 py-2 text-left transition-colors hover:bg-subtle focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
4820
4834
  children: [
4821
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CheckBoxBox, { checked: state === "all", indeterminate: state === "some" }),
4822
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: cn("flex-1 text-sm text-text-primary", !plainParent && "font-semibold"), children: labelled(g.id, g.label) }),
4823
- counts && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(OptionCount, { n: countFor(g.id) })
4835
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CheckBoxBox, { checked: state === "all", indeterminate: state === "some" }),
4836
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: cn("flex-1 text-sm text-text-primary", !plainParent && "font-semibold"), children: labelled(g.id, g.label) }),
4837
+ counts && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(OptionCount, { n: countFor(g.id) })
4824
4838
  ]
4825
4839
  }
4826
4840
  ),
4827
4841
  g.children.map((c) => {
4828
4842
  const checked = draft.includes(c.id);
4829
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4843
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4830
4844
  "button",
4831
4845
  {
4832
4846
  type: "button",
4833
4847
  onClick: () => toggle(c.id),
4834
4848
  className: "flex w-full items-center gap-2.5 rounded-control py-2 pl-9 pr-2 text-left transition-colors hover:bg-subtle focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
4835
4849
  children: [
4836
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CheckBoxBox, { checked }),
4837
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "flex-1 text-sm text-text-primary", children: labelled(c.id, c.label) }),
4838
- counts && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(OptionCount, { n: countFor(c.id) })
4850
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CheckBoxBox, { checked }),
4851
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "flex-1 text-sm text-text-primary", children: labelled(c.id, c.label) }),
4852
+ counts && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(OptionCount, { n: countFor(c.id) })
4839
4853
  ]
4840
4854
  },
4841
4855
  c.id
@@ -4844,25 +4858,25 @@ function MultiSelectFilter({
4844
4858
  ] }, g.id);
4845
4859
  }) : items.map((o) => {
4846
4860
  const checked = draft.includes(o.id);
4847
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4861
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4848
4862
  "button",
4849
4863
  {
4850
4864
  type: "button",
4851
4865
  onClick: () => toggle(o.id),
4852
4866
  className: "flex w-full items-center gap-2.5 rounded-control px-2 py-2 text-left transition-colors hover:bg-subtle focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
4853
4867
  children: [
4854
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(CheckBoxBox, { checked }),
4855
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "flex-1 text-sm text-text-primary", children: labelled(o.id, o.label) }),
4856
- counts && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(OptionCount, { n: countFor(o.id) })
4868
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(CheckBoxBox, { checked }),
4869
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { className: "flex-1 text-sm text-text-primary", children: labelled(o.id, o.label) }),
4870
+ counts && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(OptionCount, { n: countFor(o.id) })
4857
4871
  ]
4858
4872
  },
4859
4873
  o.id
4860
4874
  );
4861
4875
  }),
4862
- (groups && !visibleGroups.length || !groups && !items.length) && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "py-6 text-center text-dense text-text-tertiary", children: "No matches." })
4876
+ (groups && !visibleGroups.length || !groups && !items.length) && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "py-6 text-center text-dense text-text-tertiary", children: "No matches." })
4863
4877
  ] }),
4864
- note && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "border-t border-border-default px-3 py-2 text-xs text-text-tertiary", children: note }),
4865
- showFooter ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(FilterDropdownFooter, { onClear: clearAll, onApply: apply }) : min === 0 && draft.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "border-t border-border-default p-2", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4878
+ note && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("p", { className: "border-t border-border-default px-3 py-2 text-xs text-text-tertiary", children: note }),
4879
+ showFooter ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(FilterDropdownFooter, { onClear: clearAll, onApply: apply }) : min === 0 && draft.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: "border-t border-border-default p-2", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4866
4880
  "button",
4867
4881
  {
4868
4882
  type: "button",
@@ -4880,7 +4894,7 @@ function MultiSelectFilter({
4880
4894
  ] });
4881
4895
  }
4882
4896
  function OptionCount({ n }) {
4883
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("span", { className: "shrink-0 text-xs tabular-nums text-text-tertiary", children: [
4897
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("span", { className: "shrink-0 text-xs tabular-nums text-text-tertiary", children: [
4884
4898
  "(",
4885
4899
  n.toLocaleString(),
4886
4900
  ")"
@@ -4889,7 +4903,7 @@ function OptionCount({ n }) {
4889
4903
 
4890
4904
  // src/Toggle.tsx
4891
4905
  var import_react23 = require("react");
4892
- var import_jsx_runtime44 = require("react/jsx-runtime");
4906
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4893
4907
  var SIZES2 = {
4894
4908
  sm: { track: "h-5 w-9", knob: "h-4 w-4", on: "translate-x-4.5" },
4895
4909
  md: { track: "h-6 w-11", knob: "h-5 w-5", on: "translate-x-5.5" }
@@ -4897,7 +4911,7 @@ var SIZES2 = {
4897
4911
  var OFF_TRACK = "color-mix(in srgb, var(--mr-color-border-interactive) 70%, var(--mr-color-text-secondary))";
4898
4912
  var Toggle = (0, import_react23.forwardRef)(function Toggle2({ checked, onChange, label, size = "md", disabled, className, testIdPrefix }, ref) {
4899
4913
  const s = SIZES2[size];
4900
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4914
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4901
4915
  "button",
4902
4916
  {
4903
4917
  ref,
@@ -4916,7 +4930,7 @@ var Toggle = (0, import_react23.forwardRef)(function Toggle2({ checked, onChange
4916
4930
  disabled && "cursor-not-allowed opacity-50",
4917
4931
  className
4918
4932
  ),
4919
- children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4933
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4920
4934
  "span",
4921
4935
  {
4922
4936
  className: cn(
@@ -4933,21 +4947,21 @@ Toggle.displayName = "Toggle";
4933
4947
 
4934
4948
  // src/AISpark.tsx
4935
4949
  var import_react24 = require("react");
4936
- var import_lucide_react24 = require("lucide-react");
4937
- var import_jsx_runtime45 = require("react/jsx-runtime");
4950
+ var import_lucide_react25 = require("lucide-react");
4951
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4938
4952
  function AISpark({ size = 16, className, testIdPrefix }) {
4939
4953
  const id = (0, import_react24.useId)();
4940
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
4941
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("svg", { width: "0", height: "0", "aria-hidden": "true", style: { position: "absolute" }, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("linearGradient", { id, x1: "0", y1: "0", x2: "1", y2: "1", children: [
4942
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { offset: "0%", stopColor: "var(--mr-color-brand-primary)" }),
4943
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("stop", { offset: "100%", stopColor: "var(--mr-color-ai-violet)" })
4954
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(import_jsx_runtime46.Fragment, { children: [
4955
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("svg", { width: "0", height: "0", "aria-hidden": "true", style: { position: "absolute" }, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("linearGradient", { id, x1: "0", y1: "0", x2: "1", y2: "1", children: [
4956
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: "0%", stopColor: "var(--mr-color-brand-primary)" }),
4957
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("stop", { offset: "100%", stopColor: "var(--mr-color-ai-violet)" })
4944
4958
  ] }) }) }),
4945
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_lucide_react24.Sparkles, { size, stroke: `url(#${id})`, className, "data-testid": testIdPrefix, "aria-hidden": "true" })
4959
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_lucide_react25.Sparkles, { size, stroke: `url(#${id})`, className, "data-testid": testIdPrefix, "aria-hidden": "true" })
4946
4960
  ] });
4947
4961
  }
4948
4962
 
4949
4963
  // src/Freshness.tsx
4950
- var import_jsx_runtime46 = require("react/jsx-runtime");
4964
+ var import_jsx_runtime47 = require("react/jsx-runtime");
4951
4965
  var dotColor = {
4952
4966
  fresh: "bg-status-success",
4953
4967
  recent: "bg-status-warning",
@@ -4959,7 +4973,7 @@ var srLabel = {
4959
4973
  stale: "Older than a day"
4960
4974
  };
4961
4975
  function Freshness({ level, className, testIdPrefix }) {
4962
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4976
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4963
4977
  "span",
4964
4978
  {
4965
4979
  className: cn("inline-block h-1.5 w-1.5 shrink-0 rounded-full", dotColor[level], className),
@@ -4971,50 +4985,50 @@ function Freshness({ level, className, testIdPrefix }) {
4971
4985
  }
4972
4986
 
4973
4987
  // src/SectionHeading.tsx
4974
- var import_jsx_runtime47 = require("react/jsx-runtime");
4988
+ var import_jsx_runtime48 = require("react/jsx-runtime");
4975
4989
  function SectionHeading({ title, description, actions, as: Tag2 = "h2", id, className, testIdPrefix }) {
4976
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: cn("flex flex-wrap items-end justify-between gap-x-4 gap-y-2", className), "data-testid": testIdPrefix, children: [
4977
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "min-w-0", children: [
4978
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(Tag2, { id, className: "text-base font-semibold text-text-primary", children: title }),
4979
- description && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "mt-0.5 text-dense text-text-secondary", children: description })
4990
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: cn("flex flex-wrap items-end justify-between gap-x-4 gap-y-2", className), "data-testid": testIdPrefix, children: [
4991
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "min-w-0", children: [
4992
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(Tag2, { id, className: "text-base font-semibold text-text-primary", children: title }),
4993
+ description && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "mt-0.5 text-dense text-text-secondary", children: description })
4980
4994
  ] }),
4981
- actions && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
4995
+ actions && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
4982
4996
  ] });
4983
4997
  }
4984
4998
 
4985
4999
  // src/PageHeader.tsx
4986
- var import_lucide_react25 = require("lucide-react");
4987
- var import_jsx_runtime48 = require("react/jsx-runtime");
5000
+ var import_lucide_react26 = require("lucide-react");
5001
+ var import_jsx_runtime49 = require("react/jsx-runtime");
4988
5002
  function PageHeader({ title, description, actions, meta, back, className, testIdPrefix }) {
4989
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("header", { className: cn("flex flex-wrap items-center justify-between gap-x-6 gap-y-3", className), "data-testid": testIdPrefix, children: [
4990
- /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "min-w-0", children: [
4991
- back && /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5003
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("header", { className: cn("flex flex-wrap items-center justify-between gap-x-6 gap-y-3", className), "data-testid": testIdPrefix, children: [
5004
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "min-w-0", children: [
5005
+ back && /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
4992
5006
  "a",
4993
5007
  {
4994
5008
  href: back.href ?? "#",
4995
5009
  onClick: back.onClick,
4996
5010
  className: "mb-1.5 inline-flex items-center gap-1.5 rounded-control text-micro font-semibold uppercase tracking-wider text-text-tertiary hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
4997
5011
  children: [
4998
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_lucide_react25.ArrowLeft, { size: 13, "aria-hidden": "true" }),
5012
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react26.ArrowLeft, { size: 13, "aria-hidden": "true" }),
4999
5013
  back.label
5000
5014
  ]
5001
5015
  }
5002
5016
  ),
5003
- meta ? /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "flex flex-wrap items-center gap-x-2.5 gap-y-1", children: [
5004
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("h1", { className: "text-xl font-semibold tracking-tight text-text-primary", children: title }),
5017
+ meta ? /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex flex-wrap items-center gap-x-2.5 gap-y-1", children: [
5018
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h1", { className: "text-xl font-semibold tracking-tight text-text-primary", children: title }),
5005
5019
  meta
5006
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("h1", { className: "text-xl font-semibold tracking-tight text-text-primary", children: title }),
5007
- description && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("p", { className: "mt-0.5 max-w-2xl text-sm text-text-secondary", children: description })
5020
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h1", { className: "text-xl font-semibold tracking-tight text-text-primary", children: title }),
5021
+ description && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "mt-0.5 max-w-2xl text-sm text-text-secondary", children: description })
5008
5022
  ] }),
5009
- actions && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
5023
+ actions && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex shrink-0 items-center gap-2", children: actions })
5010
5024
  ] });
5011
5025
  }
5012
5026
 
5013
5027
  // src/Modal.tsx
5014
5028
  var import_react25 = require("react");
5015
5029
  var import_react_dom7 = require("react-dom");
5016
- var import_lucide_react26 = require("lucide-react");
5017
- var import_jsx_runtime49 = require("react/jsx-runtime");
5030
+ var import_lucide_react27 = require("lucide-react");
5031
+ var import_jsx_runtime50 = require("react/jsx-runtime");
5018
5032
  var WIDTH = {
5019
5033
  sm: "max-w-110",
5020
5034
  md: "max-w-160",
@@ -5078,7 +5092,7 @@ function Modal({ open, onClose, title, description, size = "md", footer, childre
5078
5092
  }, [open, mounted]);
5079
5093
  if (!mounted || typeof document === "undefined") return null;
5080
5094
  return (0, import_react_dom7.createPortal)(
5081
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5095
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5082
5096
  "div",
5083
5097
  {
5084
5098
  className: cn(
@@ -5086,7 +5100,7 @@ function Modal({ open, onClose, title, description, size = "md", footer, childre
5086
5100
  shown ? "opacity-100" : "opacity-0"
5087
5101
  ),
5088
5102
  onMouseDown: (e) => e.target === e.currentTarget && onClose(),
5089
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5103
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5090
5104
  "div",
5091
5105
  {
5092
5106
  ref: panel,
@@ -5104,24 +5118,24 @@ function Modal({ open, onClose, title, description, size = "md", footer, childre
5104
5118
  className
5105
5119
  ),
5106
5120
  children: [
5107
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex items-start gap-3 px-5 pt-5 pb-2", children: [
5108
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "min-w-0 flex-1", children: [
5109
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
5110
- description && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { id: descId, className: "mt-0.5 text-sm text-text-secondary", children: description })
5121
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "flex items-start gap-3 px-5 pt-5 pb-2", children: [
5122
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: "min-w-0 flex-1", children: [
5123
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
5124
+ description && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { id: descId, className: "mt-0.5 text-sm text-text-secondary", children: description })
5111
5125
  ] }),
5112
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5126
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5113
5127
  "button",
5114
5128
  {
5115
5129
  type: "button",
5116
5130
  onClick: onClose,
5117
5131
  "aria-label": "Close",
5118
5132
  className: "-mr-1.5 -mt-1 flex size-8 shrink-0 items-center justify-center rounded-control text-text-tertiary hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
5119
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_lucide_react26.X, { size: 16, "aria-hidden": "true" })
5133
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_lucide_react27.X, { size: 16, "aria-hidden": "true" })
5120
5134
  }
5121
5135
  )
5122
5136
  ] }),
5123
- children && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { "data-modal-body": true, className: "min-h-0 flex-1 overflow-y-auto px-5 pt-1 pb-5 text-sm text-text-primary", children }),
5124
- footer && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { "data-modal-footer": true, className: "flex items-center justify-end gap-2 border-t border-border-default px-5 py-3", children: footer })
5137
+ children && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { "data-modal-body": true, className: "min-h-0 flex-1 overflow-y-auto px-5 pt-1 pb-5 text-sm text-text-primary", children }),
5138
+ footer && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { "data-modal-footer": true, className: "flex items-center justify-end gap-2 border-t border-border-default px-5 py-3", children: footer })
5125
5139
  ]
5126
5140
  }
5127
5141
  )
@@ -5132,10 +5146,10 @@ function Modal({ open, onClose, title, description, size = "md", footer, childre
5132
5146
  }
5133
5147
 
5134
5148
  // src/EmptyState.tsx
5135
- var import_jsx_runtime50 = require("react/jsx-runtime");
5149
+ var import_jsx_runtime51 = require("react/jsx-runtime");
5136
5150
  function EmptyState({ icon, title, description, action, size = "sm", className, testIdPrefix }) {
5137
5151
  const md = size === "md";
5138
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5152
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5139
5153
  "div",
5140
5154
  {
5141
5155
  className: cn(
@@ -5145,7 +5159,7 @@ function EmptyState({ icon, title, description, action, size = "sm", className,
5145
5159
  ),
5146
5160
  "data-testid": testIdPrefix,
5147
5161
  children: [
5148
- icon && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5162
+ icon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5149
5163
  "span",
5150
5164
  {
5151
5165
  "aria-hidden": "true",
@@ -5156,9 +5170,9 @@ function EmptyState({ icon, title, description, action, size = "sm", className,
5156
5170
  children: icon
5157
5171
  }
5158
5172
  ),
5159
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: cn("font-semibold text-text-primary", md ? "text-base" : "text-sm"), children: title }),
5160
- description && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("p", { className: cn("max-w-sm text-text-secondary", md ? "text-sm" : "text-xs"), children: description }),
5161
- action && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: md ? "mt-3" : "mt-2", children: action })
5173
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: cn("font-semibold text-text-primary", md ? "text-base" : "text-sm"), children: title }),
5174
+ description && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { className: cn("max-w-sm text-text-secondary", md ? "text-sm" : "text-xs"), children: description }),
5175
+ action && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: md ? "mt-3" : "mt-2", children: action })
5162
5176
  ]
5163
5177
  }
5164
5178
  );
@@ -5166,7 +5180,7 @@ function EmptyState({ icon, title, description, action, size = "sm", className,
5166
5180
 
5167
5181
  // src/TextField.tsx
5168
5182
  var import_react26 = require("react");
5169
- var import_jsx_runtime51 = require("react/jsx-runtime");
5183
+ var import_jsx_runtime52 = require("react/jsx-runtime");
5170
5184
  var HEIGHT2 = { sm: "h-8", md: "h-10", lg: "h-11" };
5171
5185
  var TextField = (0, import_react26.forwardRef)(
5172
5186
  ({ label, hint, error, size = "md", icon, className, testIdPrefix, id, disabled, ...props }, ref) => {
@@ -5174,9 +5188,9 @@ var TextField = (0, import_react26.forwardRef)(
5174
5188
  const fieldId = id ?? auto;
5175
5189
  const noteId = `${fieldId}-note`;
5176
5190
  const note = error ?? hint;
5177
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: cn("flex flex-col gap-1.5", className), "data-testid": testIdPrefix, children: [
5178
- label && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("label", { htmlFor: fieldId, className: "text-xs font-medium text-text-secondary", children: label }),
5179
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5191
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: cn("flex flex-col gap-1.5", className), "data-testid": testIdPrefix, children: [
5192
+ label && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("label", { htmlFor: fieldId, className: "text-xs font-medium text-text-secondary", children: label }),
5193
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
5180
5194
  "div",
5181
5195
  {
5182
5196
  className: cn(
@@ -5186,8 +5200,8 @@ var TextField = (0, import_react26.forwardRef)(
5186
5200
  disabled && "opacity-50"
5187
5201
  ),
5188
5202
  children: [
5189
- icon && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { "aria-hidden": "true", className: "flex shrink-0 text-text-tertiary", children: icon }),
5190
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5203
+ icon && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { "aria-hidden": "true", className: "flex shrink-0 text-text-tertiary", children: icon }),
5204
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5191
5205
  "input",
5192
5206
  {
5193
5207
  ref,
@@ -5202,7 +5216,7 @@ var TextField = (0, import_react26.forwardRef)(
5202
5216
  ]
5203
5217
  }
5204
5218
  ),
5205
- note && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("p", { id: noteId, className: cn("text-xs", error ? "text-text-danger" : "text-text-tertiary"), children: note })
5219
+ note && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { id: noteId, className: cn("text-xs", error ? "text-text-danger" : "text-text-tertiary"), children: note })
5206
5220
  ] });
5207
5221
  }
5208
5222
  );
@@ -5211,8 +5225,8 @@ TextField.displayName = "TextField";
5211
5225
  // src/Drawer.tsx
5212
5226
  var import_react27 = require("react");
5213
5227
  var import_react_dom8 = require("react-dom");
5214
- var import_lucide_react27 = require("lucide-react");
5215
- var import_jsx_runtime52 = require("react/jsx-runtime");
5228
+ var import_lucide_react28 = require("lucide-react");
5229
+ var import_jsx_runtime53 = require("react/jsx-runtime");
5216
5230
  var WIDTH2 = {
5217
5231
  sm: "max-w-110",
5218
5232
  md: "max-w-160",
@@ -5273,8 +5287,8 @@ function Drawer({ open, onClose, title, description, size = "sm", footer, childr
5273
5287
  }, [open, mounted]);
5274
5288
  if (!mounted || typeof document === "undefined") return null;
5275
5289
  return (0, import_react_dom8.createPortal)(
5276
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "fixed inset-0 z-modal", children: [
5277
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5290
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "fixed inset-0 z-modal", children: [
5291
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5278
5292
  "div",
5279
5293
  {
5280
5294
  "aria-hidden": "true",
@@ -5288,7 +5302,7 @@ function Drawer({ open, onClose, title, description, size = "sm", footer, childr
5288
5302
  )
5289
5303
  }
5290
5304
  ),
5291
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
5305
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5292
5306
  "div",
5293
5307
  {
5294
5308
  ref: panel,
@@ -5305,24 +5319,24 @@ function Drawer({ open, onClose, title, description, size = "sm", footer, childr
5305
5319
  className
5306
5320
  ),
5307
5321
  children: [
5308
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "flex items-start gap-3 px-5 pt-5 pb-2", children: [
5309
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: "min-w-0 flex-1", children: [
5310
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
5311
- description && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("p", { id: descId, className: "mt-0.5 text-sm text-text-secondary", children: description })
5322
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-start gap-3 px-5 pt-5 pb-2", children: [
5323
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "min-w-0 flex-1", children: [
5324
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
5325
+ description && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { id: descId, className: "mt-0.5 text-sm text-text-secondary", children: description })
5312
5326
  ] }),
5313
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
5327
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5314
5328
  "button",
5315
5329
  {
5316
5330
  type: "button",
5317
5331
  onClick: onClose,
5318
5332
  "aria-label": "Close",
5319
5333
  className: "-mr-1.5 -mt-1 flex size-8 shrink-0 items-center justify-center rounded-control text-text-tertiary hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
5320
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_lucide_react27.X, { size: 16, "aria-hidden": "true" })
5334
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_lucide_react28.X, { size: 16, "aria-hidden": "true" })
5321
5335
  }
5322
5336
  )
5323
5337
  ] }),
5324
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { "data-drawer-body": true, className: "min-h-0 flex-1 overflow-y-auto px-5 pt-1 pb-5 text-sm text-text-primary", children }),
5325
- footer && /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("div", { "data-drawer-footer": true, className: "flex items-center justify-end gap-2 border-t border-border-default px-5 py-3", children: footer })
5338
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { "data-drawer-body": true, className: "min-h-0 flex-1 overflow-y-auto px-5 pt-1 pb-5 text-sm text-text-primary", children }),
5339
+ footer && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { "data-drawer-footer": true, className: "flex items-center justify-end gap-2 border-t border-border-default px-5 py-3", children: footer })
5326
5340
  ]
5327
5341
  }
5328
5342
  )
@@ -5333,7 +5347,7 @@ function Drawer({ open, onClose, title, description, size = "sm", footer, childr
5333
5347
 
5334
5348
  // src/DataTable.tsx
5335
5349
  var import_react28 = require("react");
5336
- var import_jsx_runtime53 = require("react/jsx-runtime");
5350
+ var import_jsx_runtime54 = require("react/jsx-runtime");
5337
5351
  var WIDTH3 = { fill: "", sm: "w-24", md: "w-36", lg: "w-48" };
5338
5352
  var MAX_H = { sm: "max-h-80", md: "max-h-120", lg: "max-h-160" };
5339
5353
  var HEAD_PAD = { default: "px-4 py-3", compact: "px-3 py-2" };
@@ -5366,20 +5380,20 @@ function DataTable({
5366
5380
  const col = columns.find((c) => c.key === key);
5367
5381
  onSortChange?.(cycleSort(sort, key, col?.firstDir ?? (col?.numeric ? "desc" : "asc")));
5368
5382
  };
5369
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5383
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5370
5384
  "div",
5371
5385
  {
5372
5386
  className: cn("flex w-full flex-col overflow-hidden rounded-card border border-border-default bg-surface", className),
5373
5387
  "data-testid": testIdPrefix,
5374
5388
  children: [
5375
- title && /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "flex items-start justify-between gap-2 p-card-padding", children: [
5376
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "min-w-0", children: [
5377
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("h3", { id: titleId, className: "text-style-card-title", children: title }),
5378
- subtitle && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("p", { className: "mt-0.5 text-xs text-text-tertiary", children: subtitle })
5389
+ title && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "flex items-start justify-between gap-2 p-card-padding", children: [
5390
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "min-w-0", children: [
5391
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("h3", { id: titleId, className: "text-style-card-title", children: title }),
5392
+ subtitle && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("p", { className: "mt-0.5 text-xs text-text-tertiary", children: subtitle })
5379
5393
  ] }),
5380
- action && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "shrink-0", children: action })
5394
+ action && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "shrink-0", children: action })
5381
5395
  ] }),
5382
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: cn("overflow-x-auto", maxHeight && cn("overflow-y-auto", MAX_H[maxHeight])), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
5396
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: cn("overflow-x-auto", maxHeight && cn("overflow-y-auto", MAX_H[maxHeight])), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
5383
5397
  "table",
5384
5398
  {
5385
5399
  "aria-labelledby": title ? titleId : void 0,
@@ -5387,13 +5401,13 @@ function DataTable({
5387
5401
  "aria-busy": loading || void 0,
5388
5402
  className: "w-full border-collapse text-left",
5389
5403
  children: [
5390
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("thead", { className: cn(maxHeight && "sticky top-0 z-10"), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("tr", { className: "bg-subtle text-micro font-semibold uppercase tracking-wider text-text-secondary", children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5404
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("thead", { className: cn(maxHeight && "sticky top-0 z-10"), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("tr", { className: "bg-subtle text-micro font-semibold uppercase tracking-wider text-text-secondary", children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5391
5405
  "th",
5392
5406
  {
5393
5407
  scope: "col",
5394
5408
  "aria-sort": c.sortable ? ariaSortFor(sort, c.key) : void 0,
5395
- className: cn("border-b border-border-default font-semibold", head, align(c), width(c)),
5396
- children: c.sortable && onSortChange ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5409
+ className: cn("whitespace-nowrap border-b border-border-default font-semibold", head, align(c), width(c)),
5410
+ children: c.sortable && onSortChange ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5397
5411
  SortButton,
5398
5412
  {
5399
5413
  label: c.label,
@@ -5407,7 +5421,7 @@ function DataTable({
5407
5421
  },
5408
5422
  c.key
5409
5423
  )) }) }),
5410
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("tbody", { className: "text-dense text-text-primary", children: loading ? Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("tr", { "aria-hidden": "true", className: "[&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("td", { className: cn("border-b border-border-default", pad, align(c)), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5424
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("tbody", { className: "text-dense text-text-primary", children: loading ? Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("tr", { "aria-hidden": "true", className: "[&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("td", { className: cn("border-b border-border-default", pad, align(c)), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5411
5425
  "span",
5412
5426
  {
5413
5427
  className: cn(
@@ -5415,7 +5429,7 @@ function DataTable({
5415
5429
  c.numeric ? "w-12" : "w-2/3"
5416
5430
  )
5417
5431
  }
5418
- ) }, c.key)) }, i)) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("td", { colSpan: columns.length, className: "px-6 py-12", children: empty ?? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(NoResultsEmptyState, {}) }) }) : rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("tr", { className: "hover:bg-subtle [&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
5432
+ ) }, c.key)) }, i)) : rows.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("tr", { children: /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("td", { colSpan: columns.length, className: "px-6 py-12", children: empty ?? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(NoResultsEmptyState, {}) }) }) : rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("tr", { className: "hover:bg-subtle [&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5419
5433
  "td",
5420
5434
  {
5421
5435
  className: cn("border-b border-border-default", pad, align(c), c.numeric && "tabular-nums"),
@@ -5426,14 +5440,14 @@ function DataTable({
5426
5440
  ]
5427
5441
  }
5428
5442
  ) }),
5429
- footer && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: "border-t border-border-default px-4 py-3", children: footer })
5443
+ footer && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: "border-t border-border-default px-4 py-3", children: footer })
5430
5444
  ]
5431
5445
  }
5432
5446
  );
5433
5447
  }
5434
5448
 
5435
5449
  // src/MediaLabel.tsx
5436
- var import_jsx_runtime54 = require("react/jsx-runtime");
5450
+ var import_jsx_runtime55 = require("react/jsx-runtime");
5437
5451
  var FILL = {
5438
5452
  TV: "bg-media-tv",
5439
5453
  CTV: "bg-media-ctv",
@@ -5444,7 +5458,7 @@ var FILL = {
5444
5458
  Magazine: "bg-media-magazine"
5445
5459
  };
5446
5460
  function MediaLabel({ type, className, testIdPrefix }) {
5447
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
5461
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5448
5462
  "span",
5449
5463
  {
5450
5464
  className: cn(
@@ -5460,9 +5474,9 @@ function MediaLabel({ type, className, testIdPrefix }) {
5460
5474
 
5461
5475
  // src/SuggestionChip.tsx
5462
5476
  var import_react29 = require("react");
5463
- var import_jsx_runtime55 = require("react/jsx-runtime");
5477
+ var import_jsx_runtime56 = require("react/jsx-runtime");
5464
5478
  var SuggestionChip = (0, import_react29.forwardRef)(function SuggestionChip2({ children, className, testIdPrefix, type = "button", ...props }, ref) {
5465
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
5479
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
5466
5480
  "button",
5467
5481
  {
5468
5482
  ref,
@@ -5473,7 +5487,7 @@ var SuggestionChip = (0, import_react29.forwardRef)(function SuggestionChip2({ c
5473
5487
  "inline-flex h-8 max-w-full items-center rounded-full border border-border-default bg-surface px-3 text-sm text-text-primary transition-colors duration-(--mr-motion-duration-interactive) ease-interactive hover:border-border-strong hover:bg-subtle focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
5474
5488
  className
5475
5489
  ),
5476
- children: /* @__PURE__ */ (0, import_jsx_runtime55.jsx)("span", { className: "truncate", children })
5490
+ children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("span", { className: "truncate", children })
5477
5491
  }
5478
5492
  );
5479
5493
  });
@@ -5481,10 +5495,10 @@ SuggestionChip.displayName = "SuggestionChip";
5481
5495
 
5482
5496
  // src/ToggleChip.tsx
5483
5497
  var import_react30 = require("react");
5484
- var import_lucide_react28 = require("lucide-react");
5485
- var import_jsx_runtime56 = require("react/jsx-runtime");
5498
+ var import_lucide_react29 = require("lucide-react");
5499
+ var import_jsx_runtime57 = require("react/jsx-runtime");
5486
5500
  var ToggleChip = (0, import_react30.forwardRef)(function ToggleChip2({ selected, onChange, children, className, testIdPrefix, type = "button", onClick, ...props }, ref) {
5487
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(
5501
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5488
5502
  "button",
5489
5503
  {
5490
5504
  ref,
@@ -5502,7 +5516,7 @@ var ToggleChip = (0, import_react30.forwardRef)(function ToggleChip2({ selected,
5502
5516
  className
5503
5517
  ),
5504
5518
  children: [
5505
- selected && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_lucide_react28.Check, { size: 14, "aria-hidden": "true", className: "-ml-0.5 shrink-0" }),
5519
+ selected && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react29.Check, { size: 14, "aria-hidden": "true", className: "-ml-0.5 shrink-0" }),
5506
5520
  children
5507
5521
  ]
5508
5522
  }
@@ -5512,8 +5526,8 @@ ToggleChip.displayName = "ToggleChip";
5512
5526
 
5513
5527
  // src/CopyButton.tsx
5514
5528
  var import_react31 = require("react");
5515
- var import_lucide_react29 = require("lucide-react");
5516
- var import_jsx_runtime57 = require("react/jsx-runtime");
5529
+ var import_lucide_react30 = require("lucide-react");
5530
+ var import_jsx_runtime58 = require("react/jsx-runtime");
5517
5531
  var CONFIRM_MS = 2e3;
5518
5532
  var CopyButton = (0, import_react31.forwardRef)(function CopyButton2({ value, label, "aria-label": ariaLabel, size = "xs", className, testIdPrefix }, ref) {
5519
5533
  const [copied, setCopied] = (0, import_react31.useState)(false);
@@ -5530,8 +5544,8 @@ var CopyButton = (0, import_react31.forwardRef)(function CopyButton2({ value, la
5530
5544
  timer.current = setTimeout(() => setCopied(false), CONFIRM_MS);
5531
5545
  };
5532
5546
  const iconSize = size === "xs" ? 13 : 15;
5533
- const icon = copied ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react29.Check, { size: iconSize, "aria-hidden": "true", className: "shrink-0 text-text-success" }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react29.Copy, { size: iconSize, "aria-hidden": "true", className: "shrink-0" });
5534
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
5547
+ const icon = copied ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react30.Check, { size: iconSize, "aria-hidden": "true", className: "shrink-0 text-text-success" }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react30.Copy, { size: iconSize, "aria-hidden": "true", className: "shrink-0" });
5548
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
5535
5549
  Button,
5536
5550
  {
5537
5551
  ref,
@@ -5545,8 +5559,8 @@ var CopyButton = (0, import_react31.forwardRef)(function CopyButton2({ value, la
5545
5559
  className: cn(!copied && "text-text-secondary", className),
5546
5560
  children: [
5547
5561
  icon,
5548
- label && /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { children: copied ? "Copied" : label }),
5549
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })
5562
+ label && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { children: copied ? "Copied" : label }),
5563
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })
5550
5564
  ]
5551
5565
  }
5552
5566
  );
@@ -5554,8 +5568,8 @@ var CopyButton = (0, import_react31.forwardRef)(function CopyButton2({ value, la
5554
5568
  CopyButton.displayName = "CopyButton";
5555
5569
 
5556
5570
  // src/InlineMessage.tsx
5557
- var import_lucide_react30 = require("lucide-react");
5558
- var import_jsx_runtime58 = require("react/jsx-runtime");
5571
+ var import_lucide_react31 = require("lucide-react");
5572
+ var import_jsx_runtime59 = require("react/jsx-runtime");
5559
5573
  var BOX = {
5560
5574
  info: "border-brand-primaryAction/30 bg-brand-primaryAction/10",
5561
5575
  success: "border-status-success/40 bg-status-success/10",
@@ -5569,30 +5583,30 @@ var ICON_INK = {
5569
5583
  warning: "text-text-warning",
5570
5584
  danger: "text-text-danger"
5571
5585
  };
5572
- var ICON2 = { info: import_lucide_react30.Info, success: import_lucide_react30.CheckCircle2, warning: import_lucide_react30.AlertTriangle, danger: import_lucide_react30.XCircle };
5586
+ var ICON2 = { info: import_lucide_react31.Info, success: import_lucide_react31.CheckCircle2, warning: import_lucide_react31.AlertTriangle, danger: import_lucide_react31.XCircle };
5573
5587
  function InlineMessage({ tone = "info", title, children, actions, onDismiss, className, testIdPrefix }) {
5574
5588
  const Icon = ICON2[tone];
5575
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
5589
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5576
5590
  "div",
5577
5591
  {
5578
5592
  role: tone === "warning" || tone === "danger" ? "alert" : "status",
5579
5593
  className: cn("flex items-start gap-2.5 rounded-control border px-3 py-2.5 text-sm", BOX[tone], className),
5580
5594
  "data-testid": testIdPrefix,
5581
5595
  children: [
5582
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Icon, { size: 16, "aria-hidden": "true", className: cn("mt-0.5 shrink-0", ICON_INK[tone]) }),
5583
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "min-w-0 flex-1", children: [
5584
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: "font-semibold text-text-primary", children: title }),
5585
- children && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "mt-0.5 text-text-secondary", children }),
5586
- actions && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: actions })
5596
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Icon, { size: 16, "aria-hidden": "true", className: cn("mt-0.5 shrink-0", ICON_INK[tone]) }),
5597
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "min-w-0 flex-1", children: [
5598
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: "font-semibold text-text-primary", children: title }),
5599
+ children && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mt-0.5 text-text-secondary", children }),
5600
+ actions && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: actions })
5587
5601
  ] }),
5588
- onDismiss && /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5602
+ onDismiss && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5589
5603
  "button",
5590
5604
  {
5591
5605
  type: "button",
5592
5606
  onClick: onDismiss,
5593
5607
  "aria-label": "Dismiss",
5594
5608
  className: "-mr-1 -mt-0.5 flex size-6 shrink-0 items-center justify-center rounded-control text-text-tertiary hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
5595
- children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react30.X, { size: 14, "aria-hidden": "true" })
5609
+ children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react31.X, { size: 14, "aria-hidden": "true" })
5596
5610
  }
5597
5611
  )
5598
5612
  ]
@@ -5602,8 +5616,8 @@ function InlineMessage({ tone = "info", title, children, actions, onDismiss, cla
5602
5616
 
5603
5617
  // src/FilterDrawer.tsx
5604
5618
  var import_react32 = require("react");
5605
- var import_lucide_react31 = require("lucide-react");
5606
- var import_jsx_runtime59 = require("react/jsx-runtime");
5619
+ var import_lucide_react32 = require("lucide-react");
5620
+ var import_jsx_runtime60 = require("react/jsx-runtime");
5607
5621
  var SLIDE_MS = 200;
5608
5622
  function reducedMotion() {
5609
5623
  return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
@@ -5665,8 +5679,8 @@ function FilterDrawer({
5665
5679
  const outgoing = phase === "start" ? void 0 : dir > 0 ? "translateX(-33%)" : "translateX(100%)";
5666
5680
  const panel = (v, rows = true) => {
5667
5681
  const s = v ? sections.find((x) => x.id === v) : void 0;
5668
- if (s) return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "border-t border-border-default px-5 pt-4", children: renderSection(s.id) });
5669
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("ul", { className: "border-t border-border-default", children: sections.map((x) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("li", { className: "border-b border-border-default", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5682
+ if (s) return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "border-t border-border-default px-5 pt-4", children: renderSection(s.id) });
5683
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ul", { className: "border-t border-border-default", children: sections.map((x) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("li", { className: "border-b border-border-default", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5670
5684
  "button",
5671
5685
  {
5672
5686
  ref: rows ? (el) => {
@@ -5678,7 +5692,7 @@ function FilterDrawer({
5678
5692
  "data-testid": testIdPrefix && `${testIdPrefix}-row-${x.id}`,
5679
5693
  className: "flex w-full items-center gap-3 px-5 py-3.5 text-left transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-border-focus",
5680
5694
  children: [
5681
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5695
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5682
5696
  x.icon,
5683
5697
  {
5684
5698
  size: 17,
@@ -5686,22 +5700,22 @@ function FilterDrawer({
5686
5700
  className: x.badge ? "text-brand-primaryAction" : "text-text-secondary"
5687
5701
  }
5688
5702
  ),
5689
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("span", { className: "flex-1 text-sm font-medium text-text-primary", children: x.label }),
5690
- x.badge && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Badge, { tone: "brand", children: x.badge }),
5691
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react31.ChevronRight, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
5703
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "flex-1 text-sm font-medium text-text-primary", children: x.label }),
5704
+ x.badge && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Badge, { tone: "brand", children: x.badge }),
5705
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react32.ChevronRight, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
5692
5706
  ]
5693
5707
  }
5694
5708
  ) }, x.id)) });
5695
5709
  };
5696
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5710
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5697
5711
  Drawer,
5698
5712
  {
5699
5713
  open,
5700
5714
  onClose,
5701
5715
  size,
5702
5716
  testIdPrefix,
5703
- title: focused ? /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "flex items-center gap-1.5", children: [
5704
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5717
+ title: focused ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { className: "flex items-center gap-1.5", children: [
5718
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5705
5719
  "button",
5706
5720
  {
5707
5721
  ref: backRef,
@@ -5710,23 +5724,23 @@ function FilterDrawer({
5710
5724
  "aria-label": "Back to all filters",
5711
5725
  "data-testid": testIdPrefix && `${testIdPrefix}-back`,
5712
5726
  className: "-ml-1.5 rounded-control p-1 text-text-secondary hover:bg-subtle hover:text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
5713
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_lucide_react31.ChevronLeft, { size: 18, "aria-hidden": "true" })
5727
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react32.ChevronLeft, { size: 18, "aria-hidden": "true" })
5714
5728
  }
5715
5729
  ),
5716
5730
  focused.label,
5717
- focused.info && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(InfoTip, { text: focused.info, label: `About ${focused.label}` })
5718
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("span", { className: "flex items-center gap-2.5", children: [
5731
+ focused.info && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(InfoTip, { text: focused.info, label: `About ${focused.label}` })
5732
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("span", { className: "flex items-center gap-2.5", children: [
5719
5733
  "Filters",
5720
- activeCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Badge, { tone: "brandSolid", kind: "count", children: activeCount })
5734
+ activeCount > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Badge, { tone: "brandSolid", kind: "count", children: activeCount })
5721
5735
  ] }),
5722
5736
  footer: focused ? (
5723
5737
  // Picks are kept as they're made; only See results, on the list, applies them.
5724
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex w-full items-center", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { variant: "link", size: "md", onClick: () => onClearSection(focused.id), className: "px-0", children: "Clear" }) })
5725
- ) : /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex w-full items-center justify-between gap-2", children: [
5726
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { variant: "link", size: "md", onClick: onClearAll, className: "px-0", children: "Clear all" }),
5727
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center gap-2", children: [
5728
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Button, { variant: "secondary", size: "md", onClick: onClose, children: "Cancel" }),
5729
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5738
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: "flex w-full items-center", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { variant: "link", size: "md", onClick: () => onClearSection(focused.id), className: "px-0", children: "Clear" }) })
5739
+ ) : /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex w-full items-center justify-between gap-2", children: [
5740
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { variant: "link", size: "md", onClick: onClearAll, className: "px-0", children: "Clear all" }),
5741
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "flex items-center gap-2", children: [
5742
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Button, { variant: "secondary", size: "md", onClick: onClose, children: "Cancel" }),
5743
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5730
5744
  Button,
5731
5745
  {
5732
5746
  variant: "primary",
@@ -5740,8 +5754,8 @@ function FilterDrawer({
5740
5754
  )
5741
5755
  ] })
5742
5756
  ] }),
5743
- children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "relative -mx-5 overflow-x-clip", children: [
5744
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5757
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: "relative -mx-5 overflow-x-clip", children: [
5758
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5745
5759
  "div",
5746
5760
  {
5747
5761
  style: { transform: incoming },
@@ -5750,7 +5764,7 @@ function FilterDrawer({
5750
5764
  },
5751
5765
  view ?? "__list"
5752
5766
  ),
5753
- leaving && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5767
+ leaving && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5754
5768
  "div",
5755
5769
  {
5756
5770
  "aria-hidden": "true",
@@ -5767,10 +5781,10 @@ function FilterDrawer({
5767
5781
 
5768
5782
  // src/AllFiltersButton.tsx
5769
5783
  var import_react33 = require("react");
5770
- var import_lucide_react32 = require("lucide-react");
5771
- var import_jsx_runtime60 = require("react/jsx-runtime");
5784
+ var import_lucide_react33 = require("lucide-react");
5785
+ var import_jsx_runtime61 = require("react/jsx-runtime");
5772
5786
  var AllFiltersButton = (0, import_react33.forwardRef)(function AllFiltersButton2({ count = 0, open, className, testIdPrefix, ...rest }, ref) {
5773
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5787
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5774
5788
  "button",
5775
5789
  {
5776
5790
  ref,
@@ -5782,9 +5796,9 @@ var AllFiltersButton = (0, import_react33.forwardRef)(function AllFiltersButton2
5782
5796
  className: cn(chipTriggerClass(), className),
5783
5797
  ...rest,
5784
5798
  children: [
5785
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react32.SlidersHorizontal, { size: 15, "aria-hidden": "true", className: "text-text-secondary" }),
5786
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("span", { className: "text-dense font-medium text-text-primary", children: "All filters" }),
5787
- count > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(Badge, { tone: "brandSolid", kind: "count", children: count })
5799
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react33.SlidersHorizontal, { size: 15, "aria-hidden": "true", className: "text-text-secondary" }),
5800
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "text-dense font-medium text-text-primary", children: "All filters" }),
5801
+ count > 0 && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Badge, { tone: "brandSolid", kind: "count", children: count })
5788
5802
  ]
5789
5803
  }
5790
5804
  );
@@ -5793,8 +5807,8 @@ var AllFiltersButton = (0, import_react33.forwardRef)(function AllFiltersButton2
5793
5807
  // src/Menu.tsx
5794
5808
  var import_react34 = require("react");
5795
5809
  var import_react_slot2 = require("@radix-ui/react-slot");
5796
- var import_lucide_react33 = require("lucide-react");
5797
- var import_jsx_runtime61 = require("react/jsx-runtime");
5810
+ var import_lucide_react34 = require("lucide-react");
5811
+ var import_jsx_runtime62 = require("react/jsx-runtime");
5798
5812
  var ROW_SELECTOR = '[role^="menuitem"]:not([aria-disabled="true"]):not(:disabled)';
5799
5813
  function moveFocus(e) {
5800
5814
  const keys = ["ArrowDown", "ArrowUp", "Home", "End"];
@@ -5807,7 +5821,7 @@ function moveFocus(e) {
5807
5821
  rows[next].focus();
5808
5822
  }
5809
5823
  var Menu = (0, import_react34.forwardRef)(
5810
- ({ className, testIdPrefix, onKeyDown, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5824
+ ({ className, testIdPrefix, onKeyDown, children, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5811
5825
  "div",
5812
5826
  {
5813
5827
  ref,
@@ -5828,20 +5842,20 @@ var MenuItem = (0, import_react34.forwardRef)(
5828
5842
  ({ className, testIdPrefix, icon, trailing, description, submenu, checked, danger, disabled, asChild = false, children, ...props }, ref) => {
5829
5843
  const Comp = asChild ? import_react_slot2.Slot : "button";
5830
5844
  const radio = checked !== void 0;
5831
- const body = /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_jsx_runtime61.Fragment, { children: [
5832
- icon && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { "aria-hidden": "true", className: cn("flex shrink-0", danger ? "text-text-danger" : "text-text-secondary"), children: icon }),
5845
+ const body = /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_jsx_runtime62.Fragment, { children: [
5846
+ icon && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { "aria-hidden": "true", className: cn("flex shrink-0", danger ? "text-text-danger" : "text-text-secondary"), children: icon }),
5833
5847
  asChild ? (
5834
5848
  // The link's own text lands here; the link becomes the row.
5835
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_slot2.Slottable, { children })
5836
- ) : /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("span", { className: "min-w-0 flex-1", children: [
5837
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "block truncate", children }),
5838
- description && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "block truncate text-xs text-text-tertiary", children: description })
5849
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_slot2.Slottable, { children })
5850
+ ) : /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("span", { className: "min-w-0 flex-1", children: [
5851
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "block truncate", children }),
5852
+ description && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "block truncate text-xs text-text-tertiary", children: description })
5839
5853
  ] }),
5840
- trailing && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("span", { className: "ml-auto flex shrink-0 items-center text-xs text-text-secondary", children: trailing }),
5841
- radio && checked && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react33.Check, { size: 16, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }),
5842
- submenu && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react33.ChevronRight, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
5854
+ trailing && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { className: "ml-auto flex shrink-0 items-center text-xs text-text-secondary", children: trailing }),
5855
+ radio && checked && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react34.Check, { size: 16, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }),
5856
+ submenu && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_lucide_react34.ChevronRight, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
5843
5857
  ] });
5844
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5858
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5845
5859
  Comp,
5846
5860
  {
5847
5861
  ref,
@@ -5868,7 +5882,7 @@ var MenuItem = (0, import_react34.forwardRef)(
5868
5882
  );
5869
5883
  MenuItem.displayName = "MenuItem";
5870
5884
  function MenuLabel({ className, testIdPrefix, children }) {
5871
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5885
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5872
5886
  "div",
5873
5887
  {
5874
5888
  role: "presentation",
@@ -5879,7 +5893,7 @@ function MenuLabel({ className, testIdPrefix, children }) {
5879
5893
  );
5880
5894
  }
5881
5895
  function MenuSeparator({ className, testIdPrefix }) {
5882
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { role: "separator", "data-testid": testIdPrefix, className: cn("-mx-1 my-1 border-t border-border-default", className) });
5896
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { role: "separator", "data-testid": testIdPrefix, className: cn("-mx-1 my-1 border-t border-border-default", className) });
5883
5897
  }
5884
5898
  // Annotate the CommonJS export names for ESM import in node:
5885
5899
  0 && (module.exports = {
@@ -5929,6 +5943,7 @@ function MenuSeparator({ className, testIdPrefix }) {
5929
5943
  PageHeader,
5930
5944
  Pager,
5931
5945
  PieChartPlaceholder,
5946
+ PrimaryBadge,
5932
5947
  PublisherBreakdownList,
5933
5948
  QUIET_ACTION_CLASS,
5934
5949
  SearchBar,