@epam/ai-dial-ui-kit 0.5.0-rc.60 → 0.5.0-rc.61

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,11 +2,11 @@ import { jsx as C, jsxs as z, Fragment as $e } from "react/jsx-runtime";
2
2
  import J from "classnames";
3
3
  import { useFloating as oc, offset as Nh, flip as Hh, shift as Gh, arrow as RC, autoUpdate as Bh, useHover as Vh, useFocus as xC, useDismiss as nc, useRole as rc, useInteractions as ac, useMergeRefs as lc, FloatingPortal as cc, FloatingArrow as FC, autoPlacement as EC, size as DC, useClick as PC, FloatingFocusManager as zh, FloatingOverlay as TC } from "@floating-ui/react";
4
4
  import * as pe from "react";
5
- import U, { createContext as Mr, useState as k, useRef as L, useEffect as me, useMemo as V, useContext as Xe, isValidElement as dc, cloneElement as al, useCallback as I, memo as ut, useLayoutEffect as Vt, PureComponent as MC, useId as uc, Children as IC, createElement as So, useImperativeHandle as Ir, Component as kC, forwardRef as hc, Suspense as AC } from "react";
5
+ import U, { createContext as Mr, useState as k, useRef as L, useEffect as me, useMemo as B, useContext as Je, isValidElement as dc, cloneElement as al, useCallback as I, memo as ut, useLayoutEffect as Vt, PureComponent as MC, useId as uc, Children as IC, createElement as So, useImperativeHandle as Ir, Component as kC, forwardRef as hc, Suspense as AC } from "react";
6
6
  import { IconInfoCircle as Wh, IconCircleCheck as LC, IconAlertTriangle as OC, IconAlertCircle as NC, IconX as Ji, IconMinus as HC, IconCheck as _h, IconExclamationCircle as gc, IconClipboardX as Uh, IconChevronsLeft as GC, IconChevronsRight as BC, IconGripVertical as VC, IconFile as $h, IconFileTypeZip as zC, IconFileTypeXml as WC, IconFileTypeXls as _C, IconFileTypeVue as UC, IconFileTypeTxt as $C, IconFileTypeTsx as jC, IconFileTypeTs as KC, IconFileTypeSvg as qC, IconFileTypeSql as YC, IconFileTypeRs as ZC, IconFileTypePpt as QC, IconFileTypePng as XC, IconFileTypePhp as JC, IconFileTypePdf as ev, IconFileTypeJsx as tv, IconFileTypeJs as sv, IconFileTypeJpg as iv, IconFileTypeHtml as ov, IconFileTypeDocx as nv, IconFileTypeDoc as rv, IconFileTypeCsv as av, IconFileTypeCss as lv, IconFileTypeBmp as cv, IconArrowUpRight as dv, IconFolder as pc, IconChevronLeft as uv, IconChevronRight as jh, IconChevronDown as kr, IconDotsVertical as Ar, IconDots as hv, IconTrashX as Yo, IconEyeOff as Kh, IconEye as qh, IconSearch as gv, IconPlus as pv, IconChevronUp as fv, IconAlertCircleFilled as mv, IconCaretRightFilled as Cv, IconZoomCancel as vv, IconFileZip as wv, IconCopyMinus as bv, IconFolderPlus as Sv, IconCopy as fc, IconDownload as mc, IconPencilMinus as Yh, IconCircleFilled as ua } from "@tabler/icons-react";
7
7
  import yv, { flushSync as Rv, createPortal as Cc } from "react-dom";
