@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,4 +1,4 @@
1
- import { S_ as e, t, y_ as n } from "./utils-515nQ17G.js";
1
+ import { C_ as e, b_ as t, t as n } from "./utils-DtKQl-D3.js";
2
2
  import { useId as r, useRef as i, useState as a } from "react";
3
3
  import { c as o } from "react/compiler-runtime";
4
4
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
@@ -108,11 +108,11 @@ function p(a) {
108
108
  let E = T, D;
109
109
  l[6] !== y || l[7] !== u ? (D = y("{label} saturation and brightness", { label: u }), l[6] = y, l[7] = u, l[8] = D) : D = l[8];
110
110
  let O = v === "edge" ? "h-36 rounded-none" : "h-32 rounded-lg", k;
111
- l[9] !== g || l[10] !== O ? (k = t("relative cursor-crosshair touch-none overflow-hidden bg-[linear-gradient(to_top,#000,transparent),linear-gradient(to_right,#fff,transparent)] has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-inset has-[:focus-visible]:ring-ring has-[:focus-visible]:ring-offset-2 has-[:focus-visible]:ring-offset-popover", O, g), l[9] = g, l[10] = O, l[11] = k) : k = l[11];
111
+ l[9] !== g || l[10] !== O ? (k = n("relative cursor-crosshair touch-none overflow-hidden bg-[linear-gradient(to_top,#000,transparent),linear-gradient(to_right,#fff,transparent)] has-[:focus-visible]:ring-2 has-[:focus-visible]:ring-inset has-[:focus-visible]:ring-ring has-[:focus-visible]:ring-offset-2 has-[:focus-visible]:ring-offset-popover", O, g), l[9] = g, l[10] = O, l[11] = k) : k = l[11];
112
112
  let A = `hsl(${p.h} 100% 50%)`, j;
113
113
  l[12] === A ? j = l[13] : (j = { backgroundColor: A }, l[12] = A, l[13] = j);
114
114
  let M;
115
- l[14] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ s(n, { children: "Use arrow keys to adjust the focused value. Hold Shift for larger steps. Use Home and End for the minimum and maximum. Press Tab to move between saturation and brightness." }), l[14] = M) : M = l[14];
115
+ l[14] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ s(t, { children: "Use arrow keys to adjust the focused value. Hold Shift for larger steps. Use Home and End for the minimum and maximum. Press Tab to move between saturation and brightness." }), l[14] = M) : M = l[14];
116
116
  let N;
117
117
  l[15] === b ? N = l[16] : (N = /* @__PURE__ */ s("span", {
118
118
  id: b,
@@ -193,13 +193,13 @@ function p(a) {
193
193
  }), l[48] = C, l[49] = N, l[50] = H, l[51] = G, l[52] = D, l[53] = k, l[54] = j, l[55] = K) : K = l[55], K;
194
194
  }
