@pstdio/ui 0.40.0 → 0.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/dist/{MermaidComponent-81jr28u4.js → MermaidComponent-BCiI63_G.js} +3 -3
  2. package/dist/{MermaidComponent-81jr28u4.js.map → MermaidComponent-BCiI63_G.js.map} +1 -1
  3. package/dist/chat-question-bubble-w2vMbFsS.js +68 -0
  4. package/dist/chat-question-bubble-w2vMbFsS.js.map +1 -0
  5. package/dist/chat-ui.d.ts +96 -21
  6. package/dist/chat-ui.js +2091 -1441
  7. package/dist/chat-ui.js.map +1 -1
  8. package/dist/{data-table-stats-row-CpRe_xK2.js → data-table-stats-row-EiTEONdY.js} +2 -2
  9. package/dist/{data-table-stats-row-CpRe_xK2.js.map → data-table-stats-row-EiTEONdY.js.map} +1 -1
  10. package/dist/data-table.d.ts +27 -7
  11. package/dist/data-table.js +1035 -872
  12. package/dist/data-table.js.map +1 -1
  13. package/dist/diff-bubble-DewUd_2w.js +61 -0
  14. package/dist/diff-bubble-DewUd_2w.js.map +1 -0
  15. package/dist/{diff-drawer-45rpk3aq.js → diff-drawer-BwZBOObe.js} +106 -85
  16. package/dist/diff-drawer-BwZBOObe.js.map +1 -0
  17. package/dist/diff-viewer-kOOd7C7h.js +574 -0
  18. package/dist/diff-viewer-kOOd7C7h.js.map +1 -0
  19. package/dist/diff.d.ts +11 -0
  20. package/dist/diff.js +107 -98
  21. package/dist/diff.js.map +1 -1
  22. package/dist/display-sort-control-DPxc0e5z.js +587 -0
  23. package/dist/display-sort-control-DPxc0e5z.js.map +1 -0
  24. package/dist/{workspace-badge-Brm3Xr3m.d.ts → host-storage-DP0RLj4i.d.ts} +15 -1
  25. package/dist/{index-Bfddrlz8.d.ts → index-C9mywhyX.d.ts} +50 -14
  26. package/dist/index-D3UJyWWh.d.ts +501 -0
  27. package/dist/{index-CbtbcvKm.d.ts → index-DlmvvQ6x.d.ts} +1 -1
  28. package/dist/index.d.ts +44 -19
  29. package/dist/index.js +941 -908
  30. package/dist/index.js.map +1 -1
  31. package/dist/kanban-renderer.d.ts +2 -326
  32. package/dist/kanban-renderer.js +991 -610
  33. package/dist/kanban-renderer.js.map +1 -1
  34. package/dist/list-row-DM0DiIrN.js +1167 -0
  35. package/dist/list-row-DM0DiIrN.js.map +1 -0
  36. package/dist/{mermaid-renderer-DImi0fDp.js → mermaid-renderer-0PmNkOXI.js} +29 -29
  37. package/dist/mermaid-renderer-0PmNkOXI.js.map +1 -0
  38. package/dist/mermaid.js +1 -1
  39. package/dist/param-editor.js +2 -3
  40. package/dist/prism-JVIsQMoJ.js +1029 -0
  41. package/dist/prism-JVIsQMoJ.js.map +1 -0
  42. package/dist/{resource-badge-95WPVlZf.d.ts → resource-badge-nOWPqxFU.d.ts} +1 -0
  43. package/dist/rich-text-DM24VNQZ.js +10447 -0
  44. package/dist/rich-text-DM24VNQZ.js.map +1 -0
  45. package/dist/rich-text.d.ts +2 -2
  46. package/dist/rich-text.js +2 -2
  47. package/dist/style.css +1 -1
  48. package/dist/terminal.d.ts +5 -63
  49. package/dist/terminal.js +102 -122
  50. package/dist/terminal.js.map +1 -1
  51. package/dist/{theme-CbmSEbRF.js → theme-at0rtSnX.js} +435 -245
  52. package/dist/theme-at0rtSnX.js.map +1 -0
  53. package/dist/theme-kKuLN2jb.js +80 -0
  54. package/dist/theme-kKuLN2jb.js.map +1 -0
  55. package/dist/theme-preference-BV4cbJNB.js +115 -0
  56. package/dist/theme-preference-BV4cbJNB.js.map +1 -0
  57. package/dist/theme.js +3 -2
  58. package/dist/{tree-list-BNZwjQZA.js → tree-list-Cqgl8mnN.js} +255 -250
  59. package/dist/tree-list-Cqgl8mnN.js.map +1 -0
  60. package/package.json +4 -4
  61. package/dist/diff-bubble-DZsarmSG.js +0 -61
  62. package/dist/diff-bubble-DZsarmSG.js.map +0 -1
  63. package/dist/diff-drawer-45rpk3aq.js.map +0 -1
  64. package/dist/diff-viewer-BP_mI6Wx.js +0 -558
  65. package/dist/diff-viewer-BP_mI6Wx.js.map +0 -1
  66. package/dist/list-row-uqD-q4gv.js +0 -1018
  67. package/dist/list-row-uqD-q4gv.js.map +0 -1
  68. package/dist/mermaid-renderer-DImi0fDp.js.map +0 -1
  69. package/dist/param-editor-BQd4AOUP.js +0 -225
  70. package/dist/param-editor-BQd4AOUP.js.map +0 -1
  71. package/dist/param-editor-field-BJ_rLUnV.js +0 -2385
  72. package/dist/param-editor-field-BJ_rLUnV.js.map +0 -1
  73. package/dist/prism-BStPsJSB.js +0 -658
  74. package/dist/prism-BStPsJSB.js.map +0 -1
  75. package/dist/rich-text-VYAmEigU.js +0 -6979
  76. package/dist/rich-text-VYAmEigU.js.map +0 -1
  77. package/dist/slider-hwHYe98I.js +0 -423
  78. package/dist/slider-hwHYe98I.js.map +0 -1
  79. package/dist/theme-CbmSEbRF.js.map +0 -1
  80. package/dist/theme-preference-pzfuK5cH.js +0 -101
  81. package/dist/theme-preference-pzfuK5cH.js.map +0 -1
  82. package/dist/tree-list-BNZwjQZA.js.map +0 -1
  83. package/dist/types-DWA3enV6.d.ts +0 -182
@@ -1,4 +1,4 @@
1
- import { c as e, n as t, t as n } from "./list-row-uqD-q4gv.js";
1
+ import { l as e, n as t, t as n } from "./list-row-DM0DiIrN.js";
2
2
  import { Box as r, Flex as i, HStack as a, IconButton as o, Input as s, Menu as c, Stack as l, Text as u, useSlotRecipe as d } from "@chakra-ui/react";
3
3
  import { c as f } from "react/compiler-runtime";
4
4
  import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
@@ -306,23 +306,23 @@ var oe = (e) => {
306
306
  contentMinSize: O,
307
307
  separatorSize: re
308
308
  }), ve = J ? 0 : ue(q, Y.minSize, Y.maxSize), t[23] = P.dimension, t[24] = J, t[25] = O, t[26] = a, t[27] = D, t[28] = q, t[29] = ne, t[30] = re, t[31] = Y, t[32] = ve) : (Y = t[31], ve = t[32]);
