@pstdio/ui 0.17.0 → 0.18.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 (101) hide show
  1. package/dist/{MermaidComponent-BCMQqPqu.js → MermaidComponent-BPiVFNYK.js} +2 -2
  2. package/dist/{MermaidComponent-BCMQqPqu.js.map → MermaidComponent-BPiVFNYK.js.map} +1 -1
  3. package/dist/chat-ui.js +2 -2
  4. package/dist/components/data-table/data-table-column-menu.d.ts +4 -1
  5. package/dist/components/data-table/data-table-header.d.ts +0 -8
  6. package/dist/components/data-table/editable-cells-story.d.ts +9 -0
  7. package/dist/components/diff-viewer/code-editor.d.ts +2 -0
  8. package/dist/components/diff-viewer/index.d.ts +1 -1
  9. package/dist/components/diff-viewer/monaco-browser.d.ts +1 -0
  10. package/dist/components/overlays/searchable-menu-input.d.ts +9 -0
  11. package/dist/components/param-editor/index.d.ts +5 -2
  12. package/dist/components/param-editor/inputs/action-input.d.ts +1 -0
  13. package/dist/components/param-editor/inputs/boolean-input.d.ts +13 -0
  14. package/dist/components/param-editor/inputs/color-input.d.ts +1 -0
  15. package/dist/components/param-editor/inputs/date-input.d.ts +1 -0
  16. package/dist/components/param-editor/inputs/file-upload-input.d.ts +15 -0
  17. package/dist/components/param-editor/inputs/file-upload-value.d.ts +7 -0
  18. package/dist/components/param-editor/inputs/horizontal-text-input.d.ts +1 -0
  19. package/dist/components/param-editor/inputs/markdown-input.d.ts +13 -0
  20. package/dist/components/param-editor/inputs/number-input.d.ts +1 -0
  21. package/dist/components/param-editor/inputs/range-input.d.ts +1 -0
  22. package/dist/components/param-editor/inputs/resource-input.d.ts +2 -0
  23. package/dist/components/param-editor/inputs/segmented-input.d.ts +1 -0
  24. package/dist/components/param-editor/inputs/selection-input.d.ts +1 -0
  25. package/dist/components/param-editor/inputs/selection-menu.d.ts +4 -0
  26. package/dist/components/param-editor/inputs/text-input.d.ts +1 -0
  27. package/dist/components/param-editor/param-editor-advanced-field.d.ts +14 -0
  28. package/dist/components/param-editor/param-editor-control-fixtures.d.ts +24 -0
  29. package/dist/components/param-editor/param-editor-field.d.ts +2 -0
  30. package/dist/components/param-editor/param-editor-horizontal.d.ts +2 -2
  31. package/dist/components/param-editor/param-editor-label.d.ts +1 -0
  32. package/dist/components/param-editor/param-editor-presentation.d.ts +3 -0
  33. package/dist/components/param-editor/param-editor.types.d.ts +25 -13
  34. package/dist/components/param-editor/resolve-param-value.d.ts +2 -0
  35. package/dist/components/primitives/chip.d.ts +4 -0
  36. package/dist/components/primitives/index.d.ts +2 -0
  37. package/dist/components/primitives/resource-badge.d.ts +12 -10
  38. package/dist/components/rich-text/index.d.ts +1 -0
  39. package/dist/components/rich-text/lazy-markdown-editor.d.ts +2 -0
  40. package/dist/components/rich-text/utils/inferResourceType.d.ts +1 -1
  41. package/dist/data-table.js +960 -910
  42. package/dist/data-table.js.map +1 -1
  43. package/dist/diff.js +370 -366
  44. package/dist/diff.js.map +1 -1
  45. package/dist/font/css/prompt-studio-icons.css +690 -0
  46. package/dist/font/prompt-studio-icons.eot +0 -0
  47. package/dist/font/prompt-studio-icons.svg +1 -0
  48. package/dist/font/prompt-studio-icons.ttf +0 -0
  49. package/dist/font/prompt-studio-icons.woff +0 -0
  50. package/dist/font/prompt-studio-icons.woff2 +0 -0
  51. package/dist/index.js +895 -947
  52. package/dist/index.js.map +1 -1
  53. package/dist/{kanban-renderer-toolbar-B9ro-9z1.js → kanban-renderer-toolbar-Db1mIWWd.js} +3 -3
  54. package/dist/{kanban-renderer-toolbar-B9ro-9z1.js.map → kanban-renderer-toolbar-Db1mIWWd.js.map} +1 -1
  55. package/dist/kanban-renderer.js +831 -817
  56. package/dist/kanban-renderer.js.map +1 -1
  57. package/dist/lazy-markdown-editor-DwhqQ-NN.js +26 -0
  58. package/dist/lazy-markdown-editor-DwhqQ-NN.js.map +1 -0
  59. package/dist/{list-row-YRUxEcy3.js → list-row-BYWwcbGK.js} +286 -271
  60. package/dist/list-row-BYWwcbGK.js.map +1 -0
  61. package/dist/markdown-DDd2ESoH.js +743 -0
  62. package/dist/markdown-DDd2ESoH.js.map +1 -0
  63. package/dist/markdown-editor-CYVkzt8t.js +741 -0
  64. package/dist/markdown-editor-CYVkzt8t.js.map +1 -0
  65. package/dist/monaco-browser-CO0NxK_Z.js +19 -0
  66. package/dist/monaco-browser-CO0NxK_Z.js.map +1 -0
  67. package/dist/param-editor-BCZOw5Gt.js +140 -0
  68. package/dist/param-editor-BCZOw5Gt.js.map +1 -0
  69. package/dist/param-editor-field-ZzZwgjZ_.js +2094 -0
  70. package/dist/param-editor-field-ZzZwgjZ_.js.map +1 -0
  71. package/dist/resource-badge-CuItchgL.js +98 -0
  72. package/dist/resource-badge-CuItchgL.js.map +1 -0
  73. package/dist/rich-message--eRzjWYK.js +730 -0
  74. package/dist/rich-message--eRzjWYK.js.map +1 -0
  75. package/dist/rich-text.js +114 -827
  76. package/dist/rich-text.js.map +1 -1
  77. package/dist/style.css +1 -1
  78. package/dist/theme/primitives/fonts.d.ts +3 -0
  79. package/dist/theme/recipes/badge.d.ts +8 -0
  80. package/dist/theme/recipes/color-picker.d.ts +18 -1
  81. package/dist/theme/recipes/switch.d.ts +17 -0
  82. package/dist/{theme-CNhnbvcE.js → theme-poQlUgt0.js} +284 -156
  83. package/dist/theme-poQlUgt0.js.map +1 -0
  84. package/dist/theme.js +1 -1
  85. package/dist/{tree-list-CZHLAURU.js → tree-list-BAja2eXU.js} +2 -2
  86. package/dist/{tree-list-CZHLAURU.js.map → tree-list-BAja2eXU.js.map} +1 -1
  87. package/package.json +2 -1
  88. package/dist/components/param-editor/inputs/file-accept.d.ts +0 -22
  89. package/dist/components/param-editor/inputs/file-drop-input.d.ts +0 -14
  90. package/dist/list-row-YRUxEcy3.js.map +0 -1
  91. package/dist/param-editor-CYZJbmKu.js +0 -933
  92. package/dist/param-editor-CYZJbmKu.js.map +0 -1
  93. package/dist/param-editor-read-only-field-DgtLqcFa.js +0 -925
  94. package/dist/param-editor-read-only-field-DgtLqcFa.js.map +0 -1
  95. package/dist/prism-BXb57lxL.js +0 -125
  96. package/dist/prism-BXb57lxL.js.map +0 -1
  97. package/dist/resource-badge-qCWHP-wQ.js +0 -99
  98. package/dist/resource-badge-qCWHP-wQ.js.map +0 -1
  99. package/dist/rich-message-DBf_5YlW.js +0 -1450
  100. package/dist/rich-message-DBf_5YlW.js.map +0 -1
  101. package/dist/theme-CNhnbvcE.js.map +0 -1
@@ -1,171 +1,171 @@
1
- import { jsx as l, jsxs as k, Fragment as ot } from "react/jsx-runtime";
2
- import { c as T } from "react/compiler-runtime";
3
- import { Menu as w, Portal as Ne, HStack as ue, Stack as lt, Text as je, Box as z, Icon as Me, InputGroup as st, Input as at, IconButton as Je, chakra as _e } from "@chakra-ui/react";
1
+ import { jsx as r, jsxs as k, Fragment as nt } from "react/jsx-runtime";
2
+ import { c as D } from "react/compiler-runtime";
3
+ import { Menu as w, Portal as Ne, HStack as ue, Stack as ot, Text as je, Box as z, Icon as Me, InputGroup as st, Input as at, IconButton as Je, chakra as _e } from "@chakra-ui/react";
4
4
  import * as ct from "react";
5
5
  import { Fragment as Ke, useState as Ve, useRef as Ye, useEffect as et, forwardRef as dt } from "react";
6
- import { ChevronDown as rt, Search as ut, ChevronRight as ht } from "lucide-react";
6
+ import { Search as ut, ChevronDown as lt, ChevronRight as ht } from "lucide-react";
7
7
  import { T as Qe, S as ft } from "./scroll-area-BMbg1WcD.js";
