@epam/ai-dial-ui-kit 0.6.0-rc.61 → 0.6.0-rc.62

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.
@@ -199,14 +199,14 @@ const Nd = "-", Nw = (e) => {
199
199
  }
200
200
  C = !1;
201
201
  }
202
- const w = n(h).join(":"), b = g ? w + Fc : w, y = b + v;
203
- if (r.includes(y))
202
+ const w = n(h).join(":"), b = g ? w + Fc : w, S = b + v;
203
+ if (r.includes(S))
204
204
  continue;
205
- r.push(y);
206
- const S = o(v, C);
207
- for (let R = 0; R < S.length; ++R) {
208
- const F = S[R];
209
- r.push(b + F);
205
+ r.push(S);
206
+ const y = o(v, C);
207
+ for (let R = 0; R < y.length; ++R) {
208
+ const x = y[R];
209
+ r.push(b + x);
210
210
  }
211
211
  l = d + (l.length > 0 ? " " + l : l);
212
212
  }
@@ -258,7 +258,7 @@ const st = (e) => {
258
258
  const i = bp.exec(e);
259
259
  return i ? i[1] ? t(i[1]) : s : !1;
260
260
  }, yp = (e) => e === "position" || e === "percentage", Rp = (e) => e === "image" || e === "url", xp = (e) => e === "length" || e === "size" || e === "bg-size", Fp = (e) => e === "length", h1 = (e) => e === "number", g1 = (e) => e === "family-name", Ep = (e) => e === "shadow", p1 = () => {
261
- const e = st("color"), t = st("font"), s = st("text"), i = st("font-weight"), o = st("tracking"), n = st("leading"), r = st("breakpoint"), a = st("container"), l = st("spacing"), c = st("radius"), d = st("shadow"), u = st("inset-shadow"), h = st("text-shadow"), g = st("drop-shadow"), p = st("blur"), f = st("perspective"), C = st("aspect"), v = st("ease"), w = st("animate"), b = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], y = () => [
261
+ const e = st("color"), t = st("font"), s = st("text"), i = st("font-weight"), o = st("tracking"), n = st("leading"), r = st("breakpoint"), a = st("container"), l = st("spacing"), c = st("radius"), d = st("shadow"), u = st("inset-shadow"), h = st("text-shadow"), g = st("drop-shadow"), p = st("blur"), f = st("perspective"), C = st("aspect"), v = st("ease"), w = st("animate"), b = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [
262
262
  "center",
263
263
  "top",
264
264
  "bottom",
@@ -276,9 +276,9 @@ const st = (e) => {
276
276
  "bottom-left",
277
277
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
278
278
  "left-bottom"
279
- ], S = () => [...y(), ue, de], R = () => ["auto", "hidden", "clip", "visible", "scroll"], F = () => ["auto", "contain", "none"], x = () => [ue, de, l], P = () => [Bi, "full", "auto", ...x()], T = () => [Vs, "none", "subgrid", ue, de], E = () => ["auto", {
279
+ ], y = () => [...S(), ue, de], R = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", "contain", "none"], F = () => [ue, de, l], P = () => [Bi, "full", "auto", ...F()], T = () => [Vs, "none", "subgrid", ue, de], E = () => ["auto", {
280
280
  span: ["full", Vs, ue, de]
281
- }, Vs, ue, de], M = () => [Vs, "auto", ue, de], U = () => ["auto", "min", "max", "fr", ue, de], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], J = () => ["auto", ...x()], ne = () => [Bi, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...x()], O = () => [e, ue, de], le = () => [...y(), Yu, qu, {
281
+ }, Vs, ue, de], M = () => [Vs, "auto", ue, de], U = () => ["auto", "min", "max", "fr", ue, de], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], N = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], J = () => ["auto", ...F()], ne = () => [Bi, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...F()], O = () => [e, ue, de], le = () => [...S(), Yu, qu, {
282
282
  position: [ue, de]
283
283
  }], $ = () => ["no-repeat", {
284
284
  repeat: ["", "x", "y", "space", "round"]
@@ -299,7 +299,7 @@ const st = (e) => {
299
299
  p,
300
300
  ue,
301
301
  de
302
- ], H = () => ["none", De, ue, de], G = () => ["none", De, ue, de], re = () => [De, ue, de], ae = () => [Bi, "full", ...x()];
302
+ ], H = () => ["none", De, ue, de], G = () => ["none", De, ue, de], re = () => [De, ue, de], ae = () => [Bi, "full", ...F()];
303
303
  return {
304
304
  cacheSize: 500,
305
305
  theme: {
@@ -423,7 +423,7 @@ const st = (e) => {
423
423
  * @see https://tailwindcss.com/docs/object-position
424
424
  */
425
425
  "object-position": [{
426
- object: S()
426
+ object: y()
427
427
  }],
428
428
  /**
429
429
  * Overflow
@@ -451,21 +451,21 @@ const st = (e) => {
451
451
  * @see https://tailwindcss.com/docs/overscroll-behavior
452
452
  */
453
453
  overscroll: [{
454
- overscroll: F()
454
+ overscroll: x()
455
455
  }],
456
456
  /**
457
457
  * Overscroll Behavior X
458
458
  * @see https://tailwindcss.com/docs/overscroll-behavior
459
459
  */
460
460
  "overscroll-x": [{
461
- "overscroll-x": F()
461
+ "overscroll-x": x()
462
462
  }],
463
463
  /**
464
464
  * Overscroll Behavior Y
465
465
  * @see https://tailwindcss.com/docs/overscroll-behavior
466
466
  */
467
467
  "overscroll-y": [{
468
- "overscroll-y": F()
468
+ "overscroll-y": x()
469
469
  }],
470
470
  /**
471
471
  * Position
@@ -555,7 +555,7 @@ const st = (e) => {
555
555
  * @see https://tailwindcss.com/docs/flex-basis
556
556
  */
557
557
  basis: [{
558
- basis: [Bi, "full", "auto", a, ...x()]
558
+ basis: [Bi, "full", "auto", a, ...F()]
559
559
  }],
560
560
  /**
561
561
  * Flex Direction
@@ -681,21 +681,21 @@ const st = (e) => {
681
681
  * @see https://tailwindcss.com/docs/gap
682
682
  */
683
683
  gap: [{
684
- gap: x()
684
+ gap: F()
685
685
  }],
686
686
  /**
687
687
  * Gap X
688
688
  * @see https://tailwindcss.com/docs/gap
689
689
  */
690
690
  "gap-x": [{
691
- "gap-x": x()
691
+ "gap-x": F()
692
692
  }],
693
693
  /**
694
694
  * Gap Y
695
695
  * @see https://tailwindcss.com/docs/gap
696
696
  */
697
697
  "gap-y": [{
698
- "gap-y": x()
698
+ "gap-y": F()
699
699
  }],
700
700
  /**
701
701
  * Justify Content
@@ -770,63 +770,63 @@ const st = (e) => {
770
770
  * @see https://tailwindcss.com/docs/padding
771
771
  */
772
772
  p: [{
773
- p: x()
773
+ p: F()
774
774
  }],
775
775
  /**
776
776
  * Padding X
777
777
  * @see https://tailwindcss.com/docs/padding
778
778
  */
779
779
  px: [{
780
- px: x()
780
+ px: F()
781
781
  }],
782
782
  /**
783
783
  * Padding Y
784
784
  * @see https://tailwindcss.com/docs/padding
785
785
  */
786
786
  py: [{
787
- py: x()
787
+ py: F()
788
788
  }],
789
789
  /**
790
790
  * Padding Start
791
791
  * @see https://tailwindcss.com/docs/padding
792
792
  */
793
793
  ps: [{
794
- ps: x()
794
+ ps: F()
795
795
  }],
796
796
  /**
797
797
  * Padding End
798
798
  * @see https://tailwindcss.com/docs/padding
799
799
  */
800
800
  pe: [{
801
- pe: x()
801
+ pe: F()
802
802
  }],
803
803
  /**
804
804
  * Padding Top
805
805
  * @see https://tailwindcss.com/docs/padding
806
806
  */
807
807
  pt: [{
808
- pt: x()
808
+ pt: F()
809
809
  }],
810
810
  /**
811
811
  * Padding Right
812
812
  * @see https://tailwindcss.com/docs/padding
813
813
  */
814
814
  pr: [{
815
- pr: x()
815
+ pr: F()
816
816
  }],
817
817
  /**
818
818
  * Padding Bottom
819
819
  * @see https://tailwindcss.com/docs/padding
820
820
  */
821
821
  pb: [{
822
- pb: x()
822
+ pb: F()
823
823
  }],
824
824
  /**
825
825
  * Padding Left
826
826
  * @see https://tailwindcss.com/docs/padding
827
827
  */
828
828
  pl: [{
829
- pl: x()
829
+ pl: F()
830
830
  }],
831
831
  /**
832
832
  * Margin
@@ -896,7 +896,7 @@ const st = (e) => {
896
896
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
897
897
  */
898
898
  "space-x": [{
899
- "space-x": x()
899
+ "space-x": F()
900
900
  }],
901
901
  /**
902
902
  * Space Between X Reverse
@@ -908,7 +908,7 @@ const st = (e) => {
908
908
  * @see https://tailwindcss.com/docs/margin#adding-space-between-children
909
909
  */
910
910
  "space-y": [{
911
- "space-y": x()
911
+ "space-y": F()
912
912
  }],
913
913
  /**
914
914
  * Space Between Y Reverse
@@ -1077,7 +1077,7 @@ const st = (e) => {
1077
1077
  leading: [
1078
1078
  /** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
1079
1079
  n,
1080
- ...x()
1080
+ ...F()
1081
1081
  ]
1082
1082
  }],
1083
1083
  /**
@@ -1178,7 +1178,7 @@ const st = (e) => {
1178
1178
  * @see https://tailwindcss.com/docs/text-indent
1179
1179
  */
1180
1180
  indent: [{
1181
- indent: x()
1181
+ indent: F()
1182
1182
  }],
1183
1183
  /**
1184
1184
  * Vertical Alignment
@@ -1892,7 +1892,7 @@ const st = (e) => {
1892
1892
  }]
1893
1893
  }],
1894
1894
  "mask-image-radial-pos": [{
1895
- "mask-radial-at": y()
1895
+ "mask-radial-at": S()
1896
1896
  }],
1897
1897
  "mask-image-conic-pos": [{
1898
1898
  "mask-conic": [De]
@@ -2142,21 +2142,21 @@ const st = (e) => {
2142
2142
  * @see https://tailwindcss.com/docs/border-spacing
2143
2143
  */
2144
2144
  "border-spacing": [{
2145
- "border-spacing": x()
2145
+ "border-spacing": F()
2146
2146
  }],
2147
2147
  /**
2148
2148
  * Border Spacing X
2149
2149
  * @see https://tailwindcss.com/docs/border-spacing
2150
2150
  */
2151
2151
  "border-spacing-x": [{
2152
- "border-spacing-x": x()
2152
+ "border-spacing-x": F()
2153
2153
  }],
2154
2154
  /**
2155
2155
  * Border Spacing Y
2156
2156
  * @see https://tailwindcss.com/docs/border-spacing
2157
2157
  */
2158
2158
  "border-spacing-y": [{
2159
- "border-spacing-y": x()
2159
+ "border-spacing-y": F()
2160
2160
  }],
2161
2161
  /**
2162
2162
  * Table Layout
@@ -2239,7 +2239,7 @@ const st = (e) => {
2239
2239
  * @see https://tailwindcss.com/docs/perspective-origin
2240
2240
  */
2241
2241
  "perspective-origin": [{
2242
- "perspective-origin": S()
2242
+ "perspective-origin": y()
2243
2243
  }],
2244
2244
  /**
2245
2245
  * Rotate
@@ -2335,7 +2335,7 @@ const st = (e) => {
2335
2335
  * @see https://tailwindcss.com/docs/transform-origin
2336
2336
  */
2337
2337
  "transform-origin": [{
2338
- origin: S()
2338
+ origin: y()
2339
2339
  }],
2340
2340
  /**
2341
2341
  * Transform Style
@@ -2448,126 +2448,126 @@ const st = (e) => {
2448
2448
  * @see https://tailwindcss.com/docs/scroll-margin
2449
2449
  */
2450
2450
  "scroll-m": [{
2451
- "scroll-m": x()
2451
+ "scroll-m": F()
2452
2452
  }],
2453
2453
  /**
2454
2454
  * Scroll Margin X
2455
2455
  * @see https://tailwindcss.com/docs/scroll-margin
2456
2456
  */
2457
2457
  "scroll-mx": [{
2458
- "scroll-mx": x()
2458
+ "scroll-mx": F()
2459
2459
  }],
2460
2460
  /**
2461
2461
  * Scroll Margin Y
2462
2462
  * @see https://tailwindcss.com/docs/scroll-margin
2463
2463
  */
2464
2464
  "scroll-my": [{
2465
- "scroll-my": x()
2465
+ "scroll-my": F()
2466
2466
  }],
2467
2467
  /**
2468
2468
  * Scroll Margin Start
2469
2469
  * @see https://tailwindcss.com/docs/scroll-margin
2470
2470
  */
2471
2471
  "scroll-ms": [{
2472
- "scroll-ms": x()
2472
+ "scroll-ms": F()
2473
2473
  }],
2474
2474
  /**
2475
2475
  * Scroll Margin End
2476
2476
  * @see https://tailwindcss.com/docs/scroll-margin
2477
2477
  */
2478
2478
  "scroll-me": [{
2479
- "scroll-me": x()
2479
+ "scroll-me": F()
2480
2480
  }],
2481
2481
  /**
2482
2482
  * Scroll Margin Top
2483
2483
  * @see https://tailwindcss.com/docs/scroll-margin
2484
2484
  */
2485
2485
  "scroll-mt": [{
2486
- "scroll-mt": x()
2486
+ "scroll-mt": F()
2487
2487
  }],
2488
2488
  /**
2489
2489
  * Scroll Margin Right
2490
2490
  * @see https://tailwindcss.com/docs/scroll-margin
2491
2491
  */
2492
2492
  "scroll-mr": [{
2493
- "scroll-mr": x()
2493
+ "scroll-mr": F()
2494
2494
  }],
2495
2495
  /**
2496
2496
  * Scroll Margin Bottom
2497
2497
  * @see https://tailwindcss.com/docs/scroll-margin
2498
2498
  */
2499
2499
  "scroll-mb": [{
2500
- "scroll-mb": x()
2500
+ "scroll-mb": F()
2501
2501
  }],
2502
2502
  /**
2503
2503
  * Scroll Margin Left
2504
2504
  * @see https://tailwindcss.com/docs/scroll-margin
2505
2505
  */
2506
2506
  "scroll-ml": [{
2507
- "scroll-ml": x()
2507
+ "scroll-ml": F()
2508
2508
  }],
2509
2509
  /**
2510
2510
  * Scroll Padding
2511
2511
  * @see https://tailwindcss.com/docs/scroll-padding
2512
2512
  */
2513
2513
  "scroll-p": [{
2514
- "scroll-p": x()
2514
+ "scroll-p": F()
2515
2515
  }],
2516
2516
  /**
2517
2517
  * Scroll Padding X
2518
2518
  * @see https://tailwindcss.com/docs/scroll-padding
2519
2519
  */
2520
2520
  "scroll-px": [{
2521
- "scroll-px": x()
2521
+ "scroll-px": F()
2522
2522
  }],
2523
2523
  /**
2524
2524
  * Scroll Padding Y
2525
2525
  * @see https://tailwindcss.com/docs/scroll-padding
2526
2526
  */
2527
2527
  "scroll-py": [{
2528
- "scroll-py": x()
2528
+ "scroll-py": F()
2529
2529
  }],
2530
2530
  /**
2531
2531
  * Scroll Padding Start
2532
2532
  * @see https://tailwindcss.com/docs/scroll-padding
2533
2533
  */
2534
2534
  "scroll-ps": [{
2535
- "scroll-ps": x()
2535
+ "scroll-ps": F()
2536
2536
  }],
2537
2537
  /**
2538
2538
  * Scroll Padding End
2539
2539
  * @see https://tailwindcss.com/docs/scroll-padding
2540
2540
  */
2541
2541
  "scroll-pe": [{
2542
- "scroll-pe": x()
2542
+ "scroll-pe": F()
2543
2543
  }],
2544
2544
  /**
2545
2545
  * Scroll Padding Top
2546
2546
  * @see https://tailwindcss.com/docs/scroll-padding
2547
2547
  */
2548
2548
  "scroll-pt": [{
2549
- "scroll-pt": x()
2549
+ "scroll-pt": F()
2550
2550
  }],
2551
2551
  /**
2552
2552
  * Scroll Padding Right
2553
2553
  * @see https://tailwindcss.com/docs/scroll-padding
2554
2554
  */
2555
2555
  "scroll-pr": [{
2556
- "scroll-pr": x()
2556
+ "scroll-pr": F()
2557
2557
  }],
2558
2558
  /**
2559
2559
  * Scroll Padding Bottom
2560
2560
  * @see https://tailwindcss.com/docs/scroll-padding
2561
2561
  */
2562
2562
  "scroll-pb": [{
2563
- "scroll-pb": x()
2563
+ "scroll-pb": F()
2564
2564
  }],
2565
2565
  /**
2566
2566
  * Scroll Padding Left
2567
2567
  * @see https://tailwindcss.com/docs/scroll-padding
2568
2568
  */
2569
2569
  "scroll-pl": [{
2570
- "scroll-pl": x()
2570
+ "scroll-pl": F()
2571
2571
  }],
2572
2572
  /**
2573
2573
  * Scroll Snap Align
@@ -3333,7 +3333,7 @@ const I1 = "w-full flex", A1 = {
3333
3333
  defaultEmptyText: f,
3334
3334
  children: C
3335
3335
  }) => {
3336
- const v = `${e}-label`, w = o ? `${e}-desc` : void 0, b = n ? `${e}-err` : void 0, y = `${e}-caption-desc`, S = [w, b].filter(Boolean).join(" ") || void 0, R = D(() => typeof n == "boolean" ? null : typeof n == "string" || typeof n > "u" ? n ? /* @__PURE__ */ m(
3336
+ const v = `${e}-label`, w = o ? `${e}-desc` : void 0, b = n ? `${e}-err` : void 0, S = `${e}-caption-desc`, y = [w, b].filter(Boolean).join(" ") || void 0, R = D(() => typeof n == "boolean" ? null : typeof n == "string" || typeof n > "u" ? n ? /* @__PURE__ */ m(
3337
3337
  "div",
3338
3338
  {
3339
3339
  id: b,
@@ -3351,13 +3351,13 @@ const I1 = "w-full flex", A1 = {
3351
3351
  className: d,
3352
3352
  children: n
3353
3353
  }
3354
- ), [n, d, b]), F = D(() => p ? typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ m("span", { "aria-readonly": "true", children: p }) : p : /* @__PURE__ */ m("span", { className: "flex min-h-4", "aria-readonly": "true", children: f ?? "None" }), [p, f]);
3354
+ ), [n, d, b]), x = D(() => p ? typeof p == "string" || typeof p == "number" ? /* @__PURE__ */ m("span", { "aria-readonly": "true", children: p }) : p : /* @__PURE__ */ m("span", { className: "flex min-h-4", "aria-readonly": "true", children: f ?? "None" }), [p, f]);
3355
3355
  return /* @__PURE__ */ z(
3356
3356
  "div",
3357
3357
  {
3358
3358
  role: "group",
3359
3359
  "aria-labelledby": t ? v : void 0,
3360
- "aria-describedby": S,
3360
+ "aria-describedby": y,
3361
3361
  className: pe(
3362
3362
  I1,
3363
3363
  A1[r],
@@ -3386,11 +3386,11 @@ const I1 = "w-full flex", A1 = {
3386
3386
  }
3387
3387
  ),
3388
3388
  /* @__PURE__ */ z("div", { className: pe("min-w-0 w-full", u), children: [
3389
- g ? /* @__PURE__ */ m("div", { className: "dial-input px-3 py-2", children: F() }) : C,
3389
+ g ? /* @__PURE__ */ m("div", { className: "dial-input px-3 py-2", children: x() }) : C,
3390
3390
  h && /* @__PURE__ */ m(
3391
3391
  "div",
3392
3392
  {
3393
- id: y,
3393
+ id: S,
3394
3394
  className: pe({
3395
3395
  "dial-tiny text-secondary mt-1": !0,
3396
3396
  "text-error": !!n
@@ -3547,12 +3547,12 @@ const k1 = "flex", L1 = "pb-1 mt-2", O1 = {
3547
3547
  "flex flex-row gap-2 cursor-pointer text-secondary p-2 px-4",
3548
3548
  f ? "justify-end" : "justify-center"
3549
3549
  ]), w = (b) => {
3550
- const y = !f;
3550
+ const S = !f;
3551
3551
  if (p) {
3552
- u(y ? s : Dl), c?.(y, b);
3552
+ u(S ? s : Dl), c?.(S, b);
3553
3553
  return;
3554
3554
  }
3555
- u(y ? s : Dl), g(y);
3555
+ u(S ? s : Dl), g(S);
3556
3556
  };
3557
3557
  return /* @__PURE__ */ z(
3558
3558
  "div",
@@ -3795,9 +3795,9 @@ function kp(e, t, s) {
3795
3795
  w.next && w.next(d());
3796
3796
  }
3797
3797
  b();
3798
- var y = C(b);
3798
+ var S = C(b);
3799
3799
  return {
3800
- unsubscribe: y
3800
+ unsubscribe: S
3801
3801
  };
3802
3802
  }
3803
3803
  }, f[Qu] = function() {
@@ -5898,8 +5898,8 @@ var Xr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(Xr ||
5898
5898
  }, t.prototype.calculateNewSizeFromAspectRatio = function(s, i, o, n) {
5899
5899
  var r = this.props, a = r.lockAspectRatio, l = r.lockAspectRatioExtraHeight, c = r.lockAspectRatioExtraWidth, d = typeof n.width > "u" ? 10 : n.width, u = typeof o.width > "u" || o.width < 0 ? s : o.width, h = typeof n.height > "u" ? 10 : n.height, g = typeof o.height > "u" || o.height < 0 ? i : o.height, p = l || 0, f = c || 0;
5900
5900
  if (a) {
5901
- var C = (h - p) * this.ratio + f, v = (g - p) * this.ratio + f, w = (d - f) / this.ratio + p, b = (u - f) / this.ratio + p, y = Math.max(d, C), S = Math.min(u, v), R = Math.max(h, w), F = Math.min(g, b);
5902
- s = ur(s, y, S), i = ur(i, R, F);
5901
+ var C = (h - p) * this.ratio + f, v = (g - p) * this.ratio + f, w = (d - f) / this.ratio + p, b = (u - f) / this.ratio + p, S = Math.max(d, C), y = Math.min(u, v), R = Math.max(h, w), x = Math.min(g, b);
5902
+ s = ur(s, S, y), i = ur(i, R, x);
5903
5903
  } else
5904
5904
  s = ur(s, d, u), i = ur(i, h, g);
5905
5905
  return { newWidth: s, newHeight: i };
@@ -5962,27 +5962,27 @@ var Xr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(Xr ||
5962
5962
  }
5963
5963
  var o = this.props, n = o.maxWidth, r = o.maxHeight, a = o.minWidth, l = o.minHeight, c = hr(s) ? s.touches[0].clientX : s.clientX, d = hr(s) ? s.touches[0].clientY : s.clientY, u = this.state, h = u.direction, g = u.original, p = u.width, f = u.height, C = this.getParentSize(), v = X0(C, this.window.innerWidth, this.window.innerHeight, n, r, a, l);
5964
5964
  n = v.maxWidth, r = v.maxHeight, a = v.minWidth, l = v.minHeight;
5965
- var w = this.calculateNewSizeFromDirection(c, d), b = w.newHeight, y = w.newWidth, S = this.calculateNewMaxFromBoundary(n, r);
5966
- this.props.snap && this.props.snap.x && (y = gh(y, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (b = gh(b, this.props.snap.y, this.props.snapGap));
5967
- var R = this.calculateNewSizeFromAspectRatio(y, b, { width: S.maxWidth, height: S.maxHeight }, { width: a, height: l });
5968
- if (y = R.newWidth, b = R.newHeight, this.props.grid) {
5969
- var F = hh(y, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), x = hh(b, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), P = this.props.snapGap || 0, T = P === 0 || Math.abs(F - y) <= P ? F : y, E = P === 0 || Math.abs(x - b) <= P ? x : b;
5970
- y = T, b = E;
5965
+ var w = this.calculateNewSizeFromDirection(c, d), b = w.newHeight, S = w.newWidth, y = this.calculateNewMaxFromBoundary(n, r);
5966
+ this.props.snap && this.props.snap.x && (S = gh(S, this.props.snap.x, this.props.snapGap)), this.props.snap && this.props.snap.y && (b = gh(b, this.props.snap.y, this.props.snapGap));
5967
+ var R = this.calculateNewSizeFromAspectRatio(S, b, { width: y.maxWidth, height: y.maxHeight }, { width: a, height: l });
5968
+ if (S = R.newWidth, b = R.newHeight, this.props.grid) {
5969
+ var x = hh(S, this.props.grid[0], this.props.gridGap ? this.props.gridGap[0] : 0), F = hh(b, this.props.grid[1], this.props.gridGap ? this.props.gridGap[1] : 0), P = this.props.snapGap || 0, T = P === 0 || Math.abs(x - S) <= P ? x : S, E = P === 0 || Math.abs(F - b) <= P ? F : b;
5970
+ S = T, b = E;
5971
5971
  }
5972
5972
  var M = {
5973
- width: y - g.width,
5973
+ width: S - g.width,
5974
5974
  height: b - g.height
5975
5975
  };
5976
5976
  if (this.delta = M, p && typeof p == "string") {
5977
5977
  if (p.endsWith("%")) {
5978
- var U = y / C.width * 100;
5979
- y = "".concat(U, "%");
5978
+ var U = S / C.width * 100;
5979
+ S = "".concat(U, "%");
5980
5980
  } else if (p.endsWith("vw")) {
5981
- var K = y / this.window.innerWidth * 100;
5982
- y = "".concat(K, "vw");
5981
+ var K = S / this.window.innerWidth * 100;
5982
+ S = "".concat(K, "vw");
5983
5983
  } else if (p.endsWith("vh")) {
5984
- var N = y / this.window.innerHeight * 100;
5985
- y = "".concat(N, "vh");
5984
+ var N = S / this.window.innerHeight * 100;
5985
+ S = "".concat(N, "vh");
5986
5986
  }
5987
5987
  }
5988
5988
  if (f && typeof f == "string") {
@@ -5998,7 +5998,7 @@ var Xr = /* @__PURE__ */ ((e) => (e.Left = "left", e.Right = "right", e))(Xr ||
5998
5998
  }
5999
5999
  }
6000
6000
  var J = {
6001
- width: this.createSizeForCssProperty(y, "width"),
6001
+ width: this.createSizeForCssProperty(S, "width"),
6002
6002
  height: this.createSizeForCssProperty(b, "height")
6003
6003
  };
6004
6004
  this.flexDir === "row" ? J.flexBasis = J.width : this.flexDir === "column" && (J.flexBasis = J.height);
@@ -6099,10 +6099,10 @@ const sS = ({ side: e, className: t }) => {
6099
6099
  u(!0);
6100
6100
  }, []), w = D(() => {
6101
6101
  u(!1);
6102
- const y = C.current?.resizable?.getBoundingClientRect(), S = y ? Math.round(y.width) : t;
6103
- p || g(S), n?.(S);
6102
+ const S = C.current?.resizable?.getBoundingClientRect(), y = S ? Math.round(S.width) : t;
6103
+ p || g(y), n?.(y);
6104
6104
  }, [n, p, t]), b = B(() => {
6105
- const y = a === Xr.Left, S = /* @__PURE__ */ m(
6105
+ const S = a === Xr.Left, y = /* @__PURE__ */ m(
6106
6106
  iS,
6107
6107
  {
6108
6108
  side: a,
@@ -6117,8 +6117,8 @@ const sS = ({ side: e, className: t }) => {
6117
6117
  minWidth: t,
6118
6118
  maxWidth: s,
6119
6119
  enable: {
6120
- left: y,
6121
- right: !y
6120
+ left: S,
6121
+ right: !S
6122
6122
  },
6123
6123
  handleClasses: {
6124
6124
  right: "group",
@@ -6129,12 +6129,12 @@ const sS = ({ side: e, className: t }) => {
6129
6129
  left: { left: 0, zIndex: 10 }
6130
6130
  },
6131
6131
  handleComponent: {
6132
- left: y ? S : void 0,
6133
- right: y ? void 0 : S
6132
+ left: S ? y : void 0,
6133
+ right: S ? void 0 : y
6134
6134
  },
6135
6135
  onResizeStart: v,
6136
- onResize: (R, F, x) => {
6137
- const P = Math.round(x.offsetWidth);
6136
+ onResize: (R, x, F) => {
6137
+ const P = Math.round(F.offsetWidth);
6138
6138
  r?.(P);
6139
6139
  },
6140
6140
  onResizeStop: w
@@ -6187,15 +6187,15 @@ const rS = (e) => {
6187
6187
  c
6188
6188
  );
6189
6189
  if (r !== Zt.Default) {
6190
- const x = pe(
6190
+ const F = pe(
6191
6191
  u,
6192
6192
  r === Zt.Circular && "rounded-full",
6193
6193
  r === Zt.Rectangular && "rounded",
6194
6194
  r === Zt.Text && "rounded"
6195
6195
  ), P = {};
6196
- return a && (P.width = typeof a == "number" ? `${a}px` : a), l && (P.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ m("div", { className: x, style: P, ...d });
6196
+ return a && (P.width = typeof a == "number" ? `${a}px` : a), l && (P.height = typeof l == "number" ? `${l}px` : l), /* @__PURE__ */ m("div", { className: F, style: P, ...d });
6197
6197
  }
6198
- const h = !!s, g = !!i, p = !!t, f = typeof s == "object" ? s : {}, C = typeof i == "object" ? i : {}, v = typeof t == "object" ? t : {}, w = rS(f.size), b = f.shape ?? Ac.Circle, y = C.width ?? "38%", S = v.rows ?? 3, R = v.width, F = (x) => R ? Array.isArray(R) ? R[x] ?? "100%" : R : x === S - 1 ? "61%" : "100%";
6198
+ const h = !!s, g = !!i, p = !!t, f = typeof s == "object" ? s : {}, C = typeof i == "object" ? i : {}, v = typeof t == "object" ? t : {}, w = rS(f.size), b = f.shape ?? Ac.Circle, S = C.width ?? "38%", y = v.rows ?? 3, R = v.width, x = (F) => R ? Array.isArray(R) ? R[F] ?? "100%" : R : F === y - 1 ? "61%" : "100%";
6199
6199
  return /* @__PURE__ */ z("div", { ...d, className: pe("flex gap-4", c), children: [
6200
6200
  h && /* @__PURE__ */ m(
6201
6201
  "div",
@@ -6213,14 +6213,14 @@ const rS = (e) => {
6213
6213
  "div",
6214
6214
  {
6215
6215
  className: pe(u, "h-4 rounded"),
6216
- style: { width: y }
6216
+ style: { width: S }
6217
6217
  }
6218
6218
  ),
6219
- p && /* @__PURE__ */ m("div", { className: "flex flex-col gap-3", children: Array.from({ length: S }).map((x, P) => /* @__PURE__ */ m(
6219
+ p && /* @__PURE__ */ m("div", { className: "flex flex-col gap-3", children: Array.from({ length: y }).map((F, P) => /* @__PURE__ */ m(
6220
6220
  "div",
6221
6221
  {
6222
6222
  className: pe(u, "h-4 rounded"),
6223
- style: { width: F(P) }
6223
+ style: { width: x(P) }
6224
6224
  },
6225
6225
  P
6226
6226
  )) })
@@ -8499,13 +8499,13 @@ function Xt(e, t, s) {
8499
8499
  return !1;
8500
8500
  if (t?.state && !t.state.forEach)
8501
8501
  return _(32), !1;
8502
- const v = (S, R, F, x, P) => {
8503
- if (!S)
8502
+ const v = (y, R, x, F, P) => {
8503
+ if (!y)
8504
8504
  return;
8505
8505
  const T = Ay(R, t.defaultState), E = T("flex").value1;
8506
8506
  if (Of(
8507
8507
  e,
8508
- S,
8508
+ y,
8509
8509
  T("hide").value1,
8510
8510
  T("sort").value1,
8511
8511
  T("sortIndex").value1,
@@ -8515,16 +8515,16 @@ function Xt(e, t, s) {
8515
8515
  ), E == null) {
8516
8516
  const M = T("width").value1;
8517
8517
  if (M != null) {
8518
- const U = S.getColDef().minWidth ?? u.getDefaultColumnMinWidth();
8519
- U != null && M >= U && S.setActualWidth(M, s);
8518
+ const U = y.getColDef().minWidth ?? u.getDefaultColumnMinWidth();
8519
+ U != null && M >= U && y.setActualWidth(M, s);
8520
8520
  }
8521
8521
  }
8522
- P || !S.isPrimary() || (h?.syncColumnWithState(S, s, T), o?.syncColumnWithState(S, s, T, F), n?.syncColumnWithState(S, s, T, x));
8523
- }, w = (S, R, F) => {
8524
- const x = Vf(e, s), P = R.slice(), T = {}, E = {}, M = [], U = [], K = [];
8522
+ P || !y.isPrimary() || (h?.syncColumnWithState(y, s, T), o?.syncColumnWithState(y, s, T, x), n?.syncColumnWithState(y, s, T, F));
8523
+ }, w = (y, R, x) => {
8524
+ const F = Vf(e, s), P = R.slice(), T = {}, E = {}, M = [], U = [], K = [];
8525
8525
  let N = 0;
8526
8526
  const J = o?.columns.slice() ?? [], ne = n?.columns.slice() ?? [];
8527
- for (const $ of S) {
8527
+ for (const $ of y) {
8528
8528
  const oe = $.colId;
8529
8529
  if (oe.startsWith(Na)) {
8530
8530
  M.push($), K.push($);
@@ -8534,7 +8534,7 @@ function Xt(e, t, s) {
8534
8534
  U.push($), K.push($);
8535
8535
  continue;
8536
8536
  }
8537
- const te = F(oe);
8537
+ const te = x(oe);
8538
8538
  te ? (v(te, $, T, E, !1), es(P, te)) : (K.push($), N += 1);
8539
8539
  }
8540
8540
  const O = ($) => v($, null, T, E, !1);
@@ -8557,23 +8557,23 @@ function Xt(e, t, s) {
8557
8557
  ), $y(t, i, p), c.refresh(s), g.dispatchEvent({
8558
8558
  type: "columnEverythingChanged",
8559
8559
  source: s
8560
- }), x(), { unmatchedAndAutoStates: K, unmatchedCount: N };
8560
+ }), F(), { unmatchedAndAutoStates: K, unmatchedCount: N };
8561
8561
  };
8562
8562
  l?.start();
8563
- let { unmatchedAndAutoStates: b, unmatchedCount: y } = w(
8563
+ let { unmatchedAndAutoStates: b, unmatchedCount: S } = w(
8564
8564
  t.state || [],
8565
8565
  f,
8566
- (S) => i.getColDefCol(S)
8566
+ (y) => i.getColDefCol(y)
8567
8567
  );
8568
8568
  if (b.length > 0 || Q(t.defaultState)) {
8569
- const S = d?.getPivotResultCols()?.list ?? [];
8570
- y = w(
8569
+ const y = d?.getPivotResultCols()?.list ?? [];
8570
+ S = w(
8571
8571
  b,
8572
- S,
8572
+ y,
8573
8573
  (R) => d?.getPivotResultCol(R) ?? null
8574
8574
  ).unmatchedCount;
8575
8575
  }
8576
- return l?.finish(), y === 0;
8576
+ return l?.finish(), S === 0;
8577
8577
  }
8578
8578
  function Uy(e, t) {
8579
8579
  const { colModel: s, autoColSvc: i, selectionColSvc: o, eventSvc: n, gos: r } = e, a = s.getColDefCols();
@@ -8598,12 +8598,12 @@ function Vf(e, t) {
8598
8598
  for (const u of c)
8599
8599
  d[u.colId] = u;
8600
8600
  return () => {
8601
- const u = (R, F, x, P) => {
8602
- const T = F.map(P), E = x.map(P);
8601
+ const u = (R, x, F, P) => {
8602
+ const T = x.map(P), E = F.map(P);
8603
8603
  if (ti(T, E))
8604
8604
  return;
8605
- const U = new Set(F);
8606
- for (const N of x)
8605
+ const U = new Set(x);
8606
+ for (const N of F)
8607
8607
  U.delete(N) || U.add(N);
8608
8608
  const K = [...U];
8609
8609
  a.dispatchEvent({
@@ -8613,11 +8613,11 @@ function Vf(e, t) {
8613
8613
  source: t
8614
8614
  });
8615
8615
  }, h = (R) => {
8616
- const F = [];
8617
- return n.forAllCols((x) => {
8618
- const P = d[x.getColId()];
8619
- P && R(P, x) && F.push(x);
8620
- }), F;
8616
+ const x = [];
8617
+ return n.forAllCols((F) => {
8618
+ const P = d[F.getColId()];
8619
+ P && R(P, F) && x.push(F);
8620
+ }), x;
8621
8621
  }, g = (R) => R.getColId();
8622
8622
  u(
8623
8623
  "columnRowGroupChanged",
@@ -8630,15 +8630,15 @@ function Vf(e, t) {
8630
8630
  i?.columns ?? [],
8631
8631
  g
8632
8632
  );
8633
- const f = h((R, F) => {
8634
- const x = R.aggFunc != null, P = x != F.isValueActive(), T = x && R.aggFunc != F.getAggFunc();
8633
+ const f = h((R, x) => {
8634
+ const F = R.aggFunc != null, P = F != x.isValueActive(), T = F && R.aggFunc != x.getAggFunc();
8635
8635
  return P || T;
8636
8636
  });
8637
- f.length > 0 && _y(a, "columnValueChanged", f, t), mo(a, h((R, F) => R.width != F.getActualWidth()), !0, t), Bf(a, h((R, F) => R.pinned != F.getPinned()), t), Wy(a, h((R, F) => R.hide == F.isVisible()), t);
8638
- const y = h((R, F) => R.sort != F.getSort() || R.sortIndex != F.getSortIndex());
8639
- y.length > 0 && r?.dispatchSortChangedEvents(t, y);
8640
- const S = ua(e);
8641
- Ky(c, S, t, n, a);
8637
+ f.length > 0 && _y(a, "columnValueChanged", f, t), mo(a, h((R, x) => R.width != x.getActualWidth()), !0, t), Bf(a, h((R, x) => R.pinned != x.getPinned()), t), Wy(a, h((R, x) => R.hide == x.isVisible()), t);
8638
+ const S = h((R, x) => R.sort != x.getSort() || R.sortIndex != x.getSortIndex());
8639
+ S.length > 0 && r?.dispatchSortChangedEvents(t, S);
8640
+ const y = ua(e);
8641
+ Ky(c, y, t, n, a);
8642
8642
  };
8643
8643
  }
8644
8644
  function ua(e) {
@@ -9349,8 +9349,8 @@ var Xy = class extends L {
9349
9349
  const { name: n, cellRenderer: r } = t;
9350
9350
  let { compName: a, jsComp: l, fwComp: c, paramsFromSelector: d, popupFromSelector: u, popupPositionFromSelector: h } = Uf(this.beans.frameworkOverrides, e, t, i), g, p;
9351
9351
  const f = (b) => {
9352
- const y = this.registry.getUserComponent(n, b);
9353
- y && (l = y.componentFromFramework ? void 0 : y.component, c = y.componentFromFramework ? y.component : void 0, g = y.params, p = y.processParams);
9352
+ const S = this.registry.getUserComponent(n, b);
9353
+ S && (l = S.componentFromFramework ? void 0 : S.component, c = S.componentFromFramework ? S.component : void 0, g = S.params, p = S.processParams);
9354
9354
  };
9355
9355
  if (a != null && f(a), l == null && c == null && s != null && f(s), l && r && !Qy(l) && (l = this.agCompUtils?.adaptFunction(t, l)), !l && !c) {
9356
9356
  const { validation: b } = this.beans;
@@ -11750,12 +11750,12 @@ ${n}}
11750
11750
  C.last !== w && (C.initial = w, C.last = w);
11751
11751
  const b = h[v] - g[v];
11752
11752
  if (b != C.lastDiff) {
11753
- const y = this.keepXYWithinBounds(
11753
+ const S = this.keepXYWithinBounds(
11754
11754
  o,
11755
11755
  C.initial + C.initialDiff - b,
11756
11756
  C.direction
11757
11757
  );
11758
- o.style[v] = `${y}px`, C.last = y;
11758
+ o.style[v] = `${S}px`, C.last = S;
11759
11759
  }
11760
11760
  C.lastDiff = b;
11761
11761
  };
@@ -14228,7 +14228,7 @@ var Vr = {
14228
14228
  let u, h, g = 0;
14229
14229
  this.invalidateVerticalScroll();
14230
14230
  do {
14231
- const { stickyTopHeight: p, stickyBottomHeight: f } = c, C = d.rowTop, v = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, y = b + d.rowHeight, S = this.getVScrollPosition(), R = a.divStretchOffset, F = S.top + R, x = S.bottom + R, P = x - F, T = a.getScrollPositionForPixel(b), E = a.getScrollPositionForPixel(y - P), M = Math.min((T + E) / 2, b), U = F + p > b, K = x - f < y;
14231
+ const { stickyTopHeight: p, stickyBottomHeight: f } = c, C = d.rowTop, v = d.rowHeight, w = r.getPixelOffset(), b = d.rowTop - w, S = b + d.rowHeight, y = this.getVScrollPosition(), R = a.divStretchOffset, x = y.top + R, F = y.bottom + R, P = F - x, T = a.getScrollPositionForPixel(b), E = a.getScrollPositionForPixel(S - P), M = Math.min((T + E) / 2, b), U = x + p > b, K = F - f < S;
14232
14232
  let N = null;
14233
14233
  t === "top" ? N = T - p : t === "bottom" ? N = E + f : t === "middle" ? N = M : U ? N = T - p : K && (E - T > P ? N = T - p : N = E + f), N !== null && (this.setVerticalScrollPosition(N), l.redraw({ afterScroll: !0 })), u = C !== d.rowTop || v !== d.rowHeight, h = p !== c.stickyTopHeight || f !== c.stickyBottomHeight, g++;
14234
14234
  } while ((u || h) && g < 10);
@@ -15611,8 +15611,8 @@ var rF = class extends L {
15611
15611
  return;
15612
15612
  const { paddingTop: h, paddingBottom: g, borderBottomWidth: p, borderTopWidth: f } = Mi(this.eGui), C = h + g + p + f, w = t.offsetHeight + C;
15613
15613
  if (u < 5) {
15614
- const y = !rt(o)?.contains(t), S = w == 0;
15615
- if (y || S) {
15614
+ const S = !rt(o)?.contains(t), y = w == 0;
15615
+ if (S || y) {
15616
15616
  Oc(() => n(u + 1), "raf", o);
15617
15617
  return;
15618
15618
  }
@@ -19835,14 +19835,14 @@ function zE(e) {
19835
19835
  let p = 0, f = i;
19836
19836
  if (s) {
19837
19837
  let b = 0;
19838
- for (const y of u)
19839
- b += y.getActualWidth();
19838
+ for (const S of u)
19839
+ b += S.getActualWidth();
19840
19840
  f -= b;
19841
19841
  }
19842
19842
  if (f > 0) {
19843
19843
  for (let b = 0; b < h.length; b++) {
19844
- const y = h[b];
19845
- if (f -= y.getActualWidth(), f < 0)
19844
+ const S = h[b];
19845
+ if (f -= S.getActualWidth(), f < 0)
19846
19846
  break;
19847
19847
  p++;
19848
19848
  }
@@ -19854,19 +19854,19 @@ function zE(e) {
19854
19854
  C = g.indexOf(b) + 1;
19855
19855
  } else
19856
19856
  C = g.indexOf(h[0]), C === -1 && (C = 0);
19857
- const v = [C], w = (b, y) => b - y;
19857
+ const v = [C], w = (b, S) => b - S;
19858
19858
  if (s) {
19859
19859
  let b = C + 1;
19860
- const y = d.length - 1;
19861
- for (; b <= y; )
19860
+ const S = d.length - 1;
19861
+ for (; b <= S; )
19862
19862
  v.push(b), b++;
19863
19863
  v.sort(w);
19864
19864
  } else {
19865
19865
  let b = C;
19866
- const y = d.length - 1;
19867
- let S = d[b];
19868
- for (; b <= y && c.indexOf(S) < 0; )
19869
- b++, v.push(b), S = d[b];
19866
+ const S = d.length - 1;
19867
+ let y = d[b];
19868
+ for (; b <= S && c.indexOf(y) < 0; )
19869
+ b++, v.push(b), y = d[b];
19870
19870
  b = C - 1;
19871
19871
  const R = 0;
19872
19872
  for (; b >= R; )
@@ -20361,13 +20361,13 @@ var jE = class extends L {
20361
20361
  if (n.getScrollFeature().ensureColumnVisible(v, "auto"), (!o.isAlive() || r.get("ensureDomOrder")) && C) {
20362
20362
  let w;
20363
20363
  if (h) {
20364
- const b = s.getGroupId(), y = s.getLeafColumns();
20365
- if (!y.length)
20364
+ const b = s.getGroupId(), S = s.getLeafColumns();
20365
+ if (!S.length)
20366
20366
  return;
20367
- const S = y[0].getParent();
20368
- if (!S)
20367
+ const y = S[0].getParent();
20368
+ if (!y)
20369
20369
  return;
20370
- w = qE(S, b);
20370
+ w = qE(y, b);
20371
20371
  } else
20372
20372
  w = s;
20373
20373
  w && c.focusHeaderPosition({
@@ -20742,21 +20742,21 @@ var eD = class extends L {
20742
20742
  }
20743
20743
  C = !1;
20744
20744
  const w = [];
20745
- let b = 0, y = u;
20746
- h.forEach((R, F) => {
20745
+ let b = 0, S = u;
20746
+ h.forEach((R, x) => {
20747
20747
  if (f[R.getId()])
20748
- y -= p[R.getId()];
20748
+ S -= p[R.getId()];
20749
20749
  else {
20750
20750
  w.push(R);
20751
- const P = g[F];
20751
+ const P = g[x];
20752
20752
  b += P;
20753
20753
  }
20754
20754
  });
20755
- const S = 1 / b;
20756
- w.forEach((R, F) => {
20757
- const x = F === w.length - 1;
20755
+ const y = 1 / b;
20756
+ w.forEach((R, x) => {
20757
+ const F = x === w.length - 1;
20758
20758
  let P;
20759
- x ? P = y : (P = Math.round(g[F] * u * S), y -= P);
20759
+ F ? P = S : (P = Math.round(g[x] * u * y), S -= P);
20760
20760
  const T = R.getMinWidth(), E = R.getMaxWidth();
20761
20761
  P < T ? (P = T, f[R.getId()] = !0, C = !0) : E > 0 && P > E && (P = E, f[R.getId()] = !0, C = !0), p[R.getId()] = P;
20762
20762
  });
@@ -21759,24 +21759,24 @@ var KD = class extends L {
21759
21759
  for (; c > 0; ) {
21760
21760
  const f = Math.round(d < 1 ? u * d : u);
21761
21761
  let C, v = 0, w = 0;
21762
- for (const S of l) {
21763
- if (g(S))
21762
+ for (const y of l) {
21763
+ if (g(y))
21764
21764
  continue;
21765
- C = S, w += f * (S.flex / d);
21766
- const R = w - v, F = Math.round(R);
21767
- S.targetSize = F, v += F;
21765
+ C = y, w += f * (y.flex / d);
21766
+ const R = w - v, x = Math.round(R);
21767
+ y.targetSize = x, v += x;
21768
21768
  }
21769
21769
  C && (C.targetSize += f - v);
21770
21770
  let b = 0;
21771
- for (const S of l) {
21772
- if (g(S))
21771
+ for (const y of l) {
21772
+ if (g(y))
21773
21773
  continue;
21774
- const R = S.targetSize, F = Math.min(Math.max(R, S.min), S.max);
21775
- b += F - R, S.violationType = F === R ? void 0 : F < R ? "max" : "min", S.targetSize = F;
21774
+ const R = y.targetSize, x = Math.min(Math.max(R, y.min), y.max);
21775
+ b += x - R, y.violationType = x === R ? void 0 : x < R ? "max" : "min", y.targetSize = x;
21776
21776
  }
21777
- const y = b === 0 ? "all" : b > 0 ? "min" : "max";
21778
- for (const S of l)
21779
- g(S) || (y === "all" || S.violationType === y) && h(S, S.targetSize);
21777
+ const S = b === 0 ? "all" : b > 0 ? "min" : "max";
21778
+ for (const y of l)
21779
+ g(y) || (S === "all" || y.violationType === S) && h(y, y.targetSize);
21780
21780
  }
21781
21781
  e.skipSetLeft || i.setLeftValues(t), e.updateBodyWidths && i.updateBodyWidths();
21782
21782
  const p = l.filter((f) => f.isFlex && !f.violationType).map((f) => f.col);
@@ -26859,8 +26859,8 @@ function Pi(e, t) {
26859
26859
  for (const h of s) {
26860
26860
  const { ctrl: g, editor: p } = h, { rowNode: f, column: C } = g, v = p.getValidationErrors?.() ?? [], w = p.getValidationElement?.(!1) || !p.isPopup?.() && g.eGui;
26861
26861
  if (w) {
26862
- const b = v != null && v.length > 0, y = b ? v.join(". ") : "";
26863
- mS(w, b), b && o.announceValue(`${d} ${v}`, "editorValidation"), w instanceof HTMLInputElement ? w.setCustomValidity(y) : w.classList.toggle("invalid", b);
26862
+ const b = v != null && v.length > 0, S = b ? v.join(". ") : "";
26863
+ mS(w, b), b && o.announceValue(`${d} ${v}`, "editorValidation"), w instanceof HTMLInputElement ? w.setCustomValidity(S) : w.classList.toggle("invalid", b);
26864
26864
  }
26865
26865
  v?.length > 0 && i.setCellValidation(
26866
26866
  {
@@ -27155,8 +27155,8 @@ var c5 = class extends L {
27155
27155
  }
27156
27156
  onMouseDown(e) {
27157
27157
  const { ctrlKey: t, metaKey: s, shiftKey: i } = e, o = e.target, { cellCtrl: n, beans: r } = this, { eventSvc: a, rangeSvc: l, rowNumbersSvc: c, focusSvc: d, gos: u, editSvc: h } = r, { column: g, rowNode: p, cellPosition: f } = n, C = zr(u, g, p, e), v = () => {
27158
- const S = n.createEvent(e, "cellMouseDown");
27159
- S.isEventHandlingSuppressed = C, a.dispatchEvent(S);
27158
+ const y = n.createEvent(e, "cellMouseDown");
27159
+ y.isEventHandlingSuppressed = C, a.dispatchEvent(y);
27160
27160
  };
27161
27161
  if (C) {
27162
27162
  v();
@@ -27164,24 +27164,24 @@ var c5 = class extends L {
27164
27164
  }
27165
27165
  if (this.isRightClickInExistingRange(e))
27166
27166
  return;
27167
- const w = l && !l.isEmpty(), b = this.containsWidget(o), y = Ms(g);
27168
- if (c && y && !c.handleMouseDownOnCell(f, e)) {
27167
+ const w = l && !l.isEmpty(), b = this.containsWidget(o), S = Ms(g);
27168
+ if (c && S && !c.handleMouseDownOnCell(f, e)) {
27169
27169
  l && e.preventDefault(), e.stopImmediatePropagation();
27170
27170
  return;
27171
27171
  }
27172
27172
  if (!i || !w) {
27173
- const S = h?.isEditing(n), F = u.get("enableCellTextSelection") && e.defaultPrevented, x = (si() || F) && !S && !rn(o) && !b;
27174
- n.focusCell(x, e);
27173
+ const y = h?.isEditing(n), x = u.get("enableCellTextSelection") && e.defaultPrevented, F = (si() || x) && !y && !rn(o) && !b;
27174
+ n.focusCell(F, e);
27175
27175
  }
27176
27176
  if (i && w && !d.isCellFocused(f)) {
27177
27177
  e.preventDefault();
27178
- const S = d.getFocusedCell();
27179
- if (S) {
27180
- const { column: R, rowIndex: F, rowPinned: x } = S;
27181
- h?.isEditing(S) && h?.stopEditing(S), d.setFocusedCell({
27178
+ const y = d.getFocusedCell();
27179
+ if (y) {
27180
+ const { column: R, rowIndex: x, rowPinned: F } = y;
27181
+ h?.isEditing(y) && h?.stopEditing(y), d.setFocusedCell({
27182
27182
  column: R,
27183
- rowIndex: F,
27184
- rowPinned: x,
27183
+ rowIndex: x,
27184
+ rowPinned: F,
27185
27185
  forceBrowserFocus: !0,
27186
27186
  preventScrollOnBrowserFocus: !0,
27187
27187
  sourceEvent: e
@@ -27190,11 +27190,11 @@ var c5 = class extends L {
27190
27190
  }
27191
27191
  if (!b) {
27192
27192
  if (l) {
27193
- y && e.preventDefault();
27194
- const S = Rh(r, e) && y;
27193
+ S && e.preventDefault();
27194
+ const y = Rh(r, e) && S;
27195
27195
  if (i)
27196
27196
  l.extendLatestRangeToCell(f);
27197
- else if (!S) {
27197
+ else if (!y) {
27198
27198
  const R = t || s;
27199
27199
  l.setRangeToCell(f, R);
27200
27200
  }
@@ -27523,12 +27523,12 @@ var c5 = class extends L {
27523
27523
  } = this;
27524
27524
  if (d)
27525
27525
  return;
27526
- const { field: h, valueGetter: g, showRowGroup: p, enableCellChangeFlash: f } = l.getColDef(), C = h == null && g == null && p == null, v = e || C || s, w = !!c, b = this.updateAndFormatValue(w), y = v || b;
27526
+ const { field: h, valueGetter: g, showRowGroup: p, enableCellChangeFlash: f } = l.getColDef(), C = h == null && g == null && p == null, v = e || C || s, w = !!c, b = this.updateAndFormatValue(w), S = v || b;
27527
27527
  if (w) {
27528
- if (y) {
27528
+ if (S) {
27529
27529
  this.showValue(!!s, !1);
27530
- const S = a?.isSuppressFlashingCellsBecauseFiltering();
27531
- !t && !S && f && r?.flashCell(this), i?.applyCellStyles?.(), o?.applyUserStyles(), o?.applyClassesFromColDef(), n?.applyRowStyles();
27530
+ const y = a?.isSuppressFlashingCellsBecauseFiltering();
27531
+ !t && !y && f && r?.flashCell(this), i?.applyCellStyles?.(), o?.applyUserStyles(), o?.applyClassesFromColDef(), n?.applyRowStyles();
27532
27532
  }
27533
27533
  u?.refreshTooltip(), o?.applyCellClassRules();
27534
27534
  }
@@ -30291,8 +30291,8 @@ var B5 = (
30291
30291
  const d = this.getRowBufferInPixels(), u = this.ctrlsSvc.getScrollFeature(), h = this.gos.get("suppressRowVirtualisation");
30292
30292
  let g = !1, p, f;
30293
30293
  do {
30294
- const y = t.getPixelOffset(), { pageFirstPixel: S, pageLastPixel: R } = t.getCurrentPagePixelRange(), F = e.divStretchOffset, x = u.getVScrollPosition(), P = x.top, T = x.bottom;
30295
- h ? (p = S + F, f = R + F) : (p = Math.max(P + y - d, S) + F, f = Math.min(T + y + d, R) + F), this.firstVisibleVPixel = Math.max(P + y, S) + F, this.lastVisibleVPixel = Math.min(T + y, R) + F, g = this.ensureAllRowsInRangeHaveHeightsCalculated(p, f);
30294
+ const S = t.getPixelOffset(), { pageFirstPixel: y, pageLastPixel: R } = t.getCurrentPagePixelRange(), x = e.divStretchOffset, F = u.getVScrollPosition(), P = F.top, T = F.bottom;
30295
+ h ? (p = y + x, f = R + x) : (p = Math.max(P + S - d, y) + x, f = Math.min(T + S + d, R) + x), this.firstVisibleVPixel = Math.max(P + S, y) + x, this.lastVisibleVPixel = Math.min(T + S, R) + x, g = this.ensureAllRowsInRangeHaveHeightsCalculated(p, f);
30296
30296
  } while (g);
30297
30297
  let C = s.getRowIndexAtPixel(p), v = s.getRowIndexAtPixel(f);
30298
30298
  const w = t.getFirstRow(), b = t.getLastRow();
@@ -31752,13 +31752,13 @@ function y4(e, t = !1) {
31752
31752
  rowGroupIndex: v,
31753
31753
  aggFunc: w,
31754
31754
  pivot: b,
31755
- pivotIndex: y,
31756
- pinned: S,
31755
+ pivotIndex: S,
31756
+ pinned: y,
31757
31757
  hide: R,
31758
- width: F,
31759
- flex: x
31758
+ width: x,
31759
+ flex: F
31760
31760
  } = e[h];
31761
- d.push(g), p && (s[f ?? u++] = { colId: g, sort: p }), C && (i[v ?? 0] = g), typeof w == "string" && o.push({ colId: g, aggFunc: w }), b && (n[y ?? 0] = g), S && (S === "right" ? a : r).push(g), R && l.push(g), (x != null || F) && c.push({ colId: g, flex: x ?? void 0, width: F });
31761
+ d.push(g), p && (s[f ?? u++] = { colId: g, sort: p }), C && (i[v ?? 0] = g), typeof w == "string" && o.push({ colId: g, aggFunc: w }), b && (n[S ?? 0] = g), y && (y === "right" ? a : r).push(g), R && l.push(g), (F != null || x) && c.push({ colId: g, flex: F ?? void 0, width: x });
31762
31762
  }
31763
31763
  return {
31764
31764
  sort: s.length ? { sortModel: lc(s) } : void 0,
@@ -33529,12 +33529,12 @@ var nT = {
33529
33529
  if (h) {
33530
33530
  const C = d?.handlerNameOrCallback ?? d?.filterHandler, v = nt(this.model, e);
33531
33531
  if (s.handlerGenerator != C) {
33532
- const w = s.handler, { handler: b, handlerParams: y } = this.createHandlerFromFunc(
33532
+ const w = s.handler, { handler: b, handlerParams: S } = this.createHandlerFromFunc(
33533
33533
  o,
33534
33534
  d.filterHandler,
33535
33535
  f
33536
33536
  );
33537
- s.handler = b, s.handlerParams = y, s.handlerGenerator = C, delete this.model[e], b.init?.({ ...y, source: "init", model: null }), this.destroyBean(w), v != null && this.beans.filterManager?.onFilterChanged({
33537
+ s.handler = b, s.handlerParams = S, s.handlerGenerator = C, delete this.model[e], b.init?.({ ...S, source: "init", model: null }), this.destroyBean(w), v != null && this.beans.filterManager?.onFilterChanged({
33538
33538
  columns: [o],
33539
33539
  source: t
33540
33540
  });
@@ -37108,8 +37108,8 @@ var OM = class extends L {
37108
37108
  l.clearEditValue(w);
37109
37109
  this.bulkRefresh(void 0, h);
37110
37110
  for (const w of l.getEditPositions(C)) {
37111
- const b = Ue(a, w), y = Ps(w);
37112
- b?.refreshCell({ force: !0, suppressFlash: !y });
37111
+ const b = Ue(a, w), S = Ps(w);
37112
+ b?.refreshCell({ force: !0, suppressFlash: !S });
37113
37113
  }
37114
37114
  h = C, g || (g = p);
37115
37115
  } else if (s instanceof KeyboardEvent && this.batch && this.strategy?.midBatchInputsAllowed(e) && this.isEditing(e, { withOpenEditor: !0 })) {
@@ -38696,18 +38696,18 @@ var R6 = {
38696
38696
  }
38697
38697
  v.data !== w && (v.updateData(w), r.has(v) || a.add(v), !v.selectable && v.isSelected() && c.push(v));
38698
38698
  }, f = (v, w, b) => {
38699
- for (let y = 0, S = w.length; y < S; ++y) {
38700
- const R = w[y];
38699
+ for (let S = 0, y = w.length; S < y; ++S) {
38700
+ const R = w[S];
38701
38701
  if (!R)
38702
38702
  continue;
38703
- let F = this.getRowNode(o({ data: R, level: b }));
38704
- if (F ? (p(F, R), g || (g = !!d && F.treeParent !== v)) : (F = this.createRowNode(R, b), r.add(F)), !d || l.has(F)) {
38705
- l.add(F);
38703
+ let x = this.getRowNode(o({ data: R, level: b }));
38704
+ if (x ? (p(x, R), g || (g = !!d && x.treeParent !== v)) : (x = this.createRowNode(R, b), r.add(x)), !d || l.has(x)) {
38705
+ l.add(x);
38706
38706
  continue;
38707
38707
  }
38708
- l.add(F), F.treeParent = v;
38709
- const x = d(R);
38710
- x && f(F, x, b + 1);
38708
+ l.add(x), x.treeParent = v;
38709
+ const F = d(R);
38710
+ F && f(x, F, b + 1);
38711
38711
  }
38712
38712
  };
38713
38713
  f(s, t, 0);
@@ -38891,18 +38891,18 @@ var R6 = {
38891
38891
  let f = !1, C;
38892
38892
  const v = (w) => {
38893
38893
  const b = g && w.leafGroup;
38894
- let y = d && u && !w.leafGroup;
38895
- y && (C ?? (C = this.shouldSortContainsGroupCols(e)), y && (y = !C));
38896
- let S = null;
38897
- if (y) {
38894
+ let S = d && u && !w.leafGroup;
38895
+ S && (C ?? (C = this.shouldSortContainsGroupCols(e)), S && (S = !C));
38896
+ let y = null;
38897
+ if (S) {
38898
38898
  let R = !1;
38899
38899
  if (h) {
38900
- const F = w.level + 1;
38901
- F < h.length && (R = h[F].getSort() === null);
38900
+ const x = w.level + 1;
38901
+ x < h.length && (R = h[x].getSort() === null);
38902
38902
  }
38903
- R || (S = H6(w));
38904
- } else !e.length || b || (t && s ? S = O6(a, w, s, i, e) : S = a.doFullSort(w.childrenAfterAggFilter, e));
38905
- if (S || (S = w.childrenAfterAggFilter?.slice(0) ?? []), f || (f = w.childrenAfterSort?.[0] !== S[0]), w.childrenAfterSort = S, qC(w), p) {
38903
+ R || (y = H6(w));
38904
+ } else !e.length || b || (t && s ? y = O6(a, w, s, i, e) : y = a.doFullSort(w.childrenAfterAggFilter, e));
38905
+ if (y || (y = w.childrenAfterAggFilter?.slice(0) ?? []), f || (f = w.childrenAfterSort?.[0] !== y[0]), w.childrenAfterSort = y, qC(w), p) {
38906
38906
  const R = { nodes: w.childrenAfterSort };
38907
38907
  p(R);
38908
38908
  }
@@ -40738,35 +40738,35 @@ var PI = class extends L {
40738
40738
  b && r?.aggregationModel.forEach(({ colId: E, aggFunc: M }) => {
40739
40739
  f(E).aggFunc = M;
40740
40740
  }), (b || !s) && (C.aggFunc = null);
40741
- const y = g("pivot", a);
40742
- y && (a?.pivotColIds.forEach((E, M) => {
40741
+ const S = g("pivot", a);
40742
+ S && (a?.pivotColIds.forEach((E, M) => {
40743
40743
  const U = f(E);
40744
40744
  U.pivot = !0, U.pivotIndex = M;
40745
40745
  }), this.gos.updateGridOptions({
40746
40746
  options: { pivotMode: !!a?.pivotMode },
40747
40747
  source: t
40748
- })), (y || !s) && (C.pivot = null, C.pivotIndex = null);
40749
- const S = g("columnPinning", l);
40750
- if (S) {
40748
+ })), (S || !s) && (C.pivot = null, C.pivotIndex = null);
40749
+ const y = g("columnPinning", l);
40750
+ if (y) {
40751
40751
  for (const E of l?.leftColIds ?? [])
40752
40752
  f(E).pinned = "left";
40753
40753
  for (const E of l?.rightColIds ?? [])
40754
40754
  f(E).pinned = "right";
40755
40755
  }
40756
- (S || !s) && (C.pinned = null);
40756
+ (y || !s) && (C.pinned = null);
40757
40757
  const R = g("columnVisibility", c);
40758
40758
  if (R)
40759
40759
  for (const E of c?.hiddenColIds ?? [])
40760
40760
  f(E).hide = !0;
40761
40761
  (R || !s) && (C.hide = null);
40762
- const F = g("columnSizing", d);
40763
- if (F)
40762
+ const x = g("columnSizing", d);
40763
+ if (x)
40764
40764
  for (const { colId: E, flex: M, width: U } of d?.columnSizingModel ?? []) {
40765
40765
  const K = f(E);
40766
40766
  K.flex = M ?? null, K.width = U;
40767
40767
  }
40768
- (F || !s) && (C.flex = null);
40769
- const x = u?.orderedColIds, P = !!x?.length && !i?.has("columnOrder"), T = P ? x.map((E) => f(E)) : Object.values(p);
40768
+ (x || !s) && (C.flex = null);
40769
+ const F = u?.orderedColIds, P = !!F?.length && !i?.has("columnOrder"), T = P ? F.map((E) => f(E)) : Object.values(p);
40770
40770
  (T.length || h) && (this.columnStates = T, Xt(
40771
40771
  this.beans,
40772
40772
  {
@@ -41750,29 +41750,29 @@ var mA = class extends L {
41750
41750
  const C = /* @__PURE__ */ new Set();
41751
41751
  let v = -1;
41752
41752
  const w = Object.fromEntries(
41753
- c.map(({ colId: S, ...R }) => [S, R])
41754
- ), b = o ?? this.gos.get("skipHeaderOnAutoSize"), y = n ?? b;
41753
+ c.map(({ colId: y, ...R }) => [y, R])
41754
+ ), b = o ?? this.gos.get("skipHeaderOnAutoSize"), S = n ?? b;
41755
41755
  for (; v !== 0; ) {
41756
41756
  v = 0;
41757
- const S = [];
41757
+ const y = [];
41758
41758
  for (const R of i) {
41759
41759
  if (!R || Ty(R))
41760
41760
  continue;
41761
- const F = g.getCol(R);
41762
- if (!F || C.has(F))
41761
+ const x = g.getCol(R);
41762
+ if (!x || C.has(x))
41763
41763
  continue;
41764
- const x = p.getPreferredWidthForColumn(F, b);
41765
- if (x > 0) {
41766
- const P = w[F.colId] ?? {};
41764
+ const F = p.getPreferredWidthForColumn(x, b);
41765
+ if (F > 0) {
41766
+ const P = w[x.colId] ?? {};
41767
41767
  P.minWidth ?? (P.minWidth = l), P.maxWidth ?? (P.maxWidth = a);
41768
- const T = CA(F, x, P);
41769
- F.setActualWidth(T, d), C.add(F), v++;
41768
+ const T = CA(x, F, P);
41769
+ x.setActualWidth(T, d), C.add(x), v++;
41770
41770
  }
41771
- S.push(F);
41771
+ y.push(x);
41772
41772
  }
41773
- S.length && f.refresh(d);
41773
+ y.length && f.refresh(d);
41774
41774
  }
41775
- y || this.autoSizeColumnGroupsByColumns(i, d, r), t(C);
41775
+ S || this.autoSizeColumnGroupsByColumns(i, d, r), t(C);
41776
41776
  });
41777
41777
  }
41778
41778
  autoSizeColumn(e, t, s) {
@@ -41889,9 +41889,9 @@ var mA = class extends L {
41889
41889
  const f = p / Fs(l);
41890
41890
  let C = p;
41891
41891
  for (let v = l.length - 1; v >= 0; v--) {
41892
- const w = l[v], b = o?.[w.getId()], y = b?.minWidth ?? i?.defaultMinWidth, S = b?.maxWidth ?? i?.defaultMaxWidth, R = w.getMinWidth(), F = w.getMaxWidth(), x = typeof y == "number" && y > R ? y : R, P = typeof S == "number" && S < F ? S : F;
41892
+ const w = l[v], b = o?.[w.getId()], S = b?.minWidth ?? i?.defaultMinWidth, y = b?.maxWidth ?? i?.defaultMaxWidth, R = w.getMinWidth(), x = w.getMaxWidth(), F = typeof S == "number" && S > R ? S : R, P = typeof y == "number" && y < x ? y : x;
41893
41893
  let T = Math.round(w.getActualWidth() * f);
41894
- T < x ? (T = x, h(w), u = !1) : T > P ? (T = P, h(w), u = !1) : v === 0 && (T = C), w.setActualWidth(T, t, !0), C -= T;
41894
+ T < F ? (T = F, h(w), u = !1) : T > P ? (T = P, h(w), u = !1) : v === 0 && (T = C), w.setActualWidth(T, t, !0), C -= T;
41895
41895
  }
41896
41896
  }
41897
41897
  }
@@ -42047,11 +42047,11 @@ var FA = {
42047
42047
  beans: { gos: s, pinnedRowModel: i, rowModel: o, valueSvc: n, pagination: r }
42048
42048
  } = this, { colDef: a } = t, l = this.getNodeMap(e), c = /* @__PURE__ */ new Map(), d = s.getCallback("isFullWidthRow"), u = a.equals, h = a.spanRows, g = typeof h == "function";
42049
42049
  let p = null, f = null, C;
42050
- const v = (b, y) => {
42051
- p = b, f = null, C = y;
42050
+ const v = (b, S) => {
42051
+ p = b, f = null, C = S;
42052
42052
  }, w = (b) => {
42053
- const y = !b.isExpandable() && !b.group && !b.detail && (d ? !d({ rowNode: b }) : !0);
42054
- if (b.rowIndex == null || !y) {
42053
+ const S = !b.isExpandable() && !b.group && !b.detail && (d ? !d({ rowNode: b }) : !0);
42054
+ if (b.rowIndex == null || !S) {
42055
42055
  v(null, null);
42056
42056
  return;
42057
42057
  }
@@ -42060,22 +42060,22 @@ var FA = {
42060
42060
  v(b, n.getValue(t, b));
42061
42061
  return;
42062
42062
  }
42063
- const S = n.getValue(t, b);
42063
+ const y = n.getValue(t, b);
42064
42064
  if (g) {
42065
42065
  const R = me(s, {
42066
42066
  valueA: C,
42067
42067
  nodeA: p,
42068
- valueB: S,
42068
+ valueB: y,
42069
42069
  nodeB: b,
42070
42070
  column: t,
42071
42071
  colDef: a
42072
42072
  });
42073
42073
  if (!h(R)) {
42074
- v(b, S);
42074
+ v(b, y);
42075
42075
  return;
42076
42076
  }
42077
- } else if (u ? !u(C, S) : C !== S) {
42078
- v(b, S);
42077
+ } else if (u ? !u(C, y) : C !== y) {
42078
+ v(b, y);
42079
42079
  return;
42080
42080
  }
42081
42081
  if (!f) {
@@ -42755,8 +42755,8 @@ var KA = {
42755
42755
  return;
42756
42756
  const { paddingTop: u, paddingBottom: h, borderBottomWidth: g, borderTopWidth: p } = Mi(i), f = u + h + g + p, v = t.offsetHeight + f;
42757
42757
  if (d < 5) {
42758
- const b = !rt(r)?.contains(t), y = v == 0;
42759
- if (b || y) {
42758
+ const b = !rt(r)?.contains(t), S = v == 0;
42759
+ if (b || S) {
42760
42760
  window.setTimeout(() => a(d + 1), 0);
42761
42761
  return;
42762
42762
  }
@@ -42923,14 +42923,14 @@ function ya(e, t, s) {
42923
42923
  return i.length === e.length && o.length === 0 ? e : i.length === 0 && o.length === t.length ? t : i.length === 0 ? o : o.length === 0 ? i : [...i, ...o];
42924
42924
  }
42925
42925
  var tv = Pd((e, t) => {
42926
- const { registry: s, context: i } = ot(vt), o = k(null), n = k(null), r = k(null), a = k(null), l = k(null), c = k(), [d, u] = A(), [h, g] = A(), [p, f] = A(), [C, v] = A(() => new Kt()), [w, b] = A(() => new Kt("ag-hidden")), [y, S] = A(() => new Kt("ag-hidden")), [R, F] = A(() => new Kt("ag-invisible"));
42926
+ const { registry: s, context: i } = ot(vt), o = k(null), n = k(null), r = k(null), a = k(null), l = k(null), c = k(), [d, u] = A(), [h, g] = A(), [p, f] = A(), [C, v] = A(() => new Kt()), [w, b] = A(() => new Kt("ag-hidden")), [S, y] = A(() => new Kt("ag-hidden")), [R, x] = A(() => new Kt("ag-invisible"));
42927
42927
  Tn(t, () => ({
42928
42928
  // force new instance when grid tries to refresh
42929
42929
  refresh() {
42930
42930
  return !1;
42931
42931
  }
42932
42932
  })), Qt(() => Bn(d, i, n.current), [d]);
42933
- const x = D((ne) => {
42933
+ const F = D((ne) => {
42934
42934
  if (o.current = ne, !ne || i.isDestroyed()) {
42935
42935
  c.current = i.destroyBean(c.current);
42936
42936
  return;
@@ -42941,10 +42941,10 @@ var tv = Pd((e, t) => {
42941
42941
  },
42942
42942
  setChildCount: ($) => g($),
42943
42943
  toggleCss: ($, oe) => v((X) => X.setClass($, oe)),
42944
- setContractedDisplayed: ($) => S((oe) => oe.setClass("ag-hidden", !$)),
42944
+ setContractedDisplayed: ($) => y((oe) => oe.setClass("ag-hidden", !$)),
42945
42945
  setExpandedDisplayed: ($) => b((oe) => oe.setClass("ag-hidden", !$)),
42946
- setCheckboxVisible: ($) => F((oe) => oe.setClass("ag-invisible", !$)),
42947
- setCheckboxSpacing: ($) => F((oe) => oe.setClass("ag-group-checkbox-spacing", $))
42946
+ setCheckboxVisible: ($) => x((oe) => oe.setClass("ag-invisible", !$)),
42947
+ setCheckboxSpacing: ($) => x((oe) => oe.setClass("ag-group-checkbox-spacing", $))
42948
42948
  }, le = s.createDynamicBean("groupCellRendererCtrl", !0);
42949
42949
  le && (c.current = i.createBean(le), c.current.init(
42950
42950
  O,
@@ -42956,14 +42956,14 @@ var tv = Pd((e, t) => {
42956
42956
  e
42957
42957
  ));
42958
42958
  }, []), P = B(() => `ag-cell-wrapper ${C.toString()}`, [C]), T = B(() => `ag-group-expanded ${w.toString()}`, [w]), E = B(
42959
- () => `ag-group-contracted ${y.toString()}`,
42960
- [y]
42959
+ () => `ag-group-contracted ${S.toString()}`,
42960
+ [S]
42961
42961
  ), M = B(() => `ag-group-checkbox ${R.toString()}`, [R]), U = d?.componentFromFramework, K = U ? d.componentClass : void 0, N = d == null && p != null, J = Eo(p);
42962
42962
  return /* @__PURE__ */ q.createElement(
42963
42963
  "span",
42964
42964
  {
42965
42965
  className: P,
42966
- ref: x,
42966
+ ref: F,
42967
42967
  ...e.colDef ? {} : { role: c.current?.getCellAriaRole() }
42968
42968
  },
42969
42969
  /* @__PURE__ */ q.createElement("span", { className: T, ref: a }),
@@ -43430,18 +43430,18 @@ var wk = 1e3, bk = class {
43430
43430
  }
43431
43431
  a.current = s.createBean(new Do());
43432
43432
  const w = () => {
43433
- const y = e.getSelectAllGui();
43434
- y && (c.current?.insertAdjacentElement("afterend", y), a.current.addDestroyFunc(() => y.remove()));
43433
+ const S = e.getSelectAllGui();
43434
+ S && (c.current?.insertAdjacentElement("afterend", S), a.current.addDestroyFunc(() => S.remove()));
43435
43435
  }, b = {
43436
- setWidth: (y) => {
43437
- l.current && (l.current.style.width = y);
43436
+ setWidth: (S) => {
43437
+ l.current && (l.current.style.width = S);
43438
43438
  },
43439
- toggleCss: (y, S) => h.current.toggleCss(y, S),
43440
- setUserStyles: (y) => r(y),
43441
- setAriaSort: (y) => {
43442
- l.current && (y ? xS(l.current, y) : FS(l.current));
43439
+ toggleCss: (S, y) => h.current.toggleCss(S, y),
43440
+ setUserStyles: (S) => r(S),
43441
+ setAriaSort: (S) => {
43442
+ l.current && (S ? xS(l.current, S) : FS(l.current));
43443
43443
  },
43444
- setUserCompDetails: (y) => o(y),
43444
+ setUserCompDetails: (S) => o(S),
43445
43445
  getUserCompInstance: () => u.current || void 0,
43446
43446
  refreshSelectAllGui: w,
43447
43447
  removeSelectAllGui: () => e.getSelectAllGui()?.remove()
@@ -43477,15 +43477,15 @@ var wk = 1e3, bk = class {
43477
43477
  () => new Kt("ag-header-cell", "ag-floating-filter")
43478
43478
  ), [a, l] = A(() => new Kt()), [c, d] = A(
43479
43479
  () => new Kt("ag-floating-filter-button", "ag-hidden")
43480
- ), [u, h] = A("false"), [g, p] = A(), [, f] = A(1), C = k(), v = k(null), w = k(null), b = k(null), y = k(null), S = k(), R = k(), F = ($) => {
43481
- $ != null && S.current && S.current($);
43482
- }, x = D(($) => {
43480
+ ), [u, h] = A("false"), [g, p] = A(), [, f] = A(1), C = k(), v = k(null), w = k(null), b = k(null), S = k(null), y = k(), R = k(), x = ($) => {
43481
+ $ != null && y.current && y.current($);
43482
+ }, F = D(($) => {
43483
43483
  if (v.current = $, !$ || !e.isAlive() || t.isDestroyed()) {
43484
43484
  C.current = t.destroyBean(C.current);
43485
43485
  return;
43486
43486
  }
43487
43487
  C.current = t.createBean(new Do()), R.current = new Me((X) => {
43488
- S.current = X;
43488
+ y.current = X;
43489
43489
  });
43490
43490
  const oe = {
43491
43491
  toggleCss: (X, te) => r((Z) => Z.setClass(X, te)),
@@ -43499,12 +43499,12 @@ var wk = 1e3, bk = class {
43499
43499
  },
43500
43500
  setCompDetails: (X) => p(X),
43501
43501
  getFloatingFilterComp: () => R.current ? R.current : null,
43502
- setMenuIcon: (X) => y.current?.appendChild(X)
43502
+ setMenuIcon: (X) => S.current?.appendChild(X)
43503
43503
  };
43504
- e.setComp(oe, $, y.current, w.current, C.current);
43504
+ e.setComp(oe, $, S.current, w.current, C.current);
43505
43505
  }, []);
43506
43506
  Qt(
43507
- () => Bn(g, t, w.current, F),
43507
+ () => Bn(g, t, w.current, x),
43508
43508
  [g]
43509
43509
  );
43510
43510
  const P = B(() => n.toString(), [n]), T = B(() => a.toString(), [a]), E = B(() => c.toString(), [c]), M = B(() => !!(g && g.componentFromFramework && To(g.componentClass)), [g]), U = B(() => s.get("reactiveCustomComponents"), []), K = B(() => s.get("enableFilterHandlers"), []), [N, J] = A();
@@ -43512,12 +43512,12 @@ var wk = 1e3, bk = class {
43512
43512
  if (g?.componentFromFramework)
43513
43513
  if (U) {
43514
43514
  const $ = K ? Rk : dk, oe = new $(g.params, () => f((X) => X + 1));
43515
- F(oe), J(oe);
43515
+ x(oe), J(oe);
43516
43516
  } else
43517
43517
  Vu();
43518
43518
  }, [g]);
43519
43519
  const ne = N?.getProps(), O = g?.componentFromFramework, le = g?.componentClass;
43520
- return /* @__PURE__ */ q.createElement("div", { ref: x, style: i, className: P, role: "gridcell" }, /* @__PURE__ */ q.createElement("div", { ref: w, className: T, role: "presentation" }, O ? U ? ne && /* @__PURE__ */ q.createElement(
43520
+ return /* @__PURE__ */ q.createElement("div", { ref: F, style: i, className: P, role: "gridcell" }, /* @__PURE__ */ q.createElement("div", { ref: w, className: T, role: "presentation" }, O ? U ? ne && /* @__PURE__ */ q.createElement(
43521
43521
  Bu.Provider,
43522
43522
  {
43523
43523
  value: {
@@ -43526,7 +43526,7 @@ var wk = 1e3, bk = class {
43526
43526
  },
43527
43527
  /* @__PURE__ */ q.createElement(le, { ...ne })
43528
43528
  ) : /* @__PURE__ */ q.createElement(le, { ...g.params, ref: M ? () => {
43529
- } : F }) : null), /* @__PURE__ */ q.createElement(
43529
+ } : x }) : null), /* @__PURE__ */ q.createElement(
43530
43530
  "div",
43531
43531
  {
43532
43532
  ref: b,
@@ -43537,7 +43537,7 @@ var wk = 1e3, bk = class {
43537
43537
  /* @__PURE__ */ q.createElement(
43538
43538
  "button",
43539
43539
  {
43540
- ref: y,
43540
+ ref: S,
43541
43541
  type: "button",
43542
43542
  className: "ag-button ag-floating-filter-button-button",
43543
43543
  tabIndex: -1
@@ -43577,30 +43577,30 @@ var wk = 1e3, bk = class {
43577
43577
  Qt(() => Bn(h, t, v.current), [h]), we(() => {
43578
43578
  f.current && e.setDragSource(f.current);
43579
43579
  }, [h]);
43580
- const y = B(() => !!(h?.componentFromFramework && To(h.componentClass)), [h]), S = B(() => "ag-header-group-cell " + o.toString(), [o]), R = B(
43580
+ const S = B(() => !!(h?.componentFromFramework && To(h.componentClass)), [h]), y = B(() => "ag-header-group-cell " + o.toString(), [o]), R = B(
43581
43581
  () => "ag-header-cell-resize " + r.toString(),
43582
43582
  [r]
43583
- ), F = h?.componentFromFramework, x = h?.componentClass;
43584
- return /* @__PURE__ */ q.createElement("div", { ref: b, style: s, className: S, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ q.createElement("div", { ref: v, className: "ag-header-cell-comp-wrapper", role: "presentation" }, F ? y ? /* @__PURE__ */ q.createElement(x, { ...h.params }) : /* @__PURE__ */ q.createElement(x, { ...h.params, ref: w }) : null), /* @__PURE__ */ q.createElement("div", { ref: C, "aria-hidden": l, className: R }));
43583
+ ), x = h?.componentFromFramework, F = h?.componentClass;
43584
+ return /* @__PURE__ */ q.createElement("div", { ref: b, style: s, className: y, role: "columnheader", "aria-expanded": d }, /* @__PURE__ */ q.createElement("div", { ref: v, className: "ag-header-cell-comp-wrapper", role: "presentation" }, x ? S ? /* @__PURE__ */ q.createElement(F, { ...h.params }) : /* @__PURE__ */ q.createElement(F, { ...h.params, ref: w }) : null), /* @__PURE__ */ q.createElement("div", { ref: C, "aria-hidden": l, className: R }));
43585
43585
  }, Dk = Ct(Ek), Pk = ({ ctrl: e }) => {
43586
- const { gos: t, context: s } = ot(vt), { topOffset: i, rowHeight: o } = B(() => e.getTopAndHeight(), []), n = B(() => t.get("tabIndex"), []), [r, a] = A(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = A(() => o + "px"), [u, h] = A(() => i + "px"), g = k(null), [p, f] = A(() => e.getUpdatedHeaderCtrls()), C = k(), v = k(null), w = D((S) => {
43587
- if (v.current = S, !S || !e.isAlive() || s.isDestroyed()) {
43586
+ const { gos: t, context: s } = ot(vt), { topOffset: i, rowHeight: o } = B(() => e.getTopAndHeight(), []), n = B(() => t.get("tabIndex"), []), [r, a] = A(() => e.getAriaRowIndex()), l = e.headerRowClass, [c, d] = A(() => o + "px"), [u, h] = A(() => i + "px"), g = k(null), [p, f] = A(() => e.getUpdatedHeaderCtrls()), C = k(), v = k(null), w = D((y) => {
43587
+ if (v.current = y, !y || !e.isAlive() || s.isDestroyed()) {
43588
43588
  C.current = s.destroyBean(C.current);
43589
43589
  return;
43590
43590
  }
43591
43591
  C.current = s.createBean(new Do());
43592
43592
  const R = {
43593
- setHeight: (F) => d(F),
43594
- setTop: (F) => h(F),
43595
- setHeaderCtrls: (F, x, P) => {
43596
- const T = g.current, E = ya(T, F, x);
43593
+ setHeight: (x) => d(x),
43594
+ setTop: (x) => h(x),
43595
+ setHeaderCtrls: (x, F, P) => {
43596
+ const T = g.current, E = ya(T, x, F);
43597
43597
  E !== T && (g.current = E, Dn(P, () => f(E)));
43598
43598
  },
43599
- setWidth: (F) => {
43600
- v.current && (v.current.style.width = F);
43599
+ setWidth: (x) => {
43600
+ v.current && (v.current.style.width = x);
43601
43601
  },
43602
- setRowIndex: (F) => {
43603
- a(F);
43602
+ setRowIndex: (x) => {
43603
+ a(x);
43604
43604
  }
43605
43605
  };
43606
43606
  e.setComp(R, C.current, !1);
@@ -43610,14 +43610,14 @@ var wk = 1e3, bk = class {
43610
43610
  top: u
43611
43611
  }),
43612
43612
  [c, u]
43613
- ), y = D((S) => {
43613
+ ), S = D((y) => {
43614
43614
  switch (e.type) {
43615
43615
  case "group":
43616
- return /* @__PURE__ */ q.createElement(Dk, { ctrl: S, key: S.instanceId });
43616
+ return /* @__PURE__ */ q.createElement(Dk, { ctrl: y, key: y.instanceId });
43617
43617
  case "filter":
43618
- return /* @__PURE__ */ q.createElement(Fk, { ctrl: S, key: S.instanceId });
43618
+ return /* @__PURE__ */ q.createElement(Fk, { ctrl: y, key: y.instanceId });
43619
43619
  default:
43620
- return /* @__PURE__ */ q.createElement(yk, { ctrl: S, key: S.instanceId });
43620
+ return /* @__PURE__ */ q.createElement(yk, { ctrl: y, key: y.instanceId });
43621
43621
  }
43622
43622
  }, []);
43623
43623
  return /* @__PURE__ */ q.createElement(
@@ -43630,7 +43630,7 @@ var wk = 1e3, bk = class {
43630
43630
  tabIndex: n,
43631
43631
  "aria-rowindex": r
43632
43632
  },
43633
- p.map(y)
43633
+ p.map(S)
43634
43634
  );
43635
43635
  }, Tk = Ct(Pk), Mk = ({ pinned: e }) => {
43636
43636
  const [t, s] = A(!0), [i, o] = A([]), { context: n } = ot(vt), r = k(null), a = k(null), l = k(), c = e === "left", d = e === "right", u = !c && !d, h = D((f) => {
@@ -43747,8 +43747,8 @@ var wk = 1e3, bk = class {
43747
43747
  p = o.createBean(a.createPopupEditorWrapper(u.params));
43748
43748
  const f = p.getGui();
43749
43749
  if (e.jsChildComp) {
43750
- const S = e.jsChildComp.getGui();
43751
- S && f.appendChild(S);
43750
+ const y = e.jsChildComp.getGui();
43751
+ y && f.appendChild(y);
43752
43752
  }
43753
43753
  const { column: C, rowNode: v } = c, w = {
43754
43754
  column: C,
@@ -43758,7 +43758,7 @@ var wk = 1e3, bk = class {
43758
43758
  ePopup: f,
43759
43759
  position: l.popupPosition,
43760
43760
  keepWithinBounds: !0
43761
- }, b = n?.positionPopupByComponent.bind(n, w), y = n?.addPopup({
43761
+ }, b = n?.positionPopupByComponent.bind(n, w), S = n?.addPopup({
43762
43762
  modal: h,
43763
43763
  eChild: f,
43764
43764
  closeOnEsc: !0,
@@ -43769,7 +43769,7 @@ var wk = 1e3, bk = class {
43769
43769
  positionCallback: b,
43770
43770
  ariaOwns: d
43771
43771
  });
43772
- g = y ? y.hideFunc : void 0, s(p), e.jsChildComp?.afterGuiAttached?.();
43772
+ g = S ? S.hideFunc : void 0, s(p), e.jsChildComp?.afterGuiAttached?.();
43773
43773
  }
43774
43774
  return () => {
43775
43775
  g?.(), o.destroyBean(p);
@@ -43858,9 +43858,9 @@ var wk = 1e3, bk = class {
43858
43858
  instanceId: r
43859
43859
  } = e, a = k(), [l, c] = A(
43860
43860
  () => e.isCellRenderer() ? void 0 : { compDetails: void 0, value: e.getValueToDisplay(), force: !1 }
43861
- ), [d, u] = A(), [h, g] = A(1), [p, f] = A(), [C, v] = A(!1), [w, b] = A(!1), [y, S] = A(!1), [R, F] = A(), x = B(() => e.isForceWrapper(), [e]), P = B(() => e.getCellAriaRole(), [e]), T = k(null), E = k(null), M = k(null), U = k(), K = k(), N = k(), J = k([]), ne = k(), O = k(), [le, $] = A(0), oe = D((ce) => {
43861
+ ), [d, u] = A(), [h, g] = A(1), [p, f] = A(), [C, v] = A(!1), [w, b] = A(!1), [S, y] = A(!1), [R, x] = A(), F = B(() => e.isForceWrapper(), [e]), P = B(() => e.getCellAriaRole(), [e]), T = k(null), E = k(null), M = k(null), U = k(), K = k(), N = k(), J = k([]), ne = k(), O = k(), [le, $] = A(0), oe = D((ce) => {
43862
43862
  O.current = ce, $((Pe) => Pe + 1);
43863
- }, []), X = l != null && (C || y || w) && (d == null || !!d.popup), te = x || X, Z = B(() => e.getCellValueClass(), [e]), se = D(
43863
+ }, []), X = l != null && (C || S || w) && (d == null || !!d.popup), te = F || X, Z = B(() => e.getCellValueClass(), [e]), se = D(
43864
43864
  (ce) => {
43865
43865
  if (K.current = ce, ce) {
43866
43866
  const Pe = ce.isCancelBeforeStart && ce.isCancelBeforeStart();
@@ -43890,11 +43890,11 @@ var wk = 1e3, bk = class {
43890
43890
  if (!Se)
43891
43891
  return;
43892
43892
  const Re = Se.getGui();
43893
- se(Se), Ge || ((x ? N : T).current?.appendChild(Re), Se.afterGuiAttached?.()), F(Se);
43893
+ se(Se), Ge || ((F ? N : T).current?.appendChild(Re), Se.afterGuiAttached?.()), x(Se);
43894
43894
  }), () => {
43895
43895
  Ae.then((Se) => {
43896
43896
  const Re = Se.getGui();
43897
- e.disableEditorTooltipFeature(), o.destroyBean(Se), se(void 0), F(void 0), Re?.remove();
43897
+ e.disableEditorTooltipFeature(), o.destroyBean(Se), se(void 0), x(void 0), Re?.remove();
43898
43898
  });
43899
43899
  };
43900
43900
  }, [d]);
@@ -43913,9 +43913,9 @@ var wk = 1e3, bk = class {
43913
43913
  Ys(Ae.getGui()), o.destroyBean(Ae), ne.current === Pe && (ne.current = void 0);
43914
43914
  }));
43915
43915
  };
43916
- C && Ge(e.createSelectionCheckbox()), y && Ge(e.createDndSource()), w && (Pe = e.createRowDragComp(), ne.current = Pe, Pe && (Ge(Pe), Pe.refreshVisibility()));
43916
+ C && Ge(e.createSelectionCheckbox()), S && Ge(e.createDndSource()), w && (Pe = e.createRowDragComp(), ne.current = Pe, Pe && (Ge(Pe), Pe.refreshVisibility()));
43917
43917
  },
43918
- [e, o, y, w, C]
43918
+ [e, o, S, w, C]
43919
43919
  ), H = D(() => {
43920
43920
  const ce = !e.isCellSpanning() || E.current, Pe = T.current;
43921
43921
  if (!Pe || !ce || !e || !e.isAlive() || o.isDestroyed()) {
@@ -43929,7 +43929,7 @@ var wk = 1e3, bk = class {
43929
43929
  getFocusableElement: () => T.current,
43930
43930
  setIncludeSelection: (Se) => v(Se),
43931
43931
  setIncludeRowDrag: (Se) => b(Se),
43932
- setIncludeDndSource: (Se) => S(Se),
43932
+ setIncludeDndSource: (Se) => y(Se),
43933
43933
  getCellEditor: () => K.current ?? null,
43934
43934
  getCellRenderer: () => M.current ?? U.current,
43935
43935
  getParentOfValue: () => O.current ?? N.current ?? T.current,
@@ -44012,17 +44012,17 @@ var wk = 1e3, bk = class {
44012
44012
  }, Wk = Ct(zk), _k = ({ rowCtrl: e, containerType: t }) => {
44013
44013
  const { context: s, gos: i, editSvc: o } = ot(vt), n = ot(XC) === "default", r = k(), a = k(e.getDomOrder()), l = e.isFullWidth(), c = e.rowNode.displayed, [d, u] = A(
44014
44014
  () => c ? e.rowNode.getRowIndexString() : null
44015
- ), [h, g] = A(() => e.rowId), [p, f] = A(() => e.businessKey), [C, v] = A(() => e.rowStyles), w = k(null), [b, y] = A(() => null), [S, R] = A(), [F, x] = A(
44015
+ ), [h, g] = A(() => e.rowId), [p, f] = A(() => e.businessKey), [C, v] = A(() => e.rowStyles), w = k(null), [b, S] = A(() => null), [y, R] = A(), [x, F] = A(
44016
44016
  () => c ? e.getInitialRowTop(t) : void 0
44017
44017
  ), [P, T] = A(
44018
44018
  () => c ? e.getInitialTransform(t) : void 0
44019
44019
  ), E = k(null), M = k(), U = k(), K = k(!1), [N, J] = A(0);
44020
44020
  we(() => {
44021
- if (K.current || !S || N > 10)
44021
+ if (K.current || !y || N > 10)
44022
44022
  return;
44023
44023
  const G = E.current?.firstChild;
44024
44024
  G ? (e.setupDetailRowAutoHeight(G), K.current = !0) : J((re) => re + 1);
44025
- }, [S, N]);
44025
+ }, [y, N]);
44026
44026
  const ne = k();
44027
44027
  ne.current || (ne.current = new Ln(() => E.current));
44028
44028
  const O = k(() => {
@@ -44043,7 +44043,7 @@ var wk = 1e3, bk = class {
44043
44043
  const re = {
44044
44044
  // the rowTop is managed by state, instead of direct style manipulation by rowCtrl (like all the other styles)
44045
44045
  // as we need to have an initial value when it's placed into he DOM for the first time, for animation to work.
44046
- setTop: x,
44046
+ setTop: F,
44047
44047
  setTransform: T,
44048
44048
  // i found using React for managing classes at the row level was to slow, as modifying classes caused a lot of
44049
44049
  // React code to execute, so avoiding React for managing CSS Classes made the grid go much faster.
@@ -44057,7 +44057,7 @@ var wk = 1e3, bk = class {
44057
44057
  // when cols reordered, which would stop the CSS transitions from working
44058
44058
  setCellCtrls: (ae, ye) => {
44059
44059
  const Ee = w.current, Ie = ya(Ee, ae, a.current);
44060
- Ie !== Ee && (w.current = Ie, n ? O.current() : Dn(ye, () => y(Ie)));
44060
+ Ie !== Ee && (w.current = Ie, n ? O.current() : Dn(ye, () => S(Ie)));
44061
44061
  },
44062
44062
  showFullWidth: (ae) => {
44063
44063
  U.current = ae.params, R(ae);
@@ -44075,16 +44075,16 @@ var wk = 1e3, bk = class {
44075
44075
  e.setComp(re, G, t, r.current);
44076
44076
  }, []);
44077
44077
  Qt(
44078
- () => Bn(S, s, E.current, M),
44079
- [S]
44078
+ () => Bn(y, s, E.current, M),
44079
+ [y]
44080
44080
  );
44081
44081
  const te = B(() => {
44082
- const G = { top: F, transform: P };
44082
+ const G = { top: x, transform: P };
44083
44083
  return Object.assign(G, C), G;
44084
- }, [F, P, C]), Z = l && S?.componentFromFramework, se = !l && oe != null, ve = B(() => !!(S?.componentFromFramework && To(S.componentClass)), [S]), W = k(!1);
44084
+ }, [x, P, C]), Z = l && y?.componentFromFramework, se = !l && oe != null, ve = B(() => !!(y?.componentFromFramework && To(y.componentClass)), [y]), W = k(!1);
44085
44085
  we(() => {
44086
- W.current = ve && !!S && !!i.get("reactiveCustomComponents");
44087
- }, [ve, S]);
44086
+ W.current = ve && !!y && !!i.get("reactiveCustomComponents");
44087
+ }, [ve, y]);
44088
44088
  const ie = () => oe?.map((G) => /* @__PURE__ */ q.createElement(
44089
44089
  Wk,
44090
44090
  {
@@ -44094,8 +44094,8 @@ var wk = 1e3, bk = class {
44094
44094
  key: G.instanceId
44095
44095
  }
44096
44096
  )), H = () => {
44097
- const G = S.componentClass;
44098
- return ve ? /* @__PURE__ */ q.createElement(G, { ...S.params }) : /* @__PURE__ */ q.createElement(G, { ...S.params, ref: M });
44097
+ const G = y.componentClass;
44098
+ return ve ? /* @__PURE__ */ q.createElement(G, { ...y.params }) : /* @__PURE__ */ q.createElement(G, { ...y.params, ref: M });
44099
44099
  };
44100
44100
  return /* @__PURE__ */ q.createElement(
44101
44101
  "div",
@@ -44110,13 +44110,13 @@ var wk = 1e3, bk = class {
44110
44110
  se ? ie() : Z ? H() : null
44111
44111
  );
44112
44112
  }, zg = Ct(_k), Uk = ({ name: e }) => {
44113
- const { context: t, gos: s } = ot(vt), i = B(() => Nn(e), [e]), o = k(null), n = k(null), r = k(null), a = k([]), l = k([]), [c, d] = A(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = k([]), g = k([]), [p, f] = A(() => []), C = k(!1), v = k(), w = B(() => zt("ag-viewport", Rm(e)), [e]), b = B(() => zt(Wr(e)), [e]), y = B(() => zt("ag-spanning-container", Mx(e)), [e]), S = i.type === "center" || u, R = S ? o : n;
44113
+ const { context: t, gos: s } = ot(vt), i = B(() => Nn(e), [e]), o = k(null), n = k(null), r = k(null), a = k([]), l = k([]), [c, d] = A(() => []), u = !!s.get("enableCellSpan") && !!i.getSpannedRowCtrls, h = k([]), g = k([]), [p, f] = A(() => []), C = k(!1), v = k(), w = B(() => zt("ag-viewport", Rm(e)), [e]), b = B(() => zt(Wr(e)), [e]), S = B(() => zt("ag-spanning-container", Mx(e)), [e]), y = i.type === "center" || u, R = y ? o : n;
44114
44114
  di(" AG Row Container " + e + " ", R);
44115
- const F = D(() => {
44116
- const N = !S || o.current != null, J = n.current != null, ne = !u || r.current != null;
44115
+ const x = D(() => {
44116
+ const N = !y || o.current != null, J = n.current != null, ne = !u || r.current != null;
44117
44117
  return N && J && ne;
44118
- }, []), x = D(() => o.current == null && n.current == null && r.current == null, []), P = D(() => {
44119
- if (x() && (v.current = t.destroyBean(v.current)), !t.isDestroyed() && F()) {
44118
+ }, []), F = D(() => o.current == null && n.current == null && r.current == null, []), P = D(() => {
44119
+ if (F() && (v.current = t.destroyBean(v.current)), !t.isDestroyed() && x()) {
44120
44120
  const N = (O) => {
44121
44121
  const le = ya(
44122
44122
  l.current,
@@ -44163,7 +44163,7 @@ var wk = 1e3, bk = class {
44163
44163
  o.current
44164
44164
  );
44165
44165
  }
44166
- }, [F, x]), T = D(
44166
+ }, [x, F]), T = D(
44167
44167
  (N) => {
44168
44168
  n.current = N, P();
44169
44169
  },
@@ -44183,16 +44183,16 @@ var wk = 1e3, bk = class {
44183
44183
  {
44184
44184
  className: b,
44185
44185
  ref: T,
44186
- role: S ? "presentation" : "rowgroup"
44186
+ role: y ? "presentation" : "rowgroup"
44187
44187
  },
44188
44188
  c.map((N) => /* @__PURE__ */ q.createElement(zg, { rowCtrl: N, containerType: i.type, key: N.instanceId }))
44189
44189
  );
44190
- if (!S)
44190
+ if (!y)
44191
44191
  return U();
44192
- const K = () => /* @__PURE__ */ q.createElement("div", { className: y, ref: E, role: "presentation" }, p.map((N) => /* @__PURE__ */ q.createElement(zg, { rowCtrl: N, containerType: i.type, key: N.instanceId })));
44192
+ const K = () => /* @__PURE__ */ q.createElement("div", { className: S, ref: E, role: "presentation" }, p.map((N) => /* @__PURE__ */ q.createElement(zg, { rowCtrl: N, containerType: i.type, key: N.instanceId })));
44193
44193
  return /* @__PURE__ */ q.createElement("div", { className: w, ref: M, role: "rowgroup" }, U(), u ? K() : null);
44194
44194
  }, $k = Ct(Uk), jk = () => {
44195
- const e = ot(vt), { context: t, overlays: s } = e, [i, o] = A(""), [n, r] = A(0), [a, l] = A(0), [c, d] = A("0px"), [u, h] = A("0px"), [g, p] = A("100%"), [f, C] = A("0px"), [v, w] = A("0px"), [b, y] = A("100%"), [S, R] = A(!0), [F, x] = A(!0), [P, T] = A(null), [E, M] = A(""), [U, K] = A(null), [N, J] = A("ag-layout-normal"), ne = k();
44195
+ const e = ot(vt), { context: t, overlays: s } = e, [i, o] = A(""), [n, r] = A(0), [a, l] = A(0), [c, d] = A("0px"), [u, h] = A("0px"), [g, p] = A("100%"), [f, C] = A("0px"), [v, w] = A("0px"), [b, S] = A("100%"), [y, R] = A(!0), [x, F] = A(!0), [P, T] = A(null), [E, M] = A(""), [U, K] = A(null), [N, J] = A("ag-layout-normal"), ne = k();
44196
44196
  ne.current || (ne.current = new Ln(() => O.current));
44197
44197
  const O = k(null), le = k(null), $ = k(null), oe = k(null), X = k(null), te = k(null), Z = k(null), se = k([]), ve = k([]);
44198
44198
  di(" AG Grid Body ", O), di(" AG Pinned Top ", le), di(" AG Sticky Top ", $), di(" AG Middle ", te), di(" AG Pinned Bottom ", Z);
@@ -44229,7 +44229,7 @@ var wk = 1e3, bk = class {
44229
44229
  setStickyTopTop: h,
44230
44230
  setStickyTopWidth: p,
44231
44231
  setTopInvisible: R,
44232
- setBottomInvisible: x,
44232
+ setBottomInvisible: F,
44233
44233
  setColumnMovingCss: (V, xe) => ne.current.toggleCss(V, xe),
44234
44234
  updateLayoutClasses: J,
44235
44235
  setAlwaysVerticalScrollClass: T,
@@ -44246,7 +44246,7 @@ var wk = 1e3, bk = class {
44246
44246
  },
44247
44247
  setStickyBottomHeight: C,
44248
44248
  setStickyBottomBottom: w,
44249
- setStickyBottomWidth: y,
44249
+ setStickyBottomWidth: S,
44250
44250
  setGridRootRole: (V) => Re.setAttribute("role", V)
44251
44251
  }, is = t.createBean(new Ux());
44252
44252
  se.current.push(is), is.setComp(
@@ -44268,14 +44268,14 @@ var wk = 1e3, bk = class {
44268
44268
  ),
44269
44269
  [i, N, P, U]
44270
44270
  ), G = B(() => zt("ag-body", N), [N]), re = B(
44271
- () => zt("ag-floating-top", S ? "ag-invisible" : null, U),
44272
- [U, S]
44271
+ () => zt("ag-floating-top", y ? "ag-invisible" : null, U),
44272
+ [U, y]
44273
44273
  ), ae = B(() => zt("ag-sticky-top", U), [U]), ye = B(
44274
44274
  () => zt("ag-sticky-bottom", f === "0px" ? "ag-invisible" : null, U),
44275
44275
  [U, f]
44276
44276
  ), Ee = B(
44277
- () => zt("ag-floating-bottom", F ? "ag-invisible" : null, U),
44278
- [U, F]
44277
+ () => zt("ag-floating-bottom", x ? "ag-invisible" : null, U),
44278
+ [U, x]
44279
44279
  ), Ie = B(
44280
44280
  () => ({
44281
44281
  height: n,
@@ -44364,7 +44364,7 @@ var wk = 1e3, bk = class {
44364
44364
  eFocusableElement: i,
44365
44365
  onTabKeyDown: o,
44366
44366
  forceFocusOutWhenTabGuardsAreEmpty: r,
44367
- focusInnerElement: (y) => n.focusInnerElement(y),
44367
+ focusInnerElement: (S) => n.focusInnerElement(S),
44368
44368
  isEmpty: a
44369
44369
  })
44370
44370
  );
@@ -44393,7 +44393,7 @@ var wk = 1e3, bk = class {
44393
44393
  return /* @__PURE__ */ q.createElement(q.Fragment, null, C("top"), s, C("bottom"));
44394
44394
  }, Yk = Pd(qk), Zk = Ct(Yk), Qk = ({ context: e }) => {
44395
44395
  const [t, s] = A(""), [i, o] = A(""), [n, r] = A(null), [a, l] = A(null), [c, d] = A(!1), [u, h] = A(), g = k(), p = k(null), f = k(), [C, v] = A(null), w = k(() => {
44396
- }), b = k(), y = k([]), S = D(() => {
44396
+ }), b = k(), S = k([]), y = D(() => {
44397
44397
  }, []);
44398
44398
  di(" AG Grid ", p);
44399
44399
  const R = D((M) => {
@@ -44417,7 +44417,7 @@ var wk = 1e3, bk = class {
44417
44417
  getFocusableContainers: () => {
44418
44418
  const N = [], J = p.current?.querySelector(".ag-root");
44419
44419
  J && N.push({ getGui: () => J });
44420
- for (const ne of y.current)
44420
+ for (const ne of S.current)
44421
44421
  ne.isDisplayed() && N.push(ne);
44422
44422
  return N;
44423
44423
  },
@@ -44443,7 +44443,7 @@ var wk = 1e3, bk = class {
44443
44443
  }
44444
44444
  if (ne) {
44445
44445
  const X = e.createBean(new ne.component()), te = X.getGui(), Z = C.querySelector(".ag-tab-guard-bottom");
44446
- Z && (Z.insertAdjacentElement("beforebegin", te), $.push(te)), K.push(X), y.current.push(X);
44446
+ Z && (Z.insertAdjacentElement("beforebegin", te), $.push(te)), K.push(X), S.current.push(X);
44447
44447
  }
44448
44448
  const oe = (X) => {
44449
44449
  const te = e.createBean(new X()), Z = te.getGui();
@@ -44451,7 +44451,7 @@ var wk = 1e3, bk = class {
44451
44451
  };
44452
44452
  if (O && oe(O.component), J) {
44453
44453
  const X = oe(J.component);
44454
- b.current = X, y.current.push(X);
44454
+ b.current = X, S.current.push(X);
44455
44455
  }
44456
44456
  return N && oe(N.component), () => {
44457
44457
  e.destroyBeans(K);
@@ -44459,10 +44459,10 @@ var wk = 1e3, bk = class {
44459
44459
  X.remove();
44460
44460
  };
44461
44461
  }, [u, C, e]);
44462
- const F = B(
44462
+ const x = B(
44463
44463
  () => zt("ag-root-wrapper", t, i),
44464
44464
  [t, i]
44465
- ), x = B(
44465
+ ), F = B(
44466
44466
  () => zt("ag-root-wrapper-body", "ag-focus-managed", i),
44467
44467
  [i]
44468
44468
  ), P = B(
@@ -44475,12 +44475,12 @@ var wk = 1e3, bk = class {
44475
44475
  ), T = D((M) => {
44476
44476
  f.current = M, h(M !== null);
44477
44477
  }, []), E = D(() => !g.current?.isFocusable(), []);
44478
- return /* @__PURE__ */ q.createElement("div", { ref: R, className: F, style: P, role: "presentation" }, /* @__PURE__ */ q.createElement("div", { className: x, ref: v, role: "presentation" }, c && C && !e.isDestroyed() && /* @__PURE__ */ q.createElement(vt.Provider, { value: e.getBeans() }, /* @__PURE__ */ q.createElement(
44478
+ return /* @__PURE__ */ q.createElement("div", { ref: R, className: x, style: P, role: "presentation" }, /* @__PURE__ */ q.createElement("div", { className: F, ref: v, role: "presentation" }, c && C && !e.isDestroyed() && /* @__PURE__ */ q.createElement(vt.Provider, { value: e.getBeans() }, /* @__PURE__ */ q.createElement(
44479
44479
  Zk,
44480
44480
  {
44481
44481
  ref: T,
44482
44482
  eFocusableElement: C,
44483
- onTabKeyDown: S,
44483
+ onTabKeyDown: y,
44484
44484
  gridCtrl: g.current,
44485
44485
  forceFocusOutWhenTabGuardsAreEmpty: !0,
44486
44486
  isEmpty: E
@@ -44550,24 +44550,24 @@ var wk = 1e3, bk = class {
44550
44550
  e.gridOptions,
44551
44551
  e,
44552
44552
  Object.keys(e).filter((E) => !rv.has(E))
44553
- ), y = () => {
44553
+ ), S = () => {
44554
44554
  if (c.current) {
44555
44555
  const E = () => a.current?.shouldQueueUpdates() ? void 0 : n.current.shift();
44556
44556
  let M = E();
44557
44557
  for (; M; )
44558
44558
  M(), M = E();
44559
44559
  }
44560
- }, S = new n8(y);
44561
- a.current = S;
44562
- const R = new Jk(), F = {
44560
+ }, y = new n8(S);
44561
+ a.current = y;
44562
+ const R = new Jk(), x = {
44563
44563
  providedBeanInstances: {
44564
44564
  frameworkCompWrapper: new i8(i.current, b),
44565
44565
  renderStatus: R
44566
44566
  },
44567
44567
  modules: w,
44568
- frameworkOverrides: S,
44568
+ frameworkOverrides: y,
44569
44569
  setThemeOnGridDiv: !0
44570
- }, x = (E) => {
44570
+ }, F = (E) => {
44571
44571
  u(E), E.createBean(R), o.current.push(() => {
44572
44572
  E.destroy();
44573
44573
  }), E.getBean("ctrlsSvc").whenReady(
@@ -44600,9 +44600,9 @@ var wk = 1e3, bk = class {
44600
44600
  b.gridId ?? (b.gridId = l.current), t.current = T.create(
44601
44601
  v,
44602
44602
  b,
44603
- x,
44603
+ F,
44604
44604
  P,
44605
- F
44605
+ x
44606
44606
  ), o.current.push(() => {
44607
44607
  t.current = void 0;
44608
44608
  }), t.current && (l.current = t.current.getGridId());
@@ -44690,25 +44690,25 @@ var i8 = class extends x4 {
44690
44690
  const s = ot(vt), { registry: i, context: o, gos: n, rowModel: r } = s, [a, l] = A(() => new Kt()), [c, d] = A(() => new Kt()), [u, h] = A(), [g, p] = A(), f = k(), C = k(null), v = k(), w = B(
44691
44691
  () => ey(e.api.getGridId(), u?.rowModelType ?? "clientSide"),
44692
44692
  [e]
44693
- ), b = B(() => a.toString() + " ag-details-row", [a]), y = B(() => c.toString() + " ag-details-grid", [c]);
44693
+ ), b = B(() => a.toString() + " ag-details-row", [a]), S = B(() => c.toString() + " ag-details-grid", [c]);
44694
44694
  t && Tn(t, () => ({
44695
44695
  refresh() {
44696
44696
  return f.current?.refresh() ?? !1;
44697
44697
  }
44698
44698
  })), e.template && _(230);
44699
- const S = D((F) => {
44700
- if (C.current = F, !F || o.isDestroyed()) {
44699
+ const y = D((x) => {
44700
+ if (C.current = x, !x || o.isDestroyed()) {
44701
44701
  f.current = o.destroyBean(f.current), v.current?.();
44702
44702
  return;
44703
44703
  }
44704
- const x = {
44704
+ const F = {
44705
44705
  toggleCss: (T, E) => l((M) => M.setClass(T, E)),
44706
44706
  toggleDetailGridCss: (T, E) => d((M) => M.setClass(T, E)),
44707
44707
  setDetailGrid: (T) => h(T),
44708
44708
  setRowData: (T) => p(T),
44709
44709
  getGui: () => C.current
44710
44710
  }, P = i.createDynamicBean("detailCellRendererCtrl", !0);
44711
- if (P && (o.createBean(P), P.init(x, e), f.current = P, n.get("detailRowAutoHeight"))) {
44711
+ if (P && (o.createBean(P), P.init(F, e), f.current = P, n.get("detailRowAutoHeight"))) {
44712
44712
  const T = () => {
44713
44713
  if (C.current == null)
44714
44714
  return;
@@ -44717,15 +44717,15 @@ var i8 = class extends x4 {
44717
44717
  e.node.setRowHeight(E), (Qe(n) || Ii(n)) && r.onRowHeightChanged();
44718
44718
  }, 0);
44719
44719
  };
44720
- v.current = Ns(s, F, T), T();
44720
+ v.current = Ns(s, x, T), T();
44721
44721
  }
44722
- }, []), R = D((F) => {
44723
- f.current?.registerDetailWithMaster(F);
44722
+ }, []), R = D((x) => {
44723
+ f.current?.registerDetailWithMaster(x);
44724
44724
  }, []);
44725
- return /* @__PURE__ */ q.createElement("div", { className: b, ref: S }, u && /* @__PURE__ */ q.createElement(
44725
+ return /* @__PURE__ */ q.createElement("div", { className: b, ref: y }, u && /* @__PURE__ */ q.createElement(
44726
44726
  av,
44727
44727
  {
44728
- className: y,
44728
+ className: S,
44729
44729
  ...u,
44730
44730
  modules: w,
44731
44731
  rowData: g,
@@ -44825,15 +44825,15 @@ const l8 = ee(
44825
44825
  matchReferenceWidth: v = !0,
44826
44826
  maxDropdownHeight: w
44827
44827
  }) => {
44828
- const [b, y] = A(a), S = r !== void 0, R = S ? !!r : b, F = k(null), x = D(
44828
+ const [b, S] = A(a), y = r !== void 0, R = y ? !!r : b, x = k(null), F = D(
44829
44829
  (W) => {
44830
- S || y(W), l?.(W);
44830
+ y || S(W), l?.(W);
44831
44831
  },
44832
- [S, l]
44832
+ [y, l]
44833
44833
  ), P = Td(), T = o === void 0, E = (W) => "clientWidth" in W ? W.clientWidth : W.getBoundingClientRect?.()?.width ?? 0, { refs: M, floatingStyles: U, context: K } = Sd({
44834
44834
  placement: o,
44835
44835
  open: R,
44836
- onOpenChange: x,
44836
+ onOpenChange: F,
44837
44837
  whileElementsMounted: ap,
44838
44838
  middleware: [
44839
44839
  op({ mainAxis: Qo, crossAxis: 0 }),
@@ -44898,29 +44898,29 @@ const l8 = ee(
44898
44898
  [M]
44899
44899
  ), X = D(
44900
44900
  (W) => {
44901
- !i.includes(Ut.ContextMenu) || n || (W.preventDefault(), C && (oe(W.clientX, W.clientY), F.current = document.elementFromPoint(
44901
+ !i.includes(Ut.ContextMenu) || n || (W.preventDefault(), C && (oe(W.clientX, W.clientY), x.current = document.elementFromPoint(
44902
44902
  W.clientX,
44903
44903
  W.clientY
44904
- )), x(!0));
44904
+ )), F(!0));
44905
44905
  },
44906
- [C, n, x, oe, i]
44906
+ [C, n, F, oe, i]
44907
44907
  ), te = D(
44908
44908
  (W) => {
44909
- !C || n || (i.includes(Ut.ContextMenu) && R && x(!1), oe(W.clientX, W.clientY), F.current = document.elementFromPoint(
44909
+ !C || n || (i.includes(Ut.ContextMenu) && R && F(!1), oe(W.clientX, W.clientY), x.current = document.elementFromPoint(
44910
44910
  W.clientX,
44911
44911
  W.clientY
44912
44912
  ));
44913
44913
  },
44914
- [C, n, oe, R, i, x]
44914
+ [C, n, oe, R, i, F]
44915
44915
  );
44916
44916
  we(() => {
44917
- n && R && x(!1);
44918
- }, [n, R, x]);
44917
+ n && R && F(!1);
44918
+ }, [n, R, F]);
44919
44919
  const Z = D(
44920
44920
  (W) => (ie) => {
44921
- W.disabled || (W.onClick?.({ key: W.key, domEvent: ie }), t?.onClick?.({ key: W.key, domEvent: ie }), x(!1));
44921
+ W.disabled || (W.onClick?.({ key: W.key, domEvent: ie }), t?.onClick?.({ key: W.key, domEvent: ie }), F(!1));
44922
44922
  },
44923
- [t, x]
44923
+ [t, F]
44924
44924
  ), se = B(() => s ? s() : t ? /* @__PURE__ */ z(ze, { children: [
44925
44925
  t.header && /* @__PURE__ */ m(ze, { children: typeof t.header == "function" ? t.header() : t.header }),
44926
44926
  /* @__PURE__ */ m("div", { role: "none", className: "py-1", "aria-label": "dropdown", children: t.items.map((W) => W.type === pd.Divider ? /* @__PURE__ */ m(
@@ -44990,15 +44990,15 @@ const l8 = ee(
44990
44990
  if (!R) return;
44991
44991
  const W = M.reference.current;
44992
44992
  let ie = null;
44993
- if (W instanceof Element ? ie = W : F.current instanceof Element && (ie = F.current), !ie) return;
44993
+ if (W instanceof Element ? ie = W : x.current instanceof Element && (ie = x.current), !ie) return;
44994
44994
  const H = new IntersectionObserver(
44995
44995
  ([G]) => {
44996
- G.isIntersecting || x(!1);
44996
+ G.isIntersecting || F(!1);
44997
44997
  },
44998
44998
  { root: null, threshold: 0 }
44999
44999
  );
45000
45000
  return H.observe(ie), () => H.disconnect();
45001
- }, [R, M.reference, x]), /* @__PURE__ */ z(ze, { children: [
45001
+ }, [R, M.reference, F]), /* @__PURE__ */ z(ze, { children: [
45002
45002
  /* @__PURE__ */ m(
45003
45003
  "span",
45004
45004
  {
@@ -45040,7 +45040,7 @@ const l8 = ee(
45040
45040
  {
45041
45041
  ariaLabel: "Close dropdown",
45042
45042
  onClose: (W) => {
45043
- d?.(W), x(!1);
45043
+ d?.(W), F(!1);
45044
45044
  }
45045
45045
  }
45046
45046
  ) }),
@@ -45098,8 +45098,8 @@ const l8 = ee(
45098
45098
  if (e !== void 0 && !t) {
45099
45099
  const v = /* @__PURE__ */ new Map();
45100
45100
  o.forEach((b) => {
45101
- const y = n(b);
45102
- e.has(y) && !r?.has(y) && v.set(y, b);
45101
+ const S = n(b);
45102
+ e.has(S) && !r?.has(S) && v.set(S, b);
45103
45103
  }), (v.size !== a.size || Array.from(v.keys()).some((b) => !a.has(b))) && l(v);
45104
45104
  }
45105
45105
  }, [
@@ -45115,8 +45115,8 @@ const l8 = ee(
45115
45115
  const b = n(v);
45116
45116
  if (r?.has(b))
45117
45117
  return;
45118
- const y = new Map(c);
45119
- w ? y.set(b, v) : y.delete(b), g || l(y), i?.(y), s && s(new Set(y.keys()), Array.from(y.values()));
45118
+ const S = new Map(c);
45119
+ w ? S.set(b, v) : S.delete(b), g || l(S), i?.(S), s && s(new Set(S.keys()), Array.from(S.values()));
45120
45120
  },
45121
45121
  [
45122
45122
  c,
@@ -45136,11 +45136,11 @@ const l8 = ee(
45136
45136
  (v) => {
45137
45137
  const w = /* @__PURE__ */ new Map();
45138
45138
  if (v && h.forEach((b) => {
45139
- const y = n(b);
45140
- w.set(y, b);
45139
+ const S = n(b);
45140
+ w.set(S, b);
45141
45141
  }), g || l(w), i && i(w), s) {
45142
- const b = new Set(w.keys()), y = Array.from(w.values());
45143
- s(b, y);
45142
+ const b = new Set(w.keys()), S = Array.from(w.values());
45143
+ s(b, S);
45144
45144
  }
45145
45145
  },
45146
45146
  [
@@ -45175,17 +45175,17 @@ const cv = ({
45175
45175
  selectionOnHover: u = !0,
45176
45176
  onSelectionChange: h,
45177
45177
  onSelectionChangeWithMap: g,
45178
- getRowId: p = (F) => String(F.id || JSON.stringify(F)),
45178
+ getRowId: p = (x) => String(x.id || JSON.stringify(x)),
45179
45179
  alternateOddRowColors: f = !1,
45180
45180
  filterPlaceholder: C = "Enter value",
45181
45181
  emptyStateIcon: v,
45182
45182
  emptyStateTitle: w = "No results found",
45183
45183
  emptyStateDescription: b = "Sorry, we couldn't find any results for your search.",
45184
- loading: y = !1,
45185
- wrapperBorder: S = !0,
45184
+ loading: S = !1,
45185
+ wrapperBorder: y = !0,
45186
45186
  withoutHeaderBorders: R = !1
45187
45187
  }) => {
45188
- const [F, x] = A(pc), [P, T] = A(), E = Td(), {
45188
+ const [x, F] = A(pc), [P, T] = A(), E = Td(), {
45189
45189
  currentSelectedIds: M,
45190
45190
  handleSelectionToggle: U,
45191
45191
  headerCheckboxState: K,
@@ -45202,11 +45202,11 @@ const cv = ({
45202
45202
  () => ({
45203
45203
  ...gc,
45204
45204
  oddRowBackgroundColor: f ? gc.oddRowBackgroundColor : gc.backgroundColor,
45205
- wrapperBorder: S
45205
+ wrapperBorder: y
45206
45206
  }),
45207
- [f, S]
45207
+ [f, y]
45208
45208
  ), ne = D((ie) => {
45209
- ie.api.sizeColumnsToFit(), x(pc);
45209
+ ie.api.sizeColumnsToFit(), F(pc);
45210
45210
  }, []), O = D(
45211
45211
  (ie) => {
45212
45212
  if (!ie.data) return "";
@@ -45406,7 +45406,7 @@ const cv = ({
45406
45406
  ),
45407
45407
  "aria-label": n,
45408
45408
  role: "region",
45409
- "aria-busy": y,
45409
+ "aria-busy": S,
45410
45410
  children: /* @__PURE__ */ m(
45411
45411
  "div",
45412
45412
  {
@@ -45418,7 +45418,7 @@ const cv = ({
45418
45418
  {
45419
45419
  rowModelType: "clientSide",
45420
45420
  headerHeight: pc,
45421
- rowHeight: F,
45421
+ rowHeight: x,
45422
45422
  cellSelection: !1,
45423
45423
  getRowClass: O,
45424
45424
  theme: Z3.withPart(T3).withParams({ ...J }),
@@ -45427,7 +45427,7 @@ const cv = ({
45427
45427
  defaultColDef: se,
45428
45428
  onGridSizeChanged: ne,
45429
45429
  onGridReady: ve,
45430
- loading: y,
45430
+ loading: S,
45431
45431
  suppressCellFocus: !0,
45432
45432
  suppressDragLeaveHidesColumns: !0,
45433
45433
  noRowsOverlayComponent: W,
@@ -45508,24 +45508,24 @@ const _g = () => typeof window < "u" && window.innerWidth < 640, fc = () => {
45508
45508
  desktopDropdownClassName: a,
45509
45509
  desktopTabClassName: l
45510
45510
  }) => {
45511
- const [c, d] = A(!1), [u, h] = A(!1), [g, p] = A(!1), f = C8(), C = f === Ks.Mobile || o === Ra.Tablet && f === Ks.Tablet, v = i === fd.Horizontal, w = k(null), b = k(null), y = k(null), S = e.find((x) => x.id === t), R = B(
45511
+ const [c, d] = A(!1), [u, h] = A(!1), [g, p] = A(!1), f = C8(), C = f === Ks.Mobile || o === Ra.Tablet && f === Ks.Tablet, v = i === fd.Horizontal, w = k(null), b = k(null), S = k(null), y = e.find((F) => F.id === t), R = B(
45512
45512
  () => ee(
45513
45513
  "flex gap-2",
45514
45514
  v ? "flex-row flex-nowrap overflow-x-auto" : "flex-col flex-wrap w-full"
45515
45515
  ),
45516
45516
  [v]
45517
- ), F = D(() => {
45518
- const x = b.current;
45519
- x && p(x.scrollWidth > x.clientWidth);
45517
+ ), x = D(() => {
45518
+ const F = b.current;
45519
+ F && p(F.scrollWidth > F.clientWidth);
45520
45520
  }, []);
45521
45521
  return we(() => {
45522
- F();
45523
- const x = new ResizeObserver(() => F()), P = b.current;
45524
- return P && x.observe(P), () => x.disconnect();
45525
- }, [e, F]), we(() => {
45526
- const x = y.current, P = b.current;
45527
- if (!x || !P) return;
45528
- const T = x.offsetLeft, E = T + x.offsetWidth, M = P.scrollLeft, U = M + P.clientWidth;
45522
+ x();
45523
+ const F = new ResizeObserver(() => x()), P = b.current;
45524
+ return P && F.observe(P), () => F.disconnect();
45525
+ }, [e, x]), we(() => {
45526
+ const F = S.current, P = b.current;
45527
+ if (!F || !P) return;
45528
+ const T = F.offsetLeft, E = T + F.offsetWidth, M = P.scrollLeft, U = M + P.clientWidth;
45529
45529
  T < M ? P.scrollTo({
45530
45530
  left: T - Wg,
45531
45531
  behavior: "smooth"
@@ -45549,11 +45549,11 @@ const _g = () => typeof window < "u" && window.innerWidth < 640, fc = () => {
45549
45549
  onOpenChange: d,
45550
45550
  placement: "bottom-start",
45551
45551
  allowedPlacements: ["bottom-start", "top-start"],
45552
- renderOverlay: () => e.map((x) => /* @__PURE__ */ m(
45552
+ renderOverlay: () => e.map((F) => /* @__PURE__ */ m(
45553
45553
  Fr,
45554
45554
  {
45555
- tab: x,
45556
- active: x.id === t,
45555
+ tab: F,
45556
+ active: F.id === t,
45557
45557
  onClick: (P) => {
45558
45558
  s(P), d(!1);
45559
45559
  },
@@ -45562,13 +45562,13 @@ const _g = () => typeof window < "u" && window.innerWidth < 640, fc = () => {
45562
45562
  r
45563
45563
  )
45564
45564
  },
45565
- x.id
45565
+ F.id
45566
45566
  )),
45567
45567
  children: /* @__PURE__ */ z("div", { className: "flex gap-2 items-center h-11 cursor-pointer", children: [
45568
45568
  /* @__PURE__ */ m(
45569
45569
  Fr,
45570
45570
  {
45571
- tab: S,
45571
+ tab: y,
45572
45572
  active: !0,
45573
45573
  onClick: s,
45574
45574
  className: "rounded-none bg-transparent border-l-0 border-b-0 h-full items-center px-0"
@@ -45592,23 +45592,23 @@ const _g = () => typeof window < "u" && window.innerWidth < 640, fc = () => {
45592
45592
  ) : (
45593
45593
  // Desktop
45594
45594
  /* @__PURE__ */ z("div", { ref: w, className: "flex w-full items-start", children: [
45595
- /* @__PURE__ */ m("div", { ref: b, role: "tablist", className: R, children: e.map((x) => /* @__PURE__ */ m(
45595
+ /* @__PURE__ */ m("div", { ref: b, role: "tablist", className: R, children: e.map((F) => /* @__PURE__ */ m(
45596
45596
  "div",
45597
45597
  {
45598
- ref: t === x.id ? y : void 0,
45598
+ ref: t === F.id ? S : void 0,
45599
45599
  className: "w-full",
45600
45600
  children: /* @__PURE__ */ m(
45601
45601
  Fr,
45602
45602
  {
45603
- tab: x,
45604
- active: t === x.id,
45603
+ tab: F,
45604
+ active: t === F.id,
45605
45605
  onClick: s,
45606
45606
  horizontal: v,
45607
45607
  className: pe("w-full", l)
45608
45608
  }
45609
45609
  )
45610
45610
  },
45611
- x.id
45611
+ F.id
45612
45612
  )) }),
45613
45613
  g && /* @__PURE__ */ m("div", { className: "flex items-center ml-2", children: /* @__PURE__ */ m(
45614
45614
  Ot,
@@ -45617,17 +45617,17 @@ const _g = () => typeof window < "u" && window.innerWidth < 640, fc = () => {
45617
45617
  open: u,
45618
45618
  onOpenChange: h,
45619
45619
  placement: "bottom-end",
45620
- renderOverlay: () => e.map((x) => /* @__PURE__ */ m(
45620
+ renderOverlay: () => e.map((F) => /* @__PURE__ */ m(
45621
45621
  Fr,
45622
45622
  {
45623
- tab: x,
45624
- active: x.id === t,
45623
+ tab: F,
45624
+ active: F.id === t,
45625
45625
  onClick: (P) => {
45626
45626
  s(P), h(!1);
45627
45627
  },
45628
45628
  className: "w-full rounded-none h-8 items-center px-3 py-2"
45629
45629
  },
45630
- x.id
45630
+ F.id
45631
45631
  )),
45632
45632
  children: /* @__PURE__ */ m(
45633
45633
  Nt,
@@ -45937,13 +45937,13 @@ const _g = () => typeof window < "u" && window.innerWidth < 640, fc = () => {
45937
45937
  suffix: v,
45938
45938
  textBeforeInput: w,
45939
45939
  textAfterInput: b,
45940
- onBlur: y,
45941
- defaultValue: S,
45940
+ onBlur: S,
45941
+ defaultValue: y,
45942
45942
  tooltipText: R,
45943
- hideTooltip: F = !1,
45944
- inputRef: x
45943
+ hideTooltip: x = !1,
45944
+ inputRef: F
45945
45945
  }) => {
45946
- const P = k(null), T = Fd([x, P]);
45946
+ const P = k(null), T = Fd([F, P]);
45947
45947
  we(() => {
45948
45948
  const K = P.current;
45949
45949
  if (!K) return;
@@ -46005,7 +46005,7 @@ const _g = () => typeof window < "u" && window.innerWidth < 640, fc = () => {
46005
46005
  /* @__PURE__ */ m(
46006
46006
  Ls,
46007
46007
  {
46008
- tooltip: F ? void 0 : R || i,
46008
+ tooltip: x ? void 0 : R || i,
46009
46009
  triggerClassName: ee(l, "flex-1"),
46010
46010
  children: /* @__PURE__ */ m(
46011
46011
  "input",
@@ -46015,7 +46015,7 @@ const _g = () => typeof window < "u" && window.innerWidth < 640, fc = () => {
46015
46015
  autoComplete: "new-password",
46016
46016
  id: o,
46017
46017
  placeholder: n,
46018
- value: S ? void 0 : i ?? "",
46018
+ value: y ? void 0 : i ?? "",
46019
46019
  disabled: d,
46020
46020
  className: ee(
46021
46021
  "border-0 bg-transparent w-full truncate",
@@ -46023,10 +46023,10 @@ const _g = () => typeof window < "u" && window.innerWidth < 640, fc = () => {
46023
46023
  ),
46024
46024
  onChange: (K) => !u && U?.(K),
46025
46025
  onKeyDown: M,
46026
- onBlur: y,
46026
+ onBlur: S,
46027
46027
  min: p,
46028
46028
  max: f,
46029
- defaultValue: S
46029
+ defaultValue: y
46030
46030
  }
46031
46031
  )
46032
46032
  }
@@ -46226,12 +46226,12 @@ const L8 = "z-[52] flex items-center justify-center bg-blackout md:p-4", O8 = "d
46226
46226
  }) => {
46227
46227
  const { refs: p, context: f } = Sd({
46228
46228
  open: e,
46229
- onOpenChange: (S) => {
46230
- S || d?.(null);
46229
+ onOpenChange: (y) => {
46230
+ y || d?.(null);
46231
46231
  }
46232
46232
  }), C = Rd(f, { role: "dialog" }), v = yd(f, { outsidePress: g }), { getFloatingProps: w } = xd([C, v]);
46233
46233
  if (!e) return null;
46234
- const b = typeof t == "string" ? "dial-popup-heading" : void 0, y = (S) => S ? typeof S == "string" ? /* @__PURE__ */ m(
46234
+ const b = typeof t == "string" ? "dial-popup-heading" : void 0, S = (y) => y ? typeof y == "string" ? /* @__PURE__ */ m(
46235
46235
  "h3",
46236
46236
  {
46237
46237
  id: b,
@@ -46239,9 +46239,9 @@ const L8 = "z-[52] flex items-center justify-center bg-blackout md:p-4", O8 = "d
46239
46239
  "flex-1 min-w-0 mr-3 truncate dial-h3 text-primary",
46240
46240
  n
46241
46241
  ),
46242
- children: /* @__PURE__ */ m(Ls, { tooltip: S, children: S })
46242
+ children: /* @__PURE__ */ m(Ls, { tooltip: y, children: y })
46243
46243
  }
46244
- ) : S : /* @__PURE__ */ m("span", {});
46244
+ ) : y : /* @__PURE__ */ m("span", {});
46245
46245
  return /* @__PURE__ */ m(Ed, { id: s, children: /* @__PURE__ */ m(
46246
46246
  Bv,
46247
46247
  {
@@ -46266,12 +46266,12 @@ const L8 = "z-[52] flex items-center justify-center bg-blackout md:p-4", O8 = "d
46266
46266
  {
46267
46267
  className: pe(N8, r),
46268
46268
  children: [
46269
- y(t),
46269
+ S(t),
46270
46270
  !h && /* @__PURE__ */ m(
46271
46271
  lv,
46272
46272
  {
46273
46273
  ariaLabel: "Close dialog",
46274
- onClose: (S) => d?.(S)
46274
+ onClose: (y) => d?.(y)
46275
46275
  }
46276
46276
  )
46277
46277
  ]
@@ -46501,20 +46501,20 @@ const G8 = "flex justify-end gap-2 px-6 py-4", B8 = "text-secondary dial-small-1
46501
46501
  id: w,
46502
46502
  size: b = qt.Md
46503
46503
  }) => {
46504
- const [y, S] = A(!1), R = D(() => {
46505
- s || S(!0);
46506
- }, [s]), F = D(() => {
46507
- S(!1), c?.();
46508
- }, [c]), x = D(() => {
46509
- h(), F();
46510
- }, [h, F]);
46504
+ const [S, y] = A(!1), R = D(() => {
46505
+ s || y(!0);
46506
+ }, [s]), x = D(() => {
46507
+ y(!1), c?.();
46508
+ }, [c]), F = D(() => {
46509
+ h(), x();
46510
+ }, [h, x]);
46511
46511
  return /* @__PURE__ */ z("div", { className: "flex flex-col", children: [
46512
46512
  /* @__PURE__ */ m(xo, { fieldTitle: e, htmlFor: t }),
46513
46513
  /* @__PURE__ */ m(
46514
46514
  _8,
46515
46515
  {
46516
46516
  disabled: s,
46517
- open: y,
46517
+ open: S,
46518
46518
  selectedValue: n ?? o.find((P) => P.id === i)?.name,
46519
46519
  valueClassName: r,
46520
46520
  inputClassName: ee(a, "py-2", "px-3"),
@@ -46523,8 +46523,8 @@ const G8 = "flex justify-end gap-2 px-6 py-4", B8 = "text-secondary dial-small-1
46523
46523
  children: /* @__PURE__ */ m(
46524
46524
  Mo,
46525
46525
  {
46526
- open: y,
46527
- onClose: F,
46526
+ open: S,
46527
+ onClose: x,
46528
46528
  header: d,
46529
46529
  portalId: u,
46530
46530
  size: b,
@@ -46533,14 +46533,14 @@ const G8 = "flex justify-end gap-2 px-6 py-4", B8 = "text-secondary dial-small-1
46533
46533
  ei,
46534
46534
  {
46535
46535
  label: g,
46536
- onClick: F
46536
+ onClick: x
46537
46537
  }
46538
46538
  ),
46539
46539
  /* @__PURE__ */ m(
46540
46540
  ws,
46541
46541
  {
46542
46542
  label: p,
46543
- onClick: x,
46543
+ onClick: F,
46544
46544
  disabled: !f
46545
46545
  }
46546
46546
  )
@@ -46832,22 +46832,22 @@ const Z8 = {
46832
46832
  onChange: l
46833
46833
  }) => {
46834
46834
  const c = k(null), [d, u] = A(e), [h, g] = A(""), [p, f] = A(!1), C = (b) => {
46835
- const y = b.trim().replace(/,$/, "");
46836
- if (y && !d.includes(y)) {
46837
- const S = [y, ...d];
46838
- u(S), l?.(S);
46835
+ const S = b.trim().replace(/,$/, "");
46836
+ if (S && !d.includes(S)) {
46837
+ const y = [S, ...d];
46838
+ u(y), l?.(y);
46839
46839
  }
46840
46840
  }, v = (b) => {
46841
46841
  (b.key === "," || b.key === "Enter") && (b.preventDefault(), C(h), g(""));
46842
46842
  }, w = (b) => {
46843
- const y = d.filter((S, R) => R !== b);
46844
- u(y), l?.(y);
46843
+ const S = d.filter((y, R) => R !== b);
46844
+ u(S), l?.(S);
46845
46845
  };
46846
46846
  return we(() => {
46847
46847
  const b = new ResizeObserver(() => {
46848
46848
  if (c.current) {
46849
- const y = c.current.scrollHeight > c.current.clientHeight + 10;
46850
- f(y);
46849
+ const S = c.current.scrollHeight > c.current.clientHeight + 10;
46850
+ f(S);
46851
46851
  }
46852
46852
  });
46853
46853
  return c.current && b.observe(c.current), () => b.disconnect();
@@ -46877,13 +46877,13 @@ const Z8 = {
46877
46877
  p ? "flex-col-reverse" : "flex-row"
46878
46878
  ),
46879
46879
  children: [
46880
- d.map((b, y) => /* @__PURE__ */ m(
46880
+ d.map((b, S) => /* @__PURE__ */ m(
46881
46881
  Bd,
46882
46882
  {
46883
46883
  tag: b,
46884
- remove: a ? void 0 : () => w(y)
46884
+ remove: a ? void 0 : () => w(S)
46885
46885
  },
46886
- b + y
46886
+ b + S
46887
46887
  )),
46888
46888
  /* @__PURE__ */ m(
46889
46889
  "input",
@@ -46945,11 +46945,11 @@ const iL = ({
46945
46945
  emptyStateIcon: v,
46946
46946
  disabled: w = !1,
46947
46947
  className: b,
46948
- listClassName: y,
46949
- closable: S = !1,
46948
+ listClassName: S,
46949
+ closable: y = !1,
46950
46950
  header: R,
46951
- footer: F,
46952
- onClose: x,
46951
+ footer: x,
46952
+ onClose: F,
46953
46953
  onChange: P,
46954
46954
  inlineSearch: T = !1,
46955
46955
  dismissRef: E,
@@ -47091,12 +47091,12 @@ const iL = ({
47091
47091
  open: $,
47092
47092
  onOpenChange: Pe,
47093
47093
  disabled: w,
47094
- closable: S,
47095
- onClose: x,
47094
+ closable: y,
47095
+ onClose: F,
47096
47096
  placement: "bottom-start",
47097
47097
  allowedPlacements: ["bottom-start", "top-start"],
47098
47098
  maxDropdownHeight: d ? null : tL,
47099
- listClassName: y,
47099
+ listClassName: S,
47100
47100
  renderOverlay: () => /* @__PURE__ */ z(
47101
47101
  "div",
47102
47102
  {
@@ -47106,7 +47106,7 @@ const iL = ({
47106
47106
  className: X8,
47107
47107
  children: [
47108
47108
  R && /* @__PURE__ */ m(ze, { children: typeof R == "function" ? R() : R }),
47109
- (d || S) && e.length > 8 && /* @__PURE__ */ z("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
47109
+ (d || y) && e.length > 8 && /* @__PURE__ */ z("div", { className: "flex items-center gap-2 px-2 pt-2", children: [
47110
47110
  d && /* @__PURE__ */ m(
47111
47111
  Cv,
47112
47112
  {
@@ -47116,14 +47116,14 @@ const iL = ({
47116
47116
  elementId: `search-${s || J}`
47117
47117
  }
47118
47118
  ),
47119
- S && /* @__PURE__ */ m(
47119
+ y && /* @__PURE__ */ m(
47120
47120
  Nt,
47121
47121
  {
47122
47122
  "aria-label": "Close select",
47123
47123
  className: "shrink-0",
47124
47124
  iconBefore: /* @__PURE__ */ m(So, { size: 16 }),
47125
47125
  onClick: (V) => {
47126
- x?.(V), oe(!1);
47126
+ F?.(V), oe(!1);
47127
47127
  }
47128
47128
  }
47129
47129
  )
@@ -47211,13 +47211,13 @@ const iL = ({
47211
47211
  })
47212
47212
  }
47213
47213
  ),
47214
- F && /* @__PURE__ */ m(
47214
+ x && /* @__PURE__ */ m(
47215
47215
  "div",
47216
47216
  {
47217
47217
  onClick: (V) => {
47218
47218
  M?.(V), M && oe(!1);
47219
47219
  },
47220
- children: typeof F == "function" ? F() : F
47220
+ children: typeof x == "function" ? x() : x
47221
47221
  }
47222
47222
  )
47223
47223
  ]
@@ -47613,10 +47613,10 @@ function gL(e, t, s, i, o) {
47613
47613
  l.x / c * g,
47614
47614
  // Dock to the right
47615
47615
  l.x + g - c
47616
- ]).interpolate(u), { offsetX: v, offsetY: w } = o, b = v === 0 || v, y = w === 0 || w;
47616
+ ]).interpolate(u), { offsetX: v, offsetY: w } = o, b = v === 0 || v, S = w === 0 || w;
47617
47617
  return {
47618
47618
  x: b ? v : C(),
47619
- y: y ? w : f()
47619
+ y: S ? w : f()
47620
47620
  };
47621
47621
  }
47622
47622
  class pL {
@@ -47936,7 +47936,7 @@ const CL = function(t, s, i) {
47936
47936
  we(() => {
47937
47937
  b();
47938
47938
  }, [o]);
47939
- const [{ isOver: y, canDrop: S }, R] = _p(
47939
+ const [{ isOver: S, canDrop: y }, R] = _p(
47940
47940
  () => ({
47941
47941
  accept: [Wu],
47942
47942
  drop(E) {
@@ -47949,9 +47949,9 @@ const CL = function(t, s, i) {
47949
47949
  })
47950
47950
  }),
47951
47951
  [C]
47952
- ), F = (E) => {
47952
+ ), x = (E) => {
47953
47953
  (E.key === "Enter" || E.key === "Space") && (E.preventDefault(), u.current?.click());
47954
- }, x = (E) => {
47954
+ }, F = (E) => {
47955
47955
  E?.preventDefault();
47956
47956
  const M = Array.from(E.dataTransfer?.items ?? []);
47957
47957
  f(!!c?.(M)), g(M);
@@ -47959,8 +47959,8 @@ const CL = function(t, s, i) {
47959
47959
  E.target === E.currentTarget && b();
47960
47960
  }, T = ee(
47961
47961
  "border border-dashed rounded w-full cursor-pointer relative h-full hover:border-hover",
47962
- !S && !w && "border-primary",
47963
- S && (y ? "border-accent-primary" : "border-hover"),
47962
+ !y && !w && "border-primary",
47963
+ y && (S ? "border-accent-primary" : "border-hover"),
47964
47964
  w && "border-error"
47965
47965
  );
47966
47966
  return R(d), /* @__PURE__ */ z(ze, { children: [
@@ -47969,7 +47969,7 @@ const CL = function(t, s, i) {
47969
47969
  {
47970
47970
  className: T,
47971
47971
  ref: d,
47972
- onDragOver: x,
47972
+ onDragOver: F,
47973
47973
  onDragLeave: P,
47974
47974
  children: [
47975
47975
  /* @__PURE__ */ z(
@@ -47977,7 +47977,7 @@ const CL = function(t, s, i) {
47977
47977
  {
47978
47978
  htmlFor: "file",
47979
47979
  tabIndex: 0,
47980
- onKeyDown: F,
47980
+ onKeyDown: x,
47981
47981
  className: "flex flex-col items-center cursor-pointer h-full w-full text-secondary dial-tiny justify-center",
47982
47982
  children: [
47983
47983
  t && /* @__PURE__ */ m("p", { className: "mb-1", children: t }),
@@ -48376,17 +48376,17 @@ function _L({
48376
48376
  }, [t, e, g]), we(() => {
48377
48377
  const w = h.current;
48378
48378
  if (!t || !w) return;
48379
- const b = (y) => {
48380
- y.key === "Enter" ? (y.preventDefault(), h.current?.blur()) : y.key === "Escape" && (y.preventDefault(), v());
48379
+ const b = (S) => {
48380
+ S.key === "Enter" ? (S.preventDefault(), h.current?.blur()) : S.key === "Escape" && (S.preventDefault(), v());
48381
48381
  };
48382
48382
  return w.addEventListener("keydown", b), () => w.removeEventListener("keydown", b);
48383
48383
  }, [t, C, v]), we(() => {
48384
48384
  if (!t) return;
48385
48385
  const w = h.current;
48386
48386
  if (!w) return;
48387
- const b = (y) => {
48388
- const S = y.relatedTarget;
48389
- S && w.contains(S) || (p(r) ? C() : w.focus());
48387
+ const b = (S) => {
48388
+ const y = S.relatedTarget;
48389
+ y && w.contains(y) || (p(r) ? C() : w.focus());
48390
48390
  };
48391
48391
  return w.addEventListener("blur", b), () => {
48392
48392
  w.removeEventListener("blur", b);
@@ -48518,16 +48518,16 @@ const Fa = ({
48518
48518
  onRenameValidate: w,
48519
48519
  onExpandedPathsChange: b
48520
48520
  }) => {
48521
- const { expandedPaths: y, togglePath: S } = Ev({
48521
+ const { expandedPaths: S, togglePath: y } = Ev({
48522
48522
  expandedPaths: s ?? /* @__PURE__ */ new Set(),
48523
48523
  onExpandedPathsChange: b
48524
- }), R = (x) => {
48525
- p?.(x), S(x.path);
48526
- }, F = (x, P) => x.map((T) => {
48524
+ }), R = (F) => {
48525
+ p?.(F), y(F.path);
48526
+ }, x = (F, P) => F.map((T) => {
48527
48527
  const { path: E, nodeType: M, name: U, items: K } = T, N = M === Le.FOLDER;
48528
48528
  if (!d && wd(T)) return null;
48529
48529
  if (!N && !t) return;
48530
- const J = Array.isArray(K) && K.length > 0 && K.some((W) => W.nodeType === Le.FOLDER || t), ne = y.has(E), O = r === E, le = i.has(E), $ = u === E, oe = o.has(E), X = n.has(E), te = g && h && E === g && N, Z = w && ((W) => w(W, T)), se = O ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", ve = te ? [] : f?.(T) ?? [];
48530
+ const J = Array.isArray(K) && K.length > 0 && K.some((W) => W.nodeType === Le.FOLDER || t), ne = S.has(E), O = r === E, le = i.has(E), $ = u === E, oe = o.has(E), X = n.has(E), te = g && h && E === g && N, Z = w && ((W) => w(W, T)), se = O ? "bg-accent-primary-alpha border-l-2 border-l-accent-primary rounded" : "border-l-2 border-l-transparent", ve = te ? [] : f?.(T) ?? [];
48531
48531
  return /* @__PURE__ */ m("div", { className: "cursor-pointer text-secondary", children: /* @__PURE__ */ z("div", { className: "flex flex-col w-full", "aria-label": "folder", children: [
48532
48532
  /* @__PURE__ */ m(
48533
48533
  Ot,
@@ -48615,7 +48615,7 @@ const Fa = ({
48615
48615
  )
48616
48616
  }
48617
48617
  ),
48618
- ne && K && F(K, P + 1)
48618
+ ne && K && x(K, P + 1)
48619
48619
  ] }) }, `${E}-children`);
48620
48620
  });
48621
48621
  return /* @__PURE__ */ m(
@@ -48623,7 +48623,7 @@ const Fa = ({
48623
48623
  {
48624
48624
  className: "flex-1 w-full h-full overflow-y-auto",
48625
48625
  "aria-label": "folders-tree",
48626
- children: e.length > 0 ? F(e, 0) : /* @__PURE__ */ m(
48626
+ children: e.length > 0 ? x(e, 0) : /* @__PURE__ */ m(
48627
48627
  Ta,
48628
48628
  {
48629
48629
  title: a,
@@ -48655,7 +48655,7 @@ const Fa = ({
48655
48655
  searchContainerClassName: w,
48656
48656
  isCompactView: b = !1
48657
48657
  }) => {
48658
- const y = B(() => {
48658
+ const S = B(() => {
48659
48659
  if (!i) return;
48660
48660
  let T = Jg(i);
48661
48661
  const E = [...T];
@@ -48709,15 +48709,15 @@ const Fa = ({
48709
48709
  r,
48710
48710
  o,
48711
48711
  s
48712
- ]), [S, R] = A(!1), F = D(() => {
48713
- if (b && !S) {
48712
+ ]), [y, R] = A(!1), x = D(() => {
48713
+ if (b && !y) {
48714
48714
  R(!0);
48715
48715
  const T = document.getElementById(h);
48716
48716
  T && T.focus();
48717
48717
  }
48718
- }, [h, S, b]), x = D(() => {
48718
+ }, [h, y, b]), F = D(() => {
48719
48719
  (!u || String(u).trim() === "") && C?.("");
48720
- }, [u, C]), P = D(() => b && S ? /* @__PURE__ */ m(
48720
+ }, [u, C]), P = D(() => b && y ? /* @__PURE__ */ m(
48721
48721
  ei,
48722
48722
  {
48723
48723
  className: "!p-[9px]",
@@ -48729,7 +48729,7 @@ const Fa = ({
48729
48729
  ) : /* @__PURE__ */ m("div", { className: jL, children: /* @__PURE__ */ m(
48730
48730
  E8,
48731
48731
  {
48732
- pathItems: y,
48732
+ pathItems: S,
48733
48733
  ariaLabel: e,
48734
48734
  labelClassName: t,
48735
48735
  className: c
@@ -48737,8 +48737,8 @@ const Fa = ({
48737
48737
  ) }), [
48738
48738
  e,
48739
48739
  c,
48740
- y,
48741
48740
  S,
48741
+ y,
48742
48742
  b,
48743
48743
  t,
48744
48744
  C
@@ -48760,12 +48760,12 @@ const Fa = ({
48760
48760
  "div",
48761
48761
  {
48762
48762
  className: pe(KL, {
48763
- "w-[38px]": b && !S,
48764
- "w-full": b && S
48763
+ "w-[38px]": b && !y,
48764
+ "w-full": b && y
48765
48765
  }),
48766
48766
  role: "search",
48767
48767
  "aria-label": "Search",
48768
- onClick: F,
48768
+ onClick: x,
48769
48769
  children: /* @__PURE__ */ m(
48770
48770
  Cv,
48771
48771
  {
@@ -48774,7 +48774,7 @@ const Fa = ({
48774
48774
  onChange: C,
48775
48775
  disabled: g,
48776
48776
  readonly: p,
48777
- onBlur: x,
48777
+ onBlur: F,
48778
48778
  invalid: f,
48779
48779
  className: v,
48780
48780
  containerClassName: pe(w, {
@@ -48911,14 +48911,14 @@ function XL({
48911
48911
  let f = null;
48912
48912
  const C = () => {
48913
48913
  f && cancelAnimationFrame(f), f = requestAnimationFrame(() => {
48914
- const w = r.current, b = l.current?.offsetWidth ?? 0, y = c.current?.offsetWidth ?? 0, S = b + y, F = w.getBoundingClientRect().width - S - s - i * 2 - o * 2, x = d.current;
48914
+ const w = r.current, b = l.current?.offsetWidth ?? 0, S = c.current?.offsetWidth ?? 0, y = b + S, x = w.getBoundingClientRect().width - y - s - i * 2 - o * 2, F = d.current;
48915
48915
  let P = 0, T = 0;
48916
48916
  if (t === Xi.Reverse)
48917
- for (let E = x.length - 1; E >= 0 && (P += x[E] + i, !(P > F)); E--)
48917
+ for (let E = F.length - 1; E >= 0 && (P += F[E] + i, !(P > x)); E--)
48918
48918
  T++;
48919
48919
  else
48920
- for (const E of x) {
48921
- if (P += E + i, P > F) break;
48920
+ for (const E of F) {
48921
+ if (P += E + i, P > x) break;
48922
48922
  T++;
48923
48923
  }
48924
48924
  h(T);
@@ -49076,7 +49076,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49076
49076
  l.current = !1, n(!1), i([]), a(null);
49077
49077
  }, []), u = D(
49078
49078
  (w, b) => {
49079
- const y = e(w), S = new Set(y.map(yc)), R = b.filter((F) => S.has(F.name));
49079
+ const S = e(w), y = new Set(S.map(yc)), R = b.filter((x) => y.has(x.name));
49080
49080
  return {
49081
49081
  hasConflicts: R.length > 0,
49082
49082
  conflicts: R
@@ -49084,54 +49084,54 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49084
49084
  },
49085
49085
  [e]
49086
49086
  ), h = D(
49087
- (w, b, y, S) => {
49088
- const R = e(w), F = new Set(R.map(yc));
49089
- return b.map((x) => {
49090
- const P = x.name, T = F.has(P), E = y && T ? P : ep(P, F);
49091
- return (!y || !T) && F.add(E), {
49092
- sourceUrl: x.path,
49087
+ (w, b, S, y) => {
49088
+ const R = e(w), x = new Set(R.map(yc));
49089
+ return b.map((F) => {
49090
+ const P = F.name, T = x.has(P), E = S && T ? P : ep(P, x);
49091
+ return (!S || !T) && x.add(E), {
49092
+ sourceUrl: F.path,
49093
49093
  destinationUrl: `${w}/${E}`,
49094
- overwrite: y && T,
49095
- nodeType: x.nodeType ?? Le.ITEM,
49096
- ...S ?? {}
49094
+ overwrite: S && T,
49095
+ nodeType: F.nodeType ?? Le.ITEM,
49096
+ ...y ?? {}
49097
49097
  };
49098
49098
  });
49099
49099
  },
49100
49100
  [e]
49101
49101
  ), g = D(
49102
- (w, b, y, S) => {
49103
- const R = e(w), F = new Set(R.map(yc));
49104
- return b.filter((P) => y.get(P.path) !== ft.Cancel).map((P) => {
49105
- const T = y.get(P.path), E = F.has(P.name), M = T === ft.Replace && E, U = M ? P.name : ep(P.name, F);
49106
- return M || F.add(U), {
49102
+ (w, b, S, y) => {
49103
+ const R = e(w), x = new Set(R.map(yc));
49104
+ return b.filter((P) => S.get(P.path) !== ft.Cancel).map((P) => {
49105
+ const T = S.get(P.path), E = x.has(P.name), M = T === ft.Replace && E, U = M ? P.name : ep(P.name, x);
49106
+ return M || x.add(U), {
49107
49107
  sourceUrl: P.path,
49108
49108
  destinationUrl: `${w}/${U}`,
49109
49109
  overwrite: M,
49110
49110
  nodeType: P.nodeType ?? Le.ITEM,
49111
- ...S ?? {}
49111
+ ...y ?? {}
49112
49112
  };
49113
49113
  });
49114
49114
  },
49115
49115
  [e]
49116
49116
  ), p = D(
49117
- (w, b, y) => {
49118
- const S = u(w, b);
49119
- return S.hasConflicts && (a({
49117
+ (w, b, S) => {
49118
+ const y = u(w, b);
49119
+ return y.hasConflicts && (a({
49120
49120
  files: b,
49121
49121
  destinationFolder: w,
49122
- metadata: y
49123
- }), c(S.conflicts)), S;
49122
+ metadata: S
49123
+ }), c(y.conflicts)), y;
49124
49124
  },
49125
49125
  [u, c]
49126
49126
  ), f = D(() => {
49127
49127
  if (!r) return;
49128
- const { files: w, destinationFolder: b, metadata: y } = r, S = h(
49128
+ const { files: w, destinationFolder: b, metadata: S } = r, y = h(
49129
49129
  b,
49130
49130
  w,
49131
49131
  !0,
49132
- y
49132
+ S
49133
49133
  );
49134
- t?.(S, b), d();
49134
+ t?.(y, b), d();
49135
49135
  }, [
49136
49136
  r,
49137
49137
  h,
@@ -49139,13 +49139,13 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49139
49139
  d
49140
49140
  ]), C = D(() => {
49141
49141
  if (!r) return;
49142
- const { files: w, destinationFolder: b, metadata: y } = r, S = h(
49142
+ const { files: w, destinationFolder: b, metadata: S } = r, y = h(
49143
49143
  b,
49144
49144
  w,
49145
49145
  !1,
49146
- y
49146
+ S
49147
49147
  );
49148
- t?.(S, b), d();
49148
+ t?.(y, b), d();
49149
49149
  }, [
49150
49150
  r,
49151
49151
  h,
@@ -49154,15 +49154,15 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49154
49154
  ]), v = D(
49155
49155
  (w) => {
49156
49156
  if (!r) return;
49157
- const { files: b, destinationFolder: y, metadata: S } = r, R = new Map(
49158
- w.map((x) => [x.file.path, x.action])
49159
- ), F = g(
49160
- y,
49157
+ const { files: b, destinationFolder: S, metadata: y } = r, R = new Map(
49158
+ w.map((F) => [F.file.path, F.action])
49159
+ ), x = g(
49160
+ S,
49161
49161
  b,
49162
49162
  R,
49163
- S
49163
+ y
49164
49164
  );
49165
- t?.(F, y), d();
49165
+ t?.(x, S), d();
49166
49166
  },
49167
49167
  [
49168
49168
  r,
@@ -49198,11 +49198,11 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49198
49198
  const [l, c] = A(!1), [d, u] = A([]), [h, g] = A([]), [p, f] = A(it.Copy), [C, v] = A(null), {
49199
49199
  conflictingFiles: w,
49200
49200
  conflictResolutionOpen: b,
49201
- hasActiveConflictRef: y,
49202
- startConflictResolution: S,
49201
+ hasActiveConflictRef: S,
49202
+ startConflictResolution: y,
49203
49203
  resolveConflictsWithStrategy: R,
49204
- closeConflictResolution: F,
49205
- openConflictResolution: x,
49204
+ closeConflictResolution: x,
49205
+ openConflictResolution: F,
49206
49206
  handleReplaceAll: P,
49207
49207
  handleDuplicateAll: T,
49208
49208
  handleDecideForEach: E
@@ -49219,7 +49219,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49219
49219
  u([]), g([]), v(null);
49220
49220
  }, []), U = D(
49221
49221
  (se) => {
49222
- const ve = S(se, d, {
49222
+ const ve = y(se, d, {
49223
49223
  type: it.Copy
49224
49224
  });
49225
49225
  if (v({ type: it.Copy }), !ve.hasConflicts) {
@@ -49233,7 +49233,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49233
49233
  },
49234
49234
  [
49235
49235
  d,
49236
- S,
49236
+ y,
49237
49237
  R,
49238
49238
  t,
49239
49239
  i,
@@ -49242,7 +49242,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49242
49242
  ), K = D(
49243
49243
  (se, ve) => {
49244
49244
  const W = ve || (C?.sourceFolder ?? "/");
49245
- if (!S(se, h, {
49245
+ if (!y(se, h, {
49246
49246
  type: it.Move,
49247
49247
  sourceFolderPath: W
49248
49248
  }).hasConflicts) {
@@ -49256,7 +49256,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49256
49256
  },
49257
49257
  [
49258
49258
  h,
49259
- S,
49259
+ y,
49260
49260
  R,
49261
49261
  s,
49262
49262
  o,
@@ -49288,8 +49288,8 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49288
49288
  },
49289
49289
  []
49290
49290
  ), $ = D(() => {
49291
- c(!1), y.current || M();
49292
- }, [M, y]), [oe, X] = A(), te = D(
49291
+ c(!1), S.current || M();
49292
+ }, [M, S]), [oe, X] = A(), te = D(
49293
49293
  (se) => {
49294
49294
  u(se), r && se.length > 0 ? X(r(se.length, se[0]?.name)) : X(void 0);
49295
49295
  },
@@ -49317,8 +49317,8 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49317
49317
  clearState: M,
49318
49318
  conflictingFiles: w,
49319
49319
  conflictResolutionOpen: b,
49320
- openConflictResolution: x,
49321
- closeConflictResolution: F,
49320
+ openConflictResolution: F,
49321
+ closeConflictResolution: x,
49322
49322
  handleConflictReplace: N,
49323
49323
  handleConflictDuplicate: J,
49324
49324
  handleConflictDecideForEach: ne
@@ -49400,17 +49400,17 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49400
49400
  onUploadArchive: n,
49401
49401
  uploadEnabled: r = !0
49402
49402
  } = {}) => {
49403
- const [a, l] = A(!1), [c, d] = A(!1), [u, h] = A(), g = k(null), p = k(""), f = k([]), [C, v] = A(/* @__PURE__ */ new Map()), [w, b] = A(null), y = D(
49403
+ const [a, l] = A(!1), [c, d] = A(!1), [u, h] = A(), g = k(null), p = k(""), f = k([]), [C, v] = A(/* @__PURE__ */ new Map()), [w, b] = A(null), S = D(
49404
49404
  (H) => !i || i.includes("*/*") ? H : H.filter(
49405
49405
  ({ fileContent: G, name: re }) => Fv(i, G.type, re)
49406
49406
  ),
49407
49407
  [i]
49408
- ), S = D(() => {
49408
+ ), y = D(() => {
49409
49409
  v(/* @__PURE__ */ new Map()), b(null);
49410
49410
  }, []), {
49411
49411
  conflictingFiles: R,
49412
- conflictResolutionOpen: F,
49413
- hasActiveConflictRef: x,
49412
+ conflictResolutionOpen: x,
49413
+ hasActiveConflictRef: F,
49414
49414
  startConflictResolution: P,
49415
49415
  closeConflictResolution: T,
49416
49416
  openConflictResolution: E,
@@ -49421,7 +49421,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49421
49421
  getDestinationFiles: () => f.current,
49422
49422
  onResolve: (H, G) => {
49423
49423
  if (!r) {
49424
- S();
49424
+ y();
49425
49425
  return;
49426
49426
  }
49427
49427
  if (!w) return;
@@ -49435,12 +49435,12 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49435
49435
  name: Ee
49436
49436
  };
49437
49437
  }).filter(Boolean);
49438
- re.length > 0 && e?.(re, G), S();
49438
+ re.length > 0 && e?.(re, G), y();
49439
49439
  }
49440
49440
  });
49441
49441
  we(() => {
49442
- r || (l(!1), d(!1), h(void 0), T(), S());
49443
- }, [r, T, S]), we(() => {
49442
+ r || (l(!1), d(!1), h(void 0), T(), y());
49443
+ }, [r, T, y]), we(() => {
49444
49444
  if (!r) return;
49445
49445
  let H = 0;
49446
49446
  const G = (Ee) => {
@@ -49500,7 +49500,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49500
49500
  const Ee = J(H, G);
49501
49501
  return b({ destinationFolder: G }), P(G, Ee, {
49502
49502
  destinationFolder: G
49503
- }).hasConflicts ? !1 : (e?.(H, G), S(), !0);
49503
+ }).hasConflicts ? !1 : (e?.(H, G), y(), !0);
49504
49504
  },
49505
49505
  [
49506
49506
  r,
@@ -49511,20 +49511,20 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49511
49511
  o,
49512
49512
  J,
49513
49513
  P,
49514
- S
49514
+ y
49515
49515
  ]
49516
49516
  ), O = D(() => {
49517
- M(), S();
49518
- }, [M, S]), le = D(() => {
49519
- U(), S();
49520
- }, [U, S]), $ = D(
49517
+ M(), y();
49518
+ }, [M, y]), le = D(() => {
49519
+ U(), y();
49520
+ }, [U, y]), $ = D(
49521
49521
  (H) => {
49522
- K(H), S();
49522
+ K(H), y();
49523
49523
  },
49524
- [K, S]
49524
+ [K, y]
49525
49525
  ), oe = D(() => {
49526
- T(), x.current || S();
49527
- }, [T, x, S]), X = D(
49526
+ T(), F.current || y();
49527
+ }, [T, F, y]), X = D(
49528
49528
  (H) => {
49529
49529
  r && (H.preventDefault(), H.stopPropagation(), H.dataTransfer.types.includes("Files") && l(!0));
49530
49530
  },
@@ -49552,7 +49552,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49552
49552
  const ye = ae.map((Ie) => ({
49553
49553
  fileContent: Ie,
49554
49554
  name: Ie.name
49555
- })), Ee = y(ye);
49555
+ })), Ee = S(ye);
49556
49556
  if (Ee.length === 0) {
49557
49557
  h(
49558
49558
  o.unsupportedFiles || "Selected files are not supported"
@@ -49561,7 +49561,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49561
49561
  }
49562
49562
  await ne(Ee, G, re);
49563
49563
  },
49564
- [r, y, ne, o]
49564
+ [r, S, ne, o]
49565
49565
  );
49566
49566
  we(() => {
49567
49567
  let H = g.current;
@@ -49575,7 +49575,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49575
49575
  const ae = Array.from(H.files).map((Ee) => ({
49576
49576
  fileContent: Ee,
49577
49577
  name: Ee.name
49578
- })), ye = y(ae);
49578
+ })), ye = S(ae);
49579
49579
  if (ye.length === 0) {
49580
49580
  h(
49581
49581
  o.unsupportedFiles || "Selected files are not supported"
@@ -49594,7 +49594,7 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49594
49594
  }, [
49595
49595
  r,
49596
49596
  i,
49597
- y,
49597
+ S,
49598
49598
  ne,
49599
49599
  o
49600
49600
  ]);
@@ -49649,8 +49649,8 @@ const JL = ({ getSelectionLabel: e, onClearSelection: t, actions: s, selectedCou
49649
49649
  openArchiveDialog: W,
49650
49650
  fileInputRef: g,
49651
49651
  uploadConflictingFiles: R,
49652
- uploadConflictResolutionOpen: F,
49653
- hasActiveUploadConflictRef: x,
49652
+ uploadConflictResolutionOpen: x,
49653
+ hasActiveUploadConflictRef: F,
49654
49654
  openUploadConflictResolution: E,
49655
49655
  closeUploadConflictResolution: oe,
49656
49656
  handleUploadConflictReplace: O,
@@ -49745,7 +49745,7 @@ const h7 = ({
49745
49745
  if (w) {
49746
49746
  const b = Ti(e, w);
49747
49747
  if (b && new Set(
49748
- (b.items ?? []).filter((S) => S.path !== p.path).map((S) => S.name.toLowerCase())
49748
+ (b.items ?? []).filter((y) => y.path !== p.path).map((y) => y.name.toLowerCase())
49749
49749
  ).has(v.toLowerCase()))
49750
49750
  return r.duplicateName;
49751
49751
  }
@@ -49846,13 +49846,13 @@ const h7 = ({
49846
49846
  const f = p.trim();
49847
49847
  if (!f)
49848
49848
  return;
49849
- const v = `${e?.path ?? "/"}/${f}`, w = `${v}/${bc}`, y = {
49849
+ const v = `${e?.path ?? "/"}/${f}`, w = `${v}/${bc}`, S = {
49850
49850
  fileContent: new File([], bc, {
49851
49851
  type: "text/plain"
49852
49852
  }),
49853
49853
  name: bc
49854
49854
  };
49855
- t && await t(y, v, w), u();
49855
+ t && await t(S, v, w), u();
49856
49856
  },
49857
49857
  [e, t, u]
49858
49858
  );
@@ -49927,57 +49927,63 @@ function w7({
49927
49927
  searchInProgress: o = !1,
49928
49928
  navigationPanelValue: n,
49929
49929
  onNavigationPanelSearchChange: r,
49930
- allItems: a = []
49930
+ allItems: a = [],
49931
+ activeTab: l
49931
49932
  }) {
49932
- const [l, c] = A(""), d = k(!1), u = k(!1), h = k([]), g = k(s);
49933
+ const [c, d] = A(""), u = k(!1), h = k(!1), g = k([]), p = k(s), f = k(l);
49933
49934
  we(() => {
49934
- n != null && c(String(n));
49935
+ n != null && d(String(n));
49935
49936
  }, [n]);
49936
- const p = String(
49937
- n ?? l ?? ""
49938
- ).trim(), f = u.current && (o || i.length > 0 || p !== ""), C = D(
49939
- (y) => {
49940
- const S = y.trim();
49941
- if (!S) {
49942
- u.current = !1, d.current = !1;
49937
+ const C = String(
49938
+ n ?? c ?? ""
49939
+ ).trim(), v = h.current && (o || i.length > 0 || C !== ""), w = D(
49940
+ (R) => {
49941
+ const x = R.trim();
49942
+ if (!x) {
49943
+ h.current = !1, u.current = !1;
49943
49944
  return;
49944
49945
  }
49945
- u.current = !0, e && s && !d.current && (d.current = !0, e(s, S));
49946
+ h.current = !0, e && s && !u.current && (u.current = !0, e(s, x));
49946
49947
  },
49947
49948
  [e, s]
49948
- ), v = D(() => {
49949
- d.current = !1, u.current = !1, h.current = [], c(""), r?.(""), t?.();
49950
- }, [t, r]), w = D(
49951
- (y) => {
49952
- const S = String(y ?? "");
49953
- c(S), r?.(S), S.trim() ? C(S) : v();
49949
+ ), b = D(() => {
49950
+ u.current = !1, h.current = !1, g.current = [], d(""), r?.(""), t?.();
49951
+ }, [t, r]), S = D(
49952
+ (R) => {
49953
+ const x = String(R ?? "");
49954
+ d(x), r?.(x), x.trim() ? w(x) : b();
49954
49955
  },
49955
- [r, C, v]
49956
+ [r, w, b]
49956
49957
  );
49957
49958
  we(() => {
49958
- g.current !== s && (g.current = s, (u.current || p) && v());
49959
- }, [s, v, p]), we(() => {
49960
- i.length > 0 && h.current.length === 0 && (h.current = i);
49959
+ (p.current !== s || f.current !== l) && (p.current = s, f.current = l, u.current = !1, h.current = !1, g.current = [], d(""), r?.(""), t?.());
49960
+ }, [
49961
+ s,
49962
+ l,
49963
+ r,
49964
+ t
49965
+ ]), we(() => {
49966
+ i.length > 0 && g.current.length === 0 && (g.current = i);
49961
49967
  }, [i]);
49962
- const b = B(() => {
49968
+ const y = B(() => {
49963
49969
  if (e) {
49964
- const S = h.current.length > 0 ? h.current : i;
49965
- return !p || S.length === 0 ? S : sp(S, p);
49970
+ const x = g.current.length > 0 ? g.current : i;
49971
+ return !C || x.length === 0 ? x : sp(x, C);
49966
49972
  }
49967
- if (!p || !a.length)
49973
+ if (!C || !a.length)
49968
49974
  return [];
49969
- const y = v7(a);
49970
- return sp(y, p);
49971
- }, [e, i, p, a]);
49975
+ const R = v7(a);
49976
+ return sp(R, C);
49977
+ }, [e, i, C, a]);
49972
49978
  return {
49973
- isSearchMode: f,
49974
- searchValue: l,
49975
- effectiveSearchValue: p,
49976
- setSearchValue: c,
49977
- handleSearchChange: w,
49978
- handleSearchActivate: C,
49979
- handleSearchClear: v,
49980
- searchResultsRows: b
49979
+ isSearchMode: v,
49980
+ searchValue: c,
49981
+ effectiveSearchValue: C,
49982
+ setSearchValue: d,
49983
+ handleSearchChange: S,
49984
+ handleSearchActivate: w,
49985
+ handleSearchClear: b,
49986
+ searchResultsRows: y
49981
49987
  };
49982
49988
  }
49983
49989
  function b7({
@@ -50025,11 +50031,11 @@ const S7 = ({
50025
50031
  bulkActionsToolbarOptions: v,
50026
50032
  destinationFolderPopupOptions: w,
50027
50033
  conflictResolutionPopupOptions: b,
50028
- onPathChange: y,
50029
- onTableFileClick: S,
50034
+ onPathChange: S,
50035
+ onTableFileClick: y,
50030
50036
  onCopyFiles: R,
50031
- onMoveToFiles: F,
50032
- onDeleteFiles: x,
50037
+ onMoveToFiles: x,
50038
+ onDeleteFiles: F,
50033
50039
  onDownloadFiles: P,
50034
50040
  onRenameValidate: T,
50035
50041
  renameValidationMessages: E,
@@ -50074,7 +50080,7 @@ const S7 = ({
50074
50080
  }, [Ie, s]), { currentPath: Ae, setCurrentPath: Se, handlePathChange: Re } = i7({
50075
50081
  path: o,
50076
50082
  defaultPath: n,
50077
- onPathChange: y,
50083
+ onPathChange: S,
50078
50084
  onSelectionClear: ce
50079
50085
  }), [je, Ke] = A(), Be = w?.destinationFolderPath ?? je, gt = D(
50080
50086
  (Ne) => {
@@ -50099,7 +50105,7 @@ const S7 = ({
50099
50105
  items: s,
50100
50106
  onRenameValidate: T,
50101
50107
  validationMessages: E,
50102
- onMoveToFiles: F
50108
+ onMoveToFiles: x
50103
50109
  }), {
50104
50110
  isSearchMode: Ao,
50105
50111
  searchValue: Ja,
@@ -50115,7 +50121,8 @@ const S7 = ({
50115
50121
  searchInProgress: ie,
50116
50122
  navigationPanelValue: g?.value,
50117
50123
  onNavigationPanelSearchChange: g?.onSearchChange,
50118
- allItems: s
50124
+ allItems: s,
50125
+ activeTab: C?.activeTab
50119
50126
  }), Mt = B(
50120
50127
  () => Xg(s, Ae) ?? s[0],
50121
50128
  [s, Ae]
@@ -50139,7 +50146,7 @@ const S7 = ({
50139
50146
  } = s7({
50140
50147
  getDestinationFiles: (Ne) => Xg(s, Ne)?.items ?? [],
50141
50148
  onCopyFiles: R,
50142
- onMoveToFiles: F,
50149
+ onMoveToFiles: x,
50143
50150
  onCopySuccess: ce,
50144
50151
  onMoveSuccess: ce,
50145
50152
  onDuplicateSuccess: ce,
@@ -50164,7 +50171,7 @@ const S7 = ({
50164
50171
  closeDeleteConfirmation: Oo,
50165
50172
  confirmDelete: cl
50166
50173
  } = o7({
50167
- onDeleteFiles: x,
50174
+ onDeleteFiles: F,
50168
50175
  onDeleteSuccess: ce
50169
50176
  }), { handleDownloadFiles: Zn } = n7({
50170
50177
  onDownloadFiles: P,
@@ -50309,9 +50316,9 @@ const S7 = ({
50309
50316
  [Re]
50310
50317
  ), Gi = D(
50311
50318
  (Ne) => {
50312
- Ne.nodeType === Le.FOLDER ? Re(Ne.path) : S?.(Ne);
50319
+ Ne.nodeType === Le.FOLDER ? Re(Ne.path) : y?.(Ne);
50313
50320
  },
50314
- [Re, S]
50321
+ [Re, y]
50315
50322
  ), { expandedPaths: nr, setExpandedPaths: vl, collapseAll: wl } = Ev({
50316
50323
  expandedPaths: h?.expandedPaths,
50317
50324
  onExpandedPathsChange: h?.onExpandedPathsChange
@@ -50396,7 +50403,7 @@ const S7 = ({
50396
50403
  handleBreadcrumbItemClick: as,
50397
50404
  handleSearchChange: tl,
50398
50405
  handleTableRowClick: Gi,
50399
- onTableFileClick: S,
50406
+ onTableFileClick: y,
50400
50407
  isDragging: No,
50401
50408
  uploadError: Ho,
50402
50409
  handleDragEnter: Qn,
@@ -50568,7 +50575,7 @@ const Iv = ({
50568
50575
  }) => {
50569
50576
  const [C, v] = A(!1), w = k(null), b = D((R) => {
50570
50577
  v(R);
50571
- }, []), y = r === it.Copy ? "Copy to" : "Move to", S = B(() => !p || !h ? !1 : h === p, [p, h]);
50578
+ }, []), S = r === it.Copy ? "Copy to" : "Move to", y = B(() => !p || !h ? !1 : h === p, [p, h]);
50572
50579
  return /* @__PURE__ */ m(
50573
50580
  Mo,
50574
50581
  {
@@ -50613,13 +50620,13 @@ const Iv = ({
50613
50620
  ] }),
50614
50621
  /* @__PURE__ */ z("div", { className: "flex space-x-4", children: [
50615
50622
  /* @__PURE__ */ m(ei, { onClick: e, label: "Cancel" }),
50616
- S ? /* @__PURE__ */ m(Ls, { tooltip: g, children: /* @__PURE__ */ m(
50623
+ y ? /* @__PURE__ */ m(Ls, { tooltip: g, children: /* @__PURE__ */ m(
50617
50624
  ws,
50618
50625
  {
50619
50626
  onClick: t,
50620
50627
  label: r === "copy" ? i : o,
50621
- disabled: S,
50622
- "aria-disabled": S
50628
+ disabled: y,
50629
+ "aria-disabled": y
50623
50630
  }
50624
50631
  ) }) : /* @__PURE__ */ m(
50625
50632
  ws,
@@ -50630,7 +50637,7 @@ const Iv = ({
50630
50637
  )
50631
50638
  ] })
50632
50639
  ] }),
50633
- header: u ?? y,
50640
+ header: u ?? S,
50634
50641
  children: /* @__PURE__ */ m(
50635
50642
  H7,
50636
50643
  {
@@ -50856,7 +50863,7 @@ const Iv = ({
50856
50863
  nameColumnLabel: g = "Name",
50857
50864
  actionColumnLabel: p = "Action"
50858
50865
  }) => {
50859
- const f = n.length === 1, C = f ? n[0]?.name : "", v = c?.[ft.Replace] ?? "Replace", w = c?.[ft.Duplicate] ?? "Duplicate", b = c?.[ft.Cancel] ?? "Cancel", y = d?.[Bt.ReplaceAll] ?? "Replace all", S = d?.[Bt.DuplicateAll] ?? "Duplicate all", R = d?.[Bt.DecideForEach] ?? "Decide for each", [F, x] = A(
50866
+ const f = n.length === 1, C = f ? n[0]?.name : "", v = c?.[ft.Replace] ?? "Replace", w = c?.[ft.Duplicate] ?? "Duplicate", b = c?.[ft.Cancel] ?? "Cancel", S = d?.[Bt.ReplaceAll] ?? "Replace all", y = d?.[Bt.DuplicateAll] ?? "Duplicate all", R = d?.[Bt.DecideForEach] ?? "Decide for each", [x, F] = A(
50860
50867
  ft.Replace
50861
50868
  ), [P, T] = A(
50862
50869
  Bt.ReplaceAll
@@ -51003,11 +51010,11 @@ const Iv = ({
51003
51010
  () => [
51004
51011
  {
51005
51012
  id: Bt.ReplaceAll,
51006
- name: y
51013
+ name: S
51007
51014
  },
51008
51015
  {
51009
51016
  id: Bt.DuplicateAll,
51010
- name: S
51017
+ name: y
51011
51018
  },
51012
51019
  {
51013
51020
  id: Bt.DecideForEach,
@@ -51029,8 +51036,8 @@ const Iv = ({
51029
51036
  }
51030
51037
  ],
51031
51038
  [
51032
- y,
51033
51039
  S,
51040
+ y,
51034
51041
  R,
51035
51042
  P,
51036
51043
  oe,
@@ -51038,7 +51045,7 @@ const Iv = ({
51038
51045
  ]
51039
51046
  ), te = D(() => {
51040
51047
  if (f)
51041
- F === ft.Replace ? s() : i();
51048
+ x === ft.Replace ? s() : i();
51042
51049
  else if (P === Bt.ReplaceAll)
51043
51050
  s();
51044
51051
  else if (P === Bt.DuplicateAll)
@@ -51054,7 +51061,7 @@ const Iv = ({
51054
51061
  }
51055
51062
  }, [
51056
51063
  f,
51057
- F,
51064
+ x,
51058
51065
  P,
51059
51066
  E,
51060
51067
  n,
@@ -51082,9 +51089,9 @@ const Iv = ({
51082
51089
  {
51083
51090
  elementId: "single-file-conflict",
51084
51091
  radioButtons: le,
51085
- activeRadioButton: F,
51092
+ activeRadioButton: x,
51086
51093
  orientation: go.Column,
51087
- onChange: (Z) => x(Z)
51094
+ onChange: (Z) => F(Z)
51088
51095
  }
51089
51096
  ) : /* @__PURE__ */ m(
51090
51097
  Dc,
@@ -51345,11 +51352,11 @@ const A7 = ({
51345
51352
  toggleHiddenFilesVisibility: v,
51346
51353
  isTreeCollapsed: w,
51347
51354
  toggleTreeCollapse: b,
51348
- currentPath: y,
51349
- gridRows: S,
51355
+ currentPath: S,
51356
+ gridRows: y,
51350
51357
  selectedPaths: R,
51351
- selectedFiles: F,
51352
- clearSelection: x,
51358
+ selectedFiles: x,
51359
+ clearSelection: F,
51353
51360
  setSelectedPaths: P,
51354
51361
  effectiveSearchValue: T,
51355
51362
  handleBreadcrumbItemClick: E,
@@ -51682,23 +51689,23 @@ const A7 = ({
51682
51689
  ]
51683
51690
  ), hl = B(() => {
51684
51691
  const j = /* @__PURE__ */ new Map();
51685
- return F.forEach((Te, rs) => {
51686
- const as = S.find((Gi) => Gi.path === rs);
51692
+ return x.forEach((Te, rs) => {
51693
+ const as = y.find((Gi) => Gi.path === rs);
51687
51694
  as && j.set(rs, as);
51688
51695
  }), j;
51689
- }, [F, S]), gl = B(() => {
51696
+ }, [x, y]), gl = B(() => {
51690
51697
  const j = /* @__PURE__ */ new Set();
51691
- return S.filter(
51698
+ return y.filter(
51692
51699
  (Te) => Wo(Te, p, f)
51693
51700
  ).forEach((Te) => j.add(Te.path)), j;
51694
- }, [p, f, S, Wo]), pl = D(
51701
+ }, [p, f, y, Wo]), pl = D(
51695
51702
  (j) => {
51696
51703
  const Te = /* @__PURE__ */ new Set();
51697
51704
  j.forEach((rs, as) => Te.add(as)), P(Te);
51698
51705
  },
51699
51706
  [P]
51700
51707
  ), tr = P7({
51701
- selectedFiles: F,
51708
+ selectedFiles: x,
51702
51709
  actionLabels: l?.actionLabels,
51703
51710
  onDuplicate: oe,
51704
51711
  onCopy: (j) => {
@@ -51710,7 +51717,7 @@ const A7 = ({
51710
51717
  onDownload: Z,
51711
51718
  onDelete: se,
51712
51719
  onUnshare: ns,
51713
- getCurrentFolderPath: () => y ?? "/"
51720
+ getCurrentFolderPath: () => S ?? "/"
51714
51721
  }), sr = D(() => a && R.size === 0 ? /* @__PURE__ */ m(
51715
51722
  "div",
51716
51723
  {
@@ -51739,7 +51746,7 @@ const A7 = ({
51739
51746
  {
51740
51747
  ...l,
51741
51748
  selectedCount: R.size,
51742
- onClearSelection: x,
51749
+ onClearSelection: F,
51743
51750
  actions: tr
51744
51751
  }
51745
51752
  )
@@ -51747,7 +51754,7 @@ const A7 = ({
51747
51754
  ) : /* @__PURE__ */ m("div", {}), [
51748
51755
  l,
51749
51756
  R,
51750
- x,
51757
+ F,
51751
51758
  tr,
51752
51759
  C,
51753
51760
  v,
@@ -51794,7 +51801,7 @@ const A7 = ({
51794
51801
  items: t,
51795
51802
  rootItemPath: s?.path,
51796
51803
  rootItemLabel: s?.label,
51797
- selectedPath: y,
51804
+ selectedPath: S,
51798
51805
  sharedByMePaths: g,
51799
51806
  onItemClick: U,
51800
51807
  areHiddenFilesVisible: C,
@@ -51814,7 +51821,7 @@ const A7 = ({
51814
51821
  Kn,
51815
51822
  C,
51816
51823
  jn,
51817
- y,
51824
+ S,
51818
51825
  qn,
51819
51826
  er,
51820
51827
  U,
@@ -51927,7 +51934,7 @@ const A7 = ({
51927
51934
  {
51928
51935
  ...n ?? {},
51929
51936
  makeHref: (j) => j.join("/"),
51930
- path: y,
51937
+ path: S,
51931
51938
  onItemClick: E,
51932
51939
  rootItemPath: s?.path,
51933
51940
  rootItemLabel: s?.label,
@@ -51946,11 +51953,11 @@ const A7 = ({
51946
51953
  onDragLeave: Se,
51947
51954
  onDragOver: Re,
51948
51955
  onDrop: je,
51949
- children: S.length === 0 && !Lo && !i ? Cl() : /* @__PURE__ */ m(
51956
+ children: y.length === 0 && !Lo && !i ? Cl() : /* @__PURE__ */ m(
51950
51957
  cv,
51951
51958
  {
51952
51959
  columnDefs: or,
51953
- rowData: S,
51960
+ rowData: y,
51954
51961
  getRowId: (j) => j.path,
51955
51962
  loading: i || al,
51956
51963
  getContextMenuItems: Bs,
@@ -52030,11 +52037,11 @@ const A7 = ({
52030
52037
  onUploadFiles: Ke,
52031
52038
  onValidateUpload: Be,
52032
52039
  maxFileSize: gt,
52033
- path: d?.destinationFolderPath || y,
52040
+ path: d?.destinationFolderPath || S,
52034
52041
  onPathChange: (j) => {
52035
52042
  d?.setDestinationFolderPath?.(j);
52036
52043
  },
52037
- sourceFolder: y || "/"
52044
+ sourceFolder: S || "/"
52038
52045
  }
52039
52046
  ),
52040
52047
  /* @__PURE__ */ m(