@epam/ai-dial-ui-kit 0.4.0-rc.13 → 0.4.0-rc.14

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 w, jsxs as $, Fragment as It } from "react/jsx-runtime";
2
2
  import K from "classnames";
3
3
  import { useFloating as Na, offset as tu, flip as su, shift as ou, arrow as Rf, autoUpdate as iu, useHover as nu, useFocus as xf, useDismiss as Ga, useRole as Va, useInteractions as Ba, useMergeRefs as ru, FloatingPortal as za, FloatingArrow as Ff, autoPlacement as Ef, size as Df, useClick as Pf, FloatingFocusManager as au, FloatingOverlay as Tf } from "@floating-ui/react";
4
4
  import * as ae from "react";
5
- import G, { createContext as Wa, useState as A, useRef as L, useMemo as B, useContext as Ge, forwardRef as Ci, isValidElement as _a, cloneElement as rn, useCallback as U, useEffect as ve, memo as tt, useLayoutEffect as Lt, useId as Ua, createElement as lu, Children as Mf, Component as If, useImperativeHandle as $a, Suspense as kf } from "react";
5
+ import G, { createContext as Wa, useState as A, useRef as O, useMemo as B, useContext as Ge, forwardRef as Ci, isValidElement as _a, cloneElement as rn, useCallback as U, useEffect as ve, memo as tt, useLayoutEffect as Lt, useId as Ua, createElement as lu, Children as Mf, Component as If, useImperativeHandle as $a, Suspense as kf } from "react";
6
6
  import { IconInfoCircle as cu, IconCircleCheck as Af, IconAlertTriangle as Lf, IconAlertCircle as Of, IconX as vi, IconMinus as Hf, IconCheck as du, IconExclamationCircle as ja, IconClipboardX as uu, IconChevronsLeft as Nf, IconChevronsRight as Gf, IconGripVertical as Vf, IconFile as Bf, IconFileTypeZip as zf, IconFileTypeXml as Wf, IconFileTypeXls as _f, IconFileTypeVue as Uf, IconFileTypeTxt as $f, IconFileTypeTsx as jf, IconFileTypeTs as Kf, IconFileTypeSvg as qf, IconFileTypeSql as Yf, IconFileTypeRs as Zf, IconFileTypePpt as Qf, IconFileTypePng as Xf, IconFileTypePhp as Jf, IconFileTypePdf as em, IconFileTypeJsx as tm, IconFileTypeJs as sm, IconFileTypeJpg as om, IconFileTypeHtml as im, IconFileTypeDocx as nm, IconFileTypeDoc as rm, IconFileTypeCsv as am, IconFileTypeCss as lm, IconFileTypeBmp as cm, IconArrowUpRight as dm, IconFolder as um, IconChevronDown as Ka, IconDotsVertical as hu, IconChevronRight as hm, IconTrashX as gu, IconSearch as gm, IconCaretRightFilled as pm, IconChevronUp as fm, IconRefresh as mm, IconEyeOff as Cm, IconEye as vm, IconPlus as wm } from "@tabler/icons-react";
7
7
  import bm, { createPortal as qa } from "react-dom";
