@epam/ai-dial-ui-kit 0.10.0-dev.16 → 0.10.0-dev.17

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 Fe from "react";
2
- import Q, { useState as k, useRef as G, useEffect as be, useMemo as V, createContext as Vr, useContext as rt, isValidElement as xh, cloneElement as Cu, useCallback as D, memo as kt, useLayoutEffect as hi, PureComponent as w0, Component as b0, forwardRef as yh, useImperativeHandle as zr, createElement as lr, Suspense as x0, useId as Wr, Children as y0 } from "react";
2
+ import Q, { useState as k, useRef as G, useEffect as be, useMemo as V, createContext as Vr, useContext as rt, isValidElement as xh, cloneElement as Cu, useCallback as P, memo as kt, useLayoutEffect as hi, PureComponent as w0, Component as b0, forwardRef as yh, useImperativeHandle as zr, createElement as lr, Suspense as x0, useId as Wr, Children as y0 } from "react";
3
3
  import de from "classnames";
4
4
  import { IconInfoCircle as Sh, IconCircleCheck as S0, IconAlertTriangle as Rh, IconAlertCircle as R0, IconX as Eo, IconMinus as F0, IconCheck as Fh, IconExclamationCircle as Eh, IconClipboardX as gv, IconChevronsLeft as E0, IconChevronsRight as D0, IconGripVertical as P0, IconFile as fv, IconFileTypeZip as T0, IconFileTypeXml as I0, IconFileTypeXls as M0, IconFileTypeVue as k0, IconFileTypeTxt as A0, IconFileTypeTsx as L0, IconFileTypeTs as O0, IconFileTypeSvg as N0, IconFileTypeSql as H0, IconFileTypeRs as G0, IconFileTypePpt as B0, IconFileTypePng as V0, IconFileTypePhp as z0, IconFileTypePdf as W0, IconFileTypeJsx as j0, IconFileTypeJs as _0, IconFileTypeJpg as U0, IconFileTypeHtml as $0, IconFileTypeDocx as q0, IconFileTypeDoc as K0, IconFileTypeCsv as Y0, IconFileTypeCss as Z0, IconFileTypeBmp as Q0, IconArrowUpRight as X0, IconFolder as Dh, IconChevronLeft as J0, IconChevronRight as jr, IconZoomCancel as ex, IconChevronDown as _r, IconDotsVertical as Do, IconDots as tx, IconTrashX as mo, IconEyeOff as mv, IconEye as tc, IconSearch as ix, IconPlus as ic, IconChevronUp as sx, IconCircleFilled as Xa, IconFileZip as nx, IconCopyMinus as ox, IconFolderPlus as Ig, IconArrowLeft as rx, IconAlertCircleFilled as ax, IconAlertTriangleFilled as lx, IconCaretRightFilled as cx, IconCopy as Ph, IconDownload as Th, IconUserX as Ih, IconExternalLink as wu, IconPencilMinus as vv, IconFileDescription as dx } from "@tabler/icons-react";
5
5
  import { useFloating as sc, autoUpdate as Mh, offset as kh, flip as Ah, shift as Lh, arrow as ux, useHover as Oh, useFocus as hx, useDismiss as nc, useRole as oc, useInteractions as rc, useMergeRefs as Nh, FloatingPortal as ac, FloatingArrow as px, FloatingFocusManager as Hh, autoPlacement as gx, size as fx, useClick as mx, FloatingOverlay as vx } from "@floating-ui/react";
