@epam/ai-dial-ui-kit 0.5.0-rc.73 → 0.5.0-rc.74

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.
@@ -2,7 +2,7 @@ import { jsx as v, jsxs as z, Fragment as je } from "react/jsx-runtime";
2
2
  import X from "classnames";
3
3
  import { useFloating as uc, offset as $h, flip as jh, shift as Kh, arrow as TC, autoUpdate as qh, useHover as Yh, useFocus as MC, useDismiss as hc, useRole as gc, useInteractions as pc, useMergeRefs as fc, FloatingPortal as mc, FloatingArrow as IC, autoPlacement as kC, size as AC, useClick as LC, FloatingFocusManager as Zh, FloatingOverlay as OC } from "@floating-ui/react";
4
4
  import * as Ce from "react";
5
- import U, { createContext as Br, useState as k, useRef as N, useEffect as we, useMemo as G, useContext as et, isValidElement as Cc, cloneElement as fl, useCallback as M, memo as gt, useLayoutEffect as Wt, PureComponent as NC, useId as vc, Children as HC, createElement as Eo, useImperativeHandle as Vr, Component as GC, forwardRef as wc, Suspense as BC } from "react";
5
+ import U, { createContext as Br, useState as k, useRef as N, useEffect as ve, useMemo as B, useContext as et, isValidElement as Cc, cloneElement as fl, useCallback as M, memo as gt, useLayoutEffect as Wt, PureComponent as NC, useId as vc, Children as HC, createElement as Eo, useImperativeHandle as Vr, Component as GC, forwardRef as wc, Suspense as BC } from "react";
6
6
  import { IconInfoCircle as Qh, IconCircleCheck as VC, IconAlertTriangle as zC, IconAlertCircle as WC, IconX as so, IconMinus as _C, IconCheck as Xh, IconExclamationCircle as bc, IconClipboardX as Jh, IconChevronsLeft as UC, IconChevronsRight as $C, IconGripVertical as jC, IconFile as eg, IconFileTypeZip as KC, IconFileTypeXml as qC, IconFileTypeXls as YC, IconFileTypeVue as ZC, IconFileTypeTxt as QC, IconFileTypeTsx as XC, IconFileTypeTs as JC, IconFileTypeSvg as ev, IconFileTypeSql as tv, IconFileTypeRs as sv, IconFileTypePpt as iv, IconFileTypePng as ov, IconFileTypePhp as nv, IconFileTypePdf as rv, IconFileTypeJsx as av, IconFileTypeJs as lv, IconFileTypeJpg as cv, IconFileTypeHtml as dv, IconFileTypeDocx as uv, IconFileTypeDoc as hv, IconFileTypeCsv as gv, IconFileTypeCss as pv, IconFileTypeBmp as fv, IconArrowUpRight as mv, IconFolder as Sc, IconChevronLeft as Cv, IconChevronRight as tg, IconChevronDown as zr, IconDotsVertical as en, IconDots as vv, IconTrashX as tn, IconEyeOff as sg, IconEye as ig, IconSearch as wv, IconPlus as bv, IconChevronUp as Sv, IconAlertCircleFilled as yv, IconCaretRightFilled as Rv, IconArrowLeft as xv, IconZoomCancel as Fv, IconFileZip as Ev, IconCopyMinus as Dv, IconFolderPlus as Pv, IconCopy as yc, IconDownload as Rc, IconPencilMinus as og, IconCircleFilled as Un } from "@tabler/icons-react";
7
7
  import Tv, { flushSync as Mv, createPortal as xc } from "react-dom";
8
8
  const oi = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "text-error dial-tiny mt-1", children: e }), He = ({ icon: e, className: t }) => e ? /* @__PURE__ */ v("span", { className: X("flex-shrink-0", t), children: e }) : null, Iv = 7, kv = 2, ng = Br(null), rg = () => {
@@ -42,7 +42,7 @@ const oi = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "te
42
42
  }), h = MC(d.context, {
43
43
  enabled: i == null
44
44
  }), g = hc(d.context), p = gc(d.context, { role: "tooltip" }), f = pc([u, h, g, p]);