309
- let ye = ve, be = `${B}-content`, X = `${B}-resizable`, xe = `${ye}px`, Se;
310
- t[33] !== l.style || t[34] !== xe ? (Se = {
309
+ let ye = ve, be = `${B}-content`, xe = `${B}-resizable`, Se = `${ye}px`, Ce;
310
+ t[33] !== l.style || t[34] !== Se ? (Ce = {
311
311
  ...l.style,
312
- "--split-size": xe
313
- }, t[33] = l.style, t[34] = xe, t[35] = Se) : Se = t[35];
314
- let Ce = Se, we, Te;
315
- t[36] === E ? (we = t[37], Te = t[38]) : (we = () => {
312
+ "--split-size": Se
313
+ }, t[33] = l.style, t[34] = Se, t[35] = Ce) : Ce = t[35];
314
+ let we = Ce, Te, Ee;
315
+ t[36] === E ? (Te = t[37], Ee = t[38]) : (Te = () => {
316
316
  ie.current = E, ae(E);
317
- }, Te = [E], t[36] = E, t[37] = we, t[38] = Te), y(we, Te);
318
- let Ee, De;
319
- t[39] === Symbol.for("react.memo_cache_sentinel") ? (Ee = () => () => K.current(), De = [], t[39] = Ee, t[40] = De) : (Ee = t[39], De = t[40]), y(Ee, De);
320
- let Oe;
321
- t[41] === Symbol.for("react.memo_cache_sentinel") ? (Oe = (e) => {
317
+ }, Ee = [E], t[36] = E, t[37] = Te, t[38] = Ee), y(Te, Ee);
318
+ let De, Oe;
319
+ t[39] === Symbol.for("react.memo_cache_sentinel") ? (De = () => () => K.current(), Oe = [], t[39] = De, t[40] = Oe) : (De = t[39], Oe = t[40]), y(De, Oe);
320
+ let ke;
321
+ t[41] === Symbol.for("react.memo_cache_sentinel") ? (ke = (e) => {
322
322
  V.current?.style.setProperty("--split-size", `${e}px`);
323
- }, t[41] = Oe) : Oe = t[41];
324
- let ke = Oe, Ae;
325
- t[42] !== P.dimension || t[43] !== O || t[44] !== a || t[45] !== D || t[46] !== s ? (Ae = (e) => {
323
+ }, t[41] = ke) : ke = t[41];
324
+ let Ae = ke, je;
325
+ t[42] !== P.dimension || t[43] !== O || t[44] !== a || t[45] !== D || t[46] !== s ? (je = (e) => {
326
326
  let t = W({
327
327
  rootSize: de(V.current, P.dimension),
328
328
  fallbackRootSize: ce[P.dimension],
@@ -331,14 +331,14 @@ var oe = (e) => {
331
331
  contentMinSize: O,
332
332
  separatorSize: de(te.current, P.dimension)
333
333
  }), n = ue(e, t.minSize, t.maxSize);
334
- ie.current = n, ae(n), ke(n), s?.(n);
335
- }, t[42] = P.dimension, t[43] = O, t[44] = a, t[45] = D, t[46] = s, t[47] = Ae) : Ae = t[47];
336
- let Z = Ae, je;
337
- t[48] !== r || t[49] !== o ? (je = (e) => {
334
+ ie.current = n, ae(n), Ae(n), s?.(n);
335
+ }, t[42] = P.dimension, t[43] = O, t[44] = a, t[45] = D, t[46] = s, t[47] = je) : je = t[47];
336
+ let X = je, Me;
337
+ t[48] !== r || t[49] !== o ? (Me = (e) => {
338
338
  r === void 0 && he(e), o?.(e);
339
- }, t[48] = r, t[49] = o, t[50] = je) : je = t[50];
340
- let Q = je, Me;
341
- t[51] !== P.cursor || t[52] !== P.dimension || t[53] !== P.pointerCoordinate || t[54] !== J || t[55] !== k || t[56] !== Z || t[57] !== O || t[58] !== a || t[59] !== D || t[60] !== T || t[61] !== Q ? (Me = (e) => {
339
+ }, t[48] = r, t[49] = o, t[50] = Me) : Me = t[50];
340
+ let Z = Me, Ne;
341
+ t[51] !== P.cursor || t[52] !== P.dimension || t[53] !== P.pointerCoordinate || t[54] !== J || t[55] !== k || t[56] !== X || t[57] !== O || t[58] !== a || t[59] !== D || t[60] !== T || t[61] !== Z ? (Ne = (e) => {
342
342
  if (e.button !== 0 || J && !k) return;
343
343
  e.preventDefault(), K.current();
344
344
  let t = e.currentTarget, n = W({
@@ -352,7 +352,7 @@ var oe = (e) => {
352
352
  H.current && (H.current.style.pointerEvents = e), G.current && (G.current.style.pointerEvents = e);
353
353
  }, f = () => {
354
354
  u ||= window.requestAnimationFrame(() => {
355
- u = 0, ke(c);
355
+ u = 0, Ae(c);
356
356
  });
357
357
  }, p = (e) => {
358
358
  let t = ee({
@@ -365,21 +365,21 @@ var oe = (e) => {
365
365
  });
366
366
  l = t.collapsed, c = t.size, f();
367
367
  }, m = () => {
368
- window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", m), window.removeEventListener("pointercancel", m), window.removeEventListener("blur", m), document.body.style.cursor = o, document.body.style.userSelect = s, t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), d(""), _e(!1), u &&= (window.cancelAnimationFrame(u), 0), K.current = me, l ? (ke(0), Q(!0)) : (Q(!1), Z(c));
368
+ window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", m), window.removeEventListener("pointercancel", m), window.removeEventListener("blur", m), document.body.style.cursor = o, document.body.style.userSelect = s, t.hasPointerCapture(e.pointerId) && t.releasePointerCapture(e.pointerId), d(""), _e(!1), u &&= (window.cancelAnimationFrame(u), 0), K.current = me, l ? (Ae(0), Z(!0)) : (Z(!1), X(c));
369
369
  };
370
370
  K.current = m, t.setPointerCapture(e.pointerId), document.body.style.cursor = P.cursor, document.body.style.userSelect = "none", d("none"), _e(!0), window.addEventListener("pointermove", p), window.addEventListener("pointerup", m, { once: !0 }), window.addEventListener("pointercancel", m, { once: !0 }), window.addEventListener("blur", m, { once: !0 });
371
- }, t[51] = P.cursor, t[52] = P.dimension, t[53] = P.pointerCoordinate, t[54] = J, t[55] = k, t[56] = Z, t[57] = O, t[58] = a, t[59] = D, t[60] = T, t[61] = Q, t[62] = Me) : Me = t[62];
372
- let Ne = Me, Pe;
373
- t[63] !== k || t[64] !== Q ? (Pe = () => {
374
- k && Q(!0);
375
- }, t[63] = k, t[64] = Q, t[65] = Pe) : Pe = t[65];
376
- let Fe = Pe, Ie;
377
- t[66] !== P.deltaDirection || t[67] !== P.dimension || t[68] !== Y || t[69] !== J || t[70] !== k || t[71] !== Z || t[72] !== Q ? (Ie = (e) => {
371
+ }, t[51] = P.cursor, t[52] = P.dimension, t[53] = P.pointerCoordinate, t[54] = J, t[55] = k, t[56] = X, t[57] = O, t[58] = a, t[59] = D, t[60] = T, t[61] = Z, t[62] = Ne) : Ne = t[62];
372
+ let Pe = Ne, Fe;
373
+ t[63] !== k || t[64] !== Z ? (Fe = () => {
374
+ k && Z(!0);
375
+ }, t[63] = k, t[64] = Z, t[65] = Fe) : Fe = t[65];
376
+ let Ie = Fe, Le;
377
+ t[66] !== P.deltaDirection || t[67] !== P.dimension || t[68] !== Y || t[69] !== J || t[70] !== k || t[71] !== X || t[72] !== Z ? (Le = (e) => {
378
378
  let t = P.dimension === "width" ? "ArrowLeft" : "ArrowUp", n = P.dimension === "width" ? "ArrowRight" : "ArrowDown", r = ie.current;
379
- J && (e.key === t || e.key === n || e.key === "End") ? (e.preventDefault(), Q(!1), Z(r)) : e.key === t ? (e.preventDefault(), Z(r - le * P.deltaDirection)) : e.key === n ? (e.preventDefault(), Z(r + le * P.deltaDirection)) : e.key === "Home" ? (e.preventDefault(), k ? Q(!0) : Z(Y.minSize)) : e.key === "End" && (e.preventDefault(), Z(Y.maxSize));
380
- }, t[66] = P.deltaDirection, t[67] = P.dimension, t[68] = Y, t[69] = J, t[70] = k, t[71] = Z, t[72] = Q, t[73] = Ie) : Ie = t[73];
381
- let Le = Ie, $;
382
- t[74] !== P || t[75] !== Y || t[76] !== J || t[77] !== k || t[78] !== n || t[79] !== be || t[80] !== ge || t[81] !== Fe || t[82] !== Le || t[83] !== Ne || t[84] !== c || t[85] !== X || t[86] !== A || t[87] !== ye || t[88] !== j || t[89] !== z ? ($ = /* @__PURE__ */ m(oe, {
379
+ J && (e.key === t || e.key === n || e.key === "End") ? (e.preventDefault(), Z(!1), X(r)) : e.key === t ? (e.preventDefault(), X(r - le * P.deltaDirection)) : e.key === n ? (e.preventDefault(), X(r + le * P.deltaDirection)) : e.key === "Home" ? (e.preventDefault(), k ? Z(!0) : X(Y.minSize)) : e.key === "End" && (e.preventDefault(), X(Y.maxSize));
380
+ }, t[66] = P.deltaDirection, t[67] = P.dimension, t[68] = Y, t[69] = J, t[70] = k, t[71] = X, t[72] = Z, t[73] = Le) : Le = t[73];
381
+ let Re = Le, Q;
382
+ t[74] !== P || t[75] !== Y || t[76] !== J || t[77] !== k || t[78] !== n || t[79] !== be || t[80] !== ge || t[81] !== Ie || t[82] !== Re || t[83] !== Pe || t[84] !== c || t[85] !== xe || t[86] !== A || t[87] !== ye || t[88] !== j || t[89] !== z ? (Q = /* @__PURE__ */ m(oe, {
383
383
  styles: z,
384
384
  axis: P,
385
385
  bounds: Y,
@@ -389,31 +389,49 @@ var oe = (e) => {
389
389
  contentPanelId: be,
390
390
  contentPanelRef: G,
391
391
  resizablePanel: c,
392
- resizablePanelId: X,
392
+ resizablePanelId: xe,
393
393
  resizablePanelRef: H,
394
394
  dragging: ge,
395
395
  resizeLabel: A,
396
396
  resolvedPanelSize: ye,
397
397
  separator: j,
398
398
  separatorRef: te,
399
- onCollapse: Fe,
400
- onResizeKeyDown: Le,
401
- onResizeStart: Ne
402
- }), t[74] = P, t[75] = Y, t[76] = J, t[77] = k, t[78] = n, t[79] = be, t[80] = ge, t[81] = Fe, t[82] = Le, t[83] = Ne, t[84] = c, t[85] = X, t[86] = A, t[87] = ye, t[88] = j, t[89] = z, t[90] = $) : $ = t[90];
403
- let Re;
404
- return t[91] !== l || t[92] !== Ce || t[93] !== z.root || t[94] !== $ ? (Re = /* @__PURE__ */ m(i, {
399
+ onCollapse: Ie,
400
+ onResizeKeyDown: Re,
401
+ onResizeStart: Pe
402
+ }), t[74] = P, t[75] = Y, t[76] = J, t[77] = k, t[78] = n, t[79] = be, t[80] = ge, t[81] = Ie, t[82] = Re, t[83] = Pe, t[84] = c, t[85] = xe, t[86] = A, t[87] = ye, t[88] = j, t[89] = z, t[90] = Q) : Q = t[90];
403
+ let $;
404
+ return t[91] !== l || t[92] !== we || t[93] !== z.root || t[94] !== Q ? ($ = /* @__PURE__ */ m(i, {
405
405
  ref: V,
406
406
  css: z.root,
407
407
  ...l,
408
- style: Ce,
409
- children: $
410
- }), t[91] = l, t[92] = Ce, t[93] = z.root, t[94] = $, t[95] = Re) : Re = t[95], Re;
408
+ style: we,
409
+ children: Q
410
+ }), t[91] = l, t[92] = we, t[93] = z.root, t[94] = Q, t[95] = $) : $ = t[95], $;
411
411
  };
412
412
  function pe() {}
413
413
  function me() {}
414
414
  //#endregion
415
- //#region src/components/tree-list/tree-list-background.tsx
416
- var he = (t) => {
415
+ //#region src/components/primitives/drop-indicator.tsx
416
+ var he = (e) => {
417
+ let t = f(8), n, i;
418
+ t[0] === e ? (n = t[1], i = t[2]) : ({orientation: i, ...n} = e, t[0] = e, t[1] = n, t[2] = i);
419
+ let a = i === void 0 ? "horizontal" : i, o;
420
+ t[3] === a ? o = t[4] : (o = a === "vertical" ? {
421
+ insetY: "0",
422
+ w: "drop-indicator"
423
+ } : {
424
+ insetX: "0",
425
+ h: "drop-indicator"
426
+ }, t[3] = a, t[4] = o);
427
+ let s;
428
+ return t[5] !== n || t[6] !== o ? (s = /* @__PURE__ */ m(r, {
429
+ "aria-hidden": !0,
430
+ layerStyle: "dropIndicator",
431
+ ...o,
432
+ ...n
433
+ }), t[5] = n, t[6] = o, t[7] = s) : s = t[7], s;
434
+ }, ge = (t) => {
417
435
  let n = f(8), { actions: i, children: a } = t, o;
418
436
  n[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ m(r, {
419
437
  position: "absolute",
@@ -447,7 +465,7 @@ var he = (t) => {
447
465
  maxW: "full",
448
466
  children: [s, c]
449
467
  }), n[5] = s, n[6] = c, n[7] = l) : l = n[7], l;
450
- }, ge = (e, t) => t.includes(e), _e = (e, t) => Array.isArray(t) ? t.includes(e) : t === e, J = (e) => e.isNavigable || e.navigationIntent !== void 0, Y = (e) => e.children ?? [], ve = (e) => Y(e).length > 0 || e.isContainer === !0, ye = (e) => {
468
+ }, _e = (e, t) => t.includes(e), J = (e, t) => Array.isArray(t) ? t.includes(e) : t === e, Y = (e) => e.isNavigable || e.navigationIntent !== void 0, ve = (e) => e.children ?? [], ye = (e) => ve(e).length > 0 || e.isContainer === !0, be = (e) => {
451
469
  let { rows: t, sectionId: n, nodes: r, expandedNodeIds: i, level: a, parentNodeId: o } = e;
452
470
  for (let e of r) {
453
471
  t.push({
@@ -458,8 +476,8 @@ var he = (t) => {
458
476
  level: a,
459
477
  parentNodeId: o
460
478
  });
461
- let r = Y(e);
462
- r.length !== 0 && ge(e.id, i) && ye({
479
+ let r = ve(e);
480
+ r.length !== 0 && _e(e.id, i) && be({
463
481
  rows: t,
464
482
  sectionId: n,
465
483
  nodes: r,
@@ -468,10 +486,10 @@ var he = (t) => {
468
486
  parentNodeId: e.id
469
487
  });
470
488
  }
471
- }, be = (e, t, n) => {
489
+ }, xe = (e, t, n) => {
472
490
  let r = [];
473
491
  for (let i of e) {
474
- let e = i.collapsible !== !1 && i.label !== void 0, a = !e || ge(i.id, t);
492
+ let e = i.collapsible !== !1 && i.label !== void 0, a = !e || _e(i.id, t);
475
493
  if (i.label && r.push({
476
494
  kind: "section-header",
477
495
  key: `header:${i.id}`,
@@ -489,7 +507,7 @@ var he = (t) => {
489
507
  });
490
508
  continue;
491
509
  }
492
- ye({
510
+ be({
493
511
  rows: r,
494
512
  sectionId: i.id,
495
513
  nodes: i.nodes,
@@ -499,14 +517,14 @@ var he = (t) => {
499
517
  }
500
518
  }
501
519
  return r;
502
- }, X = (e) => e.kind === "node" ? e.node.id : e.key, xe = (e) => e.kind === "node" ? e.node.disabled !== !0 : e.kind === "section-header" && e.collapsible, Se = (e) => e.filter(xe), Ce = (e, t, n) => {
503
- let r = Se(n), i = new Set(r.map(X));
520
+ }, Se = (e) => e.kind === "node" ? e.node.id : e.key, Ce = (e) => e.kind === "node" ? e.node.disabled !== !0 : e.kind === "section-header" && e.collapsible, we = (e) => e.filter(Ce), Te = (e, t, n) => {
521
+ let r = we(n), i = new Set(r.map(Se));
504
522
  if (e && i.has(e)) return e;
505
- let a = (Array.isArray(t) ? t : t ? [t] : []).find((e) => i.has(e));
523
+ let a = (t ? [t].flat() : []).find((e) => i.has(e));
506
524
  if (a) return a;
507
525
  let o = r[0];
508
- return o ? X(o) : void 0;
509
- }, we = (e) => {
526
+ return o ? Se(o) : void 0;
527
+ }, Ee = (e) => {
510
528
  let { row: t, focusableRows: n, currentIndex: r, key: i } = e;
511
529
  if (i === "Enter" || i === " ") return {
512
530
  type: "toggle-section",
@@ -527,8 +545,8 @@ var he = (t) => {
527
545
  type: "toggle-section",
528
546
  sectionId: t.sectionId
529
547
  } : null;
530
- }, Te = (e) => {
531
- let { row: t, focusableRows: n, currentIndex: r, expandedNodeIds: i, key: a } = e, o = ge(t.node.id, i), s = ve(t.node);
548
+ }, De = (e) => {
549
+ let { row: t, focusableRows: n, currentIndex: r, expandedNodeIds: i, key: a } = e, o = _e(t.node.id, i), s = ye(t.node);
532
550
  if (a === "ArrowRight") {
533
551
  if (!s) return null;
534
552
  if (!o) return {
@@ -552,33 +570,33 @@ var he = (t) => {
552
570
  };
553
571
  }
554
572
  return null;
555
- }, Ee = (e) => {
556
- let { rows: t, focusedRowId: n, activeNodeId: r, expandedNodeIds: i, key: a } = e, o = Se(t);
573
+ }, Oe = (e) => {
574
+ let { rows: t, focusedRowId: n, activeNodeId: r, expandedNodeIds: i, key: a } = e, o = we(t);
557
575
  if (o.length === 0) return null;
558
- let s = Ce(n, r, t), c = Math.max(0, o.findIndex((e) => X(e) === s)), l = o[c];
576
+ let s = Te(n, r, t), c = Math.max(0, o.findIndex((e) => Se(e) === s)), l = o[c];
559
577
  if (!l) return null;
560
578
  let u = (e) => {
561
579
  let t = Math.min(Math.max(e, 0), o.length - 1);
562
580
  return {
563
581
  type: "focus",
564
- rowId: X(o[t])
582
+ rowId: Se(o[t])
565
583
  };
566
584
  };
567
- return a === "ArrowDown" ? u(c + 1) : a === "ArrowUp" ? u(c - 1) : a === "Home" ? u(0) : a === "End" ? u(o.length - 1) : l.kind === "section-header" ? we({
585
+ return a === "ArrowDown" ? u(c + 1) : a === "ArrowUp" ? u(c - 1) : a === "Home" ? u(0) : a === "End" ? u(o.length - 1) : l.kind === "section-header" ? Ee({
568
586
  row: l,
569
587
  focusableRows: o,
570
588
  currentIndex: c,
571
589
  key: a
572
- }) : Te({
590
+ }) : De({
573
591
  row: l,
574
592
  focusableRows: o,
575
593
  currentIndex: c,
576
594
  expandedNodeIds: i,
577
595
  key: a
578
596
  });
579
- }, De = "application/x-pstdio-tree-node", Oe = (e, t) => {
580
- e.setData(De, t);
581
- }, ke = (e) => e.getData(De) || void 0, Ae = (e) => {
597
+ }, ke = "application/x-pstdio-tree-node", Ae = (e, t) => {
598
+ e.setData(ke, t);
599
+ }, je = (e) => e.getData(ke) || void 0, X = (e) => {
582
600
  let t = f(8), { children: n, onMoveNode: i } = e, a;
583
601
  t[0] === i ? a = t[1] : (a = (e) => {
584
602
  i && (e.preventDefault(), e.dataTransfer.dropEffect = "move");
@@ -587,7 +605,7 @@ var he = (t) => {
587
605
  t[2] === i ? s = t[3] : (s = (e) => {
588
606
  if (!i) return;
589
607
  e.preventDefault();
590
- let t = ke(e.dataTransfer);
608
+ let t = je(e.dataTransfer);
591
609
  t && i(t);
592
610
  }, t[2] = i, t[3] = s);
593
611
  let c = s, l;
@@ -602,7 +620,7 @@ var he = (t) => {
602
620
  onDrop: c,
603
621
  children: n
604
622
  }), t[4] = n, t[5] = o, t[6] = c, t[7] = l) : l = t[7], l;
605
- }, Z = (e) => e <= 0 ? "sm" : `calc(var(--chakra-spacing-1) + ${e} * 12px)`, je = (e) => {
623
+ }, Me = (e) => e <= 0 ? "sm" : `calc(var(--chakra-spacing-1) + ${e} * 12px)`, Z = (e) => {
606
624
  let { input: t, icon: n, level: a } = e, [o, c] = S(t.defaultValue ?? ""), [l, u] = S(), d = x(null), f = x(!1), p = async () => {
607
625
  if (!f.current) {
608
626
  f.current = !0, u(void 0);
@@ -622,7 +640,7 @@ var he = (t) => {
622
640
  alignItems: "center",
623
641
  gap: "1",
624
642
  pr: "sm",
625
- pl: Z(a),
643
+ pl: Me(a),
626
644
  onMouseDown: (e) => e.stopPropagation(),
627
645
  children: [n ? /* @__PURE__ */ m(r, {
628
646
  boxSize: "16px",
@@ -654,24 +672,24 @@ var he = (t) => {
654
672
  }
655
673
  })]
656
674
  });
657
- }, Q = (e) => {
675
+ }, Ne = (e) => {
658
676
  let t = f(69), { sectionId: r, node: i, level: a, expandedNodeIds: o, activeNodeId: s, rowVariant: c, nodeGap: u, linkComponent: d, tabIndex: p, onFocus: h, onNavigate: g, onToggleNode: _, onMoveNode: v } = e;
659
677
  if (i.inlineInput) {
660
678
  let e;
661
- return t[0] !== a || t[1] !== i.icon || t[2] !== i.inlineInput ? (e = /* @__PURE__ */ m(je, {
679
+ return t[0] !== a || t[1] !== i.icon || t[2] !== i.inlineInput ? (e = /* @__PURE__ */ m(Z, {
662
680
  input: i.inlineInput,
663
681
  icon: i.icon,
664
682
  level: a
665
683
  }), t[0] = a, t[1] = i.icon, t[2] = i.inlineInput, t[3] = e) : e = t[3], e;
666
684
  }
667
685
  let y;
668
- t[4] === i ? y = t[5] : (y = ve(i), t[4] = i, t[5] = y);
686
+ t[4] === i ? y = t[5] : (y = ye(i), t[4] = i, t[5] = y);
669
687
  let b = y, x;
670
- t[6] !== o || t[7] !== b || t[8] !== i.id ? (x = b && ge(i.id, o), t[6] = o, t[7] = b, t[8] = i.id, t[9] = x) : x = t[9];
688
+ t[6] !== o || t[7] !== b || t[8] !== i.id ? (x = b && _e(i.id, o), t[6] = o, t[7] = b, t[8] = i.id, t[9] = x) : x = t[9];
671
689
  let S = x, C;
672
- t[10] !== s || t[11] !== i.id ? (C = _e(i.id, s), t[10] = s, t[11] = i.id, t[12] = C) : C = t[12];
690
+ t[10] !== s || t[11] !== i.id ? (C = J(i.id, s), t[10] = s, t[11] = i.id, t[12] = C) : C = t[12];
673
691
  let w = C, T = i.disabled === !0, E;
674
- t[13] === i ? E = t[14] : (E = J(i), t[13] = i, t[14] = E);
692
+ t[13] === i ? E = t[14] : (E = Y(i), t[13] = i, t[14] = E);
675
693
  let D = E, O = !!(d && i.href && D && !b && !T), k;
676
694
  t[15] !== b || t[16] !== T || t[17] !== D || t[18] !== i || t[19] !== g || t[20] !== _ || t[21] !== r ? (k = () => {
677
695
  if (!T) {
@@ -693,7 +711,7 @@ var he = (t) => {
693
711
  }, t[15] = b, t[16] = T, t[17] = D, t[18] = i, t[19] = g, t[20] = _, t[21] = r, t[22] = k) : k = t[22];
694
712
  let A = k, j;
695
713
  t[23] === i.id ? j = t[24] : (j = (e) => {
696
- Oe(e.dataTransfer, i.id), e.dataTransfer.effectAllowed = "move";
714
+ Ae(e.dataTransfer, i.id), e.dataTransfer.effectAllowed = "move";
697
715
  }, t[23] = i.id, t[24] = j);
698
716
  let M = j, N;
699
717
  t[25] !== i.canDrop || t[26] !== v ? (N = (e) => {
@@ -703,7 +721,7 @@ var he = (t) => {
703
721
  t[28] !== i.canDrop || t[29] !== i.id || t[30] !== v ? (F = (e) => {
704
722
  if (!v || (e.stopPropagation(), !i.canDrop)) return;
705
723
  e.preventDefault();
706
- let t = ke(e.dataTransfer);
724
+ let t = je(e.dataTransfer);
707
725
  t && t !== i.id && v(t, i.id);
708
726
  }, t[28] = i.canDrop, t[29] = i.id, t[30] = v, t[31] = F) : F = t[31];
709
727
  let I = F, L;
@@ -762,7 +780,7 @@ var he = (t) => {
762
780
  onDrop: ie,
763
781
  children: te
764
782
  }), t[62] = u, t[63] = te, t[64] = K, t[65] = ne, t[66] = re, t[67] = ie, t[68] = q) : q = t[68], q;
765
- }, Me = (e) => {
783
+ }, Pe = (e) => {
766
784
  let n = f(9), { sectionId: r, actions: i } = e;
767
785
  if (i.length === 0) return null;
768
786
  let s, l;
@@ -787,7 +805,7 @@ var he = (t) => {
787
805
  }), /* @__PURE__ */ m(c.Positioner, { children: /* @__PURE__ */ m(c.Content, {
788
806
  minW: "160px",
789
807
  bg: "bg",
790
- children: e.menuItems.map(Fe)
808
+ children: e.menuItems.map(Le)
791
809
  }) })] }, e.id) : /* @__PURE__ */ m(o, {
792
810
  variant: "ghost",
793
811
  size: "2xs",
@@ -806,10 +824,10 @@ var he = (t) => {
806
824
  _groupHover: s,
807
825
  _groupFocusWithin: l,
808
826
  transition: "opacity 120ms ease",
809
- onClick: Pe,
827
+ onClick: Ie,
810
828
  children: u
811
829
  }), n[7] = u, n[8] = d), d;
812
- }, Ne = (e) => {
830
+ }, Fe = (e) => {
813
831
  let t = f(32), { section: n, collapsible: i, expanded: o, focusId: s, tabIndex: c, onFocus: l, onToggle: d, onContextMenu: p } = e, g = i ? "pointer" : "default", _ = i ? c : void 0, v = i ? s : void 0, y = i ? o : void 0, b;
814
832
  t[0] === i ? b = t[1] : (b = i ? { bg: "bg.hover" } : void 0, t[0] = i, t[1] = b);
815
833
  let x;
@@ -831,12 +849,11 @@ var he = (t) => {
831
849
  t[9] !== i || t[10] !== o ? (D = i ? /* @__PURE__ */ m(r, {
832
850
  color: "fg.muted",
833
851
  flexShrink: 0,
834
- children: /* @__PURE__ */ m(C, {
835
- size: 14,
836
- style: {
837
- transform: o ? "rotate(90deg)" : "rotate(0deg)",
838
- transition: "120ms"
839
- }
852
+ children: /* @__PURE__ */ m(r, {
853
+ asChild: !0,
854
+ transform: o ? "rotate(90deg)" : "rotate(0deg)",
855
+ transition: "120ms",
856
+ children: /* @__PURE__ */ m(C, { size: 14 })
840
857
  })
841
858
  }) : null, t[9] = i, t[10] = o, t[11] = D) : D = t[11];
842
859
  let O;
@@ -849,7 +866,7 @@ var he = (t) => {
849
866
  let k;
850
867
  t[15] === n.actions ? k = t[16] : (k = n.actions ?? [], t[15] = n.actions, t[16] = k);
851
868
  let A;
852
- t[17] !== n.id || t[18] !== k ? (A = /* @__PURE__ */ m(Me, {
869
+ t[17] !== n.id || t[18] !== k ? (A = /* @__PURE__ */ m(Pe, {
853
870
  sectionId: n.id,
854
871
  actions: k
855
872
  }), t[17] = n.id, t[18] = k, t[19] = A) : A = t[19];
@@ -876,10 +893,10 @@ var he = (t) => {
876
893
  children: [O, A]
877
894
  }), t[20] = g, t[21] = _, t[22] = O, t[23] = A, t[24] = v, t[25] = y, t[26] = b, t[27] = x, t[28] = S, t[29] = w, t[30] = T, t[31] = j) : j = t[31], j;
878
895
  };
879
- function Pe(e) {
896
+ function Ie(e) {
880
897
  return e.stopPropagation();
881
898
  }
882
- function Fe(e) {
899
+ function Le(e) {
883
900
  return /* @__PURE__ */ m(c.Item, {
884
901
  value: e.id,
885
902
  disabled: e.disabled,
@@ -889,10 +906,10 @@ function Fe(e) {
889
906
  }
890
907
  //#endregion
891
908
  //#region src/components/tree-list/tree-list-reorder.ts
892
- var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re = (e) => e.slice(8), ze = "after-section:", Be = (e) => `${ze}${e}`, Ve = (e) => e.startsWith(ze), He = (e) => e.slice(14), Ue = (e) => {
893
- if ($(e)) return Re(e);
894
- if (Ve(e)) return He(e);
895
- }, We = (e, t) => {
909
+ var Re = "section:", Q = (e) => `${Re}${e}`, $ = (e) => e.startsWith(Re), ze = (e) => e.slice(8), Be = "after-section:", Ve = (e) => `${Be}${e}`, He = (e) => e.startsWith(Be), Ue = (e) => e.slice(14), We = (e) => {
910
+ if ($(e)) return ze(e);
911
+ if (He(e)) return Ue(e);
912
+ }, Ge = (e, t) => {
896
913
  for (let n of e) {
897
914
  let e = n.nodes.findIndex((e) => e.id === t);
898
915
  if (e >= 0) return {
@@ -901,13 +918,13 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
901
918
  node: n.nodes[e]
902
919
  };
903
920
  }
904
- }, Ge = (e, t) => t?.(e) ?? !0, Ke = (e, t, n, r) => {
921
+ }, Ke = (e, t) => t?.(e) ?? !0, qe = (e, t, n, r) => {
905
922
  if (t === n) return !0;
906
- let i = Ue(n);
923
+ let i = We(n);
907
924
  if ($(t)) {
908
925
  if (i === void 0) return !1;
909
- let n = e.find((e) => e.id === Re(t)), a = e.find((e) => e.id === i);
910
- return !n || !a || n.canReorder === !1 || a.canReorder === !1 ? !1 : Ge({
926
+ let n = e.find((e) => e.id === ze(t)), a = e.find((e) => e.id === i);
927
+ return !n || !a || n.canReorder === !1 || a.canReorder === !1 ? !1 : Ke({
911
928
  source: {
912
929
  kind: "section",
913
930
  sectionId: n.id,
@@ -922,10 +939,10 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
922
939
  }
923
940
  }, r);
924
941
  }
925
- let a = We(e, t);
942
+ let a = Ge(e, t);
926
943
  if (!a || a.node.canReorder === !1) return !1;
927
- let o = i === void 0 ? void 0 : e.find((e) => e.id === i), s = i === void 0 ? We(e, n) : void 0, c = o ?? s?.section;
928
- return !c || c.canReorder === !1 || s?.node.canReorder === !1 ? !1 : Ge({
944
+ let o = i === void 0 ? void 0 : e.find((e) => e.id === i), s = i === void 0 ? Ge(e, n) : void 0, c = o ?? s?.section;
945
+ return !c || c.canReorder === !1 || s?.node.canReorder === !1 ? !1 : Ke({
929
946
  source: {
930
947
  kind: "node",
931
948
  sectionId: a.section.id,
@@ -944,7 +961,7 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
944
961
  moveScope: c.moveScope
945
962
  }
946
963
  }, r);
947
- }, qe = {
964
+ }, Je = {
948
965
  modifiers: [({ transform: e }) => ({
949
966
  ...e,
950
967
  x: 0
@@ -954,34 +971,34 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
954
971
  y: .2
955
972
  } },
956
973
  measuring: { droppable: { strategy: E.Always } }
957
- }, Je = (e, t, n, r) => {
974
+ }, Ye = (e, t, n, r) => {
958
975
  if (e === t) return null;
959
976
  let i = n ? "before" : "after";
960
- return Ve(t) ? {
977
+ return He(t) ? {
961
978
  kind: "section",
962
- id: He(t),
979
+ id: Ue(t),
963
980
  edge: "after",
964
981
  nextSectionId: r
965
982
  } : $(t) ? {
966
983
  kind: "section",
967
- id: Re(t),
984
+ id: ze(t),
968
985
  edge: $(e) ? i : "inside"
969
986
  } : $(e) ? null : {
970
987
  kind: "node",
971
988
  id: t,
972
989
  edge: i
973
990
  };
974
- }, Ye = (e, t, n, r) => {
975
- let i = Re(t);
976
- if (n.kind !== "section" || n.edge === "inside" || n.id === i || !Ke(e, t, Le(n.id), r)) return null;
991
+ }, Xe = (e, t, n, r) => {
992
+ let i = ze(t);
993
+ if (n.kind !== "section" || n.edge === "inside" || n.id === i || !qe(e, t, Q(n.id), r)) return null;
977
994
  let a = e.map((e) => e.id), o = a.filter((e) => e !== i);
978
995
  return o.splice(o.indexOf(n.id) + +(n.edge === "after"), 0, i), o.every((e, t) => e === a[t]) ? null : {
979
996
  kind: "section",
980
997
  nextSectionIds: o
981
998
  };
982
- }, Xe = (e, t, n, r) => {
999
+ }, Ze = (e, t, n, r) => {
983
1000
  if (n.kind === "node") {
984
- let t = We(e, n.id);
1001
+ let t = Ge(e, n.id);
985
1002
  return t ? {
986
1003
  sectionId: t.section.id,
987
1004
  index: t.index + +(n.edge === "after")
@@ -994,15 +1011,15 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
994
1011
  index: i.nodes.length
995
1012
  };
996
1013
  let a = e.find((e) => e.id === n.nextSectionId);
997
- return a && !a.label && a.canReorder !== !1 && Ke(e, t, Le(a.id), r) ? {
1014
+ return a && !a.label && a.canReorder !== !1 && qe(e, t, Q(a.id), r) ? {
998
1015
  sectionId: a.id,
999
1016
  index: 0
1000
1017
  } : void 0;
1001
- }, Ze = (e, t, n, r, i) => {
1002
- if ($(t)) return Ye(e, t, n, r);
1003
- let a = We(e, t);
1004
- if (!a || a.node.canReorder === !1 || !Ke(e, t, n.kind === "node" ? n.id : Be(n.id), r)) return null;
1005
- let o = Xe(e, t, n, r);
1018
+ }, Qe = (e, t, n, r, i) => {
1019
+ if ($(t)) return Xe(e, t, n, r);
1020
+ let a = Ge(e, t);
1021
+ if (!a || a.node.canReorder === !1 || !qe(e, t, n.kind === "node" ? n.id : Ve(n.id), r)) return null;
1022
+ let o = Ze(e, t, n, r);
1006
1023
  if (o === null) return null;
1007
1024
  let s = a.section.nodes.map((e) => e.id).filter((e) => e !== t);
1008
1025
  if (!o) {
@@ -1036,41 +1053,41 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1036
1053
  [o.sectionId]: c
1037
1054
  }
1038
1055
  };
1039
- }, Qe = (e) => $(e) ? 2 : +!!Ve(e), $e = (e, t) => (n) => {
1040
- let r = String(n.active.id), i = (n) => Ke(e, r, String(n.id), t), a = n.pointerCoordinates && {
1056
+ }, $e = (e) => $(e) ? 2 : +!!He(e), et = (e, t) => (n) => {
1057
+ let r = String(n.active.id), i = (n) => qe(e, r, String(n.id), t), a = n.pointerCoordinates && {
1041
1058
  x: n.collisionRect.left + n.collisionRect.width / 2,
1042
1059
  y: n.pointerCoordinates.y
1043
1060
  }, o = a ? k({
1044
1061
  ...n,
1045
1062
  pointerCoordinates: a
1046
1063
  }).filter(i) : [];
1047
- return o.length === 0 ? O(n).filter(i) : o.sort((e, t) => Qe(String(e.id)) - Qe(String(t.id)));
1048
- }, et = (e, t) => (e instanceof MouseEvent ? e.clientY : 0) + t, tt = (e, t, n) => t ? Je(e, String(t.id), n < t.rect.top + t.rect.height / 2, t.data.current?.nextSectionId) : null, nt = () => `tree-list-loose:${crypto.randomUUID()}`, rt = (e) => (t) => {
1049
- let n = String(t.active.id), r = tt(n, t.over, et(t.activatorEvent, t.delta.y));
1064
+ return o.length === 0 ? O(n).filter(i) : o.sort((e, t) => $e(String(e.id)) - $e(String(t.id)));
1065
+ }, tt = (e, t) => (e instanceof MouseEvent ? e.clientY : 0) + t, nt = (e, t, n) => t ? Ye(e, String(t.id), n < t.rect.top + t.rect.height / 2, t.data.current?.nextSectionId) : null, rt = () => `tree-list-loose:${crypto.randomUUID()}`, it = (e) => (t) => {
1066
+ let n = String(t.active.id), r = nt(n, t.over, tt(t.activatorEvent, t.delta.y));
1050
1067
  if (!r) return;
1051
- let i = Ze(e.sections, n, r, e.canMove, nt());
1068
+ let i = Qe(e.sections, n, r, e.canMove, rt());
1052
1069
  if (!i) return;
1053
1070
  if (i.kind === "section") {
1054
- e.onReorderSections?.(i.nextSectionIds, Re(n), r.id);
1071
+ e.onReorderSections?.(i.nextSectionIds, ze(n), r.id);
1055
1072
  return;
1056
1073
  }
1057
1074
  let a = i.looseSection;
1058
1075
  a && e.onReorderSections?.(a.nextSectionIds, a.id, a.afterSectionId);
1059
1076
  for (let [t, n] of Object.entries(i.orders)) e.onReorderNodes?.(t, n);
1060
- }, it = _(!1), at = (e) => {
1077
+ }, at = _(!1), ot = (e) => {
1061
1078
  let t = f(16), { sections: n, canMove: r, onReorderSections: i, onReorderNodes: a, children: o } = e, s;
1062
1079
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = { activationConstraint: { distance: 4 } }, t[0] = s) : s = t[0];
1063
1080
  let c = P(N(D, s)), l;
1064
- t[1] !== r || t[2] !== n ? (l = $e(n, r), t[1] = r, t[2] = n, t[3] = l) : l = t[3];
1081
+ t[1] !== r || t[2] !== n ? (l = et(n, r), t[1] = r, t[2] = n, t[3] = l) : l = t[3];
1065
1082
  let u = l, d;
1066
- t[4] !== r || t[5] !== a || t[6] !== i || t[7] !== n ? (d = rt({
1083
+ t[4] !== r || t[5] !== a || t[6] !== i || t[7] !== n ? (d = it({
1067
1084
  sections: n,
1068
1085
  canMove: r,
1069
1086
  onReorderSections: i,
1070
1087
  onReorderNodes: a
1071
1088
  }), t[4] = r, t[5] = a, t[6] = i, t[7] = n, t[8] = d) : d = t[8];
1072
1089
  let p = d, h;
1073
- t[9] === o ? h = t[10] : (h = /* @__PURE__ */ m(it.Provider, {
1090
+ t[9] === o ? h = t[10] : (h = /* @__PURE__ */ m(at.Provider, {
1074
1091
  value: !0,
1075
1092
  children: o
1076
1093
  }), t[9] = o, t[10] = h);
@@ -1079,17 +1096,17 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1079
1096
  sensors: c,
1080
1097
  collisionDetection: u,
1081
1098
  onDragEnd: p,
1082
- ...qe,
1099
+ ...Je,
1083
1100
  children: h
1084
1101
  }), t[11] = u, t[12] = p, t[13] = c, t[14] = h, t[15] = g) : g = t[15], g;
1085
- }, ot = (e) => e?.label ? e.id : void 0, st = (e, t) => {
1102
+ }, st = (e) => e?.label ? e.id : void 0, ct = (e, t) => {
1086
1103
  if (!t) return null;
1087
1104
  if (t.kind === "node") {
1088
- let n = We(e, t.id);
1105
+ let n = Ge(e, t.id);
1089
1106
  return n ? {
1090
1107
  lineId: t.id,
1091
1108
  edge: t.edge,
1092
- groupId: ot(n.section)
1109
+ groupId: st(n.section)
1093
1110
  } : null;
1094
1111
  }
1095
1112
  let n = e.find((e) => e.id === t.id);
@@ -1097,19 +1114,19 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1097
1114
  if (t.edge === "inside") {
1098
1115
  let e = n.nodes.at(-1);
1099
1116
  return {
1100
- lineId: e ? e.id : Le(n.id),
1117
+ lineId: e ? e.id : Q(n.id),
1101
1118
  edge: "after",
1102
- groupId: ot(n)
1119
+ groupId: st(n)
1103
1120
  };
1104
1121
  }
1105
1122
  return t.edge === "after" ? {
1106
- lineId: Be(n.id),
1123
+ lineId: Ve(n.id),
1107
1124
  edge: "middle"
1108
1125
  } : {
1109
- lineId: Le(n.id),
1126
+ lineId: Q(n.id),
1110
1127
  edge: "before"
1111
1128
  };
1112
- }, ct = {
1129
+ }, lt = {
1113
1130
  before: {
1114
1131
  top: "0",
1115
1132
  transform: "translateY(-50%)"
@@ -1122,21 +1139,13 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1122
1139
  top: "50%",
1123
1140
  transform: "translateY(-50%)"
1124
1141
  }
1125
- }, lt = (e) => {
1126
- let t = f(3), { edge: n } = e, i = ct[n], a;
1127
- return t[0] !== n || t[1] !== i ? (a = /* @__PURE__ */ m(r, {
1128
- "aria-hidden": !0,
1129
- "data-tree-list-drop-indicator": n,
1130
- position: "absolute",
1131
- insetX: "0",
1132
- zIndex: "1",
1133
- h: "drop-indicator",
1134
- borderRadius: "2xs",
1135
- bg: "bg.accent-primary.default",
1136
- pointerEvents: "none",
1137
- ...i
1138
- }), t[0] = n, t[1] = i, t[2] = a) : a = t[2], a;
1139
1142
  }, ut = (e) => {
1143
+ let t = f(3), { edge: n } = e, r = lt[n], i;
1144
+ return t[0] !== n || t[1] !== r ? (i = /* @__PURE__ */ m(he, {
1145
+ "data-tree-list-drop-indicator": n,
1146
+ ...r
1147
+ }), t[0] = n, t[1] = r, t[2] = i) : i = t[2], i;
1148
+ }, dt = (e) => {
1140
1149
  let { id: t, disabled: n, indicator: i, handle: a, liftedBg: o, highlighted: s, children: c } = e, l = I({
1141
1150
  id: t,
1142
1151
  disabled: n
@@ -1151,10 +1160,10 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1151
1160
  bg: s ? "bg.accent-subtle" : d,
1152
1161
  "data-tree-list-drop-group": s ? "" : void 0,
1153
1162
  onPointerDownCapture: a === "self" ? (e) => l.listeners?.onPointerDown?.(e) : void 0,
1154
- children: [c(l.listeners), u ? /* @__PURE__ */ m(lt, { edge: u }) : null]
1163
+ children: [c(l.listeners), u ? /* @__PURE__ */ m(ut, { edge: u }) : null]
1155
1164
  });
1156
- }, dt = (e) => {
1157
- let { sectionId: t, nextSectionId: n, gap: i, indicator: a } = e, o = Be(t), s = M({
1165
+ }, ft = (e) => {
1166
+ let { sectionId: t, nextSectionId: n, gap: i, indicator: a } = e, o = Ve(t), s = M({
1158
1167
  id: o,
1159
1168
  data: { nextSectionId: n }
1160
1169
  });
@@ -1164,20 +1173,20 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1164
1173
  w: "full",
1165
1174
  pt: i,
1166
1175
  flexShrink: 0,
1167
- children: a?.lineId === o ? /* @__PURE__ */ m(lt, { edge: "middle" }) : null
1176
+ children: a?.lineId === o ? /* @__PURE__ */ m(ut, { edge: "middle" }) : null
1168
1177
  });
1169
- }, ft = (e) => {
1178
+ }, pt = (e) => {
1170
1179
  let t = f(28), { section: n, sectionRows: i, expandedNodeIds: a, activeNodeId: o, rowVariant: s, nodeGap: c, linkComponent: u, onNavigate: d, onToggleSection: g, onToggleNode: _, onSectionContextMenu: v, indicator: y, dragging: b } = e, x;
1171
1180
  t[0] === i ? x = t[1] : (x = i.find(_t), t[0] = i, t[1] = x);
1172
1181
  let S = x, C, w;
1173
1182
  t[2] === i ? (C = t[3], w = t[4]) : (C = i.filter(vt), w = C.filter(yt).map(bt), t[2] = i, t[3] = C, t[4] = w);
1174
1183
  let T = w, E;
1175
- t[5] === n.id ? E = t[6] : (E = Le(n.id), t[5] = n.id, t[6] = E);
1184
+ t[5] === n.id ? E = t[6] : (E = Q(n.id), t[5] = n.id, t[6] = E);
1176
1185
  let D = n.canReorder === !1, O = y?.groupId === n.id, k;
1177
1186
  t[7] !== o || t[8] !== b || t[9] !== a || t[10] !== S || t[11] !== y || t[12] !== u || t[13] !== c || t[14] !== C || t[15] !== d || t[16] !== v || t[17] !== _ || t[18] !== g || t[19] !== s || t[20] !== T ? (k = (e) => /* @__PURE__ */ h(p, { children: [
1178
1187
  S && S.kind === "section-header" ? /* @__PURE__ */ m(r, {
1179
1188
  onPointerDownCapture: (t) => e?.onPointerDown?.(t),
1180
- children: /* @__PURE__ */ m(Ne, {
1189
+ children: /* @__PURE__ */ m(Fe, {
1181
1190
  section: S.section,
1182
1191
  collapsible: S.collapsible,
1183
1192
  expanded: S.expanded,
@@ -1214,7 +1223,7 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1214
1223
  })
1215
1224
  ] }), t[7] = o, t[8] = b, t[9] = a, t[10] = S, t[11] = y, t[12] = u, t[13] = c, t[14] = C, t[15] = d, t[16] = v, t[17] = _, t[18] = g, t[19] = s, t[20] = T, t[21] = k) : k = t[21];
1216
1225
  let A;
1217
- return t[22] !== y || t[23] !== E || t[24] !== D || t[25] !== O || t[26] !== k ? (A = /* @__PURE__ */ m(ut, {
1226
+ return t[22] !== y || t[23] !== E || t[24] !== D || t[25] !== O || t[26] !== k ? (A = /* @__PURE__ */ m(dt, {
1218
1227
  id: E,
1219
1228
  disabled: D,
1220
1229
  indicator: y,
@@ -1222,67 +1231,51 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1222
1231
  highlighted: O,
1223
1232
  children: k
1224
1233
  }), t[22] = y, t[23] = E, t[24] = D, t[25] = O, t[26] = k, t[27] = A) : A = t[27], A;
1225
- }, pt = (e) => /* @__PURE__ */ m(Q, {
1226
- sectionId: e.sectionId,
1227
- node: e.node,
1228
- level: e.level,
1229
- expandedNodeIds: e.expandedNodeIds,
1230
- activeNodeId: e.activeNodeId,
1231
- rowVariant: e.rowVariant,
1232
- nodeGap: e.nodeGap,
1233
- linkComponent: e.linkComponent,
1234
- onNavigate: e.onNavigate,
1235
- onToggleNode: e.onToggleNode
1236
- }), mt = (e) => {
1237
- let t = f(15), n, r, i, a;
1238
- if (t[0] !== e) {
1239
- a = Symbol.for("react.early_return_sentinel");
1240
- bb0: if ({row: i, indicator: n, ...r} = e, i.level > 0) {
1241
- a = pt({
1242
- node: i.node,
1243
- sectionId: i.sectionId,
1244
- level: i.level,
1245
- ...r
1246
- });
1247
- break bb0;
1248
- }
1249
- t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a;
1250
- } else n = t[1], r = t[2], i = t[3], a = t[4];
1251
- if (a !== Symbol.for("react.early_return_sentinel")) return a;
1252
- let o = i.node.canReorder === !1, s;
1253
- t[5] !== r || t[6] !== i.level || t[7] !== i.node || t[8] !== i.sectionId ? (s = () => pt({
1254
- node: i.node,
1255
- sectionId: i.sectionId,
1256
- level: i.level,
1257
- ...r
1258
- }), t[5] = r, t[6] = i.level, t[7] = i.node, t[8] = i.sectionId, t[9] = s) : s = t[9];
1259
- let c;
1260
- return t[10] !== n || t[11] !== i.node.id || t[12] !== o || t[13] !== s ? (c = /* @__PURE__ */ m(ut, {
1261
- id: i.node.id,
1262
- disabled: o,
1263
- indicator: n,
1234
+ }, mt = (e) => {
1235
+ let t = f(18), { row: n, expandedNodeIds: r, activeNodeId: i, rowVariant: a, nodeGap: o, linkComponent: s, onNavigate: c, onToggleNode: l, indicator: u } = e, d;
1236
+ t[0] !== i || t[1] !== r || t[2] !== s || t[3] !== o || t[4] !== c || t[5] !== l || t[6] !== n.level || t[7] !== n.node || t[8] !== n.sectionId || t[9] !== a ? (d = /* @__PURE__ */ m(Ne, {
1237
+ sectionId: n.sectionId,
1238
+ node: n.node,
1239
+ level: n.level,
1240
+ expandedNodeIds: r,
1241
+ activeNodeId: i,
1242
+ rowVariant: a,
1243
+ nodeGap: o,
1244
+ linkComponent: s,
1245
+ onNavigate: c,
1246
+ onToggleNode: l
1247
+ }), t[0] = i, t[1] = r, t[2] = s, t[3] = o, t[4] = c, t[5] = l, t[6] = n.level, t[7] = n.node, t[8] = n.sectionId, t[9] = a, t[10] = d) : d = t[10];
1248
+ let p = d;
1249
+ if (n.level > 0) return p;
1250
+ let h = n.node.canReorder === !1, g;
1251
+ t[11] === p ? g = t[12] : (g = () => p, t[11] = p, t[12] = g);
1252
+ let _;
1253
+ return t[13] !== u || t[14] !== n.node.id || t[15] !== h || t[16] !== g ? (_ = /* @__PURE__ */ m(dt, {
1254
+ id: n.node.id,
1255
+ disabled: h,
1256
+ indicator: u,
1264
1257
  handle: "self",
1265
1258
  liftedBg: "bg.hover",
1266
- children: s
1267
- }), t[10] = n, t[11] = i.node.id, t[12] = o, t[13] = s, t[14] = c) : c = t[14], c;
1259
+ children: g
1260
+ }), t[13] = u, t[14] = n.node.id, t[15] = h, t[16] = g, t[17] = _) : _ = t[17], _;
1268
1261
  }, ht = (e) => {
1269
1262
  let t = f(42), n, r, i, a, o;
1270
1263
  t[0] === e ? (n = t[1], r = t[2], i = t[3], a = t[4], o = t[5]) : ({sections: o, expandedSectionIds: r, expandedNodeIds: n, sectionGap: a, ...i} = e, t[0] = e, t[1] = n, t[2] = r, t[3] = i, t[4] = a, t[5] = o);
1271
1264
  let { active: s, over: c } = A(), [u, d] = S(null), p;
1272
1265
  t[6] === Symbol.for("react.memo_cache_sentinel") ? (p = {
1273
- onDragMove: (e) => d(et(e.activatorEvent, e.delta.y)),
1266
+ onDragMove: (e) => d(tt(e.activatorEvent, e.delta.y)),
1274
1267
  onDragEnd: () => d(null),
1275
1268
  onDragCancel: () => d(null)
1276
1269
  }, t[6] = p) : p = t[6], j(p);
1277
1270
  let _;
1278
1271
  if (t[7] !== s || t[8] !== c || t[9] !== u || t[10] !== o) {
1279
- let e = s && u !== null ? tt(String(s.id), c, u) : null;
1280
- _ = st(o, e), t[7] = s, t[8] = c, t[9] = u, t[10] = o, t[11] = _;
1272
+ let e = s && u !== null ? nt(String(s.id), c, u) : null;
1273
+ _ = ct(o, e), t[7] = s, t[8] = c, t[9] = u, t[10] = o, t[11] = _;
1281
1274
  } else _ = t[11];
1282
1275
  let v = _, y, b, x, C, w, T, E, D, O;
1283
1276
  if (t[12] !== s || t[13] !== n || t[14] !== r || t[15] !== v || t[16] !== i || t[17] !== a || t[18] !== o) {
1284
- let e = be(o, r, n);
1285
- b = F, t[28] === o ? D = t[29] : (D = o.map(St), t[28] = o, t[29] = D), O = L, y = l, x = "0", C = "full", w = "0", T = "full", E = o.map((t, r) => /* @__PURE__ */ h(g, { children: [/* @__PURE__ */ m(ft, {
1277
+ let e = xe(o, r, n);
1278
+ b = F, t[28] === o ? D = t[29] : (D = o.map(St), t[28] = o, t[29] = D), O = L, y = l, x = "0", C = "full", w = "0", T = "full", E = o.map((t, r) => /* @__PURE__ */ h(g, { children: [/* @__PURE__ */ m(pt, {
1286
1279
  section: t,
1287
1280
  sectionRows: e.filter((e) => e.sectionId === t.id),
1288
1281
  expandedNodeIds: n,
@@ -1296,7 +1289,7 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1296
1289
  onSectionContextMenu: i.onSectionContextMenu,
1297
1290
  indicator: v,
1298
1291
  dragging: !!s
1299
- }), /* @__PURE__ */ m(dt, {
1292
+ }), /* @__PURE__ */ m(ft, {
1300
1293
  sectionId: t.id,
1301
1294
  nextSectionId: o[r + 1]?.id,
1302
1295
  gap: a,
@@ -1324,12 +1317,12 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1324
1317
  t[2] === i ? S = t[3] : (S = i === void 0 ? [] : i, t[2] = i, t[3] = S);
1325
1318
  let C = S, w = o === void 0 ? "tree" : o, E = s === void 0 ? "0" : s, O = c === void 0 ? "0" : c, k;
1326
1319
  t[4] === Symbol.for("react.memo_cache_sentinel") ? (k = { activationConstraint: { distance: 4 } }, t[4] = k) : k = t[4];
1327
- let A = P(N(D, k)), j = v(it), M;
1328
- t[5] !== y || t[6] !== n ? (M = $e(n, y), t[5] = y, t[6] = n, t[7] = M) : M = t[7];
1320
+ let A = P(N(D, k)), j = v(at), M;
1321
+ t[5] !== y || t[6] !== n ? (M = et(n, y), t[5] = y, t[6] = n, t[7] = M) : M = t[7];
1329
1322
  let F = M, I;
1330
1323
  t[8] === g ? I = t[9] : (I = (e) => g?.(e), t[8] = g, t[9] = I);
1331
1324
  let L;
1332
- t[10] !== y || t[11] !== _ || t[12] !== n || t[13] !== I ? (L = rt({
1325
+ t[10] !== y || t[11] !== _ || t[12] !== n || t[13] !== I ? (L = it({
1333
1326
  sections: n,
1334
1327
  canMove: y,
1335
1328
  onReorderSections: I,
@@ -1357,7 +1350,7 @@ var Ie = "section:", Le = (e) => `${Ie}${e}`, $ = (e) => e.startsWith(Ie), Re =
1357
1350
  sensors: A,
1358
1351
  collisionDetection: F,
1359
1352
  onDragEnd: R,
1360
- ...qe,
1353
+ ...Je,
1361
1354
  children: B
1362
1355
  }), t[28] = F, t[29] = B, t[30] = R, t[31] = A, t[32] = V) : V = t[32], V;
1363
1356
  };
@@ -1375,7 +1368,7 @@ function bt(e) {
1375
1368
  }
1376
1369
  function xt() {}
1377
1370
  function St(e) {
1378
- return Le(e.id);
1371
+ return Q(e.id);
1379
1372
  }
1380
1373
  //#endregion
1381
1374
  //#region src/components/tree-list/use-tree-list-keyboard-navigation.ts
@@ -1385,11 +1378,11 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1385
1378
  "INPUT",
1386
1379
  "TEXTAREA",
1387
1380
  "SELECT"
1388
- ].includes(e.tagName) : !1, Et = (e, t) => e.findIndex((e) => xe(e) && X(e) === t), Dt = (e) => {
1381
+ ].includes(e.tagName) : !1, Et = (e, t) => e.findIndex((e) => Ce(e) && Se(e) === t), Dt = (e) => {
1389
1382
  let t = f(28), { rows: n, activeNodeId: r, expandedNodeIds: i, onToggleNode: a, onToggleSection: o, scrollToRow: s } = e, c = x(null), [l, u] = S(), [d, p] = S(), m;
1390
- t[0] !== r || t[1] !== l || t[2] !== n ? (m = Ce(l, r, n), t[0] = r, t[1] = l, t[2] = n, t[3] = m) : m = t[3];
1383
+ t[0] !== r || t[1] !== l || t[2] !== n ? (m = Te(l, r, n), t[0] = r, t[1] = l, t[2] = n, t[3] = m) : m = t[3];
1391
1384
  let h = m, g;
1392
- t[4] === n ? g = t[5] : (g = Se(n).map(X).join("\0"), t[4] = n, t[5] = g);
1385
+ t[4] === n ? g = t[5] : (g = we(n).map(Se).join("\0"), t[4] = n, t[5] = g);
1393
1386
  let _ = g, v, b;
1394
1387
  t[6] !== _ || t[7] !== l ? (v = () => {
1395
1388
  l && (_.split("\0").includes(l) || u(void 0));
@@ -1419,7 +1412,7 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1419
1412
  let E = T, D;
1420
1413
  t[16] !== r || t[17] !== i || t[18] !== E || t[19] !== h || t[20] !== a || t[21] !== o || t[22] !== n ? (D = (e) => {
1421
1414
  if (e.altKey || e.ctrlKey || e.metaKey || e.shiftKey || Tt(e.target)) return;
1422
- let t = Ee({
1415
+ let t = Oe({
1423
1416
  rows: n,
1424
1417
  focusedRowId: wt(c.current, e.target) ?? h,
1425
1418
  activeNodeId: r,
@@ -1448,31 +1441,43 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1448
1441
  onRowFocus: k
1449
1442
  }, t[25] = h, t[26] = O, t[27] = A) : A = t[27], A;
1450
1443
  }, Ot = 32, kt = 4, At = (e) => {
1451
- let { row: t, expandedNodeIds: n, activeNodeId: r, focusRowId: i, rowVariant: a, nodeGap: o, linkComponent: s, onRowFocus: c, onNavigate: l, onToggleSection: u, onToggleNode: d, onSectionContextMenu: f, onMoveNode: p } = e;
1452
- return t.kind === "section-header" ? /* @__PURE__ */ m(Ne, {
1453
- section: t.section,
1454
- collapsible: t.collapsible,
1455
- expanded: t.expanded,
1456
- focusId: t.key,
1457
- tabIndex: t.key === i ? 0 : -1,
1458
- onFocus: () => c(t.key),
1459
- onToggle: () => u?.(t.sectionId),
1460
- onContextMenu: f
1461
- }) : t.kind === "section-empty" ? t.emptyState ?? null : /* @__PURE__ */ m(Q, {
1462
- sectionId: t.sectionId,
1463
- node: t.node,
1464
- level: t.level,
1465
- expandedNodeIds: n,
1466
- activeNodeId: r,
1467
- rowVariant: a,
1468
- nodeGap: o,
1469
- linkComponent: s,
1470
- tabIndex: t.node.id === i ? 0 : -1,
1471
- onFocus: () => c(t.node.id),
1472
- onNavigate: l,
1473
- onToggleNode: d,
1474
- onMoveNode: p
1475
- });
1444
+ let t = f(32), { row: n, expandedNodeIds: r, activeNodeId: i, focusRowId: a, rowVariant: o, nodeGap: s, linkComponent: c, onRowFocus: l, onNavigate: u, onToggleSection: d, onToggleNode: p, onSectionContextMenu: h, onMoveNode: g } = e;
1445
+ if (n.kind === "section-header") {
1446
+ let e = n.key === a ? 0 : -1, r;
1447
+ t[0] !== l || t[1] !== n.key ? (r = () => l(n.key), t[0] = l, t[1] = n.key, t[2] = r) : r = t[2];
1448
+ let i;
1449
+ t[3] !== d || t[4] !== n.sectionId ? (i = () => d?.(n.sectionId), t[3] = d, t[4] = n.sectionId, t[5] = i) : i = t[5];
1450
+ let o;
1451
+ return t[6] !== h || t[7] !== n.collapsible || t[8] !== n.expanded || t[9] !== n.key || t[10] !== n.section || t[11] !== e || t[12] !== r || t[13] !== i ? (o = /* @__PURE__ */ m(Fe, {
1452
+ section: n.section,
1453
+ collapsible: n.collapsible,
1454
+ expanded: n.expanded,
1455
+ focusId: n.key,
1456
+ tabIndex: e,
1457
+ onFocus: r,
1458
+ onToggle: i,
1459
+ onContextMenu: h
1460
+ }), t[6] = h, t[7] = n.collapsible, t[8] = n.expanded, t[9] = n.key, t[10] = n.section, t[11] = e, t[12] = r, t[13] = i, t[14] = o) : o = t[14], o;
1461
+ }
1462
+ if (n.kind === "section-empty") return n.emptyState ?? null;
1463
+ let _ = n.node.id === a ? 0 : -1, v;
1464
+ t[15] !== l || t[16] !== n.node.id ? (v = () => l(n.node.id), t[15] = l, t[16] = n.node.id, t[17] = v) : v = t[17];
1465
+ let y;
1466
+ return t[18] !== i || t[19] !== r || t[20] !== c || t[21] !== s || t[22] !== g || t[23] !== u || t[24] !== p || t[25] !== n.level || t[26] !== n.node || t[27] !== n.sectionId || t[28] !== o || t[29] !== _ || t[30] !== v ? (y = /* @__PURE__ */ m(Ne, {
1467
+ sectionId: n.sectionId,
1468
+ node: n.node,
1469
+ level: n.level,
1470
+ expandedNodeIds: r,
1471
+ activeNodeId: i,
1472
+ rowVariant: o,
1473
+ nodeGap: s,
1474
+ linkComponent: c,
1475
+ tabIndex: _,
1476
+ onFocus: v,
1477
+ onNavigate: u,
1478
+ onToggleNode: p,
1479
+ onMoveNode: g
1480
+ }), t[18] = i, t[19] = r, t[20] = c, t[21] = s, t[22] = g, t[23] = u, t[24] = p, t[25] = n.level, t[26] = n.node, t[27] = n.sectionId, t[28] = o, t[29] = _, t[30] = v, t[31] = y) : y = t[31], y;
1476
1481
  }, jt = (e) => {
1477
1482
  let { rows: t, expandedNodeIds: n = [], activeNodeId: i, rowVariant: a = "tree", nodeGap: o = "0", linkComponent: s, onNavigate: c, onToggleSection: l, onToggleNode: u, onSectionContextMenu: d, onMoveNode: f, scrollRef: p } = e, h = w({
1478
1483
  count: t.length,
@@ -1509,7 +1514,7 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1509
1514
  w: "full",
1510
1515
  pb: e.index === t.length - 1 ? "0" : o,
1511
1516
  style: { transform: `translateY(${e.start}px)` },
1512
- children: At({
1517
+ children: /* @__PURE__ */ m(At, {
1513
1518
  row: p,
1514
1519
  expandedNodeIds: n,
1515
1520
  activeNodeId: i,
@@ -1528,7 +1533,7 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1528
1533
  })
1529
1534
  });
1530
1535
  }, Mt = (e) => {
1531
- let { sections: t, expandedSectionIds: n = [], expandedNodeIds: i = [], activeNodeId: a, rowVariant: o = "tree", sectionGap: s = "0", nodeGap: c = "0", linkComponent: u, onNavigate: d, onToggleSection: f, onToggleNode: p, onSectionContextMenu: h, onMoveNode: g, virtualize: _, scrollRef: v } = e, y = be(t, n, i), b = Dt({
1536
+ let { sections: t, expandedSectionIds: n = [], expandedNodeIds: i = [], activeNodeId: a, rowVariant: o = "tree", sectionGap: s = "0", nodeGap: c = "0", linkComponent: u, onNavigate: d, onToggleSection: f, onToggleNode: p, onSectionContextMenu: h, onMoveNode: g, virtualize: _, scrollRef: v } = e, y = xe(t, n, i), b = Dt({
1532
1537
  rows: y,
1533
1538
  activeNodeId: a,
1534
1539
  expandedNodeIds: i,
@@ -1559,7 +1564,7 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1559
1564
  children: t.map((e) => /* @__PURE__ */ m(r, {
1560
1565
  w: "full",
1561
1566
  minW: "0",
1562
- children: At({
1567
+ children: /* @__PURE__ */ m(At, {
1563
1568
  row: e,
1564
1569
  expandedNodeIds: i,
1565
1570
  activeNodeId: a,
@@ -1598,19 +1603,19 @@ var Ct = (e, t) => e ? [...e.querySelectorAll("[data-tree-list-focus-id]")].find
1598
1603
  canMove: e.canMove
1599
1604
  }) : /* @__PURE__ */ m(Mt, { ...e }), t[0] = e, t[1] = n);
1600
1605
  let r = n, i;
1601
- t[2] !== r || t[3] !== e.onMoveNode ? (i = /* @__PURE__ */ m(Ae, {
1606
+ t[2] !== r || t[3] !== e.onMoveNode ? (i = /* @__PURE__ */ m(X, {
1602
1607
  onMoveNode: e.onMoveNode,
1603
1608
  children: r
1604
1609
  }), t[2] = r, t[3] = e.onMoveNode, t[4] = i) : i = t[4];
1605
1610
  let a = i;
1606
1611
  if (!e.backgroundContextActions || e.backgroundContextActions.length === 0) return a;
1607
1612
  let o;
1608
- return t[5] !== a || t[6] !== e.backgroundContextActions ? (o = /* @__PURE__ */ m(he, {
1613
+ return t[5] !== a || t[6] !== e.backgroundContextActions ? (o = /* @__PURE__ */ m(ge, {
1609
1614
  actions: e.backgroundContextActions,
1610
1615
  children: a
1611
1616
  }), t[5] = a, t[6] = e.backgroundContextActions, t[7] = o) : o = t[7], o;
1612
1617
  };
1613
1618
  //#endregion
1614
- export { at as n, fe as r, Nt as t };
1619
+ export { fe as i, ot as n, he as r, Nt as t };
1615
1620
 
1616
- //# sourceMappingURL=tree-list-BNZwjQZA.js.map
1621
+ //# sourceMappingURL=tree-list-Cqgl8mnN.js.map