@oliasoft-open-source/react-ui-library 6.7.0-beta-2 → 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
  })
@@ -3487,7 +3488,8 @@ var Cr = /* @__PURE__ */ function(e) {
3487
3488
  },
3488
3489
  flushValue: (t) => {
3489
3490
  e && (a.current = t, s.current !== null && (cancelAnimationFrame(s.current), s.current = null), u());
3490
- }
3491
+ },
3492
+ getLatestValue: () => a.current
3491
3493
  };
3492
3494
  }, $s = $n((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ v(W, {
3493
3495
  text: /* @__PURE__ */ y(_, { children: [
@@ -3496,71 +3498,104 @@ var Cr = /* @__PURE__ */ function(e) {
3496
3498
  t == null ? r : t
3497
3499
  ] }),
3498
3500
  children: /* @__PURE__ */ v("div", { className: Zs.dot })
3499
- }), e), {}), er), ec = ({ 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 = {
3500
3511
  enabled: !1,
3501
3512
  width: "100px",
3502
3513
  height: "400px"
3503
- }, onChange: b, onChangeComplete: x, coalesceOnChange: S = !1 }) => {
3504
- let C = s(H), w = $s(l), T = (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: {
3505
3516
  name: e == null ? "" : e,
3506
3517
  value: n,
3507
3518
  label: typeof t == "string" ? t : String(t)
3508
- } }), E = Qs({
3509
- enabled: S,
3519
+ } }), k = Qs({
3520
+ enabled: C,
3510
3521
  value: i,
3511
3522
  onChange: (e) => {
3512
- b(T(e));
3523
+ x(O(e));
3513
3524
  }
3514
- }), D = (e) => {
3515
- E.flushValue(e), x == null || x(T(e));
3516
- }, O = () => /* @__PURE__ */ v("div", {
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", {
3517
3549
  className: Zs.button,
3518
3550
  children: /* @__PURE__ */ v(K, {
3519
3551
  basic: !0,
3520
3552
  small: !0,
3521
3553
  round: !0,
3522
3554
  onClick: () => {
3523
- let e = m ? [a, i == null ? void 0 : i[1]] : a;
3524
- E.onChangeValue(e), D(e);
3555
+ let e = h ? [a, i == null ? void 0 : i[1]] : a;
3556
+ k.onChangeValue(e), A(e);
3525
3557
  },
3526
- disabled: p || i === a || C,
3558
+ disabled: m || i === a || w,
3527
3559
  icon: V.FAST_BACKWARD
3528
3560
  })
3529
- }), k = () => /* @__PURE__ */ v("div", {
3561
+ }), F = () => /* @__PURE__ */ v("div", {
3530
3562
  className: Zs.button,
3531
3563
  children: /* @__PURE__ */ v(K, {
3532
3564
  basic: !0,
3533
3565
  small: !0,
3534
3566
  round: !0,
3535
3567
  onClick: () => {
3536
- let e = m ? [i == null ? void 0 : i[0], o] : o;
3537
- E.onChangeValue(e), D(e);
3568
+ let e = h ? [i == null ? void 0 : i[0], o] : o;
3569
+ k.onChangeValue(e), A(e);
3538
3570
  },
3539
- disabled: p || i === o || C,
3571
+ disabled: m || i === o || w,
3540
3572
  icon: V.FAST_FORWARD
3541
3573
  })
3542
3574
  });
3543
3575
  return /* @__PURE__ */ y("div", {
3544
- className: g(Zs.container, h ? Zs.small : "", _.enabled ? Zs.vertical : ""),
3545
- style: _.enabled ? {
3546
- width: _.width,
3547
- 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
3548
3582
  } : { width: n },
3549
3583
  children: [
3550
- u && (_.enabled ? /* @__PURE__ */ v(k, {}) : /* @__PURE__ */ v(O, {})),
3584
+ u && (b.enabled ? /* @__PURE__ */ v(F, {}) : /* @__PURE__ */ v(P, {})),
3551
3585
  /* @__PURE__ */ v(Qn, {
3552
- range: m,
3586
+ range: h,
3553
3587
  allowCross: !1,
3554
- className: g((p || C) && Zs.rcSliderDisabled, u && Zs.hasArrows),
3555
- value: E.value,
3588
+ className: g((m || w) && Zs.rcSliderDisabled, u && Zs.hasArrows),
3589
+ value: k.value,
3556
3590
  max: o,
3557
3591
  min: a,
3558
3592
  step: c,
3559
- marks: w,
3560
- onChange: (e) => E.onChangeValue(e),
3561
- onChangeComplete: (e) => D(e),
3562
- disabled: p || C,
3563
- 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,
3564
3599
  handleRender: (e, t) => /* @__PURE__ */ y("div", {
3565
3600
  style: { position: "relative" },
3566
3601
  children: [e, d && t.dragging && /* @__PURE__ */ v(W, {
@@ -3574,7 +3609,7 @@ var Cr = /* @__PURE__ */ function(e) {
3574
3609
  })]
3575
3610
  })
3576
3611
  }),
3577
- u && (_.enabled ? /* @__PURE__ */ v(O, {}) : /* @__PURE__ */ v(k, {})),
3612
+ u && (b.enabled ? /* @__PURE__ */ v(P, {}) : /* @__PURE__ */ v(F, {})),
3578
3613
  t && /* @__PURE__ */ v("label", {
3579
3614
  className: Zs.label,
3580
3615
  style: { width: r },
@@ -3582,9 +3617,9 @@ var Cr = /* @__PURE__ */ function(e) {
3582
3617
  })
3583
3618
  ]
3584
3619
  });
3585
- }, tc = ({ cell: e }) => /* @__PURE__ */ v("div", {
3620
+ }, nc = ({ cell: e }) => /* @__PURE__ */ v("div", {
3586
3621
  className: X.inputWrapper,
3587
- children: /* @__PURE__ */ v(ec, {
3622
+ children: /* @__PURE__ */ v(tc, {
3588
3623
  label: e.label,
3589
3624
  value: e.value,
3590
3625
  min: e.min,
@@ -3597,7 +3632,7 @@ var Cr = /* @__PURE__ */ function(e) {
3597
3632
  tooltipFormatter: e.tooltipFormatter,
3598
3633
  disabled: e.disabled
3599
3634
  })
3600
- }), nc = ({ cell: e }) => {
3635
+ }), rc = ({ cell: e }) => {
3601
3636
  let { tooltip: t, icon: n } = e;
3602
3637
  return /* @__PURE__ */ v("div", {
3603
3638
  className: X.iconCellWrapper,
@@ -3609,7 +3644,7 @@ var Cr = /* @__PURE__ */ function(e) {
3609
3644
  children: /* @__PURE__ */ v(U, { icon: n })
3610
3645
  })
3611
3646
  });
3612
- }, rc = ({ cell: e }) => /* @__PURE__ */ v(Ji, { actions: e.actions }), ic = ({ cell: e }) => {
3647
+ }, ic = ({ cell: e }) => /* @__PURE__ */ v(Ji, { actions: e.actions }), ac = ({ cell: e }) => {
3613
3648
  let { helpIcon: t } = e;
3614
3649
  return t ? /* @__PURE__ */ v("div", {
3615
3650
  className: X.icon,
@@ -3618,7 +3653,7 @@ var Cr = /* @__PURE__ */ function(e) {
3618
3653
  text: t.tooltip
3619
3654
  })
3620
3655
  }) : null;
3621
- }, ac = ({ cell: e }) => {
3656
+ }, oc = ({ cell: e }) => {
3622
3657
  let { libraryIcon: t } = e;
3623
3658
  return t ? /* @__PURE__ */ v("div", {
3624
3659
  className: X.icon,
@@ -3628,7 +3663,7 @@ var Cr = /* @__PURE__ */ function(e) {
3628
3663
  icon: V.LIBRARY
3629
3664
  })
3630
3665
  }) : null;
3631
- }, oc = ({ cell: e }) => {
3666
+ }, sc = ({ cell: e }) => {
3632
3667
  let { hasSort: t, sort: n, sortPriority: r } = e;
3633
3668
  return t ? /* @__PURE__ */ y("span", {
3634
3669
  className: X.sortingCellIcon,
@@ -3643,7 +3678,7 @@ var Cr = /* @__PURE__ */ function(e) {
3643
3678
  children: /* @__PURE__ */ v(U, { icon: V.SORT_DESCENDING })
3644
3679
  }), r && n ? /* @__PURE__ */ v("sup", { children: r }) : null]
3645
3680
  }) : null;
