@oliasoft-open-source/react-ui-library 6.6.2 → 6.7.0-beta-2

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_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"
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"
1482
1482
  }, la = (e) => {
1483
1483
  if (typeof e == "string") return e;
1484
1484
  if (typeof e == "number") return `${e}px`;
@@ -1486,25 +1486,24 @@ 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
- 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
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": _ }
1501
1501
  };
1502
1502
  return /* @__PURE__ */ v("div", {
1503
1503
  className: g(ca.column, !c && ca.noScrollbar),
1504
- style: T,
1504
+ style: S,
1505
1505
  children: /* @__PURE__ */ v("div", {
1506
1506
  className: g(ca.inner, a && !s && ca.innerFlexbox),
1507
- style: { padding: w },
1508
1507
  "data-testid": p,
1509
1508
  children: r
1510
1509
  })
@@ -3462,27 +3461,59 @@ var Cr = /* @__PURE__ */ function(e) {
3462
3461
  button: "_button_1vgw8_18",
3463
3462
  label: "_label_1vgw8_21",
3464
3463
  dot: "_dot_1vgw8_32"
3465
- }, Qs = $n((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ v(W, {
3464
+ }, Qs = ({ enabled: e, value: t, onChange: n }) => {
3465
+ let [r, i] = m(t), a = p(t), o = p(t), s = p(null);
3466
+ c(() => {
3467
+ e && (a.current = t, o.current = t, i(t));
3468
+ }, [e, t]), c(() => () => {
3469
+ s.current !== null && cancelAnimationFrame(s.current);
3470
+ }, []);
3471
+ let l = (e) => {
3472
+ o.current = e, n(e);
3473
+ }, u = () => {
3474
+ let e = a.current;
3475
+ i(e), er(e, o.current) || l(e);
3476
+ };
3477
+ return {
3478
+ value: e ? r : t,
3479
+ onChangeValue: (t) => {
3480
+ if (!e) {
3481
+ n(t);
3482
+ return;
3483
+ }
3484
+ a.current = t, s.current === null && (s.current = requestAnimationFrame(() => {
3485
+ s.current = null, u();
3486
+ }));
3487
+ },
3488
+ flushValue: (t) => {
3489
+ e && (a.current = t, s.current !== null && (cancelAnimationFrame(s.current), s.current = null), u());
3490
+ }
3491
+ };
3492
+ }, $s = $n((e) => e.reduce((e, { label: t, tooltip: n, value: r }) => (e[r] = /* @__PURE__ */ v(W, {
3466
3493
  text: /* @__PURE__ */ y(_, { children: [
3467
3494
  n,
3468
3495
  n ? ": " : "",
3469
3496
  t == null ? r : t
3470
3497
  ] }),
3471
3498
  children: /* @__PURE__ */ v("div", { className: Zs.dot })
3472
- }), e), {}), er), $s = ({ name: e, label: t, width: n = "100%", labelWidth: r = "auto", value: i, min: a, max: o, step: c = 1, marks: l = [], showArrows: u = !1, showTooltip: d = !1, tooltipFormatter: f = (e) => e, disabled: p = !1, range: m = !1, small: h = !1, vertical: _ = {
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: _ = {
3473
3500
  enabled: !1,
3474
3501
  width: "100px",
3475
3502
  height: "400px"
3476
- }, onChange: b, onChangeComplete: x }) => {
3477
- let S = s(H), C = Qs(l), w = (n) => ({ target: {
3503
+ }, onChange: b, onChangeComplete: x, coalesceOnChange: S = !1 }) => {
3504
+ let C = s(H), w = $s(l), T = (n) => ({ target: {
3478
3505
  name: e == null ? "" : e,
3479
3506
  value: n,
3480
3507
  label: typeof t == "string" ? t : String(t)
3481
- } }), T = (e) => {
3482
- b(w(e));
3483
- }, E = (e) => {
3484
- x == null || x(w(e));
3485
- }, D = () => /* @__PURE__ */ v("div", {
3508
+ } }), E = Qs({
3509
+ enabled: S,
3510
+ value: i,
3511
+ onChange: (e) => {
3512
+ b(T(e));
3513
+ }
3514
+ }), D = (e) => {
3515
+ E.flushValue(e), x == null || x(T(e));
3516
+ }, O = () => /* @__PURE__ */ v("div", {
3486
3517
  className: Zs.button,
3487
3518
  children: /* @__PURE__ */ v(K, {
3488
3519
  basic: !0,
@@ -3490,12 +3521,12 @@ var Cr = /* @__PURE__ */ function(e) {
3490
3521
  round: !0,
3491
3522
  onClick: () => {
3492
3523
  let e = m ? [a, i == null ? void 0 : i[1]] : a;
3493
- T(e), E(e);
3524
+ E.onChangeValue(e), D(e);
3494
3525
  },
3495
- disabled: p || i === a || S,
3526
+ disabled: p || i === a || C,
3496
3527
  icon: V.FAST_BACKWARD
3497
3528
  })
3498
- }), O = () => /* @__PURE__ */ v("div", {
3529
+ }), k = () => /* @__PURE__ */ v("div", {
3499
3530
  className: Zs.button,
3500
3531
  children: /* @__PURE__ */ v(K, {
3501
3532
  basic: !0,
@@ -3503,9 +3534,9 @@ var Cr = /* @__PURE__ */ function(e) {
3503
3534
  round: !0,
3504
3535
  onClick: () => {
3505
3536
  let e = m ? [i == null ? void 0 : i[0], o] : o;
3506
- T(e), E(e);
3537
+ E.onChangeValue(e), D(e);
3507
3538
  },
3508
- disabled: p || i === o || S,
3539
+ disabled: p || i === o || C,
3509
3540
  icon: V.FAST_FORWARD
3510
3541
  })
3511
3542
  });
@@ -3516,19 +3547,19 @@ var Cr = /* @__PURE__ */ function(e) {
3516
3547
  height: _.height
3517
3548
  } : { width: n },
3518
3549
  children: [
3519
- u && (_.enabled ? /* @__PURE__ */ v(O, {}) : /* @__PURE__ */ v(D, {})),
3550
+ u && (_.enabled ? /* @__PURE__ */ v(k, {}) : /* @__PURE__ */ v(O, {})),
3520
3551
  /* @__PURE__ */ v(Qn, {
3521
3552
  range: m,
3522
3553
  allowCross: !1,
3523
- className: g((p || S) && Zs.rcSliderDisabled, u && Zs.hasArrows),
3524
- value: i,
3554
+ className: g((p || C) && Zs.rcSliderDisabled, u && Zs.hasArrows),
3555
+ value: E.value,
3525
3556
  max: o,
3526
3557
  min: a,
3527
3558
  step: c,
3528
- marks: C,
3529
- onChange: (e) => T(e),
3530
- onChangeComplete: (e) => E(e),
3531
- disabled: p || S,
3559
+ marks: w,
3560
+ onChange: (e) => E.onChangeValue(e),
3561
+ onChangeComplete: (e) => D(e),
3562
+ disabled: p || C,
3532
3563
  vertical: _.enabled,
3533
3564
  handleRender: (e, t) => /* @__PURE__ */ y("div", {
3534
3565
  style: { position: "relative" },
@@ -3543,7 +3574,7 @@ var Cr = /* @__PURE__ */ function(e) {
3543
3574
  })]
3544
3575
  })
3545
3576
  }),
3546
- u && (_.enabled ? /* @__PURE__ */ v(D, {}) : /* @__PURE__ */ v(O, {})),
3577
+ u && (_.enabled ? /* @__PURE__ */ v(O, {}) : /* @__PURE__ */ v(k, {})),
3547
3578
  t && /* @__PURE__ */ v("label", {
3548
3579
  className: Zs.label,
3549
3580
  style: { width: r },
@@ -3551,9 +3582,9 @@ var Cr = /* @__PURE__ */ function(e) {
3551
3582
  })
3552
3583
  ]
3553
3584
  });
3554
- }, ec = ({ cell: e }) => /* @__PURE__ */ v("div", {
3585
+ }, tc = ({ cell: e }) => /* @__PURE__ */ v("div", {
3555
3586
  className: X.inputWrapper,
3556
- children: /* @__PURE__ */ v($s, {
3587
+ children: /* @__PURE__ */ v(ec, {
3557
3588
  label: e.label,
3558
3589
  value: e.value,
3559
3590
  min: e.min,
@@ -3566,7 +3597,7 @@ var Cr = /* @__PURE__ */ function(e) {
3566
3597
  tooltipFormatter: e.tooltipFormatter,
3567
3598
  disabled: e.disabled
3568
3599
  })
3569
- }), tc = ({ cell: e }) => {
3600
+ }), nc = ({ cell: e }) => {
3570
3601
  let { tooltip: t, icon: n } = e;
3571
3602
  return /* @__PURE__ */ v("div", {
3572
3603
  className: X.iconCellWrapper,
@@ -3578,7 +3609,7 @@ var Cr = /* @__PURE__ */ function(e) {
3578
3609
  children: /* @__PURE__ */ v(U, { icon: n })
3579
3610
  })
3580
3611
  });
3581
- }, nc = ({ cell: e }) => /* @__PURE__ */ v(Ji, { actions: e.actions }), rc = ({ cell: e }) => {
3612
+ }, rc = ({ cell: e }) => /* @__PURE__ */ v(Ji, { actions: e.actions }), ic = ({ cell: e }) => {
3582
3613
  let { helpIcon: t } = e;
3583
3614
  return t ? /* @__PURE__ */ v("div", {
3584
3615
  className: X.icon,
@@ -3587,7 +3618,7 @@ var Cr = /* @__PURE__ */ function(e) {
3587
3618
  text: t.tooltip
3588
3619
  })
3589
3620
  }) : null;
3590
- }, ic = ({ cell: e }) => {
3621
+ }, ac = ({ cell: e }) => {
3591
3622
  let { libraryIcon: t } = e;
3592
3623
  return t ? /* @__PURE__ */ v("div", {
3593
3624
  className: X.icon,
@@ -3597,7 +3628,7 @@ var Cr = /* @__PURE__ */ function(e) {
3597
3628
  icon: V.LIBRARY
3598
3629
  })
3599
3630
  }) : null;
3600
- }, ac = ({ cell: e }) => {
3631
+ }, oc = ({ cell: e }) => {
3601
3632
  let { hasSort: t, sort: n, sortPriority: r } = e;
3602
3633
  return t ? /* @__PURE__ */ y("span", {
3603
3634
  className: X.sortingCellIcon,
@@ -3612,7 +3643,7 @@ var Cr = /* @__PURE__ */ function(e) {
3612
3643
  children: /* @__PURE__ */ v(U, { icon: V.SORT_DESCENDING })
3613
3644
  }), r && n ? /* @__PURE__ */ v("sup", { children: r }) : null]
3614
3645
  }) : null;
3615
- }, oc = ({ cell: e, isHeader: t, testId: n }) => {
3646
+ }, sc = ({ cell: e, isHeader: t, testId: n }) => {
3616
3647
  let { error: r, warning: i, tooltip: a, maxTooltipWidth: o, hasSort: s, onSort: c, type: l } = e, u = /* @__PURE__ */ y("div", {
3617
3648
  className: g(X.staticCellContent, l === "Unit" ? X.unit : ""),
3618
3649
  onClick: s ? (e) => c && c(e) : () => {},
@@ -3620,9 +3651,9 @@ var Cr = /* @__PURE__ */ function(e) {
3620
3651
  "data-warning": i || null,
3621
3652
  "data-testid": n,
3622
3653
  children: [e.value, t ? /* @__PURE__ */ y(_, { children: [
3623
- /* @__PURE__ */ v(rc, { cell: e }),
3624
3654
  /* @__PURE__ */ v(ic, { cell: e }),
3625
- /* @__PURE__ */ v(ac, { cell: e })
3655
+ /* @__PURE__ */ v(ac, { cell: e }),
3656
+ /* @__PURE__ */ v(oc, { cell: e })
3626
3657
  ] }) : null]
3627
3658
  });
3628
3659
  return /* @__PURE__ */ v("div", {
@@ -3637,7 +3668,7 @@ var Cr = /* @__PURE__ */ function(e) {
3637
3668
  children: u
3638
3669
  })
3639
3670
  });
3640
- }, sc = ({ cell: e, testId: t }) => {
3671
+ }, cc = ({ cell: e, testId: t }) => {
3641
3672
  let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
3642
3673
  return /* @__PURE__ */ v(aa, {
3643
3674
  content: n,
@@ -3646,13 +3677,13 @@ var Cr = /* @__PURE__ */ function(e) {
3646
3677
  disabled: a,
3647
3678
  children: /* @__PURE__ */ v("div", {
3648
3679
  className: X.popover,
3649
- children: /* @__PURE__ */ v(oc, {
3680
+ children: /* @__PURE__ */ v(sc, {
3650
3681
  cell: e,
3651
3682
  testId: t
3652
3683
  })
3653
3684
  })
3654
3685
  });
3655
- }, cc = {
3686
+ }, lc = {
3656
3687
  wrapper: "_wrapper_1u1qo_1",
3657
3688
  inline: "_inline_1u1qo_1",
3658
3689
  radio: "_radio_1u1qo_5",
@@ -3663,10 +3694,10 @@ var Cr = /* @__PURE__ */ function(e) {
3663
3694
  disabled: "_disabled_1u1qo_98",
3664
3695
  isInTable: "_isInTable_1u1qo_114",
3665
3696
  helpIconEnabled: "_helpIconEnabled_1u1qo_119"
3666
- }, lc = ({ name: e, label: t, value: n, selected: r, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: u, textTransform: d = Dr.CAPITALIZE }) => {
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 }) => {
3667
3698
  let f = l || u;
3668
3699
  return /* @__PURE__ */ y("div", {
3669
- className: g(cc.radio, i ? cc.disabled : null, a ? cc.small : null, s ? cc.noMargin : null, t ? null : cc.noLabel),
3700
+ className: g(lc.radio, i ? lc.disabled : null, a ? lc.small : null, s ? lc.noMargin : null, t ? null : lc.noLabel),
3670
3701
  onClick: o,
3671
3702
  "data-testid": c,
3672
3703
  children: [
@@ -3684,13 +3715,13 @@ var Cr = /* @__PURE__ */ function(e) {
3684
3715
  children: t
3685
3716
  }),
3686
3717
  f && /* @__PURE__ */ v("div", {
3687
- className: cc.helpIconEnabled,
3718
+ className: lc.helpIconEnabled,
3688
3719
  onClick: u,
3689
3720
  children: /* @__PURE__ */ v(si, { text: l })
3690
3721
  })
3691
3722
  ]
3692
3723
  });
3693
- }, uc = ({ cell: e, testId: t }) => /* @__PURE__ */ v(lc, {
3724
+ }, dc = ({ cell: e, testId: t }) => /* @__PURE__ */ v(uc, {
3694
3725
  selected: e.selected,
3695
3726
  name: e.name,
3696
3727
  value: e.value,
@@ -3698,7 +3729,7 @@ var Cr = /* @__PURE__ */ function(e) {
3698
3729
  disabled: e.disabled,
3699
3730
  onChange: (t) => e.onChange(t),
3700
3731
  testId: t
3701
- }), dc = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3732
+ }), fc = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
3702
3733
  if (!e) return null;
3703
3734
  switch (e.type) {
3704
3735
  case "Input":
@@ -3717,23 +3748,23 @@ var Cr = /* @__PURE__ */ function(e) {
3717
3748
  cell: e,
3718
3749
  testId: r
3719
3750
  });
3720
- case "Radio": return /* @__PURE__ */ v(uc, {
3751
+ case "Radio": return /* @__PURE__ */ v(dc, {
3721
3752
  cell: e,
3722
3753
  testId: r
3723
3754
  });
3724
- case "Slider": return /* @__PURE__ */ v(ec, { cell: e });
3725
- case "Icon": return /* @__PURE__ */ v(tc, { cell: e });
3726
- case "Actions": return /* @__PURE__ */ v(nc, { cell: e });
3727
- case "Popover": return /* @__PURE__ */ v(sc, { cell: e });
3728
- default: return /* @__PURE__ */ v(oc, {
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, {
3729
3760
  cell: e,
3730
3761
  isHeader: t,
3731
3762
  testId: r
3732
3763
  });
3733
3764
  }
3734
- }, fc = /* @__PURE__ */ function(e) {
3765
+ }, pc = /* @__PURE__ */ function(e) {
3735
3766
  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;
3736
- }({}), pc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Tr.LEFT, width: i, testId: a }) => {
3767
+ }({}), mc = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = Tr.LEFT, width: i, testId: a }) => {
3737
3768
  var o;
3738
3769
  if (!e) return null;
3739
3770
  let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
@@ -3741,7 +3772,7 @@ var Cr = /* @__PURE__ */ function(e) {
3741
3772
  headerAlignment: n,
3742
3773
  textAlign: d,
3743
3774
  isHeader: t
3744
- }, h = Rs(m, X), _ = Rs(m, X, !0), y = e.type === fc.INPUT || e.type === fc.NUMBER_INPUT || e.type === fc.SELECT || e.type === fc.POPOVER ? X.inputCell : e.type === fc.SLIDER ? X.sliderCell : e.type === fc.CHECKBOX || e.type === fc.RADIO ? X.checkBoxCell : e.type === fc.ACTIONS ? X.actionsCell : X.staticCell, b = g(X.cell, y, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), x = (o = u == null ? i : u) == null ? void 0 : o, S = e.type === fc.STATIC || !e.type, C = {
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 = {
3745
3776
  width: x,
3746
3777
  minWidth: x,
3747
3778
  textTransform: t && S ? Dr.CAPITALIZE : void 0,
@@ -3753,17 +3784,84 @@ var Cr = /* @__PURE__ */ function(e) {
3753
3784
  style: C,
3754
3785
  colSpan: c,
3755
3786
  rowSpan: l,
3756
- children: /* @__PURE__ */ v(dc, {
3787
+ children: /* @__PURE__ */ v(fc, {
3757
3788
  cell: e,
3758
3789
  columnAlignment: _ == null ? Tr.RIGHT : _,
3759
3790
  isHeader: t,
3760
3791
  testId: a
3761
3792
  })
3762
3793
  });
3763
- }, mc = ({ 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 }) => {
3764
- let p = zs(a, n, t), { onRowClick: m, onRowFocus: h, onRowMouseEnter: b, onRowMouseLeave: x, expandedContent: S, error: C, warning: w, active: T } = e, E = e.cells.map((e, r) => {
3794
+ }, hc = ({ children: e, dropDisabled: t = !1, height: n, rowIndex: r }) => {
3795
+ let { attributes: i, listeners: a, setNodeRef: o, transform: s, transition: c, isDragging: l } = Yn({
3796
+ id: r.toString(),
3797
+ animateLayoutChanges: () => !1
3798
+ });
3799
+ return e({
3800
+ attributes: i,
3801
+ listeners: a,
3802
+ setNodeRef: o,
3803
+ style: {
3804
+ transform: t ? void 0 : Zn.Translate.toString(s),
3805
+ height: n,
3806
+ transition: c,
3807
+ opacity: l ? 0 : void 0
3808
+ }
3809
+ });
3810
+ }, gc = ({ attributes: e = {}, dropDisabled: t = !1, listeners: n, noDrag: r = !1 }) => r ? /* @__PURE__ */ v("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ v("td", {
3811
+ className: Is.dragIconCell,
3812
+ children: /* @__PURE__ */ v("div", {
3813
+ className: g(Is.dragIcon, t ? Is.dragIconDisabled : ""),
3814
+ ...e,
3815
+ ...n,
3816
+ children: /* @__PURE__ */ v(U, { icon: V.DRAG })
3817
+ })
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 }) => {
3819
+ let { onRowClick: h, onRowFocus: b, onRowMouseEnter: x, onRowMouseLeave: S, error: C, warning: w, active: T } = l;
3820
+ return /* @__PURE__ */ y(_, { children: [s ? /* @__PURE__ */ y("tr", {
3821
+ onClick: h,
3822
+ onMouseEnter: x,
3823
+ onMouseLeave: S,
3824
+ onFocus: b,
3825
+ "data-testid": m,
3826
+ className: g(h ? Is.clickableRow : null, x ? Is.hoverableRow : null),
3827
+ children: [
3828
+ r ? /* @__PURE__ */ v("th", {}) : null,
3829
+ t,
3830
+ u
3831
+ ]
3832
+ }, d) : /* @__PURE__ */ y("tr", {
3833
+ ref: f,
3834
+ onClick: h,
3835
+ onMouseEnter: x,
3836
+ onMouseLeave: S,
3837
+ onFocus: b,
3838
+ className: g(h && !h.noStyle ? Is.clickableRow : null, x && !x.noStyle ? Is.hoverableRow : null, T ? Is.rowActive : null),
3839
+ "data-active": T || null,
3840
+ "data-error": C || null,
3841
+ "data-warning": w || null,
3842
+ "data-index": d,
3843
+ "data-even": d % 2 == 0,
3844
+ "data-testid": m,
3845
+ style: p,
3846
+ children: [
3847
+ r ? /* @__PURE__ */ v(gc, {
3848
+ attributes: e,
3849
+ dropDisabled: i,
3850
+ listeners: c,
3851
+ noDrag: l.noDrag
3852
+ }) : null,
3853
+ t,
3854
+ u
3855
+ ]
3856
+ }, d), a && a.content ? /* @__PURE__ */ v(Ls, {
3857
+ colSpan: n,
3858
+ flush: a.flush === !0,
3859
+ children: a.content
3860
+ }, `${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 }) => {
3862
+ let p = zs(a, n, t), { expandedContent: m } = e, h = e.cells.map((e, r) => {
3765
3863
  let i = `${+!n}_${t}_${r}`;
3766
- return /* @__PURE__ */ v(pc, {
3864
+ return /* @__PURE__ */ v(mc, {
3767
3865
  cell: e,
3768
3866
  isHeader: n,
3769
3867
  columnAlignment: o[r],
@@ -3771,70 +3869,57 @@ var Cr = /* @__PURE__ */ function(e) {
3771
3869
  width: l ? l[r] : void 0,
3772
3870
  testId: e.testId
3773
3871
  }, i);
3774
- }), D = s && /* @__PURE__ */ v(pc, {
3872
+ }), g = s && /* @__PURE__ */ v(mc, {
3775
3873
  cell: {
3776
- type: fc.ACTIONS,
3874
+ type: pc.ACTIONS,
3777
3875
  actions: e.actions
3778
3876
  },
3779
3877
  isHeader: n
3780
- }, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } = Yn({
3781
- id: t.toString(),
3782
- animateLayoutChanges: () => !1
3783
- }), P = {
3784
- transform: u ? void 0 : Zn.Translate.toString(j),
3785
- height: d,
3786
- transition: M,
3787
- opacity: N ? 0 : void 0
3788
- };
3789
- return n ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("tr", {
3790
- onClick: m,
3791
- onMouseEnter: b,
3792
- onMouseLeave: x,
3793
- onFocus: h,
3794
- "data-testid": f,
3795
- className: g(m ? Is.clickableRow : null, b ? Is.hoverableRow : null),
3796
- children: [
3797
- c ? /* @__PURE__ */ v("th", {}) : null,
3798
- E,
3799
- D
3800
- ]
3801
- }, t), S && S.content ? /* @__PURE__ */ v(Ls, {
3878
+ }, r);
3879
+ return n ? /* @__PURE__ */ v(_c, {
3880
+ cells: h,
3802
3881
  colSpan: i,
3803
- flush: S.flush === !0,
3804
- children: S.content
3805
- }, `${t}_expanded_content`) : null] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("tr", {
3806
- ref: e.noDrag ? null : A,
3807
- onClick: m,
3808
- onMouseEnter: b,
3809
- onMouseLeave: x,
3810
- onFocus: h,
3811
- className: g(m && !m.noStyle ? Is.clickableRow : null, b && !b.noStyle ? Is.hoverableRow : null, T ? Is.rowActive : null),
3812
- "data-active": T || null,
3813
- "data-error": C || null,
3814
- "data-warning": w || null,
3815
- "data-index": t,
3816
- "data-even": t % 2 == 0,
3817
- "data-testid": f,
3818
- style: P,
3819
- children: [
3820
- c ? e.noDrag ? /* @__PURE__ */ v("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ v("td", {
3821
- className: Is.dragIconCell,
3822
- children: /* @__PURE__ */ v("div", {
3823
- className: g(Is.dragIcon, u ? Is.dragIconDisabled : ""),
3824
- ...O,
3825
- ...k,
3826
- children: /* @__PURE__ */ v(U, { icon: V.DRAG })
3827
- })
3828
- }) : null,
3829
- E,
3830
- D
3831
- ]
3832
- }, t), S && S.content ? /* @__PURE__ */ v(Ls, {
3882
+ draggableTable: c,
3883
+ expandedContent: m,
3884
+ isHeader: !0,
3885
+ row: e,
3886
+ rowActions: g,
3887
+ rowIndex: t,
3888
+ testId: f
3889
+ }) : c && !e.noDrag ? /* @__PURE__ */ v(hc, {
3890
+ dropDisabled: u,
3891
+ height: d,
3892
+ rowIndex: t,
3893
+ children: ({ attributes: n, listeners: r, setNodeRef: a, style: o }) => /* @__PURE__ */ v(_c, {
3894
+ attributes: n,
3895
+ cells: h,
3896
+ colSpan: i,
3897
+ draggableTable: c,
3898
+ dropDisabled: u,
3899
+ expandedContent: m,
3900
+ height: d,
3901
+ isHeader: !1,
3902
+ listeners: r,
3903
+ row: e,
3904
+ rowActions: g,
3905
+ rowIndex: t,
3906
+ setNodeRef: a,
3907
+ style: o,
3908
+ testId: f
3909
+ })
3910
+ }) : /* @__PURE__ */ v(_c, {
3911
+ cells: h,
3833
3912
  colSpan: i,
3834
- flush: S.flush === !0,
3835
- children: S.content
3836
- }, `${t}_expanded_content`) : null] });
3837
- }, hc = (e) => {
3913
+ draggableTable: c,
3914
+ expandedContent: m,
3915
+ height: d,
3916
+ isHeader: !1,
3917
+ row: e,
3918
+ rowActions: g,
3919
+ rowIndex: t,
3920
+ testId: f
3921
+ });
3922
+ }, yc = (e) => {
3838
3923
  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]);
3839
3924
  return a ? /* @__PURE__ */ y(tr, {
3840
3925
  collisionDetection: rr,
@@ -3869,7 +3954,7 @@ var Cr = /* @__PURE__ */ function(e) {
3869
3954
  dropAnimation: null,
3870
3955
  children: /* @__PURE__ */ v("table", {
3871
3956
  className: g(mo.table, mo.dragOverlay),
3872
- children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ v(mc, {
3957
+ children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ v(vc, {
3873
3958
  rowIndex: Number(f),
3874
3959
  row: l[Number(f)],
3875
3960
  columnCount: i,
@@ -3889,22 +3974,22 @@ var Cr = /* @__PURE__ */ function(e) {
3889
3974
  })
3890
3975
  }), document.body)]
3891
3976
  }) : t({});
3892
- }, gc = ({ table: e, children: t }) => {
3893
- var n, r, i;
3894
- let a = p(null), o = ir({
3977
+ }, bc = ({ table: e, children: t }) => {
3978
+ var n, r, i, a;
3979
+ let o = p(null), s = ir({
3895
3980
  count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
3896
- getScrollElement: () => a.current,
3981
+ getScrollElement: () => o.current,
3897
3982
  estimateSize: () => 31,
3898
- overscan: 10
3983
+ overscan: (a = e == null ? void 0 : e.virtualOverscan) == null ? 10 : a
3899
3984
  });
3900
3985
  return /* @__PURE__ */ v("div", {
3901
3986
  id: "scrollWrapper",
3902
3987
  className: g(mo.scroll, mo.virtualScroll),
3903
- ref: a,
3988
+ ref: o,
3904
3989
  children: t({
3905
- virtualizer: o,
3990
+ virtualizer: s,
3906
3991
  tableStyle: (() => {
3907
- let e = o.getVirtualItems(), t = e.length > 0 ? e[0].start : 0, n = e.length > 0 ? o.getTotalSize() - e[e.length - 1].end : 0;
3992
+ let e = s.getVirtualItems(), t = e.length > 0 ? e[0].start : 0, n = e.length > 0 ? s.getTotalSize() - e[e.length - 1].end : 0;
3908
3993
  return {
3909
3994
  "--virtualPaddingTop": t + "px",
3910
3995
  "--virtualPaddingBottom": n + "px"
@@ -3912,7 +3997,7 @@ var Cr = /* @__PURE__ */ function(e) {
3912
3997
  })()
3913
3998
  })
3914
3999
  });
3915
- }, _c = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (c(() => {
4000
+ }, xc = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (c(() => {
3916
4001
  if (t && !(e == null || e < 0)) {
3917
4002
  if (n && r) r.scrollToIndex(e, {
3918
4003
  behavior: "auto",
@@ -3931,11 +4016,11 @@ var Cr = /* @__PURE__ */ function(e) {
3931
4016
  t,
3932
4017
  n,
3933
4018
  r
3934
- ]), null), vc = ({ table: e, children: t }) => {
4019
+ ]), null), Sc = ({ table: e, children: t }) => {
3935
4020
  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]);
3936
- return n ? /* @__PURE__ */ v(gc, {
4021
+ return n ? /* @__PURE__ */ v(bc, {
3937
4022
  table: e,
3938
- children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(_c, {
4023
+ children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(xc, {
3939
4024
  isVirtualized: !0,
3940
4025
  virtualizer: e,
3941
4026
  activeIndex: a,
@@ -3947,13 +4032,13 @@ var Cr = /* @__PURE__ */ function(e) {
3947
4032
  }) : /* @__PURE__ */ y("div", {
3948
4033
  id: "scrollWrapper",
3949
4034
  className: mo.scroll,
3950
- children: [/* @__PURE__ */ v(_c, {
4035
+ children: [/* @__PURE__ */ v(xc, {
3951
4036
  isVirtualized: !1,
3952
4037
  activeIndex: a,
3953
4038
  triggerScrollToActiveRow: r
3954
4039
  }), t({})]
3955
4040
  });
3956
- }, yc = (e) => {
4041
+ }, Cc = (e) => {
3957
4042
  var t, n, r, i, a;
3958
4043
  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 = {
3959
4044
  cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
@@ -3992,7 +4077,7 @@ var Cr = /* @__PURE__ */ function(e) {
3992
4077
  name: f,
3993
4078
  testId: C && `${C}-title`
3994
4079
  }),
3995
- /* @__PURE__ */ v(hc, {
4080
+ /* @__PURE__ */ v(yc, {
3996
4081
  colSpan: P,
3997
4082
  columnAlignment: x,
3998
4083
  columnCount: M,
@@ -4002,13 +4087,13 @@ var Cr = /* @__PURE__ */ function(e) {
4002
4087
  rows: L,
4003
4088
  tbodyRef: A,
4004
4089
  canListReorder: s,
4005
- children: ({ dropDisabled: e }) => /* @__PURE__ */ v(vc, {
4090
+ children: ({ dropDisabled: e }) => /* @__PURE__ */ v(Sc, {
4006
4091
  table: te,
4007
4092
  children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ y("table", {
4008
4093
  className: g(mo.table, S ? mo.striped : ""),
4009
4094
  "data-testid": C,
4010
4095
  style: n,
4011
- children: [/* @__PURE__ */ v("thead", { children: j.map((e, t) => /* @__PURE__ */ v(mc, {
4096
+ children: [/* @__PURE__ */ v("thead", { children: j.map((e, t) => /* @__PURE__ */ v(vc, {
4012
4097
  rowIndex: t,
4013
4098
  isHeader: !0,
4014
4099
  row: e,
@@ -4023,7 +4108,7 @@ var Cr = /* @__PURE__ */ function(e) {
4023
4108
  ref: A,
4024
4109
  children: t ? t.getVirtualItems().map((t) => {
4025
4110
  let n = t.index, r = L[n];
4026
- return /* @__PURE__ */ v(mc, {
4111
+ return /* @__PURE__ */ v(vc, {
4027
4112
  rowIndex: n,
4028
4113
  row: c ? c({
4029
4114
  row: r,
@@ -4038,7 +4123,7 @@ var Cr = /* @__PURE__ */ function(e) {
4038
4123
  height: t.size,
4039
4124
  dropDisabled: e
4040
4125
  }, `1_${n}`);
4041
- }) : L.map((t, n) => /* @__PURE__ */ v(mc, {
4126
+ }) : L.map((t, n) => /* @__PURE__ */ v(vc, {
4042
4127
  rowIndex: n,
4043
4128
  row: c ? c({
4044
4129
  row: t,
@@ -4063,14 +4148,14 @@ var Cr = /* @__PURE__ */ function(e) {
4063
4148
  })
4064
4149
  ]
4065
4150
  });
4066
- }, bc = "blank", xc = 1e4, Sc = (e, t, n, r) => {
4151
+ }, wc = "blank", Tc = 1e4, Ec = (e, t, n, r) => {
4067
4152
  let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
4068
4153
  return {
4069
4154
  updatedErrors: o,
4070
4155
  isValid: o.length === 0
4071
4156
  };
4072
- }, Cc = 20, wc = 1, Tc = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4073
- let i = d(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, s] = m(Cc), [l, u] = m(wc), f = p([]), h = (l - 1) * a, g = a === 0 ? t.rows.length : h + a, [_, y] = m([]), b = d(() => {
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(() => {
4074
4159
  let n = e.filter((e) => !e.optionalColumn);
4075
4160
  return t.fields.length === n.length ? n : e;
4076
4161
  }, [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")), {
@@ -4084,7 +4169,7 @@ var Cr = /* @__PURE__ */ function(e) {
4084
4169
  disableValidationOnFocus: !0,
4085
4170
  error: v,
4086
4171
  validationCallback: (e, i) => {
4087
- let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Sc(t.errors, a, e, i);
4172
+ let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Ec(t.errors, a, e, i);
4088
4173
  n({ parsedResult: {
4089
4174
  ...t,
4090
4175
  errors: o,
@@ -4093,7 +4178,7 @@ var Cr = /* @__PURE__ */ function(e) {
4093
4178
  },
4094
4179
  onChange: (e) => {
4095
4180
  var i;
4096
- let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = Sc(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
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);
4097
4182
  n({ parsedResult: {
4098
4183
  ...t,
4099
4184
  rows: d,
@@ -4135,7 +4220,7 @@ var Cr = /* @__PURE__ */ function(e) {
4135
4220
  ]);
4136
4221
  let S = d(() => t.fields.map((e, r) => {
4137
4222
  var a, o, s;
4138
- 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) === bc);
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);
4139
4224
  if (!l.length || u) return {};
4140
4225
  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;
4141
4226
  return {
@@ -4173,7 +4258,7 @@ var Cr = /* @__PURE__ */ function(e) {
4173
4258
  h,
4174
4259
  g
4175
4260
  ]);
4176
- return /* @__PURE__ */ v(yc, {
4261
+ return /* @__PURE__ */ v(Cc, {
4177
4262
  beforeRenderRow: o(({ rowIndex: e }) => {
4178
4263
  let n = h + e, r = t.rows[n];
4179
4264
  return r ? x(r, n) : {
@@ -4246,7 +4331,7 @@ var Cr = /* @__PURE__ */ function(e) {
4246
4331
  } }
4247
4332
  }
4248
4333
  });
4249
- }, Ec = { listStyle: "_listStyle_yjfjw_1" }, Dc = ({ errors: e, t }) => {
4334
+ }, Ac = { listStyle: "_listStyle_yjfjw_1" }, jc = ({ errors: e, t }) => {
4250
4335
  var n;
4251
4336
  let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
4252
4337
  let n = (e) => {
@@ -4262,18 +4347,18 @@ var Cr = /* @__PURE__ */ function(e) {
4262
4347
  content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
4263
4348
  type: "Error",
4264
4349
  details: /* @__PURE__ */ v("ul", {
4265
- className: Ec.listStyle,
4350
+ className: Ac.listStyle,
4266
4351
  children: r.map((e, t) => /* @__PURE__ */ v("li", { children: e }, t))
4267
4352
  })
4268
4353
  };
4269
- }, Oc = ({ errors: e, t }) => e.length ? /* @__PURE__ */ v(po, { message: Dc({
4354
+ }, Mc = ({ errors: e, t }) => e.length ? /* @__PURE__ */ v(po, { message: jc({
4270
4355
  errors: e,
4271
4356
  t
4272
- }) }) : null, kc = {
4357
+ }) }) : null, Nc = {
4273
4358
  empty: "_empty_fe425_1",
4274
4359
  text: "_text_fe425_11"
4275
- }, Ac = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ y("div", {
4276
- className: kc.empty,
4360
+ }, Pc = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ y("div", {
4361
+ className: Nc.empty,
4277
4362
  style: {
4278
4363
  width: e,
4279
4364
  height: t
@@ -4309,7 +4394,7 @@ var Cr = /* @__PURE__ */ function(e) {
4309
4394
  })
4310
4395
  }),
4311
4396
  n !== "" && /* @__PURE__ */ v("div", {
4312
- className: kc.text,
4397
+ className: Nc.text,
4313
4398
  children: /* @__PURE__ */ v(ha, {
4314
4399
  faint: !0,
4315
4400
  children: n
@@ -4317,52 +4402,52 @@ var Cr = /* @__PURE__ */ function(e) {
4317
4402
  }),
4318
4403
  r
4319
4404
  ]
4320
- }), jc = (e) => {
4405
+ }), Fc = (e) => {
4321
4406
  var t;
4322
4407
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4323
4408
  let t = e == null ? void 0 : e.match(/[.,]/g);
4324
4409
  return t && t.length > 1;
4325
4410
  });
4326
- }, Mc = (e) => {
4411
+ }, Ic = (e) => {
4327
4412
  var t;
4328
4413
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4329
4414
  var t;
4330
4415
  return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
4331
4416
  });
4332
- }, Nc = (e, t, n) => e >= t - n, Pc = (e) => !!e && e !== "blank" && e.trim() !== "", Fc = (e, t, n, r, i, a, o) => {
4417
+ }, Lc = (e, t, n) => e >= t - n, Rc = (e) => !!e && e !== "blank" && e.trim() !== "", zc = (e, t, n, r, i, a, o) => {
4333
4418
  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;
4334
- if (i && !Nc(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4419
+ if (i && !Lc(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4335
4420
  var f, p;
4336
4421
  let e = r.filter((e) => {
4337
4422
  var t;
4338
- return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(Pc));
4423
+ return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(Rc));
4339
4424
  }).length;
4340
- Nc(t == null || (f = t.filter(Pc)) == 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 }));
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 }));
4341
4426
  }
4342
4427
  return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
4343
4428
  expectedLengthMessage: u,
4344
4429
  dataRowStartIndex: d
4345
4430
  })) : n.forEach((e, t) => {
4346
- Nc(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4431
+ Lc(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4347
4432
  expectedLengthMessage: u,
4348
4433
  dataRowStartIndex: d + t
4349
4434
  }));
4350
4435
  }), s;
4351
- }, Ic = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Lc = ({ value: e, defaultAllowedValues: t }) => {
4436
+ }, Bc = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Vc = ({ value: e, defaultAllowedValues: t }) => {
4352
4437
  var n;
4353
- let r = Ic(e);
4354
- return (n = t == null ? void 0 : t.some((e) => Ic(e).includes(r) || r.includes(Ic(e)))) == null ? !1 : n;
4355
- }, Rc = ({ value: e, defaultAllowedValues: t }) => {
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 }) => {
4356
4441
  var n;
4357
4442
  return (n = t == null ? void 0 : t.includes(e)) == null ? !1 : n;
4358
- }, zc = (e, t, n, r, i, a) => {
4443
+ }, Uc = (e, t, n, r, i, a) => {
4359
4444
  let o = [];
4360
4445
  if (r) {
4361
4446
  let r = n.map((e) => e.fieldName).filter(Boolean);
4362
4447
  e.forEach((i, s) => {
4363
4448
  var c, l;
4364
4449
  let u = n[s];
4365
- if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Lc : c)({
4450
+ if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Vc : c)({
4366
4451
  value: i,
4367
4452
  defaultAllowedValues: r,
4368
4453
  columnIndex: s,
@@ -4384,7 +4469,7 @@ var Cr = /* @__PURE__ */ function(e) {
4384
4469
  var l, u;
4385
4470
  let d = n[c];
4386
4471
  if (!d || d != null && d.optionalColumn) return;
4387
- let f = (l = d.unitsValidator) == null ? Rc : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4472
+ let f = (l = d.unitsValidator) == null ? Hc : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4388
4473
  f({
4389
4474
  value: r,
4390
4475
  defaultAllowedValues: p,
@@ -4400,7 +4485,7 @@ var Cr = /* @__PURE__ */ function(e) {
4400
4485
  });
4401
4486
  }
4402
4487
  return o;
4403
- }, Bc = (e, t, n) => {
4488
+ }, Wc = (e, t, n) => {
4404
4489
  let r = [];
4405
4490
  return e.forEach((e, i) => {
4406
4491
  e.forEach((e, a) => {
@@ -4413,91 +4498,91 @@ var Cr = /* @__PURE__ */ function(e) {
4413
4498
  })}`);
4414
4499
  });
4415
4500
  }), r;
4416
- }, Vc = (e, t, n, r, i, a, o) => {
4417
- let s = Fc(e, t, n, r, i, a, o);
4418
- return s.length === 0 && (s = s.concat(zc(e, t, r, i, a, o), Bc(n, r, o))), {
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))), {
4419
4504
  isValid: s.length === 0,
4420
4505
  errors: s
4421
4506
  };
4422
- }, Hc = (e, t, n) => {
4507
+ }, Kc = (e, t, n) => {
4423
4508
  var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
4424
4509
  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;
4425
4510
  return {
4426
4511
  hasFieldNameHeader: b || v && !x && !C || v && y && !C,
4427
4512
  hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
4428
4513
  };
4429
- }, Uc = (e, { validationRules: t }) => {
4514
+ }, qc = (e, { validationRules: t }) => {
4430
4515
  var n, r, i;
4431
4516
  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) => {
4432
4517
  var t;
4433
4518
  return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
4434
- }), { hasFieldNameHeader: l, hasUnitHeader: u } = Hc(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());
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());
4435
4520
  return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
4436
4521
  hasFieldNameHeader: l,
4437
4522
  hasUnitHeader: u
4438
4523
  };
4439
- }, Wc = (e) => Math.round(e * 100) / 100, Gc = (e) => e.join(", ").replace(/,\s*$/, ""), Kc = {
4524
+ }, Jc = (e) => Math.round(e * 100) / 100, Yc = (e) => e.join(", ").replace(/,\s*$/, ""), Xc = {
4440
4525
  skipEmptyLines: !0,
4441
4526
  delimiter: (e) => {
4442
4527
  var t, n;
4443
4528
  let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
4444
4529
  return i === 0 && a === 0 ? "," : i > a ? " " : ";";
4445
4530
  }
4446
- }, qc = [
4531
+ }, Zc = [
4447
4532
  "text/csv",
4448
4533
  "text/plain",
4449
4534
  "application/json",
4450
4535
  "application/vnd.ms-excel"
4451
- ], Jc = (e) => qc.includes(e.type), Yc = (e) => e instanceof File, Xc = (e) => e.trim().startsWith("["), Zc = (e) => {
4536
+ ], Qc = (e) => Zc.includes(e.type), $c = (e) => e instanceof File, el = (e) => e.trim().startsWith("["), tl = (e) => {
4452
4537
  try {
4453
4538
  var t;
4454
4539
  return !!((t = JSON.parse(e)) != null && t.path);
4455
4540
  } catch {
4456
4541
  return !1;
4457
4542
  }
4458
- }, Qc = (e) => new Promise((t, n) => {
4543
+ }, nl = (e) => new Promise((t, n) => {
4459
4544
  let r = new FileReader();
4460
4545
  r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
4461
- }), $c = async (e, t, n) => {
4546
+ }), rl = async (e, t, n) => {
4462
4547
  try {
4463
- return ol({
4548
+ return ul({
4464
4549
  data: JSON.parse(e),
4465
4550
  errors: []
4466
4551
  }, t, n);
4467
4552
  } catch (e) {
4468
4553
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4469
4554
  }
4470
- }, el = async (e, t, n) => {
4555
+ }, il = async (e, t, n) => {
4471
4556
  try {
4472
4557
  let r = JSON.parse(e).path.map((e) => [
4473
- Wc(e.md),
4474
- Wc(e.inclination),
4475
- Wc(e.gridAzimuth)
4558
+ Jc(e.md),
4559
+ Jc(e.inclination),
4560
+ Jc(e.gridAzimuth)
4476
4561
  ]);
4477
4562
  return r.unshift([
4478
4563
  "m",
4479
4564
  "deg",
4480
4565
  "deg"
4481
- ]), ol({
4566
+ ]), ul({
4482
4567
  data: r,
4483
4568
  errors: []
4484
4569
  }, t, n);
4485
4570
  } catch (e) {
4486
4571
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4487
4572
  }
4488
- }, tl = (e) => e.replace(",", "."), nl = (e) => e.map((e) => e.map((e) => tl(e))), rl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4573
+ }, al = (e) => e.replace(",", "."), ol = (e) => e.map((e) => e.map((e) => al(e))), sl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4489
4574
  or.parse(e, {
4490
- ...Kc,
4575
+ ...Xc,
4491
4576
  preview: t,
4492
4577
  complete: (e) => {
4493
- let a = ol(e, {
4578
+ let a = ul(e, {
4494
4579
  importLimit: t,
4495
4580
  ...n
4496
4581
  }, r);
4497
- a.rows = nl(a.rows), i(a);
4582
+ a.rows = ol(a.rows), i(a);
4498
4583
  }
4499
4584
  });
4500
- }), il = async (e, t, n) => {
4585
+ }), cl = async (e, t, n) => {
4501
4586
  let r = {
4502
4587
  isValid: !1,
4503
4588
  fields: [],
@@ -4506,13 +4591,13 @@ var Cr = /* @__PURE__ */ function(e) {
4506
4591
  errors: []
4507
4592
  };
4508
4593
  try {
4509
- if (Yc(e) && !Jc(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Gc(Array.from(qc))}`), r;
4510
- let i = Yc(e) ? await Qc(e) : e;
4511
- return Xc(i) ? await $c(i, t, n) : Zc(i) ? await el(i, t, n) : await rl(e, t, n);
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);
4512
4597
  } catch (e) {
4513
4598
  return r.errors.push(e.message), r;
4514
4599
  }
4515
- }, al = (e, t, n, r) => {
4600
+ }, ll = (e, t, n, r) => {
4516
4601
  var i;
4517
4602
  let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
4518
4603
  e,
@@ -4524,7 +4609,7 @@ var Cr = /* @__PURE__ */ function(e) {
4524
4609
  header: !0,
4525
4610
  delimiter: a
4526
4611
  });
4527
- }, ol = (e, t, n) => {
4612
+ }, ul = (e, t, n) => {
4528
4613
  let { data: r, errors: i } = e, a = {
4529
4614
  isValid: !1,
4530
4615
  fields: [],
@@ -4533,15 +4618,15 @@ var Cr = /* @__PURE__ */ function(e) {
4533
4618
  errors: i.map((e) => e.message)
4534
4619
  };
4535
4620
  if (i.length > 0) return a;
4536
- let { hasFieldNameHeader: o, hasUnitHeader: s } = Uc(r, t);
4621
+ let { hasFieldNameHeader: o, hasUnitHeader: s } = qc(r, t);
4537
4622
  a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
4538
4623
  let { validationRules: c } = t;
4539
4624
  if (c.length) {
4540
- let { isValid: e, errors: t } = Vc(a.fields, a.units, a.rows, c, o, s, n);
4625
+ let { isValid: e, errors: t } = Gc(a.fields, a.units, a.rows, c, o, s, n);
4541
4626
  a.errors.push(...t), a.isValid = e && t.length === 0;
4542
4627
  } else a.isValid = a.errors.length === 0;
4543
4628
  return a;
4544
- }, sl = ({ id: e, message: t = {
4629
+ }, dl = ({ id: e, message: t = {
4545
4630
  type: oo.INFO,
4546
4631
  content: ""
4547
4632
  }, autoClose: n = 6e3, onClose: r }) => {
@@ -4582,22 +4667,22 @@ var Cr = /* @__PURE__ */ function(e) {
4582
4667
  transition: sr,
4583
4668
  type: s
4584
4669
  });
4585
- }, cl = (e) => {
4670
+ }, fl = (e) => {
4586
4671
  lr.dismiss(e);
4587
- }, ll = (e, t) => {
4672
+ }, pl = (e, t) => {
4588
4673
  t(() => {
4589
- sl({ ...e });
4674
+ dl({ ...e });
4590
4675
  });
4591
- }, ul = {
4676
+ }, ml = {
4592
4677
  toggle: "_toggle_18fme_9",
4593
4678
  small: "_small_18fme_25",
4594
4679
  disabled: "_disabled_18fme_105",
4595
4680
  noMargin: "_noMargin_18fme_113",
4596
4681
  helpIconEnabled: "_helpIconEnabled_18fme_116"
4597
- }, dl = ({ 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 }) => {
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 }) => {
4598
4683
  let p = s(H), m = u || d, h = r || p;
4599
4684
  return /* @__PURE__ */ y("div", {
4600
- className: g(ul.toggle, h ? ul.disabled : null, a ? ul.small : null, c ? ul.noMargin : null),
4685
+ className: g(ml.toggle, h ? ml.disabled : null, a ? ml.small : null, c ? ml.noMargin : null),
4601
4686
  style: { display: i },
4602
4687
  onClick: (t) => {
4603
4688
  h || (t.target.name = e, t.target.checked = !n, t.target.value = !n, o(t));
@@ -4617,13 +4702,13 @@ var Cr = /* @__PURE__ */ function(e) {
4617
4702
  children: t
4618
4703
  }),
4619
4704
  m && /* @__PURE__ */ v("div", {
4620
- className: ul.helpIconEnabled,
4705
+ className: ml.helpIconEnabled,
4621
4706
  onClick: d,
4622
4707
  children: /* @__PURE__ */ v(si, { text: u })
4623
4708
  })
4624
4709
  ]
4625
4710
  });
4626
- }, fl = ({ 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 }) => {
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 }) => {
4627
4712
  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({
4628
4713
  pastedText: "",
4629
4714
  parsedResult: {
@@ -4646,8 +4731,8 @@ var Cr = /* @__PURE__ */ function(e) {
4646
4731
  var n, r, i;
4647
4732
  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 = {
4648
4733
  validationRules: s,
4649
- importLimit: (r = e.importLimit) == null ? xc : r
4650
- }, o = al(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
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);
4651
4736
  f(() => A({
4652
4737
  parsedResult: {
4653
4738
  ...I,
@@ -4677,17 +4762,17 @@ var Cr = /* @__PURE__ */ function(e) {
4677
4762
  }, N = () => {
4678
4763
  r("helpModal", !x);
4679
4764
  }, P = () => {
4680
- n(k), c(k.parsedResult), i(), ll({ message: {
4765
+ n(k), c(k.parsedResult), i(), pl({ message: {
4681
4766
  type: "Success",
4682
4767
  content: u("pasteSuccessful")
4683
4768
  } }, f);
4684
- }, { pastedText: F, parsedResult: I } = k, ee = T && T(I), { isValid: L, errors: te } = I, ne = te.length, re = F === "", ie = Mc(F), ae = jc(F), R = /* @__PURE__ */ y(_, { children: [
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: [
4685
4770
  /* @__PURE__ */ y("div", {
4686
4771
  className: io.headerContainer,
4687
4772
  children: [
4688
4773
  /* @__PURE__ */ v(W, {
4689
4774
  text: u("downsampleTooltip"),
4690
- children: /* @__PURE__ */ v(dl, {
4775
+ children: /* @__PURE__ */ v(hl, {
4691
4776
  label: u("downsampled"),
4692
4777
  checked: D,
4693
4778
  onChange: () => j(!D),
@@ -4720,7 +4805,7 @@ var Cr = /* @__PURE__ */ function(e) {
4720
4805
  }),
4721
4806
  re ? /* @__PURE__ */ v("div", {
4722
4807
  className: io.resultContainer,
4723
- children: /* @__PURE__ */ v(Ac, {
4808
+ children: /* @__PURE__ */ v(Pc, {
4724
4809
  text: null,
4725
4810
  children: /* @__PURE__ */ y("div", {
4726
4811
  className: io.emptyState,
@@ -4756,7 +4841,7 @@ var Cr = /* @__PURE__ */ function(e) {
4756
4841
  }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
4757
4842
  className: io.messagesContainer,
4758
4843
  children: [
4759
- ne ? /* @__PURE__ */ v(Oc, {
4844
+ ne ? /* @__PURE__ */ v(Mc, {
4760
4845
  errors: te,
4761
4846
  t: u
4762
4847
  }) : null,
@@ -4779,7 +4864,7 @@ var Cr = /* @__PURE__ */ function(e) {
4779
4864
  type: "Warning"
4780
4865
  } })
4781
4866
  ]
4782
- }), /* @__PURE__ */ v(Tc, {
4867
+ }), /* @__PURE__ */ v(kc, {
4783
4868
  validationRules: s,
4784
4869
  parsedResult: I,
4785
4870
  updateState: (e) => A((t) => ({
@@ -4821,7 +4906,7 @@ var Cr = /* @__PURE__ */ function(e) {
4821
4906
  onClose: i
4822
4907
  } })
4823
4908
  });
4824
- }, pl = ({ modals: e = [], modalVisibility: n, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ v(_, { children: e.map(({ name: e, component: a, props: o = {} }) => {
4909
+ }, _l = ({ modals: e = [], modalVisibility: n, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ v(_, { children: e.map(({ name: e, component: a, props: o = {} }) => {
4825
4910
  var s;
4826
4911
  return /* @__PURE__ */ v(t, { children: /* @__PURE__ */ v(a, {
4827
4912
  testId: `${i}-modal-render-${e}`,
@@ -4829,7 +4914,7 @@ var Cr = /* @__PURE__ */ function(e) {
4829
4914
  onClose: () => r({ name: e }),
4830
4915
  ...o
4831
4916
  }) }, e);
4832
- }) }) : null, ml = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ v(Ki, {
4917
+ }) }) : null, vl = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ v(Ki, {
4833
4918
  loading: !0,
4834
4919
  menu: {
4835
4920
  component: /* @__PURE__ */ v(K, {
@@ -4845,18 +4930,18 @@ var Cr = /* @__PURE__ */ function(e) {
4845
4930
  sections: e
4846
4931
  },
4847
4932
  testId: n
4848
- }), hl = (e, t, n) => o(async () => {
4933
+ }), yl = (e, t, n) => o(async () => {
4849
4934
  if (n) try {
4850
4935
  return await n();
4851
4936
  } catch (t) {
4852
- console.error("beforeExportData failed", t), sl({ message: {
4937
+ console.error("beforeExportData failed", t), dl({ message: {
4853
4938
  type: "Error",
4854
4939
  content: e("unableToPrepareExportData")
4855
4940
  } });
4856
4941
  return;
4857
4942
  }
4858
4943
  return t;
4859
- }, [t, n]), gl = {
4944
+ }, [t, n]), bl = {
4860
4945
  cancel: "Cancel",
4861
4946
  chooseFile: "Choose file",
4862
4947
  copyDecimalComma: "Copy (decimal comma)",
@@ -4915,26 +5000,26 @@ var Cr = /* @__PURE__ */ function(e) {
4915
5000
  smartUpload_description: "Upload image and extract table content using a LLM",
4916
5001
  smartUpload_smartUpload: "Smart Upload",
4917
5002
  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"
4918
- }, _l = (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])), vl = (e) => d(() => {
4919
- let t = Object.keys(gl).reduce((t, n) => {
4920
- let r = gl == null ? void 0 : gl[n], i = e == null ? void 0 : e[n];
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];
4921
5006
  return t[n] = i == null ? r : i, t;
4922
5007
  }, {});
4923
5008
  return (e, n) => {
4924
5009
  let r = t[e];
4925
- return n ? _l(r, n) : r;
5010
+ return n ? xl(r, n) : r;
4926
5011
  };
4927
- }, [e]), yl = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, bl = (e) => {
5012
+ }, [e]), Cl = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, wl = (e) => {
4928
5013
  var t;
4929
5014
  return {
4930
5015
  ...e,
4931
5016
  rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
4932
5017
  let t = String(e == null ? "" : e);
4933
- return yl.test(t) ? Cn(t) : t;
5018
+ return Cl.test(t) ? Cn(t) : t;
4934
5019
  }))
4935
5020
  };
4936
- }, xl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
4937
- let { exportData: a, beforeExportData: s, importLimit: c = xc, validationRules: l = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = vl(u), v = hl(_, a, s), y = o((e) => {
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) => {
4938
5023
  n((t) => ({
4939
5024
  ...t,
4940
5025
  ...e
@@ -4978,9 +5063,9 @@ var Cr = /* @__PURE__ */ function(e) {
4978
5063
  let t = {
4979
5064
  validationRules: l,
4980
5065
  importLimit: c
4981
- }, n = bl(await il(e, t, _));
5066
+ }, n = wl(await cl(e, t, _));
4982
5067
  if (g && g(h)) {
4983
- let { fields: e, units: r, rows: a } = n, o = al(e, r == null ? [] : r, a, t);
5068
+ let { fields: e, units: r, rows: a } = n, o = ll(e, r == null ? [] : r, a, t);
4984
5069
  return i(() => y({
4985
5070
  pastedText: o,
4986
5071
  parsedResult: h
@@ -5006,20 +5091,20 @@ var Cr = /* @__PURE__ */ function(e) {
5006
5091
  let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
5007
5092
  try {
5008
5093
  if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
5009
- ll({ message: {
5094
+ pl({ message: {
5010
5095
  type: "Error",
5011
5096
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
5012
5097
  } }, i);
5013
5098
  return;
5014
5099
  }
5015
- let e = bl(await il(r, {
5100
+ let e = wl(await cl(r, {
5016
5101
  validationRules: l,
5017
5102
  importLimit: c
5018
5103
  }, _));
5019
- return e != null && e.isValid || ll({ message: {
5104
+ return e != null && e.isValid || pl({ message: {
5020
5105
  type: "Error",
5021
5106
  content: _("clipboardReadFailed")
5022
- } }, i), n && ll({ message: {
5107
+ } }, i), n && pl({ message: {
5023
5108
  type: "Success",
5024
5109
  content: _("pasteSuccessful")
5025
5110
  } }, i), {
@@ -5027,7 +5112,7 @@ var Cr = /* @__PURE__ */ function(e) {
5027
5112
  parsedResult: e
5028
5113
  };
5029
5114
  } catch (e) {
5030
- ll({ message: {
5115
+ pl({ message: {
5031
5116
  type: "Error",
5032
5117
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
5033
5118
  details: e.message
@@ -5040,10 +5125,10 @@ var Cr = /* @__PURE__ */ function(e) {
5040
5125
  let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
5041
5126
  if (!n) return;
5042
5127
  let r = await C(await n.text());
5043
- r.isValid ? (f || ll({ message: {
5128
+ r.isValid ? (f || pl({ message: {
5044
5129
  type: "Success",
5045
5130
  content: _("pasteSuccessful")
5046
- } }, i), i(() => d(r))) : ll({ message: {
5131
+ } }, i), i(() => d(r))) : pl({ message: {
5047
5132
  type: "Error",
5048
5133
  content: _("fileParsingFailed")
5049
5134
  } }, i);
@@ -5057,7 +5142,7 @@ var Cr = /* @__PURE__ */ function(e) {
5057
5142
  try {
5058
5143
  let t = await navigator.clipboard.readText();
5059
5144
  if (!t) {
5060
- ll({ message: {
5145
+ pl({ message: {
5061
5146
  type: "Error",
5062
5147
  content: _("clipboardIsEmpty")
5063
5148
  } }, i);
@@ -5065,18 +5150,18 @@ var Cr = /* @__PURE__ */ function(e) {
5065
5150
  }
5066
5151
  let n = await C(t);
5067
5152
  if (!n.isValid) {
5068
- ll({ message: {
5153
+ pl({ message: {
5069
5154
  type: "Error",
5070
5155
  content: _("clipboardReadFailed")
5071
5156
  } }, i);
5072
5157
  return;
5073
5158
  }
5074
- f || ll({ message: {
5159
+ f || pl({ message: {
5075
5160
  type: "Success",
5076
5161
  content: _("pasteSuccessful")
5077
5162
  } }, i), e && i(() => d(n));
5078
5163
  } catch {
5079
- ll({ message: {
5164
+ pl({ message: {
5080
5165
  type: "Error",
5081
5166
  content: _("clipboardReadNotAllowed")
5082
5167
  } }, i);
@@ -5091,14 +5176,14 @@ var Cr = /* @__PURE__ */ function(e) {
5091
5176
  onClickCopyClipboard: o(async (e) => {
5092
5177
  let t = await v();
5093
5178
  if (!t) return;
5094
- let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : bc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = al(n, o, a.map((t) => t.map((t) => ur(t) ? "" : s(t.toString(), e))), { delimiter: " " });
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: " " });
5095
5180
  try {
5096
- await navigator.clipboard.writeText(c), ll({ message: {
5181
+ await navigator.clipboard.writeText(c), pl({ message: {
5097
5182
  type: "Success",
5098
5183
  content: _("copiedToClipboard")
5099
5184
  } }, i);
5100
5185
  } catch (e) {
5101
- ll({ message: {
5186
+ pl({ message: {
5102
5187
  type: "Error",
5103
5188
  content: _("unableToCopyToClipboard"),
5104
5189
  details: e.message
@@ -5108,14 +5193,14 @@ var Cr = /* @__PURE__ */ function(e) {
5108
5193
  onSmartUploadResult: o((e) => {
5109
5194
  let t = un(e) && dn(e.errorMessage) ? e.errorMessage : void 0;
5110
5195
  if (t) {
5111
- ll({ message: {
5196
+ pl({ message: {
5112
5197
  type: "Error",
5113
5198
  content: t || "Smart upload failed."
5114
5199
  } }, i);
5115
5200
  return;
5116
5201
  }
5117
5202
  if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(_n(e), dn))) {
5118
- ll({ message: {
5203
+ pl({ message: {
5119
5204
  type: "Error",
5120
5205
  content: "Smart upload returned unexpected format.",
5121
5206
  details: JSON.stringify(e)
@@ -5147,14 +5232,14 @@ var Cr = /* @__PURE__ */ function(e) {
5147
5232
  ]),
5148
5233
  deleteAllRows: x
5149
5234
  };
5150
- }, Sl = (e, t) => {
5235
+ }, El = (e, t) => {
5151
5236
  var n, r;
5152
- let { fields: i, rows: a } = e, o = al(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");
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");
5153
5238
  c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
5154
- }, Cl = (e) => ln(e) && "modalKey" in e, wl = (e, t, n) => Zt(e, (e) => {
5239
+ }, Dl = (e) => ln(e) && "modalKey" in e, Ol = (e, t, n) => Zt(e, (e) => {
5155
5240
  if (tn(e) || !un(e)) return;
5156
5241
  let { modalKey: r } = e == null ? {} : e;
5157
- if (Cl(e) && typeof e.onClick != "function") {
5242
+ if (Dl(e) && typeof e.onClick != "function") {
5158
5243
  let i = () => {
5159
5244
  var e;
5160
5245
  n(r, !((e = t.modalVisibility) != null && e[r]));
@@ -5164,7 +5249,7 @@ var Cr = /* @__PURE__ */ function(e) {
5164
5249
  onClick: i
5165
5250
  };
5166
5251
  }
5167
- }), Tl = (e, t, n) => wl(e, t, n), El = {
5252
+ }), kl = (e, t, n) => Ol(e, t, n), Al = {
5168
5253
  pastedText: "",
5169
5254
  parsedResult: {
5170
5255
  isValid: !1,
@@ -5179,9 +5264,9 @@ var Cr = /* @__PURE__ */ function(e) {
5179
5264
  reviewPasteModal: !1,
5180
5265
  helpModal: !1
5181
5266
  }
5182
- }, Dl = ({ config: e, smartUploadConfig: t, testId: n }) => {
5267
+ }, jl = ({ config: e, smartUploadConfig: t, testId: n }) => {
5183
5268
  var r, i, a, o;
5184
- 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(El), { 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 = vl(f), ee = hl(I, s, c), [L, te] = h(), ne = xl({
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({
5185
5270
  config: e,
5186
5271
  state: E,
5187
5272
  setState: D,
@@ -5216,14 +5301,14 @@ var Cr = /* @__PURE__ */ function(e) {
5216
5301
  onClick: () => R("smartUploadModal", !O),
5217
5302
  testId: `${n}-smart-upload`
5218
5303
  }] : [],
5219
- ...Tl((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, R)
5304
+ ...kl((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, R)
5220
5305
  ] : [], de = [
5221
5306
  {
5222
5307
  type: "Option",
5223
5308
  label: I("downloadFile"),
5224
5309
  onClick: async () => {
5225
5310
  let e = await ee();
5226
- e && e && Sl(e, d);
5311
+ e && e && El(e, d);
5227
5312
  }
5228
5313
  },
5229
5314
  ...p ? [{
@@ -5248,20 +5333,20 @@ var Cr = /* @__PURE__ */ function(e) {
5248
5333
  }]
5249
5334
  }
5250
5335
  }],
5251
- ...Tl((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, R)
5336
+ ...kl((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, R)
5252
5337
  ], fe = b ? [{
5253
5338
  type: "Option",
5254
5339
  label: I("deleteAllRows"),
5255
5340
  onClick: () => z(),
5256
5341
  testId: `${n}-delete-all-rows`
5257
- }, ...Tl((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, R)] : [], pe = x ? [
5342
+ }, ...kl((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, R)] : [], pe = x ? [
5258
5343
  { type: "Divider" },
5259
5344
  {
5260
5345
  type: "Option",
5261
5346
  label: I("help"),
5262
5347
  onClick: () => R("helpModal", !A)
5263
5348
  },
5264
- ...Tl((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, R)
5349
+ ...kl((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, R)
5265
5350
  ] : [], me = [
5266
5351
  ...ue.length ? [{
5267
5352
  section: [...ue, ...pe],
@@ -5287,13 +5372,13 @@ var Cr = /* @__PURE__ */ function(e) {
5287
5372
  small: !0,
5288
5373
  dark: !0
5289
5374
  }),
5290
- me.map((e, t) => /* @__PURE__ */ v(ml, {
5375
+ me.map((e, t) => /* @__PURE__ */ v(vl, {
5291
5376
  sections: e.section,
5292
5377
  iconName: e.iconName,
5293
5378
  tooltip: e.tooltip,
5294
5379
  testId: `data-${e == null ? void 0 : e.name}-menu`
5295
5380
  }, t)),
5296
- k && /* @__PURE__ */ v(fl, {
5381
+ k && /* @__PURE__ */ v(gl, {
5297
5382
  config: e,
5298
5383
  state: E,
5299
5384
  updateState: ie,
@@ -5329,14 +5414,14 @@ var Cr = /* @__PURE__ */ function(e) {
5329
5414
  cancelText: I("cancel"),
5330
5415
  testId: n
5331
5416
  }),
5332
- /* @__PURE__ */ v(pl, {
5417
+ /* @__PURE__ */ v(_l, {
5333
5418
  modals: C,
5334
5419
  modalVisibility: E == null ? void 0 : E.modalVisibility,
5335
5420
  onCloseModal: ae,
5336
5421
  testId: n
5337
5422
  })
5338
5423
  ] });
5339
- }, Ol = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = pn, ...o }) => {
5424
+ }, Ml = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = pn, ...o }) => {
5340
5425
  let c = s(H), l = p(null), u = () => {
5341
5426
  var e;
5342
5427
  i || c || (e = l.current) == null || e.click();
@@ -5364,12 +5449,12 @@ var Cr = /* @__PURE__ */ function(e) {
5364
5449
  multiple: n,
5365
5450
  onChange: d
5366
5451
  })] });
5367
- }, kl = {
5452
+ }, Nl = {
5368
5453
  label: "_label_uxk69_1",
5369
5454
  labelLeft: "_labelLeft_uxk69_5",
5370
5455
  icons: "_icons_uxk69_13",
5371
5456
  small: "_small_uxk69_27"
5372
- }, Al = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5457
+ }, Pl = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5373
5458
  visible: !1,
5374
5459
  active: !1,
5375
5460
  onClick: () => {},
@@ -5378,14 +5463,14 @@ var Cr = /* @__PURE__ */ function(e) {
5378
5463
  }, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Dr.CAPITALIZE }) => {
5379
5464
  var d;
5380
5465
  return /* @__PURE__ */ v("div", {
5381
- className: g(kl.label, c ? kl.labelLeft : "", l ? kl.small : ""),
5466
+ className: g(Nl.label, c ? Nl.labelLeft : "", l ? Nl.small : ""),
5382
5467
  children: /* @__PURE__ */ y("label", {
5383
5468
  style: {
5384
5469
  textTransform: u,
5385
5470
  width: t || ""
5386
5471
  },
5387
5472
  children: [e, /* @__PURE__ */ y("div", {
5388
- className: kl.icons,
5473
+ className: Nl.icons,
5389
5474
  children: [
5390
5475
  (n || i) && /* @__PURE__ */ v(si, {
5391
5476
  text: n,
@@ -5411,23 +5496,23 @@ var Cr = /* @__PURE__ */ function(e) {
5411
5496
  })]
5412
5497
  })
5413
5498
  });
5414
- }, jl = {
5499
+ }, Fl = {
5415
5500
  field: "_field_1xoss_1",
5416
5501
  labelLeft: "_labelLeft_1xoss_5",
5417
5502
  fieldInput: "_fieldInput_1xoss_9",
5418
5503
  formRow: "_formRow_1xoss_12",
5419
5504
  "form-row": "_form-row_1xoss_13",
5420
5505
  button: "_button_1xoss_22"
5421
- }, Ml = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5506
+ }, Il = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5422
5507
  visible: !1,
5423
5508
  active: !1,
5424
5509
  onClick: () => {},
5425
5510
  tooltip: "",
5426
5511
  testId: void 0
5427
5512
  }, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Dr.CAPITALIZE }) => /* @__PURE__ */ y("div", {
5428
- className: g(jl.field, t ? jl.labelLeft : ""),
5513
+ className: g(Fl.field, t ? Fl.labelLeft : ""),
5429
5514
  "data-testid": d,
5430
- children: [(e || t) && /* @__PURE__ */ v(Al, {
5515
+ children: [(e || t) && /* @__PURE__ */ v(Pl, {
5431
5516
  label: e,
5432
5517
  width: n,
5433
5518
  helpText: i,
@@ -5440,10 +5525,10 @@ var Cr = /* @__PURE__ */ function(e) {
5440
5525
  small: u,
5441
5526
  textTransform: f
5442
5527
  }), /* @__PURE__ */ v("div", {
5443
- className: jl.fieldInput,
5528
+ className: Fl.fieldInput,
5444
5529
  children: r
5445
5530
  })]
5446
- }), Nl = ({ 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", {
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", {
5447
5532
  style: {
5448
5533
  display: "flex",
5449
5534
  flexDirection: n,
@@ -5455,20 +5540,20 @@ var Cr = /* @__PURE__ */ function(e) {
5455
5540
  gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
5456
5541
  },
5457
5542
  children: a
5458
- }), Pl = { formRow: "_formRow_odewu_1" }, Fl = ({ children: e }) => /* @__PURE__ */ v("div", {
5459
- className: Pl.formRow,
5543
+ }), Rl = { formRow: "_formRow_odewu_1" }, zl = ({ children: e }) => /* @__PURE__ */ v("div", {
5544
+ className: Rl.formRow,
5460
5545
  children: e
5461
- }), Il = { grid: "_grid_obkz4_1" }, Ll = (e) => typeof e == "boolean" ? e ? "var(--padding)" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", Rl = (e) => typeof e == "number" ? `${e}px` : e || "initial", zl = ({ rows: e = "initial", columns: t = "initial", columnsTablet: n = null, columnsMobile: r = null, gap: i = !1, height: a = "initial", children: o }) => {
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 }) => {
5462
5547
  let s = {
5463
- "--grid-gap": Ll(i),
5464
- "--grid-rows": Rl(e),
5465
- "--grid-columns": Rl(t),
5466
- "--grid-height": Rl(a),
5467
- ...n != null && { "--grid-columns-tablet": Rl(n) },
5468
- ...r != null && { "--grid-columns-mobile": Rl(r) }
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) }
5469
5554
  };
5470
5555
  return /* @__PURE__ */ v("div", {
5471
- className: Il.grid,
5556
+ className: Bl.grid,
5472
5557
  style: s,
5473
5558
  children: o
5474
5559
  });
@@ -5515,15 +5600,15 @@ var Cr = /* @__PURE__ */ function(e) {
5515
5600
  hideScrollbar: "_hideScrollbar_1dcn1_67",
5516
5601
  noPointerEvents: "_noPointerEvents_1dcn1_309",
5517
5602
  virtualRows: "_virtualRows_1dcn1_312"
5518
- }, Bl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
5603
+ }, Wl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
5519
5604
  className: Z.toggleNarrow,
5520
5605
  onClick: t,
5521
5606
  children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_LEFT })
5522
- }) : null, Vl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
5607
+ }) : null, Gl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
5523
5608
  ref: a,
5524
5609
  className: g(Z.header, i ? Z.stickyHeader : ""),
5525
5610
  children: [
5526
- /* @__PURE__ */ v(Bl, {
5611
+ /* @__PURE__ */ v(Wl, {
5527
5612
  toggleNarrow: n,
5528
5613
  onClickToggleNarrow: r
5529
5614
  }),
@@ -5543,14 +5628,14 @@ var Cr = /* @__PURE__ */ function(e) {
5543
5628
  })
5544
5629
  })
5545
5630
  ]
5546
- })), Hl = ({ label: e }) => e ? /* @__PURE__ */ v("span", {
5631
+ })), Kl = ({ label: e }) => e ? /* @__PURE__ */ v("span", {
5547
5632
  className: Z.label,
5548
5633
  children: /* @__PURE__ */ v(Pi, {
5549
5634
  color: e.color,
5550
5635
  title: e.value,
5551
5636
  small: e.small
5552
5637
  })
5553
- }) : null, Ul = ({ name: e, icon: t, testId: n }) => {
5638
+ }) : null, ql = ({ name: e, icon: t, testId: n }) => {
5554
5639
  let r = t && /* @__PURE__ */ v(U, {
5555
5640
  icon: t.icon,
5556
5641
  color: t.color || "#db2828"
@@ -5570,8 +5655,8 @@ var Cr = /* @__PURE__ */ function(e) {
5570
5655
  children: r
5571
5656
  })]
5572
5657
  });
5573
- }, Wl = ({ item: e }) => {
5574
- let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ v(Ul, {
5658
+ }, Jl = ({ item: e }) => {
5659
+ let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ v(ql, {
5575
5660
  name: t,
5576
5661
  icon: n,
5577
5662
  testId: o && `${o}-name`
@@ -5597,10 +5682,10 @@ var Cr = /* @__PURE__ */ function(e) {
5597
5682
  })
5598
5683
  ]
5599
5684
  });
5600
- }, Gl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
5685
+ }, Yl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
5601
5686
  color: "rgba(0,0,0,0.25)",
5602
5687
  title: e.metaCount
5603
- }), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
5688
+ }), Xl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
5604
5689
  expanded: !!t && !!e.active && !!e.content,
5605
5690
  children: /* @__PURE__ */ v("div", {
5606
5691
  className: Z.itemContent,
@@ -5609,7 +5694,7 @@ var Cr = /* @__PURE__ */ function(e) {
5609
5694
  },
5610
5695
  children: e.content
5611
5696
  })
5612
- }), ql = r(({ item: e, index: t }, n) => {
5697
+ }), Zl = r(({ item: e, index: t }, n) => {
5613
5698
  var r;
5614
5699
  let i = s(H), { actions: a, disabled: o, expanded: c, onClick: l, title: u, name: d, icon: f, testId: p } = e;
5615
5700
  return /* @__PURE__ */ v("div", {
@@ -5629,13 +5714,13 @@ var Cr = /* @__PURE__ */ function(e) {
5629
5714
  className: g(Z.expandIcon, c && Z.expanded),
5630
5715
  children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_RIGHT })
5631
5716
  }),
5632
- /* @__PURE__ */ v(Ul, {
5717
+ /* @__PURE__ */ v(ql, {
5633
5718
  name: d,
5634
5719
  icon: f
5635
5720
  }),
5636
5721
  /* @__PURE__ */ y("div", {
5637
5722
  className: Z.right,
5638
- children: [/* @__PURE__ */ v(Gl, { item: e }), !(o || i) && a && /* @__PURE__ */ v("div", {
5723
+ children: [/* @__PURE__ */ v(Yl, { item: e }), !(o || i) && a && /* @__PURE__ */ v("div", {
5639
5724
  className: Z.actions,
5640
5725
  children: /* @__PURE__ */ v(Ji, { actions: (r = e.actions) == null ? [] : r })
5641
5726
  })]
@@ -5643,7 +5728,7 @@ var Cr = /* @__PURE__ */ function(e) {
5643
5728
  ]
5644
5729
  }) })
5645
5730
  });
5646
- }), Jl = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
5731
+ }), Ql = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
5647
5732
  let o = s(H), c = (e, t, s, c, l, u) => {
5648
5733
  let d = t.actions && t.actions.find((e) => {
5649
5734
  var t;
@@ -5679,24 +5764,24 @@ var Cr = /* @__PURE__ */ function(e) {
5679
5764
  className: Z.indentIcon,
5680
5765
  children: /* @__PURE__ */ v(U, { icon: V.INDENT })
5681
5766
  }) : null,
5682
- /* @__PURE__ */ v(Hl, { label: t.label }),
5683
- /* @__PURE__ */ v(Wl, { item: t }),
5767
+ /* @__PURE__ */ v(Kl, { label: t.label }),
5768
+ /* @__PURE__ */ v(Jl, { item: t }),
5684
5769
  /* @__PURE__ */ y("div", {
5685
5770
  className: Z.right,
5686
- children: [/* @__PURE__ */ v(Gl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ v("div", {
5771
+ children: [/* @__PURE__ */ v(Yl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ v("div", {
5687
5772
  className: Z.actions,
5688
5773
  children: /* @__PURE__ */ v(Ji, { actions: t.actions })
5689
5774
  })]
5690
5775
  })
5691
5776
  ]
5692
- }), /* @__PURE__ */ v(Kl, {
5777
+ }), /* @__PURE__ */ v(Xl, {
5693
5778
  item: t,
5694
5779
  expanding: n
5695
5780
  })]
5696
5781
  })
5697
5782
  }, e);
5698
5783
  };
5699
- return e.type === "Heading" ? /* @__PURE__ */ v(ql, {
5784
+ return e.type === "Heading" ? /* @__PURE__ */ v(Zl, {
5700
5785
  ref: a,
5701
5786
  item: e,
5702
5787
  index: t
@@ -5711,7 +5796,7 @@ var Cr = /* @__PURE__ */ function(e) {
5711
5796
  opacity: +!s
5712
5797
  }, n, r, i);
5713
5798
  })(t, e) : c(t, e);
5714
- }), Yl = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5799
+ }), $l = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5715
5800
  let [i, a] = m(null), o = (e) => {
5716
5801
  a(e.active.id);
5717
5802
  }, s = (e) => {
@@ -5734,7 +5819,7 @@ var Cr = /* @__PURE__ */ function(e) {
5734
5819
  dropAnimation: null,
5735
5820
  children: /* @__PURE__ */ v("div", {
5736
5821
  className: Z.dragOverlay,
5737
- children: /* @__PURE__ */ v(Jl, {
5822
+ children: /* @__PURE__ */ v(Ql, {
5738
5823
  draggable: t,
5739
5824
  item: n.items[Number(i)],
5740
5825
  index: Number(i)
@@ -5742,7 +5827,7 @@ var Cr = /* @__PURE__ */ function(e) {
5742
5827
  })
5743
5828
  }), document.body)]
5744
5829
  }) : e;
5745
- }, Xl = ({ items: e, scrollDetails: t, children: n }) => {
5830
+ }, eu = ({ items: e, scrollDetails: t, children: n }) => {
5746
5831
  let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = ir({
5747
5832
  count: e.length,
5748
5833
  getScrollElement: () => l.current,
@@ -5772,9 +5857,9 @@ var Cr = /* @__PURE__ */ function(e) {
5772
5857
  children: n({ virtualizer: u })
5773
5858
  })
5774
5859
  });
5775
- }, Zl = ({ items: e, scrollDetails: t, children: n }) => {
5860
+ }, tu = ({ items: e, scrollDetails: t, children: n }) => {
5776
5861
  let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
5777
- return a ? /* @__PURE__ */ v(Xl, {
5862
+ return a ? /* @__PURE__ */ v(eu, {
5778
5863
  items: e,
5779
5864
  scrollDetails: t,
5780
5865
  children: ({ virtualizer: e }) => n({ virtualizer: e })
@@ -5785,7 +5870,7 @@ var Cr = /* @__PURE__ */ function(e) {
5785
5870
  children: n({})
5786
5871
  })
5787
5872
  });
5788
- }, Ql = ({ 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 = {
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 = {
5789
5874
  scrollable: !1,
5790
5875
  hideScrollbar: !1,
5791
5876
  triggerScrollToActiveItem: !1,
@@ -5798,17 +5883,17 @@ var Cr = /* @__PURE__ */ function(e) {
5798
5883
  marginBottom: d
5799
5884
  },
5800
5885
  id: "scrollableDiv",
5801
- children: [!s && /* @__PURE__ */ v(Vl, {
5886
+ children: [!s && /* @__PURE__ */ v(Gl, {
5802
5887
  name: e.name,
5803
5888
  actions: e.actions,
5804
5889
  toggleNarrow: i,
5805
5890
  onToggleNarrow: a,
5806
5891
  stickyHeader: c
5807
- }), /* @__PURE__ */ v(Yl, {
5892
+ }), /* @__PURE__ */ v($l, {
5808
5893
  draggable: l,
5809
5894
  list: e,
5810
5895
  onListReorder: u,
5811
- children: /* @__PURE__ */ v(Zl, {
5896
+ children: /* @__PURE__ */ v(tu, {
5812
5897
  items: e.items,
5813
5898
  scrollDetails: m,
5814
5899
  children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ v("div", {
@@ -5816,14 +5901,14 @@ var Cr = /* @__PURE__ */ function(e) {
5816
5901
  className: Z.virtualRow,
5817
5902
  style: { transform: `translateY(${r.start}px)` },
5818
5903
  ref: t.measureElement,
5819
- children: /* @__PURE__ */ v(Jl, {
5904
+ children: /* @__PURE__ */ v(Ql, {
5820
5905
  index: r.index,
5821
5906
  draggable: l,
5822
5907
  item: e.items[r.index],
5823
5908
  expanding: n,
5824
5909
  invokeEditOnRowClick: o
5825
5910
  })
5826
- }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Jl, {
5911
+ }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Ql, {
5827
5912
  index: t,
5828
5913
  draggable: l,
5829
5914
  item: e,
@@ -5832,7 +5917,7 @@ var Cr = /* @__PURE__ */ function(e) {
5832
5917
  }) }, t))
5833
5918
  })
5834
5919
  })]
5835
- }), $l = {
5920
+ }), ru = {
5836
5921
  loader: "_loader_477i5_1",
5837
5922
  fullViewPortSize: "_fullViewPortSize_477i5_7",
5838
5923
  cover: "_cover_477i5_14",
@@ -5840,33 +5925,33 @@ var Cr = /* @__PURE__ */ function(e) {
5840
5925
  content: "_content_477i5_44",
5841
5926
  text: "_text_477i5_49",
5842
5927
  details: "_details_477i5_53"
5843
- }, eu = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Or.DARK, testId: c = null }) => {
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 }) => {
5844
5929
  let l = s === Or.DARK ? Or.WHITE : Or.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
5845
5930
  return /* @__PURE__ */ v("div", {
5846
- className: g($l.loader, a ? $l.cover : "", { [$l.fullViewPortSize]: i }),
5931
+ className: g(ru.loader, a ? ru.cover : "", { [ru.fullViewPortSize]: i }),
5847
5932
  style: {
5848
5933
  width: e,
5849
5934
  height: t
5850
5935
  },
5851
5936
  "data-testid": c,
5852
5937
  children: /* @__PURE__ */ v("div", {
5853
- className: $l.dimmer,
5938
+ className: ru.dimmer,
5854
5939
  style: {
5855
5940
  background: u,
5856
5941
  color: l
5857
5942
  },
5858
5943
  children: /* @__PURE__ */ y("div", {
5859
- className: $l.content,
5944
+ className: ru.content,
5860
5945
  "data-testid": c && `${c}-content`,
5861
5946
  children: [
5862
5947
  o,
5863
5948
  n && /* @__PURE__ */ v("div", {
5864
- className: $l.text,
5949
+ className: ru.text,
5865
5950
  "data-testid": c && `${c}-text`,
5866
5951
  children: n
5867
5952
  }),
5868
5953
  r && /* @__PURE__ */ v("div", {
5869
- className: $l.details,
5954
+ className: ru.details,
5870
5955
  "data-testid": c && `${c}-details`,
5871
5956
  children: r
5872
5957
  })
@@ -5874,15 +5959,15 @@ var Cr = /* @__PURE__ */ function(e) {
5874
5959
  })
5875
5960
  })
5876
5961
  });
5877
- }, tu = {
5962
+ }, au = {
5878
5963
  menu: "_menu_12x4u_1",
5879
5964
  header: "_header_12x4u_11",
5880
5965
  item: "_item_12x4u_27",
5881
5966
  heading: "_heading_12x4u_32"
5882
- }, nu = ({ option: e, onChange: t }) => {
5967
+ }, ou = ({ option: e, onChange: t }) => {
5883
5968
  let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
5884
5969
  return /* @__PURE__ */ v("div", {
5885
- className: tu.item,
5970
+ className: au.item,
5886
5971
  children: /* @__PURE__ */ v(ci, {
5887
5972
  label: r,
5888
5973
  noMargin: !0,
@@ -5891,17 +5976,17 @@ var Cr = /* @__PURE__ */ function(e) {
5891
5976
  testId: a
5892
5977
  })
5893
5978
  }, n);
5894
- }, ru = ({ label: e }) => /* @__PURE__ */ v("div", {
5895
- className: tu.heading,
5979
+ }, su = ({ label: e }) => /* @__PURE__ */ v("div", {
5980
+ className: au.heading,
5896
5981
  children: e
5897
- }), iu = /* @__PURE__ */ function(e) {
5982
+ }), cu = /* @__PURE__ */ function(e) {
5898
5983
  return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
5899
- }({}), au = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ y("div", {
5900
- className: g("menu", tu.menu),
5984
+ }({}), lu = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ y("div", {
5985
+ className: g("menu", au.menu),
5901
5986
  style: { maxHeight: r },
5902
5987
  "data-testid": i ? `${i}-option-dropdown-layer` : void 0,
5903
5988
  children: [n && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
5904
- className: tu.header,
5989
+ className: au.header,
5905
5990
  children: [
5906
5991
  /* @__PURE__ */ v("a", {
5907
5992
  onClick: (n) => {
@@ -5933,9 +6018,9 @@ var Cr = /* @__PURE__ */ function(e) {
5933
6018
  ]
5934
6019
  }), /* @__PURE__ */ v(_a, { margin: 0 })] }), e.map((n, r) => {
5935
6020
  switch (n.type) {
5936
- case iu.HEADING: return /* @__PURE__ */ v(ru, { label: n.label }, r);
5937
- case iu.DIVIDER: return /* @__PURE__ */ v(_a, { margin: 0 }, r);
5938
- default: return /* @__PURE__ */ v(nu, {
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, {
5939
6024
  option: n,
5940
6025
  onChange: (r) => {
5941
6026
  let { value: i } = n;
@@ -5947,7 +6032,7 @@ var Cr = /* @__PURE__ */ function(e) {
5947
6032
  }, r);
5948
6033
  }
5949
6034
  })]
5950
- }), ou = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ v(Ki, {
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, {
5951
6036
  testId: c,
5952
6037
  disabled: t,
5953
6038
  menu: {
@@ -5956,7 +6041,7 @@ var Cr = /* @__PURE__ */ function(e) {
5956
6041
  label: n,
5957
6042
  trigger: Cr.DROP_DOWN_BUTTON,
5958
6043
  possiblePlacements: ["top-start", "bottom-start"],
5959
- sections: /* @__PURE__ */ v(au, {
6044
+ sections: /* @__PURE__ */ v(lu, {
5960
6045
  testId: c,
5961
6046
  options: r,
5962
6047
  onChangeOptions: (t, n) => {
@@ -5966,13 +6051,13 @@ var Cr = /* @__PURE__ */ function(e) {
5966
6051
  maxHeight: s
5967
6052
  })
5968
6053
  }
5969
- }), su = {
6054
+ }), du = {
5970
6055
  page: "_page_beskc_1",
5971
6056
  scroll: "_scroll_beskc_23"
5972
- }, cu = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6057
+ }, fu = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
5973
6058
  let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
5974
6059
  return /* @__PURE__ */ v("div", {
5975
- className: g(su.page, r ? su.scroll : ""),
6060
+ className: g(du.page, r ? du.scroll : ""),
5976
6061
  style: {
5977
6062
  left: t,
5978
6063
  padding: a,
@@ -5980,25 +6065,25 @@ var Cr = /* @__PURE__ */ function(e) {
5980
6065
  },
5981
6066
  children: e
5982
6067
  });
5983
- }, lu = { printHeader: "_printHeader_o7xxx_1" }, uu = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ v("img", {
6068
+ }, pu = { printHeader: "_printHeader_o7xxx_1" }, mu = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ v("img", {
5984
6069
  src: e,
5985
6070
  alt: t,
5986
- className: lu.printHeader,
6071
+ className: pu.printHeader,
5987
6072
  style: { width: n }
5988
- }), du = ({ 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" }) => {
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" }) => {
5989
6074
  let m = s(H), h = f !== void 0, { simpleInputs: _, options: b, selectedOptions: x } = h ? {
5990
6075
  simpleInputs: !1,
5991
6076
  options: f,
5992
6077
  selectedOptions: void 0
5993
6078
  } : Ss(n, r), S = h || x == null ? void 0 : _ ? x : x.value, C = h ? d : t;
5994
6079
  return /* @__PURE__ */ y("div", {
5995
- className: g(cc.wrapper, u ? cc.inline : null, p === "inline fields" ? cc.inline : null),
6080
+ className: g(lc.wrapper, u ? lc.inline : null, p === "inline fields" ? lc.inline : null),
5996
6081
  children: [d && /* @__PURE__ */ v("label", {
5997
- className: g(u && cc.labelMargin),
6082
+ className: g(u && lc.labelMargin),
5998
6083
  children: C
5999
6084
  }), b.map((t, n) => {
6000
6085
  let r = (t == null ? void 0 : t.checked) || (t == null ? void 0 : t.value) === S || !1;
6001
- return /* @__PURE__ */ v(lc, {
6086
+ return /* @__PURE__ */ v(uc, {
6002
6087
  name: t.name || t.value,
6003
6088
  label: t.label,
6004
6089
  value: t.value,
@@ -6016,44 +6101,44 @@ var Cr = /* @__PURE__ */ function(e) {
6016
6101
  }, n);
6017
6102
  })]
6018
6103
  });
6019
- }, fu = {
6104
+ }, gu = {
6020
6105
  richTextToolbar: "_richTextToolbar_1gbkk_1",
6021
6106
  richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
6022
- }, pu = /* @__PURE__ */ function(e) {
6107
+ }, _u = /* @__PURE__ */ function(e) {
6023
6108
  return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e;
6024
- }({}), mu = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6109
+ }({}), vu = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6025
6110
  var r, i, a, o, s;
6026
6111
  let c = [
6027
6112
  {
6028
- icon: pu.BOLD,
6113
+ icon: _u.BOLD,
6029
6114
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
6030
6115
  active: (r = e == null ? void 0 : e.isActive("bold")) == null ? !1 : r
6031
6116
  },
6032
6117
  {
6033
- icon: pu.ITALIC,
6118
+ icon: _u.ITALIC,
6034
6119
  onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
6035
6120
  active: (i = e == null ? void 0 : e.isActive("italic")) == null ? !1 : i
6036
6121
  },
6037
6122
  {
6038
- icon: pu.CODE,
6123
+ icon: _u.CODE,
6039
6124
  onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
6040
6125
  active: (a = e == null ? void 0 : e.isActive("code")) == null ? !1 : a
6041
6126
  },
6042
6127
  {
6043
- icon: pu.UL,
6128
+ icon: _u.UL,
6044
6129
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
6045
6130
  active: (o = e == null ? void 0 : e.isActive("bulletList")) == null ? !1 : o
6046
6131
  },
6047
6132
  {
6048
- icon: pu.OL,
6133
+ icon: _u.OL,
6049
6134
  onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
6050
6135
  active: (s = e == null ? void 0 : e.isActive("orderedList")) == null ? !1 : s
6051
6136
  }
6052
6137
  ];
6053
6138
  return /* @__PURE__ */ y("div", {
6054
- className: fu.richTextToolbarContainer,
6139
+ className: gu.richTextToolbarContainer,
6055
6140
  children: [/* @__PURE__ */ v("div", {
6056
- className: fu.richTextToolbar,
6141
+ className: gu.richTextToolbar,
6057
6142
  children: c.map((e, n) => /* @__PURE__ */ v(K, {
6058
6143
  small: !0,
6059
6144
  round: !0,
@@ -6066,7 +6151,7 @@ var Cr = /* @__PURE__ */ function(e) {
6066
6151
  }, n))
6067
6152
  }), n]
6068
6153
  });
6069
- }, hu = {
6154
+ }, yu = {
6070
6155
  inputInTable: "_inputInTable_gb097_1",
6071
6156
  inputHover: "_inputHover_gb097_13",
6072
6157
  inputFocus: "_inputFocus_gb097_18",
@@ -6075,7 +6160,7 @@ var Cr = /* @__PURE__ */ function(e) {
6075
6160
  inputDisabled: "_inputDisabled_gb097_61",
6076
6161
  hideScrollbars: "_hideScrollbars_gb097_67",
6077
6162
  richTextInput: "_richTextInput_gb097_77"
6078
- }, gu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6163
+ }, bu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6079
6164
  let o = s(H), u = r || o, d = fr({
6080
6165
  extensions: [
6081
6166
  pr,
@@ -6102,17 +6187,17 @@ var Cr = /* @__PURE__ */ function(e) {
6102
6187
  clearContent: () => d == null ? void 0 : d.commands.clearContent(!1),
6103
6188
  editor: d
6104
6189
  }), [d]), /* @__PURE__ */ y("div", {
6105
- className: hu.richTextInput,
6106
- children: [/* @__PURE__ */ v(mu, {
6190
+ className: yu.richTextInput,
6191
+ children: [/* @__PURE__ */ v(vu, {
6107
6192
  editor: d,
6108
6193
  disabled: u,
6109
6194
  toolbarComponent: i
6110
6195
  }), /* @__PURE__ */ v(dr, { editor: d })]
6111
6196
  });
6112
- })), _u = { row: "_row_n16je_1" }, vu = ({ 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 }) => {
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 }) => {
6113
6198
  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));
6114
6199
  return /* @__PURE__ */ v("div", {
6115
- className: g(_u.row),
6200
+ className: g(xu.row),
6116
6201
  style: {
6117
6202
  alignItems: t,
6118
6203
  justifyContent: n,
@@ -6128,7 +6213,7 @@ var Cr = /* @__PURE__ */ function(e) {
6128
6213
  "data-testid": d,
6129
6214
  children: p
6130
6215
  });
6131
- }, yu = {
6216
+ }, Cu = {
6132
6217
  inputInTable: "_inputInTable_1oy1z_1",
6133
6218
  inputHover: "_inputHover_1oy1z_13",
6134
6219
  inputFocus: "_inputFocus_1oy1z_18",
@@ -6147,7 +6232,7 @@ var Cr = /* @__PURE__ */ function(e) {
6147
6232
  experimental: "_experimental_1oy1z_155",
6148
6233
  active: "_active_1oy1z_159",
6149
6234
  icon: "_icon_1oy1z_163"
6150
- }, bu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(W, {
6235
+ }, wu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(W, {
6151
6236
  text: t,
6152
6237
  enabled: !e,
6153
6238
  placement: "right-center",
@@ -6156,7 +6241,7 @@ var Cr = /* @__PURE__ */ function(e) {
6156
6241
  padding: "var(--padding-sm)",
6157
6242
  display: "block",
6158
6243
  children: /* @__PURE__ */ v("span", {
6159
- className: yu.icon,
6244
+ className: Cu.icon,
6160
6245
  children: /* @__PURE__ */ v(Pi, {
6161
6246
  small: !0,
6162
6247
  title: r ? "!" : void 0,
@@ -6165,18 +6250,18 @@ var Cr = /* @__PURE__ */ function(e) {
6165
6250
  })
6166
6251
  })
6167
6252
  }), /* @__PURE__ */ v("span", {
6168
- className: yu.label,
6253
+ className: Cu.label,
6169
6254
  children: t
6170
- })] }), (e, t) => er(e, t)), xu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
6171
- className: yu.list,
6255
+ })] }), (e, t) => er(e, t)), Tu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
6256
+ className: Cu.list,
6172
6257
  children: t.map((t, a) => {
6173
6258
  let o = `${n}_${a}`;
6174
6259
  return /* @__PURE__ */ v("a", {
6175
6260
  href: t.value,
6176
- className: g(yu.item, t.isActive ? yu.active : "", t.isExperimental ? yu.experimental : ""),
6261
+ className: g(Cu.item, t.isActive ? Cu.active : "", t.isExperimental ? Cu.experimental : ""),
6177
6262
  onClick: (e) => r(e, t.value, t.label, t.onClick),
6178
6263
  "data-testid": i,
6179
- children: /* @__PURE__ */ v(bu, {
6264
+ children: /* @__PURE__ */ v(wu, {
6180
6265
  label: t.label,
6181
6266
  icon: t.icon,
6182
6267
  invalid: t.invalid,
@@ -6184,16 +6269,16 @@ var Cr = /* @__PURE__ */ function(e) {
6184
6269
  }, o)
6185
6270
  }, o);
6186
6271
  })
6187
- }), Su = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ v(_, { children: n.map((n, i) => /* @__PURE__ */ y(e.Fragment, { children: [/* @__PURE__ */ v("h5", {
6188
- className: yu.subtitle,
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,
6189
6274
  children: n.heading.toUpperCase()
6190
- }), /* @__PURE__ */ v(xu, {
6275
+ }), /* @__PURE__ */ v(Tu, {
6191
6276
  isOpen: t,
6192
6277
  items: n.items,
6193
6278
  sectionIndex: i,
6194
6279
  onClick: r,
6195
6280
  testId: n.testId
6196
- })] }, i)) }), Cu = a(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6281
+ })] }, i)) }), Du = a(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6197
6282
  let [i, a] = m(t), o = (e, t, n, r) => {
6198
6283
  e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), a(!1);
6199
6284
  }, s = e.sections.length > 0;
@@ -6214,13 +6299,13 @@ var Cr = /* @__PURE__ */ function(e) {
6214
6299
  icon: V.LEFT
6215
6300
  }),
6216
6301
  children: /* @__PURE__ */ v("div", {
6217
- className: g(yu.sidebar, i ? "" : yu.collapsed),
6302
+ className: g(Cu.sidebar, i ? "" : Cu.collapsed),
6218
6303
  children: s && /* @__PURE__ */ y("div", {
6219
- className: yu.inner,
6304
+ className: Cu.inner,
6220
6305
  children: [/* @__PURE__ */ v("h4", {
6221
- className: yu.title,
6306
+ className: Cu.title,
6222
6307
  children: e.title
6223
- }), /* @__PURE__ */ v(Su, {
6308
+ }), /* @__PURE__ */ v(Eu, {
6224
6309
  isOpen: i,
6225
6310
  sections: e.sections,
6226
6311
  onClick: o
@@ -6228,18 +6313,18 @@ var Cr = /* @__PURE__ */ function(e) {
6228
6313
  })
6229
6314
  })
6230
6315
  });
6231
- }, (e, t) => er(e, t)), wu = {
6316
+ }, (e, t) => er(e, t)), Ou = {
6232
6317
  skeletonContainer: "_skeletonContainer_mcfxp_9",
6233
6318
  skeleton: "_skeleton_mcfxp_9"
6234
- }, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
6319
+ }, ku = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
6235
6320
  baseColor: "var(--color-skeleton-base)",
6236
6321
  highlightColor: "var(--color-skeleton-highlight)",
6237
- containerClassName: wu.skeletonContainer,
6238
- className: wu.skeleton,
6322
+ containerClassName: Ou.skeletonContainer,
6323
+ className: Ou.skeleton,
6239
6324
  count: e,
6240
6325
  width: t,
6241
6326
  height: n
6242
- }), Eu = {
6327
+ }), Au = {
6243
6328
  tabs: "_tabs_1y79t_1",
6244
6329
  padding: "_padding_1y79t_7",
6245
6330
  margin: "_margin_1y79t_11",
@@ -6250,12 +6335,12 @@ var Cr = /* @__PURE__ */ function(e) {
6250
6335
  disabled: "_disabled_1y79t_61",
6251
6336
  left: "_left_1y79t_65",
6252
6337
  right: "_right_1y79t_65"
6253
- }, Du = ({ label: e, url: t, hidden: n, disabled: r, active: i, onClick: a, right: o, invalid: s, badge: c, testId: l }) => {
6338
+ }, ju = ({ label: e, url: t, hidden: n, disabled: r, active: i, onClick: a, right: o, invalid: s, badge: c, testId: l }) => {
6254
6339
  let u = getComputedStyle(document.body).getPropertyValue("--color-text-error");
6255
6340
  return /* @__PURE__ */ v("a", {
6256
6341
  id: e == null ? void 0 : e.toString(),
6257
6342
  href: t,
6258
- className: g(Eu.item, i ? Eu.active : "", r ? Eu.disabled : "", n && !i ? Eu.hidden : "", o ? Eu.right : Eu.left),
6343
+ className: g(Au.item, i ? Au.active : "", r ? Au.disabled : "", n && !i ? Au.hidden : "", o ? Au.right : Au.left),
6259
6344
  onClick: a,
6260
6345
  "data-testid": l,
6261
6346
  children: s ? /* @__PURE__ */ v(Pi, {
@@ -6271,10 +6356,10 @@ var Cr = /* @__PURE__ */ function(e) {
6271
6356
  children: e
6272
6357
  }) : e
6273
6358
  });
6274
- }, Ou = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
6275
- className: g(n ? Eu.contentPadding : ""),
6359
+ }, Mu = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
6360
+ className: g(n ? Au.contentPadding : ""),
6276
6361
  children: e.map((e, n) => t === n && e)
6277
- }) : null, ku = ({ 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 }) => {
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 }) => {
6278
6363
  let p = s(H), m = l !== void 0, h = n ? n.map((e, t) => {
6279
6364
  var n;
6280
6365
  return {
@@ -6298,11 +6383,11 @@ var Cr = /* @__PURE__ */ function(e) {
6298
6383
  }
6299
6384
  };
6300
6385
  return b ? /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("div", {
6301
- className: g(Eu.tabs, a ? Eu.padding : "", o ? Eu.margin : ""),
6386
+ className: g(Au.tabs, a ? Au.padding : "", o ? Au.margin : ""),
6302
6387
  "data-testid": f,
6303
6388
  children: b.map((e, t) => {
6304
6389
  let { label: n, url: r, hidden: i, disabled: a, value: o, right: s, invalid: c, badge: l, testId: u } = e;
6305
- return /* @__PURE__ */ v(Du, {
6390
+ return /* @__PURE__ */ v(ju, {
6306
6391
  label: n,
6307
6392
  url: r,
6308
6393
  hidden: i,
@@ -6315,12 +6400,12 @@ var Cr = /* @__PURE__ */ function(e) {
6315
6400
  testId: u
6316
6401
  }, t);
6317
6402
  })
6318
- }), /* @__PURE__ */ v(Ou, {
6403
+ }), /* @__PURE__ */ v(Mu, {
6319
6404
  activeTabIndex: w == null ? 0 : w,
6320
6405
  contentPadding: c,
6321
6406
  children: n
6322
6407
  })] }) : null;
6323
- }, Au = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ v(a, {
6408
+ }, Pu = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ v(a, {
6324
6409
  href: t,
6325
6410
  to: t,
6326
6411
  target: n,
@@ -6330,7 +6415,7 @@ var Cr = /* @__PURE__ */ function(e) {
6330
6415
  link: !0,
6331
6416
  children: e
6332
6417
  })
6333
- }), ju = {
6418
+ }), Fu = {
6334
6419
  inputInTable: "_inputInTable_q0tl0_1",
6335
6420
  inputHover: "_inputHover_q0tl0_13",
6336
6421
  inputFocus: "_inputFocus_q0tl0_18",
@@ -6341,9 +6426,9 @@ var Cr = /* @__PURE__ */ function(e) {
6341
6426
  textarea: "_textarea_q0tl0_77",
6342
6427
  small: "_small_q0tl0_116",
6343
6428
  monospace: "_monospace_q0tl0_155"
6344
- }, Mu = ({ 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 }) => {
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 }) => {
6345
6430
  let S = s(H), C = /* @__PURE__ */ v("textarea", {
6346
- className: g(ju.textarea, f ? ju.error : "", p ? ju.warning : "", y ? ju.monospace : "", b ? ju.small : ""),
6431
+ className: g(Fu.textarea, f ? Fu.error : "", p ? Fu.warning : "", y ? Fu.monospace : "", b ? Fu.small : ""),
6347
6432
  name: e,
6348
6433
  value: t,
6349
6434
  placeholder: n,
@@ -6385,10 +6470,10 @@ var Cr = /* @__PURE__ */ function(e) {
6385
6470
  menu: "_menu_oyr59_139",
6386
6471
  active: "_active_oyr59_168",
6387
6472
  alert: "_alert_oyr59_193"
6388
- }, Nu = ({ warning: e }) => /* @__PURE__ */ v("div", {
6473
+ }, Lu = ({ warning: e }) => /* @__PURE__ */ v("div", {
6389
6474
  className: Q.alert,
6390
6475
  children: e
6391
- }), Pu = ({ icon: e, url: t, onClick: n }) => {
6476
+ }), Ru = ({ icon: e, url: t, onClick: n }) => {
6392
6477
  let r = /* @__PURE__ */ v(U, { icon: e });
6393
6478
  return t ? /* @__PURE__ */ v("a", {
6394
6479
  href: t,
@@ -6400,7 +6485,7 @@ var Cr = /* @__PURE__ */ function(e) {
6400
6485
  className: Q.appSwitcher,
6401
6486
  children: r
6402
6487
  });
6403
- }, Fu = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
6488
+ }, zu = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
6404
6489
  let a = /* @__PURE__ */ y("div", {
6405
6490
  className: Q.title,
6406
6491
  children: [
@@ -6429,9 +6514,9 @@ var Cr = /* @__PURE__ */ function(e) {
6429
6514
  children: a
6430
6515
  })
6431
6516
  });
6432
- }, Iu = /* @__PURE__ */ function(e) {
6517
+ }, Bu = /* @__PURE__ */ function(e) {
6433
6518
  return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
6434
- }({}), Lu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
6519
+ }({}), Vu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
6435
6520
  let l = s(H);
6436
6521
  return /* @__PURE__ */ y(c, {
6437
6522
  className: g(Q.link, i ? Q.active : ""),
@@ -6448,11 +6533,11 @@ var Cr = /* @__PURE__ */ function(e) {
6448
6533
  children: e
6449
6534
  })]
6450
6535
  });
6451
- }, Ru = ({ element: e }) => {
6536
+ }, Hu = ({ element: e }) => {
6452
6537
  switch (e.type) {
6453
- case Iu.LINK: return /* @__PURE__ */ v("div", {
6538
+ case Bu.LINK: return /* @__PURE__ */ v("div", {
6454
6539
  className: Q.item,
6455
- children: /* @__PURE__ */ v(Lu, {
6540
+ children: /* @__PURE__ */ v(Vu, {
6456
6541
  label: e.label,
6457
6542
  url: e.url,
6458
6543
  icon: e.icon,
@@ -6463,7 +6548,7 @@ var Cr = /* @__PURE__ */ function(e) {
6463
6548
  component: e.component
6464
6549
  })
6465
6550
  });
6466
- case Iu.BUTTON: return /* @__PURE__ */ v("div", {
6551
+ case Bu.BUTTON: return /* @__PURE__ */ v("div", {
6467
6552
  className: g(Q.item, Q.button),
6468
6553
  children: /* @__PURE__ */ v(K, {
6469
6554
  label: e.label,
@@ -6475,7 +6560,7 @@ var Cr = /* @__PURE__ */ function(e) {
6475
6560
  testId: e.testId
6476
6561
  })
6477
6562
  });
6478
- case Iu.MENU: return /* @__PURE__ */ v("div", {
6563
+ case Bu.MENU: return /* @__PURE__ */ v("div", {
6479
6564
  className: g(Q.item, Q.menu),
6480
6565
  children: /* @__PURE__ */ v(Ki, {
6481
6566
  maxHeight: "100%",
@@ -6483,7 +6568,7 @@ var Cr = /* @__PURE__ */ function(e) {
6483
6568
  trigger: Cr.COMPONENT,
6484
6569
  fullHeightTrigger: !0,
6485
6570
  placement: "bottom-start",
6486
- component: /* @__PURE__ */ v(Lu, {
6571
+ component: /* @__PURE__ */ v(Vu, {
6487
6572
  label: e.label,
6488
6573
  icon: e.icon,
6489
6574
  onClick: e.onClick
@@ -6492,50 +6577,50 @@ var Cr = /* @__PURE__ */ function(e) {
6492
6577
  }
6493
6578
  })
6494
6579
  });
6495
- case Iu.COMPONENT: return /* @__PURE__ */ v("div", {
6580
+ case Bu.COMPONENT: return /* @__PURE__ */ v("div", {
6496
6581
  className: Q.item,
6497
6582
  children: e.component
6498
6583
  });
6499
6584
  default: return null;
6500
6585
  }
6501
- }, zu = ({ 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(Nu, { warning: i }), /* @__PURE__ */ y("div", {
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", {
6502
6587
  className: g(Q.topbar, o ? Q.fixed : ""),
6503
6588
  style: { height: a },
6504
6589
  children: [
6505
- !!t && /* @__PURE__ */ v(Pu, {
6590
+ !!t && /* @__PURE__ */ v(Ru, {
6506
6591
  icon: t.icon,
6507
6592
  url: t.url,
6508
6593
  onClick: t.onClick
6509
6594
  }),
6510
6595
  /* @__PURE__ */ y("div", {
6511
6596
  className: Q.left,
6512
- children: [e && /* @__PURE__ */ v(Fu, {
6597
+ children: [e && /* @__PURE__ */ v(zu, {
6513
6598
  label: e.label,
6514
6599
  logo: e.logo,
6515
6600
  url: e.url,
6516
6601
  version: e.version,
6517
6602
  onClick: e.onClick
6518
- }), n.map((e, t) => e ? /* @__PURE__ */ v(Ru, { element: e }, t) : null)]
6603
+ }), n.map((e, t) => e ? /* @__PURE__ */ v(Hu, { element: e }, t) : null)]
6519
6604
  }),
6520
6605
  /* @__PURE__ */ v("div", {
6521
6606
  className: Q.right,
6522
- children: r.map((e, t) => e ? /* @__PURE__ */ v(Ru, { element: e }, t) : null)
6607
+ children: r.map((e, t) => e ? /* @__PURE__ */ v(Hu, { element: e }, t) : null)
6523
6608
  })
6524
6609
  ]
6525
- })] }), Bu = {
6610
+ })] }), Wu = {
6526
6611
  popConfirm: "_popConfirm_1x6ye_1",
6527
6612
  content: "_content_1x6ye_7",
6528
6613
  buttons: "_buttons_1x6ye_13"
6529
- }, Vu = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ y("div", {
6530
- className: Bu.popConfirm,
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,
6531
6616
  children: [e && /* @__PURE__ */ v("div", {
6532
- className: Bu.content,
6617
+ className: Wu.content,
6533
6618
  children: /* @__PURE__ */ v(ha, {
6534
6619
  small: !0,
6535
6620
  children: e
6536
6621
  })
6537
6622
  }), /* @__PURE__ */ y("div", {
6538
- className: Bu.buttons,
6623
+ className: Wu.buttons,
6539
6624
  children: [/* @__PURE__ */ v(K, {
6540
6625
  small: !0,
6541
6626
  colored: !0,
@@ -6550,8 +6635,8 @@ var Cr = /* @__PURE__ */ function(e) {
6550
6635
  testId: `${s}-cancel-button`
6551
6636
  })]
6552
6637
  })]
6553
- }), Hu = ({ 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, {
6554
- content: /* @__PURE__ */ v(Vu, {
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, {
6555
6640
  title: i,
6556
6641
  okText: s,
6557
6642
  onClickOk: c,
@@ -6566,14 +6651,14 @@ var Cr = /* @__PURE__ */ function(e) {
6566
6651
  overflowContainer: u,
6567
6652
  testId: d,
6568
6653
  children: e
6569
- }), Uu = {
6654
+ }), qu = {
6570
6655
  tree: "_tree_coxxe_1",
6571
6656
  toggle: "_toggle_coxxe_8",
6572
6657
  dropTarget: "_dropTarget_coxxe_15",
6573
6658
  placeholder: "_placeholder_coxxe_30",
6574
6659
  draggingSource: "_draggingSource_coxxe_36",
6575
6660
  placeholderContainer: "_placeholderContainer_coxxe_39"
6576
- }, Wu = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
6661
+ }, Ju = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
6577
6662
  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) => {
6578
6663
  e.stopPropagation(), i(l);
6579
6664
  }, w = (e) => {
@@ -6600,7 +6685,7 @@ var Cr = /* @__PURE__ */ function(e) {
6600
6685
  className: g(Z.itemHeader, _ ? Z.noPointerEvents : ""),
6601
6686
  children: [
6602
6687
  a && /* @__PURE__ */ v("div", {
6603
- className: Uu.toggle,
6688
+ className: qu.toggle,
6604
6689
  children: /* @__PURE__ */ v(K, {
6605
6690
  basic: !0,
6606
6691
  colored: r ? !0 : wr.MUTED,
@@ -6614,10 +6699,10 @@ var Cr = /* @__PURE__ */ function(e) {
6614
6699
  className: Z.drag,
6615
6700
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
6616
6701
  }),
6617
- /* @__PURE__ */ v(Wl, { item: u }),
6702
+ /* @__PURE__ */ v(Jl, { item: u }),
6618
6703
  /* @__PURE__ */ y("div", {
6619
6704
  className: Z.right,
6620
- children: [/* @__PURE__ */ v(Gl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ v("div", {
6705
+ children: [/* @__PURE__ */ v(Yl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ v("div", {
6621
6706
  className: Z.actions,
6622
6707
  children: /* @__PURE__ */ v(Ji, { actions: h })
6623
6708
  })]
@@ -6625,10 +6710,10 @@ var Cr = /* @__PURE__ */ function(e) {
6625
6710
  ]
6626
6711
  })
6627
6712
  });
6628
- }, Gu = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ v("div", {
6629
- className: Uu.placeholder,
6713
+ }, Yu = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ v("div", {
6714
+ className: qu.placeholder,
6630
6715
  style: { left: `calc(${t} * ${e})` }
6631
- }), Ku = ({ 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 }) => {
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 }) => {
6632
6717
  var x;
6633
6718
  let S = l == null ? p(null) : l, C = (e) => {
6634
6719
  i && i(e);
@@ -6686,7 +6771,7 @@ var Cr = /* @__PURE__ */ function(e) {
6686
6771
  "data-testid": a,
6687
6772
  className: Z.list,
6688
6773
  style: { height: g },
6689
- children: [e.name && !e.noHeader && /* @__PURE__ */ v(Vl, {
6774
+ children: [e.name && !e.noHeader && /* @__PURE__ */ v(Gl, {
6690
6775
  name: e.name,
6691
6776
  actions: e.actions,
6692
6777
  stickyHeader: h
@@ -6713,7 +6798,7 @@ var Cr = /* @__PURE__ */ function(e) {
6713
6798
  hasChild: r,
6714
6799
  isOpen: a,
6715
6800
  onToggle: o
6716
- }) : /* @__PURE__ */ v(Wu, {
6801
+ }) : /* @__PURE__ */ v(Ju, {
6717
6802
  hasChild: u ? u(e) : r,
6718
6803
  node: e,
6719
6804
  depth: t,
@@ -6729,7 +6814,7 @@ var Cr = /* @__PURE__ */ function(e) {
6729
6814
  onDrop: A,
6730
6815
  onChangeOpen: C,
6731
6816
  dropTargetOffset: 10,
6732
- placeholderRender: (e, { depth: t }) => /* @__PURE__ */ v(Gu, {
6817
+ placeholderRender: (e, { depth: t }) => /* @__PURE__ */ v(Yu, {
6733
6818
  depth: t,
6734
6819
  indent: b
6735
6820
  }),
@@ -6737,17 +6822,17 @@ var Cr = /* @__PURE__ */ function(e) {
6737
6822
  listComponent: "div",
6738
6823
  listItemComponent: "div",
6739
6824
  classes: {
6740
- root: Uu.tree,
6741
- draggingSource: Uu.draggingSource,
6742
- dropTarget: Uu.dropTarget,
6743
- placeholder: Uu.placeholderContainer
6825
+ root: qu.tree,
6826
+ draggingSource: qu.draggingSource,
6827
+ dropTarget: qu.dropTarget,
6828
+ placeholder: qu.placeholderContainer
6744
6829
  },
6745
6830
  initialOpen: o,
6746
6831
  enableAnimateExpand: !0
6747
6832
  })
6748
6833
  })]
6749
6834
  });
6750
- }, qu = {
6835
+ }, Zu = {
6751
6836
  treeTable: "_treeTable_1ywvy_1",
6752
6837
  treeTableHeader: "_treeTableHeader_1ywvy_22",
6753
6838
  folderCell: "_folderCell_1ywvy_30",
@@ -6755,48 +6840,48 @@ var Cr = /* @__PURE__ */ function(e) {
6755
6840
  drag: "_drag_1ywvy_31",
6756
6841
  folder: "_folder_1ywvy_30",
6757
6842
  active: "_active_1ywvy_61"
6758
- }, Ju = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Ju(e, t.id)]), Yu = (e, t) => {
6843
+ }, Qu = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Qu(e, t.id)]), $u = (e, t) => {
6759
6844
  let n = new Set(t);
6760
6845
  return e.filter((e) => !n.has(e.id)).map((e) => e.id);
6761
- }, Xu = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), Zu = (e, t, n, r = []) => {
6846
+ }, ed = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), td = (e, t, n, r = []) => {
6762
6847
  let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
6763
6848
  if (o.length === 0) return {
6764
6849
  checked: i.has(t),
6765
6850
  indeterminate: !1
6766
6851
  };
6767
- let s = o.map((t) => Zu(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
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;
6768
6853
  return {
6769
6854
  checked: u,
6770
6855
  indeterminate: c + l > 0 && !u
6771
6856
  };
6772
- }, Qu = (e, t, n = []) => {
6773
- let r = Yu(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
6857
+ }, nd = (e, t, n = []) => {
6858
+ let r = $u(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
6774
6859
  return {
6775
6860
  checked: r.length > 0 && a === r.length,
6776
6861
  indeterminate: a > 0 && a < r.length
6777
6862
  };
6778
- }, $u = n(null), ed = () => s($u), td = ({ children: e, rowCheckboxes: t, rows: n }) => {
6863
+ }, rd = n(null), id = () => s(rd), ad = ({ children: e, rowCheckboxes: t, rows: n }) => {
6779
6864
  let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: s, onChange: c } = t == null ? {} : t, l = d(() => new Set(a), [a]), u = d(() => {
6780
6865
  if (!r) return null;
6781
6866
  let e = /* @__PURE__ */ new Map();
6782
- for (let t of n) e.set(t.id, Zu(n, t.id, i, a));
6867
+ for (let t of n) e.set(t.id, td(n, t.id, i, a));
6783
6868
  return e;
6784
6869
  }, [
6785
6870
  i,
6786
6871
  a,
6787
6872
  r,
6788
6873
  n
6789
- ]), f = d(() => r ? Qu(n, i, a) : void 0, [
6874
+ ]), f = d(() => r ? nd(n, i, a) : void 0, [
6790
6875
  i,
6791
6876
  a,
6792
6877
  r,
6793
6878
  n
6794
6879
  ]), 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) => {
6795
6880
  if (!r || l.has(e)) return;
6796
- let t = Ju(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = Zu(n, e, i, a);
6881
+ let t = Qu(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = td(n, e, i, a);
6797
6882
  if (u) {
6798
6883
  let e = new Set(s);
6799
- c == null || c(Xu(i, e, l));
6884
+ c == null || c(ed(i, e, l));
6800
6885
  } else c == null || c([...new Set([...i, ...o])]);
6801
6886
  }, [
6802
6887
  i,
@@ -6807,7 +6892,7 @@ var Cr = /* @__PURE__ */ function(e) {
6807
6892
  n
6808
6893
  ]), _ = o(() => {
6809
6894
  if (!r) return;
6810
- let e = Yu(n, a), { checked: t } = Qu(n, i, a);
6895
+ let e = $u(n, a), { checked: t } = nd(n, i, a);
6811
6896
  t ? c == null || c(i.filter((e) => l.has(e))) : c == null || c([...new Set([...i, ...e])]);
6812
6897
  }, [
6813
6898
  i,
@@ -6833,12 +6918,12 @@ var Cr = /* @__PURE__ */ function(e) {
6833
6918
  _,
6834
6919
  g
6835
6920
  ]);
6836
- return /* @__PURE__ */ v($u.Provider, {
6921
+ return /* @__PURE__ */ v(rd.Provider, {
6837
6922
  value: y,
6838
6923
  children: e
6839
6924
  });
6840
- }, nd = ({ 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 }) => {
6841
- let h = ed(), _ = 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) => {
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) => {
6842
6927
  let r = t ? t[e] : void 0;
6843
6928
  return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
6844
6929
  };
@@ -6851,12 +6936,12 @@ var Cr = /* @__PURE__ */ function(e) {
6851
6936
  onDragLeave: f,
6852
6937
  children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ y("tr", {
6853
6938
  onClick: j,
6854
- className: g(qu.treeTableRow, A ? qu.active : void 0),
6939
+ className: g(Zu.treeTableRow, A ? Zu.active : void 0),
6855
6940
  children: [
6856
- C && /* @__PURE__ */ v(pc, {
6941
+ C && /* @__PURE__ */ v(mc, {
6857
6942
  isHeader: !1,
6858
6943
  cell: {
6859
- type: fc.CHECKBOX,
6944
+ type: pc.CHECKBOX,
6860
6945
  checked: b,
6861
6946
  disabled: S,
6862
6947
  indeterminate: x,
@@ -6865,19 +6950,19 @@ var Cr = /* @__PURE__ */ function(e) {
6865
6950
  }
6866
6951
  }),
6867
6952
  r && /* @__PURE__ */ v("td", {
6868
- className: qu.dragCell,
6953
+ className: Zu.dragCell,
6869
6954
  children: /* @__PURE__ */ v("div", {
6870
- className: qu.drag,
6955
+ className: Zu.drag,
6871
6956
  onClick: (e) => e.stopPropagation(),
6872
6957
  ref: i,
6873
6958
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
6874
6959
  })
6875
6960
  }),
6876
- Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: qu.folderCell }, t)),
6961
+ Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: Zu.folderCell }, t)),
6877
6962
  M && /* @__PURE__ */ v("td", {
6878
- className: qu.folderCell,
6963
+ className: Zu.folderCell,
6879
6964
  children: /* @__PURE__ */ v("div", {
6880
- className: qu.folder,
6965
+ className: Zu.folder,
6881
6966
  onClick: () => m(E),
6882
6967
  onMouseDown: (e) => e.stopPropagation(),
6883
6968
  children: /* @__PURE__ */ v(K, {
@@ -6890,69 +6975,69 @@ var Cr = /* @__PURE__ */ function(e) {
6890
6975
  })
6891
6976
  })
6892
6977
  }),
6893
- D.map((t, n) => /* @__PURE__ */ v(pc, {
6978
+ D.map((t, n) => /* @__PURE__ */ v(mc, {
6894
6979
  isHeader: !1,
6895
6980
  cell: t,
6896
6981
  width: N(n),
6897
6982
  columnAlignment: e ? e[n] : null
6898
6983
  }, n)),
6899
- o && /* @__PURE__ */ v(pc, {
6984
+ o && /* @__PURE__ */ v(mc, {
6900
6985
  isHeader: !1,
6901
6986
  cell: {
6902
- type: fc.ACTIONS,
6987
+ type: pc.ACTIONS,
6903
6988
  actions: k
6904
6989
  }
6905
6990
  })
6906
6991
  ]
6907
6992
  }) })
6908
6993
  });
6909
- }, rd = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
6910
- let a = ed(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
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;
6911
6996
  return /* @__PURE__ */ v("table", {
6912
- className: g(mo.table, qu.treeTableHeader),
6997
+ className: g(mo.table, Zu.treeTableHeader),
6913
6998
  children: /* @__PURE__ */ v("thead", { children: i.map((i, c) => /* @__PURE__ */ y("tr", { children: [
6914
- s && c === 0 ? /* @__PURE__ */ v(pc, {
6999
+ s && c === 0 ? /* @__PURE__ */ v(mc, {
6915
7000
  isHeader: !0,
6916
7001
  cell: {
6917
- type: fc.CHECKBOX,
7002
+ type: pc.CHECKBOX,
6918
7003
  checked: o.checked,
6919
7004
  indeterminate: o.indeterminate,
6920
7005
  onChange: a.toggleHeaderCheck
6921
7006
  }
6922
7007
  }) : s ? /* @__PURE__ */ v("td", {}) : null,
6923
- n && /* @__PURE__ */ v("th", { className: qu.dragCell }),
6924
- i.cells.map((n, r) => /* @__PURE__ */ v(pc, {
7008
+ n && /* @__PURE__ */ v("th", { className: Zu.dragCell }),
7009
+ i.cells.map((n, r) => /* @__PURE__ */ v(mc, {
6925
7010
  isHeader: !0,
6926
7011
  cell: n,
6927
7012
  width: t ? t[r] : void 0,
6928
7013
  columnAlignment: e ? e[r] : void 0
6929
7014
  }, r)),
6930
- r && /* @__PURE__ */ v(pc, {
7015
+ r && /* @__PURE__ */ v(mc, {
6931
7016
  isHeader: !0,
6932
7017
  cell: {
6933
- type: fc.ACTIONS,
7018
+ type: pc.ACTIONS,
6934
7019
  actions: i.actions,
6935
7020
  width: 31
6936
7021
  }
6937
7022
  })
6938
7023
  ] }, c)) })
6939
7024
  });
6940
- }, id = ({ 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 }) => {
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 }) => {
6941
7026
  let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: b = [] } = d, x = Fs(b, _ == null ? [] : _);
6942
- return /* @__PURE__ */ v(td, {
7027
+ return /* @__PURE__ */ v(ad, {
6943
7028
  rowCheckboxes: u,
6944
7029
  rows: b,
6945
7030
  children: /* @__PURE__ */ y("div", {
6946
- className: qu.treeTable,
7031
+ className: Zu.treeTable,
6947
7032
  "data-testid": f,
6948
7033
  style: { width: g },
6949
- children: [!!_ && /* @__PURE__ */ v(rd, {
7034
+ children: [!!_ && /* @__PURE__ */ v(sd, {
6950
7035
  columnAlignment: m,
6951
7036
  columnWidths: h,
6952
7037
  draggable: r,
6953
7038
  hasRowActions: x,
6954
7039
  headers: _
6955
- }), /* @__PURE__ */ v(Ku, {
7040
+ }), /* @__PURE__ */ v(Xu, {
6956
7041
  allowParentReassignment: e,
6957
7042
  autoOpenActiveItems: t,
6958
7043
  canDrop: n,
@@ -6968,7 +7053,7 @@ var Cr = /* @__PURE__ */ function(e) {
6968
7053
  onItemToggle: s,
6969
7054
  onListReorder: c,
6970
7055
  placeholderIndent: "var(--size)",
6971
- render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(nd, {
7056
+ render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(od, {
6972
7057
  node: e,
6973
7058
  columnAlignment: m,
6974
7059
  columnWidths: h,
@@ -6985,38 +7070,38 @@ var Cr = /* @__PURE__ */ function(e) {
6985
7070
  })]
6986
7071
  })
6987
7072
  });
6988
- }, ad = () => {
7073
+ }, ld = () => {
6989
7074
  let e = p(null);
6990
7075
  return u(() => {
6991
7076
  e.current && (e.current(), e.current = null);
6992
7077
  }), (t) => {
6993
7078
  e.current = t;
6994
7079
  };
6995
- }, od = (e) => {
7080
+ }, ud = (e) => {
6996
7081
  let t = p(void 0);
6997
7082
  return c(() => {
6998
7083
  t.current = e;
6999
7084
  }, [e]), t.current;
7000
- }, sd = (e, t) => {
7085
+ }, dd = (e, t) => {
7001
7086
  let n = t == null ? void 0 : t[e];
7002
7087
  if (!n) {
7003
7088
  var r;
7004
7089
  return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Un(e)) == null ? "" : r;
7005
7090
  }
7006
7091
  return n;
7007
- }, cd = /* @__PURE__ */ function(e) {
7092
+ }, fd = /* @__PURE__ */ function(e) {
7008
7093
  return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
7009
- }({}), ld = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), ud = (e) => {
7094
+ }({}), pd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), md = (e) => {
7010
7095
  if (!e) return !1;
7011
7096
  let t = Dn(e);
7012
7097
  return !xn.includes(t);
7013
- }, dd = ({ value: e, unitkey: t, toUnit: n }) => {
7098
+ }, hd = ({ value: e, unitkey: t, toUnit: n }) => {
7014
7099
  var r;
7015
7100
  let i = bn[t];
7016
7101
  if (!i || i.length === 0 || !((r = Wn(e)) != null && r.valid) || !i.includes(n)) return !1;
7017
7102
  let a = Dn(String(e));
7018
7103
  return !(a && !i.includes(a));
7019
- }, fd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
7104
+ }, gd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
7020
7105
  var o;
7021
7106
  let s = Nn(e) ? kn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
7022
7107
  if (i || c) return {
@@ -7036,13 +7121,13 @@ var Cr = /* @__PURE__ */ function(e) {
7036
7121
  value: void 0,
7037
7122
  error: "Source unit is missing"
7038
7123
  };
7039
- if (ld(s)) return {
7124
+ if (pd(s)) return {
7040
7125
  value: void 0,
7041
7126
  error: "Value is invalid for conversion"
7042
7127
  };
7043
7128
  try {
7044
7129
  let e = Kn(s, l);
7045
- return dd({
7130
+ return hd({
7046
7131
  value: e,
7047
7132
  toUnit: n,
7048
7133
  unitkey: t
@@ -7059,13 +7144,13 @@ var Cr = /* @__PURE__ */ function(e) {
7059
7144
  error: "Conversion not possible"
7060
7145
  };
7061
7146
  }
7062
- }, pd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
7063
- let a = kn(e), o = ld(a);
7064
- return !dd({
7147
+ }, _d = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
7148
+ let a = kn(e), o = pd(a);
7149
+ return !hd({
7065
7150
  value: e,
7066
7151
  unitkey: n,
7067
7152
  toUnit: t
7068
- }) || ud(e) || o ? { value: a } : Nn(e) ? fd({
7153
+ }) || md(e) || o ? { value: a } : Nn(e) ? gd({
7069
7154
  value: e,
7070
7155
  unitkey: n,
7071
7156
  toUnit: t,
@@ -7073,25 +7158,25 @@ var Cr = /* @__PURE__ */ function(e) {
7073
7158
  doNotConvertValue: i,
7074
7159
  exactPrecision: !0
7075
7160
  }) : { value: e };
7076
- }, md = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", hd = (e = "") => xn == null ? void 0 : xn.includes(e), gd = (e, t) => {
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) => {
7077
7162
  let n = Dn(e || "");
7078
- return hd(t) && hd(n);
7079
- }, _d = n(null), vd = () => s(_d), yd = !1, bd = (e) => {
7080
- yd || (yd = !0, _d = e);
7081
- }, xd = (e) => jn(e) ? e : Fn(e), Sd = {
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 = {
7082
7167
  predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
7083
7168
  inputWrapper: "_inputWrapper_ye9w9_4"
7084
- }, Cd = ({ 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 = () => ({
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 = () => ({
7085
7170
  name: "",
7086
7171
  error: null
7087
7172
  }), 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 }) => {
7088
- let ne = vd(), re = ad();
7173
+ let ne = Sd(), re = ld();
7089
7174
  typeof l == "number" && (l = `${l}`);
7090
- let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => sd(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
7175
+ let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => dd(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
7091
7176
  u,
7092
7177
  C,
7093
7178
  ne == null ? void 0 : ne.unitTemplate
7094
- ]), oe = gd(l, R), se = f || R || ae, ce = od(se), { value: le } = pd({
7179
+ ]), oe = bd(l, R), se = f || R || ae, ce = ud(se), { value: le } = _d({
7095
7180
  value: l,
7096
7181
  toUnit: se,
7097
7182
  unitkey: u,
@@ -7103,10 +7188,10 @@ var Cr = /* @__PURE__ */ function(e) {
7103
7188
  } : {
7104
7189
  value: le,
7105
7190
  unit: se
7106
- }), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ? cd.PREDEFINED : cd.CUSTOM), me = !!(j || n), he = E && E.find((e) => {
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) => {
7107
7192
  if (!(e != null && e.value)) return;
7108
7193
  if (k) return k === e.valueKey;
7109
- let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = fd({
7194
+ let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = gd({
7110
7195
  value: String(l),
7111
7196
  unitkey: u,
7112
7197
  toUnit: t
@@ -7115,7 +7200,7 @@ var Cr = /* @__PURE__ */ function(e) {
7115
7200
  }), ge = () => {
7116
7201
  var e;
7117
7202
  let t = (e = l) == null ? "" : e, n = z.unit;
7118
- if (!dd({
7203
+ if (!hd({
7119
7204
  value: t,
7120
7205
  unitkey: u,
7121
7206
  toUnit: n
@@ -7129,7 +7214,7 @@ var Cr = /* @__PURE__ */ function(e) {
7129
7214
  return null;
7130
7215
  }
7131
7216
  }, _e = (t) => {
7132
- let n = md(e), r = t.target, { value: i, selectionStart: a } = r, o = Kn(i, (z == null ? void 0 : z.unit) || "");
7217
+ let n = vd(e), r = t.target, { value: i, selectionStart: a } = r, o = Kn(i, (z == null ? void 0 : z.unit) || "");
7133
7218
  h({ target: {
7134
7219
  value: N ? Kn(wn(o, ae), ae) : o,
7135
7220
  name: n
@@ -7151,7 +7236,7 @@ var Cr = /* @__PURE__ */ function(e) {
7151
7236
  if (se) {
7152
7237
  let e, t = "";
7153
7238
  if (ce !== se) {
7154
- let { value: n } = pd({
7239
+ let { value: n } = _d({
7155
7240
  value: l,
7156
7241
  toUnit: se,
7157
7242
  unitkey: u,
@@ -7160,7 +7245,7 @@ var Cr = /* @__PURE__ */ function(e) {
7160
7245
  });
7161
7246
  e = n, t = se;
7162
7247
  } else if (Kn(z.value, z.unit) !== l) {
7163
- let { value: n } = pd({
7248
+ let { value: n } = _d({
7164
7249
  value: l,
7165
7250
  toUnit: z.unit,
7166
7251
  unitkey: u,
@@ -7172,7 +7257,7 @@ var Cr = /* @__PURE__ */ function(e) {
7172
7257
  e !== void 0 && ue({
7173
7258
  value: e,
7174
7259
  unit: t
7175
- }), pe(E && he && O ? cd.PREDEFINED : cd.CUSTOM);
7260
+ }), pe(E && he && O ? fd.PREDEFINED : fd.CUSTOM);
7176
7261
  }
7177
7262
  }, [
7178
7263
  se,
@@ -7180,14 +7265,14 @@ var Cr = /* @__PURE__ */ function(e) {
7180
7265
  i,
7181
7266
  O
7182
7267
  ]);
7183
- let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = md(e), Ce, we = (t) => {
7268
+ let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = vd(e), Ce, we = (t) => {
7184
7269
  let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Nn(r) ? zn(r) : [r], o = Gn(r);
7185
- if (dd({
7270
+ if (hd({
7186
7271
  value: r,
7187
7272
  unitkey: u,
7188
7273
  toUnit: a
7189
7274
  })) {
7190
- let { value: e = "" } = pd({
7275
+ let { value: e = "" } = _d({
7191
7276
  value: r,
7192
7277
  toUnit: R,
7193
7278
  unitkey: u,
@@ -7200,7 +7285,7 @@ var Cr = /* @__PURE__ */ function(e) {
7200
7285
  type: xi.OPTION,
7201
7286
  inline: !0,
7202
7287
  onClick: () => {
7203
- Wn(i).valid && !n && (pe(cd.PREDEFINED), h({ target: {
7288
+ Wn(i).valid && !n && (pe(fd.PREDEFINED), h({ target: {
7204
7289
  value: r,
7205
7290
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
7206
7291
  predefinedSelected: !0,
@@ -7212,27 +7297,27 @@ var Cr = /* @__PURE__ */ function(e) {
7212
7297
  height: "0"
7213
7298
  })] }),
7214
7299
  description: o,
7215
- selected: he === t && fe === cd.PREDEFINED
7300
+ selected: he === t && fe === fd.PREDEFINED
7216
7301
  };
7217
7302
  };
7218
7303
  if (Ce = [{
7219
7304
  type: xi.OPTION,
7220
7305
  inline: !0,
7221
7306
  onClick: () => {
7222
- fe !== cd.CUSTOM && !n && h({ target: {
7307
+ fe !== fd.CUSTOM && !n && h({ target: {
7223
7308
  value: Kn(z.value, z.unit),
7224
7309
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
7225
7310
  } });
7226
7311
  },
7227
7312
  label: "Custom",
7228
- selected: fe === cd.CUSTOM
7313
+ selected: fe === fd.CUSTOM
7229
7314
  }], E != null && E.length) {
7230
7315
  let e = E.map(we);
7231
7316
  Ce = [...Ce, ...e];
7232
7317
  }
7233
7318
  let Te = (e) => {
7234
7319
  if (Nn(e)) {
7235
- let t = Dn(e), { value: n } = pd({
7320
+ let t = Dn(e), { value: n } = _d({
7236
7321
  value: e,
7237
7322
  toUnit: z.unit,
7238
7323
  unitkey: u,
@@ -7244,7 +7329,7 @@ var Cr = /* @__PURE__ */ function(e) {
7244
7329
  return e;
7245
7330
  }, Ee = !E && (!L || L === B.FIRST) ? B.FIRST : B.MIDDLE, De = !L || L === B.LAST ? B.LAST : B.MIDDLE;
7246
7331
  return /* @__PURE__ */ v("div", {
7247
- className: fe === cd.PREDEFINED ? g(Sd.predefinedMenuActive) : "",
7332
+ className: fe === fd.PREDEFINED ? g(Ed.predefinedMenuActive) : "",
7248
7333
  children: /* @__PURE__ */ y(Ma, {
7249
7334
  small: o,
7250
7335
  width: s,
@@ -7259,17 +7344,17 @@ var Cr = /* @__PURE__ */ function(e) {
7259
7344
  trigger: "Component",
7260
7345
  component: /* @__PURE__ */ v(K, {
7261
7346
  groupOrder: "first",
7262
- active: fe === cd.PREDEFINED,
7263
- icon: fe === cd.PREDEFINED ? "link" : "unlink",
7347
+ active: fe === fd.PREDEFINED,
7348
+ icon: fe === fd.PREDEFINED ? "link" : "unlink",
7264
7349
  small: o
7265
7350
  }),
7266
7351
  small: o,
7267
7352
  sections: Ce
7268
7353
  },
7269
- tooltip: fe === cd.PREDEFINED ? he == null ? void 0 : he.label : ""
7354
+ tooltip: fe === fd.PREDEFINED ? he == null ? void 0 : he.label : ""
7270
7355
  }),
7271
7356
  /* @__PURE__ */ v("div", {
7272
- className: Sd.inputWrapper,
7357
+ className: Ed.inputWrapper,
7273
7358
  children: /* @__PURE__ */ v(Gs, {
7274
7359
  name: Se,
7275
7360
  testId: w,
@@ -7311,7 +7396,7 @@ var Cr = /* @__PURE__ */ function(e) {
7311
7396
  let r = n || t || "", i = Mn(e) ? e : "";
7312
7397
  return {
7313
7398
  type: "Option",
7314
- label: P ? xd(i) : i,
7399
+ label: P ? Td(i) : i,
7315
7400
  inline: !0,
7316
7401
  onClick: (n) => {
7317
7402
  n.stopPropagation(), ve(e, t);
@@ -7326,10 +7411,10 @@ var Cr = /* @__PURE__ */ function(e) {
7326
7411
  ]
7327
7412
  })
7328
7413
  });
7329
- }, wd = Object.freeze({
7414
+ }, Od = Object.freeze({
7330
7415
  Translations: "translations",
7331
7416
  LanguageKey: "languageKey"
7332
- }), Td = {
7417
+ }), kd = {
7333
7418
  unified: "Unified",
7334
7419
  split: "Split",
7335
7420
  changesTooLarge: "Changes are too large to be shown",
@@ -7351,29 +7436,29 @@ var Cr = /* @__PURE__ */ function(e) {
7351
7436
  pluralChanges: "changes",
7352
7437
  showAll: "Show all",
7353
7438
  unknown: "Unknown"
7354
- }, Ed = (e) => Object.keys(Td).reduce((t, n) => ({
7439
+ }, Ad = (e) => Object.keys(kd).reduce((t, n) => ({
7355
7440
  ...t,
7356
- [n]: (e == null ? void 0 : e[n]) || (Td == null ? void 0 : Td[n])
7357
- }), {}), Dd = {
7358
- [wd.Translations]: Ed(),
7359
- [wd.LanguageKey]: "en"
7360
- }, Od = (e) => e ? Dd[e] : Dd, kd = (e, t) => {
7361
- Dd[e] = t;
7362
- }, Ad = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
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 }) => {
7363
7448
  var a;
7364
- let { unitTemplate: o = null } = (a = vd()) == null ? {} : a;
7365
- return e[n] = r == null ? sd(n, o) : r, t[n] = i, {
7449
+ let { unitTemplate: o = null } = (a = Sd()) == null ? {} : a;
7450
+ return e[n] = r == null ? dd(n, o) : r, t[n] = i, {
7366
7451
  preferredUnits: e,
7367
7452
  storageUnits: t
7368
7453
  };
7369
7454
  }, {
7370
7455
  preferredUnits: {},
7371
7456
  storageUnits: {}
7372
- }), jd = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
7457
+ }), Fd = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
7373
7458
  ...e,
7374
7459
  cells: e.cells.map((e, s) => {
7375
7460
  if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
7376
- 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 } = fd({
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({
7377
7462
  value: Hs(l),
7378
7463
  unitkey: c,
7379
7464
  toUnit: f,
@@ -7387,7 +7472,7 @@ var Cr = /* @__PURE__ */ function(e) {
7387
7472
  roundDisplayValue: d,
7388
7473
  selectOnFocus: !0,
7389
7474
  onChange: (n) => {
7390
- let { value: r } = n.target, a = i ? p : f, { value: o = r } = fd({
7475
+ let { value: r } = n.target, a = i ? p : f, { value: o = r } = gd({
7391
7476
  value: String(r),
7392
7477
  unitkey: c,
7393
7478
  toUnit: a,
@@ -7411,17 +7496,17 @@ var Cr = /* @__PURE__ */ function(e) {
7411
7496
  }
7412
7497
  return e;
7413
7498
  })
7414
- }), Md = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7415
- let { translations: i } = Od();
7499
+ }), Id = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7500
+ let { translations: i } = Md();
7416
7501
  return e ? e.map((e) => ({
7417
7502
  ...e,
7418
7503
  cells: e.cells.map((e) => {
7419
- if (e.type === fc.AUTO_UNIT) {
7504
+ if (e.type === pc.AUTO_UNIT) {
7420
7505
  var a;
7421
7506
  let { testId: o, unitKey: s, disabled: c = !1, error: l } = e, u = n[s];
7422
7507
  return {
7423
7508
  value: u && t[s],
7424
- type: fc.SELECT,
7509
+ type: pc.SELECT,
7425
7510
  error: !u && (i == null ? void 0 : i.unitIsMissing) || l,
7426
7511
  disabled: c || !u,
7427
7512
  searchable: !1,
@@ -7441,8 +7526,8 @@ var Cr = /* @__PURE__ */ function(e) {
7441
7526
  return e;
7442
7527
  })
7443
7528
  })) : [];
7444
- }, Nd = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: s, beforeRenderRow: l }) => {
7445
- let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Ad(t), h = od(p), [g, _] = m(p), y = ({ unitKey: e, value: n }) => {
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 }) => {
7446
7531
  _({
7447
7532
  ...g,
7448
7533
  [e]: n
@@ -7453,7 +7538,7 @@ var Cr = /* @__PURE__ */ function(e) {
7453
7538
  newUnit: n,
7454
7539
  unitKey: e
7455
7540
  });
7456
- }, b = o(({ row: e, rowIndex: t }) => jd({
7541
+ }, b = o(({ row: e, rowIndex: t }) => Fd({
7457
7542
  row: l ? l({
7458
7543
  row: e,
7459
7544
  rowIndex: t
@@ -7479,10 +7564,10 @@ var Cr = /* @__PURE__ */ function(e) {
7479
7564
  value: n
7480
7565
  });
7481
7566
  });
7482
- }, [t]), /* @__PURE__ */ v(yc, {
7567
+ }, [t]), /* @__PURE__ */ v(Cc, {
7483
7568
  table: {
7484
7569
  ...d,
7485
- headers: Md({
7570
+ headers: Id({
7486
7571
  headers: e.headers,
7487
7572
  selectedUnits: g,
7488
7573
  storageUnits: f,
@@ -7493,8 +7578,8 @@ var Cr = /* @__PURE__ */ function(e) {
7493
7578
  canListReorder: s,
7494
7579
  beforeRenderRow: b
7495
7580
  });
7496
- }, Pd = { settingField: "_settingField_1x02n_1" }, Fd = ({ 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 }) => {
7497
- let { translations: d } = Od(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ y(e.Fragment, { children: [t, /* @__PURE__ */ v("br", {})] }, n)), p = [
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 = [
7498
7583
  ...r ? [] : [{
7499
7584
  label: d == null ? void 0 : d.allUsers,
7500
7585
  value: !1
@@ -7509,14 +7594,14 @@ var Cr = /* @__PURE__ */ function(e) {
7509
7594
  }] : []
7510
7595
  ], m = a !== void 0 && o !== void 0 && !an(a, o);
7511
7596
  return /* @__PURE__ */ y("div", {
7512
- className: Pd.settingField,
7597
+ className: Rd.settingField,
7513
7598
  "data-testid": u,
7514
- children: [/* @__PURE__ */ y(Nl, {
7599
+ children: [/* @__PURE__ */ y(Ll, {
7515
7600
  justifyContent: "space-between",
7516
7601
  wrap: !1,
7517
7602
  children: [i, !s && /* @__PURE__ */ v("div", {
7518
7603
  style: { flexShrink: 0 },
7519
- children: /* @__PURE__ */ y(Nl, {
7604
+ children: /* @__PURE__ */ y(Ll, {
7520
7605
  gap: "8px",
7521
7606
  alignItems: "center",
7522
7607
  children: [m && /* @__PURE__ */ v(si, {
@@ -7541,19 +7626,19 @@ var Cr = /* @__PURE__ */ function(e) {
7541
7626
  children: f(t)
7542
7627
  })]
7543
7628
  });
7544
- }, Id = (e, t) => {
7629
+ }, Bd = (e, t) => {
7545
7630
  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;
7546
7631
  return {
7547
7632
  added: Math.max(0, i),
7548
7633
  removed: Math.max(0, a)
7549
7634
  };
7550
- }, Ld = "split", Rd = "unified", zd = ({ oldJson: e, newJson: t, viewType: n = Ld }) => {
7635
+ }, Vd = "split", Hd = "unified", Ud = ({ oldJson: e, newJson: t, viewType: n = Vd }) => {
7551
7636
  var r, i;
7552
- let { translations: a } = Od(), [o, s] = m(n), l = [{
7553
- value: Ld,
7637
+ let { translations: a } = Md(), [o, s] = m(n), l = [{
7638
+ value: Vd,
7554
7639
  label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
7555
7640
  }, {
7556
- value: Rd,
7641
+ value: Hd,
7557
7642
  label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
7558
7643
  }];
7559
7644
  c(() => {
@@ -7561,10 +7646,10 @@ var Cr = /* @__PURE__ */ function(e) {
7561
7646
  }, [n]);
7562
7647
  let u = ({ target: { value: e } }) => {
7563
7648
  s(e);
7564
- }, { added: d, removed: f } = Id(e, t), p = d + f > 3500;
7649
+ }, { added: d, removed: f } = Bd(e, t), p = d + f > 3500;
7565
7650
  return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(na, {
7566
7651
  bordered: !0,
7567
- heading: /* @__PURE__ */ y(Nl, {
7652
+ heading: /* @__PURE__ */ y(Ll, {
7568
7653
  gap: !0,
7569
7654
  children: [/* @__PURE__ */ v(ya, { children: /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y(ha, {
7570
7655
  success: !0,
@@ -7576,7 +7661,7 @@ var Cr = /* @__PURE__ */ function(e) {
7576
7661
  }), /* @__PURE__ */ y(ha, {
7577
7662
  error: !0,
7578
7663
  children: ["-", f]
7579
- })] }) }), !p && /* @__PURE__ */ v(du, {
7664
+ })] }) }), !p && /* @__PURE__ */ v(hu, {
7580
7665
  name: "viewType",
7581
7666
  options: l,
7582
7667
  value: o,
@@ -7594,14 +7679,14 @@ var Cr = /* @__PURE__ */ function(e) {
7594
7679
  }) : /* @__PURE__ */ v(xr, {
7595
7680
  oldValue: e,
7596
7681
  newValue: t,
7597
- splitView: o === Ld,
7682
+ splitView: o === Vd,
7598
7683
  compareMethod: Sr.WORDS
7599
7684
  })
7600
7685
  }) });
7601
7686
  };
7602
7687
  //#endregion
7603
7688
  //#region src/helpers/date.ts
7604
- function Bd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
7689
+ function Wd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
7605
7690
  return e ? new Date(e).toLocaleString(a, {
7606
7691
  year: "numeric",
7607
7692
  month: "short",
@@ -7615,28 +7700,28 @@ function Bd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
7615
7700
  }
7616
7701
  //#endregion
7617
7702
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
7618
- function Vd(e) {
7703
+ function Gd(e) {
7619
7704
  var t;
7620
7705
  let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
7621
7706
  if (!n) throw Error("Invalid RegExp");
7622
7707
  return new RegExp((t = n[1]) == null ? "" : t, n[2]);
7623
7708
  }
7624
- function Hd(e) {
7709
+ function Kd(e) {
7625
7710
  if (typeof e != "object") return e;
7626
7711
  if (e === null) return null;
7627
- if (Array.isArray(e)) return e.map(Hd);
7712
+ if (Array.isArray(e)) return e.map(Kd);
7628
7713
  if (e instanceof Date) return new Date(e.getTime());
7629
- if (e instanceof RegExp) return Vd(e);
7714
+ if (e instanceof RegExp) return Gd(e);
7630
7715
  let t = {};
7631
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Hd(e[n]));
7716
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Kd(e[n]));
7632
7717
  return t;
7633
7718
  }
7634
7719
  //#endregion
7635
7720
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
7636
- function Ud(e, t) {
7721
+ function qd(e, t) {
7637
7722
  if (e.length === 0) throw Error(t || "Expected a non-empty array");
7638
7723
  }
7639
- var Wd = (e) => e[e.length - 1], Gd = class {
7724
+ var Jd = (e) => e[e.length - 1], Yd = class {
7640
7725
  setResult(e) {
7641
7726
  return this.result = e, this.hasResult = !0, this;
7642
7727
  }
@@ -7644,16 +7729,16 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7644
7729
  return this.exiting = !0, this;
7645
7730
  }
7646
7731
  push(e, t) {
7647
- return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Ud(this.children), Wd(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
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;
7648
7733
  }
7649
- }, Kd = class extends Gd {
7734
+ }, Xd = class extends Yd {
7650
7735
  constructor(e, t) {
7651
7736
  super(), this.left = e, this.right = t, this.pipe = "diff";
7652
7737
  }
7653
7738
  prepareDeltaResult(e) {
7654
7739
  var t, n, r, i;
7655
7740
  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)) {
7656
- let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Hd;
7741
+ let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Kd;
7657
7742
  typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
7658
7743
  }
7659
7744
  return e;
@@ -7661,15 +7746,15 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7661
7746
  setResult(e) {
7662
7747
  return this.prepareDeltaResult(e), super.setResult(e);
7663
7748
  }
7664
- }, qd = class extends Gd {
7749
+ }, Zd = class extends Yd {
7665
7750
  constructor(e, t) {
7666
7751
  super(), this.left = e, this.delta = t, this.pipe = "patch";
7667
7752
  }
7668
- }, Jd = class extends Gd {
7753
+ }, Qd = class extends Yd {
7669
7754
  constructor(e) {
7670
7755
  super(), this.delta = e, this.pipe = "reverse";
7671
7756
  }
7672
- }, Yd = class {
7757
+ }, $d = class {
7673
7758
  constructor(e) {
7674
7759
  this.name = e, this.filters = [];
7675
7760
  }
@@ -7733,7 +7818,7 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7733
7818
  }
7734
7819
  }), this);
7735
7820
  }
7736
- }, Xd = class {
7821
+ }, ef = class {
7737
7822
  constructor(e) {
7738
7823
  this.selfOptions = e || {}, this.pipes = {};
7739
7824
  }
@@ -7760,7 +7845,7 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7760
7845
  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);
7761
7846
  return n.hasResult ? n.result : void 0;
7762
7847
  }
7763
- }, Zd = (e, t, n, r) => e[n] === t[r], Qd = (e, t, n, r) => {
7848
+ }, tf = (e, t, n, r) => e[n] === t[r], nf = (e, t, n, r) => {
7764
7849
  var i, a, o;
7765
7850
  let s = e.length, c = t.length, l, u, d = Array(s + 1);
7766
7851
  for (l = 0; l < s + 1; l++) {
@@ -7776,7 +7861,7 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7776
7861
  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);
7777
7862
  }
7778
7863
  return d;
7779
- }, $d = (e, t, n, r) => {
7864
+ }, rf = (e, t, n, r) => {
7780
7865
  let i = t.length, a = n.length, o = {
7781
7866
  sequence: [],
7782
7867
  indices1: [],
@@ -7798,11 +7883,11 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7798
7883
  }
7799
7884
  }
7800
7885
  return o;
7801
- }, ef = { get: (e, t, n, r) => {
7886
+ }, af = { get: (e, t, n, r) => {
7802
7887
  let i = r || {};
7803
- return $d(Qd(e, t, n || Zd, i), e, t, i);
7804
- } }, tf = 3;
7805
- function nf(e, t, n, r) {
7888
+ return rf(nf(e, t, n || tf, i), e, t, i);
7889
+ } }, of = 3;
7890
+ function sf(e, t, n, r) {
7806
7891
  for (let i = 0; i < n; i++) {
7807
7892
  let n = e[i];
7808
7893
  for (let e = 0; e < r; e++) {
@@ -7812,7 +7897,7 @@ function nf(e, t, n, r) {
7812
7897
  }
7813
7898
  return !1;
7814
7899
  }
7815
- function rf(e, t, n, r, i) {
7900
+ function cf(e, t, n, r, i) {
7816
7901
  let a = e[n], o = t[r];
7817
7902
  if (a === o) return !0;
7818
7903
  if (typeof a != "object" || typeof o != "object") return !1;
@@ -7825,15 +7910,15 @@ function rf(e, t, n, r, i) {
7825
7910
  let l = i.hashCache2[r];
7826
7911
  return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
7827
7912
  }
7828
- var af = function(e) {
7913
+ var lf = function(e) {
7829
7914
  var t, n, r, i, a;
7830
7915
  if (!e.leftIsArray) return;
7831
7916
  let o = {
7832
7917
  objectHash: (t = e.options) == null ? void 0 : t.objectHash,
7833
7918
  matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
7834
7919
  }, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
7835
- for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !nf(f, p, m, h)); s < m && s < h && rf(f, p, s, s, o);) l = s, g = new Kd(f[l], p[l]), e.push(g, l), s++;
7836
- for (; c + s < m && c + s < h && rf(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Kd(f[u], p[d]), e.push(g, d), c++;
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++;
7837
7922
  let _;
7838
7923
  if (s + c === m) {
7839
7924
  if (m === h) {
@@ -7857,7 +7942,7 @@ var af = function(e) {
7857
7942
  return;
7858
7943
  }
7859
7944
  o.hashCache1 = void 0, o.hashCache2 = void 0;
7860
- let v = f.slice(s, m - c), y = p.slice(s, h - c), b = ef.get(v, y, rf, o), x = [];
7945
+ let v = f.slice(s, m - c), y = p.slice(s, h - c), b = af.get(v, y, cf, o), x = [];
7861
7946
  for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
7862
7947
  let t = `_${l}`;
7863
7948
  _[t] = [
@@ -7878,8 +7963,8 @@ var af = function(e) {
7878
7963
  if (S && w > 0) for (let n = 0; n < w; n++) {
7879
7964
  u = x[n];
7880
7965
  let r = u === void 0 ? void 0 : _[`_${u}`];
7881
- if (u !== void 0 && r && rf(v, y, u - s, l - s, o)) {
7882
- r.splice(1, 2, l, tf), r.splice(1, 2, l, tf), C || (r[0] = ""), d = l, g = new Kd(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
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;
7883
7968
  break;
7884
7969
  }
7885
7970
  }
@@ -7887,20 +7972,20 @@ var af = function(e) {
7887
7972
  } else {
7888
7973
  if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
7889
7974
  if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
7890
- d = b.indices2[t] + s, g = new Kd(f[u], p[d]), e.push(g, d);
7975
+ d = b.indices2[t] + s, g = new Xd(f[u], p[d]), e.push(g, d);
7891
7976
  }
7892
7977
  }
7893
7978
  e.setResult(_).exit();
7894
7979
  };
7895
- af.filterName = "arrays";
7896
- var of = {
7980
+ lf.filterName = "arrays";
7981
+ var uf = {
7897
7982
  numerically(e, t) {
7898
7983
  return e - t;
7899
7984
  },
7900
7985
  numericallyBy(e) {
7901
7986
  return (t, n) => t[e] - n[e];
7902
7987
  }
7903
- }, sf = function(e) {
7988
+ }, df = function(e) {
7904
7989
  var t;
7905
7990
  if (!e.nested) return;
7906
7991
  let n = e.delta;
@@ -7908,7 +7993,7 @@ var of = {
7908
7993
  let r, i, a = n, o = e.left, s = [], c = [], l = [];
7909
7994
  for (r in a) if (r !== "_t") if (r[0] === "_") {
7910
7995
  let e = r;
7911
- if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === tf)) s.push(Number.parseInt(r.slice(1), 10));
7996
+ if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === of)) s.push(Number.parseInt(r.slice(1), 10));
7912
7997
  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]}`);
7913
7998
  } else {
7914
7999
  let e = r;
@@ -7920,15 +8005,15 @@ var of = {
7920
8005
  delta: a[e]
7921
8006
  });
7922
8007
  }
7923
- for (s = s.sort(of.numerically), r = s.length - 1; r >= 0; r--) {
8008
+ for (s = s.sort(uf.numerically), r = s.length - 1; r >= 0; r--) {
7924
8009
  if (i = s[r], i === void 0) continue;
7925
8010
  let e = a[`_${i}`], t = o.splice(i, 1)[0];
7926
- (e == null ? void 0 : e[2]) === tf && c.push({
8011
+ (e == null ? void 0 : e[2]) === of && c.push({
7927
8012
  index: e[1],
7928
8013
  value: t
7929
8014
  });
7930
8015
  }
7931
- c = c.sort(of.numericallyBy("index"));
8016
+ c = c.sort(uf.numericallyBy("index"));
7932
8017
  let u = c.length;
7933
8018
  for (r = 0; r < u; r++) {
7934
8019
  let e = c[r];
@@ -7938,7 +8023,7 @@ var of = {
7938
8023
  if (d > 0) for (r = 0; r < d; r++) {
7939
8024
  let t = l[r];
7940
8025
  if (t === void 0) continue;
7941
- let n = new qd(o[t.index], t.delta);
8026
+ let n = new Zd(o[t.index], t.delta);
7942
8027
  e.push(n, t.index);
7943
8028
  }
7944
8029
  if (!e.children) {
@@ -7947,8 +8032,8 @@ var of = {
7947
8032
  }
7948
8033
  e.exit();
7949
8034
  };
7950
- sf.filterName = "arrays";
7951
- var cf = function(e) {
8035
+ df.filterName = "arrays";
8036
+ var ff = function(e) {
7952
8037
  if (!e || !e.children || e.delta._t !== "a") return;
7953
8038
  let t = e.left, n = e.children.length;
7954
8039
  for (let r = 0; r < n; r++) {
@@ -7959,16 +8044,16 @@ var cf = function(e) {
7959
8044
  }
7960
8045
  e.setResult(t).exit();
7961
8046
  };
7962
- cf.filterName = "arraysCollectChildren";
7963
- var lf = function(e) {
8047
+ ff.filterName = "arraysCollectChildren";
8048
+ var pf = function(e) {
7964
8049
  if (!e.nested) {
7965
8050
  let t = e.delta;
7966
- if (t[2] === tf) {
8051
+ if (t[2] === of) {
7967
8052
  let n = t;
7968
8053
  e.newName = `_${n[1]}`, e.setResult([
7969
8054
  n[0],
7970
8055
  Number.parseInt(e.childName.substring(1), 10),
7971
- tf
8056
+ of
7972
8057
  ]).exit();
7973
8058
  }
7974
8059
  return;
@@ -7978,26 +8063,26 @@ var lf = function(e) {
7978
8063
  let n = t;
7979
8064
  for (let t in n) {
7980
8065
  if (t === "_t") continue;
7981
- let r = new Jd(n[t]);
8066
+ let r = new Qd(n[t]);
7982
8067
  e.push(r, t);
7983
8068
  }
7984
8069
  e.exit();
7985
8070
  };
7986
- lf.filterName = "arrays";
7987
- var uf = (e, t, n) => {
8071
+ pf.filterName = "arrays";
8072
+ var mf = (e, t, n) => {
7988
8073
  if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
7989
8074
  if (Array.isArray(n) && n[2] === 0) return `_${t}`;
7990
8075
  let r = +t;
7991
8076
  for (let n in e) {
7992
8077
  let i = e[n];
7993
- if (Array.isArray(i)) if (i[2] === tf) {
8078
+ if (Array.isArray(i)) if (i[2] === of) {
7994
8079
  let e = Number.parseInt(n.substring(1), 10), a = i[1];
7995
8080
  if (a === +t) return e;
7996
8081
  e <= r && a > r ? r++ : e >= r && a < r && r--;
7997
8082
  } else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
7998
8083
  }
7999
8084
  return r;
8000
- }, df = (e) => {
8085
+ }, hf = (e) => {
8001
8086
  if (!e || !e.children) return;
8002
8087
  let t = e.delta;
8003
8088
  if (t._t !== "a") return;
@@ -8008,22 +8093,22 @@ var uf = (e, t, n) => {
8008
8093
  let a = r.newName;
8009
8094
  if (a === void 0) {
8010
8095
  if (r.childName === void 0) throw Error("child.childName is undefined");
8011
- a = uf(n, r.childName, r.result);
8096
+ a = mf(n, r.childName, r.result);
8012
8097
  }
8013
8098
  i[a] !== r.result && (i[a] = r.result);
8014
8099
  }
8015
8100
  e.setResult(i).exit();
8016
8101
  };
8017
- df.filterName = "arraysCollectChildren";
8102
+ hf.filterName = "arraysCollectChildren";
8018
8103
  //#endregion
8019
8104
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
8020
- var ff = function(e) {
8105
+ var gf = function(e) {
8021
8106
  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();
8022
8107
  };
8023
- ff.filterName = "dates";
8108
+ gf.filterName = "dates";
8024
8109
  //#endregion
8025
8110
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
8026
- var pf = new Set(["__proto__"]), mf = (e) => {
8111
+ var _f = new Set(["__proto__"]), vf = (e) => {
8027
8112
  if (!e || !e.children) return;
8028
8113
  let t = e.children.length, n = e.result;
8029
8114
  for (let r = 0; r < t; r++) {
@@ -8035,18 +8120,18 @@ var pf = new Set(["__proto__"]), mf = (e) => {
8035
8120
  }
8036
8121
  n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
8037
8122
  };
8038
- mf.filterName = "collectChildren";
8039
- var hf = (e) => {
8123
+ vf.filterName = "collectChildren";
8124
+ var yf = (e) => {
8040
8125
  var t;
8041
8126
  if (e.leftIsArray || e.leftType !== "object") return;
8042
8127
  let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
8043
8128
  for (let t in n) {
8044
8129
  if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
8045
- let a = new Kd(n[t], r[t]);
8130
+ let a = new Xd(n[t], r[t]);
8046
8131
  e.push(a, t);
8047
8132
  }
8048
8133
  for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
8049
- let n = new Kd(void 0, r[t]);
8134
+ let n = new Xd(void 0, r[t]);
8050
8135
  e.push(n, t);
8051
8136
  }
8052
8137
  if (!e.children || e.children.length === 0) {
@@ -8055,15 +8140,15 @@ var hf = (e) => {
8055
8140
  }
8056
8141
  e.exit();
8057
8142
  };
8058
- hf.filterName = "objects";
8059
- var gf = function(e) {
8143
+ yf.filterName = "objects";
8144
+ var bf = function(e) {
8060
8145
  if (!e.nested) return;
8061
8146
  let t = e.delta;
8062
8147
  if (t._t) return;
8063
8148
  let n = t, r = !1;
8064
8149
  for (let t in n) {
8065
- if (pf.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8066
- let i = e.left, a = new qd(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
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]);
8067
8152
  e.push(a, t), r = !0;
8068
8153
  }
8069
8154
  if (!r) {
@@ -8072,8 +8157,8 @@ var gf = function(e) {
8072
8157
  }
8073
8158
  e.exit();
8074
8159
  };
8075
- gf.filterName = "objects";
8076
- var _f = function(e) {
8160
+ bf.filterName = "objects";
8161
+ var xf = function(e) {
8077
8162
  if (!e || !e.children || e.delta._t) return;
8078
8163
  if (e.left === null || typeof e.left != "object") {
8079
8164
  e.setResult(e.left).exit();
@@ -8084,17 +8169,17 @@ var _f = function(e) {
8084
8169
  let n = e.children[r];
8085
8170
  if (n === void 0) continue;
8086
8171
  let i = n.childName;
8087
- pf.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
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));
8088
8173
  }
8089
8174
  e.setResult(t).exit();
8090
8175
  };
8091
- _f.filterName = "collectChildren";
8092
- var vf = function(e) {
8176
+ xf.filterName = "collectChildren";
8177
+ var Sf = function(e) {
8093
8178
  if (!e.nested || e.delta._t) return;
8094
8179
  let t = e.delta, n = !1;
8095
8180
  for (let r in t) {
8096
- if (pf.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8097
- let i = new Jd(t[r]);
8181
+ if (_f.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8182
+ let i = new Qd(t[r]);
8098
8183
  e.push(i, r), n = !0;
8099
8184
  }
8100
8185
  if (!n) {
@@ -8103,25 +8188,25 @@ var vf = function(e) {
8103
8188
  }
8104
8189
  e.exit();
8105
8190
  };
8106
- vf.filterName = "objects";
8107
- var yf = (e) => {
8191
+ Sf.filterName = "objects";
8192
+ var Cf = (e) => {
8108
8193
  if (!e || !e.children || e.delta._t) return;
8109
8194
  let t = e.children.length, n = {};
8110
8195
  for (let r = 0; r < t; r++) {
8111
8196
  let t = e.children[r];
8112
8197
  if (t === void 0) continue;
8113
8198
  let i = t.childName;
8114
- pf.has(i) || n[i] !== t.result && (n[i] = t.result);
8199
+ _f.has(i) || n[i] !== t.result && (n[i] = t.result);
8115
8200
  }
8116
8201
  e.setResult(n).exit();
8117
8202
  };
8118
- yf.filterName = "collectChildren";
8203
+ Cf.filterName = "collectChildren";
8119
8204
  //#endregion
8120
8205
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
8121
- var bf = 2, xf = 60, Sf = null;
8122
- function Cf(e, t) {
8206
+ var wf = 2, Tf = 60, Ef = null;
8207
+ function Df(e, t) {
8123
8208
  var n;
8124
- if (!Sf) {
8209
+ if (!Ef) {
8125
8210
  let r;
8126
8211
  if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
8127
8212
  else {
@@ -8129,7 +8214,7 @@ function Cf(e, t) {
8129
8214
  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.");
8130
8215
  throw e.diff_match_patch_not_found = !0, e;
8131
8216
  }
8132
- Sf = {
8217
+ Ef = {
8133
8218
  diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
8134
8219
  patch: (e, t) => {
8135
8220
  let n = r.patch_apply(r.patch_fromText(t), e);
@@ -8141,17 +8226,17 @@ function Cf(e, t) {
8141
8226
  }
8142
8227
  };
8143
8228
  }
8144
- return Sf;
8229
+ return Ef;
8145
8230
  }
8146
- var wf = function(e) {
8231
+ var Of = function(e) {
8147
8232
  var t, n;
8148
8233
  if (e.leftType !== "string") return;
8149
- let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || xf;
8234
+ let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Tf;
8150
8235
  if (r.length < a || i.length < a) {
8151
8236
  e.setResult([r, i]).exit();
8152
8237
  return;
8153
8238
  }
8154
- let o = Cf(e.options);
8239
+ let o = Df(e.options);
8155
8240
  if (!o) {
8156
8241
  e.setResult([r, i]).exit();
8157
8242
  return;
@@ -8160,19 +8245,19 @@ var wf = function(e) {
8160
8245
  e.setResult([
8161
8246
  s(r, i),
8162
8247
  0,
8163
- bf
8248
+ wf
8164
8249
  ]).exit();
8165
8250
  };
8166
- wf.filterName = "texts";
8167
- var Tf = function(e) {
8251
+ Of.filterName = "texts";
8252
+ var kf = function(e) {
8168
8253
  if (e.nested) return;
8169
8254
  let t = e.delta;
8170
- if (t[2] !== bf) return;
8171
- let n = t, r = Cf(e.options, !0).patch;
8255
+ if (t[2] !== wf) return;
8256
+ let n = t, r = Df(e.options, !0).patch;
8172
8257
  e.setResult(r(e.left, n[0])).exit();
8173
8258
  };
8174
- Tf.filterName = "texts";
8175
- var Ef = (e) => {
8259
+ kf.filterName = "texts";
8260
+ var Af = (e) => {
8176
8261
  var t, n, r;
8177
8262
  let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
8178
8263
  for (let e = 0; e < a.length; e++) {
@@ -8193,21 +8278,21 @@ var Ef = (e) => {
8193
8278
  } else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
8194
8279
  }
8195
8280
  return a.join("\n");
8196
- }, Df = function(e) {
8281
+ }, jf = function(e) {
8197
8282
  if (e.nested) return;
8198
8283
  let t = e.delta;
8199
- if (t[2] !== bf) return;
8284
+ if (t[2] !== wf) return;
8200
8285
  let n = t;
8201
8286
  e.setResult([
8202
- Ef(n[0]),
8287
+ Af(n[0]),
8203
8288
  0,
8204
- bf
8289
+ wf
8205
8290
  ]).exit();
8206
8291
  };
8207
- Df.filterName = "texts";
8292
+ jf.filterName = "texts";
8208
8293
  //#endregion
8209
8294
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
8210
- var Of = function(e) {
8295
+ var Mf = function(e) {
8211
8296
  if (e.left === e.right) {
8212
8297
  e.setResult(void 0).exit();
8213
8298
  return;
@@ -8240,8 +8325,8 @@ var Of = function(e) {
8240
8325
  }
8241
8326
  e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
8242
8327
  };
8243
- Of.filterName = "trivial";
8244
- var kf = function(e) {
8328
+ Mf.filterName = "trivial";
8329
+ var Nf = function(e) {
8245
8330
  if (e.delta === void 0) {
8246
8331
  e.setResult(e.left).exit();
8247
8332
  return;
@@ -8265,8 +8350,8 @@ var kf = function(e) {
8265
8350
  }
8266
8351
  t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
8267
8352
  };
8268
- kf.filterName = "trivial";
8269
- var Af = function(e) {
8353
+ Nf.filterName = "trivial";
8354
+ var Pf = function(e) {
8270
8355
  if (e.delta === void 0) {
8271
8356
  e.setResult(e.delta).exit();
8272
8357
  return;
@@ -8287,36 +8372,36 @@ var Af = function(e) {
8287
8372
  }
8288
8373
  t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
8289
8374
  };
8290
- Af.filterName = "trivial";
8375
+ Pf.filterName = "trivial";
8291
8376
  //#endregion
8292
8377
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
8293
- var jf = class {
8378
+ var Ff = class {
8294
8379
  constructor(e) {
8295
- this.processor = new Xd(e), this.processor.pipe(new Yd("diff").append(mf, Of, ff, wf, hf, af).shouldHaveResult()), this.processor.pipe(new Yd("patch").append(_f, cf, kf, Tf, gf, sf).shouldHaveResult()), this.processor.pipe(new Yd("reverse").append(yf, df, Af, Df, vf, lf).shouldHaveResult());
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());
8296
8381
  }
8297
8382
  options(e) {
8298
8383
  return this.processor.options(e);
8299
8384
  }
8300
8385
  diff(e, t) {
8301
- return this.processor.process(new Kd(e, t));
8386
+ return this.processor.process(new Xd(e, t));
8302
8387
  }
8303
8388
  patch(e, t) {
8304
- return this.processor.process(new qd(e, t));
8389
+ return this.processor.process(new Zd(e, t));
8305
8390
  }
8306
8391
  reverse(e) {
8307
- return this.processor.process(new Jd(e));
8392
+ return this.processor.process(new Qd(e));
8308
8393
  }
8309
8394
  unpatch(e, t) {
8310
8395
  return this.patch(e, this.reverse(t));
8311
8396
  }
8312
8397
  clone(e) {
8313
- return Hd(e);
8398
+ return Kd(e);
8314
8399
  }
8315
8400
  };
8316
8401
  //#endregion
8317
8402
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
8318
- function Mf(e) {
8319
- return new jf(e);
8403
+ function If(e) {
8404
+ return new Ff(e);
8320
8405
  }
8321
8406
  //#endregion
8322
8407
  //#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
@@ -8889,46 +8974,46 @@ $.Diff = function(e, t) {
8889
8974
  };
8890
8975
  //#endregion
8891
8976
  //#region src/components/audit-log/create-diff-patcher.tsx
8892
- var Nf = (e = {}) => Mf({
8977
+ var Lf = (e = {}) => If({
8893
8978
  ...e,
8894
8979
  textDiff: {
8895
8980
  diffMatchPatch: $,
8896
8981
  minLength: 120
8897
8982
  },
8898
8983
  cloneDiffValues: !0
8899
- }), Pf = ["user", "unittemplate"], Ff = Nf(), If = (e, t, n) => {
8984
+ }), Rf = ["user", "unittemplate"], zf = Lf(), Bf = (e, t, n) => {
8900
8985
  let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
8901
8986
  for (let e = t.length - 1; e >= 0; e--) {
8902
8987
  let n = r[t[e]];
8903
8988
  if (n) return n;
8904
8989
  }
8905
8990
  return n || "";
8906
- }, Lf = (e) => {
8991
+ }, Vf = (e) => {
8907
8992
  let t = (e) => Nn(e) ? Gn(e) : String(e);
8908
8993
  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);
8909
- }, Rf = (e) => {
8994
+ }, Hf = (e) => {
8910
8995
  switch (e.length) {
8911
8996
  case 1: {
8912
8997
  let [t] = e;
8913
8998
  return {
8914
8999
  type: "created",
8915
9000
  before: "",
8916
- after: Lf(t)
9001
+ after: Vf(t)
8917
9002
  };
8918
9003
  }
8919
9004
  case 2: {
8920
9005
  let [t, n] = e;
8921
9006
  return {
8922
9007
  type: "modified",
8923
- before: Lf(t),
8924
- after: Lf(n)
9008
+ before: Vf(t),
9009
+ after: Vf(n)
8925
9010
  };
8926
9011
  }
8927
9012
  case 3: {
8928
9013
  let [t] = e;
8929
9014
  return {
8930
9015
  type: "deleted",
8931
- before: Lf(t),
9016
+ before: Vf(t),
8932
9017
  after: ""
8933
9018
  };
8934
9019
  }
@@ -8938,15 +9023,15 @@ var Nf = (e = {}) => Mf({
8938
9023
  after: ""
8939
9024
  };
8940
9025
  }
8941
- }, zf = (e) => Array.isArray(e), Bf = (e, t) => t ? zf(t) ? t.length === 0 ? e : t.reduce((e, t) => Ff.unpatch(Xt(e), Xt(t)), Xt(e)) : Ff.unpatch(Xt(e), Xt(t)) : e, Vf = (e) => e.createdAt || e.date, Hf = (e, t, n) => {
8942
- let r = Vf(e);
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);
8943
9028
  if (!r) return {
8944
9029
  oldJson: "",
8945
9030
  newJson: "",
8946
9031
  error: `Cannot create comparison view: missing date for audit log ${e.id}`
8947
9032
  };
8948
9033
  let i = t.filter((e) => {
8949
- let t = Vf(e);
9034
+ let t = Gf(e);
8950
9035
  return !!(e.diffs && t && t >= r);
8951
9036
  }), a = Array.from({ length: i.length + 1 });
8952
9037
  a[0] = Xt(n);
@@ -8959,7 +9044,7 @@ var Nf = (e = {}) => Mf({
8959
9044
  a[e + 1] = a[e];
8960
9045
  continue;
8961
9046
  }
8962
- a[e + 1] = Bf(a[e], t);
9047
+ a[e + 1] = Wf(a[e], t);
8963
9048
  }
8964
9049
  let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
8965
9050
  o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
@@ -8974,10 +9059,10 @@ var Nf = (e = {}) => Mf({
8974
9059
  oldJson: o,
8975
9060
  newJson: s
8976
9061
  };
8977
- }, Uf = (e, t, n = {}, r = []) => {
9062
+ }, qf = (e, t, n = {}, r = []) => {
8978
9063
  var i;
8979
9064
  if (!e) return;
8980
- let a = [...Pf, ...(i = n.hiddenKeys) == null ? [] : i];
9065
+ let a = [...Rf, ...(i = n.hiddenKeys) == null ? [] : i];
8981
9066
  Object.keys(e).forEach((i) => {
8982
9067
  var o;
8983
9068
  let s = e[i];
@@ -8990,12 +9075,12 @@ var Nf = (e = {}) => Mf({
8990
9075
  tn(s) ? t.push({
8991
9076
  deltaFormat: [...s],
8992
9077
  path: c
8993
- }) : ln(s) && Uf(s, t, n, c);
9078
+ }) : ln(s) && qf(s, t, n, c);
8994
9079
  });
8995
- }, Wf = (e, t = {}) => {
9080
+ }, Jf = (e, t = {}) => {
8996
9081
  let n = [];
8997
- return e ? (Uf(e, n, t), n) : [];
8998
- }, Gf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Kf = (e) => {
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) => {
8999
9084
  if (e == null || e === "") return "empty";
9000
9085
  if (typeof e == "boolean") return e ? "true" : "false";
9001
9086
  if (typeof e == "string") return e;
@@ -9006,32 +9091,32 @@ var Nf = (e = {}) => Mf({
9006
9091
  } catch {
9007
9092
  return String(e);
9008
9093
  }
9009
- }, qf = (e, t = e.length - 1) => {
9094
+ }, Zf = (e, t = e.length - 1) => {
9010
9095
  if (t >= e.length) return "Value";
9011
9096
  let n = e[t];
9012
- return !n || An(n) ? qf(e, t - 1) : Gf(n);
9013
- }, Jf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9014
- let o = Kf(r), s = Kf(i), c = a ? ` in ${a}` : "";
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}` : "";
9015
9100
  switch (t) {
9016
9101
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
9017
9102
  case "created": return `${e} created ${s}${c}.`;
9018
9103
  case "deleted": return `${e} deleted ${o}${c}.`;
9019
9104
  default: return `${e} changed ${n}${c}.`;
9020
9105
  }
9021
- }, Yf = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(yc, { table: {
9106
+ }, $f = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(Cc, { table: {
9022
9107
  headers: [{ cells: [{ value: "Changes" }] }],
9023
9108
  rows: n.map((n) => {
9024
- let { deltaFormat: i, path: a } = n, o = If(e, a, r), { type: s, before: c, after: l } = Rf(i);
9025
- return { cells: [{ value: Jf({
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({
9026
9111
  userName: t,
9027
9112
  type: s,
9028
- property: qf(a),
9113
+ property: Zf(a),
9029
9114
  before: c,
9030
9115
  after: l,
9031
9116
  sectionName: o
9032
9117
  }) }] };
9033
9118
  })
9034
- } }), Xf = Object.freeze({
9119
+ } }), ep = Object.freeze({
9035
9120
  summary: {
9036
9121
  label: "Summary",
9037
9122
  value: "summary"
@@ -9040,33 +9125,33 @@ var Nf = (e = {}) => Mf({
9040
9125
  label: "Compare",
9041
9126
  value: "compare"
9042
9127
  }
9043
- }), Zf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9044
- let c = [Xf.summary, Xf.compare].map(({ label: e, value: t }) => ({
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 }) => ({
9045
9130
  label: e,
9046
9131
  value: t
9047
9132
  })), [l, u] = m(c[0]), { diffs: d = void 0 } = e || {};
9048
9133
  if (!d) return null;
9049
- let { oldJson: f, newJson: p, error: h } = Hf(e, t, n);
9134
+ let { oldJson: f, newJson: p, error: h } = Kf(e, t, n);
9050
9135
  return /* @__PURE__ */ v(Ka, {
9051
9136
  visible: r,
9052
9137
  centered: !0,
9053
9138
  children: /* @__PURE__ */ v(Sa, { dialog: {
9054
9139
  scroll: !0,
9055
9140
  heading: "Comparison view",
9056
- content: /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(ku, {
9141
+ content: /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Nu, {
9057
9142
  name: "ViewTab",
9058
9143
  onChange: (e) => u(c.find((t) => t.value === e.target.value)),
9059
9144
  options: c,
9060
9145
  value: l
9061
- }), l.value === "summary" ? /* @__PURE__ */ v(Yf, {
9146
+ }), l.value === "summary" ? /* @__PURE__ */ v($f, {
9062
9147
  userName: e.userName,
9063
9148
  sectionNames: a,
9064
- diffs: Wf(d, i),
9149
+ diffs: Jf(d, i),
9065
9150
  defaultSectionName: o
9066
9151
  }) : h ? /* @__PURE__ */ v("div", {
9067
9152
  style: { padding: 16 },
9068
9153
  children: h
9069
- }) : /* @__PURE__ */ v(zd, {
9154
+ }) : /* @__PURE__ */ v(Ud, {
9070
9155
  oldJson: f,
9071
9156
  newJson: p
9072
9157
  })] }),
@@ -9079,7 +9164,7 @@ var Nf = (e = {}) => Mf({
9079
9164
  height: "90vh"
9080
9165
  } })
9081
9166
  });
9082
- }, Qf = [
9167
+ }, np = [
9083
9168
  {
9084
9169
  label: "10 / page",
9085
9170
  value: 10
@@ -9092,8 +9177,8 @@ var Nf = (e = {}) => Mf({
9092
9177
  label: "50 / page",
9093
9178
  value: 50
9094
9179
  }
9095
- ], $f = (e, t = {}) => {
9096
- let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = Wf(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
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";
9097
9182
  if (i === "API") return a === "Created" ? "Created through API" : "Changed through API";
9098
9183
  switch (a) {
9099
9184
  case "Created": return `Created by ${r}`;
@@ -9103,7 +9188,7 @@ var Nf = (e = {}) => Mf({
9103
9188
  case "Updated": return `Updated by ${r} (${c})`;
9104
9189
  default: return `Change by ${r}`;
9105
9190
  }
9106
- }, ep = ({ 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 }) => {
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 }) => {
9107
9192
  let [b, x] = m(!1), [S, C] = m(null), w = (e) => {
9108
9193
  if (e.snapshot) {
9109
9194
  f == null || f(e.snapshot, e);
@@ -9122,7 +9207,7 @@ var Nf = (e = {}) => Mf({
9122
9207
  return {
9123
9208
  cells: [
9124
9209
  {
9125
- value: e.snapshot ? `Snapshot: ${e.snapshot}` : $f(e, l),
9210
+ value: e.snapshot ? `Snapshot: ${e.snapshot}` : rp(e, l),
9126
9211
  type: "Link",
9127
9212
  disabled: n,
9128
9213
  onClick: n ? void 0 : () => w(e),
@@ -9141,8 +9226,8 @@ var Nf = (e = {}) => Mf({
9141
9226
  type: "Static"
9142
9227
  },
9143
9228
  {
9144
- value: Bd({
9145
- date: Vf(e),
9229
+ value: Wd({
9230
+ date: Gf(e),
9146
9231
  showTime: !0
9147
9232
  }),
9148
9233
  type: "Static"
@@ -9152,12 +9237,12 @@ var Nf = (e = {}) => Mf({
9152
9237
  };
9153
9238
  });
9154
9239
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(na, {
9155
- heading: /* @__PURE__ */ y(Nl, {
9240
+ heading: /* @__PURE__ */ y(Ll, {
9156
9241
  gap: !0,
9157
9242
  wrap: !0,
9158
9243
  children: [/* @__PURE__ */ v(ya, { children: "Changes" }), c.map((e) => {
9159
9244
  var t;
9160
- return /* @__PURE__ */ v(dl, {
9245
+ return /* @__PURE__ */ v(hl, {
9161
9246
  small: (t = e.small) == null ? !0 : t,
9162
9247
  checked: e.checked,
9163
9248
  onChange: e.onChange,
@@ -9167,11 +9252,11 @@ var Nf = (e = {}) => Mf({
9167
9252
  })]
9168
9253
  }),
9169
9254
  padding: !1,
9170
- children: r ? /* @__PURE__ */ v(eu, {
9255
+ children: r ? /* @__PURE__ */ v(iu, {
9171
9256
  height: "100px",
9172
9257
  theme: Or.WHITE,
9173
9258
  children: /* @__PURE__ */ v(mi, { dark: !0 })
9174
- }) : /* @__PURE__ */ v(yc, { table: {
9259
+ }) : /* @__PURE__ */ v(Cc, { table: {
9175
9260
  headers: T,
9176
9261
  testId: "auditlog-table",
9177
9262
  rows: E,
@@ -9185,14 +9270,14 @@ var Nf = (e = {}) => Mf({
9185
9270
  onChange: (e) => {
9186
9271
  u(Number(e.target.value));
9187
9272
  },
9188
- options: Qf,
9273
+ options: np,
9189
9274
  value: a
9190
9275
  },
9191
9276
  onSelectPage: (e) => d(e),
9192
9277
  small: !0
9193
9278
  } }
9194
9279
  } })
9195
- }), b && S && S.diffs && /* @__PURE__ */ v(Zf, {
9280
+ }), b && S && S.diffs && /* @__PURE__ */ v(tp, {
9196
9281
  sectionNames: o,
9197
9282
  isOpen: b,
9198
9283
  onClose: () => x(!1),
@@ -9202,7 +9287,7 @@ var Nf = (e = {}) => Mf({
9202
9287
  data: t,
9203
9288
  transformDiffsConfig: l
9204
9289
  })] });
9205
- }, tp = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9290
+ }, ap = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9206
9291
  let i = window.location.href, a = p(i);
9207
9292
  return c(() => {
9208
9293
  a.current = i;
@@ -9225,10 +9310,10 @@ var Nf = (e = {}) => Mf({
9225
9310
  });
9226
9311
  };
9227
9312
  }, [e, t]), null;
9228
- }, np = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, rp = (e) => {
9229
- kd(wd.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9230
- e === wd.Translations ? kd(e, Ed(t)) : kd(e, np(t) ? t : { ...t });
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 });
9231
9316
  });
9232
9317
  };
9233
9318
  //#endregion
9234
- export { qr as Accordion, fi as AccordionWithDefaultToggle, Ji as Actions, Tr as Align, ep 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, zd as DiffViewer, H as DisabledContext, _a as Divider, ka as Drawer, Iu as ElementType, Ac as Empty, Ml as Field, Ol as FileButton, za as FileInput, Nl as Flex, Fl as FormRow, zl 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, Al as Label, Ql as List, Vl as ListHeading, ql as ListSubheading, eu 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, ou as OptionDropdown, cu as Page, As as Pagination, Hu as PopConfirm, aa as Popover, Ha as Portal, uu as PrintHeader, Ya as ProgressBar, du as RadioButton, gu as RichTextInput, vu as Row, Cs as Select, Fd as SettingField, Cu as SideBar, Tu as Skeleton, $s as Slider, eo as SmartUploadModal, Ba as Spacer, mi as Spinner, yc as Table, Dl as TableImportExport, ku as Tabs, ha as Text, Mu as TextArea, Au as TextLink, Dr as TextTransform, Or as Theme, cr as Toaster, dl as Toggle, W as Tooltip, zu as TopBar, Ku as Tree, id as TreeTable, Cr as TriggerType, Cd as UnitInput, Nd as UnitTable, tp as UsageTracker, cl as dismissToast, bd as initializeContext, rp as initializeGuiLibrary, La as readFile, sl as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };
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 };