@meetreeve/ui 0.18.1 → 0.20.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
@@ -35,6 +35,7 @@ __export(src_exports, {
35
35
  BrandGlyph: () => BrandGlyph,
36
36
  ConnectorPicker: () => ConnectorPicker,
37
37
  ContextSwitcher: () => ContextSwitcher,
38
+ DEFAULT_LEGAL_LINKS: () => DEFAULT_LEGAL_LINKS,
38
39
  Flyout: () => Flyout,
39
40
  GLYPH_CANVAS_FILL: () => GLYPH_CANVAS_FILL,
40
41
  HOVER_CLOSE_DELAY_MS: () => HOVER_CLOSE_DELAY_MS,
@@ -46,6 +47,7 @@ __export(src_exports, {
46
47
  MARK_WEIGHT: () => MARK_WEIGHT,
47
48
  REEVE_ACCENT: () => REEVE_ACCENT,
48
49
  ResponsiveHeader: () => ResponsiveHeader,
50
+ SiteFooter: () => SiteFooter,
49
51
  WORDMARK_WEIGHT: () => WORDMARK_WEIGHT,
50
52
  accessLabel: () => accessLabel,
51
53
  deriveFallbackLadder: () => deriveFallbackLadder,
@@ -343,7 +345,80 @@ function ResponsiveHeader({
343
345
  };
344
346
  }, [open]);
345
347
  const hasSecondary = Boolean(nav && nav.length > 0 || auth || themeToggle);
346
- const brandLockup = /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { "data-testid": "header-lockup", className: cn(LOCKUP_ROW, LOCKUP_GAP), children: [
348
+ const [failed, setFailed] = (0, import_react3.useState)(() => /* @__PURE__ */ new Set());
349
+ const onImageError = (src) => () => setFailed((prev) => new Set(prev).add(src));
350
+ const { wordmark, wordmarkDark, favicon } = brand;
351
+ const lightOk = !!wordmark && !failed.has(wordmark);
352
+ const darkOk = !!wordmarkDark && !failed.has(wordmarkDark);
353
+ const glyphBrand = favicon && failed.has(favicon) ? { ...brand, favicon: null } : brand;
354
+ const brandLockup = wordmark ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { "data-testid": "header-lockup", className: "flex items-center", children: [
355
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "flex @min-[768px]:hidden", children: favicon && !failed.has(favicon) ? (
356
+ // eslint-disable-next-line @next/next/no-img-element
357
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
358
+ "img",
359
+ {
360
+ src: favicon,
361
+ alt: brand.name,
362
+ width: 28,
363
+ height: 28,
364
+ "data-testid": "header-mark-image",
365
+ onError: onImageError(favicon),
366
+ className: "h-7 w-7 object-contain"
367
+ }
368
+ )
369
+ ) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BrandGlyph, { brand: glyphBrand, size: "lg" }) }),
370
+ lightOk ? (
371
+ // eslint-disable-next-line @next/next/no-img-element
372
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
373
+ "img",
374
+ {
375
+ src: wordmark,
376
+ alt: brand.name,
377
+ "data-testid": "header-wordmark-image",
378
+ onError: onImageError(wordmark),
379
+ className: cn(
380
+ "hidden h-5 w-auto object-contain @min-[768px]:block",
381
+ darkOk && "@min-[768px]:dark:hidden"
382
+ ),
383
+ style: { maxWidth: MIN_SIZES.wordmarkMaxWidth }
384
+ }
385
+ )
386
+ ) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
387
+ "span",
388
+ {
389
+ "data-testid": "header-wordmark-fallback",
390
+ className: cn(
391
+ "hidden @min-[768px]:flex items-baseline",
392
+ LOCKUP_GAP,
393
+ darkOk && "@min-[768px]:dark:hidden"
394
+ ),
395
+ children: [
396
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BrandGlyph, { brand: glyphBrand, size: "lg" }),
397
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
398
+ "span",
399
+ {
400
+ "data-testid": "header-wordmark",
401
+ className: cn("truncate text-foreground", WORDMARK_TEXT_LG, WORDMARK_WEIGHT_CLASS),
402
+ style: { maxWidth: MIN_SIZES.wordmarkMaxWidth },
403
+ children: brand.name
404
+ }
405
+ )
406
+ ]
407
+ }
408
+ ),
409
+ darkOk && // eslint-disable-next-line @next/next/no-img-element
410
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
411
+ "img",
412
+ {
413
+ src: wordmarkDark,
414
+ alt: brand.name,
415
+ "data-testid": "header-wordmark-image-dark",
416
+ onError: onImageError(wordmarkDark),
417
+ className: "hidden h-5 w-auto object-contain @min-[768px]:dark:block",
418
+ style: { maxWidth: MIN_SIZES.wordmarkMaxWidth }
419
+ }
420
+ )
421
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { "data-testid": "header-lockup", className: cn(LOCKUP_ROW, LOCKUP_GAP), children: [
347
422
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BrandGlyph, { brand, size: "lg" }),
348
423
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
349
424
  "span",
@@ -476,12 +551,88 @@ function useResponsivePlaceholder(desktop, mobile) {
476
551
  return isDesktop ? desktop : mobile ?? desktop;
477
552
  }
478
553
 
554
+ // src/site-footer.tsx
555
+ var import_jsx_runtime3 = require("react/jsx-runtime");
556
+ var DEFAULT_LEGAL_LINKS = [
557
+ { href: "/privacy", label: "Privacy" },
558
+ { href: "/terms", label: "Terms" },
559
+ { href: "/cookies", label: "Cookies" }
560
+ ];
561
+ var LINK_CLASS = "inline-flex items-center justify-center transition-colors hover:text-foreground";
562
+ function SiteFooter({
563
+ brandName,
564
+ links = [],
565
+ legal = DEFAULT_LEGAL_LINKS,
566
+ showBadge,
567
+ linkComponent,
568
+ className
569
+ }) {
570
+ const LinkEl = linkComponent ?? "a";
571
+ const badge = showBadge !== false;
572
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("footer", { className: cn("border-t border-border", className), children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("div", { className: "mx-auto max-w-6xl px-6 py-8", children: [
573
+ links.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
574
+ "nav",
575
+ {
576
+ "aria-label": `${brandName} pages`,
577
+ className: "flex flex-wrap gap-x-5 gap-y-2 border-b border-border/60 pb-5 text-xs",
578
+ children: links.map((link) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
579
+ LinkEl,
580
+ {
581
+ href: link.href,
582
+ className: cn(LINK_CLASS, "text-muted-foreground"),
583
+ style: TOUCH_TARGET_STYLE,
584
+ children: link.label
585
+ },
586
+ link.href
587
+ ))
588
+ }
589
+ ) : null,
590
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
591
+ "div",
592
+ {
593
+ className: cn(
594
+ "flex flex-col items-start justify-between gap-2 text-xs text-muted-foreground sm:flex-row sm:items-center",
595
+ links.length > 0 && "pt-5"
596
+ ),
597
+ children: [
598
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("span", { children: [
599
+ "\xA9 ",
600
+ (/* @__PURE__ */ new Date()).getFullYear(),
601
+ " ",
602
+ brandName
603
+ ] }),
604
+ legal.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("nav", { "aria-label": "Legal", className: "flex flex-wrap items-center gap-x-4", children: legal.map((link) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
605
+ LinkEl,
606
+ {
607
+ href: link.href,
608
+ className: LINK_CLASS,
609
+ style: TOUCH_TARGET_STYLE,
610
+ children: link.label
611
+ },
612
+ link.href
613
+ )) }) : null,
614
+ badge ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
615
+ "a",
616
+ {
617
+ href: "https://www.meetreeve.com",
618
+ rel: "noopener",
619
+ className: "inline-flex items-center text-[11px] text-muted-foreground transition-colors hover:text-foreground",
620
+ style: TOUCH_TARGET_STYLE,
621
+ children: "Made with Reeve"
622
+ }
623
+ ) : null
624
+ ]
625
+ }
626
+ )
627
+ ] }) });
628
+ }
629
+
479
630
  // src/info-tip.tsx
