@alfadocs/ui-kit 1.0.0 → 1.2.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 (137) hide show
  1. package/dist/_chunks/{actions-cell-renderer-DaL80uqL.js → actions-cell-renderer-ClGCSQnA.js} +600 -565
  2. package/dist/_chunks/{ai-consent-banner-BXD7W6FI.js → ai-consent-banner-DKgFfSzc.js} +2 -2
  3. package/dist/_chunks/{alert-Cxaqd-QO.js → alert-DS22ha1n.js} +103 -98
  4. package/dist/_chunks/{annotation-marker-qt5R9WZX.js → annotation-marker-CsUJGZjQ.js} +7 -5
  5. package/dist/_chunks/{audio-recorder-BjnB7V8n.js → audio-recorder-sRsGS-0V.js} +2 -2
  6. package/dist/_chunks/{booking-DSOK-bnR.js → booking-D8fCzcUd.js} +2 -2
  7. package/dist/_chunks/{care-plan-card-BrwhyIJI.js → care-plan-card-DjjVnBYz.js} +2 -2
  8. package/dist/_chunks/{care-plan-entry-card-DWEdCQM3.js → care-plan-entry-card-BVhpvd-P.js} +2 -2
  9. package/dist/_chunks/{collapsible-BrnRiCC6.js → collapsible-CGL9ontS.js} +65 -61
  10. package/dist/_chunks/{document-preview-DXsCEj4U.js → document-preview-DAczwybt.js} +2 -2
  11. package/dist/_chunks/{document-scanner-cS_ispQs.js → document-scanner-BRYIc3A-.js} +2 -2
  12. package/dist/_chunks/{entity-summary-BILN4wEG.js → entity-summary-BS6n7Iah.js} +2 -2
  13. package/dist/_chunks/{face-scheme-CjQAHvSP.js → face-scheme-Cou2efl7.js} +2 -2
  14. package/dist/_chunks/{file-manager-B9LZzT5E.js → file-manager-CNSLiuLo.js} +2 -2
  15. package/dist/_chunks/{freemium-paywall-Dr2342_S.js → freemium-paywall-DsT7MaLd.js} +2 -2
  16. package/dist/_chunks/link-cell-renderer-_DlEZHLI.js +772 -0
  17. package/dist/_chunks/{marketplace-app-shell-pCHBp8bo.js → marketplace-app-shell-DQC9Gpm0.js} +2 -2
  18. package/dist/_chunks/{muscle-scheme-kgCX5qfO.js → muscle-scheme-yfzP_xoJ.js} +2 -2
  19. package/dist/_chunks/notes-panel-CCz0J140.js +370 -0
  20. package/dist/_chunks/{patient-details-UmNcxL0c.js → patient-details-l7pnsUq9.js} +2 -2
  21. package/dist/_chunks/{patient-search-vtRTSdf6.js → patient-search-H54Utav2.js} +2 -2
  22. package/dist/_chunks/{patient-table-QEVsFvwq.js → patient-table-DXk0wW8Q.js} +243 -239
  23. package/dist/_chunks/payment-automation-upsell-C4LIw1iQ.js +305 -0
  24. package/dist/_chunks/{payment-form-BoGxEmGn.js → payment-form-CyKT20xZ.js} +2 -2
  25. package/dist/_chunks/{payment-request-card-CygO1anM.js → payment-request-card-CN30J6yM.js} +107 -138
  26. package/dist/_chunks/{pdf-viewer-CcOuR2wj.js → pdf-viewer-DHg8SfUI.js} +2 -2
  27. package/dist/_chunks/{practice-results-yKbwIxqa.js → practice-results-qvJRkvLn.js} +2 -2
  28. package/dist/_chunks/receipt-euro-C6k4Gzhr.js +36 -0
  29. package/dist/_chunks/{reviews-panel-DmOjvmyH.js → reviews-panel-BfUJhx3m.js} +2 -2
  30. package/dist/_chunks/{sign-document-cH9CboWB.js → sign-document-D70TEUw9.js} +2 -2
  31. package/dist/_chunks/{signature-request-BzXTV_RH.js → signature-request-BlNCXpRN.js} +2 -2
  32. package/dist/_chunks/sparkline-DJtZBe7O.js +501 -0
  33. package/dist/_chunks/{warning-stack-DKeAfj5M.js → warning-stack-IVf0oxh2.js} +2 -2
  34. package/dist/_chunks/{workflow-map-SIfAhmWz.js → workflow-map-ByyBYj6Y.js} +2 -2
  35. package/dist/agent-catalog.json +237 -7
  36. package/dist/agent-i18n/en.json +17 -5
  37. package/dist/components/ai-consent-banner/index.js +1 -1
  38. package/dist/components/alert/alert.d.ts +20 -0
  39. package/dist/components/alert/index.d.ts +1 -1
  40. package/dist/components/alert/index.js +1 -1
  41. package/dist/components/annotation-marker/index.js +1 -1
  42. package/dist/components/audio-recorder/index.js +1 -1
  43. package/dist/components/booking/index.js +1 -1
  44. package/dist/components/care-plan-card/index.js +1 -1
  45. package/dist/components/care-plan-entry-card/index.js +1 -1
  46. package/dist/components/collapsible/index.js +1 -1
  47. package/dist/components/data-table/filters/select-filter.d.ts +6 -0
  48. package/dist/components/data-table/hooks/use-presentational-aria-fix.d.ts +19 -0
  49. package/dist/components/data-table/index.js +2 -2
  50. package/dist/components/document-preview/index.js +1 -1
  51. package/dist/components/document-scanner/index.js +1 -1
  52. package/dist/components/entity-summary/index.js +1 -1
  53. package/dist/components/face-scheme/index.js +1 -1
  54. package/dist/components/file-manager/index.js +1 -1
  55. package/dist/components/freemium-paywall/index.js +1 -1
  56. package/dist/components/muscle-scheme/index.js +1 -1
  57. package/dist/components/notes-panel/index.js +1 -1
  58. package/dist/components/notes-panel/notes-panel.d.ts +45 -2
  59. package/dist/components/patient-details/index.js +1 -1
  60. package/dist/components/patient-search/index.js +1 -1
  61. package/dist/components/patient-table/index.js +1 -1
  62. package/dist/components/payment-card/index.js +1 -1
  63. package/dist/components/payment-form/index.js +1 -1
  64. package/dist/components/pdf-viewer/index.js +1 -1
  65. package/dist/components/practice-results/index.js +1 -1
  66. package/dist/components/reviews-panel/index.js +1 -1
  67. package/dist/components/sign-document/index.js +1 -1
  68. package/dist/components/skeleton-scheme/index.js +1 -1
  69. package/dist/components/sparkline/index.d.ts +1 -1
  70. package/dist/components/sparkline/index.js +1 -1
  71. package/dist/components/sparkline/sparkline.d.ts +60 -3
  72. package/dist/components/warning-stack/index.js +1 -1
  73. package/dist/components/workflow/index.js +1 -1
  74. package/dist/host-compat.css +13 -1
  75. package/dist/i18n/locales/ar.d.ts +3 -0
  76. package/dist/i18n/locales/ar.js +3 -0
  77. package/dist/i18n/locales/de.d.ts +3 -0
  78. package/dist/i18n/locales/de.js +3 -0
  79. package/dist/i18n/locales/el.d.ts +3 -0
  80. package/dist/i18n/locales/el.js +3 -0
  81. package/dist/i18n/locales/en.d.ts +3 -0
  82. package/dist/i18n/locales/en.js +3 -0
  83. package/dist/i18n/locales/es.d.ts +3 -0
  84. package/dist/i18n/locales/es.js +3 -0
  85. package/dist/i18n/locales/fr.d.ts +3 -0
  86. package/dist/i18n/locales/fr.js +3 -0
  87. package/dist/i18n/locales/hi.d.ts +3 -0
  88. package/dist/i18n/locales/hi.js +3 -0
  89. package/dist/i18n/locales/it.d.ts +3 -0
  90. package/dist/i18n/locales/it.js +3 -0
  91. package/dist/i18n/locales/ja.d.ts +3 -0
  92. package/dist/i18n/locales/ja.js +3 -0
  93. package/dist/i18n/locales/nl.d.ts +3 -0
  94. package/dist/i18n/locales/nl.js +3 -0
  95. package/dist/i18n/locales/pl.d.ts +3 -0
  96. package/dist/i18n/locales/pl.js +3 -0
  97. package/dist/i18n/locales/pt.d.ts +3 -0
  98. package/dist/i18n/locales/pt.js +3 -0
  99. package/dist/i18n/locales/ro.d.ts +3 -0
  100. package/dist/i18n/locales/ro.js +3 -0
  101. package/dist/i18n/locales/ru.d.ts +3 -0
  102. package/dist/i18n/locales/ru.js +3 -0
  103. package/dist/i18n/locales/sq.d.ts +3 -0
  104. package/dist/i18n/locales/sq.js +3 -0
  105. package/dist/i18n/locales/sv.d.ts +3 -0
  106. package/dist/i18n/locales/sv.js +3 -0
  107. package/dist/i18n/locales/tr.d.ts +3 -0
  108. package/dist/i18n/locales/tr.js +3 -0
  109. package/dist/i18n/locales/zh.d.ts +3 -0
  110. package/dist/i18n/locales/zh.js +3 -0
  111. package/dist/index.js +974 -1268
  112. package/dist/locales/ar.json +3 -0
  113. package/dist/locales/de.json +3 -0
  114. package/dist/locales/el.json +3 -0
  115. package/dist/locales/en.json +3 -0
  116. package/dist/locales/es.json +3 -0
  117. package/dist/locales/fr.json +3 -0
  118. package/dist/locales/hi.json +3 -0
  119. package/dist/locales/it.json +3 -0
  120. package/dist/locales/ja.json +3 -0
  121. package/dist/locales/nl.json +3 -0
  122. package/dist/locales/pl.json +3 -0
  123. package/dist/locales/pt.json +3 -0
  124. package/dist/locales/ro.json +3 -0
  125. package/dist/locales/ru.json +3 -0
  126. package/dist/locales/sq.json +3 -0
  127. package/dist/locales/sv.json +3 -0
  128. package/dist/locales/tr.json +3 -0
  129. package/dist/locales/zh.json +3 -0
  130. package/dist/patterns/marketplace-app-shell/index.js +1 -1
  131. package/dist/patterns/payment-automation-upsell/index.js +5 -0
  132. package/dist/patterns/signature-request/index.js +1 -1
  133. package/dist/tokens.css +1 -1
  134. package/package.json +5 -1
  135. package/dist/_chunks/link-cell-renderer-Bt-mXeQY.js +0 -728
  136. package/dist/_chunks/notes-panel-CTcOLLVo.js +0 -324
  137. package/dist/_chunks/sparkline-DcXqRZoq.js +0 -283
@@ -1,41 +1,41 @@
1
1
  import { jsx as n, jsxs as O } from "react/jsx-runtime";
2
- import { useMemo as B, forwardRef as P, useState as A, useCallback as k, useEffect as $, useRef as ye, createContext as ve, useContext as xe, isValidElement as Ce, cloneElement as Se, useImperativeHandle as at } from "react";
3
- import { S as rt } from "./skeleton-CZbwyJAA.js";
4
- import { E as nt } from "./empty-state-CrLsi0XI.js";
5
- import { c as ot } from "./index-D2ZczOXr.js";
2
+ import { useMemo as $, forwardRef as P, useState as k, useCallback as A, useEffect as q, useRef as se, createContext as Ce, useContext as Se, isValidElement as we, cloneElement as Ne, useImperativeHandle as ot } from "react";
3
+ import { S as it } from "./skeleton-CZbwyJAA.js";
4
+ import { E as st } from "./empty-state-CrLsi0XI.js";
5
+ import { c as lt } from "./index-D2ZczOXr.js";
6
6
  import { useTranslation as w } from "react-i18next";
7
- import { useGridFilter as it, AgGridReact as st } from "ag-grid-react";
8
- import { ModuleRegistry as lt, AllCommunityModule as dt } from "ag-grid-community";
9
- import { I as we } from "./icon-button-group-BLHPN6jg.js";
10
- import { B as J } from "./button-CPGiR_bH.js";
11
- import { I as q } from "./icon-button-C_kbcd7I.js";
7
+ import { useGridFilter as dt, AgGridReact as ct } from "ag-grid-react";
8
+ import { ModuleRegistry as ut, AllCommunityModule as pt } from "ag-grid-community";
9
+ import { I as Ie } from "./icon-button-group-BLHPN6jg.js";
10
+ import { B as X } from "./button-CPGiR_bH.js";
11
+ import { I as L } from "./icon-button-C_kbcd7I.js";
12
12
  import { P as Z } from "./popover-Cc0a69sw.js";
