@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,69 +1,69 @@
1
- import { N as Z, M as Ie, g as Ue, o as me, r as Ye, c as Ke, a as Le, f as Ve, b as $e, u as Je, d as ge, e as Qe, h as Ze, i as _e, K as et } from "./kanban-renderer-toolbar-B9ro-9z1.js";
2
- import { D as Gn, F as Rn, j as Pn, k as En, l as Tn, m as An, n as On, p as Bn, q as Mn, s as Kn, t as Ln, v as Vn, w as $n, x as zn, y as Wn } from "./kanban-renderer-toolbar-B9ro-9z1.js";
3
- import { jsx as s, jsxs as M, Fragment as tt } from "react/jsx-runtime";
4
- import { c as z } from "react/compiler-runtime";
5
- import { Text as $, Badge as be, IconButton as Ee, Icon as q, Menu as N, Spacer as nt, HStack as X, Portal as ot, Wrap as we, Stack as U, Box as ne, VStack as rt, Textarea as lt, Button as he, Input as it, Dialog as te, CloseButton as at } from "@chakra-ui/react";
6
- import { useState as j, useRef as ze, useEffect as fe } from "react";
7
- import { E as st } from "./empty-state-Bo4HVrgr.js";
8
- import { L as ke, R as We } from "./list-row-YRUxEcy3.js";
9
- import { T as dt, S as Te } from "./scroll-area-BMbg1WcD.js";
10
- import { Plus as ct, MoreHorizontal as ut, SquareCheck as pt, Square as gt, Check as ft, ChevronDown as mt, ChevronRight as bt, Paperclip as ht } from "lucide-react";
11
- import { g as ye, W as yt, N as xt, S as je, D as vt, C as Ct, b as St, P as Dt, a as It } from "./param-editor-read-only-field-DgtLqcFa.js";
12
- import { H as wt, A as kt, i as Gt } from "./prism-BXb57lxL.js";
13
- const Rt = async (o) => {
1
+ import { N as Z, M as Ie, g as Ue, o as ge, r as Ye, c as Me, a as Ke, f as Le, b as _e, u as Je, d as pe, e as Qe, h as Ze, i as et, K as tt } from "./kanban-renderer-toolbar-Db1mIWWd.js";
2
+ import { D as En, F as Pn, j as An, k as On, l as $n, m as Bn, n as zn, p as Mn, q as Kn, s as Ln, t as _n, v as Vn, w as Wn, x as Hn, y as jn } from "./kanban-renderer-toolbar-Db1mIWWd.js";
3
+ import { jsx as d, jsxs as B, Fragment as nt } from "react/jsx-runtime";
4
+ import { c as K } from "react/compiler-runtime";
5
+ import { Text as _, Badge as fe, IconButton as Ee, Icon as N, Menu as F, Spacer as rt, HStack as X, Portal as ot, Wrap as we, Stack as q, Box as re, VStack as lt, Textarea as at, Button as me, Input as it, Dialog as ne, CloseButton as st } from "@chakra-ui/react";
6
+ import { useState as W, useRef as Ve, useEffect as Se } from "react";
7
+ import { E as dt } from "./empty-state-Bo4HVrgr.js";
8
+ import { L as ke, R as We } from "./list-row-BYWwcbGK.js";
9
+ import { T as ct, S as Pe } from "./scroll-area-BMbg1WcD.js";
10
+ import { Plus as ut, MoreHorizontal as pt, SquareCheck as gt, Square as ft, Check as mt, ChevronDown as bt, ChevronRight as ht, Paperclip as yt } from "lucide-react";
11
+ import { g as be, W as vt, i as He, a as he, P as xt, S as Ct, A as St } from "./param-editor-field-ZzZwgjZ_.js";
12
+ import { L as Dt } from "./lazy-markdown-editor-DwhqQ-NN.js";
13
+ const It = async (r) => {
14
14
  const {
15
15
  settings: e,
16
16
  rowId: t,
17
17
  targetColumnId: n,
18
- targetGroupKey: r,
19
- beforeItemId: l,
20
- onAttributeChange: d,
21
- onReorder: b
22
- } = o;
23
- e.columnGrouping !== Z && d && await d(t, e.columnGrouping, n), e.rowGrouping !== Z && r && d && await d(t, e.rowGrouping, r), e.ordering.attributeId === Ie && await b?.(t, l);
24
- }, Pt = async (o) => {
18
+ targetGroupKey: a,
19
+ beforeItemId: i,
20
+ onAttributeChange: s,
21
+ onReorder: p
22
+ } = r;
23
+ e.columnGrouping !== Z && s && await s(t, e.columnGrouping, n), e.rowGrouping !== Z && a && s && await s(t, e.rowGrouping, a), e.ordering.attributeId === Ie && await p?.(t, i);
24
+ }, wt = async (r) => {
25
25
  const {
26
26
  settings: e,
27
27
  rowId: t,
28
28
  targetGroupKey: n,
29
- beforeItemId: r,
30
- onAttributeChange: l,
31
- onReorder: d
32
- } = o;
33
- e.rowGrouping === Z || !l || (await l(t, e.rowGrouping, n), e.ordering.attributeId === Ie && await d?.(t, r));
34
- }, Et = (o) => {
35
- const e = z(26), {
29
+ beforeItemId: a,
30
+ onAttributeChange: i,
31
+ onReorder: s
32
+ } = r;
33
+ e.rowGrouping === Z || !i || (await i(t, e.rowGrouping, n), e.ordering.attributeId === Ie && await s?.(t, a));
34
+ }, kt = (r) => {
35
+ const e = K(26), {
36
36
  column: t,
37
37
  onCreateStart: n,
38
- onColumnAction: r
39
- } = o, l = t.color ?? "gray";
40
- let d;
41
- e[0] !== t.icon ? (d = ye(t.icon), e[0] = t.icon, e[1] = d) : d = e[1];
42
- let b;
43
- e[2] !== d ? (b = /* @__PURE__ */ s(q, { "data-testid": "column-status-icon", as: d, boxSize: "0.875rem", color: "colorPalette.solid", flexShrink: 0 }), e[2] = d, e[3] = b) : b = e[3];
44
- let u;
45
- e[4] !== t.label ? (u = /* @__PURE__ */ s($, { textStyle: "label/S/medium", children: t.label }), e[4] = t.label, e[5] = u) : u = e[5];
46
- let y;
47
- e[6] !== t.items.length ? (y = /* @__PURE__ */ s(be, { variant: "number", size: "xs", colorPalette: "gray", children: t.items.length }), e[6] = t.items.length, e[7] = y) : y = e[7];
48
- let f;
49
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(nt, {}), e[8] = f) : f = e[8];
50
- let i;
51
- e[9] !== t.canCreate || e[10] !== t.createLabel || e[11] !== t.id || e[12] !== n ? (i = t.canCreate && n && /* @__PURE__ */ s(dt, { content: t.createLabel ?? "Create new row", children: /* @__PURE__ */ s(Ee, { size: "2xs", variant: "outline", onClick: () => n(t.id), "aria-label": t.createLabel ?? "Create row", children: /* @__PURE__ */ s(q, { as: ct, boxSize: "12px" }) }) }), e[9] = t.canCreate, e[10] = t.createLabel, e[11] = t.id, e[12] = n, e[13] = i) : i = e[13];
38
+ onColumnAction: a
39
+ } = r, i = t.color ?? "gray";
40
+ let s;
41
+ e[0] !== t.icon ? (s = be(t.icon), e[0] = t.icon, e[1] = s) : s = e[1];
52
42
  let p;
53
- e[14] !== t.actions || e[15] !== t.id || e[16] !== t.label || e[17] !== r ? (p = t.actions.length > 0 && /* @__PURE__ */ M(N.Root, { children: [
54
- /* @__PURE__ */ s(N.Trigger, { asChild: !0, children: /* @__PURE__ */ s(Ee, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${t.label}`, children: /* @__PURE__ */ s(q, { as: ut, boxSize: "12px" }) }) }),
55
- /* @__PURE__ */ s(N.Positioner, { children: /* @__PURE__ */ s(N.Content, { minW: "180px", bg: "bg", children: t.actions.map((m) => /* @__PURE__ */ s(N.Item, { value: m.id, asChild: !0, children: /* @__PURE__ */ s(ke, { asChild: !0, variant: "full-width", label: m.label, icon: /* @__PURE__ */ s(q, { as: m.icon, boxSize: "16px" }), onActivate: () => r?.(t.id, m.id) }) }, m.id)) }) })
56
- ] }), e[14] = t.actions, e[15] = t.id, e[16] = t.label, e[17] = r, e[18] = p) : p = e[18];
57
- let x;
58
- return e[19] !== l || e[20] !== b || e[21] !== u || e[22] !== y || e[23] !== i || e[24] !== p ? (x = /* @__PURE__ */ M(X, { minH: "1.5rem", gap: "2xs", alignItems: "center", colorPalette: l, children: [
59
- b,
60
- u,
61
- y,
43
+ e[2] !== s ? (p = /* @__PURE__ */ d(N, { "data-testid": "column-status-icon", as: s, boxSize: "0.875rem", color: "colorPalette.solid", flexShrink: 0 }), e[2] = s, e[3] = p) : p = e[3];
44
+ let c;
45
+ e[4] !== t.label ? (c = /* @__PURE__ */ d(_, { textStyle: "label/S/medium", children: t.label }), e[4] = t.label, e[5] = c) : c = e[5];
46
+ let f;
47
+ e[6] !== t.items.length ? (f = /* @__PURE__ */ d(fe, { variant: "number", size: "xs", colorPalette: "gray", children: t.items.length }), e[6] = t.items.length, e[7] = f) : f = e[7];
48
+ let g;
49
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ d(rt, {}), e[8] = g) : g = e[8];
50
+ let o;
51
+ e[9] !== t.canCreate || e[10] !== t.createLabel || e[11] !== t.id || e[12] !== n ? (o = t.canCreate && n && /* @__PURE__ */ d(ct, { content: t.createLabel ?? "Create new row", children: /* @__PURE__ */ d(Ee, { size: "2xs", variant: "outline", onClick: () => n(t.id), "aria-label": t.createLabel ?? "Create row", children: /* @__PURE__ */ d(N, { as: ut, boxSize: "12px" }) }) }), e[9] = t.canCreate, e[10] = t.createLabel, e[11] = t.id, e[12] = n, e[13] = o) : o = e[13];
52
+ let u;
53
+ e[14] !== t.actions || e[15] !== t.id || e[16] !== t.label || e[17] !== a ? (u = t.actions.length > 0 && /* @__PURE__ */ B(F.Root, { children: [
54
+ /* @__PURE__ */ d(F.Trigger, { asChild: !0, children: /* @__PURE__ */ d(Ee, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${t.label}`, children: /* @__PURE__ */ d(N, { as: pt, boxSize: "12px" }) }) }),
55
+ /* @__PURE__ */ d(F.Positioner, { children: /* @__PURE__ */ d(F.Content, { minW: "180px", bg: "bg", children: t.actions.map((h) => /* @__PURE__ */ d(F.Item, { value: h.id, asChild: !0, children: /* @__PURE__ */ d(ke, { asChild: !0, variant: "full-width", label: h.label, icon: /* @__PURE__ */ d(N, { as: h.icon, boxSize: "16px" }), onActivate: () => a?.(t.id, h.id) }) }, h.id)) }) })
56
+ ] }), e[14] = t.actions, e[15] = t.id, e[16] = t.label, e[17] = a, e[18] = u) : u = e[18];
57
+ let b;
58
+ return e[19] !== i || e[20] !== p || e[21] !== c || e[22] !== f || e[23] !== o || e[24] !== u ? (b = /* @__PURE__ */ B(X, { minH: "1.5rem", gap: "2xs", alignItems: "center", colorPalette: i, children: [
59
+ p,
60
+ c,
62
61
  f,
63
- i,
64
- p
65
- ] }), e[19] = l, e[20] = b, e[21] = u, e[22] = y, e[23] = i, e[24] = p, e[25] = x) : x = e[25], x;
66
- }, Q = (o) => o.stopPropagation(), Tt = (o) => Array.isArray(o.value) ? o.value : o.value ? [o.value] : [], At = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], Ae = {
62
+ g,
63
+ o,
64
+ u
65
+ ] }), e[19] = i, e[20] = p, e[21] = c, e[22] = f, e[23] = o, e[24] = u, e[25] = b) : b = e[25], b;
66
+ }, Q = (r) => r.stopPropagation(), Gt = (r) => Array.isArray(r.value) ? r.value : r.value ? [r.value] : [], Rt = (r, e) => r.includes(e) ? r.filter((t) => t !== e) : [...r, e], Ae = {
67
67
  bg: {
68
68
  _light: "bg.muted",
69
69
  _dark: "bg.subtle"
@@ -75,270 +75,270 @@ const Rt = async (o) => {
75
75
  _dark: "bg.hover"
76
76
  }
77
77
  }
78
- }, Ot = (o) => o.color ? `${o.color}.fg` : "fg.muted", Bt = (o) => o.isMultiValue ? o.isSelected ? /* @__PURE__ */ s(pt, { size: 14 }) : /* @__PURE__ */ s(gt, { size: 14 }) : o.isSelected ? /* @__PURE__ */ s(ft, { size: 14 }) : null, He = (o) => {
79
- const e = z(49), {
78
+ }, Tt = (r) => r.color ? `${r.color}.fg` : "fg.muted", Et = (r) => r.isMultiValue ? r.isSelected ? /* @__PURE__ */ d(gt, { size: 14 }) : /* @__PURE__ */ d(ft, { size: 14 }) : r.isSelected ? /* @__PURE__ */ d(mt, { size: 14 }) : null, je = (r) => {
79
+ const e = K(49), {
80
80
  badge: t,
81
81
  onChange: n
82
- } = o;
83
- let r, l, d, b, u, y, f, i, p, x, m, a, g, C;
82
+ } = r;
83
+ let a, i, s, p, c, f, g, o, u, b, h, l, m, x;
84
84
  if (e[0] !== t || e[1] !== n) {
85
- C = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
85
+ x = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
86
86
  e: {
87
- const T = t.options ?? [], v = !!(n && t.isEditable && T.length > 0), R = Array.isArray(t.value), w = Tt(t);
88
- let h;
89
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
87
+ const E = t.options ?? [], v = !!(n && t.isEditable && E.length > 0), k = Array.isArray(t.value), I = Gt(t);
88
+ let y;
89
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
90
90
  onClick: Q,
91
91
  onPointerDown: Q,
92
92
  onKeyDown: Q
93
- }, e[16] = h) : h = e[16];
94
- const S = h, P = (B) => {
95
- let L;
96
- R ? L = At(w, B) : L = w.includes(B) ? "" : B, n?.(t.attributeId, L);
93
+ }, e[16] = y) : y = e[16];
94
+ const S = y, R = (A) => {
95
+ let z;
96
+ k ? z = Rt(I, A) : z = I.includes(A) ? "" : A, n?.(t.attributeId, z);
97
97
  };
98
- let k;
99
- e[17] !== t ? (k = t.icon ? /* @__PURE__ */ s(q, { as: ye(t.icon), boxSize: "3.5", color: Ot(t) }) : null, e[17] = t, e[18] = k) : k = e[18];
100
- let A;
101
- e[19] !== v ? (A = v ? /* @__PURE__ */ s(q, { as: mt, boxSize: "3", color: "fg.muted" }) : null, e[19] = v, e[20] = A) : A = e[20];
98
+ let G;
99
+ e[17] !== t ? (G = t.icon ? /* @__PURE__ */ d(N, { as: be(t.icon), boxSize: "3.5", color: Tt(t) }) : null, e[17] = t, e[18] = G) : G = e[18];
100
+ let $;
101
+ e[19] !== v ? ($ = v ? /* @__PURE__ */ d(N, { as: bt, boxSize: "3", color: "fg.muted" }) : null, e[19] = v, e[20] = $) : $ = e[20];
102
102
  let O;
103
- e[21] !== t.label || e[22] !== k || e[23] !== A ? (O = /* @__PURE__ */ M(tt, { children: [
104
- k,
103
+ e[21] !== t.label || e[22] !== G || e[23] !== $ ? (O = /* @__PURE__ */ B(nt, { children: [
104
+ G,
105
105
  t.label,
106
- A
107
- ] }), e[21] = t.label, e[22] = k, e[23] = A, e[24] = O) : O = e[24];
108
- const c = O;
106
+ $
107
+ ] }), e[21] = t.label, e[22] = G, e[23] = $, e[24] = O) : O = e[24];
108
+ const T = O;
109
109
  if (!v) {
110
- let B;
111
- e[25] !== c ? (B = /* @__PURE__ */ s(be, { variant: "subtle", gap: "2xs", textStyle: "label/XS/medium", ...Ae, children: c }), e[25] = c, e[26] = B) : B = e[26], C = B;
110
+ let A;
111
+ e[25] !== T ? (A = /* @__PURE__ */ d(fe, { variant: "subtle", gap: "2xs", textStyle: "label/XS/medium", ...Ae, children: T }), e[25] = T, e[26] = A) : A = e[26], x = A;
112
112
  break e;
113
113
  }