195
195
  function m(e) {
196
- let n = o(21), { label: r, value: i, onChange: a, onInteractionEnd: l, className: u } = e, p;
197
- n[0] === a ? p = n[1] : (p = (e) => {
196
+ let t = o(21), { label: r, value: i, onChange: a, onInteractionEnd: l, className: u } = e, p;
197
+ t[0] === a ? p = t[1] : (p = (e) => {
198
198
  let t = e.currentTarget.getBoundingClientRect();
199
199
  t.width && a(d((e.clientX - t.left) / t.width) * 360);
200
- }, n[0] = a, n[1] = p);
200
+ }, t[0] = a, t[1] = p);
201
201
  let { handlers: m, thumbTransition: h } = f(p, l), g;
202
- n[2] !== a || n[3] !== i ? (g = (e) => {
202
+ t[2] !== a || t[3] !== i ? (g = (e) => {
203
203
  if (e.key === "Home" || e.key === "End") {
204
204
  e.preventDefault(), a(e.key === "Home" ? 0 : 360);
205
205
  return;
@@ -213,27 +213,27 @@ function m(e) {
213
213
  e.preventDefault();
214
214
  let t = e.shiftKey ? 10 : 1, n = e.key === "ArrowRight" || e.key === "ArrowUp" ? 1 : -1;
215
215
  a((i + n * t + 360) % 360);
216
- }, n[2] = a, n[3] = i, n[4] = g) : g = n[4];
216
+ }, t[2] = a, t[3] = i, t[4] = g) : g = t[4];
217
217
  let _ = g, v;
218
- n[5] === i ? v = n[6] : (v = Math.round(i), n[5] = i, n[6] = v);
218
+ t[5] === i ? v = t[6] : (v = Math.round(i), t[5] = i, t[6] = v);
219
219
  let y;
220
- n[7] === u ? y = n[8] : (y = t("relative flex h-6 cursor-pointer touch-none items-center rounded-full outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-popover", u), n[7] = u, n[8] = y);
220
+ t[7] === u ? y = t[8] : (y = n("relative flex h-6 cursor-pointer touch-none items-center rounded-full outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-popover", u), t[7] = u, t[8] = y);
221
221
  let b;
222
- n[9] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ s("span", {
222
+ t[9] === Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ s("span", {
223
223
  "aria-hidden": !0,
224
224
  className: "h-2.5 w-full rounded-full bg-[linear-gradient(to_right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)] shadow-[inset_0_0_0_1px_rgb(0_0_0_/_12%)]"
225
- }), n[9] = b) : b = n[9];
225
+ }), t[9] = b) : b = t[9];
226
226
  let x = `calc(${i / 360} * (100% - 1rem) + 0.5rem)`, S = `hsl(${i} 100% 50%)`, C;
227
- n[10] !== x || n[11] !== S || n[12] !== h ? (C = /* @__PURE__ */ s("span", {
227
+ t[10] !== x || t[11] !== S || t[12] !== h ? (C = /* @__PURE__ */ s("span", {
228
228
  className: "pointer-events-none absolute top-1/2 size-4 -translate-x-1/2 -translate-y-1/2 rounded-full border-2 border-white shadow-[0_0_0_1px_rgb(0_0_0/0.4)]",
229
229
  style: {
230
230
  left: x,
231
231
  backgroundColor: S,
232
232
  transition: h
233
233
  }
234
- }), n[10] = x, n[11] = S, n[12] = h, n[13] = C) : C = n[13];
234
+ }), t[10] = x, t[11] = S, t[12] = h, t[13] = C) : C = t[13];
235
235
  let w;
236
- return n[14] !== _ || n[15] !== m || n[16] !== r || n[17] !== v || n[18] !== y || n[19] !== C ? (w = /* @__PURE__ */ c("div", {
236
+ return t[14] !== _ || t[15] !== m || t[16] !== r || t[17] !== v || t[18] !== y || t[19] !== C ? (w = /* @__PURE__ */ c("div", {
237
237
  "aria-label": r,
238
238
  "aria-valuemax": 360,
239
239
  "aria-valuemin": 0,
@@ -244,6 +244,6 @@ function m(e) {
244
244
  onKeyDown: _,
245
245
  ...m,
246
246
  children: [b, C]
247
- }), n[14] = _, n[15] = m, n[16] = r, n[17] = v, n[18] = y, n[19] = C, n[20] = w) : w = n[20], w;
247
+ }), t[14] = _, t[15] = m, t[16] = r, t[17] = v, t[18] = y, t[19] = C, t[20] = w) : w = t[20], w;
248
248
  }
249
249
  export { u as i, p as n, l as r, m as t };
package/dist/core.js CHANGED
@@ -1 +1 @@
1
- export { r as DevChatList, i as DevHome, d as DevProvider, t as DevPublish, s as DevStart, c as DevThreadList, o as DevWorkspace, l as focusComposer, u as focusThreadList, a as useDevOpen, n as useReplyModels } from "./embed-c030vUqM.js";
1
+ export { r as DevChatList, i as DevHome, d as DevProvider, t as DevPublish, s as DevStart, c as DevThreadList, o as DevWorkspace, l as focusComposer, u as focusThreadList, a as useDevOpen, n as useReplyModels } from "./embed-CPWZKyIW.js";
@@ -1,6 +1,6 @@
1
1
  import { c as e, n as t } from "./messages-yqmY7G5x.js";
2
- import { n } from "./previewFailureMessages-BKpsSGX5.js";
3
- import { t as r } from "./readBinaryPreview-BAQ4fFjm.js";
2
+ import { n } from "./previewFailureMessages-CFguipaK.js";
3
+ import { t as r } from "./readBinaryPreview-CjZdBNVR.js";
4
4
  // src/components/files/decodeImagePreview.ts
5
5
  async function i(i, a, o) {
6
6
  let s = new Worker(new URL(
@@ -1,4 +1,4 @@
1
- import { Kc as e } from "./utils-515nQ17G.js";
1
+ import { Kc as e } from "./utils-DtKQl-D3.js";
2
2
  // ../../packages/shared/src/delimitedPreview.ts
3
3
  function t(t) {
4
4
  let n = t.mimeType?.split(";", 1)[0]?.trim().toLowerCase();
@@ -1,6 +1,6 @@
1
- import { Bo as e, Di as t, Ea as n, Hi as r, Ii as i, Na as a, Oo as o, S_ as s, Sa as c, Ta as l, Wo as u, _a as d, _s as f, aa as p, ba as m, bs as h, ca as g, ci as _, cs as v, da as y, di as b, fa as x, ga as S, go as C, ha as w, ia as T, ja as E, ks as D, la as O, mo as k, no as A, ra as j, sa as M, so as N, ss as P, t as F, to as I, ua as L, us as ee, va as te, wa as ne, wi as re, wo as ie, wr as ae, xa as oe, ya as se, yi as ce } from "./utils-515nQ17G.js";
1
+ import { Bo as e, C_ as t, Di as n, Ea as r, Hi as i, Ii as a, Na as o, Oo as s, Sa as c, Ta as l, Wo as u, _a as d, _s as f, aa as p, ba as m, bs as h, ca as g, ci as _, cs as v, da as y, di as b, fa as x, ga as S, go as C, ha as w, ia as T, ja as E, ks as D, la as O, mo as k, no as A, ra as j, sa as M, so as N, ss as P, t as F, to as I, ua as L, us as ee, va as te, wa as ne, wi as re, wo as ie, wr as ae, xa as oe, ya as se, yi as ce } from "./utils-DtKQl-D3.js";
2
2
  import { t as le } from "./x-Bjr9Dwvl.js";
3
- import { t as ue } from "./scroll-area-ChvX8uOh.js";
3
+ import { t as ue } from "./scroll-area-CEoyjC7h.js";
4
4
  import * as R from "react";
5
5
  import { createContext as de, use as fe, useRef as pe, useState as me } from "react";
6
6
  import { c as z } from "react/compiler-runtime";
@@ -80,7 +80,7 @@ var ge = "--nested-dialogs", _e = "data-nested-dialog-open", ve = {
80
80
  return e ? { [_e]: "" } : null;
81
81
  }
82
82
  }, J = /*#__PURE__*/ R.forwardRef(function(e, t) {
83
- let { render: i, className: a, style: o, finalFocus: s, initialFocus: c, ...l } = e, u = U(), d = u.useState("descriptionElementId"), f = u.useState("disablePointerDismissal"), p = u.useState("floatingRootContext"), m = u.useState("popupProps"), g = u.useState("modal"), _ = u.useState("mounted"), v = u.useState("nested"), b = u.useState("nestedOpenDialogCount"), x = u.useState("open"), S = u.useState("openMethod"), C = u.useState("titleElementId"), T = u.useState("transitionStatus"), E = u.useState("role"), D = p.useState("floatingId");
83
+ let { render: n, className: a, style: o, finalFocus: s, initialFocus: c, ...l } = e, u = U(), d = u.useState("descriptionElementId"), f = u.useState("disablePointerDismissal"), p = u.useState("floatingRootContext"), m = u.useState("popupProps"), g = u.useState("modal"), _ = u.useState("mounted"), v = u.useState("nested"), b = u.useState("nestedOpenDialogCount"), x = u.useState("open"), S = u.useState("openMethod"), C = u.useState("titleElementId"), T = u.useState("transitionStatus"), E = u.useState("role"), D = p.useState("floatingId");
84
84
  he(), N({
85
85
  open: x,
86
86
  ref: u.context.popupRef,
@@ -105,7 +105,7 @@ var ge = "--nested-dialogs", _e = "data-nested-dialog-open", ve = {
105
105
  ...y,
106
106
  hidden: !_,
107
107
  onKeyDown(e) {
108
- r.has(e.key) && e.stopPropagation();
108
+ i.has(e.key) && e.stopPropagation();
109
109
  },
110
110
  style: { [ge]: b }
111
111
  },
@@ -118,7 +118,7 @@ var ge = "--nested-dialogs", _e = "data-nested-dialog-open", ve = {
118
118
  ],
119
119
  stateAttributesMapping: ve
120
120
  });
121
- return /*#__PURE__*/ B(n, {
121
+ return /*#__PURE__*/ B(r, {
122
122
  context: p,
123
123
  openInteractionType: S,
124
124
  disabled: !_,
@@ -132,16 +132,16 @@ var ge = "--nested-dialogs", _e = "data-nested-dialog-open", ve = {
132
132
  });
133
133
  process.env.NODE_ENV !== "production" && (J.displayName = "DialogPopup");
134
134
  // ../../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/dialog/portal/DialogPortal.mjs
135
- var Y = /*#__PURE__*/ R.forwardRef(function(e, n) {
136
- let { keepMounted: r = !1, ...a } = e, o = U(), s = o.useState("mounted"), c = o.useState("modal"), l = o.useState("open");
135
+ var Y = /*#__PURE__*/ R.forwardRef(function(e, t) {
136
+ let { keepMounted: r = !1, ...i } = e, o = U(), s = o.useState("mounted"), c = o.useState("modal"), l = o.useState("open");
137
137
  return s || r ? /*#__PURE__*/ B(q.Provider, {
138
138
  value: r,
139
139
  children: /*#__PURE__*/ V(E, {
140
- ref: n,
141
- ...a,
142
- children: [s && c === !0 && /*#__PURE__*/ B(t, {
140
+ ref: t,
141
+ ...i,
142
+ children: [s && c === !0 && /*#__PURE__*/ B(n, {
143
143
  ref: o.context.internalBackdropRef,
144
- inert: i(!l)
144
+ inert: a(!l)
145
145
  }), e.children]
146
146
  })
147
147
  }) : null;
@@ -149,10 +149,10 @@ var Y = /*#__PURE__*/ R.forwardRef(function(e, n) {
149
149
  process.env.NODE_ENV !== "production" && (Y.displayName = "DialogPortal");
150
150
  // ../../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/dialog/root/useDialogRoot.mjs
151
151
  function ye({ store: e, parentContext: t, isDrawer: n }) {
152
- let r = e.useState("open"), i = e.useState("mounted"), a = e.useState("disablePointerDismissal"), s = e.useState("modal"), c = e.useState("popupElement"), l = e.useState("floatingRootContext"), [u, d] = R.useState(0), [f, p] = R.useState(0), m = u === 0, h = ne(l, {
152
+ let r = e.useState("open"), i = e.useState("mounted"), a = e.useState("disablePointerDismissal"), o = e.useState("modal"), c = e.useState("popupElement"), l = e.useState("floatingRootContext"), [u, d] = R.useState(0), [f, p] = R.useState(0), m = u === 0, h = ne(l, {
153
153
  outsidePressEvent() {
154
154
  return e.context.internalBackdropRef.current || e.context.backdropRef.current ? "intentional" : {
155
- mouse: s === "trap-focus" ? "sloppy" : "intentional",
155
+ mouse: o === "trap-focus" ? "sloppy" : "intentional",
156
156
  touch: "sloppy"
157
157
  };
158
158
  },
@@ -165,7 +165,7 @@ function ye({ store: e, parentContext: t, isDrawer: n }) {
165
165
  }
166
166
  let n = A(t);
167
167
  if (m && !a) {
168
- if (s) {
168
+ if (o) {
169
169
  let t = e.context.internalBackdropRef.current, r = e.context.backdropRef.current;
170
170
  return t || r ? t === n || r === n || I(n, c) && !n?.hasAttribute("data-base-ui-portal") : !0;
171
171
  }
@@ -175,11 +175,11 @@ function ye({ store: e, parentContext: t, isDrawer: n }) {
175
175
  },
176
176
  escapeKey: m
177
177
  });
178
- return re(r && s === !0, c), e.useContextCallback("onNestedDialogOpen", (t, n) => {
178
+ return re(r && o === !0, c), e.useContextCallback("onNestedDialogOpen", (t, n) => {
179
179
  (e.select("open") || e.select("mounted")) && (d(t), p(n));
180
- }), o(() => {
180
+ }), s(() => {
181
181
  !r && !i && (d(0), p(0));
182
- }, [r, i]), o(() => (t?.onNestedDialogOpen && r && t.onNestedDialogOpen(u + 1, f + +!!n), () => {
182
+ }, [r, i]), s(() => (t?.onNestedDialogOpen && r && t.onNestedDialogOpen(u + 1, f + +!!n), () => {
183
183
  t?.onNestedDialogOpen && r && t.onNestedDialogOpen(0, 0);
184
184
  }), [
185
185
  n,
@@ -323,15 +323,15 @@ var Q = /*#__PURE__*/ R.forwardRef(function(e, t) {
323
323
  process.env.NODE_ENV !== "production" && (Q.displayName = "DialogTitle");
324
324
  // ../../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/dialog/trigger/DialogTrigger.mjs
325
325
  var Te = O(function(e, t) {
326
- let { render: n, className: r, style: i, disabled: o = !1, nativeButton: s = !0, id: u, payload: d, handle: f, ...p } = e, m = U(!0), g = j(f) ?? m;
326
+ let { render: n, className: r, style: i, disabled: a = !1, nativeButton: s = !0, id: u, payload: d, handle: f, ...p } = e, m = U(!0), g = j(f) ?? m;
327
327
  if (!g) throw Error(process.env.NODE_ENV === "production" ? D(79) : "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle.");
328
328
  let _ = C(u), v = g.useState("floatingRootContext"), y = g.useState("isOpenedByTrigger", _), b = g.useState("triggerPopupId", _), x = R.useRef(null), { registerTrigger: S, isMountedByThisTrigger: w } = c(_, x, g, { payload: d }), { getButtonProps: T, buttonRef: E } = ie({
329
- disabled: o,
329
+ disabled: a,
330
330
  native: s
331
331
  }), O = l(v), k = ce(() => g.select("open"), (e) => {
332
332
  g.set("openMethod", e);
333
333
  }), A = {
334
- disabled: o,
334
+ disabled: a,
335
335
  open: y
336
336
  }, M = g.useState("triggerProps", w);
337
337
  return h("button", e, {
@@ -347,7 +347,7 @@ var Te = O(function(e, t) {
347
347
  M,
348
348
  k,
349
349
  {
350
- [a]: "",
350
+ [o]: "",
351
351
  id: _,
352
352
  "aria-haspopup": "dialog",
353
353
  "aria-expanded": y,
@@ -432,12 +432,12 @@ function Ve(e) {
432
432
  }), t[5] = r, t[6] = i, t[7] = a) : a = t[7], a;
433
433
  }
434
434
  function He(e) {
435
- let t = z(42), n, r, i, a, o, c, l;
436
- t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5], c = t[6], l = t[7]) : ({className: r, children: n, showCloseButton: a, bottomStickOnMobile: o, variant: c, mediaControlsPlacement: l, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o, t[6] = c, t[7] = l);
437
- let u = a === void 0 || a, d = o === void 0 || o, f = c === void 0 ? "default" : c, p = l === void 0 ? "outside" : l, m = s(), { popupRef: h, initialFocus: g } = Ie(), v = f === "media" ? je : Ae, y = f === "default" && "max-h-full max-w-lg", x = d && "max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4", S;
438
- t[8] !== r || t[9] !== v || t[10] !== y || t[11] !== x ? (S = F(v, "row-start-2 text-popover-foreground", y, x, r), t[8] = r, t[9] = v, t[10] = y, t[11] = x, t[12] = S) : S = t[12];
435
+ let n = z(42), r, i, a, o, s, c, l;
436
+ n[0] === e ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5], c = n[6], l = n[7]) : ({className: i, children: r, showCloseButton: o, bottomStickOnMobile: s, variant: c, mediaControlsPlacement: l, ...a} = e, n[0] = e, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s, n[6] = c, n[7] = l);
437
+ let u = o === void 0 || o, d = s === void 0 || s, f = c === void 0 ? "default" : c, p = l === void 0 ? "outside" : l, m = t(), { popupRef: h, initialFocus: g } = Ie(), v = f === "media" ? je : Ae, y = f === "default" && "max-h-full max-w-lg", x = d && "max-sm:max-w-none max-sm:rounded-none max-sm:border-x-0 max-sm:border-t max-sm:border-b-0 max-sm:opacity-[calc(1-min(var(--nested-dialogs),1))] max-sm:data-ending-style:translate-y-4 max-sm:data-starting-style:translate-y-4", S;
438
+ n[8] !== i || n[9] !== v || n[10] !== y || n[11] !== x ? (S = F(v, "row-start-2 text-popover-foreground", y, x, i), n[8] = i, n[9] = v, n[10] = y, n[11] = x, n[12] = S) : S = n[12];
439
439
  let C;
440
- t[13] !== m || t[14] !== u ? (C = u && /* @__PURE__ */ B(G, {
440
+ n[13] !== m || n[14] !== u ? (C = u && /* @__PURE__ */ B(G, {
441
441
  "aria-label": m("Close", { $context: "button, closes the dialog" }),
442
442
  className: "absolute end-2 top-2",
443
443
  render: /* @__PURE__ */ B(_, {
@@ -445,38 +445,38 @@ function He(e) {
445
445
  variant: "ghost"
446
446
  }),
447
447
  children: /* @__PURE__ */ B(le, {})
448
- }), t[13] = m, t[14] = u, t[15] = C) : C = t[15];
448
+ }), n[13] = m, n[14] = u, n[15] = C) : C = n[15];
449
449
  let w;
450
- t[16] !== n || t[17] !== g || t[18] !== i || t[19] !== S || t[20] !== C ? (w = /* @__PURE__ */ V(J, {
450
+ n[16] !== r || n[17] !== g || n[18] !== a || n[19] !== S || n[20] !== C ? (w = /* @__PURE__ */ V(J, {
451
451
  className: S,
452
452
  "data-slot": "dialog-popup",
453
453
  initialFocus: g,
454
454
  render: Pe,
455
- ...i,
456
- children: [n, C]
457
- }), t[16] = n, t[17] = g, t[18] = i, t[19] = S, t[20] = C, t[21] = w) : w = t[21];
455
+ ...a,
456
+ children: [r, C]
457
+ }), n[16] = r, n[17] = g, n[18] = a, n[19] = S, n[20] = C, n[21] = w) : w = n[21];
458
458
  let T;
459
- t[22] !== h || t[23] !== w ? (T = {
459
+ n[22] !== h || n[23] !== w ? (T = {
460
460
  ref: h,
461
461
  render: w
462
- }, t[22] = h, t[23] = w, t[24] = T) : T = t[24];
462
+ }, n[22] = h, n[23] = w, n[24] = T) : T = n[24];
463
463
  let E = b(T), D = ae(), O = f === "media" ? "z-[60]" : void 0, k;
464
- t[25] !== O || t[26] !== f ? (k = /* @__PURE__ */ B(Be, {
464
+ n[25] !== O || n[26] !== f ? (k = /* @__PURE__ */ B(Be, {
465
465
  className: O,
466
466
  variant: f
467
- }), t[25] = O, t[26] = f, t[27] = k) : k = t[27];
467
+ }), n[25] = O, n[26] = f, n[27] = k) : k = n[27];
468
468
  let A = d && "max-sm:grid-rows-[1fr_auto] max-sm:p-0 max-sm:pt-12", j = f === "media" && "z-[60] grid-rows-1 place-items-center px-4 max-[8rem]:px-0 pb-6 pt-[calc(var(--media-dialog-titlebar-height,0px)+1.5rem)] [-webkit-app-region:no-drag]", M = f === "media" && p === "inside" && "pt-[min(calc(var(--media-dialog-titlebar-height,0px)+1.5rem),50dvh)]", N;
469
- t[28] !== A || t[29] !== j || t[30] !== M ? (N = F(A, j, M), t[28] = A, t[29] = j, t[30] = M, t[31] = N) : N = t[31];
469
+ n[28] !== A || n[29] !== j || n[30] !== M ? (N = F(A, j, M), n[28] = A, n[29] = j, n[30] = M, n[31] = N) : N = n[31];
470
470
  let P;
471
- t[32] !== D || t[33] !== f ? (P = f === "media" ? { "--media-dialog-titlebar-height": `${D}px` } : void 0, t[32] = D, t[33] = f, t[34] = P) : P = t[34];
471
+ n[32] !== D || n[33] !== f ? (P = f === "media" ? { "--media-dialog-titlebar-height": `${D}px` } : void 0, n[32] = D, n[33] = f, n[34] = P) : P = n[34];
472
472
  let I;
473
- t[35] !== E || t[36] !== N || t[37] !== P ? (I = /* @__PURE__ */ B(Ve, {
473
+ n[35] !== E || n[36] !== N || n[37] !== P ? (I = /* @__PURE__ */ B(Ve, {
474
474
  className: N,
475
475
  style: P,
476
476
  children: E
477
- }), t[35] = E, t[36] = N, t[37] = P, t[38] = I) : I = t[38];
477
+ }), n[35] = E, n[36] = N, n[37] = P, n[38] = I) : I = n[38];
478
478
  let L;
479
- return t[39] !== k || t[40] !== I ? (L = /* @__PURE__ */ V(Le, { children: [k, I] }), t[39] = k, t[40] = I, t[41] = L) : L = t[41], L;
479
+ return n[39] !== k || n[40] !== I ? (L = /* @__PURE__ */ V(Le, { children: [k, I] }), n[39] = k, n[40] = I, n[41] = L) : L = n[41], L;
480
480
  }
481
481
  function Ue(e) {
482
482
  let t = z(2), n;