@alfadocs/ui-kit-debug 1.89.0 → 1.90.1

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 (53) hide show
  1. package/dist/_chunks/{anamnesis-summary-rows-DjM_HkCS.js → anamnesis-summary-rows-fbEQwcuW.js} +661 -653
  2. package/dist/_chunks/anamnesis-summary-rows-fbEQwcuW.js.map +1 -0
  3. package/dist/_chunks/{balance-badge-cell-BHXJS8Ga.js → balance-badge-cell-C4FYwmrZ.js} +2 -2
  4. package/dist/_chunks/{balance-badge-cell-BHXJS8Ga.js.map → balance-badge-cell-C4FYwmrZ.js.map} +1 -1
  5. package/dist/_chunks/browser-D5CD3WOj.js +565 -0
  6. package/dist/_chunks/browser-D5CD3WOj.js.map +1 -0
  7. package/dist/_chunks/{calendar-appointment-editor-dialog-BuumJbcv.js → calendar-appointment-editor-dialog-C1v2MNE4.js} +2 -2
  8. package/dist/_chunks/{calendar-appointment-editor-dialog-BuumJbcv.js.map → calendar-appointment-editor-dialog-C1v2MNE4.js.map} +1 -1
  9. package/dist/_chunks/{data-table-BlONA1rP.js → data-table-B_IcS0Ke.js} +552 -551
  10. package/dist/_chunks/data-table-B_IcS0Ke.js.map +1 -0
  11. package/dist/_chunks/{file-manager-C9iJjDZt.js → file-manager-C9YOT-Dn.js} +2 -2
  12. package/dist/_chunks/{file-manager-C9iJjDZt.js.map → file-manager-C9YOT-Dn.js.map} +1 -1
  13. package/dist/_chunks/{heatmap-C2Rg-SV_.js → heatmap-HTz3Jvzy.js} +2 -2
  14. package/dist/_chunks/{heatmap-C2Rg-SV_.js.map → heatmap-HTz3Jvzy.js.map} +1 -1
  15. package/dist/_chunks/index-CpVcVNBu.js +2326 -0
  16. package/dist/_chunks/index-CpVcVNBu.js.map +1 -0
  17. package/dist/_chunks/{index.es-B8zMZ1wV.js → index.es-Beo-XicE.js} +2 -2
  18. package/dist/_chunks/{index.es-B8zMZ1wV.js.map → index.es-Beo-XicE.js.map} +1 -1
  19. package/dist/_chunks/jspdf.es.min-BW7y6yhl.js +9674 -0
  20. package/dist/_chunks/jspdf.es.min-BW7y6yhl.js.map +1 -0
  21. package/dist/_chunks/{patient-search-BPjP2__L.js → patient-search-CCOUZABE.js} +415 -406
  22. package/dist/_chunks/patient-search-CCOUZABE.js.map +1 -0
  23. package/dist/_chunks/purify.es-Lo4sC_pz.js +1483 -0
  24. package/dist/_chunks/purify.es-Lo4sC_pz.js.map +1 -0
  25. package/dist/agent-catalog.json +1 -1
  26. package/dist/components/data-table/index.js +1 -1
  27. package/dist/components/data-table/toolbar.d.ts.map +1 -1
  28. package/dist/components/data-table/xlsx-export.d.ts +13 -0
  29. package/dist/components/data-table/xlsx-export.d.ts.map +1 -0
  30. package/dist/components/file-manager/index.js +1 -1
  31. package/dist/components/heatmap/index.js +1 -1
  32. package/dist/components/patient-search/index.js +1 -1
  33. package/dist/components/patient-search/patient-search.d.ts +8 -0
  34. package/dist/components/patient-search/patient-search.d.ts.map +1 -1
  35. package/dist/components/patient-table/index.js +1 -1
  36. package/dist/index.js +7 -7
  37. package/dist/patterns/anamnesis/anamnesis-export-download.d.ts +1 -1
  38. package/dist/patterns/anamnesis/anamnesis-export-download.d.ts.map +1 -1
  39. package/dist/patterns/anamnesis/anamnesis-export.d.ts +3 -1
  40. package/dist/patterns/anamnesis/anamnesis-export.d.ts.map +1 -1
  41. package/dist/patterns/anamnesis/index.js +1 -1
  42. package/dist/patterns/calendar/index.js +1 -1
  43. package/dist/safe-html/index.js +6 -6
  44. package/package.json +5 -4
  45. package/dist/_chunks/anamnesis-summary-rows-DjM_HkCS.js.map +0 -1
  46. package/dist/_chunks/data-table-BlONA1rP.js.map +0 -1
  47. package/dist/_chunks/exceljs.min-D2MHbJsF.js +0 -23046
  48. package/dist/_chunks/exceljs.min-D2MHbJsF.js.map +0 -1
  49. package/dist/_chunks/jspdf.es.min-DaapWjR1.js +0 -10007
  50. package/dist/_chunks/jspdf.es.min-DaapWjR1.js.map +0 -1
  51. package/dist/_chunks/patient-search-BPjP2__L.js.map +0 -1
  52. package/dist/_chunks/purify.es-Cm3utOpm.js +0 -561
  53. package/dist/_chunks/purify.es-Cm3utOpm.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { jsx as s, jsxs as _ } from "react/jsx-runtime";
1
+ import { jsx as d, jsxs as _ } from "react/jsx-runtime";
2
2
  import { useMemo as z, forwardRef as U, useState as M, useCallback as F, useEffect as $, useRef as q, createContext as De, useContext as Ge, isValidElement as Mt, cloneElement as Ot, useImperativeHandle as Lt } from "react";
3
3
  import { S as Vt } from "./skeleton-tTWJpvAq.js";
4
4
  import { E as zt } from "./empty-state-DwJ5YNzz.js";
@@ -22,8 +22,8 @@ import { G as Xt } from "./grip-vertical-onSb1JXO.js";
22
22
  import { P as Yt } from "./printer-rkK0T1gi.js";
23
23
  import { F as Ue } from "./file-text-5yv6r2ls.js";
24
24
  import { D as we } from "./download-CfYKJO_j.js";
25
- import { F as Jt } from "./file-spreadsheet-DmwyfV4O.js";
26
- import Zt from "i18next";
25
+ import { F as Zt } from "./file-spreadsheet-DmwyfV4O.js";
26
+ import Jt from "i18next";
27
27
  import { S as Ke } from "./state-backed-text-input-Cgh4ms3p.js";
28
28
  import { S as ea } from "./select-4S-eYZUf.js";
29
29
  import { u as ta } from "./registry-DvAUVLHh.js";