8
- const it = (n) => {
9
- const e = T(6), {
8
+ const rt = (n) => {
9
+ const e = D(6), {
10
10
  actions: t,
11
11
  contentBackground: o,
12
12
  contentMinWidth: i
13
13
  } = n;
14
14
  let s;
15
15
  e[0] !== t ? (s = t.map(mt), e[0] = t, e[1] = s) : s = e[1];
16
- let r;
17
- return e[2] !== o || e[3] !== i || e[4] !== s ? (r = /* @__PURE__ */ l(Ne, { children: /* @__PURE__ */ l(w.Positioner, { children: /* @__PURE__ */ l(w.Content, { minW: i, bg: o, children: s }) }) }), e[2] = o, e[3] = i, e[4] = s, e[5] = r) : r = e[5], r;
18
- }, on = (n) => {
19
- const e = T(13), {
16
+ let l;
17
+ return e[2] !== o || e[3] !== i || e[4] !== s ? (l = /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(w.Positioner, { children: /* @__PURE__ */ r(w.Content, { minW: i, bg: o, children: s }) }) }), e[2] = o, e[3] = i, e[4] = s, e[5] = l) : l = e[5], l;
18
+ }, ln = (n) => {
19
+ const e = D(13), {
20
20
  actions: t,
21
21
  children: o,
22
22
  contentMinWidth: i,
23
23
  contentBackground: s,
24
- positioning: r,
25
- closeOnSelect: u
26
- } = n, h = i === void 0 ? "17.5rem" : i, a = s === void 0 ? "bg" : s;
27
- let d;
28
- e[0] !== r ? (d = r === void 0 ? {
24
+ positioning: l,
25
+ closeOnSelect: a
26
+ } = n, d = i === void 0 ? "17.5rem" : i, c = s === void 0 ? "bg" : s;
27
+ let h;
28
+ e[0] !== l ? (h = l === void 0 ? {
29
29
  placement: "bottom-start"
30
- } : r, e[0] = r, e[1] = d) : d = e[1];
31
- const p = d;
30
+ } : l, e[0] = l, e[1] = h) : h = e[1];
31
+ const p = h;
32
32
  if (t.length === 0)
33
33
  return o;
34
34
  let m;
35
- e[2] !== o ? (m = /* @__PURE__ */ l(w.Trigger, { asChild: !0, children: o }), e[2] = o, e[3] = m) : m = e[3];
36
- let c;
37
- e[4] !== t || e[5] !== a || e[6] !== h ? (c = /* @__PURE__ */ l(it, { actions: t, contentMinWidth: h, contentBackground: a }), e[4] = t, e[5] = a, e[6] = h, e[7] = c) : c = e[7];
35
+ e[2] !== o ? (m = /* @__PURE__ */ r(w.Trigger, { asChild: !0, children: o }), e[2] = o, e[3] = m) : m = e[3];
36
+ let u;
37
+ e[4] !== t || e[5] !== c || e[6] !== d ? (u = /* @__PURE__ */ r(rt, { actions: t, contentMinWidth: d, contentBackground: c }), e[4] = t, e[5] = c, e[6] = d, e[7] = u) : u = e[7];
38
38
  let f;
39
- return e[8] !== u || e[9] !== p || e[10] !== m || e[11] !== c ? (f = /* @__PURE__ */ k(w.Root, { positioning: p, closeOnSelect: u, children: [
39
+ return e[8] !== a || e[9] !== p || e[10] !== m || e[11] !== u ? (f = /* @__PURE__ */ k(w.Root, { positioning: p, closeOnSelect: a, children: [
40
40
  m,
41
- c
42
- ] }), e[8] = u, e[9] = p, e[10] = m, e[11] = c, e[12] = f) : f = e[12], f;
41
+ u
42
+ ] }), e[8] = a, e[9] = p, e[10] = m, e[11] = u, e[12] = f) : f = e[12], f;
43
43
  }, pt = (n) => {
44
- const e = T(15), {
44
+ const e = D(15), {
45
45
  actions: t,
46
46
  children: o,
47
47
  contentMinWidth: i,
48
48
  contentBackground: s,
49
- positioning: r,
50
- closeOnSelect: u,
51
- keepMountedWhenEmpty: h
52
- } = n, a = i === void 0 ? "17.5rem" : i, d = s === void 0 ? "bg" : s;
49
+ positioning: l,
50
+ closeOnSelect: a,
51
+ keepMountedWhenEmpty: d
52
+ } = n, c = i === void 0 ? "17.5rem" : i, h = s === void 0 ? "bg" : s;
53
53
  let p;
54
- e[0] !== r ? (p = r === void 0 ? {
54
+ e[0] !== l ? (p = l === void 0 ? {
55
55
  placement: "bottom-start"
56
- } : r, e[0] = r, e[1] = p) : p = e[1];
57
- const m = p, c = h === void 0 ? !1 : h;
58
- if (t.length === 0 && !c) {
56
+ } : l, e[0] = l, e[1] = p) : p = e[1];
57
+ const m = p, u = d === void 0 ? !1 : d;
58
+ if (t.length === 0 && !u) {
59
59
  let b;
60
- return e[2] !== o ? (b = /* @__PURE__ */ l(ot, { children: o }), e[2] = o, e[3] = b) : b = e[3], b;
60
+ return e[2] !== o ? (b = /* @__PURE__ */ r(nt, { children: o }), e[2] = o, e[3] = b) : b = e[3], b;
61
61
  }
62
62
  let f;
63
- e[4] !== o ? (f = /* @__PURE__ */ l(w.ContextTrigger, { asChild: !0, children: o }), e[4] = o, e[5] = f) : f = e[5];
63
+ e[4] !== o ? (f = /* @__PURE__ */ r(w.ContextTrigger, { asChild: !0, children: o }), e[4] = o, e[5] = f) : f = e[5];
64
64
  let v;
65
- e[6] !== t || e[7] !== d || e[8] !== a ? (v = t.length > 0 ? /* @__PURE__ */ l(it, { actions: t, contentMinWidth: a, contentBackground: d }) : null, e[6] = t, e[7] = d, e[8] = a, e[9] = v) : v = e[9];
65
+ e[6] !== t || e[7] !== h || e[8] !== c ? (v = t.length > 0 ? /* @__PURE__ */ r(rt, { actions: t, contentMinWidth: c, contentBackground: h }) : null, e[6] = t, e[7] = h, e[8] = c, e[9] = v) : v = e[9];
66
66
  let C;
67
- return e[10] !== u || e[11] !== m || e[12] !== f || e[13] !== v ? (C = /* @__PURE__ */ k(w.Root, { positioning: m, closeOnSelect: u, children: [
67
+ return e[10] !== a || e[11] !== m || e[12] !== f || e[13] !== v ? (C = /* @__PURE__ */ k(w.Root, { positioning: m, closeOnSelect: a, children: [
68
68
  f,
69
69
  v
70
- ] }), e[10] = u, e[11] = m, e[12] = f, e[13] = v, e[14] = C) : C = e[14], C;
70
+ ] }), e[10] = a, e[11] = m, e[12] = f, e[13] = v, e[14] = C) : C = e[14], C;
71
71
  };
72
72
  function mt(n) {
73
73
  return /* @__PURE__ */ k(Ke, { children: [
74
- n.separatorBefore ? /* @__PURE__ */ l(w.Separator, {}) : null,
75
- /* @__PURE__ */ l(w.Item, { value: n.key, disabled: n.isDisabled, asChild: !0, children: /* @__PURE__ */ l(Fe, { asChild: !0, variant: "full-width", label: n.label, icon: n.icon, endContent: n.endContent, disabled: n.isDisabled, onActivate: n.onClick }) })
74
+ n.separatorBefore ? /* @__PURE__ */ r(w.Separator, {}) : null,
75
+ /* @__PURE__ */ r(w.Item, { value: n.key, disabled: n.isDisabled, asChild: !0, children: /* @__PURE__ */ r(Fe, { asChild: !0, variant: "full-width", label: n.label, icon: n.icon, endContent: n.endContent, disabled: n.isDisabled, onActivate: n.onClick }) })
76
76
  ] }, n.key);
77
77
  }
78
78
  const gt = (n) => {
79
- const e = T(4), {
79
+ const e = D(4), {
80
80
  item: t
81
81
  } = n;
82
82
  if (!t.icon)
83
83
  return null;
84
84
  let o;
85
- e[0] !== t.icon ? (o = typeof t.icon == "function" ? /* @__PURE__ */ l(Me, { as: t.icon, boxSize: "14px" }) : t.icon, e[0] = t.icon, e[1] = o) : o = e[1];
85
+ e[0] !== t.icon ? (o = typeof t.icon == "function" ? /* @__PURE__ */ r(Me, { as: t.icon, boxSize: "14px" }) : t.icon, e[0] = t.icon, e[1] = o) : o = e[1];
86
86
  let i;
87
- return e[2] !== o ? (i = /* @__PURE__ */ l(z, { color: "fg.muted", flexShrink: 0, display: "inline-flex", children: o }), e[2] = o, e[3] = i) : i = e[3], i;
87
+ return e[2] !== o ? (i = /* @__PURE__ */ r(z, { color: "fg.muted", flexShrink: 0, display: "inline-flex", children: o }), e[2] = o, e[3] = i) : i = e[3], i;
88
88
  }, bt = (n) => {
89
- const e = T(20), {
89
+ const e = D(20), {
90
90
  children: t,
91
91
  items: o,
92
92
  onOpenChange: i,
93
93
  onSelect: s,
94
- open: r,
95
- placement: u
96
- } = n, h = u === void 0 ? "right-start" : u;
97
- let a;
98
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
94
+ open: l,
95
+ placement: a
96
+ } = n, d = a === void 0 ? "right-start" : a;
97
+ let c;
98
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
99
99
  mainAxis: 4
100
- }, e[0] = a) : a = e[0];
101
- let d;
102
- e[1] !== h ? (d = {
103
- placement: h,
104
- offset: a
105
- }, e[1] = h, e[2] = d) : d = e[2];
100
+ }, e[0] = c) : c = e[0];
101
+ let h;
102
+ e[1] !== d ? (h = {
103
+ placement: d,
104
+ offset: c
105
+ }, e[1] = d, e[2] = h) : h = e[2];
106
106
  let p;
107
107
  e[3] !== i ? (p = (C) => i(C.open), e[3] = i, e[4] = p) : p = e[4];
108
108
  let m;
109
- e[5] !== t ? (m = /* @__PURE__ */ l(w.Trigger, { asChild: !0, children: t }), e[5] = t, e[6] = m) : m = e[6];
110
- let c;
109
+ e[5] !== t ? (m = /* @__PURE__ */ r(w.Trigger, { asChild: !0, children: t }), e[5] = t, e[6] = m) : m = e[6];
110
+ let u;
111
111
  if (e[7] !== o || e[8] !== s) {
112
112
  let C;
113
113
  e[10] !== s ? (C = (b) => /* @__PURE__ */ k(Ke, { children: [
114
- b.separatorBefore ? /* @__PURE__ */ l(w.Separator, {}) : null,
115
- /* @__PURE__ */ l(w.Item, { value: b.id, disabled: b.disabled || b.readOnly, _disabled: b.readOnly ? {
114
+ b.separatorBefore ? /* @__PURE__ */ r(w.Separator, {}) : null,
115
+ /* @__PURE__ */ r(w.Item, { value: b.id, disabled: b.disabled || b.readOnly, _disabled: b.readOnly ? {
116
116
  opacity: 1,
117
117
  cursor: "default"
118
118
  } : void 0, onClick: () => {
119
119
  b.readOnly || s(b);
120
120
  }, children: /* @__PURE__ */ k(ue, { gap: "2", minW: "0", w: "full", justify: "space-between", alignItems: "center", children: [
121
121
  /* @__PURE__ */ k(ue, { gap: "2", minW: "0", flex: "1", alignItems: b.description ? "flex-start" : "center", children: [
122
- /* @__PURE__ */ l(gt, { item: b }),
123
- /* @__PURE__ */ k(lt, { gap: "0", minW: "0", children: [
124
- /* @__PURE__ */ l(je, { textStyle: "label/S/regular", truncate: !0, children: b.label }),
125
- b.description ? /* @__PURE__ */ l(je, { textStyle: "label/XS", color: "fg.menu-item.secondary", truncate: !0, children: b.description }) : null
122
+ /* @__PURE__ */ r(gt, { item: b }),
123
+ /* @__PURE__ */ k(ot, { gap: "0", minW: "0", children: [
124
+ /* @__PURE__ */ r(je, { textStyle: "label/S/regular", truncate: !0, children: b.label }),
125
+ b.description ? /* @__PURE__ */ r(je, { textStyle: "label/XS", color: "fg.menu-item.secondary", truncate: !0, children: b.description }) : null
126
126
  ] })
127
127
  ] }),
128
- b.endContent ? /* @__PURE__ */ l(z, { flexShrink: 0, children: b.endContent }) : null
128
+ b.endContent ? /* @__PURE__ */ r(z, { flexShrink: 0, children: b.endContent }) : null
129
129
  ] }) })
130
- ] }, b.id), e[10] = s, e[11] = C) : C = e[11], c = o.map(C), e[7] = o, e[8] = s, e[9] = c;
130
+ ] }, b.id), e[10] = s, e[11] = C) : C = e[11], u = o.map(C), e[7] = o, e[8] = s, e[9] = u;
131
131
  } else
132
- c = e[9];
132
+ u = e[9];
133
133
  let f;
134
- e[12] !== c ? (f = /* @__PURE__ */ l(Ne, { children: /* @__PURE__ */ l(w.Positioner, { children: /* @__PURE__ */ l(w.Content, { minW: "200px", bg: "bg", children: c }) }) }), e[12] = c, e[13] = f) : f = e[13];
134
+ e[12] !== u ? (f = /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(w.Positioner, { children: /* @__PURE__ */ r(w.Content, { minW: "200px", bg: "bg", children: u }) }) }), e[12] = u, e[13] = f) : f = e[13];
135
135
  let v;
