@alfadocs/ui-kit 1.48.0 → 1.49.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/_chunks/{agenda-card-C4h0xMGi.js → agenda-card-CjjxlA9K.js} +2 -2
  2. package/dist/_chunks/{agenda-tray-DNZYW2xt.js → agenda-tray-BhZASyJm.js} +2 -2
  3. package/dist/_chunks/{alia-sidebar-Crn8OGPF.js → alia-sidebar-Dx-oeOV2.js} +3 -3
  4. package/dist/_chunks/{appointment-card-CvGU0QP6.js → appointment-card-BgLpE6T5.js} +2 -2
  5. package/dist/_chunks/{appointment-peek--dmWznLZ.js → appointment-peek-BDiCIBb-.js} +2 -2
  6. package/dist/_chunks/{appointment-timeline-y9uYZMUd.js → appointment-timeline-wQ-PdkFV.js} +2 -2
  7. package/dist/_chunks/{appointment-tray-BTecNeSb.js → appointment-tray-D7Gt6m8x.js} +2 -2
  8. package/dist/_chunks/{avatar-CkDeQOSI.js → avatar-BVvjKNTp.js} +2 -2
  9. package/dist/_chunks/{balance-badge-cell-CA0YNJMR.js → balance-badge-cell-klaxFNL_.js} +3 -3
  10. package/dist/_chunks/{booking-BQYFDcrz.js → booking-BF9pVa2n.js} +377 -381
  11. package/dist/_chunks/{calendar-DjoJ9ovF.js → calendar-Bt44KMNO.js} +3 -2
  12. package/dist/_chunks/calendar-workspace-C_eXL1by.js +10464 -0
  13. package/dist/_chunks/{chat-message-Co_NRGM4.js → chat-message-B4ihjNy3.js} +2 -2
  14. package/dist/_chunks/{clinical-note-card-DYDQ3q2x.js → clinical-note-card-B7s5BtEl.js} +2 -2
  15. package/dist/_chunks/{data-table-DWOSxlsy.js → data-table-CrI3_bjH.js} +411 -410
  16. package/dist/_chunks/{dependent-selector-BR_8D2Qu.js → dependent-selector-58hTg5rB.js} +2 -2
  17. package/dist/_chunks/{entity-summary-Ckz_U00H.js → entity-summary-CFJfBdVP.js} +2 -2
  18. package/dist/_chunks/{file-manager-CqgxLqoA.js → file-manager-C6QQPQV5.js} +2 -2
  19. package/dist/_chunks/link-cell-renderer-CkNbUsBM.js +867 -0
  20. package/dist/_chunks/{marketplace-app-shell-Dehuxbi-.js → marketplace-app-shell-1uKqs4gD.js} +2 -2
  21. package/dist/_chunks/{message-card-DKOtnBHy.js → message-card-C2zsvyj0.js} +2 -2
  22. package/dist/_chunks/{message-tray-COMEtmyr.js → message-tray-CMlmxdH2.js} +2 -2
  23. package/dist/_chunks/{notes-panel-BiOxZL_0.js → notes-panel-xxpFt-I1.js} +2 -2
  24. package/dist/_chunks/{operator-hero-5061fkY5.js → operator-hero-DyrNLoRO.js} +2 -2
  25. package/dist/_chunks/{patient-details-C23Hdm8v.js → patient-details-tTlvrJSU.js} +2 -2
  26. package/dist/_chunks/{patient-summary-card-C36L3h7h.js → patient-summary-card-DQ__6DR-.js} +2 -2
  27. package/dist/_chunks/{practice-profile-hero-CPy5h2yI.js → practice-profile-hero-B-WcJYNH.js} +2 -2
  28. package/dist/_chunks/{practice-results-t2BHht91.js → practice-results-EKRiqWtQ.js} +2 -2
  29. package/dist/_chunks/{signature-request-15D363w5.js → signature-request-BUGeG8oD.js} +2 -2
  30. package/dist/_chunks/{task-card-CTTQfPS6.js → task-card-jaOhnj_q.js} +31 -30
  31. package/dist/_chunks/{task-tray-JA-qp_pB.js → task-tray-HHyxi9ga.js} +2 -2
  32. package/dist/_chunks/{tasks-panel-C_dVDQKJ.js → tasks-panel-DbSjq_mz.js} +2 -2
  33. package/dist/_chunks/{timeline-61AihzYz.js → timeline-ChY7iZrs.js} +2 -2
  34. package/dist/_chunks/{use-appointment-details-read-D2FH-cHF.js → use-appointment-details-read-5-hV-2xA.js} +4 -4
  35. package/dist/agent-catalog.json +1 -1
  36. package/dist/components/agenda-card/index.js +1 -1
  37. package/dist/components/agenda-tray/index.js +1 -1
  38. package/dist/components/appointment-card/index.js +2 -2
  39. package/dist/components/appointment-details-panel/index.js +1 -1
  40. package/dist/components/appointment-peek/index.js +1 -1
  41. package/dist/components/appointment-timeline/index.js +1 -1
  42. package/dist/components/avatar/index.js +1 -1
  43. package/dist/components/booking/cascade.d.ts +5 -0
  44. package/dist/components/booking/index.js +1 -1
  45. package/dist/components/calendar/index.js +1 -1
  46. package/dist/components/chat-message/index.js +1 -1
  47. package/dist/components/clinical-note-card/index.js +1 -1
  48. package/dist/components/data-table/filters/number-filter.d.ts +26 -12
  49. package/dist/components/data-table/index.js +2 -2
  50. package/dist/components/dependent-selector/index.js +1 -1
  51. package/dist/components/entity-summary/index.js +1 -1
  52. package/dist/components/file-manager/index.js +1 -1
  53. package/dist/components/message-card/index.js +1 -1
  54. package/dist/components/message-tray/index.js +1 -1
  55. package/dist/components/notes-panel/index.js +1 -1
  56. package/dist/components/operator-hero/index.js +1 -1
  57. package/dist/components/patient-details/index.js +1 -1
  58. package/dist/components/patient-summary-card/index.js +1 -1
  59. package/dist/components/patient-table/index.js +1 -1
  60. package/dist/components/practice-profile-hero/index.js +1 -1
  61. package/dist/components/practice-results/index.js +1 -1
  62. package/dist/components/task-card/index.js +1 -1
  63. package/dist/components/task-card/task-card.d.ts +3 -2
  64. package/dist/components/task-tray/index.js +1 -1
  65. package/dist/components/tasks-panel/index.js +1 -1
  66. package/dist/components/timeline/index.js +1 -1
  67. package/dist/i18n/locales/ar.d.ts +19 -14
  68. package/dist/i18n/locales/ar.js +19 -14
  69. package/dist/i18n/locales/de.d.ts +19 -14
  70. package/dist/i18n/locales/de.js +19 -14
  71. package/dist/i18n/locales/el.d.ts +19 -14
  72. package/dist/i18n/locales/el.js +19 -14
  73. package/dist/i18n/locales/en.d.ts +5 -0
  74. package/dist/i18n/locales/en.js +6 -0
  75. package/dist/i18n/locales/es.d.ts +19 -14
  76. package/dist/i18n/locales/es.js +19 -14
  77. package/dist/i18n/locales/fr.d.ts +19 -14
  78. package/dist/i18n/locales/fr.js +19 -14
  79. package/dist/i18n/locales/hi.d.ts +19 -14
  80. package/dist/i18n/locales/hi.js +19 -14
  81. package/dist/i18n/locales/it.d.ts +5 -0
  82. package/dist/i18n/locales/it.js +6 -0
  83. package/dist/i18n/locales/ja.d.ts +19 -14
  84. package/dist/i18n/locales/ja.js +19 -14
  85. package/dist/i18n/locales/nl.d.ts +19 -14
  86. package/dist/i18n/locales/nl.js +19 -14
  87. package/dist/i18n/locales/pl.d.ts +19 -14
  88. package/dist/i18n/locales/pl.js +19 -14
  89. package/dist/i18n/locales/pt.d.ts +19 -14
  90. package/dist/i18n/locales/pt.js +19 -14
  91. package/dist/i18n/locales/ro.d.ts +19 -14
  92. package/dist/i18n/locales/ro.js +19 -14
  93. package/dist/i18n/locales/ru.d.ts +19 -14
  94. package/dist/i18n/locales/ru.js +19 -14
  95. package/dist/i18n/locales/sq.d.ts +19 -14
  96. package/dist/i18n/locales/sq.js +19 -14
  97. package/dist/i18n/locales/sv.d.ts +19 -14
  98. package/dist/i18n/locales/sv.js +19 -14
  99. package/dist/i18n/locales/tr.d.ts +19 -14
  100. package/dist/i18n/locales/tr.js +19 -14
  101. package/dist/i18n/locales/zh.d.ts +19 -14
  102. package/dist/i18n/locales/zh.js +19 -14
  103. package/dist/index.js +34 -34
  104. package/dist/locales/ar.json +19 -14
  105. package/dist/locales/de.json +19 -14
  106. package/dist/locales/el.json +19 -14
  107. package/dist/locales/en.json +5 -0
  108. package/dist/locales/es.json +19 -14
  109. package/dist/locales/fr.json +19 -14
  110. package/dist/locales/hi.json +19 -14
  111. package/dist/locales/it.json +5 -0
  112. package/dist/locales/ja.json +19 -14
  113. package/dist/locales/nl.json +19 -14
  114. package/dist/locales/pl.json +19 -14
  115. package/dist/locales/pt.json +19 -14
  116. package/dist/locales/ro.json +19 -14
  117. package/dist/locales/ru.json +19 -14
  118. package/dist/locales/sq.json +19 -14
  119. package/dist/locales/sv.json +19 -14
  120. package/dist/locales/tr.json +19 -14
  121. package/dist/locales/zh.json +19 -14
  122. package/dist/patterns/alia-assistant/index.js +1 -1
  123. package/dist/patterns/calendar/calendar-workspace.d.ts +10 -0
  124. package/dist/patterns/calendar/calendar.surface.d.ts +4 -1
  125. package/dist/patterns/calendar/index.js +1 -1
  126. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  127. package/dist/patterns/signature-request/index.js +1 -1
  128. package/dist/tokens.css +1 -1
  129. package/package.json +12 -12
  130. package/dist/_chunks/calendar-workspace-D8zX9JWm.js +0 -10423
  131. package/dist/_chunks/link-cell-renderer-Tswqf6BT.js +0 -778
@@ -1,21 +1,21 @@
1
1
  import { jsx as s, jsxs as L } from "react/jsx-runtime";
2
- import { useMemo as j, forwardRef as $, useState as G, useCallback as D, useEffect as K, useRef as B, createContext as Ce, useContext as Re, isValidElement as At, cloneElement as Pt, useImperativeHandle as Ot } from "react";
2
+ import { useMemo as j, forwardRef as B, useState as G, useCallback as D, useEffect as K, useRef as W, createContext as Ce, useContext as Re, isValidElement as At, cloneElement as Pt, useImperativeHandle as Ot } from "react";
3
3
  import { S as Mt } from "./skeleton-B1KTdJ4N.js";
4
4
  import { E as zt } from "./empty-state-DTBZ1ENT.js";
5
5
  import { c as Gt } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as A } from "react-i18next";
7
7
  import { useGridFilter as _t, AgGridReact as jt } from "ag-grid-react";
8
8
  import { ModuleRegistry as Lt, AllCommunityModule as qt } from "ag-grid-community";
9
- import { I as Wt } from "./icon-button-group-B_426QN_.js";
9
+ import { I as $t } from "./icon-button-group-B_426QN_.js";
10
10
  import { B as de } from "./button-18oBsI3n.js";