13
- import { C as ct } from "./checkbox-BuZ1u__2.js";
14
- import { T as ie } from "./text-input-CUvCb6ST.js";
15
- import { T as he } from "./tag-3wgkwwDB.js";
13
+ import { C as mt } from "./checkbox-BuZ1u__2.js";
14
+ import { T as le } from "./text-input-CUvCb6ST.js";
15
+ import { T as ye } from "./tag-3wgkwwDB.js";
16
16
  import { D as j } from "./dropdown-menu-DU-Hrf33.js";
17
- import { X as Ne } from "./x-B5YnXwCz.js";
18
- import { R as ut } from "./refresh-cw-DnI0cLFC.js";
19
- import { S as se } from "./search-QbWPlY5f.js";
20
- import { c as pt } from "./createLucideIcon-DhHxpK9K.js";
21
- import { G as mt } from "./grip-vertical-onSb1JXO.js";
22
- import { P as ft } from "./printer-rkK0T1gi.js";
23
- import { F as Ie } from "./file-text-5yv6r2ls.js";
24
- import { D as ee } from "./download-CfYKJO_j.js";
25
- import { F as gt } from "./file-spreadsheet-DmwyfV4O.js";
26
- import bt from "i18next";
27
- import { S as ht } from "./select-BW5ecXlX.js";
28
- import { u as Tt } from "./registry-DvAUVLHh.js";
29
- import { u as yt } from "./use-prefers-reduced-motion-BMwIQRjB.js";
30
- import { u as vt } from "./use-theme-CAuo6EYT.js";
31
- import { E as xt } from "./ellipsis-dRo9ouSU.js";
17
+ import { X as Fe } from "./x-B5YnXwCz.js";
18
+ import { R as ft } from "./refresh-cw-DnI0cLFC.js";
19
+ import { S as de } from "./search-QbWPlY5f.js";
20
+ import { c as gt } from "./createLucideIcon-DhHxpK9K.js";
21
+ import { G as bt } from "./grip-vertical-onSb1JXO.js";
22
+ import { P as ht } from "./printer-rkK0T1gi.js";
23
+ import { F as De } from "./file-text-5yv6r2ls.js";
24
+ import { D as te } from "./download-CfYKJO_j.js";
25
+ import { F as Tt } from "./file-spreadsheet-DmwyfV4O.js";
26
+ import yt from "i18next";
27
+ import { S as vt } from "./select-BW5ecXlX.js";
28
+ import { u as xt } from "./registry-DvAUVLHh.js";
29
+ import { u as Ct } from "./use-prefers-reduced-motion-BMwIQRjB.js";
30
+ import { u as St } from "./use-theme-CAuo6EYT.js";
31
+ import { E as wt } from "./ellipsis-dRo9ouSU.js";
32
32
  /**
33
33
  * @license lucide-react v1.22.0 - ISC
34
34
  *
35
35
  * This source code is licensed under the ISC license.
36
36
  * See the LICENSE file in the root directory of this source tree.
37
37
  */
