@mediaradar/design-components 0.53.0 → 0.54.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.js CHANGED
@@ -2136,23 +2136,28 @@ function SelectFilter({
2136
2136
  // src/Card.tsx
2137
2137
  import { forwardRef as forwardRef3 } from "react";
2138
2138
  import { jsx as jsx14, jsxs as jsxs13 } from "react/jsx-runtime";
2139
- var Card = forwardRef3(function Card2({ staticCard, title, titleAs: TitleTag = "h3", subtitle, action, className, testIdPrefix, children, ...rest }, ref) {
2139
+ var Card = forwardRef3(function Card2({ staticCard, title, titleAs: TitleTag = "h3", subtitle, info, variant = "default", action, className, testIdPrefix, children, ...rest }, ref) {
2140
+ const chart = variant === "chart";
2140
2141
  return /* @__PURE__ */ jsx14(
2141
2142
  "article",
2142
2143
  {
2143
2144
  ref,
2144
2145
  className: cn(
2145
- "flex h-full flex-col overflow-hidden rounded-card border border-border-default bg-surface shadow-raised",
2146
+ "flex h-full flex-col overflow-hidden rounded-card border border-border-default bg-surface",
2147
+ !chart && "shadow-raised",
2146
2148
  // Interactive hover: deeper drop shadow only -- no elevation/transform.
2147
- !staticCard && "group transition-shadow hover:shadow-overlay",
2149
+ !staticCard && !chart && "group transition-shadow hover:shadow-overlay",
2148
2150
  className
2149
2151
  ),
2150
2152
  "data-testid": testIdPrefix,
2151
2153
  ...rest,
2152
2154
  children: title ? /* @__PURE__ */ jsxs13("div", { className: "flex flex-1 flex-col p-card-padding", children: [
2153
2155
  /* @__PURE__ */ jsxs13("div", { className: "flex items-start justify-between gap-2", children: [
2154
- /* @__PURE__ */ jsxs13("div", { children: [
2155
- /* @__PURE__ */ jsx14(TitleTag, { className: "text-style-card-title", children: title }),
2156
+ /* @__PURE__ */ jsxs13("div", { className: "min-w-0", children: [
2157
+ /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-1.5", children: [
2158
+ /* @__PURE__ */ jsx14(TitleTag, { className: chart ? "text-panel-title font-semibold text-text-primary" : "text-style-card-title", children: title }),
2159
+ info && /* @__PURE__ */ jsx14(InfoTip, { text: info, label: `About ${title.toLowerCase()}` })
2160
+ ] }),
2156
2161
  subtitle && /* @__PURE__ */ jsx14("p", { className: "mt-0.5 text-xs leading-snug text-text-tertiary", children: subtitle })
2157
2162
  ] }),
2158
2163
  action && /* @__PURE__ */ jsx14("div", { className: "shrink-0 text-text-tertiary", children: action })
@@ -2163,9 +2168,162 @@ var Card = forwardRef3(function Card2({ staticCard, title, titleAs: TitleTag = "
2163
2168
  );
2164
2169
  });
2165
2170
 
2171
+ // src/StatStrip.tsx
2172
+ import { forwardRef as forwardRef4 } from "react";
2173
+ import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
2174
+ var StatStrip = forwardRef4(
2175
+ ({ className, testIdPrefix, children, ...props }, ref) => /* @__PURE__ */ jsx15(
2176
+ "div",
2177
+ {
2178
+ ref,
2179
+ role: "group",
2180
+ "data-testid": testIdPrefix,
2181
+ className: cn(
2182
+ "grid divide-y divide-border-default rounded-card border border-border-default bg-surface",
2183
+ "sm:auto-cols-fr sm:grid-flow-col sm:divide-x sm:divide-y-0",
2184
+ className
2185
+ ),
2186
+ ...props,
2187
+ children
2188
+ }
2189
+ )
2190
+ );
2191
+ StatStrip.displayName = "StatStrip";
2192
+ function StatTile({ label, value, unit, change, note, icon, info, children, className, testIdPrefix }) {
2193
+ return /* @__PURE__ */ jsxs14("div", { "data-testid": testIdPrefix, className: cn("flex min-w-0 flex-col gap-1 px-5 py-3", className), children: [
2194
+ /* @__PURE__ */ jsxs14("span", { className: "flex items-center gap-1.5 text-micro font-semibold uppercase tracking-wide text-text-tertiary", children: [
2195
+ icon && /* @__PURE__ */ jsx15("span", { "aria-hidden": "true", className: "flex shrink-0 text-brand-primaryAction", children: icon }),
2196
+ label,
2197
+ info && /* @__PURE__ */ jsx15(InfoTip, { text: info, label: `About ${label.toLowerCase()}` })
2198
+ ] }),
2199
+ /* @__PURE__ */ jsxs14("span", { className: "flex flex-wrap items-baseline gap-x-2.5 gap-y-0.5", children: [
2200
+ /* @__PURE__ */ jsxs14("span", { className: "text-xl font-bold leading-tight tracking-tight tabular-nums text-text-primary", children: [
2201
+ value,
2202
+ unit && /* @__PURE__ */ jsxs14("span", { className: "text-dense font-medium tracking-normal text-text-tertiary", children: [
2203
+ " ",
2204
+ unit
2205
+ ] })
2206
+ ] }),
2207
+ change && /* @__PURE__ */ jsx15("span", { className: "text-card-title font-medium", children: change })
2208
+ ] }),
2209
+ note && /* @__PURE__ */ jsx15("span", { className: "text-xs text-text-tertiary", children: note }),
2210
+ children && /* @__PURE__ */ jsx15("div", { className: "text-xs text-text-secondary", children })
2211
+ ] });
2212
+ }
2213
+
2214
+ // src/ChartLegend.tsx
2215
+ import { forwardRef as forwardRef5 } from "react";
2216
+ import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
2217
+ var ChartLegend = forwardRef5(
2218
+ ({ className, testIdPrefix, children, ...props }, ref) => /* @__PURE__ */ jsx16(
2219
+ "ul",
2220
+ {
2221
+ ref,
2222
+ "data-testid": testIdPrefix,
2223
+ className: cn("flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-text-tertiary", className),
2224
+ ...props,
2225
+ children
2226
+ }
2227
+ )
2228
+ );
2229
+ ChartLegend.displayName = "ChartLegend";
2230
+ var MARK = {
2231
+ dot: "size-2 rounded-pill",
2232
+ square: "size-2.5 rounded-xs",
2233
+ line: "h-px w-4 rounded-pill",
2234
+ dashed: "w-4 border-t border-dashed"
2235
+ };
2236
+ function LegendItem({ mark = "dot", color, you = false, children, className, testIdPrefix }) {
2237
+ const dashed = mark === "dashed";
2238
+ return /* @__PURE__ */ jsxs15("li", { "data-testid": testIdPrefix, className: cn("flex items-center gap-1.5", you && "text-text-secondary", className), children: [
2239
+ /* @__PURE__ */ jsx16(
2240
+ "span",
2241
+ {
2242
+ "aria-hidden": "true",
2243
+ className: cn(
2244
+ "shrink-0",
2245
+ MARK[mark],
2246
+ you && mark === "line" && "h-0.75",
2247
+ you && mark === "dot" && "size-2.5",
2248
+ !color && (dashed ? "border-text-tertiary" : "bg-text-tertiary")
2249
+ ),
2250
+ style: color ? dashed ? { borderColor: color } : { background: color } : void 0
2251
+ }
2252
+ ),
2253
+ /* @__PURE__ */ jsxs15("span", { children: [
2254
+ children,
2255
+ you && " (you)"
2256
+ ] })
2257
+ ] });
2258
+ }
2259
+
2260
+ // src/BarList.tsx
2261
+ import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
2262
+ var COL_WIDTH = ["w-16", "w-13"];
2263
+ function BarList({ rows, columns, empty, className, testIdPrefix, "aria-label": ariaLabel }) {
2264
+ if (!rows.length) {
2265
+ return empty ? /* @__PURE__ */ jsx17("p", { className: cn("text-xs text-text-tertiary", className), children: empty }) : null;
2266
+ }
2267
+ const max = Math.max(...rows.flatMap((r) => [r.bar, r.tick ?? 0]), 1);
2268
+ const full = !!columns?.length;
2269
+ const colClass = (i) => full ? COL_WIDTH[i] ?? "w-13" : "";
2270
+ return /* @__PURE__ */ jsxs16("div", { "data-testid": testIdPrefix, className: cn("flex flex-col", className), children: [
2271
+ full && /* @__PURE__ */ jsxs16("div", { "aria-hidden": "true", className: "flex items-baseline gap-2 pb-1", children: [
2272
+ /* @__PURE__ */ jsx17("span", { className: "flex-1" }),
2273
+ columns.map((c, i) => /* @__PURE__ */ jsx17("span", { className: cn("shrink-0 text-right text-micro font-medium text-text-tertiary", colClass(i)), children: c }, c))
2274
+ ] }),
2275
+ /* @__PURE__ */ jsx17("ul", { "aria-label": ariaLabel, className: "flex flex-col", children: rows.map((r) => /* @__PURE__ */ jsxs16("li", { className: "py-2", children: [
2276
+ /* @__PURE__ */ jsxs16("div", { className: "mb-1.5 flex items-baseline gap-2", children: [
2277
+ /* @__PURE__ */ jsxs16("span", { className: "min-w-0 flex-1 truncate text-dense font-semibold text-text-primary", children: [
2278
+ r.label,
2279
+ r.note && /* @__PURE__ */ jsxs16("span", { className: "font-normal text-text-tertiary", children: [
2280
+ " \xB7 ",
2281
+ r.note
2282
+ ] })
2283
+ ] }),
2284
+ r.values?.map((v, i) => /* @__PURE__ */ jsxs16(
2285
+ "span",
2286
+ {
2287
+ className: cn(
2288
+ "shrink-0 whitespace-nowrap text-right text-xs tabular-nums",
2289
+ full && i === 0 ? "font-semibold text-text-primary" : "text-text-secondary",
2290
+ colClass(i)
2291
+ ),
2292
+ children: [
2293
+ full && /* @__PURE__ */ jsxs16("span", { className: "sr-only", children: [
2294
+ columns[i],
2295
+ ": "
2296
+ ] }),
2297
+ v
2298
+ ]
2299
+ },
2300
+ i
2301
+ ))
2302
+ ] }),
2303
+ /* @__PURE__ */ jsxs16("div", { "aria-hidden": "true", className: "relative h-2 rounded-pill bg-subtle", children: [
2304
+ /* @__PURE__ */ jsx17(
2305
+ "div",
2306
+ {
2307
+ className: cn("h-full rounded-pill", !r.color && "bg-brand-primaryAction"),
2308
+ style: { width: `${Math.max(r.bar, 0) / max * 100}%`, background: r.color }
2309
+ }
2310
+ ),
2311
+ r.tick !== void 0 && /* @__PURE__ */ jsx17(
2312
+ "span",
2313
+ {
2314
+ className: "absolute -bottom-1 -top-1 w-0.5 -translate-x-1/2 rounded-pill bg-text-primary",
2315
+ style: { left: `${r.tick / max * 100}%` }
2316
+ }
2317
+ )
2318
+ ] }),
2319
+ r.tickLabel && /* @__PURE__ */ jsx17("span", { className: "sr-only", children: r.tickLabel })
2320
+ ] }, r.key)) })
2321
+ ] });
2322
+ }
2323
+
2166
2324
  // src/NoResultsEmptyState.tsx
2167
2325
  import { FilterX } from "lucide-react";
2168
- import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
2326
+ import { jsx as jsx18, jsxs as jsxs17 } from "react/jsx-runtime";
2169
2327
  var NO_RESULTS_TITLE = "No results match your filters";
2170
2328
  var NO_RESULTS_BODY = "Your filters may be too narrow, conflict with each other, or have no activity in this period.";
2171
2329
  function noResultsBody(workspaceName) {
@@ -2188,12 +2346,12 @@ function NoResultsEmptyState({
2188
2346
  const showClear = hasFilters !== false && Boolean(onClearFilters);
2189
2347
  const showEdit = Boolean(onEditFilters);
2190
2348
  const hasActions = showClear || showEdit || Boolean(actions && actions.length > 0);
2191
- return /* @__PURE__ */ jsxs14("div", { className: cn("flex flex-col items-center justify-center gap-3 text-center", className), "data-testid": testIdPrefix, children: [
2192
- /* @__PURE__ */ jsx15("span", { className: "flex h-11 w-11 items-center justify-center rounded-full bg-subtle text-text-tertiary", children: /* @__PURE__ */ jsx15(FilterX, { size: 20, "aria-hidden": "true" }) }),
2193
- /* @__PURE__ */ jsx15("h2", { className: "text-base font-semibold text-text-primary", children: title }),
2194
- /* @__PURE__ */ jsx15("p", { className: "max-w-105 text-dense leading-relaxed text-text-secondary", children: bodyText }),
2195
- hasActions && /* @__PURE__ */ jsxs14("div", { className: "mt-1 flex flex-col items-center gap-3", children: [
2196
- showClear && /* @__PURE__ */ jsx15(
2349
+ return /* @__PURE__ */ jsxs17("div", { className: cn("flex flex-col items-center justify-center gap-3 text-center", className), "data-testid": testIdPrefix, children: [
2350
+ /* @__PURE__ */ jsx18("span", { className: "flex h-11 w-11 items-center justify-center rounded-full bg-subtle text-text-tertiary", children: /* @__PURE__ */ jsx18(FilterX, { size: 20, "aria-hidden": "true" }) }),
2351
+ /* @__PURE__ */ jsx18("h2", { className: "text-base font-semibold text-text-primary", children: title }),
2352
+ /* @__PURE__ */ jsx18("p", { className: "max-w-105 text-dense leading-relaxed text-text-secondary", children: bodyText }),
2353
+ hasActions && /* @__PURE__ */ jsxs17("div", { className: "mt-1 flex flex-col items-center gap-3", children: [
2354
+ showClear && /* @__PURE__ */ jsx18(
2197
2355
  "button",
2198
2356
  {
2199
2357
  type: "button",
@@ -2203,7 +2361,7 @@ function NoResultsEmptyState({
2203
2361
  children: "Clear all filters"
2204
2362
  }
2205
2363
  ),
2206
- showEdit && /* @__PURE__ */ jsx15(
2364
+ showEdit && /* @__PURE__ */ jsx18(
2207
2365
  "button",
2208
2366
  {
2209
2367
  type: "button",
@@ -2213,7 +2371,7 @@ function NoResultsEmptyState({
2213
2371
  children: "Edit filters"
2214
2372
  }
2215
2373
  ),
2216
- actions?.map((action, i) => /* @__PURE__ */ jsx15(
2374
+ actions?.map((action, i) => /* @__PURE__ */ jsx18(
2217
2375
  "button",
2218
2376
  {
2219
2377
  type: "button",
@@ -2230,9 +2388,9 @@ function NoResultsEmptyState({
2230
2388
  // src/WorkspaceSelectedCard.tsx
2231
2389
  import { useEffect as useEffect7, useRef as useRef8, useState as useState7 } from "react";
2232
2390
  import { ChevronDown as ChevronDown6, X as X3 } from "lucide-react";
2233
- import { jsx as jsx16, jsxs as jsxs15 } from "react/jsx-runtime";
2391
+ import { jsx as jsx19, jsxs as jsxs18 } from "react/jsx-runtime";
2234
2392
  function WorkspaceSelectedCard({ groups, className, testIdPrefix }) {
2235
- return /* @__PURE__ */ jsx16(
2393
+ return /* @__PURE__ */ jsx19(
2236
2394
  "aside",
2237
2395
  {
2238
2396
  className: cn(
@@ -2240,7 +2398,7 @@ function WorkspaceSelectedCard({ groups, className, testIdPrefix }) {
2240
2398
  className
2241
2399
  ),
2242
2400
  "data-testid": testIdPrefix,
2243
- children: /* @__PURE__ */ jsx16("div", { className: "flex flex-col divide-y divide-border-default", children: groups.map((g) => /* @__PURE__ */ jsx16(SummaryGroupItem, { group: g, testIdPrefix }, g.id)) })
2401
+ children: /* @__PURE__ */ jsx19("div", { className: "flex flex-col divide-y divide-border-default", children: groups.map((g) => /* @__PURE__ */ jsx19(SummaryGroupItem, { group: g, testIdPrefix }, g.id)) })
2244
2402
  }
2245
2403
  );
2246
2404
  }
@@ -2259,8 +2417,8 @@ function SummaryGroupItem({
2259
2417
  else if (expandCount === 0) setOpen(false);
2260
2418
  wasEmpty.current = expandCount === 0;
2261
2419
  }, [expandCount]);
2262
- return /* @__PURE__ */ jsxs15("div", { className: nested ? "" : "py-3 first:pt-0 last:pb-0", children: [
2263
- /* @__PURE__ */ jsxs15(
2420
+ return /* @__PURE__ */ jsxs18("div", { className: nested ? "" : "py-3 first:pt-0 last:pb-0", children: [
2421
+ /* @__PURE__ */ jsxs18(
2264
2422
  "button",
2265
2423
  {
2266
2424
  type: "button",
@@ -2269,7 +2427,7 @@ function SummaryGroupItem({
2269
2427
  "data-testid": testIdPrefix && `${testIdPrefix}-group-${group.id}`,
2270
2428
  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",
2271
2429
  children: [
2272
- /* @__PURE__ */ jsx16(
2430
+ /* @__PURE__ */ jsx19(
2273
2431
  ChevronDown6,
2274
2432
  {
2275
2433
  size: 14,
@@ -2277,37 +2435,37 @@ function SummaryGroupItem({
2277
2435
  className: cn("shrink-0 text-text-secondary transition-transform", !open && "-rotate-90")
2278
2436
  }
2279
2437
  ),
2280
- /* @__PURE__ */ jsx16("span", { className: cn("truncate font-semibold text-text-primary", nested ? "text-xs" : "text-dense"), children: group.label }),
2281
- /* @__PURE__ */ jsx16("span", { className: "shrink-0 rounded-full bg-subtle px-1.5 py-0.5 text-micro font-semibold text-text-secondary", children: ownCount })
2438
+ /* @__PURE__ */ jsx19("span", { className: cn("truncate font-semibold text-text-primary", nested ? "text-xs" : "text-dense"), children: group.label }),
2439
+ /* @__PURE__ */ jsx19("span", { className: "shrink-0 rounded-full bg-subtle px-1.5 py-0.5 text-micro font-semibold text-text-secondary", children: ownCount })
2282
2440
  ]
2283
2441
  }
2284
2442
  ),
2285
- open && /* @__PURE__ */ jsx16("div", { className: "pt-2.5", children: ownCount === 0 && subCount === 0 ? /* @__PURE__ */ jsx16("p", { className: "text-xs text-text-secondary", children: "Nothing selected." }) : /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-2.5", children: [
2286
- ownCount > 0 && /* @__PURE__ */ jsxs15("div", { className: "flex flex-col gap-1.5", children: [
2287
- group.items.map((item) => /* @__PURE__ */ jsxs15(
2443
+ open && /* @__PURE__ */ jsx19("div", { className: "pt-2.5", children: ownCount === 0 && subCount === 0 ? /* @__PURE__ */ jsx19("p", { className: "text-xs text-text-secondary", children: "Nothing selected." }) : /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-2.5", children: [
2444
+ ownCount > 0 && /* @__PURE__ */ jsxs18("div", { className: "flex flex-col gap-1.5", children: [
2445
+ group.items.map((item) => /* @__PURE__ */ jsxs18(
2288
2446
  "div",
2289
2447
  {
2290
2448
  className: "flex items-center justify-between gap-2 rounded-control border border-border-default bg-canvas px-2 py-1",
2291
2449
  children: [
2292
- /* @__PURE__ */ jsxs15("span", { className: "min-w-0 flex-1", children: [
2293
- /* @__PURE__ */ jsx16("span", { className: "block truncate text-xs text-text-primary", children: item.name }),
2294
- item.meta && /* @__PURE__ */ jsx16("span", { className: "block truncate text-micro text-text-secondary", children: item.meta })
2450
+ /* @__PURE__ */ jsxs18("span", { className: "min-w-0 flex-1", children: [
2451
+ /* @__PURE__ */ jsx19("span", { className: "block truncate text-xs text-text-primary", children: item.name }),
2452
+ item.meta && /* @__PURE__ */ jsx19("span", { className: "block truncate text-micro text-text-secondary", children: item.meta })
2295
2453
  ] }),
2296
- /* @__PURE__ */ jsx16(
2454
+ /* @__PURE__ */ jsx19(
2297
2455
  "button",
2298
2456
  {
2299
2457
  type: "button",
2300
2458
  "aria-label": `Remove ${item.name}`,
2301
2459
  onClick: () => group.onRemove(item.id),
2302
2460
  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",
2303
- children: /* @__PURE__ */ jsx16(X3, { size: 12, "aria-hidden": "true" })
2461
+ children: /* @__PURE__ */ jsx19(X3, { size: 12, "aria-hidden": "true" })
2304
2462
  }
2305
2463
  )
2306
2464
  ]
2307
2465
  },
2308
2466
  item.id
2309
2467
  )),
2310
- /* @__PURE__ */ jsx16(
2468
+ /* @__PURE__ */ jsx19(
2311
2469
  "button",
2312
2470
  {
2313
2471
  type: "button",
@@ -2318,13 +2476,13 @@ function SummaryGroupItem({
2318
2476
  }
2319
2477
  )
2320
2478
  ] }),
2321
- group.subGroups?.map((sg) => /* @__PURE__ */ jsx16(SummaryGroupItem, { group: sg, nested: true, testIdPrefix }, sg.id))
2479
+ group.subGroups?.map((sg) => /* @__PURE__ */ jsx19(SummaryGroupItem, { group: sg, nested: true, testIdPrefix }, sg.id))
2322
2480
  ] }) })
2323
2481
  ] });
2324
2482
  }
2325
2483
 
2326
2484
  // src/chart-placeholder-shared.tsx
2327
- import { jsx as jsx17, jsxs as jsxs16 } from "react/jsx-runtime";
2485
+ import { jsx as jsx20, jsxs as jsxs19 } from "react/jsx-runtime";
2328
2486
  var GRID_ROWS = [0, 25, 50, 75, 100];
2329
2487
  var Y_TICK_WIDTHS = [26, 30, 30, 26, 20];
2330
2488
  var Y_AXIS_W = 48;
@@ -2338,9 +2496,9 @@ function AxisFrame({
2338
2496
  testIdPrefix
2339
2497
  }) {
2340
2498
  const gutter = xTicks > 0 ? X_AXIS_H : 0;
2341
- return /* @__PURE__ */ jsx17("div", { className: cn("w-full", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: /* @__PURE__ */ jsxs16("div", { className: "relative h-full w-full", children: [
2342
- /* @__PURE__ */ jsxs16("div", { className: "absolute inset-y-0 right-0", style: { left: Y_AXIS_W, bottom: gutter }, children: [
2343
- GRID_ROWS.map((pct) => /* @__PURE__ */ jsx17(
2499
+ return /* @__PURE__ */ jsx20("div", { className: cn("w-full", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: /* @__PURE__ */ jsxs19("div", { className: "relative h-full w-full", children: [
2500
+ /* @__PURE__ */ jsxs19("div", { className: "absolute inset-y-0 right-0", style: { left: Y_AXIS_W, bottom: gutter }, children: [
2501
+ GRID_ROWS.map((pct) => /* @__PURE__ */ jsx20(
2344
2502
  "div",
2345
2503
  {
2346
2504
  className: "absolute inset-x-0 border-t border-dashed",
@@ -2348,9 +2506,9 @@ function AxisFrame({
2348
2506
  },
2349
2507
  pct
2350
2508
  )),
2351
- /* @__PURE__ */ jsx17("div", { className: "absolute inset-0", children })
2509
+ /* @__PURE__ */ jsx20("div", { className: "absolute inset-0", children })
2352
2510
  ] }),
2353
- /* @__PURE__ */ jsx17("div", { className: "absolute left-0 top-0", style: { width: Y_AXIS_W, bottom: gutter }, children: GRID_ROWS.map((pct, i) => /* @__PURE__ */ jsx17(
2511
+ /* @__PURE__ */ jsx20("div", { className: "absolute left-0 top-0", style: { width: Y_AXIS_W, bottom: gutter }, children: GRID_ROWS.map((pct, i) => /* @__PURE__ */ jsx20(
2354
2512
  "div",
2355
2513
  {
2356
2514
  className: "absolute right-2 h-2 -translate-y-1/2 rounded-xs bg-subtle",
@@ -2358,27 +2516,27 @@ function AxisFrame({
2358
2516
  },
2359
2517
  pct
2360
2518
  )) }),
2361
- xTicks > 0 && /* @__PURE__ */ jsx17(
2519
+ xTicks > 0 && /* @__PURE__ */ jsx20(
2362
2520
  "div",
2363
2521
  {
2364
2522
  className: "absolute bottom-0 right-0 flex items-center",
2365
2523
  style: { left: Y_AXIS_W, height: X_AXIS_H },
2366
- children: Array.from({ length: xTicks }, (_, i) => /* @__PURE__ */ jsx17("div", { className: "flex flex-1 justify-center", children: /* @__PURE__ */ jsx17("div", { className: "h-2 w-full max-w-6.5 rounded-xs bg-subtle" }) }, i))
2524
+ children: Array.from({ length: xTicks }, (_, i) => /* @__PURE__ */ jsx20("div", { className: "flex flex-1 justify-center", children: /* @__PURE__ */ jsx20("div", { className: "h-2 w-full max-w-6.5 rounded-xs bg-subtle" }) }, i))
2367
2525
  }
2368
2526
  )
2369
2527
  ] }) });
2370
2528
  }
2371
2529
  function BlankLegend({ rows, reverse = false }) {
2372
- return /* @__PURE__ */ jsx17(
2530
+ return /* @__PURE__ */ jsx20(
2373
2531
  "ul",
2374
2532
  {
2375
2533
  className: `flex flex-1 justify-center gap-1.5 ${reverse ? "flex-col-reverse" : "flex-col"}`,
2376
2534
  role: "presentation",
2377
2535
  "aria-hidden": "true",
2378
- children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsxs16("li", { className: "flex items-center justify-between gap-2", children: [
2379
- /* @__PURE__ */ jsxs16("span", { className: "flex items-center gap-1.5", children: [
2380
- /* @__PURE__ */ jsx17("span", { className: "h-2.5 w-2.5 rounded-xs bg-subtle" }),
2381
- /* @__PURE__ */ jsx17(
2536
+ children: Array.from({ length: rows }, (_, i) => /* @__PURE__ */ jsxs19("li", { className: "flex items-center justify-between gap-2", children: [
2537
+ /* @__PURE__ */ jsxs19("span", { className: "flex items-center gap-1.5", children: [
2538
+ /* @__PURE__ */ jsx20("span", { className: "h-2.5 w-2.5 rounded-xs bg-subtle" }),
2539
+ /* @__PURE__ */ jsx20(
2382
2540
  "span",
2383
2541
  {
2384
2542
  className: "h-2 rounded-xs bg-subtle",
@@ -2386,21 +2544,21 @@ function BlankLegend({ rows, reverse = false }) {
2386
2544
  }
2387
2545
  )
2388
2546
  ] }),
2389
- /* @__PURE__ */ jsx17("span", { className: "h-2 w-6 rounded-xs bg-subtle" })
2547
+ /* @__PURE__ */ jsx20("span", { className: "h-2 w-6 rounded-xs bg-subtle" })
2390
2548
  ] }, i))
2391
2549
  }
2392
2550
  );
2393
2551
  }
2394
2552
 
2395
2553
  // src/BarChartPlaceholder.tsx
2396
- import { jsx as jsx18 } from "react/jsx-runtime";
2554
+ import { jsx as jsx21 } from "react/jsx-runtime";
2397
2555
  var BAR_PROFILE = [92, 86, 76, 65, 57, 40, 30, 24, 18, 13];
2398
2556
  function BarChartPlaceholder({ height = 220, className, testIdPrefix }) {
2399
- return /* @__PURE__ */ jsx18(AxisFrame, { height, xTicks: BAR_PROFILE.length, className, testIdPrefix, children: /* @__PURE__ */ jsx18("div", { className: "flex h-full w-full items-end gap-2", children: BAR_PROFILE.map((pct, i) => /* @__PURE__ */ jsx18("div", { className: "flex-1 rounded-t-small bg-subtle", style: { height: `${pct}%` } }, i)) }) });
2557
+ return /* @__PURE__ */ jsx21(AxisFrame, { height, xTicks: BAR_PROFILE.length, className, testIdPrefix, children: /* @__PURE__ */ jsx21("div", { className: "flex h-full w-full items-end gap-2", children: BAR_PROFILE.map((pct, i) => /* @__PURE__ */ jsx21("div", { className: "flex-1 rounded-t-small bg-subtle", style: { height: `${pct}%` } }, i)) }) });
2400
2558
  }
2401
2559
 
2402
2560
  // src/LineChartPlaceholder.tsx
2403
- import { jsx as jsx19, jsxs as jsxs17 } from "react/jsx-runtime";
2561
+ import { jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
2404
2562
  var LINE_SERIES = [
2405
2563
  [58, 52, 55, 41, 45, 33, 36, 25, 28, 17],
2406
2564
  [74, 71, 66, 68, 59, 61, 54, 56, 48, 45],
@@ -2410,9 +2568,9 @@ var LINE_SERIES = [
2410
2568
  var LINE_FORECAST_FROM = 7;
2411
2569
  function LineChartPlaceholder({ height = 280, className, testIdPrefix }) {
2412
2570
  const toPath = (pts, from, to) => pts.slice(from, to).map((y, i) => `${(i + from) / (pts.length - 1) * 100},${y}`).join(" ");
2413
- return /* @__PURE__ */ jsxs17(AxisFrame, { height, xTicks: LINE_SERIES[0].length, className, testIdPrefix, children: [
2414
- /* @__PURE__ */ jsx19("svg", { viewBox: "0 0 100 100", preserveAspectRatio: "none", className: "absolute inset-0 h-full w-full", children: LINE_SERIES.map((pts, s) => /* @__PURE__ */ jsxs17("g", { children: [
2415
- /* @__PURE__ */ jsx19(
2571
+ return /* @__PURE__ */ jsxs20(AxisFrame, { height, xTicks: LINE_SERIES[0].length, className, testIdPrefix, children: [
2572
+ /* @__PURE__ */ jsx22("svg", { viewBox: "0 0 100 100", preserveAspectRatio: "none", className: "absolute inset-0 h-full w-full", children: LINE_SERIES.map((pts, s) => /* @__PURE__ */ jsxs20("g", { children: [
2573
+ /* @__PURE__ */ jsx22(
2416
2574
  "polyline",
2417
2575
  {
2418
2576
  points: toPath(pts, 0, LINE_FORECAST_FROM + 1),
@@ -2424,7 +2582,7 @@ function LineChartPlaceholder({ height = 280, className, testIdPrefix }) {
2424
2582
  strokeLinejoin: "round"
2425
2583
  }
2426
2584
  ),
2427
- /* @__PURE__ */ jsx19(
2585
+ /* @__PURE__ */ jsx22(
2428
2586
  "polyline",
2429
2587
  {
2430
2588
  points: toPath(pts, LINE_FORECAST_FROM, pts.length),
@@ -2439,7 +2597,7 @@ function LineChartPlaceholder({ height = 280, className, testIdPrefix }) {
2439
2597
  )
2440
2598
  ] }, s)) }),
2441
2599
  LINE_SERIES.map(
2442
- (pts, s) => pts.map((y, i) => /* @__PURE__ */ jsx19(
2600
+ (pts, s) => pts.map((y, i) => /* @__PURE__ */ jsx22(
2443
2601
  "div",
2444
2602
  {
2445
2603
  className: "absolute h-1.5 w-1.5 -translate-x-1/2 -translate-y-1/2 rounded-full",
@@ -2456,16 +2614,16 @@ function LineChartPlaceholder({ height = 280, className, testIdPrefix }) {
2456
2614
  }
2457
2615
 
2458
2616
  // src/PieChartPlaceholder.tsx
2459
- import { jsx as jsx20, jsxs as jsxs18 } from "react/jsx-runtime";
2617
+ import { jsx as jsx23, jsxs as jsxs21 } from "react/jsx-runtime";
2460
2618
  var PIE_SEAMS = [0, 115, 180, 230, 262, 288, 310, 332];
2461
2619
  function PieChartPlaceholder({ height = 220, legendRows = 8, className, testIdPrefix }) {
2462
2620
  const r = 45;
2463
- return /* @__PURE__ */ jsxs18("div", { className: cn("flex w-full items-center gap-3", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: [
2464
- /* @__PURE__ */ jsx20("div", { className: "flex h-full items-center justify-center", style: { width: "60%" }, children: /* @__PURE__ */ jsxs18("svg", { viewBox: "0 0 100 100", className: "h-full", style: { aspectRatio: "1 / 1" }, children: [
2465
- /* @__PURE__ */ jsx20("circle", { cx: "50", cy: "50", r, fill: "var(--mr-color-subtle)" }),
2621
+ return /* @__PURE__ */ jsxs21("div", { className: cn("flex w-full items-center gap-3", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: [
2622
+ /* @__PURE__ */ jsx23("div", { className: "flex h-full items-center justify-center", style: { width: "60%" }, children: /* @__PURE__ */ jsxs21("svg", { viewBox: "0 0 100 100", className: "h-full", style: { aspectRatio: "1 / 1" }, children: [
2623
+ /* @__PURE__ */ jsx23("circle", { cx: "50", cy: "50", r, fill: "var(--mr-color-subtle)" }),
2466
2624
  PIE_SEAMS.map((deg) => {
2467
2625
  const rad = (deg - 90) * Math.PI / 180;
2468
- return /* @__PURE__ */ jsx20(
2626
+ return /* @__PURE__ */ jsx23(
2469
2627
  "line",
2470
2628
  {
2471
2629
  x1: "50",
@@ -2479,12 +2637,12 @@ function PieChartPlaceholder({ height = 220, legendRows = 8, className, testIdPr
2479
2637
  );
2480
2638
  })
2481
2639
  ] }) }),
2482
- /* @__PURE__ */ jsx20(BlankLegend, { rows: legendRows })
2640
+ /* @__PURE__ */ jsx23(BlankLegend, { rows: legendRows })
2483
2641
  ] });
2484
2642
  }
2485
2643
 
2486
2644
  // src/StackedColumnPlaceholder.tsx
2487
- import { jsx as jsx21, jsxs as jsxs19 } from "react/jsx-runtime";
2645
+ import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
2488
2646
  var COLUMN_WEIGHTS = [20, 30, 15, 35, 24, 12, 28, 18];
2489
2647
  function columnBands(count) {
2490
2648
  const weights = Array.from({ length: count }, (_, i) => COLUMN_WEIGHTS[i % COLUMN_WEIGHTS.length]);
@@ -2499,7 +2657,7 @@ function StackedColumnPlaceholder({
2499
2657
  className,
2500
2658
  testIdPrefix
2501
2659
  }) {
2502
- const column = /* @__PURE__ */ jsx21("div", { className: "flex h-full flex-col overflow-hidden rounded-control bg-subtle", style: { width }, children: columnBands(legendRows).map((pct, i) => /* @__PURE__ */ jsx21(
2660
+ const column = /* @__PURE__ */ jsx24("div", { className: "flex h-full flex-col overflow-hidden rounded-control bg-subtle", style: { width }, children: columnBands(legendRows).map((pct, i) => /* @__PURE__ */ jsx24(
2503
2661
  "div",
2504
2662
  {
2505
2663
  style: {
@@ -2511,16 +2669,16 @@ function StackedColumnPlaceholder({
2511
2669
  },
2512
2670
  i
2513
2671
  )) });
2514
- return /* @__PURE__ */ jsxs19("div", { className: cn("flex w-full gap-4", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: [
2515
- axis ? /* @__PURE__ */ jsx21("div", { style: { width: "55%" }, children: /* @__PURE__ */ jsx21(AxisFrame, { height, xTicks: 0, children: /* @__PURE__ */ jsx21("div", { className: "flex h-full items-stretch justify-center", children: column }) }) }) : /* @__PURE__ */ jsx21("div", { className: "flex items-stretch py-1", children: column }),
2516
- /* @__PURE__ */ jsx21(BlankLegend, { rows: legendRows, reverse: !axis })
2672
+ return /* @__PURE__ */ jsxs22("div", { className: cn("flex w-full gap-4", className), style: { height }, role: "presentation", "aria-hidden": "true", "data-testid": testIdPrefix, children: [
2673
+ axis ? /* @__PURE__ */ jsx24("div", { style: { width: "55%" }, children: /* @__PURE__ */ jsx24(AxisFrame, { height, xTicks: 0, children: /* @__PURE__ */ jsx24("div", { className: "flex h-full items-stretch justify-center", children: column }) }) }) : /* @__PURE__ */ jsx24("div", { className: "flex items-stretch py-1", children: column }),
2674
+ /* @__PURE__ */ jsx24(BlankLegend, { rows: legendRows, reverse: !axis })
2517
2675
  ] });
2518
2676
  }
2519
2677
 
2520
2678
  // src/Tooltip.tsx
2521
2679
  import { useEffect as useEffect8, useId as useId4, useLayoutEffect as useLayoutEffect4, useRef as useRef9, useState as useState8 } from "react";
2522
2680
  import { createPortal as createPortal3 } from "react-dom";
2523
- import { jsx as jsx22, jsxs as jsxs20 } from "react/jsx-runtime";
2681
+ import { jsx as jsx25, jsxs as jsxs23 } from "react/jsx-runtime";
2524
2682
  function addDescribedBy(el, id) {
2525
2683
  const ids = (el.getAttribute("aria-describedby") ?? "").split(" ").filter(Boolean);
2526
2684
  if (!ids.includes(id)) el.setAttribute("aria-describedby", [...ids, id].join(" "));
@@ -2706,7 +2864,7 @@ function Tooltip({
2706
2864
  }
2707
2865
  }
2708
2866
  const floating = anchor != null && typeof document !== "undefined" ? createPortal3(
2709
- /* @__PURE__ */ jsx22(
2867
+ /* @__PURE__ */ jsx25(
2710
2868
  "span",
2711
2869
  {
2712
2870
  ref: boxRef,
@@ -2737,7 +2895,7 @@ function Tooltip({
2737
2895
  document.body
2738
2896
  ) : null;
2739
2897
  if (anchorRef) return floating;
2740
- return /* @__PURE__ */ jsxs20(
2898
+ return /* @__PURE__ */ jsxs23(
2741
2899
  "span",
2742
2900
  {
2743
2901
  ref,
@@ -2759,28 +2917,28 @@ function Tooltip({
2759
2917
  }
2760
2918
 
2761
2919
  // src/AdvertiserNoResults.tsx
2762
- import { jsx as jsx23, jsxs as jsxs21 } from "react/jsx-runtime";
2920
+ import { jsx as jsx26, jsxs as jsxs24 } from "react/jsx-runtime";
2763
2921
  function AdvertiserNoResults({
2764
2922
  query,
2765
2923
  hint = "Try checking your spelling or searching for a broader brand name.",
2766
2924
  className,
2767
2925
  testIdPrefix
2768
2926
  }) {
2769
- return /* @__PURE__ */ jsxs21("div", { className: cn("flex flex-col items-center gap-1.5 px-4 py-8 text-center", className), "data-testid": testIdPrefix, children: [
2770
- /* @__PURE__ */ jsxs21("p", { className: "text-dense font-medium text-text-primary", children: [
2927
+ return /* @__PURE__ */ jsxs24("div", { className: cn("flex flex-col items-center gap-1.5 px-4 py-8 text-center", className), "data-testid": testIdPrefix, children: [
2928
+ /* @__PURE__ */ jsxs24("p", { className: "text-dense font-medium text-text-primary", children: [
2771
2929
  "No results found for \u201C",
2772
2930
  query,
2773
2931
  "\u201D"
2774
2932
  ] }),
2775
- /* @__PURE__ */ jsx23("p", { className: "text-xs leading-snug text-text-tertiary", children: hint })
2933
+ /* @__PURE__ */ jsx26("p", { className: "text-xs leading-snug text-text-tertiary", children: hint })
2776
2934
  ] });
2777
2935
  }
2778
2936
 
2779
2937
  // src/SelectAllVisible.tsx
2780
2938
  import { ListChecks as ListChecks2 } from "lucide-react";
2781
- import { jsx as jsx24, jsxs as jsxs22 } from "react/jsx-runtime";
2939
+ import { jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
2782
2940
  function SelectAllVisible({ count, allSelected, onToggle, className, testIdPrefix }) {
2783
- return /* @__PURE__ */ jsxs22(
2941
+ return /* @__PURE__ */ jsxs25(
2784
2942
  "button",
2785
2943
  {
2786
2944
  type: "button",
@@ -2791,7 +2949,7 @@ function SelectAllVisible({ count, allSelected, onToggle, className, testIdPrefi
2791
2949
  className
2792
2950
  ),
2793
2951
  children: [
2794
- /* @__PURE__ */ jsx24(ListChecks2, { size: 14, "aria-hidden": "true" }),
2952
+ /* @__PURE__ */ jsx27(ListChecks2, { size: 14, "aria-hidden": "true" }),
2795
2953
  allSelected ? `Deselect ${count} visible` : `Select all ${count} visible`
2796
2954
  ]
2797
2955
  }
@@ -2800,11 +2958,11 @@ function SelectAllVisible({ count, allSelected, onToggle, className, testIdPrefi
2800
2958
 
2801
2959
  // src/SelectedSection.tsx
2802
2960
  import { ChevronDown as ChevronDown7 } from "lucide-react";
2803
- import { jsx as jsx25, jsxs as jsxs23 } from "react/jsx-runtime";
2961
+ import { jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
2804
2962
  function SelectedSection({ count, open, onToggle, children, className, testIdPrefix }) {
2805
2963
  if (count === 0) return null;
2806
- return /* @__PURE__ */ jsxs23("div", { className: cn("flex flex-col", className), "data-testid": testIdPrefix, children: [
2807
- /* @__PURE__ */ jsxs23(
2964
+ return /* @__PURE__ */ jsxs26("div", { className: cn("flex flex-col", className), "data-testid": testIdPrefix, children: [
2965
+ /* @__PURE__ */ jsxs26(
2808
2966
  "button",
2809
2967
  {
2810
2968
  type: "button",
@@ -2813,14 +2971,14 @@ function SelectedSection({ count, open, onToggle, children, className, testIdPre
2813
2971
  "aria-expanded": open,
2814
2972
  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",
2815
2973
  children: [
2816
- /* @__PURE__ */ jsx25(ChevronDown7, { size: 13, "aria-hidden": "true", className: cn("transition-transform", !open && "-rotate-90") }),
2974
+ /* @__PURE__ */ jsx28(ChevronDown7, { size: 13, "aria-hidden": "true", className: cn("transition-transform", !open && "-rotate-90") }),
2817
2975
  "Selected (",
2818
2976
  count,
2819
2977
  ")"
2820
2978
  ]
2821
2979
  }
2822
2980
  ),
2823
- open && /* @__PURE__ */ jsx25("div", { className: "flex flex-col gap-0.5", children })
2981
+ open && /* @__PURE__ */ jsx28("div", { className: "flex flex-col gap-0.5", children })
2824
2982
  ] });
2825
2983
  }
2826
2984
 
@@ -2831,7 +2989,7 @@ import { Search as Search4, Plus as Plus2, Info as Info2, ChevronRight as Chevro
2831
2989
 
2832
2990
  // src/Tabs.tsx
2833
2991
  import { useRef as useRef10 } from "react";
2834
- import { jsx as jsx26, jsxs as jsxs24 } from "react/jsx-runtime";
2992
+ import { jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
2835
2993
  function arrowKeys(e, row) {
2836
2994
  if (!row || !["ArrowLeft", "ArrowRight", "Home", "End"].includes(e.key)) return;
2837
2995
  const items = Array.from(row.querySelectorAll("button:not([disabled])"));
@@ -2843,7 +3001,7 @@ function arrowKeys(e, row) {
2843
3001
  }
2844
3002
  function Tabs({ items, value, onChange, idPrefix = "tabs", className, testIdPrefix, ...rest }) {
2845
3003
  const row = useRef10(null);
2846
- return /* @__PURE__ */ jsx26(
3004
+ return /* @__PURE__ */ jsx29(
2847
3005
  "div",
2848
3006
  {
2849
3007
  ref: row,
@@ -2854,7 +3012,7 @@ function Tabs({ items, value, onChange, idPrefix = "tabs", className, testIdPref
2854
3012
  className: cn("flex gap-6 border-b border-border-default", className),
2855
3013
  children: items.map((item) => {
2856
3014
  const on = item.value === value;
2857
- return /* @__PURE__ */ jsxs24(
3015
+ return /* @__PURE__ */ jsxs27(
2858
3016
  "button",
2859
3017
  {
2860
3018
  type: "button",
@@ -2872,7 +3030,7 @@ function Tabs({ items, value, onChange, idPrefix = "tabs", className, testIdPref
2872
3030
  ),
2873
3031
  children: [
2874
3032
  item.label,
2875
- item.count !== void 0 && /* @__PURE__ */ jsx26("span", { className: "text-xs text-text-tertiary", children: item.count })
3033
+ item.count !== void 0 && /* @__PURE__ */ jsx29("span", { className: "text-xs text-text-tertiary", children: item.count })
2876
3034
  ]
2877
3035
  },
2878
3036
  item.value
@@ -2891,7 +3049,7 @@ function SegmentedControl({
2891
3049
  ...rest
2892
3050
  }) {
2893
3051
  const row = useRef10(null);
2894
- return /* @__PURE__ */ jsx26(
3052
+ return /* @__PURE__ */ jsx29(
2895
3053
  "div",
2896
3054
  {
2897
3055
  ref: row,
@@ -2902,7 +3060,7 @@ function SegmentedControl({
2902
3060
  className: cn("inline-flex w-fit items-stretch gap-0.5 rounded-full bg-subtle p-1", size === "md" ? "h-10" : "h-8", className),
2903
3061
  children: options.map((o) => {
2904
3062
  const on = o.value === value;
2905
- return /* @__PURE__ */ jsx26(
3063
+ return /* @__PURE__ */ jsx29(
2906
3064
  "button",
2907
3065
  {
2908
3066
  type: "button",
@@ -2926,7 +3084,7 @@ function SegmentedControl({
2926
3084
  }
2927
3085
 
2928
3086
  // src/SelectionPicker.tsx
2929
- import { Fragment as Fragment3, jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
3087
+ import { Fragment as Fragment3, jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
2930
3088
  function slug5(value) {
2931
3089
  return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
2932
3090
  }
@@ -3019,12 +3177,12 @@ function SelectionPicker({
3019
3177
  }
3020
3178
  };
3021
3179
  const rowGridCols = showInfoColumn ? "grid-cols-[36px_1fr_44px]" : "grid-cols-[36px_1fr]";
3022
- return /* @__PURE__ */ jsxs25("div", { className: cn("flex flex-col gap-4", className), "data-testid": testIdPrefix, children: [
3023
- helper && /* @__PURE__ */ jsxs25(Fragment3, { children: [
3024
- /* @__PURE__ */ jsx27("p", { className: "text-dense text-text-secondary", children: helper }),
3025
- /* @__PURE__ */ jsx27("hr", { className: "-mx-5 -mt-2 border-border-default sm:-mx-6" })
3180
+ return /* @__PURE__ */ jsxs28("div", { className: cn("flex flex-col gap-4", className), "data-testid": testIdPrefix, children: [
3181
+ helper && /* @__PURE__ */ jsxs28(Fragment3, { children: [
3182
+ /* @__PURE__ */ jsx30("p", { className: "text-dense text-text-secondary", children: helper }),
3183
+ /* @__PURE__ */ jsx30("hr", { className: "-mx-5 -mt-2 border-border-default sm:-mx-6" })
3026
3184
  ] }),
3027
- hasAccountLists && /* @__PURE__ */ jsx27(
3185
+ hasAccountLists && /* @__PURE__ */ jsx30(
3028
3186
  SegmentedControl,
3029
3187
  {
3030
3188
  "aria-label": "Add from",
@@ -3037,11 +3195,11 @@ function SelectionPicker({
3037
3195
  ]
3038
3196
  }
3039
3197
  ),
3040
- source === "search" && /* @__PURE__ */ jsxs25("div", { className: "flex min-w-0 flex-col gap-3", children: [
3041
- /* @__PURE__ */ jsxs25("div", { className: "flex flex-wrap items-center gap-2", children: [
3042
- /* @__PURE__ */ jsxs25("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: [
3043
- /* @__PURE__ */ jsx27(Search4, { size: 15, className: "text-text-secondary", "aria-hidden": "true" }),
3044
- /* @__PURE__ */ jsx27(
3198
+ source === "search" && /* @__PURE__ */ jsxs28("div", { className: "flex min-w-0 flex-col gap-3", children: [
3199
+ /* @__PURE__ */ jsxs28("div", { className: "flex flex-wrap items-center gap-2", children: [
3200
+ /* @__PURE__ */ jsxs28("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: [
3201
+ /* @__PURE__ */ jsx30(Search4, { size: 15, className: "text-text-secondary", "aria-hidden": "true" }),
3202
+ /* @__PURE__ */ jsx30(
3045
3203
  "input",
3046
3204
  {
3047
3205
  value: query,
@@ -3057,7 +3215,7 @@ function SelectionPicker({
3057
3215
  }
3058
3216
  )
3059
3217
  ] }),
3060
- filters.map((f) => /* @__PURE__ */ jsx27(
3218
+ filters.map((f) => /* @__PURE__ */ jsx30(
3061
3219
  FilterDropdown,
3062
3220
  {
3063
3221
  filter: f,
@@ -3069,14 +3227,14 @@ function SelectionPicker({
3069
3227
  )),
3070
3228
  toolbarExtra
3071
3229
  ] }),
3072
- !hasSearched ? /* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-center gap-3 rounded-card border border-dashed border-border-default py-10 text-center", children: [
3073
- /* @__PURE__ */ jsx27("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-subtle", children: /* @__PURE__ */ jsx27(Search4, { size: 20, className: "text-text-tertiary", "aria-hidden": "true" }) }),
3074
- /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-1", children: [
3075
- /* @__PURE__ */ jsx27("p", { className: "text-sm font-semibold text-text-primary", children: "Search to get started" }),
3076
- /* @__PURE__ */ jsx27("p", { className: "text-dense text-text-tertiary", children: "Use the search or filters above to find and add options." })
3230
+ !hasSearched ? /* @__PURE__ */ jsxs28("div", { className: "flex flex-col items-center gap-3 rounded-card border border-dashed border-border-default py-10 text-center", children: [
3231
+ /* @__PURE__ */ jsx30("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-subtle", children: /* @__PURE__ */ jsx30(Search4, { size: 20, className: "text-text-tertiary", "aria-hidden": "true" }) }),
3232
+ /* @__PURE__ */ jsxs28("div", { className: "flex flex-col gap-1", children: [
3233
+ /* @__PURE__ */ jsx30("p", { className: "text-sm font-semibold text-text-primary", children: "Search to get started" }),
3234
+ /* @__PURE__ */ jsx30("p", { className: "text-dense text-text-tertiary", children: "Use the search or filters above to find and add options." })
3077
3235
  ] })
3078
- ] }) : /* @__PURE__ */ jsxs25("div", { className: "overflow-hidden rounded-control border border-border-default", children: [
3079
- /* @__PURE__ */ jsxs25(
3236
+ ] }) : /* @__PURE__ */ jsxs28("div", { className: "overflow-hidden rounded-control border border-border-default", children: [
3237
+ /* @__PURE__ */ jsxs28(
3080
3238
  "div",
3081
3239
  {
3082
3240
  className: cn(
@@ -3084,7 +3242,7 @@ function SelectionPicker({
3084
3242
  rowGridCols
3085
3243
  ),
3086
3244
  children: [
3087
- /* @__PURE__ */ jsx27(
3245
+ /* @__PURE__ */ jsx30(
3088
3246
  CheckBox,
3089
3247
  {
3090
3248
  checked: allSelected,
@@ -3095,18 +3253,18 @@ function SelectionPicker({
3095
3253
  testIdPrefix: testIdPrefix && `${testIdPrefix}-select-all`
3096
3254
  }
3097
3255
  ),
3098
- /* @__PURE__ */ jsx27("div", { className: cn("grid gap-2", gridForColumns(columns)), children: columns.map((c) => /* @__PURE__ */ jsx27("span", { className: c.className, children: c.header }, c.key)) }),
3099
- showInfoColumn && /* @__PURE__ */ jsx27("span", { className: "text-right", children: "Info" })
3256
+ /* @__PURE__ */ jsx30("div", { className: cn("grid gap-2", gridForColumns(columns)), children: columns.map((c) => /* @__PURE__ */ jsx30("span", { className: c.className, children: c.header }, c.key)) }),
3257
+ showInfoColumn && /* @__PURE__ */ jsx30("span", { className: "text-right", children: "Info" })
3100
3258
  ]
3101
3259
  }
3102
3260
  ),
3103
- /* @__PURE__ */ jsx27("div", { className: "max-h-90 overflow-y-auto", children: loading ? /* @__PURE__ */ jsx27("div", { className: "flex items-center justify-center py-6", role: "status", "aria-label": "Loading", children: /* @__PURE__ */ jsx27(Loader2, { size: 18, className: "animate-spin text-text-tertiary", "aria-hidden": "true" }) }) : error ? /* @__PURE__ */ jsx27("p", { className: "px-3 py-8 text-center text-dense text-text-tertiary", children: errorMessage }) : rows.length === 0 ? /* @__PURE__ */ jsx27("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) => {
3261
+ /* @__PURE__ */ jsx30("div", { className: "max-h-90 overflow-y-auto", children: loading ? /* @__PURE__ */ jsx30("div", { className: "flex items-center justify-center py-6", role: "status", "aria-label": "Loading", children: /* @__PURE__ */ jsx30(Loader2, { size: 18, className: "animate-spin text-text-tertiary", "aria-hidden": "true" }) }) : error ? /* @__PURE__ */ jsx30("p", { className: "px-3 py-8 text-center text-dense text-text-tertiary", children: errorMessage }) : rows.length === 0 ? /* @__PURE__ */ jsx30("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) => {
3104
3262
  const isSel = selectedIds.has(row.id);
3105
3263
  const isLocked = lockedIds?.has(row.id) ?? false;
3106
3264
  const kids = getChildren?.(row);
3107
3265
  const isOpen = expanded.has(row.id);
3108
- return /* @__PURE__ */ jsxs25("div", { className: "border-t border-border-default/60 first:border-t-0", children: [
3109
- /* @__PURE__ */ jsxs25(
3266
+ return /* @__PURE__ */ jsxs28("div", { className: "border-t border-border-default/60 first:border-t-0", children: [
3267
+ /* @__PURE__ */ jsxs28(
3110
3268
  "div",
3111
3269
  {
3112
3270
  onClick: isLocked ? void 0 : () => toggleRow(row),
@@ -3119,7 +3277,7 @@ function SelectionPicker({
3119
3277
  !isLocked && isSel && "opacity-70"
3120
3278
  ),
3121
3279
  children: [
3122
- isLocked ? /* @__PURE__ */ jsx27("span", { "aria-hidden": "true" }) : /* @__PURE__ */ jsx27(
3280
+ isLocked ? /* @__PURE__ */ jsx30("span", { "aria-hidden": "true" }) : /* @__PURE__ */ jsx30(
3123
3281
  CheckBox,
3124
3282
  {
3125
3283
  checked: isSel,
@@ -3128,8 +3286,8 @@ function SelectionPicker({
3128
3286
  testIdPrefix: testIdPrefix && `${testIdPrefix}-row-${slug5(row.id)}`
3129
3287
  }
3130
3288
  ),
3131
- /* @__PURE__ */ jsx27("div", { className: cn("grid gap-2 text-dense text-text-primary", gridForColumns(columns)), children: columns.map((c) => /* @__PURE__ */ jsx27("span", { className: cn("truncate", c.className), children: c.render(row) }, c.key)) }),
3132
- showInfoColumn && /* @__PURE__ */ jsx27("div", { className: "flex items-center justify-end", children: kids && kids.length > 0 ? /* @__PURE__ */ jsx27(
3289
+ /* @__PURE__ */ jsx30("div", { className: cn("grid gap-2 text-dense text-text-primary", gridForColumns(columns)), children: columns.map((c) => /* @__PURE__ */ jsx30("span", { className: cn("truncate", c.className), children: c.render(row) }, c.key)) }),
3290
+ showInfoColumn && /* @__PURE__ */ jsx30("div", { className: "flex items-center justify-end", children: kids && kids.length > 0 ? /* @__PURE__ */ jsx30(
3133
3291
  "button",
3134
3292
  {
3135
3293
  type: "button",
@@ -3143,28 +3301,28 @@ function SelectionPicker({
3143
3301
  });
3144
3302
  },
3145
3303
  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",
3146
- children: /* @__PURE__ */ jsx27(ChevronRight3, { size: 15, className: cn("transition-transform", isOpen && "rotate-90") })
3304
+ children: /* @__PURE__ */ jsx30(ChevronRight3, { size: 15, className: cn("transition-transform", isOpen && "rotate-90") })
3147
3305
  }
3148
- ) : /* @__PURE__ */ jsx27(
3306
+ ) : /* @__PURE__ */ jsx30(
3149
3307
  "span",
3150
3308
  {
3151
3309
  className: "flex h-7 w-7 items-center justify-center text-text-tertiary",
3152
3310
  title: "No additional details",
3153
- children: /* @__PURE__ */ jsx27(Info2, { size: 14 })
3311
+ children: /* @__PURE__ */ jsx30(Info2, { size: 14 })
3154
3312
  }
3155
3313
  ) })
3156
3314
  ]
3157
3315
  }
3158
3316
  ),
3159
- isOpen && kids && /* @__PURE__ */ jsx27("div", { className: "bg-canvas/60 pb-1.5 pl-10 pr-3", children: kids.map((kid) => {
3317
+ isOpen && kids && /* @__PURE__ */ jsx30("div", { className: "bg-canvas/60 pb-1.5 pl-10 pr-3", children: kids.map((kid) => {
3160
3318
  const kidSel = selectedIds.has(kid.id);
3161
- return /* @__PURE__ */ jsxs25(
3319
+ return /* @__PURE__ */ jsxs28(
3162
3320
  "div",
3163
3321
  {
3164
3322
  className: "flex items-center justify-between gap-2 border-t border-border-default/40 py-2 first:border-t-0",
3165
3323
  children: [
3166
- /* @__PURE__ */ jsx27("span", { className: "truncate text-dense text-text-secondary", children: kid.name }),
3167
- /* @__PURE__ */ jsxs25(
3324
+ /* @__PURE__ */ jsx30("span", { className: "truncate text-dense text-text-secondary", children: kid.name }),
3325
+ /* @__PURE__ */ jsxs28(
3168
3326
  "button",
3169
3327
  {
3170
3328
  type: "button",
@@ -3175,7 +3333,7 @@ function SelectionPicker({
3175
3333
  kidSel ? "text-text-tertiary" : "text-text-link hover:bg-subtle"
3176
3334
  ),
3177
3335
  children: [
3178
- kidSel ? /* @__PURE__ */ jsx27(Check6, { size: 13 }) : /* @__PURE__ */ jsx27(Plus2, { size: 13 }),
3336
+ kidSel ? /* @__PURE__ */ jsx30(Check6, { size: 13 }) : /* @__PURE__ */ jsx30(Plus2, { size: 13 }),
3179
3337
  kidSel ? "Added" : "Add"
3180
3338
  ]
3181
3339
  }
@@ -3187,7 +3345,7 @@ function SelectionPicker({
3187
3345
  }) })
3188
3346
  ] }, row.id);
3189
3347
  }) }),
3190
- !loading && !error && hasMore && /* @__PURE__ */ jsxs25(
3348
+ !loading && !error && hasMore && /* @__PURE__ */ jsxs28(
3191
3349
  "button",
3192
3350
  {
3193
3351
  type: "button",
@@ -3196,19 +3354,19 @@ function SelectionPicker({
3196
3354
  "data-testid": testIdPrefix && `${testIdPrefix}-load-more`,
3197
3355
  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",
3198
3356
  children: [
3199
- loadingMore ? /* @__PURE__ */ jsx27(Loader2, { size: 13, className: "animate-spin", "aria-hidden": "true" }) : null,
3357
+ loadingMore ? /* @__PURE__ */ jsx30(Loader2, { size: 13, className: "animate-spin", "aria-hidden": "true" }) : null,
3200
3358
  loadingMore ? "Loading\u2026" : "Load more"
3201
3359
  ]
3202
3360
  }
3203
3361
  )
3204
3362
  ] })
3205
3363
  ] }),
3206
- source === "lists" && /* @__PURE__ */ jsxs25("div", { className: "flex min-w-0 flex-col gap-3", children: [
3207
- /* @__PURE__ */ jsx27("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." }),
3208
- accountLists && accountLists.length > 0 ? /* @__PURE__ */ jsxs25(Fragment3, { children: [
3209
- /* @__PURE__ */ jsx27(ScrollFade, { className: "flex max-h-99 flex-col gap-2 overflow-y-auto pr-0.5", children: accountLists.map((list) => {
3364
+ source === "lists" && /* @__PURE__ */ jsxs28("div", { className: "flex min-w-0 flex-col gap-3", children: [
3365
+ /* @__PURE__ */ jsx30("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." }),
3366
+ accountLists && accountLists.length > 0 ? /* @__PURE__ */ jsxs28(Fragment3, { children: [
3367
+ /* @__PURE__ */ jsx30(ScrollFade, { className: "flex max-h-99 flex-col gap-2 overflow-y-auto pr-0.5", children: accountLists.map((list) => {
3210
3368
  const on = (selectedListIds ?? []).includes(list.id);
3211
- return /* @__PURE__ */ jsxs25(
3369
+ return /* @__PURE__ */ jsxs28(
3212
3370
  "button",
3213
3371
  {
3214
3372
  type: "button",
@@ -3220,19 +3378,19 @@ function SelectionPicker({
3220
3378
  on ? "border-brand-primaryAction bg-brand-primarySoft" : "border-border-default bg-surface hover:bg-subtle"
3221
3379
  ),
3222
3380
  children: [
3223
- /* @__PURE__ */ jsx27(
3381
+ /* @__PURE__ */ jsx30(
3224
3382
  "span",
3225
3383
  {
3226
3384
  className: cn(
3227
3385
  "flex h-5 w-5 shrink-0 items-center justify-center rounded-full",
3228
3386
  on ? "text-brand-primaryAction" : "text-text-secondary"
3229
3387
  ),
3230
- children: on ? /* @__PURE__ */ jsx27(Check6, { size: 16 }) : /* @__PURE__ */ jsx27(Plus2, { size: 16 })
3388
+ children: on ? /* @__PURE__ */ jsx30(Check6, { size: 16 }) : /* @__PURE__ */ jsx30(Plus2, { size: 16 })
3231
3389
  }
3232
3390
  ),
3233
- /* @__PURE__ */ jsxs25("span", { className: "min-w-0 flex-1", children: [
3234
- /* @__PURE__ */ jsx27("span", { className: "flex min-w-0 items-center gap-2", children: /* @__PURE__ */ jsx27("span", { className: "truncate text-sm font-medium text-text-primary", children: list.name }) }),
3235
- /* @__PURE__ */ jsxs25("span", { className: "block truncate text-xs text-text-secondary", children: [
3391
+ /* @__PURE__ */ jsxs28("span", { className: "min-w-0 flex-1", children: [
3392
+ /* @__PURE__ */ jsx30("span", { className: "flex min-w-0 items-center gap-2", children: /* @__PURE__ */ jsx30("span", { className: "truncate text-sm font-medium text-text-primary", children: list.name }) }),
3393
+ /* @__PURE__ */ jsxs28("span", { className: "block truncate text-xs text-text-secondary", children: [
3236
3394
  list.count,
3237
3395
  " accounts \xB7 ",
3238
3396
  list.entityTypes.join(", "),
@@ -3240,13 +3398,13 @@ function SelectionPicker({
3240
3398
  formatListDate(list.updatedAt)
3241
3399
  ] })
3242
3400
  ] }),
3243
- /* @__PURE__ */ jsx27("span", { className: cn("shrink-0 text-xs font-medium", on ? "text-brand-primaryAction" : "text-text-secondary"), children: on ? "Added" : "Add" })
3401
+ /* @__PURE__ */ jsx30("span", { className: cn("shrink-0 text-xs font-medium", on ? "text-brand-primaryAction" : "text-text-secondary"), children: on ? "Added" : "Add" })
3244
3402
  ]
3245
3403
  },
3246
3404
  list.id
3247
3405
  );
3248
3406
  }) }),
3249
- /* @__PURE__ */ jsxs25(
3407
+ /* @__PURE__ */ jsxs28(
3250
3408
  "p",
3251
3409
  {
3252
3410
  className: "border-t border-border-default pt-2 text-right text-xs font-medium text-text-tertiary",
@@ -3258,11 +3416,11 @@ function SelectionPicker({
3258
3416
  ]
3259
3417
  }
3260
3418
  )
3261
- ] }) : /* @__PURE__ */ jsxs25("div", { className: "flex flex-col items-center gap-3 rounded-card border border-dashed border-border-default py-10 text-center", children: [
3262
- /* @__PURE__ */ jsx27("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-subtle", children: /* @__PURE__ */ jsx27(List, { size: 20, className: "text-text-tertiary", "aria-hidden": "true" }) }),
3263
- /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-1", children: [
3264
- /* @__PURE__ */ jsx27("p", { className: "text-sm font-semibold text-text-primary", children: "No account lists yet" }),
3265
- /* @__PURE__ */ jsx27("p", { className: "text-dense text-text-tertiary", children: "Account lists set up for you will appear here." })
3419
+ ] }) : /* @__PURE__ */ jsxs28("div", { className: "flex flex-col items-center gap-3 rounded-card border border-dashed border-border-default py-10 text-center", children: [
3420
+ /* @__PURE__ */ jsx30("div", { className: "flex h-12 w-12 items-center justify-center rounded-full bg-subtle", children: /* @__PURE__ */ jsx30(List, { size: 20, className: "text-text-tertiary", "aria-hidden": "true" }) }),
3421
+ /* @__PURE__ */ jsxs28("div", { className: "flex flex-col gap-1", children: [
3422
+ /* @__PURE__ */ jsx30("p", { className: "text-sm font-semibold text-text-primary", children: "No account lists yet" }),
3423
+ /* @__PURE__ */ jsx30("p", { className: "text-dense text-text-tertiary", children: "Account lists set up for you will appear here." })
3266
3424
  ] })
3267
3425
  ] })
3268
3426
  ] })
@@ -3294,7 +3452,7 @@ function ScrollFade({ className, children }) {
3294
3452
  [sync]
3295
3453
  );
3296
3454
  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;
3297
- return /* @__PURE__ */ jsx27("div", { ref: attach, onScroll: sync, className, style: { maskImage: mask, WebkitMaskImage: mask }, children });
3455
+ return /* @__PURE__ */ jsx30("div", { ref: attach, onScroll: sync, className, style: { maskImage: mask, WebkitMaskImage: mask }, children });
3298
3456
  }
3299
3457
  function formatListDate(iso) {
3300
3458
  try {
@@ -3344,8 +3502,8 @@ function FilterDropdown({
3344
3502
  const count = active.size;
3345
3503
  const label = count === 0 ? filter.label : count === 1 ? [...active][0] : "Multiple";
3346
3504
  const filterSlug = slug5(filter.label);
3347
- return /* @__PURE__ */ jsxs25("div", { className: "relative", children: [
3348
- /* @__PURE__ */ jsxs25(
3505
+ return /* @__PURE__ */ jsxs28("div", { className: "relative", children: [
3506
+ /* @__PURE__ */ jsxs28(
3349
3507
  "button",
3350
3508
  {
3351
3509
  ref: btnRef,
@@ -3356,12 +3514,12 @@ function FilterDropdown({
3356
3514
  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",
3357
3515
  children: [
3358
3516
  label,
3359
- /* @__PURE__ */ jsx27(ChevronDown8, { size: 13, "aria-hidden": "true", className: cn("transition-transform", open && "rotate-180") })
3517
+ /* @__PURE__ */ jsx30(ChevronDown8, { size: 13, "aria-hidden": "true", className: cn("transition-transform", open && "rotate-180") })
3360
3518
  ]
3361
3519
  }
3362
3520
  ),
3363
3521
  open && pos && createPortal4(
3364
- /* @__PURE__ */ jsxs25(
3522
+ /* @__PURE__ */ jsxs28(
3365
3523
  "div",
3366
3524
  {
3367
3525
  ref: menuRef,
@@ -3370,9 +3528,9 @@ function FilterDropdown({
3370
3528
  style: { top: pos.top, left: pos.left },
3371
3529
  className: "fixed z-dropdown min-w-55 rounded-card border border-border-default bg-surface p-2 shadow-overlay",
3372
3530
  children: [
3373
- searchable && /* @__PURE__ */ jsxs25("div", { className: "mb-1.5 flex h-8 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5", children: [
3374
- /* @__PURE__ */ jsx27(Search4, { size: 14, className: "shrink-0 text-text-secondary", "aria-hidden": "true" }),
3375
- /* @__PURE__ */ jsx27(
3531
+ searchable && /* @__PURE__ */ jsxs28("div", { className: "mb-1.5 flex h-8 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5", children: [
3532
+ /* @__PURE__ */ jsx30(Search4, { size: 14, className: "shrink-0 text-text-secondary", "aria-hidden": "true" }),
3533
+ /* @__PURE__ */ jsx30(
3376
3534
  "input",
3377
3535
  {
3378
3536
  autoFocus: true,
@@ -3383,14 +3541,14 @@ function FilterDropdown({
3383
3541
  }
3384
3542
  )
3385
3543
  ] }),
3386
- /* @__PURE__ */ jsx27("div", { className: cn("flex flex-col gap-0.5", searchable && "max-h-60 overflow-y-auto"), children: shownOptions.length === 0 ? /* @__PURE__ */ jsx27("p", { className: "px-2 py-3 text-center text-xs text-text-secondary", children: "No matches." }) : shownOptions.map((opt) => {
3544
+ /* @__PURE__ */ jsx30("div", { className: cn("flex flex-col gap-0.5", searchable && "max-h-60 overflow-y-auto"), children: shownOptions.length === 0 ? /* @__PURE__ */ jsx30("p", { className: "px-2 py-3 text-center text-xs text-text-secondary", children: "No matches." }) : shownOptions.map((opt) => {
3387
3545
  const on = active.has(opt);
3388
- return /* @__PURE__ */ jsxs25(
3546
+ return /* @__PURE__ */ jsxs28(
3389
3547
  "label",
3390
3548
  {
3391
3549
  className: "flex cursor-pointer items-center gap-2 rounded-control px-2 py-1.5 text-dense text-text-primary hover:bg-subtle",
3392
3550
  children: [
3393
- /* @__PURE__ */ jsx27(
3551
+ /* @__PURE__ */ jsx30(
3394
3552
  CheckBox,
3395
3553
  {
3396
3554
  checked: on,
@@ -3421,7 +3579,7 @@ function gridForColumns(columns) {
3421
3579
 
3422
3580
  // src/PublisherBreakdownList.tsx
3423
3581
  import { useState as useState10 } from "react";
3424
- import { jsx as jsx28, jsxs as jsxs26 } from "react/jsx-runtime";
3582
+ import { jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
3425
3583
  var fmtM = (v) => v >= 100 ? `$${Math.round(v)}M` : `$${v.toFixed(1)}M`;
3426
3584
  function priorYearAmt(spendN, yoy) {
3427
3585
  if (yoy === "NEW" || yoy <= -100) return null;
@@ -3433,7 +3591,7 @@ function initials(name) {
3433
3591
  return name.replace(/[^a-zA-Z0-9]/g, "").slice(0, 2).toUpperCase();
3434
3592
  }
3435
3593
  function Monogram({ name, size = 28 }) {
3436
- return /* @__PURE__ */ jsx28(
3594
+ return /* @__PURE__ */ jsx31(
3437
3595
  "span",
3438
3596
  {
3439
3597
  "aria-hidden": "true",
@@ -3444,12 +3602,12 @@ function Monogram({ name, size = 28 }) {
3444
3602
  );
3445
3603
  }
3446
3604
  function BreakdownTag({ children }) {
3447
- return /* @__PURE__ */ jsx28("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 });
3605
+ return /* @__PURE__ */ jsx31("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 });
3448
3606
  }
3449
3607
  function DelayedTip({ label, children }) {
3450
- return /* @__PURE__ */ jsxs26("span", { className: "group/dt relative inline-flex", tabIndex: 0, "aria-label": label, children: [
3608
+ return /* @__PURE__ */ jsxs29("span", { className: "group/dt relative inline-flex", tabIndex: 0, "aria-label": label, children: [
3451
3609
  children,
3452
- /* @__PURE__ */ jsx28(
3610
+ /* @__PURE__ */ jsx31(
3453
3611
  "span",
3454
3612
  {
3455
3613
  role: "tooltip",
@@ -3463,22 +3621,22 @@ var COL_CURRENT = 76;
3463
3621
  var COL_PREVIOUS = 76;
3464
3622
  var COL_YOY = 44;
3465
3623
  function MetricListHeader({ className }) {
3466
- return /* @__PURE__ */ jsxs26("div", { className: cn("flex items-baseline gap-2 pb-2", className), children: [
3467
- /* @__PURE__ */ jsx28("span", { className: "flex-1" }),
3468
- /* @__PURE__ */ jsxs26("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3469
- /* @__PURE__ */ jsx28("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_CURRENT }, children: "Current" }),
3470
- /* @__PURE__ */ jsx28(DelayedTip, { label: "Spend during the same time period one year ago.", children: /* @__PURE__ */ jsx28("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_PREVIOUS }, children: "Previous" }) }),
3471
- /* @__PURE__ */ jsx28(DelayedTip, { label: "Percent change from this time period vs. the same time one year ago.", children: /* @__PURE__ */ jsx28("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_YOY }, children: "YoY" }) })
3624
+ return /* @__PURE__ */ jsxs29("div", { className: cn("flex items-baseline gap-2 pb-2", className), children: [
3625
+ /* @__PURE__ */ jsx31("span", { className: "flex-1" }),
3626
+ /* @__PURE__ */ jsxs29("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3627
+ /* @__PURE__ */ jsx31("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_CURRENT }, children: "Current" }),
3628
+ /* @__PURE__ */ jsx31(DelayedTip, { label: "Spend during the same time period one year ago.", children: /* @__PURE__ */ jsx31("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_PREVIOUS }, children: "Previous" }) }),
3629
+ /* @__PURE__ */ jsx31(DelayedTip, { label: "Percent change from this time period vs. the same time one year ago.", children: /* @__PURE__ */ jsx31("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_YOY }, children: "YoY" }) })
3472
3630
  ] })
3473
3631
  ] });
3474
3632
  }
3475
3633
  function MetricCells({ spendN, yoy }) {
3476
3634
  const prior = priorYearAmt(spendN, yoy);
3477
3635
  const up = yoy !== "NEW" && yoy >= 0;
3478
- return /* @__PURE__ */ jsxs26("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3479
- /* @__PURE__ */ jsx28("span", { className: "text-right text-xs font-bold tabular-nums text-text-primary", style: { width: COL_CURRENT }, children: fmtM(spendN) }),
3480
- /* @__PURE__ */ jsx28("span", { className: "text-right text-xs font-normal tabular-nums text-text-primary", style: { width: COL_PREVIOUS }, children: prior ?? "\u2014" }),
3481
- /* @__PURE__ */ jsx28("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ jsx28("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-badge font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ jsxs26("span", { className: cn("text-right text-xs font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
3636
+ return /* @__PURE__ */ jsxs29("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3637
+ /* @__PURE__ */ jsx31("span", { className: "text-right text-xs font-bold tabular-nums text-text-primary", style: { width: COL_CURRENT }, children: fmtM(spendN) }),
3638
+ /* @__PURE__ */ jsx31("span", { className: "text-right text-xs font-normal tabular-nums text-text-primary", style: { width: COL_PREVIOUS }, children: prior ?? "\u2014" }),
3639
+ /* @__PURE__ */ jsx31("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ jsx31("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-badge font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ jsxs29("span", { className: cn("text-right text-xs font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
3482
3640
  up ? "+" : "\u2212",
3483
3641
  Math.abs(yoy),
3484
3642
  "%"
@@ -3497,45 +3655,45 @@ function PublisherBreakdownList({
3497
3655
  const [showAll, setShowAll] = useState10(false);
3498
3656
  const visible = showAll ? rows : rows.slice(0, defaultVisibleCount);
3499
3657
  const rowPad = padded ? "px-5" : "";
3500
- return /* @__PURE__ */ jsxs26("div", { className: cn("flex flex-col", className), "data-testid": testIdPrefix, children: [
3501
- /* @__PURE__ */ jsxs26("div", { className: "flex flex-col", children: [
3502
- /* @__PURE__ */ jsx28(MetricListHeader, { className: rowPad }),
3503
- visible.map((p) => /* @__PURE__ */ jsxs26("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: [
3504
- /* @__PURE__ */ jsxs26("div", { className: "flex min-w-0 items-center gap-2.5", children: [
3505
- renderLogo ? renderLogo(p) : /* @__PURE__ */ jsx28(Monogram, { name: p.brand, size: 28 }),
3506
- /* @__PURE__ */ jsxs26("div", { className: "min-w-0", children: [
3507
- /* @__PURE__ */ jsxs26("div", { className: "flex flex-wrap items-center gap-1.5", children: [
3508
- /* @__PURE__ */ jsx28("span", { className: "text-sm font-semibold text-text-primary", children: p.brand }),
3509
- p.tags.map((t) => /* @__PURE__ */ jsx28(BreakdownTag, { children: t }, t))
3658
+ return /* @__PURE__ */ jsxs29("div", { className: cn("flex flex-col", className), "data-testid": testIdPrefix, children: [
3659
+ /* @__PURE__ */ jsxs29("div", { className: "flex flex-col", children: [
3660
+ /* @__PURE__ */ jsx31(MetricListHeader, { className: rowPad }),
3661
+ visible.map((p) => /* @__PURE__ */ jsxs29("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: [
3662
+ /* @__PURE__ */ jsxs29("div", { className: "flex min-w-0 items-center gap-2.5", children: [
3663
+ renderLogo ? renderLogo(p) : /* @__PURE__ */ jsx31(Monogram, { name: p.brand, size: 28 }),
3664
+ /* @__PURE__ */ jsxs29("div", { className: "min-w-0", children: [
3665
+ /* @__PURE__ */ jsxs29("div", { className: "flex flex-wrap items-center gap-1.5", children: [
3666
+ /* @__PURE__ */ jsx31("span", { className: "text-sm font-semibold text-text-primary", children: p.brand }),
3667
+ p.tags.map((t) => /* @__PURE__ */ jsx31(BreakdownTag, { children: t }, t))
3510
3668
  ] }),
3511
- /* @__PURE__ */ jsx28("div", { className: "truncate text-micro text-text-tertiary", children: p.owner })
3669
+ /* @__PURE__ */ jsx31("div", { className: "truncate text-micro text-text-tertiary", children: p.owner })
3512
3670
  ] })
3513
3671
  ] }),
3514
- /* @__PURE__ */ jsx28(MetricCells, { spendN: p.spendN, yoy: p.yoy })
3672
+ /* @__PURE__ */ jsx31(MetricCells, { spendN: p.spendN, yoy: p.yoy })
3515
3673
  ] }, p.brand))
3516
3674
  ] }),
3517
- rows.length > defaultVisibleCount && (viewAllHref ? /* @__PURE__ */ jsx28("div", { className: cn("border-t border-border-default py-3", rowPad), children: /* @__PURE__ */ jsx28("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__ */ jsxs26("div", { className: cn("flex items-center gap-2 border-t border-border-default py-3 text-xs text-text-tertiary", rowPad), children: [
3518
- /* @__PURE__ */ jsxs26("span", { children: [
3675
+ rows.length > defaultVisibleCount && (viewAllHref ? /* @__PURE__ */ jsx31("div", { className: cn("border-t border-border-default py-3", rowPad), children: /* @__PURE__ */ jsx31("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__ */ jsxs29("div", { className: cn("flex items-center gap-2 border-t border-border-default py-3 text-xs text-text-tertiary", rowPad), children: [
3676
+ /* @__PURE__ */ jsxs29("span", { children: [
3519
3677
  "Showing ",
3520
3678
  visible.length,
3521
3679
  " of ",
3522
3680
  rows.length
3523
3681
  ] }),
3524
- !showAll ? /* @__PURE__ */ jsxs26("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: [
3682
+ !showAll ? /* @__PURE__ */ jsxs29("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: [
3525
3683
  "See all (",
3526
3684
  rows.length - defaultVisibleCount,
3527
3685
  " more)"
3528
- ] }) : /* @__PURE__ */ jsx28("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" })
3686
+ ] }) : /* @__PURE__ */ jsx31("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" })
3529
3687
  ] }))
3530
3688
  ] });
3531
3689
  }
3532
3690
 
3533
3691
  // src/Button.tsx
3534
- import { forwardRef as forwardRef4 } from "react";
3692
+ import { forwardRef as forwardRef6 } from "react";
3535
3693
  import { Slot } from "@radix-ui/react-slot";
3536
3694
  import { cva } from "class-variance-authority";
3537
3695
  import { Loader2 as Loader22 } from "lucide-react";
3538
- import { jsx as jsx29, jsxs as jsxs27 } from "react/jsx-runtime";
3696
+ import { jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
3539
3697
  var buttonVariants = cva(
3540
3698
  "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",
3541
3699
  {
@@ -3596,7 +3754,7 @@ var buttonVariants = cva(
3596
3754
  }
3597
3755
  }
3598
3756
  );
3599
- var Button = forwardRef4(
3757
+ var Button = forwardRef6(
3600
3758
  ({ className, testIdPrefix, variant, size, iconOnly, asChild = false, loading = false, disabled, children, ...props }, ref) => {
3601
3759
  const shared = {
3602
3760
  className: cn(buttonVariants({ variant, size, iconOnly, className })),
@@ -3606,10 +3764,10 @@ var Button = forwardRef4(
3606
3764
  ...props
3607
3765
  };
3608
3766
  if (asChild) {
3609
- return /* @__PURE__ */ jsx29(Slot, { ref, ...shared, children });
3767
+ return /* @__PURE__ */ jsx32(Slot, { ref, ...shared, children });
3610
3768
  }
3611
- return /* @__PURE__ */ jsxs27("button", { ref, ...shared, children: [
3612
- loading && /* @__PURE__ */ jsx29(Loader22, { className: "size-4 shrink-0 animate-spin", "aria-hidden": "true" }),
3769
+ return /* @__PURE__ */ jsxs30("button", { ref, ...shared, children: [
3770
+ loading && /* @__PURE__ */ jsx32(Loader22, { className: "size-4 shrink-0 animate-spin", "aria-hidden": "true" }),
3613
3771
  children
3614
3772
  ] });
3615
3773
  }
@@ -3617,7 +3775,7 @@ var Button = forwardRef4(
3617
3775
  Button.displayName = "Button";
3618
3776
 
3619
3777
  // src/FilterDropdownFooter.tsx
3620
- import { jsx as jsx30, jsxs as jsxs28 } from "react/jsx-runtime";
3778
+ import { jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
3621
3779
  function FilterDropdownFooter({
3622
3780
  onClear,
3623
3781
  onApply,
@@ -3626,7 +3784,7 @@ function FilterDropdownFooter({
3626
3784
  className,
3627
3785
  testIdPrefix
3628
3786
  }) {
3629
- return /* @__PURE__ */ jsxs28(
3787
+ return /* @__PURE__ */ jsxs31(
3630
3788
  "div",
3631
3789
  {
3632
3790
  className: cn(
@@ -3636,8 +3794,8 @@ function FilterDropdownFooter({
3636
3794
  ),
3637
3795
  "data-testid": testIdPrefix,
3638
3796
  children: [
3639
- onClear && /* @__PURE__ */ jsx30(Button, { type: "button", variant: "ghost", size: "sm", onClick: onClear, children: clearLabel }),
3640
- /* @__PURE__ */ jsx30(Button, { type: "button", variant: "primary", size: "sm", onClick: onApply, children: applyLabel })
3797
+ onClear && /* @__PURE__ */ jsx33(Button, { type: "button", variant: "ghost", size: "sm", onClick: onClear, children: clearLabel }),
3798
+ /* @__PURE__ */ jsx33(Button, { type: "button", variant: "primary", size: "sm", onClick: onApply, children: applyLabel })
3641
3799
  ]
3642
3800
  }
3643
3801
  );
@@ -3646,7 +3804,7 @@ function FilterDropdownFooter({
3646
3804
  // src/NameListModal.tsx
3647
3805
  import { useEffect as useEffect10, useId as useId5, useRef as useRef12, useState as useState11 } from "react";
3648
3806
  import { createPortal as createPortal5 } from "react-dom";
3649
- import { jsx as jsx31, jsxs as jsxs29 } from "react/jsx-runtime";
3807
+ import { jsx as jsx34, jsxs as jsxs32 } from "react/jsx-runtime";
3650
3808
  function NameListModal({
3651
3809
  title,
3652
3810
  initialName,
@@ -3700,12 +3858,12 @@ function NameListModal({
3700
3858
  // bg-scrim, not a literal: design-tokens gained a scrim token in 2.5.0.
3701
3859
  // No in-data-[theme=dark] override needed any more -- the token redefines
3702
3860
  // itself under that attribute in dark.css, so one class covers both themes.
3703
- /* @__PURE__ */ jsx31(
3861
+ /* @__PURE__ */ jsx34(
3704
3862
  "div",
3705
3863
  {
3706
3864
  className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim px-4",
3707
3865
  onMouseDown: (e) => e.target === e.currentTarget && onCancel(),
3708
- children: /* @__PURE__ */ jsxs29(
3866
+ children: /* @__PURE__ */ jsxs32(
3709
3867
  "div",
3710
3868
  {
3711
3869
  ref: dialogRef,
@@ -3716,10 +3874,10 @@ function NameListModal({
3716
3874
  "data-testid": testIdPrefix,
3717
3875
  className: cn("w-full max-w-110 rounded-card border border-border-default bg-surface p-5 shadow-overlay", className),
3718
3876
  children: [
3719
- /* @__PURE__ */ jsx31("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
3720
- /* @__PURE__ */ jsxs29("div", { className: "mt-4 flex flex-col gap-1.5", children: [
3721
- /* @__PURE__ */ jsx31("label", { htmlFor: fieldId, className: "text-xs font-medium text-text-secondary", children: fieldLabel }),
3722
- /* @__PURE__ */ jsx31(
3877
+ /* @__PURE__ */ jsx34("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
3878
+ /* @__PURE__ */ jsxs32("div", { className: "mt-4 flex flex-col gap-1.5", children: [
3879
+ /* @__PURE__ */ jsx34("label", { htmlFor: fieldId, className: "text-xs font-medium text-text-secondary", children: fieldLabel }),
3880
+ /* @__PURE__ */ jsx34(
3723
3881
  "input",
3724
3882
  {
3725
3883
  id: fieldId,
@@ -3731,13 +3889,13 @@ function NameListModal({
3731
3889
  }
3732
3890
  )
3733
3891
  ] }),
3734
- options && options.length > 0 && /* @__PURE__ */ jsx31("div", { className: "mt-4 flex flex-col gap-2.5", children: options.map((o) => /* @__PURE__ */ jsxs29("label", { className: "flex cursor-pointer items-center gap-2.5 text-dense text-text-primary", children: [
3735
- /* @__PURE__ */ jsx31(CheckBox, { checked: !!checked[o.key], onChange: () => toggle(o.key), ariaLabel: o.label }),
3892
+ options && options.length > 0 && /* @__PURE__ */ jsx34("div", { className: "mt-4 flex flex-col gap-2.5", children: options.map((o) => /* @__PURE__ */ jsxs32("label", { className: "flex cursor-pointer items-center gap-2.5 text-dense text-text-primary", children: [
3893
+ /* @__PURE__ */ jsx34(CheckBox, { checked: !!checked[o.key], onChange: () => toggle(o.key), ariaLabel: o.label }),
3736
3894
  o.label
3737
3895
  ] }, o.key)) }),
3738
- /* @__PURE__ */ jsxs29("div", { className: "mt-5 flex items-center justify-end gap-2", children: [
3739
- /* @__PURE__ */ jsx31(Button, { variant: "secondary", onClick: onCancel, children: "Cancel" }),
3740
- /* @__PURE__ */ jsx31(Button, { disabled: !name.trim(), onClick: () => onSubmit(name.trim(), checked), children: submitLabel })
3896
+ /* @__PURE__ */ jsxs32("div", { className: "mt-5 flex items-center justify-end gap-2", children: [
3897
+ /* @__PURE__ */ jsx34(Button, { variant: "secondary", onClick: onCancel, children: "Cancel" }),
3898
+ /* @__PURE__ */ jsx34(Button, { disabled: !name.trim(), onClick: () => onSubmit(name.trim(), checked), children: submitLabel })
3741
3899
  ] })
3742
3900
  ]
3743
3901
  }
@@ -3750,11 +3908,11 @@ function NameListModal({
3750
3908
 
3751
3909
  // src/FilterChipBar.tsx
3752
3910
  import { CircleSlash, X as X4 } from "lucide-react";
3753
- import { jsx as jsx32, jsxs as jsxs30 } from "react/jsx-runtime";
3911
+ import { jsx as jsx35, jsxs as jsxs33 } from "react/jsx-runtime";
3754
3912
  function FilterChipBar({ chips, onRemove, onClearAll, parkedKeys, className, testIdPrefix }) {
3755
3913
  if (chips.length === 0) return null;
3756
- return /* @__PURE__ */ jsxs30("div", { className: cn("flex flex-wrap items-center gap-1.5 border-t border-border-default pt-2.5", className), "data-testid": testIdPrefix, children: [
3757
- chips.map((c) => /* @__PURE__ */ jsx32(
3914
+ return /* @__PURE__ */ jsxs33("div", { className: cn("flex flex-wrap items-center gap-1.5 border-t border-border-default pt-2.5", className), "data-testid": testIdPrefix, children: [
3915
+ chips.map((c) => /* @__PURE__ */ jsx35(
3758
3916
  Chip,
3759
3917
  {
3760
3918
  label: c.label,
@@ -3764,7 +3922,7 @@ function FilterChipBar({ chips, onRemove, onClearAll, parkedKeys, className, tes
3764
3922
  },
3765
3923
  c.key
3766
3924
  )),
3767
- /* @__PURE__ */ jsx32(
3925
+ /* @__PURE__ */ jsx35(
3768
3926
  "button",
3769
3927
  {
3770
3928
  type: "button",
@@ -3781,8 +3939,8 @@ function Chip({
3781
3939
  parked,
3782
3940
  onRemove
3783
3941
  }) {
3784
- return /* @__PURE__ */ jsxs30("span", { className: "group relative inline-flex", children: [
3785
- /* @__PURE__ */ jsxs30(
3942
+ return /* @__PURE__ */ jsxs33("span", { className: "group relative inline-flex", children: [
3943
+ /* @__PURE__ */ jsxs33(
3786
3944
  "span",
3787
3945
  {
3788
3946
  className: cn(
@@ -3794,22 +3952,22 @@ function Chip({
3794
3952
  ) : "bg-subtle text-text-secondary ring-transparent group-hover:bg-border-default group-hover:text-text-primary group-hover:ring-border-interactive"
3795
3953
  ),
3796
3954
  children: [
3797
- parked && /* @__PURE__ */ jsx32(CircleSlash, { size: 11, "aria-hidden": "true", className: "shrink-0 text-text-tertiary" }),
3955
+ parked && /* @__PURE__ */ jsx35(CircleSlash, { size: 11, "aria-hidden": "true", className: "shrink-0 text-text-tertiary" }),
3798
3956
  label,
3799
- /* @__PURE__ */ jsx32(
3957
+ /* @__PURE__ */ jsx35(
3800
3958
  "button",
3801
3959
  {
3802
3960
  type: "button",
3803
3961
  onClick: onRemove,
3804
3962
  "aria-label": `Remove ${groupLabel}: ${label}`,
3805
3963
  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",
3806
- children: /* @__PURE__ */ jsx32(X4, { size: 12 })
3964
+ children: /* @__PURE__ */ jsx35(X4, { size: 12 })
3807
3965
  }
3808
3966
  )
3809
3967
  ]
3810
3968
  }
3811
3969
  ),
3812
- /* @__PURE__ */ jsx32(
3970
+ /* @__PURE__ */ jsx35(
3813
3971
  "span",
3814
3972
  {
3815
3973
  role: "tooltip",
@@ -3821,15 +3979,15 @@ function Chip({
3821
3979
  }
3822
3980
 
3823
3981
  // src/SortButton.tsx
3824
- import { forwardRef as forwardRef5 } from "react";
3982
+ import { forwardRef as forwardRef7 } from "react";
3825
3983
  import { ArrowUp, ArrowDown, ArrowUpDown } from "lucide-react";
3826
- import { jsx as jsx33, jsxs as jsxs31 } from "react/jsx-runtime";
3984
+ import { jsx as jsx36, jsxs as jsxs34 } from "react/jsx-runtime";
3827
3985
  var ALIGN = {
3828
3986
  left: "justify-start text-left",
3829
3987
  center: "justify-center text-center",
3830
3988
  right: "justify-end text-right"
3831
3989
  };
3832
- var SortButton = forwardRef5(
3990
+ var SortButton = forwardRef7(
3833
3991
  function SortButton2({
3834
3992
  label,
3835
3993
  sortKey,
@@ -3841,9 +3999,9 @@ var SortButton = forwardRef5(
3841
3999
  className,
3842
4000
  testIdPrefix
3843
4001
  }, ref) {
3844
- if (!sortable) return /* @__PURE__ */ jsx33("span", { className: cn("inline-flex", ALIGN[align], className), children: label });
4002
+ if (!sortable) return /* @__PURE__ */ jsx36("span", { className: cn("inline-flex", ALIGN[align], className), children: label });
3845
4003
  const active = !disabled && sort.key === sortKey;
3846
- return /* @__PURE__ */ jsxs31(
4004
+ return /* @__PURE__ */ jsxs34(
3847
4005
  "button",
3848
4006
  {
3849
4007
  ref,
@@ -3874,7 +4032,7 @@ var SortButton = forwardRef5(
3874
4032
  ),
3875
4033
  children: [
3876
4034
  label,
3877
- !disabled && (active ? sort.dir === "asc" ? /* @__PURE__ */ jsx33(ArrowUp, { size: 12, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }) : /* @__PURE__ */ jsx33(ArrowDown, { size: 12, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }) : /* @__PURE__ */ jsx33(
4035
+ !disabled && (active ? sort.dir === "asc" ? /* @__PURE__ */ jsx36(ArrowUp, { size: 12, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }) : /* @__PURE__ */ jsx36(ArrowDown, { size: 12, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }) : /* @__PURE__ */ jsx36(
3878
4036
  ArrowUpDown,
3879
4037
  {
3880
4038
  size: 12,
@@ -3905,7 +4063,7 @@ function ariaSortFor(sort, key) {
3905
4063
 
3906
4064
  // src/Pager.tsx
3907
4065
  import { ChevronLeft as ChevronLeft3, ChevronRight as ChevronRight4 } from "lucide-react";
3908
- import { jsx as jsx34, jsxs as jsxs32 } from "react/jsx-runtime";
4066
+ import { jsx as jsx37, jsxs as jsxs35 } from "react/jsx-runtime";
3909
4067
  function pageWindow(current, total) {
3910
4068
  if (total <= 7) return Array.from({ length: total }, (_, i) => i + 1);
3911
4069
  const keep = /* @__PURE__ */ new Set([1, total, current, current - 1, current + 1]);
@@ -3921,8 +4079,8 @@ function pageWindow(current, total) {
3921
4079
  }
3922
4080
  function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination", className, testIdPrefix }) {
3923
4081
  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";
3924
- return /* @__PURE__ */ jsxs32("nav", { "aria-label": label, className: cn("flex items-center gap-1", className), "data-testid": testIdPrefix, children: [
3925
- /* @__PURE__ */ jsx34(
4082
+ return /* @__PURE__ */ jsxs35("nav", { "aria-label": label, className: cn("flex items-center gap-1", className), "data-testid": testIdPrefix, children: [
4083
+ /* @__PURE__ */ jsx37(
3926
4084
  "button",
3927
4085
  {
3928
4086
  type: "button",
@@ -3930,11 +4088,11 @@ function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination
3930
4088
  disabled: disabled || page === 1,
3931
4089
  "aria-label": "Previous page",
3932
4090
  className: cn(btn, "text-text-secondary hover:bg-subtle hover:text-text-primary"),
3933
- children: /* @__PURE__ */ jsx34(ChevronLeft3, { size: 16 })
4091
+ children: /* @__PURE__ */ jsx37(ChevronLeft3, { size: 16 })
3934
4092
  }
3935
4093
  ),
3936
4094
  pageWindow(page, totalPages).map(
3937
- (p) => typeof p === "string" ? /* @__PURE__ */ jsx34("span", { className: "px-1 text-dense text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ jsx34(
4095
+ (p) => typeof p === "string" ? /* @__PURE__ */ jsx37("span", { className: "px-1 text-dense text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ jsx37(
3938
4096
  "button",
3939
4097
  {
3940
4098
  type: "button",
@@ -3950,7 +4108,7 @@ function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination
3950
4108
  p
3951
4109
  )
3952
4110
  ),
3953
- /* @__PURE__ */ jsx34(
4111
+ /* @__PURE__ */ jsx37(
3954
4112
  "button",
3955
4113
  {
3956
4114
  type: "button",
@@ -3958,14 +4116,14 @@ function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination
3958
4116
  disabled: disabled || page === totalPages,
3959
4117
  "aria-label": "Next page",
3960
4118
  className: cn(btn, "text-text-secondary hover:bg-subtle hover:text-text-primary"),
3961
- children: /* @__PURE__ */ jsx34(ChevronRight4, { size: 16 })
4119
+ children: /* @__PURE__ */ jsx37(ChevronRight4, { size: 16 })
3962
4120
  }
3963
4121
  )
3964
4122
  ] });
3965
4123
  }
3966
4124
 
3967
4125
  // src/WorkspaceAvatar.tsx
3968
- import { jsx as jsx35 } from "react/jsx-runtime";
4126
+ import { jsx as jsx38 } from "react/jsx-runtime";
3969
4127
  function workspaceInitials(name) {
3970
4128
  const words = name.trim().split(/\s+/).filter(Boolean);
3971
4129
  if (words.length === 0) return "\xB7";
@@ -3984,7 +4142,7 @@ var SIZES = {
3984
4142
  lg: "h-11 w-11 text-panel-title"
3985
4143
  };
3986
4144
  function WorkspaceAvatar({ name, size = "md", className, testIdPrefix }) {
3987
- return /* @__PURE__ */ jsx35(
4145
+ return /* @__PURE__ */ jsx38(
3988
4146
  "span",
3989
4147
  {
3990
4148
  "aria-hidden": "true",
@@ -4003,11 +4161,11 @@ function WorkspaceAvatar({ name, size = "md", className, testIdPrefix }) {
4003
4161
  import { useEffect as useEffect11, useRef as useRef13, useState as useState12 } from "react";
4004
4162
  import { createPortal as createPortal6 } from "react-dom";
4005
4163
  import { AlertTriangle, Check as Check7 } from "lucide-react";
4006
- import { jsx as jsx36, jsxs as jsxs33 } from "react/jsx-runtime";
4164
+ import { jsx as jsx39, jsxs as jsxs36 } from "react/jsx-runtime";
4007
4165
  var ICON = {
4008
4166
  neutral: null,
4009
- success: /* @__PURE__ */ jsx36(Check7, { size: 15, className: "shrink-0", "aria-hidden": "true" }),
4010
- warning: /* @__PURE__ */ jsx36(AlertTriangle, { size: 15, className: "shrink-0", "aria-hidden": "true" })
4167
+ success: /* @__PURE__ */ jsx39(Check7, { size: 15, className: "shrink-0", "aria-hidden": "true" }),
4168
+ warning: /* @__PURE__ */ jsx39(AlertTriangle, { size: 15, className: "shrink-0", "aria-hidden": "true" })
4011
4169
  };
4012
4170
  function Toast({ message, action, onClose, tone = "neutral", duration, className, testIdPrefix }) {
4013
4171
  const ms = duration ?? (action ? 1e4 : 5e3);
@@ -4023,7 +4181,7 @@ function Toast({ message, action, onClose, tone = "neutral", duration, className
4023
4181
  return () => window.clearTimeout(t);
4024
4182
  }, [message, ms, paused]);
4025
4183
  return createPortal6(
4026
- /* @__PURE__ */ jsxs33(
4184
+ /* @__PURE__ */ jsxs36(
4027
4185
  "div",
4028
4186
  {
4029
4187
  role: "status",
@@ -4041,7 +4199,7 @@ function Toast({ message, action, onClose, tone = "neutral", duration, className
4041
4199
  children: [
4042
4200
  ICON[tone] && // The inverse pair, not text-success / text-warning: those are tuned
4043
4201
  // for the page, and on the toast's flipped surface amber drops to 2:1.
4044
- /* @__PURE__ */ jsx36(
4202
+ /* @__PURE__ */ jsx39(
4045
4203
  "span",
4046
4204
  {
4047
4205
  className: cn(
@@ -4051,8 +4209,8 @@ function Toast({ message, action, onClose, tone = "neutral", duration, className
4051
4209
  children: ICON[tone]
4052
4210
  }
4053
4211
  ),
4054
- /* @__PURE__ */ jsx36("span", { className: "min-w-0", children: message }),
4055
- action && /* @__PURE__ */ jsx36(
4212
+ /* @__PURE__ */ jsx39("span", { className: "min-w-0", children: message }),
4213
+ action && /* @__PURE__ */ jsx39(
4056
4214
  "button",
4057
4215
  {
4058
4216
  type: "button",
@@ -4074,14 +4232,14 @@ function Toast({ message, action, onClose, tone = "neutral", duration, className
4074
4232
  }
4075
4233
 
4076
4234
  // src/Tag.tsx
4077
- import { jsx as jsx37 } from "react/jsx-runtime";
4235
+ import { jsx as jsx40 } from "react/jsx-runtime";
4078
4236
  function Tag({ children, className, testIdPrefix }) {
4079
- return /* @__PURE__ */ jsx37(Badge, { kind: "category", className, testIdPrefix, children });
4237
+ return /* @__PURE__ */ jsx40(Badge, { kind: "category", className, testIdPrefix, children });
4080
4238
  }
4081
4239
 
4082
4240
  // src/TablePagination.tsx
4083
4241
  import { ChevronFirst, ChevronLast, ChevronLeft as ChevronLeft4, ChevronRight as ChevronRight5 } from "lucide-react";
4084
- import { jsx as jsx38, jsxs as jsxs34 } from "react/jsx-runtime";
4242
+ import { jsx as jsx41, jsxs as jsxs37 } from "react/jsx-runtime";
4085
4243
  function TablePagination({
4086
4244
  page,
4087
4245
  perPage,
@@ -4101,7 +4259,7 @@ function TablePagination({
4101
4259
  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";
4102
4260
  const off = "disabled:pointer-events-none disabled:opacity-30";
4103
4261
  const stepBtn = cn(btn, "text-text-secondary hover:bg-subtle hover:text-text-primary", off);
4104
- const range = /* @__PURE__ */ jsxs34("span", { className: "text-dense text-text-tertiary tabular-nums", children: [
4262
+ const range = /* @__PURE__ */ jsxs37("span", { className: "text-dense text-text-tertiary tabular-nums", children: [
4105
4263
  rangeStart.toLocaleString(),
4106
4264
  " \u2013 ",
4107
4265
  rangeEnd.toLocaleString(),
@@ -4110,13 +4268,13 @@ function TablePagination({
4110
4268
  " ",
4111
4269
  itemLabel
4112
4270
  ] });
4113
- return /* @__PURE__ */ jsxs34("div", { className: cn("flex flex-wrap items-center justify-between gap-x-4 gap-y-2", className), "data-testid": testIdPrefix, children: [
4114
- /* @__PURE__ */ jsxs34(
4271
+ return /* @__PURE__ */ jsxs37("div", { className: cn("flex flex-wrap items-center justify-between gap-x-4 gap-y-2", className), "data-testid": testIdPrefix, children: [
4272
+ /* @__PURE__ */ jsxs37(
4115
4273
  "div",
4116
4274
  {
4117
4275
  className: cn("flex items-center gap-2 text-dense text-text-secondary", !onPerPageChange && "invisible"),
4118
4276
  children: [
4119
- /* @__PURE__ */ jsx38(
4277
+ /* @__PURE__ */ jsx41(
4120
4278
  SelectFilter,
4121
4279
  {
4122
4280
  size: "sm",
@@ -4132,8 +4290,8 @@ function TablePagination({
4132
4290
  ]
4133
4291
  }
4134
4292
  ),
4135
- /* @__PURE__ */ jsxs34("nav", { className: "flex items-center gap-1", "aria-label": "Pagination", children: [
4136
- /* @__PURE__ */ jsx38(
4293
+ /* @__PURE__ */ jsxs37("nav", { className: "flex items-center gap-1", "aria-label": "Pagination", children: [
4294
+ /* @__PURE__ */ jsx41(
4137
4295
  "button",
4138
4296
  {
4139
4297
  type: "button",
@@ -4142,10 +4300,10 @@ function TablePagination({
4142
4300
  "aria-label": "First page",
4143
4301
  "data-testid": testIdPrefix && `${testIdPrefix}-first`,
4144
4302
  className: stepBtn,
4145
- children: /* @__PURE__ */ jsx38(ChevronFirst, { size: 16, "aria-hidden": "true" })
4303
+ children: /* @__PURE__ */ jsx41(ChevronFirst, { size: 16, "aria-hidden": "true" })
4146
4304
  }
4147
4305
  ),
4148
- /* @__PURE__ */ jsx38(
4306
+ /* @__PURE__ */ jsx41(
4149
4307
  "button",
4150
4308
  {
4151
4309
  type: "button",
@@ -4154,11 +4312,11 @@ function TablePagination({
4154
4312
  "aria-label": "Previous page",
4155
4313
  "data-testid": testIdPrefix && `${testIdPrefix}-prev`,
4156
4314
  className: stepBtn,
4157
- children: /* @__PURE__ */ jsx38(ChevronLeft4, { size: 16, "aria-hidden": "true" })
4315
+ children: /* @__PURE__ */ jsx41(ChevronLeft4, { size: 16, "aria-hidden": "true" })
4158
4316
  }
4159
4317
  ),
4160
4318
  pageWindow(current, totalPages).map(
4161
- (p) => typeof p === "string" ? /* @__PURE__ */ jsx38("span", { className: "px-1 text-dense text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ jsx38(
4319
+ (p) => typeof p === "string" ? /* @__PURE__ */ jsx41("span", { className: "px-1 text-dense text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ jsx41(
4162
4320
  "button",
4163
4321
  {
4164
4322
  type: "button",
@@ -4176,7 +4334,7 @@ function TablePagination({
4176
4334
  p
4177
4335
  )
4178
4336
  ),
4179
- /* @__PURE__ */ jsx38(
4337
+ /* @__PURE__ */ jsx41(
4180
4338
  "button",
4181
4339
  {
4182
4340
  type: "button",
@@ -4185,10 +4343,10 @@ function TablePagination({
4185
4343
  "aria-label": "Next page",
4186
4344
  "data-testid": testIdPrefix && `${testIdPrefix}-next`,
4187
4345
  className: stepBtn,
4188
- children: /* @__PURE__ */ jsx38(ChevronRight5, { size: 16, "aria-hidden": "true" })
4346
+ children: /* @__PURE__ */ jsx41(ChevronRight5, { size: 16, "aria-hidden": "true" })
4189
4347
  }
4190
4348
  ),
4191
- /* @__PURE__ */ jsx38(
4349
+ /* @__PURE__ */ jsx41(
4192
4350
  "button",
4193
4351
  {
4194
4352
  type: "button",
@@ -4197,7 +4355,7 @@ function TablePagination({
4197
4355
  "aria-label": "Last page",
4198
4356
  "data-testid": testIdPrefix && `${testIdPrefix}-last`,
4199
4357
  className: stepBtn,
4200
- children: /* @__PURE__ */ jsx38(ChevronLast, { size: 16, "aria-hidden": "true" })
4358
+ children: /* @__PURE__ */ jsx41(ChevronLast, { size: 16, "aria-hidden": "true" })
4201
4359
  }
4202
4360
  )
4203
4361
  ] }),
@@ -4208,7 +4366,7 @@ function TablePagination({
4208
4366
  // src/DateRangePicker.tsx
4209
4367
  import { useEffect as useEffect12, useMemo as useMemo4, useRef as useRef14, useState as useState13 } from "react";
4210
4368
  import { ChevronDown as ChevronDown9 } from "lucide-react";
4211
- import { jsx as jsx39, jsxs as jsxs35 } from "react/jsx-runtime";
4369
+ import { jsx as jsx42, jsxs as jsxs38 } from "react/jsx-runtime";
4212
4370
  var MONTH_ABBR = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
4213
4371
  var QUARTER_ABBR = ["Q1", "Q2", "Q3", "Q4"];
4214
4372
  var PRESETS = ["Rolling 3 months", "Rolling 6 months", "Rolling 12 months"];
@@ -4246,7 +4404,7 @@ function spanLabel2(label, today, formatDate, formatRange) {
4246
4404
  return `${f(s)} \u2013 ${f(e)}`;
4247
4405
  }
4248
4406
  function MiniSelect({ value, onChange, options }) {
4249
- return /* @__PURE__ */ jsx39(
4407
+ return /* @__PURE__ */ jsx42(
4250
4408
  "select",
4251
4409
  {
4252
4410
  value: String(value),
@@ -4255,7 +4413,7 @@ function MiniSelect({ value, onChange, options }) {
4255
4413
  if (opt) onChange(opt.value);
4256
4414
  },
4257
4415
  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",
4258
- children: options.map((o) => /* @__PURE__ */ jsx39("option", { value: String(o.value), children: o.label }, String(o.value)))
4416
+ children: options.map((o) => /* @__PURE__ */ jsx42("option", { value: String(o.value), children: o.label }, String(o.value)))
4259
4417
  }
4260
4418
  );
4261
4419
  }
@@ -4320,8 +4478,8 @@ function DateRangePicker({
4320
4478
  if (showFooter) setDraft(label);
4321
4479
  else commit(label);
4322
4480
  };
4323
- return /* @__PURE__ */ jsxs35("div", { className: cn("relative", className), ref, "data-testid": testIdPrefix, children: [
4324
- /* @__PURE__ */ jsxs35(
4481
+ return /* @__PURE__ */ jsxs38("div", { className: cn("relative", className), ref, "data-testid": testIdPrefix, children: [
4482
+ /* @__PURE__ */ jsxs38(
4325
4483
  "button",
4326
4484
  {
4327
4485
  type: "button",
@@ -4330,16 +4488,16 @@ function DateRangePicker({
4330
4488
  "aria-haspopup": "listbox",
4331
4489
  className: chipTriggerClass(),
4332
4490
  children: [
4333
- /* @__PURE__ */ jsxs35("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
4334
- /* @__PURE__ */ jsx39("span", { className: "text-control-caption leading-none text-text-tertiary", children: spanLabel2(value, end, formatDate, formatRange) }),
4335
- /* @__PURE__ */ jsx39("span", { className: "text-xs leading-none font-medium text-text-primary", children: value })
4491
+ /* @__PURE__ */ jsxs38("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
4492
+ /* @__PURE__ */ jsx42("span", { className: "text-control-caption leading-none text-text-tertiary", children: spanLabel2(value, end, formatDate, formatRange) }),
4493
+ /* @__PURE__ */ jsx42("span", { className: "text-xs leading-none font-medium text-text-primary", children: value })
4336
4494
  ] }),
4337
- /* @__PURE__ */ jsx39(ChevronDown9, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-text-secondary transition-transform", open && "rotate-180") })
4495
+ /* @__PURE__ */ jsx42(ChevronDown9, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-text-secondary transition-transform", open && "rotate-180") })
4338
4496
  ]
4339
4497
  }
4340
4498
  ),
4341
- open && /* @__PURE__ */ jsxs35("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: [
4342
- presets.map((p) => /* @__PURE__ */ jsx39(
4499
+ open && /* @__PURE__ */ jsxs38("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: [
4500
+ presets.map((p) => /* @__PURE__ */ jsx42(
4343
4501
  "button",
4344
4502
  {
4345
4503
  type: "button",
@@ -4349,26 +4507,26 @@ function DateRangePicker({
4349
4507
  },
4350
4508
  p
4351
4509
  )),
4352
- /* @__PURE__ */ jsxs35("div", { className: "mt-1 border-t border-border-default px-3 pb-2 pt-2", children: [
4353
- /* @__PURE__ */ jsx39("div", { className: "text-dense font-semibold text-text-primary", children: "Custom range" }),
4354
- /* @__PURE__ */ jsxs35("div", { className: "mt-2 flex flex-col gap-2", children: [
4355
- /* @__PURE__ */ jsxs35("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4510
+ /* @__PURE__ */ jsxs38("div", { className: "mt-1 border-t border-border-default px-3 pb-2 pt-2", children: [
4511
+ /* @__PURE__ */ jsx42("div", { className: "text-dense font-semibold text-text-primary", children: "Custom range" }),
4512
+ /* @__PURE__ */ jsxs38("div", { className: "mt-2 flex flex-col gap-2", children: [
4513
+ /* @__PURE__ */ jsxs38("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4356
4514
  "From",
4357
- /* @__PURE__ */ jsxs35("span", { className: "flex gap-1", children: [
4358
- granularity === "month" && /* @__PURE__ */ jsx39(MiniSelect, { value: fromMo, onChange: setFromMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
4359
- granularity === "quarter" && /* @__PURE__ */ jsx39(MiniSelect, { value: fromQ, onChange: setFromQ, options: QUARTER_ABBR.map((qq, i) => ({ label: qq, value: i })) }),
4360
- /* @__PURE__ */ jsx39(MiniSelect, { value: fromYr, onChange: setFromYr, options: yearOptions.map((y) => ({ label: String(y), value: y })) })
4515
+ /* @__PURE__ */ jsxs38("span", { className: "flex gap-1", children: [
4516
+ granularity === "month" && /* @__PURE__ */ jsx42(MiniSelect, { value: fromMo, onChange: setFromMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
4517
+ granularity === "quarter" && /* @__PURE__ */ jsx42(MiniSelect, { value: fromQ, onChange: setFromQ, options: QUARTER_ABBR.map((qq, i) => ({ label: qq, value: i })) }),
4518
+ /* @__PURE__ */ jsx42(MiniSelect, { value: fromYr, onChange: setFromYr, options: yearOptions.map((y) => ({ label: String(y), value: y })) })
4361
4519
  ] })
4362
4520
  ] }),
4363
- /* @__PURE__ */ jsxs35("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4521
+ /* @__PURE__ */ jsxs38("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4364
4522
  "To",
4365
- /* @__PURE__ */ jsxs35("span", { className: "flex gap-1", children: [
4366
- granularity === "month" && /* @__PURE__ */ jsx39(MiniSelect, { value: toMo, onChange: setToMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
4367
- granularity === "quarter" && /* @__PURE__ */ jsx39(MiniSelect, { value: toQ, onChange: setToQ, options: QUARTER_ABBR.map((qq, i) => ({ label: qq, value: i })) }),
4368
- /* @__PURE__ */ jsx39(MiniSelect, { value: toYr, onChange: setToYr, options: yearOptions.map((y) => ({ label: String(y), value: y })) })
4523
+ /* @__PURE__ */ jsxs38("span", { className: "flex gap-1", children: [
4524
+ granularity === "month" && /* @__PURE__ */ jsx42(MiniSelect, { value: toMo, onChange: setToMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
4525
+ granularity === "quarter" && /* @__PURE__ */ jsx42(MiniSelect, { value: toQ, onChange: setToQ, options: QUARTER_ABBR.map((qq, i) => ({ label: qq, value: i })) }),
4526
+ /* @__PURE__ */ jsx42(MiniSelect, { value: toYr, onChange: setToYr, options: yearOptions.map((y) => ({ label: String(y), value: y })) })
4369
4527
  ] })
4370
4528
  ] }),
4371
- /* @__PURE__ */ jsx39(
4529
+ /* @__PURE__ */ jsx42(
4372
4530
  "button",
4373
4531
  {
4374
4532
  type: "button",
@@ -4380,7 +4538,7 @@ function DateRangePicker({
4380
4538
  )
4381
4539
  ] })
4382
4540
  ] }),
4383
- showFooter && /* @__PURE__ */ jsx39(FilterDropdownFooter, { onApply: () => commit(draft) })
4541
+ showFooter && /* @__PURE__ */ jsx42(FilterDropdownFooter, { onApply: () => commit(draft) })
4384
4542
  ] })
4385
4543
  ] });
4386
4544
  }
@@ -4388,7 +4546,7 @@ function DateRangePicker({
4388
4546
  // src/MultiSelectFilter.tsx
4389
4547
  import { useCallback as useCallback4, useEffect as useEffect13, useRef as useRef15, useState as useState14 } from "react";
4390
4548
  import { ChevronDown as ChevronDown10, Search as Search5, X as X5 } from "lucide-react";
4391
- import { Fragment as Fragment4, jsx as jsx40, jsxs as jsxs36 } from "react/jsx-runtime";
4549
+ import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs39 } from "react/jsx-runtime";
4392
4550
  var SEARCH_AFTER = 8;
4393
4551
  function MultiSelectFilter({
4394
4552
  caption,
@@ -4486,9 +4644,9 @@ function MultiSelectFilter({
4486
4644
  const shown = open && !showFooter ? draft : selected;
4487
4645
  const isAll = shown.length === 0 || fullIsAll && shown.length === leafOptions.length;
4488
4646
  const value = valueLabel ?? (isAll ? allLabel : shown.length === 1 ? leafOptions.find((o) => o.id === shown[0])?.label ?? `${shown.length} selected` : `${shown.length} selected`);
4489
- const labelled = (id, label) => hints?.[id] ? /* @__PURE__ */ jsxs36("span", { className: "flex flex-col", children: [
4490
- /* @__PURE__ */ jsx40("span", { children: label }),
4491
- /* @__PURE__ */ jsx40("span", { className: "text-xs font-normal text-text-tertiary", children: hints[id] })
4647
+ const labelled = (id, label) => hints?.[id] ? /* @__PURE__ */ jsxs39("span", { className: "flex flex-col", children: [
4648
+ /* @__PURE__ */ jsx43("span", { children: label }),
4649
+ /* @__PURE__ */ jsx43("span", { className: "text-xs font-normal text-text-tertiary", children: hints[id] })
4492
4650
  ] }) : label;
4493
4651
  const ql = q.trim().toLowerCase();
4494
4652
  const items = options.filter((o) => isAvailable(o.id) && (!ql || o.label.toLowerCase().includes(ql)));
@@ -4499,8 +4657,8 @@ function MultiSelectFilter({
4499
4657
  const kids = live.filter((c) => c.label.toLowerCase().includes(ql));
4500
4658
  return kids.length ? { ...g, children: kids } : null;
4501
4659
  }).filter((g) => g !== null) : [];
4502
- return /* @__PURE__ */ jsxs36("div", { className: cn("relative", fullWidth && "w-full", className), ref, "data-testid": testIdPrefix, children: [
4503
- /* @__PURE__ */ jsxs36(
4660
+ return /* @__PURE__ */ jsxs39("div", { className: cn("relative", fullWidth && "w-full", className), ref, "data-testid": testIdPrefix, children: [
4661
+ /* @__PURE__ */ jsxs39(
4504
4662
  "button",
4505
4663
  {
4506
4664
  type: "button",
@@ -4509,8 +4667,8 @@ function MultiSelectFilter({
4509
4667
  "data-testid": testIdPrefix && `${testIdPrefix}-trigger`,
4510
4668
  className: cn(chipTriggerClass(variant), fullWidth && "w-full justify-between"),
4511
4669
  children: [
4512
- /* @__PURE__ */ jsx40(ChipContent, { caption, value, icon }),
4513
- /* @__PURE__ */ jsx40(
4670
+ /* @__PURE__ */ jsx43(ChipContent, { caption, value, icon }),
4671
+ /* @__PURE__ */ jsx43(
4514
4672
  ChevronDown10,
4515
4673
  {
4516
4674
  size: 14,
@@ -4521,7 +4679,7 @@ function MultiSelectFilter({
4521
4679
  ]
4522
4680
  }
4523
4681
  ),
4524
- open && /* @__PURE__ */ jsx40(
4682
+ open && /* @__PURE__ */ jsx43(
4525
4683
  "div",
4526
4684
  {
4527
4685
  className: cn(
@@ -4532,10 +4690,10 @@ function MultiSelectFilter({
4532
4690
  "data-testid": testIdPrefix && `${testIdPrefix}-popover`,
4533
4691
  role: "dialog",
4534
4692
  "aria-label": caption,
4535
- children: loading ? /* @__PURE__ */ jsx40(MenuLoading, {}) : error ? /* @__PURE__ */ jsx40(MenuError, { onRetry }) : /* @__PURE__ */ jsxs36(Fragment4, { children: [
4536
- showSearch && /* @__PURE__ */ jsx40("div", { className: "border-b border-border-default p-2", children: /* @__PURE__ */ jsxs36("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: [
4537
- /* @__PURE__ */ jsx40(Search5, { size: 14, className: "text-text-secondary", "aria-hidden": "true" }),
4538
- /* @__PURE__ */ jsx40(
4693
+ children: loading ? /* @__PURE__ */ jsx43(MenuLoading, {}) : error ? /* @__PURE__ */ jsx43(MenuError, { onRetry }) : /* @__PURE__ */ jsxs39(Fragment4, { children: [
4694
+ showSearch && /* @__PURE__ */ jsx43("div", { className: "border-b border-border-default p-2", children: /* @__PURE__ */ jsxs39("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: [
4695
+ /* @__PURE__ */ jsx43(Search5, { size: 14, className: "text-text-secondary", "aria-hidden": "true" }),
4696
+ /* @__PURE__ */ jsx43(
4539
4697
  "input",
4540
4698
  {
4541
4699
  type: "text",
@@ -4545,37 +4703,37 @@ function MultiSelectFilter({
4545
4703
  className: "h-full flex-1 bg-transparent text-dense outline-hidden placeholder:text-text-tertiary"
4546
4704
  }
4547
4705
  ),
4548
- q && /* @__PURE__ */ jsx40("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__ */ jsx40(X5, { size: 13 }) })
4706
+ q && /* @__PURE__ */ jsx43("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__ */ jsx43(X5, { size: 13 }) })
4549
4707
  ] }) }),
4550
- /* @__PURE__ */ jsxs36("div", { className: "max-h-70 overflow-y-auto p-1", children: [
4708
+ /* @__PURE__ */ jsxs39("div", { className: "max-h-70 overflow-y-auto p-1", children: [
4551
4709
  groups ? visibleGroups.map((g) => {
4552
4710
  const state = groupState(g);
4553
- return /* @__PURE__ */ jsxs36("div", { children: [
4554
- /* @__PURE__ */ jsxs36(
4711
+ return /* @__PURE__ */ jsxs39("div", { children: [
4712
+ /* @__PURE__ */ jsxs39(
4555
4713
  "button",
4556
4714
  {
4557
4715
  type: "button",
4558
4716
  onClick: () => toggleGroup(g),
4559
4717
  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",
4560
4718
  children: [
4561
- /* @__PURE__ */ jsx40(CheckBoxBox, { checked: state === "all", indeterminate: state === "some" }),
4562
- /* @__PURE__ */ jsx40("span", { className: cn("flex-1 text-sm text-text-primary", !plainParent && "font-semibold"), children: labelled(g.id, g.label) }),
4563
- counts && /* @__PURE__ */ jsx40(OptionCount, { n: countFor(g.id) })
4719
+ /* @__PURE__ */ jsx43(CheckBoxBox, { checked: state === "all", indeterminate: state === "some" }),
4720
+ /* @__PURE__ */ jsx43("span", { className: cn("flex-1 text-sm text-text-primary", !plainParent && "font-semibold"), children: labelled(g.id, g.label) }),
4721
+ counts && /* @__PURE__ */ jsx43(OptionCount, { n: countFor(g.id) })
4564
4722
  ]
4565
4723
  }
4566
4724
  ),
4567
4725
  g.children.map((c) => {
4568
4726
  const checked = draft.includes(c.id);
4569
- return /* @__PURE__ */ jsxs36(
4727
+ return /* @__PURE__ */ jsxs39(
4570
4728
  "button",
4571
4729
  {
4572
4730
  type: "button",
4573
4731
  onClick: () => toggle(c.id),
4574
4732
  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",
4575
4733
  children: [
4576
- /* @__PURE__ */ jsx40(CheckBoxBox, { checked }),
4577
- /* @__PURE__ */ jsx40("span", { className: "flex-1 text-sm text-text-primary", children: labelled(c.id, c.label) }),
4578
- counts && /* @__PURE__ */ jsx40(OptionCount, { n: countFor(c.id) })
4734
+ /* @__PURE__ */ jsx43(CheckBoxBox, { checked }),
4735
+ /* @__PURE__ */ jsx43("span", { className: "flex-1 text-sm text-text-primary", children: labelled(c.id, c.label) }),
4736
+ counts && /* @__PURE__ */ jsx43(OptionCount, { n: countFor(c.id) })
4579
4737
  ]
4580
4738
  },
4581
4739
  c.id
@@ -4584,25 +4742,25 @@ function MultiSelectFilter({
4584
4742
  ] }, g.id);
4585
4743
  }) : items.map((o) => {
4586
4744
  const checked = draft.includes(o.id);
4587
- return /* @__PURE__ */ jsxs36(
4745
+ return /* @__PURE__ */ jsxs39(
4588
4746
  "button",
4589
4747
  {
4590
4748
  type: "button",
4591
4749
  onClick: () => toggle(o.id),
4592
4750
  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",
4593
4751
  children: [
4594
- /* @__PURE__ */ jsx40(CheckBoxBox, { checked }),
4595
- /* @__PURE__ */ jsx40("span", { className: "flex-1 text-sm text-text-primary", children: labelled(o.id, o.label) }),
4596
- counts && /* @__PURE__ */ jsx40(OptionCount, { n: countFor(o.id) })
4752
+ /* @__PURE__ */ jsx43(CheckBoxBox, { checked }),
4753
+ /* @__PURE__ */ jsx43("span", { className: "flex-1 text-sm text-text-primary", children: labelled(o.id, o.label) }),
4754
+ counts && /* @__PURE__ */ jsx43(OptionCount, { n: countFor(o.id) })
4597
4755
  ]
4598
4756
  },
4599
4757
  o.id
4600
4758
  );
4601
4759
  }),
4602
- (groups && !visibleGroups.length || !groups && !items.length) && /* @__PURE__ */ jsx40("div", { className: "py-6 text-center text-dense text-text-tertiary", children: "No matches." })
4760
+ (groups && !visibleGroups.length || !groups && !items.length) && /* @__PURE__ */ jsx43("div", { className: "py-6 text-center text-dense text-text-tertiary", children: "No matches." })
4603
4761
  ] }),
4604
- note && /* @__PURE__ */ jsx40("p", { className: "border-t border-border-default px-3 py-2 text-xs text-text-tertiary", children: note }),
4605
- showFooter ? /* @__PURE__ */ jsx40(FilterDropdownFooter, { onClear: clearAll, onApply: apply }) : min === 0 && draft.length > 0 && /* @__PURE__ */ jsx40("div", { className: "border-t border-border-default p-2", children: /* @__PURE__ */ jsxs36(
4762
+ note && /* @__PURE__ */ jsx43("p", { className: "border-t border-border-default px-3 py-2 text-xs text-text-tertiary", children: note }),
4763
+ showFooter ? /* @__PURE__ */ jsx43(FilterDropdownFooter, { onClear: clearAll, onApply: apply }) : min === 0 && draft.length > 0 && /* @__PURE__ */ jsx43("div", { className: "border-t border-border-default p-2", children: /* @__PURE__ */ jsxs39(
4606
4764
  "button",
4607
4765
  {
4608
4766
  type: "button",
@@ -4620,7 +4778,7 @@ function MultiSelectFilter({
4620
4778
  ] });
4621
4779
  }
4622
4780
  function OptionCount({ n }) {
4623
- return /* @__PURE__ */ jsxs36("span", { className: "shrink-0 text-xs tabular-nums text-text-tertiary", children: [
4781
+ return /* @__PURE__ */ jsxs39("span", { className: "shrink-0 text-xs tabular-nums text-text-tertiary", children: [
4624
4782
  "(",
4625
4783
  n.toLocaleString(),
4626
4784
  ")"
@@ -4628,16 +4786,16 @@ function OptionCount({ n }) {
4628
4786
  }
4629
4787
 
4630
4788
  // src/Toggle.tsx
4631
- import { forwardRef as forwardRef6 } from "react";
4632
- import { jsx as jsx41 } from "react/jsx-runtime";
4789
+ import { forwardRef as forwardRef8 } from "react";
4790
+ import { jsx as jsx44 } from "react/jsx-runtime";
4633
4791
  var SIZES2 = {
4634
4792
  sm: { track: "h-5 w-9", knob: "h-4 w-4", on: "translate-x-4.5" },
4635
4793
  md: { track: "h-6 w-11", knob: "h-5 w-5", on: "translate-x-5.5" }
4636
4794
  };
4637
4795
  var OFF_TRACK = "color-mix(in srgb, var(--mr-color-border-interactive) 70%, var(--mr-color-text-secondary))";
4638
- var Toggle = forwardRef6(function Toggle2({ checked, onChange, label, size = "md", disabled, className, testIdPrefix }, ref) {
4796
+ var Toggle = forwardRef8(function Toggle2({ checked, onChange, label, size = "md", disabled, className, testIdPrefix }, ref) {
4639
4797
  const s = SIZES2[size];
4640
- return /* @__PURE__ */ jsx41(
4798
+ return /* @__PURE__ */ jsx44(
4641
4799
  "button",
4642
4800
  {
4643
4801
  ref,
@@ -4656,7 +4814,7 @@ var Toggle = forwardRef6(function Toggle2({ checked, onChange, label, size = "md
4656
4814
  disabled && "cursor-not-allowed opacity-50",
4657
4815
  className
4658
4816
  ),
4659
- children: /* @__PURE__ */ jsx41(
4817
+ children: /* @__PURE__ */ jsx44(
4660
4818
  "span",
4661
4819
  {
4662
4820
  className: cn(
@@ -4674,20 +4832,20 @@ Toggle.displayName = "Toggle";
4674
4832
  // src/AISpark.tsx
4675
4833
  import { useId as useId6 } from "react";
4676
4834
  import { Sparkles } from "lucide-react";
4677
- import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs37 } from "react/jsx-runtime";
4835
+ import { Fragment as Fragment5, jsx as jsx45, jsxs as jsxs40 } from "react/jsx-runtime";
4678
4836
  function AISpark({ size = 16, className, testIdPrefix }) {
4679
4837
  const id = useId6();
4680
- return /* @__PURE__ */ jsxs37(Fragment5, { children: [
4681
- /* @__PURE__ */ jsx42("svg", { width: "0", height: "0", "aria-hidden": "true", style: { position: "absolute" }, children: /* @__PURE__ */ jsx42("defs", { children: /* @__PURE__ */ jsxs37("linearGradient", { id, x1: "0", y1: "0", x2: "1", y2: "1", children: [
4682
- /* @__PURE__ */ jsx42("stop", { offset: "0%", stopColor: "var(--mr-color-brand-primary)" }),
4683
- /* @__PURE__ */ jsx42("stop", { offset: "100%", stopColor: "var(--mr-color-ai-violet)" })
4838
+ return /* @__PURE__ */ jsxs40(Fragment5, { children: [
4839
+ /* @__PURE__ */ jsx45("svg", { width: "0", height: "0", "aria-hidden": "true", style: { position: "absolute" }, children: /* @__PURE__ */ jsx45("defs", { children: /* @__PURE__ */ jsxs40("linearGradient", { id, x1: "0", y1: "0", x2: "1", y2: "1", children: [
4840
+ /* @__PURE__ */ jsx45("stop", { offset: "0%", stopColor: "var(--mr-color-brand-primary)" }),
4841
+ /* @__PURE__ */ jsx45("stop", { offset: "100%", stopColor: "var(--mr-color-ai-violet)" })
4684
4842
  ] }) }) }),
4685
- /* @__PURE__ */ jsx42(Sparkles, { size, stroke: `url(#${id})`, className, "data-testid": testIdPrefix, "aria-hidden": "true" })
4843
+ /* @__PURE__ */ jsx45(Sparkles, { size, stroke: `url(#${id})`, className, "data-testid": testIdPrefix, "aria-hidden": "true" })
4686
4844
  ] });
4687
4845
  }
4688
4846
 
4689
4847
  // src/Freshness.tsx
4690
- import { jsx as jsx43 } from "react/jsx-runtime";
4848
+ import { jsx as jsx46 } from "react/jsx-runtime";
4691
4849
  var dotColor = {
4692
4850
  fresh: "bg-status-success",
4693
4851
  recent: "bg-status-warning",
@@ -4699,7 +4857,7 @@ var srLabel = {
4699
4857
  stale: "Older than a day"
4700
4858
  };
4701
4859
  function Freshness({ level, className, testIdPrefix }) {
4702
- return /* @__PURE__ */ jsx43(
4860
+ return /* @__PURE__ */ jsx46(
4703
4861
  "span",
4704
4862
  {
4705
4863
  className: cn("inline-block h-1.5 w-1.5 shrink-0 rounded-full", dotColor[level], className),
@@ -4711,42 +4869,42 @@ function Freshness({ level, className, testIdPrefix }) {
4711
4869
  }
4712
4870
 
4713
4871
  // src/SectionHeading.tsx
4714
- import { jsx as jsx44, jsxs as jsxs38 } from "react/jsx-runtime";
4872
+ import { jsx as jsx47, jsxs as jsxs41 } from "react/jsx-runtime";
4715
4873
  function SectionHeading({ title, description, actions, as: Tag2 = "h2", id, className, testIdPrefix }) {
4716
- return /* @__PURE__ */ jsxs38("div", { className: cn("flex flex-wrap items-end justify-between gap-x-4 gap-y-2", className), "data-testid": testIdPrefix, children: [
4717
- /* @__PURE__ */ jsxs38("div", { className: "min-w-0", children: [
4718
- /* @__PURE__ */ jsx44(Tag2, { id, className: "text-base font-semibold text-text-primary", children: title }),
4719
- description && /* @__PURE__ */ jsx44("p", { className: "mt-0.5 text-dense text-text-secondary", children: description })
4874
+ return /* @__PURE__ */ jsxs41("div", { className: cn("flex flex-wrap items-end justify-between gap-x-4 gap-y-2", className), "data-testid": testIdPrefix, children: [
4875
+ /* @__PURE__ */ jsxs41("div", { className: "min-w-0", children: [
4876
+ /* @__PURE__ */ jsx47(Tag2, { id, className: "text-base font-semibold text-text-primary", children: title }),
4877
+ description && /* @__PURE__ */ jsx47("p", { className: "mt-0.5 text-dense text-text-secondary", children: description })
4720
4878
  ] }),
4721
- actions && /* @__PURE__ */ jsx44("div", { className: "flex shrink-0 items-center gap-2", children: actions })
4879
+ actions && /* @__PURE__ */ jsx47("div", { className: "flex shrink-0 items-center gap-2", children: actions })
4722
4880
  ] });
4723
4881
  }
4724
4882
 
4725
4883
  // src/PageHeader.tsx
4726
4884
  import { ArrowLeft } from "lucide-react";
4727
- import { jsx as jsx45, jsxs as jsxs39 } from "react/jsx-runtime";
4885
+ import { jsx as jsx48, jsxs as jsxs42 } from "react/jsx-runtime";
4728
4886
  function PageHeader({ title, description, actions, meta, back, className, testIdPrefix }) {
4729
- return /* @__PURE__ */ jsxs39("header", { className: cn("flex flex-wrap items-center justify-between gap-x-6 gap-y-3", className), "data-testid": testIdPrefix, children: [
4730
- /* @__PURE__ */ jsxs39("div", { className: "min-w-0", children: [
4731
- back && /* @__PURE__ */ jsxs39(
4887
+ return /* @__PURE__ */ jsxs42("header", { className: cn("flex flex-wrap items-center justify-between gap-x-6 gap-y-3", className), "data-testid": testIdPrefix, children: [
4888
+ /* @__PURE__ */ jsxs42("div", { className: "min-w-0", children: [
4889
+ back && /* @__PURE__ */ jsxs42(
4732
4890
  "a",
4733
4891
  {
4734
4892
  href: back.href ?? "#",
4735
4893
  onClick: back.onClick,
4736
4894
  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",
4737
4895
  children: [
4738
- /* @__PURE__ */ jsx45(ArrowLeft, { size: 13, "aria-hidden": "true" }),
4896
+ /* @__PURE__ */ jsx48(ArrowLeft, { size: 13, "aria-hidden": "true" }),
4739
4897
  back.label
4740
4898
  ]
4741
4899
  }
4742
4900
  ),
4743
- meta ? /* @__PURE__ */ jsxs39("div", { className: "flex flex-wrap items-center gap-x-2.5 gap-y-1", children: [
4744
- /* @__PURE__ */ jsx45("h1", { className: "text-xl font-semibold tracking-tight text-text-primary", children: title }),
4901
+ meta ? /* @__PURE__ */ jsxs42("div", { className: "flex flex-wrap items-center gap-x-2.5 gap-y-1", children: [
4902
+ /* @__PURE__ */ jsx48("h1", { className: "text-xl font-semibold tracking-tight text-text-primary", children: title }),
4745
4903
  meta
4746
- ] }) : /* @__PURE__ */ jsx45("h1", { className: "text-xl font-semibold tracking-tight text-text-primary", children: title }),
4747
- description && /* @__PURE__ */ jsx45("p", { className: "mt-0.5 max-w-2xl text-sm text-text-secondary", children: description })
4904
+ ] }) : /* @__PURE__ */ jsx48("h1", { className: "text-xl font-semibold tracking-tight text-text-primary", children: title }),
4905
+ description && /* @__PURE__ */ jsx48("p", { className: "mt-0.5 max-w-2xl text-sm text-text-secondary", children: description })
4748
4906
  ] }),
4749
- actions && /* @__PURE__ */ jsx45("div", { className: "flex shrink-0 items-center gap-2", children: actions })
4907
+ actions && /* @__PURE__ */ jsx48("div", { className: "flex shrink-0 items-center gap-2", children: actions })
4750
4908
  ] });
4751
4909
  }
4752
4910
 
@@ -4754,7 +4912,7 @@ function PageHeader({ title, description, actions, meta, back, className, testId
4754
4912
  import { useEffect as useEffect14, useId as useId7, useRef as useRef16 } from "react";
4755
4913
  import { createPortal as createPortal7 } from "react-dom";
4756
4914
  import { X as X6 } from "lucide-react";
4757
- import { jsx as jsx46, jsxs as jsxs40 } from "react/jsx-runtime";
4915
+ import { jsx as jsx49, jsxs as jsxs43 } from "react/jsx-runtime";
4758
4916
  var WIDTH = {
4759
4917
  sm: "max-w-110",
4760
4918
  md: "max-w-160",
@@ -4805,12 +4963,12 @@ function Modal({ open, onClose, title, description, size = "md", footer, childre
4805
4963
  }, [open]);
4806
4964
  if (!open || typeof document === "undefined") return null;
4807
4965
  return createPortal7(
4808
- /* @__PURE__ */ jsx46(
4966
+ /* @__PURE__ */ jsx49(
4809
4967
  "div",
4810
4968
  {
4811
4969
  className: "fixed inset-0 z-modal flex items-center justify-center bg-scrim px-4 py-6",
4812
4970
  onMouseDown: (e) => e.target === e.currentTarget && onClose(),
4813
- children: /* @__PURE__ */ jsxs40(
4971
+ children: /* @__PURE__ */ jsxs43(
4814
4972
  "div",
4815
4973
  {
4816
4974
  ref: panel,
@@ -4826,24 +4984,24 @@ function Modal({ open, onClose, title, description, size = "md", footer, childre
4826
4984
  className
4827
4985
  ),
4828
4986
  children: [
4829
- /* @__PURE__ */ jsxs40("div", { className: "flex items-start gap-3 px-5 pt-5 pb-3", children: [
4830
- /* @__PURE__ */ jsxs40("div", { className: "min-w-0 flex-1", children: [
4831
- /* @__PURE__ */ jsx46("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
4832
- description && /* @__PURE__ */ jsx46("p", { id: descId, className: "mt-0.5 text-sm text-text-secondary", children: description })
4987
+ /* @__PURE__ */ jsxs43("div", { className: "flex items-start gap-3 px-5 pt-5 pb-3", children: [
4988
+ /* @__PURE__ */ jsxs43("div", { className: "min-w-0 flex-1", children: [
4989
+ /* @__PURE__ */ jsx49("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
4990
+ description && /* @__PURE__ */ jsx49("p", { id: descId, className: "mt-0.5 text-sm text-text-secondary", children: description })
4833
4991
  ] }),
4834
- /* @__PURE__ */ jsx46(
4992
+ /* @__PURE__ */ jsx49(
4835
4993
  "button",
4836
4994
  {
4837
4995
  type: "button",
4838
4996
  onClick: onClose,
4839
4997
  "aria-label": "Close",
4840
4998
  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",
4841
- children: /* @__PURE__ */ jsx46(X6, { size: 16, "aria-hidden": "true" })
4999
+ children: /* @__PURE__ */ jsx49(X6, { size: 16, "aria-hidden": "true" })
4842
5000
  }
4843
5001
  )
4844
5002
  ] }),
4845
- children && /* @__PURE__ */ jsx46("div", { "data-modal-body": true, className: "min-h-0 flex-1 overflow-y-auto px-5 pb-5 text-sm text-text-primary", children }),
4846
- footer && /* @__PURE__ */ jsx46("div", { "data-modal-footer": true, className: "flex items-center justify-end gap-2 border-t border-border-default px-5 py-3", children: footer })
5003
+ children && /* @__PURE__ */ jsx49("div", { "data-modal-body": true, className: "min-h-0 flex-1 overflow-y-auto px-5 pb-5 text-sm text-text-primary", children }),
5004
+ footer && /* @__PURE__ */ jsx49("div", { "data-modal-footer": true, className: "flex items-center justify-end gap-2 border-t border-border-default px-5 py-3", children: footer })
4847
5005
  ]
4848
5006
  }
4849
5007
  )
@@ -4854,10 +5012,10 @@ function Modal({ open, onClose, title, description, size = "md", footer, childre
4854
5012
  }
4855
5013
 
4856
5014
  // src/EmptyState.tsx
4857
- import { jsx as jsx47, jsxs as jsxs41 } from "react/jsx-runtime";
5015
+ import { jsx as jsx50, jsxs as jsxs44 } from "react/jsx-runtime";
4858
5016
  function EmptyState({ icon, title, description, action, size = "sm", className, testIdPrefix }) {
4859
5017
  const md = size === "md";
4860
- return /* @__PURE__ */ jsxs41(
5018
+ return /* @__PURE__ */ jsxs44(
4861
5019
  "div",
4862
5020
  {
4863
5021
  className: cn(
@@ -4867,7 +5025,7 @@ function EmptyState({ icon, title, description, action, size = "sm", className,
4867
5025
  ),
4868
5026
  "data-testid": testIdPrefix,
4869
5027
  children: [
4870
- icon && /* @__PURE__ */ jsx47(
5028
+ icon && /* @__PURE__ */ jsx50(
4871
5029
  "span",
4872
5030
  {
4873
5031
  "aria-hidden": "true",
@@ -4878,27 +5036,27 @@ function EmptyState({ icon, title, description, action, size = "sm", className,
4878
5036
  children: icon
4879
5037
  }
4880
5038
  ),
4881
- /* @__PURE__ */ jsx47("p", { className: cn("font-semibold text-text-primary", md ? "text-base" : "text-sm"), children: title }),
4882
- description && /* @__PURE__ */ jsx47("p", { className: cn("max-w-sm text-text-secondary", md ? "text-sm" : "text-xs"), children: description }),
4883
- action && /* @__PURE__ */ jsx47("div", { className: md ? "mt-3" : "mt-2", children: action })
5039
+ /* @__PURE__ */ jsx50("p", { className: cn("font-semibold text-text-primary", md ? "text-base" : "text-sm"), children: title }),
5040
+ description && /* @__PURE__ */ jsx50("p", { className: cn("max-w-sm text-text-secondary", md ? "text-sm" : "text-xs"), children: description }),
5041
+ action && /* @__PURE__ */ jsx50("div", { className: md ? "mt-3" : "mt-2", children: action })
4884
5042
  ]
4885
5043
  }
4886
5044
  );
4887
5045
  }
4888
5046
 
4889
5047
  // src/TextField.tsx
4890
- import { forwardRef as forwardRef7, useId as useId8 } from "react";
4891
- import { jsx as jsx48, jsxs as jsxs42 } from "react/jsx-runtime";
5048
+ import { forwardRef as forwardRef9, useId as useId8 } from "react";
5049
+ import { jsx as jsx51, jsxs as jsxs45 } from "react/jsx-runtime";
4892
5050
  var HEIGHT2 = { sm: "h-8", md: "h-10", lg: "h-11" };
4893
- var TextField = forwardRef7(
5051
+ var TextField = forwardRef9(
4894
5052
  ({ label, hint, error, size = "md", icon, className, testIdPrefix, id, disabled, ...props }, ref) => {
4895
5053
  const auto = useId8();
4896
5054
  const fieldId = id ?? auto;
4897
5055
  const noteId = `${fieldId}-note`;
4898
5056
  const note = error ?? hint;
4899
- return /* @__PURE__ */ jsxs42("div", { className: cn("flex flex-col gap-1.5", className), "data-testid": testIdPrefix, children: [
4900
- label && /* @__PURE__ */ jsx48("label", { htmlFor: fieldId, className: "text-xs font-medium text-text-secondary", children: label }),
4901
- /* @__PURE__ */ jsxs42(
5057
+ return /* @__PURE__ */ jsxs45("div", { className: cn("flex flex-col gap-1.5", className), "data-testid": testIdPrefix, children: [
5058
+ label && /* @__PURE__ */ jsx51("label", { htmlFor: fieldId, className: "text-xs font-medium text-text-secondary", children: label }),
5059
+ /* @__PURE__ */ jsxs45(
4902
5060
  "div",
4903
5061
  {
4904
5062
  className: cn(
@@ -4908,8 +5066,8 @@ var TextField = forwardRef7(
4908
5066
  disabled && "opacity-50"
4909
5067
  ),
4910
5068
  children: [
4911
- icon && /* @__PURE__ */ jsx48("span", { "aria-hidden": "true", className: "flex shrink-0 text-text-tertiary", children: icon }),
4912
- /* @__PURE__ */ jsx48(
5069
+ icon && /* @__PURE__ */ jsx51("span", { "aria-hidden": "true", className: "flex shrink-0 text-text-tertiary", children: icon }),
5070
+ /* @__PURE__ */ jsx51(
4913
5071
  "input",
4914
5072
  {
4915
5073
  ref,
@@ -4924,7 +5082,7 @@ var TextField = forwardRef7(
4924
5082
  ]
4925
5083
  }
4926
5084
  ),
4927
- note && /* @__PURE__ */ jsx48("p", { id: noteId, className: cn("text-xs", error ? "text-text-danger" : "text-text-tertiary"), children: note })
5085
+ note && /* @__PURE__ */ jsx51("p", { id: noteId, className: cn("text-xs", error ? "text-text-danger" : "text-text-tertiary"), children: note })
4928
5086
  ] });
4929
5087
  }
4930
5088
  );
@@ -4934,7 +5092,7 @@ TextField.displayName = "TextField";
4934
5092
  import { useEffect as useEffect15, useId as useId9, useRef as useRef17, useState as useState15 } from "react";
4935
5093
  import { createPortal as createPortal8 } from "react-dom";
4936
5094
  import { X as X7 } from "lucide-react";
4937
- import { jsx as jsx49, jsxs as jsxs43 } from "react/jsx-runtime";
5095
+ import { jsx as jsx52, jsxs as jsxs46 } from "react/jsx-runtime";
4938
5096
  var WIDTH2 = {
4939
5097
  sm: "max-w-110",
4940
5098
  md: "max-w-160",
@@ -4995,8 +5153,8 @@ function Drawer({ open, onClose, title, description, size = "sm", footer, childr
4995
5153
  }, [open, mounted]);
4996
5154
  if (!mounted || typeof document === "undefined") return null;
4997
5155
  return createPortal8(
4998
- /* @__PURE__ */ jsxs43("div", { className: "fixed inset-0 z-modal", children: [
4999
- /* @__PURE__ */ jsx49(
5156
+ /* @__PURE__ */ jsxs46("div", { className: "fixed inset-0 z-modal", children: [
5157
+ /* @__PURE__ */ jsx52(
5000
5158
  "div",
5001
5159
  {
5002
5160
  "aria-hidden": "true",
@@ -5010,7 +5168,7 @@ function Drawer({ open, onClose, title, description, size = "sm", footer, childr
5010
5168
  )
5011
5169
  }
5012
5170
  ),
5013
- /* @__PURE__ */ jsxs43(
5171
+ /* @__PURE__ */ jsxs46(
5014
5172
  "div",
5015
5173
  {
5016
5174
  ref: panel,
@@ -5027,24 +5185,24 @@ function Drawer({ open, onClose, title, description, size = "sm", footer, childr
5027
5185
  className
5028
5186
  ),
5029
5187
  children: [
5030
- /* @__PURE__ */ jsxs43("div", { className: "flex items-start gap-3 px-5 pt-5 pb-3", children: [
5031
- /* @__PURE__ */ jsxs43("div", { className: "min-w-0 flex-1", children: [
5032
- /* @__PURE__ */ jsx49("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
5033
- description && /* @__PURE__ */ jsx49("p", { id: descId, className: "mt-0.5 text-sm text-text-secondary", children: description })
5188
+ /* @__PURE__ */ jsxs46("div", { className: "flex items-start gap-3 px-5 pt-5 pb-3", children: [
5189
+ /* @__PURE__ */ jsxs46("div", { className: "min-w-0 flex-1", children: [
5190
+ /* @__PURE__ */ jsx52("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
5191
+ description && /* @__PURE__ */ jsx52("p", { id: descId, className: "mt-0.5 text-sm text-text-secondary", children: description })
5034
5192
  ] }),
5035
- /* @__PURE__ */ jsx49(
5193
+ /* @__PURE__ */ jsx52(
5036
5194
  "button",
5037
5195
  {
5038
5196
  type: "button",
5039
5197
  onClick: onClose,
5040
5198
  "aria-label": "Close",
5041
5199
  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",
5042
- children: /* @__PURE__ */ jsx49(X7, { size: 16, "aria-hidden": "true" })
5200
+ children: /* @__PURE__ */ jsx52(X7, { size: 16, "aria-hidden": "true" })
5043
5201
  }
5044
5202
  )
5045
5203
  ] }),
5046
- /* @__PURE__ */ jsx49("div", { "data-drawer-body": true, className: "min-h-0 flex-1 overflow-y-auto px-5 pb-5 text-sm text-text-primary", children }),
5047
- footer && /* @__PURE__ */ jsx49("div", { "data-drawer-footer": true, className: "flex items-center justify-end gap-2 border-t border-border-default px-5 py-3", children: footer })
5204
+ /* @__PURE__ */ jsx52("div", { "data-drawer-body": true, className: "min-h-0 flex-1 overflow-y-auto px-5 pb-5 text-sm text-text-primary", children }),
5205
+ footer && /* @__PURE__ */ jsx52("div", { "data-drawer-footer": true, className: "flex items-center justify-end gap-2 border-t border-border-default px-5 py-3", children: footer })
5048
5206
  ]
5049
5207
  }
5050
5208
  )
@@ -5055,7 +5213,7 @@ function Drawer({ open, onClose, title, description, size = "sm", footer, childr
5055
5213
 
5056
5214
  // src/DataTable.tsx
5057
5215
  import { useId as useId10 } from "react";
5058
- import { jsx as jsx50, jsxs as jsxs44 } from "react/jsx-runtime";
5216
+ import { jsx as jsx53, jsxs as jsxs47 } from "react/jsx-runtime";
5059
5217
  var WIDTH3 = { fill: "", sm: "w-24", md: "w-36", lg: "w-48" };
5060
5218
  var MAX_H = { sm: "max-h-80", md: "max-h-120", lg: "max-h-160" };
5061
5219
  var HEAD_PAD = { default: "px-4 py-3", compact: "px-3 py-2" };
@@ -5088,20 +5246,20 @@ function DataTable({
5088
5246
  const col = columns.find((c) => c.key === key);
5089
5247
  onSortChange?.(cycleSort(sort, key, col?.firstDir ?? (col?.numeric ? "desc" : "asc")));
5090
5248
  };
5091
- return /* @__PURE__ */ jsxs44(
5249
+ return /* @__PURE__ */ jsxs47(
5092
5250
  "div",
5093
5251
  {
5094
5252
  className: cn("flex w-full flex-col overflow-hidden rounded-card border border-border-default bg-surface", className),
5095
5253
  "data-testid": testIdPrefix,
5096
5254
  children: [
5097
- title && /* @__PURE__ */ jsxs44("div", { className: "flex items-start justify-between gap-2 p-card-padding", children: [
5098
- /* @__PURE__ */ jsxs44("div", { className: "min-w-0", children: [
5099
- /* @__PURE__ */ jsx50("h3", { id: titleId, className: "text-style-card-title", children: title }),
5100
- subtitle && /* @__PURE__ */ jsx50("p", { className: "mt-0.5 text-xs text-text-tertiary", children: subtitle })
5255
+ title && /* @__PURE__ */ jsxs47("div", { className: "flex items-start justify-between gap-2 p-card-padding", children: [
5256
+ /* @__PURE__ */ jsxs47("div", { className: "min-w-0", children: [
5257
+ /* @__PURE__ */ jsx53("h3", { id: titleId, className: "text-style-card-title", children: title }),
5258
+ subtitle && /* @__PURE__ */ jsx53("p", { className: "mt-0.5 text-xs text-text-tertiary", children: subtitle })
5101
5259
  ] }),
5102
- action && /* @__PURE__ */ jsx50("div", { className: "shrink-0", children: action })
5260
+ action && /* @__PURE__ */ jsx53("div", { className: "shrink-0", children: action })
5103
5261
  ] }),
5104
- /* @__PURE__ */ jsx50("div", { className: cn("overflow-x-auto", maxHeight && cn("overflow-y-auto", MAX_H[maxHeight])), children: /* @__PURE__ */ jsxs44(
5262
+ /* @__PURE__ */ jsx53("div", { className: cn("overflow-x-auto", maxHeight && cn("overflow-y-auto", MAX_H[maxHeight])), children: /* @__PURE__ */ jsxs47(
5105
5263
  "table",
5106
5264
  {
5107
5265
  "aria-labelledby": title ? titleId : void 0,
@@ -5109,13 +5267,13 @@ function DataTable({
5109
5267
  "aria-busy": loading || void 0,
5110
5268
  className: "w-full border-collapse text-left",
5111
5269
  children: [
5112
- /* @__PURE__ */ jsx50("thead", { className: cn(maxHeight && "sticky top-0 z-10"), children: /* @__PURE__ */ jsx50("tr", { className: "bg-subtle text-micro font-semibold uppercase tracking-wider text-text-secondary", children: columns.map((c) => /* @__PURE__ */ jsx50(
5270
+ /* @__PURE__ */ jsx53("thead", { className: cn(maxHeight && "sticky top-0 z-10"), children: /* @__PURE__ */ jsx53("tr", { className: "bg-subtle text-micro font-semibold uppercase tracking-wider text-text-secondary", children: columns.map((c) => /* @__PURE__ */ jsx53(
5113
5271
  "th",
5114
5272
  {
5115
5273
  scope: "col",
5116
5274
  "aria-sort": c.sortable ? ariaSortFor(sort, c.key) : void 0,
5117
5275
  className: cn("border-b border-border-default font-semibold", head, align(c), width(c)),
5118
- children: c.sortable && onSortChange ? /* @__PURE__ */ jsx50(
5276
+ children: c.sortable && onSortChange ? /* @__PURE__ */ jsx53(
5119
5277
  SortButton,
5120
5278
  {
5121
5279
  label: c.label,
@@ -5129,7 +5287,7 @@ function DataTable({
5129
5287
  },
5130
5288
  c.key
5131
5289
  )) }) }),
5132
- /* @__PURE__ */ jsx50("tbody", { className: "text-dense text-text-primary", children: loading ? Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */ jsx50("tr", { "aria-hidden": "true", className: "[&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ jsx50("td", { className: cn("border-b border-border-default", pad, align(c)), children: /* @__PURE__ */ jsx50(
5290
+ /* @__PURE__ */ jsx53("tbody", { className: "text-dense text-text-primary", children: loading ? Array.from({ length: loadingRows }, (_, i) => /* @__PURE__ */ jsx53("tr", { "aria-hidden": "true", className: "[&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ jsx53("td", { className: cn("border-b border-border-default", pad, align(c)), children: /* @__PURE__ */ jsx53(
5133
5291
  "span",
5134
5292
  {
5135
5293
  className: cn(
@@ -5137,7 +5295,7 @@ function DataTable({
5137
5295
  c.numeric ? "w-12" : "w-2/3"
5138
5296
  )
5139
5297
  }
5140
- ) }, c.key)) }, i)) : rows.length === 0 ? /* @__PURE__ */ jsx50("tr", { children: /* @__PURE__ */ jsx50("td", { colSpan: columns.length, className: "px-6 py-12", children: empty ?? /* @__PURE__ */ jsx50(NoResultsEmptyState, {}) }) }) : rows.map((row) => /* @__PURE__ */ jsx50("tr", { className: "hover:bg-subtle [&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ jsx50(
5298
+ ) }, c.key)) }, i)) : rows.length === 0 ? /* @__PURE__ */ jsx53("tr", { children: /* @__PURE__ */ jsx53("td", { colSpan: columns.length, className: "px-6 py-12", children: empty ?? /* @__PURE__ */ jsx53(NoResultsEmptyState, {}) }) }) : rows.map((row) => /* @__PURE__ */ jsx53("tr", { className: "hover:bg-subtle [&:last-child>td]:border-b-0", children: columns.map((c) => /* @__PURE__ */ jsx53(
5141
5299
  "td",
5142
5300
  {
5143
5301
  className: cn("border-b border-border-default", pad, align(c), c.numeric && "tabular-nums"),
@@ -5148,14 +5306,14 @@ function DataTable({
5148
5306
  ]
5149
5307
  }
5150
5308
  ) }),
5151
- footer && /* @__PURE__ */ jsx50("div", { className: "border-t border-border-default px-4 py-3", children: footer })
5309
+ footer && /* @__PURE__ */ jsx53("div", { className: "border-t border-border-default px-4 py-3", children: footer })
5152
5310
  ]
5153
5311
  }
5154
5312
  );
5155
5313
  }
5156
5314
 
5157
5315
  // src/MediaLabel.tsx
5158
- import { jsx as jsx51 } from "react/jsx-runtime";
5316
+ import { jsx as jsx54 } from "react/jsx-runtime";
5159
5317
  var FILL = {
5160
5318
  TV: "bg-media-tv",
5161
5319
  CTV: "bg-media-ctv",
@@ -5166,7 +5324,7 @@ var FILL = {
5166
5324
  Magazine: "bg-media-magazine"
5167
5325
  };
5168
5326
  function MediaLabel({ type, className, testIdPrefix }) {
5169
- return /* @__PURE__ */ jsx51(
5327
+ return /* @__PURE__ */ jsx54(
5170
5328
  "span",
5171
5329
  {
5172
5330
  className: cn(
@@ -5181,10 +5339,10 @@ function MediaLabel({ type, className, testIdPrefix }) {
5181
5339
  }
5182
5340
 
5183
5341
  // src/SuggestionChip.tsx
5184
- import { forwardRef as forwardRef8 } from "react";
5185
- import { jsx as jsx52 } from "react/jsx-runtime";
5186
- var SuggestionChip = forwardRef8(function SuggestionChip2({ children, className, testIdPrefix, type = "button", ...props }, ref) {
5187
- return /* @__PURE__ */ jsx52(
5342
+ import { forwardRef as forwardRef10 } from "react";
5343
+ import { jsx as jsx55 } from "react/jsx-runtime";
5344
+ var SuggestionChip = forwardRef10(function SuggestionChip2({ children, className, testIdPrefix, type = "button", ...props }, ref) {
5345
+ return /* @__PURE__ */ jsx55(
5188
5346
  "button",
5189
5347
  {
5190
5348
  ref,
@@ -5195,18 +5353,18 @@ var SuggestionChip = forwardRef8(function SuggestionChip2({ children, className,
5195
5353
  "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",
5196
5354
  className
5197
5355
  ),
5198
- children: /* @__PURE__ */ jsx52("span", { className: "truncate", children })
5356
+ children: /* @__PURE__ */ jsx55("span", { className: "truncate", children })
5199
5357
  }
5200
5358
  );
5201
5359
  });
5202
5360
  SuggestionChip.displayName = "SuggestionChip";
5203
5361
 
5204
5362
  // src/ToggleChip.tsx
5205
- import { forwardRef as forwardRef9 } from "react";
5363
+ import { forwardRef as forwardRef11 } from "react";
5206
5364
  import { Check as Check8 } from "lucide-react";
5207
- import { jsx as jsx53, jsxs as jsxs45 } from "react/jsx-runtime";
5208
- var ToggleChip = forwardRef9(function ToggleChip2({ selected, onChange, children, className, testIdPrefix, type = "button", onClick, ...props }, ref) {
5209
- return /* @__PURE__ */ jsxs45(
5365
+ import { jsx as jsx56, jsxs as jsxs48 } from "react/jsx-runtime";
5366
+ var ToggleChip = forwardRef11(function ToggleChip2({ selected, onChange, children, className, testIdPrefix, type = "button", onClick, ...props }, ref) {
5367
+ return /* @__PURE__ */ jsxs48(
5210
5368
  "button",
5211
5369
  {
5212
5370
  ref,
@@ -5224,7 +5382,7 @@ var ToggleChip = forwardRef9(function ToggleChip2({ selected, onChange, children
5224
5382
  className
5225
5383
  ),
5226
5384
  children: [
5227
- selected && /* @__PURE__ */ jsx53(Check8, { size: 14, "aria-hidden": "true", className: "-ml-0.5 shrink-0" }),
5385
+ selected && /* @__PURE__ */ jsx56(Check8, { size: 14, "aria-hidden": "true", className: "-ml-0.5 shrink-0" }),
5228
5386
  children
5229
5387
  ]
5230
5388
  }
@@ -5233,11 +5391,11 @@ var ToggleChip = forwardRef9(function ToggleChip2({ selected, onChange, children
5233
5391
  ToggleChip.displayName = "ToggleChip";
5234
5392
 
5235
5393
  // src/CopyButton.tsx
5236
- import { forwardRef as forwardRef10, useEffect as useEffect16, useRef as useRef18, useState as useState16 } from "react";
5394
+ import { forwardRef as forwardRef12, useEffect as useEffect16, useRef as useRef18, useState as useState16 } from "react";
5237
5395
  import { Check as Check9, Copy } from "lucide-react";
5238
- import { jsx as jsx54, jsxs as jsxs46 } from "react/jsx-runtime";
5396
+ import { jsx as jsx57, jsxs as jsxs49 } from "react/jsx-runtime";
5239
5397
  var CONFIRM_MS = 2e3;
5240
- var CopyButton = forwardRef10(function CopyButton2({ value, label, "aria-label": ariaLabel, size = "xs", className, testIdPrefix }, ref) {
5398
+ var CopyButton = forwardRef12(function CopyButton2({ value, label, "aria-label": ariaLabel, size = "xs", className, testIdPrefix }, ref) {
5241
5399
  const [copied, setCopied] = useState16(false);
5242
5400
  const timer = useRef18(void 0);
5243
5401
  useEffect16(() => () => clearTimeout(timer.current), []);
@@ -5252,8 +5410,8 @@ var CopyButton = forwardRef10(function CopyButton2({ value, label, "aria-label":
5252
5410
  timer.current = setTimeout(() => setCopied(false), CONFIRM_MS);
5253
5411
  };
5254
5412
  const iconSize = size === "xs" ? 13 : 15;
5255
- const icon = copied ? /* @__PURE__ */ jsx54(Check9, { size: iconSize, "aria-hidden": "true", className: "shrink-0 text-text-success" }) : /* @__PURE__ */ jsx54(Copy, { size: iconSize, "aria-hidden": "true", className: "shrink-0" });
5256
- return /* @__PURE__ */ jsxs46(
5413
+ const icon = copied ? /* @__PURE__ */ jsx57(Check9, { size: iconSize, "aria-hidden": "true", className: "shrink-0 text-text-success" }) : /* @__PURE__ */ jsx57(Copy, { size: iconSize, "aria-hidden": "true", className: "shrink-0" });
5414
+ return /* @__PURE__ */ jsxs49(
5257
5415
  Button,
5258
5416
  {
5259
5417
  ref,
@@ -5267,8 +5425,8 @@ var CopyButton = forwardRef10(function CopyButton2({ value, label, "aria-label":
5267
5425
  className: cn(!copied && "text-text-secondary", className),
5268
5426
  children: [
5269
5427
  icon,
5270
- label && /* @__PURE__ */ jsx54("span", { children: copied ? "Copied" : label }),
5271
- /* @__PURE__ */ jsx54("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })
5428
+ label && /* @__PURE__ */ jsx57("span", { children: copied ? "Copied" : label }),
5429
+ /* @__PURE__ */ jsx57("span", { role: "status", className: "sr-only", children: copied ? "Copied" : "" })
5272
5430
  ]
5273
5431
  }
5274
5432
  );
@@ -5277,7 +5435,7 @@ CopyButton.displayName = "CopyButton";
5277
5435
 
5278
5436
  // src/InlineMessage.tsx
5279
5437
  import { AlertTriangle as AlertTriangle2, CheckCircle2, Info as Info3, X as X8, XCircle } from "lucide-react";
5280
- import { jsx as jsx55, jsxs as jsxs47 } from "react/jsx-runtime";
5438
+ import { jsx as jsx58, jsxs as jsxs50 } from "react/jsx-runtime";
5281
5439
  var BOX = {
5282
5440
  info: "border-brand-primaryAction/30 bg-brand-primaryAction/10",
5283
5441
  success: "border-status-success/40 bg-status-success/10",
@@ -5294,27 +5452,27 @@ var ICON_INK = {
5294
5452
  var ICON2 = { info: Info3, success: CheckCircle2, warning: AlertTriangle2, danger: XCircle };
5295
5453
  function InlineMessage({ tone = "info", title, children, actions, onDismiss, className, testIdPrefix }) {
5296
5454
  const Icon = ICON2[tone];
5297
- return /* @__PURE__ */ jsxs47(
5455
+ return /* @__PURE__ */ jsxs50(
5298
5456
  "div",
5299
5457
  {
5300
5458
  role: tone === "warning" || tone === "danger" ? "alert" : "status",
5301
5459
  className: cn("flex items-start gap-2.5 rounded-control border px-3 py-2.5 text-sm", BOX[tone], className),
5302
5460
  "data-testid": testIdPrefix,
5303
5461
  children: [
5304
- /* @__PURE__ */ jsx55(Icon, { size: 16, "aria-hidden": "true", className: cn("mt-0.5 shrink-0", ICON_INK[tone]) }),
5305
- /* @__PURE__ */ jsxs47("div", { className: "min-w-0 flex-1", children: [
5306
- /* @__PURE__ */ jsx55("p", { className: "font-semibold text-text-primary", children: title }),
5307
- children && /* @__PURE__ */ jsx55("div", { className: "mt-0.5 text-text-secondary", children }),
5308
- actions && /* @__PURE__ */ jsx55("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: actions })
5462
+ /* @__PURE__ */ jsx58(Icon, { size: 16, "aria-hidden": "true", className: cn("mt-0.5 shrink-0", ICON_INK[tone]) }),
5463
+ /* @__PURE__ */ jsxs50("div", { className: "min-w-0 flex-1", children: [
5464
+ /* @__PURE__ */ jsx58("p", { className: "font-semibold text-text-primary", children: title }),
5465
+ children && /* @__PURE__ */ jsx58("div", { className: "mt-0.5 text-text-secondary", children }),
5466
+ actions && /* @__PURE__ */ jsx58("div", { className: "mt-2 flex flex-wrap items-center gap-2", children: actions })
5309
5467
  ] }),
5310
- onDismiss && /* @__PURE__ */ jsx55(
5468
+ onDismiss && /* @__PURE__ */ jsx58(
5311
5469
  "button",
5312
5470
  {
5313
5471
  type: "button",
5314
5472
  onClick: onDismiss,
5315
5473
  "aria-label": "Dismiss",
5316
5474
  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",
5317
- children: /* @__PURE__ */ jsx55(X8, { size: 14, "aria-hidden": "true" })
5475
+ children: /* @__PURE__ */ jsx58(X8, { size: 14, "aria-hidden": "true" })
5318
5476
  }
5319
5477
  )
5320
5478
  ]
@@ -5325,7 +5483,7 @@ function InlineMessage({ tone = "info", title, children, actions, onDismiss, cla
5325
5483
  // src/FilterDrawer.tsx
5326
5484
  import { useEffect as useEffect17, useLayoutEffect as useLayoutEffect6, useRef as useRef19, useState as useState17 } from "react";
5327
5485
  import { ChevronLeft as ChevronLeft5, ChevronRight as ChevronRight6 } from "lucide-react";
5328
- import { jsx as jsx56, jsxs as jsxs48 } from "react/jsx-runtime";
5486
+ import { jsx as jsx59, jsxs as jsxs51 } from "react/jsx-runtime";
5329
5487
  var SLIDE_MS = 200;
5330
5488
  function reducedMotion() {
5331
5489
  return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
@@ -5387,8 +5545,8 @@ function FilterDrawer({
5387
5545
  const outgoing = phase === "start" ? void 0 : dir > 0 ? "translateX(-33%)" : "translateX(100%)";
5388
5546
  const panel = (v, rows = true) => {
5389
5547
  const s = v ? sections.find((x) => x.id === v) : void 0;
5390
- if (s) return /* @__PURE__ */ jsx56("div", { className: "border-t border-border-default px-5 pt-4", children: renderSection(s.id) });
5391
- return /* @__PURE__ */ jsx56("ul", { className: "border-t border-border-default", children: sections.map((x) => /* @__PURE__ */ jsx56("li", { className: "border-b border-border-default", children: /* @__PURE__ */ jsxs48(
5548
+ if (s) return /* @__PURE__ */ jsx59("div", { className: "border-t border-border-default px-5 pt-4", children: renderSection(s.id) });
5549
+ return /* @__PURE__ */ jsx59("ul", { className: "border-t border-border-default", children: sections.map((x) => /* @__PURE__ */ jsx59("li", { className: "border-b border-border-default", children: /* @__PURE__ */ jsxs51(
5392
5550
  "button",
5393
5551
  {
5394
5552
  ref: rows ? (el) => {
@@ -5400,7 +5558,7 @@ function FilterDrawer({
5400
5558
  "data-testid": testIdPrefix && `${testIdPrefix}-row-${x.id}`,
5401
5559
  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",
5402
5560
  children: [
5403
- /* @__PURE__ */ jsx56(
5561
+ /* @__PURE__ */ jsx59(
5404
5562
  x.icon,
5405
5563
  {
5406
5564
  size: 17,
@@ -5408,22 +5566,22 @@ function FilterDrawer({
5408
5566
  className: x.badge ? "text-brand-primaryAction" : "text-text-secondary"
5409
5567
  }
5410
5568
  ),
5411
- /* @__PURE__ */ jsx56("span", { className: "flex-1 text-sm font-medium text-text-primary", children: x.label }),
5412
- x.badge && /* @__PURE__ */ jsx56(Badge, { tone: "brand", children: x.badge }),
5413
- /* @__PURE__ */ jsx56(ChevronRight6, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
5569
+ /* @__PURE__ */ jsx59("span", { className: "flex-1 text-sm font-medium text-text-primary", children: x.label }),
5570
+ x.badge && /* @__PURE__ */ jsx59(Badge, { tone: "brand", children: x.badge }),
5571
+ /* @__PURE__ */ jsx59(ChevronRight6, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
5414
5572
  ]
5415
5573
  }
5416
5574
  ) }, x.id)) });
5417
5575
  };
5418
- return /* @__PURE__ */ jsx56(
5576
+ return /* @__PURE__ */ jsx59(
5419
5577
  Drawer,
5420
5578
  {
5421
5579
  open,
5422
5580
  onClose,
5423
5581
  size,
5424
5582
  testIdPrefix,
5425
- title: focused ? /* @__PURE__ */ jsxs48("span", { className: "flex items-center gap-1.5", children: [
5426
- /* @__PURE__ */ jsx56(
5583
+ title: focused ? /* @__PURE__ */ jsxs51("span", { className: "flex items-center gap-1.5", children: [
5584
+ /* @__PURE__ */ jsx59(
5427
5585
  "button",
5428
5586
  {
5429
5587
  ref: backRef,
@@ -5432,23 +5590,23 @@ function FilterDrawer({
5432
5590
  "aria-label": "Back to all filters",
5433
5591
  "data-testid": testIdPrefix && `${testIdPrefix}-back`,
5434
5592
  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",
5435
- children: /* @__PURE__ */ jsx56(ChevronLeft5, { size: 18, "aria-hidden": "true" })
5593
+ children: /* @__PURE__ */ jsx59(ChevronLeft5, { size: 18, "aria-hidden": "true" })
5436
5594
  }
5437
5595
  ),
5438
5596
  focused.label,
5439
- focused.info && /* @__PURE__ */ jsx56(InfoTip, { text: focused.info, label: `About ${focused.label}` })
5440
- ] }) : /* @__PURE__ */ jsxs48("span", { className: "flex items-center gap-2.5", children: [
5597
+ focused.info && /* @__PURE__ */ jsx59(InfoTip, { text: focused.info, label: `About ${focused.label}` })
5598
+ ] }) : /* @__PURE__ */ jsxs51("span", { className: "flex items-center gap-2.5", children: [
5441
5599
  "Filters",
5442
- activeCount > 0 && /* @__PURE__ */ jsx56(Badge, { tone: "brandSolid", kind: "count", children: activeCount })
5600
+ activeCount > 0 && /* @__PURE__ */ jsx59(Badge, { tone: "brandSolid", kind: "count", children: activeCount })
5443
5601
  ] }),
5444
5602
  footer: focused ? (
5445
5603
  // Picks are kept as they're made; only See results, on the list, applies them.
5446
- /* @__PURE__ */ jsx56("div", { className: "flex w-full items-center", children: /* @__PURE__ */ jsx56(Button, { variant: "link", size: "md", onClick: () => onClearSection(focused.id), className: "px-0", children: "Clear" }) })
5447
- ) : /* @__PURE__ */ jsxs48("div", { className: "flex w-full items-center justify-between gap-2", children: [
5448
- /* @__PURE__ */ jsx56(Button, { variant: "link", size: "md", onClick: onClearAll, className: "px-0", children: "Clear all" }),
5449
- /* @__PURE__ */ jsxs48("div", { className: "flex items-center gap-2", children: [
5450
- /* @__PURE__ */ jsx56(Button, { variant: "secondary", size: "md", onClick: onClose, children: "Cancel" }),
5451
- /* @__PURE__ */ jsx56(
5604
+ /* @__PURE__ */ jsx59("div", { className: "flex w-full items-center", children: /* @__PURE__ */ jsx59(Button, { variant: "link", size: "md", onClick: () => onClearSection(focused.id), className: "px-0", children: "Clear" }) })
5605
+ ) : /* @__PURE__ */ jsxs51("div", { className: "flex w-full items-center justify-between gap-2", children: [
5606
+ /* @__PURE__ */ jsx59(Button, { variant: "link", size: "md", onClick: onClearAll, className: "px-0", children: "Clear all" }),
5607
+ /* @__PURE__ */ jsxs51("div", { className: "flex items-center gap-2", children: [
5608
+ /* @__PURE__ */ jsx59(Button, { variant: "secondary", size: "md", onClick: onClose, children: "Cancel" }),
5609
+ /* @__PURE__ */ jsx59(
5452
5610
  Button,
5453
5611
  {
5454
5612
  variant: "primary",
@@ -5462,8 +5620,8 @@ function FilterDrawer({
5462
5620
  )
5463
5621
  ] })
5464
5622
  ] }),
5465
- children: /* @__PURE__ */ jsxs48("div", { className: "relative -mx-5 overflow-x-clip", children: [
5466
- /* @__PURE__ */ jsx56(
5623
+ children: /* @__PURE__ */ jsxs51("div", { className: "relative -mx-5 overflow-x-clip", children: [
5624
+ /* @__PURE__ */ jsx59(
5467
5625
  "div",
5468
5626
  {
5469
5627
  style: { transform: incoming },
@@ -5472,7 +5630,7 @@ function FilterDrawer({
5472
5630
  },
5473
5631
  view ?? "__list"
5474
5632
  ),
5475
- leaving && /* @__PURE__ */ jsx56(
5633
+ leaving && /* @__PURE__ */ jsx59(
5476
5634
  "div",
5477
5635
  {
5478
5636
  "aria-hidden": "true",
@@ -5488,11 +5646,11 @@ function FilterDrawer({
5488
5646
  }
5489
5647
 
5490
5648
  // src/AllFiltersButton.tsx
5491
- import { forwardRef as forwardRef11 } from "react";
5649
+ import { forwardRef as forwardRef13 } from "react";
5492
5650
  import { SlidersHorizontal } from "lucide-react";
5493
- import { jsx as jsx57, jsxs as jsxs49 } from "react/jsx-runtime";
5494
- var AllFiltersButton = forwardRef11(function AllFiltersButton2({ count = 0, open, className, testIdPrefix, ...rest }, ref) {
5495
- return /* @__PURE__ */ jsxs49(
5651
+ import { jsx as jsx60, jsxs as jsxs52 } from "react/jsx-runtime";
5652
+ var AllFiltersButton = forwardRef13(function AllFiltersButton2({ count = 0, open, className, testIdPrefix, ...rest }, ref) {
5653
+ return /* @__PURE__ */ jsxs52(
5496
5654
  "button",
5497
5655
  {
5498
5656
  ref,
@@ -5504,19 +5662,19 @@ var AllFiltersButton = forwardRef11(function AllFiltersButton2({ count = 0, open
5504
5662
  className: cn(chipTriggerClass(), className),
5505
5663
  ...rest,
5506
5664
  children: [
5507
- /* @__PURE__ */ jsx57(SlidersHorizontal, { size: 15, "aria-hidden": "true", className: "text-text-secondary" }),
5508
- /* @__PURE__ */ jsx57("span", { className: "text-dense font-medium text-text-primary", children: "All filters" }),
5509
- count > 0 && /* @__PURE__ */ jsx57(Badge, { tone: "brandSolid", kind: "count", children: count })
5665
+ /* @__PURE__ */ jsx60(SlidersHorizontal, { size: 15, "aria-hidden": "true", className: "text-text-secondary" }),
5666
+ /* @__PURE__ */ jsx60("span", { className: "text-dense font-medium text-text-primary", children: "All filters" }),
5667
+ count > 0 && /* @__PURE__ */ jsx60(Badge, { tone: "brandSolid", kind: "count", children: count })
5510
5668
  ]
5511
5669
  }
5512
5670
  );
5513
5671
  });
5514
5672
 
5515
5673
  // src/Menu.tsx
5516
- import { forwardRef as forwardRef12 } from "react";
5674
+ import { forwardRef as forwardRef14 } from "react";
5517
5675
  import { Slot as Slot2, Slottable } from "@radix-ui/react-slot";
5518
5676
  import { Check as Check10, ChevronRight as ChevronRight7 } from "lucide-react";
5519
- import { Fragment as Fragment6, jsx as jsx58, jsxs as jsxs50 } from "react/jsx-runtime";
5677
+ import { Fragment as Fragment6, jsx as jsx61, jsxs as jsxs53 } from "react/jsx-runtime";
5520
5678
  var ROW_SELECTOR = '[role^="menuitem"]:not([aria-disabled="true"]):not(:disabled)';
5521
5679
  function moveFocus(e) {
5522
5680
  const keys = ["ArrowDown", "ArrowUp", "Home", "End"];
@@ -5528,8 +5686,8 @@ function moveFocus(e) {
5528
5686
  const next = e.key === "Home" ? 0 : e.key === "End" ? rows.length - 1 : e.key === "ArrowDown" ? (i + 1) % rows.length : (i - 1 + rows.length) % rows.length;
5529
5687
  rows[next].focus();
5530
5688
  }
5531
- var Menu = forwardRef12(
5532
- ({ className, testIdPrefix, onKeyDown, children, ...props }, ref) => /* @__PURE__ */ jsx58(
5689
+ var Menu = forwardRef14(
5690
+ ({ className, testIdPrefix, onKeyDown, children, ...props }, ref) => /* @__PURE__ */ jsx61(
5533
5691
  "div",
5534
5692
  {
5535
5693
  ref,
@@ -5546,24 +5704,24 @@ var Menu = forwardRef12(
5546
5704
  )
5547
5705
  );
5548
5706
  Menu.displayName = "Menu";
5549
- var MenuItem = forwardRef12(
5707
+ var MenuItem = forwardRef14(
5550
5708
  ({ className, testIdPrefix, icon, trailing, description, submenu, checked, danger, disabled, asChild = false, children, ...props }, ref) => {
5551
5709
  const Comp = asChild ? Slot2 : "button";
5552
5710
  const radio = checked !== void 0;
5553
- const body = /* @__PURE__ */ jsxs50(Fragment6, { children: [
5554
- icon && /* @__PURE__ */ jsx58("span", { "aria-hidden": "true", className: cn("flex shrink-0", danger ? "text-text-danger" : "text-text-secondary"), children: icon }),
5711
+ const body = /* @__PURE__ */ jsxs53(Fragment6, { children: [
5712
+ icon && /* @__PURE__ */ jsx61("span", { "aria-hidden": "true", className: cn("flex shrink-0", danger ? "text-text-danger" : "text-text-secondary"), children: icon }),
5555
5713
  asChild ? (
5556
5714
  // The link's own text lands here; the link becomes the row.
5557
- /* @__PURE__ */ jsx58(Slottable, { children })
5558
- ) : /* @__PURE__ */ jsxs50("span", { className: "min-w-0 flex-1", children: [
5559
- /* @__PURE__ */ jsx58("span", { className: "block truncate", children }),
5560
- description && /* @__PURE__ */ jsx58("span", { className: "block truncate text-xs text-text-tertiary", children: description })
5715
+ /* @__PURE__ */ jsx61(Slottable, { children })
5716
+ ) : /* @__PURE__ */ jsxs53("span", { className: "min-w-0 flex-1", children: [
5717
+ /* @__PURE__ */ jsx61("span", { className: "block truncate", children }),
5718
+ description && /* @__PURE__ */ jsx61("span", { className: "block truncate text-xs text-text-tertiary", children: description })
5561
5719
  ] }),
5562
- trailing && /* @__PURE__ */ jsx58("span", { className: "ml-auto flex shrink-0 items-center text-xs text-text-secondary", children: trailing }),
5563
- radio && checked && /* @__PURE__ */ jsx58(Check10, { size: 16, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }),
5564
- submenu && /* @__PURE__ */ jsx58(ChevronRight7, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
5720
+ trailing && /* @__PURE__ */ jsx61("span", { className: "ml-auto flex shrink-0 items-center text-xs text-text-secondary", children: trailing }),
5721
+ radio && checked && /* @__PURE__ */ jsx61(Check10, { size: 16, "aria-hidden": "true", className: "shrink-0 text-brand-primaryAction" }),
5722
+ submenu && /* @__PURE__ */ jsx61(ChevronRight7, { size: 16, "aria-hidden": "true", className: "shrink-0 text-text-secondary" })
5565
5723
  ] });
5566
- return /* @__PURE__ */ jsx58(
5724
+ return /* @__PURE__ */ jsx61(
5567
5725
  Comp,
5568
5726
  {
5569
5727
  ref,
@@ -5590,7 +5748,7 @@ var MenuItem = forwardRef12(
5590
5748
  );
5591
5749
  MenuItem.displayName = "MenuItem";
5592
5750
  function MenuLabel({ className, testIdPrefix, children }) {
5593
- return /* @__PURE__ */ jsx58(
5751
+ return /* @__PURE__ */ jsx61(
5594
5752
  "div",
5595
5753
  {
5596
5754
  role: "presentation",
@@ -5601,7 +5759,7 @@ function MenuLabel({ className, testIdPrefix, children }) {
5601
5759
  );
5602
5760
  }
5603
5761
  function MenuSeparator({ className, testIdPrefix }) {
5604
- return /* @__PURE__ */ jsx58("div", { role: "separator", "data-testid": testIdPrefix, className: cn("-mx-1 my-1 border-t border-border-default", className) });
5762
+ return /* @__PURE__ */ jsx61("div", { role: "separator", "data-testid": testIdPrefix, className: cn("-mx-1 my-1 border-t border-border-default", className) });
5605
5763
  }
5606
5764
  export {
5607
5765
  AISpark,
@@ -5611,8 +5769,10 @@ export {
5611
5769
  AllFiltersButton,
5612
5770
  Badge,
5613
5771
  BarChartPlaceholder,
5772
+ BarList,
5614
5773
  Button,
5615
5774
  Card,
5775
+ ChartLegend,
5616
5776
  CheckBox,
5617
5777
  CheckBoxBox,
5618
5778
  ChipContent,
@@ -5631,6 +5791,7 @@ export {
5631
5791
  Freshness,
5632
5792
  InfoTip,
5633
5793
  InlineMessage,
5794
+ LegendItem,
5634
5795
  LineChartPlaceholder,
5635
5796
  MediaLabel,
5636
5797
  Menu,
@@ -5659,6 +5820,8 @@ export {
5659
5820
  SelectionPicker,
5660
5821
  SortButton,
5661
5822
  StackedColumnPlaceholder,
5823
+ StatStrip,
5824
+ StatTile,
5662
5825
  SuggestionChip,
5663
5826
  TablePagination,
5664
5827
  Tabs,