3646
- }, sc = ({ cell: e, isHeader: t, testId: n }) => {
3681
+ }, cc = ({ cell: e, isHeader: t, testId: n }) => {
3647
3682
  let { error: r, warning: i, tooltip: a, maxTooltipWidth: o, hasSort: s, onSort: c, type: l } = e, u = /* @__PURE__ */ y("div", {
3648
3683
  className: g(X.staticCellContent, l === "Unit" ? X.unit : ""),
3649
3684
  onClick: s ? (e) => c && c(e) : () => {},
@@ -3651,9 +3686,9 @@ var Cr = /* @__PURE__ */ function(e) {
3651
3686
  "data-warning": i || null,
3652
3687
  "data-testid": n,
3653
3688
  children: [e.value, t ? /* @__PURE__ */ y(_, { children: [
3654
- /* @__PURE__ */ v(ic, { cell: e }),
3655
3689
  /* @__PURE__ */ v(ac, { cell: e }),
3656
- /* @__PURE__ */ v(oc, { cell: e })
3690
+ /* @__PURE__ */ v(oc, { cell: e }),
3691
+ /* @__PURE__ */ v(sc, { cell: e })
3657
3692
  ] }) : null]
3658
3693
  });
3659
3694
  return /* @__PURE__ */ v("div", {
@@ -3668,7 +3703,7 @@ var Cr = /* @__PURE__ */ function(e) {
3668
3703
  children: u
3669
3704
  })
3670
3705
  });
3671
- }, cc = ({ cell: e, testId: t }) => {
3706
+ }, lc = ({ cell: e, testId: t }) => {
3672
3707
  let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
3673
3708
  return /* @__PURE__ */ v(aa, {
3674
3709
  content: n,
@@ -3677,13 +3712,13 @@ var Cr = /* @__PURE__ */ function(e) {
3677
3712
  disabled: a,
3678
3713
  children: /* @__PURE__ */ v("div", {
3679
3714
  className: X.popover,
3680
- children: /* @__PURE__ */ v(sc, {
3715
+ children: /* @__PURE__ */ v(cc, {
3681
3716
  cell: e,
3682
3717
  testId: t
3683
3718
  })
3684
3719
  })
3685
3720
  });
3686
- }, lc = {
3721
+ }, uc = {
3687
3722
  wrapper: "_wrapper_1u1qo_1",
3688
3723
  inline: "_inline_1u1qo_1",
3689
3724
  radio: "_radio_1u1qo_5",
@@ -3694,10 +3729,10 @@ var Cr = /* @__PURE__ */ function(e) {
3694
3729
  disabled: "_disabled_1u1qo_98",
3695
3730
  isInTable: "_isInTable_1u1qo_114",
3696
3731
  helpIconEnabled: "_helpIconEnabled_1u1qo_119"
3697
- }, uc = ({ 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 }) => {
3698
3733
  let f = l || u;
3699
3734
  return /* @__PURE__ */ y("div", {
3700
- className: g(lc.radio, i ? lc.disabled : null, a ? lc.small : null, s ? lc.noMargin : null, t ? null : lc.noLabel),
3735
+ className: g(uc.radio, i ? uc.disabled : null, a ? uc.small : null, s ? uc.noMargin : null, t ? null : uc.noLabel),
3701
3736
  onClick: o,
3702
3737
  "data-testid": c,
3703
3738
  children: [
@@ -3715,13 +3750,13 @@ var Cr = /* @__PURE__ */ function(e) {
3715
3750
  children: t
3716
3751
  }),
3717
3752
  f && /* @__PURE__ */ v("div", {
3718
- className: lc.helpIconEnabled,
3753
+ className: uc.helpIconEnabled,
3719
3754
  onClick: u,
3720
3755
  children: /* @__PURE__ */ v(si, { text: l })
3721
3756
  })
3722
3757
  ]
3723
3758
  });
3724
- }, dc = ({ cell: e, testId: t }) => /* @__PURE__ */ v(uc, {
3759
+ }, fc = ({ cell: e, testId: t }) => /* @__PURE__ */ v(dc, {
3725
3760
  selected: e.selected,
3726
3761
  name: e.name,
3727
3762
  value: e.value,
@@ -3729,7 +3764,7 @@ var Cr = /* @__PURE__ */ function(e) {
3729
3764
  disabled: e.disabled,
3730
3765
  onChange: (t) => e.onChange(t),
3731
3766
  testId: t
3732
- }), fc = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3767
+ }), pc = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3733
3768
  if (!e) return null;
3734
3769
  switch (e.type) {
3735
3770
  case "Input":
@@ -3748,23 +3783,23 @@ var Cr = /* @__PURE__ */ function(e) {
3748
3783
  cell: e,
3749
3784
  testId: r
3750
3785
  });
3751
- case "Radio": return /* @__PURE__ */ v(dc, {
3786
+ case "Radio": return /* @__PURE__ */ v(fc, {
3752
3787
  cell: e,
3753
3788
  testId: r
3754
3789
  });
3755
- case "Slider": return /* @__PURE__ */ v(tc, { cell: e });
3756
- case "Icon": return /* @__PURE__ */ v(nc, { cell: e });
3757
- case "Actions": return /* @__PURE__ */ v(rc, { cell: e });
3758
- case "Popover": return /* @__PURE__ */ v(cc, { cell: e });
3759
- default: return /* @__PURE__ */ v(sc, {
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, {
3760
3795
  cell: e,
3761
3796
  isHeader: t,
3762
3797
  testId: r
3763
3798
  });
3764
3799
  }
3765
- }, pc = /* @__PURE__ */ function(e) {
3800
+ }, mc = /* @__PURE__ */ function(e) {
3766
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;
3767
- }({}), mc = ({ 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 }) => {
3768
3803
  var o;
3769
3804
  if (!e) return null;
3770
3805
  let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
@@ -3772,7 +3807,7 @@ var Cr = /* @__PURE__ */ function(e) {
3772
3807
  headerAlignment: n,
3773
3808
  textAlign: d,
3774
3809
  isHeader: t
3775
- }, h = Rs(m, X), _ = Rs(m, X, !0), y = e.type === pc.INPUT || e.type === pc.NUMBER_INPUT || e.type === pc.SELECT || e.type === pc.POPOVER ? X.inputCell : e.type === pc.SLIDER ? X.sliderCell : e.type === pc.CHECKBOX || e.type === pc.RADIO ? X.checkBoxCell : e.type === pc.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 === pc.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 = {
3776
3811
  width: x,
3777
3812
  minWidth: x,
3778
3813
  textTransform: t && S ? Dr.CAPITALIZE : void 0,
@@ -3784,14 +3819,14 @@ var Cr = /* @__PURE__ */ function(e) {
3784
3819
  style: C,
3785
3820
  colSpan: c,
3786
3821
  rowSpan: l,
3787
- children: /* @__PURE__ */ v(fc, {
3822
+ children: /* @__PURE__ */ v(pc, {
3788
3823
  cell: e,
3789
3824
  columnAlignment: _ == null ? Tr.RIGHT : _,
3790
3825
  isHeader: t,
3791
3826
  testId: a
3792
3827
  })
3793
3828
  });
3794
- }, hc = ({ children: e, dropDisabled: t = !1, height: n, rowIndex: r }) => {
3829
+ }, gc = ({ children: e, dropDisabled: t = !1, height: n, rowIndex: r }) => {
3795
3830
  let { attributes: i, listeners: a, setNodeRef: o, transform: s, transition: c, isDragging: l } = Yn({
3796
3831
  id: r.toString(),
3797
3832
  animateLayoutChanges: () => !1
@@ -3807,7 +3842,7 @@ var Cr = /* @__PURE__ */ function(e) {
3807
3842
  opacity: l ? 0 : void 0
3808
3843
  }
3809
3844
  });
3810
- }, gc = ({ 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", {
3811
3846
  className: Is.dragIconCell,
3812
3847
  children: /* @__PURE__ */ v("div", {
3813
3848
  className: g(Is.dragIcon, t ? Is.dragIconDisabled : ""),
@@ -3815,7 +3850,7 @@ var Cr = /* @__PURE__ */ function(e) {
3815
3850
  ...n,
3816
3851
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
3817
3852
  })
3818
- }), _c = ({ 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 }) => {
3819
3854
  let { onRowClick: h, onRowFocus: b, onRowMouseEnter: x, onRowMouseLeave: S, error: C, warning: w, active: T } = l;
3820
3855
  return /* @__PURE__ */ y(_, { children: [s ? /* @__PURE__ */ y("tr", {
3821
3856
  onClick: h,
@@ -3844,7 +3879,7 @@ var Cr = /* @__PURE__ */ function(e) {
3844
3879
  "data-testid": m,
3845
3880
  style: p,
3846
3881
  children: [
3847
- r ? /* @__PURE__ */ v(gc, {
3882
+ r ? /* @__PURE__ */ v(_c, {
3848
3883
  attributes: e,
3849
3884
  dropDisabled: i,
3850
3885
  listeners: c,
@@ -3858,10 +3893,10 @@ var Cr = /* @__PURE__ */ function(e) {
3858
3893
  flush: a.flush === !0,
3859
3894
  children: a.content
3860
3895
  }, `${d}_expanded_content`) : null] });
3861
- }, vc = ({ 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 }) => {
3862
3897
  let p = zs(a, n, t), { expandedContent: m } = e, h = e.cells.map((e, r) => {
3863
3898
  let i = `${+!n}_${t}_${r}`;
3864
- return /* @__PURE__ */ v(mc, {
3899
+ return /* @__PURE__ */ v(hc, {
3865
3900
  cell: e,
3866
3901
  isHeader: n,
3867
3902
  columnAlignment: o[r],
@@ -3869,14 +3904,14 @@ var Cr = /* @__PURE__ */ function(e) {
3869
3904
  width: l ? l[r] : void 0,
3870
3905
  testId: e.testId
3871
3906
  }, i);
3872
- }), g = s && /* @__PURE__ */ v(mc, {
3907
+ }), g = s && /* @__PURE__ */ v(hc, {
3873
3908
  cell: {
3874
- type: pc.ACTIONS,
3909
+ type: mc.ACTIONS,
3875
3910
  actions: e.actions
3876
3911
  },
3877
3912
  isHeader: n
3878
3913
  }, r);
3879
- return n ? /* @__PURE__ */ v(_c, {
3914
+ return n ? /* @__PURE__ */ v(vc, {
3880
3915
  cells: h,
3881
3916
  colSpan: i,
3882
3917
  draggableTable: c,
@@ -3886,11 +3921,11 @@ var Cr = /* @__PURE__ */ function(e) {
3886
3921
  rowActions: g,
3887
3922
  rowIndex: t,
3888
3923
  testId: f
3889
- }) : c && !e.noDrag ? /* @__PURE__ */ v(hc, {
3924
+ }) : c && !e.noDrag ? /* @__PURE__ */ v(gc, {
3890
3925
  dropDisabled: u,
3891
3926
  height: d,
3892
3927
  rowIndex: t,
3893
- children: ({ attributes: n, listeners: r, setNodeRef: a, style: o }) => /* @__PURE__ */ v(_c, {
3928
+ children: ({ attributes: n, listeners: r, setNodeRef: a, style: o }) => /* @__PURE__ */ v(vc, {
3894
3929
  attributes: n,
3895
3930
  cells: h,
3896
3931
  colSpan: i,
@@ -3907,7 +3942,7 @@ var Cr = /* @__PURE__ */ function(e) {
3907
3942
  style: o,
3908
3943
  testId: f
3909
3944
  })
3910
- }) : /* @__PURE__ */ v(_c, {
3945
+ }) : /* @__PURE__ */ v(vc, {
3911
3946
  cells: h,
3912
3947
  colSpan: i,
3913
3948
  draggableTable: c,
@@ -3919,7 +3954,7 @@ var Cr = /* @__PURE__ */ function(e) {
3919
3954
  rowIndex: t,
3920
3955
  testId: f
3921
3956
  });
3922
- }, yc = (e) => {
3957
+ }, bc = (e) => {
3923
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]);
3924
3959
  return a ? /* @__PURE__ */ y(tr, {
3925
3960
  collisionDetection: rr,
@@ -3954,7 +3989,7 @@ var Cr = /* @__PURE__ */ function(e) {
3954
3989
  dropAnimation: null,
3955
3990
  children: /* @__PURE__ */ v("table", {
3956
3991
  className: g(mo.table, mo.dragOverlay),
3957
- children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ v(vc, {
3992
+ children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ v(yc, {
3958
3993
  rowIndex: Number(f),
3959
3994
  row: l[Number(f)],
3960
3995
  columnCount: i,
@@ -3974,7 +4009,7 @@ var Cr = /* @__PURE__ */ function(e) {
3974
4009
  })
3975
4010
  }), document.body)]
3976
4011
  }) : t({});
3977
- }, bc = ({ table: e, children: t }) => {
4012
+ }, xc = ({ table: e, children: t }) => {
3978
4013
  var n, r, i, a;
3979
4014
  let o = p(null), s = ir({
3980
4015
  count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
@@ -3997,7 +4032,7 @@ var Cr = /* @__PURE__ */ function(e) {
3997
4032
  })()
3998
4033
  })
3999
4034
  });
4000
- }, xc = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (c(() => {
4035
+ }, Sc = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (c(() => {
4001
4036
  if (t && !(e == null || e < 0)) {
4002
4037
  if (n && r) r.scrollToIndex(e, {
4003
4038
  behavior: "auto",
@@ -4016,11 +4051,11 @@ var Cr = /* @__PURE__ */ function(e) {
4016
4051
  t,
4017
4052
  n,
4018
4053
  r
4019
- ]), null), Sc = ({ table: e, children: t }) => {
4054
+ ]), null), Cc = ({ table: e, children: t }) => {
4020
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]);
4021
- return n ? /* @__PURE__ */ v(bc, {
4056
+ return n ? /* @__PURE__ */ v(xc, {
4022
4057
  table: e,
4023
- children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(xc, {
4058
+ children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Sc, {
4024
4059
  isVirtualized: !0,
4025
4060
  virtualizer: e,
4026
4061
  activeIndex: a,
@@ -4032,13 +4067,13 @@ var Cr = /* @__PURE__ */ function(e) {
4032
4067
  }) : /* @__PURE__ */ y("div", {
4033
4068
  id: "scrollWrapper",
4034
4069
  className: mo.scroll,
4035
- children: [/* @__PURE__ */ v(xc, {
4070
+ children: [/* @__PURE__ */ v(Sc, {
4036
4071
  isVirtualized: !1,
4037
4072
  activeIndex: a,
4038
4073
  triggerScrollToActiveRow: r
4039
4074
  }), t({})]
4040
4075
  });
4041
- }, Cc = (e) => {
4076
+ }, wc = (e) => {
4042
4077
  var t, n, r, i, a;
4043
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 = {
4044
4079
  cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
@@ -4077,7 +4112,7 @@ var Cr = /* @__PURE__ */ function(e) {
4077
4112
  name: f,
4078
4113
  testId: C && `${C}-title`
4079
4114
  }),
4080
- /* @__PURE__ */ v(yc, {
4115
+ /* @__PURE__ */ v(bc, {
4081
4116
  colSpan: P,
4082
4117
  columnAlignment: x,
4083
4118
  columnCount: M,
@@ -4087,13 +4122,13 @@ var Cr = /* @__PURE__ */ function(e) {
4087
4122
  rows: L,
4088
4123
  tbodyRef: A,
4089
4124
  canListReorder: s,
4090
- children: ({ dropDisabled: e }) => /* @__PURE__ */ v(Sc, {
4125
+ children: ({ dropDisabled: e }) => /* @__PURE__ */ v(Cc, {
4091
4126
  table: te,
4092
4127
  children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ y("table", {
4093
4128
  className: g(mo.table, S ? mo.striped : ""),
4094
4129
  "data-testid": C,
4095
4130
  style: n,
4096
- children: [/* @__PURE__ */ v("thead", { children: j.map((e, t) => /* @__PURE__ */ v(vc, {
4131
+ children: [/* @__PURE__ */ v("thead", { children: j.map((e, t) => /* @__PURE__ */ v(yc, {
4097
4132
  rowIndex: t,
4098
4133
  isHeader: !0,
4099
4134
  row: e,
@@ -4108,7 +4143,7 @@ var Cr = /* @__PURE__ */ function(e) {
4108
4143
  ref: A,
4109
4144
  children: t ? t.getVirtualItems().map((t) => {
4110
4145
  let n = t.index, r = L[n];
4111
- return /* @__PURE__ */ v(vc, {
4146
+ return /* @__PURE__ */ v(yc, {
4112
4147
  rowIndex: n,
4113
4148
  row: c ? c({
4114
4149
  row: r,
@@ -4123,7 +4158,7 @@ var Cr = /* @__PURE__ */ function(e) {
4123
4158
  height: t.size,
4124
4159
  dropDisabled: e
4125
4160
  }, `1_${n}`);
4126
- }) : L.map((t, n) => /* @__PURE__ */ v(vc, {
4161
+ }) : L.map((t, n) => /* @__PURE__ */ v(yc, {
4127
4162
  rowIndex: n,
4128
4163
  row: c ? c({
4129
4164
  row: t,
@@ -4148,14 +4183,14 @@ var Cr = /* @__PURE__ */ function(e) {
4148
4183
  })
4149
4184
  ]
4150
4185
  });
4151
- }, wc = "blank", Tc = 1e4, Ec = (e, t, n, r) => {
4186
+ }, Tc = "blank", Ec = 1e4, Dc = (e, t, n, r) => {
4152
4187
  let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
4153
4188
  return {
4154
4189
  updatedErrors: o,
4155
4190
  isValid: o.length === 0
4156
4191
  };
4157
- }, Dc = 20, Oc = 1, kc = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4158
- let i = d(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, s] = m(Dc), [l, u] = m(Oc), 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(() => {
4159
4194
  let n = e.filter((e) => !e.optionalColumn);
4160
4195
  return t.fields.length === n.length ? n : e;
4161
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")), {
@@ -4169,7 +4204,7 @@ var Cr = /* @__PURE__ */ function(e) {
4169
4204
  disableValidationOnFocus: !0,
4170
4205
  error: v,
4171
4206
  validationCallback: (e, i) => {
4172
- let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Ec(t.errors, a, e, i);
4207
+ let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Dc(t.errors, a, e, i);
4173
4208
  n({ parsedResult: {
4174
4209
  ...t,
4175
4210
  errors: o,
@@ -4178,7 +4213,7 @@ var Cr = /* @__PURE__ */ function(e) {
4178
4213
  },
4179
4214
  onChange: (e) => {
4180
4215
  var i;
4181
- let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = Ec(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);
4182
4217
  n({ parsedResult: {
4183
4218
  ...t,
4184
4219
  rows: d,
@@ -4220,7 +4255,7 @@ var Cr = /* @__PURE__ */ function(e) {
4220
4255
  ]);
4221
4256
  let S = d(() => t.fields.map((e, r) => {
4222
4257
  var a, o, s;
4223
- 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) === wc);
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);
4224
4259
  if (!l.length || u) return {};
4225
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;
4226
4261
  return {
@@ -4258,7 +4293,7 @@ var Cr = /* @__PURE__ */ function(e) {
4258
4293
  h,
4259
4294
  g
4260
4295
  ]);
4261
- return /* @__PURE__ */ v(Cc, {
4296
+ return /* @__PURE__ */ v(wc, {
4262
4297
  beforeRenderRow: o(({ rowIndex: e }) => {
4263
4298
  let n = h + e, r = t.rows[n];
4264
4299
  return r ? x(r, n) : {
@@ -4331,7 +4366,7 @@ var Cr = /* @__PURE__ */ function(e) {
4331
4366
  } }
4332
4367
  }
4333
4368
  });
4334
- }, Ac = { listStyle: "_listStyle_yjfjw_1" }, jc = ({ errors: e, t }) => {
4369
+ }, jc = { listStyle: "_listStyle_yjfjw_1" }, Mc = ({ errors: e, t }) => {
4335
4370
  var n;
4336
4371
  let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
4337
4372
  let n = (e) => {
@@ -4347,18 +4382,18 @@ var Cr = /* @__PURE__ */ function(e) {
4347
4382
  content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
4348
4383
  type: "Error",
4349
4384
  details: /* @__PURE__ */ v("ul", {
4350
- className: Ac.listStyle,
4385
+ className: jc.listStyle,
4351
4386
  children: r.map((e, t) => /* @__PURE__ */ v("li", { children: e }, t))
4352
4387
  })
4353
4388
  };
4354
- }, Mc = ({ errors: e, t }) => e.length ? /* @__PURE__ */ v(po, { message: jc({
4389
+ }, Nc = ({ errors: e, t }) => e.length ? /* @__PURE__ */ v(po, { message: Mc({
4355
4390
  errors: e,
4356
4391
  t
4357
- }) }) : null, Nc = {
4392
+ }) }) : null, Pc = {
4358
4393
  empty: "_empty_fe425_1",
4359
4394
  text: "_text_fe425_11"
4360
- }, Pc = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ y("div", {
4361
- className: Nc.empty,
4395
+ }, Fc = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ y("div", {
4396
+ className: Pc.empty,
4362
4397
  style: {
4363
4398
  width: e,
4364
4399
  height: t
@@ -4394,7 +4429,7 @@ var Cr = /* @__PURE__ */ function(e) {
4394
4429
  })
4395
4430
  }),
4396
4431
  n !== "" && /* @__PURE__ */ v("div", {
4397
- className: Nc.text,
4432
+ className: Pc.text,
4398
4433
  children: /* @__PURE__ */ v(ha, {
4399
4434
  faint: !0,
4400
4435
  children: n
@@ -4402,52 +4437,52 @@ var Cr = /* @__PURE__ */ function(e) {
4402
4437
  }),
4403
4438
  r
4404
4439
  ]
4405
- }), Fc = (e) => {
4440
+ }), Ic = (e) => {
4406
4441
  var t;
4407
4442
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4408
4443
  let t = e == null ? void 0 : e.match(/[.,]/g);
4409
4444
  return t && t.length > 1;
4410
4445
  });
4411
- }, Ic = (e) => {
4446
+ }, Lc = (e) => {
4412
4447
  var t;
4413
4448
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4414
4449
  var t;
4415
4450
  return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
4416
4451
  });
4417
- }, Lc = (e, t, n) => e >= t - n, Rc = (e) => !!e && e !== "blank" && e.trim() !== "", zc = (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) => {
4418
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;
4419
- if (i && !Lc(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) {
4420
4455
  var f, p;
4421
4456
  let e = r.filter((e) => {
4422
4457
  var t;
4423
- return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(Rc));
4458
+ return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(zc));
4424
4459
  }).length;
4425
- Lc(t == null || (f = t.filter(Rc)) == 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 }));
4426
4461
  }
4427
4462
  return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
4428
4463
  expectedLengthMessage: u,
4429
4464
  dataRowStartIndex: d
4430
4465
  })) : n.forEach((e, t) => {
4431
- Lc(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4466
+ Rc(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4432
4467
  expectedLengthMessage: u,
4433
4468
  dataRowStartIndex: d + t
4434
4469
  }));
4435
4470
  }), s;
4436
- }, Bc = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Vc = ({ value: e, defaultAllowedValues: t }) => {
4471
+ }, Vc = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Hc = ({ value: e, defaultAllowedValues: t }) => {
4437
4472
  var n;
4438
- let r = Bc(e);
4439
- return (n = t == null ? void 0 : t.some((e) => Bc(e).includes(r) || r.includes(Bc(e)))) == null ? !1 : n;
4440
- }, Hc = ({ 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 }) => {
4441
4476
  var n;
4442
4477
  return (n = t == null ? void 0 : t.includes(e)) == null ? !1 : n;
4443
- }, Uc = (e, t, n, r, i, a) => {
4478
+ }, Wc = (e, t, n, r, i, a) => {
4444
4479
  let o = [];
4445
4480
  if (r) {
4446
4481
  let r = n.map((e) => e.fieldName).filter(Boolean);
4447
4482
  e.forEach((i, s) => {
4448
4483
  var c, l;
4449
4484
  let u = n[s];
4450
- if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Vc : c)({
4485
+ if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Hc : c)({
4451
4486
  value: i,
4452
4487
  defaultAllowedValues: r,
4453
4488
  columnIndex: s,
@@ -4469,7 +4504,7 @@ var Cr = /* @__PURE__ */ function(e) {
4469
4504
  var l, u;
4470
4505
  let d = n[c];
4471
4506
  if (!d || d != null && d.optionalColumn) return;
4472
- let f = (l = d.unitsValidator) == null ? Hc : 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;
4473
4508
  f({
4474
4509
  value: r,
4475
4510
  defaultAllowedValues: p,
@@ -4485,7 +4520,7 @@ var Cr = /* @__PURE__ */ function(e) {
4485
4520
  });
4486
4521
  }
4487
4522
  return o;
4488
- }, Wc = (e, t, n) => {
4523
+ }, Gc = (e, t, n) => {
4489
4524
  let r = [];
4490
4525
  return e.forEach((e, i) => {
4491
4526
  e.forEach((e, a) => {
@@ -4498,91 +4533,91 @@ var Cr = /* @__PURE__ */ function(e) {
4498
4533
  })}`);
4499
4534
  });
4500
4535
  }), r;
4501
- }, Gc = (e, t, n, r, i, a, o) => {
4502
- let s = zc(e, t, n, r, i, a, o);
4503
- return s.length === 0 && (s = s.concat(Uc(e, t, r, i, a, o), Wc(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))), {
4504
4539
  isValid: s.length === 0,
4505
4540
  errors: s
4506
4541
  };
4507
- }, Kc = (e, t, n) => {
4542
+ }, qc = (e, t, n) => {
4508
4543
  var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
4509
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;
4510
4545
  return {
4511
4546
  hasFieldNameHeader: b || v && !x && !C || v && y && !C,
4512
4547
  hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
4513
4548
  };
4514
- }, qc = (e, { validationRules: t }) => {
4549
+ }, Jc = (e, { validationRules: t }) => {
4515
4550
  var n, r, i;
4516
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) => {
4517
4552
  var t;
4518
4553
  return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
4519
- }), { hasFieldNameHeader: l, hasUnitHeader: u } = Kc(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());
4520
4555
  return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
4521
4556
  hasFieldNameHeader: l,
4522
4557
  hasUnitHeader: u
4523
4558
  };
4524
- }, Jc = (e) => Math.round(e * 100) / 100, Yc = (e) => e.join(", ").replace(/,\s*$/, ""), Xc = {
4559
+ }, Yc = (e) => Math.round(e * 100) / 100, Xc = (e) => e.join(", ").replace(/,\s*$/, ""), Zc = {
4525
4560
  skipEmptyLines: !0,
4526
4561
  delimiter: (e) => {
4527
4562
  var t, n;
4528
4563
  let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
4529
4564
  return i === 0 && a === 0 ? "," : i > a ? " " : ";";
4530
4565
  }
4531
- }, Zc = [
4566
+ }, Qc = [
4532
4567
  "text/csv",
4533
4568
  "text/plain",
4534
4569
  "application/json",
4535
4570
  "application/vnd.ms-excel"
4536
- ], Qc = (e) => Zc.includes(e.type), $c = (e) => e instanceof File, el = (e) => e.trim().startsWith("["), tl = (e) => {
4571
+ ], $c = (e) => Qc.includes(e.type), el = (e) => e instanceof File, tl = (e) => e.trim().startsWith("["), nl = (e) => {
4537
4572
  try {
4538
4573
  var t;
4539
4574
  return !!((t = JSON.parse(e)) != null && t.path);
4540
4575
  } catch {
4541
4576
  return !1;
4542
4577
  }
4543
- }, nl = (e) => new Promise((t, n) => {
4578
+ }, rl = (e) => new Promise((t, n) => {
4544
4579
  let r = new FileReader();
4545
4580
  r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
4546
- }), rl = async (e, t, n) => {
4581
+ }), il = async (e, t, n) => {
4547
4582
  try {
4548
- return ul({
4583
+ return dl({
4549
4584
  data: JSON.parse(e),
4550
4585
  errors: []
4551
4586
  }, t, n);
4552
4587
  } catch (e) {
4553
4588
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4554
4589
  }
4555
- }, il = async (e, t, n) => {
4590
+ }, al = async (e, t, n) => {
4556
4591
  try {
4557
4592
  let r = JSON.parse(e).path.map((e) => [
4558
- Jc(e.md),
4559
- Jc(e.inclination),
4560
- Jc(e.gridAzimuth)
4593
+ Yc(e.md),
4594
+ Yc(e.inclination),
4595
+ Yc(e.gridAzimuth)
4561
4596
  ]);
4562
4597
  return r.unshift([
4563
4598
  "m",
4564
4599
  "deg",
4565
4600
  "deg"
4566
- ]), ul({
4601
+ ]), dl({
4567
4602
  data: r,
4568
4603
  errors: []
4569
4604
  }, t, n);
4570
4605
  } catch (e) {
4571
4606
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4572
4607
  }
4573
- }, al = (e) => e.replace(",", "."), ol = (e) => e.map((e) => e.map((e) => al(e))), sl = (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) => {
4574
4609
  or.parse(e, {
4575
- ...Xc,
4610
+ ...Zc,
4576
4611
  preview: t,
4577
4612
  complete: (e) => {
4578
- let a = ul(e, {
4613
+ let a = dl(e, {
4579
4614
  importLimit: t,
4580
4615
  ...n
4581
4616
  }, r);
4582
- a.rows = ol(a.rows), i(a);
4617
+ a.rows = sl(a.rows), i(a);
4583
4618
  }
4584
4619
  });
4585
- }), cl = async (e, t, n) => {
4620
+ }), ll = async (e, t, n) => {
4586
4621
  let r = {
4587
4622
  isValid: !1,
4588
4623
  fields: [],
@@ -4591,13 +4626,13 @@ var Cr = /* @__PURE__ */ function(e) {
4591
4626
  errors: []
4592
4627
  };
4593
4628
  try {
4594
- if ($c(e) && !Qc(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Yc(Array.from(Zc))}`), r;
4595
- let i = $c(e) ? await nl(e) : e;
4596
- return el(i) ? await rl(i, t, n) : tl(i) ? await il(i, t, n) : await sl(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);
4597
4632
  } catch (e) {
4598
4633
  return r.errors.push(e.message), r;
4599
4634
  }
4600
- }, ll = (e, t, n, r) => {
4635
+ }, ul = (e, t, n, r) => {
4601
4636
  var i;
4602
4637
  let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
4603
4638
  e,
@@ -4609,7 +4644,7 @@ var Cr = /* @__PURE__ */ function(e) {
4609
4644
  header: !0,
4610
4645
  delimiter: a
4611
4646
  });
4612
- }, ul = (e, t, n) => {
4647
+ }, dl = (e, t, n) => {
4613
4648
  let { data: r, errors: i } = e, a = {
4614
4649
  isValid: !1,
4615
4650
  fields: [],
@@ -4618,15 +4653,15 @@ var Cr = /* @__PURE__ */ function(e) {
4618
4653
  errors: i.map((e) => e.message)
4619
4654
  };
4620
4655
  if (i.length > 0) return a;
4621
- let { hasFieldNameHeader: o, hasUnitHeader: s } = qc(r, t);
4656
+ let { hasFieldNameHeader: o, hasUnitHeader: s } = Jc(r, t);
4622
4657
  a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
4623
4658
  let { validationRules: c } = t;
4624
4659
  if (c.length) {
4625
- let { isValid: e, errors: t } = Gc(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);
4626
4661
  a.errors.push(...t), a.isValid = e && t.length === 0;
4627
4662
  } else a.isValid = a.errors.length === 0;
4628
4663
  return a;
4629
- }, dl = ({ id: e, message: t = {
4664
+ }, fl = ({ id: e, message: t = {
4630
4665
  type: oo.INFO,
4631
4666
  content: ""
4632
4667
  }, autoClose: n = 6e3, onClose: r }) => {
@@ -4667,22 +4702,22 @@ var Cr = /* @__PURE__ */ function(e) {
4667
4702
  transition: sr,
4668
4703
  type: s
4669
4704
  });
4670
- }, fl = (e) => {
4705
+ }, pl = (e) => {
4671
4706
  lr.dismiss(e);
4672
- }, pl = (e, t) => {
4707
+ }, ml = (e, t) => {
4673
4708
  t(() => {
4674
- dl({ ...e });
4709
+ fl({ ...e });
4675
4710
  });
4676
- }, ml = {
4711
+ }, hl = {
4677
4712
  toggle: "_toggle_18fme_9",
4678
4713
  small: "_small_18fme_25",
4679
4714
  disabled: "_disabled_18fme_105",
4680
4715
  noMargin: "_noMargin_18fme_113",
4681
4716
  helpIconEnabled: "_helpIconEnabled_18fme_116"
4682
- }, hl = ({ 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 }) => {
4683
4718
  let p = s(H), m = u || d, h = r || p;
4684
4719
  return /* @__PURE__ */ y("div", {
4685
- className: g(ml.toggle, h ? ml.disabled : null, a ? ml.small : null, c ? ml.noMargin : null),
4720
+ className: g(hl.toggle, h ? hl.disabled : null, a ? hl.small : null, c ? hl.noMargin : null),
4686
4721
  style: { display: i },
4687
4722
  onClick: (t) => {
4688
4723
  h || (t.target.name = e, t.target.checked = !n, t.target.value = !n, o(t));
@@ -4702,13 +4737,13 @@ var Cr = /* @__PURE__ */ function(e) {
4702
4737
  children: t
4703
4738
  }),
4704
4739
  m && /* @__PURE__ */ v("div", {
4705
- className: ml.helpIconEnabled,
4740
+ className: hl.helpIconEnabled,
4706
4741
  onClick: d,
4707
4742
  children: /* @__PURE__ */ v(si, { text: u })
4708
4743
  })
4709
4744
  ]
4710
4745
  });
4711
- }, gl = ({ 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 }) => {
4712
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({
4713
4748
  pastedText: "",
4714
4749
  parsedResult: {
@@ -4731,8 +4766,8 @@ var Cr = /* @__PURE__ */ function(e) {
4731
4766
  var n, r, i;
4732
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 = {
4733
4768
  validationRules: s,
4734
- importLimit: (r = e.importLimit) == null ? Tc : r
4735
- }, o = ll(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);
4736
4771
  f(() => A({
4737
4772
  parsedResult: {
4738
4773
  ...I,
@@ -4762,17 +4797,17 @@ var Cr = /* @__PURE__ */ function(e) {
4762
4797
  }, N = () => {
4763
4798
  r("helpModal", !x);
4764
4799
  }, P = () => {
4765
- n(k), c(k.parsedResult), i(), pl({ message: {
4800
+ n(k), c(k.parsedResult), i(), ml({ message: {
4766
4801
  type: "Success",
4767
4802
  content: u("pasteSuccessful")
4768
4803
  } }, f);
4769
- }, { pastedText: F, parsedResult: I } = k, ee = T && T(I), { isValid: L, errors: te } = I, ne = te.length, re = F === "", ie = Ic(F), ae = Fc(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: [
4770
4805
  /* @__PURE__ */ y("div", {
4771
4806
  className: io.headerContainer,
4772
4807
  children: [
4773
4808
  /* @__PURE__ */ v(W, {
4774
4809
  text: u("downsampleTooltip"),
4775
- children: /* @__PURE__ */ v(hl, {
4810
+ children: /* @__PURE__ */ v(gl, {
4776
4811
  label: u("downsampled"),
4777
4812
  checked: D,
4778
4813
  onChange: () => j(!D),
@@ -4805,7 +4840,7 @@ var Cr = /* @__PURE__ */ function(e) {
4805
4840
  }),
4806
4841
  re ? /* @__PURE__ */ v("div", {
4807
4842
  className: io.resultContainer,
4808
- children: /* @__PURE__ */ v(Pc, {
4843
+ children: /* @__PURE__ */ v(Fc, {
4809
4844
  text: null,
4810
4845
  children: /* @__PURE__ */ y("div", {
4811
4846
  className: io.emptyState,
@@ -4841,7 +4876,7 @@ var Cr = /* @__PURE__ */ function(e) {
4841
4876
  }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
4842
4877
  className: io.messagesContainer,
4843
4878
  children: [
4844
- ne ? /* @__PURE__ */ v(Mc, {
4879
+ ne ? /* @__PURE__ */ v(Nc, {
4845
4880
  errors: te,
4846
4881
  t: u
4847
4882
  }) : null,
@@ -4864,7 +4899,7 @@ var Cr = /* @__PURE__ */ function(e) {
4864
4899
  type: "Warning"
4865
4900
  } })
4866
4901
  ]
4867
- }), /* @__PURE__ */ v(kc, {
4902
+ }), /* @__PURE__ */ v(Ac, {
4868
4903
  validationRules: s,
4869
4904
  parsedResult: I,
4870
4905
  updateState: (e) => A((t) => ({
@@ -4906,7 +4941,7 @@ var Cr = /* @__PURE__ */ function(e) {
4906
4941
  onClose: i
4907
4942
  } })
4908
4943
  });
4909
- }, _l = ({ 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 = {} }) => {
4910
4945
  var s;
4911
4946
  return /* @__PURE__ */ v(t, { children: /* @__PURE__ */ v(a, {
4912
4947
  testId: `${i}-modal-render-${e}`,
@@ -4914,7 +4949,7 @@ var Cr = /* @__PURE__ */ function(e) {
4914
4949
  onClose: () => r({ name: e }),
4915
4950
  ...o
4916
4951
  }) }, e);
4917
- }) }) : null, vl = ({ 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, {
4918
4953
  loading: !0,
4919
4954
  menu: {
4920
4955
  component: /* @__PURE__ */ v(K, {
@@ -4930,18 +4965,18 @@ var Cr = /* @__PURE__ */ function(e) {
4930
4965
  sections: e
4931
4966
  },
4932
4967
  testId: n
4933
- }), yl = (e, t, n) => o(async () => {
4968
+ }), bl = (e, t, n) => o(async () => {
4934
4969
  if (n) try {
4935
4970
  return await n();
4936
4971
  } catch (t) {
4937
- console.error("beforeExportData failed", t), dl({ message: {
4972
+ console.error("beforeExportData failed", t), fl({ message: {
4938
4973
  type: "Error",
4939
4974
  content: e("unableToPrepareExportData")
4940
4975
  } });
4941
4976
  return;
4942
4977
  }
4943
4978
  return t;
4944
- }, [t, n]), bl = {
4979
+ }, [t, n]), xl = {
4945
4980
  cancel: "Cancel",
4946
4981
  chooseFile: "Choose file",
4947
4982
  copyDecimalComma: "Copy (decimal comma)",
@@ -5000,26 +5035,26 @@ var Cr = /* @__PURE__ */ function(e) {
5000
5035
  smartUpload_description: "Upload image and extract table content using a LLM",
5001
5036
  smartUpload_smartUpload: "Smart Upload",
5002
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"
5003
- }, xl = (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])), Sl = (e) => d(() => {
5004
- let t = Object.keys(bl).reduce((t, n) => {
5005
- let r = bl == null ? void 0 : bl[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];
5006
5041
  return t[n] = i == null ? r : i, t;
5007
5042
  }, {});
5008
5043
  return (e, n) => {
5009
5044
  let r = t[e];
5010
- return n ? xl(r, n) : r;
5045
+ return n ? Sl(r, n) : r;
5011
5046
  };
5012
- }, [e]), Cl = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, wl = (e) => {
5047
+ }, [e]), wl = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, Tl = (e) => {
5013
5048
  var t;
5014
5049
  return {
5015
5050
  ...e,
5016
5051
  rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
5017
5052
  let t = String(e == null ? "" : e);
5018
- return Cl.test(t) ? Cn(t) : t;
5053
+ return wl.test(t) ? Cn(t) : t;
5019
5054
  }))
5020
5055
  };
5021
- }, Tl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
5022
- let { exportData: a, beforeExportData: s, importLimit: c = Tc, validationRules: l = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = Sl(u), v = yl(_, 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) => {
5023
5058
  n((t) => ({
5024
5059
  ...t,
5025
5060
  ...e
@@ -5063,9 +5098,9 @@ var Cr = /* @__PURE__ */ function(e) {
5063
5098
  let t = {
5064
5099
  validationRules: l,
5065
5100
  importLimit: c
5066
- }, n = wl(await cl(e, t, _));
5101
+ }, n = Tl(await ll(e, t, _));
5067
5102
  if (g && g(h)) {
5068
- let { fields: e, units: r, rows: a } = n, o = ll(e, r == null ? [] : r, a, t);
5103
+ let { fields: e, units: r, rows: a } = n, o = ul(e, r == null ? [] : r, a, t);
5069
5104
  return i(() => y({
5070
5105
  pastedText: o,
5071
5106
  parsedResult: h
@@ -5091,20 +5126,20 @@ var Cr = /* @__PURE__ */ function(e) {
5091
5126
  let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
5092
5127
  try {
5093
5128
  if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
5094
- pl({ message: {
5129
+ ml({ message: {
5095
5130
  type: "Error",
5096
5131
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
5097
5132
  } }, i);
5098
5133
  return;
5099
5134
  }
5100
- let e = wl(await cl(r, {
5135
+ let e = Tl(await ll(r, {
5101
5136
  validationRules: l,
5102
5137
  importLimit: c
5103
5138
  }, _));
5104
- return e != null && e.isValid || pl({ message: {
5139
+ return e != null && e.isValid || ml({ message: {
5105
5140
  type: "Error",
5106
5141
  content: _("clipboardReadFailed")
5107
- } }, i), n && pl({ message: {
5142
+ } }, i), n && ml({ message: {
5108
5143
  type: "Success",
5109
5144
  content: _("pasteSuccessful")
5110
5145
  } }, i), {
@@ -5112,7 +5147,7 @@ var Cr = /* @__PURE__ */ function(e) {
5112
5147
  parsedResult: e
5113
5148
  };
5114
5149
  } catch (e) {
5115
- pl({ message: {
5150
+ ml({ message: {
5116
5151
  type: "Error",
5117
5152
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
5118
5153
  details: e.message
@@ -5125,10 +5160,10 @@ var Cr = /* @__PURE__ */ function(e) {
5125
5160
  let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
5126
5161
  if (!n) return;
5127
5162
  let r = await C(await n.text());
5128
- r.isValid ? (f || pl({ message: {
5163
+ r.isValid ? (f || ml({ message: {
5129
5164
  type: "Success",
5130
5165
  content: _("pasteSuccessful")
5131
- } }, i), i(() => d(r))) : pl({ message: {
5166
+ } }, i), i(() => d(r))) : ml({ message: {
5132
5167
  type: "Error",
5133
5168
  content: _("fileParsingFailed")
5134
5169
  } }, i);
@@ -5142,7 +5177,7 @@ var Cr = /* @__PURE__ */ function(e) {
5142
5177
  try {
5143
5178
  let t = await navigator.clipboard.readText();
5144
5179
  if (!t) {
5145
- pl({ message: {
5180
+ ml({ message: {
5146
5181
  type: "Error",
5147
5182
  content: _("clipboardIsEmpty")
5148
5183
  } }, i);
@@ -5150,18 +5185,18 @@ var Cr = /* @__PURE__ */ function(e) {
5150
5185
  }
5151
5186
  let n = await C(t);
5152
5187
  if (!n.isValid) {
5153
- pl({ message: {
5188
+ ml({ message: {
5154
5189
  type: "Error",
5155
5190
  content: _("clipboardReadFailed")
5156
5191
  } }, i);
5157
5192
  return;
5158
5193
  }
5159
- f || pl({ message: {
5194
+ f || ml({ message: {
5160
5195
  type: "Success",
5161
5196
  content: _("pasteSuccessful")
5162
5197
  } }, i), e && i(() => d(n));
5163
5198
  } catch {
5164
- pl({ message: {
5199
+ ml({ message: {
5165
5200
  type: "Error",
5166
5201
  content: _("clipboardReadNotAllowed")
5167
5202
  } }, i);
@@ -5176,14 +5211,14 @@ var Cr = /* @__PURE__ */ function(e) {
5176
5211
  onClickCopyClipboard: o(async (e) => {
5177
5212
  let t = await v();
5178
5213
  if (!t) return;
5179
- let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : wc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = ll(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: " " });
5180
5215
  try {
5181
- await navigator.clipboard.writeText(c), pl({ message: {
5216
+ await navigator.clipboard.writeText(c), ml({ message: {
5182
5217
  type: "Success",
5183
5218
  content: _("copiedToClipboard")
5184
5219
  } }, i);
5185
5220
  } catch (e) {
5186
- pl({ message: {
5221
+ ml({ message: {
5187
5222
  type: "Error",
5188
5223
  content: _("unableToCopyToClipboard"),
5189
5224
  details: e.message
@@ -5193,14 +5228,14 @@ var Cr = /* @__PURE__ */ function(e) {
5193
5228
  onSmartUploadResult: o((e) => {
5194
5229
  let t = un(e) && dn(e.errorMessage) ? e.errorMessage : void 0;
5195
5230
  if (t) {
5196
- pl({ message: {
5231
+ ml({ message: {
5197
5232
  type: "Error",
5198
5233
  content: t || "Smart upload failed."
5199
5234
  } }, i);
5200
5235
  return;
5201
5236
  }
5202
5237
  if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(_n(e), dn))) {
5203
- pl({ message: {
5238
+ ml({ message: {
5204
5239
  type: "Error",
5205
5240
  content: "Smart upload returned unexpected format.",
5206
5241
  details: JSON.stringify(e)
@@ -5232,14 +5267,14 @@ var Cr = /* @__PURE__ */ function(e) {
5232
5267
  ]),
5233
5268
  deleteAllRows: x
5234
5269
  };
5235
- }, El = (e, t) => {
5270
+ }, Dl = (e, t) => {
5236
5271
  var n, r;
5237
- let { fields: i, rows: a } = e, o = ll(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");
5238
5273
  c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
5239
- }, Dl = (e) => ln(e) && "modalKey" in e, Ol = (e, t, n) => Zt(e, (e) => {
5274
+ }, Ol = (e) => ln(e) && "modalKey" in e, kl = (e, t, n) => Zt(e, (e) => {
5240
5275
  if (tn(e) || !un(e)) return;
5241
5276
  let { modalKey: r } = e == null ? {} : e;
5242
- if (Dl(e) && typeof e.onClick != "function") {
5277
+ if (Ol(e) && typeof e.onClick != "function") {
5243
5278
  let i = () => {
5244
5279
  var e;
5245
5280
  n(r, !((e = t.modalVisibility) != null && e[r]));
@@ -5249,7 +5284,7 @@ var Cr = /* @__PURE__ */ function(e) {
5249
5284
  onClick: i
5250
5285
  };
5251
5286
  }
5252
- }), kl = (e, t, n) => Ol(e, t, n), Al = {
5287
+ }), Al = (e, t, n) => kl(e, t, n), jl = {
5253
5288
  pastedText: "",
5254
5289
  parsedResult: {
5255
5290
  isValid: !1,
@@ -5264,9 +5299,9 @@ var Cr = /* @__PURE__ */ function(e) {
5264
5299
  reviewPasteModal: !1,
5265
5300
  helpModal: !1
5266
5301
  }
5267
- }, jl = ({ config: e, smartUploadConfig: t, testId: n }) => {
5302
+ }, Ml = ({ config: e, smartUploadConfig: t, testId: n }) => {
5268
5303
  var r, i, a, o;
5269
- 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(Al), { 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 = Sl(f), ee = yl(I, s, c), [L, te] = h(), ne = Tl({
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({
5270
5305
  config: e,
5271
5306
  state: E,
5272
5307
  setState: D,
@@ -5301,14 +5336,14 @@ var Cr = /* @__PURE__ */ function(e) {
5301
5336
  onClick: () => R("smartUploadModal", !O),
5302
5337
  testId: `${n}-smart-upload`
5303
5338
  }] : [],
5304
- ...kl((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, R)
5339
+ ...Al((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, R)
5305
5340
  ] : [], de = [
5306
5341
  {
5307
5342
  type: "Option",
5308
5343
  label: I("downloadFile"),
5309
5344
  onClick: async () => {
5310
5345
  let e = await ee();
5311
- e && e && El(e, d);
5346
+ e && e && Dl(e, d);
5312
5347
  }
5313
5348
  },
5314
5349
  ...p ? [{
@@ -5333,20 +5368,20 @@ var Cr = /* @__PURE__ */ function(e) {
5333
5368
  }]
5334
5369
  }
5335
5370
  }],
5336
- ...kl((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, R)
5371
+ ...Al((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, R)
5337
5372
  ], fe = b ? [{
5338
5373
  type: "Option",
5339
5374
  label: I("deleteAllRows"),
5340
5375
  onClick: () => z(),
5341
5376
  testId: `${n}-delete-all-rows`
5342
- }, ...kl((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 ? [
5343
5378
  { type: "Divider" },
5344
5379
  {
5345
5380
  type: "Option",
5346
5381
  label: I("help"),
5347
5382
  onClick: () => R("helpModal", !A)
5348
5383
  },
5349
- ...kl((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, R)
5384
+ ...Al((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, R)
5350
5385
  ] : [], me = [
5351
5386
  ...ue.length ? [{
5352
5387
  section: [...ue, ...pe],
@@ -5372,13 +5407,13 @@ var Cr = /* @__PURE__ */ function(e) {
5372
5407
  small: !0,
5373
5408
  dark: !0
5374
5409
  }),
5375
- me.map((e, t) => /* @__PURE__ */ v(vl, {
5410
+ me.map((e, t) => /* @__PURE__ */ v(yl, {
5376
5411
  sections: e.section,
5377
5412
  iconName: e.iconName,
5378
5413
  tooltip: e.tooltip,
5379
5414
  testId: `data-${e == null ? void 0 : e.name}-menu`
5380
5415
  }, t)),
5381
- k && /* @__PURE__ */ v(gl, {
5416
+ k && /* @__PURE__ */ v(_l, {
5382
5417
  config: e,
5383
5418
  state: E,
5384
5419
  updateState: ie,
@@ -5414,14 +5449,14 @@ var Cr = /* @__PURE__ */ function(e) {
5414
5449
  cancelText: I("cancel"),
5415
5450
  testId: n
5416
5451
  }),
5417
- /* @__PURE__ */ v(_l, {
5452
+ /* @__PURE__ */ v(vl, {
5418
5453
  modals: C,
5419
5454
  modalVisibility: E == null ? void 0 : E.modalVisibility,
5420
5455
  onCloseModal: ae,
5421
5456
  testId: n
5422
5457
  })
5423
5458
  ] });
5424
- }, Ml = ({ 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 }) => {
5425
5460
  let c = s(H), l = p(null), u = () => {
5426
5461
  var e;
5427
5462
  i || c || (e = l.current) == null || e.click();
@@ -5449,12 +5484,12 @@ var Cr = /* @__PURE__ */ function(e) {
5449
5484
  multiple: n,
5450
5485
  onChange: d
5451
5486
  })] });
5452
- }, Nl = {
5487
+ }, Pl = {
5453
5488
  label: "_label_uxk69_1",
5454
5489
  labelLeft: "_labelLeft_uxk69_5",
5455
5490
  icons: "_icons_uxk69_13",
5456
5491
  small: "_small_uxk69_27"
5457
- }, Pl = ({ 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 = {
5458
5493
  visible: !1,
5459
5494
  active: !1,
5460
5495
  onClick: () => {},
@@ -5463,14 +5498,14 @@ var Cr = /* @__PURE__ */ function(e) {
5463
5498
  }, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Dr.CAPITALIZE }) => {
5464
5499
  var d;
5465
5500
  return /* @__PURE__ */ v("div", {
5466
- className: g(Nl.label, c ? Nl.labelLeft : "", l ? Nl.small : ""),
5501
+ className: g(Pl.label, c ? Pl.labelLeft : "", l ? Pl.small : ""),
5467
5502
  children: /* @__PURE__ */ y("label", {
5468
5503
  style: {
5469
5504
  textTransform: u,
5470
5505
  width: t || ""
5471
5506
  },
5472
5507
  children: [e, /* @__PURE__ */ y("div", {
5473
- className: Nl.icons,
5508
+ className: Pl.icons,
5474
5509
  children: [
5475
5510
  (n || i) && /* @__PURE__ */ v(si, {
5476
5511
  text: n,
@@ -5496,23 +5531,23 @@ var Cr = /* @__PURE__ */ function(e) {
5496
5531
  })]
5497
5532
  })
5498
5533
  });
5499
- }, Fl = {
5534
+ }, Il = {
5500
5535
  field: "_field_1xoss_1",
5501
5536
  labelLeft: "_labelLeft_1xoss_5",
5502
5537
  fieldInput: "_fieldInput_1xoss_9",
5503
5538
  formRow: "_formRow_1xoss_12",
5504
5539
  "form-row": "_form-row_1xoss_13",
5505
5540
  button: "_button_1xoss_22"
5506
- }, Il = ({ 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 = {
5507
5542
  visible: !1,
5508
5543
  active: !1,
5509
5544
  onClick: () => {},
5510
5545
  tooltip: "",
5511
5546
  testId: void 0
5512
5547
  }, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Dr.CAPITALIZE }) => /* @__PURE__ */ y("div", {
5513
- className: g(Fl.field, t ? Fl.labelLeft : ""),
5548
+ className: g(Il.field, t ? Il.labelLeft : ""),
5514
5549
  "data-testid": d,
5515
- children: [(e || t) && /* @__PURE__ */ v(Pl, {
5550
+ children: [(e || t) && /* @__PURE__ */ v(Fl, {
5516
5551
  label: e,
5517
5552
  width: n,
5518
5553
  helpText: i,
@@ -5525,10 +5560,10 @@ var Cr = /* @__PURE__ */ function(e) {
5525
5560
  small: u,
5526
5561
  textTransform: f
5527
5562
  }), /* @__PURE__ */ v("div", {
5528
- className: Fl.fieldInput,
5563
+ className: Il.fieldInput,
5529
5564
  children: r
5530
5565
  })]
5531
- }), Ll = ({ 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", {
5532
5567
  style: {
5533
5568
  display: "flex",
5534
5569
  flexDirection: n,
@@ -5540,20 +5575,20 @@ var Cr = /* @__PURE__ */ function(e) {
5540
5575
  gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
5541
5576
  },
5542
5577
  children: a
5543
- }), Rl = { formRow: "_formRow_odewu_1" }, zl = ({ children: e }) => /* @__PURE__ */ v("div", {
5544
- className: Rl.formRow,
5578
+ }), zl = { formRow: "_formRow_odewu_1" }, Bl = ({ children: e }) => /* @__PURE__ */ v("div", {
5579
+ className: zl.formRow,
5545
5580
  children: e
5546
- }), Bl = { grid: "_grid_obkz4_1" }, Vl = (e) => typeof e == "boolean" ? e ? "var(--padding)" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", Hl = (e) => typeof e == "number" ? `${e}px` : e || "initial", Ul = ({ 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 }) => {
5547
5582
  let s = {
5548
- "--grid-gap": Vl(i),
5549
- "--grid-rows": Hl(e),
5550
- "--grid-columns": Hl(t),
5551
- "--grid-height": Hl(a),
5552
- ...n != null && { "--grid-columns-tablet": Hl(n) },
5553
- ...r != null && { "--grid-columns-mobile": Hl(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) }
5554
5589
  };
5555
5590
  return /* @__PURE__ */ v("div", {
5556
- className: Bl.grid,
5591
+ className: Vl.grid,
5557
5592
  style: s,
5558
5593
  children: o
5559
5594
  });
@@ -5600,15 +5635,15 @@ var Cr = /* @__PURE__ */ function(e) {
5600
5635
  hideScrollbar: "_hideScrollbar_1dcn1_67",
5601
5636
  noPointerEvents: "_noPointerEvents_1dcn1_309",
5602
5637
  virtualRows: "_virtualRows_1dcn1_312"
5603
- }, Wl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
5638
+ }, Gl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
5604
5639
  className: Z.toggleNarrow,
5605
5640
  onClick: t,
5606
5641
  children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_LEFT })
5607
- }) : null, Gl = 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", {
5608
5643
  ref: a,
5609
5644
  className: g(Z.header, i ? Z.stickyHeader : ""),
5610
5645
  children: [
5611
- /* @__PURE__ */ v(Wl, {
5646
+ /* @__PURE__ */ v(Gl, {
5612
5647
  toggleNarrow: n,
5613
5648
  onClickToggleNarrow: r
5614
5649
  }),
@@ -5628,14 +5663,14 @@ var Cr = /* @__PURE__ */ function(e) {
5628
5663
  })
5629
5664
  })
5630
5665
  ]
5631
- })), Kl = ({ label: e }) => e ? /* @__PURE__ */ v("span", {
5666
+ })), ql = ({ label: e }) => e ? /* @__PURE__ */ v("span", {
5632
5667
  className: Z.label,
5633
5668
  children: /* @__PURE__ */ v(Pi, {
5634
5669
  color: e.color,
5635
5670
  title: e.value,
5636
5671
  small: e.small
5637
5672
  })
5638
- }) : null, ql = ({ name: e, icon: t, testId: n }) => {
5673
+ }) : null, Jl = ({ name: e, icon: t, testId: n }) => {
5639
5674
  let r = t && /* @__PURE__ */ v(U, {
5640
5675
  icon: t.icon,
5641
5676
  color: t.color || "#db2828"
@@ -5655,8 +5690,8 @@ var Cr = /* @__PURE__ */ function(e) {
5655
5690
  children: r
5656
5691
  })]
5657
5692
  });
5658
- }, Jl = ({ item: e }) => {
5659
- let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ v(ql, {
5693
+ }, Yl = ({ item: e }) => {
5694
+ let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ v(Jl, {
5660
5695
  name: t,
5661
5696
  icon: n,
5662
5697
  testId: o && `${o}-name`
@@ -5682,10 +5717,10 @@ var Cr = /* @__PURE__ */ function(e) {
5682
5717
  })
5683
5718
  ]
5684
5719
  });
5685
- }, Yl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
5720
+ }, Xl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
5686
5721
  color: "rgba(0,0,0,0.25)",
5687
5722
  title: e.metaCount
5688
- }), Xl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
5723
+ }), Zl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
5689
5724
  expanded: !!t && !!e.active && !!e.content,
5690
5725
  children: /* @__PURE__ */ v("div", {
5691
5726
  className: Z.itemContent,
@@ -5694,7 +5729,7 @@ var Cr = /* @__PURE__ */ function(e) {
5694
5729
  },
5695
5730
  children: e.content
5696
5731
  })
5697
- }), Zl = r(({ item: e, index: t }, n) => {
5732
+ }), Ql = r(({ item: e, index: t }, n) => {
5698
5733
  var r;
5699
5734
  let i = s(H), { actions: a, disabled: o, expanded: c, onClick: l, title: u, name: d, icon: f, testId: p } = e;
5700
5735
  return /* @__PURE__ */ v("div", {
@@ -5714,13 +5749,13 @@ var Cr = /* @__PURE__ */ function(e) {
5714
5749
  className: g(Z.expandIcon, c && Z.expanded),
5715
5750
  children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_RIGHT })
5716
5751
  }),
5717
- /* @__PURE__ */ v(ql, {
5752
+ /* @__PURE__ */ v(Jl, {
5718
5753
  name: d,
5719
5754
  icon: f
5720
5755
  }),
5721
5756
  /* @__PURE__ */ y("div", {
5722
5757
  className: Z.right,
5723
- children: [/* @__PURE__ */ v(Yl, { item: e }), !(o || i) && a && /* @__PURE__ */ v("div", {
5758
+ children: [/* @__PURE__ */ v(Xl, { item: e }), !(o || i) && a && /* @__PURE__ */ v("div", {
5724
5759
  className: Z.actions,
5725
5760
  children: /* @__PURE__ */ v(Ji, { actions: (r = e.actions) == null ? [] : r })
5726
5761
  })]
@@ -5728,7 +5763,7 @@ var Cr = /* @__PURE__ */ function(e) {
5728
5763
  ]
5729
5764
  }) })
5730
5765
  });
5731
- }), Ql = 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) => {
5732
5767
  let o = s(H), c = (e, t, s, c, l, u) => {
5733
5768
  let d = t.actions && t.actions.find((e) => {
5734
5769
  var t;
@@ -5764,24 +5799,24 @@ var Cr = /* @__PURE__ */ function(e) {
5764
5799
  className: Z.indentIcon,
5765
5800
  children: /* @__PURE__ */ v(U, { icon: V.INDENT })
5766
5801
  }) : null,
5767
- /* @__PURE__ */ v(Kl, { label: t.label }),
5768
- /* @__PURE__ */ v(Jl, { item: t }),
5802
+ /* @__PURE__ */ v(ql, { label: t.label }),
5803
+ /* @__PURE__ */ v(Yl, { item: t }),
5769
5804
  /* @__PURE__ */ y("div", {
5770
5805
  className: Z.right,
5771
- children: [/* @__PURE__ */ v(Yl, { 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", {
5772
5807
  className: Z.actions,
5773
5808
  children: /* @__PURE__ */ v(Ji, { actions: t.actions })
5774
5809
  })]
5775
5810
  })
5776
5811
  ]
5777
- }), /* @__PURE__ */ v(Xl, {
5812
+ }), /* @__PURE__ */ v(Zl, {
5778
5813
  item: t,
5779
5814
  expanding: n
5780
5815
  })]
5781
5816
  })
5782
5817
  }, e);
5783
5818
  };
5784
- return e.type === "Heading" ? /* @__PURE__ */ v(Zl, {
5819
+ return e.type === "Heading" ? /* @__PURE__ */ v(Ql, {
5785
5820
  ref: a,
5786
5821
  item: e,
5787
5822
  index: t
@@ -5796,7 +5831,7 @@ var Cr = /* @__PURE__ */ function(e) {
5796
5831
  opacity: +!s
5797
5832
  }, n, r, i);
5798
5833
  })(t, e) : c(t, e);
5799
- }), $l = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5834
+ }), eu = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5800
5835
  let [i, a] = m(null), o = (e) => {
5801
5836
  a(e.active.id);
5802
5837
  }, s = (e) => {
@@ -5819,7 +5854,7 @@ var Cr = /* @__PURE__ */ function(e) {
5819
5854
  dropAnimation: null,
5820
5855
  children: /* @__PURE__ */ v("div", {
5821
5856
  className: Z.dragOverlay,
5822
- children: /* @__PURE__ */ v(Ql, {
5857
+ children: /* @__PURE__ */ v($l, {
5823
5858
  draggable: t,
5824
5859
  item: n.items[Number(i)],
5825
5860
  index: Number(i)
@@ -5827,7 +5862,7 @@ var Cr = /* @__PURE__ */ function(e) {
5827
5862
  })
5828
5863
  }), document.body)]
5829
5864
  }) : e;
5830
- }, eu = ({ items: e, scrollDetails: t, children: n }) => {
5865
+ }, tu = ({ items: e, scrollDetails: t, children: n }) => {
5831
5866
  let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = ir({
5832
5867
  count: e.length,
5833
5868
  getScrollElement: () => l.current,
@@ -5857,9 +5892,9 @@ var Cr = /* @__PURE__ */ function(e) {
5857
5892
  children: n({ virtualizer: u })
5858
5893
  })
5859
5894
  });
5860
- }, tu = ({ items: e, scrollDetails: t, children: n }) => {
5895
+ }, nu = ({ items: e, scrollDetails: t, children: n }) => {
5861
5896
  let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
5862
- return a ? /* @__PURE__ */ v(eu, {
5897
+ return a ? /* @__PURE__ */ v(tu, {
5863
5898
  items: e,
5864
5899
  scrollDetails: t,
5865
5900
  children: ({ virtualizer: e }) => n({ virtualizer: e })
@@ -5870,7 +5905,7 @@ var Cr = /* @__PURE__ */ function(e) {
5870
5905
  children: n({})
5871
5906
  })
5872
5907
  });
5873
- }, nu = ({ 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 = {
5874
5909
  scrollable: !1,
5875
5910
  hideScrollbar: !1,
5876
5911
  triggerScrollToActiveItem: !1,
@@ -5883,17 +5918,17 @@ var Cr = /* @__PURE__ */ function(e) {
5883
5918
  marginBottom: d
5884
5919
  },
5885
5920
  id: "scrollableDiv",
5886
- children: [!s && /* @__PURE__ */ v(Gl, {
5921
+ children: [!s && /* @__PURE__ */ v(Kl, {
5887
5922
  name: e.name,
5888
5923
  actions: e.actions,
5889
5924
  toggleNarrow: i,
5890
5925
  onToggleNarrow: a,
5891
5926
  stickyHeader: c
5892
- }), /* @__PURE__ */ v($l, {
5927
+ }), /* @__PURE__ */ v(eu, {
5893
5928
  draggable: l,
5894
5929
  list: e,
5895
5930
  onListReorder: u,
5896
- children: /* @__PURE__ */ v(tu, {
5931
+ children: /* @__PURE__ */ v(nu, {
5897
5932
  items: e.items,
5898
5933
  scrollDetails: m,
5899
5934
  children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ v("div", {
@@ -5901,14 +5936,14 @@ var Cr = /* @__PURE__ */ function(e) {
5901
5936
  className: Z.virtualRow,
5902
5937
  style: { transform: `translateY(${r.start}px)` },
5903
5938
  ref: t.measureElement,
5904
- children: /* @__PURE__ */ v(Ql, {
5939
+ children: /* @__PURE__ */ v($l, {
5905
5940
  index: r.index,
5906
5941
  draggable: l,
5907
5942
  item: e.items[r.index],
5908
5943
  expanding: n,
5909
5944
  invokeEditOnRowClick: o
5910
5945
  })
5911
- }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Ql, {
5946
+ }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v($l, {
5912
5947
  index: t,
5913
5948
  draggable: l,
5914
5949
  item: e,
@@ -5917,7 +5952,7 @@ var Cr = /* @__PURE__ */ function(e) {
5917
5952
  }) }, t))
5918
5953
  })
5919
5954
  })]
5920
- }), ru = {
5955
+ }), iu = {
5921
5956
  loader: "_loader_477i5_1",
5922
5957
  fullViewPortSize: "_fullViewPortSize_477i5_7",
5923
5958
  cover: "_cover_477i5_14",
@@ -5925,33 +5960,33 @@ var Cr = /* @__PURE__ */ function(e) {
5925
5960
  content: "_content_477i5_44",
5926
5961
  text: "_text_477i5_49",
5927
5962
  details: "_details_477i5_53"
5928
- }, iu = ({ 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 }) => {
5929
5964
  let l = s === Or.DARK ? Or.WHITE : Or.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
5930
5965
  return /* @__PURE__ */ v("div", {
5931
- className: g(ru.loader, a ? ru.cover : "", { [ru.fullViewPortSize]: i }),
5966
+ className: g(iu.loader, a ? iu.cover : "", { [iu.fullViewPortSize]: i }),
5932
5967
  style: {
5933
5968
  width: e,
5934
5969
  height: t
5935
5970
  },
5936
5971
  "data-testid": c,
5937
5972
  children: /* @__PURE__ */ v("div", {
5938
- className: ru.dimmer,
5973
+ className: iu.dimmer,
5939
5974
  style: {
5940
5975
  background: u,
5941
5976
  color: l
5942
5977
  },
5943
5978
  children: /* @__PURE__ */ y("div", {
5944
- className: ru.content,
5979
+ className: iu.content,
5945
5980
  "data-testid": c && `${c}-content`,
5946
5981
  children: [
5947
5982
  o,
5948
5983
  n && /* @__PURE__ */ v("div", {
5949
- className: ru.text,
5984
+ className: iu.text,
5950
5985
  "data-testid": c && `${c}-text`,
5951
5986
  children: n
5952
5987
  }),
5953
5988
  r && /* @__PURE__ */ v("div", {
5954
- className: ru.details,
5989
+ className: iu.details,
5955
5990
  "data-testid": c && `${c}-details`,
5956
5991
  children: r
5957
5992
  })
@@ -5959,15 +5994,15 @@ var Cr = /* @__PURE__ */ function(e) {
5959
5994
  })
5960
5995
  })
5961
5996
  });
5962
- }, au = {
5997
+ }, ou = {
5963
5998
  menu: "_menu_12x4u_1",
5964
5999
  header: "_header_12x4u_11",
5965
6000
  item: "_item_12x4u_27",
5966
6001
  heading: "_heading_12x4u_32"
5967
- }, ou = ({ option: e, onChange: t }) => {
6002
+ }, su = ({ option: e, onChange: t }) => {
5968
6003
  let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
5969
6004
  return /* @__PURE__ */ v("div", {
5970
- className: au.item,
6005
+ className: ou.item,
5971
6006
  children: /* @__PURE__ */ v(ci, {
5972
6007
  label: r,
5973
6008
  noMargin: !0,
@@ -5976,17 +6011,17 @@ var Cr = /* @__PURE__ */ function(e) {
5976
6011
  testId: a
5977
6012
  })
5978
6013
  }, n);
5979
- }, su = ({ label: e }) => /* @__PURE__ */ v("div", {
5980
- className: au.heading,
6014
+ }, cu = ({ label: e }) => /* @__PURE__ */ v("div", {
6015
+ className: ou.heading,
5981
6016
  children: e
5982
- }), cu = /* @__PURE__ */ function(e) {
6017
+ }), lu = /* @__PURE__ */ function(e) {
5983
6018
  return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
5984
- }({}), lu = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ y("div", {
5985
- className: g("menu", au.menu),
6019
+ }({}), uu = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ y("div", {
6020
+ className: g("menu", ou.menu),
5986
6021
  style: { maxHeight: r },
5987
6022
  "data-testid": i ? `${i}-option-dropdown-layer` : void 0,
5988
6023
  children: [n && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
5989
- className: au.header,
6024
+ className: ou.header,
5990
6025
  children: [
5991
6026
  /* @__PURE__ */ v("a", {
5992
6027
  onClick: (n) => {
@@ -6018,9 +6053,9 @@ var Cr = /* @__PURE__ */ function(e) {
6018
6053
  ]
6019
6054
  }), /* @__PURE__ */ v(_a, { margin: 0 })] }), e.map((n, r) => {
6020
6055
  switch (n.type) {
6021
- case cu.HEADING: return /* @__PURE__ */ v(su, { label: n.label }, r);
6022
- case cu.DIVIDER: return /* @__PURE__ */ v(_a, { margin: 0 }, r);
6023
- default: return /* @__PURE__ */ v(ou, {
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, {
6024
6059
  option: n,
6025
6060
  onChange: (r) => {
6026
6061
  let { value: i } = n;
@@ -6032,7 +6067,7 @@ var Cr = /* @__PURE__ */ function(e) {
6032
6067
  }, r);
6033
6068
  }
6034
6069
  })]
6035
- }), uu = ({ 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, {
6036
6071
  testId: c,
6037
6072
  disabled: t,
6038
6073
  menu: {
@@ -6041,7 +6076,7 @@ var Cr = /* @__PURE__ */ function(e) {
6041
6076
  label: n,
6042
6077
  trigger: Cr.DROP_DOWN_BUTTON,
6043
6078
  possiblePlacements: ["top-start", "bottom-start"],
6044
- sections: /* @__PURE__ */ v(lu, {
6079
+ sections: /* @__PURE__ */ v(uu, {
6045
6080
  testId: c,
6046
6081
  options: r,
6047
6082
  onChangeOptions: (t, n) => {
@@ -6051,13 +6086,13 @@ var Cr = /* @__PURE__ */ function(e) {
6051
6086
  maxHeight: s
6052
6087
  })
6053
6088
  }
6054
- }), du = {
6089
+ }), fu = {
6055
6090
  page: "_page_beskc_1",
6056
6091
  scroll: "_scroll_beskc_23"
6057
- }, fu = ({ 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)" }) => {
6058
6093
  let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
6059
6094
  return /* @__PURE__ */ v("div", {
6060
- className: g(du.page, r ? du.scroll : ""),
6095
+ className: g(fu.page, r ? fu.scroll : ""),
6061
6096
  style: {
6062
6097
  left: t,
6063
6098
  padding: a,
@@ -6065,25 +6100,25 @@ var Cr = /* @__PURE__ */ function(e) {
6065
6100
  },
6066
6101
  children: e
6067
6102
  });
6068
- }, pu = { printHeader: "_printHeader_o7xxx_1" }, mu = ({ 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", {
6069
6104
  src: e,
6070
6105
  alt: t,
6071
- className: pu.printHeader,
6106
+ className: mu.printHeader,
6072
6107
  style: { width: n }
6073
- }), hu = ({ 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" }) => {
6074
6109
  let m = s(H), h = f !== void 0, { simpleInputs: _, options: b, selectedOptions: x } = h ? {
6075
6110
  simpleInputs: !1,
6076
6111
  options: f,
6077
6112
  selectedOptions: void 0
6078
6113
  } : Ss(n, r), S = h || x == null ? void 0 : _ ? x : x.value, C = h ? d : t;
6079
6114
  return /* @__PURE__ */ y("div", {
6080
- className: g(lc.wrapper, u ? lc.inline : null, p === "inline fields" ? lc.inline : null),
6115
+ className: g(uc.wrapper, u ? uc.inline : null, p === "inline fields" ? uc.inline : null),
6081
6116
  children: [d && /* @__PURE__ */ v("label", {
6082
- className: g(u && lc.labelMargin),
6117
+ className: g(u && uc.labelMargin),
6083
6118
  children: C
6084
6119
  }), b.map((t, n) => {
6085
6120
  let r = (t == null ? void 0 : t.checked) || (t == null ? void 0 : t.value) === S || !1;
6086
- return /* @__PURE__ */ v(uc, {
6121
+ return /* @__PURE__ */ v(dc, {
6087
6122
  name: t.name || t.value,
6088
6123
  label: t.label,
6089
6124
  value: t.value,
@@ -6101,44 +6136,44 @@ var Cr = /* @__PURE__ */ function(e) {
6101
6136
  }, n);
6102
6137
  })]
6103
6138
  });
6104
- }, gu = {
6139
+ }, _u = {
6105
6140
  richTextToolbar: "_richTextToolbar_1gbkk_1",
6106
6141
  richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
6107
- }, _u = /* @__PURE__ */ function(e) {
6142
+ }, vu = /* @__PURE__ */ function(e) {
6108
6143
  return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e;
6109
- }({}), vu = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6144
+ }({}), yu = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6110
6145
  var r, i, a, o, s;
6111
6146
  let c = [
6112
6147
  {
6113
- icon: _u.BOLD,
6148
+ icon: vu.BOLD,
6114
6149
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
6115
6150
  active: (r = e == null ? void 0 : e.isActive("bold")) == null ? !1 : r
6116
6151
  },
6117
6152
  {
6118
- icon: _u.ITALIC,
6153
+ icon: vu.ITALIC,
6119
6154
  onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
6120
6155
  active: (i = e == null ? void 0 : e.isActive("italic")) == null ? !1 : i
6121
6156
  },
6122
6157
  {
6123
- icon: _u.CODE,
6158
+ icon: vu.CODE,
6124
6159
  onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
6125
6160
  active: (a = e == null ? void 0 : e.isActive("code")) == null ? !1 : a
6126
6161
  },
6127
6162
  {
6128
- icon: _u.UL,
6163
+ icon: vu.UL,
6129
6164
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
6130
6165
  active: (o = e == null ? void 0 : e.isActive("bulletList")) == null ? !1 : o
6131
6166
  },
6132
6167
  {
6133
- icon: _u.OL,
6168
+ icon: vu.OL,
6134
6169
  onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
6135
6170
  active: (s = e == null ? void 0 : e.isActive("orderedList")) == null ? !1 : s
6136
6171
  }
6137
6172
  ];
6138
6173
  return /* @__PURE__ */ y("div", {
6139
- className: gu.richTextToolbarContainer,
6174
+ className: _u.richTextToolbarContainer,
6140
6175
  children: [/* @__PURE__ */ v("div", {
6141
- className: gu.richTextToolbar,
6176
+ className: _u.richTextToolbar,
6142
6177
  children: c.map((e, n) => /* @__PURE__ */ v(K, {
6143
6178
  small: !0,
6144
6179
  round: !0,
@@ -6151,7 +6186,7 @@ var Cr = /* @__PURE__ */ function(e) {
6151
6186
  }, n))
6152
6187
  }), n]
6153
6188
  });
6154
- }, yu = {
6189
+ }, bu = {
6155
6190
  inputInTable: "_inputInTable_gb097_1",
6156
6191
  inputHover: "_inputHover_gb097_13",
6157
6192
  inputFocus: "_inputFocus_gb097_18",
@@ -6160,7 +6195,7 @@ var Cr = /* @__PURE__ */ function(e) {
6160
6195
  inputDisabled: "_inputDisabled_gb097_61",
6161
6196
  hideScrollbars: "_hideScrollbars_gb097_67",
6162
6197
  richTextInput: "_richTextInput_gb097_77"
6163
- }, bu = 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) => {
6164
6199
  let o = s(H), u = r || o, d = fr({
6165
6200
  extensions: [
6166
6201
  pr,
@@ -6187,17 +6222,17 @@ var Cr = /* @__PURE__ */ function(e) {
6187
6222
  clearContent: () => d == null ? void 0 : d.commands.clearContent(!1),
6188
6223
  editor: d
6189
6224
  }), [d]), /* @__PURE__ */ y("div", {
6190
- className: yu.richTextInput,
6191
- children: [/* @__PURE__ */ v(vu, {
6225
+ className: bu.richTextInput,
6226
+ children: [/* @__PURE__ */ v(yu, {
6192
6227
  editor: d,
6193
6228
  disabled: u,
6194
6229
  toolbarComponent: i
6195
6230
  }), /* @__PURE__ */ v(dr, { editor: d })]
6196
6231
  });
6197
- })), xu = { row: "_row_n16je_1" }, Su = ({ 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 }) => {
6198
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));
6199
6234
  return /* @__PURE__ */ v("div", {
6200
- className: g(xu.row),
6235
+ className: g(Su.row),
6201
6236
  style: {
6202
6237
  alignItems: t,
6203
6238
  justifyContent: n,
@@ -6213,7 +6248,7 @@ var Cr = /* @__PURE__ */ function(e) {
6213
6248
  "data-testid": d,
6214
6249
  children: p
6215
6250
  });
6216
- }, Cu = {
6251
+ }, wu = {
6217
6252
  inputInTable: "_inputInTable_1oy1z_1",
6218
6253
  inputHover: "_inputHover_1oy1z_13",
6219
6254
  inputFocus: "_inputFocus_1oy1z_18",
@@ -6232,7 +6267,7 @@ var Cr = /* @__PURE__ */ function(e) {
6232
6267
  experimental: "_experimental_1oy1z_155",
6233
6268
  active: "_active_1oy1z_159",
6234
6269
  icon: "_icon_1oy1z_163"
6235
- }, wu = 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, {
6236
6271
  text: t,
6237
6272
  enabled: !e,
6238
6273
  placement: "right-center",
@@ -6241,7 +6276,7 @@ var Cr = /* @__PURE__ */ function(e) {
6241
6276
  padding: "var(--padding-sm)",
6242
6277
  display: "block",
6243
6278
  children: /* @__PURE__ */ v("span", {
6244
- className: Cu.icon,
6279
+ className: wu.icon,
6245
6280
  children: /* @__PURE__ */ v(Pi, {
6246
6281
  small: !0,
6247
6282
  title: r ? "!" : void 0,
@@ -6250,18 +6285,18 @@ var Cr = /* @__PURE__ */ function(e) {
6250
6285
  })
6251
6286
  })
6252
6287
  }), /* @__PURE__ */ v("span", {
6253
- className: Cu.label,
6288
+ className: wu.label,
6254
6289
  children: t
6255
- })] }), (e, t) => er(e, t)), Tu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
6256
- className: Cu.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,
6257
6292
  children: t.map((t, a) => {
6258
6293
  let o = `${n}_${a}`;
6259
6294
  return /* @__PURE__ */ v("a", {
6260
6295
  href: t.value,
6261
- className: g(Cu.item, t.isActive ? Cu.active : "", t.isExperimental ? Cu.experimental : ""),
6296
+ className: g(wu.item, t.isActive ? wu.active : "", t.isExperimental ? wu.experimental : ""),
6262
6297
  onClick: (e) => r(e, t.value, t.label, t.onClick),
6263
6298
  "data-testid": i,
6264
- children: /* @__PURE__ */ v(wu, {
6299
+ children: /* @__PURE__ */ v(Tu, {
6265
6300
  label: t.label,
6266
6301
  icon: t.icon,
6267
6302
  invalid: t.invalid,
@@ -6269,16 +6304,16 @@ var Cr = /* @__PURE__ */ function(e) {
6269
6304
  }, o)
6270
6305
  }, o);
6271
6306
  })
6272
- }), Eu = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ v(_, { children: n.map((n, i) => /* @__PURE__ */ y(e.Fragment, { children: [/* @__PURE__ */ v("h5", {
6273
- className: Cu.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,
6274
6309
  children: n.heading.toUpperCase()
6275
- }), /* @__PURE__ */ v(Tu, {
6310
+ }), /* @__PURE__ */ v(Eu, {
6276
6311
  isOpen: t,
6277
6312
  items: n.items,
6278
6313
  sectionIndex: i,
6279
6314
  onClick: r,
6280
6315
  testId: n.testId
6281
- })] }, i)) }), Du = a(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6316
+ })] }, i)) }), Ou = a(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6282
6317
  let [i, a] = m(t), o = (e, t, n, r) => {
6283
6318
  e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), a(!1);
6284
6319
  }, s = e.sections.length > 0;
@@ -6299,13 +6334,13 @@ var Cr = /* @__PURE__ */ function(e) {
6299
6334
  icon: V.LEFT
6300
6335
  }),
6301
6336
  children: /* @__PURE__ */ v("div", {
6302
- className: g(Cu.sidebar, i ? "" : Cu.collapsed),
6337
+ className: g(wu.sidebar, i ? "" : wu.collapsed),
6303
6338
  children: s && /* @__PURE__ */ y("div", {
6304
- className: Cu.inner,
6339
+ className: wu.inner,
6305
6340
  children: [/* @__PURE__ */ v("h4", {
6306
- className: Cu.title,
6341
+ className: wu.title,
6307
6342
  children: e.title
6308
- }), /* @__PURE__ */ v(Eu, {
6343
+ }), /* @__PURE__ */ v(Du, {
6309
6344
  isOpen: i,
6310
6345
  sections: e.sections,
6311
6346
  onClick: o
@@ -6313,18 +6348,18 @@ var Cr = /* @__PURE__ */ function(e) {
6313
6348
  })
6314
6349
  })
6315
6350
  });
6316
- }, (e, t) => er(e, t)), Ou = {
6351
+ }, (e, t) => er(e, t)), ku = {
6317
6352
  skeletonContainer: "_skeletonContainer_mcfxp_9",
6318
6353
  skeleton: "_skeleton_mcfxp_9"
6319
- }, ku = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
6354
+ }, Au = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
6320
6355
  baseColor: "var(--color-skeleton-base)",
6321
6356
  highlightColor: "var(--color-skeleton-highlight)",
6322
- containerClassName: Ou.skeletonContainer,
6323
- className: Ou.skeleton,
6357
+ containerClassName: ku.skeletonContainer,
6358
+ className: ku.skeleton,
6324
6359
  count: e,
6325
6360
  width: t,
6326
6361
  height: n
6327
- }), Au = {
6362
+ }), ju = {
6328
6363
  tabs: "_tabs_1y79t_1",
6329
6364
  padding: "_padding_1y79t_7",
6330
6365
  margin: "_margin_1y79t_11",
@@ -6335,12 +6370,12 @@ var Cr = /* @__PURE__ */ function(e) {
6335
6370
  disabled: "_disabled_1y79t_61",
6336
6371
  left: "_left_1y79t_65",
6337
6372
  right: "_right_1y79t_65"
6338
- }, ju = ({ 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 }) => {
6339
6374
  let u = getComputedStyle(document.body).getPropertyValue("--color-text-error");
6340
6375
  return /* @__PURE__ */ v("a", {
6341
6376
  id: e == null ? void 0 : e.toString(),
6342
6377
  href: t,
6343
- className: g(Au.item, i ? Au.active : "", r ? Au.disabled : "", n && !i ? Au.hidden : "", o ? Au.right : Au.left),
6378
+ className: g(ju.item, i ? ju.active : "", r ? ju.disabled : "", n && !i ? ju.hidden : "", o ? ju.right : ju.left),
6344
6379
  onClick: a,
6345
6380
  "data-testid": l,
6346
6381
  children: s ? /* @__PURE__ */ v(Pi, {
@@ -6356,10 +6391,10 @@ var Cr = /* @__PURE__ */ function(e) {
6356
6391
  children: e
6357
6392
  }) : e
6358
6393
  });
6359
- }, Mu = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
6360
- className: g(n ? Au.contentPadding : ""),
6394
+ }, Nu = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
6395
+ className: g(n ? ju.contentPadding : ""),
6361
6396
  children: e.map((e, n) => t === n && e)
6362
- }) : null, Nu = ({ 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 }) => {
6363
6398
  let p = s(H), m = l !== void 0, h = n ? n.map((e, t) => {
6364
6399
  var n;
6365
6400
  return {
@@ -6383,11 +6418,11 @@ var Cr = /* @__PURE__ */ function(e) {
6383
6418
  }
6384
6419
  };
6385
6420
  return b ? /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("div", {
6386
- className: g(Au.tabs, a ? Au.padding : "", o ? Au.margin : ""),
6421
+ className: g(ju.tabs, a ? ju.padding : "", o ? ju.margin : ""),
6387
6422
  "data-testid": f,
6388
6423
  children: b.map((e, t) => {
6389
6424
  let { label: n, url: r, hidden: i, disabled: a, value: o, right: s, invalid: c, badge: l, testId: u } = e;
6390
- return /* @__PURE__ */ v(ju, {
6425
+ return /* @__PURE__ */ v(Mu, {
6391
6426
  label: n,
6392
6427
  url: r,
6393
6428
  hidden: i,
@@ -6400,12 +6435,12 @@ var Cr = /* @__PURE__ */ function(e) {
6400
6435
  testId: u
6401
6436
  }, t);
6402
6437
  })
6403
- }), /* @__PURE__ */ v(Mu, {
6438
+ }), /* @__PURE__ */ v(Nu, {
6404
6439
  activeTabIndex: w == null ? 0 : w,
6405
6440
  contentPadding: c,
6406
6441
  children: n
6407
6442
  })] }) : null;
6408
- }, Pu = ({ 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, {
6409
6444
  href: t,
6410
6445
  to: t,
6411
6446
  target: n,
@@ -6415,7 +6450,7 @@ var Cr = /* @__PURE__ */ function(e) {
6415
6450
  link: !0,
6416
6451
  children: e
6417
6452
  })
6418
- }), Fu = {
6453
+ }), Iu = {
6419
6454
  inputInTable: "_inputInTable_q0tl0_1",
6420
6455
  inputHover: "_inputHover_q0tl0_13",
6421
6456
  inputFocus: "_inputFocus_q0tl0_18",
@@ -6426,9 +6461,9 @@ var Cr = /* @__PURE__ */ function(e) {
6426
6461
  textarea: "_textarea_q0tl0_77",
6427
6462
  small: "_small_q0tl0_116",
6428
6463
  monospace: "_monospace_q0tl0_155"
6429
- }, Iu = ({ 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 }) => {
6430
6465
  let S = s(H), C = /* @__PURE__ */ v("textarea", {
6431
- className: g(Fu.textarea, f ? Fu.error : "", p ? Fu.warning : "", y ? Fu.monospace : "", b ? Fu.small : ""),
6466
+ className: g(Iu.textarea, f ? Iu.error : "", p ? Iu.warning : "", y ? Iu.monospace : "", b ? Iu.small : ""),
6432
6467
  name: e,
6433
6468
  value: t,
6434
6469
  placeholder: n,
@@ -6470,10 +6505,10 @@ var Cr = /* @__PURE__ */ function(e) {
6470
6505
  menu: "_menu_oyr59_139",
6471
6506
  active: "_active_oyr59_168",
6472
6507
  alert: "_alert_oyr59_193"
6473
- }, Lu = ({ warning: e }) => /* @__PURE__ */ v("div", {
6508
+ }, Ru = ({ warning: e }) => /* @__PURE__ */ v("div", {
6474
6509
  className: Q.alert,
6475
6510
  children: e
6476
- }), Ru = ({ icon: e, url: t, onClick: n }) => {
6511
+ }), zu = ({ icon: e, url: t, onClick: n }) => {
6477
6512
  let r = /* @__PURE__ */ v(U, { icon: e });
6478
6513
  return t ? /* @__PURE__ */ v("a", {
6479
6514
  href: t,
@@ -6485,7 +6520,7 @@ var Cr = /* @__PURE__ */ function(e) {
6485
6520
  className: Q.appSwitcher,
6486
6521
  children: r
6487
6522
  });
6488
- }, zu = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
6523
+ }, Bu = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
6489
6524
  let a = /* @__PURE__ */ y("div", {
6490
6525
  className: Q.title,
6491
6526
  children: [
@@ -6514,9 +6549,9 @@ var Cr = /* @__PURE__ */ function(e) {
6514
6549
  children: a
6515
6550
  })
6516
6551
  });
6517
- }, Bu = /* @__PURE__ */ function(e) {
6552
+ }, Vu = /* @__PURE__ */ function(e) {
6518
6553
  return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
6519
- }({}), Vu = ({ 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" }) => {
6520
6555
  let l = s(H);
6521
6556
  return /* @__PURE__ */ y(c, {
6522
6557
  className: g(Q.link, i ? Q.active : ""),
@@ -6533,11 +6568,11 @@ var Cr = /* @__PURE__ */ function(e) {
6533
6568
  children: e
6534
6569
  })]
6535
6570
  });
6536
- }, Hu = ({ element: e }) => {
6571
+ }, Uu = ({ element: e }) => {
6537
6572
  switch (e.type) {
6538
- case Bu.LINK: return /* @__PURE__ */ v("div", {
6573
+ case Vu.LINK: return /* @__PURE__ */ v("div", {
6539
6574
  className: Q.item,
6540
- children: /* @__PURE__ */ v(Vu, {
6575
+ children: /* @__PURE__ */ v(Hu, {
6541
6576
  label: e.label,
6542
6577
  url: e.url,
6543
6578
  icon: e.icon,
@@ -6548,7 +6583,7 @@ var Cr = /* @__PURE__ */ function(e) {
6548
6583
  component: e.component
6549
6584
  })
6550
6585
  });
6551
- case Bu.BUTTON: return /* @__PURE__ */ v("div", {
6586
+ case Vu.BUTTON: return /* @__PURE__ */ v("div", {
6552
6587
  className: g(Q.item, Q.button),
6553
6588
  children: /* @__PURE__ */ v(K, {
6554
6589
  label: e.label,
@@ -6560,7 +6595,7 @@ var Cr = /* @__PURE__ */ function(e) {
6560
6595
  testId: e.testId
6561
6596
  })
6562
6597
  });
6563
- case Bu.MENU: return /* @__PURE__ */ v("div", {
6598
+ case Vu.MENU: return /* @__PURE__ */ v("div", {
6564
6599
  className: g(Q.item, Q.menu),
6565
6600
  children: /* @__PURE__ */ v(Ki, {
6566
6601
  maxHeight: "100%",
@@ -6568,7 +6603,7 @@ var Cr = /* @__PURE__ */ function(e) {
6568
6603
  trigger: Cr.COMPONENT,
6569
6604
  fullHeightTrigger: !0,
6570
6605
  placement: "bottom-start",
6571
- component: /* @__PURE__ */ v(Vu, {
6606
+ component: /* @__PURE__ */ v(Hu, {
6572
6607
  label: e.label,
6573
6608
  icon: e.icon,
6574
6609
  onClick: e.onClick
@@ -6577,50 +6612,50 @@ var Cr = /* @__PURE__ */ function(e) {
6577
6612
  }
6578
6613
  })
6579
6614
  });
6580
- case Bu.COMPONENT: return /* @__PURE__ */ v("div", {
6615
+ case Vu.COMPONENT: return /* @__PURE__ */ v("div", {
6581
6616
  className: Q.item,
6582
6617
  children: e.component
6583
6618
  });
6584
6619
  default: return null;
6585
6620
  }
6586
- }, Uu = ({ 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(Lu, { 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", {
6587
6622
  className: g(Q.topbar, o ? Q.fixed : ""),
6588
6623
  style: { height: a },
6589
6624
  children: [
6590
- !!t && /* @__PURE__ */ v(Ru, {
6625
+ !!t && /* @__PURE__ */ v(zu, {
6591
6626
  icon: t.icon,
6592
6627
  url: t.url,
6593
6628
  onClick: t.onClick
6594
6629
  }),
6595
6630
  /* @__PURE__ */ y("div", {
6596
6631
  className: Q.left,
6597
- children: [e && /* @__PURE__ */ v(zu, {
6632
+ children: [e && /* @__PURE__ */ v(Bu, {
6598
6633
  label: e.label,
6599
6634
  logo: e.logo,
6600
6635
  url: e.url,
6601
6636
  version: e.version,
6602
6637
  onClick: e.onClick
6603
- }), n.map((e, t) => e ? /* @__PURE__ */ v(Hu, { element: e }, t) : null)]
6638
+ }), n.map((e, t) => e ? /* @__PURE__ */ v(Uu, { element: e }, t) : null)]
6604
6639
  }),
6605
6640
  /* @__PURE__ */ v("div", {
6606
6641
  className: Q.right,
6607
- children: r.map((e, t) => e ? /* @__PURE__ */ v(Hu, { element: e }, t) : null)
6642
+ children: r.map((e, t) => e ? /* @__PURE__ */ v(Uu, { element: e }, t) : null)
6608
6643
  })
6609
6644
  ]
6610
- })] }), Wu = {
6645
+ })] }), Gu = {
6611
6646
  popConfirm: "_popConfirm_1x6ye_1",
6612
6647
  content: "_content_1x6ye_7",
6613
6648
  buttons: "_buttons_1x6ye_13"
6614
- }, Gu = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ y("div", {
6615
- className: Wu.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,
6616
6651
  children: [e && /* @__PURE__ */ v("div", {
6617
- className: Wu.content,
6652
+ className: Gu.content,
6618
6653
  children: /* @__PURE__ */ v(ha, {
6619
6654
  small: !0,
6620
6655
  children: e
6621
6656
  })
6622
6657
  }), /* @__PURE__ */ y("div", {
6623
- className: Wu.buttons,
6658
+ className: Gu.buttons,
6624
6659
  children: [/* @__PURE__ */ v(K, {
6625
6660
  small: !0,
6626
6661
  colored: !0,
@@ -6635,8 +6670,8 @@ var Cr = /* @__PURE__ */ function(e) {
6635
6670
  testId: `${s}-cancel-button`
6636
6671
  })]
6637
6672
  })]
6638
- }), Ku = ({ 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, {
6639
- content: /* @__PURE__ */ v(Gu, {
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, {
6640
6675
  title: i,
6641
6676
  okText: s,
6642
6677
  onClickOk: c,
@@ -6651,14 +6686,14 @@ var Cr = /* @__PURE__ */ function(e) {
6651
6686
  overflowContainer: u,
6652
6687
  testId: d,
6653
6688
  children: e
6654
- }), qu = {
6689
+ }), Ju = {
6655
6690
  tree: "_tree_coxxe_1",
6656
6691
  toggle: "_toggle_coxxe_8",
6657
6692
  dropTarget: "_dropTarget_coxxe_15",
6658
6693
  placeholder: "_placeholder_coxxe_30",
6659
6694
  draggingSource: "_draggingSource_coxxe_36",
6660
6695
  placeholderContainer: "_placeholderContainer_coxxe_39"
6661
- }, Ju = ({ 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 }) => {
6662
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) => {
6663
6698
  e.stopPropagation(), i(l);
6664
6699
  }, w = (e) => {
@@ -6685,7 +6720,7 @@ var Cr = /* @__PURE__ */ function(e) {
6685
6720
  className: g(Z.itemHeader, _ ? Z.noPointerEvents : ""),
6686
6721
  children: [
6687
6722
  a && /* @__PURE__ */ v("div", {
6688
- className: qu.toggle,
6723
+ className: Ju.toggle,
6689
6724
  children: /* @__PURE__ */ v(K, {
6690
6725
  basic: !0,
6691
6726
  colored: r ? !0 : wr.MUTED,
@@ -6699,10 +6734,10 @@ var Cr = /* @__PURE__ */ function(e) {
6699
6734
  className: Z.drag,
6700
6735
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
6701
6736
  }),
6702
- /* @__PURE__ */ v(Jl, { item: u }),
6737
+ /* @__PURE__ */ v(Yl, { item: u }),
6703
6738
  /* @__PURE__ */ y("div", {
6704
6739
  className: Z.right,
6705
- children: [/* @__PURE__ */ v(Yl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ v("div", {
6740
+ children: [/* @__PURE__ */ v(Xl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ v("div", {
6706
6741
  className: Z.actions,
6707
6742
  children: /* @__PURE__ */ v(Ji, { actions: h })
6708
6743
  })]
@@ -6710,10 +6745,10 @@ var Cr = /* @__PURE__ */ function(e) {
6710
6745
  ]
6711
6746
  })
6712
6747
  });
6713
- }, Yu = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ v("div", {
6714
- className: qu.placeholder,
6748
+ }, Xu = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ v("div", {
6749
+ className: Ju.placeholder,
6715
6750
  style: { left: `calc(${t} * ${e})` }
6716
- }), Xu = ({ 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 }) => {
6717
6752
  var x;
6718
6753
  let S = l == null ? p(null) : l, C = (e) => {
6719
6754
  i && i(e);
@@ -6771,7 +6806,7 @@ var Cr = /* @__PURE__ */ function(e) {
6771
6806
  "data-testid": a,
6772
6807
  className: Z.list,
6773
6808
  style: { height: g },
6774
- children: [e.name && !e.noHeader && /* @__PURE__ */ v(Gl, {
6809
+ children: [e.name && !e.noHeader && /* @__PURE__ */ v(Kl, {
6775
6810
  name: e.name,
6776
6811
  actions: e.actions,
6777
6812
  stickyHeader: h
@@ -6798,7 +6833,7 @@ var Cr = /* @__PURE__ */ function(e) {
6798
6833
  hasChild: r,
6799
6834
  isOpen: a,
6800
6835
  onToggle: o
6801
- }) : /* @__PURE__ */ v(Ju, {
6836
+ }) : /* @__PURE__ */ v(Yu, {
6802
6837
  hasChild: u ? u(e) : r,
6803
6838
  node: e,
6804
6839
  depth: t,
@@ -6814,7 +6849,7 @@ var Cr = /* @__PURE__ */ function(e) {
6814
6849
  onDrop: A,
6815
6850
  onChangeOpen: C,
6816
6851
  dropTargetOffset: 10,
6817
- placeholderRender: (e, { depth: t }) => /* @__PURE__ */ v(Yu, {
6852
+ placeholderRender: (e, { depth: t }) => /* @__PURE__ */ v(Xu, {
6818
6853
  depth: t,
6819
6854
  indent: b
6820
6855
  }),
@@ -6822,17 +6857,17 @@ var Cr = /* @__PURE__ */ function(e) {
6822
6857
  listComponent: "div",
6823
6858
  listItemComponent: "div",
6824
6859
  classes: {
6825
- root: qu.tree,
6826
- draggingSource: qu.draggingSource,
6827
- dropTarget: qu.dropTarget,
6828
- placeholder: qu.placeholderContainer
6860
+ root: Ju.tree,
6861
+ draggingSource: Ju.draggingSource,
6862
+ dropTarget: Ju.dropTarget,
6863
+ placeholder: Ju.placeholderContainer
6829
6864
  },
6830
6865
  initialOpen: o,
6831
6866
  enableAnimateExpand: !0
6832
6867
  })
6833
6868
  })]
6834
6869
  });
6835
- }, Zu = {
6870
+ }, Qu = {
6836
6871
  treeTable: "_treeTable_1ywvy_1",
6837
6872
  treeTableHeader: "_treeTableHeader_1ywvy_22",
6838
6873
  folderCell: "_folderCell_1ywvy_30",
@@ -6840,48 +6875,48 @@ var Cr = /* @__PURE__ */ function(e) {
6840
6875
  drag: "_drag_1ywvy_31",
6841
6876
  folder: "_folder_1ywvy_30",
6842
6877
  active: "_active_1ywvy_61"
6843
- }, Qu = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Qu(e, t.id)]), $u = (e, t) => {
6878
+ }, $u = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...$u(e, t.id)]), ed = (e, t) => {
6844
6879
  let n = new Set(t);
6845
6880
  return e.filter((e) => !n.has(e.id)).map((e) => e.id);
6846
- }, ed = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), td = (e, t, n, r = []) => {
6881
+ }, td = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), nd = (e, t, n, r = []) => {
6847
6882
  let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
6848
6883
  if (o.length === 0) return {
6849
6884
  checked: i.has(t),
6850
6885
  indeterminate: !1
6851
6886
  };
6852
- let s = o.map((t) => td(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;
6853
6888
  return {
6854
6889
  checked: u,
6855
6890
  indeterminate: c + l > 0 && !u
6856
6891
  };
6857
- }, nd = (e, t, n = []) => {
6858
- let r = $u(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;
6859
6894
  return {
6860
6895
  checked: r.length > 0 && a === r.length,
6861
6896
  indeterminate: a > 0 && a < r.length
6862
6897
  };
6863
- }, rd = n(null), id = () => s(rd), ad = ({ children: e, rowCheckboxes: t, rows: n }) => {
6898
+ }, id = n(null), ad = () => s(id), od = ({ children: e, rowCheckboxes: t, rows: n }) => {
6864
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(() => {
6865
6900
  if (!r) return null;
6866
6901
  let e = /* @__PURE__ */ new Map();
6867
- for (let t of n) e.set(t.id, td(n, t.id, i, a));
6902
+ for (let t of n) e.set(t.id, nd(n, t.id, i, a));
6868
6903
  return e;
6869
6904
  }, [
6870
6905
  i,
6871
6906
  a,
6872
6907
  r,
6873
6908
  n
6874
- ]), f = d(() => r ? nd(n, i, a) : void 0, [
6909
+ ]), f = d(() => r ? rd(n, i, a) : void 0, [
6875
6910
  i,
6876
6911
  a,
6877
6912
  r,
6878
6913
  n
6879
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) => {
6880
6915
  if (!r || l.has(e)) return;
6881
- let t = Qu(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = td(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);
6882
6917
  if (u) {
6883
6918
  let e = new Set(s);
6884
- c == null || c(ed(i, e, l));
6919
+ c == null || c(td(i, e, l));
6885
6920
  } else c == null || c([...new Set([...i, ...o])]);
6886
6921
  }, [
6887
6922
  i,
@@ -6892,7 +6927,7 @@ var Cr = /* @__PURE__ */ function(e) {
6892
6927
  n
6893
6928
  ]), _ = o(() => {
6894
6929
  if (!r) return;
6895
- let e = $u(n, a), { checked: t } = nd(n, i, a);
6930
+ let e = ed(n, a), { checked: t } = rd(n, i, a);
6896
6931
  t ? c == null || c(i.filter((e) => l.has(e))) : c == null || c([...new Set([...i, ...e])]);
6897
6932
  }, [
6898
6933
  i,
@@ -6918,12 +6953,12 @@ var Cr = /* @__PURE__ */ function(e) {
6918
6953
  _,
6919
6954
  g
6920
6955
  ]);
6921
- return /* @__PURE__ */ v(rd.Provider, {
6956
+ return /* @__PURE__ */ v(id.Provider, {
6922
6957
  value: y,
6923
6958
  children: e
6924
6959
  });
6925
- }, od = ({ 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 }) => {
6926
- let h = id(), _ = 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) => {
6927
6962
  let r = t ? t[e] : void 0;
6928
6963
  return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
6929
6964
  };
@@ -6936,12 +6971,12 @@ var Cr = /* @__PURE__ */ function(e) {
6936
6971
  onDragLeave: f,
6937
6972
  children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ y("tr", {
6938
6973
  onClick: j,
6939
- className: g(Zu.treeTableRow, A ? Zu.active : void 0),
6974
+ className: g(Qu.treeTableRow, A ? Qu.active : void 0),
6940
6975
  children: [
6941
- C && /* @__PURE__ */ v(mc, {
6976
+ C && /* @__PURE__ */ v(hc, {
6942
6977
  isHeader: !1,
6943
6978
  cell: {
6944
- type: pc.CHECKBOX,
6979
+ type: mc.CHECKBOX,
6945
6980
  checked: b,
6946
6981
  disabled: S,
6947
6982
  indeterminate: x,
@@ -6950,19 +6985,19 @@ var Cr = /* @__PURE__ */ function(e) {
6950
6985
  }
6951
6986
  }),
6952
6987
  r && /* @__PURE__ */ v("td", {
6953
- className: Zu.dragCell,
6988
+ className: Qu.dragCell,
6954
6989
  children: /* @__PURE__ */ v("div", {
6955
- className: Zu.drag,
6990
+ className: Qu.drag,
6956
6991
  onClick: (e) => e.stopPropagation(),
6957
6992
  ref: i,
6958
6993
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
6959
6994
  })
6960
6995
  }),
6961
- Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: Zu.folderCell }, t)),
6996
+ Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: Qu.folderCell }, t)),
6962
6997
  M && /* @__PURE__ */ v("td", {
6963
- className: Zu.folderCell,
6998
+ className: Qu.folderCell,
6964
6999
  children: /* @__PURE__ */ v("div", {
6965
- className: Zu.folder,
7000
+ className: Qu.folder,
6966
7001
  onClick: () => m(E),
6967
7002
  onMouseDown: (e) => e.stopPropagation(),
6968
7003
  children: /* @__PURE__ */ v(K, {
@@ -6975,69 +7010,69 @@ var Cr = /* @__PURE__ */ function(e) {
6975
7010
  })
6976
7011
  })
6977
7012
  }),
6978
- D.map((t, n) => /* @__PURE__ */ v(mc, {
7013
+ D.map((t, n) => /* @__PURE__ */ v(hc, {
6979
7014
  isHeader: !1,
6980
7015
  cell: t,
6981
7016
  width: N(n),
6982
7017
  columnAlignment: e ? e[n] : null
6983
7018
  }, n)),
6984
- o && /* @__PURE__ */ v(mc, {
7019
+ o && /* @__PURE__ */ v(hc, {
6985
7020
  isHeader: !1,
6986
7021
  cell: {
6987
- type: pc.ACTIONS,
7022
+ type: mc.ACTIONS,
6988
7023
  actions: k
6989
7024
  }
6990
7025
  })
6991
7026
  ]
6992
7027
  }) })
6993
7028
  });
6994
- }, sd = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
6995
- let a = id(), 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;
6996
7031
  return /* @__PURE__ */ v("table", {
6997
- className: g(mo.table, Zu.treeTableHeader),
7032
+ className: g(mo.table, Qu.treeTableHeader),
6998
7033
  children: /* @__PURE__ */ v("thead", { children: i.map((i, c) => /* @__PURE__ */ y("tr", { children: [
6999
- s && c === 0 ? /* @__PURE__ */ v(mc, {
7034
+ s && c === 0 ? /* @__PURE__ */ v(hc, {
7000
7035
  isHeader: !0,
7001
7036
  cell: {
7002
- type: pc.CHECKBOX,
7037
+ type: mc.CHECKBOX,
7003
7038
  checked: o.checked,
7004
7039
  indeterminate: o.indeterminate,
7005
7040
  onChange: a.toggleHeaderCheck
7006
7041
  }
7007
7042
  }) : s ? /* @__PURE__ */ v("td", {}) : null,
7008
- n && /* @__PURE__ */ v("th", { className: Zu.dragCell }),
7009
- i.cells.map((n, r) => /* @__PURE__ */ v(mc, {
7043
+ n && /* @__PURE__ */ v("th", { className: Qu.dragCell }),
7044
+ i.cells.map((n, r) => /* @__PURE__ */ v(hc, {
7010
7045
  isHeader: !0,
7011
7046
  cell: n,
7012
7047
  width: t ? t[r] : void 0,
7013
7048
  columnAlignment: e ? e[r] : void 0
7014
7049
  }, r)),
7015
- r && /* @__PURE__ */ v(mc, {
7050
+ r && /* @__PURE__ */ v(hc, {
7016
7051
  isHeader: !0,
7017
7052
  cell: {
7018
- type: pc.ACTIONS,
7053
+ type: mc.ACTIONS,
7019
7054
  actions: i.actions,
7020
7055
  width: 31
7021
7056
  }
7022
7057
  })
7023
7058
  ] }, c)) })
7024
7059
  });
7025
- }, cd = ({ 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 }) => {
7026
7061
  let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: b = [] } = d, x = Fs(b, _ == null ? [] : _);
7027
- return /* @__PURE__ */ v(ad, {
7062
+ return /* @__PURE__ */ v(od, {
7028
7063
  rowCheckboxes: u,
7029
7064
  rows: b,
7030
7065
  children: /* @__PURE__ */ y("div", {
7031
- className: Zu.treeTable,
7066
+ className: Qu.treeTable,
7032
7067
  "data-testid": f,
7033
7068
  style: { width: g },
7034
- children: [!!_ && /* @__PURE__ */ v(sd, {
7069
+ children: [!!_ && /* @__PURE__ */ v(cd, {
7035
7070
  columnAlignment: m,
7036
7071
  columnWidths: h,
7037
7072
  draggable: r,
7038
7073
  hasRowActions: x,
7039
7074
  headers: _
7040
- }), /* @__PURE__ */ v(Xu, {
7075
+ }), /* @__PURE__ */ v(Zu, {
7041
7076
  allowParentReassignment: e,
7042
7077
  autoOpenActiveItems: t,
7043
7078
  canDrop: n,
@@ -7053,7 +7088,7 @@ var Cr = /* @__PURE__ */ function(e) {
7053
7088
  onItemToggle: s,
7054
7089
  onListReorder: c,
7055
7090
  placeholderIndent: "var(--size)",
7056
- render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(od, {
7091
+ render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(sd, {
7057
7092
  node: e,
7058
7093
  columnAlignment: m,
7059
7094
  columnWidths: h,
@@ -7070,38 +7105,38 @@ var Cr = /* @__PURE__ */ function(e) {
7070
7105
  })]
7071
7106
  })
7072
7107
  });
7073
- }, ld = () => {
7108
+ }, ud = () => {
7074
7109
  let e = p(null);
7075
7110
  return u(() => {
7076
7111
  e.current && (e.current(), e.current = null);
7077
7112
  }), (t) => {
7078
7113
  e.current = t;
7079
7114
  };
7080
- }, ud = (e) => {
7115
+ }, dd = (e) => {
7081
7116
  let t = p(void 0);
7082
7117
  return c(() => {
7083
7118
  t.current = e;
7084
7119
  }, [e]), t.current;
7085
- }, dd = (e, t) => {
7120
+ }, fd = (e, t) => {
7086
7121
  let n = t == null ? void 0 : t[e];
7087
7122
  if (!n) {
7088
7123
  var r;
7089
7124
  return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Un(e)) == null ? "" : r;
7090
7125
  }
7091
7126
  return n;
7092
- }, fd = /* @__PURE__ */ function(e) {
7127
+ }, pd = /* @__PURE__ */ function(e) {
7093
7128
  return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
7094
- }({}), pd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), md = (e) => {
7129
+ }({}), md = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), hd = (e) => {
7095
7130
  if (!e) return !1;
7096
7131
  let t = Dn(e);
7097
7132
  return !xn.includes(t);
7098
- }, hd = ({ value: e, unitkey: t, toUnit: n }) => {
7133
+ }, gd = ({ value: e, unitkey: t, toUnit: n }) => {
7099
7134
  var r;
7100
7135
  let i = bn[t];
7101
7136
  if (!i || i.length === 0 || !((r = Wn(e)) != null && r.valid) || !i.includes(n)) return !1;
7102
7137
  let a = Dn(String(e));
7103
7138
  return !(a && !i.includes(a));
7104
- }, gd = ({ 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 }) => {
7105
7140
  var o;
7106
7141
  let s = Nn(e) ? kn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
7107
7142
  if (i || c) return {
@@ -7121,13 +7156,13 @@ var Cr = /* @__PURE__ */ function(e) {
7121
7156
  value: void 0,
7122
7157
  error: "Source unit is missing"
7123
7158
  };
7124
- if (pd(s)) return {
7159
+ if (md(s)) return {
7125
7160
  value: void 0,
7126
7161
  error: "Value is invalid for conversion"
7127
7162
  };
7128
7163
  try {
7129
7164
  let e = Kn(s, l);
7130
- return hd({
7165
+ return gd({
7131
7166
  value: e,
7132
7167
  toUnit: n,
7133
7168
  unitkey: t
@@ -7144,13 +7179,13 @@ var Cr = /* @__PURE__ */ function(e) {
7144
7179
  error: "Conversion not possible"
7145
7180
  };
7146
7181
  }
7147
- }, _d = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
7148
- let a = kn(e), o = pd(a);
7149
- return !hd({
7182
+ }, vd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
7183
+ let a = kn(e), o = md(a);
7184
+ return !gd({
7150
7185
  value: e,
7151
7186
  unitkey: n,
7152
7187
  toUnit: t
7153
- }) || md(e) || o ? { value: a } : Nn(e) ? gd({
7188
+ }) || hd(e) || o ? { value: a } : Nn(e) ? _d({
7154
7189
  value: e,
7155
7190
  unitkey: n,
7156
7191
  toUnit: t,
@@ -7158,25 +7193,25 @@ var Cr = /* @__PURE__ */ function(e) {
7158
7193
  doNotConvertValue: i,
7159
7194
  exactPrecision: !0
7160
7195
  }) : { value: e };
7161
- }, vd = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", yd = (e = "") => xn == null ? void 0 : xn.includes(e), bd = (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) => {
7162
7197
  let n = Dn(e || "");
7163
- return yd(t) && yd(n);
7164
- }, xd = n(null), Sd = () => s(xd), Cd = !1, wd = (e) => {
7165
- Cd || (Cd = !0, xd = e);
7166
- }, Td = (e) => jn(e) ? e : Fn(e), Ed = {
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 = {
7167
7202
  predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
7168
7203
  inputWrapper: "_inputWrapper_ye9w9_4"
7169
- }, Dd = ({ 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 = () => ({
7170
7205
  name: "",
7171
7206
  error: null
7172
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 }) => {
7173
- let ne = Sd(), re = ld();
7208
+ let ne = Cd(), re = ud();
7174
7209
  typeof l == "number" && (l = `${l}`);
7175
- let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => dd(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)), [
7176
7211
  u,
7177
7212
  C,
7178
7213
  ne == null ? void 0 : ne.unitTemplate
7179
- ]), oe = bd(l, R), se = f || R || ae, ce = ud(se), { value: le } = _d({
7214
+ ]), oe = xd(l, R), se = f || R || ae, ce = dd(se), { value: le } = vd({
7180
7215
  value: l,
7181
7216
  toUnit: se,
7182
7217
  unitkey: u,
@@ -7188,10 +7223,10 @@ var Cr = /* @__PURE__ */ function(e) {
7188
7223
  } : {
7189
7224
  value: le,
7190
7225
  unit: se
7191
- }), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ? fd.PREDEFINED : fd.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) => {
7192
7227
  if (!(e != null && e.value)) return;
7193
7228
  if (k) return k === e.valueKey;
7194
- let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = gd({
7229
+ let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = _d({
7195
7230
  value: String(l),
7196
7231
  unitkey: u,
7197
7232
  toUnit: t
@@ -7200,7 +7235,7 @@ var Cr = /* @__PURE__ */ function(e) {
7200
7235
  }), ge = () => {
7201
7236
  var e;
7202
7237
  let t = (e = l) == null ? "" : e, n = z.unit;
7203
- if (!hd({
7238
+ if (!gd({
7204
7239
  value: t,
7205
7240
  unitkey: u,
7206
7241
  toUnit: n
@@ -7214,7 +7249,7 @@ var Cr = /* @__PURE__ */ function(e) {
7214
7249
  return null;
7215
7250
  }
7216
7251
  }, _e = (t) => {
7217
- let n = vd(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) || "");
7218
7253
  h({ target: {
7219
7254
  value: N ? Kn(wn(o, ae), ae) : o,
7220
7255
  name: n
@@ -7236,7 +7271,7 @@ var Cr = /* @__PURE__ */ function(e) {
7236
7271
  if (se) {
7237
7272
  let e, t = "";
7238
7273
  if (ce !== se) {
7239
- let { value: n } = _d({
7274
+ let { value: n } = vd({
7240
7275
  value: l,
7241
7276
  toUnit: se,
7242
7277
  unitkey: u,
@@ -7245,7 +7280,7 @@ var Cr = /* @__PURE__ */ function(e) {
7245
7280
  });
7246
7281
  e = n, t = se;
7247
7282
  } else if (Kn(z.value, z.unit) !== l) {
7248
- let { value: n } = _d({
7283
+ let { value: n } = vd({
7249
7284
  value: l,
7250
7285
  toUnit: z.unit,
7251
7286
  unitkey: u,
@@ -7257,7 +7292,7 @@ var Cr = /* @__PURE__ */ function(e) {
7257
7292
  e !== void 0 && ue({
7258
7293
  value: e,
7259
7294
  unit: t
7260
- }), pe(E && he && O ? fd.PREDEFINED : fd.CUSTOM);
7295
+ }), pe(E && he && O ? pd.PREDEFINED : pd.CUSTOM);
7261
7296
  }
7262
7297
  }, [
7263
7298
  se,
@@ -7265,14 +7300,14 @@ var Cr = /* @__PURE__ */ function(e) {
7265
7300
  i,
7266
7301
  O
7267
7302
  ]);
7268
- let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = vd(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) => {
7269
7304
  let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Nn(r) ? zn(r) : [r], o = Gn(r);
7270
- if (hd({
7305
+ if (gd({
7271
7306
  value: r,
7272
7307
  unitkey: u,
7273
7308
  toUnit: a
7274
7309
  })) {
7275
- let { value: e = "" } = _d({
7310
+ let { value: e = "" } = vd({
7276
7311
  value: r,
7277
7312
  toUnit: R,
7278
7313
  unitkey: u,
@@ -7285,7 +7320,7 @@ var Cr = /* @__PURE__ */ function(e) {
7285
7320
  type: xi.OPTION,
7286
7321
  inline: !0,
7287
7322
  onClick: () => {
7288
- Wn(i).valid && !n && (pe(fd.PREDEFINED), h({ target: {
7323
+ Wn(i).valid && !n && (pe(pd.PREDEFINED), h({ target: {
7289
7324
  value: r,
7290
7325
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
7291
7326
  predefinedSelected: !0,
@@ -7297,27 +7332,27 @@ var Cr = /* @__PURE__ */ function(e) {
7297
7332
  height: "0"
7298
7333
  })] }),
7299
7334
  description: o,
7300
- selected: he === t && fe === fd.PREDEFINED
7335
+ selected: he === t && fe === pd.PREDEFINED
7301
7336
  };
7302
7337
  };
7303
7338
  if (Ce = [{
7304
7339
  type: xi.OPTION,
7305
7340
  inline: !0,
7306
7341
  onClick: () => {
7307
- fe !== fd.CUSTOM && !n && h({ target: {
7342
+ fe !== pd.CUSTOM && !n && h({ target: {
7308
7343
  value: Kn(z.value, z.unit),
7309
7344
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
7310
7345
  } });
7311
7346
  },
7312
7347
  label: "Custom",
7313
- selected: fe === fd.CUSTOM
7348
+ selected: fe === pd.CUSTOM
7314
7349
  }], E != null && E.length) {
7315
7350
  let e = E.map(we);
7316
7351
  Ce = [...Ce, ...e];
7317
7352
  }
7318
7353
  let Te = (e) => {
7319
7354
  if (Nn(e)) {
7320
- let t = Dn(e), { value: n } = _d({
7355
+ let t = Dn(e), { value: n } = vd({
7321
7356
  value: e,
7322
7357
  toUnit: z.unit,
7323
7358
  unitkey: u,
@@ -7329,7 +7364,7 @@ var Cr = /* @__PURE__ */ function(e) {
7329
7364
  return e;
7330
7365
  }, Ee = !E && (!L || L === B.FIRST) ? B.FIRST : B.MIDDLE, De = !L || L === B.LAST ? B.LAST : B.MIDDLE;
7331
7366
  return /* @__PURE__ */ v("div", {
7332
- className: fe === fd.PREDEFINED ? g(Ed.predefinedMenuActive) : "",
7367
+ className: fe === pd.PREDEFINED ? g(Dd.predefinedMenuActive) : "",
7333
7368
  children: /* @__PURE__ */ y(Ma, {
7334
7369
  small: o,
7335
7370
  width: s,
@@ -7344,17 +7379,17 @@ var Cr = /* @__PURE__ */ function(e) {
7344
7379
  trigger: "Component",
7345
7380
  component: /* @__PURE__ */ v(K, {
7346
7381
  groupOrder: "first",
7347
- active: fe === fd.PREDEFINED,
7348
- icon: fe === fd.PREDEFINED ? "link" : "unlink",
7382
+ active: fe === pd.PREDEFINED,
7383
+ icon: fe === pd.PREDEFINED ? "link" : "unlink",
7349
7384
  small: o
7350
7385
  }),
7351
7386
  small: o,
7352
7387
  sections: Ce
7353
7388
  },
7354
- tooltip: fe === fd.PREDEFINED ? he == null ? void 0 : he.label : ""
7389
+ tooltip: fe === pd.PREDEFINED ? he == null ? void 0 : he.label : ""
7355
7390
  }),
7356
7391
  /* @__PURE__ */ v("div", {
7357
- className: Ed.inputWrapper,
7392
+ className: Dd.inputWrapper,
7358
7393
  children: /* @__PURE__ */ v(Gs, {
7359
7394
  name: Se,
7360
7395
  testId: w,
@@ -7396,7 +7431,7 @@ var Cr = /* @__PURE__ */ function(e) {
7396
7431
  let r = n || t || "", i = Mn(e) ? e : "";
7397
7432
  return {
7398
7433
  type: "Option",
7399
- label: P ? Td(i) : i,
7434
+ label: P ? Ed(i) : i,
7400
7435
  inline: !0,
7401
7436
  onClick: (n) => {
7402
7437
  n.stopPropagation(), ve(e, t);
@@ -7411,10 +7446,10 @@ var Cr = /* @__PURE__ */ function(e) {
7411
7446
  ]
7412
7447
  })
7413
7448
  });
7414
- }, Od = Object.freeze({
7449
+ }, kd = Object.freeze({
7415
7450
  Translations: "translations",
7416
7451
  LanguageKey: "languageKey"
7417
- }), kd = {
7452
+ }), Ad = {
7418
7453
  unified: "Unified",
7419
7454
  split: "Split",
7420
7455
  changesTooLarge: "Changes are too large to be shown",
@@ -7436,29 +7471,29 @@ var Cr = /* @__PURE__ */ function(e) {
7436
7471
  pluralChanges: "changes",
7437
7472
  showAll: "Show all",
7438
7473
  unknown: "Unknown"
7439
- }, Ad = (e) => Object.keys(kd).reduce((t, n) => ({
7474
+ }, jd = (e) => Object.keys(Ad).reduce((t, n) => ({
7440
7475
  ...t,
7441
- [n]: (e == null ? void 0 : e[n]) || (kd == null ? void 0 : kd[n])
7442
- }), {}), jd = {
7443
- [Od.Translations]: Ad(),
7444
- [Od.LanguageKey]: "en"
7445
- }, Md = (e) => e ? jd[e] : jd, Nd = (e, t) => {
7446
- jd[e] = t;
7447
- }, Pd = (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 }) => {
7448
7483
  var a;
7449
- let { unitTemplate: o = null } = (a = Sd()) == null ? {} : a;
7450
- return e[n] = r == null ? dd(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, {
7451
7486
  preferredUnits: e,
7452
7487
  storageUnits: t
7453
7488
  };
7454
7489
  }, {
7455
7490
  preferredUnits: {},
7456
7491
  storageUnits: {}
7457
- }), Fd = ({ 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 }) => ({
7458
7493
  ...e,
7459
7494
  cells: e.cells.map((e, s) => {
7460
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")) {
7461
- 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 } = gd({
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({
7462
7497
  value: Hs(l),
7463
7498
  unitkey: c,
7464
7499
  toUnit: f,
@@ -7472,7 +7507,7 @@ var Cr = /* @__PURE__ */ function(e) {
7472
7507
  roundDisplayValue: d,
7473
7508
  selectOnFocus: !0,
7474
7509
  onChange: (n) => {
7475
- let { value: r } = n.target, a = i ? p : f, { value: o = r } = gd({
7510
+ let { value: r } = n.target, a = i ? p : f, { value: o = r } = _d({
7476
7511
  value: String(r),
7477
7512
  unitkey: c,
7478
7513
  toUnit: a,
@@ -7496,17 +7531,17 @@ var Cr = /* @__PURE__ */ function(e) {
7496
7531
  }
7497
7532
  return e;
7498
7533
  })
7499
- }), Id = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7500
- let { translations: i } = Md();
7534
+ }), Ld = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7535
+ let { translations: i } = Nd();
7501
7536
  return e ? e.map((e) => ({
7502
7537
  ...e,
7503
7538
  cells: e.cells.map((e) => {
7504
- if (e.type === pc.AUTO_UNIT) {
7539
+ if (e.type === mc.AUTO_UNIT) {
7505
7540
  var a;
7506
7541
  let { testId: o, unitKey: s, disabled: c = !1, error: l } = e, u = n[s];
7507
7542
  return {
7508
7543
  value: u && t[s],
7509
- type: pc.SELECT,
7544
+ type: mc.SELECT,
7510
7545
  error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
7511
7546
  disabled: c || !u,
7512
7547
  searchable: !1,
@@ -7526,8 +7561,8 @@ var Cr = /* @__PURE__ */ function(e) {
7526
7561
  return e;
7527
7562
  })
7528
7563
  })) : [];
7529
- }, Ld = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: s, beforeRenderRow: l }) => {
7530
- let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Pd(t), h = ud(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 }) => {
7531
7566
  _({
7532
7567
  ...g,
7533
7568
  [e]: n
@@ -7538,7 +7573,7 @@ var Cr = /* @__PURE__ */ function(e) {
7538
7573
  newUnit: n,
7539
7574
  unitKey: e
7540
7575
  });
7541
- }, b = o(({ row: e, rowIndex: t }) => Fd({
7576
+ }, b = o(({ row: e, rowIndex: t }) => Id({
7542
7577
  row: l ? l({
7543
7578
  row: e,
7544
7579
  rowIndex: t
@@ -7564,10 +7599,10 @@ var Cr = /* @__PURE__ */ function(e) {
7564
7599
  value: n
7565
7600
  });
7566
7601
  });
7567
- }, [t]), /* @__PURE__ */ v(Cc, {
7602
+ }, [t]), /* @__PURE__ */ v(wc, {
7568
7603
  table: {
7569
7604
  ...d,
7570
- headers: Id({
7605
+ headers: Ld({
7571
7606
  headers: e.headers,
7572
7607
  selectedUnits: g,
7573
7608
  storageUnits: f,
@@ -7578,8 +7613,8 @@ var Cr = /* @__PURE__ */ function(e) {
7578
7613
  canListReorder: s,
7579
7614
  beforeRenderRow: b
7580
7615
  });
7581
- }, Rd = { settingField: "_settingField_1x02n_1" }, zd = ({ 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 }) => {
7582
- let { translations: d } = Md(), 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 = [
7583
7618
  ...r ? [] : [{
7584
7619
  label: d == null ? void 0 : d.allUsers,
7585
7620
  value: !1
@@ -7594,14 +7629,14 @@ var Cr = /* @__PURE__ */ function(e) {
7594
7629
  }] : []
7595
7630
  ], m = a !== void 0 && o !== void 0 && !an(a, o);
7596
7631
  return /* @__PURE__ */ y("div", {
7597
- className: Rd.settingField,
7632
+ className: zd.settingField,
7598
7633
  "data-testid": u,
7599
- children: [/* @__PURE__ */ y(Ll, {
7634
+ children: [/* @__PURE__ */ y(Rl, {
7600
7635
  justifyContent: "space-between",
7601
7636
  wrap: !1,
7602
7637
  children: [i, !s && /* @__PURE__ */ v("div", {
7603
7638
  style: { flexShrink: 0 },
7604
- children: /* @__PURE__ */ y(Ll, {
7639
+ children: /* @__PURE__ */ y(Rl, {
7605
7640
  gap: "8px",
7606
7641
  alignItems: "center",
7607
7642
  children: [m && /* @__PURE__ */ v(si, {
@@ -7626,19 +7661,19 @@ var Cr = /* @__PURE__ */ function(e) {
7626
7661
  children: f(t)
7627
7662
  })]
7628
7663
  });
7629
- }, Bd = (e, t) => {
7664
+ }, Vd = (e, t) => {
7630
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;
7631
7666
  return {
7632
7667
  added: Math.max(0, i),
7633
7668
  removed: Math.max(0, a)
7634
7669
  };
7635
- }, Vd = "split", Hd = "unified", Ud = ({ oldJson: e, newJson: t, viewType: n = Vd }) => {
7670
+ }, Hd = "split", Ud = "unified", Wd = ({ oldJson: e, newJson: t, viewType: n = Hd }) => {
7636
7671
  var r, i;
7637
- let { translations: a } = Md(), [o, s] = m(n), l = [{
7638
- value: Vd,
7672
+ let { translations: a } = Nd(), [o, s] = m(n), l = [{
7673
+ value: Hd,
7639
7674
  label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
7640
7675
  }, {
7641
- value: Hd,
7676
+ value: Ud,
7642
7677
  label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
7643
7678
  }];
7644
7679
  c(() => {
@@ -7646,10 +7681,10 @@ var Cr = /* @__PURE__ */ function(e) {
7646
7681
  }, [n]);
7647
7682
  let u = ({ target: { value: e } }) => {
7648
7683
  s(e);
7649
- }, { added: d, removed: f } = Bd(e, t), p = d + f > 3500;
7684
+ }, { added: d, removed: f } = Vd(e, t), p = d + f > 3500;
7650
7685
  return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(na, {
7651
7686
  bordered: !0,
7652
- heading: /* @__PURE__ */ y(Ll, {
7687
+ heading: /* @__PURE__ */ y(Rl, {
7653
7688
  gap: !0,
7654
7689
  children: [/* @__PURE__ */ v(ya, { children: /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y(ha, {
7655
7690
  success: !0,
@@ -7661,7 +7696,7 @@ var Cr = /* @__PURE__ */ function(e) {
7661
7696
  }), /* @__PURE__ */ y(ha, {
7662
7697
  error: !0,
7663
7698
  children: ["-", f]
7664
- })] }) }), !p && /* @__PURE__ */ v(hu, {
7699
+ })] }) }), !p && /* @__PURE__ */ v(gu, {
7665
7700
  name: "viewType",
7666
7701
  options: l,
7667
7702
  value: o,
@@ -7679,14 +7714,14 @@ var Cr = /* @__PURE__ */ function(e) {
7679
7714
  }) : /* @__PURE__ */ v(xr, {
7680
7715
  oldValue: e,
7681
7716
  newValue: t,
7682
- splitView: o === Vd,
7717
+ splitView: o === Hd,
7683
7718
  compareMethod: Sr.WORDS
7684
7719
  })
7685
7720
  }) });
7686
7721
  };
7687
7722
  //#endregion
7688
7723
  //#region src/helpers/date.ts
7689
- function Wd({ 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 }) {
7690
7725
  return e ? new Date(e).toLocaleString(a, {
7691
7726
  year: "numeric",
7692
7727
  month: "short",
@@ -7700,28 +7735,28 @@ function Wd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
7700
7735
  }
7701
7736
  //#endregion
7702
7737
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
7703
- function Gd(e) {
7738
+ function Kd(e) {
7704
7739
  var t;
7705
7740
  let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
7706
7741
  if (!n) throw Error("Invalid RegExp");
7707
7742
  return new RegExp((t = n[1]) == null ? "" : t, n[2]);
7708
7743
  }
7709
- function Kd(e) {
7744
+ function qd(e) {
7710
7745
  if (typeof e != "object") return e;
7711
7746
  if (e === null) return null;
7712
- if (Array.isArray(e)) return e.map(Kd);
7747
+ if (Array.isArray(e)) return e.map(qd);
7713
7748
  if (e instanceof Date) return new Date(e.getTime());
7714
- if (e instanceof RegExp) return Gd(e);
7749
+ if (e instanceof RegExp) return Kd(e);
7715
7750
  let t = {};
7716
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Kd(e[n]));
7751
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = qd(e[n]));
7717
7752
  return t;
7718
7753
  }
7719
7754
  //#endregion
7720
7755
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
7721
- function qd(e, t) {
7756
+ function Jd(e, t) {
7722
7757
  if (e.length === 0) throw Error(t || "Expected a non-empty array");
7723
7758
  }
7724
- var Jd = (e) => e[e.length - 1], Yd = class {
7759
+ var Yd = (e) => e[e.length - 1], Xd = class {
7725
7760
  setResult(e) {
7726
7761
  return this.result = e, this.hasResult = !0, this;
7727
7762
  }
@@ -7729,16 +7764,16 @@ var Jd = (e) => e[e.length - 1], Yd = class {
7729
7764
  return this.exiting = !0, this;
7730
7765
  }
7731
7766
  push(e, t) {
7732
- return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (qd(this.children), Jd(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;
7733
7768
  }
7734
- }, Xd = class extends Yd {
7769
+ }, Zd = class extends Xd {
7735
7770
  constructor(e, t) {
7736
7771
  super(), this.left = e, this.right = t, this.pipe = "diff";
7737
7772
  }
7738
7773
  prepareDeltaResult(e) {
7739
7774
  var t, n, r, i;
7740
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)) {
7741
- let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Kd;
7776
+ let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : qd;
7742
7777
  typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
7743
7778
  }
7744
7779
  return e;
@@ -7746,15 +7781,15 @@ var Jd = (e) => e[e.length - 1], Yd = class {
7746
7781
  setResult(e) {
7747
7782
  return this.prepareDeltaResult(e), super.setResult(e);
7748
7783
  }
7749
- }, Zd = class extends Yd {
7784
+ }, Qd = class extends Xd {
7750
7785
  constructor(e, t) {
7751
7786
  super(), this.left = e, this.delta = t, this.pipe = "patch";
7752
7787
  }
7753
- }, Qd = class extends Yd {
7788
+ }, $d = class extends Xd {
7754
7789
  constructor(e) {
7755
7790
  super(), this.delta = e, this.pipe = "reverse";
7756
7791
  }
7757
- }, $d = class {
7792
+ }, ef = class {
7758
7793
  constructor(e) {
7759
7794
  this.name = e, this.filters = [];
7760
7795
  }
@@ -7818,7 +7853,7 @@ var Jd = (e) => e[e.length - 1], Yd = class {
7818
7853
  }
7819
7854
  }), this);
7820
7855
  }
7821
- }, ef = class {
7856
+ }, tf = class {
7822
7857
  constructor(e) {
7823
7858
  this.selfOptions = e || {}, this.pipes = {};
7824
7859
  }
@@ -7845,7 +7880,7 @@ var Jd = (e) => e[e.length - 1], Yd = class {
7845
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);
7846
7881
  return n.hasResult ? n.result : void 0;
7847
7882
  }
7848
- }, tf = (e, t, n, r) => e[n] === t[r], nf = (e, t, n, r) => {
7883
+ }, nf = (e, t, n, r) => e[n] === t[r], rf = (e, t, n, r) => {
7849
7884
  var i, a, o;
7850
7885
  let s = e.length, c = t.length, l, u, d = Array(s + 1);
7851
7886
  for (l = 0; l < s + 1; l++) {
@@ -7861,7 +7896,7 @@ var Jd = (e) => e[e.length - 1], Yd = class {
7861
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);
7862
7897
  }
7863
7898
  return d;
7864
- }, rf = (e, t, n, r) => {
7899
+ }, af = (e, t, n, r) => {
7865
7900
  let i = t.length, a = n.length, o = {
7866
7901
  sequence: [],
7867
7902
  indices1: [],
@@ -7883,11 +7918,11 @@ var Jd = (e) => e[e.length - 1], Yd = class {
7883
7918
  }
7884
7919
  }
7885
7920
  return o;
7886
- }, af = { get: (e, t, n, r) => {
7921
+ }, of = { get: (e, t, n, r) => {
7887
7922
  let i = r || {};
7888
- return rf(nf(e, t, n || tf, i), e, t, i);
7889
- } }, of = 3;
7890
- function sf(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) {
7891
7926
  for (let i = 0; i < n; i++) {
7892
7927
  let n = e[i];
7893
7928
  for (let e = 0; e < r; e++) {
@@ -7897,7 +7932,7 @@ function sf(e, t, n, r) {
7897
7932
  }
7898
7933
  return !1;
7899
7934
  }
7900
- function cf(e, t, n, r, i) {
7935
+ function lf(e, t, n, r, i) {
7901
7936
  let a = e[n], o = t[r];
7902
7937
  if (a === o) return !0;
7903
7938
  if (typeof a != "object" || typeof o != "object") return !1;
@@ -7910,15 +7945,15 @@ function cf(e, t, n, r, i) {
7910
7945
  let l = i.hashCache2[r];
7911
7946
  return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
7912
7947
  }
7913
- var lf = function(e) {
7948
+ var uf = function(e) {
7914
7949
  var t, n, r, i, a;
7915
7950
  if (!e.leftIsArray) return;
7916
7951
  let o = {
7917
7952
  objectHash: (t = e.options) == null ? void 0 : t.objectHash,
7918
7953
  matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
7919
7954
  }, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
7920
- for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !sf(f, p, m, h)); s < m && s < h && cf(f, p, s, s, o);) l = s, g = new Xd(f[l], p[l]), e.push(g, l), s++;
7921
- for (; c + s < m && c + s < h && cf(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Xd(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++;
7922
7957
  let _;
7923
7958
  if (s + c === m) {
7924
7959
  if (m === h) {
@@ -7942,7 +7977,7 @@ var lf = function(e) {
7942
7977
  return;
7943
7978
  }
7944
7979
  o.hashCache1 = void 0, o.hashCache2 = void 0;
7945
- let v = f.slice(s, m - c), y = p.slice(s, h - c), b = af.get(v, y, cf, o), x = [];
7980
+ let v = f.slice(s, m - c), y = p.slice(s, h - c), b = of.get(v, y, lf, o), x = [];
7946
7981
  for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
7947
7982
  let t = `_${l}`;
7948
7983
  _[t] = [
@@ -7963,8 +7998,8 @@ var lf = function(e) {
7963
7998
  if (S && w > 0) for (let n = 0; n < w; n++) {
7964
7999
  u = x[n];
7965
8000
  let r = u === void 0 ? void 0 : _[`_${u}`];
7966
- if (u !== void 0 && r && cf(v, y, u - s, l - s, o)) {
7967
- r.splice(1, 2, l, of), r.splice(1, 2, l, of), C || (r[0] = ""), d = l, g = new Xd(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;
7968
8003
  break;
7969
8004
  }
7970
8005
  }
@@ -7972,20 +8007,20 @@ var lf = function(e) {
7972
8007
  } else {
7973
8008
  if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
7974
8009
  if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
7975
- d = b.indices2[t] + s, g = new Xd(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);
7976
8011
  }
7977
8012
  }
7978
8013
  e.setResult(_).exit();
7979
8014
  };
7980
- lf.filterName = "arrays";
7981
- var uf = {
8015
+ uf.filterName = "arrays";
8016
+ var df = {
7982
8017
  numerically(e, t) {
7983
8018
  return e - t;
7984
8019
  },
7985
8020
  numericallyBy(e) {
7986
8021
  return (t, n) => t[e] - n[e];
7987
8022
  }
7988
- }, df = function(e) {
8023
+ }, ff = function(e) {
7989
8024
  var t;
7990
8025
  if (!e.nested) return;
7991
8026
  let n = e.delta;
@@ -7993,7 +8028,7 @@ var uf = {
7993
8028
  let r, i, a = n, o = e.left, s = [], c = [], l = [];
7994
8029
  for (r in a) if (r !== "_t") if (r[0] === "_") {
7995
8030
  let e = r;
7996
- if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === of)) 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));
7997
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]}`);
7998
8033
  } else {
7999
8034
  let e = r;
@@ -8005,15 +8040,15 @@ var uf = {
8005
8040
  delta: a[e]
8006
8041
  });
8007
8042
  }
8008
- for (s = s.sort(uf.numerically), r = s.length - 1; r >= 0; r--) {
8043
+ for (s = s.sort(df.numerically), r = s.length - 1; r >= 0; r--) {
8009
8044
  if (i = s[r], i === void 0) continue;
8010
8045
  let e = a[`_${i}`], t = o.splice(i, 1)[0];
8011
- (e == null ? void 0 : e[2]) === of && c.push({
8046
+ (e == null ? void 0 : e[2]) === sf && c.push({
8012
8047
  index: e[1],
8013
8048
  value: t
8014
8049
  });
8015
8050
  }
8016
- c = c.sort(uf.numericallyBy("index"));
8051
+ c = c.sort(df.numericallyBy("index"));
8017
8052
  let u = c.length;
8018
8053
  for (r = 0; r < u; r++) {
8019
8054
  let e = c[r];
@@ -8023,7 +8058,7 @@ var uf = {
8023
8058
  if (d > 0) for (r = 0; r < d; r++) {
8024
8059
  let t = l[r];
8025
8060
  if (t === void 0) continue;
8026
- let n = new Zd(o[t.index], t.delta);
8061
+ let n = new Qd(o[t.index], t.delta);
8027
8062
  e.push(n, t.index);
8028
8063
  }
8029
8064
  if (!e.children) {
@@ -8032,8 +8067,8 @@ var uf = {
8032
8067
  }
8033
8068
  e.exit();
8034
8069
  };
8035
- df.filterName = "arrays";
8036
- var ff = function(e) {
8070
+ ff.filterName = "arrays";
8071
+ var pf = function(e) {
8037
8072
  if (!e || !e.children || e.delta._t !== "a") return;
8038
8073
  let t = e.left, n = e.children.length;
8039
8074
  for (let r = 0; r < n; r++) {
@@ -8044,16 +8079,16 @@ var ff = function(e) {
8044
8079
  }
8045
8080
  e.setResult(t).exit();
8046
8081
  };
8047
- ff.filterName = "arraysCollectChildren";
8048
- var pf = function(e) {
8082
+ pf.filterName = "arraysCollectChildren";
8083
+ var mf = function(e) {
8049
8084
  if (!e.nested) {
8050
8085
  let t = e.delta;
8051
- if (t[2] === of) {
8086
+ if (t[2] === sf) {
8052
8087
  let n = t;
8053
8088
  e.newName = `_${n[1]}`, e.setResult([
8054
8089
  n[0],
8055
8090
  Number.parseInt(e.childName.substring(1), 10),
8056
- of
8091
+ sf
8057
8092
  ]).exit();
8058
8093
  }
8059
8094
  return;
@@ -8063,26 +8098,26 @@ var pf = function(e) {
8063
8098
  let n = t;
8064
8099
  for (let t in n) {
8065
8100
  if (t === "_t") continue;
8066
- let r = new Qd(n[t]);
8101
+ let r = new $d(n[t]);
8067
8102
  e.push(r, t);
8068
8103
  }
8069
8104
  e.exit();
8070
8105
  };
8071
- pf.filterName = "arrays";
8072
- var mf = (e, t, n) => {
8106
+ mf.filterName = "arrays";
8107
+ var hf = (e, t, n) => {
8073
8108
  if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
8074
8109
  if (Array.isArray(n) && n[2] === 0) return `_${t}`;
8075
8110
  let r = +t;
8076
8111
  for (let n in e) {
8077
8112
  let i = e[n];
8078
- if (Array.isArray(i)) if (i[2] === of) {
8113
+ if (Array.isArray(i)) if (i[2] === sf) {
8079
8114
  let e = Number.parseInt(n.substring(1), 10), a = i[1];
8080
8115
  if (a === +t) return e;
8081
8116
  e <= r && a > r ? r++ : e >= r && a < r && r--;
8082
8117
  } else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
8083
8118
  }
8084
8119
  return r;
8085
- }, hf = (e) => {
8120
+ }, gf = (e) => {
8086
8121
  if (!e || !e.children) return;
8087
8122
  let t = e.delta;
8088
8123
  if (t._t !== "a") return;
@@ -8093,22 +8128,22 @@ var mf = (e, t, n) => {
8093
8128
  let a = r.newName;
8094
8129
  if (a === void 0) {
8095
8130
  if (r.childName === void 0) throw Error("child.childName is undefined");
8096
- a = mf(n, r.childName, r.result);
8131
+ a = hf(n, r.childName, r.result);
8097
8132
  }
8098
8133
  i[a] !== r.result && (i[a] = r.result);
8099
8134
  }
8100
8135
  e.setResult(i).exit();
8101
8136
  };
8102
- hf.filterName = "arraysCollectChildren";
8137
+ gf.filterName = "arraysCollectChildren";
8103
8138
  //#endregion
8104
8139
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
8105
- var gf = function(e) {
8140
+ var _f = function(e) {
8106
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();
8107
8142
  };
8108
- gf.filterName = "dates";
8143
+ _f.filterName = "dates";
8109
8144
  //#endregion
8110
8145
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
8111
- var _f = new Set(["__proto__"]), vf = (e) => {
8146
+ var vf = new Set(["__proto__"]), yf = (e) => {
8112
8147
  if (!e || !e.children) return;
8113
8148
  let t = e.children.length, n = e.result;
8114
8149
  for (let r = 0; r < t; r++) {
@@ -8120,18 +8155,18 @@ var _f = new Set(["__proto__"]), vf = (e) => {
8120
8155
  }
8121
8156
  n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
8122
8157
  };
8123
- vf.filterName = "collectChildren";
8124
- var yf = (e) => {
8158
+ yf.filterName = "collectChildren";
8159
+ var bf = (e) => {
8125
8160
  var t;
8126
8161
  if (e.leftIsArray || e.leftType !== "object") return;
8127
8162
  let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
8128
8163
  for (let t in n) {
8129
8164
  if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
8130
- let a = new Xd(n[t], r[t]);
8165
+ let a = new Zd(n[t], r[t]);
8131
8166
  e.push(a, t);
8132
8167
  }
8133
8168
  for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
8134
- let n = new Xd(void 0, r[t]);
8169
+ let n = new Zd(void 0, r[t]);
8135
8170
  e.push(n, t);
8136
8171
  }
8137
8172
  if (!e.children || e.children.length === 0) {
@@ -8140,15 +8175,15 @@ var yf = (e) => {
8140
8175
  }
8141
8176
  e.exit();
8142
8177
  };
8143
- yf.filterName = "objects";
8144
- var bf = function(e) {
8178
+ bf.filterName = "objects";
8179
+ var xf = function(e) {
8145
8180
  if (!e.nested) return;
8146
8181
  let t = e.delta;
8147
8182
  if (t._t) return;
8148
8183
  let n = t, r = !1;
8149
8184
  for (let t in n) {
8150
- if (_f.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8151
- let i = e.left, a = new Zd(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]);
8152
8187
  e.push(a, t), r = !0;
8153
8188
  }
8154
8189
  if (!r) {
@@ -8157,8 +8192,8 @@ var bf = function(e) {
8157
8192
  }
8158
8193
  e.exit();
8159
8194
  };
8160
- bf.filterName = "objects";
8161
- var xf = function(e) {
8195
+ xf.filterName = "objects";
8196
+ var Sf = function(e) {
8162
8197
  if (!e || !e.children || e.delta._t) return;
8163
8198
  if (e.left === null || typeof e.left != "object") {
8164
8199
  e.setResult(e.left).exit();
@@ -8169,17 +8204,17 @@ var xf = function(e) {
8169
8204
  let n = e.children[r];
8170
8205
  if (n === void 0) continue;
8171
8206
  let i = n.childName;
8172
- _f.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));
8173
8208
  }
8174
8209
  e.setResult(t).exit();
8175
8210
  };
8176
- xf.filterName = "collectChildren";
8177
- var Sf = function(e) {
8211
+ Sf.filterName = "collectChildren";
8212
+ var Cf = function(e) {
8178
8213
  if (!e.nested || e.delta._t) return;
8179
8214
  let t = e.delta, n = !1;
8180
8215
  for (let r in t) {
8181
- if (_f.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8182
- let i = new Qd(t[r]);
8216
+ if (vf.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8217
+ let i = new $d(t[r]);
8183
8218
  e.push(i, r), n = !0;
8184
8219
  }
8185
8220
  if (!n) {
@@ -8188,25 +8223,25 @@ var Sf = function(e) {
8188
8223
  }
8189
8224
  e.exit();
8190
8225
  };
8191
- Sf.filterName = "objects";
8192
- var Cf = (e) => {
8226
+ Cf.filterName = "objects";
8227
+ var wf = (e) => {
8193
8228
  if (!e || !e.children || e.delta._t) return;
8194
8229
  let t = e.children.length, n = {};
8195
8230
  for (let r = 0; r < t; r++) {
8196
8231
  let t = e.children[r];
8197
8232
  if (t === void 0) continue;
8198
8233
  let i = t.childName;
8199
- _f.has(i) || n[i] !== t.result && (n[i] = t.result);
8234
+ vf.has(i) || n[i] !== t.result && (n[i] = t.result);
8200
8235
  }
8201
8236
  e.setResult(n).exit();
8202
8237
  };
8203
- Cf.filterName = "collectChildren";
8238
+ wf.filterName = "collectChildren";
8204
8239
  //#endregion
8205
8240
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
8206
- var wf = 2, Tf = 60, Ef = null;
8207
- function Df(e, t) {
8241
+ var Tf = 2, Ef = 60, Df = null;
8242
+ function Of(e, t) {
8208
8243
  var n;
8209
- if (!Ef) {
8244
+ if (!Df) {
8210
8245
  let r;
8211
8246
  if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
8212
8247
  else {
@@ -8214,7 +8249,7 @@ function Df(e, t) {
8214
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.");
8215
8250
  throw e.diff_match_patch_not_found = !0, e;
8216
8251
  }
8217
- Ef = {
8252
+ Df = {
8218
8253
  diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
8219
8254
  patch: (e, t) => {
8220
8255
  let n = r.patch_apply(r.patch_fromText(t), e);
@@ -8226,17 +8261,17 @@ function Df(e, t) {
8226
8261
  }
8227
8262
  };
8228
8263
  }
8229
- return Ef;
8264
+ return Df;
8230
8265
  }
8231
- var Of = function(e) {
8266
+ var kf = function(e) {
8232
8267
  var t, n;
8233
8268
  if (e.leftType !== "string") return;
8234
- let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Tf;
8269
+ let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Ef;
8235
8270
  if (r.length < a || i.length < a) {
8236
8271
  e.setResult([r, i]).exit();
8237
8272
  return;
8238
8273
  }
8239
- let o = Df(e.options);
8274
+ let o = Of(e.options);
8240
8275
  if (!o) {
8241
8276
  e.setResult([r, i]).exit();
8242
8277
  return;
@@ -8245,19 +8280,19 @@ var Of = function(e) {
8245
8280
  e.setResult([
8246
8281
  s(r, i),
8247
8282
  0,
8248
- wf
8283
+ Tf
8249
8284
  ]).exit();
8250
8285
  };
8251
- Of.filterName = "texts";
8252
- var kf = function(e) {
8286
+ kf.filterName = "texts";
8287
+ var Af = function(e) {
8253
8288
  if (e.nested) return;
8254
8289
  let t = e.delta;
8255
- if (t[2] !== wf) return;
8256
- let n = t, r = Df(e.options, !0).patch;
8290
+ if (t[2] !== Tf) return;
8291
+ let n = t, r = Of(e.options, !0).patch;
8257
8292
  e.setResult(r(e.left, n[0])).exit();
8258
8293
  };
8259
- kf.filterName = "texts";
8260
- var Af = (e) => {
8294
+ Af.filterName = "texts";
8295
+ var jf = (e) => {
8261
8296
  var t, n, r;
8262
8297
  let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
8263
8298
  for (let e = 0; e < a.length; e++) {
@@ -8278,21 +8313,21 @@ var Af = (e) => {
8278
8313
  } else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
8279
8314
  }
8280
8315
  return a.join("\n");
8281
- }, jf = function(e) {
8316
+ }, Mf = function(e) {
8282
8317
  if (e.nested) return;
8283
8318
  let t = e.delta;
8284
- if (t[2] !== wf) return;
8319
+ if (t[2] !== Tf) return;
8285
8320
  let n = t;
8286
8321
  e.setResult([
8287
- Af(n[0]),
8322
+ jf(n[0]),
8288
8323
  0,
8289
- wf
8324
+ Tf
8290
8325
  ]).exit();
8291
8326
  };
8292
- jf.filterName = "texts";
8327
+ Mf.filterName = "texts";
8293
8328
  //#endregion
8294
8329
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
8295
- var Mf = function(e) {
8330
+ var Nf = function(e) {
8296
8331
  if (e.left === e.right) {
8297
8332
  e.setResult(void 0).exit();
8298
8333
  return;
@@ -8325,8 +8360,8 @@ var Mf = function(e) {
8325
8360
  }
8326
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());
8327
8362
  };
8328
- Mf.filterName = "trivial";
8329
- var Nf = function(e) {
8363
+ Nf.filterName = "trivial";
8364
+ var Pf = function(e) {
8330
8365
  if (e.delta === void 0) {
8331
8366
  e.setResult(e.left).exit();
8332
8367
  return;
@@ -8350,8 +8385,8 @@ var Nf = function(e) {
8350
8385
  }
8351
8386
  t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
8352
8387
  };
8353
- Nf.filterName = "trivial";
8354
- var Pf = function(e) {
8388
+ Pf.filterName = "trivial";
8389
+ var Ff = function(e) {
8355
8390
  if (e.delta === void 0) {
8356
8391
  e.setResult(e.delta).exit();
8357
8392
  return;
@@ -8372,36 +8407,36 @@ var Pf = function(e) {
8372
8407
  }
8373
8408
  t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
8374
8409
  };
8375
- Pf.filterName = "trivial";
8410
+ Ff.filterName = "trivial";
8376
8411
  //#endregion
8377
8412
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
8378
- var Ff = class {
8413
+ var If = class {
8379
8414
  constructor(e) {
8380
- this.processor = new ef(e), this.processor.pipe(new $d("diff").append(vf, Mf, gf, Of, yf, lf).shouldHaveResult()), this.processor.pipe(new $d("patch").append(xf, ff, Nf, kf, bf, df).shouldHaveResult()), this.processor.pipe(new $d("reverse").append(Cf, hf, Pf, jf, Sf, pf).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());
8381
8416
  }
8382
8417
  options(e) {
8383
8418
  return this.processor.options(e);
8384
8419
  }
8385
8420
  diff(e, t) {
8386
- return this.processor.process(new Xd(e, t));
8421
+ return this.processor.process(new Zd(e, t));
8387
8422
  }
8388
8423
  patch(e, t) {
8389
- return this.processor.process(new Zd(e, t));
8424
+ return this.processor.process(new Qd(e, t));
8390
8425
  }
8391
8426
  reverse(e) {
8392
- return this.processor.process(new Qd(e));
8427
+ return this.processor.process(new $d(e));
8393
8428
  }
8394
8429
  unpatch(e, t) {
8395
8430
  return this.patch(e, this.reverse(t));
8396
8431
  }
8397
8432
  clone(e) {
8398
- return Kd(e);
8433
+ return qd(e);
8399
8434
  }
8400
8435
  };
8401
8436
  //#endregion
8402
8437
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
8403
- function If(e) {
8404
- return new Ff(e);
8438
+ function Lf(e) {
8439
+ return new If(e);
8405
8440
  }
8406
8441
  //#endregion
8407
8442
  //#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
@@ -8974,46 +9009,46 @@ $.Diff = function(e, t) {
8974
9009
  };
8975
9010
  //#endregion
8976
9011
  //#region src/components/audit-log/create-diff-patcher.tsx
8977
- var Lf = (e = {}) => If({
9012
+ var Rf = (e = {}) => Lf({
8978
9013
  ...e,
8979
9014
  textDiff: {
8980
9015
  diffMatchPatch: $,
8981
9016
  minLength: 120
8982
9017
  },
8983
9018
  cloneDiffValues: !0
8984
- }), Rf = ["user", "unittemplate"], zf = Lf(), Bf = (e, t, n) => {
9019
+ }), zf = ["user", "unittemplate"], Bf = Rf(), Vf = (e, t, n) => {
8985
9020
  let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
8986
9021
  for (let e = t.length - 1; e >= 0; e--) {
8987
9022
  let n = r[t[e]];
8988
9023
  if (n) return n;
8989
9024
  }
8990
9025
  return n || "";
8991
- }, Vf = (e) => {
9026
+ }, Hf = (e) => {
8992
9027
  let t = (e) => Nn(e) ? Gn(e) : String(e);
8993
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);
8994
- }, Hf = (e) => {
9029
+ }, Uf = (e) => {
8995
9030
  switch (e.length) {
8996
9031
  case 1: {
8997
9032
  let [t] = e;
8998
9033
  return {
8999
9034
  type: "created",
9000
9035
  before: "",
9001
- after: Vf(t)
9036
+ after: Hf(t)
9002
9037
  };
9003
9038
  }
9004
9039
  case 2: {
9005
9040
  let [t, n] = e;
9006
9041
  return {
9007
9042
  type: "modified",
9008
- before: Vf(t),
9009
- after: Vf(n)
9043
+ before: Hf(t),
9044
+ after: Hf(n)
9010
9045
  };
9011
9046
  }
9012
9047
  case 3: {
9013
9048
  let [t] = e;
9014
9049
  return {
9015
9050
  type: "deleted",
9016
- before: Vf(t),
9051
+ before: Hf(t),
9017
9052
  after: ""
9018
9053
  };
9019
9054
  }
@@ -9023,15 +9058,15 @@ var Lf = (e = {}) => If({
9023
9058
  after: ""
9024
9059
  };
9025
9060
  }
9026
- }, Uf = (e) => Array.isArray(e), Wf = (e, t) => t ? Uf(t) ? t.length === 0 ? e : t.reduce((e, t) => zf.unpatch(Xt(e), Xt(t)), Xt(e)) : zf.unpatch(Xt(e), Xt(t)) : e, Gf = (e) => e.createdAt || e.date, Kf = (e, t, n) => {
9027
- let r = Gf(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);
9028
9063
  if (!r) return {
9029
9064
  oldJson: "",
9030
9065
  newJson: "",
9031
9066
  error: `Cannot create comparison view: missing date for audit log ${e.id}`
9032
9067
  };
9033
9068
  let i = t.filter((e) => {
9034
- let t = Gf(e);
9069
+ let t = Kf(e);
9035
9070
  return !!(e.diffs && t && t >= r);
9036
9071
  }), a = Array.from({ length: i.length + 1 });
9037
9072
  a[0] = Xt(n);
@@ -9044,7 +9079,7 @@ var Lf = (e = {}) => If({
9044
9079
  a[e + 1] = a[e];
9045
9080
  continue;
9046
9081
  }
9047
- a[e + 1] = Wf(a[e], t);
9082
+ a[e + 1] = Gf(a[e], t);
9048
9083
  }
9049
9084
  let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
9050
9085
  o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
@@ -9059,10 +9094,10 @@ var Lf = (e = {}) => If({
9059
9094
  oldJson: o,
9060
9095
  newJson: s
9061
9096
  };
9062
- }, qf = (e, t, n = {}, r = []) => {
9097
+ }, Jf = (e, t, n = {}, r = []) => {
9063
9098
  var i;
9064
9099
  if (!e) return;
9065
- let a = [...Rf, ...(i = n.hiddenKeys) == null ? [] : i];
9100
+ let a = [...zf, ...(i = n.hiddenKeys) == null ? [] : i];
9066
9101
  Object.keys(e).forEach((i) => {
9067
9102
  var o;
9068
9103
  let s = e[i];
@@ -9075,12 +9110,12 @@ var Lf = (e = {}) => If({
9075
9110
  tn(s) ? t.push({
9076
9111
  deltaFormat: [...s],
9077
9112
  path: c
9078
- }) : ln(s) && qf(s, t, n, c);
9113
+ }) : ln(s) && Jf(s, t, n, c);
9079
9114
  });
9080
- }, Jf = (e, t = {}) => {
9115
+ }, Yf = (e, t = {}) => {
9081
9116
  let n = [];
9082
- return e ? (qf(e, n, t), n) : [];
9083
- }, Yf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Xf = (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) => {
9084
9119
  if (e == null || e === "") return "empty";
9085
9120
  if (typeof e == "boolean") return e ? "true" : "false";
9086
9121
  if (typeof e == "string") return e;
@@ -9091,32 +9126,32 @@ var Lf = (e = {}) => If({
9091
9126
  } catch {
9092
9127
  return String(e);
9093
9128
  }
9094
- }, Zf = (e, t = e.length - 1) => {
9129
+ }, Qf = (e, t = e.length - 1) => {
9095
9130
  if (t >= e.length) return "Value";
9096
9131
  let n = e[t];
9097
- return !n || An(n) ? Zf(e, t - 1) : Yf(n);
9098
- }, Qf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9099
- let o = Xf(r), s = Xf(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}` : "";
9100
9135
  switch (t) {
9101
9136
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
9102
9137
  case "created": return `${e} created ${s}${c}.`;
9103
9138
  case "deleted": return `${e} deleted ${o}${c}.`;
9104
9139
  default: return `${e} changed ${n}${c}.`;
9105
9140
  }
9106
- }, $f = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(Cc, { table: {
9141
+ }, ep = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(wc, { table: {
9107
9142
  headers: [{ cells: [{ value: "Changes" }] }],
9108
9143
  rows: n.map((n) => {
9109
- let { deltaFormat: i, path: a } = n, o = Bf(e, a, r), { type: s, before: c, after: l } = Hf(i);
9110
- return { cells: [{ value: Qf({
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({
9111
9146
  userName: t,
9112
9147
  type: s,
9113
- property: Zf(a),
9148
+ property: Qf(a),
9114
9149
  before: c,
9115
9150
  after: l,
9116
9151
  sectionName: o
9117
9152
  }) }] };
9118
9153
  })
9119
- } }), ep = Object.freeze({
9154
+ } }), tp = Object.freeze({
9120
9155
  summary: {
9121
9156
  label: "Summary",
9122
9157
  value: "summary"
@@ -9125,33 +9160,33 @@ var Lf = (e = {}) => If({
9125
9160
  label: "Compare",
9126
9161
  value: "compare"
9127
9162
  }
9128
- }), tp = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9129
- let c = [ep.summary, ep.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 }) => ({
9130
9165
  label: e,
9131
9166
  value: t
9132
9167
  })), [l, u] = m(c[0]), { diffs: d = void 0 } = e || {};
9133
9168
  if (!d) return null;
9134
- let { oldJson: f, newJson: p, error: h } = Kf(e, t, n);
9169
+ let { oldJson: f, newJson: p, error: h } = qf(e, t, n);
9135
9170
  return /* @__PURE__ */ v(Ka, {
9136
9171
  visible: r,
9137
9172
  centered: !0,
9138
9173
  children: /* @__PURE__ */ v(Sa, { dialog: {
9139
9174
  scroll: !0,
9140
9175
  heading: "Comparison view",
9141
- content: /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Nu, {
9176
+ content: /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Pu, {
9142
9177
  name: "ViewTab",
9143
9178
  onChange: (e) => u(c.find((t) => t.value === e.target.value)),
9144
9179
  options: c,
9145
9180
  value: l
9146
- }), l.value === "summary" ? /* @__PURE__ */ v($f, {
9181
+ }), l.value === "summary" ? /* @__PURE__ */ v(ep, {
9147
9182
  userName: e.userName,
9148
9183
  sectionNames: a,
9149
- diffs: Jf(d, i),
9184
+ diffs: Yf(d, i),
9150
9185
  defaultSectionName: o
9151
9186
  }) : h ? /* @__PURE__ */ v("div", {
9152
9187
  style: { padding: 16 },
9153
9188
  children: h
9154
- }) : /* @__PURE__ */ v(Ud, {
9189
+ }) : /* @__PURE__ */ v(Wd, {
9155
9190
  oldJson: f,
9156
9191
  newJson: p
9157
9192
  })] }),
@@ -9164,7 +9199,7 @@ var Lf = (e = {}) => If({
9164
9199
  height: "90vh"
9165
9200
  } })
9166
9201
  });
9167
- }, np = [
9202
+ }, rp = [
9168
9203
  {
9169
9204
  label: "10 / page",
9170
9205
  value: 10
@@ -9177,8 +9212,8 @@ var Lf = (e = {}) => If({
9177
9212
  label: "50 / page",
9178
9213
  value: 50
9179
9214
  }
9180
- ], rp = (e, t = {}) => {
9181
- let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Jf(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";
9182
9217
  if (i === "API") return a === "Created" ? "Created through API" : "Changed through API";
9183
9218
  switch (a) {
9184
9219
  case "Created": return `Created by ${r}`;
@@ -9188,7 +9223,7 @@ var Lf = (e = {}) => If({
9188
9223
  case "Updated": return `Updated by ${r} (${c})`;
9189
9224
  default: return `Change by ${r}`;
9190
9225
  }
9191
- }, ip = ({ 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 }) => {
9192
9227
  let [b, x] = m(!1), [S, C] = m(null), w = (e) => {
9193
9228
  if (e.snapshot) {
9194
9229
  f == null || f(e.snapshot, e);
@@ -9207,7 +9242,7 @@ var Lf = (e = {}) => If({
9207
9242
  return {
9208
9243
  cells: [
9209
9244
  {
9210
- value: e.snapshot ? `Snapshot: ${e.snapshot}` : rp(e, l),
9245
+ value: e.snapshot ? `Snapshot: ${e.snapshot}` : ip(e, l),
9211
9246
  type: "Link",
9212
9247
  disabled: n,
9213
9248
  onClick: n ? void 0 : () => w(e),
@@ -9226,8 +9261,8 @@ var Lf = (e = {}) => If({
9226
9261
  type: "Static"
9227
9262
  },
9228
9263
  {
9229
- value: Wd({
9230
- date: Gf(e),
9264
+ value: Gd({
9265
+ date: Kf(e),
9231
9266
  showTime: !0
9232
9267
  }),
9233
9268
  type: "Static"
@@ -9237,12 +9272,12 @@ var Lf = (e = {}) => If({
9237
9272
  };
9238
9273
  });
9239
9274
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(na, {
9240
- heading: /* @__PURE__ */ y(Ll, {
9275
+ heading: /* @__PURE__ */ y(Rl, {
9241
9276
  gap: !0,
9242
9277
  wrap: !0,
9243
9278
  children: [/* @__PURE__ */ v(ya, { children: "Changes" }), c.map((e) => {
9244
9279
  var t;
9245
- return /* @__PURE__ */ v(hl, {
9280
+ return /* @__PURE__ */ v(gl, {
9246
9281
  small: (t = e.small) == null ? !0 : t,
9247
9282
  checked: e.checked,
9248
9283
  onChange: e.onChange,
@@ -9252,11 +9287,11 @@ var Lf = (e = {}) => If({
9252
9287
  })]
9253
9288
  }),
9254
9289
  padding: !1,
9255
- children: r ? /* @__PURE__ */ v(iu, {
9290
+ children: r ? /* @__PURE__ */ v(au, {
9256
9291
  height: "100px",
9257
9292
  theme: Or.WHITE,
9258
9293
  children: /* @__PURE__ */ v(mi, { dark: !0 })
9259
- }) : /* @__PURE__ */ v(Cc, { table: {
9294
+ }) : /* @__PURE__ */ v(wc, { table: {
9260
9295
  headers: T,
9261
9296
  testId: "auditlog-table",
9262
9297
  rows: E,
@@ -9270,14 +9305,14 @@ var Lf = (e = {}) => If({
9270
9305
  onChange: (e) => {
9271
9306
  u(Number(e.target.value));
9272
9307
  },
9273
- options: np,
9308
+ options: rp,
9274
9309
  value: a
9275
9310
  },
9276
9311
  onSelectPage: (e) => d(e),
9277
9312
  small: !0
9278
9313
  } }
9279
9314
  } })
9280
- }), b && S && S.diffs && /* @__PURE__ */ v(tp, {
9315
+ }), b && S && S.diffs && /* @__PURE__ */ v(np, {
9281
9316
  sectionNames: o,
9282
9317
  isOpen: b,
9283
9318
  onClose: () => x(!1),
@@ -9287,7 +9322,7 @@ var Lf = (e = {}) => If({
9287
9322
  data: t,
9288
9323
  transformDiffsConfig: l
9289
9324
  })] });
9290
- }, ap = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9325
+ }, op = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9291
9326
  let i = window.location.href, a = p(i);
9292
9327
  return c(() => {
9293
9328
  a.current = i;
@@ -9310,10 +9345,10 @@ var Lf = (e = {}) => If({
9310
9345
  });
9311
9346
  };
9312
9347
  }, [e, t]), null;
9313
- }, op = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, sp = (e) => {
9314
- Nd(Od.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9315
- e === Od.Translations ? Nd(e, Ad(t)) : Nd(e, op(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 });
9316
9351
  });
9317
9352
  };
9318
9353
  //#endregion
9319
- export { qr as Accordion, fi as AccordionWithDefaultToggle, Ji as Actions, Tr as Align, ip 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, Ud as DiffViewer, H as DisabledContext, _a as Divider, ka as Drawer, Bu as ElementType, Pc as Empty, Il as Field, Ml as FileButton, za as FileInput, Ll as Flex, zl as FormRow, Ul 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, Pl as Label, nu as List, Gl as ListHeading, Zl as ListSubheading, iu 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, uu as OptionDropdown, fu as Page, As as Pagination, Ku as PopConfirm, aa as Popover, Ha as Portal, mu as PrintHeader, Ya as ProgressBar, hu as RadioButton, bu as RichTextInput, Su as Row, Cs as Select, zd as SettingField, Du as SideBar, ku as Skeleton, ec as Slider, eo as SmartUploadModal, Ba as Spacer, mi as Spinner, Cc as Table, jl as TableImportExport, Nu as Tabs, ha as Text, Iu as TextArea, Pu as TextLink, Dr as TextTransform, Or as Theme, cr as Toaster, hl as Toggle, W as Tooltip, Uu as TopBar, Xu as Tree, cd as TreeTable, Cr as TriggerType, Dd as UnitInput, Ld as UnitTable, ap as UsageTracker, fl as dismissToast, wd as initializeContext, sp as initializeGuiLibrary, La as readFile, dl 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 };