11
11
  import { I as oe } from "./icon-button-CY7GU_Se.js";
12
12
  import { P as me } from "./popover-Dvb40vPH.js";
13
- import { C as Bt } from "./checkbox-CZkipDn7.js";
13
+ import { C as Wt } from "./checkbox-CZkipDn7.js";
14
14
  import { T as Se } from "./text-input-CUvCb6ST.js";
15
- import { T as We } from "./tag-B65tLWvD.js";
16
- import { D as he } from "./dropdown-menu-C8PaW3lR.js";
17
- import { X as $e } from "./x-B5YnXwCz.js";
18
- import { R as $t } from "./refresh-cw-DnI0cLFC.js";
15
+ import { T as $e } from "./tag-B65tLWvD.js";
16
+ import { D as be } from "./dropdown-menu-C8PaW3lR.js";
17
+ import { X as Be } from "./x-B5YnXwCz.js";
18
+ import { R as Bt } from "./refresh-cw-DnI0cLFC.js";
19
19
  import { S as Ie } from "./search-QbWPlY5f.js";
20
20
  import { c as Kt } from "./createLucideIcon-DhHxpK9K.js";
21
21
  import { G as Ht } from "./grip-vertical-onSb1JXO.js";
@@ -69,11 +69,11 @@ function ar({
69
69
  markColumnsUserTouched: a,
70
70
  children: i
71
71
  }) {
72
- const d = j(
72
+ const l = j(
73
73
  () => ({ getApi: e, selectionCount: t, onPrint: n, markColumnsUserTouched: a }),
74
74
  [e, t, n, a]
75
75
  );
76
- return /* @__PURE__ */ s(He.Provider, { value: d, children: i });
76
+ return /* @__PURE__ */ s(He.Provider, { value: l, children: i });
77
77
  }
78
78
  const nr = [
79
79
  "data-table-toolbar",
@@ -87,7 +87,7 @@ const nr = [
87
87
  // No card surface: the toolbar sits directly on the page background,
88
88
  // matching the header-tools layout the Patients / Care Plan List
89
89
  // patterns established (the old bg-card + border + shadow bar is gone).
90
- ].join(" "), Ve = $(
90
+ ].join(" "), Ve = B(
91
91
  ({ className: e, children: t, ...n }, a) => /* @__PURE__ */ s(
92
92
  "div",
93
93
  {
@@ -100,7 +100,7 @@ const nr = [
100
100
  )
101
101
  );
102
102
  Ve.displayName = "DataTable.Toolbar";
103
- const Ue = $(
103
+ const Ue = B(
104
104
  ({ className: e, children: t, ...n }, a) => /* @__PURE__ */ s(
105
105
  "div",
106
106
  {
@@ -120,7 +120,7 @@ const Ue = $(
120
120
  )
121
121
  );
122
122
  Ue.displayName = "DataTable.Toolbar.FilterBar";
123
- const Xe = $(
123
+ const Xe = B(
124
124
  ({ className: e, children: t, ...n }, a) => /* @__PURE__ */ s(
125
125
  "div",
126
126
  {
@@ -136,12 +136,12 @@ const Xe = $(
136
136
  )
137
137
  );
138
138
  Xe.displayName = "DataTable.Toolbar.Actions";
139
- const Ee = $(
139
+ const Ee = B(
140
140
  ({ label: e, onExport: t, intent: n = "outline", ...a }, i) => {
141
- const { t: d } = A(), { getApi: g } = V("DataTable.Toolbar.ExportCsv"), h = D(() => {
142
- const p = g();
143
- p && (t ? t(p) : p.exportDataAsCsv());
144
- }, [g, t]);
141
+ const { t: l } = A(), { getApi: m } = V("DataTable.Toolbar.ExportCsv"), u = D(() => {
142
+ const f = m();
143
+ f && (t ? t(f) : f.exportDataAsCsv());
144
+ }, [m, t]);
145
145
  return /* @__PURE__ */ s(
146
146
  oe,
147
147
  {
@@ -149,8 +149,8 @@ const Ee = $(
149
149
  type: "button",
150
150
  intent: n,
151
151
  icon: /* @__PURE__ */ s(ye, { "aria-hidden": !0 }),
152
- tooltip: e ?? d("dataTable.exportCsv"),
153
- onClick: h,
152
+ tooltip: e ?? l("dataTable.exportCsv"),
153
+ onClick: u,
154
154
  ...a
155
155
  }
156
156
  );
@@ -171,28 +171,28 @@ async function Qe(e, t) {
171
171
  const [{ jsPDF: n }, { default: a }] = await Promise.all([
172
172
  import("./jspdf.es.min-DaapWjR1.js").then((C) => C.j),
173
173
  import("./jspdf.plugin.autotable-CSiDNyPn.js")
174
- ]), d = (e.getColumns() ?? []).filter((C) => C.isVisible()), g = [
175
- d.map((C) => e.getDisplayNameForColumn(C, null) ?? "")
176
- ], h = [];
174
+ ]), l = (e.getColumns() ?? []).filter((C) => C.isVisible()), m = [
175
+ l.map((C) => e.getDisplayNameForColumn(C, null) ?? "")
176
+ ], u = [];
177
177
  e.forEachNodeAfterFilterAndSort((C) => {
178
178
  if (!C.data) return;
179
- const c = d.map((f) => {
180
- const w = e.getCellValue({
179
+ const c = l.map((g) => {
180
+ const T = e.getCellValue({
181
181
  rowNode: C,
182
- colKey: f,
182
+ colKey: g,
183
183
  useFormatter: !0
184
184
  });
185
- return w == null ? "" : String(w);
185
+ return T == null ? "" : String(T);
186
186
  });
187
- h.push(c);
187
+ u.push(c);
188
188
  });
189
- const p = ae("--muted", [240, 240, 240]), m = ae("--foreground", [30, 30, 30]), u = ae("--card-foreground", [30, 30, 30]), b = ae("--card", [250, 250, 250]), S = new n({ orientation: "landscape" });
189
+ const f = ae("--muted", [240, 240, 240]), b = ae("--foreground", [30, 30, 30]), p = ae("--card-foreground", [30, 30, 30]), h = ae("--card", [250, 250, 250]), S = new n({ orientation: "landscape" });
190
190
  a(S, {
191
- head: g,
192
- body: h,
193
- headStyles: { fillColor: p, textColor: m },
194
- bodyStyles: { textColor: u },
195
- alternateRowStyles: { fillColor: b },
191
+ head: m,
192
+ body: u,
193
+ headStyles: { fillColor: f, textColor: b },
194
+ bodyStyles: { textColor: p },
195
+ alternateRowStyles: { fillColor: h },
196
196
  styles: {
197
197
  font: "helvetica",
198
198
  fontSize: 10,
@@ -200,36 +200,36 @@ async function Qe(e, t) {
200
200
  }
201
201
  }), S.save(t.fileName);
202
202
  }
203
- const De = $(
204
- ({ label: e, onClick: t, fileName: n, intent: a = "outline", ...i }, d) => {
205
- const { t: g } = A(), { getApi: h } = V("DataTable.Toolbar.ExportPdf"), p = D(() => {
206
- const m = h();
203
+ const De = B(
204
+ ({ label: e, onClick: t, fileName: n, intent: a = "outline", ...i }, l) => {
205
+ const { t: m } = A(), { getApi: u } = V("DataTable.Toolbar.ExportPdf"), f = D(() => {
206
+ const b = u();
207
207
  if (t) {
208
- t(m);
208
+ t(b);
209
209
  return;
210
210
  }
211
- Qe(m, {
211
+ Qe(b, {
212
212
  fileName: n ?? "data-table-export.pdf"
213
213
  });
214
- }, [h, t, n]);
214
+ }, [u, t, n]);
215
215
  return /* @__PURE__ */ s(
216
216
  oe,
217
217
  {
218
- ref: d,
218
+ ref: l,
219
219
  type: "button",
220
220
  intent: a,
221
221
  icon: /* @__PURE__ */ s(Ke, { "aria-hidden": !0 }),
222
- tooltip: e ?? g("dataTable.exportPdf"),
223
- onClick: p,
222
+ tooltip: e ?? m("dataTable.exportPdf"),
223
+ onClick: f,
224
224
  ...i
225
225
  }
226
226
  );
227
227
  }
228
228
  );
229
229
  De.displayName = "DataTable.Toolbar.ExportPdf";
230
- const Ne = $(
230
+ const Fe = B(
231
231
  ({ label: e, intent: t = "outline", ...n }, a) => {
232
- const { t: i } = A(), { onPrint: d } = V("DataTable.Toolbar.Print");
232
+ const { t: i } = A(), { onPrint: l } = V("DataTable.Toolbar.Print");
233
233
  return /* @__PURE__ */ s(
234
234
  oe,
235
235
  {
@@ -238,20 +238,20 @@ const Ne = $(
238
238
  intent: t,
239
239
  icon: /* @__PURE__ */ s(Vt, { "aria-hidden": !0 }),
240
240
  tooltip: e ?? i("dataTable.print"),
241
- onClick: d,
241
+ onClick: l,
242
242
  ...n
243
243
  }
244
244
  );
245
245
  }
246
246
  );
247
- Ne.displayName = "DataTable.Toolbar.Print";
247
+ Fe.displayName = "DataTable.Toolbar.Print";
248
248
  const Je = ({ placeholder: e, debounceMs: t = 150 }) => {
249
- const { t: n } = A(), { getApi: a } = V("DataTable.Toolbar.QuickSearch"), [i, d] = G(""), g = B(void 0);
250
- return K(() => (g.current && window.clearTimeout(g.current), g.current = window.setTimeout(() => {
251
- const h = a();
252
- h && h.setGridOption("quickFilterText", i);
249
+ const { t: n } = A(), { getApi: a } = V("DataTable.Toolbar.QuickSearch"), [i, l] = G(""), m = W(void 0);
250
+ return K(() => (m.current && window.clearTimeout(m.current), m.current = window.setTimeout(() => {
251
+ const u = a();
252
+ u && u.setGridOption("quickFilterText", i);
253
253
  }, t), () => {
254
- g.current && window.clearTimeout(g.current);
254
+ m.current && window.clearTimeout(m.current);
255
255
  }), [i, t, a]), // Slot wrapper caps the search at a sensible legible width on desktop —
256
256
  // without this, TextInput's `w-full` lets the QuickSearch absorb the
257
257
  // entire FilterBar row and push trailing Actions onto a second line at
@@ -265,86 +265,87 @@ const Je = ({ placeholder: e, debounceMs: t = 150 }) => {
265
265
  type: "search",
266
266
  size: "sm",
267
267
  value: i,
268
- onChange: (h) => d(h.target.value),
268
+ onChange: (u) => l(u.target.value),
269
269
  placeholder: e ?? n("dataTable.quickSearch.placeholder", "Search…"),
270
270
  startAdornment: /* @__PURE__ */ s(Ie, { "aria-hidden": !0, className: "ds:size-4" }),
271
271
  clearable: !0,
272
- onClear: () => d(""),
272
+ onClear: () => l(""),
273
273
  "aria-label": n("dataTable.quickSearch.label", "Quick search")
274
274
  }
275
275
  ) });
276
276
  };
277
277
  Je.displayName = "DataTable.Toolbar.QuickSearch";
278
- const Fe = $(
278
+ const Ne = B(
279
279
  ({ onRefresh: e, label: t, intent: n = "outline", ...a }, i) => {
280
- const { t: d } = A();
280
+ const { t: l } = A();
281
281
  return /* @__PURE__ */ s(
282
282
  oe,
283
283
  {
284
284
  ref: i,
285
285
  type: "button",
286
286
  intent: n,
287
- icon: /* @__PURE__ */ s($t, { "aria-hidden": !0 }),
288
- tooltip: t ?? d("dataTable.refresh", "Refresh"),
287
+ icon: /* @__PURE__ */ s(Bt, { "aria-hidden": !0 }),
288
+ tooltip: t ?? l("dataTable.refresh", "Refresh"),
289
289
  onClick: e,
290
290
  ...a
291
291
  }
292
292
  );
293
293
  }
294
294
  );
295
- Fe.displayName = "DataTable.Toolbar.Refresh";
295
+ Ne.displayName = "DataTable.Toolbar.Refresh";
296
296
  function or(e, t) {
297
297
  if (!e || typeof e != "object") return "";
298
- const n = e;
299
- if (typeof n.filter == "string" || typeof n.filter == "number") {
300
- const a = typeof n.type == "string" ? n.type : "", i = typeof n.filterTo == "string" || typeof n.filterTo == "number" ? String(n.filterTo) : "";
301
- return a === "inRange" && i ? `${n.filter} – ${i}` : a ? `${t(`dataTable.agGrid.${a}`, a)} ${n.filter}` : String(n.filter);
302
- }
303
- return 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(", ") : "";
298
+ const n = e, a = typeof n.type == "string" ? n.type : "", i = (u) => t(
299
+ `dataTable.agGrid.${u}`,
300
+ t(`dataTable.numberFilter.operators.${u}`, u)
301
+ );
302
+ if (a === "blank" || a === "notBlank") return i(a);
303
+ const l = typeof n.filter == "string" || typeof n.filter == "number", m = typeof n.filterTo == "string" || typeof n.filterTo == "number";
304
+ return a === "inRange" && (l || m) ? l && m ? `${n.filter} – ${n.filterTo}` : l ? `${t("dataTable.numberFilter.from", "From")} ${n.filter}` : `${t("dataTable.numberFilter.to", "To")} ${n.filterTo}` : l ? a ? `${i(a)} ${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(", ") : "";
304
305
  }
305
306
  const Ze = () => {
306
- const { t: e } = A(), { getApi: t } = V("DataTable.Toolbar.FilterChips"), [n, a] = G([]), [i, d] = G(""), g = D(() => {
307
- const u = t();
308
- if (!u) {
309
- a([]), d("");
307
+ const { t: e } = A("ui"), { getApi: t } = V("DataTable.Toolbar.FilterChips"), [n, a] = G([]), [i, l] = G(""), m = D(() => {
308
+ const p = t();
309
+ if (!p) {
310
+ a([]), l("");
310
311
  return;
311
312
  }
312
- const b = u.getFilterModel() ?? {}, S = u.getColumns() ?? [], C = [];
313
- for (const f of Object.keys(b)) {
314
- const w = S.find((R) => R.getColId() === f), T = u.getDisplayNameForColumn(w, null) ?? f;
313
+ const h = p.getFilterModel() ?? {}, S = p.getColumns() ?? [], C = [];
314
+ for (const g of Object.keys(h)) {
315
+ const T = S.find((R) => R.getColId() === g), w = p.getDisplayNameForColumn(T, null) ?? g;
315
316
  C.push({
316
- colId: f,
317
- headerName: T,
318
- text: or(b[f], e)
317
+ colId: g,
318
+ headerName: w,
319
+ text: or(h[g], e)
319
320
  });
320
321
  }
321
322
  a(C);
322
- const c = u.getGridOption("quickFilterText");
323
- d(typeof c == "string" ? c : "");
323
+ const c = p.getGridOption("quickFilterText");
324
+ l(typeof c == "string" ? c : "");
324
325
  }, [t, e]);
325
326
  if (K(() => {
326
- let u;
327
- const b = (c) => g(), S = (c) => {
328
- c.addEventListener("filterChanged", b), g(), u = () => c.removeEventListener("filterChanged", b);
327
+ let p;
328
+ const h = (c) => m(), S = (c) => {
329
+ c.addEventListener("filterChanged", h), m(), p = () => c.removeEventListener("filterChanged", h);
329
330
  }, C = t();
330
331
  if (C)
331
332
  S(C);
332
333
  else {
333
334
  const c = window.setInterval(() => {
334
- const f = t();
335
- f && (window.clearInterval(c), S(f));
335
+ const g = t();
336
+ g && (window.clearInterval(c), S(g));
336
337
  }, 50);
337
- u = () => window.clearInterval(c);
338
+ p = () => window.clearInterval(c);
338
339
  }
339
- return () => u == null ? void 0 : u();
340
- }, [t, g]), n.length + (i ? 1 : 0) === 0) return null;
341
- function p(u) {
342
- const b = t();
343
- b && (b.setColumnFilterModel(u, null), b.onFilterChanged());
340
+ return () => p == null ? void 0 : p();
341
+ }, [t, m]), n.length + (i ? 1 : 0) === 0) return null;
342
+ function f(p) {
343
+ const h = t();
344
+ h && (h.setColumnFilterModel(p, null), h.onFilterChanged());
344
345
  }
345
- function m() {
346
- const u = t();
347
- u && (u.setFilterModel(null), u.setGridOption("quickFilterText", ""), d(""));
346
+ function b() {
347
+ const p = t();
348
+ p && (p.setFilterModel(null), p.setGridOption("quickFilterText", ""), l(""));
348
349
  }
349
350
  return /* @__PURE__ */ L(
350
351
  "div",
@@ -354,28 +355,28 @@ const Ze = () => {
354
355
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
355
356
  children: [
356
357
  i && /* @__PURE__ */ s(
357
- We,
358
+ $e,
358
359
  {
359
360
  label: `${e("dataTable.quickSearch.label", "Quick search")}: ${i}`,
360
361
  size: "sm",
361
362
  variant: "brand",
362
363
  fill: "solid",
363
364
  onRemove: () => {
364
- const u = t();
365
- u == null || u.setGridOption("quickFilterText", ""), d("");
365
+ const p = t();
366
+ p == null || p.setGridOption("quickFilterText", ""), l("");
366
367
  }
367
368
  }
368
369
  ),
369
- n.map((u) => /* @__PURE__ */ s(
370
- We,
370
+ n.map((p) => /* @__PURE__ */ s(
371
+ $e,
371
372
  {
372
- label: u.text ? `${u.headerName}: ${u.text}` : u.headerName,
373
+ label: p.text ? `${p.headerName}: ${p.text}` : p.headerName,
373
374
  size: "sm",
374
375
  variant: "brand",
375
376
  fill: "solid",
376
- onRemove: () => p(u.colId)
377
+ onRemove: () => f(p.colId)
377
378
  },
378
- u.colId
379
+ p.colId
379
380
  )),
380
381
  /* @__PURE__ */ s(
381
382
  de,
@@ -383,8 +384,8 @@ const Ze = () => {
383
384
  type: "button",
384
385
  intent: "ghost",
385
386
  size: "sm",
386
- onClick: m,
387
- startIcon: /* @__PURE__ */ s($e, { "aria-hidden": !0, className: "ds:size-4" }),
387
+ onClick: b,
388
+ startIcon: /* @__PURE__ */ s(Be, { "aria-hidden": !0, className: "ds:size-4" }),
388
389
  children: e("dataTable.filterChips.clearAll", "Clear all")
389
390
  }
390
391
  )
@@ -398,19 +399,19 @@ const Ye = ({
398
399
  options: t,
399
400
  label: n
400
401
  }) => {
401
- const { t: a } = A(), { getApi: i } = V("DataTable.Toolbar.FacetFilter"), [d, g] = G(null);
402
- function h(p) {
403
- g(p);
404
- const m = i();
405
- if (m) {
406
- if (p === null) {
407
- m.setColumnFilterModel(e, null), m.onFilterChanged();
402
+ const { t: a } = A(), { getApi: i } = V("DataTable.Toolbar.FacetFilter"), [l, m] = G(null);
403
+ function u(f) {
404
+ m(f);
405
+ const b = i();
406
+ if (b) {
407
+ if (f === null) {
408
+ b.setColumnFilterModel(e, null), b.onFilterChanged();
408
409
  return;
409
410
  }
410
- m.setColumnFilterModel(e, {
411
+ b.setColumnFilterModel(e, {
411
412
  type: "equals",
412
- filter: p
413
- }), m.onFilterChanged();
413
+ filter: f
414
+ }), b.onFilterChanged();
414
415
  }
415
416
  }
416
417
  return /* @__PURE__ */ s(
@@ -419,19 +420,19 @@ const Ye = ({
419
420
  role: "group",
420
421
  "aria-label": n ?? a("dataTable.facetFilter.label", "Filter"),
421
422
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
422
- children: t.map((p) => {
423
- const m = d === p.value;
423
+ children: t.map((f) => {
424
+ const b = l === f.value;
424
425
  return /* @__PURE__ */ s(
425
426
  de,
426
427
  {
427
428
  type: "button",
428
429
  size: "sm",
429
- intent: m ? "primary" : "secondary",
430
- "aria-pressed": m,
431
- onClick: () => h(p.value),
432
- children: p.label
430
+ intent: b ? "primary" : "secondary",
431
+ "aria-pressed": b,
432
+ onClick: () => u(f.value),
433
+ children: f.label
433
434
  },
434
- String(p.value)
435
+ String(f.value)
435
436
  );
436
437
  })
437
438
  }
@@ -441,32 +442,32 @@ Ye.displayName = "DataTable.Toolbar.FacetFilter";
441
442
  const ir = ["csv", "xlsx", "pdf"];
442
443
  async function sr(e, t) {
443
444
  if (!e) return;
444
- const n = await import("./exceljs.min-D2MHbJsF.js").then((f) => f.e), a = new n.Workbook(), i = a.addWorksheet("Sheet1"), g = (e.getColumns() ?? []).filter((f) => f.isVisible());
445
+ const n = await import("./exceljs.min-D2MHbJsF.js").then((g) => g.e), a = new n.Workbook(), i = a.addWorksheet("Sheet1"), m = (e.getColumns() ?? []).filter((g) => g.isVisible());
445
446
  i.addRow(
446
- g.map(
447
- (f) => e.getDisplayNameForColumn(f, null) ?? f.getColId()
447
+ m.map(
448
+ (g) => e.getDisplayNameForColumn(g, null) ?? g.getColId()
448
449
  )
449
- ), e.forEachNodeAfterFilterAndSort((f) => {
450
- f.data && i.addRow(
451
- g.map((w) => {
452
- const T = e.getCellValue({
453
- rowNode: f,
454
- colKey: w,
450
+ ), e.forEachNodeAfterFilterAndSort((g) => {
451
+ g.data && i.addRow(
452
+ m.map((T) => {
453
+ const w = e.getCellValue({
454
+ rowNode: g,
455
+ colKey: T,
455
456
  useFormatter: !0
456
457
  });
457
- return T ?? "";
458
+ return w ?? "";
458
459
  })
459
460
  );
460
461
  });
461
- const h = ae("--muted", [240, 240, 240]), p = ae("--foreground", [30, 30, 30]), m = i.getRow(1), u = ([f, w, T]) => `${f.toString(16).padStart(2, "0")}${w.toString(16).padStart(2, "0")}${T.toString(16).padStart(2, "0")}`.toUpperCase();
462
- m.eachCell((f) => {
463
- f.font = { bold: !0, color: { argb: `FF${u(p)}` } }, f.fill = {
462
+ const u = ae("--muted", [240, 240, 240]), f = ae("--foreground", [30, 30, 30]), b = i.getRow(1), p = ([g, T, w]) => `${g.toString(16).padStart(2, "0")}${T.toString(16).padStart(2, "0")}${w.toString(16).padStart(2, "0")}`.toUpperCase();
463
+ b.eachCell((g) => {
464
+ g.font = { bold: !0, color: { argb: `FF${p(f)}` } }, g.fill = {
464
465
  type: "pattern",
465
466
  pattern: "solid",
466
- fgColor: { argb: `FF${u(h)}` }
467
+ fgColor: { argb: `FF${p(u)}` }
467
468
  };
468
469
  });
469
- const b = await a.xlsx.writeBuffer(), S = new Blob([b], {
470
+ const h = await a.xlsx.writeBuffer(), S = new Blob([h], {
470
471
  type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
471
472
  }), C = URL.createObjectURL(S), c = document.createElement("a");
472
473
  c.href = C, c.download = t.fileName, document.body.appendChild(c), c.click(), document.body.removeChild(c), URL.revokeObjectURL(C);
@@ -480,24 +481,24 @@ function lr() {
480
481
  );
481
482
  return e;
482
483
  }
483
- const ke = $(
484
+ const ke = B(
484
485
  ({ children: e, label: t, intent: n = "outline", ...a }, i) => {
485
- const { t: d } = A(), { getApi: g } = V("DataTable.Toolbar.ExportMenu"), h = j(() => ({ getApi: g }), [g]), p = e ?? ir.map((m) => /* @__PURE__ */ s(Ae, { format: m }, m));
486
- return /* @__PURE__ */ s(et.Provider, { value: h, children: /* @__PURE__ */ L(he.Root, { children: [
487
- /* @__PURE__ */ s(he.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
486
+ const { t: l } = A(), { getApi: m } = V("DataTable.Toolbar.ExportMenu"), u = j(() => ({ getApi: m }), [m]), f = e ?? ir.map((b) => /* @__PURE__ */ s(Ae, { format: b }, b));
487
+ return /* @__PURE__ */ s(et.Provider, { value: u, children: /* @__PURE__ */ L(be.Root, { children: [
488
+ /* @__PURE__ */ s(be.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
488
489
  oe,
489
490
  {
490
491
  ref: i,
491
492
  type: "button",
492
493
  intent: n,
493
494
  icon: /* @__PURE__ */ s(ye, { "aria-hidden": !0 }),
494
- tooltip: t ?? d("dataTable.export.menu", "Export"),
495
- "aria-label": t ?? d("dataTable.export.menu", "Export"),
495
+ tooltip: t ?? l("dataTable.export.menu", "Export"),
496
+ "aria-label": t ?? l("dataTable.export.menu", "Export"),
496
497
  "aria-haspopup": "menu",
497
498
  ...a
498
499
  }
499
500
  ) }),
500
- /* @__PURE__ */ s(he.Content, { align: "end", sideOffset: 4, children: p })
501
+ /* @__PURE__ */ s(be.Content, { align: "end", sideOffset: 4, children: f })
501
502
  ] }) });
502
503
  }
503
504
  );
@@ -514,27 +515,27 @@ const Ae = ({
514
515
  onClick: n,
515
516
  fileName: a
516
517
  }) => {
517
- const { t: i } = A(), { getApi: d } = lr(), g = D(() => {
518
- const h = d();
518
+ const { t: i } = A(), { getApi: l } = lr(), m = D(() => {
519
+ const u = l();
519
520
  if (e === "csv") {
520
- h == null || h.exportDataAsCsv();
521
+ u == null || u.exportDataAsCsv();
521
522
  return;
522
523
  }
523
524
  if (e === "pdf") {
524
- Qe(h, {
525
+ Qe(u, {
525
526
  fileName: a ?? "data-table-export.pdf"
526
527
  });
527
528
  return;
528
529
  }
529
530
  if (e === "xlsx") {
530
- sr(h, {
531
+ sr(u, {
531
532
  fileName: a ?? "data-table-export.xlsx"
532
533
  });
533
534
  return;
534
535
  }
535
- n == null || n(h);
536
- }, [e, a, n, d]);
537
- return /* @__PURE__ */ s(he.Item, { onSelect: g, children: /* @__PURE__ */ L("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
536
+ n == null || n(u);
537
+ }, [e, a, n, l]);
538
+ return /* @__PURE__ */ s(be.Item, { onSelect: m, children: /* @__PURE__ */ L("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
538
539
  cr(e),
539
540
  /* @__PURE__ */ s("span", { children: t ?? dr(i, e) })
540
541
  ] }) });
@@ -551,28 +552,28 @@ function ur(e) {
551
552
  visible: a.isVisible()
552
553
  }).filter((a) => a !== null);
553
554
  }
554
- const Pe = $(
555
- function({ label: t, icon: n, footer: a, header: i, intent: d = "outline", ...g }, h) {
556
- const { t: p } = A(), { getApi: m, markColumnsUserTouched: u } = V(
555
+ const Pe = B(
556
+ function({ label: t, icon: n, footer: a, header: i, intent: l = "outline", ...m }, u) {
557
+ const { t: f } = A(), { getApi: b, markColumnsUserTouched: p } = V(
557
558
  "DataTable.Toolbar.ColumnToggle"
558
- ), [b, S] = G(!1), [C, c] = G([]), [f, w] = G(null), [T, R] = G(null);
559
+ ), [h, S] = G(!1), [C, c] = G([]), [g, T] = G(null), [w, R] = G(null);
559
560
  K(() => {
560
- b && c(ur(m()));
561
- }, [b, m]);
561
+ h && c(ur(b()));
562
+ }, [h, b]);
562
563
  const I = D(
563
564
  (v, O) => {
564
- const M = m();
565
- M && (M.setColumnsVisible([v], O), u == null || u([v]), c(
566
- (F) => F.map(
567
- (N) => N.colId === v ? { ...N, visible: O } : N
565
+ const M = b();
566
+ M && (M.setColumnsVisible([v], O), p == null || p([v]), c(
567
+ (N) => N.map(
568
+ (F) => F.colId === v ? { ...F, visible: O } : F
568
569
  )
569
570
  ));
570
571
  },
571
- [m, u]
572
+ [b, p]
572
573
  ), ee = D(
573
574
  (v, O) => {
574
575
  if (v === O) return;
575
- const M = m();
576
+ const M = b();
576
577
  if (!M) return;
577
578
  c((z) => {
578
579
  const E = z.findIndex((Q) => Q.colId === v), ie = z.findIndex((Q) => Q.colId === O);
@@ -580,26 +581,26 @@ const Pe = $(
580
581
  const X = [...z], [xe] = X.splice(E, 1);
581
582
  return X.splice(ie, 0, xe), X;
582
583
  });
583
- const F = M.getAllGridColumns(), N = F.find((z) => z.getColId() === v), q = F.find((z) => z.getColId() === O);
584
- if (!N || !q) return;
585
- N.getPinned() !== q.getPinned() && M.setColumnsPinned([v], q.getPinned() ?? null);
584
+ const N = M.getAllGridColumns(), F = N.find((z) => z.getColId() === v), q = N.find((z) => z.getColId() === O);
585
+ if (!F || !q) return;
586
+ F.getPinned() !== q.getPinned() && M.setColumnsPinned([v], q.getPinned() ?? null);
586
587
  const U = M.getAllGridColumns().findIndex((z) => z.getColId() === O);
587
588
  U >= 0 && M.moveColumns([v], U);
588
589
  },
589
- [m]
590
- ), _ = t ?? p("dataTable.columnToggle");
591
- return /* @__PURE__ */ L(me.Root, { open: b, onOpenChange: S, children: [
590
+ [b]
591
+ ), _ = t ?? f("dataTable.columnToggle");
592
+ return /* @__PURE__ */ L(me.Root, { open: h, onOpenChange: S, children: [
592
593
  /* @__PURE__ */ s(me.Trigger, { asChild: !0, children: /* @__PURE__ */ s(
593
594
  oe,
594
595
  {
595
- ref: h,
596
+ ref: u,
596
597
  type: "button",
597
- intent: d,
598
+ intent: l,
598
599
  icon: n ?? /* @__PURE__ */ s(tr, { "aria-hidden": !0 }),
599
600
  tooltip: _,
600
601
  "aria-label": _,
601
602
  "aria-haspopup": "dialog",
602
- ...g
603
+ ...m
603
604
  }
604
605
  ) }),
605
606
  /* @__PURE__ */ L(
@@ -617,29 +618,29 @@ const Pe = $(
617
618
  className: "ds:flex ds:min-h-0 ds:flex-col ds:gap-[var(--spacing-xs)] ds:overflow-y-auto",
618
619
  "aria-label": _,
619
620
  children: C.map((v) => {
620
- const O = f === v.colId, M = T === v.colId && f !== v.colId;
621
+ const O = g === v.colId, M = w === v.colId && g !== v.colId;
621
622
  return /* @__PURE__ */ L(
622
623
  "li",
623
624
  {
624
625
  draggable: !0,
625
- onDragStart: (F) => {
626
- w(v.colId), F.dataTransfer.effectAllowed = "move", F.dataTransfer.setData("text/plain", v.colId);
626
+ onDragStart: (N) => {
627
+ T(v.colId), N.dataTransfer.effectAllowed = "move", N.dataTransfer.setData("text/plain", v.colId);
627
628
  },
628
- onDragOver: (F) => {
629
- F.preventDefault(), F.dataTransfer.dropEffect = "move", R(v.colId);
629
+ onDragOver: (N) => {
630
+ N.preventDefault(), N.dataTransfer.dropEffect = "move", R(v.colId);
630
631
  },
631
632
  onDragLeave: () => {
632
633
  R(
633
- (F) => F === v.colId ? null : F
634
+ (N) => N === v.colId ? null : N
634
635
  );
635
636
  },
636
- onDrop: (F) => {
637
- F.preventDefault();
638
- const N = F.dataTransfer.getData("text/plain");
639
- N && ee(N, v.colId), w(null), R(null);
637
+ onDrop: (N) => {
638
+ N.preventDefault();
639
+ const F = N.dataTransfer.getData("text/plain");
640
+ F && ee(F, v.colId), T(null), R(null);
640
641
  },
641
642
  onDragEnd: () => {
642
- w(null), R(null);
643
+ T(null), R(null);
643
644
  },
644
645
  className: [
645
646
  "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",
@@ -656,11 +657,11 @@ const Pe = $(
656
657
  }
657
658
  ),
658
659
  /* @__PURE__ */ s(
659
- Bt,
660
+ Wt,
660
661
  {
661
662
  label: v.displayName,
662
663
  checked: v.visible,
663
- onCheckedChange: (F) => I(v.colId, F === !0)
664
+ onCheckedChange: (N) => I(v.colId, N === !0)
664
665
  }
665
666
  )
666
667
  ]
@@ -678,22 +679,22 @@ const Pe = $(
678
679
  }
679
680
  );
680
681
  Pe.displayName = "DataTable.Toolbar.ColumnToggle";
681
- const tt = $(
682
- ({ label: e, icon: t, onClick: n, variant: a = "default", size: i = "sm", ...d }, g) => {
683
- const { t: h } = A(), { getApi: p, selectionCount: m } = V(
682
+ const tt = B(
683
+ ({ label: e, icon: t, onClick: n, variant: a = "default", size: i = "sm", ...l }, m) => {
684
+ const { t: u } = A(), { getApi: f, selectionCount: b } = V(
684
685
  "DataTable.Toolbar.BulkAction"
685
686
  );
686
- return m === 0 ? null : /* @__PURE__ */ L(
687
+ return b === 0 ? null : /* @__PURE__ */ L(
687
688
  de,
688
689
  {
689
- ref: g,
690
+ ref: m,
690
691
  type: "button",
691
692
  intent: a === "destructive" ? "destructive" : "secondary",
692
693
  size: i,
693
694
  startIcon: rr(t),
694
- onClick: () => n(p()),
695
- "aria-label": `${e} (${h("dataTable.bulkAction", { count: m })})`,
696
- ...d,
695
+ onClick: () => n(f()),
696
+ "aria-label": `${e} (${u("dataTable.bulkAction", { count: b })})`,
697
+ ...l,
697
698
  children: [
698
699
  /* @__PURE__ */ s("span", { children: e }),
699
700
  /* @__PURE__ */ s(
@@ -701,7 +702,7 @@ const tt = $(
701
702
  {
702
703
  "aria-hidden": "true",
703
704
  className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
704
- children: h("dataTable.bulkAction", { count: m })
705
+ children: u("dataTable.bulkAction", { count: b })
705
706
  }
706
707
  )
707
708
  ]
@@ -713,26 +714,26 @@ tt.displayName = "DataTable.Toolbar.BulkAction";
713
714
  for (const e of [
714
715
  Ee,
715
716
  De,
716
- Ne,
717
717
  Fe,
718
+ Ne,
718
719
  ke,
719
720
  Pe
720
721
  ])
721
722
  e.rendersIconButton = !0;
722
723
  const pr = Object.assign(ke, {
723
724
  Item: Ae
724
- }), be = Object.assign(Ve, {
725
+ }), he = Object.assign(Ve, {
725
726
  FilterBar: Ue,
726
727
  Actions: Xe,
727
728
  /** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
728
729
  ExportCsv: Ee,
729
730
  /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
730
731
  ExportPdf: De,
731
- Print: Ne,
732
+ Print: Fe,
732
733
  ColumnToggle: Pe,
733
734
  BulkAction: tt,
734
735
  QuickSearch: Je,
735
- Refresh: Fe,
736
+ Refresh: Ne,
736
737
  FilterChips: Ze,
737
738
  FacetFilter: Ye,
738
739
  ExportMenu: pr
@@ -751,9 +752,9 @@ function mr(e) {
751
752
  function n(a, i) {
752
753
  if (i.length === 0) return 0;
753
754
  if (i.length > a.length) return -1;
754
- for (let d = 0; d <= a.length - i.length; d += 1)
755
- if (t.compare(a.slice(d, d + i.length), i) === 0)
756
- return d;
755
+ for (let l = 0; l <= a.length - i.length; l += 1)
756
+ if (t.compare(a.slice(l, l + i.length), i) === 0)
757
+ return l;
757
758
  return -1;
758
759
  }
759
760
  return {
@@ -769,17 +770,17 @@ function mr(e) {
769
770
  function gr(e) {
770
771
  return e == null ? null : typeof e == "string" ? e : String(e);
771
772
  }
772
- function hr(e) {
773
- const { model: t, onModelChange: n, getValue: a, placeholder: i, defaultOperator: d } = e, { t: g } = A("ui"), h = (t == null ? void 0 : t.type) ?? d ?? "contains", [p, m] = G(h), [u, b] = G((t == null ? void 0 : t.filter) ?? "");
773
+ function br(e) {
774
+ const { model: t, onModelChange: n, getValue: a, placeholder: i, defaultOperator: l } = e, { t: m } = A("ui"), u = (t == null ? void 0 : t.type) ?? l ?? "contains", [f, b] = G(u), [p, h] = G((t == null ? void 0 : t.filter) ?? "");
774
775
  K(() => {
775
- m((t == null ? void 0 : t.type) ?? d ?? "contains"), b((t == null ? void 0 : t.filter) ?? "");
776
- }, [t, d]);
776
+ b((t == null ? void 0 : t.type) ?? l ?? "contains"), h((t == null ? void 0 : t.filter) ?? "");
777
+ }, [t, l]);
777
778
  const S = j(() => mr(Xt.language), []);
778
779
  _t({
779
- doesFilterPass: (T) => {
780
+ doesFilterPass: (w) => {
780
781
  const R = t;
781
782
  if (!R || R.filter === "") return !0;
782
- const I = gr(a(T.node));
783
+ const I = gr(a(w.node));
783
784
  if (I === null) return !1;
784
785
  switch (R.type) {
785
786
  case "equals":
@@ -798,21 +799,21 @@ function hr(e) {
798
799
  }
799
800
  });
800
801
  function C() {
801
- if (u.trim() === "") {
802
+ if (p.trim() === "") {
802
803
  n(null);
803
804
  return;
804
805
  }
805
- n({ type: p, filter: u });
806
+ n({ type: f, filter: p });
806
807
  }
807
808
  function c() {
808
- b(""), m(d ?? "contains"), n(null);
809
+ h(""), b(l ?? "contains"), n(null);
809
810
  }
810
- const f = fr.map(
811
- (T) => ({
812
- value: T,
813
- label: g(`dataTable.textFilter.operators.${T}`)
811
+ const g = fr.map(
812
+ (w) => ({
813
+ value: w,
814
+ label: m(`dataTable.textFilter.operators.${w}`)
814
815
  })
815
- ), w = i ?? g("dataTable.textFilter.placeholder");
816
+ ), T = i ?? m("dataTable.textFilter.placeholder");
816
817
  return /* @__PURE__ */ L(
817
818
  "div",
818
819
  {
@@ -823,78 +824,78 @@ function hr(e) {
823
824
  Qt,
824
825
  {
825
826
  size: "sm",
826
- options: f,
827
- value: p,
828
- onValueChange: (T) => {
829
- T !== "" && m(T);
827
+ options: g,
828
+ value: f,
829
+ onValueChange: (w) => {
830
+ w !== "" && b(w);
830
831
  },
831
- "aria-label": g("dataTable.textFilter.operators.contains")
832
+ "aria-label": m("dataTable.textFilter.operators.contains")
832
833
  }
833
834
  ),
834
835
  /* @__PURE__ */ s(
835
836
  Se,
836
837
  {
837
838
  size: "sm",
838
- value: u,
839
- onChange: (T) => b(T.target.value),
840
- onKeyDown: (T) => {
841
- T.key === "Enter" && (T.preventDefault(), C());
839
+ value: p,
840
+ onChange: (w) => h(w.target.value),
841
+ onKeyDown: (w) => {
842
+ w.key === "Enter" && (w.preventDefault(), C());
842
843
  },
843
- placeholder: w,
844
- "aria-label": w,
844
+ placeholder: T,
845
+ "aria-label": T,
845
846
  startAdornment: /* @__PURE__ */ s(Ie, { "aria-hidden": "true", className: "ds:size-4" })
846
847
  }
847
848
  ),
848
849
  /* @__PURE__ */ L("div", { className: "ds:flex ds:items-center ds:justify-end ds:gap-[var(--spacing-xs)] ds:pt-[var(--spacing-xs)] ds:border-t ds:border-[var(--border)]", children: [
849
- /* @__PURE__ */ s(de, { intent: "ghost", size: "sm", onClick: c, type: "button", children: g("dataTable.textFilter.clear") }),
850
- /* @__PURE__ */ s(de, { intent: "primary", size: "sm", onClick: C, type: "button", children: g("dataTable.textFilter.apply") })
850
+ /* @__PURE__ */ s(de, { intent: "ghost", size: "sm", onClick: c, type: "button", children: m("dataTable.textFilter.clear") }),
851
+ /* @__PURE__ */ s(de, { intent: "primary", size: "sm", onClick: C, type: "button", children: m("dataTable.textFilter.apply") })
851
852
  ] })
852
853
  ]
853
854
  }
854
855
  );
855
856
  }
856
- function br(e) {
857
- var b, S;
858
- const { model: t, onModelChange: n, column: a } = e, { t: i } = A("ui"), d = ((S = (b = a == null ? void 0 : a.getColDef) == null ? void 0 : b.call(a)) == null ? void 0 : S.filterParams) ?? {}, g = d.defaultOperator ?? "contains", h = d.placeholder ?? i("dataTable.textFilter.placeholder"), [p, m] = G((t == null ? void 0 : t.filter) ?? "");
857
+ function hr(e) {
858
+ var h, S;
859
+ const { model: t, onModelChange: n, column: a } = e, { t: i } = A("ui"), l = ((S = (h = a == null ? void 0 : a.getColDef) == null ? void 0 : h.call(a)) == null ? void 0 : S.filterParams) ?? {}, m = l.defaultOperator ?? "contains", u = l.placeholder ?? i("dataTable.textFilter.placeholder"), [f, b] = G((t == null ? void 0 : t.filter) ?? "");
859
860
  K(() => {
860
- m((t == null ? void 0 : t.filter) ?? "");
861
+ b((t == null ? void 0 : t.filter) ?? "");
861
862
  }, [t == null ? void 0 : t.filter]), K(() => {
862
- if (p === ((t == null ? void 0 : t.filter) ?? "")) return;
863
+ if (f === ((t == null ? void 0 : t.filter) ?? "")) return;
863
864
  const C = setTimeout(() => {
864
- if (p === "") {
865
+ if (f === "") {
865
866
  t && n(null);
866
867
  return;
867
868
  }
868
- n({ type: g, filter: p });
869
+ n({ type: m, filter: f });
869
870
  }, 200);
870
871
  return () => clearTimeout(C);
871
- }, [p, g, t, n]);
872
- function u() {
873
- m(""), t && n(null);
872
+ }, [f, m, t, n]);
873
+ function p() {
874
+ b(""), t && n(null);
874
875
  }
875
876
  return /* @__PURE__ */ s("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ s(
876
877
  Se,
877
878
  {
878
879
  size: "sm",
879
- value: p,
880
- onChange: (C) => m(C.target.value),
881
- placeholder: h,
882
- "aria-label": h,
880
+ value: f,
881
+ onChange: (C) => b(C.target.value),
882
+ placeholder: u,
883
+ "aria-label": u,
883
884
  startAdornment: /* @__PURE__ */ s(Ie, { "aria-hidden": "true", className: "ds:size-4" }),
884
- endAdornment: p.length > 0 ? /* @__PURE__ */ s(
885
+ endAdornment: f.length > 0 ? /* @__PURE__ */ s(
885
886
  "button",
886
887
  {
887
888
  type: "button",
888
889
  "aria-label": i("dataTable.textFilter.clear"),
889
- onClick: u,
890
+ onClick: p,
890
891
  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",
891
- children: /* @__PURE__ */ s($e, { "aria-hidden": "true", className: "ds:size-4" })
892
+ children: /* @__PURE__ */ s(Be, { "aria-hidden": "true", className: "ds:size-4" })
892
893
  }
893
894
  ) : void 0
894
895
  }
895
896
  ) });
896
897
  }
897
- const yr = /* @__PURE__ */ new Set(["presentation", "none"]), Be = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
898
+ const yr = /* @__PURE__ */ new Set(["presentation", "none"]), We = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
898
899
  function ge(e) {
899
900
  const t = e.getAttribute("role");
900
901
  t === null || !yr.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
@@ -904,18 +905,18 @@ function xr(e, t = !0) {
904
905
  const n = e.current;
905
906
  if (!t || !n || typeof MutationObserver > "u") return;
906
907
  (() => {
907
- for (const d of n.querySelectorAll(Be)) ge(d);
908
+ for (const l of n.querySelectorAll(We)) ge(l);
908
909
  })();
909
- const i = new MutationObserver((d) => {
910
- for (const g of d)
911
- if (g.type === "attributes")
912
- ge(g.target);
910
+ const i = new MutationObserver((l) => {
911
+ for (const m of l)
912
+ if (m.type === "attributes")
913
+ ge(m.target);
913
914
  else
914
- for (const h of g.addedNodes)
915
- if (h instanceof Element) {
916
- ge(h);
917
- for (const p of h.querySelectorAll(Be))
918
- ge(p);
915
+ for (const u of m.addedNodes)
916
+ if (u instanceof Element) {
917
+ ge(u);
918
+ for (const f of u.querySelectorAll(We))
919
+ ge(f);
919
920
  }
920
921
  });
921
922
  return i.observe(n, {
@@ -926,8 +927,8 @@ function xr(e, t = !0) {
926
927
  }), () => i.disconnect();
927
928
  }, [e, t]);
928
929
  }
929
- const ne = "__dsDetailOf", wr = "ds-data-table-expanded-row", rt = "::detail", Tr = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
930
- function W(e) {
930
+ const ne = "__dsDetailOf", Tr = "ds-data-table-expanded-row", rt = "::detail", wr = 'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])';
931
+ function $(e) {
931
932
  return typeof e == "object" && e !== null && typeof e[ne] == "string";
932
933
  }
933
934
  function vr(e) {
@@ -946,37 +947,37 @@ function Rr(e) {
946
947
  var c;
947
948
  const t = Re(
948
949
  at
949
- ), { t: n } = A(), a = B(null), { data: i, node: d, api: g } = e, h = W(i), p = t == null ? void 0 : t.heights, m = d.id, u = B(t);
950
- if (u.current = t, K(() => {
951
- const f = a.current;
952
- if (!f || !h || !p || m == null) return;
953
- let w = p.get(m) ?? 0;
954
- const T = () => {
955
- const I = Math.ceil(f.getBoundingClientRect().height);
956
- I <= 0 || I === w || (w = I, p.set(m, I), d.setRowHeight(I), g.onRowHeightChanged());
950
+ ), { t: n } = A(), a = W(null), { data: i, node: l, api: m } = e, u = $(i), f = t == null ? void 0 : t.heights, b = l.id, p = W(t);
951
+ if (p.current = t, K(() => {
952
+ const g = a.current;
953
+ if (!g || !u || !f || b == null) return;
954
+ let T = f.get(b) ?? 0;
955
+ const w = () => {
956
+ const I = Math.ceil(g.getBoundingClientRect().height);
957
+ I <= 0 || I === T || (T = I, f.set(b, I), l.setRowHeight(I), m.onRowHeightChanged());
957
958
  };
958
- T();
959
- const R = new ResizeObserver(T);
960
- return R.observe(f), () => R.disconnect();
961
- }, [g, m, p, h, d]), K(() => {
962
- const f = a.current, w = f == null ? void 0 : f.parentElement;
963
- if (!f || !w || !h) return;
964
- const T = (R) => {
959
+ w();
960
+ const R = new ResizeObserver(w);
961
+ return R.observe(g), () => R.disconnect();
962
+ }, [m, b, f, u, l]), K(() => {
963
+ const g = a.current, T = g == null ? void 0 : g.parentElement;
964
+ if (!g || !T || !u) return;
965
+ const w = (R) => {
965
966
  var I, ee;
966
- R.target !== w || R.defaultPrevented || (R.key === "Escape" ? (R.stopPropagation(), (ee = (I = u.current) == null ? void 0 : I.onExpandedRowChange) == null || ee.call(I, null)) : R.key === "Enter" && (R.preventDefault(), (f.querySelector(Tr) ?? f).focus()));
967
+ R.target !== T || R.defaultPrevented || (R.key === "Escape" ? (R.stopPropagation(), (ee = (I = p.current) == null ? void 0 : I.onExpandedRowChange) == null || ee.call(I, null)) : R.key === "Enter" && (R.preventDefault(), (g.querySelector(wr) ?? g).focus()));
967
968
  };
968
- return w.addEventListener("keydown", T), () => w.removeEventListener("keydown", T);
969
- }, [h]), !h) {
970
- const f = t == null ? void 0 : t.fallbackRenderer;
971
- return f ? /* @__PURE__ */ s(f, { ...e }) : null;
969
+ return T.addEventListener("keydown", w), () => T.removeEventListener("keydown", w);
970
+ }, [u]), !u) {
971
+ const g = t == null ? void 0 : t.fallbackRenderer;
972
+ return g ? /* @__PURE__ */ s(g, { ...e }) : null;
972
973
  }
973
- const b = i[ne];
974
+ const h = i[ne];
974
975
  let S;
975
- if (t != null && t.expanded && t.expanded.id === b)
976
+ if (t != null && t.expanded && t.expanded.id === h)
976
977
  S = t.expanded.row;
977
978
  else {
978
- const { [ne]: f, ...w } = i;
979
- S = w;
979
+ const { [ne]: g, ...T } = i;
980
+ S = T;
980
981
  }
981
982
  return /* @__PURE__ */ L(
982
983
  "div",
@@ -985,11 +986,11 @@ function Rr(e) {
985
986
  role: "gridcell",
986
987
  tabIndex: -1,
987
988
  "data-component": "data-table-expanded-row",
988
- "data-expanded-row-of": b,
989
+ "data-expanded-row-of": h,
989
990
  className: "ds-data-table-expanded-row-surface",
990
- onKeyDown: (f) => {
991
- var w;
992
- f.key !== "Escape" || f.defaultPrevented || (f.stopPropagation(), (w = t == null ? void 0 : t.onExpandedRowChange) == null || w.call(t, null));
991
+ onKeyDown: (g) => {
992
+ var T;
993
+ g.key !== "Escape" || g.defaultPrevented || (g.stopPropagation(), (T = t == null ? void 0 : t.onExpandedRowChange) == null || T.call(t, null));
993
994
  },
994
995
  children: [
995
996
  /* @__PURE__ */ s("span", { className: "ds:sr-only", children: n("dataTable.expandedRow") }),
@@ -1266,7 +1267,7 @@ function Dr() {
1266
1267
  }
1267
1268
  );
1268
1269
  }
1269
- function Nr() {
1270
+ function Fr() {
1270
1271
  const { t: e } = A();
1271
1272
  return /* @__PURE__ */ s(
1272
1273
  zt,
@@ -1278,7 +1279,7 @@ function Nr() {
1278
1279
  }
1279
1280
  );
1280
1281
  }
1281
- function Fr(e) {
1282
+ function Nr(e) {
1282
1283
  return e.map(({ pinned: t, ...n }) => n);
1283
1284
  }
1284
1285
  function kr(e) {
@@ -1297,8 +1298,8 @@ function Ar(e, t) {
1297
1298
  if (typeof a != "object" || a === null) return null;
1298
1299
  const i = a;
1299
1300
  return i.v !== 2 || !Array.isArray(i.state) ? null : {
1300
- state: i.dir === t ? i.state : Fr(i.state),
1301
- touched: Array.isArray(i.touched) ? i.touched.filter((d) => typeof d == "string") : []
1301
+ state: i.dir === t ? i.state : Nr(i.state),
1302
+ touched: Array.isArray(i.touched) ? i.touched.filter((l) => typeof l == "string") : []
1302
1303
  };
1303
1304
  } catch {
1304
1305
  return null;
@@ -1332,19 +1333,19 @@ function Mr(e, t) {
1332
1333
  columnDefs: n,
1333
1334
  rowData: a,
1334
1335
  rowSelection: i,
1335
- pagination: d = !1,
1336
- paginationPageSize: g = 25,
1337
- paginationPageSizeSelector: h = [10, 25, 50, 100],
1338
- gridId: p,
1339
- onSelectionChanged: m,
1340
- onSortChanged: u,
1341
- onFilterChanged: b,
1336
+ pagination: l = !1,
1337
+ paginationPageSize: m = 25,
1338
+ paginationPageSizeSelector: u = [10, 25, 50, 100],
1339
+ gridId: f,
1340
+ onSelectionChanged: b,
1341
+ onSortChanged: p,
1342
+ onFilterChanged: h,
1342
1343
  noRowsOverlay: S,
1343
1344
  loadingOverlay: C,
1344
1345
  gridOptions: c,
1345
- density: f,
1346
- bordered: w,
1347
- heightClass: T = "ds:h-[500px]",
1346
+ density: g,
1347
+ bordered: T,
1348
+ heightClass: w = "ds:h-[500px]",
1348
1349
  className: R,
1349
1350
  getRowClass: I,
1350
1351
  pinnedBottomRowData: ee,
@@ -1352,48 +1353,48 @@ function Mr(e, t) {
1352
1353
  expandedRowId: v,
1353
1354
  renderExpandedRow: O,
1354
1355
  onExpandedRowChange: M,
1355
- children: F
1356
- } = e, N = v !== void 0 || O !== void 0, q = c == null ? void 0 : c.getRowId;
1357
- if (N && !q)
1356
+ children: N
1357
+ } = e, F = v !== void 0 || O !== void 0, q = c == null ? void 0 : c.getRowId;
1358
+ if (F && !q)
1358
1359
  throw new Error(
1359
1360
  "DataTable: `expandedRowId` / `renderExpandedRow` require `gridOptions.getRowId` — the expanded row is addressed by row id, not by index."
1360
1361
  );
1361
- const { t: U, i18n: z } = A(), E = B(null), ie = B(null);
1362
+ const { t: U, i18n: z } = A(), E = W(null), ie = W(null);
1362
1363
  xr(ie);
1363
- const [X, xe] = G(0), [Q, we] = G(""), ot = Er(), Oe = B(v);
1364
+ const [X, xe] = G(0), [Q, Te] = G(""), ot = Er(), Oe = W(v);
1364
1365
  Oe.current = v;
1365
- const Te = j(
1366
+ const we = j(
1366
1367
  () => ({
1367
1368
  getSelection: () => {
1368
- var l;
1369
- const r = (l = E.current) == null ? void 0 : l.api;
1369
+ var d;
1370
+ const r = (d = E.current) == null ? void 0 : d.api;
1370
1371
  if (!r) return [];
1371
1372
  const o = [];
1372
1373
  for (const y of r.getSelectedNodes())
1373
- y.id != null && !W(y.data) && o.push(y.id);
1374
+ y.id != null && !$(y.data) && o.push(y.id);
1374
1375
  return o;
1375
1376
  },
1376
1377
  setSelection: (r) => {
1377
1378
  var y;
1378
1379
  const o = (y = E.current) == null ? void 0 : y.api;
1379
1380
  if (!o) return;
1380
- const l = new Set(r);
1381
+ const d = new Set(r);
1381
1382
  o.forEachNode((x) => {
1382
- x.id != null && x.setSelected(l.has(x.id));
1383
+ x.id != null && x.setSelected(d.has(x.id));
1383
1384
  });
1384
1385
  },
1385
1386
  selectRange: (r, o) => {
1386
1387
  var qe;
1387
- const l = (qe = E.current) == null ? void 0 : qe.api;
1388
- if (!l) return;
1388
+ const d = (qe = E.current) == null ? void 0 : qe.api;
1389
+ if (!d) return;
1389
1390
  const y = [];
1390
- l.forEachNodeAfterFilterAndSort((Y) => {
1391
- Y.id != null && !W(Y.data) && y.push(Y.id);
1391
+ d.forEachNodeAfterFilterAndSort((Y) => {
1392
+ Y.id != null && !$(Y.data) && y.push(Y.id);
1392
1393
  });
1393
1394
  const x = y.indexOf(r), k = y.indexOf(o);
1394
1395
  if (x < 0 || k < 0) return;
1395
1396
  const [P, re] = x <= k ? [x, k] : [k, x], Z = new Set(y.slice(P, re + 1));
1396
- l.forEachNode((Y) => {
1397
+ d.forEachNode((Y) => {
1397
1398
  Y.id != null && Y.setSelected(Z.has(Y.id));
1398
1399
  });
1399
1400
  },
@@ -1406,31 +1407,31 @@ function Mr(e, t) {
1406
1407
  return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.getFilterModel()) ?? {};
1407
1408
  },
1408
1409
  setFilter: (r) => {
1409
- var o, l;
1410
- (l = (o = E.current) == null ? void 0 : o.api) == null || l.setFilterModel(r);
1410
+ var o, d;
1411
+ (d = (o = E.current) == null ? void 0 : o.api) == null || d.setFilterModel(r);
1411
1412
  },
1412
1413
  getSort: () => {
1413
1414
  var o;
1414
1415
  const r = (o = E.current) == null ? void 0 : o.api;
1415
- return r ? r.getColumnState().filter((l) => l.sort === "asc" || l.sort === "desc").map((l) => ({ colId: l.colId, sort: l.sort })) : [];
1416
+ return r ? r.getColumnState().filter((d) => d.sort === "asc" || d.sort === "desc").map((d) => ({ colId: d.colId, sort: d.sort })) : [];
1416
1417
  },
1417
1418
  setSort: (r) => {
1418
1419
  var y;
1419
1420
  const o = (y = E.current) == null ? void 0 : y.api;
1420
1421
  if (!o) return;
1421
- const l = o.getColumnState().map((x) => {
1422
+ const d = o.getColumnState().map((x) => {
1422
1423
  const k = r.find((P) => P.colId === x.colId);
1423
1424
  return { ...x, sort: k ? k.sort : null };
1424
1425
  });
1425
- o.applyColumnState({ state: l, defaultState: { sort: null } });
1426
+ o.applyColumnState({ state: d, defaultState: { sort: null } });
1426
1427
  },
1427
1428
  getCurrentPage: () => {
1428
1429
  var r, o;
1429
1430
  return ((o = (r = E.current) == null ? void 0 : r.api) == null ? void 0 : o.paginationGetCurrentPage()) ?? 0;
1430
1431
  },
1431
1432
  goToPage: (r) => {
1432
- var o, l;
1433
- (l = (o = E.current) == null ? void 0 : o.api) == null || l.paginationGoToPage(r);
1433
+ var o, d;
1434
+ (d = (o = E.current) == null ? void 0 : o.api) == null || d.paginationGoToPage(r);
1434
1435
  },
1435
1436
  getExpandedRowId: () => Oe.current ?? null,
1436
1437
  getUserTouchedColumns: () => [...te.current],
@@ -1441,14 +1442,14 @@ function Mr(e, t) {
1441
1442
  }
1442
1443
  }),
1443
1444
  []
1444
- ), ce = B(/* @__PURE__ */ new Map()), te = B(/* @__PURE__ */ new Set()), Me = B(
1445
+ ), ce = W(/* @__PURE__ */ new Map()), te = W(/* @__PURE__ */ new Set()), Me = W(
1445
1446
  () => {
1446
1447
  }
1447
1448
  );
1448
- Ot(t, () => Te, [Te]), Jt(Sr, Te, p);
1449
- const ze = z.dir() === "rtl", it = a === void 0, st = Zt(), { resolvedTheme: Ge } = Yt(), lt = (Ge === "light-accessible" || Ge === "dark-accessible") && f === "compact" ? "default" : f, dt = j(() => {
1449
+ Ot(t, () => we, [we]), Jt(Sr, we, f);
1450
+ const ze = z.dir() === "rtl", it = a === void 0, st = Zt(), { resolvedTheme: Ge } = Yt(), lt = (Ge === "light-accessible" || Ge === "dark-accessible") && g === "compact" ? "default" : g, dt = j(() => {
1450
1451
  if (!i) return;
1451
- const r = (o) => !W(o.data);
1452
+ const r = (o) => !$(o.data);
1452
1453
  return i === "single" ? {
1453
1454
  mode: "singleRow",
1454
1455
  enableClickSelection: !1,
@@ -1461,35 +1462,35 @@ function Mr(e, t) {
1461
1462
  isRowSelectable: r
1462
1463
  };
1463
1464
  }, [i]), ue = ze ? "rtl" : "ltr", H = D(
1464
- (r, o, l) => {
1465
+ (r, o, d) => {
1465
1466
  const y = new Set(o);
1466
1467
  for (const x of r.getColumnState()) {
1467
1468
  if (!y.has(x.colId)) continue;
1468
1469
  const k = ce.current.get(x.colId) ?? {};
1469
- for (const P of l) k[P] = x[P];
1470
+ for (const P of d) k[P] = x[P];
1470
1471
  ce.current.set(x.colId, k);
1471
1472
  }
1472
1473
  },
1473
1474
  []
1474
1475
  ), se = D(
1475
1476
  (r) => {
1476
- p && Pr(p, r, ue, te.current);
1477
+ f && Pr(f, r, ue, te.current);
1477
1478
  },
1478
- [p, ue]
1479
+ [f, ue]
1479
1480
  ), _e = D(
1480
1481
  (r) => {
1481
- var l;
1482
+ var d;
1482
1483
  for (const y of r) te.current.add(y);
1483
- const o = (l = E.current) == null ? void 0 : l.api;
1484
+ const o = (d = E.current) == null ? void 0 : d.api;
1484
1485
  o && (H(o, r, ["hide"]), se(o));
1485
1486
  },
1486
1487
  [se, H]
1487
1488
  );
1488
1489
  Me.current = _e;
1489
1490
  const ct = D(() => {
1490
- var l;
1491
- if (!((l = E.current) != null && l.api)) return;
1492
- const r = E.current.api, o = p ? Ar(p, ue) : null;
1491
+ var d;
1492
+ if (!((d = E.current) != null && d.api)) return;
1493
+ const r = E.current.api, o = f ? Ar(f, ue) : null;
1493
1494
  if (o) {
1494
1495
  for (const y of o.touched) te.current.add(y);
1495
1496
  r.applyColumnState({
@@ -1497,11 +1498,11 @@ function Mr(e, t) {
1497
1498
  applyOrder: !0
1498
1499
  }), H(r, o.touched, ["hide"]);
1499
1500
  }
1500
- }, [p, ue, H]), ut = D(
1501
+ }, [f, ue, H]), ut = D(
1501
1502
  (r) => {
1502
- var l;
1503
+ var d;
1503
1504
  if (r.source !== "gridOptionsChanged") return;
1504
- const o = (l = E.current) == null ? void 0 : l.api;
1505
+ const o = (d = E.current) == null ? void 0 : d.api;
1505
1506
  !o || ce.current.size === 0 || o.applyColumnState({
1506
1507
  state: [...ce.current].map(([y, x]) => ({
1507
1508
  colId: y,
@@ -1515,10 +1516,10 @@ function Mr(e, t) {
1515
1516
  var y;
1516
1517
  const o = (y = E.current) == null ? void 0 : y.api;
1517
1518
  if (!o) return;
1518
- const l = (r.columns ?? (r.column ? [r.column] : [])).map((x) => x.getColId());
1519
+ const d = (r.columns ?? (r.column ? [r.column] : [])).map((x) => x.getColId());
1519
1520
  if (r.source && Or.has(r.source)) {
1520
1521
  if (r.source === "api" && "visible" in r) {
1521
- const x = l.filter(
1522
+ const x = d.filter(
1522
1523
  (k) => te.current.has(k)
1523
1524
  );
1524
1525
  x.length > 0 && (H(o, x, ["hide"]), se(o));
@@ -1526,17 +1527,17 @@ function Mr(e, t) {
1526
1527
  return;
1527
1528
  }
1528
1529
  if ("visible" in r) {
1529
- for (const x of l) te.current.add(x);
1530
- H(o, l, ["hide"]);
1531
- } else "pinned" in r ? H(o, l, ["pinned"]) : "flexColumns" in r && H(o, l, ["width", "flex"]);
1530
+ for (const x of d) te.current.add(x);
1531
+ H(o, d, ["hide"]);
1532
+ } else "pinned" in r ? H(o, d, ["pinned"]) : "flexColumns" in r && H(o, d, ["width", "flex"]);
1532
1533
  se(o);
1533
1534
  },
1534
1535
  [se, H]
1535
1536
  ), pt = j(() => {
1536
1537
  if (!c) return;
1537
1538
  const r = { ...c };
1538
- return delete r.defaultColDef, N && (delete r.getRowId, delete r.isFullWidthRow, delete r.fullWidthCellRenderer, delete r.getRowHeight, delete r.postSortRows, delete r.getRowClass, delete r.defaultCsvExportParams, delete r.defaultExcelExportParams), r;
1539
- }, [N, c]), je = B(/* @__PURE__ */ new Map()), le = B(c);
1539
+ return delete r.defaultColDef, F && (delete r.getRowId, delete r.isFullWidthRow, delete r.fullWidthCellRenderer, delete r.getRowHeight, delete r.postSortRows, delete r.getRowClass, delete r.defaultCsvExportParams, delete r.defaultExcelExportParams), r;
1540
+ }, [F, c]), je = W(/* @__PURE__ */ new Map()), le = W(c);
1540
1541
  le.current = c;
1541
1542
  const Le = D(
1542
1543
  (r) => {
@@ -1550,10 +1551,10 @@ function Mr(e, t) {
1550
1551
  },
1551
1552
  [q, c == null ? void 0 : c.context]
1552
1553
  ), J = j(() => {
1553
- if (!N || v == null || !a) return null;
1554
+ if (!F || v == null || !a) return null;
1554
1555
  const r = a.find((o) => Le(o) === v);
1555
1556
  return r === void 0 ? null : { id: v, row: r };
1556
- }, [N, v, Le, a]), ft = j(() => {
1557
+ }, [F, v, Le, a]), ft = j(() => {
1557
1558
  if (!J || !a) return a;
1558
1559
  const r = a.indexOf(J.row), o = Cr(J.row, J.id);
1559
1560
  return [
@@ -1562,60 +1563,60 @@ function Mr(e, t) {
1562
1563
  ...a.slice(r + 1)
1563
1564
  ];
1564
1565
  }, [J, a]), mt = D(
1565
- (r) => W(r.data) ? vr(r.data[ne]) : q(r),
1566
+ (r) => $(r.data) ? vr(r.data[ne]) : q(r),
1566
1567
  [q]
1567
1568
  ), gt = D(
1568
1569
  (r) => {
1569
- var o, l;
1570
- return W(r.rowNode.data) || (((l = (o = le.current) == null ? void 0 : o.isFullWidthRow) == null ? void 0 : l.call(o, r)) ?? !1);
1570
+ var o, d;
1571
+ return $(r.rowNode.data) || (((d = (o = le.current) == null ? void 0 : o.isFullWidthRow) == null ? void 0 : d.call(o, r)) ?? !1);
1571
1572
  },
1572
1573
  []
1573
- ), ht = D(
1574
+ ), bt = D(
1574
1575
  (r) => {
1575
- var o, l;
1576
- return W(r.data) ? je.current.get(r.node.id ?? "") : (l = (o = le.current) == null ? void 0 : o.getRowHeight) == null ? void 0 : l.call(o, r);
1576
+ var o, d;
1577
+ return $(r.data) ? je.current.get(r.node.id ?? "") : (d = (o = le.current) == null ? void 0 : o.getRowHeight) == null ? void 0 : d.call(o, r);
1577
1578
  },
1578
1579
  []
1579
- ), bt = D(
1580
+ ), ht = D(
1580
1581
  (r) => {
1581
1582
  var P, re;
1582
1583
  (re = (P = le.current) == null ? void 0 : P.postSortRows) == null || re.call(P, r);
1583
- const { nodes: o } = r, l = o.findIndex((Z) => W(Z.data));
1584
- if (l < 0) return;
1585
- const [y] = o.splice(l, 1), x = y.data[ne], k = o.findIndex((Z) => Z.id === x);
1584
+ const { nodes: o } = r, d = o.findIndex((Z) => $(Z.data));
1585
+ if (d < 0) return;
1586
+ const [y] = o.splice(d, 1), x = y.data[ne], k = o.findIndex((Z) => Z.id === x);
1586
1587
  o.splice(k < 0 ? o.length : k + 1, 0, y);
1587
1588
  },
1588
1589
  []
1589
1590
  ), yt = D(
1590
1591
  (r) => {
1591
- var o, l;
1592
- return W(r.data) ? wr : ((l = (o = le.current) == null ? void 0 : o.getRowClass) == null ? void 0 : l.call(o, r)) ?? (I == null ? void 0 : I(r));
1592
+ var o, d;
1593
+ return $(r.data) ? Tr : ((d = (o = le.current) == null ? void 0 : o.getRowClass) == null ? void 0 : d.call(o, r)) ?? (I == null ? void 0 : I(r));
1593
1594
  },
1594
1595
  [I]
1595
1596
  ), fe = D(
1596
- (r) => W(r.node.data),
1597
+ (r) => $(r.node.data),
1597
1598
  []
1598
1599
  ), xt = j(() => {
1599
- if (!N) return;
1600
+ if (!F) return;
1600
1601
  const r = c == null ? void 0 : c.defaultCsvExportParams;
1601
1602
  return {
1602
1603
  ...r,
1603
1604
  shouldRowBeSkipped: (o) => {
1604
- var l;
1605
- return fe(o) || (((l = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : l.call(r, o)) ?? !1);
1605
+ var d;
1606
+ return fe(o) || (((d = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : d.call(r, o)) ?? !1);
1606
1607
  }
1607
1608
  };
1608
- }, [N, c == null ? void 0 : c.defaultCsvExportParams, fe]), wt = j(() => {
1609
- if (!N) return;
1609
+ }, [F, c == null ? void 0 : c.defaultCsvExportParams, fe]), Tt = j(() => {
1610
+ if (!F) return;
1610
1611
  const r = c == null ? void 0 : c.defaultExcelExportParams;
1611
1612
  return {
1612
1613
  ...r,
1613
1614
  shouldRowBeSkipped: (o) => {
1614
- var l;
1615
- return fe(o) || (((l = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : l.call(r, o)) ?? !1);
1615
+ var d;
1616
+ return fe(o) || (((d = r == null ? void 0 : r.shouldRowBeSkipped) == null ? void 0 : d.call(r, o)) ?? !1);
1616
1617
  }
1617
1618
  };
1618
- }, [N, c == null ? void 0 : c.defaultExcelExportParams, fe]), ve = c == null ? void 0 : c.fullWidthCellRenderer, Tt = j(
1619
+ }, [F, c == null ? void 0 : c.defaultExcelExportParams, fe]), ve = c == null ? void 0 : c.fullWidthCellRenderer, wt = j(
1619
1620
  () => ({
1620
1621
  renderExpandedRow: O,
1621
1622
  onExpandedRowChange: M,
@@ -1630,43 +1631,43 @@ function Mr(e, t) {
1630
1631
  O
1631
1632
  ]
1632
1633
  ), vt = D(() => {
1633
- var l;
1634
- const r = (l = E.current) == null ? void 0 : l.api;
1634
+ var d;
1635
+ const r = (d = E.current) == null ? void 0 : d.api;
1635
1636
  if (!r) return;
1636
- const o = r.getSelectedRows().filter((y) => !W(y));
1637
- xe(o.length), m == null || m(o);
1638
- }, [m]), Ct = D(
1637
+ const o = r.getSelectedRows().filter((y) => !$(y));
1638
+ xe(o.length), b == null || b(o);
1639
+ }, [b]), Ct = D(
1639
1640
  (r) => {
1640
- var l;
1641
- const o = (l = E.current) == null ? void 0 : l.api;
1641
+ var d;
1642
+ const o = (d = E.current) == null ? void 0 : d.api;
1642
1643
  if (o) {
1643
1644
  const x = o.getColumnState().find((k) => k.sort);
1644
1645
  if (x) {
1645
1646
  const k = x.colId, P = o.getColumnDef(k), re = (P == null ? void 0 : P.headerName) ?? k, Z = x.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1646
- we(
1647
+ Te(
1647
1648
  U("dataTable.sortAnnounce", {
1648
1649
  column: re,
1649
1650
  direction: U(Z)
1650
1651
  })
1651
1652
  );
1652
1653
  } else
1653
- we("");
1654
+ Te("");
1654
1655
  }
1655
- u == null || u(r);
1656
+ p == null || p(r);
1656
1657
  },
1657
- [u, U]
1658
+ [p, U]
1658
1659
  ), Rt = D(
1659
1660
  (r) => {
1660
- b == null || b(r);
1661
+ h == null || h(r);
1661
1662
  },
1662
- [b]
1663
+ [h]
1663
1664
  );
1664
1665
  K(() => {
1665
1666
  if (!Q) return;
1666
- const r = setTimeout(() => we(""), 3e3);
1667
+ const r = setTimeout(() => Te(""), 3e3);
1667
1668
  return () => clearTimeout(r);
1668
1669
  }, [Q]);
1669
- const St = S ?? Nr, It = C ?? Dr, Et = D(
1670
+ const St = S ?? Fr, It = C ?? Dr, Et = D(
1670
1671
  () => {
1671
1672
  var r;
1672
1673
  return (r = E.current) == null ? void 0 : r.api;
@@ -1674,30 +1675,30 @@ function Mr(e, t) {
1674
1675
  []
1675
1676
  ), Dt = D(() => {
1676
1677
  typeof window < "u" && window.print();
1677
- }, []), Nt = Ir({
1678
+ }, []), Ft = Ir({
1678
1679
  density: lt,
1679
- bordered: w,
1680
+ bordered: T,
1680
1681
  className: R
1681
- }), Ft = F ?? /* @__PURE__ */ s("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ L(
1682
- Wt,
1682
+ }), Nt = N ?? /* @__PURE__ */ s("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ L(
1683
+ $t,
1683
1684
  {
1684
1685
  role: "toolbar",
1685
1686
  "aria-label": U("dataTable.tableActions"),
1686
1687
  className: "ds:bg-[var(--background)]",
1687
1688
  children: [
1688
- /* @__PURE__ */ s(be.ExportMenu, {}),
1689
- /* @__PURE__ */ s(be.Print, {}),
1690
- /* @__PURE__ */ s(be.ColumnToggle, {})
1689
+ /* @__PURE__ */ s(he.ExportMenu, {}),
1690
+ /* @__PURE__ */ s(he.Print, {}),
1691
+ /* @__PURE__ */ s(he.ColumnToggle, {})
1691
1692
  ]
1692
1693
  }
1693
- ) }), kt = _ ? !1 : d;
1694
+ ) }), kt = _ ? !1 : l;
1694
1695
  return /* @__PURE__ */ L(
1695
1696
  "div",
1696
1697
  {
1697
1698
  className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
1698
1699
  "aria-busy": it ? "true" : void 0,
1699
1700
  "data-component": "data-table",
1700
- "data-component-id": p,
1701
+ "data-component-id": f,
1701
1702
  "data-print-mode": _ ? "true" : void 0,
1702
1703
  children: [
1703
1704
  !_ && /* @__PURE__ */ s(
@@ -1707,18 +1708,18 @@ function Mr(e, t) {
1707
1708
  selectionCount: X,
1708
1709
  onPrint: Dt,
1709
1710
  markColumnsUserTouched: _e,
1710
- children: Ft
1711
+ children: Nt
1711
1712
  }
1712
1713
  ),
1713
1714
  /* @__PURE__ */ s(
1714
1715
  "div",
1715
1716
  {
1716
1717
  ref: ie,
1717
- className: [Nt, _ ? "" : T].join(" ").trim(),
1718
+ className: [Ft, _ ? "" : w].join(" ").trim(),
1718
1719
  children: /* @__PURE__ */ s(
1719
1720
  at.Provider,
1720
1721
  {
1721
- value: Tt,
1722
+ value: wt,
1722
1723
  children: /* @__PURE__ */ s(
1723
1724
  jt,
1724
1725
  {
@@ -1733,8 +1734,8 @@ function Mr(e, t) {
1733
1734
  // language instead of AG Grid's stock browser-skinned input.
1734
1735
  // Number / date / select columns opt into their dedicated
1735
1736
  // wrapper per-column.
1736
- filter: hr,
1737
- floatingFilterComponent: br,
1737
+ filter: br,
1738
+ floatingFilterComponent: hr,
1738
1739
  resizable: !0,
1739
1740
  floatingFilter: !0,
1740
1741
  // §13d — faint sort icon advertises which columns are
@@ -1744,8 +1745,8 @@ function Mr(e, t) {
1744
1745
  },
1745
1746
  rowSelection: dt,
1746
1747
  pagination: kt,
1747
- paginationPageSize: g,
1748
- paginationPageSizeSelector: h,
1748
+ paginationPageSize: m,
1749
+ paginationPageSizeSelector: u,
1749
1750
  paginationNumberFormatter: (r) => new Intl.NumberFormat(z.language).format(r.value),
1750
1751
  animateRows: !st,
1751
1752
  enableRtl: ze,
@@ -1768,7 +1769,7 @@ function Mr(e, t) {
1768
1769
  localeText: ot,
1769
1770
  noRowsOverlayComponent: St,
1770
1771
  loadingOverlayComponent: It,
1771
- getRowClass: N ? yt : I,
1772
+ getRowClass: F ? yt : I,
1772
1773
  pinnedBottomRowData: ee,
1773
1774
  domLayout: _ ? "autoHeight" : void 0,
1774
1775
  onGridReady: ct,
@@ -1781,14 +1782,14 @@ function Mr(e, t) {
1781
1782
  onFilterChanged: Rt,
1782
1783
  onSelectionChanged: vt,
1783
1784
  ...pt,
1784
- ...N ? {
1785
+ ...F ? {
1785
1786
  getRowId: mt,
1786
1787
  isFullWidthRow: gt,
1787
1788
  fullWidthCellRenderer: Rr,
1788
- getRowHeight: ht,
1789
- postSortRows: bt,
1789
+ getRowHeight: bt,
1790
+ postSortRows: ht,
1790
1791
  defaultCsvExportParams: xt,
1791
- defaultExcelExportParams: wt
1792
+ defaultExcelExportParams: Tt
1792
1793
  } : {}
1793
1794
  }
1794
1795
  )
@@ -1802,22 +1803,22 @@ function Mr(e, t) {
1802
1803
  }
1803
1804
  );
1804
1805
  }
1805
- const nt = $(Mr);
1806
+ const nt = B(Mr);
1806
1807
  nt.displayName = "DataTable";
1807
1808
  const ma = Object.assign(nt, {
1808
- Toolbar: be
1809
+ Toolbar: he
1809
1810
  });
1810
1811
  export {
1811
1812
  ma as D,
1812
- wr as E,
1813
- hr as T,
1814
- br as a,
1815
- be as b,
1813
+ Tr as E,
1814
+ br as T,
1815
+ hr as a,
1816
+ he as b,
1816
1817
  ar as c,
1817
1818
  Sr as d,
1818
1819
  Qe as e,
1819
1820
  vr as f,
1820
1821
  fa as g,
1821
- W as i
1822
+ $ as i
1822
1823
  };
1823
- //# sourceMappingURL=data-table-DWOSxlsy.js.map
1824
+ //# sourceMappingURL=data-table-CrI3_bjH.js.map