@hanzo/dev 4.2.0 → 4.2.1

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/{BinaryViewer-CmFUK4zZ.js → BinaryViewer-BCDMNW2g.js} +19 -19
  2. package/dist/{ChatMarkdown-nvEI7iCv.js → ChatMarkdown-BUidXqSs.js} +2460 -2460
  3. package/dist/{DevicePanel-v5e3sEIf.js → DevicePanel-D-pksK3r.js} +532 -532
  4. package/dist/{DeviceStreamView-CCIfmbxH.js → DeviceStreamView-DsCoOzDV.js} +377 -377
  5. package/dist/{DiffCommentAnnotation-BPTN_2a6.js → DiffCommentAnnotation-2HD5qiyt.js} +227 -227
  6. package/dist/{DiffFileTree-B_br90vY.js → DiffFileTree-CuWvI5hS.js} +13 -13
  7. package/dist/{DiffPanel-V5R5TPuK.js → DiffPanel-Z2QVmBzu.js} +328 -328
  8. package/dist/{DiffWorkerPoolProvider-BwFR-Fc9.js → DiffWorkerPoolProvider-CEfiCIGR.js} +3 -3
  9. package/dist/{DocumentPages-VSn83vty.js → DocumentPages-glImt2JO.js} +3 -3
  10. package/dist/{ExpandedImageDialog-CAorLacL.js → ExpandedImageDialog-iqO3LiIj.js} +404 -404
  11. package/dist/{FileExplorerPane-CeHulcPz.js → FileExplorerPane-GwnRmXEh.js} +4 -4
  12. package/dist/{FilePreviewPanel-BVNLvWOc.js → FilePreviewPanel-CXWpTlfI.js} +1089 -1089
  13. package/dist/{FontFilePreview-Dj8Blcay.js → FontFilePreview-CDydHOXg.js} +2 -2
  14. package/dist/{FontViewer-CLDdwhSr.js → FontViewer-DDt9C5Cb.js} +5 -5
  15. package/dist/{HanzoConnectAccountPages-BEzYfu2l.js → HanzoConnectAccountPages-_sfrtw9j.js} +357 -357
  16. package/dist/{HanzoConnectSidebarSignIn-BhD6-Up5.js → HanzoConnectSidebarSignIn-coFQvyRw.js} +3 -3
  17. package/dist/{Icons-CvSmt8vD.js → Icons-CdegMw5l.js} +1 -1
  18. package/dist/{LargeTextViewer-DfFnYGCw.js → LargeTextViewer-D3RklYQB.js} +8 -8
  19. package/dist/{MermaidDiagram-CTolIzQD.js → MermaidDiagram-sVLnox7j.js} +8 -8
  20. package/dist/{MermaidFilePreview-CP2zP4FU.js → MermaidFilePreview-BmPdNxW5.js} +2 -2
  21. package/dist/{MermaidViewer-BDfYkS9E.js → MermaidViewer-BlKTevTF.js} +3 -3
  22. package/dist/{NotebookPreview-Cybs5uM0.js → NotebookPreview-C0gSEyeO.js} +10 -10
  23. package/dist/{OfficeFilePreview-7JsmSoKU.js → OfficeFilePreview-Ago_DWEt.js} +2 -2
  24. package/dist/{OfficeViewer-CJoojlJK.js → OfficeViewer-DBRqtLet.js} +10 -10
  25. package/dist/{OpenInPicker-BIMWUxBP.js → OpenInPicker-DD_h7VLv.js} +287 -287
  26. package/dist/{OpenXmlOfficeViewer-C24Kj8DM.js → OpenXmlOfficeViewer-B4dxjpba.js} +4 -4
  27. package/dist/{PdfViewer-Cf1iD759.js → PdfViewer-BanXvPmz.js} +16 -16
  28. package/dist/{PreviewFaviconIcon-zFOuzIxe.js → PreviewFaviconIcon-BwYKB-3e.js} +892 -892
  29. package/dist/{PreviewImage-oY5YnuTr.js → PreviewImage-6UU-M6_B.js} +3 -3
  30. package/dist/{PreviewImageContent-n6eLzY99.js → PreviewImageContent-D-00K-A9.js} +3 -3
  31. package/dist/{PreviewPanel-Bo4Lt02m.js → PreviewPanel-CiuHdDv8.js} +489 -489
  32. package/dist/{PreviewPanelShell-DhXLeN5j.js → PreviewPanelShell-Dezxjg0T.js} +71 -71
  33. package/dist/{ProjectIconPickerDialog-D0kFzt8f.js → ProjectIconPickerDialog-LomrzROv.js} +29 -29
  34. package/dist/{ProjectMonogram-D35xrrXQ.js → ProjectMonogram-D21--FQY.js} +1 -1
  35. package/dist/{ProviderAuthTerminal-DfsXnu7A.js → ProviderAuthTerminal-pQXIfodT.js} +3 -3
  36. package/dist/{PullRequestCodeTab-Dv_0kVad.js → PullRequestCodeTab-Cqfh5eN2.js} +476 -476
  37. package/dist/{PullRequestReviewAnnotation-LeuwO-iH.js → PullRequestReviewAnnotation-B4Lp8Ktf.js} +334 -334
  38. package/dist/{ReadOnlySourcePreview-D__IA5g1.js → ReadOnlySourcePreview-7xXUUySV.js} +5 -5
  39. package/dist/{RelativeTime-BMRprQS8.js → RelativeTime-B_yprjav.js} +2 -2
  40. package/dist/{RightPanelResizeHandle-BLbSz-gk.js → RightPanelResizeHandle-PumvYb9P.js} +2 -2
  41. package/dist/{ThemeEditorPanel-CUDdsRsE.js → ThemeEditorPanel-BmXXpaCI.js} +196 -196
  42. package/dist/{ThreadTerminalDrawer-BF3Ix0q_.js → ThreadTerminalDrawer-DCgE3ojz.js} +461 -461
  43. package/dist/{VirtualTablePreview-dajviAfu.js → VirtualTablePreview-mA6DOFwb.js} +1 -1
  44. package/dist/{anchoredCopyToast-DnUtg1n_.js → anchoredCopyToast-BVa_dlBU.js} +2 -2
  45. package/dist/{assetUrls-DkY7vXfM.js → assetUrls-D8lRk7Xd.js} +45 -45
  46. package/dist/{browserLinkTarget-CA46wnQC.js → browserLinkTarget-BbVlDQYx.js} +18 -18
  47. package/dist/builder/api/models.d.ts +2 -0
  48. package/dist/builder/api/models.js +6 -1
  49. package/dist/builder/api/sandbox.d.ts +2 -0
  50. package/dist/builder/api/sandbox.js +3 -1
  51. package/dist/builder/desk.d.ts +6 -0
  52. package/dist/builder/desk.js +79 -14
  53. package/dist/builder/mind.d.ts +5 -5
  54. package/dist/builder/mind.js +35 -14
  55. package/dist/builder/pane.d.ts +1 -1
  56. package/dist/builder/pane.js +1 -1
  57. package/dist/builder/panel.js +5 -5
  58. package/dist/builder/preview-fallback.d.ts +47 -0
  59. package/dist/builder/preview-fallback.js +341 -0
  60. package/dist/{changedFileKind-D6QYvIez.js → changedFileKind-DrjqPCpz.js} +5 -5
  61. package/dist/{collapsible-DFT41MdC.js → collapsible-CDT6JKbk.js} +1 -1
  62. package/dist/{color-picker-CshqBbpY.js → color-picker-kSVcH92L.js} +16 -16
  63. package/dist/core.js +1 -1
  64. package/dist/{decodeImagePreview-DnfFEjhw.js → decodeImagePreview-ZtWU3urU.js} +2 -2
  65. package/dist/{delimitedPreview-BiEpdYOj.js → delimitedPreview-DbbXcqOT.js} +1 -1
  66. package/dist/{dialog-DhQtWGRa.js → dialog-EmpqFZiK.js} +40 -40
  67. package/dist/{embed-c030vUqM.js → embed-CPWZKyIW.js} +36098 -35677
  68. package/dist/{empty-Bm5EzcG8.js → empty-ChM6gdzn.js} +1 -1
  69. package/dist/{errors-DrFQSJW3.js → errors-D8_Zn8KN.js} +2 -2
  70. package/dist/{fileContextMenu-BBo91omq.js → fileContextMenu-DW94DZj4.js} +54 -54
  71. package/dist/{fileExplorerLabel-AikEChiS.js → fileExplorerLabel-Cfz-3q1U.js} +507 -507
  72. package/dist/{fileSurfaceChrome-Cqkvn8RQ.js → fileSurfaceChrome-BDyKklTq.js} +26 -26
  73. package/dist/{hanzoWebAnalytics-CCxpTzcI.js → hanzoWebAnalytics-B1eETW-7.js} +1 -1
  74. package/dist/index.css +1 -1
  75. package/dist/{input-group-DEJEuwc9.js → input-group-BZ_QN-y7.js} +1 -1
  76. package/dist/{keybindings-C5tK_GAk.js → keybindings-D0pBlT1k.js} +7812 -7806
  77. package/dist/keymap.js +1 -1
  78. package/dist/{lucideIconByName-DUaXKH0V.js → lucideIconByName-CXY44V8P.js} +6835 -6848
  79. package/dist/{mediaReference-Bt_mh-ag.js → mediaReference-3wc4ZfY8.js} +95 -95
  80. package/dist/mediaSource-jW5c7b4r.js +70 -0
  81. package/dist/{modelPickerVisibility-Jue3CLfc.js → modelPickerVisibility-DBTc5r1G.js} +1 -1
  82. package/dist/{network-BbwqRm8c.js → network-wuXD7-is.js} +1 -1
  83. package/dist/{popover-anNQdce7.js → popover-BAyP2Tdr.js} +1 -1
  84. package/dist/{presentation-D9mVPBHm.js → presentation-68y8EAuH.js} +299 -299
  85. package/dist/{previewFailureMessages-BKpsSGX5.js → previewFailureMessages-CFguipaK.js} +3 -3
  86. package/dist/query-BPk2W3QN.js +63 -0
  87. package/dist/{readBinaryPreview-BAQ4fFjm.js → readBinaryPreview-CjZdBNVR.js} +2 -2
  88. package/dist/{refresh-icon-BYx64to1.js → refresh-icon-Vo5ImiQL.js} +1 -1
  89. package/dist/{scroll-area-ChvX8uOh.js → scroll-area-CEoyjC7h.js} +1 -1
  90. package/dist/{select-DumYjny_.js → select-DLFnkZsI.js} +2 -2
  91. package/dist/{session-_kmiSv2A.js → session-Decc4Fo5.js} +1063 -1063
  92. package/dist/{skeleton-CJqwfMSF.js → skeleton-BOKpAZv6.js} +1 -1
  93. package/dist/{switch-COwevwaq.js → switch-DjpPjtQN.js} +2 -2
  94. package/dist/{themePalette-Dl_7omVL.js → themePalette-C-GtwwqV.js} +977 -977
  95. package/dist/{threadSearch-BHyWwcV3.js → threadSearch-CrtCof6n.js} +162 -162
  96. package/dist/{toggle-CEO6qTxB.js → toggle-B4F0EEtI.js} +1 -1
  97. package/dist/{toggle-group-BHovdMDl.js → toggle-group-l8hRPswr.js} +2 -2
  98. package/dist/{use-atom-command-ByoYq_K6.js → use-atom-command-XemtT1Gv.js} +1 -1
  99. package/dist/{useAriaLabelledBy-DPSISlnL.js → useAriaLabelledBy-CibvSz-b.js} +1 -1
  100. package/dist/{useFileMetadata-e7zsixVX.js → useFileMetadata-PesehDX0.js} +33 -33
  101. package/dist/{useFloatingRootContext-CJ9stHca.js → useFloatingRootContext-ppoGvqar.js} +1 -1
  102. package/dist/{useLiveRefresh-BkKJKXhH.js → useLiveRefresh-aHkPuz6N.js} +172 -172
  103. package/dist/{useNextRenderData-CyUmSAgz.js → useNextRenderData-CNhjWfP0.js} +1 -1
  104. package/dist/{useSettings-DYG9Dmro.js → useSettings-B_MtcTyD.js} +139 -139
  105. package/dist/{useTextFieldSpeech-COa9XcRx.js → useTextFieldSpeech-B1wCgLPO.js} +1404 -1404
  106. package/dist/{useTheme-D2ZM1gvV.js → useTheme-WlXpQRKG.js} +4 -4
  107. package/dist/{utils-515nQ17G.js → utils-DtKQl-D3.js} +6184 -6172
  108. package/dist/{wizard-i86ViMRc.js → wizard-DjD4UNew.js} +3 -3
  109. package/dist/{workspaceFocus-BV1_9KiH.js → workspaceFocus-MR1plm6A.js} +144 -144
  110. package/dist/{zap-e0OsRjBR.js → zap-iwsUKtvA.js} +30 -17
  111. package/package.json +1 -1
  112. package/dist/mediaSource-zI7JWid4.js +0 -70
  113. package/dist/query-BxrrBAp6.js +0 -63
