unifyedx-storybook-syncfusion 0.4.13 → 0.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
- import { jsx as j, jsxs as ee } from "react/jsx-runtime";
2
- import ht, { useRef as We, useEffect as Te, useMemo as ke, forwardRef as kt, createElement as nt, useCallback as we, Fragment as Gt, useId as Jt } from "react";
3
- import { resolveTableId as Pt, useTablePreferences as Xt, useRestoredGridState as Zt, useRestoredSearch as Qt, SearchBar as er, IconButton as xe, UnifyedCoreButton as Ke, SegmentedControl as tr } from "unifyedx-storybook-new";
4
- import { Page as rr, Selection as nr, Sort as ir, Filter as or, Group as ar, Search as sr, ExcelExport as cr, PdfExport as lr, ColumnChooser as ur, Resize as dr, Reorder as fr, Edit as pr, Print as hr, Freeze as mr, GridComponent as yr, ColumnsDirective as vr, Inject as gr, ColumnDirective as Ge } from "@syncfusion/ej2-react-grids";
5
- import { DatePickerComponent as br, DateRangePickerComponent as wr, TimePickerComponent as Sr, DateTimePickerComponent as Je } from "@syncfusion/ej2-react-calendars";
1
+ import { jsx as j, jsxs as te } from "react/jsx-runtime";
2
+ import yt, { useRef as We, useEffect as be, useMemo as Pe, forwardRef as Pt, createElement as it, useCallback as we, Fragment as Gt, useId as Jt } from "react";
3
+ import { resolveTableId as Ot, useTablePreferences as Xt, useRestoredGridState as Zt, useRestoredSearch as Qt, SearchBar as er, IconButton as Re, UnifyedCoreButton as Ge, SegmentedControl as tr } from "unifyedx-storybook-new";
4
+ import { Page as rr, Selection as nr, Sort as ir, Filter as or, Group as ar, Search as sr, ExcelExport as cr, PdfExport as lr, ColumnChooser as ur, Resize as dr, Reorder as fr, Edit as pr, Print as hr, Freeze as yr, GridComponent as mr, ColumnsDirective as vr, Inject as gr, ColumnDirective as Je } from "@syncfusion/ej2-react-grids";
5
+ import { DatePickerComponent as br, DateRangePickerComponent as wr, TimePickerComponent as Sr, DateTimePickerComponent as Xe } from "@syncfusion/ej2-react-calendars";
6
6
  import { registerLicense as Cr } from "@syncfusion/ej2-base";