@@ -61,7 +61,7 @@ function Sx() {
61
61
  function e(I) {
62
62
  if (I == null) return null;
63
63
  if (typeof I == "function")
64
- return I.$$typeof === P ? null : I.displayName || I.name || null;
64
+ return I.$$typeof === D ? null : I.displayName || I.name || null;
65
65
  if (typeof I == "string") return I;
66
66
  switch (I) {
67
67
  case v:
@@ -113,8 +113,8 @@ function Sx() {
113
113
  }
114
114
  if (j) {
115
115
  j = console;
116
- var Z = j.error, oe = typeof Symbol == "function" && Symbol.toStringTag && I[Symbol.toStringTag] || I.constructor.name || "Object";
117
- return Z.call(
116
+ var Y = j.error, oe = typeof Symbol == "function" && Symbol.toStringTag && I[Symbol.toStringTag] || I.constructor.name || "Object";
117
+ return Y.call(
118
118
  j,
119
119
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
120
120
  oe
@@ -140,21 +140,21 @@ function Sx() {
140
140
  return Error("react-stack-top-frame");
141
141
  }
142
142
  function r(I) {
143
- if (L.call(I, "key")) {
143
+ if (N.call(I, "key")) {
144
144
  var j = Object.getOwnPropertyDescriptor(I, "key").get;
145
145
  if (j && j.isReactWarning) return !1;
146
146
  }
147
147
  return I.key !== void 0;
148
148
  }
149
149
  function a(I, j) {
150
- function Z() {
150
+ function Y() {
151
151
  B || (B = !0, console.error(
152
152
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
153
153
  j
154
154
  ));
155
155
  }
156
- Z.isReactWarning = !0, Object.defineProperty(I, "key", {
157
- get: Z,
156
+ Y.isReactWarning = !0, Object.defineProperty(I, "key", {
157
+ get: Y,
158
158
  configurable: !0
159
159
  });
160
160
  }
@@ -164,13 +164,13 @@ function Sx() {
164
164
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
165
165
  )), I = this.props.ref, I !== void 0 ? I : null;
166
166
  }
167
- function c(I, j, Z, oe, xe, H) {
168
- var le = Z.ref;
167
+ function c(I, j, Y, oe, xe, H) {
168
+ var le = Y.ref;
169
169
  return I = {
170
170
  $$typeof: f,
171
171
  type: I,
172
172
  key: j,
173
- props: Z,
173
+ props: Y,
174
174
  _owner: oe
175
175
  }, (le !== void 0 ? le : null) !== null ? Object.defineProperty(I, "ref", {
176
176
  enumerable: !1,
@@ -197,11 +197,11 @@ function Sx() {
197
197
  value: H
198
198
  }), Object.freeze && (Object.freeze(I.props), Object.freeze(I)), I;
199
199
  }
200
- function d(I, j, Z, oe, xe, H) {
200
+ function d(I, j, Y, oe, xe, H) {
201
201
  var le = j.children;
202
202
  if (le !== void 0)
203
203
  if (oe)
204
- if (Y(le)) {
204
+ if (Z(le)) {
205
205
  for (oe = 0; oe < le.length; oe++)
206
206
  u(le[oe]);
207
207
  Object.freeze && Object.freeze(le);
@@ -210,7 +210,7 @@ function Sx() {
210
210
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
211
211
  );
212
212
  else u(le);
213
- if (L.call(j, "key")) {
213
+ if (N.call(j, "key")) {
214
214
  le = e(I);
215
215
  var Oe = Object.keys(j).filter(function(ae) {
216
216
  return ae !== "key";
@@ -228,18 +228,18 @@ React keys must be passed directly to JSX without using spread:
228
228
  le
229
229
  ), A[le + oe] = !0);
230
230
  }
231
- if (le = null, Z !== void 0 && (i(Z), le = "" + Z), r(j) && (i(j.key), le = "" + j.key), "key" in j) {
232
- Z = {};
231
+ if (le = null, Y !== void 0 && (i(Y), le = "" + Y), r(j) && (i(j.key), le = "" + j.key), "key" in j) {
232
+ Y = {};
233
233
  for (var ee in j)
234
- ee !== "key" && (Z[ee] = j[ee]);
235
- } else Z = j;
234
+ ee !== "key" && (Y[ee] = j[ee]);
235
+ } else Y = j;
236
236
  return le && a(
237
- Z,
237
+ Y,
238
238
  typeof I == "function" ? I.displayName || I.name || "Unknown" : I
239
239
  ), c(
240
240
  I,
241
241
  le,
242
- Z,
242
+ Y,
243
243
  n(),
244
244
  xe,
245
245
  H
@@ -251,7 +251,7 @@ React keys must be passed directly to JSX without using spread:
251
251
  function h(I) {
252
252
  return typeof I == "object" && I !== null && I.$$typeof === f;
253
253
  }
254
- var p = Q, f = /* @__PURE__ */ Symbol.for("react.transitional.element"), m = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), C = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.consumer"), x = /* @__PURE__ */ Symbol.for("react.context"), y = /* @__PURE__ */ Symbol.for("react.forward_ref"), F = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), R = /* @__PURE__ */ Symbol.for("react.memo"), E = /* @__PURE__ */ Symbol.for("react.lazy"), T = /* @__PURE__ */ Symbol.for("react.activity"), P = /* @__PURE__ */ Symbol.for("react.client.reference"), M = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, Y = Array.isArray, N = console.createTask ? console.createTask : function() {
254
+ var p = Q, f = /* @__PURE__ */ Symbol.for("react.transitional.element"), m = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), C = /* @__PURE__ */ Symbol.for("react.strict_mode"), w = /* @__PURE__ */ Symbol.for("react.profiler"), b = /* @__PURE__ */ Symbol.for("react.consumer"), x = /* @__PURE__ */ Symbol.for("react.context"), y = /* @__PURE__ */ Symbol.for("react.forward_ref"), F = /* @__PURE__ */ Symbol.for("react.suspense"), S = /* @__PURE__ */ Symbol.for("react.suspense_list"), R = /* @__PURE__ */ Symbol.for("react.memo"), E = /* @__PURE__ */ Symbol.for("react.lazy"), T = /* @__PURE__ */ Symbol.for("react.activity"), D = /* @__PURE__ */ Symbol.for("react.client.reference"), M = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, N = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
255
255
  return null;
256
256
  };
257
257
  p = {
@@ -262,26 +262,26 @@ React keys must be passed directly to JSX without using spread:
262
262
  var B, W = {}, $ = p.react_stack_bottom_frame.bind(
263
263
  p,
264
264
  o
265
- )(), ne = N(s(o)), A = {};
266
- Jo.Fragment = v, Jo.jsx = function(I, j, Z) {
265
+ )(), ne = O(s(o)), A = {};
266
+ Jo.Fragment = v, Jo.jsx = function(I, j, Y) {
267
267
  var oe = 1e4 > M.recentlyCreatedOwnerStacks++;
268
268
  return d(
269
269
  I,
270
270
  j,
271
- Z,
271
+ Y,
272
272
  !1,
273
273
  oe ? Error("react-stack-top-frame") : $,
274
- oe ? N(s(I)) : ne
274
+ oe ? O(s(I)) : ne
275
275
  );
276
- }, Jo.jsxs = function(I, j, Z) {
276
+ }, Jo.jsxs = function(I, j, Y) {
277
277
  var oe = 1e4 > M.recentlyCreatedOwnerStacks++;
278
278
  return d(
279
279
  I,
280
280
  j,
281
- Z,
281
+ Y,
282
282
  !0,
283
283
  oe ? Error("react-stack-top-frame") : $,
284
- oe ? N(s(I)) : ne
284
+ oe ? O(s(I)) : ne
285
285
  );
286
286
  };
287
287
  })()), Jo;
@@ -595,13 +595,13 @@ const Fx = (e, t) => {
595
595
  "bottom-left",
596
596
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
597
597
  "left-bottom"
598
- ], y = () => [...x(), we, Ce], F = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], R = () => [we, Ce, l], E = () => [hs, "full", "auto", ...R()], T = () => [ps, "none", "subgrid", we, Ce], P = () => ["auto", {
598
+ ], y = () => [...x(), we, Ce], F = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], R = () => [we, Ce, l], E = () => [hs, "full", "auto", ...R()], T = () => [ps, "none", "subgrid", we, Ce], D = () => ["auto", {
599
599
  span: ["full", ps, we, Ce]
600
- }, ps, we, Ce], M = () => [ps, "auto", we, Ce], L = () => ["auto", "min", "max", "fr", we, Ce], Y = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...R()], W = () => [hs, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], $ = () => [hs, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...R()], ne = () => [hs, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...R()], A = () => [e, we, Ce], I = () => [...x(), Bg, Gg, {
600
+ }, ps, we, Ce], M = () => [ps, "auto", we, Ce], N = () => ["auto", "min", "max", "fr", we, Ce], Z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], O = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], B = () => ["auto", ...R()], W = () => [hs, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], $ = () => [hs, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...R()], ne = () => [hs, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...R()], A = () => [e, we, Ce], I = () => [...x(), Bg, Gg, {
601
601
  position: [we, Ce]
602
602
  }], j = () => ["no-repeat", {
603
603
  repeat: ["", "x", "y", "space", "round"]
604
- }], Z = () => ["auto", "cover", "contain", ly, sy, {
604
+ }], Y = () => ["auto", "cover", "contain", ly, sy, {
605
605
  size: [we, Ce]
606
606
  }], oe = () => [pd, er, Us], xe = () => [
607
607
  // Deprecated since Tailwind CSS v4.0.0
@@ -956,7 +956,7 @@ const Fx = (e, t) => {
956
956
  * @see https://tailwindcss.com/docs/grid-column
957
957
  */
958
958
  "col-start-end": [{
959
- col: P()
959
+ col: D()
960
960
  }],
961
961
  /**
962
962
  * Grid Column Start
@@ -984,7 +984,7 @@ const Fx = (e, t) => {
984
984
  * @see https://tailwindcss.com/docs/grid-row
985
985
  */
986
986
  "row-start-end": [{
987
- row: P()
987
+ row: D()
988
988
  }],
989
989
  /**
990
990
  * Grid Row Start
@@ -1012,14 +1012,14 @@ const Fx = (e, t) => {
1012
1012
  * @see https://tailwindcss.com/docs/grid-auto-columns
1013
1013
  */
1014
1014
  "auto-cols": [{
1015
- "auto-cols": L()
1015
+ "auto-cols": N()
1016
1016
  }],
1017
1017
  /**
1018
1018
  * Grid Auto Rows
1019
1019
  * @see https://tailwindcss.com/docs/grid-auto-rows
1020
1020
  */
1021
1021
  "auto-rows": [{
1022
- "auto-rows": L()
1022
+ "auto-rows": N()
1023
1023
  }],
1024
1024
  /**
1025
1025
  * Gap
@@ -1047,35 +1047,35 @@ const Fx = (e, t) => {
1047
1047
  * @see https://tailwindcss.com/docs/justify-content
1048
1048
  */
1049
1049
  "justify-content": [{
1050
- justify: [...Y(), "normal"]
1050
+ justify: [...Z(), "normal"]
1051
1051
  }],
1052
1052
  /**
1053
1053
  * Justify Items
1054
1054
  * @see https://tailwindcss.com/docs/justify-items
1055
1055
  */
1056
1056
  "justify-items": [{
1057
- "justify-items": [...N(), "normal"]
1057
+ "justify-items": [...O(), "normal"]
1058
1058
  }],
1059
1059
  /**
1060
1060
  * Justify Self
1061
1061
  * @see https://tailwindcss.com/docs/justify-self
1062
1062
  */
1063
1063
  "justify-self": [{
1064
- "justify-self": ["auto", ...N()]
1064
+ "justify-self": ["auto", ...O()]
1065
1065
  }],
1066
1066
  /**
1067
1067
  * Align Content
1068
1068
  * @see https://tailwindcss.com/docs/align-content
1069
1069
  */
1070
1070
  "align-content": [{
1071
- content: ["normal", ...Y()]
1071
+ content: ["normal", ...Z()]
1072
1072
  }],
1073
1073
  /**
1074
1074
  * Align Items
1075
1075
  * @see https://tailwindcss.com/docs/align-items
1076
1076
  */
1077
1077
  "align-items": [{
1078
- items: [...N(), {
1078
+ items: [...O(), {
1079
1079
  baseline: ["", "last"]
1080
1080
  }]
1081
1081
  }],
@@ -1084,7 +1084,7 @@ const Fx = (e, t) => {
1084
1084
  * @see https://tailwindcss.com/docs/align-self
1085
1085
  */
1086
1086
  "align-self": [{
1087
- self: ["auto", ...N(), {
1087
+ self: ["auto", ...O(), {
1088
1088
  baseline: ["", "last"]
1089
1089
  }]
1090
1090
  }],
@@ -1093,21 +1093,21 @@ const Fx = (e, t) => {
1093
1093
  * @see https://tailwindcss.com/docs/place-content
1094
1094
  */
1095
1095
  "place-content": [{
1096
- "place-content": Y()
1096
+ "place-content": Z()
1097
1097
  }],
1098
1098
  /**
1099
1099
  * Place Items
1100
1100
  * @see https://tailwindcss.com/docs/place-items
1101
1101
  */
1102
1102
  "place-items": [{
1103
- "place-items": [...N(), "baseline"]
1103
+ "place-items": [...O(), "baseline"]
1104
1104
  }],
1105
1105
  /**
1106
1106
  * Place Self
1107
1107
  * @see https://tailwindcss.com/docs/place-self
1108
1108
  */
1109
1109
  "place-self": [{
1110
- "place-self": ["auto", ...N()]
1110
+ "place-self": ["auto", ...O()]
1111
1111
  }],
1112
1112
  // Spacing
1113
1113
  /**
@@ -1687,7 +1687,7 @@ const Fx = (e, t) => {
1687
1687
  * @see https://tailwindcss.com/docs/background-size
1688
1688
  */
1689
1689
  "bg-size": [{
1690
- bg: Z()
1690
+ bg: Y()
1691
1691
  }],
1692
1692
  /**
1693
1693
  * Background Image
@@ -2392,7 +2392,7 @@ const Fx = (e, t) => {
2392
2392
  * @see https://tailwindcss.com/docs/mask-size
2393
2393
  */
2394
2394
  "mask-size": [{
2395
- mask: Z()
2395
+ mask: Y()
2396
2396
  }],
2397
2397
  /**
2398
2398
  * Mask Type
@@ -3609,7 +3609,7 @@ const Cy = (e) => ({
3609
3609
  u(C.textContent ?? "");
3610
3610
  const w = C.clientWidth, b = C.scrollWidth, x = Math.ceil(C.getBoundingClientRect().width);
3611
3611
  c(b > w || b > x);
3612
- }, f = D(() => {
3612
+ }, f = P(() => {
3613
3613
  h.current && cancelAnimationFrame(h.current), h.current = requestAnimationFrame(p);
3614
3614
  }, []);
3615
3615
  be(() => {
@@ -3672,7 +3672,7 @@ const Cy = (e) => ({
3672
3672
  className: a,
3673
3673
  ...l
3674
3674
  }) => {
3675
- const c = D(
3675
+ const c = P(
3676
3676
  (p) => {
3677
3677
  r?.(p.target.checked, t);
3678
3678
  },
@@ -3880,7 +3880,7 @@ const Ty = "w-full flex gap-2", Iy = {
3880
3880
  defaultEmptyText: f,
3881
3881
  children: m
3882
3882
  }) => {
3883
- const v = `${e}-label`, C = s ? `${e}-desc` : void 0, w = n ? `${e}-err` : void 0, b = `${e}-caption-desc`, x = [C, w].filter(Boolean).join(" ") || void 0, y = D(() => typeof n == "boolean" ? null : typeof n == "string" || typeof n > "u" ? n ? /* @__PURE__ */ g.jsx("div", { id: w, "aria-live": "polite", className: c, children: /* @__PURE__ */ g.jsx(Si, { text: n }) }) : null : /* @__PURE__ */ g.jsx(
3883
+ const v = `${e}-label`, C = s ? `${e}-desc` : void 0, w = n ? `${e}-err` : void 0, b = `${e}-caption-desc`, x = [C, w].filter(Boolean).join(" ") || void 0, y = P(() => typeof n == "boolean" ? null : typeof n == "string" || typeof n > "u" ? n ? /* @__PURE__ */ g.jsx("div", { id: w, "aria-live": "polite", className: c, children: /* @__PURE__ */ g.jsx(Si, { text: n }) }) : null : /* @__PURE__ */ g.jsx(
3884
3884
  "div",
3885
3885
  {
3886
3886
  id: w,
@@ -3889,7 +3889,7 @@ const Ty = "w-full flex gap-2", Iy = {
3889
3889
  className: c,
3890
3890
  children: n
3891
3891
  }
3892
- ), [n, c, w]), F = D(() => p ? typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ g.jsx("span", { "aria-readonly": "true", children: p }) : p : /* @__PURE__ */ g.jsx("span", { className: "flex min-h-4", "aria-readonly": "true", children: f ?? "None" }), [p, f]);
3892
+ ), [n, c, w]), F = P(() => p ? typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ g.jsx("span", { "aria-readonly": "true", children: p }) : p : /* @__PURE__ */ g.jsx("span", { className: "flex min-h-4", "aria-readonly": "true", children: f ?? "None" }), [p, f]);
3893
3893
  return /* @__PURE__ */ g.jsxs(
3894
3894
  "div",
3895
3895
  {
@@ -5334,7 +5334,7 @@ const a2 = /* @__PURE__ */ bx(r2), cn = typeof window < "u" ? hi : be;
5334
5334
  function l2(e, t, i) {
5335
5335
  const [s, n] = k(
5336
5336
  () => t(e)
5337
- ), o = D(() => {
5337
+ ), o = P(() => {
5338
5338
  const r = t(e);
5339
5339
  a2(s, r) || (n(r), i && i());
5340
5340
  }, [
@@ -6216,9 +6216,9 @@ var yl = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(yl ||
6216
6216
  bottomLeft: ut(ut({}, Ma), { left: "-10px", bottom: "-10px", cursor: "sw-resize" }),
6217
6217
  topLeft: ut(ut({}, Ma), { left: "-10px", top: "-10px", cursor: "nw-resize" })
6218
6218
  }, U2 = kt(function(e) {
6219
- var t = e.onResizeStart, i = e.direction, s = e.children, n = e.replaceStyles, o = e.className, r = D(function(c) {
6219
+ var t = e.onResizeStart, i = e.direction, s = e.children, n = e.replaceStyles, o = e.className, r = P(function(c) {
6220
6220
  t(c, i);
6221
- }, [t, i]), a = D(function(c) {
6221
+ }, [t, i]), a = P(function(c) {
6222
6222
  t(c, i);
6223
6223
  }, [t, i]), l = V(function() {
6224
6224
  return ut(ut({ position: "absolute", userSelect: "none" }, _2[i]), n ?? {});
@@ -6539,8 +6539,8 @@ var yl = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(yl ||
6539
6539
  this.props.snap && this.props.snap.x && (x = of(x, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (b = of(b, this.props.snap.y, this.props.snapGap));
6540
6540
  var F = this.calculateNewSizeFromAspectRatio(x, b, { width: y.maxWidth, height: y.maxHeight }, { width: a, height: l });
6541
6541
  if (x = F.newWidth, b = F.newHeight, this.props.grid) {
6542
- var S = nf(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), R = nf(b, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), E = this.props.snapGap || 0, T = E === 0 || Math.abs(S - x) <= E ? S : x, P = E === 0 || Math.abs(R - b) <= E ? R : b;
6543
- x = T, b = P;
6542
+ var S = nf(x, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), R = nf(b, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), E = this.props.snapGap || 0, T = E === 0 || Math.abs(S - x) <= E ? S : x, D = E === 0 || Math.abs(R - b) <= E ? R : b;
6543
+ x = T, b = D;
6544
6544
  }
6545
6545
  var M = {
6546
6546
  width: x - p.width,
@@ -6548,26 +6548,26 @@ var yl = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(yl ||
6548
6548
  };
6549
6549
  if (this.delta = M, f && typeof f == "string") {
6550
6550
  if (f.endsWith("%")) {
6551
- var L = x / v.width * 100;
6552
- x = "".concat(L, "%");
6551
+ var N = x / v.width * 100;
6552
+ x = "".concat(N, "%");
6553
6553
  } else if (f.endsWith("vw")) {
6554
- var Y = x / this.window.innerWidth * 100;
6555
- x = "".concat(Y, "vw");
6554
+ var Z = x / this.window.innerWidth * 100;
6555
+ x = "".concat(Z, "vw");
6556
6556
  } else if (f.endsWith("vh")) {
6557
- var N = x / this.window.innerHeight * 100;
6558
- x = "".concat(N, "vh");
6557
+ var O = x / this.window.innerHeight * 100;
6558
+ x = "".concat(O, "vh");
6559
6559
  }
6560
6560
  }
6561
6561
  if (m && typeof m == "string") {
6562
6562
  if (m.endsWith("%")) {
6563
- var L = b / v.height * 100;
6564
- b = "".concat(L, "%");
6563
+ var N = b / v.height * 100;
6564
+ b = "".concat(N, "%");
6565
6565
  } else if (m.endsWith("vw")) {
6566
- var Y = b / this.window.innerWidth * 100;
6567
- b = "".concat(Y, "vw");
6566
+ var Z = b / this.window.innerWidth * 100;
6567
+ b = "".concat(Z, "vw");
6568
6568
  } else if (m.endsWith("vh")) {
6569
- var N = b / this.window.innerHeight * 100;
6570
- b = "".concat(N, "vh");
6569
+ var O = b / this.window.innerHeight * 100;
6570
+ b = "".concat(O, "vh");
6571
6571
  }
6572
6572
  }
6573
6573
  var B = {
@@ -6668,9 +6668,9 @@ const J2 = ({ side: e, className: t }) => {
6668
6668
  resizeHandlerClassName: l,
6669
6669
  resizeHandler: c
6670
6670
  }) => {
6671
- const [d, u] = k(!1), [h, p] = k(n), f = s !== void 0, m = f ? s : h, v = G(null), C = D(() => {
6671
+ const [d, u] = k(!1), [h, p] = k(n), f = s !== void 0, m = f ? s : h, v = G(null), C = P(() => {
6672
6672
  u(!0);
6673
- }, []), w = D(() => {
6673
+ }, []), w = P(() => {
6674
6674
  u(!1);
6675
6675
  const x = v.current?.resizable?.getBoundingClientRect(), y = x ? Math.round(x.width) : t;
6676
6676
  f || p(y), o?.(y);
@@ -9264,7 +9264,7 @@ var Ar = class extends z {
9264
9264
  }
9265
9265
  this.dispatchLocalEvent({ type: "displayedChildrenChanged" });
9266
9266
  }
9267
- }, O = {
9267
+ }, L = {
9268
9268
  BACKSPACE: "Backspace",
9269
9269
  TAB: "Tab",
9270
9270
  ENTER: "Enter",
@@ -9295,22 +9295,22 @@ function BC(e) {
9295
9295
  let i;
9296
9296
  switch (t) {
9297
9297
  case Y3:
9298
- i = O.A;
9298
+ i = L.A;
9299
9299
  break;
9300
9300
  case Z3:
9301
- i = O.C;
9301
+ i = L.C;
9302
9302
  break;
9303
9303
  case Q3:
9304
- i = O.V;
9304
+ i = L.V;
9305
9305
  break;
9306
9306
  case X3:
9307
- i = O.D;
9307
+ i = L.D;
9308
9308
  break;
9309
9309
  case J3:
9310
- i = O.Z;
9310
+ i = L.Z;
9311
9311
  break;
9312
9312
  case eF:
9313
- i = O.Y;
9313
+ i = L.Y;
9314
9314
  break;
9315
9315
  default:
9316
9316
  i = e.code;
@@ -10522,7 +10522,7 @@ var WF = "ag-focus-managed", QC = class extends Bt {
10522
10522
  this.stopPropagationCallbacks.stopPropagation(t);
10523
10523
  return;
10524
10524
  }
10525
- t.key === O.TAB ? i.onTabKeyDown(t) : i.handleKeyDown && i.handleKeyDown(t);
10525
+ t.key === L.TAB ? i.onTabKeyDown(t) : i.handleKeyDown && i.handleKeyDown(t);
10526
10526
  }
10527
10527
  });
10528
10528
  }
@@ -12152,7 +12152,7 @@ function mE(e, t) {
12152
12152
  function vE(e, t, i) {
12153
12153
  t.addManagedElementListeners(i, {
12154
12154
  keydown: (s) => {
12155
- if (!s.defaultPrevented && !yE(s) && s.key === O.TAB) {
12155
+ if (!s.defaultPrevented && !yE(s) && s.key === L.TAB) {
12156
12156
  const n = s.shiftKey;
12157
12157
  En(e, i, !1, n) || xo(e, n) && s.preventDefault();
12158
12158
  }
@@ -12328,15 +12328,15 @@ var PE = class extends z {
12328
12328
  let t = null;
12329
12329
  const { headerNavigation: i } = this.beans;
12330
12330
  switch (e.key) {
12331
- case O.LEFT:
12331
+ case L.LEFT:
12332
12332
  t = "LEFT";
12333
- case O.RIGHT: {
12333
+ case L.RIGHT: {
12334
12334
  se(t) || (t = "RIGHT"), i.navigateHorizontally(t, !1, e) && e.preventDefault();
12335
12335
  break;
12336
12336
  }
12337
- case O.UP:
12337
+ case L.UP:
12338
12338
  t = "UP";
12339
- case O.DOWN: {
12339
+ case L.DOWN: {
12340
12340
  se(t) || (t = "DOWN"), i.navigateVertically(t, e) && e.preventDefault();
12341
12341
  break;
12342
12342
  }
@@ -12555,16 +12555,16 @@ var AE = 0, aw = "headerCtrl", Tp = class extends z {
12555
12555
  this.eGui && jt(this.eGui, "tabindex", e ? null : "-1");
12556
12556
  }
12557
12557
  onGuiKeyDown(e) {
12558
- const t = it(this.beans), i = e.key === O.LEFT || e.key === O.RIGHT;
12558
+ const t = it(this.beans), i = e.key === L.LEFT || e.key === L.RIGHT;
12559
12559
  if (this.isResizing && (e.preventDefault(), e.stopImmediatePropagation()), // if elements within the header are focused, we don't process the event
12560
12560
  t !== this.eGui || // if shiftKey, ctrlKey, metaKey and altKey are not pressed, it's cell navigation so we don't process the event
12561
12561
  !e.shiftKey && !e.altKey && !e.ctrlKey && !e.metaKey)
12562
12562
  return;
12563
- if ((this.isResizing || i) && (e.preventDefault(), e.stopImmediatePropagation()), (e.ctrlKey || e.metaKey) && BC(e) === O.C)
12563
+ if ((this.isResizing || i) && (e.preventDefault(), e.stopImmediatePropagation()), (e.ctrlKey || e.metaKey) && BC(e) === L.C)
12564
12564
  return this.beans.clipboardSvc?.copyToClipboard();
12565
12565
  if (!i)
12566
12566
  return;
12567
- const o = e.key === O.LEFT !== this.gos.get("enableRtl") ? "left" : "right";
12567
+ const o = e.key === L.LEFT !== this.gos.get("enableRtl") ? "left" : "right";
12568
12568
  if (e.altKey) {
12569
12569
  this.isResizing = !0, this.resizeMultiplier += 1;
12570
12570
  const r = this.getViewportAdjustedResizeDiff(e);
@@ -12581,7 +12581,7 @@ var AE = 0, aw = "headerCtrl", Tp = class extends z {
12581
12581
  }
12582
12582
  getResizeDiff(e) {
12583
12583
  const { gos: t, column: i } = this;
12584
- let s = e.key === O.LEFT !== t.get("enableRtl");
12584
+ let s = e.key === L.LEFT !== t.get("enableRtl");
12585
12585
  const n = i.getPinned(), o = t.get("enableRtl");
12586
12586
  return n && o !== (n === "right") && (s = !s), (s ? -1 : 1) * this.resizeMultiplier;
12587
12587
  }
@@ -12593,10 +12593,10 @@ var AE = 0, aw = "headerCtrl", Tp = class extends z {
12593
12593
  handleKeyDown(e) {
12594
12594
  const t = this.getWrapperHasFocus();
12595
12595
  switch (e.key) {
12596
- case O.PAGE_DOWN:
12597
- case O.PAGE_UP:
12598
- case O.PAGE_HOME:
12599
- case O.PAGE_END:
12596
+ case L.PAGE_DOWN:
12597
+ case L.PAGE_UP:
12598
+ case L.PAGE_HOME:
12599
+ case L.PAGE_END:
12600
12600
  t && e.preventDefault();
12601
12601
  }
12602
12602
  }
@@ -12764,7 +12764,7 @@ var AE = 0, aw = "headerCtrl", Tp = class extends z {
12764
12764
  return this.selectAllFeature?.getCheckboxGui();
12765
12765
  }
12766
12766
  handleKeyDown(e) {
12767
- super.handleKeyDown(e), e.key === O.SPACE ? this.selectAllFeature?.onSpaceKeyDown(e) : e.key === O.ENTER ? this.onEnterKeyDown(e) : e.key === O.DOWN && e.altKey && this.showMenuOnKeyPress(e, !1);
12767
+ super.handleKeyDown(e), e.key === L.SPACE ? this.selectAllFeature?.onSpaceKeyDown(e) : e.key === L.ENTER ? this.onEnterKeyDown(e) : e.key === L.DOWN && e.altKey && this.showMenuOnKeyPress(e, !1);
12768
12768
  }
12769
12769
  onEnterKeyDown(e) {
12770
12770
  const { column: t, gos: i, sortable: s, beans: n } = this;
@@ -13733,9 +13733,9 @@ var OE = 0, Md = class extends z {
13733
13733
  let u, h, p = 0;
13734
13734
  this.invalidateVerticalScroll();
13735
13735
  do {
13736
- const { stickyTopHeight: f, 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, T = a.getScrollPositionForPixel(b), P = a.getScrollPositionForPixel(x - E), M = Math.min((T + P) / 2, b), L = S + f > b, Y = R - m < x;
13737
- let N = null;
13738
- t === "top" ? N = T - f : t === "bottom" ? N = P + m : t === "middle" ? N = M : L ? N = T - f : Y && (P - T > E ? N = T - f : N = P + m), N !== null && (this.setVerticalScrollPosition(N), l.redraw({ afterScroll: !0 })), u = v !== d.rowTop || C !== d.rowHeight, h = f !== c.stickyTopHeight || m !== c.stickyBottomHeight, p++;
13736
+ const { stickyTopHeight: f, 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, T = a.getScrollPositionForPixel(b), D = a.getScrollPositionForPixel(x - E), M = Math.min((T + D) / 2, b), N = S + f > b, Z = R - m < x;
13737
+ let O = null;
13738
+ t === "top" ? O = T - f : t === "bottom" ? O = D + m : t === "middle" ? O = M : N ? O = T - f : Z && (D - T > E ? O = T - f : O = D + m), O !== null && (this.setVerticalScrollPosition(O), l.redraw({ afterScroll: !0 })), u = v !== d.rowTop || C !== d.rowHeight, h = f !== c.stickyTopHeight || m !== c.stickyBottomHeight, p++;
13739
13739
  } while ((u || h) && p < 10);
13740
13740
  if (this.animationFrameSvc?.flushAllFrames(), i < 10 && (d?.stub || !this.beans.rowAutoHeight?.areRowsMeasured())) {
13741
13741
  const f = this.getVScrollPosition().top;
@@ -14045,21 +14045,21 @@ var YE = class extends z {
14045
14045
  const c = i.key;
14046
14046
  if (t === "keydown")
14047
14047
  switch (c) {
14048
- case O.PAGE_HOME:
14049
- case O.PAGE_END:
14050
- case O.PAGE_UP:
14051
- case O.PAGE_DOWN:
14048
+ case L.PAGE_HOME:
14049
+ case L.PAGE_END:
14050
+ case L.PAGE_UP:
14051
+ case L.PAGE_DOWN:
14052
14052
  o?.handlePageScrollingKey(i, !0);
14053
14053
  break;
14054
- case O.LEFT:
14055
- case O.RIGHT:
14054
+ case L.LEFT:
14055
+ case L.RIGHT:
14056
14056
  if (!this.gos.get("embedFullWidthRows"))
14057
14057
  break;
14058
- case O.UP:
14059
- case O.DOWN:
14058
+ case L.UP:
14059
+ case L.DOWN:
14060
14060
  e.onKeyboardNavigate(i);
14061
14061
  break;
14062
- case O.TAB:
14062
+ case L.TAB:
14063
14063
  e.onTabKeyDown(i);
14064
14064
  break;
14065
14065
  }
@@ -14070,19 +14070,19 @@ var YE = class extends z {
14070
14070
  if (!e.ctrlKey && !e.metaKey || t || !Ir(this.beans, e))
14071
14071
  return;
14072
14072
  const i = BC(e), { clipboardSvc: s, undoRedo: n } = this.beans;
14073
- if (i === O.A)
14073
+ if (i === L.A)
14074
14074
  return this.onCtrlAndA(e);
14075
- if (i === O.C)
14075
+ if (i === L.C)
14076
14076
  return this.onCtrlAndC(s, e);
14077
- if (i === O.D)
14077
+ if (i === L.D)
14078
14078
  return this.onCtrlAndD(s, e);
14079
- if (i === O.V)
14079
+ if (i === L.V)
14080
14080
  return this.onCtrlAndV(s, e);
14081
- if (i === O.X)
14081
+ if (i === L.X)
14082
14082
  return this.onCtrlAndX(s, e);
14083
- if (i === O.Y)
14083
+ if (i === L.Y)
14084
14084
  return this.onCtrlAndY(n);
14085
- if (i === O.Z)
14085
+ if (i === L.Z)
14086
14086
  return this.onCtrlAndZ(n, e);
14087
14087
  }
14088
14088
  onCtrlAndA(e) {
@@ -15872,7 +15872,7 @@ var yw = (e, t) => {
15872
15872
  }
15873
15873
  // shared keydown handler to cancel current drag with ESC
15874
15874
  onKeyDown(e) {
15875
- e.key === O.ESCAPE && this.cancelDrag();
15875
+ e.key === L.ESCAPE && this.cancelDrag();
15876
15876
  }
15877
15877
  }, Bf = (e) => {
15878
15878
  lp(e.handlers);
@@ -17828,8 +17828,8 @@ var PD = class extends z {
17828
17828
  const R = S === w.length - 1;
17829
17829
  let E;
17830
17830
  R ? E = x : (E = Math.round(p[S] * u * y), x -= E);
17831
- const T = F.getMinWidth(), P = F.getMaxWidth();
17832
- E < T ? (E = T, m[F.getId()] = !0, v = !0) : P > 0 && E > P && (E = P, m[F.getId()] = !0, v = !0), f[F.getId()] = E;
17831
+ const T = F.getMinWidth(), D = F.getMaxWidth();
17832
+ E < T ? (E = T, m[F.getId()] = !0, v = !0) : D > 0 && E > D && (E = D, m[F.getId()] = !0, v = !0), f[F.getId()] = E;
17833
17833
  });
17834
17834
  }
17835
17835
  for (const w of h) {
@@ -18069,7 +18069,7 @@ var kD = {
18069
18069
  if (super.handleKeyDown(e), !this.getWrapperHasFocus())
18070
18070
  return;
18071
18071
  const { column: i, expandable: s, gos: n, beans: o } = this, r = ao(n);
18072
- if (e.key == O.ENTER) {
18072
+ if (e.key == L.ENTER) {
18073
18073
  if (r && !e.altKey)
18074
18074
  o.rangeSvc?.handleColumnSelection(i, e);
18075
18075
  else if (s) {
@@ -18682,7 +18682,7 @@ function Ri(e, t, i) {
18682
18682
  const C = (y, F, S, R, E) => {
18683
18683
  if (!y)
18684
18684
  return;
18685
- const T = q3(F, t.defaultState), P = T("flex").value1, M = T("sort").value1, L = T("sortType").value1, Y = Es(M) || pp(L), N = ns(L), B = wc(M), W = Y ? { type: N, direction: B } : void 0;
18685
+ const T = q3(F, t.defaultState), D = T("flex").value1, M = T("sort").value1, N = T("sortType").value1, Z = Es(M) || pp(N), O = ns(N), B = wc(M), W = Z ? { type: O, direction: B } : void 0;
18686
18686
  if (OC(
18687
18687
  e,
18688
18688
  y,
@@ -18690,9 +18690,9 @@ function Ri(e, t, i) {
18690
18690
  W,
18691
18691
  T("sortIndex").value1,
18692
18692
  T("pinned").value1,
18693
- P,
18693
+ D,
18694
18694
  i
18695
- ), P == null) {
18695
+ ), D == null) {
18696
18696
  const $ = T("width").value1;
18697
18697
  if ($ != null) {
18698
18698
  const ne = y.getColDef().minWidth ?? u.getDefaultColumnMinWidth();
@@ -18701,28 +18701,28 @@ function Ri(e, t, i) {
18701
18701
  }
18702
18702
  E || !y.isPrimary() || (h?.syncColumnWithState(y, i, T), n?.syncColumnWithState(y, i, T, S), o?.syncColumnWithState(y, i, T, R));
18703
18703
  }, w = (y, F, S) => {
18704
- const R = Lw(e, i), E = F.slice(), T = {}, P = {}, M = [], L = [], Y = [];
18705
- let N = 0;
18704
+ const R = Lw(e, i), E = F.slice(), T = {}, D = {}, M = [], N = [], Z = [];
18705
+ let O = 0;
18706
18706
  const B = n?.columns.slice() ?? [], W = o?.columns.slice() ?? [];
18707
18707
  for (const A of y) {
18708
18708
  const I = A.colId;
18709
18709
  if (I.startsWith(ys)) {
18710
- M.push(A), Y.push(A);
18710
+ M.push(A), Z.push(A);
18711
18711
  continue;
18712
18712
  }
18713
18713
  if (Hs(I)) {
18714
- L.push(A), Y.push(A);
18714
+ N.push(A), Z.push(A);
18715
18715
  continue;
18716
18716
  }
18717
- const Z = S(I);
18718
- Z ? (C(Z, A, T, P, !1), zi(E, Z)) : (Y.push(A), N += 1);
18717
+ const Y = S(I);
18718
+ Y ? (C(Y, A, T, D, !1), zi(E, Y)) : (Z.push(A), O += 1);
18719
18719
  }
18720
- const $ = (A) => C(A, null, T, P, !1);
18721
- E.forEach($), n?.sortColumns(Uf.bind(n, T, B)), o?.sortColumns(Uf.bind(o, P, W)), s.refreshCols(!1, i);
18720
+ const $ = (A) => C(A, null, T, D, !1);
18721
+ E.forEach($), n?.sortColumns(Uf.bind(n, T, B)), o?.sortColumns(Uf.bind(o, D, W)), s.refreshCols(!1, i);
18722
18722
  const ne = (A, I, j = []) => {
18723
- for (const Z of I) {
18724
- const oe = A(Z.colId);
18725
- zi(j, oe), C(oe, Z, null, null, !0);
18723
+ for (const Y of I) {
18724
+ const oe = A(Y.colId);
18725
+ zi(j, oe), C(oe, Y, null, null, !0);
18726
18726
  }
18727
18727
  j.forEach($);
18728
18728
  };
@@ -18732,12 +18732,12 @@ function Ri(e, t, i) {
18732
18732
  r?.getColumns()?.slice()
18733
18733
  ), ne(
18734
18734
  (A) => a?.getColumn(A) ?? null,
18735
- L,
18735
+ N,
18736
18736
  a?.getColumns()?.slice()
18737
18737
  ), QD(t, s, f), c.refresh(i), p.dispatchEvent({
18738
18738
  type: "columnEverythingChanged",
18739
18739
  source: i
18740
- }), R(), { unmatchedAndAutoStates: Y, unmatchedCount: N };
18740
+ }), R(), { unmatchedAndAutoStates: Z, unmatchedCount: O };
18741
18741
  };
18742
18742
  l?.start();
18743
18743
  let { unmatchedAndAutoStates: b, unmatchedCount: x } = w(
@@ -18779,17 +18779,17 @@ function Lw(e, t) {
18779
18779
  d[u.colId] = u;
18780
18780
  return () => {
18781
18781
  const u = (F, S, R, E) => {
18782
- const T = S.map(E), P = R.map(E);
18783
- if (Ns(T, P))
18782
+ const T = S.map(E), D = R.map(E);
18783
+ if (Ns(T, D))
18784
18784
  return;
18785
- const L = new Set(S);
18786
- for (const N of R)
18787
- L.delete(N) || L.add(N);
18788
- const Y = [...L];
18785
+ const N = new Set(S);
18786
+ for (const O of R)
18787
+ N.delete(O) || N.add(O);
18788
+ const Z = [...N];
18789
18789
  a.dispatchEvent({
18790
18790
  type: F,
18791
- columns: Y,
18792
- column: Y.length === 1 ? Y[0] : null,
18791
+ columns: Z,
18792
+ column: Z.length === 1 ? Z[0] : null,
18793
18793
  source: t
18794
18794
  });
18795
18795
  }, h = (F) => {
@@ -19515,7 +19515,7 @@ var Js = class extends Nw {
19515
19515
  }
19516
19516
  }), this.addManagedElementListeners(e.eGridCell, {
19517
19517
  keydown: (n) => {
19518
- if (n.key === O.SPACE && !t.isDisabled()) {
19518
+ if (n.key === L.SPACE && !t.isDisabled()) {
19519
19519
  e.eGridCell === it(i) && t.toggle();
19520
19520
  const o = t.getValue();
19521
19521
  this.onCheckboxChanged(o), n.preventDefault();
@@ -19971,7 +19971,7 @@ var GP = [
19971
19971
  cellEditor: "agCheckboxCellEditor",
19972
19972
  cellRenderer: "agCheckboxCellRenderer",
19973
19973
  getFindText: () => null,
19974
- suppressKeyboardEvent: ({ node: e, event: t, column: i }) => t.key === O.SPACE && i.isCellEditable(e)
19974
+ suppressKeyboardEvent: ({ node: e, event: t, column: i }) => t.key === L.SPACE && i.isCellEditable(e)
19975
19975
  };
19976
19976
  },
19977
19977
  date({ formatValue: e }) {
@@ -22708,7 +22708,7 @@ var k6 = class extends z {
22708
22708
  if (o.isSuppressNavigable(l)) {
22709
22709
  const c = this.gos.get("enableRtl");
22710
22710
  let d;
22711
- return !s || s.key === O.TAB ? d = c ? O.LEFT : O.RIGHT : d = s.key, this.beans.navigation?.navigateToNextCell(
22711
+ return !s || s.key === L.TAB ? d = c ? L.LEFT : L.RIGHT : d = s.key, this.beans.navigation?.navigateToNextCell(
22712
22712
  null,
22713
22713
  d,
22714
22714
  { rowIndex: r, column: o, rowPinned: a || null },
@@ -24844,7 +24844,7 @@ var oT = class extends at {
24844
24844
  return i ? this.getNextCellToFocusWithCtrlPressed(e, t) : this.getNextCellToFocusWithoutCtrlPressed(e, t);
24845
24845
  }
24846
24846
  getNextCellToFocusWithCtrlPressed(e, t) {
24847
- const i = e === O.UP, s = e === O.DOWN, n = e === O.LEFT;
24847
+ const i = e === L.UP, s = e === L.DOWN, n = e === L.LEFT;
24848
24848
  let o, r;
24849
24849
  const { pageBounds: a, gos: l, visibleCols: c, pinnedRowModel: d } = this.beans, { rowPinned: u } = t;
24850
24850
  if (i || s)
@@ -24869,16 +24869,16 @@ var oT = class extends at {
24869
24869
  let i = t, s = !1;
24870
24870
  for (; !s; ) {
24871
24871
  switch (e) {
24872
- case O.UP:
24872
+ case L.UP:
24873
24873
  i = this.getCellAbove(i);
24874
24874
  break;
24875
- case O.DOWN:
24875
+ case L.DOWN:
24876
24876
  i = this.getCellBelow(i);
24877
24877
  break;
24878
- case O.RIGHT:
24878
+ case L.RIGHT:
24879
24879
  i = this.gos.get("enableRtl") ? this.getCellToLeft(i) : this.getCellToRight(i);
24880
24880
  break;
24881
- case O.LEFT:
24881
+ case L.LEFT:
24882
24882
  i = this.gos.get("enableRtl") ? this.getCellToRight(i) : this.getCellToLeft(i);
24883
24883
  break;
24884
24884
  default:
@@ -25700,7 +25700,7 @@ function HT(e, t, i, { rowNode: s, column: n }, o) {
25700
25700
  });
25701
25701
  }
25702
25702
  function GT(e, t = !1) {
25703
- return e === O.DELETE ? !0 : !t && e === O.BACKSPACE ? $C() : !1;
25703
+ return e === L.DELETE ? !0 : !t && e === L.BACKSPACE ? $C() : !1;
25704
25704
  }
25705
25705
  var BT = class extends z {
25706
25706
  constructor(e, t, i, s) {
@@ -25711,28 +25711,28 @@ var BT = class extends z {
25711
25711
  }
25712
25712
  onKeyDown(e) {
25713
25713
  const t = e.key;
25714
- if (!(t === O.ENTER && Nt(this.cellCtrl.column) && this.beans.rowNumbersSvc?.handleKeyDownOnCell(this.cellCtrl.cellPosition, e)))
25714
+ if (!(t === L.ENTER && Nt(this.cellCtrl.column) && this.beans.rowNumbersSvc?.handleKeyDownOnCell(this.cellCtrl.cellPosition, e)))
25715
25715
  switch (t) {
25716
- case O.ENTER:
25716
+ case L.ENTER:
25717
25717
  this.onEnterKeyDown(e);
25718
25718
  break;
25719
- case O.F2:
25719
+ case L.F2:
25720
25720
  this.onF2KeyDown(e);
25721
25721
  break;
25722
- case O.ESCAPE:
25722
+ case L.ESCAPE:
25723
25723
  this.onEscapeKeyDown(e);
25724
25724
  break;
25725
- case O.TAB:
25725
+ case L.TAB:
25726
25726
  this.onTabKeyDown(e);
25727
25727
  break;
25728
- case O.BACKSPACE:
25729
- case O.DELETE:
25728
+ case L.BACKSPACE:
25729
+ case L.DELETE:
25730
25730
  this.onBackspaceOrDeleteKeyDown(t, e);
25731
25731
  break;
25732
- case O.DOWN:
25733
- case O.UP:
25734
- case O.RIGHT:
25735
- case O.LEFT:
25732
+ case L.DOWN:
25733
+ case L.UP:
25734
+ case L.RIGHT:
25735
+ case L.LEFT:
25736
25736
  this.onNavigationKeyDown(e, t);
25737
25737
  break;
25738
25738
  }
@@ -25754,7 +25754,7 @@ var BT = class extends z {
25754
25754
  if (!t)
25755
25755
  return;
25756
25756
  const s = t.extendLatestRangeInDirection(e);
25757
- s && (e.key === O.LEFT || e.key === O.RIGHT ? i?.ensureColumnVisible(s.column) : i?.ensureRowVisible(s.rowIndex));
25757
+ s && (e.key === L.LEFT || e.key === L.RIGHT ? i?.ensureColumnVisible(s.column) : i?.ensureRowVisible(s.rowIndex));
25758
25758
  }
25759
25759
  onTabKeyDown(e) {
25760
25760
  this.beans.navigation?.onTabKeyDown(this.cellCtrl, e);
@@ -25794,7 +25794,7 @@ var BT = class extends z {
25794
25794
  source: "edit"
25795
25795
  }) : a && !t.isCellEditable() ? s?.stopEditing({ rowNode: r }, { event: e, source: "edit" }) : l(t);
25796
25796
  } else if (i.gos.get("enterNavigatesVertically")) {
25797
- const c = e.shiftKey ? O.UP : O.DOWN;
25797
+ const c = e.shiftKey ? L.UP : L.DOWN;
25798
25798
  n?.navigateToNextCell(null, c, t.cellPosition, !1);
25799
25799
  } else {
25800
25800
  if (s?.hasValidationErrors())
@@ -25803,7 +25803,7 @@ var BT = class extends z {
25803
25803
  }
25804
25804
  }
25805
25805
  isCtrlEnter(e) {
25806
- return (e.ctrlKey || e.metaKey) && e.key === O.ENTER;
25806
+ return (e.ctrlKey || e.metaKey) && e.key === L.ENTER;
25807
25807
  }
25808
25808
  onF2KeyDown(e) {
25809
25809
  const {
@@ -25831,7 +25831,7 @@ var BT = class extends z {
25831
25831
  } = this;
25832
25832
  if (i || s?.isEditing(n, { withOpenEditor: !0 }))
25833
25833
  return;
25834
- if (e.key === O.SPACE)
25834
+ if (e.key === L.SPACE)
25835
25835
  this.onSpaceKeyDown(e);
25836
25836
  else if (s?.isCellEditable(n, "ui")) {
25837
25837
  if (s?.hasValidationErrors() && !s?.hasValidationErrors(n))
@@ -26206,7 +26206,7 @@ var BT = class extends z {
26206
26206
  const { editSvc: t } = this.beans;
26207
26207
  if (!t?.isEditing(this, { withOpenEditor: !0 }))
26208
26208
  return;
26209
- const i = e instanceof KeyboardEvent, s = e instanceof MouseEvent, n = i && e.key === O.ESCAPE;
26209
+ const i = e instanceof KeyboardEvent, s = e instanceof MouseEvent, n = i && e.key === L.ESCAPE;
26210
26210
  t.stopEditing(this, {
26211
26211
  source: t.isBatchEditing() ? "ui" : "api",
26212
26212
  cancel: n,
@@ -27548,27 +27548,27 @@ var QT = class extends z {
27548
27548
  const i = e.key, s = e.altKey, n = e.ctrlKey || e.metaKey, o = !!this.beans.rangeSvc && e.shiftKey, r = U5(this.gos, e);
27549
27549
  let a = !1;
27550
27550
  switch (i) {
27551
- case O.PAGE_HOME:
27552
- case O.PAGE_END:
27551
+ case L.PAGE_HOME:
27552
+ case L.PAGE_END:
27553
27553
  !n && !s && (this.onHomeOrEndKey(i), a = !0);
27554
27554
  break;
27555
- case O.LEFT:
27556
- case O.RIGHT:
27557
- case O.UP:
27558
- case O.DOWN:
27555
+ case L.LEFT:
27556
+ case L.RIGHT:
27557
+ case L.UP:
27558
+ case L.DOWN:
27559
27559
  if (!r)
27560
27560
  return !1;
27561
27561
  n && !s && !o && (this.onCtrlUpDownLeftRight(i, r), a = !0);
27562
27562
  break;
27563
- case O.PAGE_DOWN:
27564
- case O.PAGE_UP:
27563
+ case L.PAGE_DOWN:
27564
+ case L.PAGE_UP:
27565
27565
  !n && !s && (a = this.handlePageUpDown(i, r, t));
27566
27566
  break;
27567
27567
  }
27568
27568
  return a && e.preventDefault(), a;
27569
27569
  }
27570
27570
  handlePageUpDown(e, t, i) {
27571
- return i && (t = this.beans.focusSvc.getFocusedCell()), t ? (e === O.PAGE_UP ? this.onPageUp(t) : this.onPageDown(t), !0) : !1;
27571
+ return i && (t = this.beans.focusSvc.getFocusedCell()), t ? (e === L.PAGE_UP ? this.onPageUp(t) : this.onPageDown(t), !0) : !1;
27572
27572
  }
27573
27573
  navigateTo({
27574
27574
  scrollIndex: e,
@@ -27680,7 +27680,7 @@ var QT = class extends z {
27680
27680
  // home brings focus to top left cell, end brings focus to bottom right, grid scrolled to bring
27681
27681
  // same cell into view (which means either scroll all the way up, or all the way down).
27682
27682
  onHomeOrEndKey(e) {
27683
- const t = e === O.PAGE_HOME, { visibleCols: i, pageBounds: s, rowModel: n } = this.beans, o = i.allCols, r = t ? s.getFirstRow() : s.getLastRow(), a = n.getRow(r);
27683
+ const t = e === L.PAGE_HOME, { visibleCols: i, pageBounds: s, rowModel: n } = this.beans, o = i.allCols, r = t ? s.getFirstRow() : s.getLastRow(), a = n.getRow(r);
27684
27684
  if (!a)
27685
27685
  return;
27686
27686
  const l = (t ? o : [...o].reverse()).find(
@@ -27814,8 +27814,8 @@ var QT = class extends z {
27814
27814
  let n = i, o = !1;
27815
27815
  const r = this.beans, { cellNavigation: a, focusSvc: l, gos: c } = r;
27816
27816
  for (; n && (n === i || !this.isValidNavigateCell(n)); )
27817
- c.get("enableRtl") ? t === O.LEFT && (n = this.getLastCellOfColSpan(n)) : t === O.RIGHT && (n = this.getLastCellOfColSpan(n)), n = a.getNextCellToFocus(t, n), o = nt(n);
27818
- if (o && e && e.key === O.UP && (n = {
27817
+ c.get("enableRtl") ? t === L.LEFT && (n = this.getLastCellOfColSpan(n)) : t === L.RIGHT && (n = this.getLastCellOfColSpan(n)), n = a.getNextCellToFocus(t, n), o = nt(n);
27818
+ if (o && e && e.key === L.UP && (n = {
27819
27819
  rowIndex: -1,
27820
27820
  rowPinned: null,
27821
27821
  column: i.column
@@ -28279,7 +28279,7 @@ var RI = ".ag-overlay{inset:0;pointer-events:none;position:absolute;z-index:2}.a
28279
28279
  super(FI), this.eOverlayWrapper = ge, this.activeOverlay = null, this.activePromise = null, this.activeCssClass = null, this.elToFocusAfter = null, this.overlayExclusive = !1, this.oldWrapperPadding = null, this.registerCSS(RI);
28280
28280
  }
28281
28281
  handleKeyDown(e) {
28282
- if (e.key !== O.TAB || e.defaultPrevented || es(e))
28282
+ if (e.key !== L.TAB || e.defaultPrevented || es(e))
28283
28283
  return;
28284
28284
  const { beans: t, eOverlayWrapper: i } = this;
28285
28285
  if (i && En(t, i, !1, e.shiftKey))
@@ -32939,9 +32939,9 @@ var fM = class extends z {
32939
32939
  const w = C / Zi(d);
32940
32940
  let b = C;
32941
32941
  for (let x = d.length - 1; x >= 0; x--) {
32942
- const y = d[x], F = y.getColId(), S = m[F], R = r?.[F], E = R?.minWidth ?? s?.defaultMinWidth ?? S, T = R?.maxWidth ?? s?.defaultMaxWidth, P = Math.max(E ?? -1 / 0, y.getMinWidth()), M = Math.min(T ?? 1 / 0, y.getMaxWidth());
32943
- let L = Math.round(y.getActualWidth() * w);
32944
- L < P ? (L = P, f(y), p = !1) : L > M ? (L = M, f(y), p = !1) : x === 0 && (L = b), y.setActualWidth(L, t, !0), b -= L;
32942
+ const y = d[x], F = y.getColId(), S = m[F], R = r?.[F], E = R?.minWidth ?? s?.defaultMinWidth ?? S, T = R?.maxWidth ?? s?.defaultMaxWidth, D = Math.max(E ?? -1 / 0, y.getMinWidth()), M = Math.min(T ?? 1 / 0, y.getMaxWidth());
32943
+ let N = Math.round(y.getActualWidth() * w);
32944
+ N < D ? (N = D, f(y), p = !1) : N > M ? (N = M, f(y), p = !1) : x === 0 && (N = b), y.setActualWidth(N, t, !0), b -= N;
32945
32945
  }
32946
32946
  }
32947
32947
  }
@@ -33970,7 +33970,7 @@ var kM = {
33970
33970
  const u = (m) => {
33971
33971
  if (!s.contains(it(t)))
33972
33972
  return;
33973
- m.key === O.ESCAPE && !this.isStopPropagation(m) && f({ keyboardEvent: m });
33973
+ m.key === L.ESCAPE && !this.isStopPropagation(m) && f({ keyboardEvent: m });
33974
33974
  }, h = (m) => f({ mouseEvent: m }), p = (m) => f({ touchEvent: m }), f = (m = {}) => {
33975
33975
  const { mouseEvent: v, touchEvent: C, keyboardEvent: w, forceHide: b } = m;
33976
33976
  !b && // we don't hide popup if the event was on the child, or any
@@ -34740,9 +34740,9 @@ var WM = (e, t) => {
34740
34740
  const { eEditor: i } = this, { cellStartedEdit: s, eventKey: n, suppressPreventDefault: o } = e;
34741
34741
  i.getInputElement().setAttribute("title", ""), t.init(i, e);
34742
34742
  let r, a = !0;
34743
- s ? (this.focusAfterAttached = !0, n === O.BACKSPACE || n === O.DELETE ? r = "" : n && n.length === 1 ? o ? a = !1 : r = n : (r = t.getStartValue(), n !== O.F2 && (this.highlightAllOnFocus = !0))) : (this.focusAfterAttached = !1, r = t.getStartValue()), a && r != null && i.setStartValue(r), this.addGuiEventListener("keydown", (l) => {
34743
+ s ? (this.focusAfterAttached = !0, n === L.BACKSPACE || n === L.DELETE ? r = "" : n && n.length === 1 ? o ? a = !1 : r = n : (r = t.getStartValue(), n !== L.F2 && (this.highlightAllOnFocus = !0))) : (this.focusAfterAttached = !1, r = t.getStartValue()), a && r != null && i.setStartValue(r), this.addGuiEventListener("keydown", (l) => {
34744
34744
  const { key: c } = l;
34745
- (c === O.PAGE_UP || c === O.PAGE_DOWN) && l.preventDefault();
34745
+ (c === L.PAGE_UP || c === L.PAGE_DOWN) && l.preventDefault();
34746
34746
  });
34747
34747
  }
34748
34748
  afterGuiAttached() {
@@ -34946,7 +34946,7 @@ var WM = (e, t) => {
34946
34946
  const { eEditor: t } = this, { cellStartedEdit: i, eventKey: s, maxLength: n, cols: o, rows: r } = e;
34947
34947
  this.focusAfterAttached = i, t.getInputElement().setAttribute("title", ""), t.setMaxLength(n || 200).setCols(o || 60).setRows(r || 10);
34948
34948
  let a;
34949
- i ? (this.focusAfterAttached = !0, s === O.BACKSPACE || s === O.DELETE ? a = "" : s && s.length === 1 ? a = s : (a = this.getStartValue(e), s !== O.F2 && (this.highlightAllOnFocus = !0))) : (this.focusAfterAttached = !1, a = this.getStartValue(e)), a != null && t.setValue(a, !0), this.addGuiEventListener("keydown", this.onKeyDown.bind(this)), this.activateTabIndex();
34949
+ i ? (this.focusAfterAttached = !0, s === L.BACKSPACE || s === L.DELETE ? a = "" : s && s.length === 1 ? a = s : (a = this.getStartValue(e), s !== L.F2 && (this.highlightAllOnFocus = !0))) : (this.focusAfterAttached = !1, a = this.getStartValue(e)), a != null && t.setValue(a, !0), this.addGuiEventListener("keydown", this.onKeyDown.bind(this)), this.activateTabIndex();
34950
34950
  }
34951
34951
  getStartValue(e) {
34952
34952
  const { value: t } = e;
@@ -34959,7 +34959,7 @@ var WM = (e, t) => {
34959
34959
  }
34960
34960
  onKeyDown(e) {
34961
34961
  const t = e.key;
34962
- (t === O.LEFT || t === O.UP || t === O.RIGHT || t === O.DOWN || e.shiftKey && t === O.ENTER) && e.stopPropagation();
34962
+ (t === L.LEFT || t === L.UP || t === L.RIGHT || t === L.DOWN || e.shiftKey && t === L.ENTER) && e.stopPropagation();
34963
34963
  }
34964
34964
  afterGuiAttached() {
34965
34965
  const { eEditor: e, focusAfterAttached: t, highlightAllOnFocus: i } = this, s = this.getLocaleTextFunc();
@@ -35114,7 +35114,7 @@ var WM = (e, t) => {
35114
35114
  }) : a;
35115
35115
  }
35116
35116
  preventStepping(e) {
35117
- (e.key === O.UP || e.key === O.DOWN) && e.preventDefault();
35117
+ (e.key === L.UP || e.key === L.DOWN) && e.preventDefault();
35118
35118
  }
35119
35119
  getValue() {
35120
35120
  const { eEditor: e, params: t } = this, i = e.getValue();
@@ -35209,7 +35209,7 @@ var WM = (e, t) => {
35209
35209
  handleKeyDown(e) {
35210
35210
  const t = e.key;
35211
35211
  switch (t) {
35212
- case O.ENTER:
35212
+ case L.ENTER:
35213
35213
  if (!this.highlightedItem)
35214
35214
  this.setValue(this.getValue());
35215
35215
  else {
@@ -35217,14 +35217,14 @@ var WM = (e, t) => {
35217
35217
  this.setValueByIndex(i);
35218
35218
  }
35219
35219
  break;
35220
- case O.DOWN:
35221
- case O.UP:
35220
+ case L.DOWN:
35221
+ case L.UP:
35222
35222
  e.preventDefault(), this.navigate(t);
35223
35223
  break;
35224
- case O.PAGE_DOWN:
35225
- case O.PAGE_UP:
35226
- case O.PAGE_HOME:
35227
- case O.PAGE_END:
35224
+ case L.PAGE_DOWN:
35225
+ case L.PAGE_UP:
35226
+ case L.PAGE_HOME:
35227
+ case L.PAGE_END:
35228
35228
  e.preventDefault(), this.navigateToPage(t);
35229
35229
  break;
35230
35230
  }
@@ -35301,7 +35301,7 @@ var WM = (e, t) => {
35301
35301
  this.listItems.push(s), this.getGui().appendChild(s.getGui());
35302
35302
  }
35303
35303
  navigate(e) {
35304
- const t = e === O.DOWN;
35304
+ const t = e === L.DOWN;
35305
35305
  let i;
35306
35306
  const { listItems: s, highlightedItem: n } = this;
35307
35307
  if (!n)
@@ -35318,7 +35318,7 @@ var WM = (e, t) => {
35318
35318
  return;
35319
35319
  const s = t.indexOf(i), n = this.options.length - 1, o = t[0].getHeight(), r = Math.floor(this.getGui().clientHeight / o);
35320
35320
  let a = -1;
35321
- e === O.PAGE_HOME ? a = 0 : e === O.PAGE_END ? a = n : e === O.PAGE_DOWN ? a = Math.min(s + r, n) : e === O.PAGE_UP && (a = Math.max(s - r, 0)), a !== -1 && this.highlightItem(t[a]);
35321
+ e === L.PAGE_HOME ? a = 0 : e === L.PAGE_END ? a = n : e === L.PAGE_DOWN ? a = Math.min(s + r, n) : e === L.PAGE_UP && (a = Math.max(s - r, 0)), a !== -1 && this.highlightItem(t[a]);
35322
35322
  }
35323
35323
  refreshAriaRole() {
35324
35324
  un(this.getGui(), this.options.length === 0 ? "presentation" : "listbox");
@@ -35391,13 +35391,13 @@ var WM = (e, t) => {
35391
35391
  }
35392
35392
  onKeyDown(e) {
35393
35393
  switch (e.key) {
35394
- case O.UP:
35395
- case O.DOWN:
35396
- case O.ENTER:
35397
- case O.SPACE:
35394
+ case L.UP:
35395
+ case L.DOWN:
35396
+ case L.ENTER:
35397
+ case L.SPACE:
35398
35398
  e.preventDefault(), this.onLabelOrWrapperMouseDown();
35399
35399
  break;
35400
- case O.ESCAPE:
35400
+ case L.ESCAPE:
35401
35401
  this.isPickerDisplayed && (e.preventDefault(), e.stopPropagation(), this.hideCurrentPicker && this.hideCurrentPicker());
35402
35402
  break;
35403
35403
  }
@@ -35563,20 +35563,20 @@ var WM = (e, t) => {
35563
35563
  }
35564
35564
  onKeyDown(e) {
35565
35565
  const { key: t } = e;
35566
- switch (t === O.TAB && this.hidePicker(), t) {
35567
- case O.ENTER:
35568
- case O.UP:
35569
- case O.DOWN:
35570
- case O.PAGE_UP:
35571
- case O.PAGE_DOWN:
35572
- case O.PAGE_HOME:
35573
- case O.PAGE_END:
35566
+ switch (t === L.TAB && this.hidePicker(), t) {
35567
+ case L.ENTER:
35568
+ case L.UP:
35569
+ case L.DOWN:
35570
+ case L.PAGE_UP:
35571
+ case L.PAGE_DOWN:
35572
+ case L.PAGE_HOME:
35573
+ case L.PAGE_END:
35574
35574
  e.preventDefault(), this.isPickerDisplayed ? this.listComponent?.handleKeyDown(e) : super.onKeyDown(e);
35575
35575
  break;
35576
- case O.ESCAPE:
35576
+ case L.ESCAPE:
35577
35577
  super.onKeyDown(e);
35578
35578
  break;
35579
- case O.SPACE:
35579
+ case L.SPACE:
35580
35580
  this.isPickerDisplayed ? e.preventDefault() : super.onKeyDown(e);
35581
35581
  break;
35582
35582
  }
@@ -35643,7 +35643,7 @@ var WM = (e, t) => {
35643
35643
  K(58);
35644
35644
  return;
35645
35645
  }
35646
- this.startedByEnter = r != null ? r === O.ENTER : !1;
35646
+ this.startedByEnter = r != null ? r === L.ENTER : !1;
35647
35647
  let a = !1;
35648
35648
  n.forEach((u) => {
35649
35649
  const h = { value: u }, p = i.formatValue(e.column, null, u), f = p != null;
@@ -35829,7 +35829,7 @@ var Gk = { tag: "div", cls: "ag-popup-editor", attrs: { tabindex: "-1" } }, Bk =
35829
35829
  }
35830
35830
  };
35831
35831
  function Vk(e, { column: t }, i, s, n = "ui") {
35832
- if (i instanceof KeyboardEvent && (i.key === O.TAB || i.key === O.ENTER || i.key === O.F2 || i.key === O.BACKSPACE && s))
35832
+ if (i instanceof KeyboardEvent && (i.key === L.TAB || i.key === L.ENTER || i.key === L.F2 || i.key === L.BACKSPACE && s))
35833
35833
  return !0;
35834
35834
  if (i?.shiftKey && e.rangeSvc?.getCellRanges().length != 0)
35835
35835
  return !1;
@@ -36129,7 +36129,7 @@ var jk = class extends z {
36129
36129
  return e instanceof KeyboardEvent && this.batch && !!this.strategy?.midBatchInputsAllowed(t) && this.isEditing(t, { withOpenEditor: !0 });
36130
36130
  }
36131
36131
  handleMidBatchKey(e, t, i) {
36132
- const { beans: s, model: n } = this, { cellCtrl: o, edits: r } = i, { key: a } = e, l = a === O.ENTER, c = a === O.ESCAPE, d = a === O.TAB;
36132
+ const { beans: s, model: n } = this, { cellCtrl: o, edits: r } = i, { key: a } = e, l = a === L.ENTER, c = a === L.ESCAPE, d = a === L.TAB;
36133
36133
  if (l || d || c) {
36134
36134
  if (l || d)
36135
36135
  Ss(s, { persist: !0 });
@@ -36180,9 +36180,9 @@ var jk = class extends z {
36180
36180
  if (!(i instanceof KeyboardEvent) || s)
36181
36181
  return;
36182
36182
  const { key: o, shiftKey: r } = i, a = this.gos.get("enterNavigatesVerticallyAfterEdit");
36183
- if (o !== O.ENTER || !a)
36183
+ if (o !== L.ENTER || !a)
36184
36184
  return;
36185
- const l = r ? O.UP : O.DOWN;
36185
+ const l = r ? L.UP : L.DOWN;
36186
36186
  this.beans.navigation?.navigateToNextCell(null, l, t, !1);
36187
36187
  }
36188
36188
  processEdits(e, t) {
@@ -36700,11 +36700,11 @@ var O1 = class extends z {
36700
36700
  }
36701
36701
  shouldStop(e, t, i = "ui") {
36702
36702
  const s = this.editSvc.isBatchEditing();
36703
- return s && i === "api" ? !0 : s && (i === "ui" || i === "edit") ? !1 : i === "api" ? !0 : t instanceof KeyboardEvent && !s ? t.key === O.ENTER : null;
36703
+ return s && i === "api" ? !0 : s && (i === "ui" || i === "edit") ? !1 : i === "api" ? !0 : t instanceof KeyboardEvent && !s ? t.key === L.ENTER : null;
36704
36704
  }
36705
36705
  shouldCancel(e, t, i = "ui") {
36706
36706
  const s = this.editSvc.isBatchEditing();
36707
- return !!(t instanceof KeyboardEvent && !s && t.key === O.ESCAPE || s && i === "api" || i === "api");
36707
+ return !!(t instanceof KeyboardEvent && !s && t.key === L.ESCAPE || s && i === "api" || i === "api");
36708
36708
  }
36709
36709
  setEditMap(e, t) {
36710
36710
  t?.update || this.editSvc.stopEditing(void 0, { cancel: !0, source: "api" });
@@ -37219,17 +37219,17 @@ var g7 = class extends Tp {
37219
37219
  super.handleKeyDown(e);
37220
37220
  const t = this.getWrapperHasFocus();
37221
37221
  switch (e.key) {
37222
- case O.UP:
37223
- case O.DOWN:
37224
- case O.LEFT:
37225
- case O.RIGHT:
37222
+ case L.UP:
37223
+ case L.DOWN:
37224
+ case L.LEFT:
37225
+ case L.RIGHT:
37226
37226
  if (t)
37227
37227
  return;
37228
37228
  mn(e);
37229
- case O.ENTER:
37229
+ case L.ENTER:
37230
37230
  t && fn(this.eGui) && e.preventDefault();
37231
37231
  break;
37232
- case O.ESCAPE:
37232
+ case L.ESCAPE:
37233
37233
  t || this.eGui.focus();
37234
37234
  }
37235
37235
  }
@@ -37238,7 +37238,7 @@ var g7 = class extends Tp {
37238
37238
  return;
37239
37239
  const i = !!e.relatedTarget && !e.relatedTarget.classList.contains("ag-floating-filter"), s = !!e.relatedTarget && tn(e.relatedTarget, "ag-floating-filter");
37240
37240
  if (i && s && e.target === this.eGui) {
37241
- const n = this.lastFocusEvent, o = !!(n && n.key === O.TAB);
37241
+ const n = this.lastFocusEvent, o = !!(n && n.key === L.TAB);
37242
37242
  if (n && o) {
37243
37243
  const r = n.shiftKey;
37244
37244
  fn(this.eGui, r);
@@ -38877,7 +38877,7 @@ var _7 = class extends at {
38877
38877
  });
38878
38878
  this.activateTabIndex([f]), h && (n = f);
38879
38879
  const m = (C) => {
38880
- C.key === O.ENTER && (C.preventDefault(), u(C));
38880
+ C.key === L.ENTER && (C.preventDefault(), u(C));
38881
38881
  }, v = this.listeners;
38882
38882
  f.addEventListener("click", u), v.push(() => f.removeEventListener("click", u)), f.addEventListener("keydown", m), v.push(() => f.removeEventListener("keydown", m)), o.append(f);
38883
38883
  };
@@ -38979,7 +38979,7 @@ var _7 = class extends at {
38979
38979
  return;
38980
38980
  const i = e, s = i?.key;
38981
38981
  let n;
38982
- (s === O.ENTER || s === O.SPACE) && (n = { keyboardEvent: i }), t(n), this.hidePopup = null;
38982
+ (s === L.ENTER || s === L.SPACE) && (n = { keyboardEvent: i }), t(n), this.hidePopup = null;
38983
38983
  }
38984
38984
  afterAction(e, t) {
38985
38985
  const { params: i, applyActive: s } = this, n = i?.closeOnApply;
@@ -38999,7 +38999,7 @@ var _7 = class extends at {
38999
38999
  }
39000
39000
  }
39001
39001
  handleKeyDown(e) {
39002
- !e.defaultPrevented && e.key === O.ENTER && this.applyActive && (this.updateModel(this.column, "apply", { fromButtons: !0 }), this.afterAction("apply", e));
39002
+ !e.defaultPrevented && e.key === L.ENTER && this.applyActive && (this.updateModel(this.column, "apply", { fromButtons: !0 }), this.afterAction("apply", e));
39003
39003
  }
39004
39004
  destroy() {
39005
39005
  this.hidePopup = null, this.eButtons = this.destroyBean(this.eButtons);
@@ -39162,7 +39162,7 @@ var _7 = class extends at {
39162
39162
  }), Tm(e, !0, "contextMenu"), this.dispatchVisibleChangedEvent(!0, i, e);
39163
39163
  }
39164
39164
  trapFocusWithin(e, t) {
39165
- e.key !== O.TAB || e.defaultPrevented || En(this.beans, t, !1, e.shiftKey) || (e.preventDefault(), fn(t, e.shiftKey));
39165
+ e.key !== L.TAB || e.defaultPrevented || En(this.beans, t, !1, e.shiftKey) || (e.preventDefault(), fn(t, e.shiftKey));
39166
39166
  }
39167
39167
  dispatchVisibleChangedEvent(e, t, i) {
39168
39168
  this.eventSvc.dispatchEvent({
@@ -40249,7 +40249,7 @@ var j1 = class extends at {
40249
40249
  $t(this.eFloatingFilterInputContainer), this.destroyBean(t), this.setupFloatingFilterInputService(e), t.setValue(i, !0);
40250
40250
  }
40251
40251
  syncUpWithParentFilter(e) {
40252
- const t = e.key === O.ENTER, i = this.reactive;
40252
+ const t = e.key === L.ENTER, i = this.reactive;
40253
40253
  if (i && this.params.onUiChange(), this.applyActive && !t)
40254
40254
  return;
40255
40255
  const { inputSvc: s, params: n, lastType: o } = this;
@@ -42197,55 +42197,55 @@ var I9 = class extends z {
42197
42197
  columnOrder: u
42198
42198
  } = e;
42199
42199
  let h = !1;
42200
- const p = (P, M) => {
42201
- const L = !s?.has(P) && !!(M || t === "api");
42202
- return h || (h = L), L;
42203
- }, f = {}, m = (P) => {
42204
- let M = f[P];
42205
- return M || (M = { colId: P }, f[P] = M, M);
42200
+ const p = (D, M) => {
42201
+ const N = !s?.has(D) && !!(M || t === "api");
42202
+ return h || (h = N), N;
42203
+ }, f = {}, m = (D) => {
42204
+ let M = f[D];
42205
+ return M || (M = { colId: D }, f[D] = M, M);
42206
42206
  }, v = {}, C = p("sort", n);
42207
- C && n?.sortModel.forEach(({ colId: P, sort: M, type: L }, Y) => {
42208
- const N = m(P);
42209
- N.sort = M, N.sortIndex = Y, N.sortType = L;
42207
+ C && n?.sortModel.forEach(({ colId: D, sort: M, type: N }, Z) => {
42208
+ const O = m(D);
42209
+ O.sort = M, O.sortIndex = Z, O.sortType = N;
42210
42210
  }), (C || !i) && (v.sort = null, v.sortIndex = null);
42211
42211
  const w = p("rowGroup", o);
42212
- w && o?.groupColIds.forEach((P, M) => {
42213
- const L = m(P);
42214
- L.rowGroup = !0, L.rowGroupIndex = M;
42212
+ w && o?.groupColIds.forEach((D, M) => {
42213
+ const N = m(D);
42214
+ N.rowGroup = !0, N.rowGroupIndex = M;
42215
42215
  }), (w || !i) && (v.rowGroup = null, v.rowGroupIndex = null);
42216
42216
  const b = p("aggregation", r);
42217
- b && r?.aggregationModel.forEach(({ colId: P, aggFunc: M }) => {
42218
- m(P).aggFunc = M;
42217
+ b && r?.aggregationModel.forEach(({ colId: D, aggFunc: M }) => {
42218
+ m(D).aggFunc = M;
42219
42219
  }), (b || !i) && (v.aggFunc = null);
42220
42220
  const x = p("pivot", a);
42221
- x && (a?.pivotColIds.forEach((P, M) => {
42222
- const L = m(P);
42223
- L.pivot = !0, L.pivotIndex = M;
42221
+ x && (a?.pivotColIds.forEach((D, M) => {
42222
+ const N = m(D);
42223
+ N.pivot = !0, N.pivotIndex = M;
42224
42224
  }), this.gos.updateGridOptions({
42225
42225
  options: { pivotMode: !!a?.pivotMode },
42226
42226
  source: t
42227
42227
  })), (x || !i) && (v.pivot = null, v.pivotIndex = null);
42228
42228
  const y = p("columnPinning", l);
42229
42229
  if (y) {
42230
- for (const P of l?.leftColIds ?? [])
42231
- m(P).pinned = "left";
42232
- for (const P of l?.rightColIds ?? [])
42233
- m(P).pinned = "right";
42230
+ for (const D of l?.leftColIds ?? [])
42231
+ m(D).pinned = "left";
42232
+ for (const D of l?.rightColIds ?? [])
42233
+ m(D).pinned = "right";
42234
42234
  }
42235
42235
  (y || !i) && (v.pinned = null);
42236
42236
  const F = p("columnVisibility", c);
42237
42237
  if (F)
42238
- for (const P of c?.hiddenColIds ?? [])
42239
- m(P).hide = !0;
42238
+ for (const D of c?.hiddenColIds ?? [])
42239
+ m(D).hide = !0;
42240
42240
  (F || !i) && (v.hide = null);
42241
42241
  const S = p("columnSizing", d);
42242
42242
  if (S)
42243
- for (const { colId: P, flex: M, width: L } of d?.columnSizingModel ?? []) {
42244
- const Y = m(P);
42245
- Y.flex = M ?? null, Y.width = L;
42243
+ for (const { colId: D, flex: M, width: N } of d?.columnSizingModel ?? []) {
42244
+ const Z = m(D);
42245
+ Z.flex = M ?? null, Z.width = N;
42246
42246
  }
42247
42247
  (S || !i) && (v.flex = null);
42248
- const R = u?.orderedColIds, E = !!R?.length && !s?.has("columnOrder"), T = E ? R.map((P) => m(P)) : Object.values(f);
42248
+ const R = u?.orderedColIds, E = !!R?.length && !s?.has("columnOrder"), T = E ? R.map((D) => m(D)) : Object.values(f);
42249
42249
  (T.length || h) && (this.columnStates = T, Ri(
42250
42250
  this.beans,
42251
42251
  {
@@ -42700,7 +42700,7 @@ var or = "paginationPageSizeSelector", _9 = { tag: "span", cls: "ag-paging-page-
42700
42700
  this.addManagedListeners(t, {
42701
42701
  click: i,
42702
42702
  keydown: (s) => {
42703
- (s.key === O.ENTER || s.key === O.SPACE) && (s.preventDefault(), i());
42703
+ (s.key === L.ENTER || s.key === L.SPACE) && (s.preventDefault(), i());
42704
42704
  }
42705
42705
  });
42706
42706
  }
@@ -46281,7 +46281,7 @@ var lb = yh((e, t) => {
46281
46281
  return !1;
46282
46282
  }
46283
46283
  })), hi(() => Xr(d, s, o.current), [d]);
46284
- const R = D((W) => {
46284
+ const R = P((W) => {
46285
46285
  if (n.current = W, !W || s.isDestroyed()) {
46286
46286
  c.current = s.destroyBean(c.current);
46287
46287
  return;
@@ -46306,10 +46306,10 @@ var lb = yh((e, t) => {
46306
46306
  lb,
46307
46307
  e
46308
46308
  ));
46309
- }, []), E = V(() => `ag-cell-wrapper ${v.toString()}`, [v]), T = V(() => `ag-group-expanded ${w.toString()}`, [w]), P = V(
46309
+ }, []), E = V(() => `ag-cell-wrapper ${v.toString()}`, [v]), T = V(() => `ag-group-expanded ${w.toString()}`, [w]), D = V(
46310
46310
  () => `ag-group-contracted ${x.toString()}`,
46311
46311
  [x]
46312
- ), M = V(() => `ag-group-checkbox ${F.toString()}`, [F]), L = d?.componentFromFramework, Y = L ? d.componentClass : void 0, N = d == null && f != null, B = Io(f);
46312
+ ), M = V(() => `ag-group-checkbox ${F.toString()}`, [F]), N = d?.componentFromFramework, Z = N ? d.componentClass : void 0, O = d == null && f != null, B = Io(f);
46313
46313
  return /* @__PURE__ */ Q.createElement(
46314
46314
  "span",
46315
46315
  {
@@ -46318,9 +46318,9 @@ var lb = yh((e, t) => {
46318
46318
  ...e.colDef ? {} : { role: c.current?.getCellAriaRole() }
46319
46319
  },
46320
46320
  /* @__PURE__ */ Q.createElement("span", { className: T, ref: a }),
46321
- /* @__PURE__ */ Q.createElement("span", { className: P, ref: l }),
46321
+ /* @__PURE__ */ Q.createElement("span", { className: D, ref: l }),
46322
46322
  /* @__PURE__ */ Q.createElement("span", { className: M, ref: r }),
46323
- /* @__PURE__ */ Q.createElement("span", { className: "ag-group-value", ref: o }, N ? B : L ? /* @__PURE__ */ Q.createElement(Y, { ...d.params }) : null),
46323
+ /* @__PURE__ */ Q.createElement("span", { className: "ag-group-value", ref: o }, O ? B : N ? /* @__PURE__ */ Q.createElement(Z, { ...d.params }) : null),
46324
46324
  /* @__PURE__ */ Q.createElement("span", { className: "ag-group-child-count" }, h)
46325
46325
  );
46326
46326
  }), jm = lb, dg = Vr({
@@ -46770,7 +46770,7 @@ var UO = 1e3, $O = class {
46770
46770
  }, qO = Q.createContext([]), KO = Q.createContext(void 0), YO = ({ ctrl: e }) => {
46771
46771
  const t = e.isAlive(), { context: i } = rt(At), [s, n] = k(), [o, r] = k(), a = G(), l = G(null), c = G(null), d = G(null), u = G(), h = G();
46772
46772
  t && !h.current && (h.current = new Ur(() => l.current));
46773
- const p = D((C) => {
46773
+ const p = P((C) => {
46774
46774
  if (l.current = C, !C || !e.isAlive() || i.isDestroyed()) {
46775
46775
  a.current = i.destroyBean(a.current);
46776
46776
  return;
@@ -46826,7 +46826,7 @@ var UO = 1e3, $O = class {
46826
46826
  () => new ui("ag-floating-filter-button", "ag-hidden")
46827
46827
  ), [u, h] = k("false"), [p, f] = k(), [, m] = k(1), v = G(), C = G(null), w = G(null), b = G(null), x = G(null), y = G(), F = G(), S = (A) => {
46828
46828
  A != null && y.current?.(A);
46829
- }, R = D((A) => {
46829
+ }, R = P((A) => {
46830
46830
  if (C.current = A, !A || !e.isAlive() || t.isDestroyed()) {
46831
46831
  v.current = t.destroyBean(v.current);
46832
46832
  return;
@@ -46835,11 +46835,11 @@ var UO = 1e3, $O = class {
46835
46835
  y.current = j;
46836
46836
  });
46837
46837
  const I = {
46838
- toggleCss: (j, Z) => r((oe) => oe.setClass(j, Z)),
46838
+ toggleCss: (j, Y) => r((oe) => oe.setClass(j, Y)),
46839
46839
  setUserStyles: (j) => n(j),
46840
- addOrRemoveBodyCssClass: (j, Z) => l((oe) => oe.setClass(j, Z)),
46840
+ addOrRemoveBodyCssClass: (j, Y) => l((oe) => oe.setClass(j, Y)),
46841
46841
  setButtonWrapperDisplayed: (j) => {
46842
- d((Z) => Z.setClass("ag-hidden", !j)), h(j ? "false" : "true");
46842
+ d((Y) => Y.setClass("ag-hidden", !j)), h(j ? "false" : "true");
46843
46843
  },
46844
46844
  setWidth: (j) => {
46845
46845
  C.current && (C.current.style.width = j);
@@ -46854,21 +46854,21 @@ var UO = 1e3, $O = class {
46854
46854
  () => Xr(p, t, w.current, S),
46855
46855
  [p]
46856
46856
  );
46857
- const E = V(() => o.toString(), [o]), T = V(() => a.toString(), [a]), P = V(() => c.toString(), [c]), M = V(() => !!(p && p.componentFromFramework && Lo(p.componentClass)), [p]), L = V(() => i.get("reactiveCustomComponents"), []), Y = V(() => i.get("enableFilterHandlers"), []), [N, B] = k();
46857
+ const E = V(() => o.toString(), [o]), T = V(() => a.toString(), [a]), D = V(() => c.toString(), [c]), M = V(() => !!(p && p.componentFromFramework && Lo(p.componentClass)), [p]), N = V(() => i.get("reactiveCustomComponents"), []), Z = V(() => i.get("enableFilterHandlers"), []), [O, B] = k();
46858
46858
  be(() => {
46859
46859
  if (p?.componentFromFramework)
46860
- if (L) {
46861
- const A = Y ? QO : GO, I = new A(p.params, () => m((j) => j + 1));
46860
+ if (N) {
46861
+ const A = Z ? QO : GO, I = new A(p.params, () => m((j) => j + 1));
46862
46862
  S(I), B(I);
46863
46863
  } else
46864
46864
  ug();
46865
46865
  }, [p]);
46866
- const W = N?.getProps(), $ = p?.componentFromFramework, ne = p?.componentClass;
46867
- return /* @__PURE__ */ Q.createElement("div", { ref: R, style: s, className: E, role: "gridcell" }, /* @__PURE__ */ Q.createElement("div", { ref: w, className: T, role: "presentation" }, $ ? L ? W && /* @__PURE__ */ Q.createElement(
46866
+ const W = O?.getProps(), $ = p?.componentFromFramework, ne = p?.componentClass;
46867
+ return /* @__PURE__ */ Q.createElement("div", { ref: R, style: s, className: E, role: "gridcell" }, /* @__PURE__ */ Q.createElement("div", { ref: w, className: T, role: "presentation" }, $ ? N ? W && /* @__PURE__ */ Q.createElement(
46868
46868
  dg.Provider,
46869
46869
  {
46870
46870
  value: {
46871
- setMethods: (A) => N.setMethods(A)
46871
+ setMethods: (A) => O.setMethods(A)
46872
46872
  }
46873
46873
  },
46874
46874
  /* @__PURE__ */ Q.createElement(ne, { ...W })
@@ -46878,7 +46878,7 @@ var UO = 1e3, $O = class {
46878
46878
  {
46879
46879
  ref: b,
46880
46880
  "aria-hidden": u,
46881
- className: P,
46881
+ className: D,
46882
46882
  role: "presentation"
46883
46883
  },
46884
46884
  /* @__PURE__ */ Q.createElement(
@@ -46892,31 +46892,31 @@ var UO = 1e3, $O = class {
46892
46892
  )
46893
46893
  ));
46894
46894
  }, JO = kt(XO), eN = ({ ctrl: e }) => {
46895
- const { context: t } = rt(At), [i, s] = k(), [n, o] = k(() => new ui()), [r, a] = k(() => new ui()), [l, c] = k("false"), [d, u] = k(), [h, p] = k(), f = G(), m = G(null), v = G(null), C = G(null), w = G(), b = D((E) => {
46895
+ const { context: t } = rt(At), [i, s] = k(), [n, o] = k(() => new ui()), [r, a] = k(() => new ui()), [l, c] = k("false"), [d, u] = k(), [h, p] = k(), f = G(), m = G(null), v = G(null), C = G(null), w = G(), b = P((E) => {
46896
46896
  if (m.current = E, !E || !e.isAlive() || t.isDestroyed()) {
46897
46897
  f.current = t.destroyBean(f.current);
46898
46898
  return;
46899
46899
  }
46900
46900
  f.current = t.createBean(new Ao());
46901
46901
  const T = {
46902
- setWidth: (P) => {
46903
- m.current && (m.current.style.width = P);
46902
+ setWidth: (D) => {
46903
+ m.current && (m.current.style.width = D);
46904
46904
  },
46905
- toggleCss: (P, M) => o((L) => L.setClass(P, M)),
46906
- setUserStyles: (P) => s(P),
46907
- setHeaderWrapperHidden: (P) => {
46905
+ toggleCss: (D, M) => o((N) => N.setClass(D, M)),
46906
+ setUserStyles: (D) => s(D),
46907
+ setHeaderWrapperHidden: (D) => {
46908
46908
  const M = C.current;
46909
- M && (P ? M.style.setProperty("display", "none") : M.style.removeProperty("display"));
46909
+ M && (D ? M.style.setProperty("display", "none") : M.style.removeProperty("display"));
46910
46910
  },
46911
- setHeaderWrapperMaxHeight: (P) => {
46911
+ setHeaderWrapperMaxHeight: (D) => {
46912
46912
  const M = C.current;
46913
- M && (P != null ? M.style.setProperty("max-height", `${P}px`) : M.style.removeProperty("max-height"), M.classList.toggle("ag-header-cell-comp-wrapper-limited-height", P != null));
46913
+ M && (D != null ? M.style.setProperty("max-height", `${D}px`) : M.style.removeProperty("max-height"), M.classList.toggle("ag-header-cell-comp-wrapper-limited-height", D != null));
46914
46914
  },
46915
- setUserCompDetails: (P) => p(P),
46916
- setResizableDisplayed: (P) => {
46917
- a((M) => M.setClass("ag-hidden", !P)), c(P ? "false" : "true");
46915
+ setUserCompDetails: (D) => p(D),
46916
+ setResizableDisplayed: (D) => {
46917
+ a((M) => M.setClass("ag-hidden", !D)), c(D ? "false" : "true");
46918
46918
  },
46919
- setAriaExpanded: (P) => u(P),
46919
+ setAriaExpanded: (D) => u(D),
46920
46920
  getUserCompInstance: () => w.current || void 0
46921
46921
  };
46922
46922
  e.setComp(T, E, v.current, C.current, f.current);
@@ -46930,7 +46930,7 @@ var UO = 1e3, $O = class {
46930
46930
  ), S = h?.componentFromFramework, R = h?.componentClass;
46931
46931
  return /* @__PURE__ */ Q.createElement("div", { ref: b, style: i, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ Q.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, S ? x ? /* @__PURE__ */ Q.createElement(R, { ...h.params }) : /* @__PURE__ */ Q.createElement(R, { ...h.params, ref: w }) : null), /* @__PURE__ */ Q.createElement("div", { ref: v, "aria-hidden": l, className: F }));
46932
46932
  }, tN = kt(eN), iN = ({ ctrl: e }) => {
46933
- const { gos: t, context: i } = rt(At), { topOffset: s, rowHeight: n } = V(() => e.getTopAndHeight(), []), o = V(() => t.get("tabIndex"), []), [r, a] = k(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = k(() => n + "px"), [u, h] = k(() => s + "px"), p = G(null), [f, m] = k(() => e.getUpdatedHeaderCtrls()), v = G(), C = G(null), w = D((y) => {
46933
+ const { gos: t, context: i } = rt(At), { topOffset: s, rowHeight: n } = V(() => e.getTopAndHeight(), []), o = V(() => t.get("tabIndex"), []), [r, a] = k(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = k(() => n + "px"), [u, h] = k(() => s + "px"), p = G(null), [f, m] = k(() => e.getUpdatedHeaderCtrls()), v = G(), C = G(null), w = P((y) => {
46934
46934
  if (C.current = y, !y || !e.isAlive() || i.isDestroyed()) {
46935
46935
  v.current = i.destroyBean(v.current);
46936
46936
  return;
@@ -46940,8 +46940,8 @@ var UO = 1e3, $O = class {
46940
46940
  setHeight: (S) => d(S),
46941
46941
  setTop: (S) => h(S),
46942
46942
  setHeaderCtrls: (S, R, E) => {
46943
- const T = p.current, P = Zl(T, S, R);
46944
- P !== T && (p.current = P, Nr(E, () => m(P)));
46943
+ const T = p.current, D = Zl(T, S, R);
46944
+ D !== T && (p.current = D, Nr(E, () => m(D)));
46945
46945
  },
46946
46946
  setWidth: (S) => {
46947
46947
  C.current && (C.current.style.width = S);
@@ -46957,7 +46957,7 @@ var UO = 1e3, $O = class {
46957
46957
  top: u
46958
46958
  }),
46959
46959
  [c, u]
46960
- ), x = D((y) => {
46960
+ ), x = P((y) => {
46961
46961
  switch (e.type) {
46962
46962
  case "group":
46963
46963
  return /* @__PURE__ */ Q.createElement(tN, { ctrl: y, key: y.instanceId });
@@ -46980,7 +46980,7 @@ var UO = 1e3, $O = class {
46980
46980
  f.map(x)
46981
46981
  );
46982
46982
  }, sN = kt(iN), nN = ({ pinned: e }) => {
46983
- const [t, i] = k(!0), [s, n] = k([]), { context: o } = rt(At), r = G(null), a = G(null), l = G(), c = e === "left", d = e === "right", u = !c && !d, h = D((m) => {
46983
+ const [t, i] = k(!0), [s, n] = k([]), { context: o } = rt(At), r = G(null), a = G(null), l = G(), c = e === "left", d = e === "right", u = !c && !d, h = P((m) => {
46984
46984
  if (r.current = m, !m || o.isDestroyed()) {
46985
46985
  l.current = o.destroyBean(l.current);
46986
46986
  return;
@@ -47005,7 +47005,7 @@ var UO = 1e3, $O = class {
47005
47005
  }, []), p = t ? "" : "ag-hidden", f = () => s.map((m) => /* @__PURE__ */ Q.createElement(sN, { ctrl: m, key: m.instanceId }));
47006
47006
  return c ? /* @__PURE__ */ Q.createElement("div", { ref: h, className: "ag-pinned-left-header " + p, "aria-hidden": !t, role: "rowgroup" }, f()) : d ? /* @__PURE__ */ Q.createElement("div", { ref: h, className: "ag-pinned-right-header " + p, "aria-hidden": !t, role: "rowgroup" }, f()) : u ? /* @__PURE__ */ Q.createElement("div", { ref: h, className: "ag-header-viewport " + p, role: "rowgroup", tabIndex: -1 }, /* @__PURE__ */ Q.createElement("div", { ref: a, className: "ag-header-container", role: "presentation" }, f())) : null;
47007
47007
  }, eu = kt(nN), oN = () => {
47008
- const [e, t] = k(() => new ui()), [i, s] = k(), { context: n } = rt(At), o = G(null), r = G(), a = D((d) => {
47008
+ const [e, t] = k(() => new ui()), [i, s] = k(), { context: n } = rt(At), o = G(null), r = G(), a = P((d) => {
47009
47009
  if (o.current = d, !d || n.isDestroyed()) {
47010
47010
  r.current = n.destroyBean(r.current);
47011
47011
  return;
@@ -47149,7 +47149,7 @@ var UO = 1e3, $O = class {
47149
47149
  }
47150
47150
  ) : c && n ? /* @__PURE__ */ Q.createElement(Um, { editDetails: e, cellCtrl: s, eParentCell: i, jsChildComp: n }) : null;
47151
47151
  }, pN = (e, t, i, s, n, o, r = !1) => {
47152
- const { context: a } = rt(At), l = D(() => {
47152
+ const { context: a } = rt(At), l = P(() => {
47153
47153
  const c = n.current;
47154
47154
  if (!c)
47155
47155
  return;
@@ -47205,11 +47205,11 @@ var UO = 1e3, $O = class {
47205
47205
  instanceId: r
47206
47206
  } = e, a = G(), [l, c] = k(
47207
47207
  () => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
47208
- ), [d, u] = k(), [h, p] = k(1), [f, m] = k(), [v, C] = k(!1), [w, b] = k(!1), [x, y] = k(!1), F = G(null), [S, R] = k(), E = V(() => e.isForceWrapper(), [e]), T = V(() => e.getCellAriaRole(), [e]), P = G(null), M = G(null), L = G(null), Y = G(), N = G(), B = G(), W = G([]), $ = G(), ne = G(), [A, I] = k(0), j = D((ue) => {
47208
+ ), [d, u] = k(), [h, p] = k(1), [f, m] = k(), [v, C] = k(!1), [w, b] = k(!1), [x, y] = k(!1), F = G(null), [S, R] = k(), E = V(() => e.isForceWrapper(), [e]), T = V(() => e.getCellAriaRole(), [e]), D = G(null), M = G(null), N = G(null), Z = G(), O = G(), B = G(), W = G([]), $ = G(), ne = G(), [A, I] = k(0), j = P((ue) => {
47209
47209
  ne.current = ue, I((Ie) => Ie + 1);
47210
- }, []), Z = l != null && (v || x || w) && (d == null || !!d.popup), oe = E || Z, xe = V(() => e.getCellValueClass(), [e]), H = D(
47210
+ }, []), Y = l != null && (v || x || w) && (d == null || !!d.popup), oe = E || Y, xe = V(() => e.getCellValueClass(), [e]), H = P(
47211
47211
  (ue) => {
47212
- if (N.current = ue, ue) {
47212
+ if (O.current = ue, ue) {
47213
47213
  const Ie = ue.isCancelBeforeStart && ue.isCancelBeforeStart();
47214
47214
  setTimeout(() => {
47215
47215
  Ie ? (e.stopEditing(!0), e.focusCell(!0)) : (e.cellEditorAttached(), e.enableEditorTooltipFeature(ue));
@@ -47218,15 +47218,15 @@ var UO = 1e3, $O = class {
47218
47218
  },
47219
47219
  [e]
47220
47220
  ), le = G();
47221
- le.current || (le.current = new Ur(() => P.current));
47221
+ le.current || (le.current = new Ur(() => D.current));
47222
47222
  const Oe = !!d && !d.popup;
47223
47223
  ub(
47224
47224
  l,
47225
47225
  oe,
47226
47226
  ne.current,
47227
47227
  A,
47228
- Y,
47229
- P,
47228
+ Z,
47229
+ D,
47230
47230
  Oe
47231
47231
  );
47232
47232
  const ee = G();
@@ -47236,9 +47236,9 @@ var UO = 1e3, $O = class {
47236
47236
  return;
47237
47237
  $.current?.refreshVisibility();
47238
47238
  const ke = ue.compDetails, Ae = Ie.compDetails;
47239
- if (ke.componentClass != Ae.componentClass || L.current?.refresh == null)
47239
+ if (ke.componentClass != Ae.componentClass || N.current?.refresh == null)
47240
47240
  return;
47241
- L.current.refresh(Ae.params) != !0 && p((Ne) => Ne + 1);
47241
+ N.current.refresh(Ae.params) != !0 && p((Ne) => Ne + 1);
47242
47242
  }, [l]), hi(() => {
47243
47243
  if (!(d && !d.compDetails.componentFromFramework) || n.isDestroyed())
47244
47244
  return;
@@ -47247,7 +47247,7 @@ var UO = 1e3, $O = class {
47247
47247
  if (!ye)
47248
47248
  return;
47249
47249
  const Ne = ye.getGui();
47250
- H(ye), ke || ((E ? B : P).current?.appendChild(Ne), ye.afterGuiAttached?.()), R(ye);
47250
+ H(ye), ke || ((E ? B : D).current?.appendChild(Ne), ye.afterGuiAttached?.()), R(ye);
47251
47251
  }), () => {
47252
47252
  Ae.then((ye) => {
47253
47253
  const Ne = ye.getGui();
@@ -47255,7 +47255,7 @@ var UO = 1e3, $O = class {
47255
47255
  });
47256
47256
  };
47257
47257
  }, [d]);
47258
- const ae = D(
47258
+ const ae = P(
47259
47259
  (ue) => {
47260
47260
  if (B.current = ue, !ue || n.isDestroyed() || !e.isAlive()) {
47261
47261
  const Ae = W.current;
@@ -47273,8 +47273,8 @@ var UO = 1e3, $O = class {
47273
47273
  v && ke(e.createSelectionCheckbox()), x && ke(e.createDndSource()), w && (Ie = e.createRowDragComp(), $.current = Ie, Ie && (ke(Ie), Ie.refreshVisibility()));
47274
47274
  },
47275
47275
  [e, n, x, w, v]
47276
- ), q = D(() => {
47277
- const ue = !e.isCellSpanning() || M.current, Ie = P.current;
47276
+ ), q = P(() => {
47277
+ const ue = !e.isCellSpanning() || M.current, Ie = D.current;
47278
47278
  if (!Ie || !ue || !e || !e.isAlive() || n.isDestroyed()) {
47279
47279
  a.current = n.destroyBean(a.current);
47280
47280
  return;
@@ -47283,16 +47283,16 @@ var UO = 1e3, $O = class {
47283
47283
  const ke = {
47284
47284
  toggleCss: (ye, Ne) => le.current.toggleCss(ye, Ne),
47285
47285
  setUserStyles: (ye) => m(ye),
47286
- getFocusableElement: () => P.current,
47286
+ getFocusableElement: () => D.current,
47287
47287
  setIncludeSelection: (ye) => C(ye),
47288
47288
  setIncludeRowDrag: (ye) => b(ye),
47289
47289
  setIncludeDndSource: (ye) => y(ye),
47290
47290
  setRowResizerElement: (ye) => {
47291
- F.current && ss(F.current), F.current = ye, ye && P.current && P.current.appendChild(ye);
47291
+ F.current && ss(F.current), F.current = ye, ye && D.current && D.current.appendChild(ye);
47292
47292
  },
47293
- getCellEditor: () => N.current ?? null,
47294
- getCellRenderer: () => L.current ?? Y.current,
47295
- getParentOfValue: () => ne.current ?? B.current ?? P.current,
47293
+ getCellEditor: () => O.current ?? null,
47294
+ getCellRenderer: () => N.current ?? Z.current,
47295
+ getParentOfValue: () => ne.current ?? B.current ?? D.current,
47296
47296
  setRenderDetails: (ye, Ne, ze) => {
47297
47297
  const Vt = () => {
47298
47298
  c((Xe) => Xe?.compDetails !== ye || Xe?.value !== Ne || Xe?.force !== ze ? {
@@ -47327,10 +47327,10 @@ var UO = 1e3, $O = class {
47327
47327
  compProxy: Xe
47328
47328
  }), Ne || c(void 0);
47329
47329
  } else
47330
- e.hasBrowserFocus() && ke.getFocusableElement().focus({ preventScroll: !0 }), N.current = void 0, u(void 0);
47330
+ e.hasBrowserFocus() && ke.getFocusableElement().focus({ preventScroll: !0 }), O.current = void 0, u(void 0);
47331
47331
  },
47332
47332
  refreshEditStyles: (ye, Ne) => {
47333
- if (!P.current)
47333
+ if (!D.current)
47334
47334
  return;
47335
47335
  const { current: ze } = le;
47336
47336
  ze.toggleCss("ag-cell-value", !oe), ze.toggleCss("ag-cell-inline-editing", !!ye && !Ne), ze.toggleCss("ag-cell-popup-editing", !!ye && !!Ne), ze.toggleCss("ag-cell-not-inline-editing", !ye || !!Ne);
@@ -47345,13 +47345,13 @@ var UO = 1e3, $O = class {
47345
47345
  i,
47346
47346
  a.current
47347
47347
  );
47348
- }, []), fe = D((ue) => {
47349
- P.current = ue, q();
47350
- }, []), _ = D((ue) => {
47348
+ }, []), fe = P((ue) => {
47349
+ D.current = ue, q();
47350
+ }, []), _ = P((ue) => {
47351
47351
  M.current = ue, q();
47352
47352
  }, []), he = V(() => !!(l?.compDetails?.componentFromFramework && Lo(l.compDetails.componentClass)), [l]);
47353
47353
  hi(() => {
47354
- if (!P.current)
47354
+ if (!D.current)
47355
47355
  return;
47356
47356
  const { current: ue } = le;
47357
47357
  ue.toggleCss("ag-cell-value", !oe), ue.toggleCss("ag-cell-inline-editing", !!d && !d.popup), ue.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), ue.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
@@ -47362,10 +47362,10 @@ var UO = 1e3, $O = class {
47362
47362
  return Ie?.toString?.() ?? Ie;
47363
47363
  if (ue.componentFromFramework) {
47364
47364
  const ke = ue.componentClass;
47365
- return /* @__PURE__ */ Q.createElement(x0, { fallback: /* @__PURE__ */ Q.createElement(gN, { cellCtrl: e, parent: P }) }, he ? /* @__PURE__ */ Q.createElement(ke, { ...ue.params, key: h }) : /* @__PURE__ */ Q.createElement(ke, { ...ue.params, key: h, ref: L }));
47365
+ return /* @__PURE__ */ Q.createElement(x0, { fallback: /* @__PURE__ */ Q.createElement(gN, { cellCtrl: e, parent: D }) }, he ? /* @__PURE__ */ Q.createElement(ke, { ...ue.params, key: h }) : /* @__PURE__ */ Q.createElement(ke, { ...ue.params, key: h, ref: N }));
47366
47366
  }
47367
47367
  }, Te = () => {
47368
- const ue = () => l == null ? null : oe ? /* @__PURE__ */ Q.createElement("span", { role: "presentation", id: `cell-${r}`, className: xe, ref: j }, ve()) : ve(), Ie = (ke) => hN(ke, H, P.current, e, S);
47368
+ const ue = () => l == null ? null : oe ? /* @__PURE__ */ Q.createElement("span", { role: "presentation", id: `cell-${r}`, className: xe, ref: j }, ve()) : ve(), Ie = (ke) => hN(ke, H, D.current, e, S);
47369
47369
  return d != null ? d.popup ? /* @__PURE__ */ Q.createElement(Q.Fragment, null, ue(), Ie(d)) : Ie(d) : ue();
47370
47370
  }, De = () => /* @__PURE__ */ Q.createElement("div", { ref: fe, style: f, role: T, "col-id": o }, oe ? /* @__PURE__ */ Q.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: ae }, Te()) : Te());
47371
47371
  return e.isCellSpanning() ? /* @__PURE__ */ Q.createElement("div", { ref: _, className: "ag-spanned-cell-wrapper", role: "presentation" }, De()) : De();
@@ -47376,25 +47376,25 @@ var UO = 1e3, $O = class {
47376
47376
  () => c ? e.getInitialRowTop(t) : void 0
47377
47377
  ), [E, T] = k(
47378
47378
  () => c ? e.getInitialTransform(t) : void 0
47379
- ), P = G(null), M = G(), L = G(), Y = G(!1), [N, B] = k(0);
47379
+ ), D = G(null), M = G(), N = G(), Z = G(!1), [O, B] = k(0);
47380
47380
  be(() => {
47381
- if (Y.current || !y || N > 10)
47381
+ if (Z.current || !y || O > 10)
47382
47382
  return;
47383
- const ae = P.current?.firstChild;
47384
- ae ? (e.setupDetailRowAutoHeight(ae), Y.current = !0) : B((q) => q + 1);
47385
- }, [y, N]);
47383
+ const ae = D.current?.firstChild;
47384
+ ae ? (e.setupDetailRowAutoHeight(ae), Z.current = !0) : B((q) => q + 1);
47385
+ }, [y, O]);
47386
47386
  const W = G();
47387
- W.current || (W.current = new Ur(() => P.current));
47387
+ W.current || (W.current = new Ur(() => D.current));
47388
47388
  const $ = G(() => {
47389
- }), ne = D((ae) => ($.current = ae, () => {
47389
+ }), ne = P((ae) => ($.current = ae, () => {
47390
47390
  $.current = () => {
47391
47391
  };
47392
47392
  }), []), A = PO(
47393
47393
  ne,
47394
47394
  () => w.current,
47395
47395
  []
47396
- ), I = o ? A : b, j = D((ae) => {
47397
- if (P.current = ae, r.current = ae ? i.createBean(new Ao()) : i.destroyBean(r.current), !ae) {
47396
+ ), I = o ? A : b, j = P((ae) => {
47397
+ if (D.current = ae, r.current = ae ? i.createBean(new Ao()) : i.destroyBean(r.current), !ae) {
47398
47398
  e.unsetComp(t);
47399
47399
  return;
47400
47400
  }
@@ -47420,13 +47420,13 @@ var UO = 1e3, $O = class {
47420
47420
  ve !== he && (w.current = ve, o ? $.current() : Nr(_, () => x(ve)));
47421
47421
  },
47422
47422
  showFullWidth: (fe) => {
47423
- L.current = fe.params, F(fe);
47423
+ N.current = fe.params, F(fe);
47424
47424
  },
47425
47425
  getFullWidthCellRenderer: () => M.current,
47426
- getFullWidthCellRendererParams: () => L.current,
47426
+ getFullWidthCellRendererParams: () => N.current,
47427
47427
  refreshFullWidth: (fe) => {
47428
47428
  const _ = fe();
47429
- return L.current = _, le.current ? (F((he) => ({
47429
+ return N.current = _, le.current ? (F((he) => ({
47430
47430
  ...he,
47431
47431
  params: _
47432
47432
  })), !0) : !M.current || !M.current.refresh ? !1 : M.current.refresh(_);
@@ -47435,10 +47435,10 @@ var UO = 1e3, $O = class {
47435
47435
  e.setComp(q, ae, t, r.current);
47436
47436
  }, []);
47437
47437
  hi(
47438
- () => Xr(y, i, P.current, M),
47438
+ () => Xr(y, i, D.current, M),
47439
47439
  [y]
47440
47440
  );
47441
- const Z = V(() => {
47441
+ const Y = V(() => {
47442
47442
  const ae = { top: S, transform: E };
47443
47443
  return Object.assign(ae, v), ae;
47444
47444
  }, [S, E, v]), oe = l && y?.componentFromFramework, xe = !l && I != null, H = V(() => !!(y?.componentFromFramework && Lo(y.componentClass)), [y]), le = G(!1);
@@ -47462,7 +47462,7 @@ var UO = 1e3, $O = class {
47462
47462
  {
47463
47463
  ref: j,
47464
47464
  role: "row",
47465
- style: Z,
47465
+ style: Y,
47466
47466
  "row-index": d,
47467
47467
  "row-id": h,
47468
47468
  "row-business-key": f
@@ -47472,12 +47472,12 @@ var UO = 1e3, $O = class {
47472
47472
  }, qm = kt(vN), CN = ({ name: e }) => {
47473
47473
  const { context: t, gos: i } = rt(At), s = V(() => Yr(e), [e]), n = G(null), o = G(null), r = G(null), a = G([]), l = G([]), [c, d] = k(() => []), u = !!i.get("enableCellSpan") && !!s.getSpannedRowCtrls, h = G([]), p = G([]), [f, m] = k(() => []), v = G(!1), C = G(), w = V(() => ni("ag-viewport", gw(e)), [e]), b = V(() => ni(fw(e)), [e]), x = V(() => ni("ag-spanning-container", QE(e)), [e]), y = s.type === "center" || u, F = y ? n : o;
47474
47474
  Xs(" AG Row Container " + e + " ", F);
47475
- const S = D(() => {
47476
- const N = !y || n.current != null, B = o.current != null, W = !u || r.current != null;
47477
- return N && B && W;
47478
- }, []), R = D(() => n.current == null && o.current == null && r.current == null, []), E = D(() => {
47475
+ const S = P(() => {
47476
+ const O = !y || n.current != null, B = o.current != null, W = !u || r.current != null;
47477
+ return O && B && W;
47478
+ }, []), R = P(() => n.current == null && o.current == null && r.current == null, []), E = P(() => {
47479
47479
  if (R() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() && S()) {
47480
- const N = ($) => {
47480
+ const O = ($) => {
47481
47481
  const ne = Zl(
47482
47482
  l.current,
47483
47483
  a.current,
@@ -47500,14 +47500,14 @@ var UO = 1e3, $O = class {
47500
47500
  },
47501
47501
  setRowCtrls: ({ rowCtrls: $, useFlushSync: ne }) => {
47502
47502
  const A = !!ne && a.current.length > 0 && $.length > 0;
47503
- a.current = $, N(A);
47503
+ a.current = $, O(A);
47504
47504
  },
47505
47505
  setSpannedRowCtrls: ($, ne) => {
47506
47506
  const A = !!ne && h.current.length > 0 && $.length > 0;
47507
47507
  h.current = $, B(A);
47508
47508
  },
47509
47509
  setDomOrder: ($) => {
47510
- v.current != $ && (v.current = $, N(!1));
47510
+ v.current != $ && (v.current = $, O(!1));
47511
47511
  },
47512
47512
  setContainerWidth: ($) => {
47513
47513
  o.current && (o.current.style.width = $);
@@ -47523,40 +47523,40 @@ var UO = 1e3, $O = class {
47523
47523
  n.current
47524
47524
  );
47525
47525
  }
47526
- }, [S, R]), T = D(
47527
- (N) => {
47528
- o.current = N, E();
47526
+ }, [S, R]), T = P(
47527
+ (O) => {
47528
+ o.current = O, E();
47529
47529
  },
47530
47530
  [E]
47531
- ), P = D(
47532
- (N) => {
47533
- r.current = N, E();
47531
+ ), D = P(
47532
+ (O) => {
47533
+ r.current = O, E();
47534
47534
  },
47535
47535
  [E]
47536
- ), M = D(
47537
- (N) => {
47538
- n.current = N, E();
47536
+ ), M = P(
47537
+ (O) => {
47538
+ n.current = O, E();
47539
47539
  },
47540
47540
  [E]
47541
- ), L = () => /* @__PURE__ */ Q.createElement(
47541
+ ), N = () => /* @__PURE__ */ Q.createElement(
47542
47542
  "div",
47543
47543
  {
47544
47544
  className: b,
47545
47545
  ref: T,
47546
47546
  role: y ? "presentation" : "rowgroup"
47547
47547
  },
47548
- c.map((N) => /* @__PURE__ */ Q.createElement(qm, { rowCtrl: N, containerType: s.type, key: N.instanceId }))
47548
+ c.map((O) => /* @__PURE__ */ Q.createElement(qm, { rowCtrl: O, containerType: s.type, key: O.instanceId }))
47549
47549
  );
47550
47550
  if (!y)
47551
- return L();
47552
- const Y = () => /* @__PURE__ */ Q.createElement("div", { className: x, ref: P, role: "presentation" }, f.map((N) => /* @__PURE__ */ Q.createElement(qm, { rowCtrl: N, containerType: s.type, key: N.instanceId })));
47553
- return /* @__PURE__ */ Q.createElement("div", { className: w, ref: M, role: "rowgroup" }, L(), u ? Y() : null);
47551
+ return N();
47552
+ const Z = () => /* @__PURE__ */ Q.createElement("div", { className: x, ref: D, role: "presentation" }, f.map((O) => /* @__PURE__ */ Q.createElement(qm, { rowCtrl: O, containerType: s.type, key: O.instanceId })));
47553
+ return /* @__PURE__ */ Q.createElement("div", { className: w, ref: M, role: "rowgroup" }, N(), u ? Z() : null);
47554
47554
  }, wN = kt(CN), bN = () => {
47555
- const e = rt(At), { context: t, overlays: i } = e, [s, n] = k(""), [o, r] = k(0), [a, l] = k(0), [c, d] = k("0px"), [u, h] = k("0px"), [p, f] = k("100%"), [m, v] = k("0px"), [C, w] = k("0px"), [b, x] = k("100%"), [y, F] = k(!0), [S, R] = k(!0), [E, T] = k(null), [P, M] = k(""), [L, Y] = k(null), [N, B] = k("ag-layout-normal"), W = G();
47555
+ const e = rt(At), { context: t, overlays: i } = e, [s, n] = k(""), [o, r] = k(0), [a, l] = k(0), [c, d] = k("0px"), [u, h] = k("0px"), [p, f] = k("100%"), [m, v] = k("0px"), [C, w] = k("0px"), [b, x] = k("100%"), [y, F] = k(!0), [S, R] = k(!0), [E, T] = k(null), [D, M] = k(""), [N, Z] = k(null), [O, B] = k("ag-layout-normal"), W = G();
47556
47556
  W.current || (W.current = new Ur(() => $.current));
47557
- const $ = G(null), ne = G(null), A = G(null), I = G(null), j = G(null), Z = G(null), oe = G(null), xe = G([]), H = G([]);
47558
- Xs(" AG Grid Body ", $), Xs(" AG Pinned Top ", ne), Xs(" AG Sticky Top ", A), Xs(" AG Middle ", Z), Xs(" AG Pinned Bottom ", oe);
47559
- const le = D((Ae) => {
47557
+ const $ = G(null), ne = G(null), A = G(null), I = G(null), j = G(null), Y = G(null), oe = G(null), xe = G([]), H = G([]);
47558
+ Xs(" AG Grid Body ", $), Xs(" AG Pinned Top ", ne), Xs(" AG Sticky Top ", A), Xs(" AG Middle ", Y), Xs(" AG Pinned Bottom ", oe);
47559
+ const le = P((Ae) => {
47560
47560
  if ($.current = Ae, !Ae || t.isDestroyed()) {
47561
47561
  xe.current = t.destroyBeans(xe.current);
47562
47562
  for (const U of H.current)
@@ -47594,13 +47594,13 @@ var UO = 1e3, $O = class {
47594
47594
  updateLayoutClasses: B,
47595
47595
  setAlwaysVerticalScrollClass: T,
47596
47596
  setPinnedTopBottomOverflowY: M,
47597
- setCellSelectableCss: (U, Me) => Y(Me ? U : null),
47597
+ setCellSelectableCss: (U, Me) => Z(Me ? U : null),
47598
47598
  setBodyViewportWidth: (U) => {
47599
- Z.current && (Z.current.style.width = U);
47599
+ Y.current && (Y.current.style.width = U);
47600
47600
  },
47601
47601
  registerBodyViewportResizeListener: (U) => {
47602
- if (Z.current) {
47603
- const Me = as(e, Z.current, U);
47602
+ if (Y.current) {
47603
+ const Me = as(e, Y.current, U);
47604
47604
  H.current.push(() => Me());
47605
47605
  }
47606
47606
  },
@@ -47612,37 +47612,37 @@ var UO = 1e3, $O = class {
47612
47612
  xe.current.push(Rt), Rt.setComp(
47613
47613
  Xe,
47614
47614
  Ae,
47615
- Z.current,
47615
+ Y.current,
47616
47616
  ne.current,
47617
47617
  oe.current,
47618
47618
  A.current,
47619
47619
  I.current
47620
47620
  );
47621
- }, []), Oe = V(() => ni("ag-root", "ag-unselectable", N), [N]), ee = V(
47621
+ }, []), Oe = V(() => ni("ag-root", "ag-unselectable", O), [O]), ee = V(
47622
47622
  () => ni(
47623
47623
  "ag-body-viewport",
47624
47624
  s,
47625
- N,
47625
+ O,
47626
47626
  E,
47627
- L
47627
+ N
47628
47628
  ),
47629
- [s, N, E, L]
47630
- ), ae = V(() => ni("ag-body", N), [N]), q = V(
47631
- () => ni("ag-floating-top", y ? "ag-invisible" : null, L),
47632
- [L, y]
47633
- ), fe = V(() => ni("ag-sticky-top", L), [L]), _ = V(
47634
- () => ni("ag-sticky-bottom", m === "0px" ? "ag-invisible" : null, L),
47635
- [L, m]
47629
+ [s, O, E, N]
47630
+ ), ae = V(() => ni("ag-body", O), [O]), q = V(
47631
+ () => ni("ag-floating-top", y ? "ag-invisible" : null, N),
47632
+ [N, y]
47633
+ ), fe = V(() => ni("ag-sticky-top", N), [N]), _ = V(
47634
+ () => ni("ag-sticky-bottom", m === "0px" ? "ag-invisible" : null, N),
47635
+ [N, m]
47636
47636
  ), he = V(
47637
- () => ni("ag-floating-bottom", S ? "ag-invisible" : null, L),
47638
- [L, S]
47637
+ () => ni("ag-floating-bottom", S ? "ag-invisible" : null, N),
47638
+ [N, S]
47639
47639
  ), ve = V(
47640
47640
  () => ({
47641
47641
  height: o,
47642
47642
  minHeight: o,
47643
- overflowY: P
47643
+ overflowY: D
47644
47644
  }),
47645
- [o, P]
47645
+ [o, D]
47646
47646
  ), Te = V(
47647
47647
  () => ({
47648
47648
  height: c,
@@ -47661,9 +47661,9 @@ var UO = 1e3, $O = class {
47661
47661
  () => ({
47662
47662
  height: a,
47663
47663
  minHeight: a,
47664
- overflowY: P
47664
+ overflowY: D
47665
47665
  }),
47666
- [a, P]
47666
+ [a, D]
47667
47667
  ), Ie = (Ae) => /* @__PURE__ */ Q.createElement(wN, { name: Ae, key: `${Ae}-container` }), ke = ({
47668
47668
  section: Ae,
47669
47669
  children: ye,
@@ -47676,7 +47676,7 @@ var UO = 1e3, $O = class {
47676
47676
  style: ve,
47677
47677
  children: ["topLeft", "topCenter", "topRight", "topFullWidth"]
47678
47678
  }), /* @__PURE__ */ Q.createElement("div", { className: ae, ref: j, role: "presentation" }, ke({
47679
- section: Z,
47679
+ section: Y,
47680
47680
  className: ee,
47681
47681
  children: ["left", "center", "right", "fullWidth"]
47682
47682
  })), ke({
@@ -47706,7 +47706,7 @@ var UO = 1e3, $O = class {
47706
47706
  u.current?.forceFocusOutOfContainer(C);
47707
47707
  }
47708
47708
  }));
47709
- const p = D(() => {
47709
+ const p = P(() => {
47710
47710
  const C = c.current, w = d.current;
47711
47711
  if (!C && !w || l.isDestroyed()) {
47712
47712
  u.current = l.destroyBean(u.current);
@@ -47729,12 +47729,12 @@ var UO = 1e3, $O = class {
47729
47729
  })
47730
47730
  );
47731
47731
  }
47732
- }, []), f = D(
47732
+ }, []), f = P(
47733
47733
  (C) => {
47734
47734
  c.current = C, p();
47735
47735
  },
47736
47736
  [p]
47737
- ), m = D(
47737
+ ), m = P(
47738
47738
  (C) => {
47739
47739
  d.current = C, p();
47740
47740
  },
@@ -47753,40 +47753,40 @@ var UO = 1e3, $O = class {
47753
47753
  return /* @__PURE__ */ Q.createElement(Q.Fragment, null, v("top"), i, v("bottom"));
47754
47754
  }, SN = yh(yN), RN = kt(SN), FN = ({ context: e }) => {
47755
47755
  const [t, i] = k(""), [s, n] = k(""), [o, r] = k(null), [a, l] = k(null), [c, d] = k(!1), [u, h] = k(), p = G(), f = G(null), m = G(), [v, C] = k(null), w = G(() => {
47756
- }), b = G(), x = G([]), y = D(() => {
47756
+ }), b = G(), x = G([]), y = P(() => {
47757
47757
  }, []);
47758
47758
  Xs(" AG Grid ", f);
47759
- const F = D((M) => {
47759
+ const F = P((M) => {
47760
47760
  if (f.current = M, p.current = M ? e.createBean(new m5()) : e.destroyBean(p.current), !M || e.isDestroyed())
47761
47761
  return;
47762
- const L = p.current;
47763
- w.current = L.focusInnerElement.bind(L);
47764
- const Y = {
47762
+ const N = p.current;
47763
+ w.current = N.focusInnerElement.bind(N);
47764
+ const Z = {
47765
47765
  destroyGridUi: () => {
47766
47766
  },
47767
47767
  // do nothing, as framework users destroy grid by removing the comp
47768
47768
  setRtlClass: i,
47769
- forceFocusOutOfContainer: (N) => {
47770
- if (!N && b.current?.isDisplayed()) {
47771
- b.current.forceFocusOutOfContainer(N);
47769
+ forceFocusOutOfContainer: (O) => {
47770
+ if (!O && b.current?.isDisplayed()) {
47771
+ b.current.forceFocusOutOfContainer(O);
47772
47772
  return;
47773
47773
  }
47774
- m.current?.forceFocusOutOfContainer(N);
47774
+ m.current?.forceFocusOutOfContainer(O);
47775
47775
  },
47776
47776
  updateLayoutClasses: n,
47777
47777
  getFocusableContainers: () => {
47778
- const N = [], B = [], W = f.current?.querySelector(".ag-root");
47778
+ const O = [], B = [], W = f.current?.querySelector(".ag-root");
47779
47779
  for (const ne of x.current) {
47780
47780
  if (!ne.isDisplayed())
47781
47781
  continue;
47782
47782
  const A = ne.getFocusableContainerName();
47783
47783
  if (A === "rowGroupToolbar" || A === "pivotToolbar") {
47784
- N.push(ne);
47784
+ O.push(ne);
47785
47785
  continue;
47786
47786
  }
47787
47787
  B.push(ne);
47788
47788
  }
47789
- const $ = [...N];
47789
+ const $ = [...O];
47790
47790
  return W && $.push({
47791
47791
  getGui: () => W,
47792
47792
  getFocusableContainerName: () => "gridBody"
@@ -47795,16 +47795,16 @@ var UO = 1e3, $O = class {
47795
47795
  setCursor: r,
47796
47796
  setUserSelect: l
47797
47797
  };
47798
- L.setComp(Y, M, M), d(!0);
47798
+ N.setComp(Z, M, M), d(!0);
47799
47799
  }, []);
47800
47800
  be(() => {
47801
- const M = p.current, L = f.current;
47802
- if (!u || !M || !v || !L || e.isDestroyed())
47801
+ const M = p.current, N = f.current;
47802
+ if (!u || !M || !v || !N || e.isDestroyed())
47803
47803
  return;
47804
- const Y = [];
47804
+ const Z = [];
47805
47805
  x.current = [], b.current = void 0;
47806
47806
  const {
47807
- watermarkSelector: N,
47807
+ watermarkSelector: O,
47808
47808
  paginationSelector: B,
47809
47809
  sideBarSelector: W,
47810
47810
  statusBarSelector: $,
@@ -47813,16 +47813,16 @@ var UO = 1e3, $O = class {
47813
47813
  if (ne) {
47814
47814
  const j = e.createBean(
47815
47815
  new ne.component()
47816
- ), Z = j.getGui();
47817
- L.insertAdjacentElement("afterbegin", Z), A.push(Z), Y.push(j), x.current.push(...j.getFocusableContainers?.() ?? []);
47816
+ ), Y = j.getGui();
47817
+ N.insertAdjacentElement("afterbegin", Y), A.push(Y), Z.push(j), x.current.push(...j.getFocusableContainers?.() ?? []);
47818
47818
  }
47819
47819
  if (W) {
47820
- const j = e.createBean(new W.component()), Z = j.getGui(), oe = v.querySelector(".ag-tab-guard-bottom");
47821
- oe && (oe.insertAdjacentElement("beforebegin", Z), A.push(Z)), Y.push(j), x.current.push(j);
47820
+ const j = e.createBean(new W.component()), Y = j.getGui(), oe = v.querySelector(".ag-tab-guard-bottom");
47821
+ oe && (oe.insertAdjacentElement("beforebegin", Y), A.push(Y)), Z.push(j), x.current.push(j);
47822
47822
  }
47823
47823
  const I = (j) => {
47824
- const Z = e.createBean(new j()), oe = Z.getGui();
47825
- return L.insertAdjacentElement("beforeend", oe), A.push(oe), Y.push(Z), Z;
47824
+ const Y = e.createBean(new j()), oe = Y.getGui();
47825
+ return N.insertAdjacentElement("beforeend", oe), A.push(oe), Z.push(Y), Y;
47826
47826
  };
47827
47827
  if ($) {
47828
47828
  const j = I($.component);
@@ -47832,8 +47832,8 @@ var UO = 1e3, $O = class {
47832
47832
  const j = I(B.component);
47833
47833
  b.current = j, x.current.push(j);
47834
47834
  }
47835
- return N && I(N.component), () => {
47836
- e.destroyBeans(Y), x.current = [], b.current = void 0;
47835
+ return O && I(O.component), () => {
47836
+ e.destroyBeans(Z), x.current = [], b.current = void 0;
47837
47837
  for (const j of A)
47838
47838
  j.remove();
47839
47839
  };
@@ -47851,9 +47851,9 @@ var UO = 1e3, $O = class {
47851
47851
  cursor: o ?? ""
47852
47852
  }),
47853
47853
  [a, o]
47854
- ), T = D((M) => {
47854
+ ), T = P((M) => {
47855
47855
  m.current = M, h(M !== null);
47856
- }, []), P = D(() => !p.current?.isFocusable(), []);
47856
+ }, []), D = P(() => !p.current?.isFocusable(), []);
47857
47857
  return /* @__PURE__ */ Q.createElement("div", { ref: F, className: S, style: E, role: "presentation" }, /* @__PURE__ */ Q.createElement("div", { className: R, ref: C, role: "presentation" }, c && v && !e.isDestroyed() && /* @__PURE__ */ Q.createElement(At.Provider, { value: e.getBeans() }, /* @__PURE__ */ Q.createElement(
47858
47858
  RN,
47859
47859
  {
@@ -47862,7 +47862,7 @@ var UO = 1e3, $O = class {
47862
47862
  onTabKeyDown: y,
47863
47863
  gridCtrl: p.current,
47864
47864
  forceFocusOutWhenTabGuardsAreEmpty: !0,
47865
- isEmpty: P
47865
+ isEmpty: D
47866
47866
  },
47867
47867
  // we wait for initialised before rending the children, so GridComp has created and registered with it's
47868
47868
  // GridCtrl before we create the child GridBodyComp. Otherwise the GridBodyComp would initialise first,
@@ -47923,16 +47923,16 @@ var UO = 1e3, $O = class {
47923
47923
  PN(() => {
47924
47924
  v(e.className);
47925
47925
  }, [e.className]);
47926
- const C = D((y) => {
47926
+ const C = P((y) => {
47927
47927
  if (n.current = y, v(e.className), !y) {
47928
- for (const N of r.current)
47929
- N();
47928
+ for (const O of r.current)
47929
+ O();
47930
47930
  r.current.length = 0;
47931
47931
  return;
47932
47932
  }
47933
47933
  const F = [...e.modules ?? [], ...t ?? []];
47934
47934
  i && wC(F)?.setLicenseKey(i), o.current || (o.current = new $O(
47935
- () => f((N) => N + 1),
47935
+ () => f((O) => O + 1),
47936
47936
  e.componentWrappingElement,
47937
47937
  e.maxComponentCreationTimeMs
47938
47938
  ), r.current.push(() => {
@@ -47941,17 +47941,17 @@ var UO = 1e3, $O = class {
47941
47941
  const S = F3(
47942
47942
  e.gridOptions,
47943
47943
  e,
47944
- Object.keys(e).filter((N) => !pb.has(N))
47944
+ Object.keys(e).filter((O) => !pb.has(O))
47945
47945
  ), R = () => {
47946
47946
  if (u.current) {
47947
- const N = () => c.current?.shouldQueueUpdates() ? void 0 : a.current.shift();
47948
- let B = N();
47947
+ const O = () => c.current?.shouldQueueUpdates() ? void 0 : a.current.shift();
47948
+ let B = O();
47949
47949
  for (; B; )
47950
- B(), B = N();
47950
+ B(), B = O();
47951
47951
  }
47952
47952
  }, E = new LN(R);
47953
47953
  c.current = E;
47954
- const T = new DN(), P = {
47954
+ const T = new DN(), D = {
47955
47955
  providedBeanInstances: {
47956
47956
  frameworkCompWrapper: new kN(o.current, S),
47957
47957
  renderStatus: T
@@ -47959,24 +47959,24 @@ var UO = 1e3, $O = class {
47959
47959
  modules: F,
47960
47960
  frameworkOverrides: E,
47961
47961
  setThemeOnGridDiv: !0
47962
- }, M = (N) => {
47963
- p(N), N.createBean(T), r.current.push(() => {
47964
- N.destroy();
47965
- }), N.getBean("ctrlsSvc").whenReady(
47962
+ }, M = (O) => {
47963
+ p(O), O.createBean(T), r.current.push(() => {
47964
+ O.destroy();
47965
+ }), O.getBean("ctrlsSvc").whenReady(
47966
47966
  {
47967
47967
  addDestroyFunc: (B) => {
47968
47968
  r.current.push(B);
47969
47969
  }
47970
47970
  },
47971
47971
  () => {
47972
- if (N.isDestroyed())
47972
+ if (O.isDestroyed())
47973
47973
  return;
47974
47974
  const B = s.current;
47975
47975
  B && e.passGridApi?.(B);
47976
47976
  }
47977
47977
  );
47978
- }, L = (N) => {
47979
- N.getBean("ctrlsSvc").whenReady(
47978
+ }, N = (O) => {
47979
+ O.getBean("ctrlsSvc").whenReady(
47980
47980
  {
47981
47981
  addDestroyFunc: (B) => {
47982
47982
  r.current.push(B);
@@ -47988,20 +47988,20 @@ var UO = 1e3, $O = class {
47988
47988
  a.current.length = 0, u.current = !0;
47989
47989
  }
47990
47990
  );
47991
- }, Y = new h8();
47992
- S.gridId ?? (S.gridId = d.current), s.current = Y.create(
47991
+ }, Z = new h8();
47992
+ S.gridId ?? (S.gridId = d.current), s.current = Z.create(
47993
47993
  y,
47994
47994
  S,
47995
47995
  M,
47996
- L,
47997
- P
47996
+ N,
47997
+ D
47998
47998
  ), r.current.push(() => {
47999
47999
  s.current = void 0;
48000
48000
  }), s.current && (d.current = s.current.getGridId());
48001
48001
  }, []), w = V(() => ({
48002
48002
  height: "100%",
48003
48003
  ...e.containerStyle || {}
48004
- }), [e.containerStyle]), b = D((y) => {
48004
+ }), [e.containerStyle]), b = P((y) => {
48005
48005
  u.current && !c.current?.shouldQueueUpdates() ? y() : a.current.push(y);
48006
48006
  }, []);
48007
48007
  be(() => {
@@ -48093,14 +48093,14 @@ var kN = class extends SO {
48093
48093
  return m.current?.refresh() ?? !1;
48094
48094
  }
48095
48095
  })), e.template && K(230);
48096
- const y = D((S) => {
48096
+ const y = P((S) => {
48097
48097
  if (v.current = S, !S || n.isDestroyed()) {
48098
48098
  m.current = n.destroyBean(m.current), C.current?.();
48099
48099
  return;
48100
48100
  }
48101
48101
  const R = {
48102
- toggleCss: (T, P) => l((M) => M.setClass(T, P)),
48103
- toggleDetailGridCss: (T, P) => d((M) => M.setClass(T, P)),
48102
+ toggleCss: (T, D) => l((M) => M.setClass(T, D)),
48103
+ toggleDetailGridCss: (T, D) => d((M) => M.setClass(T, D)),
48104
48104
  setDetailGrid: (T) => h(T),
48105
48105
  setRowData: (T) => f(T),
48106
48106
  getGui: () => v.current
@@ -48109,14 +48109,14 @@ var kN = class extends SO {
48109
48109
  const T = () => {
48110
48110
  if (v.current == null)
48111
48111
  return;
48112
- const P = v.current.clientHeight;
48113
- P != null && P > 0 && setTimeout(() => {
48114
- e.node.setRowHeight(P), (ot(o) || Mo(o)) && r.onRowHeightChanged();
48112
+ const D = v.current.clientHeight;
48113
+ D != null && D > 0 && setTimeout(() => {
48114
+ e.node.setRowHeight(D), (ot(o) || Mo(o)) && r.onRowHeightChanged();
48115
48115
  }, 0);
48116
48116
  };
48117
48117
  C.current = as(i, S, T), T();
48118
48118
  }
48119
- }, []), F = D((S) => {
48119
+ }, []), F = P((S) => {
48120
48120
  m.current?.registerDetailWithMaster(S);
48121
48121
  }, []);
48122
48122
  return /* @__PURE__ */ Q.createElement("div", { className: b, ref: y }, u && /* @__PURE__ */ Q.createElement(
@@ -48277,7 +48277,7 @@ const Cb = ({
48277
48277
  context: o,
48278
48278
  getReferenceProps: r,
48279
48279
  getFloatingProps: a
48280
- } = vb(Yn, "menu", !!e.disabled), l = D(
48280
+ } = vb(Yn, "menu", !!e.disabled), l = P(
48281
48281
  (c) => (d) => {
48282
48282
  c.disabled || (c.onClick?.({ key: c.key, domEvent: d }), t());
48283
48283
  },
@@ -48398,12 +48398,12 @@ const Cb = ({
48398
48398
  matchReferenceWidth: C = !0,
48399
48399
  maxDropdownHeight: w
48400
48400
  }) => {
48401
- const [b, x] = k(a), y = r !== void 0, F = y ? !!r : b, S = G(null), R = D(
48401
+ const [b, x] = k(a), y = r !== void 0, F = y ? !!r : b, S = G(null), R = P(
48402
48402
  (H) => {
48403
48403
  y || x(H), l?.(H);
48404
48404
  },
48405
48405
  [y, l]
48406
- ), E = Wr(), T = n === void 0, { refs: P, floatingStyles: M, context: L } = sc({
48406
+ ), E = Wr(), T = n === void 0, { refs: D, floatingStyles: M, context: N } = sc({
48407
48407
  placement: n,
48408
48408
  open: F,
48409
48409
  onOpenChange: R,
@@ -48433,14 +48433,14 @@ const Cb = ({
48433
48433
  }
48434
48434
  })
48435
48435
  ]
48436
- }), Y = mx(L, {
48436
+ }), Z = mx(N, {
48437
48437
  enabled: s.includes(ci.Click) && !o
48438
- }), N = Oh(L, {
48438
+ }), O = Oh(N, {
48439
48439
  enabled: s.includes(ci.Hover) && !o,
48440
48440
  move: !1,
48441
48441
  restMs: 40,
48442
48442
  delay: { open: 80, close: 80 }
48443
- }), B = nc(L, {
48443
+ }), B = nc(N, {
48444
48444
  bubbles: !0,
48445
48445
  referencePress: !1,
48446
48446
  outsidePress: (H) => {
@@ -48448,14 +48448,14 @@ const Cb = ({
48448
48448
  const le = H.target;
48449
48449
  return !(p?.current && le instanceof Node && p.current.contains(le));
48450
48450
  }
48451
- }), W = oc(L, { role: "menu" }), { getReferenceProps: $, getFloatingProps: ne } = rc([
48452
- Y,
48453
- N,
48451
+ }), W = oc(N, { role: "menu" }), { getReferenceProps: $, getFloatingProps: ne } = rc([
48452
+ Z,
48453
+ O,
48454
48454
  B,
48455
48455
  W
48456
- ]), A = D(
48456
+ ]), A = P(
48457
48457
  (H, le) => {
48458
- P.setPositionReference({
48458
+ D.setPositionReference({
48459
48459
  getBoundingClientRect: () => ({
48460
48460
  width: 0,
48461
48461
  height: 0,
@@ -48468,8 +48468,8 @@ const Cb = ({
48468
48468
  })
48469
48469
  });
48470
48470
  },
48471
- [P]
48472
- ), I = D(
48471
+ [D]
48472
+ ), I = P(
48473
48473
  (H) => {
48474
48474
  !s.includes(ci.ContextMenu) || o || (H.preventDefault(), v && (A(H.clientX, H.clientY), S.current = document.elementFromPoint(
48475
48475
  H.clientX,
@@ -48477,7 +48477,7 @@ const Cb = ({
48477
48477
  )), R(!0));
48478
48478
  },
48479
48479
  [v, o, R, A, s]
48480
- ), j = D(
48480
+ ), j = P(
48481
48481
  (H) => {
48482
48482
  !v || o || (s.includes(ci.ContextMenu) && F && R(!1), A(H.clientX, H.clientY), S.current = document.elementFromPoint(
48483
48483
  H.clientX,
@@ -48489,7 +48489,7 @@ const Cb = ({
48489
48489
  be(() => {
48490
48490
  o && F && R(!1);
48491
48491
  }, [o, F, R]);
48492
- const Z = D(
48492
+ const Y = P(
48493
48493
  (H) => (le) => {
48494
48494
  H.disabled || (H.onClick?.({ key: H.key, domEvent: le }), t?.onClick?.({ key: H.key, domEvent: le }), R(!1));
48495
48495
  },
@@ -48533,7 +48533,7 @@ const Cb = ({
48533
48533
  H.className
48534
48534
  ),
48535
48535
  disabled: H.disabled,
48536
- onClick: Z(H),
48536
+ onClick: Y(H),
48537
48537
  children: [
48538
48538
  H.icon && /* @__PURE__ */ g.jsx(
48539
48539
  "span",
@@ -48562,13 +48562,13 @@ const Cb = ({
48562
48562
  H.key
48563
48563
  )) }),
48564
48564
  t.footer && /* @__PURE__ */ g.jsx(g.Fragment, { children: typeof t.footer == "function" ? t.footer() : t.footer })
48565
- ] }) : null, [Z, t, i, R]), xe = $({
48565
+ ] }) : null, [Y, t, i, R]), xe = $({
48566
48566
  onContextMenu: I,
48567
48567
  onMouseDown: j
48568
48568
  });
48569
48569
  return be(() => {
48570
48570
  if (!F) return;
48571
- const H = P.reference.current;
48571
+ const H = D.reference.current;
48572
48572
  let le = null;
48573
48573
  if (H instanceof Element ? le = H : S.current instanceof Element && (le = S.current), !le) return;
48574
48574
  const Oe = new IntersectionObserver(
@@ -48578,11 +48578,11 @@ const Cb = ({
48578
48578
  { root: null, threshold: 0 }
48579
48579
  );
48580
48580
  return Oe.observe(le), () => Oe.disconnect();
48581
- }, [F, P.reference, R]), /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
48581
+ }, [F, D.reference, R]), /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
48582
48582
  /* @__PURE__ */ g.jsx(
48583
48583
  "span",
48584
48584
  {
48585
- ref: P.setReference,
48585
+ ref: D.setReference,
48586
48586
  className: de(
48587
48587
  HN,
48588
48588
  o && "!cursor-not-allowed opacity-75",
@@ -48598,7 +48598,7 @@ const Cb = ({
48598
48598
  F && /* @__PURE__ */ g.jsx(ac, { children: /* @__PURE__ */ g.jsx(
48599
48599
  Hh,
48600
48600
  {
48601
- context: L,
48601
+ context: N,
48602
48602
  modal: !1,
48603
48603
  initialFocus: -1,
48604
48604
  returnFocus: !0,
@@ -48606,7 +48606,7 @@ const Cb = ({
48606
48606
  "div",
48607
48607
  {
48608
48608
  id: E,
48609
- ref: P.setFloating,
48609
+ ref: D.setFloating,
48610
48610
  style: M,
48611
48611
  className: de(
48612
48612
  GN,
@@ -48706,18 +48706,18 @@ const yb = ({
48706
48706
  allowDisabledContextMenu: x = !1,
48707
48707
  selectionMode: y
48708
48708
  }) => {
48709
- const [F, S] = k(iu), [R, E] = k(), T = Wr(), P = G(/* @__PURE__ */ new Set()), M = G(
48709
+ const [F, S] = k(iu), [R, E] = k(), T = Wr(), D = G(/* @__PURE__ */ new Set()), M = G(
48710
48710
  void 0
48711
- ), L = V(
48711
+ ), N = V(
48712
48712
  () => ({
48713
48713
  ...tu,
48714
48714
  oddRowBackgroundColor: h ? tu.oddRowBackgroundColor : tu.backgroundColor,
48715
48715
  wrapperBorder: w
48716
48716
  }),
48717
48717
  [h, w]
48718
- ), Y = D((q) => {
48718
+ ), Z = P((q) => {
48719
48719
  q.api.sizeColumnsToFit(), S(iu);
48720
- }, []), N = D(
48720
+ }, []), O = P(
48721
48721
  (q) => {
48722
48722
  if (q.data) {
48723
48723
  const fe = u(q.data), _ = a?.has(fe) ?? !1, he = _ && !x, ve = q.value == null ? "" : String(q.value), Te = s?.(q.data) ?? [];
@@ -48743,21 +48743,21 @@ const yb = ({
48743
48743
  }
48744
48744
  },
48745
48745
  [s, a, u, x]
48746
- ), B = D(
48746
+ ), B = P(
48747
48747
  (q) => q === Zs.API || q === Zs.ROW_DATA_CHANGED,
48748
48748
  []
48749
- ), W = D(
48749
+ ), W = P(
48750
48750
  (q) => {
48751
48751
  if (!R)
48752
48752
  return;
48753
48753
  const _ = (q.selectedNodes || []).map((ve) => ve.data), he = new Set(_.map(u));
48754
- P.current = he, M.current = q.source, B(q.source) || c?.(he, _);
48754
+ D.current = he, M.current = q.source, B(q.source) || c?.(he, _);
48755
48755
  },
48756
48756
  [R, u, B, c]
48757
48757
  ), $ = V(() => KN(
48758
48758
  (q) => W?.(q),
48759
48759
  100
48760
- ), [W]), ne = D(
48760
+ ), [W]), ne = P(
48761
48761
  (q) => {
48762
48762
  if (!q.data) return null;
48763
48763
  const fe = u(q.data), _ = q.node.isSelected(), he = a?.has(fe), ve = `row-select-${fe}`;
@@ -48781,10 +48781,10 @@ const yb = ({
48781
48781
  ) });
48782
48782
  },
48783
48783
  [u, a]
48784
- ), A = D(() => {
48784
+ ), A = P(() => {
48785
48785
  const q = "dial-row-select", fe = "dial-row-select-visible";
48786
48786
  return !l || l.size === 0 ? q : `${q} ${fe}`;
48787
- }, [l]), I = D(() => !l || l.size === 0 ? "dial-row-not-select-header" : A(), [A, l]), j = V(() => {
48787
+ }, [l]), I = P(() => !l || l.size === 0 ? "dial-row-not-select-header" : A(), [A, l]), j = V(() => {
48788
48788
  if (y === fl.SINGLE)
48789
48789
  return {
48790
48790
  ...$N,
@@ -48807,11 +48807,11 @@ const yb = ({
48807
48807
  u,
48808
48808
  A,
48809
48809
  a
48810
- ]), Z = D(
48810
+ ]), Y = P(
48811
48811
  (q) => {
48812
48812
  const fe = typeof r == "function" ? r(q) : !!r;
48813
48813
  if (!q.cellRenderer)
48814
- return { ...q, cellRenderer: N };
48814
+ return { ...q, cellRenderer: O };
48815
48815
  if (!fe)
48816
48816
  return q;
48817
48817
  const _ = q.cellRenderer;
@@ -48822,7 +48822,7 @@ const yb = ({
48822
48822
  const ke = _;
48823
48823
  De = /* @__PURE__ */ g.jsx(ke, { ...ve });
48824
48824
  } else
48825
- De = N(ve);
48825
+ De = O(ve);
48826
48826
  const ue = ve.data ? u(ve.data) : null, Ie = ue ? a?.has(ue) : !1;
48827
48827
  return /* @__PURE__ */ g.jsx(
48828
48828
  Kt,
@@ -48845,18 +48845,18 @@ const yb = ({
48845
48845
  a,
48846
48846
  s,
48847
48847
  u,
48848
- N,
48848
+ O,
48849
48849
  r,
48850
48850
  x
48851
48851
  ]
48852
48852
  ), oe = V(
48853
- () => r ? (e ?? []).map(Z) : e ?? [],
48853
+ () => r ? (e ?? []).map(Y) : e ?? [],
48854
48854
  // eslint-disable-next-line react-hooks/exhaustive-deps
48855
48855
  [
48856
48856
  e,
48857
48857
  r,
48858
48858
  // eslint-disable-next-line react-hooks/exhaustive-deps
48859
- r ? Z : null
48859
+ r ? Y : null
48860
48860
  ]
48861
48861
  ), xe = V(
48862
48862
  () => ({
@@ -48884,7 +48884,7 @@ const yb = ({
48884
48884
  be(() => {
48885
48885
  R && t && R.setGridOption("rowData", t);
48886
48886
  }, [R, t]);
48887
- const le = D(
48887
+ const le = P(
48888
48888
  () => /* @__PURE__ */ g.jsx(
48889
48889
  uc,
48890
48890
  {
@@ -48914,7 +48914,7 @@ const yb = ({
48914
48914
  };
48915
48915
  }, [a, u, y]);
48916
48916
  be(() => {
48917
- R && t && P.current.size && P.current.forEach((q) => {
48917
+ R && t && D.current.size && D.current.forEach((q) => {
48918
48918
  const fe = R.getRowNode(q);
48919
48919
  fe && !fe.isSelected() && fe.setSelected(!0, !1, Zs.API);
48920
48920
  });
@@ -48924,10 +48924,10 @@ const yb = ({
48924
48924
  fe && !fe.isSelected() && fe.setSelected(!0, !1, Zs.API);
48925
48925
  }));
48926
48926
  }, [R, l]);
48927
- const ee = D(
48927
+ const ee = P(
48928
48928
  (q) => q.data ? u(q.data) : "",
48929
48929
  [u]
48930
- ), ae = D(() => {
48930
+ ), ae = P(() => {
48931
48931
  document.querySelectorAll(`.ag-row ${Km}`).forEach((q) => {
48932
48932
  q.setAttribute("aria-description", xu);
48933
48933
  });
@@ -48968,12 +48968,12 @@ const yb = ({
48968
48968
  headerHeight: iu,
48969
48969
  rowHeight: F,
48970
48970
  cellSelection: !1,
48971
- theme: b6.withPart(Q4).withParams({ ...L }),
48971
+ theme: b6.withPart(Q4).withParams({ ...N }),
48972
48972
  autoSizeStrategy: { type: "fitGridWidth" },
48973
48973
  columnDefs: oe,
48974
48974
  defaultColDef: xe,
48975
48975
  selectionColumnDef: j,
48976
- onGridSizeChanged: Y,
48976
+ onGridSizeChanged: Z,
48977
48977
  onGridReady: H,
48978
48978
  loading: C,
48979
48979
  suppressCellFocus: !0,
@@ -49069,31 +49069,31 @@ const Ym = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
49069
49069
  C ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
49070
49070
  ),
49071
49071
  [C]
49072
- ), S = D(() => {
49072
+ ), S = P(() => {
49073
49073
  const T = b.current;
49074
49074
  T && f(T.scrollWidth > T.clientWidth);
49075
- }, []), R = D(() => {
49076
- const T = x.current, P = b.current;
49077
- if (!T || !P) return;
49078
- const M = T.getBoundingClientRect(), L = P.getBoundingClientRect();
49079
- if (M.width === 0 || L.width === 0) return;
49080
- const Y = YN;
49081
- let N = P.scrollLeft;
49082
- if (M.left < L.left + Y)
49083
- N -= L.left + Y - M.left;
49084
- else if (M.right > L.right - Y)
49085
- N += M.right - (L.right - Y);
49075
+ }, []), R = P(() => {
49076
+ const T = x.current, D = b.current;
49077
+ if (!T || !D) return;
49078
+ const M = T.getBoundingClientRect(), N = D.getBoundingClientRect();
49079
+ if (M.width === 0 || N.width === 0) return;
49080
+ const Z = YN;
49081
+ let O = D.scrollLeft;
49082
+ if (M.left < N.left + Z)
49083
+ O -= N.left + Z - M.left;
49084
+ else if (M.right > N.right - Z)
49085
+ O += M.right - (N.right - Z);
49086
49086
  else
49087
49087
  return;
49088
49088
  const B = Math.max(
49089
49089
  0,
49090
- P.scrollWidth - P.clientWidth
49090
+ D.scrollWidth - D.clientWidth
49091
49091
  );
49092
- N = Math.max(0, Math.min(N, B)), N !== P.scrollLeft && P.scrollTo({
49093
- left: N,
49092
+ O = Math.max(0, Math.min(O, B)), O !== D.scrollLeft && D.scrollTo({
49093
+ left: O,
49094
49094
  behavior: "smooth"
49095
49095
  });
49096
- }, []), E = D(
49096
+ }, []), E = P(
49097
49097
  (T) => {
49098
49098
  i(T), T === t && R();
49099
49099
  },
@@ -49101,8 +49101,8 @@ const Ym = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
49101
49101
  );
49102
49102
  return be(() => {
49103
49103
  S();
49104
- const T = new ResizeObserver(() => S()), P = b.current;
49105
- return P && T.observe(P), () => T.disconnect();
49104
+ const T = new ResizeObserver(() => S()), D = b.current;
49105
+ return D && T.observe(D), () => T.disconnect();
49106
49106
  }, [e, S]), be(() => {
49107
49107
  R();
49108
49108
  }, [t, R]), v ? /* @__PURE__ */ g.jsx(
@@ -49126,8 +49126,8 @@ const Ym = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
49126
49126
  {
49127
49127
  tab: T,
49128
49128
  active: T.id === t,
49129
- onClick: (P) => {
49130
- E(P), d(!1);
49129
+ onClick: (D) => {
49130
+ E(D), d(!1);
49131
49131
  },
49132
49132
  className: re(
49133
49133
  "w-full rounded-none h-11 items-center px-6",
@@ -49194,8 +49194,8 @@ const Ym = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
49194
49194
  {
49195
49195
  tab: T,
49196
49196
  active: T.id === t,
49197
- onClick: (P) => {
49198
- E(P), h(!1);
49197
+ onClick: (D) => {
49198
+ E(D), h(!1);
49199
49199
  },
49200
49200
  className: "w-full rounded-none h-8 items-center px-3 py-2"
49201
49201
  },
@@ -49302,7 +49302,7 @@ const Ym = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
49302
49302
  const a = V(() => e?.length ? e : y0.toArray(n).filter(xh).map((d) => {
49303
49303
  const u = d.props, { labelClassName: h, isLast: p, separator: f, ...m } = u;
49304
49304
  return m;
49305
- }), [e, n]), l = D(
49305
+ }), [e, n]), l = P(
49306
49306
  async (d) => {
49307
49307
  const u = parseInt(d.key, 10), h = a[u];
49308
49308
  if (r && !await r()) {
@@ -49534,7 +49534,7 @@ const Ym = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
49534
49534
  i ? "flex-row-reverse" : "flex-row",
49535
49535
  s ? "pointer-events-none" : "",
49536
49536
  s ? i ? "bg-controls-disable" : "bg-layer-4" : i ? "bg-accent-primary" : "bg-layer-4"
49537
- ), a = D(
49537
+ ), a = P(
49538
49538
  (l) => {
49539
49539
  l.stopPropagation(), n?.(!i);
49540
49540
  },
@@ -49749,7 +49749,7 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
49749
49749
  onClick: () => u()
49750
49750
  }
49751
49751
  )
49752
- ] }), b = D(() => r ? /* @__PURE__ */ g.jsx("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ g.jsx(dc, { size: 50 }) }) : p ?? (t ? /* @__PURE__ */ g.jsx(
49752
+ ] }), b = P(() => r ? /* @__PURE__ */ g.jsx("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ g.jsx(dc, { size: 50 }) }) : p ?? (t ? /* @__PURE__ */ g.jsx(
49753
49753
  "div",
49754
49754
  {
49755
49755
  className: de(pH, i),
@@ -49785,44 +49785,44 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
49785
49785
  tagClassName: h,
49786
49786
  onChange: p
49787
49787
  }) => {
49788
- const f = G(null), m = G([]), v = G(null), [C, w] = k(e), [b, x] = k(""), [y, F] = k(!1), [S, R] = k(e.length), E = D((W) => ($) => {
49788
+ const f = G(null), m = G([]), v = G(null), [C, w] = k(e), [b, x] = k(""), [y, F] = k(!1), [S, R] = k(e.length), E = P((W) => ($) => {
49789
49789
  m.current[W] = $;
49790
- }, []), T = D(() => {
49790
+ }, []), T = P(() => {
49791
49791
  if (!c) return;
49792
49792
  const W = f.current;
49793
49793
  if (!W) return;
49794
49794
  const $ = W.offsetWidth;
49795
49795
  if ($ === 0) return;
49796
49796
  const ne = v.current?.offsetWidth ?? 0, I = $ - (d ? 0 : vH) - ru;
49797
- let j = 0, Z = 0;
49797
+ let j = 0, Y = 0;
49798
49798
  for (let oe = 0; oe < C.length; oe++) {
49799
49799
  const xe = m.current[oe];
49800
49800
  if (!xe) continue;
49801
49801
  const H = xe.offsetWidth + ru;
49802
49802
  if (j + H > I) break;
49803
- j += H, Z++;
49803
+ j += H, Y++;
49804
49804
  }
49805
- if (Z < C.length && Z > 0)
49806
- for (; j + ne > I && Z > 0; ) {
49807
- Z--;
49808
- const oe = m.current[Z]?.offsetWidth ?? 0;
49805
+ if (Y < C.length && Y > 0)
49806
+ for (; j + ne > I && Y > 0; ) {
49807
+ Y--;
49808
+ const oe = m.current[Y]?.offsetWidth ?? 0;
49809
49809
  j -= oe + ru;
49810
49810
  }
49811
- R(Z);
49812
- }, [c, d, C.length]), P = (W) => {
49811
+ R(Y);
49812
+ }, [c, d, C.length]), D = (W) => {
49813
49813
  const $ = W.trim().replace(/,$/, "");
49814
49814
  if ($ && !C.includes($)) {
49815
49815
  const ne = [$, ...C];
49816
49816
  w(ne), p?.(ne);
49817
49817
  }
49818
49818
  }, M = (W) => {
49819
- (W.key === "," || W.key === "Enter") && (W.preventDefault(), P(b), x(""));
49820
- }, L = () => {
49821
- b.trim() && (P(b), x(""));
49822
- }, Y = (W) => {
49819
+ (W.key === "," || W.key === "Enter") && (W.preventDefault(), D(b), x(""));
49820
+ }, N = () => {
49821
+ b.trim() && (D(b), x(""));
49822
+ }, Z = (W) => {
49823
49823
  const $ = C.filter((ne, A) => A !== W);
49824
49824
  w($), p?.($);
49825
- }, N = () => r ? /* @__PURE__ */ g.jsx(Si, { text: r }) : o ? /* @__PURE__ */ g.jsx(cc, { text: o }) : null;
49825
+ }, O = () => r ? /* @__PURE__ */ g.jsx(Si, { text: r }) : o ? /* @__PURE__ */ g.jsx(cc, { text: o }) : null;
49826
49826
  be(() => {
49827
49827
  if (c) return;
49828
49828
  const W = new ResizeObserver(() => {
@@ -49861,7 +49861,7 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
49861
49861
  {
49862
49862
  tag: W,
49863
49863
  className: h,
49864
- remove: !l && !d ? () => Y($) : void 0
49864
+ remove: !l && !d ? () => Z($) : void 0
49865
49865
  },
49866
49866
  W + $
49867
49867
  )
@@ -49882,7 +49882,7 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
49882
49882
  value: b,
49883
49883
  onChange: (W) => x(W.target.value),
49884
49884
  onKeyDown: M,
49885
- onBlur: L,
49885
+ onBlur: N,
49886
49886
  className: de(
49887
49887
  "dial-input outline-none !border-none w-full flex-1 !p-1 !h-auto",
49888
49888
  c ? "min-w-0" : "min-w-[100px]"
@@ -49907,7 +49907,7 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
49907
49907
  {
49908
49908
  tag: W,
49909
49909
  className: h,
49910
- remove: !l && !d ? () => Y($) : void 0
49910
+ remove: !l && !d ? () => Z($) : void 0
49911
49911
  }
49912
49912
  )
49913
49913
  },
@@ -49933,7 +49933,7 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
49933
49933
  children: B
49934
49934
  }
49935
49935
  ),
49936
- N()
49936
+ O()
49937
49937
  ] });
49938
49938
  }, wH = ({
49939
49939
  selectedItems: e,
@@ -49968,7 +49968,7 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
49968
49968
  collapseTagOverflow: f = !1,
49969
49969
  iconBefore: m
49970
49970
  }) => {
49971
- const v = Array.isArray(s) && s.length > 0, C = typeof s == "string" && !!s.trim(), w = v || C ? s : u ? void 0 : d, b = i ? void 0 : r, x = D(
49971
+ const v = Array.isArray(s) && s.length > 0, C = typeof s == "string" && !!s.trim(), w = v || C ? s : u ? void 0 : d, b = i ? void 0 : r, x = P(
49972
49972
  (R) => {
49973
49973
  p?.(R.target.value);
49974
49974
  },
@@ -50133,13 +50133,13 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
50133
50133
  id: b,
50134
50134
  size: x = pi.Md
50135
50135
  }) => {
50136
- const [y, F] = k(!1), S = D(() => {
50136
+ const [y, F] = k(!1), S = P(() => {
50137
50137
  i || F(!0);
50138
- }, [i]), R = D(() => {
50138
+ }, [i]), R = P(() => {
50139
50139
  F(!1), c?.();
50140
- }, [c]), E = D(() => {
50140
+ }, [c]), E = P(() => {
50141
50141
  p?.(), R();
50142
- }, [p, R]), T = D(() => {
50142
+ }, [p, R]), T = P(() => {
50143
50143
  h(), R();
50144
50144
  }, [h, R]);
50145
50145
  return /* @__PURE__ */ g.jsxs("div", { className: "flex flex-col gap-1", children: [
@@ -50149,7 +50149,7 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
50149
50149
  {
50150
50150
  disabled: i,
50151
50151
  open: y,
50152
- selectedValue: o ?? n.find((P) => P.id === s)?.name,
50152
+ selectedValue: o ?? n.find((D) => D.id === s)?.name,
50153
50153
  valueClassName: r,
50154
50154
  inputClassName: de(a, "py-2", "px-3"),
50155
50155
  emptyValueText: l,
@@ -50229,7 +50229,7 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
50229
50229
  onClick: () => c()
50230
50230
  }
50231
50231
  )
50232
- ] }), v = D(() => n ? /* @__PURE__ */ g.jsx("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ g.jsx(dc, { size: 50 }) }) : u ?? null, [u, n]);
50232
+ ] }), v = P(() => n ? /* @__PURE__ */ g.jsx("div", { className: "px-6 py-4 h-[120px]", children: /* @__PURE__ */ g.jsx(dc, { size: 50 }) }) : u ?? null, [u, n]);
50233
50233
  return /* @__PURE__ */ g.jsx(
50234
50234
  No,
50235
50235
  {
@@ -50333,32 +50333,32 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
50333
50333
  inputButtonProps: m,
50334
50334
  ...v
50335
50335
  }) => {
50336
- const C = G(null), w = Nh([c, C]), [b, x] = k(!1), y = D(() => {
50337
- const M = C.current;
50338
- M && x(M.scrollWidth > M.clientWidth);
50336
+ const C = G(null), w = Nh([c, C]), [b, x] = k(!1), y = P(() => {
50337
+ const D = C.current;
50338
+ D && x(D.scrollWidth > D.clientWidth);
50339
50339
  }, []);
50340
50340
  be(() => {
50341
50341
  y();
50342
50342
  }, [d, y]), be(() => (window.addEventListener("resize", y), () => window.removeEventListener("resize", y)), [y]), be(() => {
50343
- const M = C.current;
50344
- if (!M) return;
50345
- const L = (Y) => {
50346
- Y.preventDefault();
50343
+ const D = C.current;
50344
+ if (!D) return;
50345
+ const M = (N) => {
50346
+ N.preventDefault();
50347
50347
  };
50348
- return M.addEventListener("wheel", L, { passive: !1 }), () => {
50349
- M.removeEventListener("wheel", L);
50348
+ return D.addEventListener("wheel", M, { passive: !1 }), () => {
50349
+ D.removeEventListener("wheel", M);
50350
50350
  };
50351
50351
  }, []);
50352
- const F = l === "number" || h !== void 0 || f !== void 0, S = (M) => {
50353
- Pb(M, l, h, f);
50354
- }, R = (M) => {
50355
- const L = M.currentTarget.value;
50356
- if (F && L !== "") {
50357
- const Y = parseFloat(L);
50358
- if (isNaN(Y) && L !== "-" && L !== "." || !isNaN(Y) && (h !== void 0 && Y < +h || f !== void 0 && Y > +f))
50352
+ const F = l === "number" || h !== void 0 || f !== void 0, S = (D) => {
50353
+ Pb(D, l, h, f);
50354
+ }, R = (D) => {
50355
+ const M = D.currentTarget.value;
50356
+ if (F && M !== "") {
50357
+ const N = parseFloat(M);
50358
+ if (isNaN(N) && M !== "-" && M !== "." || !isNaN(N) && (h !== void 0 && N < +h || f !== void 0 && N > +f))
50359
50359
  return;
50360
50360
  }
50361
- p?.(L || void 0);
50361
+ p?.(M || void 0);
50362
50362
  }, E = () => /* @__PURE__ */ g.jsxs(
50363
50363
  "div",
50364
50364
  {
@@ -50411,8 +50411,8 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
50411
50411
  m && /* @__PURE__ */ g.jsx(EH, { ...m, disabled: t })
50412
50412
  ]
50413
50413
  }
50414
- ), T = t && l !== "password" || b, P = u || d;
50415
- return T && P ? /* @__PURE__ */ g.jsx(Xt, { tooltip: P, children: E() }) : E();
50414
+ ), T = u || d;
50415
+ return l !== "password" ? /* @__PURE__ */ g.jsx(Xt, { tooltip: b ? T : void 0, children: E() }) : E();
50416
50416
  }, DH = /^0+\.(\d+)?$/, PH = /^0+/, Xm = ({
50417
50417
  integer: e,
50418
50418
  onChange: t,
@@ -50466,7 +50466,7 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
50466
50466
  "aria-label": "show"
50467
50467
  }
50468
50468
  ), MH = ({ ...e }) => {
50469
- const [t, i] = k(!1), s = D((n) => {
50469
+ const [t, i] = k(!1), s = P((n) => {
50470
50470
  i(n);
50471
50471
  }, []);
50472
50472
  return /* @__PURE__ */ g.jsx(
@@ -50503,12 +50503,12 @@ const hH = "flex justify-end gap-2 px-6 py-4", pH = "text-secondary dial-small-1
50503
50503
  be(() => {
50504
50504
  r(i || "");
50505
50505
  }, [i]);
50506
- const a = D(
50506
+ const a = P(
50507
50507
  (u) => {
50508
50508
  r(u || ""), s?.(u || "");
50509
50509
  },
50510
50510
  [s]
50511
- ), l = kH[e], c = D(() => {
50511
+ ), l = kH[e], c = P(() => {
50512
50512
  a("");
50513
50513
  }, [a]), d = V(() => {
50514
50514
  if (o)
@@ -50663,40 +50663,40 @@ const AH = "dial-input flex w-full items-center justify-between gap-2 dial-small
50663
50663
  onClose: R,
50664
50664
  onChange: E,
50665
50665
  inlineSearch: T = !1,
50666
- dismissRef: P,
50666
+ dismissRef: D,
50667
50667
  onFooterClick: M,
50668
- open: L,
50669
- onOpenChange: Y,
50670
- onInlineQueryChange: N,
50668
+ open: N,
50669
+ onOpenChange: Z,
50670
+ onInlineQueryChange: O,
50671
50671
  customMultiSelectTagsRenderer: B
50672
50672
  }) => {
50673
- const W = Wr(), [$, ne] = k(!1), A = L !== void 0, I = A ? !!L : $, j = D(
50673
+ const W = Wr(), [$, ne] = k(!1), A = N !== void 0, I = A ? !!N : $, j = P(
50674
50674
  (U) => {
50675
- A || ne(U), Y?.(U);
50675
+ A || ne(U), Z?.(U);
50676
50676
  },
50677
- [A, Y]
50678
- ), [Z, oe] = k(
50677
+ [A, Z]
50678
+ ), [Y, oe] = k(
50679
50679
  T && l || ""
50680
- ), xe = G(null), H = D(
50680
+ ), xe = G(null), H = P(
50681
50681
  (U) => {
50682
- U !== Z && (oe(U || ""), N?.(U || ""));
50682
+ U !== Y && (oe(U || ""), O?.(U || ""));
50683
50683
  },
50684
- [N, Z]
50684
+ [O, Y]
50685
50685
  ), le = s !== void 0, [Oe, ee] = k(n), ae = le ? s : Oe, q = V(() => t ? Array.isArray(ae) ? ae : [] : typeof ae == "string" ? [ae] : [], [ae, t]), fe = V(() => {
50686
- const U = Z.trim().toLowerCase();
50686
+ const U = Y.trim().toLowerCase();
50687
50687
  return U ? e.filter((Me) => Me.label.toLowerCase().includes(U)) : e;
50688
- }, [e, Z]);
50688
+ }, [e, Y]);
50689
50689
  be(() => {
50690
50690
  !I && !T && H("");
50691
50691
  }, [T, I, H]), be(() => {
50692
50692
  T && !I && l && H(l || "");
50693
50693
  }, [l, T, I, H]);
50694
- const _ = D(
50694
+ const _ = P(
50695
50695
  (U) => {
50696
50696
  le || ee(U), E?.(U);
50697
50697
  },
50698
50698
  [le, E]
50699
- ), he = D(
50699
+ ), he = P(
50700
50700
  (U) => {
50701
50701
  if (t) {
50702
50702
  const Me = new Set(q);
@@ -50705,7 +50705,7 @@ const AH = "dial-input flex w-full items-center justify-between gap-2 dial-small
50705
50705
  }
50706
50706
  if (_(U), T) {
50707
50707
  const Me = e.find((Yt) => Yt.value === U) ?? e.flatMap((Yt) => Yt.children ?? []).find((Yt) => Yt.value === U);
50708
- Me && (H(Me.label), N?.(Me.label));
50708
+ Me && (H(Me.label), O?.(Me.label));
50709
50709
  }
50710
50710
  j(!1);
50711
50711
  },
@@ -50717,9 +50717,9 @@ const AH = "dial-input flex w-full items-center justify-between gap-2 dial-small
50717
50717
  q,
50718
50718
  e,
50719
50719
  H,
50720
- N
50720
+ O
50721
50721
  ]
50722
- ), ve = D(
50722
+ ), ve = P(
50723
50723
  (U, Me) => {
50724
50724
  if (U.stopPropagation(), !t) {
50725
50725
  _("");
@@ -50735,18 +50735,18 @@ const AH = "dial-input flex w-full items-center justify-between gap-2 dial-small
50735
50735
  ), De = V(
50736
50736
  () => Te.filter((U) => q.includes(U.value)).length,
50737
50737
  [Te, q]
50738
- ), ue = D(
50738
+ ), ue = P(
50739
50739
  (U) => {
50740
- T && !t && !U && he(Z), j(U);
50740
+ T && !t && !U && he(Y), j(U);
50741
50741
  },
50742
- [he, T, t, Z, j]
50742
+ [he, T, t, Y, j]
50743
50743
  ), { allSelectedInFiltered: Ie, someSelectedInFiltered: ke } = V(() => {
50744
50744
  const U = Te.length > 0 && De === Te.length;
50745
50745
  return {
50746
50746
  allSelectedInFiltered: U,
50747
50747
  someSelectedInFiltered: De > 0 && !U
50748
50748
  };
50749
- }, [Te, De]), Ae = D(() => {
50749
+ }, [Te, De]), Ae = P(() => {
50750
50750
  if (!(!t || Te.length === 0))
50751
50751
  if (Ie) {
50752
50752
  const U = new Set(Te.map((Me) => Me.value));
@@ -50774,7 +50774,7 @@ const AH = "dial-input flex w-full items-center justify-between gap-2 dial-small
50774
50774
  const Ne = !t && ye ? q[0] : void 0, ze = V(
50775
50775
  () => Ne ? e.find((U) => U.value === Ne) ?? e.flatMap((U) => U.children ?? []).find((U) => U.value === Ne) : void 0,
50776
50776
  [e, Ne]
50777
- ), Vt = D(() => t ? ye ? B?.(
50777
+ ), Vt = P(() => t ? ye ? B?.(
50778
50778
  e,
50779
50779
  q,
50780
50780
  ve
@@ -50807,16 +50807,16 @@ const AH = "dial-input flex w-full items-center justify-between gap-2 dial-small
50807
50807
  ve,
50808
50808
  B
50809
50809
  ]);
50810
- zr(P, () => ({
50810
+ zr(D, () => ({
50811
50811
  dismiss: () => {
50812
50812
  j(!1);
50813
50813
  }
50814
50814
  }));
50815
- const Xe = D(() => {
50815
+ const Xe = P(() => {
50816
50816
  H(
50817
- q.length === 1 ? ze?.label ?? Z : ""
50817
+ q.length === 1 ? ze?.label ?? Y : ""
50818
50818
  );
50819
- }, [Z, q.length, H, ze?.label]), Rt = D(() => {
50819
+ }, [Y, q.length, H, ze?.label]), Rt = P(() => {
50820
50820
  w || (j(!I), T && !t && (Xe(), xe.current?.focus()));
50821
50821
  }, [w, T, I, t, Xe, j]);
50822
50822
  return /* @__PURE__ */ g.jsx(
@@ -50846,7 +50846,7 @@ const AH = "dial-input flex w-full items-center justify-between gap-2 dial-small
50846
50846
  {
50847
50847
  placeholder: u,
50848
50848
  onChange: H,
50849
- value: Z,
50849
+ value: Y,
50850
50850
  id: `search-${i || W}`,
50851
50851
  containerClassName: "w-full"
50852
50852
  }
@@ -51005,7 +51005,7 @@ const AH = "dial-input flex w-full items-center justify-between gap-2 dial-small
51005
51005
  id: `inline-${i || W}`,
51006
51006
  type: "text",
51007
51007
  placeholder: u ?? c,
51008
- value: Z || "",
51008
+ value: Y || "",
51009
51009
  onChange: (U) => H(U.currentTarget.value.trimStart()),
51010
51010
  onFocus: () => !w && j(!0),
51011
51011
  onMouseDown: (U) => {
@@ -51050,7 +51050,7 @@ const AH = "dial-input flex w-full items-center justify-between gap-2 dial-small
51050
51050
  defaultEmptyText: d,
51051
51051
  ...u
51052
51052
  }) => {
51053
- const h = D(() => {
51053
+ const h = P(() => {
51054
51054
  if (!c || Array.isArray(c) && c.length === 0)
51055
51055
  return d ?? "None";
51056
51056
  if (Array.isArray(c))
@@ -51669,7 +51669,7 @@ const JH = function(t, i, s) {
51669
51669
  getIsFileFormatError: d,
51670
51670
  getIsFileSizeError: u
51671
51671
  }) => {
51672
- const h = G(null), p = G(null), [f, m] = k([]), [v, C] = k(!1), [w, b] = k(!1), x = D(
51672
+ const h = G(null), p = G(null), [f, m] = k([]), [v, C] = k(!1), [w, b] = k(!1), x = P(
51673
51673
  (B) => {
51674
51674
  const W = B.target.files;
51675
51675
  if (W && W.length > 0) {
@@ -51678,7 +51678,7 @@ const JH = function(t, i, s) {
51678
51678
  }
51679
51679
  },
51680
51680
  [d, u, e]
51681
- ), y = D(
51681
+ ), y = P(
51682
51682
  (B) => o && B?.length > o,
51683
51683
  [o]
51684
51684
  ), F = V(() => v || w || y(f), [v, w, y, f]), S = () => {
@@ -51695,7 +51695,7 @@ const JH = function(t, i, s) {
51695
51695
  be(() => {
51696
51696
  S();
51697
51697
  }, [n]);
51698
- const [{ isOver: E, canDrop: T }, P] = qv(
51698
+ const [{ isOver: E, canDrop: T }, D] = qv(
51699
51699
  () => ({
51700
51700
  accept: [fg],
51701
51701
  drop(B) {
@@ -51710,26 +51710,26 @@ const JH = function(t, i, s) {
51710
51710
  [x]
51711
51711
  ), M = (B) => {
51712
51712
  (B.key === "Enter" || B.key === "Space") && (B.preventDefault(), p.current?.click());
51713
- }, L = (B) => {
51713
+ }, N = (B) => {
51714
51714
  B?.preventDefault();
51715
51715
  const W = Array.from(B.dataTransfer?.items ?? []);
51716
51716
  C(!!d?.(W)), b(!!u?.(W)), m(W);
51717
- }, Y = (B) => {
51717
+ }, Z = (B) => {
51718
51718
  B.target === B.currentTarget && S();
51719
- }, N = de(
51719
+ }, O = de(
51720
51720
  "border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",
51721
51721
  !T && !F && "border-primary",
51722
51722
  T && (E ? "border-accent-primary" : "border-hover"),
51723
51723
  F && "border-error"
51724
51724
  );
51725
- return P(h), /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
51725
+ return D(h), /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
51726
51726
  /* @__PURE__ */ g.jsxs(
51727
51727
  "div",
51728
51728
  {
51729
- className: N,
51729
+ className: O,
51730
51730
  ref: h,
51731
- onDragOver: L,
51732
- onDragLeave: Y,
51731
+ onDragOver: N,
51732
+ onDragLeave: Z,
51733
51733
  children: [
51734
51734
  /* @__PURE__ */ g.jsxs(
51735
51735
  "label",
@@ -51846,36 +51846,36 @@ const JH = function(t, i, s) {
51846
51846
  }) => {
51847
51847
  const C = G(null), w = () => C.current?.click(), b = () => {
51848
51848
  e([]);
51849
- }, x = D(
51849
+ }, x = P(
51850
51850
  (R) => R?.some(
51851
51851
  (E) => !(h === "/" || h?.toLowerCase()?.includes(E?.type?.toLowerCase()))
51852
51852
  ),
51853
51853
  [h]
51854
- ), y = D(
51854
+ ), y = P(
51855
51855
  (R) => {
51856
51856
  if (!o)
51857
51857
  return !1;
51858
51858
  const E = o * (1024 * 1024);
51859
51859
  return R?.some((T) => {
51860
- const P = T.size;
51861
- return !!P && P > E;
51860
+ const D = T.size;
51861
+ return !!D && D > E;
51862
51862
  });
51863
51863
  },
51864
51864
  [o]
51865
- ), F = D(
51865
+ ), F = P(
51866
51866
  (R) => {
51867
51867
  if (!r || !u)
51868
51868
  return !1;
51869
51869
  const E = r * 1024 * 1024;
51870
- return R.reduce((P, M) => P + M.size, 0) > E;
51870
+ return R.reduce((D, M) => D + M.size, 0) > E;
51871
51871
  },
51872
51872
  [r, u]
51873
- ), S = D(
51873
+ ), S = P(
51874
51874
  (R) => {
51875
51875
  const E = R.target.files;
51876
51876
  if (E && E.length > 0) {
51877
- const T = Array.from(E), P = x(T), M = y(T);
51878
- !P && !M && e([...s || [], ...T]);
51877
+ const T = Array.from(E), D = x(T), M = y(T);
51878
+ !D && !M && e([...s || [], ...T]);
51879
51879
  }
51880
51880
  },
51881
51881
  [x, y, e, s]
@@ -51997,16 +51997,16 @@ const nv = ({
51997
51997
  ft.Replace
51998
51998
  ), [E, T] = k(
51999
51999
  Zt.ReplaceAll
52000
- ), [P, M] = k(
52000
+ ), [D, M] = k(
52001
52001
  new Map(
52002
52002
  o.map((H) => [
52003
52003
  H.path,
52004
52004
  ft.Replace
52005
52005
  ])
52006
52006
  )
52007
- ), [L, Y] = k(
52007
+ ), [N, Z] = k(
52008
52008
  void 0
52009
- ), N = m ? r : a, B = /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
52009
+ ), O = m ? r : a, B = /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
52010
52010
  "Item with the name ",
52011
52011
  /* @__PURE__ */ g.jsxs("span", { className: "text-primary", children: [
52012
52012
  '"',
@@ -52032,8 +52032,8 @@ const nv = ({
52032
52032
  name: H.name,
52033
52033
  path: H.path,
52034
52034
  nodeType: H.nodeType ?? Se.ITEM,
52035
- action: P.get(H.path) || ft.Replace
52036
- })), [o, P]), I = V(() => [
52035
+ action: D.get(H.path) || ft.Replace
52036
+ })), [o, D]), I = V(() => [
52037
52037
  {
52038
52038
  field: "name",
52039
52039
  headerName: p,
@@ -52085,7 +52085,7 @@ const nv = ({
52085
52085
  }
52086
52086
  ], Oe = le.find(
52087
52087
  (ae) => ae.key === H.data.action
52088
- ), ee = L === H.data.path;
52088
+ ), ee = N === H.data.path;
52089
52089
  return /* @__PURE__ */ g.jsx("div", { className: "flex items-center h-full", children: /* @__PURE__ */ g.jsx(
52090
52090
  Kt,
52091
52091
  {
@@ -52100,14 +52100,14 @@ const nv = ({
52100
52100
  H.data.path,
52101
52101
  ae
52102
52102
  ), fe;
52103
- }), Y(void 0);
52103
+ }), Z(void 0);
52104
52104
  }
52105
52105
  },
52106
52106
  placement: "bottom-start",
52107
52107
  matchReferenceWidth: !1,
52108
52108
  allowedPlacements: ["bottom-start", "top-start"],
52109
52109
  onOpenChange: (ae) => {
52110
- Y(ae ? H.data.path : void 0);
52110
+ Z(ae ? H.data.path : void 0);
52111
52111
  },
52112
52112
  children: /* @__PURE__ */ g.jsxs("button", { type: "button", className: "flex items-center gap-2", children: [
52113
52113
  /* @__PURE__ */ g.jsxs("span", { className: "flex items-center gap-2", children: [
@@ -52135,7 +52135,7 @@ const nv = ({
52135
52135
  C,
52136
52136
  w,
52137
52137
  b,
52138
- L
52138
+ N
52139
52139
  ]), j = V(
52140
52140
  () => [
52141
52141
  {
@@ -52172,7 +52172,7 @@ const nv = ({
52172
52172
  I,
52173
52173
  A
52174
52174
  ]
52175
- ), Z = D(() => {
52175
+ ), Y = P(() => {
52176
52176
  R(ft.Replace), T(Zt.ReplaceAll), M(
52177
52177
  new Map(
52178
52178
  o.map((H) => [
@@ -52181,10 +52181,10 @@ const nv = ({
52181
52181
  ])
52182
52182
  )
52183
52183
  );
52184
- }, [o]), oe = D(() => {
52185
- Z(), t();
52186
- }, [Z, t]), xe = D(() => {
52187
- if (Z(), m)
52184
+ }, [o]), oe = P(() => {
52185
+ Y(), t();
52186
+ }, [Y, t]), xe = P(() => {
52187
+ if (Y(), m)
52188
52188
  S === ft.Replace ? i() : s();
52189
52189
  else if (E === Zt.ReplaceAll)
52190
52190
  i();
@@ -52194,13 +52194,13 @@ const nv = ({
52194
52194
  const H = o.map(
52195
52195
  (le) => ({
52196
52196
  file: le,
52197
- action: P.get(le.path) || ft.Replace
52197
+ action: D.get(le.path) || ft.Replace
52198
52198
  })
52199
52199
  );
52200
52200
  n(H);
52201
52201
  }
52202
52202
  }, [
52203
- Z,
52203
+ Y,
52204
52204
  m,
52205
52205
  S,
52206
52206
  i,
@@ -52208,7 +52208,7 @@ const nv = ({
52208
52208
  E,
52209
52209
  n,
52210
52210
  o,
52211
- P
52211
+ D
52212
52212
  ]);
52213
52213
  return /* @__PURE__ */ g.jsx(
52214
52214
  No,
@@ -52217,7 +52217,7 @@ const nv = ({
52217
52217
  onClose: oe,
52218
52218
  size: m ? pi.Sm : pi.Md,
52219
52219
  className: de([!m && "w-[600px]"]),
52220
- header: N,
52220
+ header: O,
52221
52221
  dividers: !1,
52222
52222
  preventKeyboardOnOpen: !0,
52223
52223
  footer: /* @__PURE__ */ g.jsxs("div", { className: "flex justify-end gap-3 py-4 px-6 border-t border-tertiary", children: [
@@ -52260,7 +52260,7 @@ const nv = ({
52260
52260
  be(() => {
52261
52261
  o.current = e;
52262
52262
  }, [e]);
52263
- const r = D(
52263
+ const r = P(
52264
52264
  (l) => {
52265
52265
  if (!l.data || t(
52266
52266
  l.data,
@@ -52306,12 +52306,12 @@ const nv = ({
52306
52306
  }, bG = ({
52307
52307
  onRename: e
52308
52308
  }) => {
52309
- const [t, i] = k(go.Grid), s = D(
52309
+ const [t, i] = k(go.Grid), s = P(
52310
52310
  (o) => {
52311
52311
  e(o), i(go.Grid);
52312
52312
  },
52313
52313
  [e]
52314
- ), n = D(
52314
+ ), n = P(
52315
52315
  (o) => {
52316
52316
  e(o), i(go.Tree);
52317
52317
  },
@@ -55048,12 +55048,12 @@ const LG = (e, t, i, s, n) => {
55048
55048
  if (!o)
55049
55049
  return n ?? `File is too large. Maximum size: ${Br(i)}.`;
55050
55050
  }, OG = (e) => {
55051
- const [t, i] = k(e?.showHiddenFiles ?? !1), s = !!e?.onShowHiddenFilesChange, n = s ? e.showHiddenFiles ?? !1 : t, o = D(
55051
+ const [t, i] = k(e?.showHiddenFiles ?? !1), s = !!e?.onShowHiddenFilesChange, n = s ? e.showHiddenFiles ?? !1 : t, o = P(
55052
55052
  (a) => {
55053
55053
  s ? e?.onShowHiddenFilesChange?.(a) : i(a);
55054
55054
  },
55055
55055
  [s, e]
55056
- ), r = D(() => {
55056
+ ), r = P(() => {
55057
55057
  const a = !n;
55058
55058
  s ? e?.onShowHiddenFilesChange?.(a) : i(a);
55059
55059
  }, [n, s, e]);
@@ -55065,12 +55065,12 @@ const LG = (e, t, i, s, n) => {
55065
55065
  }, NG = (e) => {
55066
55066
  const [t, i] = k(
55067
55067
  e?.collapsed ?? !1
55068
- ), s = !!e?.onCollapseChange, n = s ? e.collapsed ?? !1 : t, o = D(
55068
+ ), s = !!e?.onCollapseChange, n = s ? e.collapsed ?? !1 : t, o = P(
55069
55069
  (a) => {
55070
55070
  s ? e?.onCollapseChange?.(a) : i(a);
55071
55071
  },
55072
55072
  [s, e]
55073
- ), r = D(() => {
55073
+ ), r = P(() => {
55074
55074
  const a = !n;
55075
55075
  s ? e?.onCollapseChange?.(a) : i(a);
55076
55076
  }, [n, s, e]);
@@ -55094,11 +55094,11 @@ const LG = (e, t, i, s, n) => {
55094
55094
  getDestinationFiles: e,
55095
55095
  onResolve: t
55096
55096
  }) => {
55097
- const [i, s] = k([]), [n, o] = k(!1), [r, a] = k(null), l = G(!1), c = D((b) => {
55097
+ const [i, s] = k([]), [n, o] = k(!1), [r, a] = k(null), l = G(!1), c = P((b) => {
55098
55098
  l.current = !0, s(b), o(!0);
55099
- }, []), d = D(() => {
55099
+ }, []), d = P(() => {
55100
55100
  l.current = !1, o(!1), s([]), a(null);
55101
- }, []), u = D(
55101
+ }, []), u = P(
55102
55102
  (b, x) => {
55103
55103
  const y = e(b), F = new Set(y.map(mu)), S = x.filter((R) => F.has(R.name));
55104
55104
  return {
@@ -55107,37 +55107,37 @@ const LG = (e, t, i, s, n) => {
55107
55107
  };
55108
55108
  },
55109
55109
  [e]
55110
- ), h = D(
55110
+ ), h = P(
55111
55111
  (b, x, y, F) => {
55112
55112
  const S = e(b), R = new Set(S.map(mu));
55113
55113
  return x.map((E) => {
55114
- const T = E.name, P = R.has(T), M = y && P ? T : cv(T, R, E.nodeType);
55115
- return (!y || !P) && R.add(M), {
55114
+ const T = E.name, D = R.has(T), M = y && D ? T : cv(T, R, E.nodeType);
55115
+ return (!y || !D) && R.add(M), {
55116
55116
  sourceUrl: E.path,
55117
55117
  destinationUrl: `${b}/${M}`,
55118
- overwrite: y && P,
55118
+ overwrite: y && D,
55119
55119
  nodeType: E.nodeType ?? Se.ITEM,
55120
55120
  ...F ?? {}
55121
55121
  };
55122
55122
  });
55123
55123
  },
55124
55124
  [e]
55125
- ), p = D(
55125
+ ), p = P(
55126
55126
  (b, x, y, F) => {
55127
55127
  const S = e(b), R = new Set(S.map(mu));
55128
55128
  return x.filter((T) => y.get(T.path) !== ft.Cancel).map((T) => {
55129
- const P = y.get(T.path), M = R.has(T.name), L = P === ft.Replace && M, Y = L ? T.name : cv(T.name, R, T.nodeType);
55130
- return L || R.add(Y), {
55129
+ const D = y.get(T.path), M = R.has(T.name), N = D === ft.Replace && M, Z = N ? T.name : cv(T.name, R, T.nodeType);
55130
+ return N || R.add(Z), {
55131
55131
  sourceUrl: T.path,
55132
- destinationUrl: `${b}/${Y}`,
55133
- overwrite: L,
55132
+ destinationUrl: `${b}/${Z}`,
55133
+ overwrite: N,
55134
55134
  nodeType: T.nodeType ?? Se.ITEM,
55135
55135
  ...F ?? {}
55136
55136
  };
55137
55137
  });
55138
55138
  },
55139
55139
  [e]
55140
- ), f = D(
55140
+ ), f = P(
55141
55141
  (b, x, y) => {
55142
55142
  const F = u(b, x);
55143
55143
  return F.hasConflicts && (a({
@@ -55147,7 +55147,7 @@ const LG = (e, t, i, s, n) => {
55147
55147
  }), c(F.conflicts)), F;
55148
55148
  },
55149
55149
  [u, c]
55150
- ), m = D(() => {
55150
+ ), m = P(() => {
55151
55151
  if (!r) return;
55152
55152
  const { files: b, destinationFolder: x, metadata: y } = r, F = h(
55153
55153
  x,
@@ -55161,7 +55161,7 @@ const LG = (e, t, i, s, n) => {
55161
55161
  h,
55162
55162
  t,
55163
55163
  d
55164
- ]), v = D(() => {
55164
+ ]), v = P(() => {
55165
55165
  if (!r) return;
55166
55166
  const { files: b, destinationFolder: x, metadata: y } = r, F = h(
55167
55167
  x,
@@ -55175,7 +55175,7 @@ const LG = (e, t, i, s, n) => {
55175
55175
  h,
55176
55176
  t,
55177
55177
  d
55178
- ]), C = D(() => {
55178
+ ]), C = P(() => {
55179
55179
  if (!r) return;
55180
55180
  const { files: b, destinationFolder: x, metadata: y } = r, F = p(
55181
55181
  x,
@@ -55195,7 +55195,7 @@ const LG = (e, t, i, s, n) => {
55195
55195
  t,
55196
55196
  r,
55197
55197
  p
55198
- ]), w = D(
55198
+ ]), w = P(
55199
55199
  (b) => {
55200
55200
  if (!r) return;
55201
55201
  const { files: x, destinationFolder: y, metadata: F } = r, S = new Map(
@@ -55248,10 +55248,10 @@ const LG = (e, t, i, s, n) => {
55248
55248
  resolveConflictsWithStrategy: R,
55249
55249
  closeConflictResolution: E,
55250
55250
  openConflictResolution: T,
55251
- handleReplaceAll: P,
55251
+ handleReplaceAll: D,
55252
55252
  handleDuplicateAll: M,
55253
- handleCancelAll: L,
55254
- handleDecideForEach: Y
55253
+ handleCancelAll: N,
55254
+ handleDecideForEach: Z
55255
55255
  } = jb({
55256
55256
  getDestinationFiles: e,
55257
55257
  onResolve: (ee, ae) => {
@@ -55261,9 +55261,9 @@ const LG = (e, t, i, s, n) => {
55261
55261
  ae
55262
55262
  ), n?.()));
55263
55263
  }
55264
- }), N = D(() => {
55264
+ }), O = P(() => {
55265
55265
  u([]), p([]), b(null), C(void 0);
55266
- }, []), B = D(
55266
+ }, []), B = P(
55267
55267
  (ee) => {
55268
55268
  const ae = S(ee, d, {
55269
55269
  type: mt.Copy
@@ -55274,7 +55274,7 @@ const LG = (e, t, i, s, n) => {
55274
55274
  d,
55275
55275
  !1
55276
55276
  );
55277
- t?.(q, ee), s?.(), N();
55277
+ t?.(q, ee), s?.(), O();
55278
55278
  }
55279
55279
  },
55280
55280
  [
@@ -55283,9 +55283,9 @@ const LG = (e, t, i, s, n) => {
55283
55283
  R,
55284
55284
  t,
55285
55285
  s,
55286
- N
55286
+ O
55287
55287
  ]
55288
- ), W = D(
55288
+ ), W = P(
55289
55289
  (ee, ae) => {
55290
55290
  const q = ae || (w?.sourceFolder ?? "/");
55291
55291
  if (!S(ee, h, {
@@ -55297,7 +55297,7 @@ const LG = (e, t, i, s, n) => {
55297
55297
  h,
55298
55298
  !0
55299
55299
  );
55300
- i?.(_, q, ee), n?.(), N();
55300
+ i?.(_, q, ee), n?.(), O();
55301
55301
  }
55302
55302
  },
55303
55303
  [
@@ -55306,21 +55306,21 @@ const LG = (e, t, i, s, n) => {
55306
55306
  R,
55307
55307
  i,
55308
55308
  n,
55309
- N,
55309
+ O,
55310
55310
  w
55311
55311
  ]
55312
- ), $ = D(() => {
55313
- P(), N();
55314
- }, [P, N]), ne = D(() => {
55315
- M(), N();
55316
- }, [M, N]), A = D(() => {
55317
- L(), N();
55318
- }, [L, N]), I = D(
55312
+ ), $ = P(() => {
55313
+ D(), O();
55314
+ }, [D, O]), ne = P(() => {
55315
+ M(), O();
55316
+ }, [M, O]), A = P(() => {
55317
+ N(), O();
55318
+ }, [N, O]), I = P(
55319
55319
  (ee) => {
55320
- Y(ee), N();
55320
+ Z(ee), O();
55321
55321
  },
55322
- [Y, N]
55323
- ), j = D(
55322
+ [Z, O]
55323
+ ), j = P(
55324
55324
  (ee) => {
55325
55325
  const ae = ee.at(0)?.parentPath ?? "/", q = R(
55326
55326
  ae,
@@ -55330,21 +55330,21 @@ const LG = (e, t, i, s, n) => {
55330
55330
  t?.(q, ae), o?.();
55331
55331
  },
55332
55332
  [t, o, R]
55333
- ), Z = D(
55333
+ ), Y = P(
55334
55334
  (ee) => {
55335
55335
  m(ee), c(!0);
55336
55336
  },
55337
55337
  []
55338
- ), oe = D(() => {
55339
- c(!1), F.current || N();
55340
- }, [N, F]), [xe, H] = k(), le = D(
55338
+ ), oe = P(() => {
55339
+ c(!1), F.current || O();
55340
+ }, [O, F]), [xe, H] = k(), le = P(
55341
55341
  (ee) => {
55342
55342
  u(ee);
55343
55343
  const ae = ee[0]?.parentPath ?? ee[0]?.folderId;
55344
55344
  C(ae), r && ee.length > 0 ? H(r(ee.length, ee[0]?.name)) : H(void 0);
55345
55345
  },
55346
55346
  [r]
55347
- ), Oe = D(
55347
+ ), Oe = P(
55348
55348
  (ee) => {
55349
55349
  p(ee);
55350
55350
  const ae = ee[0]?.parentPath ?? ee[0]?.folderId;
@@ -55358,7 +55358,7 @@ const LG = (e, t, i, s, n) => {
55358
55358
  return {
55359
55359
  handleDuplicate: j,
55360
55360
  handleCloseDestinationFolderPopup: oe,
55361
- handleOpenDestinationFolderPopup: Z,
55361
+ handleOpenDestinationFolderPopup: Y,
55362
55362
  handleCopyTo: B,
55363
55363
  handleMoveTo: W,
55364
55364
  openDestinationFolderPopup: l,
@@ -55366,7 +55366,7 @@ const LG = (e, t, i, s, n) => {
55366
55366
  destinationFolderTitle: xe,
55367
55367
  handleSetCopiedFiles: le,
55368
55368
  handleSetMovedFiles: Oe,
55369
- clearState: N,
55369
+ clearState: O,
55370
55370
  conflictingFiles: x,
55371
55371
  conflictResolutionOpen: y,
55372
55372
  openConflictResolution: T,
@@ -55385,12 +55385,12 @@ const LG = (e, t, i, s, n) => {
55385
55385
  }) => {
55386
55386
  const n = e !== void 0, [o, r] = k(
55387
55387
  t
55388
- ), a = n ? e : o, l = D(
55388
+ ), a = n ? e : o, l = P(
55389
55389
  (d) => {
55390
55390
  n || r(d), i?.(d);
55391
55391
  },
55392
55392
  [n, i]
55393
- ), c = D(
55393
+ ), c = P(
55394
55394
  (d) => {
55395
55395
  l(d), s?.();
55396
55396
  },
@@ -55405,14 +55405,14 @@ const LG = (e, t, i, s, n) => {
55405
55405
  onDeleteFiles: e,
55406
55406
  onDeleteSuccess: t
55407
55407
  }) => {
55408
- const [i, s] = k(!1), [n, o] = k([]), [r, a] = k(""), l = D(
55408
+ const [i, s] = k(!1), [n, o] = k([]), [r, a] = k(""), l = P(
55409
55409
  (u, h) => {
55410
55410
  o(u), a(h), s(!0);
55411
55411
  },
55412
55412
  []
55413
- ), c = D(() => {
55413
+ ), c = P(() => {
55414
55414
  s(!1), o([]);
55415
- }, []), d = D(() => {
55415
+ }, []), d = P(() => {
55416
55416
  if (e && n.length > 0) {
55417
55417
  const u = n.map((h) => ({
55418
55418
  sourceUrl: h.path,
@@ -55440,7 +55440,7 @@ const LG = (e, t, i, s, n) => {
55440
55440
  customDownloadItemsAction: t,
55441
55441
  onDownloadSuccess: i
55442
55442
  }) => ({
55443
- handleDownloadFiles: D(
55443
+ handleDownloadFiles: P(
55444
55444
  (n) => {
55445
55445
  t && n.length > 0 ? t(n) : e && n.length > 0 && (e(n), i?.());
55446
55446
  },
@@ -55456,22 +55456,22 @@ const LG = (e, t, i, s, n) => {
55456
55456
  uploadEnabled: r = !0,
55457
55457
  currentFolder: a
55458
55458
  } = {}) => {
55459
- const [l, c] = k(!1), [d, u] = k(!1), [h, p] = k(), f = G(null), m = G(""), v = G([]), C = V(() => !!a?.permissions?.includes(Ho.WRITE), [a]), [w, b] = k(/* @__PURE__ */ new Map()), [x, y] = k(null), F = D(
55459
+ const [l, c] = k(!1), [d, u] = k(!1), [h, p] = k(), f = G(null), m = G(""), v = G([]), C = V(() => !!a?.permissions?.includes(Ho.WRITE), [a]), [w, b] = k(/* @__PURE__ */ new Map()), [x, y] = k(null), F = P(
55460
55460
  (_) => !s || s.includes("*/*") ? _ : _.filter(
55461
55461
  ({ fileContent: he, name: ve }) => Wb(s, he.type, ve)
55462
55462
  ),
55463
55463
  [s]
55464
- ), S = D(() => {
55464
+ ), S = P(() => {
55465
55465
  b(/* @__PURE__ */ new Map()), y(null);
55466
55466
  }, []), {
55467
55467
  conflictingFiles: R,
55468
55468
  conflictResolutionOpen: E,
55469
55469
  hasActiveConflictRef: T,
55470
- startConflictResolution: P,
55470
+ startConflictResolution: D,
55471
55471
  closeConflictResolution: M,
55472
- openConflictResolution: L,
55473
- handleReplaceAll: Y,
55474
- handleDuplicateAll: N,
55472
+ openConflictResolution: N,
55473
+ handleReplaceAll: Z,
55474
+ handleDuplicateAll: O,
55475
55475
  handleCancelAll: B,
55476
55476
  handleDecideForEach: W
55477
55477
  } = jb({
@@ -55522,10 +55522,10 @@ const LG = (e, t, i, s, n) => {
55522
55522
  window.removeEventListener("dragenter", he), window.removeEventListener("dragleave", ve), window.removeEventListener("drop", Te), window.removeEventListener("dragover", De);
55523
55523
  };
55524
55524
  }, [r, C]);
55525
- const $ = D(
55525
+ const $ = P(
55526
55526
  (_) => i ? _.filter((he) => he.fileContent.size > i).map((he) => he.name) : [],
55527
55527
  [i]
55528
- ), ne = D(
55528
+ ), ne = P(
55529
55529
  (_, he) => _.map((ve) => ({
55530
55530
  id: ve.name,
55531
55531
  name: ve.name,
@@ -55536,7 +55536,7 @@ const LG = (e, t, i, s, n) => {
55536
55536
  contentLength: ve.fileContent.size
55537
55537
  })),
55538
55538
  []
55539
- ), A = D(
55539
+ ), A = P(
55540
55540
  async (_, he, ve) => {
55541
55541
  if (!r || !C) return !1;
55542
55542
  p(void 0), v.current = ve;
@@ -55564,7 +55564,7 @@ const LG = (e, t, i, s, n) => {
55564
55564
  const De = new Map(_.map((ke) => [ke.name, ke]));
55565
55565
  b(De);
55566
55566
  const ue = ne(_, he);
55567
- return y({ destinationFolder: he }), P(he, ue, {
55567
+ return y({ destinationFolder: he }), D(he, ue, {
55568
55568
  destinationFolder: he
55569
55569
  }).hasConflicts ? !1 : (e?.(_, he), S(), !0);
55570
55570
  },
@@ -55576,29 +55576,29 @@ const LG = (e, t, i, s, n) => {
55576
55576
  i,
55577
55577
  n,
55578
55578
  ne,
55579
- P,
55579
+ D,
55580
55580
  S,
55581
55581
  C
55582
55582
  ]
55583
- ), I = D(() => {
55584
- Y(), S();
55585
- }, [Y, S]), j = D(() => {
55586
- N(), S();
55587
- }, [N, S]), Z = D(() => {
55583
+ ), I = P(() => {
55584
+ Z(), S();
55585
+ }, [Z, S]), j = P(() => {
55586
+ O(), S();
55587
+ }, [O, S]), Y = P(() => {
55588
55588
  B(), S();
55589
- }, [B, S]), oe = D(
55589
+ }, [B, S]), oe = P(
55590
55590
  (_) => {
55591
55591
  W(_), S();
55592
55592
  },
55593
55593
  [W, S]
55594
- ), xe = D(() => {
55594
+ ), xe = P(() => {
55595
55595
  M(), T.current || S();
55596
- }, [M, T, S]), H = D(
55596
+ }, [M, T, S]), H = P(
55597
55597
  (_) => {
55598
55598
  !r || !C || (_.preventDefault(), _.stopPropagation(), _.dataTransfer.types.includes("Files") && c(!0));
55599
55599
  },
55600
55600
  [r, C]
55601
- ), le = D(
55601
+ ), le = P(
55602
55602
  (_) => {
55603
55603
  if (!r || !C) return;
55604
55604
  _.preventDefault(), _.stopPropagation();
@@ -55606,12 +55606,12 @@ const LG = (e, t, i, s, n) => {
55606
55606
  (ve <= he.left || ve >= he.right || Te <= he.top || Te >= he.bottom) && c(!1);
55607
55607
  },
55608
55608
  [r, C]
55609
- ), Oe = D(
55609
+ ), Oe = P(
55610
55610
  (_) => {
55611
55611
  !r || !C || (_.preventDefault(), _.stopPropagation(), _.dataTransfer.types.includes("Files") && (_.dataTransfer.dropEffect = "copy"));
55612
55612
  },
55613
55613
  [r, C]
55614
- ), ee = D(
55614
+ ), ee = P(
55615
55615
  async (_, he, ve) => {
55616
55616
  if (!r || !C || (_.preventDefault(), _.stopPropagation(), c(!1), !_.dataTransfer.types.includes("Files")))
55617
55617
  return;
@@ -55688,12 +55688,12 @@ const LG = (e, t, i, s, n) => {
55688
55688
  n,
55689
55689
  C
55690
55690
  ]);
55691
- const ae = D(
55691
+ const ae = P(
55692
55692
  (_, he) => {
55693
55693
  !r || !C || (m.current = _, v.current = he, f.current && f.current.click());
55694
55694
  },
55695
55695
  [r, C]
55696
- ), q = D(
55696
+ ), q = P(
55697
55697
  (_, he) => {
55698
55698
  if (!o || !r || !C) return;
55699
55699
  const ve = document.createElement("input");
@@ -55716,7 +55716,7 @@ const LG = (e, t, i, s, n) => {
55716
55716
  };
55717
55717
  if (v.current = he, y({ destinationFolder: _ }), b(
55718
55718
  /* @__PURE__ */ new Map([[Ie.path, { fileContent: De, name: ue }]])
55719
- ), P(_, [Ie], {
55719
+ ), D(_, [Ie], {
55720
55720
  destinationFolder: _
55721
55721
  }).hasConflicts) {
55722
55722
  document.body.removeChild(ve);
@@ -55730,8 +55730,8 @@ const LG = (e, t, i, s, n) => {
55730
55730
  };
55731
55731
  ve.addEventListener("change", Te), document.body.appendChild(ve), ve.click();
55732
55732
  },
55733
- [o, r, C, P]
55734
- ), fe = D(() => {
55733
+ [o, r, C, D]
55734
+ ), fe = P(() => {
55735
55735
  p(void 0);
55736
55736
  }, []);
55737
55737
  return {
@@ -55750,11 +55750,11 @@ const LG = (e, t, i, s, n) => {
55750
55750
  uploadConflictingFiles: R,
55751
55751
  uploadConflictResolutionOpen: E,
55752
55752
  hasActiveUploadConflictRef: T,
55753
- openUploadConflictResolution: L,
55753
+ openUploadConflictResolution: N,
55754
55754
  closeUploadConflictResolution: xe,
55755
55755
  handleUploadConflictReplace: I,
55756
55756
  handleUploadConflictDuplicate: j,
55757
- handleUploadConflictCancel: Z,
55757
+ handleUploadConflictCancel: Y,
55758
55758
  handleUploadConflictDecideForEach: oe
55759
55759
  };
55760
55760
  }, _b = Vr(void 0), Ub = {
@@ -55793,15 +55793,15 @@ const qG = ({
55793
55793
  ...i
55794
55794
  }),
55795
55795
  [i]
55796
- ), a = V(() => n?.path, [n]), l = D(
55796
+ ), a = V(() => n?.path, [n]), l = P(
55797
55797
  (p) => {
55798
55798
  const f = is(e, p);
55799
55799
  f && o(f);
55800
55800
  },
55801
55801
  [e]
55802
- ), c = D(() => {
55802
+ ), c = P(() => {
55803
55803
  o(void 0);
55804
- }, []), d = D(
55804
+ }, []), d = P(
55805
55805
  (p) => {
55806
55806
  if (!n || !s) {
55807
55807
  o(void 0);
@@ -55833,7 +55833,7 @@ const qG = ({
55833
55833
  s([w], C, C), o(void 0);
55834
55834
  },
55835
55835
  [n, s]
55836
- ), u = D(
55836
+ ), u = P(
55837
55837
  (p, f) => {
55838
55838
  const m = p.trim();
55839
55839
  if (!m)
@@ -55862,7 +55862,7 @@ const qG = ({
55862
55862
  return null;
55863
55863
  },
55864
55864
  [t, r, e]
55865
- ), h = D((p) => p.nodeType === Se.ITEM ? $G(p.name) : p.name, []);
55865
+ ), h = P((p) => p.nodeType === Se.ITEM ? $G(p.name) : p.name, []);
55866
55866
  return {
55867
55867
  renamedPath: a,
55868
55868
  renamedItem: n,
@@ -55883,26 +55883,26 @@ const qG = ({
55883
55883
  be(() => {
55884
55884
  s && e?.expandedPaths && i(new Set(e.expandedPaths));
55885
55885
  }, [s, e?.expandedPaths]);
55886
- const o = D(
55886
+ const o = P(
55887
55887
  (d) => {
55888
55888
  s ? e?.onExpandedPathsChange?.(d) : i(d);
55889
55889
  },
55890
55890
  [s, e]
55891
- ), r = D(
55891
+ ), r = P(
55892
55892
  (d) => {
55893
55893
  const u = new Set(n);
55894
55894
  u.has(d) ? u.delete(d) : u.add(d), o(u);
55895
55895
  },
55896
55896
  [n, o]
55897
- ), a = D(() => {
55897
+ ), a = P(() => {
55898
55898
  o(/* @__PURE__ */ new Set());
55899
- }, [o]), l = D(
55899
+ }, [o]), l = P(
55900
55900
  (d) => {
55901
55901
  const u = new Set(n);
55902
55902
  u.add(d), o(u);
55903
55903
  },
55904
55904
  [n, o]
55905
- ), c = D(
55905
+ ), c = P(
55906
55906
  (d) => {
55907
55907
  const u = new Set(n);
55908
55908
  u.delete(d), o(u);
@@ -55997,13 +55997,13 @@ const qG = ({
55997
55997
  const f = e?.path;
55998
55998
  l.current !== f && n && (o(!1), a(null)), l.current = f;
55999
55999
  }, [e?.path, n]);
56000
- const d = D(() => {
56000
+ const d = P(() => {
56001
56001
  if (n) return;
56002
56002
  const f = `__new_folder_${Date.now()}`;
56003
56003
  a(f), o(!0);
56004
- }, [n]), u = D(() => {
56004
+ }, [n]), u = P(() => {
56005
56005
  o(!1), a(null);
56006
- }, []), h = D(
56006
+ }, []), h = P(
56007
56007
  (f) => {
56008
56008
  const m = f.trim();
56009
56009
  if (!m)
@@ -56022,7 +56022,7 @@ const qG = ({
56022
56022
  return null;
56023
56023
  },
56024
56024
  [e, i, c]
56025
- ), p = D(
56025
+ ), p = P(
56026
56026
  async (f) => {
56027
56027
  const m = f.trim();
56028
56028
  if (!m)
@@ -56074,12 +56074,12 @@ const qG = ({
56074
56074
  }, [e, s, i])
56075
56075
  };
56076
56076
  }, XG = ({ onGetInfo: e }) => {
56077
- const [t, i] = k(!1), [s, n] = k(void 0), o = D(
56077
+ const [t, i] = k(!1), [s, n] = k(void 0), o = P(
56078
56078
  async (a) => {
56079
56079
  n(a), i(!0), e && await e(a);
56080
56080
  },
56081
56081
  [e]
56082
- ), r = D(() => {
56082
+ ), r = P(() => {
56083
56083
  i(!1), n(void 0);
56084
56084
  }, []);
56085
56085
  return {
@@ -56118,7 +56118,7 @@ function eB({
56118
56118
  }, [o]);
56119
56119
  const v = String(
56120
56120
  o ?? c ?? ""
56121
- ).trim(), C = h.current && (n || s.length > 0 || v !== ""), w = D(
56121
+ ).trim(), C = h.current && (n || s.length > 0 || v !== ""), w = P(
56122
56122
  (F) => {
56123
56123
  const S = F.trim();
56124
56124
  if (!S) {
@@ -56128,9 +56128,9 @@ function eB({
56128
56128
  h.current = !0, e && i && !u.current && (u.current = !0, e(i, S));
56129
56129
  },
56130
56130
  [e, i]
56131
- ), b = D(() => {
56131
+ ), b = P(() => {
56132
56132
  u.current = !1, h.current = !1, p.current = [], d(""), r?.(""), t?.();
56133
- }, [t, r]), x = D(
56133
+ }, [t, r]), x = P(
56134
56134
  (F) => {
56135
56135
  const S = String(F ?? "");
56136
56136
  d(S), r?.(S), S.trim() ? w(S) : b();
@@ -56182,13 +56182,13 @@ function tB({
56182
56182
  const s = e !== void 0, [n, o] = k(() => t ?? /* @__PURE__ */ new Set()), r = V(
56183
56183
  () => s ? e : n,
56184
56184
  [s, e, n]
56185
- ), a = D(
56185
+ ), a = P(
56186
56186
  (c) => {
56187
56187
  const d = new Set(c);
56188
56188
  i?.(d), s || o(d);
56189
56189
  },
56190
56190
  [s, i]
56191
- ), l = D(() => {
56191
+ ), l = P(() => {
56192
56192
  a(/* @__PURE__ */ new Set());
56193
56193
  }, [a]);
56194
56194
  return {
@@ -56230,11 +56230,11 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56230
56230
  handleSelectionClick: R,
56231
56231
  onGridApiChange: E,
56232
56232
  onCopyFiles: T,
56233
- onMoveToFiles: P,
56233
+ onMoveToFiles: D,
56234
56234
  onDeleteFiles: M,
56235
- onDownloadFiles: L,
56236
- onRenameValidate: Y,
56237
- onAddSibling: N,
56235
+ onDownloadFiles: N,
56236
+ onRenameValidate: Z,
56237
+ onAddSibling: O,
56238
56238
  onAddChild: B,
56239
56239
  renameValidationMessages: W,
56240
56240
  forbiddenSymbolsRegExp: $ = nB,
@@ -56242,7 +56242,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56242
56242
  onUploadFiles: A,
56243
56243
  onValidateUpload: I,
56244
56244
  uploadEnabled: j,
56245
- uploadValidationMessages: Z,
56245
+ uploadValidationMessages: Y,
56246
56246
  maxFileSize: oe,
56247
56247
  onUploadArchive: xe,
56248
56248
  onCreateFolder: H,
@@ -56294,7 +56294,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56294
56294
  selectedPaths: l,
56295
56295
  defaultSelectedPaths: c,
56296
56296
  onSelectedPathsChange: d
56297
- }), ds = G(null), Wc = D(
56297
+ }), ds = G(null), Wc = P(
56298
56298
  (Pe, je, Ke) => {
56299
56299
  if (cs) {
56300
56300
  const vi = je.lastIndexOf("/"), hd = vi >= 0 ? je.slice(vi + 1) : je, Be = vi >= 0 ? je.slice(0, vi) : "";
@@ -56306,7 +56306,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56306
56306
  H?.(Pe, je, Ke);
56307
56307
  },
56308
56308
  [H, cs]
56309
- ), jc = D(
56309
+ ), jc = P(
56310
56310
  (Pe, je) => {
56311
56311
  cs && (ds.current = {
56312
56312
  fileNames: new Set(Pe.map((Ke) => Ke.name)),
@@ -56314,7 +56314,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56314
56314
  }), A?.(Pe, je);
56315
56315
  },
56316
56316
  [A, cs]
56317
- ), _c = D(
56317
+ ), _c = P(
56318
56318
  (Pe, je, Ke) => {
56319
56319
  cs && (ds.current = {
56320
56320
  fileNames: /* @__PURE__ */ new Set([je]),
@@ -56356,7 +56356,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56356
56356
  ...Ke
56357
56357
  } = C || {};
56358
56358
  return { showFiles: Pe, showFolders: je, ...Ke };
56359
- }, [C]), Wo = zo.showFiles, jo = zo.showFolders, [Tn, In] = k(), qc = x?.destinationFolderPath ?? Tn, Mn = D(
56359
+ }, [C]), Wo = zo.showFiles, jo = zo.showFolders, [Tn, In] = k(), qc = x?.destinationFolderPath ?? Tn, Mn = P(
56360
56360
  (Pe) => {
56361
56361
  x?.setDestinationFolderPath ? x.setDestinationFolderPath(Pe) : In(Pe);
56362
56362
  },
@@ -56377,9 +56377,9 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56377
56377
  getDisplayName: Jc
56378
56378
  } = qG({
56379
56379
  items: s,
56380
- onRenameValidate: Y,
56380
+ onRenameValidate: Z,
56381
56381
  validationMessages: W,
56382
- onMoveToFiles: P
56382
+ onMoveToFiles: D
56383
56383
  }), {
56384
56384
  isSearchMode: _o,
56385
56385
  searchValue: ra,
@@ -56423,7 +56423,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56423
56423
  } = HG({
56424
56424
  getDestinationFiles: (Pe) => fu(s, Pe)?.items ?? [],
56425
56425
  onCopyFiles: T,
56426
- onMoveToFiles: P,
56426
+ onMoveToFiles: D,
56427
56427
  onCopySuccess: $i,
56428
56428
  onMoveSuccess: $i,
56429
56429
  onDuplicateSuccess: $i,
@@ -56443,7 +56443,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56443
56443
  onDeleteFiles: M,
56444
56444
  onDeleteSuccess: $i
56445
56445
  }), { handleDownloadFiles: qo } = VG({
56446
- onDownloadFiles: L,
56446
+ onDownloadFiles: N,
56447
56447
  customDownloadItemsAction: Pn,
56448
56448
  onDownloadSuccess: $i
56449
56449
  }), {
@@ -56471,34 +56471,34 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56471
56471
  maxFileSize: oe,
56472
56472
  onUploadArchive: _c,
56473
56473
  allowedFileTypes: Ie,
56474
- validationMessages: Z,
56474
+ validationMessages: Y,
56475
56475
  uploadEnabled: j,
56476
56476
  currentFolder: pt
56477
- }), Ea = D(
56477
+ }), Ea = P(
56478
56478
  (Pe) => {
56479
56479
  Et();
56480
56480
  const je = lt ?? "", Ke = pt?.items ?? [];
56481
56481
  Ko(Pe, je, Ke);
56482
56482
  },
56483
56483
  [lt, pt, Ko, Et]
56484
- ), Da = D(() => {
56484
+ ), Da = P(() => {
56485
56485
  Et();
56486
56486
  const Pe = lt ?? "", je = pt?.items ?? [];
56487
56487
  ba(Pe, je);
56488
- }, [lt, pt, ba, Et]), X = D(() => {
56488
+ }, [lt, pt, ba, Et]), X = P(() => {
56489
56489
  Et();
56490
56490
  const Pe = lt ?? "", je = pt?.items ?? [];
56491
56491
  Vn(Pe, je);
56492
- }, [lt, pt, Vn, Et]), Je = D(() => {
56492
+ }, [lt, pt, Vn, Et]), Je = P(() => {
56493
56493
  Et(), Ws?.(lt, pt);
56494
- }, [Ws, lt, pt, Et]), st = D(() => {
56494
+ }, [Ws, lt, pt, Et]), st = P(() => {
56495
56495
  Et(), Vo?.(lt, pt);
56496
56496
  }, [
56497
56497
  Vo,
56498
56498
  lt,
56499
56499
  pt,
56500
56500
  Et
56501
- ]), ti = D(
56501
+ ]), ti = P(
56502
56502
  (Pe) => {
56503
56503
  Dn?.(Pe);
56504
56504
  },
@@ -56515,7 +56515,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56515
56515
  onCreateFolder: Wc,
56516
56516
  onValidateFolderName: le,
56517
56517
  validationMessages: Oe
56518
- }), Eg = D(() => {
56518
+ }), Eg = P(() => {
56519
56519
  Et(), Fg();
56520
56520
  }, [Et, Fg]), { newActions: s0, isNewButtonVisible: n0, isNewButtonDisabled: o0 } = KG(
56521
56521
  {
@@ -56628,17 +56628,17 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56628
56628
  Pe.fileNames.has(vi.name) && Ke.add(vi.path);
56629
56629
  Ke.size > 0 && (js(Ke), ds.current = null);
56630
56630
  }, [s, lt, js]);
56631
- const a0 = D(
56631
+ const a0 = P(
56632
56632
  (Pe) => {
56633
56633
  Ft(Pe.path);
56634
56634
  },
56635
56635
  [Ft]
56636
- ), l0 = D(
56636
+ ), l0 = P(
56637
56637
  (Pe) => {
56638
56638
  Ft(Pe);
56639
56639
  },
56640
56640
  [Ft]
56641
- ), c0 = D(
56641
+ ), c0 = P(
56642
56642
  (Pe) => {
56643
56643
  Pe.nodeType === Se.FOLDER ? Ft(Pe.path) : S?.(Pe);
56644
56644
  },
@@ -56655,7 +56655,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56655
56655
  selectedFileForMetadata: g0,
56656
56656
  openMetadataPopup: f0,
56657
56657
  closeMetadataPopup: Pg
56658
- } = XG({ onGetInfo: ae }), m0 = D(() => {
56658
+ } = XG({ onGetInfo: ae }), m0 = P(() => {
56659
56659
  Pg(), ee?.clearMetadata?.();
56660
56660
  }, [Pg, ee]), v0 = V(() => {
56661
56661
  if ($)
@@ -56715,7 +56715,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56715
56715
  handleCloseDestinationFolderPopup: On,
56716
56716
  handleOpenDestinationFolderPopup: ua,
56717
56717
  destinationFolderMode: ha,
56718
- handleAddSibling: N,
56718
+ handleAddSibling: O,
56719
56719
  handleAddChild: B,
56720
56720
  handleDownloadFiles: qo,
56721
56721
  renamedPath: Kc,
@@ -56919,7 +56919,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56919
56919
  alertProps: b,
56920
56920
  ...x
56921
56921
  }) => {
56922
- const [y, F] = k(!1), [S, R] = k(!1), E = G(null), T = bg(), P = D((B) => {
56922
+ const [y, F] = k(!1), [S, R] = k(!1), E = G(null), T = bg(), D = P((B) => {
56923
56923
  F(B);
56924
56924
  }, []), M = V(() => {
56925
56925
  const B = [
@@ -56940,12 +56940,12 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56940
56940
  F((W) => !W), R(!1);
56941
56941
  }
56942
56942
  }), B;
56943
- }, [a, c, d]), L = D(
56943
+ }, [a, c, d]), N = P(
56944
56944
  (B) => {
56945
56945
  B && (i?.(B), s?.(B));
56946
56946
  },
56947
56947
  [i, s]
56948
- ), Y = l === mt.Copy ? "Copy to" : "Move to", N = V(() => !C || !m ? !1 : m === C, [C, m]);
56948
+ ), Z = l === mt.Copy ? "Copy to" : "Move to", O = V(() => !C || !m ? !1 : m === C, [C, m]);
56949
56949
  return /* @__PURE__ */ g.jsx(
56950
56950
  No,
56951
56951
  {
@@ -56998,7 +56998,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
56998
56998
  {
56999
56999
  label: c,
57000
57000
  isOn: y,
57001
- onChange: P,
57001
+ onChange: D,
57002
57002
  switchId: "hidden-files-switch-modal"
57003
57003
  }
57004
57004
  ) })
@@ -57006,13 +57006,13 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
57006
57006
  ] }) }),
57007
57007
  /* @__PURE__ */ g.jsxs("div", { className: "flex space-x-4 items-center", children: [
57008
57008
  /* @__PURE__ */ g.jsx(rs, { onClick: e, label: "Cancel" }),
57009
- N ? /* @__PURE__ */ g.jsx(Xt, { tooltip: v, children: /* @__PURE__ */ g.jsx(
57009
+ O ? /* @__PURE__ */ g.jsx(Xt, { tooltip: v, children: /* @__PURE__ */ g.jsx(
57010
57010
  ts,
57011
57011
  {
57012
57012
  onClick: t,
57013
57013
  label: l === "copy" ? o : r,
57014
- disabled: N,
57015
- "aria-disabled": N
57014
+ disabled: O,
57015
+ "aria-disabled": O
57016
57016
  }
57017
57017
  ) }) : /* @__PURE__ */ g.jsx(
57018
57018
  ts,
@@ -57023,7 +57023,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
57023
57023
  )
57024
57024
  ] })
57025
57025
  ] }),
57026
- header: f ?? Y,
57026
+ header: f ?? Z,
57027
57027
  children: /* @__PURE__ */ g.jsxs("div", { className: "bg-layer-2 h-full flex flex-col", children: [
57028
57028
  b && /* @__PURE__ */ g.jsx("div", { className: "px-6 mb-4 pt-4", children: /* @__PURE__ */ g.jsx(xy, { ...b }) }),
57029
57029
  /* @__PURE__ */ g.jsx("div", { className: "flex-1 min-h-0", children: /* @__PURE__ */ g.jsx(
@@ -57038,7 +57038,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
57038
57038
  actionsRef: E,
57039
57039
  path: C,
57040
57040
  showHiddenFiles: y,
57041
- onShowHiddenFilesChange: P,
57041
+ onShowHiddenFilesChange: D,
57042
57042
  treeOptions: {
57043
57043
  ...x.treeOptions,
57044
57044
  collapsed: w,
@@ -57052,7 +57052,7 @@ const iB = ':;,=/{}%&\\"', qb = `(\r
57052
57052
  },
57053
57053
  onUploadFiles: u,
57054
57054
  onValidateUpload: h,
57055
- onPathChange: L,
57055
+ onPathChange: N,
57056
57056
  maxFileSize: p
57057
57057
  }
57058
57058
  ) })
@@ -57069,7 +57069,7 @@ function dB({
57069
57069
  containerPadding: n = 8,
57070
57070
  dependencies: o = []
57071
57071
  }) {
57072
- const r = G(null), a = G(null), l = G(null), c = G(null), d = G([]), [u, h] = k(e.length), p = D(
57072
+ const r = G(null), a = G(null), l = G(null), c = G(null), d = G([]), [u, h] = k(e.length), p = P(
57073
57073
  (v, C) => {
57074
57074
  const w = l.current?.offsetWidth ?? 0, b = c.current?.offsetWidth ?? 0, x = w + b, F = C.getBoundingClientRect().width - x - i - s * 2 - n * 2;
57075
57075
  let S = 0, R = 0;
@@ -57288,24 +57288,24 @@ const uB = ({ getSelectionLabel: e, onClearSelection: t, actions: i, selectedCou
57288
57288
  if (!s) return;
57289
57289
  let E = hv(s);
57290
57290
  const T = [...E];
57291
- let P = 0;
57291
+ let D = 0;
57292
57292
  if (a) {
57293
- const L = hv(a);
57294
- if (L.length) {
57295
- const Y = E.findIndex(
57296
- (N, B) => L.every((W, $) => E[B + $] === W)
57293
+ const N = hv(a);
57294
+ if (N.length) {
57295
+ const Z = E.findIndex(
57296
+ (O, B) => N.every((W, $) => E[B + $] === W)
57297
57297
  );
57298
- Y !== -1 && (P = L.length, E = [
57299
- ...E.slice(0, Y),
57300
- ...E.slice(Y + L.length)
57298
+ Z !== -1 && (D = N.length, E = [
57299
+ ...E.slice(0, Z),
57300
+ ...E.slice(Z + N.length)
57301
57301
  ]);
57302
57302
  }
57303
57303
  }
57304
57304
  if (!E.length) return [{ label: "/" }];
57305
- const M = E.map((L, Y) => {
57306
- const N = Y < E.length - P ? Y : Y + P, B = T.slice(0, N + 1), W = typeof n == "function" ? n(B, N) : void 0;
57305
+ const M = E.map((N, Z) => {
57306
+ const O = Z < E.length - D ? Z : Z + D, B = T.slice(0, O + 1), W = typeof n == "function" ? n(B, O) : void 0;
57307
57307
  return {
57308
- label: L,
57308
+ label: N,
57309
57309
  href: W,
57310
57310
  onClick: i ? ($) => {
57311
57311
  $.preventDefault(), i(W);
@@ -57313,11 +57313,11 @@ const uB = ({ getSelectionLabel: e, onClearSelection: t, actions: i, selectedCou
57313
57313
  };
57314
57314
  });
57315
57315
  if (o && r) {
57316
- const L = o.split("/").filter(Boolean), Y = s.split("/").filter(Boolean);
57317
- if (L.every(
57318
- (B, W) => Y[W] === B
57316
+ const N = o.split("/").filter(Boolean), Z = s.split("/").filter(Boolean);
57317
+ if (N.every(
57318
+ (B, W) => Z[W] === B
57319
57319
  ) && M.length > 0) {
57320
- const B = M.slice(L.length);
57320
+ const B = M.slice(N.length);
57321
57321
  return [
57322
57322
  {
57323
57323
  label: r,
@@ -57338,15 +57338,15 @@ const uB = ({ getSelectionLabel: e, onClearSelection: t, actions: i, selectedCou
57338
57338
  r,
57339
57339
  n,
57340
57340
  i
57341
- ]), [x, y] = k(!1), F = D(() => {
57341
+ ]), [x, y] = k(!1), F = P(() => {
57342
57342
  if (w && !x) {
57343
57343
  y(!0);
57344
57344
  const E = document.getElementById(h);
57345
57345
  E && E.focus();
57346
57346
  }
57347
- }, [h, x, w]), S = D(() => {
57347
+ }, [h, x, w]), S = P(() => {
57348
57348
  (!u || String(u).trim() === "") && m?.("");
57349
- }, [u, m]), R = D(() => w && x ? /* @__PURE__ */ g.jsx(
57349
+ }, [u, m]), R = P(() => w && x ? /* @__PURE__ */ g.jsx(
57350
57350
  rs,
57351
57351
  {
57352
57352
  className: "!p-[9px]",
@@ -57779,9 +57779,9 @@ function FB({
57779
57779
  onSave: n,
57780
57780
  onCancel: o
57781
57781
  }) {
57782
- const [r, a] = k(e), [l, c] = k(!1), [d, u] = k(""), h = G(null), p = D((w = !1, b = "") => {
57782
+ const [r, a] = k(e), [l, c] = k(!1), [d, u] = k(""), h = G(null), p = P((w = !1, b = "") => {
57783
57783
  c(w), u(b);
57784
- }, []), f = D(
57784
+ }, []), f = P(
57785
57785
  (w) => {
57786
57786
  if (!s)
57787
57787
  return p(), !0;
@@ -57789,15 +57789,15 @@ function FB({
57789
57789
  return b ? b.startsWith(`${Ni.Warning}__`) ? (p(!1, b), !0) : (p(!0, b), !1) : (p(), !0);
57790
57790
  },
57791
57791
  [s, p]
57792
- ), m = D(
57792
+ ), m = P(
57793
57793
  (w) => {
57794
57794
  const b = w ?? "";
57795
57795
  a(b), f(b);
57796
57796
  },
57797
57797
  [f]
57798
- ), v = D(() => {
57798
+ ), v = P(() => {
57799
57799
  f(r) ? n?.(r) : h.current?.focus();
57800
- }, [f, n, r]), C = D(() => {
57800
+ }, [f, n, r]), C = P(() => {
57801
57801
  i && a(e), p(), o?.();
57802
57802
  }, [e, o, i, p]);
57803
57803
  return be(() => {
@@ -57934,11 +57934,11 @@ const Jl = ({
57934
57934
  onExpandedPathsChange: b
57935
57935
  }), R = (T) => {
57936
57936
  f?.(T), S(T.path);
57937
- }, E = (T, P) => T.map((M) => {
57938
- const { path: L, nodeType: Y, name: N, items: B } = M, W = Y === Se.FOLDER;
57937
+ }, E = (T, D) => T.map((M) => {
57938
+ const { path: N, nodeType: Z, name: O, items: B } = M, W = Z === Se.FOLDER;
57939
57939
  if (!d && zb(M)) return null;
57940
57940
  if (!W && !t) return;
57941
- const $ = Array.isArray(B) && B.length > 0 && B.some((ae) => ae.nodeType === Se.FOLDER || t), ne = F.has(L), A = r === L, I = s.has(L), j = u === L, Z = n.has(L), oe = o.has(L), xe = p && h && L === p && W, H = w && ((ae) => w(ae, M)), le = A ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Oe = xe ? [] : m?.(M) ?? [], ee = x ? wg(
57941
+ const $ = Array.isArray(B) && B.length > 0 && B.some((ae) => ae.nodeType === Se.FOLDER || t), ne = F.has(N), A = r === N, I = s.has(N), j = u === N, Y = n.has(N), oe = o.has(N), xe = p && h && N === p && W, H = w && ((ae) => w(ae, M)), le = A ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Oe = xe ? [] : m?.(M) ?? [], ee = x ? wg(
57942
57942
  { name: M.name, isFolder: W },
57943
57943
  x,
57944
57944
  y
@@ -57954,7 +57954,7 @@ const Jl = ({
57954
57954
  children: /* @__PURE__ */ g.jsxs(
57955
57955
  "div",
57956
57956
  {
57957
- style: { paddingLeft: `${P * yB}px` },
57957
+ style: { paddingLeft: `${D * yB}px` },
57958
57958
  className: re(
57959
57959
  "py-1 gap-[2px] dial-small-text flex justify-between hover:bg-accent-primary-alpha rounded group/item w-full mb-[2px] relative",
57960
57960
  le
@@ -57981,15 +57981,15 @@ const Jl = ({
57981
57981
  className: de(
57982
57982
  "flex-shrink-0",
57983
57983
  ne && "rotate-90 transition-all",
57984
- Z && !$ && "text-transparent"
57984
+ Y && !$ && "text-transparent"
57985
57985
  )
57986
57986
  }
57987
57987
  ),
57988
57988
  /* @__PURE__ */ g.jsx(
57989
57989
  Jl,
57990
57990
  {
57991
- elementId: `${L}-tree-item`,
57992
- name: xe ? h : N,
57991
+ elementId: `${N}-tree-item`,
57992
+ name: xe ? h : O,
57993
57993
  type: W ? gi.Folder : gi.File,
57994
57994
  loading: I,
57995
57995
  shared: oe,
@@ -58032,8 +58032,8 @@ const Jl = ({
58032
58032
  )
58033
58033
  }
58034
58034
  ),
58035
- ne && B && E(B, P + 1)
58036
- ] }) }, `${L}-children`);
58035
+ ne && B && E(B, D + 1)
58036
+ ] }) }, `${N}-children`);
58037
58037
  });
58038
58038
  return /* @__PURE__ */ g.jsx("div", { className: "flex-1 size-full overflow-y-auto", "aria-label": "folders-tree", children: e.length > 0 ? E(e, 0) : /* @__PURE__ */ g.jsx(
58039
58039
  uc,
@@ -58310,7 +58310,7 @@ const Kb = ({
58310
58310
  shared: p,
58311
58311
  sharedIndicatorClassName: v,
58312
58312
  iconSize: Fs,
58313
- validate: (P) => y(P, b),
58313
+ validate: (D) => y(D, b),
58314
58314
  onSave: F,
58315
58315
  onCancel: S,
58316
58316
  inputContainerClassName: re([
@@ -58611,8 +58611,8 @@ const LB = () => {
58611
58611
  icon: /* @__PURE__ */ g.jsx(wu, { ...ie, className: "text-secondary" }),
58612
58612
  onClick: () => f?.(y.path)
58613
58613
  });
58614
- const E = y.name.split("."), T = E.length > 1 ? E[E.length - 1] : "", P = T && C?.includes(`.${T}`);
58615
- e[J.Preview] && typeof m == "function" && y.nodeType === Se.ITEM && P && !S && F.push({
58614
+ const E = y.name.split("."), T = E.length > 1 ? E[E.length - 1] : "", D = T && C?.includes(`.${T}`);
58615
+ e[J.Preview] && typeof m == "function" && y.nodeType === Se.ITEM && D && !S && F.push({
58616
58616
  key: J.Preview,
58617
58617
  label: e[J.Preview],
58618
58618
  icon: /* @__PURE__ */ g.jsx(tc, { ...ie, className: "text-secondary" }),
@@ -58625,8 +58625,8 @@ const LB = () => {
58625
58625
  icon: /* @__PURE__ */ g.jsx(mo, { ...ie, className: "text-secondary" }),
58626
58626
  onClick: () => r(y, y.parentPath ?? "")
58627
58627
  });
58628
- const L = y.nodeType === Se.FOLDER || y.nodeType === Se.ITEM && w;
58629
- return e[J.Rename] && L && F.push({
58628
+ const N = y.nodeType === Se.FOLDER || y.nodeType === Se.ITEM && w;
58629
+ return e[J.Rename] && N && F.push({
58630
58630
  key: J.Rename,
58631
58631
  label: e[J.Rename],
58632
58632
  icon: /* @__PURE__ */ g.jsx(vv, { ...ie, className: "text-secondary" }),
@@ -58705,11 +58705,11 @@ const LB = () => {
58705
58705
  gridRows: R,
58706
58706
  selectedPaths: E,
58707
58707
  selectedFiles: T,
58708
- clearSelection: P,
58708
+ clearSelection: D,
58709
58709
  setSelectedPaths: M,
58710
- effectiveSearchValue: L,
58711
- handleBreadcrumbItemClick: Y,
58712
- handleSearchChange: N,
58710
+ effectiveSearchValue: N,
58711
+ handleBreadcrumbItemClick: Z,
58712
+ handleSearchChange: O,
58713
58713
  handleTreeItemClick: B,
58714
58714
  handleTableRowClick: W,
58715
58715
  handleSelectionClick: $,
@@ -58717,7 +58717,7 @@ const LB = () => {
58717
58717
  handleOpenDestinationFolderPopup: A,
58718
58718
  handleCloseDestinationFolderPopup: I,
58719
58719
  openDestinationFolderPopup: j,
58720
- destinationFolderMode: Z,
58720
+ destinationFolderMode: Y,
58721
58721
  handleSetCopiedFiles: oe,
58722
58722
  handleSetMovedFiles: xe,
58723
58723
  handleDuplicate: H,
@@ -58824,7 +58824,7 @@ const LB = () => {
58824
58824
  wt.Name,
58825
58825
  wt.Path,
58826
58826
  wt.Actions
58827
- ] : fa, [qi, fa]), qo = D(
58827
+ ] : fa, [qi, fa]), qo = P(
58828
58828
  (X, Je, st) => LG(
58829
58829
  X,
58830
58830
  Je,
@@ -58833,7 +58833,7 @@ const LB = () => {
58833
58833
  ra
58834
58834
  ),
58835
58835
  [ra, Ln]
58836
- ), Bn = D(
58836
+ ), Bn = P(
58837
58837
  (X, Je, st) => !!qo(
58838
58838
  X,
58839
58839
  Je,
@@ -58845,7 +58845,7 @@ const LB = () => {
58845
58845
  for (const Je of R)
58846
58846
  Bn(Je, C, w) && X.add(Je.path);
58847
58847
  return X;
58848
- }, [C, w, R, Bn]), ma = D(
58848
+ }, [C, w, R, Bn]), ma = P(
58849
58849
  (X) => {
58850
58850
  const Je = [], st = [], ti = !X.parentPath, Ti = Ne?.test(
58851
58851
  X.name
@@ -58989,7 +58989,7 @@ const LB = () => {
58989
58989
  ), va = V(() => {
58990
58990
  const X = /* @__PURE__ */ new Set();
58991
58991
  return T.forEach((Je, st) => X.add(st)), X;
58992
- }, [T]), Ca = D(
58992
+ }, [T]), Ca = P(
58993
58993
  (X, Je) => {
58994
58994
  M(X), $?.(Je);
58995
58995
  },
@@ -59011,14 +59011,14 @@ const LB = () => {
59011
59011
  getCurrentFolderPath: () => S ?? "/",
59012
59012
  sharedWithMeIds: kn,
59013
59013
  sharedByMePaths: v,
59014
- onClearSelection: P,
59014
+ onClearSelection: D,
59015
59015
  forbiddenSymbolsRegExp: Ne
59016
- }), Ko = D(
59016
+ }), Ko = P(
59017
59017
  (X) => {
59018
59018
  c?.onTabChange?.(X), Pn();
59019
59019
  },
59020
59020
  [c, Pn]
59021
- ), cd = D(() => c && E.size === 0 ? /* @__PURE__ */ g.jsxs(
59021
+ ), cd = P(() => c && E.size === 0 ? /* @__PURE__ */ g.jsxs(
59022
59022
  "div",
59023
59023
  {
59024
59024
  className: sv,
@@ -59051,7 +59051,7 @@ const LB = () => {
59051
59051
  {
59052
59052
  ...d,
59053
59053
  selectedCount: E.size,
59054
- onClearSelection: P,
59054
+ onClearSelection: D,
59055
59055
  actions: wa
59056
59056
  }
59057
59057
  )
@@ -59060,7 +59060,7 @@ const LB = () => {
59060
59060
  Ko,
59061
59061
  d,
59062
59062
  E,
59063
- P,
59063
+ D,
59064
59064
  wa,
59065
59065
  b,
59066
59066
  x,
@@ -59077,7 +59077,7 @@ const LB = () => {
59077
59077
  }),
59078
59078
  [ia]
59079
59079
  );
59080
- const ba = D(() => zt ? null : /* @__PURE__ */ g.jsx(
59080
+ const ba = P(() => zt ? null : /* @__PURE__ */ g.jsx(
59081
59081
  "aside",
59082
59082
  {
59083
59083
  role: "region",
@@ -59178,13 +59178,13 @@ const LB = () => {
59178
59178
  isRenameFileAvailable: Xc,
59179
59179
  isDuplicateFolderAvailable: Jc,
59180
59180
  forbiddenSymbolsRegExp: Ne
59181
- }), Vn = D(
59181
+ }), Vn = P(
59182
59182
  (X) => {
59183
59183
  const Je = is(i, X.path);
59184
59184
  return Je ? xa(Je) : [];
59185
59185
  },
59186
59186
  [i, xa]
59187
- ), dd = D(
59187
+ ), dd = P(
59188
59188
  (X, Je, st) => Gn ? !1 : Bn(X, Je, st),
59189
59189
  [Gn, Bn]
59190
59190
  ), { actionsColumnDef: ud } = wG({
@@ -59203,14 +59203,14 @@ const LB = () => {
59203
59203
  actionsColumnDef: ud,
59204
59204
  rootItemLabel: s?.label,
59205
59205
  rootItemPath: s?.path
59206
- }), ya = D(
59206
+ }), ya = P(
59207
59207
  (X) => {
59208
59208
  X.colDef.colId === "ag-Grid-SelectionColumn" || X.colDef.colId === wt.Actions || De && X.data?.path === De || X.data?.isTemporary || Uo && Uo.includes(
59209
59209
  X.colDef.colId
59210
59210
  ) || X.data && W(X.data);
59211
59211
  },
59212
59212
  [De, W, Uo]
59213
- ), Sa = D(
59213
+ ), Sa = P(
59214
59214
  () => /* @__PURE__ */ g.jsx(
59215
59215
  uc,
59216
59216
  {
@@ -59370,11 +59370,11 @@ const LB = () => {
59370
59370
  ...a ?? {},
59371
59371
  makeHref: (X) => X.join("/"),
59372
59372
  path: S,
59373
- onItemClick: Y,
59373
+ onItemClick: Z,
59374
59374
  rootItemPath: s?.path,
59375
59375
  rootItemLabel: s?.label,
59376
- value: L,
59377
- onSearchChange: N,
59376
+ value: N,
59377
+ onSearchChange: O,
59378
59378
  isCompactView: zt,
59379
59379
  labelClassName: "dial-tiny-text"
59380
59380
  }
@@ -59427,9 +59427,9 @@ const LB = () => {
59427
59427
  onClose: I,
59428
59428
  onConfirm: () => {
59429
59429
  const X = h?.destinationFolderPath ?? "/";
59430
- Z === mt.Copy ? le(X) : Oe(X), I();
59430
+ Y === mt.Copy ? le(X) : Oe(X), I();
59431
59431
  },
59432
- mode: Z,
59432
+ mode: Y,
59433
59433
  items: i,
59434
59434
  rootItem: s,
59435
59435
  gridOptions: {
@@ -60122,7 +60122,7 @@ const Rg = ({
60122
60122
  }
60123
60123
  )
60124
60124
  ] }) : /* @__PURE__ */ g.jsx("div", { role: "radiogroup", className: "flex flex-col gap-2", children: Object.keys(C).map((R) => {
60125
- const E = Ue({ $ref: C[R] }, o), T = b === R, { [v]: P, ...M } = E.properties ?? {}, L = {
60125
+ const E = Ue({ $ref: C[R] }, o), T = b === R, { [v]: D, ...M } = E.properties ?? {}, N = {
60126
60126
  ...E,
60127
60127
  properties: M
60128
60128
  };
@@ -60142,7 +60142,7 @@ const Rg = ({
60142
60142
  T && /* @__PURE__ */ g.jsx("div", { className: "ml-6 mt-2", children: /* @__PURE__ */ g.jsx(
60143
60143
  vl,
60144
60144
  {
60145
- schema: L,
60145
+ schema: N,
60146
60146
  value: t,
60147
60147
  onChange: i,
60148
60148
  path: s,
@@ -60644,7 +60644,7 @@ const Rg = ({
60644
60644
  [i]
60645
60645
  ), f = V(() => t || (xn(e, e) ?? {}), []), [m, v] = k(f), [C, w] = k(
60646
60646
  /* @__PURE__ */ new Set()
60647
- ), b = D((S) => {
60647
+ ), b = P((S) => {
60648
60648
  w((R) => R.has(S) ? R : /* @__PURE__ */ new Set([...R, S]));
60649
60649
  }, []);
60650
60650
  be(() => {
@@ -60669,7 +60669,7 @@ const Rg = ({
60669
60669
  skipUntouched: h
60670
60670
  },
60671
60671
  children: /* @__PURE__ */ g.jsx("div", { className: re("flex flex-col gap-4", s), children: y.map(([S, R]) => {
60672
- const E = Ue(R, e), T = E.title ?? R.title ?? Sg(S), P = F.includes(S), M = m[S];
60672
+ const E = Ue(R, e), T = E.title ?? R.title ?? Sg(S), D = F.includes(S), M = m[S];
60673
60673
  if (a === ml.Flat)
60674
60674
  return /* @__PURE__ */ g.jsx(
60675
60675
  Xb,
@@ -60679,7 +60679,7 @@ const Rg = ({
60679
60679
  onChange: (B) => x(S, B),
60680
60680
  path: [S],
60681
60681
  level: 0,
60682
- required: P,
60682
+ required: D,
60683
60683
  label: T
60684
60684
  },
60685
60685
  S
@@ -60695,11 +60695,11 @@ const Rg = ({
60695
60695
  onChange: (B) => x(S, B),
60696
60696
  path: [S],
60697
60697
  level: 0,
60698
- required: P
60698
+ required: D
60699
60699
  }
60700
60700
  )
60701
60701
  ] }, S);
60702
- const L = en(M, E, e, S), Y = S + ".", N = !h || C.has(S) || [...C].some((B) => B.startsWith(Y));
60702
+ const N = en(M, E, e, S), Z = S + ".", O = !h || C.has(S) || [...C].some((B) => B.startsWith(Z));
60703
60703
  return /* @__PURE__ */ g.jsx(
60704
60704
  Rg,
60705
60705
  {
@@ -60707,7 +60707,7 @@ const Rg = ({
60707
60707
  description: E.description,
60708
60708
  level: 0,
60709
60709
  defaultExpanded: o,
60710
- errorCount: N ? P && Nc(M) ? Math.max(L.length, 1) : L.length : 0,
60710
+ errorCount: O ? D && Nc(M) ? Math.max(N.length, 1) : N.length : 0,
60711
60711
  children: /* @__PURE__ */ g.jsx(
60712
60712
  Ls,
60713
60713
  {
@@ -60716,7 +60716,7 @@ const Rg = ({
60716
60716
  onChange: (B) => x(S, B),
60717
60717
  path: [S],
60718
60718
  level: 1,
60719
- required: P
60719
+ required: D
60720
60720
  }
60721
60721
  )
60722
60722
  },