@@ -1,26 +1,26 @@
1
- import { c as e, i as t } from "./session-_kmiSv2A.js";
1
+ import { c as e, i as t } from "./session-Decc4Fo5.js";
2
2
  import { c as n, n as r, s as i } from "./messages-yqmY7G5x.js";
3
- import { $r as a, C_ as o, Ds as s, Io as c, Ja as l, No as u, Oo as d, Qr as f, S_ as p, Tf as m, To as h, Xr as g, Zr as _, _s as v, b_ as y, bi as b, bs as x, ci as S, ei as ee, es as te, go as C, gr as w, hr as ne, ks as T, mo as E, oi as D, qa as O, ri as k, so as re, t as A, uo as j, vd as M, wf as N, wo as ie, ws as ae, x_ as oe, xs as P, y_ as F, yr as I } from "./utils-515nQ17G.js";
4
- import { Ao as se, ct as L } from "./keybindings-C5tK_GAk.js";
5
- import { t as R } from "./external-link-BJbZG79p.js";
6
- import { i as ce } from "./triangle-alert-CpJvcOXh.js";
7
- import { a as le, i as ue, o as de, r as z, t as B } from "./smile-plus-DQGGycyd.js";
8
- import { o as fe } from "./workflow-CZPqzM2D.js";
9
- import { t as pe } from "./message-square-BdfBgRUA.js";
3
+ import { $r as a, C_ as o, Ds as s, Ef as c, Io as l, Ja as u, No as d, Oo as f, Qr as p, S_ as m, Tf as h, To as g, Xr as _, Zr as v, _s as y, b_ as b, bi as x, bs as S, ci as C, ei as ee, es as te, go as ne, gr as w, hr as T, ks as E, mo as D, oi as re, qa as O, ri as k, so as A, t as j, uo as M, w_ as N, wo as ie, ws as ae, x_ as oe, xs as se, yd as P, yr as F } from "./utils-DtKQl-D3.js";
4
+ import { Ao as ce, ct as I } from "./keybindings-D0pBlT1k.js";
5
+ import { t as L } from "./external-link-BJbZG79p.js";
6
+ import { i as le } from "./triangle-alert-CpJvcOXh.js";
7
+ import { a as ue, i as de, o as fe, r as R, t as z } from "./smile-plus-DQGGycyd.js";
8
+ import { o as pe } from "./workflow-CZPqzM2D.js";
9
+ import { t as B } from "./message-square-BdfBgRUA.js";
10
10
  import { t as me } from "./trash-2-BSTDk3P8.js";
11
- import { J as he, Y as V, dt as H, lt as U, t as W, tt as G, ut as K } from "./ChatMarkdown-nvEI7iCv.js";
12
- import { i as ge, o as _e, t as q } from "./popover-anNQdce7.js";
13
- import { t as ve } from "./useAriaLabelledBy-DPSISlnL.js";
14
- import { s as ye } from "./presentation-D9mVPBHm.js";
15
- import { t as be } from "./use-atom-command-ByoYq_K6.js";
16
- import { n as xe, t as Se } from "./assetUrls-DkY7vXfM.js";
17
- import { T as Ce } from "./workspaceFocus-BV1_9KiH.js";
18
- import { s as we } from "./ExpandedImageDialog-CAorLacL.js";
19
- import { r as Te } from "./mediaSource-zI7JWid4.js";
20
- import { B as Ee, Yt as De, jn as Oe, n as ke, on as Ae, ot as J, st as je, t as Me } from "./useTextFieldSpeech-COa9XcRx.js";
21
- import { n as Ne, t as Pe } from "./toggle-group-BHovdMDl.js";
22
- import { n as Fe, r as Ie } from "./DiffCommentAnnotation-BPTN_2a6.js";
23
- import { t as Le } from "./RelativeTime-BMRprQS8.js";
11
+ import { J as he, Y as V, dt as H, lt as U, t as W, tt as G, ut as K } from "./ChatMarkdown-BUidXqSs.js";
12
+ import { i as ge, o as _e, t as q } from "./popover-BAyP2Tdr.js";
13
+ import { t as ve } from "./useAriaLabelledBy-CibvSz-b.js";
14
+ import { s as ye } from "./presentation-68y8EAuH.js";
15
+ import { t as be } from "./use-atom-command-XemtT1Gv.js";
16
+ import { n as xe, t as Se } from "./assetUrls-D8lRk7Xd.js";
17
+ import { T as Ce } from "./workspaceFocus-MR1plm6A.js";
18
+ import { s as we } from "./ExpandedImageDialog-iqO3LiIj.js";
19
+ import { r as Te } from "./mediaSource-jW5c7b4r.js";
20
+ import { B as Ee, Yt as De, jn as Oe, n as ke, on as Ae, ot as J, st as je, t as Me } from "./useTextFieldSpeech-B1wCgLPO.js";
21
+ import { n as Ne, t as Pe } from "./toggle-group-l8hRPswr.js";
22
+ import { n as Fe, r as Ie } from "./DiffCommentAnnotation-2HD5qiyt.js";
23
+ import { t as Le } from "./RelativeTime-B_yprjav.js";
24
24
  import * as Y from "react";
25
25
  import { createContext as Re, useContext as ze, useRef as Be, useState as X } from "react";
26
26
  import { c as Z } from "react/compiler-runtime";
@@ -51,7 +51,7 @@ function qe(e) {
51
51
  checked(t) {
52
52
  return e.indeterminate ? {} : t ? { [Ge]: "" } : { [Ke]: "" };
53
53
  },
54
- ...D
54
+ ...re
55
55
  };
56
56
  }
57
57
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/checkbox-group/CheckboxGroupContext.mjs
@@ -65,41 +65,41 @@ var Xe = /*#__PURE__*/ Y.createContext(void 0);
65
65
  process.env.NODE_ENV !== "production" && (Xe.displayName = "CheckboxRootContext");
66
66
  function Ze() {
67
67
  let e = Y.useContext(Xe);
68
- if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? T(14) : "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");
68
+ if (e === void 0) throw Error(process.env.NODE_ENV === "production" ? E(14) : "Base UI: CheckboxRootContext is missing. Checkbox parts must be placed within <Checkbox.Root>.");
69
69
  return e;
70
70
  }
71
71
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/checkbox/root/CheckboxRoot.mjs
72
72
  var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
