@flamingo-stack/openframe-frontend-core 0.0.421 → 0.0.422-snapshot.20260713170838

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.
Files changed (113) hide show
  1. package/dist/{chunk-5TL2VVEN.js → chunk-2Q2SKYCZ.js} +5 -5
  2. package/dist/{chunk-HBTKCED7.js → chunk-4ACSUJ7Q.js} +13 -6
  3. package/dist/chunk-4ACSUJ7Q.js.map +1 -0
  4. package/dist/{chunk-FHAG7O27.js → chunk-7W4474XS.js} +2 -2
  5. package/dist/{chunk-5WXUR7LF.js → chunk-B2255TIZ.js} +55 -23
  6. package/dist/chunk-B2255TIZ.js.map +1 -0
  7. package/dist/{chunk-RKNF2DHY.cjs → chunk-CBY3VQKJ.cjs} +59 -59
  8. package/dist/{chunk-RKNF2DHY.cjs.map → chunk-CBY3VQKJ.cjs.map} +1 -1
  9. package/dist/{chunk-WDZATJTF.cjs → chunk-FVI2ESVQ.cjs} +523 -491
  10. package/dist/chunk-FVI2ESVQ.cjs.map +1 -0
  11. package/dist/{chunk-UKIVJU3A.js → chunk-GR2CMONR.js} +4 -4
  12. package/dist/{chunk-PMFK7ZKC.cjs → chunk-HGBEKYXL.cjs} +5 -5
  13. package/dist/{chunk-PMFK7ZKC.cjs.map → chunk-HGBEKYXL.cjs.map} +1 -1
  14. package/dist/{chunk-LHJHMZYU.js → chunk-I4YIWY3O.js} +4 -4
  15. package/dist/{chunk-E6WANQ6K.cjs → chunk-IMK6RUEC.cjs} +13 -6
  16. package/dist/chunk-IMK6RUEC.cjs.map +1 -0
  17. package/dist/{chunk-E5HKIBRS.cjs → chunk-IRIPRXO5.cjs} +9 -9
  18. package/dist/{chunk-E5HKIBRS.cjs.map → chunk-IRIPRXO5.cjs.map} +1 -1
  19. package/dist/{chunk-TJ7HD4KI.js → chunk-JPZE2P4Y.js} +4 -4
  20. package/dist/{chunk-4PS4F4WL.cjs → chunk-KNO5CB3W.cjs} +12 -12
  21. package/dist/{chunk-4PS4F4WL.cjs.map → chunk-KNO5CB3W.cjs.map} +1 -1
  22. package/dist/{chunk-4XTIANMS.js → chunk-LK3KXZIN.js} +3 -3
  23. package/dist/{chunk-XVWDKBBF.js → chunk-MOBZMJAP.js} +2 -2
  24. package/dist/{chunk-5U6C3RXX.cjs → chunk-MSZ4WBCD.cjs} +11 -11
  25. package/dist/{chunk-5U6C3RXX.cjs.map → chunk-MSZ4WBCD.cjs.map} +1 -1
  26. package/dist/{chunk-ISUMLEJ6.js → chunk-NNF5XOMH.js} +3 -3
  27. package/dist/{chunk-YLSDXDD7.cjs → chunk-OTNL36LC.cjs} +37 -37
  28. package/dist/{chunk-YLSDXDD7.cjs.map → chunk-OTNL36LC.cjs.map} +1 -1
  29. package/dist/{chunk-RQXFDMRY.cjs → chunk-SMUKHJJM.cjs} +19 -19
  30. package/dist/{chunk-RQXFDMRY.cjs.map → chunk-SMUKHJJM.cjs.map} +1 -1
  31. package/dist/{chunk-JMHU37Y6.js → chunk-SVUDKNS7.js} +3 -3
  32. package/dist/{chunk-UZOYTAK7.cjs → chunk-TIFJIHV2.cjs} +82 -82
  33. package/dist/{chunk-UZOYTAK7.cjs.map → chunk-TIFJIHV2.cjs.map} +1 -1
  34. package/dist/{chunk-6HCWW4YM.cjs → chunk-TMSP5FYV.cjs} +26 -26
  35. package/dist/{chunk-6HCWW4YM.cjs.map → chunk-TMSP5FYV.cjs.map} +1 -1
  36. package/dist/{chunk-5UZULT35.cjs → chunk-WO2NOBF3.cjs} +31 -31
  37. package/dist/{chunk-5UZULT35.cjs.map → chunk-WO2NOBF3.cjs.map} +1 -1
  38. package/dist/{chunk-PCM4HJO4.cjs → chunk-WOHMJJKD.cjs} +30 -30
  39. package/dist/{chunk-PCM4HJO4.cjs.map → chunk-WOHMJJKD.cjs.map} +1 -1
  40. package/dist/{chunk-UHSVSDF5.js → chunk-WWS3R3UD.js} +2 -2
  41. package/dist/{chunk-ZXWSOOEH.js → chunk-YOEQWHUD.js} +2 -2
  42. package/dist/components/case-studies/index.cjs +9 -9
  43. package/dist/components/case-studies/index.js +3 -3
  44. package/dist/components/chat/chat-input.d.ts.map +1 -1
  45. package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
  46. package/dist/components/chat/hooks/use-realtime-chunk-processor.d.ts.map +1 -1
  47. package/dist/components/chat/index.cjs +3 -3
  48. package/dist/components/chat/index.js +2 -2
  49. package/dist/components/chat/types/api.types.d.ts +10 -0
  50. package/dist/components/chat/types/api.types.d.ts.map +1 -1
  51. package/dist/components/contact/index.cjs +4 -4
  52. package/dist/components/contact/index.js +3 -3
  53. package/dist/components/docs/index.cjs +6 -6
  54. package/dist/components/docs/index.js +5 -5
  55. package/dist/components/embeds/index.cjs +4 -4
  56. package/dist/components/embeds/index.js +3 -3
  57. package/dist/components/faq/index.cjs +4 -4
  58. package/dist/components/faq/index.js +3 -3
  59. package/dist/components/features/index.cjs +3 -3
  60. package/dist/components/features/index.js +2 -2
  61. package/dist/components/features/time-tracker/time-tracker-panel.d.ts.map +1 -1
  62. package/dist/components/help-center-pages/index.cjs +21 -21
  63. package/dist/components/help-center-pages/index.js +12 -12
  64. package/dist/components/index.cjs +153 -153
  65. package/dist/components/index.js +10 -10
  66. package/dist/components/navigation/index.cjs +3 -3
  67. package/dist/components/navigation/index.js +2 -2
  68. package/dist/components/onboarding-guides/index.cjs +6 -6
  69. package/dist/components/onboarding-guides/index.js +5 -5
  70. package/dist/components/related-content/index.cjs +4 -4
  71. package/dist/components/related-content/index.js +3 -3
  72. package/dist/components/tickets/index.cjs +6 -6
  73. package/dist/components/tickets/index.js +5 -5
  74. package/dist/components/ui/actions-menu.d.ts.map +1 -1
  75. package/dist/components/ui/button/split-button.d.ts +6 -0
  76. package/dist/components/ui/button/split-button.d.ts.map +1 -1
  77. package/dist/components/ui/file-manager/index.cjs +50 -50
  78. package/dist/components/ui/file-manager/index.js +1 -1
  79. package/dist/components/ui/index.cjs +3 -3
  80. package/dist/components/ui/index.js +2 -2
  81. package/dist/components/ui/page-actions.d.ts.map +1 -1
  82. package/dist/index.cjs +3 -3
  83. package/dist/index.js +2 -2
  84. package/package.json +1 -1
  85. package/src/components/chat/chat-input.tsx +5 -1
  86. package/src/components/chat/hooks/use-nats-chat-adapter.ts +52 -3
  87. package/src/components/chat/hooks/use-realtime-chunk-processor.ts +25 -3
  88. package/src/components/chat/types/api.types.ts +10 -0
  89. package/src/components/features/time-tracker/time-tracker-panel.tsx +1 -0
  90. package/src/components/ui/actions-menu.tsx +1 -0
  91. package/src/components/ui/button/split-button.tsx +18 -3
  92. package/src/components/ui/page-actions.tsx +16 -14
  93. package/src/stories/ApprovalRequestMessageClient.stories.tsx +89 -0
  94. package/src/stories/ChatMessageEnhanced.stories.tsx +219 -0
  95. package/src/stories/ChatTypingIndicator.stories.tsx +51 -0
  96. package/src/stories/ContextCompactionDisplay.stories.tsx +44 -0
  97. package/src/stories/ErrorMessageDisplay.stories.tsx +66 -0
  98. package/src/stories/ThinkingDisplay.stories.tsx +63 -0
  99. package/dist/chunk-5WXUR7LF.js.map +0 -1
  100. package/dist/chunk-E6WANQ6K.cjs.map +0 -1
  101. package/dist/chunk-HBTKCED7.js.map +0 -1
  102. package/dist/chunk-WDZATJTF.cjs.map +0 -1
  103. /package/dist/{chunk-5TL2VVEN.js.map → chunk-2Q2SKYCZ.js.map} +0 -0
  104. /package/dist/{chunk-FHAG7O27.js.map → chunk-7W4474XS.js.map} +0 -0
  105. /package/dist/{chunk-UKIVJU3A.js.map → chunk-GR2CMONR.js.map} +0 -0
  106. /package/dist/{chunk-LHJHMZYU.js.map → chunk-I4YIWY3O.js.map} +0 -0
  107. /package/dist/{chunk-TJ7HD4KI.js.map → chunk-JPZE2P4Y.js.map} +0 -0
  108. /package/dist/{chunk-4XTIANMS.js.map → chunk-LK3KXZIN.js.map} +0 -0
  109. /package/dist/{chunk-XVWDKBBF.js.map → chunk-MOBZMJAP.js.map} +0 -0
  110. /package/dist/{chunk-ISUMLEJ6.js.map → chunk-NNF5XOMH.js.map} +0 -0
  111. /package/dist/{chunk-JMHU37Y6.js.map → chunk-SVUDKNS7.js.map} +0 -0
  112. /package/dist/{chunk-UHSVSDF5.js.map → chunk-WWS3R3UD.js.map} +0 -0
  113. /package/dist/{chunk-ZXWSOOEH.js.map → chunk-YOEQWHUD.js.map} +0 -0
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  ContactForm
4
- } from "./chunk-4XTIANMS.js";
4
+ } from "./chunk-LK3KXZIN.js";
5
5
  import {
6
6
  DeliveryRow,
7
7
  DevCardRowContent,
@@ -10,7 +10,7 @@ import {
10
10
  EmptyState,
11
11
  UnifiedPagination,
12
12
  init_unified_pagination
13
- } from "./chunk-JMHU37Y6.js";
13
+ } from "./chunk-SVUDKNS7.js";
14
14
  import {
15
15
  AlertDialog,
16
16
  AlertDialogAction,
@@ -37,7 +37,7 @@ import {
37
37
  getStatusColorScheme,
38
38
  useChatAttachments,
39
39
  useChatIdentity
40
- } from "./chunk-5WXUR7LF.js";
40
+ } from "./chunk-B2255TIZ.js";
41
41
  import {
42
42
  STICKY_HEADER_OFFSET_PX,
43
43
  embedAuthedFetch,
@@ -58,7 +58,7 @@ import {
58
58
  Input,
59
59
  Skeleton,
60
60
  init_button2 as init_button
61
- } from "./chunk-HBTKCED7.js";
61
+ } from "./chunk-4ACSUJ7Q.js";
62
62
 