114
- b = N.Root, a = !R, e[27] !== c ? (g = /* @__PURE__ */ s(N.Trigger, { asChild: !0, children: /* @__PURE__ */ s(be, { as: "span", role: "button", tabIndex: 0, variant: "subtle", gap: "2xs", textStyle: "label/XS/medium", cursor: "pointer", ...Ae, onClick: Q, onPointerDown: Q, onKeyDown: Q, children: c }) }), e[27] = c, e[28] = g) : g = e[28], d = ot, l = N.Positioner, r = N.Content, u = "180px", y = "0", f = "0", i = Q, p = Q, x = Q, m = T.map((B) => {
115
- const L = w.includes(B.value);
116
- return /* @__PURE__ */ s(N.Item, { value: B.value, asChild: !0, children: /* @__PURE__ */ s(ke, { asChild: !0, role: R ? "menuitemcheckbox" : "menuitemradio", "aria-checked": L, variant: "full-width", id: B.value, label: B.label, icon: /* @__PURE__ */ s(q, { as: ye(B.icon), boxSize: "16px" }), iconColor: `${B.color ?? "gray"}.500`, isSelected: L, endContent: Bt({
117
- isMultiValue: R,
118
- isSelected: L
119
- }), onActivate: () => P(B.value), ...S }) }, B.value);
114
+ p = F.Root, l = !k, e[27] !== T ? (m = /* @__PURE__ */ d(F.Trigger, { asChild: !0, children: /* @__PURE__ */ d(fe, { as: "span", role: "button", tabIndex: 0, variant: "subtle", gap: "2xs", textStyle: "label/XS/medium", cursor: "pointer", ...Ae, onClick: Q, onPointerDown: Q, onKeyDown: Q, children: T }) }), e[27] = T, e[28] = m) : m = e[28], s = ot, i = F.Positioner, a = F.Content, c = "180px", f = "0", g = "0", o = Q, u = Q, b = Q, h = E.map((A) => {
115
+ const z = I.includes(A.value);
116
+ return /* @__PURE__ */ d(F.Item, { value: A.value, asChild: !0, children: /* @__PURE__ */ d(ke, { asChild: !0, role: k ? "menuitemcheckbox" : "menuitemradio", "aria-checked": z, variant: "full-width", id: A.value, label: A.label, icon: /* @__PURE__ */ d(N, { as: be(A.icon), boxSize: "16px" }), iconColor: `${A.color ?? "gray"}.500`, isSelected: z, endContent: Et({
117
+ isMultiValue: k,
118
+ isSelected: z
119
+ }), onActivate: () => R(A.value), ...S }) }, A.value);
120
120
  });
121
121
  }
122
- e[0] = t, e[1] = n, e[2] = r, e[3] = l, e[4] = d, e[5] = b, e[6] = u, e[7] = y, e[8] = f, e[9] = i, e[10] = p, e[11] = x, e[12] = m, e[13] = a, e[14] = g, e[15] = C;
122
+ e[0] = t, e[1] = n, e[2] = a, e[3] = i, e[4] = s, e[5] = p, e[6] = c, e[7] = f, e[8] = g, e[9] = o, e[10] = u, e[11] = b, e[12] = h, e[13] = l, e[14] = m, e[15] = x;
123
123
  } else
124
- r = e[2], l = e[3], d = e[4], b = e[5], u = e[6], y = e[7], f = e[8], i = e[9], p = e[10], x = e[11], m = e[12], a = e[13], g = e[14], C = e[15];
125
- if (C !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
126
- return C;
124
+ a = e[2], i = e[3], s = e[4], p = e[5], c = e[6], f = e[7], g = e[8], o = e[9], u = e[10], b = e[11], h = e[12], l = e[13], m = e[14], x = e[15];
125
+ if (x !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
126
+ return x;
127
+ let C;
128
+ e[29] !== a || e[30] !== c || e[31] !== f || e[32] !== g || e[33] !== o || e[34] !== u || e[35] !== b || e[36] !== h ? (C = /* @__PURE__ */ d(a, { minW: c, p: f, gap: g, onClick: o, onPointerDown: u, onKeyDown: b, children: h }), e[29] = a, e[30] = c, e[31] = f, e[32] = g, e[33] = o, e[34] = u, e[35] = b, e[36] = h, e[37] = C) : C = e[37];
129
+ let w;
130
+ e[38] !== i || e[39] !== C ? (w = /* @__PURE__ */ d(i, { children: C }), e[38] = i, e[39] = C, e[40] = w) : w = e[40];
127
131
  let D;
128
- e[29] !== r || e[30] !== u || e[31] !== y || e[32] !== f || e[33] !== i || e[34] !== p || e[35] !== x || e[36] !== m ? (D = /* @__PURE__ */ s(r, { minW: u, p: y, gap: f, onClick: i, onPointerDown: p, onKeyDown: x, children: m }), e[29] = r, e[30] = u, e[31] = y, e[32] = f, e[33] = i, e[34] = p, e[35] = x, e[36] = m, e[37] = D) : D = e[37];
129
- let I;
130
- e[38] !== l || e[39] !== D ? (I = /* @__PURE__ */ s(l, { children: D }), e[38] = l, e[39] = D, e[40] = I) : I = e[40];
131
- let G;
132
- e[41] !== d || e[42] !== I ? (G = /* @__PURE__ */ s(d, { children: I }), e[41] = d, e[42] = I, e[43] = G) : G = e[43];
133
- let E;
134
- return e[44] !== b || e[45] !== G || e[46] !== a || e[47] !== g ? (E = /* @__PURE__ */ M(b, { closeOnSelect: a, children: [
135
- g,
136
- G
137
- ] }), e[44] = b, e[45] = G, e[46] = a, e[47] = g, e[48] = E) : E = e[48], E;
138
- }, Fe = (o) => {
139
- const e = z(30), {
132
+ e[41] !== s || e[42] !== w ? (D = /* @__PURE__ */ d(s, { children: w }), e[41] = s, e[42] = w, e[43] = D) : D = e[43];
133
+ let P;
134
+ return e[44] !== p || e[45] !== D || e[46] !== l || e[47] !== m ? (P = /* @__PURE__ */ B(p, { closeOnSelect: l, children: [
135
+ m,
136
+ D
137
+ ] }), e[44] = p, e[45] = D, e[46] = l, e[47] = m, e[48] = P) : P = e[48], P;
138
+ }, Fe = (r) => {
139
+ const e = K(30), {
140
140
  eyebrow: t,
141
141
  title: n,
142
- badges: r,
143
- customSlots: l,
144
- workspaceBadge: d,
145
- isSelected: b,
146
- draggable: u,
147
- onBadgeChange: y,
148
- onDragStart: f,
149
- onDragEnd: i,
150
- onClick: p
151
- } = o;
152
- let x;
153
- e[0] !== r ? (x = r === void 0 ? [] : r, e[0] = r, e[1] = x) : x = e[1];
154
- const m = x;
155
- let a;
156
- e[2] !== l ? (a = l === void 0 ? [] : l, e[2] = l, e[3] = a) : a = e[3];
157
- const g = a, C = b === void 0 ? !1 : b, D = m.length > 0 || g.length > 0, I = u ? "grab" : p ? "pointer" : "default";
158
- let G;
159
- e[4] !== p ? (G = (O) => {
160
- O.defaultPrevented || !(O.target instanceof Node) || !O.currentTarget.contains(O.target) || p?.();
161
- }, e[4] = p, e[5] = G) : G = e[5];
162
- const E = G, T = C ? "border.accent" : "border", v = C ? "border.accent" : "border.accent-light";
163
- let R;
164
- e[6] !== v ? (R = {
142
+ badges: a,
143
+ customSlots: i,
144
+ workspaceBadge: s,
145
+ isSelected: p,
146
+ draggable: c,
147
+ onBadgeChange: f,
148
+ onDragStart: g,
149
+ onDragEnd: o,
150
+ onClick: u
151
+ } = r;
152
+ let b;
153
+ e[0] !== a ? (b = a === void 0 ? [] : a, e[0] = a, e[1] = b) : b = e[1];
154
+ const h = b;
155
+ let l;
156
+ e[2] !== i ? (l = i === void 0 ? [] : i, e[2] = i, e[3] = l) : l = e[3];
157
+ const m = l, x = p === void 0 ? !1 : p, C = h.length > 0 || m.length > 0, w = c ? "grab" : u ? "pointer" : "default";
158
+ let D;
159
+ e[4] !== u ? (D = (O) => {
160
+ O.defaultPrevented || !(O.target instanceof Node) || !O.currentTarget.contains(O.target) || u?.();
161
+ }, e[4] = u, e[5] = D) : D = e[5];
162
+ const P = D, E = x ? "border.accent" : "border", v = x ? "border.accent" : "border.accent-light";
163
+ let k;
164
+ e[6] !== v ? (k = {
165
165
  borderColor: v
166
- }, e[6] = v, e[7] = R) : R = e[7];
167
- const w = p ? E : void 0, h = C ? "true" : void 0;
166
+ }, e[6] = v, e[7] = k) : k = e[7];
167
+ const I = u ? P : void 0, y = x ? "true" : void 0;
168
168
  let S;
169
- e[8] !== t || e[9] !== d ? (S = t || d ? /* @__PURE__ */ M(X, { minW: "0", gap: "2xs", children: [
170
- t ? /* @__PURE__ */ s($, { textStyle: "label/XS", color: "fg.muted", fontFamily: "mono", truncate: !0, children: t }) : null,
171
- /* @__PURE__ */ s(X, { marginLeft: "auto", children: d ? /* @__PURE__ */ s(yt, { ...d }) : null })
172
- ] }) : null, e[8] = t, e[9] = d, e[10] = S) : S = e[10];
173
- let P;
174
- e[11] !== n ? (P = /* @__PURE__ */ s($, { textStyle: "paragraph/S/regular", minW: "0", overflowWrap: "anywhere", children: n }), e[11] = n, e[12] = P) : P = e[12];
175
- let k;
176
- e[13] !== m || e[14] !== g || e[15] !== D || e[16] !== y ? (k = D && /* @__PURE__ */ M(we, { gap: "2xs", children: [
177
- m.map((O) => /* @__PURE__ */ s(He, { badge: O, onChange: y }, O.attributeId)),
178
- g
179
- ] }), e[13] = m, e[14] = g, e[15] = D, e[16] = y, e[17] = k) : k = e[17];
180
- let A;
181
- return e[18] !== I || e[19] !== u || e[20] !== i || e[21] !== f || e[22] !== h || e[23] !== S || e[24] !== P || e[25] !== k || e[26] !== T || e[27] !== R || e[28] !== w ? (A = /* @__PURE__ */ M(U, { gap: "xs", padding: "compact", borderRadius: "compact", borderWidth: "1px", borderColor: T, width: "100%", background: "bg", transition: "border-color 0.2s ease-in-out, background 0.2s ease-in-out", _hover: R, cursor: I, draggable: u, onDragStart: f, onDragEnd: i, onClick: w, "data-selected": h, "data-testid": "renderer-card", children: [
169
+ e[8] !== t || e[9] !== s ? (S = t || s ? /* @__PURE__ */ B(X, { minW: "0", gap: "2xs", children: [
170
+ t ? /* @__PURE__ */ d(_, { textStyle: "label/XS", color: "fg.muted", fontFamily: "mono", truncate: !0, children: t }) : null,
171
+ /* @__PURE__ */ d(X, { marginLeft: "auto", children: s ? /* @__PURE__ */ d(vt, { ...s }) : null })
172
+ ] }) : null, e[8] = t, e[9] = s, e[10] = S) : S = e[10];
173
+ let R;
174
+ e[11] !== n ? (R = /* @__PURE__ */ d(_, { textStyle: "paragraph/S/regular", minW: "0", overflowWrap: "anywhere", children: n }), e[11] = n, e[12] = R) : R = e[12];
175
+ let G;
176
+ e[13] !== h || e[14] !== m || e[15] !== C || e[16] !== f ? (G = C && /* @__PURE__ */ B(we, { gap: "2xs", children: [
177
+ h.map((O) => /* @__PURE__ */ d(je, { badge: O, onChange: f }, O.attributeId)),
178
+ m
179
+ ] }), e[13] = h, e[14] = m, e[15] = C, e[16] = f, e[17] = G) : G = e[17];
180
+ let $;
181
+ return e[18] !== w || e[19] !== c || e[20] !== o || e[21] !== g || e[22] !== y || e[23] !== S || e[24] !== R || e[25] !== G || e[26] !== E || e[27] !== k || e[28] !== I ? ($ = /* @__PURE__ */ B(q, { gap: "xs", padding: "compact", borderRadius: "compact", borderWidth: "1px", borderColor: E, width: "100%", background: "bg", transition: "border-color 0.2s ease-in-out, background 0.2s ease-in-out", _hover: k, cursor: w, draggable: c, onDragStart: g, onDragEnd: o, onClick: I, "data-selected": y, "data-testid": "renderer-card", children: [
182
182
  S,
183
- P,
184
- k
185
- ] }), e[18] = I, e[19] = u, e[20] = i, e[21] = f, e[22] = h, e[23] = S, e[24] = P, e[25] = k, e[26] = T, e[27] = R, e[28] = w, e[29] = A) : A = e[29], A;
186
- }, Mt = (o) => {
187
- const e = z(30), {
183
+ R,
184
+ G
185
+ ] }), e[18] = w, e[19] = c, e[20] = o, e[21] = g, e[22] = y, e[23] = S, e[24] = R, e[25] = G, e[26] = E, e[27] = k, e[28] = I, e[29] = $) : $ = e[29], $;
186
+ }, Pt = (r) => {
187
+ const e = K(30), {
188
188
  columnId: t,
189
189
  group: n,
190
- selectedItemId: r,
191
- canDragIn: l,
192
- canDragOut: d,
193
- isDropTarget: b,
194
- onDragStart: u,
195
- onDragEnd: y,
196
- onGroupDragOver: f,
197
- onGroupDragLeave: i,
198
- onGroupDrop: p
199
- } = o, [x, m] = j(!0), a = b ? "bg.subtle" : "transparent", g = l ? f : void 0, C = l ? i : void 0, D = l ? p : void 0;
200
- let I;
201
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
190
+ selectedItemId: a,
191
+ canDragIn: i,
192
+ canDragOut: s,
193
+ isDropTarget: p,
194
+ onDragStart: c,
195
+ onDragEnd: f,
196
+ onGroupDragOver: g,
197
+ onGroupDragLeave: o,
198
+ onGroupDrop: u
199
+ } = r, [b, h] = W(!0), l = p ? "bg.subtle" : "transparent", m = i ? g : void 0, x = i ? o : void 0, C = i ? u : void 0;
200
+ let w;
201
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
202
202
  bg: "bg.hover"
203
- }, e[0] = I) : I = e[0];
204
- let G;
205
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = () => m(Kt), e[1] = G) : G = e[1];
206
- const E = x ? "rotate(90deg)" : "rotate(0deg)";
207
- let T;
208
- e[2] !== E ? (T = /* @__PURE__ */ s(ne, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ s(q, { as: bt, boxSize: "14px", color: "fg.muted", transform: E, transition: "transform 0.15s ease" }) }), e[2] = E, e[3] = T) : T = e[3];
203
+ }, e[0] = w) : w = e[0];
204
+ let D;
205
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => h(At), e[1] = D) : D = e[1];
206
+ const P = b ? "rotate(90deg)" : "rotate(0deg)";
207
+ let E;
208
+ e[2] !== P ? (E = /* @__PURE__ */ d(re, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ d(N, { as: ht, boxSize: "14px", color: "fg.muted", transform: P, transition: "transform 0.15s ease" }) }), e[2] = P, e[3] = E) : E = e[3];
209
209
  let v;