@@ -49,8 +49,23 @@ const oa = [
49
49
  ["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
50
50
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
51
51
  ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
52
- ], ia = Qt("columns-3-cog", oa);
53
- function la(e) {
52
+ ], ia = Qt("columns-3-cog", oa), la = "yyyy-mm-dd hh:mm";
53
+ function sa(e) {
54
+ return e == null ? "" : typeof e == "number" ? Number.isFinite(e) ? e : String(e) : typeof e == "string" || typeof e == "boolean" ? e : e instanceof Date && !Number.isNaN(e.getTime()) ? { value: e, type: Date, format: la } : String(e);
55
+ }
56
+ async function da(e, t, n) {
57
+ const { default: r } = await import("./index-CpVcVNBu.js"), i = [
58
+ e.map((s) => ({
59
+ value: s,
60
+ fontWeight: "bold",
61
+ textColor: n.text,
62
+ backgroundColor: n.fill
63
+ })),
64
+ ...t.map((s) => s.map(sa))
65
+ ];
66
+ return r(i, { sheet: "Sheet1" }).toBlob();
67
+ }
68
+ function ca(e) {
54
69
  if (!Mt(e)) return e;
55
70
  const t = e, n = t.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(n) ? n : `${n} ds:size-4`.trim();
56
71
  return Ot(t, { className: r, size: t.props.size ?? 16 });
@@ -64,20 +79,20 @@ function Q(e) {
64
79
  );
65
80
  return t;
66
81
  }
67
- function sa({
82
+ function ua({
68
83
  getApi: e,
69
84
  selectionCount: t,
70
85
  onPrint: n,
71
86
  markColumnsUserTouched: r,
72
87
  children: i
73
88
  }) {
74
- const c = z(
89
+ const s = z(
75
90
  () => ({ getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: r }),
76
91
  [e, t, n, r]
77
92
  );
78
- return /* @__PURE__ */ s(He.Provider, { value: c, children: i });
93
+ return /* @__PURE__ */ d(He.Provider, { value: s, children: i });
79
94
  }
80
- const da = [
95
+ const pa = [
81
96
  "data-table-toolbar",
82
97
  // Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
83
98
  // Actions cluster on narrow screens. From `sm` (≥640px) we switch to
@@ -90,12 +105,12 @@ const da = [
90
105
  // matching the header-tools layout the Patients / Care Plan List
91
106
  // patterns established (the old bg-card + border + shadow bar is gone).
92
107
  ].join(" "), Qe = U(
93
- ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ s(
108
+ ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d(
94
109
  "div",
95
110
  {
96
111
  ref: r,
97
112
  role: "toolbar",
98
- className: [da, e ?? ""].join(" ").trim(),
113
+ className: [pa, e ?? ""].join(" ").trim(),
99
114
  ...n,
100
115
  children: t
101
116
  }
@@ -103,7 +118,7 @@ const da = [
103
118
  );
104
119
  Qe.displayName = "DataTable.Toolbar";
105
120
  const Xe = U(
106
- ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ s(
121
+ ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d(
107
122
  "div",
108
123
  {
109
124
  ref: r,
@@ -123,7 +138,7 @@ const Xe = U(
123
138
  );
124
139
  Xe.displayName = "DataTable.Toolbar.FilterBar";
125
140
  const Ye = U(
126
- ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ s(
141
+ ({ className: e, children: t, ...n }, r) => /* @__PURE__ */ d(
127
142
  "div",
128
143
  {
129
144
  ref: r,
@@ -140,18 +155,18 @@ const Ye = U(
140
155
  Ye.displayName = "DataTable.Toolbar.Actions";
141
156
  const Ee = U(
142
157
  ({ label: e, onExport: t, intent: n = "outline", ...r }, i) => {
143
- const { t: c } = A("ui"), { getApi: m } = Q("DataTable.Toolbar.ExportCsv"), l = F(() => {
144
- const p = m();
145
- p && (t ? t(p) : p.exportDataAsCsv());
146
- }, [m, t]);
147
- return /* @__PURE__ */ s(
158
+ const { t: s } = A("ui"), { getApi: f } = Q("DataTable.Toolbar.ExportCsv"), l = F(() => {
159
+ const m = f();
160
+ m && (t ? t(m) : m.exportDataAsCsv());
161
+ }, [f, t]);
162
+ return /* @__PURE__ */ d(
148
163
  ie,
149
164
  {
150
165
  ref: i,
151
166
  type: "button",
152
167
  intent: n,
153
- icon: /* @__PURE__ */ s(we, { "aria-hidden": !0 }),
154
- tooltip: e ?? c("dataTable.exportCsv"),
168
+ icon: /* @__PURE__ */ d(we, { "aria-hidden": !0 }),
169
+ tooltip: e ?? s("dataTable.exportCsv"),
155
170
  onClick: l,
156
171
  ...r
157
172
  }
@@ -168,92 +183,92 @@ function ne(e, t = [30, 30, 30]) {
168
183
  const i = r.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
169
184
  return i ? [Number(i[1]), Number(i[2]), Number(i[3])] : t;
170
185
  }
171
- async function Je(e, t) {
186
+ async function Ze(e, t) {
172
187
  if (!e) return;
173
188
  const [{ jsPDF: n }, { default: r }] = await Promise.all([
174
- import("./jspdf.es.min-DaapWjR1.js").then((v) => v.j),
189
+ import("./jspdf.es.min-BW7y6yhl.js").then((w) => w.j),
175
190
  import("./jspdf.plugin.autotable-CSiDNyPn.js")
176
- ]), c = (e.getColumns() ?? []).filter((v) => v.isVisible()), m = [
177
- c.map((v) => e.getDisplayNameForColumn(v, null) ?? "")
191
+ ]), s = (e.getColumns() ?? []).filter((w) => w.isVisible()), f = [
192
+ s.map((w) => e.getDisplayNameForColumn(w, null) ?? "")
178
193
  ], l = [];
179
- e.forEachNodeAfterFilterAndSort((v) => {
180
- if (!v.data) return;
181
- const d = c.map((b) => {
182
- const x = e.getCellValue({
183
- rowNode: v,
184
- colKey: b,
194
+ e.forEachNodeAfterFilterAndSort((w) => {
195
+ if (!w.data) return;
196
+ const p = s.map((h) => {
197
+ const S = e.getCellValue({
198
+ rowNode: w,
199
+ colKey: h,
185
200
  useFormatter: !0
186
201
  });
187
- return x == null ? "" : String(x);
202
+ return S == null ? "" : String(S);
188
203
  });
189
- l.push(d);
204
+ l.push(p);
190
205
  });
191
- const p = ne("--muted", [240, 240, 240]), f = ne("--foreground", [30, 30, 30]), g = ne("--card-foreground", [30, 30, 30]), h = ne("--card", [250, 250, 250]), R = new n({ orientation: "landscape" });
192
- r(R, {
193
- head: m,
206
+ const m = ne("--muted", [240, 240, 240]), g = ne("--foreground", [30, 30, 30]), u = ne("--card-foreground", [30, 30, 30]), b = ne("--card", [250, 250, 250]), v = new n({ orientation: "landscape" });
207
+ r(v, {
208
+ head: f,
194
209
  body: l,
195
- headStyles: { fillColor: p, textColor: f },
196
- bodyStyles: { textColor: g },
197
- alternateRowStyles: { fillColor: h },
210
+ headStyles: { fillColor: m, textColor: g },
211
+ bodyStyles: { textColor: u },
212
+ alternateRowStyles: { fillColor: b },
198
213
  styles: {
199
214
  font: "helvetica",
200
215
  fontSize: 10,
201
216
  cellPadding: 4
202
217
  }
203
- }), R.save(t.fileName);
218
+ }), v.save(t.fileName);
204
219
  }
205
220
  const Ie = U(
206
- ({ label: e, onClick: t, fileName: n, intent: r = "outline", ...i }, c) => {
207
- const { t: m } = A("ui"), { getApi: l } = Q("DataTable.Toolbar.ExportPdf"), p = F(() => {
208
- const f = l();
221
+ ({ label: e, onClick: t, fileName: n, intent: r = "outline", ...i }, s) => {
222
+ const { t: f } = A("ui"), { getApi: l } = Q("DataTable.Toolbar.ExportPdf"), m = F(() => {
223
+ const g = l();
209
224
  if (t) {
210
- t(f);
225
+ t(g);
211
226
  return;
212
227
  }
213
- Je(f, {
228
+ Ze(g, {
214
229
  fileName: n ?? "data-table-export.pdf"
215
230
  });
216
231
  }, [l, t, n]);
217
- return /* @__PURE__ */ s(
232
+ return /* @__PURE__ */ d(
218
233
  ie,
219
234
  {
220
- ref: c,
235
+ ref: s,
221
236
  type: "button",
222
237
  intent: r,
223
- icon: /* @__PURE__ */ s(Ue, { "aria-hidden": !0 }),
224
- tooltip: e ?? m("dataTable.exportPdf"),
225
- onClick: p,
238
+ icon: /* @__PURE__ */ d(Ue, { "aria-hidden": !0 }),
239
+ tooltip: e ?? f("dataTable.exportPdf"),
240
+ onClick: m,
226
241
  ...i
227
242
  }
228
243
  );
229
244
  }
230
245
  );
231
246
  Ie.displayName = "DataTable.Toolbar.ExportPdf";
232
- const ke = U(
247
+ const Ne = U(
233
248
  ({ label: e, intent: t = "outline", ...n }, r) => {
234
- const { t: i } = A("ui"), { onPrint: c } = Q("DataTable.Toolbar.Print");
235
- return /* @__PURE__ */ s(
249
+ const { t: i } = A("ui"), { onPrint: s } = Q("DataTable.Toolbar.Print");
250
+ return /* @__PURE__ */ d(
236
251
  ie,
237
252
  {
238
253
  ref: r,
239
254
  type: "button",
240
255
  intent: t,
241
- icon: /* @__PURE__ */ s(Yt, { "aria-hidden": !0 }),
256
+ icon: /* @__PURE__ */ d(Yt, { "aria-hidden": !0 }),
242
257
  tooltip: e ?? i("dataTable.print"),
243
- onClick: c,
258
+ onClick: s,
244
259
  ...n
245
260
  }
246
261
  );
247
262
  }
248
263
  );
249
- ke.displayName = "DataTable.Toolbar.Print";
250
- const Ze = ({ placeholder: e, debounceMs: t = 150 }) => {
251
- const { t: n } = A("ui"), { getApi: r } = Q("DataTable.Toolbar.QuickSearch"), [i, c] = M(""), m = q(void 0);
252
- return $(() => (m.current && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
264
+ Ne.displayName = "DataTable.Toolbar.Print";
265
+ const Je = ({ placeholder: e, debounceMs: t = 150 }) => {
266
+ const { t: n } = A("ui"), { getApi: r } = Q("DataTable.Toolbar.QuickSearch"), [i, s] = M(""), f = q(void 0);
267
+ return $(() => (f.current && window.clearTimeout(f.current), f.current = window.setTimeout(() => {
253
268
  const l = r();
254
269
  l && l.setGridOption("quickFilterText", i);
255
270
  }, t), () => {
256
- m.current && window.clearTimeout(m.current);
271
+ f.current && window.clearTimeout(f.current);
257
272
  }), [i, t, r]), // Slot wrapper caps the search at a sensible legible width on desktop —
258
273
  // without this, TextInput's `w-full` lets the QuickSearch absorb the
259
274
  // entire FilterBar row and push trailing Actions onto a second line at
@@ -261,92 +276,92 @@ const Ze = ({ placeholder: e, debounceMs: t = 150 }) => {
261
276
  // the toolbar is squeezed on narrow viewports. There is no
262
277
  // `--toolbar-search-max` token in the kit yet — see this component's
263
278
  // summary for a follow-up note recommending we add one.
264
- /* @__PURE__ */ s("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ s(
279
+ /* @__PURE__ */ d("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ d(
265
280
  Kt,
266
281
  {
267
282
  type: "search",
268
283
  size: "sm",
269
- onChange: (l) => c(l.target.value),
284
+ onChange: (l) => s(l.target.value),
270
285
  placeholder: e ?? n("dataTable.quickSearch.placeholder", "Search…"),
271
- startAdornment: /* @__PURE__ */ s(Fe, { "aria-hidden": !0, className: "ds:size-4" }),
286
+ startAdornment: /* @__PURE__ */ d(Fe, { "aria-hidden": !0, className: "ds:size-4" }),
272
287
  clearable: !0,
273
- onClear: () => c(""),
288
+ onClear: () => s(""),
274
289
  "aria-label": n("dataTable.quickSearch.label", "Quick search")
275
290
  }
276
291
  ) });
277
292
  };
278
- Ze.displayName = "DataTable.Toolbar.QuickSearch";
279
- const Ne = U(
293
+ Je.displayName = "DataTable.Toolbar.QuickSearch";
294
+ const ke = U(
280
295
  ({ onRefresh: e, label: t, intent: n = "outline", ...r }, i) => {
281
- const { t: c } = A("ui");
282
- return /* @__PURE__ */ s(
296
+ const { t: s } = A("ui");
297
+ return /* @__PURE__ */ d(
283
298
  ie,
284
299
  {
285
300
  ref: i,
286
301
  type: "button",
287
302
  intent: n,
288
- icon: /* @__PURE__ */ s(Ht, { "aria-hidden": !0 }),
289
- tooltip: t ?? c("dataTable.refresh", "Refresh"),
303
+ icon: /* @__PURE__ */ d(Ht, { "aria-hidden": !0 }),
304
+ tooltip: t ?? s("dataTable.refresh", "Refresh"),
290
305
  onClick: e,
291
306
  ...r
292
307
  }
293
308
  );
294
309
  }
295
310
  );
296
- Ne.displayName = "DataTable.Toolbar.Refresh";
297
- function ca(e, t) {
311
+ ke.displayName = "DataTable.Toolbar.Refresh";
312
+ function ma(e, t) {
298
313
  if (!e || typeof e != "object") return "";
299
314
  const n = e, r = typeof n.type == "string" ? n.type : "", i = (l) => t(
300
315
  `dataTable.agGrid.${l}`,
301
316
  t(`dataTable.numberFilter.operators.${l}`, l)
302
317
  );
303
318
  if (r === "blank" || r === "notBlank") return i(r);
304
- const c = typeof n.filter == "string" || typeof n.filter == "number", m = typeof n.filterTo == "string" || typeof n.filterTo == "number";
305
- return r === "inRange" && (c || m) ? c && m ? `${n.filter} – ${n.filterTo}` : c ? `${t("dataTable.numberFilter.from", "From")} ${n.filter}` : `${t("dataTable.numberFilter.to", "To")} ${n.filterTo}` : c ? r ? `${i(r)} ${n.filter}` : String(n.filter) : typeof n.dateFrom == "string" ? typeof n.dateTo == "string" && n.dateTo ? `${n.dateFrom} – ${n.dateTo}` : String(n.dateFrom) : Array.isArray(n.values) ? n.values.map(String).join(", ") : "";
319
+ const s = typeof n.filter == "string" || typeof n.filter == "number", f = typeof n.filterTo == "string" || typeof n.filterTo == "number";
320
+ return r === "inRange" && (s || f) ? s && f ? `${n.filter} – ${n.filterTo}` : s ? `${t("dataTable.numberFilter.from", "From")} ${n.filter}` : `${t("dataTable.numberFilter.to", "To")} ${n.filterTo}` : s ? r ? `${i(r)} ${n.filter}` : String(n.filter) : typeof n.dateFrom == "string" ? typeof n.dateTo == "string" && n.dateTo ? `${n.dateFrom} – ${n.dateTo}` : String(n.dateFrom) : Array.isArray(n.values) ? n.values.map(String).join(", ") : "";
306
321
  }
307
322
  const et = () => {
308
- const { t: e } = A("ui"), { getApi: t } = Q("DataTable.Toolbar.FilterChips"), [n, r] = M([]), [i, c] = M(""), m = F(() => {
309
- const g = t();
310
- if (!g) {
311
- r([]), c("");
323
+ const { t: e } = A("ui"), { getApi: t } = Q("DataTable.Toolbar.FilterChips"), [n, r] = M([]), [i, s] = M(""), f = F(() => {
324
+ const u = t();
325
+ if (!u) {
326
+ r([]), s("");
312
327
  return;
313
328
  }
314
- const h = g.getFilterModel() ?? {}, R = g.getColumns() ?? [], v = [];
315
- for (const b of Object.keys(h)) {
316
- const x = R.find((S) => S.getColId() === b), w = g.getDisplayNameForColumn(x, null) ?? b;
317
- v.push({
318
- colId: b,
319
- headerName: w,
320
- text: ca(h[b], e)
329
+ const b = u.getFilterModel() ?? {}, v = u.getColumns() ?? [], w = [];
330
+ for (const h of Object.keys(b)) {
331
+ const S = v.find((C) => C.getColId() === h), R = u.getDisplayNameForColumn(S, null) ?? h;
332
+ w.push({
333
+ colId: h,
334
+ headerName: R,
335
+ text: ma(b[h], e)
321
336
  });
322
337
  }
323
- r(v);
324
- const d = g.getGridOption("quickFilterText");
325
- c(typeof d == "string" ? d : "");
338
+ r(w);
339
+ const p = u.getGridOption("quickFilterText");
340
+ s(typeof p == "string" ? p : "");
326
341
  }, [t, e]);
327
342
  if ($(() => {
328
- let g;
329
- const h = (d) => m(), R = (d) => {
330
- d.addEventListener("filterChanged", h), m(), g = () => d.removeEventListener("filterChanged", h);
331
- }, v = t();
332
- if (v)
333
- R(v);
343
+ let u;
344
+ const b = (p) => f(), v = (p) => {
345
+ p.addEventListener("filterChanged", b), f(), u = () => p.removeEventListener("filterChanged", b);
346
+ }, w = t();
347
+ if (w)
348
+ v(w);
334
349
  else {
335
- const d = window.setInterval(() => {
336
- const b = t();
337
- b && (window.clearInterval(d), R(b));
350
+ const p = window.setInterval(() => {
351
+ const h = t();
352
+ h && (window.clearInterval(p), v(h));
338
353
  }, 50);
339
- g = () => window.clearInterval(d);
354
+ u = () => window.clearInterval(p);
340
355
  }
341
- return () => g == null ? void 0 : g();
342
- }, [t, m]), n.length + (i ? 1 : 0) === 0) return null;
343
- function p(g) {
344
- const h = t();
345
- h && (h.setColumnFilterModel(g, null), h.onFilterChanged());
356
+ return () => u == null ? void 0 : u();
357
+ }, [t, f]), n.length + (i ? 1 : 0) === 0) return null;
358
+ function m(u) {
359
+ const b = t();
360
+ b && (b.setColumnFilterModel(u, null), b.onFilterChanged());
346
361
  }
347
- function f() {
348
- const g = t();
349
- g && (g.setFilterModel(null), g.setGridOption("quickFilterText", ""), c(""));
362
+ function g() {
363
+ const u = t();
364
+ u && (u.setFilterModel(null), u.setGridOption("quickFilterText", ""), s(""));
350
365
  }
351
366
  return /* @__PURE__ */ _(
352
367
  "div",
@@ -355,7 +370,7 @@ const et = () => {
355
370
  "aria-label": e("dataTable.filterChips.label", "Active filters"),
356
371
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
357
372
  children: [
358
- i && /* @__PURE__ */ s(
373
+ i && /* @__PURE__ */ d(
359
374
  We,
360
375
  {
361
376
  label: `${e("dataTable.quickSearch.label", "Quick search")}: ${i}`,
@@ -363,30 +378,30 @@ const et = () => {
363
378
  variant: "brand",
364
379
  fill: "solid",
365
380
  onRemove: () => {
366
- const g = t();
367
- g == null || g.setGridOption("quickFilterText", ""), c("");
381
+ const u = t();
382
+ u == null || u.setGridOption("quickFilterText", ""), s("");
368
383
  }
369
384
  }
370
385
  ),
371
- n.map((g) => /* @__PURE__ */ s(
386
+ n.map((u) => /* @__PURE__ */ d(
372
387
  We,
373
388
  {
374
- label: g.text ? `${g.headerName}: ${g.text}` : g.headerName,
389
+ label: u.text ? `${u.headerName}: ${u.text}` : u.headerName,
375
390
  size: "sm",
376
391
  variant: "brand",
377
392
  fill: "solid",
378
- onRemove: () => p(g.colId)
393
+ onRemove: () => m(u.colId)
379
394
  },
380
- g.colId
395
+ u.colId
381
396
  )),
382
- /* @__PURE__ */ s(
397
+ /* @__PURE__ */ d(
383
398
  de,
384
399
  {
385
400
  type: "button",
386
401
  intent: "ghost",
387
402
  size: "sm",
388
- onClick: f,
389
- startIcon: /* @__PURE__ */ s($e, { "aria-hidden": !0, className: "ds:size-4" }),
403
+ onClick: g,
404
+ startIcon: /* @__PURE__ */ d($e, { "aria-hidden": !0, className: "ds:size-4" }),
390
405
  children: e("dataTable.filterChips.clearAll", "Clear all")
391
406
  }
392
407
  )
@@ -400,81 +415,67 @@ const tt = ({
400
415
  options: t,
401
416
  label: n
402
417
  }) => {
403
- const { t: r } = A("ui"), { getApi: i } = Q("DataTable.Toolbar.FacetFilter"), [c, m] = M(null);
404
- function l(p) {
405
- m(p);
406
- const f = i();
407
- if (f) {
408
- if (p === null) {
409
- f.setColumnFilterModel(e, null), f.onFilterChanged();
418
+ const { t: r } = A("ui"), { getApi: i } = Q("DataTable.Toolbar.FacetFilter"), [s, f] = M(null);
419
+ function l(m) {
420
+ f(m);
421
+ const g = i();
422
+ if (g) {
423
+ if (m === null) {
424
+ g.setColumnFilterModel(e, null), g.onFilterChanged();
410
425
  return;
411
426
  }
412
- f.setColumnFilterModel(e, {
427
+ g.setColumnFilterModel(e, {
413
428
  type: "equals",
414
- filter: p
415
- }), f.onFilterChanged();
429
+ filter: m
430
+ }), g.onFilterChanged();
416
431
  }
417
432
  }
418
- return /* @__PURE__ */ s(
433
+ return /* @__PURE__ */ d(
419
434
  "div",
420
435
  {
421
436
  role: "group",
422
437
  "aria-label": n ?? r("dataTable.facetFilter.label", "Filter"),
423
438
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
424
- children: t.map((p) => {
425
- const f = c === p.value;
426
- return /* @__PURE__ */ s(
439
+ children: t.map((m) => {
440
+ const g = s === m.value;
441
+ return /* @__PURE__ */ d(
427
442
  de,
428
443
  {
429
444
  type: "button",
430
445
  size: "sm",
431
- intent: f ? "primary" : "secondary",
432
- "aria-pressed": f,
433
- onClick: () => l(p.value),
434
- children: p.label
446
+ intent: g ? "primary" : "secondary",
447
+ "aria-pressed": g,
448
+ onClick: () => l(m.value),
449
+ children: m.label
435
450
  },
436
- String(p.value)
451
+ String(m.value)
437
452
  );
438
453
  })
439
454
  }
440
455
  );
441
456
  };
442
457
  tt.displayName = "DataTable.Toolbar.FacetFilter";
443
- const ua = ["csv", "xlsx", "pdf"];
444
- async function pa(e, t) {
458
+ const ga = ["csv", "xlsx", "pdf"];
459
+ async function fa(e, t) {
445
460
  if (!e) return;
446
- const n = await import("./exceljs.min-D2MHbJsF.js").then((b) => b.e), r = new n.Workbook(), i = r.addWorksheet("Sheet1"), m = (e.getColumns() ?? []).filter((b) => b.isVisible());
447
- i.addRow(
448
- m.map(
449
- (b) => e.getDisplayNameForColumn(b, null) ?? b.getColId()
450
- )
451
- ), e.forEachNodeAfterFilterAndSort((b) => {
452
- b.data && i.addRow(
453
- m.map((x) => {
454
- const w = e.getCellValue({
455
- rowNode: b,
456
- colKey: x,
457
- useFormatter: !0
458
- });
459
- return w ?? "";
460
- })
461
+ const r = (e.getColumns() ?? []).filter((u) => u.isVisible()), i = r.map(
462
+ (u) => e.getDisplayNameForColumn(u, null) ?? u.getColId()
463
+ ), s = [];
464
+ e.forEachNodeAfterFilterAndSort((u) => {
465
+ u.data && s.push(
466
+ r.map(
467
+ (b) => e.getCellValue({ rowNode: u, colKey: b, useFormatter: !0 })
468
+ )
461
469
  );
462
470
  });
463
- const l = ne("--muted", [240, 240, 240]), p = ne("--foreground", [30, 30, 30]), f = i.getRow(1), g = ([b, x, w]) => `${b.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}${w.toString(16).padStart(2, "0")}`.toUpperCase();
464
- f.eachCell((b) => {
465
- b.font = { bold: !0, color: { argb: `FF${g(p)}` } }, b.fill = {
466
- type: "pattern",
467
- pattern: "solid",
468
- fgColor: { argb: `FF${g(l)}` }
469
- };
470
- });
471
- const h = await r.xlsx.writeBuffer(), R = new Blob([h], {
472
- type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
473
- }), v = URL.createObjectURL(R), d = document.createElement("a");
474
- d.href = v, d.download = t.fileName, document.body.appendChild(d), d.click(), document.body.removeChild(d), URL.revokeObjectURL(v);
471
+ const f = ([u, b, v]) => `#${[u, b, v].map((w) => w.toString(16).padStart(2, "0")).join("")}`.toUpperCase(), l = await da(i, s, {
472
+ fill: f(ne("--muted", [240, 240, 240])),
473
+ text: f(ne("--foreground", [30, 30, 30]))
474
+ }), m = URL.createObjectURL(l), g = document.createElement("a");
475
+ g.href = m, g.download = t.fileName, document.body.appendChild(g), g.click(), document.body.removeChild(g), URL.revokeObjectURL(m);
475
476
  }
476
477
  const at = De(null);
477
- function ga() {
478
+ function ba() {
478
479
  const e = Ge(at);
479
480
  if (!e)
480
481
  throw new Error(
@@ -484,31 +485,31 @@ function ga() {
484
485
  }
485
486
  const Pe = U(
486
487
  ({ children: e, label: t, intent: n = "outline", ...r }, i) => {
487
- const { t: c } = A("ui"), { getApi: m } = Q("DataTable.Toolbar.ExportMenu"), l = z(() => ({ getApi: m }), [m]), p = e ?? ua.map((f) => /* @__PURE__ */ s(Ae, { format: f }, f));
488
- return /* @__PURE__ */ s(at.Provider, { value: l, children: /* @__PURE__ */ _(ye.Root, { children: [
489
- /* @__PURE__ */ s(ye.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
488
+ const { t: s } = A("ui"), { getApi: f } = Q("DataTable.Toolbar.ExportMenu"), l = z(() => ({ getApi: f }), [f]), m = e ?? ga.map((g) => /* @__PURE__ */ d(Ae, { format: g }, g));
489
+ return /* @__PURE__ */ d(at.Provider, { value: l, children: /* @__PURE__ */ _(ye.Root, { children: [
490
+ /* @__PURE__ */ d(ye.Trigger, { asChild: !0, children: /* @__PURE__ */ d(
490
491
  ie,
491
492
  {
492
493
  ref: i,
493
494
  type: "button",
494
495
  intent: n,
495
- icon: /* @__PURE__ */ s(we, { "aria-hidden": !0 }),
496
- tooltip: t ?? c("dataTable.export.menu", "Export"),
497
- "aria-label": t ?? c("dataTable.export.menu", "Export"),
496
+ icon: /* @__PURE__ */ d(we, { "aria-hidden": !0 }),
497
+ tooltip: t ?? s("dataTable.export.menu", "Export"),
498
+ "aria-label": t ?? s("dataTable.export.menu", "Export"),
498
499
  "aria-haspopup": "menu",
499
500
  ...r
500
501
  }
501
502
  ) }),
502
- /* @__PURE__ */ s(ye.Content, { align: "end", sideOffset: 4, children: p })
503
+ /* @__PURE__ */ d(ye.Content, { align: "end", sideOffset: 4, children: m })
503
504
  ] }) });
504
505
  }
505
506
  );
506
507
  Pe.displayName = "DataTable.Toolbar.ExportMenu";
507
- function ma(e, t) {
508
+ function ha(e, t) {
508
509
  return t === "csv" ? e("dataTable.export.csv", "Export CSV") : t === "xlsx" ? e("dataTable.export.xlsx", "Export Excel") : t === "pdf" ? e("dataTable.export.pdf", "Export PDF") : e("dataTable.export.custom", "Export");
509
510
  }
510
- function fa(e) {
511
- return e === "csv" ? /* @__PURE__ */ s(we, { "aria-hidden": !0, className: "ds:size-4" }) : e === "xlsx" ? /* @__PURE__ */ s(Jt, { "aria-hidden": !0, className: "ds:size-4" }) : e === "pdf" ? /* @__PURE__ */ s(Ue, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ s(we, { "aria-hidden": !0, className: "ds:size-4" });
511
+ function Ta(e) {
512
+ return e === "csv" ? /* @__PURE__ */ d(we, { "aria-hidden": !0, className: "ds:size-4" }) : e === "xlsx" ? /* @__PURE__ */ d(Zt, { "aria-hidden": !0, className: "ds:size-4" }) : e === "pdf" ? /* @__PURE__ */ d(Ue, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ d(we, { "aria-hidden": !0, className: "ds:size-4" });
512
513
  }
513
514
  const Ae = ({
514
515
  format: e,
@@ -516,33 +517,33 @@ const Ae = ({
516
517
  onClick: n,
517
518
  fileName: r
518
519
  }) => {
519
- const { t: i } = A("ui"), { getApi: c } = ga(), m = F(() => {
520
- const l = c();
520
+ const { t: i } = A("ui"), { getApi: s } = ba(), f = F(() => {
521
+ const l = s();
521
522
  if (e === "csv") {
522
523
  l == null || l.exportDataAsCsv();
523
524
  return;
524
525
  }
525
526
  if (e === "pdf") {
526
- Je(l, {
527
+ Ze(l, {
527
528
  fileName: r ?? "data-table-export.pdf"
528
529
  });
529
530
  return;
530
531
  }
531
532
  if (e === "xlsx") {
532
- pa(l, {
533
+ fa(l, {
533
534
  fileName: r ?? "data-table-export.xlsx"
534
535
  });
535
536
  return;
536
537
  }
537
538
  n == null || n(l);
538
- }, [e, r, n, c]);
539
- return /* @__PURE__ */ s(ye.Item, { onSelect: m, children: /* @__PURE__ */ _("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
540
- fa(e),
541
- /* @__PURE__ */ s("span", { children: t ?? ma(i, e) })
539
+ }, [e, r, n, s]);
540
+ return /* @__PURE__ */ d(ye.Item, { onSelect: f, children: /* @__PURE__ */ _("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
541
+ Ta(e),
542
+ /* @__PURE__ */ d("span", { children: t ?? ha(i, e) })
542
543
  ] }) });
543
544
  };
544
545
  Ae.displayName = "DataTable.Toolbar.ExportMenu.Item";
545
- function ba(e) {
546
+ function ya(e) {
546
547
  if (!e) return [];
547
548
  const t = (r) => r.getPinned() === "left" ? 0 : r.getPinned() === "right" ? 2 : 1;
548
549
  return [...e.getAllGridColumns() ?? []].sort(
@@ -554,54 +555,54 @@ function ba(e) {
554
555
  }).filter((r) => r !== null);
555
556
  }
556
557
  const Me = U(
557
- function({ label: t, icon: n, footer: r, header: i, intent: c = "outline", ...m }, l) {
558
- const { t: p } = A("ui"), { getApi: f, markColumnsUserTouched: g } = Q(
558
+ function({ label: t, icon: n, footer: r, header: i, intent: s = "outline", ...f }, l) {
559
+ const { t: m } = A("ui"), { getApi: g, markColumnsUserTouched: u } = Q(
559
560
  "DataTable.Toolbar.ColumnToggle"
560
- ), [h, R] = M(!1), [v, d] = M([]), [b, x] = M(null), [w, S] = M(null);
561
+ ), [b, v] = M(!1), [w, p] = M([]), [h, S] = M(null), [R, C] = M(null);
561
562
  $(() => {
562
- h && d(ba(f()));
563
- }, [h, f]);
563
+ b && p(ya(g()));
564
+ }, [b, g]);
564
565
  const D = F(
565
- (C, O) => {
566
- const L = f();
567
- L && (L.setColumnsVisible([C], O), g == null || g([C]), d(
568
- (N) => N.map(
569
- (k) => k.colId === C ? { ...k, visible: O } : k
566
+ (x, O) => {
567
+ const L = g();
568
+ L && (L.setColumnsVisible([x], O), u == null || u([x]), p(
569
+ (k) => k.map(
570
+ (N) => N.colId === x ? { ...N, visible: O } : N
570
571
  )
571
572
  ));
572
573
  },
573
- [f, g]
574
+ [g, u]
574
575
  ), te = F(
575
- (C, O) => {
576
- if (C === O) return;
577
- const L = f();
576
+ (x, O) => {
577
+ if (x === O) return;
578
+ const L = g();
578
579
  if (!L) return;
579
- d((E) => {
580
- const G = E.findIndex((J) => J.colId === C), ae = E.findIndex((J) => J.colId === O);
580
+ p((E) => {
581
+ const G = E.findIndex((Z) => Z.colId === x), ae = E.findIndex((Z) => Z.colId === O);
581
582
  if (G < 0 || ae < 0) return E;
582
583
  const Y = [...E], [Ce] = Y.splice(G, 1);
583
584
  return Y.splice(ae, 0, Ce), Y;
584
585
  });
585
- const N = L.getAllGridColumns(), k = N.find((E) => E.getColId() === C), j = N.find((E) => E.getColId() === O);
586
- if (!k || !j) return;
587
- k.getPinned() !== j.getPinned() && L.setColumnsPinned([C], j.getPinned() ?? null);
586
+ const k = L.getAllGridColumns(), N = k.find((E) => E.getColId() === x), j = k.find((E) => E.getColId() === O);
587
+ if (!N || !j) return;
588
+ N.getPinned() !== j.getPinned() && L.setColumnsPinned([x], j.getPinned() ?? null);
588
589
  const W = L.getAllGridColumns().findIndex((E) => E.getColId() === O);
589
- W >= 0 && L.moveColumns([C], W);
590
+ W >= 0 && L.moveColumns([x], W);
590
591
  },
591
- [f]
592
- ), V = t ?? p("dataTable.columnToggle");
593
- return /* @__PURE__ */ _(he.Root, { open: h, onOpenChange: R, children: [
594
- /* @__PURE__ */ s(he.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
592
+ [g]
593
+ ), V = t ?? m("dataTable.columnToggle");
594
+ return /* @__PURE__ */ _(he.Root, { open: b, onOpenChange: v, children: [
595
+ /* @__PURE__ */ d(he.Trigger, { asChild: !0, children: /* @__PURE__ */ d(
595
596
  ie,
596
597
  {
597
598
  ref: l,
598
599
  type: "button",
599
- intent: c,
600
- icon: n ?? /* @__PURE__ */ s(ia, { "aria-hidden": !0 }),
600
+ intent: s,
601
+ icon: n ?? /* @__PURE__ */ d(ia, { "aria-hidden": !0 }),
601
602
  tooltip: V,
602
603
  "aria-label": V,
603
604
  "aria-haspopup": "dialog",
604
- ...m
605
+ ...f
605
606
  }
606
607
  ) }),
607
608
  /* @__PURE__ */ _(
@@ -611,37 +612,37 @@ const Me = U(
611
612
  align: "end",
612
613
  className: "ds:flex ds:max-h-[var(--radix-popover-content-available-height)] ds:flex-col",
613
614
  children: [
614
- /* @__PURE__ */ s(he.Heading, { children: V }),
615
- i ? /* @__PURE__ */ s("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: i }) : null,
616
- /* @__PURE__ */ s(
615
+ /* @__PURE__ */ d(he.Heading, { children: V }),
616
+ i ? /* @__PURE__ */ d("div", { className: "ds:mb-[var(--spacing-xs)] ds:border-b ds:border-[color:var(--border)] ds:pb-[var(--spacing-sm)]", children: i }) : null,
617
+ /* @__PURE__ */ d(
617
618
  "ul",
618
619
  {
619
620
  className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
620
621
  "aria-label": V,
621
- children: v.map((C) => {
622
- const O = b === C.colId, L = w === C.colId && b !== C.colId;
622
+ children: w.map((x) => {
623
+ const O = h === x.colId, L = R === x.colId && h !== x.colId;
623
624
  return /* @__PURE__ */ _(
624
625
  "li",
625
626
  {
626
627
  draggable: !0,
627
- onDragStart: (N) => {
628
- x(C.colId), N.dataTransfer.effectAllowed = "move", N.dataTransfer.setData("text/plain", C.colId);
628
+ onDragStart: (k) => {
629
+ S(x.colId), k.dataTransfer.effectAllowed = "move", k.dataTransfer.setData("text/plain", x.colId);
629
630
  },
630
- onDragOver: (N) => {
631
- N.preventDefault(), N.dataTransfer.dropEffect = "move", S(C.colId);
631
+ onDragOver: (k) => {
632
+ k.preventDefault(), k.dataTransfer.dropEffect = "move", C(x.colId);
632
633
  },
633
634
  onDragLeave: () => {
634
- S(
635
- (N) => N === C.colId ? null : N
635
+ C(
636
+ (k) => k === x.colId ? null : k
636
637
  );
637
638
  },
638
- onDrop: (N) => {
639
- N.preventDefault();
640
- const k = N.dataTransfer.getData("text/plain");
641
- k && te(k, C.colId), x(null), S(null);
639
+ onDrop: (k) => {
640
+ k.preventDefault();
641
+ const N = k.dataTransfer.getData("text/plain");
642
+ N && te(N, x.colId), S(null), C(null);
642
643
  },
643
644
  onDragEnd: () => {
644
- x(null), S(null);
645
+ S(null), C(null);
645
646
  },
646
647
  className: [
647
648
  "ds:flex ds:items-center ds:gap-[var(--spacing-xs)] ds:rounded-[var(--radius-sm)] ds:px-[var(--spacing-xs)] ds:py-[var(--spacing-2xs,var(--spacing-xs))] ds:transition-colors",
@@ -649,30 +650,30 @@ const Me = U(
649
650
  L ? "ds:bg-[color:color-mix(in_srgb,var(--primary)_8%,transparent)]" : ""
650
651
  ].filter(Boolean).join(" "),
651
652
  children: [
652
- /* @__PURE__ */ s(
653
+ /* @__PURE__ */ d(
653
654
  "span",
654
655
  {
655
656
  "aria-hidden": "true",
656
657
  className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
657
- children: /* @__PURE__ */ s(Xt, { className: "ds:size-4" })
658
+ children: /* @__PURE__ */ d(Xt, { className: "ds:size-4" })
658
659
  }
659
660
  ),
660
- /* @__PURE__ */ s(
661
+ /* @__PURE__ */ d(
661
662
  Ut,
662
663
  {
663
- label: C.displayName,
664
- checked: C.visible,
665
- onCheckedChange: (N) => D(C.colId, N === !0)
664
+ label: x.displayName,
665
+ checked: x.visible,
666
+ onCheckedChange: (k) => D(x.colId, k === !0)
666
667
  }
667
668
  )
668
669
  ]
669
670
  },
670
- C.colId
671
+ x.colId
671
672
  );
672
673
  })
673
674
  }
674
675
  ),
675
- r ? /* @__PURE__ */ s("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: r }) : null
676
+ r ? /* @__PURE__ */ d("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: r }) : null
676
677
  ]
677
678
  }
678
679
  )
@@ -681,29 +682,29 @@ const Me = U(
681
682
  );
682
683
  Me.displayName = "DataTable.Toolbar.ColumnToggle";
683
684
  const rt = U(
684
- ({ label: e, icon: t, onClick: n, variant: r = "default", size: i = "sm", ...c }, m) => {
685
- const { t: l } = A("ui"), { getApi: p, selectionCount: f } = Q(
685
+ ({ label: e, icon: t, onClick: n, variant: r = "default", size: i = "sm", ...s }, f) => {
686
+ const { t: l } = A("ui"), { getApi: m, selectionCount: g } = Q(
686
687
  "DataTable.Toolbar.BulkAction"
687
688
  );
688
- return f === 0 ? null : /* @__PURE__ */ _(
689
+ return g === 0 ? null : /* @__PURE__ */ _(
689
690
  de,
690
691
  {
691
- ref: m,
692
+ ref: f,
692
693
  type: "button",
693
694
  intent: r === "destructive" ? "destructive" : "secondary",
694
695
  size: i,
695
- startIcon: la(t),
696
- onClick: () => n(p()),
697
- "aria-label": `${e} (${l("dataTable.bulkAction", { count: f })})`,
698
- ...c,
696
+ startIcon: ca(t),
697
+ onClick: () => n(m()),
698
+ "aria-label": `${e} (${l("dataTable.bulkAction", { count: g })})`,
699
+ ...s,
699
700
  children: [
700
- /* @__PURE__ */ s("span", { children: e }),
701
- /* @__PURE__ */ s(
701
+ /* @__PURE__ */ d("span", { children: e }),
702
+ /* @__PURE__ */ d(
702
703
  "span",
703
704
  {
704
705
  "aria-hidden": "true",
705
706
  className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
706
- children: l("dataTable.bulkAction", { count: f })
707
+ children: l("dataTable.bulkAction", { count: g })
707
708
  }
708
709
  )
709
710
  ]
@@ -715,13 +716,13 @@ rt.displayName = "DataTable.Toolbar.BulkAction";
715
716
  for (const e of [
716
717
  Ee,
717
718
  Ie,
718
- ke,
719
719
  Ne,
720
+ ke,
720
721
  Pe,
721
722
  Me
722
723
  ])
723
724
  e.rendersIconButton = !0;
724
- const ha = Object.assign(Pe, {
725
+ const xa = Object.assign(Pe, {
725
726
  Item: Ae
726
727
  }), xe = Object.assign(Qe, {
727
728
  FilterBar: Xe,
@@ -730,22 +731,22 @@ const ha = Object.assign(Pe, {
730
731
  ExportCsv: Ee,
731
732
  /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
732
733
  ExportPdf: Ie,
733
- Print: ke,
734
+ Print: Ne,
734
735
  ColumnToggle: Me,
735
736
  BulkAction: rt,
736
- QuickSearch: Ze,
737
- Refresh: Ne,
737
+ QuickSearch: Je,
738
+ Refresh: ke,
738
739
  FilterChips: et,
739
740
  FacetFilter: tt,
740
- ExportMenu: ha
741
- }), Ta = [
741
+ ExportMenu: xa
742
+ }), wa = [
742
743
  "contains",
743
744
  "equals",
744
745
  "startsWith",
745
746
  "endsWith",
746
747
  "notContains"
747
748
  ];
748
- function ya(e) {
749
+ function Ca(e) {
749
750
  const t = new Intl.Collator(e, {
750
751
  sensitivity: "base",
751
752
  usage: "search"
@@ -753,9 +754,9 @@ function ya(e) {
753
754
  function n(r, i) {
754
755
  if (i.length === 0) return 0;
755
756
  if (i.length > r.length) return -1;
756
- for (let c = 0; c <= r.length - i.length; c += 1)
757
- if (t.compare(r.slice(c, c + i.length), i) === 0)
758
- return c;
757
+ for (let s = 0; s <= r.length - i.length; s += 1)
758
+ if (t.compare(r.slice(s, s + i.length), i) === 0)
759
+ return s;
759
760
  return -1;
760
761
  }
761
762
  return {
@@ -768,156 +769,156 @@ function ya(e) {
768
769
  ) === 0
769
770
  };
770
771
  }
771
- function xa(e) {
772
+ function va(e) {
772
773
  return e == null ? null : typeof e == "string" ? e : String(e);
773
774
  }
774
- function wa(e) {
775
- const { model: t, onModelChange: n, getValue: r, placeholder: i, defaultOperator: c } = e, { t: m } = A("ui"), l = (t == null ? void 0 : t.type) ?? c ?? "contains", [p, f] = M(l), [g, h] = M((t == null ? void 0 : t.filter) ?? "");
775
+ function Sa(e) {
776
+ const { model: t, onModelChange: n, getValue: r, placeholder: i, defaultOperator: s } = e, { t: f } = A("ui"), l = (t == null ? void 0 : t.type) ?? s ?? "contains", [m, g] = M(l), [u, b] = M((t == null ? void 0 : t.filter) ?? "");
776
777
  $(() => {
777
- f((t == null ? void 0 : t.type) ?? c ?? "contains"), h((t == null ? void 0 : t.filter) ?? "");
778
- }, [t, c]);
779
- const R = z(() => ya(Zt.language), []);
778
+ g((t == null ? void 0 : t.type) ?? s ?? "contains"), b((t == null ? void 0 : t.filter) ?? "");
779
+ }, [t, s]);
780
+ const v = z(() => Ca(Jt.language), []);
780
781
  _t({
781
- doesFilterPass: (w) => {
782
- const S = t;
783
- if (!S || S.filter === "") return !0;
784
- const D = xa(r(w.node));
782
+ doesFilterPass: (R) => {
783
+ const C = t;
784
+ if (!C || C.filter === "") return !0;
785
+ const D = va(r(R.node));
785
786
  if (D === null) return !1;
786
- switch (S.type) {
787
+ switch (C.type) {
787
788
  case "equals":
788
- return R.equals(D, S.filter);
789
+ return v.equals(D, C.filter);
789
790
  case "contains":
790
- return R.contains(D, S.filter);
791
+ return v.contains(D, C.filter);
791
792
  case "startsWith":
792
- return R.startsWith(D, S.filter);
793
+ return v.startsWith(D, C.filter);
793
794
  case "endsWith":
794
- return R.endsWith(D, S.filter);
795
+ return v.endsWith(D, C.filter);
795
796
  case "notContains":
796
- return !R.contains(D, S.filter);
797
+ return !v.contains(D, C.filter);
797
798
  default:
798
799
  return !0;
799
800
  }
800
801
  }
801
802
  });
802
- function v() {
803
- if (g.trim() === "") {
803
+ function w() {
804
+ if (u.trim() === "") {
804
805
  n(null);
805
806
  return;
806
807
  }
807
- n({ type: p, filter: g });
808
+ n({ type: m, filter: u });
808
809
  }
809
- function d() {
810
- h(""), f(c ?? "contains"), n(null);
810
+ function p() {
811
+ b(""), g(s ?? "contains"), n(null);
811
812
  }
812
- const b = Ta.map(
813
- (w) => ({
814
- value: w,
815
- label: m(`dataTable.textFilter.operators.${w}`)
813
+ const h = wa.map(
814
+ (R) => ({
815
+ value: R,
816
+ label: f(`dataTable.textFilter.operators.${R}`)
816
817
  })
817
- ), x = i ?? m("dataTable.textFilter.placeholder");
818
+ ), S = i ?? f("dataTable.textFilter.placeholder");
818
819
  return /* @__PURE__ */ _(
819
820
  "div",
820
821
  {
821
822
  "data-component": "text-filter",
822
823
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
823
824
  children: [
824
- /* @__PURE__ */ s(
825
+ /* @__PURE__ */ d(
825
826
  ea,
826
827
  {
827
828
  size: "sm",
828
- options: b,
829
- value: p,
830
- onValueChange: (w) => {
831
- w !== "" && f(w);
829
+ options: h,
830
+ value: m,
831
+ onValueChange: (R) => {
832
+ R !== "" && g(R);
832
833
  },
833
- "aria-label": m("dataTable.textFilter.operators.contains")
834
+ "aria-label": f("dataTable.textFilter.operators.contains")
834
835
  }
835
836
  ),
836
- /* @__PURE__ */ s(
837
+ /* @__PURE__ */ d(
837
838
  Ke,
838
839
  {
839
840
  size: "sm",
840
- value: g,
841
- onChange: (w) => h(w.target.value),
842
- onKeyDown: (w) => {
843
- w.key === "Enter" && (w.preventDefault(), v());
841
+ value: u,
842
+ onChange: (R) => b(R.target.value),
843
+ onKeyDown: (R) => {
844
+ R.key === "Enter" && (R.preventDefault(), w());
844
845
  },
845
- placeholder: x,
846
- "aria-label": x,
847
- startAdornment: /* @__PURE__ */ s(Fe, { "aria-hidden": "true", className: "ds:size-4" })
846
+ placeholder: S,
847
+ "aria-label": S,
848
+ startAdornment: /* @__PURE__ */ d(Fe, { "aria-hidden": "true", className: "ds:size-4" })
848
849
  }
849
850
  ),
850
851
  /* @__PURE__ */ _("div", { className: "ds:flex ds:flex-wrap ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
851
- /* @__PURE__ */ s(de, { intent: "ghost", size: "sm", onClick: d, type: "button", children: m("dataTable.textFilter.clear") }),
852
- /* @__PURE__ */ s(de, { intent: "primary", size: "sm", onClick: v, type: "button", children: m("dataTable.textFilter.apply") })
852
+ /* @__PURE__ */ d(de, { intent: "ghost", size: "sm", onClick: p, type: "button", children: f("dataTable.textFilter.clear") }),
853
+ /* @__PURE__ */ d(de, { intent: "primary", size: "sm", onClick: w, type: "button", children: f("dataTable.textFilter.apply") })
853
854
  ] })
854
855
  ]
855
856
  }
856
857
  );
857
858
  }
858
- function Ca(e) {
859
- var h, R;
860
- const { model: t, onModelChange: n, column: r } = e, { t: i } = A("ui"), c = ((R = (h = r == null ? void 0 : r.getColDef) == null ? void 0 : h.call(r)) == null ? void 0 : R.filterParams) ?? {}, m = c.defaultOperator ?? "contains", l = c.placeholder ?? i("dataTable.textFilter.placeholder"), [p, f] = M((t == null ? void 0 : t.filter) ?? "");
859
+ function Ra(e) {
860
+ var b, v;
861
+ const { model: t, onModelChange: n, column: r } = e, { t: i } = A("ui"), s = ((v = (b = r == null ? void 0 : r.getColDef) == null ? void 0 : b.call(r)) == null ? void 0 : v.filterParams) ?? {}, f = s.defaultOperator ?? "contains", l = s.placeholder ?? i("dataTable.textFilter.placeholder"), [m, g] = M((t == null ? void 0 : t.filter) ?? "");
861
862
  $(() => {
862
- f((t == null ? void 0 : t.filter) ?? "");
863
+ g((t == null ? void 0 : t.filter) ?? "");
863
864
  }, [t == null ? void 0 : t.filter]), $(() => {
864
- if (p === ((t == null ? void 0 : t.filter) ?? "")) return;
865
- const v = setTimeout(() => {
866
- if (p === "") {
865
+ if (m === ((t == null ? void 0 : t.filter) ?? "")) return;
866
+ const w = setTimeout(() => {
867
+ if (m === "") {
867
868
  t && n(null);
868
869
  return;
869
870
  }
870
- n({ type: m, filter: p });
871
+ n({ type: f, filter: m });
871
872
  }, 200);
872
- return () => clearTimeout(v);
873
- }, [p, m, t, n]);
874
- function g() {
875
- f(""), t && n(null);
873
+ return () => clearTimeout(w);
874
+ }, [m, f, t, n]);
875
+ function u() {
876
+ g(""), t && n(null);
876
877
  }
877
- return /* @__PURE__ */ s("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
878
+ return /* @__PURE__ */ d("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ d(
878
879
  Ke,
879
880
  {
880
881
  size: "sm",
881
- value: p,
882
- onChange: (v) => f(v.target.value),
882
+ value: m,
883
+ onChange: (w) => g(w.target.value),
883
884
  placeholder: l,
884
885
  "aria-label": l,
885
- startAdornment: /* @__PURE__ */ s(Fe, { "aria-hidden": "true", className: "ds:size-4" }),
886
- endAdornment: p.length > 0 ? /* @__PURE__ */ s(
886
+ startAdornment: /* @__PURE__ */ d(Fe, { "aria-hidden": "true", className: "ds:size-4" }),
887
+ endAdornment: m.length > 0 ? /* @__PURE__ */ d(
887
888
  "button",
888
889
  {
889
890
  type: "button",
890
891
  "aria-label": i("dataTable.textFilter.clear"),
891
- onClick: g,
892
+ onClick: u,
892
893
  className: "ds:pointer-events-auto ds:flex ds:items-center ds:text-[var(--muted-foreground)] ds:hover:text-[var(--foreground)] ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
893
- children: /* @__PURE__ */ s($e, { "aria-hidden": "true", className: "ds:size-4" })
894
+ children: /* @__PURE__ */ d($e, { "aria-hidden": "true", className: "ds:size-4" })
894
895
  }
895
896
  ) : void 0
896
897
  }
897
898
  ) });
898
899
  }
899
- const va = /* @__PURE__ */ new Set(["presentation", "none"]), Be = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
900
+ const Da = /* @__PURE__ */ new Set(["presentation", "none"]), Be = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
900
901
  function Te(e) {
901
902
  const t = e.getAttribute("role");
902
- t === null || !va.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
903
+ t === null || !Da.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
903
904
  }
904
- function Sa(e, t = !0) {
905
+ function Ga(e, t = !0) {
905
906
  $(() => {
906
907
  const n = e.current;
907
908
  if (!t || !n || typeof MutationObserver > "u") return;
908
909
  (() => {
909
- for (const c of n.querySelectorAll(Be)) Te(c);
910
+ for (const s of n.querySelectorAll(Be)) Te(s);
910
911
  })();
911
- const i = new MutationObserver((c) => {
912
- for (const m of c)
913
- if (m.type === "attributes")
914
- Te(m.target);
912
+ const i = new MutationObserver((s) => {
913
+ for (const f of s)
914
+ if (f.type === "attributes")
915
+ Te(f.target);
915
916
  else
916
- for (const l of m.addedNodes)
917
+ for (const l of f.addedNodes)
917
918
  if (l instanceof Element) {
918
919
  Te(l);
919
- for (const p of l.querySelectorAll(Be))
920
- Te(p);
920
+ for (const m of l.querySelectorAll(Be))
921
+ Te(m);
921
922
  }
922
923
  });
923
924
  return i.observe(n, {
@@ -928,57 +929,57 @@ function Sa(e, t = !0) {
928
929
  }), () => i.disconnect();
929
930
  }, [e, t]);
930
931
  }
931
- const oe = "__dsDetailOf", Ra = "ds-data-table-expanded-row", nt = "::detail", Da = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
932
+ const oe = "__dsDetailOf", Fa = "ds-data-table-expanded-row", nt = "::detail", Ea = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
932
933
  function B(e) {
933
934
  return typeof e == "object" && e !== null && typeof e[oe] == "string";
934
935
  }
935
- function Ga(e) {
936
+ function Ia(e) {
936
937
  return `${e}${nt}`;
937
938
  }
938
- function wr(e) {
939
+ function Sr(e) {
939
940
  return e.endsWith(nt);
940
941
  }
941
- function Fa(e, t) {
942
+ function Na(e, t) {
942
943
  return { ...e, [oe]: t };
943
944
  }
944
945
  const ot = De(
945
946
  null
946
947
  );
947
- function Ea(e) {
948
- var d;
948
+ function ka(e) {
949
+ var p;
949
950
  const t = Ge(
950
951
  ot
951
- ), { t: n } = A("ui"), r = q(null), { data: i, node: c, api: m } = e, l = B(i), p = t == null ? void 0 : t.heights, f = c.id, g = q(t);
952
- if (g.current = t, $(() => {
953
- const b = r.current;
954
- if (!b || !l || !p || f == null) return;
955
- let x = p.get(f) ?? 0;
956
- const w = () => {
957
- const D = Math.ceil(b.getBoundingClientRect().height);
958
- D <= 0 || D === x || (x = D, p.set(f, D), c.setRowHeight(D), m.onRowHeightChanged());
952
+ ), { t: n } = A("ui"), r = q(null), { data: i, node: s, api: f } = e, l = B(i), m = t == null ? void 0 : t.heights, g = s.id, u = q(t);
953
+ if (u.current = t, $(() => {
954
+ const h = r.current;
955
+ if (!h || !l || !m || g == null) return;
956
+ let S = m.get(g) ?? 0;
957
+ const R = () => {
958
+ const D = Math.ceil(h.getBoundingClientRect().height);
959
+ D <= 0 || D === S || (S = D, m.set(g, D), s.setRowHeight(D), f.onRowHeightChanged());
959
960
  };
960
- w();
961
- const S = new ResizeObserver(w);
962
- return S.observe(b), () => S.disconnect();
963
- }, [m, f, p, l, c]), $(() => {
964
- const b = r.current, x = b == null ? void 0 : b.parentElement;
965
- if (!b || !x || !l) return;
966
- const w = (S) => {
961
+ R();
962
+ const C = new ResizeObserver(R);
963
+ return C.observe(h), () => C.disconnect();
964
+ }, [f, g, m, l, s]), $(() => {
965
+ const h = r.current, S = h == null ? void 0 : h.parentElement;
966
+ if (!h || !S || !l) return;
967
+ const R = (C) => {
967
968
  var D, te;
968
- S.target !== x || S.defaultPrevented || (S.key === "Escape" ? (S.stopPropagation(), (te = (D = g.current) == null ? void 0 : D.onExpandedRowChange) == null || te.call(D, null)) : S.key === "Enter" && (S.preventDefault(), (b.querySelector(Da) ?? b).focus()));
969
+ C.target !== S || C.defaultPrevented || (C.key === "Escape" ? (C.stopPropagation(), (te = (D = u.current) == null ? void 0 : D.onExpandedRowChange) == null || te.call(D, null)) : C.key === "Enter" && (C.preventDefault(), (h.querySelector(Ea) ?? h).focus()));
969
970
  };
970
- return x.addEventListener("keydown", w), () => x.removeEventListener("keydown", w);
971
+ return S.addEventListener("keydown", R), () => S.removeEventListener("keydown", R);
971
972
  }, [l]), !l) {
972
- const b = t == null ? void 0 : t.fallbackRenderer;
973
- return b ? /* @__PURE__ */ s(b, { ...e }) : null;
973
+ const h = t == null ? void 0 : t.fallbackRenderer;
974
+ return h ? /* @__PURE__ */ d(h, { ...e }) : null;
974
975
  }
975
- const h = i[oe];
976
- let R;
977
- if (t != null && t.expanded && t.expanded.id === h)
978
- R = t.expanded.row;
976
+ const b = i[oe];
977
+ let v;
978
+ if (t != null && t.expanded && t.expanded.id === b)
979
+ v = t.expanded.row;
979
980
  else {
980
- const { [oe]: b, ...x } = i;
981
- R = x;
981
+ const { [oe]: h, ...S } = i;
982
+ v = S;
982
983
  }
983
984
  return /* @__PURE__ */ _(
984
985
  "div",
@@ -987,20 +988,20 @@ function Ea(e) {
987
988
  role: "gridcell",
988
989
  tabIndex: -1,
989
990
  "data-component": "data-table-expanded-row",
990
- "data-expanded-row-of": h,
991
+ "data-expanded-row-of": b,
991
992
  className: "ds-data-table-expanded-row-surface",
992
- onKeyDown: (b) => {
993
- var x;
994
- b.key !== "Escape" || b.defaultPrevented || (b.stopPropagation(), (x = t == null ? void 0 : t.onExpandedRowChange) == null || x.call(t, null));
993
+ onKeyDown: (h) => {
994
+ var S;
995
+ h.key !== "Escape" || h.defaultPrevented || (h.stopPropagation(), (S = t == null ? void 0 : t.onExpandedRowChange) == null || S.call(t, null));
995
996
  },
996
997
  children: [
997
- /* @__PURE__ */ s("span", { className: "ds:sr-only", children: n("dataTable.expandedRow") }),
998
- (d = t == null ? void 0 : t.renderExpandedRow) == null ? void 0 : d.call(t, R)
998
+ /* @__PURE__ */ d("span", { className: "ds:sr-only", children: n("dataTable.expandedRow") }),
999
+ (p = t == null ? void 0 : t.renderExpandedRow) == null ? void 0 : p.call(t, v)
999
1000
  ]
1000
1001
  }
1001
1002
  );
1002
1003
  }
1003
- const Ia = {
1004
+ const Pa = {
1004
1005
  id: "data-table",
1005
1006
  capabilities: [
1006
1007
  "select_single",
@@ -1198,12 +1199,12 @@ const Ia = {
1198
1199
  }
1199
1200
  }
1200
1201
  };
1201
- function ka(e, t, n) {
1202
+ function Aa(e, t, n) {
1202
1203
  const r = na(t), i = new Intl.DateTimeFormat(r, {
1203
1204
  calendar: "gregory",
1204
1205
  month: "long",
1205
1206
  timeZone: "UTC"
1206
- }), c = new Intl.NumberFormat(r).formatToParts(1000.1), m = {
1207
+ }), s = new Intl.NumberFormat(r).formatToParts(1000.1), f = {
1207
1208
  ariaIndeterminate: () => e("dataTable.agGrid.ariaIndeterminate"),
1208
1209
  ariaChecked: () => e("dataTable.agGrid.ariaChecked"),
1209
1210
  ariaUnchecked: () => e("dataTable.agGrid.ariaUnchecked"),
@@ -1334,11 +1335,11 @@ function ka(e, t, n) {
1334
1335
  ariaDateFilterInput: () => e("dataTable.agGrid.ariaDateFilterInput"),
1335
1336
  thousandSeparator: () => {
1336
1337
  var l;
1337
- return ((l = c.find((p) => p.type === "group")) == null ? void 0 : l.value) ?? "";
1338
+ return ((l = s.find((m) => m.type === "group")) == null ? void 0 : l.value) ?? "";
1338
1339
  },
1339
1340
  decimalSeparator: () => {
1340
1341
  var l;
1341
- return ((l = c.find((p) => p.type === "decimal")) == null ? void 0 : l.value) ?? "";
1342
+ return ((l = s.find((m) => m.type === "decimal")) == null ? void 0 : l.value) ?? "";
1342
1343
  },
1343
1344
  pageSizeSelectorLabel: () => e("dataTable.agGrid.pageSizeSelectorLabel"),
1344
1345
  ariaPageSizeSelectorLabel: () => e("dataTable.agGrid.ariaPageSizeSelectorLabel"),
@@ -1359,19 +1360,19 @@ function ka(e, t, n) {
1359
1360
  ariaRowDeselect: () => e("dataTable.agGrid.ariaRowDeselect"),
1360
1361
  ariaRowSelect: () => e("dataTable.agGrid.ariaRowSelect")
1361
1362
  };
1362
- return ({ key: l, defaultValue: p, variableValues: f = [] }) => {
1363
+ return ({ key: l, defaultValue: m, variableValues: g = [] }) => {
1363
1364
  if (n && Object.hasOwn(n, l)) {
1364
- let g = 0;
1365
+ let u = 0;
1365
1366
  return n[l].replace(
1366
1367
  /\$\{variable\}/g,
1367
- (h) => f[g++] ?? h
1368
+ (b) => g[u++] ?? b
1368
1369
  );
1369
1370
  }
1370
- return Object.hasOwn(m, l) ? m[l](f) : p;
1371
+ return Object.hasOwn(f, l) ? f[l](g) : m;
1371
1372
  };
1372
1373
  }
1373
1374
  Wt.registerModules([Bt]);
1374
- const Na = qt("ag-theme-alfadocs ds:w-full", {
1375
+ const Ma = qt("ag-theme-alfadocs ds:w-full", {
1375
1376
  variants: {
1376
1377
  density: {
1377
1378
  default: "",
@@ -1388,14 +1389,14 @@ const Na = qt("ag-theme-alfadocs ds:w-full", {
1388
1389
  bordered: !0
1389
1390
  }
1390
1391
  });
1391
- function Pa() {
1392
- return /* @__PURE__ */ s(
1392
+ function Oa() {
1393
+ return /* @__PURE__ */ d(
1393
1394
  "div",
1394
1395
  {
1395
1396
  role: "status",
1396
1397
  "aria-live": "polite",
1397
1398
  className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
1398
- children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ s(
1399
+ children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ d(
1399
1400
  Vt,
1400
1401
  {
1401
1402
  variant: "rectangular",
@@ -1406,9 +1407,9 @@ function Pa() {
1406
1407
  }
1407
1408
  );
1408
1409
  }
1409
- function Aa() {
1410
+ function La() {
1410
1411
  const { t: e } = A("ui");
1411
- return /* @__PURE__ */ s(
1412
+ return /* @__PURE__ */ d(
1412
1413
  zt,
1413
1414
  {
1414
1415
  variant: "no-results",
@@ -1418,33 +1419,33 @@ function Aa() {
1418
1419
  }
1419
1420
  );
1420
1421
  }
1421
- function Ma(e) {
1422
+ function Va(e) {
1422
1423
  return e.map(({ pinned: t, ...n }) => n);
1423
1424
  }
1424
- function Oa(e) {
1425
+ function za(e) {
1425
1426
  return e.map(({ hide: t, pinned: n, ...r }) => r);
1426
1427
  }
1427
- function La(e, t) {
1428
+ function qa(e, t) {
1428
1429
  try {
1429
1430
  const n = localStorage.getItem(`data-table-col-state:${e}`);
1430
1431
  if (!n) return null;
1431
1432
  const r = JSON.parse(n);
1432
1433
  if (Array.isArray(r))
1433
1434
  return {
1434
- state: Oa(r),
1435
+ state: za(r),
1435
1436
  touched: []
1436
1437
  };
1437
1438
  if (typeof r != "object" || r === null) return null;
1438
1439
  const i = r;
1439
1440
  return i.v !== 2 || !Array.isArray(i.state) ? null : {
1440
- state: i.dir === t ? i.state : Ma(i.state),
1441
- touched: Array.isArray(i.touched) ? i.touched.filter((c) => typeof c == "string") : []
1441
+ state: i.dir === t ? i.state : Va(i.state),
1442
+ touched: Array.isArray(i.touched) ? i.touched.filter((s) => typeof s == "string") : []
1442
1443
  };
1443
1444
  } catch {
1444
1445
  return null;
1445
1446
  }
1446
1447
  }
1447
- function Va(e, t, n, r) {
1448
+ function _a(e, t, n, r) {
1448
1449
  try {
1449
1450
  const i = {
1450
1451
  v: 2,
@@ -1459,7 +1460,7 @@ function Va(e, t, n, r) {
1459
1460
  } catch {
1460
1461
  }
1461
1462
  }
1462
- const za = /* @__PURE__ */ new Set([
1463
+ const ja = /* @__PURE__ */ new Set([
1463
1464
  "api",
1464
1465
  "flex",
1465
1466
  "gridInitializing",
@@ -1467,42 +1468,42 @@ const za = /* @__PURE__ */ new Set([
1467
1468
  "autosizeColumns",
1468
1469
  "sizeColumnsToFit"
1469
1470
  ]);
1470
- function qa(e, t) {
1471
+ function Wa(e, t) {
1471
1472
  const {
1472
1473
  columnDefs: n,
1473
1474
  rowData: r,
1474
1475
  rowSelection: i,
1475
- pagination: c = !1,
1476
- paginationPageSize: m = 25,
1476
+ pagination: s = !1,
1477
+ paginationPageSize: f = 25,
1477
1478
  paginationPageSizeSelector: l = [10, 25, 50, 100],
1478
- gridId: p,
1479
- onSelectionChanged: f,
1480
- onSortChanged: g,
1481
- onFilterChanged: h,
1482
- noRowsOverlay: R,
1483
- loadingOverlay: v,
1484
- gridOptions: d,
1485
- density: b,
1486
- bordered: x,
1487
- heightClass: w = "ds:h-[500px]",
1488
- className: S,
1479
+ gridId: m,
1480
+ onSelectionChanged: g,
1481
+ onSortChanged: u,
1482
+ onFilterChanged: b,
1483
+ noRowsOverlay: v,
1484
+ loadingOverlay: w,
1485
+ gridOptions: p,
1486
+ density: h,
1487
+ bordered: S,
1488
+ heightClass: R = "ds:h-[500px]",
1489
+ className: C,
1489
1490
  getRowClass: D,
1490
1491
  pinnedBottomRowData: te,
1491
1492
  printMode: V = !1,
1492
- expandedRowId: C,
1493
+ expandedRowId: x,
1493
1494
  renderExpandedRow: O,
1494
1495
  onExpandedRowChange: L,
1495
- children: N
1496
- } = e, k = C !== void 0 || O !== void 0, j = d == null ? void 0 : d.getRowId;
1497
- if (k && !j)
1496
+ children: k
1497
+ } = e, N = x !== void 0 || O !== void 0, j = p == null ? void 0 : p.getRowId;
1498
+ if (N && !j)
1498
1499
  throw new Error(
1499
1500
  "DataTable: `expandedRowId` / `renderExpandedRow` require `gridOptions.getRowId` — the expanded row is addressed by row id, not by index."
1500
1501
  );
1501
1502
  const { t: W, i18n: E } = A("ui"), G = q(null), ae = q(null);
1502
- Sa(ae);
1503
- const [Y, Ce] = M(0), [J, ve] = M(""), ce = q(void 0), lt = z(
1504
- () => ka(W, E.language, d == null ? void 0 : d.localeText),
1505
- [W, E.language, d == null ? void 0 : d.localeText]
1503
+ Ga(ae);
1504
+ const [Y, Ce] = M(0), [Z, ve] = M(""), ce = q(void 0), lt = z(
1505
+ () => Aa(W, E.language, p == null ? void 0 : p.localeText),
1506
+ [W, E.language, p == null ? void 0 : p.localeText]
1506
1507
  ), [ue, st] = M(E.language);
1507
1508
  $(() => {
1508
1509
  if (ue === E.language) return;
@@ -1510,9 +1511,9 @@ function qa(e, t) {
1510
1511
  var T, y;
1511
1512
  const o = (T = G.current) == null ? void 0 : T.api;
1512
1513
  o == null || o.stopEditing();
1513
- const u = o == null ? void 0 : o.getState();
1514
- if (u) {
1515
- const { focusedCell: I, columnPinning: P, ...X } = u, H = ((y = ae.current) == null ? void 0 : y.contains(document.activeElement)) ?? !1, be = E.dir(ue) === E.dir(E.language);
1514
+ const c = o == null ? void 0 : o.getState();
1515
+ if (c) {
1516
+ const { focusedCell: I, columnPinning: P, ...X } = c, H = ((y = ae.current) == null ? void 0 : y.contains(document.activeElement)) ?? !1, be = E.dir(ue) === E.dir(E.language);
1516
1517
  ce.current = {
1517
1518
  ...X,
1518
1519
  ...H ? { focusedCell: I } : {},
@@ -1523,13 +1524,13 @@ function qa(e, t) {
1523
1524
  }, 0);
1524
1525
  return () => window.clearTimeout(a);
1525
1526
  }, [ue, E, E.language]);
1526
- const Oe = q(C);
1527
- Oe.current = C;
1527
+ const Oe = q(x);
1528
+ Oe.current = x;
1528
1529
  const Se = z(
1529
1530
  () => ({
1530
1531
  getSelection: () => {
1531
- var u;
1532
- const a = (u = G.current) == null ? void 0 : u.api;
1532
+ var c;
1533
+ const a = (c = G.current) == null ? void 0 : c.api;
1533
1534
  if (!a) return [];
1534
1535
  const o = [];
1535
1536
  for (const T of a.getSelectedNodes())
@@ -1540,23 +1541,23 @@ function qa(e, t) {
1540
1541
  var T;
1541
1542
  const o = (T = G.current) == null ? void 0 : T.api;
1542
1543
  if (!o) return;
1543
- const u = new Set(a);
1544
+ const c = new Set(a);
1544
1545
  o.forEachNode((y) => {
1545
- y.id != null && y.setSelected(u.has(y.id));
1546
+ y.id != null && y.setSelected(c.has(y.id));
1546
1547
  });
1547
1548
  },
1548
1549
  selectRange: (a, o) => {
1549
1550
  var be;
1550
- const u = (be = G.current) == null ? void 0 : be.api;
1551
- if (!u) return;
1551
+ const c = (be = G.current) == null ? void 0 : be.api;
1552
+ if (!c) return;
1552
1553
  const T = [];
1553
- u.forEachNodeAfterFilterAndSort((ee) => {
1554
+ c.forEachNodeAfterFilterAndSort((ee) => {
1554
1555
  ee.id != null && !B(ee.data) && T.push(ee.id);
1555
1556
  });
1556
1557
  const y = T.indexOf(a), I = T.indexOf(o);
1557
1558
  if (y < 0 || I < 0) return;
1558
1559
  const [P, X] = y <= I ? [y, I] : [I, y], H = new Set(T.slice(P, X + 1));
1559
- u.forEachNode((ee) => {
1560
+ c.forEachNode((ee) => {
1560
1561
  ee.id != null && ee.setSelected(H.has(ee.id));
1561
1562
  });
1562
1563
  },
@@ -1569,31 +1570,31 @@ function qa(e, t) {
1569
1570
  return ((o = (a = G.current) == null ? void 0 : a.api) == null ? void 0 : o.getFilterModel()) ?? {};
1570
1571
  },
1571
1572
  setFilter: (a) => {
1572
- var o, u;
1573
- (u = (o = G.current) == null ? void 0 : o.api) == null || u.setFilterModel(a);
1573
+ var o, c;
1574
+ (c = (o = G.current) == null ? void 0 : o.api) == null || c.setFilterModel(a);
1574
1575
  },
1575
1576
  getSort: () => {
1576
1577
  var o;
1577
1578
  const a = (o = G.current) == null ? void 0 : o.api;
1578
- return a ? a.getColumnState().filter((u) => u.sort === "asc" || u.sort === "desc").map((u) => ({ colId: u.colId, sort: u.sort })) : [];
1579
+ return a ? a.getColumnState().filter((c) => c.sort === "asc" || c.sort === "desc").map((c) => ({ colId: c.colId, sort: c.sort })) : [];
1579
1580
  },
1580
1581
  setSort: (a) => {
1581
1582
  var T;
1582
1583
  const o = (T = G.current) == null ? void 0 : T.api;
1583
1584
  if (!o) return;
1584
- const u = o.getColumnState().map((y) => {
1585
+ const c = o.getColumnState().map((y) => {
1585
1586
  const I = a.find((P) => P.colId === y.colId);
1586
1587
  return { ...y, sort: I ? I.sort : null };
1587
1588
  });
1588
- o.applyColumnState({ state: u, defaultState: { sort: null } });
1589
+ o.applyColumnState({ state: c, defaultState: { sort: null } });
1589
1590
  },
1590
1591
  getCurrentPage: () => {
1591
1592
  var a, o;
1592
1593
  return ((o = (a = G.current) == null ? void 0 : a.api) == null ? void 0 : o.paginationGetCurrentPage()) ?? 0;
1593
1594
  },
1594
1595
  goToPage: (a) => {
1595
- var o, u;
1596
- (u = (o = G.current) == null ? void 0 : o.api) == null || u.paginationGoToPage(a);
1596
+ var o, c;
1597
+ (c = (o = G.current) == null ? void 0 : o.api) == null || c.paginationGoToPage(a);
1597
1598
  },
1598
1599
  getExpandedRowId: () => Oe.current ?? null,
1599
1600
  getUserTouchedColumns: () => [...re.current],
@@ -1608,8 +1609,8 @@ function qa(e, t) {
1608
1609
  () => {
1609
1610
  }
1610
1611
  );
1611
- Lt(t, () => Se, [Se]), ta(Ia, Se, p);
1612
- const Ve = E.dir() === "rtl", dt = r === void 0, ct = aa(), { resolvedTheme: ze } = ra(), ut = (ze === "light-accessible" || ze === "dark-accessible") && b === "compact" ? "default" : b, pt = z(() => {
1612
+ Lt(t, () => Se, [Se]), ta(Pa, Se, m);
1613
+ const Ve = E.dir() === "rtl", dt = r === void 0, ct = aa(), { resolvedTheme: ze } = ra(), ut = (ze === "light-accessible" || ze === "dark-accessible") && h === "compact" ? "default" : h, pt = z(() => {
1613
1614
  if (!i) return;
1614
1615
  const a = (o) => !B(o.data);
1615
1616
  return i === "single" ? {
@@ -1623,36 +1624,36 @@ function qa(e, t) {
1623
1624
  enableClickSelection: !1,
1624
1625
  isRowSelectable: a
1625
1626
  };
1626
- }, [i]), ge = Ve ? "rtl" : "ltr", K = F(
1627
- (a, o, u) => {
1627
+ }, [i]), me = Ve ? "rtl" : "ltr", K = F(
1628
+ (a, o, c) => {
1628
1629
  const T = new Set(o);
1629
1630
  for (const y of a.getColumnState()) {
1630
1631
  if (!T.has(y.colId)) continue;
1631
1632
  const I = pe.current.get(y.colId) ?? {};
1632
- for (const P of u) I[P] = y[P];
1633
+ for (const P of c) I[P] = y[P];
1633
1634
  pe.current.set(y.colId, I);
1634
1635
  }
1635
1636
  },
1636
1637
  []
1637
1638
  ), le = F(
1638
1639
  (a) => {
1639
- p && Va(p, a, ge, re.current);
1640
+ m && _a(m, a, me, re.current);
1640
1641
  },
1641
- [p, ge]
1642
+ [m, me]
1642
1643
  ), qe = F(
1643
1644
  (a) => {
1644
- var u;
1645
+ var c;
1645
1646
  for (const T of a) re.current.add(T);
1646
- const o = (u = G.current) == null ? void 0 : u.api;
1647
+ const o = (c = G.current) == null ? void 0 : c.api;
1647
1648
  o && (K(o, a, ["hide"]), le(o));
1648
1649
  },
1649
1650
  [le, K]
1650
1651
  );
1651
1652
  Le.current = qe;
1652
- const gt = F(() => {
1653
- var u;
1654
- if (!((u = G.current) != null && u.api)) return;
1655
- const a = G.current.api, o = p ? La(p, ge) : null;
1653
+ const mt = F(() => {
1654
+ var c;
1655
+ if (!((c = G.current) != null && c.api)) return;
1656
+ const a = G.current.api, o = m ? qa(m, me) : null;
1656
1657
  if (!(!o || ce.current)) {
1657
1658
  for (const T of o.touched) re.current.add(T);
1658
1659
  a.applyColumnState({
@@ -1660,11 +1661,11 @@ function qa(e, t) {
1660
1661
  applyOrder: !0
1661
1662
  }), K(a, o.touched, ["hide"]);
1662
1663
  }
1663
- }, [p, ge, K]), mt = F(
1664
+ }, [m, me, K]), gt = F(
1664
1665
  (a) => {
1665
- var u;
1666
+ var c;
1666
1667
  if (a.source !== "gridOptionsChanged") return;
1667
- const o = (u = G.current) == null ? void 0 : u.api;
1668
+ const o = (c = G.current) == null ? void 0 : c.api;
1668
1669
  !o || pe.current.size === 0 || o.applyColumnState({
1669
1670
  state: [...pe.current].map(([T, y]) => ({
1670
1671
  colId: T,
@@ -1673,15 +1674,15 @@ function qa(e, t) {
1673
1674
  });
1674
1675
  },
1675
1676
  []
1676
- ), me = F(
1677
+ ), ge = F(
1677
1678
  (a) => {
1678
1679
  var T;
1679
1680
  const o = (T = G.current) == null ? void 0 : T.api;
1680
1681
  if (!o) return;
1681
- const u = (a.columns ?? (a.column ? [a.column] : [])).map((y) => y.getColId());
1682
- if (a.source && za.has(a.source)) {
1682
+ const c = (a.columns ?? (a.column ? [a.column] : [])).map((y) => y.getColId());
1683
+ if (a.source && ja.has(a.source)) {
1683
1684
  if (a.source === "api" && "visible" in a) {
1684
- const y = u.filter(
1685
+ const y = c.filter(
1685
1686
  (I) => re.current.has(I)
1686
1687
  );
1687
1688
  y.length > 0 && (K(o, y, ["hide"]), le(o));
@@ -1689,18 +1690,18 @@ function qa(e, t) {
1689
1690
  return;
1690
1691
  }
1691
1692
  if ("visible" in a) {
1692
- for (const y of u) re.current.add(y);
1693
- K(o, u, ["hide"]);
1694
- } else "pinned" in a ? K(o, u, ["pinned"]) : "flexColumns" in a && K(o, u, ["width", "flex"]);
1693
+ for (const y of c) re.current.add(y);
1694
+ K(o, c, ["hide"]);
1695
+ } else "pinned" in a ? K(o, c, ["pinned"]) : "flexColumns" in a && K(o, c, ["width", "flex"]);
1695
1696
  le(o);
1696
1697
  },
1697
1698
  [le, K]
1698
1699
  ), ft = z(() => {
1699
- if (!d) return;
1700
- const a = { ...d };
1701
- return delete a.defaultColDef, delete a.initialState, k && (delete a.getRowId, delete a.isFullWidthRow, delete a.fullWidthCellRenderer, delete a.getRowHeight, delete a.postSortRows, delete a.getRowClass, delete a.defaultCsvExportParams, delete a.defaultExcelExportParams), a;
1702
- }, [k, d]), _e = q(/* @__PURE__ */ new Map()), se = q(d);
1703
- se.current = d;
1700
+ if (!p) return;
1701
+ const a = { ...p };
1702
+ return delete a.defaultColDef, delete a.initialState, N && (delete a.getRowId, delete a.isFullWidthRow, delete a.fullWidthCellRenderer, delete a.getRowHeight, delete a.postSortRows, delete a.getRowClass, delete a.defaultCsvExportParams, delete a.defaultExcelExportParams), a;
1703
+ }, [N, p]), _e = q(/* @__PURE__ */ new Map()), se = q(p);
1704
+ se.current = p;
1704
1705
  const je = F(
1705
1706
  (a) => {
1706
1707
  var o;
@@ -1708,100 +1709,100 @@ function qa(e, t) {
1708
1709
  data: a,
1709
1710
  level: 0,
1710
1711
  api: (o = G.current) == null ? void 0 : o.api,
1711
- context: d == null ? void 0 : d.context
1712
+ context: p == null ? void 0 : p.context
1712
1713
  });
1713
1714
  },
1714
- [j, d == null ? void 0 : d.context]
1715
- ), Z = z(() => {
1716
- if (!k || C == null || !r) return null;
1717
- const a = r.find((o) => je(o) === C);
1718
- return a === void 0 ? null : { id: C, row: a };
1719
- }, [k, C, je, r]), bt = z(() => {
1720
- if (!Z || !r) return r;
1721
- const a = r.indexOf(Z.row), o = Fa(Z.row, Z.id);
1715
+ [j, p == null ? void 0 : p.context]
1716
+ ), J = z(() => {
1717
+ if (!N || x == null || !r) return null;
1718
+ const a = r.find((o) => je(o) === x);
1719
+ return a === void 0 ? null : { id: x, row: a };
1720
+ }, [N, x, je, r]), bt = z(() => {
1721
+ if (!J || !r) return r;
1722
+ const a = r.indexOf(J.row), o = Na(J.row, J.id);
1722
1723
  return [
1723
1724
  ...r.slice(0, a + 1),
1724
1725
  o,
1725
1726
  ...r.slice(a + 1)
1726
1727
  ];
1727
- }, [Z, r]), ht = F(
1728
- (a) => B(a.data) ? Ga(a.data[oe]) : j(a),
1728
+ }, [J, r]), ht = F(
1729
+ (a) => B(a.data) ? Ia(a.data[oe]) : j(a),
1729
1730
  [j]
1730
1731
  ), Tt = F(
1731
1732
  (a) => {
1732
- var o, u;
1733
- return B(a.rowNode.data) || (((u = (o = se.current) == null ? void 0 : o.isFullWidthRow) == null ? void 0 : u.call(o, a)) ?? !1);
1733
+ var o, c;
1734
+ return B(a.rowNode.data) || (((c = (o = se.current) == null ? void 0 : o.isFullWidthRow) == null ? void 0 : c.call(o, a)) ?? !1);
1734
1735
  },
1735
1736
  []
1736
1737
  ), yt = F(
1737
1738
  (a) => {
1738
- var o, u;
1739
- return B(a.data) ? _e.current.get(a.node.id ?? "") : (u = (o = se.current) == null ? void 0 : o.getRowHeight) == null ? void 0 : u.call(o, a);
1739
+ var o, c;
1740
+ return B(a.data) ? _e.current.get(a.node.id ?? "") : (c = (o = se.current) == null ? void 0 : o.getRowHeight) == null ? void 0 : c.call(o, a);
1740
1741
  },
1741
1742
  []
1742
1743
  ), xt = F(
1743
1744
  (a) => {
1744
1745
  var P, X;
1745
1746
  (X = (P = se.current) == null ? void 0 : P.postSortRows) == null || X.call(P, a);
1746
- const { nodes: o } = a, u = o.findIndex((H) => B(H.data));
1747
- if (u < 0) return;
1748
- const [T] = o.splice(u, 1), y = T.data[oe], I = o.findIndex((H) => H.id === y);
1747
+ const { nodes: o } = a, c = o.findIndex((H) => B(H.data));
1748
+ if (c < 0) return;
1749
+ const [T] = o.splice(c, 1), y = T.data[oe], I = o.findIndex((H) => H.id === y);
1749
1750
  o.splice(I < 0 ? o.length : I + 1, 0, T);
1750
1751
  },
1751
1752
  []
1752
1753
  ), wt = F(
1753
1754
  (a) => {
1754
- var o, u;
1755
- return B(a.data) ? Ra : ((u = (o = se.current) == null ? void 0 : o.getRowClass) == null ? void 0 : u.call(o, a)) ?? (D == null ? void 0 : D(a));
1755
+ var o, c;
1756
+ return B(a.data) ? Fa : ((c = (o = se.current) == null ? void 0 : o.getRowClass) == null ? void 0 : c.call(o, a)) ?? (D == null ? void 0 : D(a));
1756
1757
  },
1757
1758
  [D]
1758
1759
  ), fe = F(
1759
1760
  (a) => B(a.node.data),
1760
1761
  []
1761
1762
  ), Ct = z(() => {
1762
- if (!k) return;
1763
- const a = d == null ? void 0 : d.defaultCsvExportParams;
1763
+ if (!N) return;
1764
+ const a = p == null ? void 0 : p.defaultCsvExportParams;
1764
1765
  return {
1765
1766
  ...a,
1766
1767
  shouldRowBeSkipped: (o) => {
1767
- var u;
1768
- return fe(o) || (((u = a == null ? void 0 : a.shouldRowBeSkipped) == null ? void 0 : u.call(a, o)) ?? !1);
1768
+ var c;
1769
+ return fe(o) || (((c = a == null ? void 0 : a.shouldRowBeSkipped) == null ? void 0 : c.call(a, o)) ?? !1);
1769
1770
  }
1770
1771
  };
1771
- }, [k, d == null ? void 0 : d.defaultCsvExportParams, fe]), vt = z(() => {
1772
- if (!k) return;
1773
- const a = d == null ? void 0 : d.defaultExcelExportParams;
1772
+ }, [N, p == null ? void 0 : p.defaultCsvExportParams, fe]), vt = z(() => {
1773
+ if (!N) return;
1774
+ const a = p == null ? void 0 : p.defaultExcelExportParams;
1774
1775
  return {
1775
1776
  ...a,
1776
1777
  shouldRowBeSkipped: (o) => {
1777
- var u;
1778
- return fe(o) || (((u = a == null ? void 0 : a.shouldRowBeSkipped) == null ? void 0 : u.call(a, o)) ?? !1);
1778
+ var c;
1779
+ return fe(o) || (((c = a == null ? void 0 : a.shouldRowBeSkipped) == null ? void 0 : c.call(a, o)) ?? !1);
1779
1780
  }
1780
1781
  };
1781
- }, [k, d == null ? void 0 : d.defaultExcelExportParams, fe]), Re = d == null ? void 0 : d.fullWidthCellRenderer, St = z(
1782
+ }, [N, p == null ? void 0 : p.defaultExcelExportParams, fe]), Re = p == null ? void 0 : p.fullWidthCellRenderer, St = z(
1782
1783
  () => ({
1783
1784
  renderExpandedRow: O,
1784
1785
  onExpandedRowChange: L,
1785
- expanded: Z,
1786
+ expanded: J,
1786
1787
  heights: _e.current,
1787
1788
  fallbackRenderer: typeof Re == "function" ? Re : void 0
1788
1789
  }),
1789
1790
  [
1790
1791
  Re,
1791
- Z,
1792
+ J,
1792
1793
  L,
1793
1794
  O
1794
1795
  ]
1795
1796
  ), Rt = F(() => {
1796
- var u;
1797
- const a = (u = G.current) == null ? void 0 : u.api;
1797
+ var c;
1798
+ const a = (c = G.current) == null ? void 0 : c.api;
1798
1799
  if (!a) return;
1799
1800
  const o = a.getSelectedRows().filter((T) => !B(T));
1800
- Ce(o.length), f == null || f(o);
1801
- }, [f]), Dt = F(
1801
+ Ce(o.length), g == null || g(o);
1802
+ }, [g]), Dt = F(
1802
1803
  (a) => {
1803
- var u;
1804
- const o = (u = G.current) == null ? void 0 : u.api;
1804
+ var c;
1805
+ const o = (c = G.current) == null ? void 0 : c.api;
1805
1806
  if (o) {
1806
1807
  const y = o.getColumnState().find((I) => I.sort);
1807
1808
  if (y) {
@@ -1815,78 +1816,78 @@ function qa(e, t) {
1815
1816
  } else
1816
1817
  ve("");
1817
1818
  }
1818
- g == null || g(a);
1819
+ u == null || u(a);
1819
1820
  },
1820
- [g, W]
1821
+ [u, W]
1821
1822
  ), Gt = F(
1822
1823
  (a) => {
1823
- h == null || h(a);
1824
+ b == null || b(a);
1824
1825
  },
1825
- [h]
1826
+ [b]
1826
1827
  );
1827
1828
  $(() => {
1828
- if (!J) return;
1829
+ if (!Z) return;
1829
1830
  const a = setTimeout(() => ve(""), 3e3);
1830
1831
  return () => clearTimeout(a);
1831
- }, [J]);
1832
- const Ft = R ?? Aa, Et = v ?? Pa, It = F(
1832
+ }, [Z]);
1833
+ const Ft = v ?? La, Et = w ?? Oa, It = F(
1833
1834
  () => {
1834
1835
  var a;
1835
1836
  return (a = G.current) == null ? void 0 : a.api;
1836
1837
  },
1837
1838
  []
1838
- ), kt = F(() => {
1839
+ ), Nt = F(() => {
1839
1840
  typeof window < "u" && window.print();
1840
- }, []), Nt = Na({
1841
+ }, []), kt = Ma({
1841
1842
  density: ut,
1842
- bordered: x,
1843
- className: S
1844
- }), Pt = N ?? /* @__PURE__ */ s("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ _(
1843
+ bordered: S,
1844
+ className: C
1845
+ }), Pt = k ?? /* @__PURE__ */ d("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ _(
1845
1846
  $t,
1846
1847
  {
1847
1848
  role: "toolbar",
1848
1849
  "aria-label": W("dataTable.tableActions"),
1849
1850
  className: "ds:bg-[var(--background)]",
1850
1851
  children: [
1851
- /* @__PURE__ */ s(xe.ExportMenu, {}),
1852
- /* @__PURE__ */ s(xe.Print, {}),
1853
- /* @__PURE__ */ s(xe.ColumnToggle, {})
1852
+ /* @__PURE__ */ d(xe.ExportMenu, {}),
1853
+ /* @__PURE__ */ d(xe.Print, {}),
1854
+ /* @__PURE__ */ d(xe.ColumnToggle, {})
1854
1855
  ]
1855
1856
  }
1856
- ) }), At = V ? !1 : c;
1857
+ ) }), At = V ? !1 : s;
1857
1858
  return /* @__PURE__ */ _(
1858
1859
  "div",
1859
1860
  {
1860
1861
  className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
1861
1862
  "aria-busy": dt ? "true" : void 0,
1862
1863
  "data-component": "data-table",
1863
- "data-component-id": p,
1864
+ "data-component-id": m,
1864
1865
  "data-print-mode": V ? "true" : void 0,
1865
1866
  children: [
1866
- !V && /* @__PURE__ */ s(
1867
- sa,
1867
+ !V && /* @__PURE__ */ d(
1868
+ ua,
1868
1869
  {
1869
1870
  getApi: It,
1870
1871
  selectionCount: Y,
1871
- onPrint: kt,
1872
+ onPrint: Nt,
1872
1873
  markColumnsUserTouched: qe,
1873
1874
  children: Pt
1874
1875
  }
1875
1876
  ),
1876
- /* @__PURE__ */ s(
1877
+ /* @__PURE__ */ d(
1877
1878
  "div",
1878
1879
  {
1879
1880
  ref: ae,
1880
- className: [Nt, V ? "" : w].join(" ").trim(),
1881
- children: /* @__PURE__ */ s(
1881
+ className: [kt, V ? "" : R].join(" ").trim(),
1882
+ children: /* @__PURE__ */ d(
1882
1883
  ot.Provider,
1883
1884
  {
1884
1885
  value: St,
1885
- children: /* @__PURE__ */ s(
1886
+ children: /* @__PURE__ */ d(
1886
1887
  jt,
1887
1888
  {
1888
1889
  ref: G,
1889
- initialState: ce.current ?? (d == null ? void 0 : d.initialState),
1890
+ initialState: ce.current ?? (p == null ? void 0 : p.initialState),
1890
1891
  theme: "legacy",
1891
1892
  columnDefs: n,
1892
1893
  rowData: bt,
@@ -1897,18 +1898,18 @@ function qa(e, t) {
1897
1898
  // language instead of AG Grid's stock browser-skinned input.
1898
1899
  // Number / date / select columns opt into their dedicated
1899
1900
  // wrapper per-column.
1900
- filter: wa,
1901
- floatingFilterComponent: Ca,
1901
+ filter: Sa,
1902
+ floatingFilterComponent: Ra,
1902
1903
  resizable: !0,
1903
1904
  floatingFilter: !0,
1904
1905
  // §13d — faint sort icon advertises which columns are
1905
1906
  // sortable. v33+ moved this from grid-level to defaultColDef.
1906
1907
  unSortIcon: !0,
1907
- ...d == null ? void 0 : d.defaultColDef
1908
+ ...p == null ? void 0 : p.defaultColDef
1908
1909
  },
1909
1910
  rowSelection: pt,
1910
1911
  pagination: At,
1911
- paginationPageSize: m,
1912
+ paginationPageSize: f,
1912
1913
  paginationPageSizeSelector: l,
1913
1914
  paginationNumberFormatter: (a) => new Intl.NumberFormat(E.language).format(a.value),
1914
1915
  animateRows: !ct,
@@ -1933,23 +1934,23 @@ function qa(e, t) {
1933
1934
  rowDragText: (a, o) => W("dataTable.dragRows", { count: o }),
1934
1935
  noRowsOverlayComponent: Ft,
1935
1936
  loadingOverlayComponent: Et,
1936
- getRowClass: k ? wt : D,
1937
+ getRowClass: N ? wt : D,
1937
1938
  pinnedBottomRowData: te,
1938
1939
  domLayout: V ? "autoHeight" : void 0,
1939
- onGridReady: gt,
1940
- onNewColumnsLoaded: mt,
1941
- onColumnMoved: me,
1942
- onColumnResized: me,
1943
- onColumnPinned: me,
1944
- onColumnVisible: me,
1940
+ onGridReady: mt,
1941
+ onNewColumnsLoaded: gt,
1942
+ onColumnMoved: ge,
1943
+ onColumnResized: ge,
1944
+ onColumnPinned: ge,
1945
+ onColumnVisible: ge,
1945
1946
  onSortChanged: Dt,
1946
1947
  onFilterChanged: Gt,
1947
1948
  onSelectionChanged: Rt,
1948
1949
  ...ft,
1949
- ...k ? {
1950
+ ...N ? {
1950
1951
  getRowId: ht,
1951
1952
  isFullWidthRow: Tt,
1952
- fullWidthCellRenderer: Ea,
1953
+ fullWidthCellRenderer: ka,
1953
1954
  getRowHeight: yt,
1954
1955
  postSortRows: xt,
1955
1956
  defaultCsvExportParams: Ct,
@@ -1962,32 +1963,32 @@ function qa(e, t) {
1962
1963
  )
1963
1964
  }
1964
1965
  ),
1965
- !V && Y > 0 && /* @__PURE__ */ s("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ s("span", { children: W("dataTable.selected", { count: Y }) }) }),
1966
- /* @__PURE__ */ s("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: J })
1966
+ !V && Y > 0 && /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: /* @__PURE__ */ d("span", { children: W("dataTable.selected", { count: Y }) }) }),
1967
+ /* @__PURE__ */ d("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: Z })
1967
1968
  ]
1968
1969
  }
1969
1970
  );
1970
1971
  }
1971
- const it = U(qa);
1972
+ const it = U(Wa);
1972
1973
  it.displayName = "DataTable";
1973
- const _a = Object.assign(it, {
1974
+ const Ba = Object.assign(it, {
1974
1975
  Toolbar: xe
1975
- }), Cr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1976
+ }), Rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1976
1977
  __proto__: null,
1977
- DataTable: _a
1978
+ DataTable: Ba
1978
1979
  }, Symbol.toStringTag, { value: "Module" }));
1979
1980
  export {
1980
- _a as D,
1981
- Ra as E,
1982
- wa as T,
1983
- Ca as a,
1981
+ Ba as D,
1982
+ Fa as E,
1983
+ Sa as T,
1984
+ Ra as a,
1984
1985
  xe as b,
1985
- sa as c,
1986
- Ia as d,
1987
- Je as e,
1988
- Ga as f,
1989
- wr as g,
1990
- Cr as h,
1986
+ ua as c,
1987
+ Pa as d,
1988
+ Ze as e,
1989
+ Ia as f,
1990
+ Sr as g,
1991
+ Rr as h,
1991
1992
  B as i
1992
1993
  };
1993
- //# sourceMappingURL=data-table-BlONA1rP.js.map
1994
+ //# sourceMappingURL=data-table-B_IcS0Ke.js.map