@epam/ai-dial-ui-kit 0.4.0-rc.39 → 0.4.0-rc.40

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 K, Fragment as et } from "react/jsx-runtime";
2
2
  import Z from "classnames";
3
3
  import { useFloating as $a, offset as pu, flip as fu, shift as mu, arrow as Bf, autoUpdate as Cu, useHover as vu, useFocus as zf, useDismiss as ja, useRole as Ka, useInteractions as qa, useMergeRefs as wu, FloatingPortal as Ya, FloatingArrow as Wf, autoPlacement as _f, size as Uf, useClick as $f, FloatingFocusManager as bu, FloatingOverlay as jf } from "@floating-ui/react";
4
4
  import * as le from "react";
5
- import V, { createContext as Vn, useState as M, useRef as I, useMemo as W, useContext as Be, isValidElement as Za, cloneElement as ln, useCallback as _, useEffect as me, memo as it, useLayoutEffect as Rt, useId as Qa, createElement as Su, Children as Kf, Component as qf, forwardRef as Xa, useImperativeHandle as Ja, Suspense as Yf } from "react";
5
+ import G, { createContext as Vn, useState as I, useRef as A, useMemo as W, useContext as Be, isValidElement as Za, cloneElement as ln, useCallback as _, useEffect as me, memo as it, useLayoutEffect as Rt, useId as Qa, createElement as Su, Children as Kf, Component as qf, forwardRef as Xa, useImperativeHandle as Ja, Suspense as Yf } from "react";
6
6
  import { IconInfoCircle as yu, IconCircleCheck as Zf, IconAlertTriangle as Qf, IconAlertCircle as Xf, IconX as Ao, IconMinus as Jf, IconCheck as Ru, IconExclamationCircle as el, IconClipboardX as xu, IconChevronsLeft as em, IconChevronsRight as tm, IconGripVertical as sm, IconFile as om, IconFileTypeZip as im, IconFileTypeXml as nm, IconFileTypeXls as rm, IconFileTypeVue as am, IconFileTypeTxt as lm, IconFileTypeTsx as cm, IconFileTypeTs as dm, IconFileTypeSvg as um, IconFileTypeSql as hm, IconFileTypeRs as gm, IconFileTypePpt as pm, IconFileTypePng as fm, IconFileTypePhp as mm, IconFileTypePdf as Cm, IconFileTypeJsx as vm, IconFileTypeJs as wm, IconFileTypeJpg as bm, IconFileTypeHtml as Sm, IconFileTypeDocx as ym, IconFileTypeDoc as Rm, IconFileTypeCsv as xm, IconFileTypeCss as Fm, IconFileTypeBmp as Em, IconArrowUpRight as Pm, IconFolder as Dm, IconChevronDown as tl, IconDotsVertical as Bn, IconChevronRight as Tm, IconTrashX as Fu, IconSearch as Mm, IconCaretRightFilled as Im, IconZoomCancel as Am, IconChevronUp as km, IconRefresh as ir, IconEyeOff as Eu, IconEye as Pu, IconCopy as Lm, IconCut as Om, IconClipboardCopy as Nm, IconPlus as Hm } from "@tabler/icons-react";
7
7
  import Gm, { createPortal as sl } from "react-dom";