210
- e[4] !== n.label ? (v = /* @__PURE__ */ s($, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = v) : v = e[5];
211
- let R;
212
- e[6] !== n.items.length ? (R = /* @__PURE__ */ s(be, { variant: "number", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = R) : R = e[7];
213
- let w;
214
- e[8] !== T || e[9] !== v || e[10] !== R ? (w = /* @__PURE__ */ M(X, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: I, borderRadius: "sm", onClick: G, children: [
215
- T,
210
+ e[4] !== n.label ? (v = /* @__PURE__ */ d(_, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = v) : v = e[5];
211
+ let k;
212
+ e[6] !== n.items.length ? (k = /* @__PURE__ */ d(fe, { variant: "number", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = k) : k = e[7];
213
+ let I;
214
+ e[8] !== E || e[9] !== v || e[10] !== k ? (I = /* @__PURE__ */ B(X, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: w, borderRadius: "sm", onClick: D, children: [
215
+ E,
216
216
  v,
217
- R
218
- ] }), e[8] = T, e[9] = v, e[10] = R, e[11] = w) : w = e[11];
219
- let h;
220
- e[12] !== l || e[13] !== d || e[14] !== x || e[15] !== n.items || e[16] !== y || e[17] !== u || e[18] !== p || e[19] !== r ? (h = x && /* @__PURE__ */ s(U, { gap: "xs", pt: "xs", children: n.items.map((P) => /* @__PURE__ */ s(We, { actions: P.contextMenuActions ?? [], children: /* @__PURE__ */ s(ne, { onDragOver: l ? Lt : void 0, onDrop: l ? (k) => {
221
- k.preventDefault(), k.stopPropagation();
222
- const A = k.dataTransfer.getData("text/plain");
223
- !A || A === P.id || p(k, P.id);
224
- } : void 0, children: /* @__PURE__ */ s(Fe, { ...P.cardProps, isSelected: P.id === r, draggable: d, onDragStart: d ? u(P.id) : void 0, onDragEnd: d ? y : void 0 }) }) }, P.id)) }), e[12] = l, e[13] = d, e[14] = x, e[15] = n.items, e[16] = y, e[17] = u, e[18] = p, e[19] = r, e[20] = h) : h = e[20];
217
+ k
218
+ ] }), e[8] = E, e[9] = v, e[10] = k, e[11] = I) : I = e[11];
219
+ let y;
220
+ e[12] !== i || e[13] !== s || e[14] !== b || e[15] !== n.items || e[16] !== f || e[17] !== c || e[18] !== u || e[19] !== a ? (y = b && /* @__PURE__ */ d(q, { gap: "xs", pt: "xs", children: n.items.map((R) => /* @__PURE__ */ d(We, { actions: R.contextMenuActions ?? [], children: /* @__PURE__ */ d(re, { onDragOver: i ? Ot : void 0, onDrop: i ? (G) => {
221
+ G.preventDefault(), G.stopPropagation();
222
+ const $ = G.dataTransfer.getData("text/plain");
223
+ !$ || $ === R.id || u(G, R.id);
224
+ } : void 0, children: /* @__PURE__ */ d(Fe, { ...R.cardProps, isSelected: R.id === a, draggable: s, onDragStart: s ? c(R.id) : void 0, onDragEnd: s ? f : void 0 }) }) }, R.id)) }), e[12] = i, e[13] = s, e[14] = b, e[15] = n.items, e[16] = f, e[17] = c, e[18] = u, e[19] = a, e[20] = y) : y = e[20];
225
225
  let S;
226
- return e[21] !== t || e[22] !== n.key || e[23] !== a || e[24] !== g || e[25] !== w || e[26] !== h || e[27] !== C || e[28] !== D ? (S = /* @__PURE__ */ M(U, { "data-column-id": t, "data-group-key": n.key, gap: "0", borderRadius: "sm", background: a, transition: "background 150ms ease", onDragOver: g, onDragLeave: C, onDrop: D, children: [
227
- w,
228
- h
229
- ] }), e[21] = t, e[22] = n.key, e[23] = a, e[24] = g, e[25] = w, e[26] = h, e[27] = C, e[28] = D, e[29] = S) : S = e[29], S;
226
+ return e[21] !== t || e[22] !== n.key || e[23] !== l || e[24] !== m || e[25] !== I || e[26] !== y || e[27] !== x || e[28] !== C ? (S = /* @__PURE__ */ B(q, { "data-column-id": t, "data-group-key": n.key, gap: "0", borderRadius: "sm", background: l, transition: "background 150ms ease", onDragOver: m, onDragLeave: x, onDrop: C, children: [
227
+ I,
228
+ y
229
+ ] }), e[21] = t, e[22] = n.key, e[23] = l, e[24] = m, e[25] = I, e[26] = y, e[27] = x, e[28] = C, e[29] = S) : S = e[29], S;
230
230
  };
231
- function Kt(o) {
232
- return !o;
231
+ function At(r) {
232
+ return !r;
233
233
  }
234
- function Lt(o) {
235
- o.preventDefault(), o.stopPropagation(), o.dataTransfer.dropEffect = "move";
234
+ function Ot(r) {
235
+ r.preventDefault(), r.stopPropagation(), r.dataTransfer.dropEffect = "move";
236
236
  }
237
- const Vt = (o) => {
238
- const e = z(27), {
237
+ const $t = (r) => {
238
+ const e = K(27), {
239
239
  columns: t,
240
240
  selectedItemId: n,
241
- onMoveItem: r,
242
- onMoveToGroup: l,
243
- onCreateStart: d,
244
- onColumnAction: b
245
- } = o, u = n === void 0 ? null : n, [y, f] = j(null), [i, p] = j(null), x = $t;
241
+ onMoveItem: a,
242
+ onMoveToGroup: i,
243
+ onCreateStart: s,
244
+ onColumnAction: p
245
+ } = r, c = n === void 0 ? null : n, [f, g] = W(null), [o, u] = W(null), b = Bt;
246
+ let h;
247
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
248
+ g(null), u(null);
249
+ }, e[0] = h) : h = e[0];
250
+ const l = h;
246
251
  let m;
247
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = () => {
248
- f(null), p(null);
249
- }, e[0] = m) : m = e[0];
250
- const a = m;
251
- let g;
252
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (w) => (h) => {
253
- h.preventDefault(), h.dataTransfer.dropEffect = "move", f(w);
254
- }, e[1] = g) : g = e[1];
255
- const C = g;
252
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = (I) => (y) => {
253
+ y.preventDefault(), y.dataTransfer.dropEffect = "move", g(I);
254
+ }, e[1] = m) : m = e[1];
255
+ const x = m;
256
+ let C;
257
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = (I) => {
258
+ I.currentTarget.contains(I.relatedTarget) || g(null);
259
+ }, e[2] = C) : C = e[2];
260
+ const w = C;
256
261
  let D;
257
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = (w) => {
258
- w.currentTarget.contains(w.relatedTarget) || f(null);
259
- }, e[2] = D) : D = e[2];
260
- const I = D;
261
- let G;
262
- e[3] !== r ? (G = (w) => (h) => {
263
- h.preventDefault(), f(null);
264
- const S = h.dataTransfer.getData("text/plain");
265
- S && r?.(S, w);
266
- }, e[3] = r, e[4] = G) : G = e[4];
267
- const E = G;
268
- let T;
269
- e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
262
+ e[3] !== a ? (D = (I) => (y) => {
263
+ y.preventDefault(), g(null);
264
+ const S = y.dataTransfer.getData("text/plain");
265
+ S && a?.(S, I);
266
+ }, e[3] = a, e[4] = D) : D = e[4];
267
+ const P = D;
268
+ let E;
269
+ e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
270
270
  display: "flex",
271
271
  alignItems: "stretch",
272
272
  gap: "sm",
273
273
  padding: "comfortable",
274
274
  minH: "100%"
275
- }, e[5] = T) : T = e[5];
275
+ }, e[5] = E) : E = e[5];
276
276
  let v;
