@ufal-lccv/gpsub-ds 0.0.19 → 0.0.20

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.
@@ -10,24 +10,25 @@ const ae = 350, wo = ({
10
10
  marginBottom: l = "16px",
11
11
  customStyles: s = {},
12
12
  wrapperCustomStyles: d = {},
13
- hideAdornmentOnCollapse: a = !1,
14
- maxHeight: g = "none",
13
+ animationContainerCustomStyles: a = {},
14
+ hideAdornmentOnCollapse: h = !1,
15
+ maxHeight: m = "none",
15
16
  // Default to 'none' to allow full expansion
16
17
  height: p = "fit-content"
17
18
  }) => {
18
- const [h, f] = P(!1), [u, S] = P(!0);
19
+ const [f, u] = P(!1), [$, j] = P(!0);
19
20
  Z(() => {
20
- if (a)
21
- if (h) {
22
- const m = setTimeout(
23
- () => S(!1),
21
+ if (h)
22
+ if (f) {
23
+ const w = setTimeout(
24
+ () => j(!1),
24
25
  ae
25
26
  );
26
- return () => clearTimeout(m);
27
+ return () => clearTimeout(w);
27
28
  } else
28
- S(!0);
29
- }, [h, a]);
30
- const I = a && !u ? null : i;
29
+ j(!0);
30
+ }, [f, h]);
31
+ const g = h && !$ ? null : i;
31
32
  return /* @__PURE__ */ n.jsxs(
32
33
  _,
33
34
  {
@@ -43,10 +44,10 @@ const ae = 350, wo = ({
43
44
  divider: !0,
44
45
  marginBottom: l,
45
46
  collapse: {
46
- collapsed: h,
47
- setCollapsed: f
47
+ collapsed: f,
48
+ setCollapsed: u
48
49
  },
49
- endAdornment: I,
50
+ endAdornment: g,
50
51
  customStyles: s
51
52
  }
52
53
  ),
@@ -57,7 +58,8 @@ const ae = 350, wo = ({
57
58
  width: "100%",
58
59
  height: p,
59
60
  customStyles: {
60
- maxHeight: h ? "0" : g,
61
+ ...a,
62
+ maxHeight: f ? "0" : m,
61
63
  transition: `max-height ${ae}ms ease-in-out`
62
64
  },
63
65
  children: t
@@ -68,22 +70,22 @@ const ae = 350, wo = ({
68
70
  );
69
71
  };
70
72
  function ne(e, t, i) {
71
- var l, s, d, a, g;
73
+ var l, s, d, a, h;
72
74
  t == null && (t = 100);
73
- function p() {
75
+ function m() {
74
76
  var f = Date.now() - a;
75
- f < t && f >= 0 ? l = setTimeout(p, t - f) : (l = null, i || (g = e.apply(d, s), d = s = null));
77
+ f < t && f >= 0 ? l = setTimeout(m, t - f) : (l = null, i || (h = e.apply(d, s), d = s = null));
76
78
  }
77
- var h = function() {
79
+ var p = function() {
78
80
  d = this, s = arguments, a = Date.now();
79
81
  var f = i && !l;
80
- return l || (l = setTimeout(p, t)), f && (g = e.apply(d, s), d = s = null), g;
82
+ return l || (l = setTimeout(m, t)), f && (h = e.apply(d, s), d = s = null), h;
81
83
  };
82
- return h.clear = function() {
84
+ return p.clear = function() {
83
85
  l && (clearTimeout(l), l = null);
84
- }, h.flush = function() {
85
- l && (g = e.apply(d, s), d = s = null, clearTimeout(l), l = null);
86
- }, h;
86
+ }, p.flush = function() {
87
+ l && (h = e.apply(d, s), d = s = null, clearTimeout(l), l = null);
88
+ }, p;
87
89
  }
88
90
  ne.debounce = ne;
89
91
  var Ie = ne;
@@ -102,16 +104,16 @@ function le({
102
104
  ), a = Q(
103
105
  () => ["all", "onChange"].includes(i) ? d : null,
104
106
  [d, i]
105
- ), g = Q(
107
+ ), h = Q(
106
108
  () => ["all", "onBlur"].includes(i) ? s : null,
107
109
  [i]
108
110
  );
109
111
  return Q(
110
112
  () => ({
111
113
  onChangeTrigger: a,
112
- onBlurTrigger: g
114
+ onBlurTrigger: h
113
115
  }),
114
- [a, g]
116
+ [a, h]
115
117
  );
116
118
  }
117
119
  const yo = ({
@@ -122,50 +124,50 @@ const yo = ({
122
124
  readonly: s = !1,
123
125
  disabled: d = !1,
124
126
  optionsMap: a,
125
- width: g = "100%",
126
- flex: p,
127
- placeholder: h,
127
+ width: h = "100%",
128
+ flex: m,
129
+ placeholder: p,
128
130
  onSelect: f,
129
131
  parser: u,
130
- filter: S,
131
- tooltipProps: I = {},
132
- infoProps: m = {},
133
- maxHeigthMenu: k,
132
+ filter: $,
133
+ tooltipProps: j = {},
134
+ infoProps: g = {},
135
+ maxHeigthMenu: w,
134
136
  isRequired: z = !1,
135
137
  onRemoveSelected: L,
136
- triggerFormField: C = null,
138
+ triggerFormField: k = null,
137
139
  displayText: R,
138
140
  ...H
139
141
  }) => {
140
142
  const { onChangeTrigger: B } = le({
141
143
  form: e,
142
144
  fieldName: t,
143
- triggerType: C,
145
+ triggerType: k,
144
146
  debounceTime: 0
145
147
  }), J = {
146
148
  position: "top",
147
- ...I
149
+ ...j
148
150
  }, A = {
149
- ...m,
151
+ ...g,
150
152
  tooltipProps: {
151
153
  position: "top",
152
154
  maxWidth: "300px",
153
- ...m == null ? void 0 : m.tooltipProps
155
+ ...g == null ? void 0 : g.tooltipProps
154
156
  }
155
- }, T = (w, v) => {
156
- let E = w;
157
- u && (E = u == null ? void 0 : u(w)), v(E), f == null || f(E), B == null || B();
158
- }, b = Q(() => G(a) ? a : Object.fromEntries(l.map((w) => [w.value, w])), [l, a]);
159
- return /* @__PURE__ */ n.jsx(_, { width: g, flex: p, children: /* @__PURE__ */ n.jsx(
157
+ }, T = (y, v) => {
158
+ let E = y;
159
+ u && (E = u == null ? void 0 : u(y)), v(E), f == null || f(E), B == null || B();
160
+ }, b = Q(() => G(a) ? a : Object.fromEntries(l.map((y) => [y.value, y])), [l, a]);
161
+ return /* @__PURE__ */ n.jsx(_, { width: h, flex: m, children: /* @__PURE__ */ n.jsx(
160
162
  re,
161
163
  {
162
164
  name: t,
163
165
  control: e.control,
164
166
  render: ({
165
- field: { onChange: w, value: v },
167
+ field: { onChange: y, value: v },
166
168
  fieldState: { error: E = null }
167
169
  }) => {
168
- let y = b[v];
170
+ let C = b[v];
169
171
  return /* @__PURE__ */ n.jsx(
170
172
  me,
171
173
  {
@@ -174,18 +176,18 @@ const yo = ({
174
176
  size: "Small",
175
177
  disabled: d,
176
178
  readonly: s,
177
- filter: S,
179
+ filter: $,
178
180
  errorMessage: E == null ? void 0 : E.message,
179
- placeholder: h,
180
- value: y,
181
+ placeholder: p,
182
+ value: C,
181
183
  handleOption: (c) => {
182
- T(c.value, w);
184
+ T(c.value, y);
183
185
  },
184
186
  tooltipProps: J,
185
187
  options: l,
186
- maxHeigthMenu: k,
188
+ maxHeigthMenu: w,
187
189
  infoProps: A,
188
- maxHeightMenu: k,
190
+ maxHeightMenu: w,
189
191
  isRequired: z,
190
192
  onRemoveSelected: L,
191
193
  displayText: R,
@@ -203,30 +205,30 @@ const yo = ({
203
205
  disabled: s = !1,
204
206
  width: d = "100%",
205
207
  height: a = "100%",
206
- flex: g,
207
- placeholder: p,
208
- charactersCounter: h = !0,
208
+ flex: h,
209
+ placeholder: m,
210
+ charactersCounter: p = !0,
209
211
  maxlength: f = 1e3,
210
212
  resize: u = !0,
211
- triggerFormField: S = null,
212
- minHeight: I,
213
- maxHeight: m,
214
- ...k
213
+ triggerFormField: $ = null,
214
+ minHeight: j,
215
+ maxHeight: g,
216
+ ...w
215
217
  }) => {
216
218
  const { onChangeTrigger: z } = le({
217
219
  form: e,
218
220
  fieldName: t,
219
- triggerType: S
220
- }), L = (C, R) => {
221
- R(C), z == null || z();
221
+ triggerType: $
222
+ }), L = (k, R) => {
223
+ R(k), z == null || z();
222
224
  };
223
- return /* @__PURE__ */ n.jsx(_, { width: d, flex: g, height: a, children: /* @__PURE__ */ n.jsx(
225
+ return /* @__PURE__ */ n.jsx(_, { width: d, flex: h, height: a, children: /* @__PURE__ */ n.jsx(
224
226
  re,
225
227
  {
226
228
  name: t,
227
229
  control: e.control,
228
230
  render: ({
229
- field: { onChange: C, value: R },
231
+ field: { onChange: k, value: R },
230
232
  fieldState: { error: H = null }
231
233
  }) => /* @__PURE__ */ n.jsx(
232
234
  we,
@@ -237,16 +239,16 @@ const yo = ({
237
239
  disabled: s,
238
240
  readonly: l,
239
241
  height: a,
240
- minHeight: I,
241
- maxHeight: m,
242
+ minHeight: j,
243
+ maxHeight: g,
242
244
  errorMessage: H == null ? void 0 : H.message,
243
- placeholder: p,
244
- onChange: (B) => L(B.target.value, C),
245
- charactersCounter: h,
245
+ placeholder: m,
246
+ onChange: (B) => L(B.target.value, k),
247
+ charactersCounter: p,
246
248
  maxlength: f,
247
249
  size: "Small",
248
250
  resize: u,
249
- ...k
251
+ ...w
250
252
  }
251
253
  )
252
254
  }
@@ -261,48 +263,48 @@ const Co = ({
261
263
  readonly: s = !1,
262
264
  disabled: d = !1,
263
265
  afterCheck: a,
264
- width: g = "100%",
265
- formatter: p,
266
- parser: h,
266
+ width: h = "100%",
267
+ formatter: m,
268
+ parser: p,
267
269
  flex: f,
268
270
  size: u = "Medium",
269
- triggerFormField: S = null,
270
- ...I
271
+ triggerFormField: $ = null,
272
+ ...j
271
273
  }) => {
272
- const { onChangeTrigger: m } = le({
274
+ const { onChangeTrigger: g } = le({
273
275
  form: e,
274
276
  fieldName: t,
275
- triggerType: S,
277
+ triggerType: $,
276
278
  debounceTime: 0
277
- }), k = (z, L) => {
278
- L(z), a == null || a(z), m == null || m();
279
+ }), w = (z, L) => {
280
+ L(z), a == null || a(z), g == null || g();
279
281
  };
280
- return /* @__PURE__ */ n.jsx(_, { width: g, flex: f, children: /* @__PURE__ */ n.jsx(
282
+ return /* @__PURE__ */ n.jsx(_, { width: h, flex: f, children: /* @__PURE__ */ n.jsx(
281
283
  re,
282
284
  {
283
285
  name: t,
284
286
  control: e.control,
285
287
  render: ({
286
288
  field: { onChange: z, value: L },
287
- fieldState: { error: C = null }
289
+ fieldState: { error: k = null }
288
290
  }) => {
289
- const R = C == null ? void 0 : C.message;
291
+ const R = k == null ? void 0 : k.message;
290
292
  return R && console.log("Error on checkbox!", R), /* @__PURE__ */ n.jsx(
291
293
  ye,
292
294
  {
293
295
  id: `form-checkbox-${i}`,
294
- checked: (p == null ? void 0 : p(L)) ?? L,
296
+ checked: (m == null ? void 0 : m(L)) ?? L,
295
297
  name: t,
296
298
  label: l,
297
299
  disabled: d || s,
298
300
  onChange: (H) => {
299
- k(
300
- (h == null ? void 0 : h(H.target.checked, L)) ?? H.target.checked,
301
+ w(
302
+ (p == null ? void 0 : p(H.target.checked, L)) ?? H.target.checked,
301
303
  z
302
304
  );
303
305
  },
304
306
  size: u,
305
- ...I
307
+ ...j
306
308
  }
307
309
  );
308
310
  }
@@ -431,26 +433,26 @@ const Co = ({
431
433
  display: flex;
432
434
  align-self: center;
433
435
  `, Oe = (e, t, i = 0, l = 0, s = "left") => {
434
- const [d, a] = P(0), [g, p] = P(), h = U(null), f = he(() => {
435
- if (!e.current || !h.current) return;
436
- const u = e.current.getBoundingClientRect(), S = h.current.getBoundingClientRect(), I = window.innerHeight, m = window.innerWidth, k = u.top, z = I - u.bottom, L = z < S.height + l && k > z;
437
- let C;
438
- L ? (C = u.top - S.height - i, h.current.style.maxHeight = `${k - i}px`) : (C = u.bottom + l, h.current.style.maxHeight = `${z - l}px`);
436
+ const [d, a] = P(0), [h, m] = P(), p = U(null), f = he(() => {
437
+ if (!e.current || !p.current) return;
438
+ const u = e.current.getBoundingClientRect(), $ = p.current.getBoundingClientRect(), j = window.innerHeight, g = window.innerWidth, w = u.top, z = j - u.bottom, L = z < $.height + l && w > z;
439
+ let k;
440
+ L ? (k = u.top - $.height - i, p.current.style.maxHeight = `${w - i}px`) : (k = u.bottom + l, p.current.style.maxHeight = `${z - l}px`);
439
441
  let R = u.left;
440
- const H = R + S.width - m;
442
+ const H = R + $.width - g;
441
443
  H > 0 && (R -= H), R < 0 && (R = 0);
442
- const B = m - u.right;
443
- Object.assign(h.current.style, {
444
+ const B = g - u.right;
445
+ Object.assign(p.current.style, {
444
446
  position: "fixed",
445
- top: `${C}px`,
447
+ top: `${k}px`,
446
448
  ...s === "left" ? { left: `${R}px` } : { right: `${B}px` },
447
- width: `${Math.max(u.width, S.width)}px`,
449
+ width: `${Math.max(u.width, $.width)}px`,
448
450
  overflowY: "auto"
449
451
  });
450
452
  }, [i, l, s]);
451
453
  return Z(() => {
452
- var S;
453
- a(0), p((S = e.current) == null ? void 0 : S.clientWidth), f();
454
+ var $;
455
+ a(0), m(($ = e.current) == null ? void 0 : $.clientWidth), f();
454
456
  const u = () => f();
455
457
  return window.addEventListener("scroll", u, !0), window.addEventListener("resize", u), () => {
456
458
  window.removeEventListener("scroll", u, !0), window.removeEventListener("resize", u);
@@ -459,8 +461,8 @@ const Co = ({
459
461
  highlightedIndex: d,
460
462
  setHighlightedIndex: a,
461
463
  isOptionSelected: (u) => u.label === (t == null ? void 0 : t.label),
462
- optionsRef: h,
463
- parentWidth: g
464
+ optionsRef: p,
465
+ parentWidth: h
464
466
  };
465
467
  }, ie = ge(
466
468
  ({
@@ -471,18 +473,18 @@ const Co = ({
471
473
  value: s,
472
474
  inputValue: d,
473
475
  widthMenu: a,
474
- maxHeightMenu: g = "180px",
475
- menuIsOpen: p,
476
- onEnter: h,
476
+ maxHeightMenu: h = "180px",
477
+ menuIsOpen: m,
478
+ onEnter: p,
477
479
  marginTop: f = "4px",
478
480
  iconName: u,
479
- iconColor: S,
480
- iconPosition: I,
481
- topOffset: m = 0,
482
- bottomOffset: k = 0,
481
+ iconColor: $,
482
+ iconPosition: j,
483
+ topOffset: g = 0,
484
+ bottomOffset: w = 0,
483
485
  truncateText: z = !0,
484
486
  menuJustifyContent: L = "flex-start",
485
- tableActionButton: C,
487
+ tableActionButton: k,
486
488
  menuLateralPadding: R = "8px",
487
489
  menuOptionFlexDirection: H = "column",
488
490
  confirmSelection: B,
@@ -492,86 +494,86 @@ const Co = ({
492
494
  const {
493
495
  highlightedIndex: T,
494
496
  setHighlightedIndex: b,
495
- isOptionSelected: w,
497
+ isOptionSelected: y,
496
498
  optionsRef: v,
497
499
  parentWidth: E
498
500
  } = Oe(
499
501
  e,
500
502
  s,
501
- m,
502
- k,
503
+ g,
504
+ w,
503
505
  J
504
506
  );
505
507
  Z(() => {
506
- const r = ($) => {
507
- if (p) {
508
- if ($.key === "ArrowDown")
509
- $.preventDefault(), b(
510
- (j) => j < t.length - 1 ? j + 1 : j
508
+ const r = (S) => {
509
+ if (m) {
510
+ if (S.key === "ArrowDown")
511
+ S.preventDefault(), b(
512
+ (N) => N < t.length - 1 ? N + 1 : N
511
513
  );
512
- else if ($.key === "ArrowUp")
513
- $.preventDefault(), b(
514
- (j) => j > 0 ? j - 1 : 0
514
+ else if (S.key === "ArrowUp")
515
+ S.preventDefault(), b(
516
+ (N) => N > 0 ? N - 1 : 0
515
517
  );
516
- else if ($.key === "Enter" && t[T]) {
517
- $.preventDefault();
518
- const j = t[T];
519
- l(j), h && h(j);
518
+ else if (S.key === "Enter" && t[T]) {
519
+ S.preventDefault();
520
+ const N = t[T];
521
+ l(N), p && p(N);
520
522
  }
521
523
  }
522
524
  };
523
525
  return window.addEventListener("keydown", r), () => window.removeEventListener("keydown", r);
524
526
  }, [
525
- p,
527
+ m,
526
528
  t,
527
529
  T,
528
- h,
530
+ p,
529
531
  l,
530
532
  B
531
533
  ]);
532
- const y = (r) => typeof r == "string" ? r : je.isValidElement(r) && typeof r.props.children == "string" ? r.props.children : String(r), c = (r, $) => {
533
- var F, W;
534
- if (I !== $) return null;
535
- const j = G((F = r.tooltipProps) == null ? void 0 : F.label), N = r.iconName || u || "InfoFill0Sm", D = /* @__PURE__ */ n.jsx(
534
+ const C = (r) => typeof r == "string" ? r : je.isValidElement(r) && typeof r.props.children == "string" ? r.props.children : String(r), c = (r, S) => {
535
+ var F, I;
536
+ if (j !== S) return null;
537
+ const N = G((F = r.tooltipProps) == null ? void 0 : F.label), W = r.iconName || u || "InfoFill0Sm", D = /* @__PURE__ */ n.jsx(
536
538
  Pe,
537
539
  {
538
- iconPosition: (W = r.tooltipProps) == null ? void 0 : W.position,
540
+ iconPosition: (I = r.tooltipProps) == null ? void 0 : I.position,
539
541
  id: `iconContainer-${r.value}`,
540
542
  children: /* @__PURE__ */ n.jsx(
541
543
  V,
542
544
  {
543
- iconName: N,
544
- color: r.disabled ? o.colors.neutralColors.colorNeutralCleanest : w(r) ? o.colors.brandColors.colorBrandSoft : S ?? o.colors.neutralColors.colorNeutralDark
545
+ iconName: W,
546
+ color: r.disabled ? o.colors.neutralColors.colorNeutralCleanest : y(r) ? o.colors.brandColors.colorBrandSoft : $ ?? o.colors.neutralColors.colorNeutralDark
545
547
  }
546
548
  )
547
549
  }
548
550
  );
549
- return j ? /* @__PURE__ */ n.jsx(fe, { ...r == null ? void 0 : r.tooltipProps, isActive: !0, children: D }) : D;
551
+ return N ? /* @__PURE__ */ n.jsx(fe, { ...r == null ? void 0 : r.tooltipProps, isActive: !0, children: D }) : D;
550
552
  };
551
553
  return /* @__PURE__ */ n.jsx(
552
554
  Me,
553
555
  {
554
556
  marginTop: f,
555
557
  width: a ?? `${E}px`,
556
- maxHeight: g,
558
+ maxHeight: h,
557
559
  height: "fit-content",
558
560
  ref: (r) => {
559
561
  v.current = r, typeof A == "function" ? A(r) : A && (A.current = r);
560
562
  },
561
563
  "data-testid": "MenuSelect",
562
564
  id: "MenuSelect",
563
- children: t.length === 0 ? /* @__PURE__ */ n.jsx(He, { size: i, children: "Sem opções" }) : t.map((r, $) => {
565
+ children: t.length === 0 ? /* @__PURE__ */ n.jsx(He, { size: i, children: "Sem opções" }) : t.map((r, S) => {
564
566
  var D, F;
565
- const j = typeof r.render == "function" ? r.render() : null, N = y(r.label);
567
+ const N = typeof r.render == "function" ? r.render() : null, W = C(r.label);
566
568
  if (r.isSection)
567
- return /* @__PURE__ */ n.jsx(Fe, { size: i, children: N }, N);
569
+ return /* @__PURE__ */ n.jsx(Fe, { size: i, children: W }, W);
568
570
  {
569
- const W = N.toLowerCase().indexOf((d == null ? void 0 : d.toLowerCase()) || "");
571
+ const I = W.toLowerCase().indexOf((d == null ? void 0 : d.toLowerCase()) || "");
570
572
  return /* @__PURE__ */ n.jsxs(
571
573
  Te,
572
574
  {
573
- isOptionSelected: w(r),
574
- highlightedIndex: $ === T,
575
+ isOptionSelected: y(r),
576
+ highlightedIndex: S === T,
575
577
  onClick: (X) => {
576
578
  X.stopPropagation(), r.disabled || (B ? Ce({
577
579
  id: "select-option",
@@ -592,7 +594,7 @@ const Co = ({
592
594
  }
593
595
  }) : l(r));
594
596
  },
595
- onMouseEnter: () => b($),
597
+ onMouseEnter: () => b(S),
596
598
  disabled: r.disabled,
597
599
  size: i,
598
600
  menuLateralPadding: R,
@@ -604,42 +606,42 @@ const Co = ({
604
606
  menuOptionFlexDirection: H,
605
607
  menuJustifyContent: L,
606
608
  iconName: u,
607
- isOptionSelected: w(r),
608
- highlightedIndex: $ === T,
609
+ isOptionSelected: y(r),
610
+ highlightedIndex: S === T,
609
611
  "data-testid": r.value,
610
612
  size: i,
611
613
  hasDescription: !!r.description,
612
614
  optionValue: r.value,
613
615
  disabled: r.disabled,
614
616
  truncateText: z,
615
- tableActionButton: C,
617
+ tableActionButton: k,
616
618
  children: [
617
619
  /* @__PURE__ */ n.jsxs(
618
620
  Ae,
619
621
  {
620
622
  truncateText: !se(r.label) && z,
621
623
  children: [
622
- j,
624
+ N,
623
625
  se(r.label) ? /* @__PURE__ */ n.jsx(
624
626
  "p",
625
627
  {
626
- title: ((D = r == null ? void 0 : r.tooltipProps) == null ? void 0 : D.label) ?? y(r.label),
628
+ title: ((D = r == null ? void 0 : r.tooltipProps) == null ? void 0 : D.label) ?? C(r.label),
627
629
  children: r.label
628
630
  }
629
631
  ) : /* @__PURE__ */ n.jsx(
630
632
  "p",
631
633
  {
632
- title: ((F = r == null ? void 0 : r.tooltipProps) == null ? void 0 : F.label) ?? N,
633
- children: d && W >= 0 ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
634
- N.substring(0, W),
635
- /* @__PURE__ */ n.jsx(Le, { size: i, children: N.substring(
636
- W,
637
- W + ((d == null ? void 0 : d.length) || 0)
634
+ title: ((F = r == null ? void 0 : r.tooltipProps) == null ? void 0 : F.label) ?? W,
635
+ children: d && I >= 0 ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
636
+ W.substring(0, I),
637
+ /* @__PURE__ */ n.jsx(Le, { size: i, children: W.substring(
638
+ I,
639
+ I + ((d == null ? void 0 : d.length) || 0)
638
640
  ) }),
639
- N.substring(
640
- W + ((d == null ? void 0 : d.length) || 0)
641
+ W.substring(
642
+ I + ((d == null ? void 0 : d.length) || 0)
641
643
  )
642
- ] }) : N
644
+ ] }) : W
643
645
  }
644
646
  )
645
647
  ]
@@ -669,9 +671,9 @@ const De = ({
669
671
  height: s,
670
672
  flex: d,
671
673
  children: a,
672
- wrapperCustomStyles: g = {},
673
- contentCustomStyles: p = {},
674
- titleCustomStyles: h = {}
674
+ wrapperCustomStyles: h = {},
675
+ contentCustomStyles: m = {},
676
+ titleCustomStyles: p = {}
675
677
  }) => /* @__PURE__ */ n.jsxs(
676
678
  _,
677
679
  {
@@ -684,7 +686,7 @@ const De = ({
684
686
  backgroundColor: o.colors.backgroundColors.colorBackgroundSnow,
685
687
  border: `1px solid ${o.colors.neutralColors.colorNeutralSoft}`,
686
688
  borderRadius: "8px",
687
- ...g
689
+ ...h
688
690
  },
689
691
  children: [
690
692
  /* @__PURE__ */ n.jsxs(
@@ -692,9 +694,9 @@ const De = ({
692
694
  {
693
695
  width: "100%",
694
696
  direction: "horizontal",
695
- customStyles: p,
697
+ customStyles: m,
696
698
  children: [
697
- e ? /* @__PURE__ */ n.jsx(_, { width: "fit-content", customStyles: h, children: /* @__PURE__ */ n.jsx(ce, { title: e, divider: !1 }) }) : null,
699
+ e ? /* @__PURE__ */ n.jsx(_, { width: "fit-content", customStyles: p, children: /* @__PURE__ */ n.jsx(ce, { title: e, divider: !1 }) }) : null,
698
700
  t ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
699
701
  /* @__PURE__ */ n.jsx(ke, { size: "auto", direction: "horizontal" }),
700
702
  /* @__PURE__ */ n.jsx(
@@ -875,44 +877,44 @@ const Ve = x.p`
875
877
  margin-top: ${o.spacings.spacingInline.spacingInlineNano};
876
878
  width: 100%;
877
879
  `, Ze = (e, { value: t, options: i }) => {
878
- const [l, s] = P(!1), [d, a] = P(!1), [g, p] = P(""), [h, f] = P(i), u = U(null), S = U(null), I = U(null), m = U(null);
880
+ const [l, s] = P(!1), [d, a] = P(!1), [h, m] = P(""), [p, f] = P(i), u = U(null), $ = U(null), j = U(null), g = U(null);
879
881
  Z(() => {
880
- const C = () => {
882
+ const k = () => {
881
883
  a(!1);
882
884
  };
883
- return window.addEventListener("scroll", C, { passive: !0 }), window.addEventListener("resize", C, { passive: !0 }), () => {
884
- window.removeEventListener("scroll", C), window.removeEventListener("resize", C);
885
+ return window.addEventListener("scroll", k, { passive: !0 }), window.addEventListener("resize", k, { passive: !0 }), () => {
886
+ window.removeEventListener("scroll", k), window.removeEventListener("resize", k);
885
887
  };
886
888
  }, []);
887
- function k(C) {
888
- p(""), a(!1), s(!0), I != null && I.current && I.current.focus(), C !== t && e(C);
889
+ function w(k) {
890
+ m(""), a(!1), s(!0), j != null && j.current && j.current.focus(), k !== t && e(k);
889
891
  }
890
- const z = (C) => {
891
- if (C) {
892
- const R = new RegExp(C, "i"), H = i.filter(
892
+ const z = (k) => {
893
+ if (k) {
894
+ const R = new RegExp(k, "i"), H = i.filter(
893
895
  (B) => R.exec(B.label)
894
896
  );
895
897
  f(H);
896
898
  } else
897
899
  f(i);
898
900
  };
899
- function L(C) {
900
- return !C;
901
+ function L(k) {
902
+ return !k;
901
903
  }
902
904
  return {
903
905
  isOpen: l,
904
906
  setIsOpen: s,
905
907
  expanded: d,
906
908
  setExpanded: a,
907
- inputValue: g,
908
- setInputValue: p,
909
- optionsSelect: h,
909
+ inputValue: h,
910
+ setInputValue: m,
911
+ optionsSelect: p,
910
912
  setOptionSelect: f,
911
913
  selectContainerRef: u,
912
- containerRef: S,
913
- inputContainerRef: I,
914
- optionsRef: m,
915
- selectOption: k,
914
+ containerRef: $,
915
+ inputContainerRef: j,
916
+ optionsRef: g,
917
+ selectOption: w,
916
918
  handlerFilterOptions: z,
917
919
  isValue: L
918
920
  };
@@ -925,18 +927,18 @@ const Ve = x.p`
925
927
  placeholder: s,
926
928
  label: d,
927
929
  size: a = "Medium",
928
- width: g = "100%",
929
- disabled: p,
930
- helpText: h,
930
+ width: h = "100%",
931
+ disabled: m,
932
+ helpText: p,
931
933
  readonly: f,
932
934
  errorMessage: u,
933
- tooltipProps: S = {},
934
- onBlur: I,
935
- onEnter: m,
936
- variant: k = "default",
935
+ tooltipProps: $ = {},
936
+ onBlur: j,
937
+ onEnter: g,
938
+ variant: w = "default",
937
939
  infoProps: z = {},
938
940
  maxHeightMenu: L,
939
- isRequired: C = !1,
941
+ isRequired: k = !1,
940
942
  onRemoveSelected: R,
941
943
  displayText: H,
942
944
  displayTextProps: B = {}
@@ -945,22 +947,22 @@ const Ve = x.p`
945
947
  isOpen: A,
946
948
  setIsOpen: T,
947
949
  expanded: b,
948
- setExpanded: w,
950
+ setExpanded: y,
949
951
  inputValue: v,
950
952
  setInputValue: E,
951
- optionsSelect: y,
953
+ optionsSelect: C,
952
954
  selectContainerRef: c,
953
955
  containerRef: r,
954
- inputContainerRef: $,
955
- selectOption: j,
956
- setOptionSelect: N,
956
+ inputContainerRef: S,
957
+ selectOption: N,
958
+ setOptionSelect: W,
957
959
  handlerFilterOptions: D,
958
960
  isValue: F
959
- } = Ze(t, { value: e, options: i }), W = !!u, X = {
961
+ } = Ze(t, { value: e, options: i }), I = !!u, X = {
960
962
  label: u,
961
- ...S,
963
+ ...$,
962
964
  wrapperWidth: "auto",
963
- isActive: W,
965
+ isActive: I,
964
966
  isErrorTooltip: !0
965
967
  }, O = {
966
968
  ...z,
@@ -978,59 +980,59 @@ const Ve = x.p`
978
980
  Xe,
979
981
  {
980
982
  ref: c,
981
- width: g,
983
+ width: h,
982
984
  size: a,
983
- disabled: p,
985
+ disabled: m,
984
986
  readonly: f,
985
987
  children: [
986
988
  d && /* @__PURE__ */ n.jsxs(Je, { children: [
987
989
  /* @__PURE__ */ n.jsxs(Ye, { "data-testid": "label", ref: J, children: [
988
990
  d,
989
- C && !p ? /* @__PURE__ */ n.jsx(Qe, { children: " *" }) : null
991
+ k && !m ? /* @__PURE__ */ n.jsx(Qe, { children: " *" }) : null
990
992
  ] }),
991
993
  ((O == null ? void 0 : O.message) || (O == null ? void 0 : O.render)) && /* @__PURE__ */ n.jsx(ze, { ...O })
992
994
  ] }),
993
995
  /* @__PURE__ */ n.jsx(fe, { ...X, children: /* @__PURE__ */ n.jsxs(
994
996
  _e,
995
997
  {
996
- hasError: W,
998
+ hasError: I,
997
999
  readonly: f,
998
1000
  ref: r,
999
1001
  onBlur: () => {
1000
1002
  setTimeout(() => {
1001
- (A || b) && $.current !== document.activeElement && (I && I(e), T(!1), w(!1));
1003
+ (A || b) && S.current !== document.activeElement && (j && j(e), T(!1), y(!1));
1002
1004
  }, 250);
1003
1005
  },
1004
1006
  onClick: () => {
1005
- !p && !f && (A && !b ? (w(!0), $ != null && $.current && $.current.focus()) : !A && !b ? (T(!0), w(!0), $ != null && $.current && $.current.focus()) : (T(!1), w(!1), $ != null && $.current && $.current.blur()), !v && N(i));
1007
+ !m && !f && (A && !b ? (y(!0), S != null && S.current && S.current.focus()) : !A && !b ? (T(!0), y(!0), S != null && S.current && S.current.focus()) : (T(!1), y(!1), S != null && S.current && S.current.blur()), !v && W(i));
1006
1008
  },
1007
1009
  tabIndex: 0,
1008
- width: g,
1010
+ width: h,
1009
1011
  size: a,
1010
1012
  isOpen: A || b,
1011
1013
  "data-testid": "select",
1012
- disabled: p,
1013
- helpText: h,
1014
- variant: k,
1014
+ disabled: m,
1015
+ helpText: p,
1016
+ variant: w,
1015
1017
  children: [
1016
1018
  /* @__PURE__ */ n.jsxs(Ue, { children: [
1017
- G(H) ? /* @__PURE__ */ n.jsx(de, { size: a, variant: k, isDisplayText: !0, children: /* @__PURE__ */ n.jsx("p", { title: e == null ? void 0 : e.label, ...B, children: H }) }) : /* @__PURE__ */ n.jsxs(de, { size: a, variant: k, children: [
1018
- s && F(e) && !v && !A ? /* @__PURE__ */ n.jsx(Ge, { size: a, variant: k, children: s }) : null,
1019
+ G(H) ? /* @__PURE__ */ n.jsx(de, { size: a, variant: w, isDisplayText: !0, children: /* @__PURE__ */ n.jsx("p", { title: e == null ? void 0 : e.label, ...B, children: H }) }) : /* @__PURE__ */ n.jsxs(de, { size: a, variant: w, children: [
1020
+ s && F(e) && !v && !A ? /* @__PURE__ */ n.jsx(Ge, { size: a, variant: w, children: s }) : null,
1019
1021
  (e == null ? void 0 : e.label) && /* @__PURE__ */ n.jsx("p", { title: (e == null ? void 0 : e.hint) ?? (e == null ? void 0 : e.label), children: e == null ? void 0 : e.label })
1020
1022
  ] }),
1021
1023
  l && !G(H) && /* @__PURE__ */ n.jsx(
1022
1024
  qe,
1023
1025
  {
1024
- ref: $,
1026
+ ref: S,
1025
1027
  value: v,
1026
1028
  onChange: (Y) => {
1027
- E(Y.target.value), Y.target.value.length > 0 && (T(!0), w(!0)), D(Y.target.value);
1029
+ E(Y.target.value), Y.target.value.length > 0 && (T(!0), y(!0)), D(Y.target.value);
1028
1030
  },
1029
1031
  readOnly: f,
1030
1032
  width: v.length,
1031
1033
  size: a,
1032
- disabled: p,
1033
- variant: k
1034
+ disabled: m,
1035
+ variant: w
1034
1036
  }
1035
1037
  )
1036
1038
  ] }),
@@ -1040,13 +1042,13 @@ const Ve = x.p`
1040
1042
  ie,
1041
1043
  {
1042
1044
  onEnter: (Y) => {
1043
- t && t(Y), T(!1), w(!1), m && m(Y);
1045
+ t && t(Y), T(!1), y(!1), g && g(Y);
1044
1046
  },
1045
1047
  menuIsOpen: A,
1046
1048
  selectContainerRef: c,
1047
1049
  value: e,
1048
- optionsSelect: y,
1049
- selectOption: j,
1050
+ optionsSelect: C,
1051
+ selectOption: N,
1050
1052
  size: a,
1051
1053
  inputValue: v,
1052
1054
  maxHeightMenu: L
@@ -1055,7 +1057,7 @@ const Ve = x.p`
1055
1057
  ]
1056
1058
  }
1057
1059
  ) }),
1058
- h && /* @__PURE__ */ n.jsx(Ve, { size: a, children: h })
1060
+ p && /* @__PURE__ */ n.jsx(Ve, { size: a, children: p })
1059
1061
  ]
1060
1062
  }
1061
1063
  );
@@ -1214,28 +1216,28 @@ const to = x.div`
1214
1216
  disabled: s = !1,
1215
1217
  isLoading: d = !1,
1216
1218
  onClick: a,
1217
- options: g,
1218
- label: p,
1219
- menuSelectProps: h = {},
1219
+ options: h,
1220
+ label: m,
1221
+ menuSelectProps: p = {},
1220
1222
  iconName: f,
1221
1223
  optionsIconPosition: u
1222
1224
  }) => {
1223
- const { isOpen: S, setIsOpen: I, selectContainerRef: m, optionsSelect: k } = no(g);
1225
+ const { isOpen: $, setIsOpen: j, selectContainerRef: g, optionsSelect: w } = no(h);
1224
1226
  let z = o.colors.backgroundColors.colorBackgroundSnow;
1225
1227
  s ? z = o.colors.neutralColors.colorNeutralCloudy : t !== "primary" && (z = o.colors.neutralColors.colorNeutralDark);
1226
1228
  const L = {
1227
- ...h
1229
+ ...p
1228
1230
  };
1229
1231
  return /* @__PURE__ */ n.jsxs(
1230
1232
  eo,
1231
1233
  {
1232
- ref: m,
1234
+ ref: g,
1233
1235
  width: i,
1234
1236
  size: l,
1235
1237
  disabled: s,
1236
- onBlur: () => setTimeout(() => I(!1), ro),
1238
+ onBlur: () => setTimeout(() => j(!1), ro),
1237
1239
  children: [
1238
- p && /* @__PURE__ */ n.jsx(oo, { children: p }),
1240
+ m && /* @__PURE__ */ n.jsx(oo, { children: m }),
1239
1241
  /* @__PURE__ */ n.jsxs(
1240
1242
  Ke,
1241
1243
  {
@@ -1244,7 +1246,7 @@ const to = x.div`
1244
1246
  disabled: s,
1245
1247
  variant: t,
1246
1248
  isLoading: d,
1247
- onClick: () => !d && I(!S),
1249
+ onClick: () => !d && j(!$),
1248
1250
  id: `button-component-${e}`,
1249
1251
  children: [
1250
1252
  d && /* @__PURE__ */ n.jsx(to, { size: l, disabled: s, variant: t, children: /* @__PURE__ */ n.jsx(
@@ -1256,7 +1258,7 @@ const to = x.div`
1256
1258
  }
1257
1259
  ) }),
1258
1260
  !d && /* @__PURE__ */ n.jsx("p", { title: e, children: e }),
1259
- !d && (S ? /* @__PURE__ */ n.jsx(
1261
+ !d && ($ ? /* @__PURE__ */ n.jsx(
1260
1262
  V,
1261
1263
  {
1262
1264
  iconName: `ExpandLess${l === "Small" ? "Ant" : "Sm"}`,
@@ -1274,12 +1276,12 @@ const to = x.div`
1274
1276
  ]
1275
1277
  }
1276
1278
  ),
1277
- S && /* @__PURE__ */ n.jsx(
1279
+ $ && /* @__PURE__ */ n.jsx(
1278
1280
  ie,
1279
1281
  {
1280
- selectContainerRef: m,
1282
+ selectContainerRef: g,
1281
1283
  value: null,
1282
- optionsSelect: k,
1284
+ optionsSelect: w,
1283
1285
  selectOption: a,
1284
1286
  size: l,
1285
1287
  inputValue: null,
@@ -1357,28 +1359,28 @@ const ao = x.div`
1357
1359
  options: s = [],
1358
1360
  heightItems: d = "60px",
1359
1361
  widthItems: a = "155px",
1360
- emptyProps: g = {
1362
+ emptyProps: h = {
1361
1363
  title: "Nenhum dado a ser mostrado",
1362
1364
  body: null
1363
1365
  },
1364
- customWrapperStyles: p = {},
1365
- customItemStyles: h = {}
1366
+ customWrapperStyles: m = {},
1367
+ customItemStyles: p = {}
1366
1368
  }) => {
1367
- const [f, u] = P(s[0] || null), S = U(null), I = U(null);
1369
+ const [f, u] = P(s[0] || null), $ = U(null), j = U(null);
1368
1370
  return Z(() => {
1369
- const m = S.current, k = I.current, z = () => {
1370
- m && k && (k.scrollTop = m.scrollTop);
1371
+ const g = $.current, w = j.current, z = () => {
1372
+ g && w && (w.scrollTop = g.scrollTop);
1371
1373
  };
1372
- return m == null || m.addEventListener("scroll", z), () => {
1373
- m == null || m.removeEventListener("scroll", z);
1374
+ return g == null || g.addEventListener("scroll", z), () => {
1375
+ g == null || g.removeEventListener("scroll", z);
1374
1376
  };
1375
1377
  }, []), Z(() => {
1376
1378
  u(s[(s == null ? void 0 : s.length) - 1] || null);
1377
1379
  }, [s == null ? void 0 : s.length]), (s == null ? void 0 : s.length) === 0 ? /* @__PURE__ */ n.jsx(
1378
1380
  ue,
1379
1381
  {
1380
- title: g.title,
1381
- body: g.body,
1382
+ title: h.title,
1383
+ body: h.body,
1382
1384
  flex: "1",
1383
1385
  mode: "table"
1384
1386
  }
@@ -1393,21 +1395,21 @@ const ao = x.div`
1393
1395
  customStyles: {
1394
1396
  border: `1px solid ${o.colors.neutralColors.colorNeutralSoft}`,
1395
1397
  borderRadius: o.borders.borderRadius.borderRadiusSm,
1396
- ...p
1398
+ ...m
1397
1399
  },
1398
1400
  children: [
1399
- /* @__PURE__ */ n.jsxs(lo, { ref: S, widthItems: a, children: [
1400
- s == null ? void 0 : s.map((m, k) => /* @__PURE__ */ n.jsx(
1401
+ /* @__PURE__ */ n.jsxs(lo, { ref: $, widthItems: a, children: [
1402
+ s == null ? void 0 : s.map((g, w) => /* @__PURE__ */ n.jsx(
1401
1403
  io,
1402
1404
  {
1403
- selected: (f == null ? void 0 : f.key) === m.key,
1404
- onClick: () => u(m),
1405
+ selected: (f == null ? void 0 : f.key) === g.key,
1406
+ onClick: () => u(g),
1405
1407
  withBorderRight: !0,
1406
1408
  heightItems: d,
1407
- customStyles: h,
1408
- children: m.item
1409
+ customStyles: p,
1410
+ children: g.item
1409
1411
  },
1410
- k
1412
+ w
1411
1413
  )),
1412
1414
  /* @__PURE__ */ n.jsx(ao, {})
1413
1415
  ] }),
@@ -1595,9 +1597,9 @@ function Bo({
1595
1597
  fit: s = !1,
1596
1598
  maxHeight: d = "40rem",
1597
1599
  columns: a,
1598
- dataSource: g,
1599
- columnsTextSize: p = i,
1600
- emptyProps: h = {
1600
+ dataSource: h,
1601
+ columnsTextSize: m = i,
1602
+ emptyProps: p = {
1601
1603
  width: "100%",
1602
1604
  height: "100%",
1603
1605
  title: "Nenhum dado a ser mostrado.",
@@ -1607,12 +1609,12 @@ function Bo({
1607
1609
  },
1608
1610
  selectedRow: f = !1,
1609
1611
  hideHeader: u = !1,
1610
- withBorder: S = !0,
1611
- withBorderRadius: I = !0,
1612
- striped: m = !1,
1613
- borderRadius: k = o.borders.borderRadius.borderRadiusSm
1612
+ withBorder: $ = !0,
1613
+ withBorderRadius: j = !0,
1614
+ striped: g = !1,
1615
+ borderRadius: w = o.borders.borderRadius.borderRadiusSm
1614
1616
  }) {
1615
- const z = Q(() => mo(t), [t]), [L, C] = P(null), R = U(null), H = U(null), [B, J] = P(a);
1617
+ const z = Q(() => mo(t), [t]), [L, k] = P(null), R = U(null), H = U(null), [B, J] = P(a);
1616
1618
  Ne(() => {
1617
1619
  if (!H.current || a.length === 0) {
1618
1620
  J(a);
@@ -1622,49 +1624,49 @@ function Bo({
1622
1624
  var D;
1623
1625
  const v = ((D = H.current) == null ? void 0 : D.clientWidth) || 0;
1624
1626
  if (v === 0) return;
1625
- let E = 0, y = 0;
1627
+ let E = 0, C = 0;
1626
1628
  const c = [], r = [];
1627
1629
  a.forEach((F) => {
1628
- const W = Number(F.flex);
1629
- F.width ? E += parseInt(F.width, 10) || 0 : F.flex && W > 0 ? (y += W, c.push(F)) : r.push(F);
1630
+ const I = Number(F.flex);
1631
+ F.width ? E += parseInt(F.width, 10) || 0 : F.flex && I > 0 ? (C += I, c.push(F)) : r.push(F);
1630
1632
  });
1631
- const $ = v - E, j = "80";
1632
- let N = [...a];
1633
- if ($ > 0) {
1633
+ const S = v - E, N = "80";
1634
+ let W = [...a];
1635
+ if (S > 0) {
1634
1636
  if (c.length > 0) {
1635
- const F = $ / y;
1636
- N = a.map((W) => {
1637
- const X = Number(W.flex);
1637
+ const F = S / C;
1638
+ W = a.map((I) => {
1639
+ const X = Number(I.flex);
1638
1640
  if (X && X > 0) {
1639
- const O = parseInt(W.minWidth || j, 10), K = X * F, te = Math.max(K, O);
1640
- return { ...W, width: `${Math.floor(te)}px` };
1641
+ const O = parseInt(I.minWidth || N, 10), K = X * F, te = Math.max(K, O);
1642
+ return { ...I, width: `${Math.floor(te)}px` };
1641
1643
  }
1642
- return !W.width && !X ? {
1643
- ...W,
1644
- width: W.minWidth || `${j}px`
1645
- } : W;
1644
+ return !I.width && !X ? {
1645
+ ...I,
1646
+ width: I.minWidth || `${N}px`
1647
+ } : I;
1646
1648
  });
1647
1649
  } else if (r.length > 0) {
1648
- const F = $ / r.length;
1649
- N = a.map((W) => {
1650
- const X = Number(W.flex);
1651
- if (!W.width && !X) {
1652
- const O = parseInt(W.minWidth || j, 10), K = Math.max(F, O);
1653
- return { ...W, width: `${Math.floor(K)}px` };
1650
+ const F = S / r.length;
1651
+ W = a.map((I) => {
1652
+ const X = Number(I.flex);
1653
+ if (!I.width && !X) {
1654
+ const O = parseInt(I.minWidth || N, 10), K = Math.max(F, O);
1655
+ return { ...I, width: `${Math.floor(K)}px` };
1654
1656
  }
1655
- return W;
1657
+ return I;
1656
1658
  });
1657
1659
  }
1658
1660
  } else
1659
- N = a.map((F) => F.width ? F : { ...F, width: F.minWidth || `${j}px` });
1660
- J(N);
1661
+ W = a.map((F) => F.width ? F : { ...F, width: F.minWidth || `${N}px` });
1662
+ J(W);
1661
1663
  };
1662
1664
  b();
1663
- const w = new ResizeObserver(b);
1664
- return w.observe(H.current), () => w.disconnect();
1665
+ const y = new ResizeObserver(b);
1666
+ return y.observe(H.current), () => y.disconnect();
1665
1667
  }, [a]), Z(() => {
1666
- const b = (w) => {
1667
- R.current && !R.current.contains(w.target) && C(null);
1668
+ const b = (y) => {
1669
+ R.current && !R.current.contains(y.target) && k(null);
1668
1670
  };
1669
1671
  return document.addEventListener("mousedown", b), () => {
1670
1672
  document.removeEventListener("mousedown", b);
@@ -1673,7 +1675,7 @@ function Bo({
1673
1675
  const A = Q(() => B ? B.some(
1674
1676
  (b) => b.mergeHeaderId && b.mergeHeaderLabel
1675
1677
  ) : !1, [B]), T = Q(() => {
1676
- var E, y;
1678
+ var E, C;
1677
1679
  if (u || !B || B.length === 0)
1678
1680
  return null;
1679
1681
  if (!A)
@@ -1683,7 +1685,7 @@ function Bo({
1683
1685
  isHeader: !0,
1684
1686
  size: i,
1685
1687
  numRows: 1,
1686
- borderRadius: k,
1688
+ borderRadius: w,
1687
1689
  children: B.map((c) => {
1688
1690
  var r;
1689
1691
  return /* @__PURE__ */ n.jsx(
@@ -1694,24 +1696,24 @@ function Bo({
1694
1696
  maxWidth: c.maxWidth,
1695
1697
  horizontalAlign: c.horizontalAlign,
1696
1698
  size: i,
1697
- columnsTextSize: p,
1698
- withBorder: S,
1699
+ columnsTextSize: m,
1700
+ withBorder: $,
1699
1701
  headerAlign: c.headerAlign,
1700
- children: ((r = c.columnRender) == null ? void 0 : r.call(c, g)) || /* @__PURE__ */ n.jsx("span", { title: c.label, children: c.label })
1702
+ children: ((r = c.columnRender) == null ? void 0 : r.call(c, h)) || /* @__PURE__ */ n.jsx("span", { title: c.label, children: c.label })
1701
1703
  },
1702
1704
  c.dataIndex
1703
1705
  );
1704
1706
  })
1705
1707
  }
1706
1708
  );
1707
- const b = [], w = [];
1709
+ const b = [], y = [];
1708
1710
  let v = 0;
1709
1711
  for (; v < B.length; ) {
1710
1712
  const c = B[v];
1711
1713
  if (c.mergeHeaderId && c.mergeHeaderLabel) {
1712
1714
  let r = 0;
1713
- const $ = c.mergeHeaderId;
1714
- for (let j = v; j < B.length && B[j].mergeHeaderId === $; j++)
1715
+ const S = c.mergeHeaderId;
1716
+ for (let N = v; N < B.length && B[N].mergeHeaderId === S; N++)
1715
1717
  r++;
1716
1718
  b.push(
1717
1719
  /* @__PURE__ */ n.jsx(
@@ -1720,8 +1722,8 @@ function Bo({
1720
1722
  colSpan: r,
1721
1723
  horizontalAlign: "center",
1722
1724
  size: i,
1723
- columnsTextSize: p,
1724
- withBorder: S,
1725
+ columnsTextSize: m,
1726
+ withBorder: $,
1725
1727
  width: c.width,
1726
1728
  minWidth: c.minWidth,
1727
1729
  maxWidth: c.maxWidth,
@@ -1732,23 +1734,23 @@ function Bo({
1732
1734
  `${c.mergeHeaderId}-merged`
1733
1735
  )
1734
1736
  );
1735
- for (let j = 0; j < r; j++) {
1736
- const N = B[v + j];
1737
- w.push(
1737
+ for (let N = 0; N < r; N++) {
1738
+ const W = B[v + N];
1739
+ y.push(
1738
1740
  /* @__PURE__ */ n.jsx(
1739
1741
  oe,
1740
1742
  {
1741
- width: N.width,
1742
- minWidth: N.minWidth,
1743
- maxWidth: N.maxWidth,
1744
- horizontalAlign: N.horizontalAlign,
1743
+ width: W.width,
1744
+ minWidth: W.minWidth,
1745
+ maxWidth: W.maxWidth,
1746
+ horizontalAlign: W.horizontalAlign,
1745
1747
  size: i,
1746
- columnsTextSize: p,
1747
- withBorder: S,
1748
+ columnsTextSize: m,
1749
+ withBorder: $,
1748
1750
  headerAlign: c.headerAlign,
1749
- children: ((E = N.columnRender) == null ? void 0 : E.call(N, g)) || /* @__PURE__ */ n.jsx("span", { title: N.label, children: N.label })
1751
+ children: ((E = W.columnRender) == null ? void 0 : E.call(W, h)) || /* @__PURE__ */ n.jsx("span", { title: W.label, children: W.label })
1750
1752
  },
1751
- N.dataIndex + "-individual"
1753
+ W.dataIndex + "-individual"
1752
1754
  )
1753
1755
  );
1754
1756
  }
@@ -1764,11 +1766,11 @@ function Bo({
1764
1766
  maxWidth: c.maxWidth,
1765
1767
  horizontalAlign: c.horizontalAlign,
1766
1768
  size: i,
1767
- columnsTextSize: p,
1768
- withBorder: S,
1769
+ columnsTextSize: m,
1770
+ withBorder: $,
1769
1771
  headerAlign: c.headerAlign,
1770
1772
  isTopRow: !0,
1771
- children: ((y = c.columnRender) == null ? void 0 : y.call(c, g)) || /* @__PURE__ */ n.jsx("span", { title: c.label, children: c.label })
1773
+ children: ((C = c.columnRender) == null ? void 0 : C.call(c, h)) || /* @__PURE__ */ n.jsx("span", { title: c.label, children: c.label })
1772
1774
  },
1773
1775
  c.dataIndex
1774
1776
  )
@@ -1781,99 +1783,99 @@ function Bo({
1781
1783
  isHeader: !0,
1782
1784
  size: i,
1783
1785
  numRows: 2,
1784
- borderRadius: k,
1786
+ borderRadius: w,
1785
1787
  children: b
1786
1788
  }
1787
1789
  ),
1788
- w.length > 0 && /* @__PURE__ */ n.jsx(
1790
+ y.length > 0 && /* @__PURE__ */ n.jsx(
1789
1791
  ee,
1790
1792
  {
1791
1793
  isHeader: !0,
1792
1794
  size: i,
1793
1795
  numRows: 2,
1794
- borderRadius: k,
1795
- children: w
1796
+ borderRadius: w,
1797
+ children: y
1796
1798
  }
1797
1799
  )
1798
1800
  ] });
1799
- }, [B, u, i, p, A]);
1800
- return !g || g.length === 0 ? /* @__PURE__ */ n.jsx(
1801
+ }, [B, u, i, m, A]);
1802
+ return !h || h.length === 0 ? /* @__PURE__ */ n.jsx(
1801
1803
  ue,
1802
1804
  {
1803
1805
  backgroundColor: o.colors.backgroundColors.colorBackgroundSnow,
1804
1806
  borders: !0,
1805
1807
  mode: "table",
1806
- ...h
1808
+ ...p
1807
1809
  }
1808
1810
  ) : /* @__PURE__ */ n.jsx(
1809
1811
  co,
1810
1812
  {
1811
1813
  maxHeight: d,
1812
- withBorderRadius: I,
1814
+ withBorderRadius: j,
1813
1815
  ref: H,
1814
- borderRadius: k,
1816
+ borderRadius: w,
1815
1817
  children: /* @__PURE__ */ n.jsxs(fo, { id: e, ref: R, children: [
1816
1818
  /* @__PURE__ */ n.jsx("thead", { children: T }),
1817
- /* @__PURE__ */ n.jsx("tbody", { style: { width: "100%" }, children: g == null ? void 0 : g.map((b, w, v) => {
1819
+ /* @__PURE__ */ n.jsx("tbody", { style: { width: "100%" }, children: h == null ? void 0 : h.map((b, y, v) => {
1818
1820
  const E = z(b);
1819
1821
  return /* @__PURE__ */ n.jsx(
1820
1822
  ee,
1821
1823
  {
1822
- isLast: w === v.length - 1,
1824
+ isLast: y === v.length - 1,
1823
1825
  fit: s,
1824
1826
  size: i,
1825
- withBorder: S,
1827
+ withBorder: $,
1826
1828
  isSelected: E === L && f,
1827
- striped: m && w % 2 !== 0,
1828
- borderRadius: k,
1829
- children: B.map((y) => {
1830
- var c, r, $;
1829
+ striped: g && y % 2 !== 0,
1830
+ borderRadius: w,
1831
+ children: B.map((C) => {
1832
+ var c, r, S;
1831
1833
  return /* @__PURE__ */ n.jsx(
1832
1834
  go,
1833
1835
  {
1834
- width: y.width,
1835
- minWidth: y.minWidth,
1836
- maxWidth: y.maxWidth,
1836
+ width: C.width,
1837
+ minWidth: C.minWidth,
1838
+ maxWidth: C.maxWidth,
1837
1839
  size: i,
1838
1840
  isClickable: G(l),
1839
1841
  onClick: () => {
1840
- l && l(b, y, w), f && C(
1842
+ l && l(b, C, y), f && k(
1841
1843
  L === E ? null : E
1842
1844
  );
1843
1845
  },
1844
- horizontalAlign: y.horizontalAlign,
1845
- verticalAlign: y.verticalAlign,
1846
- rowPadding: y.rowPadding,
1847
- withBorder: S,
1848
- isLast: w === v.length - 1,
1849
- backgroundColor: (c = y.paint) == null ? void 0 : c.call(
1850
- y,
1851
- b[y.dataIndex],
1846
+ horizontalAlign: C.horizontalAlign,
1847
+ verticalAlign: C.verticalAlign,
1848
+ rowPadding: C.rowPadding,
1849
+ withBorder: $,
1850
+ isLast: y === v.length - 1,
1851
+ backgroundColor: (c = C.paint) == null ? void 0 : c.call(
1852
+ C,
1853
+ b[C.dataIndex],
1852
1854
  b,
1853
- w,
1855
+ y,
1854
1856
  v
1855
1857
  ),
1856
- children: ((r = y.render) == null ? void 0 : r.call(
1857
- y,
1858
- b[y.dataIndex],
1858
+ children: ((r = C.render) == null ? void 0 : r.call(
1859
+ C,
1860
+ b[C.dataIndex],
1859
1861
  b,
1860
- w,
1862
+ y,
1861
1863
  v
1862
1864
  )) || /* @__PURE__ */ n.jsx(
1863
1865
  "span",
1864
1866
  {
1865
- title: b[y.dataIndex],
1867
+ title: b[C.dataIndex],
1866
1868
  style: {
1867
1869
  textOverflow: "ellipsis",
1868
1870
  whiteSpace: "nowrap",
1869
1871
  overflow: "hidden",
1870
- ...($ = y.rowCss) == null ? void 0 : $.call(y, b)
1872
+ ...(S = C.rowCss) == null ? void 0 : S.call(C, b)
1871
1873
  },
1872
- children: b[y.dataIndex]
1874
+ children: b[C.dataIndex]
1873
1875
  }
1874
1876
  ) || ""
1875
1877
  },
1876
- `${E}::${y.dataIndex}`
1878
+ `${E}::${C.dataIndex}`
1877
1879
  );
1878
1880
  })
1879
1881
  },