@epam/ai-dial-ui-kit 0.9.0-dev.66 → 0.9.0-dev.68

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,5 +1,5 @@
1
1
  import * as De from "react";
2
- import X, { useState as I, useRef as O, useEffect as Se, useMemo as B, createContext as hl, useContext as gt, isValidElement as gu, cloneElement as vd, useCallback as D, memo as Et, useLayoutEffect as ui, PureComponent as Cb, Component as wb, forwardRef as fu, useImperativeHandle as dr, createElement as In, Suspense as bb, useId as mu, Children as xb } from "react";
2
+ import X, { useState as I, useRef as O, useEffect as Se, useMemo as B, createContext as hl, useContext as gt, isValidElement as gu, cloneElement as vd, useCallback as P, memo as Et, useLayoutEffect as ui, PureComponent as Cb, Component as wb, forwardRef as fu, useImperativeHandle as dr, createElement as In, Suspense as bb, useId as mu, Children as xb } from "react";
3
3
  import me from "classnames";
4
4
  import { IconInfoCircle as vu, IconCircleCheck as yb, IconAlertTriangle as vf, IconAlertCircle as Sb, IconX as qo, IconMinus as Rb, IconCheck as Cf, IconExclamationCircle as Cu, IconClipboardX as wf, IconChevronsLeft as Fb, IconChevronsRight as Eb, IconGripVertical as Db, IconFile as bf, IconFileTypeZip as Pb, IconFileTypeXml as Tb, IconFileTypeXls as Mb, IconFileTypeVue as kb, IconFileTypeTxt as Ib, IconFileTypeTsx as Ab, IconFileTypeTs as Lb, IconFileTypeSvg as Ob, IconFileTypeSql as Nb, IconFileTypeRs as Hb, IconFileTypePpt as Gb, IconFileTypePng as Bb, IconFileTypePhp as Vb, IconFileTypePdf as zb, IconFileTypeJsx as Wb, IconFileTypeJs as jb, IconFileTypeJpg as _b, IconFileTypeHtml as Ub, IconFileTypeDocx as $b, IconFileTypeDoc as qb, IconFileTypeCsv as Kb, IconFileTypeCss as Yb, IconFileTypeBmp as Zb, IconArrowUpRight as Xb, IconFolder as wu, IconChevronLeft as Qb, IconChevronRight as xf, IconZoomCancel as Jb, IconChevronDown as pl, IconDotsVertical as Ko, IconDots as e1, IconTrashX as Bo, IconEyeOff as yf, IconEye as gl, IconSearch as t1, IconPlus as Sf, IconChevronUp as i1, IconCircleFilled as va, IconFileZip as s1, IconCopyMinus as o1, IconFolderPlus as Zh, IconArrowLeft as n1, IconAlertCircleFilled as r1, IconAlertTriangleFilled as a1, IconCaretRightFilled as l1, IconCopy as bu, IconDownload as xu, IconUserX as yu, IconExternalLink as Cd, IconPencilMinus as Rf, IconFileDescription as c1 } from "@tabler/icons-react";
5
5
  import { useFloating as Su, autoUpdate as Ff, offset as Ef, flip as Df, shift as Pf, arrow as d1, useHover as Tf, useFocus as u1, useDismiss as Ru, useRole as Fu, useInteractions as Eu, useMergeRefs as Du, FloatingPortal as Pu, FloatingArrow as h1, autoPlacement as p1, size as g1, useClick as f1, FloatingFocusManager as Mf, FloatingOverlay as m1 } from "@floating-ui/react";
