@oliasoft-open-source/react-ui-library 6.7.0-beta-1 → 6.7.0-beta-3

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.
package/dist/index.js CHANGED
@@ -1468,17 +1468,17 @@ var Cr = /* @__PURE__ */ function(e) {
1468
1468
  })
1469
1469
  });
1470
1470
  }, ca = {
1471
- inputInTable: "_inputInTable_1nvil_1",
1472
- inputHover: "_inputHover_1nvil_13",
1473
- inputFocus: "_inputFocus_1nvil_18",
1474
- inputError: "_inputError_1nvil_25",
1475
- inputWarning: "_inputWarning_1nvil_26",
1476
- inputDisabled: "_inputDisabled_1nvil_61",
1477
- hideScrollbars: "_hideScrollbars_1nvil_67",
1478
- column: "_column_1nvil_77",
1479
- noScrollbar: "_noScrollbar_1nvil_101",
1480
- inner: "_inner_1nvil_111",
1481
- innerFlexbox: "_innerFlexbox_1nvil_119"
1471
+ inputInTable: "_inputInTable_10dx9_1",
1472
+ inputHover: "_inputHover_10dx9_13",
1473
+ inputFocus: "_inputFocus_10dx9_18",
1474
+ inputError: "_inputError_10dx9_25",
1475
+ inputWarning: "_inputWarning_10dx9_26",
1476
+ inputDisabled: "_inputDisabled_10dx9_61",
1477
+ hideScrollbars: "_hideScrollbars_10dx9_67",
1478
+ column: "_column_10dx9_77",
1479
+ noScrollbar: "_noScrollbar_10dx9_94",
1480
+ inner: "_inner_10dx9_104",
1481
+ innerFlexbox: "_innerFlexbox_10dx9_111"
1482
1482
  }, la = (e) => {
1483
1483
  if (typeof e == "string") return e;
1484
1484
  if (typeof e == "number") return `${e}px`;
@@ -1486,24 +1486,25 @@ var Cr = /* @__PURE__ */ function(e) {
1486
1486
  if (e === !0) return "1px solid var(--color-border)";
1487
1487
  if (typeof e == "string") return e;
1488
1488
  }, da = (e) => e === !0 ? "var(--padding)" : e === !1 ? "0" : e, fa = ({ background: e = "transparent", borderLeft: t, borderRight: n, children: r = null, flex: i = !0, flexbox: a = !1, padding: o = !1, scroll: s = !1, showScrollbar: c = !0, spacing: l = "var(--padding)", width: u, widthMobile: d, widthTablet: f, testId: p }) => {
1489
- let m = la(u), h = la(f), _ = la(d), y = ua(t), b = ua(n), x = da(o), S = {
1490
- "--column-width": m || "auto",
1491
- "--column-flex-grow": !m && i ? "1" : "0",
1492
- "--column-flex-shrink": m || !i ? "0" : "1",
1493
- "--column-overflow": s ? "auto" : "initial",
1494
- "--column-background": e,
1495
- "--column-spacing": l ? `0 calc(${l} / 2)` : "0",
1496
- "--column-inner-padding": x,
1497
- ...y && { "--column-border-left": y },
1498
- ...b && { "--column-border-right": b },
1499
- ...h && { "--column-width-tablet": h },
1500
- ..._ && { "--column-width-mobile": _ }
1489
+ var m, h, _;
1490
+ let y = la(u), b = la(f), x = la(d), S = ua(t), C = ua(n), w = da(o), T = {
1491
+ "--column-width": y || "auto",
1492
+ "--column-width-tablet": (m = b == null ? y : b) == null ? "auto" : m,
1493
+ "--column-width-mobile": (h = (_ = x == null ? b : x) == null ? y : _) == null ? "auto" : h,
1494
+ flexGrow: !y && i ? 1 : 0,
1495
+ flexShrink: y || !i ? 0 : 1,
1496
+ overflow: s ? "auto" : "initial",
1497
+ background: e,
1498
+ borderLeft: S,
1499
+ borderRight: C,
1500
+ padding: l ? `0 calc(${l} / 2)` : 0
1501
1501
  };
1502
1502
  return /* @__PURE__ */ v("div", {
1503
1503
  className: g(ca.column, !c && ca.noScrollbar),
1504
- style: S,
1504
+ style: T,
1505
1505
  children: /* @__PURE__ */ v("div", {
1506
1506
  className: g(ca.inner, a && !s && ca.innerFlexbox),
1507
+ style: { padding: w },
1507
1508
  "data-testid": p,
1508
1509
  children: r
1509
1510
  })
@@ -3461,74 +3462,140 @@ var Cr = /* @__PURE__ */ function(e) {
3461
3462
  button: "_button_1vgw8_18",
3462
3463
  label: "_label_1vgw8_21",
3463
3464
  dot: "_dot_1vgw8_32"
3464
- }, Qs = $n((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ v(W, {
3465
+ }, Qs = ({ enabled: e, value: t, onChange: n }) => {
3466
+ let [r, i] = m(t), a = p(t), o = p(t), s = p(null);
3467
+ c(() => {
3468
+ e && (a.current = t, o.current = t, i(t));
3469
+ }, [e, t]), c(() => () => {
3470
+ s.current !== null && cancelAnimationFrame(s.current);
3471
+ }, []);
3472
+ let l = (e) => {
3473
+ o.current = e, n(e);
3474
+ }, u = () => {
3475
+ let e = a.current;
3476
+ i(e), er(e, o.current) || l(e);
3477
+ };
3478
+ return {
3479
+ value: e ? r : t,
3480
+ onChangeValue: (t) => {
3481
+ if (!e) {
3482
+ n(t);
3483
+ return;
3484
+ }
3485
+ a.current = t, s.current === null && (s.current = requestAnimationFrame(() => {
3486
+ s.current = null, u();
3487
+ }));
3488
+ },
3489
+ flushValue: (t) => {
3490
+ e && (a.current = t, s.current !== null && (cancelAnimationFrame(s.current), s.current = null), u());
3491
+ },
3492
+ getLatestValue: () => a.current
3493
+ };
3494
+ }, $s = $n((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ v(W, {
3465
3495
  text: /* @__PURE__ */ y(_, { children: [
3466
3496
  n,
3467
3497
  n ? ": " : "",
3468
3498
  t == null ? r : t
3469
3499
  ] }),
3470
3500
  children: /* @__PURE__ */ v("div", { className: Zs.dot })
3471
- }), e), {}), er), $s = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", value: i, min: a, max: o, step: c = 1, marks: l = [], showArrows: u = !1, showTooltip: d = !1, tooltipFormatter: f = (e) => e, disabled: p = !1, range: m = !1, small: h = !1, vertical: _ = {
3501
+ }), e), {}), er), ec = (e) => [
3502
+ "ArrowLeft",
3503
+ "ArrowRight",
3504
+ "ArrowUp",
3505
+ "ArrowDown",
3506
+ "Home",
3507
+ "End",
3508
+ "PageUp",
3509
+ "PageDown"
3510
+ ].includes(e), tc = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", value: i, min: a, max: o, step: c = 1, marks: l = [], showArrows: u = !1, showTooltip: d = !1, tooltipFormatter: f = (e) => e, disabled: m = !1, range: h = !1, small: _ = !1, vertical: b = {
3472
3511
  enabled: !1,
3473
3512
  width: "100px",
3474
3513
  height: "400px"
3475
- }, onChange: b, onChangeComplete: x }) => {
3476
- let S = s(H), C = Qs(l), w = (n) => ({ target: {
3514
+ }, onChange: x, onChangeComplete: S, coalesceOnChange: C = !1 }) => {
3515
+ let w = s(H), T = p(null), E = $s(l), D = C && !h, O = (n) => ({ target: {
3477
3516
  name: e == null ? "" : e,
3478
3517
  value: n,
3479
3518
  label: typeof t == "string" ? t : String(t)
3480
- } }), T = (e) => {
3481
- b(w(e));
3482
- }, E = (e) => {
3483
- x == null || x(w(e));
3484
- }, D = () => /* @__PURE__ */ v("div", {
3519
+ } }), k = Qs({
3520
+ enabled: C,
3521
+ value: i,
3522
+ onChange: (e) => {
3523
+ x(O(e));
3524
+ }
3525
+ }), A = (e) => {
3526
+ k.flushValue(e), S == null || S(O(e));
3527
+ }, j = (e) => {
3528
+ let t = k.getLatestValue(), n = Array.isArray(t) ? t[0] : t, r = c || 1;
3529
+ switch (e) {
3530
+ case "ArrowLeft":
3531
+ case "ArrowDown": return Math.max(a, n - r);
3532
+ case "ArrowRight":
3533
+ case "ArrowUp": return Math.min(o, n + r);
3534
+ case "Home": return a;
3535
+ case "End": return o;
3536
+ case "PageUp": return Math.min(o, n + r * 2);
3537
+ case "PageDown": return Math.max(a, n - r * 2);
3538
+ default: return null;
3539
+ }
3540
+ }, M = (e) => {
3541
+ if (!D || m || w || !e.target.closest(".rc-slider") || !ec(e.key)) return;
3542
+ let t = j(e.key);
3543
+ t !== null && (e.preventDefault(), T.current = t, k.onChangeValue(t));
3544
+ }, N = (e) => {
3545
+ if (!D || !ec(e.key)) return;
3546
+ let t = T.current;
3547
+ t !== null && (T.current = null, A(t));
3548
+ }, P = () => /* @__PURE__ */ v("div", {
3485
3549
  className: Zs.button,
3486
3550
  children: /* @__PURE__ */ v(K, {
3487
3551
  basic: !0,
3488
3552
  small: !0,
3489
3553
  round: !0,
3490
3554
  onClick: () => {
3491
- let e = m ? [a, i == null ? void 0 : i[1]] : a;
3492
- T(e), E(e);
3555
+ let e = h ? [a, i == null ? void 0 : i[1]] : a;
3556
+ k.onChangeValue(e), A(e);
3493
3557
  },
3494
- disabled: p || i === a || S,
3558
+ disabled: m || i === a || w,
3495
3559
  icon: V.FAST_BACKWARD
3496
3560
  })
3497
- }), O = () => /* @__PURE__ */ v("div", {
3561
+ }), F = () => /* @__PURE__ */ v("div", {
3498
3562
  className: Zs.button,
3499
3563
  children: /* @__PURE__ */ v(K, {
3500
3564
  basic: !0,
3501
3565
  small: !0,
3502
3566
  round: !0,
3503
3567
  onClick: () => {
3504
- let e = m ? [i == null ? void 0 : i[0], o] : o;
3505
- T(e), E(e);
3568
+ let e = h ? [i == null ? void 0 : i[0], o] : o;
3569
+ k.onChangeValue(e), A(e);
3506
3570
  },
3507
- disabled: p || i === o || S,
3571
+ disabled: m || i === o || w,
3508
3572
  icon: V.FAST_FORWARD
3509
3573
  })
3510
3574
  });
3511
3575
  return /* @__PURE__ */ y("div", {
3512
- className: g(Zs.container, h ? Zs.small : "", _.enabled ? Zs.vertical : ""),
3513
- style: _.enabled ? {
3514
- width: _.width,
3515
- height: _.height
3576
+ className: g(Zs.container, _ ? Zs.small : "", b.enabled ? Zs.vertical : ""),
3577
+ onKeyDown: M,
3578
+ onKeyUp: N,
3579
+ style: b.enabled ? {
3580
+ width: b.width,
3581
+ height: b.height
3516
3582
  } : { width: n },
3517
3583
  children: [
3518
- u && (_.enabled ? /* @__PURE__ */ v(O, {}) : /* @__PURE__ */ v(D, {})),
3584
+ u && (b.enabled ? /* @__PURE__ */ v(F, {}) : /* @__PURE__ */ v(P, {})),
3519
3585
  /* @__PURE__ */ v(Qn, {
3520
- range: m,
3586
+ range: h,
3521
3587
  allowCross: !1,
3522
- className: g((p || S) && Zs.rcSliderDisabled, u && Zs.hasArrows),
3523
- value: i,
3588
+ className: g((m || w) && Zs.rcSliderDisabled, u && Zs.hasArrows),
3589
+ value: k.value,
3524
3590
  max: o,
3525
3591
  min: a,
3526
3592
  step: c,
3527
- marks: C,
3528
- onChange: (e) => T(e),
3529
- onChangeComplete: (e) => E(e),
3530
- disabled: p || S,
3531
- vertical: _.enabled,
3593
+ marks: E,
3594
+ onChange: (e) => k.onChangeValue(e),
3595
+ onChangeComplete: (e) => A(e),
3596
+ keyboard: !D,
3597
+ disabled: m || w,
3598
+ vertical: b.enabled,
3532
3599
  handleRender: (e, t) => /* @__PURE__ */ y("div", {
3533
3600
  style: { position: "relative" },
3534
3601
  children: [e, d && t.dragging && /* @__PURE__ */ v(W, {
@@ -3542,7 +3609,7 @@ var Cr = /* @__PURE__ */ function(e) {
3542
3609
  })]
3543
3610
  })
3544
3611
  }),
3545
- u && (_.enabled ? /* @__PURE__ */ v(D, {}) : /* @__PURE__ */ v(O, {})),
3612
+ u && (b.enabled ? /* @__PURE__ */ v(P, {}) : /* @__PURE__ */ v(F, {})),
3546
3613
  t && /* @__PURE__ */ v("label", {
3547
3614
  className: Zs.label,
3548
3615
  style: { width: r },
@@ -3550,9 +3617,9 @@ var Cr = /* @__PURE__ */ function(e) {
3550
3617
  })
3551
3618
  ]
3552
3619
  });
3553
- }, ec = ({ cell: e }) => /* @__PURE__ */ v("div", {
3620
+ }, nc = ({ cell: e }) => /* @__PURE__ */ v("div", {
3554
3621
  className: X.inputWrapper,
3555
- children: /* @__PURE__ */ v($s, {
3622
+ children: /* @__PURE__ */ v(tc, {
3556
3623
  label: e.label,
3557
3624
  value: e.value,
3558
3625
  min: e.min,
@@ -3565,7 +3632,7 @@ var Cr = /* @__PURE__ */ function(e) {
3565
3632
  tooltipFormatter: e.tooltipFormatter,
3566
3633
  disabled: e.disabled
3567
3634
  })
3568
- }), tc = ({ cell: e }) => {
3635
+ }), rc = ({ cell: e }) => {
3569
3636
  let { tooltip: t, icon: n } = e;
3570
3637
  return /* @__PURE__ */ v("div", {
3571
3638
  className: X.iconCellWrapper,
@@ -3577,7 +3644,7 @@ var Cr = /* @__PURE__ */ function(e) {
3577
3644
  children: /* @__PURE__ */ v(U, { icon: n })
3578
3645
  })
3579
3646
  });
3580
- }, nc = ({ cell: e }) => /* @__PURE__ */ v(Ji, { actions: e.actions }), rc = ({ cell: e }) => {
3647
+ }, ic = ({ cell: e }) => /* @__PURE__ */ v(Ji, { actions: e.actions }), ac = ({ cell: e }) => {
3581
3648
  let { helpIcon: t } = e;
3582
3649
  return t ? /* @__PURE__ */ v("div", {
3583
3650
  className: X.icon,
@@ -3586,7 +3653,7 @@ var Cr = /* @__PURE__ */ function(e) {
3586
3653
  text: t.tooltip
3587
3654
  })
3588
3655
  }) : null;
3589
- }, ic = ({ cell: e }) => {
3656
+ }, oc = ({ cell: e }) => {
3590
3657
  let { libraryIcon: t } = e;
3591
3658
  return t ? /* @__PURE__ */ v("div", {
3592
3659
  className: X.icon,
@@ -3596,7 +3663,7 @@ var Cr = /* @__PURE__ */ function(e) {
3596
3663
  icon: V.LIBRARY
3597
3664
  })
3598
3665
  }) : null;
3599
- }, ac = ({ cell: e }) => {
3666
+ }, sc = ({ cell: e }) => {
3600
3667
  let { hasSort: t, sort: n, sortPriority: r } = e;
3601
3668
  return t ? /* @__PURE__ */ y("span", {
3602
3669
  className: X.sortingCellIcon,
@@ -3611,7 +3678,7 @@ var Cr = /* @__PURE__ */ function(e) {
3611
3678
  children: /* @__PURE__ */ v(U, { icon: V.SORT_DESCENDING })
3612
3679
  }), r && n ? /* @__PURE__ */ v("sup", { children: r }) : null]
3613
3680
  }) : null;
3614
- }, oc = ({ cell: e, isHeader: t, testId: n }) => {
3681
+ }, cc = ({ cell: e, isHeader: t, testId: n }) => {
3615
3682
  let { error: r, warning: i, tooltip: a, maxTooltipWidth: o, hasSort: s, onSort: c, type: l } = e, u = /* @__PURE__ */ y("div", {
3616
3683
  className: g(X.staticCellContent, l === "Unit" ? X.unit : ""),
3617
3684
  onClick: s ? (e) => c && c(e) : () => {},
@@ -3619,9 +3686,9 @@ var Cr = /* @__PURE__ */ function(e) {
3619
3686
  "data-warning": i || null,
3620
3687
  "data-testid": n,
3621
3688
  children: [e.value, t ? /* @__PURE__ */ y(_, { children: [
3622
- /* @__PURE__ */ v(rc, { cell: e }),
3623
- /* @__PURE__ */ v(ic, { cell: e }),
3624
- /* @__PURE__ */ v(ac, { cell: e })
3689
+ /* @__PURE__ */ v(ac, { cell: e }),
3690
+ /* @__PURE__ */ v(oc, { cell: e }),
3691
+ /* @__PURE__ */ v(sc, { cell: e })
3625
3692
  ] }) : null]
3626
3693
  });
3627
3694
  return /* @__PURE__ */ v("div", {
@@ -3636,7 +3703,7 @@ var Cr = /* @__PURE__ */ function(e) {
3636
3703
  children: u
3637
3704
  })
3638
3705
  });
3639
- }, sc = ({ cell: e, testId: t }) => {
3706
+ }, lc = ({ cell: e, testId: t }) => {
3640
3707
  let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
3641
3708
  return /* @__PURE__ */ v(aa, {
3642
3709
  content: n,
@@ -3645,13 +3712,13 @@ var Cr = /* @__PURE__ */ function(e) {
3645
3712
  disabled: a,
3646
3713
  children: /* @__PURE__ */ v("div", {
3647
3714
  className: X.popover,
3648
- children: /* @__PURE__ */ v(oc, {
3715
+ children: /* @__PURE__ */ v(cc, {
3649
3716
  cell: e,
3650
3717
  testId: t
3651
3718
  })
3652
3719
  })
3653
3720
  });
3654
- }, cc = {
3721
+ }, uc = {
3655
3722
  wrapper: "_wrapper_1u1qo_1",
3656
3723
  inline: "_inline_1u1qo_1",
3657
3724
  radio: "_radio_1u1qo_5",
@@ -3662,10 +3729,10 @@ var Cr = /* @__PURE__ */ function(e) {
3662
3729
  disabled: "_disabled_1u1qo_98",
3663
3730
  isInTable: "_isInTable_1u1qo_114",
3664
3731
  helpIconEnabled: "_helpIconEnabled_1u1qo_119"
3665
- }, lc = ({ name: e, label: t, value: n, selected: r, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: u, textTransform: d = Dr.CAPITALIZE }) => {
3732
+ }, dc = ({ name: e, label: t, value: n, selected: r, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: u, textTransform: d = Dr.CAPITALIZE }) => {
3666
3733
  let f = l || u;
3667
3734
  return /* @__PURE__ */ y("div", {
3668
- className: g(cc.radio, i ? cc.disabled : null, a ? cc.small : null, s ? cc.noMargin : null, t ? null : cc.noLabel),
3735
+ className: g(uc.radio, i ? uc.disabled : null, a ? uc.small : null, s ? uc.noMargin : null, t ? null : uc.noLabel),
3669
3736
  onClick: o,
3670
3737
  "data-testid": c,
3671
3738
  children: [
@@ -3683,13 +3750,13 @@ var Cr = /* @__PURE__ */ function(e) {
3683
3750
  children: t
3684
3751
  }),
3685
3752
  f && /* @__PURE__ */ v("div", {
3686
- className: cc.helpIconEnabled,
3753
+ className: uc.helpIconEnabled,
3687
3754
  onClick: u,
3688
3755
  children: /* @__PURE__ */ v(si, { text: l })
3689
3756
  })
3690
3757
  ]
3691
3758
  });
3692
- }, uc = ({ cell: e, testId: t }) => /* @__PURE__ */ v(lc, {
3759
+ }, fc = ({ cell: e, testId: t }) => /* @__PURE__ */ v(dc, {
3693
3760
  selected: e.selected,
3694
3761
  name: e.name,
3695
3762
  value: e.value,
@@ -3697,7 +3764,7 @@ var Cr = /* @__PURE__ */ function(e) {
3697
3764
  disabled: e.disabled,
3698
3765
  onChange: (t) => e.onChange(t),
3699
3766
  testId: t
3700
- }), dc = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3767
+ }), pc = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3701
3768
  if (!e) return null;
3702
3769
  switch (e.type) {
3703
3770
  case "Input":
@@ -3716,23 +3783,23 @@ var Cr = /* @__PURE__ */ function(e) {
3716
3783
  cell: e,
3717
3784
  testId: r
3718
3785
  });
3719
- case "Radio": return /* @__PURE__ */ v(uc, {
3786
+ case "Radio": return /* @__PURE__ */ v(fc, {
3720
3787
  cell: e,
3721
3788
  testId: r
3722
3789
  });
3723
- case "Slider": return /* @__PURE__ */ v(ec, { cell: e });
3724
- case "Icon": return /* @__PURE__ */ v(tc, { cell: e });
3725
- case "Actions": return /* @__PURE__ */ v(nc, { cell: e });
3726
- case "Popover": return /* @__PURE__ */ v(sc, { cell: e });
3727
- default: return /* @__PURE__ */ v(oc, {
3790
+ case "Slider": return /* @__PURE__ */ v(nc, { cell: e });
3791
+ case "Icon": return /* @__PURE__ */ v(rc, { cell: e });
3792
+ case "Actions": return /* @__PURE__ */ v(ic, { cell: e });
3793
+ case "Popover": return /* @__PURE__ */ v(lc, { cell: e });
3794
+ default: return /* @__PURE__ */ v(cc, {
3728
3795
  cell: e,
3729
3796
  isHeader: t,
3730
3797
  testId: r
3731
3798
  });
3732
3799
  }
3733
- }, fc = /* @__PURE__ */ function(e) {
3800
+ }, mc = /* @__PURE__ */ function(e) {
3734
3801
  return e.INPUT = "Input", e.NUMBER_INPUT = "NumberInput", e.SELECT = "Select", e.POPOVER = "Popover", e.SLIDER = "Slider", e.CHECKBOX = "CheckBox", e.RADIO = "Radio", e.ACTIONS = "Actions", e.AUTO_UNIT = "AutoUnit", e.UNIT = "Unit", e.STATIC = "Static", e;
3735
- }({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Tr.LEFT, width: i, testId: a }) => {
3802
+ }({}), hc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Tr.LEFT, width: i, testId: a }) => {
3736
3803
  var o;
3737
3804
  if (!e) return null;
3738
3805
  let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
@@ -3740,7 +3807,7 @@ var Cr = /* @__PURE__ */ function(e) {
3740
3807
  headerAlignment: n,
3741
3808
  textAlign: d,
3742
3809
  isHeader: t
3743
- }, h = Rs(m, X), _ = Rs(m, X, !0), y = e.type === fc.INPUT || e.type === fc.NUMBER_INPUT || e.type === fc.SELECT || e.type === fc.POPOVER ? X.inputCell : e.type === fc.SLIDER ? X.sliderCell : e.type === fc.CHECKBOX || e.type === fc.RADIO ? X.checkBoxCell : e.type === fc.ACTIONS ? X.actionsCell : X.staticCell, b = g(X.cell, y, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), x = (o = u == null ? i : u) == null ? void 0 : o, S = e.type === fc.STATIC || !e.type, C = {
3810
+ }, h = Rs(m, X), _ = Rs(m, X, !0), y = e.type === mc.INPUT || e.type === mc.NUMBER_INPUT || e.type === mc.SELECT || e.type === mc.POPOVER ? X.inputCell : e.type === mc.SLIDER ? X.sliderCell : e.type === mc.CHECKBOX || e.type === mc.RADIO ? X.checkBoxCell : e.type === mc.ACTIONS ? X.actionsCell : X.staticCell, b = g(X.cell, y, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), x = (o = u == null ? i : u) == null ? void 0 : o, S = e.type === mc.STATIC || !e.type, C = {
3744
3811
  width: x,
3745
3812
  minWidth: x,
3746
3813
  textTransform: t && S ? Dr.CAPITALIZE : void 0,
@@ -3752,14 +3819,14 @@ var Cr = /* @__PURE__ */ function(e) {
3752
3819
  style: C,
3753
3820
  colSpan: c,
3754
3821
  rowSpan: l,
3755
- children: /* @__PURE__ */ v(dc, {
3822
+ children: /* @__PURE__ */ v(pc, {
3756
3823
  cell: e,
3757
3824
  columnAlignment: _ == null ? Tr.RIGHT : _,
3758
3825
  isHeader: t,
3759
3826
  testId: a
3760
3827
  })
3761
3828
  });
3762
- }, mc = ({ children: e, dropDisabled: t = !1, height: n, rowIndex: r }) => {
3829
+ }, gc = ({ children: e, dropDisabled: t = !1, height: n, rowIndex: r }) => {
3763
3830
  let { attributes: i, listeners: a, setNodeRef: o, transform: s, transition: c, isDragging: l } = Yn({
3764
3831
  id: r.toString(),
3765
3832
  animateLayoutChanges: () => !1
@@ -3775,7 +3842,7 @@ var Cr = /* @__PURE__ */ function(e) {
3775
3842
  opacity: l ? 0 : void 0
3776
3843
  }
3777
3844
  });
3778
- }, hc = ({ attributes: e = {}, dropDisabled: t = !1, listeners: n, noDrag: r = !1 }) => r ? /* @__PURE__ */ v("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ v("td", {
3845
+ }, _c = ({ attributes: e = {}, dropDisabled: t = !1, listeners: n, noDrag: r = !1 }) => r ? /* @__PURE__ */ v("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ v("td", {
3779
3846
  className: Is.dragIconCell,
3780
3847
  children: /* @__PURE__ */ v("div", {
3781
3848
  className: g(Is.dragIcon, t ? Is.dragIconDisabled : ""),
@@ -3783,7 +3850,7 @@ var Cr = /* @__PURE__ */ function(e) {
3783
3850
  ...n,
3784
3851
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
3785
3852
  })
3786
- }), gc = ({ attributes: e = {}, cells: t, colSpan: n, draggableTable: r, dropDisabled: i = !1, expandedContent: a, height: o, isHeader: s, listeners: c, row: l, rowActions: u, rowIndex: d, setNodeRef: f, style: p = { height: o }, testId: m }) => {
3853
+ }), vc = ({ attributes: e = {}, cells: t, colSpan: n, draggableTable: r, dropDisabled: i = !1, expandedContent: a, height: o, isHeader: s, listeners: c, row: l, rowActions: u, rowIndex: d, setNodeRef: f, style: p = { height: o }, testId: m }) => {
3787
3854
  let { onRowClick: h, onRowFocus: b, onRowMouseEnter: x, onRowMouseLeave: S, error: C, warning: w, active: T } = l;
3788
3855
  return /* @__PURE__ */ y(_, { children: [s ? /* @__PURE__ */ y("tr", {
3789
3856
  onClick: h,
@@ -3812,7 +3879,7 @@ var Cr = /* @__PURE__ */ function(e) {
3812
3879
  "data-testid": m,
3813
3880
  style: p,
3814
3881
  children: [
3815
- r ? /* @__PURE__ */ v(hc, {
3882
+ r ? /* @__PURE__ */ v(_c, {
3816
3883
  attributes: e,
3817
3884
  dropDisabled: i,
3818
3885
  listeners: c,
@@ -3826,10 +3893,10 @@ var Cr = /* @__PURE__ */ function(e) {
3826
3893
  flush: a.flush === !0,
3827
3894
  children: a.content
3828
3895
  }, `${d}_expanded_content`) : null] });
3829
- }, _c = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
3896
+ }, yc = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
3830
3897
  let p = zs(a, n, t), { expandedContent: m } = e, h = e.cells.map((e, r) => {
3831
3898
  let i = `${+!n}_${t}_${r}`;
3832
- return /* @__PURE__ */ v(pc, {
3899
+ return /* @__PURE__ */ v(hc, {
3833
3900
  cell: e,
3834
3901
  isHeader: n,
3835
3902
  columnAlignment: o[r],
@@ -3837,14 +3904,14 @@ var Cr = /* @__PURE__ */ function(e) {
3837
3904
  width: l ? l[r] : void 0,
3838
3905
  testId: e.testId
3839
3906
  }, i);
3840
- }), g = s && /* @__PURE__ */ v(pc, {
3907
+ }), g = s && /* @__PURE__ */ v(hc, {
3841
3908
  cell: {
3842
- type: fc.ACTIONS,
3909
+ type: mc.ACTIONS,
3843
3910
  actions: e.actions
3844
3911
  },
3845
3912
  isHeader: n
3846
3913
  }, r);
3847
- return n ? /* @__PURE__ */ v(gc, {
3914
+ return n ? /* @__PURE__ */ v(vc, {
3848
3915
  cells: h,
3849
3916
  colSpan: i,
3850
3917
  draggableTable: c,
@@ -3854,11 +3921,11 @@ var Cr = /* @__PURE__ */ function(e) {
3854
3921
  rowActions: g,
3855
3922
  rowIndex: t,
3856
3923
  testId: f
3857
- }) : c && !e.noDrag ? /* @__PURE__ */ v(mc, {
3924
+ }) : c && !e.noDrag ? /* @__PURE__ */ v(gc, {
3858
3925
  dropDisabled: u,
3859
3926
  height: d,
3860
3927
  rowIndex: t,
3861
- children: ({ attributes: n, listeners: r, setNodeRef: a, style: o }) => /* @__PURE__ */ v(gc, {
3928
+ children: ({ attributes: n, listeners: r, setNodeRef: a, style: o }) => /* @__PURE__ */ v(vc, {
3862
3929
  attributes: n,
3863
3930
  cells: h,
3864
3931
  colSpan: i,
@@ -3875,7 +3942,7 @@ var Cr = /* @__PURE__ */ function(e) {
3875
3942
  style: o,
3876
3943
  testId: f
3877
3944
  })
3878
- }) : /* @__PURE__ */ v(gc, {
3945
+ }) : /* @__PURE__ */ v(vc, {
3879
3946
  cells: h,
3880
3947
  colSpan: i,
3881
3948
  draggableTable: c,
@@ -3887,7 +3954,7 @@ var Cr = /* @__PURE__ */ function(e) {
3887
3954
  rowIndex: t,
3888
3955
  testId: f
3889
3956
  });
3890
- }, vc = (e) => {
3957
+ }, bc = (e) => {
3891
3958
  let { children: t, colSpan: n, columnAlignment: r, columnCount: i, draggable: a, onListReorder: o = () => {}, canListReorder: s = () => !0, rowActions: c, rows: l = [], tbodyRef: u } = e, [f, p] = m(null), [h, _] = m(!1), b = d(() => l.map((e, t) => t.toString()), [l]);
3892
3959
  return a ? /* @__PURE__ */ y(tr, {
3893
3960
  collisionDetection: rr,
@@ -3922,7 +3989,7 @@ var Cr = /* @__PURE__ */ function(e) {
3922
3989
  dropAnimation: null,
3923
3990
  children: /* @__PURE__ */ v("table", {
3924
3991
  className: g(mo.table, mo.dragOverlay),
3925
- children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ v(_c, {
3992
+ children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ v(yc, {
3926
3993
  rowIndex: Number(f),
3927
3994
  row: l[Number(f)],
3928
3995
  columnCount: i,
@@ -3942,7 +4009,7 @@ var Cr = /* @__PURE__ */ function(e) {
3942
4009
  })
3943
4010
  }), document.body)]
3944
4011
  }) : t({});
3945
- }, yc = ({ table: e, children: t }) => {
4012
+ }, xc = ({ table: e, children: t }) => {
3946
4013
  var n, r, i, a;
3947
4014
  let o = p(null), s = ir({
3948
4015
  count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
@@ -3965,7 +4032,7 @@ var Cr = /* @__PURE__ */ function(e) {
3965
4032
  })()
3966
4033
  })
3967
4034
  });
3968
- }, bc = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (c(() => {
4035
+ }, Sc = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (c(() => {
3969
4036
  if (t && !(e == null || e < 0)) {
3970
4037
  if (n && r) r.scrollToIndex(e, {
3971
4038
  behavior: "auto",
@@ -3984,11 +4051,11 @@ var Cr = /* @__PURE__ */ function(e) {
3984
4051
  t,
3985
4052
  n,
3986
4053
  r
3987
- ]), null), xc = ({ table: e, children: t }) => {
4054
+ ]), null), Cc = ({ table: e, children: t }) => {
3988
4055
  let { infiniteScroll: n = !1, triggerScrollToActiveRow: r = !1, rows: i } = e, a = d(() => typeof e.activeRowIndex == "number" ? e.activeRowIndex : Array.isArray(i) && i.length ? i.findIndex((e) => e && e.active) : -1, [i, e.activeRowIndex]);
3989
- return n ? /* @__PURE__ */ v(yc, {
4056
+ return n ? /* @__PURE__ */ v(xc, {
3990
4057
  table: e,
3991
- children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(bc, {
4058
+ children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Sc, {
3992
4059
  isVirtualized: !0,
3993
4060
  virtualizer: e,
3994
4061
  activeIndex: a,
@@ -4000,13 +4067,13 @@ var Cr = /* @__PURE__ */ function(e) {
4000
4067
  }) : /* @__PURE__ */ y("div", {
4001
4068
  id: "scrollWrapper",
4002
4069
  className: mo.scroll,
4003
- children: [/* @__PURE__ */ v(bc, {
4070
+ children: [/* @__PURE__ */ v(Sc, {
4004
4071
  isVirtualized: !1,
4005
4072
  activeIndex: a,
4006
4073
  triggerScrollToActiveRow: r
4007
4074
  }), t({})]
4008
4075
  });
4009
- }, Sc = (e) => {
4076
+ }, wc = (e) => {
4010
4077
  var t, n, r, i, a;
4011
4078
  let { onListReorder: o = () => {}, canListReorder: s = () => !0, beforeRenderRow: c, table: l } = e, { columnWidths: u, footer: d, name: f, rows: m = [], actions: h, actionsRight: _, columnHeaderAlignments: b, columnAlignment: x, striped: S = !0, testId: C, draggable: w, defaultEmptyRow: T = null, onAddRow: E = null, bordered: D = !0, maxHeight: O, fixedWidth: k } = l, A = p(null), j = en(e, "table.headers", []), M = Ns(m, j), N = Fs(m, j), P = M + +!!N, F = d ? (d == null || (t = d.pagination) == null || (t = t.rowsPerPage) == null ? void 0 : t.value) === 0 || Number(d == null || (n = d.pagination) == null ? void 0 : n.selectedPage) >= Number(d == null || (r = d.pagination) == null ? void 0 : r.rowCount) / Number(d == null || (i = d.pagination) == null || (i = i.rowsPerPage) == null ? void 0 : i.value) : !0, I = (T == null || (a = T.cells) == null ? void 0 : a.length) && E && F, ee = {
4012
4079
  cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
@@ -4045,7 +4112,7 @@ var Cr = /* @__PURE__ */ function(e) {
4045
4112
  name: f,
4046
4113
  testId: C && `${C}-title`
4047
4114
  }),
4048
- /* @__PURE__ */ v(vc, {
4115
+ /* @__PURE__ */ v(bc, {
4049
4116
  colSpan: P,
4050
4117
  columnAlignment: x,
4051
4118
  columnCount: M,
@@ -4055,13 +4122,13 @@ var Cr = /* @__PURE__ */ function(e) {
4055
4122
  rows: L,
4056
4123
  tbodyRef: A,
4057
4124
  canListReorder: s,
4058
- children: ({ dropDisabled: e }) => /* @__PURE__ */ v(xc, {
4125
+ children: ({ dropDisabled: e }) => /* @__PURE__ */ v(Cc, {
4059
4126
  table: te,
4060
4127
  children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ y("table", {
4061
4128
  className: g(mo.table, S ? mo.striped : ""),
4062
4129
  "data-testid": C,
4063
4130
  style: n,
4064
- children: [/* @__PURE__ */ v("thead", { children: j.map((e, t) => /* @__PURE__ */ v(_c, {
4131
+ children: [/* @__PURE__ */ v("thead", { children: j.map((e, t) => /* @__PURE__ */ v(yc, {
4065
4132
  rowIndex: t,
4066
4133
  isHeader: !0,
4067
4134
  row: e,
@@ -4076,7 +4143,7 @@ var Cr = /* @__PURE__ */ function(e) {
4076
4143
  ref: A,
4077
4144
  children: t ? t.getVirtualItems().map((t) => {
4078
4145
  let n = t.index, r = L[n];
4079
- return /* @__PURE__ */ v(_c, {
4146
+ return /* @__PURE__ */ v(yc, {
4080
4147
  rowIndex: n,
4081
4148
  row: c ? c({
4082
4149
  row: r,
@@ -4091,7 +4158,7 @@ var Cr = /* @__PURE__ */ function(e) {
4091
4158
  height: t.size,
4092
4159
  dropDisabled: e
4093
4160
  }, `1_${n}`);
4094
- }) : L.map((t, n) => /* @__PURE__ */ v(_c, {
4161
+ }) : L.map((t, n) => /* @__PURE__ */ v(yc, {
4095
4162
  rowIndex: n,
4096
4163
  row: c ? c({
4097
4164
  row: t,
@@ -4116,14 +4183,14 @@ var Cr = /* @__PURE__ */ function(e) {
4116
4183
  })
4117
4184
  ]
4118
4185
  });
4119
- }, Cc = "blank", wc = 1e4, Tc = (e, t, n, r) => {
4186
+ }, Tc = "blank", Ec = 1e4, Dc = (e, t, n, r) => {
4120
4187
  let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
4121
4188
  return {
4122
4189
  updatedErrors: o,
4123
4190
  isValid: o.length === 0
4124
4191
  };
4125
- }, Ec = 20, Dc = 1, Oc = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4126
- let i = d(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, s] = m(Ec), [l, u] = m(Dc), f = p([]), h = (l - 1) * a, g = a === 0 ? t.rows.length : h + a, [_, y] = m([]), b = d(() => {
4192
+ }, Oc = 20, kc = 1, Ac = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4193
+ let i = d(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, s] = m(Oc), [l, u] = m(kc), f = p([]), h = (l - 1) * a, g = a === 0 ? t.rows.length : h + a, [_, y] = m([]), b = d(() => {
4127
4194
  let n = e.filter((e) => !e.optionalColumn);
4128
4195
  return t.fields.length === n.length ? n : e;
4129
4196
  }, [e, t.fields.length]), x = o((e, r) => (!f.current.length && t.rows.length && (f.current = t.rows[0].map((e) => ms(e) ? "NumberInput" : "Input")), {
@@ -4137,7 +4204,7 @@ var Cr = /* @__PURE__ */ function(e) {
4137
4204
  disableValidationOnFocus: !0,
4138
4205
  error: v,
4139
4206
  validationCallback: (e, i) => {
4140
- let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Tc(t.errors, a, e, i);
4207
+ let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Dc(t.errors, a, e, i);
4141
4208
  n({ parsedResult: {
4142
4209
  ...t,
4143
4210
  errors: o,
@@ -4146,7 +4213,7 @@ var Cr = /* @__PURE__ */ function(e) {
4146
4213
  },
4147
4214
  onChange: (e) => {
4148
4215
  var i;
4149
- let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = Tc(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
4216
+ let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = Dc(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
4150
4217
  n({ parsedResult: {
4151
4218
  ...t,
4152
4219
  rows: d,
@@ -4188,7 +4255,7 @@ var Cr = /* @__PURE__ */ function(e) {
4188
4255
  ]);
4189
4256
  let S = d(() => t.fields.map((e, r) => {
4190
4257
  var a, o, s;
4191
- let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => hn(e) === Cc);
4258
+ let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => hn(e) === Tc);
4192
4259
  if (!l.length || u) return {};
4193
4260
  let d = t == null || (a = t.units) == null ? void 0 : a[r], f = hn(d), p = l != null && l.some((e) => hn(e) === f) ? d : (o = c == null ? void 0 : c.defaultUnit) == null ? "" : o;
4194
4261
  return {
@@ -4226,7 +4293,7 @@ var Cr = /* @__PURE__ */ function(e) {
4226
4293
  h,
4227
4294
  g
4228
4295
  ]);
4229
- return /* @__PURE__ */ v(Sc, {
4296
+ return /* @__PURE__ */ v(wc, {
4230
4297
  beforeRenderRow: o(({ rowIndex: e }) => {
4231
4298
  let n = h + e, r = t.rows[n];
4232
4299
  return r ? x(r, n) : {
@@ -4299,7 +4366,7 @@ var Cr = /* @__PURE__ */ function(e) {
4299
4366
  } }
4300
4367
  }
4301
4368
  });
4302
- }, kc = { listStyle: "_listStyle_yjfjw_1" }, Ac = ({ errors: e, t }) => {
4369
+ }, jc = { listStyle: "_listStyle_yjfjw_1" }, Mc = ({ errors: e, t }) => {
4303
4370
  var n;
4304
4371
  let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
4305
4372
  let n = (e) => {
@@ -4315,18 +4382,18 @@ var Cr = /* @__PURE__ */ function(e) {
4315
4382
  content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
4316
4383
  type: "Error",
4317
4384
  details: /* @__PURE__ */ v("ul", {
4318
- className: kc.listStyle,
4385
+ className: jc.listStyle,
4319
4386
  children: r.map((e, t) => /* @__PURE__ */ v("li", { children: e }, t))
4320
4387
  })
4321
4388
  };
4322
- }, jc = ({ errors: e, t }) => e.length ? /* @__PURE__ */ v(po, { message: Ac({
4389
+ }, Nc = ({ errors: e, t }) => e.length ? /* @__PURE__ */ v(po, { message: Mc({
4323
4390
  errors: e,
4324
4391
  t
4325
- }) }) : null, Mc = {
4392
+ }) }) : null, Pc = {
4326
4393
  empty: "_empty_fe425_1",
4327
4394
  text: "_text_fe425_11"
4328
- }, Nc = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ y("div", {
4329
- className: Mc.empty,
4395
+ }, Fc = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ y("div", {
4396
+ className: Pc.empty,
4330
4397
  style: {
4331
4398
  width: e,
4332
4399
  height: t
@@ -4362,7 +4429,7 @@ var Cr = /* @__PURE__ */ function(e) {
4362
4429
  })
4363
4430
  }),
4364
4431
  n !== "" && /* @__PURE__ */ v("div", {
4365
- className: Mc.text,
4432
+ className: Pc.text,
4366
4433
  children: /* @__PURE__ */ v(ha, {
4367
4434
  faint: !0,
4368
4435
  children: n
@@ -4370,52 +4437,52 @@ var Cr = /* @__PURE__ */ function(e) {
4370
4437
  }),
4371
4438
  r
4372
4439
  ]
4373
- }), Pc = (e) => {
4440
+ }), Ic = (e) => {
4374
4441
  var t;
4375
4442
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4376
4443
  let t = e == null ? void 0 : e.match(/[.,]/g);
4377
4444
  return t && t.length > 1;
4378
4445
  });
4379
- }, Fc = (e) => {
4446
+ }, Lc = (e) => {
4380
4447
  var t;
4381
4448
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4382
4449
  var t;
4383
4450
  return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
4384
4451
  });
4385
- }, Ic = (e, t, n) => e >= t - n, Lc = (e) => !!e && e !== "blank" && e.trim() !== "", Rc = (e, t, n, r, i, a, o) => {
4452
+ }, Rc = (e, t, n) => e >= t - n, zc = (e) => !!e && e !== "blank" && e.trim() !== "", Bc = (e, t, n, r, i, a, o) => {
4386
4453
  let s = [], c = r.filter((e) => e.optionalColumn).length, l = r.length, u = c ? `${l - c} or ${l}` : `${l}`, d = i && a ? 2 : i || a ? 1 : 0;
4387
- if (i && !Ic(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4454
+ if (i && !Rc(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4388
4455
  var f, p;
4389
4456
  let e = r.filter((e) => {
4390
4457
  var t;
4391
- return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(Lc));
4458
+ return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(zc));
4392
4459
  }).length;
4393
- Ic(t == null || (f = t.filter(Lc)) == null ? void 0 : f.length, e, r == null || (p = r.filter((e) => (e == null ? void 0 : e.optionalColumn) || !Array.isArray(e == null ? void 0 : e.validUnits) || e.validUnits.includes("blank"))) == null ? void 0 : p.length) || s.push(o("incorrectNumberOfUnitHeaderColumns", { expectedLengthMessage: u }));
4460
+ Rc(t == null || (f = t.filter(zc)) == null ? void 0 : f.length, e, r == null || (p = r.filter((e) => (e == null ? void 0 : e.optionalColumn) || !Array.isArray(e == null ? void 0 : e.validUnits) || e.validUnits.includes("blank"))) == null ? void 0 : p.length) || s.push(o("incorrectNumberOfUnitHeaderColumns", { expectedLengthMessage: u }));
4394
4461
  }
4395
4462
  return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
4396
4463
  expectedLengthMessage: u,
4397
4464
  dataRowStartIndex: d
4398
4465
  })) : n.forEach((e, t) => {
4399
- Ic(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4466
+ Rc(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4400
4467
  expectedLengthMessage: u,
4401
4468
  dataRowStartIndex: d + t
4402
4469
  }));
4403
4470
  }), s;
4404
- }, zc = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Bc = ({ value: e, defaultAllowedValues: t }) => {
4471
+ }, Vc = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Hc = ({ value: e, defaultAllowedValues: t }) => {
4405
4472
  var n;
4406
- let r = zc(e);
4407
- return (n = t == null ? void 0 : t.some((e) => zc(e).includes(r) || r.includes(zc(e)))) == null ? !1 : n;
4408
- }, Vc = ({ value: e, defaultAllowedValues: t }) => {
4473
+ let r = Vc(e);
4474
+ return (n = t == null ? void 0 : t.some((e) => Vc(e).includes(r) || r.includes(Vc(e)))) == null ? !1 : n;
4475
+ }, Uc = ({ value: e, defaultAllowedValues: t }) => {
4409
4476
  var n;
4410
4477
  return (n = t == null ? void 0 : t.includes(e)) == null ? !1 : n;
4411
- }, Hc = (e, t, n, r, i, a) => {
4478
+ }, Wc = (e, t, n, r, i, a) => {
4412
4479
  let o = [];
4413
4480
  if (r) {
4414
4481
  let r = n.map((e) => e.fieldName).filter(Boolean);
4415
4482
  e.forEach((i, s) => {
4416
4483
  var c, l;
4417
4484
  let u = n[s];
4418
- if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Bc : c)({
4485
+ if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Hc : c)({
4419
4486
  value: i,
4420
4487
  defaultAllowedValues: r,
4421
4488
  columnIndex: s,
@@ -4437,7 +4504,7 @@ var Cr = /* @__PURE__ */ function(e) {
4437
4504
  var l, u;
4438
4505
  let d = n[c];
4439
4506
  if (!d || d != null && d.optionalColumn) return;
4440
- let f = (l = d.unitsValidator) == null ? Vc : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4507
+ let f = (l = d.unitsValidator) == null ? Uc : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4441
4508
  f({
4442
4509
  value: r,
4443
4510
  defaultAllowedValues: p,
@@ -4453,7 +4520,7 @@ var Cr = /* @__PURE__ */ function(e) {
4453
4520
  });
4454
4521
  }
4455
4522
  return o;
4456
- }, Uc = (e, t, n) => {
4523
+ }, Gc = (e, t, n) => {
4457
4524
  let r = [];
4458
4525
  return e.forEach((e, i) => {
4459
4526
  e.forEach((e, a) => {
@@ -4466,91 +4533,91 @@ var Cr = /* @__PURE__ */ function(e) {
4466
4533
  })}`);
4467
4534
  });
4468
4535
  }), r;
4469
- }, Wc = (e, t, n, r, i, a, o) => {
4470
- let s = Rc(e, t, n, r, i, a, o);
4471
- return s.length === 0 && (s = s.concat(Hc(e, t, r, i, a, o), Uc(n, r, o))), {
4536
+ }, Kc = (e, t, n, r, i, a, o) => {
4537
+ let s = Bc(e, t, n, r, i, a, o);
4538
+ return s.length === 0 && (s = s.concat(Wc(e, t, r, i, a, o), Gc(n, r, o))), {
4472
4539
  isValid: s.length === 0,
4473
4540
  errors: s
4474
4541
  };
4475
- }, Gc = (e, t, n) => {
4542
+ }, qc = (e, t, n) => {
4476
4543
  var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
4477
4544
  let _ = (e) => e.replace(/,/g, "."), v = (r = (i = e[0]) == null ? void 0 : i.some((e) => isNaN(Number(_(e))))) == null ? !1 : r, y = (a = (o = e[1]) == null ? void 0 : o.some((e) => isNaN(Number(_(e))))) == null ? !1 : a, b = (s = (c = e[0]) == null ? void 0 : c.some((e) => t.includes(e))) == null ? !1 : s, x = (l = (u = e[0]) == null ? void 0 : u.some((e) => n.includes(e))) == null ? !1 : l, S = (d = (f = e[1]) == null ? void 0 : f.some((e) => n.includes(e))) == null ? !1 : d, C = (p = (m = e[0]) == null ? void 0 : m.some((e) => !isNaN(Number(_(e))))) == null ? !1 : p, w = (h = (g = e[1]) == null ? void 0 : g.some((e) => !isNaN(Number(_(e))))) == null ? !1 : h;
4478
4545
  return {
4479
4546
  hasFieldNameHeader: b || v && !x && !C || v && y && !C,
4480
4547
  hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
4481
4548
  };
4482
- }, Kc = (e, { validationRules: t }) => {
4549
+ }, Jc = (e, { validationRules: t }) => {
4483
4550
  var n, r, i;
4484
4551
  let a = (t == null ? void 0 : t.length) === ((n = e == null || (r = e[0]) == null ? void 0 : r.length) == null ? 0 : n) ? t : t == null ? void 0 : t.filter((e) => !(e != null && e.optionalColumn)), o = a == null ? void 0 : a.map((e) => e == null ? void 0 : e.fieldName), s = (e) => Array.isArray(e) && e.length ? e[0] : "", c = a == null ? void 0 : a.map((e) => {
4485
4552
  var t;
4486
4553
  return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
4487
- }), { hasFieldNameHeader: l, hasUnitHeader: u } = Gc(e, o, a == null || (i = a.map((e) => e == null ? void 0 : e.validUnits)) == null || (i = i.filter((e) => !!e)) == null ? void 0 : i.flat());
4554
+ }), { hasFieldNameHeader: l, hasUnitHeader: u } = qc(e, o, a == null || (i = a.map((e) => e == null ? void 0 : e.validUnits)) == null || (i = i.filter((e) => !!e)) == null ? void 0 : i.flat());
4488
4555
  return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
4489
4556
  hasFieldNameHeader: l,
4490
4557
  hasUnitHeader: u
4491
4558
  };
4492
- }, qc = (e) => Math.round(e * 100) / 100, Jc = (e) => e.join(", ").replace(/,\s*$/, ""), Yc = {
4559
+ }, Yc = (e) => Math.round(e * 100) / 100, Xc = (e) => e.join(", ").replace(/,\s*$/, ""), Zc = {
4493
4560
  skipEmptyLines: !0,
4494
4561
  delimiter: (e) => {
4495
4562
  var t, n;
4496
4563
  let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
4497
4564
  return i === 0 && a === 0 ? "," : i > a ? " " : ";";
4498
4565
  }
4499
- }, Xc = [
4566
+ }, Qc = [
4500
4567
  "text/csv",
4501
4568
  "text/plain",
4502
4569
  "application/json",
4503
4570
  "application/vnd.ms-excel"
4504
- ], Zc = (e) => Xc.includes(e.type), Qc = (e) => e instanceof File, $c = (e) => e.trim().startsWith("["), el = (e) => {
4571
+ ], $c = (e) => Qc.includes(e.type), el = (e) => e instanceof File, tl = (e) => e.trim().startsWith("["), nl = (e) => {
4505
4572
  try {
4506
4573
  var t;
4507
4574
  return !!((t = JSON.parse(e)) != null && t.path);
4508
4575
  } catch {
4509
4576
  return !1;
4510
4577
  }
4511
- }, tl = (e) => new Promise((t, n) => {
4578
+ }, rl = (e) => new Promise((t, n) => {
4512
4579
  let r = new FileReader();
4513
4580
  r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
4514
- }), nl = async (e, t, n) => {
4581
+ }), il = async (e, t, n) => {
4515
4582
  try {
4516
- return ll({
4583
+ return dl({
4517
4584
  data: JSON.parse(e),
4518
4585
  errors: []
4519
4586
  }, t, n);
4520
4587
  } catch (e) {
4521
4588
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4522
4589
  }
4523
- }, rl = async (e, t, n) => {
4590
+ }, al = async (e, t, n) => {
4524
4591
  try {
4525
4592
  let r = JSON.parse(e).path.map((e) => [
4526
- qc(e.md),
4527
- qc(e.inclination),
4528
- qc(e.gridAzimuth)
4593
+ Yc(e.md),
4594
+ Yc(e.inclination),
4595
+ Yc(e.gridAzimuth)
4529
4596
  ]);
4530
4597
  return r.unshift([
4531
4598
  "m",
4532
4599
  "deg",
4533
4600
  "deg"
4534
- ]), ll({
4601
+ ]), dl({
4535
4602
  data: r,
4536
4603
  errors: []
4537
4604
  }, t, n);
4538
4605
  } catch (e) {
4539
4606
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4540
4607
  }
4541
- }, il = (e) => e.replace(",", "."), al = (e) => e.map((e) => e.map((e) => il(e))), ol = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4608
+ }, ol = (e) => e.replace(",", "."), sl = (e) => e.map((e) => e.map((e) => ol(e))), cl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4542
4609
  or.parse(e, {
4543
- ...Yc,
4610
+ ...Zc,
4544
4611
  preview: t,
4545
4612
  complete: (e) => {
4546
- let a = ll(e, {
4613
+ let a = dl(e, {
4547
4614
  importLimit: t,
4548
4615
  ...n
4549
4616
  }, r);
4550
- a.rows = al(a.rows), i(a);
4617
+ a.rows = sl(a.rows), i(a);
4551
4618
  }
4552
4619
  });
4553
- }), sl = async (e, t, n) => {
4620
+ }), ll = async (e, t, n) => {
4554
4621
  let r = {
4555
4622
  isValid: !1,
4556
4623
  fields: [],
@@ -4559,13 +4626,13 @@ var Cr = /* @__PURE__ */ function(e) {
4559
4626
  errors: []
4560
4627
  };
4561
4628
  try {
4562
- if (Qc(e) && !Zc(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Jc(Array.from(Xc))}`), r;
4563
- let i = Qc(e) ? await tl(e) : e;
4564
- return $c(i) ? await nl(i, t, n) : el(i) ? await rl(i, t, n) : await ol(e, t, n);
4629
+ if (el(e) && !$c(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Xc(Array.from(Qc))}`), r;
4630
+ let i = el(e) ? await rl(e) : e;
4631
+ return tl(i) ? await il(i, t, n) : nl(i) ? await al(i, t, n) : await cl(e, t, n);
4565
4632
  } catch (e) {
4566
4633
  return r.errors.push(e.message), r;
4567
4634
  }
4568
- }, cl = (e, t, n, r) => {
4635
+ }, ul = (e, t, n, r) => {
4569
4636
  var i;
4570
4637
  let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
4571
4638
  e,
@@ -4577,7 +4644,7 @@ var Cr = /* @__PURE__ */ function(e) {
4577
4644
  header: !0,
4578
4645
  delimiter: a
4579
4646
  });
4580
- }, ll = (e, t, n) => {
4647
+ }, dl = (e, t, n) => {
4581
4648
  let { data: r, errors: i } = e, a = {
4582
4649
  isValid: !1,
4583
4650
  fields: [],
@@ -4586,15 +4653,15 @@ var Cr = /* @__PURE__ */ function(e) {
4586
4653
  errors: i.map((e) => e.message)
4587
4654
  };
4588
4655
  if (i.length > 0) return a;
4589
- let { hasFieldNameHeader: o, hasUnitHeader: s } = Kc(r, t);
4656
+ let { hasFieldNameHeader: o, hasUnitHeader: s } = Jc(r, t);
4590
4657
  a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
4591
4658
  let { validationRules: c } = t;
4592
4659
  if (c.length) {
4593
- let { isValid: e, errors: t } = Wc(a.fields, a.units, a.rows, c, o, s, n);
4660
+ let { isValid: e, errors: t } = Kc(a.fields, a.units, a.rows, c, o, s, n);
4594
4661
  a.errors.push(...t), a.isValid = e && t.length === 0;
4595
4662
  } else a.isValid = a.errors.length === 0;
4596
4663
  return a;
4597
- }, ul = ({ id: e, message: t = {
4664
+ }, fl = ({ id: e, message: t = {
4598
4665
  type: oo.INFO,
4599
4666
  content: ""
4600
4667
  }, autoClose: n = 6e3, onClose: r }) => {
@@ -4635,22 +4702,22 @@ var Cr = /* @__PURE__ */ function(e) {
4635
4702
  transition: sr,
4636
4703
  type: s
4637
4704
  });
4638
- }, dl = (e) => {
4705
+ }, pl = (e) => {
4639
4706
  lr.dismiss(e);
4640
- }, fl = (e, t) => {
4707
+ }, ml = (e, t) => {
4641
4708
  t(() => {
4642
- ul({ ...e });
4709
+ fl({ ...e });
4643
4710
  });
4644
- }, pl = {
4711
+ }, hl = {
4645
4712
  toggle: "_toggle_18fme_9",
4646
4713
  small: "_small_18fme_25",
4647
4714
  disabled: "_disabled_18fme_105",
4648
4715
  noMargin: "_noMargin_18fme_113",
4649
4716
  helpIconEnabled: "_helpIconEnabled_18fme_116"
4650
- }, ml = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: c = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = Dr.CAPITALIZE }) => {
4717
+ }, gl = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: c = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = Dr.CAPITALIZE }) => {
4651
4718
  let p = s(H), m = u || d, h = r || p;
4652
4719
  return /* @__PURE__ */ y("div", {
4653
- className: g(pl.toggle, h ? pl.disabled : null, a ? pl.small : null, c ? pl.noMargin : null),
4720
+ className: g(hl.toggle, h ? hl.disabled : null, a ? hl.small : null, c ? hl.noMargin : null),
4654
4721
  style: { display: i },
4655
4722
  onClick: (t) => {
4656
4723
  h || (t.target.name = e, t.target.checked = !n, t.target.value = !n, o(t));
@@ -4670,13 +4737,13 @@ var Cr = /* @__PURE__ */ function(e) {
4670
4737
  children: t
4671
4738
  }),
4672
4739
  m && /* @__PURE__ */ v("div", {
4673
- className: pl.helpIconEnabled,
4740
+ className: hl.helpIconEnabled,
4674
4741
  onClick: d,
4675
4742
  children: /* @__PURE__ */ v(si, { text: u })
4676
4743
  })
4677
4744
  ]
4678
4745
  });
4679
- }, hl = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: s = [], onCompleteImport: c = () => {}, prevalidationConfig: l, t: u, loading: d, startTransition: f, testId: h }) => {
4746
+ }, _l = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: s = [], onCompleteImport: c = () => {}, prevalidationConfig: l, t: u, loading: d, startTransition: f, testId: h }) => {
4680
4747
  let { modalVisibility: { reviewPasteModal: g, pasteModalHelpVisible: b, helpModal: x } } = t, { warningMessage: S, actionButtonLabel: C, changeRulesAction: w, checkPrevalidationNeed: T } = l == null ? {} : l, E = p(null), [D, O] = m(!1), [k, A] = m({
4681
4748
  pastedText: "",
4682
4749
  parsedResult: {
@@ -4699,8 +4766,8 @@ var Cr = /* @__PURE__ */ function(e) {
4699
4766
  var n, r, i;
4700
4767
  let t = ar(I == null || (n = I.rows) == null ? void 0 : n.map(([e, t]) => [Number(e), Number(t)]), .001).map(([e, t]) => [e.toString(), t.toString()]), a = {
4701
4768
  validationRules: s,
4702
- importLimit: (r = e.importLimit) == null ? wc : r
4703
- }, o = cl(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
4769
+ importLimit: (r = e.importLimit) == null ? Ec : r
4770
+ }, o = ul(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
4704
4771
  f(() => A({
4705
4772
  parsedResult: {
4706
4773
  ...I,
@@ -4730,17 +4797,17 @@ var Cr = /* @__PURE__ */ function(e) {
4730
4797
  }, N = () => {
4731
4798
  r("helpModal", !x);
4732
4799
  }, P = () => {
4733
- n(k), c(k.parsedResult), i(), fl({ message: {
4800
+ n(k), c(k.parsedResult), i(), ml({ message: {
4734
4801
  type: "Success",
4735
4802
  content: u("pasteSuccessful")
4736
4803
  } }, f);
4737
- }, { pastedText: F, parsedResult: I } = k, ee = T && T(I), { isValid: L, errors: te } = I, ne = te.length, re = F === "", ie = Fc(F), ae = Pc(F), R = /* @__PURE__ */ y(_, { children: [
4804
+ }, { pastedText: F, parsedResult: I } = k, ee = T && T(I), { isValid: L, errors: te } = I, ne = te.length, re = F === "", ie = Lc(F), ae = Ic(F), R = /* @__PURE__ */ y(_, { children: [
4738
4805
  /* @__PURE__ */ y("div", {
4739
4806
  className: io.headerContainer,
4740
4807
  children: [
4741
4808
  /* @__PURE__ */ v(W, {
4742
4809
  text: u("downsampleTooltip"),
4743
- children: /* @__PURE__ */ v(ml, {
4810
+ children: /* @__PURE__ */ v(gl, {
4744
4811
  label: u("downsampled"),
4745
4812
  checked: D,
4746
4813
  onChange: () => j(!D),
@@ -4773,7 +4840,7 @@ var Cr = /* @__PURE__ */ function(e) {
4773
4840
  }),
4774
4841
  re ? /* @__PURE__ */ v("div", {
4775
4842
  className: io.resultContainer,
4776
- children: /* @__PURE__ */ v(Nc, {
4843
+ children: /* @__PURE__ */ v(Fc, {
4777
4844
  text: null,
4778
4845
  children: /* @__PURE__ */ y("div", {
4779
4846
  className: io.emptyState,
@@ -4809,7 +4876,7 @@ var Cr = /* @__PURE__ */ function(e) {
4809
4876
  }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
4810
4877
  className: io.messagesContainer,
4811
4878
  children: [
4812
- ne ? /* @__PURE__ */ v(jc, {
4879
+ ne ? /* @__PURE__ */ v(Nc, {
4813
4880
  errors: te,
4814
4881
  t: u
4815
4882
  }) : null,
@@ -4832,7 +4899,7 @@ var Cr = /* @__PURE__ */ function(e) {
4832
4899
  type: "Warning"
4833
4900
  } })
4834
4901
  ]
4835
- }), /* @__PURE__ */ v(Oc, {
4902
+ }), /* @__PURE__ */ v(Ac, {
4836
4903
  validationRules: s,
4837
4904
  parsedResult: I,
4838
4905
  updateState: (e) => A((t) => ({
@@ -4874,7 +4941,7 @@ var Cr = /* @__PURE__ */ function(e) {
4874
4941
  onClose: i
4875
4942
  } })
4876
4943
  });
4877
- }, gl = ({ modals: e = [], modalVisibility: n, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ v(_, { children: e.map(({ name: e, component: a, props: o = {} }) => {
4944
+ }, vl = ({ modals: e = [], modalVisibility: n, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ v(_, { children: e.map(({ name: e, component: a, props: o = {} }) => {
4878
4945
  var s;
4879
4946
  return /* @__PURE__ */ v(t, { children: /* @__PURE__ */ v(a, {
4880
4947
  testId: `${i}-modal-render-${e}`,
@@ -4882,7 +4949,7 @@ var Cr = /* @__PURE__ */ function(e) {
4882
4949
  onClose: () => r({ name: e }),
4883
4950
  ...o
4884
4951
  }) }, e);
4885
- }) }) : null, _l = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ v(Ki, {
4952
+ }) }) : null, yl = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ v(Ki, {
4886
4953
  loading: !0,
4887
4954
  menu: {
4888
4955
  component: /* @__PURE__ */ v(K, {
@@ -4898,18 +4965,18 @@ var Cr = /* @__PURE__ */ function(e) {
4898
4965
  sections: e
4899
4966
  },
4900
4967
  testId: n
4901
- }), vl = (e, t, n) => o(async () => {
4968
+ }), bl = (e, t, n) => o(async () => {
4902
4969
  if (n) try {
4903
4970
  return await n();
4904
4971
  } catch (t) {
4905
- console.error("beforeExportData failed", t), ul({ message: {
4972
+ console.error("beforeExportData failed", t), fl({ message: {
4906
4973
  type: "Error",
4907
4974
  content: e("unableToPrepareExportData")
4908
4975
  } });
4909
4976
  return;
4910
4977
  }
4911
4978
  return t;
4912
- }, [t, n]), yl = {
4979
+ }, [t, n]), xl = {
4913
4980
  cancel: "Cancel",
4914
4981
  chooseFile: "Choose file",
4915
4982
  copyDecimalComma: "Copy (decimal comma)",
@@ -4968,26 +5035,26 @@ var Cr = /* @__PURE__ */ function(e) {
4968
5035
  smartUpload_description: "Upload image and extract table content using a LLM",
4969
5036
  smartUpload_smartUpload: "Smart Upload",
4970
5037
  toUploadOrImportFromClipboardMessage: "To upload or import from clipboard please select your preferred unit in the table header and upload or paste numbers only for Depth, Inc, Azi. Follow example below"
4971
- }, bl = (e, t = {}) => e == null ? void 0 : e.replace(/\{\{(\w+)\}\}/g, (e, n) => (t == null ? void 0 : t[n]) === void 0 ? "" : String(t == null ? void 0 : t[n])), xl = (e) => d(() => {
4972
- let t = Object.keys(yl).reduce((t, n) => {
4973
- let r = yl == null ? void 0 : yl[n], i = e == null ? void 0 : e[n];
5038
+ }, Sl = (e, t = {}) => e == null ? void 0 : e.replace(/\{\{(\w+)\}\}/g, (e, n) => (t == null ? void 0 : t[n]) === void 0 ? "" : String(t == null ? void 0 : t[n])), Cl = (e) => d(() => {
5039
+ let t = Object.keys(xl).reduce((t, n) => {
5040
+ let r = xl == null ? void 0 : xl[n], i = e == null ? void 0 : e[n];
4974
5041
  return t[n] = i == null ? r : i, t;
4975
5042
  }, {});
4976
5043
  return (e, n) => {
4977
5044
  let r = t[e];
4978
- return n ? bl(r, n) : r;
5045
+ return n ? Sl(r, n) : r;
4979
5046
  };
4980
- }, [e]), Sl = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, Cl = (e) => {
5047
+ }, [e]), wl = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, Tl = (e) => {
4981
5048
  var t;
4982
5049
  return {
4983
5050
  ...e,
4984
5051
  rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
4985
5052
  let t = String(e == null ? "" : e);
4986
- return Sl.test(t) ? Cn(t) : t;
5053
+ return wl.test(t) ? Cn(t) : t;
4987
5054
  }))
4988
5055
  };
4989
- }, wl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
4990
- let { exportData: a, beforeExportData: s, importLimit: c = wc, validationRules: l = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = xl(u), v = vl(_, a, s), y = o((e) => {
5056
+ }, El = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
5057
+ let { exportData: a, beforeExportData: s, importLimit: c = Ec, validationRules: l = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = Cl(u), v = bl(_, a, s), y = o((e) => {
4991
5058
  n((t) => ({
4992
5059
  ...t,
4993
5060
  ...e
@@ -5031,9 +5098,9 @@ var Cr = /* @__PURE__ */ function(e) {
5031
5098
  let t = {
5032
5099
  validationRules: l,
5033
5100
  importLimit: c
5034
- }, n = Cl(await sl(e, t, _));
5101
+ }, n = Tl(await ll(e, t, _));
5035
5102
  if (g && g(h)) {
5036
- let { fields: e, units: r, rows: a } = n, o = cl(e, r == null ? [] : r, a, t);
5103
+ let { fields: e, units: r, rows: a } = n, o = ul(e, r == null ? [] : r, a, t);
5037
5104
  return i(() => y({
5038
5105
  pastedText: o,
5039
5106
  parsedResult: h
@@ -5059,20 +5126,20 @@ var Cr = /* @__PURE__ */ function(e) {
5059
5126
  let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
5060
5127
  try {
5061
5128
  if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
5062
- fl({ message: {
5129
+ ml({ message: {
5063
5130
  type: "Error",
5064
5131
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
5065
5132
  } }, i);
5066
5133
  return;
5067
5134
  }
5068
- let e = Cl(await sl(r, {
5135
+ let e = Tl(await ll(r, {
5069
5136
  validationRules: l,
5070
5137
  importLimit: c
5071
5138
  }, _));
5072
- return e != null && e.isValid || fl({ message: {
5139
+ return e != null && e.isValid || ml({ message: {
5073
5140
  type: "Error",
5074
5141
  content: _("clipboardReadFailed")
5075
- } }, i), n && fl({ message: {
5142
+ } }, i), n && ml({ message: {
5076
5143
  type: "Success",
5077
5144
  content: _("pasteSuccessful")
5078
5145
  } }, i), {
@@ -5080,7 +5147,7 @@ var Cr = /* @__PURE__ */ function(e) {
5080
5147
  parsedResult: e
5081
5148
  };
5082
5149
  } catch (e) {
5083
- fl({ message: {
5150
+ ml({ message: {
5084
5151
  type: "Error",
5085
5152
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
5086
5153
  details: e.message
@@ -5093,10 +5160,10 @@ var Cr = /* @__PURE__ */ function(e) {
5093
5160
  let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
5094
5161
  if (!n) return;
5095
5162
  let r = await C(await n.text());
5096
- r.isValid ? (f || fl({ message: {
5163
+ r.isValid ? (f || ml({ message: {
5097
5164
  type: "Success",
5098
5165
  content: _("pasteSuccessful")
5099
- } }, i), i(() => d(r))) : fl({ message: {
5166
+ } }, i), i(() => d(r))) : ml({ message: {
5100
5167
  type: "Error",
5101
5168
  content: _("fileParsingFailed")
5102
5169
  } }, i);
@@ -5110,7 +5177,7 @@ var Cr = /* @__PURE__ */ function(e) {
5110
5177
  try {
5111
5178
  let t = await navigator.clipboard.readText();
5112
5179
  if (!t) {
5113
- fl({ message: {
5180
+ ml({ message: {
5114
5181
  type: "Error",
5115
5182
  content: _("clipboardIsEmpty")
5116
5183
  } }, i);
@@ -5118,18 +5185,18 @@ var Cr = /* @__PURE__ */ function(e) {
5118
5185
  }
5119
5186
  let n = await C(t);
5120
5187
  if (!n.isValid) {
5121
- fl({ message: {
5188
+ ml({ message: {
5122
5189
  type: "Error",
5123
5190
  content: _("clipboardReadFailed")
5124
5191
  } }, i);
5125
5192
  return;
5126
5193
  }
5127
- f || fl({ message: {
5194
+ f || ml({ message: {
5128
5195
  type: "Success",
5129
5196
  content: _("pasteSuccessful")
5130
5197
  } }, i), e && i(() => d(n));
5131
5198
  } catch {
5132
- fl({ message: {
5199
+ ml({ message: {
5133
5200
  type: "Error",
5134
5201
  content: _("clipboardReadNotAllowed")
5135
5202
  } }, i);
@@ -5144,14 +5211,14 @@ var Cr = /* @__PURE__ */ function(e) {
5144
5211
  onClickCopyClipboard: o(async (e) => {
5145
5212
  let t = await v();
5146
5213
  if (!t) return;
5147
- let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : Cc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = cl(n, o, a.map((t) => t.map((t) => ur(t) ? "" : s(t.toString(), e))), { delimiter: " " });
5214
+ let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : Tc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = ul(n, o, a.map((t) => t.map((t) => ur(t) ? "" : s(t.toString(), e))), { delimiter: " " });
5148
5215
  try {
5149
- await navigator.clipboard.writeText(c), fl({ message: {
5216
+ await navigator.clipboard.writeText(c), ml({ message: {
5150
5217
  type: "Success",
5151
5218
  content: _("copiedToClipboard")
5152
5219
  } }, i);
5153
5220
  } catch (e) {
5154
- fl({ message: {
5221
+ ml({ message: {
5155
5222
  type: "Error",
5156
5223
  content: _("unableToCopyToClipboard"),
5157
5224
  details: e.message
@@ -5161,14 +5228,14 @@ var Cr = /* @__PURE__ */ function(e) {
5161
5228
  onSmartUploadResult: o((e) => {
5162
5229
  let t = un(e) && dn(e.errorMessage) ? e.errorMessage : void 0;
5163
5230
  if (t) {
5164
- fl({ message: {
5231
+ ml({ message: {
5165
5232
  type: "Error",
5166
5233
  content: t || "Smart upload failed."
5167
5234
  } }, i);
5168
5235
  return;
5169
5236
  }
5170
5237
  if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(_n(e), dn))) {
5171
- fl({ message: {
5238
+ ml({ message: {
5172
5239
  type: "Error",
5173
5240
  content: "Smart upload returned unexpected format.",
5174
5241
  details: JSON.stringify(e)
@@ -5200,14 +5267,14 @@ var Cr = /* @__PURE__ */ function(e) {
5200
5267
  ]),
5201
5268
  deleteAllRows: x
5202
5269
  };
5203
- }, Tl = (e, t) => {
5270
+ }, Dl = (e, t) => {
5204
5271
  var n, r;
5205
- let { fields: i, rows: a } = e, o = cl(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
5272
+ let { fields: i, rows: a } = e, o = ul(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
5206
5273
  c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
5207
- }, El = (e) => ln(e) && "modalKey" in e, Dl = (e, t, n) => Zt(e, (e) => {
5274
+ }, Ol = (e) => ln(e) && "modalKey" in e, kl = (e, t, n) => Zt(e, (e) => {
5208
5275
  if (tn(e) || !un(e)) return;
5209
5276
  let { modalKey: r } = e == null ? {} : e;
5210
- if (El(e) && typeof e.onClick != "function") {
5277
+ if (Ol(e) && typeof e.onClick != "function") {
5211
5278
  let i = () => {
5212
5279
  var e;
5213
5280
  n(r, !((e = t.modalVisibility) != null && e[r]));
@@ -5217,7 +5284,7 @@ var Cr = /* @__PURE__ */ function(e) {
5217
5284
  onClick: i
5218
5285
  };
5219
5286
  }
5220
- }), Ol = (e, t, n) => Dl(e, t, n), kl = {
5287
+ }), Al = (e, t, n) => kl(e, t, n), jl = {
5221
5288
  pastedText: "",
5222
5289
  parsedResult: {
5223
5290
  isValid: !1,
@@ -5232,9 +5299,9 @@ var Cr = /* @__PURE__ */ function(e) {
5232
5299
  reviewPasteModal: !1,
5233
5300
  helpModal: !1
5234
5301
  }
5235
- }, Al = ({ config: e, smartUploadConfig: t, testId: n }) => {
5302
+ }, Ml = ({ config: e, smartUploadConfig: t, testId: n }) => {
5236
5303
  var r, i, a, o;
5237
- let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: g = !0, copyFromClipBoard: _ = !0, showDeleteOptions: b = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = m(kl), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = xl(f), ee = vl(I, s, c), [L, te] = h(), ne = wl({
5304
+ let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: g = !0, copyFromClipBoard: _ = !0, showDeleteOptions: b = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = m(jl), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = Cl(f), ee = bl(I, s, c), [L, te] = h(), ne = El({
5238
5305
  config: e,
5239
5306
  state: E,
5240
5307
  setState: D,
@@ -5269,14 +5336,14 @@ var Cr = /* @__PURE__ */ function(e) {
5269
5336
  onClick: () => R("smartUploadModal", !O),
5270
5337
  testId: `${n}-smart-upload`
5271
5338
  }] : [],
5272
- ...Ol((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, R)
5339
+ ...Al((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, R)
5273
5340
  ] : [], de = [
5274
5341
  {
5275
5342
  type: "Option",
5276
5343
  label: I("downloadFile"),
5277
5344
  onClick: async () => {
5278
5345
  let e = await ee();
5279
- e && e && Tl(e, d);
5346
+ e && e && Dl(e, d);
5280
5347
  }
5281
5348
  },
5282
5349
  ...p ? [{
@@ -5301,20 +5368,20 @@ var Cr = /* @__PURE__ */ function(e) {
5301
5368
  }]
5302
5369
  }
5303
5370
  }],
5304
- ...Ol((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, R)
5371
+ ...Al((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, R)
5305
5372
  ], fe = b ? [{
5306
5373
  type: "Option",
5307
5374
  label: I("deleteAllRows"),
5308
5375
  onClick: () => z(),
5309
5376
  testId: `${n}-delete-all-rows`
5310
- }, ...Ol((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, R)] : [], pe = x ? [
5377
+ }, ...Al((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, R)] : [], pe = x ? [
5311
5378
  { type: "Divider" },
5312
5379
  {
5313
5380
  type: "Option",
5314
5381
  label: I("help"),
5315
5382
  onClick: () => R("helpModal", !A)
5316
5383
  },
5317
- ...Ol((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, R)
5384
+ ...Al((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, R)
5318
5385
  ] : [], me = [
5319
5386
  ...ue.length ? [{
5320
5387
  section: [...ue, ...pe],
@@ -5340,13 +5407,13 @@ var Cr = /* @__PURE__ */ function(e) {
5340
5407
  small: !0,
5341
5408
  dark: !0
5342
5409
  }),
5343
- me.map((e, t) => /* @__PURE__ */ v(_l, {
5410
+ me.map((e, t) => /* @__PURE__ */ v(yl, {
5344
5411
  sections: e.section,
5345
5412
  iconName: e.iconName,
5346
5413
  tooltip: e.tooltip,
5347
5414
  testId: `data-${e == null ? void 0 : e.name}-menu`
5348
5415
  }, t)),
5349
- k && /* @__PURE__ */ v(hl, {
5416
+ k && /* @__PURE__ */ v(_l, {
5350
5417
  config: e,
5351
5418
  state: E,
5352
5419
  updateState: ie,
@@ -5382,14 +5449,14 @@ var Cr = /* @__PURE__ */ function(e) {
5382
5449
  cancelText: I("cancel"),
5383
5450
  testId: n
5384
5451
  }),
5385
- /* @__PURE__ */ v(gl, {
5452
+ /* @__PURE__ */ v(vl, {
5386
5453
  modals: C,
5387
5454
  modalVisibility: E == null ? void 0 : E.modalVisibility,
5388
5455
  onCloseModal: ae,
5389
5456
  testId: n
5390
5457
  })
5391
5458
  ] });
5392
- }, jl = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = pn, ...o }) => {
5459
+ }, Nl = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = pn, ...o }) => {
5393
5460
  let c = s(H), l = p(null), u = () => {
5394
5461
  var e;
5395
5462
  i || c || (e = l.current) == null || e.click();
@@ -5417,12 +5484,12 @@ var Cr = /* @__PURE__ */ function(e) {
5417
5484
  multiple: n,
5418
5485
  onChange: d
5419
5486
  })] });
5420
- }, Ml = {
5487
+ }, Pl = {
5421
5488
  label: "_label_uxk69_1",
5422
5489
  labelLeft: "_labelLeft_uxk69_5",
5423
5490
  icons: "_icons_uxk69_13",
5424
5491
  small: "_small_uxk69_27"
5425
- }, Nl = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5492
+ }, Fl = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5426
5493
  visible: !1,
5427
5494
  active: !1,
5428
5495
  onClick: () => {},
@@ -5431,14 +5498,14 @@ var Cr = /* @__PURE__ */ function(e) {
5431
5498
  }, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Dr.CAPITALIZE }) => {
5432
5499
  var d;
5433
5500
  return /* @__PURE__ */ v("div", {
5434
- className: g(Ml.label, c ? Ml.labelLeft : "", l ? Ml.small : ""),
5501
+ className: g(Pl.label, c ? Pl.labelLeft : "", l ? Pl.small : ""),
5435
5502
  children: /* @__PURE__ */ y("label", {
5436
5503
  style: {
5437
5504
  textTransform: u,
5438
5505
  width: t || ""
5439
5506
  },
5440
5507
  children: [e, /* @__PURE__ */ y("div", {
5441
- className: Ml.icons,
5508
+ className: Pl.icons,
5442
5509
  children: [
5443
5510
  (n || i) && /* @__PURE__ */ v(si, {
5444
5511
  text: n,
@@ -5464,23 +5531,23 @@ var Cr = /* @__PURE__ */ function(e) {
5464
5531
  })]
5465
5532
  })
5466
5533
  });
5467
- }, Pl = {
5534
+ }, Il = {
5468
5535
  field: "_field_1xoss_1",
5469
5536
  labelLeft: "_labelLeft_1xoss_5",
5470
5537
  fieldInput: "_fieldInput_1xoss_9",
5471
5538
  formRow: "_formRow_1xoss_12",
5472
5539
  "form-row": "_form-row_1xoss_13",
5473
5540
  button: "_button_1xoss_22"
5474
- }, Fl = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5541
+ }, Ll = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5475
5542
  visible: !1,
5476
5543
  active: !1,
5477
5544
  onClick: () => {},
5478
5545
  tooltip: "",
5479
5546
  testId: void 0
5480
5547
  }, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Dr.CAPITALIZE }) => /* @__PURE__ */ y("div", {
5481
- className: g(Pl.field, t ? Pl.labelLeft : ""),
5548
+ className: g(Il.field, t ? Il.labelLeft : ""),
5482
5549
  "data-testid": d,
5483
- children: [(e || t) && /* @__PURE__ */ v(Nl, {
5550
+ children: [(e || t) && /* @__PURE__ */ v(Fl, {
5484
5551
  label: e,
5485
5552
  width: n,
5486
5553
  helpText: i,
@@ -5493,10 +5560,10 @@ var Cr = /* @__PURE__ */ function(e) {
5493
5560
  small: u,
5494
5561
  textTransform: f
5495
5562
  }), /* @__PURE__ */ v("div", {
5496
- className: Pl.fieldInput,
5563
+ className: Il.fieldInput,
5497
5564
  children: r
5498
5565
  })]
5499
- }), Il = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ v("div", {
5566
+ }), Rl = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ v("div", {
5500
5567
  style: {
5501
5568
  display: "flex",
5502
5569
  flexDirection: n,
@@ -5508,20 +5575,20 @@ var Cr = /* @__PURE__ */ function(e) {
5508
5575
  gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
5509
5576
  },
5510
5577
  children: a
5511
- }), Ll = { formRow: "_formRow_odewu_1" }, Rl = ({ children: e }) => /* @__PURE__ */ v("div", {
5512
- className: Ll.formRow,
5578
+ }), zl = { formRow: "_formRow_odewu_1" }, Bl = ({ children: e }) => /* @__PURE__ */ v("div", {
5579
+ className: zl.formRow,
5513
5580
  children: e
5514
- }), zl = { grid: "_grid_obkz4_1" }, Bl = (e) => typeof e == "boolean" ? e ? "var(--padding)" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", Vl = (e) => typeof e == "number" ? `${e}px` : e || "initial", Hl = ({ rows: e = "initial", columns: t = "initial", columnsTablet: n = null, columnsMobile: r = null, gap: i = !1, height: a = "initial", children: o }) => {
5581
+ }), Vl = { grid: "_grid_obkz4_1" }, Hl = (e) => typeof e == "boolean" ? e ? "var(--padding)" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", Ul = (e) => typeof e == "number" ? `${e}px` : e || "initial", Wl = ({ rows: e = "initial", columns: t = "initial", columnsTablet: n = null, columnsMobile: r = null, gap: i = !1, height: a = "initial", children: o }) => {
5515
5582
  let s = {
5516
- "--grid-gap": Bl(i),
5517
- "--grid-rows": Vl(e),
5518
- "--grid-columns": Vl(t),
5519
- "--grid-height": Vl(a),
5520
- ...n != null && { "--grid-columns-tablet": Vl(n) },
5521
- ...r != null && { "--grid-columns-mobile": Vl(r) }
5583
+ "--grid-gap": Hl(i),
5584
+ "--grid-rows": Ul(e),
5585
+ "--grid-columns": Ul(t),
5586
+ "--grid-height": Ul(a),
5587
+ ...n != null && { "--grid-columns-tablet": Ul(n) },
5588
+ ...r != null && { "--grid-columns-mobile": Ul(r) }
5522
5589
  };
5523
5590
  return /* @__PURE__ */ v("div", {
5524
- className: zl.grid,
5591
+ className: Vl.grid,
5525
5592
  style: s,
5526
5593
  children: o
5527
5594
  });
@@ -5568,15 +5635,15 @@ var Cr = /* @__PURE__ */ function(e) {
5568
5635
  hideScrollbar: "_hideScrollbar_1dcn1_67",
5569
5636
  noPointerEvents: "_noPointerEvents_1dcn1_309",
5570
5637
  virtualRows: "_virtualRows_1dcn1_312"
5571
- }, Ul = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
5638
+ }, Gl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
5572
5639
  className: Z.toggleNarrow,
5573
5640
  onClick: t,
5574
5641
  children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_LEFT })
5575
- }) : null, Wl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
5642
+ }) : null, Kl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
5576
5643
  ref: a,
5577
5644
  className: g(Z.header, i ? Z.stickyHeader : ""),
5578
5645
  children: [
5579
- /* @__PURE__ */ v(Ul, {
5646
+ /* @__PURE__ */ v(Gl, {
5580
5647
  toggleNarrow: n,
5581
5648
  onClickToggleNarrow: r
5582
5649
  }),
@@ -5596,14 +5663,14 @@ var Cr = /* @__PURE__ */ function(e) {
5596
5663
  })
5597
5664
  })
5598
5665
  ]
5599
- })), Gl = ({ label: e }) => e ? /* @__PURE__ */ v("span", {
5666
+ })), ql = ({ label: e }) => e ? /* @__PURE__ */ v("span", {
5600
5667
  className: Z.label,
5601
5668
  children: /* @__PURE__ */ v(Pi, {
5602
5669
  color: e.color,
5603
5670
  title: e.value,
5604
5671
  small: e.small
5605
5672
  })
5606
- }) : null, Kl = ({ name: e, icon: t, testId: n }) => {
5673
+ }) : null, Jl = ({ name: e, icon: t, testId: n }) => {
5607
5674
  let r = t && /* @__PURE__ */ v(U, {
5608
5675
  icon: t.icon,
5609
5676
  color: t.color || "#db2828"
@@ -5623,8 +5690,8 @@ var Cr = /* @__PURE__ */ function(e) {
5623
5690
  children: r
5624
5691
  })]
5625
5692
  });
5626
- }, ql = ({ item: e }) => {
5627
- let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ v(Kl, {
5693
+ }, Yl = ({ item: e }) => {
5694
+ let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ v(Jl, {
5628
5695
  name: t,
5629
5696
  icon: n,
5630
5697
  testId: o && `${o}-name`
@@ -5650,10 +5717,10 @@ var Cr = /* @__PURE__ */ function(e) {
5650
5717
  })
5651
5718
  ]
5652
5719
  });
5653
- }, Jl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
5720
+ }, Xl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
5654
5721
  color: "rgba(0,0,0,0.25)",
5655
5722
  title: e.metaCount
5656
- }), Yl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
5723
+ }), Zl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
5657
5724
  expanded: !!t && !!e.active && !!e.content,
5658
5725
  children: /* @__PURE__ */ v("div", {
5659
5726
  className: Z.itemContent,
@@ -5662,7 +5729,7 @@ var Cr = /* @__PURE__ */ function(e) {
5662
5729
  },
5663
5730
  children: e.content
5664
5731
  })
5665
- }), Xl = r(({ item: e, index: t }, n) => {
5732
+ }), Ql = r(({ item: e, index: t }, n) => {
5666
5733
  var r;
5667
5734
  let i = s(H), { actions: a, disabled: o, expanded: c, onClick: l, title: u, name: d, icon: f, testId: p } = e;
5668
5735
  return /* @__PURE__ */ v("div", {
@@ -5682,13 +5749,13 @@ var Cr = /* @__PURE__ */ function(e) {
5682
5749
  className: g(Z.expandIcon, c && Z.expanded),
5683
5750
  children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_RIGHT })
5684
5751
  }),
5685
- /* @__PURE__ */ v(Kl, {
5752
+ /* @__PURE__ */ v(Jl, {
5686
5753
  name: d,
5687
5754
  icon: f
5688
5755
  }),
5689
5756
  /* @__PURE__ */ y("div", {
5690
5757
  className: Z.right,
5691
- children: [/* @__PURE__ */ v(Jl, { item: e }), !(o || i) && a && /* @__PURE__ */ v("div", {
5758
+ children: [/* @__PURE__ */ v(Xl, { item: e }), !(o || i) && a && /* @__PURE__ */ v("div", {
5692
5759
  className: Z.actions,
5693
5760
  children: /* @__PURE__ */ v(Ji, { actions: (r = e.actions) == null ? [] : r })
5694
5761
  })]
@@ -5696,7 +5763,7 @@ var Cr = /* @__PURE__ */ function(e) {
5696
5763
  ]
5697
5764
  }) })
5698
5765
  });
5699
- }), Zl = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
5766
+ }), $l = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
5700
5767
  let o = s(H), c = (e, t, s, c, l, u) => {
5701
5768
  let d = t.actions && t.actions.find((e) => {
5702
5769
  var t;
@@ -5732,24 +5799,24 @@ var Cr = /* @__PURE__ */ function(e) {
5732
5799
  className: Z.indentIcon,
5733
5800
  children: /* @__PURE__ */ v(U, { icon: V.INDENT })
5734
5801
  }) : null,
5735
- /* @__PURE__ */ v(Gl, { label: t.label }),
5736
- /* @__PURE__ */ v(ql, { item: t }),
5802
+ /* @__PURE__ */ v(ql, { label: t.label }),
5803
+ /* @__PURE__ */ v(Yl, { item: t }),
5737
5804
  /* @__PURE__ */ y("div", {
5738
5805
  className: Z.right,
5739
- children: [/* @__PURE__ */ v(Jl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ v("div", {
5806
+ children: [/* @__PURE__ */ v(Xl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ v("div", {
5740
5807
  className: Z.actions,
5741
5808
  children: /* @__PURE__ */ v(Ji, { actions: t.actions })
5742
5809
  })]
5743
5810
  })
5744
5811
  ]
5745
- }), /* @__PURE__ */ v(Yl, {
5812
+ }), /* @__PURE__ */ v(Zl, {
5746
5813
  item: t,
5747
5814
  expanding: n
5748
5815
  })]
5749
5816
  })
5750
5817
  }, e);
5751
5818
  };
5752
- return e.type === "Heading" ? /* @__PURE__ */ v(Xl, {
5819
+ return e.type === "Heading" ? /* @__PURE__ */ v(Ql, {
5753
5820
  ref: a,
5754
5821
  item: e,
5755
5822
  index: t
@@ -5764,7 +5831,7 @@ var Cr = /* @__PURE__ */ function(e) {
5764
5831
  opacity: +!s
5765
5832
  }, n, r, i);
5766
5833
  })(t, e) : c(t, e);
5767
- }), Ql = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5834
+ }), eu = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5768
5835
  let [i, a] = m(null), o = (e) => {
5769
5836
  a(e.active.id);
5770
5837
  }, s = (e) => {
@@ -5787,7 +5854,7 @@ var Cr = /* @__PURE__ */ function(e) {
5787
5854
  dropAnimation: null,
5788
5855
  children: /* @__PURE__ */ v("div", {
5789
5856
  className: Z.dragOverlay,
5790
- children: /* @__PURE__ */ v(Zl, {
5857
+ children: /* @__PURE__ */ v($l, {
5791
5858
  draggable: t,
5792
5859
  item: n.items[Number(i)],
5793
5860
  index: Number(i)
@@ -5795,7 +5862,7 @@ var Cr = /* @__PURE__ */ function(e) {
5795
5862
  })
5796
5863
  }), document.body)]
5797
5864
  }) : e;
5798
- }, $l = ({ items: e, scrollDetails: t, children: n }) => {
5865
+ }, tu = ({ items: e, scrollDetails: t, children: n }) => {
5799
5866
  let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = ir({
5800
5867
  count: e.length,
5801
5868
  getScrollElement: () => l.current,
@@ -5825,9 +5892,9 @@ var Cr = /* @__PURE__ */ function(e) {
5825
5892
  children: n({ virtualizer: u })
5826
5893
  })
5827
5894
  });
5828
- }, eu = ({ items: e, scrollDetails: t, children: n }) => {
5895
+ }, nu = ({ items: e, scrollDetails: t, children: n }) => {
5829
5896
  let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
5830
- return a ? /* @__PURE__ */ v($l, {
5897
+ return a ? /* @__PURE__ */ v(tu, {
5831
5898
  items: e,
5832
5899
  scrollDetails: t,
5833
5900
  children: ({ virtualizer: e }) => n({ virtualizer: e })
@@ -5838,7 +5905,7 @@ var Cr = /* @__PURE__ */ function(e) {
5838
5905
  children: n({})
5839
5906
  })
5840
5907
  });
5841
- }, tu = ({ list: e, bordered: t = !1, expanding: n = !1, narrow: r = !1, toggleNarrow: i = !1, onToggleNarrow: a = () => {}, invokeEditOnRowClick: o = !0, noHeader: s = !1, stickyHeader: c, draggable: l = !1, onListReorder: u = () => {}, marginBottom: d = 0, height: f, testId: p, scrollDetails: m = {
5908
+ }, ru = ({ list: e, bordered: t = !1, expanding: n = !1, narrow: r = !1, toggleNarrow: i = !1, onToggleNarrow: a = () => {}, invokeEditOnRowClick: o = !0, noHeader: s = !1, stickyHeader: c, draggable: l = !1, onListReorder: u = () => {}, marginBottom: d = 0, height: f, testId: p, scrollDetails: m = {
5842
5909
  scrollable: !1,
5843
5910
  hideScrollbar: !1,
5844
5911
  triggerScrollToActiveItem: !1,
@@ -5851,17 +5918,17 @@ var Cr = /* @__PURE__ */ function(e) {
5851
5918
  marginBottom: d
5852
5919
  },
5853
5920
  id: "scrollableDiv",
5854
- children: [!s && /* @__PURE__ */ v(Wl, {
5921
+ children: [!s && /* @__PURE__ */ v(Kl, {
5855
5922
  name: e.name,
5856
5923
  actions: e.actions,
5857
5924
  toggleNarrow: i,
5858
5925
  onToggleNarrow: a,
5859
5926
  stickyHeader: c
5860
- }), /* @__PURE__ */ v(Ql, {
5927
+ }), /* @__PURE__ */ v(eu, {
5861
5928
  draggable: l,
5862
5929
  list: e,
5863
5930
  onListReorder: u,
5864
- children: /* @__PURE__ */ v(eu, {
5931
+ children: /* @__PURE__ */ v(nu, {
5865
5932
  items: e.items,
5866
5933
  scrollDetails: m,
5867
5934
  children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ v("div", {
@@ -5869,14 +5936,14 @@ var Cr = /* @__PURE__ */ function(e) {
5869
5936
  className: Z.virtualRow,
5870
5937
  style: { transform: `translateY(${r.start}px)` },
5871
5938
  ref: t.measureElement,
5872
- children: /* @__PURE__ */ v(Zl, {
5939
+ children: /* @__PURE__ */ v($l, {
5873
5940
  index: r.index,
5874
5941
  draggable: l,
5875
5942
  item: e.items[r.index],
5876
5943
  expanding: n,
5877
5944
  invokeEditOnRowClick: o
5878
5945
  })
5879
- }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Zl, {
5946
+ }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v($l, {
5880
5947
  index: t,
5881
5948
  draggable: l,
5882
5949
  item: e,
@@ -5885,7 +5952,7 @@ var Cr = /* @__PURE__ */ function(e) {
5885
5952
  }) }, t))
5886
5953
  })
5887
5954
  })]
5888
- }), nu = {
5955
+ }), iu = {
5889
5956
  loader: "_loader_477i5_1",
5890
5957
  fullViewPortSize: "_fullViewPortSize_477i5_7",
5891
5958
  cover: "_cover_477i5_14",
@@ -5893,33 +5960,33 @@ var Cr = /* @__PURE__ */ function(e) {
5893
5960
  content: "_content_477i5_44",
5894
5961
  text: "_text_477i5_49",
5895
5962
  details: "_details_477i5_53"
5896
- }, ru = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Or.DARK, testId: c = null }) => {
5963
+ }, au = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Or.DARK, testId: c = null }) => {
5897
5964
  let l = s === Or.DARK ? Or.WHITE : Or.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
5898
5965
  return /* @__PURE__ */ v("div", {
5899
- className: g(nu.loader, a ? nu.cover : "", { [nu.fullViewPortSize]: i }),
5966
+ className: g(iu.loader, a ? iu.cover : "", { [iu.fullViewPortSize]: i }),
5900
5967
  style: {
5901
5968
  width: e,
5902
5969
  height: t
5903
5970
  },
5904
5971
  "data-testid": c,
5905
5972
  children: /* @__PURE__ */ v("div", {
5906
- className: nu.dimmer,
5973
+ className: iu.dimmer,
5907
5974
  style: {
5908
5975
  background: u,
5909
5976
  color: l
5910
5977
  },
5911
5978
  children: /* @__PURE__ */ y("div", {
5912
- className: nu.content,
5979
+ className: iu.content,
5913
5980
  "data-testid": c && `${c}-content`,
5914
5981
  children: [
5915
5982
  o,
5916
5983
  n && /* @__PURE__ */ v("div", {
5917
- className: nu.text,
5984
+ className: iu.text,
5918
5985
  "data-testid": c && `${c}-text`,
5919
5986
  children: n
5920
5987
  }),
5921
5988
  r && /* @__PURE__ */ v("div", {
5922
- className: nu.details,
5989
+ className: iu.details,
5923
5990
  "data-testid": c && `${c}-details`,
5924
5991
  children: r
5925
5992
  })
@@ -5927,15 +5994,15 @@ var Cr = /* @__PURE__ */ function(e) {
5927
5994
  })
5928
5995
  })
5929
5996
  });
5930
- }, iu = {
5997
+ }, ou = {
5931
5998
  menu: "_menu_12x4u_1",
5932
5999
  header: "_header_12x4u_11",
5933
6000
  item: "_item_12x4u_27",
5934
6001
  heading: "_heading_12x4u_32"
5935
- }, au = ({ option: e, onChange: t }) => {
6002
+ }, su = ({ option: e, onChange: t }) => {
5936
6003
  let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
5937
6004
  return /* @__PURE__ */ v("div", {
5938
- className: iu.item,
6005
+ className: ou.item,
5939
6006
  children: /* @__PURE__ */ v(ci, {
5940
6007
  label: r,
5941
6008
  noMargin: !0,
@@ -5944,17 +6011,17 @@ var Cr = /* @__PURE__ */ function(e) {
5944
6011
  testId: a
5945
6012
  })
5946
6013
  }, n);
5947
- }, ou = ({ label: e }) => /* @__PURE__ */ v("div", {
5948
- className: iu.heading,
6014
+ }, cu = ({ label: e }) => /* @__PURE__ */ v("div", {
6015
+ className: ou.heading,
5949
6016
  children: e
5950
- }), su = /* @__PURE__ */ function(e) {
6017
+ }), lu = /* @__PURE__ */ function(e) {
5951
6018
  return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
5952
- }({}), cu = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ y("div", {
5953
- className: g("menu", iu.menu),
6019
+ }({}), uu = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ y("div", {
6020
+ className: g("menu", ou.menu),
5954
6021
  style: { maxHeight: r },
5955
6022
  "data-testid": i ? `${i}-option-dropdown-layer` : void 0,
5956
6023
  children: [n && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
5957
- className: iu.header,
6024
+ className: ou.header,
5958
6025
  children: [
5959
6026
  /* @__PURE__ */ v("a", {
5960
6027
  onClick: (n) => {
@@ -5986,9 +6053,9 @@ var Cr = /* @__PURE__ */ function(e) {
5986
6053
  ]
5987
6054
  }), /* @__PURE__ */ v(_a, { margin: 0 })] }), e.map((n, r) => {
5988
6055
  switch (n.type) {
5989
- case su.HEADING: return /* @__PURE__ */ v(ou, { label: n.label }, r);
5990
- case su.DIVIDER: return /* @__PURE__ */ v(_a, { margin: 0 }, r);
5991
- default: return /* @__PURE__ */ v(au, {
6056
+ case lu.HEADING: return /* @__PURE__ */ v(cu, { label: n.label }, r);
6057
+ case lu.DIVIDER: return /* @__PURE__ */ v(_a, { margin: 0 }, r);
6058
+ default: return /* @__PURE__ */ v(su, {
5992
6059
  option: n,
5993
6060
  onChange: (r) => {
5994
6061
  let { value: i } = n;
@@ -6000,7 +6067,7 @@ var Cr = /* @__PURE__ */ function(e) {
6000
6067
  }, r);
6001
6068
  }
6002
6069
  })]
6003
- }), lu = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ v(Ki, {
6070
+ }), du = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ v(Ki, {
6004
6071
  testId: c,
6005
6072
  disabled: t,
6006
6073
  menu: {
@@ -6009,7 +6076,7 @@ var Cr = /* @__PURE__ */ function(e) {
6009
6076
  label: n,
6010
6077
  trigger: Cr.DROP_DOWN_BUTTON,
6011
6078
  possiblePlacements: ["top-start", "bottom-start"],
6012
- sections: /* @__PURE__ */ v(cu, {
6079
+ sections: /* @__PURE__ */ v(uu, {
6013
6080
  testId: c,
6014
6081
  options: r,
6015
6082
  onChangeOptions: (t, n) => {
@@ -6019,13 +6086,13 @@ var Cr = /* @__PURE__ */ function(e) {
6019
6086
  maxHeight: s
6020
6087
  })
6021
6088
  }
6022
- }), uu = {
6089
+ }), fu = {
6023
6090
  page: "_page_beskc_1",
6024
6091
  scroll: "_scroll_beskc_23"
6025
- }, du = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6092
+ }, pu = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6026
6093
  let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
6027
6094
  return /* @__PURE__ */ v("div", {
6028
- className: g(uu.page, r ? uu.scroll : ""),
6095
+ className: g(fu.page, r ? fu.scroll : ""),
6029
6096
  style: {
6030
6097
  left: t,
6031
6098
  padding: a,
@@ -6033,25 +6100,25 @@ var Cr = /* @__PURE__ */ function(e) {
6033
6100
  },
6034
6101
  children: e
6035
6102
  });
6036
- }, fu = { printHeader: "_printHeader_o7xxx_1" }, pu = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ v("img", {
6103
+ }, mu = { printHeader: "_printHeader_o7xxx_1" }, hu = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ v("img", {
6037
6104
  src: e,
6038
6105
  alt: t,
6039
- className: fu.printHeader,
6106
+ className: mu.printHeader,
6040
6107
  style: { width: n }
6041
- }), mu = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: c = !1, onClick: l = () => {}, inline: u = !1, mainLabel: d = "", radioButtonsData: f, classForContainer: p = "grouped fields" }) => {
6108
+ }), gu = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: c = !1, onClick: l = () => {}, inline: u = !1, mainLabel: d = "", radioButtonsData: f, classForContainer: p = "grouped fields" }) => {
6042
6109
  let m = s(H), h = f !== void 0, { simpleInputs: _, options: b, selectedOptions: x } = h ? {
6043
6110
  simpleInputs: !1,
6044
6111
  options: f,
6045
6112
  selectedOptions: void 0
6046
6113
  } : Ss(n, r), S = h || x == null ? void 0 : _ ? x : x.value, C = h ? d : t;
6047
6114
  return /* @__PURE__ */ y("div", {
6048
- className: g(cc.wrapper, u ? cc.inline : null, p === "inline fields" ? cc.inline : null),
6115
+ className: g(uc.wrapper, u ? uc.inline : null, p === "inline fields" ? uc.inline : null),
6049
6116
  children: [d && /* @__PURE__ */ v("label", {
6050
- className: g(u && cc.labelMargin),
6117
+ className: g(u && uc.labelMargin),
6051
6118
  children: C
6052
6119
  }), b.map((t, n) => {
6053
6120
  let r = (t == null ? void 0 : t.checked) || (t == null ? void 0 : t.value) === S || !1;
6054
- return /* @__PURE__ */ v(lc, {
6121
+ return /* @__PURE__ */ v(dc, {
6055
6122
  name: t.name || t.value,
6056
6123
  label: t.label,
6057
6124
  value: t.value,
@@ -6069,44 +6136,44 @@ var Cr = /* @__PURE__ */ function(e) {
6069
6136
  }, n);
6070
6137
  })]
6071
6138
  });
6072
- }, hu = {
6139
+ }, _u = {
6073
6140
  richTextToolbar: "_richTextToolbar_1gbkk_1",
6074
6141
  richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
6075
- }, gu = /* @__PURE__ */ function(e) {
6142
+ }, vu = /* @__PURE__ */ function(e) {
6076
6143
  return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e;
6077
- }({}), _u = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6144
+ }({}), yu = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6078
6145
  var r, i, a, o, s;
6079
6146
  let c = [
6080
6147
  {
6081
- icon: gu.BOLD,
6148
+ icon: vu.BOLD,
6082
6149
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
6083
6150
  active: (r = e == null ? void 0 : e.isActive("bold")) == null ? !1 : r
6084
6151
  },
6085
6152
  {
6086
- icon: gu.ITALIC,
6153
+ icon: vu.ITALIC,
6087
6154
  onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
6088
6155
  active: (i = e == null ? void 0 : e.isActive("italic")) == null ? !1 : i
6089
6156
  },
6090
6157
  {
6091
- icon: gu.CODE,
6158
+ icon: vu.CODE,
6092
6159
  onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
6093
6160
  active: (a = e == null ? void 0 : e.isActive("code")) == null ? !1 : a
6094
6161
  },
6095
6162
  {
6096
- icon: gu.UL,
6163
+ icon: vu.UL,
6097
6164
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
6098
6165
  active: (o = e == null ? void 0 : e.isActive("bulletList")) == null ? !1 : o
6099
6166
  },
6100
6167
  {
6101
- icon: gu.OL,
6168
+ icon: vu.OL,
6102
6169
  onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
6103
6170
  active: (s = e == null ? void 0 : e.isActive("orderedList")) == null ? !1 : s
6104
6171
  }
6105
6172
  ];
6106
6173
  return /* @__PURE__ */ y("div", {
6107
- className: hu.richTextToolbarContainer,
6174
+ className: _u.richTextToolbarContainer,
6108
6175
  children: [/* @__PURE__ */ v("div", {
6109
- className: hu.richTextToolbar,
6176
+ className: _u.richTextToolbar,
6110
6177
  children: c.map((e, n) => /* @__PURE__ */ v(K, {
6111
6178
  small: !0,
6112
6179
  round: !0,
@@ -6119,7 +6186,7 @@ var Cr = /* @__PURE__ */ function(e) {
6119
6186
  }, n))
6120
6187
  }), n]
6121
6188
  });
6122
- }, vu = {
6189
+ }, bu = {
6123
6190
  inputInTable: "_inputInTable_gb097_1",
6124
6191
  inputHover: "_inputHover_gb097_13",
6125
6192
  inputFocus: "_inputFocus_gb097_18",
@@ -6128,7 +6195,7 @@ var Cr = /* @__PURE__ */ function(e) {
6128
6195
  inputDisabled: "_inputDisabled_gb097_61",
6129
6196
  hideScrollbars: "_hideScrollbars_gb097_67",
6130
6197
  richTextInput: "_richTextInput_gb097_77"
6131
- }, yu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6198
+ }, xu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6132
6199
  let o = s(H), u = r || o, d = fr({
6133
6200
  extensions: [
6134
6201
  pr,
@@ -6155,17 +6222,17 @@ var Cr = /* @__PURE__ */ function(e) {
6155
6222
  clearContent: () => d == null ? void 0 : d.commands.clearContent(!1),
6156
6223
  editor: d
6157
6224
  }), [d]), /* @__PURE__ */ y("div", {
6158
- className: vu.richTextInput,
6159
- children: [/* @__PURE__ */ v(_u, {
6225
+ className: bu.richTextInput,
6226
+ children: [/* @__PURE__ */ v(yu, {
6160
6227
  editor: d,
6161
6228
  disabled: u,
6162
6229
  toolbarComponent: i
6163
6230
  }), /* @__PURE__ */ v(dr, { editor: d })]
6164
6231
  });
6165
- })), bu = { row: "_row_n16je_1" }, xu = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: a = !1, height: o = "auto", marginBottom: s = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
6232
+ })), Su = { row: "_row_n16je_1" }, Cu = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: a = !1, height: o = "auto", marginBottom: s = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
6166
6233
  let f = typeof l == "number" ? `${l}px` : l, p = (r === null || r === !1 ? [] : Array.isArray(r) ? r.filter((e) => i(e)) : [r]).map((t, n) => /* @__PURE__ */ v(e.Fragment, { children: e.cloneElement(t, { spacing: f }) }, n));
6167
6234
  return /* @__PURE__ */ v("div", {
6168
- className: g(bu.row),
6235
+ className: g(Su.row),
6169
6236
  style: {
6170
6237
  alignItems: t,
6171
6238
  justifyContent: n,
@@ -6181,7 +6248,7 @@ var Cr = /* @__PURE__ */ function(e) {
6181
6248
  "data-testid": d,
6182
6249
  children: p
6183
6250
  });
6184
- }, Su = {
6251
+ }, wu = {
6185
6252
  inputInTable: "_inputInTable_1oy1z_1",
6186
6253
  inputHover: "_inputHover_1oy1z_13",
6187
6254
  inputFocus: "_inputFocus_1oy1z_18",
@@ -6200,7 +6267,7 @@ var Cr = /* @__PURE__ */ function(e) {
6200
6267
  experimental: "_experimental_1oy1z_155",
6201
6268
  active: "_active_1oy1z_159",
6202
6269
  icon: "_icon_1oy1z_163"
6203
- }, Cu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(W, {
6270
+ }, Tu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(W, {
6204
6271
  text: t,
6205
6272
  enabled: !e,
6206
6273
  placement: "right-center",
@@ -6209,7 +6276,7 @@ var Cr = /* @__PURE__ */ function(e) {
6209
6276
  padding: "var(--padding-sm)",
6210
6277
  display: "block",
6211
6278
  children: /* @__PURE__ */ v("span", {
6212
- className: Su.icon,
6279
+ className: wu.icon,
6213
6280
  children: /* @__PURE__ */ v(Pi, {
6214
6281
  small: !0,
6215
6282
  title: r ? "!" : void 0,
@@ -6218,18 +6285,18 @@ var Cr = /* @__PURE__ */ function(e) {
6218
6285
  })
6219
6286
  })
6220
6287
  }), /* @__PURE__ */ v("span", {
6221
- className: Su.label,
6288
+ className: wu.label,
6222
6289
  children: t
6223
- })] }), (e, t) => er(e, t)), wu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
6224
- className: Su.list,
6290
+ })] }), (e, t) => er(e, t)), Eu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
6291
+ className: wu.list,
6225
6292
  children: t.map((t, a) => {
6226
6293
  let o = `${n}_${a}`;
6227
6294
  return /* @__PURE__ */ v("a", {
6228
6295
  href: t.value,
6229
- className: g(Su.item, t.isActive ? Su.active : "", t.isExperimental ? Su.experimental : ""),
6296
+ className: g(wu.item, t.isActive ? wu.active : "", t.isExperimental ? wu.experimental : ""),
6230
6297
  onClick: (e) => r(e, t.value, t.label, t.onClick),
6231
6298
  "data-testid": i,
6232
- children: /* @__PURE__ */ v(Cu, {
6299
+ children: /* @__PURE__ */ v(Tu, {
6233
6300
  label: t.label,
6234
6301
  icon: t.icon,
6235
6302
  invalid: t.invalid,
@@ -6237,16 +6304,16 @@ var Cr = /* @__PURE__ */ function(e) {
6237
6304
  }, o)
6238
6305
  }, o);
6239
6306
  })
6240
- }), Tu = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ v(_, { children: n.map((n, i) => /* @__PURE__ */ y(e.Fragment, { children: [/* @__PURE__ */ v("h5", {
6241
- className: Su.subtitle,
6307
+ }), Du = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ v(_, { children: n.map((n, i) => /* @__PURE__ */ y(e.Fragment, { children: [/* @__PURE__ */ v("h5", {
6308
+ className: wu.subtitle,
6242
6309
  children: n.heading.toUpperCase()
6243
- }), /* @__PURE__ */ v(wu, {
6310
+ }), /* @__PURE__ */ v(Eu, {
6244
6311
  isOpen: t,
6245
6312
  items: n.items,
6246
6313
  sectionIndex: i,
6247
6314
  onClick: r,
6248
6315
  testId: n.testId
6249
- })] }, i)) }), Eu = a(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6316
+ })] }, i)) }), Ou = a(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6250
6317
  let [i, a] = m(t), o = (e, t, n, r) => {
6251
6318
  e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), a(!1);
6252
6319
  }, s = e.sections.length > 0;
@@ -6267,13 +6334,13 @@ var Cr = /* @__PURE__ */ function(e) {
6267
6334
  icon: V.LEFT
6268
6335
  }),
6269
6336
  children: /* @__PURE__ */ v("div", {
6270
- className: g(Su.sidebar, i ? "" : Su.collapsed),
6337
+ className: g(wu.sidebar, i ? "" : wu.collapsed),
6271
6338
  children: s && /* @__PURE__ */ y("div", {
6272
- className: Su.inner,
6339
+ className: wu.inner,
6273
6340
  children: [/* @__PURE__ */ v("h4", {
6274
- className: Su.title,
6341
+ className: wu.title,
6275
6342
  children: e.title
6276
- }), /* @__PURE__ */ v(Tu, {
6343
+ }), /* @__PURE__ */ v(Du, {
6277
6344
  isOpen: i,
6278
6345
  sections: e.sections,
6279
6346
  onClick: o
@@ -6281,18 +6348,18 @@ var Cr = /* @__PURE__ */ function(e) {
6281
6348
  })
6282
6349
  })
6283
6350
  });
6284
- }, (e, t) => er(e, t)), Du = {
6351
+ }, (e, t) => er(e, t)), ku = {
6285
6352
  skeletonContainer: "_skeletonContainer_mcfxp_9",
6286
6353
  skeleton: "_skeleton_mcfxp_9"
6287
- }, Ou = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
6354
+ }, Au = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
6288
6355
  baseColor: "var(--color-skeleton-base)",
6289
6356
  highlightColor: "var(--color-skeleton-highlight)",
6290
- containerClassName: Du.skeletonContainer,
6291
- className: Du.skeleton,
6357
+ containerClassName: ku.skeletonContainer,
6358
+ className: ku.skeleton,
6292
6359
  count: e,
6293
6360
  width: t,
6294
6361
  height: n
6295
- }), ku = {
6362
+ }), ju = {
6296
6363
  tabs: "_tabs_1y79t_1",
6297
6364
  padding: "_padding_1y79t_7",
6298
6365
  margin: "_margin_1y79t_11",
@@ -6303,12 +6370,12 @@ var Cr = /* @__PURE__ */ function(e) {
6303
6370
  disabled: "_disabled_1y79t_61",
6304
6371
  left: "_left_1y79t_65",
6305
6372
  right: "_right_1y79t_65"
6306
- }, Au = ({ label: e, url: t, hidden: n, disabled: r, active: i, onClick: a, right: o, invalid: s, badge: c, testId: l }) => {
6373
+ }, Mu = ({ label: e, url: t, hidden: n, disabled: r, active: i, onClick: a, right: o, invalid: s, badge: c, testId: l }) => {
6307
6374
  let u = getComputedStyle(document.body).getPropertyValue("--color-text-error");
6308
6375
  return /* @__PURE__ */ v("a", {
6309
6376
  id: e == null ? void 0 : e.toString(),
6310
6377
  href: t,
6311
- className: g(ku.item, i ? ku.active : "", r ? ku.disabled : "", n && !i ? ku.hidden : "", o ? ku.right : ku.left),
6378
+ className: g(ju.item, i ? ju.active : "", r ? ju.disabled : "", n && !i ? ju.hidden : "", o ? ju.right : ju.left),
6312
6379
  onClick: a,
6313
6380
  "data-testid": l,
6314
6381
  children: s ? /* @__PURE__ */ v(Pi, {
@@ -6324,10 +6391,10 @@ var Cr = /* @__PURE__ */ function(e) {
6324
6391
  children: e
6325
6392
  }) : e
6326
6393
  });
6327
- }, ju = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
6328
- className: g(n ? ku.contentPadding : ""),
6394
+ }, Nu = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
6395
+ className: g(n ? ju.contentPadding : ""),
6329
6396
  children: e.map((e, n) => t === n && e)
6330
- }) : null, Mu = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i = pn, padding: a = !1, margin: o = !0, contentPadding: c = !0, onChangeTab: l, activeTabIndex: u = void 0, tabs: d = void 0, testId: f }) => {
6397
+ }) : null, Pu = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i = pn, padding: a = !1, margin: o = !0, contentPadding: c = !0, onChangeTab: l, activeTabIndex: u = void 0, tabs: d = void 0, testId: f }) => {
6331
6398
  let p = s(H), m = l !== void 0, h = n ? n.map((e, t) => {
6332
6399
  var n;
6333
6400
  return {
@@ -6351,11 +6418,11 @@ var Cr = /* @__PURE__ */ function(e) {
6351
6418
  }
6352
6419
  };
6353
6420
  return b ? /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("div", {
6354
- className: g(ku.tabs, a ? ku.padding : "", o ? ku.margin : ""),
6421
+ className: g(ju.tabs, a ? ju.padding : "", o ? ju.margin : ""),
6355
6422
  "data-testid": f,
6356
6423
  children: b.map((e, t) => {
6357
6424
  let { label: n, url: r, hidden: i, disabled: a, value: o, right: s, invalid: c, badge: l, testId: u } = e;
6358
- return /* @__PURE__ */ v(Au, {
6425
+ return /* @__PURE__ */ v(Mu, {
6359
6426
  label: n,
6360
6427
  url: r,
6361
6428
  hidden: i,
@@ -6368,12 +6435,12 @@ var Cr = /* @__PURE__ */ function(e) {
6368
6435
  testId: u
6369
6436
  }, t);
6370
6437
  })
6371
- }), /* @__PURE__ */ v(ju, {
6438
+ }), /* @__PURE__ */ v(Nu, {
6372
6439
  activeTabIndex: w == null ? 0 : w,
6373
6440
  contentPadding: c,
6374
6441
  children: n
6375
6442
  })] }) : null;
6376
- }, Nu = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ v(a, {
6443
+ }, Fu = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ v(a, {
6377
6444
  href: t,
6378
6445
  to: t,
6379
6446
  target: n,
@@ -6383,7 +6450,7 @@ var Cr = /* @__PURE__ */ function(e) {
6383
6450
  link: !0,
6384
6451
  children: e
6385
6452
  })
6386
- }), Pu = {
6453
+ }), Iu = {
6387
6454
  inputInTable: "_inputInTable_q0tl0_1",
6388
6455
  inputHover: "_inputHover_q0tl0_13",
6389
6456
  inputFocus: "_inputFocus_q0tl0_18",
@@ -6394,9 +6461,9 @@ var Cr = /* @__PURE__ */ function(e) {
6394
6461
  textarea: "_textarea_q0tl0_77",
6395
6462
  small: "_small_q0tl0_116",
6396
6463
  monospace: "_monospace_q0tl0_155"
6397
- }, Fu = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = pn, onKeyPress: c = pn, onFocus: l = pn, onBlur: u = pn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: _, monospace: y = !1, small: b = !1, testId: x }) => {
6464
+ }, Lu = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = pn, onKeyPress: c = pn, onFocus: l = pn, onBlur: u = pn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: _, monospace: y = !1, small: b = !1, testId: x }) => {
6398
6465
  let S = s(H), C = /* @__PURE__ */ v("textarea", {
6399
- className: g(Pu.textarea, f ? Pu.error : "", p ? Pu.warning : "", y ? Pu.monospace : "", b ? Pu.small : ""),
6466
+ className: g(Iu.textarea, f ? Iu.error : "", p ? Iu.warning : "", y ? Iu.monospace : "", b ? Iu.small : ""),
6400
6467
  name: e,
6401
6468
  value: t,
6402
6469
  placeholder: n,
@@ -6438,10 +6505,10 @@ var Cr = /* @__PURE__ */ function(e) {
6438
6505
  menu: "_menu_oyr59_139",
6439
6506
  active: "_active_oyr59_168",
6440
6507
  alert: "_alert_oyr59_193"
6441
- }, Iu = ({ warning: e }) => /* @__PURE__ */ v("div", {
6508
+ }, Ru = ({ warning: e }) => /* @__PURE__ */ v("div", {
6442
6509
  className: Q.alert,
6443
6510
  children: e
6444
- }), Lu = ({ icon: e, url: t, onClick: n }) => {
6511
+ }), zu = ({ icon: e, url: t, onClick: n }) => {
6445
6512
  let r = /* @__PURE__ */ v(U, { icon: e });
6446
6513
  return t ? /* @__PURE__ */ v("a", {
6447
6514
  href: t,
@@ -6453,7 +6520,7 @@ var Cr = /* @__PURE__ */ function(e) {
6453
6520
  className: Q.appSwitcher,
6454
6521
  children: r
6455
6522
  });
6456
- }, Ru = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
6523
+ }, Bu = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
6457
6524
  let a = /* @__PURE__ */ y("div", {
6458
6525
  className: Q.title,
6459
6526
  children: [
@@ -6482,9 +6549,9 @@ var Cr = /* @__PURE__ */ function(e) {
6482
6549
  children: a
6483
6550
  })
6484
6551
  });
6485
- }, zu = /* @__PURE__ */ function(e) {
6552
+ }, Vu = /* @__PURE__ */ function(e) {
6486
6553
  return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
6487
- }({}), Bu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
6554
+ }({}), Hu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
6488
6555
  let l = s(H);
6489
6556
  return /* @__PURE__ */ y(c, {
6490
6557
  className: g(Q.link, i ? Q.active : ""),
@@ -6501,11 +6568,11 @@ var Cr = /* @__PURE__ */ function(e) {
6501
6568
  children: e
6502
6569
  })]
6503
6570
  });
6504
- }, Vu = ({ element: e }) => {
6571
+ }, Uu = ({ element: e }) => {
6505
6572
  switch (e.type) {
6506
- case zu.LINK: return /* @__PURE__ */ v("div", {
6573
+ case Vu.LINK: return /* @__PURE__ */ v("div", {
6507
6574
  className: Q.item,
6508
- children: /* @__PURE__ */ v(Bu, {
6575
+ children: /* @__PURE__ */ v(Hu, {
6509
6576
  label: e.label,
6510
6577
  url: e.url,
6511
6578
  icon: e.icon,
@@ -6516,7 +6583,7 @@ var Cr = /* @__PURE__ */ function(e) {
6516
6583
  component: e.component
6517
6584
  })
6518
6585
  });
6519
- case zu.BUTTON: return /* @__PURE__ */ v("div", {
6586
+ case Vu.BUTTON: return /* @__PURE__ */ v("div", {
6520
6587
  className: g(Q.item, Q.button),
6521
6588
  children: /* @__PURE__ */ v(K, {
6522
6589
  label: e.label,
@@ -6528,7 +6595,7 @@ var Cr = /* @__PURE__ */ function(e) {
6528
6595
  testId: e.testId
6529
6596
  })
6530
6597
  });
6531
- case zu.MENU: return /* @__PURE__ */ v("div", {
6598
+ case Vu.MENU: return /* @__PURE__ */ v("div", {
6532
6599
  className: g(Q.item, Q.menu),
6533
6600
  children: /* @__PURE__ */ v(Ki, {
6534
6601
  maxHeight: "100%",
@@ -6536,7 +6603,7 @@ var Cr = /* @__PURE__ */ function(e) {
6536
6603
  trigger: Cr.COMPONENT,
6537
6604
  fullHeightTrigger: !0,
6538
6605
  placement: "bottom-start",
6539
- component: /* @__PURE__ */ v(Bu, {
6606
+ component: /* @__PURE__ */ v(Hu, {
6540
6607
  label: e.label,
6541
6608
  icon: e.icon,
6542
6609
  onClick: e.onClick
@@ -6545,50 +6612,50 @@ var Cr = /* @__PURE__ */ function(e) {
6545
6612
  }
6546
6613
  })
6547
6614
  });
6548
- case zu.COMPONENT: return /* @__PURE__ */ v("div", {
6615
+ case Vu.COMPONENT: return /* @__PURE__ */ v("div", {
6549
6616
  className: Q.item,
6550
6617
  children: e.component
6551
6618
  });
6552
6619
  default: return null;
6553
6620
  }
6554
- }, Hu = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ y("div", { children: [i && /* @__PURE__ */ v(Iu, { warning: i }), /* @__PURE__ */ y("div", {
6621
+ }, Wu = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ y("div", { children: [i && /* @__PURE__ */ v(Ru, { warning: i }), /* @__PURE__ */ y("div", {
6555
6622
  className: g(Q.topbar, o ? Q.fixed : ""),
6556
6623
  style: { height: a },
6557
6624
  children: [
6558
- !!t && /* @__PURE__ */ v(Lu, {
6625
+ !!t && /* @__PURE__ */ v(zu, {
6559
6626
  icon: t.icon,
6560
6627
  url: t.url,
6561
6628
  onClick: t.onClick
6562
6629
  }),
6563
6630
  /* @__PURE__ */ y("div", {
6564
6631
  className: Q.left,
6565
- children: [e && /* @__PURE__ */ v(Ru, {
6632
+ children: [e && /* @__PURE__ */ v(Bu, {
6566
6633
  label: e.label,
6567
6634
  logo: e.logo,
6568
6635
  url: e.url,
6569
6636
  version: e.version,
6570
6637
  onClick: e.onClick
6571
- }), n.map((e, t) => e ? /* @__PURE__ */ v(Vu, { element: e }, t) : null)]
6638
+ }), n.map((e, t) => e ? /* @__PURE__ */ v(Uu, { element: e }, t) : null)]
6572
6639
  }),
6573
6640
  /* @__PURE__ */ v("div", {
6574
6641
  className: Q.right,
6575
- children: r.map((e, t) => e ? /* @__PURE__ */ v(Vu, { element: e }, t) : null)
6642
+ children: r.map((e, t) => e ? /* @__PURE__ */ v(Uu, { element: e }, t) : null)
6576
6643
  })
6577
6644
  ]
6578
- })] }), Uu = {
6645
+ })] }), Gu = {
6579
6646
  popConfirm: "_popConfirm_1x6ye_1",
6580
6647
  content: "_content_1x6ye_7",
6581
6648
  buttons: "_buttons_1x6ye_13"
6582
- }, Wu = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ y("div", {
6583
- className: Uu.popConfirm,
6649
+ }, Ku = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ y("div", {
6650
+ className: Gu.popConfirm,
6584
6651
  children: [e && /* @__PURE__ */ v("div", {
6585
- className: Uu.content,
6652
+ className: Gu.content,
6586
6653
  children: /* @__PURE__ */ v(ha, {
6587
6654
  small: !0,
6588
6655
  children: e
6589
6656
  })
6590
6657
  }), /* @__PURE__ */ y("div", {
6591
- className: Uu.buttons,
6658
+ className: Gu.buttons,
6592
6659
  children: [/* @__PURE__ */ v(K, {
6593
6660
  small: !0,
6594
6661
  colored: !0,
@@ -6603,8 +6670,8 @@ var Cr = /* @__PURE__ */ function(e) {
6603
6670
  testId: `${s}-cancel-button`
6604
6671
  })]
6605
6672
  })]
6606
- }), Gu = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, overflowContainer: u = !1, testId: d = void 0 }) => /* @__PURE__ */ v(aa, {
6607
- content: /* @__PURE__ */ v(Wu, {
6673
+ }), qu = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, overflowContainer: u = !1, testId: d = void 0 }) => /* @__PURE__ */ v(aa, {
6674
+ content: /* @__PURE__ */ v(Ku, {
6608
6675
  title: i,
6609
6676
  okText: s,
6610
6677
  onClickOk: c,
@@ -6619,14 +6686,14 @@ var Cr = /* @__PURE__ */ function(e) {
6619
6686
  overflowContainer: u,
6620
6687
  testId: d,
6621
6688
  children: e
6622
- }), Ku = {
6689
+ }), Ju = {
6623
6690
  tree: "_tree_coxxe_1",
6624
6691
  toggle: "_toggle_coxxe_8",
6625
6692
  dropTarget: "_dropTarget_coxxe_15",
6626
6693
  placeholder: "_placeholder_coxxe_30",
6627
6694
  draggingSource: "_draggingSource_coxxe_36",
6628
6695
  placeholderContainer: "_placeholderContainer_coxxe_39"
6629
- }, qu = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
6696
+ }, Yu = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
6630
6697
  let { id: l, data: u } = t, { active: d, disabled: f, testId: p, onClick: m, actions: h = [] } = u, [_, b] = e.useState(!1), [x, S] = e.useState(0), C = (e) => {
6631
6698
  e.stopPropagation(), i(l);
6632
6699
  }, w = (e) => {
@@ -6653,7 +6720,7 @@ var Cr = /* @__PURE__ */ function(e) {
6653
6720
  className: g(Z.itemHeader, _ ? Z.noPointerEvents : ""),
6654
6721
  children: [
6655
6722
  a && /* @__PURE__ */ v("div", {
6656
- className: Ku.toggle,
6723
+ className: Ju.toggle,
6657
6724
  children: /* @__PURE__ */ v(K, {
6658
6725
  basic: !0,
6659
6726
  colored: r ? !0 : wr.MUTED,
@@ -6667,10 +6734,10 @@ var Cr = /* @__PURE__ */ function(e) {
6667
6734
  className: Z.drag,
6668
6735
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
6669
6736
  }),
6670
- /* @__PURE__ */ v(ql, { item: u }),
6737
+ /* @__PURE__ */ v(Yl, { item: u }),
6671
6738
  /* @__PURE__ */ y("div", {
6672
6739
  className: Z.right,
6673
- children: [/* @__PURE__ */ v(Jl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ v("div", {
6740
+ children: [/* @__PURE__ */ v(Xl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ v("div", {
6674
6741
  className: Z.actions,
6675
6742
  children: /* @__PURE__ */ v(Ji, { actions: h })
6676
6743
  })]
@@ -6678,10 +6745,10 @@ var Cr = /* @__PURE__ */ function(e) {
6678
6745
  ]
6679
6746
  })
6680
6747
  });
6681
- }, Ju = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ v("div", {
6682
- className: Ku.placeholder,
6748
+ }, Xu = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ v("div", {
6749
+ className: Ju.placeholder,
6683
6750
  style: { left: `calc(${t} * ${e})` }
6684
- }), Yu = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: l, itemHasChild: u, onItemToggle: d, icons: f, allowParentReassignment: m, stickyHeader: h, height: g, render: _, placeholderIndent: b }) => {
6751
+ }), Zu = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: l, itemHasChild: u, onItemToggle: d, icons: f, allowParentReassignment: m, stickyHeader: h, height: g, render: _, placeholderIndent: b }) => {
6685
6752
  var x;
6686
6753
  let S = l == null ? p(null) : l, C = (e) => {
6687
6754
  i && i(e);
@@ -6739,7 +6806,7 @@ var Cr = /* @__PURE__ */ function(e) {
6739
6806
  "data-testid": a,
6740
6807
  className: Z.list,
6741
6808
  style: { height: g },
6742
- children: [e.name && !e.noHeader && /* @__PURE__ */ v(Wl, {
6809
+ children: [e.name && !e.noHeader && /* @__PURE__ */ v(Kl, {
6743
6810
  name: e.name,
6744
6811
  actions: e.actions,
6745
6812
  stickyHeader: h
@@ -6766,7 +6833,7 @@ var Cr = /* @__PURE__ */ function(e) {
6766
6833
  hasChild: r,
6767
6834
  isOpen: a,
6768
6835
  onToggle: o
6769
- }) : /* @__PURE__ */ v(qu, {
6836
+ }) : /* @__PURE__ */ v(Yu, {
6770
6837
  hasChild: u ? u(e) : r,
6771
6838
  node: e,
6772
6839
  depth: t,
@@ -6782,7 +6849,7 @@ var Cr = /* @__PURE__ */ function(e) {
6782
6849
  onDrop: A,
6783
6850
  onChangeOpen: C,
6784
6851
  dropTargetOffset: 10,
6785
- placeholderRender: (e, { depth: t }) => /* @__PURE__ */ v(Ju, {
6852
+ placeholderRender: (e, { depth: t }) => /* @__PURE__ */ v(Xu, {
6786
6853
  depth: t,
6787
6854
  indent: b
6788
6855
  }),
@@ -6790,17 +6857,17 @@ var Cr = /* @__PURE__ */ function(e) {
6790
6857
  listComponent: "div",
6791
6858
  listItemComponent: "div",
6792
6859
  classes: {
6793
- root: Ku.tree,
6794
- draggingSource: Ku.draggingSource,
6795
- dropTarget: Ku.dropTarget,
6796
- placeholder: Ku.placeholderContainer
6860
+ root: Ju.tree,
6861
+ draggingSource: Ju.draggingSource,
6862
+ dropTarget: Ju.dropTarget,
6863
+ placeholder: Ju.placeholderContainer
6797
6864
  },
6798
6865
  initialOpen: o,
6799
6866
  enableAnimateExpand: !0
6800
6867
  })
6801
6868
  })]
6802
6869
  });
6803
- }, Xu = {
6870
+ }, Qu = {
6804
6871
  treeTable: "_treeTable_1ywvy_1",
6805
6872
  treeTableHeader: "_treeTableHeader_1ywvy_22",
6806
6873
  folderCell: "_folderCell_1ywvy_30",
@@ -6808,48 +6875,48 @@ var Cr = /* @__PURE__ */ function(e) {
6808
6875
  drag: "_drag_1ywvy_31",
6809
6876
  folder: "_folder_1ywvy_30",
6810
6877
  active: "_active_1ywvy_61"
6811
- }, Zu = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Zu(e, t.id)]), Qu = (e, t) => {
6878
+ }, $u = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...$u(e, t.id)]), ed = (e, t) => {
6812
6879
  let n = new Set(t);
6813
6880
  return e.filter((e) => !n.has(e.id)).map((e) => e.id);
6814
- }, $u = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), ed = (e, t, n, r = []) => {
6881
+ }, td = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), nd = (e, t, n, r = []) => {
6815
6882
  let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
6816
6883
  if (o.length === 0) return {
6817
6884
  checked: i.has(t),
6818
6885
  indeterminate: !1
6819
6886
  };
6820
- let s = o.map((t) => ed(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
6887
+ let s = o.map((t) => nd(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
6821
6888
  return {
6822
6889
  checked: u,
6823
6890
  indeterminate: c + l > 0 && !u
6824
6891
  };
6825
- }, td = (e, t, n = []) => {
6826
- let r = Qu(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
6892
+ }, rd = (e, t, n = []) => {
6893
+ let r = ed(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
6827
6894
  return {
6828
6895
  checked: r.length > 0 && a === r.length,
6829
6896
  indeterminate: a > 0 && a < r.length
6830
6897
  };
6831
- }, nd = n(null), rd = () => s(nd), id = ({ children: e, rowCheckboxes: t, rows: n }) => {
6898
+ }, id = n(null), ad = () => s(id), od = ({ children: e, rowCheckboxes: t, rows: n }) => {
6832
6899
  let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: s, onChange: c } = t == null ? {} : t, l = d(() => new Set(a), [a]), u = d(() => {
6833
6900
  if (!r) return null;
6834
6901
  let e = /* @__PURE__ */ new Map();
6835
- for (let t of n) e.set(t.id, ed(n, t.id, i, a));
6902
+ for (let t of n) e.set(t.id, nd(n, t.id, i, a));
6836
6903
  return e;
6837
6904
  }, [
6838
6905
  i,
6839
6906
  a,
6840
6907
  r,
6841
6908
  n
6842
- ]), f = d(() => r ? td(n, i, a) : void 0, [
6909
+ ]), f = d(() => r ? rd(n, i, a) : void 0, [
6843
6910
  i,
6844
6911
  a,
6845
6912
  r,
6846
6913
  n
6847
6914
  ]), p = o((e) => u == null ? void 0 : u.get(e), [u]), m = o((e) => l.has(e), [l]), h = o((e) => s == null ? void 0 : s(e), [s]), g = o((e) => {
6848
6915
  if (!r || l.has(e)) return;
6849
- let t = Zu(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = ed(n, e, i, a);
6916
+ let t = $u(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = nd(n, e, i, a);
6850
6917
  if (u) {
6851
6918
  let e = new Set(s);
6852
- c == null || c($u(i, e, l));
6919
+ c == null || c(td(i, e, l));
6853
6920
  } else c == null || c([...new Set([...i, ...o])]);
6854
6921
  }, [
6855
6922
  i,
@@ -6860,7 +6927,7 @@ var Cr = /* @__PURE__ */ function(e) {
6860
6927
  n
6861
6928
  ]), _ = o(() => {
6862
6929
  if (!r) return;
6863
- let e = Qu(n, a), { checked: t } = td(n, i, a);
6930
+ let e = ed(n, a), { checked: t } = rd(n, i, a);
6864
6931
  t ? c == null || c(i.filter((e) => l.has(e))) : c == null || c([...new Set([...i, ...e])]);
6865
6932
  }, [
6866
6933
  i,
@@ -6886,12 +6953,12 @@ var Cr = /* @__PURE__ */ function(e) {
6886
6953
  _,
6887
6954
  g
6888
6955
  ]);
6889
- return /* @__PURE__ */ v(nd.Provider, {
6956
+ return /* @__PURE__ */ v(id.Provider, {
6890
6957
  value: y,
6891
6958
  children: e
6892
6959
  });
6893
- }, ad = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
6894
- let h = rd(), _ = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, b = _ == null ? void 0 : _.checked, x = _ == null ? void 0 : _.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
6960
+ }, sd = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
6961
+ let h = ad(), _ = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, b = _ == null ? void 0 : _.checked, x = _ == null ? void 0 : _.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
6895
6962
  let r = t ? t[e] : void 0;
6896
6963
  return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
6897
6964
  };
@@ -6904,12 +6971,12 @@ var Cr = /* @__PURE__ */ function(e) {
6904
6971
  onDragLeave: f,
6905
6972
  children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ y("tr", {
6906
6973
  onClick: j,
6907
- className: g(Xu.treeTableRow, A ? Xu.active : void 0),
6974
+ className: g(Qu.treeTableRow, A ? Qu.active : void 0),
6908
6975
  children: [
6909
- C && /* @__PURE__ */ v(pc, {
6976
+ C && /* @__PURE__ */ v(hc, {
6910
6977
  isHeader: !1,
6911
6978
  cell: {
6912
- type: fc.CHECKBOX,
6979
+ type: mc.CHECKBOX,
6913
6980
  checked: b,
6914
6981
  disabled: S,
6915
6982
  indeterminate: x,
@@ -6918,19 +6985,19 @@ var Cr = /* @__PURE__ */ function(e) {
6918
6985
  }
6919
6986
  }),
6920
6987
  r && /* @__PURE__ */ v("td", {
6921
- className: Xu.dragCell,
6988
+ className: Qu.dragCell,
6922
6989
  children: /* @__PURE__ */ v("div", {
6923
- className: Xu.drag,
6990
+ className: Qu.drag,
6924
6991
  onClick: (e) => e.stopPropagation(),
6925
6992
  ref: i,
6926
6993
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
6927
6994
  })
6928
6995
  }),
6929
- Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: Xu.folderCell }, t)),
6996
+ Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: Qu.folderCell }, t)),
6930
6997
  M && /* @__PURE__ */ v("td", {
6931
- className: Xu.folderCell,
6998
+ className: Qu.folderCell,
6932
6999
  children: /* @__PURE__ */ v("div", {
6933
- className: Xu.folder,
7000
+ className: Qu.folder,
6934
7001
  onClick: () => m(E),
6935
7002
  onMouseDown: (e) => e.stopPropagation(),
6936
7003
  children: /* @__PURE__ */ v(K, {
@@ -6943,69 +7010,69 @@ var Cr = /* @__PURE__ */ function(e) {
6943
7010
  })
6944
7011
  })
6945
7012
  }),
6946
- D.map((t, n) => /* @__PURE__ */ v(pc, {
7013
+ D.map((t, n) => /* @__PURE__ */ v(hc, {
6947
7014
  isHeader: !1,
6948
7015
  cell: t,
6949
7016
  width: N(n),
6950
7017
  columnAlignment: e ? e[n] : null
6951
7018
  }, n)),
6952
- o && /* @__PURE__ */ v(pc, {
7019
+ o && /* @__PURE__ */ v(hc, {
6953
7020
  isHeader: !1,
6954
7021
  cell: {
6955
- type: fc.ACTIONS,
7022
+ type: mc.ACTIONS,
6956
7023
  actions: k
6957
7024
  }
6958
7025
  })
6959
7026
  ]
6960
7027
  }) })
6961
7028
  });
6962
- }, od = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
6963
- let a = rd(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
7029
+ }, cd = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
7030
+ let a = ad(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
6964
7031
  return /* @__PURE__ */ v("table", {
6965
- className: g(mo.table, Xu.treeTableHeader),
7032
+ className: g(mo.table, Qu.treeTableHeader),
6966
7033
  children: /* @__PURE__ */ v("thead", { children: i.map((i, c) => /* @__PURE__ */ y("tr", { children: [
6967
- s && c === 0 ? /* @__PURE__ */ v(pc, {
7034
+ s && c === 0 ? /* @__PURE__ */ v(hc, {
6968
7035
  isHeader: !0,
6969
7036
  cell: {
6970
- type: fc.CHECKBOX,
7037
+ type: mc.CHECKBOX,
6971
7038
  checked: o.checked,
6972
7039
  indeterminate: o.indeterminate,
6973
7040
  onChange: a.toggleHeaderCheck
6974
7041
  }
6975
7042
  }) : s ? /* @__PURE__ */ v("td", {}) : null,
6976
- n && /* @__PURE__ */ v("th", { className: Xu.dragCell }),
6977
- i.cells.map((n, r) => /* @__PURE__ */ v(pc, {
7043
+ n && /* @__PURE__ */ v("th", { className: Qu.dragCell }),
7044
+ i.cells.map((n, r) => /* @__PURE__ */ v(hc, {
6978
7045
  isHeader: !0,
6979
7046
  cell: n,
6980
7047
  width: t ? t[r] : void 0,
6981
7048
  columnAlignment: e ? e[r] : void 0
6982
7049
  }, r)),
6983
- r && /* @__PURE__ */ v(pc, {
7050
+ r && /* @__PURE__ */ v(hc, {
6984
7051
  isHeader: !0,
6985
7052
  cell: {
6986
- type: fc.ACTIONS,
7053
+ type: mc.ACTIONS,
6987
7054
  actions: i.actions,
6988
7055
  width: 31
6989
7056
  }
6990
7057
  })
6991
7058
  ] }, c)) })
6992
7059
  });
6993
- }, sd = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
7060
+ }, ld = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
6994
7061
  let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: b = [] } = d, x = Fs(b, _ == null ? [] : _);
6995
- return /* @__PURE__ */ v(id, {
7062
+ return /* @__PURE__ */ v(od, {
6996
7063
  rowCheckboxes: u,
6997
7064
  rows: b,
6998
7065
  children: /* @__PURE__ */ y("div", {
6999
- className: Xu.treeTable,
7066
+ className: Qu.treeTable,
7000
7067
  "data-testid": f,
7001
7068
  style: { width: g },
7002
- children: [!!_ && /* @__PURE__ */ v(od, {
7069
+ children: [!!_ && /* @__PURE__ */ v(cd, {
7003
7070
  columnAlignment: m,
7004
7071
  columnWidths: h,
7005
7072
  draggable: r,
7006
7073
  hasRowActions: x,
7007
7074
  headers: _
7008
- }), /* @__PURE__ */ v(Yu, {
7075
+ }), /* @__PURE__ */ v(Zu, {
7009
7076
  allowParentReassignment: e,
7010
7077
  autoOpenActiveItems: t,
7011
7078
  canDrop: n,
@@ -7021,7 +7088,7 @@ var Cr = /* @__PURE__ */ function(e) {
7021
7088
  onItemToggle: s,
7022
7089
  onListReorder: c,
7023
7090
  placeholderIndent: "var(--size)",
7024
- render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(ad, {
7091
+ render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(sd, {
7025
7092
  node: e,
7026
7093
  columnAlignment: m,
7027
7094
  columnWidths: h,
@@ -7038,38 +7105,38 @@ var Cr = /* @__PURE__ */ function(e) {
7038
7105
  })]
7039
7106
  })
7040
7107
  });
7041
- }, cd = () => {
7108
+ }, ud = () => {
7042
7109
  let e = p(null);
7043
7110
  return u(() => {
7044
7111
  e.current && (e.current(), e.current = null);
7045
7112
  }), (t) => {
7046
7113
  e.current = t;
7047
7114
  };
7048
- }, ld = (e) => {
7115
+ }, dd = (e) => {
7049
7116
  let t = p(void 0);
7050
7117
  return c(() => {
7051
7118
  t.current = e;
7052
7119
  }, [e]), t.current;
7053
- }, ud = (e, t) => {
7120
+ }, fd = (e, t) => {
7054
7121
  let n = t == null ? void 0 : t[e];
7055
7122
  if (!n) {
7056
7123
  var r;
7057
7124
  return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Un(e)) == null ? "" : r;
7058
7125
  }
7059
7126
  return n;
7060
- }, dd = /* @__PURE__ */ function(e) {
7127
+ }, pd = /* @__PURE__ */ function(e) {
7061
7128
  return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
7062
- }({}), fd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), pd = (e) => {
7129
+ }({}), md = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), hd = (e) => {
7063
7130
  if (!e) return !1;
7064
7131
  let t = Dn(e);
7065
7132
  return !xn.includes(t);
7066
- }, md = ({ value: e, unitkey: t, toUnit: n }) => {
7133
+ }, gd = ({ value: e, unitkey: t, toUnit: n }) => {
7067
7134
  var r;
7068
7135
  let i = bn[t];
7069
7136
  if (!i || i.length === 0 || !((r = Wn(e)) != null && r.valid) || !i.includes(n)) return !1;
7070
7137
  let a = Dn(String(e));
7071
7138
  return !(a && !i.includes(a));
7072
- }, hd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
7139
+ }, _d = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
7073
7140
  var o;
7074
7141
  let s = Nn(e) ? kn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
7075
7142
  if (i || c) return {
@@ -7089,13 +7156,13 @@ var Cr = /* @__PURE__ */ function(e) {
7089
7156
  value: void 0,
7090
7157
  error: "Source unit is missing"
7091
7158
  };
7092
- if (fd(s)) return {
7159
+ if (md(s)) return {
7093
7160
  value: void 0,
7094
7161
  error: "Value is invalid for conversion"
7095
7162
  };
7096
7163
  try {
7097
7164
  let e = Kn(s, l);
7098
- return md({
7165
+ return gd({
7099
7166
  value: e,
7100
7167
  toUnit: n,
7101
7168
  unitkey: t
@@ -7112,13 +7179,13 @@ var Cr = /* @__PURE__ */ function(e) {
7112
7179
  error: "Conversion not possible"
7113
7180
  };
7114
7181
  }
7115
- }, gd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
7116
- let a = kn(e), o = fd(a);
7117
- return !md({
7182
+ }, vd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
7183
+ let a = kn(e), o = md(a);
7184
+ return !gd({
7118
7185
  value: e,
7119
7186
  unitkey: n,
7120
7187
  toUnit: t
7121
- }) || pd(e) || o ? { value: a } : Nn(e) ? hd({
7188
+ }) || hd(e) || o ? { value: a } : Nn(e) ? _d({
7122
7189
  value: e,
7123
7190
  unitkey: n,
7124
7191
  toUnit: t,
@@ -7126,25 +7193,25 @@ var Cr = /* @__PURE__ */ function(e) {
7126
7193
  doNotConvertValue: i,
7127
7194
  exactPrecision: !0
7128
7195
  }) : { value: e };
7129
- }, _d = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", vd = (e = "") => xn == null ? void 0 : xn.includes(e), yd = (e, t) => {
7196
+ }, yd = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", bd = (e = "") => xn == null ? void 0 : xn.includes(e), xd = (e, t) => {
7130
7197
  let n = Dn(e || "");
7131
- return vd(t) && vd(n);
7132
- }, bd = n(null), xd = () => s(bd), Sd = !1, Cd = (e) => {
7133
- Sd || (Sd = !0, bd = e);
7134
- }, wd = (e) => jn(e) ? e : Fn(e), Td = {
7198
+ return bd(t) && bd(n);
7199
+ }, Sd = n(null), Cd = () => s(Sd), wd = !1, Td = (e) => {
7200
+ wd || (wd = !0, Sd = e);
7201
+ }, Ed = (e) => jn(e) ? e : Fn(e), Dd = {
7135
7202
  predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
7136
7203
  inputWrapper: "_inputWrapper_ye9w9_4"
7137
- }, Ed = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: l, unitkey: u = "", initUnit: f, noConversion: p = !1, onChange: h = pn, onClick: b = pn, onFocus: x = pn, onSwitchUnit: S = pn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
7204
+ }, Od = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: l, unitkey: u = "", initUnit: f, noConversion: p = !1, onChange: h = pn, onClick: b = pn, onFocus: x = pn, onSwitchUnit: S = pn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
7138
7205
  name: "",
7139
7206
  error: null
7140
7207
  }), disabledValidation: j = !1, allowEmpty: M = !1, convertBackToStorageUnit: N = !1, enableCosmeticRounding: P = !0, enableDisplayRounding: F = !1, roundDisplayValue: I, selectOnFocus: ee = !0, groupOrder: L, tooltip: te = null }) => {
7141
- let ne = xd(), re = cd();
7208
+ let ne = Cd(), re = ud();
7142
7209
  typeof l == "number" && (l = `${l}`);
7143
- let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => ud(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
7210
+ let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => fd(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
7144
7211
  u,
7145
7212
  C,
7146
7213
  ne == null ? void 0 : ne.unitTemplate
7147
- ]), oe = yd(l, R), se = f || R || ae, ce = ld(se), { value: le } = gd({
7214
+ ]), oe = xd(l, R), se = f || R || ae, ce = dd(se), { value: le } = vd({
7148
7215
  value: l,
7149
7216
  toUnit: se,
7150
7217
  unitkey: u,
@@ -7156,10 +7223,10 @@ var Cr = /* @__PURE__ */ function(e) {
7156
7223
  } : {
7157
7224
  value: le,
7158
7225
  unit: se
7159
- }), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ? dd.PREDEFINED : dd.CUSTOM), me = !!(j || n), he = E && E.find((e) => {
7226
+ }), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ? pd.PREDEFINED : pd.CUSTOM), me = !!(j || n), he = E && E.find((e) => {
7160
7227
  if (!(e != null && e.value)) return;
7161
7228
  if (k) return k === e.valueKey;
7162
- let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = hd({
7229
+ let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = _d({
7163
7230
  value: String(l),
7164
7231
  unitkey: u,
7165
7232
  toUnit: t
@@ -7168,7 +7235,7 @@ var Cr = /* @__PURE__ */ function(e) {
7168
7235
  }), ge = () => {
7169
7236
  var e;
7170
7237
  let t = (e = l) == null ? "" : e, n = z.unit;
7171
- if (!md({
7238
+ if (!gd({
7172
7239
  value: t,
7173
7240
  unitkey: u,
7174
7241
  toUnit: n
@@ -7182,7 +7249,7 @@ var Cr = /* @__PURE__ */ function(e) {
7182
7249
  return null;
7183
7250
  }
7184
7251
  }, _e = (t) => {
7185
- let n = _d(e), r = t.target, { value: i, selectionStart: a } = r, o = Kn(i, (z == null ? void 0 : z.unit) || "");
7252
+ let n = yd(e), r = t.target, { value: i, selectionStart: a } = r, o = Kn(i, (z == null ? void 0 : z.unit) || "");
7186
7253
  h({ target: {
7187
7254
  value: N ? Kn(wn(o, ae), ae) : o,
7188
7255
  name: n
@@ -7204,7 +7271,7 @@ var Cr = /* @__PURE__ */ function(e) {
7204
7271
  if (se) {
7205
7272
  let e, t = "";
7206
7273
  if (ce !== se) {
7207
- let { value: n } = gd({
7274
+ let { value: n } = vd({
7208
7275
  value: l,
7209
7276
  toUnit: se,
7210
7277
  unitkey: u,
@@ -7213,7 +7280,7 @@ var Cr = /* @__PURE__ */ function(e) {
7213
7280
  });
7214
7281
  e = n, t = se;
7215
7282
  } else if (Kn(z.value, z.unit) !== l) {
7216
- let { value: n } = gd({
7283
+ let { value: n } = vd({
7217
7284
  value: l,
7218
7285
  toUnit: z.unit,
7219
7286
  unitkey: u,
@@ -7225,7 +7292,7 @@ var Cr = /* @__PURE__ */ function(e) {
7225
7292
  e !== void 0 && ue({
7226
7293
  value: e,
7227
7294
  unit: t
7228
- }), pe(E && he && O ? dd.PREDEFINED : dd.CUSTOM);
7295
+ }), pe(E && he && O ? pd.PREDEFINED : pd.CUSTOM);
7229
7296
  }
7230
7297
  }, [
7231
7298
  se,
@@ -7233,14 +7300,14 @@ var Cr = /* @__PURE__ */ function(e) {
7233
7300
  i,
7234
7301
  O
7235
7302
  ]);
7236
- let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = _d(e), Ce, we = (t) => {
7303
+ let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = yd(e), Ce, we = (t) => {
7237
7304
  let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Nn(r) ? zn(r) : [r], o = Gn(r);
7238
- if (md({
7305
+ if (gd({
7239
7306
  value: r,
7240
7307
  unitkey: u,
7241
7308
  toUnit: a
7242
7309
  })) {
7243
- let { value: e = "" } = gd({
7310
+ let { value: e = "" } = vd({
7244
7311
  value: r,
7245
7312
  toUnit: R,
7246
7313
  unitkey: u,
@@ -7253,7 +7320,7 @@ var Cr = /* @__PURE__ */ function(e) {
7253
7320
  type: xi.OPTION,
7254
7321
  inline: !0,
7255
7322
  onClick: () => {
7256
- Wn(i).valid && !n && (pe(dd.PREDEFINED), h({ target: {
7323
+ Wn(i).valid && !n && (pe(pd.PREDEFINED), h({ target: {
7257
7324
  value: r,
7258
7325
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
7259
7326
  predefinedSelected: !0,
@@ -7265,27 +7332,27 @@ var Cr = /* @__PURE__ */ function(e) {
7265
7332
  height: "0"
7266
7333
  })] }),
7267
7334
  description: o,
7268
- selected: he === t && fe === dd.PREDEFINED
7335
+ selected: he === t && fe === pd.PREDEFINED
7269
7336
  };
7270
7337
  };
7271
7338
  if (Ce = [{
7272
7339
  type: xi.OPTION,
7273
7340
  inline: !0,
7274
7341
  onClick: () => {
7275
- fe !== dd.CUSTOM && !n && h({ target: {
7342
+ fe !== pd.CUSTOM && !n && h({ target: {
7276
7343
  value: Kn(z.value, z.unit),
7277
7344
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
7278
7345
  } });
7279
7346
  },
7280
7347
  label: "Custom",
7281
- selected: fe === dd.CUSTOM
7348
+ selected: fe === pd.CUSTOM
7282
7349
  }], E != null && E.length) {
7283
7350
  let e = E.map(we);
7284
7351
  Ce = [...Ce, ...e];
7285
7352
  }
7286
7353
  let Te = (e) => {
7287
7354
  if (Nn(e)) {
7288
- let t = Dn(e), { value: n } = gd({
7355
+ let t = Dn(e), { value: n } = vd({
7289
7356
  value: e,
7290
7357
  toUnit: z.unit,
7291
7358
  unitkey: u,
@@ -7297,7 +7364,7 @@ var Cr = /* @__PURE__ */ function(e) {
7297
7364
  return e;
7298
7365
  }, Ee = !E && (!L || L === B.FIRST) ? B.FIRST : B.MIDDLE, De = !L || L === B.LAST ? B.LAST : B.MIDDLE;
7299
7366
  return /* @__PURE__ */ v("div", {
7300
- className: fe === dd.PREDEFINED ? g(Td.predefinedMenuActive) : "",
7367
+ className: fe === pd.PREDEFINED ? g(Dd.predefinedMenuActive) : "",
7301
7368
  children: /* @__PURE__ */ y(Ma, {
7302
7369
  small: o,
7303
7370
  width: s,
@@ -7312,17 +7379,17 @@ var Cr = /* @__PURE__ */ function(e) {
7312
7379
  trigger: "Component",
7313
7380
  component: /* @__PURE__ */ v(K, {
7314
7381
  groupOrder: "first",
7315
- active: fe === dd.PREDEFINED,
7316
- icon: fe === dd.PREDEFINED ? "link" : "unlink",
7382
+ active: fe === pd.PREDEFINED,
7383
+ icon: fe === pd.PREDEFINED ? "link" : "unlink",
7317
7384
  small: o
7318
7385
  }),
7319
7386
  small: o,
7320
7387
  sections: Ce
7321
7388
  },
7322
- tooltip: fe === dd.PREDEFINED ? he == null ? void 0 : he.label : ""
7389
+ tooltip: fe === pd.PREDEFINED ? he == null ? void 0 : he.label : ""
7323
7390
  }),
7324
7391
  /* @__PURE__ */ v("div", {
7325
- className: Td.inputWrapper,
7392
+ className: Dd.inputWrapper,
7326
7393
  children: /* @__PURE__ */ v(Gs, {
7327
7394
  name: Se,
7328
7395
  testId: w,
@@ -7364,7 +7431,7 @@ var Cr = /* @__PURE__ */ function(e) {
7364
7431
  let r = n || t || "", i = Mn(e) ? e : "";
7365
7432
  return {
7366
7433
  type: "Option",
7367
- label: P ? wd(i) : i,
7434
+ label: P ? Ed(i) : i,
7368
7435
  inline: !0,
7369
7436
  onClick: (n) => {
7370
7437
  n.stopPropagation(), ve(e, t);
@@ -7379,10 +7446,10 @@ var Cr = /* @__PURE__ */ function(e) {
7379
7446
  ]
7380
7447
  })
7381
7448
  });
7382
- }, Dd = Object.freeze({
7449
+ }, kd = Object.freeze({
7383
7450
  Translations: "translations",
7384
7451
  LanguageKey: "languageKey"
7385
- }), Od = {
7452
+ }), Ad = {
7386
7453
  unified: "Unified",
7387
7454
  split: "Split",
7388
7455
  changesTooLarge: "Changes are too large to be shown",
@@ -7404,29 +7471,29 @@ var Cr = /* @__PURE__ */ function(e) {
7404
7471
  pluralChanges: "changes",
7405
7472
  showAll: "Show all",
7406
7473
  unknown: "Unknown"
7407
- }, kd = (e) => Object.keys(Od).reduce((t, n) => ({
7474
+ }, jd = (e) => Object.keys(Ad).reduce((t, n) => ({
7408
7475
  ...t,
7409
- [n]: (e == null ? void 0 : e[n]) || (Od == null ? void 0 : Od[n])
7410
- }), {}), Ad = {
7411
- [Dd.Translations]: kd(),
7412
- [Dd.LanguageKey]: "en"
7413
- }, jd = (e) => e ? Ad[e] : Ad, Md = (e, t) => {
7414
- Ad[e] = t;
7415
- }, Nd = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
7476
+ [n]: (e == null ? void 0 : e[n]) || (Ad == null ? void 0 : Ad[n])
7477
+ }), {}), Md = {
7478
+ [kd.Translations]: jd(),
7479
+ [kd.LanguageKey]: "en"
7480
+ }, Nd = (e) => e ? Md[e] : Md, Pd = (e, t) => {
7481
+ Md[e] = t;
7482
+ }, Fd = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
7416
7483
  var a;
7417
- let { unitTemplate: o = null } = (a = xd()) == null ? {} : a;
7418
- return e[n] = r == null ? ud(n, o) : r, t[n] = i, {
7484
+ let { unitTemplate: o = null } = (a = Cd()) == null ? {} : a;
7485
+ return e[n] = r == null ? fd(n, o) : r, t[n] = i, {
7419
7486
  preferredUnits: e,
7420
7487
  storageUnits: t
7421
7488
  };
7422
7489
  }, {
7423
7490
  preferredUnits: {},
7424
7491
  storageUnits: {}
7425
- }), Pd = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
7492
+ }), Id = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
7426
7493
  ...e,
7427
7494
  cells: e.cells.map((e, s) => {
7428
7495
  if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
7429
- let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } = hd({
7496
+ let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } = _d({
7430
7497
  value: Hs(l),
7431
7498
  unitkey: c,
7432
7499
  toUnit: f,
@@ -7440,7 +7507,7 @@ var Cr = /* @__PURE__ */ function(e) {
7440
7507
  roundDisplayValue: d,
7441
7508
  selectOnFocus: !0,
7442
7509
  onChange: (n) => {
7443
- let { value: r } = n.target, a = i ? p : f, { value: o = r } = hd({
7510
+ let { value: r } = n.target, a = i ? p : f, { value: o = r } = _d({
7444
7511
  value: String(r),
7445
7512
  unitkey: c,
7446
7513
  toUnit: a,
@@ -7464,17 +7531,17 @@ var Cr = /* @__PURE__ */ function(e) {
7464
7531
  }
7465
7532
  return e;
7466
7533
  })
7467
- }), Fd = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7468
- let { translations: i } = jd();
7534
+ }), Ld = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7535
+ let { translations: i } = Nd();
7469
7536
  return e ? e.map((e) => ({
7470
7537
  ...e,
7471
7538
  cells: e.cells.map((e) => {
7472
- if (e.type === fc.AUTO_UNIT) {
7539
+ if (e.type === mc.AUTO_UNIT) {
7473
7540
  var a;
7474
7541
  let { testId: o, unitKey: s, disabled: c = !1, error: l } = e, u = n[s];
7475
7542
  return {
7476
7543
  value: u && t[s],
7477
- type: fc.SELECT,
7544
+ type: mc.SELECT,
7478
7545
  error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
7479
7546
  disabled: c || !u,
7480
7547
  searchable: !1,
@@ -7494,8 +7561,8 @@ var Cr = /* @__PURE__ */ function(e) {
7494
7561
  return e;
7495
7562
  })
7496
7563
  })) : [];
7497
- }, Id = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: s, beforeRenderRow: l }) => {
7498
- let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Nd(t), h = ld(p), [g, _] = m(p), y = ({ unitKey: e, value: n }) => {
7564
+ }, Rd = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: s, beforeRenderRow: l }) => {
7565
+ let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Fd(t), h = dd(p), [g, _] = m(p), y = ({ unitKey: e, value: n }) => {
7499
7566
  _({
7500
7567
  ...g,
7501
7568
  [e]: n
@@ -7506,7 +7573,7 @@ var Cr = /* @__PURE__ */ function(e) {
7506
7573
  newUnit: n,
7507
7574
  unitKey: e
7508
7575
  });
7509
- }, b = o(({ row: e, rowIndex: t }) => Pd({
7576
+ }, b = o(({ row: e, rowIndex: t }) => Id({
7510
7577
  row: l ? l({
7511
7578
  row: e,
7512
7579
  rowIndex: t
@@ -7532,10 +7599,10 @@ var Cr = /* @__PURE__ */ function(e) {
7532
7599
  value: n
7533
7600
  });
7534
7601
  });
7535
- }, [t]), /* @__PURE__ */ v(Sc, {
7602
+ }, [t]), /* @__PURE__ */ v(wc, {
7536
7603
  table: {
7537
7604
  ...d,
7538
- headers: Fd({
7605
+ headers: Ld({
7539
7606
  headers: e.headers,
7540
7607
  selectedUnits: g,
7541
7608
  storageUnits: f,
@@ -7546,8 +7613,8 @@ var Cr = /* @__PURE__ */ function(e) {
7546
7613
  canListReorder: s,
7547
7614
  beforeRenderRow: b
7548
7615
  });
7549
- }, Ld = { settingField: "_settingField_1x02n_1" }, Rd = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
7550
- let { translations: d } = jd(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ y(e.Fragment, { children: [t, /* @__PURE__ */ v("br", {})] }, n)), p = [
7616
+ }, zd = { settingField: "_settingField_1x02n_1" }, Bd = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
7617
+ let { translations: d } = Nd(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ y(e.Fragment, { children: [t, /* @__PURE__ */ v("br", {})] }, n)), p = [
7551
7618
  ...r ? [] : [{
7552
7619
  label: d == null ? void 0 : d.allUsers,
7553
7620
  value: !1
@@ -7562,14 +7629,14 @@ var Cr = /* @__PURE__ */ function(e) {
7562
7629
  }] : []
7563
7630
  ], m = a !== void 0 && o !== void 0 && !an(a, o);
7564
7631
  return /* @__PURE__ */ y("div", {
7565
- className: Ld.settingField,
7632
+ className: zd.settingField,
7566
7633
  "data-testid": u,
7567
- children: [/* @__PURE__ */ y(Il, {
7634
+ children: [/* @__PURE__ */ y(Rl, {
7568
7635
  justifyContent: "space-between",
7569
7636
  wrap: !1,
7570
7637
  children: [i, !s && /* @__PURE__ */ v("div", {
7571
7638
  style: { flexShrink: 0 },
7572
- children: /* @__PURE__ */ y(Il, {
7639
+ children: /* @__PURE__ */ y(Rl, {
7573
7640
  gap: "8px",
7574
7641
  alignItems: "center",
7575
7642
  children: [m && /* @__PURE__ */ v(si, {
@@ -7594,19 +7661,19 @@ var Cr = /* @__PURE__ */ function(e) {
7594
7661
  children: f(t)
7595
7662
  })]
7596
7663
  });
7597
- }, zd = (e, t) => {
7664
+ }, Vd = (e, t) => {
7598
7665
  let n = e.replace(/\r\n/g, "\n").split("\n"), r = t.replace(/\r\n/g, "\n").split("\n"), i = r.length - n.length, a = n.length - r.length;
7599
7666
  return {
7600
7667
  added: Math.max(0, i),
7601
7668
  removed: Math.max(0, a)
7602
7669
  };
7603
- }, Bd = "split", Vd = "unified", Hd = ({ oldJson: e, newJson: t, viewType: n = Bd }) => {
7670
+ }, Hd = "split", Ud = "unified", Wd = ({ oldJson: e, newJson: t, viewType: n = Hd }) => {
7604
7671
  var r, i;
7605
- let { translations: a } = jd(), [o, s] = m(n), l = [{
7606
- value: Bd,
7672
+ let { translations: a } = Nd(), [o, s] = m(n), l = [{
7673
+ value: Hd,
7607
7674
  label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
7608
7675
  }, {
7609
- value: Vd,
7676
+ value: Ud,
7610
7677
  label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
7611
7678
  }];
7612
7679
  c(() => {
@@ -7614,10 +7681,10 @@ var Cr = /* @__PURE__ */ function(e) {
7614
7681
  }, [n]);
7615
7682
  let u = ({ target: { value: e } }) => {
7616
7683
  s(e);
7617
- }, { added: d, removed: f } = zd(e, t), p = d + f > 3500;
7684
+ }, { added: d, removed: f } = Vd(e, t), p = d + f > 3500;
7618
7685
  return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(na, {
7619
7686
  bordered: !0,
7620
- heading: /* @__PURE__ */ y(Il, {
7687
+ heading: /* @__PURE__ */ y(Rl, {
7621
7688
  gap: !0,
7622
7689
  children: [/* @__PURE__ */ v(ya, { children: /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y(ha, {
7623
7690
  success: !0,
@@ -7629,7 +7696,7 @@ var Cr = /* @__PURE__ */ function(e) {
7629
7696
  }), /* @__PURE__ */ y(ha, {
7630
7697
  error: !0,
7631
7698
  children: ["-", f]
7632
- })] }) }), !p && /* @__PURE__ */ v(mu, {
7699
+ })] }) }), !p && /* @__PURE__ */ v(gu, {
7633
7700
  name: "viewType",
7634
7701
  options: l,
7635
7702
  value: o,
@@ -7647,14 +7714,14 @@ var Cr = /* @__PURE__ */ function(e) {
7647
7714
  }) : /* @__PURE__ */ v(xr, {
7648
7715
  oldValue: e,
7649
7716
  newValue: t,
7650
- splitView: o === Bd,
7717
+ splitView: o === Hd,
7651
7718
  compareMethod: Sr.WORDS
7652
7719
  })
7653
7720
  }) });
7654
7721
  };
7655
7722
  //#endregion
7656
7723
  //#region src/helpers/date.ts
7657
- function Ud({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
7724
+ function Gd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
7658
7725
  return e ? new Date(e).toLocaleString(a, {
7659
7726
  year: "numeric",
7660
7727
  month: "short",
@@ -7668,28 +7735,28 @@ function Ud({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
7668
7735
  }
7669
7736
  //#endregion
7670
7737
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
7671
- function Wd(e) {
7738
+ function Kd(e) {
7672
7739
  var t;
7673
7740
  let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
7674
7741
  if (!n) throw Error("Invalid RegExp");
7675
7742
  return new RegExp((t = n[1]) == null ? "" : t, n[2]);
7676
7743
  }
7677
- function Gd(e) {
7744
+ function qd(e) {
7678
7745
  if (typeof e != "object") return e;
7679
7746
  if (e === null) return null;
7680
- if (Array.isArray(e)) return e.map(Gd);
7747
+ if (Array.isArray(e)) return e.map(qd);
7681
7748
  if (e instanceof Date) return new Date(e.getTime());
7682
- if (e instanceof RegExp) return Wd(e);
7749
+ if (e instanceof RegExp) return Kd(e);
7683
7750
  let t = {};
7684
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Gd(e[n]));
7751
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = qd(e[n]));
7685
7752
  return t;
7686
7753
  }
7687
7754
  //#endregion
7688
7755
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
7689
- function Kd(e, t) {
7756
+ function Jd(e, t) {
7690
7757
  if (e.length === 0) throw Error(t || "Expected a non-empty array");
7691
7758
  }
7692
- var qd = (e) => e[e.length - 1], Jd = class {
7759
+ var Yd = (e) => e[e.length - 1], Xd = class {
7693
7760
  setResult(e) {
7694
7761
  return this.result = e, this.hasResult = !0, this;
7695
7762
  }
@@ -7697,16 +7764,16 @@ var qd = (e) => e[e.length - 1], Jd = class {
7697
7764
  return this.exiting = !0, this;
7698
7765
  }
7699
7766
  push(e, t) {
7700
- return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Kd(this.children), qd(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
7767
+ return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Jd(this.children), Yd(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
7701
7768
  }
7702
- }, Yd = class extends Jd {
7769
+ }, Zd = class extends Xd {
7703
7770
  constructor(e, t) {
7704
7771
  super(), this.left = e, this.right = t, this.pipe = "diff";
7705
7772
  }
7706
7773
  prepareDeltaResult(e) {
7707
7774
  var t, n, r, i;
7708
7775
  if (typeof e == "object" && ((t = this.options) != null && t.omitRemovedValues && Array.isArray(e) && e.length > 1 && (e.length === 2 || e[2] === 0 || e[2] === 3) && (e[0] = 0), (n = this.options) != null && n.cloneDiffValues)) {
7709
- let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Gd;
7776
+ let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : qd;
7710
7777
  typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
7711
7778
  }
7712
7779
  return e;
@@ -7714,15 +7781,15 @@ var qd = (e) => e[e.length - 1], Jd = class {
7714
7781
  setResult(e) {
7715
7782
  return this.prepareDeltaResult(e), super.setResult(e);
7716
7783
  }
7717
- }, Xd = class extends Jd {
7784
+ }, Qd = class extends Xd {
7718
7785
  constructor(e, t) {
7719
7786
  super(), this.left = e, this.delta = t, this.pipe = "patch";
7720
7787
  }
7721
- }, Zd = class extends Jd {
7788
+ }, $d = class extends Xd {
7722
7789
  constructor(e) {
7723
7790
  super(), this.delta = e, this.pipe = "reverse";
7724
7791
  }
7725
- }, Qd = class {
7792
+ }, ef = class {
7726
7793
  constructor(e) {
7727
7794
  this.name = e, this.filters = [];
7728
7795
  }
@@ -7786,7 +7853,7 @@ var qd = (e) => e[e.length - 1], Jd = class {
7786
7853
  }
7787
7854
  }), this);
7788
7855
  }
7789
- }, $d = class {
7856
+ }, tf = class {
7790
7857
  constructor(e) {
7791
7858
  this.selfOptions = e || {}, this.pipes = {};
7792
7859
  }
@@ -7813,7 +7880,7 @@ var qd = (e) => e[e.length - 1], Jd = class {
7813
7880
  for (; r;) n.nextAfterChildren !== void 0 && (n.next = n.nextAfterChildren, n.nextAfterChildren = null), typeof r == "string" && (r = this.pipe(r)), r.process(n), i = r, r = null, n && n.next && (n = n.next, r = n.pipe || i);
7814
7881
  return n.hasResult ? n.result : void 0;
7815
7882
  }
7816
- }, ef = (e, t, n, r) => e[n] === t[r], tf = (e, t, n, r) => {
7883
+ }, nf = (e, t, n, r) => e[n] === t[r], rf = (e, t, n, r) => {
7817
7884
  var i, a, o;
7818
7885
  let s = e.length, c = t.length, l, u, d = Array(s + 1);
7819
7886
  for (l = 0; l < s + 1; l++) {
@@ -7829,7 +7896,7 @@ var qd = (e) => e[e.length - 1], Jd = class {
7829
7896
  for (u = 1; u < c + 1; u++) n(e, t, l - 1, u - 1, r) ? s[u] = ((i = f[u - 1]) == null ? 0 : i) + 1 : s[u] = Math.max((a = f[u]) == null ? 0 : a, (o = s[u - 1]) == null ? 0 : o);
7830
7897
  }
7831
7898
  return d;
7832
- }, nf = (e, t, n, r) => {
7899
+ }, af = (e, t, n, r) => {
7833
7900
  let i = t.length, a = n.length, o = {
7834
7901
  sequence: [],
7835
7902
  indices1: [],
@@ -7851,11 +7918,11 @@ var qd = (e) => e[e.length - 1], Jd = class {
7851
7918
  }
7852
7919
  }
7853
7920
  return o;
7854
- }, rf = { get: (e, t, n, r) => {
7921
+ }, of = { get: (e, t, n, r) => {
7855
7922
  let i = r || {};
7856
- return nf(tf(e, t, n || ef, i), e, t, i);
7857
- } }, af = 3;
7858
- function of(e, t, n, r) {
7923
+ return af(rf(e, t, n || nf, i), e, t, i);
7924
+ } }, sf = 3;
7925
+ function cf(e, t, n, r) {
7859
7926
  for (let i = 0; i < n; i++) {
7860
7927
  let n = e[i];
7861
7928
  for (let e = 0; e < r; e++) {
@@ -7865,7 +7932,7 @@ function of(e, t, n, r) {
7865
7932
  }
7866
7933
  return !1;
7867
7934
  }
7868
- function sf(e, t, n, r, i) {
7935
+ function lf(e, t, n, r, i) {
7869
7936
  let a = e[n], o = t[r];
7870
7937
  if (a === o) return !0;
7871
7938
  if (typeof a != "object" || typeof o != "object") return !1;
@@ -7878,15 +7945,15 @@ function sf(e, t, n, r, i) {
7878
7945
  let l = i.hashCache2[r];
7879
7946
  return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
7880
7947
  }
7881
- var cf = function(e) {
7948
+ var uf = function(e) {
7882
7949
  var t, n, r, i, a;
7883
7950
  if (!e.leftIsArray) return;
7884
7951
  let o = {
7885
7952
  objectHash: (t = e.options) == null ? void 0 : t.objectHash,
7886
7953
  matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
7887
7954
  }, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
7888
- for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !of(f, p, m, h)); s < m && s < h && sf(f, p, s, s, o);) l = s, g = new Yd(f[l], p[l]), e.push(g, l), s++;
7889
- for (; c + s < m && c + s < h && sf(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Yd(f[u], p[d]), e.push(g, d), c++;
7955
+ for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !cf(f, p, m, h)); s < m && s < h && lf(f, p, s, s, o);) l = s, g = new Zd(f[l], p[l]), e.push(g, l), s++;
7956
+ for (; c + s < m && c + s < h && lf(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Zd(f[u], p[d]), e.push(g, d), c++;
7890
7957
  let _;
7891
7958
  if (s + c === m) {
7892
7959
  if (m === h) {
@@ -7910,7 +7977,7 @@ var cf = function(e) {
7910
7977
  return;
7911
7978
  }
7912
7979
  o.hashCache1 = void 0, o.hashCache2 = void 0;
7913
- let v = f.slice(s, m - c), y = p.slice(s, h - c), b = rf.get(v, y, sf, o), x = [];
7980
+ let v = f.slice(s, m - c), y = p.slice(s, h - c), b = of.get(v, y, lf, o), x = [];
7914
7981
  for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
7915
7982
  let t = `_${l}`;
7916
7983
  _[t] = [
@@ -7931,8 +7998,8 @@ var cf = function(e) {
7931
7998
  if (S && w > 0) for (let n = 0; n < w; n++) {
7932
7999
  u = x[n];
7933
8000
  let r = u === void 0 ? void 0 : _[`_${u}`];
7934
- if (u !== void 0 && r && sf(v, y, u - s, l - s, o)) {
7935
- r.splice(1, 2, l, af), r.splice(1, 2, l, af), C || (r[0] = ""), d = l, g = new Yd(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
8001
+ if (u !== void 0 && r && lf(v, y, u - s, l - s, o)) {
8002
+ r.splice(1, 2, l, sf), r.splice(1, 2, l, sf), C || (r[0] = ""), d = l, g = new Zd(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
7936
8003
  break;
7937
8004
  }
7938
8005
  }
@@ -7940,20 +8007,20 @@ var cf = function(e) {
7940
8007
  } else {
7941
8008
  if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
7942
8009
  if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
7943
- d = b.indices2[t] + s, g = new Yd(f[u], p[d]), e.push(g, d);
8010
+ d = b.indices2[t] + s, g = new Zd(f[u], p[d]), e.push(g, d);
7944
8011
  }
7945
8012
  }
7946
8013
  e.setResult(_).exit();
7947
8014
  };
7948
- cf.filterName = "arrays";
7949
- var lf = {
8015
+ uf.filterName = "arrays";
8016
+ var df = {
7950
8017
  numerically(e, t) {
7951
8018
  return e - t;
7952
8019
  },
7953
8020
  numericallyBy(e) {
7954
8021
  return (t, n) => t[e] - n[e];
7955
8022
  }
7956
- }, uf = function(e) {
8023
+ }, ff = function(e) {
7957
8024
  var t;
7958
8025
  if (!e.nested) return;
7959
8026
  let n = e.delta;
@@ -7961,7 +8028,7 @@ var lf = {
7961
8028
  let r, i, a = n, o = e.left, s = [], c = [], l = [];
7962
8029
  for (r in a) if (r !== "_t") if (r[0] === "_") {
7963
8030
  let e = r;
7964
- if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === af)) s.push(Number.parseInt(r.slice(1), 10));
8031
+ if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === sf)) s.push(Number.parseInt(r.slice(1), 10));
7965
8032
  else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${(t = a[e]) == null ? void 0 : t[2]}`);
7966
8033
  } else {
7967
8034
  let e = r;
@@ -7973,15 +8040,15 @@ var lf = {
7973
8040
  delta: a[e]
7974
8041
  });
7975
8042
  }
7976
- for (s = s.sort(lf.numerically), r = s.length - 1; r >= 0; r--) {
8043
+ for (s = s.sort(df.numerically), r = s.length - 1; r >= 0; r--) {
7977
8044
  if (i = s[r], i === void 0) continue;
7978
8045
  let e = a[`_${i}`], t = o.splice(i, 1)[0];
7979
- (e == null ? void 0 : e[2]) === af && c.push({
8046
+ (e == null ? void 0 : e[2]) === sf && c.push({
7980
8047
  index: e[1],
7981
8048
  value: t
7982
8049
  });
7983
8050
  }
7984
- c = c.sort(lf.numericallyBy("index"));
8051
+ c = c.sort(df.numericallyBy("index"));
7985
8052
  let u = c.length;
7986
8053
  for (r = 0; r < u; r++) {
7987
8054
  let e = c[r];
@@ -7991,7 +8058,7 @@ var lf = {
7991
8058
  if (d > 0) for (r = 0; r < d; r++) {
7992
8059
  let t = l[r];
7993
8060
  if (t === void 0) continue;
7994
- let n = new Xd(o[t.index], t.delta);
8061
+ let n = new Qd(o[t.index], t.delta);
7995
8062
  e.push(n, t.index);
7996
8063
  }
7997
8064
  if (!e.children) {
@@ -8000,8 +8067,8 @@ var lf = {
8000
8067
  }
8001
8068
  e.exit();
8002
8069
  };
8003
- uf.filterName = "arrays";
8004
- var df = function(e) {
8070
+ ff.filterName = "arrays";
8071
+ var pf = function(e) {
8005
8072
  if (!e || !e.children || e.delta._t !== "a") return;
8006
8073
  let t = e.left, n = e.children.length;
8007
8074
  for (let r = 0; r < n; r++) {
@@ -8012,16 +8079,16 @@ var df = function(e) {
8012
8079
  }
8013
8080
  e.setResult(t).exit();
8014
8081
  };
8015
- df.filterName = "arraysCollectChildren";
8016
- var ff = function(e) {
8082
+ pf.filterName = "arraysCollectChildren";
8083
+ var mf = function(e) {
8017
8084
  if (!e.nested) {
8018
8085
  let t = e.delta;
8019
- if (t[2] === af) {
8086
+ if (t[2] === sf) {
8020
8087
  let n = t;
8021
8088
  e.newName = `_${n[1]}`, e.setResult([
8022
8089
  n[0],
8023
8090
  Number.parseInt(e.childName.substring(1), 10),
8024
- af
8091
+ sf
8025
8092
  ]).exit();
8026
8093
  }
8027
8094
  return;
@@ -8031,26 +8098,26 @@ var ff = function(e) {
8031
8098
  let n = t;
8032
8099
  for (let t in n) {
8033
8100
  if (t === "_t") continue;
8034
- let r = new Zd(n[t]);
8101
+ let r = new $d(n[t]);
8035
8102
  e.push(r, t);
8036
8103
  }
8037
8104
  e.exit();
8038
8105
  };
8039
- ff.filterName = "arrays";
8040
- var pf = (e, t, n) => {
8106
+ mf.filterName = "arrays";
8107
+ var hf = (e, t, n) => {
8041
8108
  if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
8042
8109
  if (Array.isArray(n) && n[2] === 0) return `_${t}`;
8043
8110
  let r = +t;
8044
8111
  for (let n in e) {
8045
8112
  let i = e[n];
8046
- if (Array.isArray(i)) if (i[2] === af) {
8113
+ if (Array.isArray(i)) if (i[2] === sf) {
8047
8114
  let e = Number.parseInt(n.substring(1), 10), a = i[1];
8048
8115
  if (a === +t) return e;
8049
8116
  e <= r && a > r ? r++ : e >= r && a < r && r--;
8050
8117
  } else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
8051
8118
  }
8052
8119
  return r;
8053
- }, mf = (e) => {
8120
+ }, gf = (e) => {
8054
8121
  if (!e || !e.children) return;
8055
8122
  let t = e.delta;
8056
8123
  if (t._t !== "a") return;
@@ -8061,22 +8128,22 @@ var pf = (e, t, n) => {
8061
8128
  let a = r.newName;
8062
8129
  if (a === void 0) {
8063
8130
  if (r.childName === void 0) throw Error("child.childName is undefined");
8064
- a = pf(n, r.childName, r.result);
8131
+ a = hf(n, r.childName, r.result);
8065
8132
  }
8066
8133
  i[a] !== r.result && (i[a] = r.result);
8067
8134
  }
8068
8135
  e.setResult(i).exit();
8069
8136
  };
8070
- mf.filterName = "arraysCollectChildren";
8137
+ gf.filterName = "arraysCollectChildren";
8071
8138
  //#endregion
8072
8139
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
8073
- var hf = function(e) {
8140
+ var _f = function(e) {
8074
8141
  e.left instanceof Date ? (e.right instanceof Date && e.left.getTime() === e.right.getTime() ? e.setResult(void 0) : e.setResult([e.left, e.right]), e.exit()) : e.right instanceof Date && e.setResult([e.left, e.right]).exit();
8075
8142
  };
8076
- hf.filterName = "dates";
8143
+ _f.filterName = "dates";
8077
8144
  //#endregion
8078
8145
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
8079
- var gf = new Set(["__proto__"]), _f = (e) => {
8146
+ var vf = new Set(["__proto__"]), yf = (e) => {
8080
8147
  if (!e || !e.children) return;
8081
8148
  let t = e.children.length, n = e.result;
8082
8149
  for (let r = 0; r < t; r++) {
@@ -8088,18 +8155,18 @@ var gf = new Set(["__proto__"]), _f = (e) => {
8088
8155
  }
8089
8156
  n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
8090
8157
  };
8091
- _f.filterName = "collectChildren";
8092
- var vf = (e) => {
8158
+ yf.filterName = "collectChildren";
8159
+ var bf = (e) => {
8093
8160
  var t;
8094
8161
  if (e.leftIsArray || e.leftType !== "object") return;
8095
8162
  let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
8096
8163
  for (let t in n) {
8097
8164
  if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
8098
- let a = new Yd(n[t], r[t]);
8165
+ let a = new Zd(n[t], r[t]);
8099
8166
  e.push(a, t);
8100
8167
  }
8101
8168
  for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
8102
- let n = new Yd(void 0, r[t]);
8169
+ let n = new Zd(void 0, r[t]);
8103
8170
  e.push(n, t);
8104
8171
  }
8105
8172
  if (!e.children || e.children.length === 0) {
@@ -8108,15 +8175,15 @@ var vf = (e) => {
8108
8175
  }
8109
8176
  e.exit();
8110
8177
  };
8111
- vf.filterName = "objects";
8112
- var yf = function(e) {
8178
+ bf.filterName = "objects";
8179
+ var xf = function(e) {
8113
8180
  if (!e.nested) return;
8114
8181
  let t = e.delta;
8115
8182
  if (t._t) return;
8116
8183
  let n = t, r = !1;
8117
8184
  for (let t in n) {
8118
- if (gf.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8119
- let i = e.left, a = new Xd(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8185
+ if (vf.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8186
+ let i = e.left, a = new Qd(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8120
8187
  e.push(a, t), r = !0;
8121
8188
  }
8122
8189
  if (!r) {
@@ -8125,8 +8192,8 @@ var yf = function(e) {
8125
8192
  }
8126
8193
  e.exit();
8127
8194
  };
8128
- yf.filterName = "objects";
8129
- var bf = function(e) {
8195
+ xf.filterName = "objects";
8196
+ var Sf = function(e) {
8130
8197
  if (!e || !e.children || e.delta._t) return;
8131
8198
  if (e.left === null || typeof e.left != "object") {
8132
8199
  e.setResult(e.left).exit();
@@ -8137,17 +8204,17 @@ var bf = function(e) {
8137
8204
  let n = e.children[r];
8138
8205
  if (n === void 0) continue;
8139
8206
  let i = n.childName;
8140
- gf.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8207
+ vf.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8141
8208
  }
8142
8209
  e.setResult(t).exit();
8143
8210
  };
8144
- bf.filterName = "collectChildren";
8145
- var xf = function(e) {
8211
+ Sf.filterName = "collectChildren";
8212
+ var Cf = function(e) {
8146
8213
  if (!e.nested || e.delta._t) return;
8147
8214
  let t = e.delta, n = !1;
8148
8215
  for (let r in t) {
8149
- if (gf.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8150
- let i = new Zd(t[r]);
8216
+ if (vf.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8217
+ let i = new $d(t[r]);
8151
8218
  e.push(i, r), n = !0;
8152
8219
  }
8153
8220
  if (!n) {
@@ -8156,25 +8223,25 @@ var xf = function(e) {
8156
8223
  }
8157
8224
  e.exit();
8158
8225
  };
8159
- xf.filterName = "objects";
8160
- var Sf = (e) => {
8226
+ Cf.filterName = "objects";
8227
+ var wf = (e) => {
8161
8228
  if (!e || !e.children || e.delta._t) return;
8162
8229
  let t = e.children.length, n = {};
8163
8230
  for (let r = 0; r < t; r++) {
8164
8231
  let t = e.children[r];
8165
8232
  if (t === void 0) continue;
8166
8233
  let i = t.childName;
8167
- gf.has(i) || n[i] !== t.result && (n[i] = t.result);
8234
+ vf.has(i) || n[i] !== t.result && (n[i] = t.result);
8168
8235
  }
8169
8236
  e.setResult(n).exit();
8170
8237
  };
8171
- Sf.filterName = "collectChildren";
8238
+ wf.filterName = "collectChildren";
8172
8239
  //#endregion
8173
8240
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
8174
- var Cf = 2, wf = 60, Tf = null;
8175
- function Ef(e, t) {
8241
+ var Tf = 2, Ef = 60, Df = null;
8242
+ function Of(e, t) {
8176
8243
  var n;
8177
- if (!Tf) {
8244
+ if (!Df) {
8178
8245
  let r;
8179
8246
  if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
8180
8247
  else {
@@ -8182,7 +8249,7 @@ function Ef(e, t) {
8182
8249
  let e = /* @__PURE__ */ Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");
8183
8250
  throw e.diff_match_patch_not_found = !0, e;
8184
8251
  }
8185
- Tf = {
8252
+ Df = {
8186
8253
  diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
8187
8254
  patch: (e, t) => {
8188
8255
  let n = r.patch_apply(r.patch_fromText(t), e);
@@ -8194,17 +8261,17 @@ function Ef(e, t) {
8194
8261
  }
8195
8262
  };
8196
8263
  }
8197
- return Tf;
8264
+ return Df;
8198
8265
  }
8199
- var Df = function(e) {
8266
+ var kf = function(e) {
8200
8267
  var t, n;
8201
8268
  if (e.leftType !== "string") return;
8202
- let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || wf;
8269
+ let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Ef;
8203
8270
  if (r.length < a || i.length < a) {
8204
8271
  e.setResult([r, i]).exit();
8205
8272
  return;
8206
8273
  }
8207
- let o = Ef(e.options);
8274
+ let o = Of(e.options);
8208
8275
  if (!o) {
8209
8276
  e.setResult([r, i]).exit();
8210
8277
  return;
@@ -8213,19 +8280,19 @@ var Df = function(e) {
8213
8280
  e.setResult([
8214
8281
  s(r, i),
8215
8282
  0,
8216
- Cf
8283
+ Tf
8217
8284
  ]).exit();
8218
8285
  };
8219
- Df.filterName = "texts";
8220
- var Of = function(e) {
8286
+ kf.filterName = "texts";
8287
+ var Af = function(e) {
8221
8288
  if (e.nested) return;
8222
8289
  let t = e.delta;
8223
- if (t[2] !== Cf) return;
8224
- let n = t, r = Ef(e.options, !0).patch;
8290
+ if (t[2] !== Tf) return;
8291
+ let n = t, r = Of(e.options, !0).patch;
8225
8292
  e.setResult(r(e.left, n[0])).exit();
8226
8293
  };
8227
- Of.filterName = "texts";
8228
- var kf = (e) => {
8294
+ Af.filterName = "texts";
8295
+ var jf = (e) => {
8229
8296
  var t, n, r;
8230
8297
  let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
8231
8298
  for (let e = 0; e < a.length; e++) {
@@ -8246,21 +8313,21 @@ var kf = (e) => {
8246
8313
  } else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
8247
8314
  }
8248
8315
  return a.join("\n");
8249
- }, Af = function(e) {
8316
+ }, Mf = function(e) {
8250
8317
  if (e.nested) return;
8251
8318
  let t = e.delta;
8252
- if (t[2] !== Cf) return;
8319
+ if (t[2] !== Tf) return;
8253
8320
  let n = t;
8254
8321
  e.setResult([
8255
- kf(n[0]),
8322
+ jf(n[0]),
8256
8323
  0,
8257
- Cf
8324
+ Tf
8258
8325
  ]).exit();
8259
8326
  };
8260
- Af.filterName = "texts";
8327
+ Mf.filterName = "texts";
8261
8328
  //#endregion
8262
8329
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
8263
- var jf = function(e) {
8330
+ var Nf = function(e) {
8264
8331
  if (e.left === e.right) {
8265
8332
  e.setResult(void 0).exit();
8266
8333
  return;
@@ -8293,8 +8360,8 @@ var jf = function(e) {
8293
8360
  }
8294
8361
  e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
8295
8362
  };
8296
- jf.filterName = "trivial";
8297
- var Mf = function(e) {
8363
+ Nf.filterName = "trivial";
8364
+ var Pf = function(e) {
8298
8365
  if (e.delta === void 0) {
8299
8366
  e.setResult(e.left).exit();
8300
8367
  return;
@@ -8318,8 +8385,8 @@ var Mf = function(e) {
8318
8385
  }
8319
8386
  t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
8320
8387
  };
8321
- Mf.filterName = "trivial";
8322
- var Nf = function(e) {
8388
+ Pf.filterName = "trivial";
8389
+ var Ff = function(e) {
8323
8390
  if (e.delta === void 0) {
8324
8391
  e.setResult(e.delta).exit();
8325
8392
  return;
@@ -8340,36 +8407,36 @@ var Nf = function(e) {
8340
8407
  }
8341
8408
  t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
8342
8409
  };
8343
- Nf.filterName = "trivial";
8410
+ Ff.filterName = "trivial";
8344
8411
  //#endregion
8345
8412
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
8346
- var Pf = class {
8413
+ var If = class {
8347
8414
  constructor(e) {
8348
- this.processor = new $d(e), this.processor.pipe(new Qd("diff").append(_f, jf, hf, Df, vf, cf).shouldHaveResult()), this.processor.pipe(new Qd("patch").append(bf, df, Mf, Of, yf, uf).shouldHaveResult()), this.processor.pipe(new Qd("reverse").append(Sf, mf, Nf, Af, xf, ff).shouldHaveResult());
8415
+ this.processor = new tf(e), this.processor.pipe(new ef("diff").append(yf, Nf, _f, kf, bf, uf).shouldHaveResult()), this.processor.pipe(new ef("patch").append(Sf, pf, Pf, Af, xf, ff).shouldHaveResult()), this.processor.pipe(new ef("reverse").append(wf, gf, Ff, Mf, Cf, mf).shouldHaveResult());
8349
8416
  }
8350
8417
  options(e) {
8351
8418
  return this.processor.options(e);
8352
8419
  }
8353
8420
  diff(e, t) {
8354
- return this.processor.process(new Yd(e, t));
8421
+ return this.processor.process(new Zd(e, t));
8355
8422
  }
8356
8423
  patch(e, t) {
8357
- return this.processor.process(new Xd(e, t));
8424
+ return this.processor.process(new Qd(e, t));
8358
8425
  }
8359
8426
  reverse(e) {
8360
- return this.processor.process(new Zd(e));
8427
+ return this.processor.process(new $d(e));
8361
8428
  }
8362
8429
  unpatch(e, t) {
8363
8430
  return this.patch(e, this.reverse(t));
8364
8431
  }
8365
8432
  clone(e) {
8366
- return Gd(e);
8433
+ return qd(e);
8367
8434
  }
8368
8435
  };
8369
8436
  //#endregion
8370
8437
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
8371
- function Ff(e) {
8372
- return new Pf(e);
8438
+ function Lf(e) {
8439
+ return new If(e);
8373
8440
  }
8374
8441
  //#endregion
8375
8442
  //#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
@@ -8942,46 +9009,46 @@ $.Diff = function(e, t) {
8942
9009
  };
8943
9010
  //#endregion
8944
9011
  //#region src/components/audit-log/create-diff-patcher.tsx
8945
- var If = (e = {}) => Ff({
9012
+ var Rf = (e = {}) => Lf({
8946
9013
  ...e,
8947
9014
  textDiff: {
8948
9015
  diffMatchPatch: $,
8949
9016
  minLength: 120
8950
9017
  },
8951
9018
  cloneDiffValues: !0
8952
- }), Lf = ["user", "unittemplate"], Rf = If(), zf = (e, t, n) => {
9019
+ }), zf = ["user", "unittemplate"], Bf = Rf(), Vf = (e, t, n) => {
8953
9020
  let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
8954
9021
  for (let e = t.length - 1; e >= 0; e--) {
8955
9022
  let n = r[t[e]];
8956
9023
  if (n) return n;
8957
9024
  }
8958
9025
  return n || "";
8959
- }, Bf = (e) => {
9026
+ }, Hf = (e) => {
8960
9027
  let t = (e) => Nn(e) ? Gn(e) : String(e);
8961
9028
  return Array.isArray(e) ? e.length === 0 ? "" : e.some((e) => e && typeof e == "object") ? "Multiple changes..." : e.map(t).join(", ") : e && typeof e == "object" ? Object.keys(e).length === 0 ? "" : "Multiple changes..." : t(e);
8962
- }, Vf = (e) => {
9029
+ }, Uf = (e) => {
8963
9030
  switch (e.length) {
8964
9031
  case 1: {
8965
9032
  let [t] = e;
8966
9033
  return {
8967
9034
  type: "created",
8968
9035
  before: "",
8969
- after: Bf(t)
9036
+ after: Hf(t)
8970
9037
  };
8971
9038
  }
8972
9039
  case 2: {
8973
9040
  let [t, n] = e;
8974
9041
  return {
8975
9042
  type: "modified",
8976
- before: Bf(t),
8977
- after: Bf(n)
9043
+ before: Hf(t),
9044
+ after: Hf(n)
8978
9045
  };
8979
9046
  }
8980
9047
  case 3: {
8981
9048
  let [t] = e;
8982
9049
  return {
8983
9050
  type: "deleted",
8984
- before: Bf(t),
9051
+ before: Hf(t),
8985
9052
  after: ""
8986
9053
  };
8987
9054
  }
@@ -8991,15 +9058,15 @@ var If = (e = {}) => Ff({
8991
9058
  after: ""
8992
9059
  };
8993
9060
  }
8994
- }, Hf = (e) => Array.isArray(e), Uf = (e, t) => t ? Hf(t) ? t.length === 0 ? e : t.reduce((e, t) => Rf.unpatch(Xt(e), Xt(t)), Xt(e)) : Rf.unpatch(Xt(e), Xt(t)) : e, Wf = (e) => e.createdAt || e.date, Gf = (e, t, n) => {
8995
- let r = Wf(e);
9061
+ }, Wf = (e) => Array.isArray(e), Gf = (e, t) => t ? Wf(t) ? t.length === 0 ? e : t.reduce((e, t) => Bf.unpatch(Xt(e), Xt(t)), Xt(e)) : Bf.unpatch(Xt(e), Xt(t)) : e, Kf = (e) => e.createdAt || e.date, qf = (e, t, n) => {
9062
+ let r = Kf(e);
8996
9063
  if (!r) return {
8997
9064
  oldJson: "",
8998
9065
  newJson: "",
8999
9066
  error: `Cannot create comparison view: missing date for audit log ${e.id}`
9000
9067
  };
9001
9068
  let i = t.filter((e) => {
9002
- let t = Wf(e);
9069
+ let t = Kf(e);
9003
9070
  return !!(e.diffs && t && t >= r);
9004
9071
  }), a = Array.from({ length: i.length + 1 });
9005
9072
  a[0] = Xt(n);
@@ -9012,7 +9079,7 @@ var If = (e = {}) => Ff({
9012
9079
  a[e + 1] = a[e];
9013
9080
  continue;
9014
9081
  }
9015
- a[e + 1] = Uf(a[e], t);
9082
+ a[e + 1] = Gf(a[e], t);
9016
9083
  }
9017
9084
  let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
9018
9085
  o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
@@ -9027,10 +9094,10 @@ var If = (e = {}) => Ff({
9027
9094
  oldJson: o,
9028
9095
  newJson: s
9029
9096
  };
9030
- }, Kf = (e, t, n = {}, r = []) => {
9097
+ }, Jf = (e, t, n = {}, r = []) => {
9031
9098
  var i;
9032
9099
  if (!e) return;
9033
- let a = [...Lf, ...(i = n.hiddenKeys) == null ? [] : i];
9100
+ let a = [...zf, ...(i = n.hiddenKeys) == null ? [] : i];
9034
9101
  Object.keys(e).forEach((i) => {
9035
9102
  var o;
9036
9103
  let s = e[i];
@@ -9043,12 +9110,12 @@ var If = (e = {}) => Ff({
9043
9110
  tn(s) ? t.push({
9044
9111
  deltaFormat: [...s],
9045
9112
  path: c
9046
- }) : ln(s) && Kf(s, t, n, c);
9113
+ }) : ln(s) && Jf(s, t, n, c);
9047
9114
  });
9048
- }, qf = (e, t = {}) => {
9115
+ }, Yf = (e, t = {}) => {
9049
9116
  let n = [];
9050
- return e ? (Kf(e, n, t), n) : [];
9051
- }, Jf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Yf = (e) => {
9117
+ return e ? (Jf(e, n, t), n) : [];
9118
+ }, Xf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Zf = (e) => {
9052
9119
  if (e == null || e === "") return "empty";
9053
9120
  if (typeof e == "boolean") return e ? "true" : "false";
9054
9121
  if (typeof e == "string") return e;
@@ -9059,32 +9126,32 @@ var If = (e = {}) => Ff({
9059
9126
  } catch {
9060
9127
  return String(e);
9061
9128
  }
9062
- }, Xf = (e, t = e.length - 1) => {
9129
+ }, Qf = (e, t = e.length - 1) => {
9063
9130
  if (t >= e.length) return "Value";
9064
9131
  let n = e[t];
9065
- return !n || An(n) ? Xf(e, t - 1) : Jf(n);
9066
- }, Zf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9067
- let o = Yf(r), s = Yf(i), c = a ? ` in ${a}` : "";
9132
+ return !n || An(n) ? Qf(e, t - 1) : Xf(n);
9133
+ }, $f = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9134
+ let o = Zf(r), s = Zf(i), c = a ? ` in ${a}` : "";
9068
9135
  switch (t) {
9069
9136
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
9070
9137
  case "created": return `${e} created ${s}${c}.`;
9071
9138
  case "deleted": return `${e} deleted ${o}${c}.`;
9072
9139
  default: return `${e} changed ${n}${c}.`;
9073
9140
  }
9074
- }, Qf = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(Sc, { table: {
9141
+ }, ep = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(wc, { table: {
9075
9142
  headers: [{ cells: [{ value: "Changes" }] }],
9076
9143
  rows: n.map((n) => {
9077
- let { deltaFormat: i, path: a } = n, o = zf(e, a, r), { type: s, before: c, after: l } = Vf(i);
9078
- return { cells: [{ value: Zf({
9144
+ let { deltaFormat: i, path: a } = n, o = Vf(e, a, r), { type: s, before: c, after: l } = Uf(i);
9145
+ return { cells: [{ value: $f({
9079
9146
  userName: t,
9080
9147
  type: s,
9081
- property: Xf(a),
9148
+ property: Qf(a),
9082
9149
  before: c,
9083
9150
  after: l,
9084
9151
  sectionName: o
9085
9152
  }) }] };
9086
9153
  })
9087
- } }), $f = Object.freeze({
9154
+ } }), tp = Object.freeze({
9088
9155
  summary: {
9089
9156
  label: "Summary",
9090
9157
  value: "summary"
@@ -9093,33 +9160,33 @@ var If = (e = {}) => Ff({
9093
9160
  label: "Compare",
9094
9161
  value: "compare"
9095
9162
  }
9096
- }), ep = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9097
- let c = [$f.summary, $f.compare].map(({ label: e, value: t }) => ({
9163
+ }), np = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9164
+ let c = [tp.summary, tp.compare].map(({ label: e, value: t }) => ({
9098
9165
  label: e,
9099
9166
  value: t
9100
9167
  })), [l, u] = m(c[0]), { diffs: d = void 0 } = e || {};
9101
9168
  if (!d) return null;
9102
- let { oldJson: f, newJson: p, error: h } = Gf(e, t, n);
9169
+ let { oldJson: f, newJson: p, error: h } = qf(e, t, n);
9103
9170
  return /* @__PURE__ */ v(Ka, {
9104
9171
  visible: r,
9105
9172
  centered: !0,
9106
9173
  children: /* @__PURE__ */ v(Sa, { dialog: {
9107
9174
  scroll: !0,
9108
9175
  heading: "Comparison view",
9109
- content: /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Mu, {
9176
+ content: /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Pu, {
9110
9177
  name: "ViewTab",
9111
9178
  onChange: (e) => u(c.find((t) => t.value === e.target.value)),
9112
9179
  options: c,
9113
9180
  value: l
9114
- }), l.value === "summary" ? /* @__PURE__ */ v(Qf, {
9181
+ }), l.value === "summary" ? /* @__PURE__ */ v(ep, {
9115
9182
  userName: e.userName,
9116
9183
  sectionNames: a,
9117
- diffs: qf(d, i),
9184
+ diffs: Yf(d, i),
9118
9185
  defaultSectionName: o
9119
9186
  }) : h ? /* @__PURE__ */ v("div", {
9120
9187
  style: { padding: 16 },
9121
9188
  children: h
9122
- }) : /* @__PURE__ */ v(Hd, {
9189
+ }) : /* @__PURE__ */ v(Wd, {
9123
9190
  oldJson: f,
9124
9191
  newJson: p
9125
9192
  })] }),
@@ -9132,7 +9199,7 @@ var If = (e = {}) => Ff({
9132
9199
  height: "90vh"
9133
9200
  } })
9134
9201
  });
9135
- }, tp = [
9202
+ }, rp = [
9136
9203
  {
9137
9204
  label: "10 / page",
9138
9205
  value: 10
@@ -9145,8 +9212,8 @@ var If = (e = {}) => Ff({
9145
9212
  label: "50 / page",
9146
9213
  value: 50
9147
9214
  }
9148
- ], np = (e, t = {}) => {
9149
- let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = qf(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9215
+ ], ip = (e, t = {}) => {
9216
+ let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Yf(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9150
9217
  if (i === "API") return a === "Created" ? "Created through API" : "Changed through API";
9151
9218
  switch (a) {
9152
9219
  case "Created": return `Created by ${r}`;
@@ -9156,7 +9223,7 @@ var If = (e = {}) => Ff({
9156
9223
  case "Updated": return `Updated by ${r} (${c})`;
9157
9224
  default: return `Change by ${r}`;
9158
9225
  }
9159
- }, rp = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: h, isLogDisabled: g }) => {
9226
+ }, ap = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: h, isLogDisabled: g }) => {
9160
9227
  let [b, x] = m(!1), [S, C] = m(null), w = (e) => {
9161
9228
  if (e.snapshot) {
9162
9229
  f == null || f(e.snapshot, e);
@@ -9175,7 +9242,7 @@ var If = (e = {}) => Ff({
9175
9242
  return {
9176
9243
  cells: [
9177
9244
  {
9178
- value: e.snapshot ? `Snapshot: ${e.snapshot}` : np(e, l),
9245
+ value: e.snapshot ? `Snapshot: ${e.snapshot}` : ip(e, l),
9179
9246
  type: "Link",
9180
9247
  disabled: n,
9181
9248
  onClick: n ? void 0 : () => w(e),
@@ -9194,8 +9261,8 @@ var If = (e = {}) => Ff({
9194
9261
  type: "Static"
9195
9262
  },
9196
9263
  {
9197
- value: Ud({
9198
- date: Wf(e),
9264
+ value: Gd({
9265
+ date: Kf(e),
9199
9266
  showTime: !0
9200
9267
  }),
9201
9268
  type: "Static"
@@ -9205,12 +9272,12 @@ var If = (e = {}) => Ff({
9205
9272
  };
9206
9273
  });
9207
9274
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(na, {
9208
- heading: /* @__PURE__ */ y(Il, {
9275
+ heading: /* @__PURE__ */ y(Rl, {
9209
9276
  gap: !0,
9210
9277
  wrap: !0,
9211
9278
  children: [/* @__PURE__ */ v(ya, { children: "Changes" }), c.map((e) => {
9212
9279
  var t;
9213
- return /* @__PURE__ */ v(ml, {
9280
+ return /* @__PURE__ */ v(gl, {
9214
9281
  small: (t = e.small) == null ? !0 : t,
9215
9282
  checked: e.checked,
9216
9283
  onChange: e.onChange,
@@ -9220,11 +9287,11 @@ var If = (e = {}) => Ff({
9220
9287
  })]
9221
9288
  }),
9222
9289
  padding: !1,
9223
- children: r ? /* @__PURE__ */ v(ru, {
9290
+ children: r ? /* @__PURE__ */ v(au, {
9224
9291
  height: "100px",
9225
9292
  theme: Or.WHITE,
9226
9293
  children: /* @__PURE__ */ v(mi, { dark: !0 })
9227
- }) : /* @__PURE__ */ v(Sc, { table: {
9294
+ }) : /* @__PURE__ */ v(wc, { table: {
9228
9295
  headers: T,
9229
9296
  testId: "auditlog-table",
9230
9297
  rows: E,
@@ -9238,14 +9305,14 @@ var If = (e = {}) => Ff({
9238
9305
  onChange: (e) => {
9239
9306
  u(Number(e.target.value));
9240
9307
  },
9241
- options: tp,
9308
+ options: rp,
9242
9309
  value: a
9243
9310
  },
9244
9311
  onSelectPage: (e) => d(e),
9245
9312
  small: !0
9246
9313
  } }
9247
9314
  } })
9248
- }), b && S && S.diffs && /* @__PURE__ */ v(ep, {
9315
+ }), b && S && S.diffs && /* @__PURE__ */ v(np, {
9249
9316
  sectionNames: o,
9250
9317
  isOpen: b,
9251
9318
  onClose: () => x(!1),
@@ -9255,7 +9322,7 @@ var If = (e = {}) => Ff({
9255
9322
  data: t,
9256
9323
  transformDiffsConfig: l
9257
9324
  })] });
9258
- }, ip = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9325
+ }, op = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9259
9326
  let i = window.location.href, a = p(i);
9260
9327
  return c(() => {
9261
9328
  a.current = i;
@@ -9278,10 +9345,10 @@ var If = (e = {}) => Ff({
9278
9345
  });
9279
9346
  };
9280
9347
  }, [e, t]), null;
9281
- }, ap = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, op = (e) => {
9282
- Md(Dd.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9283
- e === Dd.Translations ? Md(e, kd(t)) : Md(e, ap(t) ? t : { ...t });
9348
+ }, sp = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, cp = (e) => {
9349
+ Pd(kd.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9350
+ e === kd.Translations ? Pd(e, jd(t)) : Pd(e, sp(t) ? t : { ...t });
9284
9351
  });
9285
9352
  };
9286
9353
  //#endregion
9287
- export { qr as Accordion, fi as AccordionWithDefaultToggle, Ji as Actions, Tr as Align, rp as AuditLog, Pi as Badge, Qi as Breadcrumb, Xi as BreadcrumbLinkType, K as Button, ea as ButtonGroup, Er as ButtonPosition, hi as ButtonType, na as Card, ci as CheckBox, Vr as Chevron, Wr as Collapse, wr as Color, sa as ColorInput, fa as Column, Sa as Dialog, Hd as DiffViewer, H as DisabledContext, _a as Divider, ka as Drawer, zu as ElementType, Nc as Empty, Fl as Field, jl as FileButton, za as FileInput, Il as Flex, Rl as FormRow, Hl as Grid, B as GroupOrder, ya as Heading, si as HelpIcon, U as Icon, V as IconType, Pa as Input, Ma as InputGroup, ks as InputGroupAddon, Ia as InputReaderMethods, kr as InputType, Nl as Label, tu as List, Wl as ListHeading, Xl as ListSubheading, ru as Loader, Ki as Menu, Si as MenuCarat, xi as MenuType, po as Message, oo as MessageType, Ka as Modal, yo as NativeSelect, Gs as NumberInput, lu as OptionDropdown, du as Page, As as Pagination, Gu as PopConfirm, aa as Popover, Ha as Portal, pu as PrintHeader, Ya as ProgressBar, mu as RadioButton, yu as RichTextInput, xu as Row, Cs as Select, Rd as SettingField, Eu as SideBar, Ou as Skeleton, $s as Slider, eo as SmartUploadModal, Ba as Spacer, mi as Spinner, Sc as Table, Al as TableImportExport, Mu as Tabs, ha as Text, Fu as TextArea, Nu as TextLink, Dr as TextTransform, Or as Theme, cr as Toaster, ml as Toggle, W as Tooltip, Hu as TopBar, Yu as Tree, sd as TreeTable, Cr as TriggerType, Ed as UnitInput, Id as UnitTable, ip as UsageTracker, dl as dismissToast, Cd as initializeContext, op as initializeGuiLibrary, La as readFile, ul as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };
9354
+ export { qr as Accordion, fi as AccordionWithDefaultToggle, Ji as Actions, Tr as Align, ap as AuditLog, Pi as Badge, Qi as Breadcrumb, Xi as BreadcrumbLinkType, K as Button, ea as ButtonGroup, Er as ButtonPosition, hi as ButtonType, na as Card, ci as CheckBox, Vr as Chevron, Wr as Collapse, wr as Color, sa as ColorInput, fa as Column, Sa as Dialog, Wd as DiffViewer, H as DisabledContext, _a as Divider, ka as Drawer, Vu as ElementType, Fc as Empty, Ll as Field, Nl as FileButton, za as FileInput, Rl as Flex, Bl as FormRow, Wl as Grid, B as GroupOrder, ya as Heading, si as HelpIcon, U as Icon, V as IconType, Pa as Input, Ma as InputGroup, ks as InputGroupAddon, Ia as InputReaderMethods, kr as InputType, Fl as Label, ru as List, Kl as ListHeading, Ql as ListSubheading, au as Loader, Ki as Menu, Si as MenuCarat, xi as MenuType, po as Message, oo as MessageType, Ka as Modal, yo as NativeSelect, Gs as NumberInput, du as OptionDropdown, pu as Page, As as Pagination, qu as PopConfirm, aa as Popover, Ha as Portal, hu as PrintHeader, Ya as ProgressBar, gu as RadioButton, xu as RichTextInput, Cu as Row, Cs as Select, Bd as SettingField, Ou as SideBar, Au as Skeleton, tc as Slider, eo as SmartUploadModal, Ba as Spacer, mi as Spinner, wc as Table, Ml as TableImportExport, Pu as Tabs, ha as Text, Lu as TextArea, Fu as TextLink, Dr as TextTransform, Or as Theme, cr as Toaster, gl as Toggle, W as Tooltip, Wu as TopBar, Zu as Tree, ld as TreeTable, Cr as TriggerType, Od as UnitInput, Rd as UnitTable, op as UsageTracker, pl as dismissToast, Td as initializeContext, cp as initializeGuiLibrary, La as readFile, fl as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };