laif-ds 0.2.61 → 0.2.62

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.
@@ -1,35 +1,35 @@
1
1
  "use client";
2
- import { jsx as a, jsxs as s } from "react/jsx-runtime";
3
- import { Root as u, Content as m, Close as r, Description as f, Title as p, Trigger as x, Portal as v, Overlay as D } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
4
- import { designTokens as l } from "../design-tokens.js";
2
+ import { jsx as a, jsxs as l } from "react/jsx-runtime";
3
+ import { Root as u, Close as r, Content as f, Description as p, Title as x, Trigger as v, Portal as D, Overlay as b } from "../../node_modules/@radix-ui/react-dialog/dist/index.js";
4
+ import { designTokens as n } from "../design-tokens.js";
5
5
  import { cn as o } from "../../lib/utils.js";
6
- import b from "../../node_modules/lucide-react/dist/esm/icons/x.js";
7
- function j({
6
+ import h from "../../node_modules/lucide-react/dist/esm/icons/x.js";
7
+ function O({
8
8
  ...t
9
9
  }) {
10
10
  return /* @__PURE__ */ a(u, { "data-slot": "dialog", ...t });
11
11
  }
12
- function O({
12
+ function P({
13
13
  ...t
14
14
  }) {
15
- return /* @__PURE__ */ a(x, { "data-slot": "dialog-trigger", ...t });
15
+ return /* @__PURE__ */ a(v, { "data-slot": "dialog-trigger", ...t });
16
16
  }
17
- function h({
17
+ function w({
18
18
  ...t
19
19
  }) {
20
- return /* @__PURE__ */ a(v, { "data-slot": "dialog-portal", ...t });
20
+ return /* @__PURE__ */ a(D, { "data-slot": "dialog-portal", ...t });
21
21
  }
22
- function P({
22
+ function _({
23
23
  ...t
24
24
  }) {
25
25
  return /* @__PURE__ */ a(r, { "data-slot": "dialog-close", ...t });
26
26
  }
27
- function w({
27
+ function y({
28
28
  className: t,
29
29
  ...e
30
30
  }) {
31
31
  return /* @__PURE__ */ a(
32
- D,
32
+ b,
33
33
  {
34
34
  "data-slot": "dialog-overlay",
35
35
  className: o(
@@ -40,47 +40,48 @@ function w({
40
40
  }
41
41
  );
42
42
  }
43
- function _({
43
+ function R({
44
44
  className: t,
45
45
  children: e,
46
46
  size: i = "default",
47
47
  closeOnOverlay: d = !0,
48
- ...g
48
+ showCloseButton: g = !0,
49
+ ...c
49
50
  }) {
50
- const c = {
51
+ const m = {
51
52
  sm: "sm:max-w-sm",
52
53
  default: "sm:max-w-lg",
53
54
  lg: "sm:max-w-2xl",
54
55
  xl: "sm:max-w-3xl"
55
56
  }[i];
56
- return /* @__PURE__ */ s(h, { "data-slot": "dialog-portal", children: [
57
- /* @__PURE__ */ a(w, {}),
58
- /* @__PURE__ */ s(
59
- m,
57
+ return /* @__PURE__ */ l(w, { "data-slot": "dialog-portal", children: [
58
+ /* @__PURE__ */ a(y, {}),
59
+ /* @__PURE__ */ l(
60
+ f,
60
61
  {
61
62
  "data-slot": "dialog-content",
62
- onPointerDownOutside: (n) => {
63
- n.target?.closest("[data-command-portal]") && n.preventDefault(), d || n.preventDefault();
63
+ onPointerDownOutside: (s) => {
64
+ s.target?.closest("[data-command-portal]") && s.preventDefault(), d || s.preventDefault();
64
65
  },
65
66
  className: o(
66
67
  "bg-d-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 border-d-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200",
67
- l.radius.lg,
68
- c,
68
+ n.radius.lg,
69
+ m,
69
70
  t
70
71
  ),
71
- ...g,
72
+ ...c,
72
73
  children: [
73
74
  e,
74
- /* @__PURE__ */ s(
75
+ g && /* @__PURE__ */ l(
75
76
  r,
76
77
  {
77
78
  className: o(
78
79
  "ring-offset-d-background data-[state=open]:bg-d-accent data-[state=open]:text-d-secondary-foreground bg-d-muted/30 hover:bg-d-muted/60 absolute top-4 right-4 cursor-pointer p-1.5 transition-all hover:opacity-100 disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
79
- l.focusRing,
80
- l.radius.default
80
+ n.focusRing,
81
+ n.radius.default
81
82
  ),
82
83
  children: [
83
- /* @__PURE__ */ a(b, {}),
84
+ /* @__PURE__ */ a(h, {}),
84
85
  /* @__PURE__ */ a("span", { className: "sr-only", children: "Close" })
85
86
  ]
86
87
  }
@@ -90,7 +91,7 @@ function _({
90
91
  )
91
92
  ] });
92
93
  }
93
- function R({ className: t, ...e }) {
94
+ function F({ className: t, ...e }) {
94
95
  return /* @__PURE__ */ a(
95
96
  "div",
96
97
  {
@@ -100,7 +101,7 @@ function R({ className: t, ...e }) {
100
101
  }
101
102
  );
102
103
  }
103
- function F({ className: t, ...e }) {
104
+ function H({ className: t, ...e }) {
104
105
  return /* @__PURE__ */ a(
105
106
  "div",
106
107
  {
@@ -113,41 +114,44 @@ function F({ className: t, ...e }) {
113
114
  }
114
115
  );
115
116
  }
116
- function H({
117
+ function X({
117
118
  className: t,
118
119
  ...e
119
120
  }) {
120
121
  return /* @__PURE__ */ a(
121
- p,
122
+ x,
122
123
  {
123
124
  "data-slot": "dialog-title",
124
- className: o("text-lg leading-none font-semibold", t),
125
+ className: o(
126
+ "text-start text-lg leading-none font-semibold sm:max-w-[calc(100%-2rem)]",
127
+ t
128
+ ),
125
129
  ...e
126
130
  }
127
131
  );
128
132
  }
129
- function X({
133
+ function q({
130
134
  className: t,
131
135
  ...e
132
136
  }) {
133
137
  return /* @__PURE__ */ a(
134
- f,
138
+ p,
135
139
  {
136
140
  "data-slot": "dialog-description",
137
- className: o("text-d-secondary-foreground text-sm", t),
141
+ className: o("text-d-muted-foreground text-start text-sm", t),
138
142
  ...e
139
143
  }
140
144
  );
141
145
  }
142
146
  export {
143
- j as Dialog,
144
- P as DialogClose,
145
- _ as DialogContent,
146
- X as DialogDescription,
147
- F as DialogFooter,
148
- R as DialogHeader,
149
- w as DialogOverlay,
150
- h as DialogPortal,
151
- H as DialogTitle,
152
- O as DialogTrigger
147
+ O as Dialog,
148
+ _ as DialogClose,
149
+ R as DialogContent,
150
+ q as DialogDescription,
151
+ H as DialogFooter,
152
+ F as DialogHeader,
153
+ y as DialogOverlay,
154
+ w as DialogPortal,
155
+ X as DialogTitle,
156
+ P as DialogTrigger
153
157
  };
@@ -1,24 +1,24 @@
1
1
  "use client";
2
- import { jsxs as p, jsx as o, Fragment as T } from "react/jsx-runtime";
2
+ import { jsxs as f, jsx as o, Fragment as T } from "react/jsx-runtime";
3
3
  import { useState as P } from "react";
4
4
  import { AppSelect as C } from "../../../app-select.js";
5
- import { Button as x } from "../../../button.js";
6
- import { Popover as A, PopoverTrigger as G, PopoverContent as L } from "../../../popover.js";
7
- import { errorSelectClass as O, getListMultiSelectFilterOptions as k, getListSingleSelectFilterOptions as V, getDateTimeFilterOptions as K, getDateFilterOptions as q, getBooleanFilterOptions as B, getNumberFilterOptions as E, getStringFilterOptions as M } from "../data-table-constants.js";
5
+ import { Button as h } from "../../../button.js";
6
+ import { Popover as A, PopoverTrigger as G, PopoverContent as S } from "../../../popover.js";
7
+ import { errorSelectClass as D, getListMultiSelectFilterOptions as k, getListSingleSelectFilterOptions as V, getDateTimeFilterOptions as K, getDateFilterOptions as q, getBooleanFilterOptions as B, getNumberFilterOptions as E, getStringFilterOptions as M } from "../data-table-constants.js";
8
8
  import { FilterValueInput as $ } from "./data-table-filter-inputs.js";
9
9
  import { cn as H } from "../../../../../lib/utils.js";
10
- function u() {
10
+ function m() {
11
11
  return Math.random().toString(36).substr(2, 9);
12
12
  }
13
13
  function R({
14
14
  onDelete: s,
15
15
  onDuplicate: e,
16
- type: d,
16
+ type: u,
17
17
  i18n: i
18
18
  }) {
19
- return /* @__PURE__ */ p(A, { children: [
19
+ return /* @__PURE__ */ f(A, { children: [
20
20
  /* @__PURE__ */ o(G, { asChild: !0, children: /* @__PURE__ */ o(
21
- x,
21
+ h,
22
22
  {
23
23
  variant: "ghost",
24
24
  iconLeft: "Ellipsis",
@@ -26,27 +26,27 @@ function R({
26
26
  className: "size-7"
27
27
  }
28
28
  ) }),
29
- /* @__PURE__ */ p(L, { side: "right", className: "flex w-auto flex-col p-1", children: [
29
+ /* @__PURE__ */ f(S, { side: "right", className: "flex w-auto flex-col p-1", children: [
30
30
  /* @__PURE__ */ o(
31
- x,
31
+ h,
32
32
  {
33
33
  className: "justify-start text-xs",
34
34
  variant: "ghost-destructive",
35
35
  iconLeft: "Trash2",
36
36
  size: "sm",
37
37
  onClick: s,
38
- children: d === "condition" ? i.filters.deleteCondition : i.filters.deleteGroup
38
+ children: u === "condition" ? i.filters.deleteCondition : i.filters.deleteGroup
39
39
  }
40
40
  ),
41
41
  /* @__PURE__ */ o(
42
- x,
42
+ h,
43
43
  {
44
44
  className: "justify-start text-xs",
45
45
  variant: "ghost",
46
46
  iconLeft: "Copy",
47
47
  size: "sm",
48
48
  onClick: e,
49
- children: d === "condition" ? i.filters.duplicateCondition : i.filters.duplicateGroup
49
+ children: u === "condition" ? i.filters.duplicateCondition : i.filters.duplicateGroup
50
50
  }
51
51
  )
52
52
  ] })
@@ -75,78 +75,78 @@ function z(s, e) {
75
75
  function J({
76
76
  condition: s,
77
77
  columns: e,
78
- onUpdate: d,
78
+ onUpdate: u,
79
79
  onRemove: i,
80
80
  onDuplicate: w,
81
- showLogicalOperator: h = !1,
82
- logicalOperator: f = "AND",
81
+ showLogicalOperator: x = !1,
82
+ logicalOperator: p = "AND",
83
83
  onLogicalOperatorChange: a,
84
84
  isFirstInGroup: g = !1,
85
85
  isSecondInGroup: y = !1,
86
86
  i18n: c
87
87
  }) {
88
- const v = e.find((r) => r.id === s.columnId), D = v ? z(
88
+ const v = e.find((r) => r.id === s.columnId), O = v ? z(
89
89
  v.column.columnDef.meta?.type,
90
90
  c
91
- ) : [], F = () => {
91
+ ) : [], b = () => {
92
92
  if (!v) return null;
93
- const r = v.column.columnDef.meta?.type, m = s.value === void 0 || typeof s.value == "string" && s.value === "" || r === "list_multi_select" && !Array.isArray(s.value);
93
+ const r = v.column.columnDef.meta?.type, d = s.value === void 0 || typeof s.value == "string" && s.value === "" || r === "list_multi_select" && !Array.isArray(s.value);
94
94
  return /* @__PURE__ */ o(
95
95
  $,
96
96
  {
97
97
  columnType: r,
98
98
  value: s.value,
99
- onChange: (N) => d({ ...s, value: N }),
99
+ onChange: (N) => u({ ...s, value: N }),
100
100
  listOptions: v.column.columnDef.meta?.listOptions ?? [],
101
101
  placeholder: c.filters.value,
102
102
  operator: s.operator,
103
103
  size: "sm",
104
104
  className: r === "list_single_select" || r === "list_multi_select" ? "w-52" : "",
105
- hasError: m
105
+ hasError: d
106
106
  }
107
107
  );
108
108
  };
109
- return /* @__PURE__ */ p("div", { className: "flex min-w-0 flex-1 items-center gap-2 rounded-md", children: [
110
- /* @__PURE__ */ p("div", { className: "flex min-w-0 flex-1 items-center gap-2 overflow-x-auto overflow-y-clip", children: [
111
- h && a && /* @__PURE__ */ o(T, { children: y ? /* @__PURE__ */ o(
109
+ return /* @__PURE__ */ f("div", { className: "flex min-w-0 flex-1 items-center gap-2 rounded-md", children: [
110
+ /* @__PURE__ */ f("div", { className: "flex min-w-0 flex-1 items-center gap-2 overflow-x-auto overflow-y-clip", children: [
111
+ x && a && /* @__PURE__ */ o(T, { children: y ? /* @__PURE__ */ o(
112
112
  C,
113
113
  {
114
114
  size: "sm",
115
- className: `w-[72px] min-w-[72px] ${f === void 0 ? O : ""}`,
115
+ className: `w-[72px] min-w-[72px] ${p === void 0 ? D : ""}`,
116
116
  options: [
117
117
  { value: "AND", label: c.filters.and },
118
118
  { value: "OR", label: c.filters.or }
119
119
  ],
120
- value: f,
120
+ value: p,
121
121
  onValueChange: (r) => a(r)
122
122
  }
123
- ) : /* @__PURE__ */ o("span", { className: "text-muted-foreground w-[72px] min-w-[72px] text-right text-xs", children: f }) }),
123
+ ) : /* @__PURE__ */ o("span", { className: "text-muted-foreground w-[72px] min-w-[72px] text-right text-xs", children: p }) }),
124
124
  g && /* @__PURE__ */ o("span", { className: "text-muted-foreground w-[72px] min-w-[72px] text-right text-xs", children: c.filters.where }),
125
125
  /* @__PURE__ */ o(
126
126
  C,
127
127
  {
128
128
  size: "sm",
129
129
  placeholder: c.filters.column,
130
- className: s.columnId === void 0 || s.columnId === "" ? O : "",
130
+ className: s.columnId === void 0 || s.columnId === "" ? D : "",
131
131
  options: e.map((r) => ({
132
132
  value: r.id,
133
- label: r.column.columnDef.header?.toString() ?? ""
133
+ label: r.column.columnDef.meta?.headerLabel || (typeof r.column.columnDef.header == "string" ? r.column.columnDef.header : "") || r.id
134
134
  })),
135
135
  value: s.columnId || void 0,
136
136
  onValueChange: (r) => {
137
137
  if (r) {
138
- const m = e.find((N) => N.id === r);
139
- if (m) {
138
+ const d = e.find((N) => N.id === r);
139
+ if (d) {
140
140
  const N = z(
141
- m.column.columnDef.meta?.type,
141
+ d.column.columnDef.meta?.type,
142
142
  c
143
143
  )[0]?.value;
144
- d({
144
+ u({
145
145
  ...s,
146
146
  columnId: String(r),
147
- columnAccessorKey: (m.column.columnDef?.accessorKey ?? String(r)) || "",
148
- columnLabel: m.column.columnDef.header?.toString() ?? "",
149
- columnType: m.column.columnDef.meta?.type,
147
+ columnAccessorKey: (d.column.columnDef?.accessorKey ?? String(r)) || "",
148
+ columnLabel: d.column.columnDef.meta?.headerLabel || (typeof d.column.columnDef.header == "string" ? d.column.columnDef.header : "") || d.id,
149
+ columnType: d.column.columnDef.meta?.type,
150
150
  operator: String(N || "eq"),
151
151
  value: void 0
152
152
  });
@@ -160,18 +160,18 @@ function J({
160
160
  {
161
161
  size: "sm",
162
162
  placeholder: c.filters.operator,
163
- className: s.operator === void 0 ? O : "",
164
- options: D,
163
+ className: s.operator === void 0 ? D : "",
164
+ options: O,
165
165
  value: s.operator || void 0,
166
166
  onValueChange: (r) => {
167
- r && d({
167
+ r && u({
168
168
  ...s,
169
169
  operator: String(r)
170
170
  });
171
171
  }
172
172
  }
173
173
  ),
174
- F()
174
+ b()
175
175
  ] }),
176
176
  /* @__PURE__ */ o(
177
177
  R,
@@ -187,15 +187,15 @@ function J({
187
187
  function _({
188
188
  className: s,
189
189
  group: e,
190
- columns: d,
190
+ columns: u,
191
191
  onUpdate: i,
192
192
  isRoot: w = !1,
193
- depth: h,
194
- maxNestedDepth: f = 2,
193
+ depth: x,
194
+ maxNestedDepth: p = 2,
195
195
  i18n: a
196
196
  }) {
197
197
  const g = {
198
- id: u(),
198
+ id: m(),
199
199
  columnId: "",
200
200
  columnAccessorKey: "",
201
201
  columnLabel: "",
@@ -203,11 +203,11 @@ function _({
203
203
  operator: "eq",
204
204
  value: void 0
205
205
  }, y = {
206
- id: u(),
206
+ id: m(),
207
207
  logicalOperator: "AND",
208
208
  conditions: [
209
209
  {
210
- id: u(),
210
+ id: m(),
211
211
  columnId: "",
212
212
  columnAccessorKey: "",
213
213
  columnLabel: "",
@@ -227,25 +227,25 @@ function _({
227
227
  ...e,
228
228
  groups: [...e.groups || [], y]
229
229
  });
230
- }, D = (l, t) => {
230
+ }, O = (l, t) => {
231
231
  i({
232
232
  ...e,
233
233
  conditions: e.conditions.map(
234
234
  (n) => n.id === l ? t : n
235
235
  )
236
236
  });
237
- }, F = (l) => {
237
+ }, b = (l) => {
238
238
  const t = e.conditions.findIndex((I) => I.id === l);
239
239
  if (t === -1) return;
240
- const b = {
240
+ const F = {
241
241
  ...e.conditions[t],
242
- id: u()
242
+ id: m()
243
243
  };
244
244
  i({
245
245
  ...e,
246
246
  conditions: [
247
247
  ...e.conditions.slice(0, t + 1),
248
- b,
248
+ F,
249
249
  ...e.conditions.slice(t + 1)
250
250
  ]
251
251
  });
@@ -254,7 +254,7 @@ function _({
254
254
  ...e,
255
255
  conditions: e.conditions.filter((t) => t.id !== l)
256
256
  });
257
- }, m = (l, t) => {
257
+ }, d = (l, t) => {
258
258
  i({
259
259
  ...e,
260
260
  groups: (e.groups || []).map(
@@ -266,24 +266,24 @@ function _({
266
266
  ...e,
267
267
  groups: (e.groups || []).filter((t) => t.id !== l)
268
268
  });
269
- }, S = (l) => ({
270
- id: u(),
269
+ }, L = (l) => ({
270
+ id: m(),
271
271
  logicalOperator: l.logicalOperator,
272
272
  conditions: l.conditions.map((t) => ({
273
273
  ...t,
274
- id: u()
274
+ id: m()
275
275
  })),
276
- groups: (l.groups || []).map((t) => S(t))
276
+ groups: (l.groups || []).map((t) => L(t))
277
277
  }), j = (l) => {
278
278
  const t = e.groups || [], n = t.findIndex((I) => I.id === l);
279
279
  if (n === -1) return;
280
- const b = S(t[n]);
280
+ const F = L(t[n]);
281
281
  i({
282
282
  ...e,
283
- groups: [...t.slice(0, n + 1), b, ...t.slice(n + 1)]
283
+ groups: [...t.slice(0, n + 1), F, ...t.slice(n + 1)]
284
284
  });
285
285
  };
286
- return /* @__PURE__ */ p(
286
+ return /* @__PURE__ */ f(
287
287
  "div",
288
288
  {
289
289
  className: H(
@@ -296,10 +296,10 @@ function _({
296
296
  J,
297
297
  {
298
298
  condition: l,
299
- columns: d,
300
- onUpdate: (n) => D(l.id, n),
299
+ columns: u,
300
+ onUpdate: (n) => O(l.id, n),
301
301
  onRemove: () => r(l.id),
302
- onDuplicate: () => F(l.id),
302
+ onDuplicate: () => b(l.id),
303
303
  showLogicalOperator: t > 0,
304
304
  logicalOperator: e.logicalOperator,
305
305
  onLogicalOperatorChange: (n) => i({ ...e, logicalOperator: n }),
@@ -309,7 +309,7 @@ function _({
309
309
  },
310
310
  l.id
311
311
  )),
312
- (e.groups || []).map((l, t) => /* @__PURE__ */ p(
312
+ (e.groups || []).map((l, t) => /* @__PURE__ */ f(
313
313
  "div",
314
314
  {
315
315
  className: "flex min-w-0 flex-1 flex-row gap-2",
@@ -317,7 +317,7 @@ function _({
317
317
  t === 1 && e.conditions.length === 0 || t === 0 && e.conditions.length === 1 ? /* @__PURE__ */ o(
318
318
  C,
319
319
  {
320
- className: `w-[72px] min-w-[72px] ${e.logicalOperator === void 0 ? O : ""}`,
320
+ className: `w-[72px] min-w-[72px] ${e.logicalOperator === void 0 ? D : ""}`,
321
321
  size: "sm",
322
322
  options: [
323
323
  { value: "AND", label: a.filters.and },
@@ -335,10 +335,10 @@ function _({
335
335
  {
336
336
  className: "flex flex-1 flex-col",
337
337
  group: l,
338
- columns: d,
339
- onUpdate: (n) => m(l.id, n),
340
- depth: h + 1,
341
- maxNestedDepth: f,
338
+ columns: u,
339
+ onUpdate: (n) => d(l.id, n),
340
+ depth: x + 1,
341
+ maxNestedDepth: p,
342
342
  i18n: a
343
343
  }
344
344
  ),
@@ -355,9 +355,9 @@ function _({
355
355
  },
356
356
  l.id
357
357
  )),
358
- h < f ? /* @__PURE__ */ p(A, { children: [
358
+ x < p ? /* @__PURE__ */ f(A, { children: [
359
359
  /* @__PURE__ */ o(G, { asChild: !0, children: /* @__PURE__ */ o(
360
- x,
360
+ h,
361
361
  {
362
362
  variant: "ghost",
363
363
  size: "sm",
@@ -367,9 +367,9 @@ function _({
367
367
  children: a.filters.addFilterRule
368
368
  }
369
369
  ) }),
370
- /* @__PURE__ */ p(L, { side: "top", className: "flex w-auto flex-col p-1", children: [
370
+ /* @__PURE__ */ f(S, { side: "top", className: "flex w-auto flex-col p-1", children: [
371
371
  /* @__PURE__ */ o(
372
- x,
372
+ h,
373
373
  {
374
374
  variant: "ghost",
375
375
  size: "sm",
@@ -380,7 +380,7 @@ function _({
380
380
  }
381
381
  ),
382
382
  /* @__PURE__ */ o(
383
- x,
383
+ h,
384
384
  {
385
385
  variant: "ghost",
386
386
  size: "sm",
@@ -392,7 +392,7 @@ function _({
392
392
  )
393
393
  ] })
394
394
  ] }) : /* @__PURE__ */ o(
395
- x,
395
+ h,
396
396
  {
397
397
  variant: "ghost",
398
398
  size: "sm",
@@ -409,45 +409,45 @@ function _({
409
409
  function le({
410
410
  columns: s,
411
411
  onFilterChange: e,
412
- initialFilter: d,
412
+ initialFilter: u,
413
413
  i18n: i
414
414
  }) {
415
- const [w, h] = P(
416
- d || {
417
- id: u(),
415
+ const [w, x] = P(
416
+ u || {
417
+ id: m(),
418
418
  rootGroup: {
419
- id: u(),
419
+ id: m(),
420
420
  logicalOperator: "AND",
421
421
  conditions: [],
422
422
  groups: []
423
423
  }
424
424
  }
425
- ), f = (g) => {
425
+ ), p = (g) => {
426
426
  const y = {
427
427
  ...w,
428
428
  rootGroup: g
429
429
  };
430
- h(y), e(y);
430
+ x(y), e(y);
431
431
  }, a = () => {
432
432
  const g = {
433
- id: u(),
433
+ id: m(),
434
434
  rootGroup: {
435
- id: u(),
435
+ id: m(),
436
436
  logicalOperator: "AND",
437
437
  conditions: [],
438
438
  groups: []
439
439
  }
440
440
  };
441
- h(g), e(null);
441
+ x(g), e(null);
442
442
  };
443
- return /* @__PURE__ */ p("div", { className: "flex max-h-[500px] min-w-0 flex-col gap-0.5 overflow-auto", children: [
443
+ return /* @__PURE__ */ f("div", { className: "flex max-h-[500px] min-w-0 flex-col gap-0.5 overflow-auto", children: [
444
444
  /* @__PURE__ */ o(
445
445
  _,
446
446
  {
447
447
  className: "flex flex-1 flex-col",
448
448
  group: w.rootGroup,
449
449
  columns: s,
450
- onUpdate: f,
450
+ onUpdate: p,
451
451
  isRoot: !0,
452
452
  depth: 0,
453
453
  maxNestedDepth: 2,
@@ -456,7 +456,7 @@ function le({
456
456
  ),
457
457
  /* @__PURE__ */ o("div", { className: "border-d-border w-full border-b" }),
458
458
  /* @__PURE__ */ o(
459
- x,
459
+ h,
460
460
  {
461
461
  variant: "ghost-destructive",
462
462
  size: "sm",