8
8
  const Hs = ({ errorText: e }) => e && /* @__PURE__ */ w("span", { className: "text-error dial-tiny mt-1", children: e }), Fe = ({ icon: e, className: t }) => e ? /* @__PURE__ */ w("span", { className: K("flex-shrink-0", t), children: e }) : null, Sm = 7, ym = 2, pu = Wa(null), fu = () => {
@@ -17,7 +17,7 @@ const Hs = ({ errorText: e }) => e && /* @__PURE__ */ w("span", { className: "te
17
17
  open: o,
18
18
  onOpenChange: i
19
19
  } = {}) => {
20
- const [n, r] = A(e), a = L(null), l = o ?? n, c = i ?? r, d = Na({
20
+ const [n, r] = A(e), a = O(null), l = o ?? n, c = i ?? r, d = Na({
21
21
  placement: t,
22
22
  open: l,
23
23
  onOpenChange: c,
@@ -398,7 +398,7 @@ const Ae = (e) => {
398
398
  "bottom-left",
399
399
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
400
400
  "left-bottom"
401
- ], y = () => [...S(), Z, Y], R = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], T = () => [Z, Y, l], O = () => [Xs, "full", "auto", ...T()], M = () => [is, "none", "subgrid", Z, Y], x = () => ["auto", {
401
+ ], y = () => [...S(), Z, Y], R = () => ["auto", "hidden", "clip", "visible", "scroll"], E = () => ["auto", "contain", "none"], T = () => [Z, Y, l], H = () => [Xs, "full", "auto", ...T()], M = () => [is, "none", "subgrid", Z, Y], x = () => ["auto", {
402
402
  span: ["full", is, Z, Y]
403
403
  }, is, Z, Y], D = () => [is, "auto", Z, Y], _ = () => ["auto", "min", "max", "fr", Z, Y], te = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], I = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], ne = () => ["auto", ...T()], j = () => [Xs, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...T()], k = () => [e, Z, Y], ee = () => [...S(), nc, ic, {
404
404
  position: [Z, Y]
@@ -414,7 +414,7 @@ const Ae = (e) => {
414
414
  c,
415
415
  Z,
416
416
  Y
417
- ], re = () => ["", ue, Ho, Rs], H = () => ["solid", "dashed", "dotted", "double"], ie = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], he = () => [ue, Jn, nc, ic], Be = () => [
417
+ ], re = () => ["", ue, Ho, Rs], L = () => ["solid", "dashed", "dotted", "double"], ie = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], he = () => [ue, Jn, nc, ic], Be = () => [
418
418
  // Deprecated since Tailwind CSS v4.0.0
419
419
  "",
420
420
  "none",
@@ -599,63 +599,63 @@ const Ae = (e) => {
599
599
  * @see https://tailwindcss.com/docs/top-right-bottom-left
600
600
  */
601
601
  inset: [{
602
- inset: O()
602
+ inset: H()
603
603
  }],
604
604
  /**
605
605
  * Right / Left
606
606
  * @see https://tailwindcss.com/docs/top-right-bottom-left
607
607
  */
608
608
  "inset-x": [{
609
- "inset-x": O()
609
+ "inset-x": H()
610
610
  }],
611
611
  /**
612
612
  * Top / Bottom
613
613
  * @see https://tailwindcss.com/docs/top-right-bottom-left
614
614
  */
615
615
  "inset-y": [{
616
- "inset-y": O()
616
+ "inset-y": H()
617
617
  }],
618
618
  /**
619
619
  * Start
620
620
  * @see https://tailwindcss.com/docs/top-right-bottom-left
621
621
  */
622
622
  start: [{
623
- start: O()
623
+ start: H()
624
624
  }],
625
625
  /**
626
626
  * End
627
627
  * @see https://tailwindcss.com/docs/top-right-bottom-left
628
628
  */
629
629
  end: [{
630
- end: O()
630
+ end: H()
631
631
  }],
632
632
  /**
633
633
  * Top
634
634
  * @see https://tailwindcss.com/docs/top-right-bottom-left
635
635
  */
636
636
  top: [{
637
- top: O()
637
+ top: H()
638
638
  }],
639
639
  /**
640
640
  * Right
641
641
  * @see https://tailwindcss.com/docs/top-right-bottom-left
642
642
  */
643
643
  right: [{
644
- right: O()
644
+ right: H()
645
645
  }],
646
646
  /**
647
647
  * Bottom
648
648
  * @see https://tailwindcss.com/docs/top-right-bottom-left
649
649
  */
650
650
  bottom: [{
651
- bottom: O()
651
+ bottom: H()
652
652
  }],
653
653
  /**
654
654
  * Left
655
655
  * @see https://tailwindcss.com/docs/top-right-bottom-left
656
656
  */
657
657
  left: [{
658
- left: O()
658
+ left: H()
659
659
  }],
660
660
  /**
661
661
  * Visibility
@@ -1255,7 +1255,7 @@ const Ae = (e) => {
1255
1255
  * @see https://tailwindcss.com/docs/text-decoration-style
1256
1256
  */
1257
1257
  "text-decoration-style": [{
1258
- decoration: [...H(), "wavy"]
1258
+ decoration: [...L(), "wavy"]
1259
1259
  }],
1260
1260
  /**
1261
1261
  * Text Decoration Thickness
@@ -1651,14 +1651,14 @@ const Ae = (e) => {
1651
1651
  * @see https://tailwindcss.com/docs/border-style
1652
1652
  */
1653
1653
  "border-style": [{
1654
- border: [...H(), "hidden", "none"]
1654
+ border: [...L(), "hidden", "none"]
1655
1655
  }],
1656
1656
  /**
1657
1657
  * Divide Style
1658
1658
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1659
1659
  */
1660
1660
  "divide-style": [{
1661
- divide: [...H(), "hidden", "none"]
1661
+ divide: [...L(), "hidden", "none"]
1662
1662
  }],
1663
1663
  /**
1664
1664
  * Border Color
@@ -1735,7 +1735,7 @@ const Ae = (e) => {
1735
1735
  * @see https://tailwindcss.com/docs/outline-style
1736
1736
  */
1737
1737
  "outline-style": [{
1738
- outline: [...H(), "none", "hidden"]
1738
+ outline: [...L(), "none", "hidden"]
1739
1739
  }],
1740
1740
  /**
1741
1741
  * Outline Offset
@@ -3011,7 +3011,7 @@ const nC = {
3011
3011
  hideTooltip: o,
3012
3012
  ...i
3013
3013
  }) => {
3014
- const n = L(null), [r, a] = A(!1), [l, c] = A(""), d = L(null), u = () => {
3014
+ const n = O(null), [r, a] = A(!1), [l, c] = A(""), d = O(null), u = () => {
3015
3015
  const f = n.current;
3016
3016
  if (!f) return;
3017
3017
  c(f.textContent ?? "");
@@ -5287,7 +5287,7 @@ const Cc = "column", xw = "flex items-center", Fw = "mr-3 cursor-move text-secon
5287
5287
  moveItem: i,
5288
5288
  handleAriaLabel: n = "Drag item"
5289
5289
  }) => {
5290
- const r = L(null), a = L(null), l = typeof o == "function" ? o(e) : -1, [{ isDragging: c }, d, u] = mw(
5290
+ const r = O(null), a = O(null), l = typeof o == "function" ? o(e) : -1, [{ isDragging: c }, d, u] = mw(
5291
5291
  () => ({
5292
5292
  type: Cc,
5293
5293
  item: { id: e, originalIndex: l },
@@ -5535,11 +5535,11 @@ const Hw = K(
5535
5535
  matchReferenceWidth: C = !0
5536
5536
  }) => {
5537
5537
  const [v, b] = A(a), S = r !== void 0, y = S ? !!r : v, R = U(
5538
- (H) => {
5539
- S || b(H), l?.(H);
5538
+ (L) => {
5539
+ S || b(L), l?.(L);
5540
5540
  },
5541
5541
  [S, l]
5542
- ), E = Ua(), T = i === void 0, O = (H) => "clientWidth" in H ? H.clientWidth : H.getBoundingClientRect?.()?.width ?? 0, { refs: M, floatingStyles: x, context: D } = Na({
5542
+ ), E = Ua(), T = i === void 0, H = (L) => "clientWidth" in L ? L.clientWidth : L.getBoundingClientRect?.()?.width ?? 0, { refs: M, floatingStyles: x, context: D } = Na({
5543
5543
  placement: i,
5544
5544
  open: y,
5545
5545
  onOpenChange: R,
@@ -5555,15 +5555,15 @@ const Hw = K(
5555
5555
  ou({ padding: No }),
5556
5556
  Df({
5557
5557
  padding: No,
5558
- apply({ availableWidth: H, availableHeight: ie, elements: he }) {
5559
- const Be = he.floating, st = O(he.reference);
5558
+ apply({ availableWidth: L, availableHeight: ie, elements: he }) {
5559
+ const Be = he.floating, st = H(he.reference);
5560
5560
  Be.style.setProperty(
5561
5561
  "--fui-available-height",
5562
5562
  `${Math.floor(ie)}px`
5563
5563
  ), Be.style.setProperty(
5564
5564
  "--reference-width",
5565
5565
  C ? `${Math.round(st)}px` : "0px"
5566
- ), C ? Be.style.minWidth = `${Math.round(st)}px` : Be.style.removeProperty("min-width"), Be.style.maxWidth = `${Math.floor(H)}px`, Be.style.maxHeight = `${Math.floor(ie)}px`;
5566
+ ), C ? Be.style.minWidth = `${Math.round(st)}px` : Be.style.removeProperty("min-width"), Be.style.maxWidth = `${Math.floor(L)}px`, Be.style.maxHeight = `${Math.floor(ie)}px`;
5567
5567
  }
5568
5568
  })
5569
5569
  ]
@@ -5577,9 +5577,9 @@ const Hw = K(
5577
5577
  }), I = Ga(D, {
5578
5578
  bubbles: !0,
5579
5579
  referencePress: !1,
5580
- outsidePress: (H) => {
5580
+ outsidePress: (L) => {
5581
5581
  if (!p) return !1;
5582
- const ie = H.target;
5582
+ const ie = L.target;
5583
5583
  return !(g?.current && ie instanceof Node && g.current.contains(ie));
5584
5584
  }
5585
5585
  }), ne = Va(D, { role: "menu" }), { getReferenceProps: j, getFloatingProps: k } = Ba([
@@ -5588,29 +5588,29 @@ const Hw = K(
5588
5588
  I,
5589
5589
  ne
5590
5590
  ]), ee = U(
5591
- (H, ie) => {
5591
+ (L, ie) => {
5592
5592
  M.setPositionReference({
5593
5593
  getBoundingClientRect: () => ({
5594
5594
  width: 0,
5595
5595
  height: 0,
5596
- x: H,
5596
+ x: L,
5597
5597
  y: ie,
5598
5598
  top: ie,
5599
- left: H,
5600
- right: H,
5599
+ left: L,
5600
+ right: L,
5601
5601
  bottom: ie
5602
5602
  })
5603
5603
  });
5604
5604
  },
5605
5605
  [M]
5606
5606
  ), V = U(
5607
- (H) => {
5608
- !o.includes(kt.ContextMenu) || n || (H.preventDefault(), m && ee(H.clientX, H.clientY), R(!0));
5607
+ (L) => {
5608
+ !o.includes(kt.ContextMenu) || n || (L.preventDefault(), m && ee(L.clientX, L.clientY), R(!0));
5609
5609
  },
5610
5610
  [m, n, R, ee, o]
5611
5611
  ), se = U(
5612
- (H) => {
5613
- !m || n || ee(H.clientX, H.clientY);
5612
+ (L) => {
5613
+ !m || n || ee(L.clientX, L.clientY);
5614
5614
  },
5615
5615
  [m, n, ee]
5616
5616
  );
@@ -5618,41 +5618,41 @@ const Hw = K(
5618
5618
  n && y && R(!1);
5619
5619
  }, [n, y, R]);
5620
5620
  const Q = U(
5621
- (H) => (ie) => {
5622
- H.disabled || (H.onClick?.({ key: H.key, domEvent: ie }), t?.onClick?.({ key: H.key, domEvent: ie }), R(!1));
5621
+ (L) => (ie) => {
5622
+ L.disabled || (L.onClick?.({ key: L.key, domEvent: ie }), t?.onClick?.({ key: L.key, domEvent: ie }), R(!1));
5623
5623
  },
5624
5624
  [t, R]
5625
5625
  ), q = B(() => s ? s() : t ? /* @__PURE__ */ $(It, { children: [
5626
5626
  t.header && /* @__PURE__ */ w(It, { children: typeof t.header == "function" ? t.header() : t.header }),
5627
- /* @__PURE__ */ w("div", { role: "none", className: "py-1", children: t.items.map((H) => H.type === $u.Divider ? /* @__PURE__ */ w(
5627
+ /* @__PURE__ */ w("div", { role: "none", className: "py-1", children: t.items.map((L) => L.type === $u.Divider ? /* @__PURE__ */ w(
5628
5628
  "div",
5629
5629
  {
5630
5630
  role: "separator",
5631
5631
  className: zw
5632
5632
  },
5633
- H.key
5633
+ L.key
5634
5634
  ) : /* @__PURE__ */ $(
5635
5635
  "button",
5636
5636
  {
5637
5637
  role: "menuitem",
5638
5638
  type: "button",
5639
- "aria-disabled": !!H.disabled,
5639
+ "aria-disabled": !!L.disabled,
5640
5640
  className: K(
5641
5641
  Gw,
5642
- H.disabled && Vw,
5643
- H.danger && Bw
5642
+ L.disabled && Vw,
5643
+ L.danger && Bw
5644
5644
  ),
5645
- disabled: H.disabled,
5646
- onClick: Q(H),
5645
+ disabled: L.disabled,
5646
+ onClick: Q(L),
5647
5647
  children: [
5648
- H.icon && /* @__PURE__ */ w(
5648
+ L.icon && /* @__PURE__ */ w(
5649
5649
  "span",
5650
5650
  {
5651
5651
  className: K(
5652
- H.danger && "text-error",
5653
- H.disabled && "text-secondary"
5652
+ L.danger && "text-error",
5653
+ L.disabled && "text-secondary"
5654
5654
  ),
5655
- children: /* @__PURE__ */ w(Fe, { icon: H.icon })
5655
+ children: /* @__PURE__ */ w(Fe, { icon: L.icon })
5656
5656
  }
5657
5657
  ),
5658
5658
  /* @__PURE__ */ w(
@@ -5660,15 +5660,15 @@ const Hw = K(
5660
5660
  {
5661
5661
  className: K(
5662
5662
  "flex-1 truncate text-left",
5663
- H.danger && "text-error",
5664
- H.disabled && "text-secondary"
5663
+ L.danger && "text-error",
5664
+ L.disabled && "text-secondary"
5665
5665
  ),
5666
- children: H.label
5666
+ children: L.label
5667
5667
  }
5668
5668
  )
5669
5669
  ]
5670
5670
  },
5671
- H.key
5671
+ L.key
5672
5672
  )) }),
5673
5673
  t.footer && /* @__PURE__ */ w(It, { children: typeof t.footer == "function" ? t.footer() : t.footer })
5674
5674
  ] }) : null, [Q, t, s]), re = j({
@@ -5716,8 +5716,8 @@ const Hw = K(
5716
5716
  ju,
5717
5717
  {
5718
5718
  ariaLabel: "Close dropdown",
5719
- onClose: (H) => {
5720
- d?.(H), R(!1);
5719
+ onClose: (L) => {
5720
+ d?.(L), R(!1);
5721
5721
  }
5722
5722
  }
5723
5723
  ) }),
@@ -5778,7 +5778,7 @@ const Hw = K(
5778
5778
  onClick: s,
5779
5779
  orientation: o = Xr.Horizontal
5780
5780
  }) => {
5781
- const [i, n] = A(!1), [r, a] = A(!1), [l, c] = A(!1), d = Lw(), u = o === Xr.Horizontal, h = L(null), g = L(null), p = L(null), f = e.find((v) => v.id === t), m = B(
5781
+ const [i, n] = A(!1), [r, a] = A(!1), [l, c] = A(!1), d = Lw(), u = o === Xr.Horizontal, h = O(null), g = O(null), p = O(null), f = e.find((v) => v.id === t), m = B(
5782
5782
  () => K(
5783
5783
  "flex gap-3",
5784
5784
  u ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
@@ -6073,7 +6073,7 @@ const Hw = K(
6073
6073
  defaultValue: y,
6074
6074
  tooltipText: R
6075
6075
  }) => {
6076
- const E = (x) => x.target.blur(), T = c === "number" || p !== void 0 || f !== void 0, O = (x) => {
6076
+ const E = (x) => x.target.blur(), T = c === "number" || p !== void 0 || f !== void 0, H = (x) => {
6077
6077
  e1(x, c, p, f);
6078
6078
  }, M = (x) => {
6079
6079
  const D = x.currentTarget.value;
@@ -6139,7 +6139,7 @@ const Hw = K(
6139
6139
  r
6140
6140
  ),
6141
6141
  onChange: (x) => !u && M?.(x),
6142
- onKeyDown: O,
6142
+ onKeyDown: H,
6143
6143
  onWheel: E,
6144
6144
  onBlur: S,
6145
6145
  min: p,
@@ -6580,7 +6580,7 @@ const l1 = "flex justify-end gap-2 px-6 py-4", c1 = "text-secondary dial-small-1
6580
6580
  {
6581
6581
  disabled: s,
6582
6582
  open: S,
6583
- selectedValue: n ?? i.find((O) => O.id === o)?.name,
6583
+ selectedValue: n ?? i.find((H) => H.id === o)?.name,
6584
6584
  valueCssClasses: r,
6585
6585
  inputCssClasses: K(a, "py-2", "px-3"),
6586
6586
  emptyValueText: l,
@@ -6871,7 +6871,7 @@ const T1 = {
6871
6871
  }, g = (p, f) => p.map((m) => {
6872
6872
  const { path: C, nodeType: v, name: b, items: S } = m, y = v === hs.FOLDER;
6873
6873
  if (!y && !t) return;
6874
- const R = Array.isArray(S) && S.length > 0 && S.some((D) => D.nodeType === hs.FOLDER || t), E = d.has(C), T = i === C, O = o.has(C), M = T ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", x = c?.(m) ?? [];
6874
+ const R = Array.isArray(S) && S.length > 0 && S.some((D) => D.nodeType === hs.FOLDER || t), E = d.has(C), T = i === C, H = o.has(C), M = T ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", x = c?.(m) ?? [];
6875
6875
  return /* @__PURE__ */ w("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ $("div", { className: "flex flex-col", children: [
6876
6876
  /* @__PURE__ */ $(
6877
6877
  "div",
@@ -6901,7 +6901,7 @@ const T1 = {
6901
6901
  )
6902
6902
  }
6903
6903
  ),
6904
- /* @__PURE__ */ w(Uu, { name: b, loading: O })
6904
+ /* @__PURE__ */ w(Uu, { name: b, loading: H })
6905
6905
  ] }) : /* @__PURE__ */ w(_u, { name: b }) })
6906
6906
  }
6907
6907
  ) }),
@@ -9207,7 +9207,7 @@ function yt(e, t, s) {
9207
9207
  return !1;
9208
9208
  if (t?.state && !t.state.forEach)
9209
9209
  return N(32), !1;
9210
- const C = (y, R, E, T, O) => {
9210
+ const C = (y, R, E, T, H) => {
9211
9211
  if (!y)
9212
9212
  return;
9213
9213
  const M = o0(R, t.defaultState), x = M("flex").value1;
@@ -9227,9 +9227,9 @@ function yt(e, t, s) {
9227
9227
  _ != null && D >= _ && y.setActualWidth(D, s);
9228
9228
  }
9229
9229
  }
9230
- O || !y.isPrimary() || (h?.syncColumnWithState(y, s, M), i?.syncColumnWithState(y, s, M, E), n?.syncColumnWithState(y, s, M, T));
9230
+ H || !y.isPrimary() || (h?.syncColumnWithState(y, s, M), i?.syncColumnWithState(y, s, M, E), n?.syncColumnWithState(y, s, M, T));
9231
9231
  }, v = (y, R, E) => {
9232
- const T = $h(e, s), O = R.slice(), M = {}, x = {}, D = [], _ = [], te = [];
9232
+ const T = $h(e, s), H = R.slice(), M = {}, x = {}, D = [], _ = [], te = [];
9233
9233
  let I = 0;
9234
9234
  const ne = i?.columns.slice() ?? [], j = n?.columns.slice() ?? [];
9235
9235
  for (const V of y) {
@@ -9243,10 +9243,10 @@ function yt(e, t, s) {
9243
9243
  continue;
9244
9244
  }
9245
9245
  const q = E(se);
9246
- q ? (C(q, V, M, x, !1), Rt(O, q)) : (te.push(V), I += 1);
9246
+ q ? (C(q, V, M, x, !1), Rt(H, q)) : (te.push(V), I += 1);
9247
9247
  }
9248
9248
  const k = (V) => C(V, null, M, x, !1);
9249
- O.forEach(k), i?.sortColumns(Oc.bind(i, M, ne)), n?.sortColumns(Oc.bind(n, x, j)), o.refreshCols(!1, s);
9249
+ H.forEach(k), i?.sortColumns(Oc.bind(i, M, ne)), n?.sortColumns(Oc.bind(n, x, j)), o.refreshCols(!1, s);
9250
9250
  const ee = (V, se, Q = []) => {
9251
9251
  for (const q of se) {
9252
9252
  const re = V(q.colId);
@@ -9306,8 +9306,8 @@ function $h(e, t) {
9306
9306
  for (const u of c)
9307
9307
  d[u.colId] = u;
9308
9308
  return () => {
9309
- const u = (R, E, T, O) => {
9310
- const M = E.map(O), x = T.map(O);
9309
+ const u = (R, E, T, H) => {
9310
+ const M = E.map(H), x = T.map(H);
9311
9311
  if (ws(M, x))
9312
9312
  return;
9313
9313
  const _ = new Set(E);
@@ -9323,8 +9323,8 @@ function $h(e, t) {
9323
9323
  }, h = (R) => {
9324
9324
  const E = [];
9325
9325
  return n.forAllCols((T) => {
9326
- const O = d[T.getColId()];
9327
- O && R(O, T) && E.push(T);
9326
+ const H = d[T.getColId()];
9327
+ H && R(H, T) && E.push(T);
9328
9328
  }), E;
9329
9329
  }, g = (R) => R.getColId();
9330
9330
  u(
@@ -9339,8 +9339,8 @@ function $h(e, t) {
9339
9339
  g
9340
9340
  );
9341
9341
  const f = h((R, E) => {
9342
- const T = R.aggFunc != null, O = T != E.isValueActive(), M = T && R.aggFunc != E.getAggFunc();
9343
- return O || M;
9342
+ const T = R.aggFunc != null, H = T != E.isValueActive(), M = T && R.aggFunc != E.getAggFunc();
9343
+ return H || M;
9344
9344
  });
9345
9345
  f.length > 0 && p0(a, "columnValueChanged", f, t), xo(a, h((R, E) => R.width != E.getActualWidth()), !0, t), Uh(a, h((R, E) => R.pinned != E.getPinned()), t), g0(a, h((R, E) => R.hide == E.isVisible()), t);
9346
9346
  const S = h((R, E) => R.sort != E.getSort() || R.sortIndex != E.getSortIndex());
@@ -14936,9 +14936,9 @@ var Zi = {
14936
14936
  let u, h, g = 0;
14937
14937
  this.invalidateVerticalScroll();
14938
14938
  do {
14939
- const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, C = d.rowHeight, v = r.getPixelOffset(), b = d.rowTop - v, S = b + d.rowHeight, y = this.getVScrollPosition(), R = a.divStretchOffset, E = y.top + R, T = y.bottom + R, O = T - E, M = a.getScrollPositionForPixel(b), x = a.getScrollPositionForPixel(S - O), D = Math.min((M + x) / 2, b), _ = E + p > b, te = T - f < S;
14939
+ const { stickyTopHeight: p, stickyBottomHeight: f } = c, m = d.rowTop, C = d.rowHeight, v = r.getPixelOffset(), b = d.rowTop - v, S = b + d.rowHeight, y = this.getVScrollPosition(), R = a.divStretchOffset, E = y.top + R, T = y.bottom + R, H = T - E, M = a.getScrollPositionForPixel(b), x = a.getScrollPositionForPixel(S - H), D = Math.min((M + x) / 2, b), _ = E + p > b, te = T - f < S;
14940
14940
  let I = null;
14941
- t === "top" ? I = M - p : t === "bottom" ? I = x + f : t === "middle" ? I = D : _ ? I = M - p : te && (x - M > O ? I = M - p : I = x + f), I !== null && (this.setVerticalScrollPosition(I), l.redraw({ afterScroll: !0 })), u = m !== d.rowTop || C !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
14941
+ t === "top" ? I = M - p : t === "bottom" ? I = x + f : t === "middle" ? I = D : _ ? I = M - p : te && (x - M > H ? I = M - p : I = x + f), I !== null && (this.setVerticalScrollPosition(I), l.redraw({ afterScroll: !0 })), u = m !== d.rowTop || C !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
14942
14942
  } while ((u || h) && g < 10);
14943
14943
  if (this.animationFrameSvc?.flushAllFrames(), s < 10 && (d?.stub || !this.beans.rowAutoHeight?.areRowsMeasured())) {
14944
14944
  const p = this.getVScrollPosition().top;
@@ -21456,17 +21456,17 @@ var Fx = class extends P {
21456
21456
  S -= p[R.getId()];
21457
21457
  else {
21458
21458
  v.push(R);
21459
- const O = g[E];
21460
- b += O;
21459
+ const H = g[E];
21460
+ b += H;
21461
21461
  }
21462
21462
  });
21463
21463
  const y = 1 / b;
21464
21464
  v.forEach((R, E) => {
21465
21465
  const T = E === v.length - 1;
21466
- let O;
21467
- T ? O = S : (O = Math.round(g[E] * u * y), S -= O);
21466
+ let H;
21467
+ T ? H = S : (H = Math.round(g[E] * u * y), S -= H);
21468
21468
  const M = R.getMinWidth(), x = R.getMaxWidth();
21469
- O < M ? (O = M, f[R.getId()] = !0, m = !0) : x > 0 && O > x && (O = x, f[R.getId()] = !0, m = !0), p[R.getId()] = O;
21469
+ H < M ? (H = M, f[R.getId()] = !0, m = !0) : x > 0 && H > x && (H = x, f[R.getId()] = !0, m = !0), p[R.getId()] = H;
21470
21470
  });
21471
21471
  }
21472
21472
  for (const v of h) {
@@ -30999,8 +30999,8 @@ var dD = (
30999
30999
  const d = this.getRowBufferInPixels(), u = this.ctrlsSvc.getScrollFeature(), h = this.gos.get("suppressRowVirtualisation");
31000
31000
  let g = !1, p, f;
31001
31001
  do {
31002
- const S = t.getPixelOffset(), { pageFirstPixel: y, pageLastPixel: R } = t.getCurrentPagePixelRange(), E = e.divStretchOffset, T = u.getVScrollPosition(), O = T.top, M = T.bottom;
31003
- h ? (p = y + E, f = R + E) : (p = Math.max(O + S - d, y) + E, f = Math.min(M + S + d, R) + E), this.firstVisibleVPixel = Math.max(O + S, y) + E, this.lastVisibleVPixel = Math.min(M + S, R) + E, g = this.ensureAllRowsInRangeHaveHeightsCalculated(p, f);
31002
+ const S = t.getPixelOffset(), { pageFirstPixel: y, pageLastPixel: R } = t.getCurrentPagePixelRange(), E = e.divStretchOffset, T = u.getVScrollPosition(), H = T.top, M = T.bottom;
31003
+ h ? (p = y + E, f = R + E) : (p = Math.max(H + S - d, y) + E, f = Math.min(M + S + d, R) + E), this.firstVisibleVPixel = Math.max(H + S, y) + E, this.lastVisibleVPixel = Math.min(M + S, R) + E, g = this.ensureAllRowsInRangeHaveHeightsCalculated(p, f);
31004
31004
  } while (g);
31005
31005
  let m = s.getRowIndexAtPixel(p), C = s.getRowIndexAtPixel(f);
31006
31006
  const v = t.getFirstRow(), b = t.getLastRow();
@@ -41474,12 +41474,12 @@ var JT = class extends P {
41474
41474
  te.flex = D ?? null, te.width = _;
41475
41475
  }
41476
41476
  (E || !s) && (m.flex = null);
41477
- const T = u?.orderedColIds, O = !!T?.length && !o?.has("columnOrder"), M = O ? T.map((x) => f(x)) : Object.values(p);
41477
+ const T = u?.orderedColIds, H = !!T?.length && !o?.has("columnOrder"), M = H ? T.map((x) => f(x)) : Object.values(p);
41478
41478
  (M.length || h) && (this.columnStates = M, yt(
41479
41479
  this.beans,
41480
41480
  {
41481
41481
  state: M,
41482
- applyOrder: O,
41482
+ applyOrder: H,
41483
41483
  defaultState: m
41484
41484
  },
41485
41485
  t
@@ -42471,9 +42471,9 @@ var z6 = class extends P {
42471
42471
  continue;
42472
42472
  const T = p.getPreferredWidthForColumn(E, b);
42473
42473
  if (T > 0) {
42474
- const O = v[E.colId] ?? {};
42475
- O.minWidth ?? (O.minWidth = l), O.maxWidth ?? (O.maxWidth = a);
42476
- const M = W6(E, T, O);
42474
+ const H = v[E.colId] ?? {};
42475
+ H.minWidth ?? (H.minWidth = l), H.maxWidth ?? (H.maxWidth = a);
42476
+ const M = W6(E, T, H);
42477
42477
  E.setActualWidth(M, d), m.add(E), C++;
42478
42478
  }
42479
42479
  y.push(E);
@@ -42597,9 +42597,9 @@ var z6 = class extends P {
42597
42597
  const f = p / _t(l);
42598
42598
  let m = p;
42599
42599
  for (let C = l.length - 1; C >= 0; C--) {
42600
- const v = l[C], b = i?.[v.getId()], S = b?.minWidth ?? o?.defaultMinWidth, y = b?.maxWidth ?? o?.defaultMaxWidth, R = v.getMinWidth(), E = v.getMaxWidth(), T = typeof S == "number" && S > R ? S : R, O = typeof y == "number" && y < E ? y : E;
42600
+ const v = l[C], b = i?.[v.getId()], S = b?.minWidth ?? o?.defaultMinWidth, y = b?.maxWidth ?? o?.defaultMaxWidth, R = v.getMinWidth(), E = v.getMaxWidth(), T = typeof S == "number" && S > R ? S : R, H = typeof y == "number" && y < E ? y : E;
42601
42601
  let M = Math.round(v.getActualWidth() * f);
42602
- M < T ? (M = T, h(v), u = !1) : M > O ? (M = O, h(v), u = !1) : C === 0 && (M = m), v.setActualWidth(M, t, !0), m -= M;
42602
+ M < T ? (M = T, h(v), u = !1) : M > H ? (M = H, h(v), u = !1) : C === 0 && (M = m), v.setActualWidth(M, t, !0), m -= M;
42603
42603
  }
42604
42604
  }
42605
42605
  }
@@ -43631,7 +43631,7 @@ function On(e, t, s) {
43631
43631
  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];
43632
43632
  }
43633
43633
  var af = Ci((e, t) => {
43634
- const { registry: s, context: o } = Ge(Ye), i = L(null), n = L(null), r = L(null), a = L(null), l = L(null), c = L(), [d, u] = A(), [h, g] = A(), [p, f] = A(), [m, C] = A(() => new wt()), [v, b] = A(() => new wt("ag-hidden")), [S, y] = A(() => new wt("ag-hidden")), [R, E] = A(() => new wt("ag-invisible"));
43634
+ const { registry: s, context: o } = Ge(Ye), i = O(null), n = O(null), r = O(null), a = O(null), l = O(null), c = O(), [d, u] = A(), [h, g] = A(), [p, f] = A(), [m, C] = A(() => new wt()), [v, b] = A(() => new wt("ag-hidden")), [S, y] = A(() => new wt("ag-hidden")), [R, E] = A(() => new wt("ag-invisible"));
43635
43635
  $a(t, () => ({
43636
43636
  // force new instance when grid tries to refresh
43637
43637
  refresh() {
@@ -43663,14 +43663,14 @@ var af = Ci((e, t) => {
43663
43663
  af,
43664
43664
  e
43665
43665
  ));
43666
- }, []), O = B(() => `ag-cell-wrapper ${m.toString()}`, [m]), M = B(() => `ag-group-expanded ${v.toString()}`, [v]), x = B(
43666
+ }, []), H = B(() => `ag-cell-wrapper ${m.toString()}`, [m]), M = B(() => `ag-group-expanded ${v.toString()}`, [v]), x = B(
43667
43667
  () => `ag-group-contracted ${S.toString()}`,
43668
43668
  [S]
43669
43669
  ), D = B(() => `ag-group-checkbox ${R.toString()}`, [R]), _ = d?.componentFromFramework, te = _ ? d.componentClass : void 0, I = d == null && p != null, ne = ko(p);
43670
43670
  return /* @__PURE__ */ G.createElement(
43671
43671
  "span",
43672
43672
  {
43673
- className: O,
43673
+ className: H,
43674
43674
  ref: T,
43675
43675
  ...e.colDef ? {} : { role: c.current?.getCellAriaRole() }
43676
43676
  },
@@ -44129,7 +44129,7 @@ var UM = 1e3, $M = class {
44129
44129
  }
44130
44130
  }
44131
44131
  }, jM = ({ ctrl: e }) => {
44132
- const t = e.isAlive(), { context: s } = Ge(Ye), [o, i] = A(), [n, r] = A(), a = L(), l = L(null), c = L(null), d = L(null), u = L(), h = L();
44132
+ const t = e.isAlive(), { context: s } = Ge(Ye), [o, i] = A(), [n, r] = A(), a = O(), l = O(null), c = O(null), d = O(null), u = O(), h = O();
44133
44133
  t && !h.current && (h.current = new Si(() => l.current));
44134
44134
  const g = U((C) => {
44135
44135
  if (l.current = C, !C || !e.isAlive() || s.isDestroyed()) {
@@ -44185,7 +44185,7 @@ var UM = 1e3, $M = class {
44185
44185
  () => new wt("ag-header-cell", "ag-floating-filter")
44186
44186
  ), [a, l] = A(() => new wt()), [c, d] = A(
44187
44187
  () => new wt("ag-floating-filter-button", "ag-hidden")
44188
- ), [u, h] = A("false"), [g, p] = A(), [, f] = A(1), m = L(), C = L(null), v = L(null), b = L(null), S = L(null), y = L(), R = L(), E = (V) => {
44188
+ ), [u, h] = A("false"), [g, p] = A(), [, f] = A(1), m = O(), C = O(null), v = O(null), b = O(null), S = O(null), y = O(), R = O(), E = (V) => {
44189
44189
  V != null && y.current && y.current(V);
44190
44190
  }, T = U((V) => {
44191
44191
  if (C.current = V, !V || !e.isAlive() || t.isDestroyed()) {
@@ -44215,7 +44215,7 @@ var UM = 1e3, $M = class {
44215
44215
  () => Ei(g, t, v.current, E),
44216
44216
  [g]
44217
44217
  );
44218
- const O = B(() => n.toString(), [n]), M = B(() => a.toString(), [a]), x = B(() => c.toString(), [c]), D = B(() => !!(g && g.componentFromFramework && Oo(g.componentClass)), [g]), _ = B(() => s.get("reactiveCustomComponents"), []), te = B(() => s.get("enableFilterHandlers"), []), [I, ne] = A();
44218
+ const H = B(() => n.toString(), [n]), M = B(() => a.toString(), [a]), x = B(() => c.toString(), [c]), D = B(() => !!(g && g.componentFromFramework && Oo(g.componentClass)), [g]), _ = B(() => s.get("reactiveCustomComponents"), []), te = B(() => s.get("enableFilterHandlers"), []), [I, ne] = A();
44219
44219
  ve(() => {
44220
44220
  if (g?.componentFromFramework)
44221
44221
  if (_) {
@@ -44225,7 +44225,7 @@ var UM = 1e3, $M = class {
44225
44225
  Jl();
44226
44226
  }, [g]);
44227
44227
  const j = I?.getProps(), k = g?.componentFromFramework, ee = g?.componentClass;
44228
- return /* @__PURE__ */ G.createElement("div", { ref: T, style: o, className: O, role: "gridcell" }, /* @__PURE__ */ G.createElement("div", { ref: v, className: M, role: "presentation" }, k ? _ ? j && /* @__PURE__ */ G.createElement(
44228
+ return /* @__PURE__ */ G.createElement("div", { ref: T, style: o, className: H, role: "gridcell" }, /* @__PURE__ */ G.createElement("div", { ref: v, className: M, role: "presentation" }, k ? _ ? j && /* @__PURE__ */ G.createElement(
44229
44229
  Xl.Provider,
44230
44230
  {
44231
44231
  value: {
@@ -44253,8 +44253,8 @@ var UM = 1e3, $M = class {
44253
44253
  )
44254
44254
  ));
44255
44255
  }, ZM = tt(YM), QM = ({ ctrl: e }) => {
44256
- const { context: t } = Ge(Ye), [s, o] = A(), [i, n] = A(() => new wt()), [r, a] = A(() => new wt()), [l, c] = A("false"), [d, u] = A(), [h, g] = A(), p = L(), f = L(null), m = L(null), C = L(null), v = L(), b = U((O) => {
44257
- if (f.current = O, !O || !e.isAlive() || t.isDestroyed()) {
44256
+ const { context: t } = Ge(Ye), [s, o] = A(), [i, n] = A(() => new wt()), [r, a] = A(() => new wt()), [l, c] = A("false"), [d, u] = A(), [h, g] = A(), p = O(), f = O(null), m = O(null), C = O(null), v = O(), b = U((H) => {
44257
+ if (f.current = H, !H || !e.isAlive() || t.isDestroyed()) {
44258
44258
  p.current = t.destroyBean(p.current);
44259
44259
  return;
44260
44260
  }
@@ -44280,7 +44280,7 @@ var UM = 1e3, $M = class {
44280
44280
  setAriaExpanded: (x) => u(x),
44281
44281
  getUserCompInstance: () => v.current || void 0
44282
44282
  };
44283
- e.setComp(M, O, m.current, C.current, p.current);
44283
+ e.setComp(M, H, m.current, C.current, p.current);
44284
44284
  }, []);
44285
44285
  Lt(() => Ei(h, t, C.current), [h]), ve(() => {
44286
44286
  f.current && e.setDragSource(f.current);
@@ -44291,7 +44291,7 @@ var UM = 1e3, $M = class {
44291
44291
  ), E = h?.componentFromFramework, T = h?.componentClass;
44292
44292
  return /* @__PURE__ */ G.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ G.createElement("div", { ref: C, className: "ag-header-cell-comp-wrapper", role: "presentation" }, E ? S ? /* @__PURE__ */ G.createElement(T, { ...h.params }) : /* @__PURE__ */ G.createElement(T, { ...h.params, ref: v }) : null), /* @__PURE__ */ G.createElement("div", { ref: m, "aria-hidden": l, className: R }));
44293
44293
  }, XM = tt(QM), JM = ({ ctrl: e }) => {
44294
- const { gos: t, context: s } = Ge(Ye), { topOffset: o, rowHeight: i } = B(() => e.getTopAndHeight(), []), n = B(() => t.get("tabIndex"), []), [r, a] = A(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = A(() => i + "px"), [u, h] = A(() => o + "px"), g = L(null), [p, f] = A(() => e.getUpdatedHeaderCtrls()), m = L(), C = L(null), v = U((y) => {
44294
+ const { gos: t, context: s } = Ge(Ye), { topOffset: o, rowHeight: i } = B(() => e.getTopAndHeight(), []), n = B(() => t.get("tabIndex"), []), [r, a] = A(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = A(() => i + "px"), [u, h] = A(() => o + "px"), g = O(null), [p, f] = A(() => e.getUpdatedHeaderCtrls()), m = O(), C = O(null), v = U((y) => {
44295
44295
  if (C.current = y, !y || !e.isAlive() || s.isDestroyed()) {
44296
44296
  m.current = s.destroyBean(m.current);
44297
44297
  return;
@@ -44300,9 +44300,9 @@ var UM = 1e3, $M = class {
44300
44300
  const R = {
44301
44301
  setHeight: (E) => d(E),
44302
44302
  setTop: (E) => h(E),
44303
- setHeaderCtrls: (E, T, O) => {
44303
+ setHeaderCtrls: (E, T, H) => {
44304
44304
  const M = g.current, x = On(M, E, T);
44305
- x !== M && (g.current = x, mi(O, () => f(x)));
44305
+ x !== M && (g.current = x, mi(H, () => f(x)));
44306
44306
  },
44307
44307
  setWidth: (E) => {
44308
44308
  C.current && (C.current.style.width = E);
@@ -44341,7 +44341,7 @@ var UM = 1e3, $M = class {
44341
44341
  p.map(S)
44342
44342
  );
44343
44343
  }, eI = tt(JM), tI = ({ pinned: e }) => {
44344
- const [t, s] = A(!0), [o, i] = A([]), { context: n } = Ge(Ye), r = L(null), a = L(null), l = L(), c = e === "left", d = e === "right", u = !c && !d, h = U((f) => {
44344
+ const [t, s] = A(!0), [o, i] = A([]), { context: n } = Ge(Ye), r = O(null), a = O(null), l = O(), c = e === "left", d = e === "right", u = !c && !d, h = U((f) => {
44345
44345
  if (r.current = f, !f || n.isDestroyed()) {
44346
44346
  l.current = n.destroyBean(l.current);
44347
44347
  return;
@@ -44366,7 +44366,7 @@ var UM = 1e3, $M = class {
44366
44366
  }, []), g = t ? "" : "ag-hidden", p = () => o.map((f) => /* @__PURE__ */ G.createElement(eI, { ctrl: f, key: f.instanceId }));
44367
44367
  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;
44368
44368
  }, Vr = tt(tI), sI = () => {
44369
- const [e, t] = A(() => new wt()), [s, o] = A(), { context: i } = Ge(Ye), n = L(null), r = L(), a = U((d) => {
44369
+ const [e, t] = A(() => new wt()), [s, o] = A(), { context: i } = Ge(Ye), n = O(null), r = O(), a = U((d) => {
44370
44370
  if (n.current = d, !d || i.isDestroyed()) {
44371
44371
  r.current = i.destroyBean(r.current);
44372
44372
  return;
@@ -44442,7 +44442,7 @@ var UM = 1e3, $M = class {
44442
44442
  this.value = e, this.refreshProps();
44443
44443
  }
44444
44444
  }, rI = (e) => {
44445
- const t = L(e), s = L(), o = L(!1), i = L(!1), [, n] = A(0);
44445
+ const t = O(e), s = O(), o = O(!1), i = O(!1), [, n] = A(0);
44446
44446
  o.current && (i.current = !0), ve(() => (o.current || (s.current = t.current(), o.current = !0), n((r) => r + 1), () => {
44447
44447
  i.current && s.current?.();
44448
44448
  }), []);
@@ -44543,7 +44543,7 @@ var UM = 1e3, $M = class {
44543
44543
  cellCtrl: e,
44544
44544
  parent: t
44545
44545
  }) => {
44546
- const s = L(), o = B(() => {
44546
+ const s = O(), o = B(() => {
44547
44547
  const { loadingComp: i } = e.getDeferLoadingCellRenderer();
44548
44548
  return i ? {
44549
44549
  value: void 0,
@@ -44564,11 +44564,11 @@ var UM = 1e3, $M = class {
44564
44564
  const o = Ge(Ye), { context: i } = o, {
44565
44565
  column: { colIdSanitised: n },
44566
44566
  instanceId: r
44567
- } = e, a = L(), [l, c] = A(
44567
+ } = e, a = O(), [l, c] = A(
44568
44568
  () => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
44569
- ), [d, u] = A(), [h, g] = A(1), [p, f] = A(), [m, C] = A(!1), [v, b] = A(!1), [S, y] = A(!1), [R, E] = A(), T = B(() => e.isForceWrapper(), [e]), O = B(() => e.getCellAriaRole(), [e]), M = L(null), x = L(null), D = L(null), _ = L(), te = L(), I = L(), ne = L([]), j = L(), k = L(), [ee, V] = A(0), se = U((de) => {
44569
+ ), [d, u] = A(), [h, g] = A(1), [p, f] = A(), [m, C] = A(!1), [v, b] = A(!1), [S, y] = A(!1), [R, E] = A(), T = B(() => e.isForceWrapper(), [e]), H = B(() => e.getCellAriaRole(), [e]), M = O(null), x = O(null), D = O(null), _ = O(), te = O(), I = O(), ne = O([]), j = O(), k = O(), [ee, V] = A(0), se = U((de) => {
44570
44570
  k.current = de, V((be) => be + 1);
44571
- }, []), Q = l != null && (m || S || v) && (d == null || !!d.popup), q = T || Q, re = B(() => e.getCellValueClass(), [e]), H = U(
44571
+ }, []), Q = l != null && (m || S || v) && (d == null || !!d.popup), q = T || Q, re = B(() => e.getCellValueClass(), [e]), L = U(
44572
44572
  (de) => {
44573
44573
  if (te.current = de, de) {
44574
44574
  const be = de.isCancelBeforeStart && de.isCancelBeforeStart();
@@ -44578,9 +44578,9 @@ var UM = 1e3, $M = class {
44578
44578
  }
44579
44579
  },
44580
44580
  [e]
44581
- ), ie = L();
44581
+ ), ie = O();
44582
44582
  ie.current || (ie.current = new Si(() => M.current)), df(l, q, k.current, ee, _, M);
44583
- const he = L();
44583
+ const he = O();
44584
44584
  Lt(() => {
44585
44585
  const de = he.current, be = l;
44586
44586
  if (he.current = l, de == null || de.compDetails == null || be == null || be.compDetails == null)
@@ -44598,11 +44598,11 @@ var UM = 1e3, $M = class {
44598
44598
  if (!ce)
44599
44599
  return;
44600
44600
  const me = ce.getGui();
44601
- H(ce), ze || ((T ? I : M).current?.appendChild(me), ce.afterGuiAttached?.()), E(ce);
44601
+ L(ce), ze || ((T ? I : M).current?.appendChild(me), ce.afterGuiAttached?.()), E(ce);
44602
44602
  }), () => {
44603
44603
  je.then((ce) => {
44604
44604
  const me = ce.getGui();
44605
- e.disableEditorTooltipFeature(), i.destroyBean(ce), H(void 0), E(void 0), me?.remove();
44605
+ e.disableEditorTooltipFeature(), i.destroyBean(ce), L(void 0), E(void 0), me?.remove();
44606
44606
  });
44607
44607
  };
44608
44608
  }, [d]);
@@ -44713,27 +44713,27 @@ var UM = 1e3, $M = class {
44713
44713
  return /* @__PURE__ */ G.createElement(kf, { fallback: /* @__PURE__ */ G.createElement(uI, { cellCtrl: e, parent: M }) }, ke ? /* @__PURE__ */ G.createElement(ze, { ...de.params, key: h }) : /* @__PURE__ */ G.createElement(ze, { ...de.params, key: h, ref: D }));
44714
44714
  }
44715
44715
  }, Vt = () => {
44716
- const de = () => l == null ? null : q ? /* @__PURE__ */ G.createElement("span", { role: "presentation", id: `cell-${r}`, className: re, ref: se }, ut()) : ut(), be = (ze) => cI(ze, H, M.current, e, R);
44716
+ const de = () => l == null ? null : q ? /* @__PURE__ */ G.createElement("span", { role: "presentation", id: `cell-${r}`, className: re, ref: se }, ut()) : ut(), be = (ze) => cI(ze, L, M.current, e, R);
44717
44717
  return d != null ? d.popup ? /* @__PURE__ */ G.createElement(G.Fragment, null, de(), be(d)) : be(d) : de();
44718
- }, ss = () => /* @__PURE__ */ G.createElement("div", { ref: fe, style: p, role: O, "col-id": n }, q ? /* @__PURE__ */ G.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: Be }, Vt()) : Vt());
44718
+ }, ss = () => /* @__PURE__ */ G.createElement("div", { ref: fe, style: p, role: H, "col-id": n }, q ? /* @__PURE__ */ G.createElement("div", { className: "ag-cell-wrapper", role: "presentation", ref: Be }, Vt()) : Vt());
44719
44719
  return e.isCellSpanning() ? /* @__PURE__ */ G.createElement("div", { ref: St, className: "ag-spanned-cell-wrapper", role: "presentation" }, ss()) : ss();
44720
44720
  }, gI = tt(hI), pI = ({ rowCtrl: e, containerType: t }) => {
44721
- const { context: s, gos: o, editSvc: i } = Ge(Ye), n = Ge(of) === "default", r = L(), a = L(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = A(
44721
+ const { context: s, gos: o, editSvc: i } = Ge(Ye), n = Ge(of) === "default", r = O(), a = O(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = A(
44722
44722
  () => c ? e.rowNode.getRowIndexString() : null
44723
- ), [h, g] = A(() => e.rowId), [p, f] = A(() => e.businessKey), [m, C] = A(() => e.rowStyles), v = L(null), [b, S] = A(() => null), [y, R] = A(), [E, T] = A(
44723
+ ), [h, g] = A(() => e.rowId), [p, f] = A(() => e.businessKey), [m, C] = A(() => e.rowStyles), v = O(null), [b, S] = A(() => null), [y, R] = A(), [E, T] = A(
44724
44724
  () => c ? e.getInitialRowTop(t) : void 0
44725
- ), [O, M] = A(
44725
+ ), [H, M] = A(
44726
44726
  () => c ? e.getInitialTransform(t) : void 0
44727
- ), x = L(null), D = L(), _ = L(), te = L(!1), [I, ne] = A(0);
44727
+ ), x = O(null), D = O(), _ = O(), te = O(!1), [I, ne] = A(0);
44728
44728
  ve(() => {
44729
44729
  if (te.current || !y || I > 10)
44730
44730
  return;
44731
44731
  const fe = x.current?.firstChild;
44732
44732
  fe ? (e.setupDetailRowAutoHeight(fe), te.current = !0) : ne((St) => St + 1);
44733
44733
  }, [y, I]);
44734
- const j = L();
44734
+ const j = O();
44735
44735
  j.current || (j.current = new Si(() => x.current));
44736
- const k = L(() => {
44736
+ const k = O(() => {
44737
44737
  }), ee = U((fe) => (k.current = fe, () => {
44738
44738
  k.current = () => {
44739
44739
  };
@@ -44787,9 +44787,9 @@ var UM = 1e3, $M = class {
44787
44787
  [y]
44788
44788
  );
44789
44789
  const q = B(() => {
44790
- const fe = { top: E, transform: O };
44790
+ const fe = { top: E, transform: H };
44791
44791
  return Object.assign(fe, m), fe;
44792
- }, [E, O, m]), re = l && y?.componentFromFramework, H = !l && se != null, ie = B(() => !!(y?.componentFromFramework && Oo(y.componentClass)), [y]), he = L(!1);
44792
+ }, [E, H, m]), re = l && y?.componentFromFramework, L = !l && se != null, ie = B(() => !!(y?.componentFromFramework && Oo(y.componentClass)), [y]), he = O(!1);
44793
44793
  ve(() => {
44794
44794
  he.current = ie && !!y && !!o.get("reactiveCustomComponents");
44795
44795
  }, [ie, y]);
@@ -44815,15 +44815,15 @@ var UM = 1e3, $M = class {
44815
44815
  "row-id": h,
44816
44816
  "row-business-key": p
44817
44817
  },
44818
- H ? Be() : re ? st() : null
44818
+ L ? Be() : re ? st() : null
44819
44819
  );
44820
44820
  }, Zd = tt(pI), fI = ({ name: e }) => {
44821
- const { context: t, gos: s } = Ge(Ye), o = B(() => Ri(e), [e]), i = L(null), n = L(null), r = L(null), a = L([]), l = L([]), [c, d] = A(() => []), u = !!s.get("enableCellSpan") && !!o.getSpannedRowCtrls, h = L([]), g = L([]), [p, f] = A(() => []), m = L(!1), C = L(), v = B(() => pt("ag-viewport", Pg(e)), [e]), b = B(() => pt(Xi(e)), [e]), S = B(() => pt("ag-spanning-container", tR(e)), [e]), y = o.type === "center" || u, R = y ? i : n;
44821
+ const { context: t, gos: s } = Ge(Ye), o = B(() => Ri(e), [e]), i = O(null), n = O(null), r = O(null), a = O([]), l = O([]), [c, d] = A(() => []), u = !!s.get("enableCellSpan") && !!o.getSpannedRowCtrls, h = O([]), g = O([]), [p, f] = A(() => []), m = O(!1), C = O(), v = B(() => pt("ag-viewport", Pg(e)), [e]), b = B(() => pt(Xi(e)), [e]), S = B(() => pt("ag-spanning-container", tR(e)), [e]), y = o.type === "center" || u, R = y ? i : n;
44822
44822
  Es(" AG Row Container " + e + " ", R);
44823
44823
  const E = U(() => {
44824
44824
  const I = !y || i.current != null, ne = n.current != null, j = !u || r.current != null;
44825
44825
  return I && ne && j;
44826
- }, []), T = U(() => i.current == null && n.current == null && r.current == null, []), O = U(() => {
44826
+ }, []), T = U(() => i.current == null && n.current == null && r.current == null, []), H = U(() => {
44827
44827
  if (T() && (C.current = t.destroyBean(C.current)), !t.isDestroyed() && E()) {
44828
44828
  const I = (k) => {
44829
44829
  const ee = On(
@@ -44873,19 +44873,19 @@ var UM = 1e3, $M = class {
44873
44873
  }
44874
44874
  }, [E, T]), M = U(
44875
44875
  (I) => {
44876
- n.current = I, O();
44876
+ n.current = I, H();
44877
44877
  },
44878
- [O]
44878
+ [H]
44879
44879
  ), x = U(
44880
44880
  (I) => {
44881
- r.current = I, O();
44881
+ r.current = I, H();
44882
44882
  },
44883
- [O]
44883
+ [H]
44884
44884
  ), D = U(
44885
44885
  (I) => {
44886
- i.current = I, O();
44886
+ i.current = I, H();
44887
44887
  },
44888
- [O]
44888
+ [H]
44889
44889
  ), _ = () => /* @__PURE__ */ G.createElement(
44890
44890
  "div",
44891
44891
  {
@@ -44900,13 +44900,13 @@ var UM = 1e3, $M = class {
44900
44900
  const te = () => /* @__PURE__ */ G.createElement("div", { className: S, ref: x, role: "presentation" }, p.map((I) => /* @__PURE__ */ G.createElement(Zd, { rowCtrl: I, containerType: o.type, key: I.instanceId })));
44901
44901
  return /* @__PURE__ */ G.createElement("div", { className: v, ref: D, role: "rowgroup" }, _(), u ? te() : null);
44902
44902
  }, mI = tt(fI), CI = () => {
44903
- const e = Ge(Ye), { context: t, overlays: s } = e, [o, i] = A(""), [n, r] = A(0), [a, l] = A(0), [c, d] = A("0px"), [u, h] = A("0px"), [g, p] = A("100%"), [f, m] = A("0px"), [C, v] = A("0px"), [b, S] = A("100%"), [y, R] = A(!0), [E, T] = A(!0), [O, M] = A(null), [x, D] = A(""), [_, te] = A(null), [I, ne] = A("ag-layout-normal"), j = L();
44903
+ const e = Ge(Ye), { context: t, overlays: s } = e, [o, i] = A(""), [n, r] = A(0), [a, l] = A(0), [c, d] = A("0px"), [u, h] = A("0px"), [g, p] = A("100%"), [f, m] = A("0px"), [C, v] = A("0px"), [b, S] = A("100%"), [y, R] = A(!0), [E, T] = A(!0), [H, M] = A(null), [x, D] = A(""), [_, te] = A(null), [I, ne] = A("ag-layout-normal"), j = O();
44904
44904
  j.current || (j.current = new Si(() => k.current));
44905
- const k = L(null), ee = L(null), V = L(null), se = L(null), Q = L(null), q = L(null), re = L(null), H = L([]), ie = L([]);
44905
+ const k = O(null), ee = O(null), V = O(null), se = O(null), Q = O(null), q = O(null), re = O(null), L = O([]), ie = O([]);
44906
44906
  Es(" AG Grid Body ", k), Es(" AG Pinned Top ", ee), Es(" AG Sticky Top ", V), Es(" AG Middle ", q), Es(" AG Pinned Bottom ", re);
44907
44907
  const he = U((me) => {
44908
44908
  if (k.current = me, !me || t.isDestroyed()) {
44909
- H.current = t.destroyBeans(H.current);
44909
+ L.current = t.destroyBeans(L.current);
44910
44910
  for (const Pe of ie.current)
44911
44911
  Pe();
44912
44912
  ie.current = [];
@@ -44916,7 +44916,7 @@ var UM = 1e3, $M = class {
44916
44916
  Pe.appendChild(rt), ie.current.push(() => rt.remove());
44917
44917
  }, os = (Pe) => {
44918
44918
  const rt = t.createBean(new Pe());
44919
- return H.current.push(rt), rt;
44919
+ return L.current.push(rt), rt;
44920
44920
  }, We = (Pe, rt, yf) => {
44921
44921
  Ze(Pe, document.createComment(yf)), Ze(Pe, os(rt).getGui());
44922
44922
  };
@@ -44957,7 +44957,7 @@ var UM = 1e3, $M = class {
44957
44957
  setStickyBottomWidth: S,
44958
44958
  setGridRootRole: (Pe) => me.setAttribute("role", Pe)
44959
44959
  }, tc = t.createBean(new fR());
44960
- H.current.push(tc), tc.setComp(
44960
+ L.current.push(tc), tc.setComp(
44961
44961
  Sf,
44962
44962
  me,
44963
44963
  q.current,
@@ -44971,10 +44971,10 @@ var UM = 1e3, $M = class {
44971
44971
  "ag-body-viewport",
44972
44972
  o,
44973
44973
  I,
44974
- O,
44974
+ H,
44975
44975
  _
44976
44976
  ),
44977
- [o, I, O, _]
44977
+ [o, I, H, _]
44978
44978
  ), fe = B(() => pt("ag-body", I), [I]), St = B(
44979
44979
  () => pt("ag-floating-top", y ? "ag-invisible" : null, _),
44980
44980
  [_, y]
@@ -45044,7 +45044,7 @@ var UM = 1e3, $M = class {
45044
45044
  children: ["bottomLeft", "bottomCenter", "bottomRight", "bottomFullWidth"]
45045
45045
  }));
45046
45046
  }, vI = tt(CI), wI = (e, t) => {
45047
- const { children: s, eFocusableElement: o, onTabKeyDown: i, gridCtrl: n, forceFocusOutWhenTabGuardsAreEmpty: r, isEmpty: a } = e, { context: l } = Ge(Ye), c = L(null), d = L(null), u = L(), h = (C) => {
45047
+ const { children: s, eFocusableElement: o, onTabKeyDown: i, gridCtrl: n, forceFocusOutWhenTabGuardsAreEmpty: r, isEmpty: a } = e, { context: l } = Ge(Ye), c = O(null), d = O(null), u = O(), h = (C) => {
45048
45048
  const v = C == null ? void 0 : parseInt(C, 10).toString();
45049
45049
  for (const b of [c, d])
45050
45050
  v === void 0 ? b.current?.removeAttribute("tabindex") : b.current?.setAttribute("tabindex", v);
@@ -45100,8 +45100,8 @@ var UM = 1e3, $M = class {
45100
45100
  };
45101
45101
  return /* @__PURE__ */ G.createElement(G.Fragment, null, m("top"), s, m("bottom"));
45102
45102
  }, bI = Ci(wI), SI = tt(bI), yI = ({ context: e }) => {
45103
- const [t, s] = A(""), [o, i] = A(""), [n, r] = A(null), [a, l] = A(null), [c, d] = A(!1), [u, h] = A(), g = L(), p = L(null), f = L(), [m, C] = A(null), v = L(() => {
45104
- }), b = L(), S = L([]), y = U(() => {
45103
+ const [t, s] = A(""), [o, i] = A(""), [n, r] = A(null), [a, l] = A(null), [c, d] = A(!1), [u, h] = A(), g = O(), p = O(null), f = O(), [m, C] = A(null), v = O(() => {
45104
+ }), b = O(), S = O([]), y = U(() => {
45105
45105
  }, []);
45106
45106
  Es(" AG Grid ", p);
45107
45107
  const R = U((D) => {
@@ -45173,7 +45173,7 @@ var UM = 1e3, $M = class {
45173
45173
  ), T = B(
45174
45174
  () => pt("ag-root-wrapper-body", "ag-focus-managed", o),
45175
45175
  [o]
45176
- ), O = B(
45176
+ ), H = B(
45177
45177
  () => ({
45178
45178
  userSelect: a ?? "",
45179
45179
  WebkitUserSelect: a ?? "",
@@ -45183,7 +45183,7 @@ var UM = 1e3, $M = class {
45183
45183
  ), M = U((D) => {
45184
45184
  f.current = D, h(D !== null);
45185
45185
  }, []), x = U(() => !g.current?.isFocusable(), []);
45186
- return /* @__PURE__ */ G.createElement("div", { ref: R, className: E, style: O, role: "presentation" }, /* @__PURE__ */ G.createElement("div", { className: T, ref: C, role: "presentation" }, c && m && !e.isDestroyed() && /* @__PURE__ */ G.createElement(Ye.Provider, { value: e.getBeans() }, /* @__PURE__ */ G.createElement(
45186
+ return /* @__PURE__ */ G.createElement("div", { ref: R, className: E, style: H, role: "presentation" }, /* @__PURE__ */ G.createElement("div", { className: T, ref: C, role: "presentation" }, c && m && !e.isDestroyed() && /* @__PURE__ */ G.createElement(Ye.Provider, { value: e.getBeans() }, /* @__PURE__ */ G.createElement(
45187
45187
  SI,
45188
45188
  {
45189
45189
  ref: M,
@@ -45239,7 +45239,7 @@ var UM = 1e3, $M = class {
45239
45239
  componentWrappingElement: void 0,
45240
45240
  ...uf
45241
45241
  }, hf = new Set(Object.keys(FI)), EI = new Set(Object.keys(uf)), gf = (e) => {
45242
- const t = L(), s = L(null), o = L(null), i = L([]), n = L([]), r = L(e), a = L(), l = L(), c = L(!1), [d, u] = A(void 0), [, h] = A(0), g = U((C) => {
45242
+ const t = O(), s = O(null), o = O(null), i = O([]), n = O([]), r = O(e), a = O(), l = O(), c = O(!1), [d, u] = A(void 0), [, h] = A(0), g = U((C) => {
45243
45243
  if (s.current = C, !C) {
45244
45244
  for (const x of i.current)
45245
45245
  x();
@@ -45291,7 +45291,7 @@ var UM = 1e3, $M = class {
45291
45291
  D && e.passGridApi?.(D);
45292
45292
  }
45293
45293
  );
45294
- }, O = (x) => {
45294
+ }, H = (x) => {
45295
45295
  x.getBean("ctrlsSvc").whenReady(
45296
45296
  {
45297
45297
  addDestroyFunc: (D) => {
@@ -45309,7 +45309,7 @@ var UM = 1e3, $M = class {
45309
45309
  C,
45310
45310
  b,
45311
45311
  T,
45312
- O,
45312
+ H,
45313
45313
  E
45314
45314
  ), i.current.push(() => {
45315
45315
  t.current = void 0;
@@ -45395,7 +45395,7 @@ var PI = class extends YD {
45395
45395
  return new lf(e, this.parent, t, i);
45396
45396
  }
45397
45397
  }, TI = Ci((e, t) => {
45398
- const s = Ge(Ye), { registry: o, context: i, gos: n, rowModel: r } = s, [a, l] = A(() => new wt()), [c, d] = A(() => new wt()), [u, h] = A(), [g, p] = A(), f = L(), m = L(null), C = L(), v = B(
45398
+ const s = Ge(Ye), { registry: o, context: i, gos: n, rowModel: r } = s, [a, l] = A(() => new wt()), [c, d] = A(() => new wt()), [u, h] = A(), [g, p] = A(), f = O(), m = O(null), C = O(), v = B(
45399
45399
  () => Fb(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
45400
45400
  [e]
45401
45401
  ), b = B(() => a.toString() + " ag-details-row", [a]), S = B(() => c.toString() + " ag-details-grid", [c]);
@@ -45415,8 +45415,8 @@ var PI = class extends YD {
45415
45415
  setDetailGrid: (M) => h(M),
45416
45416
  setRowData: (M) => p(M),
45417
45417
  getGui: () => m.current
45418
- }, O = o.createDynamicBean("detailCellRendererCtrl", !0);
45419
- if (O && (i.createBean(O), O.init(T, e), f.current = O, n.get("detailRowAutoHeight"))) {
45418
+ }, H = o.createDynamicBean("detailCellRendererCtrl", !0);
45419
+ if (H && (i.createBean(H), H.init(T, e), f.current = H, n.get("detailRowAutoHeight"))) {
45420
45420
  const M = () => {
45421
45421
  if (m.current == null)
45422
45422
  return;
@@ -45598,7 +45598,7 @@ const OI = ({
45598
45598
  }
45599
45599
  },
45600
45600
  [v, d]
45601
- ), O = U(() => /* @__PURE__ */ w("div", { className: "flex items-center justify-center h-full header-checkbox-container", children: /* @__PURE__ */ w(
45601
+ ), H = U(() => /* @__PURE__ */ w("div", { className: "flex items-center justify-center h-full header-checkbox-container", children: /* @__PURE__ */ w(
45602
45602
  an,
45603
45603
  {
45604
45604
  id: "header-select-all",
@@ -45691,9 +45691,9 @@ const OI = ({
45691
45691
  suppressMenu: !0,
45692
45692
  borderless: !0,
45693
45693
  cellRenderer: x,
45694
- headerComponent: O
45694
+ headerComponent: H
45695
45695
  }),
45696
- [x, O]
45696
+ [x, H]
45697
45697
  ), te = B(() => {
45698
45698
  const j = (e ?? []).map(D);
45699
45699
  return r ? [_, ...j] : j;
@@ -45924,11 +45924,11 @@ const OI = ({
45924
45924
  columnDefs: R,
45925
45925
  filterable: E = !0,
45926
45926
  ...T
45927
- } = n ?? {}, O = R ?? y, M = B(() => E ? O : O.map((I) => ({
45927
+ } = n ?? {}, H = R ?? y, M = B(() => E ? H : H.map((I) => ({
45928
45928
  ...I,
45929
45929
  filter: !1,
45930
45930
  floatingFilter: !1
45931
- })), [O, E]), x = U(
45931
+ })), [H, E]), x = U(
45932
45932
  (I) => {
45933
45933
  d(I.path), a?.(I.path);
45934
45934
  },
@@ -46142,7 +46142,7 @@ const OI = ({
46142
46142
  disabled: a,
46143
46143
  onChange: l
46144
46144
  }) => {
46145
- const c = L(null), [d, u] = A(e), [h, g] = A(""), [p, f] = A(!1), m = (b) => {
46145
+ const c = O(null), [d, u] = A(e), [h, g] = A(""), [p, f] = A(!1), m = (b) => {
46146
46146
  const S = b.trim().replace(/,$/, "");
46147
46147
  if (S && !d.includes(S)) {
46148
46148
  const y = [S, ...d];
@@ -46252,27 +46252,27 @@ const OI = ({
46252
46252
  onClose: f,
46253
46253
  onChange: m
46254
46254
  }) => {
46255
- const [C, v] = A(!1), [b, S] = A(""), y = Ua(), R = s !== void 0, [E, T] = A(o), O = R ? s : E, M = B(() => t ? Array.isArray(O) ? O : [] : typeof O == "string" ? [O] : [], [O, t]), x = B(() => {
46256
- const H = b.trim().toLowerCase();
46257
- return H ? e.filter((ie) => ie.label.toLowerCase().includes(H)) : e;
46255
+ const [C, v] = A(!1), [b, S] = A(""), y = Ua(), R = s !== void 0, [E, T] = A(o), H = R ? s : E, M = B(() => t ? Array.isArray(H) ? H : [] : typeof H == "string" ? [H] : [], [H, t]), x = B(() => {
46256
+ const L = b.trim().toLowerCase();
46257
+ return L ? e.filter((ie) => ie.label.toLowerCase().includes(L)) : e;
46258
46258
  }, [e, b]);
46259
46259
  ve(() => {
46260
46260
  C || S("");
46261
46261
  }, [C]);
46262
46262
  const D = U(
46263
- (H) => {
46264
- R || T(H), m?.(H);
46263
+ (L) => {
46264
+ R || T(L), m?.(L);
46265
46265
  },
46266
46266
  [R, m]
46267
- ), _ = (H) => {
46267
+ ), _ = (L) => {
46268
46268
  if (t) {
46269
46269
  const ie = new Set(M);
46270
- ie.has(H) ? ie.delete(H) : ie.add(H), D(Array.from(ie));
46270
+ ie.has(L) ? ie.delete(L) : ie.add(L), D(Array.from(ie));
46271
46271
  } else
46272
- D(H), v(!1);
46272
+ D(L), v(!1);
46273
46273
  }, te = U(
46274
- (H, ie) => {
46275
- if (H.stopPropagation(), !t) {
46274
+ (L, ie) => {
46275
+ if (L.stopPropagation(), !t) {
46276
46276
  D("");
46277
46277
  return;
46278
46278
  }
@@ -46281,22 +46281,22 @@ const OI = ({
46281
46281
  },
46282
46282
  [t, M, D]
46283
46283
  ), I = B(
46284
- () => x.filter((H) => !H.disabled),
46284
+ () => x.filter((L) => !L.disabled),
46285
46285
  [x]
46286
46286
  ), ne = B(
46287
- () => I.filter((H) => M.includes(H.value)).length,
46287
+ () => I.filter((L) => M.includes(L.value)).length,
46288
46288
  [I, M]
46289
46289
  ), j = I.length > 0 && ne === I.length, k = ne > 0 && !j, ee = () => {
46290
46290
  if (!(!t || I.length === 0))
46291
46291
  if (j) {
46292
- const H = new Set(I.map((he) => he.value)), ie = M.filter((he) => !H.has(he));
46292
+ const L = new Set(I.map((he) => he.value)), ie = M.filter((he) => !L.has(he));
46293
46293
  D(ie);
46294
46294
  } else {
46295
- const H = new Set(M);
46296
- I.forEach((ie) => H.add(ie.value)), D(Array.from(H));
46295
+ const L = new Set(M);
46296
+ I.forEach((ie) => L.add(ie.value)), D(Array.from(L));
46297
46297
  }
46298
46298
  }, V = M.length > 0, se = !t && V ? M[0] : void 0, Q = B(
46299
- () => se ? e.find((H) => H.value === se) : void 0,
46299
+ () => se ? e.find((L) => L.value === se) : void 0,
46300
46300
  [e, se]
46301
46301
  ), q = U(() => !t || M.length === 0 ? null : /* @__PURE__ */ w(
46302
46302
  pf,
@@ -46343,8 +46343,8 @@ const OI = ({
46343
46343
  ariaLabel: "Close select",
46344
46344
  cssClass: "shrink-0",
46345
46345
  iconBefore: /* @__PURE__ */ w(vi, { size: 16 }),
46346
- onClick: (H) => {
46347
- f?.(H), v(!1);
46346
+ onClick: (L) => {
46347
+ f?.(L), v(!1);
46348
46348
  }
46349
46349
  }
46350
46350
  )
@@ -46367,53 +46367,56 @@ const OI = ({
46367
46367
  title: c,
46368
46368
  description: d
46369
46369
  }
46370
- ) }) : x.map((H) => {
46371
- const ie = M.includes(H.value);
46372
- return t ? /* @__PURE__ */ w(
46370
+ ) }) : x.map((L) => {
46371
+ const ie = M.includes(L.value);
46372
+ return t ? /* @__PURE__ */ $(
46373
46373
  "div",
46374
46374
  {
46375
46375
  className: K(
46376
46376
  Wr,
46377
46377
  ie && YI,
46378
- H.disabled && Qd,
46378
+ L.disabled && Qd,
46379
46379
  "w-full"
46380
46380
  ),
46381
- children: /* @__PURE__ */ w(
46382
- an,
46383
- {
46384
- id: `${y}-${H.value}`,
46385
- label: /* @__PURE__ */ $("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
46386
- H.icon && /* @__PURE__ */ w(Fe, { icon: H.icon }),
46387
- /* @__PURE__ */ w("span", { className: "truncate", children: H.label })
46388
- ] }),
46389
- checked: ie,
46390
- disabled: H.disabled,
46391
- onChange: () => !H.disabled && _(H.value),
46392
- ariaLabel: H.label
46393
- }
46394
- )
46381
+ children: [
46382
+ /* @__PURE__ */ w(
46383
+ an,
46384
+ {
46385
+ id: `${y}-${L.value}`,
46386
+ label: /* @__PURE__ */ $("span", { className: "flex w-full flex-1 min-w-0 items-center gap-2 text-primary", children: [
46387
+ L.icon && /* @__PURE__ */ w(Fe, { icon: L.icon }),
46388
+ /* @__PURE__ */ w("span", { className: "truncate", children: L.label })
46389
+ ] }),
46390
+ checked: ie,
46391
+ disabled: L.disabled,
46392
+ onChange: () => !L.disabled && _(L.value),
46393
+ ariaLabel: L.label
46394
+ }
46395
+ ),
46396
+ L.description && /* @__PURE__ */ w("div", { className: "text-secondary dial-small", children: L.description })
46397
+ ]
46395
46398
  },
46396
- H.value
46399
+ L.value
46397
46400
  ) : /* @__PURE__ */ w(
46398
46401
  "button",
46399
46402
  {
46400
46403
  role: "option",
46401
46404
  type: "button",
46402
46405
  "aria-selected": ie,
46403
- "aria-disabled": !!H.disabled,
46404
- disabled: H.disabled,
46406
+ "aria-disabled": !!L.disabled,
46407
+ disabled: L.disabled,
46405
46408
  className: K(
46406
46409
  Wr,
46407
46410
  ie && ZI,
46408
- H.disabled && Qd
46411
+ L.disabled && Qd
46409
46412
  ),
46410
- onClick: () => !H.disabled && _(H.value),
46413
+ onClick: () => !L.disabled && _(L.value),
46411
46414
  children: /* @__PURE__ */ $("div", { className: "flex items-center gap-2 w-full", children: [
46412
- H.icon && /* @__PURE__ */ w(Fe, { icon: H.icon }),
46413
- /* @__PURE__ */ w(Zt, { text: H.label })
46415
+ L.icon && /* @__PURE__ */ w(Fe, { icon: L.icon }),
46416
+ /* @__PURE__ */ w(Zt, { text: L.label })
46414
46417
  ] })
46415
46418
  },
46416
- H.value
46419
+ L.value
46417
46420
  );
46418
46421
  }) })
46419
46422
  ]
@@ -46431,7 +46434,7 @@ const OI = ({
46431
46434
  h && "opacity-75 !cursor-not-allowed",
46432
46435
  g
46433
46436
  ),
46434
- onClick: () => !h && v((H) => !H),
46437
+ onClick: () => !h && v((L) => !L),
46435
46438
  children: [
46436
46439
  /* @__PURE__ */ w("div", { className: "flex min-w-0 items-center gap-2 text-primary", children: re() }),
46437
46440
  /* @__PURE__ */ w(
@@ -47075,7 +47078,7 @@ const hk = function(t, s, o) {
47075
47078
  fileCountError: l,
47076
47079
  getIsFileFormatError: c
47077
47080
  }) => {
47078
- const d = L(null), u = L(null), [h, g] = A([]), [p, f] = A(!1), m = U(
47081
+ const d = O(null), u = O(null), [h, g] = A([]), [p, f] = A(!1), m = U(
47079
47082
  (x) => {
47080
47083
  const D = x.target.files;
47081
47084
  if (D && D.length > 0) {
@@ -47112,7 +47115,7 @@ const hk = function(t, s, o) {
47112
47115
  x?.preventDefault();
47113
47116
  const D = Array.from(x.dataTransfer?.items ?? []);
47114
47117
  f(!!c?.(D)), g(D);
47115
- }, O = (x) => {
47118
+ }, H = (x) => {
47116
47119
  x.target === x.currentTarget && b();
47117
47120
  }, M = K(
47118
47121
  "border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",
@@ -47127,7 +47130,7 @@ const hk = function(t, s, o) {
47127
47130
  className: M,
47128
47131
  ref: d,
47129
47132
  onDragOver: T,
47130
- onDragLeave: O,
47133
+ onDragLeave: H,
47131
47134
  children: [
47132
47135
  /* @__PURE__ */ $(
47133
47136
  "label",
@@ -47231,7 +47234,7 @@ const hk = function(t, s, o) {
47231
47234
  addButtonLabel: d,
47232
47235
  ...u
47233
47236
  }) => {
47234
- const h = L(null), g = () => h.current?.click(), p = () => {
47237
+ const h = O(null), g = () => h.current?.click(), p = () => {
47235
47238
  e([]);
47236
47239
  }, f = U(
47237
47240
  (C) => C?.some(