480
631
  var import_popover = require("@base-ui/react/popover");
481
- var import_jsx_runtime3 = require("react/jsx-runtime");
632
+ var import_jsx_runtime4 = require("react/jsx-runtime");
482
633
  function InfoTip({ children, label = "More information", side = "top", align = "center", className }) {
483
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_popover.Popover.Root, { children: [
484
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
634
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_popover.Popover.Root, { children: [
635
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
485
636
  import_popover.Popover.Trigger,
486
637
  {
487
638
  openOnHover: true,
@@ -493,7 +644,7 @@ function InfoTip({ children, label = "More information", side = "top", align = "
493
644
  "group -my-3.5 inline-flex shrink-0 cursor-help items-center justify-center rounded-full align-middle text-muted-foreground outline-none transition-colors hover:text-foreground data-[popup-open]:text-foreground",
494
645
  className
495
646
  ),
496
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
647
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
497
648
  "span",
498
649
  {
499
650
  "aria-hidden": "true",
@@ -503,12 +654,12 @@ function InfoTip({ children, label = "More information", side = "top", align = "
503
654
  )
504
655
  }
505
656
  ),
506
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_popover.Popover.Positioner, { side, align, sideOffset: 8, collisionPadding: 16, className: "z-50", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
657
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.Popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.Popover.Positioner, { side, align, sideOffset: 8, collisionPadding: 16, className: "z-50", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
507
658
  import_popover.Popover.Popup,
508
659
  {
509
660
  "aria-label": label,
510
661
  className: "max-w-[min(20rem,calc(100vw-2rem))] origin-[var(--transform-origin)] rounded-md border border-border bg-popover px-3 py-2 text-left text-xs font-normal leading-relaxed text-popover-foreground shadow-md outline-none transition-[opacity,transform] duration-150 ease-out data-[ending-style]:scale-95 data-[ending-style]:opacity-0 data-[starting-style]:scale-95 data-[starting-style]:opacity-0 motion-reduce:transition-none",
511
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_popover.Popover.Description, { children })
662
+ children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_popover.Popover.Description, { children })
512
663
  }
513
664
  ) }) })
514
665
  ] });