@@ -61,7 +61,7 @@ function y1() {
61
61
  function e(M) {
62
62
  if (M == null) return null;
63
63
  if (typeof M == "function")
64
- return M.$$typeof === E ? null : M.displayName || M.name || null;
64
+ return M.$$typeof === D ? null : M.displayName || M.name || null;
65
65
  if (typeof M == "string") return M;
66
66
  switch (M) {
67
67
  case m:
@@ -72,9 +72,9 @@ function y1() {
72
72
  return "StrictMode";
73
73
  case y:
74
74
  return "Suspense";
75
- case R:
75
+ case F:
76
76
  return "SuspenseList";
77
- case T:
77
+ case E:
78
78
  return "Activity";
79
79
  }
80
80
  if (typeof M == "object")
@@ -92,7 +92,7 @@ function y1() {
92
92
  return M = M.displayName, M || (M = W.displayName || W.name || "", M = M !== "" ? "ForwardRef(" + M + ")" : "ForwardRef"), M;
93
93
  case S:
94
94
  return W = M.displayName || null, W !== null ? W : e(M.type) || "Memo";
95
- case F:
95
+ case R:
96
96
  W = M._payload, M = M._init;
97
97
  try {
98
98
  return e(M(W));
@@ -123,7 +123,7 @@ function y1() {
123
123
  }
124
124
  function s(M) {
125
125
  if (M === m) return "<>";
126
- if (typeof M == "object" && M !== null && M.$$typeof === F)
126
+ if (typeof M == "object" && M !== null && M.$$typeof === R)
127
127
  return "<...>";
128
128
  try {
129
129
  var W = e(M);
@@ -133,7 +133,7 @@ function y1() {
133
133
  }
134
134
  }
135
135
  function o() {
136
- var M = P.A;
136
+ var M = T.A;
137
137
  return M === null ? null : M.getOwner();
138
138
  }
139
139
  function n() {
@@ -249,7 +249,7 @@ React keys must be passed directly to JSX without using spread:
249
249
  function u(M) {
250
250
  typeof M == "object" && M !== null && M.$$typeof === p && M._store && (M._store.validated = 1);
251
251
  }
252
- var h = X, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), b = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), R = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), T = Symbol.for("react.activity"), E = Symbol.for("react.client.reference"), P = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, G = Array.isArray, Y = console.createTask ? console.createTask : function() {
252
+ var h = X, p = Symbol.for("react.transitional.element"), g = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), v = Symbol.for("react.strict_mode"), C = Symbol.for("react.profiler"), w = Symbol.for("react.consumer"), b = Symbol.for("react.context"), x = Symbol.for("react.forward_ref"), y = Symbol.for("react.suspense"), F = Symbol.for("react.suspense_list"), S = Symbol.for("react.memo"), R = Symbol.for("react.lazy"), E = Symbol.for("react.activity"), D = Symbol.for("react.client.reference"), T = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, k = Object.prototype.hasOwnProperty, G = Array.isArray, Y = console.createTask ? console.createTask : function() {
253
253
  return null;
254
254
  };
255
255
  h = {
@@ -262,7 +262,7 @@ React keys must be passed directly to JSX without using spread:
262
262
  n
263
263
  )(), L = Y(s(n)), pe = {};
264
264
  xn.Fragment = m, xn.jsx = function(M, W, q, _, le) {
265
- var Re = 1e4 > P.recentlyCreatedOwnerStacks++;
265
+ var Re = 1e4 > T.recentlyCreatedOwnerStacks++;
266
266
  return d(
267
267
  M,
268
268
  W,
@@ -274,7 +274,7 @@ React keys must be passed directly to JSX without using spread:
274
274
  Re ? Y(s(M)) : L
275
275
  );
276
276
  }, xn.jsxs = function(M, W, q, _, le) {
277
- var Re = 1e4 > P.recentlyCreatedOwnerStacks++;
277
+ var Re = 1e4 > T.recentlyCreatedOwnerStacks++;
278
278
  return d(
279
279
  M,
280
280
  W,
@@ -492,8 +492,8 @@ const Tu = "-", R1 = (e) => {
492
492
  continue;
493
493
  r.push(x);
494
494
  const y = o(C, v);
495
- for (let R = 0; R < y.length; ++R) {
496
- const S = y[R];
495
+ for (let F = 0; F < y.length; ++F) {
496
+ const S = y[F];
497
497
  r.push(b + S);
498
498
  }
499
499
  l = d + (l.length > 0 ? " " + l : l);
@@ -564,9 +564,9 @@ const dt = (e) => {
564
564
  "bottom-left",
565
565
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
566
566
  "left-bottom"
567
- ], y = () => [...x(), be, we], R = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], F = () => [be, we, l], T = () => [po, "full", "auto", ...F()], E = () => [ts, "none", "subgrid", be, we], P = () => ["auto", {
567
+ ], y = () => [...x(), be, we], F = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], R = () => [be, we, l], E = () => [po, "full", "auto", ...R()], D = () => [ts, "none", "subgrid", be, we], T = () => ["auto", {
568
568
  span: ["full", ts, be, we]
569
- }, ts, be, we], k = () => [ts, "auto", be, we], G = () => ["auto", "min", "max", "fr", be, we], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], j = () => ["auto", ...F()], V = () => [po, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...F()], L = () => [e, be, we], pe = () => [...x(), sp, ip, {
569
+ }, ts, be, we], k = () => [ts, "auto", be, we], G = () => ["auto", "min", "max", "fr", be, we], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], j = () => ["auto", ...R()], V = () => [po, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], L = () => [e, be, we], pe = () => [...x(), sp, ip, {
570
570
  position: [be, we]
571
571
  }], M = () => ["no-repeat", {
572
572
  repeat: ["", "x", "y", "space", "round"]
@@ -587,7 +587,7 @@ const dt = (e) => {
587
587
  g,
588
588
  be,
589
589
  we
590
- ], re = () => ["none", Ae, be, we], ee = () => ["none", Ae, be, we], $ = () => [Ae, be, we], de = () => [po, "full", ...F()];
590
+ ], re = () => ["none", Ae, be, we], ee = () => ["none", Ae, be, we], $ = () => [Ae, be, we], de = () => [po, "full", ...R()];
591
591
  return {
592
592
  cacheSize: 500,
593
593
  theme: {
@@ -718,21 +718,21 @@ const dt = (e) => {
718
718
  * @see https://tailwindcss.com/docs/overflow
719
719
  */
720
720
  overflow: [{
721
- overflow: R()
721
+ overflow: F()
722
722
  }],
723
723
  /**
724
724
  * Overflow X
725
725
  * @see https://tailwindcss.com/docs/overflow
726
726
  */
727
727
  "overflow-x": [{
728
- "overflow-x": R()
728
+ "overflow-x": F()
729
729
  }],
730
730
  /**
731
731
  * Overflow Y
732
732
  * @see https://tailwindcss.com/docs/overflow
733
733
  */
734
734
  "overflow-y": [{
735
- "overflow-y": R()
735
+ "overflow-y": F()
736
736
  }],
737
737
  /**
738
738
  * Overscroll Behavior
@@ -765,63 +765,63 @@ const dt = (e) => {
765
765
  * @see https://tailwindcss.com/docs/top-right-bottom-left
766
766
  */
767
767
  inset: [{
768
- inset: T()
768
+ inset: E()
769
769
  }],
770
770
  /**
771
771
  * Right / Left
772
772
  * @see https://tailwindcss.com/docs/top-right-bottom-left
773
773
  */
774
774
  "inset-x": [{
775
- "inset-x": T()
775
+ "inset-x": E()
776
776
  }],
777
777
  /**
778
778
  * Top / Bottom
779
779
  * @see https://tailwindcss.com/docs/top-right-bottom-left
780
780
  */
781
781
  "inset-y": [{
782
- "inset-y": T()
782
+ "inset-y": E()
783
783
  }],
784
784
  /**
785
785
  * Start
786
786
  * @see https://tailwindcss.com/docs/top-right-bottom-left
787
787
  */
788
788
  start: [{
789
- start: T()
789
+ start: E()
790
790
  }],
791
791
  /**
792
792
  * End
793
793
  * @see https://tailwindcss.com/docs/top-right-bottom-left
794
794
  */
795
795
  end: [{
796
- end: T()
796
+ end: E()
797
797
  }],
798
798
  /**
799
799
  * Top
800
800
  * @see https://tailwindcss.com/docs/top-right-bottom-left
801
801
  */
802
802
  top: [{
803
- top: T()
803
+ top: E()
804
804
  }],
805
805
  /**
806
806
  * Right
807
807
  * @see https://tailwindcss.com/docs/top-right-bottom-left
808
808
  */
809
809
  right: [{
810
- right: T()
810
+ right: E()
811
811
  }],
812
812
  /**
813
813
  * Bottom
814
814
  * @see https://tailwindcss.com/docs/top-right-bottom-left
815
815
  */
816
816
  bottom: [{
817
- bottom: T()
817
+ bottom: E()
818
818
  }],
819
819
  /**
820
820
  * Left
821
821
  * @see https://tailwindcss.com/docs/top-right-bottom-left
822
822
  */
823
823
  left: [{
824
- left: T()
824
+ left: E()
825
825
  }],
826
826
  /**
827
827
  * Visibility
@@ -843,7 +843,7 @@ const dt = (e) => {
843
843
  * @see https://tailwindcss.com/docs/flex-basis
844
844
  */
845
845
  basis: [{
846
- basis: [po, "full", "auto", a, ...F()]
846
+ basis: [po, "full", "auto", a, ...R()]
847
847
  }],
848
848
  /**
849
849
  * Flex Direction
@@ -892,14 +892,14 @@ const dt = (e) => {
892
892
  * @see https://tailwindcss.com/docs/grid-template-columns
893
893
  */
894
894
  "grid-cols": [{
895
- "grid-cols": E()
895
+ "grid-cols": D()
896
896
  }],
897
897
  /**
898
898
  * Grid Column Start / End
899
899
  * @see https://tailwindcss.com/docs/grid-column
900
900
  */
901
901
  "col-start-end": [{
902
- col: P()
902
+ col: T()
903
903
  }],
904
904
  /**
905
905
  * Grid Column Start
@@ -920,14 +920,14 @@ const dt = (e) => {
920
920
  * @see https://tailwindcss.com/docs/grid-template-rows
921
921
  */
922
922
  "grid-rows": [{
923
- "grid-rows": E()
923
+ "grid-rows": D()
924
924
  }],
925
925
  /**
926
926
  * Grid Row Start / End
927
927
  * @see https://tailwindcss.com/docs/grid-row
928
928
  */
929
929
  "row-start-end": [{
930
- row: P()
930
+ row: T()
931
931
  }],
932
932
  /**
933
933
  * Grid Row Start
@@ -969,21 +969,21 @@ const dt = (e) => {
969
969
  * @see https://tailwindcss.com/docs/gap
970
970
  */
971
971
  gap: [{
972
- gap: F()
972
+ gap: R()
973
973
  }],
974
974
  /**
975
975
  * Gap X
976
976
  * @see https://tailwindcss.com/docs/gap
977
977
  */
978
978
  "gap-x": [{
979
- "gap-x": F()
979
+ "gap-x": R()
980
980
  }],
981
981
  /**
982
982
  * Gap Y
983
983
  * @see https://tailwindcss.com/docs/gap
984
984
  */
985
985
  "gap-y": [{
986
- "gap-y": F()
986
+ "gap-y": R()
987
987
  }],
988
988
  /**
989
989
  * Justify Content
@@ -1058,63 +1058,63 @@ const dt = (e) => {
1058
1058
  * @see https://tailwindcss.com/docs/padding
1059
1059
  */
1060
1060
  p: [{
1061
- p: F()
1061
+ p: R()
1062
1062
  }],
1063
1063
  /**
1064
1064
  * Padding X
1065
1065
  * @see https://tailwindcss.com/docs/padding
1066
1066
  */
1067
1067
  px: [{
1068
- px: F()
1068
+ px: R()
1069
1069
  }],
1070
1070
  /**
1071
1071
  * Padding Y
1072
1072
  * @see https://tailwindcss.com/docs/padding
1073
1073
  */
1074
1074
  py: [{
1075
- py: F()
1075
+ py: R()
1076
1076
  }],
1077
1077
  /**
1078
1078
  * Padding Start
1079
1079
  * @see https://tailwindcss.com/docs/padding
1080
1080
  */
1081
1081
  ps: [{
1082
- ps: F()
1082
+ ps: R()
1083
1083
  }],
1084
1084
  /**
1085
1085
  * Padding End
1086
1086
  * @see https://tailwindcss.com/docs/padding
1087
1087
  */
1088
1088
  pe: [{
1089
- pe: F()
1089
+ pe: R()
1090
1090
  }],
1091
1091
  /**
1092
1092
  * Padding Top
1093
1093
  * @see https://tailwindcss.com/docs/padding
1094
1094
  */
1095
1095
  pt: [{
1096
- pt: F()
1096
+ pt: R()
1097
1097
  }],
1098
1098
  /**
1099
1099
  * Padding Right
1100
1100
  * @see https://tailwindcss.com/docs/padding
1101
1101
  */
1102
1102
  pr: [{
1103
- pr: F()
1103
+ pr: R()
1104
1104
  }],
1105
1105
  /**
1106
1106
  * Padding Bottom
1107
1107
  * @see https://tailwindcss.com/docs/padding
1108
1108
  */
1109
1109
  pb: [{
1110
- pb: F()
1110
+ pb: R()
1111
1111
  }],
1112
1112
  /**
1113
1113
  * Padding Left
1114
1114
  * @see https://tailwindcss.com/docs/padding
1115
1115
  */
1116
1116
  pl: [{
1117
- pl: F()
1117
+ pl: R()
1118
1118
  }],
1119
1119
  /**
1120
1120
  * Margin
@@ -1184,7 +1184,7 @@ const dt = (e) => {
1184
1184
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1185
1185
  */
1186
1186
  "space-x": [{
1187
- "space-x": F()
1187
+ "space-x": R()
1188
1188
  }],
1189
1189
  /**
1190
1190
  * Space Between X Reverse
@@ -1196,7 +1196,7 @@ const dt = (e) => {
1196
1196
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
1197
1197
  */
1198
1198
  "space-y": [{
1199
- "space-y": F()
1199
+ "space-y": R()
1200
1200
  }],
1201
1201
  /**
1202
1202
  * Space Between Y Reverse
@@ -1365,7 +1365,7 @@ const dt = (e) => {
1365
1365
  leading: [
1366
1366
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1367
1367
  n,
1368
- ...F()
1368
+ ...R()
1369
1369
  ]
1370
1370
  }],
1371
1371
  /**
@@ -1466,7 +1466,7 @@ const dt = (e) => {
1466
1466
  * @see https://tailwindcss.com/docs/text-indent
1467
1467
  */
1468
1468
  indent: [{
1469
- indent: F()
1469
+ indent: R()
1470
1470
  }],
1471
1471
  /**
1472
1472
  * Vertical Alignment
@@ -2430,21 +2430,21 @@ const dt = (e) => {
2430
2430
  * @see https://tailwindcss.com/docs/border-spacing
2431
2431
  */
2432
2432
  "border-spacing": [{
2433
- "border-spacing": F()
2433
+ "border-spacing": R()
2434
2434
  }],
2435
2435
  /**
2436
2436
  * Border Spacing X
2437
2437
  * @see https://tailwindcss.com/docs/border-spacing
2438
2438
  */
2439
2439
  "border-spacing-x": [{
2440
- "border-spacing-x": F()
2440
+ "border-spacing-x": R()
2441
2441
  }],
2442
2442
  /**
2443
2443
  * Border Spacing Y
2444
2444
  * @see https://tailwindcss.com/docs/border-spacing
2445
2445
  */
2446
2446
  "border-spacing-y": [{
2447
- "border-spacing-y": F()
2447
+ "border-spacing-y": R()
2448
2448
  }],
2449
2449
  /**
2450
2450
  * Table Layout
@@ -2736,126 +2736,126 @@ const dt = (e) => {
2736
2736
  * @see https://tailwindcss.com/docs/scroll-margin
2737
2737
  */
2738
2738
  "scroll-m": [{
2739
- "scroll-m": F()
2739
+ "scroll-m": R()
2740
2740
  }],
2741
2741
  /**
2742
2742
  * Scroll Margin X
2743
2743
  * @see https://tailwindcss.com/docs/scroll-margin
2744
2744
  */
2745
2745
  "scroll-mx": [{
2746
- "scroll-mx": F()
2746
+ "scroll-mx": R()
2747
2747
  }],
2748
2748
  /**
2749
2749
  * Scroll Margin Y
2750
2750
  * @see https://tailwindcss.com/docs/scroll-margin
2751
2751
  */
2752
2752
  "scroll-my": [{
2753
- "scroll-my": F()
2753
+ "scroll-my": R()
2754
2754
  }],
2755
2755
  /**
2756
2756
  * Scroll Margin Start
2757
2757
  * @see https://tailwindcss.com/docs/scroll-margin
2758
2758
  */
2759
2759
  "scroll-ms": [{
2760
- "scroll-ms": F()
2760
+ "scroll-ms": R()
2761
2761
  }],
2762
2762
  /**
2763
2763
  * Scroll Margin End
2764
2764
  * @see https://tailwindcss.com/docs/scroll-margin
2765
2765
  */
2766
2766
  "scroll-me": [{
2767
- "scroll-me": F()
2767
+ "scroll-me": R()
2768
2768
  }],
2769
2769
  /**
2770
2770
  * Scroll Margin Top
2771
2771
  * @see https://tailwindcss.com/docs/scroll-margin
2772
2772
  */
2773
2773
  "scroll-mt": [{
2774
- "scroll-mt": F()
2774
+ "scroll-mt": R()
2775
2775
  }],
2776
2776
  /**
2777
2777
  * Scroll Margin Right
2778
2778
  * @see https://tailwindcss.com/docs/scroll-margin
2779
2779
  */
2780
2780
  "scroll-mr": [{
2781
- "scroll-mr": F()
2781
+ "scroll-mr": R()
2782
2782
  }],
2783
2783
  /**
2784
2784
  * Scroll Margin Bottom
2785
2785
  * @see https://tailwindcss.com/docs/scroll-margin
2786
2786
  */
2787
2787
  "scroll-mb": [{
2788
- "scroll-mb": F()
2788
+ "scroll-mb": R()
2789
2789
  }],
2790
2790
  /**
2791
2791
  * Scroll Margin Left
2792
2792
  * @see https://tailwindcss.com/docs/scroll-margin
2793
2793
  */
2794
2794
  "scroll-ml": [{
2795
- "scroll-ml": F()
2795
+ "scroll-ml": R()
2796
2796
  }],
2797
2797
  /**
2798
2798
  * Scroll Padding
2799
2799
  * @see https://tailwindcss.com/docs/scroll-padding
2800
2800
  */
2801
2801
  "scroll-p": [{
2802
- "scroll-p": F()
2802
+ "scroll-p": R()
2803
2803
  }],
2804
2804
  /**
2805
2805
  * Scroll Padding X
2806
2806
  * @see https://tailwindcss.com/docs/scroll-padding
2807
2807
  */
2808
2808
  "scroll-px": [{
2809
- "scroll-px": F()
2809
+ "scroll-px": R()
2810
2810
  }],
2811
2811
  /**
2812
2812
  * Scroll Padding Y
2813
2813
  * @see https://tailwindcss.com/docs/scroll-padding
2814
2814
  */
2815
2815
  "scroll-py": [{
2816
- "scroll-py": F()
2816
+ "scroll-py": R()
2817
2817
  }],
2818
2818
  /**
2819
2819
  * Scroll Padding Start
2820
2820
  * @see https://tailwindcss.com/docs/scroll-padding
2821
2821
  */
2822
2822
  "scroll-ps": [{
2823
- "scroll-ps": F()
2823
+ "scroll-ps": R()
2824
2824
  }],
2825
2825
  /**
2826
2826
  * Scroll Padding End
2827
2827
  * @see https://tailwindcss.com/docs/scroll-padding
2828
2828
  */
2829
2829
  "scroll-pe": [{
2830
- "scroll-pe": F()
2830
+ "scroll-pe": R()
2831
2831
  }],
2832
2832
  /**
2833
2833
  * Scroll Padding Top
2834
2834
  * @see https://tailwindcss.com/docs/scroll-padding
2835
2835
  */
2836
2836
  "scroll-pt": [{
2837
- "scroll-pt": F()
2837
+ "scroll-pt": R()
2838
2838
  }],
2839
2839
  /**
2840
2840
  * Scroll Padding Right
2841
2841
  * @see https://tailwindcss.com/docs/scroll-padding
2842
2842
  */
2843
2843
  "scroll-pr": [{
2844
- "scroll-pr": F()
2844
+ "scroll-pr": R()
2845
2845
  }],
2846
2846
  /**
2847
2847
  * Scroll Padding Bottom
2848
2848
  * @see https://tailwindcss.com/docs/scroll-padding
2849
2849
  */
2850
2850
  "scroll-pb": [{
2851
- "scroll-pb": F()
2851
+ "scroll-pb": R()
2852
2852
  }],
2853
2853
  /**
2854
2854
  * Scroll Padding Left
2855
2855
  * @see https://tailwindcss.com/docs/scroll-padding
2856
2856
  */
2857
2857
  "scroll-pl": [{
2858
- "scroll-pl": F()
2858
+ "scroll-pl": R()
2859
2859
  }],
2860
2860
  /**
2861
2861
  * Scroll Snap Align
@@ -3419,7 +3419,7 @@ const cx = (e) => ({
3419
3419
  u(C.textContent ?? "");
3420
3420
  const w = C.clientWidth, b = C.scrollWidth, x = Math.ceil(C.getBoundingClientRect().width);
3421
3421
  c(b > w || b > x);
3422
- }, g = D(() => {
3422
+ }, g = P(() => {
3423
3423
  h.current && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(p);
3424
3424
  }, []);
3425
3425
  Se(() => {
@@ -3482,7 +3482,7 @@ const cx = (e) => ({
3482
3482
  className: a,
3483
3483
  ...l
3484
3484
  }) => {
3485
- const c = D(
3485
+ const c = P(
3486
3486
  (p) => {
3487
3487
  r?.(p.target.checked, t);
3488
3488
  },
@@ -3690,7 +3690,7 @@ const bx = "w-full flex gap-2", xx = {
3690
3690
  defaultEmptyText: g,
3691
3691
  children: m
3692
3692
  }) => {
3693
- const v = `${e}-label`, C = s ? `${e}-desc` : void 0, w = o ? `${e}-err` : void 0, b = `${e}-caption-desc`, x = [C, w].filter(Boolean).join(" ") || void 0, y = D(() => typeof o == "boolean" ? null : typeof o == "string" || typeof o > "u" ? o ? /* @__PURE__ */ f.jsx("div", { id: w, "aria-live": "polite", className: c, children: /* @__PURE__ */ f.jsx(Ei, { text: o }) }) : null : /* @__PURE__ */ f.jsx(
3693
+ const v = `${e}-label`, C = s ? `${e}-desc` : void 0, w = o ? `${e}-err` : void 0, b = `${e}-caption-desc`, x = [C, w].filter(Boolean).join(" ") || void 0, y = P(() => typeof o == "boolean" ? null : typeof o == "string" || typeof o > "u" ? o ? /* @__PURE__ */ f.jsx("div", { id: w, "aria-live": "polite", className: c, children: /* @__PURE__ */ f.jsx(Ei, { text: o }) }) : null : /* @__PURE__ */ f.jsx(
3694
3694
  "div",
3695
3695
  {
3696
3696
  id: w,
@@ -3699,7 +3699,7 @@ const bx = "w-full flex gap-2", xx = {
3699
3699
  className: c,
3700
3700
  children: o
3701
3701
  }
3702
- ), [o, c, w]), R = D(() => p ? typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ f.jsx("span", { "aria-readonly": "true", children: p }) : p : /* @__PURE__ */ f.jsx("span", { className: "flex min-h-4", "aria-readonly": "true", children: g ?? "None" }), [p, g]);
3702
+ ), [o, c, w]), F = P(() => p ? typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ f.jsx("span", { "aria-readonly": "true", children: p }) : p : /* @__PURE__ */ f.jsx("span", { className: "flex min-h-4", "aria-readonly": "true", children: g ?? "None" }), [p, g]);
3703
3703
  return /* @__PURE__ */ f.jsxs(
3704
3704
  "div",
3705
3705
  {
@@ -3733,7 +3733,7 @@ const bx = "w-full flex gap-2", xx = {
3733
3733
  }
3734
3734
  ),
3735
3735
  /* @__PURE__ */ f.jsxs("div", { className: ce("min-w-0 w-full", d), children: [
3736
- h ? /* @__PURE__ */ f.jsx("div", { className: "dial-input px-3 py-2", children: R() }) : m,
3736
+ h ? /* @__PURE__ */ f.jsx("div", { className: "dial-input px-3 py-2", children: F() }) : m,
3737
3737
  u && /* @__PURE__ */ f.jsx(
3738
3738
  "div",
3739
3739
  {
@@ -5144,7 +5144,7 @@ const Q0 = /* @__PURE__ */ w1(X0), Hs = typeof window < "u" ? ui : Se;
5144
5144
  function J0(e, t, i) {
5145
5145
  const [s, o] = I(
5146
5146
  () => t(e)
5147
- ), n = D(() => {
5147
+ ), n = P(() => {
5148
5148
  const r = t(e);
5149
5149
  Q0(s, r) || (o(r), i && i());
5150
5150
  }, [
@@ -6026,9 +6026,9 @@ var Ba = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(Ba ||
6026
6026
  bottomLeft: at(at({}, Qr), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
6027
6027
  topLeft: at(at({}, Qr), { left: "-10px", top: "-10px", cursor: "nw-resize" })
6028
6028
  }, Ny = Et(function(e) {
6029
- var t = e.onResizeStart, i = e.direction, s = e.children, o = e.replaceStyles, n = e.className, r = D(function(c) {
6029
+ var t = e.onResizeStart, i = e.direction, s = e.children, o = e.replaceStyles, n = e.className, r = P(function(c) {
6030
6030
  t(c, i);
6031
- }, [t, i]), a = D(function(c) {
6031
+ }, [t, i]), a = P(function(c) {
6032
6032
  t(c, i);
6033
6033
  }, [t, i]), l = B(function() {
6034
6034
  return at(at({ position: "absolute", userSelect: "none" }, Oy[i]), o ?? {});
@@ -6281,8 +6281,8 @@ var Ba = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(Ba ||
6281
6281
  }, t.prototype.calculateNewSizeFromAspectRatio = function(i, s, o, n) {
6282
6282
  var r = this.props, a = r.lockAspectRatio, l = r.lockAspectRatioExtraHeight, c = r.lockAspectRatioExtraWidth, d = typeof n.width > "u" ? 10 : n.width, u = typeof o.width > "u" || o.width < 0 ? i : o.width, h = typeof n.height > "u" ? 10 : n.height, p = typeof o.height > "u" || o.height < 0 ? s : o.height, g = l || 0, m = c || 0;
6283
6283
  if (a) {
6284
- var v = (h - g) * this.ratio + m, C = (p - g) * this.ratio + m, w = (d - m) / this.ratio + g, b = (u - m) / this.ratio + g, x = Math.max(d, v), y = Math.min(u, C), R = Math.max(h, w), S = Math.min(p, b);
6285
- i = Jr(i, x, y), s = Jr(s, R, S);
6284
+ var v = (h - g) * this.ratio + m, C = (p - g) * this.ratio + m, w = (d - m) / this.ratio + g, b = (u - m) / this.ratio + g, x = Math.max(d, v), y = Math.min(u, C), F = Math.max(h, w), S = Math.min(p, b);
6285
+ i = Jr(i, x, y), s = Jr(s, F, S);
6286
6286
  } else
6287
6287
  i = Jr(i, d, u), s = Jr(s, h, p);
6288
6288
  return { newWidth: i, newHeight: s };
@@ -6347,10 +6347,10 @@ var Ba = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(Ba ||
6347
6347
  n = C.maxWidth, r = C.maxHeight, a = C.minWidth, l = C.minHeight;
6348
6348
  var w = this.calculateNewSizeFromDirection(c, d), b = w.newHeight, x = w.newWidth, y = this.calculateNewMaxFromBoundary(n, r);
6349
6349
  this.props.snap && this.props.snap.x && (x = yp(x, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (b = yp(b, this.props.snap.y, this.props.snapGap));
6350
- var R = this.calculateNewSizeFromAspectRatio(x, b, { width: y.maxWidth, height: y.maxHeight }, { width: a, height: l });
6351
- if (x = R.newWidth, b = R.newHeight, this.props.grid) {
6352
- var S = xp(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), F = xp(b, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), T = this.props.snapGap || 0, E = T === 0 || Math.abs(S - x) <= T ? S : x, P = T === 0 || Math.abs(F - b) <= T ? F : b;
6353
- x = E, b = P;
6350
+ var F = this.calculateNewSizeFromAspectRatio(x, b, { width: y.maxWidth, height: y.maxHeight }, { width: a, height: l });
6351
+ if (x = F.newWidth, b = F.newHeight, this.props.grid) {
6352
+ var S = xp(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), R = xp(b, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), E = this.props.snapGap || 0, D = E === 0 || Math.abs(S - x) <= E ? S : x, T = E === 0 || Math.abs(R - b) <= E ? R : b;
6353
+ x = D, b = T;
6354
6354
  }
6355
6355
  var k = {
6356
6356
  width: x - p.width,
@@ -6478,9 +6478,9 @@ const _y = ({ side: e, className: t }) => {
6478
6478
  resizeHandlerClassName: l,
6479
6479
  resizeHandler: c
6480
6480
  }) => {
6481
- const [d, u] = I(!1), [h, p] = I(o), g = s !== void 0, m = g ? s : h, v = O(null), C = D(() => {
6481
+ const [d, u] = I(!1), [h, p] = I(o), g = s !== void 0, m = g ? s : h, v = O(null), C = P(() => {
6482
6482
  u(!0);
6483
- }, []), w = D(() => {
6483
+ }, []), w = P(() => {
6484
6484
  u(!1);
6485
6485
  const x = v.current?.resizable?.getBoundingClientRect(), y = x ? Math.round(x.width) : t;
6486
6486
  g || p(y), n?.(y);
@@ -6516,9 +6516,9 @@ const _y = ({ side: e, className: t }) => {
6516
6516
  right: x ? void 0 : y
6517
6517
  },
6518
6518
  onResizeStart: C,
6519
- onResize: (R, S, F) => {
6520
- const T = Math.round(F.offsetWidth);
6521
- r?.(T);
6519
+ onResize: (F, S, R) => {
6520
+ const E = Math.round(R.offsetWidth);
6521
+ r?.(E);
6522
6522
  },
6523
6523
  onResizeStop: w
6524
6524
  };
@@ -6570,15 +6570,15 @@ const Ky = (e) => {
6570
6570
  c
6571
6571
  );
6572
6572
  if (r !== di.Default) {
6573
- const F = ce(
6573
+ const R = ce(
6574
6574
  u,
6575
6575
  r === di.Circular && "rounded-full",
6576
6576
  r === di.Rectangular && "rounded",
6577
6577
  r === di.Text && "rounded"
6578
- ), T = {};
6579
- return a && (T.width = typeof a == "number" ? `${a}px` : a), l && (T.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ f.jsx("div", { className: F, style: T, ...d });
6578
+ ), E = {};
6579
+ return a && (E.width = typeof a == "number" ? `${a}px` : a), l && (E.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ f.jsx("div", { className: R, style: E, ...d });
6580
6580
  }
6581
- const h = !!i, p = !!s, g = !!t, m = typeof i == "object" ? i : {}, v = typeof s == "object" ? s : {}, C = typeof t == "object" ? t : {}, w = Ky(m.size), b = m.shape ?? Pd.Circle, x = v.width ?? "38%", y = C.rows ?? 3, R = C.width, S = (F) => R ? Array.isArray(R) ? R[F] ?? "100%" : R : F === y - 1 ? "61%" : "100%";
6581
+ const h = !!i, p = !!s, g = !!t, m = typeof i == "object" ? i : {}, v = typeof s == "object" ? s : {}, C = typeof t == "object" ? t : {}, w = Ky(m.size), b = m.shape ?? Pd.Circle, x = v.width ?? "38%", y = C.rows ?? 3, F = C.width, S = (R) => F ? Array.isArray(F) ? F[R] ?? "100%" : F : R === y - 1 ? "61%" : "100%";
6582
6582
  return /* @__PURE__ */ f.jsxs("div", { ...d, className: ce("flex gap-4", c), children: [
6583
6583
  h && /* @__PURE__ */ f.jsx(
6584
6584
  "div",
@@ -6599,13 +6599,13 @@ const Ky = (e) => {
6599
6599
  style: { width: x }
6600
6600
  }
6601
6601
  ),
6602
- g && /* @__PURE__ */ f.jsx("div", { className: "flex flex-col gap-3", children: Array.from({ length: y }).map((F, T) => /* @__PURE__ */ f.jsx(
6602
+ g && /* @__PURE__ */ f.jsx("div", { className: "flex flex-col gap-3", children: Array.from({ length: y }).map((R, E) => /* @__PURE__ */ f.jsx(
6603
6603
  "div",
6604
6604
  {
6605
6605
  className: ce(u, "h-4 rounded"),
6606
- style: { width: S(T) }
6606
+ style: { width: S(E) }
6607
6607
  },
6608
- T
6608
+ E
6609
6609
  )) })
6610
6610
  ] })
6611
6611
  ] });
@@ -8882,29 +8882,29 @@ function hi(e, t, i) {
8882
8882
  return !1;
8883
8883
  if (t?.state && !t.state.forEach)
8884
8884
  return K(32), !1;
8885
- const C = (y, R, S, F, T) => {
8885
+ const C = (y, F, S, R, E) => {
8886
8886
  if (!y)
8887
8887
  return;
8888
- const E = wR(R, t.defaultState), P = E("flex").value1;
8888
+ const D = wR(F, t.defaultState), T = D("flex").value1;
8889
8889
  if (qm(
8890
8890
  e,
8891
8891
  y,
8892
- E("hide").value1,
8893
- E("sort").value1,
8894
- E("sortIndex").value1,
8895
- E("pinned").value1,
8896
- P,
8892
+ D("hide").value1,
8893
+ D("sort").value1,
8894
+ D("sortIndex").value1,
8895
+ D("pinned").value1,
8896
+ T,
8897
8897
  i
8898
- ), P == null) {
8899
- const k = E("width").value1;
8898
+ ), T == null) {
8899
+ const k = D("width").value1;
8900
8900
  if (k != null) {
8901
8901
  const G = y.getColDef().minWidth ?? u.getDefaultColumnMinWidth();
8902
8902
  G != null && k >= G && y.setActualWidth(k, i);
8903
8903
  }
8904
8904
  }
8905
- T || !y.isPrimary() || (h?.syncColumnWithState(y, i, E), o?.syncColumnWithState(y, i, E, S), n?.syncColumnWithState(y, i, E, F));
8906
- }, w = (y, R, S) => {
8907
- const F = Qm(e, i), T = R.slice(), E = {}, P = {}, k = [], G = [], Y = [];
8905
+ E || !y.isPrimary() || (h?.syncColumnWithState(y, i, D), o?.syncColumnWithState(y, i, D, S), n?.syncColumnWithState(y, i, D, R));
8906
+ }, w = (y, F, S) => {
8907
+ const R = Qm(e, i), E = F.slice(), D = {}, T = {}, k = [], G = [], Y = [];
8908
8908
  let N = 0;
8909
8909
  const j = o?.columns.slice() ?? [], V = n?.columns.slice() ?? [];
8910
8910
  for (const M of y) {
@@ -8918,10 +8918,10 @@ function hi(e, t, i) {
8918
8918
  continue;
8919
8919
  }
8920
8920
  const _ = S(W);
8921
- _ ? (C(_, M, E, P, !1), pi(T, _)) : (Y.push(M), N += 1);
8921
+ _ ? (C(_, M, D, T, !1), pi(E, _)) : (Y.push(M), N += 1);
8922
8922
  }
8923
- const L = (M) => C(M, null, E, P, !1);
8924
- T.forEach(L), o?.sortColumns(Op.bind(o, E, j)), n?.sortColumns(Op.bind(n, P, V)), s.refreshCols(!1, i);
8923
+ const L = (M) => C(M, null, D, T, !1);
8924
+ E.forEach(L), o?.sortColumns(Op.bind(o, D, j)), n?.sortColumns(Op.bind(n, T, V)), s.refreshCols(!1, i);
8925
8925
  const pe = (M, W, q = []) => {
8926
8926
  for (const _ of W) {
8927
8927
  const le = M(_.colId);
@@ -8940,7 +8940,7 @@ function hi(e, t, i) {
8940
8940
  ), IR(t, s, g), c.refresh(i), p.dispatchEvent({
8941
8941
  type: "columnEverythingChanged",
8942
8942
  source: i
8943
- }), F(), { unmatchedAndAutoStates: Y, unmatchedCount: N };
8943
+ }), R(), { unmatchedAndAutoStates: Y, unmatchedCount: N };
8944
8944
  };
8945
8945
  l?.start();
8946
8946
  let { unmatchedAndAutoStates: b, unmatchedCount: x } = w(
@@ -8953,7 +8953,7 @@ function hi(e, t, i) {
8953
8953
  x = w(
8954
8954
  b,
8955
8955
  y,
8956
- (R) => d?.getPivotResultCol(R) ?? null
8956
+ (F) => d?.getPivotResultCol(F) ?? null
8957
8957
  ).unmatchedCount;
8958
8958
  }
8959
8959
  return l?.finish(), x === 0;
@@ -8981,27 +8981,27 @@ function Qm(e, t) {
8981
8981
  for (const u of c)
8982
8982
  d[u.colId] = u;
8983
8983
  return () => {
8984
- const u = (R, S, F, T) => {
8985
- const E = S.map(T), P = F.map(T);
8986
- if (ms(E, P))
8984
+ const u = (F, S, R, E) => {
8985
+ const D = S.map(E), T = R.map(E);
8986
+ if (ms(D, T))
8987
8987
  return;
8988
8988
  const G = new Set(S);
8989
- for (const N of F)
8989
+ for (const N of R)
8990
8990
  G.delete(N) || G.add(N);
8991
8991
  const Y = [...G];
8992
8992
  a.dispatchEvent({
8993
- type: R,
8993
+ type: F,
8994
8994
  columns: Y,
8995
8995
  column: Y.length === 1 ? Y[0] : null,
8996
8996
  source: t
8997
8997
  });
8998
- }, h = (R) => {
8998
+ }, h = (F) => {
8999
8999
  const S = [];
9000
- return n.forAllCols((F) => {
9001
- const T = d[F.getColId()];
9002
- T && R(T, F) && S.push(F);
9000
+ return n.forAllCols((R) => {
9001
+ const E = d[R.getColId()];
9002
+ E && F(E, R) && S.push(R);
9003
9003
  }), S;
9004
- }, p = (R) => R.getColId();
9004
+ }, p = (F) => F.getColId();
9005
9005
  u(
9006
9006
  "columnRowGroupChanged",
9007
9007
  l.rowGroupColumns,
@@ -9013,12 +9013,12 @@ function Qm(e, t) {
9013
9013
  s?.columns ?? [],
9014
9014
  p
9015
9015
  );
9016
- const m = h((R, S) => {
9017
- const F = R.aggFunc != null, T = F != S.isValueActive(), E = F && R.aggFunc != S.getAggFunc();
9018
- return T || E;
9016
+ const m = h((F, S) => {
9017
+ const R = F.aggFunc != null, E = R != S.isValueActive(), D = R && F.aggFunc != S.getAggFunc();
9018
+ return E || D;
9019
9019
  });
9020
- m.length > 0 && MR(a, "columnValueChanged", m, t), jo(a, h((R, S) => R.width != S.getActualWidth()), !0, t), Xm(a, h((R, S) => R.pinned != S.getPinned()), t), TR(a, h((R, S) => R.hide == S.isVisible()), t);
9021
- const x = h((R, S) => R.sort != S.getSort() || R.sortIndex != S.getSortIndex());
9020
+ m.length > 0 && MR(a, "columnValueChanged", m, t), jo(a, h((F, S) => F.width != S.getActualWidth()), !0, t), Xm(a, h((F, S) => F.pinned != S.getPinned()), t), TR(a, h((F, S) => F.hide == S.isVisible()), t);
9021
+ const x = h((F, S) => F.sort != S.getSort() || F.sortIndex != S.getSortIndex());
9022
9022
  x.length > 0 && r?.dispatchSortChangedEvents(t, x);
9023
9023
  const y = Qa(e);
9024
9024
  LR(c, y, t, n, a);
@@ -14611,9 +14611,9 @@ var Da = {
14611
14611
  let u, h, p = 0;
14612
14612
  this.invalidateVerticalScroll();
14613
14613
  do {
14614
- const { stickyTopHeight: g, stickyBottomHeight: m } = c, v = d.rowTop, C = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, x = b + d.rowHeight, y = this.getVScrollPosition(), R = a.divStretchOffset, S = y.top + R, F = y.bottom + R, T = F - S, E = a.getScrollPositionForPixel(b), P = a.getScrollPositionForPixel(x - T), k = Math.min((E + P) / 2, b), G = S + g > b, Y = F - m < x;
14614
+ const { stickyTopHeight: g, stickyBottomHeight: m } = c, v = d.rowTop, C = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, x = b + d.rowHeight, y = this.getVScrollPosition(), F = a.divStretchOffset, S = y.top + F, R = y.bottom + F, E = R - S, D = a.getScrollPositionForPixel(b), T = a.getScrollPositionForPixel(x - E), k = Math.min((D + T) / 2, b), G = S + g > b, Y = R - m < x;
14615
14615
  let N = null;
14616
- t === "top" ? N = E - g : t === "bottom" ? N = P + m : t === "middle" ? N = k : G ? N = E - g : Y && (P - E > T ? N = E - g : N = P + m), N !== null && (this.setVerticalScrollPosition(N), l.redraw({ afterScroll: !0 })), u = v !== d.rowTop || C !== d.rowHeight, h = g !== c.stickyTopHeight || m !== c.stickyBottomHeight, p++;
14616
+ t === "top" ? N = D - g : t === "bottom" ? N = T + m : t === "middle" ? N = k : G ? N = D - g : Y && (T - D > E ? N = D - g : N = T + m), N !== null && (this.setVerticalScrollPosition(N), l.redraw({ afterScroll: !0 })), u = v !== d.rowTop || C !== d.rowHeight, h = g !== c.stickyTopHeight || m !== c.stickyBottomHeight, p++;
14617
14617
  } while ((u || h) && p < 10);
14618
14618
  if (this.animationFrameSvc?.flushAllFrames(), i < 10 && (d?.stub || !this.beans.rowAutoHeight?.areRowsMeasured())) {
14619
14619
  const g = this.getVScrollPosition().top;
@@ -20251,8 +20251,8 @@ function DD(e) {
20251
20251
  for (; b <= x && c.indexOf(y) < 0; )
20252
20252
  b++, C.push(b), y = d[b];
20253
20253
  b = v - 1;
20254
- const R = 0;
20255
- for (; b >= R; )
20254
+ const F = 0;
20255
+ for (; b >= F; )
20256
20256
  C.push(b), b--;
20257
20257
  C.sort(w).reverse();
20258
20258
  }
@@ -21126,22 +21126,22 @@ var VD = class extends H {
21126
21126
  v = !1;
21127
21127
  const w = [];
21128
21128
  let b = 0, x = u;
21129
- h.forEach((R, S) => {
21130
- if (m[R.getId()])
21131
- x -= g[R.getId()];
21129
+ h.forEach((F, S) => {
21130
+ if (m[F.getId()])
21131
+ x -= g[F.getId()];
21132
21132
  else {
21133
- w.push(R);
21134
- const T = p[S];
21135
- b += T;
21133
+ w.push(F);
21134
+ const E = p[S];
21135
+ b += E;
21136
21136
  }
21137
21137
  });
21138
21138
  const y = 1 / b;
21139
- w.forEach((R, S) => {
21140
- const F = S === w.length - 1;
21141
- let T;
21142
- F ? T = x : (T = Math.round(p[S] * u * y), x -= T);
21143
- const E = R.getMinWidth(), P = R.getMaxWidth();
21144
- T < E ? (T = E, m[R.getId()] = !0, v = !0) : P > 0 && T > P && (T = P, m[R.getId()] = !0, v = !0), g[R.getId()] = T;
21139
+ w.forEach((F, S) => {
21140
+ const R = S === w.length - 1;
21141
+ let E;
21142
+ R ? E = x : (E = Math.round(p[S] * u * y), x -= E);
21143
+ const D = F.getMinWidth(), T = F.getMaxWidth();
21144
+ E < D ? (E = D, m[F.getId()] = !0, v = !0) : T > 0 && E > T && (E = T, m[F.getId()] = !0, v = !0), g[F.getId()] = E;
21145
21145
  });
21146
21146
  }
21147
21147
  for (const w of h) {
@@ -22146,7 +22146,7 @@ var AP = class extends H {
22146
22146
  if (p(y))
22147
22147
  continue;
22148
22148
  v = y, w += m * (y.flex / d);
22149
- const R = w - C, S = Math.round(R);
22149
+ const F = w - C, S = Math.round(F);
22150
22150
  y.targetSize = S, C += S;
22151
22151
  }
22152
22152
  v && (v.targetSize += m - C);
@@ -22154,8 +22154,8 @@ var AP = class extends H {
22154
22154
  for (const y of l) {
22155
22155
  if (p(y))
22156
22156
  continue;
22157
- const R = y.targetSize, S = Math.min(Math.max(R, y.min), y.max);
22158
- b += S - R, y.violationType = S === R ? void 0 : S < R ? "max" : "min", y.targetSize = S;
22157
+ const F = y.targetSize, S = Math.min(Math.max(F, y.min), y.max);
22158
+ b += S - F, y.violationType = S === F ? void 0 : S < F ? "max" : "min", y.targetSize = S;
22159
22159
  }
22160
22160
  const x = b === 0 ? "all" : b > 0 ? "min" : "max";
22161
22161
  for (const y of l)
@@ -27553,18 +27553,18 @@ var Y4 = class extends H {
27553
27553
  return;
27554
27554
  }
27555
27555
  if (!s || !w) {
27556
- const y = h?.isEditing(n), S = u.get("enableCellTextSelection") && e.defaultPrevented, F = (vs() || S) && !y && !Bn(o) && !b;
27557
- n.focusCell(F, e);
27556
+ const y = h?.isEditing(n), S = u.get("enableCellTextSelection") && e.defaultPrevented, R = (vs() || S) && !y && !Bn(o) && !b;
27557
+ n.focusCell(R, e);
27558
27558
  }
27559
27559
  if (s && w && !d.isCellFocused(m)) {
27560
27560
  e.preventDefault();
27561
27561
  const y = d.getFocusedCell();
27562
27562
  if (y) {
27563
- const { column: R, rowIndex: S, rowPinned: F } = y;
27563
+ const { column: F, rowIndex: S, rowPinned: R } = y;
27564
27564
  h?.isEditing(y) && h?.stopEditing(y), d.setFocusedCell({
27565
- column: R,
27565
+ column: F,
27566
27566
  rowIndex: S,
27567
- rowPinned: F,
27567
+ rowPinned: R,
27568
27568
  forceBrowserFocus: !0,
27569
27569
  preventScrollOnBrowserFocus: !0,
27570
27570
  sourceEvent: e
@@ -27578,8 +27578,8 @@ var Y4 = class extends H {
27578
27578
  if (s)
27579
27579
  l.extendLatestRangeToCell(m);
27580
27580
  else if (!y) {
27581
- const R = t || i;
27582
- l.setRangeToCell(m, R);
27581
+ const F = t || i;
27582
+ l.setRangeToCell(m, F);
27583
27583
  }
27584
27584
  }
27585
27585
  C();
@@ -30674,8 +30674,8 @@ var FT = (
30674
30674
  const d = this.getRowBufferInPixels(), u = this.ctrlsSvc.getScrollFeature(), h = this.gos.get("suppressRowVirtualisation");
30675
30675
  let p = !1, g, m;
30676
30676
  do {
30677
- const x = t.getPixelOffset(), { pageFirstPixel: y, pageLastPixel: R } = t.getCurrentPagePixelRange(), S = e.divStretchOffset, F = u.getVScrollPosition(), T = F.top, E = F.bottom;
30678
- h ? (g = y + S, m = R + S) : (g = Math.max(T + x - d, y) + S, m = Math.min(E + x + d, R) + S), this.firstVisibleVPixel = Math.max(T + x, y) + S, this.lastVisibleVPixel = Math.min(E + x, R) + S, p = this.ensureAllRowsInRangeHaveHeightsCalculated(g, m);
30677
+ const x = t.getPixelOffset(), { pageFirstPixel: y, pageLastPixel: F } = t.getCurrentPagePixelRange(), S = e.divStretchOffset, R = u.getVScrollPosition(), E = R.top, D = R.bottom;
30678
+ h ? (g = y + S, m = F + S) : (g = Math.max(E + x - d, y) + S, m = Math.min(D + x + d, F) + S), this.firstVisibleVPixel = Math.max(E + x, y) + S, this.lastVisibleVPixel = Math.min(D + x, F) + S, p = this.ensureAllRowsInRangeHaveHeightsCalculated(g, m);
30679
30679
  } while (p);
30680
30680
  let v = i.getRowIndexAtPixel(g), C = i.getRowIndexAtPixel(m);
30681
30681
  const w = t.getFirstRow(), b = t.getLastRow();
@@ -32137,11 +32137,11 @@ function l6(e, t = !1) {
32137
32137
  pivot: b,
32138
32138
  pivotIndex: x,
32139
32139
  pinned: y,
32140
- hide: R,
32140
+ hide: F,
32141
32141
  width: S,
32142
- flex: F
32142
+ flex: R
32143
32143
  } = e[h];
32144
- d.push(p), g && (i[m ?? u++] = { colId: p, sort: g }), v && (s[C ?? 0] = p), typeof w == "string" && o.push({ colId: p, aggFunc: w }), b && (n[x ?? 0] = p), y && (y === "right" ? a : r).push(p), R && l.push(p), (F != null || S) && c.push({ colId: p, flex: F ?? void 0, width: S });
32144
+ d.push(p), g && (i[m ?? u++] = { colId: p, sort: g }), v && (s[C ?? 0] = p), typeof w == "string" && o.push({ colId: p, aggFunc: w }), b && (n[x ?? 0] = p), y && (y === "right" ? a : r).push(p), F && l.push(p), (R != null || S) && c.push({ colId: p, flex: R ?? void 0, width: S });
32145
32145
  }
32146
32146
  return {
32147
32147
  sort: i.length ? { sortModel: Kc(i) } : void 0,
@@ -39080,17 +39080,17 @@ var cI = {
39080
39080
  C.data !== w && (C.updateData(w), r.has(C) || a.add(C), !C.selectable && C.isSelected() && c.push(C));
39081
39081
  }, m = (C, w, b) => {
39082
39082
  for (let x = 0, y = w.length; x < y; ++x) {
39083
- const R = w[x];
39084
- if (!R)
39083
+ const F = w[x];
39084
+ if (!F)
39085
39085
  continue;
39086
- let S = this.getRowNode(o({ data: R, level: b }));
39087
- if (S ? (g(S, R), p || (p = !!d && S.treeParent !== C)) : (S = this.createRowNode(R, b), r.add(S)), !d || l.has(S)) {
39086
+ let S = this.getRowNode(o({ data: F, level: b }));
39087
+ if (S ? (g(S, F), p || (p = !!d && S.treeParent !== C)) : (S = this.createRowNode(F, b), r.add(S)), !d || l.has(S)) {
39088
39088
  l.add(S);
39089
39089
  continue;
39090
39090
  }
39091
39091
  l.add(S), S.treeParent = C;
39092
- const F = d(R);
39093
- F && m(S, F, b + 1);
39092
+ const R = d(F);
39093
+ R && m(S, R, b + 1);
39094
39094
  }
39095
39095
  };
39096
39096
  m(i, t, 0);
@@ -39278,16 +39278,16 @@ var cI = {
39278
39278
  x && (v ?? (v = this.shouldSortContainsGroupCols(e)), x && (x = !v));
39279
39279
  let y = null;
39280
39280
  if (x) {
39281
- let R = !1;
39281
+ let F = !1;
39282
39282
  if (h) {
39283
39283
  const S = w.level + 1;
39284
- S < h.length && (R = h[S].getSort() === null);
39284
+ S < h.length && (F = h[S].getSort() === null);
39285
39285
  }
39286
- R || (y = SI(w));
39286
+ F || (y = SI(w));
39287
39287
  } else !e.length || b || (t && i ? y = xI(a, w, i, s, e) : y = a.doFullSort(w.childrenAfterAggFilter, e));
39288
39288
  if (y || (y = w.childrenAfterAggFilter?.slice(0) ?? []), m || (m = w.childrenAfterSort?.[0] !== y[0]), w.childrenAfterSort = y, aw(w), g) {
39289
- const R = { nodes: w.childrenAfterSort };
39290
- g(R);
39289
+ const F = { nodes: w.childrenAfterSort };
39290
+ g(F);
39291
39291
  }
39292
39292
  };
39293
39293
  if (s?.forEachChangedNodeDepthFirst(C), m && o.get("groupHideOpenParents")) {
@@ -41101,29 +41101,29 @@ var gA = class extends H {
41101
41101
  columnOrder: u
41102
41102
  } = e;
41103
41103
  let h = !1;
41104
- const p = (P, k) => {
41105
- const G = !s?.has(P) && !!(k || t === "api");
41104
+ const p = (T, k) => {
41105
+ const G = !s?.has(T) && !!(k || t === "api");
41106
41106
  return h || (h = G), G;
41107
- }, g = {}, m = (P) => {
41108
- let k = g[P];
41109
- return k || (k = { colId: P }, g[P] = k, k);
41107
+ }, g = {}, m = (T) => {
41108
+ let k = g[T];
41109
+ return k || (k = { colId: T }, g[T] = k, k);
41110
41110
  }, v = {}, C = p("sort", o);
41111
- C && o?.sortModel.forEach(({ colId: P, sort: k }, G) => {
41112
- const Y = m(P);
41111
+ C && o?.sortModel.forEach(({ colId: T, sort: k }, G) => {
41112
+ const Y = m(T);
41113
41113
  Y.sort = k, Y.sortIndex = G;
41114
41114
  }), (C || !i) && (v.sort = null, v.sortIndex = null);
41115
41115
  const w = p("rowGroup", n);
41116
- w && n?.groupColIds.forEach((P, k) => {
41117
- const G = m(P);
41116
+ w && n?.groupColIds.forEach((T, k) => {
41117
+ const G = m(T);
41118
41118
  G.rowGroup = !0, G.rowGroupIndex = k;
41119
41119
  }), (w || !i) && (v.rowGroup = null, v.rowGroupIndex = null);
41120
41120
  const b = p("aggregation", r);
41121
- b && r?.aggregationModel.forEach(({ colId: P, aggFunc: k }) => {
41122
- m(P).aggFunc = k;
41121
+ b && r?.aggregationModel.forEach(({ colId: T, aggFunc: k }) => {
41122
+ m(T).aggFunc = k;
41123
41123
  }), (b || !i) && (v.aggFunc = null);
41124
41124
  const x = p("pivot", a);
41125
- x && (a?.pivotColIds.forEach((P, k) => {
41126
- const G = m(P);
41125
+ x && (a?.pivotColIds.forEach((T, k) => {
41126
+ const G = m(T);
41127
41127
  G.pivot = !0, G.pivotIndex = k;
41128
41128
  }), this.gos.updateGridOptions({
41129
41129
  options: { pivotMode: !!a?.pivotMode },
@@ -41131,30 +41131,30 @@ var gA = class extends H {
41131
41131
  })), (x || !i) && (v.pivot = null, v.pivotIndex = null);
41132
41132
  const y = p("columnPinning", l);
41133
41133
  if (y) {
41134
- for (const P of l?.leftColIds ?? [])
41135
- m(P).pinned = "left";
41136
- for (const P of l?.rightColIds ?? [])
41137
- m(P).pinned = "right";
41134
+ for (const T of l?.leftColIds ?? [])
41135
+ m(T).pinned = "left";
41136
+ for (const T of l?.rightColIds ?? [])
41137
+ m(T).pinned = "right";
41138
41138
  }
41139
41139
  (y || !i) && (v.pinned = null);
41140
- const R = p("columnVisibility", c);
41141
- if (R)
41142
- for (const P of c?.hiddenColIds ?? [])
41143
- m(P).hide = !0;
41144
- (R || !i) && (v.hide = null);
41140
+ const F = p("columnVisibility", c);
41141
+ if (F)
41142
+ for (const T of c?.hiddenColIds ?? [])
41143
+ m(T).hide = !0;
41144
+ (F || !i) && (v.hide = null);
41145
41145
  const S = p("columnSizing", d);
41146
41146
  if (S)
41147
- for (const { colId: P, flex: k, width: G } of d?.columnSizingModel ?? []) {
41148
- const Y = m(P);
41147
+ for (const { colId: T, flex: k, width: G } of d?.columnSizingModel ?? []) {
41148
+ const Y = m(T);
41149
41149
  Y.flex = k ?? null, Y.width = G;
41150
41150
  }
41151
41151
  (S || !i) && (v.flex = null);
41152
- const F = u?.orderedColIds, T = !!F?.length && !s?.has("columnOrder"), E = T ? F.map((P) => m(P)) : Object.values(g);
41153
- (E.length || h) && (this.columnStates = E, hi(
41152
+ const R = u?.orderedColIds, E = !!R?.length && !s?.has("columnOrder"), D = E ? R.map((T) => m(T)) : Object.values(g);
41153
+ (D.length || h) && (this.columnStates = D, hi(
41154
41154
  this.beans,
41155
41155
  {
41156
- state: E,
41157
- applyOrder: T,
41156
+ state: D,
41157
+ applyOrder: E,
41158
41158
  defaultState: v
41159
41159
  },
41160
41160
  t
@@ -42133,23 +42133,23 @@ var i8 = class extends H {
42133
42133
  const v = /* @__PURE__ */ new Set();
42134
42134
  let C = -1;
42135
42135
  const w = Object.fromEntries(
42136
- c.map(({ colId: y, ...R }) => [y, R])
42136
+ c.map(({ colId: y, ...F }) => [y, F])
42137
42137
  ), b = o ?? this.gos.get("skipHeaderOnAutoSize"), x = n ?? b;
42138
42138
  for (; C !== 0; ) {
42139
42139
  C = 0;
42140
42140
  const y = [];
42141
- for (const R of s) {
42142
- if (!R || mR(R))
42141
+ for (const F of s) {
42142
+ if (!F || mR(F))
42143
42143
  continue;
42144
- const S = p.getCol(R);
42144
+ const S = p.getCol(F);
42145
42145
  if (!S || v.has(S))
42146
42146
  continue;
42147
- const F = g.getPreferredWidthForColumn(S, b);
42148
- if (F > 0) {
42149
- const T = w[S.colId] ?? {};
42150
- T.minWidth ?? (T.minWidth = l), T.maxWidth ?? (T.maxWidth = a);
42151
- const E = s8(S, F, T);
42152
- S.setActualWidth(E, d), v.add(S), C++;
42147
+ const R = g.getPreferredWidthForColumn(S, b);
42148
+ if (R > 0) {
42149
+ const E = w[S.colId] ?? {};
42150
+ E.minWidth ?? (E.minWidth = l), E.maxWidth ?? (E.maxWidth = a);
42151
+ const D = s8(S, R, E);
42152
+ S.setActualWidth(D, d), v.add(S), C++;
42153
42153
  }
42154
42154
  y.push(S);
42155
42155
  }
@@ -42272,9 +42272,9 @@ var i8 = class extends H {
42272
42272
  const m = g / Hi(l);
42273
42273
  let v = g;
42274
42274
  for (let C = l.length - 1; C >= 0; C--) {
42275
- const w = l[C], b = o?.[w.getId()], x = b?.minWidth ?? s?.defaultMinWidth, y = b?.maxWidth ?? s?.defaultMaxWidth, R = w.getMinWidth(), S = w.getMaxWidth(), F = typeof x == "number" && x > R ? x : R, T = typeof y == "number" && y < S ? y : S;
42276
- let E = Math.round(w.getActualWidth() * m);
42277
- E < F ? (E = F, h(w), u = !1) : E > T ? (E = T, h(w), u = !1) : C === 0 && (E = v), w.setActualWidth(E, t, !0), v -= E;
42275
+ const w = l[C], b = o?.[w.getId()], x = b?.minWidth ?? s?.defaultMinWidth, y = b?.maxWidth ?? s?.defaultMaxWidth, F = w.getMinWidth(), S = w.getMaxWidth(), R = typeof x == "number" && x > F ? x : F, E = typeof y == "number" && y < S ? y : S;
42276
+ let D = Math.round(w.getActualWidth() * m);
42277
+ D < R ? (D = R, h(w), u = !1) : D > E ? (D = E, h(w), u = !1) : C === 0 && (D = v), w.setActualWidth(D, t, !0), v -= D;
42278
42278
  }
42279
42279
  }
42280
42280
  }
@@ -42445,7 +42445,7 @@ var u8 = {
42445
42445
  }
42446
42446
  const y = n.getValue(t, b);
42447
42447
  if (p) {
42448
- const R = Fe(i, {
42448
+ const F = Fe(i, {
42449
42449
  valueA: v,
42450
42450
  nodeA: g,
42451
42451
  valueB: y,
@@ -42453,7 +42453,7 @@ var u8 = {
42453
42453
  column: t,
42454
42454
  colDef: a
42455
42455
  });
42456
- if (!h(R)) {
42456
+ if (!h(F)) {
42457
42457
  C(b, y);
42458
42458
  return;
42459
42459
  }
@@ -42462,8 +42462,8 @@ var u8 = {
42462
42462
  return;
42463
42463
  }
42464
42464
  if (!m) {
42465
- const R = l?.get(g);
42466
- R?.firstNode === g ? (R.reset(), m = R) : m = new h8(t, g), c.set(g, m);
42465
+ const F = l?.get(g);
42466
+ F?.firstNode === g ? (F.reset(), m = F) : m = new h8(t, g), c.set(g, m);
42467
42467
  }
42468
42468
  m.addSpannedNode(b), c.set(b, m);
42469
42469
  };
@@ -43852,14 +43852,14 @@ function cl(e, t, i) {
43852
43852
  return s.length === e.length && o.length === 0 ? e : s.length === 0 && o.length === t.length ? t : s.length === 0 ? o : o.length === 0 ? s : [...s, ...o];
43853
43853
  }
43854
43854
  var fw = fu((e, t) => {
43855
- const { registry: i, context: s } = gt(Dt), o = O(null), n = O(null), r = O(null), a = O(null), l = O(null), c = O(), [d, u] = I(), [h, p] = I(), [g, m] = I(), [v, C] = I(() => new ii()), [w, b] = I(() => new ii("ag-hidden")), [x, y] = I(() => new ii("ag-hidden")), [R, S] = I(() => new ii("ag-invisible"));
43855
+ const { registry: i, context: s } = gt(Dt), o = O(null), n = O(null), r = O(null), a = O(null), l = O(null), c = O(), [d, u] = I(), [h, p] = I(), [g, m] = I(), [v, C] = I(() => new ii()), [w, b] = I(() => new ii("ag-hidden")), [x, y] = I(() => new ii("ag-hidden")), [F, S] = I(() => new ii("ag-invisible"));
43856
43856
  dr(t, () => ({
43857
43857
  // force new instance when grid tries to refresh
43858
43858
  refresh() {
43859
43859
  return !1;
43860
43860
  }
43861
43861
  })), ui(() => Cr(d, s, n.current), [d]);
43862
- const F = D((V) => {
43862
+ const R = P((V) => {
43863
43863
  if (o.current = V, !V || s.isDestroyed()) {
43864
43864
  c.current = s.destroyBean(c.current);
43865
43865
  return;
@@ -43884,19 +43884,19 @@ var fw = fu((e, t) => {
43884
43884
  fw,
43885
43885
  e
43886
43886
  ));
43887
- }, []), T = B(() => `ag-cell-wrapper ${v.toString()}`, [v]), E = B(() => `ag-group-expanded ${w.toString()}`, [w]), P = B(
43887
+ }, []), E = B(() => `ag-cell-wrapper ${v.toString()}`, [v]), D = B(() => `ag-group-expanded ${w.toString()}`, [w]), T = B(
43888
43888
  () => `ag-group-contracted ${x.toString()}`,
43889
43889
  [x]
43890
- ), k = B(() => `ag-group-checkbox ${R.toString()}`, [R]), G = d?.componentFromFramework, Y = G ? d.componentClass : void 0, N = d == null && g != null, j = Jo(g);
43890
+ ), k = B(() => `ag-group-checkbox ${F.toString()}`, [F]), G = d?.componentFromFramework, Y = G ? d.componentClass : void 0, N = d == null && g != null, j = Jo(g);
43891
43891
  return /* @__PURE__ */ X.createElement(
43892
43892
  "span",
43893
43893
  {
43894
- className: T,
43895
- ref: F,
43894
+ className: E,
43895
+ ref: R,
43896
43896
  ...e.colDef ? {} : { role: c.current?.getCellAriaRole() }
43897
43897
  },
43898
- /* @__PURE__ */ X.createElement("span", { className: E, ref: a }),
43899
- /* @__PURE__ */ X.createElement("span", { className: P, ref: l }),
43898
+ /* @__PURE__ */ X.createElement("span", { className: D, ref: a }),
43899
+ /* @__PURE__ */ X.createElement("span", { className: T, ref: l }),
43900
43900
  /* @__PURE__ */ X.createElement("span", { className: k, ref: r }),
43901
43901
  /* @__PURE__ */ X.createElement("span", { className: "ag-group-value", ref: n }, N ? j : G ? /* @__PURE__ */ X.createElement(Y, { ...d.params }) : null),
43902
43902
  /* @__PURE__ */ X.createElement("span", { className: "ag-group-child-count" }, h)
@@ -44352,7 +44352,7 @@ var cL = 1e3, dL = class {
44352
44352
  }, uL = ({ ctrl: e }) => {
44353
44353
  const t = e.isAlive(), { context: i } = gt(Dt), [s, o] = I(), [n, r] = I(), a = O(), l = O(null), c = O(null), d = O(null), u = O(), h = O();
44354
44354
  t && !h.current && (h.current = new pr(() => l.current));
44355
- const p = D((C) => {
44355
+ const p = P((C) => {
44356
44356
  if (l.current = C, !C || !e.isAlive() || i.isDestroyed()) {
44357
44357
  a.current = i.destroyBean(a.current);
44358
44358
  return;
@@ -44406,14 +44406,14 @@ var cL = 1e3, dL = class {
44406
44406
  () => new ii("ag-header-cell", "ag-floating-filter")
44407
44407
  ), [a, l] = I(() => new ii()), [c, d] = I(
44408
44408
  () => new ii("ag-floating-filter-button", "ag-hidden")
44409
- ), [u, h] = I("false"), [p, g] = I(), [, m] = I(1), v = O(), C = O(null), w = O(null), b = O(null), x = O(null), y = O(), R = O(), S = (M) => {
44409
+ ), [u, h] = I("false"), [p, g] = I(), [, m] = I(1), v = O(), C = O(null), w = O(null), b = O(null), x = O(null), y = O(), F = O(), S = (M) => {
44410
44410
  M != null && y.current && y.current(M);
44411
- }, F = D((M) => {
44411
+ }, R = P((M) => {
44412
44412
  if (C.current = M, !M || !e.isAlive() || t.isDestroyed()) {
44413
44413
  v.current = t.destroyBean(v.current);
44414
44414
  return;
44415
44415
  }
44416
- v.current = t.createBean(new en()), R.current = new He((q) => {
44416
+ v.current = t.createBean(new en()), F.current = new He((q) => {
44417
44417
  y.current = q;
44418
44418
  });
44419
44419
  const W = {
@@ -44427,7 +44427,7 @@ var cL = 1e3, dL = class {
44427
44427
  C.current && (C.current.style.width = q);
44428
44428
  },
44429
44429
  setCompDetails: (q) => g(q),
44430
- getFloatingFilterComp: () => R.current ? R.current : null,
44430
+ getFloatingFilterComp: () => F.current ? F.current : null,
44431
44431
  setMenuIcon: (q) => x.current?.appendChild(q)
44432
44432
  };
44433
44433
  e.setComp(W, M, x.current, w.current, v.current);
@@ -44436,7 +44436,7 @@ var cL = 1e3, dL = class {
44436
44436
  () => Cr(p, t, w.current, S),
44437
44437
  [p]
44438
44438
  );
44439
- const T = B(() => n.toString(), [n]), E = B(() => a.toString(), [a]), P = B(() => c.toString(), [c]), k = B(() => !!(p && p.componentFromFramework && sn(p.componentClass)), [p]), G = B(() => i.get("reactiveCustomComponents"), []), Y = B(() => i.get("enableFilterHandlers"), []), [N, j] = I();
44439
+ const E = B(() => n.toString(), [n]), D = B(() => a.toString(), [a]), T = B(() => c.toString(), [c]), k = B(() => !!(p && p.componentFromFramework && sn(p.componentClass)), [p]), G = B(() => i.get("reactiveCustomComponents"), []), Y = B(() => i.get("enableFilterHandlers"), []), [N, j] = I();
44440
44440
  Se(() => {
44441
44441
  if (p?.componentFromFramework)
44442
44442
  if (G) {
@@ -44446,7 +44446,7 @@ var cL = 1e3, dL = class {
44446
44446
  Nh();
44447
44447
  }, [p]);
44448
44448
  const V = N?.getProps(), L = p?.componentFromFramework, pe = p?.componentClass;
44449
- return /* @__PURE__ */ X.createElement("div", { ref: F, style: s, className: T, role: "gridcell" }, /* @__PURE__ */ X.createElement("div", { ref: w, className: E, role: "presentation" }, L ? G ? V && /* @__PURE__ */ X.createElement(
44449
+ return /* @__PURE__ */ X.createElement("div", { ref: R, style: s, className: E, role: "gridcell" }, /* @__PURE__ */ X.createElement("div", { ref: w, className: D, role: "presentation" }, L ? G ? V && /* @__PURE__ */ X.createElement(
44450
44450
  Oh.Provider,
44451
44451
  {
44452
44452
  value: {
@@ -44460,7 +44460,7 @@ var cL = 1e3, dL = class {
44460
44460
  {
44461
44461
  ref: b,
44462
44462
  "aria-hidden": u,
44463
- className: P,
44463
+ className: T,
44464
44464
  role: "presentation"
44465
44465
  },
44466
44466
  /* @__PURE__ */ X.createElement(
@@ -44474,56 +44474,56 @@ var cL = 1e3, dL = class {
44474
44474
  )
44475
44475
  ));
44476
44476
  }, fL = Et(gL), mL = ({ ctrl: e }) => {
44477
- const { context: t } = gt(Dt), [i, s] = I(), [o, n] = I(() => new ii()), [r, a] = I(() => new ii()), [l, c] = I("false"), [d, u] = I(), [h, p] = I(), g = O(), m = O(null), v = O(null), C = O(null), w = O(), b = D((T) => {
44478
- if (m.current = T, !T || !e.isAlive() || t.isDestroyed()) {
44477
+ const { context: t } = gt(Dt), [i, s] = I(), [o, n] = I(() => new ii()), [r, a] = I(() => new ii()), [l, c] = I("false"), [d, u] = I(), [h, p] = I(), g = O(), m = O(null), v = O(null), C = O(null), w = O(), b = P((E) => {
44478
+ if (m.current = E, !E || !e.isAlive() || t.isDestroyed()) {
44479
44479
  g.current = t.destroyBean(g.current);
44480
44480
  return;
44481
44481
  }
44482
44482
  g.current = t.createBean(new en());
44483
- const E = {
44484
- setWidth: (P) => {
44485
- m.current && (m.current.style.width = P);
44483
+ const D = {
44484
+ setWidth: (T) => {
44485
+ m.current && (m.current.style.width = T);
44486
44486
  },
44487
- toggleCss: (P, k) => n((G) => G.setClass(P, k)),
44488
- setUserStyles: (P) => s(P),
44489
- setHeaderWrapperHidden: (P) => {
44487
+ toggleCss: (T, k) => n((G) => G.setClass(T, k)),
44488
+ setUserStyles: (T) => s(T),
44489
+ setHeaderWrapperHidden: (T) => {
44490
44490
  const k = C.current;
44491
- k && (P ? k.style.setProperty("display", "none") : k.style.removeProperty("display"));
44491
+ k && (T ? k.style.setProperty("display", "none") : k.style.removeProperty("display"));
44492
44492
  },
44493
- setHeaderWrapperMaxHeight: (P) => {
44493
+ setHeaderWrapperMaxHeight: (T) => {
44494
44494
  const k = C.current;
44495
- k && (P != null ? k.style.setProperty("max-height", `${P}px`) : k.style.removeProperty("max-height"), k.classList.toggle("ag-header-cell-comp-wrapper-limited-height", P != null));
44495
+ k && (T != null ? k.style.setProperty("max-height", `${T}px`) : k.style.removeProperty("max-height"), k.classList.toggle("ag-header-cell-comp-wrapper-limited-height", T != null));
44496
44496
  },
44497
- setUserCompDetails: (P) => p(P),
44498
- setResizableDisplayed: (P) => {
44499
- a((k) => k.setClass("ag-hidden", !P)), c(P ? "false" : "true");
44497
+ setUserCompDetails: (T) => p(T),
44498
+ setResizableDisplayed: (T) => {
44499
+ a((k) => k.setClass("ag-hidden", !T)), c(T ? "false" : "true");
44500
44500
  },
44501
- setAriaExpanded: (P) => u(P),
44501
+ setAriaExpanded: (T) => u(T),
44502
44502
  getUserCompInstance: () => w.current || void 0
44503
44503
  };
44504
- e.setComp(E, T, v.current, C.current, g.current);
44504
+ e.setComp(D, E, v.current, C.current, g.current);
44505
44505
  }, []);
44506
44506
  ui(() => Cr(h, t, C.current), [h]), Se(() => {
44507
44507
  m.current && e.setDragSource(m.current);
44508
44508
  }, [h]);
44509
- const x = B(() => !!(h?.componentFromFramework && sn(h.componentClass)), [h]), y = B(() => "ag-header-group-cell " + o.toString(), [o]), R = B(
44509
+ const x = B(() => !!(h?.componentFromFramework && sn(h.componentClass)), [h]), y = B(() => "ag-header-group-cell " + o.toString(), [o]), F = B(
44510
44510
  () => "ag-header-cell-resize " + r.toString(),
44511
44511
  [r]
44512
- ), S = h?.componentFromFramework, F = h?.componentClass;
44513
- return /* @__PURE__ */ X.createElement("div", { ref: b, style: i, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ X.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, S ? x ? /* @__PURE__ */ X.createElement(F, { ...h.params }) : /* @__PURE__ */ X.createElement(F, { ...h.params, ref: w }) : null), /* @__PURE__ */ X.createElement("div", { ref: v, "aria-hidden": l, className: R }));
44512
+ ), S = h?.componentFromFramework, R = h?.componentClass;
44513
+ return /* @__PURE__ */ X.createElement("div", { ref: b, style: i, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ X.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, S ? x ? /* @__PURE__ */ X.createElement(R, { ...h.params }) : /* @__PURE__ */ X.createElement(R, { ...h.params, ref: w }) : null), /* @__PURE__ */ X.createElement("div", { ref: v, "aria-hidden": l, className: F }));
44514
44514
  }, vL = Et(mL), CL = ({ ctrl: e }) => {
44515
- const { gos: t, context: i } = gt(Dt), { topOffset: s, rowHeight: o } = B(() => e.getTopAndHeight(), []), n = B(() => t.get("tabIndex"), []), [r, a] = I(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = I(() => o + "px"), [u, h] = I(() => s + "px"), p = O(null), [g, m] = I(() => e.getUpdatedHeaderCtrls()), v = O(), C = O(null), w = D((y) => {
44515
+ const { gos: t, context: i } = gt(Dt), { topOffset: s, rowHeight: o } = B(() => e.getTopAndHeight(), []), n = B(() => t.get("tabIndex"), []), [r, a] = I(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = I(() => o + "px"), [u, h] = I(() => s + "px"), p = O(null), [g, m] = I(() => e.getUpdatedHeaderCtrls()), v = O(), C = O(null), w = P((y) => {
44516
44516
  if (C.current = y, !y || !e.isAlive() || i.isDestroyed()) {
44517
44517
  v.current = i.destroyBean(v.current);
44518
44518
  return;
44519
44519
  }
44520
44520
  v.current = i.createBean(new en());
44521
- const R = {
44521
+ const F = {
44522
44522
  setHeight: (S) => d(S),
44523
44523
  setTop: (S) => h(S),
44524
- setHeaderCtrls: (S, F, T) => {
44525
- const E = p.current, P = cl(E, S, F);
44526
- P !== E && (p.current = P, rr(T, () => m(P)));
44524
+ setHeaderCtrls: (S, R, E) => {
44525
+ const D = p.current, T = cl(D, S, R);
44526
+ T !== D && (p.current = T, rr(E, () => m(T)));
44527
44527
  },
44528
44528
  setWidth: (S) => {
44529
44529
  C.current && (C.current.style.width = S);
@@ -44532,14 +44532,14 @@ var cL = 1e3, dL = class {
44532
44532
  a(S);
44533
44533
  }
44534
44534
  };
44535
- e.setComp(R, v.current, !1);
44535
+ e.setComp(F, v.current, !1);
44536
44536
  }, []), b = B(
44537
44537
  () => ({
44538
44538
  height: c,
44539
44539
  top: u
44540
44540
  }),
44541
44541
  [c, u]
44542
- ), x = D((y) => {
44542
+ ), x = P((y) => {
44543
44543
  switch (e.type) {
44544
44544
  case "group":
44545
44545
  return /* @__PURE__ */ X.createElement(vL, { ctrl: y, key: y.instanceId });
@@ -44562,7 +44562,7 @@ var cL = 1e3, dL = class {
44562
44562
  g.map(x)
44563
44563
  );
44564
44564
  }, wL = Et(CL), bL = ({ pinned: e }) => {
44565
- const [t, i] = I(!0), [s, o] = I([]), { context: n } = gt(Dt), r = O(null), a = O(null), l = O(), c = e === "left", d = e === "right", u = !c && !d, h = D((m) => {
44565
+ const [t, i] = I(!0), [s, o] = I([]), { context: n } = gt(Dt), r = O(null), a = O(null), l = O(), c = e === "left", d = e === "right", u = !c && !d, h = P((m) => {
44566
44566
  if (r.current = m, !m || n.isDestroyed()) {
44567
44567
  l.current = n.destroyBean(l.current);
44568
44568
  return;
@@ -44587,7 +44587,7 @@ var cL = 1e3, dL = class {
44587
44587
  }, []), p = t ? "" : "ag-hidden", g = () => s.map((m) => /* @__PURE__ */ X.createElement(wL, { ctrl: m, key: m.instanceId }));
44588
44588
  return c ? /* @__PURE__ */ X.createElement("div", { ref: h, className: "ag-pinned-left-header " + p, "aria-hidden": !t, role: "rowgroup" }, g()) : d ? /* @__PURE__ */ X.createElement("div", { ref: h, className: "ag-pinned-right-header " + p, "aria-hidden": !t, role: "rowgroup" }, g()) : u ? /* @__PURE__ */ X.createElement("div", { ref: h, className: "ag-header-viewport " + p, role: "rowgroup", tabIndex: -1 }, /* @__PURE__ */ X.createElement("div", { ref: a, className: "ag-header-container", role: "presentation" }, g())) : null;
44589
44589
  }, Qc = Et(bL), xL = () => {
44590
- const [e, t] = I(() => new ii()), [i, s] = I(), { context: o } = gt(Dt), n = O(null), r = O(), a = D((d) => {
44590
+ const [e, t] = I(() => new ii()), [i, s] = I(), { context: o } = gt(Dt), n = O(null), r = O(), a = P((d) => {
44591
44591
  if (n.current = d, !d || o.isDestroyed()) {
44592
44592
  r.current = o.destroyBean(r.current);
44593
44593
  return;
@@ -44731,7 +44731,7 @@ var cL = 1e3, dL = class {
44731
44731
  }
44732
44732
  ) : c && o ? /* @__PURE__ */ X.createElement(Kg, { editDetails: e, cellCtrl: s, eParentCell: i, jsChildComp: o }) : null;
44733
44733
  }, TL = (e, t, i, s, o, n) => {
44734
- const { context: r } = gt(Dt), a = D(() => {
44734
+ const { context: r } = gt(Dt), a = P(() => {
44735
44735
  const l = o.current;
44736
44736
  if (!l)
44737
44737
  return;
@@ -44787,9 +44787,9 @@ var cL = 1e3, dL = class {
44787
44787
  instanceId: r
44788
44788
  } = e, a = O(), [l, c] = I(
44789
44789
  () => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
44790
- ), [d, u] = I(), [h, p] = I(1), [g, m] = I(), [v, C] = I(!1), [w, b] = I(!1), [x, y] = I(!1), [R, S] = I(), F = B(() => e.isForceWrapper(), [e]), T = B(() => e.getCellAriaRole(), [e]), E = O(null), P = O(null), k = O(null), G = O(), Y = O(), N = O(), j = O([]), V = O(), L = O(), [pe, M] = I(0), W = D((ne) => {
44790
+ ), [d, u] = I(), [h, p] = I(1), [g, m] = I(), [v, C] = I(!1), [w, b] = I(!1), [x, y] = I(!1), [F, S] = I(), R = B(() => e.isForceWrapper(), [e]), E = B(() => e.getCellAriaRole(), [e]), D = O(null), T = O(null), k = O(null), G = O(), Y = O(), N = O(), j = O([]), V = O(), L = O(), [pe, M] = I(0), W = P((ne) => {
44791
44791
  L.current = ne, M((ue) => ue + 1);
44792
- }, []), q = l != null && (v || x || w) && (d == null || !!d.popup), _ = F || q, le = B(() => e.getCellValueClass(), [e]), Re = D(
44792
+ }, []), q = l != null && (v || x || w) && (d == null || !!d.popup), _ = R || q, le = B(() => e.getCellValueClass(), [e]), Re = P(
44793
44793
  (ne) => {
44794
44794
  if (Y.current = ne, ne) {
44795
44795
  const ue = ne.isCancelBeforeStart && ne.isCancelBeforeStart();
@@ -44800,7 +44800,7 @@ var cL = 1e3, dL = class {
44800
44800
  },
44801
44801
  [e]
44802
44802
  ), te = O();
44803
- te.current || (te.current = new pr(() => E.current)), Cw(l, _, L.current, pe, G, E);
44803
+ te.current || (te.current = new pr(() => D.current)), Cw(l, _, L.current, pe, G, D);
44804
44804
  const U = O();
44805
44805
  ui(() => {
44806
44806
  const ne = U.current, ue = l;
@@ -44819,7 +44819,7 @@ var cL = 1e3, dL = class {
44819
44819
  if (!xe)
44820
44820
  return;
44821
44821
  const Me = xe.getGui();
44822
- Re(xe), Te || ((F ? N : E).current?.appendChild(Me), xe.afterGuiAttached?.()), S(xe);
44822
+ Re(xe), Te || ((R ? N : D).current?.appendChild(Me), xe.afterGuiAttached?.()), S(xe);
44823
44823
  }), () => {
44824
44824
  Ge.then((xe) => {
44825
44825
  const Me = xe.getGui();
@@ -44827,7 +44827,7 @@ var cL = 1e3, dL = class {
44827
44827
  });
44828
44828
  };
44829
44829
  }, [d]);
44830
- const ve = D(
44830
+ const ve = P(
44831
44831
  (ne) => {
44832
44832
  if (N.current = ne, !ne || o.isDestroyed() || !e.isAlive()) {
44833
44833
  const Ge = j.current;
@@ -44845,8 +44845,8 @@ var cL = 1e3, dL = class {
44845
44845
  v && Te(e.createSelectionCheckbox()), x && Te(e.createDndSource()), w && (ue = e.createRowDragComp(), V.current = ue, ue && (Te(ue), ue.refreshVisibility()));
44846
44846
  },
44847
44847
  [e, o, x, w, v]
44848
- ), re = D(() => {
44849
- const ne = !e.isCellSpanning() || P.current, ue = E.current;
44848
+ ), re = P(() => {
44849
+ const ne = !e.isCellSpanning() || T.current, ue = D.current;
44850
44850
  if (!ue || !ne || !e || !e.isAlive() || o.isDestroyed()) {
44851
44851
  a.current = o.destroyBean(a.current);
44852
44852
  return;
@@ -44855,13 +44855,13 @@ var cL = 1e3, dL = class {
44855
44855
  const Te = {
44856
44856
  toggleCss: (xe, Me) => te.current.toggleCss(xe, Me),
44857
44857
  setUserStyles: (xe) => m(xe),
44858
- getFocusableElement: () => E.current,
44858
+ getFocusableElement: () => D.current,
44859
44859
  setIncludeSelection: (xe) => C(xe),
44860
44860
  setIncludeRowDrag: (xe) => b(xe),
44861
44861
  setIncludeDndSource: (xe) => y(xe),
44862
44862
  getCellEditor: () => Y.current ?? null,
44863
44863
  getCellRenderer: () => k.current ?? G.current,
44864
- getParentOfValue: () => L.current ?? N.current ?? E.current,
44864
+ getParentOfValue: () => L.current ?? N.current ?? D.current,
44865
44865
  setRenderDetails: (xe, Me, Ue) => {
44866
44866
  const qe = () => {
44867
44867
  c((Ne) => Ne?.compDetails !== xe || Ne?.value !== Me || Ne?.force !== Ue ? {
@@ -44899,7 +44899,7 @@ var cL = 1e3, dL = class {
44899
44899
  e.hasBrowserFocus() && Te.getFocusableElement().focus({ preventScroll: !0 }), Y.current = void 0, u(void 0);
44900
44900
  },
44901
44901
  refreshEditStyles: (xe, Me) => {
44902
- if (!E.current)
44902
+ if (!D.current)
44903
44903
  return;
44904
44904
  const { current: Ue } = te;
44905
44905
  Ue.toggleCss("ag-cell-value", !_), Ue.toggleCss("ag-cell-inline-editing", !!xe && !Me), Ue.toggleCss("ag-cell-popup-editing", !!xe && !!Me), Ue.toggleCss("ag-cell-not-inline-editing", !xe || !!Me);
@@ -44908,19 +44908,19 @@ var cL = 1e3, dL = class {
44908
44908
  e.setComp(
44909
44909
  Te,
44910
44910
  ue,
44911
- P.current ?? void 0,
44911
+ T.current ?? void 0,
44912
44912
  Ge,
44913
44913
  t,
44914
44914
  i,
44915
44915
  a.current
44916
44916
  );
44917
- }, []), ee = D((ne) => {
44918
- E.current = ne, re();
44919
- }, []), $ = D((ne) => {
44920
- P.current = ne, re();
44917
+ }, []), ee = P((ne) => {
44918
+ D.current = ne, re();
44919
+ }, []), $ = P((ne) => {
44920
+ T.current = ne, re();
44921
44921
  }, []), de = B(() => !!(l?.compDetails?.componentFromFramework && sn(l.compDetails.componentClass)), [l]);
44922
44922
  ui(() => {
44923
- if (!E.current)
44923
+ if (!D.current)
44924
44924
  return;
44925
44925
  const { current: ne } = te;
44926
44926
  ne.toggleCss("ag-cell-value", !_), ne.toggleCss("ag-cell-inline-editing", !!d && !d.popup), ne.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), ne.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
@@ -44931,39 +44931,39 @@ var cL = 1e3, dL = class {
44931
44931
  return ue?.toString?.() ?? ue;
44932
44932
  if (ne.componentFromFramework) {
44933
44933
  const Te = ne.componentClass;
44934
- return /* @__PURE__ */ X.createElement(bb, { fallback: /* @__PURE__ */ X.createElement(ML, { cellCtrl: e, parent: E }) }, de ? /* @__PURE__ */ X.createElement(Te, { ...ne.params, key: h }) : /* @__PURE__ */ X.createElement(Te, { ...ne.params, key: h, ref: k }));
44934
+ return /* @__PURE__ */ X.createElement(bb, { fallback: /* @__PURE__ */ X.createElement(ML, { cellCtrl: e, parent: D }) }, de ? /* @__PURE__ */ X.createElement(Te, { ...ne.params, key: h }) : /* @__PURE__ */ X.createElement(Te, { ...ne.params, key: h, ref: k }));
44935
44935
  }
44936
44936
  }, Ce = () => {
44937
- const ne = () => l == null ? null : _ ? /* @__PURE__ */ X.createElement("span", { role: "presentation", id: `cell-${r}`, className: le, ref: W }, z()) : z(), ue = (Te) => PL(Te, Re, E.current, e, R);
44937
+ const ne = () => l == null ? null : _ ? /* @__PURE__ */ X.createElement("span", { role: "presentation", id: `cell-${r}`, className: le, ref: W }, z()) : z(), ue = (Te) => PL(Te, Re, D.current, e, F);
44938
44938
  return d != null ? d.popup ? /* @__PURE__ */ X.createElement(X.Fragment, null, ne(), ue(d)) : ue(d) : ne();
44939
- }, fe = () => /* @__PURE__ */ X.createElement("div", { ref: ee, style: g, role: T, "col-id": n }, _ ? /* @__PURE__ */ X.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: ve }, Ce()) : Ce());
44939
+ }, fe = () => /* @__PURE__ */ X.createElement("div", { ref: ee, style: g, role: E, "col-id": n }, _ ? /* @__PURE__ */ X.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: ve }, Ce()) : Ce());
44940
44940
  return e.isCellSpanning() ? /* @__PURE__ */ X.createElement("div", { ref: $, className: "ag-spanned-cell-wrapper", role: "presentation" }, fe()) : fe();
44941
44941
  }, IL = Et(kL), AL = ({ rowCtrl: e, containerType: t }) => {
44942
44942
  const { context: i, gos: s, editSvc: o } = gt(Dt), n = gt(hw) === "default", r = O(), a = O(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = I(
44943
44943
  () => c ? e.rowNode.getRowIndexString() : null
44944
- ), [h, p] = I(() => e.rowId), [g, m] = I(() => e.businessKey), [v, C] = I(() => e.rowStyles), w = O(null), [b, x] = I(() => null), [y, R] = I(), [S, F] = I(
44944
+ ), [h, p] = I(() => e.rowId), [g, m] = I(() => e.businessKey), [v, C] = I(() => e.rowStyles), w = O(null), [b, x] = I(() => null), [y, F] = I(), [S, R] = I(
44945
44945
  () => c ? e.getInitialRowTop(t) : void 0
44946
- ), [T, E] = I(
44946
+ ), [E, D] = I(
44947
44947
  () => c ? e.getInitialTransform(t) : void 0
44948
- ), P = O(null), k = O(), G = O(), Y = O(!1), [N, j] = I(0);
44948
+ ), T = O(null), k = O(), G = O(), Y = O(!1), [N, j] = I(0);
44949
44949
  Se(() => {
44950
44950
  if (Y.current || !y || N > 10)
44951
44951
  return;
44952
- const ee = P.current?.firstChild;
44952
+ const ee = T.current?.firstChild;
44953
44953
  ee ? (e.setupDetailRowAutoHeight(ee), Y.current = !0) : j(($) => $ + 1);
44954
44954
  }, [y, N]);
44955
44955
  const V = O();
44956
- V.current || (V.current = new pr(() => P.current));
44956
+ V.current || (V.current = new pr(() => T.current));
44957
44957
  const L = O(() => {
44958
- }), pe = D((ee) => (L.current = ee, () => {
44958
+ }), pe = P((ee) => (L.current = ee, () => {
44959
44959
  L.current = () => {
44960
44960
  };
44961
44961
  }), []), M = U8(
44962
44962
  pe,
44963
44963
  () => w.current,
44964
44964
  []
44965
- ), W = n ? M : b, q = D((ee) => {
44966
- if (P.current = ee, r.current = ee ? i.createBean(new en()) : i.destroyBean(r.current), !ee) {
44965
+ ), W = n ? M : b, q = P((ee) => {
44966
+ if (T.current = ee, r.current = ee ? i.createBean(new en()) : i.destroyBean(r.current), !ee) {
44967
44967
  e.unsetComp(t);
44968
44968
  return;
44969
44969
  }
@@ -44972,8 +44972,8 @@ var cL = 1e3, dL = class {
44972
44972
  const $ = {
44973
44973
  // the rowTop is managed by state, instead of direct style manipulation by rowCtrl (like all the other styles)
44974
44974
  // as we need to have an initial value when it's placed into he DOM for the first time, for animation to work.
44975
- setTop: F,
44976
- setTransform: E,
44975
+ setTop: R,
44976
+ setTransform: D,
44977
44977
  // i found using React for managing classes at the row level was to slow, as modifying classes caused a lot of
44978
44978
  // React code to execute, so avoiding React for managing CSS Classes made the grid go much faster.
44979
44979
  toggleCss: (de, z) => V.current.toggleCss(de, z),
@@ -44989,13 +44989,13 @@ var cL = 1e3, dL = class {
44989
44989
  fe !== Ce && (w.current = fe, n ? L.current() : rr(z, () => x(fe)));
44990
44990
  },
44991
44991
  showFullWidth: (de) => {
44992
- G.current = de.params, R(de);
44992
+ G.current = de.params, F(de);
44993
44993
  },
44994
44994
  getFullWidthCellRenderer: () => k.current,
44995
44995
  getFullWidthCellRendererParams: () => G.current,
44996
44996
  refreshFullWidth: (de) => {
44997
44997
  const z = de();
44998
- return G.current = z, U.current ? (R((Ce) => ({
44998
+ return G.current = z, U.current ? (F((Ce) => ({
44999
44999
  ...Ce,
45000
45000
  params: z
45001
45001
  })), !0) : !k.current || !k.current.refresh ? !1 : k.current.refresh(z);
@@ -45004,13 +45004,13 @@ var cL = 1e3, dL = class {
45004
45004
  e.setComp($, ee, t, r.current);
45005
45005
  }, []);
45006
45006
  ui(
45007
- () => Cr(y, i, P.current, k),
45007
+ () => Cr(y, i, T.current, k),
45008
45008
  [y]
45009
45009
  );
45010
45010
  const _ = B(() => {
45011
- const ee = { top: S, transform: T };
45011
+ const ee = { top: S, transform: E };
45012
45012
  return Object.assign(ee, v), ee;
45013
- }, [S, T, v]), le = l && y?.componentFromFramework, Re = !l && W != null, te = B(() => !!(y?.componentFromFramework && sn(y.componentClass)), [y]), U = O(!1);
45013
+ }, [S, E, v]), le = l && y?.componentFromFramework, Re = !l && W != null, te = B(() => !!(y?.componentFromFramework && sn(y.componentClass)), [y]), U = O(!1);
45014
45014
  Se(() => {
45015
45015
  U.current = te && !!y && !!s.get("reactiveCustomComponents");
45016
45016
  }, [te, y]);
@@ -45039,13 +45039,13 @@ var cL = 1e3, dL = class {
45039
45039
  Re ? ve() : le ? re() : null
45040
45040
  );
45041
45041
  }, Zg = Et(AL), LL = ({ name: e }) => {
45042
- const { context: t, gos: i } = gt(Dt), s = B(() => fr(e), [e]), o = O(null), n = O(null), r = O(null), a = O([]), l = O([]), [c, d] = I(() => []), u = !!i.get("enableCellSpan") && !!s.getSpannedRowCtrls, h = O([]), p = O([]), [g, m] = I(() => []), v = O(!1), C = O(), w = B(() => Yt("ag-viewport", Ov(e)), [e]), b = B(() => Yt(Ta(e)), [e]), x = B(() => Yt("ag-spanning-container", vE(e)), [e]), y = s.type === "center" || u, R = y ? o : n;
45043
- Ds(" AG Row Container " + e + " ", R);
45044
- const S = D(() => {
45042
+ const { context: t, gos: i } = gt(Dt), s = B(() => fr(e), [e]), o = O(null), n = O(null), r = O(null), a = O([]), l = O([]), [c, d] = I(() => []), u = !!i.get("enableCellSpan") && !!s.getSpannedRowCtrls, h = O([]), p = O([]), [g, m] = I(() => []), v = O(!1), C = O(), w = B(() => Yt("ag-viewport", Ov(e)), [e]), b = B(() => Yt(Ta(e)), [e]), x = B(() => Yt("ag-spanning-container", vE(e)), [e]), y = s.type === "center" || u, F = y ? o : n;
45043
+ Ds(" AG Row Container " + e + " ", F);
45044
+ const S = P(() => {
45045
45045
  const N = !y || o.current != null, j = n.current != null, V = !u || r.current != null;
45046
45046
  return N && j && V;
45047
- }, []), F = D(() => o.current == null && n.current == null && r.current == null, []), T = D(() => {
45048
- if (F() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() && S()) {
45047
+ }, []), R = P(() => o.current == null && n.current == null && r.current == null, []), E = P(() => {
45048
+ if (R() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() && S()) {
45049
45049
  const N = (L) => {
45050
45050
  const pe = cl(
45051
45051
  l.current,
@@ -45092,40 +45092,40 @@ var cL = 1e3, dL = class {
45092
45092
  o.current
45093
45093
  );
45094
45094
  }
45095
- }, [S, F]), E = D(
45095
+ }, [S, R]), D = P(
45096
45096
  (N) => {
45097
- n.current = N, T();
45097
+ n.current = N, E();
45098
45098
  },
45099
- [T]
45100
- ), P = D(
45099
+ [E]
45100
+ ), T = P(
45101
45101
  (N) => {
45102
- r.current = N, T();
45102
+ r.current = N, E();
45103
45103
  },
45104
- [T]
45105
- ), k = D(
45104
+ [E]
45105
+ ), k = P(
45106
45106
  (N) => {
45107
- o.current = N, T();
45107
+ o.current = N, E();
45108
45108
  },
45109
- [T]
45109
+ [E]
45110
45110
  ), G = () => /* @__PURE__ */ X.createElement(
45111
45111
  "div",
45112
45112
  {
45113
45113
  className: b,
45114
- ref: E,
45114
+ ref: D,
45115
45115
  role: y ? "presentation" : "rowgroup"
45116
45116
  },
45117
45117
  c.map((N) => /* @__PURE__ */ X.createElement(Zg, { rowCtrl: N, containerType: s.type, key: N.instanceId }))
45118
45118
  );
45119
45119
  if (!y)
45120
45120
  return G();
45121
- const Y = () => /* @__PURE__ */ X.createElement("div", { className: x, ref: P, role: "presentation" }, g.map((N) => /* @__PURE__ */ X.createElement(Zg, { rowCtrl: N, containerType: s.type, key: N.instanceId })));
45121
+ const Y = () => /* @__PURE__ */ X.createElement("div", { className: x, ref: T, role: "presentation" }, g.map((N) => /* @__PURE__ */ X.createElement(Zg, { rowCtrl: N, containerType: s.type, key: N.instanceId })));
45122
45122
  return /* @__PURE__ */ X.createElement("div", { className: w, ref: k, role: "rowgroup" }, G(), u ? Y() : null);
45123
45123
  }, OL = Et(LL), NL = () => {
45124
- const e = gt(Dt), { context: t, overlays: i } = e, [s, o] = I(""), [n, r] = I(0), [a, l] = I(0), [c, d] = I("0px"), [u, h] = I("0px"), [p, g] = I("100%"), [m, v] = I("0px"), [C, w] = I("0px"), [b, x] = I("100%"), [y, R] = I(!0), [S, F] = I(!0), [T, E] = I(null), [P, k] = I(""), [G, Y] = I(null), [N, j] = I("ag-layout-normal"), V = O();
45124
+ const e = gt(Dt), { context: t, overlays: i } = e, [s, o] = I(""), [n, r] = I(0), [a, l] = I(0), [c, d] = I("0px"), [u, h] = I("0px"), [p, g] = I("100%"), [m, v] = I("0px"), [C, w] = I("0px"), [b, x] = I("100%"), [y, F] = I(!0), [S, R] = I(!0), [E, D] = I(null), [T, k] = I(""), [G, Y] = I(null), [N, j] = I("ag-layout-normal"), V = O();
45125
45125
  V.current || (V.current = new pr(() => L.current));
45126
45126
  const L = O(null), pe = O(null), M = O(null), W = O(null), q = O(null), _ = O(null), le = O(null), Re = O([]), te = O([]);
45127
45127
  Ds(" AG Grid Body ", L), Ds(" AG Pinned Top ", pe), Ds(" AG Sticky Top ", M), Ds(" AG Middle ", _), Ds(" AG Pinned Bottom ", le);
45128
- const U = D((Me) => {
45128
+ const U = P((Me) => {
45129
45129
  if (L.current = Me, !Me || t.isDestroyed()) {
45130
45130
  Re.current = t.destroyBeans(Re.current);
45131
45131
  for (const ze of te.current)
@@ -45157,11 +45157,11 @@ var cL = 1e3, dL = class {
45157
45157
  setStickyTopHeight: d,
45158
45158
  setStickyTopTop: h,
45159
45159
  setStickyTopWidth: g,
45160
- setTopInvisible: R,
45161
- setBottomInvisible: F,
45160
+ setTopInvisible: F,
45161
+ setBottomInvisible: R,
45162
45162
  setColumnMovingCss: (ze, Z) => V.current.toggleCss(ze, Z),
45163
45163
  updateLayoutClasses: j,
45164
- setAlwaysVerticalScrollClass: E,
45164
+ setAlwaysVerticalScrollClass: D,
45165
45165
  setPinnedTopBottomOverflowY: k,
45166
45166
  setCellSelectableCss: (ze, Z) => Y(Z ? ze : null),
45167
45167
  setBodyViewportWidth: (ze) => {
@@ -45192,10 +45192,10 @@ var cL = 1e3, dL = class {
45192
45192
  "ag-body-viewport",
45193
45193
  s,
45194
45194
  N,
45195
- T,
45195
+ E,
45196
45196
  G
45197
45197
  ),
45198
- [s, N, T, G]
45198
+ [s, N, E, G]
45199
45199
  ), ee = B(() => Yt("ag-body", N), [N]), $ = B(
45200
45200
  () => Yt("ag-floating-top", y ? "ag-invisible" : null, G),
45201
45201
  [G, y]
@@ -45209,9 +45209,9 @@ var cL = 1e3, dL = class {
45209
45209
  () => ({
45210
45210
  height: n,
45211
45211
  minHeight: n,
45212
- overflowY: P
45212
+ overflowY: T
45213
45213
  }),
45214
- [n, P]
45214
+ [n, T]
45215
45215
  ), ne = B(
45216
45216
  () => ({
45217
45217
  height: c,
@@ -45230,9 +45230,9 @@ var cL = 1e3, dL = class {
45230
45230
  () => ({
45231
45231
  height: a,
45232
45232
  minHeight: a,
45233
- overflowY: P
45233
+ overflowY: T
45234
45234
  }),
45235
- [a, P]
45235
+ [a, T]
45236
45236
  ), Ge = (Me) => /* @__PURE__ */ X.createElement(OL, { name: Me, key: `${Me}-container` }), xe = ({
45237
45237
  section: Me,
45238
45238
  children: Ue,
@@ -45275,7 +45275,7 @@ var cL = 1e3, dL = class {
45275
45275
  u.current?.forceFocusOutOfContainer(C);
45276
45276
  }
45277
45277
  }));
45278
- const p = D(() => {
45278
+ const p = P(() => {
45279
45279
  const C = c.current, w = d.current;
45280
45280
  if (!C && !w || l.isDestroyed()) {
45281
45281
  u.current = l.destroyBean(u.current);
@@ -45298,12 +45298,12 @@ var cL = 1e3, dL = class {
45298
45298
  })
45299
45299
  );
45300
45300
  }
45301
- }, []), g = D(
45301
+ }, []), g = P(
45302
45302
  (C) => {
45303
45303
  c.current = C, p();
45304
45304
  },
45305
45305
  [p]
45306
- ), m = D(
45306
+ ), m = P(
45307
45307
  (C) => {
45308
45308
  d.current = C, p();
45309
45309
  },
@@ -45322,10 +45322,10 @@ var cL = 1e3, dL = class {
45322
45322
  return /* @__PURE__ */ X.createElement(X.Fragment, null, v("top"), i, v("bottom"));
45323
45323
  }, BL = fu(GL), VL = Et(BL), zL = ({ context: e }) => {
45324
45324
  const [t, i] = I(""), [s, o] = I(""), [n, r] = I(null), [a, l] = I(null), [c, d] = I(!1), [u, h] = I(), p = O(), g = O(null), m = O(), [v, C] = I(null), w = O(() => {
45325
- }), b = O(), x = O([]), y = D(() => {
45325
+ }), b = O(), x = O([]), y = P(() => {
45326
45326
  }, []);
45327
45327
  Ds(" AG Grid ", g);
45328
- const R = D((k) => {
45328
+ const F = P((k) => {
45329
45329
  if (g.current = k, p.current = k ? e.createBean(new A3()) : e.destroyBean(p.current), !k || e.isDestroyed())
45330
45330
  return;
45331
45331
  const G = p.current;
@@ -45391,28 +45391,28 @@ var cL = 1e3, dL = class {
45391
45391
  const S = B(
45392
45392
  () => Yt("ag-root-wrapper", t, s),
45393
45393
  [t, s]
45394
- ), F = B(
45394
+ ), R = B(
45395
45395
  () => Yt("ag-root-wrapper-body", "ag-focus-managed", s),
45396
45396
  [s]
45397
- ), T = B(
45397
+ ), E = B(
45398
45398
  () => ({
45399
45399
  userSelect: a ?? "",
45400
45400
  WebkitUserSelect: a ?? "",
45401
45401
  cursor: n ?? ""
45402
45402
  }),
45403
45403
  [a, n]
45404
- ), E = D((k) => {
45404
+ ), D = P((k) => {
45405
45405
  m.current = k, h(k !== null);
45406
- }, []), P = D(() => !p.current?.isFocusable(), []);
45407
- return /* @__PURE__ */ X.createElement("div", { ref: R, className: S, style: T, role: "presentation" }, /* @__PURE__ */ X.createElement("div", { className: F, ref: C, role: "presentation" }, c && v && !e.isDestroyed() && /* @__PURE__ */ X.createElement(Dt.Provider, { value: e.getBeans() }, /* @__PURE__ */ X.createElement(
45406
+ }, []), T = P(() => !p.current?.isFocusable(), []);
45407
+ return /* @__PURE__ */ X.createElement("div", { ref: F, className: S, style: E, role: "presentation" }, /* @__PURE__ */ X.createElement("div", { className: R, ref: C, role: "presentation" }, c && v && !e.isDestroyed() && /* @__PURE__ */ X.createElement(Dt.Provider, { value: e.getBeans() }, /* @__PURE__ */ X.createElement(
45408
45408
  VL,
45409
45409
  {
45410
- ref: E,
45410
+ ref: D,
45411
45411
  eFocusableElement: v,
45412
45412
  onTabKeyDown: y,
45413
45413
  gridCtrl: p.current,
45414
45414
  forceFocusOutWhenTabGuardsAreEmpty: !0,
45415
- isEmpty: P
45415
+ isEmpty: T
45416
45416
  },
45417
45417
  // we wait for initialised before rending the children, so GridComp has created and registered with it's
45418
45418
  // GridCtrl before we create the child GridBodyComp. Otherwise the GridBodyComp would initialise first,
@@ -45460,16 +45460,16 @@ var cL = 1e3, dL = class {
45460
45460
  componentWrappingElement: void 0,
45461
45461
  ...ww
45462
45462
  }, bw = new Set(Object.keys(_L)), UL = new Set(Object.keys(ww)), xw = (e) => {
45463
- const t = O(), i = O(null), s = O(null), o = O([]), n = O([]), r = O(e), a = O(), l = O(), c = O(!1), [d, u] = I(void 0), [, h] = I(0), p = D((C) => {
45463
+ const t = O(), i = O(null), s = O(null), o = O([]), n = O([]), r = O(e), a = O(), l = O(), c = O(!1), [d, u] = I(void 0), [, h] = I(0), p = P((C) => {
45464
45464
  if (i.current = C, !C) {
45465
- for (const P of o.current)
45466
- P();
45465
+ for (const T of o.current)
45466
+ T();
45467
45467
  o.current.length = 0;
45468
45468
  return;
45469
45469
  }
45470
45470
  const w = e.modules || [];
45471
45471
  s.current || (s.current = new dL(
45472
- () => h((P) => P + 1),
45472
+ () => h((T) => T + 1),
45473
45473
  e.componentWrappingElement,
45474
45474
  e.maxComponentCreationTimeMs
45475
45475
  ), o.current.push(() => {
@@ -45478,42 +45478,42 @@ var cL = 1e3, dL = class {
45478
45478
  const b = dR(
45479
45479
  e.gridOptions,
45480
45480
  e,
45481
- Object.keys(e).filter((P) => !bw.has(P))
45481
+ Object.keys(e).filter((T) => !bw.has(T))
45482
45482
  ), x = () => {
45483
45483
  if (c.current) {
45484
- const P = () => a.current?.shouldQueueUpdates() ? void 0 : n.current.shift();
45485
- let k = P();
45484
+ const T = () => a.current?.shouldQueueUpdates() ? void 0 : n.current.shift();
45485
+ let k = T();
45486
45486
  for (; k; )
45487
- k(), k = P();
45487
+ k(), k = T();
45488
45488
  }
45489
45489
  }, y = new YL(x);
45490
45490
  a.current = y;
45491
- const R = new jL(), S = {
45491
+ const F = new jL(), S = {
45492
45492
  providedBeanInstances: {
45493
45493
  frameworkCompWrapper: new qL(s.current, b),
45494
- renderStatus: R
45494
+ renderStatus: F
45495
45495
  },
45496
45496
  modules: w,
45497
45497
  frameworkOverrides: y,
45498
45498
  setThemeOnGridDiv: !0
45499
- }, F = (P) => {
45500
- u(P), P.createBean(R), o.current.push(() => {
45501
- P.destroy();
45502
- }), P.getBean("ctrlsSvc").whenReady(
45499
+ }, R = (T) => {
45500
+ u(T), T.createBean(F), o.current.push(() => {
45501
+ T.destroy();
45502
+ }), T.getBean("ctrlsSvc").whenReady(
45503
45503
  {
45504
45504
  addDestroyFunc: (k) => {
45505
45505
  o.current.push(k);
45506
45506
  }
45507
45507
  },
45508
45508
  () => {
45509
- if (P.isDestroyed())
45509
+ if (T.isDestroyed())
45510
45510
  return;
45511
45511
  const k = t.current;
45512
45512
  k && e.passGridApi?.(k);
45513
45513
  }
45514
45514
  );
45515
- }, T = (P) => {
45516
- P.getBean("ctrlsSvc").whenReady(
45515
+ }, E = (T) => {
45516
+ T.getBean("ctrlsSvc").whenReady(
45517
45517
  {
45518
45518
  addDestroyFunc: (k) => {
45519
45519
  o.current.push(k);
@@ -45525,12 +45525,12 @@ var cL = 1e3, dL = class {
45525
45525
  n.current.length = 0, c.current = !0;
45526
45526
  }
45527
45527
  );
45528
- }, E = new n6();
45529
- b.gridId ?? (b.gridId = l.current), t.current = E.create(
45528
+ }, D = new n6();
45529
+ b.gridId ?? (b.gridId = l.current), t.current = D.create(
45530
45530
  C,
45531
45531
  b,
45532
- F,
45533
- T,
45532
+ R,
45533
+ E,
45534
45534
  S
45535
45535
  ), o.current.push(() => {
45536
45536
  t.current = void 0;
@@ -45538,7 +45538,7 @@ var cL = 1e3, dL = class {
45538
45538
  }, []), g = B(() => ({
45539
45539
  height: "100%",
45540
45540
  ...e.containerStyle || {}
45541
- }), [e.containerStyle]), m = D((C) => {
45541
+ }), [e.containerStyle]), m = P((C) => {
45542
45542
  c.current && !a.current?.shouldQueueUpdates() ? C() : n.current.push(C);
45543
45543
  }, []);
45544
45544
  Se(() => {
@@ -45625,30 +45625,30 @@ var qL = class extends d6 {
45625
45625
  return m.current?.refresh() ?? !1;
45626
45626
  }
45627
45627
  })), e.template && K(230);
45628
- const y = D((S) => {
45628
+ const y = P((S) => {
45629
45629
  if (v.current = S, !S || o.isDestroyed()) {
45630
45630
  m.current = o.destroyBean(m.current), C.current?.();
45631
45631
  return;
45632
45632
  }
45633
- const F = {
45634
- toggleCss: (E, P) => l((k) => k.setClass(E, P)),
45635
- toggleDetailGridCss: (E, P) => d((k) => k.setClass(E, P)),
45636
- setDetailGrid: (E) => h(E),
45637
- setRowData: (E) => g(E),
45633
+ const R = {
45634
+ toggleCss: (D, T) => l((k) => k.setClass(D, T)),
45635
+ toggleDetailGridCss: (D, T) => d((k) => k.setClass(D, T)),
45636
+ setDetailGrid: (D) => h(D),
45637
+ setRowData: (D) => g(D),
45638
45638
  getGui: () => v.current
45639
- }, T = s.createDynamicBean("detailCellRendererCtrl", !0);
45640
- if (T && (o.createBean(T), T.init(F, e), m.current = T, n.get("detailRowAutoHeight"))) {
45641
- const E = () => {
45639
+ }, E = s.createDynamicBean("detailCellRendererCtrl", !0);
45640
+ if (E && (o.createBean(E), E.init(R, e), m.current = E, n.get("detailRowAutoHeight"))) {
45641
+ const D = () => {
45642
45642
  if (v.current == null)
45643
45643
  return;
45644
- const P = v.current.clientHeight;
45645
- P != null && P > 0 && setTimeout(() => {
45646
- e.node.setRowHeight(P), (ot(n) || qs(n)) && r.onRowHeightChanged();
45644
+ const T = v.current.clientHeight;
45645
+ T != null && T > 0 && setTimeout(() => {
45646
+ e.node.setRowHeight(T), (ot(n) || qs(n)) && r.onRowHeightChanged();
45647
45647
  }, 0);
45648
45648
  };
45649
- C.current = Yi(i, S, E), E();
45649
+ C.current = Yi(i, S, D), D();
45650
45650
  }
45651
- }, []), R = D((S) => {
45651
+ }, []), F = P((S) => {
45652
45652
  m.current?.registerDetailWithMaster(S);
45653
45653
  }, []);
45654
45654
  return /* @__PURE__ */ X.createElement("div", { className: b, ref: y }, u && /* @__PURE__ */ X.createElement(
@@ -45658,7 +45658,7 @@ var qL = class extends d6 {
45658
45658
  ...u,
45659
45659
  modules: w,
45660
45660
  rowData: p,
45661
- passGridApi: R
45661
+ passGridApi: F
45662
45662
  }
45663
45663
  ));
45664
45664
  }), YL = class extends Kv {
@@ -45759,19 +45759,19 @@ const QL = me(
45759
45759
  matchReferenceWidth: C = !0,
45760
45760
  maxDropdownHeight: w
45761
45761
  }) => {
45762
- const [b, x] = I(a), y = r !== void 0, R = y ? !!r : b, S = O(null), F = D(
45762
+ const [b, x] = I(a), y = r !== void 0, F = y ? !!r : b, S = O(null), R = P(
45763
45763
  (U) => {
45764
45764
  y || x(U), l?.(U);
45765
45765
  },
45766
45766
  [y, l]
45767
- ), T = mu(), E = o === void 0, P = (U) => "clientWidth" in U ? U.clientWidth : U.getBoundingClientRect?.()?.width ?? 0, { refs: k, floatingStyles: G, context: Y } = Su({
45767
+ ), E = mu(), D = o === void 0, T = (U) => "clientWidth" in U ? U.clientWidth : U.getBoundingClientRect?.()?.width ?? 0, { refs: k, floatingStyles: G, context: Y } = Su({
45768
45768
  placement: o,
45769
- open: R,
45770
- onOpenChange: F,
45769
+ open: F,
45770
+ onOpenChange: R,
45771
45771
  whileElementsMounted: Ff,
45772
45772
  middleware: [
45773
45773
  Ef({ mainAxis: Tn, crossAxis: 0 }),
45774
- E ? p1({
45774
+ D ? p1({
45775
45775
  alignment: "start",
45776
45776
  crossAxis: !0,
45777
45777
  padding: Tn,
@@ -45781,7 +45781,7 @@ const QL = me(
45781
45781
  g1({
45782
45782
  padding: Tn,
45783
45783
  apply({ availableWidth: U, availableHeight: ve, elements: re }) {
45784
- const ee = re.floating, $ = P(re.reference);
45784
+ const ee = re.floating, $ = T(re.reference);
45785
45785
  ee.style.setProperty(
45786
45786
  "--fui-available-height",
45787
45787
  `${Math.floor(ve)}px`
@@ -45814,7 +45814,7 @@ const QL = me(
45814
45814
  j,
45815
45815
  V,
45816
45816
  L
45817
- ]), W = D(
45817
+ ]), W = P(
45818
45818
  (U, ve) => {
45819
45819
  k.setPositionReference({
45820
45820
  getBoundingClientRect: () => ({
@@ -45830,31 +45830,31 @@ const QL = me(
45830
45830
  });
45831
45831
  },
45832
45832
  [k]
45833
- ), q = D(
45833
+ ), q = P(
45834
45834
  (U) => {
45835
45835
  !s.includes(Jt.ContextMenu) || n || (U.preventDefault(), v && (W(U.clientX, U.clientY), S.current = document.elementFromPoint(
45836
45836
  U.clientX,
45837
45837
  U.clientY
45838
- )), F(!0));
45838
+ )), R(!0));
45839
45839
  },
45840
- [v, n, F, W, s]
45841
- ), _ = D(
45840
+ [v, n, R, W, s]
45841
+ ), _ = P(
45842
45842
  (U) => {
45843
- !v || n || (s.includes(Jt.ContextMenu) && R && F(!1), W(U.clientX, U.clientY), S.current = document.elementFromPoint(
45843
+ !v || n || (s.includes(Jt.ContextMenu) && F && R(!1), W(U.clientX, U.clientY), S.current = document.elementFromPoint(
45844
45844
  U.clientX,
45845
45845
  U.clientY
45846
45846
  ));
45847
45847
  },
45848
- [v, n, W, R, s, F]
45848
+ [v, n, W, F, s, R]
45849
45849
  );
45850
45850
  Se(() => {
45851
- n && R && F(!1);
45852
- }, [n, R, F]);
45853
- const le = D(
45851
+ n && F && R(!1);
45852
+ }, [n, F, R]);
45853
+ const le = P(
45854
45854
  (U) => (ve) => {
45855
- U.disabled || (U.onClick?.({ key: U.key, domEvent: ve }), t?.onClick?.({ key: U.key, domEvent: ve }), F(!1));
45855
+ U.disabled || (U.onClick?.({ key: U.key, domEvent: ve }), t?.onClick?.({ key: U.key, domEvent: ve }), R(!1));
45856
45856
  },
45857
- [t, F]
45857
+ [t, R]
45858
45858
  ), Re = B(() => i ? i() : t ? /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
45859
45859
  t.header && /* @__PURE__ */ f.jsx(f.Fragment, { children: typeof t.header == "function" ? t.header() : t.header }),
45860
45860
  /* @__PURE__ */ f.jsx("div", { role: "none", className: "py-1", "aria-label": "dropdown", children: t.items.map((U) => U.type === ar.Divider ? /* @__PURE__ */ f.jsx(
@@ -45921,18 +45921,18 @@ const QL = me(
45921
45921
  onMouseDown: _
45922
45922
  });
45923
45923
  return Se(() => {
45924
- if (!R) return;
45924
+ if (!F) return;
45925
45925
  const U = k.reference.current;
45926
45926
  let ve = null;
45927
45927
  if (U instanceof Element ? ve = U : S.current instanceof Element && (ve = S.current), !ve) return;
45928
45928
  const re = new IntersectionObserver(
45929
45929
  ([ee]) => {
45930
- ee.isIntersecting || F(!1);
45930
+ ee.isIntersecting || R(!1);
45931
45931
  },
45932
45932
  { root: null, threshold: 0 }
45933
45933
  );
45934
45934
  return re.observe(ve), () => re.disconnect();
45935
- }, [R, k.reference, F]), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
45935
+ }, [F, k.reference, R]), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
45936
45936
  /* @__PURE__ */ f.jsx(
45937
45937
  "span",
45938
45938
  {
@@ -45943,13 +45943,13 @@ const QL = me(
45943
45943
  u
45944
45944
  ),
45945
45945
  "aria-haspopup": "menu",
45946
- "aria-expanded": R,
45947
- "aria-controls": T,
45946
+ "aria-expanded": F,
45947
+ "aria-controls": E,
45948
45948
  ...te,
45949
45949
  children: e
45950
45950
  }
45951
45951
  ),
45952
- R && /* @__PURE__ */ f.jsx(Pu, { children: /* @__PURE__ */ f.jsx(
45952
+ F && /* @__PURE__ */ f.jsx(Pu, { children: /* @__PURE__ */ f.jsx(
45953
45953
  Mf,
45954
45954
  {
45955
45955
  context: Y,
@@ -45959,7 +45959,7 @@ const QL = me(
45959
45959
  children: /* @__PURE__ */ f.jsxs(
45960
45960
  "div",
45961
45961
  {
45962
- id: T,
45962
+ id: E,
45963
45963
  ref: k.setFloating,
45964
45964
  style: G,
45965
45965
  className: me(
@@ -45974,7 +45974,7 @@ const QL = me(
45974
45974
  {
45975
45975
  ariaLabel: "Close dropdown",
45976
45976
  onClose: (U) => {
45977
- d?.(U), F(!1);
45977
+ d?.(U), R(!1);
45978
45978
  }
45979
45979
  }
45980
45980
  ) }),
@@ -46050,7 +46050,7 @@ const Ew = ({
46050
46050
  selectedRowIds: l,
46051
46051
  onSelectionChange: c,
46052
46052
  onGridApiChange: d,
46053
- getRowId: u = (R) => String(R.id ?? JSON.stringify(R)),
46053
+ getRowId: u = (F) => String(F.id ?? JSON.stringify(F)),
46054
46054
  alternateOddRowColors: h = !1,
46055
46055
  filterPlaceholder: p = "Enter value",
46056
46056
  emptyStateIcon: g,
@@ -46062,7 +46062,7 @@ const Ew = ({
46062
46062
  allowDisabledContextMenu: x = !1,
46063
46063
  selectionMode: y
46064
46064
  }) => {
46065
- const [R, S] = I(ed), [F, T] = I(), E = mu(), P = O(/* @__PURE__ */ new Set()), k = O(
46065
+ const [F, S] = I(ed), [R, E] = I(), D = mu(), T = O(/* @__PURE__ */ new Set()), k = O(
46066
46066
  void 0
46067
46067
  ), G = B(
46068
46068
  () => ({
@@ -46071,9 +46071,9 @@ const Ew = ({
46071
46071
  wrapperBorder: w
46072
46072
  }),
46073
46073
  [h, w]
46074
- ), Y = D(($) => {
46074
+ ), Y = P(($) => {
46075
46075
  $.api.sizeColumnsToFit(), S(ed);
46076
- }, []), N = D(
46076
+ }, []), N = P(
46077
46077
  ($) => {
46078
46078
  if ($.data) {
46079
46079
  const de = u($.data), z = a?.has(de) ?? !1, Ce = z && !x, fe = $.value == null ? "" : String($.value), ne = s?.($.data) ?? [];
@@ -46099,21 +46099,21 @@ const Ew = ({
46099
46099
  }
46100
46100
  },
46101
46101
  [s, a, u, x]
46102
- ), j = D(
46102
+ ), j = P(
46103
46103
  ($) => $ === Es.API || $ === Es.ROW_DATA_CHANGED,
46104
46104
  []
46105
- ), V = D(
46105
+ ), V = P(
46106
46106
  ($) => {
46107
- if (!F)
46107
+ if (!R)
46108
46108
  return;
46109
46109
  const z = ($.selectedNodes || []).map((fe) => fe.data), Ce = new Set(z.map(u));
46110
- P.current = Ce, k.current = $.source, j($.source) || c?.(Ce, z);
46110
+ T.current = Ce, k.current = $.source, j($.source) || c?.(Ce, z);
46111
46111
  },
46112
- [F, u, j, c]
46112
+ [R, u, j, c]
46113
46113
  ), L = B(() => c7(
46114
46114
  ($) => V?.($),
46115
46115
  100
46116
- ), [V]), pe = D(
46116
+ ), [V]), pe = P(
46117
46117
  ($) => {
46118
46118
  if (!$.data) return null;
46119
46119
  const de = u($.data), z = $.node.isSelected(), Ce = a?.has(de), fe = `row-select-${de}`;
@@ -46137,10 +46137,10 @@ const Ew = ({
46137
46137
  ) });
46138
46138
  },
46139
46139
  [u, a]
46140
- ), M = D(() => {
46140
+ ), M = P(() => {
46141
46141
  const $ = "dial-row-select", de = "dial-row-select-visible";
46142
46142
  return !l || l.size === 0 ? $ : `${$} ${de}`;
46143
- }, [l]), W = D(() => !l || l.size === 0 ? "dial-row-not-select-header" : M(), [M, l]), q = B(() => {
46143
+ }, [l]), W = P(() => !l || l.size === 0 ? "dial-row-not-select-header" : M(), [M, l]), q = B(() => {
46144
46144
  if (y === Oa.SINGLE)
46145
46145
  return {
46146
46146
  ...a7,
@@ -46163,7 +46163,7 @@ const Ew = ({
46163
46163
  u,
46164
46164
  M,
46165
46165
  a
46166
- ]), _ = D(
46166
+ ]), _ = P(
46167
46167
  ($) => {
46168
46168
  const de = typeof r == "function" ? r($) : !!r;
46169
46169
  if (!$.cellRenderer)
@@ -46235,12 +46235,12 @@ const Ew = ({
46235
46235
  ...Ce,
46236
46236
  sort: void 0
46237
46237
  }));
46238
- $.api.updateGridOptions({ columnDefs: z, rowData: t }), $.api.sizeColumnsToFit(), T($.api), i?.onGridReady?.($), d?.($.api);
46238
+ $.api.updateGridOptions({ columnDefs: z, rowData: t }), $.api.sizeColumnsToFit(), E($.api), i?.onGridReady?.($), d?.($.api);
46239
46239
  };
46240
46240
  Se(() => {
46241
- F && t && F.setGridOption("rowData", t);
46242
- }, [F, t]);
46243
- const U = D(
46241
+ R && t && R.setGridOption("rowData", t);
46242
+ }, [R, t]);
46243
+ const U = P(
46244
46244
  () => /* @__PURE__ */ f.jsx(
46245
46245
  Cl,
46246
46246
  {
@@ -46270,20 +46270,20 @@ const Ew = ({
46270
46270
  };
46271
46271
  }, [a, u, y]);
46272
46272
  Se(() => {
46273
- F && t && P.current.size && P.current.forEach(($) => {
46274
- const de = F.getRowNode($);
46273
+ R && t && T.current.size && T.current.forEach(($) => {
46274
+ const de = R.getRowNode($);
46275
46275
  de && !de.isSelected() && de.setSelected(!0, !1, Es.API);
46276
46276
  });
46277
- }, [F, t]), Se(() => {
46278
- F && l && (F.deselectAll("all", Es.API), l.forEach(($) => {
46279
- const de = F.getRowNode($);
46277
+ }, [R, t]), Se(() => {
46278
+ R && l && (R.deselectAll("all", Es.API), l.forEach(($) => {
46279
+ const de = R.getRowNode($);
46280
46280
  de && !de.isSelected() && de.setSelected(!0, !1, Es.API);
46281
46281
  }));
46282
- }, [F, l]);
46283
- const re = D(
46282
+ }, [R, l]);
46283
+ const re = P(
46284
46284
  ($) => $.data ? u($.data) : "",
46285
46285
  [u]
46286
- ), ee = D(() => {
46286
+ ), ee = P(() => {
46287
46287
  document.querySelectorAll(`.ag-row ${Xg}`).forEach(($) => {
46288
46288
  $.setAttribute("aria-description", yd);
46289
46289
  });
@@ -46292,14 +46292,14 @@ const Ew = ({
46292
46292
  const $ = j(
46293
46293
  k.current
46294
46294
  );
46295
- if (F && l?.size && $) {
46295
+ if (R && l?.size && $) {
46296
46296
  const de = Array.from(l)[0];
46297
46297
  if (de) {
46298
- const z = F.getRowNode(de);
46299
- z && F.ensureNodeVisible(z);
46298
+ const z = R.getRowNode(de);
46299
+ z && R.ensureNodeVisible(z);
46300
46300
  }
46301
46301
  }
46302
- }, [F, j, l]), /* @__PURE__ */ f.jsx(
46302
+ }, [R, j, l]), /* @__PURE__ */ f.jsx(
46303
46303
  "div",
46304
46304
  {
46305
46305
  className: me(
@@ -46316,13 +46316,13 @@ const Ew = ({
46316
46316
  {
46317
46317
  className: "ag-theme-balham-dark h-full overflow-x-auto",
46318
46318
  role: "table",
46319
- "aria-describedby": E,
46319
+ "aria-describedby": D,
46320
46320
  children: /* @__PURE__ */ f.jsx(
46321
46321
  ZL,
46322
46322
  {
46323
46323
  rowModelType: "clientSide",
46324
46324
  headerHeight: ed,
46325
- rowHeight: R,
46325
+ rowHeight: F,
46326
46326
  cellSelection: !1,
46327
46327
  theme: N5.withPart(f5).withParams({ ...G }),
46328
46328
  autoSizeStrategy: { type: "fitGridWidth" },
@@ -46419,22 +46419,22 @@ const Qg = () => typeof window < "u" && window.innerWidth < 640, id = () => {
46419
46419
  desktopDropdownClassName: a,
46420
46420
  desktopTabClassName: l
46421
46421
  }) => {
46422
- const [c, d] = I(!1), [u, h] = I(!1), [p, g] = I(!1), m = u7(), v = m === cs.Mobile || o === dl.Tablet && m === cs.Tablet, C = s === du.Horizontal, w = O(null), b = O(null), x = O(null), y = e.find((E) => E.id === t), R = B(
46422
+ const [c, d] = I(!1), [u, h] = I(!1), [p, g] = I(!1), m = u7(), v = m === cs.Mobile || o === dl.Tablet && m === cs.Tablet, C = s === du.Horizontal, w = O(null), b = O(null), x = O(null), y = e.find((D) => D.id === t), F = B(
46423
46423
  () => me(
46424
46424
  "flex gap-2",
46425
46425
  C ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
46426
46426
  ),
46427
46427
  [C]
46428
- ), S = D(() => {
46429
- const E = b.current;
46430
- E && g(E.scrollWidth > E.clientWidth);
46431
- }, []), F = D(() => {
46432
- const E = x.current, P = b.current;
46433
- if (!E || !P) return;
46434
- const k = E.getBoundingClientRect(), G = P.getBoundingClientRect();
46428
+ ), S = P(() => {
46429
+ const D = b.current;
46430
+ D && g(D.scrollWidth > D.clientWidth);
46431
+ }, []), R = P(() => {
46432
+ const D = x.current, T = b.current;
46433
+ if (!D || !T) return;
46434
+ const k = D.getBoundingClientRect(), G = T.getBoundingClientRect();
46435
46435
  if (k.width === 0 || G.width === 0) return;
46436
46436
  const Y = d7;
46437
- let N = P.scrollLeft;
46437
+ let N = T.scrollLeft;
46438
46438
  if (k.left < G.left + Y)
46439
46439
  N -= G.left + Y - k.left;
46440
46440
  else if (k.right > G.right - Y)
@@ -46443,25 +46443,25 @@ const Qg = () => typeof window < "u" && window.innerWidth < 640, id = () => {
46443
46443
  return;
46444
46444
  const j = Math.max(
46445
46445
  0,
46446
- P.scrollWidth - P.clientWidth
46446
+ T.scrollWidth - T.clientWidth
46447
46447
  );
46448
- N = Math.max(0, Math.min(N, j)), N !== P.scrollLeft && P.scrollTo({
46448
+ N = Math.max(0, Math.min(N, j)), N !== T.scrollLeft && T.scrollTo({
46449
46449
  left: N,
46450
46450
  behavior: "smooth"
46451
46451
  });
46452
- }, []), T = D(
46453
- (E) => {
46454
- i(E), E === t && F();
46452
+ }, []), E = P(
46453
+ (D) => {
46454
+ i(D), D === t && R();
46455
46455
  },
46456
- [i, t, F]
46456
+ [i, t, R]
46457
46457
  );
46458
46458
  return Se(() => {
46459
46459
  S();
46460
- const E = new ResizeObserver(() => S()), P = b.current;
46461
- return P && E.observe(P), () => E.disconnect();
46460
+ const D = new ResizeObserver(() => S()), T = b.current;
46461
+ return T && D.observe(T), () => D.disconnect();
46462
46462
  }, [e, S]), Se(() => {
46463
- F();
46464
- }, [t, F]), v ? /* @__PURE__ */ f.jsx(
46463
+ R();
46464
+ }, [t, R]), v ? /* @__PURE__ */ f.jsx(
46465
46465
  "div",
46466
46466
  {
46467
46467
  role: "tablist",
@@ -46477,20 +46477,20 @@ const Qg = () => typeof window < "u" && window.innerWidth < 640, id = () => {
46477
46477
  onOpenChange: d,
46478
46478
  placement: "bottom-start",
46479
46479
  allowedPlacements: ["bottom-start", "top-start"],
46480
- renderOverlay: () => e.map((E) => /* @__PURE__ */ f.jsx(
46480
+ renderOverlay: () => e.map((D) => /* @__PURE__ */ f.jsx(
46481
46481
  pa,
46482
46482
  {
46483
- tab: E,
46484
- active: E.id === t,
46485
- onClick: (P) => {
46486
- T(P), d(!1);
46483
+ tab: D,
46484
+ active: D.id === t,
46485
+ onClick: (T) => {
46486
+ E(T), d(!1);
46487
46487
  },
46488
46488
  className: ce(
46489
46489
  "w-full rounded-none h-11 items-center px-6",
46490
46490
  r
46491
46491
  )
46492
46492
  },
46493
- E.id
46493
+ D.id
46494
46494
  )),
46495
46495
  children: /* @__PURE__ */ f.jsxs("div", { className: "flex gap-2 items-center h-11 cursor-pointer", children: [
46496
46496
  /* @__PURE__ */ f.jsx(
@@ -46498,7 +46498,7 @@ const Qg = () => typeof window < "u" && window.innerWidth < 640, id = () => {
46498
46498
  {
46499
46499
  tab: y,
46500
46500
  active: !0,
46501
- onClick: T,
46501
+ onClick: E,
46502
46502
  className: "rounded-none bg-transparent border-l-0 border-b-0 h-full items-center px-0"
46503
46503
  },
46504
46504
  t
@@ -46520,23 +46520,23 @@ const Qg = () => typeof window < "u" && window.innerWidth < 640, id = () => {
46520
46520
  ) : (
46521
46521
  // Desktop
46522
46522
  /* @__PURE__ */ f.jsxs("div", { ref: w, className: "flex w-full items-start", children: [
46523
- /* @__PURE__ */ f.jsx("div", { ref: b, role: "tablist", className: R, children: e.map((E) => /* @__PURE__ */ f.jsx(
46523
+ /* @__PURE__ */ f.jsx("div", { ref: b, role: "tablist", className: F, children: e.map((D) => /* @__PURE__ */ f.jsx(
46524
46524
  "div",
46525
46525
  {
46526
- ref: t === E.id ? x : void 0,
46526
+ ref: t === D.id ? x : void 0,
46527
46527
  className: "w-full",
46528
46528
  children: /* @__PURE__ */ f.jsx(
46529
46529
  pa,
46530
46530
  {
46531
- tab: E,
46532
- active: t === E.id,
46533
- onClick: T,
46531
+ tab: D,
46532
+ active: t === D.id,
46533
+ onClick: E,
46534
46534
  horizontal: C,
46535
46535
  className: ce("w-full", l)
46536
46536
  }
46537
46537
  )
46538
46538
  },
46539
- E.id
46539
+ D.id
46540
46540
  )) }),
46541
46541
  p && /* @__PURE__ */ f.jsx("div", { className: "flex items-center ml-2", children: /* @__PURE__ */ f.jsx(
46542
46542
  Bt,
@@ -46545,17 +46545,17 @@ const Qg = () => typeof window < "u" && window.innerWidth < 640, id = () => {
46545
46545
  open: u,
46546
46546
  onOpenChange: h,
46547
46547
  placement: "bottom-end",
46548
- renderOverlay: () => e.map((E) => /* @__PURE__ */ f.jsx(
46548
+ renderOverlay: () => e.map((D) => /* @__PURE__ */ f.jsx(
46549
46549
  pa,
46550
46550
  {
46551
- tab: E,
46552
- active: E.id === t,
46553
- onClick: (P) => {
46554
- T(P), h(!1);
46551
+ tab: D,
46552
+ active: D.id === t,
46553
+ onClick: (T) => {
46554
+ E(T), h(!1);
46555
46555
  },
46556
46556
  className: "w-full rounded-none h-8 items-center px-3 py-2"
46557
46557
  },
46558
- E.id
46558
+ D.id
46559
46559
  )),
46560
46560
  children: /* @__PURE__ */ f.jsx(
46561
46561
  gi,
@@ -46658,7 +46658,7 @@ const Qg = () => typeof window < "u" && window.innerWidth < 640, id = () => {
46658
46658
  const a = B(() => e?.length ? e : xb.toArray(o).filter(gu).map((d) => {
46659
46659
  const u = d.props, { labelClassName: h, isLast: p, separator: g, ...m } = u;
46660
46660
  return m;
46661
- }), [e, o]), l = D(
46661
+ }), [e, o]), l = P(
46662
46662
  async (d) => {
46663
46663
  const u = parseInt(d.key, 10), h = a[u];
46664
46664
  if (r && !await r()) {
@@ -46890,7 +46890,7 @@ const Qg = () => typeof window < "u" && window.innerWidth < 640, id = () => {
46890
46890
  i ? "flex-row-reverse" : "flex-row",
46891
46891
  s ? "pointer-events-none" : "",
46892
46892
  s ? i ? "bg-controls-disable" : "bg-layer-4" : i ? "bg-accent-primary" : "bg-layer-4"
46893
- ), a = D(
46893
+ ), a = P(
46894
46894
  (l) => {
46895
46895
  l.stopPropagation(), o?.(!i);
46896
46896
  },
@@ -46966,22 +46966,22 @@ const F7 = "z-[52] flex items-center justify-center bg-blackout md:p-4", ef = "d
46966
46966
  }) => {
46967
46967
  const v = O(null), { refs: C, context: w } = Su({
46968
46968
  open: e,
46969
- onOpenChange: (F) => {
46970
- F || u?.(null);
46969
+ onOpenChange: (R) => {
46970
+ R || u?.(null);
46971
46971
  }
46972
46972
  }), b = Fu(w, { role: "dialog" }), x = Ru(w, { outsidePress: g }), { getFloatingProps: y } = Eu([b, x]);
46973
46973
  if (!e) return null;
46974
- const R = typeof t == "string" ? "dial-popup-heading" : void 0, S = (F) => F ? typeof F == "string" ? /* @__PURE__ */ f.jsx(
46974
+ const F = typeof t == "string" ? "dial-popup-heading" : void 0, S = (R) => R ? typeof R == "string" ? /* @__PURE__ */ f.jsx(
46975
46975
  "h3",
46976
46976
  {
46977
- id: R,
46977
+ id: F,
46978
46978
  className: me(
46979
46979
  "flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",
46980
46980
  n
46981
46981
  ),
46982
- children: /* @__PURE__ */ f.jsx(_t, { tooltip: F, children: F })
46982
+ children: /* @__PURE__ */ f.jsx(_t, { tooltip: R, children: R })
46983
46983
  }
46984
- ) : F : /* @__PURE__ */ f.jsx("span", {});
46984
+ ) : R : /* @__PURE__ */ f.jsx("span", {});
46985
46985
  return /* @__PURE__ */ f.jsx(Pu, { id: i, children: /* @__PURE__ */ f.jsx(
46986
46986
  m1,
46987
46987
  {
@@ -46998,7 +46998,7 @@ const F7 = "z-[52] flex items-center justify-center bg-blackout md:p-4", ef = "d
46998
46998
  ...y(),
46999
46999
  role: "dialog",
47000
47000
  "aria-modal": "true",
47001
- "aria-labelledby": R,
47001
+ "aria-labelledby": F,
47002
47002
  className: me(
47003
47003
  "dial-popup",
47004
47004
  D7[h],
@@ -47025,7 +47025,7 @@ const F7 = "z-[52] flex items-center justify-center bg-blackout md:p-4", ef = "d
47025
47025
  yw,
47026
47026
  {
47027
47027
  ariaLabel: "Close dialog",
47028
- onClose: (F) => u?.(F)
47028
+ onClose: (R) => u?.(R)
47029
47029
  }
47030
47030
  )
47031
47031
  ]
@@ -47112,7 +47112,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47112
47112
  onClick: () => u()
47113
47113
  }
47114
47114
  )
47115
- ] }), b = D(() => r ? /* @__PURE__ */ f.jsx("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ f.jsx(vl, { size: 50 }) }) : p ?? (t ? /* @__PURE__ */ f.jsx(
47115
+ ] }), b = P(() => r ? /* @__PURE__ */ f.jsx("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ f.jsx(vl, { size: 50 }) }) : p ?? (t ? /* @__PURE__ */ f.jsx(
47116
47116
  "div",
47117
47117
  {
47118
47118
  className: me(T7, i),
@@ -47148,9 +47148,9 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47148
47148
  tagClassName: h,
47149
47149
  onChange: p
47150
47150
  }) => {
47151
- const g = O(null), m = O([]), v = O(null), [C, w] = I(e), [b, x] = I(""), [y, R] = I(!1), [S, F] = I(e.length), T = D((V) => (L) => {
47151
+ const g = O(null), m = O([]), v = O(null), [C, w] = I(e), [b, x] = I(""), [y, F] = I(!1), [S, R] = I(e.length), E = P((V) => (L) => {
47152
47152
  m.current[V] = L;
47153
- }, []), E = D(() => {
47153
+ }, []), D = P(() => {
47154
47154
  if (!c) return;
47155
47155
  const V = g.current;
47156
47156
  if (!V) return;
@@ -47171,17 +47171,17 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47171
47171
  const le = m.current[_]?.offsetWidth ?? 0;
47172
47172
  q -= le + od;
47173
47173
  }
47174
- F(_);
47175
- }, [c, d, C.length]), P = (V) => {
47174
+ R(_);
47175
+ }, [c, d, C.length]), T = (V) => {
47176
47176
  const L = V.trim().replace(/,$/, "");
47177
47177
  if (L && !C.includes(L)) {
47178
47178
  const pe = [L, ...C];
47179
47179
  w(pe), p?.(pe);
47180
47180
  }
47181
47181
  }, k = (V) => {
47182
- (V.key === "," || V.key === "Enter") && (V.preventDefault(), P(b), x(""));
47182
+ (V.key === "," || V.key === "Enter") && (V.preventDefault(), T(b), x(""));
47183
47183
  }, G = () => {
47184
- b.trim() && (P(b), x(""));
47184
+ b.trim() && (T(b), x(""));
47185
47185
  }, Y = (V) => {
47186
47186
  const L = C.filter((pe, M) => M !== V);
47187
47187
  w(L), p?.(L);
@@ -47191,21 +47191,21 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47191
47191
  const V = new ResizeObserver(() => {
47192
47192
  if (g.current) {
47193
47193
  const L = g.current.scrollHeight > g.current.clientHeight + 10;
47194
- R(L);
47194
+ F(L);
47195
47195
  }
47196
47196
  });
47197
47197
  return g.current && V.observe(g.current), () => V.disconnect();
47198
47198
  }, [C, c]), Se(() => {
47199
47199
  if (!c) {
47200
- F(C.length);
47200
+ R(C.length);
47201
47201
  return;
47202
47202
  }
47203
- F(C.length);
47203
+ R(C.length);
47204
47204
  const V = new ResizeObserver(() => {
47205
- E();
47205
+ D();
47206
47206
  }), L = g.current;
47207
- return L && V.observe(L), E(), () => V.disconnect();
47208
- }, [c, E, C]), Se(() => {
47207
+ return L && V.observe(L), D(), () => V.disconnect();
47208
+ }, [c, D, C]), Se(() => {
47209
47209
  w(e);
47210
47210
  }, [JSON.stringify(e)]);
47211
47211
  const j = /* @__PURE__ */ f.jsxs(
@@ -47263,7 +47263,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47263
47263
  C.map((V, L) => /* @__PURE__ */ f.jsx(
47264
47264
  "div",
47265
47265
  {
47266
- ref: T(L),
47266
+ ref: E(L),
47267
47267
  className: "inline-flex shrink-0",
47268
47268
  children: /* @__PURE__ */ f.jsx(
47269
47269
  An,
@@ -47330,7 +47330,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47330
47330
  onValueChange: p,
47331
47331
  collapseTagOverflow: g = !1
47332
47332
  }) => {
47333
- const m = Array.isArray(s) && s.length > 0, v = typeof s == "string" && !!s.trim(), C = m || v ? s : u ? void 0 : d, w = i ? void 0 : r, b = D(
47333
+ const m = Array.isArray(s) && s.length > 0, v = typeof s == "string" && !!s.trim(), C = m || v ? s : u ? void 0 : d, w = i ? void 0 : r, b = P(
47334
47334
  (S) => {
47335
47335
  p?.(S.target.value);
47336
47336
  },
@@ -47427,7 +47427,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47427
47427
  }
47428
47428
  ),
47429
47429
  /* @__PURE__ */ f.jsx(Ei, { text: l })
47430
- ] }), R = () => /* @__PURE__ */ f.jsx("div", { className: "w-full", onClick: w, children: /* @__PURE__ */ f.jsxs(
47430
+ ] }), F = () => /* @__PURE__ */ f.jsx("div", { className: "w-full", onClick: w, children: /* @__PURE__ */ f.jsxs(
47431
47431
  "div",
47432
47432
  {
47433
47433
  className: me(
@@ -47460,7 +47460,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47460
47460
  }
47461
47461
  ) });
47462
47462
  return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
47463
- m ? R() : h ? x() : y(),
47463
+ m ? F() : h ? x() : y(),
47464
47464
  t && fl(e, document.body)
47465
47465
  ] });
47466
47466
  }, SN = ({
@@ -47486,15 +47486,15 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47486
47486
  id: b,
47487
47487
  size: x = si.Md
47488
47488
  }) => {
47489
- const [y, R] = I(!1), S = D(() => {
47490
- i || R(!0);
47491
- }, [i]), F = D(() => {
47492
- R(!1), c?.();
47493
- }, [c]), T = D(() => {
47494
- p?.(), F();
47495
- }, [p, F]), E = D(() => {
47496
- h(), F();
47497
- }, [h, F]);
47489
+ const [y, F] = I(!1), S = P(() => {
47490
+ i || F(!0);
47491
+ }, [i]), R = P(() => {
47492
+ F(!1), c?.();
47493
+ }, [c]), E = P(() => {
47494
+ p?.(), R();
47495
+ }, [p, R]), D = P(() => {
47496
+ h(), R();
47497
+ }, [h, R]);
47498
47498
  return /* @__PURE__ */ f.jsxs("div", { className: "flex flex-col gap-2", children: [
47499
47499
  /* @__PURE__ */ f.jsx(Xo, { label: e, htmlFor: t }),
47500
47500
  /* @__PURE__ */ f.jsx(
@@ -47502,7 +47502,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47502
47502
  {
47503
47503
  disabled: i,
47504
47504
  open: y,
47505
- selectedValue: n ?? o.find((P) => P.id === s)?.name,
47505
+ selectedValue: n ?? o.find((T) => T.id === s)?.name,
47506
47506
  valueClassName: r,
47507
47507
  inputClassName: me(a, "py-2", "px-3"),
47508
47508
  emptyValueText: l,
@@ -47511,7 +47511,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47511
47511
  nn,
47512
47512
  {
47513
47513
  open: y,
47514
- onClose: T,
47514
+ onClose: E,
47515
47515
  header: d,
47516
47516
  portalId: u,
47517
47517
  size: x,
@@ -47520,14 +47520,14 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47520
47520
  qi,
47521
47521
  {
47522
47522
  label: g,
47523
- onClick: T
47523
+ onClick: E
47524
47524
  }
47525
47525
  ),
47526
47526
  /* @__PURE__ */ f.jsx(
47527
47527
  _i,
47528
47528
  {
47529
47529
  label: m,
47530
- onClick: E,
47530
+ onClick: D,
47531
47531
  disabled: !v
47532
47532
  }
47533
47533
  )
@@ -47582,7 +47582,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47582
47582
  onClick: () => c()
47583
47583
  }
47584
47584
  )
47585
- ] }), v = D(() => o ? /* @__PURE__ */ f.jsx("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ f.jsx(vl, { size: 50 }) }) : u ?? null, [u, o]);
47585
+ ] }), v = P(() => o ? /* @__PURE__ */ f.jsx("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ f.jsx(vl, { size: 50 }) }) : u ?? null, [u, o]);
47586
47586
  return /* @__PURE__ */ f.jsx(
47587
47587
  nn,
47588
47588
  {
@@ -47679,34 +47679,35 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47679
47679
  type: l,
47680
47680
  inputRef: c,
47681
47681
  value: d,
47682
- min: u,
47683
- onChange: h,
47684
- max: p,
47685
- inputButtonProps: g,
47686
- ...m
47682
+ tooltipText: u,
47683
+ min: h,
47684
+ onChange: p,
47685
+ max: g,
47686
+ inputButtonProps: m,
47687
+ ...v
47687
47688
  }) => {
47688
- const v = O(null), C = Du([c, v]);
47689
+ const C = O(null), w = Du([c, C]);
47689
47690
  Se(() => {
47690
- const R = v.current;
47691
- if (!R) return;
47692
- const S = (F) => {
47693
- F.preventDefault();
47691
+ const S = C.current;
47692
+ if (!S) return;
47693
+ const R = (E) => {
47694
+ E.preventDefault();
47694
47695
  };
47695
- return R.addEventListener("wheel", S, { passive: !1 }), () => {
47696
- R.removeEventListener("wheel", S);
47696
+ return S.addEventListener("wheel", R, { passive: !1 }), () => {
47697
+ S.removeEventListener("wheel", R);
47697
47698
  };
47698
47699
  }, []);
47699
- const w = l === "number" || u !== void 0 || p !== void 0, b = (R) => {
47700
- Iw(R, l, u, p);
47701
- }, x = (R) => {
47702
- const S = R.currentTarget.value;
47703
- if (w && S !== "") {
47704
- const F = parseFloat(S);
47705
- if (isNaN(F) && S !== "-" && S !== "." || !isNaN(F) && (u !== void 0 && F < +u || p !== void 0 && F > +p))
47700
+ const b = l === "number" || h !== void 0 || g !== void 0, x = (S) => {
47701
+ Iw(S, l, h, g);
47702
+ }, y = (S) => {
47703
+ const R = S.currentTarget.value;
47704
+ if (b && R !== "") {
47705
+ const E = parseFloat(R);
47706
+ if (isNaN(E) && R !== "-" && R !== "." || !isNaN(E) && (h !== void 0 && E < +h || g !== void 0 && E > +g))
47706
47707
  return;
47707
47708
  }
47708
- h?.(S || void 0);
47709
- }, y = () => /* @__PURE__ */ f.jsxs(
47709
+ p?.(R || void 0);
47710
+ }, F = () => /* @__PURE__ */ f.jsxs(
47710
47711
  "div",
47711
47712
  {
47712
47713
  className: ce(
@@ -47714,7 +47715,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47714
47715
  e && "dial-input-error",
47715
47716
  t && "dial-input-disable",
47716
47717
  !i && "pl-3",
47717
- !g && "pr-3",
47718
+ !m && "pr-3",
47718
47719
  a
47719
47720
  ),
47720
47721
  "aria-label": "input-container",
@@ -47733,7 +47734,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47733
47734
  /* @__PURE__ */ f.jsx(
47734
47735
  "input",
47735
47736
  {
47736
- ref: C,
47737
+ ref: w,
47737
47738
  type: l,
47738
47739
  autoComplete: l === "password" ? "new-password" : "off",
47739
47740
  value: d ?? "",
@@ -47741,12 +47742,12 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47741
47742
  "border-0 bg-transparent w-full truncate",
47742
47743
  s
47743
47744
  ),
47744
- onChange: x,
47745
- onKeyDown: b,
47746
- min: u,
47745
+ onChange: y,
47746
+ onKeyDown: x,
47747
+ min: h,
47747
47748
  disabled: t,
47748
- max: p,
47749
- ...m
47749
+ max: g,
47750
+ ...v
47750
47751
  }
47751
47752
  ),
47752
47753
  o && /* @__PURE__ */ f.jsxs("p", { className: "text-secondary dial-small-text", children: [
@@ -47754,11 +47755,11 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47754
47755
  o
47755
47756
  ] }),
47756
47757
  /* @__PURE__ */ f.jsx(tt, { icon: r }),
47757
- g && /* @__PURE__ */ f.jsx(W7, { ...g, disabled: t })
47758
+ m && /* @__PURE__ */ f.jsx(W7, { ...m, disabled: t })
47758
47759
  ]
47759
47760
  }
47760
47761
  );
47761
- return t && l !== "password" ? /* @__PURE__ */ f.jsx(_t, { tooltip: d, children: y() }) : y();
47762
+ return t && l !== "password" ? /* @__PURE__ */ f.jsx(_t, { tooltip: u || d, children: F() }) : F();
47762
47763
  }, j7 = /^0+\.(\d+)?$/, _7 = /^0+/, FN = ({
47763
47764
  integer: e,
47764
47765
  onChange: t,
@@ -47812,7 +47813,7 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47812
47813
  "aria-label": "show"
47813
47814
  }
47814
47815
  ), EN = ({ ...e }) => {
47815
- const [t, i] = I(!1), s = D((o) => {
47816
+ const [t, i] = I(!1), s = P((o) => {
47816
47817
  i(o);
47817
47818
  }, []);
47818
47819
  return /* @__PURE__ */ f.jsx(
@@ -47849,12 +47850,12 @@ const P7 = "flex justify-end gap-2 px-6 py-4", T7 = "text-secondary dial-small-1
47849
47850
  Se(() => {
47850
47851
  r(i || "");
47851
47852
  }, [i]);
47852
- const a = D(
47853
+ const a = P(
47853
47854
  (u) => {
47854
47855
  r(u || ""), s?.(u || "");
47855
47856
  },
47856
47857
  [s]
47857
- ), l = q7[e], c = D(() => {
47858
+ ), l = q7[e], c = P(() => {
47858
47859
  a("");
47859
47860
  }, [a]), d = B(() => {
47860
47861
  if (n)
@@ -47926,26 +47927,26 @@ const e9 = ({
47926
47927
  className: b,
47927
47928
  listClassName: x,
47928
47929
  closable: y = !1,
47929
- header: R,
47930
+ header: F,
47930
47931
  footer: S,
47931
- onClose: F,
47932
- onChange: T,
47933
- inlineSearch: E = !1,
47934
- dismissRef: P,
47932
+ onClose: R,
47933
+ onChange: E,
47934
+ inlineSearch: D = !1,
47935
+ dismissRef: T,
47935
47936
  onFooterClick: k,
47936
47937
  open: G,
47937
47938
  onOpenChange: Y,
47938
47939
  onInlineQueryChange: N,
47939
47940
  customMultiSelectTagsRenderer: j
47940
47941
  }) => {
47941
- const V = mu(), [L, pe] = I(!1), M = G !== void 0, W = M ? !!G : L, q = D(
47942
+ const V = mu(), [L, pe] = I(!1), M = G !== void 0, W = M ? !!G : L, q = P(
47942
47943
  (Z) => {
47943
47944
  M || pe(Z), Y?.(Z);
47944
47945
  },
47945
47946
  [M, Y]
47946
47947
  ), [_, le] = I(
47947
- E && l || ""
47948
- ), Re = O(null), te = D(
47948
+ D && l || ""
47949
+ ), Re = O(null), te = P(
47949
47950
  (Z) => {
47950
47951
  Z !== _ && (le(Z || ""), N?.(Z || ""));
47951
47952
  },
@@ -47955,23 +47956,23 @@ const e9 = ({
47955
47956
  return Z ? e.filter((Ve) => Ve.label.toLowerCase().includes(Z)) : e;
47956
47957
  }, [e, _]);
47957
47958
  Se(() => {
47958
- !W && !E && te("");
47959
- }, [E, W, te]), Se(() => {
47960
- E && !W && l && te(l || "");
47961
- }, [l, E, W, te]);
47962
- const z = D(
47959
+ !W && !D && te("");
47960
+ }, [D, W, te]), Se(() => {
47961
+ D && !W && l && te(l || "");
47962
+ }, [l, D, W, te]);
47963
+ const z = P(
47963
47964
  (Z) => {
47964
- U || re(Z), T?.(Z);
47965
+ U || re(Z), E?.(Z);
47965
47966
  },
47966
- [U, T]
47967
- ), Ce = D(
47967
+ [U, E]
47968
+ ), Ce = P(
47968
47969
  (Z) => {
47969
47970
  if (t) {
47970
47971
  const Ve = new Set($);
47971
47972
  Ve.has(Z) ? Ve.delete(Z) : Ve.add(Z), z(Array.from(Ve));
47972
47973
  return;
47973
47974
  }
47974
- if (z(Z), E) {
47975
+ if (z(Z), D) {
47975
47976
  const Ve = e.find((ai) => ai.value === Z);
47976
47977
  Ve && (te(Ve.label), N?.(Ve.label));
47977
47978
  }
@@ -47980,14 +47981,14 @@ const e9 = ({
47980
47981
  [
47981
47982
  t,
47982
47983
  z,
47983
- E,
47984
+ D,
47984
47985
  q,
47985
47986
  $,
47986
47987
  e,
47987
47988
  te,
47988
47989
  N
47989
47990
  ]
47990
- ), fe = D(
47991
+ ), fe = P(
47991
47992
  (Z, Ve) => {
47992
47993
  if (Z.stopPropagation(), !t) {
47993
47994
  z("");
@@ -48004,7 +48005,7 @@ const e9 = ({
48004
48005
  () => ne.filter((Z) => $.includes(Z.value)).length,
48005
48006
  [ne, $]
48006
48007
  ), Te = (Z) => {
48007
- E && !t && !Z && Ce(_), q(Z);
48008
+ D && !t && !Z && Ce(_), q(Z);
48008
48009
  }, Ge = ne.length > 0 && ue === ne.length, xe = ue > 0 && !Ge, Me = () => {
48009
48010
  if (!(!t || ne.length === 0))
48010
48011
  if (Ge) {
@@ -48016,25 +48017,25 @@ const e9 = ({
48016
48017
  }
48017
48018
  }, Ue = $.length > 0;
48018
48019
  Se(() => {
48019
- W && E && !t && !w && requestAnimationFrame(() => {
48020
+ W && D && !t && !w && requestAnimationFrame(() => {
48020
48021
  const Z = Re.current;
48021
48022
  if (!Z) return;
48022
48023
  Z.focus();
48023
48024
  const Ve = Z.value?.length ?? 0;
48024
48025
  Z.setSelectionRange?.(Ve, Ve);
48025
48026
  });
48026
- }, [W, E, t, w]);
48027
+ }, [W, D, t, w]);
48027
48028
  const qe = !t && Ue ? $[0] : void 0, Ne = B(
48028
48029
  () => qe ? e.find((Z) => Z.value === qe) : void 0,
48029
48030
  [e, qe]
48030
- ), It = D(() => !t || $.length === 0 ? null : /* @__PURE__ */ f.jsx(
48031
+ ), It = P(() => !t || $.length === 0 ? null : /* @__PURE__ */ f.jsx(
48031
48032
  Ow,
48032
48033
  {
48033
48034
  options: e,
48034
48035
  selectedValues: $,
48035
48036
  handleRemoveTag: fe
48036
48037
  }
48037
- ), [t, e, $, fe]), ri = D(() => t ? Ue ? j?.(
48038
+ ), [t, e, $, fe]), ri = P(() => t ? Ue ? j?.(
48038
48039
  e,
48039
48040
  $,
48040
48041
  fe
@@ -48061,18 +48062,18 @@ const e9 = ({
48061
48062
  fe,
48062
48063
  j
48063
48064
  ]);
48064
- dr(P, () => ({
48065
+ dr(T, () => ({
48065
48066
  dismiss: () => {
48066
48067
  q(!1);
48067
48068
  }
48068
48069
  }));
48069
- const At = D(() => {
48070
+ const At = P(() => {
48070
48071
  te(
48071
48072
  $.length === 1 ? Ne?.label ?? _ : ""
48072
48073
  );
48073
- }, [_, $.length, te, Ne?.label]), ze = D(() => {
48074
- w || (q(!W), E && !t && (At(), Re.current?.focus()));
48075
- }, [w, E, W, t, At, q]);
48074
+ }, [_, $.length, te, Ne?.label]), ze = P(() => {
48075
+ w || (q(!W), D && !t && (At(), Re.current?.focus()));
48076
+ }, [w, D, W, t, At, q]);
48076
48077
  return /* @__PURE__ */ f.jsx(
48077
48078
  Bt,
48078
48079
  {
@@ -48080,7 +48081,7 @@ const e9 = ({
48080
48081
  onOpenChange: Te,
48081
48082
  disabled: w,
48082
48083
  closable: y,
48083
- onClose: F,
48084
+ onClose: R,
48084
48085
  placement: "bottom-start",
48085
48086
  allowedPlacements: ["bottom-start", "top-start"],
48086
48087
  maxDropdownHeight: d ? null : Q7,
@@ -48093,7 +48094,7 @@ const e9 = ({
48093
48094
  "aria-multiselectable": t || void 0,
48094
48095
  className: Y7,
48095
48096
  children: [
48096
- R && /* @__PURE__ */ f.jsx(f.Fragment, { children: typeof R == "function" ? R() : R }),
48097
+ F && /* @__PURE__ */ f.jsx(f.Fragment, { children: typeof F == "function" ? F() : F }),
48097
48098
  (d || y) && e.length > 8 && /* @__PURE__ */ f.jsxs("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
48098
48099
  d && /* @__PURE__ */ f.jsx(
48099
48100
  Lw,
@@ -48112,7 +48113,7 @@ const e9 = ({
48112
48113
  className: "shrink-0",
48113
48114
  iconBefore: /* @__PURE__ */ f.jsx(qo, { size: Ft.SM }),
48114
48115
  onClick: (Z) => {
48115
- F?.(Z), q(!1);
48116
+ R?.(Z), q(!1);
48116
48117
  }
48117
48118
  }
48118
48119
  )
@@ -48133,9 +48134,9 @@ const e9 = ({
48133
48134
  {
48134
48135
  className: me(
48135
48136
  "overflow-y-auto max-h-[352px]",
48136
- E && de.length === 0 ? "" : "py-1"
48137
+ D && de.length === 0 ? "" : "py-1"
48137
48138
  ),
48138
- children: de.length === 0 ? !E && /* @__PURE__ */ f.jsx("div", { className: "px-2 py-3", children: /* @__PURE__ */ f.jsx(
48139
+ children: de.length === 0 ? !D && /* @__PURE__ */ f.jsx("div", { className: "px-2 py-3", children: /* @__PURE__ */ f.jsx(
48139
48140
  Cl,
48140
48141
  {
48141
48142
  icon: C ?? /* @__PURE__ */ f.jsx(
@@ -48236,7 +48237,7 @@ const e9 = ({
48236
48237
  b
48237
48238
  ),
48238
48239
  onMouseDown: (Z) => {
48239
- w || E && !t && (At(), Z.preventDefault());
48240
+ w || D && !t && (At(), Z.preventDefault());
48240
48241
  },
48241
48242
  onClick: () => {
48242
48243
  ze();
@@ -48245,7 +48246,7 @@ const e9 = ({
48245
48246
  (Z.key === " " || Z.code === "Space") && (Z.preventDefault(), ze());
48246
48247
  },
48247
48248
  children: [
48248
- E && !t ? /* @__PURE__ */ f.jsx("div", { className: "flex min-w-0 items-center gap-2 text-primary flex-1", children: /* @__PURE__ */ f.jsx(
48249
+ D && !t ? /* @__PURE__ */ f.jsx("div", { className: "flex min-w-0 items-center gap-2 text-primary flex-1", children: /* @__PURE__ */ f.jsx(
48249
48250
  "input",
48250
48251
  {
48251
48252
  id: `inline-${i || V}`,
@@ -48270,7 +48271,7 @@ const e9 = ({
48270
48271
  autoComplete: "off"
48271
48272
  }
48272
48273
  ) }) : /* @__PURE__ */ f.jsx("div", { className: "flex w-full min-w-0 items-center gap-2 text-primary", children: ri() }),
48273
- !E && /* @__PURE__ */ f.jsx(
48274
+ !D && /* @__PURE__ */ f.jsx(
48274
48275
  tt,
48275
48276
  {
48276
48277
  icon: J7,
@@ -48296,7 +48297,7 @@ const e9 = ({
48296
48297
  defaultEmptyText: d,
48297
48298
  ...u
48298
48299
  }) => {
48299
- const h = D(() => {
48300
+ const h = P(() => {
48300
48301
  if (!c || Array.isArray(c) && c.length === 0)
48301
48302
  return d ?? "None";
48302
48303
  if (Array.isArray(c))
@@ -48584,7 +48585,7 @@ function d9(e, t, i, s, o) {
48584
48585
  x: i.x - a.x,
48585
48586
  y: i.y - a.y
48586
48587
  }, { offsetWidth: c, offsetHeight: d } = e, { anchorX: u, anchorY: h } = s, { dragPreviewWidth: p, dragPreviewHeight: g } = c9(n, t, c, d), m = () => {
48587
- let R = new of([
48588
+ let F = new of([
48588
48589
  0,
48589
48590
  0.5,
48590
48591
  1
@@ -48596,7 +48597,7 @@ function d9(e, t, i, s, o) {
48596
48597
  // Dock to the bottom
48597
48598
  l.y + g - d
48598
48599
  ]).interpolate(h);
48599
- return Vw() && n && (R += (window.devicePixelRatio - 1) * g), R;
48600
+ return Vw() && n && (F += (window.devicePixelRatio - 1) * g), F;
48600
48601
  }, v = () => new of([
48601
48602
  0,
48602
48603
  0.5,
@@ -48915,7 +48916,7 @@ const g9 = function(t, i, s) {
48915
48916
  getIsFileFormatError: d,
48916
48917
  getIsFileSizeError: u
48917
48918
  }) => {
48918
- const h = O(null), p = O(null), [g, m] = I([]), [v, C] = I(!1), [w, b] = I(!1), x = D(
48919
+ const h = O(null), p = O(null), [g, m] = I([]), [v, C] = I(!1), [w, b] = I(!1), x = P(
48919
48920
  (j) => {
48920
48921
  const V = j.target.files;
48921
48922
  if (V && V.length > 0) {
@@ -48924,12 +48925,12 @@ const g9 = function(t, i, s) {
48924
48925
  }
48925
48926
  },
48926
48927
  [d, u, e]
48927
- ), y = D(
48928
+ ), y = P(
48928
48929
  (j) => n && j?.length > n,
48929
48930
  [n]
48930
- ), R = B(() => v || w || y(g), [v, w, y, g]), S = () => {
48931
+ ), F = B(() => v || w || y(g), [v, w, y, g]), S = () => {
48931
48932
  m([]), C(!1), b(!1);
48932
- }, F = B(() => v ? /* @__PURE__ */ f.jsx(Ei, { text: a }) : w ? /* @__PURE__ */ f.jsx(Ei, { text: c }) : y(g) ? /* @__PURE__ */ f.jsx(Ei, { text: l }) : null, [
48933
+ }, R = B(() => v ? /* @__PURE__ */ f.jsx(Ei, { text: a }) : w ? /* @__PURE__ */ f.jsx(Ei, { text: c }) : y(g) ? /* @__PURE__ */ f.jsx(Ei, { text: l }) : null, [
48933
48934
  l,
48934
48935
  a,
48935
48936
  c,
@@ -48941,7 +48942,7 @@ const g9 = function(t, i, s) {
48941
48942
  Se(() => {
48942
48943
  S();
48943
48944
  }, [o]);
48944
- const [{ isOver: T, canDrop: E }, P] = sm(
48945
+ const [{ isOver: E, canDrop: D }, T] = sm(
48945
48946
  () => ({
48946
48947
  accept: [Gh],
48947
48948
  drop(j) {
@@ -48964,11 +48965,11 @@ const g9 = function(t, i, s) {
48964
48965
  j.target === j.currentTarget && S();
48965
48966
  }, N = me(
48966
48967
  "border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",
48967
- !E && !R && "border-primary",
48968
- E && (T ? "border-accent-primary" : "border-hover"),
48969
- R && "border-error"
48968
+ !D && !F && "border-primary",
48969
+ D && (E ? "border-accent-primary" : "border-hover"),
48970
+ F && "border-error"
48970
48971
  );
48971
- return P(h), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
48972
+ return T(h), /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
48972
48973
  /* @__PURE__ */ f.jsxs(
48973
48974
  "div",
48974
48975
  {
@@ -49013,7 +49014,7 @@ const g9 = function(t, i, s) {
49013
49014
  ]
49014
49015
  }
49015
49016
  ),
49016
- /* @__PURE__ */ f.jsx(f.Fragment, { children: F })
49017
+ /* @__PURE__ */ f.jsx(f.Fragment, { children: R })
49017
49018
  ] });
49018
49019
  }, m9 = ({
49019
49020
  iconBefore: e,
@@ -49093,36 +49094,36 @@ const g9 = function(t, i, s) {
49093
49094
  }) => {
49094
49095
  const C = O(null), w = () => C.current?.click(), b = () => {
49095
49096
  e([]);
49096
- }, x = D(
49097
- (F) => F?.some(
49098
- (T) => !(h === "/" || h?.toLowerCase()?.includes(T?.type?.toLowerCase()))
49097
+ }, x = P(
49098
+ (R) => R?.some(
49099
+ (E) => !(h === "/" || h?.toLowerCase()?.includes(E?.type?.toLowerCase()))
49099
49100
  ),
49100
49101
  [h]
49101
- ), y = D(
49102
- (F) => {
49102
+ ), y = P(
49103
+ (R) => {
49103
49104
  if (!n)
49104
49105
  return !1;
49105
- const T = n * (1024 * 1024);
49106
- return F?.some((E) => {
49107
- const P = E.size;
49108
- return !!P && P > T;
49106
+ const E = n * (1024 * 1024);
49107
+ return R?.some((D) => {
49108
+ const T = D.size;
49109
+ return !!T && T > E;
49109
49110
  });
49110
49111
  },
49111
49112
  [n]
49112
- ), R = D(
49113
- (F) => {
49113
+ ), F = P(
49114
+ (R) => {
49114
49115
  if (!r || !u)
49115
49116
  return !1;
49116
- const T = r * 1024 * 1024;
49117
- return F.reduce((P, k) => P + k.size, 0) > T;
49117
+ const E = r * 1024 * 1024;
49118
+ return R.reduce((T, k) => T + k.size, 0) > E;
49118
49119
  },
49119
49120
  [r, u]
49120
- ), S = D(
49121
- (F) => {
49122
- const T = F.target.files;
49123
- if (T && T.length > 0) {
49124
- const E = Array.from(T), P = x(E), k = y(E);
49125
- !P && !k && e([...s || [], ...E]);
49121
+ ), S = P(
49122
+ (R) => {
49123
+ const E = R.target.files;
49124
+ if (E && E.length > 0) {
49125
+ const D = Array.from(E), T = x(D), k = y(D);
49126
+ !T && !k && e([...s || [], ...D]);
49126
49127
  }
49127
49128
  },
49128
49129
  [x, y, e, s]
@@ -49183,7 +49184,7 @@ const g9 = function(t, i, s) {
49183
49184
  multiFilesSizeError: d,
49184
49185
  getIsFileFormatError: x,
49185
49186
  getIsFileSizeError: y,
49186
- getIsMultiFilesSizeError: R,
49187
+ getIsMultiFilesSizeError: F,
49187
49188
  ...v
49188
49189
  }
49189
49190
  )
@@ -49240,11 +49241,11 @@ const lf = ({
49240
49241
  nameColumnLabel: p = "Name",
49241
49242
  actionColumnLabel: g = "Action"
49242
49243
  }) => {
49243
- const m = n.length === 1, v = m ? n[0]?.name : "", C = c?.[ut.Replace] ?? "Replace", w = c?.[ut.Duplicate] ?? "Duplicate", b = c?.[ut.Cancel] ?? "Cancel", x = d?.[Vt.ReplaceAll] ?? "Replace all", y = d?.[Vt.DuplicateAll] ?? "Duplicate all", R = d?.[Vt.DecideForEach] ?? "Decide for each", [S, F] = I(
49244
+ const m = n.length === 1, v = m ? n[0]?.name : "", C = c?.[ut.Replace] ?? "Replace", w = c?.[ut.Duplicate] ?? "Duplicate", b = c?.[ut.Cancel] ?? "Cancel", x = d?.[Vt.ReplaceAll] ?? "Replace all", y = d?.[Vt.DuplicateAll] ?? "Duplicate all", F = d?.[Vt.DecideForEach] ?? "Decide for each", [S, R] = I(
49244
49245
  ut.Replace
49245
- ), [T, E] = I(
49246
+ ), [E, D] = I(
49246
49247
  Vt.ReplaceAll
49247
- ), [P, k] = I(
49248
+ ), [T, k] = I(
49248
49249
  new Map(
49249
49250
  n.map((te) => [
49250
49251
  te.path,
@@ -49279,8 +49280,8 @@ const lf = ({
49279
49280
  name: te.name,
49280
49281
  path: te.path,
49281
49282
  nodeType: te.nodeType ?? Ee.ITEM,
49282
- action: P.get(te.path) || ut.Replace
49283
- })), [n, P]), W = B(() => [
49283
+ action: T.get(te.path) || ut.Replace
49284
+ })), [n, T]), W = B(() => [
49284
49285
  {
49285
49286
  field: "name",
49286
49287
  headerName: p,
@@ -49395,8 +49396,8 @@ const lf = ({
49395
49396
  },
49396
49397
  {
49397
49398
  id: Vt.DecideForEach,
49398
- name: R,
49399
- content: T === Vt.DecideForEach ? /* @__PURE__ */ f.jsx("div", { className: "mt-4", children: /* @__PURE__ */ f.jsx(
49399
+ name: F,
49400
+ content: E === Vt.DecideForEach ? /* @__PURE__ */ f.jsx("div", { className: "mt-4", children: /* @__PURE__ */ f.jsx(
49400
49401
  Ew,
49401
49402
  {
49402
49403
  columnDefs: W,
@@ -49414,13 +49415,13 @@ const lf = ({
49414
49415
  [
49415
49416
  x,
49416
49417
  y,
49417
- R,
49418
- T,
49418
+ F,
49419
+ E,
49419
49420
  W,
49420
49421
  M
49421
49422
  ]
49422
- ), _ = D(() => {
49423
- F(ut.Replace), E(Vt.ReplaceAll), k(
49423
+ ), _ = P(() => {
49424
+ R(ut.Replace), D(Vt.ReplaceAll), k(
49424
49425
  new Map(
49425
49426
  n.map((te) => [
49426
49427
  te.path,
@@ -49428,20 +49429,20 @@ const lf = ({
49428
49429
  ])
49429
49430
  )
49430
49431
  );
49431
- }, [n]), le = D(() => {
49432
+ }, [n]), le = P(() => {
49432
49433
  _(), t();
49433
- }, [_, t]), Re = D(() => {
49434
+ }, [_, t]), Re = P(() => {
49434
49435
  if (_(), m)
49435
49436
  S === ut.Replace ? i() : s();
49436
- else if (T === Vt.ReplaceAll)
49437
+ else if (E === Vt.ReplaceAll)
49437
49438
  i();
49438
- else if (T === Vt.DuplicateAll)
49439
+ else if (E === Vt.DuplicateAll)
49439
49440
  s();
49440
- else if (T === Vt.DecideForEach && o) {
49441
+ else if (E === Vt.DecideForEach && o) {
49441
49442
  const te = n.map(
49442
49443
  (U) => ({
49443
49444
  file: U,
49444
- action: P.get(U.path) || ut.Replace
49445
+ action: T.get(U.path) || ut.Replace
49445
49446
  })
49446
49447
  );
49447
49448
  o(te);
@@ -49452,10 +49453,10 @@ const lf = ({
49452
49453
  S,
49453
49454
  i,
49454
49455
  s,
49455
- T,
49456
+ E,
49456
49457
  o,
49457
49458
  n,
49458
- P
49459
+ T
49459
49460
  ]);
49460
49461
  return /* @__PURE__ */ f.jsx(
49461
49462
  nn,
@@ -49480,16 +49481,16 @@ const lf = ({
49480
49481
  radioButtons: pe,
49481
49482
  activeRadioButton: S,
49482
49483
  orientation: Vo.Column,
49483
- onChange: (te) => F(te)
49484
+ onChange: (te) => R(te)
49484
49485
  }
49485
49486
  ) : /* @__PURE__ */ f.jsx(
49486
49487
  Sd,
49487
49488
  {
49488
49489
  elementId: "multiple-files-conflict",
49489
49490
  radioButtons: q,
49490
- activeRadioButton: T,
49491
+ activeRadioButton: E,
49491
49492
  orientation: Vo.Column,
49492
- onChange: (te) => E(te),
49493
+ onChange: (te) => D(te),
49493
49494
  formItemChildrenClassName: "gap-3"
49494
49495
  }
49495
49496
  )
@@ -49507,7 +49508,7 @@ const lf = ({
49507
49508
  Se(() => {
49508
49509
  n.current = e;
49509
49510
  }, [e]);
49510
- const r = D(
49511
+ const r = P(
49511
49512
  (l) => {
49512
49513
  if (!l.data || t(
49513
49514
  l.data,
@@ -49553,12 +49554,12 @@ const lf = ({
49553
49554
  }, O9 = ({
49554
49555
  onRename: e
49555
49556
  }) => {
49556
- const [t, i] = I(Ho.Grid), s = D(
49557
+ const [t, i] = I(Ho.Grid), s = P(
49557
49558
  (n) => {
49558
49559
  e(n), i(Ho.Grid);
49559
49560
  },
49560
49561
  [e]
49561
- ), o = D(
49562
+ ), o = P(
49562
49563
  (n) => {
49563
49564
  e(n), i(Ho.Tree);
49564
49565
  },
@@ -52295,12 +52296,12 @@ const Y9 = (e, t, i, s, o) => {
52295
52296
  if (!n)
52296
52297
  return o ?? `File is too large. Maximum size: ${cr(i)}.`;
52297
52298
  }, Z9 = (e) => {
52298
- const [t, i] = I(e?.showHiddenFiles ?? !1), s = !!e?.onShowHiddenFilesChange, o = s ? e.showHiddenFiles ?? !1 : t, n = D(
52299
+ const [t, i] = I(e?.showHiddenFiles ?? !1), s = !!e?.onShowHiddenFilesChange, o = s ? e.showHiddenFiles ?? !1 : t, n = P(
52299
52300
  (a) => {
52300
52301
  s ? e?.onShowHiddenFilesChange?.(a) : i(a);
52301
52302
  },
52302
52303
  [s, e]
52303
- ), r = D(() => {
52304
+ ), r = P(() => {
52304
52305
  const a = !o;
52305
52306
  s ? e?.onShowHiddenFilesChange?.(a) : i(a);
52306
52307
  }, [o, s, e]);
@@ -52312,12 +52313,12 @@ const Y9 = (e, t, i, s, o) => {
52312
52313
  }, X9 = (e) => {
52313
52314
  const [t, i] = I(
52314
52315
  e?.collapsed ?? !1
52315
- ), s = !!e?.onCollapseChange, o = s ? e.collapsed ?? !1 : t, n = D(
52316
+ ), s = !!e?.onCollapseChange, o = s ? e.collapsed ?? !1 : t, n = P(
52316
52317
  (a) => {
52317
52318
  s ? e?.onCollapseChange?.(a) : i(a);
52318
52319
  },
52319
52320
  [s, e]
52320
- ), r = D(() => {
52321
+ ), r = P(() => {
52321
52322
  const a = !o;
52322
52323
  s ? e?.onCollapseChange?.(a) : i(a);
52323
52324
  }, [o, s, e]);
@@ -52341,90 +52342,90 @@ const Y9 = (e, t, i, s, o) => {
52341
52342
  getDestinationFiles: e,
52342
52343
  onResolve: t
52343
52344
  }) => {
52344
- const [i, s] = I([]), [o, n] = I(!1), [r, a] = I(null), l = O(!1), c = D((b) => {
52345
+ const [i, s] = I([]), [o, n] = I(!1), [r, a] = I(null), l = O(!1), c = P((b) => {
52345
52346
  l.current = !0, s(b), n(!0);
52346
- }, []), d = D(() => {
52347
+ }, []), d = P(() => {
52347
52348
  l.current = !1, n(!1), s([]), a(null);
52348
- }, []), u = D(
52349
+ }, []), u = P(
52349
52350
  (b, x) => {
52350
- const y = e(b), R = new Set(y.map(fd)), S = x.filter((F) => R.has(F.name));
52351
+ const y = e(b), F = new Set(y.map(fd)), S = x.filter((R) => F.has(R.name));
52351
52352
  return {
52352
52353
  hasConflicts: S.length > 0,
52353
52354
  conflicts: S
52354
52355
  };
52355
52356
  },
52356
52357
  [e]
52357
- ), h = D(
52358
- (b, x, y, R) => {
52359
- const S = e(b), F = new Set(S.map(fd));
52360
- return x.map((T) => {
52361
- const E = T.name, P = F.has(E), k = y && P ? E : pf(E, F, T.nodeType);
52362
- return (!y || !P) && F.add(k), {
52363
- sourceUrl: T.path,
52358
+ ), h = P(
52359
+ (b, x, y, F) => {
52360
+ const S = e(b), R = new Set(S.map(fd));
52361
+ return x.map((E) => {
52362
+ const D = E.name, T = R.has(D), k = y && T ? D : pf(D, R, E.nodeType);
52363
+ return (!y || !T) && R.add(k), {
52364
+ sourceUrl: E.path,
52364
52365
  destinationUrl: `${b}/${k}`,
52365
- overwrite: y && P,
52366
- nodeType: T.nodeType ?? Ee.ITEM,
52367
- ...R ?? {}
52366
+ overwrite: y && T,
52367
+ nodeType: E.nodeType ?? Ee.ITEM,
52368
+ ...F ?? {}
52368
52369
  };
52369
52370
  });
52370
52371
  },
52371
52372
  [e]
52372
- ), p = D(
52373
- (b, x, y, R) => {
52374
- const S = e(b), F = new Set(S.map(fd));
52375
- return x.filter((E) => y.get(E.path) !== ut.Cancel).map((E) => {
52376
- const P = y.get(E.path), k = F.has(E.name), G = P === ut.Replace && k, Y = G ? E.name : pf(E.name, F, E.nodeType);
52377
- return G || F.add(Y), {
52378
- sourceUrl: E.path,
52373
+ ), p = P(
52374
+ (b, x, y, F) => {
52375
+ const S = e(b), R = new Set(S.map(fd));
52376
+ return x.filter((D) => y.get(D.path) !== ut.Cancel).map((D) => {
52377
+ const T = y.get(D.path), k = R.has(D.name), G = T === ut.Replace && k, Y = G ? D.name : pf(D.name, R, D.nodeType);
52378
+ return G || R.add(Y), {
52379
+ sourceUrl: D.path,
52379
52380
  destinationUrl: `${b}/${Y}`,
52380
52381
  overwrite: G,
52381
- nodeType: E.nodeType ?? Ee.ITEM,
52382
- ...R ?? {}
52382
+ nodeType: D.nodeType ?? Ee.ITEM,
52383
+ ...F ?? {}
52383
52384
  };
52384
52385
  });
52385
52386
  },
52386
52387
  [e]
52387
- ), g = D(
52388
+ ), g = P(
52388
52389
  (b, x, y) => {
52389
- const R = u(b, x);
52390
- return R.hasConflicts && (a({
52390
+ const F = u(b, x);
52391
+ return F.hasConflicts && (a({
52391
52392
  files: x,
52392
52393
  destinationFolder: b,
52393
52394
  metadata: y
52394
- }), c(R.conflicts)), R;
52395
+ }), c(F.conflicts)), F;
52395
52396
  },
52396
52397
  [u, c]
52397
- ), m = D(() => {
52398
+ ), m = P(() => {
52398
52399
  if (!r) return;
52399
- const { files: b, destinationFolder: x, metadata: y } = r, R = h(
52400
+ const { files: b, destinationFolder: x, metadata: y } = r, F = h(
52400
52401
  x,
52401
52402
  b,
52402
52403
  !0,
52403
52404
  y
52404
52405
  );
52405
- t?.(R, x), d();
52406
+ t?.(F, x), d();
52406
52407
  }, [
52407
52408
  r,
52408
52409
  h,
52409
52410
  t,
52410
52411
  d
52411
- ]), v = D(() => {
52412
+ ]), v = P(() => {
52412
52413
  if (!r) return;
52413
- const { files: b, destinationFolder: x, metadata: y } = r, R = h(
52414
+ const { files: b, destinationFolder: x, metadata: y } = r, F = h(
52414
52415
  x,
52415
52416
  b,
52416
52417
  !1,
52417
52418
  y
52418
52419
  );
52419
- t?.(R, x), d();
52420
+ t?.(F, x), d();
52420
52421
  }, [
52421
52422
  r,
52422
52423
  h,
52423
52424
  t,
52424
52425
  d
52425
- ]), C = D(() => {
52426
+ ]), C = P(() => {
52426
52427
  if (!r) return;
52427
- const { files: b, destinationFolder: x, metadata: y } = r, R = p(
52428
+ const { files: b, destinationFolder: x, metadata: y } = r, F = p(
52428
52429
  x,
52429
52430
  b,
52430
52431
  new Map(
@@ -52435,25 +52436,25 @@ const Y9 = (e, t, i, s, o) => {
52435
52436
  ),
52436
52437
  y
52437
52438
  );
52438
- t?.(R, x), d();
52439
+ t?.(F, x), d();
52439
52440
  }, [
52440
52441
  d,
52441
52442
  i,
52442
52443
  t,
52443
52444
  r,
52444
52445
  p
52445
- ]), w = D(
52446
+ ]), w = P(
52446
52447
  (b) => {
52447
52448
  if (!r) return;
52448
- const { files: x, destinationFolder: y, metadata: R } = r, S = new Map(
52449
- b.map((T) => [T.file.path, T.action])
52450
- ), F = p(
52449
+ const { files: x, destinationFolder: y, metadata: F } = r, S = new Map(
52450
+ b.map((E) => [E.file.path, E.action])
52451
+ ), R = p(
52451
52452
  y,
52452
52453
  x,
52453
52454
  S,
52454
- R
52455
+ F
52455
52456
  );
52456
- t?.(F, y), d();
52457
+ t?.(R, y), d();
52457
52458
  },
52458
52459
  [
52459
52460
  r,
@@ -52490,12 +52491,12 @@ const Y9 = (e, t, i, s, o) => {
52490
52491
  const [l, c] = I(!1), [d, u] = I([]), [h, p] = I([]), [g, m] = I(ht.Copy), [v, C] = I(), [w, b] = I(null), {
52491
52492
  conflictingFiles: x,
52492
52493
  conflictResolutionOpen: y,
52493
- hasActiveConflictRef: R,
52494
+ hasActiveConflictRef: F,
52494
52495
  startConflictResolution: S,
52495
- resolveConflictsWithStrategy: F,
52496
- closeConflictResolution: T,
52497
- openConflictResolution: E,
52498
- handleReplaceAll: P,
52496
+ resolveConflictsWithStrategy: R,
52497
+ closeConflictResolution: E,
52498
+ openConflictResolution: D,
52499
+ handleReplaceAll: T,
52499
52500
  handleDuplicateAll: k,
52500
52501
  handleCancelAll: G,
52501
52502
  handleDecideForEach: Y
@@ -52508,15 +52509,15 @@ const Y9 = (e, t, i, s, o) => {
52508
52509
  ee
52509
52510
  ), o?.()));
52510
52511
  }
52511
- }), N = D(() => {
52512
+ }), N = P(() => {
52512
52513
  u([]), p([]), b(null), C(void 0);
52513
- }, []), j = D(
52514
+ }, []), j = P(
52514
52515
  (re) => {
52515
52516
  const ee = S(re, d, {
52516
52517
  type: ht.Copy
52517
52518
  });
52518
52519
  if (b({ type: ht.Copy }), !ee.hasConflicts) {
52519
- const $ = F(
52520
+ const $ = R(
52520
52521
  re,
52521
52522
  d,
52522
52523
  !1
@@ -52527,19 +52528,19 @@ const Y9 = (e, t, i, s, o) => {
52527
52528
  [
52528
52529
  d,
52529
52530
  S,
52530
- F,
52531
+ R,
52531
52532
  t,
52532
52533
  s,
52533
52534
  N
52534
52535
  ]
52535
- ), V = D(
52536
+ ), V = P(
52536
52537
  (re, ee) => {
52537
52538
  const $ = ee || (w?.sourceFolder ?? "/");
52538
52539
  if (!S(re, h, {
52539
52540
  type: ht.Move,
52540
52541
  sourceFolderPath: $
52541
52542
  }).hasConflicts) {
52542
- const z = F(
52543
+ const z = R(
52543
52544
  re,
52544
52545
  h,
52545
52546
  !0
@@ -52550,48 +52551,48 @@ const Y9 = (e, t, i, s, o) => {
52550
52551
  [
52551
52552
  h,
52552
52553
  S,
52553
- F,
52554
+ R,
52554
52555
  i,
52555
52556
  o,
52556
52557
  N,
52557
52558
  w
52558
52559
  ]
52559
- ), L = D(() => {
52560
- P(), N();
52561
- }, [P, N]), pe = D(() => {
52560
+ ), L = P(() => {
52561
+ T(), N();
52562
+ }, [T, N]), pe = P(() => {
52562
52563
  k(), N();
52563
- }, [k, N]), M = D(() => {
52564
+ }, [k, N]), M = P(() => {
52564
52565
  G(), N();
52565
- }, [G, N]), W = D(
52566
+ }, [G, N]), W = P(
52566
52567
  (re) => {
52567
52568
  Y(re), N();
52568
52569
  },
52569
52570
  [Y, N]
52570
- ), q = D(
52571
+ ), q = P(
52571
52572
  (re) => {
52572
- const ee = re.at(0)?.parentPath ?? "/", $ = F(
52573
+ const ee = re.at(0)?.parentPath ?? "/", $ = R(
52573
52574
  ee,
52574
52575
  re,
52575
52576
  !1
52576
52577
  );
52577
52578
  t?.($, ee), n?.();
52578
52579
  },
52579
- [t, n, F]
52580
- ), _ = D(
52580
+ [t, n, R]
52581
+ ), _ = P(
52581
52582
  (re) => {
52582
52583
  m(re), c(!0);
52583
52584
  },
52584
52585
  []
52585
- ), le = D(() => {
52586
- c(!1), R.current || N();
52587
- }, [N, R]), [Re, te] = I(), U = D(
52586
+ ), le = P(() => {
52587
+ c(!1), F.current || N();
52588
+ }, [N, F]), [Re, te] = I(), U = P(
52588
52589
  (re) => {
52589
52590
  u(re);
52590
52591
  const ee = re[0]?.parentPath ?? re[0]?.folderId;
52591
52592
  C(ee), r && re.length > 0 ? te(r(re.length, re[0]?.name)) : te(void 0);
52592
52593
  },
52593
52594
  [r]
52594
- ), ve = D(
52595
+ ), ve = P(
52595
52596
  (re) => {
52596
52597
  p(re);
52597
52598
  const ee = re[0]?.parentPath ?? re[0]?.folderId;
@@ -52616,8 +52617,8 @@ const Y9 = (e, t, i, s, o) => {
52616
52617
  clearState: N,
52617
52618
  conflictingFiles: x,
52618
52619
  conflictResolutionOpen: y,
52619
- openConflictResolution: E,
52620
- closeConflictResolution: T,
52620
+ openConflictResolution: D,
52621
+ closeConflictResolution: E,
52621
52622
  handleConflictReplace: L,
52622
52623
  handleConflictCancel: M,
52623
52624
  handleConflictDuplicate: pe,
@@ -52632,12 +52633,12 @@ const Y9 = (e, t, i, s, o) => {
52632
52633
  }) => {
52633
52634
  const o = e !== void 0, [n, r] = I(
52634
52635
  t
52635
- ), a = o ? e : n, l = D(
52636
+ ), a = o ? e : n, l = P(
52636
52637
  (d) => {
52637
52638
  o || r(d), i?.(d);
52638
52639
  },
52639
52640
  [o, i]
52640
- ), c = D(
52641
+ ), c = P(
52641
52642
  (d) => {
52642
52643
  l(d), s?.();
52643
52644
  },
@@ -52652,14 +52653,14 @@ const Y9 = (e, t, i, s, o) => {
52652
52653
  onDeleteFiles: e,
52653
52654
  onDeleteSuccess: t
52654
52655
  }) => {
52655
- const [i, s] = I(!1), [o, n] = I([]), [r, a] = I(""), l = D(
52656
+ const [i, s] = I(!1), [o, n] = I([]), [r, a] = I(""), l = P(
52656
52657
  (u, h) => {
52657
52658
  n(u), a(h), s(!0);
52658
52659
  },
52659
52660
  []
52660
- ), c = D(() => {
52661
+ ), c = P(() => {
52661
52662
  s(!1), n([]);
52662
- }, []), d = D(() => {
52663
+ }, []), d = P(() => {
52663
52664
  if (e && o.length > 0) {
52664
52665
  const u = o.map((h) => ({
52665
52666
  sourceUrl: h.path,
@@ -52687,7 +52688,7 @@ const Y9 = (e, t, i, s, o) => {
52687
52688
  customDownloadItemsAction: t,
52688
52689
  onDownloadSuccess: i
52689
52690
  }) => ({
52690
- handleDownloadFiles: D(
52691
+ handleDownloadFiles: P(
52691
52692
  (o) => {
52692
52693
  t && o.length > 0 ? t(o) : e && o.length > 0 && (e(o), i?.());
52693
52694
  },
@@ -52703,18 +52704,18 @@ const Y9 = (e, t, i, s, o) => {
52703
52704
  uploadEnabled: r = !0,
52704
52705
  currentFolder: a
52705
52706
  } = {}) => {
52706
- const [l, c] = I(!1), [d, u] = I(!1), [h, p] = I(), g = O(null), m = O(""), v = O([]), C = B(() => !!a?.permissions?.includes(rn.WRITE), [a]), [w, b] = I(/* @__PURE__ */ new Map()), [x, y] = I(null), R = D(
52707
+ const [l, c] = I(!1), [d, u] = I(!1), [h, p] = I(), g = O(null), m = O(""), v = O([]), C = B(() => !!a?.permissions?.includes(rn.WRITE), [a]), [w, b] = I(/* @__PURE__ */ new Map()), [x, y] = I(null), F = P(
52707
52708
  (z) => !s || s.includes("*/*") ? z : z.filter(
52708
52709
  ({ fileContent: Ce, name: fe }) => $w(s, Ce.type, fe)
52709
52710
  ),
52710
52711
  [s]
52711
- ), S = D(() => {
52712
+ ), S = P(() => {
52712
52713
  b(/* @__PURE__ */ new Map()), y(null);
52713
52714
  }, []), {
52714
- conflictingFiles: F,
52715
- conflictResolutionOpen: T,
52716
- hasActiveConflictRef: E,
52717
- startConflictResolution: P,
52715
+ conflictingFiles: R,
52716
+ conflictResolutionOpen: E,
52717
+ hasActiveConflictRef: D,
52718
+ startConflictResolution: T,
52718
52719
  closeConflictResolution: k,
52719
52720
  openConflictResolution: G,
52720
52721
  handleReplaceAll: Y,
@@ -52769,10 +52770,10 @@ const Y9 = (e, t, i, s, o) => {
52769
52770
  window.removeEventListener("dragenter", Ce), window.removeEventListener("dragleave", fe), window.removeEventListener("drop", ne), window.removeEventListener("dragover", ue);
52770
52771
  };
52771
52772
  }, [r, C]);
52772
- const L = D(
52773
+ const L = P(
52773
52774
  (z) => i ? z.filter((Ce) => Ce.fileContent.size > i).map((Ce) => Ce.name) : [],
52774
52775
  [i]
52775
- ), pe = D(
52776
+ ), pe = P(
52776
52777
  (z, Ce) => z.map((fe) => ({
52777
52778
  id: fe.name,
52778
52779
  name: fe.name,
@@ -52783,7 +52784,7 @@ const Y9 = (e, t, i, s, o) => {
52783
52784
  contentLength: fe.fileContent.size
52784
52785
  })),
52785
52786
  []
52786
- ), M = D(
52787
+ ), M = P(
52787
52788
  async (z, Ce, fe) => {
52788
52789
  if (!r || !C) return !1;
52789
52790
  p(void 0), v.current = fe;
@@ -52811,7 +52812,7 @@ const Y9 = (e, t, i, s, o) => {
52811
52812
  const ue = new Map(z.map((xe) => [xe.name, xe]));
52812
52813
  b(ue);
52813
52814
  const Te = pe(z, Ce);
52814
- return y({ destinationFolder: Ce }), P(Ce, Te, {
52815
+ return y({ destinationFolder: Ce }), T(Ce, Te, {
52815
52816
  destinationFolder: Ce
52816
52817
  }).hasConflicts ? !1 : (e?.(z, Ce), S(), !0);
52817
52818
  },
@@ -52823,29 +52824,29 @@ const Y9 = (e, t, i, s, o) => {
52823
52824
  i,
52824
52825
  o,
52825
52826
  pe,
52826
- P,
52827
+ T,
52827
52828
  S,
52828
52829
  C
52829
52830
  ]
52830
- ), W = D(() => {
52831
+ ), W = P(() => {
52831
52832
  Y(), S();
52832
- }, [Y, S]), q = D(() => {
52833
+ }, [Y, S]), q = P(() => {
52833
52834
  N(), S();
52834
- }, [N, S]), _ = D(() => {
52835
+ }, [N, S]), _ = P(() => {
52835
52836
  j(), S();
52836
- }, [j, S]), le = D(
52837
+ }, [j, S]), le = P(
52837
52838
  (z) => {
52838
52839
  V(z), S();
52839
52840
  },
52840
52841
  [V, S]
52841
- ), Re = D(() => {
52842
- k(), E.current || S();
52843
- }, [k, E, S]), te = D(
52842
+ ), Re = P(() => {
52843
+ k(), D.current || S();
52844
+ }, [k, D, S]), te = P(
52844
52845
  (z) => {
52845
52846
  !r || !C || (z.preventDefault(), z.stopPropagation(), z.dataTransfer.types.includes("Files") && c(!0));
52846
52847
  },
52847
52848
  [r, C]
52848
- ), U = D(
52849
+ ), U = P(
52849
52850
  (z) => {
52850
52851
  if (!r || !C) return;
52851
52852
  z.preventDefault(), z.stopPropagation();
@@ -52853,12 +52854,12 @@ const Y9 = (e, t, i, s, o) => {
52853
52854
  (fe <= Ce.left || fe >= Ce.right || ne <= Ce.top || ne >= Ce.bottom) && c(!1);
52854
52855
  },
52855
52856
  [r, C]
52856
- ), ve = D(
52857
+ ), ve = P(
52857
52858
  (z) => {
52858
52859
  !r || !C || (z.preventDefault(), z.stopPropagation(), z.dataTransfer.types.includes("Files") && (z.dataTransfer.dropEffect = "copy"));
52859
52860
  },
52860
52861
  [r, C]
52861
- ), re = D(
52862
+ ), re = P(
52862
52863
  async (z, Ce, fe) => {
52863
52864
  if (!r || !C || (z.preventDefault(), z.stopPropagation(), c(!1), !z.dataTransfer.types.includes("Files")))
52864
52865
  return;
@@ -52882,7 +52883,7 @@ const Y9 = (e, t, i, s, o) => {
52882
52883
  const Ge = ue.map((Me) => ({
52883
52884
  fileContent: Me,
52884
52885
  name: Me.name
52885
- })), xe = R(Ge);
52886
+ })), xe = F(Ge);
52886
52887
  if (xe.length === 0) {
52887
52888
  p(
52888
52889
  o.unsupportedFiles || "Selected files are not supported"
@@ -52893,7 +52894,7 @@ const Y9 = (e, t, i, s, o) => {
52893
52894
  },
52894
52895
  [
52895
52896
  r,
52896
- R,
52897
+ F,
52897
52898
  M,
52898
52899
  o,
52899
52900
  C
@@ -52911,7 +52912,7 @@ const Y9 = (e, t, i, s, o) => {
52911
52912
  const ne = Array.from(z.files).map((Te) => ({
52912
52913
  fileContent: Te,
52913
52914
  name: Te.name
52914
- })), ue = R(ne);
52915
+ })), ue = F(ne);
52915
52916
  if (ue.length === 0) {
52916
52917
  p(
52917
52918
  o.unsupportedFiles || "Selected files are not supported"
@@ -52930,17 +52931,17 @@ const Y9 = (e, t, i, s, o) => {
52930
52931
  }, [
52931
52932
  r,
52932
52933
  s,
52933
- R,
52934
+ F,
52934
52935
  M,
52935
52936
  o,
52936
52937
  C
52937
52938
  ]);
52938
- const ee = D(
52939
+ const ee = P(
52939
52940
  (z, Ce) => {
52940
52941
  !r || !C || (m.current = z, v.current = Ce, g.current && g.current.click());
52941
52942
  },
52942
52943
  [r, C]
52943
- ), $ = D(
52944
+ ), $ = P(
52944
52945
  (z, Ce) => {
52945
52946
  if (!n || !r || !C) return;
52946
52947
  const fe = document.createElement("input");
@@ -52963,7 +52964,7 @@ const Y9 = (e, t, i, s, o) => {
52963
52964
  };
52964
52965
  if (v.current = Ce, y({ destinationFolder: z }), b(
52965
52966
  /* @__PURE__ */ new Map([[Ge.path, { fileContent: ue, name: Te }]])
52966
- ), P(z, [Ge], {
52967
+ ), T(z, [Ge], {
52967
52968
  destinationFolder: z
52968
52969
  }).hasConflicts) {
52969
52970
  document.body.removeChild(fe);
@@ -52977,8 +52978,8 @@ const Y9 = (e, t, i, s, o) => {
52977
52978
  };
52978
52979
  fe.addEventListener("change", ne), document.body.appendChild(fe), fe.click();
52979
52980
  },
52980
- [n, r, C, P]
52981
- ), de = D(() => {
52981
+ [n, r, C, T]
52982
+ ), de = P(() => {
52982
52983
  p(void 0);
52983
52984
  }, []);
52984
52985
  return {
@@ -52994,9 +52995,9 @@ const Y9 = (e, t, i, s, o) => {
52994
52995
  openFileDialog: ee,
52995
52996
  openArchiveDialog: $,
52996
52997
  fileInputRef: g,
52997
- uploadConflictingFiles: F,
52998
- uploadConflictResolutionOpen: T,
52999
- hasActiveUploadConflictRef: E,
52998
+ uploadConflictingFiles: R,
52999
+ uploadConflictResolutionOpen: E,
53000
+ hasActiveUploadConflictRef: D,
53000
53001
  openUploadConflictResolution: G,
53001
53002
  closeUploadConflictResolution: Re,
53002
53003
  handleUploadConflictReplace: W,
@@ -53040,15 +53041,15 @@ const lO = ({
53040
53041
  ...i
53041
53042
  }),
53042
53043
  [i]
53043
- ), a = B(() => o?.path, [o]), l = D(
53044
+ ), a = B(() => o?.path, [o]), l = P(
53044
53045
  (p) => {
53045
53046
  const g = Ui(e, p);
53046
53047
  g && n(g);
53047
53048
  },
53048
53049
  [e]
53049
- ), c = D(() => {
53050
+ ), c = P(() => {
53050
53051
  n(void 0);
53051
- }, []), d = D(
53052
+ }, []), d = P(
53052
53053
  (p) => {
53053
53054
  if (!o || !s) {
53054
53055
  n(void 0);
@@ -53080,7 +53081,7 @@ const lO = ({
53080
53081
  s([w], C, C), n(void 0);
53081
53082
  },
53082
53083
  [o, s]
53083
- ), u = D(
53084
+ ), u = P(
53084
53085
  (p, g) => {
53085
53086
  const m = p.trim();
53086
53087
  if (!m)
@@ -53109,7 +53110,7 @@ const lO = ({
53109
53110
  return null;
53110
53111
  },
53111
53112
  [t, r, e]
53112
- ), h = D((p) => p.nodeType === Ee.ITEM ? aO(p.name) : p.name, []);
53113
+ ), h = P((p) => p.nodeType === Ee.ITEM ? aO(p.name) : p.name, []);
53113
53114
  return {
53114
53115
  renamedPath: a,
53115
53116
  renamedItem: o,
@@ -53130,26 +53131,26 @@ const lO = ({
53130
53131
  Se(() => {
53131
53132
  s && e?.expandedPaths && i(new Set(e.expandedPaths));
53132
53133
  }, [s, e?.expandedPaths]);
53133
- const n = D(
53134
+ const n = P(
53134
53135
  (d) => {
53135
53136
  s ? e?.onExpandedPathsChange?.(d) : i(d);
53136
53137
  },
53137
53138
  [s, e]
53138
- ), r = D(
53139
+ ), r = P(
53139
53140
  (d) => {
53140
53141
  const u = new Set(o);
53141
53142
  u.has(d) ? u.delete(d) : u.add(d), n(u);
53142
53143
  },
53143
53144
  [o, n]
53144
- ), a = D(() => {
53145
+ ), a = P(() => {
53145
53146
  n(/* @__PURE__ */ new Set());
53146
- }, [n]), l = D(
53147
+ }, [n]), l = P(
53147
53148
  (d) => {
53148
53149
  const u = new Set(o);
53149
53150
  u.add(d), n(u);
53150
53151
  },
53151
53152
  [o, n]
53152
- ), c = D(
53153
+ ), c = P(
53153
53154
  (d) => {
53154
53155
  const u = new Set(o);
53155
53156
  u.delete(d), n(u);
@@ -53244,13 +53245,13 @@ const lO = ({
53244
53245
  const g = e?.path;
53245
53246
  l.current !== g && o && (n(!1), a(null)), l.current = g;
53246
53247
  }, [e?.path, o]);
53247
- const d = D(() => {
53248
+ const d = P(() => {
53248
53249
  if (o) return;
53249
53250
  const g = `__new_folder_${Date.now()}`;
53250
53251
  a(g), n(!0);
53251
- }, [o]), u = D(() => {
53252
+ }, [o]), u = P(() => {
53252
53253
  n(!1), a(null);
53253
- }, []), h = D(
53254
+ }, []), h = P(
53254
53255
  (g) => {
53255
53256
  const m = g.trim();
53256
53257
  if (!m)
@@ -53269,7 +53270,7 @@ const lO = ({
53269
53270
  return null;
53270
53271
  },
53271
53272
  [e, i, c]
53272
- ), p = D(
53273
+ ), p = P(
53273
53274
  async (g) => {
53274
53275
  const m = g.trim();
53275
53276
  if (!m)
@@ -53321,12 +53322,12 @@ const lO = ({
53321
53322
  }, [e, s, i])
53322
53323
  };
53323
53324
  }, pO = ({ onGetInfo: e }) => {
53324
- const [t, i] = I(!1), [s, o] = I(void 0), n = D(
53325
+ const [t, i] = I(!1), [s, o] = I(void 0), n = P(
53325
53326
  async (a) => {
53326
53327
  o(a), i(!0), e && await e(a);
53327
53328
  },
53328
53329
  [e]
53329
- ), r = D(() => {
53330
+ ), r = P(() => {
53330
53331
  i(!1), o(void 0);
53331
53332
  }, []);
53332
53333
  return {
@@ -53365,9 +53366,9 @@ function fO({
53365
53366
  }, [n]);
53366
53367
  const v = String(
53367
53368
  n ?? c ?? ""
53368
- ).trim(), C = h.current && (o || s.length > 0 || v !== ""), w = D(
53369
- (R) => {
53370
- const S = R.trim();
53369
+ ).trim(), C = h.current && (o || s.length > 0 || v !== ""), w = P(
53370
+ (F) => {
53371
+ const S = F.trim();
53371
53372
  if (!S) {
53372
53373
  h.current = !1, u.current = !1;
53373
53374
  return;
@@ -53375,11 +53376,11 @@ function fO({
53375
53376
  h.current = !0, e && i && !u.current && (u.current = !0, e(i, S));
53376
53377
  },
53377
53378
  [e, i]
53378
- ), b = D(() => {
53379
+ ), b = P(() => {
53379
53380
  u.current = !1, h.current = !1, p.current = [], d(""), r?.(""), t?.();
53380
- }, [t, r]), x = D(
53381
- (R) => {
53382
- const S = String(R ?? "");
53381
+ }, [t, r]), x = P(
53382
+ (F) => {
53383
+ const S = String(F ?? "");
53383
53384
  d(S), r?.(S), S.trim() ? w(S) : b();
53384
53385
  },
53385
53386
  [r, w, b]
@@ -53401,8 +53402,8 @@ function fO({
53401
53402
  }
53402
53403
  if (!v || !a.length)
53403
53404
  return [];
53404
- const R = gO(a);
53405
- return ff(R, v);
53405
+ const F = gO(a);
53406
+ return ff(F, v);
53406
53407
  }, [
53407
53408
  e,
53408
53409
  s,
@@ -53429,13 +53430,13 @@ function mO({
53429
53430
  const s = e !== void 0, [o, n] = I(() => t ?? /* @__PURE__ */ new Set()), r = B(
53430
53431
  () => s ? e : o,
53431
53432
  [s, e, o]
53432
- ), a = D(
53433
+ ), a = P(
53433
53434
  (c) => {
53434
53435
  const d = new Set(c);
53435
53436
  i?.(d), s || n(d);
53436
53437
  },
53437
53438
  [s, i]
53438
- ), l = D(() => {
53439
+ ), l = P(() => {
53439
53440
  a(/* @__PURE__ */ new Set());
53440
53441
  }, [a]);
53441
53442
  return {
@@ -53472,12 +53473,12 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53472
53473
  bulkActionsToolbarOptions: b,
53473
53474
  destinationFolderPopupOptions: x,
53474
53475
  conflictResolutionPopupOptions: y,
53475
- onPathChange: R,
53476
+ onPathChange: F,
53476
53477
  onTableFileClick: S,
53477
- handleSelectionClick: F,
53478
- onGridApiChange: T,
53479
- onCopyFiles: E,
53480
- onMoveToFiles: P,
53478
+ handleSelectionClick: R,
53479
+ onGridApiChange: E,
53480
+ onCopyFiles: D,
53481
+ onMoveToFiles: T,
53481
53482
  onDeleteFiles: k,
53482
53483
  onDownloadFiles: G,
53483
53484
  onRenameValidate: Y,
@@ -53541,7 +53542,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53541
53542
  selectedPaths: l,
53542
53543
  defaultSelectedPaths: c,
53543
53544
  onSelectedPathsChange: d
53544
- }), Ji = O(null), Vl = D(
53545
+ }), Ji = O(null), Vl = P(
53545
53546
  (ke, Be, je) => {
53546
53547
  if (Qi) {
53547
53548
  const li = Be.lastIndexOf("/"), dc = li >= 0 ? Be.slice(li + 1) : Be, Oe = li >= 0 ? Be.slice(0, li) : "";
@@ -53553,7 +53554,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53553
53554
  te?.(ke, Be, je);
53554
53555
  },
53555
53556
  [te, Qi]
53556
- ), zl = D(
53557
+ ), zl = P(
53557
53558
  (ke, Be) => {
53558
53559
  Qi && (Ji.current = {
53559
53560
  fileNames: new Set(ke.map((je) => je.name)),
@@ -53561,7 +53562,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53561
53562
  }), M?.(ke, Be);
53562
53563
  },
53563
53564
  [M, Qi]
53564
- ), Wl = D(
53565
+ ), Wl = P(
53565
53566
  (ke, Be, je) => {
53566
53567
  Qi && (Ji.current = {
53567
53568
  fileNames: /* @__PURE__ */ new Set([Be]),
@@ -53594,7 +53595,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53594
53595
  const { currentPath: nt, setCurrentPath: _l, handlePathChange: bt } = J9({
53595
53596
  path: n,
53596
53597
  defaultPath: r,
53597
- onPathChange: R,
53598
+ onPathChange: F,
53598
53599
  onSelectionClear: Ii
53599
53600
  }), cn = B(() => {
53600
53601
  const {
@@ -53603,7 +53604,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53603
53604
  ...je
53604
53605
  } = C || {};
53605
53606
  return { showFiles: ke, showFolders: Be, ...je };
53606
- }, [C]), dn = cn.showFiles, un = cn.showFolders, [Js, eo] = I(), Ul = x?.destinationFolderPath ?? Js, to = D(
53607
+ }, [C]), dn = cn.showFiles, un = cn.showFolders, [Js, eo] = I(), Ul = x?.destinationFolderPath ?? Js, to = P(
53607
53608
  (ke) => {
53608
53609
  x?.setDestinationFolderPath ? x.setDestinationFolderPath(ke) : eo(ke);
53609
53610
  },
@@ -53626,7 +53627,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53626
53627
  items: s,
53627
53628
  onRenameValidate: Y,
53628
53629
  validationMessages: V,
53629
- onMoveToFiles: P
53630
+ onMoveToFiles: T
53630
53631
  }), {
53631
53632
  isSearchMode: hn,
53632
53633
  searchValue: Dr,
@@ -53669,8 +53670,8 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53669
53670
  sourceFolder: Nr
53670
53671
  } = Q9({
53671
53672
  getDestinationFiles: (ke) => gd(s, ke)?.items ?? [],
53672
- onCopyFiles: E,
53673
- onMoveToFiles: P,
53673
+ onCopyFiles: D,
53674
+ onMoveToFiles: T,
53674
53675
  onCopySuccess: Ii,
53675
53676
  onMoveSuccess: Ii,
53676
53677
  onDuplicateSuccess: Ii,
@@ -53721,31 +53722,31 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53721
53722
  validationMessages: _,
53722
53723
  uploadEnabled: q,
53723
53724
  currentFolder: ct
53724
- }), qr = D(
53725
+ }), qr = P(
53725
53726
  (ke) => {
53726
53727
  xt();
53727
53728
  const Be = nt ?? "", je = ct?.items ?? [];
53728
53729
  mn(ke, Be, je);
53729
53730
  },
53730
53731
  [nt, ct, mn, xt]
53731
- ), Kr = D(() => {
53732
+ ), Kr = P(() => {
53732
53733
  xt();
53733
53734
  const ke = nt ?? "", Be = ct?.items ?? [];
53734
53735
  zr(ke, Be);
53735
- }, [nt, ct, zr, xt]), Q = D(() => {
53736
+ }, [nt, ct, zr, xt]), Q = P(() => {
53736
53737
  xt();
53737
53738
  const ke = nt ?? "", Be = ct?.items ?? [];
53738
53739
  uo(ke, Be);
53739
- }, [nt, ct, uo, xt]), Ke = D(() => {
53740
+ }, [nt, ct, uo, xt]), Ke = P(() => {
53740
53741
  xt(), bs?.(nt, ct);
53741
- }, [bs, nt, ct, xt]), Je = D(() => {
53742
+ }, [bs, nt, ct, xt]), Je = P(() => {
53742
53743
  xt(), ln?.(nt, ct);
53743
53744
  }, [
53744
53745
  ln,
53745
53746
  nt,
53746
53747
  ct,
53747
53748
  xt
53748
- ]), $t = D(
53749
+ ]), $t = P(
53749
53750
  (ke) => {
53750
53751
  Xs?.(ke);
53751
53752
  },
@@ -53762,7 +53763,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53762
53763
  onCreateFolder: Vl,
53763
53764
  onValidateFolderName: U,
53764
53765
  validationMessages: ve
53765
- }), $h = D(() => {
53766
+ }), $h = P(() => {
53766
53767
  xt(), Uh();
53767
53768
  }, [xt, Uh]), { newActions: ib, isNewButtonVisible: sb, isNewButtonDisabled: ob } = cO(
53768
53769
  {
@@ -53875,17 +53876,17 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53875
53876
  ke.fileNames.has(li.name) && je.add(li.path);
53876
53877
  je.size > 0 && (xs(je), Ji.current = null);
53877
53878
  }, [s, nt, xs]);
53878
- const rb = D(
53879
+ const rb = P(
53879
53880
  (ke) => {
53880
53881
  bt(ke.path);
53881
53882
  },
53882
53883
  [bt]
53883
- ), ab = D(
53884
+ ), ab = P(
53884
53885
  (ke) => {
53885
53886
  bt(ke);
53886
53887
  },
53887
53888
  [bt]
53888
- ), lb = D(
53889
+ ), lb = P(
53889
53890
  (ke) => {
53890
53891
  ke.nodeType === Ee.FOLDER ? bt(ke.path) : S?.(ke);
53891
53892
  },
@@ -53902,7 +53903,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53902
53903
  selectedFileForMetadata: pb,
53903
53904
  openMetadataPopup: gb,
53904
53905
  closeMetadataPopup: Kh
53905
- } = pO({ onGetInfo: ee }), fb = D(() => {
53906
+ } = pO({ onGetInfo: ee }), fb = P(() => {
53906
53907
  Kh(), re?.clearMetadata?.();
53907
53908
  }, [Kh, re]), mb = B(() => {
53908
53909
  if (L)
@@ -53985,8 +53986,8 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
53985
53986
  handleSearchChange: pn,
53986
53987
  handleTableRowClick: lb,
53987
53988
  onTableFileClick: S,
53988
- handleSelectionClick: F,
53989
- onGridApiChange: T,
53989
+ handleSelectionClick: R,
53990
+ onGridApiChange: E,
53990
53991
  isDragging: co,
53991
53992
  uploadError: Hr,
53992
53993
  handleDragEnter: Gr,
@@ -54166,8 +54167,8 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
54166
54167
  alertProps: b,
54167
54168
  ...x
54168
54169
  }) => {
54169
- const [y, R] = I(!1), [S, F] = I(!1), T = O(null), E = jh(), P = D((j) => {
54170
- R(j);
54170
+ const [y, F] = I(!1), [S, R] = I(!1), E = O(null), D = jh(), T = P((j) => {
54171
+ F(j);
54171
54172
  }, []), k = B(() => {
54172
54173
  const j = [
54173
54174
  {
@@ -54175,7 +54176,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
54175
54176
  label: a,
54176
54177
  icon: /* @__PURE__ */ f.jsx(Zh, { ...se, className: "text-secondary" }),
54177
54178
  onClick: () => {
54178
- T.current?.createFolder(), F(!1);
54179
+ E.current?.createFolder(), R(!1);
54179
54180
  }
54180
54181
  }
54181
54182
  ];
@@ -54184,10 +54185,10 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
54184
54185
  label: c,
54185
54186
  icon: /* @__PURE__ */ f.jsx(gl, { ...se, className: "text-secondary" }),
54186
54187
  onClick: () => {
54187
- R((V) => !V), F(!1);
54188
+ F((V) => !V), R(!1);
54188
54189
  }
54189
54190
  }), j;
54190
- }, [a, c, d]), G = D(
54191
+ }, [a, c, d]), G = P(
54191
54192
  (j) => {
54192
54193
  j && (i?.(j), s?.(j));
54193
54194
  },
@@ -54205,12 +54206,12 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
54205
54206
  dividers: !1,
54206
54207
  className: "md:!h-[800px] !bg-layer-2",
54207
54208
  footer: /* @__PURE__ */ f.jsxs("div", { className: "flex justify-between items-center gap-2 py-4 px-4 md:px-6", children: [
54208
- /* @__PURE__ */ f.jsx("div", { className: "flex items-center gap-4 min-w-0", children: E ? /* @__PURE__ */ f.jsx(
54209
+ /* @__PURE__ */ f.jsx("div", { className: "flex items-center gap-4 min-w-0", children: D ? /* @__PURE__ */ f.jsx(
54209
54210
  Bt,
54210
54211
  {
54211
54212
  menu: { items: k },
54212
54213
  open: S,
54213
- onOpenChange: F,
54214
+ onOpenChange: R,
54214
54215
  children: /* @__PURE__ */ f.jsx(
54215
54216
  gi,
54216
54217
  {
@@ -54234,7 +54235,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
54234
54235
  appearance: Le.Ghost,
54235
54236
  iconBefore: /* @__PURE__ */ f.jsx(Zh, { ...se }),
54236
54237
  onClick: () => {
54237
- T.current?.createFolder();
54238
+ E.current?.createFolder();
54238
54239
  }
54239
54240
  }
54240
54241
  ),
@@ -54245,7 +54246,7 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
54245
54246
  {
54246
54247
  label: c,
54247
54248
  isOn: y,
54248
- onChange: P,
54249
+ onChange: T,
54249
54250
  switchId: "hidden-files-switch-modal"
54250
54251
  }
54251
54252
  ) })
@@ -54282,10 +54283,10 @@ const vO = ':;,=/{}%&\\"', Xw = `(\r
54282
54283
  x.className,
54283
54284
  "bg-layer-2 h-full flex pt-0"
54284
54285
  ),
54285
- actionsRef: T,
54286
+ actionsRef: E,
54286
54287
  path: C,
54287
54288
  showHiddenFiles: y,
54288
- onShowHiddenFilesChange: P,
54289
+ onShowHiddenFilesChange: T,
54289
54290
  treeOptions: {
54290
54291
  ...x.treeOptions,
54291
54292
  collapsed: w,
@@ -54328,17 +54329,17 @@ function FO({
54328
54329
  let m = null;
54329
54330
  const v = () => {
54330
54331
  m && cancelAnimationFrame(m), m = requestAnimationFrame(() => {
54331
- const w = r.current, b = l.current?.offsetWidth ?? 0, x = c.current?.offsetWidth ?? 0, y = b + x, S = w.getBoundingClientRect().width - y - i - s * 2 - o * 2, F = d.current;
54332
- let T = 0, E = 0;
54332
+ const w = r.current, b = l.current?.offsetWidth ?? 0, x = c.current?.offsetWidth ?? 0, y = b + x, S = w.getBoundingClientRect().width - y - i - s * 2 - o * 2, R = d.current;
54333
+ let E = 0, D = 0;
54333
54334
  if (t === Fo.Reverse)
54334
- for (let P = F.length - 1; P >= 0 && (T += F[P] + s, !(T > S)); P--)
54335
- E++;
54335
+ for (let T = R.length - 1; T >= 0 && (E += R[T] + s, !(E > S)); T--)
54336
+ D++;
54336
54337
  else
54337
- for (const P of F) {
54338
- if (T += P + s, T > S) break;
54339
- E++;
54338
+ for (const T of R) {
54339
+ if (E += T + s, E > S) break;
54340
+ D++;
54340
54341
  }
54341
- h(E);
54342
+ h(D);
54342
54343
  });
54343
54344
  }, C = new ResizeObserver(v);
54344
54345
  return C.observe(r.current), v(), () => {
@@ -54516,24 +54517,24 @@ const EO = ({ getSelectionLabel: e, onClearSelection: t, actions: i, selectedCou
54516
54517
  }) => {
54517
54518
  const b = B(() => {
54518
54519
  if (!s) return;
54519
- let T = mf(s);
54520
- const E = [...T];
54521
- let P = 0;
54520
+ let E = mf(s);
54521
+ const D = [...E];
54522
+ let T = 0;
54522
54523
  if (a) {
54523
54524
  const G = mf(a);
54524
54525
  if (G.length) {
54525
- const Y = T.findIndex(
54526
- (N, j) => G.every((V, L) => T[j + L] === V)
54526
+ const Y = E.findIndex(
54527
+ (N, j) => G.every((V, L) => E[j + L] === V)
54527
54528
  );
54528
- Y !== -1 && (P = G.length, T = [
54529
- ...T.slice(0, Y),
54530
- ...T.slice(Y + G.length)
54529
+ Y !== -1 && (T = G.length, E = [
54530
+ ...E.slice(0, Y),
54531
+ ...E.slice(Y + G.length)
54531
54532
  ]);
54532
54533
  }
54533
54534
  }
54534
- if (!T.length) return [{ label: "/" }];
54535
- const k = T.map((G, Y) => {
54536
- const N = Y < T.length - P ? Y : Y + P, j = E.slice(0, N + 1), V = typeof o == "function" ? o(j, N) : void 0;
54535
+ if (!E.length) return [{ label: "/" }];
54536
+ const k = E.map((G, Y) => {
54537
+ const N = Y < E.length - T ? Y : Y + T, j = D.slice(0, N + 1), V = typeof o == "function" ? o(j, N) : void 0;
54537
54538
  return {
54538
54539
  label: G,
54539
54540
  href: V,
@@ -54568,15 +54569,15 @@ const EO = ({ getSelectionLabel: e, onClearSelection: t, actions: i, selectedCou
54568
54569
  r,
54569
54570
  o,
54570
54571
  i
54571
- ]), [x, y] = I(!1), R = D(() => {
54572
+ ]), [x, y] = I(!1), F = P(() => {
54572
54573
  if (w && !x) {
54573
54574
  y(!0);
54574
- const T = document.getElementById(h);
54575
- T && T.focus();
54575
+ const E = document.getElementById(h);
54576
+ E && E.focus();
54576
54577
  }
54577
- }, [h, x, w]), S = D(() => {
54578
+ }, [h, x, w]), S = P(() => {
54578
54579
  (!u || String(u).trim() === "") && m?.("");
54579
- }, [u, m]), F = D(() => w && x ? /* @__PURE__ */ f.jsx(
54580
+ }, [u, m]), R = P(() => w && x ? /* @__PURE__ */ f.jsx(
54580
54581
  qi,
54581
54582
  {
54582
54583
  className: "!p-[9px]",
@@ -54614,7 +54615,7 @@ const EO = ({ getSelectionLabel: e, onClearSelection: t, actions: i, selectedCou
54614
54615
  ),
54615
54616
  "aria-label": "navigation-panel",
54616
54617
  children: [
54617
- F(),
54618
+ R(),
54618
54619
  d && /* @__PURE__ */ f.jsx(
54619
54620
  "div",
54620
54621
  {
@@ -54624,7 +54625,7 @@ const EO = ({ getSelectionLabel: e, onClearSelection: t, actions: i, selectedCou
54624
54625
  }),
54625
54626
  role: "search",
54626
54627
  "aria-label": "Search",
54627
- onClick: R,
54628
+ onClick: F,
54628
54629
  children: /* @__PURE__ */ f.jsx(
54629
54630
  Lw,
54630
54631
  {
@@ -55009,9 +55010,9 @@ function VO({
55009
55010
  onSave: o,
55010
55011
  onCancel: n
55011
55012
  }) {
55012
- const [r, a] = I(e), [l, c] = I(!1), [d, u] = I(""), h = O(null), p = D((w = !1, b = "") => {
55013
+ const [r, a] = I(e), [l, c] = I(!1), [d, u] = I(""), h = O(null), p = P((w = !1, b = "") => {
55013
55014
  c(w), u(b);
55014
- }, []), g = D(
55015
+ }, []), g = P(
55015
55016
  (w) => {
55016
55017
  if (!s)
55017
55018
  return p(), !0;
@@ -55019,15 +55020,15 @@ function VO({
55019
55020
  return b ? b.startsWith(`${Ri.Warning}__`) ? (p(!1, b), !0) : (p(!0, b), !1) : (p(), !0);
55020
55021
  },
55021
55022
  [s, p]
55022
- ), m = D(
55023
+ ), m = P(
55023
55024
  (w) => {
55024
55025
  const b = w ?? "";
55025
55026
  a(b), g(b);
55026
55027
  },
55027
55028
  [g]
55028
- ), v = D(() => {
55029
+ ), v = P(() => {
55029
55030
  g(r) ? o?.(r) : h.current?.focus();
55030
- }, [g, o, r]), C = D(() => {
55031
+ }, [g, o, r]), C = P(() => {
55031
55032
  i && a(e), p(), n?.();
55032
55033
  }, [e, n, i, p]);
55033
55034
  return Se(() => {
@@ -55074,7 +55075,7 @@ const ul = ({
55074
55075
  forbiddenSymbolsTooltip: v,
55075
55076
  ...C
55076
55077
  }) => {
55077
- const { value: w, invalid: b, invalidMessage: x, onChange: y, inputRef: R } = VO({
55078
+ const { value: w, invalid: b, invalidMessage: x, onChange: y, inputRef: F } = VO({
55078
55079
  value: e,
55079
55080
  isEditing: s,
55080
55081
  onValidate: a,
@@ -55089,7 +55090,7 @@ const ul = ({
55089
55090
  },
55090
55091
  m,
55091
55092
  v
55092
- ), F = !!S;
55093
+ ), R = !!S;
55093
55094
  return t === oi.Folder ? /* @__PURE__ */ f.jsx(
55094
55095
  zu,
55095
55096
  {
@@ -55100,7 +55101,7 @@ const ul = ({
55100
55101
  className: "max-w-[428px] truncate",
55101
55102
  sharedIndicatorClassName: h,
55102
55103
  hideTooltip: g,
55103
- isInvalidName: F,
55104
+ isInvalidName: R,
55104
55105
  tooltipContent: S
55105
55106
  }
55106
55107
  ) : /* @__PURE__ */ f.jsx(
@@ -55113,7 +55114,7 @@ const ul = ({
55113
55114
  iconSize: r,
55114
55115
  sharedIndicatorClassName: h,
55115
55116
  hideTooltip: g,
55116
- isInvalidName: F,
55117
+ isInvalidName: R,
55117
55118
  tooltipContent: S
55118
55119
  }
55119
55120
  );
@@ -55126,7 +55127,7 @@ const ul = ({
55126
55127
  elementId: i,
55127
55128
  inputInvalid: b,
55128
55129
  inputInvalidMessage: x,
55129
- inputRef: R,
55130
+ inputRef: F,
55130
55131
  onChange: y,
55131
55132
  iconSize: r,
55132
55133
  fileExtension: c,
@@ -55159,16 +55160,16 @@ const ul = ({
55159
55160
  forbiddenSymbolsRegExp: x,
55160
55161
  forbiddenSymbolsTooltip: y
55161
55162
  }) => {
55162
- const { expandedPaths: R, togglePath: S } = Zw({
55163
+ const { expandedPaths: F, togglePath: S } = Zw({
55163
55164
  expandedPaths: i ?? /* @__PURE__ */ new Set(),
55164
55165
  onExpandedPathsChange: b
55165
- }), F = (E) => {
55166
- g?.(E), S(E.path);
55167
- }, T = (E, P) => E.map((k) => {
55166
+ }), R = (D) => {
55167
+ g?.(D), S(D.path);
55168
+ }, E = (D, T) => D.map((k) => {
55168
55169
  const { path: G, nodeType: Y, name: N, items: j } = k, V = Y === Ee.FOLDER;
55169
55170
  if (!d && Uw(k)) return null;
55170
55171
  if (!V && !t) return;
55171
- const L = Array.isArray(j) && j.length > 0 && j.some((ee) => ee.nodeType === Ee.FOLDER || t), pe = R.has(G), M = r === G, W = s.has(G), q = u === G, _ = o.has(G), le = n.has(G), Re = p && h && G === p && V, te = w && ((ee) => w(ee, k)), U = M ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", ve = Re ? [] : m?.(k) ?? [], re = x ? Wh(
55172
+ const L = Array.isArray(j) && j.length > 0 && j.some((ee) => ee.nodeType === Ee.FOLDER || t), pe = F.has(G), M = r === G, W = s.has(G), q = u === G, _ = o.has(G), le = n.has(G), Re = p && h && G === p && V, te = w && ((ee) => w(ee, k)), U = M ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", ve = Re ? [] : m?.(k) ?? [], re = x ? Wh(
55172
55173
  { name: k.name, isFolder: V },
55173
55174
  x,
55174
55175
  y
@@ -55184,7 +55185,7 @@ const ul = ({
55184
55185
  children: /* @__PURE__ */ f.jsxs(
55185
55186
  "div",
55186
55187
  {
55187
- style: { paddingLeft: `${P * HO}px` },
55188
+ style: { paddingLeft: `${T * HO}px` },
55188
55189
  className: ce(
55189
55190
  "py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",
55190
55191
  U
@@ -55195,14 +55196,14 @@ const ul = ({
55195
55196
  "div",
55196
55197
  {
55197
55198
  className: "absolute size-full left-0 top-0 z-0",
55198
- onClick: () => F(k)
55199
+ onClick: () => R(k)
55199
55200
  }
55200
55201
  ),
55201
55202
  /* @__PURE__ */ f.jsx(
55202
55203
  "div",
55203
55204
  {
55204
55205
  className: "relative flex flex-row truncate items-center w-fit h-6 gap-x-1 pl-1",
55205
- onClick: () => !q && F(k),
55206
+ onClick: () => !q && R(k),
55206
55207
  children: /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
55207
55208
  V && /* @__PURE__ */ f.jsx(
55208
55209
  l1,
@@ -55262,7 +55263,7 @@ const ul = ({
55262
55263
  )
55263
55264
  }
55264
55265
  ),
55265
- pe && j && T(j, P + 1)
55266
+ pe && j && E(j, T + 1)
55266
55267
  ] }) }, `${G}-children`);
55267
55268
  });
55268
55269
  return /* @__PURE__ */ f.jsx(
@@ -55270,7 +55271,7 @@ const ul = ({
55270
55271
  {
55271
55272
  className: "flex-1 w-full h-full overflow-y-auto",
55272
55273
  "aria-label": "folders-tree",
55273
- children: e.length > 0 ? T(e, 0) : /* @__PURE__ */ f.jsx(
55274
+ children: e.length > 0 ? E(e, 0) : /* @__PURE__ */ f.jsx(
55274
55275
  Cl,
55275
55276
  {
55276
55277
  title: a,
@@ -55531,15 +55532,15 @@ const Qw = ({
55531
55532
  renamedItem: b,
55532
55533
  getDisplayName: x,
55533
55534
  onRenameValidate: y,
55534
- onRenameSave: R,
55535
+ onRenameSave: F,
55535
55536
  onRenameCancel: S
55536
55537
  } = o.context;
55537
55538
  if (C === Ho.Grid && w === o.data?.path && b && o.data) {
55538
- const E = x(b);
55539
+ const D = x(b);
55539
55540
  return /* @__PURE__ */ f.jsx(
55540
55541
  ul,
55541
55542
  {
55542
- name: E,
55543
+ name: D,
55543
55544
  type: n === Ee.FOLDER ? oi.Folder : oi.File,
55544
55545
  fileExtension: b.name.split(".").pop(),
55545
55546
  elementId: `rename-${o.data.id}`,
@@ -55547,8 +55548,8 @@ const Qw = ({
55547
55548
  shared: p,
55548
55549
  sharedIndicatorClassName: v,
55549
55550
  iconSize: ds,
55550
- validate: (P) => y(P, b),
55551
- onSave: R,
55551
+ validate: (T) => y(T, b),
55552
+ onSave: F,
55552
55553
  onCancel: S,
55553
55554
  inputContainerClassName: ce([
55554
55555
  "!h-9",
@@ -55576,7 +55577,7 @@ const Qw = ({
55576
55577
  forbiddenSymbolsTooltip: o.context.forbiddenSymbolsTooltip
55577
55578
  }
55578
55579
  );
55579
- const T = Wh(
55580
+ const E = Wh(
55580
55581
  {
55581
55582
  name: o.data.name,
55582
55583
  isFolder: n === Ee.FOLDER
@@ -55592,8 +55593,8 @@ const Qw = ({
55592
55593
  sharedIndicatorClassName: v,
55593
55594
  iconSize: ds,
55594
55595
  hideTooltip: m,
55595
- isInvalidName: !!T,
55596
- tooltipContent: T
55596
+ isInvalidName: !!E,
55597
+ tooltipContent: E
55597
55598
  }
55598
55599
  ) : /* @__PURE__ */ f.jsx(
55599
55600
  Vu,
@@ -55603,8 +55604,8 @@ const Qw = ({
55603
55604
  sharedIndicatorClassName: v,
55604
55605
  iconSize: ds,
55605
55606
  hideTooltip: m,
55606
- isInvalidName: !!T,
55607
- tooltipContent: T
55607
+ isInvalidName: !!E,
55608
+ tooltipContent: E
55608
55609
  }
55609
55610
  );
55610
55611
  }
@@ -55765,13 +55766,13 @@ const YO = () => {
55765
55766
  isDuplicateFolderAvailable: b = !0,
55766
55767
  forbiddenSymbolsRegExp: x
55767
55768
  }) => B(() => (y) => {
55768
- const R = [];
55769
+ const F = [];
55769
55770
  if (!e)
55770
- return R;
55771
+ return F;
55771
55772
  const S = Ol(
55772
55773
  x
55773
55774
  )?.test(y.name);
55774
- e[J.AddSibling] && typeof h == "function" && y.nodeType === Ee.FOLDER && R.push({
55775
+ e[J.AddSibling] && typeof h == "function" && y.nodeType === Ee.FOLDER && F.push({
55775
55776
  key: "addSibling",
55776
55777
  label: e[J.AddSibling],
55777
55778
  icon: /* @__PURE__ */ f.jsx(
@@ -55783,7 +55784,7 @@ const YO = () => {
55783
55784
  }
55784
55785
  ),
55785
55786
  onClick: () => h(y)
55786
- }), e[J.AddChild] && typeof p == "function" && y.nodeType === Ee.FOLDER && !S && R.push(
55787
+ }), e[J.AddChild] && typeof p == "function" && y.nodeType === Ee.FOLDER && !S && F.push(
55787
55788
  {
55788
55789
  key: "addChild",
55789
55790
  label: e[J.AddChild],
@@ -55801,19 +55802,19 @@ const YO = () => {
55801
55802
  key: "divider",
55802
55803
  type: ar.Divider
55803
55804
  }
55804
- ), e[J.OpenInNewTab] && typeof v == "function" && y.nodeType === Ee.ITEM && !S && R.push({
55805
+ ), e[J.OpenInNewTab] && typeof v == "function" && y.nodeType === Ee.ITEM && !S && F.push({
55805
55806
  key: J.OpenInNewTab,
55806
55807
  label: e[J.OpenInNewTab],
55807
55808
  icon: /* @__PURE__ */ f.jsx(Cd, { ...se, className: "text-secondary" }),
55808
55809
  onClick: () => v?.(y)
55809
55810
  });
55810
- const F = y.nodeType === Ee.ITEM || y.nodeType === Ee.FOLDER && b;
55811
- e[J.Duplicate] && F && !S && R.push({
55811
+ const R = y.nodeType === Ee.ITEM || y.nodeType === Ee.FOLDER && b;
55812
+ e[J.Duplicate] && R && !S && F.push({
55812
55813
  key: J.Duplicate,
55813
55814
  label: e[J.Duplicate],
55814
55815
  icon: /* @__PURE__ */ f.jsx(bu, { ...se, className: "text-secondary" }),
55815
55816
  onClick: () => t(y)
55816
- }), e[J.Copy] && !S && R.push({
55817
+ }), e[J.Copy] && !S && F.push({
55817
55818
  key: J.Copy,
55818
55819
  label: e[J.Copy],
55819
55820
  icon: /* @__PURE__ */ f.jsx(
@@ -55825,7 +55826,7 @@ const YO = () => {
55825
55826
  }
55826
55827
  ),
55827
55828
  onClick: () => i(y)
55828
- }), e[J.Move] && !S && R.push({
55829
+ }), e[J.Move] && !S && F.push({
55829
55830
  key: J.Move,
55830
55831
  label: e[J.Move],
55831
55832
  icon: /* @__PURE__ */ f.jsx(
@@ -55837,43 +55838,43 @@ const YO = () => {
55837
55838
  }
55838
55839
  ),
55839
55840
  onClick: () => s(y)
55840
- }), e[J.Download] && !S && R.push({
55841
+ }), e[J.Download] && !S && F.push({
55841
55842
  key: J.Download,
55842
55843
  label: e[J.Download],
55843
55844
  icon: /* @__PURE__ */ f.jsx(xu, { ...se, className: "text-secondary" }),
55844
55845
  onClick: () => o(y)
55845
- }), e[J.ManagePermissions] && typeof g == "function" && y.nodeType === Ee.FOLDER && !S && R.push({
55846
+ }), e[J.ManagePermissions] && typeof g == "function" && y.nodeType === Ee.FOLDER && !S && F.push({
55846
55847
  key: J.ManagePermissions,
55847
55848
  label: e[J.ManagePermissions],
55848
55849
  icon: /* @__PURE__ */ f.jsx(Cd, { ...se, className: "text-secondary" }),
55849
55850
  onClick: () => g?.(y.path)
55850
55851
  });
55851
- const T = y.name.split("."), E = T.length > 1 ? T[T.length - 1] : "", P = E && C?.includes(`.${E}`);
55852
- e[J.Preview] && typeof m == "function" && y.nodeType === Ee.ITEM && P && !S && R.push({
55852
+ const E = y.name.split("."), D = E.length > 1 ? E[E.length - 1] : "", T = D && C?.includes(`.${D}`);
55853
+ e[J.Preview] && typeof m == "function" && y.nodeType === Ee.ITEM && T && !S && F.push({
55853
55854
  key: J.Preview,
55854
55855
  label: e[J.Preview],
55855
55856
  icon: /* @__PURE__ */ f.jsx(gl, { ...se, className: "text-secondary" }),
55856
55857
  onClick: () => m?.(y.path)
55857
55858
  });
55858
55859
  const k = !y.permissions || y.permissions.includes(rn.WRITE);
55859
- e[J.Delete] && k && R.push({
55860
+ e[J.Delete] && k && F.push({
55860
55861
  key: J.Delete,
55861
55862
  label: e[J.Delete],
55862
55863
  icon: /* @__PURE__ */ f.jsx(Bo, { ...se, className: "text-secondary" }),
55863
55864
  onClick: () => r(y, y.parentPath ?? "")
55864
55865
  });
55865
55866
  const G = y.nodeType === Ee.FOLDER || y.nodeType === Ee.ITEM && w;
55866
- return e[J.Rename] && G && R.push({
55867
+ return e[J.Rename] && G && F.push({
55867
55868
  key: J.Rename,
55868
55869
  label: e[J.Rename],
55869
55870
  icon: /* @__PURE__ */ f.jsx(Rf, { ...se, className: "text-secondary" }),
55870
55871
  onClick: () => n(y.path)
55871
- }), e[J.Info] && y.nodeType === Ee.ITEM && !S && R.push({
55872
+ }), e[J.Info] && y.nodeType === Ee.ITEM && !S && F.push({
55872
55873
  key: J.Info,
55873
55874
  label: e[J.Info],
55874
55875
  icon: /* @__PURE__ */ f.jsx(vu, { ...se, className: "text-secondary" }),
55875
55876
  onClick: () => a(y)
55876
- }), e[J.Unshare] && d?.includes(y.path) && R.push({
55877
+ }), e[J.Unshare] && d?.includes(y.path) && F.push({
55877
55878
  key: J.Unshare,
55878
55879
  label: e[J.Unshare],
55879
55880
  icon: /* @__PURE__ */ f.jsx(
@@ -55885,12 +55886,12 @@ const YO = () => {
55885
55886
  }
55886
55887
  ),
55887
55888
  onClick: () => l(y)
55888
- }), e[J.RemoveAccess] && u?.has(y.path) && c && R.push({
55889
+ }), e[J.RemoveAccess] && u?.has(y.path) && c && F.push({
55889
55890
  key: J.RemoveAccess,
55890
55891
  label: e[J.RemoveAccess],
55891
55892
  icon: /* @__PURE__ */ f.jsx(yu, { size: se.size, className: "text-secondary" }),
55892
55893
  onClick: () => c(y)
55893
- }), R;
55894
+ }), F;
55894
55895
  }, [
55895
55896
  e,
55896
55897
  h,
@@ -55937,12 +55938,12 @@ const YO = () => {
55937
55938
  areHiddenFilesVisible: b,
55938
55939
  toggleHiddenFilesVisibility: x,
55939
55940
  isTreeCollapsed: y,
55940
- toggleTreeCollapse: R,
55941
+ toggleTreeCollapse: F,
55941
55942
  currentPath: S,
55942
- gridRows: F,
55943
- selectedPaths: T,
55944
- selectedFiles: E,
55945
- clearSelection: P,
55943
+ gridRows: R,
55944
+ selectedPaths: E,
55945
+ selectedFiles: D,
55946
+ clearSelection: T,
55946
55947
  setSelectedPaths: k,
55947
55948
  effectiveSearchValue: G,
55948
55949
  handleBreadcrumbItemClick: Y,
@@ -56061,7 +56062,7 @@ const YO = () => {
56061
56062
  mt.Name,
56062
56063
  mt.Path,
56063
56064
  mt.Actions
56064
- ] : Nr, [Ai, Nr]), fn = D(
56065
+ ] : Nr, [Ai, Nr]), fn = P(
56065
56066
  (Q, Ke, Je) => Y9(
56066
56067
  Q,
56067
56068
  Ke,
@@ -56070,7 +56071,7 @@ const YO = () => {
56070
56071
  Dr
56071
56072
  ),
56072
56073
  [Dr, oo]
56073
- ), co = D(
56074
+ ), co = P(
56074
56075
  (Q, Ke, Je) => !!fn(
56075
56076
  Q,
56076
56077
  Ke,
@@ -56079,10 +56080,10 @@ const YO = () => {
56079
56080
  [fn]
56080
56081
  ), ys = B(() => {
56081
56082
  const Q = /* @__PURE__ */ new Set();
56082
- for (const Ke of F)
56083
+ for (const Ke of R)
56083
56084
  co(Ke, C, w) && Q.add(Ke.path);
56084
56085
  return Q;
56085
- }, [C, w, F, co]), Hr = D(
56086
+ }, [C, w, R, co]), Hr = P(
56086
56087
  (Q) => {
56087
56088
  const Ke = [], Je = [], $t = !Q.parentPath, vi = qe?.test(
56088
56089
  Q.name
@@ -56225,14 +56226,14 @@ const YO = () => {
56225
56226
  ]
56226
56227
  ), Gr = B(() => {
56227
56228
  const Q = /* @__PURE__ */ new Set();
56228
- return E.forEach((Ke, Je) => Q.add(Je)), Q;
56229
- }, [E]), Br = D(
56229
+ return D.forEach((Ke, Je) => Q.add(Je)), Q;
56230
+ }, [D]), Br = P(
56230
56231
  (Q, Ke) => {
56231
56232
  k(Q), L?.(Ke);
56232
56233
  },
56233
56234
  [L, k]
56234
56235
  ), Vr = WO({
56235
- selectedFiles: E,
56236
+ selectedFiles: D,
56236
56237
  actionLabels: d?.actionLabels,
56237
56238
  onDuplicate: te,
56238
56239
  onCopy: (Q) => {
@@ -56248,14 +56249,14 @@ const YO = () => {
56248
56249
  getCurrentFolderPath: () => S ?? "/",
56249
56250
  sharedWithMeIds: io,
56250
56251
  sharedByMePaths: v,
56251
- onClearSelection: P,
56252
+ onClearSelection: T,
56252
56253
  forbiddenSymbolsRegExp: qe
56253
- }), mn = D(
56254
+ }), mn = P(
56254
56255
  (Q) => {
56255
56256
  c?.onTabChange?.(Q), Qs();
56256
56257
  },
56257
56258
  [c, Qs]
56258
- ), ac = D(() => c && T.size === 0 ? /* @__PURE__ */ f.jsxs(
56259
+ ), ac = P(() => c && E.size === 0 ? /* @__PURE__ */ f.jsxs(
56259
56260
  "div",
56260
56261
  {
56261
56262
  className: af,
@@ -56277,7 +56278,7 @@ const YO = () => {
56277
56278
  )
56278
56279
  ]
56279
56280
  }
56280
- ) : T.size > 0 && d ? /* @__PURE__ */ f.jsx(
56281
+ ) : E.size > 0 && d ? /* @__PURE__ */ f.jsx(
56281
56282
  "div",
56282
56283
  {
56283
56284
  className: af,
@@ -56287,8 +56288,8 @@ const YO = () => {
56287
56288
  EO,
56288
56289
  {
56289
56290
  ...d,
56290
- selectedCount: T.size,
56291
- onClearSelection: P,
56291
+ selectedCount: E.size,
56292
+ onClearSelection: T,
56292
56293
  actions: Vr
56293
56294
  }
56294
56295
  )
@@ -56296,8 +56297,8 @@ const YO = () => {
56296
56297
  ) : null, [
56297
56298
  mn,
56298
56299
  d,
56300
+ E,
56299
56301
  T,
56300
- P,
56301
56302
  Vr,
56302
56303
  b,
56303
56304
  x,
@@ -56314,7 +56315,7 @@ const YO = () => {
56314
56315
  }),
56315
56316
  [Sr]
56316
56317
  );
56317
- const zr = D(() => Lt ? null : /* @__PURE__ */ f.jsx(
56318
+ const zr = P(() => Lt ? null : /* @__PURE__ */ f.jsx(
56318
56319
  "aside",
56319
56320
  {
56320
56321
  role: "region",
@@ -56339,7 +56340,7 @@ const YO = () => {
56339
56340
  titleClassName: "dial-body-text text-primary",
56340
56341
  additionalButtons: kr,
56341
56342
  isOpened: !y,
56342
- onToggle: R,
56343
+ onToggle: F,
56343
56344
  children: /* @__PURE__ */ f.jsx(
56344
56345
  zO,
56345
56346
  {
@@ -56372,7 +56373,7 @@ const YO = () => {
56372
56373
  Tr,
56373
56374
  Mr,
56374
56375
  kr,
56375
- R,
56376
+ F,
56376
56377
  Ir,
56377
56378
  i,
56378
56379
  s?.path,
@@ -56415,13 +56416,13 @@ const YO = () => {
56415
56416
  isRenameFileAvailable: Zl,
56416
56417
  isDuplicateFolderAvailable: Xl,
56417
56418
  forbiddenSymbolsRegExp: qe
56418
- }), uo = D(
56419
+ }), uo = P(
56419
56420
  (Q) => {
56420
56421
  const Ke = Ui(i, Q.path);
56421
56422
  return Ke ? Wr(Ke) : [];
56422
56423
  },
56423
56424
  [i, Wr]
56424
- ), lc = D(
56425
+ ), lc = P(
56425
56426
  (Q, Ke, Je) => lo ? !1 : co(Q, Ke, Je),
56426
56427
  [lo, co]
56427
56428
  ), { actionsColumnDef: cc } = L9({
@@ -56440,14 +56441,14 @@ const YO = () => {
56440
56441
  actionsColumnDef: cc,
56441
56442
  rootItemLabel: s?.label,
56442
56443
  rootItemPath: s?.path
56443
- }), jr = D(
56444
+ }), jr = P(
56444
56445
  (Q) => {
56445
56446
  Q.colDef.colId === "ag-Grid-SelectionColumn" || Q.colDef.colId === mt.Actions || ue && Q.data?.path === ue || Q.data?.isTemporary || pn && pn.includes(
56446
56447
  Q.colDef.colId
56447
56448
  ) || Q.data && V(Q.data);
56448
56449
  },
56449
56450
  [ue, V, pn]
56450
- ), _r = D(
56451
+ ), _r = P(
56451
56452
  () => /* @__PURE__ */ f.jsx(
56452
56453
  Cl,
56453
56454
  {
@@ -56501,7 +56502,7 @@ const YO = () => {
56501
56502
  renamedPath: ue,
56502
56503
  newFolderTempId: br,
56503
56504
  sharedByMePaths: v,
56504
- selectedPaths: T,
56505
+ selectedPaths: E,
56505
56506
  disabledRowIds: ys,
56506
56507
  forbiddenSymbolsRegExp: qe,
56507
56508
  forbiddenSymbolsTooltip: Ne,
@@ -56525,18 +56526,18 @@ const YO = () => {
56525
56526
  ue,
56526
56527
  br,
56527
56528
  v,
56528
- T,
56529
+ E,
56529
56530
  ys,
56530
56531
  qe,
56531
56532
  Ne,
56532
56533
  xt
56533
56534
  ]
56534
56535
  ), Kr = B(
56535
- () => F.length === 0 && !Ai && !o ? _r() : /* @__PURE__ */ f.jsx(
56536
+ () => R.length === 0 && !Ai && !o ? _r() : /* @__PURE__ */ f.jsx(
56536
56537
  Ew,
56537
56538
  {
56538
56539
  columnDefs: vn,
56539
- rowData: F,
56540
+ rowData: R,
56540
56541
  getRowId: Ur,
56541
56542
  loading: o || to,
56542
56543
  getContextMenuItems: uo,
@@ -56555,7 +56556,7 @@ const YO = () => {
56555
56556
  }
56556
56557
  ),
56557
56558
  [
56558
- F,
56559
+ R,
56559
56560
  Ai,
56560
56561
  o,
56561
56562
  _r,
@@ -56584,9 +56585,9 @@ const YO = () => {
56584
56585
  className: ce(
56585
56586
  b9,
56586
56587
  {
56587
- "gap-3 pt-4": d && T.size > 0,
56588
+ "gap-3 pt-4": d && E.size > 0,
56588
56589
  "gap-4 p-3 pt-4": Lt,
56589
- "gap-2 pt-2": Lt && d && T.size > 0
56590
+ "gap-2 pt-2": Lt && d && E.size > 0
56590
56591
  },
56591
56592
  t
56592
56593
  ),
@@ -56632,7 +56633,7 @@ const YO = () => {
56632
56633
  xO,
56633
56634
  {
56634
56635
  disabledGridRowIds: ys,
56635
- gridRows: F,
56636
+ gridRows: R,
56636
56637
  getDisabledTooltip: hn,
56637
56638
  getRowDisabledTooltip: fn,
56638
56639
  allowedFileTypes: C,