7
- const X = 50, mt = "Row actions";
7
+ const Z = 50, mt = "Row actions";
8
8
  function an(n) {
9
9
  const {
10
10
  data: b = [],
@@ -25,56 +25,56 @@ function an(n) {
25
25
  enableSearchApi: D = !1,
26
26
  height: B = "600",
27
27
  selectionSettings: V,
28
- enableCheckbox: Z = !1,
28
+ enableCheckbox: Q = !1,
29
29
  columns: $ = [],
30
30
  onGridStateChange: z,
31
31
  onRowSelected: s,
32
- onRowDeselected: ie,
32
+ onRowDeselected: oe,
33
33
  onRowDoubleClick: me,
34
- ariaLabel: oe,
35
- ariaLabelledBy: H,
36
- ariaDescribedBy: ye,
34
+ ariaLabel: ae,
35
+ ariaLabelledBy: U,
36
+ ariaDescribedBy: ve,
37
37
  // Editing
38
38
  allowEditing: ce = !1,
39
39
  editSettings: de,
40
40
  onCellSave: le,
41
- apiRef: U,
41
+ apiRef: K,
42
42
  gridProps: he = {},
43
- tableId: K,
43
+ tableId: G,
44
44
  // Remember the page number per tableId (alongside page size, sort and
45
45
  // filters). Set false for a grid that shares its page counter with
46
46
  // another view, e.g. an infinite-scroll tile view.
47
- persistPage: re = !0,
48
- ...te
49
- } = n, ue = Pt(K), { savePrefs: t } = Xt(ue), o = We(null), S = (e) => {
47
+ persistPage: ne = !0,
48
+ ...re
49
+ } = n, ue = Ot(G), { savePrefs: t } = Xt(ue), o = We(null), S = (e) => {
50
50
  const c = e?.target;
51
51
  !c || typeof c.scrollIntoView != "function" || c.scrollIntoView({ block: "nearest", inline: "nearest" });
52
52
  }, d = We([]), {
53
- pageSettings: m,
53
+ pageSettings: y,
54
54
  sortSettings: w,
55
55
  // Composed with the grid's own guards below instead of replacing them.
56
- rowSelecting: y,
56
+ rowSelecting: m,
57
57
  rowDeselecting: C,
58
58
  ...E
59
- } = he || {}, x = w?.sortKey || w?.columns?.[0]?.field || "", i = w?.direction || w?.columns?.[0]?.direction || "", { page: k, setPage: r, pageSize: N, setPageSize: G, sortKey: ne, direction: fe, initialPrefs: ae, onPaging: Oe, onSorting: Ae, savePage: ve } = Zt(ue, {
60
- gpPageSettings: m,
59
+ } = he || {}, x = w?.sortKey || w?.columns?.[0]?.field || "", i = w?.direction || w?.columns?.[0]?.direction || "", { page: k, setPage: r, pageSize: N, setPageSize: J, sortKey: ie, direction: fe, initialPrefs: se, onPaging: Ae, onSorting: Ie, savePage: ye } = Zt(ue, {
60
+ gpPageSettings: y,
61
61
  gpSortKey: x,
62
62
  gpSortDir: i,
63
63
  pageIndex: _,
64
64
  propPageSize: p,
65
65
  columns: $,
66
- persistPage: re
67
- }), Le = m?.currentPage ?? m?.page;
68
- Te(() => {
69
- const e = Number(Le);
70
- !Number.isFinite(e) || e < 1 || (e !== k && r(e), ve(e));
71
- }, [Le]);
72
- const Se = ke(() => {
66
+ persistPage: ne
67
+ }), Se = y?.currentPage ?? y?.page;
68
+ be(() => {
69
+ const e = Number(Se);
70
+ !Number.isFinite(e) || e < 1 || (e !== k && r(e), ye(e));
71
+ }, [Se]);
72
+ const at = Pe(() => {
73
73
  const e = V || {
74
74
  type: "Multiple",
75
75
  mode: "Row"
76
76
  };
77
- return Z ? {
77
+ return Q ? {
78
78
  // Defaults for checkbox selection — caller's `selectionSettings`
79
79
  // spreads last so any of these can be overridden (e.g. file-manager
80
80
  // consumers that need `checkboxOnly: true` so row clicks don't toggle).
@@ -84,11 +84,11 @@ function an(n) {
84
84
  enableSimpleMultiRowSelection: !0,
85
85
  ...e
86
86
  } : e;
87
- }, [V, Z, $]), ot = ke(() => {
87
+ }, [V, Q, $]), Ce = Pe(() => {
88
88
  const e = [rr];
89
- return (Z || V) && e.push(nr), h && e.push(ir), A && e.push(or), R && e.push(ar), D && e.push(sr), I && e.push(cr), L && e.push(lr), Y && e.push(ur), O && e.push(dr), T && e.push(fr), ce && e.push(pr), e.push(hr), $.some(
89
+ return (Q || V) && e.push(nr), h && e.push(ir), A && e.push(or), R && e.push(ar), D && e.push(sr), I && e.push(cr), L && e.push(lr), Y && e.push(ur), O && e.push(dr), T && e.push(fr), ce && e.push(pr), e.push(hr), $.some(
90
90
  (a) => ["action", "actions"].includes(a?.headerText?.toLowerCase())
91
- ) && e.push(mr), e;
91
+ ) && e.push(yr), e;
92
92
  }, [
93
93
  h,
94
94
  A,
@@ -100,10 +100,10 @@ function an(n) {
100
100
  O,
101
101
  T,
102
102
  ce,
103
- Z,
103
+ Q,
104
104
  V,
105
105
  $
106
- ]), Me = ke(() => {
106
+ ]), Be = Pe(() => {
107
107
  const e = () => o.current, c = (a, g) => {
108
108
  !g && typeof globalThis < "u" && globalThis?.process?.env?.NODE_ENV;
109
109
  };
@@ -141,10 +141,10 @@ function an(n) {
141
141
  }
142
142
  let P = !1;
143
143
  if (l.selectedRowState && a in l.selectedRowState && (delete l.selectedRowState[a], P = !0), Array.isArray(l.persistSelectedData)) {
144
- const M = g.getPrimaryKeyFieldNames?.()?.[0], J = l.persistSelectedData.length;
144
+ const M = g.getPrimaryKeyFieldNames?.()?.[0], X = l.persistSelectedData.length;
145
145
  l.persistSelectedData = l.persistSelectedData.filter(
146
- (be) => be[M] !== a
147
- ), l.persistSelectedData.length < J && (P = !0);
146
+ (ge) => ge[M] !== a
147
+ ), l.persistSelectedData.length < X && (P = !0);
148
148
  }
149
149
  return P && l.refreshPersistSelection?.(), P;
150
150
  },
@@ -160,13 +160,13 @@ function an(n) {
160
160
  return;
161
161
  const P = new Set(a);
162
162
  let M = !1;
163
- if (l.selectedRowState && a.forEach((J) => {
164
- J in l.selectedRowState && (delete l.selectedRowState[J], M = !0);
163
+ if (l.selectedRowState && a.forEach((X) => {
164
+ X in l.selectedRowState && (delete l.selectedRowState[X], M = !0);
165
165
  }), Array.isArray(l.persistSelectedData)) {
166
- const J = g.getPrimaryKeyFieldNames?.()?.[0], be = l.persistSelectedData.length;
166
+ const X = g.getPrimaryKeyFieldNames?.()?.[0], ge = l.persistSelectedData.length;
167
167
  l.persistSelectedData = l.persistSelectedData.filter(
168
- (Ee) => !P.has(Ee[J])
169
- ), l.persistSelectedData.length < be && (M = !0);
168
+ (xe) => !P.has(xe[X])
169
+ ), l.persistSelectedData.length < ge && (M = !0);
170
170
  }
171
171
  M && l.refreshPersistSelection?.();
172
172
  },
@@ -190,19 +190,19 @@ function an(n) {
190
190
  autoFitColumns: (a) => e()?.autoFitColumns?.(a)
191
191
  };
192
192
  }, [D, I, L, Y]);
193
- Te(() => {
194
- U && (U.current = Me);
195
- }, [U, Me]), Te(() => () => {
196
- U && (U.current = null);
197
- }, [U]);
198
- const Ce = (e) => {
193
+ be(() => {
194
+ K && (K.current = Be);
195
+ }, [K, Be]), be(() => () => {
196
+ K && (K.current = null);
197
+ }, [K]);
198
+ const De = (e) => {
199
199
  const c = String(e || "");
200
200
  return c === "Ascending" || c === "Descending" ? c : c.toLowerCase() === "ascending" ? "Ascending" : "Descending";
201
- }, Re = (e) => {
202
- const c = o.current, a = e?.requestType, g = a === "paging" ? "paging" : a === "sorting" ? "sorting" : a === "searching" ? "searching" : a === "filtering" ? "filtering" : a === "grouping" ? "grouping" : a === "reorder" ? "reorder" : a === "columnstate" ? "columnstate" : "other", l = e?.pageSize ?? c?.pageSettings?.pageSize ?? N, P = e?.currentPage ?? c?.pageSettings?.currentPage ?? _, M = e?.columnName && e?.direction ? [{ field: e.columnName, dir: Ce(e.direction) }] : (c?.sortSettings?.columns || []).map((Ee) => ({
203
- field: Ee.field,
204
- dir: Ce(Ee.direction ?? Ee.dir)
205
- })), J = e?.searchString ?? "", be = e?.columns ?? c?.filterSettings?.columns ?? [];
201
+ }, _e = (e) => {
202
+ const c = o.current, a = e?.requestType, g = a === "paging" ? "paging" : a === "sorting" ? "sorting" : a === "searching" ? "searching" : a === "filtering" ? "filtering" : a === "grouping" ? "grouping" : a === "reorder" ? "reorder" : a === "columnstate" ? "columnstate" : "other", l = e?.pageSize ?? c?.pageSettings?.pageSize ?? N, P = e?.currentPage ?? c?.pageSettings?.currentPage ?? _, M = e?.columnName && e?.direction ? [{ field: e.columnName, dir: De(e.direction) }] : (c?.sortSettings?.columns || []).map((xe) => ({
203
+ field: xe.field,
204
+ dir: De(xe.direction ?? xe.dir)
205
+ })), X = e?.searchString ?? "", ge = e?.columns ?? c?.filterSettings?.columns ?? [];
206
206
  return {
207
207
  reason: g,
208
208
  page: {
@@ -212,28 +212,28 @@ function an(n) {
212
212
  take: l
213
213
  },
214
214
  sort: M,
215
- search: J,
216
- filters: be,
215
+ search: X,
216
+ filters: ge,
217
217
  rawEvent: e
218
218
  };
219
219
  };
220
- Te(() => {
220
+ be(() => {
221
221
  if (!(u > 0) || !(N > 0)) return;
222
222
  const e = Math.max(1, Math.ceil(u / N));
223
- k <= e || (r(e), ve(e), z?.(
224
- Re({ requestType: "paging", currentPage: e, pageSize: N }),
223
+ k <= e || (r(e), ye(e), z?.(
224
+ _e({ requestType: "paging", currentPage: e, pageSize: N }),
225
225
  { requestType: "paging", currentPage: e, pageSize: N, clamped: !0 }
226
226
  ));
227
227
  }, [u, N, k]);
228
- const $e = (e) => {
228
+ const Me = (e) => {
229
229
  if (setTimeout(() => {
230
230
  o?.current?.hideSpinner();
231
231
  }, 1e3), e.requestType === "paging") {
232
232
  const c = o.current, a = e.pageSize ?? c?.pageSettings?.pageSize ?? N;
233
- Oe(e, a);
233
+ Ae(e, a);
234
234
  }
235
- e.requestType === "sorting" && Ae(e, ne), (e.requestType === "searching" || e.requestType === "filtering") && ve(1), z?.(Re(e), e);
236
- }, Ie = (e) => {
235
+ e.requestType === "sorting" && Ie(e, ie), (e.requestType === "searching" || e.requestType === "filtering") && ye(1), z?.(_e(e), e);
236
+ }, ke = (e) => {
237
237
  const c = e instanceof Element ? e : null;
238
238
  if (!c || c.closest(".e-checkbox-wrapper, .e-gridchkbox")) return !1;
239
239
  const a = c.closest(
@@ -242,30 +242,30 @@ function an(n) {
242
242
  if (!a) return !1;
243
243
  const g = c.closest("tr");
244
244
  return !!g && a !== g && g.contains(a);
245
- }, ze = (e) => {
246
- if (Ie(e?.target)) {
245
+ }, Fe = (e) => {
246
+ if (ke(e?.target)) {
247
247
  e.cancel = !0;
248
248
  return;
249
249
  }
250
- y?.(e);
251
- }, Ye = (e) => {
252
- if (Ie(e?.target)) {
250
+ m?.(e);
251
+ }, Ve = (e) => {
252
+ if (ke(e?.target)) {
253
253
  e.cancel = !0;
254
254
  return;
255
255
  }
256
256
  C?.(e);
257
257
  };
258
- Te(() => {
258
+ be(() => {
259
259
  const e = o.current;
260
260
  if (!e?.on) return;
261
261
  const c = (a) => {
262
- a?.byClick && Ie(a.clickArgs?.target) && (a.cancel = !0);
262
+ a?.byClick && ke(a.clickArgs?.target) && (a.cancel = !0);
263
263
  };
264
264
  return e.on("beforecellfocused", c), () => {
265
265
  e.isDestroyed || e.off?.("beforecellfocused", c);
266
266
  };
267
267
  }, []);
268
- const Ne = (e) => {
268
+ const He = (e) => {
269
269
  if (e?.data) {
270
270
  const c = Array.isArray(e.data) ? e.data : [e.data];
271
271
  d.current = [
@@ -285,19 +285,19 @@ function an(n) {
285
285
  (g) => !a.has(JSON.stringify(g))
286
286
  );
287
287
  }
288
- ie?.(e);
289
- }, De = (e) => {
288
+ oe?.(e);
289
+ }, Le = (e) => {
290
290
  me?.(e?.rowData, e);
291
- }, _e = () => {
292
- const e = ae?.columnWidths || {}, c = ae?.columnVisibility || {}, a = [];
293
- Z && a.push(
291
+ }, $e = () => {
292
+ const e = se?.columnWidths || {}, c = se?.columnVisibility || {}, a = [];
293
+ Q && a.push(
294
294
  /* @__PURE__ */ j(
295
- Ge,
295
+ Je,
296
296
  {
297
297
  type: "checkbox",
298
- width: X,
299
- minWidth: X,
300
- maxWidth: X,
298
+ width: Z,
299
+ minWidth: Z,
300
+ maxWidth: Z,
301
301
  allowSorting: !1,
302
302
  allowFiltering: !1,
303
303
  allowGrouping: !1,
@@ -311,11 +311,11 @@ function an(n) {
311
311
  return $.forEach((l, P) => {
312
312
  const {
313
313
  field: M,
314
- headerText: J,
315
- width: be = 150,
316
- textAlign: Ee = "Left",
317
- template: st,
318
- isPrimaryKey: ct,
314
+ headerText: X,
315
+ width: ge = 150,
316
+ textAlign: xe = "Left",
317
+ template: ct,
318
+ isPrimaryKey: lt,
319
319
  showInColumnChooser: Nt = !0,
320
320
  allowFiltering: Wt = !0,
321
321
  allowSorting: jt = !0,
@@ -325,56 +325,56 @@ function an(n) {
325
325
  editTemplate: zt,
326
326
  validationRules: Yt,
327
327
  defaultValue: Bt,
328
- type: lt,
329
- format: ut,
330
- visible: dt = !0,
328
+ type: ut,
329
+ format: dt,
330
+ visible: ft = !0,
331
331
  minWidth: Vt = 50,
332
332
  maxWidth: Ht,
333
- customAttributes: ft,
334
- ...pt
333
+ customAttributes: pt,
334
+ ...ht
335
335
  } = l || {};
336
- if (["action", "actions"].includes(J?.toLowerCase()))
336
+ if (["action", "actions"].includes(X?.toLowerCase()))
337
337
  a.push(
338
338
  /* @__PURE__ */ j(
339
- Ge,
339
+ Je,
340
340
  {
341
341
  field: M,
342
- headerText: J || mt,
343
- width: X,
344
- textAlign: Ee,
345
- template: st,
346
- isPrimaryKey: ct,
342
+ headerText: X || mt,
343
+ width: Z,
344
+ textAlign: xe,
345
+ template: ct,
346
+ isPrimaryKey: lt,
347
347
  showInColumnChooser: !1,
348
348
  allowFiltering: !1,
349
349
  allowSorting: !1,
350
350
  allowEditing: !1,
351
351
  allowResizing: !1,
352
352
  allowReordering: !1,
353
- type: lt,
354
- format: ut,
355
- visible: dt,
353
+ type: ut,
354
+ format: dt,
355
+ visible: ft,
356
356
  customAttributes: {
357
- ...ft,
357
+ ...pt,
358
358
  "data-action-column": "true"
359
359
  },
360
360
  freeze: "Right",
361
- ...pt
361
+ ...ht
362
362
  },
363
363
  M || `col-${P}`
364
364
  )
365
365
  );
366
366
  else {
367
- const Ut = M && e[M] != null ? e[M] : be, Kt = M && c[M] != null ? c[M] : dt;
367
+ const Ut = M && e[M] != null ? e[M] : ge, Kt = M && c[M] != null ? c[M] : ft;
368
368
  a.push(
369
369
  /* @__PURE__ */ j(
370
- Ge,
370
+ Je,
371
371
  {
372
372
  field: M,
373
- headerText: J,
373
+ headerText: X,
374
374
  width: Ut,
375
- textAlign: Ee,
376
- template: st,
377
- isPrimaryKey: ct,
375
+ textAlign: xe,
376
+ template: ct,
377
+ isPrimaryKey: lt,
378
378
  showInColumnChooser: Nt,
379
379
  allowFiltering: Wt,
380
380
  allowSorting: jt,
@@ -384,29 +384,29 @@ function an(n) {
384
384
  editTemplate: zt,
385
385
  validationRules: Yt,
386
386
  defaultValue: Bt,
387
- type: lt,
388
- format: ut,
387
+ type: ut,
388
+ format: dt,
389
389
  visible: Kt,
390
390
  minWidth: Vt,
391
391
  maxWidth: Ht,
392
- customAttributes: ft,
392
+ customAttributes: pt,
393
393
  ...P === g ? { allowReordering: !1 } : {},
394
- ...pt
394
+ ...ht
395
395
  },
396
396
  M || `col-${P}`
397
397
  )
398
398
  );
399
399
  }
400
400
  }), a;
401
- }, ge = m?.pageSizes, Q = JSON.stringify(ge ?? null), se = ke(() => ({
401
+ }, Ee = y?.pageSizes, Te = JSON.stringify(Ee ?? null), H = Pe(() => ({
402
402
  currentPage: k,
403
403
  pageSize: N,
404
- pageSizes: ge ?? [10, 20, 40, 60, 80, 100]
404
+ pageSizes: Ee ?? [10, 20, 40, 60, 80, 100]
405
405
  // eslint-disable-next-line react-hooks/exhaustive-deps
406
- }), [k, N, Q]), Be = ke(() => ({
407
- columns: ne ? [{ field: ne, direction: Ce(fe) }] : [],
406
+ }), [k, N, Te]), ee = Pe(() => ({
407
+ columns: ie ? [{ field: ie, direction: De(fe) }] : [],
408
408
  allowUnsort: !1
409
- }), [ne, fe]), Ve = ke(() => ({
409
+ }), [ie, fe]), Ne = Pe(() => ({
410
410
  allowEditing: ce,
411
411
  allowAdding: !1,
412
412
  allowDeleting: !1,
@@ -415,7 +415,7 @@ function an(n) {
415
415
  showDeleteConfirmDialog: !1,
416
416
  newRowPosition: "Top",
417
417
  ...de || {}
418
- }), [ce, de]), He = ke(() => ({
418
+ }), [ce, de]), qe = Pe(() => ({
419
419
  result: b,
420
420
  count: u
421
421
  }), [b, u]), Ue = () => {
@@ -429,7 +429,7 @@ function an(n) {
429
429
  c[a.field] = typeof g == "string" && parseInt(g, 10) || g;
430
430
  }
431
431
  }), t({ columnWidths: c });
432
- }, pe = (e) => {
432
+ }, Ke = (e) => {
433
433
  if (e.requestType === "columnVisibilityUpdate" && (Mt(), ue)) {
434
434
  const c = o.current;
435
435
  if (c) {
@@ -439,7 +439,7 @@ function an(n) {
439
439
  }), t({ columnVisibility: a });
440
440
  }
441
441
  }
442
- }, Dt = (e) => {
442
+ }, pe = (e) => {
443
443
  typeof le == "function" && le({
444
444
  columnName: e.columnName,
445
445
  field: e.columnName,
@@ -456,14 +456,14 @@ function an(n) {
456
456
  e && setTimeout(() => {
457
457
  const c = e.columns, a = e.element?.offsetWidth || 0, g = c.reduce((P, M) => {
458
458
  if (!M?.visible) return P;
459
- const J = M._initialWidth ?? M._initialWidth ?? X, be = typeof J == "string" ? parseInt(J, 10) : J || 0;
460
- return P + be;
459
+ const X = M._initialWidth ?? M._initialWidth ?? Z, ge = typeof X == "string" ? parseInt(X, 10) : X || 0;
460
+ return P + ge;
461
461
  }, 0);
462
462
  c.forEach((P) => {
463
463
  if (P.freeze === "Right")
464
- P.width = X, P.minWidth = X, P.maxWidth = X;
464
+ P.width = Z, P.minWidth = Z, P.maxWidth = Z;
465
465
  else if (P.type === "checkbox")
466
- P.width = X, P.minWidth = X, P.maxWidth = X;
466
+ P.width = Z, P.minWidth = Z, P.maxWidth = Z;
467
467
  else if (a > g)
468
468
  P.width = "auto", P.minWidth = "150";
469
469
  else {
@@ -483,20 +483,20 @@ function an(n) {
483
483
  a._initialWidth === void 0 && (a._initialWidth = a.width);
484
484
  });
485
485
  };
486
- Te(() => {
486
+ be(() => {
487
487
  $t();
488
488
  const e = o.current;
489
489
  e && setTimeout(() => {
490
490
  const c = e.columns, a = e.element?.offsetWidth || 0, g = c.reduce((l, P) => {
491
491
  if (!P?.visible) return l;
492
- const M = P.width ?? P.width ?? X, J = typeof M == "string" ? parseInt(M, 10) : M || 0;
493
- return l + J;
492
+ const M = P.width ?? P.width ?? Z, X = typeof M == "string" ? parseInt(M, 10) : M || 0;
493
+ return l + X;
494
494
  }, 0);
495
495
  c.forEach((l) => {
496
496
  if (l.freeze === "Right")
497
- l.width = X, l.minWidth = X, l.maxWidth = X;
497
+ l.width = Z, l.minWidth = Z, l.maxWidth = Z;
498
498
  else if (l.type === "checkbox")
499
- l.width = X, l.minWidth = X, l.maxWidth = X;
499
+ l.width = Z, l.minWidth = Z, l.maxWidth = Z;
500
500
  else if (a > g)
501
501
  l.width = "auto", l.minWidth = "150";
502
502
  else {
@@ -505,7 +505,7 @@ function an(n) {
505
505
  }
506
506
  }), e.setProperties({ columns: c }, !0);
507
507
  }, 0);
508
- }, []), Te(() => {
508
+ }, []), be(() => {
509
509
  const e = o.current;
510
510
  e && (e.columnChooserOpen = () => {
511
511
  setTimeout(() => {
@@ -518,7 +518,7 @@ function an(n) {
518
518
  c && !c.getAttribute("aria-label") && c.setAttribute("aria-label", "Search columns");
519
519
  }, 0);
520
520
  }, []);
521
- const at = () => {
521
+ const st = () => {
522
522
  const e = o.current?.element;
523
523
  if (!e) return;
524
524
  const c = e.querySelector('th[data-action-column="true"]');
@@ -532,28 +532,28 @@ function an(n) {
532
532
  const a = e.querySelector(".e-headercell .e-checkbox-wrapper")?.closest("th");
533
533
  a && !a.getAttribute("aria-label") && a.setAttribute("aria-label", "Select rows");
534
534
  };
535
- return Te(() => {
536
- at();
535
+ return be(() => {
536
+ st();
537
537
  }, []), /* @__PURE__ */ j(
538
538
  "div",
539
539
  {
540
540
  className: "custom-grid-wrapper",
541
541
  onFocusCapture: S,
542
- role: oe || H ? "region" : void 0,
543
- "aria-label": H ? void 0 : oe,
544
- "aria-labelledby": H,
545
- "aria-describedby": ye,
546
- ...te,
547
- children: /* @__PURE__ */ ee(
548
- yr,
542
+ role: ae || U ? "region" : void 0,
543
+ "aria-label": U ? void 0 : ae,
544
+ "aria-labelledby": U,
545
+ "aria-describedby": ve,
546
+ ...re,
547
+ children: /* @__PURE__ */ te(
548
+ mr,
549
549
  {
550
550
  width: "100%",
551
551
  enableVirtualization: !1,
552
552
  id: f,
553
553
  ref: o,
554
- actionComplete: pe,
555
- dataBound: at,
556
- dataSource: He,
554
+ actionComplete: Ke,
555
+ dataBound: st,
556
+ dataSource: qe,
557
557
  height: B,
558
558
  allowPaging: W,
559
559
  allowSorting: h,
@@ -562,23 +562,23 @@ function an(n) {
562
562
  allowReordering: T,
563
563
  allowResizing: O,
564
564
  showColumnChooser: Y,
565
- selectionSettings: Se,
566
- pageSettings: se,
567
- sortSettings: Be,
568
- actionBegin: $e,
565
+ selectionSettings: at,
566
+ pageSettings: H,
567
+ sortSettings: ee,
568
+ actionBegin: Me,
569
569
  resizeStop: Ue,
570
- rowSelecting: ze,
571
- rowDeselecting: Ye,
572
- rowSelected: Ne,
570
+ rowSelecting: Fe,
571
+ rowDeselecting: Ve,
572
+ rowSelected: He,
573
573
  rowDeselected: je,
574
- recordDoubleClick: De,
575
- editSettings: Ve,
576
- cellSave: Dt,
574
+ recordDoubleClick: Le,
575
+ editSettings: Ne,
576
+ cellSave: pe,
577
577
  cssClass: "custom-grid-padding",
578
578
  ...E,
579
579
  children: [
580
- /* @__PURE__ */ j(vr, { children: _e() }),
581
- /* @__PURE__ */ j(gr, { services: ot })
580
+ /* @__PURE__ */ j(vr, { children: $e() }),
581
+ /* @__PURE__ */ j(gr, { services: Ce })
582
582
  ]
583
583
  }
584
584
  )
@@ -588,10 +588,10 @@ function an(n) {
588
588
  const Er = (n) => n.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Tr = (n) => n.replace(
589
589
  /^([A-Z])|[\s-_]+(\w)/g,
590
590
  (b, u, f) => f ? f.toUpperCase() : u.toLowerCase()
591
- ), yt = (n) => {
591
+ ), vt = (n) => {
592
592
  const b = Tr(n);
593
593
  return b.charAt(0).toUpperCase() + b.slice(1);
594
- }, Ot = (...n) => n.filter((b, u, f) => !!b && b.trim() !== "" && f.indexOf(b) === u).join(" ").trim(), xr = (n) => {
594
+ }, At = (...n) => n.filter((b, u, f) => !!b && b.trim() !== "" && f.indexOf(b) === u).join(" ").trim(), xr = (n) => {
595
595
  for (const b in n)
596
596
  if (b.startsWith("aria-") || b === "role" || b === "title")
597
597
  return !0;
@@ -607,7 +607,7 @@ var Rr = {
607
607
  strokeLinecap: "round",
608
608
  strokeLinejoin: "round"
609
609
  };
610
- const _r = kt(
610
+ const _r = Pt(
611
611
  ({
612
612
  color: n = "currentColor",
613
613
  size: b = 24,
@@ -617,7 +617,7 @@ const _r = kt(
617
617
  children: p,
618
618
  iconNode: W,
619
619
  ...h
620
- }, A) => nt(
620
+ }, A) => it(
621
621
  "svg",
622
622
  {
623
623
  ref: A,
@@ -626,30 +626,30 @@ const _r = kt(
626
626
  height: b,
627
627
  stroke: n,
628
628
  strokeWidth: f ? Number(u) * 24 / Number(b) : u,
629
- className: Ot("lucide", _),
629
+ className: At("lucide", _),
630
630
  ...!p && !xr(h) && { "aria-hidden": "true" },
631
631
  ...h
632
632
  },
633
633
  [
634
- ...W.map(([R, T]) => nt(R, T)),
634
+ ...W.map(([R, T]) => it(R, T)),
635
635
  ...Array.isArray(p) ? p : [p]
636
636
  ]
637
637
  )
638
638
  );
639
- const Pe = (n, b) => {
640
- const u = kt(
641
- ({ className: f, ..._ }, p) => nt(_r, {
639
+ const Oe = (n, b) => {
640
+ const u = Pt(
641
+ ({ className: f, ..._ }, p) => it(_r, {
642
642
  ref: p,
643
643
  iconNode: b,
644
- className: Ot(
645
- `lucide-${Er(yt(n))}`,
644
+ className: At(
645
+ `lucide-${Er(vt(n))}`,
646
646
  `lucide-${n}`,
647
647
  f
648
648
  ),
649
649
  ..._
650
650
  })
651
651
  );
652
- return u.displayName = yt(n), u;
652
+ return u.displayName = vt(n), u;
653
653
  };
654
654
  const kr = [
655
655
  ["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" }],
@@ -664,7 +664,7 @@ const kr = [
664
664
  ["path", { d: "m21.7 19.4-.9-.3", key: "1qgwi9" }],
665
665
  ["path", { d: "M9 3v18", key: "fh3hqa" }],
666
666
  ["circle", { cx: "18", cy: "18", r: "3", key: "1xkwt0" }]
667
- ], Pr = Pe("columns-3-cog", kr);
667
+ ], Pr = Oe("columns-3-cog", kr);
668
668
  const Or = [
669
669
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
670
670
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
@@ -672,19 +672,19 @@ const Or = [
672
672
  ["path", { d: "M14 13h2", key: "un5t4a" }],
673
673
  ["path", { d: "M8 17h2", key: "2yhykz" }],
674
674
  ["path", { d: "M14 17h2", key: "10kma7" }]
675
- ], Ar = Pe("file-spreadsheet", Or);
675
+ ], Ar = Oe("file-spreadsheet", Or);
676
676
  const Ir = [
677
677
  ["path", { d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z", key: "1rqfz7" }],
678
678
  ["path", { d: "M14 2v4a2 2 0 0 0 2 2h4", key: "tnqrlb" }],
679
679
  ["path", { d: "M10 9H8", key: "b1mrlr" }],
680
680
  ["path", { d: "M16 13H8", key: "t4e002" }],
681
681
  ["path", { d: "M16 17H8", key: "z1uh3a" }]
682
- ], Dr = Pe("file-text", Ir);
682
+ ], Dr = Oe("file-text", Ir);
683
683
  const Mr = [
684
684
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
685
685
  ["path", { d: "M7 12h10", key: "b7w52i" }],
686
686
  ["path", { d: "M10 18h4", key: "1ulq68" }]
687
- ], $r = Pe("list-filter", Mr);
687
+ ], $r = Oe("list-filter", Mr);
688
688
  const Nr = [
689
689
  [
690
690
  "path",
@@ -695,20 +695,20 @@ const Nr = [
695
695
  ],
696
696
  ["path", { d: "M6 9V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v6", key: "1itne7" }],
697
697
  ["rect", { x: "6", y: "14", width: "12", height: "8", rx: "1", key: "1ue0tg" }]
698
- ], Wr = Pe("printer", Nr);
698
+ ], Wr = Oe("printer", Nr);
699
699
  const jr = [
700
700
  ["path", { d: "M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8", key: "14sxne" }],
701
701
  ["path", { d: "M3 3v5h5", key: "1xhq8a" }],
702
702
  ["path", { d: "M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16", key: "1hlbsb" }],
703
703
  ["path", { d: "M16 16h5v5", key: "ccwih5" }]
704
- ], qr = Pe("refresh-ccw", jr);
704
+ ], qr = Oe("refresh-ccw", jr);
705
705
  const Fr = [
706
706
  ["path", { d: "M3 6h18", key: "d0wm0j" }],
707
707
  ["path", { d: "M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6", key: "4alrt4" }],
708
708
  ["path", { d: "M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2", key: "v07s0e" }],
709
709
  ["line", { x1: "10", x2: "10", y1: "11", y2: "17", key: "1uufr5" }],
710
710
  ["line", { x1: "14", x2: "14", y1: "11", y2: "17", key: "xtxkd" }]
711
- ], Lr = Pe("trash-2", Fr), sn = ({
711
+ ], Lr = Oe("trash-2", Fr), sn = ({
712
712
  heading: n = "Data Grid",
713
713
  subheading: b = "",
714
714
  totalCount: u = 0,
@@ -732,7 +732,7 @@ const Fr = [
732
732
  showAdd: B = !1,
733
733
  // Selection — parent is the source of truth
734
734
  iSelectedRecords: V = 0,
735
- selectedRecords: Z,
735
+ selectedRecords: Q,
736
736
  // NEW: actual row data from parent state
737
737
  // Additional props
738
738
  searchPlaceholder: $ = "Search...",
@@ -740,20 +740,20 @@ const Fr = [
740
740
  },
741
741
  handleSearchChange: s = () => {
742
742
  },
743
- handleDeleteClick: ie = () => {
743
+ handleDeleteClick: oe = () => {
744
744
  },
745
745
  // Optional: override export file names
746
746
  excelFileName: me,
747
- pdfFileName: oe,
748
- searchIconSize: H,
749
- searchIconClass: ye,
747
+ pdfFileName: ae,
748
+ searchIconSize: U,
749
+ searchIconClass: ve,
750
750
  inputStyle: ce,
751
751
  filterCount: de,
752
752
  actionButtons: le = [],
753
- tableId: U,
753
+ tableId: K,
754
754
  ...he
755
755
  }) => {
756
- const K = Pt(U), re = (i) => i.type === "custom" ? /* @__PURE__ */ j(Gt, { children: i.render?.() }, i.id) : i.type === "segmented" ? /* @__PURE__ */ j(
756
+ const G = Ot(K), ne = (i) => i.type === "custom" ? /* @__PURE__ */ j(Gt, { children: i.render?.() }, i.id) : i.type === "segmented" ? /* @__PURE__ */ j(
757
757
  tr,
758
758
  {
759
759
  value: i.value,
@@ -764,7 +764,7 @@ const Fr = [
764
764
  },
765
765
  i.id
766
766
  ) : i.type === "multioptions" ? /* @__PURE__ */ j(
767
- Ke,
767
+ Ge,
768
768
  {
769
769
  dropdown: !0,
770
770
  label: i.label,
@@ -779,7 +779,7 @@ const Fr = [
779
779
  },
780
780
  i.id
781
781
  ) : i.iconOnly && i.icon ? /* @__PURE__ */ j(
782
- xe,
782
+ Re,
783
783
  {
784
784
  icon: i.icon,
785
785
  onClick: i.onClick,
@@ -788,7 +788,7 @@ const Fr = [
788
788
  },
789
789
  i.id
790
790
  ) : /* @__PURE__ */ j(
791
- Ke,
791
+ Ge,
792
792
  {
793
793
  label: i.label,
794
794
  icon: i.icon || void 0,
@@ -798,7 +798,7 @@ const Fr = [
798
798
  size: "small"
799
799
  },
800
800
  i.id
801
- ), te = we(() => _?.current || f?.current, [_, f]), { searchTerm: ue, onSearchChange: t } = Qt(K, s), o = (n || "export").toString().trim() || "export", S = `${me || o}.xlsx`, d = `${oe || o}.pdf`, m = (i, k, r) => Math.max(k, Math.min(i, r)), w = ht.useRef(null), y = we(() => {
801
+ ), re = we(() => _?.current || f?.current, [_, f]), { searchTerm: ue, onSearchChange: t } = Qt(G, s), o = (n || "export").toString().trim() || "export", S = `${me || o}.xlsx`, d = `${ae || o}.pdf`, y = (i, k, r) => Math.max(k, Math.min(i, r)), w = yt.useRef(null), m = we(() => {
802
802
  w.current && (document.removeEventListener(
803
803
  "mousedown",
804
804
  w.current,
@@ -806,35 +806,35 @@ const Fr = [
806
806
  ), w.current = null);
807
807
  }, []), C = we(
808
808
  (i) => {
809
- y();
809
+ m();
810
810
  const k = (r) => {
811
811
  if (i && i.contains(r.target)) return;
812
812
  const N = document.querySelector(".e-ccdlg");
813
813
  if (!N) {
814
- y();
814
+ m();
815
815
  return;
816
816
  }
817
817
  if (!N.contains(r.target)) {
818
818
  try {
819
- const G = te(), ne = G?.gridInstance || G?.grid || null, fe = ne?.columnChooserModule?.hideDialog;
820
- typeof fe == "function" ? fe.call(ne.columnChooserModule) : N.querySelector(
819
+ const J = re(), ie = J?.gridInstance || J?.grid || null, fe = ie?.columnChooserModule?.hideDialog;
820
+ typeof fe == "function" ? fe.call(ie.columnChooserModule) : N.querySelector(
821
821
  ".e-footer-content .e-btn:not(.e-primary)"
822
822
  )?.click();
823
823
  } catch {
824
824
  }
825
- y();
825
+ m();
826
826
  }
827
827
  };
828
828
  w.current = k, setTimeout(() => {
829
829
  w.current === k && document.addEventListener("mousedown", k, !0);
830
830
  }, 0);
831
831
  },
832
- [y, te]
832
+ [m, re]
833
833
  );
834
- ht.useEffect(() => () => y(), [y]);
834
+ yt.useEffect(() => () => m(), [m]);
835
835
  const E = we(
836
836
  (i) => {
837
- const k = te();
837
+ const k = re();
838
838
  if (!k?.openColumnChooser) return;
839
839
  const r = i?.currentTarget || null;
840
840
  if (typeof window > "u" || !i?.currentTarget) {
@@ -842,23 +842,23 @@ const Fr = [
842
842
  return;
843
843
  }
844
844
  try {
845
- const N = i.currentTarget.getBoundingClientRect(), G = N.left + window.scrollX, ne = N.bottom + window.scrollY;
846
- let fe = G - 120, ae = ne - 120;
847
- const Oe = window.innerWidth, Ae = window.innerHeight;
848
- fe = m(fe, window.scrollX + 8, window.scrollX + Oe - 340), ae = m(ae, window.scrollY, window.scrollY + Ae - 120), k.openColumnChooser(fe, ae), C(r);
845
+ const N = i.currentTarget.getBoundingClientRect(), J = N.left + window.scrollX, ie = N.bottom + window.scrollY;
846
+ let fe = J - 120, se = ie - 120;
847
+ const Ae = window.innerWidth, Ie = window.innerHeight;
848
+ fe = y(fe, window.scrollX + 8, window.scrollX + Ae - 340), se = y(se, window.scrollY, window.scrollY + Ie - 120), k.openColumnChooser(fe, se), C(r);
849
849
  } catch {
850
850
  }
851
851
  },
852
- [te, C]
852
+ [re, C]
853
853
  ), x = we(
854
854
  (i, k) => {
855
- const r = te();
855
+ const r = re();
856
856
  if (r)
857
857
  switch (i) {
858
858
  case "Delete": {
859
859
  if (R) {
860
- const N = Z ?? r.getSelectedRecords();
861
- return ie(N);
860
+ const N = Q ?? r.getSelectedRecords();
861
+ return oe(N);
862
862
  }
863
863
  break;
864
864
  }
@@ -886,40 +886,40 @@ const Fr = [
886
886
  Y,
887
887
  D,
888
888
  R,
889
- Z,
889
+ Q,
890
890
  S,
891
891
  d,
892
892
  z,
893
- ie,
893
+ oe,
894
894
  E,
895
- te
895
+ re
896
896
  ]
897
897
  );
898
- return /* @__PURE__ */ ee("div", { className: "flex items-center flex-wrap justify-between w-full px-4 py-2 bg-white border border-gray-200 rounded-t-2xl mb-0", ...he, children: [
899
- /* @__PURE__ */ ee("div", { className: "flex flex-col", children: [
900
- /* @__PURE__ */ ee("div", { className: "text-lg font-semibold text-gray-800", children: [
898
+ return /* @__PURE__ */ te("div", { className: "flex items-center flex-wrap justify-between w-full px-4 py-2 bg-white border border-gray-200 rounded-t-2xl mb-0", ...he, children: [
899
+ /* @__PURE__ */ te("div", { className: "flex flex-col", children: [
900
+ /* @__PURE__ */ te("div", { className: "text-lg font-semibold text-gray-800", children: [
901
901
  n,
902
902
  " ",
903
903
  typeof u == "number" ? `(${u})` : null
904
904
  ] }),
905
905
  b ? /* @__PURE__ */ j("div", { className: "text-sm text-gray-500", children: b }) : null
906
906
  ] }),
907
- /* @__PURE__ */ ee("div", { className: "flex items-center gap-3", children: [
907
+ /* @__PURE__ */ te("div", { className: "flex items-center gap-3", children: [
908
908
  A && /* @__PURE__ */ j("div", { className: "relative", children: /* @__PURE__ */ j(
909
909
  er,
910
910
  {
911
911
  placeholder: $,
912
912
  value: ue,
913
913
  onDebouncedChange: t,
914
- searchIconSize: H || 16,
915
- searchIconClass: ye || "",
914
+ searchIconSize: U || 16,
915
+ searchIconClass: ve || "",
916
916
  inputStyle: ce || { paddingTop: "4px", paddingBottom: "4px" }
917
917
  }
918
918
  ) }),
919
- /* @__PURE__ */ ee("div", { className: "flex gap-3", children: [
920
- /* @__PURE__ */ ee("div", { className: "flex items-center gap-1.5", children: [
919
+ /* @__PURE__ */ te("div", { className: "flex gap-3", children: [
920
+ /* @__PURE__ */ te("div", { className: "flex items-center gap-1.5", children: [
921
921
  R && /* @__PURE__ */ j(
922
- xe,
922
+ Re,
923
923
  {
924
924
  icon: Lr,
925
925
  "aria-label": "Delete selected",
@@ -931,7 +931,7 @@ const Fr = [
931
931
  }
932
932
  ),
933
933
  T && /* @__PURE__ */ j(
934
- xe,
934
+ Re,
935
935
  {
936
936
  icon: Pr,
937
937
  "aria-label": "Choose columns",
@@ -939,7 +939,7 @@ const Fr = [
939
939
  }
940
940
  ),
941
941
  O && /* @__PURE__ */ j(
942
- xe,
942
+ Re,
943
943
  {
944
944
  icon: $r,
945
945
  "aria-label": "Open filters",
@@ -948,7 +948,7 @@ const Fr = [
948
948
  }
949
949
  ),
950
950
  I && /* @__PURE__ */ j(
951
- xe,
951
+ Re,
952
952
  {
953
953
  icon: Wr,
954
954
  "aria-label": "Print",
@@ -956,7 +956,7 @@ const Fr = [
956
956
  }
957
957
  ),
958
958
  L && /* @__PURE__ */ j(
959
- xe,
959
+ Re,
960
960
  {
961
961
  icon: Ar,
962
962
  "aria-label": "Export to Excel",
@@ -964,7 +964,7 @@ const Fr = [
964
964
  }
965
965
  ),
966
966
  Y && /* @__PURE__ */ j(
967
- xe,
967
+ Re,
968
968
  {
969
969
  icon: Dr,
970
970
  "aria-label": "Export to PDF",
@@ -972,7 +972,7 @@ const Fr = [
972
972
  }
973
973
  ),
974
974
  D && /* @__PURE__ */ j(
975
- xe,
975
+ Re,
976
976
  {
977
977
  icon: qr,
978
978
  "aria-label": "Refresh",
@@ -980,9 +980,9 @@ const Fr = [
980
980
  }
981
981
  )
982
982
  ] }),
983
- le.length > 0 && le.map(re),
983
+ le.length > 0 && le.map(ne),
984
984
  B && p && /* @__PURE__ */ j(
985
- Ke,
985
+ Ge,
986
986
  {
987
987
  label: h,
988
988
  onClick: p,
@@ -997,16 +997,16 @@ const Fr = [
997
997
  function zr(n) {
998
998
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
999
999
  }
1000
- var qe = { exports: {} }, Fe = { exports: {} }, q = {};
1001
- var vt;
1000
+ var ze = { exports: {} }, Ye = { exports: {} }, q = {};
1001
+ var gt;
1002
1002
  function Yr() {
1003
- if (vt) return q;
1004
- vt = 1;
1005
- var n = typeof Symbol == "function" && Symbol.for, b = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, u = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, f = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, _ = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, p = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, W = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, h = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, A = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, R = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, T = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, O = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, I = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, L = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Y = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, D = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, B = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, V = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, Z = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1003
+ if (gt) return q;
1004
+ gt = 1;
1005
+ var n = typeof Symbol == "function" && Symbol.for, b = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, u = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, f = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, _ = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, p = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, W = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, h = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, A = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, R = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, T = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, O = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, I = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, L = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Y = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, D = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, B = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, V = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, Q = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1006
1006
  function $(s) {
1007
1007
  if (typeof s == "object" && s !== null) {
1008
- var ie = s.$$typeof;
1009
- switch (ie) {
1008
+ var oe = s.$$typeof;
1009
+ switch (oe) {
1010
1010
  case b:
1011
1011
  switch (s = s.type, s) {
1012
1012
  case A:
@@ -1025,11 +1025,11 @@ function Yr() {
1025
1025
  case W:
1026
1026
  return s;
1027
1027
  default:
1028
- return ie;
1028
+ return oe;
1029
1029
  }
1030
1030
  }
1031
1031
  case u:
1032
- return ie;
1032
+ return oe;
1033
1033
  }
1034
1034
  }
1035
1035
  }
@@ -1061,41 +1061,41 @@ function Yr() {
1061
1061
  }, q.isSuspense = function(s) {
1062
1062
  return $(s) === O;
1063
1063
  }, q.isValidElementType = function(s) {
1064
- return typeof s == "string" || typeof s == "function" || s === f || s === R || s === p || s === _ || s === O || s === I || typeof s == "object" && s !== null && (s.$$typeof === Y || s.$$typeof === L || s.$$typeof === W || s.$$typeof === h || s.$$typeof === T || s.$$typeof === B || s.$$typeof === V || s.$$typeof === Z || s.$$typeof === D);
1064
+ return typeof s == "string" || typeof s == "function" || s === f || s === R || s === p || s === _ || s === O || s === I || typeof s == "object" && s !== null && (s.$$typeof === Y || s.$$typeof === L || s.$$typeof === W || s.$$typeof === h || s.$$typeof === T || s.$$typeof === B || s.$$typeof === V || s.$$typeof === Q || s.$$typeof === D);
1065
1065
  }, q.typeOf = $, q;
1066
1066
  }
1067
1067
  var F = {};
1068
- var gt;
1068
+ var bt;
1069
1069
  function Br() {
1070
- return gt || (gt = 1, process.env.NODE_ENV !== "production" && (function() {
1071
- var n = typeof Symbol == "function" && Symbol.for, b = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, u = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, f = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, _ = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, p = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, W = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, h = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, A = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, R = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, T = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, O = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, I = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, L = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Y = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, D = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, B = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, V = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, Z = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1070
+ return bt || (bt = 1, process.env.NODE_ENV !== "production" && (function() {
1071
+ var n = typeof Symbol == "function" && Symbol.for, b = n ? /* @__PURE__ */ Symbol.for("react.element") : 60103, u = n ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, f = n ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, _ = n ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, p = n ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, W = n ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, h = n ? /* @__PURE__ */ Symbol.for("react.context") : 60110, A = n ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, R = n ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, T = n ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, O = n ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, I = n ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, L = n ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, Y = n ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, D = n ? /* @__PURE__ */ Symbol.for("react.block") : 60121, B = n ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, V = n ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, Q = n ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
1072
1072
  function $(r) {
1073
1073
  return typeof r == "string" || typeof r == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1074
- r === f || r === R || r === p || r === _ || r === O || r === I || typeof r == "object" && r !== null && (r.$$typeof === Y || r.$$typeof === L || r.$$typeof === W || r.$$typeof === h || r.$$typeof === T || r.$$typeof === B || r.$$typeof === V || r.$$typeof === Z || r.$$typeof === D);
1074
+ r === f || r === R || r === p || r === _ || r === O || r === I || typeof r == "object" && r !== null && (r.$$typeof === Y || r.$$typeof === L || r.$$typeof === W || r.$$typeof === h || r.$$typeof === T || r.$$typeof === B || r.$$typeof === V || r.$$typeof === Q || r.$$typeof === D);
1075
1075
  }
1076
1076
  function z(r) {
1077
1077
  if (typeof r == "object" && r !== null) {
1078
1078
  var N = r.$$typeof;
1079
1079
  switch (N) {
1080
1080
  case b:
1081
- var G = r.type;
1082
- switch (G) {
1081
+ var J = r.type;
1082
+ switch (J) {
1083
1083
  case A:
1084
1084
  case R:
1085
1085
  case f:
1086
1086
  case p:
1087
1087
  case _:
1088
1088
  case O:
1089
- return G;
1089
+ return J;
1090
1090
  default:
1091
- var ne = G && G.$$typeof;
1092
- switch (ne) {
1091
+ var ie = J && J.$$typeof;
1092
+ switch (ie) {
1093
1093
  case h:
1094
1094
  case T:
1095
1095
  case Y:
1096
1096
  case L:
1097
1097
  case W:
1098
- return ne;
1098
+ return ie;
1099
1099
  default:
1100
1100
  return N;
1101
1101
  }
@@ -1105,9 +1105,9 @@ function Br() {
1105
1105
  }
1106
1106
  }
1107
1107
  }
1108
- var s = A, ie = R, me = h, oe = W, H = b, ye = T, ce = f, de = Y, le = L, U = u, he = p, K = _, re = O, te = !1;
1108
+ var s = A, oe = R, me = h, ae = W, U = b, ve = T, ce = f, de = Y, le = L, K = u, he = p, G = _, ne = O, re = !1;
1109
1109
  function ue(r) {
1110
- return te || (te = !0), t(r) || z(r) === A;
1110
+ return re || (re = !0), t(r) || z(r) === A;
1111
1111
  }
1112
1112
  function t(r) {
1113
1113
  return z(r) === R;
@@ -1121,13 +1121,13 @@ function Br() {
1121
1121
  function d(r) {
1122
1122
  return typeof r == "object" && r !== null && r.$$typeof === b;
1123
1123
  }
1124
- function m(r) {
1124
+ function y(r) {
1125
1125
  return z(r) === T;
1126
1126
  }
1127
1127
  function w(r) {
1128
1128
  return z(r) === f;
1129
1129
  }
1130
- function y(r) {
1130
+ function m(r) {
1131
1131
  return z(r) === Y;
1132
1132
  }
1133
1133
  function C(r) {
@@ -1145,17 +1145,17 @@ function Br() {
1145
1145
  function k(r) {
1146
1146
  return z(r) === O;
1147
1147
  }
1148
- F.AsyncMode = s, F.ConcurrentMode = ie, F.ContextConsumer = me, F.ContextProvider = oe, F.Element = H, F.ForwardRef = ye, F.Fragment = ce, F.Lazy = de, F.Memo = le, F.Portal = U, F.Profiler = he, F.StrictMode = K, F.Suspense = re, F.isAsyncMode = ue, F.isConcurrentMode = t, F.isContextConsumer = o, F.isContextProvider = S, F.isElement = d, F.isForwardRef = m, F.isFragment = w, F.isLazy = y, F.isMemo = C, F.isPortal = E, F.isProfiler = x, F.isStrictMode = i, F.isSuspense = k, F.isValidElementType = $, F.typeOf = z;
1148
+ F.AsyncMode = s, F.ConcurrentMode = oe, F.ContextConsumer = me, F.ContextProvider = ae, F.Element = U, F.ForwardRef = ve, F.Fragment = ce, F.Lazy = de, F.Memo = le, F.Portal = K, F.Profiler = he, F.StrictMode = G, F.Suspense = ne, F.isAsyncMode = ue, F.isConcurrentMode = t, F.isContextConsumer = o, F.isContextProvider = S, F.isElement = d, F.isForwardRef = y, F.isFragment = w, F.isLazy = m, F.isMemo = C, F.isPortal = E, F.isProfiler = x, F.isStrictMode = i, F.isSuspense = k, F.isValidElementType = $, F.typeOf = z;
1149
1149
  })()), F;
1150
1150
  }
1151
- var bt;
1152
- function At() {
1153
- return bt || (bt = 1, process.env.NODE_ENV === "production" ? Fe.exports = Yr() : Fe.exports = Br()), Fe.exports;
1151
+ var wt;
1152
+ function It() {
1153
+ return wt || (wt = 1, process.env.NODE_ENV === "production" ? Ye.exports = Yr() : Ye.exports = Br()), Ye.exports;
1154
1154
  }
1155
- var Xe, wt;
1155
+ var Ze, St;
1156
1156
  function Vr() {
1157
- if (wt) return Xe;
1158
- wt = 1;
1157
+ if (St) return Ze;
1158
+ St = 1;
1159
1159
  var n = Object.getOwnPropertySymbols, b = Object.prototype.hasOwnProperty, u = Object.prototype.propertyIsEnumerable;
1160
1160
  function f(p) {
1161
1161
  if (p == null)
@@ -1184,7 +1184,7 @@ function Vr() {
1184
1184
  return !1;
1185
1185
  }
1186
1186
  }
1187
- return Xe = _() ? Object.assign : function(p, W) {
1187
+ return Ze = _() ? Object.assign : function(p, W) {
1188
1188
  for (var h, A = f(p), R, T = 1; T < arguments.length; T++) {
1189
1189
  h = Object(arguments[T]);
1190
1190
  for (var O in h)
@@ -1196,27 +1196,27 @@ function Vr() {
1196
1196
  }
1197
1197
  }
1198
1198
  return A;
1199
- }, Xe;
1200
- }
1201
- var Ze, St;
1202
- function it() {
1203
- if (St) return Ze;
1204
- St = 1;
1205
- var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1206
- return Ze = n, Ze;
1199
+ }, Ze;
1207
1200
  }
1208
1201
  var Qe, Ct;
1209
- function It() {
1210
- return Ct || (Ct = 1, Qe = Function.call.bind(Object.prototype.hasOwnProperty)), Qe;
1202
+ function ot() {
1203
+ if (Ct) return Qe;
1204
+ Ct = 1;
1205
+ var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1206
+ return Qe = n, Qe;
1211
1207
  }
1212
1208
  var et, Et;
1209
+ function Dt() {
1210
+ return Et || (Et = 1, et = Function.call.bind(Object.prototype.hasOwnProperty)), et;
1211
+ }
1212
+ var tt, Tt;
1213
1213
  function Hr() {
1214
- if (Et) return et;
1215
- Et = 1;
1214
+ if (Tt) return tt;
1215
+ Tt = 1;
1216
1216
  var n = function() {
1217
1217
  };
1218
1218
  if (process.env.NODE_ENV !== "production") {
1219
- var b = /* @__PURE__ */ it(), u = {}, f = /* @__PURE__ */ It();
1219
+ var b = /* @__PURE__ */ ot(), u = {}, f = /* @__PURE__ */ Dt();
1220
1220
  n = function(p) {
1221
1221
  var W = "Warning: " + p;
1222
1222
  try {
@@ -1255,13 +1255,13 @@ function Hr() {
1255
1255
  }
1256
1256
  return _.resetWarningCache = function() {
1257
1257
  process.env.NODE_ENV !== "production" && (u = {});
1258
- }, et = _, et;
1258
+ }, tt = _, tt;
1259
1259
  }
1260
- var tt, Tt;
1260
+ var rt, xt;
1261
1261
  function Ur() {
1262
- if (Tt) return tt;
1263
- Tt = 1;
1264
- var n = At(), b = Vr(), u = /* @__PURE__ */ it(), f = /* @__PURE__ */ It(), _ = /* @__PURE__ */ Hr(), p = function() {
1262
+ if (xt) return rt;
1263
+ xt = 1;
1264
+ var n = It(), b = Vr(), u = /* @__PURE__ */ ot(), f = /* @__PURE__ */ Dt(), _ = /* @__PURE__ */ Hr(), p = function() {
1265
1265
  };
1266
1266
  process.env.NODE_ENV !== "production" && (p = function(h) {
1267
1267
  var A = "Warning: " + h;
@@ -1273,7 +1273,7 @@ function Ur() {
1273
1273
  function W() {
1274
1274
  return null;
1275
1275
  }
1276
- return tt = function(h, A) {
1276
+ return rt = function(h, A) {
1277
1277
  var R = typeof Symbol == "function" && Symbol.iterator, T = "@@iterator";
1278
1278
  function O(t) {
1279
1279
  var o = t && (R && t[R] || t[T]);
@@ -1289,15 +1289,15 @@ function Ur() {
1289
1289
  object: V("object"),
1290
1290
  string: V("string"),
1291
1291
  symbol: V("symbol"),
1292
- any: Z(),
1292
+ any: Q(),
1293
1293
  arrayOf: $,
1294
1294
  element: z(),
1295
1295
  elementType: s(),
1296
- instanceOf: ie,
1297
- node: ye(),
1298
- objectOf: oe,
1296
+ instanceOf: oe,
1297
+ node: ve(),
1298
+ objectOf: ae,
1299
1299
  oneOf: me,
1300
- oneOfType: H,
1300
+ oneOfType: U,
1301
1301
  shape: de,
1302
1302
  exact: le
1303
1303
  };
@@ -1311,7 +1311,7 @@ function Ur() {
1311
1311
  function B(t) {
1312
1312
  if (process.env.NODE_ENV !== "production")
1313
1313
  var o = {}, S = 0;
1314
- function d(w, y, C, E, x, i, k) {
1314
+ function d(w, m, C, E, x, i, k) {
1315
1315
  if (E = E || I, i = i || C, k !== u) {
1316
1316
  if (A) {
1317
1317
  var r = new Error(
@@ -1326,18 +1326,18 @@ function Ur() {
1326
1326
  ), o[N] = !0, S++);
1327
1327
  }
1328
1328
  }
1329
- return y[C] == null ? w ? y[C] === null ? new D("The " + x + " `" + i + "` is marked as required " + ("in `" + E + "`, but its value is `null`.")) : new D("The " + x + " `" + i + "` is marked as required in " + ("`" + E + "`, but its value is `undefined`.")) : null : t(y, C, E, x, i);
1329
+ return m[C] == null ? w ? m[C] === null ? new D("The " + x + " `" + i + "` is marked as required " + ("in `" + E + "`, but its value is `null`.")) : new D("The " + x + " `" + i + "` is marked as required in " + ("`" + E + "`, but its value is `undefined`.")) : null : t(m, C, E, x, i);
1330
1330
  }
1331
- var m = d.bind(null, !1);
1332
- return m.isRequired = d.bind(null, !0), m;
1331
+ var y = d.bind(null, !1);
1332
+ return y.isRequired = d.bind(null, !0), y;
1333
1333
  }
1334
1334
  function V(t) {
1335
- function o(S, d, m, w, y, C) {
1336
- var E = S[d], x = K(E);
1335
+ function o(S, d, y, w, m, C) {
1336
+ var E = S[d], x = G(E);
1337
1337
  if (x !== t) {
1338
- var i = re(E);
1338
+ var i = ne(E);
1339
1339
  return new D(
1340
- "Invalid " + w + " `" + y + "` of type " + ("`" + i + "` supplied to `" + m + "`, expected ") + ("`" + t + "`."),
1340
+ "Invalid " + w + " `" + m + "` of type " + ("`" + i + "` supplied to `" + y + "`, expected ") + ("`" + t + "`."),
1341
1341
  { expectedType: t }
1342
1342
  );
1343
1343
  }
@@ -1345,20 +1345,20 @@ function Ur() {
1345
1345
  }
1346
1346
  return B(o);
1347
1347
  }
1348
- function Z() {
1348
+ function Q() {
1349
1349
  return B(W);
1350
1350
  }
1351
1351
  function $(t) {
1352
- function o(S, d, m, w, y) {
1352
+ function o(S, d, y, w, m) {
1353
1353
  if (typeof t != "function")
1354
- return new D("Property `" + y + "` of component `" + m + "` has invalid PropType notation inside arrayOf.");
1354
+ return new D("Property `" + m + "` of component `" + y + "` has invalid PropType notation inside arrayOf.");
1355
1355
  var C = S[d];
1356
1356
  if (!Array.isArray(C)) {
1357
- var E = K(C);
1358
- return new D("Invalid " + w + " `" + y + "` of type " + ("`" + E + "` supplied to `" + m + "`, expected an array."));
1357
+ var E = G(C);
1358
+ return new D("Invalid " + w + " `" + m + "` of type " + ("`" + E + "` supplied to `" + y + "`, expected an array."));
1359
1359
  }
1360
1360
  for (var x = 0; x < C.length; x++) {
1361
- var i = t(C, x, m, w, y + "[" + x + "]", u);
1361
+ var i = t(C, x, y, w, m + "[" + x + "]", u);
1362
1362
  if (i instanceof Error)
1363
1363
  return i;
1364
1364
  }
@@ -1367,32 +1367,32 @@ function Ur() {
1367
1367
  return B(o);
1368
1368
  }
1369
1369
  function z() {
1370
- function t(o, S, d, m, w) {
1371
- var y = o[S];
1372
- if (!h(y)) {
1373
- var C = K(y);
1374
- return new D("Invalid " + m + " `" + w + "` of type " + ("`" + C + "` supplied to `" + d + "`, expected a single ReactElement."));
1370
+ function t(o, S, d, y, w) {
1371
+ var m = o[S];
1372
+ if (!h(m)) {
1373
+ var C = G(m);
1374
+ return new D("Invalid " + y + " `" + w + "` of type " + ("`" + C + "` supplied to `" + d + "`, expected a single ReactElement."));
1375
1375
  }
1376
1376
  return null;
1377
1377
  }
1378
1378
  return B(t);
1379
1379
  }
1380
1380
  function s() {
1381
- function t(o, S, d, m, w) {
1382
- var y = o[S];
1383
- if (!n.isValidElementType(y)) {
1384
- var C = K(y);
1385
- return new D("Invalid " + m + " `" + w + "` of type " + ("`" + C + "` supplied to `" + d + "`, expected a single ReactElement type."));
1381
+ function t(o, S, d, y, w) {
1382
+ var m = o[S];
1383
+ if (!n.isValidElementType(m)) {
1384
+ var C = G(m);
1385
+ return new D("Invalid " + y + " `" + w + "` of type " + ("`" + C + "` supplied to `" + d + "`, expected a single ReactElement type."));
1386
1386
  }
1387
1387
  return null;
1388
1388
  }
1389
1389
  return B(t);
1390
1390
  }
1391
- function ie(t) {
1392
- function o(S, d, m, w, y) {
1391
+ function oe(t) {
1392
+ function o(S, d, y, w, m) {
1393
1393
  if (!(S[d] instanceof t)) {
1394
1394
  var C = t.name || I, E = ue(S[d]);
1395
- return new D("Invalid " + w + " `" + y + "` of type " + ("`" + E + "` supplied to `" + m + "`, expected ") + ("instance of `" + C + "`."));
1395
+ return new D("Invalid " + w + " `" + m + "` of type " + ("`" + E + "` supplied to `" + y + "`, expected ") + ("instance of `" + C + "`."));
1396
1396
  }
1397
1397
  return null;
1398
1398
  }
@@ -1403,28 +1403,28 @@ function Ur() {
1403
1403
  return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? p(
1404
1404
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
1405
1405
  ) : p("Invalid argument supplied to oneOf, expected an array.")), W;
1406
- function o(S, d, m, w, y) {
1406
+ function o(S, d, y, w, m) {
1407
1407
  for (var C = S[d], E = 0; E < t.length; E++)
1408
1408
  if (Y(C, t[E]))
1409
1409
  return null;
1410
1410
  var x = JSON.stringify(t, function(k, r) {
1411
- var N = re(r);
1411
+ var N = ne(r);
1412
1412
  return N === "symbol" ? String(r) : r;
1413
1413
  });
1414
- return new D("Invalid " + w + " `" + y + "` of value `" + String(C) + "` " + ("supplied to `" + m + "`, expected one of " + x + "."));
1414
+ return new D("Invalid " + w + " `" + m + "` of value `" + String(C) + "` " + ("supplied to `" + y + "`, expected one of " + x + "."));
1415
1415
  }
1416
1416
  return B(o);
1417
1417
  }
1418
- function oe(t) {
1419
- function o(S, d, m, w, y) {
1418
+ function ae(t) {
1419
+ function o(S, d, y, w, m) {
1420
1420
  if (typeof t != "function")
1421
- return new D("Property `" + y + "` of component `" + m + "` has invalid PropType notation inside objectOf.");
1422
- var C = S[d], E = K(C);
1421
+ return new D("Property `" + m + "` of component `" + y + "` has invalid PropType notation inside objectOf.");
1422
+ var C = S[d], E = G(C);
1423
1423
  if (E !== "object")
1424
- return new D("Invalid " + w + " `" + y + "` of type " + ("`" + E + "` supplied to `" + m + "`, expected an object."));
1424
+ return new D("Invalid " + w + " `" + m + "` of type " + ("`" + E + "` supplied to `" + y + "`, expected an object."));
1425
1425
  for (var x in C)
1426
1426
  if (f(C, x)) {
1427
- var i = t(C, x, m, w, y + "." + x, u);
1427
+ var i = t(C, x, y, w, m + "." + x, u);
1428
1428
  if (i instanceof Error)
1429
1429
  return i;
1430
1430
  }
@@ -1432,49 +1432,49 @@ function Ur() {
1432
1432
  }
1433
1433
  return B(o);
1434
1434
  }
1435
- function H(t) {
1435
+ function U(t) {
1436
1436
  if (!Array.isArray(t))
1437
1437
  return process.env.NODE_ENV !== "production" && p("Invalid argument supplied to oneOfType, expected an instance of array."), W;
1438
1438
  for (var o = 0; o < t.length; o++) {
1439
1439
  var S = t[o];
1440
1440
  if (typeof S != "function")
1441
1441
  return p(
1442
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(S) + " at index " + o + "."
1442
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + re(S) + " at index " + o + "."
1443
1443
  ), W;
1444
1444
  }
1445
- function d(m, w, y, C, E) {
1445
+ function d(y, w, m, C, E) {
1446
1446
  for (var x = [], i = 0; i < t.length; i++) {
1447
- var k = t[i], r = k(m, w, y, C, E, u);
1447
+ var k = t[i], r = k(y, w, m, C, E, u);
1448
1448
  if (r == null)
1449
1449
  return null;
1450
1450
  r.data && f(r.data, "expectedType") && x.push(r.data.expectedType);
1451
1451
  }
1452
1452
  var N = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : "";
1453
- return new D("Invalid " + C + " `" + E + "` supplied to " + ("`" + y + "`" + N + "."));
1453
+ return new D("Invalid " + C + " `" + E + "` supplied to " + ("`" + m + "`" + N + "."));
1454
1454
  }
1455
1455
  return B(d);
1456
1456
  }
1457
- function ye() {
1458
- function t(o, S, d, m, w) {
1459
- return U(o[S]) ? null : new D("Invalid " + m + " `" + w + "` supplied to " + ("`" + d + "`, expected a ReactNode."));
1457
+ function ve() {
1458
+ function t(o, S, d, y, w) {
1459
+ return K(o[S]) ? null : new D("Invalid " + y + " `" + w + "` supplied to " + ("`" + d + "`, expected a ReactNode."));
1460
1460
  }
1461
1461
  return B(t);
1462
1462
  }
1463
- function ce(t, o, S, d, m) {
1463
+ function ce(t, o, S, d, y) {
1464
1464
  return new D(
1465
- (t || "React class") + ": " + o + " type `" + S + "." + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + m + "`."
1465
+ (t || "React class") + ": " + o + " type `" + S + "." + d + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + y + "`."
1466
1466
  );
1467
1467
  }
1468
1468
  function de(t) {
1469
- function o(S, d, m, w, y) {
1470
- var C = S[d], E = K(C);
1469
+ function o(S, d, y, w, m) {
1470
+ var C = S[d], E = G(C);
1471
1471
  if (E !== "object")
1472
- return new D("Invalid " + w + " `" + y + "` of type `" + E + "` " + ("supplied to `" + m + "`, expected `object`."));
1472
+ return new D("Invalid " + w + " `" + m + "` of type `" + E + "` " + ("supplied to `" + y + "`, expected `object`."));
1473
1473
  for (var x in t) {
1474
1474
  var i = t[x];
1475
1475
  if (typeof i != "function")
1476
- return ce(m, w, y, x, re(i));
1477
- var k = i(C, x, m, w, y + "." + x, u);
1476
+ return ce(y, w, m, x, ne(i));
1477
+ var k = i(C, x, y, w, m + "." + x, u);
1478
1478
  if (k)
1479
1479
  return k;
1480
1480
  }
@@ -1483,21 +1483,21 @@ function Ur() {
1483
1483
  return B(o);
1484
1484
  }
1485
1485
  function le(t) {
1486
- function o(S, d, m, w, y) {
1487
- var C = S[d], E = K(C);
1486
+ function o(S, d, y, w, m) {
1487
+ var C = S[d], E = G(C);
1488
1488
  if (E !== "object")
1489
- return new D("Invalid " + w + " `" + y + "` of type `" + E + "` " + ("supplied to `" + m + "`, expected `object`."));
1489
+ return new D("Invalid " + w + " `" + m + "` of type `" + E + "` " + ("supplied to `" + y + "`, expected `object`."));
1490
1490
  var x = b({}, S[d], t);
1491
1491
  for (var i in x) {
1492
1492
  var k = t[i];
1493
1493
  if (f(t, i) && typeof k != "function")
1494
- return ce(m, w, y, i, re(k));
1494
+ return ce(y, w, m, i, ne(k));
1495
1495
  if (!k)
1496
1496
  return new D(
1497
- "Invalid " + w + " `" + y + "` key `" + i + "` supplied to `" + m + "`.\nBad object: " + JSON.stringify(S[d], null, " ") + `
1497
+ "Invalid " + w + " `" + m + "` key `" + i + "` supplied to `" + y + "`.\nBad object: " + JSON.stringify(S[d], null, " ") + `
1498
1498
  Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
1499
1499
  );
1500
- var r = k(C, i, m, w, y + "." + i, u);
1500
+ var r = k(C, i, y, w, m + "." + i, u);
1501
1501
  if (r)
1502
1502
  return r;
1503
1503
  }
@@ -1505,7 +1505,7 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
1505
1505
  }
1506
1506
  return B(o);
1507
1507
  }
1508
- function U(t) {
1508
+ function K(t) {
1509
1509
  switch (typeof t) {
1510
1510
  case "number":
1511
1511
  case "string":
@@ -1515,7 +1515,7 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
1515
1515
  return !t;
1516
1516
  case "object":
1517
1517
  if (Array.isArray(t))
1518
- return t.every(U);
1518
+ return t.every(K);
1519
1519
  if (t === null || h(t))
1520
1520
  return !0;
1521
1521
  var o = O(t);
@@ -1523,12 +1523,12 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
1523
1523
  var S = o.call(t), d;
1524
1524
  if (o !== t.entries) {
1525
1525
  for (; !(d = S.next()).done; )
1526
- if (!U(d.value))
1526
+ if (!K(d.value))
1527
1527
  return !1;
1528
1528
  } else
1529
1529
  for (; !(d = S.next()).done; ) {
1530
- var m = d.value;
1531
- if (m && !U(m[1]))
1530
+ var y = d.value;
1531
+ if (y && !K(y[1]))
1532
1532
  return !1;
1533
1533
  }
1534
1534
  } else
@@ -1541,14 +1541,14 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
1541
1541
  function he(t, o) {
1542
1542
  return t === "symbol" ? !0 : o ? o["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && o instanceof Symbol : !1;
1543
1543
  }
1544
- function K(t) {
1544
+ function G(t) {
1545
1545
  var o = typeof t;
1546
1546
  return Array.isArray(t) ? "array" : t instanceof RegExp ? "object" : he(o, t) ? "symbol" : o;
1547
1547
  }
1548
- function re(t) {
1548
+ function ne(t) {
1549
1549
  if (typeof t > "u" || t === null)
1550
1550
  return "" + t;
1551
- var o = K(t);
1551
+ var o = G(t);
1552
1552
  if (o === "object") {
1553
1553
  if (t instanceof Date)
1554
1554
  return "date";
@@ -1557,8 +1557,8 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
1557
1557
  }
1558
1558
  return o;
1559
1559
  }
1560
- function te(t) {
1561
- var o = re(t);
1560
+ function re(t) {
1561
+ var o = ne(t);
1562
1562
  switch (o) {
1563
1563
  case "array":
1564
1564
  case "object":
@@ -1575,18 +1575,18 @@ Valid keys: ` + JSON.stringify(Object.keys(t), null, " ")
1575
1575
  return !t.constructor || !t.constructor.name ? I : t.constructor.name;
1576
1576
  }
1577
1577
  return L.checkPropTypes = _, L.resetWarningCache = _.resetWarningCache, L.PropTypes = L, L;
1578
- }, tt;
1578
+ }, rt;
1579
1579
  }
1580
- var rt, xt;
1580
+ var nt, Rt;
1581
1581
  function Kr() {
1582
- if (xt) return rt;
1583
- xt = 1;
1584
- var n = /* @__PURE__ */ it();
1582
+ if (Rt) return nt;
1583
+ Rt = 1;
1584
+ var n = /* @__PURE__ */ ot();
1585
1585
  function b() {
1586
1586
  }
1587
1587
  function u() {
1588
1588
  }
1589
- return u.resetWarningCache = b, rt = function() {
1589
+ return u.resetWarningCache = b, nt = function() {
1590
1590
  function f(W, h, A, R, T, O) {
1591
1591
  if (O !== n) {
1592
1592
  var I = new Error(
@@ -1623,17 +1623,17 @@ function Kr() {
1623
1623
  resetWarningCache: b
1624
1624
  };
1625
1625
  return p.PropTypes = p, p;
1626
- }, rt;
1626
+ }, nt;
1627
1627
  }
1628
- var Rt;
1628
+ var _t;
1629
1629
  function Gr() {
1630
- if (Rt) return qe.exports;
1631
- if (Rt = 1, process.env.NODE_ENV !== "production") {
1632
- var n = At(), b = !0;
1633
- qe.exports = /* @__PURE__ */ Ur()(n.isElement, b);
1630
+ if (_t) return ze.exports;
1631
+ if (_t = 1, process.env.NODE_ENV !== "production") {
1632
+ var n = It(), b = !0;
1633
+ ze.exports = /* @__PURE__ */ Ur()(n.isElement, b);
1634
1634
  } else
1635
- qe.exports = /* @__PURE__ */ Kr()();
1636
- return qe.exports;
1635
+ ze.exports = /* @__PURE__ */ Kr()();
1636
+ return ze.exports;
1637
1637
  }
1638
1638
  var Jr = /* @__PURE__ */ Gr();
1639
1639
  const v = /* @__PURE__ */ zr(Jr);
@@ -1658,273 +1658,286 @@ function Xr({
1658
1658
  width: D,
1659
1659
  step: B = 30,
1660
1660
  weekNumber: V = !1,
1661
- firstDayOfWeek: Z,
1661
+ firstDayOfWeek: Q,
1662
1662
  // --- label (WCAG) ---
1663
1663
  label: $,
1664
1664
  labelId: z,
1665
1665
  ariaLabel: s,
1666
- ariaLabelledBy: ie,
1666
+ ariaLabelledBy: oe,
1667
1667
  ariaDescribedBy: me,
1668
- required: oe = !1,
1669
- errorMessage: H,
1668
+ required: ae = !1,
1669
+ errorMessage: U,
1670
1670
  // --- range-specific ---
1671
- startDate: ye,
1671
+ startDate: ve,
1672
1672
  endDate: ce,
1673
1673
  separator: de = "-",
1674
1674
  presets: le,
1675
- startPlaceholder: U,
1675
+ startPlaceholder: K,
1676
1676
  endPlaceholder: he,
1677
1677
  // --- datetimerange-specific ---
1678
- startValue: K,
1679
- endValue: re,
1680
- onStartChange: te,
1678
+ startValue: G,
1679
+ endValue: ne,
1680
+ onStartChange: re,
1681
1681
  onEndChange: ue,
1682
1682
  // --- events ---
1683
1683
  onOpen: t,
1684
1684
  onClose: o,
1685
1685
  onFocus: S,
1686
1686
  onBlur: d,
1687
- onNavigated: m,
1687
+ onNavigated: y,
1688
1688
  onRenderDayCell: w,
1689
- onCleared: y,
1689
+ onCleared: m,
1690
1690
  // --- HTML / a11y pass-through ---
1691
1691
  id: C,
1692
1692
  name: E,
1693
1693
  htmlAttributes: x,
1694
1694
  ...i
1695
1695
  }) {
1696
- const k = Jt(), r = C || `cdp-${k}`, N = `${r}-error`, G = z || `${r}-label`, ne = ie || ($ ? G : void 0), fe = me || (H ? N : void 0), ae = We(null), Oe = We(null), Ae = We(null), ve = we((Q) => {
1697
- const se = Q?.target;
1698
- !se || typeof se.scrollIntoView != "function" || se.scrollIntoView({ block: "nearest", inline: "nearest" });
1699
- }, []), Se = p || {
1696
+ const k = Jt(), r = C || `cdp-${k}`, N = `${r}-error`, J = z || `${r}-label`, ie = oe || ($ ? J : void 0), fe = me || (U ? N : void 0), se = We(null), Ae = We(null), Ie = We(null), ye = We(null);
1697
+ be(() => {
1698
+ const H = ye.current;
1699
+ if (!H) return;
1700
+ const ee = () => {
1701
+ H.querySelectorAll("input[aria-describedby]").forEach((qe) => {
1702
+ qe.removeAttribute("aria-describedby");
1703
+ });
1704
+ };
1705
+ ee();
1706
+ const Ne = new MutationObserver(ee);
1707
+ return Ne.observe(H, { attributes: !0, attributeFilter: ["aria-describedby"], subtree: !0 }), () => Ne.disconnect();
1708
+ }, []);
1709
+ const Se = we((H) => {
1710
+ const ee = H?.target;
1711
+ !ee || typeof ee.scrollIntoView != "function" || ee.scrollIntoView({ block: "nearest", inline: "nearest" });
1712
+ }, []), Ce = p || {
1700
1713
  date: "MM/dd/yyyy",
1701
1714
  daterange: "MM/dd/yyyy",
1702
1715
  time: "hh:mm a",
1703
1716
  datetime: "MM/dd/yyyy hh:mm a",
1704
1717
  datetimerange: "MM/dd/yyyy hh:mm a"
1705
- }[n], Me = W || {
1718
+ }[n], De = W || {
1706
1719
  date: "MM/DD/YYYY",
1707
1720
  daterange: "MM/DD/YYYY",
1708
1721
  time: "HH:MM A",
1709
1722
  datetime: "MM/DD/YYYY HH:MM A",
1710
1723
  datetimerange: "MM/DD/YYYY HH:MM A"
1711
- }[n], Ce = I, Re = I ? L : !0, $e = [
1724
+ }[n], _e = I, Me = I ? L : !0, ke = [
1712
1725
  "custom-datepicker",
1713
1726
  `custom-datepicker--${n}`,
1714
- H ? "custom-datepicker--error" : "",
1727
+ U ? "custom-datepicker--error" : "",
1715
1728
  I ? "" : "custom-datepicker--readonly-input",
1716
1729
  Y
1717
- ].filter(Boolean).join(" "), Ie = {
1718
- "aria-required": oe ? "true" : void 0,
1719
- "aria-invalid": H ? "true" : void 0,
1730
+ ].filter(Boolean).join(" "), Fe = {
1731
+ "aria-required": ae ? "true" : void 0,
1732
+ "aria-invalid": U ? "true" : void 0,
1720
1733
  "aria-describedby": fe,
1721
- "aria-labelledby": ne,
1722
- "aria-label": ne ? void 0 : s,
1734
+ "aria-labelledby": ie,
1735
+ "aria-label": ie ? void 0 : s,
1723
1736
  ...x || {}
1724
- }, ze = we(
1725
- (Q) => {
1737
+ }, Ve = we(
1738
+ (H) => {
1726
1739
  u && u({
1727
- startDate: Q.startDate,
1728
- endDate: Q.endDate,
1729
- value: Q.value,
1730
- event: Q.event
1740
+ startDate: H.startDate,
1741
+ endDate: H.endDate,
1742
+ value: H.value,
1743
+ event: H.event
1731
1744
  });
1732
1745
  },
1733
1746
  [u]
1734
- ), Ye = we(
1735
- (Q) => {
1736
- u && u({ value: Q.value, event: Q.event });
1747
+ ), He = we(
1748
+ (H) => {
1749
+ u && u({ value: H.value, event: H.event });
1737
1750
  },
1738
1751
  [u]
1739
- ), Ne = {
1740
- ref: ae,
1752
+ ), je = {
1753
+ ref: se,
1741
1754
  id: r,
1742
1755
  name: E,
1743
- format: Se,
1744
- placeholder: Me,
1756
+ format: Ce,
1757
+ placeholder: De,
1745
1758
  enabled: !h,
1746
1759
  readonly: A,
1747
1760
  showClearButton: R,
1748
1761
  floatLabelType: T,
1749
1762
  strictMode: O,
1750
- allowEdit: Ce,
1751
- openOnFocus: Re,
1752
- cssClass: $e,
1763
+ allowEdit: _e,
1764
+ openOnFocus: Me,
1765
+ cssClass: ke,
1753
1766
  width: D,
1754
1767
  min: f,
1755
1768
  max: _,
1756
- htmlAttributes: Ie,
1757
- change: Ye,
1769
+ htmlAttributes: Fe,
1770
+ change: He,
1758
1771
  open: t,
1759
1772
  close: o,
1760
1773
  focus: S,
1761
1774
  blur: d,
1762
- cleared: y
1763
- }, je = {
1775
+ cleared: m
1776
+ }, Le = {
1764
1777
  weekNumber: V,
1765
- firstDayOfWeek: Z,
1766
- navigated: m,
1778
+ firstDayOfWeek: Q,
1779
+ navigated: y,
1767
1780
  renderDayCell: w
1768
- }, De = (Q = r, se = $) => se ? /* @__PURE__ */ ee(
1781
+ }, $e = (H = r, ee = $) => ee ? /* @__PURE__ */ te(
1769
1782
  "label",
1770
1783
  {
1771
- id: G,
1772
- htmlFor: Q,
1784
+ id: J,
1785
+ htmlFor: H,
1773
1786
  className: "custom-datepicker__label",
1774
1787
  children: [
1775
- se,
1776
- oe && /* @__PURE__ */ ee("span", { className: "custom-datepicker__required", "aria-hidden": "true", children: [
1788
+ ee,
1789
+ ae && /* @__PURE__ */ te("span", { className: "custom-datepicker__required", "aria-hidden": "true", children: [
1777
1790
  " ",
1778
1791
  "*"
1779
1792
  ] })
1780
1793
  ]
1781
1794
  }
1782
- ) : null, _e = () => H ? /* @__PURE__ */ j(
1795
+ ) : null, Ee = () => U ? /* @__PURE__ */ j(
1783
1796
  "p",
1784
1797
  {
1785
1798
  id: N,
1786
1799
  className: "custom-datepicker__error",
1787
1800
  role: "alert",
1788
1801
  "aria-live": "assertive",
1789
- children: H
1802
+ children: U
1790
1803
  }
1791
- ) : null, ge = we(
1792
- (Q) => () => {
1804
+ ) : null, Te = we(
1805
+ (H) => () => {
1793
1806
  if (I || h || A) return;
1794
- const se = Q?.current;
1795
- se && typeof se.show == "function" && se.show();
1807
+ const ee = H?.current;
1808
+ ee && typeof ee.show == "function" && ee.show();
1796
1809
  },
1797
1810
  [I, h, A]
1798
1811
  );
1799
1812
  if (n === "date")
1800
- return /* @__PURE__ */ ee("div", { className: "custom-datepicker__wrapper", onClick: ge(ae), onFocusCapture: ve, ...i, children: [
1801
- De(),
1802
- /* @__PURE__ */ j(br, { ...Ne, ...je, value: b }),
1803
- _e()
1813
+ return /* @__PURE__ */ te("div", { ref: ye, className: "custom-datepicker__wrapper", onClick: Te(se), onFocusCapture: Se, ...i, children: [
1814
+ $e(),
1815
+ /* @__PURE__ */ j(br, { ...je, ...Le, value: b }),
1816
+ Ee()
1804
1817
  ] });
1805
1818
  if (n === "daterange")
1806
- return /* @__PURE__ */ ee("div", { className: "custom-datepicker__wrapper", onClick: ge(ae), onFocusCapture: ve, ...i, children: [
1807
- De(),
1819
+ return /* @__PURE__ */ te("div", { ref: ye, className: "custom-datepicker__wrapper", onClick: Te(se), onFocusCapture: Se, ...i, children: [
1820
+ $e(),
1808
1821
  /* @__PURE__ */ j(
1809
1822
  wr,
1810
1823
  {
1811
- ref: ae,
1824
+ ref: se,
1812
1825
  id: r,
1813
1826
  name: E,
1814
- format: Se,
1815
- placeholder: Me,
1827
+ format: Ce,
1828
+ placeholder: De,
1816
1829
  enabled: !h,
1817
1830
  readonly: A,
1818
1831
  showClearButton: R,
1819
1832
  floatLabelType: T,
1820
1833
  strictMode: O,
1821
- allowEdit: Ce,
1822
- openOnFocus: Re,
1823
- cssClass: $e,
1834
+ allowEdit: _e,
1835
+ openOnFocus: Me,
1836
+ cssClass: ke,
1824
1837
  width: D,
1825
1838
  weekNumber: V,
1826
- firstDayOfWeek: Z,
1839
+ firstDayOfWeek: Q,
1827
1840
  min: f,
1828
1841
  max: _,
1829
- startDate: ye,
1842
+ startDate: ve,
1830
1843
  endDate: ce,
1831
1844
  separator: de,
1832
1845
  ...le && le.length > 0 ? { presets: le } : {},
1833
- htmlAttributes: Ie,
1834
- change: ze,
1846
+ htmlAttributes: Fe,
1847
+ change: Ve,
1835
1848
  open: t,
1836
1849
  close: o,
1837
1850
  focus: S,
1838
1851
  blur: d,
1839
- navigated: m,
1852
+ navigated: y,
1840
1853
  renderDayCell: w,
1841
- cleared: y
1854
+ cleared: m
1842
1855
  }
1843
1856
  ),
1844
- _e()
1857
+ Ee()
1845
1858
  ] });
1846
1859
  if (n === "time")
1847
- return /* @__PURE__ */ ee("div", { className: "custom-datepicker__wrapper", onClick: ge(ae), onFocusCapture: ve, ...i, children: [
1848
- De(),
1860
+ return /* @__PURE__ */ te("div", { ref: ye, className: "custom-datepicker__wrapper", onClick: Te(se), onFocusCapture: Se, ...i, children: [
1861
+ $e(),
1849
1862
  /* @__PURE__ */ j(
1850
1863
  Sr,
1851
1864
  {
1852
- ...Ne,
1865
+ ...je,
1853
1866
  value: b,
1854
1867
  step: B
1855
1868
  }
1856
1869
  ),
1857
- _e()
1870
+ Ee()
1858
1871
  ] });
1859
1872
  if (n === "datetime")
1860
- return /* @__PURE__ */ ee("div", { className: "custom-datepicker__wrapper", onClick: ge(ae), onFocusCapture: ve, ...i, children: [
1861
- De(),
1873
+ return /* @__PURE__ */ te("div", { ref: ye, className: "custom-datepicker__wrapper", onClick: Te(se), onFocusCapture: Se, ...i, children: [
1874
+ $e(),
1862
1875
  /* @__PURE__ */ j(
1863
- Je,
1876
+ Xe,
1864
1877
  {
1865
- ...Ne,
1866
1878
  ...je,
1879
+ ...Le,
1867
1880
  value: b,
1868
1881
  step: B
1869
1882
  }
1870
1883
  ),
1871
- _e()
1884
+ Ee()
1872
1885
  ] });
1873
1886
  if (n === "datetimerange") {
1874
- const Q = `${r}-start`, se = `${r}-end`, Be = `${r}-start-error`, Ve = `${r}-end-error`, He = {
1875
- "aria-required": oe ? "true" : void 0,
1876
- "aria-invalid": H ? "true" : void 0,
1877
- "aria-describedby": H ? Be : void 0,
1878
- "aria-labelledby": G,
1879
- "aria-label": U,
1887
+ const H = `${r}-start`, ee = `${r}-end`, Ne = `${r}-start-error`, qe = `${r}-end-error`, Ue = {
1888
+ "aria-required": ae ? "true" : void 0,
1889
+ "aria-invalid": U ? "true" : void 0,
1890
+ "aria-describedby": U ? Ne : void 0,
1891
+ "aria-labelledby": J,
1892
+ "aria-label": K,
1880
1893
  ...x || {}
1881
- }, Ue = {
1882
- "aria-required": oe ? "true" : void 0,
1883
- "aria-invalid": H ? "true" : void 0,
1884
- "aria-describedby": H ? Ve : void 0,
1885
- "aria-labelledby": G,
1894
+ }, Ke = {
1895
+ "aria-required": ae ? "true" : void 0,
1896
+ "aria-invalid": U ? "true" : void 0,
1897
+ "aria-describedby": U ? qe : void 0,
1898
+ "aria-labelledby": J,
1886
1899
  "aria-label": he,
1887
1900
  ...x || {}
1888
1901
  };
1889
- return /* @__PURE__ */ ee("div", { className: "custom-datepicker__wrapper", onFocusCapture: ve, ...i, children: [
1890
- $ && /* @__PURE__ */ ee("span", { id: G, className: "custom-datepicker__label", children: [
1902
+ return /* @__PURE__ */ te("div", { ref: ye, className: "custom-datepicker__wrapper", onFocusCapture: Se, ...i, children: [
1903
+ $ && /* @__PURE__ */ te("span", { id: J, className: "custom-datepicker__label", children: [
1891
1904
  $,
1892
- oe && /* @__PURE__ */ ee("span", { className: "custom-datepicker__required", "aria-hidden": "true", children: [
1905
+ ae && /* @__PURE__ */ te("span", { className: "custom-datepicker__required", "aria-hidden": "true", children: [
1893
1906
  " ",
1894
1907
  "*"
1895
1908
  ] })
1896
1909
  ] }),
1897
- /* @__PURE__ */ ee(
1910
+ /* @__PURE__ */ te(
1898
1911
  "div",
1899
1912
  {
1900
- className: `custom-datepicker__range-row ${$e}`,
1913
+ className: `custom-datepicker__range-row ${ke}`,
1901
1914
  role: "group",
1902
- "aria-labelledby": $ ? G : void 0,
1915
+ "aria-labelledby": $ ? J : void 0,
1903
1916
  children: [
1904
- /* @__PURE__ */ j("div", { className: "custom-datepicker__range-field", onClick: ge(Oe), children: /* @__PURE__ */ j(
1905
- Je,
1917
+ /* @__PURE__ */ j("div", { className: "custom-datepicker__range-field", onClick: Te(Ae), children: /* @__PURE__ */ j(
1918
+ Xe,
1906
1919
  {
1907
- ref: Oe,
1908
- id: Q,
1920
+ ref: Ae,
1921
+ id: H,
1909
1922
  name: E ? `${E}_start` : void 0,
1910
- format: Se,
1911
- placeholder: U || Se,
1912
- value: K,
1923
+ format: Ce,
1924
+ placeholder: K || Ce,
1925
+ value: G,
1913
1926
  enabled: !h,
1914
1927
  readonly: A,
1915
1928
  showClearButton: R,
1916
1929
  floatLabelType: "Never",
1917
1930
  strictMode: O,
1918
- allowEdit: Ce,
1919
- openOnFocus: Re,
1931
+ allowEdit: _e,
1932
+ openOnFocus: Me,
1920
1933
  cssClass: "custom-datepicker custom-datepicker--datetimerange-inner",
1921
1934
  width: "100%",
1922
1935
  step: B,
1923
1936
  min: f,
1924
- max: re || _,
1925
- htmlAttributes: He,
1937
+ max: ne || _,
1938
+ htmlAttributes: Ue,
1926
1939
  change: (pe) => {
1927
- te && te({ value: pe.value, event: pe.event }), u && u({ startValue: pe.value, endValue: re, event: pe.event });
1940
+ re && re({ value: pe.value, event: pe.event }), u && u({ startValue: pe.value, endValue: ne, event: pe.event });
1928
1941
  },
1929
1942
  open: t,
1930
1943
  close: o,
@@ -1933,30 +1946,30 @@ function Xr({
1933
1946
  }
1934
1947
  ) }),
1935
1948
  /* @__PURE__ */ j("span", { className: "custom-datepicker__separator", "aria-hidden": "true", children: de }),
1936
- /* @__PURE__ */ j("div", { className: "custom-datepicker__range-field", onClick: ge(Ae), children: /* @__PURE__ */ j(
1937
- Je,
1949
+ /* @__PURE__ */ j("div", { className: "custom-datepicker__range-field", onClick: Te(Ie), children: /* @__PURE__ */ j(
1950
+ Xe,
1938
1951
  {
1939
- ref: Ae,
1940
- id: se,
1952
+ ref: Ie,
1953
+ id: ee,
1941
1954
  name: E ? `${E}_end` : void 0,
1942
- format: Se,
1943
- placeholder: he || Se,
1944
- value: re,
1955
+ format: Ce,
1956
+ placeholder: he || Ce,
1957
+ value: ne,
1945
1958
  enabled: !h,
1946
1959
  readonly: A,
1947
1960
  showClearButton: R,
1948
1961
  floatLabelType: "Never",
1949
1962
  strictMode: O,
1950
- allowEdit: Ce,
1951
- openOnFocus: Re,
1963
+ allowEdit: _e,
1964
+ openOnFocus: Me,
1952
1965
  cssClass: "custom-datepicker custom-datepicker--datetimerange-inner",
1953
1966
  width: "100%",
1954
1967
  step: B,
1955
- min: K || f,
1968
+ min: G || f,
1956
1969
  max: _,
1957
- htmlAttributes: Ue,
1970
+ htmlAttributes: Ke,
1958
1971
  change: (pe) => {
1959
- ue && ue({ value: pe.value, event: pe.event }), u && u({ startValue: K, endValue: pe.value, event: pe.event });
1972
+ ue && ue({ value: pe.value, event: pe.event }), u && u({ startValue: G, endValue: pe.value, event: pe.event });
1960
1973
  },
1961
1974
  open: t,
1962
1975
  close: o,
@@ -1967,7 +1980,7 @@ function Xr({
1967
1980
  ]
1968
1981
  }
1969
1982
  ),
1970
- _e()
1983
+ Ee()
1971
1984
  ] });
1972
1985
  }
1973
1986
  return null;
@@ -2061,9 +2074,9 @@ Xr.propTypes = {
2061
2074
  name: v.string,
2062
2075
  htmlAttributes: v.object
2063
2076
  };
2064
- let _t = !1;
2077
+ let kt = !1;
2065
2078
  function cn(n) {
2066
- _t || (Cr(n), _t = !0);
2079
+ kt || (Cr(n), kt = !0);
2067
2080
  }
2068
2081
  export {
2069
2082
  an as CustomDataGrid,