@@ -796,7 +947,7 @@ function useLadderRung(ladder, containerRef, options = {}) {
796
947
 
797
948
  // src/ladder/flyout.tsx
798
949
  var import_react7 = require("react");
799
- var import_jsx_runtime4 = require("react/jsx-runtime");
950
+ var import_jsx_runtime5 = require("react/jsx-runtime");
800
951
  var PANEL_GAP = 4;
801
952
  var HOVER_CLOSE_DELAY_MS = 300;
802
953
  var HOVER_SLOP = 16;
@@ -896,7 +1047,7 @@ function Flyout({
896
1047
  (0, import_react7.useEffect)(() => {
897
1048
  if (clickOpen && panelPosition) firstItemRef.current?.focus();
898
1049
  }, [clickOpen, panelPosition]);
899
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1050
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
900
1051
  "div",
901
1052
  {
902
1053
  "data-testid": "ladder-flyout",
@@ -904,7 +1055,7 @@ function Flyout({
904
1055
  onMouseEnter: hoverEnter,
905
1056
  onMouseLeave: hoverLeave,
906
1057
  children: [
907
- /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
1058
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
908
1059
  "button",
909
1060
  {
910
1061
  ref: triggerRef,
@@ -930,7 +1081,7 @@ function Flyout({
930
1081
  active ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground"
931
1082
  ),
932
1083
  children: [
933
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1084
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
934
1085
  Icon,
935
1086
  {
936
1087
  className: cn(
@@ -941,7 +1092,7 @@ function Flyout({
941
1092
  "aria-hidden": "true"
942
1093
  }
943
1094
  ),
944
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
1095
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
945
1096
  ]
946
1097
  }
947
1098
  ),
@@ -950,7 +1101,7 @@ function Flyout({
950
1101
  // the trigger's right edge (bridging PANEL_GAP) and pads HOVER_SLOP
951
1102
  // around the panel; the panel itself renders exactly where it did.
952
1103
  // `panelRef` lives here so a click in the slop isn't an "outside" one.
953
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1104
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
954
1105
  "div",
955
1106
  {
956
1107
  ref: panelRef,
@@ -962,7 +1113,7 @@ function Flyout({
962
1113
  left: panelPosition.left - PANEL_GAP,
963
1114
  padding: `${HOVER_SLOP}px ${HOVER_SLOP}px ${HOVER_SLOP}px ${PANEL_GAP}px`
964
1115
  },
965
- children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1116
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
966
1117
  "div",
967
1118
  {
968
1119
  id: panelId,
@@ -982,7 +1133,7 @@ function Flyout({
982
1133
  // silently loses the focus-on-open behavior (a console ref
983
1134
  // warning, not a crash) — same tradeoff any Link-injection
984
1135
  // pattern accepts; not a regression from today's plain `<a>`.
985
- /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
1136
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
986
1137
  LinkEl,
987
1138
  {
988
1139
  ref: i === 0 ? firstItemRef : void 0,
@@ -1008,7 +1159,7 @@ function Flyout({
1008
1159
  }
1009
1160
 
1010
1161
  // src/app-sidebar.tsx
1011
- var import_jsx_runtime5 = require("react/jsx-runtime");
1162
+ var import_jsx_runtime6 = require("react/jsx-runtime");
1012
1163
  var DEFAULT_COLLAPSE_STORAGE_KEY = "reeve-sidebar-collapsed";
1013
1164
  var COLLAPSED_WIDTH_CLASS = "w-14";
1014
1165
  var EXPANDED_WIDTH_CLASS = "w-64";
@@ -1026,7 +1177,7 @@ function NavLink({
1026
1177
  }) {
1027
1178
  const Icon = resolveIcon(icon);
1028
1179
  const LinkEl = linkComponent ?? "a";
1029
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1180
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1030
1181
  LinkEl,
1031
1182
  {
1032
1183
  href,
@@ -1046,7 +1197,7 @@ function NavLink({
1046
1197
  active ? "bg-sidebar-accent text-sidebar-accent-foreground" : "text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground"
1047
1198
  ),
1048
1199
  children: [
1049
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1200
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1050
1201
  Icon,
1051
1202
  {
1052
1203
  className: cn(
@@ -1057,7 +1208,7 @@ function NavLink({
1057
1208
  "aria-hidden": "true"
1058
1209
  }
1059
1210
  ),
1060
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
1211
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: label })
1061
1212
  ]
1062
1213
  }
1063
1214
  );
@@ -1148,7 +1299,7 @@ function AppSidebar({
1148
1299
  function renderAppItem(item, testIdPrefix, collapsedRow = false) {
1149
1300
  const def = moduleMap.get(item.moduleId);
1150
1301
  if (!def) return null;
1151
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1302
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1152
1303
  NavLink,
1153
1304
  {
1154
1305
  href: def.href,
@@ -1174,7 +1325,7 @@ function AppSidebar({
1174
1325
  };
1175
1326
  });
1176
1327
  const active = children.some((c) => c.active);
1177
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1328
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1178
1329
  Flyout,
1179
1330
  {
1180
1331
  label: item.label,
@@ -1193,7 +1344,7 @@ function AppSidebar({
1193
1344
  function brandBlockFor(collapsedMode) {
1194
1345
  if (!brand) return null;
1195
1346
  if (collapsedMode) {
1196
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1347
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1197
1348
  "a",
1198
1349
  {
1199
1350
  href: brand.href,
@@ -1201,28 +1352,28 @@ function AppSidebar({
1201
1352
  title: brand.label,
1202
1353
  className: "flex items-center justify-center border-b border-sidebar-border px-1 py-4",
1203
1354
  children: [
1204
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "sr-only", children: brand.label }),
1205
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(BrandGlyph, { brand: { name: brand.label }, size: "xl" })
1355
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "sr-only", children: brand.label }),
1356
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(BrandGlyph, { brand: { name: brand.label }, size: "xl" })
1206
1357
  ]
1207
1358
  }
1208
1359
  );
1209
1360
  }
1210
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1361
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1211
1362
  "a",
1212
1363
  {
1213
1364
  href: brand.href,
1214
1365
  "data-testid": "app-sidebar-brand",
1215
1366
  className: "flex items-center gap-2.5 border-b border-sidebar-border px-5 py-4 text-sidebar-foreground",
1216
1367
  children: [
1217
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "grid size-7 place-items-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "font-mono text-sm font-bold", children: (brand.label[0] ?? "r").toUpperCase() }) }),
1218
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: "truncate text-sm font-semibold tracking-tight", children: brand.label })
1368
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "grid size-7 place-items-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "font-mono text-sm font-bold", children: (brand.label[0] ?? "r").toUpperCase() }) }),
1369
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: "truncate text-sm font-semibold tracking-tight", children: brand.label })
1219
1370
  ]
1220
1371
  }
1221
1372
  );
1222
1373
  }
1223
1374
  function topItemBlock(testId, collapsedMode = false) {
1224
1375
  if (!topItem) return null;
1225
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: cn("px-3 pt-4", collapsedMode && "flex justify-center px-0"), children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1376
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: cn("px-3 pt-4", collapsedMode && "flex justify-center px-0"), children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1226
1377
  NavLink,
1227
1378
  {
1228
1379
  href: topItem.href,
@@ -1235,8 +1386,8 @@ function AppSidebar({
1235
1386
  }
1236
1387
  ) });
1237
1388
  }
1238
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
1239
- !isDesktop && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1389
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_jsx_runtime6.Fragment, { children: [
1390
+ !isDesktop && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1240
1391
  "button",
1241
1392
  {
1242
1393
  ref: mobileTriggerRef,
@@ -1248,11 +1399,11 @@ function AppSidebar({
1248
1399
  onClick: () => setMobileOpen((v) => !v),
1249
1400
  style: TOUCH_TARGET_STYLE,
1250
1401
  className: "flex items-center justify-center rounded-md border border-border p-2 text-foreground",
1251
- children: mobileOpen ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.X, { className: "h-5 w-5", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.Menu, { className: "h-5 w-5", "aria-hidden": "true" })
1402
+ children: mobileOpen ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.X, { className: "h-5 w-5", "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.Menu, { className: "h-5 w-5", "aria-hidden": "true" })
1252
1403
  }
1253
1404
  ),
1254
- !isDesktop && mobileOpen && /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)("div", { className: "fixed inset-0 z-50", children: [
1255
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1405
+ !isDesktop && mobileOpen && /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)("div", { className: "fixed inset-0 z-50", children: [
1406
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1256
1407
  "div",
1257
1408
  {
1258
1409
  "data-testid": "app-sidebar-mobile-scrim",
@@ -1261,7 +1412,7 @@ function AppSidebar({
1261
1412
  onClick: () => setMobileOpen(false)
1262
1413
  }
1263
1414
  ),
1264
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1415
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1265
1416
  "div",
1266
1417
  {
1267
1418
  ref: mobileDrawerRef,
@@ -1272,7 +1423,7 @@ function AppSidebar({
1272
1423
  "data-testid": "app-sidebar-mobile-drawer",
1273
1424
  className: "absolute inset-y-0 left-0 flex w-72 flex-col overflow-y-auto border-r border-sidebar-border bg-sidebar",
1274
1425
  children: [
1275
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "sticky top-0 z-10 flex justify-end bg-sidebar p-2", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1426
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "sticky top-0 z-10 flex justify-end bg-sidebar p-2", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1276
1427
  "button",
1277
1428
  {
1278
1429
  ref: mobileCloseRef,
@@ -1282,19 +1433,19 @@ function AppSidebar({
1282
1433
  onClick: () => setMobileOpen(false),
1283
1434
  style: TOUCH_TARGET_STYLE,
1284
1435
  className: "flex items-center justify-center rounded-md p-2 text-sidebar-foreground/70 hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground",
1285
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.X, { className: "h-5 w-5", "aria-hidden": "true" })
1436
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.X, { className: "h-5 w-5", "aria-hidden": "true" })
1286
1437
  }
1287
1438
  ) }),
1288
1439
  brandBlockFor(false),
1289
1440
  topItemBlock("app-sidebar-mobile-top-item"),
1290
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("nav", { className: "flex-1 px-3 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-col gap-0.5", children: rung0.items.map(
1441
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("nav", { className: "flex-1 px-3 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col gap-0.5", children: rung0.items.map(
1291
1442
  (item) => item.type === "app" ? renderAppItem(item, "app-sidebar-mobile-navlink") : null
1292
1443
  ) }) })
1293
1444
  ]
1294
1445
  }
1295
1446
  )
1296
1447
  ] }),
1297
- /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1448
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1298
1449
  "aside",
1299
1450
  {
1300
1451
  "data-testid": "app-sidebar-desktop",
@@ -1309,18 +1460,18 @@ function AppSidebar({
1309
1460
  children: [
1310
1461
  brandBlockFor(collapsed),
1311
1462
  topItemBlock("app-sidebar-top-item", collapsed),
1312
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
1463
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1313
1464
  "nav",
1314
1465
  {
1315
1466
  ref: containerRef,
1316
1467
  "data-testid": "app-sidebar-nav",
1317
1468
  className: "flex-1 overflow-y-auto px-3 py-4",
1318
- children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "flex flex-col gap-0.5", children: rung.items.map(
1469
+ children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "flex flex-col gap-0.5", children: rung.items.map(
1319
1470
  (item) => item.type === "app" ? renderAppItem(item, "app-sidebar-navlink", collapsed) : renderGroupItem(item, collapsed)
1320
1471
  ) })
1321
1472
  }
1322
1473
  ),
1323
- collapsible && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("div", { className: "border-t border-sidebar-border px-2 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
1474
+ collapsible && /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { className: "border-t border-sidebar-border px-2 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
1324
1475
  "button",
1325
1476
  {
1326
1477
  type: "button",
@@ -1334,8 +1485,8 @@ function AppSidebar({
1334
1485
  collapsed && "justify-center px-0"
1335
1486
  ),
1336
1487
  children: [
1337
- collapsed ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.PanelLeftOpen, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_lucide_react2.PanelLeftClose, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }),
1338
- /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: collapsed ? "Expand sidebar" : "Collapse sidebar" })
1488
+ collapsed ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.PanelLeftOpen, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_lucide_react2.PanelLeftClose, { className: "size-4 shrink-0", strokeWidth: 1.5, "aria-hidden": "true" }),
1489
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("span", { className: cn("truncate", collapsed && "sr-only"), children: collapsed ? "Expand sidebar" : "Collapse sidebar" })
1339
1490
  ]
1340
1491
  }
1341
1492
  ) })
@@ -1378,19 +1529,19 @@ function groupItemsByOrg(rows, get) {
1378
1529
 
1379
1530
  // src/lib/dropdown-menu.tsx
1380
1531
  var DropdownMenuPrimitive = __toESM(require("@radix-ui/react-dropdown-menu"));
1381
- var import_jsx_runtime6 = require("react/jsx-runtime");
1532
+ var import_jsx_runtime7 = require("react/jsx-runtime");
1382
1533
  function DropdownMenu(props) {
1383
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
1534
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
1384
1535
  }
1385
1536
  function DropdownMenuTrigger(props) {
1386
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
1537
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
1387
1538
  }
1388
1539
  function DropdownMenuContent({
1389
1540
  className,
1390
1541
  sideOffset = 4,
1391
1542
  ...props
1392
1543
  }) {
1393
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1544
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1394
1545
  DropdownMenuPrimitive.Content,
1395
1546
  {
1396
1547
  "data-slot": "dropdown-menu-content",
@@ -1407,7 +1558,7 @@ function DropdownMenuItem({
1407
1558
  className,
1408
1559
  ...props
1409
1560
  }) {
1410
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1561
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1411
1562
  DropdownMenuPrimitive.Item,
1412
1563
  {
1413
1564
  "data-slot": "dropdown-menu-item",
@@ -1423,7 +1574,7 @@ function DropdownMenuLabel({
1423
1574
  className,
1424
1575
  ...props
1425
1576
  }) {
1426
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
1577
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1427
1578
  DropdownMenuPrimitive.Label,
1428
1579
  {
1429
1580
  "data-slot": "dropdown-menu-label",
@@ -1434,7 +1585,7 @@ function DropdownMenuLabel({
1434
1585
  }
1435
1586
 
1436
1587
  // src/context-switcher.tsx
1437
- var import_jsx_runtime7 = require("react/jsx-runtime");
1588
+ var import_jsx_runtime8 = require("react/jsx-runtime");
1438
1589
  function groupByOrg(items) {
1439
1590
  return groupItemsByOrg(items, {
1440
1591
  orgId: (it) => it.orgId,
@@ -1466,29 +1617,29 @@ function ContextSwitcher({
1466
1617
  const active = items.find((it) => it.refId === activeRefId) ?? null;
1467
1618
  const groups = groupByOrg(items);
1468
1619
  const showOrgHeaders = groups.length > 1;
1469
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(DropdownMenu, { children: [
1470
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuTrigger, { asChild: true, children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1620
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(DropdownMenu, { children: [
1621
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuTrigger, { asChild: true, children: collapsed ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1471
1622
  "button",
1472
1623
  {
1473
1624
  type: "button",
1474
1625
  title: active?.name || placeholder,
1475
1626
  "aria-label": active?.name || placeholder,
1476
1627
  className: "flex h-10 w-10 items-center justify-center rounded-lg text-sidebar-foreground/70 transition-colors hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground",
1477
- children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }), size: "lg" })
1628
+ children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }), size: "lg" })
1478
1629
  }
1479
- ) : /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1630
+ ) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1480
1631
  "button",
1481
1632
  {
1482
1633
  type: "button",
1483
1634
  className: "group flex items-center gap-2 rounded-md border border-sidebar-border bg-sidebar-accent/60 px-2.5 py-1.5 text-sm font-medium transition-colors hover:bg-sidebar",
1484
1635
  children: [
1485
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }) }),
1486
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder }),
1487
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.ChevronDown, { className: "h-3.5 w-3.5 text-sidebar-foreground/70 transition-transform group-data-[state=open]:rotate-180" })
1636
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }) }),
1637
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder }),
1638
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronDown, { className: "h-3.5 w-3.5 text-sidebar-foreground/70 transition-transform group-data-[state=open]:rotate-180" })
1488
1639
  ]
1489
1640
  }
1490
1641
  ) }),
1491
- /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1642
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1492
1643
  DropdownMenuContent,
1493
1644
  {
1494
1645
  side,
@@ -1497,13 +1648,13 @@ function ContextSwitcher({
1497
1648
  collisionPadding: 8,
1498
1649
  className: cn("w-60 overflow-hidden p-0", contentClassName),
1499
1650
  children: [
1500
- groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)("div", { children: [
1501
- showOrgHeaders && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(DropdownMenuLabel, { className: "px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: group.orgName ?? "Other" }),
1502
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: cn(showOrgHeaders && "ml-5 border-l border-border/60"), children: group.items.map((item, i) => {
1651
+ groups.map((group) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
1652
+ showOrgHeaders && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(DropdownMenuLabel, { className: "px-3 pb-1 pt-2 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground", children: group.orgName ?? "Other" }),
1653
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: cn(showOrgHeaders && "ml-5 border-l border-border/60"), children: group.items.map((item, i) => {
1503
1654
  const isActive = item.refId === activeRefId;
1504
1655
  const next = group.items[i + 1];
1505
1656
  const endsPinned = item.pinned === true && next !== void 0 && next.pinned !== true;
1506
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(
1657
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1507
1658
  DropdownMenuItem,
1508
1659
  {
1509
1660
  "data-active": isActive || void 0,
@@ -1515,8 +1666,8 @@ function ContextSwitcher({
1515
1666
  endsPinned && "border-b border-border/60"
1516
1667
  ),
1517
1668
  children: [
1518
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(BrandGlyph, { brand: toBrand(item), subtle: true }),
1519
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
1669
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: toBrand(item), subtle: true }),
1670
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1520
1671
  "span",
1521
1672
  {
1522
1673
  className: cn(
@@ -1526,18 +1677,18 @@ function ContextSwitcher({
1526
1677
  children: item.name
1527
1678
  }
1528
1679
  ),
1529
- item.kindLabel && /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_jsx_runtime7.Fragment, { children: [
1680
+ item.kindLabel && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1530
1681
  " ",
1531
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("span", { className: "shrink-0 text-[11px] text-muted-foreground", children: item.kindLabel })
1682
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "shrink-0 text-[11px] text-muted-foreground", children: item.kindLabel })
1532
1683
  ] }),
1533
- isActive && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_lucide_react3.Check, { className: "size-3.5 text-emerald-500" })
1684
+ isActive && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.Check, { className: "size-3.5 text-emerald-500" })
1534
1685
  ]
1535
1686
  },
1536
1687
  item.refId
1537
1688
  );
1538
1689
  }) })
1539
1690
  ] }, group.orgId ?? "unattributed")),
1540
- footer && /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "sticky bottom-0 border-t border-border bg-popover", children: footer })
1691
+ footer && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: "sticky bottom-0 border-t border-border bg-popover", children: footer })
1541
1692
  ]
1542
1693
  }
1543
1694
  )
@@ -1546,7 +1697,7 @@ function ContextSwitcher({
1546
1697
 
1547
1698
  // src/connector-picker.tsx
1548
1699
  var import_react9 = require("react");
1549
- var import_jsx_runtime8 = require("react/jsx-runtime");
1700
+ var import_jsx_runtime9 = require("react/jsx-runtime");
1550
1701
  function accessLabel(access) {
1551
1702
  return access === "read" ? "Read" : "Read + write";
1552
1703
  }
@@ -1807,35 +1958,35 @@ function ConnectorPicker({
1807
1958
  );
1808
1959
  const ownEntries = entries?.filter((entry) => !isSharedWithViewer(entry)) ?? null;
1809
1960
  const sharedEntries = entries?.filter(isSharedWithViewer) ?? [];
1810
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { "data-testid": "connector-picker", "data-layout": layout, className: "flex flex-col gap-4", children: [
1811
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: containerClassName, children: [
1812
- entries === null && !loadError && Array.from({ length: SKELETON_COUNT }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1961
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { "data-testid": "connector-picker", "data-layout": layout, className: "flex flex-col gap-4", children: [
1962
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: containerClassName, children: [
1963
+ entries === null && !loadError && Array.from({ length: SKELETON_COUNT }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1813
1964
  "div",
1814
1965
  {
1815
1966
  "data-testid": "connector-picker-skeleton-item",
1816
1967
  "aria-hidden": "true",
1817
1968
  className: "flex items-center gap-3 rounded-lg border border-border p-3",
1818
1969
  children: [
1819
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "h-8 w-8 shrink-0 animate-pulse rounded bg-foreground/10" }),
1820
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "h-3 flex-1 animate-pulse rounded bg-foreground/10" })
1970
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "h-8 w-8 shrink-0 animate-pulse rounded bg-foreground/10" }),
1971
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "h-3 flex-1 animate-pulse rounded bg-foreground/10" })
1821
1972
  ]
1822
1973
  },
1823
1974
  i
1824
1975
  )),
1825
- loadError && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
1976
+ loadError && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1826
1977
  "div",
1827
1978
  {
1828
1979
  role: "alert",
1829
1980
  "data-testid": "connector-picker-load-error",
1830
1981
  className: "flex items-center justify-between gap-3 rounded-lg border border-destructive/30 bg-destructive/5 p-3 text-sm text-destructive",
1831
1982
  children: [
1832
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: loadError }),
1833
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("button", { type: "button", onClick: () => void load(), className: "shrink-0 underline", children: "Retry" })
1983
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: loadError }),
1984
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("button", { type: "button", onClick: () => void load(), className: "shrink-0 underline", children: "Retry" })
1834
1985
  ]
1835
1986
  }
1836
1987
  ),
1837
- entries !== null && entries.length === 0 && !loadError && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { "data-testid": "connector-picker-empty", className: "text-sm text-muted-foreground", children: "No connections available." }),
1838
- ownEntries?.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
1988
+ entries !== null && entries.length === 0 && !loadError && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { "data-testid": "connector-picker-empty", className: "text-sm text-muted-foreground", children: "No connections available." }),
1989
+ ownEntries?.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1839
1990
  ConnectorTile,
1840
1991
  {
1841
1992
  entry,
@@ -1855,9 +2006,9 @@ function ConnectorPicker({
1855
2006
  entry.slug
1856
2007
  ))
1857
2008
  ] }),
