@pstdio/ui 0.23.0 → 0.24.2

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 (66) hide show
  1. package/dist/{MermaidComponent-BTgLnpLA.js → MermaidComponent-DSvPk-J8.js} +2 -2
  2. package/dist/{MermaidComponent-BTgLnpLA.js.map → MermaidComponent-DSvPk-J8.js.map} +1 -1
  3. package/dist/chat-ui.js +1308 -1391
  4. package/dist/chat-ui.js.map +1 -1
  5. package/dist/components/chat-ui/components/chat-input-actions.d.ts +2 -0
  6. package/dist/components/chat-ui/components/chat-input-question-prompt.d.ts +3 -0
  7. package/dist/components/chat-ui/components/chat-input.d.ts +3 -1
  8. package/dist/components/chat-ui/components/chat-panel.d.ts +3 -1
  9. package/dist/components/chat-ui/components/timeline-title.d.ts +6 -0
  10. package/dist/components/layout/index.d.ts +1 -0
  11. package/dist/components/layout/resizable-split-layout.d.ts +4 -3
  12. package/dist/components/layout/resizable-split-layout.handle.d.ts +6 -2
  13. package/dist/components/layout/resizable-split-layout.panels.d.ts +6 -2
  14. package/dist/components/layout/resizable-split-layout.root-size.d.ts +3 -0
  15. package/dist/components/primitives/index.d.ts +2 -0
  16. package/dist/components/tab-strip/window-tabs.d.ts +1 -0
  17. package/dist/data-table.js +5 -5
  18. package/dist/{diff-editor-BnfV8cYB.js → diff-bubble-DvUPRnfB.js} +49 -48
  19. package/dist/diff-bubble-DvUPRnfB.js.map +1 -0
  20. package/dist/diff.js +112 -112
  21. package/dist/diff.js.map +1 -1
  22. package/dist/{edit-mode-data-table-BrydKuMM.js → edit-mode-data-table-2E4GSOou.js} +4 -4
  23. package/dist/{edit-mode-data-table-BrydKuMM.js.map → edit-mode-data-table-2E4GSOou.js.map} +1 -1
  24. package/dist/index.js +1232 -1152
  25. package/dist/index.js.map +1 -1
  26. package/dist/{kanban-renderer-toolbar-ebqlG13w.js → kanban-renderer-toolbar-Dcbxujbk.js} +3 -3
  27. package/dist/{kanban-renderer-toolbar-ebqlG13w.js.map → kanban-renderer-toolbar-Dcbxujbk.js.map} +1 -1
  28. package/dist/kanban-renderer.js +8 -8
  29. package/dist/kanban-renderer.js.map +1 -1
  30. package/dist/{lazy-markdown-editor-Obb0M8xc.js → lazy-markdown-editor-DSlelhHV.js} +2 -2
  31. package/dist/{lazy-markdown-editor-Obb0M8xc.js.map → lazy-markdown-editor-DSlelhHV.js.map} +1 -1
  32. package/dist/{list-row-CRi3Luog.js → list-row-BDoV_iMV.js} +3 -3
  33. package/dist/list-row-BDoV_iMV.js.map +1 -0
  34. package/dist/{markdown-kuU19Oh3.js → markdown-Cli3KGu9.js} +4 -4
  35. package/dist/{markdown-kuU19Oh3.js.map → markdown-Cli3KGu9.js.map} +1 -1
  36. package/dist/{markdown-editor-Bj_QX4oN.js → markdown-editor-BHoRATej.js} +2 -2
  37. package/dist/{markdown-editor-Bj_QX4oN.js.map → markdown-editor-BHoRATej.js.map} +1 -1
  38. package/dist/{param-editor-DgzVeyJ0.js → param-editor-CaRflJ3e.js} +2 -2
  39. package/dist/{param-editor-DgzVeyJ0.js.map → param-editor-CaRflJ3e.js.map} +1 -1
  40. package/dist/{param-editor-field-BMvuSAP5.js → param-editor-field-DVQlXbid.js} +45 -44
  41. package/dist/param-editor-field-DVQlXbid.js.map +1 -0
  42. package/dist/{rich-message-dNYvLDd4.js → rich-message-gWYlm8Ji.js} +2 -2
  43. package/dist/{rich-message-dNYvLDd4.js.map → rich-message-gWYlm8Ji.js.map} +1 -1
  44. package/dist/rich-text.js +5 -5
  45. package/dist/theme/primitives/colors.d.ts +34 -0
  46. package/dist/theme/primitives/sizes.d.ts +9 -0
  47. package/dist/theme/recipes/landing-story.d.ts +10 -0
  48. package/dist/theme/recipes/landing-tool-demo.d.ts +1 -0
  49. package/dist/theme/recipes/landing.d.ts +23 -0
  50. package/dist/theme/recipes/resizable-split-layout.d.ts +106 -0
  51. package/dist/theme/recipes/window-title-bar.d.ts +3 -0
  52. package/dist/theme/tokens/colors-background.d.ts +260 -0
  53. package/dist/theme/tokens/colors-visualization.d.ts +162 -0
  54. package/dist/theme/tokens/colors.d.ts +2 -422
  55. package/dist/{theme-C0empEin.js → theme-B5OVwYEU.js} +1413 -563
  56. package/dist/theme-B5OVwYEU.js.map +1 -0
  57. package/dist/theme.js +1 -1
  58. package/dist/tree-list-CZvcg3_6.js +1348 -0
  59. package/dist/tree-list-CZvcg3_6.js.map +1 -0
  60. package/package.json +2 -2
  61. package/dist/diff-editor-BnfV8cYB.js.map +0 -1
  62. package/dist/list-row-CRi3Luog.js.map +0 -1
  63. package/dist/param-editor-field-BMvuSAP5.js.map +0 -1
  64. package/dist/theme-C0empEin.js.map +0 -1
  65. package/dist/tree-list-BHFSyvIZ.js +0 -1262
  66. package/dist/tree-list-BHFSyvIZ.js.map +0 -1
package/dist/diff.js CHANGED
@@ -3,14 +3,14 @@ import { c as F } from "react/compiler-runtime";
3
3
  import { Editor as It, DiffEditor as Lt } from "@monaco-editor/react";
4
4
  import { useRef as Z, useEffect as oe, lazy as lt, Suspense as ot, useState as X, useLayoutEffect as Ge } from "react";
5
5
  import { u as _t } from "./theme-preference-Bpobguh4.js";
6
- import { D as Tt, b as it, a as st } from "./diff-editor-BnfV8cYB.js";
6
+ import { D as Tt, b as it, a as st } from "./diff-bubble-DvUPRnfB.js";
7
7
  import { Box as O, Grid as We, Button as rt, Text as q, Image as Ft, Stack as be, Skeleton as at, IconButton as Ke, Menu as J, Badge as At, Icon as Mt, InputGroup as zt, Input as kt, HStack as Rt, Flex as Bt } from "@chakra-ui/react";
8
8
  import { useVirtualizer as Nt, defaultRangeExtractor as Ht } from "@tanstack/react-virtual";
9
9
  import { T as Ot, S as qe } from "./browser-storage-DPtOQJx0.js";
10
10
  import { ChevronRight as Ye, ChevronDown as $t, Check as dt, Copy as Vt, Settings2 as jt, ListTree as Gt, List as Wt, PanelLeftClose as Kt, PanelLeftOpen as Qt, Rows2 as qt, SquareSplitHorizontal as Ut, ChevronsUpDown as Yt, ChevronsDownUp as Xt, FileText as Jt, Search as Zt } from "lucide-react";
11
11
  import { E as Se } from "./empty-state-Bo4HVrgr.js";
