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

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
@@ -3759,8 +3759,75 @@ var Cr = /* @__PURE__ */ function(e) {
3759
3759
  testId: a
3760
3760
  })
3761
3761
  });
3762
- }, 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 }) => {
3763
- 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) => {
3762
+ }, mc = ({ children: e, dropDisabled: t = !1, height: n, rowIndex: r }) => {
3763
+ let { attributes: i, listeners: a, setNodeRef: o, transform: s, transition: c, isDragging: l } = Yn({
3764
+ id: r.toString(),
3765
+ animateLayoutChanges: () => !1
3766
+ });
3767
+ return e({
3768
+ attributes: i,
3769
+ listeners: a,
3770
+ setNodeRef: o,
3771
+ style: {
3772
+ transform: t ? void 0 : Zn.Translate.toString(s),
3773
+ height: n,
3774
+ transition: c,
3775
+ opacity: l ? 0 : void 0
3776
+ }
3777
+ });
3778
+ }, hc = ({ attributes: e = {}, dropDisabled: t = !1, listeners: n, noDrag: r = !1 }) => r ? /* @__PURE__ */ v("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ v("td", {
3779
+ className: Is.dragIconCell,
3780
+ children: /* @__PURE__ */ v("div", {
3781
+ className: g(Is.dragIcon, t ? Is.dragIconDisabled : ""),
3782
+ ...e,
3783
+ ...n,
3784
+ children: /* @__PURE__ */ v(U, { icon: V.DRAG })
3785
+ })
3786
+ }), gc = ({ attributes: e = {}, cells: t, colSpan: n, draggableTable: r, dropDisabled: i = !1, expandedContent: a, height: o, isHeader: s, listeners: c, row: l, rowActions: u, rowIndex: d, setNodeRef: f, style: p = { height: o }, testId: m }) => {
3787
+ let { onRowClick: h, onRowFocus: b, onRowMouseEnter: x, onRowMouseLeave: S, error: C, warning: w, active: T } = l;
3788
+ return /* @__PURE__ */ y(_, { children: [s ? /* @__PURE__ */ y("tr", {
3789
+ onClick: h,
3790
+ onMouseEnter: x,
3791
+ onMouseLeave: S,
3792
+ onFocus: b,
3793
+ "data-testid": m,
3794
+ className: g(h ? Is.clickableRow : null, x ? Is.hoverableRow : null),
3795
+ children: [
3796
+ r ? /* @__PURE__ */ v("th", {}) : null,
3797
+ t,
3798
+ u
3799
+ ]
3800
+ }, d) : /* @__PURE__ */ y("tr", {
3801
+ ref: f,
3802
+ onClick: h,
3803
+ onMouseEnter: x,
3804
+ onMouseLeave: S,
3805
+ onFocus: b,
3806
+ className: g(h && !h.noStyle ? Is.clickableRow : null, x && !x.noStyle ? Is.hoverableRow : null, T ? Is.rowActive : null),
3807
+ "data-active": T || null,
3808
+ "data-error": C || null,
3809
+ "data-warning": w || null,
3810
+ "data-index": d,
3811
+ "data-even": d % 2 == 0,
3812
+ "data-testid": m,
3813
+ style: p,
3814
+ children: [
3815
+ r ? /* @__PURE__ */ v(hc, {
3816
+ attributes: e,
3817
+ dropDisabled: i,
3818
+ listeners: c,
3819
+ noDrag: l.noDrag
3820
+ }) : null,
3821
+ t,
3822
+ u
3823
+ ]
3824
+ }, d), a && a.content ? /* @__PURE__ */ v(Ls, {
3825
+ colSpan: n,
3826
+ flush: a.flush === !0,
3827
+ children: a.content
3828
+ }, `${d}_expanded_content`) : null] });
3829
+ }, _c = ({ row: e, rowIndex: t, isHeader: n = !1, columnCount: r, colSpan: i, columnHeaderAlignments: a = [], columnAlignment: o = [], hasRowActions: s, draggableTable: c = !1, columnWidths: l, dropDisabled: u = !1, height: d, testId: f }) => {
3830
+ let p = zs(a, n, t), { expandedContent: m } = e, h = e.cells.map((e, r) => {
3764
3831
  let i = `${+!n}_${t}_${r}`;
3765
3832
  return /* @__PURE__ */ v(pc, {
3766
3833
  cell: e,
@@ -3770,70 +3837,57 @@ var Cr = /* @__PURE__ */ function(e) {
3770
3837
  width: l ? l[r] : void 0,
3771
3838
  testId: e.testId
3772
3839
  }, i);
3773
- }), D = s && /* @__PURE__ */ v(pc, {
3840
+ }), g = s && /* @__PURE__ */ v(pc, {
3774
3841
  cell: {
3775
3842
  type: fc.ACTIONS,
3776
3843
  actions: e.actions
3777
3844
  },
3778
3845
  isHeader: n
3779
- }, r), { attributes: O, listeners: k, setNodeRef: A, transform: j, transition: M, isDragging: N } = Yn({
3780
- id: t.toString(),
3781
- animateLayoutChanges: () => !1
3782
- }), P = {
3783
- transform: u ? void 0 : Zn.Translate.toString(j),
3784
- height: d,
3785
- transition: M,
3786
- opacity: N ? 0 : void 0
3787
- };
3788
- return n ? /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("tr", {
3789
- onClick: m,
3790
- onMouseEnter: b,
3791
- onMouseLeave: x,
3792
- onFocus: h,
3793
- "data-testid": f,
3794
- className: g(m ? Is.clickableRow : null, b ? Is.hoverableRow : null),
3795
- children: [
3796
- c ? /* @__PURE__ */ v("th", {}) : null,
3797
- E,
3798
- D
3799
- ]
3800
- }, t), S && S.content ? /* @__PURE__ */ v(Ls, {
3846
+ }, r);
3847
+ return n ? /* @__PURE__ */ v(gc, {
3848
+ cells: h,
3801
3849
  colSpan: i,
3802
- flush: S.flush === !0,
3803
- children: S.content
3804
- }, `${t}_expanded_content`) : null] }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("tr", {
3805
- ref: e.noDrag ? null : A,
3806
- onClick: m,
3807
- onMouseEnter: b,
3808
- onMouseLeave: x,
3809
- onFocus: h,
3810
- className: g(m && !m.noStyle ? Is.clickableRow : null, b && !b.noStyle ? Is.hoverableRow : null, T ? Is.rowActive : null),
3811
- "data-active": T || null,
3812
- "data-error": C || null,
3813
- "data-warning": w || null,
3814
- "data-index": t,
3815
- "data-even": t % 2 == 0,
3816
- "data-testid": f,
3817
- style: P,
3818
- children: [
3819
- c ? e.noDrag ? /* @__PURE__ */ v("td", { "aria-labelledby": "unique-label-id" }) : /* @__PURE__ */ v("td", {
3820
- className: Is.dragIconCell,
3821
- children: /* @__PURE__ */ v("div", {
3822
- className: g(Is.dragIcon, u ? Is.dragIconDisabled : ""),
3823
- ...O,
3824
- ...k,
3825
- children: /* @__PURE__ */ v(U, { icon: V.DRAG })
3826
- })
3827
- }) : null,
3828
- E,
3829
- D
3830
- ]
3831
- }, t), S && S.content ? /* @__PURE__ */ v(Ls, {
3850
+ draggableTable: c,
3851
+ expandedContent: m,
3852
+ isHeader: !0,
3853
+ row: e,
3854
+ rowActions: g,
3855
+ rowIndex: t,
3856
+ testId: f
3857
+ }) : c && !e.noDrag ? /* @__PURE__ */ v(mc, {
3858
+ dropDisabled: u,
3859
+ height: d,
3860
+ rowIndex: t,
3861
+ children: ({ attributes: n, listeners: r, setNodeRef: a, style: o }) => /* @__PURE__ */ v(gc, {
3862
+ attributes: n,
3863
+ cells: h,
3864
+ colSpan: i,
3865
+ draggableTable: c,
3866
+ dropDisabled: u,
3867
+ expandedContent: m,
3868
+ height: d,
3869
+ isHeader: !1,
3870
+ listeners: r,
3871
+ row: e,
3872
+ rowActions: g,
3873
+ rowIndex: t,
3874
+ setNodeRef: a,
3875
+ style: o,
3876
+ testId: f
3877
+ })
3878
+ }) : /* @__PURE__ */ v(gc, {
3879
+ cells: h,
3832
3880
  colSpan: i,
3833
- flush: S.flush === !0,
3834
- children: S.content
3835
- }, `${t}_expanded_content`) : null] });
3836
- }, hc = (e) => {
3881
+ draggableTable: c,
3882
+ expandedContent: m,
3883
+ height: d,
3884
+ isHeader: !1,
3885
+ row: e,
3886
+ rowActions: g,
3887
+ rowIndex: t,
3888
+ testId: f
3889
+ });
3890
+ }, vc = (e) => {
3837
3891
  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]);