1858
- sharedEntries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("section", { "data-testid": "connector-picker-shared-with-me", className: "flex flex-col gap-2", children: [
1859
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h3", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Shared with me" }),
1860
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("div", { className: containerClassName, children: sharedEntries.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2009
+ sharedEntries.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("section", { "data-testid": "connector-picker-shared-with-me", className: "flex flex-col gap-2", children: [
2010
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h3", { className: "text-xs font-medium uppercase tracking-wide text-muted-foreground", children: "Shared with me" }),
2011
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("div", { className: containerClassName, children: sharedEntries.map((entry) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1861
2012
  ConnectorTile,
1862
2013
  {
1863
2014
  entry,
@@ -1916,7 +2067,7 @@ function ConnectorTile({
1916
2067
  const attribution = ownerLabel(entry);
1917
2068
  const canDisconnect = isConnected && !shared;
1918
2069
  const canManageSharing = isConnected && entry.connection.owned_by_viewer === true && grantsSupported;
1919
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2070
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1920
2071
  "div",
1921
2072
  {
1922
2073
  "data-testid": `connector-tile-${entry.slug}`,
@@ -1924,12 +2075,12 @@ function ConnectorTile({
1924
2075
  "data-deprecated": entry.deprecated || void 0,
1925
2076
  className: cn("flex flex-col p-3", layout === "tiles" && "rounded-lg border border-border"),
1926
2077
  children: [
1927
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-3", children: [
1928
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: { name: entry.name, logo: entry.logo }, size: "lg" }),
1929
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "min-w-0 flex-1", children: [
1930
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-2", children: [
1931
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { className: "truncate text-sm font-medium", children: entry.name }),
1932
- entry.deprecated && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2078
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-3", children: [
2079
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(BrandGlyph, { brand: { name: entry.name, logo: entry.logo }, size: "lg" }),
2080
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "min-w-0 flex-1", children: [
2081
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-2", children: [
2082
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { className: "truncate text-sm font-medium", children: entry.name }),
2083
+ entry.deprecated && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1933
2084
  "span",
1934
2085
  {
1935
2086
  "data-testid": `connector-deprecated-${entry.slug}`,
@@ -1938,24 +2089,24 @@ function ConnectorTile({
1938
2089
  }
1939
2090
  )
1940
2091
  ] }),
1941
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
1942
- (isConnected || choices.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "data-testid": `connector-capability-${entry.slug}`, children: accessLabel(tileAccess(entry)) }),
1943
- isConnected && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_jsx_runtime8.Fragment, { children: [
1944
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", children: "\xB7" }),
1945
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2092
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-1.5 text-xs text-muted-foreground", children: [
2093
+ (isConnected || choices.length === 0) && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "data-testid": `connector-capability-${entry.slug}`, children: accessLabel(tileAccess(entry)) }),
2094
+ isConnected && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_jsx_runtime9.Fragment, { children: [
2095
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", children: "\xB7" }),
2096
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1946
2097
  "span",
1947
2098
  {
1948
2099
  "data-testid": `connector-connected-${entry.slug}`,
1949
2100
  className: "inline-flex items-center gap-1",
1950
2101
  children: [
1951
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", className: "h-1.5 w-1.5 rounded-full bg-emerald-500" }),
2102
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", className: "h-1.5 w-1.5 rounded-full bg-emerald-500" }),
1952
2103
  "Connected"
1953
2104
  ]
1954
2105
  }
1955
2106
  )
1956
2107
  ] })
1957
2108
  ] }),
1958
- isConnected && !shared && entry.connection.account_label && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2109
+ isConnected && !shared && entry.connection.account_label && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
1959
2110
  "p",
1960
2111
  {
1961
2112
  "data-testid": `connector-account-${entry.slug}`,
@@ -1966,7 +2117,7 @@ function ConnectorTile({
1966
2117
  ]
1967
2118
  }
1968
2119
  ),
1969
- isConnected && entry.access_summary && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2120
+ isConnected && entry.access_summary && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1970
2121
  "p",
1971
2122
  {
1972
2123
  "data-testid": `connector-access-summary-${entry.slug}`,
@@ -1974,7 +2125,7 @@ function ConnectorTile({
1974
2125
  children: entry.access_summary
1975
2126
  }
1976
2127
  ),
1977
- unhealthy && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2128
+ unhealthy && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1978
2129
  "p",
1979
2130
  {
1980
2131
  role: "alert",
@@ -1983,7 +2134,7 @@ function ConnectorTile({
1983
2134
  children: DEFAULT_RECONNECT_MESSAGE
1984
2135
  }
1985
2136
  ),
1986
- attribution && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2137
+ attribution && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1987
2138
  "p",
1988
2139
  {
1989
2140
  "data-testid": `connector-owner-${entry.slug}`,
@@ -1991,14 +2142,14 @@ function ConnectorTile({
1991
2142
  children: attribution
1992
2143
  }
1993
2144
  ),
1994
- !isConnected && choices.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2145
+ !isConnected && choices.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
1995
2146
  "div",
1996
2147
  {
1997
2148
  "data-testid": `connector-access-choice-${entry.slug}`,
1998
2149
  role: "group",
1999
2150
  "aria-label": "Access",
2000
2151
  className: "mt-1 flex items-center gap-1",
2001
- children: choices.map((option) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2152
+ children: choices.map((option) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2002
2153
  "button",
2003
2154
  {
2004
2155
  type: "button",
@@ -2017,7 +2168,7 @@ function ConnectorTile({
2017
2168
  ))
2018
2169
  }
2019
2170
  ),
2020
- !isConnected && orgPermitted && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2171
+ !isConnected && orgPermitted && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2021
2172
  "div",
2022
2173
  {
2023
2174
  "data-testid": `connector-kind-toggle-${entry.slug}`,
@@ -2025,7 +2176,7 @@ function ConnectorTile({
2025
2176
  "aria-label": "Connect as",
2026
2177
  className: "mt-1 flex items-center gap-1",
2027
2178
  children: [
2028
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2179
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2029
2180
  "button",
2030
2181
  {
2031
2182
  type: "button",
@@ -2042,7 +2193,7 @@ function ConnectorTile({
2042
2193
  children: "Personal"
2043
2194
  }
2044
2195
  ),
2045
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2196
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2046
2197
  "button",
2047
2198
  {
2048
2199
  type: "button",
@@ -2062,10 +2213,10 @@ function ConnectorTile({
2062
2213
  ]
2063
2214
  }
2064
2215
  ),
2065
- errorMessage && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { role: "alert", "data-testid": `connector-error-${entry.slug}`, className: "text-xs text-destructive", children: errorMessage })
2216
+ errorMessage && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { role: "alert", "data-testid": `connector-error-${entry.slug}`, className: "text-xs text-destructive", children: errorMessage })
2066
2217
  ] }),
2067
- isConnected ? /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2068
- unhealthy && !shared && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2218
+ isConnected ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2219
+ unhealthy && !shared && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2069
2220
  "button",
2070
2221
  {
2071
2222
  type: "button",
@@ -2080,7 +2231,7 @@ function ConnectorTile({
2080
2231
  // as an always-visible paragraph it wrapped to four lines
2081
2232
  // beside every connected tile. Muted until hover so a
2082
2233
  // destructive action isn't the loudest thing on the tile.
2083
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2234
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2084
2235
  "button",
2085
2236
  {
2086
2237
  type: "button",
@@ -2092,7 +2243,7 @@ function ConnectorTile({
2092
2243
  children: isDisconnecting ? "Disconnecting\u2026" : "Disconnect"
2093
2244
  }
2094
2245
  ),
2095
- canManageSharing && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2246
+ canManageSharing && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2096
2247
  "button",
2097
2248
  {
2098
2249
  type: "button",
@@ -2103,8 +2254,8 @@ function ConnectorTile({
2103
2254
  children: sharingOpen ? "Hide sharing" : "Manage sharing"
2104
2255
  }
2105
2256
  )
2106
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2107
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2257
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex shrink-0 flex-col items-end gap-1", children: [
2258
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2108
2259
  "button",
2109
2260
  {
2110
2261
  type: "button",
@@ -2115,7 +2266,7 @@ function ConnectorTile({
2115
2266
  children: isConnecting ? "Connecting\u2026" : "Connect"
2116
2267
  }
2117
2268
  ),
2118
- canSetUp && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2269
+ canSetUp && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2119
2270
  "button",
2120
2271
  {
2121
2272
  type: "button",
@@ -2129,15 +2280,15 @@ function ConnectorTile({
2129
2280
  )
2130
2281
  ] })
2131
2282
  ] }),
2132
- canSetUp && setupOpen && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2283
+ canSetUp && setupOpen && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2133
2284
  "div",
2134
2285
  {
2135
2286
  id: `connector-setup-panel-${entry.slug}`,
2136
2287
  "data-testid": `connector-setup-panel-${entry.slug}`,
2137
2288
  className: "mt-2 flex flex-col gap-3 rounded-md border border-border bg-foreground/5 p-2",
2138
2289
  children: [
2139
- guide && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(SetupGuidePanel, { entry, guide, showVerify: !pasteSupported }),
2140
- pasteSupported && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2290
+ guide && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(SetupGuidePanel, { entry, guide, showVerify: !pasteSupported }),
2291
+ pasteSupported && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2141
2292
  CredentialForm,
2142
2293
  {
2143
2294
  entry,
@@ -2152,7 +2303,7 @@ function ConnectorTile({
2152
2303
  ]
2153
2304
  }
2154
2305
  ),
2155
- canManageSharing && sharingOpen && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2306
+ canManageSharing && sharingOpen && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2156
2307
  ManageSharing,
2157
2308
  {
2158
2309
  entry,
@@ -2202,8 +2353,8 @@ function CopyableValue({ value, testId }) {
2202
2353
  setCopied(false);
2203
2354
  }
2204
2355
  }, [value]);
2205
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "mt-1 flex items-center gap-1.5", children: [
2206
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2356
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "mt-1 flex items-center gap-1.5", children: [
2357
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2207
2358
  "code",
2208
2359
  {
2209
2360
  "data-testid": `${testId}-value`,
@@ -2211,7 +2362,7 @@ function CopyableValue({ value, testId }) {
2211
2362
  children: value
2212
2363
  }
2213
2364
  ),
2214
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2365
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2215
2366
  "button",
2216
2367
  {
2217
2368
  type: "button",
@@ -2237,8 +2388,8 @@ function SetupGuidePanel({
2237
2388
  ungrounded
2238
2389
  );
2239
2390
  }, [entry.slug, guide, leaked]);
2240
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { "data-testid": `connector-guide-${entry.slug}`, className: "flex flex-col gap-2", children: [
2241
- leaked && isDevEnvironment() && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2391
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { "data-testid": `connector-guide-${entry.slug}`, className: "flex flex-col gap-2", children: [
2392
+ leaked && isDevEnvironment() && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2242
2393
  "p",
2243
2394
  {
2244
2395
  role: "alert",
@@ -2250,25 +2401,25 @@ function SetupGuidePanel({
2250
2401
  ]
2251
2402
  }
2252
2403
  ),
2253
- prerequisites.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { children: [
2254
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("h4", { className: "text-xs font-medium", children: "Before you start" }),
2255
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2404
+ prerequisites.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { children: [
2405
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("h4", { className: "text-xs font-medium", children: "Before you start" }),
2406
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2256
2407
  "ul",
2257
2408
  {
2258
2409
  "data-testid": `connector-guide-prerequisites-${entry.slug}`,
2259
2410
  className: "mt-1 list-disc pl-4 text-xs text-muted-foreground",
2260
- children: prerequisites.map((item) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("li", { children: item }, item))
2411
+ children: prerequisites.map((item) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("li", { children: item }, item))
2261
2412
  }
2262
2413
  )
2263
2414
  ] }),
2264
- steps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2415
+ steps.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2265
2416
  "ol",
2266
2417
  {
2267
2418
  "data-testid": `connector-guide-steps-${entry.slug}`,
2268
2419
  className: "list-decimal pl-4 text-xs",
2269
- children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("li", { className: "mt-1 first:mt-0", children: [
2270
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { children: step.text }),
2271
- step.copyable && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2420
+ children: steps.map((step, index) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("li", { className: "mt-1 first:mt-0", children: [
2421
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: step.text }),
2422
+ step.copyable && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2272
2423
  CopyableValue,
2273
2424
  {
2274
2425
  value: step.copyable,
@@ -2278,7 +2429,7 @@ function SetupGuidePanel({
2278
2429
  ] }, step.text))
2279
2430
  }
2280
2431
  ),
2281
- scopeNote && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2432
+ scopeNote && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2282
2433
  "p",
2283
2434
  {
2284
2435
  "data-testid": `connector-guide-scope-note-${entry.slug}`,
@@ -2286,7 +2437,7 @@ function SetupGuidePanel({
2286
2437
  children: scopeNote
2287
2438
  }
2288
2439
  ),
2289
- showVerify && verify && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2440
+ showVerify && verify && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2290
2441
  "p",
2291
2442
  {
2292
2443
  "data-testid": `connector-guide-verify-${entry.slug}`,
@@ -2350,7 +2501,7 @@ function CredentialForm({
2350
2501
  setBusy(false);
2351
2502
  }
2352
2503
  }, [kind, onSubmitCredentials, values]);
2353
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2504
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2354
2505
  "form",
2355
2506
  {
2356
2507
  "data-testid": `connector-credential-form-${entry.slug}`,
@@ -2364,12 +2515,12 @@ function CredentialForm({
2364
2515
  fields.map((field) => {
2365
2516
  const inputId = `connector-credential-${entry.slug}-${field.key}`;
2366
2517
  const fieldError = fieldErrors?.[field.key] ?? null;
2367
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex flex-col gap-1", children: [
2368
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("label", { htmlFor: inputId, className: "text-xs font-medium", children: [
2518
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex flex-col gap-1", children: [
2519
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("label", { htmlFor: inputId, className: "text-xs font-medium", children: [
2369
2520
  field.label,
2370
- field.required !== false && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
2521
+ field.required !== false && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { "aria-hidden": "true", className: "ml-0.5 text-destructive", children: "*" })
2371
2522
  ] }),
2372
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2523
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2373
2524
  "input",
2374
2525
  {
2375
2526
  id: inputId,
@@ -2389,7 +2540,7 @@ function CredentialForm({
2389
2540
  )
2390
2541
  }
2391
2542
  ),
2392
- fieldError && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2543
+ fieldError && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2393
2544
  "p",
2394
2545
  {
2395
2546
  id: `${inputId}-error`,
@@ -2400,7 +2551,7 @@ function CredentialForm({
2400
2551
  )
2401
2552
  ] }, field.key);
2402
2553
  }),
2403
- verify && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2554
+ verify && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2404
2555
  "p",
2405
2556
  {
2406
2557
  "data-testid": `connector-guide-verify-${entry.slug}`,
@@ -2408,8 +2559,8 @@ function CredentialForm({
2408
2559
  children: verify
2409
2560
  }
2410
2561
  ),
2411
- result && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(CredentialTestResult, { entry, result }),
2412
- error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2562
+ result && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(CredentialTestResult, { entry, result }),
2563
+ error && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2413
2564
  "p",
2414
2565
  {
2415
2566
  role: "alert",
@@ -2418,8 +2569,8 @@ function CredentialForm({
2418
2569
  children: error
2419
2570
  }
2420
2571
  ),
2421
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center justify-end gap-1.5", children: [
2422
- testSupported && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2572
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center justify-end gap-1.5", children: [
2573
+ testSupported && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2423
2574
  "button",
2424
2575
  {
2425
2576
  type: "button",
@@ -2430,7 +2581,7 @@ function CredentialForm({
2430
2581
  children: testing ? "Testing\u2026" : "Test connection"
2431
2582
  }
2432
2583
  ),
2433
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2584
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2434
2585
  "button",
2435
2586
  {
2436
2587
  type: "submit",
@@ -2451,15 +2602,15 @@ function CredentialTestResult({
2451
2602
  result
2452
2603
  }) {
2453
2604
  if (result.valid === true) {
2454
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2605
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2455
2606
  "div",
2456
2607
  {
2457
2608
  role: "status",
2458
2609
  "data-testid": `connector-credential-test-pass-${entry.slug}`,
2459
2610
  className: "rounded-md border border-primary/30 bg-primary/5 px-2 py-1 text-xs",
2460
2611
  children: [
2461
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("p", { children: result.account_name ? `Verified \u2014 connected as ${result.account_name}.` : "Verified \u2014 these credentials work." }),
2462
- result.permissions_note && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2612
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("p", { children: result.account_name ? `Verified \u2014 connected as ${result.account_name}.` : "Verified \u2014 these credentials work." }),
2613
+ result.permissions_note && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2463
2614
  "p",
2464
2615
  {
2465
2616
  "data-testid": `connector-credential-permissions-${entry.slug}`,
@@ -2472,7 +2623,7 @@ function CredentialTestResult({
2472
2623
  );
2473
2624
  }
2474
2625
  if (result.valid === false) {
2475
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2626
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2476
2627
  "p",
2477
2628
  {
2478
2629
  role: "alert",
@@ -2482,7 +2633,7 @@ function CredentialTestResult({
2482
2633
  }
2483
2634
  );
2484
2635
  }
2485
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2636
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2486
2637
  "p",
2487
2638
  {
2488
2639
  role: "status",
@@ -2545,13 +2696,13 @@ function ManageSharing({
2545
2696
  },
2546
2697
  [load, revokeGrant]
2547
2698
  );
2548
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2699
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2549
2700
  "div",
2550
2701
  {
2551
2702
  "data-testid": `connector-sharing-panel-${entry.slug}`,
2552
2703
  className: "mt-2 flex flex-col gap-2 rounded-md border border-border bg-foreground/5 p-2",
2553
2704
  children: [
2554
- grants === null && !error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2705
+ grants === null && !error && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2555
2706
  "p",
2556
2707
  {
2557
2708
  "data-testid": `connector-grants-loading-${entry.slug}`,
@@ -2559,7 +2710,7 @@ function ManageSharing({
2559
2710
  children: "Loading sharing\u2026"
2560
2711
  }
2561
2712
  ),
2562
- error && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2713
+ error && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2563
2714
  "p",
2564
2715
  {
2565
2716
  role: "alert",
@@ -2568,7 +2719,7 @@ function ManageSharing({
2568
2719
  children: error
2569
2720
  }
2570
2721
  ),
2571
- grants !== null && grants.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2722
+ grants !== null && grants.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2572
2723
  "p",
2573
2724
  {
2574
2725
  "data-testid": `connector-grants-empty-${entry.slug}`,
@@ -2576,21 +2727,21 @@ function ManageSharing({
2576
2727
  children: "Not shared with anyone yet."
2577
2728
  }
2578
2729
  ),
2579
- grants?.map((grant) => /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2730
+ grants?.map((grant) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2580
2731
  "div",
2581
2732
  {
2582
2733
  "data-testid": `connector-grant-${entry.slug}-${grant.id}`,
2583
2734
  className: "flex items-center justify-between gap-2 text-xs",
2584
2735
  children: [
2585
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "truncate", children: [
2736
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "truncate", children: [
2586
2737
  grant.grantee_name || grant.grantee_id,
2587
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("span", { className: "text-muted-foreground", children: [
2738
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "text-muted-foreground", children: [
2588
2739
  " ",
2589
2740
  "\xB7 ",
2590
2741
  grant.grantee_type === "role" ? "Role" : "User"
2591
2742
  ] })
2592
2743
  ] }),
2593
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2744
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2594
2745
  "button",
2595
2746
  {
2596
2747
  type: "button",
@@ -2605,8 +2756,8 @@ function ManageSharing({
2605
2756
  },
2606
2757
  grant.id
2607
2758
  )),
2608
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)("div", { className: "flex items-center gap-1.5", children: [
2609
- /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2759
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("div", { className: "flex items-center gap-1.5", children: [
2760
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2610
2761
  "select",
2611
2762
  {
2612
2763
  "data-testid": `connector-grant-type-${entry.slug}`,
@@ -2619,12 +2770,12 @@ function ManageSharing({
2619
2770
  disabled: busy,
2620
2771
  className: "rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
2621
2772
  children: [
2622
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "user", children: "User" }),
2623
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "role", children: "Role" })
2773
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: "user", children: "User" }),
2774
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: "role", children: "Role" })
2624
2775
  ]
2625
2776
  }
2626
2777
  ),
2627
- granteeType === "user" ? /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2778
+ granteeType === "user" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2628
2779
  "input",
2629
2780
  {
2630
2781
  "data-testid": `connector-grant-grantee-${entry.slug}`,
@@ -2635,7 +2786,7 @@ function ManageSharing({
2635
2786
  disabled: busy,
2636
2787
  className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50"
2637
2788
  }
2638
- ) : /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(
2789
+ ) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
2639
2790
  "select",
2640
2791
  {
2641
2792
  "data-testid": `connector-grant-role-${entry.slug}`,
@@ -2645,12 +2796,12 @@ function ManageSharing({
2645
2796
  disabled: busy,
2646
2797
  className: "min-w-0 flex-1 rounded-md border border-border bg-transparent px-1.5 py-1 text-xs disabled:opacity-50",
2647
2798
  children: [
2648
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: "", children: "Select a role\u2026" }),
2649
- roleOptions.map((role) => /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("option", { value: role.id, children: role.name }, role.id))
2799
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: "", children: "Select a role\u2026" }),
2800
+ roleOptions.map((role) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("option", { value: role.id, children: role.name }, role.id))
2650
2801
  ]
2651
2802
  }
2652
2803
  ),
2653
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
2804
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
2654
2805
  "button",
2655
2806
  {
2656
2807
  type: "button",
@@ -2672,6 +2823,7 @@ function ManageSharing({
2672
2823
  BrandGlyph,
2673
2824
  ConnectorPicker,
2674
2825
  ContextSwitcher,
2826
+ DEFAULT_LEGAL_LINKS,
2675
2827
  Flyout,
2676
2828
  GLYPH_CANVAS_FILL,
2677
2829
  HOVER_CLOSE_DELAY_MS,
@@ -2683,6 +2835,7 @@ function ManageSharing({
2683
2835
  MARK_WEIGHT,
2684
2836
  REEVE_ACCENT,
2685
2837
  ResponsiveHeader,
2838
+ SiteFooter,
2686
2839
  WORDMARK_WEIGHT,
2687
2840
  accessLabel,
2688
2841
  deriveFallbackLadder,