12
- import { L as en, H as ct } from "./list-row-CRi3Luog.js";
13
- import { T as tn, R as nn } from "./tree-list-BHFSyvIZ.js";
12
+ import { L as en, H as ct } from "./list-row-BDoV_iMV.js";
13
+ import { T as tn, R as nn } from "./tree-list-CZvcg3_6.js";
14
14
  import { create as ln } from "zustand";
15
15
  const on = (n) => {
16
16
  let e;
@@ -70,12 +70,12 @@ const on = (n) => {
70
70
  language: i,
71
71
  onChange: a,
72
72
  disableScroll: c
73
- } = n, f = i === void 0 ? "javascript" : i, p = ht(), u = ut(p);
73
+ } = n, f = i === void 0 ? "javascript" : i, m = ht(), u = ut(m);
74
74
  let d;
75
75
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
76
76
  enabled: !1
77
77
  }, e[0] = d) : d = e[0];
78
- const m = !s, D = l ? "on" : "off";
78
+ const p = !s, D = l ? "on" : "off";
79
79
  let g;
80
80
  e[1] !== c ? (g = c ? {
81
81
  scrollbar: {
@@ -89,14 +89,14 @@ const on = (n) => {
89
89
  overviewRulerLanes: 0
90
90
  } : {}, e[1] = c, e[2] = g) : g = e[2];
91
91
  let h;
92
- e[3] !== m || e[4] !== D || e[5] !== g ? (h = {
92
+ e[3] !== p || e[4] !== D || e[5] !== g ? (h = {
93
93
  tabSize: 2,
94
94
  minimap: d,
95
95
  fontSize: 12,
96
- readOnly: m,
96
+ readOnly: p,
97
97
  lineNumbers: D,
98
98
  ...g
99
- }, e[3] = m, e[4] = D, e[5] = g, e[6] = h) : h = e[6];
99
+ }, e[3] = p, e[4] = D, e[5] = g, e[6] = h) : h = e[6];
100
100
  const S = h;
101
101
  let C;
102
102
  e[7] !== a ? (C = (E) => {
@@ -118,10 +118,10 @@ const on = (n) => {
118
118
  language: s,
119
119
  disableScroll: i
120
120
  } = n, a = s === void 0 ? "javascript" : s, c = ht(), f = ut(c);
121
- let p;
122
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = {
121
+ let m;
122
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = {
123
123
  enabled: !1
124
- }, e[0] = p) : p = e[0];
124
+ }, e[0] = m) : m = e[0];
125
125
  const u = l ? "on" : "off";
126
126
  let d;
127
127
  e[1] !== i ? (d = i ? {
@@ -135,10 +135,10 @@ const on = (n) => {
135
135
  mouseWheelScrollSensitivity: 0,
136
136
  overviewRulerLanes: 0
137
137
  } : {}, e[1] = i, e[2] = d) : d = e[2];
138
- let m;
139
- e[3] !== u || e[4] !== d ? (m = {
138
+ let p;
139
+ e[3] !== u || e[4] !== d ? (p = {
140
140
  tabSize: 2,
141
- minimap: p,
141
+ minimap: m,
142
142
  fontSize: 12,
143
143
  readOnly: !0,
144
144
  originalEditable: !1,
@@ -146,8 +146,8 @@ const on = (n) => {
146
146
  useInlineViewWhenSpaceIsTooSmall: !0,
147
147
  lineNumbers: u,
148
148
  ...d
149
- }, e[3] = u, e[4] = d, e[5] = m) : m = e[5];
150
- const D = m;
149
+ }, e[3] = u, e[4] = d, e[5] = p) : p = e[5];
150
+ const D = p;
151
151
  let g, h;
152
152
  e[6] !== f ? (g = (C) => {
153
153
  f(C);
@@ -156,7 +156,7 @@ const on = (n) => {
156
156
  }, e[6] = f, e[7] = g, e[8] = h) : (g = e[7], h = e[8]);
157
157
  let S;
158
158
  return e[9] !== a || e[10] !== o || e[11] !== D || e[12] !== t || e[13] !== g || e[14] !== h ? (S = /* @__PURE__ */ r(ot, { fallback: null, children: /* @__PURE__ */ r(rn, { width: "100%", height: "100%", language: a, original: t, modified: o, theme: ge, options: D, beforeMount: g, onMount: h }) }), e[9] = a, e[10] = o, e[11] = D, e[12] = t, e[13] = g, e[14] = h, e[15] = S) : S = e[15], S;
159
- }, mt = {
159
+ }, pt = {
160
160
  avif: "image/avif",
161
161
  bmp: "image/bmp",
162
162
  gif: "image/gif",
@@ -168,17 +168,17 @@ const on = (n) => {
168
168
  tif: "image/tiff",
169
169
  tiff: "image/tiff",
170
170
  webp: "image/webp"
171
- }, fn = Object.keys(mt), pt = (n) => {
171
+ }, fn = Object.keys(pt), mt = (n) => {
172
172
  const t = (n.split(/[\\/]/).pop() ?? n).split(".").pop();
173
173
  return t ? t.toLowerCase() : "";
174
174
  }, hn = (n) => {
175
- const e = pt(n);
176
- return mt[e] ?? null;
177
- }, un = (n) => hn(n) !== null, mn = 1e3, pn = /* @__PURE__ */ new Set(["bun.lock", "bun.lockb", "package-lock.json", "pnpm-lock.yaml", "yarn.lock"]), gn = /* @__PURE__ */ new Set([...fn, "pdf", "zip", "tar", "gz", "tgz", "rar", "7z", "exe", "dll", "so", "dylib", "wasm", "class", "jar", "mp3", "mp4", "mov", "ogg", "wav", "webm", "flac", "ttf", "otf", "woff", "woff2", "eot"]), gt = (n) => (n.additions ?? 0) + (n.deletions ?? 0), bt = (n) => gt(n) > mn, bn = (n) => {
175
+ const e = mt(n);
176
+ return pt[e] ?? null;
177
+ }, un = (n) => hn(n) !== null, pn = 1e3, mn = /* @__PURE__ */ new Set(["bun.lock", "bun.lockb", "package-lock.json", "pnpm-lock.yaml", "yarn.lock"]), gn = /* @__PURE__ */ new Set([...fn, "pdf", "zip", "tar", "gz", "tgz", "rar", "7z", "exe", "dll", "so", "dylib", "wasm", "class", "jar", "mp3", "mp4", "mov", "ogg", "wav", "webm", "flac", "ttf", "otf", "woff", "woff2", "eot"]), gt = (n) => (n.additions ?? 0) + (n.deletions ?? 0), bt = (n) => gt(n) > pn, bn = (n) => {
178
178
  const e = n.split(/[\\/]/).pop() ?? n;
179
- return pn.has(e) || e.endsWith(".min.js") || e.endsWith(".generated.ts");
179
+ return mn.has(e) || e.endsWith(".min.js") || e.endsWith(".generated.ts");
180
180
  }, Ue = (n) => {
181
- const e = pt(n);
181
+ const e = mt(n);
182
182
  return e.length > 0 && gn.has(e);
183
183
  }, we = un, Sn = (n) => {
184
184
  const {
@@ -230,9 +230,9 @@ const on = (n) => {
230
230
  hasOptedIntoLargeDiff: a,
231
231
  onShowFullDiff: c,
232
232
  diffViewMode: f
233
- } = n, p = f === void 0 ? "unified" : f;
233
+ } = n, m = f === void 0 ? "unified" : f;
234
234
  let u;
235
- e[0] !== t || e[1] !== p || e[2] !== o || e[3] !== a || e[4] !== i || e[5] !== s || e[6] !== l || e[7] !== c ? (u = Sn({
235
+ e[0] !== t || e[1] !== m || e[2] !== o || e[3] !== a || e[4] !== i || e[5] !== s || e[6] !== l || e[7] !== c ? (u = Sn({
236
236
  diff: t,
237
237
  filePath: o,
238
238
  oldContent: l,
@@ -240,11 +240,11 @@ const on = (n) => {
240
240
  isLargeDiff: i,
241
241
  hasOptedIntoLargeDiff: a,
242
242
  onShowFullDiff: c,
243
- diffViewMode: p
244
- }), e[0] = t, e[1] = p, e[2] = o, e[3] = a, e[4] = i, e[5] = s, e[6] = l, e[7] = c, e[8] = u) : u = e[8];
243
+ diffViewMode: m
244
+ }), e[0] = t, e[1] = m, e[2] = o, e[3] = a, e[4] = i, e[5] = s, e[6] = l, e[7] = c, e[8] = u) : u = e[8];
245
245
  const d = u;
246
- let m;
247
- return e[9] !== t || e[10] !== d.diffViewData || e[11] !== d.filePath || e[12] !== d.isImage || e[13] !== d.kind || e[14] !== d.newSrc || e[15] !== d.oldSrc || e[16] !== d.onShowFullDiff || e[17] !== d.renderedLineCount || e[18] !== d.sideBySide || e[19] !== s || e[20] !== l ? (m = /* @__PURE__ */ r(O, { bg: "bg", borderBottomRadius: "xs", overflow: "hidden", children: d.kind === "editor" ? /* @__PURE__ */ r(Tt, { original: l, modified: s, oldPath: t.oldPath, newPath: t.newPath, sideBySide: d.sideBySide, data: d.diffViewData }) : d.kind === "image" ? /* @__PURE__ */ r(xn, { oldSrc: d.oldSrc, newSrc: d.newSrc }) : d.kind === "binary" ? /* @__PURE__ */ r(Dn, { isImage: d.isImage }) : /* @__PURE__ */ r(wn, { filePath: d.filePath, renderedLineCount: d.renderedLineCount, onShowFullDiff: d.onShowFullDiff }) }), e[9] = t, e[10] = d.diffViewData, e[11] = d.filePath, e[12] = d.isImage, e[13] = d.kind, e[14] = d.newSrc, e[15] = d.oldSrc, e[16] = d.onShowFullDiff, e[17] = d.renderedLineCount, e[18] = d.sideBySide, e[19] = s, e[20] = l, e[21] = m) : m = e[21], m;
246
+ let p;
247
+ return e[9] !== t || e[10] !== d.diffViewData || e[11] !== d.filePath || e[12] !== d.isImage || e[13] !== d.kind || e[14] !== d.newSrc || e[15] !== d.oldSrc || e[16] !== d.onShowFullDiff || e[17] !== d.renderedLineCount || e[18] !== d.sideBySide || e[19] !== s || e[20] !== l ? (p = /* @__PURE__ */ r(O, { bg: "bg", borderBottomRadius: "xs", overflow: "hidden", children: d.kind === "editor" ? /* @__PURE__ */ r(Tt, { original: l, modified: s, oldPath: t.oldPath, newPath: t.newPath, sideBySide: d.sideBySide, data: d.diffViewData }) : d.kind === "image" ? /* @__PURE__ */ r(xn, { oldSrc: d.oldSrc, newSrc: d.newSrc }) : d.kind === "binary" ? /* @__PURE__ */ r(Dn, { isImage: d.isImage }) : /* @__PURE__ */ r(wn, { filePath: d.filePath, renderedLineCount: d.renderedLineCount, onShowFullDiff: d.onShowFullDiff }) }), e[9] = t, e[10] = d.diffViewData, e[11] = d.filePath, e[12] = d.isImage, e[13] = d.kind, e[14] = d.newSrc, e[15] = d.oldSrc, e[16] = d.onShowFullDiff, e[17] = d.renderedLineCount, e[18] = d.sideBySide, e[19] = s, e[20] = l, e[21] = p) : p = e[21], p;
248
248
  }, xn = (n) => {
249
249
  const e = F(8), {
250
250
  oldSrc: t,
@@ -346,10 +346,10 @@ const En = (n) => {
346
346
  isLargeDiff: a,
347
347
  isGeneratedDiff: c,
348
348
  isBinaryDiff: f,
349
- hasDiffContent: p,
349
+ hasDiffContent: m,
350
350
  canLoadDiff: u,
351
351
  shouldAutoLoadDiff: d,
352
- loadError: m,
352
+ loadError: p,
353
353
  isLoadingDiff: D,
354
354
  onLoadDiff: g,
355
355
  hasOptedIntoLargeDiff: h,
@@ -362,16 +362,16 @@ const En = (n) => {
362
362
  let x;
363
363
  return e[0] !== t || e[1] !== y || e[2] !== o || e[3] !== h || e[4] !== s || e[5] !== l || e[6] !== S ? (x = /* @__PURE__ */ r(Je, { diff: t, filePath: o, oldContent: l, newContent: s, isLargeDiff: !1, hasOptedIntoLargeDiff: h, onShowFullDiff: S, diffViewMode: y }), e[0] = t, e[1] = y, e[2] = o, e[3] = h, e[4] = s, e[5] = l, e[6] = S, e[7] = x) : x = e[7], x;
364
364
  }
365
- if (!p && !d) {
365
+ if (!m && !d) {
366
366
  let x;
367
- e[8] !== u || e[9] !== c || e[10] !== a || e[11] !== m || e[12] !== g || e[13] !== S ? (x = En({
367
+ e[8] !== u || e[9] !== c || e[10] !== a || e[11] !== p || e[12] !== g || e[13] !== S ? (x = En({
368
368
  isLargeDiff: a,
369
369
  isGeneratedDiff: c,
370
- loadError: m,
370
+ loadError: p,
371
371
  canLoadDiff: u,
372
372
  onLoadDiff: g,
373
373
  onShowFullDiff: S
374
- }), e[8] = u, e[9] = c, e[10] = a, e[11] = m, e[12] = g, e[13] = S, e[14] = x) : x = e[14];
374
+ }), e[8] = u, e[9] = c, e[10] = a, e[11] = p, e[12] = g, e[13] = S, e[14] = x) : x = e[14];
375
375
  const {
376
376
  title: E,
377
377
  actionLabel: b,
@@ -415,15 +415,15 @@ const En = (n) => {
415
415
  isGeneratedDiff: i,
416
416
  isBinaryDiff: a,
417
417
  onLoadDiff: c
418
- } = n, [f, p] = X(!1), [u, d] = X(null), [m, D] = X(!1), g = async () => {
418
+ } = n, [f, m] = X(!1), [u, d] = X(null), [p, D] = X(!1), g = async () => {
419
419
  if (!(!c || f)) {
420
- d(e), D(!1), p(!0);
420
+ d(e), D(!1), m(!0);
421
421
  try {
422
422
  await c(e);
423
423
  } catch {
424
424
  d(null), D(!0);
425
425
  } finally {
426
- p(!1);
426
+ m(!1);
427
427
  }
428
428
  }
429
429
  }, h = Ln({
@@ -443,11 +443,11 @@ const En = (n) => {
443
443
  hasDiffContent: l
444
444
  }));
445
445
  }, [e, l]), oe(() => {
446
- !c || !h || m || g();
446
+ !c || !h || p || g();
447
447
  }), {
448
448
  isLoadingDiff: f,
449
- loadError: m,
450
- shouldAutoLoadDiff: !!c && h && !m,
449
+ loadError: p,
450
+ shouldAutoLoadDiff: !!c && h && !p,
451
451
  loadDiff: g
452
452
  };
453
453
  }, An = (n) => {
@@ -460,11 +460,11 @@ const En = (n) => {
460
460
  onLoadDiff: a,
461
461
  hasOptedIntoLargeDiff: c,
462
462
  onShowFullDiff: f,
463
- diffViewMode: p
464
- } = n, u = o === void 0 ? !1 : o, d = l === void 0 ? !0 : l, m = c === void 0 ? !1 : c, D = p === void 0 ? "unified" : p;
463
+ diffViewMode: m
464
+ } = n, u = o === void 0 ? !1 : o, d = l === void 0 ? !0 : l, p = c === void 0 ? !1 : c, D = m === void 0 ? "unified" : m;
465
465
  let g, h, S, C, y, P;
466
466
  e[0] !== t ? (g = St(t), y = t.oldContent || "", C = t.newContent || "", S = bt(t), h = bn(g), P = Ue(g) && !we(g), e[0] = t, e[1] = g, e[2] = h, e[3] = S, e[4] = C, e[5] = y, e[6] = P) : (g = e[1], h = e[2], S = e[3], C = e[4], y = e[5], P = e[6]);
467
- const x = P, E = t.oldContent !== void 0 || t.newContent !== void 0, b = S && !m;
467
+ const x = P, E = t.oldContent !== void 0 || t.newContent !== void 0, b = S && !p;
468
468
  let v;
469
469
  e[7] !== x || e[8] !== g || e[9] !== E || e[10] !== d || e[11] !== h || e[12] !== u || e[13] !== a || e[14] !== b ? (v = {
470
470
  filePath: g,
@@ -490,7 +490,7 @@ const En = (n) => {
490
490
  e[17] !== t || e[18] !== d || e[19] !== s ? (_ = /* @__PURE__ */ r(Mn, { diff: t, isExpanded: d, onToggleExpanded: s }), e[17] = t, e[18] = d, e[19] = s, e[20] = _) : _ = e[20];
491
491
  const A = !!a;
492
492
  let k;
493
- e[21] !== x || e[22] !== t || e[23] !== D || e[24] !== g || e[25] !== E || e[26] !== m || e[27] !== d || e[28] !== h || e[29] !== S || e[30] !== w || e[31] !== M || e[32] !== I || e[33] !== C || e[34] !== y || e[35] !== f || e[36] !== L || e[37] !== A ? (k = /* @__PURE__ */ r(In, { diff: t, filePath: g, oldContent: y, newContent: C, isExpanded: d, isLargeDiff: S, isGeneratedDiff: h, isBinaryDiff: x, hasDiffContent: E, canLoadDiff: A, shouldAutoLoadDiff: L, loadError: I, isLoadingDiff: w, onLoadDiff: M, hasOptedIntoLargeDiff: m, onShowFullDiff: f, diffViewMode: D }), e[21] = x, e[22] = t, e[23] = D, e[24] = g, e[25] = E, e[26] = m, e[27] = d, e[28] = h, e[29] = S, e[30] = w, e[31] = M, e[32] = I, e[33] = C, e[34] = y, e[35] = f, e[36] = L, e[37] = A, e[38] = k) : k = e[38];
493
+ e[21] !== x || e[22] !== t || e[23] !== D || e[24] !== g || e[25] !== E || e[26] !== p || e[27] !== d || e[28] !== h || e[29] !== S || e[30] !== w || e[31] !== M || e[32] !== I || e[33] !== C || e[34] !== y || e[35] !== f || e[36] !== L || e[37] !== A ? (k = /* @__PURE__ */ r(In, { diff: t, filePath: g, oldContent: y, newContent: C, isExpanded: d, isLargeDiff: S, isGeneratedDiff: h, isBinaryDiff: x, hasDiffContent: E, canLoadDiff: A, shouldAutoLoadDiff: L, loadError: I, isLoadingDiff: w, onLoadDiff: M, hasOptedIntoLargeDiff: p, onShowFullDiff: f, diffViewMode: D }), e[21] = x, e[22] = t, e[23] = D, e[24] = g, e[25] = E, e[26] = p, e[27] = d, e[28] = h, e[29] = S, e[30] = w, e[31] = M, e[32] = I, e[33] = C, e[34] = y, e[35] = f, e[36] = L, e[37] = A, e[38] = k) : k = e[38];
494
494
  let R;
495
495
  return e[39] !== i || e[40] !== k || e[41] !== z || e[42] !== _ ? (R = /* @__PURE__ */ G(O, { "data-testid": "diff-card", border: "1px solid", borderColor: z, borderRadius: "xs", overflow: "visible", bg: "bg", width: "100%", maxW: "100%", transition: "border-color 0.14s ease", _hover: T, onClick: i, children: [
496
496
  _,
@@ -504,15 +504,15 @@ const En = (n) => {
504
504
  } = n, s = o === void 0 ? !0 : o;
505
505
  let i, a, c, f;
506
506
  e[0] !== t ? (c = St(t), i = t.additions ?? 0, a = t.deletions ?? 0, f = Tn(c), e[0] = t, e[1] = i, e[2] = a, e[3] = c, e[4] = f) : (i = e[1], a = e[2], c = e[3], f = e[4]);
507
- const p = f, [u, d] = X(!1), m = Z(null);
507
+ const m = f, [u, d] = X(!1), p = Z(null);
508
508
  let D, g;
509
509
  e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => () => {
510
- m.current !== null && window.clearTimeout(m.current);
510
+ p.current !== null && window.clearTimeout(p.current);
511
511
  }, g = [], e[5] = D, e[6] = g) : (D = e[5], g = e[6]), oe(D, g);
512
512
  let h;
513
513
  e[7] !== c ? (h = async () => {
514
514
  try {
515
- await navigator.clipboard.writeText(c), d(!0), m.current !== null && window.clearTimeout(m.current), m.current = window.setTimeout(() => d(!1), 1200);
515
+ await navigator.clipboard.writeText(c), d(!0), p.current !== null && window.clearTimeout(p.current), p.current = window.setTimeout(() => d(!1), 1200);
516
516
  } catch {
517
517
  d(!1);
518
518
  }
@@ -568,7 +568,7 @@ const En = (n) => {
568
568
  B
569
569
  ] }), e[44] = L, e[45] = B, e[46] = V) : V = e[46];
570
570
  let j;
571
- e[47] !== i || e[48] !== a || e[49] !== p ? (j = p ? /* @__PURE__ */ r(O, { flexShrink: 0, children: /* @__PURE__ */ r(st, { variant: "ghost", additions: i, deletions: a }) }) : null, e[47] = i, e[48] = a, e[49] = p, e[50] = j) : j = e[50];
571
+ e[47] !== i || e[48] !== a || e[49] !== m ? (j = m ? /* @__PURE__ */ r(O, { flexShrink: 0, children: /* @__PURE__ */ r(st, { variant: "ghost", additions: i, deletions: a }) }) : null, e[47] = i, e[48] = a, e[49] = m, e[50] = j) : j = e[50];
572
572
  let W;
573
573
  return e[51] !== w || e[52] !== V || e[53] !== j || e[54] !== C || e[55] !== y || e[56] !== x ? (W = /* @__PURE__ */ G(We, { "data-testid": "diff-card-header", templateColumns: "auto minmax(0, 1fr) auto", px: "xs", py: "2xs", alignItems: "center", justifyContent: "space-between", borderBottom: C, borderColor: "border.subtle", borderTopRadius: "xs", borderBottomRadius: y, position: "sticky", top: "0", zIndex: "1", bg: "bg", cursor: "pointer", transition: "background 0.14s ease", _hover: P, onClick: x, gap: "sm", children: [
574
574
  w,
@@ -603,9 +603,9 @@ const En = (n) => {
603
603
  modified: e.newContent ?? "",
604
604
  oldPath: e.oldPath,
605
605
  newPath: e.newPath
606
- }), p = l === "split" ? c : a;
607
- if (p === 0 && f === 0) return Ae();
608
- const u = p * kn + f * Rn;
606
+ }), m = l === "split" ? c : a;
607
+ if (m === 0 && f === 0) return Ae();
608
+ const u = m * kn + f * Rn;
609
609
  return Qe + u + Me;
610
610
  }, $n = (n) => n.newPath ?? n.oldPath ?? "unknown", Vn = 24, jn = (n) => {
611
611
  const {
@@ -618,15 +618,15 @@ const En = (n) => {
618
618
  let i = t, a = t ? `selected:${t}` : null;
619
619
  const c = l?.action === "expand-selected" ? l.id : null, f = c !== null && s === c;
620
620
  l?.action === "expand-selected" && l.path && (i = l.path, a = `command:${l.id}:${l.path}`);
621
- let p = a;
621
+ let m = a;
622
622
  if (i && a) {
623
- const m = o.has(i) ? "collapsed" : "expanded";
624
- p = `${a}:${m}`;
623
+ const p = o.has(i) ? "collapsed" : "expanded";
624
+ m = `${a}:${p}`;
625
625
  }
626
- const u = i ? e.findIndex((m) => $n(m) === i) : -1, d = u >= 0 && l?.action === "expand-selected" && l.direction === "up" && !f;
626
+ const u = i ? e.findIndex((p) => $n(p) === i) : -1, d = u >= 0 && l?.action === "expand-selected" && l.direction === "up" && !f;
627
627
  return {
628
628
  selectedScrollPath: i,
629
- selectedScrollKey: p,
629
+ selectedScrollKey: m,
630
630
  selectedScrollCommandId: c,
631
631
  selectedScrollIndex: u,
632
632
  shouldPinSelectedScrollIndex: d,
@@ -652,7 +652,7 @@ const En = (n) => {
652
652
  scrollRef: i,
653
653
  virtualizerRef: a,
654
654
  suppressScrollAdjustRef: c
655
- } = n, [f, p] = X(null);
655
+ } = n, [f, m] = X(null);
656
656
  let u;
657
657
  e[0] !== l || e[1] !== f || e[2] !== t || e[3] !== s || e[4] !== o ? (u = jn({
658
658
  diffs: t,
@@ -663,15 +663,15 @@ const En = (n) => {
663
663
  }), e[0] = l, e[1] = f, e[2] = t, e[3] = s, e[4] = o, e[5] = u) : u = e[5];
664
664
  const {
665
665
  selectedScrollPath: d,
666
- selectedScrollKey: m,
666
+ selectedScrollKey: p,
667
667
  selectedScrollCommandId: D,
668
668
  selectedScrollIndex: g,
669
669
  shouldPinSelectedScrollIndex: h,
670
670
  hasCompletedSelectedScroll: S
671
671
  } = u;
672
672
  let C, y;
673
- e[6] !== l || e[7] !== t || e[8] !== S || e[9] !== i || e[10] !== D || e[11] !== m || e[12] !== d || e[13] !== c || e[14] !== a ? (C = () => {
674
- if (!d || !m || S || l.has(d))
673
+ e[6] !== l || e[7] !== t || e[8] !== S || e[9] !== i || e[10] !== D || e[11] !== p || e[12] !== d || e[13] !== c || e[14] !== a ? (C = () => {
674
+ if (!d || !p || S || l.has(d))
675
675
  return;
676
676
  const x = t.findIndex((T) => Qn(T) === d);
677
677
  if (x < 0)
@@ -685,7 +685,7 @@ const En = (n) => {
685
685
  const I = () => {
686
686
  c.current = !1;
687
687
  }, L = () => {
688
- w = !0, I(), D !== null && p(D);
688
+ w = !0, I(), D !== null && m(D);
689
689
  };
690
690
  let M = 0;
691
691
  const z = () => {
@@ -693,7 +693,7 @@ const En = (n) => {
693
693
  if (E.scrollToIndex(x, {
694
694
  align: "start"
695
695
  }), M = M + 1, M >= Wn && D !== null) {
696
- I(), p(D);
696
+ I(), m(D);
697
697
  return;
698
698
  }
699
699
  if (M < Kn) {
@@ -712,7 +712,7 @@ const En = (n) => {
712
712
  for (const T of v)
713
713
  cancelAnimationFrame(T);
714
714
  };
715
- }, y = [m, d, D, S, t, l, i, a, c], e[6] = l, e[7] = t, e[8] = S, e[9] = i, e[10] = D, e[11] = m, e[12] = d, e[13] = c, e[14] = a, e[15] = C, e[16] = y) : (C = e[15], y = e[16]), Ge(C, y);
715
+ }, y = [p, d, D, S, t, l, i, a, c], e[6] = l, e[7] = t, e[8] = S, e[9] = i, e[10] = D, e[11] = p, e[12] = d, e[13] = c, e[14] = a, e[15] = C, e[16] = y) : (C = e[15], y = e[16]), Ge(C, y);
716
716
  let P;
717
717
  return e[17] !== g || e[18] !== h ? (P = {
718
718
  selectedScrollIndex: g,
@@ -744,16 +744,16 @@ function el(n) {
744
744
  onExpansionStateChange: s,
745
745
  expansionCommand: i = null,
746
746
  diffViewMode: a = "unified"
747
- } = n, c = Z(null), f = Z(null), p = Z(null), u = Z(!1), d = Z(null), [m, D] = X(() => Yn(e)), [g, h] = X(() => /* @__PURE__ */ new Set()), {
747
+ } = n, c = Z(null), f = Z(null), m = Z(null), u = Z(!1), d = Z(null), [p, D] = X(() => Yn(e)), [g, h] = X(() => /* @__PURE__ */ new Set()), {
748
748
  selectedScrollIndex: S,
749
749
  shouldPinSelectedScrollIndex: C
750
750
  } = qn({
751
751
  diffs: e,
752
752
  selectedDiffPath: t,
753
- collapsedPaths: m,
753
+ collapsedPaths: p,
754
754
  expansionCommand: i,
755
755
  scrollRef: c,
756
- virtualizerRef: p,
756
+ virtualizerRef: m,
757
757
  suppressScrollAdjustRef: u
758
758
  }), y = Nt({
759
759
  count: e.length,
@@ -762,7 +762,7 @@ function el(n) {
762
762
  const v = e[b], w = ee(v);
763
763
  return On({
764
764
  diff: v,
765
- isCollapsed: m.has(w),
765
+ isCollapsed: p.has(w),
766
766
  hasOptedIntoLargeDiff: g.has(w),
767
767
  diffViewMode: a
768
768
  });
@@ -778,7 +778,7 @@ function el(n) {
778
778
  });
779
779
  }
780
780
  });
781
- if (y.shouldAdjustScrollPositionOnItemSizeChange = (b, v, w) => !w.isScrolling && !u.current, p.current = y, Ge(() => {
781
+ if (y.shouldAdjustScrollPositionOnItemSizeChange = (b, v, w) => !w.isScrolling && !u.current, m.current = y, Ge(() => {
782
782
  t && D((b) => xt(e, b, t));
783
783
  }, [e, t]), Ge(() => {
784
784
  if (i) {
@@ -794,11 +794,11 @@ function el(n) {
794
794
  }
795
795
  }, [e, i]), oe(() => {
796
796
  const b = {
797
- allExpanded: m.size === 0,
798
- allCollapsed: e.length > 0 && e.every((w) => m.has(ee(w)))
797
+ allExpanded: p.size === 0,
798
+ allCollapsed: e.length > 0 && e.every((w) => p.has(ee(w)))
799
799
  }, v = f.current;
800
800
  v?.allExpanded === b.allExpanded && v.allCollapsed === b.allCollapsed || (f.current = b, s?.(b));
801
- }, [m, e, s]), e.length === 0) return /* @__PURE__ */ r(zn, {});
801
+ }, [p, e, s]), e.length === 0) return /* @__PURE__ */ r(zn, {});
802
802
  const P = (b) => {
803
803
  D((v) => Jn(v, b));
804
804
  }, x = (b) => {
@@ -819,7 +819,7 @@ function el(n) {
819
819
  const v = e[b.index], w = ee(v);
820
820
  return /* @__PURE__ */ r(O, { "data-index": b.index, ref: y.measureElement, position: "absolute", left: "0", width: "100%", pb: "xs", style: {
821
821
  top: `${b.start}px`
822
- }, children: /* @__PURE__ */ r(An, { diff: v, isSelected: t === w, isExpanded: !m.has(w), onToggleExpanded: () => P(w), onSelect: () => l?.(w), onLoadDiff: o, hasOptedIntoLargeDiff: g.has(w), onShowFullDiff: () => x(w), diffViewMode: a }, w) }, b.key);
822
+ }, children: /* @__PURE__ */ r(An, { diff: v, isSelected: t === w, isExpanded: !p.has(w), onToggleExpanded: () => P(w), onSelect: () => l?.(w), onLoadDiff: o, hasOptedIntoLargeDiff: g.has(w), onShowFullDiff: () => x(w), diffViewMode: a }, w) }, b.key);
823
823
  }) }) }) }) });
824
824
  }
825
825
  const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), wt = (n) => (n.sort((e, t) => e.type !== t.type ? e.type === "folder" ? -1 : 1 : e.name.localeCompare(t.name)), n.forEach((e) => {
@@ -835,9 +835,9 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
835
835
  const s = l.split("/");
836
836
  let i = "", a = null;
837
837
  s.forEach((c, f) => {
838
- const p = i ? `${i}/${c}` : c, u = f === s.length - 1, d = `${u ? "file" : "folder"}:${p}`, m = t.get(d);
839
- if (m) {
840
- a = m, i = p;
838
+ const m = i ? `${i}/${c}` : c, u = f === s.length - 1, d = `${u ? "file" : "folder"}:${m}`, p = t.get(d);
839
+ if (p) {
840
+ a = p, i = m;
841
841
  return;
842
842
  }
843
843
  const D = {
@@ -848,7 +848,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
848
848
  children: []
849
849
  }
850
850
  };
851
- t.set(d, D), a ? a.children?.push(D) : o.push(D), a = D, i = p;
851
+ t.set(d, D), a ? a.children?.push(D) : o.push(D), a = D, i = m;
852
852
  });
853
853
  }), wt(o);
854
854
  }, tt = (n) => {
@@ -926,10 +926,10 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
926
926
  } = n, c = s === void 0 ? void 0 : "menuitemradio";
927
927
  let f;
928
928
  e[0] !== s ? (f = s === void 0 ? void 0 : /* @__PURE__ */ r(sl, { selected: s }), e[0] = s, e[1] = f) : f = e[1];
929
- let p;
930
- e[2] !== i || e[3] !== l || e[4] !== t || e[5] !== o || e[6] !== a || e[7] !== s || e[8] !== c || e[9] !== f ? (p = /* @__PURE__ */ r(en, { asChild: !0, role: c, "aria-checked": s, variant: "full-width", id: t, icon: l, label: o, disabled: i, isSelected: s, endContent: f, onActivate: a }), e[2] = i, e[3] = l, e[4] = t, e[5] = o, e[6] = a, e[7] = s, e[8] = c, e[9] = f, e[10] = p) : p = e[10];
929
+ let m;
930
+ e[2] !== i || e[3] !== l || e[4] !== t || e[5] !== o || e[6] !== a || e[7] !== s || e[8] !== c || e[9] !== f ? (m = /* @__PURE__ */ r(en, { asChild: !0, role: c, "aria-checked": s, variant: "full-width", id: t, icon: l, label: o, disabled: i, isSelected: s, endContent: f, onActivate: a }), e[2] = i, e[3] = l, e[4] = t, e[5] = o, e[6] = a, e[7] = s, e[8] = c, e[9] = f, e[10] = m) : m = e[10];
931
931
  let u;
932
- return e[11] !== i || e[12] !== t || e[13] !== p ? (u = /* @__PURE__ */ r(J.Item, { value: t, disabled: i, asChild: !0, children: p }), e[11] = i, e[12] = t, e[13] = p, e[14] = u) : u = e[14], u;
932
+ return e[11] !== i || e[12] !== t || e[13] !== m ? (u = /* @__PURE__ */ r(J.Item, { value: t, disabled: i, asChild: !0, children: m }), e[11] = i, e[12] = t, e[13] = m, e[14] = u) : u = e[14], u;
933
933
  }, rl = (n) => {
934
934
  const e = F(40), {
935
935
  isTreePanelOpen: t,
@@ -940,12 +940,12 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
940
940
  isCollapseAllDisabled: a,
941
941
  onToggleTreePanel: c,
942
942
  onViewModeChange: f,
943
- onDiffViewModeChange: p,
943
+ onDiffViewModeChange: m,
944
944
  onExpandAll: u,
945
945
  onCollapseAll: d
946
946
  } = n;
947
- let m;
948
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ r(J.Trigger, { asChild: !0, children: /* @__PURE__ */ r(Ke, { "aria-label": "Diff view options", variant: "ghost", size: "sm", children: /* @__PURE__ */ r(jt, { size: 14 }) }) }), e[0] = m) : m = e[0];
947
+ let p;
948
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ r(J.Trigger, { asChild: !0, children: /* @__PURE__ */ r(Ke, { "aria-label": "Diff view options", variant: "ghost", size: "sm", children: /* @__PURE__ */ r(jt, { size: 14 }) }) }), e[0] = p) : p = e[0];
949
949
  let D;
950
950
  e[1] !== t ? (D = t ? /* @__PURE__ */ r(Kt, { size: 14 }) : /* @__PURE__ */ r(Qt, { size: 14 }), e[1] = t, e[2] = D) : D = e[2];
951
951
  const g = t ? "Hide file tree" : "Show file tree";
@@ -963,14 +963,14 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
963
963
  e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ r(qt, { size: 14 }), e[12] = y) : y = e[12];
964
964
  const P = s === "unified";
965
965
  let x;
966
- e[13] !== p ? (x = () => p("unified"), e[13] = p, e[14] = x) : x = e[14];
966
+ e[13] !== m ? (x = () => m("unified"), e[13] = m, e[14] = x) : x = e[14];
967
967
  let E;
968
968
  e[15] !== P || e[16] !== x ? (E = /* @__PURE__ */ r(ne, { id: "unified", icon: y, label: "Unified", selected: P, onActivate: x }), e[15] = P, e[16] = x, e[17] = E) : E = e[17];
969
969
  let b;
970
970
  e[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ r(Ut, { size: 14 }), e[18] = b) : b = e[18];
971
971
  const v = s === "split";
972
972
  let w;
973
- e[19] !== p ? (w = () => p("split"), e[19] = p, e[20] = w) : w = e[20];
973
+ e[19] !== m ? (w = () => m("split"), e[19] = m, e[20] = w) : w = e[20];
974
974
  let I;
975
975
  e[21] !== v || e[22] !== w ? (I = /* @__PURE__ */ r(ne, { id: "split", icon: b, label: "Split", selected: v, onActivate: w }), e[21] = v, e[22] = w, e[23] = I) : I = e[23];
976
976
  let L;
@@ -985,7 +985,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
985
985
  e[30] !== a || e[31] !== d ? (_ = /* @__PURE__ */ r(ne, { id: "collapse-all", icon: T, label: "Collapse all", disabled: a, onActivate: d }), e[30] = a, e[31] = d, e[32] = _) : _ = e[32];
986
986
  let A;
987
987
  return e[33] !== I || e[34] !== z || e[35] !== _ || e[36] !== h || e[37] !== C || e[38] !== E ? (A = /* @__PURE__ */ G(J.Root, { children: [
988
- m,
988
+ p,
989
989
  /* @__PURE__ */ r(J.Positioner, { children: /* @__PURE__ */ G(J.Content, { minW: "190px", bg: "bg", p: "0", gap: "0", children: [
990
990
  h,
991
991
  S,
@@ -1085,7 +1085,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
1085
1085
  onActivate: () => o(a)
1086
1086
  };
1087
1087
  });
1088
- }, ml = (n) => {
1088
+ }, pl = (n) => {
1089
1089
  const e = F(23), {
1090
1090
  paths: t,
1091
1091
  selectedPath: o,
@@ -1095,22 +1095,22 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
1095
1095
  onSelectPath: a,
1096
1096
  onSearchQueryChange: c,
1097
1097
  onToggleFolder: f,
1098
- resolveFileIcon: p,
1098
+ resolveFileIcon: m,
1099
1099
  changeByPath: u
1100
1100
  } = n, d = Z(null);
1101
- let m;
1102
- if (e[0] !== u || e[1] !== a || e[2] !== t || e[3] !== p || e[4] !== l) {
1101
+ let p;
1102
+ if (e[0] !== u || e[1] !== a || e[2] !== t || e[3] !== m || e[4] !== l) {
1103
1103
  const E = ze(t, l);
1104
- m = Ct({
1104
+ p = Ct({
1105
1105
  nodes: E,
1106
1106
  viewMode: l,
1107
1107
  onSelectPath: a,
1108
- resolveFileIcon: p,
1108
+ resolveFileIcon: m,
1109
1109
  changeByPath: u
1110
- }), e[0] = u, e[1] = a, e[2] = t, e[3] = p, e[4] = l, e[5] = m;
1110
+ }), e[0] = u, e[1] = a, e[2] = t, e[3] = m, e[4] = l, e[5] = p;
1111
1111
  } else
1112
- m = e[5];
1113
- const D = m, g = s.trim() ? "No matching files" : "No changed files";
1112
+ p = e[5];
1113
+ const D = p, g = s.trim() ? "No matching files" : "No changed files";
1114
1114
  let h;
1115
1115
  e[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ r(Zt, { size: 14 }), e[6] = h) : h = e[6];
1116
1116
  let S;
@@ -1133,7 +1133,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
1133
1133
  C,
1134
1134
  P
1135
1135
  ] }), e[20] = C, e[21] = P, e[22] = x) : x = e[22], x;
1136
- }, le = (n) => n.newPath ?? n.oldPath ?? "unknown", pl = (n) => new Map(n.map((e) => [le(e), e.change])), gl = (n) => n.reduce((e, t) => ({
1136
+ }, le = (n) => n.newPath ?? n.oldPath ?? "unknown", ml = (n) => new Map(n.map((e) => [le(e), e.change])), gl = (n) => n.reduce((e, t) => ({
1137
1137
  additions: e.additions + (t.additions ?? 0),
1138
1138
  deletions: e.deletions + (t.deletions ?? 0)
1139
1139
  }), {
@@ -1146,8 +1146,8 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
1146
1146
  viewMode: o
1147
1147
  } = n, l = t ? e.filter((a) => le(a).toLowerCase().includes(t)) : e, s = ol(l.map(le), o), i = new Map(s.map((a, c) => [a, c]));
1148
1148
  return [...l].sort((a, c) => {
1149
- const f = i.get(le(a)) ?? Number.MAX_SAFE_INTEGER, p = i.get(le(c)) ?? Number.MAX_SAFE_INTEGER;
1150
- return f - p;
1149
+ const f = i.get(le(a)) ?? Number.MAX_SAFE_INTEGER, m = i.get(le(c)) ?? Number.MAX_SAFE_INTEGER;
1150
+ return f - m;
1151
1151
  });
1152
1152
  }, nt = (n, e) => n[0] ?? e[0] ?? null, Sl = ["first", "second", "third"], xl = () => {
1153
1153
  const n = F(1);
@@ -1161,13 +1161,13 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
1161
1161
  loading: s,
1162
1162
  onLoadDiff: i,
1163
1163
  resolveFileIcon: a
1164
- } = n, c = l === void 0 ? null : l, f = s === void 0 ? !1 : s, [p, u] = X(null);
1164
+ } = n, c = l === void 0 ? null : l, f = s === void 0 ? !1 : s, [m, u] = X(null);
1165
1165
  let d;
1166
1166
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
1167
1167
  allExpanded: !1,
1168
1168
  allCollapsed: !1
1169
1169
  }, e[0] = d) : d = e[0];
1170
- const [m, D] = X(d), {
1170
+ const [p, D] = X(d), {
1171
1171
  isTreePanelOpen: g,
1172
1172
  viewMode: h,
1173
1173
  diffViewMode: S,
@@ -1195,16 +1195,16 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
1195
1195
  viewMode: h
1196
1196
  });
1197
1197
  let te;
1198
- e[25] !== t ? (te = pl(t), e[25] = t, e[26] = te) : te = e[26], _ = te, $ = N.map(le);
1198
+ e[25] !== t ? (te = ml(t), e[25] = t, e[26] = te) : te = e[26], _ = te, $ = N.map(le);
1199
1199
  const je = ze(V, h);
1200
1200
  j = h === "nested" ? tt(je) : [], B = V.join("\0"), R = $.join("\0"), H = y ?? c ?? nt($, V), W = N.length > 0, A = Q ? "No matching changes" : "No changes", ie = !f && !W, Y = gl(N), U = j.length > 0 || N.length > 0;
1201
- let pe;
1202
- e[27] !== P ? (pe = (xe) => P.has(xe), e[27] = P, e[28] = pe) : pe = e[28], T = j.every(pe);
1201
+ let me;
1202
+ e[27] !== P ? (me = (xe) => P.has(xe), e[27] = P, e[28] = me) : me = e[28], T = j.every(me);
1203
1203
  let Fe;
1204
1204
  e[29] !== P ? (Fe = (xe) => !P.has(xe), e[29] = P, e[30] = Fe) : Fe = e[30], De = j.every(Fe), e[1] = o, e[2] = c, e[3] = t, e[4] = P, e[5] = f, e[6] = C, e[7] = y, e[8] = h, e[9] = T, e[10] = _, e[11] = A, e[12] = k, e[13] = R, e[14] = $, e[15] = N, e[16] = B, e[17] = V, e[18] = j, e[19] = W, e[20] = U, e[21] = H, e[22] = ie, e[23] = De, e[24] = Y;
1205
1205
  } else
1206
1206
  T = e[9], _ = e[10], A = e[11], k = e[12], R = e[13], $ = e[14], N = e[15], B = e[16], V = e[17], j = e[18], W = e[19], U = e[20], H = e[21], ie = e[22], De = e[23], Y = e[24];
1207
- const yt = De, Pt = N.length === 0 || m.allExpanded, vt = N.length === 0 || m.allCollapsed, ke = !U || T && Pt, Re = !U || yt && vt;
1207
+ const yt = De, Pt = N.length === 0 || p.allExpanded, vt = N.length === 0 || p.allCollapsed, ke = !U || T && Pt, Re = !U || yt && vt;
1208
1208
  let Ce, ye;
1209
1209
  e[31] !== B || e[32] !== I || e[33] !== h ? (Ce = () => {
1210
1210
  const K = B ? B.split("\0") : [], Q = ze(K, h);
@@ -1228,10 +1228,10 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
1228
1228
  let Le;
1229
1229
  e[47] !== $ || e[48] !== H || e[49] !== w ? (Le = (K) => {
1230
1230
  const Q = H ? $.indexOf(H) : -1, te = $.indexOf(K), je = Q >= 0 && te >= 0 && te < Q ? "up" : "down";
1231
- w(K), u((pe) => ({
1231
+ w(K), u((me) => ({
1232
1232
  action: "expand-selected",
1233
1233
  direction: je,
1234
- id: (pe?.id ?? 0) + 1,
1234
+ id: (me?.id ?? 0) + 1,
1235
1235
  path: K
1236
1236
  }));
1237
1237
  }, e[47] = $, e[48] = H, e[49] = w, e[50] = Le) : Le = e[50];
@@ -1255,7 +1255,7 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
1255
1255
  ce
1256
1256
  ] }), e[75] = de, e[76] = ce, e[77] = fe) : fe = e[77];
1257
1257
  let he;
1258
- e[78] !== p || e[79] !== S || e[80] !== A || e[81] !== N || e[82] !== W || e[83] !== f || e[84] !== i || e[85] !== H || e[86] !== w ? (he = f ? /* @__PURE__ */ r(xl, {}) : W ? /* @__PURE__ */ r(O, { flex: "1", minH: "0", children: /* @__PURE__ */ r(el, { diffs: N, selectedDiffPath: H, onLoadDiff: i, onSelectDiffPath: w, onExpansionStateChange: D, expansionCommand: p, diffViewMode: S }) }) : /* @__PURE__ */ r(O, { flex: "1", minH: "0", px: "md", py: "lg", display: "flex", alignItems: "center", justifyContent: "center", bg: "bg", children: /* @__PURE__ */ r(Se, { title: A }) }), e[78] = p, e[79] = S, e[80] = A, e[81] = N, e[82] = W, e[83] = f, e[84] = i, e[85] = H, e[86] = w, e[87] = he) : he = e[87];
1258
+ e[78] !== m || e[79] !== S || e[80] !== A || e[81] !== N || e[82] !== W || e[83] !== f || e[84] !== i || e[85] !== H || e[86] !== w ? (he = f ? /* @__PURE__ */ r(xl, {}) : W ? /* @__PURE__ */ r(O, { flex: "1", minH: "0", children: /* @__PURE__ */ r(el, { diffs: N, selectedDiffPath: H, onLoadDiff: i, onSelectDiffPath: w, onExpansionStateChange: D, expansionCommand: m, diffViewMode: S }) }) : /* @__PURE__ */ r(O, { flex: "1", minH: "0", px: "md", py: "lg", display: "flex", alignItems: "center", justifyContent: "center", bg: "bg", children: /* @__PURE__ */ r(Se, { title: A }) }), e[78] = m, e[79] = S, e[80] = A, e[81] = N, e[82] = W, e[83] = f, e[84] = i, e[85] = H, e[86] = w, e[87] = he) : he = e[87];
1259
1259
  let _e;
1260
1260
  e[88] !== fe || e[89] !== he ? (_e = /* @__PURE__ */ G(be, { h: "full", minH: "0", minW: "0", flex: "1", bg: "bg", gap: "0", children: [
1261
1261
  fe,
@@ -1263,12 +1263,12 @@ const tl = (n) => n.split("/").map((e) => e.trim()).filter(Boolean).join("/"), w
1263
1263
  ] }), e[88] = fe, e[89] = he, e[90] = _e) : _e = e[90];
1264
1264
  const $e = _e;
1265
1265
  let ue;
1266
- e[91] !== _ || e[92] !== P || e[93] !== V || e[94] !== a || e[95] !== H || e[96] !== C || e[97] !== He || e[98] !== v || e[99] !== L || e[100] !== h ? (ue = /* @__PURE__ */ r(ml, { paths: V, selectedPath: H, viewMode: h, searchQuery: C, expandedFolderIds: P, onSelectPath: He, onSearchQueryChange: v, onToggleFolder: L, resolveFileIcon: a, changeByPath: _ }), e[91] = _, e[92] = P, e[93] = V, e[94] = a, e[95] = H, e[96] = C, e[97] = He, e[98] = v, e[99] = L, e[100] = h, e[101] = ue) : ue = e[101];
1266
+ e[91] !== _ || e[92] !== P || e[93] !== V || e[94] !== a || e[95] !== H || e[96] !== C || e[97] !== He || e[98] !== v || e[99] !== L || e[100] !== h ? (ue = /* @__PURE__ */ r(pl, { paths: V, selectedPath: H, viewMode: h, searchQuery: C, expandedFolderIds: P, onSelectPath: He, onSearchQueryChange: v, onToggleFolder: L, resolveFileIcon: a, changeByPath: _ }), e[91] = _, e[92] = P, e[93] = V, e[94] = a, e[95] = H, e[96] = C, e[97] = He, e[98] = v, e[99] = L, e[100] = h, e[101] = ue) : ue = e[101];
1267
1267
  const Ve = !g;
1268
- let me;
1269
- e[102] !== x ? (me = (K) => x(!K), e[102] = x, e[103] = me) : me = e[103];
1268
+ let pe;
1269
+ e[102] !== x ? (pe = (K) => x(!K), e[102] = x, e[103] = pe) : pe = e[103];
1270
1270
  let Te;
1271
- return e[104] !== $e || e[105] !== ue || e[106] !== Ve || e[107] !== me ? (Te = /* @__PURE__ */ r(Bt, { flex: "1", minH: "0", minW: "0", bg: "bg", gap: "0", "data-testid": "diff-viewer", children: /* @__PURE__ */ r(nn, { flex: "1", minH: "0", minW: "0", resizablePanel: ue, contentPanel: $e, collapsed: Ve, defaultSizePx: 288, minSizePx: 224, contentMinSizePx: 320, resizeLabel: "Resize file list panel", onCollapsedChange: me }) }), e[104] = $e, e[105] = ue, e[106] = Ve, e[107] = me, e[108] = Te) : Te = e[108], Te;
1271
+ return e[104] !== $e || e[105] !== ue || e[106] !== Ve || e[107] !== pe ? (Te = /* @__PURE__ */ r(Bt, { flex: "1", minH: "0", minW: "0", bg: "bg", gap: "0", "data-testid": "diff-viewer", children: /* @__PURE__ */ r(nn, { flex: "1", minH: "0", minW: "0", resizablePanel: ue, contentPanel: $e, collapsed: Ve, defaultSizePx: 288, minSizePx: 224, contentMinSizePx: 320, resizeLabel: "Resize file list panel", separator: "line", onCollapsedChange: pe }) }), e[104] = $e, e[105] = ue, e[106] = Ve, e[107] = pe, e[108] = Te) : Te = e[108], Te;
1272
1272
  };
1273
1273
  function wl(n) {
1274
1274
  return /* @__PURE__ */ r(at, { h: "72px", w: "full", flexShrink: "0", borderRadius: "xs" }, n);
@@ -1292,7 +1292,7 @@ export {
1292
1292
  el as DiffDrawer,
1293
1293
  Hl as DiffViewer,
1294
1294
  fl as FileChangeBadge,
1295
- mn as LARGE_DIFF_LINE_THRESHOLD,
1295
+ pn as LARGE_DIFF_LINE_THRESHOLD,
1296
1296
  Ue as isBinaryDiffPath,
1297
1297
  bn as isGeneratedDiffPath,
1298
1298
  ft as preloadCodeEditor,