8
8
  const si = ({ errorText: e }) => e && /* @__PURE__ */ C("span", { className: "text-error dial-tiny mt-1", children: e }), He = ({ icon: e, className: t }) => e ? /* @__PURE__ */ C("span", { className: J("flex-shrink-0", t), children: e }) : null, xv = 7, Fv = 2, Zh = Mr(null), Qh = () => {
9
- const e = Xe(Zh);
9
+ const e = Je(Zh);
10
10
  if (e == null)
11
11
  throw new Error("Tooltip components must be wrapped in <Tooltip />");
12
12
  return e;
@@ -53,7 +53,7 @@ const si = ({ errorText: e }) => e && /* @__PURE__ */ C("span", { className: "te
53
53
  { root: null, threshold: 0 }
54
54
  );
55
55
  return v.observe(m), () => v.disconnect();
56
- }, [l, d.refs.reference, c]), V(
56
+ }, [l, d.refs.reference, c]), B(
57
57
  () => ({
58
58
  open: l,
59
59
  setOpen: c,
@@ -431,7 +431,7 @@ const Qe = (e) => {
431
431
  c,
432
432
  oe,
433
433
  ie
434
- ], Q = () => ["", Se, po, zs], se = () => ["solid", "dashed", "dotted", "double"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], B = () => [Se, ha, Md, Td], Ce = () => [
434
+ ], Q = () => ["", Se, po, zs], se = () => ["solid", "dashed", "dotted", "double"], de = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], V = () => [Se, ha, Md, Td], Ce = () => [
435
435
  // Deprecated since Tailwind CSS v4.0.0
436
436
  "",
437
437
  "none",
@@ -1923,10 +1923,10 @@ const Qe = (e) => {
1923
1923
  "mask-linear": [Se]
1924
1924
  }],
1925
1925
  "mask-image-linear-from-pos": [{
1926
- "mask-linear-from": B()
1926
+ "mask-linear-from": V()
1927
1927
  }],
1928
1928
  "mask-image-linear-to-pos": [{
1929
- "mask-linear-to": B()
1929
+ "mask-linear-to": V()
1930
1930
  }],
1931
1931
  "mask-image-linear-from-color": [{
1932
1932
  "mask-linear-from": N()
@@ -1935,10 +1935,10 @@ const Qe = (e) => {
1935
1935
  "mask-linear-to": N()
1936
1936
  }],
1937
1937
  "mask-image-t-from-pos": [{
1938
- "mask-t-from": B()
1938
+ "mask-t-from": V()
1939
1939
  }],
1940
1940
  "mask-image-t-to-pos": [{
1941
- "mask-t-to": B()
1941
+ "mask-t-to": V()
1942
1942
  }],
1943
1943
  "mask-image-t-from-color": [{
1944
1944
  "mask-t-from": N()
@@ -1947,10 +1947,10 @@ const Qe = (e) => {
1947
1947
  "mask-t-to": N()
1948
1948
  }],
1949
1949
  "mask-image-r-from-pos": [{
1950
- "mask-r-from": B()
1950
+ "mask-r-from": V()
1951
1951
  }],
1952
1952
  "mask-image-r-to-pos": [{
1953
- "mask-r-to": B()
1953
+ "mask-r-to": V()
1954
1954
  }],
1955
1955
  "mask-image-r-from-color": [{
1956
1956
  "mask-r-from": N()
@@ -1959,10 +1959,10 @@ const Qe = (e) => {
1959
1959
  "mask-r-to": N()
1960
1960
  }],
1961
1961
  "mask-image-b-from-pos": [{
1962
- "mask-b-from": B()
1962
+ "mask-b-from": V()
1963
1963
  }],
1964
1964
  "mask-image-b-to-pos": [{
1965
- "mask-b-to": B()
1965
+ "mask-b-to": V()
1966
1966
  }],
1967
1967
  "mask-image-b-from-color": [{
1968
1968
  "mask-b-from": N()
@@ -1971,10 +1971,10 @@ const Qe = (e) => {
1971
1971
  "mask-b-to": N()
1972
1972
  }],
1973
1973
  "mask-image-l-from-pos": [{
1974
- "mask-l-from": B()
1974
+ "mask-l-from": V()
1975
1975
  }],
1976
1976
  "mask-image-l-to-pos": [{
1977
- "mask-l-to": B()
1977
+ "mask-l-to": V()
1978
1978
  }],
1979
1979
  "mask-image-l-from-color": [{
1980
1980
  "mask-l-from": N()
@@ -1983,10 +1983,10 @@ const Qe = (e) => {
1983
1983
  "mask-l-to": N()
1984
1984
  }],
1985
1985
  "mask-image-x-from-pos": [{
1986
- "mask-x-from": B()
1986
+ "mask-x-from": V()
1987
1987
  }],
1988
1988
  "mask-image-x-to-pos": [{
1989
- "mask-x-to": B()
1989
+ "mask-x-to": V()
1990
1990
  }],
1991
1991
  "mask-image-x-from-color": [{
1992
1992
  "mask-x-from": N()
@@ -1995,10 +1995,10 @@ const Qe = (e) => {
1995
1995
  "mask-x-to": N()
1996
1996
  }],
1997
1997
  "mask-image-y-from-pos": [{
1998
- "mask-y-from": B()
1998
+ "mask-y-from": V()
1999
1999
  }],
2000
2000
  "mask-image-y-to-pos": [{
2001
- "mask-y-to": B()
2001
+ "mask-y-to": V()
2002
2002
  }],
2003
2003
  "mask-image-y-from-color": [{
2004
2004
  "mask-y-from": N()
@@ -2010,10 +2010,10 @@ const Qe = (e) => {
2010
2010
  "mask-radial": [oe, ie]
2011
2011
  }],
2012
2012
  "mask-image-radial-from-pos": [{
2013
- "mask-radial-from": B()
2013
+ "mask-radial-from": V()
2014
2014
  }],
2015
2015
  "mask-image-radial-to-pos": [{
2016
- "mask-radial-to": B()
2016
+ "mask-radial-to": V()
2017
2017
  }],
2018
2018
  "mask-image-radial-from-color": [{
2019
2019
  "mask-radial-from": N()
@@ -2037,10 +2037,10 @@ const Qe = (e) => {
2037
2037
  "mask-conic": [Se]
2038
2038
  }],
2039
2039
  "mask-image-conic-from-pos": [{
2040
- "mask-conic-from": B()
2040
+ "mask-conic-from": V()
2041
2041
  }],
2042
2042
  "mask-image-conic-to-pos": [{
2043
- "mask-conic-to": B()
2043
+ "mask-conic-to": V()
2044
2044
  }],
2045
2045
  "mask-image-conic-from-color": [{
2046
2046
  "mask-conic-from": N()
@@ -3042,10 +3042,10 @@ const lw = {
3042
3042
  window.removeEventListener("resize", f), m && m.disconnect(), d.current && cancelAnimationFrame(d.current);
3043
3043
  };
3044
3044
  }, [e, h]);
3045
- const g = V(
3045
+ const g = B(
3046
3046
  () => typeof e == "string" ? e : l,
3047
3047
  [l, e]
3048
- ), p = V(() => i ? "" : r ? g : "", [g, i, r]);
3048
+ ), p = B(() => i ? "" : r ? g : "", [g, i, r]);
3049
3049
  return /* @__PURE__ */ z(Xh, { ...o, children: [
3050
3050
  /* @__PURE__ */ C(
3051
3051
  eg,
@@ -3478,7 +3478,7 @@ const Sw = "flex", yw = "pb-1 mt-2", Rw = {
3478
3478
  isOpened: l,
3479
3479
  onToggle: c
3480
3480
  }) => {
3481
- const [d, u] = k(s), [h, g] = k(!0), p = V(() => typeof l == "boolean", [l]), f = p ? l : h;
3481
+ const [d, u] = k(s), [h, g] = k(!0), p = B(() => typeof l == "boolean", [l]), f = p ? l : h;
3482
3482
  me(() => {
3483
3483
  p && u(l ? s : pa);
3484
3484
  }, [p, l, s]);
@@ -4761,10 +4761,10 @@ function bg(e, t) {
4761
4761
  const s = [
4762
4762
  ...t || []
4763
4763
  ];
4764
- return t == null && typeof e != "function" && s.push(e), V(() => 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 tb(e) {
4767
- return V(
4767
+ return B(
4768
4768
  () => e.hooks.dragSource(),
4769
4769
  [
4770
4770
  e
@@ -4772,7 +4772,7 @@ function tb(e) {
4772
4772
  );
4773
4773
  }
4774
4774
  function sb(e) {
4775
- return V(
4775
+ return B(
4776
4776
  () => e.hooks.dragPreview(),
4777
4777
  [
4778
4778
  e
@@ -5134,11 +5134,11 @@ class ub {
5134
5134
  }
5135
5135
  }
5136
5136
  function io() {
5137
- const { dragDropManager: e } = Xe(ug);
5137
+ const { dragDropManager: e } = Je(ug);
5138
5138
  return ve(e != null, "Expected drag drop context"), e;
5139
5139
  }
5140
5140
  function hb(e, t) {
5141
- const s = io(), i = V(
5141
+ const s = io(), i = B(
5142
5142
  () => new db(s.getBackend()),
5143
5143
  [
5144
5144
  s
@@ -5154,7 +5154,7 @@ function hb(e, t) {
5154
5154
  }
5155
5155
  function gb() {
5156
5156
  const e = io();
5157
- return V(
5157
+ return B(
5158
5158
  () => new ib(e),
5159
5159
  [
5160
5160
  e
@@ -5184,7 +5184,7 @@ class pb {
5184
5184
  }
5185
5185
  }
5186
5186
  function fb(e, t, s) {
5187
- const i = V(
5187
+ const i = B(
5188
5188
  () => new pb(e, t, s),
5189
5189
  [
5190
5190
  t,
@@ -5198,7 +5198,7 @@ function fb(e, t, s) {
5198
5198
  ]), i;
5199
5199
  }
5200
5200
  function mb(e) {
5201
- return V(() => {
5201
+ return B(() => {
5202
5202
  const t = e.type;
5203
5203
  return ve(t != null, "spec.type must be defined"), t;
5204
5204
  }, [
@@ -5231,7 +5231,7 @@ function vb(e, t) {
5231
5231
  ];
5232
5232
  }
5233
5233
  function wb(e) {
5234
- return V(
5234
+ return B(
5235
5235
  () => e.hooks.dropTarget(),
5236
5236
  [
5237
5237
  e
@@ -5239,7 +5239,7 @@ function wb(e) {
5239
5239
  );
5240
5240
  }
5241
5241
  function bb(e) {
5242
- const t = io(), s = V(
5242
+ const t = io(), s = B(
5243
5243
  () => new ub(t.getBackend()),
5244
5244
  [
5245
5245
  t
@@ -5251,7 +5251,7 @@ function bb(e) {
5251
5251
  }
5252
5252
  function Sb() {
5253
5253
  const e = io();
5254
- return V(
5254
+ return B(
5255
5255
  () => new ob(e),
5256
5256
  [
5257
5257
  e
@@ -5260,7 +5260,7 @@ function Sb() {
5260
5260
  }
5261
5261
  function yb(e) {
5262
5262
  const { accept: t } = e;
5263
- return V(() => (ve(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
5263
+ return B(() => (ve(e.accept != null, "accept must be defined"), Array.isArray(t) ? t : [
5264
5264
  t
5265
5265
  ]), [
5266
5266
  t
@@ -5285,7 +5285,7 @@ class Rb {
5285
5285
  }
5286
5286
  }
5287
5287
  function xb(e, t) {
5288
- const s = V(
5288
+ const s = B(
5289
5289
  () => new Rb(e, t),
5290
5290
  [
5291
5291
  t
@@ -5554,7 +5554,7 @@ var ir = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(ir ||
5554
5554
  t(c, s);
5555
5555
  }, [t, s]), a = I(function(c) {
5556
5556
  t(c, s);
5557
- }, [t, s]), l = V(function() {
5557
+ }, [t, s]), l = B(function() {
5558
5558
  return Ye(Ye({ position: "absolute", userSelect: "none" }, Ob[s]), o ?? {});
5559
5559
  }, [o, s]);
5560
5560
  return C("div", { className: n || void 0, style: l, onMouseDown: r, onTouchStart: a, children: i });
@@ -6008,7 +6008,7 @@ const Ub = ({ side: e, className: t }) => {
6008
6008
  u(!1);
6009
6009
  const S = m.current?.resizable?.getBoundingClientRect(), y = S ? Math.round(S.width) : t;
6010
6010
  p || g(y), n?.(y);
6011
- }, [n, p, t]), b = V(() => {
6011
+ }, [n, p, t]), b = B(() => {
6012
6012
  const S = a === ir.Left, y = /* @__PURE__ */ C(
6013
6013
  $b,
6014
6014
  {
@@ -6094,7 +6094,7 @@ const Qb = ({
6094
6094
  emptyPlaceholder: i = "—",
6095
6095
  className: o
6096
6096
  }) => {
6097
- const n = xg(e), r = V(() => n ? new Intl.DateTimeFormat(t, s).format(n) : i, [n, i, t, s]), a = n ? n.toISOString() : void 0;
6097
+ const n = xg(e), r = B(() => n ? new Intl.DateTimeFormat(t, s).format(n) : i, [n, i, t, s]), a = n ? n.toISOString() : void 0;
6098
6098
  return /* @__PURE__ */ C(
6099
6099
  ss,
6100
6100
  {
@@ -6153,11 +6153,11 @@ const Jb = J(
6153
6153
  maxDropdownHeight: w
6154
6154
  }) => {
6155
6155
  const [b, S] = k(a), y = r !== void 0, x = y ? !!r : b, F = L(null), R = I(
6156
- (B) => {
6157
- y || S(B), l?.(B);
6156
+ (V) => {
6157
+ y || S(V), l?.(V);
6158
6158
  },
6159
6159
  [y, l]
6160
- ), D = uc(), P = o === void 0, E = (B) => "clientWidth" in B ? B.clientWidth : B.getBoundingClientRect?.()?.width ?? 0, { refs: T, floatingStyles: O, context: j } = oc({
6160
+ ), D = uc(), P = o === void 0, E = (V) => "clientWidth" in V ? V.clientWidth : V.getBoundingClientRect?.()?.width ?? 0, { refs: T, floatingStyles: O, context: j } = oc({
6161
6161
  placement: o,
6162
6162
  open: x,
6163
6163
  onOpenChange: R,
@@ -6173,7 +6173,7 @@ const Jb = J(
6173
6173
  Gh({ padding: fo }),
6174
6174
  DC({
6175
6175
  padding: fo,
6176
- apply({ availableWidth: B, availableHeight: Ce, elements: ye }) {
6176
+ apply({ availableWidth: V, availableHeight: Ce, elements: ye }) {
6177
6177
  const ue = ye.floating, Ie = E(ye.reference);
6178
6178
  ue.style.setProperty(
6179
6179
  "--fui-available-height",
@@ -6181,7 +6181,7 @@ const Jb = J(
6181
6181
  ), ue.style.setProperty(
6182
6182
  "--reference-width",
6183
6183
  v ? `${Math.round(Ie)}px` : "0px"
6184
- ), v ? ue.style.minWidth = `${Math.round(Ie)}px` : ue.style.removeProperty("min-width"), ue.style.maxWidth = `${Math.floor(B)}px`;
6184
+ ), v ? ue.style.minWidth = `${Math.round(Ie)}px` : ue.style.removeProperty("min-width"), ue.style.maxWidth = `${Math.floor(V)}px`;
6185
6185
  const Fe = Math.floor(Ce);
6186
6186
  ue.style.maxHeight = `${w ? Math.min(Fe, w) : Fe}px`;
6187
6187
  }
@@ -6197,9 +6197,9 @@ const Jb = J(
6197
6197
  }), ne = nc(j, {
6198
6198
  bubbles: !0,
6199
6199
  referencePress: !1,
6200
- outsidePress: (B) => {
6200
+ outsidePress: (V) => {
6201
6201
  if (!p) return !1;
6202
- const Ce = B.target;
6202
+ const Ce = V.target;
6203
6203
  return !(g?.current && Ce instanceof Node && g.current.contains(Ce));
6204
6204
  }
6205
6205
  }), N = rc(j, { role: "menu" }), { getReferenceProps: te, getFloatingProps: $ } = ac([
@@ -6208,34 +6208,34 @@ const Jb = J(
6208
6208
  ne,
6209
6209
  N
6210
6210
  ]), W = I(
6211
- (B, Ce) => {
6211
+ (V, Ce) => {
6212
6212
  T.setPositionReference({
6213
6213
  getBoundingClientRect: () => ({
6214
6214
  width: 0,
6215
6215
  height: 0,
6216
- x: B,
6216
+ x: V,
6217
6217
  y: Ce,
6218
6218
  top: Ce,
6219
- left: B,
6220
- right: B,
6219
+ left: V,
6220
+ right: V,
6221
6221
  bottom: Ce
6222
6222
  })
6223
6223
  });
6224
6224
  },
6225
6225
  [T]
6226
6226
  ), Y = I(
6227
- (B) => {
6228
- !i.includes(It.ContextMenu) || n || (B.preventDefault(), m && (W(B.clientX, B.clientY), F.current = document.elementFromPoint(
6229
- B.clientX,
6230
- B.clientY
6227
+ (V) => {
6228
+ !i.includes(It.ContextMenu) || n || (V.preventDefault(), m && (W(V.clientX, V.clientY), F.current = document.elementFromPoint(
6229
+ V.clientX,
6230
+ V.clientY
6231
6231
  )), R(!0));
6232
6232
  },
6233
6233
  [m, n, R, W, i]
6234
6234
  ), Z = I(
6235
- (B) => {
6236
- !m || n || (i.includes(It.ContextMenu) && x && R(!1), W(B.clientX, B.clientY), F.current = document.elementFromPoint(
6237
- B.clientX,
6238
- B.clientY
6235
+ (V) => {
6236
+ !m || n || (i.includes(It.ContextMenu) && x && R(!1), W(V.clientX, V.clientY), F.current = document.elementFromPoint(
6237
+ V.clientX,
6238
+ V.clientY
6239
6239
  ));
6240
6240
  },
6241
6241
  [m, n, W, x, i, R]
@@ -6244,52 +6244,52 @@ const Jb = J(
6244
6244
  n && x && R(!1);
6245
6245
  }, [n, x, R]);
6246
6246
  const Q = I(
6247
- (B) => (Ce) => {
6248
- B.disabled || (B.onClick?.({ key: B.key, domEvent: Ce }), t?.onClick?.({ key: B.key, domEvent: Ce }), R(!1));
6247
+ (V) => (Ce) => {
6248
+ V.disabled || (V.onClick?.({ key: V.key, domEvent: Ce }), t?.onClick?.({ key: V.key, domEvent: Ce }), R(!1));
6249
6249
  },
6250
6250
  [t, R]
6251
- ), se = V(() => s ? s() : t ? /* @__PURE__ */ z($e, { children: [
6251
+ ), se = B(() => s ? s() : t ? /* @__PURE__ */ z($e, { children: [
6252
6252
  t.header && /* @__PURE__ */ C($e, { children: typeof t.header == "function" ? t.header() : t.header }),
6253
- /* @__PURE__ */ C("div", { role: "none", className: "py-1", children: t.items.map((B) => B.type === Cl.Divider ? /* @__PURE__ */ C(
6253
+ /* @__PURE__ */ C("div", { role: "none", className: "py-1", children: t.items.map((V) => V.type === Cl.Divider ? /* @__PURE__ */ C(
6254
6254
  "div",
6255
6255
  {
6256
6256
  role: "separator",
6257
6257
  className: o0
6258
6258
  },
6259
- B.key
6260
- ) : B.type === Cl.PlainText ? /* @__PURE__ */ C(
6259
+ V.key
6260
+ ) : V.type === Cl.PlainText ? /* @__PURE__ */ C(
6261
6261
  "div",
6262
6262
  {
6263
6263
  className: be(
6264
6264
  "px-3 py-2 text-secondary dial-caption",
6265
- B.className
6265
+ V.className
6266
6266
  ),
6267
- children: B.label
6267
+ children: V.label
6268
6268
  },
6269
- B.key
6269
+ V.key
6270
6270
  ) : /* @__PURE__ */ z(
6271
6271
  "button",
6272
6272
  {
6273
6273
  role: "menuitem",
6274
6274
  type: "button",
6275
- "aria-disabled": !!B.disabled,
6275
+ "aria-disabled": !!V.disabled,
6276
6276
  className: J(
6277
6277
  t0,
6278
- B.disabled && s0,
6279
- B.danger && i0,
6280
- B.className
6278
+ V.disabled && s0,
6279
+ V.danger && i0,
6280
+ V.className
6281
6281
  ),
6282
- disabled: B.disabled,
6283
- onClick: Q(B),
6282
+ disabled: V.disabled,
6283
+ onClick: Q(V),
6284
6284
  children: [
6285
- B.icon && /* @__PURE__ */ C(
6285
+ V.icon && /* @__PURE__ */ C(
6286
6286
  "span",
6287
6287
  {
6288
6288
  className: J(
6289
- B.danger && "text-error",
6290
- B.disabled && "text-secondary"
6289
+ V.danger && "text-error",
6290
+ V.disabled && "text-secondary"
6291
6291
  ),
6292
- children: /* @__PURE__ */ C(He, { icon: B.icon })
6292
+ children: /* @__PURE__ */ C(He, { icon: V.icon })
6293
6293
  }
6294
6294
  ),
6295
6295
  /* @__PURE__ */ C(
@@ -6297,15 +6297,15 @@ const Jb = J(
6297
6297
  {
6298
6298
  className: J(
6299
6299
  "flex-1 truncate text-left",
6300
- B.danger && "text-error",
6301
- B.disabled && "text-secondary"
6300
+ V.danger && "text-error",
6301
+ V.disabled && "text-secondary"
6302
6302
  ),
6303
- children: B.label
6303
+ children: V.label
6304
6304
  }
6305
6305
  )
6306
6306
  ]
6307
6307
  },
6308
- B.key
6308
+ V.key
6309
6309
  )) }),
6310
6310
  t.footer && /* @__PURE__ */ C($e, { children: typeof t.footer == "function" ? t.footer() : t.footer })
6311
6311
  ] }) : null, [Q, t, s]), de = te({
@@ -6314,9 +6314,9 @@ const Jb = J(
6314
6314
  });
6315
6315
  return me(() => {
6316
6316
  if (!x) return;
6317
- const B = T.reference.current;
6317
+ const V = T.reference.current;
6318
6318
  let Ce = null;
6319
- if (B instanceof Element ? Ce = B : F.current instanceof Element && (Ce = F.current), !Ce) return;
6319
+ if (V instanceof Element ? Ce = V : F.current instanceof Element && (Ce = F.current), !Ce) return;
6320
6320
  const ye = new IntersectionObserver(
6321
6321
  ([ue]) => {
6322
6322
  ue.isIntersecting || R(!1);
@@ -6365,8 +6365,8 @@ const Jb = J(
6365
6365
  Fg,
6366
6366
  {
6367
6367
  ariaLabel: "Close dropdown",
6368
- onClose: (B) => {
6369
- d?.(B), R(!1);
6368
+ onClose: (V) => {
6369
+ d?.(V), R(!1);
6370
6370
  }
6371
6371
  }
6372
6372
  ) }),
@@ -6441,7 +6441,7 @@ const Zd = () => typeof window < "u" && window.innerWidth < 640, Qd = () => {
6441
6441
  smallScreenContainerClassName: n,
6442
6442
  smallScreenDropdownItemClassName: r
6443
6443
  }) => {
6444
- const [a, l] = k(!1), [c, d] = k(!1), [u, h] = k(!1), g = n0(), p = g === $s.Mobile || o === or.Tablet && g === $s.Tablet, f = i === ml.Horizontal, m = L(null), v = L(null), w = L(null), b = e.find((x) => x.id === t), S = V(
6444
+ const [a, l] = k(!1), [c, d] = k(!1), [u, h] = k(!1), g = n0(), p = g === $s.Mobile || o === or.Tablet && g === $s.Tablet, f = i === ml.Horizontal, m = L(null), v = L(null), w = L(null), b = e.find((x) => x.id === t), S = B(
6445
6445
  () => J(
6446
6446
  "flex gap-2",
6447
6447
  f ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
@@ -6633,7 +6633,7 @@ const Zd = () => typeof window < "u" && window.innerWidth < 640, Qd = () => {
6633
6633
  children: o,
6634
6634
  titleClassName: n
6635
6635
  }) => {
6636
- const r = V(() => e?.length ? e : IC.toArray(o).filter(dc).map((c) => {
6636
+ const r = B(() => e?.length ? e : IC.toArray(o).filter(dc).map((c) => {
6637
6637
  const d = c.props, { titleClassName: u, isLast: h, separator: g, ...p } = d;
6638
6638
  return p;
6639
6639
  }), [e, o]), a = I(
@@ -6642,7 +6642,7 @@ const Zd = () => typeof window < "u" && window.innerWidth < 640, Qd = () => {
6642
6642
  u.onClick ? u.onClick(c.domEvent) : u.href && (window.location.href = u.href);
6643
6643
  },
6644
6644
  [r]
6645
- ), l = V(() => {
6645
+ ), l = B(() => {
6646
6646
  if (r.length === 0) return null;
6647
6647
  if (r.length <= 3)
6648
6648
  return r.map((p, f) => /* @__PURE__ */ So(
@@ -7799,7 +7799,7 @@ const U0 = ({
7799
7799
  dismissRef: D,
7800
7800
  onFooterClick: P
7801
7801
  }) => {
7802
- const E = uc(), [T, O] = k(!1), [j, H] = k(""), ee = L(null), ne = i !== void 0, [N, te] = k(o), $ = ne ? i : N, W = V(() => t ? Array.isArray($) ? $ : [] : typeof $ == "string" ? [$] : [], [$, t]), Y = V(() => {
7802
+ const E = uc(), [T, O] = k(!1), [j, H] = k(""), ee = L(null), ne = i !== void 0, [N, te] = k(o), $ = ne ? i : N, W = B(() => t ? Array.isArray($) ? $ : [] : typeof $ == "string" ? [$] : [], [$, t]), Y = B(() => {
7803
7803
  const _ = j.trim().toLowerCase();
7804
7804
  return _ ? e.filter((X) => X.label.toLowerCase().includes(_)) : e;
7805
7805
  }, [e, j]);
@@ -7827,15 +7827,15 @@ const U0 = ({
7827
7827
  Z(we);
7828
7828
  },
7829
7829
  [t, W, Z]
7830
- ), de = V(
7830
+ ), de = B(
7831
7831
  () => Y.filter((_) => !_.disabled),
7832
7832
  [Y]
7833
- ), B = V(
7833
+ ), V = B(
7834
7834
  () => de.filter((_) => W.includes(_.value)).length,
7835
7835
  [de, W]
7836
7836
  ), Ce = (_) => {
7837
7837
  R && !t && !_ && Q(j), O(_);
7838
- }, ye = de.length > 0 && B === de.length, ue = B > 0 && !ye, Ie = () => {
7838
+ }, ye = de.length > 0 && V === de.length, ue = V > 0 && !ye, Ie = () => {
7839
7839
  if (!(!t || de.length === 0))
7840
7840
  if (ye) {
7841
7841
  const _ = new Set(de.map((we) => we.value)), X = W.filter((we) => !_.has(we));
@@ -7854,7 +7854,7 @@ const U0 = ({
7854
7854
  _.setSelectionRange?.(X, X);
7855
7855
  });
7856
7856
  }, [T, R, t, v]);
7857
- const je = !t && Fe ? W[0] : void 0, Le = V(
7857
+ const je = !t && Fe ? W[0] : void 0, Le = B(
7858
7858
  () => je ? e.find((_) => _.value === je) : void 0,
7859
7859
  [e, je]
7860
7860
  ), gt = I(() => !t || W.length === 0 ? null : /* @__PURE__ */ C(
@@ -8726,7 +8726,7 @@ const oS = function(t, s, i) {
8726
8726
  ), v = I(
8727
8727
  (E) => n && E?.length > n,
8728
8728
  [n]
8729
- ), w = V(() => p || v(h), [p, h, v]), b = () => {
8729
+ ), w = B(() => p || v(h), [p, h, v]), b = () => {
8730
8730
  g([]), f(!1);
8731
8731
  };
8732
8732
  me(() => {
@@ -8946,7 +8946,7 @@ const oS = function(t, s, i) {
8946
8946
  )
8947
8947
  ] });
8948
8948
  }, lS = /* @__PURE__ */ C(kr, { size: 16 }), cS = /* @__PURE__ */ C(fv, { size: 16 }), nu = (e) => {
8949
- const [t, s] = k(!1), i = V(() => t ? cS : lS, [t]);
8949
+ const [t, s] = k(!1), i = B(() => t ? cS : lS, [t]);
8950
8950
  return /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C(
8951
8951
  Nt,
8952
8952
  {
@@ -9184,10 +9184,10 @@ const Sl = ({
9184
9184
  }
9185
9185
  );
9186
9186
  }, zg = (e) => {
9187
- const [t, s] = k(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i = V(
9187
+ const [t, s] = k(e?.expandedPaths ?? /* @__PURE__ */ new Set()), i = B(
9188
9188
  () => !!e?.onExpandedPathsChange,
9189
9189
  [e?.onExpandedPathsChange]
9190
- ), o = V(
9190
+ ), o = B(
9191
9191
  () => i ? e?.expandedPaths ?? /* @__PURE__ */ new Set() : t,
9192
9192
  [i, e?.expandedPaths, t]
9193
9193
  ), n = I(
@@ -9363,7 +9363,7 @@ const Sl = ({
9363
9363
  searchClassName: m,
9364
9364
  searchContainerClassName: v
9365
9365
  }) => {
9366
- const w = V(() => {
9366
+ const w = B(() => {
9367
9367
  if (!i) return;
9368
9368
  const b = i.split("/").map((y) => y.trim()).filter(Boolean);
9369
9369
  if (!b.length) return [{ title: "/" }];
@@ -9564,7 +9564,7 @@ function qt(e) {
9564
9564
  function Ve(e) {
9565
9565
  return qt(e).activeElement;
9566
9566
  }
9567
- function tt(e) {
9567
+ function st(e) {
9568
9568
  const { gos: t, eRootDiv: s } = e;
9569
9569
  let i = null;
9570
9570
  const o = t.get("getDocument");
@@ -9572,15 +9572,15 @@ function tt(e) {
9572
9572
  }
9573
9573
  function Wg(e) {
9574
9574
  const t = Ve(e);
9575
- return t === null || t === tt(e).body;
9575
+ return t === null || t === st(e).body;
9576
9576
  }
9577
9577
  function _g(e) {
9578
- return tt(e).defaultView || window;
9578
+ return st(e).defaultView || window;
9579
9579
  }
9580
9580
  function kc(e) {
9581
9581
  let t = null, s = null;
9582
9582
  try {
9583
- t = tt(e).fullscreenElement;
9583
+ t = st(e).fullscreenElement;
9584
9584
  } catch {
9585
9585
  } finally {
9586
9586
  t || (t = qt(e));
@@ -9930,7 +9930,7 @@ function dy(e, t, s) {
9930
9930
  return;
9931
9931
  const l = Jg(e.offsetParent), { clientY: c, clientX: d } = t;
9932
9932
  let u = c - l.top - o / 2, h = d - l.left - 10;
9933
- const g = tt(s), p = g.defaultView || window, f = p.pageYOffset || g.documentElement.scrollTop, m = p.pageXOffset || g.documentElement.scrollLeft;
9933
+ const g = st(s), p = g.defaultView || window, f = p.pageYOffset || g.documentElement.scrollTop, m = p.pageXOffset || g.documentElement.scrollLeft;
9934
9934
  n > 0 && h + e.clientWidth > n + m && (h = n + m - e.clientWidth), h < 0 && (h = 0), r > 0 && u + e.clientHeight > r + f && (u = r + f - e.clientHeight), u < 0 && (u = 0), e.style.left = `${h}px`, e.style.top = `${u}px`;
9935
9935
  }
9936
9936
  var Vn = (e, ...t) => {
@@ -12970,7 +12970,7 @@ function br(e) {
12970
12970
  s && (e.ctrlKey || e.metaKey || e.altKey) || t !== s && (Nl = s);
12971
12971
  }
12972
12972
  function g2(e) {
12973
- const t = tt(e);
12973
+ const t = st(e);
12974
12974
  return u2(t), wr++, () => {
12975
12975
  wr--, h2(t);
12976
12976
  };
@@ -14637,7 +14637,7 @@ ${n}}
14637
14637
  this.interactionEnabled && ([this.tooltipMouseEnterListener, this.tooltipMouseLeaveListener] = this.addManagedElementListeners(i, {
14638
14638
  mouseenter: this.onTooltipMouseEnter.bind(this),
14639
14639
  mouseleave: this.onTooltipMouseLeave.bind(this)
14640
- }), [this.onDocumentKeyDownCallback] = this.addManagedElementListeners(tt(this.beans), {
14640
+ }), [this.onDocumentKeyDownCallback] = this.addManagedElementListeners(st(this.beans), {
14641
14641
  keydown: (r) => {
14642
14642
  i.contains(r?.target) || this.onKeyDown();
14643
14643
  }
@@ -14844,12 +14844,12 @@ ${n}}
14844
14844
  }
14845
14845
  }
14846
14846
  getParentRect() {
14847
- const e = tt(this.beans);
14847
+ const e = st(this.beans);
14848
14848
  let t = this.getPopupParent();
14849
14849
  return t === e.body ? t = e.documentElement : getComputedStyle(t).position === "static" && (t = t.offsetParent), Jg(t);
14850
14850
  }
14851
14851
  keepXYWithinBounds(e, t, s) {
14852
- const i = s === 0, o = i ? "clientHeight" : "clientWidth", n = i ? "top" : "left", r = i ? "height" : "width", a = i ? "scrollTop" : "scrollLeft", l = tt(this.beans), c = l.documentElement, d = this.getPopupParent(), u = e.getBoundingClientRect(), h = d.getBoundingClientRect(), g = l.documentElement.getBoundingClientRect(), p = d === l.body, f = Math.ceil(u[r]);
14852
+ const i = s === 0, o = i ? "clientHeight" : "clientWidth", n = i ? "top" : "left", r = i ? "height" : "width", a = i ? "scrollTop" : "scrollLeft", l = st(this.beans), c = l.documentElement, d = this.getPopupParent(), u = e.getBoundingClientRect(), h = d.getBoundingClientRect(), g = l.documentElement.getBoundingClientRect(), p = d === l.body, f = Math.ceil(u[r]);
14853
14853
  let v = p ? (i ? Xg : rr)(c) + c[a] : d[o];
14854
14854
  p && (v -= Math.abs(g[n] - h[n]));
14855
14855
  const w = v - f;
@@ -14874,7 +14874,7 @@ ${n}}
14874
14874
  return n.applyThemeClasses(a), a.classList.add("ag-popup"), e.classList.add(r.get("enableRtl") ? "ag-rtl" : "ag-ltr", "ag-popup-child"), e.hasAttribute("role") || ri(e, "dialog"), s ? Ki(e, s) : i && (e.id || (e.id = `popup-component-${Pn}`), lu(i, e.id)), a.appendChild(e), o.appendChild(a), t ? this.setAlwaysOnTop(e, !0) : this.bringPopupToFront(e), a;
14875
14875
  }
14876
14876
  addEventListenersToPopup(e) {
14877
- const t = this.beans, s = tt(t), { wrapperEl: i, eChild: o, closedCallback: n, afterGuiAttached: r, closeOnEsc: a, modal: l, ariaOwns: c } = e;
14877
+ const t = this.beans, s = st(t), { wrapperEl: i, eChild: o, closedCallback: n, afterGuiAttached: r, closeOnEsc: a, modal: l, ariaOwns: c } = e;
14878
14878
  let d = !1;
14879
14879
  const u = (f) => {
14880
14880
  if (!i.contains(Ve(t)))
@@ -14986,7 +14986,7 @@ ${n}}
14986
14986
  return this.isElementWithinCustomPopup(o.target);
14987
14987
  }
14988
14988
  isElementWithinCustomPopup(e) {
14989
- const t = tt(this.beans);
14989
+ const t = st(this.beans);
14990
14990
  for (; e && e !== t.body; ) {
14991
14991
  if (e.classList.contains("ag-custom-component-popup") || e.parentElement === null)
14992
14992
  return !0;
@@ -15143,7 +15143,7 @@ ${n}}
15143
15143
  }
15144
15144
  initDrag(e, ...t) {
15145
15145
  this.drag = e;
15146
- const s = this.beans, i = (a) => this.onScroll(a), o = (a) => this.onKeyDown(a), n = qt(s), r = tt(s);
15146
+ const s = this.beans, i = (a) => this.onScroll(a), o = (a) => this.onKeyDown(a), n = qt(s), r = st(s);
15147
15147
  Vn(
15148
15148
  e.handlers,
15149
15149
  [n, "contextmenu", Es],
@@ -15225,7 +15225,7 @@ ${n}}
15225
15225
  }
15226
15226
  /** only gets called after a mouse down - as this is only added after mouseDown and is removed when mouseUp happens */
15227
15227
  onMouseOrPointerMove(e) {
15228
- rs(e) && (Ns() && tt(this.beans).getSelection()?.removeAllRanges(), this.shouldPreventMouseEvent(e) && Es(e), this.onMove(e));
15228
+ rs(e) && (Ns() && st(this.beans).getSelection()?.removeAllRanges(), this.shouldPreventMouseEvent(e) && Es(e), this.onMove(e));
15229
15229
  }
15230
15230
  onTouchMove(e) {
15231
15231
  const t = this.drag;
@@ -16100,7 +16100,7 @@ function Iu(e, t, s, i, o, n, r) {
16100
16100
  }
16101
16101
  o(a), l ? n(c) : gf(t, s, i);
16102
16102
  }
16103
- function et(e, t) {
16103
+ function tt(e, t) {
16104
16104
  return e[t] ?? null;
16105
16105
  }
16106
16106
  function Ct(e) {
@@ -18814,7 +18814,7 @@ var AF = class extends A {
18814
18814
  return;
18815
18815
  const { paddingTop: h, paddingBottom: g, borderBottomWidth: p, borderTopWidth: f } = hi(this.eGui), m = h + g + p + f, w = t.offsetHeight + m;
18816
18816
  if (u < 5) {
18817
- const S = !tt(o)?.contains(t), y = w == 0;
18817
+ const S = !st(o)?.contains(t), y = w == 0;
18818
18818
  if (S || y) {
18819
18819
  xl(() => n(u + 1), "raf", o);
18820
18820
  return;
@@ -20961,7 +20961,7 @@ var lE = class extends A {
20961
20961
  !(this.providedFocusInnerElement ? this.providedFocusInnerElement(t) : this.focusInnerElement(t)) && this.forceFocusOutWhenTabGuardsAreEmpty && this.findNextElementOutsideAndFocus(e.target === this.eBottomGuard);
20962
20962
  }
20963
20963
  findNextElementOutsideAndFocus(e) {
20964
- const t = tt(this.beans), s = Bi(t.body, null, !0), i = s.indexOf(e ? this.eTopGuard : this.eBottomGuard);
20964
+ const t = st(this.beans), s = Bi(t.body, null, !0), i = s.indexOf(e ? this.eTopGuard : this.eBottomGuard);
20965
20965
  if (i === -1)
20966
20966
  return;
20967
20967
  let o, n;
@@ -21059,7 +21059,7 @@ var lE = class extends A {
21059
21059
  return this.tabGuardCtrl;
21060
21060
  }
21061
21061
  createTabGuard(e) {
21062
- const t = tt(this.beans).createElement("div"), s = e === "top" ? zi.TAB_GUARD_TOP : zi.TAB_GUARD_BOTTOM;
21062
+ const t = st(this.beans).createElement("div"), s = e === "top" ? zi.TAB_GUARD_TOP : zi.TAB_GUARD_BOTTOM;
21063
21063
  return t.classList.add(zi.TAB_GUARD, s), ri(t, "presentation"), t;
21064
21064
  }
21065
21065
  addTabGuards(e, t) {
@@ -26726,7 +26726,7 @@ var MP = class extends A {
26726
26726
  e.ctrlsSvc.whenReady(this, (s) => {
26727
26727
  this.gridBodyCon = s.gridBodyCtrl;
26728
26728
  });
26729
- const t = tt(e);
26729
+ const t = st(e);
26730
26730
  this.addManagedElementListeners(t, {
26731
26731
  mousedown: () => {
26732
26732
  this.currentHeaderRowWithoutSpan = -1;
@@ -32519,7 +32519,7 @@ var Q5 = {
32519
32519
  super(), this.beanName = "ariaAnnounce", this.descriptionContainer = null, this.pendingAnnouncements = /* @__PURE__ */ new Map(), this.lastAnnouncement = "", this.updateAnnouncement = nt(this, this.updateAnnouncement.bind(this), 200);
32520
32520
  }
32521
32521
  postConstruct() {
32522
- const e = this.beans, t = tt(e), s = this.descriptionContainer = t.createElement("div");
32522
+ const e = this.beans, t = st(e), s = this.descriptionContainer = t.createElement("div");
32523
32523
  s.classList.add("ag-aria-description-container"), jg(s, "polite"), WS(s, "additions text"), zS(s, !0), e.eGridDiv.appendChild(s);
32524
32524
  }
32525
32525
  /**
@@ -35913,7 +35913,7 @@ var pT = class extends A {
35913
35913
  this.comp.getFloatingFilterComp()?.then((i) => {
35914
35914
  typeof i?.refresh == "function" && (this.gos.get("enableFilterHandlers") && (s = {
35915
35915
  ...s,
35916
- model: et(this.beans.colFilter?.model ?? {}, this.column.getColId()),
35916
+ model: tt(this.beans.colFilter?.model ?? {}, this.column.getColId()),
35917
35917
  source: t
35918
35918
  }), i.refresh(s));
35919
35919
  });
@@ -36178,7 +36178,7 @@ var kT = {
36178
36178
  for (const i of Object.keys(t)) {
36179
36179
  const o = t[i];
36180
36180
  this.state.set(i, {
36181
- model: et(this.model, i),
36181
+ model: tt(this.model, i),
36182
36182
  state: o
36183
36183
  });
36184
36184
  }
@@ -36198,9 +36198,9 @@ var kT = {
36198
36198
  getModelFromFilterWrapper(e) {
36199
36199
  const s = e.column.getColId();
36200
36200
  if (e.isHandler)
36201
- return et(this.model, s);
36201
+ return tt(this.model, s);
36202
36202
  const i = e.filter;
36203
- return i ? typeof i.getModel != "function" ? (G(66), null) : i.getModel() : et(this.initialModel, s);
36203
+ return i ? typeof i.getModel != "function" ? (G(66), null) : i.getModel() : tt(this.initialModel, s);
36204
36204
  }
36205
36205
  isFilterPresent() {
36206
36206
  return this.activeColumnFilters.length > 0;
@@ -36293,7 +36293,7 @@ var kT = {
36293
36293
  if (!h.doesFilterPass({
36294
36294
  node: e,
36295
36295
  data: r,
36296
- model: et(a, d),
36296
+ model: tt(a, d),
36297
36297
  handlerParams: g
36298
36298
  }))
36299
36299
  return !1;
@@ -36372,10 +36372,10 @@ var kT = {
36372
36372
  if (t?.isHandler)
36373
36373
  return this.isHandlerActive(e);
36374
36374
  const s = t?.filter;
36375
- return s ? s.isFilterActive() : et(this.initialModel, e.getColId()) != null;
36375
+ return s ? s.isFilterActive() : tt(this.initialModel, e.getColId()) != null;
36376
36376
  }
36377
36377
  isHandlerActive(e) {
36378
- const t = q(et(this.model, e.getColId()));
36378
+ const t = q(tt(this.model, e.getColId()));
36379
36379
  if (t)
36380
36380
  return t;
36381
36381
  const s = this.beans.groupFilter;
@@ -36472,7 +36472,7 @@ var kT = {
36472
36472
  const o = this.filterChangedCallbackFactory(e), n = this.createBaseFilterParams(e, i);
36473
36473
  if (n.filterChangedCallback = o, n.filterModifiedCallback = i ? () => {
36474
36474
  } : (r) => this.filterModified(e, r), t) {
36475
- const r = n, a = e.getColId(), l = et(this.model, a);
36475
+ const r = n, a = e.getColId(), l = tt(this.model, a);
36476
36476
  r.model = l, r.state = this.state.get(a) ?? {
36477
36477
  model: l
36478
36478
  }, r.onModelChange = (c, d) => {
@@ -36521,7 +36521,7 @@ var kT = {
36521
36521
  return delete this.initialModel[r], s.init?.({
36522
36522
  ...o,
36523
36523
  source: "init",
36524
- model: et(this.model, r)
36524
+ model: tt(this.model, r)
36525
36525
  }), {
36526
36526
  column: e,
36527
36527
  isHandler: !0,
@@ -36640,7 +36640,7 @@ var kT = {
36640
36640
  });
36641
36641
  if (c) {
36642
36642
  const h = u, g = e.getColId(), p = this.filterChangedCallbackFactory(e);
36643
- h.onUiChange = (f) => this.floatingFilterUiChanged(e, f), h.model = et(this.model, g), h.onModelChange = (f, m) => {
36643
+ h.onUiChange = (f) => this.floatingFilterUiChanged(e, f), h.model = tt(this.model, g), h.onModelChange = (f, m) => {
36644
36644
  this.updateStoredModel(g, f), this.refreshHandlerAndUi(e, f, "floating", !0, m).then(() => {
36645
36645
  p({ ...m, source: "columnFilter" });
36646
36646
  });
@@ -36730,7 +36730,7 @@ var kT = {
36730
36730
  this.createFilterCompParams(o, u, "colDef")
36731
36731
  );
36732
36732
  if (h) {
36733
- const m = d?.handlerNameOrCallback ?? d?.filterHandler, v = et(this.model, e);
36733
+ const m = d?.handlerNameOrCallback ?? d?.filterHandler, v = tt(this.model, e);
36734
36734
  if (s.handlerGenerator != m) {
36735
36735
  const w = s.handler, { handler: b, handlerParams: S } = this.createHandlerFromFunc(
36736
36736
  o,
@@ -36823,7 +36823,7 @@ var kT = {
36823
36823
  getModelForColumn(e, t) {
36824
36824
  if (t) {
36825
36825
  const { state: i, model: o } = this, n = e.getColId(), r = i.get(n);
36826
- return r ? r.model ?? null : et(o, n);
36826
+ return r ? r.model ?? null : tt(o, n);
36827
36827
  }
36828
36828
  const s = this.cachedFilter(e);
36829
36829
  return s ? this.getModelFromFilterWrapper(s) : null;
@@ -36843,7 +36843,7 @@ var kT = {
36843
36843
  }
36844
36844
  getStateForColumn(e) {
36845
36845
  return this.state.get(e) ?? {
36846
- model: et(this.model, e)
36846
+ model: tt(this.model, e)
36847
36847
  };
36848
36848
  }
36849
36849
  setModelForColumnLegacy(e, t) {
@@ -36938,7 +36938,7 @@ var kT = {
36938
36938
  Iu(
36939
36939
  t,
36940
36940
  n,
36941
- () => et(this.model, i),
36941
+ () => tt(this.model, i),
36942
36942
  () => this.state.get(i),
36943
36943
  (r) => this.updateState(e, r),
36944
36944
  (r) => n()?.filterParams?.onModelChange(r, s),
@@ -36952,7 +36952,7 @@ var kT = {
36952
36952
  n && Iu(
36953
36953
  e,
36954
36954
  () => i.filterUi,
36955
- () => et(this.model, o),
36955
+ () => tt(this.model, o),
36956
36956
  () => this.state.get(o),
36957
36957
  (r) => this.updateState(n, r),
36958
36958
  (r) => {
@@ -36976,7 +36976,7 @@ var kT = {
36976
36976
  const t = e.getColId();
36977
36977
  gf(
36978
36978
  () => this.cachedFilter(e)?.filterUi,
36979
- () => et(this.model, t),
36979
+ () => tt(this.model, t),
36980
36980
  () => this.state.get(t)
36981
36981
  );
36982
36982
  }
@@ -36998,13 +36998,13 @@ var kT = {
36998
36998
  const n = e.get(o);
36999
36999
  if (n.valid === !1)
37000
37000
  return !1;
37001
- (n.model ?? null) !== et(t, o) && (i = !0);
37001
+ (n.model ?? null) !== tt(t, o) && (i = !0);
37002
37002
  }
37003
37003
  return i;
37004
37004
  }
37005
37005
  hasUnappliedModel(e) {
37006
37006
  const { model: t, state: s } = this;
37007
- return (s.get(e)?.model ?? null) !== et(t, e);
37007
+ return (s.get(e)?.model ?? null) !== tt(t, e);
37008
37008
  }
37009
37009
  setGlobalButtons(e) {
37010
37010
  this.isGlobalButtons = e, this.dispatchLocalEvent({
@@ -45958,7 +45958,7 @@ var bA = {
45958
45958
  return;
45959
45959
  const { paddingTop: u, paddingBottom: h, borderBottomWidth: g, borderTopWidth: p } = hi(i), f = u + h + g + p, v = t.offsetHeight + f;
45960
45960
  if (d < 5) {
45961
- const b = !tt(r)?.contains(t), S = v == 0;
45961
+ const b = !st(r)?.contains(t), S = v == 0;
45962
45962
  if (b || S) {
45963
45963
  window.setTimeout(() => a(d + 1), 0);
45964
45964
  return;
@@ -46126,7 +46126,7 @@ function Tr(e, t, s) {
46126
46126
  return i.length === e.length && o.length === 0 ? e : i.length === 0 && o.length === t.length ? t : i.length === 0 ? o : o.length === 0 ? i : [...i, ...o];
46127
46127
  }
46128
46128
  var Xm = hc((e, t) => {
46129
- const { registry: s, context: i } = Xe(ht), o = L(null), n = L(null), r = L(null), a = L(null), l = L(null), c = L(), [d, u] = k(), [h, g] = k(), [p, f] = k(), [m, v] = k(() => new Ot()), [w, b] = k(() => new Ot("ag-hidden")), [S, y] = k(() => new Ot("ag-hidden")), [x, F] = k(() => new Ot("ag-invisible"));
46129
+ const { registry: s, context: i } = Je(ht), o = L(null), n = L(null), r = L(null), a = L(null), l = L(null), c = L(), [d, u] = k(), [h, g] = k(), [p, f] = k(), [m, v] = k(() => new Ot()), [w, b] = k(() => new Ot("ag-hidden")), [S, y] = k(() => new Ot("ag-hidden")), [x, F] = k(() => new Ot("ag-invisible"));
46130
46130
  Ir(t, () => ({
46131
46131
  // force new instance when grid tries to refresh
46132
46132
  refresh() {
@@ -46158,10 +46158,10 @@ var Xm = hc((e, t) => {
46158
46158
  Xm,
46159
46159
  e
46160
46160
  ));
46161
- }, []), D = V(() => `ag-cell-wrapper ${m.toString()}`, [m]), P = V(() => `ag-group-expanded ${w.toString()}`, [w]), E = V(
46161
+ }, []), D = B(() => `ag-cell-wrapper ${m.toString()}`, [m]), P = B(() => `ag-group-expanded ${w.toString()}`, [w]), E = B(
46162
46162
  () => `ag-group-contracted ${S.toString()}`,
46163
46163
  [S]
46164
- ), T = V(() => `ag-group-checkbox ${x.toString()}`, [x]), O = d?.componentFromFramework, j = O ? d.componentClass : void 0, H = d == null && p != null, ee = oo(p);
46164
+ ), T = B(() => `ag-group-checkbox ${x.toString()}`, [x]), O = d?.componentFromFramework, j = O ? d.componentClass : void 0, H = d == null && p != null, ee = oo(p);
46165
46165
  return /* @__PURE__ */ U.createElement(
46166
46166
  "span",
46167
46167
  {
@@ -46624,7 +46624,7 @@ var jA = 1e3, KA = class {
46624
46624
  }
46625
46625
  }
46626
46626
  }, qA = ({ ctrl: e }) => {
46627
- const t = e.isAlive(), { context: s } = Xe(ht), [i, o] = k(), [n, r] = k(), a = L(), l = L(null), c = L(null), d = L(null), u = L(), h = L();
46627
+ const t = e.isAlive(), { context: s } = Je(ht), [i, o] = k(), [n, r] = k(), a = L(), l = L(null), c = L(null), d = L(null), u = L(), h = L();
46628
46628
  t && !h.current && (h.current = new Jo(() => l.current));
46629
46629
  const g = I((v) => {
46630
46630
  if (l.current = v, !v || !e.isAlive() || s.isDestroyed()) {
@@ -46657,7 +46657,7 @@ var jA = 1e3, KA = class {
46657
46657
  ), me(() => {
46658
46658
  e.setDragSource(l.current);
46659
46659
  }, [i]);
46660
- const p = V(() => !!(i?.componentFromFramework && ao(i.componentClass)), [i]), f = i?.componentFromFramework, m = i?.componentClass;
46660
+ const p = B(() => !!(i?.componentFromFramework && ao(i.componentClass)), [i]), f = i?.componentFromFramework, m = i?.componentClass;
46661
46661
  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));
46662
46662
  }, YA = ut(qA), ZA = class {
46663
46663
  constructor(e, t) {
@@ -46676,7 +46676,7 @@ var jA = 1e3, KA = class {
46676
46676
  return ["afterGuiAttached"];
46677
46677
  }
46678
46678
  }, QA = ({ ctrl: e }) => {
46679
- const { context: t, gos: s } = Xe(ht), [i, o] = k(), [n, r] = k(
46679
+ const { context: t, gos: s } = Je(ht), [i, o] = k(), [n, r] = k(
46680
46680
  () => new Ot("ag-header-cell", "ag-floating-filter")
46681
46681
  ), [a, l] = k(() => new Ot()), [c, d] = k(
46682
46682
  () => new Ot("ag-floating-filter-button", "ag-hidden")
@@ -46710,7 +46710,7 @@ var jA = 1e3, KA = class {
46710
46710
  () => nn(g, t, w.current, F),
46711
46711
  [g]
46712
46712
  );
46713
- const D = V(() => n.toString(), [n]), P = V(() => a.toString(), [a]), E = V(() => c.toString(), [c]), T = V(() => !!(g && g.componentFromFramework && ao(g.componentClass)), [g]), O = V(() => s.get("reactiveCustomComponents"), []), j = V(() => s.get("enableFilterHandlers"), []), [H, ee] = k();
46713
+ const D = B(() => n.toString(), [n]), P = B(() => a.toString(), [a]), E = B(() => c.toString(), [c]), T = B(() => !!(g && g.componentFromFramework && ao(g.componentClass)), [g]), O = B(() => s.get("reactiveCustomComponents"), []), j = B(() => s.get("enableFilterHandlers"), []), [H, ee] = k();
46714
46714
  me(() => {
46715
46715
  if (g?.componentFromFramework)
46716
46716
  if (O) {
@@ -46748,7 +46748,7 @@ var jA = 1e3, KA = class {
46748
46748
  )
46749
46749
  ));
46750
46750
  }, XA = ut(QA), JA = ({ ctrl: e }) => {
46751
- const { context: t } = Xe(ht), [s, i] = k(), [o, n] = k(() => new Ot()), [r, a] = k(() => new Ot()), [l, c] = k("false"), [d, u] = k(), [h, g] = k(), p = L(), f = L(null), m = L(null), v = L(null), w = L(), b = I((D) => {
46751
+ const { context: t } = Je(ht), [s, i] = k(), [o, n] = k(() => new Ot()), [r, a] = k(() => new Ot()), [l, c] = k("false"), [d, u] = k(), [h, g] = k(), p = L(), f = L(null), m = L(null), v = L(null), w = L(), b = I((D) => {
46752
46752
  if (f.current = D, !D || !e.isAlive() || t.isDestroyed()) {
46753
46753
  p.current = t.destroyBean(p.current);
46754
46754
  return;
@@ -46780,13 +46780,13 @@ var jA = 1e3, KA = class {
46780
46780
  Vt(() => nn(h, t, v.current), [h]), me(() => {
46781
46781
  f.current && e.setDragSource(f.current);
46782
46782
  }, [h]);
46783
- const S = V(() => !!(h?.componentFromFramework && ao(h.componentClass)), [h]), y = V(() => "ag-header-group-cell " + o.toString(), [o]), x = V(
46783
+ const S = B(() => !!(h?.componentFromFramework && ao(h.componentClass)), [h]), y = B(() => "ag-header-group-cell " + o.toString(), [o]), x = B(
46784
46784
  () => "ag-header-cell-resize " + r.toString(),
46785
46785
  [r]
46786
46786
  ), F = h?.componentFromFramework, R = h?.componentClass;
46787
46787
  return /* @__PURE__ */ U.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ U.createElement("div", { ref: v, className: "ag-header-cell-comp-wrapper", role: "presentation" }, F ? 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 }));
46788
46788
  }, e8 = ut(JA), t8 = ({ ctrl: e }) => {
46789
- const { gos: t, context: s } = Xe(ht), { topOffset: i, rowHeight: o } = V(() => e.getTopAndHeight(), []), n = V(() => t.get("tabIndex"), []), [r, a] = k(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = k(() => o + "px"), [u, h] = k(() => i + "px"), g = L(null), [p, f] = k(() => e.getUpdatedHeaderCtrls()), m = L(), v = L(null), w = I((y) => {
46789
+ const { gos: t, context: s } = Je(ht), { 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 = L(null), [p, f] = k(() => e.getUpdatedHeaderCtrls()), m = L(), v = L(null), w = I((y) => {
46790
46790
  if (v.current = y, !y || !e.isAlive() || s.isDestroyed()) {
46791
46791
  m.current = s.destroyBean(m.current);
46792
46792
  return;
@@ -46807,7 +46807,7 @@ var jA = 1e3, KA = class {
46807
46807
  }
46808
46808
  };
46809
46809
  e.setComp(x, m.current, !1);
46810
- }, []), b = V(
46810
+ }, []), b = B(
46811
46811
  () => ({
46812
46812
  height: c,
46813
46813
  top: u
@@ -46836,7 +46836,7 @@ var jA = 1e3, KA = class {
46836
46836
  p.map(S)
46837
46837
  );
46838
46838
  }, s8 = ut(t8), i8 = ({ pinned: e }) => {
46839
- const [t, s] = k(!0), [i, o] = k([]), { context: n } = Xe(ht), r = L(null), a = L(null), l = L(), c = e === "left", d = e === "right", u = !c && !d, h = I((f) => {
46839
+ const [t, s] = k(!0), [i, o] = k([]), { context: n } = Je(ht), r = L(null), a = L(null), l = L(), c = e === "left", d = e === "right", u = !c && !d, h = I((f) => {
46840
46840
  if (r.current = f, !f || n.isDestroyed()) {
46841
46841
  l.current = n.destroyBean(l.current);
46842
46842
  return;
@@ -46861,7 +46861,7 @@ var jA = 1e3, KA = class {
46861
46861
  }, []), g = t ? "" : "ag-hidden", p = () => i.map((f) => /* @__PURE__ */ U.createElement(s8, { ctrl: f, key: f.instanceId }));
46862
46862
  return c ? /* @__PURE__ */ U.createElement("div", { ref: h, className: "ag-pinned-left-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : d ? /* @__PURE__ */ U.createElement("div", { ref: h, className: "ag-pinned-right-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : u ? /* @__PURE__ */ U.createElement("div", { ref: h, className: "ag-header-viewport " + g, role: "rowgroup", tabIndex: -1 }, /* @__PURE__ */ U.createElement("div", { ref: a, className: "ag-header-container", role: "presentation" }, p())) : null;
46863
46863
  }, il = ut(i8), o8 = () => {
46864
- const [e, t] = k(() => new Ot()), [s, i] = k(), { context: o } = Xe(ht), n = L(null), r = L(), a = I((d) => {
46864
+ const [e, t] = k(() => new Ot()), [s, i] = k(), { context: o } = Je(ht), n = L(null), r = L(), a = I((d) => {
46865
46865
  if (n.current = d, !d || o.isDestroyed()) {
46866
46866
  r.current = o.destroyBean(r.current);
46867
46867
  return;
@@ -46872,7 +46872,7 @@ var jA = 1e3, KA = class {
46872
46872
  setHeightAndMinHeight: (h) => i(h)
46873
46873
  };
46874
46874
  r.current.setComp(u, d, d);
46875
- }, []), l = V(() => "ag-header " + e.toString(), [e]), c = V(
46875
+ }, []), l = B(() => "ag-header " + e.toString(), [e]), c = B(
46876
46876
  () => ({
46877
46877
  height: s,
46878
46878
  minHeight: s
@@ -46942,7 +46942,7 @@ var jA = 1e3, KA = class {
46942
46942
  o.current && s.current?.();
46943
46943
  }), []);
46944
46944
  }, c8 = (e) => {
46945
- const [t, s] = k(), i = Xe(ht), { context: o, popupSvc: n, gos: r, editSvc: a } = i, { editDetails: l, cellCtrl: c, eParentCell: d } = e;
46945
+ const [t, s] = k(), i = Je(ht), { context: o, popupSvc: n, gos: r, editSvc: a } = i, { editDetails: l, cellCtrl: c, eParentCell: d } = e;
46946
46946
  return l8(() => {
46947
46947
  const { compDetails: u } = l, h = r.get("stopEditingWhenCellsLoseFocus");
46948
46948
  let g, p;
@@ -47005,7 +47005,7 @@ var jA = 1e3, KA = class {
47005
47005
  }
47006
47006
  ) : c && o ? /* @__PURE__ */ U.createElement(kh, { editDetails: e, cellCtrl: i, eParentCell: s, jsChildComp: o }) : null;
47007
47007
  }, h8 = (e, t, s, i, o, n) => {
47008
- const { context: r } = Xe(ht), a = I(() => {
47008
+ const { context: r } = Je(ht), a = I(() => {
47009
47009
  const l = o.current;
47010
47010
  if (!l)
47011
47011
  return;
@@ -47038,7 +47038,7 @@ var jA = 1e3, KA = class {
47038
47038
  cellCtrl: e,
47039
47039
  parent: t
47040
47040
  }) => {
47041
- const s = L(), i = V(() => {
47041
+ const s = L(), i = B(() => {
47042
47042
  const { loadingComp: o } = e.getDeferLoadingCellRenderer();
47043
47043
  return o ? {
47044
47044
  value: void 0,
@@ -47056,14 +47056,14 @@ var jA = 1e3, KA = class {
47056
47056
  printLayout: t,
47057
47057
  editingCell: s
47058
47058
  }) => {
47059
- const i = Xe(ht), { context: o } = i, {
47059
+ const i = Je(ht), { context: o } = i, {
47060
47060
  column: { colIdSanitised: n },
47061
47061
  instanceId: r
47062
47062
  } = e, a = L(), [l, c] = k(
47063
47063
  () => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
47064
- ), [d, u] = k(), [h, g] = k(1), [p, f] = k(), [m, v] = k(!1), [w, b] = k(!1), [S, y] = k(!1), [x, F] = k(), R = V(() => e.isForceWrapper(), [e]), D = V(() => e.getCellAriaRole(), [e]), P = L(null), E = L(null), T = L(null), O = L(), j = L(), H = L(), ee = L([]), ne = L(), N = L(), [te, $] = k(0), W = I((fe) => {
47064
+ ), [d, u] = k(), [h, g] = k(1), [p, f] = k(), [m, v] = k(!1), [w, b] = k(!1), [S, y] = k(!1), [x, F] = k(), R = B(() => e.isForceWrapper(), [e]), D = B(() => e.getCellAriaRole(), [e]), P = L(null), E = L(null), T = L(null), O = L(), j = L(), H = L(), ee = L([]), ne = L(), N = L(), [te, $] = k(0), W = I((fe) => {
47065
47065
  N.current = fe, $((xe) => xe + 1);
47066
- }, []), Y = l != null && (m || S || w) && (d == null || !!d.popup), Z = R || Y, Q = V(() => e.getCellValueClass(), [e]), se = I(
47066
+ }, []), Y = l != null && (m || S || w) && (d == null || !!d.popup), Z = R || Y, Q = B(() => e.getCellValueClass(), [e]), se = I(
47067
47067
  (fe) => {
47068
47068
  if (j.current = fe, fe) {
47069
47069
  const xe = fe.isCancelBeforeStart && fe.isCancelBeforeStart();
@@ -47075,10 +47075,10 @@ var jA = 1e3, KA = class {
47075
47075
  [e]
47076
47076
  ), de = L();
47077
47077
  de.current || (de.current = new Jo(() => P.current)), tC(l, Z, N.current, te, O, P);
47078
- const B = L();
47078
+ const V = L();
47079
47079
  Vt(() => {
47080
- const fe = B.current, xe = l;
47081
- if (B.current = l, fe == null || fe.compDetails == null || xe == null || xe.compDetails == null)
47080
+ const fe = V.current, xe = l;
47081
+ if (V.current = l, fe == null || fe.compDetails == null || xe == null || xe.compDetails == null)
47082
47082
  return;
47083
47083
  ne.current?.refreshVisibility();
47084
47084
  const Me = fe.compDetails, _ = xe.compDetails;
@@ -47192,7 +47192,7 @@ var jA = 1e3, KA = class {
47192
47192
  P.current = fe, ye();
47193
47193
  }, []), Ie = I((fe) => {
47194
47194
  E.current = fe, ye();
47195
- }, []), Fe = V(() => !!(l?.compDetails?.componentFromFramework && ao(l.compDetails.componentClass)), [l]);
47195
+ }, []), Fe = B(() => !!(l?.compDetails?.componentFromFramework && ao(l.compDetails.componentClass)), [l]);
47196
47196
  Vt(() => {
47197
47197
  if (!P.current)
47198
47198
  return;
@@ -47213,7 +47213,7 @@ var jA = 1e3, KA = class {
47213
47213
  }, gt = () => /* @__PURE__ */ U.createElement("div", { ref: ue, style: p, role: D, "col-id": n }, Z ? /* @__PURE__ */ U.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: Ce }, Le()) : Le());
47214
47214
  return e.isCellSpanning() ? /* @__PURE__ */ U.createElement("div", { ref: Ie, className: "ag-spanned-cell-wrapper", role: "presentation" }, gt()) : gt();
47215
47215
  }, f8 = ut(p8), m8 = ({ rowCtrl: e, containerType: t }) => {
47216
- const { context: s, gos: i, editSvc: o } = Xe(ht), n = Xe(Ym) === "default", r = L(), a = L(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = k(
47216
+ const { context: s, gos: i, editSvc: o } = Je(ht), n = Je(Ym) === "default", r = L(), a = L(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = k(
47217
47217
  () => c ? e.rowNode.getRowIndexString() : null
47218
47218
  ), [h, g] = k(() => e.rowId), [p, f] = k(() => e.businessKey), [m, v] = k(() => e.rowStyles), w = L(null), [b, S] = k(() => null), [y, x] = k(), [F, R] = k(
47219
47219
  () => c ? e.getInitialRowTop(t) : void 0
@@ -47269,7 +47269,7 @@ var jA = 1e3, KA = class {
47269
47269
  getFullWidthCellRendererParams: () => O.current,
47270
47270
  refreshFullWidth: (Fe) => {
47271
47271
  const je = Fe();
47272
- return O.current = je, B.current ? (x((Le) => ({
47272
+ return O.current = je, V.current ? (x((Le) => ({
47273
47273
  ...Le,
47274
47274
  params: je
47275
47275
  })), !0) : !T.current || !T.current.refresh ? !1 : T.current.refresh(je);
@@ -47281,12 +47281,12 @@ var jA = 1e3, KA = class {
47281
47281
  () => nn(y, s, E.current, T),
47282
47282
  [y]
47283
47283
  );
47284
- const Z = V(() => {
47284
+ const Z = B(() => {
47285
47285
  const ue = { top: F, transform: D };
47286
47286
  return Object.assign(ue, m), ue;
47287
- }, [F, D, m]), Q = l && y?.componentFromFramework, se = !l && W != null, de = V(() => !!(y?.componentFromFramework && ao(y.componentClass)), [y]), B = L(!1);
47287
+ }, [F, D, m]), Q = l && y?.componentFromFramework, se = !l && W != null, de = B(() => !!(y?.componentFromFramework && ao(y.componentClass)), [y]), V = L(!1);
47288
47288
  me(() => {
47289
- B.current = de && !!y && !!i.get("reactiveCustomComponents");
47289
+ V.current = de && !!y && !!i.get("reactiveCustomComponents");
47290
47290
  }, [de, y]);
47291
47291
  const Ce = () => W?.map((ue) => /* @__PURE__ */ U.createElement(
47292
47292
  f8,
@@ -47313,7 +47313,7 @@ var jA = 1e3, KA = class {
47313
47313
  se ? Ce() : Q ? ye() : null
47314
47314
  );
47315
47315
  }, Lh = ut(m8), C8 = ({ name: e }) => {
47316
- const { context: t, gos: s } = Xe(ht), i = V(() => tn(e), [e]), o = L(null), n = L(null), r = L(null), a = L([]), l = L([]), [c, d] = k(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = L([]), g = L([]), [p, f] = k(() => []), m = L(!1), v = L(), w = V(() => Tt("ag-viewport", bf(e)), [e]), b = V(() => Tt(qn(e)), [e]), S = V(() => Tt("ag-spanning-container", iF(e)), [e]), y = i.type === "center" || u, x = y ? o : n;
47316
+ const { context: t, gos: s } = Je(ht), i = B(() => tn(e), [e]), o = L(null), n = L(null), r = L(null), a = L([]), l = L([]), [c, d] = k(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = L([]), g = L([]), [p, f] = k(() => []), m = L(!1), v = L(), w = B(() => Tt("ag-viewport", bf(e)), [e]), b = B(() => Tt(qn(e)), [e]), S = B(() => Tt("ag-spanning-container", iF(e)), [e]), y = i.type === "center" || u, x = y ? o : n;
47317
47317
  Us(" AG Row Container " + e + " ", x);
47318
47318
  const F = I(() => {
47319
47319
  const H = !y || o.current != null, ee = n.current != null, ne = !u || r.current != null;
@@ -47395,11 +47395,11 @@ var jA = 1e3, KA = class {
47395
47395
  const j = () => /* @__PURE__ */ U.createElement("div", { className: S, ref: E, role: "presentation" }, p.map((H) => /* @__PURE__ */ U.createElement(Lh, { rowCtrl: H, containerType: i.type, key: H.instanceId })));
47396
47396
  return /* @__PURE__ */ U.createElement("div", { className: w, ref: T, role: "rowgroup" }, O(), u ? j() : null);
47397
47397
  }, v8 = ut(C8), w8 = () => {
47398
- const e = Xe(ht), { 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"), [v, w] = k("0px"), [b, S] = k("100%"), [y, x] = k(!0), [F, R] = k(!0), [D, P] = k(null), [E, T] = k(""), [O, j] = k(null), [H, ee] = k("ag-layout-normal"), ne = L();
47398
+ const e = Je(ht), { 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"), [v, w] = k("0px"), [b, S] = k("100%"), [y, x] = k(!0), [F, R] = k(!0), [D, P] = k(null), [E, T] = k(""), [O, j] = k(null), [H, ee] = k("ag-layout-normal"), ne = L();
47399
47399
  ne.current || (ne.current = new Jo(() => N.current));
47400
47400
  const N = L(null), te = L(null), $ = L(null), W = L(null), Y = L(null), Z = L(null), Q = L(null), se = L([]), de = L([]);
47401
47401
  Us(" AG Grid Body ", N), Us(" AG Pinned Top ", te), Us(" AG Sticky Top ", $), Us(" AG Middle ", Z), Us(" AG Pinned Bottom ", Q);
47402
- const B = I((we) => {
47402
+ const V = I((we) => {
47403
47403
  if (N.current = we, !we || t.isDestroyed()) {
47404
47404
  se.current = t.destroyBeans(se.current);
47405
47405
  for (const ke of de.current)
@@ -47407,13 +47407,13 @@ var jA = 1e3, KA = class {
47407
47407
  de.current = [];
47408
47408
  return;
47409
47409
  }
47410
- const We = (ke, st) => {
47411
- ke.appendChild(st), de.current.push(() => st.remove());
47410
+ const We = (ke, it) => {
47411
+ ke.appendChild(it), de.current.push(() => it.remove());
47412
47412
  }, St = (ke) => {
47413
- const st = t.createBean(new ke());
47414
- return se.current.push(st), st;
47415
- }, _e = (ke, st, lo) => {
47416
- We(ke, document.createComment(lo)), We(ke, St(st).getGui());
47413
+ const it = t.createBean(new ke());
47414
+ return se.current.push(it), it;
47415
+ }, _e = (ke, it, lo) => {
47416
+ We(ke, document.createComment(lo)), We(ke, St(it).getGui());
47417
47417
  };
47418
47418
  _e(we, bF, " AG Fake Horizontal Scroll ");
47419
47419
  const Gt = s?.getOverlayWrapperCompClass();
@@ -47433,18 +47433,18 @@ var jA = 1e3, KA = class {
47433
47433
  setStickyTopWidth: p,
47434
47434
  setTopInvisible: x,
47435
47435
  setBottomInvisible: R,
47436
- setColumnMovingCss: (ke, st) => ne.current.toggleCss(ke, st),
47436
+ setColumnMovingCss: (ke, it) => ne.current.toggleCss(ke, it),
47437
47437
  updateLayoutClasses: ee,
47438
47438
  setAlwaysVerticalScrollClass: P,
47439
47439
  setPinnedTopBottomOverflowY: T,
47440
- setCellSelectableCss: (ke, st) => j(st ? ke : null),
47440
+ setCellSelectableCss: (ke, it) => j(it ? ke : null),
47441
47441
  setBodyViewportWidth: (ke) => {
47442
47442
  Z.current && (Z.current.style.width = ke);
47443
47443
  },
47444
47444
  registerBodyViewportResizeListener: (ke) => {
47445
47445
  if (Z.current) {
47446
- const st = ws(e, Z.current, ke);
47447
- de.current.push(() => st());
47446
+ const it = ws(e, Z.current, ke);
47447
+ de.current.push(() => it());
47448
47448
  }
47449
47449
  },
47450
47450
  setStickyBottomHeight: m,
@@ -47461,7 +47461,7 @@ var jA = 1e3, KA = class {
47461
47461
  $.current,
47462
47462
  W.current
47463
47463
  );
47464
- }, []), Ce = V(() => Tt("ag-root", "ag-unselectable", H), [H]), ye = V(
47464
+ }, []), Ce = B(() => Tt("ag-root", "ag-unselectable", H), [H]), ye = B(
47465
47465
  () => Tt(
47466
47466
  "ag-body-viewport",
47467
47467
  i,
@@ -47470,37 +47470,37 @@ var jA = 1e3, KA = class {
47470
47470
  O
47471
47471
  ),
47472
47472
  [i, H, D, O]
47473
- ), ue = V(() => Tt("ag-body", H), [H]), Ie = V(
47473
+ ), ue = B(() => Tt("ag-body", H), [H]), Ie = B(
47474
47474
  () => Tt("ag-floating-top", y ? "ag-invisible" : null, O),
47475
47475
  [O, y]
47476
- ), Fe = V(() => Tt("ag-sticky-top", O), [O]), je = V(
47476
+ ), Fe = B(() => Tt("ag-sticky-top", O), [O]), je = B(
47477
47477
  () => Tt("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, O),
47478
47478
  [O, f]
47479
- ), Le = V(
47479
+ ), Le = B(
47480
47480
  () => Tt("ag-floating-bottom", F ? "ag-invisible" : null, O),
47481
47481
  [O, F]
47482
- ), gt = V(
47482
+ ), gt = B(
47483
47483
  () => ({
47484
47484
  height: n,
47485
47485
  minHeight: n,
47486
47486
  overflowY: E
47487
47487
  }),
47488
47488
  [n, E]
47489
- ), fe = V(
47489
+ ), fe = B(
47490
47490
  () => ({
47491
47491
  height: c,
47492
47492
  top: u,
47493
47493
  width: g
47494
47494
  }),
47495
47495
  [c, u, g]
47496
- ), xe = V(
47496
+ ), xe = B(
47497
47497
  () => ({
47498
47498
  height: f,
47499
47499
  bottom: v,
47500
47500
  width: b
47501
47501
  }),
47502
47502
  [f, v, b]
47503
- ), Me = V(
47503
+ ), Me = B(
47504
47504
  () => ({
47505
47505
  height: a,
47506
47506
  minHeight: a,
@@ -47513,7 +47513,7 @@ var jA = 1e3, KA = class {
47513
47513
  className: St,
47514
47514
  style: _e
47515
47515
  }) => /* @__PURE__ */ U.createElement("div", { ref: we, className: St, role: "presentation", style: _e }, We.map(_));
47516
- return /* @__PURE__ */ U.createElement("div", { ref: B, className: Ce }, /* @__PURE__ */ U.createElement(n8, null), X({
47516
+ return /* @__PURE__ */ U.createElement("div", { ref: V, className: Ce }, /* @__PURE__ */ U.createElement(n8, null), X({
47517
47517
  section: te,
47518
47518
  className: Ie,
47519
47519
  style: gt,
@@ -47539,7 +47539,7 @@ var jA = 1e3, KA = class {
47539
47539
  children: ["bottomLeft", "bottomCenter", "bottomRight", "bottomFullWidth"]
47540
47540
  }));
47541
47541
  }, b8 = ut(w8), S8 = (e, t) => {
47542
- const { children: s, eFocusableElement: i, onTabKeyDown: o, gridCtrl: n, forceFocusOutWhenTabGuardsAreEmpty: r, isEmpty: a } = e, { context: l } = Xe(ht), c = L(null), d = L(null), u = L(), h = (v) => {
47542
+ const { children: s, eFocusableElement: i, onTabKeyDown: o, gridCtrl: n, forceFocusOutWhenTabGuardsAreEmpty: r, isEmpty: a } = e, { context: l } = Je(ht), c = L(null), d = L(null), u = L(), h = (v) => {
47543
47543
  const w = v == null ? void 0 : parseInt(v, 10).toString();
47544
47544
  for (const b of [c, d])
47545
47545
  w === void 0 ? b.current?.removeAttribute("tabindex") : b.current?.setAttribute("tabindex", w);
@@ -47662,13 +47662,13 @@ var jA = 1e3, KA = class {
47662
47662
  Y.remove();
47663
47663
  };
47664
47664
  }, [u, m, e]);
47665
- const F = V(
47665
+ const F = B(
47666
47666
  () => Tt("ag-root-wrapper", t, i),
47667
47667
  [t, i]
47668
- ), R = V(
47668
+ ), R = B(
47669
47669
  () => Tt("ag-root-wrapper-body", "ag-focus-managed", i),
47670
47670
  [i]
47671
- ), D = V(
47671
+ ), D = B(
47672
47672
  () => ({
47673
47673
  userSelect: a ?? "",
47674
47674
  WebkitUserSelect: a ?? "",
@@ -47809,7 +47809,7 @@ var jA = 1e3, KA = class {
47809
47809
  ), o.current.push(() => {
47810
47810
  t.current = void 0;
47811
47811
  }), t.current && (l.current = t.current.getGridId());
47812
- }, []), p = V(() => ({
47812
+ }, []), p = B(() => ({
47813
47813
  height: "100%",
47814
47814
  ...e.containerStyle || {}
47815
47815
  }), [e.containerStyle]), f = I((v) => {
@@ -47890,10 +47890,10 @@ var M8 = class extends Q4 {
47890
47890
  return new Jm(e, this.parent, t, o);
47891
47891
  }
47892
47892
  }, I8 = hc((e, t) => {
47893
- const s = Xe(ht), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = k(() => new Ot()), [c, d] = k(() => new Ot()), [u, h] = k(), [g, p] = k(), f = L(), m = L(null), v = L(), w = V(
47893
+ const s = Je(ht), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = k(() => new Ot()), [c, d] = k(() => new Ot()), [u, h] = k(), [g, p] = k(), f = L(), m = L(null), v = L(), w = B(
47894
47894
  () => Dy(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
47895
47895
  [e]
47896
- ), b = V(() => a.toString() + " ag-details-row", [a]), S = V(() => c.toString() + " ag-details-grid", [c]);
47896
+ ), b = B(() => a.toString() + " ag-details-row", [a]), S = B(() => c.toString() + " ag-details-grid", [c]);
47897
47897
  t && Ir(t, () => ({
47898
47898
  refresh() {
47899
47899
  return f.current?.refresh() ?? !1;
@@ -48015,7 +48015,7 @@ const L8 = "h-full", ol = {
48015
48015
  rowData: o = [],
48016
48016
  getRowId: n
48017
48017
  }) => {
48018
- const [r, a] = k(/* @__PURE__ */ new Map()), l = t ?? r, c = V(
48018
+ const [r, a] = k(/* @__PURE__ */ new Map()), l = t ?? r, c = B(
48019
48019
  () => new Set(l.keys()),
48020
48020
  [l]
48021
48021
  ), d = e !== void 0 || t !== void 0;
@@ -48043,7 +48043,7 @@ const L8 = "h-full", ol = {
48043
48043
  s,
48044
48044
  i
48045
48045
  ]
48046
- ), h = V(() => {
48046
+ ), h = B(() => {
48047
48047
  if (!o.length) return "unchecked";
48048
48048
  const p = o.every(
48049
48049
  (m) => c.has(n(m))
@@ -48113,7 +48113,7 @@ const nC = ({
48113
48113
  onSelectionChangeWithMap: u,
48114
48114
  rowData: t,
48115
48115
  getRowId: h
48116
- }), O = V(
48116
+ }), O = B(
48117
48117
  () => ({
48118
48118
  ...ol,
48119
48119
  oddRowBackgroundColor: g ? ol.oddRowBackgroundColor : ol.backgroundColor,
@@ -48143,7 +48143,7 @@ const nC = ({
48143
48143
  ) }), [E, T]), ne = I(
48144
48144
  (se) => {
48145
48145
  if (se.data) {
48146
- const de = i?.(se.data) ?? [], B = se.value == null ? "" : String(se.value);
48146
+ const de = i?.(se.data) ?? [], V = se.value == null ? "" : String(se.value);
48147
48147
  return /* @__PURE__ */ C(
48148
48148
  Nt,
48149
48149
  {
@@ -48155,7 +48155,7 @@ const nC = ({
48155
48155
  children: /* @__PURE__ */ C("span", { className: "block min-w-0 h-full max-w-full", children: /* @__PURE__ */ C(
48156
48156
  ss,
48157
48157
  {
48158
- text: B,
48158
+ text: V,
48159
48159
  className: "max-w-full h-full"
48160
48160
  }
48161
48161
  ) })
@@ -48167,19 +48167,19 @@ const nC = ({
48167
48167
  ), N = I(
48168
48168
  (se) => {
48169
48169
  if (!se.data) return null;
48170
- const de = h(se.data), B = D.has(de), Ce = `row-select-${de}`;
48170
+ const de = h(se.data), V = D.has(de), Ce = `row-select-${de}`;
48171
48171
  return /* @__PURE__ */ C("div", { className: "flex items-center justify-center size-full", children: /* @__PURE__ */ C(
48172
48172
  er,
48173
48173
  {
48174
48174
  id: Ce,
48175
48175
  ariaLabel: "Select row",
48176
- checked: B,
48176
+ checked: V,
48177
48177
  className: "dial-row-select",
48178
48178
  onChange: (ye) => {
48179
48179
  se.data && P(se.data, !!ye);
48180
48180
  }
48181
48181
  },
48182
- `${de}-${B}`
48182
+ `${de}-${V}`
48183
48183
  ) });
48184
48184
  },
48185
48185
  [D, h, P]
@@ -48190,11 +48190,11 @@ const nC = ({
48190
48190
  return { ...se, cellRenderer: ne };
48191
48191
  if (!de)
48192
48192
  return se;
48193
- const B = se.cellRenderer;
48193
+ const V = se.cellRenderer;
48194
48194
  return { ...se, cellRenderer: (ye) => {
48195
48195
  const ue = ye.data ? i?.(ye.data) ?? [] : [];
48196
48196
  let Ie = null;
48197
- return typeof B == "function" ? Ie = /* @__PURE__ */ C(B, { ...ye }) : Ie = ne(ye), /* @__PURE__ */ C(
48197
+ return typeof V == "function" ? Ie = /* @__PURE__ */ C(V, { ...ye }) : Ie = ne(ye), /* @__PURE__ */ C(
48198
48198
  Nt,
48199
48199
  {
48200
48200
  trigger: [It.ContextMenu],
@@ -48208,7 +48208,7 @@ const nC = ({
48208
48208
  } };
48209
48209
  },
48210
48210
  [i, ne, a]
48211
- ), $ = V(
48211
+ ), $ = B(
48212
48212
  () => ({
48213
48213
  colId: "__select",
48214
48214
  headerName: "",
@@ -48226,10 +48226,10 @@ const nC = ({
48226
48226
  headerComponent: ee
48227
48227
  }),
48228
48228
  [N, ee]
48229
- ), W = V(() => {
48229
+ ), W = B(() => {
48230
48230
  const se = (e ?? []).map(te);
48231
48231
  return r ? [$, ...se] : se;
48232
- }, [e, $, r, te]), Y = V(
48232
+ }, [e, $, r, te]), Y = B(
48233
48233
  () => ({
48234
48234
  minWidth: 150,
48235
48235
  resizable: !0,
@@ -48244,8 +48244,8 @@ const nC = ({
48244
48244
  }),
48245
48245
  [p]
48246
48246
  ), Z = (se) => {
48247
- const de = W.map((B) => ({
48248
- ...B,
48247
+ const de = W.map((V) => ({
48248
+ ...V,
48249
48249
  sort: void 0
48250
48250
  }));
48251
48251
  se.api.updateGridOptions({ columnDefs: de, rowData: t }), se.api.sizeColumnsToFit(), F(se.api), s?.onGridReady?.(se);
@@ -48317,7 +48317,7 @@ const nC = ({
48317
48317
  }
48318
48318
  );
48319
48319
  };
48320
- var ic = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e))(ic || {}), he = /* @__PURE__ */ ((e) => (e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Rename = "rename", e.Download = "download", e.Delete = "delete", e))(he || {}), lt = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(lt || {}), Dt = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Dt || {}), it = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(it || {});
48320
+ var ic = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e))(ic || {}), he = /* @__PURE__ */ ((e) => (e.Duplicate = "duplicate", e.Copy = "copy", e.Move = "move", e.Rename = "rename", e.Download = "download", e.Delete = "delete", e))(he || {}), lt = /* @__PURE__ */ ((e) => (e.Replace = "replace", e.Duplicate = "duplicate", e.Cancel = "cancel", e))(lt || {}), Dt = /* @__PURE__ */ ((e) => (e.ReplaceAll = "replaceAll", e.DuplicateAll = "duplicateAll", e.DecideForEach = "decideForEach", e))(Dt || {}), Xe = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Move = "move", e))(Xe || {});
48321
48321
  const rC = () => {
48322
48322
  const [e, t] = k(Zd());
48323
48323
  return me(() => {
@@ -48338,7 +48338,7 @@ const rC = () => {
48338
48338
  showHiddenFilesLabel: d = "Show hidden files",
48339
48339
  hideHiddenFilesLabel: u = "Hide hidden files"
48340
48340
  }) => {
48341
- const h = rC(), g = V(() => [
48341
+ const h = rC(), g = B(() => [
48342
48342
  {
48343
48343
  key: "hidden-files-switch",
48344
48344
  label: i ? u : d,
@@ -48721,7 +48721,7 @@ const z8 = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
48721
48721
  onMoveSuccess: o,
48722
48722
  onDuplicateSuccess: n
48723
48723
  }) => {
48724
- const [r, a] = k(!1), [l, c] = k([]), [d, u] = k([]), [h, g] = k(it.Copy), [p, f] = k(null), {
48724
+ const [r, a] = k(!1), [l, c] = k([]), [d, u] = k([]), [h, g] = k(Xe.Copy), [p, f] = k(null), {
48725
48725
  conflictingFiles: m,
48726
48726
  conflictResolutionOpen: v,
48727
48727
  hasActiveConflictRef: w,
@@ -48735,7 +48735,7 @@ const z8 = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
48735
48735
  } = U8({
48736
48736
  getDestinationFiles: e,
48737
48737
  onResolve: (W, Y) => {
48738
- p?.type === it.Copy ? (t?.(W, Y), i?.()) : p?.type === it.Move && p.sourceFolder && (s?.(
48738
+ p?.type === Xe.Copy ? (t?.(W, Y), i?.()) : p?.type === Xe.Move && p.sourceFolder && (s?.(
48739
48739
  W,
48740
48740
  p.sourceFolder,
48741
48741
  Y
@@ -48746,9 +48746,9 @@ const z8 = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
48746
48746
  }, []), E = I(
48747
48747
  (W) => {
48748
48748
  const Y = b(W, l, {
48749
- type: it.Copy
48749
+ type: Xe.Copy
48750
48750
  });
48751
- if (f({ type: it.Copy }), !Y.hasConflicts) {
48751
+ if (f({ type: Xe.Copy }), !Y.hasConflicts) {
48752
48752
  const Z = S(
48753
48753
  W,
48754
48754
  l,
@@ -48768,10 +48768,10 @@ const z8 = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
48768
48768
  ), T = I(
48769
48769
  (W, Y) => {
48770
48770
  const Z = b(W, d, {
48771
- type: it.Move,
48771
+ type: Xe.Move,
48772
48772
  sourceFolder: Y
48773
48773
  });
48774
- if (f({ type: it.Move, sourceFolder: Y }), !Z.hasConflicts) {
48774
+ if (f({ type: Xe.Move, sourceFolder: Y }), !Z.hasConflicts) {
48775
48775
  const Q = S(
48776
48776
  W,
48777
48777
  d,
@@ -49082,13 +49082,13 @@ const J8 = ({
49082
49082
  validationMessages: s,
49083
49083
  onMoveToFiles: i
49084
49084
  }) => {
49085
- const [o, n] = k(), r = V(
49085
+ const [o, n] = k(), r = B(
49086
49086
  () => ({
49087
49087
  ...Q8,
49088
49088
  ...s
49089
49089
  }),
49090
49090
  [s]
49091
- ), a = V(() => o?.path, [o]), l = I(
49091
+ ), a = B(() => o?.path, [o]), l = I(
49092
49092
  (h) => {
49093
49093
  const g = oi(e, h);
49094
49094
  g && n(g);
@@ -49149,7 +49149,7 @@ const J8 = ({
49149
49149
  onCreateFolder: s,
49150
49150
  onUploadArchive: i
49151
49151
  }) => {
49152
- const o = V(() => {
49152
+ const o = B(() => {
49153
49153
  const r = [];
49154
49154
  return e && (e.newFolder && r.push({
49155
49155
  key: "new-folder",
@@ -49173,7 +49173,7 @@ const J8 = ({
49173
49173
  i && i();
49174
49174
  }
49175
49175
  })), r;
49176
- }, [e, t, s, i]), n = V(() => o.length > 0, [o]);
49176
+ }, [e, t, s, i]), n = B(() => o.length > 0, [o]);
49177
49177
  return { newActions: o, isNewButtonVisible: n };
49178
49178
  }, tL = {
49179
49179
  emptyName: "Folder name cannot be empty",
@@ -49184,7 +49184,7 @@ const J8 = ({
49184
49184
  onValidateFolderName: s,
49185
49185
  validationMessages: i
49186
49186
  }) => {
49187
- const [o, n] = k(!1), [r, a] = k(null), l = L(e?.path), c = V(
49187
+ const [o, n] = k(!1), [r, a] = k(null), l = L(e?.path), c = B(
49188
49188
  () => ({
49189
49189
  ...tL,
49190
49190
  ...i
@@ -49279,7 +49279,7 @@ const J8 = ({
49279
49279
  }) => {
49280
49280
  const [H, ee] = k(
49281
49281
  /* @__PURE__ */ new Map()
49282
- ), ne = V(
49282
+ ), ne = B(
49283
49283
  () => new Set(H.keys()),
49284
49284
  [H]
49285
49285
  ), N = I(() => ee(/* @__PURE__ */ new Map()), []), { currentPath: te, setCurrentPath: $, handlePathChange: W } = j8({
@@ -49291,7 +49291,7 @@ const J8 = ({
49291
49291
  p?.setDestinationFolderPath ? p.setDestinationFolderPath(De) : Z(De);
49292
49292
  },
49293
49293
  [p]
49294
- ), { areHiddenFilesVisible: de, toggleHiddenFilesVisibility: B } = W8({
49294
+ ), { areHiddenFilesVisible: de, toggleHiddenFilesVisibility: V } = W8({
49295
49295
  showHiddenFiles: r,
49296
49296
  onShowHiddenFilesChange: a
49297
49297
  }), { isTreeCollapsed: Ce, toggleTreeCollapse: ye, setIsTreeCollapsed: ue } = _8({
@@ -49316,7 +49316,7 @@ const J8 = ({
49316
49316
  }, [c?.value]);
49317
49317
  const _ = String(
49318
49318
  c?.value ?? xe ?? ""
49319
- ).trim(), X = V(
49319
+ ).trim(), X = B(
49320
49320
  () => au(s, te) ?? s[0],
49321
49321
  [s, te]
49322
49322
  ), {
@@ -49328,7 +49328,7 @@ const J8 = ({
49328
49328
  openDestinationFolderPopup: $t,
49329
49329
  handleSetCopiedFiles: Ci,
49330
49330
  handleSetMovedFiles: ke,
49331
- destinationFolderMode: st,
49331
+ destinationFolderMode: it,
49332
49332
  conflictingFiles: lo,
49333
49333
  conflictResolutionOpen: Xr,
49334
49334
  closeConflictResolution: Jr,
@@ -49412,19 +49412,19 @@ const J8 = ({
49412
49412
  onUploadFiles: fn,
49413
49413
  onUploadArchive: mn,
49414
49414
  onCreateFolder: Ke
49415
- }), dC = V(() => {
49415
+ }), dC = B(() => {
49416
49416
  const De = Gn(_).trim(), Bt = X?.items ?? [];
49417
49417
  let go = De ? RS(X) : Bt;
49418
- de || (go = go.filter((Je) => !Vg(Je)));
49419
- const ca = go.map((Je) => ({
49420
- id: Je.id ?? Je.path,
49421
- name: Je.name ?? Je.path.split("/").pop() ?? "",
49422
- updatedAt: Je.updatedAt,
49423
- size: Je.nodeType === dt.ITEM ? iL(Je.contentLength) : "-",
49424
- author: Je.author,
49425
- path: Je.path,
49426
- nodeType: Je.nodeType,
49427
- extension: Je.extension,
49418
+ de || (go = go.filter((et) => !Vg(et)));
49419
+ const ca = go.map((et) => ({
49420
+ id: et.id ?? et.path,
49421
+ name: et.name ?? et.path.split("/").pop() ?? "",
49422
+ updatedAt: et.updatedAt,
49423
+ size: et.nodeType === dt.ITEM ? iL(et.contentLength) : "-",
49424
+ author: et.author,
49425
+ path: et.path,
49426
+ nodeType: et.nodeType,
49427
+ extension: et.extension,
49428
49428
  isTemporary: !1
49429
49429
  }));
49430
49430
  if (ho && re && !De && ca.unshift({
@@ -49439,9 +49439,9 @@ const J8 = ({
49439
49439
  isTemporary: !0
49440
49440
  }), !De) return ca;
49441
49441
  const wC = De.split(/\s+/).filter(Boolean);
49442
- return ca.filter((Je) => {
49443
- if (Je.isTemporary) return !0;
49444
- const bC = Gn(Je.name), SC = Gn(Je.author), yC = yS(Je.extension);
49442
+ return ca.filter((et) => {
49443
+ if (et.isTemporary) return !0;
49444
+ const bC = Gn(et.name), SC = Gn(et.author), yC = yS(et.extension);
49445
49445
  return wC.every(
49446
49446
  (da) => bC.includes(da) || SC.includes(da) || yC.includes(da)
49447
49447
  );
@@ -49503,12 +49503,9 @@ const J8 = ({
49503
49503
  bulkActionsToolbarOptions: g,
49504
49504
  deleteConfirmationOptions: d,
49505
49505
  destinationFolderPopupOptions: {
49506
+ ...p,
49506
49507
  destinationFolderPath: Q,
49507
- setDestinationFolderPath: se,
49508
- addFolderLabel: p?.addFolderLabel,
49509
- copyLabel: p?.copyLabel,
49510
- moveLabel: p?.moveLabel,
49511
- hiddenFilesSwitcherLabel: p?.hiddenFilesSwitcherLabel
49508
+ setDestinationFolderPath: se
49512
49509
  },
49513
49510
  currentPath: te,
49514
49511
  setCurrentPath: $,
@@ -49516,7 +49513,7 @@ const J8 = ({
49516
49513
  effectiveSearchValue: _,
49517
49514
  setSearchValue: Me,
49518
49515
  areHiddenFilesVisible: de,
49519
- toggleHiddenFilesVisibility: B,
49516
+ toggleHiddenFilesVisibility: V,
49520
49517
  isTreeCollapsed: Ce,
49521
49518
  toggleTreeCollapse: ye,
49522
49519
  setIsTreeCollapsed: ue,
@@ -49534,7 +49531,7 @@ const J8 = ({
49534
49531
  openDestinationFolderPopup: $t,
49535
49532
  handleCloseDestinationFolderPopup: Gt,
49536
49533
  handleOpenDestinationFolderPopup: _e,
49537
- destinationFolderMode: st,
49534
+ destinationFolderMode: it,
49538
49535
  handleDownloadFiles: na,
49539
49536
  renamedPath: Ie,
49540
49537
  renamedItem: Fe,
@@ -49584,7 +49581,7 @@ const J8 = ({
49584
49581
  };
49585
49582
  return /* @__PURE__ */ C(aC.Provider, { value: vC, children: e });
49586
49583
  }, nL = () => {
49587
- const e = Xe(aC);
49584
+ const e = Je(aC);
49588
49585
  if (!e)
49589
49586
  throw new Error(
49590
49587
  "useFileManagerContext must be used within <FileManagerProvider>"
@@ -49647,16 +49644,18 @@ const J8 = ({
49647
49644
  copyLabel: i = "Copy",
49648
49645
  moveLabel: o = "Move",
49649
49646
  addFolderLabel: n = "Add folder",
49650
- mode: r = "copy",
49647
+ mode: r = Xe.Copy,
49651
49648
  hiddenFilesSwitcherLabel: a = "Show hidden files",
49652
49649
  onUploadFiles: l,
49653
49650
  onValidateUpload: c,
49654
49651
  maxFileSize: d,
49655
- ...u
49652
+ getCopyHeader: u,
49653
+ getMoveHeader: h,
49654
+ ...g
49656
49655
  }) => {
49657
- const [h, g] = k(!1), p = I((f) => {
49658
- g(f);
49659
- }, []);
49656
+ const [p, f] = k(!1), m = I((w) => {
49657
+ f(w);
49658
+ }, []), v = B(() => r === Xe.Copy ? u && g.items ? u(g.items.length, g.items[0]?.name) : "Copy to" : h && g.items ? h(g.items.length, g.items[0]?.name) : "Move to", [r, g.items, u, h]);
49660
49659
  return /* @__PURE__ */ C(
49661
49660
  Zo,
49662
49661
  {
@@ -49680,15 +49679,15 @@ const J8 = ({
49680
49679
  "div",
49681
49680
  {
49682
49681
  className: "inline-flex items-center cursor-pointer",
49683
- onClick: (f) => {
49684
- f.stopPropagation(), p(!h);
49682
+ onClick: (w) => {
49683
+ w.stopPropagation(), m(!p);
49685
49684
  },
49686
49685
  children: /* @__PURE__ */ C(
49687
49686
  Mg,
49688
49687
  {
49689
49688
  title: a,
49690
- isOn: h,
49691
- onChange: p,
49689
+ isOn: p,
49690
+ onChange: m,
49692
49691
  switchId: "hidden-files-switch"
49693
49692
  }
49694
49693
  )
@@ -49714,16 +49713,17 @@ const J8 = ({
49714
49713
  )
49715
49714
  ] })
49716
49715
  ] }),
49716
+ title: v,
49717
49717
  children: /* @__PURE__ */ C(
49718
49718
  uL,
49719
49719
  {
49720
- ...u,
49721
- showHiddenFiles: h,
49722
- onShowHiddenFilesChange: p,
49720
+ ...g,
49721
+ showHiddenFiles: p,
49722
+ onShowHiddenFilesChange: m,
49723
49723
  treeOptions: {
49724
- ...u.treeOptions,
49724
+ ...g.treeOptions,
49725
49725
  collapsed: !0,
49726
- expandedPaths: /* @__PURE__ */ new Set([u.rootItem?.path || "/"])
49726
+ expandedPaths: /* @__PURE__ */ new Set([g.rootItem?.path || "/"])
49727
49727
  },
49728
49728
  onUploadFiles: l,
49729
49729
  onValidateUpload: c,
@@ -49741,7 +49741,7 @@ const J8 = ({
49741
49741
  onDownload: n,
49742
49742
  onDelete: r,
49743
49743
  getCurrentFolderPath: a
49744
- }) => V(() => {
49744
+ }) => B(() => {
49745
49745
  const l = [], c = Array.from(e.values());
49746
49746
  return !c.length || !t || (t[he.Move] && l.push({
49747
49747
  key: he.Move,
@@ -49808,7 +49808,7 @@ const J8 = ({
49808
49808
  onDownload: o,
49809
49809
  onRename: n,
49810
49810
  onDelete: r
49811
- }) => V(() => (a) => {
49811
+ }) => B(() => (a) => {
49812
49812
  const l = [];
49813
49813
  return e && (e[he.Duplicate] && l.push({
49814
49814
  key: he.Duplicate,
@@ -49902,7 +49902,7 @@ const J8 = ({
49902
49902
  ] }),
49903
49903
  " ",
49904
49904
  "already exists in this destination."
49905
- ] }), ne = `${n.length} items with the same names already exist in this destination.`, N = l ?? (f ? ee : ne), te = V(
49905
+ ] }), ne = `${n.length} items with the same names already exist in this destination.`, N = l ?? (f ? ee : ne), te = B(
49906
49906
  () => [
49907
49907
  {
49908
49908
  id: lt.Replace,
@@ -49914,13 +49914,13 @@ const J8 = ({
49914
49914
  }
49915
49915
  ],
49916
49916
  [v, w]
49917
- ), $ = V(() => n.map((Q) => ({
49917
+ ), $ = B(() => n.map((Q) => ({
49918
49918
  id: Q.path,
49919
49919
  name: Q.name,
49920
49920
  path: Q.path,
49921
49921
  nodeType: Q.nodeType ?? dt.ITEM,
49922
49922
  action: E.get(Q.path) || lt.Replace
49923
- })), [n, E]), W = V(() => [
49923
+ })), [n, E]), W = B(() => [
49924
49924
  {
49925
49925
  field: "name",
49926
49926
  headerName: g,
@@ -49972,12 +49972,12 @@ const J8 = ({
49972
49972
  }
49973
49973
  ], de = se.find(
49974
49974
  (Ce) => Ce.key === Q.data.action
49975
- ), B = O === Q.data.path;
49975
+ ), V = O === Q.data.path;
49976
49976
  return /* @__PURE__ */ C("div", { className: "flex items-center h-full", children: /* @__PURE__ */ C(
49977
49977
  Nt,
49978
49978
  {
49979
49979
  trigger: [It.Click],
49980
- open: B,
49980
+ open: V,
49981
49981
  menu: {
49982
49982
  items: se,
49983
49983
  onClick: ({ key: Ce }) => {
@@ -50007,7 +50007,7 @@ const J8 = ({
50007
50007
  size: 16,
50008
50008
  className: J(
50009
50009
  "text-secondary transition-transform",
50010
- B && "rotate-180"
50010
+ V && "rotate-180"
50011
50011
  )
50012
50012
  }
50013
50013
  )
@@ -50023,7 +50023,7 @@ const J8 = ({
50023
50023
  w,
50024
50024
  b,
50025
50025
  O
50026
- ]), Y = V(
50026
+ ]), Y = B(
50027
50027
  () => [
50028
50028
  {
50029
50029
  id: Dt.ReplaceAll,
@@ -50182,7 +50182,7 @@ const J8 = ({
50182
50182
  deleteConfirmationOpen: Q,
50183
50183
  itemsToDelete: se,
50184
50184
  renamedPath: de,
50185
- renamedItem: B,
50185
+ renamedItem: V,
50186
50186
  onRename: Ce,
50187
50187
  onRenameSave: ye,
50188
50188
  onRenameCancel: ue,
@@ -50204,7 +50204,7 @@ const J8 = ({
50204
50204
  validateFolderName: $t,
50205
50205
  conflictingFiles: Ci,
50206
50206
  conflictResolutionOpen: ke,
50207
- closeConflictResolution: st,
50207
+ closeConflictResolution: it,
50208
50208
  handleConflictReplace: lo,
50209
50209
  handleConflictDuplicate: Xr,
50210
50210
  handleConflictDecideForEach: Jr
@@ -50224,7 +50224,7 @@ const J8 = ({
50224
50224
  dateLocale: ln,
50225
50225
  dateOptions: cn,
50226
50226
  ...dn
50227
- } = r ?? {}, aa = V(() => [
50227
+ } = r ?? {}, aa = B(() => [
50228
50228
  {
50229
50229
  field: "name",
50230
50230
  headerName: "Name",
@@ -50242,7 +50242,7 @@ const J8 = ({
50242
50242
  onSave: Gt,
50243
50243
  onCancel: _e
50244
50244
  }
50245
- ) : de === re.data?.path && B && re.data ? /* @__PURE__ */ C(
50245
+ ) : de === re.data?.path && V && re.data ? /* @__PURE__ */ C(
50246
50246
  Sl,
50247
50247
  {
50248
50248
  name: re.data.name,
@@ -50250,7 +50250,7 @@ const J8 = ({
50250
50250
  elementId: `rename-${re.data.id}`,
50251
50251
  editing: !0,
50252
50252
  iconSize: js,
50253
- validate: (Bs) => Ie(Bs, B),
50253
+ validate: (Bs) => Ie(Bs, V),
50254
50254
  onSave: ye,
50255
50255
  onCancel: ue
50256
50256
  }
@@ -50294,11 +50294,11 @@ const J8 = ({
50294
50294
  _e,
50295
50295
  $t,
50296
50296
  de,
50297
- B,
50297
+ V,
50298
50298
  Ie,
50299
50299
  ye,
50300
50300
  ue
50301
- ]), vi = ra ?? aa, un = V(() => an ? vi : vi.map((re) => ({
50301
+ ]), vi = ra ?? aa, un = B(() => an ? vi : vi.map((re) => ({
50302
50302
  ...re,
50303
50303
  filter: !1,
50304
50304
  floatingFilter: !1
@@ -50310,7 +50310,7 @@ const J8 = ({
50310
50310
  icon: /* @__PURE__ */ C(fc, { ...ce, className: "text-secondary" }),
50311
50311
  onClick: () => ne([re])
50312
50312
  }), o.actionLabels[he.Copy] && Ke.push({
50313
- key: it.Copy,
50313
+ key: Xe.Copy,
50314
50314
  label: o.actionLabels[he.Copy],
50315
50315
  icon: /* @__PURE__ */ C(
50316
50316
  Fd,
@@ -50321,10 +50321,10 @@ const J8 = ({
50321
50321
  }
50322
50322
  ),
50323
50323
  onClick: () => {
50324
- H([re]), E(it.Copy);
50324
+ H([re]), E(Xe.Copy);
50325
50325
  }
50326
50326
  }), o.actionLabels[he.Move] && Ke.push({
50327
- key: it.Move,
50327
+ key: Xe.Move,
50328
50328
  label: o.actionLabels[he.Move],
50329
50329
  icon: /* @__PURE__ */ C(
50330
50330
  Ed,
@@ -50335,7 +50335,7 @@ const J8 = ({
50335
50335
  }
50336
50336
  ),
50337
50337
  onClick: () => {
50338
- ee([re]), E(it.Move);
50338
+ ee([re]), E(Xe.Move);
50339
50339
  }
50340
50340
  }), o.actionLabels[he.Download] && Ke.push({
50341
50341
  key: "download",
@@ -50353,7 +50353,7 @@ const J8 = ({
50353
50353
  icon: /* @__PURE__ */ C(Yo, { ...ce, className: "text-secondary" }),
50354
50354
  onClick: () => W([re], re.parentPath ?? "")
50355
50355
  })), Ke;
50356
- }, la = V(() => {
50356
+ }, la = B(() => {
50357
50357
  const re = /* @__PURE__ */ new Map();
50358
50358
  return b.forEach((Ke, Bs) => {
50359
50359
  const Vs = v.find((wi) => wi.path === Bs);
@@ -50373,10 +50373,10 @@ const J8 = ({
50373
50373
  actionLabels: l?.actionLabels,
50374
50374
  onDuplicate: ne,
50375
50375
  onCopy: (re) => {
50376
- H(re), E(it.Copy);
50376
+ H(re), E(Xe.Copy);
50377
50377
  },
50378
50378
  onMove: (re) => {
50379
- ee(re), E(it.Move);
50379
+ ee(re), E(Xe.Move);
50380
50380
  },
50381
50381
  onDownload: $,
50382
50382
  onDelete: W,
@@ -50427,10 +50427,10 @@ const J8 = ({
50427
50427
  actionLabels: r?.actionLabels,
50428
50428
  onDuplicate: (re) => ne([re]),
50429
50429
  onCopy: (re) => {
50430
- H([re]), E(it.Copy);
50430
+ H([re]), E(Xe.Copy);
50431
50431
  },
50432
50432
  onMove: (re) => {
50433
- ee([re]), E(it.Move);
50433
+ ee([re]), E(Xe.Move);
50434
50434
  },
50435
50435
  onDownload: (re) => $([re]),
50436
50436
  onRename: Ce,
@@ -50569,21 +50569,16 @@ const J8 = ({
50569
50569
  /* @__PURE__ */ C(
50570
50570
  aL,
50571
50571
  {
50572
+ ...d,
50572
50573
  open: O,
50573
50574
  onClose: T,
50574
50575
  onConfirm: () => {
50575
50576
  const re = d?.destinationFolderPath ?? "/";
50576
- j === it.Copy ? N(re) : te(re, m ?? "/"), T();
50577
+ j === Xe.Copy ? N(re) : te(re, m ?? "/"), T();
50577
50578
  },
50578
50579
  mode: j,
50579
50580
  items: t,
50580
50581
  rootItem: s,
50581
- onPathChange: d?.setDestinationFolderPath,
50582
- path: d?.destinationFolderPath,
50583
- addFolderLabel: d?.addFolderLabel,
50584
- copyLabel: d?.copyLabel,
50585
- moveLabel: d?.moveLabel,
50586
- hiddenFilesSwitcherLabel: d?.hiddenFilesSwitcherLabel,
50587
50582
  gridOptions: { columnDefs: un, loading: i },
50588
50583
  onUploadFiles: Me,
50589
50584
  onValidateUpload: _,
@@ -50595,7 +50590,7 @@ const J8 = ({
50595
50590
  {
50596
50591
  ...u,
50597
50592
  open: ke,
50598
- onClose: st,
50593
+ onClose: it,
50599
50594
  onReplace: lo,
50600
50595
  onDuplicate: Xr,
50601
50596
  onDecideForEach: Jr,
@@ -50610,7 +50605,7 @@ const J8 = ({
50610
50605
  ic.MyFiles
50611
50606
  ), i = (n) => {
50612
50607
  s(n);
50613
- }, o = V(() => {
50608
+ }, o = B(() => {
50614
50609
  if (e)
50615
50610
  return Object.values(ic).map((n) => ({
50616
50611
  id: n,