277
- if (e[6] !== y || e[7] !== i || e[8] !== t || e[9] !== E || e[10] !== b || e[11] !== d || e[12] !== r || e[13] !== l || e[14] !== u) {
278
- let w;
279
- e[16] !== y || e[17] !== i || e[18] !== E || e[19] !== b || e[20] !== d || e[21] !== r || e[22] !== l || e[23] !== u ? (w = (h) => /* @__PURE__ */ M(U, { "data-testid": `board-column-${h.id}`, gap: "xs", padding: "compact", borderWidth: "1px", borderColor: "border", borderRadius: "sm", background: y === h.id ? "bg.active" : "bg.subtle", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: h.canDragIn ? C(h.id) : void 0, onDragLeave: h.canDragIn ? I : void 0, onDrop: h.canDragIn ? E(h.id) : void 0, children: [
280
- /* @__PURE__ */ s(Et, { column: h, onCreateStart: d, onColumnAction: b }),
281
- /* @__PURE__ */ s(Te, { flex: "1", minH: "0", size: "xs", verticalScrollbarProps: {
277
+ if (e[6] !== f || e[7] !== o || e[8] !== t || e[9] !== P || e[10] !== p || e[11] !== s || e[12] !== a || e[13] !== i || e[14] !== c) {
278
+ let I;
279
+ e[16] !== f || e[17] !== o || e[18] !== P || e[19] !== p || e[20] !== s || e[21] !== a || e[22] !== i || e[23] !== c ? (I = (y) => /* @__PURE__ */ B(q, { "data-testid": `board-column-${y.id}`, gap: "xs", padding: "compact", borderWidth: "1px", borderColor: "border", borderRadius: "sm", background: f === y.id ? "bg.active" : "bg.subtle", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: y.canDragIn ? x(y.id) : void 0, onDragLeave: y.canDragIn ? w : void 0, onDrop: y.canDragIn ? P(y.id) : void 0, children: [
280
+ /* @__PURE__ */ d(kt, { column: y, onCreateStart: s, onColumnAction: p }),
281
+ /* @__PURE__ */ d(Pe, { flex: "1", minH: "0", size: "xs", verticalScrollbarProps: {
282
282
  margin: "0"
283
283
  }, contentProps: {
284
284
  spaceY: "xs"
285
- }, children: h.groups && h.groups.length > 0 ? h.groups.map((S) => {
286
- const P = `${h.id}::${S.key}`;
287
- return /* @__PURE__ */ s(Mt, { columnId: h.id, group: S, selectedItemId: u, canDragIn: h.canDragIn, canDragOut: h.canDragOut, isDropTarget: i === P, onDragStart: x, onDragEnd: a, onGroupDragOver: (k) => {
288
- k.preventDefault(), k.stopPropagation(), k.dataTransfer.dropEffect = "move", p(P), f(null);
289
- }, onGroupDragLeave: (k) => {
290
- k.currentTarget.contains(k.relatedTarget) || p(null);
291
- }, onGroupDrop: (k, A) => {
292
- k.preventDefault(), k.stopPropagation(), p(null), f(null);
293
- const O = k.dataTransfer.getData("text/plain");
285
+ }, children: y.groups && y.groups.length > 0 ? y.groups.map((S) => {
286
+ const R = `${y.id}::${S.key}`;
287
+ return /* @__PURE__ */ d(Pt, { columnId: y.id, group: S, selectedItemId: c, canDragIn: y.canDragIn, canDragOut: y.canDragOut, isDropTarget: o === R, onDragStart: b, onDragEnd: l, onGroupDragOver: (G) => {
288
+ G.preventDefault(), G.stopPropagation(), G.dataTransfer.dropEffect = "move", u(R), g(null);
289
+ }, onGroupDragLeave: (G) => {
290
+ G.currentTarget.contains(G.relatedTarget) || u(null);
291
+ }, onGroupDrop: (G, $) => {
292
+ G.preventDefault(), G.stopPropagation(), u(null), g(null);
293
+ const O = G.dataTransfer.getData("text/plain");
294
294
  if (O) {
295
- if (r) {
296
- r(O, h.id, {
297
- beforeItemId: A,
295
+ if (a) {
296
+ a(O, y.id, {
297
+ beforeItemId: $,
298
298
  targetGroupKey: S.key
299
299
  });
300
300
  return;
301
301
  }
302
- l?.(O, S.key, {
303
- beforeItemId: A
302
+ i?.(O, S.key, {
303
+ beforeItemId: $
304
304
  });
305
305
  }
306
306
  } }, S.key);
307
- }) : h.items.map((S) => /* @__PURE__ */ s(We, { actions: S.contextMenuActions ?? [], children: /* @__PURE__ */ s(ne, { onDragOver: h.canDragIn ? (P) => {
308
- P.preventDefault(), P.stopPropagation(), P.dataTransfer.dropEffect = "move", f(h.id);
309
- } : void 0, onDrop: h.canDragIn ? (P) => {
310
- P.preventDefault(), P.stopPropagation(), f(null);
311
- const k = P.dataTransfer.getData("text/plain");
312
- !k || k === S.id || r?.(k, h.id, {
307
+ }) : y.items.map((S) => /* @__PURE__ */ d(We, { actions: S.contextMenuActions ?? [], children: /* @__PURE__ */ d(re, { onDragOver: y.canDragIn ? (R) => {
308
+ R.preventDefault(), R.stopPropagation(), R.dataTransfer.dropEffect = "move", g(y.id);
309
+ } : void 0, onDrop: y.canDragIn ? (R) => {
310
+ R.preventDefault(), R.stopPropagation(), g(null);
311
+ const G = R.dataTransfer.getData("text/plain");
312
+ !G || G === S.id || a?.(G, y.id, {
313
313
  beforeItemId: S.id
314
314
  });
315
- } : void 0, children: /* @__PURE__ */ s(Fe, { ...S.cardProps, isSelected: S.id === u, draggable: h.canDragOut, onDragStart: h.canDragOut ? x(S.id) : void 0, onDragEnd: h.canDragOut ? a : void 0 }) }) }, S.id)) })
316
- ] }, h.id), e[16] = y, e[17] = i, e[18] = E, e[19] = b, e[20] = d, e[21] = r, e[22] = l, e[23] = u, e[24] = w) : w = e[24], v = t.map(w), e[6] = y, e[7] = i, e[8] = t, e[9] = E, e[10] = b, e[11] = d, e[12] = r, e[13] = l, e[14] = u, e[15] = v;
315
+ } : void 0, children: /* @__PURE__ */ d(Fe, { ...S.cardProps, isSelected: S.id === c, draggable: y.canDragOut, onDragStart: y.canDragOut ? b(S.id) : void 0, onDragEnd: y.canDragOut ? l : void 0 }) }) }, S.id)) })
316
+ ] }, y.id), e[16] = f, e[17] = o, e[18] = P, e[19] = p, e[20] = s, e[21] = a, e[22] = i, e[23] = c, e[24] = I) : I = e[24], v = t.map(I), e[6] = f, e[7] = o, e[8] = t, e[9] = P, e[10] = p, e[11] = s, e[12] = a, e[13] = i, e[14] = c, e[15] = v;
317
317
  } else
318
318
  v = e[15];
319
- let R;
320
- return e[25] !== v ? (R = /* @__PURE__ */ s(Te, { height: "100%", size: "xs", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: v }), e[25] = v, e[26] = R) : R = e[26], R;
319
+ let k;
320
+ return e[25] !== v ? (k = /* @__PURE__ */ d(Pe, { height: "100%", size: "xs", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: E, children: v }), e[25] = v, e[26] = k) : k = e[26], k;
321
321
  };
322
- function $t(o) {
322
+ function Bt(r) {
323
323
  return (e) => {
324
- e.dataTransfer.setData("text/plain", o), e.dataTransfer.effectAllowed = "move";
324
+ e.dataTransfer.setData("text/plain", r), e.dataTransfer.effectAllowed = "move";
325
325
  };
326
326
  }
327
- const Ne = (o, e, t = 0) => {
327
+ const Ne = (r, e, t = 0) => {
328
328
  const n = [];
329
- for (const r of o) {
330
- const l = (r.children?.length ?? 0) > 0;
329
+ for (const a of r) {
330
+ const i = (a.children?.length ?? 0) > 0;
331
331
  n.push({
332
- id: r.id,
333
- item: r,
332
+ id: a.id,
333
+ item: a,
334
334
  depth: t,
335
- isGroup: r.isGroup === !0,
336
- canExpand: l
337
- }), l && qe(e, r.id) && n.push(...Ne(r.children ?? [], e, t + 1));
335
+ isGroup: a.isGroup === !0,
336
+ canExpand: i
337
+ }), i && Xe(e, a.id) && n.push(...Ne(a.children ?? [], e, t + 1));
338
338
  }
339
339
  return n;
340
- }, zt = (o, e) => {
341
- if (o)
340
+ }, zt = (r, e) => {
341
+ if (r)
342
342
  return {
343
343
  _before: {
344
344
  content: '""',
@@ -350,25 +350,25 @@ const Ne = (o, e, t = 0) => {
350
350
  height: e ? "100%" : "2px"
351
351
  }
352
352
  };
353
- }, qe = (o, e) => o[e] !== !1, Wt = (o, e, t) => ({
354
- ...o,
353
+ }, Xe = (r, e) => r[e] !== !1, Mt = (r, e, t) => ({
354
+ ...r,
355
355
  [e]: t
356
- }), jt = (o, e) => e ? /* @__PURE__ */ M(X, { gap: "xs", minW: "0", maxW: "full", flex: "1", children: [
357
- /* @__PURE__ */ s($, { textStyle: "label/S/medium", minW: "0", truncate: !0, children: o.title }),
358
- /* @__PURE__ */ s($, { textStyle: "label/XS", color: "fg.muted", flexShrink: 0, children: o.countBadge })
359
- ] }) : /* @__PURE__ */ M(X, { gap: "compact", minW: "0", maxW: "full", flex: "1", children: [
360
- o.eyebrow ? /* @__PURE__ */ s($, { "data-testid": "list-row-eyebrow", flexShrink: 0, textStyle: "mono/XS", color: "fg.muted", truncate: !0, children: o.eyebrow }) : null,
361
- /* @__PURE__ */ s($, { textStyle: "paragraph/S/regular", minW: "0", truncate: !0, children: o.title })
362
- ] }), Ht = (o) => (o.badges?.length ?? 0) > 0 || (o.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ s(X, { gap: "xs", flexShrink: 0, children: /* @__PURE__ */ M(we, { gap: "2xs", flexShrink: 0, children: [
363
- o.badges?.map((t) => /* @__PURE__ */ s(He, { badge: t, onChange: o.onBadgeChange }, t.attributeId)),
364
- o.customSlots
365
- ] }) }) : null, Ft = (o, e) => ({
366
- id: o.id,
367
- label: jt(o, o.isGroup === !0),
368
- icon: o.statusIcon ? /* @__PURE__ */ s(q, { "data-testid": o.isGroup ? "list-status-icon" : "row-status-icon", as: o.statusIcon, boxSize: "1rem", colorPalette: o.statusColorPalette ?? o.countColorPalette ?? "gray", color: o.statusColor ?? (o.isGroup || o.statusColorPalette ? "colorPalette.solid" : "fg.muted") }) : void 0,
369
- endContent: Ht(o),
356
+ }), Kt = (r, e) => e ? /* @__PURE__ */ B(X, { gap: "xs", minW: "0", maxW: "full", flex: "1", children: [
357
+ /* @__PURE__ */ d(_, { textStyle: "label/S/medium", minW: "0", truncate: !0, children: r.title }),
358
+ /* @__PURE__ */ d(_, { textStyle: "label/XS", color: "fg.muted", flexShrink: 0, children: r.countBadge })
359
+ ] }) : /* @__PURE__ */ B(X, { gap: "compact", minW: "0", maxW: "full", flex: "1", children: [
360
+ r.eyebrow ? /* @__PURE__ */ d(_, { "data-testid": "list-row-eyebrow", flexShrink: 0, textStyle: "mono/XS", color: "fg.muted", truncate: !0, children: r.eyebrow }) : null,
361
+ /* @__PURE__ */ d(_, { textStyle: "paragraph/S/regular", minW: "0", truncate: !0, children: r.title })
362
+ ] }), Lt = (r) => (r.badges?.length ?? 0) > 0 || (r.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ d(X, { gap: "xs", flexShrink: 0, children: /* @__PURE__ */ B(we, { gap: "2xs", flexShrink: 0, children: [
363
+ r.badges?.map((t) => /* @__PURE__ */ d(je, { badge: t, onChange: r.onBadgeChange }, t.attributeId)),
364
+ r.customSlots
365
+ ] }) }) : null, _t = (r, e) => ({
366
+ id: r.id,
367
+ label: Kt(r, r.isGroup === !0),
368
+ icon: r.statusIcon ? /* @__PURE__ */ d(N, { "data-testid": r.isGroup ? "list-status-icon" : "row-status-icon", as: r.statusIcon, boxSize: "1rem", colorPalette: r.statusColorPalette ?? r.countColorPalette ?? "gray", color: r.statusColor ?? (r.isGroup || r.statusColorPalette ? "colorPalette.solid" : "fg.muted") }) : void 0,
369
+ endContent: Lt(r),
370
370
  isContainer: e,
371
- contextMenuItems: o.contextMenuActions?.map((t) => ({
371
+ contextMenuItems: r.contextMenuActions?.map((t) => ({
372
372
  id: t.key,
373
373
  label: t.label,
374
374
  icon: t.icon ?? void 0,
@@ -377,380 +377,394 @@ const Ne = (o, e, t = 0) => {
377
377
  endContent: t.endContent,
378
378
  onAction: t.onClick
379
379
  }))
380
- }), Nt = (o) => {
381
- const e = z(24), {
380
+ }), Vt = (r) => {
381
+ const e = K(24), {
382
382
  items: t,
383
383
  selectedItemId: n,
384
- expandedGroups: r,
385
- onItemClick: l,
386
- onExpandedGroupChange: d
387
- } = o, b = n === void 0 ? null : n;
388
- let u;
389
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {}, e[0] = u) : u = e[0];
390
- const [y, f] = j(u), [i, p] = j(null), [x, m] = j(null), a = r ?? y;
391
- let g, C;
392
- if (e[1] !== i || e[2] !== x || e[3] !== a || e[4] !== r || e[5] !== t || e[6] !== d || e[7] !== l || e[8] !== b) {
393
- const I = Ne(t, a);
394
- let G;
395
- e[11] !== r || e[12] !== d ? (G = (v, R) => {
396
- d?.(v, R), r === void 0 && f((w) => Wt(w, v, R));
397
- }, e[11] = r, e[12] = d, e[13] = G) : G = e[13];
398
- const E = G;
399
- g = ne;
400
- let T;
401
- e[14] !== i || e[15] !== x || e[16] !== a || e[17] !== E || e[18] !== l || e[19] !== b ? (T = (v) => /* @__PURE__ */ s(qt, { row: v, isExpanded: qe(a, v.id), selectedItemId: b, activeDropTargetId: i, draggedItemId: x, onDraggedItemChange: m, onDropTargetChange: p, onItemClick: l, onExpandedChange: E }, v.id), e[14] = i, e[15] = x, e[16] = a, e[17] = E, e[18] = l, e[19] = b, e[20] = T) : T = e[20], C = I.map(T), e[1] = i, e[2] = x, e[3] = a, e[4] = r, e[5] = t, e[6] = d, e[7] = l, e[8] = b, e[9] = g, e[10] = C;
384
+ expandedGroups: a,
385
+ onItemClick: i,
386
+ onExpandedGroupChange: s
387
+ } = r, p = n === void 0 ? null : n;
388
+ let c;
389
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {}, e[0] = c) : c = e[0];
390
+ const [f, g] = W(c), [o, u] = W(null), [b, h] = W(null), l = a ?? f;
391
+ let m, x;
392
+ if (e[1] !== o || e[2] !== b || e[3] !== l || e[4] !== a || e[5] !== t || e[6] !== s || e[7] !== i || e[8] !== p) {
393
+ const w = Ne(t, l);
394
+ let D;
395
+ e[11] !== a || e[12] !== s ? (D = (v, k) => {
396
+ s?.(v, k), a === void 0 && g((I) => Mt(I, v, k));
397
+ }, e[11] = a, e[12] = s, e[13] = D) : D = e[13];
398
+ const P = D;
399
+ m = re;
400
+ let E;
401
+ e[14] !== o || e[15] !== b || e[16] !== l || e[17] !== P || e[18] !== i || e[19] !== p ? (E = (v) => /* @__PURE__ */ d(Wt, { row: v, isExpanded: Xe(l, v.id), selectedItemId: p, activeDropTargetId: o, draggedItemId: b, onDraggedItemChange: h, onDropTargetChange: u, onItemClick: i, onExpandedChange: P }, v.id), e[14] = o, e[15] = b, e[16] = l, e[17] = P, e[18] = i, e[19] = p, e[20] = E) : E = e[20], x = w.map(E), e[1] = o, e[2] = b, e[3] = l, e[4] = a, e[5] = t, e[6] = s, e[7] = i, e[8] = p, e[9] = m, e[10] = x;
402
402
  } else
403
- g = e[9], C = e[10];
404
- let D;
405
- return e[21] !== g || e[22] !== C ? (D = /* @__PURE__ */ s(g, { children: C }), e[21] = g, e[22] = C, e[23] = D) : D = e[23], D;
406
- }, qt = (o) => {
407
- const e = z(56), {
403
+ m = e[9], x = e[10];
404
+ let C;
405
+ return e[21] !== m || e[22] !== x ? (C = /* @__PURE__ */ d(m, { children: x }), e[21] = m, e[22] = x, e[23] = C) : C = e[23], C;
406
+ }, Wt = (r) => {
407
+ const e = K(56), {
408
408
  row: t,
409
409
  isExpanded: n,
410
- selectedItemId: r,
411
- activeDropTargetId: l,
412
- draggedItemId: d,
413
- onDraggedItemChange: b,
414
- onDropTargetChange: u,
415
- onItemClick: y,
416
- onExpandedChange: f
417
- } = o, {
418
- item: i,
419
- isGroup: p,
420
- canExpand: x
421
- } = t, m = i.id === r, a = !!i.onDropRow && i.id !== d, g = a && i.id === l;
422
- let C;
423
- e[0] !== x || e[1] !== i ? (C = Ft(i, x), e[0] = x, e[1] = i, e[2] = C) : C = e[2];
424
- const D = C;
425
- let I;
426
- e[3] !== n || e[4] !== f || e[5] !== t.id ? (I = () => f(t.id, !n), e[3] = n, e[4] = f, e[5] = t.id, e[6] = I) : I = e[6];
427
- const G = I;
428
- let E;
429
- e[7] !== x || e[8] !== p || e[9] !== i || e[10] !== y || e[11] !== G ? (E = () => {
430
- if (x) {
431
- G();
410
+ selectedItemId: a,
411
+ activeDropTargetId: i,
412
+ draggedItemId: s,
413
+ onDraggedItemChange: p,
414
+ onDropTargetChange: c,
415
+ onItemClick: f,
416
+ onExpandedChange: g
417
+ } = r, {
418
+ item: o,
419
+ isGroup: u,
420
+ canExpand: b
421
+ } = t, h = o.id === a, l = !!o.onDropRow && o.id !== s, m = l && o.id === i;
422
+ let x;
423
+ e[0] !== b || e[1] !== o ? (x = _t(o, b), e[0] = b, e[1] = o, e[2] = x) : x = e[2];
424
+ const C = x;
425
+ let w;
426
+ e[3] !== n || e[4] !== g || e[5] !== t.id ? (w = () => g(t.id, !n), e[3] = n, e[4] = g, e[5] = t.id, e[6] = w) : w = e[6];
427
+ const D = w;
428
+ let P;
429
+ e[7] !== b || e[8] !== u || e[9] !== o || e[10] !== f || e[11] !== D ? (P = () => {
430
+ if (b) {
431
+ D();
432
432
  return;
433
433
  }
434
- p || (i.onClick?.(), y?.(i));
435
- }, e[7] = x, e[8] = p, e[9] = i, e[10] = y, e[11] = G, e[12] = E) : E = e[12];
436
- const T = E;
434
+ u || (o.onClick?.(), f?.(o));
435
+ }, e[7] = b, e[8] = u, e[9] = o, e[10] = f, e[11] = D, e[12] = P) : P = e[12];
436
+ const E = P;
437
437
  let v;
438
- e[13] !== i.draggable || e[14] !== i.id || e[15] !== b || e[16] !== u ? (v = (K) => {
439
- i.draggable && (K.stopPropagation(), K.dataTransfer.setData("text/plain", i.id), K.dataTransfer.effectAllowed = "move", b(i.id), u(null));
440
- }, e[13] = i.draggable, e[14] = i.id, e[15] = b, e[16] = u, e[17] = v) : v = e[17];
441
- const R = v;
442
- let w;
443
- e[18] !== a || e[19] !== i.id || e[20] !== u ? (w = (K) => {
444
- a && (K.preventDefault(), K.stopPropagation(), K.dataTransfer.dropEffect = "move", u(i.id));
445
- }, e[18] = a, e[19] = i.id, e[20] = u, e[21] = w) : w = e[21];
446
- const h = w;
438
+ e[13] !== o.draggable || e[14] !== o.id || e[15] !== p || e[16] !== c ? (v = (M) => {
439
+ o.draggable && (M.stopPropagation(), M.dataTransfer.setData("text/plain", o.id), M.dataTransfer.effectAllowed = "move", p(o.id), c(null));
440
+ }, e[13] = o.draggable, e[14] = o.id, e[15] = p, e[16] = c, e[17] = v) : v = e[17];
441
+ const k = v;
442
+ let I;
443
+ e[18] !== l || e[19] !== o.id || e[20] !== c ? (I = (M) => {
444
+ l && (M.preventDefault(), M.stopPropagation(), M.dataTransfer.dropEffect = "move", c(o.id));
445
+ }, e[18] = l, e[19] = o.id, e[20] = c, e[21] = I) : I = e[21];
446
+ const y = I;
447
447
  let S;
448
- e[22] !== u ? (S = (K) => {
449
- K.currentTarget.contains(K.relatedTarget) || u(null);
450
- }, e[22] = u, e[23] = S) : S = e[23];
451
- const P = S;
452
- let k;
453
- e[24] !== a || e[25] !== i || e[26] !== b || e[27] !== u ? (k = (K) => {
454
- if (!a || !i.onDropRow)
448
+ e[22] !== c ? (S = (M) => {
449
+ M.currentTarget.contains(M.relatedTarget) || c(null);
450
+ }, e[22] = c, e[23] = S) : S = e[23];
451
+ const R = S;
452
+ let G;
453
+ e[24] !== l || e[25] !== o || e[26] !== p || e[27] !== c ? (G = (M) => {
454
+ if (!l || !o.onDropRow)
455
455
  return;
456
- K.preventDefault(), K.stopPropagation(), u(null), b(null);
457
- const F = K.dataTransfer.getData("text/plain");
458
- !F || F === i.id || i.onDropRow(F);
459
- }, e[24] = a, e[25] = i, e[26] = b, e[27] = u, e[28] = k) : k = e[28];
460
- const A = k;
456
+ M.preventDefault(), M.stopPropagation(), c(null), p(null);
457
+ const j = M.dataTransfer.getData("text/plain");
458
+ !j || j === o.id || o.onDropRow(j);
459
+ }, e[24] = l, e[25] = o, e[26] = p, e[27] = c, e[28] = G) : G = e[28];
460
+ const $ = G;
461
461
  let O;
462
- e[29] !== b || e[30] !== u ? (O = () => {
463
- u(null), b(null);
464
- }, e[29] = b, e[30] = u, e[31] = O) : O = e[31];
465
- const c = O, B = g ? "true" : void 0, L = g ? "bg.subtle" : "transparent", se = i.draggable;
466
- let W;
467
- e[32] !== x || e[33] !== g ? (W = zt(g, x), e[32] = x, e[33] = g, e[34] = W) : W = e[34];
468
- const _ = i.onDropRow ? P : void 0, oe = p ? void 0 : i.title, ee = p ? "compact" : "collection";
462
+ e[29] !== p || e[30] !== c ? (O = () => {
463
+ c(null), p(null);
464
+ }, e[29] = p, e[30] = c, e[31] = O) : O = e[31];
465
+ const T = O, A = m ? "true" : void 0, z = m ? "bg.subtle" : "transparent", U = o.draggable;
466
+ let V;
467
+ e[32] !== b || e[33] !== m ? (V = zt(m, b), e[32] = b, e[33] = m, e[34] = V) : V = e[34];
468
+ const ee = o.onDropRow ? R : void 0, oe = u ? void 0 : o.title, te = u ? "compact" : "collection";
469
469
  let H;
470
- e[35] !== x || e[36] !== T || e[37] !== n || e[38] !== m || e[39] !== t.depth || e[40] !== D || e[41] !== oe || e[42] !== ee || e[43] !== G ? (H = /* @__PURE__ */ s(ke, { ...D, "aria-label": oe, variant: ee, depth: t.depth, isSelected: m, isExpanded: n, showExpandToggle: x, showContextMenuTrigger: !1, onActivate: T, onToggleExpand: G }), e[35] = x, e[36] = T, e[37] = n, e[38] = m, e[39] = t.depth, e[40] = D, e[41] = oe, e[42] = ee, e[43] = G, e[44] = H) : H = e[44];
470
+ e[35] !== b || e[36] !== E || e[37] !== n || e[38] !== h || e[39] !== t.depth || e[40] !== C || e[41] !== oe || e[42] !== te || e[43] !== D ? (H = /* @__PURE__ */ d(ke, { ...C, "aria-label": oe, variant: te, depth: t.depth, isSelected: h, isExpanded: n, showExpandToggle: b, showContextMenuTrigger: !1, onActivate: E, onToggleExpand: D }), e[35] = b, e[36] = E, e[37] = n, e[38] = h, e[39] = t.depth, e[40] = C, e[41] = oe, e[42] = te, e[43] = D, e[44] = H) : H = e[44];
471
471
  let Y;
472
- return e[45] !== c || e[46] !== h || e[47] !== R || e[48] !== A || e[49] !== i.draggable || e[50] !== W || e[51] !== _ || e[52] !== H || e[53] !== B || e[54] !== L ? (Y = /* @__PURE__ */ s(ne, { "data-drop-target": B, position: "relative", borderBottomWidth: "1px", borderBottomColor: "border.subtle", bg: L, draggable: se, transition: "background 120ms ease", ...W, onDragStart: R, onDragOver: h, onDragLeave: _, onDragEnd: c, onDrop: A, children: H }), e[45] = c, e[46] = h, e[47] = R, e[48] = A, e[49] = i.draggable, e[50] = W, e[51] = _, e[52] = H, e[53] = B, e[54] = L, e[55] = Y) : Y = e[55], Y;
473
- }, Oe = (o) => {
474
- const e = z(7), {
472
+ return e[45] !== T || e[46] !== y || e[47] !== k || e[48] !== $ || e[49] !== o.draggable || e[50] !== V || e[51] !== ee || e[52] !== H || e[53] !== A || e[54] !== z ? (Y = /* @__PURE__ */ d(re, { "data-drop-target": A, position: "relative", borderBottomWidth: "1px", borderBottomColor: "border.subtle", bg: z, draggable: U, transition: "background 120ms ease", ...V, onDragStart: k, onDragOver: y, onDragLeave: ee, onDragEnd: T, onDrop: $, children: H }), e[45] = T, e[46] = y, e[47] = k, e[48] = $, e[49] = o.draggable, e[50] = V, e[51] = ee, e[52] = H, e[53] = A, e[54] = z, e[55] = Y) : Y = e[55], Y;
473
+ }, Oe = (r) => {
474
+ const e = K(7), {
475
475
  emptyState: t,
476
476
  title: n,
477
- description: r,
478
- height: l
479
- } = o;
477
+ description: a,
478
+ height: i
479
+ } = r;
480
480
  if (t !== void 0) {
481
- let b;
482
- return e[0] !== t || e[1] !== l ? (b = l ? /* @__PURE__ */ s(ne, { height: l, children: t }) : t, e[0] = t, e[1] = l, e[2] = b) : b = e[2], b;
481
+ let p;
482
+ return e[0] !== t || e[1] !== i ? (p = i ? /* @__PURE__ */ d(re, { height: i, children: t }) : t, e[0] = t, e[1] = i, e[2] = p) : p = e[2], p;
483
483
  }
484
- let d;
485
- return e[3] !== r || e[4] !== l || e[5] !== n ? (d = /* @__PURE__ */ s(st, { title: n, description: r, height: l }), e[3] = r, e[4] = l, e[5] = n, e[6] = d) : d = e[6], d;
486
- }, Xt = (o) => {
487
- const e = z(20), {
484
+ let s;
485
+ return e[3] !== a || e[4] !== i || e[5] !== n ? (s = /* @__PURE__ */ d(dt, { title: n, description: a, height: i }), e[3] = a, e[4] = i, e[5] = n, e[6] = s) : s = e[6], s;
486
+ }, Ht = (r) => {
487
+ const e = K(20), {
488
488
  viewMode: t,
489
489
  boardColumns: n,
490
- listItems: r,
491
- listExpandedGroups: l,
492
- selectedRowId: d,
493
- emptyState: b,
494
- emptyTitle: u,
495
- emptyDescription: y,
496
- onBoardMoveItem: f,
497
- onBoardMoveToGroup: i,
498
- onCreateRow: p,
499
- onColumnAction: x,
500
- onListExpandedGroupChange: m,
501
- listKey: a
502
- } = o;
490
+ listItems: a,
491
+ listExpandedGroups: i,
492
+ selectedRowId: s,
493
+ emptyState: p,
494
+ emptyTitle: c,
495
+ emptyDescription: f,
496
+ onBoardMoveItem: g,
497
+ onBoardMoveToGroup: o,
498
+ onCreateRow: u,
499
+ onColumnAction: b,
500
+ onListExpandedGroupChange: h,
501
+ listKey: l
502
+ } = r;
503
503
  if (t === "board") {
504
- let C;
505
- return e[0] !== n || e[1] !== y || e[2] !== b || e[3] !== u || e[4] !== f || e[5] !== i || e[6] !== x || e[7] !== p || e[8] !== d ? (C = /* @__PURE__ */ s(ne, { flex: "1", minH: "0", children: n.length > 0 ? /* @__PURE__ */ s(Vt, { columns: n, selectedItemId: d, onMoveItem: f, onMoveToGroup: i, onCreateStart: p, onColumnAction: x }) : /* @__PURE__ */ s(Oe, { emptyState: b, title: u, description: y, height: "100%" }) }), e[0] = n, e[1] = y, e[2] = b, e[3] = u, e[4] = f, e[5] = i, e[6] = x, e[7] = p, e[8] = d, e[9] = C) : C = e[9], C;
504
+ let x;
505
+ return e[0] !== n || e[1] !== f || e[2] !== p || e[3] !== c || e[4] !== g || e[5] !== o || e[6] !== b || e[7] !== u || e[8] !== s ? (x = /* @__PURE__ */ d(re, { flex: "1", minH: "0", children: n.length > 0 ? /* @__PURE__ */ d($t, { columns: n, selectedItemId: s, onMoveItem: g, onMoveToGroup: o, onCreateStart: u, onColumnAction: b }) : /* @__PURE__ */ d(Oe, { emptyState: p, title: c, description: f, height: "100%" }) }), e[0] = n, e[1] = f, e[2] = p, e[3] = c, e[4] = g, e[5] = o, e[6] = b, e[7] = u, e[8] = s, e[9] = x) : x = e[9], x;
506
506
  }
507
- if (r.length > 0) {
508
- let C;
509
- return e[10] !== l || e[11] !== r || e[12] !== a || e[13] !== m || e[14] !== d ? (C = /* @__PURE__ */ s(Nt, { items: r, selectedItemId: d, expandedGroups: l, onExpandedGroupChange: m }, a), e[10] = l, e[11] = r, e[12] = a, e[13] = m, e[14] = d, e[15] = C) : C = e[15], C;
507
+ if (a.length > 0) {
508
+ let x;
509
+ return e[10] !== i || e[11] !== a || e[12] !== l || e[13] !== h || e[14] !== s ? (x = /* @__PURE__ */ d(Vt, { items: a, selectedItemId: s, expandedGroups: i, onExpandedGroupChange: h }, l), e[10] = i, e[11] = a, e[12] = l, e[13] = h, e[14] = s, e[15] = x) : x = e[15], x;
510
510
  }
511
+ let m;
512
+ return e[16] !== f || e[17] !== p || e[18] !== c ? (m = /* @__PURE__ */ d(Oe, { emptyState: p, title: c, description: f }), e[16] = f, e[17] = p, e[18] = c, e[19] = m) : m = e[19], m;
513
+ }, jt = (r) => {
514
+ const e = K(2), {
515
+ children: t
516
+ } = r;
517
+ let n;
518
+ return e[0] !== t ? (n = /* @__PURE__ */ d(_, { minH: "0.75rem", textStyle: "label/XS", color: "fg.muted", lineHeight: "1", letterSpacing: "0.08em", textTransform: "uppercase", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
519
+ }, $e = (r) => {
520
+ const e = K(15), {
521
+ group: t,
522
+ params: n,
523
+ renderParam: a,
524
+ variant: i,
525
+ width: s
526
+ } = r, p = s === void 0 ? "auto" : s, c = t.title, f = i === "small" ? "2xs" : "xs";
511
527
  let g;
512
- return e[16] !== y || e[17] !== b || e[18] !== u ? (g = /* @__PURE__ */ s(Oe, { emptyState: b, title: u, description: y }), e[16] = y, e[17] = b, e[18] = u, e[19] = g) : g = e[19], g;
513
- }, ce = (o, e, t) => o[e] === void 0 ? t : o[e], Ut = (o) => {
514
- const e = z(46), {
515
- params: t,
516
- groups: n,
517
- defaultValues: r,
518
- onChange: l,
519
- readOnly: d,
520
- variant: b
521
- } = o;
528
+ e[0] !== t.title ? (g = /* @__PURE__ */ d(jt, { children: t.title }), e[0] = t.title, e[1] = g) : g = e[1];
529
+ const o = i === "small" ? "2xs" : "xs";
522
530
  let u;
523
- e[0] !== t ? (u = t === void 0 ? [] : t, e[0] = t, e[1] = u) : u = e[1];
524
- const y = u;
525
- let f;
526
- e[2] !== n ? (f = n === void 0 ? [] : n, e[2] = n, e[3] = f) : f = e[3];
527
- const i = f, p = b === void 0 ? "default" : b;
528
- let x;
529
- e[4] !== d ? (x = (c) => d || c.readOnly, e[4] = d, e[5] = x) : x = e[5];
530
- const m = x;
531
- let a;
532
- e[6] !== r || e[7] !== m || e[8] !== l ? (a = (c) => /* @__PURE__ */ s(xt, { hideLabel: !0, hideSlider: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), min: c.min, max: c.max, step: c.step, onChange: l, tooltipPlacement: "top" }, c.id), e[6] = r, e[7] = m, e[8] = l, e[9] = a) : a = e[9];
533
- const g = a;
534
- let C;
535
- e[10] !== r || e[11] !== m || e[12] !== l ? (C = (c) => /* @__PURE__ */ s(wt, { hideLabel: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), onChange: l, tooltipPlacement: "top" }, c.id), e[10] = r, e[11] = m, e[12] = l, e[13] = C) : C = e[13];
536
- const D = C;
537
- let I;
538
- e[14] !== r || e[15] !== m || e[16] !== l ? (I = (c) => /* @__PURE__ */ s(je, { hideLabel: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), options: c.options, onChange: l, multiSelect: c.multiSelect, tooltipPlacement: "top", placeholder: c.placeholder, clearable: c.clearable, disabled: c.disabled }, c.id), e[14] = r, e[15] = m, e[16] = l, e[17] = I) : I = e[17];
539
- const G = I;
540
- let E;
541
- e[18] !== r || e[19] !== m || e[20] !== l ? (E = (c) => /* @__PURE__ */ s(vt, { hideLabel: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), min: c.min, max: c.max, onChange: l, tooltipPlacement: "top" }, c.id), e[18] = r, e[19] = m, e[20] = l, e[21] = E) : E = e[21];
542
- const T = E;
543
- let v;
544
- e[22] !== r || e[23] !== m || e[24] !== l ? (v = (c) => /* @__PURE__ */ s(Ct, { hideLabel: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), onChange: l, tooltipPlacement: "top" }, c.id), e[22] = r, e[23] = m, e[24] = l, e[25] = v) : v = e[25];
545
- const R = v, w = Yt;
531
+ e[2] !== n || e[3] !== a ? (u = n.map(a), e[2] = n, e[3] = a, e[4] = u) : u = e[4];
532
+ let b;
533
+ e[5] !== o || e[6] !== u || e[7] !== p ? (b = /* @__PURE__ */ d(X, { gap: o, flexWrap: "wrap", alignItems: "start", minW: "0", width: p, children: u }), e[5] = o, e[6] = u, e[7] = p, e[8] = b) : b = e[8];
546
534
  let h;
547
- e[26] !== R || e[27] !== T || e[28] !== g || e[29] !== G || e[30] !== D ? (h = (c) => {
548
- switch (c.type) {
549
- case "number":
550
- return g(c);
551
- case "text":
552
- return D(c);
553
- case "selection":
554
- return G(c);
555
- case "date":
556
- return T(c);
557
- case "color":
558
- return R(c);
559
- case "property":
560
- return w(c);
561
- case "readOnly":
562
- return /* @__PURE__ */ s(St, { param: c }, c.id);
563
- default:
564
- return null;
565
- }
566
- }, e[26] = R, e[27] = T, e[28] = g, e[29] = G, e[30] = D, e[31] = h) : h = e[31];
567
- const S = h, P = p === "small" ? "xs" : "sm";
568
- let k;
569
- e[32] !== y || e[33] !== S ? (k = y.map(S), e[32] = y, e[33] = S, e[34] = k) : k = e[34];
570
- let A;
571
- if (e[35] !== i || e[36] !== S || e[37] !== p) {
572
- let c;
573
- e[39] !== S || e[40] !== p ? (c = (B) => /* @__PURE__ */ M(rt, { gap: p === "small" ? "2xs" : "xs", align: "start", children: [
574
- /* @__PURE__ */ s($, { fontSize: "sm", fontWeight: "medium", color: "fg.muted", children: B.title }),
575
- /* @__PURE__ */ s(X, { gap: p === "small" ? "2xs" : "xs", children: B.params.map(S) })
576
- ] }, B.id), e[39] = S, e[40] = p, e[41] = c) : c = e[41], A = i.map(c), e[35] = i, e[36] = S, e[37] = p, e[38] = A;
535
+ return e[9] !== t.title || e[10] !== f || e[11] !== g || e[12] !== b || e[13] !== p ? (h = /* @__PURE__ */ B(lt, { as: "section", "aria-label": c, gap: f, alignItems: "start", minW: "0", width: p, children: [
536
+ g,
537
+ b
538
+ ] }), e[9] = t.title, e[10] = f, e[11] = g, e[12] = b, e[13] = p, e[14] = h) : h = e[14], h;
539
+ }, Ft = (r) => {
540
+ const e = K(35), {
541
+ params: t,
542
+ groups: n,
543
+ defaultValues: a,
544
+ onChange: i,
545
+ onOpenResource: s,
546
+ readOnly: p,
547
+ variant: c
548
+ } = r;
549
+ let f, g, o, u, b, h, l, m;
550
+ if (e[0] !== a || e[1] !== i || e[2] !== s || e[3] !== p || e[4] !== t || e[5] !== n || e[6] !== c) {
551
+ const C = t === void 0 ? [] : t, w = n === void 0 ? [] : n, D = c === void 0 ? "default" : c, P = C.filter(He), E = w.map(Nt);
552
+ let v;
553
+ e[15] !== a || e[16] !== i || e[17] !== s || e[18] !== p || e[19] !== D ? (v = (A) => /* @__PURE__ */ d(xt, { param: A, defaultValues: a, onChange: i, onOpenResource: s, readOnly: p, presentation: "horizontal", size: D === "small" ? "xs" : "sm" }, A.id), e[15] = a, e[16] = i, e[17] = s, e[18] = p, e[19] = D, e[20] = v) : v = e[20];
554
+ const k = v, I = P.filter(Xt), y = P.filter(he), S = E.map(Ut).filter(Yt), R = E.map(Jt).filter(Qt), G = D === "small" ? "xs" : "sm", $ = I.length > 0 || S.length > 0;
555
+ f = q, g = "1", o = "full", u = G, b = "0", h = $ ? /* @__PURE__ */ B(X, { gap: G, flexWrap: "wrap", alignItems: "start", minW: "0", children: [
556
+ I.map(k),
557
+ S.map((A) => {
558
+ const {
559
+ group: z,
560
+ params: U
561
+ } = A;
562
+ return /* @__PURE__ */ d($e, { group: z, params: U, renderParam: k, variant: D }, z.id);
563
+ })
564
+ ] }) : null;
565
+ let O;
566
+ e[21] !== k ? (O = (A) => /* @__PURE__ */ d(re, { width: "full", minW: "0", children: k(A) }, A.id), e[21] = k, e[22] = O) : O = e[22], l = y.map(O);
567
+ let T;
568
+ e[23] !== k || e[24] !== D ? (T = (A) => {
569
+ const {
570
+ group: z,
571
+ params: U
572
+ } = A;
573
+ return /* @__PURE__ */ d($e, { group: z, params: U, renderParam: k, variant: D, width: "full" }, `${z.id}-rich`);
574
+ }, e[23] = k, e[24] = D, e[25] = T) : T = e[25], m = R.map(T), e[0] = a, e[1] = i, e[2] = s, e[3] = p, e[4] = t, e[5] = n, e[6] = c, e[7] = f, e[8] = g, e[9] = o, e[10] = u, e[11] = b, e[12] = h, e[13] = l, e[14] = m;
577
575
  } else
578
- A = e[38];
579
- let O;
580
- return e[42] !== P || e[43] !== k || e[44] !== A ? (O = /* @__PURE__ */ M(U, { direction: "row", flex: "1", maxW: "full", gap: P, flexWrap: "wrap", children: [
581
- k,
582
- A
583
- ] }), e[42] = P, e[43] = k, e[44] = A, e[45] = O) : O = e[45], O;
576
+ f = e[7], g = e[8], o = e[9], u = e[10], b = e[11], h = e[12], l = e[13], m = e[14];
577
+ let x;
578
+ return e[26] !== f || e[27] !== g || e[28] !== o || e[29] !== u || e[30] !== b || e[31] !== h || e[32] !== l || e[33] !== m ? (x = /* @__PURE__ */ B(f, { flex: g, maxW: o, gap: u, minW: b, children: [
579
+ h,
580
+ l,
581
+ m
582
+ ] }), e[26] = f, e[27] = g, e[28] = o, e[29] = u, e[30] = b, e[31] = h, e[32] = l, e[33] = m, e[34] = x) : x = e[34], x;
584
583
  };
585
- function Yt(o) {
586
- return /* @__PURE__ */ M(X, { gap: "xs", alignItems: "center", children: [
587
- /* @__PURE__ */ s(Dt, { name: o.name, description: o.description }),
588
- /* @__PURE__ */ s(It, { children: o.value })
589
- ] }, o.id);
584
+ function Nt(r) {
585
+ return {
586
+ ...r,
587
+ params: r.params.filter(He)
588
+ };
589
+ }
590
+ function Xt(r) {
591
+ return !he(r);
590
592
  }
591
- const Jt = (o) => {
593
+ function qt(r) {
594
+ return !he(r);
595
+ }
596
+ function Ut(r) {
597
+ return {
598
+ group: r,
599
+ params: r.params.filter(qt)
600
+ };
601
+ }
602
+ function Yt(r) {
592
603
  const {
593
- disabled: e,
594
- field: t,
595
- onChange: n
596
- } = o, [r, l] = j(null);
597
- return fe(() => {
598
- let d = !1;
599
- return (async () => {
600
- await Gt();
601
- const b = await import("./rich-text.js");
602
- d || l(() => b.MarkdownEditor);
603
- })(), () => {
604
- d = !0;
605
- };
606
- }, []), r ? /* @__PURE__ */ s(
607
- r,
608
- {
609
- defaultState: typeof t.defaultValue == "string" ? t.defaultValue : "",
610
- isEditable: !e,
611
- placeholder: t.placeholder,
612
- autoFocus: !0,
613
- onChange: (d) => n(d)
614
- }
615
- ) : /* @__PURE__ */ s(ne, { minH: "144px", borderWidth: "1px", borderColor: "border", borderRadius: "sm" });
616
- }, Qt = (o) => {
617
- const e = z(24), {
604
+ params: e
605
+ } = r;
606
+ return e.length > 0;
607
+ }
608
+ function Jt(r) {
609
+ return {
610
+ group: r,
611
+ params: r.params.filter(he)
612
+ };
613
+ }
614
+ function Qt(r) {
615
+ const {
616
+ params: e
617
+ } = r;
618
+ return e.length > 0;
619
+ }
620
+ const Zt = (r) => {
621
+ const e = K(7), {
618
622
  disabled: t,
619
623
  field: n,
620
- removeLabel: r,
621
- value: l,
622
- onChange: d
623
- } = o, b = ze(null);
624
- let u;
625
- e[0] !== l ? (u = Array.isArray(l) ? l : [], e[0] = l, e[1] = u) : u = e[1];
626
- const y = u, f = n.multiple !== !1;
627
- let i;
628
- e[2] !== n.multiple || e[3] !== y || e[4] !== d ? (i = (D) => {
629
- const I = Array.from(D.target.files ?? []);
630
- d(n.multiple === !1 ? I.slice(0, 1) : [...y, ...I]), D.target.value = "";
631
- }, e[2] = n.multiple, e[3] = y, e[4] = d, e[5] = i) : i = e[5];
624
+ onChange: a
625
+ } = r, i = typeof n.defaultValue == "string" ? n.defaultValue : "", s = !t;
632
626
  let p;
633
- e[6] !== n.accept || e[7] !== f || e[8] !== i ? (p = /* @__PURE__ */ s("input", { ref: b, hidden: !0, type: "file", accept: n.accept, multiple: f, onChange: i }), e[6] = n.accept, e[7] = f, e[8] = i, e[9] = p) : p = e[9];
634
- let x, m;
635
- e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => b.current?.click(), m = /* @__PURE__ */ s(q, { as: ht, boxSize: "4" }), e[10] = x, e[11] = m) : (x = e[10], m = e[11]);
636
- let a;
637
- e[12] !== t || e[13] !== n.label ? (a = /* @__PURE__ */ M(he, { size: "xs", variant: "ghost", disabled: t, onClick: x, children: [
638
- m,
627
+ e[0] !== a ? (p = (f) => a(f), e[0] = a, e[1] = p) : p = e[1];
628
+ let c;
629
+ return e[2] !== n.placeholder || e[3] !== i || e[4] !== s || e[5] !== p ? (c = /* @__PURE__ */ d(Dt, { defaultState: i, isEditable: s, placeholder: n.placeholder, autoFocus: !0, onChange: p }), e[2] = n.placeholder, e[3] = i, e[4] = s, e[5] = p, e[6] = c) : c = e[6], c;
630
+ }, en = (r) => {
631
+ const e = K(24), {
632
+ disabled: t,
633
+ field: n,
634
+ removeLabel: a,
635
+ value: i,
636
+ onChange: s
637
+ } = r, p = Ve(null);
638
+ let c;
639
+ e[0] !== i ? (c = Array.isArray(i) ? i : [], e[0] = i, e[1] = c) : c = e[1];
640
+ const f = c, g = n.multiple !== !1;
641
+ let o;
642
+ e[2] !== n.multiple || e[3] !== f || e[4] !== s ? (o = (C) => {
643
+ const w = Array.from(C.target.files ?? []);
644
+ s(n.multiple === !1 ? w.slice(0, 1) : [...f, ...w]), C.target.value = "";
645
+ }, e[2] = n.multiple, e[3] = f, e[4] = s, e[5] = o) : o = e[5];
646
+ let u;
647
+ e[6] !== n.accept || e[7] !== g || e[8] !== o ? (u = /* @__PURE__ */ d("input", { ref: p, hidden: !0, type: "file", accept: n.accept, multiple: g, onChange: o }), e[6] = n.accept, e[7] = g, e[8] = o, e[9] = u) : u = e[9];
648
+ let b, h;
649
+ e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = () => p.current?.click(), h = /* @__PURE__ */ d(N, { as: yt, boxSize: "4" }), e[10] = b, e[11] = h) : (b = e[10], h = e[11]);
650
+ let l;
651
+ e[12] !== t || e[13] !== n.label ? (l = /* @__PURE__ */ B(me, { size: "xs", variant: "ghost", disabled: t, onClick: b, children: [
652
+ h,
639
653
  n.label
640
- ] }), e[12] = t, e[13] = n.label, e[14] = a) : a = e[14];
641
- let g;
642
- e[15] !== t || e[16] !== y || e[17] !== d || e[18] !== r ? (g = y.length > 0 ? /* @__PURE__ */ s(we, { gap: "2xs", children: y.map((D, I) => /* @__PURE__ */ s(kt, { file: D, disabled: t, removeLabel: r, onRemove: () => d(y.filter((G, E) => E !== I)) }, `${D.name}-${I.toString()}`)) }) : null, e[15] = t, e[16] = y, e[17] = d, e[18] = r, e[19] = g) : g = e[19];
643
- let C;
644
- return e[20] !== p || e[21] !== a || e[22] !== g ? (C = /* @__PURE__ */ M(U, { gap: "2xs", align: "start", children: [
645
- p,
646
- a,
647
- g
648
- ] }), e[20] = p, e[21] = a, e[22] = g, e[23] = C) : C = e[23], C;
649
- }, Zt = (o) => {
650
- const e = z(45), {
654
+ ] }), e[12] = t, e[13] = n.label, e[14] = l) : l = e[14];
655
+ let m;
656
+ e[15] !== t || e[16] !== f || e[17] !== s || e[18] !== a ? (m = f.length > 0 ? /* @__PURE__ */ d(we, { gap: "2xs", children: f.map((C, w) => /* @__PURE__ */ d(St, { file: C, disabled: t, removeLabel: a, onRemove: () => s(f.filter((D, P) => P !== w)) }, `${C.name}-${w.toString()}`)) }) : null, e[15] = t, e[16] = f, e[17] = s, e[18] = a, e[19] = m) : m = e[19];
657
+ let x;
658
+ return e[20] !== u || e[21] !== l || e[22] !== m ? (x = /* @__PURE__ */ B(q, { gap: "2xs", align: "start", children: [
659
+ u,
660
+ l,
661
+ m
662
+ ] }), e[20] = u, e[21] = l, e[22] = m, e[23] = x) : x = e[23], x;
663
+ }, tn = (r) => {
664
+ const e = K(45), {
651
665
  disabled: t,
652
666
  field: n,
653
- value: r,
654
- onChange: l
655
- } = o;
667
+ value: a,
668
+ onChange: i
669
+ } = r;
656
670
  if (n.type === "longtext") {
657
- const f = typeof r == "string" ? r : "";
658
- let i;
659
- e[0] !== l ? (i = (x) => l(x.target.value), e[0] = l, e[1] = i) : i = e[1];
660
- let p;
661
- return e[2] !== t || e[3] !== n.label || e[4] !== n.placeholder || e[5] !== f || e[6] !== i ? (p = /* @__PURE__ */ s(lt, { "aria-label": n.label, minH: "120px", size: "sm", placeholder: n.placeholder, value: f, disabled: t, onChange: i }), e[2] = t, e[3] = n.label, e[4] = n.placeholder, e[5] = f, e[6] = i, e[7] = p) : p = e[7], p;
671
+ const g = typeof a == "string" ? a : "";
672
+ let o;
673
+ e[0] !== i ? (o = (b) => i(b.target.value), e[0] = i, e[1] = o) : o = e[1];
674
+ let u;
675
+ return e[2] !== t || e[3] !== n.label || e[4] !== n.placeholder || e[5] !== g || e[6] !== o ? (u = /* @__PURE__ */ d(at, { "aria-label": n.label, minH: "120px", size: "sm", placeholder: n.placeholder, value: g, disabled: t, onChange: o }), e[2] = t, e[3] = n.label, e[4] = n.placeholder, e[5] = g, e[6] = o, e[7] = u) : u = e[7], u;
662
676
  }
663
677
  if (n.type === "select" || n.type === "multi-select") {
664
- const f = n.id, i = n.label, p = n.description ?? "";
665
- let x;
666
- e[8] !== n.type || e[9] !== r ? (x = r ?? (n.type === "multi-select" ? [] : ""), e[8] = n.type, e[9] = r, e[10] = x) : x = e[10];
667
- let m;
668
- e[11] !== n.options ? (m = n.options ?? [], e[11] = n.options, e[12] = m) : m = e[12];
669
- let a;
670
- e[13] !== m ? (a = m.map(en), e[13] = m, e[14] = a) : a = e[14];
671
- const g = n.type === "multi-select", C = n.placeholder ?? n.label, D = !n.required;
672
- let I;
673
- e[15] !== l ? (I = (E, T) => l(T), e[15] = l, e[16] = I) : I = e[16];
674
- let G;
675
- return e[17] !== t || e[18] !== n.id || e[19] !== n.label || e[20] !== p || e[21] !== x || e[22] !== a || e[23] !== g || e[24] !== C || e[25] !== D || e[26] !== I ? (G = /* @__PURE__ */ s(je, { hideLabel: !0, id: f, name: i, description: p, defaultValue: x, options: a, multiSelect: g, placeholder: C, clearable: D, readOnly: t, onChange: I }), e[17] = t, e[18] = n.id, e[19] = n.label, e[20] = p, e[21] = x, e[22] = a, e[23] = g, e[24] = C, e[25] = D, e[26] = I, e[27] = G) : G = e[27], G;
678
+ const g = n.id, o = n.label, u = n.description ?? "";
679
+ let b;
680
+ e[8] !== n.type || e[9] !== a ? (b = a ?? (n.type === "multi-select" ? [] : ""), e[8] = n.type, e[9] = a, e[10] = b) : b = e[10];
681
+ let h;
682
+ e[11] !== n.options ? (h = n.options ?? [], e[11] = n.options, e[12] = h) : h = e[12];
683
+ let l;
684
+ e[13] !== h ? (l = h.map(rn), e[13] = h, e[14] = l) : l = e[14];
685
+ const m = n.type === "multi-select", x = n.placeholder ?? n.label, C = !n.required;
686
+ let w;
687
+ e[15] !== i ? (w = (P, E) => i(E), e[15] = i, e[16] = w) : w = e[16];
688
+ let D;
689
+ return e[17] !== t || e[18] !== n.id || e[19] !== n.label || e[20] !== u || e[21] !== b || e[22] !== l || e[23] !== m || e[24] !== x || e[25] !== C || e[26] !== w ? (D = /* @__PURE__ */ d(Ct, { hideLabel: !0, id: g, name: o, description: u, defaultValue: b, options: l, multiSelect: m, placeholder: x, clearable: C, readOnly: t, onChange: w }), e[17] = t, e[18] = n.id, e[19] = n.label, e[20] = u, e[21] = b, e[22] = l, e[23] = m, e[24] = x, e[25] = C, e[26] = w, e[27] = D) : D = e[27], D;
676
690
  }
677
691
  if (n.type === "boolean") {
678
- let f;
679
- e[28] !== l || e[29] !== r ? (f = () => l(r !== !0), e[28] = l, e[29] = r, e[30] = f) : f = e[30];
680
- let i;
681
- return e[31] !== t || e[32] !== n.label || e[33] !== f ? (i = /* @__PURE__ */ s(he, { size: "sm", variant: "outline", disabled: t, onClick: f, children: n.label }), e[31] = t, e[32] = n.label, e[33] = f, e[34] = i) : i = e[34], i;
692
+ let g;
693
+ e[28] !== i || e[29] !== a ? (g = () => i(a !== !0), e[28] = i, e[29] = a, e[30] = g) : g = e[30];
694
+ let o;
695
+ return e[31] !== t || e[32] !== n.label || e[33] !== g ? (o = /* @__PURE__ */ d(me, { size: "sm", variant: "outline", disabled: t, onClick: g, children: n.label }), e[31] = t, e[32] = n.label, e[33] = g, e[34] = o) : o = e[34], o;
682
696
  }
683
- const d = n.type === "number" ? "number" : "text", b = typeof r == "string" || typeof r == "number" ? r : "";
684
- let u;
685
- e[35] !== n.type || e[36] !== l ? (u = (f) => l(n.type === "number" && f.target.value ? Number(f.target.value) : f.target.value), e[35] = n.type, e[36] = l, e[37] = u) : u = e[37];
686
- let y;
687
- return e[38] !== t || e[39] !== n.label || e[40] !== n.placeholder || e[41] !== d || e[42] !== b || e[43] !== u ? (y = /* @__PURE__ */ s(it, { "aria-label": n.label, size: "sm", type: d, placeholder: n.placeholder, value: b, disabled: t, onChange: u }), e[38] = t, e[39] = n.label, e[40] = n.placeholder, e[41] = d, e[42] = b, e[43] = u, e[44] = y) : y = e[44], y;
688
- }, _t = (o) => {
689
- const e = z(20), {
697
+ const s = n.type === "number" ? "number" : "text", p = typeof a == "string" || typeof a == "number" ? a : "";
698
+ let c;
699
+ e[35] !== n.type || e[36] !== i ? (c = (g) => i(n.type === "number" && g.target.value ? Number(g.target.value) : g.target.value), e[35] = n.type, e[36] = i, e[37] = c) : c = e[37];
700
+ let f;
701
+ return e[38] !== t || e[39] !== n.label || e[40] !== n.placeholder || e[41] !== s || e[42] !== p || e[43] !== c ? (f = /* @__PURE__ */ d(it, { "aria-label": n.label, size: "sm", type: s, placeholder: n.placeholder, value: p, disabled: t, onChange: c }), e[38] = t, e[39] = n.label, e[40] = n.placeholder, e[41] = s, e[42] = p, e[43] = c, e[44] = f) : f = e[44], f;
702
+ }, nn = (r) => {
703
+ const e = K(20), {
690
704
  disabled: t,
691
705
  field: n,
692
- removeLabel: r,
693
- value: l,
694
- onChange: d
695
- } = o;
706
+ removeLabel: a,
707
+ value: i,
708
+ onChange: s
709
+ } = r;
696
710
  if (n.type === "files") {
697
- let p;
698
- return e[0] !== t || e[1] !== n || e[2] !== d || e[3] !== r || e[4] !== l ? (p = /* @__PURE__ */ s(Qt, { disabled: t, field: n, removeLabel: r, value: l, onChange: d }), e[0] = t, e[1] = n, e[2] = d, e[3] = r, e[4] = l, e[5] = p) : p = e[5], p;
711
+ let u;
712
+ return e[0] !== t || e[1] !== n || e[2] !== s || e[3] !== a || e[4] !== i ? (u = /* @__PURE__ */ d(en, { disabled: t, field: n, removeLabel: a, value: i, onChange: s }), e[0] = t, e[1] = n, e[2] = s, e[3] = a, e[4] = i, e[5] = u) : u = e[5], u;
699
713
  }
700
714
  if (n.type === "markdown") {
701
- let p;
702
- return e[6] !== t || e[7] !== n || e[8] !== d ? (p = /* @__PURE__ */ s(Jt, { disabled: t, field: n, onChange: d }), e[6] = t, e[7] = n, e[8] = d, e[9] = p) : p = e[9], p;
715
+ let u;
716
+ return e[6] !== t || e[7] !== n || e[8] !== s ? (u = /* @__PURE__ */ d(Zt, { disabled: t, field: n, onChange: s }), e[6] = t, e[7] = n, e[8] = s, e[9] = u) : u = e[9], u;
703
717
  }
704
- const b = `${n.label}${n.required ? " *" : ""}`;
705
- let u;
706
- e[10] !== b ? (u = /* @__PURE__ */ s($, { textStyle: "label/S/medium", children: b }), e[10] = b, e[11] = u) : u = e[11];
707
- let y;
708
- e[12] !== n.description ? (y = n.description ? /* @__PURE__ */ s($, { textStyle: "paragraph/XS/regular", color: "fg.muted", children: n.description }) : null, e[12] = n.description, e[13] = y) : y = e[13];
718
+ const p = `${n.label}${n.required ? " *" : ""}`;
719
+ let c;
720
+ e[10] !== p ? (c = /* @__PURE__ */ d(_, { textStyle: "label/S/medium", children: p }), e[10] = p, e[11] = c) : c = e[11];
709
721
  let f;
710
- e[14] !== o ? (f = /* @__PURE__ */ s(Zt, { ...o }), e[14] = o, e[15] = f) : f = e[15];
711
- let i;
712
- return e[16] !== u || e[17] !== y || e[18] !== f ? (i = /* @__PURE__ */ M(U, { gap: "2xs", children: [
713
- u,
714
- y,
715
- f
716
- ] }), e[16] = u, e[17] = y, e[18] = f, e[19] = i) : i = e[19], i;
722
+ e[12] !== n.description ? (f = n.description ? /* @__PURE__ */ d(_, { textStyle: "paragraph/XS/regular", color: "fg.muted", children: n.description }) : null, e[12] = n.description, e[13] = f) : f = e[13];
723
+ let g;
724
+ e[14] !== r ? (g = /* @__PURE__ */ d(tn, { ...r }), e[14] = r, e[15] = g) : g = e[15];
725
+ let o;
726
+ return e[16] !== c || e[17] !== f || e[18] !== g ? (o = /* @__PURE__ */ B(q, { gap: "2xs", children: [
727
+ c,
728
+ f,
729
+ g
730
+ ] }), e[16] = c, e[17] = f, e[18] = g, e[19] = o) : o = e[19], o;
717
731
  };
718
- function en(o) {
732
+ function rn(r) {
719
733
  return {
720
- id: o.value,
721
- name: o.label,
722
- icon: o.icon ?? void 0,
723
- color: o.color
734
+ id: r.value,
735
+ name: r.label,
736
+ icon: r.icon ?? void 0,
737
+ color: r.color
724
738
  };
725
739
  }
726
- const tn = (o) => o.type === "files" || o.type === "multi-select" ? [] : o.type === "boolean" ? !1 : "", Be = (o) => Object.fromEntries(o.map((e) => [e.id, e.defaultValue ?? tn(e)])), nn = (o, e) => o.required ? Array.isArray(e) ? e.length > 0 : typeof e == "string" ? e.trim().length > 0 : e != null : !0, De = (o) => o.filter((e) => e.editable), Me = (o, e, t) => Object.fromEntries(o.map((n) => [n.id, n.id === e ? t : n.type.kind === "enum-multi" ? [] : ""])), on = (o, e) => {
740
+ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type === "boolean" ? !1 : "", Be = (r) => Object.fromEntries(r.map((e) => [e.id, e.defaultValue ?? on(e)])), ln = (r, e) => r.required ? Array.isArray(e) ? e.length > 0 : typeof e == "string" ? e.trim().length > 0 : e != null : !0, De = (r) => r.filter((e) => e.editable), ze = (r, e, t) => Object.fromEntries(r.map((n) => [n.id, n.id === e ? t : n.type.kind === "enum-multi" ? [] : ""])), an = (r, e) => {
727
741
  const t = {
728
- id: o.id,
729
- name: o.label,
742
+ id: r.id,
743
+ name: r.label,
730
744
  description: ""
731
745
  };
732
- if (o.type.kind === "enum" || o.type.kind === "enum-multi") {
733
- const n = o.type.kind === "enum-multi";
746
+ if (r.type.kind === "enum" || r.type.kind === "enum-multi") {
747
+ const n = r.type.kind === "enum-multi";
734
748
  return {
735
749
  ...t,
736
750
  type: "selection",
737
751
  defaultValue: n ? [] : "",
738
752
  multiSelect: n,
739
753
  // The trigger shows the value alone; the attribute name is the placeholder.
740
- placeholder: o.label,
754
+ placeholder: r.label,
741
755
  clearable: !e,
742
756
  // The column already chose this value, and the create command reads it
743
757
  // from the column param — editing it here would be ignored.
744
758
  disabled: e,
745
- options: Ue(o.type).map((r) => ({
746
- id: r.value,
747
- name: r.label,
748
- icon: r.icon ?? void 0,
749
- color: r.color
759
+ options: Ue(r.type).map((a) => ({
760
+ id: a.value,
761
+ name: a.label,
762
+ icon: a.icon ?? void 0,
763
+ color: a.color
750
764
  }))
751
765
  };
752
766
  }
753
- return o.type.kind === "number" ? {
767
+ return r.type.kind === "number" ? {
754
768
  ...t,
755
769
  type: "number",
756
770
  defaultValue: 0
@@ -760,328 +774,328 @@ const tn = (o) => o.type === "files" || o.type === "multi-select" ? [] : o.type
760
774
  defaultValue: "",
761
775
  singleLine: !0
762
776
  };
763
- }, rn = (o) => {
777
+ }, sn = (r) => {
764
778
  const {
765
779
  open: e,
766
780
  columnId: t,
767
781
  columnAttributeId: n,
768
- attributes: r,
769
- config: l,
770
- onClose: d,
771
- onSubmit: b
772
- } = o, [u, y] = j({}), [f, i] = j({}), [p, x] = j(!1), [m, a] = j(""), [g, C] = j(0), D = ze(!1), I = De(r);
773
- fe(() => {
782
+ attributes: a,
783
+ config: i,
784
+ onClose: s,
785
+ onSubmit: p
786
+ } = r, [c, f] = W({}), [g, o] = W({}), [u, b] = W(!1), [h, l] = W(""), [m, x] = W(0), C = Ve(!1), w = De(a);
787
+ Se(() => {
774
788
  if (!e) {
775
- D.current = !1;
789
+ C.current = !1;
776
790
  return;
777
791
  }
778
- D.current || (D.current = !0, y(Be(l.fields)), i(Me(De(r), n, t)), a(""), C((v) => v + 1));
779
- }, [r, n, t, l.fields, e]), fe(() => {
792
+ C.current || (C.current = !0, f(Be(i.fields)), o(ze(De(a), n, t)), l(""), x((v) => v + 1));
793
+ }, [a, n, t, i.fields, e]), Se(() => {
780
794
  if (!e) return;
781
- const v = Be(l.fields), R = new Set(l.fields.map((w) => w.id));
782
- y((w) => {
783
- const h = Object.entries(w).filter(([P]) => R.has(P)), S = Object.entries(v).filter(([P]) => !(P in w));
784
- return S.length === 0 && h.length === Object.keys(w).length ? w : {
795
+ const v = Be(i.fields), k = new Set(i.fields.map((I) => I.id));
796
+ f((I) => {
797
+ const y = Object.entries(I).filter(([R]) => k.has(R)), S = Object.entries(v).filter(([R]) => !(R in I));
798
+ return S.length === 0 && y.length === Object.keys(I).length ? I : {
785
799
  ...Object.fromEntries(S),
786
- ...Object.fromEntries(h)
800
+ ...Object.fromEntries(y)
787
801
  };
788
802
  });
789
- }, [l.fields, e]), fe(() => {
803
+ }, [i.fields, e]), Se(() => {
790
804
  if (!e) return;
791
- const v = De(r), R = Me(v, n, t), w = new Set(v.map((h) => h.id));
792
- i((h) => {
793
- const S = Object.entries(h).filter(([k]) => w.has(k)), P = Object.entries(R).filter(([k]) => !(k in h));
794
- return P.length === 0 && S.length === Object.keys(h).length ? h : {
795
- ...Object.fromEntries(P),
805
+ const v = De(a), k = ze(v, n, t), I = new Set(v.map((y) => y.id));
806
+ o((y) => {
807
+ const S = Object.entries(y).filter(([G]) => I.has(G)), R = Object.entries(k).filter(([G]) => !(G in y));
808
+ return R.length === 0 && S.length === Object.keys(y).length ? y : {
809
+ ...Object.fromEntries(R),
796
810
  ...Object.fromEntries(S)
797
811
  };
798
812
  });
799
- }, [r, e, t, n]);
800
- const G = () => {
801
- p || d();
802
- }, E = l.fields.every((v) => nn(v, u[v.id])), T = async () => {
803
- if (!(!E || p)) {
804
- x(!0), a("");
813
+ }, [a, e, t, n]);
814
+ const D = () => {
815
+ u || s();
816
+ }, P = i.fields.every((v) => ln(v, c[v.id])), E = async () => {
817
+ if (!(!P || u)) {
818
+ b(!0), l("");
805
819
  try {
806
- const v = new Set(l.fields.filter((h) => h.type === "files").map((h) => h.id)), R = [...v].flatMap((h) => Array.isArray(u[h]) ? u[h] : []), w = Object.fromEntries(Object.entries(u).filter(([h]) => !v.has(h)));
807
- await b({
820
+ const v = new Set(i.fields.filter((y) => y.type === "files").map((y) => y.id)), k = [...v].flatMap((y) => Array.isArray(c[y]) ? c[y] : []), I = Object.fromEntries(Object.entries(c).filter(([y]) => !v.has(y)));
821
+ await p({
808
822
  columnId: t,
809
823
  columnAttributeId: n,
810
- values: w,
811
- attributeValues: f,
812
- files: R
813
- }), d();
824
+ values: I,
825
+ attributeValues: g,
826
+ files: k
827
+ }), s();
814
828
  } catch (v) {
815
- a(v instanceof Error ? v.message : l.labels.submitError);
829
+ l(v instanceof Error ? v.message : i.labels.submitError);
816
830
  } finally {
817
- x(!1);
831
+ b(!1);
818
832
  }
819
833
  }
820
834
  };
821
- return /* @__PURE__ */ M(te.Root, { open: e, size: "lg", scrollBehavior: "inside", onOpenChange: (v) => !v.open && G(), children: [
822
- /* @__PURE__ */ s(te.Backdrop, {}),
823
- /* @__PURE__ */ s(te.Positioner, { children: /* @__PURE__ */ M(te.Content, { maxH: "calc(100% - 48px)", children: [
824
- /* @__PURE__ */ M(te.Header, { children: [
825
- /* @__PURE__ */ s($, { textStyle: "heading/M/semibold", children: l.title }),
826
- /* @__PURE__ */ s(te.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(at, { size: "sm", disabled: p }) })
835
+ return /* @__PURE__ */ B(ne.Root, { open: e, size: "lg", scrollBehavior: "inside", onOpenChange: (v) => !v.open && D(), children: [
836
+ /* @__PURE__ */ d(ne.Backdrop, {}),
837
+ /* @__PURE__ */ d(ne.Positioner, { children: /* @__PURE__ */ B(ne.Content, { maxH: "calc(100% - 48px)", children: [
838
+ /* @__PURE__ */ B(ne.Header, { children: [
839
+ /* @__PURE__ */ d(_, { textStyle: "heading/M/semibold", children: i.title }),
840
+ /* @__PURE__ */ d(ne.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ d(st, { size: "sm", disabled: u }) })
827
841
  ] }),
828
- /* @__PURE__ */ s(te.Body, { children: /* @__PURE__ */ M(U, { gap: "md", children: [
829
- l.fields.map((v) => /* @__PURE__ */ s(_t, { field: v, removeLabel: l.labels.removeFile, value: u[v.id], disabled: p, onChange: (R) => y((w) => ({
830
- ...w,
831
- [v.id]: R
832
- })) }, `${v.id}:${g.toString()}`)),
833
- I.length > 0 ? /* @__PURE__ */ M(U, { gap: "2xs", children: [
834
- /* @__PURE__ */ s($, { textStyle: "label/S/medium", children: l.labels.properties }),
835
- /* @__PURE__ */ s(Ut, { variant: "small", params: I.map((v) => on(v, v.id === n)), defaultValues: f, readOnly: p, onChange: (v, R) => i((w) => ({
836
- ...w,
837
- [v]: R
842
+ /* @__PURE__ */ d(ne.Body, { children: /* @__PURE__ */ B(q, { gap: "md", children: [
843
+ i.fields.map((v) => /* @__PURE__ */ d(nn, { field: v, removeLabel: i.labels.removeFile, value: c[v.id], disabled: u, onChange: (k) => f((I) => ({
844
+ ...I,
845
+ [v.id]: k
846
+ })) }, `${v.id}:${m.toString()}`)),
847
+ w.length > 0 ? /* @__PURE__ */ B(q, { gap: "2xs", children: [
848
+ /* @__PURE__ */ d(_, { textStyle: "label/S/medium", children: i.labels.properties }),
849
+ /* @__PURE__ */ d(Ft, { variant: "small", params: w.map((v) => an(v, v.id === n)), defaultValues: g, readOnly: u, onChange: (v, k) => o((I) => ({
850
+ ...I,
851
+ [v]: k
838
852
  })) })
839
853
  ] }) : null,
840
- m ? /* @__PURE__ */ s($, { textStyle: "paragraph/S/regular", color: "fg.error", children: m }) : null
854
+ h ? /* @__PURE__ */ d(_, { textStyle: "paragraph/S/regular", color: "fg.error", children: h }) : null
841
855
  ] }) }),
842
- /* @__PURE__ */ s(te.Footer, { justifyContent: "end", children: /* @__PURE__ */ M(X, { gap: "2", children: [
843
- /* @__PURE__ */ s(he, { size: "sm", variant: "ghost", disabled: p, onClick: G, children: l.labels.cancel }),
844
- /* @__PURE__ */ s(he, { size: "sm", variant: "primary", disabled: !E, loading: p, onClick: () => {
845
- T();
846
- }, children: l.submitLabel })
856
+ /* @__PURE__ */ d(ne.Footer, { justifyContent: "end", children: /* @__PURE__ */ B(X, { gap: "2", children: [
857
+ /* @__PURE__ */ d(me, { size: "sm", variant: "ghost", disabled: u, onClick: D, children: i.labels.cancel }),
858
+ /* @__PURE__ */ d(me, { size: "sm", variant: "primary", disabled: !P, loading: u, onClick: () => {
859
+ E();
860
+ }, children: i.submitLabel })
847
861
  ] }) })
848
862
  ] }) })
849
863
  ] });
850
- }, ln = (o) => {
864
+ }, dn = (r) => {
851
865
  const {
852
866
  settings: e,
853
867
  visibleRows: t,
854
868
  grouped: n,
855
- attributes: r,
856
- onRowClick: l,
857
- onAttributeChange: d,
858
- onReorder: b,
859
- getRowContextMenuActions: u
860
- } = o, y = e.ordering.attributeId === Ie, f = e.displayProperties.filter((a) => a !== "id"), i = (a, g) => {
861
- const C = Ve(r, a), D = C ? $e(C.type, g) : void 0;
869
+ attributes: a,
870
+ onRowClick: i,
871
+ onAttributeChange: s,
872
+ onReorder: p,
873
+ getRowContextMenuActions: c
874
+ } = r, f = e.ordering.attributeId === Ie, g = e.displayProperties.filter((l) => l !== "id"), o = (l, m) => {
875
+ const x = Le(a, l), C = x ? _e(x.type, m) : void 0;
862
876
  return {
863
- statusColorPalette: D?.color,
864
- statusIcon: ye(D?.icon)
877
+ statusColorPalette: C?.color,
878
+ statusIcon: be(C?.icon)
865
879
  };
866
- }, p = (a) => {
867
- const g = a.attributes.status;
868
- return typeof g != "string" ? {} : i("status", g);
869
- }, x = (a, g) => {
870
- const C = typeof a.attributes.id == "string" ? a.attributes.id : void 0;
880
+ }, u = (l) => {
881
+ const m = l.attributes.status;
882
+ return typeof m != "string" ? {} : o("status", m);
883
+ }, b = (l, m) => {
884
+ const x = typeof l.attributes.id == "string" ? l.attributes.id : void 0;
871
885
  return {
872
- id: a.id,
873
- eyebrow: C && C !== a.title ? C : void 0,
874
- title: a.title,
875
- ...p(a),
876
- badges: Le(a, r, f),
877
- customSlots: Ke(a, r, f),
878
- contextMenuActions: u?.(a),
879
- onClick: () => l?.(a),
880
- onBadgeChange: d ? (D, I) => d(a.id, D, I) : void 0,
881
- draggable: !!(d || b),
882
- onDropRow: y && (d || b) ? (D) => {
883
- const I = Ye(e.columnGrouping, g);
884
- I && e.columnGrouping !== Z && d && d(D, e.columnGrouping, I), e.rowGrouping !== Z && g?.rowKey && d && d(D, e.rowGrouping, g.rowKey), b?.(D, a.id);
886
+ id: l.id,
887
+ eyebrow: x && x !== l.title ? x : void 0,
888
+ title: l.title,
889
+ ...u(l),
890
+ badges: Ke(l, a, g),
891
+ customSlots: Me(l, a, g),
892
+ contextMenuActions: c?.(l),
893
+ onClick: () => i?.(l),
894
+ onBadgeChange: s ? (C, w) => s(l.id, C, w) : void 0,
895
+ draggable: !!(s || p),
896
+ onDropRow: f && (s || p) ? (C) => {
897
+ const w = Ye(e.columnGrouping, m);
898
+ w && e.columnGrouping !== Z && s && s(C, e.columnGrouping, w), e.rowGrouping !== Z && m?.rowKey && s && s(C, e.rowGrouping, m.rowKey), p?.(C, l.id);
885
899
  } : void 0
886
900
  };
887
- }, m = (a, g) => {
888
- const C = g ? e.rowGrouping : e.columnGrouping;
901
+ }, h = (l, m) => {
902
+ const x = m ? e.rowGrouping : e.columnGrouping;
889
903
  return {
890
- id: g ? `group::${g.columnKey}::${a.key}` : `group::${a.key}`,
891
- title: a.label,
904
+ id: m ? `group::${m.columnKey}::${l.key}` : `group::${l.key}`,
905
+ title: l.label,
892
906
  isGroup: !0,
893
- countBadge: a.rows.length,
894
- ...i(C, a.key),
895
- onDropRow: d && e.columnGrouping !== Z ? (D) => {
896
- const I = g?.columnKey ?? a.key;
897
- d(D, e.columnGrouping, I), e.rowGrouping !== Z && g && d(D, e.rowGrouping, a.key);
907
+ countBadge: l.rows.length,
908
+ ...o(x, l.key),
909
+ onDropRow: s && e.columnGrouping !== Z ? (C) => {
910
+ const w = m?.columnKey ?? l.key;
911
+ s(C, e.columnGrouping, w), e.rowGrouping !== Z && m && s(C, e.rowGrouping, l.key);
898
912
  } : void 0,
899
- children: me(a.rows, e.ordering, r).map((D) => x(D, {
900
- columnKey: g?.columnKey ?? a.key,
901
- rowKey: g ? a.key : void 0
913
+ children: ge(l.rows, e.ordering, a).map((C) => b(C, {
914
+ columnKey: m?.columnKey ?? l.key,
915
+ rowKey: m ? l.key : void 0
902
916
  }))
903
917
  };
904
918
  };
905
- return e.columnGrouping === Z ? me(t, e.ordering, r).map((a) => x(a)) : n.map((a) => a.subgroups.length > 0 ? {
906
- id: `group::${a.key}`,
907
- title: a.label,
919
+ return e.columnGrouping === Z ? ge(t, e.ordering, a).map((l) => b(l)) : n.map((l) => l.subgroups.length > 0 ? {
920
+ id: `group::${l.key}`,
921
+ title: l.label,
908
922
  isGroup: !0,
909
- countBadge: a.rows.length,
910
- ...i(e.columnGrouping, a.key),
911
- onDropRow: d ? (g) => d(g, e.columnGrouping, a.key) : void 0,
912
- children: a.subgroups.map((g) => m(g, {
913
- columnKey: a.key
923
+ countBadge: l.rows.length,
924
+ ...o(e.columnGrouping, l.key),
925
+ onDropRow: s ? (m) => s(m, e.columnGrouping, l.key) : void 0,
926
+ children: l.subgroups.map((m) => h(m, {
927
+ columnKey: l.key
914
928
  }))
915
- } : m(a));
916
- }, an = (o) => {
917
- const e = o.attributes.id;
918
- return typeof e == "string" && e ? e : o.id;
919
- }, In = (o) => {
920
- const e = z(59), {
929
+ } : h(l));
930
+ }, cn = (r) => {
931
+ const e = r.attributes.id;
932
+ return typeof e == "string" && e ? e : r.id;
933
+ }, Gn = (r) => {
934
+ const e = K(59), {
921
935
  rows: t,
922
936
  storageKey: n,
923
- attributes: r,
924
- selectedRowId: l,
925
- emptyState: d,
926
- emptyTitle: b,
927
- emptyDescription: u,
928
- defaultSettings: y,
929
- defaultFilters: f,
930
- defaultViews: i,
931
- defaultActiveViewId: p,
932
- onRowClick: x,
933
- onAttributeChange: m,
934
- onReorder: a,
935
- createRow: g,
936
- onCreateRow: C,
937
- onColumnAction: D,
938
- getBoardColumnConfig: I,
939
- getRowContextMenuActions: G,
940
- hideToolbar: E,
941
- toolbarLeading: T
942
- } = o, v = l === void 0 ? null : l, R = b === void 0 ? "No rows found" : b, w = u === void 0 ? "Try changing filters or display settings." : u, h = E === void 0 ? !1 : E, S = Je(r), [P, k] = j(null);
943
- let A;
944
- e[0] !== p || e[1] !== f || e[2] !== y || e[3] !== i ? (A = {
945
- settings: y,
946
- filters: f,
947
- views: i,
948
- activeViewId: p
949
- }, e[0] = p, e[1] = f, e[2] = y, e[3] = i, e[4] = A) : A = e[4];
950
- const O = A, c = ge(n, sn, O), B = ge(n, dn, O), L = ge(n, cn, O), se = ge(n, un, O);
951
- let W, _;
952
- if (e[5] !== S || e[6] !== B || e[7] !== I || e[8] !== G || e[9] !== m || e[10] !== a || e[11] !== x || e[12] !== t || e[13] !== c) {
953
- const ae = Qe(t, B, S), de = Ze(c.columnGrouping, S, B), re = _e(ae, {
937
+ attributes: a,
938
+ selectedRowId: i,
939
+ emptyState: s,
940
+ emptyTitle: p,
941
+ emptyDescription: c,
942
+ defaultSettings: f,
943
+ defaultFilters: g,
944
+ defaultViews: o,
945
+ defaultActiveViewId: u,
946
+ onRowClick: b,
947
+ onAttributeChange: h,
948
+ onReorder: l,
949
+ createRow: m,
950
+ onCreateRow: x,
951
+ onColumnAction: C,
952
+ getBoardColumnConfig: w,
953
+ getRowContextMenuActions: D,
954
+ hideToolbar: P,
955
+ toolbarLeading: E
956
+ } = r, v = i === void 0 ? null : i, k = p === void 0 ? "No rows found" : p, I = c === void 0 ? "Try changing filters or display settings." : c, y = P === void 0 ? !1 : P, S = Je(a), [R, G] = W(null);
957
+ let $;
958
+ e[0] !== u || e[1] !== g || e[2] !== f || e[3] !== o ? ($ = {
959
+ settings: f,
960
+ filters: g,
961
+ views: o,
962
+ activeViewId: u
963
+ }, e[0] = u, e[1] = g, e[2] = f, e[3] = o, e[4] = $) : $ = e[4];
964
+ const O = $, T = pe(n, un, O), A = pe(n, pn, O), z = pe(n, gn, O), U = pe(n, fn, O);
965
+ let V, ee;
966
+ if (e[5] !== S || e[6] !== A || e[7] !== w || e[8] !== D || e[9] !== h || e[10] !== l || e[11] !== b || e[12] !== t || e[13] !== T) {
967
+ const se = Qe(t, A, S), de = Ze(T.columnGrouping, S, A), le = et(se, {
954
968
  attributes: S,
955
- columnGrouping: c.columnGrouping,
956
- rowGrouping: c.rowGrouping,
969
+ columnGrouping: T.columnGrouping,
970
+ rowGrouping: T.rowGrouping,
957
971
  knownColumnKeys: de
958
972
  });
959
- W = ln({
960
- settings: c,
961
- visibleRows: ae,
962
- grouped: re,
973
+ V = dn({
974
+ settings: T,
975
+ visibleRows: se,
976
+ grouped: le,
963
977
  attributes: S,
964
- onRowClick: x,
965
- onAttributeChange: m,
966
- onReorder: a,
967
- getRowContextMenuActions: G
978
+ onRowClick: b,
979
+ onAttributeChange: h,
980
+ onReorder: l,
981
+ getRowContextMenuActions: D
968
982
  });
969
- const Ge = c.displayProperties.filter(pn), Re = (J) => J.map((V) => ({
970
- id: V.id,
971
- contextMenuActions: G?.(V),
983
+ const Ge = T.displayProperties.filter(mn), Re = (J) => J.map((L) => ({
984
+ id: L.id,
985
+ contextMenuActions: D?.(L),
972
986
  cardProps: {
973
- eyebrow: c.displayProperties.includes("id") ? an(V) : void 0,
974
- title: V.title,
975
- badges: Le(V, S, Ge),
976
- customSlots: Ke(V, S, Ge),
977
- onBadgeChange: m ? (Ce, pe) => m(V.id, Ce, pe) : void 0,
978
- onClick: () => x?.(V)
987
+ eyebrow: T.displayProperties.includes("id") ? cn(L) : void 0,
988
+ title: L.title,
989
+ badges: Ke(L, S, Ge),
990
+ customSlots: Me(L, S, Ge),
991
+ onBadgeChange: h ? (xe, ue) => h(L.id, xe, ue) : void 0,
992
+ onClick: () => b?.(L)
979
993
  }
980
- })), Pe = Ve(S, c.columnGrouping);
981
- _ = re.map((J) => {
982
- const V = I?.(J.key) ?? {}, Ce = me(J.rows, c.ordering, S), pe = Pe ? $e(Pe.type, J.key) : void 0, Xe = J.subgroups.length > 0 ? J.subgroups.map((Se) => ({
983
- key: Se.key,
984
- label: Se.label,
985
- items: Re(me(Se.rows, c.ordering, S))
994
+ })), Te = Le(S, T.columnGrouping);
995
+ ee = le.map((J) => {
996
+ const L = w?.(J.key) ?? {}, xe = ge(J.rows, T.ordering, S), ue = Te ? _e(Te.type, J.key) : void 0, qe = J.subgroups.length > 0 ? J.subgroups.map((Ce) => ({
997
+ key: Ce.key,
998
+ label: Ce.label,
999
+ items: Re(ge(Ce.rows, T.ordering, S))
986
1000
  })) : void 0;
987
1001
  return {
988
1002
  id: J.key,
989
1003
  label: J.label,
990
- color: V.color ?? pe?.color,
991
- icon: pe?.icon ?? "circle",
992
- canDragIn: V.canDragIn ?? !1,
993
- canDragOut: V.canDragOut ?? !1,
994
- canCreate: V.canCreate ?? !1,
995
- actions: V.actions ?? [],
996
- items: Re(Ce),
997
- groups: Xe
1004
+ color: L.color ?? ue?.color,
1005
+ icon: ue?.icon ?? "circle",
1006
+ canDragIn: L.canDragIn ?? !1,
1007
+ canDragOut: L.canDragOut ?? !1,
1008
+ canCreate: L.canCreate ?? !1,
1009
+ actions: L.actions ?? [],
1010
+ items: Re(xe),
1011
+ groups: qe
998
1012
  };
999
- }), e[5] = S, e[6] = B, e[7] = I, e[8] = G, e[9] = m, e[10] = a, e[11] = x, e[12] = t, e[13] = c, e[14] = W, e[15] = _;
1013
+ }), e[5] = S, e[6] = A, e[7] = w, e[8] = D, e[9] = h, e[10] = l, e[11] = b, e[12] = t, e[13] = T, e[14] = V, e[15] = ee;
1000
1014
  } else
1001
- W = e[14], _ = e[15];
1002
- const oe = _;
1003
- let ee;
1004
- e[16] !== m || e[17] !== a || e[18] !== c ? (ee = async (ae, de, re) => {
1005
- await Rt({
1006
- settings: c,
1007
- rowId: ae,
1015
+ V = e[14], ee = e[15];
1016
+ const oe = ee;
1017
+ let te;
1018
+ e[16] !== h || e[17] !== l || e[18] !== T ? (te = async (se, de, le) => {
1019
+ await It({
1020
+ settings: T,
1021
+ rowId: se,
1008
1022
  targetColumnId: de,
1009
- targetGroupKey: re?.targetGroupKey,
1010
- beforeItemId: re?.beforeItemId,
1011
- onAttributeChange: m,
1012
- onReorder: a
1023
+ targetGroupKey: le?.targetGroupKey,
1024
+ beforeItemId: le?.beforeItemId,
1025
+ onAttributeChange: h,
1026
+ onReorder: l
1013
1027
  });
1014
- }, e[16] = m, e[17] = a, e[18] = c, e[19] = ee) : ee = e[19];
1015
- const H = ee;
1028
+ }, e[16] = h, e[17] = l, e[18] = T, e[19] = te) : te = e[19];
1029
+ const H = te;
1016
1030
  let Y;
1017
- e[20] !== m || e[21] !== a || e[22] !== c ? (Y = async (ae, de, re) => {
1018
- await Pt({
1019
- settings: c,
1020
- rowId: ae,
1031
+ e[20] !== h || e[21] !== l || e[22] !== T ? (Y = async (se, de, le) => {
1032
+ await wt({
1033
+ settings: T,
1034
+ rowId: se,
1021
1035
  targetGroupKey: de,
1022
- beforeItemId: re?.beforeItemId,
1023
- onAttributeChange: m,
1024
- onReorder: a
1036
+ beforeItemId: le?.beforeItemId,
1037
+ onAttributeChange: h,
1038
+ onReorder: l
1025
1039
  });
1026
- }, e[20] = m, e[21] = a, e[22] = c, e[23] = Y) : Y = e[23];
1027
- const K = Y;
1028
- let F;
1029
- e[24] !== S || e[25] !== p || e[26] !== f || e[27] !== y || e[28] !== i || e[29] !== h || e[30] !== t || e[31] !== n || e[32] !== T ? (F = h ? null : /* @__PURE__ */ s(et, { rows: t, storageKey: n, attributes: S, defaultSettings: y, defaultFilters: f, defaultViews: i, defaultActiveViewId: p, leading: T }), e[24] = S, e[25] = p, e[26] = f, e[27] = y, e[28] = i, e[29] = h, e[30] = t, e[31] = n, e[32] = T, e[33] = F) : F = e[33];
1030
- const xe = g && C ? k : void 0, ve = `${c.columnGrouping}:${c.rowGrouping}`;
1031
- let le;
1032
- e[34] !== oe || e[35] !== w || e[36] !== d || e[37] !== R || e[38] !== L || e[39] !== H || e[40] !== K || e[41] !== W || e[42] !== D || e[43] !== v || e[44] !== se || e[45] !== c.viewMode || e[46] !== ve || e[47] !== xe ? (le = /* @__PURE__ */ s(Xt, { viewMode: c.viewMode, boardColumns: oe, listItems: W, listExpandedGroups: L, selectedRowId: v, emptyState: d, emptyTitle: R, emptyDescription: w, onBoardMoveItem: H, onBoardMoveToGroup: K, onCreateRow: xe, onColumnAction: D, onListExpandedGroupChange: se, listKey: ve }), e[34] = oe, e[35] = w, e[36] = d, e[37] = R, e[38] = L, e[39] = H, e[40] = K, e[41] = W, e[42] = D, e[43] = v, e[44] = se, e[45] = c.viewMode, e[46] = ve, e[47] = xe, e[48] = le) : le = e[48];
1040
+ }, e[20] = h, e[21] = l, e[22] = T, e[23] = Y) : Y = e[23];
1041
+ const M = Y;
1042
+ let j;
1043
+ e[24] !== S || e[25] !== u || e[26] !== g || e[27] !== f || e[28] !== o || e[29] !== y || e[30] !== t || e[31] !== n || e[32] !== E ? (j = y ? null : /* @__PURE__ */ d(tt, { rows: t, storageKey: n, attributes: S, defaultSettings: f, defaultFilters: g, defaultViews: o, defaultActiveViewId: u, leading: E }), e[24] = S, e[25] = u, e[26] = g, e[27] = f, e[28] = o, e[29] = y, e[30] = t, e[31] = n, e[32] = E, e[33] = j) : j = e[33];
1044
+ const ye = m && x ? G : void 0, ve = `${T.columnGrouping}:${T.rowGrouping}`;
1045
+ let ae;
1046
+ e[34] !== oe || e[35] !== I || e[36] !== s || e[37] !== k || e[38] !== z || e[39] !== H || e[40] !== M || e[41] !== V || e[42] !== C || e[43] !== v || e[44] !== U || e[45] !== T.viewMode || e[46] !== ve || e[47] !== ye ? (ae = /* @__PURE__ */ d(Ht, { viewMode: T.viewMode, boardColumns: oe, listItems: V, listExpandedGroups: z, selectedRowId: v, emptyState: s, emptyTitle: k, emptyDescription: I, onBoardMoveItem: H, onBoardMoveToGroup: M, onCreateRow: ye, onColumnAction: C, onListExpandedGroupChange: U, listKey: ve }), e[34] = oe, e[35] = I, e[36] = s, e[37] = k, e[38] = z, e[39] = H, e[40] = M, e[41] = V, e[42] = C, e[43] = v, e[44] = U, e[45] = T.viewMode, e[46] = ve, e[47] = ye, e[48] = ae) : ae = e[48];
1033
1047
  let ie;
1034
- e[49] !== S || e[50] !== P || e[51] !== g || e[52] !== C || e[53] !== c.columnGrouping ? (ie = g && C && P ? /* @__PURE__ */ s(rn, { open: !0, columnId: P, columnAttributeId: c.columnGrouping === Z ? void 0 : c.columnGrouping, attributes: S, config: g, onClose: () => k(null), onSubmit: C }) : null, e[49] = S, e[50] = P, e[51] = g, e[52] = C, e[53] = c.columnGrouping, e[54] = ie) : ie = e[54];
1035
- let ue;
1036
- return e[55] !== le || e[56] !== ie || e[57] !== F ? (ue = /* @__PURE__ */ M(U, { "data-testid": "kanban-renderer", height: "100%", minH: "0", gap: "0", background: "bg", overflow: "hidden", children: [
1037
- F,
1038
- le,
1048
+ e[49] !== S || e[50] !== R || e[51] !== m || e[52] !== x || e[53] !== T.columnGrouping ? (ie = m && x && R ? /* @__PURE__ */ d(sn, { open: !0, columnId: R, columnAttributeId: T.columnGrouping === Z ? void 0 : T.columnGrouping, attributes: S, config: m, onClose: () => G(null), onSubmit: x }) : null, e[49] = S, e[50] = R, e[51] = m, e[52] = x, e[53] = T.columnGrouping, e[54] = ie) : ie = e[54];
1049
+ let ce;
1050
+ return e[55] !== ae || e[56] !== ie || e[57] !== j ? (ce = /* @__PURE__ */ B(q, { "data-testid": "kanban-renderer", height: "100%", minH: "0", gap: "0", background: "bg", overflow: "hidden", children: [
1051
+ j,
1052
+ ae,
1039
1053
  ie
1040
- ] }), e[55] = le, e[56] = ie, e[57] = F, e[58] = ue) : ue = e[58], ue;
1054
+ ] }), e[55] = ae, e[56] = ie, e[57] = j, e[58] = ce) : ce = e[58], ce;
1041
1055
  };
1042
- function sn(o) {
1043
- return o.settings;
1056
+ function un(r) {
1057
+ return r.settings;
1044
1058
  }
1045
- function dn(o) {
1046
- return o.filters;
1059
+ function pn(r) {
1060
+ return r.filters;
1047
1061
  }
1048
- function cn(o) {
1049
- return o.expandedGroups;
1062
+ function gn(r) {
1063
+ return r.expandedGroups;
1050
1064
  }
1051
- function un(o) {
1052
- return o.setExpandedGroup;
1065
+ function fn(r) {
1066
+ return r.setExpandedGroup;
1053
1067
  }
1054
- function pn(o) {
1055
- return o !== "id";
1068
+ function mn(r) {
1069
+ return r !== "id";
1056
1070
  }
1057
1071
  export {
1058
- Gn as DisplayMenu,
1059
- Rn as FilterMenu,
1060
- In as KanbanRenderer,
1061
- Vt as KanbanRendererBoard,
1072
+ En as DisplayMenu,
1073
+ Pn as FilterMenu,
1074
+ Gn as KanbanRenderer,
1075
+ $t as KanbanRendererBoard,
1062
1076
  Fe as KanbanRendererCard,
1063
- rn as KanbanRendererCreateDialog,
1064
- Nt as KanbanRendererList,
1065
- et as KanbanRendererToolbar,
1077
+ sn as KanbanRendererCreateDialog,
1078
+ Vt as KanbanRendererList,
1079
+ tt as KanbanRendererToolbar,
1066
1080
  Ie as MANUAL_ORDERING,
1067
1081
  Z as NO_GROUPING,
1068
- Pn as buildDisplayPropertyOptions,
1069
- En as buildFilterCategories,
1070
- Tn as buildGroupingOptions,
1071
- An as buildOrderingOptions,
1072
- Le as collectDisplayBadges,
1073
- Ve as findAttribute,
1074
- On as getAttributeStringValues,
1075
- Bn as getAttributeValue,
1082
+ An as buildDisplayPropertyOptions,
1083
+ On as buildFilterCategories,
1084
+ $n as buildGroupingOptions,
1085
+ Bn as buildOrderingOptions,
1086
+ Ke as collectDisplayBadges,
1087
+ Le as findAttribute,
1088
+ zn as getAttributeStringValues,
1089
+ Mn as getAttributeValue,
1076
1090
  Ue as getEnumOptions,
1077
- Mn as isActiveKanbanRendererViewDirty,
1078
- Kn as isAttributesSource,
1079
- Ln as isEnumOptionsSource,
1091
+ Kn as isActiveKanbanRendererViewDirty,
1092
+ Ln as isAttributesSource,
1093
+ _n as isEnumOptionsSource,
1080
1094
  Vn as renderAttributeBadge,
1081
- $n as resolveAttributeOptions,
1082
- zn as sanitizeFilters,
1083
- Wn as sanitizeSettings,
1084
- ge as useKanbanRendererStore,
1095
+ Wn as resolveAttributeOptions,
1096
+ Hn as sanitizeFilters,
1097
+ jn as sanitizeSettings,
1098
+ pe as useKanbanRendererStore,
1085
1099
  Je as useResolvedAttributes
1086
1100
  };
1087
1101
  //# sourceMappingURL=kanban-renderer.js.map