136
- return e[14] !== r || e[15] !== d || e[16] !== p || e[17] !== m || e[18] !== f ? (v = /* @__PURE__ */ k(w.Root, { open: r, positioning: d, onOpenChange: p, children: [
136
+ return e[14] !== l || e[15] !== h || e[16] !== p || e[17] !== m || e[18] !== f ? (v = /* @__PURE__ */ k(w.Root, { open: l, positioning: h, onOpenChange: p, children: [
137
137
  m,
138
138
  f
139
- ] }), e[14] = r, e[15] = d, e[16] = p, e[17] = m, e[18] = f, e[19] = v) : v = e[19], v;
139
+ ] }), e[14] = l, e[15] = h, e[16] = p, e[17] = m, e[18] = f, e[19] = v) : v = e[19], v;
140
140
  }, vt = (n) => n.map((e) => ({
141
141
  key: e.id,
142
142
  label: e.label,
143
- icon: typeof e.icon == "function" ? /* @__PURE__ */ l(Me, { as: e.icon, boxSize: "16px" }) : e.icon,
143
+ icon: typeof e.icon == "function" ? /* @__PURE__ */ r(Me, { as: e.icon, boxSize: "16px" }) : e.icon,
144
144
  endContent: e.endContent,
145
145
  isDisabled: e.disabled,
146
146
  separatorBefore: e.separatorBefore,
147
147
  onClick: () => e.onAction?.()
148
148
  })), xt = (n) => {
149
- const e = T(15), {
149
+ const e = D(15), {
150
150
  children: t,
151
151
  item: o,
152
152
  menuOpen: i,
153
153
  onMenuOpenChange: s,
154
- onMenuSelect: r
154
+ onMenuSelect: l
155
155
  } = n;
156
156
  if (o.menuItems && o.menuItems.length > 0) {
157
157
  let p;
158
- return e[0] !== t || e[1] !== o.menuItems || e[2] !== o.menuPlacement || e[3] !== i || e[4] !== s || e[5] !== r ? (p = /* @__PURE__ */ l(bt, { items: o.menuItems, open: i, placement: o.menuPlacement, onOpenChange: s, onSelect: r, children: t }), e[0] = t, e[1] = o.menuItems, e[2] = o.menuPlacement, e[3] = i, e[4] = s, e[5] = r, e[6] = p) : p = e[6], p;
158
+ return e[0] !== t || e[1] !== o.menuItems || e[2] !== o.menuPlacement || e[3] !== i || e[4] !== s || e[5] !== l ? (p = /* @__PURE__ */ r(bt, { items: o.menuItems, open: i, placement: o.menuPlacement, onOpenChange: s, onSelect: l, children: t }), e[0] = t, e[1] = o.menuItems, e[2] = o.menuPlacement, e[3] = i, e[4] = s, e[5] = l, e[6] = p) : p = e[6], p;
159
159
  }
160
- let u;
161
- e[7] !== t || e[8] !== o.tooltip ? (u = o.tooltip ? /* @__PURE__ */ l(Qe, { content: o.tooltip, children: t }) : t, e[7] = t, e[8] = o.tooltip, e[9] = u) : u = e[9];
162
- const h = u;
163
- if (!o.contextMenuItems || o.contextMenuItems.length === 0)
164
- return h;
165
160
  let a;
166
- e[10] !== o.contextMenuItems ? (a = vt(o.contextMenuItems), e[10] = o.contextMenuItems, e[11] = a) : a = e[11];
167
- let d;
168
- return e[12] !== h || e[13] !== a ? (d = /* @__PURE__ */ l(pt, { actions: a, children: h }), e[12] = h, e[13] = a, e[14] = d) : d = e[14], d;
161
+ e[7] !== t || e[8] !== o.tooltip ? (a = o.tooltip ? /* @__PURE__ */ r(Qe, { content: o.tooltip, children: t }) : t, e[7] = t, e[8] = o.tooltip, e[9] = a) : a = e[9];
162
+ const d = a;
163
+ if (!o.contextMenuItems || o.contextMenuItems.length === 0)
164
+ return d;
165
+ let c;
166
+ e[10] !== o.contextMenuItems ? (c = vt(o.contextMenuItems), e[10] = o.contextMenuItems, e[11] = c) : c = e[11];
167
+ let h;
168
+ return e[12] !== d || e[13] !== c ? (h = /* @__PURE__ */ r(pt, { actions: c, children: d }), e[12] = d, e[13] = c, e[14] = h) : h = e[14], h;
169
169
  }, St = {
170
170
  main: {
171
171
  h: "2.5rem",
@@ -179,30 +179,18 @@ const gt = (n) => {
179
179
  h: "3rem",
180
180
  px: "0"
181
181
  }
182
- }, tt = ct.forwardRef(function(e, t) {
183
- const o = T(9);
184
- let i, s, r;
182
+ }, it = ct.forwardRef(function(e, t) {
183
+ const o = D(9);
184
+ let i, s, l;
185
185
  o[0] !== e ? ({
186
- variant: r,
186
+ variant: l,
187
187
  children: i,
188
188
  ...s
189
- } = e, o[0] = e, o[1] = i, o[2] = s, o[3] = r) : (i = o[1], s = o[2], r = o[3]);
190
- const h = St[r === void 0 ? "main" : r];
191
- let a;
192
- return o[4] !== i || o[5] !== t || o[6] !== s || o[7] !== h ? (a = /* @__PURE__ */ l(ue, { ref: t, as: "header", alignItems: "center", borderWidth: "0", ...h, ...s, children: i }), o[4] = i, o[5] = t, o[6] = s, o[7] = h, o[8] = a) : a = o[8], a;
193
- }), Ct = (n, e) => {
194
- const t = e.trim().toLowerCase();
195
- return t ? n.filter((o) => [o.label, o.searchText].filter(Boolean).join(" ").toLowerCase().includes(t)) : n;
196
- }, wt = (n, e) => !n || !e ? !1 : n !== e, It = (n, e, t) => !n || !e ? t : {
197
- items: e.items,
198
- filterItems: e.filterItems ?? t.filterItems,
199
- showSearch: e.showSearch ?? t.showSearch,
200
- searchPlaceholder: e.searchPlaceholder ?? t.searchPlaceholder,
201
- emptyState: e.emptyState ?? t.emptyState,
202
- contentTestId: e.contentTestId ?? t.contentTestId,
203
- closeOnSelect: !1,
204
- listId: "parent"
205
- }, yt = "calc(var(--chakra-z-index-popover) + 2)", Mt = {
189
+ } = e, o[0] = e, o[1] = i, o[2] = s, o[3] = l) : (i = o[1], s = o[2], l = o[3]);
190
+ const d = St[l === void 0 ? "main" : l];
191
+ let c;
192
+ return o[4] !== i || o[5] !== t || o[6] !== s || o[7] !== d ? (c = /* @__PURE__ */ r(ue, { ref: t, as: "header", alignItems: "center", borderWidth: "0", ...d, ...s, children: i }), o[4] = i, o[5] = t, o[6] = s, o[7] = d, o[8] = c) : c = o[8], c;
193
+ }), Ct = {
206
194
  bg: "transparent",
207
195
  border: "0",
208
196
  borderColor: "transparent",
@@ -227,20 +215,49 @@ const gt = (n) => {
227
215
  outline: "none",
228
216
  boxShadow: "none"
229
217
  }
230
- }, Pt = (n) => {
231
- const e = T(50), {
218
+ }, wt = (n) => {
219
+ const e = D(8), {
220
+ inputRef: t,
221
+ value: o,
222
+ placeholder: i,
223
+ onValueChange: s
224
+ } = n;
225
+ let l;
226
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ r(ut, { size: 14 }), e[0] = l) : l = e[0];
227
+ let a;
228
+ e[1] !== s ? (a = (c) => s(c.target.value), e[1] = s, e[2] = a) : a = e[2];
229
+ let d;
230
+ return e[3] !== t || e[4] !== i || e[5] !== a || e[6] !== o ? (d = /* @__PURE__ */ r(it, { variant: "input", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, children: /* @__PURE__ */ r(st, { startElement: l, width: "full", children: /* @__PURE__ */ r(at, { ref: t, mx: "xs", value: o, placeholder: i, "aria-label": i, autoComplete: "off", ...Ct, onChange: a, onKeyDown: It }) }) }), e[3] = t, e[4] = i, e[5] = a, e[6] = o, e[7] = d) : d = e[7], d;
231
+ };
232
+ function It(n) {
233
+ return n.stopPropagation();
234
+ }
235
+ const yt = (n, e) => {
236
+ const t = e.trim().toLowerCase();
237
+ return t ? n.filter((o) => [o.label, o.searchText].filter(Boolean).join(" ").toLowerCase().includes(t)) : n;
238
+ }, Mt = (n, e) => !n || !e ? !1 : n !== e, Pt = (n, e, t) => !n || !e ? t : {
239
+ items: e.items,
240
+ filterItems: e.filterItems ?? t.filterItems,
241
+ showSearch: e.showSearch ?? t.showSearch,
242
+ searchPlaceholder: e.searchPlaceholder ?? t.searchPlaceholder,
243
+ emptyState: e.emptyState ?? t.emptyState,
244
+ contentTestId: e.contentTestId ?? t.contentTestId,
245
+ closeOnSelect: !1,
246
+ listId: "parent"
247
+ }, kt = "calc(var(--chakra-z-index-popover) + 2)", Rt = (n) => {
248
+ const e = D(50), {
232
249
  trigger: t,
233
250
  items: o,
234
251
  searchPlaceholder: i,
235
252
  emptyState: s,
236
- filterItems: r,
237
- listId: u,
238
- header: h,
239
- width: a,
240
- maxListHeight: d,
253
+ filterItems: l,
254
+ listId: a,
255
+ header: d,
256
+ width: c,
257
+ maxListHeight: h,
241
258
  showSearch: p,
242
259
  closeOnSelect: m,
243
- lazyMount: c,
260
+ lazyMount: u,
244
261
  open: f,
245
262
  positioning: v,
246
263
  onOpenChange: C,
@@ -248,7 +265,7 @@ const gt = (n) => {
248
265
  contentTestId: J,
249
266
  portalled: $,
250
267
  parentList: x
251
- } = n, O = r === void 0 ? Ct : r, H = a === void 0 ? "260px" : a, A = d === void 0 ? "18rem" : d, j = p === void 0 ? !0 : p, F = m === void 0 ? !0 : m, N = c === void 0 ? !1 : c, he = $ === void 0 ? !0 : $, U = !!x, [Be, Te] = Ve(!1), [Pe, ke] = Ve(""), [Ge, fe] = Ve("child"), D = Ye(null), G = f ?? Be, ne = U && Ge === "parent", I = It(ne, x, {
268
+ } = n, O = l === void 0 ? yt : l, H = c === void 0 ? "260px" : c, A = h === void 0 ? "18rem" : h, j = p === void 0 ? !0 : p, F = m === void 0 ? !0 : m, N = u === void 0 ? !1 : u, he = $ === void 0 ? !0 : $, U = !!x, [Be, Te] = Ve(!1), [Pe, ke] = Ve(""), [Ge, fe] = Ve("child"), B = Ye(null), G = f ?? Be, ne = U && Ge === "parent", I = Pt(ne, x, {
252
269
  items: o,
253
270
  filterItems: O,
254
271
  showSearch: j,
@@ -256,20 +273,20 @@ const gt = (n) => {
256
273
  emptyState: s,
257
274
  contentTestId: J,
258
275
  closeOnSelect: F,
259
- listId: U ? "child" : u ?? ""
276
+ listId: U ? "child" : a ?? ""
260
277
  }), ge = I.filterItems(I.items, Pe), X = Ye(I.listId);
261
278
  et(() => {
262
279
  if (!G) {
263
280
  X.current = I.listId;
264
281
  return;
265
282
  }
266
- wt(X.current, I.listId) && ke(""), X.current = I.listId;
283
+ Mt(X.current, I.listId) && ke(""), X.current = I.listId;
267
284
  }, [G, I.listId]);
268
285
  let oe;
269
286
  e[0] !== I.showSearch || e[1] !== G ? (oe = [G, I.showSearch], e[0] = I.showSearch, e[1] = G, e[2] = oe) : oe = e[2], et(() => {
270
287
  if (!G || !I.showSearch)
271
288
  return;
272
- const g = setTimeout(() => D.current?.focus(), 0);
289
+ const g = setTimeout(() => B.current?.focus(), 0);
273
290
  return () => clearTimeout(g);
274
291
  }, oe);
275
292
  let pe;
@@ -284,7 +301,7 @@ const gt = (n) => {
284
301
  const $e = x.items.find((qe) => qe.id === g.value);
285
302
  $e && (x.onSelect?.($e), fe("child"));
286
303
  }, e[7] = ne, e[8] = x, e[9] = be) : be = e[9];
287
- const ve = be, Le = kt;
304
+ const ve = be, Le = Ot;
288
305
  let le;
289
306
  e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (le = (g) => ({
290
307
  id: g.id,
@@ -296,26 +313,26 @@ const gt = (n) => {
296
313
  }), e[10] = le) : le = e[10];
297
314
  const re = le;
298
315
  let Y;
299
- e[11] !== x ? (Y = x ? /* @__PURE__ */ l(tt, { as: "div", role: "menuitem", "aria-label": x.ariaLabel, "aria-disabled": x.disabled || void 0, tabIndex: x.disabled ? -1 : 0, variant: "narrow", px: "0", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, onPointerDownCapture: Rt, onClickCapture: (g) => {
300
- g.stopPropagation(), !x.disabled && fe(Ot);
301
- }, children: /* @__PURE__ */ l(Fe, { asChild: !0, role: "presentation", variant: "full-width", id: "__parent-toggle", label: x.selectedLabel, icon: Le(x.selectedIcon), disabled: x.disabled, endContent: x.disabled ? void 0 : /* @__PURE__ */ l(Me, { as: rt, boxSize: "14px" }) }) }) : null, e[11] = x, e[12] = Y) : Y = e[12];
302
- const xe = x ? Y : h, Oe = !!xe && !I.showSearch, me = I.showSearch ? /* @__PURE__ */ l(tt, { variant: "input", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, children: /* @__PURE__ */ l(st, { startElement: /* @__PURE__ */ l(ut, { size: 14 }), width: "full", children: /* @__PURE__ */ l(at, { ref: D, mx: "xs", value: Pe, placeholder: I.searchPlaceholder, "aria-label": I.searchPlaceholder, autoComplete: "off", ...Mt, onChange: (g) => ke(g.target.value), onKeyDown: Dt }) }) }) : null, W = w, Se = "auto", y = w, Ce = "bg", L = "0", Xe = "0";
316
+ e[11] !== x ? (Y = x ? /* @__PURE__ */ r(it, { as: "div", role: "menuitem", "aria-label": x.ariaLabel, "aria-disabled": x.disabled || void 0, tabIndex: x.disabled ? -1 : 0, variant: "narrow", px: "0", borderBottomWidth: "1px", borderColor: "border.subtle", flexShrink: 0, onPointerDownCapture: Dt, onClickCapture: (g) => {
317
+ g.stopPropagation(), !x.disabled && fe(Bt);
318
+ }, children: /* @__PURE__ */ r(Fe, { asChild: !0, role: "presentation", variant: "full-width", id: "__parent-toggle", label: x.selectedLabel, icon: Le(x.selectedIcon), disabled: x.disabled, endContent: x.disabled ? void 0 : /* @__PURE__ */ r(Me, { as: lt, boxSize: "14px" }) }) }) : null, e[11] = x, e[12] = Y) : Y = e[12];
319
+ const xe = x ? Y : d, Oe = !!xe && !I.showSearch, me = I.showSearch ? /* @__PURE__ */ r(wt, { inputRef: B, value: Pe, placeholder: I.searchPlaceholder, onValueChange: ke }) : null, W = w, Se = "auto", y = w, Ce = "bg", L = "0", Xe = "0";
303
320
  let P;
304
- e[13] !== Oe ? (P = Oe ? /* @__PURE__ */ l(w.Separator, { margin: "0" }) : null, e[13] = Oe, e[14] = P) : P = e[14];
321
+ e[13] !== Oe ? (P = Oe ? /* @__PURE__ */ r(w.Separator, { margin: "0" }) : null, e[13] = Oe, e[14] = P) : P = e[14];
305
322
  const De = ft;
306
- let B;
307
- e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = {
323
+ let T;
324
+ e[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
308
325
  overscrollBehavior: "contain"
309
- }, e[15] = B) : B = e[15];
310
- const M = "0", we = "0", q = ge.length > 0 ? ge.map((g) => /* @__PURE__ */ l(w.Item, { value: g.id, disabled: g.isDisabled, onClick: g.onSelect, asChild: !0, children: /* @__PURE__ */ l(z, { bg: "transparent", h: "auto", p: "0", _hover: {
326
+ }, e[15] = T) : T = e[15];
327
+ const M = "0", we = "0", q = ge.length > 0 ? ge.map((g) => /* @__PURE__ */ r(w.Item, { value: g.id, disabled: g.isDisabled, onClick: g.onSelect, asChild: !0, children: /* @__PURE__ */ r(z, { bg: "transparent", h: "auto", p: "0", _hover: {
311
328
  bg: "transparent"
312
329
  }, _focus: {
313
330
  bg: "transparent"
314
331
  }, _active: {
315
332
  bg: "transparent"
316
- }, children: /* @__PURE__ */ l(Fe, { asChild: !0, ...re(g), role: "presentation", variant: g.variant ?? "full-width", isSelected: g.isSelected }) }) }, g.id)) : I.emptyState;
333
+ }, children: /* @__PURE__ */ r(Fe, { asChild: !0, ...re(g), role: "presentation", variant: g.variant ?? "full-width", isSelected: g.isSelected }) }) }, g.id)) : I.emptyState;
317
334
  let K;
318
- e[16] !== De || e[17] !== I.contentTestId || e[18] !== A || e[19] !== B || e[20] !== q ? (K = /* @__PURE__ */ l(De, { maxH: A, "data-testid": I.contentTestId, viewportProps: B, p: M, gap: we, children: q }), e[16] = De, e[17] = I.contentTestId, e[18] = A, e[19] = B, e[20] = q, e[21] = K) : K = e[21];
335
+ e[16] !== De || e[17] !== I.contentTestId || e[18] !== A || e[19] !== T || e[20] !== q ? (K = /* @__PURE__ */ r(De, { maxH: A, "data-testid": I.contentTestId, viewportProps: T, p: M, gap: we, children: q }), e[16] = De, e[17] = I.contentTestId, e[18] = A, e[19] = T, e[20] = q, e[21] = K) : K = e[21];
319
336
  let E;
320
337
  e[22] !== xe || e[23] !== me || e[24] !== y.Content || e[25] !== P || e[26] !== K || e[27] !== H ? (E = /* @__PURE__ */ k(y.Content, { w: H, bg: Ce, gap: L, p: Xe, children: [
321
338
  xe,
@@ -324,51 +341,48 @@ const gt = (n) => {
324
341
  K
325
342
  ] }), e[22] = xe, e[23] = me, e[24] = y.Content, e[25] = P, e[26] = K, e[27] = H, e[28] = E) : E = e[28];
326
343
  let ee;
327
- e[29] !== W.Positioner || e[30] !== E ? (ee = /* @__PURE__ */ l(W.Positioner, { pointerEvents: Se, children: E }), e[29] = W.Positioner, e[30] = E, e[31] = ee) : ee = e[31];
344
+ e[29] !== W.Positioner || e[30] !== E ? (ee = /* @__PURE__ */ r(W.Positioner, { pointerEvents: Se, children: E }), e[29] = W.Positioner, e[30] = E, e[31] = ee) : ee = e[31];
328
345
  const ie = ee, se = U ? ve : void 0;
329
346
  let Z;
330
- e[32] !== t ? (Z = /* @__PURE__ */ l(w.Trigger, { asChild: !0, children: t }), e[32] = t, e[33] = Z) : Z = e[33];
347
+ e[32] !== t ? (Z = /* @__PURE__ */ r(w.Trigger, { asChild: !0, children: t }), e[32] = t, e[33] = Z) : Z = e[33];
331
348
  const Ie = !he;
332
349
  let ae;
333
- e[34] !== ie || e[35] !== he ? (ae = he ? /* @__PURE__ */ l(z, { position: "fixed", inset: "0", pointerEvents: "none", zIndex: yt, children: ie }) : ie, e[34] = ie, e[35] = he, e[36] = ae) : ae = e[36];
350
+ e[34] !== ie || e[35] !== he ? (ae = he ? /* @__PURE__ */ r(z, { position: "fixed", inset: "0", pointerEvents: "none", zIndex: kt, children: ie }) : ie, e[34] = ie, e[35] = he, e[36] = ae) : ae = e[36];
334
351
  let ce;
335
- e[37] !== Ie || e[38] !== ae ? (ce = /* @__PURE__ */ l(Ne, { disabled: Ie, children: ae }), e[37] = Ie, e[38] = ae, e[39] = ce) : ce = e[39];
352
+ e[37] !== Ie || e[38] !== ae ? (ce = /* @__PURE__ */ r(Ne, { disabled: Ie, children: ae }), e[37] = Ie, e[38] = ae, e[39] = ce) : ce = e[39];
336
353
  let te;
337
354
  return e[40] !== I.closeOnSelect || e[41] !== Re || e[42] !== N || e[43] !== b || e[44] !== f || e[45] !== v || e[46] !== se || e[47] !== Z || e[48] !== ce ? (te = /* @__PURE__ */ k(w.Root, { lazyMount: N, closeOnSelect: I.closeOnSelect, open: f, positioning: v, onOpenChange: Re, onFocusOutside: b, onSelect: se, children: [
338
355
  Z,
339
356
  ce
340
357
  ] }), e[40] = I.closeOnSelect, e[41] = Re, e[42] = N, e[43] = b, e[44] = f, e[45] = v, e[46] = se, e[47] = Z, e[48] = ce, e[49] = te) : te = e[49], te;
341
358
  };
342
- function kt(n) {
343
- return n ? /* @__PURE__ */ l(Me, { as: n, boxSize: "14px" }) : void 0;
344
- }
345
- function Rt(n) {
346
- return n.stopPropagation();
347
- }
348
359
  function Ot(n) {
349
- return n === "child" ? "parent" : "child";
360
+ return n ? /* @__PURE__ */ r(Me, { as: n, boxSize: "14px" }) : void 0;
350
361
  }
351
362
  function Dt(n) {
352
363
  return n.stopPropagation();
353
364
  }
354
- const Bt = (n) => {
355
- const e = T(14), {
365
+ function Bt(n) {
366
+ return n === "child" ? "parent" : "child";
367
+ }
368
+ const Tt = (n) => {
369
+ const e = D(14), {
356
370
  action: t
357
371
  } = n;
358
372
  let o;
359
373
  e[0] !== t.menuItems ? (o = t.menuItems ?? [], e[0] = t.menuItems, e[1] = o) : o = e[1];
360
374
  let i;
361
- e[2] !== o ? (i = o.map(Tt), e[2] = o, e[3] = i) : i = e[3];
375
+ e[2] !== o ? (i = o.map(Wt), e[2] = o, e[3] = i) : i = e[3];
362
376
  const s = i;
363
- let r;
364
- e[4] !== t.icon || e[5] !== t.label ? (r = /* @__PURE__ */ l(Je, { variant: "ghost", size: "2xs", "aria-label": t.label, children: t.icon }), e[4] = t.icon, e[5] = t.label, e[6] = r) : r = e[6];
365
- const u = t.searchPlaceholder ?? "Search...", h = t.emptyMenuLabel ?? "No results found";
366
- let a;
367
- e[7] !== h ? (a = /* @__PURE__ */ l(w.Item, { value: "empty", asChild: !0, children: /* @__PURE__ */ l(Fe, { asChild: !0, variant: "full-width", label: h, disabled: !0 }) }), e[7] = h, e[8] = a) : a = e[8];
368
- let d;
369
- return e[9] !== s || e[10] !== r || e[11] !== u || e[12] !== a ? (d = /* @__PURE__ */ l(Pt, { trigger: r, items: s, searchPlaceholder: u, emptyState: a, onFocusOutside: Wt }), e[9] = s, e[10] = r, e[11] = u, e[12] = a, e[13] = d) : d = e[13], d;
377
+ let l;
378
+ e[4] !== t.icon || e[5] !== t.label ? (l = /* @__PURE__ */ r(Je, { variant: "ghost", size: "2xs", "aria-label": t.label, children: t.icon }), e[4] = t.icon, e[5] = t.label, e[6] = l) : l = e[6];
379
+ const a = t.searchPlaceholder ?? "Search...", d = t.emptyMenuLabel ?? "No results found";
380
+ let c;
381
+ e[7] !== d ? (c = /* @__PURE__ */ r(w.Item, { value: "empty", asChild: !0, children: /* @__PURE__ */ r(Fe, { asChild: !0, variant: "full-width", label: d, disabled: !0 }) }), e[7] = d, e[8] = c) : c = e[8];
382
+ let h;
383
+ return e[9] !== s || e[10] !== l || e[11] !== a || e[12] !== c ? (h = /* @__PURE__ */ r(Rt, { trigger: l, items: s, searchPlaceholder: a, emptyState: c, onFocusOutside: Lt }), e[9] = s, e[10] = l, e[11] = a, e[12] = c, e[13] = h) : h = e[13], h;
370
384
  };
371
- function Tt(n) {
385
+ function Wt(n) {
372
386
  return {
373
387
  id: n.id,
374
388
  label: n.label,
@@ -378,91 +392,91 @@ function Tt(n) {
378
392
  onSelect: () => n.onAction?.()
379
393
  };
380
394
  }
381
- function Wt(n) {
395
+ function Lt(n) {
382
396
  return n.preventDefault();
383
397
  }
384
- const nt = (n, e) => n.tooltip ? /* @__PURE__ */ l(Qe, { content: n.tooltip, openDelay: 300, children: e }, n.id) : /* @__PURE__ */ l(Ke, { children: e }, n.id), Lt = (n) => {
385
- const e = T(11), {
398
+ const tt = (n, e) => n.tooltip ? /* @__PURE__ */ r(Qe, { content: n.tooltip, openDelay: 300, children: e }, n.id) : /* @__PURE__ */ r(Ke, { children: e }, n.id), $t = (n) => {
399
+ const e = D(11), {
386
400
  actions: t,
387
401
  alwaysVisible: o,
388
402
  context: i
389
403
  } = n, s = o === void 0 ? !1 : o;
390
404
  if (t.length === 0)
391
405
  return null;
392
- const r = s ? "1" : "0", u = s ? "auto" : "none";
393
- let h, a;
394
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
406
+ const l = s ? "1" : "0", a = s ? "auto" : "none";
407
+ let d, c;
408
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
395
409
  opacity: "1",
396
410
  pointerEvents: "auto"
397
- }, a = {
411
+ }, c = {
398
412
  opacity: "1",
399
413
  pointerEvents: "auto"
400
- }, e[0] = h, e[1] = a) : (h = e[0], a = e[1]);
401
- let d;
414
+ }, e[0] = d, e[1] = c) : (d = e[0], c = e[1]);
415
+ let h;
402
416
  if (e[2] !== t || e[3] !== i) {
403
417
  let m;
404
- e[5] !== i ? (m = (c) => c.menuItems && c.menuItems.length >= 8 ? /* @__PURE__ */ l(Bt, { action: c }, c.id) : c.menuItems && c.menuItems.length > 0 ? nt(c, /* @__PURE__ */ k(w.Root, { children: [
405
- /* @__PURE__ */ l(w.Trigger, { asChild: !0, children: /* @__PURE__ */ l(Je, { variant: "ghost", size: "2xs", "aria-label": c.label, children: c.icon }) }),
406
- /* @__PURE__ */ l(Ne, { children: /* @__PURE__ */ l(w.Positioner, { children: /* @__PURE__ */ l(w.Content, { minW: "160px", bg: "bg", children: c.menuItems.map(Ht) }) }) })
407
- ] })) : nt(c, /* @__PURE__ */ l(Je, { variant: "ghost", size: "2xs", "aria-label": c.label, onClick: (f) => {
408
- f.stopPropagation(), c.onAction?.(i);
409
- }, children: c.icon })), e[5] = i, e[6] = m) : m = e[6], d = t.map(m), e[2] = t, e[3] = i, e[4] = d;
418
+ e[5] !== i ? (m = (u) => u.menuItems && u.menuItems.length >= 8 ? /* @__PURE__ */ r(Tt, { action: u }, u.id) : u.menuItems && u.menuItems.length > 0 ? tt(u, /* @__PURE__ */ k(w.Root, { children: [
419
+ /* @__PURE__ */ r(w.Trigger, { asChild: !0, children: /* @__PURE__ */ r(Je, { variant: "ghost", size: "2xs", "aria-label": u.label, children: u.icon }) }),
420
+ /* @__PURE__ */ r(Ne, { children: /* @__PURE__ */ r(w.Positioner, { children: /* @__PURE__ */ r(w.Content, { minW: "160px", bg: "bg", children: u.menuItems.map(At) }) }) })
421
+ ] })) : tt(u, /* @__PURE__ */ r(Je, { variant: "ghost", size: "2xs", "aria-label": u.label, onClick: (f) => {
422
+ f.stopPropagation(), u.onAction?.(i);
423
+ }, children: u.icon })), e[5] = i, e[6] = m) : m = e[6], h = t.map(m), e[2] = t, e[3] = i, e[4] = h;
410
424
  } else
411
- d = e[4];
425
+ h = e[4];
412
426
  let p;
413
- return e[7] !== r || e[8] !== u || e[9] !== d ? (p = /* @__PURE__ */ l(ue, { gap: "0", opacity: r, pointerEvents: u, _groupHover: h, _groupFocusWithin: a, transition: "opacity 120ms ease", onClick: $t, children: d }), e[7] = r, e[8] = u, e[9] = d, e[10] = p) : p = e[10], p;
427
+ return e[7] !== l || e[8] !== a || e[9] !== h ? (p = /* @__PURE__ */ r(ue, { gap: "0", opacity: l, pointerEvents: a, _groupHover: d, _groupFocusWithin: c, transition: "opacity 120ms ease", onClick: Ht, children: h }), e[7] = l, e[8] = a, e[9] = h, e[10] = p) : p = e[10], p;
414
428
  };
415
- function $t(n) {
429
+ function Ht(n) {
416
430
  return n.stopPropagation();
417
431
  }
418
- function Ht(n) {
432
+ function At(n) {
419
433
  return /* @__PURE__ */ k(Ke, { children: [
420
- n.separatorBefore ? /* @__PURE__ */ l(w.Separator, {}) : null,
421
- /* @__PURE__ */ l(Qe, { content: n.description, disabled: !n.description, openDelay: 300, children: /* @__PURE__ */ l(w.Item, { value: n.id, disabled: n.disabled || n.readOnly, onClick: () => {
434
+ n.separatorBefore ? /* @__PURE__ */ r(w.Separator, {}) : null,
435
+ /* @__PURE__ */ r(Qe, { content: n.description, disabled: !n.description, openDelay: 300, children: /* @__PURE__ */ r(w.Item, { value: n.id, disabled: n.disabled || n.readOnly, onClick: () => {
422
436
  n.readOnly || n.onAction?.();
423
437
  }, children: /* @__PURE__ */ k(ue, { gap: "2", minW: "0", w: "full", justify: "space-between", children: [
424
438
  /* @__PURE__ */ k(ue, { gap: "2", minW: "0", children: [
425
- n.icon ? /* @__PURE__ */ l(z, { children: n.icon }) : null,
426
- /* @__PURE__ */ l(z, { minW: "0", children: n.label })
439
+ n.icon ? /* @__PURE__ */ r(z, { children: n.icon }) : null,
440
+ /* @__PURE__ */ r(z, { minW: "0", children: n.label })
427
441
  ] }),
428
- n.endContent ? /* @__PURE__ */ l(z, { flexShrink: 0, children: n.endContent }) : null
442
+ n.endContent ? /* @__PURE__ */ r(z, { flexShrink: 0, children: n.endContent }) : null
429
443
  ] }) }) })
430
444
  ] }, n.id);
431
445
  }
432
- const At = (n, e = !0) => {
446
+ const Et = (n, e = !0) => {
433
447
  const t = n.contextMenuItems ?? [];
434
448
  if (t.length === 0 || !e) return n.actions ?? [];
435
- const o = n.actions?.flatMap((r) => r.menuItems?.length ? r.menuItems : [{
436
- id: r.id,
437
- label: r.label,
438
- icon: r.icon,
439
- onAction: () => r.onAction?.({
449
+ const o = n.actions?.flatMap((l) => l.menuItems?.length ? l.menuItems : [{
450
+ id: l.id,
451
+ label: l.label,
452
+ icon: l.icon,
453
+ onAction: () => l.onAction?.({
440
454
  nodeId: n.id
441
455
  })
442
- }]) ?? [], i = new Set(o.map((r) => r.id)), s = t.filter((r) => !i.has(r.id)).map((r, u) => ({
443
- ...r,
444
- separatorBefore: r.separatorBefore || u === 0 && o.length > 0
456
+ }]) ?? [], i = new Set(o.map((l) => l.id)), s = t.filter((l) => !i.has(l.id)).map((l, a) => ({
457
+ ...l,
458
+ separatorBefore: l.separatorBefore || a === 0 && o.length > 0
445
459
  }));
446
460
  return [{
447
461
  id: "resource-actions",
448
462
  label: "Resource actions",
449
- icon: /* @__PURE__ */ l(Me, { as: rt, boxSize: "14px" }),
463
+ icon: /* @__PURE__ */ r(Me, { as: lt, boxSize: "14px" }),
450
464
  menuItems: [...o, ...s]
451
465
  }];
452
- }, Et = (n) => n.isEmptyStateVariant ? "fg.menu-item.secondary" : n.isDisabled ? "fg.muted" : n.tone === "danger" ? "red.500" : "fg", zt = (n) => {
453
- const e = T(7), {
466
+ }, zt = (n) => n.isEmptyStateVariant ? "fg.menu-item.secondary" : n.isDisabled ? "fg.muted" : n.tone === "danger" ? "red.500" : "fg", _t = (n) => {
467
+ const e = D(7), {
454
468
  label: t,
455
469
  textStyle: o,
456
470
  color: i
457
471
  } = n;
458
472
  if (typeof t == "string") {
459
- let r;
460
- return e[0] !== i || e[1] !== t || e[2] !== o ? (r = /* @__PURE__ */ l(je, { textStyle: o, color: i, truncate: !0, children: t }), e[0] = i, e[1] = t, e[2] = o, e[3] = r) : r = e[3], r;
473
+ let l;
474
+ return e[0] !== i || e[1] !== t || e[2] !== o ? (l = /* @__PURE__ */ r(je, { textStyle: o, color: i, truncate: !0, children: t }), e[0] = i, e[1] = t, e[2] = o, e[3] = l) : l = e[3], l;
461
475
  }
462
476
  let s;
463
- return e[4] !== i || e[5] !== t ? (s = /* @__PURE__ */ l(z, { minW: "0", maxW: "full", overflow: "hidden", color: i, children: t }), e[4] = i, e[5] = t, e[6] = s) : s = e[6], s;
464
- }, _t = (n) => {
465
- const e = T(8), {
477
+ return e[4] !== i || e[5] !== t ? (s = /* @__PURE__ */ r(z, { minW: "0", maxW: "full", overflow: "hidden", color: i, children: t }), e[4] = i, e[5] = t, e[6] = s) : s = e[6], s;
478
+ }, Vt = (n) => {
479
+ const e = D(8), {
466
480
  description: t,
467
481
  textStyle: o,
468
482
  color: i,
@@ -471,40 +485,40 @@ const At = (n, e = !0) => {
471
485
  if (!t)
472
486
  return null;
473
487
  if (typeof t == "string") {
474
- let u;
475
- return e[0] !== i || e[1] !== t || e[2] !== s || e[3] !== o ? (u = /* @__PURE__ */ l(je, { ml: s, textStyle: o, color: i, truncate: !0, children: t }), e[0] = i, e[1] = t, e[2] = s, e[3] = o, e[4] = u) : u = e[4], u;
488
+ let a;
489
+ return e[0] !== i || e[1] !== t || e[2] !== s || e[3] !== o ? (a = /* @__PURE__ */ r(je, { ml: s, textStyle: o, color: i, truncate: !0, children: t }), e[0] = i, e[1] = t, e[2] = s, e[3] = o, e[4] = a) : a = e[4], a;
476
490
  }
477
- let r;
478
- return e[5] !== t || e[6] !== s ? (r = /* @__PURE__ */ l(z, { ml: s, minW: "0", maxW: "full", overflow: "hidden", children: t }), e[5] = t, e[6] = s, e[7] = r) : r = e[7], r;
479
- }, Vt = (n) => {
480
- const e = T(33), {
491
+ let l;
492
+ return e[5] !== t || e[6] !== s ? (l = /* @__PURE__ */ r(z, { ml: s, minW: "0", maxW: "full", overflow: "hidden", children: t }), e[5] = t, e[6] = s, e[7] = l) : l = e[7], l;
493
+ }, jt = (n) => {
494
+ const e = D(33), {
481
495
  item: t,
482
496
  isExpanded: o,
483
497
  showChevron: i,
484
498
  isDisabled: s,
485
- variant: r,
486
- tone: u
487
- } = n, h = r === "empty-state", a = r === "compact" || r === "collection" || r === "full-width" || r === "tree" || h, d = a ? "label/S/regular" : "label/M/regular", p = a ? "label/XS" : "label/S/regular", m = a ? "0" : "2px", c = r === "tree" || r === "collection" ? "16px" : "14px", f = r === "collection" ? "compact" : r === "tree" ? "1" : "2";
499
+ variant: l,
500
+ tone: a
501
+ } = n, d = l === "empty-state", c = l === "compact" || l === "collection" || l === "full-width" || l === "tree" || d, h = c ? "label/S/regular" : "label/M/regular", p = c ? "label/XS" : "label/S/regular", m = c ? "0" : "2px", u = l === "tree" || l === "collection" ? "16px" : "14px", f = l === "collection" ? "compact" : l === "tree" ? "1" : "2";
488
502
  let v;
489
- e[0] !== s || e[1] !== h || e[2] !== u ? (v = Et({
490
- isEmptyStateVariant: h,
503
+ e[0] !== s || e[1] !== d || e[2] !== a ? (v = zt({
504
+ isEmptyStateVariant: d,
491
505
  isDisabled: s,
492
- tone: u
493
- }), e[0] = s, e[1] = h, e[2] = u, e[3] = v) : v = e[3];
494
- const C = v, b = t.iconColor ?? (u === "danger" ? "red.500" : "fg.muted"), J = u === "danger" ? "red.400" : "fg.menu-item.secondary";
506
+ tone: a
507
+ }), e[0] = s, e[1] = d, e[2] = a, e[3] = v) : v = e[3];
508
+ const C = v, b = t.iconColor ?? (a === "danger" ? "red.500" : "fg.muted"), J = a === "danger" ? "red.400" : "fg.menu-item.secondary";
495
509
  let $;
496
- e[4] !== o || e[5] !== i ? ($ = i ? /* @__PURE__ */ l(z, { color: "fg.muted", flexShrink: 0, display: "flex", alignItems: "center", children: /* @__PURE__ */ l(Me, { as: ht, boxSize: "12px", transform: o ? "rotate(90deg)" : "rotate(0deg)", transition: "transform 120ms ease" }) }) : null, e[4] = o, e[5] = i, e[6] = $) : $ = e[6];
510
+ e[4] !== o || e[5] !== i ? ($ = i ? /* @__PURE__ */ r(z, { color: "fg.muted", flexShrink: 0, display: "flex", alignItems: "center", children: /* @__PURE__ */ r(Me, { as: ht, boxSize: "12px", transform: o ? "rotate(90deg)" : "rotate(0deg)", transition: "transform 120ms ease" }) }) : null, e[4] = o, e[5] = i, e[6] = $) : $ = e[6];
497
511
  let x;
498
- e[7] !== b || e[8] !== c || e[9] !== t.icon ? (x = t.icon ? /* @__PURE__ */ l(z, { color: b, flexShrink: 0, display: "inline-flex", alignItems: "center", justifyContent: "center", boxSize: c, fontSize: c, lineHeight: "1", css: {
512
+ e[7] !== b || e[8] !== u || e[9] !== t.icon ? (x = t.icon ? /* @__PURE__ */ r(z, { color: b, flexShrink: 0, display: "inline-flex", alignItems: "center", justifyContent: "center", boxSize: u, fontSize: u, lineHeight: "1", css: {
499
513
  "& > svg": {
500
- width: c,
501
- height: c
514
+ width: u,
515
+ height: u
502
516
  }
503
- }, children: t.icon }) : null, e[7] = b, e[8] = c, e[9] = t.icon, e[10] = x) : x = e[10];
517
+ }, children: t.icon }) : null, e[7] = b, e[8] = u, e[9] = t.icon, e[10] = x) : x = e[10];
504
518
  let O;
505
- e[11] !== t.indicator ? (O = t.indicator ? /* @__PURE__ */ l(Qe, { content: t.indicator.tooltip, disabled: !t.indicator.tooltip, openDelay: 300, children: /* @__PURE__ */ l(z, { color: t.indicator.color ?? "fg.muted", flexShrink: 0, children: t.indicator.icon }) }) : null, e[11] = t.indicator, e[12] = O) : O = e[12];
519
+ e[11] !== t.indicator ? (O = t.indicator ? /* @__PURE__ */ r(Qe, { content: t.indicator.tooltip, disabled: !t.indicator.tooltip, openDelay: 300, children: /* @__PURE__ */ r(z, { color: t.indicator.color ?? "fg.muted", flexShrink: 0, children: t.indicator.icon }) }) : null, e[11] = t.indicator, e[12] = O) : O = e[12];
506
520
  let H;
507
- e[13] !== t.label || e[14] !== C || e[15] !== d ? (H = /* @__PURE__ */ l(zt, { label: t.label, textStyle: d, color: C }), e[13] = t.label, e[14] = C, e[15] = d, e[16] = H) : H = e[16];
521
+ e[13] !== t.label || e[14] !== C || e[15] !== h ? (H = /* @__PURE__ */ r(_t, { label: t.label, textStyle: h, color: C }), e[13] = t.label, e[14] = C, e[15] = h, e[16] = H) : H = e[16];
508
522
  let A;
509
523
  e[17] !== f || e[18] !== x || e[19] !== O || e[20] !== H ? (A = /* @__PURE__ */ k(ue, { gap: f, minW: "0", alignItems: "center", children: [
510
524
  x,
@@ -512,9 +526,9 @@ const At = (n, e = !0) => {
512
526
  H
513
527
  ] }), e[17] = f, e[18] = x, e[19] = O, e[20] = H, e[21] = A) : A = e[21];
514
528
  let j;
515
- e[22] !== J || e[23] !== m || e[24] !== p || e[25] !== t.description ? (j = /* @__PURE__ */ l(_t, { description: t.description, textStyle: p, color: J, marginLeft: m }), e[22] = J, e[23] = m, e[24] = p, e[25] = t.description, e[26] = j) : j = e[26];
529
+ e[22] !== J || e[23] !== m || e[24] !== p || e[25] !== t.description ? (j = /* @__PURE__ */ r(Vt, { description: t.description, textStyle: p, color: J, marginLeft: m }), e[22] = J, e[23] = m, e[24] = p, e[25] = t.description, e[26] = j) : j = e[26];
516
530
  let F;
517
- e[27] !== A || e[28] !== j ? (F = /* @__PURE__ */ k(lt, { gap: "0", minW: "0", flex: "1", children: [
531
+ e[27] !== A || e[28] !== j ? (F = /* @__PURE__ */ k(ot, { gap: "0", minW: "0", flex: "1", children: [
518
532
  A,
519
533
  j
520
534
  ] }), e[27] = A, e[28] = j, e[29] = F) : F = e[29];
@@ -523,46 +537,46 @@ const At = (n, e = !0) => {
523
537
  $,
524
538
  F
525
539
  ] }), e[30] = $, e[31] = F, e[32] = N) : N = e[32], N;
526
- }, jt = (n) => {
527
- const e = T(21), {
540
+ }, Ft = (n) => {
541
+ const e = D(21), {
528
542
  item: t,
529
543
  isDisabled: o,
530
544
  isExpanded: i,
531
545
  showChevron: s,
532
- tone: r,
533
- variant: u,
534
- showContextMenuTrigger: h
535
- } = n, a = r === void 0 ? "default" : r, d = u === void 0 ? "default" : u;
546
+ tone: l,
547
+ variant: a,
548
+ showContextMenuTrigger: d
549
+ } = n, c = l === void 0 ? "default" : l, h = a === void 0 ? "default" : a;
536
550
  let p;
537
- e[0] !== t || e[1] !== h ? (p = At(t, h), e[0] = t, e[1] = h, e[2] = p) : p = e[2];
551
+ e[0] !== t || e[1] !== d ? (p = Et(t, d), e[0] = t, e[1] = d, e[2] = p) : p = e[2];
538
552
  const m = p;
539
- let c;
540
- e[3] !== o || e[4] !== i || e[5] !== t || e[6] !== s || e[7] !== a || e[8] !== d ? (c = /* @__PURE__ */ l(Vt, { item: t, isExpanded: i, showChevron: s, isDisabled: o, tone: a, variant: d }), e[3] = o, e[4] = i, e[5] = t, e[6] = s, e[7] = a, e[8] = d, e[9] = c) : c = e[9];
553
+ let u;
554
+ e[3] !== o || e[4] !== i || e[5] !== t || e[6] !== s || e[7] !== c || e[8] !== h ? (u = /* @__PURE__ */ r(jt, { item: t, isExpanded: i, showChevron: s, isDisabled: o, tone: c, variant: h }), e[3] = o, e[4] = i, e[5] = t, e[6] = s, e[7] = c, e[8] = h, e[9] = u) : u = e[9];
541
555
  let f;
542
- e[10] !== t.endContent ? (f = t.endContent ? /* @__PURE__ */ l(z, { flexShrink: 0, color: "fg.muted", display: "flex", alignItems: "center", children: t.endContent }) : null, e[10] = t.endContent, e[11] = f) : f = e[11];
556
+ e[10] !== t.endContent ? (f = t.endContent ? /* @__PURE__ */ r(z, { flexShrink: 0, color: "fg.muted", display: "flex", alignItems: "center", children: t.endContent }) : null, e[10] = t.endContent, e[11] = f) : f = e[11];
543
557
  let v;
544
- e[12] !== m || e[13] !== t.contextMenuItems?.length || e[14] !== t.id || e[15] !== h ? (v = m.length > 0 ? /* @__PURE__ */ l(Lt, { actions: m, context: {
558
+ e[12] !== m || e[13] !== t.contextMenuItems?.length || e[14] !== t.id || e[15] !== d ? (v = m.length > 0 ? /* @__PURE__ */ r($t, { actions: m, context: {
545
559
  nodeId: t.id
546
- }, alwaysVisible: h && (t.contextMenuItems?.length ?? 0) > 0 }) : null, e[12] = m, e[13] = t.contextMenuItems?.length, e[14] = t.id, e[15] = h, e[16] = v) : v = e[16];
560
+ }, alwaysVisible: d && (t.contextMenuItems?.length ?? 0) > 0 }) : null, e[12] = m, e[13] = t.contextMenuItems?.length, e[14] = t.id, e[15] = d, e[16] = v) : v = e[16];
547
561
  let C;
548
- return e[17] !== c || e[18] !== f || e[19] !== v ? (C = /* @__PURE__ */ k(ot, { children: [
549
- c,
562
+ return e[17] !== u || e[18] !== f || e[19] !== v ? (C = /* @__PURE__ */ k(nt, { children: [
563
+ u,
550
564
  f,
551
565
  v
552
- ] }), e[17] = c, e[18] = f, e[19] = v, e[20] = C) : C = e[20], C;
553
- }, Ft = (n) => {
566
+ ] }), e[17] = u, e[18] = f, e[19] = v, e[20] = C) : C = e[20], C;
567
+ }, Nt = (n) => {
554
568
  if (!(n <= 0))
555
569
  return `calc(var(--chakra-spacing-1) + ${n} * 12px)`;
556
- }, Nt = (n) => n === "compact" || n === "full-width" || n === "empty-state", Kt = (n, e) => n === "collection" && !e ? {
570
+ }, Kt = (n) => n === "compact" || n === "full-width" || n === "empty-state", Qt = (n, e) => n === "collection" && !e ? {
557
571
  rowHeight: "collection-row",
558
572
  minHeight: void 0
559
- } : Nt(n) && !e ? {
573
+ } : Kt(n) && !e ? {
560
574
  rowHeight: "1.75rem",
561
575
  minHeight: void 0
562
576
  } : {
563
577
  rowHeight: "auto",
564
578
  minHeight: n === "default" ? "2.25rem" : "1.75rem"
565
- }, Qt = (n) => ({
579
+ }, Gt = (n) => ({
566
580
  bg: n.isSelected ? n.selectedBg : "transparent",
567
581
  _hover: n.variant === "empty-state" ? {
568
582
  bg: "transparent"
@@ -580,7 +594,7 @@ const At = (n, e = !0) => {
580
594
  } : {
581
595
  bg: n.selectedBg
582
596
  }
583
- }), Gt = (n) => ({
597
+ }), Xt = (n) => ({
584
598
  ...n.rootProps,
585
599
  role: n.rowRole,
586
600
  "aria-selected": n.rootProps["aria-selected"] ?? (n.rowRole === "option" ? n.isSelected : void 0),
@@ -599,7 +613,7 @@ const At = (n, e = !0) => {
599
613
  py: n.verticalPadding,
600
614
  pl: n.paddingLeft,
601
615
  borderRadius: n.variant === "full-width" || n.variant === "collection" ? "0" : "xs",
602
- ...Qt({
616
+ ...Gt({
603
617
  ...n
604
618
  }),
605
619
  cursor: n.variant === "empty-state" ? "default" : n.isDisabled ? "not-allowed" : "pointer",
@@ -608,18 +622,18 @@ const At = (n, e = !0) => {
608
622
  color: "inherit",
609
623
  textDecoration: "none"
610
624
  }), Fe = dt((n, e) => {
611
- const t = T(108), {
625
+ const t = D(108), {
612
626
  id: o,
613
627
  label: i,
614
628
  description: s,
615
- icon: r,
616
- iconColor: u,
617
- indicator: h,
618
- endContent: a,
619
- tooltip: d,
629
+ icon: l,
630
+ iconColor: a,
631
+ indicator: d,
632
+ endContent: c,
633
+ tooltip: h,
620
634
  disabled: p,
621
635
  isContainer: m,
622
- isNavigable: c,
636
+ isNavigable: u,
623
637
  href: f,
624
638
  navigationIntent: v,
625
639
  menuItems: C,
@@ -641,7 +655,7 @@ const At = (n, e = !0) => {
641
655
  className: ke,
642
656
  role: Ge,
643
657
  onToggleExpand: fe,
644
- onPointerMove: D,
658
+ onPointerMove: B,
645
659
  draggable: G,
646
660
  onDragStart: ne,
647
661
  onDragOver: We,
@@ -652,18 +666,18 @@ const At = (n, e = !0) => {
652
666
  ...pe
653
667
  } = n, Re = H === void 0 ? 0 : H, be = A === void 0 ? !1 : A, ve = j === void 0 ? !1 : j, Le = F === void 0 ? !1 : F, le = N === void 0 ? !0 : N, re = he === void 0 ? "default" : he, Y = U === void 0 ? "default" : U, Ue = Be === void 0 ? "bg.active" : Be, xe = Te === void 0 ? "bg.hover" : Te, Oe = Pe === void 0 ? !1 : Pe, [me, W] = Ve(!1);
654
668
  let Se;
655
- t[0] !== $ || t[1] !== x || t[2] !== J || t[3] !== s || t[4] !== p || t[5] !== a || t[6] !== f || t[7] !== r || t[8] !== u || t[9] !== o || t[10] !== h || t[11] !== m || t[12] !== c || t[13] !== i || t[14] !== C || t[15] !== b || t[16] !== v || t[17] !== O || t[18] !== d ? (Se = {
669
+ t[0] !== $ || t[1] !== x || t[2] !== J || t[3] !== s || t[4] !== p || t[5] !== c || t[6] !== f || t[7] !== l || t[8] !== a || t[9] !== o || t[10] !== d || t[11] !== m || t[12] !== u || t[13] !== i || t[14] !== C || t[15] !== b || t[16] !== v || t[17] !== O || t[18] !== h ? (Se = {
656
670
  id: o,
657
671
  label: i,
658
672
  description: s,
659
- icon: r,
660
- iconColor: u,
661
- indicator: h,
662
- endContent: a,
663
- tooltip: d,
673
+ icon: l,
674
+ iconColor: a,
675
+ indicator: d,
676
+ endContent: c,
677
+ tooltip: h,
664
678
  disabled: p,
665
679
  isContainer: m,
666
- isNavigable: c,
680
+ isNavigable: u,
667
681
  href: f,
668
682
  navigationIntent: v,
669
683
  menuItems: C,
@@ -672,7 +686,7 @@ const At = (n, e = !0) => {
672
686
  actions: $,
673
687
  children: x,
674
688
  onActivate: O
675
- }, t[0] = $, t[1] = x, t[2] = J, t[3] = s, t[4] = p, t[5] = a, t[6] = f, t[7] = r, t[8] = u, t[9] = o, t[10] = h, t[11] = m, t[12] = c, t[13] = i, t[14] = C, t[15] = b, t[16] = v, t[17] = O, t[18] = d, t[19] = Se) : Se = t[19];
689
+ }, t[0] = $, t[1] = x, t[2] = J, t[3] = s, t[4] = p, t[5] = c, t[6] = f, t[7] = l, t[8] = a, t[9] = o, t[10] = d, t[11] = m, t[12] = u, t[13] = i, t[14] = C, t[15] = b, t[16] = v, t[17] = O, t[18] = h, t[19] = Se) : Se = t[19];
676
690
  const y = Se;
677
691
  let Ce;
678
692
  t[20] !== G || t[21] !== I || t[22] !== We || t[23] !== ne || t[24] !== ge ? (Ce = {
@@ -682,11 +696,11 @@ const At = (n, e = !0) => {
682
696
  onDragEnd: I,
683
697
  onDrop: ge
684
698
  }, t[20] = G, t[21] = I, t[22] = We, t[23] = ne, t[24] = ge, t[25] = Ce) : Ce = t[25];
685
- const L = Ce, Xe = (y.children?.length ?? 0) > 0 || y.isContainer === !0, P = (y.menuItems?.length ?? 0) > 0, De = (y.actions?.length ?? 0) > 0 || (y.contextMenuItems?.length ?? 0) > 0, B = Le && Xe, M = y.disabled === !0;
699
+ const L = Ce, Xe = (y.children?.length ?? 0) > 0 || y.isContainer === !0, P = (y.menuItems?.length ?? 0) > 0, De = (y.actions?.length ?? 0) > 0 || (y.contextMenuItems?.length ?? 0) > 0, T = Le && Xe, M = y.disabled === !0;
686
700
  let we;
687
- t[26] !== P || t[27] !== M || t[28] !== y || t[29] !== O || t[30] !== fe || t[31] !== B ? (we = () => {
701
+ t[26] !== P || t[27] !== M || t[28] !== y || t[29] !== O || t[30] !== fe || t[31] !== T ? (we = () => {
688
702
  if (!M && !P) {
689
- if (B) {
703
+ if (T) {
690
704
  fe?.();
691
705
  return;
692
706
  }
@@ -696,7 +710,7 @@ const At = (n, e = !0) => {
696
710
  }
697
711
  y.onActivate?.();
698
712
  }
699
- }, t[26] = P, t[27] = M, t[28] = y, t[29] = O, t[30] = fe, t[31] = B, t[32] = we) : we = t[32];
713
+ }, t[26] = P, t[27] = M, t[28] = y, t[29] = O, t[30] = fe, t[31] = T, t[32] = we) : we = t[32];
700
714
  const q = we;
701
715
  let K;
702
716
  t[33] !== q || t[34] !== M || t[35] !== X ? (K = (S) => {
@@ -716,7 +730,7 @@ const At = (n, e = !0) => {
716
730
  S.preventDefault();
717
731
  return;
718
732
  }
719
- W(Xt);
733
+ W(qt);
720
734
  }
721
735
  }, t[37] = M, t[38] = X, t[39] = W, t[40] = ee) : ee = t[40];
722
736
  const ie = ee;
@@ -724,13 +738,13 @@ const At = (n, e = !0) => {
724
738
  t[41] !== q || t[42] !== P || t[43] !== M || t[44] !== oe || t[45] !== W ? (se = (S) => {
725
739
  if (oe?.(S), !S.defaultPrevented && !(S.key !== "Enter" && S.key !== " ") && (S.preventDefault(), !M)) {
726
740
  if (P) {
727
- W(qt);
741
+ W(Zt);
728
742
  return;
729
743
  }
730
744
  q();
731
745
  }
732
746
  }, t[41] = q, t[42] = P, t[43] = M, t[44] = oe, t[45] = W, t[46] = se) : se = t[46];
733
- const Z = se, Ie = y.description !== void 0, ae = Ft(Re), ce = re === "default" || Ie ? "xs" : "2xs";
747
+ const Z = se, Ie = y.description !== void 0, ae = Nt(Re), ce = re === "default" || Ie ? "xs" : "2xs";
734
748
  let te;
735
749
  t[47] !== E || t[48] !== ie || t[49] !== P ? (te = P ? {
736
750
  onClick: ie
@@ -740,13 +754,13 @@ const At = (n, e = !0) => {
740
754
  const g = te, {
741
755
  rowHeight: $e,
742
756
  minHeight: qe
743
- } = Kt(re, Ie), de = Gt({
757
+ } = Qt(re, Ie), de = Xt({
744
758
  rootProps: pe,
745
759
  rowRole: Ge ?? (P ? "button" : "option"),
746
760
  className: ke,
747
761
  isSelected: be,
748
762
  isExpanded: ve,
749
- showChevron: B,
763
+ showChevron: T,
750
764
  rowHeight: $e,
751
765
  minHeight: qe,
752
766
  verticalPadding: ce,
@@ -758,51 +772,52 @@ const At = (n, e = !0) => {
758
772
  variant: re
759
773
  });
760
774
  let He;
761
- t[51] !== M || t[52] !== ve || t[53] !== y || t[54] !== B || t[55] !== le || t[56] !== Y || t[57] !== re ? (He = /* @__PURE__ */ l(jt, { item: y, isExpanded: ve, showChevron: B, isDisabled: M, tone: Y, variant: re, showContextMenuTrigger: le }), t[51] = M, t[52] = ve, t[53] = y, t[54] = B, t[55] = le, t[56] = Y, t[57] = re, t[58] = He) : He = t[58];
775
+ t[51] !== M || t[52] !== ve || t[53] !== y || t[54] !== T || t[55] !== le || t[56] !== Y || t[57] !== re ? (He = /* @__PURE__ */ r(Ft, { item: y, isExpanded: ve, showChevron: T, isDisabled: M, tone: Y, variant: re, showContextMenuTrigger: le }), t[51] = M, t[52] = ve, t[53] = y, t[54] = T, t[55] = le, t[56] = Y, t[57] = re, t[58] = He) : He = t[58];
762
776
  const _ = He;
763
777
  let Ae;
764
- t[59] !== y || t[60] !== me || t[61] !== W ? (Ae = (S) => /* @__PURE__ */ l(xt, { item: y, menuOpen: me, onMenuOpenChange: W, onMenuSelect: (R) => {
778
+ t[59] !== y || t[60] !== me || t[61] !== W ? (Ae = (S) => /* @__PURE__ */ r(xt, { item: y, menuOpen: me, onMenuOpenChange: W, onMenuSelect: (R) => {
765
779
  W(!1), R.onAction?.();
766
780
  }, children: S }), t[59] = y, t[60] = me, t[61] = W, t[62] = Ae) : Ae = t[62];
767
781
  const V = Ae;
768
782
  if (Oe) {
769
783
  let S;
770
- t[63] !== g || t[64] !== _ || t[65] !== L || t[66] !== D || t[67] !== e || t[68] !== de ? (S = /* @__PURE__ */ l(_e.div, { ref: e, ...de, ...L, ...g, onPointerMove: D, children: _ }), t[63] = g, t[64] = _, t[65] = L, t[66] = D, t[67] = e, t[68] = de, t[69] = S) : S = t[69];
784
+ t[63] !== g || t[64] !== _ || t[65] !== L || t[66] !== B || t[67] !== e || t[68] !== de ? (S = /* @__PURE__ */ r(_e.div, { ref: e, ...de, ...L, ...g, onPointerMove: B, children: _ }), t[63] = g, t[64] = _, t[65] = L, t[66] = B, t[67] = e, t[68] = de, t[69] = S) : S = t[69];
771
785
  let R;
772
786
  return t[70] !== S || t[71] !== V ? (R = V(S), t[70] = S, t[71] = V, t[72] = R) : R = t[72], R;
773
787
  }
774
- if (y.href && !B && !M && !P) {
788
+ if (y.href && !T && !M && !P) {
775
789
  const S = de;
776
790
  let R;
777
- t[73] !== _ || t[74] !== L || t[75] !== E || t[76] !== y.href || t[77] !== D || t[78] !== e || t[79] !== S ? (R = /* @__PURE__ */ l(_e.a, { ref: e, href: y.href, ...S, ...L, onClick: E, onPointerMove: D, children: _ }), t[73] = _, t[74] = L, t[75] = E, t[76] = y.href, t[77] = D, t[78] = e, t[79] = S, t[80] = R) : R = t[80];
791
+ t[73] !== _ || t[74] !== L || t[75] !== E || t[76] !== y.href || t[77] !== B || t[78] !== e || t[79] !== S ? (R = /* @__PURE__ */ r(_e.a, { ref: e, href: y.href, ...S, ...L, onClick: E, onPointerMove: B, children: _ }), t[73] = _, t[74] = L, t[75] = E, t[76] = y.href, t[77] = B, t[78] = e, t[79] = S, t[80] = R) : R = t[80];
778
792
  let Q;
779
793
  return t[81] !== R || t[82] !== V ? (Q = V(R), t[81] = R, t[82] = V, t[83] = Q) : Q = t[83], Q;
780
794
  }
781
795
  if (De) {
782
796
  const S = M || void 0, R = pe.tabIndex ?? 0;
783
797
  let Q;
784
- t[84] !== g || t[85] !== _ || t[86] !== L || t[87] !== Z || t[88] !== D || t[89] !== e || t[90] !== de || t[91] !== S || t[92] !== R ? (Q = /* @__PURE__ */ l(_e.div, { ref: e, "aria-disabled": S, ...de, ...L, ...g, tabIndex: R, onKeyDown: Z, onPointerMove: D, children: _ }), t[84] = g, t[85] = _, t[86] = L, t[87] = Z, t[88] = D, t[89] = e, t[90] = de, t[91] = S, t[92] = R, t[93] = Q) : Q = t[93];
798
+ t[84] !== g || t[85] !== _ || t[86] !== L || t[87] !== Z || t[88] !== B || t[89] !== e || t[90] !== de || t[91] !== S || t[92] !== R ? (Q = /* @__PURE__ */ r(_e.div, { ref: e, "aria-disabled": S, ...de, ...L, ...g, tabIndex: R, onKeyDown: Z, onPointerMove: B, children: _ }), t[84] = g, t[85] = _, t[86] = L, t[87] = Z, t[88] = B, t[89] = e, t[90] = de, t[91] = S, t[92] = R, t[93] = Q) : Q = t[93];
785
799
  let ze;
786
800
  return t[94] !== Q || t[95] !== V ? (ze = V(Q), t[94] = Q, t[95] = V, t[96] = ze) : ze = t[96], ze;
787
801
  }
788
802
  const Ze = de;
789
803
  let ye;
790
- t[97] !== g || t[98] !== _ || t[99] !== L || t[100] !== M || t[101] !== D || t[102] !== e || t[103] !== Ze ? (ye = /* @__PURE__ */ l(_e.button, { ref: e, type: "button", disabled: M, ...Ze, ...L, ...g, onPointerMove: D, children: _ }), t[97] = g, t[98] = _, t[99] = L, t[100] = M, t[101] = D, t[102] = e, t[103] = Ze, t[104] = ye) : ye = t[104];
804
+ t[97] !== g || t[98] !== _ || t[99] !== L || t[100] !== M || t[101] !== B || t[102] !== e || t[103] !== Ze ? (ye = /* @__PURE__ */ r(_e.button, { ref: e, type: "button", disabled: M, ...Ze, ...L, ...g, onPointerMove: B, children: _ }), t[97] = g, t[98] = _, t[99] = L, t[100] = M, t[101] = B, t[102] = e, t[103] = Ze, t[104] = ye) : ye = t[104];
791
805
  let Ee;
792
806
  return t[105] !== ye || t[106] !== V ? (Ee = V(ye), t[105] = ye, t[106] = V, t[107] = Ee) : Ee = t[107], Ee;
793
807
  });
794
- function Xt(n) {
808
+ function qt(n) {
795
809
  return !n;
796
810
  }
797
- function qt(n) {
811
+ function Zt(n) {
798
812
  return !n;
799
813
  }
800
814
  export {
801
- tt as H,
815
+ it as H,
802
816
  Fe as L,
803
817
  pt as R,
804
- Bt as S,
805
- on as a,
806
- Pt as b
818
+ Tt as S,
819
+ wt as a,
820
+ ln as b,
821
+ Rt as c
807
822
  };
808
- //# sourceMappingURL=list-row-YRUxEcy3.js.map
823
+ //# sourceMappingURL=list-row-BYWwcbGK.js.map