3838
3892
  return a ? /* @__PURE__ */ y(tr, {
3839
3893
  collisionDetection: rr,
@@ -3868,7 +3922,7 @@ var Cr = /* @__PURE__ */ function(e) {
3868
3922
  dropAnimation: null,
3869
3923
  children: /* @__PURE__ */ v("table", {
3870
3924
  className: g(mo.table, mo.dragOverlay),
3871
- children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ v(mc, {
3925
+ children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ v(_c, {
3872
3926
  rowIndex: Number(f),
3873
3927
  row: l[Number(f)],
3874
3928
  columnCount: i,
@@ -3888,22 +3942,22 @@ var Cr = /* @__PURE__ */ function(e) {
3888
3942
  })
3889
3943
  }), document.body)]
3890
3944
  }) : t({});
3891
- }, gc = ({ table: e, children: t }) => {
3892
- var n, r, i;
3893
- let a = p(null), o = ir({
3945
+ }, yc = ({ table: e, children: t }) => {
3946
+ var n, r, i, a;
3947
+ let o = p(null), s = ir({
3894
3948
  count: (n = (r = e == null ? void 0 : e.rowCount) == null ? (i = e.rows) == null ? void 0 : i.length : r) == null ? 0 : n,
3895
- getScrollElement: () => a.current,
3949
+ getScrollElement: () => o.current,
3896
3950
  estimateSize: () => 31,
3897
- overscan: 10
3951
+ overscan: (a = e == null ? void 0 : e.virtualOverscan) == null ? 10 : a
3898
3952
  });
3899
3953
  return /* @__PURE__ */ v("div", {
3900
3954
  id: "scrollWrapper",
3901
3955
  className: g(mo.scroll, mo.virtualScroll),
3902
- ref: a,
3956
+ ref: o,
3903
3957
  children: t({
3904
- virtualizer: o,
3958
+ virtualizer: s,
3905
3959
  tableStyle: (() => {
3906
- let e = o.getVirtualItems(), t = e.length > 0 ? e[0].start : 0, n = e.length > 0 ? o.getTotalSize() - e[e.length - 1].end : 0;
3960
+ let e = s.getVirtualItems(), t = e.length > 0 ? e[0].start : 0, n = e.length > 0 ? s.getTotalSize() - e[e.length - 1].end : 0;
3907
3961
  return {
3908
3962
  "--virtualPaddingTop": t + "px",
3909
3963
  "--virtualPaddingBottom": n + "px"
@@ -3911,7 +3965,7 @@ var Cr = /* @__PURE__ */ function(e) {
3911
3965
  })()
3912
3966
  })
3913
3967
  });
3914
- }, _c = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (c(() => {
3968
+ }, bc = ({ activeIndex: e, triggerScrollToActiveRow: t, isVirtualized: n, virtualizer: r }) => (c(() => {
3915
3969
  if (t && !(e == null || e < 0)) {
3916
3970
  if (n && r) r.scrollToIndex(e, {
3917
3971
  behavior: "auto",
@@ -3930,11 +3984,11 @@ var Cr = /* @__PURE__ */ function(e) {
3930
3984
  t,
3931
3985
  n,
3932
3986
  r
3933
- ]), null), vc = ({ table: e, children: t }) => {
3987
+ ]), null), xc = ({ table: e, children: t }) => {
3934
3988
  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]);
3935
- return n ? /* @__PURE__ */ v(gc, {
3989
+ return n ? /* @__PURE__ */ v(yc, {
3936
3990
  table: e,
3937
- children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(_c, {
3991
+ children: ({ virtualizer: e, tableStyle: n }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(bc, {
3938
3992
  isVirtualized: !0,
3939
3993
  virtualizer: e,
3940
3994
  activeIndex: a,
@@ -3946,13 +4000,13 @@ var Cr = /* @__PURE__ */ function(e) {
3946
4000
  }) : /* @__PURE__ */ y("div", {
3947
4001
  id: "scrollWrapper",
3948
4002
  className: mo.scroll,
3949
- children: [/* @__PURE__ */ v(_c, {
4003
+ children: [/* @__PURE__ */ v(bc, {
3950
4004
  isVirtualized: !1,
3951
4005
  activeIndex: a,
3952
4006
  triggerScrollToActiveRow: r
3953
4007
  }), t({})]
3954
4008
  });
3955
- }, yc = (e) => {
4009
+ }, Sc = (e) => {
3956
4010
  var t, n, r, i, a;
3957
4011
  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 = {
3958
4012
  cells: I ? T.cells.map((e, t) => (e == null ? void 0 : e.type) === "Input" ? {
@@ -3991,7 +4045,7 @@ var Cr = /* @__PURE__ */ function(e) {
3991
4045
  name: f,
3992
4046
  testId: C && `${C}-title`
3993
4047
  }),
3994
- /* @__PURE__ */ v(hc, {
4048
+ /* @__PURE__ */ v(vc, {
3995
4049
  colSpan: P,
3996
4050
  columnAlignment: x,
3997
4051
  columnCount: M,
@@ -4001,13 +4055,13 @@ var Cr = /* @__PURE__ */ function(e) {
4001
4055
  rows: L,
4002
4056
  tbodyRef: A,
4003
4057
  canListReorder: s,
4004
- children: ({ dropDisabled: e }) => /* @__PURE__ */ v(vc, {
4058
+ children: ({ dropDisabled: e }) => /* @__PURE__ */ v(xc, {
4005
4059
  table: te,
4006
4060
  children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ y("table", {
4007
4061
  className: g(mo.table, S ? mo.striped : ""),
4008
4062
  "data-testid": C,
4009
4063
  style: n,
4010
- children: [/* @__PURE__ */ v("thead", { children: j.map((e, t) => /* @__PURE__ */ v(mc, {
4064
+ children: [/* @__PURE__ */ v("thead", { children: j.map((e, t) => /* @__PURE__ */ v(_c, {
4011
4065
  rowIndex: t,
4012
4066
  isHeader: !0,
4013
4067
  row: e,
@@ -4022,7 +4076,7 @@ var Cr = /* @__PURE__ */ function(e) {
4022
4076
  ref: A,
4023
4077
  children: t ? t.getVirtualItems().map((t) => {
4024
4078
  let n = t.index, r = L[n];
4025
- return /* @__PURE__ */ v(mc, {
4079
+ return /* @__PURE__ */ v(_c, {
4026
4080
  rowIndex: n,
4027
4081
  row: c ? c({
4028
4082
  row: r,
@@ -4037,7 +4091,7 @@ var Cr = /* @__PURE__ */ function(e) {
4037
4091
  height: t.size,
4038
4092
  dropDisabled: e
4039
4093
  }, `1_${n}`);
4040
- }) : L.map((t, n) => /* @__PURE__ */ v(mc, {
4094
+ }) : L.map((t, n) => /* @__PURE__ */ v(_c, {
4041
4095
  rowIndex: n,
4042
4096
  row: c ? c({
4043
4097
  row: t,
@@ -4062,14 +4116,14 @@ var Cr = /* @__PURE__ */ function(e) {
4062
4116
  })
4063
4117
  ]
4064
4118
  });
4065
- }, bc = "blank", xc = 1e4, Sc = (e, t, n, r) => {
4119
+ }, Cc = "blank", wc = 1e4, Tc = (e, t, n, r) => {
4066
4120
  let i = `${t} → ${n}:`, a = e.filter((e) => !e.startsWith(i)), o = r ? [...a, `${i} ${r}`] : a;
4067
4121
  return {
4068
4122
  updatedErrors: o,
4069
4123
  isValid: o.length === 0
4070
4124
  };
4071
- }, Cc = 20, wc = 1, Tc = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4072
- 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(() => {
4125
+ }, Ec = 20, Dc = 1, Oc = ({ validationRules: e, parsedResult: t, updateState: n, testId: r }) => {
4126
+ let i = d(() => t.fields.map((e) => ({ value: e })), [t.fields]), [a, s] = m(Ec), [l, u] = m(Dc), f = p([]), h = (l - 1) * a, g = a === 0 ? t.rows.length : h + a, [_, y] = m([]), b = d(() => {
4073
4127
  let n = e.filter((e) => !e.optionalColumn);
4074
4128
  return t.fields.length === n.length ? n : e;
4075
4129
  }, [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")), {
@@ -4083,7 +4137,7 @@ var Cr = /* @__PURE__ */ function(e) {
4083
4137
  disableValidationOnFocus: !0,
4084
4138
  error: v,
4085
4139
  validationCallback: (e, i) => {
4086
- let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Sc(t.errors, a, e, i);
4140
+ let a = `Row ${r + 1}`, { updatedErrors: o, isValid: s } = Tc(t.errors, a, e, i);
4087
4141
  n({ parsedResult: {
4088
4142
  ...t,
4089
4143
  errors: o,
@@ -4092,7 +4146,7 @@ var Cr = /* @__PURE__ */ function(e) {
4092
4146
  },
4093
4147
  onChange: (e) => {
4094
4148
  var i;
4095
- 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);
4149
+ let { value: o } = (i = e == null ? void 0 : e.target) == null ? {} : i, s = `Row ${r + 1}`, c = p(o), { updatedErrors: l, isValid: u } = Tc(t.errors, s, m, c), d = t.rows.map((e, t) => t === r ? e.map((e, t) => t === a ? o : e) : e);
4096
4150
  n({ parsedResult: {
4097
4151
  ...t,
4098
4152
  rows: d,
@@ -4134,7 +4188,7 @@ var Cr = /* @__PURE__ */ function(e) {
4134
4188
  ]);
4135
4189
  let S = d(() => t.fields.map((e, r) => {
4136
4190
  var a, o, s;
4137
- 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);
4191
+ let c = b == null ? void 0 : b[r], l = Array.isArray(c == null ? void 0 : c.validUnits) ? c.validUnits : [], u = l == null ? void 0 : l.some((e) => hn(e) === Cc);
4138
4192
  if (!l.length || u) return {};
4139
4193
  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;
4140
4194
  return {
@@ -4172,7 +4226,7 @@ var Cr = /* @__PURE__ */ function(e) {
4172
4226
  h,
4173
4227
  g
4174
4228
  ]);
4175
- return /* @__PURE__ */ v(yc, {
4229
+ return /* @__PURE__ */ v(Sc, {
4176
4230
  beforeRenderRow: o(({ rowIndex: e }) => {
4177
4231
  let n = h + e, r = t.rows[n];
4178
4232
  return r ? x(r, n) : {
@@ -4245,7 +4299,7 @@ var Cr = /* @__PURE__ */ function(e) {
4245
4299
  } }
4246
4300
  }
4247
4301
  });
4248
- }, Ec = { listStyle: "_listStyle_yjfjw_1" }, Dc = ({ errors: e, t }) => {
4302
+ }, kc = { listStyle: "_listStyle_yjfjw_1" }, Ac = ({ errors: e, t }) => {
4249
4303
  var n;
4250
4304
  let r = (n = [...e]) == null ? void 0 : n.sort((e, t) => {
4251
4305
  let n = (e) => {
@@ -4261,18 +4315,18 @@ var Cr = /* @__PURE__ */ function(e) {
4261
4315
  content: t("unableToImportPleaseCorrectError", { rows: e == null ? void 0 : e.length }),
4262
4316
  type: "Error",
4263
4317
  details: /* @__PURE__ */ v("ul", {
4264
- className: Ec.listStyle,
4318
+ className: kc.listStyle,
4265
4319
  children: r.map((e, t) => /* @__PURE__ */ v("li", { children: e }, t))
4266
4320
  })
4267
4321
  };
4268
- }, Oc = ({ errors: e, t }) => e.length ? /* @__PURE__ */ v(po, { message: Dc({
4322
+ }, jc = ({ errors: e, t }) => e.length ? /* @__PURE__ */ v(po, { message: Ac({
4269
4323
  errors: e,
4270
4324
  t
4271
- }) }) : null, kc = {
4325
+ }) }) : null, Mc = {
4272
4326
  empty: "_empty_fe425_1",
4273
4327
  text: "_text_fe425_11"
4274
- }, Ac = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ y("div", {
4275
- className: kc.empty,
4328
+ }, Nc = ({ width: e = "auto", height: t = "auto", text: n = "No data", children: r, testId: i }) => /* @__PURE__ */ y("div", {
4329
+ className: Mc.empty,
4276
4330
  style: {
4277
4331
  width: e,
4278
4332
  height: t
@@ -4308,7 +4362,7 @@ var Cr = /* @__PURE__ */ function(e) {
4308
4362
  })
4309
4363
  }),
4310
4364
  n !== "" && /* @__PURE__ */ v("div", {
4311
- className: kc.text,
4365
+ className: Mc.text,
4312
4366
  children: /* @__PURE__ */ v(ha, {
4313
4367
  faint: !0,
4314
4368
  children: n
@@ -4316,52 +4370,52 @@ var Cr = /* @__PURE__ */ function(e) {
4316
4370
  }),
4317
4371
  r
4318
4372
  ]
4319
- }), jc = (e) => {
4373
+ }), Pc = (e) => {
4320
4374
  var t;
4321
4375
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4322
4376
  let t = e == null ? void 0 : e.match(/[.,]/g);
4323
4377
  return t && t.length > 1;
4324
4378
  });
4325
- }, Mc = (e) => {
4379
+ }, Fc = (e) => {
4326
4380
  var t;
4327
4381
  return e == null || (t = e.split(/;|\t|\n/)) == null ? void 0 : t.some((e) => {
4328
4382
  var t;
4329
4383
  return !(e != null && e.includes(".")) && (e == null || (t = e.match(/,/g)) == null ? void 0 : t.length) === 1;
4330
4384
  });
4331
- }, Nc = (e, t, n) => e >= t - n, Pc = (e) => !!e && e !== "blank" && e.trim() !== "", Fc = (e, t, n, r, i, a, o) => {
4385
+ }, Ic = (e, t, n) => e >= t - n, Lc = (e) => !!e && e !== "blank" && e.trim() !== "", Rc = (e, t, n, r, i, a, o) => {
4332
4386
  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;
4333
- if (i && !Nc(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4387
+ if (i && !Ic(e.length, l, c) && s.push(o("incorrectNumberOfFieldNameHeaderColumns", { expectedLengthMessage: u })), a) {
4334
4388
  var f, p;
4335
4389
  let e = r.filter((e) => {
4336
4390
  var t;
4337
- return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(Pc));
4391
+ return !e.optionalColumn && Array.isArray(e == null ? void 0 : e.validUnits) && (e == null || (t = e.validUnits) == null ? void 0 : t.some(Lc));
4338
4392
  }).length;
4339
- 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 }));
4393
+ Ic(t == null || (f = t.filter(Lc)) == null ? void 0 : f.length, e, r == null || (p = r.filter((e) => (e == null ? void 0 : e.optionalColumn) || !Array.isArray(e == null ? void 0 : e.validUnits) || e.validUnits.includes("blank"))) == null ? void 0 : p.length) || s.push(o("incorrectNumberOfUnitHeaderColumns", { expectedLengthMessage: u }));
4340
4394
  }
4341
4395
  return n.length === 0 ? s.push(o("incorrectNumberOfDataColumns", {
4342
4396
  expectedLengthMessage: u,
4343
4397
  dataRowStartIndex: d
4344
4398
  })) : n.forEach((e, t) => {
4345
- Nc(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4399
+ Ic(e.length, l, c) || s.push(o("incorrectNumberOfDataColumns", {
4346
4400
  expectedLengthMessage: u,
4347
4401
  dataRowStartIndex: d + t
4348
4402
  }));
4349
4403
  }), s;
4350
- }, Ic = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Lc = ({ value: e, defaultAllowedValues: t }) => {
4404
+ }, zc = (e) => e.toUpperCase().replace(/\(.*?\)/g, "").replace(/[^A-Z0-9]/g, "").trim(), Bc = ({ value: e, defaultAllowedValues: t }) => {
4351
4405
  var n;
4352
- let r = Ic(e);
4353
- return (n = t == null ? void 0 : t.some((e) => Ic(e).includes(r) || r.includes(Ic(e)))) == null ? !1 : n;
4354
- }, Rc = ({ value: e, defaultAllowedValues: t }) => {
4406
+ let r = zc(e);
4407
+ return (n = t == null ? void 0 : t.some((e) => zc(e).includes(r) || r.includes(zc(e)))) == null ? !1 : n;
4408
+ }, Vc = ({ value: e, defaultAllowedValues: t }) => {
4355
4409
  var n;
4356
4410
  return (n = t == null ? void 0 : t.includes(e)) == null ? !1 : n;
4357
- }, zc = (e, t, n, r, i, a) => {
4411
+ }, Hc = (e, t, n, r, i, a) => {
4358
4412
  let o = [];
4359
4413
  if (r) {
4360
4414
  let r = n.map((e) => e.fieldName).filter(Boolean);
4361
4415
  e.forEach((i, s) => {
4362
4416
  var c, l;
4363
4417
  let u = n[s];
4364
- if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Lc : c)({
4418
+ if (!(!u || !(u != null && u.fieldName)) && !((c = (l = n[s]) == null ? void 0 : l.fieldNameValidator) == null ? Bc : c)({
4365
4419
  value: i,
4366
4420
  defaultAllowedValues: r,
4367
4421
  columnIndex: s,
@@ -4383,7 +4437,7 @@ var Cr = /* @__PURE__ */ function(e) {
4383
4437
  var l, u;
4384
4438
  let d = n[c];
4385
4439
  if (!d || d != null && d.optionalColumn) return;
4386
- let f = (l = d.unitsValidator) == null ? Rc : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4440
+ let f = (l = d.unitsValidator) == null ? Vc : l, p = (u = i == null ? void 0 : i[c]) == null ? [] : u;
4387
4441
  f({
4388
4442
  value: r,
4389
4443
  defaultAllowedValues: p,
@@ -4399,7 +4453,7 @@ var Cr = /* @__PURE__ */ function(e) {
4399
4453
  });
4400
4454
  }
4401
4455
  return o;
4402
- }, Bc = (e, t, n) => {
4456
+ }, Uc = (e, t, n) => {
4403
4457
  let r = [];
4404
4458
  return e.forEach((e, i) => {
4405
4459
  e.forEach((e, a) => {
@@ -4412,91 +4466,91 @@ var Cr = /* @__PURE__ */ function(e) {
4412
4466
  })}`);
4413
4467
  });
4414
4468
  }), r;
4415
- }, Vc = (e, t, n, r, i, a, o) => {
4416
- let s = Fc(e, t, n, r, i, a, o);
4417
- return s.length === 0 && (s = s.concat(zc(e, t, r, i, a, o), Bc(n, r, o))), {
4469
+ }, Wc = (e, t, n, r, i, a, o) => {
4470
+ let s = Rc(e, t, n, r, i, a, o);
4471
+ return s.length === 0 && (s = s.concat(Hc(e, t, r, i, a, o), Uc(n, r, o))), {
4418
4472
  isValid: s.length === 0,
4419
4473
  errors: s
4420
4474
  };
4421
- }, Hc = (e, t, n) => {
4475
+ }, Gc = (e, t, n) => {
4422
4476
  var r, i, a, o, s, c, l, u, d, f, p, m, h, g;
4423
4477
  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;
4424
4478
  return {
4425
4479
  hasFieldNameHeader: b || v && !x && !C || v && y && !C,
4426
4480
  hasUnitHeader: x || S || v && y && !x && !C && !w || v && y && !C && !w
4427
4481
  };
4428
- }, Uc = (e, { validationRules: t }) => {
4482
+ }, Kc = (e, { validationRules: t }) => {
4429
4483
  var n, r, i;
4430
4484
  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) => {
4431
4485
  var t;
4432
4486
  return (t = e == null ? void 0 : e.defaultUnit) == null ? s(e == null ? void 0 : e.validUnits) : t;
4433
- }), { 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());
4487
+ }), { hasFieldNameHeader: l, hasUnitHeader: u } = Gc(e, o, a == null || (i = a.map((e) => e == null ? void 0 : e.validUnits)) == null || (i = i.filter((e) => !!e)) == null ? void 0 : i.flat());
4434
4488
  return l || e == null || e.unshift(o), u || e == null || e.splice(1, 0, c), {
4435
4489
  hasFieldNameHeader: l,
4436
4490
  hasUnitHeader: u
4437
4491
  };
4438
- }, Wc = (e) => Math.round(e * 100) / 100, Gc = (e) => e.join(", ").replace(/,\s*$/, ""), Kc = {
4492
+ }, qc = (e) => Math.round(e * 100) / 100, Jc = (e) => e.join(", ").replace(/,\s*$/, ""), Yc = {
4439
4493
  skipEmptyLines: !0,
4440
4494
  delimiter: (e) => {
4441
4495
  var t, n;
4442
4496
  let r = e.substring(0, 200), i = ((t = r.match(/\t/g)) == null ? [] : t).length, a = ((n = r.match(/;/g)) == null ? [] : n).length;
4443
4497
  return i === 0 && a === 0 ? "," : i > a ? " " : ";";
4444
4498
  }
4445
- }, qc = [
4499
+ }, Xc = [
4446
4500
  "text/csv",
4447
4501
  "text/plain",
4448
4502
  "application/json",
4449
4503
  "application/vnd.ms-excel"
4450
- ], Jc = (e) => qc.includes(e.type), Yc = (e) => e instanceof File, Xc = (e) => e.trim().startsWith("["), Zc = (e) => {
4504
+ ], Zc = (e) => Xc.includes(e.type), Qc = (e) => e instanceof File, $c = (e) => e.trim().startsWith("["), el = (e) => {
4451
4505
  try {
4452
4506
  var t;
4453
4507
  return !!((t = JSON.parse(e)) != null && t.path);
4454
4508
  } catch {
4455
4509
  return !1;
4456
4510
  }
4457
- }, Qc = (e) => new Promise((t, n) => {
4511
+ }, tl = (e) => new Promise((t, n) => {
4458
4512
  let r = new FileReader();
4459
4513
  r.onload = () => t(String(r.result)), r.onerror = n, r.readAsText(e);
4460
- }), $c = async (e, t, n) => {
4514
+ }), nl = async (e, t, n) => {
4461
4515
  try {
4462
- return ol({
4516
+ return ll({
4463
4517
  data: JSON.parse(e),
4464
4518
  errors: []
4465
4519
  }, t, n);
4466
4520
  } catch (e) {
4467
4521
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4468
4522
  }
4469
- }, el = async (e, t, n) => {
4523
+ }, rl = async (e, t, n) => {
4470
4524
  try {
4471
4525
  let r = JSON.parse(e).path.map((e) => [
4472
- Wc(e.md),
4473
- Wc(e.inclination),
4474
- Wc(e.gridAzimuth)
4526
+ qc(e.md),
4527
+ qc(e.inclination),
4528
+ qc(e.gridAzimuth)
4475
4529
  ]);
4476
4530
  return r.unshift([
4477
4531
  "m",
4478
4532
  "deg",
4479
4533
  "deg"
4480
- ]), ol({
4534
+ ]), ll({
4481
4535
  data: r,
4482
4536
  errors: []
4483
4537
  }, t, n);
4484
4538
  } catch (e) {
4485
4539
  throw Error(`${n("jsonParseFailed")} ${e.message}`);
4486
4540
  }
4487
- }, tl = (e) => e.replace(",", "."), nl = (e) => e.map((e) => e.map((e) => tl(e))), rl = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4541
+ }, il = (e) => e.replace(",", "."), al = (e) => e.map((e) => e.map((e) => il(e))), ol = (e, { importLimit: t, ...n }, r) => new Promise((i) => {
4488
4542
  or.parse(e, {
4489
- ...Kc,
4543
+ ...Yc,
4490
4544
  preview: t,
4491
4545
  complete: (e) => {
4492
- let a = ol(e, {
4546
+ let a = ll(e, {
4493
4547
  importLimit: t,
4494
4548
  ...n
4495
4549
  }, r);
4496
- a.rows = nl(a.rows), i(a);
4550
+ a.rows = al(a.rows), i(a);
4497
4551
  }
4498
4552
  });
4499
- }), il = async (e, t, n) => {
4553
+ }), sl = async (e, t, n) => {
4500
4554
  let r = {
4501
4555
  isValid: !1,
4502
4556
  fields: [],
@@ -4505,13 +4559,13 @@ var Cr = /* @__PURE__ */ function(e) {
4505
4559
  errors: []
4506
4560
  };
4507
4561
  try {
4508
- if (Yc(e) && !Jc(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Gc(Array.from(qc))}`), r;
4509
- let i = Yc(e) ? await Qc(e) : e;
4510
- return Xc(i) ? await $c(i, t, n) : Zc(i) ? await el(i, t, n) : await rl(e, t, n);
4562
+ if (Qc(e) && !Zc(e)) return r.errors.push(`${n("wrongFileFormatExpectedOneOf")} ${Jc(Array.from(Xc))}`), r;
4563
+ let i = Qc(e) ? await tl(e) : e;
4564
+ return $c(i) ? await nl(i, t, n) : el(i) ? await rl(i, t, n) : await ol(e, t, n);
4511
4565
  } catch (e) {
4512
4566
  return r.errors.push(e.message), r;
4513
4567
  }
4514
- }, al = (e, t, n, r) => {
4568
+ }, cl = (e, t, n, r) => {
4515
4569
  var i;
4516
4570
  let a = (i = r == null ? void 0 : r.delimiter) == null ? "," : i, o = [
4517
4571
  e,
@@ -4523,7 +4577,7 @@ var Cr = /* @__PURE__ */ function(e) {
4523
4577
  header: !0,
4524
4578
  delimiter: a
4525
4579
  });
4526
- }, ol = (e, t, n) => {
4580
+ }, ll = (e, t, n) => {
4527
4581
  let { data: r, errors: i } = e, a = {
4528
4582
  isValid: !1,
4529
4583
  fields: [],
@@ -4532,15 +4586,15 @@ var Cr = /* @__PURE__ */ function(e) {
4532
4586
  errors: i.map((e) => e.message)
4533
4587
  };
4534
4588
  if (i.length > 0) return a;
4535
- let { hasFieldNameHeader: o, hasUnitHeader: s } = Uc(r, t);
4589
+ let { hasFieldNameHeader: o, hasUnitHeader: s } = Kc(r, t);
4536
4590
  a.fields = r[0].map((e) => e.trim()), a.units = r[1].map((e) => e.trim()).filter(Boolean), a.rows = r.slice(2);
4537
4591
  let { validationRules: c } = t;
4538
4592
  if (c.length) {
4539
- let { isValid: e, errors: t } = Vc(a.fields, a.units, a.rows, c, o, s, n);
4593
+ let { isValid: e, errors: t } = Wc(a.fields, a.units, a.rows, c, o, s, n);
4540
4594
  a.errors.push(...t), a.isValid = e && t.length === 0;
4541
4595
  } else a.isValid = a.errors.length === 0;
4542
4596
  return a;
4543
- }, sl = ({ id: e, message: t = {
4597
+ }, ul = ({ id: e, message: t = {
4544
4598
  type: oo.INFO,
4545
4599
  content: ""
4546
4600
  }, autoClose: n = 6e3, onClose: r }) => {
@@ -4581,22 +4635,22 @@ var Cr = /* @__PURE__ */ function(e) {
4581
4635
  transition: sr,
4582
4636
  type: s
4583
4637
  });
4584
- }, cl = (e) => {
4638
+ }, dl = (e) => {
4585
4639
  lr.dismiss(e);
4586
- }, ll = (e, t) => {
4640
+ }, fl = (e, t) => {
4587
4641
  t(() => {
4588
- sl({ ...e });
4642
+ ul({ ...e });
4589
4643
  });
4590
- }, ul = {
4644
+ }, pl = {
4591
4645
  toggle: "_toggle_18fme_9",
4592
4646
  small: "_small_18fme_25",
4593
4647
  disabled: "_disabled_18fme_105",
4594
4648
  noMargin: "_noMargin_18fme_113",
4595
4649
  helpIconEnabled: "_helpIconEnabled_18fme_116"
4596
- }, 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 }) => {
4650
+ }, ml = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: c = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = Dr.CAPITALIZE }) => {
4597
4651
  let p = s(H), m = u || d, h = r || p;
4598
4652
  return /* @__PURE__ */ y("div", {
4599
- className: g(ul.toggle, h ? ul.disabled : null, a ? ul.small : null, c ? ul.noMargin : null),
4653
+ className: g(pl.toggle, h ? pl.disabled : null, a ? pl.small : null, c ? pl.noMargin : null),
4600
4654
  style: { display: i },
4601
4655
  onClick: (t) => {
4602
4656
  h || (t.target.name = e, t.target.checked = !n, t.target.value = !n, o(t));
@@ -4616,13 +4670,13 @@ var Cr = /* @__PURE__ */ function(e) {
4616
4670
  children: t
4617
4671
  }),
4618
4672
  m && /* @__PURE__ */ v("div", {
4619
- className: ul.helpIconEnabled,
4673
+ className: pl.helpIconEnabled,
4620
4674
  onClick: d,
4621
4675
  children: /* @__PURE__ */ v(si, { text: u })
4622
4676
  })
4623
4677
  ]
4624
4678
  });
4625
- }, 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 }) => {
4679
+ }, hl = ({ config: e, state: t, updateState: n, setModalVisibility: r, onCloseModal: i, readAndParseInput: a, validationRules: s = [], onCompleteImport: c = () => {}, prevalidationConfig: l, t: u, loading: d, startTransition: f, testId: h }) => {
4626
4680
  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({
4627
4681
  pastedText: "",
4628
4682
  parsedResult: {
@@ -4645,8 +4699,8 @@ var Cr = /* @__PURE__ */ function(e) {
4645
4699
  var n, r, i;
4646
4700
  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 = {
4647
4701
  validationRules: s,
4648
- importLimit: (r = e.importLimit) == null ? xc : r
4649
- }, o = al(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
4702
+ importLimit: (r = e.importLimit) == null ? wc : r
4703
+ }, o = cl(I.fields.slice(0, 2), ((i = I.units) == null ? [] : i).slice(0, 2), t, a);
4650
4704
  f(() => A({
4651
4705
  parsedResult: {
4652
4706
  ...I,
@@ -4676,17 +4730,17 @@ var Cr = /* @__PURE__ */ function(e) {
4676
4730
  }, N = () => {
4677
4731
  r("helpModal", !x);
4678
4732
  }, P = () => {
4679
- n(k), c(k.parsedResult), i(), ll({ message: {
4733
+ n(k), c(k.parsedResult), i(), fl({ message: {
4680
4734
  type: "Success",
4681
4735
  content: u("pasteSuccessful")
4682
4736
  } }, f);
4683
- }, { 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: [
4737
+ }, { pastedText: F, parsedResult: I } = k, ee = T && T(I), { isValid: L, errors: te } = I, ne = te.length, re = F === "", ie = Fc(F), ae = Pc(F), R = /* @__PURE__ */ y(_, { children: [
4684
4738
  /* @__PURE__ */ y("div", {
4685
4739
  className: io.headerContainer,
4686
4740
  children: [
4687
4741
  /* @__PURE__ */ v(W, {
4688
4742
  text: u("downsampleTooltip"),
4689
- children: /* @__PURE__ */ v(dl, {
4743
+ children: /* @__PURE__ */ v(ml, {
4690
4744
  label: u("downsampled"),
4691
4745
  checked: D,
4692
4746
  onChange: () => j(!D),
@@ -4719,7 +4773,7 @@ var Cr = /* @__PURE__ */ function(e) {
4719
4773
  }),
4720
4774
  re ? /* @__PURE__ */ v("div", {
4721
4775
  className: io.resultContainer,
4722
- children: /* @__PURE__ */ v(Ac, {
4776
+ children: /* @__PURE__ */ v(Nc, {
4723
4777
  text: null,
4724
4778
  children: /* @__PURE__ */ y("div", {
4725
4779
  className: io.emptyState,
@@ -4755,7 +4809,7 @@ var Cr = /* @__PURE__ */ function(e) {
4755
4809
  }) : /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
4756
4810
  className: io.messagesContainer,
4757
4811
  children: [
4758
- ne ? /* @__PURE__ */ v(Oc, {
4812
+ ne ? /* @__PURE__ */ v(jc, {
4759
4813
  errors: te,
4760
4814
  t: u
4761
4815
  }) : null,
@@ -4778,7 +4832,7 @@ var Cr = /* @__PURE__ */ function(e) {
4778
4832
  type: "Warning"
4779
4833
  } })
4780
4834
  ]
4781
- }), /* @__PURE__ */ v(Tc, {
4835
+ }), /* @__PURE__ */ v(Oc, {
4782
4836
  validationRules: s,
4783
4837
  parsedResult: I,
4784
4838
  updateState: (e) => A((t) => ({
@@ -4820,7 +4874,7 @@ var Cr = /* @__PURE__ */ function(e) {
4820
4874
  onClose: i
4821
4875
  } })
4822
4876
  });
4823
- }, pl = ({ modals: e = [], modalVisibility: n, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ v(_, { children: e.map(({ name: e, component: a, props: o = {} }) => {
4877
+ }, gl = ({ modals: e = [], modalVisibility: n, onCloseModal: r, testId: i }) => e.length ? /* @__PURE__ */ v(_, { children: e.map(({ name: e, component: a, props: o = {} }) => {
4824
4878
  var s;
4825
4879
  return /* @__PURE__ */ v(t, { children: /* @__PURE__ */ v(a, {
4826
4880
  testId: `${i}-modal-render-${e}`,
@@ -4828,7 +4882,7 @@ var Cr = /* @__PURE__ */ function(e) {
4828
4882
  onClose: () => r({ name: e }),
4829
4883
  ...o
4830
4884
  }) }, e);
4831
- }) }) : null, ml = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ v(Ki, {
4885
+ }) }) : null, _l = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ v(Ki, {
4832
4886
  loading: !0,
4833
4887
  menu: {
4834
4888
  component: /* @__PURE__ */ v(K, {
@@ -4844,18 +4898,18 @@ var Cr = /* @__PURE__ */ function(e) {
4844
4898
  sections: e
4845
4899
  },
4846
4900
  testId: n
4847
- }), hl = (e, t, n) => o(async () => {
4901
+ }), vl = (e, t, n) => o(async () => {
4848
4902
  if (n) try {
4849
4903
  return await n();
4850
4904
  } catch (t) {
4851
- console.error("beforeExportData failed", t), sl({ message: {
4905
+ console.error("beforeExportData failed", t), ul({ message: {
4852
4906
  type: "Error",
4853
4907
  content: e("unableToPrepareExportData")
4854
4908
  } });
4855
4909
  return;
4856
4910
  }
4857
4911
  return t;
4858
- }, [t, n]), gl = {
4912
+ }, [t, n]), yl = {
4859
4913
  cancel: "Cancel",
4860
4914
  chooseFile: "Choose file",
4861
4915
  copyDecimalComma: "Copy (decimal comma)",
@@ -4914,26 +4968,26 @@ var Cr = /* @__PURE__ */ function(e) {
4914
4968
  smartUpload_description: "Upload image and extract table content using a LLM",
4915
4969
  smartUpload_smartUpload: "Smart Upload",
4916
4970
  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"
4917
- }, _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(() => {
4918
- let t = Object.keys(gl).reduce((t, n) => {
4919
- let r = gl == null ? void 0 : gl[n], i = e == null ? void 0 : e[n];
4971
+ }, bl = (e, t = {}) => e == null ? void 0 : e.replace(/\{\{(\w+)\}\}/g, (e, n) => (t == null ? void 0 : t[n]) === void 0 ? "" : String(t == null ? void 0 : t[n])), xl = (e) => d(() => {
4972
+ let t = Object.keys(yl).reduce((t, n) => {
4973
+ let r = yl == null ? void 0 : yl[n], i = e == null ? void 0 : e[n];
4920
4974
  return t[n] = i == null ? r : i, t;
4921
4975
  }, {});
4922
4976
  return (e, n) => {
4923
4977
  let r = t[e];
4924
- return n ? _l(r, n) : r;
4978
+ return n ? bl(r, n) : r;
4925
4979
  };
4926
- }, [e]), yl = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, bl = (e) => {
4980
+ }, [e]), Sl = /^\s*-?\d+(?:[.,]\d+)?(?:e[+-]?\d+)?\s*$/i, Cl = (e) => {
4927
4981
  var t;
4928
4982
  return {
4929
4983
  ...e,
4930
4984
  rows: e == null || (t = e.rows) == null ? void 0 : t.map((e) => e.map((e) => {
4931
4985
  let t = String(e == null ? "" : e);
4932
- return yl.test(t) ? Cn(t) : t;
4986
+ return Sl.test(t) ? Cn(t) : t;
4933
4987
  }))
4934
4988
  };
4935
- }, xl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
4936
- 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) => {
4989
+ }, wl = ({ config: e, state: t, setState: n, smartUploadConfig: r, startTransition: i }) => {
4990
+ let { exportData: a, beforeExportData: s, importLimit: c = wc, validationRules: l = [], translations: u, onImportComplete: d = () => {}, disablePasteSuccessfulToast: f, prevalidationConfig: p, onDeleteRows: m } = e == null ? {} : e, { parsedResult: h } = t, { checkPrevalidationNeed: g } = p == null ? {} : p, _ = xl(u), v = vl(_, a, s), y = o((e) => {
4937
4991
  n((t) => ({
4938
4992
  ...t,
4939
4993
  ...e
@@ -4977,9 +5031,9 @@ var Cr = /* @__PURE__ */ function(e) {
4977
5031
  let t = {
4978
5032
  validationRules: l,
4979
5033
  importLimit: c
4980
- }, n = bl(await il(e, t, _));
5034
+ }, n = Cl(await sl(e, t, _));
4981
5035
  if (g && g(h)) {
4982
- let { fields: e, units: r, rows: a } = n, o = al(e, r == null ? [] : r, a, t);
5036
+ let { fields: e, units: r, rows: a } = n, o = cl(e, r == null ? [] : r, a, t);
4983
5037
  return i(() => y({
4984
5038
  pastedText: o,
4985
5039
  parsedResult: h
@@ -5005,20 +5059,20 @@ var Cr = /* @__PURE__ */ function(e) {
5005
5059
  let { fromFile: t, showSuccessToast: n = !0 } = e == null ? {} : e, r;
5006
5060
  try {
5007
5061
  if (r = t ? await t.text() : await navigator.clipboard.readText(), !r) {
5008
- ll({ message: {
5062
+ fl({ message: {
5009
5063
  type: "Error",
5010
5064
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed")
5011
5065
  } }, i);
5012
5066
  return;
5013
5067
  }
5014
- let e = bl(await il(r, {
5068
+ let e = Cl(await sl(r, {
5015
5069
  validationRules: l,
5016
5070
  importLimit: c
5017
5071
  }, _));
5018
- return e != null && e.isValid || ll({ message: {
5072
+ return e != null && e.isValid || fl({ message: {
5019
5073
  type: "Error",
5020
5074
  content: _("clipboardReadFailed")
5021
- } }, i), n && ll({ message: {
5075
+ } }, i), n && fl({ message: {
5022
5076
  type: "Success",
5023
5077
  content: _("pasteSuccessful")
5024
5078
  } }, i), {
@@ -5026,7 +5080,7 @@ var Cr = /* @__PURE__ */ function(e) {
5026
5080
  parsedResult: e
5027
5081
  };
5028
5082
  } catch (e) {
5029
- ll({ message: {
5083
+ fl({ message: {
5030
5084
  type: "Error",
5031
5085
  content: _(t ? "fileReadOrParseFailed" : "clipboardReadNotAllowed"),
5032
5086
  details: e.message
@@ -5039,10 +5093,10 @@ var Cr = /* @__PURE__ */ function(e) {
5039
5093
  let n = e == null || (t = e.target) == null || (t = t.files) == null ? void 0 : t[0];
5040
5094
  if (!n) return;
5041
5095
  let r = await C(await n.text());
5042
- r.isValid ? (f || ll({ message: {
5096
+ r.isValid ? (f || fl({ message: {
5043
5097
  type: "Success",
5044
5098
  content: _("pasteSuccessful")
5045
- } }, i), i(() => d(r))) : ll({ message: {
5099
+ } }, i), i(() => d(r))) : fl({ message: {
5046
5100
  type: "Error",
5047
5101
  content: _("fileParsingFailed")
5048
5102
  } }, i);
@@ -5056,7 +5110,7 @@ var Cr = /* @__PURE__ */ function(e) {
5056
5110
  try {
5057
5111
  let t = await navigator.clipboard.readText();
5058
5112
  if (!t) {
5059
- ll({ message: {
5113
+ fl({ message: {
5060
5114
  type: "Error",
5061
5115
  content: _("clipboardIsEmpty")
5062
5116
  } }, i);
@@ -5064,18 +5118,18 @@ var Cr = /* @__PURE__ */ function(e) {
5064
5118
  }
5065
5119
  let n = await C(t);
5066
5120
  if (!n.isValid) {
5067
- ll({ message: {
5121
+ fl({ message: {
5068
5122
  type: "Error",
5069
5123
  content: _("clipboardReadFailed")
5070
5124
  } }, i);
5071
5125
  return;
5072
5126
  }
5073
- f || ll({ message: {
5127
+ f || fl({ message: {
5074
5128
  type: "Success",
5075
5129
  content: _("pasteSuccessful")
5076
5130
  } }, i), e && i(() => d(n));
5077
5131
  } catch {
5078
- ll({ message: {
5132
+ fl({ message: {
5079
5133
  type: "Error",
5080
5134
  content: _("clipboardReadNotAllowed")
5081
5135
  } }, i);
@@ -5090,14 +5144,14 @@ var Cr = /* @__PURE__ */ function(e) {
5090
5144
  onClickCopyClipboard: o(async (e) => {
5091
5145
  let t = await v();
5092
5146
  if (!t) return;
5093
- 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: " " });
5147
+ let { fields: n = [], units: r = [], rows: a = [] } = t, o = (r == null ? [] : r).map((e) => e != null && e.length ? e : Cc).slice(0, n.length), s = (e, t) => t === "comma" ? e.replace(/\./g, ",") : e, c = cl(n, o, a.map((t) => t.map((t) => ur(t) ? "" : s(t.toString(), e))), { delimiter: " " });
5094
5148
  try {
5095
- await navigator.clipboard.writeText(c), ll({ message: {
5149
+ await navigator.clipboard.writeText(c), fl({ message: {
5096
5150
  type: "Success",
5097
5151
  content: _("copiedToClipboard")
5098
5152
  } }, i);
5099
5153
  } catch (e) {
5100
- ll({ message: {
5154
+ fl({ message: {
5101
5155
  type: "Error",
5102
5156
  content: _("unableToCopyToClipboard"),
5103
5157
  details: e.message
@@ -5107,14 +5161,14 @@ var Cr = /* @__PURE__ */ function(e) {
5107
5161
  onSmartUploadResult: o((e) => {
5108
5162
  let t = un(e) && dn(e.errorMessage) ? e.errorMessage : void 0;
5109
5163
  if (t) {
5110
- ll({ message: {
5164
+ fl({ message: {
5111
5165
  type: "Error",
5112
5166
  content: t || "Smart upload failed."
5113
5167
  } }, i);
5114
5168
  return;
5115
5169
  }
5116
5170
  if (!tn(e) || e.length < 2 || !$t(e, (e) => un(e) && $t(_n(e), dn))) {
5117
- ll({ message: {
5171
+ fl({ message: {
5118
5172
  type: "Error",
5119
5173
  content: "Smart upload returned unexpected format.",
5120
5174
  details: JSON.stringify(e)
@@ -5146,14 +5200,14 @@ var Cr = /* @__PURE__ */ function(e) {
5146
5200
  ]),
5147
5201
  deleteAllRows: x
5148
5202
  };
5149
- }, Sl = (e, t) => {
5203
+ }, Tl = (e, t) => {
5150
5204
  var n, r;
5151
- 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");
5205
+ let { fields: i, rows: a } = e, o = cl(i, (n = (r = e.units) == null ? void 0 : r.map((e) => e || "blank")) == null ? [] : n, a, { delimiter: " " }), s = new Blob([o], { type: "text/plain" }), c = document.createElement("a");
5152
5206
  c.href = window.URL.createObjectURL(s), c.download = `${t}.csv`, document.body.appendChild(c), c.click(), document.body.removeChild(c);
5153
- }, Cl = (e) => ln(e) && "modalKey" in e, wl = (e, t, n) => Zt(e, (e) => {
5207
+ }, El = (e) => ln(e) && "modalKey" in e, Dl = (e, t, n) => Zt(e, (e) => {
5154
5208
  if (tn(e) || !un(e)) return;
5155
5209
  let { modalKey: r } = e == null ? {} : e;
5156
- if (Cl(e) && typeof e.onClick != "function") {
5210
+ if (El(e) && typeof e.onClick != "function") {
5157
5211
  let i = () => {
5158
5212
  var e;
5159
5213
  n(r, !((e = t.modalVisibility) != null && e[r]));
@@ -5163,7 +5217,7 @@ var Cr = /* @__PURE__ */ function(e) {
5163
5217
  onClick: i
5164
5218
  };
5165
5219
  }
5166
- }), Tl = (e, t, n) => wl(e, t, n), El = {
5220
+ }), Ol = (e, t, n) => Dl(e, t, n), kl = {
5167
5221
  pastedText: "",
5168
5222
  parsedResult: {
5169
5223
  isValid: !1,
@@ -5178,9 +5232,9 @@ var Cr = /* @__PURE__ */ function(e) {
5178
5232
  reviewPasteModal: !1,
5179
5233
  helpModal: !1
5180
5234
  }
5181
- }, Dl = ({ config: e, smartUploadConfig: t, testId: n }) => {
5235
+ }, Al = ({ config: e, smartUploadConfig: t, testId: n }) => {
5182
5236
  var r, i, a, o;
5183
- 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({
5237
+ let { exportData: s, beforeExportData: c, prevalidationConfig: l, validationRules: u, title: d, translations: f, textOnly: p = !1, showImportOptions: g = !0, copyFromClipBoard: _ = !0, showDeleteOptions: b = !0, showHelpOption: x = !0, showUploadFileOption: S = !0, modals: C = [], dynamicOptions: w, onImportComplete: T } = e == null ? {} : e, [E, D] = m(kl), { modalVisibility: { smartUploadModal: O = !1, reviewPasteModal: k = !1, helpModal: A = !1 } } = E, { enabled: j, prompt: M = "", onClose: N, onError: P, service: F = () => Promise.resolve() } = t == null ? {} : t, I = xl(f), ee = vl(I, s, c), [L, te] = h(), ne = wl({
5184
5238
  config: e,
5185
5239
  state: E,
5186
5240
  setState: D,
@@ -5215,14 +5269,14 @@ var Cr = /* @__PURE__ */ function(e) {
5215
5269
  onClick: () => R("smartUploadModal", !O),
5216
5270
  testId: `${n}-smart-upload`
5217
5271
  }] : [],
5218
- ...Tl((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, R)
5272
+ ...Ol((r = w == null ? void 0 : w.importOptions) == null ? [] : r, E, R)
5219
5273
  ] : [], de = [
5220
5274
  {
5221
5275
  type: "Option",
5222
5276
  label: I("downloadFile"),
5223
5277
  onClick: async () => {
5224
5278
  let e = await ee();
5225
- e && e && Sl(e, d);
5279
+ e && e && Tl(e, d);
5226
5280
  }
5227
5281
  },
5228
5282
  ...p ? [{
@@ -5247,20 +5301,20 @@ var Cr = /* @__PURE__ */ function(e) {
5247
5301
  }]
5248
5302
  }
5249
5303
  }],
5250
- ...Tl((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, R)
5304
+ ...Ol((i = w == null ? void 0 : w.exportOptions) == null ? [] : i, E, R)
5251
5305
  ], fe = b ? [{
5252
5306
  type: "Option",
5253
5307
  label: I("deleteAllRows"),
5254
5308
  onClick: () => z(),
5255
5309
  testId: `${n}-delete-all-rows`
5256
- }, ...Tl((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, R)] : [], pe = x ? [
5310
+ }, ...Ol((a = w == null ? void 0 : w.deleteOptions) == null ? [] : a, E, R)] : [], pe = x ? [
5257
5311
  { type: "Divider" },
5258
5312
  {
5259
5313
  type: "Option",
5260
5314
  label: I("help"),
5261
5315
  onClick: () => R("helpModal", !A)
5262
5316
  },
5263
- ...Tl((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, R)
5317
+ ...Ol((o = w == null ? void 0 : w.helpOptions) == null ? [] : o, E, R)
5264
5318
  ] : [], me = [
5265
5319
  ...ue.length ? [{
5266
5320
  section: [...ue, ...pe],
@@ -5286,13 +5340,13 @@ var Cr = /* @__PURE__ */ function(e) {
5286
5340
  small: !0,
5287
5341
  dark: !0
5288
5342
  }),
5289
- me.map((e, t) => /* @__PURE__ */ v(ml, {
5343
+ me.map((e, t) => /* @__PURE__ */ v(_l, {
5290
5344
  sections: e.section,
5291
5345
  iconName: e.iconName,
5292
5346
  tooltip: e.tooltip,
5293
5347
  testId: `data-${e == null ? void 0 : e.name}-menu`
5294
5348
  }, t)),
5295
- k && /* @__PURE__ */ v(fl, {
5349
+ k && /* @__PURE__ */ v(hl, {
5296
5350
  config: e,
5297
5351
  state: E,
5298
5352
  updateState: ie,
@@ -5328,14 +5382,14 @@ var Cr = /* @__PURE__ */ function(e) {
5328
5382
  cancelText: I("cancel"),
5329
5383
  testId: n
5330
5384
  }),
5331
- /* @__PURE__ */ v(pl, {
5385
+ /* @__PURE__ */ v(gl, {
5332
5386
  modals: C,
5333
5387
  modalVisibility: E == null ? void 0 : E.modalVisibility,
5334
5388
  onCloseModal: ae,
5335
5389
  testId: n
5336
5390
  })
5337
5391
  ] });
5338
- }, Ol = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = pn, ...o }) => {
5392
+ }, jl = ({ file: e, accept: t, multi: n, name: r, disabled: i, onChange: a = pn, ...o }) => {
5339
5393
  let c = s(H), l = p(null), u = () => {
5340
5394
  var e;
5341
5395
  i || c || (e = l.current) == null || e.click();
@@ -5363,12 +5417,12 @@ var Cr = /* @__PURE__ */ function(e) {
5363
5417
  multiple: n,
5364
5418
  onChange: d
5365
5419
  })] });
5366
- }, kl = {
5420
+ }, Ml = {
5367
5421
  label: "_label_uxk69_1",
5368
5422
  labelLeft: "_labelLeft_uxk69_5",
5369
5423
  icons: "_icons_uxk69_13",
5370
5424
  small: "_small_uxk69_27"
5371
- }, Al = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5425
+ }, Nl = ({ label: e = null, width: t = "auto", helpText: n = "", helpTextMaxWidth: r = "300px", onClickHelp: i = void 0, lock: a = {
5372
5426
  visible: !1,
5373
5427
  active: !1,
5374
5428
  onClick: () => {},
@@ -5377,14 +5431,14 @@ var Cr = /* @__PURE__ */ function(e) {
5377
5431
  }, info: o, libraryIcon: s, labelLeft: c = !1, small: l = !1, textTransform: u = Dr.CAPITALIZE }) => {
5378
5432
  var d;
5379
5433
  return /* @__PURE__ */ v("div", {
5380
- className: g(kl.label, c ? kl.labelLeft : "", l ? kl.small : ""),
5434
+ className: g(Ml.label, c ? Ml.labelLeft : "", l ? Ml.small : ""),
5381
5435
  children: /* @__PURE__ */ y("label", {
5382
5436
  style: {
5383
5437
  textTransform: u,
5384
5438
  width: t || ""
5385
5439
  },
5386
5440
  children: [e, /* @__PURE__ */ y("div", {
5387
- className: kl.icons,
5441
+ className: Ml.icons,
5388
5442
  children: [
5389
5443
  (n || i) && /* @__PURE__ */ v(si, {
5390
5444
  text: n,
@@ -5410,23 +5464,23 @@ var Cr = /* @__PURE__ */ function(e) {
5410
5464
  })]
5411
5465
  })
5412
5466
  });
5413
- }, jl = {
5467
+ }, Pl = {
5414
5468
  field: "_field_1xoss_1",
5415
5469
  labelLeft: "_labelLeft_1xoss_5",
5416
5470
  fieldInput: "_fieldInput_1xoss_9",
5417
5471
  formRow: "_formRow_1xoss_12",
5418
5472
  "form-row": "_form-row_1xoss_13",
5419
5473
  button: "_button_1xoss_22"
5420
- }, Ml = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5474
+ }, Fl = ({ label: e, labelLeft: t = !1, labelWidth: n = "auto", children: r, helpText: i, helpTextMaxWidth: a = "300px", onClickHelp: o, lock: s = {
5421
5475
  visible: !1,
5422
5476
  active: !1,
5423
5477
  onClick: () => {},
5424
5478
  tooltip: "",
5425
5479
  testId: void 0
5426
5480
  }, info: c, libraryIcon: l, small: u = !1, testId: d, textTransform: f = Dr.CAPITALIZE }) => /* @__PURE__ */ y("div", {
5427
- className: g(jl.field, t ? jl.labelLeft : ""),
5481
+ className: g(Pl.field, t ? Pl.labelLeft : ""),
5428
5482
  "data-testid": d,
5429
- children: [(e || t) && /* @__PURE__ */ v(Al, {
5483
+ children: [(e || t) && /* @__PURE__ */ v(Nl, {
5430
5484
  label: e,
5431
5485
  width: n,
5432
5486
  helpText: i,
@@ -5439,10 +5493,10 @@ var Cr = /* @__PURE__ */ function(e) {
5439
5493
  small: u,
5440
5494
  textTransform: f
5441
5495
  }), /* @__PURE__ */ v("div", {
5442
- className: jl.fieldInput,
5496
+ className: Pl.fieldInput,
5443
5497
  children: r
5444
5498
  })]
5445
- }), 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", {
5499
+ }), Il = ({ alignItems: e = "initial", justifyContent: t = "initial", direction: n = "initial", height: r = "initial", width: i = "initial", children: a = null, wrap: o = !0, gap: s = !1 }) => /* @__PURE__ */ v("div", {
5446
5500
  style: {
5447
5501
  display: "flex",
5448
5502
  flexDirection: n,
@@ -5454,20 +5508,20 @@ var Cr = /* @__PURE__ */ function(e) {
5454
5508
  gap: s === !1 ? 0 : s === !0 ? "var(--padding)" : typeof s == "number" ? `${s}px` : s
5455
5509
  },
5456
5510
  children: a
5457
- }), Pl = { formRow: "_formRow_odewu_1" }, Fl = ({ children: e }) => /* @__PURE__ */ v("div", {
5458
- className: Pl.formRow,
5511
+ }), Ll = { formRow: "_formRow_odewu_1" }, Rl = ({ children: e }) => /* @__PURE__ */ v("div", {
5512
+ className: Ll.formRow,
5459
5513
  children: e
5460
- }), 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 }) => {
5514
+ }), zl = { grid: "_grid_obkz4_1" }, Bl = (e) => typeof e == "boolean" ? e ? "var(--padding)" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", Vl = (e) => typeof e == "number" ? `${e}px` : e || "initial", Hl = ({ rows: e = "initial", columns: t = "initial", columnsTablet: n = null, columnsMobile: r = null, gap: i = !1, height: a = "initial", children: o }) => {
5461
5515
  let s = {
5462
- "--grid-gap": Ll(i),
5463
- "--grid-rows": Rl(e),
5464
- "--grid-columns": Rl(t),
5465
- "--grid-height": Rl(a),
5466
- ...n != null && { "--grid-columns-tablet": Rl(n) },
5467
- ...r != null && { "--grid-columns-mobile": Rl(r) }
5516
+ "--grid-gap": Bl(i),
5517
+ "--grid-rows": Vl(e),
5518
+ "--grid-columns": Vl(t),
5519
+ "--grid-height": Vl(a),
5520
+ ...n != null && { "--grid-columns-tablet": Vl(n) },
5521
+ ...r != null && { "--grid-columns-mobile": Vl(r) }
5468
5522
  };
5469
5523
  return /* @__PURE__ */ v("div", {
5470
- className: Il.grid,
5524
+ className: zl.grid,
5471
5525
  style: s,
5472
5526
  children: o
5473
5527
  });
@@ -5514,15 +5568,15 @@ var Cr = /* @__PURE__ */ function(e) {
5514
5568
  hideScrollbar: "_hideScrollbar_1dcn1_67",
5515
5569
  noPointerEvents: "_noPointerEvents_1dcn1_309",
5516
5570
  virtualRows: "_virtualRows_1dcn1_312"
5517
- }, Bl = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
5571
+ }, Ul = ({ toggleNarrow: e, onClickToggleNarrow: t }) => e ? /* @__PURE__ */ v("a", {
5518
5572
  className: Z.toggleNarrow,
5519
5573
  onClick: t,
5520
5574
  children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_LEFT })
5521
- }) : null, Vl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
5575
+ }) : null, Wl = r(({ name: e, actions: t = [], toggleNarrow: n = !1, onToggleNarrow: r = () => {}, stickyHeader: i }, a) => /* @__PURE__ */ y("div", {
5522
5576
  ref: a,
5523
5577
  className: g(Z.header, i ? Z.stickyHeader : ""),
5524
5578
  children: [
5525
- /* @__PURE__ */ v(Bl, {
5579
+ /* @__PURE__ */ v(Ul, {
5526
5580
  toggleNarrow: n,
5527
5581
  onClickToggleNarrow: r
5528
5582
  }),
@@ -5542,14 +5596,14 @@ var Cr = /* @__PURE__ */ function(e) {
5542
5596
  })
5543
5597
  })
5544
5598
  ]
5545
- })), Hl = ({ label: e }) => e ? /* @__PURE__ */ v("span", {
5599
+ })), Gl = ({ label: e }) => e ? /* @__PURE__ */ v("span", {
5546
5600
  className: Z.label,
5547
5601
  children: /* @__PURE__ */ v(Pi, {
5548
5602
  color: e.color,
5549
5603
  title: e.value,
5550
5604
  small: e.small
5551
5605
  })
5552
- }) : null, Ul = ({ name: e, icon: t, testId: n }) => {
5606
+ }) : null, Kl = ({ name: e, icon: t, testId: n }) => {
5553
5607
  let r = t && /* @__PURE__ */ v(U, {
5554
5608
  icon: t.icon,
5555
5609
  color: t.color || "#db2828"
@@ -5569,8 +5623,8 @@ var Cr = /* @__PURE__ */ function(e) {
5569
5623
  children: r
5570
5624
  })]
5571
5625
  });
5572
- }, Wl = ({ item: e }) => {
5573
- let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ v(Ul, {
5626
+ }, ql = ({ item: e }) => {
5627
+ let { name: t, icon: n, details: r, metadata: i, invalid: a, testId: o } = e, s = /* @__PURE__ */ v(Kl, {
5574
5628
  name: t,
5575
5629
  icon: n,
5576
5630
  testId: o && `${o}-name`
@@ -5596,10 +5650,10 @@ var Cr = /* @__PURE__ */ function(e) {
5596
5650
  })
5597
5651
  ]
5598
5652
  });
5599
- }, Gl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
5653
+ }, Jl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ v(Pi, {
5600
5654
  color: "rgba(0,0,0,0.25)",
5601
5655
  title: e.metaCount
5602
- }), Kl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
5656
+ }), Yl = ({ item: e, expanding: t }) => /* @__PURE__ */ v(Wr, {
5603
5657
  expanded: !!t && !!e.active && !!e.content,
5604
5658
  children: /* @__PURE__ */ v("div", {
5605
5659
  className: Z.itemContent,
@@ -5608,7 +5662,7 @@ var Cr = /* @__PURE__ */ function(e) {
5608
5662
  },
5609
5663
  children: e.content
5610
5664
  })
5611
- }), ql = r(({ item: e, index: t }, n) => {
5665
+ }), Xl = r(({ item: e, index: t }, n) => {
5612
5666
  var r;
5613
5667
  let i = s(H), { actions: a, disabled: o, expanded: c, onClick: l, title: u, name: d, icon: f, testId: p } = e;
5614
5668
  return /* @__PURE__ */ v("div", {
@@ -5628,13 +5682,13 @@ var Cr = /* @__PURE__ */ function(e) {
5628
5682
  className: g(Z.expandIcon, c && Z.expanded),
5629
5683
  children: /* @__PURE__ */ v(U, { icon: V.CHEVRON_RIGHT })
5630
5684
  }),
5631
- /* @__PURE__ */ v(Ul, {
5685
+ /* @__PURE__ */ v(Kl, {
5632
5686
  name: d,
5633
5687
  icon: f
5634
5688
  }),
5635
5689
  /* @__PURE__ */ y("div", {
5636
5690
  className: Z.right,
5637
- children: [/* @__PURE__ */ v(Gl, { item: e }), !(o || i) && a && /* @__PURE__ */ v("div", {
5691
+ children: [/* @__PURE__ */ v(Jl, { item: e }), !(o || i) && a && /* @__PURE__ */ v("div", {
5638
5692
  className: Z.actions,
5639
5693
  children: /* @__PURE__ */ v(Ji, { actions: (r = e.actions) == null ? [] : r })
5640
5694
  })]
@@ -5642,7 +5696,7 @@ var Cr = /* @__PURE__ */ function(e) {
5642
5696
  ]
5643
5697
  }) })
5644
5698
  });
5645
- }), Jl = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
5699
+ }), Zl = r(({ item: e, index: t, expanding: n, invokeEditOnRowClick: r, draggable: i }, a) => {
5646
5700
  let o = s(H), c = (e, t, s, c, l, u) => {
5647
5701
  let d = t.actions && t.actions.find((e) => {
5648
5702
  var t;
@@ -5678,24 +5732,24 @@ var Cr = /* @__PURE__ */ function(e) {
5678
5732
  className: Z.indentIcon,
5679
5733
  children: /* @__PURE__ */ v(U, { icon: V.INDENT })
5680
5734
  }) : null,
5681
- /* @__PURE__ */ v(Hl, { label: t.label }),
5682
- /* @__PURE__ */ v(Wl, { item: t }),
5735
+ /* @__PURE__ */ v(Gl, { label: t.label }),
5736
+ /* @__PURE__ */ v(ql, { item: t }),
5683
5737
  /* @__PURE__ */ y("div", {
5684
5738
  className: Z.right,
5685
- children: [/* @__PURE__ */ v(Gl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ v("div", {
5739
+ children: [/* @__PURE__ */ v(Jl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ v("div", {
5686
5740
  className: Z.actions,
5687
5741
  children: /* @__PURE__ */ v(Ji, { actions: t.actions })
5688
5742
  })]
5689
5743
  })
5690
5744
  ]
5691
- }), /* @__PURE__ */ v(Kl, {
5745
+ }), /* @__PURE__ */ v(Yl, {
5692
5746
  item: t,
5693
5747
  expanding: n
5694
5748
  })]
5695
5749
  })
5696
5750
  }, e);
5697
5751
  };
5698
- return e.type === "Heading" ? /* @__PURE__ */ v(ql, {
5752
+ return e.type === "Heading" ? /* @__PURE__ */ v(Xl, {
5699
5753
  ref: a,
5700
5754
  item: e,
5701
5755
  index: t
@@ -5710,7 +5764,7 @@ var Cr = /* @__PURE__ */ function(e) {
5710
5764
  opacity: +!s
5711
5765
  }, n, r, i);
5712
5766
  })(t, e) : c(t, e);
5713
- }), Yl = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5767
+ }), Ql = ({ children: e, draggable: t, list: n, onListReorder: r }) => {
5714
5768
  let [i, a] = m(null), o = (e) => {
5715
5769
  a(e.active.id);
5716
5770
  }, s = (e) => {
@@ -5733,7 +5787,7 @@ var Cr = /* @__PURE__ */ function(e) {
5733
5787
  dropAnimation: null,
5734
5788
  children: /* @__PURE__ */ v("div", {
5735
5789
  className: Z.dragOverlay,
5736
- children: /* @__PURE__ */ v(Jl, {
5790
+ children: /* @__PURE__ */ v(Zl, {
5737
5791
  draggable: t,
5738
5792
  item: n.items[Number(i)],
5739
5793
  index: Number(i)
@@ -5741,7 +5795,7 @@ var Cr = /* @__PURE__ */ function(e) {
5741
5795
  })
5742
5796
  }), document.body)]
5743
5797
  }) : e;
5744
- }, Xl = ({ items: e, scrollDetails: t, children: n }) => {
5798
+ }, $l = ({ items: e, scrollDetails: t, children: n }) => {
5745
5799
  let { scrollable: r, hideScrollbar: i, triggerScrollToActiveItem: a, infiniteScroll: s } = t, l = p(null), u = ir({
5746
5800
  count: e.length,
5747
5801
  getScrollElement: () => l.current,
@@ -5771,9 +5825,9 @@ var Cr = /* @__PURE__ */ function(e) {
5771
5825
  children: n({ virtualizer: u })
5772
5826
  })
5773
5827
  });
5774
- }, Zl = ({ items: e, scrollDetails: t, children: n }) => {
5828
+ }, eu = ({ items: e, scrollDetails: t, children: n }) => {
5775
5829
  let { scrollable: r, hideScrollbar: i, infiniteScroll: a } = t;
5776
- return a ? /* @__PURE__ */ v(Xl, {
5830
+ return a ? /* @__PURE__ */ v($l, {
5777
5831
  items: e,
5778
5832
  scrollDetails: t,
5779
5833
  children: ({ virtualizer: e }) => n({ virtualizer: e })
@@ -5784,7 +5838,7 @@ var Cr = /* @__PURE__ */ function(e) {
5784
5838
  children: n({})
5785
5839
  })
5786
5840
  });
5787
- }, 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 = {
5841
+ }, tu = ({ list: e, bordered: t = !1, expanding: n = !1, narrow: r = !1, toggleNarrow: i = !1, onToggleNarrow: a = () => {}, invokeEditOnRowClick: o = !0, noHeader: s = !1, stickyHeader: c, draggable: l = !1, onListReorder: u = () => {}, marginBottom: d = 0, height: f, testId: p, scrollDetails: m = {
5788
5842
  scrollable: !1,
5789
5843
  hideScrollbar: !1,
5790
5844
  triggerScrollToActiveItem: !1,
@@ -5797,17 +5851,17 @@ var Cr = /* @__PURE__ */ function(e) {
5797
5851
  marginBottom: d
5798
5852
  },
5799
5853
  id: "scrollableDiv",
5800
- children: [!s && /* @__PURE__ */ v(Vl, {
5854
+ children: [!s && /* @__PURE__ */ v(Wl, {
5801
5855
  name: e.name,
5802
5856
  actions: e.actions,
5803
5857
  toggleNarrow: i,
5804
5858
  onToggleNarrow: a,
5805
5859
  stickyHeader: c
5806
- }), /* @__PURE__ */ v(Yl, {
5860
+ }), /* @__PURE__ */ v(Ql, {
5807
5861
  draggable: l,
5808
5862
  list: e,
5809
5863
  onListReorder: u,
5810
- children: /* @__PURE__ */ v(Zl, {
5864
+ children: /* @__PURE__ */ v(eu, {
5811
5865
  items: e.items,
5812
5866
  scrollDetails: m,
5813
5867
  children: ({ virtualizer: t }) => t ? t.getVirtualItems().map((r) => /* @__PURE__ */ v("div", {
@@ -5815,14 +5869,14 @@ var Cr = /* @__PURE__ */ function(e) {
5815
5869
  className: Z.virtualRow,
5816
5870
  style: { transform: `translateY(${r.start}px)` },
5817
5871
  ref: t.measureElement,
5818
- children: /* @__PURE__ */ v(Jl, {
5872
+ children: /* @__PURE__ */ v(Zl, {
5819
5873
  index: r.index,
5820
5874
  draggable: l,
5821
5875
  item: e.items[r.index],
5822
5876
  expanding: n,
5823
5877
  invokeEditOnRowClick: o
5824
5878
  })
5825
- }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Jl, {
5879
+ }, r.key)) : e.items.map((e, t) => /* @__PURE__ */ v("div", { children: /* @__PURE__ */ v(Zl, {
5826
5880
  index: t,
5827
5881
  draggable: l,
5828
5882
  item: e,
@@ -5831,7 +5885,7 @@ var Cr = /* @__PURE__ */ function(e) {
5831
5885
  }) }, t))
5832
5886
  })
5833
5887
  })]
5834
- }), $l = {
5888
+ }), nu = {
5835
5889
  loader: "_loader_477i5_1",
5836
5890
  fullViewPortSize: "_fullViewPortSize_477i5_7",
5837
5891
  cover: "_cover_477i5_14",
@@ -5839,33 +5893,33 @@ var Cr = /* @__PURE__ */ function(e) {
5839
5893
  content: "_content_477i5_44",
5840
5894
  text: "_text_477i5_49",
5841
5895
  details: "_details_477i5_53"
5842
- }, 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 }) => {
5896
+ }, ru = ({ width: e, height: t, text: n = "", details: r = "", fullViewPortSize: i = !1, cover: a = !1, children: o = null, theme: s = Or.DARK, testId: c = null }) => {
5843
5897
  let l = s === Or.DARK ? Or.WHITE : Or.INHERIT, u = s === "white" ? "var(--color-background-raised)" : s === "light" ? "var(--color-background)" : "black";
5844
5898
  return /* @__PURE__ */ v("div", {
5845
- className: g($l.loader, a ? $l.cover : "", { [$l.fullViewPortSize]: i }),
5899
+ className: g(nu.loader, a ? nu.cover : "", { [nu.fullViewPortSize]: i }),
5846
5900
  style: {
5847
5901
  width: e,
5848
5902
  height: t
5849
5903
  },
5850
5904
  "data-testid": c,
5851
5905
  children: /* @__PURE__ */ v("div", {
5852
- className: $l.dimmer,
5906
+ className: nu.dimmer,
5853
5907
  style: {
5854
5908
  background: u,
5855
5909
  color: l
5856
5910
  },
5857
5911
  children: /* @__PURE__ */ y("div", {
5858
- className: $l.content,
5912
+ className: nu.content,
5859
5913
  "data-testid": c && `${c}-content`,
5860
5914
  children: [
5861
5915
  o,
5862
5916
  n && /* @__PURE__ */ v("div", {
5863
- className: $l.text,
5917
+ className: nu.text,
5864
5918
  "data-testid": c && `${c}-text`,
5865
5919
  children: n
5866
5920
  }),
5867
5921
  r && /* @__PURE__ */ v("div", {
5868
- className: $l.details,
5922
+ className: nu.details,
5869
5923
  "data-testid": c && `${c}-details`,
5870
5924
  children: r
5871
5925
  })
@@ -5873,15 +5927,15 @@ var Cr = /* @__PURE__ */ function(e) {
5873
5927
  })
5874
5928
  })
5875
5929
  });
5876
- }, tu = {
5930
+ }, iu = {
5877
5931
  menu: "_menu_12x4u_1",
5878
5932
  header: "_header_12x4u_11",
5879
5933
  item: "_item_12x4u_27",
5880
5934
  heading: "_heading_12x4u_32"
5881
- }, nu = ({ option: e, onChange: t }) => {
5935
+ }, au = ({ option: e, onChange: t }) => {
5882
5936
  let { key: n, label: r, selected: i, testId: a } = e == null ? {} : e;
5883
5937
  return /* @__PURE__ */ v("div", {
5884
- className: tu.item,
5938
+ className: iu.item,
5885
5939
  children: /* @__PURE__ */ v(ci, {
5886
5940
  label: r,
5887
5941
  noMargin: !0,
@@ -5890,17 +5944,17 @@ var Cr = /* @__PURE__ */ function(e) {
5890
5944
  testId: a
5891
5945
  })
5892
5946
  }, n);
5893
- }, ru = ({ label: e }) => /* @__PURE__ */ v("div", {
5894
- className: tu.heading,
5947
+ }, ou = ({ label: e }) => /* @__PURE__ */ v("div", {
5948
+ className: iu.heading,
5895
5949
  children: e
5896
- }), iu = /* @__PURE__ */ function(e) {
5950
+ }), su = /* @__PURE__ */ function(e) {
5897
5951
  return e.HEADING = "Heading", e.DIVIDER = "Divider", e.DEFAULT = "Default", e;
5898
- }({}), au = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ y("div", {
5899
- className: g("menu", tu.menu),
5952
+ }({}), cu = ({ options: e, onChangeOptions: t, showHeader: n, maxHeight: r, testId: i }) => /* @__PURE__ */ y("div", {
5953
+ className: g("menu", iu.menu),
5900
5954
  style: { maxHeight: r },
5901
5955
  "data-testid": i ? `${i}-option-dropdown-layer` : void 0,
5902
5956
  children: [n && /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ y("div", {
5903
- className: tu.header,
5957
+ className: iu.header,
5904
5958
  children: [
5905
5959
  /* @__PURE__ */ v("a", {
5906
5960
  onClick: (n) => {
@@ -5932,9 +5986,9 @@ var Cr = /* @__PURE__ */ function(e) {
5932
5986
  ]
5933
5987
  }), /* @__PURE__ */ v(_a, { margin: 0 })] }), e.map((n, r) => {
5934
5988
  switch (n.type) {
5935
- case iu.HEADING: return /* @__PURE__ */ v(ru, { label: n.label }, r);
5936
- case iu.DIVIDER: return /* @__PURE__ */ v(_a, { margin: 0 }, r);
5937
- default: return /* @__PURE__ */ v(nu, {
5989
+ case su.HEADING: return /* @__PURE__ */ v(ou, { label: n.label }, r);
5990
+ case su.DIVIDER: return /* @__PURE__ */ v(_a, { margin: 0 }, r);
5991
+ default: return /* @__PURE__ */ v(au, {
5938
5992
  option: n,
5939
5993
  onChange: (r) => {
5940
5994
  let { value: i } = n;
@@ -5946,7 +6000,7 @@ var Cr = /* @__PURE__ */ function(e) {
5946
6000
  }, r);
5947
6001
  }
5948
6002
  })]
5949
- }), 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, {
6003
+ }), lu = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ v(Ki, {
5950
6004
  testId: c,
5951
6005
  disabled: t,
5952
6006
  menu: {
@@ -5955,7 +6009,7 @@ var Cr = /* @__PURE__ */ function(e) {
5955
6009
  label: n,
5956
6010
  trigger: Cr.DROP_DOWN_BUTTON,
5957
6011
  possiblePlacements: ["top-start", "bottom-start"],
5958
- sections: /* @__PURE__ */ v(au, {
6012
+ sections: /* @__PURE__ */ v(cu, {
5959
6013
  testId: c,
5960
6014
  options: r,
5961
6015
  onChangeOptions: (t, n) => {
@@ -5965,13 +6019,13 @@ var Cr = /* @__PURE__ */ function(e) {
5965
6019
  maxHeight: s
5966
6020
  })
5967
6021
  }
5968
- }), su = {
6022
+ }), uu = {
5969
6023
  page: "_page_beskc_1",
5970
6024
  scroll: "_scroll_beskc_23"
5971
- }, cu = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
6025
+ }, du = ({ children: e, left: t = "var(--size-sidebar)", padding: n = !0, scroll: r = !0, top: i = "var(--size-topbar)" }) => {
5972
6026
  let a = typeof n == "string" ? n : n === !0 ? "var(--padding)" : "0";
5973
6027
  return /* @__PURE__ */ v("div", {
5974
- className: g(su.page, r ? su.scroll : ""),
6028
+ className: g(uu.page, r ? uu.scroll : ""),
5975
6029
  style: {
5976
6030
  left: t,
5977
6031
  padding: a,
@@ -5979,12 +6033,12 @@ var Cr = /* @__PURE__ */ function(e) {
5979
6033
  },
5980
6034
  children: e
5981
6035
  });
5982
- }, lu = { printHeader: "_printHeader_o7xxx_1" }, uu = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ v("img", {
6036
+ }, fu = { printHeader: "_printHeader_o7xxx_1" }, pu = ({ logo: e, alt: t, logoWidth: n = "100px" }) => /* @__PURE__ */ v("img", {
5983
6037
  src: e,
5984
6038
  alt: t,
5985
- className: lu.printHeader,
6039
+ className: fu.printHeader,
5986
6040
  style: { width: n }
5987
- }), 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" }) => {
6041
+ }), mu = ({ name: e, label: t, options: n, value: r, onChange: i, disabled: a = !1, small: o = !1, noMargin: c = !1, onClick: l = () => {}, inline: u = !1, mainLabel: d = "", radioButtonsData: f, classForContainer: p = "grouped fields" }) => {
5988
6042
  let m = s(H), h = f !== void 0, { simpleInputs: _, options: b, selectedOptions: x } = h ? {
5989
6043
  simpleInputs: !1,
5990
6044
  options: f,
@@ -6015,44 +6069,44 @@ var Cr = /* @__PURE__ */ function(e) {
6015
6069
  }, n);
6016
6070
  })]
6017
6071
  });
6018
- }, fu = {
6072
+ }, hu = {
6019
6073
  richTextToolbar: "_richTextToolbar_1gbkk_1",
6020
6074
  richTextToolbarContainer: "_richTextToolbarContainer_1gbkk_5"
6021
- }, pu = /* @__PURE__ */ function(e) {
6075
+ }, gu = /* @__PURE__ */ function(e) {
6022
6076
  return e.BOLD = "bold", e.ITALIC = "italic", e.CODE = "code", e.UL = "ul", e.OL = "ol", e;
6023
- }({}), mu = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6077
+ }({}), _u = ({ editor: e, disabled: t = !1, toolbarComponent: n = null }) => {
6024
6078
  var r, i, a, o, s;
6025
6079
  let c = [
6026
6080
  {
6027
- icon: pu.BOLD,
6081
+ icon: gu.BOLD,
6028
6082
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBold().run(),
6029
6083
  active: (r = e == null ? void 0 : e.isActive("bold")) == null ? !1 : r
6030
6084
  },
6031
6085
  {
6032
- icon: pu.ITALIC,
6086
+ icon: gu.ITALIC,
6033
6087
  onClick: () => e == null ? void 0 : e.chain().focus().toggleItalic().run(),
6034
6088
  active: (i = e == null ? void 0 : e.isActive("italic")) == null ? !1 : i
6035
6089
  },
6036
6090
  {
6037
- icon: pu.CODE,
6091
+ icon: gu.CODE,
6038
6092
  onClick: () => e == null ? void 0 : e.chain().focus().toggleCode().run(),
6039
6093
  active: (a = e == null ? void 0 : e.isActive("code")) == null ? !1 : a
6040
6094
  },
6041
6095
  {
6042
- icon: pu.UL,
6096
+ icon: gu.UL,
6043
6097
  onClick: () => e == null ? void 0 : e.chain().focus().toggleBulletList().run(),
6044
6098
  active: (o = e == null ? void 0 : e.isActive("bulletList")) == null ? !1 : o
6045
6099
  },
6046
6100
  {
6047
- icon: pu.OL,
6101
+ icon: gu.OL,
6048
6102
  onClick: () => e == null ? void 0 : e.chain().focus().toggleOrderedList().run(),
6049
6103
  active: (s = e == null ? void 0 : e.isActive("orderedList")) == null ? !1 : s
6050
6104
  }
6051
6105
  ];
6052
6106
  return /* @__PURE__ */ y("div", {
6053
- className: fu.richTextToolbarContainer,
6107
+ className: hu.richTextToolbarContainer,
6054
6108
  children: [/* @__PURE__ */ v("div", {
6055
- className: fu.richTextToolbar,
6109
+ className: hu.richTextToolbar,
6056
6110
  children: c.map((e, n) => /* @__PURE__ */ v(K, {
6057
6111
  small: !0,
6058
6112
  round: !0,
@@ -6065,7 +6119,7 @@ var Cr = /* @__PURE__ */ function(e) {
6065
6119
  }, n))
6066
6120
  }), n]
6067
6121
  });
6068
- }, hu = {
6122
+ }, vu = {
6069
6123
  inputInTable: "_inputInTable_gb097_1",
6070
6124
  inputHover: "_inputHover_gb097_13",
6071
6125
  inputFocus: "_inputFocus_gb097_18",
@@ -6074,7 +6128,7 @@ var Cr = /* @__PURE__ */ function(e) {
6074
6128
  inputDisabled: "_inputDisabled_gb097_61",
6075
6129
  hideScrollbars: "_hideScrollbars_gb097_67",
6076
6130
  richTextInput: "_richTextInput_gb097_77"
6077
- }, gu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6131
+ }, yu = a(r(({ placeholder: e, onChange: t, value: n, disabled: r, toolbarComponent: i }, a) => {
6078
6132
  let o = s(H), u = r || o, d = fr({
6079
6133
  extensions: [
6080
6134
  pr,
@@ -6101,17 +6155,17 @@ var Cr = /* @__PURE__ */ function(e) {
6101
6155
  clearContent: () => d == null ? void 0 : d.commands.clearContent(!1),
6102
6156
  editor: d
6103
6157
  }), [d]), /* @__PURE__ */ y("div", {
6104
- className: hu.richTextInput,
6105
- children: [/* @__PURE__ */ v(mu, {
6158
+ className: vu.richTextInput,
6159
+ children: [/* @__PURE__ */ v(_u, {
6106
6160
  editor: d,
6107
6161
  disabled: u,
6108
6162
  toolbarComponent: i
6109
6163
  }), /* @__PURE__ */ v(dr, { editor: d })]
6110
6164
  });
6111
- })), _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 }) => {
6165
+ })), bu = { row: "_row_n16je_1" }, xu = ({ alignItems: t = "initial", justifyContent: n = "initial", children: r = null, flex: a = !1, height: o = "auto", marginBottom: s = "0", marginTop: c = "0", spacing: l = "var(--padding)", wrap: u = !1, testId: d = null }) => {
6112
6166
  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));
6113
6167
  return /* @__PURE__ */ v("div", {
6114
- className: g(_u.row),
6168
+ className: g(bu.row),
6115
6169
  style: {
6116
6170
  alignItems: t,
6117
6171
  justifyContent: n,
@@ -6127,7 +6181,7 @@ var Cr = /* @__PURE__ */ function(e) {
6127
6181
  "data-testid": d,
6128
6182
  children: p
6129
6183
  });
6130
- }, yu = {
6184
+ }, Su = {
6131
6185
  inputInTable: "_inputInTable_1oy1z_1",
6132
6186
  inputHover: "_inputHover_1oy1z_13",
6133
6187
  inputFocus: "_inputFocus_1oy1z_18",
@@ -6146,7 +6200,7 @@ var Cr = /* @__PURE__ */ function(e) {
6146
6200
  experimental: "_experimental_1oy1z_155",
6147
6201
  active: "_active_1oy1z_159",
6148
6202
  icon: "_icon_1oy1z_163"
6149
- }, bu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(W, {
6203
+ }, Cu = a(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(W, {
6150
6204
  text: t,
6151
6205
  enabled: !e,
6152
6206
  placement: "right-center",
@@ -6155,7 +6209,7 @@ var Cr = /* @__PURE__ */ function(e) {
6155
6209
  padding: "var(--padding-sm)",
6156
6210
  display: "block",
6157
6211
  children: /* @__PURE__ */ v("span", {
6158
- className: yu.icon,
6212
+ className: Su.icon,
6159
6213
  children: /* @__PURE__ */ v(Pi, {
6160
6214
  small: !0,
6161
6215
  title: r ? "!" : void 0,
@@ -6164,18 +6218,18 @@ var Cr = /* @__PURE__ */ function(e) {
6164
6218
  })
6165
6219
  })
6166
6220
  }), /* @__PURE__ */ v("span", {
6167
- className: yu.label,
6221
+ className: Su.label,
6168
6222
  children: t
6169
- })] }), (e, t) => er(e, t)), xu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
6170
- className: yu.list,
6223
+ })] }), (e, t) => er(e, t)), wu = ({ isOpen: e, items: t, sectionIndex: n, onClick: r, testId: i }) => /* @__PURE__ */ v("div", {
6224
+ className: Su.list,
6171
6225
  children: t.map((t, a) => {
6172
6226
  let o = `${n}_${a}`;
6173
6227
  return /* @__PURE__ */ v("a", {
6174
6228
  href: t.value,
6175
- className: g(yu.item, t.isActive ? yu.active : "", t.isExperimental ? yu.experimental : ""),
6229
+ className: g(Su.item, t.isActive ? Su.active : "", t.isExperimental ? Su.experimental : ""),
6176
6230
  onClick: (e) => r(e, t.value, t.label, t.onClick),
6177
6231
  "data-testid": i,
6178
- children: /* @__PURE__ */ v(bu, {
6232
+ children: /* @__PURE__ */ v(Cu, {
6179
6233
  label: t.label,
6180
6234
  icon: t.icon,
6181
6235
  invalid: t.invalid,
@@ -6183,16 +6237,16 @@ var Cr = /* @__PURE__ */ function(e) {
6183
6237
  }, o)
6184
6238
  }, o);
6185
6239
  })
6186
- }), Su = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ v(_, { children: n.map((n, i) => /* @__PURE__ */ y(e.Fragment, { children: [/* @__PURE__ */ v("h5", {
6187
- className: yu.subtitle,
6240
+ }), Tu = ({ isOpen: t, sections: n, onClick: r }) => /* @__PURE__ */ v(_, { children: n.map((n, i) => /* @__PURE__ */ y(e.Fragment, { children: [/* @__PURE__ */ v("h5", {
6241
+ className: Su.subtitle,
6188
6242
  children: n.heading.toUpperCase()
6189
- }), /* @__PURE__ */ v(xu, {
6243
+ }), /* @__PURE__ */ v(wu, {
6190
6244
  isOpen: t,
6191
6245
  items: n.items,
6192
6246
  sectionIndex: i,
6193
6247
  onClick: r,
6194
6248
  testId: n.testId
6195
- })] }, i)) }), Cu = a(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6249
+ })] }, i)) }), Eu = a(({ options: e, startOpen: t = !1, onShiftClickToggleOpen: n = () => {}, top: r }) => {
6196
6250
  let [i, a] = m(t), o = (e, t, n, r) => {
6197
6251
  e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), a(!1);
6198
6252
  }, s = e.sections.length > 0;
@@ -6213,13 +6267,13 @@ var Cr = /* @__PURE__ */ function(e) {
6213
6267
  icon: V.LEFT
6214
6268
  }),
6215
6269
  children: /* @__PURE__ */ v("div", {
6216
- className: g(yu.sidebar, i ? "" : yu.collapsed),
6270
+ className: g(Su.sidebar, i ? "" : Su.collapsed),
6217
6271
  children: s && /* @__PURE__ */ y("div", {
6218
- className: yu.inner,
6272
+ className: Su.inner,
6219
6273
  children: [/* @__PURE__ */ v("h4", {
6220
- className: yu.title,
6274
+ className: Su.title,
6221
6275
  children: e.title
6222
- }), /* @__PURE__ */ v(Su, {
6276
+ }), /* @__PURE__ */ v(Tu, {
6223
6277
  isOpen: i,
6224
6278
  sections: e.sections,
6225
6279
  onClick: o
@@ -6227,18 +6281,18 @@ var Cr = /* @__PURE__ */ function(e) {
6227
6281
  })
6228
6282
  })
6229
6283
  });
6230
- }, (e, t) => er(e, t)), wu = {
6284
+ }, (e, t) => er(e, t)), Du = {
6231
6285
  skeletonContainer: "_skeletonContainer_mcfxp_9",
6232
6286
  skeleton: "_skeleton_mcfxp_9"
6233
- }, Tu = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
6287
+ }, Ou = ({ count: e, width: t, height: n }) => /* @__PURE__ */ v(gr, {
6234
6288
  baseColor: "var(--color-skeleton-base)",
6235
6289
  highlightColor: "var(--color-skeleton-highlight)",
6236
- containerClassName: wu.skeletonContainer,
6237
- className: wu.skeleton,
6290
+ containerClassName: Du.skeletonContainer,
6291
+ className: Du.skeleton,
6238
6292
  count: e,
6239
6293
  width: t,
6240
6294
  height: n
6241
- }), Eu = {
6295
+ }), ku = {
6242
6296
  tabs: "_tabs_1y79t_1",
6243
6297
  padding: "_padding_1y79t_7",
6244
6298
  margin: "_margin_1y79t_11",
@@ -6249,12 +6303,12 @@ var Cr = /* @__PURE__ */ function(e) {
6249
6303
  disabled: "_disabled_1y79t_61",
6250
6304
  left: "_left_1y79t_65",
6251
6305
  right: "_right_1y79t_65"
6252
- }, Du = ({ label: e, url: t, hidden: n, disabled: r, active: i, onClick: a, right: o, invalid: s, badge: c, testId: l }) => {
6306
+ }, Au = ({ label: e, url: t, hidden: n, disabled: r, active: i, onClick: a, right: o, invalid: s, badge: c, testId: l }) => {
6253
6307
  let u = getComputedStyle(document.body).getPropertyValue("--color-text-error");
6254
6308
  return /* @__PURE__ */ v("a", {
6255
6309
  id: e == null ? void 0 : e.toString(),
6256
6310
  href: t,
6257
- className: g(Eu.item, i ? Eu.active : "", r ? Eu.disabled : "", n && !i ? Eu.hidden : "", o ? Eu.right : Eu.left),
6311
+ className: g(ku.item, i ? ku.active : "", r ? ku.disabled : "", n && !i ? ku.hidden : "", o ? ku.right : ku.left),
6258
6312
  onClick: a,
6259
6313
  "data-testid": l,
6260
6314
  children: s ? /* @__PURE__ */ v(Pi, {
@@ -6270,10 +6324,10 @@ var Cr = /* @__PURE__ */ function(e) {
6270
6324
  children: e
6271
6325
  }) : e
6272
6326
  });
6273
- }, Ou = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
6274
- className: g(n ? Eu.contentPadding : ""),
6327
+ }, ju = ({ children: e, activeTabIndex: t, contentPadding: n }) => Array.isArray(e) ? /* @__PURE__ */ v("div", {
6328
+ className: g(n ? ku.contentPadding : ""),
6275
6329
  children: e.map((e, n) => t === n && e)
6276
- }) : 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 }) => {
6330
+ }) : null, Mu = ({ name: e = void 0, options: t = null, children: n = null, value: r = void 0, onChange: i = pn, padding: a = !1, margin: o = !0, contentPadding: c = !0, onChangeTab: l, activeTabIndex: u = void 0, tabs: d = void 0, testId: f }) => {
6277
6331
  let p = s(H), m = l !== void 0, h = n ? n.map((e, t) => {
6278
6332
  var n;
6279
6333
  return {
@@ -6297,11 +6351,11 @@ var Cr = /* @__PURE__ */ function(e) {
6297
6351
  }
6298
6352
  };
6299
6353
  return b ? /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("div", {
6300
- className: g(Eu.tabs, a ? Eu.padding : "", o ? Eu.margin : ""),
6354
+ className: g(ku.tabs, a ? ku.padding : "", o ? ku.margin : ""),
6301
6355
  "data-testid": f,
6302
6356
  children: b.map((e, t) => {
6303
6357
  let { label: n, url: r, hidden: i, disabled: a, value: o, right: s, invalid: c, badge: l, testId: u } = e;
6304
- return /* @__PURE__ */ v(Du, {
6358
+ return /* @__PURE__ */ v(Au, {
6305
6359
  label: n,
6306
6360
  url: r,
6307
6361
  hidden: i,
@@ -6314,12 +6368,12 @@ var Cr = /* @__PURE__ */ function(e) {
6314
6368
  testId: u
6315
6369
  }, t);
6316
6370
  })
6317
- }), /* @__PURE__ */ v(Ou, {
6371
+ }), /* @__PURE__ */ v(ju, {
6318
6372
  activeTabIndex: w == null ? 0 : w,
6319
6373
  contentPadding: c,
6320
6374
  children: n
6321
6375
  })] }) : null;
6322
- }, Au = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ v(a, {
6376
+ }, Nu = ({ children: e, href: t = void 0, target: n = void 0, testId: r, onClick: i, component: a = "a" }) => /* @__PURE__ */ v(a, {
6323
6377
  href: t,
6324
6378
  to: t,
6325
6379
  target: n,
@@ -6329,7 +6383,7 @@ var Cr = /* @__PURE__ */ function(e) {
6329
6383
  link: !0,
6330
6384
  children: e
6331
6385
  })
6332
- }), ju = {
6386
+ }), Pu = {
6333
6387
  inputInTable: "_inputInTable_q0tl0_1",
6334
6388
  inputHover: "_inputHover_q0tl0_13",
6335
6389
  inputFocus: "_inputFocus_q0tl0_18",
@@ -6340,9 +6394,9 @@ var Cr = /* @__PURE__ */ function(e) {
6340
6394
  textarea: "_textarea_q0tl0_77",
6341
6395
  small: "_small_q0tl0_116",
6342
6396
  monospace: "_monospace_q0tl0_155"
6343
- }, 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 }) => {
6397
+ }, Fu = ({ name: e, value: t = "", placeholder: n = "", cols: r, rows: i, disabled: a = !1, onChange: o = pn, onKeyPress: c = pn, onFocus: l = pn, onBlur: u = pn, tabIndex: d = 0, error: f = null, warning: p = null, tooltip: m = null, maxTooltipWidth: h, resize: _, monospace: y = !1, small: b = !1, testId: x }) => {
6344
6398
  let S = s(H), C = /* @__PURE__ */ v("textarea", {
6345
- className: g(ju.textarea, f ? ju.error : "", p ? ju.warning : "", y ? ju.monospace : "", b ? ju.small : ""),
6399
+ className: g(Pu.textarea, f ? Pu.error : "", p ? Pu.warning : "", y ? Pu.monospace : "", b ? Pu.small : ""),
6346
6400
  name: e,
6347
6401
  value: t,
6348
6402
  placeholder: n,
@@ -6384,10 +6438,10 @@ var Cr = /* @__PURE__ */ function(e) {
6384
6438
  menu: "_menu_oyr59_139",
6385
6439
  active: "_active_oyr59_168",
6386
6440
  alert: "_alert_oyr59_193"
6387
- }, Nu = ({ warning: e }) => /* @__PURE__ */ v("div", {
6441
+ }, Iu = ({ warning: e }) => /* @__PURE__ */ v("div", {
6388
6442
  className: Q.alert,
6389
6443
  children: e
6390
- }), Pu = ({ icon: e, url: t, onClick: n }) => {
6444
+ }), Lu = ({ icon: e, url: t, onClick: n }) => {
6391
6445
  let r = /* @__PURE__ */ v(U, { icon: e });
6392
6446
  return t ? /* @__PURE__ */ v("a", {
6393
6447
  href: t,
@@ -6399,7 +6453,7 @@ var Cr = /* @__PURE__ */ function(e) {
6399
6453
  className: Q.appSwitcher,
6400
6454
  children: r
6401
6455
  });
6402
- }, Fu = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
6456
+ }, Ru = ({ label: e, logo: t, url: n, version: r, onClick: i }) => {
6403
6457
  let a = /* @__PURE__ */ y("div", {
6404
6458
  className: Q.title,
6405
6459
  children: [
@@ -6428,9 +6482,9 @@ var Cr = /* @__PURE__ */ function(e) {
6428
6482
  children: a
6429
6483
  })
6430
6484
  });
6431
- }, Iu = /* @__PURE__ */ function(e) {
6485
+ }, zu = /* @__PURE__ */ function(e) {
6432
6486
  return e.LINK = "Link", e.BUTTON = "Button", e.MENU = "Menu", e.COMPONENT = "Component", e;
6433
- }({}), Lu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
6487
+ }({}), Bu = ({ label: e, url: t, icon: n, onClick: r, active: i, disabled: a, testId: o, component: c = "a" }) => {
6434
6488
  let l = s(H);
6435
6489
  return /* @__PURE__ */ y(c, {
6436
6490
  className: g(Q.link, i ? Q.active : ""),
@@ -6447,11 +6501,11 @@ var Cr = /* @__PURE__ */ function(e) {
6447
6501
  children: e
6448
6502
  })]
6449
6503
  });
6450
- }, Ru = ({ element: e }) => {
6504
+ }, Vu = ({ element: e }) => {
6451
6505
  switch (e.type) {
6452
- case Iu.LINK: return /* @__PURE__ */ v("div", {
6506
+ case zu.LINK: return /* @__PURE__ */ v("div", {
6453
6507
  className: Q.item,
6454
- children: /* @__PURE__ */ v(Lu, {
6508
+ children: /* @__PURE__ */ v(Bu, {
6455
6509
  label: e.label,
6456
6510
  url: e.url,
6457
6511
  icon: e.icon,
@@ -6462,7 +6516,7 @@ var Cr = /* @__PURE__ */ function(e) {
6462
6516
  component: e.component
6463
6517
  })
6464
6518
  });
6465
- case Iu.BUTTON: return /* @__PURE__ */ v("div", {
6519
+ case zu.BUTTON: return /* @__PURE__ */ v("div", {
6466
6520
  className: g(Q.item, Q.button),
6467
6521
  children: /* @__PURE__ */ v(K, {
6468
6522
  label: e.label,
@@ -6474,7 +6528,7 @@ var Cr = /* @__PURE__ */ function(e) {
6474
6528
  testId: e.testId
6475
6529
  })
6476
6530
  });
6477
- case Iu.MENU: return /* @__PURE__ */ v("div", {
6531
+ case zu.MENU: return /* @__PURE__ */ v("div", {
6478
6532
  className: g(Q.item, Q.menu),
6479
6533
  children: /* @__PURE__ */ v(Ki, {
6480
6534
  maxHeight: "100%",
@@ -6482,7 +6536,7 @@ var Cr = /* @__PURE__ */ function(e) {
6482
6536
  trigger: Cr.COMPONENT,
6483
6537
  fullHeightTrigger: !0,
6484
6538
  placement: "bottom-start",
6485
- component: /* @__PURE__ */ v(Lu, {
6539
+ component: /* @__PURE__ */ v(Bu, {
6486
6540
  label: e.label,
6487
6541
  icon: e.icon,
6488
6542
  onClick: e.onClick
@@ -6491,50 +6545,50 @@ var Cr = /* @__PURE__ */ function(e) {
6491
6545
  }
6492
6546
  })
6493
6547
  });
6494
- case Iu.COMPONENT: return /* @__PURE__ */ v("div", {
6548
+ case zu.COMPONENT: return /* @__PURE__ */ v("div", {
6495
6549
  className: Q.item,
6496
6550
  children: e.component
6497
6551
  });
6498
6552
  default: return null;
6499
6553
  }
6500
- }, 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", {
6554
+ }, Hu = ({ title: e, appSwitcher: t, content: n = [], contentRight: r = [], warning: i = "", height: a = "var(--size-topbar)", fixedPosition: o = !0 }) => /* @__PURE__ */ y("div", { children: [i && /* @__PURE__ */ v(Iu, { warning: i }), /* @__PURE__ */ y("div", {
6501
6555
  className: g(Q.topbar, o ? Q.fixed : ""),
6502
6556
  style: { height: a },
6503
6557
  children: [
6504
- !!t && /* @__PURE__ */ v(Pu, {
6558
+ !!t && /* @__PURE__ */ v(Lu, {
6505
6559
  icon: t.icon,
6506
6560
  url: t.url,
6507
6561
  onClick: t.onClick
6508
6562
  }),
6509
6563
  /* @__PURE__ */ y("div", {
6510
6564
  className: Q.left,
6511
- children: [e && /* @__PURE__ */ v(Fu, {
6565
+ children: [e && /* @__PURE__ */ v(Ru, {
6512
6566
  label: e.label,
6513
6567
  logo: e.logo,
6514
6568
  url: e.url,
6515
6569
  version: e.version,
6516
6570
  onClick: e.onClick
6517
- }), n.map((e, t) => e ? /* @__PURE__ */ v(Ru, { element: e }, t) : null)]
6571
+ }), n.map((e, t) => e ? /* @__PURE__ */ v(Vu, { element: e }, t) : null)]
6518
6572
  }),
6519
6573
  /* @__PURE__ */ v("div", {
6520
6574
  className: Q.right,
6521
- children: r.map((e, t) => e ? /* @__PURE__ */ v(Ru, { element: e }, t) : null)
6575
+ children: r.map((e, t) => e ? /* @__PURE__ */ v(Vu, { element: e }, t) : null)
6522
6576
  })
6523
6577
  ]
6524
- })] }), Bu = {
6578
+ })] }), Uu = {
6525
6579
  popConfirm: "_popConfirm_1x6ye_1",
6526
6580
  content: "_content_1x6ye_7",
6527
6581
  buttons: "_buttons_1x6ye_13"
6528
- }, Vu = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ y("div", {
6529
- className: Bu.popConfirm,
6582
+ }, Wu = ({ title: e, okText: t, onClickOk: n, disableConfirmButton: r, cancelText: i, onClickCancel: a, close: o, testId: s }) => /* @__PURE__ */ y("div", {
6583
+ className: Uu.popConfirm,
6530
6584
  children: [e && /* @__PURE__ */ v("div", {
6531
- className: Bu.content,
6585
+ className: Uu.content,
6532
6586
  children: /* @__PURE__ */ v(ha, {
6533
6587
  small: !0,
6534
6588
  children: e
6535
6589
  })
6536
6590
  }), /* @__PURE__ */ y("div", {
6537
- className: Bu.buttons,
6591
+ className: Uu.buttons,
6538
6592
  children: [/* @__PURE__ */ v(K, {
6539
6593
  small: !0,
6540
6594
  colored: !0,
@@ -6549,8 +6603,8 @@ var Cr = /* @__PURE__ */ function(e) {
6549
6603
  testId: `${s}-cancel-button`
6550
6604
  })]
6551
6605
  })]
6552
- }), 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, {
6553
- content: /* @__PURE__ */ v(Vu, {
6606
+ }), Gu = ({ children: e, placement: t = "top-center", closeOnOutsideClick: n = !0, fullWidth: r = !1, title: i = "", cancelText: a = "Cancel", onClickCancel: o = (e) => e && e(), okText: s = "Ok", onClickOk: c = () => {}, disableConfirmButton: l = !1, overflowContainer: u = !1, testId: d = void 0 }) => /* @__PURE__ */ v(aa, {
6607
+ content: /* @__PURE__ */ v(Wu, {
6554
6608
  title: i,
6555
6609
  okText: s,
6556
6610
  onClickOk: c,
@@ -6565,14 +6619,14 @@ var Cr = /* @__PURE__ */ function(e) {
6565
6619
  overflowContainer: u,
6566
6620
  testId: d,
6567
6621
  children: e
6568
- }), Uu = {
6622
+ }), Ku = {
6569
6623
  tree: "_tree_coxxe_1",
6570
6624
  toggle: "_toggle_coxxe_8",
6571
6625
  dropTarget: "_dropTarget_coxxe_15",
6572
6626
  placeholder: "_placeholder_coxxe_30",
6573
6627
  draggingSource: "_draggingSource_coxxe_36",
6574
6628
  placeholderContainer: "_placeholderContainer_coxxe_39"
6575
- }, Wu = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
6629
+ }, qu = ({ node: t, depth: n, isOpen: r, onToggle: i, hasChild: a, draggable: o, icons: s, onDrop: c }) => {
6576
6630
  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) => {
6577
6631
  e.stopPropagation(), i(l);
6578
6632
  }, w = (e) => {
@@ -6599,7 +6653,7 @@ var Cr = /* @__PURE__ */ function(e) {
6599
6653
  className: g(Z.itemHeader, _ ? Z.noPointerEvents : ""),
6600
6654
  children: [
6601
6655
  a && /* @__PURE__ */ v("div", {
6602
- className: Uu.toggle,
6656
+ className: Ku.toggle,
6603
6657
  children: /* @__PURE__ */ v(K, {
6604
6658
  basic: !0,
6605
6659
  colored: r ? !0 : wr.MUTED,
@@ -6613,10 +6667,10 @@ var Cr = /* @__PURE__ */ function(e) {
6613
6667
  className: Z.drag,
6614
6668
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
6615
6669
  }),
6616
- /* @__PURE__ */ v(Wl, { item: u }),
6670
+ /* @__PURE__ */ v(ql, { item: u }),
6617
6671
  /* @__PURE__ */ y("div", {
6618
6672
  className: Z.right,
6619
- children: [/* @__PURE__ */ v(Gl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ v("div", {
6673
+ children: [/* @__PURE__ */ v(Jl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ v("div", {
6620
6674
  className: Z.actions,
6621
6675
  children: /* @__PURE__ */ v(Ji, { actions: h })
6622
6676
  })]
@@ -6624,10 +6678,10 @@ var Cr = /* @__PURE__ */ function(e) {
6624
6678
  ]
6625
6679
  })
6626
6680
  });
6627
- }, Gu = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ v("div", {
6628
- className: Uu.placeholder,
6681
+ }, Ju = ({ depth: e, indent: t = "var(--size-sm)" }) => /* @__PURE__ */ v("div", {
6682
+ className: Ku.placeholder,
6629
6683
  style: { left: `calc(${t} * ${e})` }
6630
- }), 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 }) => {
6684
+ }), Yu = ({ list: e, canDrop: t, draggable: n = !1, onListReorder: r, onChangeOpen: i, testId: a, isInitialOpen: o = !1, autoOpenActiveItems: s = !1, treeRef: l, itemHasChild: u, onItemToggle: d, icons: f, allowParentReassignment: m, stickyHeader: h, height: g, render: _, placeholderIndent: b }) => {
6631
6685
  var x;
6632
6686
  let S = l == null ? p(null) : l, C = (e) => {
6633
6687
  i && i(e);
@@ -6685,7 +6739,7 @@ var Cr = /* @__PURE__ */ function(e) {
6685
6739
  "data-testid": a,
6686
6740
  className: Z.list,
6687
6741
  style: { height: g },
6688
- children: [e.name && !e.noHeader && /* @__PURE__ */ v(Vl, {
6742
+ children: [e.name && !e.noHeader && /* @__PURE__ */ v(Wl, {
6689
6743
  name: e.name,
6690
6744
  actions: e.actions,
6691
6745
  stickyHeader: h
@@ -6712,7 +6766,7 @@ var Cr = /* @__PURE__ */ function(e) {
6712
6766
  hasChild: r,
6713
6767
  isOpen: a,
6714
6768
  onToggle: o
6715
- }) : /* @__PURE__ */ v(Wu, {
6769
+ }) : /* @__PURE__ */ v(qu, {
6716
6770
  hasChild: u ? u(e) : r,
6717
6771
  node: e,
6718
6772
  depth: t,
@@ -6728,7 +6782,7 @@ var Cr = /* @__PURE__ */ function(e) {
6728
6782
  onDrop: A,
6729
6783
  onChangeOpen: C,
6730
6784
  dropTargetOffset: 10,
6731
- placeholderRender: (e, { depth: t }) => /* @__PURE__ */ v(Gu, {
6785
+ placeholderRender: (e, { depth: t }) => /* @__PURE__ */ v(Ju, {
6732
6786
  depth: t,
6733
6787
  indent: b
6734
6788
  }),
@@ -6736,17 +6790,17 @@ var Cr = /* @__PURE__ */ function(e) {
6736
6790
  listComponent: "div",
6737
6791
  listItemComponent: "div",
6738
6792
  classes: {
6739
- root: Uu.tree,
6740
- draggingSource: Uu.draggingSource,
6741
- dropTarget: Uu.dropTarget,
6742
- placeholder: Uu.placeholderContainer
6793
+ root: Ku.tree,
6794
+ draggingSource: Ku.draggingSource,
6795
+ dropTarget: Ku.dropTarget,
6796
+ placeholder: Ku.placeholderContainer
6743
6797
  },
6744
6798
  initialOpen: o,
6745
6799
  enableAnimateExpand: !0
6746
6800
  })
6747
6801
  })]
6748
6802
  });
6749
- }, qu = {
6803
+ }, Xu = {
6750
6804
  treeTable: "_treeTable_1ywvy_1",
6751
6805
  treeTableHeader: "_treeTableHeader_1ywvy_22",
6752
6806
  folderCell: "_folderCell_1ywvy_30",
@@ -6754,48 +6808,48 @@ var Cr = /* @__PURE__ */ function(e) {
6754
6808
  drag: "_drag_1ywvy_31",
6755
6809
  folder: "_folder_1ywvy_30",
6756
6810
  active: "_active_1ywvy_61"
6757
- }, Ju = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Ju(e, t.id)]), Yu = (e, t) => {
6811
+ }, Zu = (e, t) => e.filter((e) => e.parent === t).flatMap((t) => [t.id, ...Zu(e, t.id)]), Qu = (e, t) => {
6758
6812
  let n = new Set(t);
6759
6813
  return e.filter((e) => !n.has(e.id)).map((e) => e.id);
6760
- }, Xu = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), Zu = (e, t, n, r = []) => {
6814
+ }, $u = (e, t, n) => e.filter((e) => n.has(e) || !t.has(e)), ed = (e, t, n, r = []) => {
6761
6815
  let i = new Set(n), a = new Set(r), o = e.filter((e) => e.parent === t && !a.has(e.id));
6762
6816
  if (o.length === 0) return {
6763
6817
  checked: i.has(t),
6764
6818
  indeterminate: !1
6765
6819
  };
6766
- 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;
6820
+ let s = o.map((t) => ed(e, t.id, n, r)), c = s.filter((e) => e.checked).length, l = s.filter((e) => e.indeterminate).length, u = c === o.length;
6767
6821
  return {
6768
6822
  checked: u,
6769
6823
  indeterminate: c + l > 0 && !u
6770
6824
  };
6771
- }, Qu = (e, t, n = []) => {
6772
- let r = Yu(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
6825
+ }, td = (e, t, n = []) => {
6826
+ let r = Qu(e, n), i = new Set(t), a = r.filter((e) => i.has(e)).length;
6773
6827
  return {
6774
6828
  checked: r.length > 0 && a === r.length,
6775
6829
  indeterminate: a > 0 && a < r.length
6776
6830
  };
6777
- }, $u = n(null), ed = () => s($u), td = ({ children: e, rowCheckboxes: t, rows: n }) => {
6831
+ }, nd = n(null), rd = () => s(nd), id = ({ children: e, rowCheckboxes: t, rows: n }) => {
6778
6832
  let r = t !== void 0, { checkedIds: i = [], disabledIds: a = [], getTooltip: s, onChange: c } = t == null ? {} : t, l = d(() => new Set(a), [a]), u = d(() => {
6779
6833
  if (!r) return null;
6780
6834
  let e = /* @__PURE__ */ new Map();
6781
- for (let t of n) e.set(t.id, Zu(n, t.id, i, a));
6835
+ for (let t of n) e.set(t.id, ed(n, t.id, i, a));
6782
6836
  return e;
6783
6837
  }, [
6784
6838
  i,
6785
6839
  a,
6786
6840
  r,
6787
6841
  n
6788
- ]), f = d(() => r ? Qu(n, i, a) : void 0, [
6842
+ ]), f = d(() => r ? td(n, i, a) : void 0, [
6789
6843
  i,
6790
6844
  a,
6791
6845
  r,
6792
6846
  n
6793
6847
  ]), 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) => {
6794
6848
  if (!r || l.has(e)) return;
6795
- let t = Ju(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = Zu(n, e, i, a);
6849
+ let t = Zu(n, e), o = [e, ...t.filter((e) => !l.has(e))], s = [e, ...t], { checked: u } = ed(n, e, i, a);
6796
6850
  if (u) {
6797
6851
  let e = new Set(s);
6798
- c == null || c(Xu(i, e, l));
6852
+ c == null || c($u(i, e, l));
6799
6853
  } else c == null || c([...new Set([...i, ...o])]);
6800
6854
  }, [
6801
6855
  i,
@@ -6806,7 +6860,7 @@ var Cr = /* @__PURE__ */ function(e) {
6806
6860
  n
6807
6861
  ]), _ = o(() => {
6808
6862
  if (!r) return;
6809
- let e = Yu(n, a), { checked: t } = Qu(n, i, a);
6863
+ let e = Qu(n, a), { checked: t } = td(n, i, a);
6810
6864
  t ? c == null || c(i.filter((e) => l.has(e))) : c == null || c([...new Set([...i, ...e])]);
6811
6865
  }, [
6812
6866
  i,
@@ -6832,12 +6886,12 @@ var Cr = /* @__PURE__ */ function(e) {
6832
6886
  _,
6833
6887
  g
6834
6888
  ]);
6835
- return /* @__PURE__ */ v($u.Provider, {
6889
+ return /* @__PURE__ */ v(nd.Provider, {
6836
6890
  value: y,
6837
6891
  children: e
6838
6892
  });
6839
- }, 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 }) => {
6840
- 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) => {
6893
+ }, ad = ({ columnAlignment: e, columnWidths: t, depth: n, draggable: r, handleRef: i, hasChild: a, hasRowActions: o, icons: s, isOpen: c, node: l, onDragEnter: u, onDragOver: d, onDragLeave: f, onDrop: p, onToggle: m }) => {
6894
+ let h = rd(), _ = h != null && h.enabled ? h.getRowCheckState(l.id) : void 0, b = _ == null ? void 0 : _.checked, x = _ == null ? void 0 : _.indeterminate, S = h == null ? void 0 : h.isRowCheckDisabled(l.id), C = h == null ? void 0 : h.enabled, { data: w, droppable: T } = l, { id: E, cells: D, testId: O, actions: k = [], active: A, onRowClick: j } = w, M = T || a, N = (e) => {
6841
6895
  let r = t ? t[e] : void 0;
6842
6896
  return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
6843
6897
  };
@@ -6850,7 +6904,7 @@ var Cr = /* @__PURE__ */ function(e) {
6850
6904
  onDragLeave: f,
6851
6905
  children: /* @__PURE__ */ v("tbody", { children: /* @__PURE__ */ y("tr", {
6852
6906
  onClick: j,
6853
- className: g(qu.treeTableRow, A ? qu.active : void 0),
6907
+ className: g(Xu.treeTableRow, A ? Xu.active : void 0),
6854
6908
  children: [
6855
6909
  C && /* @__PURE__ */ v(pc, {
6856
6910
  isHeader: !1,
@@ -6864,19 +6918,19 @@ var Cr = /* @__PURE__ */ function(e) {
6864
6918
  }
6865
6919
  }),
6866
6920
  r && /* @__PURE__ */ v("td", {
6867
- className: qu.dragCell,
6921
+ className: Xu.dragCell,
6868
6922
  children: /* @__PURE__ */ v("div", {
6869
- className: qu.drag,
6923
+ className: Xu.drag,
6870
6924
  onClick: (e) => e.stopPropagation(),
6871
6925
  ref: i,
6872
6926
  children: /* @__PURE__ */ v(U, { icon: V.DRAG })
6873
6927
  })
6874
6928
  }),
6875
- Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: qu.folderCell }, t)),
6929
+ Array.from({ length: n }).map((e, t) => /* @__PURE__ */ v("td", { className: Xu.folderCell }, t)),
6876
6930
  M && /* @__PURE__ */ v("td", {
6877
- className: qu.folderCell,
6931
+ className: Xu.folderCell,
6878
6932
  children: /* @__PURE__ */ v("div", {
6879
- className: qu.folder,
6933
+ className: Xu.folder,
6880
6934
  onClick: () => m(E),
6881
6935
  onMouseDown: (e) => e.stopPropagation(),
6882
6936
  children: /* @__PURE__ */ v(K, {
@@ -6905,10 +6959,10 @@ var Cr = /* @__PURE__ */ function(e) {
6905
6959
  ]
6906
6960
  }) })
6907
6961
  });
6908
- }, rd = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
6909
- let a = ed(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
6962
+ }, od = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
6963
+ let a = rd(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
6910
6964
  return /* @__PURE__ */ v("table", {
6911
- className: g(mo.table, qu.treeTableHeader),
6965
+ className: g(mo.table, Xu.treeTableHeader),
6912
6966
  children: /* @__PURE__ */ v("thead", { children: i.map((i, c) => /* @__PURE__ */ y("tr", { children: [
6913
6967
  s && c === 0 ? /* @__PURE__ */ v(pc, {
6914
6968
  isHeader: !0,
@@ -6919,7 +6973,7 @@ var Cr = /* @__PURE__ */ function(e) {
6919
6973
  onChange: a.toggleHeaderCheck
6920
6974
  }
6921
6975
  }) : s ? /* @__PURE__ */ v("td", {}) : null,
6922
- n && /* @__PURE__ */ v("th", { className: qu.dragCell }),
6976
+ n && /* @__PURE__ */ v("th", { className: Xu.dragCell }),
6923
6977
  i.cells.map((n, r) => /* @__PURE__ */ v(pc, {
6924
6978
  isHeader: !0,
6925
6979
  cell: n,
@@ -6936,22 +6990,22 @@ var Cr = /* @__PURE__ */ function(e) {
6936
6990
  })
6937
6991
  ] }, c)) })
6938
6992
  });
6939
- }, 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 }) => {
6993
+ }, sd = ({ allowParentReassignment: e, autoOpenActiveItems: t = !1, canDrop: n, draggable: r = !1, icons: i, isInitialOpen: a = !1, itemHasChild: o, onItemToggle: s, onListReorder: c, onChangeOpen: l, rowCheckboxes: u, table: d, testId: f, treeRef: p }) => {
6940
6994
  let { columnAlignment: m, columnWidths: h, fixedWidth: g, headers: _, rows: b = [] } = d, x = Fs(b, _ == null ? [] : _);
6941
- return /* @__PURE__ */ v(td, {
6995
+ return /* @__PURE__ */ v(id, {
6942
6996
  rowCheckboxes: u,
6943
6997
  rows: b,
6944
6998
  children: /* @__PURE__ */ y("div", {
6945
- className: qu.treeTable,
6999
+ className: Xu.treeTable,
6946
7000
  "data-testid": f,
6947
7001
  style: { width: g },
6948
- children: [!!_ && /* @__PURE__ */ v(rd, {
7002
+ children: [!!_ && /* @__PURE__ */ v(od, {
6949
7003
  columnAlignment: m,
6950
7004
  columnWidths: h,
6951
7005
  draggable: r,
6952
7006
  hasRowActions: x,
6953
7007
  headers: _
6954
- }), /* @__PURE__ */ v(Ku, {
7008
+ }), /* @__PURE__ */ v(Yu, {
6955
7009
  allowParentReassignment: e,
6956
7010
  autoOpenActiveItems: t,
6957
7011
  canDrop: n,
@@ -6967,7 +7021,7 @@ var Cr = /* @__PURE__ */ function(e) {
6967
7021
  onItemToggle: s,
6968
7022
  onListReorder: c,
6969
7023
  placeholderIndent: "var(--size)",
6970
- render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(nd, {
7024
+ render: (e, { depth: t, draggable: n, handleRef: r, hasChild: a, isOpen: o, onToggle: s }) => /* @__PURE__ */ v(ad, {
6971
7025
  node: e,
6972
7026
  columnAlignment: m,
6973
7027
  columnWidths: h,
@@ -6984,38 +7038,38 @@ var Cr = /* @__PURE__ */ function(e) {
6984
7038
  })]
6985
7039
  })
6986
7040
  });
6987
- }, ad = () => {
7041
+ }, cd = () => {
6988
7042
  let e = p(null);
6989
7043
  return u(() => {
6990
7044
  e.current && (e.current(), e.current = null);
6991
7045
  }), (t) => {
6992
7046
  e.current = t;
6993
7047
  };
6994
- }, od = (e) => {
7048
+ }, ld = (e) => {
6995
7049
  let t = p(void 0);
6996
7050
  return c(() => {
6997
7051
  t.current = e;
6998
7052
  }, [e]), t.current;
6999
- }, sd = (e, t) => {
7053
+ }, ud = (e, t) => {
7000
7054
  let n = t == null ? void 0 : t[e];
7001
7055
  if (!n) {
7002
7056
  var r;
7003
7057
  return console.log(`Warning: 'unitTemplate' missing for '${e}'. Using initial unit, preferred unit or value unit.`), (r = Un(e)) == null ? "" : r;
7004
7058
  }
7005
7059
  return n;
7006
- }, cd = /* @__PURE__ */ function(e) {
7060
+ }, dd = /* @__PURE__ */ function(e) {
7007
7061
  return e.CUSTOM = "custom", e.PREDEFINED = "predefined", e;
7008
- }({}), ld = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), ud = (e) => {
7062
+ }({}), fd = (e) => e === "undefined" || e === void 0 || e === "" || e === "null" || e === null || e === "NaN" || isNaN(e), pd = (e) => {
7009
7063
  if (!e) return !1;
7010
7064
  let t = Dn(e);
7011
7065
  return !xn.includes(t);
7012
- }, dd = ({ value: e, unitkey: t, toUnit: n }) => {
7066
+ }, md = ({ value: e, unitkey: t, toUnit: n }) => {
7013
7067
  var r;
7014
7068
  let i = bn[t];
7015
7069
  if (!i || i.length === 0 || !((r = Wn(e)) != null && r.valid) || !i.includes(n)) return !1;
7016
7070
  let a = Dn(String(e));
7017
7071
  return !(a && !i.includes(a));
7018
- }, fd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
7072
+ }, hd = ({ value: e, unitkey: t, toUnit: n, fromUnit: r, doNotConvertValue: i = !1, exactPrecision: a = !1 }) => {
7019
7073
  var o;
7020
7074
  let s = Nn(e) ? kn(e) : e, c = [Infinity, -Infinity].includes(Number(s));
7021
7075
  if (i || c) return {
@@ -7035,13 +7089,13 @@ var Cr = /* @__PURE__ */ function(e) {
7035
7089
  value: void 0,
7036
7090
  error: "Source unit is missing"
7037
7091
  };
7038
- if (ld(s)) return {
7092
+ if (fd(s)) return {
7039
7093
  value: void 0,
7040
7094
  error: "Value is invalid for conversion"
7041
7095
  };
7042
7096
  try {
7043
7097
  let e = Kn(s, l);
7044
- return dd({
7098
+ return md({
7045
7099
  value: e,
7046
7100
  toUnit: n,
7047
7101
  unitkey: t
@@ -7058,13 +7112,13 @@ var Cr = /* @__PURE__ */ function(e) {
7058
7112
  error: "Conversion not possible"
7059
7113
  };
7060
7114
  }
7061
- }, pd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
7062
- let a = kn(e), o = ld(a);
7063
- return !dd({
7115
+ }, gd = ({ value: e = "", toUnit: t, unitkey: n, defaultFromUnit: r, doNotConvertValue: i }) => {
7116
+ let a = kn(e), o = fd(a);
7117
+ return !md({
7064
7118
  value: e,
7065
7119
  unitkey: n,
7066
7120
  toUnit: t
7067
- }) || ud(e) || o ? { value: a } : Nn(e) ? fd({
7121
+ }) || pd(e) || o ? { value: a } : Nn(e) ? hd({
7068
7122
  value: e,
7069
7123
  unitkey: n,
7070
7124
  toUnit: t,
@@ -7072,25 +7126,25 @@ var Cr = /* @__PURE__ */ function(e) {
7072
7126
  doNotConvertValue: i,
7073
7127
  exactPrecision: !0
7074
7128
  }) : { value: e };
7075
- }, 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) => {
7129
+ }, _d = (e) => ln(e) && !tn(e) && !on(e) ? en(e, "fieldName", "") : typeof e == "string" ? e : "", vd = (e = "") => xn == null ? void 0 : xn.includes(e), yd = (e, t) => {
7076
7130
  let n = Dn(e || "");
7077
- return hd(t) && hd(n);
7078
- }, _d = n(null), vd = () => s(_d), yd = !1, bd = (e) => {
7079
- yd || (yd = !0, _d = e);
7080
- }, xd = (e) => jn(e) ? e : Fn(e), Sd = {
7131
+ return vd(t) && vd(n);
7132
+ }, bd = n(null), xd = () => s(bd), Sd = !1, Cd = (e) => {
7133
+ Sd || (Sd = !0, bd = e);
7134
+ }, wd = (e) => jn(e) ? e : Fn(e), Td = {
7081
7135
  predefinedMenuActive: "_predefinedMenuActive_ye9w9_1",
7082
7136
  inputWrapper: "_inputWrapper_ye9w9_4"
7083
- }, 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 = () => ({
7137
+ }, Ed = ({ name: e, placeholder: t = "", disabled: n = !1, disabledUnit: r = !1, error: i = null, left: a = !1, small: o = !1, width: s = "100%", value: l, unitkey: u = "", initUnit: f, noConversion: p = !1, onChange: h = pn, onClick: b = pn, onFocus: x = pn, onSwitchUnit: S = pn, unitTemplate: C, testId: w, warning: T = null, predefinedOptions: E, initialPredefinedOption: D = !1, shouldLinkAutomaticly: O = !0, selectedPredefinedOptionKey: k, validationCallback: A = () => ({
7084
7138
  name: "",
7085
7139
  error: null
7086
7140
  }), 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 }) => {
7087
- let ne = vd(), re = ad();
7141
+ let ne = xd(), re = cd();
7088
7142
  typeof l == "number" && (l = `${l}`);
7089
- let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => sd(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
7143
+ let [ie = "", ae = ""] = l === void 0 ? [] : zn(l), R = d(() => ud(u, C || (ne == null ? void 0 : ne.unitTemplate)), [
7090
7144
  u,
7091
7145
  C,
7092
7146
  ne == null ? void 0 : ne.unitTemplate
7093
- ]), oe = gd(l, R), se = f || R || ae, ce = od(se), { value: le } = pd({
7147
+ ]), oe = yd(l, R), se = f || R || ae, ce = ld(se), { value: le } = gd({
7094
7148
  value: l,
7095
7149
  toUnit: se,
7096
7150
  unitkey: u,
@@ -7102,10 +7156,10 @@ var Cr = /* @__PURE__ */ function(e) {
7102
7156
  } : {
7103
7157
  value: le,
7104
7158
  unit: se
7105
- }), 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) => {
7159
+ }), de = M || (z == null ? void 0 : z.value) === void 0, [fe, pe] = m(D ? dd.PREDEFINED : dd.CUSTOM), me = !!(j || n), he = E && E.find((e) => {
7106
7160
  if (!(e != null && e.value)) return;
7107
7161
  if (k) return k === e.valueKey;
7108
- let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = fd({
7162
+ let t = Nn(e.value) ? Dn(e.value) : "", { value: n = l } = hd({
7109
7163
  value: String(l),
7110
7164
  unitkey: u,
7111
7165
  toUnit: t
@@ -7114,7 +7168,7 @@ var Cr = /* @__PURE__ */ function(e) {
7114
7168
  }), ge = () => {
7115
7169
  var e;
7116
7170
  let t = (e = l) == null ? "" : e, n = z.unit;
7117
- if (!dd({
7171
+ if (!md({
7118
7172
  value: t,
7119
7173
  unitkey: u,
7120
7174
  toUnit: n
@@ -7128,7 +7182,7 @@ var Cr = /* @__PURE__ */ function(e) {
7128
7182
  return null;
7129
7183
  }
7130
7184
  }, _e = (t) => {
7131
- let n = md(e), r = t.target, { value: i, selectionStart: a } = r, o = Kn(i, (z == null ? void 0 : z.unit) || "");
7185
+ let n = _d(e), r = t.target, { value: i, selectionStart: a } = r, o = Kn(i, (z == null ? void 0 : z.unit) || "");
7132
7186
  h({ target: {
7133
7187
  value: N ? Kn(wn(o, ae), ae) : o,
7134
7188
  name: n
@@ -7150,7 +7204,7 @@ var Cr = /* @__PURE__ */ function(e) {
7150
7204
  if (se) {
7151
7205
  let e, t = "";
7152
7206
  if (ce !== se) {
7153
- let { value: n } = pd({
7207
+ let { value: n } = gd({
7154
7208
  value: l,
7155
7209
  toUnit: se,
7156
7210
  unitkey: u,
@@ -7159,7 +7213,7 @@ var Cr = /* @__PURE__ */ function(e) {
7159
7213
  });
7160
7214
  e = n, t = se;
7161
7215
  } else if (Kn(z.value, z.unit) !== l) {
7162
- let { value: n } = pd({
7216
+ let { value: n } = gd({
7163
7217
  value: l,
7164
7218
  toUnit: z.unit,
7165
7219
  unitkey: u,
@@ -7171,7 +7225,7 @@ var Cr = /* @__PURE__ */ function(e) {
7171
7225
  e !== void 0 && ue({
7172
7226
  value: e,
7173
7227
  unit: t
7174
- }), pe(E && he && O ? cd.PREDEFINED : cd.CUSTOM);
7228
+ }), pe(E && he && O ? dd.PREDEFINED : dd.CUSTOM);
7175
7229
  }
7176
7230
  }, [
7177
7231
  se,
@@ -7179,14 +7233,14 @@ var Cr = /* @__PURE__ */ function(e) {
7179
7233
  i,
7180
7234
  O
7181
7235
  ]);
7182
- let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = md(e), Ce, we = (t) => {
7236
+ let ye = ge(), be = Pn(z.unit) || z.unit || "", xe = p || !ye || ye && ye.length === 1, Se = _d(e), Ce, we = (t) => {
7183
7237
  let r = t != null && t.value ? t.value : "", [i = "", a = ""] = Nn(r) ? zn(r) : [r], o = Gn(r);
7184
- if (dd({
7238
+ if (md({
7185
7239
  value: r,
7186
7240
  unitkey: u,
7187
7241
  toUnit: a
7188
7242
  })) {
7189
- let { value: e = "" } = pd({
7243
+ let { value: e = "" } = gd({
7190
7244
  value: r,
7191
7245
  toUnit: R,
7192
7246
  unitkey: u,
@@ -7199,7 +7253,7 @@ var Cr = /* @__PURE__ */ function(e) {
7199
7253
  type: xi.OPTION,
7200
7254
  inline: !0,
7201
7255
  onClick: () => {
7202
- Wn(i).valid && !n && (pe(cd.PREDEFINED), h({ target: {
7256
+ Wn(i).valid && !n && (pe(dd.PREDEFINED), h({ target: {
7203
7257
  value: r,
7204
7258
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || "",
7205
7259
  predefinedSelected: !0,
@@ -7211,27 +7265,27 @@ var Cr = /* @__PURE__ */ function(e) {
7211
7265
  height: "0"
7212
7266
  })] }),
7213
7267
  description: o,
7214
- selected: he === t && fe === cd.PREDEFINED
7268
+ selected: he === t && fe === dd.PREDEFINED
7215
7269
  };
7216
7270
  };
7217
7271
  if (Ce = [{
7218
7272
  type: xi.OPTION,
7219
7273
  inline: !0,
7220
7274
  onClick: () => {
7221
- fe !== cd.CUSTOM && !n && h({ target: {
7275
+ fe !== dd.CUSTOM && !n && h({ target: {
7222
7276
  value: Kn(z.value, z.unit),
7223
7277
  name: typeof e == "string" ? e : (e == null ? void 0 : e.fieldName) || ""
7224
7278
  } });
7225
7279
  },
7226
7280
  label: "Custom",
7227
- selected: fe === cd.CUSTOM
7281
+ selected: fe === dd.CUSTOM
7228
7282
  }], E != null && E.length) {
7229
7283
  let e = E.map(we);
7230
7284
  Ce = [...Ce, ...e];
7231
7285
  }
7232
7286
  let Te = (e) => {
7233
7287
  if (Nn(e)) {
7234
- let t = Dn(e), { value: n } = pd({
7288
+ let t = Dn(e), { value: n } = gd({
7235
7289
  value: e,
7236
7290
  toUnit: z.unit,
7237
7291
  unitkey: u,
@@ -7243,7 +7297,7 @@ var Cr = /* @__PURE__ */ function(e) {
7243
7297
  return e;
7244
7298
  }, Ee = !E && (!L || L === B.FIRST) ? B.FIRST : B.MIDDLE, De = !L || L === B.LAST ? B.LAST : B.MIDDLE;
7245
7299
  return /* @__PURE__ */ v("div", {
7246
- className: fe === cd.PREDEFINED ? g(Sd.predefinedMenuActive) : "",
7300
+ className: fe === dd.PREDEFINED ? g(Td.predefinedMenuActive) : "",
7247
7301
  children: /* @__PURE__ */ y(Ma, {
7248
7302
  small: o,
7249
7303
  width: s,
@@ -7258,17 +7312,17 @@ var Cr = /* @__PURE__ */ function(e) {
7258
7312
  trigger: "Component",
7259
7313
  component: /* @__PURE__ */ v(K, {
7260
7314
  groupOrder: "first",
7261
- active: fe === cd.PREDEFINED,
7262
- icon: fe === cd.PREDEFINED ? "link" : "unlink",
7315
+ active: fe === dd.PREDEFINED,
7316
+ icon: fe === dd.PREDEFINED ? "link" : "unlink",
7263
7317
  small: o
7264
7318
  }),
7265
7319
  small: o,
7266
7320
  sections: Ce
7267
7321
  },
7268
- tooltip: fe === cd.PREDEFINED ? he == null ? void 0 : he.label : ""
7322
+ tooltip: fe === dd.PREDEFINED ? he == null ? void 0 : he.label : ""
7269
7323
  }),
7270
7324
  /* @__PURE__ */ v("div", {
7271
- className: Sd.inputWrapper,
7325
+ className: Td.inputWrapper,
7272
7326
  children: /* @__PURE__ */ v(Gs, {
7273
7327
  name: Se,
7274
7328
  testId: w,
@@ -7310,7 +7364,7 @@ var Cr = /* @__PURE__ */ function(e) {
7310
7364
  let r = n || t || "", i = Mn(e) ? e : "";
7311
7365
  return {
7312
7366
  type: "Option",
7313
- label: P ? xd(i) : i,
7367
+ label: P ? wd(i) : i,
7314
7368
  inline: !0,
7315
7369
  onClick: (n) => {
7316
7370
  n.stopPropagation(), ve(e, t);
@@ -7325,10 +7379,10 @@ var Cr = /* @__PURE__ */ function(e) {
7325
7379
  ]
7326
7380
  })
7327
7381
  });
7328
- }, wd = Object.freeze({
7382
+ }, Dd = Object.freeze({
7329
7383
  Translations: "translations",
7330
7384
  LanguageKey: "languageKey"
7331
- }), Td = {
7385
+ }), Od = {
7332
7386
  unified: "Unified",
7333
7387
  split: "Split",
7334
7388
  changesTooLarge: "Changes are too large to be shown",
@@ -7350,29 +7404,29 @@ var Cr = /* @__PURE__ */ function(e) {
7350
7404
  pluralChanges: "changes",
7351
7405
  showAll: "Show all",
7352
7406
  unknown: "Unknown"
7353
- }, Ed = (e) => Object.keys(Td).reduce((t, n) => ({
7407
+ }, kd = (e) => Object.keys(Od).reduce((t, n) => ({
7354
7408
  ...t,
7355
- [n]: (e == null ? void 0 : e[n]) || (Td == null ? void 0 : Td[n])
7356
- }), {}), Dd = {
7357
- [wd.Translations]: Ed(),
7358
- [wd.LanguageKey]: "en"
7359
- }, Od = (e) => e ? Dd[e] : Dd, kd = (e, t) => {
7360
- Dd[e] = t;
7361
- }, Ad = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
7409
+ [n]: (e == null ? void 0 : e[n]) || (Od == null ? void 0 : Od[n])
7410
+ }), {}), Ad = {
7411
+ [Dd.Translations]: kd(),
7412
+ [Dd.LanguageKey]: "en"
7413
+ }, jd = (e) => e ? Ad[e] : Ad, Md = (e, t) => {
7414
+ Ad[e] = t;
7415
+ }, Nd = (e) => e.reduce(({ preferredUnits: e, storageUnits: t }, { unitKey: n, preferredUnit: r, storageUnit: i }) => {
7362
7416
  var a;
7363
- let { unitTemplate: o = null } = (a = vd()) == null ? {} : a;
7364
- return e[n] = r == null ? sd(n, o) : r, t[n] = i, {
7417
+ let { unitTemplate: o = null } = (a = xd()) == null ? {} : a;
7418
+ return e[n] = r == null ? ud(n, o) : r, t[n] = i, {
7365
7419
  preferredUnits: e,
7366
7420
  storageUnits: t
7367
7421
  };
7368
7422
  }, {
7369
7423
  preferredUnits: {},
7370
7424
  storageUnits: {}
7371
- }), jd = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
7425
+ }), Pd = ({ row: e, rowIndex: t, selectedUnits: n, storageUnits: r, convertBackToStorageUnit: i, enableCosmeticRounding: a, enableDisplayRounding: o }) => ({
7372
7426
  ...e,
7373
7427
  cells: e.cells.map((e, s) => {
7374
7428
  if ("autoUnit" in e && e != null && e.autoUnit && (typeof (e == null ? void 0 : e.value) == "string" || typeof (e == null ? void 0 : e.value) == "number")) {
7375
- 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({
7429
+ let { unitKey: c, value: l, formatDisplayValue: u } = e, d = o && "roundDisplayValue" in e ? e == null ? void 0 : e.roundDisplayValue : null, f = n[c], p = r[c], m = p && f !== p, { value: h = l } = hd({
7376
7430
  value: Hs(l),
7377
7431
  unitkey: c,
7378
7432
  toUnit: f,
@@ -7386,7 +7440,7 @@ var Cr = /* @__PURE__ */ function(e) {
7386
7440
  roundDisplayValue: d,
7387
7441
  selectOnFocus: !0,
7388
7442
  onChange: (n) => {
7389
- let { value: r } = n.target, a = i ? p : f, { value: o = r } = fd({
7443
+ let { value: r } = n.target, a = i ? p : f, { value: o = r } = hd({
7390
7444
  value: String(r),
7391
7445
  unitkey: c,
7392
7446
  toUnit: a,
@@ -7410,8 +7464,8 @@ var Cr = /* @__PURE__ */ function(e) {
7410
7464
  }
7411
7465
  return e;
7412
7466
  })
7413
- }), Md = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7414
- let { translations: i } = Od();
7467
+ }), Fd = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
7468
+ let { translations: i } = jd();
7415
7469
  return e ? e.map((e) => ({
7416
7470
  ...e,
7417
7471
  cells: e.cells.map((e) => {
@@ -7440,8 +7494,8 @@ var Cr = /* @__PURE__ */ function(e) {
7440
7494
  return e;
7441
7495
  })
7442
7496
  })) : [];
7443
- }, Nd = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: s, beforeRenderRow: l }) => {
7444
- let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Ad(t), h = od(p), [g, _] = m(p), y = ({ unitKey: e, value: n }) => {
7497
+ }, Id = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: s, beforeRenderRow: l }) => {
7498
+ let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Nd(t), h = ld(p), [g, _] = m(p), y = ({ unitKey: e, value: n }) => {
7445
7499
  _({
7446
7500
  ...g,
7447
7501
  [e]: n
@@ -7452,7 +7506,7 @@ var Cr = /* @__PURE__ */ function(e) {
7452
7506
  newUnit: n,
7453
7507
  unitKey: e
7454
7508
  });
7455
- }, b = o(({ row: e, rowIndex: t }) => jd({
7509
+ }, b = o(({ row: e, rowIndex: t }) => Pd({
7456
7510
  row: l ? l({
7457
7511
  row: e,
7458
7512
  rowIndex: t
@@ -7478,10 +7532,10 @@ var Cr = /* @__PURE__ */ function(e) {
7478
7532
  value: n
7479
7533
  });
7480
7534
  });
7481
- }, [t]), /* @__PURE__ */ v(yc, {
7535
+ }, [t]), /* @__PURE__ */ v(Sc, {
7482
7536
  table: {
7483
7537
  ...d,
7484
- headers: Md({
7538
+ headers: Fd({
7485
7539
  headers: e.headers,
7486
7540
  selectedUnits: g,
7487
7541
  storageUnits: f,
@@ -7492,8 +7546,8 @@ var Cr = /* @__PURE__ */ function(e) {
7492
7546
  canListReorder: s,
7493
7547
  beforeRenderRow: b
7494
7548
  });
7495
- }, 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 }) => {
7496
- 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 = [
7549
+ }, Ld = { settingField: "_settingField_1x02n_1" }, Rd = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
7550
+ let { translations: d } = jd(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ y(e.Fragment, { children: [t, /* @__PURE__ */ v("br", {})] }, n)), p = [
7497
7551
  ...r ? [] : [{
7498
7552
  label: d == null ? void 0 : d.allUsers,
7499
7553
  value: !1
@@ -7508,14 +7562,14 @@ var Cr = /* @__PURE__ */ function(e) {
7508
7562
  }] : []
7509
7563
  ], m = a !== void 0 && o !== void 0 && !an(a, o);
7510
7564
  return /* @__PURE__ */ y("div", {
7511
- className: Pd.settingField,
7565
+ className: Ld.settingField,
7512
7566
  "data-testid": u,
7513
- children: [/* @__PURE__ */ y(Nl, {
7567
+ children: [/* @__PURE__ */ y(Il, {
7514
7568
  justifyContent: "space-between",
7515
7569
  wrap: !1,
7516
7570
  children: [i, !s && /* @__PURE__ */ v("div", {
7517
7571
  style: { flexShrink: 0 },
7518
- children: /* @__PURE__ */ y(Nl, {
7572
+ children: /* @__PURE__ */ y(Il, {
7519
7573
  gap: "8px",
7520
7574
  alignItems: "center",
7521
7575
  children: [m && /* @__PURE__ */ v(si, {
@@ -7540,19 +7594,19 @@ var Cr = /* @__PURE__ */ function(e) {
7540
7594
  children: f(t)
7541
7595
  })]
7542
7596
  });
7543
- }, Id = (e, t) => {
7597
+ }, zd = (e, t) => {
7544
7598
  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;
7545
7599
  return {
7546
7600
  added: Math.max(0, i),
7547
7601
  removed: Math.max(0, a)
7548
7602
  };
7549
- }, Ld = "split", Rd = "unified", zd = ({ oldJson: e, newJson: t, viewType: n = Ld }) => {
7603
+ }, Bd = "split", Vd = "unified", Hd = ({ oldJson: e, newJson: t, viewType: n = Bd }) => {
7550
7604
  var r, i;
7551
- let { translations: a } = Od(), [o, s] = m(n), l = [{
7552
- value: Ld,
7605
+ let { translations: a } = jd(), [o, s] = m(n), l = [{
7606
+ value: Bd,
7553
7607
  label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
7554
7608
  }, {
7555
- value: Rd,
7609
+ value: Vd,
7556
7610
  label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
7557
7611
  }];
7558
7612
  c(() => {
@@ -7560,10 +7614,10 @@ var Cr = /* @__PURE__ */ function(e) {
7560
7614
  }, [n]);
7561
7615
  let u = ({ target: { value: e } }) => {
7562
7616
  s(e);
7563
- }, { added: d, removed: f } = Id(e, t), p = d + f > 3500;
7617
+ }, { added: d, removed: f } = zd(e, t), p = d + f > 3500;
7564
7618
  return /* @__PURE__ */ v(_, { children: /* @__PURE__ */ v(na, {
7565
7619
  bordered: !0,
7566
- heading: /* @__PURE__ */ y(Nl, {
7620
+ heading: /* @__PURE__ */ y(Il, {
7567
7621
  gap: !0,
7568
7622
  children: [/* @__PURE__ */ v(ya, { children: /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ y(ha, {
7569
7623
  success: !0,
@@ -7575,7 +7629,7 @@ var Cr = /* @__PURE__ */ function(e) {
7575
7629
  }), /* @__PURE__ */ y(ha, {
7576
7630
  error: !0,
7577
7631
  children: ["-", f]
7578
- })] }) }), !p && /* @__PURE__ */ v(du, {
7632
+ })] }) }), !p && /* @__PURE__ */ v(mu, {
7579
7633
  name: "viewType",
7580
7634
  options: l,
7581
7635
  value: o,
@@ -7593,14 +7647,14 @@ var Cr = /* @__PURE__ */ function(e) {
7593
7647
  }) : /* @__PURE__ */ v(xr, {
7594
7648
  oldValue: e,
7595
7649
  newValue: t,
7596
- splitView: o === Ld,
7650
+ splitView: o === Bd,
7597
7651
  compareMethod: Sr.WORDS
7598
7652
  })
7599
7653
  }) });
7600
7654
  };
7601
7655
  //#endregion
7602
7656
  //#region src/helpers/date.ts
7603
- function Bd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
7657
+ function Ud({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
7604
7658
  return e ? new Date(e).toLocaleString(a, {
7605
7659
  year: "numeric",
7606
7660
  month: "short",
@@ -7614,28 +7668,28 @@ function Bd({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
7614
7668
  }
7615
7669
  //#endregion
7616
7670
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
7617
- function Vd(e) {
7671
+ function Wd(e) {
7618
7672
  var t;
7619
7673
  let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
7620
7674
  if (!n) throw Error("Invalid RegExp");
7621
7675
  return new RegExp((t = n[1]) == null ? "" : t, n[2]);
7622
7676
  }
7623
- function Hd(e) {
7677
+ function Gd(e) {
7624
7678
  if (typeof e != "object") return e;
7625
7679
  if (e === null) return null;
7626
- if (Array.isArray(e)) return e.map(Hd);
7680
+ if (Array.isArray(e)) return e.map(Gd);
7627
7681
  if (e instanceof Date) return new Date(e.getTime());
7628
- if (e instanceof RegExp) return Vd(e);
7682
+ if (e instanceof RegExp) return Wd(e);
7629
7683
  let t = {};
7630
- for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Hd(e[n]));
7684
+ for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Gd(e[n]));
7631
7685
  return t;
7632
7686
  }
7633
7687
  //#endregion
7634
7688
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
7635
- function Ud(e, t) {
7689
+ function Kd(e, t) {
7636
7690
  if (e.length === 0) throw Error(t || "Expected a non-empty array");
7637
7691
  }
7638
- var Wd = (e) => e[e.length - 1], Gd = class {
7692
+ var qd = (e) => e[e.length - 1], Jd = class {
7639
7693
  setResult(e) {
7640
7694
  return this.result = e, this.hasResult = !0, this;
7641
7695
  }
@@ -7643,16 +7697,16 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7643
7697
  return this.exiting = !0, this;
7644
7698
  }
7645
7699
  push(e, t) {
7646
- 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;
7700
+ return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (Kd(this.children), qd(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
7647
7701
  }
7648
- }, Kd = class extends Gd {
7702
+ }, Yd = class extends Jd {
7649
7703
  constructor(e, t) {
7650
7704
  super(), this.left = e, this.right = t, this.pipe = "diff";
7651
7705
  }
7652
7706
  prepareDeltaResult(e) {
7653
7707
  var t, n, r, i;
7654
7708
  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)) {
7655
- let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Hd;
7709
+ let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Gd;
7656
7710
  typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
7657
7711
  }
7658
7712
  return e;
@@ -7660,15 +7714,15 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7660
7714
  setResult(e) {
7661
7715
  return this.prepareDeltaResult(e), super.setResult(e);
7662
7716
  }
7663
- }, qd = class extends Gd {
7717
+ }, Xd = class extends Jd {
7664
7718
  constructor(e, t) {
7665
7719
  super(), this.left = e, this.delta = t, this.pipe = "patch";
7666
7720
  }
7667
- }, Jd = class extends Gd {
7721
+ }, Zd = class extends Jd {
7668
7722
  constructor(e) {
7669
7723
  super(), this.delta = e, this.pipe = "reverse";
7670
7724
  }
7671
- }, Yd = class {
7725
+ }, Qd = class {
7672
7726
  constructor(e) {
7673
7727
  this.name = e, this.filters = [];
7674
7728
  }
@@ -7732,7 +7786,7 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7732
7786
  }
7733
7787
  }), this);
7734
7788
  }
7735
- }, Xd = class {
7789
+ }, $d = class {
7736
7790
  constructor(e) {
7737
7791
  this.selfOptions = e || {}, this.pipes = {};
7738
7792
  }
@@ -7759,7 +7813,7 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7759
7813
  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);
7760
7814
  return n.hasResult ? n.result : void 0;
7761
7815
  }
7762
- }, Zd = (e, t, n, r) => e[n] === t[r], Qd = (e, t, n, r) => {
7816
+ }, ef = (e, t, n, r) => e[n] === t[r], tf = (e, t, n, r) => {
7763
7817
  var i, a, o;
7764
7818
  let s = e.length, c = t.length, l, u, d = Array(s + 1);
7765
7819
  for (l = 0; l < s + 1; l++) {
@@ -7775,7 +7829,7 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7775
7829
  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);
7776
7830
  }
7777
7831
  return d;
7778
- }, $d = (e, t, n, r) => {
7832
+ }, nf = (e, t, n, r) => {
7779
7833
  let i = t.length, a = n.length, o = {
7780
7834
  sequence: [],
7781
7835
  indices1: [],
@@ -7797,11 +7851,11 @@ var Wd = (e) => e[e.length - 1], Gd = class {
7797
7851
  }
7798
7852
  }
7799
7853
  return o;
7800
- }, ef = { get: (e, t, n, r) => {
7854
+ }, rf = { get: (e, t, n, r) => {
7801
7855
  let i = r || {};
7802
- return $d(Qd(e, t, n || Zd, i), e, t, i);
7803
- } }, tf = 3;
7804
- function nf(e, t, n, r) {
7856
+ return nf(tf(e, t, n || ef, i), e, t, i);
7857
+ } }, af = 3;
7858
+ function of(e, t, n, r) {
7805
7859
  for (let i = 0; i < n; i++) {
7806
7860
  let n = e[i];
7807
7861
  for (let e = 0; e < r; e++) {
@@ -7811,7 +7865,7 @@ function nf(e, t, n, r) {
7811
7865
  }
7812
7866
  return !1;
7813
7867
  }
7814
- function rf(e, t, n, r, i) {
7868
+ function sf(e, t, n, r, i) {
7815
7869
  let a = e[n], o = t[r];
7816
7870
  if (a === o) return !0;
7817
7871
  if (typeof a != "object" || typeof o != "object") return !1;
@@ -7824,15 +7878,15 @@ function rf(e, t, n, r, i) {
7824
7878
  let l = i.hashCache2[r];
7825
7879
  return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l === void 0 ? !1 : c === l;
7826
7880
  }
7827
- var af = function(e) {
7881
+ var cf = function(e) {
7828
7882
  var t, n, r, i, a;
7829
7883
  if (!e.leftIsArray) return;
7830
7884
  let o = {
7831
7885
  objectHash: (t = e.options) == null ? void 0 : t.objectHash,
7832
7886
  matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
7833
7887
  }, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
7834
- 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++;
7835
- 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++;
7888
+ for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !of(f, p, m, h)); s < m && s < h && sf(f, p, s, s, o);) l = s, g = new Yd(f[l], p[l]), e.push(g, l), s++;
7889
+ for (; c + s < m && c + s < h && sf(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new Yd(f[u], p[d]), e.push(g, d), c++;
7836
7890
  let _;
7837
7891
  if (s + c === m) {
7838
7892
  if (m === h) {
@@ -7856,7 +7910,7 @@ var af = function(e) {
7856
7910
  return;
7857
7911
  }
7858
7912
  o.hashCache1 = void 0, o.hashCache2 = void 0;
7859
- let v = f.slice(s, m - c), y = p.slice(s, h - c), b = ef.get(v, y, rf, o), x = [];
7913
+ let v = f.slice(s, m - c), y = p.slice(s, h - c), b = rf.get(v, y, sf, o), x = [];
7860
7914
  for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
7861
7915
  let t = `_${l}`;
7862
7916
  _[t] = [
@@ -7877,8 +7931,8 @@ var af = function(e) {
7877
7931
  if (S && w > 0) for (let n = 0; n < w; n++) {
7878
7932
  u = x[n];
7879
7933
  let r = u === void 0 ? void 0 : _[`_${u}`];
7880
- if (u !== void 0 && r && rf(v, y, u - s, l - s, o)) {
7881
- 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;
7934
+ if (u !== void 0 && r && sf(v, y, u - s, l - s, o)) {
7935
+ r.splice(1, 2, l, af), r.splice(1, 2, l, af), C || (r[0] = ""), d = l, g = new Yd(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
7882
7936
  break;
7883
7937
  }
7884
7938
  }
@@ -7886,20 +7940,20 @@ var af = function(e) {
7886
7940
  } else {
7887
7941
  if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
7888
7942
  if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
7889
- d = b.indices2[t] + s, g = new Kd(f[u], p[d]), e.push(g, d);
7943
+ d = b.indices2[t] + s, g = new Yd(f[u], p[d]), e.push(g, d);
7890
7944
  }
7891
7945
  }
7892
7946
  e.setResult(_).exit();
7893
7947
  };
7894
- af.filterName = "arrays";
7895
- var of = {
7948
+ cf.filterName = "arrays";
7949
+ var lf = {
7896
7950
  numerically(e, t) {
7897
7951
  return e - t;
7898
7952
  },
7899
7953
  numericallyBy(e) {
7900
7954
  return (t, n) => t[e] - n[e];
7901
7955
  }
7902
- }, sf = function(e) {
7956
+ }, uf = function(e) {
7903
7957
  var t;
7904
7958
  if (!e.nested) return;
7905
7959
  let n = e.delta;
@@ -7907,7 +7961,7 @@ var of = {
7907
7961
  let r, i, a = n, o = e.left, s = [], c = [], l = [];
7908
7962
  for (r in a) if (r !== "_t") if (r[0] === "_") {
7909
7963
  let e = r;
7910
- if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === tf)) s.push(Number.parseInt(r.slice(1), 10));
7964
+ if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === af)) s.push(Number.parseInt(r.slice(1), 10));
7911
7965
  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]}`);
7912
7966
  } else {
7913
7967
  let e = r;
@@ -7919,15 +7973,15 @@ var of = {
7919
7973
  delta: a[e]
7920
7974
  });
7921
7975
  }
7922
- for (s = s.sort(of.numerically), r = s.length - 1; r >= 0; r--) {
7976
+ for (s = s.sort(lf.numerically), r = s.length - 1; r >= 0; r--) {
7923
7977
  if (i = s[r], i === void 0) continue;
7924
7978
  let e = a[`_${i}`], t = o.splice(i, 1)[0];
7925
- (e == null ? void 0 : e[2]) === tf && c.push({
7979
+ (e == null ? void 0 : e[2]) === af && c.push({
7926
7980
  index: e[1],
7927
7981
  value: t
7928
7982
  });
7929
7983
  }
7930
- c = c.sort(of.numericallyBy("index"));
7984
+ c = c.sort(lf.numericallyBy("index"));
7931
7985
  let u = c.length;
7932
7986
  for (r = 0; r < u; r++) {
7933
7987
  let e = c[r];
@@ -7937,7 +7991,7 @@ var of = {
7937
7991
  if (d > 0) for (r = 0; r < d; r++) {
7938
7992
  let t = l[r];
7939
7993
  if (t === void 0) continue;
7940
- let n = new qd(o[t.index], t.delta);
7994
+ let n = new Xd(o[t.index], t.delta);
7941
7995
  e.push(n, t.index);
7942
7996
  }
7943
7997
  if (!e.children) {
@@ -7946,8 +8000,8 @@ var of = {
7946
8000
  }
7947
8001
  e.exit();
7948
8002
  };
7949
- sf.filterName = "arrays";
7950
- var cf = function(e) {
8003
+ uf.filterName = "arrays";
8004
+ var df = function(e) {
7951
8005
  if (!e || !e.children || e.delta._t !== "a") return;
7952
8006
  let t = e.left, n = e.children.length;
7953
8007
  for (let r = 0; r < n; r++) {
@@ -7958,16 +8012,16 @@ var cf = function(e) {
7958
8012
  }
7959
8013
  e.setResult(t).exit();
7960
8014
  };
7961
- cf.filterName = "arraysCollectChildren";
7962
- var lf = function(e) {
8015
+ df.filterName = "arraysCollectChildren";
8016
+ var ff = function(e) {
7963
8017
  if (!e.nested) {
7964
8018
  let t = e.delta;
7965
- if (t[2] === tf) {
8019
+ if (t[2] === af) {
7966
8020
  let n = t;
7967
8021
  e.newName = `_${n[1]}`, e.setResult([
7968
8022
  n[0],
7969
8023
  Number.parseInt(e.childName.substring(1), 10),
7970
- tf
8024
+ af
7971
8025
  ]).exit();
7972
8026
  }
7973
8027
  return;
@@ -7977,26 +8031,26 @@ var lf = function(e) {
7977
8031
  let n = t;
7978
8032
  for (let t in n) {
7979
8033
  if (t === "_t") continue;
7980
- let r = new Jd(n[t]);
8034
+ let r = new Zd(n[t]);
7981
8035
  e.push(r, t);
7982
8036
  }
7983
8037
  e.exit();
7984
8038
  };
7985
- lf.filterName = "arrays";
7986
- var uf = (e, t, n) => {
8039
+ ff.filterName = "arrays";
8040
+ var pf = (e, t, n) => {
7987
8041
  if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
7988
8042
  if (Array.isArray(n) && n[2] === 0) return `_${t}`;
7989
8043
  let r = +t;
7990
8044
  for (let n in e) {
7991
8045
  let i = e[n];
7992
- if (Array.isArray(i)) if (i[2] === tf) {
8046
+ if (Array.isArray(i)) if (i[2] === af) {
7993
8047
  let e = Number.parseInt(n.substring(1), 10), a = i[1];
7994
8048
  if (a === +t) return e;
7995
8049
  e <= r && a > r ? r++ : e >= r && a < r && r--;
7996
8050
  } else i[2] === 0 ? Number.parseInt(n.substring(1), 10) <= r && r++ : i.length === 1 && Number.parseInt(n, 10) <= r && r--;
7997
8051
  }
7998
8052
  return r;
7999
- }, df = (e) => {
8053
+ }, mf = (e) => {
8000
8054
  if (!e || !e.children) return;
8001
8055
  let t = e.delta;
8002
8056
  if (t._t !== "a") return;
@@ -8007,22 +8061,22 @@ var uf = (e, t, n) => {
8007
8061
  let a = r.newName;
8008
8062
  if (a === void 0) {
8009
8063
  if (r.childName === void 0) throw Error("child.childName is undefined");
8010
- a = uf(n, r.childName, r.result);
8064
+ a = pf(n, r.childName, r.result);
8011
8065
  }
8012
8066
  i[a] !== r.result && (i[a] = r.result);
8013
8067
  }
8014
8068
  e.setResult(i).exit();
8015
8069
  };
8016
- df.filterName = "arraysCollectChildren";
8070
+ mf.filterName = "arraysCollectChildren";
8017
8071
  //#endregion
8018
8072
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
8019
- var ff = function(e) {
8073
+ var hf = function(e) {
8020
8074
  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();
8021
8075
  };
8022
- ff.filterName = "dates";
8076
+ hf.filterName = "dates";
8023
8077
  //#endregion
8024
8078
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
8025
- var pf = new Set(["__proto__"]), mf = (e) => {
8079
+ var gf = new Set(["__proto__"]), _f = (e) => {
8026
8080
  if (!e || !e.children) return;
8027
8081
  let t = e.children.length, n = e.result;
8028
8082
  for (let r = 0; r < t; r++) {
@@ -8034,18 +8088,18 @@ var pf = new Set(["__proto__"]), mf = (e) => {
8034
8088
  }
8035
8089
  n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
8036
8090
  };
8037
- mf.filterName = "collectChildren";
8038
- var hf = (e) => {
8091
+ _f.filterName = "collectChildren";
8092
+ var vf = (e) => {
8039
8093
  var t;
8040
8094
  if (e.leftIsArray || e.leftType !== "object") return;
8041
8095
  let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
8042
8096
  for (let t in n) {
8043
8097
  if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
8044
- let a = new Kd(n[t], r[t]);
8098
+ let a = new Yd(n[t], r[t]);
8045
8099
  e.push(a, t);
8046
8100
  }
8047
8101
  for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
8048
- let n = new Kd(void 0, r[t]);
8102
+ let n = new Yd(void 0, r[t]);
8049
8103
  e.push(n, t);
8050
8104
  }
8051
8105
  if (!e.children || e.children.length === 0) {
@@ -8054,15 +8108,15 @@ var hf = (e) => {
8054
8108
  }
8055
8109
  e.exit();
8056
8110
  };
8057
- hf.filterName = "objects";
8058
- var gf = function(e) {
8111
+ vf.filterName = "objects";
8112
+ var yf = function(e) {
8059
8113
  if (!e.nested) return;
8060
8114
  let t = e.delta;
8061
8115
  if (t._t) return;
8062
8116
  let n = t, r = !1;
8063
8117
  for (let t in n) {
8064
- if (pf.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8065
- let i = e.left, a = new qd(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8118
+ if (gf.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
8119
+ let i = e.left, a = new Xd(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
8066
8120
  e.push(a, t), r = !0;
8067
8121
  }
8068
8122
  if (!r) {
@@ -8071,8 +8125,8 @@ var gf = function(e) {
8071
8125
  }
8072
8126
  e.exit();
8073
8127
  };
8074
- gf.filterName = "objects";
8075
- var _f = function(e) {
8128
+ yf.filterName = "objects";
8129
+ var bf = function(e) {
8076
8130
  if (!e || !e.children || e.delta._t) return;
8077
8131
  if (e.left === null || typeof e.left != "object") {
8078
8132
  e.setResult(e.left).exit();
@@ -8083,17 +8137,17 @@ var _f = function(e) {
8083
8137
  let n = e.children[r];
8084
8138
  if (n === void 0) continue;
8085
8139
  let i = n.childName;
8086
- 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));
8140
+ gf.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
8087
8141
  }
8088
8142
  e.setResult(t).exit();
8089
8143
  };
8090
- _f.filterName = "collectChildren";
8091
- var vf = function(e) {
8144
+ bf.filterName = "collectChildren";
8145
+ var xf = function(e) {
8092
8146
  if (!e.nested || e.delta._t) return;
8093
8147
  let t = e.delta, n = !1;
8094
8148
  for (let r in t) {
8095
- if (pf.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8096
- let i = new Jd(t[r]);
8149
+ if (gf.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
8150
+ let i = new Zd(t[r]);
8097
8151
  e.push(i, r), n = !0;
8098
8152
  }
8099
8153
  if (!n) {
@@ -8102,25 +8156,25 @@ var vf = function(e) {
8102
8156
  }
8103
8157
  e.exit();
8104
8158
  };
8105
- vf.filterName = "objects";
8106
- var yf = (e) => {
8159
+ xf.filterName = "objects";
8160
+ var Sf = (e) => {
8107
8161
  if (!e || !e.children || e.delta._t) return;
8108
8162
  let t = e.children.length, n = {};
8109
8163
  for (let r = 0; r < t; r++) {
8110
8164
  let t = e.children[r];
8111
8165
  if (t === void 0) continue;
8112
8166
  let i = t.childName;
8113
- pf.has(i) || n[i] !== t.result && (n[i] = t.result);
8167
+ gf.has(i) || n[i] !== t.result && (n[i] = t.result);
8114
8168
  }
8115
8169
  e.setResult(n).exit();
8116
8170
  };
8117
- yf.filterName = "collectChildren";
8171
+ Sf.filterName = "collectChildren";
8118
8172
  //#endregion
8119
8173
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
8120
- var bf = 2, xf = 60, Sf = null;
8121
- function Cf(e, t) {
8174
+ var Cf = 2, wf = 60, Tf = null;
8175
+ function Ef(e, t) {
8122
8176
  var n;
8123
- if (!Sf) {
8177
+ if (!Tf) {
8124
8178
  let r;
8125
8179
  if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
8126
8180
  else {
@@ -8128,7 +8182,7 @@ function Cf(e, t) {
8128
8182
  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.");
8129
8183
  throw e.diff_match_patch_not_found = !0, e;
8130
8184
  }
8131
- Sf = {
8185
+ Tf = {
8132
8186
  diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
8133
8187
  patch: (e, t) => {
8134
8188
  let n = r.patch_apply(r.patch_fromText(t), e);
@@ -8140,17 +8194,17 @@ function Cf(e, t) {
8140
8194
  }
8141
8195
  };
8142
8196
  }
8143
- return Sf;
8197
+ return Tf;
8144
8198
  }
8145
- var wf = function(e) {
8199
+ var Df = function(e) {
8146
8200
  var t, n;
8147
8201
  if (e.leftType !== "string") return;
8148
- let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || xf;
8202
+ let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || wf;
8149
8203
  if (r.length < a || i.length < a) {
8150
8204
  e.setResult([r, i]).exit();
8151
8205
  return;
8152
8206
  }
8153
- let o = Cf(e.options);
8207
+ let o = Ef(e.options);
8154
8208
  if (!o) {
8155
8209
  e.setResult([r, i]).exit();
8156
8210
  return;
@@ -8159,19 +8213,19 @@ var wf = function(e) {
8159
8213
  e.setResult([
8160
8214
  s(r, i),
8161
8215
  0,
8162
- bf
8216
+ Cf
8163
8217
  ]).exit();
8164
8218
  };
8165
- wf.filterName = "texts";
8166
- var Tf = function(e) {
8219
+ Df.filterName = "texts";
8220
+ var Of = function(e) {
8167
8221
  if (e.nested) return;
8168
8222
  let t = e.delta;
8169
- if (t[2] !== bf) return;
8170
- let n = t, r = Cf(e.options, !0).patch;
8223
+ if (t[2] !== Cf) return;
8224
+ let n = t, r = Ef(e.options, !0).patch;
8171
8225
  e.setResult(r(e.left, n[0])).exit();
8172
8226
  };
8173
- Tf.filterName = "texts";
8174
- var Ef = (e) => {
8227
+ Of.filterName = "texts";
8228
+ var kf = (e) => {
8175
8229
  var t, n, r;
8176
8230
  let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
8177
8231
  for (let e = 0; e < a.length; e++) {
@@ -8192,21 +8246,21 @@ var Ef = (e) => {
8192
8246
  } else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
8193
8247
  }
8194
8248
  return a.join("\n");
8195
- }, Df = function(e) {
8249
+ }, Af = function(e) {
8196
8250
  if (e.nested) return;
8197
8251
  let t = e.delta;
8198
- if (t[2] !== bf) return;
8252
+ if (t[2] !== Cf) return;
8199
8253
  let n = t;
8200
8254
  e.setResult([
8201
- Ef(n[0]),
8255
+ kf(n[0]),
8202
8256
  0,
8203
- bf
8257
+ Cf
8204
8258
  ]).exit();
8205
8259
  };
8206
- Df.filterName = "texts";
8260
+ Af.filterName = "texts";
8207
8261
  //#endregion
8208
8262
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
8209
- var Of = function(e) {
8263
+ var jf = function(e) {
8210
8264
  if (e.left === e.right) {
8211
8265
  e.setResult(void 0).exit();
8212
8266
  return;
@@ -8239,8 +8293,8 @@ var Of = function(e) {
8239
8293
  }
8240
8294
  e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
8241
8295
  };
8242
- Of.filterName = "trivial";
8243
- var kf = function(e) {
8296
+ jf.filterName = "trivial";
8297
+ var Mf = function(e) {
8244
8298
  if (e.delta === void 0) {
8245
8299
  e.setResult(e.left).exit();
8246
8300
  return;
@@ -8264,8 +8318,8 @@ var kf = function(e) {
8264
8318
  }
8265
8319
  t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
8266
8320
  };
8267
- kf.filterName = "trivial";
8268
- var Af = function(e) {
8321
+ Mf.filterName = "trivial";
8322
+ var Nf = function(e) {
8269
8323
  if (e.delta === void 0) {
8270
8324
  e.setResult(e.delta).exit();
8271
8325
  return;
@@ -8286,36 +8340,36 @@ var Af = function(e) {
8286
8340
  }
8287
8341
  t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
8288
8342
  };
8289
- Af.filterName = "trivial";
8343
+ Nf.filterName = "trivial";
8290
8344
  //#endregion
8291
8345
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
8292
- var jf = class {
8346
+ var Pf = class {
8293
8347
  constructor(e) {
8294
- 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());
8348
+ this.processor = new $d(e), this.processor.pipe(new Qd("diff").append(_f, jf, hf, Df, vf, cf).shouldHaveResult()), this.processor.pipe(new Qd("patch").append(bf, df, Mf, Of, yf, uf).shouldHaveResult()), this.processor.pipe(new Qd("reverse").append(Sf, mf, Nf, Af, xf, ff).shouldHaveResult());
8295
8349
  }
8296
8350
  options(e) {
8297
8351
  return this.processor.options(e);
8298
8352
  }
8299
8353
  diff(e, t) {
8300
- return this.processor.process(new Kd(e, t));
8354
+ return this.processor.process(new Yd(e, t));
8301
8355
  }
8302
8356
  patch(e, t) {
8303
- return this.processor.process(new qd(e, t));
8357
+ return this.processor.process(new Xd(e, t));
8304
8358
  }
8305
8359
  reverse(e) {
8306
- return this.processor.process(new Jd(e));
8360
+ return this.processor.process(new Zd(e));
8307
8361
  }
8308
8362
  unpatch(e, t) {
8309
8363
  return this.patch(e, this.reverse(t));
8310
8364
  }
8311
8365
  clone(e) {
8312
- return Hd(e);
8366
+ return Gd(e);
8313
8367
  }
8314
8368
  };
8315
8369
  //#endregion
8316
8370
  //#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
8317
- function Mf(e) {
8318
- return new jf(e);
8371
+ function Ff(e) {
8372
+ return new Pf(e);
8319
8373
  }
8320
8374
  //#endregion
8321
8375
  //#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
@@ -8888,46 +8942,46 @@ $.Diff = function(e, t) {
8888
8942
  };
8889
8943
  //#endregion
8890
8944
  //#region src/components/audit-log/create-diff-patcher.tsx
8891
- var Nf = (e = {}) => Mf({
8945
+ var If = (e = {}) => Ff({
8892
8946
  ...e,
8893
8947
  textDiff: {
8894
8948
  diffMatchPatch: $,
8895
8949
  minLength: 120
8896
8950
  },
8897
8951
  cloneDiffValues: !0
8898
- }), Pf = ["user", "unittemplate"], Ff = Nf(), If = (e, t, n) => {
8952
+ }), Lf = ["user", "unittemplate"], Rf = If(), zf = (e, t, n) => {
8899
8953
  let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
8900
8954
  for (let e = t.length - 1; e >= 0; e--) {
8901
8955
  let n = r[t[e]];
8902
8956
  if (n) return n;
8903
8957
  }
8904
8958
  return n || "";
8905
- }, Lf = (e) => {
8959
+ }, Bf = (e) => {
8906
8960
  let t = (e) => Nn(e) ? Gn(e) : String(e);
8907
8961
  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);
8908
- }, Rf = (e) => {
8962
+ }, Vf = (e) => {
8909
8963
  switch (e.length) {
8910
8964
  case 1: {
8911
8965
  let [t] = e;
8912
8966
  return {
8913
8967
  type: "created",
8914
8968
  before: "",
8915
- after: Lf(t)
8969
+ after: Bf(t)
8916
8970
  };
8917
8971
  }
8918
8972
  case 2: {
8919
8973
  let [t, n] = e;
8920
8974
  return {
8921
8975
  type: "modified",
8922
- before: Lf(t),
8923
- after: Lf(n)
8976
+ before: Bf(t),
8977
+ after: Bf(n)
8924
8978
  };
8925
8979
  }
8926
8980
  case 3: {
8927
8981
  let [t] = e;
8928
8982
  return {
8929
8983
  type: "deleted",
8930
- before: Lf(t),
8984
+ before: Bf(t),
8931
8985
  after: ""
8932
8986
  };
8933
8987
  }
@@ -8937,15 +8991,15 @@ var Nf = (e = {}) => Mf({
8937
8991
  after: ""
8938
8992
  };
8939
8993
  }
8940
- }, 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) => {
8941
- let r = Vf(e);
8994
+ }, Hf = (e) => Array.isArray(e), Uf = (e, t) => t ? Hf(t) ? t.length === 0 ? e : t.reduce((e, t) => Rf.unpatch(Xt(e), Xt(t)), Xt(e)) : Rf.unpatch(Xt(e), Xt(t)) : e, Wf = (e) => e.createdAt || e.date, Gf = (e, t, n) => {
8995
+ let r = Wf(e);
8942
8996
  if (!r) return {
8943
8997
  oldJson: "",
8944
8998
  newJson: "",
8945
8999
  error: `Cannot create comparison view: missing date for audit log ${e.id}`
8946
9000
  };
8947
9001
  let i = t.filter((e) => {
8948
- let t = Vf(e);
9002
+ let t = Wf(e);
8949
9003
  return !!(e.diffs && t && t >= r);
8950
9004
  }), a = Array.from({ length: i.length + 1 });
8951
9005
  a[0] = Xt(n);
@@ -8958,7 +9012,7 @@ var Nf = (e = {}) => Mf({
8958
9012
  a[e + 1] = a[e];
8959
9013
  continue;
8960
9014
  }
8961
- a[e + 1] = Bf(a[e], t);
9015
+ a[e + 1] = Uf(a[e], t);
8962
9016
  }
8963
9017
  let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
8964
9018
  o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
@@ -8973,10 +9027,10 @@ var Nf = (e = {}) => Mf({
8973
9027
  oldJson: o,
8974
9028
  newJson: s
8975
9029
  };
8976
- }, Uf = (e, t, n = {}, r = []) => {
9030
+ }, Kf = (e, t, n = {}, r = []) => {
8977
9031
  var i;
8978
9032
  if (!e) return;
8979
- let a = [...Pf, ...(i = n.hiddenKeys) == null ? [] : i];
9033
+ let a = [...Lf, ...(i = n.hiddenKeys) == null ? [] : i];
8980
9034
  Object.keys(e).forEach((i) => {
8981
9035
  var o;
8982
9036
  let s = e[i];
@@ -8989,12 +9043,12 @@ var Nf = (e = {}) => Mf({
8989
9043
  tn(s) ? t.push({
8990
9044
  deltaFormat: [...s],
8991
9045
  path: c
8992
- }) : ln(s) && Uf(s, t, n, c);
9046
+ }) : ln(s) && Kf(s, t, n, c);
8993
9047
  });
8994
- }, Wf = (e, t = {}) => {
9048
+ }, qf = (e, t = {}) => {
8995
9049
  let n = [];
8996
- return e ? (Uf(e, n, t), n) : [];
8997
- }, 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) => {
9050
+ return e ? (Kf(e, n, t), n) : [];
9051
+ }, Jf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), Yf = (e) => {
8998
9052
  if (e == null || e === "") return "empty";
8999
9053
  if (typeof e == "boolean") return e ? "true" : "false";
9000
9054
  if (typeof e == "string") return e;
@@ -9005,32 +9059,32 @@ var Nf = (e = {}) => Mf({
9005
9059
  } catch {
9006
9060
  return String(e);
9007
9061
  }
9008
- }, qf = (e, t = e.length - 1) => {
9062
+ }, Xf = (e, t = e.length - 1) => {
9009
9063
  if (t >= e.length) return "Value";
9010
9064
  let n = e[t];
9011
- return !n || An(n) ? qf(e, t - 1) : Gf(n);
9012
- }, Jf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9013
- let o = Kf(r), s = Kf(i), c = a ? ` in ${a}` : "";
9065
+ return !n || An(n) ? Xf(e, t - 1) : Jf(n);
9066
+ }, Zf = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
9067
+ let o = Yf(r), s = Yf(i), c = a ? ` in ${a}` : "";
9014
9068
  switch (t) {
9015
9069
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
9016
9070
  case "created": return `${e} created ${s}${c}.`;
9017
9071
  case "deleted": return `${e} deleted ${o}${c}.`;
9018
9072
  default: return `${e} changed ${n}${c}.`;
9019
9073
  }
9020
- }, Yf = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(yc, { table: {
9074
+ }, Qf = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ v(Sc, { table: {
9021
9075
  headers: [{ cells: [{ value: "Changes" }] }],
9022
9076
  rows: n.map((n) => {
9023
- let { deltaFormat: i, path: a } = n, o = If(e, a, r), { type: s, before: c, after: l } = Rf(i);
9024
- return { cells: [{ value: Jf({
9077
+ let { deltaFormat: i, path: a } = n, o = zf(e, a, r), { type: s, before: c, after: l } = Vf(i);
9078
+ return { cells: [{ value: Zf({
9025
9079
  userName: t,
9026
9080
  type: s,
9027
- property: qf(a),
9081
+ property: Xf(a),
9028
9082
  before: c,
9029
9083
  after: l,
9030
9084
  sectionName: o
9031
9085
  }) }] };
9032
9086
  })
9033
- } }), Xf = Object.freeze({
9087
+ } }), $f = Object.freeze({
9034
9088
  summary: {
9035
9089
  label: "Summary",
9036
9090
  value: "summary"
@@ -9039,33 +9093,33 @@ var Nf = (e = {}) => Mf({
9039
9093
  label: "Compare",
9040
9094
  value: "compare"
9041
9095
  }
9042
- }), Zf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9043
- let c = [Xf.summary, Xf.compare].map(({ label: e, value: t }) => ({
9096
+ }), ep = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
9097
+ let c = [$f.summary, $f.compare].map(({ label: e, value: t }) => ({
9044
9098
  label: e,
9045
9099
  value: t
9046
9100
  })), [l, u] = m(c[0]), { diffs: d = void 0 } = e || {};
9047
9101
  if (!d) return null;
9048
- let { oldJson: f, newJson: p, error: h } = Hf(e, t, n);
9102
+ let { oldJson: f, newJson: p, error: h } = Gf(e, t, n);
9049
9103
  return /* @__PURE__ */ v(Ka, {
9050
9104
  visible: r,
9051
9105
  centered: !0,
9052
9106
  children: /* @__PURE__ */ v(Sa, { dialog: {
9053
9107
  scroll: !0,
9054
9108
  heading: "Comparison view",
9055
- content: /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(ku, {
9109
+ content: /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(Mu, {
9056
9110
  name: "ViewTab",
9057
9111
  onChange: (e) => u(c.find((t) => t.value === e.target.value)),
9058
9112
  options: c,
9059
9113
  value: l
9060
- }), l.value === "summary" ? /* @__PURE__ */ v(Yf, {
9114
+ }), l.value === "summary" ? /* @__PURE__ */ v(Qf, {
9061
9115
  userName: e.userName,
9062
9116
  sectionNames: a,
9063
- diffs: Wf(d, i),
9117
+ diffs: qf(d, i),
9064
9118
  defaultSectionName: o
9065
9119
  }) : h ? /* @__PURE__ */ v("div", {
9066
9120
  style: { padding: 16 },
9067
9121
  children: h
9068
- }) : /* @__PURE__ */ v(zd, {
9122
+ }) : /* @__PURE__ */ v(Hd, {
9069
9123
  oldJson: f,
9070
9124
  newJson: p
9071
9125
  })] }),
@@ -9078,7 +9132,7 @@ var Nf = (e = {}) => Mf({
9078
9132
  height: "90vh"
9079
9133
  } })
9080
9134
  });
9081
- }, Qf = [
9135
+ }, tp = [
9082
9136
  {
9083
9137
  label: "10 / page",
9084
9138
  value: 10
@@ -9091,8 +9145,8 @@ var Nf = (e = {}) => Mf({
9091
9145
  label: "50 / page",
9092
9146
  value: 50
9093
9147
  }
9094
- ], $f = (e, t = {}) => {
9095
- 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";
9148
+ ], np = (e, t = {}) => {
9149
+ let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = qf(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
9096
9150
  if (i === "API") return a === "Created" ? "Created through API" : "Changed through API";
9097
9151
  switch (a) {
9098
9152
  case "Created": return `Created by ${r}`;
@@ -9102,7 +9156,7 @@ var Nf = (e = {}) => Mf({
9102
9156
  case "Updated": return `Updated by ${r} (${c})`;
9103
9157
  default: return `Change by ${r}`;
9104
9158
  }
9105
- }, 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 }) => {
9159
+ }, rp = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: h, isLogDisabled: g }) => {
9106
9160
  let [b, x] = m(!1), [S, C] = m(null), w = (e) => {
9107
9161
  if (e.snapshot) {
9108
9162
  f == null || f(e.snapshot, e);
@@ -9121,7 +9175,7 @@ var Nf = (e = {}) => Mf({
9121
9175
  return {
9122
9176
  cells: [
9123
9177
  {
9124
- value: e.snapshot ? `Snapshot: ${e.snapshot}` : $f(e, l),
9178
+ value: e.snapshot ? `Snapshot: ${e.snapshot}` : np(e, l),
9125
9179
  type: "Link",
9126
9180
  disabled: n,
9127
9181
  onClick: n ? void 0 : () => w(e),
@@ -9140,8 +9194,8 @@ var Nf = (e = {}) => Mf({
9140
9194
  type: "Static"
9141
9195
  },
9142
9196
  {
9143
- value: Bd({
9144
- date: Vf(e),
9197
+ value: Ud({
9198
+ date: Wf(e),
9145
9199
  showTime: !0
9146
9200
  }),
9147
9201
  type: "Static"
@@ -9151,12 +9205,12 @@ var Nf = (e = {}) => Mf({
9151
9205
  };
9152
9206
  });
9153
9207
  return /* @__PURE__ */ y(_, { children: [/* @__PURE__ */ v(na, {
9154
- heading: /* @__PURE__ */ y(Nl, {
9208
+ heading: /* @__PURE__ */ y(Il, {
9155
9209
  gap: !0,
9156
9210
  wrap: !0,
9157
9211
  children: [/* @__PURE__ */ v(ya, { children: "Changes" }), c.map((e) => {
9158
9212
  var t;
9159
- return /* @__PURE__ */ v(dl, {
9213
+ return /* @__PURE__ */ v(ml, {
9160
9214
  small: (t = e.small) == null ? !0 : t,
9161
9215
  checked: e.checked,
9162
9216
  onChange: e.onChange,
@@ -9166,11 +9220,11 @@ var Nf = (e = {}) => Mf({
9166
9220
  })]
9167
9221
  }),
9168
9222
  padding: !1,
9169
- children: r ? /* @__PURE__ */ v(eu, {
9223
+ children: r ? /* @__PURE__ */ v(ru, {
9170
9224
  height: "100px",
9171
9225
  theme: Or.WHITE,
9172
9226
  children: /* @__PURE__ */ v(mi, { dark: !0 })
9173
- }) : /* @__PURE__ */ v(yc, { table: {
9227
+ }) : /* @__PURE__ */ v(Sc, { table: {
9174
9228
  headers: T,
9175
9229
  testId: "auditlog-table",
9176
9230
  rows: E,
@@ -9184,14 +9238,14 @@ var Nf = (e = {}) => Mf({
9184
9238
  onChange: (e) => {
9185
9239
  u(Number(e.target.value));
9186
9240
  },
9187
- options: Qf,
9241
+ options: tp,
9188
9242
  value: a
9189
9243
  },
9190
9244
  onSelectPage: (e) => d(e),
9191
9245
  small: !0
9192
9246
  } }
9193
9247
  } })
9194
- }), b && S && S.diffs && /* @__PURE__ */ v(Zf, {
9248
+ }), b && S && S.diffs && /* @__PURE__ */ v(ep, {
9195
9249
  sectionNames: o,
9196
9250
  isOpen: b,
9197
9251
  onClose: () => x(!1),
@@ -9201,7 +9255,7 @@ var Nf = (e = {}) => Mf({
9201
9255
  data: t,
9202
9256
  transformDiffsConfig: l
9203
9257
  })] });
9204
- }, tp = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9258
+ }, ip = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9205
9259
  let i = window.location.href, a = p(i);
9206
9260
  return c(() => {
9207
9261
  a.current = i;
@@ -9224,10 +9278,10 @@ var Nf = (e = {}) => Mf({
9224
9278
  });
9225
9279
  };
9226
9280
  }, [e, t]), null;
9227
- }, np = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, rp = (e) => {
9228
- kd(wd.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9229
- e === wd.Translations ? kd(e, Ed(t)) : kd(e, np(t) ? t : { ...t });
9281
+ }, ap = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, op = (e) => {
9282
+ Md(Dd.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9283
+ e === Dd.Translations ? Md(e, kd(t)) : Md(e, ap(t) ? t : { ...t });
9230
9284
  });
9231
9285
  };
9232
9286
  //#endregion
9233
- 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 };
9287
+ export { qr as Accordion, fi as AccordionWithDefaultToggle, Ji as Actions, Tr as Align, rp as AuditLog, Pi as Badge, Qi as Breadcrumb, Xi as BreadcrumbLinkType, K as Button, ea as ButtonGroup, Er as ButtonPosition, hi as ButtonType, na as Card, ci as CheckBox, Vr as Chevron, Wr as Collapse, wr as Color, sa as ColorInput, fa as Column, Sa as Dialog, Hd as DiffViewer, H as DisabledContext, _a as Divider, ka as Drawer, zu as ElementType, Nc as Empty, Fl as Field, jl as FileButton, za as FileInput, Il as Flex, Rl as FormRow, Hl as Grid, B as GroupOrder, ya as Heading, si as HelpIcon, U as Icon, V as IconType, Pa as Input, Ma as InputGroup, ks as InputGroupAddon, Ia as InputReaderMethods, kr as InputType, Nl as Label, tu as List, Wl as ListHeading, Xl as ListSubheading, ru as Loader, Ki as Menu, Si as MenuCarat, xi as MenuType, po as Message, oo as MessageType, Ka as Modal, yo as NativeSelect, Gs as NumberInput, lu as OptionDropdown, du as Page, As as Pagination, Gu as PopConfirm, aa as Popover, Ha as Portal, pu as PrintHeader, Ya as ProgressBar, mu as RadioButton, yu as RichTextInput, xu as Row, Cs as Select, Rd as SettingField, Eu as SideBar, Ou as Skeleton, $s as Slider, eo as SmartUploadModal, Ba as Spacer, mi as Spinner, Sc as Table, Al as TableImportExport, Mu as Tabs, ha as Text, Fu as TextArea, Nu as TextLink, Dr as TextTransform, Or as Theme, cr as Toaster, ml as Toggle, W as Tooltip, Hu as TopBar, Yu as Tree, sd as TreeTable, Cr as TriggerType, Ed as UnitInput, Id as UnitTable, ip as UsageTracker, dl as dismissToast, Cd as initializeContext, op as initializeGuiLibrary, La as readFile, ul as toast, bo as useFocus, Va as useKeyboardEvent, Co as useWindowWidth };