8
8
  const Gs = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "text-error dial-tiny mt-1", children: e }), Me = ({ icon: e, className: t }) => e ? /* @__PURE__ */ v("span", { className: Z("flex-shrink-0", t), children: e }) : null, Vm = 7, Bm = 2, Du = Vn(null), Tu = () => {
@@ -17,7 +17,7 @@ const Gs = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "te
17
17
  open: o,
18
18
  onOpenChange: i
19
19
  } = {}) => {
20
- const [n, r] = M(e), a = I(null), l = o ?? n, c = i ?? r, d = $a({
20
+ const [n, r] = I(e), a = A(null), l = o ?? n, c = i ?? r, d = $a({
21
21
  placement: t,
22
22
  open: l,
23
23
  onOpenChange: c,
@@ -59,7 +59,7 @@ const Gs = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "te
59
59
  const s = zm(t);
60
60
  return /* @__PURE__ */ v(Du.Provider, { value: s, children: e });
61
61
  }, Iu = ({ style: e, ...t }) => {
62
- const s = Tu(), o = I(null), i = wu([s.refs.setFloating, o]);
62
+ const s = Tu(), o = A(null), i = wu([s.refs.setFloating, o]);
63
63
  return s.open ? /* @__PURE__ */ v(Ya, { id: "tooltip-portal", children: /* @__PURE__ */ K(
64
64
  "div",
65
65
  {
@@ -93,7 +93,7 @@ const Gs = ({ errorText: e }) => e && /* @__PURE__ */ v("span", { className: "te
93
93
  asChild: t = !1,
94
94
  ...s
95
95
  }) => {
96
- const o = Tu(), i = I(null), r = e && typeof e == "object" && "ref" in e && e.ref !== void 0 ? e.ref : void 0, a = wu([o.refs.setReference, i, r]);
96
+ const o = Tu(), i = A(null), r = e && typeof e == "object" && "ref" in e && e.ref !== void 0 ? e.ref : void 0, a = wu([o.refs.setReference, i, r]);
97
97
  return t && Za(e) ? ln(
98
98
  e,
99
99
  o.getReferenceProps({
@@ -402,13 +402,13 @@ const Ve = (e) => {
402
402
  "bottom-left",
403
403
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
404
404
  "left-bottom"
405
- ], S = () => [...y(), X, Q], R = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", "contain", "none"], P = () => [X, Q, l], A = () => [eo, "full", "auto", ...P()], k = () => [ns, "none", "subgrid", X, Q], F = () => ["auto", {
405
+ ], S = () => [...y(), X, Q], R = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", "contain", "none"], P = () => [X, Q, l], k = () => [eo, "full", "auto", ...P()], M = () => [ns, "none", "subgrid", X, Q], F = () => ["auto", {
406
406
  span: ["full", ns, X, Q]
407
- }, ns, X, Q], T = () => [ns, "auto", X, Q], B = () => ["auto", "min", "max", "fr", X, Q], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], re = () => ["auto", ...P()], oe = () => [eo, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...P()], O = () => [e, X, Q], ae = () => [...y(), pc, gc, {
407
+ }, ns, X, Q], T = () => [ns, "auto", X, Q], V = () => ["auto", "min", "max", "fr", X, Q], J = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], re = () => ["auto", ...P()], oe = () => [eo, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...P()], O = () => [e, X, Q], ae = () => [...y(), pc, gc, {
408
408
  position: [X, Q]
409
409
  }], $ = () => ["no-repeat", {
410
410
  repeat: ["", "x", "y", "space", "round"]
411
- }], H = () => ["auto", "cover", "contain", mC, gC, {
411
+ }], B = () => ["auto", "cover", "contain", mC, gC, {
412
412
  size: [X, Q]
413
413
  }], q = () => [nr, zo, Rs], Y = () => [
414
414
  // Deprecated since Tailwind CSS v4.0.0
@@ -418,7 +418,7 @@ const Ve = (e) => {
418
418
  c,
419
419
  X,
420
420
  Q
421
- ], ee = () => ["", he, zo, Rs], ge = () => ["solid", "dashed", "dotted", "double"], G = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => [he, nr, pc, gc], He = () => [
421
+ ], ee = () => ["", he, zo, Rs], ge = () => ["solid", "dashed", "dotted", "double"], H = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], se = () => [he, nr, pc, gc], He = () => [
422
422
  // Deprecated since Tailwind CSS v4.0.0
423
423
  "",
424
424
  "none",
@@ -603,63 +603,63 @@ const Ve = (e) => {
603
603
  * @see https://tailwindcss.com/docs/top-right-bottom-left
604
604
  */
605
605
  inset: [{
606
- inset: A()
606
+ inset: k()
607
607
  }],
608
608
  /**
609
609
  * Right / Left
610
610
  * @see https://tailwindcss.com/docs/top-right-bottom-left
611
611
  */
612
612
  "inset-x": [{
613
- "inset-x": A()
613
+ "inset-x": k()
614
614
  }],
615
615
  /**
616
616
  * Top / Bottom
617
617
  * @see https://tailwindcss.com/docs/top-right-bottom-left
618
618
  */
619
619
  "inset-y": [{
620
- "inset-y": A()
620
+ "inset-y": k()
621
621
  }],
622
622
  /**
623
623
  * Start
624
624
  * @see https://tailwindcss.com/docs/top-right-bottom-left
625
625
  */
626
626
  start: [{
627
- start: A()
627
+ start: k()
628
628
  }],
629
629
  /**
630
630
  * End
631
631
  * @see https://tailwindcss.com/docs/top-right-bottom-left
632
632
  */
633
633
  end: [{
634
- end: A()
634
+ end: k()
635
635
  }],
636
636
  /**
637
637
  * Top
638
638
  * @see https://tailwindcss.com/docs/top-right-bottom-left
639
639
  */
640
640
  top: [{
641
- top: A()
641
+ top: k()
642
642
  }],
643
643
  /**
644
644
  * Right
645
645
  * @see https://tailwindcss.com/docs/top-right-bottom-left
646
646
  */
647
647
  right: [{
648
- right: A()
648
+ right: k()
649
649
  }],
650
650
  /**
651
651
  * Bottom
652
652
  * @see https://tailwindcss.com/docs/top-right-bottom-left
653
653
  */
654
654
  bottom: [{
655
- bottom: A()
655
+ bottom: k()
656
656
  }],
657
657
  /**
658
658
  * Left
659
659
  * @see https://tailwindcss.com/docs/top-right-bottom-left
660
660
  */
661
661
  left: [{
662
- left: A()
662
+ left: k()
663
663
  }],
664
664
  /**
665
665
  * Visibility
@@ -730,7 +730,7 @@ const Ve = (e) => {
730
730
  * @see https://tailwindcss.com/docs/grid-template-columns
731
731
  */
732
732
  "grid-cols": [{
733
- "grid-cols": k()
733
+ "grid-cols": M()
734
734
  }],
735
735
  /**
736
736
  * Grid Column Start / End
@@ -758,7 +758,7 @@ const Ve = (e) => {
758
758
  * @see https://tailwindcss.com/docs/grid-template-rows
759
759
  */
760
760
  "grid-rows": [{
761
- "grid-rows": k()
761
+ "grid-rows": M()
762
762
  }],
763
763
  /**
764
764
  * Grid Row Start / End
@@ -793,14 +793,14 @@ const Ve = (e) => {
793
793
  * @see https://tailwindcss.com/docs/grid-auto-columns
794
794
  */
795
795
  "auto-cols": [{
796
- "auto-cols": B()
796
+ "auto-cols": V()
797
797
  }],
798
798
  /**
799
799
  * Grid Auto Rows
800
800
  * @see https://tailwindcss.com/docs/grid-auto-rows
801
801
  */
802
802
  "auto-rows": [{
803
- "auto-rows": B()
803
+ "auto-rows": V()
804
804
  }],
805
805
  /**
806
806
  * Gap
@@ -1391,7 +1391,7 @@ const Ve = (e) => {
1391
1391
  * @see https://tailwindcss.com/docs/background-size
1392
1392
  */
1393
1393
  "bg-size": [{
1394
- bg: H()
1394
+ bg: B()
1395
1395
  }],
1396
1396
  /**
1397
1397
  * Background Image
@@ -1879,14 +1879,14 @@ const Ve = (e) => {
1879
1879
  * @see https://tailwindcss.com/docs/mix-blend-mode
1880
1880
  */
1881
1881
  "mix-blend": [{
1882
- "mix-blend": [...G(), "plus-darker", "plus-lighter"]
1882
+ "mix-blend": [...H(), "plus-darker", "plus-lighter"]
1883
1883
  }],
1884
1884
  /**
1885
1885
  * Background Blend Mode
1886
1886
  * @see https://tailwindcss.com/docs/background-blend-mode
1887
1887
  */
1888
1888
  "bg-blend": [{
1889
- "bg-blend": G()
1889
+ "bg-blend": H()
1890
1890
  }],
1891
1891
  /**
1892
1892
  * Mask Clip
@@ -2068,7 +2068,7 @@ const Ve = (e) => {
2068
2068
  * @see https://tailwindcss.com/docs/mask-size
2069
2069
  */
2070
2070
  "mask-size": [{
2071
- mask: H()
2071
+ mask: B()
2072
2072
  }],
2073
2073
  /**
2074
2074
  * Mask Type
@@ -2943,7 +2943,7 @@ const RC = {
2943
2943
  [lo.Success]: "bg-success border-success text-success",
2944
2944
  [lo.Warning]: "bg-warning border-warning text-warning",
2945
2945
  [lo.Error]: "bg-error border-error text-error"
2946
- }, FC = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", sk = ({
2946
+ }, FC = "items-center justify-between gap-2 p-3 border border-solid dial-small-150 rounded flex", ok = ({
2947
2947
  variant: e = lo.Info,
2948
2948
  message: t,
2949
2949
  cssClass: s,
@@ -3015,7 +3015,7 @@ const RC = {
3015
3015
  hideTooltip: o,
3016
3016
  ...i
3017
3017
  }) => {
3018
- const n = I(null), [r, a] = M(!1), [l, c] = M(""), d = I(null), u = () => {
3018
+ const n = A(null), [r, a] = I(!1), [l, c] = I(""), d = A(null), u = () => {
3019
3019
  const f = n.current;
3020
3020
  if (!f) return;
3021
3021
  c(f.textContent ?? "");
@@ -3177,7 +3177,7 @@ const MC = (e, t) => {
3177
3177
  ]
3178
3178
  }
3179
3179
  );
3180
- }, ok = ({
3180
+ }, ik = ({
3181
3181
  steps: e,
3182
3182
  currentStep: t,
3183
3183
  onChangeStep: s
@@ -3466,7 +3466,7 @@ const NC = "flex", HC = "pb-1 mt-2", GC = {
3466
3466
  isOpened: l,
3467
3467
  onToggle: c
3468
3468
  }) => {
3469
- const [d, u] = M(s), [h, g] = M(!0), p = W(() => typeof l == "boolean", [l]), f = p ? l : h;
3469
+ const [d, u] = I(s), [h, g] = I(!0), p = W(() => typeof l == "boolean", [l]), f = p ? l : h;
3470
3470
  me(() => {
3471
3471
  p && u(l ? s : ar);
3472
3472
  }, [p, l, s]);
@@ -3525,7 +3525,7 @@ const NC = "flex", HC = "pb-1 mt-2", GC = {
3525
3525
  ]
3526
3526
  }
3527
3527
  );
3528
- }, ik = ({
3528
+ }, nk = ({
3529
3529
  label: e,
3530
3530
  text: t,
3531
3531
  children: s,
@@ -4708,7 +4708,7 @@ function hw() {
4708
4708
  var gw = hw();
4709
4709
  const pw = /* @__PURE__ */ uw(gw), Vs = typeof window < "u" ? Rt : me;
4710
4710
  function fw(e, t, s) {
4711
- const [o, i] = M(
4711
+ const [o, i] = I(
4712
4712
  () => t(e)
4713
4713
  ), n = _(() => {
4714
4714
  const r = t(e);
@@ -5307,7 +5307,7 @@ function eh(e, t) {
5307
5307
  Ow(i)
5308
5308
  ];
5309
5309
  }
5310
- const Ec = "column", Ww = "flex items-center", _w = "mr-3 cursor-move text-secondary", nk = ({
5310
+ const Ec = "column", Ww = "flex items-center", _w = "mr-3 cursor-move text-secondary", rk = ({
5311
5311
  id: e,
5312
5312
  children: t,
5313
5313
  cssClass: s,
@@ -5315,7 +5315,7 @@ const Ec = "column", Ww = "flex items-center", _w = "mr-3 cursor-move text-secon
5315
5315
  moveItem: i,
5316
5316
  handleAriaLabel: n = "Drag item"
5317
5317
  }) => {
5318
- const r = I(null), a = I(null), l = typeof o == "function" ? o(e) : -1, [{ isDragging: c }, d, u] = Lw(
5318
+ const r = A(null), a = A(null), l = typeof o == "function" ? o(e) : -1, [{ isDragging: c }, d, u] = Lw(
5319
5319
  () => ({
5320
5320
  type: Ec,
5321
5321
  item: { id: e, originalIndex: l },
@@ -5597,19 +5597,19 @@ const o1 = Z(
5597
5597
  anchorToMouse: m = !1,
5598
5598
  matchReferenceWidth: C = !0
5599
5599
  }) => {
5600
- const [w, b] = M(a), y = r !== void 0, S = y ? !!r : w, R = I(null), x = _(
5601
- (G) => {
5602
- y || b(G), l?.(G);
5600
+ const [w, b] = I(a), y = r !== void 0, S = y ? !!r : w, R = A(null), x = _(
5601
+ (H) => {
5602
+ y || b(H), l?.(H);
5603
5603
  },
5604
5604
  [y, l]
5605
- ), P = Qa(), A = i === void 0, k = (G) => "clientWidth" in G ? G.clientWidth : G.getBoundingClientRect?.()?.width ?? 0, { refs: F, floatingStyles: T, context: B } = $a({
5605
+ ), P = Qa(), k = i === void 0, M = (H) => "clientWidth" in H ? H.clientWidth : H.getBoundingClientRect?.()?.width ?? 0, { refs: F, floatingStyles: T, context: V } = $a({
5606
5606
  placement: i,
5607
5607
  open: S,
5608
5608
  onOpenChange: x,
5609
5609
  whileElementsMounted: Cu,
5610
5610
  middleware: [
5611
5611
  pu({ mainAxis: Wo, crossAxis: 0 }),
5612
- A ? _f({
5612
+ k ? _f({
5613
5613
  alignment: "start",
5614
5614
  crossAxis: !0,
5615
5615
  padding: Wo,
@@ -5618,67 +5618,67 @@ const o1 = Z(
5618
5618
  mu({ padding: Wo }),
5619
5619
  Uf({
5620
5620
  padding: Wo,
5621
- apply({ availableWidth: G, availableHeight: se, elements: He }) {
5622
- const xe = He.floating, z = k(He.reference);
5621
+ apply({ availableWidth: H, availableHeight: se, elements: He }) {
5622
+ const xe = He.floating, z = M(He.reference);
5623
5623
  xe.style.setProperty(
5624
5624
  "--fui-available-height",
5625
5625
  `${Math.floor(se)}px`
5626
5626
  ), xe.style.setProperty(
5627
5627
  "--reference-width",
5628
5628
  C ? `${Math.round(z)}px` : "0px"
5629
- ), C ? xe.style.minWidth = `${Math.round(z)}px` : xe.style.removeProperty("min-width"), xe.style.maxWidth = `${Math.floor(G)}px`, xe.style.maxHeight = `${Math.floor(se)}px`;
5629
+ ), C ? xe.style.minWidth = `${Math.round(z)}px` : xe.style.removeProperty("min-width"), xe.style.maxWidth = `${Math.floor(H)}px`, xe.style.maxHeight = `${Math.floor(se)}px`;
5630
5630
  }
5631
5631
  })
5632
5632
  ]
5633
- }), J = $f(B, {
5633
+ }), J = $f(V, {
5634
5634
  enabled: o.includes(kt.Click) && !n
5635
- }), N = vu(B, {
5635
+ }), N = vu(V, {
5636
5636
  enabled: o.includes(kt.Hover) && !n,
5637
5637
  move: !1,
5638
5638
  restMs: 40,
5639
5639
  delay: { open: 80, close: 80 }
5640
- }), re = ja(B, {
5640
+ }), re = ja(V, {
5641
5641
  bubbles: !0,
5642
5642
  referencePress: !1,
5643
- outsidePress: (G) => {
5643
+ outsidePress: (H) => {
5644
5644
  if (!p) return !1;
5645
- const se = G.target;
5645
+ const se = H.target;
5646
5646
  return !(g?.current && se instanceof Node && g.current.contains(se));
5647
5647
  }
5648
- }), oe = Ka(B, { role: "menu" }), { getReferenceProps: O, getFloatingProps: ae } = qa([
5648
+ }), oe = Ka(V, { role: "menu" }), { getReferenceProps: O, getFloatingProps: ae } = qa([
5649
5649
  J,
5650
5650
  N,
5651
5651
  re,
5652
5652
  oe
5653
5653
  ]), $ = _(
5654
- (G, se) => {
5654
+ (H, se) => {
5655
5655
  F.setPositionReference({
5656
5656
  getBoundingClientRect: () => ({
5657
5657
  width: 0,
5658
5658
  height: 0,
5659
- x: G,
5659
+ x: H,
5660
5660
  y: se,
5661
5661
  top: se,
5662
- left: G,
5663
- right: G,
5662
+ left: H,
5663
+ right: H,
5664
5664
  bottom: se
5665
5665
  })
5666
5666
  });
5667
5667
  },
5668
5668
  [F]
5669
- ), H = _(
5670
- (G) => {
5671
- !o.includes(kt.ContextMenu) || n || (G.preventDefault(), m && ($(G.clientX, G.clientY), R.current = document.elementFromPoint(
5672
- G.clientX,
5673
- G.clientY
5669
+ ), B = _(
5670
+ (H) => {
5671
+ !o.includes(kt.ContextMenu) || n || (H.preventDefault(), m && ($(H.clientX, H.clientY), R.current = document.elementFromPoint(
5672
+ H.clientX,
5673
+ H.clientY
5674
5674
  )), x(!0));
5675
5675
  },
5676
5676
  [m, n, x, $, o]
5677
5677
  ), q = _(
5678
- (G) => {
5679
- !m || n || ($(G.clientX, G.clientY), R.current = document.elementFromPoint(
5680
- G.clientX,
5681
- G.clientY
5678
+ (H) => {
5679
+ !m || n || ($(H.clientX, H.clientY), R.current = document.elementFromPoint(
5680
+ H.clientX,
5681
+ H.clientY
5682
5682
  ));
5683
5683
  },
5684
5684
  [m, n, $]
@@ -5687,41 +5687,41 @@ const o1 = Z(
5687
5687
  n && S && x(!1);
5688
5688
  }, [n, S, x]);
5689
5689
  const Y = _(
5690
- (G) => (se) => {
5691
- G.disabled || (G.onClick?.({ key: G.key, domEvent: se }), t?.onClick?.({ key: G.key, domEvent: se }), x(!1));
5690
+ (H) => (se) => {
5691
+ H.disabled || (H.onClick?.({ key: H.key, domEvent: se }), t?.onClick?.({ key: H.key, domEvent: se }), x(!1));
5692
5692
  },
5693
5693
  [t, x]
5694
5694
  ), ee = W(() => s ? s() : t ? /* @__PURE__ */ K(et, { children: [
5695
5695
  t.header && /* @__PURE__ */ v(et, { children: typeof t.header == "function" ? t.header() : t.header }),
5696
- /* @__PURE__ */ v("div", { role: "none", className: "py-1", children: t.items.map((G) => G.type === nh.Divider ? /* @__PURE__ */ v(
5696
+ /* @__PURE__ */ v("div", { role: "none", className: "py-1", children: t.items.map((H) => H.type === nh.Divider ? /* @__PURE__ */ v(
5697
5697
  "div",
5698
5698
  {
5699
5699
  role: "separator",
5700
5700
  className: l1
5701
5701
  },
5702
- G.key
5702
+ H.key
5703
5703
  ) : /* @__PURE__ */ K(
5704
5704
  "button",
5705
5705
  {
5706
5706
  role: "menuitem",
5707
5707
  type: "button",
5708
- "aria-disabled": !!G.disabled,
5708
+ "aria-disabled": !!H.disabled,
5709
5709
  className: Z(
5710
5710
  n1,
5711
- G.disabled && r1,
5712
- G.danger && a1
5711
+ H.disabled && r1,
5712
+ H.danger && a1
5713
5713
  ),
5714
- disabled: G.disabled,
5715
- onClick: Y(G),
5714
+ disabled: H.disabled,
5715
+ onClick: Y(H),
5716
5716
  children: [
5717
- G.icon && /* @__PURE__ */ v(
5717
+ H.icon && /* @__PURE__ */ v(
5718
5718
  "span",
5719
5719
  {
5720
5720
  className: Z(
5721
- G.danger && "text-error",
5722
- G.disabled && "text-secondary"
5721
+ H.danger && "text-error",
5722
+ H.disabled && "text-secondary"
5723
5723
  ),
5724
- children: /* @__PURE__ */ v(Me, { icon: G.icon })
5724
+ children: /* @__PURE__ */ v(Me, { icon: H.icon })
5725
5725
  }
5726
5726
  ),
5727
5727
  /* @__PURE__ */ v(
@@ -5729,26 +5729,26 @@ const o1 = Z(
5729
5729
  {
5730
5730
  className: Z(
5731
5731
  "flex-1 truncate text-left",
5732
- G.danger && "text-error",
5733
- G.disabled && "text-secondary"
5732
+ H.danger && "text-error",
5733
+ H.disabled && "text-secondary"
5734
5734
  ),
5735
- children: G.label
5735
+ children: H.label
5736
5736
  }
5737
5737
  )
5738
5738
  ]
5739
5739
  },
5740
- G.key
5740
+ H.key
5741
5741
  )) }),
5742
5742
  t.footer && /* @__PURE__ */ v(et, { children: typeof t.footer == "function" ? t.footer() : t.footer })
5743
5743
  ] }) : null, [Y, t, s]), ge = O({
5744
- onContextMenu: H,
5744
+ onContextMenu: B,
5745
5745
  onMouseDown: q
5746
5746
  });
5747
5747
  return me(() => {
5748
5748
  if (!S) return;
5749
- const G = F.reference.current;
5749
+ const H = F.reference.current;
5750
5750
  let se = null;
5751
- if (G instanceof Element ? se = G : R.current instanceof Element && (se = R.current), !se) return;
5751
+ if (H instanceof Element ? se = H : R.current instanceof Element && (se = R.current), !se) return;
5752
5752
  const He = new IntersectionObserver(
5753
5753
  ([xe]) => {
5754
5754
  xe.isIntersecting || x(!1);
@@ -5776,7 +5776,7 @@ const o1 = Z(
5776
5776
  S && /* @__PURE__ */ v(Ya, { children: /* @__PURE__ */ v(
5777
5777
  bu,
5778
5778
  {
5779
- context: B,
5779
+ context: V,
5780
5780
  modal: !1,
5781
5781
  initialFocus: -1,
5782
5782
  returnFocus: !0,
@@ -5797,8 +5797,8 @@ const o1 = Z(
5797
5797
  rh,
5798
5798
  {
5799
5799
  ariaLabel: "Close dropdown",
5800
- onClose: (G) => {
5801
- d?.(G), x(!1);
5800
+ onClose: (H) => {
5801
+ d?.(H), x(!1);
5802
5802
  }
5803
5803
  }
5804
5804
  ) }),
@@ -5860,7 +5860,7 @@ const Tc = () => typeof window < "u" && window.innerWidth < 640, Mc = () => {
5860
5860
  const e = window.innerWidth;
5861
5861
  return e >= 1024 ? Ds.Desktop : e < 640 ? Ds.Mobile : Ds.Tablet;
5862
5862
  }, c1 = () => {
5863
- const [e, t] = M(Mc());
5863
+ const [e, t] = I(Mc());
5864
5864
  return me(() => {
5865
5865
  const s = () => t(Mc());
5866
5866
  return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
@@ -5874,7 +5874,7 @@ const Tc = () => typeof window < "u" && window.innerWidth < 640, Mc = () => {
5874
5874
  smallScreenContainerCssClass: n,
5875
5875
  smallScreenDropdownItemCssClass: r
5876
5876
  }) => {
5877
- const [a, l] = M(!1), [c, d] = M(!1), [u, h] = M(!1), g = c1(), p = g === Ds.Mobile || i === hn.Tablet && g === Ds.Tablet, f = o === ia.Horizontal, m = I(null), C = I(null), w = I(null), b = e.find((R) => R.id === t), y = W(
5877
+ const [a, l] = I(!1), [c, d] = I(!1), [u, h] = I(!1), g = c1(), p = g === Ds.Mobile || i === hn.Tablet && g === Ds.Tablet, f = o === ia.Horizontal, m = A(null), C = A(null), w = A(null), b = e.find((R) => R.id === t), y = W(
5878
5878
  () => Z(
5879
5879
  "flex gap-3",
5880
5880
  f ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
@@ -5891,12 +5891,12 @@ const Tc = () => typeof window < "u" && window.innerWidth < 640, Mc = () => {
5891
5891
  }, [e, S]), me(() => {
5892
5892
  const R = w.current, x = C.current;
5893
5893
  if (!R || !x) return;
5894
- const P = R.offsetLeft, A = P + R.offsetWidth, k = x.scrollLeft, F = k + x.clientWidth;
5895
- P < k ? x.scrollTo({
5894
+ const P = R.offsetLeft, k = P + R.offsetWidth, M = x.scrollLeft, F = M + x.clientWidth;
5895
+ P < M ? x.scrollTo({
5896
5896
  left: P - Dc,
5897
5897
  behavior: "smooth"
5898
- }) : A > F && x.scrollTo({
5899
- left: A - x.clientWidth + Dc,
5898
+ }) : k > F && x.scrollTo({
5899
+ left: k - x.clientWidth + Dc,
5900
5900
  behavior: "smooth"
5901
5901
  });
5902
5902
  }, [t]), p ? /* @__PURE__ */ v(
@@ -6182,16 +6182,16 @@ const Tc = () => typeof window < "u" && window.innerWidth < 640, Mc = () => {
6182
6182
  tooltipText: R,
6183
6183
  hideTooltip: x = !1
6184
6184
  }) => {
6185
- const P = (T) => T.target.blur(), A = c === "number" || p !== void 0 || f !== void 0, k = (T) => {
6185
+ const P = (T) => T.target.blur(), k = c === "number" || p !== void 0 || f !== void 0, M = (T) => {
6186
6186
  y1(T, c, p, f);
6187
6187
  }, F = (T) => {
6188
- const B = T.currentTarget.value;
6189
- if (A && B !== "") {
6190
- const J = parseFloat(B);
6191
- if (isNaN(J) && B !== "-" && B !== "." || !isNaN(J) && (p !== void 0 && J < p || f !== void 0 && J > f))
6188
+ const V = T.currentTarget.value;
6189
+ if (k && V !== "") {
6190
+ const J = parseFloat(V);
6191
+ if (isNaN(J) && V !== "-" && V !== "." || !isNaN(J) && (p !== void 0 && J < p || f !== void 0 && J > f))
6192
6192
  return;
6193
6193
  }
6194
- g?.(B || void 0);
6194
+ g?.(V || void 0);
6195
6195
  };
6196
6196
  return /* @__PURE__ */ K(
6197
6197
  "div",
@@ -6248,7 +6248,7 @@ const Tc = () => typeof window < "u" && window.innerWidth < 640, Mc = () => {
6248
6248
  r
6249
6249
  ),
6250
6250
  onChange: (T) => !u && F?.(T),
6251
- onKeyDown: k,
6251
+ onKeyDown: M,
6252
6252
  onWheel: P,
6253
6253
  onBlur: y,
6254
6254
  min: p,
@@ -6327,7 +6327,7 @@ const Tc = () => typeof window < "u" && window.innerWidth < 640, Mc = () => {
6327
6327
  }
6328
6328
  )
6329
6329
  }
6330
- ), rk = ({
6330
+ ), ak = ({
6331
6331
  onChange: e,
6332
6332
  ...t
6333
6333
  }) => {
@@ -6340,7 +6340,7 @@ const Tc = () => typeof window < "u" && window.innerWidth < 640, Mc = () => {
6340
6340
  ...t
6341
6341
  }
6342
6342
  );
6343
- }, ak = ({
6343
+ }, lk = ({
6344
6344
  onChange: e,
6345
6345
  ...t
6346
6346
  }) => /* @__PURE__ */ v(
@@ -6350,7 +6350,7 @@ const Tc = () => typeof window < "u" && window.innerWidth < 640, Mc = () => {
6350
6350
  onChange: (s) => e?.(s),
6351
6351
  ...t
6352
6352
  }
6353
- ), lk = ({
6353
+ ), ck = ({
6354
6354
  fieldTitle: e,
6355
6355
  optional: t,
6356
6356
  elementId: s,
@@ -6498,7 +6498,7 @@ const M1 = "flex justify-end gap-2 px-6 py-4", I1 = "text-secondary dial-small-1
6498
6498
  confirmVariant: Ie.Danger,
6499
6499
  cancelVariant: Ie.Secondary
6500
6500
  }
6501
- }, ck = ({
6501
+ }, dk = ({
6502
6502
  title: e,
6503
6503
  description: t,
6504
6504
  descriptionCssClass: s,
@@ -6661,7 +6661,7 @@ const M1 = "flex justify-end gap-2 px-6 py-4", I1 = "text-secondary dial-small-1
6661
6661
  ] }),
6662
6662
  t && sl(e, document.body)
6663
6663
  ] });
6664
- }, dk = ({
6664
+ }, uk = ({
6665
6665
  fieldTitle: e,
6666
6666
  htmlFor: t,
6667
6667
  disabled: s,
@@ -6683,7 +6683,7 @@ const M1 = "flex justify-end gap-2 px-6 py-4", I1 = "text-secondary dial-small-1
6683
6683
  id: w,
6684
6684
  size: b = hs.Md
6685
6685
  }) => {
6686
- const [y, S] = M(!1), R = _(() => {
6686
+ const [y, S] = I(!1), R = _(() => {
6687
6687
  s || S(!0);
6688
6688
  }, [s]), x = _(() => {
6689
6689
  S(!1), c?.();
@@ -6697,7 +6697,7 @@ const M1 = "flex justify-end gap-2 px-6 py-4", I1 = "text-secondary dial-small-1
6697
6697
  {
6698
6698
  disabled: s,
6699
6699
  open: y,
6700
- selectedValue: n ?? i.find((A) => A.id === o)?.name,
6700
+ selectedValue: n ?? i.find((k) => k.id === o)?.name,
6701
6701
  valueCssClasses: r,
6702
6702
  inputCssClasses: Z(a, "py-2", "px-3"),
6703
6703
  emptyValueText: l,
@@ -6745,7 +6745,7 @@ const M1 = "flex justify-end gap-2 px-6 py-4", I1 = "text-secondary dial-small-1
6745
6745
  }
6746
6746
  )
6747
6747
  ] });
6748
- }, O1 = "Create", N1 = "Cancel", H1 = "flex items-center justify-end gap-2 px-6 py-3", uk = ({
6748
+ }, O1 = "Create", N1 = "Cancel", H1 = "flex items-center justify-end gap-2 px-6 py-3", hk = ({
6749
6749
  title: e,
6750
6750
  open: t = !1,
6751
6751
  submitLabel: s = O1,
@@ -6822,7 +6822,7 @@ const G1 = {
6822
6822
  onChange: l,
6823
6823
  size: c = pn.Base
6824
6824
  }) => {
6825
- const [d, u] = M(t || "");
6825
+ const [d, u] = I(t || "");
6826
6826
  me(() => {
6827
6827
  u(t || "");
6828
6828
  }, [t]);
@@ -7002,7 +7002,7 @@ const X1 = {
7002
7002
  getContextMenuItems: c,
7003
7003
  areHiddenFilesVisible: d = !1
7004
7004
  }) => {
7005
- const [u, h] = M(s), g = (f) => {
7005
+ const [u, h] = I(s), g = (f) => {
7006
7006
  l?.(f), u.has(f.path) ? h((m) => {
7007
7007
  const C = new Set(m);
7008
7008
  return C.delete(f.path), C;
@@ -7014,7 +7014,7 @@ const X1 = {
7014
7014
  const { path: w, nodeType: b, name: y, items: S } = C, R = b === gs.FOLDER;
7015
7015
  if (!d && uh(C)) return null;
7016
7016
  if (!R && !t) return;
7017
- const x = Array.isArray(S) && S.length > 0 && S.some((B) => B.nodeType === gs.FOLDER || t), P = u.has(w), A = i === w, k = o.has(w), F = A ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", T = c?.(C) ?? [];
7017
+ const x = Array.isArray(S) && S.length > 0 && S.some((V) => V.nodeType === gs.FOLDER || t), P = u.has(w), k = i === w, M = o.has(w), F = k ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", T = c?.(C) ?? [];
7018
7018
  return /* @__PURE__ */ v("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ K("div", { className: "flex flex-col min-w-fit w-full", children: [
7019
7019
  /* @__PURE__ */ v(
7020
7020
  Gt,
@@ -7056,7 +7056,7 @@ const X1 = {
7056
7056
  )
7057
7057
  }
7058
7058
  ),
7059
- /* @__PURE__ */ v(oh, { name: y, loading: k })
7059
+ /* @__PURE__ */ v(oh, { name: y, loading: M })
7060
7060
  ] }) : /* @__PURE__ */ v(sh, { name: y })
7061
7061
  }
7062
7062
  ),
@@ -9365,48 +9365,48 @@ function xt(e, t, s) {
9365
9365
  return !1;
9366
9366
  if (t?.state && !t.state.forEach)
9367
9367
  return L(32), !1;
9368
- const C = (S, R, x, P, A) => {
9368
+ const C = (S, R, x, P, k) => {
9369
9369
  if (!S)
9370
9370
  return;
9371
- const k = T0(R, t.defaultState), F = k("flex").value1;
9371
+ const M = T0(R, t.defaultState), F = M("flex").value1;
9372
9372
  if (tg(
9373
9373
  e,
9374
9374
  S,
9375
- k("hide").value1,
9376
- k("sort").value1,
9377
- k("sortIndex").value1,
9378
- k("pinned").value1,
9375
+ M("hide").value1,
9376
+ M("sort").value1,
9377
+ M("sortIndex").value1,
9378
+ M("pinned").value1,
9379
9379
  F,
9380
9380
  s
9381
9381
  ), F == null) {
9382
- const T = k("width").value1;
9382
+ const T = M("width").value1;
9383
9383
  if (T != null) {
9384
- const B = S.getColDef().minWidth ?? u.getDefaultColumnMinWidth();
9385
- B != null && T >= B && S.setActualWidth(T, s);
9384
+ const V = S.getColDef().minWidth ?? u.getDefaultColumnMinWidth();
9385
+ V != null && T >= V && S.setActualWidth(T, s);
9386
9386
  }
9387
9387
  }
9388
- A || !S.isPrimary() || (h?.syncColumnWithState(S, s, k), i?.syncColumnWithState(S, s, k, x), n?.syncColumnWithState(S, s, k, P));
9388
+ k || !S.isPrimary() || (h?.syncColumnWithState(S, s, M), i?.syncColumnWithState(S, s, M, x), n?.syncColumnWithState(S, s, M, P));
9389
9389
  }, w = (S, R, x) => {
9390
- const P = rg(e, s), A = R.slice(), k = {}, F = {}, T = [], B = [], J = [];
9390
+ const P = rg(e, s), k = R.slice(), M = {}, F = {}, T = [], V = [], J = [];
9391
9391
  let N = 0;
9392
9392
  const re = i?.columns.slice() ?? [], oe = n?.columns.slice() ?? [];
9393
9393
  for (const $ of S) {
9394
- const H = $.colId;
9395
- if (H.startsWith(Kn)) {
9394
+ const B = $.colId;
9395
+ if (B.startsWith(Kn)) {
9396
9396
  T.push($), J.push($);
9397
9397
  continue;
9398
9398
  }
9399
- if (ss(H)) {
9400
- B.push($), J.push($);
9399
+ if (ss(B)) {
9400
+ V.push($), J.push($);
9401
9401
  continue;
9402
9402
  }
9403
- const Y = x(H);
9404
- Y ? (C(Y, $, k, F, !1), Ft(A, Y)) : (J.push($), N += 1);
9403
+ const Y = x(B);
9404
+ Y ? (C(Y, $, M, F, !1), Ft(k, Y)) : (J.push($), N += 1);
9405
9405
  }
9406
- const O = ($) => C($, null, k, F, !1);
9407
- A.forEach(O), i?.sortColumns(jc.bind(i, k, re)), n?.sortColumns(jc.bind(n, F, oe)), o.refreshCols(!1, s);
9408
- const ae = ($, H, q = []) => {
9409
- for (const Y of H) {
9406
+ const O = ($) => C($, null, M, F, !1);
9407
+ k.forEach(O), i?.sortColumns(jc.bind(i, M, re)), n?.sortColumns(jc.bind(n, F, oe)), o.refreshCols(!1, s);
9408
+ const ae = ($, B, q = []) => {
9409
+ for (const Y of B) {
9410
9410
  const ee = $(Y.colId);
9411
9411
  Ft(q, ee), C(ee, Y, null, null, !0);
9412
9412
  }
@@ -9418,7 +9418,7 @@ function xt(e, t, s) {
9418
9418
  r?.getColumns()?.slice()
9419
9419
  ), ae(
9420
9420
  ($) => a?.getColumn($) ?? null,
9421
- B,
9421
+ V,
9422
9422
  a?.getColumns()?.slice()
9423
9423
  ), W0(t, o, p), c.refresh(s), g.dispatchEvent({
9424
9424
  type: "columnEverythingChanged",
@@ -9464,14 +9464,14 @@ function rg(e, t) {
9464
9464
  for (const u of c)
9465
9465
  d[u.colId] = u;
9466
9466
  return () => {
9467
- const u = (R, x, P, A) => {
9468
- const k = x.map(A), F = P.map(A);
9469
- if (ws(k, F))
9467
+ const u = (R, x, P, k) => {
9468
+ const M = x.map(k), F = P.map(k);
9469
+ if (ws(M, F))
9470
9470
  return;
9471
- const B = new Set(x);
9471
+ const V = new Set(x);
9472
9472
  for (const N of P)
9473
- B.delete(N) || B.add(N);
9474
- const J = [...B];
9473
+ V.delete(N) || V.add(N);
9474
+ const J = [...V];
9475
9475
  a.dispatchEvent({
9476
9476
  type: R,
9477
9477
  columns: J,
@@ -9481,8 +9481,8 @@ function rg(e, t) {
9481
9481
  }, h = (R) => {
9482
9482
  const x = [];
9483
9483
  return n.forAllCols((P) => {
9484
- const A = d[P.getColId()];
9485
- A && R(A, P) && x.push(P);
9484
+ const k = d[P.getColId()];
9485
+ k && R(k, P) && x.push(P);
9486
9486
  }), x;
9487
9487
  }, g = (R) => R.getColId();
9488
9488
  u(
@@ -9497,8 +9497,8 @@ function rg(e, t) {
9497
9497
  g
9498
9498
  );
9499
9499
  const f = h((R, x) => {
9500
- const P = R.aggFunc != null, A = P != x.isValueActive(), k = P && R.aggFunc != x.getAggFunc();
9501
- return A || k;
9500
+ const P = R.aggFunc != null, k = P != x.isValueActive(), M = P && R.aggFunc != x.getAggFunc();
9501
+ return k || M;
9502
9502
  });
9503
9503
  f.length > 0 && B0(a, "columnValueChanged", f, t), Do(a, h((R, x) => R.width != x.getActualWidth()), !0, t), ng(a, h((R, x) => R.pinned != x.getPinned()), t), V0(a, h((R, x) => R.hide == x.isVisible()), t);
9504
9504
  const y = h((R, x) => R.sort != x.getSort() || R.sortIndex != x.getSortIndex());
@@ -15094,9 +15094,9 @@ var Ji = {
15094
15094
  let u, h, g = 0;
15095
15095
  this.invalidateVerticalScroll();
15096
15096
  do {
15097
- const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, C = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, y = b + d.rowHeight, S = this.getVScrollPosition(), R = a.divStretchOffset, x = S.top + R, P = S.bottom + R, A = P - x, k = a.getScrollPositionForPixel(b), F = a.getScrollPositionForPixel(y - A), T = Math.min((k + F) / 2, b), B = x + p > b, J = P - f < y;
15097
+ const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, C = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, y = b + d.rowHeight, S = this.getVScrollPosition(), R = a.divStretchOffset, x = S.top + R, P = S.bottom + R, k = P - x, M = a.getScrollPositionForPixel(b), F = a.getScrollPositionForPixel(y - k), T = Math.min((M + F) / 2, b), V = x + p > b, J = P - f < y;
15098
15098
  let N = null;
15099
- t === "top" ? N = k - p : t === "bottom" ? N = F + f : t === "middle" ? N = T : B ? N = k - p : J && (F - k > A ? N = k - p : N = F + f), N !== null && (this.setVerticalScrollPosition(N), l.redraw({ afterScroll: !0 })), u = m !== d.rowTop || C !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
15099
+ t === "top" ? N = M - p : t === "bottom" ? N = F + f : t === "middle" ? N = T : V ? N = M - p : J && (F - M > k ? N = M - p : N = F + f), N !== null && (this.setVerticalScrollPosition(N), l.redraw({ afterScroll: !0 })), u = m !== d.rowTop || C !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
15100
15100
  } while ((u || h) && g < 10);
15101
15101
  if (this.animationFrameSvc?.flushAllFrames(), s < 10 && (d?.stub || !this.beans.rowAutoHeight?.areRowsMeasured())) {
15102
15102
  const p = this.getVScrollPosition().top;
@@ -21614,17 +21614,17 @@ var Qx = class extends D {
21614
21614
  y -= p[R.getId()];
21615
21615
  else {
21616
21616
  w.push(R);
21617
- const A = g[x];
21618
- b += A;
21617
+ const k = g[x];
21618
+ b += k;
21619
21619
  }
21620
21620
  });
21621
21621
  const S = 1 / b;
21622
21622
  w.forEach((R, x) => {
21623
21623
  const P = x === w.length - 1;
21624
- let A;
21625
- P ? A = y : (A = Math.round(g[x] * u * S), y -= A);
21626
- const k = R.getMinWidth(), F = R.getMaxWidth();
21627
- A < k ? (A = k, f[R.getId()] = !0, m = !0) : F > 0 && A > F && (A = F, f[R.getId()] = !0, m = !0), p[R.getId()] = A;
21624
+ let k;
21625
+ P ? k = y : (k = Math.round(g[x] * u * S), y -= k);
21626
+ const M = R.getMinWidth(), F = R.getMaxWidth();
21627
+ k < M ? (k = M, f[R.getId()] = !0, m = !0) : F > 0 && k > F && (k = F, f[R.getId()] = !0, m = !0), p[R.getId()] = k;
21628
21628
  });
21629
21629
  }
21630
21630
  for (const w of h) {
@@ -31157,8 +31157,8 @@ var NP = (
31157
31157
  const d = this.getRowBufferInPixels(), u = this.ctrlsSvc.getScrollFeature(), h = this.gos.get("suppressRowVirtualisation");
31158
31158
  let g = !1, p, f;
31159
31159
  do {
31160
- const y = t.getPixelOffset(), { pageFirstPixel: S, pageLastPixel: R } = t.getCurrentPagePixelRange(), x = e.divStretchOffset, P = u.getVScrollPosition(), A = P.top, k = P.bottom;
31161
- h ? (p = S + x, f = R + x) : (p = Math.max(A + y - d, S) + x, f = Math.min(k + y + d, R) + x), this.firstVisibleVPixel = Math.max(A + y, S) + x, this.lastVisibleVPixel = Math.min(k + y, R) + x, g = this.ensureAllRowsInRangeHaveHeightsCalculated(p, f);
31160
+ const y = t.getPixelOffset(), { pageFirstPixel: S, pageLastPixel: R } = t.getCurrentPagePixelRange(), x = e.divStretchOffset, P = u.getVScrollPosition(), k = P.top, M = P.bottom;
31161
+ h ? (p = S + x, f = R + x) : (p = Math.max(k + y - d, S) + x, f = Math.min(M + y + d, R) + x), this.firstVisibleVPixel = Math.max(k + y, S) + x, this.lastVisibleVPixel = Math.min(M + y, R) + x, g = this.ensureAllRowsInRangeHaveHeightsCalculated(p, f);
31162
31162
  } while (g);
31163
31163
  let m = s.getRowIndexAtPixel(p), C = s.getRowIndexAtPixel(f);
31164
31164
  const w = t.getFirstRow(), b = t.getLastRow();
@@ -41585,20 +41585,20 @@ var F6 = class extends D {
41585
41585
  } = e;
41586
41586
  let h = !1;
41587
41587
  const g = (F, T) => {
41588
- const B = !o?.has(F) && !!(T || t === "api");
41589
- return h || (h = B), B;
41588
+ const V = !o?.has(F) && !!(T || t === "api");
41589
+ return h || (h = V), V;
41590
41590
  }, p = {}, f = (F) => {
41591
41591
  let T = p[F];
41592
41592
  return T || (T = { colId: F }, p[F] = T, T);
41593
41593
  }, m = {}, C = g("sort", i);
41594
- C && i?.sortModel.forEach(({ colId: F, sort: T }, B) => {
41594
+ C && i?.sortModel.forEach(({ colId: F, sort: T }, V) => {
41595
41595
  const J = f(F);
41596
- J.sort = T, J.sortIndex = B;
41596
+ J.sort = T, J.sortIndex = V;
41597
41597
  }), (C || !s) && (m.sort = null, m.sortIndex = null);
41598
41598
  const w = g("rowGroup", n);
41599
41599
  w && n?.groupColIds.forEach((F, T) => {
41600
- const B = f(F);
41601
- B.rowGroup = !0, B.rowGroupIndex = T;
41600
+ const V = f(F);
41601
+ V.rowGroup = !0, V.rowGroupIndex = T;
41602
41602
  }), (w || !s) && (m.rowGroup = null, m.rowGroupIndex = null);
41603
41603
  const b = g("aggregation", r);
41604
41604
  b && r?.aggregationModel.forEach(({ colId: F, aggFunc: T }) => {
@@ -41606,8 +41606,8 @@ var F6 = class extends D {
41606
41606
  }), (b || !s) && (m.aggFunc = null);
41607
41607
  const y = g("pivot", a);
41608
41608
  y && (a?.pivotColIds.forEach((F, T) => {
41609
- const B = f(F);
41610
- B.pivot = !0, B.pivotIndex = T;
41609
+ const V = f(F);
41610
+ V.pivot = !0, V.pivotIndex = T;
41611
41611
  }), this.gos.updateGridOptions({
41612
41612
  options: { pivotMode: !!a?.pivotMode },
41613
41613
  source: t
@@ -41627,17 +41627,17 @@ var F6 = class extends D {
41627
41627
  (R || !s) && (m.hide = null);
41628
41628
  const x = g("columnSizing", d);
41629
41629
  if (x)
41630
- for (const { colId: F, flex: T, width: B } of d?.columnSizingModel ?? []) {
41630
+ for (const { colId: F, flex: T, width: V } of d?.columnSizingModel ?? []) {
41631
41631
  const J = f(F);
41632
- J.flex = T ?? null, J.width = B;
41632
+ J.flex = T ?? null, J.width = V;
41633
41633
  }
41634
41634
  (x || !s) && (m.flex = null);
41635
- const P = u?.orderedColIds, A = !!P?.length && !o?.has("columnOrder"), k = A ? P.map((F) => f(F)) : Object.values(p);
41636
- (k.length || h) && (this.columnStates = k, xt(
41635
+ const P = u?.orderedColIds, k = !!P?.length && !o?.has("columnOrder"), M = k ? P.map((F) => f(F)) : Object.values(p);
41636
+ (M.length || h) && (this.columnStates = M, xt(
41637
41637
  this.beans,
41638
41638
  {
41639
- state: k,
41640
- applyOrder: A,
41639
+ state: M,
41640
+ applyOrder: k,
41641
41641
  defaultState: m
41642
41642
  },
41643
41643
  t
@@ -42629,10 +42629,10 @@ var gM = class extends D {
42629
42629
  continue;
42630
42630
  const P = p.getPreferredWidthForColumn(x, b);
42631
42631
  if (P > 0) {
42632
- const A = w[x.colId] ?? {};
42633
- A.minWidth ?? (A.minWidth = l), A.maxWidth ?? (A.maxWidth = a);
42634
- const k = pM(x, P, A);
42635
- x.setActualWidth(k, d), m.add(x), C++;
42632
+ const k = w[x.colId] ?? {};
42633
+ k.minWidth ?? (k.minWidth = l), k.maxWidth ?? (k.maxWidth = a);
42634
+ const M = pM(x, P, k);
42635
+ x.setActualWidth(M, d), m.add(x), C++;
42636
42636
  }
42637
42637
  S.push(x);
42638
42638
  }
@@ -42755,9 +42755,9 @@ var gM = class extends D {
42755
42755
  const f = p / $t(l);
42756
42756
  let m = p;
42757
42757
  for (let C = l.length - 1; C >= 0; C--) {
42758
- const w = l[C], b = i?.[w.getId()], y = b?.minWidth ?? o?.defaultMinWidth, S = b?.maxWidth ?? o?.defaultMaxWidth, R = w.getMinWidth(), x = w.getMaxWidth(), P = typeof y == "number" && y > R ? y : R, A = typeof S == "number" && S < x ? S : x;
42759
- let k = Math.round(w.getActualWidth() * f);
42760
- k < P ? (k = P, h(w), u = !1) : k > A ? (k = A, h(w), u = !1) : C === 0 && (k = m), w.setActualWidth(k, t, !0), m -= k;
42758
+ const w = l[C], b = i?.[w.getId()], y = b?.minWidth ?? o?.defaultMinWidth, S = b?.maxWidth ?? o?.defaultMaxWidth, R = w.getMinWidth(), x = w.getMaxWidth(), P = typeof y == "number" && y > R ? y : R, k = typeof S == "number" && S < x ? S : x;
42759
+ let M = Math.round(w.getActualWidth() * f);
42760
+ M < P ? (M = P, h(w), u = !1) : M > k ? (M = k, h(w), u = !1) : C === 0 && (M = m), w.setActualWidth(M, t, !0), m -= M;
42761
42761
  }
42762
42762
  }
42763
42763
  }
@@ -43710,7 +43710,7 @@ var UM = {
43710
43710
  KT,
43711
43711
  TM
43712
43712
  ]
43713
- }, Qe = V.createContext({}), wf = V.createContext("default"), Di = (e, t, s, o) => {
43713
+ }, Qe = G.createContext({}), wf = G.createContext("default"), Di = (e, t, s, o) => {
43714
43714
  if (!e || e.componentFromFramework || t.isDestroyed())
43715
43715
  return;
43716
43716
  const n = e.newAgStackInstance();
@@ -43750,7 +43750,7 @@ var UM = {
43750
43750
  }, Bo = (e) => {
43751
43751
  const t = () => typeof Symbol == "function" && Symbol.for, s = () => t() ? Symbol.for("react.memo") : 60115;
43752
43752
  return typeof e == "function" && !(e.prototype && e.prototype.isReactComponent) || typeof e == "object" && e.$$typeof === s();
43753
- }, Ba = V.version?.split(".")[0], Sf = Ba === "16" || Ba === "17";
43753
+ }, Ba = G.version?.split(".")[0], Sf = Ba === "16" || Ba === "17";
43754
43754
  function YM() {
43755
43755
  return Ba === "19";
43756
43756
  }
@@ -43761,10 +43761,10 @@ function ZM(e) {
43761
43761
  var bi = (e, t) => {
43762
43762
  !Sf && e && !an ? Gm.flushSync(t) : t();
43763
43763
  }, QM = (e) => {
43764
- Sf ? e() : V.startTransition(e);
43764
+ Sf ? e() : G.startTransition(e);
43765
43765
  };
43766
43766
  function XM(e, t, s) {
43767
- return V.useSyncExternalStore ? V.useSyncExternalStore(e, t) : s;
43767
+ return G.useSyncExternalStore ? G.useSyncExternalStore(e, t) : s;
43768
43768
  }
43769
43769
  function Gn(e, t, s) {
43770
43770
  if (t == null || e == null)
@@ -43789,7 +43789,7 @@ function Gn(e, t, s) {
43789
43789
  return o.length === e.length && i.length === 0 ? e : o.length === 0 && i.length === t.length ? t : o.length === 0 ? i : i.length === 0 ? o : [...o, ...i];
43790
43790
  }
43791
43791
  var yf = Xa((e, t) => {
43792
- const { registry: s, context: o } = Be(Qe), i = I(null), n = I(null), r = I(null), a = I(null), l = I(null), c = I(), [d, u] = M(), [h, g] = M(), [p, f] = M(), [m, C] = M(() => new St()), [w, b] = M(() => new St("ag-hidden")), [y, S] = M(() => new St("ag-hidden")), [R, x] = M(() => new St("ag-invisible"));
43792
+ const { registry: s, context: o } = Be(Qe), i = A(null), n = A(null), r = A(null), a = A(null), l = A(null), c = A(), [d, u] = I(), [h, g] = I(), [p, f] = I(), [m, C] = I(() => new St()), [w, b] = I(() => new St("ag-hidden")), [y, S] = I(() => new St("ag-hidden")), [R, x] = I(() => new St("ag-invisible"));
43793
43793
  Ja(t, () => ({
43794
43794
  // force new instance when grid tries to refresh
43795
43795
  refresh() {
@@ -43802,15 +43802,15 @@ var yf = Xa((e, t) => {
43802
43802
  return;
43803
43803
  }
43804
43804
  const O = {
43805
- setInnerRenderer: ($, H) => {
43806
- u($), f(H);
43805
+ setInnerRenderer: ($, B) => {
43806
+ u($), f(B);
43807
43807
  },
43808
43808
  setChildCount: ($) => g($),
43809
- toggleCss: ($, H) => C((q) => q.setClass($, H)),
43810
- setContractedDisplayed: ($) => S((H) => H.setClass("ag-hidden", !$)),
43811
- setExpandedDisplayed: ($) => b((H) => H.setClass("ag-hidden", !$)),
43812
- setCheckboxVisible: ($) => x((H) => H.setClass("ag-invisible", !$)),
43813
- setCheckboxSpacing: ($) => x((H) => H.setClass("ag-group-checkbox-spacing", $))
43809
+ toggleCss: ($, B) => C((q) => q.setClass($, B)),
43810
+ setContractedDisplayed: ($) => S((B) => B.setClass("ag-hidden", !$)),
43811
+ setExpandedDisplayed: ($) => b((B) => B.setClass("ag-hidden", !$)),
43812
+ setCheckboxVisible: ($) => x((B) => B.setClass("ag-invisible", !$)),
43813
+ setCheckboxSpacing: ($) => x((B) => B.setClass("ag-group-checkbox-spacing", $))
43814
43814
  }, ae = s.createDynamicBean("groupCellRendererCtrl", !0);
43815
43815
  ae && (c.current = o.createBean(ae), c.current.init(
43816
43816
  O,
@@ -43821,31 +43821,31 @@ var yf = Xa((e, t) => {
43821
43821
  yf,
43822
43822
  e
43823
43823
  ));
43824
- }, []), A = W(() => `ag-cell-wrapper ${m.toString()}`, [m]), k = W(() => `ag-group-expanded ${w.toString()}`, [w]), F = W(
43824
+ }, []), k = W(() => `ag-cell-wrapper ${m.toString()}`, [m]), M = W(() => `ag-group-expanded ${w.toString()}`, [w]), F = W(
43825
43825
  () => `ag-group-contracted ${y.toString()}`,
43826
43826
  [y]
43827
- ), T = W(() => `ag-group-checkbox ${R.toString()}`, [R]), B = d?.componentFromFramework, J = B ? d.componentClass : void 0, N = d == null && p != null, re = Ho(p);
43828
- return /* @__PURE__ */ V.createElement(
43827
+ ), T = W(() => `ag-group-checkbox ${R.toString()}`, [R]), V = d?.componentFromFramework, J = V ? d.componentClass : void 0, N = d == null && p != null, re = Ho(p);
43828
+ return /* @__PURE__ */ G.createElement(
43829
43829
  "span",
43830
43830
  {
43831
- className: A,
43831
+ className: k,
43832
43832
  ref: P,
43833
43833
  ...e.colDef ? {} : { role: c.current?.getCellAriaRole() }
43834
43834
  },
43835
- /* @__PURE__ */ V.createElement("span", { className: k, ref: a }),
43836
- /* @__PURE__ */ V.createElement("span", { className: F, ref: l }),
43837
- /* @__PURE__ */ V.createElement("span", { className: T, ref: r }),
43838
- /* @__PURE__ */ V.createElement("span", { className: "ag-group-value", ref: n }, N ? re : B ? /* @__PURE__ */ V.createElement(J, { ...d.params }) : null),
43839
- /* @__PURE__ */ V.createElement("span", { className: "ag-group-child-count" }, h)
43835
+ /* @__PURE__ */ G.createElement("span", { className: M, ref: a }),
43836
+ /* @__PURE__ */ G.createElement("span", { className: F, ref: l }),
43837
+ /* @__PURE__ */ G.createElement("span", { className: T, ref: r }),
43838
+ /* @__PURE__ */ G.createElement("span", { className: "ag-group-value", ref: n }, N ? re : V ? /* @__PURE__ */ G.createElement(J, { ...d.params }) : null),
43839
+ /* @__PURE__ */ G.createElement("span", { className: "ag-group-child-count" }, h)
43840
43840
  );
43841
43841
  }), ou = yf, ac = Vn({
43842
43842
  setMethods: () => {
43843
43843
  }
43844
43844
  }), JM = (e) => {
43845
- const { initialProps: t, addUpdateCallback: s, CustomComponentClass: o, setMethods: i } = e, [{ key: n, ...r }, a] = M(t);
43845
+ const { initialProps: t, addUpdateCallback: s, CustomComponentClass: o, setMethods: i } = e, [{ key: n, ...r }, a] = I(t);
43846
43846
  return me(() => {
43847
43847
  s((l) => a(l));
43848
- }, []), /* @__PURE__ */ V.createElement(ac.Provider, { value: { setMethods: i } }, /* @__PURE__ */ V.createElement(o, { key: n, ...r }));
43848
+ }, []), /* @__PURE__ */ G.createElement(ac.Provider, { value: { setMethods: i } }, /* @__PURE__ */ G.createElement(o, { key: n, ...r }));
43849
43849
  }, eI = it(JM), tI = 0;
43850
43850
  function iu() {
43851
43851
  return `agPortalKey_${++tI}`;
@@ -44287,7 +44287,7 @@ var mI = 1e3, CI = class {
44287
44287
  }
44288
44288
  }
44289
44289
  }, vI = ({ ctrl: e }) => {
44290
- const t = e.isAlive(), { context: s } = Be(Qe), [o, i] = M(), [n, r] = M(), a = I(), l = I(null), c = I(null), d = I(null), u = I(), h = I();
44290
+ const t = e.isAlive(), { context: s } = Be(Qe), [o, i] = I(), [n, r] = I(), a = A(), l = A(null), c = A(null), d = A(null), u = A(), h = A();
44291
44291
  t && !h.current && (h.current = new Ri(() => l.current));
44292
44292
  const g = _((C) => {
44293
44293
  if (l.current = C, !C || !e.isAlive() || s.isDestroyed()) {
@@ -44321,7 +44321,7 @@ var mI = 1e3, CI = class {
44321
44321
  e.setDragSource(l.current);
44322
44322
  }, [o]);
44323
44323
  const p = W(() => !!(o?.componentFromFramework && Bo(o.componentClass)), [o]), f = o?.componentFromFramework, m = o?.componentClass;
44324
- return /* @__PURE__ */ V.createElement("div", { ref: g, style: n, className: "ag-header-cell", role: "columnheader" }, /* @__PURE__ */ V.createElement("div", { ref: c, className: "ag-header-cell-resize", role: "presentation" }), /* @__PURE__ */ V.createElement("div", { ref: d, className: "ag-header-cell-comp-wrapper", role: "presentation" }, f ? p ? /* @__PURE__ */ V.createElement(m, { ...o.params }) : /* @__PURE__ */ V.createElement(m, { ...o.params, ref: u }) : null));
44324
+ return /* @__PURE__ */ G.createElement("div", { ref: g, style: n, className: "ag-header-cell", role: "columnheader" }, /* @__PURE__ */ G.createElement("div", { ref: c, className: "ag-header-cell-resize", role: "presentation" }), /* @__PURE__ */ G.createElement("div", { ref: d, className: "ag-header-cell-comp-wrapper", role: "presentation" }, f ? p ? /* @__PURE__ */ G.createElement(m, { ...o.params }) : /* @__PURE__ */ G.createElement(m, { ...o.params, ref: u }) : null));
44325
44325
  }, wI = it(vI), bI = class {
44326
44326
  constructor(e, t) {
44327
44327
  this.floatingFilterParams = e, this.refreshProps = t;
@@ -44339,11 +44339,11 @@ var mI = 1e3, CI = class {
44339
44339
  return ["afterGuiAttached"];
44340
44340
  }
44341
44341
  }, SI = ({ ctrl: e }) => {
44342
- const { context: t, gos: s } = Be(Qe), [o, i] = M(), [n, r] = M(
44342
+ const { context: t, gos: s } = Be(Qe), [o, i] = I(), [n, r] = I(
44343
44343
  () => new St("ag-header-cell", "ag-floating-filter")
44344
- ), [a, l] = M(() => new St()), [c, d] = M(
44344
+ ), [a, l] = I(() => new St()), [c, d] = I(
44345
44345
  () => new St("ag-floating-filter-button", "ag-hidden")
44346
- ), [u, h] = M("false"), [g, p] = M(), [, f] = M(1), m = I(), C = I(null), w = I(null), b = I(null), y = I(null), S = I(), R = I(), x = ($) => {
44346
+ ), [u, h] = I("false"), [g, p] = I(), [, f] = I(1), m = A(), C = A(null), w = A(null), b = A(null), y = A(null), S = A(), R = A(), x = ($) => {
44347
44347
  $ != null && S.current && S.current($);
44348
44348
  }, P = _(($) => {
44349
44349
  if (C.current = $, !$ || !e.isAlive() || t.isDestroyed()) {
@@ -44353,7 +44353,7 @@ var mI = 1e3, CI = class {
44353
44353
  m.current = t.createBean(new Go()), R.current = new pe((q) => {
44354
44354
  S.current = q;
44355
44355
  });
44356
- const H = {
44356
+ const B = {
44357
44357
  toggleCss: (q, Y) => r((ee) => ee.setClass(q, Y)),
44358
44358
  setUserStyles: (q) => i(q),
44359
44359
  addOrRemoveBodyCssClass: (q, Y) => l((ee) => ee.setClass(q, Y)),
@@ -44367,32 +44367,32 @@ var mI = 1e3, CI = class {
44367
44367
  getFloatingFilterComp: () => R.current ? R.current : null,
44368
44368
  setMenuIcon: (q) => y.current?.appendChild(q)
44369
44369
  };
44370
- e.setComp(H, $, y.current, w.current, m.current);
44370
+ e.setComp(B, $, y.current, w.current, m.current);
44371
44371
  }, []);
44372
44372
  Rt(
44373
44373
  () => Di(g, t, w.current, x),
44374
44374
  [g]
44375
44375
  );
44376
- const A = W(() => n.toString(), [n]), k = W(() => a.toString(), [a]), F = W(() => c.toString(), [c]), T = W(() => !!(g && g.componentFromFramework && Bo(g.componentClass)), [g]), B = W(() => s.get("reactiveCustomComponents"), []), J = W(() => s.get("enableFilterHandlers"), []), [N, re] = M();
44376
+ const k = W(() => n.toString(), [n]), M = W(() => a.toString(), [a]), F = W(() => c.toString(), [c]), T = W(() => !!(g && g.componentFromFramework && Bo(g.componentClass)), [g]), V = W(() => s.get("reactiveCustomComponents"), []), J = W(() => s.get("enableFilterHandlers"), []), [N, re] = I();
44377
44377
  me(() => {
44378
44378
  if (g?.componentFromFramework)
44379
- if (B) {
44380
- const $ = J ? bI : aI, H = new $(g.params, () => f((q) => q + 1));
44381
- x(H), re(H);
44379
+ if (V) {
44380
+ const $ = J ? bI : aI, B = new $(g.params, () => f((q) => q + 1));
44381
+ x(B), re(B);
44382
44382
  } else
44383
44383
  lc();
44384
44384
  }, [g]);
44385
44385
  const oe = N?.getProps(), O = g?.componentFromFramework, ae = g?.componentClass;
44386
- return /* @__PURE__ */ V.createElement("div", { ref: P, style: o, className: A, role: "gridcell" }, /* @__PURE__ */ V.createElement("div", { ref: w, className: k, role: "presentation" }, O ? B ? oe && /* @__PURE__ */ V.createElement(
44386
+ return /* @__PURE__ */ G.createElement("div", { ref: P, style: o, className: k, role: "gridcell" }, /* @__PURE__ */ G.createElement("div", { ref: w, className: M, role: "presentation" }, O ? V ? oe && /* @__PURE__ */ G.createElement(
44387
44387
  ac.Provider,
44388
44388
  {
44389
44389
  value: {
44390
44390
  setMethods: ($) => N.setMethods($)
44391
44391
  }
44392
44392
  },
44393
- /* @__PURE__ */ V.createElement(ae, { ...oe })
44394
- ) : /* @__PURE__ */ V.createElement(ae, { ...g.params, ref: T ? () => {
44395
- } : x }) : null), /* @__PURE__ */ V.createElement(
44393
+ /* @__PURE__ */ G.createElement(ae, { ...oe })
44394
+ ) : /* @__PURE__ */ G.createElement(ae, { ...g.params, ref: T ? () => {
44395
+ } : x }) : null), /* @__PURE__ */ G.createElement(
44396
44396
  "div",
44397
44397
  {
44398
44398
  ref: b,
@@ -44400,7 +44400,7 @@ var mI = 1e3, CI = class {
44400
44400
  className: F,
44401
44401
  role: "presentation"
44402
44402
  },
44403
- /* @__PURE__ */ V.createElement(
44403
+ /* @__PURE__ */ G.createElement(
44404
44404
  "button",
44405
44405
  {
44406
44406
  ref: y,
@@ -44411,17 +44411,17 @@ var mI = 1e3, CI = class {
44411
44411
  )
44412
44412
  ));
44413
44413
  }, yI = it(SI), RI = ({ ctrl: e }) => {
44414
- const { context: t } = Be(Qe), [s, o] = M(), [i, n] = M(() => new St()), [r, a] = M(() => new St()), [l, c] = M("false"), [d, u] = M(), [h, g] = M(), p = I(), f = I(null), m = I(null), C = I(null), w = I(), b = _((A) => {
44415
- if (f.current = A, !A || !e.isAlive() || t.isDestroyed()) {
44414
+ const { context: t } = Be(Qe), [s, o] = I(), [i, n] = I(() => new St()), [r, a] = I(() => new St()), [l, c] = I("false"), [d, u] = I(), [h, g] = I(), p = A(), f = A(null), m = A(null), C = A(null), w = A(), b = _((k) => {
44415
+ if (f.current = k, !k || !e.isAlive() || t.isDestroyed()) {
44416
44416
  p.current = t.destroyBean(p.current);
44417
44417
  return;
44418
44418
  }
44419
44419
  p.current = t.createBean(new Go());
44420
- const k = {
44420
+ const M = {
44421
44421
  setWidth: (F) => {
44422
44422
  f.current && (f.current.style.width = F);
44423
44423
  },
44424
- toggleCss: (F, T) => n((B) => B.setClass(F, T)),
44424
+ toggleCss: (F, T) => n((V) => V.setClass(F, T)),
44425
44425
  setUserStyles: (F) => o(F),
44426
44426
  setHeaderWrapperHidden: (F) => {
44427
44427
  const T = C.current;
@@ -44438,7 +44438,7 @@ var mI = 1e3, CI = class {
44438
44438
  setAriaExpanded: (F) => u(F),
44439
44439
  getUserCompInstance: () => w.current || void 0
44440
44440
  };
44441
- e.setComp(k, A, m.current, C.current, p.current);
44441
+ e.setComp(M, k, m.current, C.current, p.current);
44442
44442
  }, []);
44443
44443
  Rt(() => Di(h, t, C.current), [h]), me(() => {
44444
44444
  f.current && e.setDragSource(f.current);
@@ -44447,9 +44447,9 @@ var mI = 1e3, CI = class {
44447
44447
  () => "ag-header-cell-resize " + r.toString(),
44448
44448
  [r]
44449
44449
  ), x = h?.componentFromFramework, P = h?.componentClass;
44450
- return /* @__PURE__ */ V.createElement("div", { ref: b, style: s, className: S, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ V.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, x ? y ? /* @__PURE__ */ V.createElement(P, { ...h.params }) : /* @__PURE__ */ V.createElement(P, { ...h.params, ref: w }) : null), /* @__PURE__ */ V.createElement("div", { ref: m, "aria-hidden": l, className: R }));
44450
+ return /* @__PURE__ */ G.createElement("div", { ref: b, style: s, className: S, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ G.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, x ? y ? /* @__PURE__ */ G.createElement(P, { ...h.params }) : /* @__PURE__ */ G.createElement(P, { ...h.params, ref: w }) : null), /* @__PURE__ */ G.createElement("div", { ref: m, "aria-hidden": l, className: R }));
44451
44451
  }, xI = it(RI), FI = ({ ctrl: e }) => {
44452
- const { gos: t, context: s } = Be(Qe), { topOffset: o, rowHeight: i } = W(() => e.getTopAndHeight(), []), n = W(() => t.get("tabIndex"), []), [r, a] = M(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = M(() => i + "px"), [u, h] = M(() => o + "px"), g = I(null), [p, f] = M(() => e.getUpdatedHeaderCtrls()), m = I(), C = I(null), w = _((S) => {
44452
+ const { gos: t, context: s } = Be(Qe), { topOffset: o, rowHeight: i } = W(() => e.getTopAndHeight(), []), n = W(() => t.get("tabIndex"), []), [r, a] = I(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = I(() => i + "px"), [u, h] = I(() => o + "px"), g = A(null), [p, f] = I(() => e.getUpdatedHeaderCtrls()), m = A(), C = A(null), w = _((S) => {
44453
44453
  if (C.current = S, !S || !e.isAlive() || s.isDestroyed()) {
44454
44454
  m.current = s.destroyBean(m.current);
44455
44455
  return;
@@ -44458,9 +44458,9 @@ var mI = 1e3, CI = class {
44458
44458
  const R = {
44459
44459
  setHeight: (x) => d(x),
44460
44460
  setTop: (x) => h(x),
44461
- setHeaderCtrls: (x, P, A) => {
44462
- const k = g.current, F = Gn(k, x, P);
44463
- F !== k && (g.current = F, bi(A, () => f(F)));
44461
+ setHeaderCtrls: (x, P, k) => {
44462
+ const M = g.current, F = Gn(M, x, P);
44463
+ F !== M && (g.current = F, bi(k, () => f(F)));
44464
44464
  },
44465
44465
  setWidth: (x) => {
44466
44466
  C.current && (C.current.style.width = x);
@@ -44479,14 +44479,14 @@ var mI = 1e3, CI = class {
44479
44479
  ), y = _((S) => {
44480
44480
  switch (e.type) {
44481
44481
  case "group":
44482
- return /* @__PURE__ */ V.createElement(xI, { ctrl: S, key: S.instanceId });
44482
+ return /* @__PURE__ */ G.createElement(xI, { ctrl: S, key: S.instanceId });
44483
44483
  case "filter":
44484
- return /* @__PURE__ */ V.createElement(yI, { ctrl: S, key: S.instanceId });
44484
+ return /* @__PURE__ */ G.createElement(yI, { ctrl: S, key: S.instanceId });
44485
44485
  default:
44486
- return /* @__PURE__ */ V.createElement(wI, { ctrl: S, key: S.instanceId });
44486
+ return /* @__PURE__ */ G.createElement(wI, { ctrl: S, key: S.instanceId });
44487
44487
  }
44488
44488
  }, []);
44489
- return /* @__PURE__ */ V.createElement(
44489
+ return /* @__PURE__ */ G.createElement(
44490
44490
  "div",
44491
44491
  {
44492
44492
  ref: w,
@@ -44499,7 +44499,7 @@ var mI = 1e3, CI = class {
44499
44499
  p.map(y)
44500
44500
  );
44501
44501
  }, EI = it(FI), PI = ({ pinned: e }) => {
44502
- const [t, s] = M(!0), [o, i] = M([]), { context: n } = Be(Qe), r = I(null), a = I(null), l = I(), c = e === "left", d = e === "right", u = !c && !d, h = _((f) => {
44502
+ const [t, s] = I(!0), [o, i] = I([]), { context: n } = Be(Qe), r = A(null), a = A(null), l = A(), c = e === "left", d = e === "right", u = !c && !d, h = _((f) => {
44503
44503
  if (r.current = f, !f || n.isDestroyed()) {
44504
44504
  l.current = n.destroyBean(l.current);
44505
44505
  return;
@@ -44521,10 +44521,10 @@ var mI = 1e3, CI = class {
44521
44521
  }
44522
44522
  };
44523
44523
  l.current.setComp(m, r.current);
44524
- }, []), g = t ? "" : "ag-hidden", p = () => o.map((f) => /* @__PURE__ */ V.createElement(EI, { ctrl: f, key: f.instanceId }));
44525
- return c ? /* @__PURE__ */ V.createElement("div", { ref: h, className: "ag-pinned-left-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : d ? /* @__PURE__ */ V.createElement("div", { ref: h, className: "ag-pinned-right-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : u ? /* @__PURE__ */ V.createElement("div", { ref: h, className: "ag-header-viewport " + g, role: "rowgroup", tabIndex: -1 }, /* @__PURE__ */ V.createElement("div", { ref: a, className: "ag-header-container", role: "presentation" }, p())) : null;
44524
+ }, []), g = t ? "" : "ag-hidden", p = () => o.map((f) => /* @__PURE__ */ G.createElement(EI, { ctrl: f, key: f.instanceId }));
44525
+ return c ? /* @__PURE__ */ G.createElement("div", { ref: h, className: "ag-pinned-left-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : d ? /* @__PURE__ */ G.createElement("div", { ref: h, className: "ag-pinned-right-header " + g, "aria-hidden": !t, role: "rowgroup" }, p()) : u ? /* @__PURE__ */ G.createElement("div", { ref: h, className: "ag-header-viewport " + g, role: "rowgroup", tabIndex: -1 }, /* @__PURE__ */ G.createElement("div", { ref: a, className: "ag-header-container", role: "presentation" }, p())) : null;
44526
44526
  }, $r = it(PI), DI = () => {
44527
- const [e, t] = M(() => new St()), [s, o] = M(), { context: i } = Be(Qe), n = I(null), r = I(), a = _((d) => {
44527
+ const [e, t] = I(() => new St()), [s, o] = I(), { context: i } = Be(Qe), n = A(null), r = A(), a = _((d) => {
44528
44528
  if (n.current = d, !d || i.isDestroyed()) {
44529
44529
  r.current = i.destroyBean(r.current);
44530
44530
  return;
@@ -44542,7 +44542,7 @@ var mI = 1e3, CI = class {
44542
44542
  }),
44543
44543
  [s]
44544
44544
  );
44545
- return /* @__PURE__ */ V.createElement("div", { ref: a, className: l, style: c, role: "presentation" }, /* @__PURE__ */ V.createElement($r, { pinned: "left" }), /* @__PURE__ */ V.createElement($r, { pinned: null }), /* @__PURE__ */ V.createElement($r, { pinned: "right" }));
44545
+ return /* @__PURE__ */ G.createElement("div", { ref: a, className: l, style: c, role: "presentation" }, /* @__PURE__ */ G.createElement($r, { pinned: "left" }), /* @__PURE__ */ G.createElement($r, { pinned: null }), /* @__PURE__ */ G.createElement($r, { pinned: "right" }));
44546
44546
  }, TI = it(DI), MI = (e, t) => {
44547
44547
  me(() => {
44548
44548
  const s = t.current;
@@ -44600,12 +44600,12 @@ var mI = 1e3, CI = class {
44600
44600
  this.value = e, this.refreshProps();
44601
44601
  }
44602
44602
  }, AI = (e) => {
44603
- const t = I(e), s = I(), o = I(!1), i = I(!1), [, n] = M(0);
44603
+ const t = A(e), s = A(), o = A(!1), i = A(!1), [, n] = I(0);
44604
44604
  o.current && (i.current = !0), me(() => (o.current || (s.current = t.current(), o.current = !0), n((r) => r + 1), () => {
44605
44605
  i.current && s.current?.();
44606
44606
  }), []);
44607
44607
  }, kI = (e) => {
44608
- const [t, s] = M(), o = Be(Qe), { context: i, popupSvc: n, gos: r, editSvc: a } = o, { editDetails: l, cellCtrl: c, eParentCell: d } = e;
44608
+ const [t, s] = I(), o = Be(Qe), { context: i, popupSvc: n, gos: r, editSvc: a } = o, { editDetails: l, cellCtrl: c, eParentCell: d } = e;
44609
44609
  return AI(() => {
44610
44610
  const { compDetails: u } = l, h = r.get("stopEditingWhenCellsLoseFocus");
44611
44611
  let g, p;
@@ -44647,18 +44647,18 @@ var mI = 1e3, CI = class {
44647
44647
  const { compProxy: o } = e;
44648
44648
  s(o);
44649
44649
  const i = o.getProps(), n = Bo(t);
44650
- return /* @__PURE__ */ V.createElement(
44650
+ return /* @__PURE__ */ G.createElement(
44651
44651
  ac.Provider,
44652
44652
  {
44653
44653
  value: {
44654
44654
  setMethods: (r) => o.setMethods(r)
44655
44655
  }
44656
44656
  },
44657
- n ? /* @__PURE__ */ V.createElement(t, { ...i }) : /* @__PURE__ */ V.createElement(t, { ...i, ref: (r) => o.setRef(r) })
44657
+ n ? /* @__PURE__ */ G.createElement(t, { ...i }) : /* @__PURE__ */ G.createElement(t, { ...i, ref: (r) => o.setRef(r) })
44658
44658
  );
44659
- }, ru = (e, t, s) => e.compProxy ? LI(e, t, s) : /* @__PURE__ */ V.createElement(t, { ...e.compDetails.params, ref: s }), OI = (e, t, s, o, i) => {
44659
+ }, ru = (e, t, s) => e.compProxy ? LI(e, t, s) : /* @__PURE__ */ G.createElement(t, { ...e.compDetails.params, ref: s }), OI = (e, t, s, o, i) => {
44660
44660
  const n = e.compDetails, r = n.componentClass, a = n.componentFromFramework && !e.popup, l = n.componentFromFramework && e.popup, c = !n.componentFromFramework && e.popup;
44661
- return a ? ru(e, r, t) : l ? /* @__PURE__ */ V.createElement(
44661
+ return a ? ru(e, r, t) : l ? /* @__PURE__ */ G.createElement(
44662
44662
  nu,
44663
44663
  {
44664
44664
  editDetails: e,
@@ -44666,7 +44666,7 @@ var mI = 1e3, CI = class {
44666
44666
  eParentCell: s,
44667
44667
  wrappedContent: ru(e, r, t)
44668
44668
  }
44669
- ) : c && i ? /* @__PURE__ */ V.createElement(nu, { editDetails: e, cellCtrl: o, eParentCell: s, jsChildComp: i }) : null;
44669
+ ) : c && i ? /* @__PURE__ */ G.createElement(nu, { editDetails: e, cellCtrl: o, eParentCell: s, jsChildComp: i }) : null;
44670
44670
  }, NI = (e, t, s, o, i, n) => {
44671
44671
  const { context: r } = Be(Qe), a = _(() => {
44672
44672
  const l = i.current;
@@ -44701,7 +44701,7 @@ var mI = 1e3, CI = class {
44701
44701
  cellCtrl: e,
44702
44702
  parent: t
44703
44703
  }) => {
44704
- const s = I(), o = W(() => {
44704
+ const s = A(), o = W(() => {
44705
44705
  const { loadingComp: i } = e.getDeferLoadingCellRenderer();
44706
44706
  return i ? {
44707
44707
  value: void 0,
@@ -44711,9 +44711,9 @@ var mI = 1e3, CI = class {
44711
44711
  }, [e]);
44712
44712
  if (Ff(o, !1, void 0, 1, s, t), o?.compDetails?.componentFromFramework) {
44713
44713
  const i = o.compDetails.componentClass;
44714
- return /* @__PURE__ */ V.createElement(i, { ...o.compDetails.params });
44714
+ return /* @__PURE__ */ G.createElement(i, { ...o.compDetails.params });
44715
44715
  }
44716
- return /* @__PURE__ */ V.createElement(V.Fragment, null);
44716
+ return /* @__PURE__ */ G.createElement(G.Fragment, null);
44717
44717
  }, GI = ({
44718
44718
  cellCtrl: e,
44719
44719
  printLayout: t,
@@ -44722,9 +44722,9 @@ var mI = 1e3, CI = class {
44722
44722
  const o = Be(Qe), { context: i } = o, {
44723
44723
  column: { colIdSanitised: n },
44724
44724
  instanceId: r
44725
- } = e, a = I(), [l, c] = M(
44725
+ } = e, a = A(), [l, c] = I(
44726
44726
  () => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
44727
- ), [d, u] = M(), [h, g] = M(1), [p, f] = M(), [m, C] = M(!1), [w, b] = M(!1), [y, S] = M(!1), [R, x] = M(), P = W(() => e.isForceWrapper(), [e]), A = W(() => e.getCellAriaRole(), [e]), k = I(null), F = I(null), T = I(null), B = I(), J = I(), N = I(), re = I([]), oe = I(), O = I(), [ae, $] = M(0), H = _((ue) => {
44727
+ ), [d, u] = I(), [h, g] = I(1), [p, f] = I(), [m, C] = I(!1), [w, b] = I(!1), [y, S] = I(!1), [R, x] = I(), P = W(() => e.isForceWrapper(), [e]), k = W(() => e.getCellAriaRole(), [e]), M = A(null), F = A(null), T = A(null), V = A(), J = A(), N = A(), re = A([]), oe = A(), O = A(), [ae, $] = I(0), B = _((ue) => {
44728
44728
  O.current = ue, $((ye) => ye + 1);
44729
44729
  }, []), q = l != null && (m || y || w) && (d == null || !!d.popup), Y = P || q, ee = W(() => e.getCellValueClass(), [e]), ge = _(
44730
44730
  (ue) => {
@@ -44736,9 +44736,9 @@ var mI = 1e3, CI = class {
44736
44736
  }
44737
44737
  },
44738
44738
  [e]
44739
- ), G = I();
44740
- G.current || (G.current = new Ri(() => k.current)), Ff(l, Y, O.current, ae, B, k);
44741
- const se = I();
44739
+ ), H = A();
44740
+ H.current || (H.current = new Ri(() => M.current)), Ff(l, Y, O.current, ae, V, M);
44741
+ const se = A();
44742
44742
  Rt(() => {
44743
44743
  const ue = se.current, ye = l;
44744
44744
  if (se.current = l, ue == null || ue.compDetails == null || ye == null || ye.compDetails == null)
@@ -44756,7 +44756,7 @@ var mI = 1e3, CI = class {
44756
44756
  if (!de)
44757
44757
  return;
44758
44758
  const ve = de.getGui();
44759
- ge(de), _e || ((P ? N : k).current?.appendChild(ve), de.afterGuiAttached?.()), x(de);
44759
+ ge(de), _e || ((P ? N : M).current?.appendChild(ve), de.afterGuiAttached?.()), x(de);
44760
44760
  }), () => {
44761
44761
  qe.then((de) => {
44762
44762
  const ve = de.getGui();
@@ -44783,22 +44783,22 @@ var mI = 1e3, CI = class {
44783
44783
  },
44784
44784
  [e, i, y, w, m]
44785
44785
  ), xe = _(() => {
44786
- const ue = !e.isCellSpanning() || F.current, ye = k.current;
44786
+ const ue = !e.isCellSpanning() || F.current, ye = M.current;
44787
44787
  if (!ye || !ue || !e || !e.isAlive() || i.isDestroyed()) {
44788
44788
  a.current = i.destroyBean(a.current);
44789
44789
  return;
44790
44790
  }
44791
44791
  a.current = i.createBean(new Go());
44792
44792
  const _e = {
44793
- toggleCss: (de, ve) => G.current.toggleCss(de, ve),
44793
+ toggleCss: (de, ve) => H.current.toggleCss(de, ve),
44794
44794
  setUserStyles: (de) => f(de),
44795
- getFocusableElement: () => k.current,
44795
+ getFocusableElement: () => M.current,
44796
44796
  setIncludeSelection: (de) => C(de),
44797
44797
  setIncludeRowDrag: (de) => b(de),
44798
44798
  setIncludeDndSource: (de) => S(de),
44799
44799
  getCellEditor: () => J.current ?? null,
44800
- getCellRenderer: () => T.current ?? B.current,
44801
- getParentOfValue: () => O.current ?? N.current ?? k.current,
44800
+ getCellRenderer: () => T.current ?? V.current,
44801
+ getParentOfValue: () => O.current ?? N.current ?? M.current,
44802
44802
  setRenderDetails: (de, ve, Xe) => {
44803
44803
  const is = () => {
44804
44804
  c((Ue) => Ue?.compDetails !== de || Ue?.value !== ve || Ue?.force !== Xe ? {
@@ -44836,9 +44836,9 @@ var mI = 1e3, CI = class {
44836
44836
  e.hasBrowserFocus() && _e.getFocusableElement().focus({ preventScroll: !0 }), J.current = void 0, u(void 0);
44837
44837
  },
44838
44838
  refreshEditStyles: (de, ve) => {
44839
- if (!k.current)
44839
+ if (!M.current)
44840
44840
  return;
44841
- const { current: Xe } = G;
44841
+ const { current: Xe } = H;
44842
44842
  Xe.toggleCss("ag-cell-value", !Y), Xe.toggleCss("ag-cell-inline-editing", !!de && !ve), Xe.toggleCss("ag-cell-popup-editing", !!de && !!ve), Xe.toggleCss("ag-cell-not-inline-editing", !de || !!ve);
44843
44843
  }
44844
44844
  }, qe = N.current || void 0;
@@ -44852,14 +44852,14 @@ var mI = 1e3, CI = class {
44852
44852
  a.current
44853
44853
  );
44854
44854
  }, []), z = _((ue) => {
44855
- k.current = ue, xe();
44855
+ M.current = ue, xe();
44856
44856
  }, []), Ce = _((ue) => {
44857
44857
  F.current = ue, xe();
44858
44858
  }, []), Re = W(() => !!(l?.compDetails?.componentFromFramework && Bo(l.compDetails.componentClass)), [l]);
44859
44859
  Rt(() => {
44860
- if (!k.current)
44860
+ if (!M.current)
44861
44861
  return;
44862
- const { current: ue } = G;
44862
+ const { current: ue } = H;
44863
44863
  ue.toggleCss("ag-cell-value", !Y), ue.toggleCss("ag-cell-inline-editing", !!d && !d.popup), ue.toggleCss("ag-cell-popup-editing", !!d && !!d.popup), ue.toggleCss("ag-cell-not-inline-editing", !d || !!d.popup);
44864
44864
  });
44865
44865
  const nt = () => {
@@ -44868,30 +44868,30 @@ var mI = 1e3, CI = class {
44868
44868
  return ye?.toString?.() ?? ye;
44869
44869
  if (ue.componentFromFramework) {
44870
44870
  const _e = ue.componentClass;
44871
- return /* @__PURE__ */ V.createElement(Yf, { fallback: /* @__PURE__ */ V.createElement(HI, { cellCtrl: e, parent: k }) }, Re ? /* @__PURE__ */ V.createElement(_e, { ...ue.params, key: h }) : /* @__PURE__ */ V.createElement(_e, { ...ue.params, key: h, ref: T }));
44871
+ return /* @__PURE__ */ G.createElement(Yf, { fallback: /* @__PURE__ */ G.createElement(HI, { cellCtrl: e, parent: M }) }, Re ? /* @__PURE__ */ G.createElement(_e, { ...ue.params, key: h }) : /* @__PURE__ */ G.createElement(_e, { ...ue.params, key: h, ref: T }));
44872
44872
  }
44873
44873
  }, zt = () => {
44874
- const ue = () => l == null ? null : Y ? /* @__PURE__ */ V.createElement("span", { role: "presentation", id: `cell-${r}`, className: ee, ref: H }, nt()) : nt(), ye = (_e) => OI(_e, ge, k.current, e, R);
44875
- return d != null ? d.popup ? /* @__PURE__ */ V.createElement(V.Fragment, null, ue(), ye(d)) : ye(d) : ue();
44876
- }, os = () => /* @__PURE__ */ V.createElement("div", { ref: z, style: p, role: A, "col-id": n }, Y ? /* @__PURE__ */ V.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: He }, zt()) : zt());
44877
- return e.isCellSpanning() ? /* @__PURE__ */ V.createElement("div", { ref: Ce, className: "ag-spanned-cell-wrapper", role: "presentation" }, os()) : os();
44874
+ const ue = () => l == null ? null : Y ? /* @__PURE__ */ G.createElement("span", { role: "presentation", id: `cell-${r}`, className: ee, ref: B }, nt()) : nt(), ye = (_e) => OI(_e, ge, M.current, e, R);
44875
+ return d != null ? d.popup ? /* @__PURE__ */ G.createElement(G.Fragment, null, ue(), ye(d)) : ye(d) : ue();
44876
+ }, os = () => /* @__PURE__ */ G.createElement("div", { ref: z, style: p, role: k, "col-id": n }, Y ? /* @__PURE__ */ G.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: He }, zt()) : zt());
44877
+ return e.isCellSpanning() ? /* @__PURE__ */ G.createElement("div", { ref: Ce, className: "ag-spanned-cell-wrapper", role: "presentation" }, os()) : os();
44878
44878
  }, VI = it(GI), BI = ({ rowCtrl: e, containerType: t }) => {
44879
- const { context: s, gos: o, editSvc: i } = Be(Qe), n = Be(wf) === "default", r = I(), a = I(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = M(
44879
+ const { context: s, gos: o, editSvc: i } = Be(Qe), n = Be(wf) === "default", r = A(), a = A(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = I(
44880
44880
  () => c ? e.rowNode.getRowIndexString() : null
44881
- ), [h, g] = M(() => e.rowId), [p, f] = M(() => e.businessKey), [m, C] = M(() => e.rowStyles), w = I(null), [b, y] = M(() => null), [S, R] = M(), [x, P] = M(
44881
+ ), [h, g] = I(() => e.rowId), [p, f] = I(() => e.businessKey), [m, C] = I(() => e.rowStyles), w = A(null), [b, y] = I(() => null), [S, R] = I(), [x, P] = I(
44882
44882
  () => c ? e.getInitialRowTop(t) : void 0
44883
- ), [A, k] = M(
44883
+ ), [k, M] = I(
44884
44884
  () => c ? e.getInitialTransform(t) : void 0
44885
- ), F = I(null), T = I(), B = I(), J = I(!1), [N, re] = M(0);
44885
+ ), F = A(null), T = A(), V = A(), J = A(!1), [N, re] = I(0);
44886
44886
  me(() => {
44887
44887
  if (J.current || !S || N > 10)
44888
44888
  return;
44889
44889
  const z = F.current?.firstChild;
44890
44890
  z ? (e.setupDetailRowAutoHeight(z), J.current = !0) : re((Ce) => Ce + 1);
44891
44891
  }, [S, N]);
44892
- const oe = I();
44892
+ const oe = A();
44893
44893
  oe.current || (oe.current = new Ri(() => F.current));
44894
- const O = I(() => {
44894
+ const O = A(() => {
44895
44895
  }), ae = _((z) => (O.current = z, () => {
44896
44896
  O.current = () => {
44897
44897
  };
@@ -44899,7 +44899,7 @@ var mI = 1e3, CI = class {
44899
44899
  ae,
44900
44900
  () => w.current,
44901
44901
  []
44902
- ), H = n ? $ : b, q = _((z) => {
44902
+ ), B = n ? $ : b, q = _((z) => {
44903
44903
  if (F.current = z, r.current = z ? s.createBean(new Go()) : s.destroyBean(r.current), !z) {
44904
44904
  e.unsetComp(t);
44905
44905
  return;
@@ -44910,7 +44910,7 @@ var mI = 1e3, CI = class {
44910
44910
  // the rowTop is managed by state, instead of direct style manipulation by rowCtrl (like all the other styles)
44911
44911
  // as we need to have an initial value when it's placed into he DOM for the first time, for animation to work.
44912
44912
  setTop: P,
44913
- setTransform: k,
44913
+ setTransform: M,
44914
44914
  // i found using React for managing classes at the row level was to slow, as modifying classes caused a lot of
44915
44915
  // React code to execute, so avoiding React for managing CSS Classes made the grid go much faster.
44916
44916
  toggleCss: (Re, nt) => oe.current.toggleCss(Re, nt),
@@ -44926,13 +44926,13 @@ var mI = 1e3, CI = class {
44926
44926
  os !== zt && (w.current = os, n ? O.current() : bi(nt, () => y(os)));
44927
44927
  },
44928
44928
  showFullWidth: (Re) => {
44929
- B.current = Re.params, R(Re);
44929
+ V.current = Re.params, R(Re);
44930
44930
  },
44931
44931
  getFullWidthCellRenderer: () => T.current,
44932
- getFullWidthCellRendererParams: () => B.current,
44932
+ getFullWidthCellRendererParams: () => V.current,
44933
44933
  refreshFullWidth: (Re) => {
44934
44934
  const nt = Re();
44935
- return B.current = nt, se.current ? (R((zt) => ({
44935
+ return V.current = nt, se.current ? (R((zt) => ({
44936
44936
  ...zt,
44937
44937
  params: nt
44938
44938
  })), !0) : !T.current || !T.current.refresh ? !1 : T.current.refresh(nt);
@@ -44945,13 +44945,13 @@ var mI = 1e3, CI = class {
44945
44945
  [S]
44946
44946
  );
44947
44947
  const Y = W(() => {
44948
- const z = { top: x, transform: A };
44948
+ const z = { top: x, transform: k };
44949
44949
  return Object.assign(z, m), z;
44950
- }, [x, A, m]), ee = l && S?.componentFromFramework, ge = !l && H != null, G = W(() => !!(S?.componentFromFramework && Bo(S.componentClass)), [S]), se = I(!1);
44950
+ }, [x, k, m]), ee = l && S?.componentFromFramework, ge = !l && B != null, H = W(() => !!(S?.componentFromFramework && Bo(S.componentClass)), [S]), se = A(!1);
44951
44951
  me(() => {
44952
- se.current = G && !!S && !!o.get("reactiveCustomComponents");
44953
- }, [G, S]);
44954
- const He = () => H?.map((z) => /* @__PURE__ */ V.createElement(
44952
+ se.current = H && !!S && !!o.get("reactiveCustomComponents");
44953
+ }, [H, S]);
44954
+ const He = () => B?.map((z) => /* @__PURE__ */ G.createElement(
44955
44955
  VI,
44956
44956
  {
44957
44957
  cellCtrl: z,
@@ -44961,9 +44961,9 @@ var mI = 1e3, CI = class {
44961
44961
  }
44962
44962
  )), xe = () => {
44963
44963
  const z = S.componentClass;
44964
- return G ? /* @__PURE__ */ V.createElement(z, { ...S.params }) : /* @__PURE__ */ V.createElement(z, { ...S.params, ref: T });
44964
+ return H ? /* @__PURE__ */ G.createElement(z, { ...S.params }) : /* @__PURE__ */ G.createElement(z, { ...S.params, ref: T });
44965
44965
  };
44966
- return /* @__PURE__ */ V.createElement(
44966
+ return /* @__PURE__ */ G.createElement(
44967
44967
  "div",
44968
44968
  {
44969
44969
  ref: q,
@@ -44976,12 +44976,12 @@ var mI = 1e3, CI = class {
44976
44976
  ge ? He() : ee ? xe() : null
44977
44977
  );
44978
44978
  }, au = it(BI), zI = ({ name: e }) => {
44979
- const { context: t, gos: s } = Be(Qe), o = W(() => Fi(e), [e]), i = I(null), n = I(null), r = I(null), a = I([]), l = I([]), [c, d] = M(() => []), u = !!s.get("enableCellSpan") && !!o.getSpannedRowCtrls, h = I([]), g = I([]), [p, f] = M(() => []), m = I(!1), C = I(), w = W(() => mt("ag-viewport", _g(e)), [e]), b = W(() => mt(tn(e)), [e]), y = W(() => mt("ag-spanning-container", PR(e)), [e]), S = o.type === "center" || u, R = S ? i : n;
44979
+ const { context: t, gos: s } = Be(Qe), o = W(() => Fi(e), [e]), i = A(null), n = A(null), r = A(null), a = A([]), l = A([]), [c, d] = I(() => []), u = !!s.get("enableCellSpan") && !!o.getSpannedRowCtrls, h = A([]), g = A([]), [p, f] = I(() => []), m = A(!1), C = A(), w = W(() => mt("ag-viewport", _g(e)), [e]), b = W(() => mt(tn(e)), [e]), y = W(() => mt("ag-spanning-container", PR(e)), [e]), S = o.type === "center" || u, R = S ? i : n;
44980
44980
  Ps(" AG Row Container " + e + " ", R);
44981
44981
  const x = _(() => {
44982
44982
  const N = !S || i.current != null, re = n.current != null, oe = !u || r.current != null;
44983
44983
  return N && re && oe;
44984
- }, []), P = _(() => i.current == null && n.current == null && r.current == null, []), A = _(() => {
44984
+ }, []), P = _(() => i.current == null && n.current == null && r.current == null, []), k = _(() => {
44985
44985
  if (P() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() && x()) {
44986
44986
  const N = (O) => {
44987
44987
  const ae = Gn(
@@ -45029,49 +45029,49 @@ var mI = 1e3, CI = class {
45029
45029
  i.current
45030
45030
  );
45031
45031
  }
45032
- }, [x, P]), k = _(
45032
+ }, [x, P]), M = _(
45033
45033
  (N) => {
45034
- n.current = N, A();
45034
+ n.current = N, k();
45035
45035
  },
45036
- [A]
45036
+ [k]
45037
45037
  ), F = _(
45038
45038
  (N) => {
45039
- r.current = N, A();
45039
+ r.current = N, k();
45040
45040
  },
45041
- [A]
45041
+ [k]
45042
45042
  ), T = _(
45043
45043
  (N) => {
45044
- i.current = N, A();
45044
+ i.current = N, k();
45045
45045
  },
45046
- [A]
45047
- ), B = () => /* @__PURE__ */ V.createElement(
45046
+ [k]
45047
+ ), V = () => /* @__PURE__ */ G.createElement(
45048
45048
  "div",
45049
45049
  {
45050
45050
  className: b,
45051
- ref: k,
45051
+ ref: M,
45052
45052
  role: S ? "presentation" : "rowgroup"
45053
45053
  },
45054
- c.map((N) => /* @__PURE__ */ V.createElement(au, { rowCtrl: N, containerType: o.type, key: N.instanceId }))
45054
+ c.map((N) => /* @__PURE__ */ G.createElement(au, { rowCtrl: N, containerType: o.type, key: N.instanceId }))
45055
45055
  );
45056
45056
  if (!S)
45057
- return B();
45058
- const J = () => /* @__PURE__ */ V.createElement("div", { className: y, ref: F, role: "presentation" }, p.map((N) => /* @__PURE__ */ V.createElement(au, { rowCtrl: N, containerType: o.type, key: N.instanceId })));
45059
- return /* @__PURE__ */ V.createElement("div", { className: w, ref: T, role: "rowgroup" }, B(), u ? J() : null);
45057
+ return V();
45058
+ const J = () => /* @__PURE__ */ G.createElement("div", { className: y, ref: F, role: "presentation" }, p.map((N) => /* @__PURE__ */ G.createElement(au, { rowCtrl: N, containerType: o.type, key: N.instanceId })));
45059
+ return /* @__PURE__ */ G.createElement("div", { className: w, ref: T, role: "rowgroup" }, V(), u ? J() : null);
45060
45060
  }, WI = it(zI), _I = () => {
45061
- const e = Be(Qe), { context: t, overlays: s } = e, [o, i] = M(""), [n, r] = M(0), [a, l] = M(0), [c, d] = M("0px"), [u, h] = M("0px"), [g, p] = M("100%"), [f, m] = M("0px"), [C, w] = M("0px"), [b, y] = M("100%"), [S, R] = M(!0), [x, P] = M(!0), [A, k] = M(null), [F, T] = M(""), [B, J] = M(null), [N, re] = M("ag-layout-normal"), oe = I();
45061
+ const e = Be(Qe), { context: t, overlays: s } = e, [o, i] = I(""), [n, r] = I(0), [a, l] = I(0), [c, d] = I("0px"), [u, h] = I("0px"), [g, p] = I("100%"), [f, m] = I("0px"), [C, w] = I("0px"), [b, y] = I("100%"), [S, R] = I(!0), [x, P] = I(!0), [k, M] = I(null), [F, T] = I(""), [V, J] = I(null), [N, re] = I("ag-layout-normal"), oe = A();
45062
45062
  oe.current || (oe.current = new Ri(() => O.current));
45063
- const O = I(null), ae = I(null), $ = I(null), H = I(null), q = I(null), Y = I(null), ee = I(null), ge = I([]), G = I([]);
45063
+ const O = A(null), ae = A(null), $ = A(null), B = A(null), q = A(null), Y = A(null), ee = A(null), ge = A([]), H = A([]);
45064
45064
  Ps(" AG Grid Body ", O), Ps(" AG Pinned Top ", ae), Ps(" AG Sticky Top ", $), Ps(" AG Middle ", Y), Ps(" AG Pinned Bottom ", ee);
45065
45065
  const se = _((ve) => {
45066
45066
  if (O.current = ve, !ve || t.isDestroyed()) {
45067
45067
  ge.current = t.destroyBeans(ge.current);
45068
- for (const Le of G.current)
45068
+ for (const Le of H.current)
45069
45069
  Le();
45070
- G.current = [];
45070
+ H.current = [];
45071
45071
  return;
45072
45072
  }
45073
45073
  const Xe = (Le, ct) => {
45074
- Le.appendChild(ct), G.current.push(() => ct.remove());
45074
+ Le.appendChild(ct), H.current.push(() => ct.remove());
45075
45075
  }, is = (Le) => {
45076
45076
  const ct = t.createBean(new Le());
45077
45077
  return ge.current.push(ct), ct;
@@ -45098,7 +45098,7 @@ var mI = 1e3, CI = class {
45098
45098
  setBottomInvisible: P,
45099
45099
  setColumnMovingCss: (Le, ct) => oe.current.toggleCss(Le, ct),
45100
45100
  updateLayoutClasses: re,
45101
- setAlwaysVerticalScrollClass: k,
45101
+ setAlwaysVerticalScrollClass: M,
45102
45102
  setPinnedTopBottomOverflowY: T,
45103
45103
  setCellSelectableCss: (Le, ct) => J(ct ? Le : null),
45104
45104
  setBodyViewportWidth: (Le) => {
@@ -45107,7 +45107,7 @@ var mI = 1e3, CI = class {
45107
45107
  registerBodyViewportResizeListener: (Le) => {
45108
45108
  if (Y.current) {
45109
45109
  const ct = es(e, Y.current, Le);
45110
- G.current.push(() => ct());
45110
+ H.current.push(() => ct());
45111
45111
  }
45112
45112
  },
45113
45113
  setStickyBottomHeight: m,
@@ -45122,26 +45122,26 @@ var mI = 1e3, CI = class {
45122
45122
  ae.current,
45123
45123
  ee.current,
45124
45124
  $.current,
45125
- H.current
45125
+ B.current
45126
45126
  );
45127
45127
  }, []), He = W(() => mt("ag-root", "ag-unselectable", N), [N]), xe = W(
45128
45128
  () => mt(
45129
45129
  "ag-body-viewport",
45130
45130
  o,
45131
45131
  N,
45132
- A,
45133
- B
45132
+ k,
45133
+ V
45134
45134
  ),
45135
- [o, N, A, B]
45135
+ [o, N, k, V]
45136
45136
  ), z = W(() => mt("ag-body", N), [N]), Ce = W(
45137
- () => mt("ag-floating-top", S ? "ag-invisible" : null, B),
45138
- [B, S]
45139
- ), Re = W(() => mt("ag-sticky-top", B), [B]), nt = W(
45140
- () => mt("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, B),
45141
- [B, f]
45137
+ () => mt("ag-floating-top", S ? "ag-invisible" : null, V),
45138
+ [V, S]
45139
+ ), Re = W(() => mt("ag-sticky-top", V), [V]), nt = W(
45140
+ () => mt("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, V),
45141
+ [V, f]
45142
45142
  ), zt = W(
45143
- () => mt("ag-floating-bottom", x ? "ag-invisible" : null, B),
45144
- [B, x]
45143
+ () => mt("ag-floating-bottom", x ? "ag-invisible" : null, V),
45144
+ [V, x]
45145
45145
  ), os = W(
45146
45146
  () => ({
45147
45147
  height: n,
@@ -45170,18 +45170,18 @@ var mI = 1e3, CI = class {
45170
45170
  overflowY: F
45171
45171
  }),
45172
45172
  [a, F]
45173
- ), qe = (ve) => /* @__PURE__ */ V.createElement(WI, { name: ve, key: `${ve}-container` }), de = ({
45173
+ ), qe = (ve) => /* @__PURE__ */ G.createElement(WI, { name: ve, key: `${ve}-container` }), de = ({
45174
45174
  section: ve,
45175
45175
  children: Xe,
45176
45176
  className: is,
45177
45177
  style: Ue
45178
- }) => /* @__PURE__ */ V.createElement("div", { ref: ve, className: is, role: "presentation", style: Ue }, Xe.map(qe));
45179
- return /* @__PURE__ */ V.createElement("div", { ref: se, className: He }, /* @__PURE__ */ V.createElement(TI, null), de({
45178
+ }) => /* @__PURE__ */ G.createElement("div", { ref: ve, className: is, role: "presentation", style: Ue }, Xe.map(qe));
45179
+ return /* @__PURE__ */ G.createElement("div", { ref: se, className: He }, /* @__PURE__ */ G.createElement(TI, null), de({
45180
45180
  section: ae,
45181
45181
  className: Ce,
45182
45182
  style: os,
45183
45183
  children: ["topLeft", "topCenter", "topRight", "topFullWidth"]
45184
- }), /* @__PURE__ */ V.createElement("div", { className: z, ref: q, role: "presentation" }, de({
45184
+ }), /* @__PURE__ */ G.createElement("div", { className: z, ref: q, role: "presentation" }, de({
45185
45185
  section: Y,
45186
45186
  className: xe,
45187
45187
  children: ["left", "center", "right", "fullWidth"]
@@ -45191,7 +45191,7 @@ var mI = 1e3, CI = class {
45191
45191
  style: ue,
45192
45192
  children: ["stickyTopLeft", "stickyTopCenter", "stickyTopRight", "stickyTopFullWidth"]
45193
45193
  }), de({
45194
- section: H,
45194
+ section: B,
45195
45195
  className: nt,
45196
45196
  style: ye,
45197
45197
  children: ["stickyBottomLeft", "stickyBottomCenter", "stickyBottomRight", "stickyBottomFullWidth"]
@@ -45202,7 +45202,7 @@ var mI = 1e3, CI = class {
45202
45202
  children: ["bottomLeft", "bottomCenter", "bottomRight", "bottomFullWidth"]
45203
45203
  }));
45204
45204
  }, UI = it(_I), $I = (e, t) => {
45205
- const { children: s, eFocusableElement: o, onTabKeyDown: i, gridCtrl: n, forceFocusOutWhenTabGuardsAreEmpty: r, isEmpty: a } = e, { context: l } = Be(Qe), c = I(null), d = I(null), u = I(), h = (C) => {
45205
+ const { children: s, eFocusableElement: o, onTabKeyDown: i, gridCtrl: n, forceFocusOutWhenTabGuardsAreEmpty: r, isEmpty: a } = e, { context: l } = Be(Qe), c = A(null), d = A(null), u = A(), h = (C) => {
45206
45206
  const w = C == null ? void 0 : parseInt(C, 10).toString();
45207
45207
  for (const b of [c, d])
45208
45208
  w === void 0 ? b.current?.removeAttribute("tabindex") : b.current?.setAttribute("tabindex", w);
@@ -45247,7 +45247,7 @@ var mI = 1e3, CI = class {
45247
45247
  [g]
45248
45248
  ), m = (C) => {
45249
45249
  const w = C === "top" ? yo.TAB_GUARD_TOP : yo.TAB_GUARD_BOTTOM;
45250
- return /* @__PURE__ */ V.createElement(
45250
+ return /* @__PURE__ */ G.createElement(
45251
45251
  "div",
45252
45252
  {
45253
45253
  className: `${yo.TAB_GUARD} ${w}`,
@@ -45256,17 +45256,17 @@ var mI = 1e3, CI = class {
45256
45256
  }
45257
45257
  );
45258
45258
  };
45259
- return /* @__PURE__ */ V.createElement(V.Fragment, null, m("top"), s, m("bottom"));
45259
+ return /* @__PURE__ */ G.createElement(G.Fragment, null, m("top"), s, m("bottom"));
45260
45260
  }, jI = Xa($I), KI = it(jI), qI = ({ context: e }) => {
45261
- const [t, s] = M(""), [o, i] = M(""), [n, r] = M(null), [a, l] = M(null), [c, d] = M(!1), [u, h] = M(), g = I(), p = I(null), f = I(), [m, C] = M(null), w = I(() => {
45262
- }), b = I(), y = I([]), S = _(() => {
45261
+ const [t, s] = I(""), [o, i] = I(""), [n, r] = I(null), [a, l] = I(null), [c, d] = I(!1), [u, h] = I(), g = A(), p = A(null), f = A(), [m, C] = I(null), w = A(() => {
45262
+ }), b = A(), y = A([]), S = _(() => {
45263
45263
  }, []);
45264
45264
  Ps(" AG Grid ", p);
45265
45265
  const R = _((T) => {
45266
45266
  if (p.current = T, g.current = T ? e.createBean(new _2()) : e.destroyBean(g.current), !T || e.isDestroyed())
45267
45267
  return;
45268
- const B = g.current;
45269
- w.current = B.focusInnerElement.bind(B);
45268
+ const V = g.current;
45269
+ w.current = V.focusInnerElement.bind(V);
45270
45270
  const J = {
45271
45271
  destroyGridUi: () => {
45272
45272
  },
@@ -45290,11 +45290,11 @@ var mI = 1e3, CI = class {
45290
45290
  setCursor: r,
45291
45291
  setUserSelect: l
45292
45292
  };
45293
- B.setComp(J, T, T), d(!0);
45293
+ V.setComp(J, T, T), d(!0);
45294
45294
  }, []);
45295
45295
  me(() => {
45296
- const T = g.current, B = p.current;
45297
- if (!u || !T || !m || !B || e.isDestroyed())
45296
+ const T = g.current, V = p.current;
45297
+ if (!u || !T || !m || !V || e.isDestroyed())
45298
45298
  return;
45299
45299
  const J = [], {
45300
45300
  watermarkSelector: N,
@@ -45305,21 +45305,21 @@ var mI = 1e3, CI = class {
45305
45305
  } = T.getOptionalSelectors(), $ = [];
45306
45306
  if (ae) {
45307
45307
  const q = e.createBean(new ae.component()), Y = q.getGui();
45308
- B.insertAdjacentElement("afterbegin", Y), $.push(Y), J.push(q);
45308
+ V.insertAdjacentElement("afterbegin", Y), $.push(Y), J.push(q);
45309
45309
  }
45310
45310
  if (oe) {
45311
45311
  const q = e.createBean(new oe.component()), Y = q.getGui(), ee = m.querySelector(".ag-tab-guard-bottom");
45312
45312
  ee && (ee.insertAdjacentElement("beforebegin", Y), $.push(Y)), J.push(q), y.current.push(q);
45313
45313
  }
45314
- const H = (q) => {
45314
+ const B = (q) => {
45315
45315
  const Y = e.createBean(new q()), ee = Y.getGui();
45316
- return B.insertAdjacentElement("beforeend", ee), $.push(ee), J.push(Y), Y;
45316
+ return V.insertAdjacentElement("beforeend", ee), $.push(ee), J.push(Y), Y;
45317
45317
  };
45318
- if (O && H(O.component), re) {
45319
- const q = H(re.component);
45318
+ if (O && B(O.component), re) {
45319
+ const q = B(re.component);
45320
45320
  b.current = q, y.current.push(q);
45321
45321
  }
45322
- return N && H(N.component), () => {
45322
+ return N && B(N.component), () => {
45323
45323
  e.destroyBeans(J);
45324
45324
  for (const q of $)
45325
45325
  q.remove();
@@ -45331,20 +45331,20 @@ var mI = 1e3, CI = class {
45331
45331
  ), P = W(
45332
45332
  () => mt("ag-root-wrapper-body", "ag-focus-managed", o),
45333
45333
  [o]
45334
- ), A = W(
45334
+ ), k = W(
45335
45335
  () => ({
45336
45336
  userSelect: a ?? "",
45337
45337
  WebkitUserSelect: a ?? "",
45338
45338
  cursor: n ?? ""
45339
45339
  }),
45340
45340
  [a, n]
45341
- ), k = _((T) => {
45341
+ ), M = _((T) => {
45342
45342
  f.current = T, h(T !== null);
45343
45343
  }, []), F = _(() => !g.current?.isFocusable(), []);
45344
- return /* @__PURE__ */ V.createElement("div", { ref: R, className: x, style: A, role: "presentation" }, /* @__PURE__ */ V.createElement("div", { className: P, ref: C, role: "presentation" }, c && m && !e.isDestroyed() && /* @__PURE__ */ V.createElement(Qe.Provider, { value: e.getBeans() }, /* @__PURE__ */ V.createElement(
45344
+ return /* @__PURE__ */ G.createElement("div", { ref: R, className: x, style: k, role: "presentation" }, /* @__PURE__ */ G.createElement("div", { className: P, ref: C, role: "presentation" }, c && m && !e.isDestroyed() && /* @__PURE__ */ G.createElement(Qe.Provider, { value: e.getBeans() }, /* @__PURE__ */ G.createElement(
45345
45345
  KI,
45346
45346
  {
45347
- ref: k,
45347
+ ref: M,
45348
45348
  eFocusableElement: m,
45349
45349
  onTabKeyDown: S,
45350
45350
  gridCtrl: g.current,
@@ -45356,7 +45356,7 @@ var mI = 1e3, CI = class {
45356
45356
  // before we have set the the Layout CSS classes, causing the GridBodyComp to render rows to a grid that
45357
45357
  // doesn't have it's height specified, which would result if all the rows getting rendered (and if many rows,
45358
45358
  // hangs the UI)
45359
- /* @__PURE__ */ V.createElement(UI, null)
45359
+ /* @__PURE__ */ G.createElement(UI, null)
45360
45360
  ))));
45361
45361
  }, YI = it(qI), ZI = class extends D {
45362
45362
  postConstruct() {
@@ -45397,7 +45397,7 @@ var mI = 1e3, CI = class {
45397
45397
  componentWrappingElement: void 0,
45398
45398
  ...Ef
45399
45399
  }, Pf = new Set(Object.keys(QI)), XI = new Set(Object.keys(Ef)), Df = (e) => {
45400
- const t = I(), s = I(null), o = I(null), i = I([]), n = I([]), r = I(e), a = I(), l = I(), c = I(!1), [d, u] = M(void 0), [, h] = M(0), g = _((C) => {
45400
+ const t = A(), s = A(null), o = A(null), i = A([]), n = A([]), r = A(e), a = A(), l = A(), c = A(!1), [d, u] = I(void 0), [, h] = I(0), g = _((C) => {
45401
45401
  if (s.current = C, !C) {
45402
45402
  for (const F of i.current)
45403
45403
  F();
@@ -45449,7 +45449,7 @@ var mI = 1e3, CI = class {
45449
45449
  T && e.passGridApi?.(T);
45450
45450
  }
45451
45451
  );
45452
- }, A = (F) => {
45452
+ }, k = (F) => {
45453
45453
  F.getBean("ctrlsSvc").whenReady(
45454
45454
  {
45455
45455
  addDestroyFunc: (T) => {
@@ -45462,12 +45462,12 @@ var mI = 1e3, CI = class {
45462
45462
  n.current.length = 0, c.current = !0;
45463
45463
  }
45464
45464
  );
45465
- }, k = new mD();
45466
- b.gridId ?? (b.gridId = l.current), t.current = k.create(
45465
+ }, M = new mD();
45466
+ b.gridId ?? (b.gridId = l.current), t.current = M.create(
45467
45467
  C,
45468
45468
  b,
45469
45469
  P,
45470
- A,
45470
+ k,
45471
45471
  x
45472
45472
  ), i.current.push(() => {
45473
45473
  t.current = void 0;
@@ -45484,8 +45484,8 @@ var mI = 1e3, CI = class {
45484
45484
  t.current && S0(C, t.current);
45485
45485
  });
45486
45486
  }, [e]);
45487
- const m = !V.useSyncExternalStore || Zi(e, "renderingMode") === "legacy" ? "legacy" : "default";
45488
- return /* @__PURE__ */ V.createElement("div", { style: p, className: e.className, ref: g }, /* @__PURE__ */ V.createElement(wf.Provider, { value: m }, d && !d.isDestroyed() ? /* @__PURE__ */ V.createElement(YI, { key: d.instanceId, context: d }) : null, o.current?.getPortals() ?? null));
45487
+ const m = !G.useSyncExternalStore || Zi(e, "renderingMode") === "legacy" ? "legacy" : "default";
45488
+ return /* @__PURE__ */ G.createElement("div", { style: p, className: e.className, ref: g }, /* @__PURE__ */ G.createElement(wf.Provider, { value: m }, d && !d.isDestroyed() ? /* @__PURE__ */ G.createElement(YI, { key: d.instanceId, context: d }) : null, o.current?.getPortals() ?? null));
45489
45489
  };
45490
45490
  function JI(e, t) {
45491
45491
  const s = {};
@@ -45553,7 +45553,7 @@ var eA = class extends SD {
45553
45553
  return new Rf(e, this.parent, t, i);
45554
45554
  }
45555
45555
  }, tA = Xa((e, t) => {
45556
- const s = Be(Qe), { registry: o, context: i, gos: n, rowModel: r } = s, [a, l] = M(() => new St()), [c, d] = M(() => new St()), [u, h] = M(), [g, p] = M(), f = I(), m = I(null), C = I(), w = W(
45556
+ const s = Be(Qe), { registry: o, context: i, gos: n, rowModel: r } = s, [a, l] = I(() => new St()), [c, d] = I(() => new St()), [u, h] = I(), [g, p] = I(), f = A(), m = A(null), C = A(), w = W(
45557
45557
  () => Qb(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
45558
45558
  [e]
45559
45559
  ), b = W(() => a.toString() + " ag-details-row", [a]), y = W(() => c.toString() + " ag-details-grid", [c]);
@@ -45568,14 +45568,14 @@ var eA = class extends SD {
45568
45568
  return;
45569
45569
  }
45570
45570
  const P = {
45571
- toggleCss: (k, F) => l((T) => T.setClass(k, F)),
45572
- toggleDetailGridCss: (k, F) => d((T) => T.setClass(k, F)),
45573
- setDetailGrid: (k) => h(k),
45574
- setRowData: (k) => p(k),
45571
+ toggleCss: (M, F) => l((T) => T.setClass(M, F)),
45572
+ toggleDetailGridCss: (M, F) => d((T) => T.setClass(M, F)),
45573
+ setDetailGrid: (M) => h(M),
45574
+ setRowData: (M) => p(M),
45575
45575
  getGui: () => m.current
45576
- }, A = o.createDynamicBean("detailCellRendererCtrl", !0);
45577
- if (A && (i.createBean(A), A.init(P, e), f.current = A, n.get("detailRowAutoHeight"))) {
45578
- const k = () => {
45576
+ }, k = o.createDynamicBean("detailCellRendererCtrl", !0);
45577
+ if (k && (i.createBean(k), k.init(P, e), f.current = k, n.get("detailRowAutoHeight"))) {
45578
+ const M = () => {
45579
45579
  if (m.current == null)
45580
45580
  return;
45581
45581
  const F = m.current.clientHeight;
@@ -45583,12 +45583,12 @@ var eA = class extends SD {
45583
45583
  e.node.setRowHeight(F), (Oe(n) || Ys(n)) && r.onRowHeightChanged();
45584
45584
  }, 0);
45585
45585
  };
45586
- C.current = es(s, x, k), k();
45586
+ C.current = es(s, x, M), M();
45587
45587
  }
45588
45588
  }, []), R = _((x) => {
45589
45589
  f.current?.registerDetailWithMaster(x);
45590
45590
  }, []);
45591
- return /* @__PURE__ */ V.createElement("div", { className: b, ref: S }, u && /* @__PURE__ */ V.createElement(
45591
+ return /* @__PURE__ */ G.createElement("div", { className: b, ref: S }, u && /* @__PURE__ */ G.createElement(
45592
45592
  Df,
45593
45593
  {
45594
45594
  className: y,
@@ -45642,7 +45642,7 @@ var eA = class extends SD {
45642
45642
  this.apiListeners.length = 0;
45643
45643
  }
45644
45644
  render() {
45645
- return /* @__PURE__ */ V.createElement(Df, { ...this.props, passGridApi: this.setGridApi });
45645
+ return /* @__PURE__ */ G.createElement(Df, { ...this.props, passGridApi: this.setGridApi });
45646
45646
  }
45647
45647
  };
45648
45648
  const iA = "h-full", jr = {
@@ -45677,7 +45677,7 @@ const iA = "h-full", jr = {
45677
45677
  rowData: s,
45678
45678
  getRowId: o
45679
45679
  }) => {
45680
- const [i, n] = M(
45680
+ const [i, n] = I(
45681
45681
  /* @__PURE__ */ new Set()
45682
45682
  ), r = e ?? i, a = _(
45683
45683
  (g) => {
@@ -45733,7 +45733,7 @@ const aA = ({
45733
45733
  emptyStateTitle: p = "No results found",
45734
45734
  emptyStateDescription: f = "Sorry, we couldn't find any results for your search."
45735
45735
  }) => {
45736
- const [m, C] = M(Kr), [w, b] = M(), y = Qa(), {
45736
+ const [m, C] = I(Kr), [w, b] = I(), y = Qa(), {
45737
45737
  currentSelectedIds: S,
45738
45738
  handleSelectionToggle: R,
45739
45739
  headerCheckboxState: x,
@@ -45743,18 +45743,18 @@ const aA = ({
45743
45743
  onSelectionChange: c,
45744
45744
  rowData: t,
45745
45745
  getRowId: d
45746
- }), A = W(
45746
+ }), k = W(
45747
45747
  () => ({
45748
45748
  ...jr,
45749
45749
  oddRowBackgroundColor: u ? jr.oddRowBackgroundColor : jr.backgroundColor
45750
45750
  }),
45751
45751
  [u]
45752
- ), k = _((H) => {
45753
- H.api.sizeColumnsToFit(), C(Kr);
45752
+ ), M = _((B) => {
45753
+ B.api.sizeColumnsToFit(), C(Kr);
45754
45754
  }, []), F = _(
45755
- (H) => {
45756
- if (H.data) {
45757
- const q = d(H.data);
45755
+ (B) => {
45756
+ if (B.data) {
45757
+ const q = d(B.data);
45758
45758
  return S.has(q) ? "ag-row-selected" : "";
45759
45759
  }
45760
45760
  },
@@ -45769,10 +45769,10 @@ const aA = ({
45769
45769
  cssClass: `dial-header-select ${x}`,
45770
45770
  onChange: P
45771
45771
  }
45772
- ) }), [x, P]), B = _(
45773
- (H) => {
45774
- if (H.data) {
45775
- const q = o?.(H.data) ?? [], Y = H.value == null ? "" : String(H.value);
45772
+ ) }), [x, P]), V = _(
45773
+ (B) => {
45774
+ if (B.data) {
45775
+ const q = o?.(B.data) ?? [], Y = B.value == null ? "" : String(B.value);
45776
45776
  return /* @__PURE__ */ v(
45777
45777
  Gt,
45778
45778
  {
@@ -45794,9 +45794,9 @@ const aA = ({
45794
45794
  },
45795
45795
  [o]
45796
45796
  ), J = _(
45797
- (H) => {
45798
- if (!H.data) return null;
45799
- const q = d(H.data), Y = S.has(q), ee = `row-select-${q}`;
45797
+ (B) => {
45798
+ if (!B.data) return null;
45799
+ const q = d(B.data), Y = S.has(q), ee = `row-select-${q}`;
45800
45800
  return /* @__PURE__ */ v("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ v(
45801
45801
  cn,
45802
45802
  {
@@ -45813,21 +45813,21 @@ const aA = ({
45813
45813
  },
45814
45814
  [S, d, R]
45815
45815
  ), N = _(
45816
- (H) => {
45817
- const q = typeof a == "function" ? a(H) : !!a;
45818
- if (!H.cellRenderer)
45819
- return { ...H, cellRenderer: B };
45816
+ (B) => {
45817
+ const q = typeof a == "function" ? a(B) : !!a;
45818
+ if (!B.cellRenderer)
45819
+ return { ...B, cellRenderer: V };
45820
45820
  if (!q)
45821
- return H;
45822
- const Y = H.cellRenderer;
45823
- return { ...H, cellRenderer: (ge) => {
45824
- const G = ge.data ? o?.(ge.data) ?? [] : [];
45821
+ return B;
45822
+ const Y = B.cellRenderer;
45823
+ return { ...B, cellRenderer: (ge) => {
45824
+ const H = ge.data ? o?.(ge.data) ?? [] : [];
45825
45825
  let se = null;
45826
- return typeof Y == "function" ? se = /* @__PURE__ */ v(Y, { ...ge }) : se = B(ge), /* @__PURE__ */ v(
45826
+ return typeof Y == "function" ? se = /* @__PURE__ */ v(Y, { ...ge }) : se = V(ge), /* @__PURE__ */ v(
45827
45827
  Gt,
45828
45828
  {
45829
45829
  trigger: [kt.ContextMenu],
45830
- menu: { items: G },
45830
+ menu: { items: H },
45831
45831
  anchorToMouse: !0,
45832
45832
  matchReferenceWidth: !0,
45833
45833
  cssClass: "w-full h-full",
@@ -45836,7 +45836,7 @@ const aA = ({
45836
45836
  );
45837
45837
  } };
45838
45838
  },
45839
- [o, B, a]
45839
+ [o, V, a]
45840
45840
  ), re = W(
45841
45841
  () => ({
45842
45842
  colId: "__select",
@@ -45856,8 +45856,8 @@ const aA = ({
45856
45856
  }),
45857
45857
  [J, T]
45858
45858
  ), oe = W(() => {
45859
- const H = (e ?? []).map(N);
45860
- return r ? [re, ...H] : H;
45859
+ const B = (e ?? []).map(N);
45860
+ return r ? [re, ...B] : B;
45861
45861
  }, [e, re, r, N]), O = W(
45862
45862
  () => ({
45863
45863
  minWidth: 150,
@@ -45872,12 +45872,12 @@ const aA = ({
45872
45872
  comparator: nA.bind(void 0)
45873
45873
  }),
45874
45874
  [h]
45875
- ), ae = (H) => {
45875
+ ), ae = (B) => {
45876
45876
  const q = oe.map((Y) => ({
45877
45877
  ...Y,
45878
45878
  sort: void 0
45879
45879
  }));
45880
- H.api.updateGridOptions({ columnDefs: q, rowData: t }), H.api.sizeColumnsToFit(), b(H.api), s?.onGridReady?.(H);
45880
+ B.api.updateGridOptions({ columnDefs: q, rowData: t }), B.api.sizeColumnsToFit(), b(B.api), s?.onGridReady?.(B);
45881
45881
  };
45882
45882
  me(() => {
45883
45883
  w && w.redrawRows();
@@ -45926,11 +45926,11 @@ const aA = ({
45926
45926
  rowHeight: m,
45927
45927
  cellSelection: !1,
45928
45928
  getRowClass: F,
45929
- theme: KE.withPart(EE).withParams({ ...A }),
45929
+ theme: KE.withPart(EE).withParams({ ...k }),
45930
45930
  autoSizeStrategy: { type: "fitGridWidth" },
45931
45931
  columnDefs: oe,
45932
45932
  defaultColDef: O,
45933
- onGridSizeChanged: k,
45933
+ onGridSizeChanged: M,
45934
45934
  onGridReady: ae,
45935
45935
  suppressCellFocus: !0,
45936
45936
  noRowsOverlayComponent: $,
@@ -45943,7 +45943,7 @@ const aA = ({
45943
45943
  }
45944
45944
  );
45945
45945
  }, lA = /* @__PURE__ */ v(tl, { size: 16 }), cA = /* @__PURE__ */ v(km, { size: 16 }), lu = (e) => {
45946
- const [t, s] = M(!1), o = W(() => t ? cA : lA, [t]);
45946
+ const [t, s] = I(!1), o = W(() => t ? cA : lA, [t]);
45947
45947
  return /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(
45948
45948
  Gt,
45949
45949
  {
@@ -45957,7 +45957,7 @@ const aA = ({
45957
45957
  };
45958
45958
  var za = /* @__PURE__ */ ((e) => (e.MyFiles = "my_files", e.Shared = "shared", e.Organization = "organization", e))(za || {}), Es = /* @__PURE__ */ ((e) => (e.Copy = "copy", e.Cut = "cut", e.Paste = "paste", e.Rename = "rename", e))(Es || {});
45959
45959
  const Tf = () => {
45960
- const [e, t] = M(Tc());
45960
+ const [e, t] = I(Tc());
45961
45961
  return me(() => {
45962
45962
  const s = () => t(Tc());
45963
45963
  return window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
@@ -46091,7 +46091,7 @@ function gA({
46091
46091
  containerPadding: i = 8,
46092
46092
  dependencies: n = []
46093
46093
  }) {
46094
- const r = I(null), a = I(null), l = I(null), c = I(null), d = I([]), [u, h] = M(e.length);
46094
+ const r = A(null), a = A(null), l = A(null), c = A(null), d = A([]), [u, h] = I(e.length);
46095
46095
  Rt(() => {
46096
46096
  if (!a.current) return;
46097
46097
  const f = Array.from(a.current.children);
@@ -46104,16 +46104,16 @@ function gA({
46104
46104
  const m = () => {
46105
46105
  f && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
46106
46106
  const w = r.current, b = l.current?.offsetWidth ?? 0, y = c.current?.offsetWidth ?? 0, S = b + y, x = w.getBoundingClientRect().width - S - s - o * 2 - i * 2, P = d.current;
46107
- let A = 0, k = 0;
46107
+ let k = 0, M = 0;
46108
46108
  if (t === po.Reverse)
46109
- for (let F = P.length - 1; F >= 0 && (A += P[F] + o, !(A > x)); F--)
46110
- k++;
46109
+ for (let F = P.length - 1; F >= 0 && (k += P[F] + o, !(k > x)); F--)
46110
+ M++;
46111
46111
  else
46112
46112
  for (const F of P) {
46113
- if (A += F + o, A > x) break;
46114
- k++;
46113
+ if (k += F + o, k > x) break;
46114
+ M++;
46115
46115
  }
46116
- h(k);
46116
+ h(M);
46117
46117
  });
46118
46118
  }, C = new ResizeObserver(m);
46119
46119
  return C.observe(r.current), m(), () => {
@@ -46220,7 +46220,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46220
46220
  )
46221
46221
  ] });
46222
46222
  }, fA = (e = !1) => {
46223
- const [t, s] = M(e);
46223
+ const [t, s] = I(e);
46224
46224
  return {
46225
46225
  areHiddenFilesVisible: t,
46226
46226
  toggleHiddenFilesVisibility: () => {
@@ -46229,7 +46229,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46229
46229
  setAreHiddenFilesVisible: s
46230
46230
  };
46231
46231
  }, mA = (e) => {
46232
- const [t, s] = M(e);
46232
+ const [t, s] = I(e);
46233
46233
  return {
46234
46234
  isTreeCollapsed: t,
46235
46235
  toggleTreeCollapse: () => {
@@ -46261,7 +46261,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46261
46261
  onCopyFiles: s,
46262
46262
  onMoveToFiles: o
46263
46263
  }) => {
46264
- const [i, n] = M(/* @__PURE__ */ new Set()), [r, a] = M(/* @__PURE__ */ new Set()), l = _((g) => {
46264
+ const [i, n] = I(/* @__PURE__ */ new Set()), [r, a] = I(/* @__PURE__ */ new Set()), l = _((g) => {
46265
46265
  n(new Set(g)), a(/* @__PURE__ */ new Set());
46266
46266
  }, []), c = _((g) => {
46267
46267
  a(new Set(g)), n(/* @__PURE__ */ new Set());
@@ -46300,11 +46300,31 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46300
46300
  }),
46301
46301
  [i, r]
46302
46302
  ), copy: l, cut: c, paste: u, clear: d };
46303
- }, Mf = Vn(void 0), bA = (e) => {
46303
+ }, bA = ({
46304
+ path: e,
46305
+ onPathChange: t,
46306
+ onSelectionClear: s
46307
+ }) => {
46308
+ const [o, i] = I(e);
46309
+ me(() => {
46310
+ i(e), s?.();
46311
+ }, [e, s]);
46312
+ const n = _(
46313
+ (r) => {
46314
+ i(r), t?.(r), s?.();
46315
+ },
46316
+ [t, s]
46317
+ );
46318
+ return {
46319
+ currentPath: o,
46320
+ setCurrentPath: i,
46321
+ handlePathChange: n
46322
+ };
46323
+ }, Mf = Vn(void 0), SA = (e) => {
46304
46324
  if (!e || e <= 0) return "-";
46305
46325
  const t = 1024, s = t * 1024;
46306
46326
  return e >= s ? `${(e / s).toFixed(1)} MB` : e >= t ? `${(e / t).toFixed(0)} KB` : `${e} B`;
46307
- }, SA = ({
46327
+ }, yA = ({
46308
46328
  children: e,
46309
46329
  cssClass: t,
46310
46330
  items: s = [],
@@ -46319,80 +46339,75 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46319
46339
  onCopyFiles: u,
46320
46340
  onMoveToFiles: h
46321
46341
  }) => {
46322
- const [g, p] = M(o);
46323
- me(() => {
46324
- p(o);
46325
- }, [o]);
46326
- const { areHiddenFilesVisible: f, toggleHiddenFilesVisibility: m } = fA(), { isTreeCollapsed: C, toggleTreeCollapse: w } = mA(
46342
+ const [g, p] = I(/* @__PURE__ */ new Set()), f = _(() => p(/* @__PURE__ */ new Set()), []), { currentPath: m, setCurrentPath: C, handlePathChange: w } = bA({
46343
+ path: o,
46344
+ onPathChange: c,
46345
+ onSelectionClear: f
46346
+ }), { areHiddenFilesVisible: b, toggleHiddenFilesVisibility: y } = fA(), { isTreeCollapsed: S, toggleTreeCollapse: R } = mA(
46327
46347
  i?.collapsed ?? !1
46328
- ), [b, y] = M(/* @__PURE__ */ new Set()), S = _(() => y(/* @__PURE__ */ new Set()), []), [R, x] = M("");
46348
+ ), [x, P] = I("");
46329
46349
  me(() => {
46330
- const H = n?.value;
46331
- H != null && x(String(H));
46350
+ const B = n?.value;
46351
+ B != null && P(String(B));
46332
46352
  }, [n?.value]);
46333
- const P = String(
46334
- n?.value ?? R ?? ""
46335
- ).trim(), A = W(
46336
- () => eb(s, g) ?? s[0],
46337
- [s, g]
46353
+ const k = String(
46354
+ n?.value ?? x ?? ""
46355
+ ).trim(), M = W(
46356
+ () => eb(s, m) ?? s[0],
46357
+ [s, m]
46338
46358
  ), {
46339
- state: k,
46340
- copy: F,
46341
- cut: T,
46342
- paste: B
46359
+ state: F,
46360
+ copy: T,
46361
+ cut: V,
46362
+ paste: J
46343
46363
  } = wA({
46344
- getDestination: () => A?.path ?? "/",
46345
- getDestinationFiles: () => A?.items ?? [],
46364
+ getDestination: () => M?.path ?? "/",
46365
+ getDestinationFiles: () => M?.items ?? [],
46346
46366
  onCopyFiles: u,
46347
46367
  onMoveToFiles: h
46348
- }), J = W(() => {
46349
- const H = $i(P).trim(), q = A?.items ?? [];
46350
- let Y = H ? sb(A) : q;
46351
- f || (Y = Y.filter((G) => !uh(G)));
46352
- const ee = Y.map((G) => ({
46353
- id: G.id ?? G.path,
46354
- name: G.name ?? G.path.split("/").pop() ?? "",
46355
- updatedAt: G.updatedAt,
46356
- size: G.nodeType === gs.ITEM ? bA(G.contentLength) : "-",
46357
- author: G.author,
46358
- path: G.path,
46359
- nodeType: G.nodeType,
46360
- extension: G.extension
46368
+ }), N = W(() => {
46369
+ const B = $i(k).trim(), q = M?.items ?? [];
46370
+ let Y = B ? sb(M) : q;
46371
+ b || (Y = Y.filter((H) => !uh(H)));
46372
+ const ee = Y.map((H) => ({
46373
+ id: H.id ?? H.path,
46374
+ name: H.name ?? H.path.split("/").pop() ?? "",
46375
+ updatedAt: H.updatedAt,
46376
+ size: H.nodeType === gs.ITEM ? SA(H.contentLength) : "-",
46377
+ author: H.author,
46378
+ path: H.path,
46379
+ nodeType: H.nodeType,
46380
+ extension: H.extension
46361
46381
  }));
46362
- if (!H) return ee;
46363
- const ge = H.split(/\s+/).filter(Boolean);
46364
- return ee.filter((G) => {
46365
- const se = $i(G.name), He = $i(G.author), xe = tb(G.extension);
46382
+ if (!B) return ee;
46383
+ const ge = B.split(/\s+/).filter(Boolean);
46384
+ return ee.filter((H) => {
46385
+ const se = $i(H.name), He = $i(H.author), xe = tb(H.extension);
46366
46386
  return ge.every(
46367
46387
  (z) => se.includes(z) || He.includes(z) || xe.includes(z)
46368
46388
  );
46369
46389
  });
46370
- }, [A, P, f]), N = _(
46371
- (H) => {
46372
- p(H), c?.(H), S();
46390
+ }, [M, k, b]), re = _(
46391
+ (B) => {
46392
+ w(B.path);
46373
46393
  },
46374
- [c, S]
46375
- ), re = _(
46376
- (H) => {
46377
- N(H.path);
46378
- },
46379
- [N]
46394
+ [w]
46380
46395
  ), oe = _(
46381
- (H) => {
46382
- N(H);
46396
+ (B) => {
46397
+ w(B);
46383
46398
  },
46384
- [N]
46399
+ [w]
46385
46400
  ), O = _(
46386
- (H) => {
46387
- const q = String(H ?? "");
46388
- x(q), n?.onSearchChange?.(q);
46401
+ (B) => {
46402
+ const q = String(B ?? "");
46403
+ P(q), n?.onSearchChange?.(q);
46389
46404
  },
46390
46405
  [n]
46391
46406
  ), ae = _(
46392
- (H) => {
46393
- H.nodeType === gs.FOLDER ? N(H.path) : d?.(H);
46407
+ (B) => {
46408
+ B.nodeType === gs.FOLDER ? w(B.path) : d?.(B);
46394
46409
  },
46395
- [N, d]
46410
+ [w, d]
46396
46411
  ), $ = {
46397
46412
  cssClass: t,
46398
46413
  items: s,
@@ -46401,25 +46416,25 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46401
46416
  gridOptions: r,
46402
46417
  toolbarOptions: a,
46403
46418
  bulkActionsToolbarOptions: l,
46404
- currentPath: g,
46405
- setCurrentPath: p,
46406
- searchValue: R,
46407
- effectiveSearchValue: P,
46408
- setSearchValue: x,
46409
- areHiddenFilesVisible: f,
46410
- toggleHiddenFilesVisibility: m,
46411
- isTreeCollapsed: C,
46412
- toggleTreeCollapse: w,
46413
- selectedIds: b,
46414
- setSelectedIds: y,
46415
- clearSelection: S,
46416
- currentFolder: A,
46417
- gridRows: J,
46418
- clipboard: k,
46419
- onCopy: F,
46420
- onCut: T,
46421
- onPaste: B,
46422
- handlePathChange: N,
46419
+ currentPath: m,
46420
+ setCurrentPath: C,
46421
+ searchValue: x,
46422
+ effectiveSearchValue: k,
46423
+ setSearchValue: P,
46424
+ areHiddenFilesVisible: b,
46425
+ toggleHiddenFilesVisibility: y,
46426
+ isTreeCollapsed: S,
46427
+ toggleTreeCollapse: R,
46428
+ selectedIds: g,
46429
+ setSelectedIds: p,
46430
+ clearSelection: f,
46431
+ currentFolder: M,
46432
+ gridRows: N,
46433
+ clipboard: F,
46434
+ onCopy: T,
46435
+ onCut: V,
46436
+ onPaste: J,
46437
+ handlePathChange: w,
46423
46438
  handleTreeItemClick: re,
46424
46439
  handleBreadcrumbItemClick: oe,
46425
46440
  handleSearchChange: O,
@@ -46427,14 +46442,14 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46427
46442
  onTableFileClick: d
46428
46443
  };
46429
46444
  return /* @__PURE__ */ v(Mf.Provider, { value: $, children: e });
46430
- }, yA = () => {
46445
+ }, RA = () => {
46431
46446
  const e = Be(Mf);
46432
46447
  if (!e)
46433
46448
  throw new Error(
46434
46449
  "useFileManagerContext must be used within <FileManagerProvider>"
46435
46450
  );
46436
46451
  return e;
46437
- }, pk = (e) => /* @__PURE__ */ v(SA, { ...e, children: /* @__PURE__ */ v(RA, {}) }), RA = () => {
46452
+ }, fk = (e) => /* @__PURE__ */ v(yA, { ...e, children: /* @__PURE__ */ v(xA, {}) }), xA = () => {
46438
46453
  const {
46439
46454
  cssClass: e,
46440
46455
  items: t,
@@ -46461,12 +46476,12 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46461
46476
  onCut: R,
46462
46477
  onPaste: x,
46463
46478
  clipboard: P
46464
- } = yA(), {
46465
- width: A = q1,
46466
- title: k = Y1,
46479
+ } = RA(), {
46480
+ width: k = q1,
46481
+ title: M = Y1,
46467
46482
  containerCssClass: F = j1,
46468
46483
  additionalButtons: T,
46469
- ...B
46484
+ ...V
46470
46485
  } = s ?? {}, {
46471
46486
  columnDefs: J,
46472
46487
  filterable: N = !0,
@@ -46499,7 +46514,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46499
46514
  width: 120,
46500
46515
  suppressSizeToFit: !0
46501
46516
  }
46502
- ], [re, oe]), $ = J ?? ae, H = W(() => N ? $ : $.map((ee) => ({
46517
+ ], [re, oe]), $ = J ?? ae, B = W(() => N ? $ : $.map((ee) => ({
46503
46518
  ...ee,
46504
46519
  filter: !1,
46505
46520
  floatingFilter: !1
@@ -46584,8 +46599,8 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46584
46599
  children: /* @__PURE__ */ v(
46585
46600
  BC,
46586
46601
  {
46587
- width: A,
46588
- title: k,
46602
+ width: k,
46603
+ title: M,
46589
46604
  containerCssClass: F,
46590
46605
  additionalButtons: T,
46591
46606
  isOpened: c,
@@ -46593,7 +46608,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46593
46608
  children: /* @__PURE__ */ v(
46594
46609
  ob,
46595
46610
  {
46596
- ...B,
46611
+ ...V,
46597
46612
  items: t,
46598
46613
  selectedPath: u,
46599
46614
  onItemClick: b,
@@ -46626,7 +46641,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46626
46641
  children: /* @__PURE__ */ v(
46627
46642
  aA,
46628
46643
  {
46629
- columnDefs: H,
46644
+ columnDefs: B,
46630
46645
  rowData: h,
46631
46646
  getRowId: (ee) => ee.path,
46632
46647
  ...O,
@@ -46647,7 +46662,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46647
46662
  ]
46648
46663
  }
46649
46664
  );
46650
- }, xA = ({ onClick: e }) => /* @__PURE__ */ v(
46665
+ }, FA = ({ onClick: e }) => /* @__PURE__ */ v(
46651
46666
  Eu,
46652
46667
  {
46653
46668
  ...we,
@@ -46656,7 +46671,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46656
46671
  role: "button",
46657
46672
  "aria-label": "hide"
46658
46673
  }
46659
- ), FA = ({ onClick: e }) => /* @__PURE__ */ v(
46674
+ ), EA = ({ onClick: e }) => /* @__PURE__ */ v(
46660
46675
  Pu,
46661
46676
  {
46662
46677
  ...we,
@@ -46665,8 +46680,8 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46665
46680
  role: "button",
46666
46681
  "aria-label": "show"
46667
46682
  }
46668
- ), EA = ({ ...e }) => {
46669
- const [t, s] = M(!1), o = _((i) => {
46683
+ ), PA = ({ ...e }) => {
46684
+ const [t, s] = I(!1), o = _((i) => {
46670
46685
  s(i);
46671
46686
  }, []);
46672
46687
  return /* @__PURE__ */ v(
@@ -46675,10 +46690,10 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46675
46690
  type: t ? "text" : "password",
46676
46691
  ...e,
46677
46692
  hideTooltip: !t,
46678
- iconAfter: t ? /* @__PURE__ */ v(xA, { onClick: () => o(!1) }) : /* @__PURE__ */ v(FA, { onClick: () => o(!0) })
46693
+ iconAfter: t ? /* @__PURE__ */ v(FA, { onClick: () => o(!1) }) : /* @__PURE__ */ v(EA, { onClick: () => o(!0) })
46679
46694
  }
46680
46695
  );
46681
- }, fk = ({
46696
+ }, mk = ({
46682
46697
  fieldTitle: e,
46683
46698
  optional: t,
46684
46699
  elementCssClass: s,
@@ -46695,7 +46710,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46695
46710
  }
46696
46711
  ),
46697
46712
  /* @__PURE__ */ v(
46698
- EA,
46713
+ PA,
46699
46714
  {
46700
46715
  cssClass: s,
46701
46716
  elementId: o,
@@ -46704,7 +46719,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46704
46719
  }
46705
46720
  ),
46706
46721
  /* @__PURE__ */ v(Gs, { errorText: i })
46707
- ] }), mk = ({
46722
+ ] }), Ck = ({
46708
46723
  placeholder: e = "",
46709
46724
  selectedItems: t = [],
46710
46725
  updateSelected: s,
@@ -46713,7 +46728,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46713
46728
  containerCssClass: n,
46714
46729
  inputCssClass: r
46715
46730
  }) => {
46716
- const [a, l] = M(""), c = _(
46731
+ const [a, l] = I(""), c = _(
46717
46732
  (u) => {
46718
46733
  u.key === "Enter" && (s([...t, u.currentTarget.value]), l("")), (u.key === "Backspace" || u.key === "Delete") && t.length && !a && s(t.slice(0, -1));
46719
46734
  },
@@ -46754,7 +46769,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46754
46769
  ]
46755
46770
  }
46756
46771
  );
46757
- }, Ck = ({
46772
+ }, vk = ({
46758
46773
  initialTags: e = [],
46759
46774
  fieldTitle: t,
46760
46775
  optional: s,
@@ -46765,7 +46780,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46765
46780
  disabled: a,
46766
46781
  onChange: l
46767
46782
  }) => {
46768
- const c = I(null), [d, u] = M(e), [h, g] = M(""), [p, f] = M(!1), m = (b) => {
46783
+ const c = A(null), [d, u] = I(e), [h, g] = I(""), [p, f] = I(!1), m = (b) => {
46769
46784
  const y = b.trim().replace(/,$/, "");
46770
46785
  if (y && !d.includes(y)) {
46771
46786
  const S = [y, ...d];
@@ -46840,7 +46855,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46840
46855
  ),
46841
46856
  /* @__PURE__ */ v(Gs, { errorText: n })
46842
46857
  ] });
46843
- }, PA = "dial-input flex w-full items-center justify-between gap-2 dial-small", DA = "w-full rounded", qr = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none", TA = "bg-accent-primary-alpha", MA = "bg-accent-primary-alpha border-l border-accent-primary border-1", du = "opacity-75", IA = /* @__PURE__ */ v(tl, { size: 16 }), If = ({
46858
+ }, DA = "dial-input flex w-full items-center justify-between gap-2 dial-small", TA = "w-full rounded", qr = "flex w-full items-center justify-between gap-2 px-3 h-[34px] dial-small text-primary truncate hover:bg-accent-primary-alpha focus:bg-accent-primary-alpha focus:outline-none", MA = "bg-accent-primary-alpha", IA = "bg-accent-primary-alpha border-l border-accent-primary border-1", du = "opacity-75", AA = /* @__PURE__ */ v(tl, { size: 16 }), If = ({
46844
46859
  options: e,
46845
46860
  selectedValues: t,
46846
46861
  handleRemoveTag: s
@@ -46858,7 +46873,7 @@ const pA = ({ selectionLabel: e, onClearSelection: t, actions: s }) => {
46858
46873
  );
46859
46874
  }) });
46860
46875
  var Wa = /* @__PURE__ */ ((e) => (e.Sm = "sm", e.Md = "md", e))(Wa || {}), _a = /* @__PURE__ */ ((e) => (e.Primary = "Primary", e.Secondary = "Secondary", e))(_a || {});
46861
- const AA = ({
46876
+ const kA = ({
46862
46877
  options: e,
46863
46878
  multiple: t = !1,
46864
46879
  value: s,
@@ -46882,16 +46897,16 @@ const AA = ({
46882
46897
  onClose: y,
46883
46898
  onChange: S
46884
46899
  }) => {
46885
- const [R, x] = M(!1), [P, A] = M(""), k = Qa(), F = s !== void 0, [T, B] = M(o), J = F ? s : T, N = W(() => t ? Array.isArray(J) ? J : [] : typeof J == "string" ? [J] : [], [J, t]), re = W(() => {
46900
+ const [R, x] = I(!1), [P, k] = I(""), M = Qa(), F = s !== void 0, [T, V] = I(o), J = F ? s : T, N = W(() => t ? Array.isArray(J) ? J : [] : typeof J == "string" ? [J] : [], [J, t]), re = W(() => {
46886
46901
  const z = P.trim().toLowerCase();
46887
46902
  return z ? e.filter((Ce) => Ce.label.toLowerCase().includes(z)) : e;
46888
46903
  }, [e, P]);
46889
46904
  me(() => {
46890
- R || A("");
46905
+ R || k("");
46891
46906
  }, [R]);
46892
46907
  const oe = _(
46893
46908
  (z) => {
46894
- F || B(z), S?.(z);
46909
+ F || V(z), S?.(z);
46895
46910
  },
46896
46911
  [F, S]
46897
46912
  ), O = (z) => {
@@ -46913,10 +46928,10 @@ const AA = ({
46913
46928
  ), $ = W(
46914
46929
  () => re.filter((z) => !z.disabled),
46915
46930
  [re]
46916
- ), H = W(
46931
+ ), B = W(
46917
46932
  () => $.filter((z) => N.includes(z.value)).length,
46918
46933
  [$, N]
46919
- ), q = $.length > 0 && H === $.length, Y = H > 0 && !q, ee = () => {
46934
+ ), q = $.length > 0 && B === $.length, Y = B > 0 && !q, ee = () => {
46920
46935
  if (!(!t || $.length === 0))
46921
46936
  if (q) {
46922
46937
  const z = new Set($.map((Re) => Re.value)), Ce = N.filter((Re) => !z.has(Re));
@@ -46925,9 +46940,9 @@ const AA = ({
46925
46940
  const z = new Set(N);
46926
46941
  $.forEach((Ce) => z.add(Ce.value)), oe(Array.from(z));
46927
46942
  }
46928
- }, ge = N.length > 0, G = !t && ge ? N[0] : void 0, se = W(
46929
- () => G ? e.find((z) => z.value === G) : void 0,
46930
- [e, G]
46943
+ }, ge = N.length > 0, H = !t && ge ? N[0] : void 0, se = W(
46944
+ () => H ? e.find((z) => z.value === H) : void 0,
46945
+ [e, H]
46931
46946
  ), He = _(() => !t || N.length === 0 ? null : /* @__PURE__ */ v(
46932
46947
  If,
46933
46948
  {
@@ -46964,10 +46979,10 @@ const AA = ({
46964
46979
  renderOverlay: () => /* @__PURE__ */ K(
46965
46980
  "div",
46966
46981
  {
46967
- id: k,
46982
+ id: M,
46968
46983
  role: "listbox",
46969
46984
  "aria-multiselectable": t || void 0,
46970
- className: DA,
46985
+ className: TA,
46971
46986
  children: [
46972
46987
  w && /* @__PURE__ */ v(et, { children: typeof w == "function" ? w() : w }),
46973
46988
  (l || C) && /* @__PURE__ */ K("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
@@ -46975,9 +46990,9 @@ const AA = ({
46975
46990
  dh,
46976
46991
  {
46977
46992
  placeholder: c,
46978
- onChange: A,
46993
+ onChange: k,
46979
46994
  value: P,
46980
- elementId: `search-${k}`
46995
+ elementId: `search-${M}`
46981
46996
  }
46982
46997
  ),
46983
46998
  C && /* @__PURE__ */ v(
@@ -46995,7 +47010,7 @@ const AA = ({
46995
47010
  t && d && $.length > 0 && /* @__PURE__ */ v("div", { className: Z(qr, "mt-2"), children: /* @__PURE__ */ v(
46996
47011
  cn,
46997
47012
  {
46998
- id: `${k}-selectAll`,
47013
+ id: `${M}-selectAll`,
46999
47014
  label: u,
47000
47015
  checked: q,
47001
47016
  indeterminate: Y,
@@ -47017,7 +47032,7 @@ const AA = ({
47017
47032
  {
47018
47033
  className: Z(
47019
47034
  qr,
47020
- Ce && TA,
47035
+ Ce && MA,
47021
47036
  z.disabled && du,
47022
47037
  "w-full"
47023
47038
  ),
@@ -47025,7 +47040,7 @@ const AA = ({
47025
47040
  /* @__PURE__ */ v(
47026
47041
  cn,
47027
47042
  {
47028
- id: `${k}-${z.value}`,
47043
+ id: `${M}-${z.value}`,
47029
47044
  label: /* @__PURE__ */ K("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
47030
47045
  z.icon && /* @__PURE__ */ v(Me, { icon: z.icon }),
47031
47046
  /* @__PURE__ */ v("span", { className: "truncate", children: z.label })
@@ -47050,7 +47065,7 @@ const AA = ({
47050
47065
  disabled: z.disabled,
47051
47066
  className: Z(
47052
47067
  qr,
47053
- Ce && MA,
47068
+ Ce && IA,
47054
47069
  z.disabled && du
47055
47070
  ),
47056
47071
  onClick: () => !z.disabled && O(z.value),
@@ -47073,9 +47088,9 @@ const AA = ({
47073
47088
  type: "button",
47074
47089
  "aria-haspopup": "listbox",
47075
47090
  "aria-expanded": R,
47076
- "aria-controls": k,
47091
+ "aria-controls": M,
47077
47092
  className: fe(
47078
- PA,
47093
+ DA,
47079
47094
  f && "opacity-75 !cursor-not-allowed",
47080
47095
  n === Wa.Sm ? "min-h-[25px] px-1.5 py-1" : "min-h-[38px] px-3 py-2",
47081
47096
  i === _a.Secondary ? "!bg-layer-4" : "",
@@ -47087,7 +47102,7 @@ const AA = ({
47087
47102
  /* @__PURE__ */ v(
47088
47103
  Me,
47089
47104
  {
47090
- icon: IA,
47105
+ icon: AA,
47091
47106
  className: Z("text-primary", R && "rotate-180")
47092
47107
  }
47093
47108
  )
@@ -47096,7 +47111,7 @@ const AA = ({
47096
47111
  )
47097
47112
  }
47098
47113
  );
47099
- }, vk = ({
47114
+ }, wk = ({
47100
47115
  fieldTitle: e,
47101
47116
  optional: t,
47102
47117
  captionDescription: s,
@@ -47142,7 +47157,7 @@ const AA = ({
47142
47157
  value: h(),
47143
47158
  defaultEmptyText: d,
47144
47159
  children: /* @__PURE__ */ v(
47145
- AA,
47160
+ kA,
47146
47161
  {
47147
47162
  cssClass: i,
47148
47163
  value: c,
@@ -47156,12 +47171,12 @@ function Af(e) {
47156
47171
  let t = null;
47157
47172
  return () => (t == null && (t = e()), t);
47158
47173
  }
47159
- function kA(e, t) {
47174
+ function LA(e, t) {
47160
47175
  return e.filter(
47161
47176
  (s) => s !== t
47162
47177
  );
47163
47178
  }
47164
- function LA(e, t) {
47179
+ function OA(e, t) {
47165
47180
  const s = /* @__PURE__ */ new Set(), o = (n) => s.add(n);
47166
47181
  e.forEach(o), t.forEach(o);
47167
47182
  const i = [];
@@ -47169,16 +47184,16 @@ function LA(e, t) {
47169
47184
  (n) => i.push(n)
47170
47185
  ), i;
47171
47186
  }
47172
- class OA {
47187
+ class NA {
47173
47188
  enter(t) {
47174
47189
  const s = this.entered.length, o = (i) => this.isNodeInDocument(i) && (!i.contains || i.contains(t));
47175
- return this.entered = LA(this.entered.filter(o), [
47190
+ return this.entered = OA(this.entered.filter(o), [
47176
47191
  t
47177
47192
  ]), s === 0 && this.entered.length > 0;
47178
47193
  }
47179
47194
  leave(t) {
47180
47195
  const s = this.entered.length;
47181
- return this.entered = kA(this.entered.filter(this.isNodeInDocument), t), s > 0 && this.entered.length === 0;
47196
+ return this.entered = LA(this.entered.filter(this.isNodeInDocument), t), s > 0 && this.entered.length === 0;
47182
47197
  }
47183
47198
  reset() {
47184
47199
  this.entered = [];
@@ -47187,7 +47202,7 @@ class OA {
47187
47202
  this.entered = [], this.isNodeInDocument = t;
47188
47203
  }
47189
47204
  }
47190
- class NA {
47205
+ class HA {
47191
47206
  initializeExposedProperties() {
47192
47207
  Object.keys(this.config.exposeProperties).forEach((t) => {
47193
47208
  Object.defineProperty(this.item, t, {
@@ -47284,11 +47299,11 @@ const Ua = {
47284
47299
  ]
47285
47300
  }
47286
47301
  };
47287
- function HA(e, t) {
47302
+ function GA(e, t) {
47288
47303
  const s = Ua[e];
47289
47304
  if (!s)
47290
47305
  throw new Error(`native type ${e} has no configuration`);
47291
- const o = new NA(s);
47306
+ const o = new HA(s);
47292
47307
  return o.loadDataTransfer(t), o;
47293
47308
  }
47294
47309
  function Zr(e) {
@@ -47302,7 +47317,7 @@ function Zr(e) {
47302
47317
  ) : !1;
47303
47318
  })[0] || null;
47304
47319
  }
47305
- const GA = Af(
47320
+ const VA = Af(
47306
47321
  () => /firefox/i.test(navigator.userAgent)
47307
47322
  ), Nf = Af(
47308
47323
  () => !!window.safari
@@ -47363,9 +47378,9 @@ class hu {
47363
47378
  this.xs = t, this.ys = s, this.c1s = c, this.c2s = d, this.c3s = u;
47364
47379
  }
47365
47380
  }
47366
- const VA = 1;
47381
+ const BA = 1;
47367
47382
  function Hf(e) {
47368
- const t = e.nodeType === VA ? e : e.parentElement;
47383
+ const t = e.nodeType === BA ? e : e.parentElement;
47369
47384
  if (!t)
47370
47385
  return null;
47371
47386
  const { top: s, left: o } = t.getBoundingClientRect();
@@ -47380,22 +47395,22 @@ function _i(e) {
47380
47395
  y: e.clientY
47381
47396
  };
47382
47397
  }
47383
- function BA(e) {
47398
+ function zA(e) {
47384
47399
  var t;
47385
- return e.nodeName === "IMG" && (GA() || !(!((t = document.documentElement) === null || t === void 0) && t.contains(e)));
47400
+ return e.nodeName === "IMG" && (VA() || !(!((t = document.documentElement) === null || t === void 0) && t.contains(e)));
47386
47401
  }
47387
- function zA(e, t, s, o) {
47402
+ function WA(e, t, s, o) {
47388
47403
  let i = e ? t.width : s, n = e ? t.height : o;
47389
47404
  return Nf() && e && (n /= window.devicePixelRatio, i /= window.devicePixelRatio), {
47390
47405
  dragPreviewWidth: i,
47391
47406
  dragPreviewHeight: n
47392
47407
  };
47393
47408
  }
47394
- function WA(e, t, s, o, i) {
47395
- const n = BA(t), a = Hf(n ? e : t), l = {
47409
+ function _A(e, t, s, o, i) {
47410
+ const n = zA(t), a = Hf(n ? e : t), l = {
47396
47411
  x: s.x - a.x,
47397
47412
  y: s.y - a.y
47398
- }, { offsetWidth: c, offsetHeight: d } = e, { anchorX: u, anchorY: h } = o, { dragPreviewWidth: g, dragPreviewHeight: p } = zA(n, t, c, d), f = () => {
47413
+ }, { offsetWidth: c, offsetHeight: d } = e, { anchorX: u, anchorY: h } = o, { dragPreviewWidth: g, dragPreviewHeight: p } = WA(n, t, c, d), f = () => {
47399
47414
  let R = new hu([
47400
47415
  0,
47401
47416
  0.5,
@@ -47426,7 +47441,7 @@ function WA(e, t, s, o, i) {
47426
47441
  y: y ? w : f()
47427
47442
  };
47428
47443
  }
47429
- class _A {
47444
+ class UA {
47430
47445
  get window() {
47431
47446
  if (this.globalContext)
47432
47447
  return this.globalContext;
@@ -47445,7 +47460,7 @@ class _A {
47445
47460
  this.ownerDocument = null, this.globalContext = t, this.optionsArgs = s;
47446
47461
  }
47447
47462
  }
47448
- function UA(e, t, s) {
47463
+ function $A(e, t, s) {
47449
47464
  return t in e ? Object.defineProperty(e, t, {
47450
47465
  value: s,
47451
47466
  enumerable: !0,
@@ -47459,12 +47474,12 @@ function gu(e) {
47459
47474
  typeof Object.getOwnPropertySymbols == "function" && (o = o.concat(Object.getOwnPropertySymbols(s).filter(function(i) {
47460
47475
  return Object.getOwnPropertyDescriptor(s, i).enumerable;
47461
47476
  }))), o.forEach(function(i) {
47462
- UA(e, i, s[i]);
47477
+ $A(e, i, s[i]);
47463
47478
  });
47464
47479
  }
47465
47480
  return e;
47466
47481
  }
47467
- class $A {
47482
+ class jA {
47468
47483
  /**
47469
47484
  * Generate profiling statistics for the HTML5Backend.
47470
47485
  */
@@ -47557,7 +47572,7 @@ class $A {
47557
47572
  );
47558
47573
  }
47559
47574
  beginDragNativeItem(t, s) {
47560
- this.clearCurrentDragSourceNode(), this.currentNativeSource = HA(t, s), this.currentNativeHandle = this.registry.addSource(t, this.currentNativeSource), this.actions.beginDrag([
47575
+ this.clearCurrentDragSourceNode(), this.currentNativeSource = GA(t, s), this.currentNativeHandle = this.registry.addSource(t, this.currentNativeSource), this.actions.beginDrag([
47561
47576
  this.currentNativeHandle
47562
47577
  ]);
47563
47578
  }
@@ -47626,7 +47641,7 @@ class $A {
47626
47641
  if (a && typeof a.setDragImage == "function") {
47627
47642
  const d = this.monitor.getSourceId(), u = this.sourceNodes.get(d), h = this.sourcePreviewNodes.get(d) || u;
47628
47643
  if (h) {
47629
- const { anchorX: g, anchorY: p, offsetX: f, offsetY: m } = this.getCurrentSourcePreviewNodeOptions(), b = WA(u, h, r, {
47644
+ const { anchorX: g, anchorY: p, offsetX: f, offsetY: m } = this.getCurrentSourcePreviewNodeOptions(), b = _A(u, h, r, {
47630
47645
  anchorX: g,
47631
47646
  anchorY: p
47632
47647
  }, {
@@ -47708,12 +47723,12 @@ class $A {
47708
47723
  }, this.handleSelectStart = (i) => {
47709
47724
  const n = i.target;
47710
47725
  typeof n.dragDrop == "function" && (n.tagName === "INPUT" || n.tagName === "SELECT" || n.tagName === "TEXTAREA" || n.isContentEditable || (i.preventDefault(), n.dragDrop()));
47711
- }, this.options = new _A(s, o), this.actions = t.getActions(), this.monitor = t.getMonitor(), this.registry = t.getRegistry(), this.enterLeaveCounter = new OA(this.isNodeInDocument);
47726
+ }, this.options = new UA(s, o), this.actions = t.getActions(), this.monitor = t.getMonitor(), this.registry = t.getRegistry(), this.enterLeaveCounter = new NA(this.isNodeInDocument);
47712
47727
  }
47713
47728
  }
47714
- const jA = function(t, s, o) {
47715
- return new $A(t, s, o);
47716
- }, KA = ({
47729
+ const KA = function(t, s, o) {
47730
+ return new jA(t, s, o);
47731
+ }, qA = ({
47717
47732
  onChange: e,
47718
47733
  emptyTextFirstLine: t,
47719
47734
  emptyTextSecondLine: s,
@@ -47725,12 +47740,12 @@ const jA = function(t, s, o) {
47725
47740
  fileCountError: l,
47726
47741
  getIsFileFormatError: c
47727
47742
  }) => {
47728
- const d = I(null), u = I(null), [h, g] = M([]), [p, f] = M(!1), m = _(
47743
+ const d = A(null), u = A(null), [h, g] = I([]), [p, f] = I(!1), m = _(
47729
47744
  (F) => {
47730
47745
  const T = F.target.files;
47731
47746
  if (T && T.length > 0) {
47732
- const B = Array.from(T);
47733
- c?.(B) ? f(!0) : e(B);
47747
+ const V = Array.from(T);
47748
+ c?.(V) ? f(!0) : e(V);
47734
47749
  }
47735
47750
  },
47736
47751
  [c, e]
@@ -47762,9 +47777,9 @@ const jA = function(t, s, o) {
47762
47777
  F?.preventDefault();
47763
47778
  const T = Array.from(F.dataTransfer?.items ?? []);
47764
47779
  f(!!c?.(T)), g(T);
47765
- }, A = (F) => {
47780
+ }, k = (F) => {
47766
47781
  F.target === F.currentTarget && b();
47767
- }, k = Z(
47782
+ }, M = Z(
47768
47783
  "border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",
47769
47784
  !S && !w && "border-primary",
47770
47785
  S && (y ? "border-accent-primary" : "border-hover"),
@@ -47774,10 +47789,10 @@ const jA = function(t, s, o) {
47774
47789
  /* @__PURE__ */ K(
47775
47790
  "div",
47776
47791
  {
47777
- className: k,
47792
+ className: M,
47778
47793
  ref: d,
47779
47794
  onDragOver: P,
47780
- onDragLeave: A,
47795
+ onDragLeave: k,
47781
47796
  children: [
47782
47797
  /* @__PURE__ */ K(
47783
47798
  "label",
@@ -47817,7 +47832,7 @@ const jA = function(t, s, o) {
47817
47832
  ),
47818
47833
  /* @__PURE__ */ v(et, { children: p ? /* @__PURE__ */ v(Gs, { errorText: a }) : C(h) && /* @__PURE__ */ v(Gs, { errorText: l }) })
47819
47834
  ] });
47820
- }, qA = ({
47835
+ }, YA = ({
47821
47836
  iconBefore: e,
47822
47837
  cssClass: t,
47823
47838
  errorText: s,
@@ -47835,7 +47850,7 @@ const jA = function(t, s, o) {
47835
47850
  hideBorder: !0
47836
47851
  }
47837
47852
  );
47838
- }, YA = (e) => {
47853
+ }, ZA = (e) => {
47839
47854
  const {
47840
47855
  files: t,
47841
47856
  iconBeforeInput: s,
@@ -47855,8 +47870,8 @@ const jA = function(t, s, o) {
47855
47870
  ), d = (u) => {
47856
47871
  i(u);
47857
47872
  };
47858
- return !t || t.length === 0 ? /* @__PURE__ */ v(lw, { backend: jA, children: /* @__PURE__ */ v(KA, { ...e, onChange: d }) }) : /* @__PURE__ */ v("div", { className: "flex-1 min-h-0 border border-solid border-primary rounded", children: t && t.length > 0 && /* @__PURE__ */ v("div", { className: "max-h-full overflow-y-auto", children: t.map((u, h) => /* @__PURE__ */ v(
47859
- qA,
47873
+ return !t || t.length === 0 ? /* @__PURE__ */ v(lw, { backend: KA, children: /* @__PURE__ */ v(qA, { ...e, onChange: d }) }) : /* @__PURE__ */ v("div", { className: "flex-1 min-h-0 border border-solid border-primary rounded", children: t && t.length > 0 && /* @__PURE__ */ v("div", { className: "max-h-full overflow-y-auto", children: t.map((u, h) => /* @__PURE__ */ v(
47874
+ YA,
47860
47875
  {
47861
47876
  elementId: u.name,
47862
47877
  value: u.name,
@@ -47867,7 +47882,7 @@ const jA = function(t, s, o) {
47867
47882
  },
47868
47883
  u.name + h
47869
47884
  )) }) });
47870
- }, wk = ({
47885
+ }, bk = ({
47871
47886
  onChange: e,
47872
47887
  fieldTitle: t,
47873
47888
  elementId: s,
@@ -47881,7 +47896,7 @@ const jA = function(t, s, o) {
47881
47896
  addButtonLabel: d,
47882
47897
  ...u
47883
47898
  }) => {
47884
- const h = I(null), g = () => h.current?.click(), p = () => {
47899
+ const h = A(null), g = () => h.current?.click(), p = () => {
47885
47900
  e([]);
47886
47901
  }, f = _(
47887
47902
  (C) => C?.some(
@@ -47942,7 +47957,7 @@ const jA = function(t, s, o) {
47942
47957
  }
47943
47958
  ),
47944
47959
  /* @__PURE__ */ v(
47945
- YA,
47960
+ ZA,
47946
47961
  {
47947
47962
  files: o,
47948
47963
  onChange: e,
@@ -47956,8 +47971,8 @@ const jA = function(t, s, o) {
47956
47971
  }
47957
47972
  )
47958
47973
  ] });
47959
- }, bk = (e) => {
47960
- const [t, s] = M(
47974
+ }, Sk = (e) => {
47975
+ const [t, s] = I(
47961
47976
  za.MyFiles
47962
47977
  ), o = (n) => {
47963
47978
  s(n);
@@ -47978,8 +47993,8 @@ export {
47978
47993
  lo as AlertVariant,
47979
47994
  Ie as ButtonVariant,
47980
47995
  gn as ConfirmationPopupVariant,
47981
- sk as DialAlert,
47982
- mk as DialAutocompleteInput,
47996
+ ok as DialAlert,
47997
+ Ck as DialAutocompleteInput,
47983
47998
  ch as DialAutocompleteInputValue,
47984
47999
  v1 as DialBreadcrumb,
47985
48000
  C1 as DialBreadcrumbItem,
@@ -47988,15 +48003,15 @@ export {
47988
48003
  cn as DialCheckbox,
47989
48004
  rh as DialCloseButton,
47990
48005
  BC as DialCollapsibleSidebar,
47991
- ck as DialConfirmationPopup,
48006
+ dk as DialConfirmationPopup,
47992
48007
  t1 as DialDateCellRenderer,
47993
- nk as DialDraggableItem,
48008
+ rk as DialDraggableItem,
47994
48009
  Gt as DialDropdown,
47995
48010
  Ht as DialEllipsisTooltip,
47996
48011
  Gs as DialErrorText,
47997
48012
  Oo as DialFieldLabel,
47998
48013
  Qw as DialFileIcon,
47999
- pk as DialFileManager,
48014
+ fk as DialFileManager,
48000
48015
  Es as DialFileManagerActions,
48001
48016
  W1 as DialFileManagerNavigationPanel,
48002
48017
  za as DialFileManagerTabs,
@@ -48006,40 +48021,40 @@ export {
48006
48021
  Z1 as DialFileResourceType,
48007
48022
  oh as DialFolderName,
48008
48023
  nl as DialFormItem,
48009
- uk as DialFormPopup,
48024
+ hk as DialFormPopup,
48010
48025
  Me as DialIcon,
48011
48026
  ai as DialInput,
48012
48027
  L1 as DialInputPopup,
48013
- ik as DialLabelledText,
48014
- wk as DialLoadFileAreaField,
48028
+ nk as DialLabelledText,
48029
+ bk as DialLoadFileAreaField,
48015
48030
  il as DialLoader,
48016
48031
  rl as DialNoDataContent,
48017
- rk as DialNumberInputField,
48018
- EA as DialPasswordInput,
48019
- fk as DialPasswordInputField,
48032
+ ak as DialNumberInputField,
48033
+ PA as DialPasswordInput,
48034
+ mk as DialPasswordInputField,
48020
48035
  fl as DialPopup,
48021
48036
  kC as DialRadioButton,
48022
48037
  VC as DialRadioGroup,
48023
- dk as DialRadioGroupPopupField,
48038
+ uk as DialRadioGroupPopupField,
48024
48039
  w1 as DialRemoveButton,
48025
48040
  dh as DialSearch,
48026
- AA as DialSelect,
48027
- vk as DialSelectField,
48041
+ kA as DialSelect,
48042
+ wk as DialSelectField,
48028
48043
  th as DialSharedEntityIndicator,
48029
- ok as DialSteps,
48044
+ ik as DialSteps,
48030
48045
  F1 as DialSwitch,
48031
48046
  Ii as DialTab,
48032
48047
  d1 as DialTabs,
48033
48048
  ll as DialTag,
48034
- Ck as DialTagInput,
48035
- lk as DialTextAreaField,
48036
- ak as DialTextInputField,
48049
+ vk as DialTagInput,
48050
+ ck as DialTextAreaField,
48051
+ lk as DialTextInputField,
48037
48052
  b1 as DialTextarea,
48038
48053
  Ks as DialTooltip,
48039
48054
  nh as DropdownItemType,
48040
48055
  kt as DropdownTrigger,
48041
48056
  s1 as DropdownType,
48042
- SA as FileManagerProvider,
48057
+ yA as FileManagerProvider,
48043
48058
  po as FlexibleActionsDirection,
48044
48059
  dn as FormItemOrientation,
48045
48060
  hs as PopupSize,
@@ -48051,6 +48066,6 @@ export {
48051
48066
  ia as TabOrientation,
48052
48067
  al as TagVariant,
48053
48068
  fe as mergeClasses,
48054
- bk as useDialFileManagerTabs,
48055
- yA as useFileManagerContext
48069
+ Sk as useDialFileManagerTabs,
48070
+ RA as useFileManagerContext
48056
48071
  };