63
63
  // src/components/tickets/ticket-center.tsx
64
64
  import { useCallback as useCallback4, useState as useState4 } from "react";
@@ -1913,4 +1913,4 @@ export {
1913
1913
  HelpCenterCreateForm,
1914
1914
  HelpCenterList
1915
1915
  };
1916
- //# sourceMappingURL=chunk-5TL2VVEN.js.map
1916
+ //# sourceMappingURL=chunk-2Q2SKYCZ.js.map
@@ -304,8 +304,8 @@ var init_button = __esm({
304
304
  import { cva as cva2 } from "class-variance-authority";
305
305
  import React4 from "react";
306
306
  import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
307
- function Half({ variant, size, side, href, openInNewTab, prefetch, onClick, disabled, grow, type = "button", ariaLabel, children }) {
308
- const classes = cn(splitHalfVariants({ variant, size, side }), grow && "flex-1");
307
+ function Half({ variant, size, side, soloOnMobile, href, openInNewTab, prefetch, onClick, disabled, grow, type = "button", ariaLabel, children }) {
308
+ const classes = cn(splitHalfVariants({ variant, size, side, soloOnMobile }), grow && "flex-1");
309
309
  if (href) {
310
310
  return /* @__PURE__ */ jsx4(
311
311
  next_link_default,
@@ -363,7 +363,8 @@ var init_split_button = __esm({
363
363
  default: "h-10 md:h-12 px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] text-h3 [&_svg]:h-4 [&_svg]:w-4 md:[&_svg]:h-6 md:[&_svg]:w-6",
364
364
  small: "h-6 md:h-8 px-[var(--spacing-system-xs)] text-h5 [&_svg]:h-3 [&_svg]:w-3 md:[&_svg]:h-4 md:[&_svg]:w-4"
365
365
  },
366
- side: { main: "", icon: "" }
366
+ side: { main: "", icon: "" },
367
+ soloOnMobile: { true: "", false: "" }
367
368
  },
368
369
  compoundVariants: [
369
370
  // Rounded corners + per-variant seam. The icon-side's left border is the divider.
@@ -385,9 +386,12 @@ var init_split_button = __esm({
385
386
  { variant: "transparent", side: "icon", class: cn("rounded-md", splitDividerColorClasses.transparent) },
386
387
  // Icon half: per Figma, narrower than main height (default: 40×48; small: 32×32).
387
388
  { side: "icon", size: "default", class: "w-10 px-0" },
388
- { side: "icon", size: "small", class: "w-6 md:w-8 px-0" }
389
+ { side: "icon", size: "small", class: "w-6 md:w-8 px-0" },
390
+ { side: "icon", soloOnMobile: true, class: "max-md:hidden" },
391
+ { side: "main", soloOnMobile: true, class: "max-md:rounded-r-md" },
392
+ { variant: "outline", side: "main", soloOnMobile: true, class: "max-md:border-r" }
389
393
  ],
390
- defaultVariants: { variant: "accent", size: "default", side: "main" }
394
+ defaultVariants: { variant: "accent", size: "default", side: "main", soloOnMobile: false }
391
395
  });
392
396
  SplitButton = React4.forwardRef(function SplitButton2({
393
397
  variant = "accent",
@@ -408,6 +412,7 @@ var init_split_button = __esm({
408
412
  "aria-label": ariaLabel,
409
413
  groupAriaLabel
410
414
  }, ref) {
415
+ const soloOnMobile = !!iconAction.openInNewTab;
411
416
  return /* @__PURE__ */ jsxs4(
412
417
  "div",
413
418
  {
@@ -422,6 +427,7 @@ var init_split_button = __esm({
422
427
  variant,
423
428
  size,
424
429
  side: "main",
430
+ soloOnMobile,
425
431
  href,
426
432
  openInNewTab,
427
433
  prefetch,
@@ -443,6 +449,7 @@ var init_split_button = __esm({
443
449
  variant,
444
450
  size,
445
451
  side: "icon",
452
+ soloOnMobile,
446
453
  href: iconAction.href,
447
454
  openInNewTab: iconAction.openInNewTab,
448
455
  prefetch: iconAction.prefetch,
@@ -952,4 +959,4 @@ export {
952
959
  SkeletonList,
953
960
  SkeletonNavigation
954
961
  };
955
- //# sourceMappingURL=chunk-HBTKCED7.js.map
962
+ //# sourceMappingURL=chunk-4ACSUJ7Q.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/ui/button/button-styles.ts","../src/components/ui/button/button.tsx","../src/components/ui/button/split-button.tsx","../src/components/ui/button/index.ts","../src/components/ui/field-wrapper.tsx","../src/components/ui/input.tsx","../src/components/ui/checkbox.tsx","../src/components/ui/dropdown-menu.tsx","../src/components/ui/portal-container.tsx","../src/components/ui/skeleton.tsx"],"sourcesContent":["// Shared style atoms for `Button` and `SplitButton`. Extracted to keep a single\n// source of truth for surface colors, outline borders, and split-divider colors.\n\n// Each variant pairs `disabled:` (real `<button disabled>`) with `aria-disabled:`\n// (used for `<Link aria-disabled>` since anchors don't support `:disabled`).\nexport const buttonSurfaceClasses = {\n accent:\n \"bg-ods-accent text-ods-text-on-accent hover:bg-ods-accent-hover active:bg-ods-accent-active disabled:bg-ods-disabled aria-disabled:bg-ods-disabled\",\n outline:\n \"bg-ods-card text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-ods-card disabled:text-ods-text-disabled aria-disabled:bg-ods-card aria-disabled:text-ods-text-disabled\",\n transparent:\n \"bg-transparent text-ods-text-primary hover:bg-ods-bg-hover active:bg-ods-bg-active disabled:bg-transparent disabled:text-ods-text-disabled aria-disabled:bg-transparent aria-disabled:text-ods-text-disabled\",\n destructive:\n \"bg-ods-error text-ods-text-on-accent hover:bg-ods-error-hover active:bg-ods-error-active disabled:bg-ods-disabled aria-disabled:bg-ods-disabled\",\n} as const\n\nexport const outlineBorderClasses =\n \"border border-ods-border hover:border-ods-border-hover active:border-ods-border-active disabled:border-ods-border aria-disabled:border-ods-border\"\n\n// Color of the vertical seam between the main and icon halves (split layouts).\nexport const splitDividerColorClasses = {\n accent: \"border-ods-accent-active\",\n outline: \"border-ods-border\",\n transparent: \"border-ods-border\",\n destructive: \"border-ods-error-active\",\n} as const\n\nexport type ButtonSurfaceVariant = keyof typeof buttonSurfaceClasses\n","\"use client\"\n\nimport { Slot } from \"@radix-ui/react-slot\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport Link from \"../../../embed-shims/next-link\"\nimport React from \"react\"\n\nimport { cn } from \"../../../utils/cn\"\nimport { buttonSurfaceClasses, outlineBorderClasses, splitDividerColorClasses } from \"./button-styles\"\n\n// Default layout: centered single content area, padding/gap on the button itself.\nconst buttonVariants = cva(\n [\n \"relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)]\",\n \"rounded-md whitespace-nowrap\",\n \"transition-colors duration-200\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus\",\n \"disabled:pointer-events-none\",\n \"[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg]:h-5 [&_svg]:w-5\",\n ],\n {\n variants: {\n variant: {\n accent: buttonSurfaceClasses.accent,\n outline: cn(buttonSurfaceClasses.outline, outlineBorderClasses),\n transparent: buttonSurfaceClasses.transparent,\n destructive: buttonSurfaceClasses.destructive,\n },\n size: {\n default: \"py-[var(--spacing-system-sf)] px-[var(--spacing-system-m)] text-h3 md:h-12 h-10\",\n small: \"p-[var(--spacing-system-xs)] text-h5 h-6 md:h-8\",\n \"small-legacy\": \"py-[var(--spacing-system-xs)] px-[var(--spacing-system-m)] h-10 text-[14px] font-bold\", // Temporary alias for \"small\" — deprecated; grep size=\"small-legacy\" (lib + hub) and migrate the remaining consumers before removal\n // 24px pill for slim strips (announcement/promo bars, inline banner\n // actions — Primer banner / Polaris banner / Vercel-bar convention).\n // The label matches the strip's MESSAGE type ramp exactly (DM Sans\n // regular, 13px -> md:14px, snug leading — the announcement bar's\n // subtitle styling): in-strip CTAs must never read louder than the\n // message beside them, so this deliberately uses neither the\n // mono-uppercase control style of \"small\" nor a heavier weight.\n // Pinned h-6 across breakpoints (24px = the WCAG 2.5.8 target-size\n // floor) with horizontal-dominant padding and a 14px glyph.\n compact: \"py-0 px-[var(--spacing-system-sf)] font-body font-normal text-[13px] md:text-sm leading-snug h-6 [&_svg]:h-3.5 [&_svg]:w-3.5\",\n icon: \"p-[var(--spacing-system-sf)] h-11 w-11 md:h-12 md:w-12 [&_svg]:h-4 [&_svg]:w-4 md:[&_svg]:h-6 md:[&_svg]:w-6\",\n // Quiet 32px icon target with a 16px glyph, fixed across breakpoints\n // (Carbon ghost sm / Primer medium / shadcn icon-sm all pin 32px;\n // ≥ the 24px WCAG 2.5.8 target floor). For icon actions that read as\n // metadata rather than CTAs — author-page social rows, share rows.\n // Pair with variant=\"transparent\" for the ghost treatment.\n \"icon-sm\": \"p-[var(--spacing-system-xxs)] h-8 w-8 [&_svg]:h-4 [&_svg]:w-4\",\n },\n fullWidth: {\n true: \"w-full\",\n false: \"\",\n },\n noPaddingX: {\n true: \"px-0\",\n false: \"\",\n },\n },\n compoundVariants: [\n { size: \"small\", class: \"[&_svg]:h-4 [&_svg]:w-4\" },\n ],\n defaultVariants: {\n variant: \"accent\",\n size: \"default\",\n fullWidth: false,\n noPaddingX: false,\n },\n }\n)\n\n// Split layout (used when `splitIcon` is provided): outer button has no padding;\n// inner slots own padding/gap so the divider can span full button height.\nconst splitShellVariants = cva(\n [\n \"group relative inline-flex items-stretch overflow-hidden rounded-md whitespace-nowrap\",\n \"transition-colors duration-200\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus\",\n \"disabled:pointer-events-none\",\n ],\n {\n variants: {\n variant: {\n accent: buttonSurfaceClasses.accent,\n outline: cn(buttonSurfaceClasses.outline, outlineBorderClasses),\n transparent: buttonSurfaceClasses.transparent,\n destructive: buttonSurfaceClasses.destructive,\n },\n size: {\n default: \"h-12 text-h3\",\n small: \"h-6 md:h-8 text-h5\",\n },\n fullWidth: { true: \"w-full\", false: \"\" },\n },\n defaultVariants: { variant: \"accent\", size: \"default\", fullWidth: false },\n }\n)\n\nconst splitSlotVariants = cva(\n [\"inline-flex items-center justify-center\", \"[&_svg]:shrink-0 [&_svg]:h-5 [&_svg]:w-5\"],\n {\n variants: {\n slot: {\n main: \"gap-[var(--spacing-system-xsf)]\",\n icon: \"border-l\",\n },\n size: { default: \"\", small: \"[&_svg]:h-4 [&_svg]:w-4\" },\n variant: { accent: \"\", outline: \"\", transparent: \"\", destructive: \"\" },\n },\n compoundVariants: [\n { slot: \"main\", size: \"default\", class: \"px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)]\" },\n { slot: \"main\", size: \"small\", class: \"px-[var(--spacing-system-xs)]\" },\n { slot: \"icon\", size: \"default\", class: \"w-10\" },\n { slot: \"icon\", size: \"small\", class: \"w-6 md:w-8\" },\n { slot: \"icon\", variant: \"accent\", class: cn(\n splitDividerColorClasses.accent,\n \"group-disabled:border-ods-disabled group-aria-disabled:border-ods-disabled\",\n ) },\n { slot: \"icon\", variant: \"outline\", class: splitDividerColorClasses.outline },\n { slot: \"icon\", variant: \"transparent\", class: splitDividerColorClasses.transparent },\n { slot: \"icon\", variant: \"destructive\", class: cn(\n splitDividerColorClasses.destructive,\n \"group-disabled:border-ods-disabled group-aria-disabled:border-ods-disabled\",\n ) },\n ],\n defaultVariants: { slot: \"main\", size: \"default\", variant: \"accent\" },\n }\n)\n\n/** @deprecated Use `size=\"small\"` instead. Temporary alias kept for backward compatibility; will be removed in the future. */\ntype DeprecatedButtonSize = \"small-legacy\"\n\ntype ButtonSize = Exclude<VariantProps<typeof buttonVariants>[\"size\"], \"small-legacy\" | null | undefined> | DeprecatedButtonSize\n\ninterface ButtonProps\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\n Omit<VariantProps<typeof buttonVariants>, \"size\"> {\n asChild?: boolean\n href?: string\n openInNewTab?: boolean\n prefetch?: boolean\n /**\n * Pre-resolved anchor bundle (from `useNavLink({ href, targetPlatform })`).\n * When set, renders the Button as `<Link>` with `href` / `target` / `rel`\n * / `onClick` spread from this object. Lets callers thread the unified\n * nav decision directly without `<Button asChild><a {...linkProps}/>`\n * gymnastics. Wins over the separate `href` / `openInNewTab` props.\n */\n linkProps?: {\n href: string\n target?: '_blank'\n rel?: 'noopener noreferrer'\n onClick?: React.MouseEventHandler<HTMLAnchorElement>\n } | null\n leftIcon?: React.ReactNode\n rightIcon?: React.ReactNode\n /**\n * Renders a vertical divider and trailing icon area inside the button.\n * The whole button stays a single click target — the icon is decorative\n * (`aria-hidden`). For two independent click targets, use `<SplitButton>`.\n * Only honored when `size` is `\"default\"` or `\"small\"`.\n */\n splitIcon?: React.ReactNode\n loading?: boolean\n size?: ButtonSize\n}\n\nconst Spinner = () => (\n <svg className=\"animate-spin\" xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" aria-hidden=\"true\">\n <circle className=\"opacity-25\" cx=\"12\" cy=\"12\" r=\"10\" stroke=\"currentColor\" strokeWidth=\"4\" />\n <path\n className=\"opacity-75\"\n fill=\"currentColor\"\n d=\"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z\"\n />\n </svg>\n)\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(\n {\n className,\n variant,\n size,\n fullWidth,\n noPaddingX,\n asChild,\n href,\n openInNewTab,\n prefetch,\n linkProps,\n leftIcon,\n rightIcon,\n splitIcon,\n loading,\n children,\n disabled,\n onClick,\n ...props\n },\n ref,\n) {\n const isDisabled = disabled || loading\n\n // splitIcon is only supported for default/small sizes. With other sizes\n // (icon, small-legacy) we silently fall back to the normal layout.\n const useSplitLayout = !!splitIcon && (size === \"default\" || size === \"small\" || size === undefined)\n\n if (useSplitLayout) {\n const safeSize = (size ?? \"default\") as \"default\" | \"small\"\n const safeVariant = (variant ?? \"accent\") as \"accent\" | \"outline\" | \"transparent\" | \"destructive\"\n const shellClasses = cn(\n splitShellVariants({ variant: safeVariant, size: safeSize, fullWidth }),\n className,\n )\n const mainSlotClass = splitSlotVariants({ slot: \"main\", size: safeSize, variant: safeVariant })\n const iconSlotClass = splitSlotVariants({ slot: \"icon\", size: safeSize, variant: safeVariant })\n\n const splitContent = (\n <>\n <span className={cn(\"contents\", loading && \"invisible\")}>\n <span className={mainSlotClass}>\n {leftIcon && <span className=\"inline-flex items-center\">{leftIcon}</span>}\n {children}\n {rightIcon && <span className=\"inline-flex items-center\">{rightIcon}</span>}\n </span>\n <span aria-hidden=\"true\" className={iconSlotClass}>\n {splitIcon}\n </span>\n </span>\n {loading && (\n <span className=\"absolute inset-0 inline-flex items-center justify-center text-ods-text-primary\">\n <Spinner />\n </span>\n )}\n </>\n )\n\n // `linkProps` (the pre-resolved bundle from `useNavLink({ href, targetPlatform })`)\n // wins over the legacy `href` + `openInNewTab` props so callers can thread\n // the unified nav decision directly. Either path produces the same `<Link>`.\n const splitAnchor = linkProps ?? (href ? {\n href,\n target: openInNewTab ? '_blank' as const : undefined,\n rel: openInNewTab ? 'noopener noreferrer' as const : undefined,\n onClick: onClick as unknown as React.MouseEventHandler<HTMLAnchorElement> | undefined,\n } : null)\n if (splitAnchor) {\n return (\n <Link\n href={splitAnchor.href}\n prefetch={prefetch}\n target={splitAnchor.target}\n rel={splitAnchor.rel}\n // The Link branches don't spread {...props} (button attrs don't\n // belong on an anchor), but the accessible name MUST survive —\n // icon-only link buttons have no text content.\n aria-label={props['aria-label']}\n aria-disabled={isDisabled || undefined}\n tabIndex={isDisabled ? -1 : undefined}\n className={cn(shellClasses, isDisabled && \"pointer-events-none\")}\n onClick={splitAnchor.onClick}\n >\n {splitContent}\n </Link>\n )\n }\n\n return (\n <button\n ref={ref}\n className={shellClasses}\n disabled={isDisabled}\n onClick={onClick}\n {...props}\n >\n {splitContent}\n </button>\n )\n }\n\n const classes = cn(buttonVariants({ variant, size, fullWidth, noPaddingX }), className)\n\n // asChild: consumer fully controls the rendered element; we just stamp our classes.\n if (asChild) {\n return (\n <Slot ref={ref} className={classes} {...props}>\n {children}\n </Slot>\n )\n }\n\n // Real content stays in layout (preserving width) but goes invisible while loading.\n // The spinner is absolutely positioned so it never shifts the button's size.\n const content = (\n <>\n <span className={cn(\"contents\", loading && \"invisible\")}>\n {leftIcon && <span className=\"inline-flex items-center\">{leftIcon}</span>}\n {children}\n {rightIcon && <span className=\"inline-flex items-center\">{rightIcon}</span>}\n </span>\n {loading && (\n <span className=\"absolute inset-0 inline-flex items-center justify-center text-ods-text-primary\">\n <Spinner />\n </span>\n )}\n </>\n )\n\n // Same `linkProps`-wins-over-href resolution as the splitIcon branch.\n const anchor = linkProps ?? (href ? {\n href,\n target: openInNewTab ? '_blank' as const : undefined,\n rel: openInNewTab ? 'noopener noreferrer' as const : undefined,\n onClick: onClick as unknown as React.MouseEventHandler<HTMLAnchorElement> | undefined,\n } : null)\n if (anchor) {\n return (\n <Link\n href={anchor.href}\n prefetch={prefetch}\n target={anchor.target}\n rel={anchor.rel}\n // See the splitAnchor branch — keep the accessible name on the\n // anchor render (icon-only link buttons have no text content).\n aria-label={props['aria-label']}\n aria-disabled={isDisabled || undefined}\n tabIndex={isDisabled ? -1 : undefined}\n className={cn(classes, isDisabled && \"pointer-events-none\")}\n onClick={anchor.onClick}\n >\n {content}\n </Link>\n )\n }\n\n return (\n <button\n ref={ref}\n className={classes}\n disabled={isDisabled}\n onClick={onClick}\n {...props}\n >\n {content}\n </button>\n )\n})\n\nexport { Button, buttonVariants, type ButtonProps }\n","\"use client\"\n\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport Link from \"../../../embed-shims/next-link\"\nimport React from \"react\"\n\nimport { cn } from \"../../../utils/cn\"\nimport { buttonSurfaceClasses, splitDividerColorClasses } from \"./button-styles\"\n\n// Two independent interactive halves: each a `<button>` or `<a>`. The seam is\n// a 1px border on the left edge of the icon half, colored per variant. For a\n// single-target variant (decorative trailing icon), use `<Button splitIcon>`.\n\nconst splitHalfBase = [\n \"relative inline-flex items-center justify-center gap-[var(--spacing-system-xsf)]\",\n \"whitespace-nowrap transition-colors duration-200\",\n \"focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-focus focus-visible:z-10\",\n \"disabled:pointer-events-none\",\n \"[&_svg]:pointer-events-none [&_svg]:shrink-0\",\n]\n\nconst splitHalfVariants = cva(splitHalfBase, {\n variants: {\n variant: {\n accent: buttonSurfaceClasses.accent,\n outline: buttonSurfaceClasses.outline, // Outline border lives in compoundVariants so we can omit the seam edge.\n transparent: buttonSurfaceClasses.transparent,\n destructive: buttonSurfaceClasses.destructive,\n },\n size: {\n default: \"h-10 md:h-12 px-[var(--spacing-system-m)] py-[var(--spacing-system-sf)] text-h3 [&_svg]:h-4 [&_svg]:w-4 md:[&_svg]:h-6 md:[&_svg]:w-6\",\n small: \"h-6 md:h-8 px-[var(--spacing-system-xs)] text-h5 [&_svg]:h-3 [&_svg]:w-3 md:[&_svg]:h-4 md:[&_svg]:w-4\",\n },\n side: { main: \"\", icon: \"\" },\n soloOnMobile: { true: \"\", false: \"\" },\n },\n compoundVariants: [\n // Rounded corners + per-variant seam. The icon-side's left border is the divider.\n { variant: \"accent\", side: \"main\", class: \"rounded-l-md\" },\n { variant: \"accent\", side: \"icon\", class: cn(\n \"rounded-r-md border-l\",\n splitDividerColorClasses.accent,\n \"disabled:border-ods-disabled aria-disabled:border-ods-disabled\",\n ) },\n { variant: \"destructive\", side: \"main\", class: \"rounded-l-md\" },\n { variant: \"destructive\", side: \"icon\", class: cn(\n \"rounded-r-md border-l\",\n splitDividerColorClasses.destructive,\n \"disabled:border-ods-disabled aria-disabled:border-ods-disabled\",\n ) },\n { variant: \"outline\", side: \"main\", class: \"rounded-l-md border-y border-l border-ods-border\" },\n { variant: \"outline\", side: \"icon\", class: \"rounded-r-md border border-ods-border\" },\n { variant: \"transparent\", side: \"main\", class: \"rounded-md\" },\n { variant: \"transparent\", side: \"icon\", class: cn(\"rounded-md\", splitDividerColorClasses.transparent) },\n\n // Icon half: per Figma, narrower than main height (default: 40×48; small: 32×32).\n { side: \"icon\", size: \"default\", class: \"w-10 px-0\" },\n { side: \"icon\", size: \"small\", class: \"w-6 md:w-8 px-0\" },\n\n { side: \"icon\", soloOnMobile: true, class: \"max-md:hidden\" },\n { side: \"main\", soloOnMobile: true, class: \"max-md:rounded-r-md\" },\n { variant: \"outline\", side: \"main\", soloOnMobile: true, class: \"max-md:border-r\" },\n ],\n defaultVariants: { variant: \"accent\", size: \"default\", side: \"main\", soloOnMobile: false },\n})\n\ntype SplitButtonVariant = NonNullable<VariantProps<typeof splitHalfVariants>[\"variant\"]>\ntype SplitButtonSize = NonNullable<VariantProps<typeof splitHalfVariants>[\"size\"]>\n\ninterface SplitButtonIconAction {\n icon: React.ReactNode\n /** The icon half is interactive but has no visible text — needs an accessible name. */\n \"aria-label\": string\n onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>\n href?: string\n /**\n * Opens `href` with `target=\"_blank\"`. Also marks the half as a new-tab\n * affordance, which hides it below `md` (set it for `onClick` handlers that\n * open a new tab/window themselves).\n */\n openInNewTab?: boolean\n prefetch?: boolean\n disabled?: boolean\n}\n\ninterface SplitButtonProps {\n variant?: SplitButtonVariant\n size?: SplitButtonSize\n fullWidth?: boolean\n className?: string\n\n children: React.ReactNode\n onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>\n href?: string\n openInNewTab?: boolean\n prefetch?: boolean\n leftIcon?: React.ReactNode\n rightIcon?: React.ReactNode\n /** Disables both halves. Equivalent to `mainDisabled && iconAction.disabled`. */\n disabled?: boolean\n /** Disables only the main half. Combine with `iconAction.disabled` for finer control. */\n mainDisabled?: boolean\n type?: \"button\" | \"submit\" | \"reset\"\n \"aria-label\"?: string\n groupAriaLabel?: string\n\n iconAction: SplitButtonIconAction\n}\n\ninterface HalfOptions {\n variant: SplitButtonVariant\n size: SplitButtonSize\n side: \"main\" | \"icon\"\n soloOnMobile?: boolean\n href?: string\n openInNewTab?: boolean\n prefetch?: boolean\n onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>\n disabled?: boolean\n /** Stretch this half to fill the group's free space (the icon half stays fixed-width). */\n grow?: boolean\n type?: \"button\" | \"submit\" | \"reset\"\n ariaLabel?: string\n children: React.ReactNode\n}\n\nfunction Half({ variant, size, side, soloOnMobile, href, openInNewTab, prefetch, onClick, disabled, grow, type = \"button\", ariaLabel, children }: HalfOptions) {\n const classes = cn(splitHalfVariants({ variant, size, side, soloOnMobile }), grow && \"flex-1\")\n\n if (href) {\n return (\n <Link\n href={href}\n prefetch={prefetch}\n target={openInNewTab ? \"_blank\" : undefined}\n rel={openInNewTab ? \"noopener noreferrer\" : undefined}\n aria-disabled={disabled || undefined}\n tabIndex={disabled ? -1 : undefined}\n aria-label={ariaLabel}\n className={cn(classes, disabled && \"pointer-events-none\")}\n onClick={onClick as unknown as React.MouseEventHandler<HTMLAnchorElement> | undefined}\n >\n {children}\n </Link>\n )\n }\n\n return (\n <button\n type={type}\n className={classes}\n disabled={disabled}\n aria-label={ariaLabel}\n onClick={onClick as React.MouseEventHandler<HTMLButtonElement>}\n >\n {children}\n </button>\n )\n}\n\nconst SplitButton = React.forwardRef<HTMLDivElement, SplitButtonProps>(function SplitButton(\n {\n variant = \"accent\",\n size = \"default\",\n fullWidth = false,\n className,\n children,\n onClick,\n href,\n openInNewTab,\n prefetch,\n leftIcon,\n rightIcon,\n disabled,\n mainDisabled,\n type,\n iconAction,\n \"aria-label\": ariaLabel,\n groupAriaLabel,\n },\n ref,\n) {\n const soloOnMobile = !!iconAction.openInNewTab\n\n return (\n <div\n ref={ref}\n role=\"group\"\n aria-label={groupAriaLabel}\n className={cn(\"inline-flex items-stretch\", fullWidth && \"w-full\", className)}\n >\n <Half\n variant={variant}\n size={size}\n side=\"main\"\n soloOnMobile={soloOnMobile}\n href={href}\n openInNewTab={openInNewTab}\n prefetch={prefetch}\n onClick={onClick}\n disabled={disabled || mainDisabled}\n grow={fullWidth}\n type={type}\n ariaLabel={ariaLabel}\n >\n {leftIcon && <span className=\"inline-flex items-center\">{leftIcon}</span>}\n <span>{children}</span>\n {rightIcon && <span className=\"inline-flex items-center\">{rightIcon}</span>}\n </Half>\n <Half\n variant={variant}\n size={size}\n side=\"icon\"\n soloOnMobile={soloOnMobile}\n href={iconAction.href}\n openInNewTab={iconAction.openInNewTab}\n prefetch={iconAction.prefetch}\n onClick={iconAction.onClick}\n disabled={disabled || iconAction.disabled}\n ariaLabel={iconAction[\"aria-label\"]}\n >\n <span className=\"inline-flex items-center\">{iconAction.icon}</span>\n </Half>\n </div>\n )\n})\n\nexport { SplitButton, type SplitButtonProps, type SplitButtonIconAction }\n","export * from './button'\nexport * from './split-button'\n","\"use client\"\n\nimport * as React from \"react\"\nimport { cn } from \"../../utils/cn\"\n\nexport interface FieldWrapperProps {\n /** Label text displayed above the field */\n label?: string\n /** Status message displayed below the field. Wraps up to two lines, then ellipsizes. */\n error?: string\n /** Color variant for the message: \"error\" (red), \"warning\" (yellow), \"success\" (green) or \"muted\" (grey) */\n errorVariant?: \"error\" | \"warning\" | \"success\" | \"muted\"\n /** Additional className for the outer wrapper */\n className?: string\n children: React.ReactNode\n}\n\nconst errorVariantClasses = {\n error: \"text-ods-error\",\n warning: \"text-[var(--ods-attention-yellow-warning)]\",\n success: \"text-ods-success\",\n muted: \"text-ods-text-secondary\",\n} as const\n\nconst FieldWrapper = React.forwardRef<HTMLDivElement, FieldWrapperProps>(\n ({ label, error, errorVariant = \"error\", className, children }, ref) => {\n const hasChrome = label != null || error != null\n\n return (\n <div ref={ref} className={cn(hasChrome ? \"flex w-full flex-col\" : \"contents\", className)}>\n {label && (\n <label className=\"text-h4 text-ods-text-primary mb-1\">\n {label}\n </label>\n )}\n {children}\n {error && (\n <p\n className={cn(\"mt-1 text-h6 break-words line-clamp-2\", errorVariantClasses[errorVariant])}\n title={error}\n >\n {error}\n </p>\n )}\n </div>\n )\n }\n)\nFieldWrapper.displayName = \"FieldWrapper\"\n\nexport { FieldWrapper }\n","\"use client\"\n\nimport * as React from \"react\";\n\nimport { Loader2 } from \"lucide-react\";\nimport { cn } from \"../../utils/cn\";\nimport { FieldWrapper } from \"./field-wrapper\";\n\nexport interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {\n /** When true, renders error border & ring */\n invalid?: boolean;\n /** Element displayed at the start (left) of the input */\n startAdornment?: React.ReactNode;\n /** Element displayed at the end (right) of the input */\n endAdornment?: React.ReactNode;\n /** Label text displayed above the input */\n label?: string;\n /** Status message displayed below the input */\n error?: string;\n /** Color variant for the message: \"error\" (red), \"warning\" (yellow), \"success\" (green) or \"muted\" (grey).\n Only \"error\" and \"warning\" mark the field invalid (colored border). */\n errorVariant?: \"error\" | \"warning\" | \"success\" | \"muted\";\n /** When true, shows a loading spinner as end adornment */\n loading?: boolean;\n}\n\nconst invalidBorderClasses = {\n error: \"border-ods-error hover:border-ods-error has-[:focus]:border-ods-error\",\n warning: \"!border-[var(--ods-attention-yellow-warning)] hover:!border-[var(--ods-attention-yellow-warning)] has-[:focus]:!border-[var(--ods-attention-yellow-warning)]\",\n} as const;\n\nconst Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type, invalid = false, startAdornment, endAdornment, label, error, errorVariant = \"error\", loading = false, ...props }, ref) => {\n // success/muted are informational — they never paint the invalid border\n const variantIsInvalid = errorVariant === \"error\" || errorVariant === \"warning\"\n const isInvalid = invalid || (!!error && variantIsInvalid)\n\n // Range inputs get a clean slider rendering — no label wrapper, borders, or adornments\n if (type === 'range') {\n const rangeInput = (\n <input\n type=\"range\"\n className={cn(\n \"w-full cursor-pointer appearance-none rounded-full bg-white/30 h-1\",\n // Webkit (Chrome/Safari) thumb\n \"[&::-webkit-slider-thumb]:appearance-none\",\n \"[&::-webkit-slider-thumb]:w-3 [&::-webkit-slider-thumb]:h-3\",\n \"[&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:bg-white\",\n \"[&::-webkit-slider-thumb]:cursor-pointer [&::-webkit-slider-thumb]:shadow-sm\",\n // Firefox thumb\n \"[&::-moz-range-thumb]:w-3 [&::-moz-range-thumb]:h-3\",\n \"[&::-moz-range-thumb]:rounded-full [&::-moz-range-thumb]:bg-white\",\n \"[&::-moz-range-thumb]:border-0 [&::-moz-range-thumb]:cursor-pointer\",\n // Firefox track\n \"[&::-moz-range-track]:bg-transparent\",\n // Disabled\n \"disabled:cursor-not-allowed disabled:opacity-50\",\n className\n )}\n ref={ref}\n {...props}\n />\n )\n return label ? (\n <FieldWrapper label={label} error={error} errorVariant={errorVariant}>\n {rangeInput}\n </FieldWrapper>\n ) : rangeInput\n }\n\n const content = (\n <label\n data-invalid={isInvalid || undefined}\n className={cn(\n // Layout & spacing\n \"flex w-full items-center gap-2 rounded-[6px] border px-3 h-11 md:h-12 cursor-text\",\n // Focus-within states\n \"has-[:focus-visible]:outline-none\",\n \"group\",\n // Animations & touch UX\n \"transition-colors duration-200\",\n // Theme palette\n \"bg-ods-card border-ods-border has-[:focus]:border-ods-accent\",\n // Hover & active (not disabled)\n !props.disabled && \"hover:bg-ods-bg-hover hover:border-ods-border-hover active:bg-ods-bg-active active:border-ods-border-active\",\n // Disabled\n props.disabled && \"!cursor-not-allowed bg-ods-bg\",\n // Invalid\n isInvalid && invalidBorderClasses[variantIsInvalid ? (errorVariant as \"error\" | \"warning\") : \"error\"],\n className\n )}\n >\n {startAdornment && (\n <span className=\"text-h6 flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent group-data-[invalid]:text-ods-error [&_svg]:size-4 md:[&_svg]:size-6\">\n {startAdornment}\n </span>\n )}\n <input\n type={type}\n className={cn(\n // Layout\n \"flex-1 min-w-0 bg-transparent border-none outline-none\",\n // Typography\n \"text-h4\",\n // Colors\n \"text-ods-text-primary placeholder:text-ods-text-secondary\",\n // File input adjustments\n \"file:border-0 file:bg-transparent\",\n // Disabled\n \"disabled:cursor-not-allowed disabled:text-ods-text-disabled disabled:placeholder:text-ods-border\",\n // Touch\n \"touch-manipulation\",\n // Autofill override\n \"[&:-webkit-autofill]:[-webkit-box-shadow:0_0_0_9999px_transparent_inset] [&:-webkit-autofill]:[-webkit-text-fill-color:var(--color-text-primary)] [&:-webkit-autofill]:[caret-color:var(--color-text-primary)] [&:-webkit-autofill]:[transition:background-color_9999s_ease-in-out_0s]\"\n )}\n ref={ref}\n {...props}\n />\n {loading && (\n <Loader2 className=\"animate-spin flex-shrink-0 text-ods-text-secondary size-4 md:size-6\" />\n )}\n {!loading && endAdornment && (\n <span className=\"text-h6 flex-shrink-0 text-ods-text-secondary transition-colors duration-200 group-has-[:focus]:text-ods-accent group-data-[invalid]:text-ods-error [&_svg]:size-4 md:[&_svg]:size-6\">\n {endAdornment}\n </span>\n )}\n </label>\n )\n\n return (\n <FieldWrapper label={label} error={error} errorVariant={errorVariant}>\n {content}\n </FieldWrapper>\n )\n }\n)\nInput.displayName = \"Input\"\n\nexport { Input };\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as CheckboxPrimitive from \"@radix-ui/react-checkbox\"\n\nimport { cn } from \"../../utils/cn\"\nimport { CheckboxCheckmarkIcon } from \"../icons-v2-generated/signs-and-symbols/checkbox-checkmark-icon\"\n\nconst Checkbox = React.forwardRef<\n React.ElementRef<typeof CheckboxPrimitive.Root>,\n React.ComponentPropsWithoutRef<typeof CheckboxPrimitive.Root>\n>(({ className, ...props }, ref) => (\n <CheckboxPrimitive.Root\n ref={ref}\n className={cn(\n \"peer h-4 w-4 shrink-0 rounded-sm border border-ods-border bg-ods-card focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ods-accent focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-ods-accent data-[state=checked]:border-ods-accent\",\n className\n )}\n {...props}\n >\n <CheckboxPrimitive.Indicator\n className={cn(\"flex items-center justify-center text-ods-text-on-accent\")}\n >\n <CheckboxCheckmarkIcon size={10} />\n </CheckboxPrimitive.Indicator>\n </CheckboxPrimitive.Root>\n))\nCheckbox.displayName = CheckboxPrimitive.Root.displayName\n\nexport { Checkbox }\n","\"use client\"\n\nimport * as React from \"react\"\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\"\nimport { Check, ChevronRight, Circle } from \"lucide-react\"\n\nimport { cn } from \"../../utils/cn\"\nimport { usePortalContainer } from \"./portal-container\"\n\nconst DropdownMenu = DropdownMenuPrimitive.Root\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup\n\nconst DropdownMenuSubTrigger = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n inset?: boolean\n }\n>(({ className, inset, children, ...props }, ref) => (\n <DropdownMenuPrimitive.SubTrigger\n ref={ref}\n className={cn(\n \"flex cursor-pointer gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-ods-bg-hover focus:bg-ods-bg-hover data-[state=open]:bg-ods-bg-hover [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronRight className=\"ml-auto\" />\n </DropdownMenuPrimitive.SubTrigger>\n))\nDropdownMenuSubTrigger.displayName =\n DropdownMenuPrimitive.SubTrigger.displayName\n\nconst DropdownMenuSubContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.SubContent>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.SubContent\n ref={ref}\n className={cn(\n \"z-50 min-w-[8rem] overflow-hidden rounded-md border border-ods-border bg-ods-card p-1 text-ods-text-primary shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n))\nDropdownMenuSubContent.displayName =\n DropdownMenuPrimitive.SubContent.displayName\n\nconst DropdownMenuContent = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Content>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, sideOffset = 4, ...props }, ref) => {\n // Portal into the active container (e.g. a drawer) so the menu inherits its\n // stacking context; falls back to `document.body` when none is provided.\n const container = usePortalContainer()\n return (\n <DropdownMenuPrimitive.Portal container={container ?? undefined}>\n <DropdownMenuPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n className={cn(\n \"z-50 min-w-[8rem] overflow-hidden rounded-md border border-ods-border bg-ods-card p-1 text-ods-text-primary shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2\",\n className\n )}\n {...props}\n />\n </DropdownMenuPrimitive.Portal>\n )\n})\nDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName\n\nconst DropdownMenuItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-base outline-none transition-colors text-ods-text-primary hover:bg-ods-bg-hover hover:text-ods-text-primary focus:bg-ods-bg-hover focus:text-ods-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n))\nDropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName\n\nconst DropdownMenuCheckboxItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n <DropdownMenuPrimitive.CheckboxItem\n ref={ref}\n className={cn(\n \"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors text-ods-text-primary hover:bg-ods-bg-hover hover:text-ods-text-primary focus:bg-ods-bg-hover focus:text-ods-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n checked={checked}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Check className=\"h-4 w-4\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.CheckboxItem>\n))\nDropdownMenuCheckboxItem.displayName =\n DropdownMenuPrimitive.CheckboxItem.displayName\n\nconst DropdownMenuRadioItem = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.RadioItem>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem>\n>(({ className, children, ...props }, ref) => (\n <DropdownMenuPrimitive.RadioItem\n ref={ref}\n className={cn(\n \"relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors text-ods-text-primary hover:bg-ods-bg-hover hover:text-ods-text-primary focus:bg-ods-bg-hover focus:text-ods-text-primary data-[disabled]:pointer-events-none data-[disabled]:opacity-50\",\n className\n )}\n {...props}\n >\n <span className=\"absolute left-2 flex h-3.5 w-3.5 items-center justify-center\">\n <DropdownMenuPrimitive.ItemIndicator>\n <Circle className=\"h-2 w-2 fill-ods-accent\" />\n </DropdownMenuPrimitive.ItemIndicator>\n </span>\n {children}\n </DropdownMenuPrimitive.RadioItem>\n))\nDropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName\n\nconst DropdownMenuLabel = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Label>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n inset?: boolean\n }\n>(({ className, inset, ...props }, ref) => (\n <DropdownMenuPrimitive.Label\n ref={ref}\n className={cn(\n \"px-2 py-1.5 text-sm font-semibold text-ods-text-secondary\",\n inset && \"pl-8\",\n className\n )}\n {...props}\n />\n))\nDropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName\n\nconst DropdownMenuSeparator = React.forwardRef<\n React.ElementRef<typeof DropdownMenuPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <DropdownMenuPrimitive.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-ods-border\", className)}\n {...props}\n />\n))\nDropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName\n\nconst DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\"ml-auto text-xs tracking-widest text-ods-text-secondary opacity-60\", className)}\n {...props}\n />\n )\n}\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\"\n\nexport {\n DropdownMenu,\n DropdownMenuTrigger,\n DropdownMenuContent,\n DropdownMenuItem,\n DropdownMenuCheckboxItem,\n DropdownMenuRadioItem,\n DropdownMenuLabel,\n DropdownMenuSeparator,\n DropdownMenuShortcut,\n DropdownMenuGroup,\n DropdownMenuPortal,\n DropdownMenuSub,\n DropdownMenuSubContent,\n DropdownMenuSubTrigger,\n DropdownMenuRadioGroup,\n}\n","'use client'\n\nimport * as React from 'react'\n\n/**\n * The DOM node that Radix overlays (dropdown menus, tooltips) should portal\n * into, instead of the default `document.body`.\n *\n * Portaling to `document.body` lifts content out of every local stacking\n * context, which forces overlays opened *inside* a high-z surface (e.g. the\n * chat drawer) to escalate their own z-index to compete at the document\n * root. Pointing the portal at a node *inside* that surface instead\n * lets the content inherit the surface's stacking context — small, local\n * z-indices then \"just work\" and no escalation is needed. Radix positions\n * content with `strategy: \"fixed\"`, so it still escapes ancestor\n * `overflow: hidden` clipping regardless of where it is portaled.\n *\n * Default `null` → Radix falls back to `document.body` (unchanged behaviour\n * everywhere a provider isn't present).\n */\nexport const PortalContainerContext = React.createContext<HTMLElement | null>(\n null,\n)\n\n/** Read the active portal container (or `null` to use `document.body`). */\nexport function usePortalContainer(): HTMLElement | null {\n return React.useContext(PortalContainerContext)\n}\n","\"use client\"\n\nimport * as React from 'react'\nimport { cn } from \"../../utils/cn\"\n\ninterface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {\n className?: string\n}\n\nconst Skeleton = React.forwardRef<HTMLDivElement, SkeletonProps>(\n ({ className, ...props }, ref) => {\n return (\n <div\n ref={ref}\n className={cn(\n \"animate-pulse rounded-md bg-ods-border\",\n className\n )}\n {...props}\n />\n )\n }\n)\nSkeleton.displayName = 'Skeleton'\n\ninterface SkeletonTextProps extends React.HTMLAttributes<HTMLDivElement> {\n lines?: number\n className?: string\n}\n\nconst SkeletonText = React.forwardRef<HTMLDivElement, SkeletonTextProps>(\n ({ lines = 1, className, ...props }, ref) => {\n return (\n <div ref={ref} className={cn(\"space-y-2\", className)} {...props}>\n {Array.from({ length: lines }).map((_, i) => (\n <Skeleton \n key={i} \n className={cn(\n \"h-4\",\n i === lines - 1 && lines > 1 && \"w-3/4\" // Last line shorter for multi-line\n )} \n />\n ))}\n </div>\n )\n }\n)\nSkeletonText.displayName = 'SkeletonText'\n\ninterface SkeletonCardProps extends React.HTMLAttributes<HTMLDivElement> {\n showImage?: boolean\n className?: string\n}\n\nconst SkeletonCard = React.forwardRef<HTMLDivElement, SkeletonCardProps>(\n ({ showImage = false, className, ...props }, ref) => {\n return (\n <div \n ref={ref}\n className={cn(\n \"rounded-lg border border-ods-border overflow-hidden\",\n className\n )}\n {...props}\n >\n {showImage && (\n <Skeleton className=\"h-48 w-full\" />\n )}\n <div className=\"p-6\">\n <Skeleton className=\"h-6 w-3/4 mb-4\" />\n <SkeletonText lines={3} />\n </div>\n </div>\n )\n }\n)\nSkeletonCard.displayName = 'SkeletonCard'\n\ninterface SkeletonGridProps extends React.HTMLAttributes<HTMLDivElement> {\n columns?: number\n items?: number\n showImages?: boolean\n className?: string\n}\n\nconst SkeletonGrid = React.forwardRef<HTMLDivElement, SkeletonGridProps>(\n ({ columns = 3, items = 6, showImages = false, className, ...props }, ref) => {\n return (\n <div \n ref={ref}\n className={cn(\n `grid grid-cols-1 gap-6`,\n columns === 2 && \"md:grid-cols-2\",\n columns === 3 && \"md:grid-cols-3\",\n columns === 4 && \"md:grid-cols-4\",\n className\n )}\n {...props}\n >\n {Array.from({ length: items }).map((_, i) => (\n <SkeletonCard key={i} showImage={showImages} />\n ))}\n </div>\n )\n }\n)\nSkeletonGrid.displayName = 'SkeletonGrid'\n\ninterface SkeletonButtonProps extends React.HTMLAttributes<HTMLDivElement> {\n size?: 'sm' | 'default' | 'lg'\n className?: string\n}\n\nconst SkeletonButton = React.forwardRef<HTMLDivElement, SkeletonButtonProps>(\n ({ size = 'default', className, ...props }, ref) => {\n const sizeClasses = {\n sm: 'h-8 w-20',\n default: 'h-10 w-32',\n lg: 'h-12 w-40'\n }\n \n return (\n <Skeleton \n ref={ref}\n className={cn(\n \"rounded-lg\",\n sizeClasses[size],\n className\n )}\n {...props}\n />\n )\n }\n)\nSkeletonButton.displayName = 'SkeletonButton'\n\ninterface SkeletonHeadingProps extends React.HTMLAttributes<HTMLDivElement> {\n level?: 1 | 2 | 3 | 4 | 5 | 6\n className?: string\n}\n\nconst SkeletonHeading = React.forwardRef<HTMLDivElement, SkeletonHeadingProps>(\n ({ level = 1, className, ...props }, ref) => {\n const heightClasses = {\n 1: 'h-12',\n 2: 'h-10',\n 3: 'h-8',\n 4: 'h-7',\n 5: 'h-6',\n 6: 'h-5'\n }\n \n return (\n <Skeleton \n ref={ref}\n className={cn(\n heightClasses[level],\n \"w-3/4\",\n className\n )}\n {...props}\n />\n )\n }\n)\nSkeletonHeading.displayName = 'SkeletonHeading'\n\ninterface SkeletonListProps extends React.HTMLAttributes<HTMLDivElement> {\n items?: number\n className?: string\n}\n\nconst SkeletonList = React.forwardRef<HTMLDivElement, SkeletonListProps>(\n ({ items = 5, className, ...props }, ref) => {\n return (\n <div ref={ref} className={cn(\"space-y-3\", className)} {...props}>\n {Array.from({ length: items }).map((_, i) => (\n <div key={i} className=\"flex items-center gap-3\">\n <Skeleton className=\"h-10 w-10 rounded-full flex-shrink-0\" />\n <div className=\"flex-1\">\n <Skeleton className=\"h-4 w-1/3 mb-1\" />\n <Skeleton className=\"h-3 w-1/2\" />\n </div>\n </div>\n ))}\n </div>\n )\n }\n)\nSkeletonList.displayName = 'SkeletonList'\n\ninterface SkeletonNavigationProps extends React.HTMLAttributes<HTMLDivElement> {\n items?: number\n className?: string\n}\n\nconst SkeletonNavigation = React.forwardRef<HTMLDivElement, SkeletonNavigationProps>(\n ({ items = 6, className, ...props }, ref) => {\n return (\n <div ref={ref} className={cn(\"flex items-center gap-6\", className)} {...props}>\n {Array.from({ length: items }).map((_, i) => (\n <Skeleton key={i} className=\"h-5 w-20\" />\n ))}\n </div>\n )\n }\n)\nSkeletonNavigation.displayName = 'SkeletonNavigation'\n\nexport { \n Skeleton,\n SkeletonText,\n SkeletonCard,\n SkeletonGrid,\n SkeletonButton,\n SkeletonHeading,\n SkeletonList,\n SkeletonNavigation\n}"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAKa,sBAWA,sBAIA;AApBb;AAAA;AAAA;AAKO,IAAM,uBAAuB;AAAA,MAClC,QACE;AAAA,MACF,SACE;AAAA,MACF,aACE;AAAA,MACF,aACE;AAAA,IACJ;AAEO,IAAM,uBACX;AAGK,IAAM,2BAA2B;AAAA,MACtC,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,MACb,aAAa;AAAA,IACf;AAAA;AAAA;;;ACvBA,SAAS,YAAY;AACrB,SAAS,WAA8B;AAEvC,OAAOA,YAAW;AAmKhB,SAkDI,UAjDF,OAAAC,MADF,QAAAC,aAAA;AAxKF,IAWM,gBA8DA,oBAyBA,mBAqEA,SAWA;AAlLN;AAAA;AAAA;AAAA;AAIA;AAGA;AACA;AAGA,IAAM,iBAAiB;AAAA,MACrB;AAAA,QACE;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA;AAAA,QACE,UAAU;AAAA,UACR,SAAS;AAAA,YACP,QAAQ,qBAAqB;AAAA,YAC7B,SAAS,GAAG,qBAAqB,SAAS,oBAAoB;AAAA,YAC9D,aAAa,qBAAqB;AAAA,YAClC,aAAa,qBAAqB;AAAA,UACpC;AAAA,UACA,MAAM;AAAA,YACJ,SAAS;AAAA,YACT,OAAO;AAAA,YACP,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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CAMV,CACD,GACH;AAAA,EAEJ;AACF;AACA,aAAa,cAAc;AAO3B,IAAM,qBAA2B;AAAA,EAC/B,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,QAAQ;AAC3C,WACE,gBAAAA,KAAC,SAAI,KAAU,WAAW,GAAG,2BAA2B,SAAS,GAAI,GAAG,OACrE,gBAAM,KAAK,EAAE,QAAQ,MAAM,CAAC,EAAE,IAAI,CAAC,GAAG,MACrC,gBAAAA,KAAC,YAAiB,WAAU,cAAb,CAAwB,CACxC,GACH;AAAA,EAEJ;AACF;AACA,mBAAmB,cAAc;","names":["React","jsx","jsxs","Button","cva","React","jsx","jsxs","SplitButton","init_button","React","jsx","jsxs","React","jsx","React","React","jsx","jsxs","React","jsx","jsxs"]}
@@ -11,7 +11,7 @@ import {
11
11
  faqSectionSlug,
12
12
  parseFaqHash,
13
13
  serializeJsonLd
14
- } from "./chunk-5WXUR7LF.js";
14
+ } from "./chunk-B2255TIZ.js";
15
15
  import {
16
16
  STICKY_HEADER_OFFSET_PX,
17
17
  navigateSamePageHash,
@@ -382,4 +382,4 @@ export {
382
382
  FaqSection,
383
383
  FaqDocumentPage
384
384
  };
385
- //# sourceMappingURL=chunk-FHAG7O27.js.map
385
+ //# sourceMappingURL=chunk-7W4474XS.js.map
@@ -182,7 +182,7 @@ import {
182
182
  init_button2,
183
183
  init_split_button,
184
184
  usePortalContainer
185
- } from "./chunk-HBTKCED7.js";
185
+ } from "./chunk-4ACSUJ7Q.js";
186
186
  import {
187
187
  CheckboxCheckmarkIcon,
188
188
  SearchIcon
@@ -2475,6 +2475,7 @@ var SecondaryAction = ({ action }) => {
2475
2475
  );
2476
2476
  const classes = cn(
2477
2477
  SECONDARY_ACTION_CLASSES,
2478
+ action.openInNewTab && "max-md:hidden",
2478
2479
  action.disabled && "cursor-not-allowed opacity-60 pointer-events-none"
2479
2480
  );
2480
2481
  if (action.href) {
@@ -4657,7 +4658,11 @@ var ChatInput = forwardRef9((allProps, ref) => {
4657
4658
  disabled: isStopMode ? isStopping : sendDisabled,
4658
4659
  className: cn(
4659
4660
  "flex h-6 shrink-0 items-center text-ods-text-secondary transition-colors duration-200",
4660
- focused && "text-ods-accent",
4661
+ // Focus accent applies to the SEND icon only. Stop stays neutral
4662
+ // regardless of where focus sits — otherwise it reads yellow after
4663
+ // an Enter-send (editor keeps focus) but gray after an approve
4664
+ // click (focus moved to the card button).
4665
+ focused && !isStopMode && "text-ods-accent",
4661
4666
  "[&_svg]:size-4 md:[&_svg]:size-6",
4662
4667
  "cursor-pointer hover:text-ods-text-primary",
4663
4668
  "focus-visible:outline-none focus-visible:text-ods-accent",
@@ -21919,21 +21924,18 @@ function IconButtonsVariant({
21919
21924
  const isSingleAction = actions.length === 1 && !actions[0].submenu?.length;
21920
21925
  const singleAction = isSingleAction ? actions[0] : null;
21921
21926
  const useSingleActionMobile = isSingleAction && !hasMenuActions;
21927
+ const mobileMenuGroups = [
21928
+ { items: actions.flatMap(actionToMenuItems) },
21929
+ ...menuActions ?? []
21930
+ ];
21931
+ const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
21922
21932
  return /* @__PURE__ */ jsxs121(Fragment35, { children: [
21923
21933
  /* @__PURE__ */ jsxs121("div", { className: cn("hidden md:flex items-center", ACTIONS_GAP, className), children: [
21924
21934
  selector,
21925
21935
  desktopActions.map((action, idx) => /* @__PURE__ */ jsx155(React77.Fragment, { children: renderActionButton(action) }, actionKey(action, idx))),
21926
21936
  hasMenuActions && /* @__PURE__ */ jsx155(ActionsMenuDropdown, { groups: menuActions })
21927
21937
  ] }),
21928
- /* @__PURE__ */ jsx155("div", { className: cn("flex md:hidden", className), children: useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true }) : /* @__PURE__ */ jsx155(
21929
- ActionsMenuDropdown,
21930
- {
21931
- groups: [
21932
- { items: actions.flatMap(actionToMenuItems) },
21933
- ...menuActions ?? []
21934
- ]
21935
- }
21936
- ) })
21938
+ /* @__PURE__ */ jsx155("div", { className: cn("flex md:hidden", className), children: useSingleActionMobile && singleAction ? renderActionButton(singleAction, { iconOnly: true }) : hasMobileMenuItems ? /* @__PURE__ */ jsx155(ActionsMenuDropdown, { groups: mobileMenuGroups }) : null })
21937
21939
  ] });
21938
21940
  }
21939
21941
  function PrimaryButtonsVariant({
@@ -21959,21 +21961,18 @@ function MenuPrimaryVariant({
21959
21961
  }) {
21960
21962
  const desktopActions = actions.filter((a) => !a.showOnlyMobile);
21961
21963
  const hasMenuActions = menuActions.some((g) => g.items.length > 0);
21964
+ const mobileMenuGroups = [
21965
+ { items: actions.flatMap(actionToMenuItems) },
21966
+ ...menuActions
21967
+ ];
21968
+ const hasMobileMenuItems = mobileMenuGroups.some((g) => g.items.length > 0);
21962
21969
  return /* @__PURE__ */ jsxs121(Fragment35, { children: [
21963
21970
  /* @__PURE__ */ jsxs121("div", { className: cn("hidden md:flex items-center", ACTIONS_GAP, className), children: [
21964
21971
  selector,
21965
21972
  hasMenuActions && /* @__PURE__ */ jsx155(ActionsMenuDropdown, { groups: menuActions }),
21966
21973
  desktopActions.map((action, idx) => /* @__PURE__ */ jsx155(React77.Fragment, { children: renderActionButton({ ...action, variant: action.variant || "accent" }) }, `desktop-${actionKey(action, idx)}`))
21967
21974
  ] }),
21968
- /* @__PURE__ */ jsx155("div", { className: cn("flex md:hidden", className), children: /* @__PURE__ */ jsx155(
21969
- ActionsMenuDropdown,
21970
- {
21971
- groups: [
21972
- { items: actions.flatMap(actionToMenuItems) },
21973
- ...menuActions
21974
- ]
21975
- }
21976
- ) })
21975
+ /* @__PURE__ */ jsx155("div", { className: cn("flex md:hidden", className), children: hasMobileMenuItems ? /* @__PURE__ */ jsx155(ActionsMenuDropdown, { groups: mobileMenuGroups }) : null })
21977
21976
  ] });
21978
21977
  }
21979
21978
  function MobileBottomActions({ actions }) {
@@ -34129,7 +34128,8 @@ function TimeTrackerPanel({
34129
34128
  icon: /* @__PURE__ */ jsx261(ArrowRightUpIcon, { size: 24 }),
34130
34129
  "aria-label": "Open my time in a new view",
34131
34130
  onClick: onOpenMyTimeMenu,
34132
- disabled: !onOpenMyTimeMenu
34131
+ disabled: !onOpenMyTimeMenu,
34132
+ openInNewTab: true
34133
34133
  },
34134
34134
  children: "Open My Time"
34135
34135
  }
@@ -48165,6 +48165,7 @@ function useRealtimeChunkProcessor(options) {
48165
48165
  const hasEverStreamedRef = useRef66(false);
48166
48166
  const directModeFlagRef = useRef66(isDirectMode);
48167
48167
  const sawDirectMessageRef = useRef66(false);
48168
+ const directTeardownFiredRef = useRef66(false);
48168
48169
  useEffect79(() => {
48169
48170
  directModeFlagRef.current = isDirectMode;
48170
48171
  }, [isDirectMode]);
@@ -48178,8 +48179,9 @@ function useRealtimeChunkProcessor(options) {
48178
48179
  const emitSegments = (s, meta) => callbacks.onSegmentsUpdate?.(s, streamSeq != null ? { ...meta, streamSeq } : meta);
48179
48180
  if (action.action === "direct_message") sawDirectMessageRef.current = true;
48180
48181
  if ((directModeFlagRef.current || sawDirectMessageRef.current) && !DIRECT_MODE_ALLOWED.has(action.action)) {
48181
- if (isInStreamRef.current) {
48182
+ if (isInStreamRef.current || !directTeardownFiredRef.current) {
48182
48183
  isInStreamRef.current = false;
48184
+ directTeardownFiredRef.current = true;
48183
48185
  callbacks.onStreamEnd?.();
48184
48186
  accumulator.resetSegments();
48185
48187
  }
@@ -48219,6 +48221,9 @@ function useRealtimeChunkProcessor(options) {
48219
48221
  break;
48220
48222
  }
48221
48223
  case "tool_execution": {
48224
+ if (action.segment.data.type === "EXECUTING_TOOL") {
48225
+ callbacks.onAgentBusy?.();
48226
+ }
48222
48227
  if (!isInStreamRef.current && callbacks.onToolExecuted) {
48223
48228
  callbacks.onToolExecuted(action.segment);
48224
48229
  break;
@@ -48285,6 +48290,7 @@ function useRealtimeChunkProcessor(options) {
48285
48290
  }
48286
48291
  case "approval_result": {
48287
48292
  const { requestId, approved, approvalType, resolvedByName } = action;
48293
+ if (approved) callbacks.onAgentBusy?.();
48288
48294
  const escalatedData = pendingEscalatedRef.current.get(requestId);
48289
48295
  const status = approved ? "approved" : "rejected";
48290
48296
  if (escalatedData) {
@@ -48406,6 +48412,7 @@ function useRealtimeChunkProcessor(options) {
48406
48412
  pendingEscalatedRef.current.clear();
48407
48413
  hasInitializedWithData.current = false;
48408
48414
  sawDirectMessageRef.current = false;
48415
+ directTeardownFiredRef.current = false;
48409
48416
  }, []);
48410
48417
  const updateApprovalStatus = useCallback46(
48411
48418
  (requestId, status, resolvedByName) => {
@@ -50392,6 +50399,9 @@ function useNatsChatAdapter(config, options = {}) {
50392
50399
  const dialogId = isManagedMode ? internalDialogId : controlledDialogId !== void 0 ? controlledDialogId : null;
50393
50400
  const [messages, setMessages] = useState114([]);
50394
50401
  const [streamingPhase, setStreamingPhase] = useState114("idle");
50402
+ const streamingPhaseRef = useRef73(streamingPhase);
50403
+ streamingPhaseRef.current = streamingPhase;
50404
+ const suppressAgentBusyRef = useRef73(false);
50395
50405
  const [approvalStatuses, setApprovalStatuses] = useState114({});
50396
50406
  const [dialogs, setDialogs] = useState114([]);
50397
50407
  const [dialogsNextCursor, setDialogsNextCursor] = useState114(null);
@@ -50409,6 +50419,8 @@ function useNatsChatAdapter(config, options = {}) {
50409
50419
  async (requestId) => {
50410
50420
  if (!approveRequestCallback) return;
50411
50421
  setApprovalStatuses((prev) => ({ ...prev, [requestId]: "approved" }));
50422
+ const tookLock = streamingPhaseRef.current === "idle";
50423
+ setStreamingPhase((p) => p === "idle" ? "thinking" : p);
50412
50424
  try {
50413
50425
  await approveRequestCallback(requestId);
50414
50426
  } catch (err) {
@@ -50417,6 +50429,9 @@ function useNatsChatAdapter(config, options = {}) {
50417
50429
  delete next[requestId];
50418
50430
  return next;
50419
50431
  });
50432
+ if (tookLock) {
50433
+ setStreamingPhase((p) => p === "thinking" ? "idle" : p);
50434
+ }
50420
50435
  console.error("[useNatsChatAdapter] approveRequest failed:", err);
50421
50436
  }
50422
50437
  },
@@ -50457,6 +50472,18 @@ function useNatsChatAdapter(config, options = {}) {
50457
50472
  },
50458
50473
  onStreamStart: () => setStreamingPhase("streaming"),
50459
50474
  onStreamEnd: () => setStreamingPhase("idle"),
50475
+ // Agent is executing (approved) commands outside an open stream — keep
50476
+ // the composer locked exactly like the in-stream phases. An open stream
50477
+ // keeps ownership: only 'idle' upgrades to 'thinking'. Suppressed during
50478
+ // initial catchup so a replayed dead tail can't lock a finished dialog.
50479
+ onAgentBusy: () => {
50480
+ if (suppressAgentBusyRef.current) return;
50481
+ setStreamingPhase((p) => p === "idle" ? "thinking" : p);
50482
+ },
50483
+ // Terminal turn failures can arrive without a MESSAGE_END; unlock the
50484
+ // composer unless an open stream still owns the phase (in-stream errors
50485
+ // are followed by the stream's own MESSAGE_END).
50486
+ onError: () => setStreamingPhase((p) => p === "streaming" ? p : "idle"),
50460
50487
  // Live cumulative token counter for the active dialog — drives the
50461
50488
  // composer's "X / Y tokens used" tail as the assistant streams.
50462
50489
  onTokenUsage: (data) => setDialogTokenUsage(data),
@@ -50472,6 +50499,8 @@ function useNatsChatAdapter(config, options = {}) {
50472
50499
  onSegmentsUpdate: (segments) => callbacksRef.current.onSegmentsUpdate(segments),
50473
50500
  onStreamStart: () => callbacksRef.current.onStreamStart(),
50474
50501
  onStreamEnd: () => callbacksRef.current.onStreamEnd(),
50502
+ onAgentBusy: () => callbacksRef.current.onAgentBusy(),
50503
+ onError: () => callbacksRef.current.onError(),
50475
50504
  onTokenUsage: (data) => callbacksRef.current.onTokenUsage(data),
50476
50505
  onMetadata: (meta) => callbacksRef.current.onMetadata(meta),
50477
50506
  onApprove: accumApprove,
@@ -50561,10 +50590,13 @@ function useNatsChatAdapter(config, options = {}) {
50561
50590
  }, [active, dialogId, loadDialogHistory, resetAccumulator]);
50562
50591
  useEffect86(() => {
50563
50592
  if (!active || !dialogId) return;
50593
+ suppressAgentBusyRef.current = true;
50564
50594
  resetChunkTracking();
50565
50595
  startInitialBuffering();
50566
50596
  catchUpChunks().catch((err) => {
50567
50597
  console.error("[useNatsChatAdapter] initial catchup failed:", err);
50598
+ }).finally(() => {
50599
+ suppressAgentBusyRef.current = false;
50568
50600
  });
50569
50601
  }, [active, dialogId, resetChunkTracking, startInitialBuffering, catchUpChunks]);
50570
50602
  useNatsDialogSubscription({
@@ -53497,4 +53529,4 @@ export {
53497
53529
  LogsList,
53498
53530
  assets
53499
53531
  };
53500
- //# sourceMappingURL=chunk-5WXUR7LF.js.map
53532
+ //# sourceMappingURL=chunk-B2255TIZ.js.map