45
- return we(() => {
45
+ return ve(() => {
46
46
  if (!l) return;
47
47
  const m = d.refs.reference.current;
48
48
  if (!(m instanceof Element)) return;
@@ -53,7 +53,7 @@ const oi = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "te
53
53
  { root: null, threshold: 0 }
54
54
  );
55
55
  return C.observe(m), () => C.disconnect();
56
- }, [l, d.refs.reference, c]), G(
56
+ }, [l, d.refs.reference, c]), B(
57
57
  () => ({
58
58
  open: l,
59
59
  setOpen: c,
@@ -417,7 +417,7 @@ const Xe = (e) => {
417
417
  "left-bottom"
418
418
  ], y = () => [...S(), ne, oe], x = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], R = () => [ne, oe, l], D = () => [Ri, "full", "auto", ...R()], T = () => [Es, "none", "subgrid", ne, oe], F = () => ["auto", {
419
419
  span: ["full", Es, ne, oe]
420
- }, Es, ne, oe], P = () => [Es, "auto", ne, oe], A = () => ["auto", "min", "max", "fr", ne, oe], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], B = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], J = () => ["auto", ...R()], re = () => [Ri, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], H = () => [e, ne, oe], se = () => [...S(), Gd, Hd, {
420
+ }, Es, ne, oe], P = () => [Es, "auto", ne, oe], A = () => ["auto", "min", "max", "fr", ne, oe], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], G = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], J = () => ["auto", ...R()], re = () => [Ri, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], H = () => [e, ne, oe], se = () => [...S(), Gd, Hd, {
421
421
  position: [ne, oe]
422
422
  }], $ = () => ["no-repeat", {
423
423
  repeat: ["", "x", "y", "space", "round"]
@@ -848,14 +848,14 @@ const Xe = (e) => {
848
848
  * @see https://tailwindcss.com/docs/justify-items
849
849
  */
850
850
  "justify-items": [{
851
- "justify-items": [...B(), "normal"]
851
+ "justify-items": [...G(), "normal"]
852
852
  }],
853
853
  /**
854
854
  * Justify Self
855
855
  * @see https://tailwindcss.com/docs/justify-self
856
856
  */
857
857
  "justify-self": [{
858
- "justify-self": ["auto", ...B()]
858
+ "justify-self": ["auto", ...G()]
859
859
  }],
860
860
  /**
861
861
  * Align Content
@@ -869,7 +869,7 @@ const Xe = (e) => {
869
869
  * @see https://tailwindcss.com/docs/align-items
870
870
  */
871
871
  "align-items": [{
872
- items: [...B(), {
872
+ items: [...G(), {
873
873
  baseline: ["", "last"]
874
874
  }]
875
875
  }],
@@ -878,7 +878,7 @@ const Xe = (e) => {
878
878
  * @see https://tailwindcss.com/docs/align-self
879
879
  */
880
880
  "align-self": [{
881
- self: ["auto", ...B(), {
881
+ self: ["auto", ...G(), {
882
882
  baseline: ["", "last"]
883
883
  }]
884
884
  }],
@@ -894,14 +894,14 @@ const Xe = (e) => {
894
894
  * @see https://tailwindcss.com/docs/place-items
895
895
  */
896
896
  "place-items": [{
897
- "place-items": [...B(), "baseline"]
897
+ "place-items": [...G(), "baseline"]
898
898
  }],
899
899
  /**
900
900
  * Place Self
901
901
  * @see https://tailwindcss.com/docs/place-self
902
902
  */
903
903
  "place-self": [{
904
- "place-self": ["auto", ...B()]
904
+ "place-self": ["auto", ...G()]
905
905
  }],
906
906
  // Spacing
907
907
  /**
@@ -3033,7 +3033,7 @@ const fw = {
3033
3033
  }, h = M(() => {
3034
3034
  d.current && cancelAnimationFrame(d.current), d.current = requestAnimationFrame(u);
3035
3035
  }, []);
3036
- we(() => {
3036
+ ve(() => {
3037
3037
  h();
3038
3038
  const f = () => h();
3039
3039
  window.addEventListener("resize", f);
@@ -3042,10 +3042,10 @@ const fw = {
3042
3042
  window.removeEventListener("resize", f), m && m.disconnect(), d.current && cancelAnimationFrame(d.current);
3043
3043
  };
3044
3044
  }, [e, h]);
3045
- const g = G(
3045
+ const g = B(
3046
3046
  () => typeof e == "string" ? e : l,
3047
3047
  [l, e]
3048
- ), p = G(() => i ? "" : r ? g : "", [g, i, r]);
3048
+ ), p = B(() => i ? "" : r ? g : "", [g, i, r]);
3049
3049
  return /* @__PURE__ */ z(ag, { ...o, children: [
3050
3050
  /* @__PURE__ */ v(
3051
3051
  cg,
@@ -3478,8 +3478,8 @@ const Pw = "flex", Tw = "pb-1 mt-2", Mw = {
3478
3478
  isOpened: l,
3479
3479
  onToggle: c
3480
3480
  }) => {
3481
- const [d, u] = k(s), [h, g] = k(!0), p = G(() => typeof l == "boolean", [l]), f = p ? l : h;
3482
- we(() => {
3481
+ const [d, u] = k(s), [h, g] = k(!0), p = B(() => typeof l == "boolean", [l]), f = p ? l : h;
3482
+ ve(() => {
3483
3483
  p && u(l ? s : Sa);
3484
3484
  }, [p, l, s]);
3485
3485
  const m = X([
@@ -4651,7 +4651,7 @@ var J1 = /* @__PURE__ */ gt(function(t) {
4651
4651
  "children"
4652
4652
  ]);
4653
4653
  const [o, n] = eb(i);
4654
- return we(() => {
4654
+ return ve(() => {
4655
4655
  if (n) {
4656
4656
  const r = Dg();
4657
4657
  return ++Kd, () => {
@@ -4718,7 +4718,7 @@ function ib() {
4718
4718
  }), ya;
4719
4719
  }
4720
4720
  var ob = ib();
4721
- const nb = /* @__PURE__ */ sb(ob), ni = typeof window < "u" ? Wt : we;
4721
+ const nb = /* @__PURE__ */ sb(ob), ni = typeof window < "u" ? Wt : ve;
4722
4722
  function rb(e, t, s) {
4723
4723
  const [i, o] = k(
4724
4724
  () => t(e)
@@ -4761,10 +4761,10 @@ function Tg(e, t) {
4761
4761
  const s = [
4762
4762
  ...t || []
4763
4763
  ];
4764
- return t == null && typeof e != "function" && s.push(e), G(() => typeof e == "function" ? e() : e, s);
4764
+ return t == null && typeof e != "function" && s.push(e), B(() => typeof e == "function" ? e() : e, s);
4765
4765
  }
4766
4766
  function lb(e) {
4767
- return G(
4767
+ return B(
4768
4768
  () => e.hooks.dragSource(),
4769
4769
  [
4770
4770
  e
@@ -4772,7 +4772,7 @@ function lb(e) {
4772
4772
  );
4773
4773
  }
4774
4774
  function cb(e) {
4775
- return G(
4775
+ return B(
4776
4776
  () => e.hooks.dragPreview(),
4777
4777
  [
4778
4778
  e
@@ -5138,7 +5138,7 @@ function ro() {
5138
5138
  return be(e != null, "Expected drag drop context"), e;
5139
5139
  }
5140
5140
  function wb(e, t) {
5141
- const s = ro(), i = G(
5141
+ const s = ro(), i = B(
5142
5142
  () => new Cb(s.getBackend()),
5143
5143
  [
5144
5144
  s
@@ -5154,7 +5154,7 @@ function wb(e, t) {
5154
5154
  }
5155
5155
  function bb() {
5156
5156
  const e = ro();
5157
- return G(
5157
+ return B(
5158
5158
  () => new db(e),
5159
5159
  [
5160
5160
  e
@@ -5184,21 +5184,21 @@ class Sb {
5184
5184
  }
5185
5185
  }
5186
5186
  function yb(e, t, s) {
5187
- const i = G(
5187
+ const i = B(
5188
5188
  () => new Sb(e, t, s),
5189
5189
  [
5190
5190
  t,
5191
5191
  s
5192
5192
  ]
5193
5193
  );
5194
- return we(() => {
5194
+ return ve(() => {
5195
5195
  i.spec = e;
5196
5196
  }, [
5197
5197
  e
5198
5198
  ]), i;
5199
5199
  }
5200
5200
  function Rb(e) {
5201
- return G(() => {
5201
+ return B(() => {
5202
5202
  const t = e.type;
5203
5203
  return be(t != null, "spec.type must be defined"), t;
5204
5204
  }, [
@@ -5231,7 +5231,7 @@ function Fb(e, t) {
5231
5231
  ];
5232
5232
  }
5233
5233
  function Eb(e) {
5234
- return G(
5234
+ return B(
5235
5235
  () => e.hooks.dropTarget(),
5236
5236
  [
5237
5237
  e
@@ -5239,7 +5239,7 @@ function Eb(e) {
5239
5239
  );
5240
5240
  }
5241
5241
  function Db(e) {
5242
- const t = ro(), s = G(
5242
+ const t = ro(), s = B(
5243
5243
  () => new vb(t.getBackend()),
5244
5244
  [
5245
5245
  t
@@ -5251,7 +5251,7 @@ function Db(e) {
5251
5251
  }
5252
5252
  function Pb() {
5253
5253
  const e = ro();
5254
- return G(
5254
+ return B(
5255
5255
  () => new ub(e),
5256
5256
  [
5257
5257
  e
@@ -5260,7 +5260,7 @@ function Pb() {
5260
5260
  }
5261
5261
  function Tb(e) {
5262
5262
  const { accept: t } = e;
5263
- return G(() => (be(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
5263
+ return B(() => (be(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
5264
5264
  t
5265
5265
  ]), [
5266
5266
  t
@@ -5285,13 +5285,13 @@ class Mb {
5285
5285
  }
5286
5286
  }
5287
5287
  function Ib(e, t) {
5288
- const s = G(
5288
+ const s = B(
5289
5289
  () => new Mb(e, t),
5290
5290
  [
5291
5291
  t
5292
5292
  ]
5293
5293
  );
5294
- return we(() => {
5294
+ return ve(() => {
5295
5295
  s.spec = e;
5296
5296
  }, [
5297
5297
  e
@@ -5567,7 +5567,7 @@ var ur = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ur ||
5567
5567
  t(c, s);
5568
5568
  }, [t, s]), a = M(function(c) {
5569
5569
  t(c, s);
5570
- }, [t, s]), l = G(function() {
5570
+ }, [t, s]), l = B(function() {
5571
5571
  return Ze(Ze({ position: "absolute", userSelect: "none" }, Wb[s]), o ?? {});
5572
5572
  }, [o, s]);
5573
5573
  return v("div", { className: n || void 0, style: l, onMouseDown: r, onTouchStart: a, children: i });
@@ -5901,8 +5901,8 @@ var ur = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ur ||
5901
5901
  var W = S / this.window.innerWidth * 100;
5902
5902
  S = "".concat(W, "vw");
5903
5903
  } else if (p.endsWith("vh")) {
5904
- var B = S / this.window.innerHeight * 100;
5905
- S = "".concat(B, "vh");
5904
+ var G = S / this.window.innerHeight * 100;
5905
+ S = "".concat(G, "vh");
5906
5906
  }
5907
5907
  }
5908
5908
  if (f && typeof f == "string") {
@@ -5913,8 +5913,8 @@ var ur = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ur ||
5913
5913
  var W = b / this.window.innerWidth * 100;
5914
5914
  b = "".concat(W, "vw");
5915
5915
  } else if (f.endsWith("vh")) {
5916
- var B = b / this.window.innerHeight * 100;
5917
- b = "".concat(B, "vh");
5916
+ var G = b / this.window.innerHeight * 100;
5917
+ b = "".concat(G, "vh");
5918
5918
  }
5919
5919
  }
5920
5920
  var J = {
@@ -6021,7 +6021,7 @@ const Qb = ({ side: e, className: t }) => {
6021
6021
  u(!1);
6022
6022
  const S = m.current?.resizable?.getBoundingClientRect(), y = S ? Math.round(S.width) : t;
6023
6023
  p || g(y), n?.(y);
6024
- }, [n, p, t]), b = G(() => {
6024
+ }, [n, p, t]), b = B(() => {
6025
6025
  const S = a === ur.Left, y = /* @__PURE__ */ v(
6026
6026
  Xb,
6027
6027
  {
@@ -6107,7 +6107,7 @@ const Lg = ({
6107
6107
  emptyPlaceholder: i = "—",
6108
6108
  className: o
6109
6109
  }) => {
6110
- const n = Ag(e), r = G(() => n ? new Intl.DateTimeFormat(t, s).format(n) : i, [n, i, t, s]), a = n ? n.toISOString() : void 0;
6110
+ const n = Ag(e), r = B(() => n ? new Intl.DateTimeFormat(t, s).format(n) : i, [n, i, t, s]), a = n ? n.toISOString() : void 0;
6111
6111
  return /* @__PURE__ */ v(
6112
6112
  os,
6113
6113
  {
@@ -6200,7 +6200,7 @@ const n0 = X(
6200
6200
  }
6201
6201
  })
6202
6202
  ]
6203
- }), B = LC(W, {
6203
+ }), G = LC(W, {
6204
6204
  enabled: i.includes(At.Click) && !n
6205
6205
  }), J = Yh(W, {
6206
6206
  enabled: i.includes(At.Hover) && !n,
@@ -6216,7 +6216,7 @@ const n0 = X(
6216
6216
  return !(g?.current && le instanceof Node && g.current.contains(le));
6217
6217
  }
6218
6218
  }), H = gc(W, { role: "menu" }), { getReferenceProps: se, getFloatingProps: $ } = pc([
6219
- B,
6219
+ G,
6220
6220
  J,
6221
6221
  re,
6222
6222
  H
@@ -6253,7 +6253,7 @@ const n0 = X(
6253
6253
  },
6254
6254
  [m, n, j, x, i, R]
6255
6255
  );
6256
- we(() => {
6256
+ ve(() => {
6257
6257
  n && x && R(!1);
6258
6258
  }, [n, x, R]);
6259
6259
  const Y = M(
@@ -6261,7 +6261,7 @@ const n0 = X(
6261
6261
  L.disabled || (L.onClick?.({ key: L.key, domEvent: le }), t?.onClick?.({ key: L.key, domEvent: le }), R(!1));
6262
6262
  },
6263
6263
  [t, R]
6264
- ), ee = G(() => s ? s() : t ? /* @__PURE__ */ z(je, { children: [
6264
+ ), ee = B(() => s ? s() : t ? /* @__PURE__ */ z(je, { children: [
6265
6265
  t.header && /* @__PURE__ */ v(je, { children: typeof t.header == "function" ? t.header() : t.header }),
6266
6266
  /* @__PURE__ */ v("div", { role: "none", className: "py-1", children: t.items.map((L) => L.type === Fl.Divider ? /* @__PURE__ */ v(
6267
6267
  "div",
@@ -6325,7 +6325,7 @@ const n0 = X(
6325
6325
  onContextMenu: Z,
6326
6326
  onMouseDown: Q
6327
6327
  });
6328
- return we(() => {
6328
+ return ve(() => {
6329
6329
  if (!x) return;
6330
6330
  const L = P.reference.current;
6331
6331
  let le = null;
@@ -6441,7 +6441,7 @@ const ou = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
6441
6441
  return e >= 1024 ? qs.Desktop : e < 640 ? qs.Mobile : qs.Tablet;
6442
6442
  }, u0 = () => {
6443
6443
  const [e, t] = k(nu());
6444
- return we(() => {
6444
+ return ve(() => {
6445
6445
  const s = () => t(nu());
6446
6446
  return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
6447
6447
  }, []), e;
@@ -6454,7 +6454,7 @@ const ou = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
6454
6454
  smallScreenContainerClassName: n,
6455
6455
  smallScreenDropdownItemClassName: r
6456
6456
  }) => {
6457
- const [a, l] = k(!1), [c, d] = k(!1), [u, h] = k(!1), g = u0(), p = g === qs.Mobile || o === hr.Tablet && g === qs.Tablet, f = i === xl.Horizontal, m = N(null), C = N(null), w = N(null), b = e.find((x) => x.id === t), S = G(
6457
+ const [a, l] = k(!1), [c, d] = k(!1), [u, h] = k(!1), g = u0(), p = g === qs.Mobile || o === hr.Tablet && g === qs.Tablet, f = i === xl.Horizontal, m = N(null), C = N(null), w = N(null), b = e.find((x) => x.id === t), S = B(
6458
6458
  () => X(
6459
6459
  "flex gap-2",
6460
6460
  f ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
@@ -6464,11 +6464,11 @@ const ou = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
6464
6464
  const x = C.current;
6465
6465
  x && h(x.scrollWidth > x.clientWidth);
6466
6466
  }, []);
6467
- return we(() => {
6467
+ return ve(() => {
6468
6468
  y();
6469
6469
  const x = new ResizeObserver(() => y()), E = C.current;
6470
6470
  return E && x.observe(E), () => x.disconnect();
6471
- }, [e, y]), we(() => {
6471
+ }, [e, y]), ve(() => {
6472
6472
  const x = w.current, E = C.current;
6473
6473
  if (!x || !E) return;
6474
6474
  const R = x.offsetLeft, D = R + x.offsetWidth, T = E.scrollLeft, F = T + E.clientWidth;
@@ -6647,7 +6647,7 @@ const ou = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
6647
6647
  children: o,
6648
6648
  titleClassName: n
6649
6649
  }) => {
6650
- const r = G(() => e?.length ? e : HC.toArray(o).filter(Cc).map((c) => {
6650
+ const r = B(() => e?.length ? e : HC.toArray(o).filter(Cc).map((c) => {
6651
6651
  const d = c.props, { titleClassName: u, isLast: h, separator: g, ...p } = d;
6652
6652
  return p;
6653
6653
  }), [e, o]), a = M(
@@ -6656,7 +6656,7 @@ const ou = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
6656
6656
  u.onClick ? u.onClick(c.domEvent) : u.href && (window.location.href = u.href);
6657
6657
  },
6658
6658
  [r]
6659
- ), l = G(() => {
6659
+ ), l = B(() => {
6660
6660
  if (r.length === 0) return null;
6661
6661
  if (r.length <= 3)
6662
6662
  return r.map((p, f) => /* @__PURE__ */ Eo(
@@ -6842,26 +6842,26 @@ const ou = () => typeof window < "u" && window.innerWidth < 640, nu = () => {
6842
6842
  inputRef: R
6843
6843
  }) => {
6844
6844
  const D = N(null), T = fc([R, D]);
6845
- we(() => {
6845
+ ve(() => {
6846
6846
  const W = D.current;
6847
6847
  if (!W) return;
6848
- const B = (J) => {
6848
+ const G = (J) => {
6849
6849
  J.preventDefault();
6850
6850
  };
6851
- return W.addEventListener("wheel", B, { passive: !1 }), () => {
6852
- W.removeEventListener("wheel", B);
6851
+ return W.addEventListener("wheel", G, { passive: !1 }), () => {
6852
+ W.removeEventListener("wheel", G);
6853
6853
  };
6854
6854
  }, []);
6855
6855
  const F = c === "number" || p !== void 0 || f !== void 0, P = (W) => {
6856
6856
  x0(W, c, p, f);
6857
6857
  }, A = (W) => {
6858
- const B = W.currentTarget.value;
6859
- if (F && B !== "") {
6860
- const J = parseFloat(B);
6861
- if (isNaN(J) && B !== "-" && B !== "." || !isNaN(J) && (p !== void 0 && J < p || f !== void 0 && J > f))
6858
+ const G = W.currentTarget.value;
6859
+ if (F && G !== "") {
6860
+ const J = parseFloat(G);
6861
+ if (isNaN(J) && G !== "-" && G !== "." || !isNaN(J) && (p !== void 0 && J < p || f !== void 0 && J > f))
6862
6862
  return;
6863
6863
  }
6864
- g?.(B || void 0);
6864
+ g?.(G || void 0);
6865
6865
  };
6866
6866
  return /* @__PURE__ */ z(
6867
6867
  "div",
@@ -7557,7 +7557,7 @@ const _0 = {
7557
7557
  allowClear: d = !0
7558
7558
  }) => {
7559
7559
  const [u, h] = k(t || "");
7560
- we(() => {
7560
+ ve(() => {
7561
7561
  h(t || "");
7562
7562
  }, [t]);
7563
7563
  const g = M(
@@ -7703,7 +7703,7 @@ const _0 = {
7703
7703
  const S = d.filter((y, x) => x !== b);
7704
7704
  u(S), l?.(S);
7705
7705
  };
7706
- return we(() => {
7706
+ return ve(() => {
7707
7707
  const b = new ResizeObserver(() => {
7708
7708
  if (c.current) {
7709
7709
  const S = c.current.scrollHeight > c.current.clientHeight + 10;
@@ -7813,15 +7813,17 @@ const Z0 = ({
7813
7813
  dismissRef: D,
7814
7814
  onFooterClick: T
7815
7815
  }) => {
7816
- const F = vc(), [P, A] = k(!1), [W, B] = k(
7816
+ const F = vc(), [P, A] = k(!1), [W, G] = k(
7817
7817
  R && l || ""
7818
- ), J = N(null), re = i !== void 0, [H, se] = k(o), $ = re ? i : H, j = G(() => t ? Array.isArray($) ? $ : [] : typeof $ == "string" ? [$] : [], [$, t]), Z = G(() => {
7818
+ ), J = N(null), re = i !== void 0, [H, se] = k(o), $ = re ? i : H, j = B(() => t ? Array.isArray($) ? $ : [] : typeof $ == "string" ? [$] : [], [$, t]), Z = B(() => {
7819
7819
  const _ = W.trim().toLowerCase();
7820
7820
  return _ ? e.filter((te) => te.label.toLowerCase().includes(_)) : e;
7821
7821
  }, [e, W]);
7822
- we(() => {
7823
- !P && !R && B("");
7824
- }, [R, P]);
7822
+ ve(() => {
7823
+ !P && !R && G("");
7824
+ }, [R, P]), ve(() => {
7825
+ R && G(l || "");
7826
+ }, [l, R]);
7825
7827
  const Q = M(
7826
7828
  (_) => {
7827
7829
  re || se(_), E?.(_);
@@ -7843,10 +7845,10 @@ const Z0 = ({
7843
7845
  Q(fe);
7844
7846
  },
7845
7847
  [t, j, Q]
7846
- ), he = G(
7848
+ ), he = B(
7847
7849
  () => Z.filter((_) => !_.disabled),
7848
7850
  [Z]
7849
- ), L = G(
7851
+ ), L = B(
7850
7852
  () => he.filter((_) => j.includes(_.value)).length,
7851
7853
  [he, j]
7852
7854
  ), le = (_) => {
@@ -7861,7 +7863,7 @@ const Z0 = ({
7861
7863
  he.forEach((te) => _.add(te.value)), Q(Array.from(_));
7862
7864
  }
7863
7865
  }, Re = j.length > 0;
7864
- we(() => {
7866
+ ve(() => {
7865
7867
  P && R && !t && !C && requestAnimationFrame(() => {
7866
7868
  const _ = J.current;
7867
7869
  if (!_) return;
@@ -7870,7 +7872,7 @@ const Z0 = ({
7870
7872
  _.setSelectionRange?.(te, te);
7871
7873
  });
7872
7874
  }, [P, R, t, C]);
7873
- const Ne = !t && Re ? j[0] : void 0, Te = G(
7875
+ const Ne = !t && Re ? j[0] : void 0, Te = B(
7874
7876
  () => Ne ? e.find((_) => _.value === Ne) : void 0,
7875
7877
  [e, Ne]
7876
7878
  ), ct = M(() => !t || j.length === 0 ? null : /* @__PURE__ */ v(
@@ -7880,7 +7882,7 @@ const Z0 = ({
7880
7882
  selectedValues: j,
7881
7883
  handleRemoveTag: ee
7882
7884
  }
7883
- ), [t, e, j, ee]), ve = M(() => t ? Re ? ct() : /* @__PURE__ */ v("span", { className: "text-secondary truncate", children: c }) : Te ? /* @__PURE__ */ z(je, { children: [
7885
+ ), [t, e, j, ee]), we = M(() => t ? Re ? ct() : /* @__PURE__ */ v("span", { className: "text-secondary truncate", children: c }) : Te ? /* @__PURE__ */ z(je, { children: [
7884
7886
  Te.icon && /* @__PURE__ */ v(He, { icon: Te.icon }),
7885
7887
  /* @__PURE__ */ v(
7886
7888
  os,
@@ -7898,14 +7900,14 @@ const Z0 = ({
7898
7900
  c,
7899
7901
  ct,
7900
7902
  Te
7901
- ]), Fe = G(() => W || Te?.label || "", [W, Te]);
7903
+ ]), Fe = B(() => W || Te?.label || "", [W, Te]);
7902
7904
  Vr(D, () => ({
7903
7905
  dismiss: () => {
7904
7906
  A(!1);
7905
7907
  }
7906
7908
  }));
7907
7909
  const Le = () => {
7908
- B(
7910
+ G(
7909
7911
  j.length === 1 ? Te?.label ?? W : ""
7910
7912
  );
7911
7913
  };
@@ -7934,7 +7936,7 @@ const Z0 = ({
7934
7936
  Wg,
7935
7937
  {
7936
7938
  placeholder: u,
7937
- onChange: B,
7939
+ onChange: G,
7938
7940
  value: W,
7939
7941
  elementId: `search-${s || F}`
7940
7942
  }
@@ -8074,7 +8076,7 @@ const Z0 = ({
8074
8076
  type: "text",
8075
8077
  placeholder: u ?? c,
8076
8078
  value: Fe,
8077
- onChange: (_) => B(_.currentTarget.value),
8079
+ onChange: (_) => G(_.currentTarget.value),
8078
8080
  onFocus: () => !C && A(!0),
8079
8081
  onMouseDown: (_) => {
8080
8082
  Le(), _.stopPropagation();
@@ -8087,7 +8089,7 @@ const Z0 = ({
8087
8089
  disabled: C,
8088
8090
  "aria-disabled": C
8089
8091
  }
8090
- ) }) : /* @__PURE__ */ v("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: ve() }),
8092
+ ) }) : /* @__PURE__ */ v("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: we() }),
8091
8093
  !R && /* @__PURE__ */ v(
8092
8094
  He,
8093
8095
  {
@@ -8742,10 +8744,10 @@ const dS = function(t, s, i) {
8742
8744
  ), C = M(
8743
8745
  (F) => n && F?.length > n,
8744
8746
  [n]
8745
- ), w = G(() => p || C(h), [p, h, C]), b = () => {
8747
+ ), w = B(() => p || C(h), [p, h, C]), b = () => {
8746
8748
  g([]), f(!1);
8747
8749
  };
8748
- we(() => {
8750
+ ve(() => {
8749
8751
  b();
8750
8752
  }, [o]);
8751
8753
  const [{ isOver: S, canDrop: y }, x] = Ig(
@@ -8962,7 +8964,7 @@ const dS = function(t, s, i) {
8962
8964
  )
8963
8965
  ] });
8964
8966
  }, pS = /* @__PURE__ */ v(zr, { size: 16 }), fS = /* @__PURE__ */ v(Sv, { size: 16 }), gu = (e) => {
8965
- const [t, s] = k(!1), i = G(() => t ? fS : pS, [t]);
8967
+ const [t, s] = k(!1), i = B(() => t ? fS : pS, [t]);
8966
8968
  return /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(
8967
8969
  Et,
8968
8970
  {
@@ -9133,18 +9135,18 @@ function NS({
9133
9135
  }, [p, o, r]), C = M(() => {
9134
9136
  s && a(e), g(), n?.();
9135
9137
  }, [e, n, s, g]);
9136
- return we(() => {
9138
+ return ve(() => {
9137
9139
  t && (a(e), g(), requestAnimationFrame(() => {
9138
9140
  h.current?.focus(), h.current?.select();
9139
9141
  }));
9140
- }, [t, e, g]), we(() => {
9142
+ }, [t, e, g]), ve(() => {
9141
9143
  const w = h.current;
9142
9144
  if (!t || !w) return;
9143
9145
  const b = (S) => {
9144
9146
  S.key === "Enter" ? (S.preventDefault(), h.current?.blur()) : S.key === "Escape" && (S.preventDefault(), C());
9145
9147
  };
9146
9148
  return w.addEventListener("keydown", b), () => w.removeEventListener("keydown", b);
9147
- }, [t, m, C]), we(() => {
9149
+ }, [t, m, C]), ve(() => {
9148
9150
  if (!t) return;
9149
9151
  const w = h.current;
9150
9152
  if (!w) return;
@@ -9211,10 +9213,10 @@ const pr = ({
9211
9213
  }
9212
9214
  );
9213
9215
  }, Qg = (e) => {
9214
- const [t, s] = k(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i = G(
9216
+ const [t, s] = k(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i = B(
9215
9217
  () => !!e?.onExpandedPathsChange,
9216
9218
  [e?.onExpandedPathsChange]
9217
- ), o = G(
9219
+ ), o = B(
9218
9220
  () => i ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t,
9219
9221
  [i, e?.expandedPaths, t]
9220
9222
  ), n = M(
@@ -9282,7 +9284,7 @@ const pr = ({
9282
9284
  const { path: T, nodeType: F, name: P, items: A } = D, W = F === Ke.FOLDER;
9283
9285
  if (!c && Zg(D)) return null;
9284
9286
  if (!W && !t) return;
9285
- const B = Array.isArray(A) && A.length > 0 && A.some((ee) => ee.nodeType === Ke.FOLDER || t), J = b.has(T), re = n === T, H = i.has(T), se = d === T, $ = o.has(T), j = h && u && T === h && W, Z = C && ((ee) => C(ee, D)), Q = re ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Y = j ? [] : p?.(D) ?? [];
9287
+ const G = Array.isArray(A) && A.length > 0 && A.some((ee) => ee.nodeType === Ke.FOLDER || t), J = b.has(T), re = n === T, H = i.has(T), se = d === T, $ = o.has(T), j = h && u && T === h && W, Z = C && ((ee) => C(ee, D)), Q = re ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", Y = j ? [] : p?.(D) ?? [];
9286
9288
  return /* @__PURE__ */ v("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ z("div", { className: "flex flex-col w-full", children: [
9287
9289
  /* @__PURE__ */ v(
9288
9290
  Et,
@@ -9320,7 +9322,7 @@ const pr = ({
9320
9322
  className: X(
9321
9323
  "flex-shrink-0",
9322
9324
  J && "rotate-90 transition-all",
9323
- $ && !B && "text-transparent"
9325
+ $ && !G && "text-transparent"
9324
9326
  )
9325
9327
  }
9326
9328
  ),
@@ -9396,7 +9398,7 @@ const pr = ({
9396
9398
  searchContainerClassName: C,
9397
9399
  isCompactView: w = !1
9398
9400
  }) => {
9399
- const b = G(() => {
9401
+ const b = B(() => {
9400
9402
  if (!i) return;
9401
9403
  const R = i.split("/").map((T) => T.trim()).filter(Boolean);
9402
9404
  if (!R.length) return [{ title: "/" }];
@@ -11800,7 +11802,7 @@ function Ut(e, t, s) {
11800
11802
  D || !y.isPrimary() || (h?.syncColumnWithState(y, s, T), o?.syncColumnWithState(y, s, T, E), n?.syncColumnWithState(y, s, T, R));
11801
11803
  }, w = (y, x, E) => {
11802
11804
  const R = jp(e, s), D = x.slice(), T = {}, F = {}, P = [], A = [], W = [];
11803
- let B = 0;
11805
+ let G = 0;
11804
11806
  const J = o?.columns.slice() ?? [], re = n?.columns.slice() ?? [];
11805
11807
  for (const $ of y) {
11806
11808
  const j = $.colId;
@@ -11813,7 +11815,7 @@ function Ut(e, t, s) {
11813
11815
  continue;
11814
11816
  }
11815
11817
  const Q = E(j);
11816
- Q ? (C(Q, $, T, F, !1), $t(D, Q)) : (W.push($), B += 1);
11818
+ Q ? (C(Q, $, T, F, !1), $t(D, Q)) : (W.push($), G += 1);
11817
11819
  }
11818
11820
  const H = ($) => C($, null, T, F, !1);
11819
11821
  D.forEach(H), o?.sortColumns(Du.bind(o, T, J)), n?.sortColumns(Du.bind(n, F, re)), i.refreshCols(!1, s);
@@ -11835,7 +11837,7 @@ function Ut(e, t, s) {
11835
11837
  ), ER(t, i, p), c.refresh(s), g.dispatchEvent({
11836
11838
  type: "columnEverythingChanged",
11837
11839
  source: s
11838
- }), R(), { unmatchedAndAutoStates: W, unmatchedCount: B };
11840
+ }), R(), { unmatchedAndAutoStates: W, unmatchedCount: G };
11839
11841
  };
11840
11842
  l?.start();
11841
11843
  let { unmatchedAndAutoStates: b, unmatchedCount: S } = w(
@@ -11881,8 +11883,8 @@ function jp(e, t) {
11881
11883
  if (Vs(T, F))
11882
11884
  return;
11883
11885
  const A = new Set(E);
11884
- for (const B of R)
11885
- A.delete(B) || A.add(B);
11886
+ for (const G of R)
11887
+ A.delete(G) || A.add(G);
11886
11888
  const W = [...A];
11887
11889
  a.dispatchEvent({
11888
11890
  type: x,
@@ -17507,8 +17509,8 @@ var er = {
17507
17509
  this.invalidateVerticalScroll();
17508
17510
  do {
17509
17511
  const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, C = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, S = b + d.rowHeight, y = this.getVScrollPosition(), x = a.divStretchOffset, E = y.top + x, R = y.bottom + x, D = R - E, T = a.getScrollPositionForPixel(b), F = a.getScrollPositionForPixel(S - D), P = Math.min((T + F) / 2, b), A = E + p > b, W = R - f < S;
17510
- let B = null;
17511
- t === "top" ? B = T - p : t === "bottom" ? B = F + f : t === "middle" ? B = P : A ? B = T - p : W && (F - T > D ? B = T - p : B = F + f), B !== null && (this.setVerticalScrollPosition(B), l.redraw({ afterScroll: !0 })), u = m !== d.rowTop || C !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
17512
+ let G = null;
17513
+ t === "top" ? G = T - p : t === "bottom" ? G = F + f : t === "middle" ? G = P : A ? G = T - p : W && (F - T > D ? G = T - p : G = F + f), G !== null && (this.setVerticalScrollPosition(G), l.redraw({ afterScroll: !0 })), u = m !== d.rowTop || C !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
17512
17514
  } while ((u || h) && g < 10);
17513
17515
  if (this.animationFrameSvc?.flushAllFrames(), s < 10 && (d?.stub || !this.beans.rowAutoHeight?.areRowsMeasured())) {
17514
17516
  const p = this.getVScrollPosition().top;
@@ -46233,10 +46235,10 @@ var lC = wc((e, t) => {
46233
46235
  lC,
46234
46236
  e
46235
46237
  ));
46236
- }, []), D = G(() => `ag-cell-wrapper ${m.toString()}`, [m]), T = G(() => `ag-group-expanded ${w.toString()}`, [w]), F = G(
46238
+ }, []), D = B(() => `ag-cell-wrapper ${m.toString()}`, [m]), T = B(() => `ag-group-expanded ${w.toString()}`, [w]), F = B(
46237
46239
  () => `ag-group-contracted ${S.toString()}`,
46238
46240
  [S]
46239
- ), P = G(() => `ag-group-checkbox ${x.toString()}`, [x]), A = d?.componentFromFramework, W = A ? d.componentClass : void 0, B = d == null && p != null, J = ao(p);
46241
+ ), P = B(() => `ag-group-checkbox ${x.toString()}`, [x]), A = d?.componentFromFramework, W = A ? d.componentClass : void 0, G = d == null && p != null, J = ao(p);
46240
46242
  return /* @__PURE__ */ U.createElement(
46241
46243
  "span",
46242
46244
  {
@@ -46247,7 +46249,7 @@ var lC = wc((e, t) => {
46247
46249
  /* @__PURE__ */ U.createElement("span", { className: T, ref: a }),
46248
46250
  /* @__PURE__ */ U.createElement("span", { className: F, ref: l }),
46249
46251
  /* @__PURE__ */ U.createElement("span", { className: P, ref: r }),
46250
- /* @__PURE__ */ U.createElement("span", { className: "ag-group-value", ref: n }, B ? J : A ? /* @__PURE__ */ U.createElement(W, { ...d.params }) : null),
46252
+ /* @__PURE__ */ U.createElement("span", { className: "ag-group-value", ref: n }, G ? J : A ? /* @__PURE__ */ U.createElement(W, { ...d.params }) : null),
46251
46253
  /* @__PURE__ */ U.createElement("span", { className: "ag-group-child-count" }, h)
46252
46254
  );
46253
46255
  }), Gh = lC, Md = Br({
@@ -46255,7 +46257,7 @@ var lC = wc((e, t) => {
46255
46257
  }
46256
46258
  }), HA = (e) => {
46257
46259
  const { initialProps: t, addUpdateCallback: s, CustomComponentClass: i, setMethods: o } = e, [{ key: n, ...r }, a] = k(t);
46258
- return we(() => {
46260
+ return ve(() => {
46259
46261
  s((l) => a(l));
46260
46262
  }, []), /* @__PURE__ */ U.createElement(Md.Provider, { value: { setMethods: o } }, /* @__PURE__ */ U.createElement(i, { key: n, ...r }));
46261
46263
  }, GA = gt(HA), BA = 0;
@@ -46729,10 +46731,10 @@ var e8 = 1e3, t8 = class {
46729
46731
  Wt(
46730
46732
  () => un(i, s, d.current, u),
46731
46733
  [i]
46732
- ), we(() => {
46734
+ ), ve(() => {
46733
46735
  e.setDragSource(l.current);
46734
46736
  }, [i]);
46735
- const p = G(() => !!(i?.componentFromFramework && uo(i.componentClass)), [i]), f = i?.componentFromFramework, m = i?.componentClass;
46737
+ const p = B(() => !!(i?.componentFromFramework && uo(i.componentClass)), [i]), f = i?.componentFromFramework, m = i?.componentClass;
46736
46738
  return /* @__PURE__ */ U.createElement("div", { ref: g, style: n, className: "ag-header-cell", role: "columnheader" }, /* @__PURE__ */ U.createElement("div", { ref: c, className: "ag-header-cell-resize", role: "presentation" }), /* @__PURE__ */ U.createElement("div", { ref: d, className: "ag-header-cell-comp-wrapper", role: "presentation" }, f ? p ? /* @__PURE__ */ U.createElement(m, { ...i.params }) : /* @__PURE__ */ U.createElement(m, { ...i.params, ref: u }) : null));
46737
46739
  }, i8 = gt(s8), o8 = class {
46738
46740
  constructor(e, t) {
@@ -46785,8 +46787,8 @@ var e8 = 1e3, t8 = class {
46785
46787
  () => un(g, t, w.current, E),
46786
46788
  [g]
46787
46789
  );
46788
- const D = G(() => n.toString(), [n]), T = G(() => a.toString(), [a]), F = G(() => c.toString(), [c]), P = G(() => !!(g && g.componentFromFramework && uo(g.componentClass)), [g]), A = G(() => s.get("reactiveCustomComponents"), []), W = G(() => s.get("enableFilterHandlers"), []), [B, J] = k();
46789
- we(() => {
46790
+ const D = B(() => n.toString(), [n]), T = B(() => a.toString(), [a]), F = B(() => c.toString(), [c]), P = B(() => !!(g && g.componentFromFramework && uo(g.componentClass)), [g]), A = B(() => s.get("reactiveCustomComponents"), []), W = B(() => s.get("enableFilterHandlers"), []), [G, J] = k();
46791
+ ve(() => {
46790
46792
  if (g?.componentFromFramework)
46791
46793
  if (A) {
46792
46794
  const $ = W ? o8 : $A, j = new $(g.params, () => f((Z) => Z + 1));
@@ -46794,12 +46796,12 @@ var e8 = 1e3, t8 = class {
46794
46796
  } else
46795
46797
  Id();
46796
46798
  }, [g]);
46797
- const re = B?.getProps(), H = g?.componentFromFramework, se = g?.componentClass;
46799
+ const re = G?.getProps(), H = g?.componentFromFramework, se = g?.componentClass;
46798
46800
  return /* @__PURE__ */ U.createElement("div", { ref: R, style: i, className: D, role: "gridcell" }, /* @__PURE__ */ U.createElement("div", { ref: w, className: T, role: "presentation" }, H ? A ? re && /* @__PURE__ */ U.createElement(
46799
46801
  Md.Provider,
46800
46802
  {
46801
46803
  value: {
46802
- setMethods: ($) => B.setMethods($)
46804
+ setMethods: ($) => G.setMethods($)
46803
46805
  }
46804
46806
  },
46805
46807
  /* @__PURE__ */ U.createElement(se, { ...re })
@@ -46852,16 +46854,16 @@ var e8 = 1e3, t8 = class {
46852
46854
  };
46853
46855
  e.setComp(T, D, m.current, C.current, p.current);
46854
46856
  }, []);
46855
- Wt(() => un(h, t, C.current), [h]), we(() => {
46857
+ Wt(() => un(h, t, C.current), [h]), ve(() => {
46856
46858
  f.current && e.setDragSource(f.current);
46857
46859
  }, [h]);
46858
- const S = G(() => !!(h?.componentFromFramework && uo(h.componentClass)), [h]), y = G(() => "ag-header-group-cell " + o.toString(), [o]), x = G(
46860
+ const S = B(() => !!(h?.componentFromFramework && uo(h.componentClass)), [h]), y = B(() => "ag-header-group-cell " + o.toString(), [o]), x = B(
46859
46861
  () => "ag-header-cell-resize " + r.toString(),
46860
46862
  [r]
46861
46863
  ), E = h?.componentFromFramework, R = h?.componentClass;
46862
46864
  return /* @__PURE__ */ U.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ U.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, E ? S ? /* @__PURE__ */ U.createElement(R, { ...h.params }) : /* @__PURE__ */ U.createElement(R, { ...h.params, ref: w }) : null), /* @__PURE__ */ U.createElement("div", { ref: m, "aria-hidden": l, className: x }));
46863
46865
  }, l8 = gt(a8), c8 = ({ ctrl: e }) => {
46864
- const { gos: t, context: s } = et(pt), { topOffset: i, rowHeight: o } = G(() => e.getTopAndHeight(), []), n = G(() => t.get("tabIndex"), []), [r, a] = k(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = k(() => o + "px"), [u, h] = k(() => i + "px"), g = N(null), [p, f] = k(() => e.getUpdatedHeaderCtrls()), m = N(), C = N(null), w = M((y) => {
46866
+ const { gos: t, context: s } = et(pt), { topOffset: i, rowHeight: o } = B(() => e.getTopAndHeight(), []), n = B(() => t.get("tabIndex"), []), [r, a] = k(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = k(() => o + "px"), [u, h] = k(() => i + "px"), g = N(null), [p, f] = k(() => e.getUpdatedHeaderCtrls()), m = N(), C = N(null), w = M((y) => {
46865
46867
  if (C.current = y, !y || !e.isAlive() || s.isDestroyed()) {
46866
46868
  m.current = s.destroyBean(m.current);
46867
46869
  return;
@@ -46882,7 +46884,7 @@ var e8 = 1e3, t8 = class {
46882
46884
  }
46883
46885
  };
46884
46886
  e.setComp(x, m.current, !1);
46885
- }, []), b = G(
46887
+ }, []), b = B(
46886
46888
  () => ({
46887
46889
  height: c,
46888
46890
  top: u
@@ -46947,7 +46949,7 @@ var e8 = 1e3, t8 = class {
46947
46949
  setHeightAndMinHeight: (h) => i(h)
46948
46950
  };
46949
46951
  r.current.setComp(u, d, d);
46950
- }, []), l = G(() => "ag-header " + e.toString(), [e]), c = G(
46952
+ }, []), l = B(() => "ag-header " + e.toString(), [e]), c = B(
46951
46953
  () => ({
46952
46954
  height: s,
46953
46955
  minHeight: s
@@ -46956,7 +46958,7 @@ var e8 = 1e3, t8 = class {
46956
46958
  );
46957
46959
  return /* @__PURE__ */ U.createElement("div", { ref: a, className: l, style: c, role: "presentation" }, /* @__PURE__ */ U.createElement(ul, { pinned: "left" }), /* @__PURE__ */ U.createElement(ul, { pinned: null }), /* @__PURE__ */ U.createElement(ul, { pinned: "right" }));
46958
46960
  }, g8 = gt(h8), p8 = (e, t) => {
46959
- we(() => {
46961
+ ve(() => {
46960
46962
  const s = t.current;
46961
46963
  if (s) {
46962
46964
  const i = s.parentElement;
@@ -47013,7 +47015,7 @@ var e8 = 1e3, t8 = class {
47013
47015
  }
47014
47016
  }, m8 = (e) => {
47015
47017
  const t = N(e), s = N(), i = N(!1), o = N(!1), [, n] = k(0);
47016
- i.current && (o.current = !0), we(() => (i.current || (s.current = t.current(), i.current = !0), n((r) => r + 1), () => {
47018
+ i.current && (o.current = !0), ve(() => (i.current || (s.current = t.current(), i.current = !0), n((r) => r + 1), () => {
47017
47019
  o.current && s.current?.();
47018
47020
  }), []);
47019
47021
  }, C8 = (e) => {
@@ -47087,7 +47089,7 @@ var e8 = 1e3, t8 = class {
47087
47089
  const c = l.getGui();
47088
47090
  c && c.parentElement && c.remove(), r.destroyBean(l), o.current = void 0;
47089
47091
  }, []);
47090
- we(() => {
47092
+ ve(() => {
47091
47093
  const l = e != null, c = e?.compDetails && !e.compDetails.componentFromFramework, d = t && s == null;
47092
47094
  if (!(l && c && !d)) {
47093
47095
  a();
@@ -47108,12 +47110,12 @@ var e8 = 1e3, t8 = class {
47108
47110
  return;
47109
47111
  (t ? s : n.current).appendChild(f), o.current = p;
47110
47112
  });
47111
- }, [e, t, i]), we(() => a, []);
47113
+ }, [e, t, i]), ve(() => a, []);
47112
47114
  }, uC = b8, S8 = ({
47113
47115
  cellCtrl: e,
47114
47116
  parent: t
47115
47117
  }) => {
47116
- const s = N(), i = G(() => {
47118
+ const s = N(), i = B(() => {
47117
47119
  const { loadingComp: o } = e.getDeferLoadingCellRenderer();
47118
47120
  return o ? {
47119
47121
  value: void 0,
@@ -47136,14 +47138,14 @@ var e8 = 1e3, t8 = class {
47136
47138
  instanceId: r
47137
47139
  } = e, a = N(), [l, c] = k(
47138
47140
  () => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
47139
- ), [d, u] = k(), [h, g] = k(1), [p, f] = k(), [m, C] = k(!1), [w, b] = k(!1), [S, y] = k(!1), [x, E] = k(), R = G(() => e.isForceWrapper(), [e]), D = G(() => e.getCellAriaRole(), [e]), T = N(null), F = N(null), P = N(null), A = N(), W = N(), B = N(), J = N([]), re = N(), H = N(), [se, $] = k(0), j = M((ve) => {
47140
- H.current = ve, $((Fe) => Fe + 1);
47141
- }, []), Z = l != null && (m || S || w) && (d == null || !!d.popup), Q = R || Z, Y = G(() => e.getCellValueClass(), [e]), ee = M(
47142
- (ve) => {
47143
- if (W.current = ve, ve) {
47144
- const Fe = ve.isCancelBeforeStart && ve.isCancelBeforeStart();
47141
+ ), [d, u] = k(), [h, g] = k(1), [p, f] = k(), [m, C] = k(!1), [w, b] = k(!1), [S, y] = k(!1), [x, E] = k(), R = B(() => e.isForceWrapper(), [e]), D = B(() => e.getCellAriaRole(), [e]), T = N(null), F = N(null), P = N(null), A = N(), W = N(), G = N(), J = N([]), re = N(), H = N(), [se, $] = k(0), j = M((we) => {
47142
+ H.current = we, $((Fe) => Fe + 1);
47143
+ }, []), Z = l != null && (m || S || w) && (d == null || !!d.popup), Q = R || Z, Y = B(() => e.getCellValueClass(), [e]), ee = M(
47144
+ (we) => {
47145
+ if (W.current = we, we) {
47146
+ const Fe = we.isCancelBeforeStart && we.isCancelBeforeStart();
47145
47147
  setTimeout(() => {
47146
- Fe ? (e.stopEditing(!0), e.focusCell(!0)) : (e.cellEditorAttached(), e.enableEditorTooltipFeature(ve));
47148
+ Fe ? (e.stopEditing(!0), e.focusCell(!0)) : (e.cellEditorAttached(), e.enableEditorTooltipFeature(we));
47147
47149
  });
47148
47150
  }
47149
47151
  },
@@ -47152,11 +47154,11 @@ var e8 = 1e3, t8 = class {
47152
47154
  he.current || (he.current = new rn(() => T.current)), uC(l, Q, H.current, se, A, T);
47153
47155
  const L = N();
47154
47156
  Wt(() => {
47155
- const ve = L.current, Fe = l;
47156
- if (L.current = l, ve == null || ve.compDetails == null || Fe == null || Fe.compDetails == null)
47157
+ const we = L.current, Fe = l;
47158
+ if (L.current = l, we == null || we.compDetails == null || Fe == null || Fe.compDetails == null)
47157
47159
  return;
47158
47160
  re.current?.refreshVisibility();
47159
- const Le = ve.compDetails, _ = Fe.compDetails;
47161
+ const Le = we.compDetails, _ = Fe.compDetails;
47160
47162
  if (Le.componentClass != _.componentClass || P.current?.refresh == null)
47161
47163
  return;
47162
47164
  P.current.refresh(_.params) != !0 && g((fe) => fe + 1);
@@ -47168,7 +47170,7 @@ var e8 = 1e3, t8 = class {
47168
47170
  if (!te)
47169
47171
  return;
47170
47172
  const fe = te.getGui();
47171
- ee(te), Le || ((R ? B : T).current?.appendChild(fe), te.afterGuiAttached?.()), E(te);
47173
+ ee(te), Le || ((R ? G : T).current?.appendChild(fe), te.afterGuiAttached?.()), E(te);
47172
47174
  }), () => {
47173
47175
  _.then((te) => {
47174
47176
  const fe = te.getGui();
@@ -47177,8 +47179,8 @@ var e8 = 1e3, t8 = class {
47177
47179
  };
47178
47180
  }, [d]);
47179
47181
  const le = M(
47180
- (ve) => {
47181
- if (B.current = ve, !ve || o.isDestroyed() || !e.isAlive()) {
47182
+ (we) => {
47183
+ if (G.current = we, !we || o.isDestroyed() || !e.isAlive()) {
47182
47184
  const _ = J.current;
47183
47185
  J.current = [];
47184
47186
  for (const te of _)
@@ -47187,7 +47189,7 @@ var e8 = 1e3, t8 = class {
47187
47189
  }
47188
47190
  let Fe;
47189
47191
  const Le = (_) => {
47190
- _ && (ve.insertAdjacentElement("afterbegin", _.getGui()), J.current.push(() => {
47192
+ _ && (we.insertAdjacentElement("afterbegin", _.getGui()), J.current.push(() => {
47191
47193
  Ls(_.getGui()), o.destroyBean(_), re.current === Fe && (re.current = void 0);
47192
47194
  }));
47193
47195
  };
@@ -47195,8 +47197,8 @@ var e8 = 1e3, t8 = class {
47195
47197
  },
47196
47198
  [e, o, S, w, m]
47197
47199
  ), Se = M(() => {
47198
- const ve = !e.isCellSpanning() || F.current, Fe = T.current;
47199
- if (!Fe || !ve || !e || !e.isAlive() || o.isDestroyed()) {
47200
+ const we = !e.isCellSpanning() || F.current, Fe = T.current;
47201
+ if (!Fe || !we || !e || !e.isAlive() || o.isDestroyed()) {
47200
47202
  a.current = o.destroyBean(a.current);
47201
47203
  return;
47202
47204
  }
@@ -47210,7 +47212,7 @@ var e8 = 1e3, t8 = class {
47210
47212
  setIncludeDndSource: (te) => y(te),
47211
47213
  getCellEditor: () => W.current ?? null,
47212
47214
  getCellRenderer: () => P.current ?? A.current,
47213
- getParentOfValue: () => H.current ?? B.current ?? T.current,
47215
+ getParentOfValue: () => H.current ?? G.current ?? T.current,
47214
47216
  setRenderDetails: (te, fe, qe) => {
47215
47217
  const yt = () => {
47216
47218
  c((Ue) => Ue?.compDetails !== te || Ue?.value !== fe || Ue?.force !== qe ? {
@@ -47253,7 +47255,7 @@ var e8 = 1e3, t8 = class {
47253
47255
  const { current: qe } = he;
47254
47256
  qe.toggleCss("ag-cell-value", !Q), qe.toggleCss("ag-cell-inline-editing", !!te && !fe), qe.toggleCss("ag-cell-popup-editing", !!te && !!fe), qe.toggleCss("ag-cell-not-inline-editing", !te || !!fe);
47255
47257
  }
47256
- }, _ = B.current || void 0;
47258
+ }, _ = G.current || void 0;
47257
47259
  e.setComp(
47258
47260
  Le,
47259
47261
  Fe,
@@ -47263,28 +47265,28 @@ var e8 = 1e3, t8 = class {
47263
47265
  s,
47264
47266
  a.current
47265
47267
  );
47266
- }, []), ue = M((ve) => {
47267
- T.current = ve, Se();
47268
- }, []), Ee = M((ve) => {
47269
- F.current = ve, Se();
47270
- }, []), Re = G(() => !!(l?.compDetails?.componentFromFramework && uo(l.compDetails.componentClass)), [l]);
47268
+ }, []), ue = M((we) => {
47269
+ T.current = we, Se();
47270
+ }, []), Ee = M((we) => {
47271
+ F.current = we, Se();
47272
+ }, []), Re = B(() => !!(l?.compDetails?.componentFromFramework && uo(l.compDetails.componentClass)), [l]);
47271
47273
  Wt(() => {
47272
47274
  if (!T.current)
47273
47275
  return;
47274
- const { current: ve } = he;
47275
- ve.toggleCss("ag-cell-value", !Q), ve.toggleCss("ag-cell-inline-editing", !!d && !d.popup), ve.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), ve.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
47276
+ const { current: we } = he;
47277
+ we.toggleCss("ag-cell-value", !Q), we.toggleCss("ag-cell-inline-editing", !!d && !d.popup), we.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), we.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
47276
47278
  });
47277
47279
  const Ne = () => {
47278
- const { compDetails: ve, value: Fe } = l;
47279
- if (!ve)
47280
+ const { compDetails: we, value: Fe } = l;
47281
+ if (!we)
47280
47282
  return Fe?.toString?.() ?? Fe;
47281
- if (ve.componentFromFramework) {
47282
- const Le = ve.componentClass;
47283
- return /* @__PURE__ */ U.createElement(BC, { fallback: /* @__PURE__ */ U.createElement(S8, { cellCtrl: e, parent: T }) }, Re ? /* @__PURE__ */ U.createElement(Le, { ...ve.params, key: h }) : /* @__PURE__ */ U.createElement(Le, { ...ve.params, key: h, ref: P }));
47283
+ if (we.componentFromFramework) {
47284
+ const Le = we.componentClass;
47285
+ return /* @__PURE__ */ U.createElement(BC, { fallback: /* @__PURE__ */ U.createElement(S8, { cellCtrl: e, parent: T }) }, Re ? /* @__PURE__ */ U.createElement(Le, { ...we.params, key: h }) : /* @__PURE__ */ U.createElement(Le, { ...we.params, key: h, ref: P }));
47284
47286
  }
47285
47287
  }, Te = () => {
47286
- const ve = () => l == null ? null : Q ? /* @__PURE__ */ U.createElement("span", { role: "presentation", id: `cell-${r}`, className: Y, ref: j }, Ne()) : Ne(), Fe = (Le) => w8(Le, ee, T.current, e, x);
47287
- return d != null ? d.popup ? /* @__PURE__ */ U.createElement(U.Fragment, null, ve(), Fe(d)) : Fe(d) : ve();
47288
+ const we = () => l == null ? null : Q ? /* @__PURE__ */ U.createElement("span", { role: "presentation", id: `cell-${r}`, className: Y, ref: j }, Ne()) : Ne(), Fe = (Le) => w8(Le, ee, T.current, e, x);
47289
+ return d != null ? d.popup ? /* @__PURE__ */ U.createElement(U.Fragment, null, we(), Fe(d)) : Fe(d) : we();
47288
47290
  }, ct = () => /* @__PURE__ */ U.createElement("div", { ref: ue, style: p, role: D, "col-id": n }, Q ? /* @__PURE__ */ U.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: le }, Te()) : Te());
47289
47291
  return e.isCellSpanning() ? /* @__PURE__ */ U.createElement("div", { ref: Ee, className: "ag-spanned-cell-wrapper", role: "presentation" }, ct()) : ct();
47290
47292
  }, R8 = gt(y8), x8 = ({ rowCtrl: e, containerType: t }) => {
@@ -47294,13 +47296,13 @@ var e8 = 1e3, t8 = class {
47294
47296
  () => c ? e.getInitialRowTop(t) : void 0
47295
47297
  ), [D, T] = k(
47296
47298
  () => c ? e.getInitialTransform(t) : void 0
47297
- ), F = N(null), P = N(), A = N(), W = N(!1), [B, J] = k(0);
47298
- we(() => {
47299
- if (W.current || !y || B > 10)
47299
+ ), F = N(null), P = N(), A = N(), W = N(!1), [G, J] = k(0);
47300
+ ve(() => {
47301
+ if (W.current || !y || G > 10)
47300
47302
  return;
47301
47303
  const ue = F.current?.firstChild;
47302
47304
  ue ? (e.setupDetailRowAutoHeight(ue), W.current = !0) : J((Ee) => Ee + 1);
47303
- }, [y, B]);
47305
+ }, [y, G]);
47304
47306
  const re = N();
47305
47307
  re.current || (re.current = new rn(() => F.current));
47306
47308
  const H = N(() => {
@@ -47356,11 +47358,11 @@ var e8 = 1e3, t8 = class {
47356
47358
  () => un(y, s, F.current, P),
47357
47359
  [y]
47358
47360
  );
47359
- const Q = G(() => {
47361
+ const Q = B(() => {
47360
47362
  const ue = { top: E, transform: D };
47361
47363
  return Object.assign(ue, m), ue;
47362
- }, [E, D, m]), Y = l && y?.componentFromFramework, ee = !l && j != null, he = G(() => !!(y?.componentFromFramework && uo(y.componentClass)), [y]), L = N(!1);
47363
- we(() => {
47364
+ }, [E, D, m]), Y = l && y?.componentFromFramework, ee = !l && j != null, he = B(() => !!(y?.componentFromFramework && uo(y.componentClass)), [y]), L = N(!1);
47365
+ ve(() => {
47364
47366
  L.current = he && !!y && !!i.get("reactiveCustomComponents");
47365
47367
  }, [he, y]);
47366
47368
  const le = () => j?.map((ue) => /* @__PURE__ */ U.createElement(
@@ -47388,14 +47390,14 @@ var e8 = 1e3, t8 = class {
47388
47390
  ee ? le() : Y ? Se() : null
47389
47391
  );
47390
47392
  }, Wh = gt(x8), F8 = ({ name: e }) => {
47391
- const { context: t, gos: s } = et(pt), i = G(() => ln(e), [e]), o = N(null), n = N(null), r = N(null), a = N([]), l = N([]), [c, d] = k(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = N([]), g = N([]), [p, f] = k(() => []), m = N(!1), C = N(), w = G(() => It("ag-viewport", Mf(e)), [e]), b = G(() => It(sr(e)), [e]), S = G(() => It("ag-spanning-container", uF(e)), [e]), y = i.type === "center" || u, x = y ? o : n;
47393
+ const { context: t, gos: s } = et(pt), i = B(() => ln(e), [e]), o = N(null), n = N(null), r = N(null), a = N([]), l = N([]), [c, d] = k(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = N([]), g = N([]), [p, f] = k(() => []), m = N(!1), C = N(), w = B(() => It("ag-viewport", Mf(e)), [e]), b = B(() => It(sr(e)), [e]), S = B(() => It("ag-spanning-container", uF(e)), [e]), y = i.type === "center" || u, x = y ? o : n;
47392
47394
  Ks(" AG Row Container " + e + " ", x);
47393
47395
  const E = M(() => {
47394
- const B = !y || o.current != null, J = n.current != null, re = !u || r.current != null;
47395
- return B && J && re;
47396
+ const G = !y || o.current != null, J = n.current != null, re = !u || r.current != null;
47397
+ return G && J && re;
47396
47398
  }, []), R = M(() => o.current == null && n.current == null && r.current == null, []), D = M(() => {
47397
47399
  if (R() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() && E()) {
47398
- const B = (H) => {
47400
+ const G = (H) => {
47399
47401
  const se = Gr(
47400
47402
  l.current,
47401
47403
  a.current,
@@ -47418,14 +47420,14 @@ var e8 = 1e3, t8 = class {
47418
47420
  },
47419
47421
  setRowCtrls: ({ rowCtrls: H, useFlushSync: se }) => {
47420
47422
  const $ = !!se && a.current.length > 0 && H.length > 0;
47421
- a.current = H, B($);
47423
+ a.current = H, G($);
47422
47424
  },
47423
47425
  setSpannedRowCtrls: (H, se) => {
47424
47426
  const $ = !!se && h.current.length > 0 && H.length > 0;
47425
47427
  h.current = H, J($);
47426
47428
  },
47427
47429
  setDomOrder: (H) => {
47428
- m.current != H && (m.current = H, B(!1));
47430
+ m.current != H && (m.current = H, G(!1));
47429
47431
  },
47430
47432
  setContainerWidth: (H) => {
47431
47433
  n.current && (n.current.style.width = H);
@@ -47442,18 +47444,18 @@ var e8 = 1e3, t8 = class {
47442
47444
  );
47443
47445
  }
47444
47446
  }, [E, R]), T = M(
47445
- (B) => {
47446
- n.current = B, D();
47447
+ (G) => {
47448
+ n.current = G, D();
47447
47449
  },
47448
47450
  [D]
47449
47451
  ), F = M(
47450
- (B) => {
47451
- r.current = B, D();
47452
+ (G) => {
47453
+ r.current = G, D();
47452
47454
  },
47453
47455
  [D]
47454
47456
  ), P = M(
47455
- (B) => {
47456
- o.current = B, D();
47457
+ (G) => {
47458
+ o.current = G, D();
47457
47459
  },
47458
47460
  [D]
47459
47461
  ), A = () => /* @__PURE__ */ U.createElement(
@@ -47463,14 +47465,14 @@ var e8 = 1e3, t8 = class {
47463
47465
  ref: T,
47464
47466
  role: y ? "presentation" : "rowgroup"
47465
47467
  },
47466
- c.map((B) => /* @__PURE__ */ U.createElement(Wh, { rowCtrl: B, containerType: i.type, key: B.instanceId }))
47468
+ c.map((G) => /* @__PURE__ */ U.createElement(Wh, { rowCtrl: G, containerType: i.type, key: G.instanceId }))
47467
47469
  );
47468
47470
  if (!y)
47469
47471
  return A();
47470
- const W = () => /* @__PURE__ */ U.createElement("div", { className: S, ref: F, role: "presentation" }, p.map((B) => /* @__PURE__ */ U.createElement(Wh, { rowCtrl: B, containerType: i.type, key: B.instanceId })));
47472
+ const W = () => /* @__PURE__ */ U.createElement("div", { className: S, ref: F, role: "presentation" }, p.map((G) => /* @__PURE__ */ U.createElement(Wh, { rowCtrl: G, containerType: i.type, key: G.instanceId })));
47471
47473
  return /* @__PURE__ */ U.createElement("div", { className: w, ref: P, role: "rowgroup" }, A(), u ? W() : null);
47472
47474
  }, E8 = gt(F8), D8 = () => {
47473
- const e = et(pt), { context: t, overlays: s } = e, [i, o] = k(""), [n, r] = k(0), [a, l] = k(0), [c, d] = k("0px"), [u, h] = k("0px"), [g, p] = k("100%"), [f, m] = k("0px"), [C, w] = k("0px"), [b, S] = k("100%"), [y, x] = k(!0), [E, R] = k(!0), [D, T] = k(null), [F, P] = k(""), [A, W] = k(null), [B, J] = k("ag-layout-normal"), re = N();
47475
+ const e = et(pt), { context: t, overlays: s } = e, [i, o] = k(""), [n, r] = k(0), [a, l] = k(0), [c, d] = k("0px"), [u, h] = k("0px"), [g, p] = k("100%"), [f, m] = k("0px"), [C, w] = k("0px"), [b, S] = k("100%"), [y, x] = k(!0), [E, R] = k(!0), [D, T] = k(null), [F, P] = k(""), [A, W] = k(null), [G, J] = k("ag-layout-normal"), re = N();
47474
47476
  re.current || (re.current = new rn(() => H.current));
47475
47477
  const H = N(null), se = N(null), $ = N(null), j = N(null), Z = N(null), Q = N(null), Y = N(null), ee = N([]), he = N([]);
47476
47478
  Ks(" AG Grid Body ", H), Ks(" AG Pinned Top ", se), Ks(" AG Sticky Top ", $), Ks(" AG Middle ", Q), Ks(" AG Pinned Bottom ", Y);
@@ -47536,46 +47538,46 @@ var e8 = 1e3, t8 = class {
47536
47538
  $.current,
47537
47539
  j.current
47538
47540
  );
47539
- }, []), le = G(() => It("ag-root", "ag-unselectable", B), [B]), Se = G(
47541
+ }, []), le = B(() => It("ag-root", "ag-unselectable", G), [G]), Se = B(
47540
47542
  () => It(
47541
47543
  "ag-body-viewport",
47542
47544
  i,
47543
- B,
47545
+ G,
47544
47546
  D,
47545
47547
  A
47546
47548
  ),
47547
- [i, B, D, A]
47548
- ), ue = G(() => It("ag-body", B), [B]), Ee = G(
47549
+ [i, G, D, A]
47550
+ ), ue = B(() => It("ag-body", G), [G]), Ee = B(
47549
47551
  () => It("ag-floating-top", y ? "ag-invisible" : null, A),
47550
47552
  [A, y]
47551
- ), Re = G(() => It("ag-sticky-top", A), [A]), Ne = G(
47553
+ ), Re = B(() => It("ag-sticky-top", A), [A]), Ne = B(
47552
47554
  () => It("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, A),
47553
47555
  [A, f]
47554
- ), Te = G(
47556
+ ), Te = B(
47555
47557
  () => It("ag-floating-bottom", E ? "ag-invisible" : null, A),
47556
47558
  [A, E]
47557
- ), ct = G(
47559
+ ), ct = B(
47558
47560
  () => ({
47559
47561
  height: n,
47560
47562
  minHeight: n,
47561
47563
  overflowY: F
47562
47564
  }),
47563
47565
  [n, F]
47564
- ), ve = G(
47566
+ ), we = B(
47565
47567
  () => ({
47566
47568
  height: c,
47567
47569
  top: u,
47568
47570
  width: g
47569
47571
  }),
47570
47572
  [c, u, g]
47571
- ), Fe = G(
47573
+ ), Fe = B(
47572
47574
  () => ({
47573
47575
  height: f,
47574
47576
  bottom: C,
47575
47577
  width: b
47576
47578
  }),
47577
47579
  [f, C, b]
47578
- ), Le = G(
47580
+ ), Le = B(
47579
47581
  () => ({
47580
47582
  height: a,
47581
47583
  minHeight: a,
@@ -47600,7 +47602,7 @@ var e8 = 1e3, t8 = class {
47600
47602
  })), te({
47601
47603
  section: $,
47602
47604
  className: Re,
47603
- style: ve,
47605
+ style: we,
47604
47606
  children: ["stickyTopLeft", "stickyTopCenter", "stickyTopRight", "stickyTopFullWidth"]
47605
47607
  }), te({
47606
47608
  section: j,
@@ -47684,32 +47686,32 @@ var e8 = 1e3, t8 = class {
47684
47686
  },
47685
47687
  // do nothing, as framework users destroy grid by removing the comp
47686
47688
  setRtlClass: s,
47687
- forceFocusOutOfContainer: (B) => {
47688
- if (!B && b.current?.isDisplayed()) {
47689
- b.current.forceFocusOutOfContainer(B);
47689
+ forceFocusOutOfContainer: (G) => {
47690
+ if (!G && b.current?.isDisplayed()) {
47691
+ b.current.forceFocusOutOfContainer(G);
47690
47692
  return;
47691
47693
  }
47692
- f.current?.forceFocusOutOfContainer(B);
47694
+ f.current?.forceFocusOutOfContainer(G);
47693
47695
  },
47694
47696
  updateLayoutClasses: o,
47695
47697
  getFocusableContainers: () => {
47696
- const B = [], J = p.current?.querySelector(".ag-root");
47697
- J && B.push({ getGui: () => J });
47698
+ const G = [], J = p.current?.querySelector(".ag-root");
47699
+ J && G.push({ getGui: () => J });
47698
47700
  for (const re of S.current)
47699
- re.isDisplayed() && B.push(re);
47700
- return B;
47701
+ re.isDisplayed() && G.push(re);
47702
+ return G;
47701
47703
  },
47702
47704
  setCursor: r,
47703
47705
  setUserSelect: l
47704
47706
  };
47705
47707
  A.setComp(W, P, P), d(!0);
47706
47708
  }, []);
47707
- we(() => {
47709
+ ve(() => {
47708
47710
  const P = g.current, A = p.current;
47709
47711
  if (!u || !P || !m || !A || e.isDestroyed())
47710
47712
  return;
47711
47713
  const W = [], {
47712
- watermarkSelector: B,
47714
+ watermarkSelector: G,
47713
47715
  paginationSelector: J,
47714
47716
  sideBarSelector: re,
47715
47717
  statusBarSelector: H,
@@ -47731,19 +47733,19 @@ var e8 = 1e3, t8 = class {
47731
47733
  const Z = j(J.component);
47732
47734
  b.current = Z, S.current.push(Z);
47733
47735
  }
47734
- return B && j(B.component), () => {
47736
+ return G && j(G.component), () => {
47735
47737
  e.destroyBeans(W);
47736
47738
  for (const Z of $)
47737
47739
  Z.remove();
47738
47740
  };
47739
47741
  }, [u, m, e]);
47740
- const E = G(
47742
+ const E = B(
47741
47743
  () => It("ag-root-wrapper", t, i),
47742
47744
  [t, i]
47743
- ), R = G(
47745
+ ), R = B(
47744
47746
  () => It("ag-root-wrapper-body", "ag-focus-managed", i),
47745
47747
  [i]
47746
- ), D = G(
47748
+ ), D = B(
47747
47749
  () => ({
47748
47750
  userSelect: a ?? "",
47749
47751
  WebkitUserSelect: a ?? "",
@@ -47884,13 +47886,13 @@ var e8 = 1e3, t8 = class {
47884
47886
  ), o.current.push(() => {
47885
47887
  t.current = void 0;
47886
47888
  }), t.current && (l.current = t.current.getGridId());
47887
- }, []), p = G(() => ({
47889
+ }, []), p = B(() => ({
47888
47890
  height: "100%",
47889
47891
  ...e.containerStyle || {}
47890
47892
  }), [e.containerStyle]), f = M((C) => {
47891
47893
  c.current && !a.current?.shouldQueueUpdates() ? C() : n.current.push(C);
47892
47894
  }, []);
47893
- we(() => {
47895
+ ve(() => {
47894
47896
  const C = H8(r.current, e);
47895
47897
  r.current = e, f(() => {
47896
47898
  t.current && nR(C, t.current);
@@ -47965,10 +47967,10 @@ var G8 = class extends nT {
47965
47967
  return new cC(e, this.parent, t, o);
47966
47968
  }
47967
47969
  }, B8 = wc((e, t) => {
47968
- const s = et(pt), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = k(() => new Ht()), [c, d] = k(() => new Ht()), [u, h] = k(), [g, p] = k(), f = N(), m = N(null), C = N(), w = G(
47970
+ const s = et(pt), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = k(() => new Ht()), [c, d] = k(() => new Ht()), [u, h] = k(), [g, p] = k(), f = N(), m = N(null), C = N(), w = B(
47969
47971
  () => Oy(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
47970
47972
  [e]
47971
- ), b = G(() => a.toString() + " ag-details-row", [a]), S = G(() => c.toString() + " ag-details-grid", [c]);
47973
+ ), b = B(() => a.toString() + " ag-details-row", [a]), S = B(() => c.toString() + " ag-details-grid", [c]);
47972
47974
  t && Vr(t, () => ({
47973
47975
  refresh() {
47974
47976
  return f.current?.refresh() ?? !1;
@@ -48090,11 +48092,11 @@ const W8 = "h-full", hl = {
48090
48092
  rowData: o = [],
48091
48093
  getRowId: n
48092
48094
  }) => {
48093
- const [r, a] = k(/* @__PURE__ */ new Map()), l = t ?? r, c = G(
48095
+ const [r, a] = k(/* @__PURE__ */ new Map()), l = t ?? r, c = B(
48094
48096
  () => new Set(l.keys()),
48095
48097
  [l]
48096
48098
  ), d = e !== void 0 || t !== void 0;
48097
- we(() => {
48099
+ ve(() => {
48098
48100
  if (e !== void 0 && !t) {
48099
48101
  const p = /* @__PURE__ */ new Map();
48100
48102
  o.forEach((m) => {
@@ -48118,7 +48120,7 @@ const W8 = "h-full", hl = {
48118
48120
  s,
48119
48121
  i
48120
48122
  ]
48121
- ), h = G(() => {
48123
+ ), h = B(() => {
48122
48124
  if (!o.length) return "unchecked";
48123
48125
  const p = o.every(
48124
48126
  (m) => c.has(n(m))
@@ -48190,7 +48192,7 @@ const fC = ({
48190
48192
  onSelectionChangeWithMap: h,
48191
48193
  rowData: t,
48192
48194
  getRowId: g
48193
- }), B = G(
48195
+ }), G = B(
48194
48196
  () => ({
48195
48197
  ...hl,
48196
48198
  oddRowBackgroundColor: p ? hl.oddRowBackgroundColor : hl.backgroundColor,
@@ -48291,7 +48293,7 @@ const fC = ({
48291
48293
  } };
48292
48294
  },
48293
48295
  [i, se, a]
48294
- ), Z = G(
48296
+ ), Z = B(
48295
48297
  () => ({
48296
48298
  colId: "__select",
48297
48299
  headerName: "",
@@ -48309,10 +48311,10 @@ const fC = ({
48309
48311
  headerComponent: H
48310
48312
  }),
48311
48313
  [$, H]
48312
- ), Q = G(() => {
48314
+ ), Q = B(() => {
48313
48315
  const L = (e ?? []).map(j);
48314
48316
  return r ? [Z, ...L] : L;
48315
- }, [e, Z, r, j]), Y = G(
48317
+ }, [e, Z, r, j]), Y = B(
48316
48318
  () => ({
48317
48319
  minWidth: 150,
48318
48320
  resizable: !0,
@@ -48333,7 +48335,7 @@ const fC = ({
48333
48335
  }));
48334
48336
  L.api.updateGridOptions({ columnDefs: le, rowData: t }), L.api.sizeColumnsToFit(), D(L.api), s?.onGridReady?.(L);
48335
48337
  };
48336
- we(() => {
48338
+ ve(() => {
48337
48339
  R && R.redrawRows();
48338
48340
  }, [R, F]);
48339
48341
  const he = M(
@@ -48382,7 +48384,7 @@ const fC = ({
48382
48384
  rowHeight: x,
48383
48385
  cellSelection: !1,
48384
48386
  getRowClass: re,
48385
- theme: IP.withPart(dP).withParams({ ...B }),
48387
+ theme: IP.withPart(dP).withParams({ ...G }),
48386
48388
  autoSizeStrategy: { type: "fitGridWidth" },
48387
48389
  columnDefs: Q,
48388
48390
  defaultColDef: Y,
@@ -48404,7 +48406,7 @@ const fC = ({
48404
48406
  var dc = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e))(dc || {}), ge = /* @__PURE__ */ ((e) => (e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Rename = "rename", e.Download = "download", e.Delete = "delete", e))(ge || {}), ut = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(ut || {}), Tt = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Tt || {}), Je = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(Je || {});
48405
48407
  const mC = () => {
48406
48408
  const [e, t] = k(ou());
48407
- return we(() => {
48409
+ return ve(() => {
48408
48410
  const s = () => t(ou());
48409
48411
  return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
48410
48412
  }, []), e;
@@ -48422,7 +48424,7 @@ const mC = () => {
48422
48424
  showHiddenFilesLabel: d = "Show hidden files",
48423
48425
  hideHiddenFilesLabel: u = "Hide hidden files"
48424
48426
  }) => {
48425
- const h = mC(), g = G(() => [
48427
+ const h = mC(), g = B(() => [
48426
48428
  {
48427
48429
  key: "hidden-files-switch",
48428
48430
  label: i ? u : d,
@@ -48516,7 +48518,7 @@ function q8({
48516
48518
  d.current = f.map(
48517
48519
  (m) => Math.ceil(m.getBoundingClientRect().width)
48518
48520
  );
48519
- }, [e, ...n]), we(() => {
48521
+ }, [e, ...n]), ve(() => {
48520
48522
  if (!r.current) return;
48521
48523
  let f = null;
48522
48524
  const m = () => {
@@ -48874,7 +48876,7 @@ const Y8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
48874
48876
  o,
48875
48877
  P
48876
48878
  ]
48877
- ), B = M(() => {
48879
+ ), G = M(() => {
48878
48880
  D(), P();
48879
48881
  }, [D, P]), J = M(() => {
48880
48882
  T(), P();
@@ -48927,7 +48929,7 @@ const Y8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
48927
48929
  conflictResolutionOpen: b,
48928
48930
  openConflictResolution: R,
48929
48931
  closeConflictResolution: E,
48930
- handleConflictReplace: B,
48932
+ handleConflictReplace: G,
48931
48933
  handleConflictDuplicate: J,
48932
48934
  handleConflictDecideForEach: re
48933
48935
  };
@@ -48937,7 +48939,7 @@ const Y8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
48937
48939
  onSelectionClear: s
48938
48940
  }) => {
48939
48941
  const [i, o] = k(e);
48940
- we(() => {
48942
+ ve(() => {
48941
48943
  o(e), s?.();
48942
48944
  }, [e, s]);
48943
48945
  const n = M(
@@ -49003,7 +49005,7 @@ const Y8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49003
49005
  onUploadArchive: o
49004
49006
  } = {}) => {
49005
49007
  const [n, r] = k(!1), [a, l] = k(!1), [c, d] = k(), u = N(null), h = N(""), g = N([]);
49006
- we(() => {
49008
+ ve(() => {
49007
49009
  let R = 0;
49008
49010
  const D = (A) => {
49009
49011
  iL(A) && A.dataTransfer.types.includes(RS) && (R++, l(!0));
@@ -49091,7 +49093,7 @@ const Y8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49091
49093
  },
49092
49094
  [m]
49093
49095
  );
49094
- we(() => {
49096
+ ve(() => {
49095
49097
  let R = u.current;
49096
49098
  R || (R = document.createElement("input"), R.type = "file", R.multiple = !0, R.style.display = "none", document.body.appendChild(R), u.current = R);
49097
49099
  const D = async () => {
@@ -49128,7 +49130,7 @@ const Y8 = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49128
49130
  }
49129
49131
  const A = P.name.replace(/\.zip$/i, "");
49130
49132
  if (D.some(
49131
- (B) => B.nodeType === Ke.FOLDER && B.name.toLowerCase() === A.toLowerCase()
49133
+ (G) => G.nodeType === Ke.FOLDER && G.name.toLowerCase() === A.toLowerCase()
49132
49134
  )) {
49133
49135
  d(
49134
49136
  i.validationFailed || `Folder with name "${A}" already exists`
@@ -49183,13 +49185,13 @@ const lL = ({
49183
49185
  validationMessages: s,
49184
49186
  onMoveToFiles: i
49185
49187
  }) => {
49186
- const [o, n] = k(), r = G(
49188
+ const [o, n] = k(), r = B(
49187
49189
  () => ({
49188
49190
  ...nL,
49189
49191
  ...s
49190
49192
  }),
49191
49193
  [s]
49192
- ), a = G(() => o?.path, [o]), l = M(
49194
+ ), a = B(() => o?.path, [o]), l = M(
49193
49195
  (g) => {
49194
49196
  const p = ri(e, g);
49195
49197
  p && n(p);
@@ -49272,7 +49274,7 @@ const lL = ({
49272
49274
  onCreateFolder: s,
49273
49275
  onUploadArchive: i
49274
49276
  }) => {
49275
- const o = G(() => {
49277
+ const o = B(() => {
49276
49278
  const r = [];
49277
49279
  return e && (e.newFolder && r.push({
49278
49280
  key: "new-folder",
@@ -49296,7 +49298,7 @@ const lL = ({
49296
49298
  i && i();
49297
49299
  }
49298
49300
  })), r;
49299
- }, [e, t, s, i]), n = G(() => o.length > 0, [o]);
49301
+ }, [e, t, s, i]), n = B(() => o.length > 0, [o]);
49300
49302
  return { newActions: o, isNewButtonVisible: n };
49301
49303
  }, dL = {
49302
49304
  emptyName: "Folder name cannot be empty",
@@ -49307,14 +49309,14 @@ const lL = ({
49307
49309
  onValidateFolderName: s,
49308
49310
  validationMessages: i
49309
49311
  }) => {
49310
- const [o, n] = k(!1), [r, a] = k(null), l = N(e?.path), c = G(
49312
+ const [o, n] = k(!1), [r, a] = k(null), l = N(e?.path), c = B(
49311
49313
  () => ({
49312
49314
  ...dL,
49313
49315
  ...i
49314
49316
  }),
49315
49317
  [i]
49316
49318
  );
49317
- we(() => {
49319
+ ve(() => {
49318
49320
  const p = e?.path;
49319
49321
  l.current !== p && o && (n(!1), a(null)), l.current = p;
49320
49322
  }, [e?.path, o]);
@@ -49370,7 +49372,7 @@ const lL = ({
49370
49372
  }) => {
49371
49373
  const i = t === 0;
49372
49374
  return {
49373
- additionalButtons: G(() => {
49375
+ additionalButtons: B(() => {
49374
49376
  const n = me([
49375
49377
  "hover:text-accent-primary p-1",
49376
49378
  i && "text-controls-disable hover:text-controls-disable disabled:hover:cursor-default"
@@ -49426,11 +49428,11 @@ const lL = ({
49426
49428
  onCreateFolderValidate: A,
49427
49429
  folderCreationValidationMessages: W
49428
49430
  }) => {
49429
- const [B, J] = k(
49431
+ const [G, J] = k(
49430
49432
  /* @__PURE__ */ new Map()
49431
- ), re = G(
49432
- () => new Set(B.keys()),
49433
- [B]
49433
+ ), re = B(
49434
+ () => new Set(G.keys()),
49435
+ [G]
49434
49436
  ), H = M(() => J(/* @__PURE__ */ new Map()), []), { currentPath: se, setCurrentPath: $, handlePathChange: j } = eL({
49435
49437
  path: o,
49436
49438
  onPathChange: m,
@@ -49452,7 +49454,7 @@ const lL = ({
49452
49454
  renameHandler: Ne,
49453
49455
  renameSaveHandler: Te,
49454
49456
  renameCancelHandler: ct,
49455
- renameValidateHandler: ve,
49457
+ renameValidateHandler: we,
49456
49458
  getDisplayName: Fe
49457
49459
  } = lL({
49458
49460
  items: s,
@@ -49460,13 +49462,13 @@ const lL = ({
49460
49462
  validationMessages: E,
49461
49463
  onMoveToFiles: b
49462
49464
  }), [Le, _] = k("");
49463
- we(() => {
49465
+ ve(() => {
49464
49466
  const Me = c?.value;
49465
49467
  Me != null && _(String(Me));
49466
49468
  }, [c?.value]);
49467
49469
  const te = String(
49468
49470
  c?.value ?? Le ?? ""
49469
- ).trim(), fe = G(
49471
+ ).trim(), fe = B(
49470
49472
  () => fu(s, se) ?? s[0],
49471
49473
  [s, se]
49472
49474
  ), {
@@ -49496,7 +49498,7 @@ const lL = ({
49496
49498
  getCopyHeader: p?.getCopyHeader,
49497
49499
  getMoveHeader: p?.getMoveHeader
49498
49500
  });
49499
- we(() => {
49501
+ ve(() => {
49500
49502
  Vt && !Y && ee(se ?? i?.path ?? "/");
49501
49503
  }, [
49502
49504
  Vt,
@@ -49504,7 +49506,7 @@ const lL = ({
49504
49506
  se,
49505
49507
  i?.path,
49506
49508
  ee
49507
- ]), we(() => {
49509
+ ]), ve(() => {
49508
49510
  Vt || ee(void 0);
49509
49511
  }, [Vt, ee]);
49510
49512
  const {
@@ -49565,7 +49567,7 @@ const lL = ({
49565
49567
  onUploadFiles: Sn,
49566
49568
  onUploadArchive: ma,
49567
49569
  onCreateFolder: Co
49568
- }), as = G(() => {
49570
+ }), as = B(() => {
49569
49571
  const Me = jn(te).trim(), zt = fe?.items ?? [];
49570
49572
  let vo = Me ? IS(fe) : zt;
49571
49573
  he || (vo = vo.filter((tt) => !Zg(tt)));
@@ -49666,7 +49668,7 @@ const lL = ({
49666
49668
  toggleTreeCollapse: Se,
49667
49669
  setIsTreeCollapsed: ue,
49668
49670
  selectedIds: re,
49669
- selectedFiles: B,
49671
+ selectedFiles: G,
49670
49672
  setSelectedFiles: J,
49671
49673
  clearSelection: H,
49672
49674
  currentFolder: fe,
@@ -49686,7 +49688,7 @@ const lL = ({
49686
49688
  onRename: Ne,
49687
49689
  onRenameSave: Te,
49688
49690
  onRenameCancel: ct,
49689
- onRenameValidate: ve,
49691
+ onRenameValidate: we,
49690
49692
  getDisplayName: Fe,
49691
49693
  openDeleteConfirmation: bi,
49692
49694
  closeDeleteConfirmation: mn,
@@ -49890,7 +49892,7 @@ const lL = ({
49890
49892
  onDownload: n,
49891
49893
  onDelete: r,
49892
49894
  getCurrentFolderPath: a
49893
- }) => G(() => {
49895
+ }) => B(() => {
49894
49896
  const l = [], c = Array.from(e.values());
49895
49897
  return !c.length || !t || (t[ge.Move] && l.push({
49896
49898
  key: ge.Move,
@@ -49957,7 +49959,7 @@ const lL = ({
49957
49959
  onDownload: o,
49958
49960
  onRename: n,
49959
49961
  onDelete: r
49960
- }) => G(() => (a) => {
49962
+ }) => B(() => (a) => {
49961
49963
  const l = [];
49962
49964
  return e && (e[ge.Duplicate] && l.push({
49963
49965
  key: ge.Duplicate,
@@ -50042,7 +50044,7 @@ const lL = ({
50042
50044
  )
50043
50045
  ), [A, W] = k(
50044
50046
  void 0
50045
- ), B = f ? r : a, J = /* @__PURE__ */ z(je, { children: [
50047
+ ), G = f ? r : a, J = /* @__PURE__ */ z(je, { children: [
50046
50048
  "Item with the name ",
50047
50049
  /* @__PURE__ */ z("span", { className: "text-primary", children: [
50048
50050
  '"',
@@ -50051,7 +50053,7 @@ const lL = ({
50051
50053
  ] }),
50052
50054
  " ",
50053
50055
  "already exists in this destination."
50054
- ] }), re = `${n.length} items with the same names already exist in this destination.`, H = l ?? (f ? J : re), se = G(
50056
+ ] }), re = `${n.length} items with the same names already exist in this destination.`, H = l ?? (f ? J : re), se = B(
50055
50057
  () => [
50056
50058
  {
50057
50059
  id: ut.Replace,
@@ -50063,13 +50065,13 @@ const lL = ({
50063
50065
  }
50064
50066
  ],
50065
50067
  [C, w]
50066
- ), $ = G(() => n.map((Y) => ({
50068
+ ), $ = B(() => n.map((Y) => ({
50067
50069
  id: Y.path,
50068
50070
  name: Y.name,
50069
50071
  path: Y.path,
50070
50072
  nodeType: Y.nodeType ?? Ke.ITEM,
50071
50073
  action: F.get(Y.path) || ut.Replace
50072
- })), [n, F]), j = G(() => [
50074
+ })), [n, F]), j = B(() => [
50073
50075
  {
50074
50076
  field: "name",
50075
50077
  headerName: g,
@@ -50172,7 +50174,7 @@ const lL = ({
50172
50174
  w,
50173
50175
  b,
50174
50176
  A
50175
- ]), Z = G(
50177
+ ]), Z = B(
50176
50178
  () => [
50177
50179
  {
50178
50180
  id: Tt.ReplaceAll,
@@ -50241,7 +50243,7 @@ const lL = ({
50241
50243
  open: e,
50242
50244
  onClose: t,
50243
50245
  size: ts.Md,
50244
- title: B,
50246
+ title: G,
50245
50247
  dividers: !1,
50246
50248
  footer: /* @__PURE__ */ z("div", { className: "flex justify-end gap-3 py-4 px-6", children: [
50247
50249
  /* @__PURE__ */ v(
@@ -50310,7 +50312,7 @@ const lL = ({
50310
50312
  ) }) });
50311
50313
  function yL(e) {
50312
50314
  const t = N(null), [s, i] = k(!1);
50313
- return we(() => {
50315
+ return ve(() => {
50314
50316
  if (!t.current) return;
50315
50317
  const o = new ResizeObserver(([n]) => {
50316
50318
  const r = n.contentRect.width;
@@ -50345,7 +50347,7 @@ const RL = ({
50345
50347
  },
50346
50348
  [e]
50347
50349
  );
50348
- return { actionsColumnDef: G(
50350
+ return { actionsColumnDef: B(
50349
50351
  () => ({
50350
50352
  colId: "__actions",
50351
50353
  headerName: "",
@@ -50395,7 +50397,7 @@ const RL = ({
50395
50397
  handleOpenDestinationFolderPopup: P,
50396
50398
  handleCloseDestinationFolderPopup: A,
50397
50399
  openDestinationFolderPopup: W,
50398
- destinationFolderMode: B,
50400
+ destinationFolderMode: G,
50399
50401
  handleSetCopiedFiles: J,
50400
50402
  handleSetMovedFiles: re,
50401
50403
  handleDuplicate: H,
@@ -50416,7 +50418,7 @@ const RL = ({
50416
50418
  getDisplayName: Ne,
50417
50419
  isDragging: Te,
50418
50420
  isDraggingOverWindow: ct,
50419
- handleDragEnter: ve,
50421
+ handleDragEnter: we,
50420
50422
  handleDragLeave: Fe,
50421
50423
  handleDragOver: Le,
50422
50424
  handleDrop: _,
@@ -50453,7 +50455,7 @@ const RL = ({
50453
50455
  ...vn
50454
50456
  } = r ?? {}, { containerRef: ga, isBelowBreakpoint: nt } = yL(
50455
50457
  h
50456
- ), pa = G(() => [
50458
+ ), pa = B(() => [
50457
50459
  {
50458
50460
  field: "name",
50459
50461
  headerName: "Name",
@@ -50622,7 +50624,7 @@ const RL = ({
50622
50624
  Z,
50623
50625
  o
50624
50626
  ]
50625
- ), fa = G(() => {
50627
+ ), fa = B(() => {
50626
50628
  const ie = /* @__PURE__ */ new Map();
50627
50629
  return S.forEach((Oe, yi) => {
50628
50630
  const as = w.find((Fs) => Fs.path === yi);
@@ -50779,7 +50781,7 @@ const RL = ({
50779
50781
  [t, Si]
50780
50782
  ), { actionsColumnDef: Co } = RL({
50781
50783
  getContextMenuItems: xs
50782
- }), yn = ha ?? pa, Rn = G(() => {
50784
+ }), yn = ha ?? pa, Rn = B(() => {
50783
50785
  let ie = yn;
50784
50786
  return nt && (ie = ie.slice(0, 1), ie.push(Co)), Cn ? ie : ie.map((Oe) => ({
50785
50787
  ...Oe,
@@ -50831,7 +50833,7 @@ const RL = ({
50831
50833
  role: "region",
50832
50834
  "aria-label": "File Manager Grid View",
50833
50835
  className: me(bS),
50834
- onDragEnter: ve,
50836
+ onDragEnter: we,
50835
50837
  onDragLeave: Fe,
50836
50838
  onDragOver: Le,
50837
50839
  onDrop: _,
@@ -50893,9 +50895,9 @@ const RL = ({
50893
50895
  onClose: A,
50894
50896
  onConfirm: () => {
50895
50897
  const ie = d?.destinationFolderPath ?? "/";
50896
- B === Je.Copy ? se(ie) : $(ie, C ?? "/"), A();
50898
+ G === Je.Copy ? se(ie) : $(ie, C ?? "/"), A();
50897
50899
  },
50898
- mode: B,
50900
+ mode: G,
50899
50901
  items: t,
50900
50902
  rootItem: s,
50901
50903
  gridOptions: { columnDefs: Rn, loading: i },
@@ -50924,7 +50926,7 @@ const RL = ({
50924
50926
  dc.MyFiles
50925
50927
  ), i = (n) => {
50926
50928
  s(n);
50927
- }, o = G(() => {
50929
+ }, o = B(() => {
50928
50930
  if (e)
50929
50931
  return Object.values(dc).map((n) => ({
50930
50932
  id: n,