38
- const Ct = [
38
+ const Nt = [
39
39
  ["path", { d: "M10.5 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.5", key: "1g2yzs" }],
40
40
  ["path", { d: "m14.3 19.6 1-.4", key: "11sv9r" }],
41
41
  ["path", { d: "M15 3v7.5", key: "7lm50a" }],
@@ -48,34 +48,34 @@ const Ct = [
48
48
  ["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
49
49
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
50
50
  ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
51
- ], St = pt("columns-3-cog", Ct);
52
- function wt(e) {
53
- if (!Ce(e)) return e;
54
- const t = e, a = t.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} ds:size-4`.trim();
55
- return Se(t, { className: r, size: t.props.size ?? 16 });
51
+ ], It = gt("columns-3-cog", Nt);
52
+ function Ft(e) {
53
+ if (!we(e)) return e;
54
+ const t = e, r = t.props.className ?? "", a = /\bsize-|\bw-|\bh-/.test(r) ? r : `${r} ds:size-4`.trim();
55
+ return Ne(t, { className: a, size: t.props.size ?? 16 });
56
56
  }
57
- const De = ve(null);
57
+ const Re = Ce(null);
58
58
  function G(e) {
59
- const t = xe(De);
59
+ const t = Se(Re);
60
60
  if (!t)
61
61
  throw new Error(
62
62
  `${e} must be rendered inside <DataTable.Toolbar> as a descendant of <DataTable>.`
63
63
  );
64
64
  return t;
65
65
  }
66
- function Nt({
66
+ function Dt({
67
67
  getApi: e,
68
68
  selectionCount: t,
69
- onPrint: a,
70
- children: r
69
+ onPrint: r,
70
+ children: a
71
71
  }) {
72
- const o = B(
73
- () => ({ getApi: e, selectionCount: t, onPrint: a }),
74
- [e, t, a]
72
+ const o = $(
73
+ () => ({ getApi: e, selectionCount: t, onPrint: r }),
74
+ [e, t, r]
75
75
  );
76
- return /* @__PURE__ */ n(De.Provider, { value: o, children: r });
76
+ return /* @__PURE__ */ n(Re.Provider, { value: o, children: a });
77
77
  }
78
- const It = [
78
+ const Rt = [
79
79
  "data-table-toolbar",
80
80
  // Mobile (<sm) keeps `flex-wrap` so a wide QuickSearch can flow above the
81
81
  // Actions cluster on narrow screens. From `sm` (≥640px) we switch to
@@ -87,24 +87,24 @@ const It = [
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(" "), Fe = P(
91
- ({ className: e, children: t, ...a }, r) => /* @__PURE__ */ n(
90
+ ].join(" "), Ae = P(
91
+ ({ className: e, children: t, ...r }, a) => /* @__PURE__ */ n(
92
92
  "div",
93
93
  {
94
- ref: r,
94
+ ref: a,
95
95
  role: "toolbar",
96
- className: [It, e ?? ""].join(" ").trim(),
97
- ...a,
96
+ className: [Rt, e ?? ""].join(" ").trim(),
97
+ ...r,
98
98
  children: t
99
99
  }
100
100
  )
101
101
  );
102
- Fe.displayName = "DataTable.Toolbar";
103
- const Re = P(
104
- ({ className: e, children: t, ...a }, r) => /* @__PURE__ */ n(
102
+ Ae.displayName = "DataTable.Toolbar";
103
+ const ke = P(
104
+ ({ className: e, children: t, ...r }, a) => /* @__PURE__ */ n(
105
105
  "div",
106
106
  {
107
- ref: r,
107
+ ref: a,
108
108
  className: [
109
109
  "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-sm)]",
110
110
  // `grow` lets FilterBar absorb the free space; `min-w-0` lets the
@@ -114,69 +114,69 @@ const Re = P(
114
114
  "ds:grow ds:min-w-0",
115
115
  e ?? ""
116
116
  ].join(" ").trim(),
117
- ...a,
117
+ ...r,
118
118
  children: t
119
119
  }
120
120
  )
121
121
  );
122
- Re.displayName = "DataTable.Toolbar.FilterBar";
123
- const ke = P(
124
- ({ className: e, children: t, ...a }, r) => /* @__PURE__ */ n(
122
+ ke.displayName = "DataTable.Toolbar.FilterBar";
123
+ const Ee = P(
124
+ ({ className: e, children: t, ...r }, a) => /* @__PURE__ */ n(
125
125
  "div",
126
126
  {
127
- ref: r,
127
+ ref: a,
128
128
  className: [
129
129
  "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
130
130
  "ds:ms-auto",
131
131
  e ?? ""
132
132
  ].join(" ").trim(),
133
- ...a,
133
+ ...r,
134
134
  children: t
135
135
  }
136
136
  )
137
137
  );
138
- ke.displayName = "DataTable.Toolbar.Actions";
139
- const le = P(
140
- ({ label: e, onExport: t, intent: a = "outline", ...r }, o) => {
141
- const { t: s } = w(), { getApi: c } = G("DataTable.Toolbar.ExportCsv"), f = k(() => {
142
- const d = c();
143
- d && (t ? t(d) : d.exportDataAsCsv());
138
+ Ee.displayName = "DataTable.Toolbar.Actions";
139
+ const ce = P(
140
+ ({ label: e, onExport: t, intent: r = "outline", ...a }, o) => {
141
+ const { t: i } = w(), { getApi: c } = G("DataTable.Toolbar.ExportCsv"), u = A(() => {
142
+ const l = c();
143
+ l && (t ? t(l) : l.exportDataAsCsv());
144
144
  }, [c, t]);
145
145
  return /* @__PURE__ */ n(
146
- q,
146
+ L,
147
147
  {
148
148
  ref: o,
149
149
  type: "button",
150
- intent: a,
151
- icon: /* @__PURE__ */ n(ee, { "aria-hidden": !0 }),
152
- tooltip: e ?? s("dataTable.exportCsv"),
153
- onClick: f,
154
- ...r
150
+ intent: r,
151
+ icon: /* @__PURE__ */ n(te, { "aria-hidden": !0 }),
152
+ tooltip: e ?? i("dataTable.exportCsv"),
153
+ onClick: u,
154
+ ...a
155
155
  }
156
156
  );
157
157
  }
158
158
  );
159
- le.displayName = "DataTable.Toolbar.ExportCsv";
159
+ ce.displayName = "DataTable.Toolbar.ExportCsv";
160
160
  function U(e, t = [30, 30, 30]) {
161
161
  if (typeof document > "u") return t;
162
- const a = document.createElement("span");
163
- a.style.color = `hsl(var(${e}))`, a.style.position = "absolute", a.style.visibility = "hidden", document.body.appendChild(a);
164
- const r = getComputedStyle(a).color;
165
- document.body.removeChild(a);
166
- const o = r.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
162
+ const r = document.createElement("span");
163
+ r.style.color = `hsl(var(${e}))`, r.style.position = "absolute", r.style.visibility = "hidden", document.body.appendChild(r);
164
+ const a = getComputedStyle(r).color;
165
+ document.body.removeChild(r);
166
+ const o = a.match(/rgba?\(\s*(\d+)[,\s]+(\d+)[,\s]+(\d+)/i);
167
167
  return o ? [Number(o[1]), Number(o[2]), Number(o[3])] : t;
168
168
  }
169
- async function Ae(e, t) {
169
+ async function Oe(e, t) {
170
170
  if (!e) return;
171
- const [{ jsPDF: a }, { default: r }] = await Promise.all([
171
+ const [{ jsPDF: r }, { default: a }] = await Promise.all([
172
172
  import("./jspdf.es.min-DaapWjR1.js").then((b) => b.j),
173
173
  import("./jspdf.plugin.autotable-CSiDNyPn.js")
174
- ]), s = (e.getColumns() ?? []).filter((b) => b.isVisible()), c = [
175
- s.map((b) => e.getDisplayNameForColumn(b, null) ?? "")
176
- ], f = [];
174
+ ]), i = (e.getColumns() ?? []).filter((b) => b.isVisible()), c = [
175
+ i.map((b) => e.getDisplayNameForColumn(b, null) ?? "")
176
+ ], u = [];
177
177
  e.forEachNodeAfterFilterAndSort((b) => {
178
178
  if (!b.data) return;
179
- const T = s.map((g) => {
179
+ const T = i.map((g) => {
180
180
  const N = e.getCellValue({
181
181
  rowNode: b,
182
182
  colKey: g,
@@ -184,15 +184,15 @@ async function Ae(e, t) {
184
184
  });
185
185
  return N == null ? "" : String(N);
186
186
  });
187
- f.push(T);
187
+ u.push(T);
188
188
  });
189
- const d = U("--muted", [240, 240, 240]), u = U("--foreground", [30, 30, 30]), i = U("--card-foreground", [30, 30, 30]), p = U("--card", [250, 250, 250]), y = new a({ orientation: "landscape" });
190
- r(y, {
189
+ const l = U("--muted", [240, 240, 240]), p = U("--foreground", [30, 30, 30]), s = U("--card-foreground", [30, 30, 30]), m = U("--card", [250, 250, 250]), y = new r({ orientation: "landscape" });
190
+ a(y, {
191
191
  head: c,
192
- body: f,
193
- headStyles: { fillColor: d, textColor: u },
194
- bodyStyles: { textColor: i },
195
- alternateRowStyles: { fillColor: p },
192
+ body: u,
193
+ headStyles: { fillColor: l, textColor: p },
194
+ bodyStyles: { textColor: s },
195
+ alternateRowStyles: { fillColor: m },
196
196
  styles: {
197
197
  font: "helvetica",
198
198
  fontSize: 10,
@@ -200,59 +200,59 @@ async function Ae(e, t) {
200
200
  }
201
201
  }), y.save(t.fileName);
202
202
  }
203
- const de = P(
204
- ({ label: e, onClick: t, fileName: a, intent: r = "outline", ...o }, s) => {
205
- const { t: c } = w(), { getApi: f } = G("DataTable.Toolbar.ExportPdf"), d = k(() => {
206
- const u = f();
203
+ const ue = P(
204
+ ({ label: e, onClick: t, fileName: r, intent: a = "outline", ...o }, i) => {
205
+ const { t: c } = w(), { getApi: u } = G("DataTable.Toolbar.ExportPdf"), l = A(() => {
206
+ const p = u();
207
207
  if (t) {
208
- t(u);
208
+ t(p);
209
209
  return;
210
210
  }
211
- Ae(u, {
212
- fileName: a ?? "data-table-export.pdf"
211
+ Oe(p, {
212
+ fileName: r ?? "data-table-export.pdf"
213
213
  });
214
- }, [f, t, a]);
214
+ }, [u, t, r]);
215
215
  return /* @__PURE__ */ n(
216
- q,
216
+ L,
217
217
  {
218
- ref: s,
218
+ ref: i,
219
219
  type: "button",
220
- intent: r,
221
- icon: /* @__PURE__ */ n(Ie, { "aria-hidden": !0 }),
220
+ intent: a,
221
+ icon: /* @__PURE__ */ n(De, { "aria-hidden": !0 }),
222
222
  tooltip: e ?? c("dataTable.exportPdf"),
223
- onClick: d,
223
+ onClick: l,
224
224
  ...o
225
225
  }
226
226
  );
227
227
  }
228
228
  );
229
- de.displayName = "DataTable.Toolbar.ExportPdf";
230
- const ce = P(
231
- ({ label: e, intent: t = "outline", ...a }, r) => {
232
- const { t: o } = w(), { onPrint: s } = G("DataTable.Toolbar.Print");
229
+ ue.displayName = "DataTable.Toolbar.ExportPdf";
230
+ const pe = P(
231
+ ({ label: e, intent: t = "outline", ...r }, a) => {
232
+ const { t: o } = w(), { onPrint: i } = G("DataTable.Toolbar.Print");
233
233
  return /* @__PURE__ */ n(
234
- q,
234
+ L,
235
235
  {
236
- ref: r,
236
+ ref: a,
237
237
  type: "button",
238
238
  intent: t,
239
- icon: /* @__PURE__ */ n(ft, { "aria-hidden": !0 }),
239
+ icon: /* @__PURE__ */ n(ht, { "aria-hidden": !0 }),
240
240
  tooltip: e ?? o("dataTable.print"),
241
- onClick: s,
242
- ...a
241
+ onClick: i,
242
+ ...r
243
243
  }
244
244
  );
245
245
  }
246
246
  );
247
- ce.displayName = "DataTable.Toolbar.Print";
248
- const Ee = ({ placeholder: e, debounceMs: t = 150 }) => {
249
- const { t: a } = w(), { getApi: r } = G("DataTable.Toolbar.QuickSearch"), [o, s] = A(""), c = ye(void 0);
250
- return $(() => (c.current && window.clearTimeout(c.current), c.current = window.setTimeout(() => {
251
- const f = r();
252
- f && f.setGridOption("quickFilterText", o);
247
+ pe.displayName = "DataTable.Toolbar.Print";
248
+ const Pe = ({ placeholder: e, debounceMs: t = 150 }) => {
249
+ const { t: r } = w(), { getApi: a } = G("DataTable.Toolbar.QuickSearch"), [o, i] = k(""), c = se(void 0);
250
+ return q(() => (c.current && window.clearTimeout(c.current), c.current = window.setTimeout(() => {
251
+ const u = a();
252
+ u && u.setGridOption("quickFilterText", o);
253
253
  }, t), () => {
254
254
  c.current && window.clearTimeout(c.current);
255
- }), [o, t, r]), // Slot wrapper caps the search at a sensible legible width on desktop —
255
+ }), [o, 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
258
258
  // 1024 / 1280 / 1440. `min-w-0` lets the slot shrink below `24rem` when
@@ -260,72 +260,72 @@ const Ee = ({ placeholder: e, debounceMs: t = 150 }) => {
260
260
  // `--toolbar-search-max` token in the kit yet — see this component's
261
261
  // summary for a follow-up note recommending we add one.
262
262
  /* @__PURE__ */ n("div", { className: "ds:w-full ds:max-w-[24rem] ds:min-w-0", children: /* @__PURE__ */ n(
263
- ie,
263
+ le,
264
264
  {
265
265
  type: "search",
266
266
  size: "sm",
267
267
  value: o,
268
- onChange: (f) => s(f.target.value),
269
- placeholder: e ?? a("dataTable.quickSearch.placeholder", "Search…"),
270
- startAdornment: /* @__PURE__ */ n(se, { "aria-hidden": !0, className: "ds:size-4" }),
268
+ onChange: (u) => i(u.target.value),
269
+ placeholder: e ?? r("dataTable.quickSearch.placeholder", "Search…"),
270
+ startAdornment: /* @__PURE__ */ n(de, { "aria-hidden": !0, className: "ds:size-4" }),
271
271
  clearable: !0,
272
- onClear: () => s(""),
273
- "aria-label": a("dataTable.quickSearch.label", "Quick search")
272
+ onClear: () => i(""),
273
+ "aria-label": r("dataTable.quickSearch.label", "Quick search")
274
274
  }
275
275
  ) });
276
276
  };
277
- Ee.displayName = "DataTable.Toolbar.QuickSearch";
278
- const ue = P(
279
- ({ onRefresh: e, label: t, intent: a = "outline", ...r }, o) => {
280
- const { t: s } = w();
277
+ Pe.displayName = "DataTable.Toolbar.QuickSearch";
278
+ const me = P(
279
+ ({ onRefresh: e, label: t, intent: r = "outline", ...a }, o) => {
280
+ const { t: i } = w();
281
281
  return /* @__PURE__ */ n(
282
- q,
282
+ L,
283
283
  {
284
284
  ref: o,
285
285
  type: "button",
286
- intent: a,
287
- icon: /* @__PURE__ */ n(ut, { "aria-hidden": !0 }),
288
- tooltip: t ?? s("dataTable.refresh", "Refresh"),
286
+ intent: r,
287
+ icon: /* @__PURE__ */ n(ft, { "aria-hidden": !0 }),
288
+ tooltip: t ?? i("dataTable.refresh", "Refresh"),
289
289
  onClick: e,
290
- ...r
290
+ ...a
291
291
  }
292
292
  );
293
293
  }
294
294
  );
295
- ue.displayName = "DataTable.Toolbar.Refresh";
296
- function Dt(e) {
295
+ me.displayName = "DataTable.Toolbar.Refresh";
296
+ function At(e) {
297
297
  if (!e || typeof e != "object") return "";
298
298
  const t = e;
299
299
  if (typeof t.filter == "string" || typeof t.filter == "number") {
300
- const a = typeof t.type == "string" ? t.type : "", r = typeof t.filterTo == "string" || typeof t.filterTo == "number" ? String(t.filterTo) : "";
301
- return a === "inRange" && r ? `${t.filter} – ${r}` : a ? `${a} ${t.filter}` : String(t.filter);
300
+ const r = typeof t.type == "string" ? t.type : "", a = typeof t.filterTo == "string" || typeof t.filterTo == "number" ? String(t.filterTo) : "";
301
+ return r === "inRange" && a ? `${t.filter} – ${a}` : r ? `${r} ${t.filter}` : String(t.filter);
302
302
  }
303
303
  return typeof t.dateFrom == "string" ? typeof t.dateTo == "string" && t.dateTo ? `${t.dateFrom} – ${t.dateTo}` : String(t.dateFrom) : Array.isArray(t.values) ? t.values.map(String).join(", ") : "";
304
304
  }
305
- const Oe = () => {
306
- const { t: e } = w(), { getApi: t } = G("DataTable.Toolbar.FilterChips"), [a, r] = A([]), [o, s] = A(""), c = k(() => {
307
- const i = t();
308
- if (!i) {
309
- r([]), s("");
305
+ const ze = () => {
306
+ const { t: e } = w(), { getApi: t } = G("DataTable.Toolbar.FilterChips"), [r, a] = k([]), [o, i] = k(""), c = A(() => {
307
+ const s = t();
308
+ if (!s) {
309
+ a([]), i("");
310
310
  return;
311
311
  }
312
- const p = i.getFilterModel() ?? {}, y = i.getColumns() ?? [], b = [];
313
- for (const g of Object.keys(p)) {
314
- const N = y.find((D) => D.getColId() === g), x = i.getDisplayNameForColumn(N, null) ?? g;
312
+ const m = s.getFilterModel() ?? {}, y = s.getColumns() ?? [], b = [];
313
+ for (const g of Object.keys(m)) {
314
+ const N = y.find((F) => F.getColId() === g), x = s.getDisplayNameForColumn(N, null) ?? g;
315
315
  b.push({
316
316
  colId: g,
317
317
  headerName: x,
318
- text: Dt(p[g])
318
+ text: At(m[g])
319
319
  });
320
320
  }
321
- r(b);
322
- const T = i.getGridOption("quickFilterText");
323
- s(typeof T == "string" ? T : "");
321
+ a(b);
322
+ const T = s.getGridOption("quickFilterText");
323
+ i(typeof T == "string" ? T : "");
324
324
  }, [t]);
325
- if ($(() => {
326
- let i;
327
- const p = (T) => c(), y = (T) => {
328
- T.addEventListener("filterChanged", p), c(), i = () => T.removeEventListener("filterChanged", p);
325
+ if (q(() => {
326
+ let s;
327
+ const m = (T) => c(), y = (T) => {
328
+ T.addEventListener("filterChanged", m), c(), s = () => T.removeEventListener("filterChanged", m);
329
329
  }, b = t();
330
330
  if (b)
331
331
  y(b);
@@ -334,17 +334,17 @@ const Oe = () => {
334
334
  const g = t();
335
335
  g && (window.clearInterval(T), y(g));
336
336
  }, 50);
337
- i = () => window.clearInterval(T);
337
+ s = () => window.clearInterval(T);
338
338
  }
339
- return () => i == null ? void 0 : i();
340
- }, [t, c]), a.length + (o ? 1 : 0) === 0) return null;
341
- function d(i) {
342
- const p = t();
343
- p && p.destroyFilter(i);
339
+ return () => s == null ? void 0 : s();
340
+ }, [t, c]), r.length + (o ? 1 : 0) === 0) return null;
341
+ function l(s) {
342
+ const m = t();
343
+ m && m.destroyFilter(s);
344
344
  }
345
- function u() {
346
- const i = t();
347
- i && (i.setFilterModel(null), i.setGridOption("quickFilterText", ""), s(""));
345
+ function p() {
346
+ const s = t();
347
+ s && (s.setFilterModel(null), s.setGridOption("quickFilterText", ""), i(""));
348
348
  }
349
349
  return /* @__PURE__ */ O(
350
350
  "div",
@@ -354,35 +354,35 @@ const Oe = () => {
354
354
  className: "ds:flex ds:flex-wrap ds:items-center ds:gap-[var(--spacing-xs)]",
355
355
  children: [
356
356
  o && /* @__PURE__ */ n(
357
- he,
357
+ ye,
358
358
  {
359
359
  label: `${e("dataTable.quickSearch.label", "Quick search")}: ${o}`,
360
360
  size: "sm",
361
361
  fill: "outline",
362
362
  onRemove: () => {
363
- const i = t();
364
- i == null || i.setGridOption("quickFilterText", ""), s("");
363
+ const s = t();
364
+ s == null || s.setGridOption("quickFilterText", ""), i("");
365
365
  }
366
366
  }
367
367
  ),
368
- a.map((i) => /* @__PURE__ */ n(
369
- he,
368
+ r.map((s) => /* @__PURE__ */ n(
369
+ ye,
370
370
  {
371
- label: i.text ? `${i.headerName}: ${i.text}` : i.headerName,
371
+ label: s.text ? `${s.headerName}: ${s.text}` : s.headerName,
372
372
  size: "sm",
373
373
  fill: "outline",
374
- onRemove: () => d(i.colId)
374
+ onRemove: () => l(s.colId)
375
375
  },
376
- i.colId
376
+ s.colId
377
377
  )),
378
378
  /* @__PURE__ */ n(
379
- J,
379
+ X,
380
380
  {
381
381
  type: "button",
382
382
  intent: "ghost",
383
383
  size: "sm",
384
- onClick: u,
385
- startIcon: /* @__PURE__ */ n(Ne, { "aria-hidden": !0, className: "ds:size-4" }),
384
+ onClick: p,
385
+ startIcon: /* @__PURE__ */ n(Fe, { "aria-hidden": !0, className: "ds:size-4" }),
386
386
  children: e("dataTable.filterChips.clearAll", "Clear all")
387
387
  }
388
388
  )
@@ -390,56 +390,56 @@ const Oe = () => {
390
390
  }
391
391
  );
392
392
  };
393
- Oe.displayName = "DataTable.Toolbar.FilterChips";
394
- const Pe = ({
393
+ ze.displayName = "DataTable.Toolbar.FilterChips";
394
+ const Me = ({
395
395
  field: e,
396
396
  options: t,
397
- label: a
397
+ label: r
398
398
  }) => {
399
- const { t: r } = w(), { getApi: o } = G("DataTable.Toolbar.FacetFilter"), [s, c] = A(null);
400
- function f(d) {
401
- c(d);
402
- const u = o();
403
- if (u) {
404
- if (d === null) {
405
- u.destroyFilter(e);
399
+ const { t: a } = w(), { getApi: o } = G("DataTable.Toolbar.FacetFilter"), [i, c] = k(null);
400
+ function u(l) {
401
+ c(l);
402
+ const p = o();
403
+ if (p) {
404
+ if (l === null) {
405
+ p.destroyFilter(e);
406
406
  return;
407
407
  }
408
- u.setColumnFilterModel(e, {
408
+ p.setColumnFilterModel(e, {
409
409
  type: "equals",
410
- filter: d
411
- }), u.onFilterChanged();
410
+ filter: l
411
+ }), p.onFilterChanged();
412
412
  }
413
413
  }
414
414
  return /* @__PURE__ */ n(
415
415
  "div",
416
416
  {
417
417
  role: "group",
418
- "aria-label": a ?? r("dataTable.facetFilter.label", "Filter"),
418
+ "aria-label": r ?? a("dataTable.facetFilter.label", "Filter"),
419
419
  className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]",
420
- children: t.map((d) => {
421
- const u = s === d.value;
420
+ children: t.map((l) => {
421
+ const p = i === l.value;
422
422
  return /* @__PURE__ */ n(
423
- J,
423
+ X,
424
424
  {
425
425
  type: "button",
426
426
  size: "sm",
427
- intent: u ? "primary" : "secondary",
428
- "aria-pressed": u,
429
- onClick: () => f(d.value),
430
- children: d.label
427
+ intent: p ? "primary" : "secondary",
428
+ "aria-pressed": p,
429
+ onClick: () => u(l.value),
430
+ children: l.label
431
431
  },
432
- String(d.value)
432
+ String(l.value)
433
433
  );
434
434
  })
435
435
  }
436
436
  );
437
437
  };
438
- Pe.displayName = "DataTable.Toolbar.FacetFilter";
439
- const Ft = ["csv", "xlsx", "pdf"];
440
- async function Rt(e, t) {
438
+ Me.displayName = "DataTable.Toolbar.FacetFilter";
439
+ const kt = ["csv", "xlsx", "pdf"];
440
+ async function Et(e, t) {
441
441
  if (!e) return;
442
- const a = await import("./exceljs.min-DUJ-5CGx.js").then((g) => g.e), r = new a.Workbook(), o = r.addWorksheet("Sheet1"), c = (e.getColumns() ?? []).filter((g) => g.isVisible());
442
+ const r = await import("./exceljs.min-DUJ-5CGx.js").then((g) => g.e), a = new r.Workbook(), o = a.addWorksheet("Sheet1"), c = (e.getColumns() ?? []).filter((g) => g.isVisible());
443
443
  o.addRow(
444
444
  c.map(
445
445
  (g) => e.getDisplayNameForColumn(g, null) ?? g.getColId()
@@ -456,135 +456,135 @@ async function Rt(e, t) {
456
456
  })
457
457
  );
458
458
  });
459
- const f = U("--muted", [240, 240, 240]), d = U("--foreground", [30, 30, 30]), u = o.getRow(1), i = ([g, N, x]) => `${g.toString(16).padStart(2, "0")}${N.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}`.toUpperCase();
460
- u.eachCell((g) => {
461
- g.font = { bold: !0, color: { argb: `FF${i(d)}` } }, g.fill = {
459
+ const u = U("--muted", [240, 240, 240]), l = U("--foreground", [30, 30, 30]), p = o.getRow(1), s = ([g, N, x]) => `${g.toString(16).padStart(2, "0")}${N.toString(16).padStart(2, "0")}${x.toString(16).padStart(2, "0")}`.toUpperCase();
460
+ p.eachCell((g) => {
461
+ g.font = { bold: !0, color: { argb: `FF${s(l)}` } }, g.fill = {
462
462
  type: "pattern",
463
463
  pattern: "solid",
464
- fgColor: { argb: `FF${i(f)}` }
464
+ fgColor: { argb: `FF${s(u)}` }
465
465
  };
466
466
  });
467
- const p = await r.xlsx.writeBuffer(), y = new Blob([p], {
467
+ const m = await a.xlsx.writeBuffer(), y = new Blob([m], {
468
468
  type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
469
469
  }), b = URL.createObjectURL(y), T = document.createElement("a");
470
470
  T.href = b, T.download = t.fileName, document.body.appendChild(T), T.click(), document.body.removeChild(T), URL.revokeObjectURL(b);
471
471
  }
472
- const ze = ve(null);
473
- function kt() {
474
- const e = xe(ze);
472
+ const Ge = Ce(null);
473
+ function Ot() {
474
+ const e = Se(Ge);
475
475
  if (!e)
476
476
  throw new Error(
477
477
  "DataTable.Toolbar.ExportMenu.Item must be rendered inside DataTable.Toolbar.ExportMenu."
478
478
  );
479
479
  return e;
480
480
  }
481
- const pe = P(
482
- ({ children: e, label: t, intent: a = "outline", ...r }, o) => {
483
- const { t: s } = w(), { getApi: c } = G("DataTable.Toolbar.ExportMenu"), f = B(() => ({ getApi: c }), [c]), d = e ?? Ft.map((u) => /* @__PURE__ */ n(me, { format: u }, u));
484
- return /* @__PURE__ */ n(ze.Provider, { value: f, children: /* @__PURE__ */ O(j.Root, { children: [
481
+ const fe = P(
482
+ ({ children: e, label: t, intent: r = "outline", ...a }, o) => {
483
+ const { t: i } = w(), { getApi: c } = G("DataTable.Toolbar.ExportMenu"), u = $(() => ({ getApi: c }), [c]), l = e ?? kt.map((p) => /* @__PURE__ */ n(ge, { format: p }, p));
484
+ return /* @__PURE__ */ n(Ge.Provider, { value: u, children: /* @__PURE__ */ O(j.Root, { children: [
485
485
  /* @__PURE__ */ n(j.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
486
- q,
486
+ L,
487
487
  {
488
488
  ref: o,
489
489
  type: "button",
490
- intent: a,
491
- icon: /* @__PURE__ */ n(ee, { "aria-hidden": !0 }),
492
- tooltip: t ?? s("dataTable.export.menu", "Export"),
493
- "aria-label": t ?? s("dataTable.export.menu", "Export"),
490
+ intent: r,
491
+ icon: /* @__PURE__ */ n(te, { "aria-hidden": !0 }),
492
+ tooltip: t ?? i("dataTable.export.menu", "Export"),
493
+ "aria-label": t ?? i("dataTable.export.menu", "Export"),
494
494
  "aria-haspopup": "menu",
495
- ...r
495
+ ...a
496
496
  }
497
497
  ) }),
498
- /* @__PURE__ */ n(j.Content, { align: "end", sideOffset: 4, children: d })
498
+ /* @__PURE__ */ n(j.Content, { align: "end", sideOffset: 4, children: l })
499
499
  ] }) });
500
500
  }
501
501
  );
502
- pe.displayName = "DataTable.Toolbar.ExportMenu";
503
- function At(e, t) {
502
+ fe.displayName = "DataTable.Toolbar.ExportMenu";
503
+ function Pt(e, t) {
504
504
  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");
505
505
  }
506
- function Et(e) {
507
- return e === "csv" ? /* @__PURE__ */ n(ee, { "aria-hidden": !0, className: "ds:size-4" }) : e === "xlsx" ? /* @__PURE__ */ n(gt, { "aria-hidden": !0, className: "ds:size-4" }) : e === "pdf" ? /* @__PURE__ */ n(Ie, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ n(ee, { "aria-hidden": !0, className: "ds:size-4" });
506
+ function zt(e) {
507
+ return e === "csv" ? /* @__PURE__ */ n(te, { "aria-hidden": !0, className: "ds:size-4" }) : e === "xlsx" ? /* @__PURE__ */ n(Tt, { "aria-hidden": !0, className: "ds:size-4" }) : e === "pdf" ? /* @__PURE__ */ n(De, { "aria-hidden": !0, className: "ds:size-4" }) : /* @__PURE__ */ n(te, { "aria-hidden": !0, className: "ds:size-4" });
508
508
  }
509
- const me = ({
509
+ const ge = ({
510
510
  format: e,
511
511
  label: t,
512
- onClick: a,
513
- fileName: r
512
+ onClick: r,
513
+ fileName: a
514
514
  }) => {
515
- const { t: o } = w(), { getApi: s } = kt(), c = k(() => {
516
- const f = s();
515
+ const { t: o } = w(), { getApi: i } = Ot(), c = A(() => {
516
+ const u = i();
517
517
  if (e === "csv") {
518
- f == null || f.exportDataAsCsv();
518
+ u == null || u.exportDataAsCsv();
519
519
  return;
520
520
  }
521
521
  if (e === "pdf") {
522
- Ae(f, {
523
- fileName: r ?? "data-table-export.pdf"
522
+ Oe(u, {
523
+ fileName: a ?? "data-table-export.pdf"
524
524
  });
525
525
  return;
526
526
  }
527
527
  if (e === "xlsx") {
528
- Rt(f, {
529
- fileName: r ?? "data-table-export.xlsx"
528
+ Et(u, {
529
+ fileName: a ?? "data-table-export.xlsx"
530
530
  });
531
531
  return;
532
532
  }
533
- a == null || a(f);
534
- }, [e, r, a, s]);
533
+ r == null || r(u);
534
+ }, [e, a, r, i]);
535
535
  return /* @__PURE__ */ n(j.Item, { onSelect: c, children: /* @__PURE__ */ O("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-sm)]", children: [
536
- Et(e),
537
- /* @__PURE__ */ n("span", { children: t ?? At(o, e) })
536
+ zt(e),
537
+ /* @__PURE__ */ n("span", { children: t ?? Pt(o, e) })
538
538
  ] }) });
539
539
  };
540
- me.displayName = "DataTable.Toolbar.ExportMenu.Item";
541
- function Ot(e) {
542
- return e ? (e.getAllGridColumns() ?? []).map((a) => a.getColDef().hide === void 0 && a.getColId().startsWith("ag-Grid-") ? null : {
543
- colId: a.getColId(),
544
- displayName: e.getDisplayNameForColumn(a, null) || a.getColId(),
545
- visible: a.isVisible()
546
- }).filter((a) => a !== null) : [];
540
+ ge.displayName = "DataTable.Toolbar.ExportMenu.Item";
541
+ function Mt(e) {
542
+ return e ? (e.getAllGridColumns() ?? []).map((r) => r.getColDef().hide === void 0 && r.getColId().startsWith("ag-Grid-") ? null : {
543
+ colId: r.getColId(),
544
+ displayName: e.getDisplayNameForColumn(r, null) || r.getColId(),
545
+ visible: r.isVisible()
546
+ }).filter((r) => r !== null) : [];
547
547
  }
548
- const fe = P(
549
- function({ label: t, icon: a, footer: r, header: o, intent: s = "outline", ...c }, f) {
550
- const { t: d } = w(), { getApi: u } = G("DataTable.Toolbar.ColumnToggle"), [i, p] = A(!1), [y, b] = A([]), [T, g] = A(null), [N, x] = A(null);
551
- $(() => {
552
- i && b(Ot(u()));
553
- }, [i, u]);
554
- const D = k(
548
+ const be = P(
549
+ function({ label: t, icon: r, footer: a, header: o, intent: i = "outline", ...c }, u) {
550
+ const { t: l } = w(), { getApi: p } = G("DataTable.Toolbar.ColumnToggle"), [s, m] = k(!1), [y, b] = k([]), [T, g] = k(null), [N, x] = k(null);
551
+ q(() => {
552
+ s && b(Mt(p()));
553
+ }, [s, p]);
554
+ const F = A(
555
555
  (C, M) => {
556
- const R = u();
556
+ const R = p();
557
557
  R && (R.setColumnsVisible([C], M), b(
558
558
  (S) => S.map(
559
559
  (h) => h.colId === C ? { ...h, visible: M } : h
560
560
  )
561
561
  ));
562
562
  },
563
- [u]
564
- ), z = k(
563
+ [p]
564
+ ), z = A(
565
565
  (C, M) => {
566
566
  if (C === M) return;
567
- const R = u();
567
+ const R = p();
568
568
  if (!R) return;
569
569
  b((h) => {
570
- const K = h.findIndex((Q) => Q.colId === C), X = h.findIndex((Q) => Q.colId === M);
571
- if (K < 0 || X < 0) return h;
572
- const _ = [...h], [H] = _.splice(K, 1);
573
- return _.splice(X, 0, H), _;
570
+ const H = h.findIndex((_) => _.colId === C), K = h.findIndex((_) => _.colId === M);
571
+ if (H < 0 || K < 0) return h;
572
+ const Q = [...h], [J] = Q.splice(H, 1);
573
+ return Q.splice(K, 0, J), Q;
574
574
  });
575
575
  const S = y.findIndex((h) => h.colId === M);
576
576
  S >= 0 && R.moveColumns([C], S);
577
577
  },
578
- [u, y]
579
- ), W = t ?? d("dataTable.columnToggle");
580
- return /* @__PURE__ */ O(Z.Root, { open: i, onOpenChange: p, children: [
578
+ [p, y]
579
+ ), W = t ?? l("dataTable.columnToggle");
580
+ return /* @__PURE__ */ O(Z.Root, { open: s, onOpenChange: m, children: [
581
581
  /* @__PURE__ */ n(Z.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
582
- q,
582
+ L,
583
583
  {
584
- ref: f,
584
+ ref: u,
585
585
  type: "button",
586
- intent: s,
587
- icon: a ?? /* @__PURE__ */ n(St, { "aria-hidden": !0 }),
586
+ intent: i,
587
+ icon: r ?? /* @__PURE__ */ n(It, { "aria-hidden": !0 }),
588
588
  tooltip: W,
589
589
  "aria-label": W,
590
590
  "aria-haspopup": "dialog",
@@ -635,15 +635,15 @@ const fe = P(
635
635
  {
636
636
  "aria-hidden": "true",
637
637
  className: "ds:cursor-grab ds:text-[color:var(--muted-foreground)] ds:active:cursor-grabbing",
638
- children: /* @__PURE__ */ n(mt, { className: "ds:size-4" })
638
+ children: /* @__PURE__ */ n(bt, { className: "ds:size-4" })
639
639
  }
640
640
  ),
641
641
  /* @__PURE__ */ n(
642
- ct,
642
+ mt,
643
643
  {
644
644
  label: C.displayName,
645
645
  checked: C.visible,
646
- onCheckedChange: (S) => D(C.colId, S === !0)
646
+ onCheckedChange: (S) => F(C.colId, S === !0)
647
647
  }
648
648
  )
649
649
  ]
@@ -653,28 +653,28 @@ const fe = P(
653
653
  })
654
654
  }
655
655
  ),
656
- r ? /* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: r }) : null
656
+ a ? /* @__PURE__ */ n("div", { className: "ds:mt-[var(--spacing-xs)] ds:border-t ds:border-[color:var(--border)] ds:pt-[var(--spacing-sm)]", children: a }) : null
657
657
  ] })
658
658
  ] });
659
659
  }
660
660
  );
661
- fe.displayName = "DataTable.Toolbar.ColumnToggle";
662
- const Me = P(
663
- ({ label: e, icon: t, onClick: a, variant: r = "default", size: o = "sm", ...s }, c) => {
664
- const { t: f } = w(), { getApi: d, selectionCount: u } = G(
661
+ be.displayName = "DataTable.Toolbar.ColumnToggle";
662
+ const je = P(
663
+ ({ label: e, icon: t, onClick: r, variant: a = "default", size: o = "sm", ...i }, c) => {
664
+ const { t: u } = w(), { getApi: l, selectionCount: p } = G(
665
665
  "DataTable.Toolbar.BulkAction"
666
666
  );
667
- return u === 0 ? null : /* @__PURE__ */ O(
668
- J,
667
+ return p === 0 ? null : /* @__PURE__ */ O(
668
+ X,
669
669
  {
670
670
  ref: c,
671
671
  type: "button",
672
- intent: r === "destructive" ? "destructive" : "secondary",
672
+ intent: a === "destructive" ? "destructive" : "secondary",
673
673
  size: o,
674
- startIcon: wt(t),
675
- onClick: () => a(d()),
676
- "aria-label": `${e} (${f("dataTable.bulkAction", { count: u })})`,
677
- ...s,
674
+ startIcon: Ft(t),
675
+ onClick: () => r(l()),
676
+ "aria-label": `${e} (${u("dataTable.bulkAction", { count: p })})`,
677
+ ...i,
678
678
  children: [
679
679
  /* @__PURE__ */ n("span", { children: e }),
680
680
  /* @__PURE__ */ n(
@@ -682,7 +682,7 @@ const Me = P(
682
682
  {
683
683
  "aria-hidden": "true",
684
684
  className: "ds:ms-[var(--spacing-xs)] ds:opacity-80",
685
- children: f("dataTable.bulkAction", { count: u })
685
+ children: u("dataTable.bulkAction", { count: p })
686
686
  }
687
687
  )
688
688
  ]
@@ -690,105 +690,105 @@ const Me = P(
690
690
  );
691
691
  }
692
692
  );
693
- Me.displayName = "DataTable.Toolbar.BulkAction";
693
+ je.displayName = "DataTable.Toolbar.BulkAction";
694
694
  for (const e of [
695
- le,
696
- de,
697
695
  ce,
698
696
  ue,
699
697
  pe,
700
- fe
698
+ me,
699
+ fe,
700
+ be
701
701
  ])
702
702
  e.rendersIconButton = !0;
703
- const Pt = Object.assign(pe, {
704
- Item: me
705
- }), Y = Object.assign(Fe, {
706
- FilterBar: Re,
707
- Actions: ke,
703
+ const Gt = Object.assign(fe, {
704
+ Item: ge
705
+ }), ee = Object.assign(Ae, {
706
+ FilterBar: ke,
707
+ Actions: Ee,
708
708
  /** @deprecated Use `Toolbar.ExportMenu` with a `csv` item. */
709
- ExportCsv: le,
709
+ ExportCsv: ce,
710
710
  /** @deprecated Use `Toolbar.ExportMenu` with a `pdf` item. */
711
- ExportPdf: de,
712
- Print: ce,
713
- ColumnToggle: fe,
714
- BulkAction: Me,
715
- QuickSearch: Ee,
716
- Refresh: ue,
717
- FilterChips: Oe,
718
- FacetFilter: Pe,
719
- ExportMenu: Pt
720
- }), zt = [
711
+ ExportPdf: ue,
712
+ Print: pe,
713
+ ColumnToggle: be,
714
+ BulkAction: je,
715
+ QuickSearch: Pe,
716
+ Refresh: me,
717
+ FilterChips: ze,
718
+ FacetFilter: Me,
719
+ ExportMenu: Gt
720
+ }), jt = [
721
721
  "contains",
722
722
  "equals",
723
723
  "startsWith",
724
724
  "endsWith",
725
725
  "notContains"
726
726
  ];
727
- function Mt(e) {
727
+ function qt(e) {
728
728
  const t = new Intl.Collator(e, {
729
729
  sensitivity: "base",
730
730
  usage: "search"
731
731
  });
732
- function a(r, o) {
732
+ function r(a, o) {
733
733
  if (o.length === 0) return 0;
734
- if (o.length > r.length) return -1;
735
- for (let s = 0; s <= r.length - o.length; s += 1)
736
- if (t.compare(r.slice(s, s + o.length), o) === 0)
737
- return s;
734
+ if (o.length > a.length) return -1;
735
+ for (let i = 0; i <= a.length - o.length; i += 1)
736
+ if (t.compare(a.slice(i, i + o.length), o) === 0)
737
+ return i;
738
738
  return -1;
739
739
  }
740
740
  return {
741
- equals: (r, o) => t.compare(r, o) === 0,
742
- contains: (r, o) => a(r, o) !== -1,
743
- startsWith: (r, o) => o.length <= r.length && t.compare(r.slice(0, o.length), o) === 0,
744
- endsWith: (r, o) => o.length <= r.length && t.compare(
745
- r.slice(r.length - o.length),
741
+ equals: (a, o) => t.compare(a, o) === 0,
742
+ contains: (a, o) => r(a, o) !== -1,
743
+ startsWith: (a, o) => o.length <= a.length && t.compare(a.slice(0, o.length), o) === 0,
744
+ endsWith: (a, o) => o.length <= a.length && t.compare(
745
+ a.slice(a.length - o.length),
746
746
  o
747
747
  ) === 0
748
748
  };
749
749
  }
750
- function Gt(e) {
750
+ function Lt(e) {
751
751
  return e == null ? null : typeof e == "string" ? e : String(e);
752
752
  }
753
- function jt(e) {
754
- const { model: t, onModelChange: a, getValue: r, placeholder: o, defaultOperator: s } = e, { t: c } = w("ui"), f = (t == null ? void 0 : t.type) ?? s ?? "contains", [d, u] = A(f), [i, p] = A((t == null ? void 0 : t.filter) ?? "");
755
- $(() => {
756
- u((t == null ? void 0 : t.type) ?? s ?? "contains"), p((t == null ? void 0 : t.filter) ?? "");
757
- }, [t, s]);
758
- const y = B(() => Mt(bt.language), []);
759
- it({
753
+ function _t(e) {
754
+ const { model: t, onModelChange: r, getValue: a, placeholder: o, defaultOperator: i } = e, { t: c } = w("ui"), u = (t == null ? void 0 : t.type) ?? i ?? "contains", [l, p] = k(u), [s, m] = k((t == null ? void 0 : t.filter) ?? "");
755
+ q(() => {
756
+ p((t == null ? void 0 : t.type) ?? i ?? "contains"), m((t == null ? void 0 : t.filter) ?? "");
757
+ }, [t, i]);
758
+ const y = $(() => qt(yt.language), []);
759
+ dt({
760
760
  doesFilterPass: (x) => {
761
- const D = t;
762
- if (!D || D.filter === "") return !0;
763
- const z = Gt(r(x.node));
761
+ const F = t;
762
+ if (!F || F.filter === "") return !0;
763
+ const z = Lt(a(x.node));
764
764
  if (z === null) return !1;
765
- switch (D.type) {
765
+ switch (F.type) {
766
766
  case "equals":
767
- return y.equals(z, D.filter);
767
+ return y.equals(z, F.filter);
768
768
  case "contains":
769
- return y.contains(z, D.filter);
769
+ return y.contains(z, F.filter);
770
770
  case "startsWith":
771
- return y.startsWith(z, D.filter);
771
+ return y.startsWith(z, F.filter);
772
772
  case "endsWith":
773
- return y.endsWith(z, D.filter);
773
+ return y.endsWith(z, F.filter);
774
774
  case "notContains":
775
- return !y.contains(z, D.filter);
775
+ return !y.contains(z, F.filter);
776
776
  default:
777
777
  return !0;
778
778
  }
779
779
  }
780
780
  });
781
781
  function b() {
782
- if (i.trim() === "") {
783
- a(null);
782
+ if (s.trim() === "") {
783
+ r(null);
784
784
  return;
785
785
  }
786
- a({ type: d, filter: i });
786
+ r({ type: l, filter: s });
787
787
  }
788
788
  function T() {
789
- p(""), u(s ?? "contains"), a(null);
789
+ m(""), p(i ?? "contains"), r(null);
790
790
  }
791
- const g = zt.map(
791
+ const g = jt.map(
792
792
  (x) => ({
793
793
  value: x,
794
794
  label: c(`dataTable.textFilter.operators.${x}`)
@@ -801,81 +801,113 @@ function jt(e) {
801
801
  className: "ds:flex ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-sm)] ds:min-w-[240px]",
802
802
  children: [
803
803
  /* @__PURE__ */ n(
804
- ht,
804
+ vt,
805
805
  {
806
806
  size: "sm",
807
807
  options: g,
808
- value: d,
808
+ value: l,
809
809
  onValueChange: (x) => {
810
- x !== "" && u(x);
810
+ x !== "" && p(x);
811
811
  },
812
812
  "aria-label": c("dataTable.textFilter.operators.contains")
813
813
  }
814
814
  ),
815
815
  /* @__PURE__ */ n(
816
- ie,
816
+ le,
817
817
  {
818
818
  size: "sm",
819
- value: i,
820
- onChange: (x) => p(x.target.value),
819
+ value: s,
820
+ onChange: (x) => m(x.target.value),
821
821
  onKeyDown: (x) => {
822
822
  x.key === "Enter" && (x.preventDefault(), b());
823
823
  },
824
824
  placeholder: N,
825
825
  "aria-label": N,
826
- startAdornment: /* @__PURE__ */ n(se, { "aria-hidden": "true", className: "ds:size-4" })
826
+ startAdornment: /* @__PURE__ */ n(de, { "aria-hidden": "true", className: "ds:size-4" })
827
827
  }
828
828
  ),
829
829
  /* @__PURE__ */ O("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: [
830
- /* @__PURE__ */ n(J, { intent: "ghost", size: "sm", onClick: T, type: "button", children: c("dataTable.textFilter.clear") }),
831
- /* @__PURE__ */ n(J, { intent: "primary", size: "sm", onClick: b, type: "button", children: c("dataTable.textFilter.apply") })
830
+ /* @__PURE__ */ n(X, { intent: "ghost", size: "sm", onClick: T, type: "button", children: c("dataTable.textFilter.clear") }),
831
+ /* @__PURE__ */ n(X, { intent: "primary", size: "sm", onClick: b, type: "button", children: c("dataTable.textFilter.apply") })
832
832
  ] })
833
833
  ]
834
834
  }
835
835
  );
836
836
  }
837
- function qt(e) {
838
- var p, y;
839
- const { model: t, onModelChange: a, column: r } = e, { t: o } = w("ui"), s = ((y = (p = r == null ? void 0 : r.getColDef) == null ? void 0 : p.call(r)) == null ? void 0 : y.filterParams) ?? {}, c = s.defaultOperator ?? "contains", f = s.placeholder ?? o("dataTable.textFilter.placeholder"), [d, u] = A((t == null ? void 0 : t.filter) ?? "");
840
- $(() => {
841
- u((t == null ? void 0 : t.filter) ?? "");
842
- }, [t == null ? void 0 : t.filter]), $(() => {
843
- if (d === ((t == null ? void 0 : t.filter) ?? "")) return;
837
+ function Bt(e) {
838
+ var m, y;
839
+ const { model: t, onModelChange: r, column: a } = e, { t: o } = w("ui"), i = ((y = (m = a == null ? void 0 : a.getColDef) == null ? void 0 : m.call(a)) == null ? void 0 : y.filterParams) ?? {}, c = i.defaultOperator ?? "contains", u = i.placeholder ?? o("dataTable.textFilter.placeholder"), [l, p] = k((t == null ? void 0 : t.filter) ?? "");
840
+ q(() => {
841
+ p((t == null ? void 0 : t.filter) ?? "");
842
+ }, [t == null ? void 0 : t.filter]), q(() => {
843
+ if (l === ((t == null ? void 0 : t.filter) ?? "")) return;
844
844
  const b = setTimeout(() => {
845
- if (d === "") {
846
- t && a(null);
845
+ if (l === "") {
846
+ t && r(null);
847
847
  return;
848
848
  }
849
- a({ type: c, filter: d });
849
+ r({ type: c, filter: l });
850
850
  }, 200);
851
851
  return () => clearTimeout(b);
852
- }, [d, c, t, a]);
853
- function i() {
854
- u(""), t && a(null);
852
+ }, [l, c, t, r]);
853
+ function s() {
854
+ p(""), t && r(null);
855
855
  }
856
856
  return /* @__PURE__ */ n("div", { "data-component": "text-floating-filter", className: "ds:w-full", children: /* @__PURE__ */ n(
857
- ie,
857
+ le,
858
858
  {
859
859
  size: "sm",
860
- value: d,
861
- onChange: (b) => u(b.target.value),
862
- placeholder: f,
863
- "aria-label": f,
864
- startAdornment: /* @__PURE__ */ n(se, { "aria-hidden": "true", className: "ds:size-4" }),
865
- endAdornment: d.length > 0 ? /* @__PURE__ */ n(
860
+ value: l,
861
+ onChange: (b) => p(b.target.value),
862
+ placeholder: u,
863
+ "aria-label": u,
864
+ startAdornment: /* @__PURE__ */ n(de, { "aria-hidden": "true", className: "ds:size-4" }),
865
+ endAdornment: l.length > 0 ? /* @__PURE__ */ n(
866
866
  "button",
867
867
  {
868
868
  type: "button",
869
869
  "aria-label": o("dataTable.textFilter.clear"),
870
- onClick: i,
870
+ onClick: s,
871
871
  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",
872
- children: /* @__PURE__ */ n(Ne, { "aria-hidden": "true", className: "ds:size-4" })
872
+ children: /* @__PURE__ */ n(Fe, { "aria-hidden": "true", className: "ds:size-4" })
873
873
  }
874
874
  ) : void 0
875
875
  }
876
876
  ) });
877
877
  }
878
- const _t = {
878
+ const $t = /* @__PURE__ */ new Set(["presentation", "none"]), ve = '[role="presentation"][aria-hidden], [role="none"][aria-hidden]';
879
+ function Y(e) {
880
+ const t = e.getAttribute("role");
881
+ t === null || !$t.has(t) || e.getAttribute("aria-hidden") === "false" && e.removeAttribute("aria-hidden");
882
+ }
883
+ function Wt(e, t = !0) {
884
+ q(() => {
885
+ const r = e.current;
886
+ if (!t || !r || typeof MutationObserver > "u") return;
887
+ (() => {
888
+ for (const i of r.querySelectorAll(ve)) Y(i);
889
+ })();
890
+ const o = new MutationObserver((i) => {
891
+ for (const c of i)
892
+ if (c.type === "attributes")
893
+ Y(c.target);
894
+ else
895
+ for (const u of c.addedNodes)
896
+ if (u instanceof Element) {
897
+ Y(u);
898
+ for (const l of u.querySelectorAll(ve))
899
+ Y(l);
900
+ }
901
+ });
902
+ return o.observe(r, {
903
+ subtree: !0,
904
+ childList: !0,
905
+ attributes: !0,
906
+ attributeFilter: ["aria-hidden"]
907
+ }), () => o.disconnect();
908
+ }, [e, t]);
909
+ }
910
+ const Kt = {
879
911
  id: "data-table",
880
912
  capabilities: [
881
913
  "select_single",
@@ -1067,8 +1099,8 @@ const _t = {
1067
1099
  }
1068
1100
  }
1069
1101
  };
1070
- lt.registerModules([dt]);
1071
- const Lt = ot("ag-theme-alfadocs ds:w-full", {
1102
+ ut.registerModules([pt]);
1103
+ const Vt = lt("ag-theme-alfadocs ds:w-full", {
1072
1104
  variants: {
1073
1105
  density: {
1074
1106
  default: "",
@@ -1085,9 +1117,9 @@ const Lt = ot("ag-theme-alfadocs ds:w-full", {
1085
1117
  bordered: !0
1086
1118
  }
1087
1119
  });
1088
- function Bt() {
1120
+ function Ut() {
1089
1121
  const { t: e } = w();
1090
- return B(
1122
+ return $(
1091
1123
  () => ({
1092
1124
  // Filter strings
1093
1125
  contains: e("dataTable.agGrid.contains"),
@@ -1119,7 +1151,7 @@ function Bt() {
1119
1151
  [e]
1120
1152
  );
1121
1153
  }
1122
- function $t() {
1154
+ function Ht() {
1123
1155
  return /* @__PURE__ */ n(
1124
1156
  "div",
1125
1157
  {
@@ -1127,7 +1159,7 @@ function $t() {
1127
1159
  "aria-live": "polite",
1128
1160
  className: "ds:flex ds:w-full ds:flex-col ds:gap-[var(--spacing-sm)] ds:p-[var(--spacing-md)]",
1129
1161
  children: Array.from({ length: 5 }).map((e, t) => /* @__PURE__ */ n(
1130
- rt,
1162
+ it,
1131
1163
  {
1132
1164
  variant: "rectangular",
1133
1165
  className: "ds:h-[var(--min-target-size)] ds:w-full"
@@ -1137,10 +1169,10 @@ function $t() {
1137
1169
  }
1138
1170
  );
1139
1171
  }
1140
- function Wt() {
1172
+ function Qt() {
1141
1173
  const { t: e } = w();
1142
1174
  return /* @__PURE__ */ n(
1143
- nt,
1175
+ st,
1144
1176
  {
1145
1177
  variant: "no-results",
1146
1178
  size: "sm",
@@ -1149,29 +1181,29 @@ function Wt() {
1149
1181
  }
1150
1182
  );
1151
1183
  }
1152
- function Ge(e) {
1153
- return e.map(({ hide: t, pinned: a, ...r }) => r);
1184
+ function qe(e) {
1185
+ return e.map(({ hide: t, pinned: r, ...a }) => a);
1154
1186
  }
1155
- function Kt(e) {
1187
+ function Jt(e) {
1156
1188
  try {
1157
1189
  const t = localStorage.getItem(`data-table-col-state:${e}`);
1158
1190
  if (!t) return null;
1159
- const a = JSON.parse(t);
1160
- return Array.isArray(a) ? Ge(a) : null;
1191
+ const r = JSON.parse(t);
1192
+ return Array.isArray(r) ? qe(r) : null;
1161
1193
  } catch {
1162
1194
  return null;
1163
1195
  }
1164
1196
  }
1165
- function Vt(e, t) {
1197
+ function Xt(e, t) {
1166
1198
  try {
1167
1199
  localStorage.setItem(
1168
1200
  `data-table-col-state:${e}`,
1169
- JSON.stringify(Ge(t.getColumnState()))
1201
+ JSON.stringify(qe(t.getColumnState()))
1170
1202
  );
1171
1203
  } catch {
1172
1204
  }
1173
1205
  }
1174
- const Ut = /* @__PURE__ */ new Set([
1206
+ const Zt = /* @__PURE__ */ new Set([
1175
1207
  "api",
1176
1208
  "flex",
1177
1209
  "gridInitializing",
@@ -1179,223 +1211,226 @@ const Ut = /* @__PURE__ */ new Set([
1179
1211
  "autosizeColumns",
1180
1212
  "sizeColumnsToFit"
1181
1213
  ]);
1182
- function Ht(e, t) {
1214
+ function Yt(e, t) {
1183
1215
  const {
1184
- columnDefs: a,
1185
- rowData: r,
1216
+ columnDefs: r,
1217
+ rowData: a,
1186
1218
  rowSelection: o,
1187
- pagination: s = !1,
1219
+ pagination: i = !1,
1188
1220
  paginationPageSize: c = 25,
1189
- paginationPageSizeSelector: f = [10, 25, 50, 100],
1190
- gridId: d,
1191
- onSelectionChanged: u,
1192
- onSortChanged: i,
1193
- onFilterChanged: p,
1221
+ paginationPageSizeSelector: u = [10, 25, 50, 100],
1222
+ gridId: l,
1223
+ onSelectionChanged: p,
1224
+ onSortChanged: s,
1225
+ onFilterChanged: m,
1194
1226
  noRowsOverlay: y,
1195
1227
  loadingOverlay: b,
1196
1228
  gridOptions: T,
1197
1229
  density: g,
1198
1230
  bordered: N,
1199
1231
  heightClass: x = "ds:h-[500px]",
1200
- className: D,
1232
+ className: F,
1201
1233
  getRowClass: z,
1202
1234
  pinnedBottomRowData: W,
1203
1235
  printMode: C = !1,
1204
1236
  children: M
1205
- } = e, { t: R, i18n: S } = w(), h = ye(null), [K, X] = A(0), [_, H] = A(""), Q = Bt(), te = B(
1237
+ } = e, { t: R, i18n: S } = w(), h = se(null), H = se(null);
1238
+ Wt(H);
1239
+ const [K, Q] = k(0), [J, _] = k(""), _e = Ut(), re = $(
1206
1240
  () => ({
1207
1241
  getSelection: () => {
1208
1242
  var v;
1209
- const l = (v = h.current) == null ? void 0 : v.api;
1210
- if (!l) return [];
1211
- const m = [];
1212
- for (const F of l.getSelectedNodes())
1213
- F.id != null && m.push(F.id);
1214
- return m;
1243
+ const d = (v = h.current) == null ? void 0 : v.api;
1244
+ if (!d) return [];
1245
+ const f = [];
1246
+ for (const D of d.getSelectedNodes())
1247
+ D.id != null && f.push(D.id);
1248
+ return f;
1215
1249
  },
1216
- setSelection: (l) => {
1217
- var F;
1218
- const m = (F = h.current) == null ? void 0 : F.api;
1219
- if (!m) return;
1220
- const v = new Set(l);
1221
- m.forEachNode((I) => {
1250
+ setSelection: (d) => {
1251
+ var D;
1252
+ const f = (D = h.current) == null ? void 0 : D.api;
1253
+ if (!f) return;
1254
+ const v = new Set(d);
1255
+ f.forEachNode((I) => {
1222
1256
  I.id != null && I.setSelected(v.has(I.id));
1223
1257
  });
1224
1258
  },
1225
- selectRange: (l, m) => {
1226
- var be;
1227
- const v = (be = h.current) == null ? void 0 : be.api;
1259
+ selectRange: (d, f) => {
1260
+ var Te;
1261
+ const v = (Te = h.current) == null ? void 0 : Te.api;
1228
1262
  if (!v) return;
1229
- const F = [];
1263
+ const D = [];
1230
1264
  v.forEachNodeAfterFilterAndSort((V) => {
1231
- V.id != null && F.push(V.id);
1265
+ V.id != null && D.push(V.id);
1232
1266
  });
1233
- const I = F.indexOf(l), E = F.indexOf(m);
1267
+ const I = D.indexOf(d), E = D.indexOf(f);
1234
1268
  if (I < 0 || E < 0) return;
1235
- const [L, re] = I <= E ? [I, E] : [E, I], ne = new Set(F.slice(L, re + 1));
1269
+ const [B, ne] = I <= E ? [I, E] : [E, I], oe = new Set(D.slice(B, ne + 1));
1236
1270
  v.forEachNode((V) => {
1237
- V.id != null && V.setSelected(ne.has(V.id));
1271
+ V.id != null && V.setSelected(oe.has(V.id));
1238
1272
  });
1239
1273
  },
1240
1274
  clearSelection: () => {
1241
- var l, m;
1242
- (m = (l = h.current) == null ? void 0 : l.api) == null || m.deselectAll();
1275
+ var d, f;
1276
+ (f = (d = h.current) == null ? void 0 : d.api) == null || f.deselectAll();
1243
1277
  },
1244
1278
  getFilter: () => {
1245
- var l, m;
1246
- return ((m = (l = h.current) == null ? void 0 : l.api) == null ? void 0 : m.getFilterModel()) ?? {};
1279
+ var d, f;
1280
+ return ((f = (d = h.current) == null ? void 0 : d.api) == null ? void 0 : f.getFilterModel()) ?? {};
1247
1281
  },
1248
- setFilter: (l) => {
1249
- var m, v;
1250
- (v = (m = h.current) == null ? void 0 : m.api) == null || v.setFilterModel(l);
1282
+ setFilter: (d) => {
1283
+ var f, v;
1284
+ (v = (f = h.current) == null ? void 0 : f.api) == null || v.setFilterModel(d);
1251
1285
  },
1252
1286
  getSort: () => {
1253
- var m;
1254
- const l = (m = h.current) == null ? void 0 : m.api;
1255
- return l ? l.getColumnState().filter((v) => v.sort === "asc" || v.sort === "desc").map((v) => ({ colId: v.colId, sort: v.sort })) : [];
1287
+ var f;
1288
+ const d = (f = h.current) == null ? void 0 : f.api;
1289
+ return d ? d.getColumnState().filter((v) => v.sort === "asc" || v.sort === "desc").map((v) => ({ colId: v.colId, sort: v.sort })) : [];
1256
1290
  },
1257
- setSort: (l) => {
1258
- var F;
1259
- const m = (F = h.current) == null ? void 0 : F.api;
1260
- if (!m) return;
1261
- const v = m.getColumnState().map((I) => {
1262
- const E = l.find((L) => L.colId === I.colId);
1291
+ setSort: (d) => {
1292
+ var D;
1293
+ const f = (D = h.current) == null ? void 0 : D.api;
1294
+ if (!f) return;
1295
+ const v = f.getColumnState().map((I) => {
1296
+ const E = d.find((B) => B.colId === I.colId);
1263
1297
  return { ...I, sort: E ? E.sort : null };
1264
1298
  });
1265
- m.applyColumnState({ state: v, defaultState: { sort: null } });
1299
+ f.applyColumnState({ state: v, defaultState: { sort: null } });
1266
1300
  },
1267
1301
  getCurrentPage: () => {
1268
- var l, m;
1269
- return ((m = (l = h.current) == null ? void 0 : l.api) == null ? void 0 : m.paginationGetCurrentPage()) ?? 0;
1302
+ var d, f;
1303
+ return ((f = (d = h.current) == null ? void 0 : d.api) == null ? void 0 : f.paginationGetCurrentPage()) ?? 0;
1270
1304
  },
1271
- goToPage: (l) => {
1272
- var m, v;
1273
- (v = (m = h.current) == null ? void 0 : m.api) == null || v.paginationGoToPage(l);
1305
+ goToPage: (d) => {
1306
+ var f, v;
1307
+ (v = (f = h.current) == null ? void 0 : f.api) == null || v.paginationGoToPage(d);
1274
1308
  },
1275
1309
  getRawApi: () => {
1276
- var l;
1277
- return (l = h.current) == null ? void 0 : l.api;
1310
+ var d;
1311
+ return (d = h.current) == null ? void 0 : d.api;
1278
1312
  }
1279
1313
  }),
1280
1314
  []
1281
1315
  );
1282
- at(t, () => te, [te]), Tt(_t, te, d);
1283
- const qe = S.dir() === "rtl", _e = r === void 0, Le = yt(), { resolvedTheme: ge } = vt(), Be = (ge === "light-accessible" || ge === "dark-accessible") && g === "compact" ? "default" : g, $e = B(() => {
1316
+ ot(t, () => re, [re]), xt(Kt, re, l);
1317
+ const Be = S.dir() === "rtl", $e = a === void 0, We = Ct(), { resolvedTheme: he } = St(), Ke = (he === "light-accessible" || he === "dark-accessible") && g === "compact" ? "default" : g, Ve = $(() => {
1284
1318
  if (o)
1285
1319
  return o === "single" ? { mode: "singleRow" } : {
1286
1320
  mode: "multiRow",
1287
1321
  headerCheckbox: !0,
1288
1322
  checkboxes: !0
1289
1323
  };
1290
- }, [o]), We = k(() => {
1291
- var m;
1292
- if (!d || !((m = h.current) != null && m.api)) return;
1293
- const l = Kt(d);
1294
- l && h.current.api.applyColumnState({
1295
- state: l,
1324
+ }, [o]), Ue = A(() => {
1325
+ var f;
1326
+ if (!l || !((f = h.current) != null && f.api)) return;
1327
+ const d = Jt(l);
1328
+ d && h.current.api.applyColumnState({
1329
+ state: d,
1296
1330
  applyOrder: !0
1297
1331
  });
1298
- }, [d]), ae = k(
1299
- (l) => {
1300
- var m;
1301
- l.source && Ut.has(l.source) || d && ((m = h.current) != null && m.api) && Vt(d, h.current.api);
1332
+ }, [l]), ae = A(
1333
+ (d) => {
1334
+ var f;
1335
+ d.source && Zt.has(d.source) || l && ((f = h.current) != null && f.api) && Xt(l, h.current.api);
1302
1336
  },
1303
- [d]
1304
- ), Ke = B(() => {
1337
+ [l]
1338
+ ), He = $(() => {
1305
1339
  if (!T) return;
1306
- const l = { ...T };
1307
- return delete l.defaultColDef, l;
1308
- }, [T]), Ve = k(() => {
1340
+ const d = { ...T };
1341
+ return delete d.defaultColDef, d;
1342
+ }, [T]), Qe = A(() => {
1309
1343
  var v;
1310
- const l = (v = h.current) == null ? void 0 : v.api;
1311
- if (!l) return;
1312
- const m = l.getSelectedRows();
1313
- X(m.length), u == null || u(m);
1314
- }, [u]), Ue = k(
1315
- (l) => {
1344
+ const d = (v = h.current) == null ? void 0 : v.api;
1345
+ if (!d) return;
1346
+ const f = d.getSelectedRows();
1347
+ Q(f.length), p == null || p(f);
1348
+ }, [p]), Je = A(
1349
+ (d) => {
1316
1350
  var v;
1317
- const m = (v = h.current) == null ? void 0 : v.api;
1318
- if (m) {
1319
- const I = m.getColumnState().find((E) => E.sort);
1351
+ const f = (v = h.current) == null ? void 0 : v.api;
1352
+ if (f) {
1353
+ const I = f.getColumnState().find((E) => E.sort);
1320
1354
  if (I) {
1321
- const E = I.colId, L = m.getColumnDef(E), re = (L == null ? void 0 : L.headerName) ?? E, ne = I.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1322
- H(
1355
+ const E = I.colId, B = f.getColumnDef(E), ne = (B == null ? void 0 : B.headerName) ?? E, oe = I.sort === "asc" ? "dataTable.sortAscending" : "dataTable.sortDescending";
1356
+ _(
1323
1357
  R("dataTable.sortAnnounce", {
1324
- column: re,
1325
- direction: R(ne)
1358
+ column: ne,
1359
+ direction: R(oe)
1326
1360
  })
1327
1361
  );
1328
1362
  } else
1329
- H("");
1363
+ _("");
1330
1364
  }
1331
- i == null || i(l);
1365
+ s == null || s(d);
1332
1366
  },
1333
- [i, R]
1334
- ), He = k(
1335
- (l) => {
1336
- p == null || p(l);
1367
+ [s, R]
1368
+ ), Xe = A(
1369
+ (d) => {
1370
+ m == null || m(d);
1337
1371
  },
1338
- [p]
1372
+ [m]
1339
1373
  );
1340
- $(() => {
1341
- if (!_) return;
1342
- const l = setTimeout(() => H(""), 3e3);
1343
- return () => clearTimeout(l);
1344
- }, [_]);
1345
- const Qe = y ?? Wt, Je = b ?? $t, Xe = k(
1374
+ q(() => {
1375
+ if (!J) return;
1376
+ const d = setTimeout(() => _(""), 3e3);
1377
+ return () => clearTimeout(d);
1378
+ }, [J]);
1379
+ const Ze = y ?? Qt, Ye = b ?? Ht, et = A(
1346
1380
  () => {
1347
- var l;
1348
- return (l = h.current) == null ? void 0 : l.api;
1381
+ var d;
1382
+ return (d = h.current) == null ? void 0 : d.api;
1349
1383
  },
1350
1384
  []
1351
- ), Ze = k(() => {
1385
+ ), tt = A(() => {
1352
1386
  typeof window < "u" && window.print();
1353
- }, []), Ye = Lt({
1354
- density: Be,
1387
+ }, []), rt = Vt({
1388
+ density: Ke,
1355
1389
  bordered: N,
1356
- className: D
1357
- }), et = M ?? /* @__PURE__ */ n("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ O(
1358
- we,
1390
+ className: F
1391
+ }), at = M ?? /* @__PURE__ */ n("div", { className: "data-table-toolbar ds:flex ds:justify-end", children: /* @__PURE__ */ O(
1392
+ Ie,
1359
1393
  {
1360
1394
  role: "toolbar",
1361
1395
  "aria-label": R("dataTable.tableActions"),
1362
1396
  className: "ds:bg-[var(--background)]",
1363
1397
  children: [
1364
- /* @__PURE__ */ n(Y.ExportMenu, {}),
1365
- /* @__PURE__ */ n(Y.Print, {}),
1366
- /* @__PURE__ */ n(Y.ColumnToggle, {})
1398
+ /* @__PURE__ */ n(ee.ExportMenu, {}),
1399
+ /* @__PURE__ */ n(ee.Print, {}),
1400
+ /* @__PURE__ */ n(ee.ColumnToggle, {})
1367
1401
  ]
1368
1402
  }
1369
- ) }), tt = C ? !1 : s;
1403
+ ) }), nt = C ? !1 : i;
1370
1404
  return /* @__PURE__ */ O(
1371
1405
  "div",
1372
1406
  {
1373
1407
  className: "ds:flex ds:w-full ds:min-h-0 ds:flex-1 ds:flex-col ds:gap-[var(--spacing-sm)]",
1374
- "aria-busy": _e ? "true" : void 0,
1408
+ "aria-busy": $e ? "true" : void 0,
1375
1409
  "data-component": "data-table",
1376
- "data-component-id": d,
1410
+ "data-component-id": l,
1377
1411
  "data-print-mode": C ? "true" : void 0,
1378
1412
  children: [
1379
1413
  !C && /* @__PURE__ */ n(
1380
- Nt,
1414
+ Dt,
1381
1415
  {
1382
- getApi: Xe,
1416
+ getApi: et,
1383
1417
  selectionCount: K,
1384
- onPrint: Ze,
1385
- children: et
1418
+ onPrint: tt,
1419
+ children: at
1386
1420
  }
1387
1421
  ),
1388
1422
  /* @__PURE__ */ n(
1389
1423
  "div",
1390
1424
  {
1391
- className: [Ye, C ? "" : x].join(" ").trim(),
1425
+ ref: H,
1426
+ className: [rt, C ? "" : x].join(" ").trim(),
1392
1427
  children: /* @__PURE__ */ n(
1393
- st,
1428
+ ct,
1394
1429
  {
1395
1430
  ref: h,
1396
1431
  theme: "legacy",
1397
- columnDefs: a,
1398
- rowData: r,
1432
+ columnDefs: r,
1433
+ rowData: a,
1399
1434
  defaultColDef: {
1400
1435
  sortable: !0,
1401
1436
  // Default filter = DS-styled text filter so untyped columns
@@ -1403,8 +1438,8 @@ function Ht(e, t) {
1403
1438
  // language instead of AG Grid's stock browser-skinned input.
1404
1439
  // Number / date / select columns opt into their dedicated
1405
1440
  // wrapper per-column.
1406
- filter: jt,
1407
- floatingFilterComponent: qt,
1441
+ filter: _t,
1442
+ floatingFilterComponent: Bt,
1408
1443
  resizable: !0,
1409
1444
  floatingFilter: !0,
1410
1445
  // §13d — faint sort icon advertises which columns are
@@ -1412,13 +1447,13 @@ function Ht(e, t) {
1412
1447
  unSortIcon: !0,
1413
1448
  ...T == null ? void 0 : T.defaultColDef
1414
1449
  },
1415
- rowSelection: $e,
1416
- pagination: tt,
1450
+ rowSelection: Ve,
1451
+ pagination: nt,
1417
1452
  paginationPageSize: c,
1418
- paginationPageSizeSelector: f,
1419
- paginationNumberFormatter: (l) => new Intl.NumberFormat(S.language).format(l.value),
1420
- animateRows: !Le,
1421
- enableRtl: qe,
1453
+ paginationPageSizeSelector: u,
1454
+ paginationNumberFormatter: (d) => new Intl.NumberFormat(S.language).format(d.value),
1455
+ animateRows: !We,
1456
+ enableRtl: Be,
1422
1457
  ensureDomOrder: !0,
1423
1458
  enableCellSpan: !0,
1424
1459
  enableCellTextSelection: !0,
@@ -1436,111 +1471,111 @@ function Ht(e, t) {
1436
1471
  undoRedoCellEditingLimit: 20,
1437
1472
  suppressCellFocus: !1,
1438
1473
  rowBuffer: 10,
1439
- localeText: Q,
1440
- noRowsOverlayComponent: Qe,
1441
- loadingOverlayComponent: Je,
1474
+ localeText: _e,
1475
+ noRowsOverlayComponent: Ze,
1476
+ loadingOverlayComponent: Ye,
1442
1477
  getRowClass: z,
1443
1478
  pinnedBottomRowData: W,
1444
1479
  domLayout: C ? "autoHeight" : void 0,
1445
- onGridReady: We,
1480
+ onGridReady: Ue,
1446
1481
  onColumnMoved: ae,
1447
1482
  onColumnResized: ae,
1448
1483
  onColumnPinned: ae,
1449
- onSortChanged: Ue,
1450
- onFilterChanged: He,
1451
- onSelectionChanged: Ve,
1452
- ...Ke
1484
+ onSortChanged: Je,
1485
+ onFilterChanged: Xe,
1486
+ onSelectionChanged: Qe,
1487
+ ...He
1453
1488
  }
1454
1489
  )
1455
1490
  }
1456
1491
  ),
1457
1492
  !C && /* @__PURE__ */ n("div", { className: "ds:flex ds:items-center ds:justify-between type-body-sm ds:text-[color:var(--muted-foreground)]", children: K > 0 ? /* @__PURE__ */ n("span", { children: R("dataTable.selected", { count: K }) }) : /* @__PURE__ */ n("span", {}) }),
1458
- /* @__PURE__ */ n("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: _ })
1493
+ /* @__PURE__ */ n("span", { role: "status", "aria-live": "polite", className: "ds:sr-only", children: J })
1459
1494
  ]
1460
1495
  }
1461
1496
  );
1462
1497
  }
1463
- const je = P(Ht);
1464
- je.displayName = "DataTable";
1465
- const Fa = Object.assign(je, {
1466
- Toolbar: Y
1498
+ const Le = P(Yt);
1499
+ Le.displayName = "DataTable";
1500
+ const Or = Object.assign(Le, {
1501
+ Toolbar: ee
1467
1502
  });
1468
- function Te(e) {
1469
- if (!Ce(e)) return e;
1470
- const t = e, a = t.props.className ?? "", r = /\bsize-|\bw-|\bh-/.test(a) ? a : `${a} size-4`.trim();
1471
- return Se(t, { className: r, size: t.props.size ?? 16 });
1503
+ function xe(e) {
1504
+ if (!we(e)) return e;
1505
+ const t = e, r = t.props.className ?? "", a = /\bsize-|\bw-|\bh-/.test(r) ? r : `${r} size-4`.trim();
1506
+ return Ne(t, { className: a, size: t.props.size ?? 16 });
1472
1507
  }
1473
- function Ra(e) {
1508
+ function Pr(e) {
1474
1509
  return Math.max(1, e) * 32 + 26;
1475
1510
  }
1476
- function oe(e, t) {
1511
+ function ie(e, t) {
1477
1512
  return typeof e == "function" ? e(t) : !!e;
1478
1513
  }
1479
- const Qt = "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]";
1480
- function ka(e) {
1481
- const { data: t, actions: a, intent: r = "ghost", group: o, label: s, collapsed: c } = e, { t: f } = w();
1514
+ const er = "ds:text-[color:var(--destructive)] ds:hover:text-[color:var(--destructive-hover)]";
1515
+ function zr(e) {
1516
+ const { data: t, actions: r, intent: a = "ghost", group: o, label: i, collapsed: c } = e, { t: u } = w();
1482
1517
  if (!t) return null;
1483
- const d = a.filter((p) => !oe(p.hidden, t));
1518
+ const l = r.filter((m) => !ie(m.hidden, t));
1484
1519
  if (typeof c == "function" ? c() : !!c)
1485
1520
  return /* @__PURE__ */ O(j.Root, { children: [
1486
1521
  /* @__PURE__ */ n(j.Trigger, { asChild: !0, children: /* @__PURE__ */ n(
1487
- q,
1522
+ L,
1488
1523
  {
1489
1524
  size: "sm",
1490
- intent: r,
1491
- icon: /* @__PURE__ */ n(xt, { "aria-hidden": !0 }),
1492
- "aria-label": s ?? f("dataTable.actions", "Actions")
1525
+ intent: a,
1526
+ icon: /* @__PURE__ */ n(wt, { "aria-hidden": !0 }),
1527
+ "aria-label": i ?? u("dataTable.actions", "Actions")
1493
1528
  }
1494
1529
  ) }),
1495
- /* @__PURE__ */ n(j.Content, { align: "end", children: d.map((p, y) => /* @__PURE__ */ n(
1530
+ /* @__PURE__ */ n(j.Content, { align: "end", children: l.map((m, y) => /* @__PURE__ */ n(
1496
1531
  j.Item,
1497
1532
  {
1498
- startIcon: Te(p.icon),
1499
- disabled: oe(p.disabled, t),
1500
- onSelect: () => p.onClick(t),
1501
- className: p.variant === "destructive" ? "ds:text-[color:var(--destructive)]" : void 0,
1502
- children: p.label
1533
+ startIcon: xe(m.icon),
1534
+ disabled: ie(m.disabled, t),
1535
+ onSelect: () => m.onClick(t),
1536
+ className: m.variant === "destructive" ? "ds:text-[color:var(--destructive)]" : void 0,
1537
+ children: m.label
1503
1538
  },
1504
1539
  y
1505
1540
  )) })
1506
1541
  ] });
1507
- const i = d.map((p, y) => {
1508
- const b = oe(p.disabled, t), T = b && p.disabledReason ? p.disabledReason : p.label;
1542
+ const s = l.map((m, y) => {
1543
+ const b = ie(m.disabled, t), T = b && m.disabledReason ? m.disabledReason : m.label;
1509
1544
  return /* @__PURE__ */ n(
1510
- q,
1545
+ L,
1511
1546
  {
1512
1547
  size: "sm",
1513
- intent: r,
1514
- icon: Te(p.icon),
1548
+ intent: a,
1549
+ icon: xe(m.icon),
1515
1550
  tooltip: T,
1516
- "aria-label": p.label,
1551
+ "aria-label": m.label,
1517
1552
  disabled: b,
1518
1553
  onClick: (g) => {
1519
- g.stopPropagation(), p.onClick(t);
1554
+ g.stopPropagation(), m.onClick(t);
1520
1555
  },
1521
- className: p.variant === "destructive" ? Qt : void 0
1556
+ className: m.variant === "destructive" ? er : void 0
1522
1557
  },
1523
1558
  y
1524
1559
  );
1525
1560
  });
1526
1561
  return o ? /* @__PURE__ */ n(
1527
- we,
1562
+ Ie,
1528
1563
  {
1529
- "aria-label": s ?? f("dataTable.actions", "Actions"),
1564
+ "aria-label": i ?? u("dataTable.actions", "Actions"),
1530
1565
  size: "sm",
1531
- children: i
1566
+ children: s
1532
1567
  }
1533
- ) : /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: i });
1568
+ ) : /* @__PURE__ */ n("span", { className: "ds:inline-flex ds:items-center ds:gap-[var(--spacing-xs)]", children: s });
1534
1569
  }
1535
1570
  export {
1536
- ka as A,
1537
- Fa as D,
1538
- jt as T,
1539
- qt as a,
1540
- Y as b,
1541
- Nt as c,
1542
- Ra as d,
1543
- _t as e,
1544
- Ae as f
1571
+ zr as A,
1572
+ Or as D,
1573
+ _t as T,
1574
+ Bt as a,
1575
+ ee as b,
1576
+ Dt as c,
1577
+ Pr as d,
1578
+ Kt as e,
1579
+ Oe as f
1545
1580
  };
1546
- //# sourceMappingURL=actions-cell-renderer-DaL80uqL.js.map
1581
+ //# sourceMappingURL=actions-cell-renderer-ClGCSQnA.js.map