73
- let { checked: n, className: r, defaultChecked: i = !1, "aria-labelledby": o, disabled: p = !1, form: m, id: v, indeterminate: y = !1, inputRef: S, name: w, onCheckedChange: ne, parent: T = !1, readOnly: D = !1, render: re, required: A = !1, uncheckedValue: j, value: M, nativeButton: N = !1, style: oe, ...F } = e, { clearErrors: I } = ee(), { disabled: se, name: L, setDirty: R, setFilled: ce, setTouched: le, state: ue, validationMode: de, validityData: z, validation: B } = k(), fe = Ue(), { labelId: pe, registerControlId: me, getDescriptionProps: he } = a(), V = Ye(), H = V?.allValues === void 0 ? void 0 : V.parent, U = H !== void 0, W = se || fe.disabled || V?.disabled || p, G = L ?? w, K = M ?? G, ge = C(), _e = V?.registerControlId !== me, q = f({
74
- id: v || void 0,
73
+ let { checked: n, className: r, defaultChecked: i = !1, "aria-labelledby": o, disabled: c = !1, form: m, id: h, indeterminate: y = !1, inputRef: b, name: C, onCheckedChange: w, parent: T = !1, readOnly: E = !1, render: re, required: A = !1, uncheckedValue: j, value: M, nativeButton: N = !1, style: oe, ...P } = e, { clearErrors: F } = ee(), { disabled: ce, name: I, setDirty: L, setFilled: le, setTouched: ue, state: de, validationMode: fe, validityData: R, validation: z } = k(), pe = Ue(), { labelId: B, registerControlId: me, getDescriptionProps: he } = a(), V = Ye(), H = V?.allValues === void 0 ? void 0 : V.parent, U = H !== void 0, W = ce || pe.disabled || V?.disabled || c, G = I ?? C, K = M ?? G, ge = ne(), _e = V?.registerControlId !== me, q = p({
74
+ id: h || void 0,
75
75
  enabled: _e
76
76
  }), ye = N ? q : ge, be = {};
77
77
  U && (T ? be = H.getParentProps() : K !== void 0 && (be = H.getChildProps(K)));
78
- let { checked: xe = n, indeterminate: Se = y, onCheckedChange: Ce, ...we } = be, Te = V?.value, Ee = Y.useRef(null), De = _(W, Ee), { getButtonProps: Oe, buttonRef: ke } = ie({
78
+ let { checked: xe = n, indeterminate: Se = y, onCheckedChange: Ce, ...we } = be, Te = V?.value, Ee = Y.useRef(null), De = v(W, Ee), { getButtonProps: Oe, buttonRef: ke } = ie({
79
79
  disabled: W,
80
80
  native: N
81
- }), Ae = V?.validation ?? B, [J, je] = c({
81
+ }), Ae = V?.validation ?? z, [J, je] = l({
82
82
  controlled: K !== void 0 && Te !== void 0 && !T ? Te.includes(K) : xe,
83
83
  default: i,
84
84
  name: "Checkbox",
85
85
  state: "checked"
86
86
  }), Me = U ? !!xe : J, Ne = U && Se || y;
87
- g(Ee, ge, J, void 0, !V && !W, w);
87
+ _(Ee, ge, J, void 0, !V && !W, C);
88
88
  let Pe = H?.registerChildId, Fe = Y.useRef(null), Ie = Ae.registerInput, Le = V ? K : void 0, Re = Y.useCallback((e) => Ie(e, {
89
89
  controlRef: Ee,
90
90
  value: Le
91
- }), [Ie, Le]), ze = s(S, Fe, T ? void 0 : Re), Be = ve(o, pe, Fe, !N, q, F["aria-label"]);
92
- d(() => {
93
- Fe.current && (Fe.current.indeterminate = Ne), V || ce(J);
91
+ }), [Ie, Le]), ze = s(b, Fe, T ? void 0 : Re), Be = ve(o, B, Fe, !N, q, P["aria-label"]);
92
+ f(() => {
93
+ Fe.current && (Fe.current.indeterminate = Ne), V || le(J);
94
94
  }, [
95
95
  J,
96
96
  Ne,
97
97
  V,
98
- ce
99
- ]), b(J, () => {
100
- V || (I(G), R(J !== z.initialValue), Ae.change(J));
98
+ le
99
+ ]), x(J, () => {
100
+ V || (F(G), L(J !== R.initialValue), Ae.change(J));
101
101
  });
102
- let X = P({
102
+ let X = se({
103
103
  checked: J,
104
104
  disabled: W,
105
105
  form: m,
@@ -107,18 +107,18 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
107
107
  id: N ? void 0 : q,
108
108
  required: A,
109
109
  ref: ze,
110
- style: G ? l : O,
110
+ style: G ? u : O,
111
111
  tabIndex: -1,
112
112
  type: "checkbox",
113
113
  "aria-hidden": !0,
114
114
  onChange(e) {
115
115
  if (e.nativeEvent.defaultPrevented) return;
116
- if (D) {
116
+ if (E) {
117
117
  e.preventDefault();
118
118
  return;
119
119
  }
120
- let t = e.currentTarget.checked, n = E(te, e.nativeEvent);
121
- if (ne?.(t, n), !n.isCanceled && (Ce?.(t, n), !n.isCanceled && (je(t), K !== void 0 && V !== void 0 && !T && !U))) {
120
+ let t = e.currentTarget.checked, n = D(te, e.nativeEvent);
121
+ if (w?.(t, n), !n.isCanceled && (Ce?.(t, n), !n.isCanceled && (je(t), K !== void 0 && V !== void 0 && !T && !U))) {
122
122
  let e = t ? [...V.value, K] : V.value.filter((e) => e !== K);
123
123
  V.setValue(e, n);
124
124
  }
@@ -142,20 +142,20 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
142
142
  K
143
143
  ]);
144
144
  let Z = Y.useMemo(() => ({
145
- ...ue,
145
+ ...de,
146
146
  checked: Me,
147
147
  disabled: W,
148
- readOnly: D,
148
+ readOnly: E,
149
149
  required: A,
150
150
  indeterminate: Ne
151
151
  }), [
152
- ue,
152
+ de,
153
153
  Me,
154
154
  W,
155
- D,
155
+ E,
156
156
  A,
157
157
  Ne
158
- ]), Ve = qe(Z), He = x("span", e, {
158
+ ]), Ve = qe(Z), He = S("span", e, {
159
159
  state: Z,
160
160
  ref: [
161
161
  ke,
@@ -167,7 +167,7 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
167
167
  id: ye,
168
168
  role: "checkbox",
169
169
  "aria-checked": Ne ? "mixed" : Me,
170
- "aria-readonly": D || void 0,
170
+ "aria-readonly": E || void 0,
171
171
  "aria-required": A || void 0,
172
172
  "aria-labelledby": Be,
173
173
  [Qe]: T ? "" : void 0,
@@ -176,7 +176,7 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
176
176
  },
177
177
  onBlur() {
178
178
  let e = Fe.current;
179
- e && (le(!0), De(!1), de === "onBlur" && Ae.commit(V ? Te : e.checked));
179
+ e && (ue(!0), De(!1), fe === "onBlur" && Ae.commit(V ? Te : e.checked));
180
180
  },
181
181
  onKeyDown(e) {
182
182
  if (e.key !== "Enter" || (e.preventBaseUIHandler(), e.defaultPrevented)) return;
@@ -185,18 +185,18 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
185
185
  o = !0, i.call(e);
186
186
  }, r.preventDefault = () => {
187
187
  o = !0, a.call(r);
188
- }, a.call(r), u(n).queueMicrotask(() => {
188
+ }, a.call(r), d(n).queueMicrotask(() => {
189
189
  e.preventDefault = i, r.preventDefault = a, o || We(t)?.click();
190
190
  });
191
191
  },
192
192
  onClick(e) {
193
- if (D || W) return;
193
+ if (E || W) return;
194
194
  e.preventDefault();
195
195
  let t = Fe.current;
196
- t && h(t, e);
196
+ t && g(t, e);
197
197
  }
198
198
  },
199
- F,
199
+ P,
200
200
  we,
201
201
  Oe,
202
202
  he,
@@ -204,7 +204,7 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
204
204
  ],
205
205
  stateAttributesMapping: Ve
206
206
  }), Ge = He.props.id;
207
- return d(() => {
207
+ return f(() => {
208
208
  if (Pe && !T && K !== void 0 && Ge !== void 0) return Pe(K, Ge);
209
209
  }, [
210
210
  Pe,
@@ -232,11 +232,11 @@ var Qe = "data-parent", $e = /*#__PURE__*/ Y.forwardRef(function(e, t) {
232
232
  process.env.NODE_ENV !== "production" && ($e.displayName = "CheckboxRoot");
233
233
  // ../../node_modules/.pnpm/@base-ui+react@1.9.0_@date-fns+tz@1.5.0_@types+react@19.3.0_date-fns@4.4.0_react-dom@19.3.0_react@19.3.0__react@19.3.0/node_modules/@base-ui/react/checkbox/indicator/CheckboxIndicator.mjs
234
234
  var et = /*#__PURE__*/ Y.forwardRef(function(e, t) {
235
- let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, s = Ze(), c = s.checked || s.indeterminate, { mounted: l, transitionStatus: u, setMounted: d } = j(c), f = Y.useRef(null), p = {
235
+ let { render: n, className: r, style: i, keepMounted: a = !1, ...o } = e, s = Ze(), c = s.checked || s.indeterminate, { mounted: l, transitionStatus: u, setMounted: d } = M(c), f = Y.useRef(null), p = {
236
236
  ...s,
237
237
  transitionStatus: u
238
238
  };
239
- re({
239
+ A({
240
240
  batch: !0,
241
241
  enabled: !c,
242
242
  open: c,
@@ -247,8 +247,8 @@ var et = /*#__PURE__*/ Y.forwardRef(function(e, t) {
247
247
  });
248
248
  let m = {
249
249
  ...qe(s),
250
- ...v
251
- }, h = a || l, g = x("span", e, {
250
+ ...y
251
+ }, h = a || l, g = S("span", e, {
252
252
  ref: [t, f],
253
253
  state: p,
254
254
  stateAttributesMapping: m,
@@ -266,7 +266,7 @@ function it(e) {
266
266
  let t = Z(11), n, r, i;
267
267
  t[0] === e ? (n = t[1], r = t[2], i = t[3]) : ({className: n, variant: i, ...r} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i);
268
268
  let a = rt[i === void 0 ? "default" : i], o;
269
- t[4] !== n || t[5] !== a ? (o = A(tt, a, n), t[4] = n, t[5] = a, t[6] = o) : o = t[6];
269
+ t[4] !== n || t[5] !== a ? (o = j(tt, a, n), t[4] = n, t[5] = a, t[6] = o) : o = t[6];
270
270
  let s;
271
271
  t[7] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q(et, {
272
272
  className: nt,
@@ -315,7 +315,7 @@ function ot(e) {
315
315
  let t = Z(11), { checked: n, variant: r } = e, i = r === void 0 ? "default" : r, a;
316
316
  t[0] === n ? a = t[1] : (a = n ? { "data-checked": "" } : { "data-unchecked": "" }, t[0] = n, t[1] = a);
317
317
  let o = a, s = rt[i], c;
318
- t[2] === s ? c = t[3] : (c = A(tt, s), t[2] = s, t[3] = c);
318
+ t[2] === s ? c = t[3] : (c = j(tt, s), t[2] = s, t[3] = c);
319
319
  let l;
320
320
  t[4] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Q("svg", {
321
321
  className: "size-3.5 text-current sm:size-3",
@@ -358,7 +358,7 @@ function wt(e) {
358
358
  }
359
359
  function Tt(e) {
360
360
  let t = ut.exec(e.trim())?.[1] ?? ft.exec(e.trim())?.[1];
361
- return t === void 0 || !wt(t) ? null : pt.test(t) || M.mediaUrl(t)?.kind === "video" ? {
361
+ return t === void 0 || !wt(t) ? null : pt.test(t) || P.mediaUrl(t)?.kind === "video" ? {
362
362
  url: t,
363
363
  media: "video"
364
364
  } : dt.test(t) ? {
@@ -509,7 +509,7 @@ function Mt(e, t) {
509
509
  }
510
510
  function Nt(e) {
511
511
  if (!e) return null;
512
- let t = M.get(e.provider).referenceAutolinks, n = M.parseChangeRequestUrl(e.url)?.link.repositoryUrl;
512
+ let t = P.get(e.provider).referenceAutolinks, n = P.parseChangeRequestUrl(e.url)?.link.repositoryUrl;
513
513
  return t === void 0 || n === void 0 ? null : (e) => t(e, n);
514
514
  }
515
515
  function Pt(e, t) {
@@ -564,7 +564,7 @@ function Lt(e) {
564
564
  var Rt = [], zt = /* @__PURE__ */ new Map();
565
565
  function Bt(e) {
566
566
  if (e === null) return Rt;
567
- let t = M.parseChangeRequestUrl(e.url)?.link.repositoryUrl;
567
+ let t = P.parseChangeRequestUrl(e.url)?.link.repositoryUrl;
568
568
  if (t === void 0) return Rt;
569
569
  let n = `${e.provider}\u0000${t}`, r = zt.get(n);
570
570
  if (r === void 0) {
@@ -614,14 +614,14 @@ function Gt(e) {
614
614
  let t = Z(11), n, r;
615
615
  t[0] === e ? (n = t[1], r = t[2]) : ({className: n, ...r} = e, t[0] = e, t[1] = n, t[2] = r);
616
616
  let i;
617
- t[3] === n ? i = t[4] : (i = A("flex shrink-0 opacity-0 transition-opacity pointer-coarse:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 focus-within:opacity-100 motion-reduce:transition-none", n), t[3] = n, t[4] = i);
617
+ t[3] === n ? i = t[4] : (i = j("flex shrink-0 opacity-0 transition-opacity pointer-coarse:opacity-100 group-focus-within:opacity-100 group-hover:opacity-100 focus-within:opacity-100 motion-reduce:transition-none", n), t[3] = n, t[4] = i);
618
618
  let a;
619
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q(fe, {
619
+ t[5] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q(pe, {
620
620
  "aria-hidden": !0,
621
621
  className: "size-3"
622
622
  }), t[5] = a) : a = t[5];
623
623
  let o;
624
- t[6] === r ? o = t[7] : (o = /* @__PURE__ */ Q(S, {
624
+ t[6] === r ? o = t[7] : (o = /* @__PURE__ */ Q(C, {
625
625
  ...r,
626
626
  size: "icon-xs",
627
627
  variant: "ghost-muted",
@@ -679,96 +679,96 @@ function en(e, t) {
679
679
  // src/components/pullRequest/PullRequestMarkdown.tsx
680
680
  var tn = Re(null);
681
681
  function nn(e) {
682
- let t = Z(13), { environmentId: n, cwd: r, url: i, fetchUrl: a, repository: o } = e, s = p(), c;
683
- t[0] === o ? c = t[1] : (c = o ? { repository: o } : {}, t[0] = o, t[1] = c);
684
- let l;
685
- t[2] !== r || t[3] !== a || t[4] !== c ? (l = {
686
- _tag: L,
682
+ let t = Z(13), { environmentId: n, cwd: r, url: i, fetchUrl: a, repository: s } = e, c = o(), l;
683
+ t[0] === s ? l = t[1] : (l = s ? { repository: s } : {}, t[0] = s, t[1] = l);
684
+ let u;
685
+ t[2] !== r || t[3] !== a || t[4] !== l ? (u = {
686
+ _tag: I,
687
687
  cwd: r,
688
688
  url: a,
689
- ...c
690
- }, t[2] = r, t[3] = a, t[4] = c, t[5] = l) : l = t[5];
691
- let u = l, d = xe(n, u), f = Se(n, u), m = d._tag === "Success" ? d.url : d._tag === "Failure" ? a : null, h = m === null ? null : m + Te(i), g;
692
- t[6] === s ? g = t[7] : (g = s("Pull request video"), t[6] = s, t[7] = g);
689
+ ...l
690
+ }, t[2] = r, t[3] = a, t[4] = l, t[5] = u) : u = t[5];
691
+ let d = u, f = xe(n, d), p = Se(n, d), m = f._tag === "Success" ? f.url : f._tag === "Failure" ? a : null, h = m === null ? null : m + Te(i), g;
692
+ t[6] === c ? g = t[7] : (g = c("Pull request video"), t[6] = c, t[7] = g);
693
693
  let _;
694
- return t[8] !== f || t[9] !== h || t[10] !== g || t[11] !== i ? (_ = /* @__PURE__ */ Q(we, {
694
+ return t[8] !== p || t[9] !== h || t[10] !== g || t[11] !== i ? (_ = /* @__PURE__ */ Q(we, {
695
695
  src: h,
696
696
  originalUrl: i,
697
697
  label: g,
698
698
  className: "w-full",
699
699
  videoClassName: "rounded-lg border border-border/60",
700
- onRetry: f
701
- }), t[8] = f, t[9] = h, t[10] = g, t[11] = i, t[12] = _) : _ = t[12], _;
700
+ onRetry: p
701
+ }), t[8] = p, t[9] = h, t[10] = g, t[11] = i, t[12] = _) : _ = t[12], _;
702
702
  }
703
703
  function rn(e) {
704
- let t = Z(56), { segment: n, cwd: r, environmentId: i, threadRef: a, lineBreaks: o, onTaskListChange: s } = e, c = p(), l = ze(tn), u = l?.repository ?? void 0;
704
+ let t = Z(56), { segment: n, cwd: r, environmentId: i, threadRef: a, lineBreaks: s, onTaskListChange: c } = e, l = o(), u = ze(tn), d = u?.repository ?? void 0;
705
705
  if (n.kind === "table") {
706
706
  let e;
707
- if (t[0] !== r || t[1] !== i || t[2] !== o || t[3] !== s || t[4] !== n.rows || t[5] !== a) {
708
- let c;
709
- t[7] !== r || t[8] !== i || t[9] !== o || t[10] !== s || t[11] !== a ? (c = (e, t) => /* @__PURE__ */ Q("div", {
707
+ if (t[0] !== r || t[1] !== i || t[2] !== s || t[3] !== c || t[4] !== n.rows || t[5] !== a) {
708
+ let o;
709
+ t[7] !== r || t[8] !== i || t[9] !== s || t[10] !== c || t[11] !== a ? (o = (e, t) => /* @__PURE__ */ Q("div", {
710
710
  className: "grid gap-3",
711
711
  style: { gridTemplateColumns: `repeat(${e.length}, minmax(0, 1fr))` },
712
712
  children: e.map((e, t) => /* @__PURE__ */ Q("div", {
713
- className: A("min-w-0 space-y-3", e.header && "font-medium"),
713
+ className: j("min-w-0 space-y-3", e.header && "font-medium"),
714
714
  children: e.segments.map((e) => /* @__PURE__ */ Q(rn, {
715
715
  segment: e,
716
716
  cwd: r,
717
717
  environmentId: i,
718
718
  threadRef: a,
719
- lineBreaks: o,
720
- onTaskListChange: s
719
+ lineBreaks: s,
720
+ onTaskListChange: c
721
721
  }, e.id))
722
722
  }, t))
723
- }, t), t[7] = r, t[8] = i, t[9] = o, t[10] = s, t[11] = a, t[12] = c) : c = t[12], e = n.rows.map(c), t[0] = r, t[1] = i, t[2] = o, t[3] = s, t[4] = n.rows, t[5] = a, t[6] = e;
723
+ }, t), t[7] = r, t[8] = i, t[9] = s, t[10] = c, t[11] = a, t[12] = o) : o = t[12], e = n.rows.map(o), t[0] = r, t[1] = i, t[2] = s, t[3] = c, t[4] = n.rows, t[5] = a, t[6] = e;
724
724
  } else e = t[6];
725
- let c;
726
- return t[13] === e ? c = t[14] : (c = /* @__PURE__ */ Q("div", {
725
+ let o;
726
+ return t[13] === e ? o = t[14] : (o = /* @__PURE__ */ Q("div", {
727
727
  className: "space-y-3",
728
728
  children: e
729
- }), t[13] = e, t[14] = c), c;
729
+ }), t[13] = e, t[14] = o), o;
730
730
  }
731
731
  if (n.kind === "markdown" || n.media === "image") {
732
- let e = n.kind === "markdown" ? n.text : `![](<${n.url}>)`, c = a ?? Ce, d;
733
- t[15] === l ? d = t[16] : (d = l ? { extraRemarkPlugins: l.remarkPlugins } : {}, t[15] = l, t[16] = d);
732
+ let e = n.kind === "markdown" ? n.text : `![](<${n.url}>)`, o = a ?? Ce, l;
733
+ t[15] === u ? l = t[16] : (l = u ? { extraRemarkPlugins: u.remarkPlugins } : {}, t[15] = u, t[16] = l);
734
734
  let f;
735
- t[17] !== s || t[18] !== n.kind || t[19] !== n.sourceOffset ? (f = s && n.kind === "markdown" ? (e) => {
735
+ t[17] !== c || t[18] !== n.kind || t[19] !== n.sourceOffset ? (f = c && n.kind === "markdown" ? (e) => {
736
736
  let { markerOffset: t, checked: r } = e;
737
- return s({
737
+ return c({
738
738
  markerOffset: n.sourceOffset + t,
739
739
  checked: r
740
740
  });
741
- } : void 0, t[17] = s, t[18] = n.kind, t[19] = n.sourceOffset, t[20] = f) : f = t[20];
741
+ } : void 0, t[17] = c, t[18] = n.kind, t[19] = n.sourceOffset, t[20] = f) : f = t[20];
742
742
  let p;
743
- return t[21] !== r || t[22] !== i || t[23] !== o || t[24] !== u || t[25] !== e || t[26] !== c || t[27] !== d || t[28] !== f || t[29] !== a ? (p = /* @__PURE__ */ Q(W, {
743
+ return t[21] !== r || t[22] !== i || t[23] !== s || t[24] !== d || t[25] !== e || t[26] !== o || t[27] !== l || t[28] !== f || t[29] !== a ? (p = /* @__PURE__ */ Q(W, {
744
744
  text: e,
745
745
  cwd: r,
746
746
  threadRef: a,
747
- pullRequestPanelRef: c,
747
+ pullRequestPanelRef: o,
748
748
  environmentId: i,
749
- ...d,
750
- lineBreaks: o,
749
+ ...l,
750
+ lineBreaks: s,
751
751
  sourceControlMedia: !0,
752
- sourceControlMediaRepository: u,
752
+ sourceControlMediaRepository: d,
753
753
  onTaskListChange: f
754
- }), t[21] = r, t[22] = i, t[23] = o, t[24] = u, t[25] = e, t[26] = c, t[27] = d, t[28] = f, t[29] = a, t[30] = p) : p = t[30], p;
754
+ }), t[21] = r, t[22] = i, t[23] = s, t[24] = d, t[25] = e, t[26] = o, t[27] = l, t[28] = f, t[29] = a, t[30] = p) : p = t[30], p;
755
755
  }
756
- let d;
757
- t[31] === n.url ? d = t[32] : (d = M.mediaUrl(n.url), t[31] = n.url, t[32] = d);
758
- let f = d;
759
- if (n.media === "video" && f !== null) {
756
+ let f;
757
+ t[31] === n.url ? f = t[32] : (f = P.mediaUrl(n.url), t[31] = n.url, t[32] = f);
758
+ let p = f;
759
+ if (n.media === "video" && p !== null) {
760
760
  let e = `${n.id}:${n.url}`, a;
761
- return t[33] !== r || t[34] !== i || t[35] !== f.fetchUrl || t[36] !== u || t[37] !== n.url || t[38] !== e ? (a = /* @__PURE__ */ Q(nn, {
761
+ return t[33] !== r || t[34] !== i || t[35] !== p.fetchUrl || t[36] !== d || t[37] !== n.url || t[38] !== e ? (a = /* @__PURE__ */ Q(nn, {
762
762
  environmentId: i,
763
763
  cwd: r,
764
764
  url: n.url,
765
- fetchUrl: f.fetchUrl,
766
- repository: u
767
- }, e), t[33] = r, t[34] = i, t[35] = f.fetchUrl, t[36] = u, t[37] = n.url, t[38] = e, t[39] = a) : a = t[39], a;
765
+ fetchUrl: p.fetchUrl,
766
+ repository: d
767
+ }, e), t[33] = r, t[34] = i, t[35] = p.fetchUrl, t[36] = d, t[37] = n.url, t[38] = e, t[39] = a) : a = t[39], a;
768
768
  }
769
769
  if (n.media === "video") {
770
770
  let e = `${n.id}:${n.url}`, r = n.url, i = n.url, a;
771
- t[40] === c ? a = t[41] : (a = c("Pull request video"), t[40] = c, t[41] = a);
771
+ t[40] === l ? a = t[41] : (a = l("Pull request video"), t[40] = l, t[41] = a);
772
772
  let o;
773
773
  return t[42] !== n.url || t[43] !== e || t[44] !== a ? (o = /* @__PURE__ */ Q(we, {
774
774
  src: r,
@@ -779,23 +779,23 @@ function rn(e) {
779
779
  }, e), t[42] = n.url, t[43] = e, t[44] = a, t[45] = o) : o = t[45], o;
780
780
  }
781
781
  let m;
782
- t[46] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ Q(z, {
782
+ t[46] === Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ Q(R, {
783
783
  "aria-hidden": !0,
784
784
  className: "size-3.5 shrink-0 text-muted-foreground"
785
785
  }), t[46] = m) : m = t[46];
786
786
  let h;
787
- t[47] !== f?.definition.label || t[48] !== n.url ? (h = f?.definition.label ?? new URL(n.url).hostname, t[47] = f?.definition.label, t[48] = n.url, t[49] = h) : h = t[49];
787
+ t[47] !== p?.definition.label || t[48] !== n.url ? (h = p?.definition.label ?? new URL(n.url).hostname, t[47] = p?.definition.label, t[48] = n.url, t[49] = h) : h = t[49];
788
788
  let g;
789
789
  t[50] === h ? g = t[51] : (g = /* @__PURE__ */ Q("span", {
790
790
  className: "min-w-0 flex-1 truncate",
791
- children: /* @__PURE__ */ $(F, { children: [
791
+ children: /* @__PURE__ */ $(b, { children: [
792
792
  "Open attachment on",
793
793
  " ",
794
- /* @__PURE__ */ Q(y, { children: h })
794
+ /* @__PURE__ */ Q(oe, { children: h })
795
795
  ] })
796
796
  }), t[50] = h, t[51] = g);
797
797
  let _;
798
- t[52] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ Q(R, {
798
+ t[52] === Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ Q(L, {
799
799
  "aria-hidden": !0,
800
800
  className: "size-3 shrink-0 text-muted-foreground"
801
801
  }), t[52] = _) : _ = t[52];
@@ -814,7 +814,7 @@ function rn(e) {
814
814
  }
815
815
  function an(e) {
816
816
  let t = Z(12), { text: n, cwd: r, environmentId: i, threadRef: a, lineBreaks: o, className: s, onTaskListChange: c } = e, l = jt(n), u = ze(tn), d = a ?? u?.threadRef ?? void 0, f;
817
- t[0] === s ? f = t[1] : (f = A("space-y-3 [&_[data-markdown-details]]:border-0 [&_[data-markdown-details-summary]]:text-foreground/80 [&_[data-markdown-details-summary]>svg]:text-muted-foreground/60", s), t[0] = s, t[1] = f);
817
+ t[0] === s ? f = t[1] : (f = j("space-y-3 [&_[data-markdown-details]]:border-0 [&_[data-markdown-details-summary]]:text-foreground/80 [&_[data-markdown-details-summary]>svg]:text-muted-foreground/60", s), t[0] = s, t[1] = f);
818
818
  let p;
819
819
  t[2] !== u?.lineBreaks || t[3] !== r || t[4] !== i || t[5] !== o || t[6] !== c || t[7] !== d ? (p = (e) => /* @__PURE__ */ Q(rn, {
820
820
  segment: e,
@@ -833,111 +833,111 @@ function an(e) {
833
833
  }
834
834
  // src/components/pullRequest/PullRequestMarkdownEditor.tsx
835
835
  function on(n) {
836
- let r = Z(60), { value: i, cwd: a, environmentId: o, completionScope: s, threadRef: c, placeholder: l, label: u, saving: d, allowEmpty: f, className: m, onSave: h, onCancel: g } = n, _ = c === void 0 ? null : c, v = f !== void 0 && f, y = p(), b = e(o, se), [x, ee] = X(i), [te, C] = X(!1), [w, ne] = X(i);
837
- w !== i && (ne(i), ee(i));
838
- let T;
839
- r[0] === x ? T = r[1] : (T = x.trim(), r[0] = x, r[1] = T);
840
- let E = T.length === 0, D = !b || d || E && !v, O;
841
- r[2] === m ? O = r[3] : (O = A("space-y-2", m), r[2] = m, r[3] = O);
836
+ let r = Z(60), { value: i, cwd: a, environmentId: s, completionScope: c, threadRef: l, placeholder: u, label: d, saving: f, allowEmpty: p, className: m, onSave: h, onCancel: g } = n, _ = l === void 0 ? null : l, v = p !== void 0 && p, y = o(), x = e(s, ce), [S, ee] = X(i), [te, ne] = X(!1), [w, T] = X(i);
837
+ w !== i && (T(i), ee(i));
838
+ let E;
839
+ r[0] === S ? E = r[1] : (E = S.trim(), r[0] = S, r[1] = E);
840
+ let D = E.length === 0, re = !x || f || D && !v, O;
841
+ r[2] === m ? O = r[3] : (O = j("space-y-2", m), r[2] = m, r[3] = O);
842
842
  let k;
843
- r[4] !== x || r[5] !== o || r[6] !== g || r[7] !== h || r[8] !== D || r[9] !== d ? (k = (e) => {
844
- e.nativeEvent.isComposing || e.keyCode === 229 || (e.key === "Enter" && (e.metaKey || e.ctrlKey) && !e.shiftKey && !e.altKey ? (e.preventDefault(), e.stopPropagation(), !D && !e.repeat && t(o, "source-control:write") && h(x)) : e.key !== "Escape" || d || (e.preventDefault(), g()));
845
- }, r[4] = x, r[5] = o, r[6] = g, r[7] = h, r[8] = D, r[9] = d, r[10] = k) : k = r[10];
846
- let re;
847
- r[11] === y ? re = r[12] : (re = y("Markdown editor mode"), r[11] = y, r[12] = re);
848
- let j = te ? "preview" : "write", M;
849
- r[13] === j ? M = r[14] : (M = [j], r[13] = j, r[14] = M);
850
- let N;
851
- r[15] === Symbol.for("react.memo_cache_sentinel") ? (N = (e) => {
852
- let t = e[0];
853
- (t === "write" || t === "preview") && C(t === "preview");
854
- }, r[15] = N) : N = r[15];
843
+ r[4] !== S || r[5] !== s || r[6] !== g || r[7] !== h || r[8] !== re || r[9] !== f ? (k = (e) => {
844
+ e.nativeEvent.isComposing || e.keyCode === 229 || (e.key === "Enter" && (e.metaKey || e.ctrlKey) && !e.shiftKey && !e.altKey ? (e.preventDefault(), e.stopPropagation(), !re && !e.repeat && t(s, "source-control:write") && h(S)) : e.key !== "Escape" || f || (e.preventDefault(), g()));
845
+ }, r[4] = S, r[5] = s, r[6] = g, r[7] = h, r[8] = re, r[9] = f, r[10] = k) : k = r[10];
846
+ let A;
847
+ r[11] === y ? A = r[12] : (A = y("Markdown editor mode"), r[11] = y, r[12] = A);
848
+ let M = te ? "preview" : "write", N;
849
+ r[13] === M ? N = r[14] : (N = [M], r[13] = M, r[14] = N);
855
850
  let ie;
856
- r[16] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ Q(Pe, {
851
+ r[15] === Symbol.for("react.memo_cache_sentinel") ? (ie = (e) => {
852
+ let t = e[0];
853
+ (t === "write" || t === "preview") && ne(t === "preview");
854
+ }, r[15] = ie) : ie = r[15];
855
+ let ae;
856
+ r[16] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ Q(Pe, {
857
857
  value: "write",
858
- children: /* @__PURE__ */ Q(F, {
858
+ children: /* @__PURE__ */ Q(b, {
859
859
  context: "verb, markdown editor mode",
860
860
  children: "Write"
861
861
  })
862
- }), r[16] = ie) : ie = r[16];
863
- let ae;
864
- r[17] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ Q(Pe, {
862
+ }), r[16] = ae) : ae = r[16];
863
+ let oe;
864
+ r[17] === Symbol.for("react.memo_cache_sentinel") ? (oe = /* @__PURE__ */ Q(Pe, {
865
865
  value: "preview",
866
- children: /* @__PURE__ */ Q(F, {
866
+ children: /* @__PURE__ */ Q(b, {
867
867
  context: "markdown editor mode",
868
868
  children: "Preview"
869
869
  })
870
- }), r[17] = ae) : ae = r[17];
871
- let oe;
872
- r[18] !== d || r[19] !== re || r[20] !== M ? (oe = /* @__PURE__ */ $(Ne, {
873
- "aria-label": re,
870
+ }), r[17] = oe) : oe = r[17];
871
+ let se;
872
+ r[18] !== f || r[19] !== A || r[20] !== N ? (se = /* @__PURE__ */ $(Ne, {
873
+ "aria-label": A,
874
874
  variant: "segmented",
875
- value: M,
876
- disabled: d,
877
- onValueChange: N,
878
- children: [ie, ae]
879
- }), r[18] = d, r[19] = re, r[20] = M, r[21] = oe) : oe = r[21];
875
+ value: N,
876
+ disabled: f,
877
+ onValueChange: ie,
878
+ children: [ae, oe]
879
+ }), r[18] = f, r[19] = A, r[20] = N, r[21] = se) : se = r[21];
880
880
  let P;
881
- r[22] !== s || r[23] !== a || r[24] !== x || r[25] !== E || r[26] !== o || r[27] !== u || r[28] !== l || r[29] !== te || r[30] !== d || r[31] !== _ ? (P = te ? /* @__PURE__ */ Q("div", {
881
+ r[22] !== c || r[23] !== a || r[24] !== S || r[25] !== D || r[26] !== s || r[27] !== d || r[28] !== u || r[29] !== te || r[30] !== f || r[31] !== _ ? (P = te ? /* @__PURE__ */ Q("div", {
882
882
  className: "rounded-lg border border-border/60 px-3 py-2",
883
- children: E ? /* @__PURE__ */ Q("p", {
883
+ children: D ? /* @__PURE__ */ Q("p", {
884
884
  className: "text-xs text-muted-foreground",
885
- children: /* @__PURE__ */ Q(F, { children: "Nothing to preview." })
885
+ children: /* @__PURE__ */ Q(b, { children: "Nothing to preview." })
886
886
  }) : /* @__PURE__ */ Q(an, {
887
- text: x,
887
+ text: S,
888
888
  cwd: a,
889
- environmentId: o,
889
+ environmentId: s,
890
890
  threadRef: _
891
891
  })
892
892
  }) : /* @__PURE__ */ Q(Ie, {
893
893
  autoFocus: !0,
894
- disabled: d,
895
- completionScope: s,
896
- value: x,
894
+ disabled: f,
895
+ completionScope: c,
896
+ value: S,
897
897
  rows: 6,
898
- placeholder: l,
899
- "aria-label": u,
898
+ placeholder: u,
899
+ "aria-label": d,
900
900
  onValueChange: ee
901
- }), r[22] = s, r[23] = a, r[24] = x, r[25] = E, r[26] = o, r[27] = u, r[28] = l, r[29] = te, r[30] = d, r[31] = _, r[32] = P) : P = r[32];
901
+ }), r[22] = c, r[23] = a, r[24] = S, r[25] = D, r[26] = s, r[27] = d, r[28] = u, r[29] = te, r[30] = f, r[31] = _, r[32] = P) : P = r[32];
902
+ let F;
903
+ r[33] === Symbol.for("react.memo_cache_sentinel") ? (F = /* @__PURE__ */ Q(b, { children: "Cancel" }), r[33] = F) : F = r[33];
902
904
  let I;
903
- r[33] === Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ Q(F, { children: "Cancel" }), r[33] = I) : I = r[33];
904
- let L;
905
- r[34] !== g || r[35] !== d ? (L = /* @__PURE__ */ Q(S, {
905
+ r[34] !== g || r[35] !== f ? (I = /* @__PURE__ */ Q(C, {
906
906
  size: "xs",
907
907
  variant: "ghost",
908
- disabled: d,
908
+ disabled: f,
909
909
  onClick: g,
910
- children: I
911
- }), r[34] = g, r[35] = d, r[36] = L) : L = r[36];
912
- let R = !b || d || E && !v, ce;
913
- r[37] !== v || r[38] !== x || r[39] !== E || r[40] !== o || r[41] !== h || r[42] !== d ? (ce = () => {
914
- !t(o, "source-control:write") || d || E && !v || h(x);
915
- }, r[37] = v, r[38] = x, r[39] = E, r[40] = o, r[41] = h, r[42] = d, r[43] = ce) : ce = r[43];
916
- let le;
917
- r[44] !== y || r[45] !== d ? (le = y(d ? "Saving..." : "Save"), r[44] = y, r[45] = d, r[46] = le) : le = r[46];
910
+ children: F
911
+ }), r[34] = g, r[35] = f, r[36] = I) : I = r[36];
912
+ let L = !x || f || D && !v, le;
913
+ r[37] !== v || r[38] !== S || r[39] !== D || r[40] !== s || r[41] !== h || r[42] !== f ? (le = () => {
914
+ !t(s, "source-control:write") || f || D && !v || h(S);
915
+ }, r[37] = v, r[38] = S, r[39] = D, r[40] = s, r[41] = h, r[42] = f, r[43] = le) : le = r[43];
918
916
  let ue;
919
- r[47] !== R || r[48] !== ce || r[49] !== le ? (ue = /* @__PURE__ */ Q(S, {
917
+ r[44] !== y || r[45] !== f ? (ue = y(f ? "Saving..." : "Save"), r[44] = y, r[45] = f, r[46] = ue) : ue = r[46];
918
+ let de;
919
+ r[47] !== L || r[48] !== le || r[49] !== ue ? (de = /* @__PURE__ */ Q(C, {
920
920
  size: "xs",
921
921
  variant: "outline",
922
- disabled: R,
923
- onClick: ce,
924
- children: le
925
- }), r[47] = R, r[48] = ce, r[49] = le, r[50] = ue) : ue = r[50];
926
- let de;
927
- r[51] !== L || r[52] !== ue ? (de = /* @__PURE__ */ $("div", {
922
+ disabled: L,
923
+ onClick: le,
924
+ children: ue
925
+ }), r[47] = L, r[48] = le, r[49] = ue, r[50] = de) : de = r[50];
926
+ let fe;
927
+ r[51] !== I || r[52] !== de ? (fe = /* @__PURE__ */ $("div", {
928
928
  className: "flex justify-end gap-2",
929
- children: [L, ue]
930
- }), r[51] = L, r[52] = ue, r[53] = de) : de = r[53];
931
- let z;
932
- return r[54] !== oe || r[55] !== P || r[56] !== de || r[57] !== O || r[58] !== k ? (z = /* @__PURE__ */ $("div", {
929
+ children: [I, de]
930
+ }), r[51] = I, r[52] = de, r[53] = fe) : fe = r[53];
931
+ let R;
932
+ return r[54] !== se || r[55] !== P || r[56] !== fe || r[57] !== O || r[58] !== k ? (R = /* @__PURE__ */ $("div", {
933
933
  className: O,
934
934
  onKeyDown: k,
935
935
  children: [
936
- oe,
936
+ se,
937
937
  P,
938
- de
938
+ fe
939
939
  ]
940
- }), r[54] = oe, r[55] = P, r[56] = de, r[57] = O, r[58] = k, r[59] = z) : z = r[59], z;
940
+ }), r[54] = se, r[55] = P, r[56] = fe, r[57] = O, r[58] = k, r[59] = R) : R = r[59], R;
941
941
  }
942
942
  // ../../packages/client-runtime/src/listFormat.ts
943
943
  function sn(e, t, r = i) {
@@ -1048,7 +1048,7 @@ function yn(e, t) {
1048
1048
  // src/components/pullRequest/PullRequestReactions.tsx
1049
1049
  var bn = "inline-flex h-6 shrink-0 items-center gap-1 rounded-full border px-2 text-xs outline-none transition-colors focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", xn = /* @__PURE__ */ new Map();
1050
1050
  function Sn(e) {
1051
- let t = Z(21), { reactions: i, canReact: a, onReact: s, className: c } = e, l = p(), u = oe(), d = o(), [f, m] = X(!1), h;
1051
+ let t = Z(21), { reactions: i, canReact: a, onReact: s, className: c } = e, l = o(), u = m(), d = N(), [f, p] = X(!1), h;
1052
1052
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (h = {
1053
1053
  signature: "",
1054
1054
  values: xn
@@ -1057,7 +1057,7 @@ function Sn(e) {
1057
1057
  if (t[1] !== a || t[2] !== c || t[3] !== l || t[4] !== d || t[5] !== u || t[6] !== s || t[7] !== g.signature || t[8] !== g.values || t[9] !== f || t[10] !== i) {
1058
1058
  x = Symbol.for("react.early_return_sentinel");
1059
1059
  bb0: {
1060
- let e = vn(i), o = g.signature === e ? g.values : xn, p = yn(i, o), h = async (t, i) => {
1060
+ let e = vn(i), o = g.signature === e ? g.values : xn, m = yn(i, o), h = async (t, i) => {
1061
1061
  let a = { reacted: i };
1062
1062
  _({
1063
1063
  signature: e,
@@ -1074,11 +1074,11 @@ function Sn(e) {
1074
1074
  title: r(n("The reaction could not be saved"))
1075
1075
  }));
1076
1076
  };
1077
- if (p.length === 0 && !a) {
1077
+ if (m.length === 0 && !a) {
1078
1078
  x = null;
1079
1079
  break bb0;
1080
1080
  }
1081
- t[15] === c ? v = t[16] : (v = A("flex min-w-0 max-w-full flex-wrap items-center gap-1", c), t[15] = c, t[16] = v), y = p.map((e) => /* @__PURE__ */ $(ne, { children: [/* @__PURE__ */ $(I, {
1081
+ t[15] === c ? v = t[16] : (v = j("flex min-w-0 max-w-full flex-wrap items-center gap-1", c), t[15] = c, t[16] = v), y = m.map((e) => /* @__PURE__ */ $(T, { children: [/* @__PURE__ */ $(F, {
1082
1082
  render: /* @__PURE__ */ Q("button", {
1083
1083
  type: "button",
1084
1084
  "aria-pressed": e.viewerHasReacted,
@@ -1088,7 +1088,7 @@ function Sn(e) {
1088
1088
  $context: "reaction button: reaction name and how many people used it"
1089
1089
  }),
1090
1090
  disabled: !a,
1091
- className: A(bn, e.viewerHasReacted ? "border-primary/60 bg-primary/10 text-foreground" : "border-border/70 bg-muted/40 text-muted-foreground", a ? "hover:border-primary/60" : "cursor-default"),
1091
+ className: j(bn, e.viewerHasReacted ? "border-primary/60 bg-primary/10 text-foreground" : "border-border/70 bg-muted/40 text-muted-foreground", a ? "hover:border-primary/60" : "cursor-default"),
1092
1092
  onClick: () => void h(e.content, !e.viewerHasReacted)
1093
1093
  }),
1094
1094
  children: [/* @__PURE__ */ Q("span", {
@@ -1103,14 +1103,14 @@ function Sn(e) {
1103
1103
  children: _n(e, u, d)
1104
1104
  })] }, e.content)), b = a ? /* @__PURE__ */ $(q, {
1105
1105
  open: f,
1106
- onOpenChange: m,
1106
+ onOpenChange: p,
1107
1107
  children: [/* @__PURE__ */ Q(_e, {
1108
1108
  render: /* @__PURE__ */ Q("button", {
1109
1109
  type: "button",
1110
1110
  "aria-label": l("Add a reaction"),
1111
- className: A(bn, "border-border/70 px-1.5 text-muted-foreground hover:border-primary/60 hover:text-foreground")
1111
+ className: j(bn, "border-border/70 px-1.5 text-muted-foreground hover:border-primary/60 hover:text-foreground")
1112
1112
  }),
1113
- children: /* @__PURE__ */ Q(B, {
1113
+ children: /* @__PURE__ */ Q(z, {
1114
1114
  "aria-hidden": !0,
1115
1115
  className: "size-3.5"
1116
1116
  })
@@ -1121,14 +1121,14 @@ function Sn(e) {
1121
1121
  children: /* @__PURE__ */ Q("div", {
1122
1122
  className: "flex items-center gap-0.5",
1123
1123
  children: ln.map((e) => {
1124
- let t = p.find((t) => t.content === e)?.viewerHasReacted ?? !1;
1124
+ let t = m.find((t) => t.content === e)?.viewerHasReacted ?? !1;
1125
1125
  return /* @__PURE__ */ Q("button", {
1126
1126
  type: "button",
1127
1127
  "aria-pressed": t,
1128
1128
  "aria-label": pn(e, u),
1129
- className: A("flex size-7 items-center justify-center rounded-md text-base outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", t && "bg-primary/10"),
1129
+ className: j("flex size-7 items-center justify-center rounded-md text-base outline-none hover:bg-accent focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring", t && "bg-primary/10"),
1130
1130
  onClick: () => {
1131
- m(!1), h(e, !t);
1131
+ p(!1), h(e, !t);
1132
1132
  },
1133
1133
  children: /* @__PURE__ */ Q("span", {
1134
1134
  "aria-hidden": !0,
@@ -1313,78 +1313,78 @@ function Ln(e) {
1313
1313
  }
1314
1314
  }
1315
1315
  function Rn(e) {
1316
- let t = Z(14), { comment: n, onRemove: r } = e, i = p(), a;
1317
- t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = A(Pn, "border-dashed"), t[0] = a) : a = t[0];
1318
- let o, s;
1319
- t[1] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q(pe, { className: "size-3.5" }), s = /* @__PURE__ */ Q("span", { children: /* @__PURE__ */ Q(F, { children: "Pending. Sent when you submit the review" }) }), t[1] = o, t[2] = s) : (o = t[1], s = t[2]);
1320
- let c;
1321
- t[3] === i ? c = t[4] : (c = i("Discard this comment"), t[3] = i, t[4] = c);
1316
+ let t = Z(14), { comment: n, onRemove: r } = e, i = o(), a;
1317
+ t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = j(Pn, "border-dashed"), t[0] = a) : a = t[0];
1318
+ let s, c;
1319
+ t[1] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q(B, { className: "size-3.5" }), c = /* @__PURE__ */ Q("span", { children: /* @__PURE__ */ Q(b, { children: "Pending. Sent when you submit the review" }) }), t[1] = s, t[2] = c) : (s = t[1], c = t[2]);
1322
1320
  let l;
1323
- t[5] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Q(me, { className: "size-3.5" }), t[5] = l) : l = t[5];
1321
+ t[3] === i ? l = t[4] : (l = i("Discard this comment"), t[3] = i, t[4] = l);
1324
1322
  let u;
1325
- t[6] !== r || t[7] !== c ? (u = /* @__PURE__ */ $("div", {
1323
+ t[5] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ Q(me, { className: "size-3.5" }), t[5] = u) : u = t[5];
1324
+ let d;
1325
+ t[6] !== r || t[7] !== l ? (d = /* @__PURE__ */ $("div", {
1326
1326
  className: "flex items-center gap-2 text-xs text-muted-foreground",
1327
1327
  children: [
1328
- o,
1329
1328
  s,
1330
- /* @__PURE__ */ Q(S, {
1329
+ c,
1330
+ /* @__PURE__ */ Q(C, {
1331
1331
  size: "icon-xs",
1332
1332
  variant: "ghost",
1333
1333
  className: "ml-auto",
1334
- "aria-label": c,
1334
+ "aria-label": l,
1335
1335
  onClick: r,
1336
- children: l
1336
+ children: u
1337
1337
  })
1338
1338
  ]
1339
- }), t[6] = r, t[7] = c, t[8] = u) : u = t[8];
1340
- let d;
1341
- t[9] === n.body ? d = t[10] : (d = /* @__PURE__ */ Q("p", {
1339
+ }), t[6] = r, t[7] = l, t[8] = d) : d = t[8];
1340
+ let f;
1341
+ t[9] === n.body ? f = t[10] : (f = /* @__PURE__ */ Q("p", {
1342
1342
  className: "mt-2 whitespace-pre-wrap leading-relaxed",
1343
1343
  children: n.body
1344
- }), t[9] = n.body, t[10] = d);
1345
- let f;
1346
- return t[11] !== u || t[12] !== d ? (f = /* @__PURE__ */ $("div", {
1344
+ }), t[9] = n.body, t[10] = f);
1345
+ let p;
1346
+ return t[11] !== d || t[12] !== f ? (p = /* @__PURE__ */ $("div", {
1347
1347
  className: a,
1348
1348
  contentEditable: !1,
1349
1349
  onPointerDown: zn,
1350
- children: [u, d]
1351
- }), t[11] = u, t[12] = d, t[13] = f) : f = t[13], f;
1350
+ children: [d, f]
1351
+ }), t[11] = d, t[12] = f, t[13] = p) : p = t[13], p;
1352
1352
  }
1353
1353
  function zn(e) {
1354
1354
  return e.stopPropagation();
1355
1355
  }
1356
1356
  function Bn(e) {
1357
- let t = Z(31), { threads: n, renderThread: r } = e, i = p(), [a, o] = X(Jn), s;
1357
+ let t = Z(31), { threads: n, renderThread: r } = e, i = o(), [a, s] = X(Jn), c;
1358
1358
  if (t[0] !== a || t[1] !== n) {
1359
- s = n.filter(qn);
1359
+ c = n.filter(qn);
1360
1360
  let e;
1361
- t[3] === a ? e = t[4] : (e = (e) => !a.has(e.id), t[3] = a, t[4] = e), s.some(e) && o(/* @__PURE__ */ new Set([...a, ...s.map(Kn)])), t[0] = a, t[1] = n, t[2] = s;
1362
- } else s = t[2];
1363
- let c, l, u, d;
1361
+ t[3] === a ? e = t[4] : (e = (e) => !a.has(e.id), t[3] = a, t[4] = e), c.some(e) && s(/* @__PURE__ */ new Set([...a, ...c.map(Kn)])), t[0] = a, t[1] = n, t[2] = c;
1362
+ } else c = t[2];
1363
+ let l, u, d, f;
1364
1364
  if (t[5] !== i || t[6] !== a || t[7] !== n) {
1365
- u = n.filter(Gn);
1365
+ d = n.filter(Gn);
1366
1366
  let e;
1367
- t[12] === a ? e = t[13] : (e = (e) => a.has(e.id), t[12] = a, t[13] = e), l = u.every(e), c = /* @__PURE__ */ new Map();
1368
- for (let e of u.flatMap(Wn)) c.set(e.author?.login ?? "ghost", e.author);
1369
- c.size === 0 && c.set("ghost", null), d = i("{count, plural, =1 {Resolved conversation} other {{count} resolved conversations}}", { count: u.length }), t[5] = i, t[6] = a, t[7] = n, t[8] = c, t[9] = l, t[10] = u, t[11] = d;
1370
- } else c = t[8], l = t[9], u = t[10], d = t[11];
1371
- let f = d, m;
1372
- t[14] !== c || t[15] !== l || t[16] !== f || t[17] !== s || t[18] !== u.length || t[19] !== n ? (m = u.length > 0 ? /* @__PURE__ */ $(ne, { children: [/* @__PURE__ */ Q(I, {
1367
+ t[12] === a ? e = t[13] : (e = (e) => a.has(e.id), t[12] = a, t[13] = e), u = d.every(e), l = /* @__PURE__ */ new Map();
1368
+ for (let e of d.flatMap(Wn)) l.set(e.author?.login ?? "ghost", e.author);
1369
+ l.size === 0 && l.set("ghost", null), f = i("{count, plural, =1 {Resolved conversation} other {{count} resolved conversations}}", { count: d.length }), t[5] = i, t[6] = a, t[7] = n, t[8] = l, t[9] = u, t[10] = d, t[11] = f;
1370
+ } else l = t[8], u = t[9], d = t[10], f = t[11];
1371
+ let p = f, m;
1372
+ t[14] !== l || t[15] !== u || t[16] !== p || t[17] !== c || t[18] !== d.length || t[19] !== n ? (m = d.length > 0 ? /* @__PURE__ */ $(T, { children: [/* @__PURE__ */ Q(F, {
1373
1373
  render: /* @__PURE__ */ Q("button", {
1374
1374
  type: "button",
1375
1375
  "data-resolved-threads": !0,
1376
- "aria-label": f,
1377
- "aria-expanded": l,
1376
+ "aria-label": p,
1377
+ "aria-expanded": u,
1378
1378
  className: "absolute right-3 bottom-full flex h-[var(--diffs-line-height,20px)] cursor-pointer items-center -space-x-1 rounded-full outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset",
1379
1379
  contentEditable: !1,
1380
1380
  onPointerDown: Un,
1381
- onClick: () => o(new Set((l ? s : n).map(Hn)))
1381
+ onClick: () => s(new Set((u ? c : n).map(Hn)))
1382
1382
  }),
1383
- children: [...c].slice(0, 3).map(Vn)
1383
+ children: [...l].slice(0, 3).map(Vn)
1384
1384
  }), /* @__PURE__ */ Q(w, {
1385
1385
  side: "left",
1386
- children: f
1387
- })] }) : null, t[14] = c, t[15] = l, t[16] = f, t[17] = s, t[18] = u.length, t[19] = n, t[20] = m) : m = t[20];
1386
+ children: p
1387
+ })] }) : null, t[14] = l, t[15] = u, t[16] = p, t[17] = c, t[18] = d.length, t[19] = n, t[20] = m) : m = t[20];
1388
1388
  let h;
1389
1389
  if (t[21] !== r || t[22] !== a || t[23] !== n) {
1390
1390
  let e;
@@ -1422,97 +1422,97 @@ function Jn() {
1422
1422
  return /* @__PURE__ */ new Set();
1423
1423
  }
1424
1424
  function Yn(e) {
1425
- let t = Z(107), { thread: n, workspaceRoot: r, canReply: i, canResolve: a, canReact: o, environmentId: s, reference: c, completionScope: l, pending: u, fixPending: d, fixLabel: f, onFix: h, onAddToChat: g, onReply: _, onLoadMore: v, canEditComment: y, onEditComment: b, onToggleResolved: x, onReacted: ee, hidden: te } = e, C = p(), [w, ne] = X(te !== void 0 || !n.isResolved), [T, E] = X(!1), [D, O] = X(""), [k, re] = X(null), [j, M] = X(!1), ie = Be(!1), ae = Be(null), [oe, P] = X(null), [I, se] = X(!1), L = oe?.threadId === n.id ? oe : null, R, z, B, fe, pe, me, he, V, H, U, W, G, K, ge, _e;
1426
- if (t[0] !== L || t[1] !== w || t[2] !== f || t[3] !== d || t[4] !== C || t[5] !== te || t[6] !== I || t[7] !== g || t[8] !== b || t[9] !== h || t[10] !== v || t[11] !== _ || t[12] !== u || t[13] !== j || t[14] !== n) {
1425
+ let t = Z(107), { thread: n, workspaceRoot: r, canReply: i, canResolve: a, canReact: s, environmentId: l, reference: u, completionScope: d, pending: f, fixPending: p, fixLabel: m, onFix: g, onAddToChat: _, onReply: v, onLoadMore: y, canEditComment: x, onEditComment: S, onToggleResolved: ee, onReacted: te, hidden: ne } = e, w = o(), [T, E] = X(ne !== void 0 || !n.isResolved), [D, re] = X(!1), [O, k] = X(""), [A, M] = X(null), [N, ie] = X(!1), ae = Be(!1), oe = Be(null), [se, P] = X(null), [F, ce] = X(!1), I = se?.threadId === n.id ? se : null, L, R, z, pe, B, me, he, V, H, U, W, G, K, ge, _e;
1426
+ if (t[0] !== I || t[1] !== T || t[2] !== m || t[3] !== p || t[4] !== w || t[5] !== ne || t[6] !== F || t[7] !== _ || t[8] !== S || t[9] !== g || t[10] !== y || t[11] !== v || t[12] !== f || t[13] !== N || t[14] !== n) {
1427
1427
  he = Symbol.for("react.early_return_sentinel");
1428
1428
  bb0: {
1429
1429
  let e;
1430
- t[30] === L?.comments ? e = t[31] : (e = L?.comments ?? [], t[30] = L?.comments, t[31] = e), R = Ae(n.comments, e), B = L === null ? n.nextCommentsCursor ?? null : L.nextCursor;
1431
- let r = n.commentCount ?? R.length, i;
1432
- t[32] !== b || t[33] !== j || t[34] !== n.id ? (i = async (e, t) => {
1433
- if (j) return;
1434
- M(!0);
1435
- let r = await b(e, t);
1436
- M(!1), r && (P((r) => r?.threadId === n.id ? {
1430
+ t[30] === I?.comments ? e = t[31] : (e = I?.comments ?? [], t[30] = I?.comments, t[31] = e), L = Ae(n.comments, e), z = I === null ? n.nextCommentsCursor ?? null : I.nextCursor;
1431
+ let r = n.commentCount ?? L.length, i;
1432
+ t[32] !== S || t[33] !== N || t[34] !== n.id ? (i = async (e, t) => {
1433
+ if (N) return;
1434
+ ie(!0);
1435
+ let r = await S(e, t);
1436
+ ie(!1), r && (P((r) => r?.threadId === n.id ? {
1437
1437
  ...r,
1438
1438
  comments: De(r.comments, e, t)
1439
- } : r), re(null));
1440
- }, t[32] = b, t[33] = j, t[34] = n.id, t[35] = i) : i = t[35], fe = i;
1439
+ } : r), M(null));
1440
+ }, t[32] = S, t[33] = N, t[34] = n.id, t[35] = i) : i = t[35], pe = i;
1441
1441
  let a;
1442
- t[36] !== _ || t[37] !== u || t[38] !== n.id || t[39] !== n.nextCommentsCursor ? (a = async (e) => {
1442
+ t[36] !== v || t[37] !== f || t[38] !== n.id || t[39] !== n.nextCommentsCursor ? (a = async (e) => {
1443
1443
  let t = e.trim();
1444
- if (t.length === 0 || u || ie.current) return;
1445
- ie.current = !0;
1446
- let r = await N(() => _(t));
1447
- if (ie.current = !1, r._tag === "Failure") throw m(r);
1444
+ if (t.length === 0 || f || ae.current) return;
1445
+ ae.current = !0;
1446
+ let r = await h(() => v(t));
1447
+ if (ae.current = !1, r._tag === "Failure") throw c(r);
1448
1448
  r.value && (P((e) => e?.threadId === n.id ? {
1449
1449
  ...e,
1450
1450
  nextCursor: e.nextCursor ?? n.nextCommentsCursor ?? null
1451
- } : e), O(""), E(!1));
1452
- }, t[36] = _, t[37] = u, t[38] = n.id, t[39] = n.nextCommentsCursor, t[40] = a) : a = t[40], pe = a;
1451
+ } : e), k(""), re(!1));
1452
+ }, t[36] = v, t[37] = f, t[38] = n.id, t[39] = n.nextCommentsCursor, t[40] = a) : a = t[40], B = a;
1453
1453
  let o;
1454
- if (t[41] !== I || t[42] !== B || t[43] !== v || t[44] !== n.id ? (o = async () => {
1455
- if (B === null || I) return;
1456
- se(!0);
1457
- let e = await N(() => v(B));
1458
- if (se(!1), e._tag === "Failure") throw m(e);
1454
+ if (t[41] !== F || t[42] !== z || t[43] !== y || t[44] !== n.id ? (o = async () => {
1455
+ if (z === null || F) return;
1456
+ ce(!0);
1457
+ let e = await h(() => y(z));
1458
+ if (ce(!1), e._tag === "Failure") throw c(e);
1459
1459
  let t = e.value;
1460
1460
  t !== null && P((e) => ({
1461
1461
  threadId: n.id,
1462
1462
  comments: Ae(e?.threadId === n.id ? e.comments : [], t.comments),
1463
1463
  nextCursor: t.nextCursor
1464
1464
  }));
1465
- }, t[41] = I, t[42] = B, t[43] = v, t[44] = n.id, t[45] = o) : o = t[45], z = o, te) {
1465
+ }, t[41] = F, t[42] = z, t[43] = y, t[44] = n.id, t[45] = o) : o = t[45], R = o, ne) {
1466
1466
  he = null;
1467
1467
  break bb0;
1468
1468
  }
1469
- let s = !w && "py-1";
1470
- t[46] === s ? K = t[47] : (K = A(Pn, s), t[46] = s, t[47] = K), ge = !1, _e = Qn, me = "flex flex-wrap items-center gap-2 text-xs text-muted-foreground", t[48] === n.isResolved ? V = t[49] : (V = n.isResolved ? /* @__PURE__ */ Q(ce, { className: "size-3.5 text-success-foreground" }) : /* @__PURE__ */ Q(de, { className: "size-3.5" }), t[48] = n.isResolved, t[49] = V);
1471
- let c;
1472
- t[50] === Symbol.for("react.memo_cache_sentinel") ? (c = () => ne(Zn), t[50] = c) : c = t[50];
1469
+ let s = !T && "py-1";
1470
+ t[46] === s ? K = t[47] : (K = j(Pn, s), t[46] = s, t[47] = K), ge = !1, _e = Qn, me = "flex flex-wrap items-center gap-2 text-xs text-muted-foreground", t[48] === n.isResolved ? V = t[49] : (V = n.isResolved ? /* @__PURE__ */ Q(le, { className: "size-3.5 text-success-foreground" }) : /* @__PURE__ */ Q(fe, { className: "size-3.5" }), t[48] = n.isResolved, t[49] = V);
1473
1471
  let l;
1474
- t[51] !== C || t[52] !== n.isResolved ? (l = n.isResolved ? C("Resolved", { $context: "review thread state" }) : C("Open", { $context: "review thread state" }), t[51] = C, t[52] = n.isResolved, t[53] = l) : l = t[53], H = /* @__PURE__ */ $("button", {
1472
+ t[50] === Symbol.for("react.memo_cache_sentinel") ? (l = () => E(Zn), t[50] = l) : l = t[50];
1473
+ let u;
1474
+ t[51] !== w || t[52] !== n.isResolved ? (u = n.isResolved ? w("Resolved", { $context: "review thread state" }) : w("Open", { $context: "review thread state" }), t[51] = w, t[52] = n.isResolved, t[53] = u) : u = t[53], H = /* @__PURE__ */ $("button", {
1475
1475
  type: "button",
1476
1476
  className: "hover:text-foreground",
1477
- "aria-expanded": w,
1478
- onClick: c,
1477
+ "aria-expanded": T,
1478
+ onClick: l,
1479
1479
  children: [
1480
- l,
1480
+ u,
1481
1481
  " ",
1482
1482
  "·",
1483
1483
  " ",
1484
- C("{count, plural, one {{count} comment} other {{count} comments}}", { count: r })
1484
+ w("{count, plural, one {{count} comment} other {{count} comments}}", { count: r })
1485
1485
  ]
1486
- }), t[54] === n.isOutdated ? U = t[55] : (U = n.isOutdated ? /* @__PURE__ */ Q("span", { children: "outdated" }) : null, t[54] = n.isOutdated, t[55] = U), t[56] !== f || t[57] !== d || t[58] !== C || t[59] !== h || t[60] !== u ? (W = h ? /* @__PURE__ */ $(S, {
1486
+ }), t[54] === n.isOutdated ? U = t[55] : (U = n.isOutdated ? /* @__PURE__ */ Q("span", { children: "outdated" }) : null, t[54] = n.isOutdated, t[55] = U), t[56] !== m || t[57] !== p || t[58] !== w || t[59] !== g || t[60] !== f ? (W = g ? /* @__PURE__ */ $(C, {
1487
1487
  size: "compact",
1488
1488
  variant: "ghost",
1489
1489
  className: "ml-auto",
1490
- disabled: u || d,
1491
- onClick: h,
1492
- children: [/* @__PURE__ */ Q(le, { className: "size-3" }), d ? C("Preparing...") : f ?? C("Fix in a thread")]
1493
- }) : null, t[56] = f, t[57] = d, t[58] = C, t[59] = h, t[60] = u, t[61] = W) : W = t[61], G = g && R.some(Xn) ? /* @__PURE__ */ $(S, {
1490
+ disabled: f || p,
1491
+ onClick: g,
1492
+ children: [/* @__PURE__ */ Q(ue, { className: "size-3" }), p ? w("Preparing...") : m ?? w("Fix in a thread")]
1493
+ }) : null, t[56] = m, t[57] = p, t[58] = w, t[59] = g, t[60] = f, t[61] = W) : W = t[61], G = _ && L.some(Xn) ? /* @__PURE__ */ $(C, {
1494
1494
  size: "compact",
1495
1495
  variant: "ghost",
1496
- className: h ? void 0 : "ml-auto",
1497
- onClick: () => g({
1496
+ className: g ? void 0 : "ml-auto",
1497
+ onClick: () => _({
1498
1498
  ...n,
1499
- comments: R
1499
+ comments: L
1500
1500
  }),
1501
- children: [/* @__PURE__ */ Q(ue, { className: "size-3" }), /* @__PURE__ */ Q(F, { children: "Add to chat" })]
1501
+ children: [/* @__PURE__ */ Q(de, { className: "size-3" }), /* @__PURE__ */ Q(b, { children: "Add to chat" })]
1502
1502
  }) : null;
1503
1503
  }
1504
- t[0] = L, t[1] = w, t[2] = f, t[3] = d, t[4] = C, t[5] = te, t[6] = I, t[7] = g, t[8] = b, t[9] = h, t[10] = v, t[11] = _, t[12] = u, t[13] = j, t[14] = n, t[15] = R, t[16] = z, t[17] = B, t[18] = fe, t[19] = pe, t[20] = me, t[21] = he, t[22] = V, t[23] = H, t[24] = U, t[25] = W, t[26] = G, t[27] = K, t[28] = ge, t[29] = _e;
1505
- } else R = t[15], z = t[16], B = t[17], fe = t[18], pe = t[19], me = t[20], he = t[21], V = t[22], H = t[23], U = t[24], W = t[25], G = t[26], K = t[27], ge = t[28], _e = t[29];
1504
+ t[0] = I, t[1] = T, t[2] = m, t[3] = p, t[4] = w, t[5] = ne, t[6] = F, t[7] = _, t[8] = S, t[9] = g, t[10] = y, t[11] = v, t[12] = f, t[13] = N, t[14] = n, t[15] = L, t[16] = R, t[17] = z, t[18] = pe, t[19] = B, t[20] = me, t[21] = he, t[22] = V, t[23] = H, t[24] = U, t[25] = W, t[26] = G, t[27] = K, t[28] = ge, t[29] = _e;
1505
+ } else L = t[15], R = t[16], z = t[17], pe = t[18], B = t[19], me = t[20], he = t[21], V = t[22], H = t[23], U = t[24], W = t[25], G = t[26], K = t[27], ge = t[28], _e = t[29];
1506
1506
  if (he !== Symbol.for("react.early_return_sentinel")) return he;
1507
1507
  let q;
1508
- t[62] !== a || t[63] !== C || t[64] !== g || t[65] !== h || t[66] !== x || t[67] !== u || t[68] !== n.isResolved ? (q = a ? /* @__PURE__ */ Q(S, {
1508
+ t[62] !== a || t[63] !== w || t[64] !== _ || t[65] !== g || t[66] !== ee || t[67] !== f || t[68] !== n.isResolved ? (q = a ? /* @__PURE__ */ Q(C, {
1509
1509
  size: "compact",
1510
1510
  variant: "ghost",
1511
- className: h || g ? void 0 : "ml-auto",
1512
- disabled: u,
1513
- onClick: x,
1514
- children: n.isResolved ? C("Unresolve") : C("Resolve")
1515
- }) : null, t[62] = a, t[63] = C, t[64] = g, t[65] = h, t[66] = x, t[67] = u, t[68] = n.isResolved, t[69] = q) : q = t[69];
1511
+ className: g || _ ? void 0 : "ml-auto",
1512
+ disabled: f,
1513
+ onClick: ee,
1514
+ children: n.isResolved ? w("Unresolve") : w("Resolve")
1515
+ }) : null, t[62] = a, t[63] = w, t[64] = _, t[65] = g, t[66] = ee, t[67] = f, t[68] = n.isResolved, t[69] = q) : q = t[69];
1516
1516
  let ve;
1517
1517
  t[70] !== me || t[71] !== q || t[72] !== V || t[73] !== H || t[74] !== U || t[75] !== W || t[76] !== G ? (ve = /* @__PURE__ */ $("div", {
1518
1518
  className: me,
@@ -1526,10 +1526,10 @@ function Yn(e) {
1526
1526
  ]
1527
1527
  }), t[70] = me, t[71] = q, t[72] = V, t[73] = H, t[74] = U, t[75] = W, t[76] = G, t[77] = ve) : ve = t[77];
1528
1528
  let ye;
1529
- t[78] !== y || t[79] !== o || t[80] !== i || t[81] !== R || t[82] !== l || t[83] !== k || t[84] !== s || t[85] !== w || t[86] !== C || t[87] !== z || t[88] !== I || t[89] !== B || t[90] !== ee || t[91] !== u || t[92] !== c || t[93] !== D || t[94] !== T || t[95] !== fe || t[96] !== j || t[97] !== pe || t[98] !== n.id || t[99] !== r ? (ye = w ? /* @__PURE__ */ $(Ve, { children: [
1529
+ t[78] !== x || t[79] !== s || t[80] !== i || t[81] !== L || t[82] !== d || t[83] !== A || t[84] !== l || t[85] !== T || t[86] !== w || t[87] !== R || t[88] !== F || t[89] !== z || t[90] !== te || t[91] !== f || t[92] !== u || t[93] !== O || t[94] !== D || t[95] !== pe || t[96] !== N || t[97] !== B || t[98] !== n.id || t[99] !== r ? (ye = T ? /* @__PURE__ */ $(Ve, { children: [
1530
1530
  /* @__PURE__ */ Q("div", {
1531
1531
  className: "mt-2 space-y-3",
1532
- children: R.map((e) => /* @__PURE__ */ $("article", {
1532
+ children: L.map((e) => /* @__PURE__ */ $("article", {
1533
1533
  className: "group min-w-0",
1534
1534
  children: [/* @__PURE__ */ $("div", {
1535
1535
  className: "flex flex-wrap items-center gap-2 text-xs text-muted-foreground",
@@ -1539,97 +1539,97 @@ function Yn(e) {
1539
1539
  /* @__PURE__ */ Q(Cn, {
1540
1540
  className: "ml-auto justify-end",
1541
1541
  reactions: e.reactions ?? [],
1542
- canReact: o,
1542
+ canReact: s,
1543
1543
  subjectId: e.id,
1544
- environmentId: s,
1545
- reference: c,
1546
- onRefresh: ee
1544
+ environmentId: l,
1545
+ reference: u,
1546
+ onRefresh: te
1547
1547
  })
1548
1548
  ]
1549
- }), k === e.id ? /* @__PURE__ */ Q(on, {
1549
+ }), A === e.id ? /* @__PURE__ */ Q(on, {
1550
1550
  className: "mt-1",
1551
1551
  value: e.body,
1552
1552
  cwd: r,
1553
- environmentId: s,
1554
- completionScope: l,
1555
- label: C("Edit comment"),
1556
- saving: j,
1557
- onSave: (t) => void fe(e.id, t),
1558
- onCancel: () => re(null)
1553
+ environmentId: l,
1554
+ completionScope: d,
1555
+ label: w("Edit comment"),
1556
+ saving: N,
1557
+ onSave: (t) => void pe(e.id, t),
1558
+ onCancel: () => M(null)
1559
1559
  }) : /* @__PURE__ */ $("div", {
1560
1560
  className: "mt-1 flex items-start gap-1",
1561
1561
  children: [/* @__PURE__ */ Q(an, {
1562
1562
  className: "min-w-0 flex-1 text-sm",
1563
1563
  text: e.body,
1564
1564
  cwd: r,
1565
- environmentId: s
1566
- }), y(e) ? /* @__PURE__ */ Q(Gt, {
1567
- "aria-label": C("Edit comment"),
1568
- onClick: () => re(e.id)
1565
+ environmentId: l
1566
+ }), x(e) ? /* @__PURE__ */ Q(Gt, {
1567
+ "aria-label": w("Edit comment"),
1568
+ onClick: () => M(e.id)
1569
1569
  }) : null]
1570
1570
  })]
1571
1571
  }, e.id))
1572
1572
  }),
1573
- B === null ? null : /* @__PURE__ */ Q("div", {
1573
+ z === null ? null : /* @__PURE__ */ Q("div", {
1574
1574
  className: "mt-2",
1575
- children: /* @__PURE__ */ Q(S, {
1575
+ children: /* @__PURE__ */ Q(C, {
1576
1576
  size: "xs",
1577
1577
  variant: "ghost",
1578
- disabled: I,
1579
- onClick: () => void z(),
1580
- children: C(I ? "Loading..." : "Load more comments")
1578
+ disabled: F,
1579
+ onClick: () => void R(),
1580
+ children: w(F ? "Loading..." : "Load more comments")
1581
1581
  })
1582
1582
  }),
1583
- i ? T ? /* @__PURE__ */ Q(Me, {
1584
- environmentId: s,
1585
- projectId: c.projectId,
1583
+ i ? D ? /* @__PURE__ */ Q(Me, {
1584
+ environmentId: l,
1585
+ projectId: u.projectId,
1586
1586
  ownerKey: JSON.stringify([
1587
1587
  "pr-reply",
1588
- s,
1589
- c,
1588
+ l,
1589
+ u,
1590
1590
  n.id
1591
1591
  ]),
1592
- text: D,
1593
- textareaRef: ae,
1594
- onTextChange: O,
1595
- disabled: u,
1592
+ text: O,
1593
+ textareaRef: oe,
1594
+ onTextChange: k,
1595
+ disabled: f,
1596
1596
  children: (e) => /* @__PURE__ */ $("div", {
1597
1597
  className: "mt-2",
1598
1598
  children: [/* @__PURE__ */ Q(Ie, {
1599
- ref: ae,
1599
+ ref: oe,
1600
1600
  readOnly: e.freezesEditor,
1601
1601
  autoFocus: !0,
1602
1602
  size: "sm",
1603
- completionScope: l,
1604
- value: D,
1605
- placeholder: C("Reply", { $context: "noun, placeholder" }),
1606
- "aria-label": C("Reply to this conversation"),
1607
- onValueChange: O,
1603
+ completionScope: d,
1604
+ value: O,
1605
+ placeholder: w("Reply", { $context: "noun, placeholder" }),
1606
+ "aria-label": w("Reply to this conversation"),
1607
+ onValueChange: k,
1608
1608
  onKeyDown: Fn({
1609
- value: D,
1610
- pending: u,
1609
+ value: O,
1610
+ pending: f,
1611
1611
  allowEmpty: e.blocksSubmission,
1612
- onSubmit: () => e.submitAfterDictation((e) => void pe(e)),
1613
- onCancel: () => e.state.phase === "idle" ? E(!1) : e.cancel()
1612
+ onSubmit: () => e.submitAfterDictation((e) => void B(e)),
1613
+ onCancel: () => e.state.phase === "idle" ? re(!1) : e.cancel()
1614
1614
  })
1615
1615
  }), /* @__PURE__ */ $("div", {
1616
1616
  className: "mt-2 flex flex-wrap items-center justify-end gap-2",
1617
1617
  children: [
1618
1618
  /* @__PURE__ */ Q(ke, {
1619
1619
  speech: e,
1620
- disabled: u
1620
+ disabled: f
1621
1621
  }),
1622
- /* @__PURE__ */ Q(S, {
1622
+ /* @__PURE__ */ Q(C, {
1623
1623
  size: "xs",
1624
1624
  variant: "ghost",
1625
- onClick: () => E(!1),
1626
- children: /* @__PURE__ */ Q(F, { children: "Cancel" })
1625
+ onClick: () => re(!1),
1626
+ children: /* @__PURE__ */ Q(b, { children: "Cancel" })
1627
1627
  }),
1628
- /* @__PURE__ */ Q(S, {
1628
+ /* @__PURE__ */ Q(C, {
1629
1629
  size: "xs",
1630
- disabled: e.preparing || u || !e.blocksSubmission && D.trim().length === 0,
1631
- onClick: () => e.submitAfterDictation((e) => void pe(e)),
1632
- children: /* @__PURE__ */ Q(F, {
1630
+ disabled: e.preparing || f || !e.blocksSubmission && O.trim().length === 0,
1631
+ onClick: () => e.submitAfterDictation((e) => void B(e)),
1632
+ children: /* @__PURE__ */ Q(b, {
1633
1633
  context: "verb, button",
1634
1634
  children: "Reply"
1635
1635
  })
@@ -1637,17 +1637,17 @@ function Yn(e) {
1637
1637
  ]
1638
1638
  })]
1639
1639
  })
1640
- }) : /* @__PURE__ */ Q(S, {
1640
+ }) : /* @__PURE__ */ Q(C, {
1641
1641
  size: "xs",
1642
1642
  variant: "ghost",
1643
1643
  className: "mt-2",
1644
- onClick: () => E(!0),
1645
- children: /* @__PURE__ */ Q(F, {
1644
+ onClick: () => re(!0),
1645
+ children: /* @__PURE__ */ Q(b, {
1646
1646
  context: "verb, button",
1647
1647
  children: "Reply"
1648
1648
  })
1649
1649
  }) : null
1650
- ] }) : null, t[78] = y, t[79] = o, t[80] = i, t[81] = R, t[82] = l, t[83] = k, t[84] = s, t[85] = w, t[86] = C, t[87] = z, t[88] = I, t[89] = B, t[90] = ee, t[91] = u, t[92] = c, t[93] = D, t[94] = T, t[95] = fe, t[96] = j, t[97] = pe, t[98] = n.id, t[99] = r, t[100] = ye) : ye = t[100];
1650
+ ] }) : null, t[78] = x, t[79] = s, t[80] = i, t[81] = L, t[82] = d, t[83] = A, t[84] = l, t[85] = T, t[86] = w, t[87] = R, t[88] = F, t[89] = z, t[90] = te, t[91] = f, t[92] = u, t[93] = O, t[94] = D, t[95] = pe, t[96] = N, t[97] = B, t[98] = n.id, t[99] = r, t[100] = ye) : ye = t[100];
1651
1651
  let be;
1652
1652
  return t[101] !== ve || t[102] !== ye || t[103] !== K || t[104] !== ge || t[105] !== _e ? (be = /* @__PURE__ */ $("div", {
1653
1653
  className: K,