@oliasoft-open-source/react-ui-library 5.23.0-beta-26 → 5.23.0-beta-28

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
@@ -506,7 +506,7 @@ var mr = /* @__PURE__ */ function(e) {
506
506
  className: g(Gr.bordered, a ? Gr.padding : ""),
507
507
  children: l
508
508
  })] });
509
- }, Yr = {
509
+ }, G = {
510
510
  inputInTable: "_inputInTable_1isig_1",
511
511
  inputHover: "_inputHover_1isig_13",
512
512
  inputFocus: "_inputFocus_1isig_18",
@@ -532,45 +532,45 @@ var mr = /* @__PURE__ */ function(e) {
532
532
  groupOrderFirst: "_groupOrderFirst_1isig_344",
533
533
  groupOrderMiddle: "_groupOrderMiddle_1isig_345",
534
534
  groupOrderLast: "_groupOrderLast_1isig_346"
535
- }, Xr = { spinner: "_spinner_156m4_1" }, Zr = ({ small: e = !1, colored: t = !1, dark: n = !1, tiny: r = !1 }) => {
535
+ }, Yr = { spinner: "_spinner_156m4_1" }, Xr = ({ small: e = !1, colored: t = !1, dark: n = !1, tiny: r = !1 }) => {
536
536
  let i = t ? "var(--color-text-primary)" : n ? "var(--color-text-muted)" : "white", a = e ? "var(--font-size)" : r ? "var(--font-size-xs)" : "var(--size)";
537
537
  return /* @__PURE__ */ R("div", {
538
- className: Xr.spinner,
538
+ className: Yr.spinner,
539
539
  style: {
540
540
  color: i,
541
541
  fontSize: a
542
542
  }
543
543
  });
544
- }, Qr = /* @__PURE__ */ function(e) {
544
+ }, Zr = /* @__PURE__ */ function(e) {
545
545
  return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
546
- }({}), $r = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ R(W, {
546
+ }({}), Qr = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ R(W, {
547
547
  text: t,
548
548
  display: "inline-flex",
549
549
  children: e
550
- }) : /* @__PURE__ */ R(L, { children: e }), G = ({ active: e = !1, basic: t = !1, colored: n = !1, disabled: r = !1, ignoreDisabledContext: i = !1, groupOrder: a, icon: o = null, rightIcon: c = null, label: l = "", loading: u = !1, name: d, pill: f = !1, round: p = !1, small: m = !1, styles: h = "", width: _ = "", title: v = "", type: y = Qr.BUTTON, onClick: b = () => {}, error: x, warning: S, testId: C, tooltip: w, inverted: T = !1, component: E = "button", url: D, tabIndex: O }) => {
550
+ }) : /* @__PURE__ */ R(L, { children: e }), K = ({ active: e = !1, basic: t = !1, colored: n = !1, disabled: r = !1, ignoreDisabledContext: i = !1, groupOrder: a, icon: o = null, rightIcon: c = null, label: l = "", loading: u = !1, name: d, pill: f = !1, round: p = !1, small: m = !1, styles: h = "", width: _ = "", title: v = "", type: y = Zr.BUTTON, onClick: b = () => {}, error: x, warning: S, testId: C, tooltip: w, inverted: T = !1, component: E = "button", url: D, tabIndex: O }) => {
551
551
  let k = s(H), A = (() => {
552
552
  if (n) switch (n) {
553
553
  case hr.DANGER:
554
- case hr.RED: return Yr.red;
554
+ case hr.RED: return G.red;
555
555
  case hr.SUCCESS:
556
- case hr.GREEN: return Yr.green;
557
- case hr.MUTED: return Yr.muted;
558
- default: return Yr.orange;
556
+ case hr.GREEN: return G.green;
557
+ case hr.MUTED: return G.muted;
558
+ default: return G.orange;
559
559
  }
560
560
  return "";
561
561
  })(), j = (() => {
562
562
  if (a) switch (a) {
563
- case B.FIRST: return Yr.groupOrderFirst;
564
- case B.LAST: return Yr.groupOrderLast;
565
- default: return Yr.groupOrderMiddle;
563
+ case B.FIRST: return G.groupOrderFirst;
564
+ case B.LAST: return G.groupOrderLast;
565
+ default: return G.groupOrderMiddle;
566
566
  }
567
567
  return "";
568
568
  })(), M = r || k && !i;
569
- return /* @__PURE__ */ R($r, {
569
+ return /* @__PURE__ */ R(Qr, {
570
570
  tooltip: w,
571
571
  children: /* @__PURE__ */ z(E, {
572
- type: y === Qr.SUBMIT ? Qr.SUBMIT : Qr.BUTTON,
573
- className: g(Yr.button, e ? Yr.active : "", t ? Yr.basic : "", A, M ? Yr.disabled : "", (o || u) && !l ? Yr.iconOnly : "", T ? Yr.inverted : "", j, f ? Yr.pill : "", p ? Yr.round : "", m ? Yr.small : "", h),
572
+ type: y === Zr.SUBMIT ? Zr.SUBMIT : Zr.BUTTON,
573
+ className: g(G.button, e ? G.active : "", t ? G.basic : "", A, M ? G.disabled : "", (o || u) && !l ? G.iconOnly : "", T ? G.inverted : "", j, f ? G.pill : "", p ? G.round : "", m ? G.small : "", h),
574
574
  disabled: M,
575
575
  name: d == null ? "" : d,
576
576
  onClick: b,
@@ -583,12 +583,12 @@ var mr = /* @__PURE__ */ function(e) {
583
583
  tabIndex: O,
584
584
  children: [
585
585
  o && /* @__PURE__ */ R("span", {
586
- className: Yr.icon,
586
+ className: G.icon,
587
587
  children: /* @__PURE__ */ R(U, { icon: o })
588
588
  }),
589
589
  u && /* @__PURE__ */ R("span", {
590
- className: Yr.icon,
591
- children: /* @__PURE__ */ R(Zr, {
590
+ className: G.icon,
591
+ children: /* @__PURE__ */ R(Xr, {
592
592
  small: !m,
593
593
  tiny: m,
594
594
  dark: !n && !t,
@@ -597,18 +597,18 @@ var mr = /* @__PURE__ */ function(e) {
597
597
  }),
598
598
  l,
599
599
  c && /* @__PURE__ */ R("span", {
600
- className: Yr.rightIcon,
600
+ className: G.rightIcon,
601
601
  children: /* @__PURE__ */ R(U, { icon: c })
602
602
  })
603
603
  ]
604
604
  })
605
605
  });
606
- }, ei = {
606
+ }, $r = {
607
607
  actions: "_actions_1t7vd_1",
608
608
  childComponent: "_childComponent_1t7vd_11",
609
609
  actionComponentContainer: "_actionComponentContainer_1t7vd_14",
610
610
  active: "_active_1t7vd_36"
611
- }, K = {
611
+ }, q = {
612
612
  wrapper: "_wrapper_17ntv_1",
613
613
  layer: "_layer_17ntv_5",
614
614
  layerContainer: "_layerContainer_17ntv_8",
@@ -638,19 +638,19 @@ var mr = /* @__PURE__ */ function(e) {
638
638
  component: "_component_17ntv_199",
639
639
  right: "_right_17ntv_205",
640
640
  actions: "_actions_17ntv_210"
641
- }, ti = ({ label: e, onClick: t, icon: n, testId: r }) => /* @__PURE__ */ z("div", {
641
+ }, ei = ({ label: e, onClick: t, icon: n, testId: r }) => /* @__PURE__ */ z("div", {
642
642
  onClick: (e) => e.stopPropagation(),
643
- className: K.heading,
643
+ className: q.heading,
644
644
  "data-testid": r,
645
645
  children: [e, !!n && /* @__PURE__ */ R("span", {
646
- className: g(K.headingIcon, t ? K.clickable : ""),
646
+ className: g(q.headingIcon, t ? q.clickable : ""),
647
647
  onClick: t,
648
648
  children: /* @__PURE__ */ R(U, { icon: n })
649
649
  })]
650
- }), ni = () => /* @__PURE__ */ R("hr", { className: K.divider }), ri = ({ actions: e, label: t, url: n, onClick: r, description: i, icon: a, selected: o, closeOnOptionClick: s, close: c, disabled: l, inline: u, title: d, upload: f, uploadType: p, onChange: m = tn, testId: h, component: _ = "a" }) => /* @__PURE__ */ z(_, {
650
+ }), ti = () => /* @__PURE__ */ R("hr", { className: q.divider }), ni = ({ actions: e, label: t, url: n, onClick: r, description: i, icon: a, selected: o, closeOnOptionClick: s, close: c, disabled: l, inline: u, title: d, upload: f, uploadType: p, onChange: m = tn, testId: h, component: _ = "a" }) => /* @__PURE__ */ z(_, {
651
651
  href: n,
652
652
  to: n,
653
- className: g(K.option, l ? K.disabled : "", u ? K.inline : "", o ? K == null ? void 0 : K.selected : ""),
653
+ className: g(q.option, l ? q.disabled : "", u ? q.inline : "", o ? q == null ? void 0 : q.selected : ""),
654
654
  onClick: (e) => {
655
655
  if (e.stopPropagation(), l) {
656
656
  e.preventDefault();
@@ -661,16 +661,16 @@ var mr = /* @__PURE__ */ function(e) {
661
661
  "data-testid": h,
662
662
  children: [
663
663
  a ? /* @__PURE__ */ R("span", {
664
- className: K.icon,
664
+ className: q.icon,
665
665
  children: /* @__PURE__ */ R(U, { icon: a })
666
666
  }) : null,
667
667
  /* @__PURE__ */ z("div", {
668
- className: K.optionContent,
668
+ className: q.optionContent,
669
669
  children: [
670
670
  f && /* @__PURE__ */ R("input", {
671
671
  type: "file",
672
672
  accept: p,
673
- className: K.fileInput,
673
+ className: q.fileInput,
674
674
  onChange: (e) => {
675
675
  var t;
676
676
  let { files: n } = (t = e == null ? void 0 : e.target) == null ? {} : t;
@@ -689,46 +689,46 @@ var mr = /* @__PURE__ */ function(e) {
689
689
  }
690
690
  }),
691
691
  /* @__PURE__ */ R("span", {
692
- className: K.label,
692
+ className: q.label,
693
693
  title: `${d || t}`,
694
694
  children: t
695
695
  }),
696
696
  /* @__PURE__ */ R("span", {
697
- className: K.description,
697
+ className: q.description,
698
698
  children: i
699
699
  })
700
700
  ]
701
701
  }),
702
702
  /* @__PURE__ */ z("div", {
703
- className: K.right,
703
+ className: q.right,
704
704
  children: [o && /* @__PURE__ */ R("span", {
705
- className: K.check,
705
+ className: q.check,
706
706
  children: /* @__PURE__ */ R(U, { icon: V.CHECK })
707
707
  }), !!(e != null && e.length) && /* @__PURE__ */ R("div", {
708
- className: K.actions,
709
- children: /* @__PURE__ */ R(ki, { actions: e })
708
+ className: q.actions,
709
+ children: /* @__PURE__ */ R(Oi, { actions: e })
710
710
  })]
711
711
  })
712
712
  ]
713
- }), ii = /* @__PURE__ */ function(e) {
713
+ }), ri = /* @__PURE__ */ function(e) {
714
714
  return e.HEADING = "Heading", e.DIVIDER = "Divider", e.OPTION = "Option", e.MENU = "Menu", e;
715
- }({}), ai = /* @__PURE__ */ function(e) {
715
+ }({}), ii = /* @__PURE__ */ function(e) {
716
716
  return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
717
- }({}), oi = ({ section: e, closeOnOptionClick: t, close: n, tree: r, path: i, maxHeight: a }) => {
717
+ }({}), ai = ({ section: e, closeOnOptionClick: t, close: n, tree: r, path: i, maxHeight: a }) => {
718
718
  let o = s(H);
719
719
  switch (e.type) {
720
- case ii.HEADING:
720
+ case ri.HEADING:
721
721
  var c;
722
- return /* @__PURE__ */ R(ti, {
722
+ return /* @__PURE__ */ R(ei, {
723
723
  label: (c = e == null ? void 0 : e.label) == null ? "" : c,
724
724
  onClick: e.onClick,
725
725
  icon: e.icon,
726
726
  testId: e.testId
727
727
  });
728
- case ii.DIVIDER: return /* @__PURE__ */ R(ni, {});
729
- case ii.OPTION:
728
+ case ri.DIVIDER: return /* @__PURE__ */ R(ti, {});
729
+ case ri.OPTION:
730
730
  var l;
731
- return /* @__PURE__ */ R(ri, {
731
+ return /* @__PURE__ */ R(ni, {
732
732
  actions: e == null ? void 0 : e.actions,
733
733
  label: (l = e == null ? void 0 : e.label) == null ? "" : l,
734
734
  url: e == null ? void 0 : e.url,
@@ -747,10 +747,10 @@ var mr = /* @__PURE__ */ function(e) {
747
747
  testId: e == null ? void 0 : e.testId,
748
748
  component: e == null ? void 0 : e.component
749
749
  });
750
- case ii.MENU:
750
+ case ri.MENU:
751
751
  var u;
752
752
  let s = !!(!(e == null || (u = e.menu) == null || (u = u.sections) == null) && u.find((e) => e == null ? void 0 : e.selected));
753
- return /* @__PURE__ */ R(Ei, {
753
+ return /* @__PURE__ */ R(Ti, {
754
754
  menu: e.menu,
755
755
  selected: s,
756
756
  title: e.title,
@@ -764,7 +764,7 @@ var mr = /* @__PURE__ */ function(e) {
764
764
  });
765
765
  default: return null;
766
766
  }
767
- }, si = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, ci = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), li = (e) => `${e}.close`.replace(/^\./, ""), ui = (e, t) => Ut(e, si(t), []), di = (e, t, n) => nn(e, li(t), n), fi = ({ sections: e, isNested: t, width: n, closeOnOptionClick: r, close: a = () => {}, tree: o, path: s, maxHeight: c, showAllButton: l, testId: u }) => {
767
+ }, oi = (e) => e.includes("[") ? e.substr(0, e.lastIndexOf("[")) : e, si = (e, t) => `${e}.sections[${t}]`.replace(/^\./, ""), ci = (e) => `${e}.close`.replace(/^\./, ""), li = (e, t) => Ut(e, oi(t), []), ui = (e, t, n) => nn(e, ci(t), n), di = ({ sections: e, isNested: t, width: n, closeOnOptionClick: r, close: a = () => {}, tree: o, path: s, maxHeight: c, showAllButton: l, testId: u }) => {
768
768
  var d, f;
769
769
  if (i(e)) return /* @__PURE__ */ R(L, { children: e });
770
770
  let [p, h] = m(!(l != null && l.visible)), _ = e, v = (d = l == null || (f = l.additionalSections) == null ? void 0 : f.map((e) => ({
@@ -772,7 +772,7 @@ var mr = /* @__PURE__ */ function(e) {
772
772
  closeOnOptionClick: r,
773
773
  visible: !0
774
774
  }))) == null ? [] : d, y = _.length > 4 ? [{
775
- type: ii.OPTION,
775
+ type: ri.OPTION,
776
776
  label: p ? (l == null ? void 0 : l.showLessTitle) || "Show less" : (l == null ? void 0 : l.showAllTitle) || "Show all",
777
777
  onClick: () => h(!p),
778
778
  visible: !0,
@@ -786,42 +786,42 @@ var mr = /* @__PURE__ */ function(e) {
786
786
  closeOnOptionClick: r
787
787
  }));
788
788
  return /* @__PURE__ */ R("div", {
789
- className: g(K.layer, t ? K.nested : null),
789
+ className: g(q.layer, t ? q.nested : null),
790
790
  style: {
791
791
  maxWidth: n,
792
792
  maxHeight: c
793
793
  },
794
794
  "data-testid": u,
795
- children: /* @__PURE__ */ R("ul", { children: b.map((e, t) => /* @__PURE__ */ R("li", { children: /* @__PURE__ */ R(oi, {
795
+ children: /* @__PURE__ */ R("ul", { children: b.map((e, t) => /* @__PURE__ */ R("li", { children: /* @__PURE__ */ R(ai, {
796
796
  section: e,
797
797
  closeOnOptionClick: e.closeOnOptionClick,
798
798
  close: a,
799
799
  tree: o,
800
- path: ci(s, t),
800
+ path: si(s, t),
801
801
  maxHeight: c
802
802
  }) }, t)) })
803
803
  });
804
- }, pi = (e, t = !1) => ({
804
+ }, fi = (e, t = !1) => ({
805
805
  auto: !0,
806
806
  preferX: "right",
807
807
  preferY: "bottom",
808
808
  placement: e || (t ? "right-start" : "bottom-start")
809
- }), q = (e) => $t(e) || Xt(e) || i(e), mi = (e) => Array.isArray(e) ? "array" : typeof e, hi = {
809
+ }), J = (e) => $t(e) || Xt(e) || i(e), pi = (e) => Array.isArray(e) ? "array" : typeof e, mi = {
810
810
  wrapper: "_wrapper_14vly_1",
811
811
  badge: "_badge_14vly_5",
812
812
  label: "_label_14vly_11",
813
813
  small: "_small_14vly_23",
814
814
  dot: "_dot_14vly_27",
815
815
  hasChildren: "_hasChildren_14vly_33"
816
- }, gi = (e) => {
816
+ }, hi = (e) => {
817
817
  let t = e.substring(1), n = parseInt(t, 16), r = n >> 16 & 255, i = n >> 8 & 255, a = n >> 0 & 255;
818
818
  return .2126 * r + .7152 * i + .0722 * a < 128;
819
- }, _i = ({ children: e, color: t = "", textColor: n = "", title: r = null, dot: i = !1, margin: a = null, small: o = !1 }) => {
820
- let s = !(r === null && i === !1), c = n || (gi(t) ? "#fff" : "rgba(0, 0, 0, 0.6)");
819
+ }, gi = ({ children: e, color: t = "", textColor: n = "", title: r = null, dot: i = !1, margin: a = null, small: o = !1 }) => {
820
+ let s = !(r === null && i === !1), c = n || (hi(t) ? "#fff" : "rgba(0, 0, 0, 0.6)");
821
821
  return /* @__PURE__ */ z("div", {
822
- className: hi.wrapper,
822
+ className: mi.wrapper,
823
823
  children: [s && /* @__PURE__ */ R("sup", {
824
- className: g(hi.badge, r === null ? hi.dot : hi.label, o ? hi.small : "", e ? hi.hasChildren : ""),
824
+ className: g(mi.badge, r === null ? mi.dot : mi.label, o ? mi.small : "", e ? mi.hasChildren : ""),
825
825
  style: {
826
826
  background: t || void 0,
827
827
  margin: a || void 0,
@@ -830,14 +830,14 @@ var mr = /* @__PURE__ */ function(e) {
830
830
  children: r
831
831
  }), e]
832
832
  });
833
- }, vi = ({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: c, error: l, warning: u, active: d, tabIndex: f }) => {
833
+ }, _i = ({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: c, error: l, warning: u, active: d, tabIndex: f }) => {
834
834
  let p = s(H), m = e === mr.DROP_DOWN_BUTTON;
835
835
  return /* @__PURE__ */ R("div", {
836
- className: g(K.trigger, a || p ? K.disabled : null),
836
+ className: g(q.trigger, a || p ? q.disabled : null),
837
837
  style: { width: i },
838
- children: /* @__PURE__ */ R(G, {
838
+ children: /* @__PURE__ */ R(K, {
839
839
  label: /* @__PURE__ */ R("span", {
840
- className: K.buttonLabel,
840
+ className: q.buttonLabel,
841
841
  children: t
842
842
  }),
843
843
  colored: n,
@@ -854,34 +854,34 @@ var mr = /* @__PURE__ */ function(e) {
854
854
  tabIndex: f
855
855
  })
856
856
  });
857
- }, yi = ({ label: e, title: t, carat: n, disabled: r, isOpen: i, selected: a }) => {
857
+ }, vi = ({ label: e, title: t, carat: n, disabled: r, isOpen: i, selected: a }) => {
858
858
  let o;
859
859
  return t ? o = t : (typeof e == "string" || typeof e == "number") && (o = String(e)), /* @__PURE__ */ z("div", {
860
- className: g(K.trigger, r ? K.disabled : null, i ? K.active : null, a ? K == null ? void 0 : K.selected : null),
860
+ className: g(q.trigger, r ? q.disabled : null, i ? q.active : null, a ? q == null ? void 0 : q.selected : null),
861
861
  children: [/* @__PURE__ */ R("span", {
862
- className: K.label,
862
+ className: q.label,
863
863
  title: o,
864
864
  children: e
865
- }), n && n === ai.RIGHT ? /* @__PURE__ */ R("span", {
866
- className: K.arrow,
865
+ }), n && n === ii.RIGHT ? /* @__PURE__ */ R("span", {
866
+ className: q.arrow,
867
867
  children: /* @__PURE__ */ R(U, { icon: V.CHEVRON_RIGHT })
868
- }) : n && n === ai.DOWN ? /* @__PURE__ */ R("span", {
869
- className: K.arrow,
868
+ }) : n && n === ii.DOWN ? /* @__PURE__ */ R("span", {
869
+ className: q.arrow,
870
870
  children: /* @__PURE__ */ R(U, { icon: V.CHEVRON_DOWN })
871
871
  }) : null]
872
872
  });
873
- }, bi = ({ component: e, disabled: t, testId: n }) => /* @__PURE__ */ R("div", {
874
- className: g(K.component, t ? K.disabled : null),
873
+ }, yi = ({ component: e, disabled: t, testId: n }) => /* @__PURE__ */ R("div", {
874
+ className: g(q.component, t ? q.disabled : null),
875
875
  "data-testid": n,
876
876
  children: e
877
- }), xi = ({ tooltip: e, error: t, warning: n, children: r }) => !q(e) && !q(t) && !q(n) ? /* @__PURE__ */ R(L, { children: r }) : /* @__PURE__ */ R(W, {
877
+ }), bi = ({ tooltip: e, error: t, warning: n, children: r }) => !J(e) && !J(t) && !J(n) ? /* @__PURE__ */ R(L, { children: r }) : /* @__PURE__ */ R(W, {
878
878
  error: !!t,
879
879
  warning: !!n,
880
880
  text: e || t || n,
881
881
  display: "inline-flex",
882
882
  children: r
883
- }), Si = e.forwardRef(({ active: e, isDisabled: t, badgeTitle: n, badgeDot: r, loading: i, width: a, trigger: o, label: s, title: c, onClickTrigger: l, colored: u, small: d, isNested: f, contextMenu: p, component: m, groupOrder: h, fullHeight: g, isOpen: _, error: v, warning: y, tooltip: b, testId: x, selected: S, tabIndex: C, ...w }, T) => {
884
- let E = o === mr.BUTTON || o === mr.DROP_DOWN_BUTTON ? /* @__PURE__ */ R(vi, {
883
+ }), xi = e.forwardRef(({ active: e, isDisabled: t, badgeTitle: n, badgeDot: r, loading: i, width: a, trigger: o, label: s, title: c, onClickTrigger: l, colored: u, small: d, isNested: f, contextMenu: p, component: m, groupOrder: h, fullHeight: g, isOpen: _, error: v, warning: y, tooltip: b, testId: x, selected: S, tabIndex: C, ...w }, T) => {
884
+ let E = o === mr.BUTTON || o === mr.DROP_DOWN_BUTTON ? /* @__PURE__ */ R(_i, {
885
885
  trigger: o,
886
886
  label: s == null ? "" : s,
887
887
  colored: u,
@@ -894,17 +894,17 @@ var mr = /* @__PURE__ */ function(e) {
894
894
  warning: y,
895
895
  active: _ || e,
896
896
  tabIndex: C
897
- }) : o === mr.TEXT ? /* @__PURE__ */ R(yi, {
897
+ }) : o === mr.TEXT ? /* @__PURE__ */ R(vi, {
898
898
  label: s == null ? "" : s,
899
899
  title: c,
900
900
  disabled: t,
901
- carat: p ? void 0 : f ? ai.RIGHT : ai.DOWN,
901
+ carat: p ? void 0 : f ? ii.RIGHT : ii.DOWN,
902
902
  isOpen: _,
903
903
  selected: S
904
- }) : o === mr.COMPONENT ? /* @__PURE__ */ R(bi, {
904
+ }) : o === mr.COMPONENT ? /* @__PURE__ */ R(yi, {
905
905
  component: m,
906
906
  disabled: t
907
- }) : null, D = !f && (n || r) ? /* @__PURE__ */ R(_i, {
907
+ }) : null, D = !f && (n || r) ? /* @__PURE__ */ R(gi, {
908
908
  title: n,
909
909
  dot: r,
910
910
  small: !r,
@@ -912,7 +912,7 @@ var mr = /* @__PURE__ */ function(e) {
912
912
  }) : E;
913
913
  return /* @__PURE__ */ R("div", {
914
914
  ref: T,
915
- className: K.wrapper,
915
+ className: q.wrapper,
916
916
  style: a ? { width: a } : { ...g && {
917
917
  height: "100%",
918
918
  display: "flex"
@@ -923,21 +923,21 @@ var mr = /* @__PURE__ */ function(e) {
923
923
  "data-error": v || null,
924
924
  "data-warning": y || null,
925
925
  "data-testid": x,
926
- children: /* @__PURE__ */ R(xi, {
926
+ children: /* @__PURE__ */ R(bi, {
927
927
  tooltip: b,
928
928
  error: v,
929
929
  warning: y,
930
930
  children: D
931
931
  })
932
932
  });
933
- }), Ci = (e) => {
933
+ }), Si = (e) => {
934
934
  let { sections: t } = e;
935
935
  return !i(t) && (!Array.isArray(t) || t.every((e) => Kt(e)));
936
- }, wi = ({ sections: e, width: t, placement: n, possiblePlacements: r, closeOnOptionClick: i, closeParent: a, tree: o, path: s, overflowContainer: c, maxHeight: l, testId: u }) => {
936
+ }, Ci = ({ sections: e, width: t, placement: n, possiblePlacements: r, closeOnOptionClick: i, closeParent: a, tree: o, path: s, overflowContainer: c, maxHeight: l, testId: u }) => {
937
937
  let { hasMousePosition: d, resetMousePosition: f, handleMouseEvent: p, trigger: m } = Rt(), h = f, g = d, { layerProps: _, renderLayer: v } = Lt({
938
938
  isOpen: g,
939
939
  trigger: m,
940
- ...pi(n),
940
+ ...fi(n),
941
941
  possiblePlacements: r,
942
942
  ResizeObserver: Nt,
943
943
  onOutsideClick: h,
@@ -945,7 +945,7 @@ var mr = /* @__PURE__ */ function(e) {
945
945
  });
946
946
  return [g && v(/* @__PURE__ */ R("div", {
947
947
  ..._,
948
- children: /* @__PURE__ */ R(fi, {
948
+ children: /* @__PURE__ */ R(di, {
949
949
  isNested: !1,
950
950
  width: t,
951
951
  sections: e,
@@ -957,8 +957,8 @@ var mr = /* @__PURE__ */ function(e) {
957
957
  testId: u && `${u}-layer`
958
958
  })
959
959
  })), p];
960
- }, Ti = ({ menu: e, width: t, disabled: n = !1, closeOnOptionClick: r = !0, closeParent: i, tree: a, path: o, groupOrder: c, testId: l }) => {
961
- let u = s(H), { label: d, trigger: f, fullHeightTrigger: p, colored: m, small: h, component: g, placement: _, possiblePlacements: v = ["bottom-start", "top-start"] } = e, [y, b] = wi({
960
+ }, wi = ({ menu: e, width: t, disabled: n = !1, closeOnOptionClick: r = !0, closeParent: i, tree: a, path: o, groupOrder: c, testId: l }) => {
961
+ let u = s(H), { label: d, trigger: f, fullHeightTrigger: p, colored: m, small: h, component: g, placement: _, possiblePlacements: v = ["bottom-start", "top-start"] } = e, [y, b] = Ci({
962
962
  sections: e.sections,
963
963
  width: t,
964
964
  placement: _,
@@ -975,10 +975,10 @@ var mr = /* @__PURE__ */ function(e) {
975
975
  return /* @__PURE__ */ z("div", {
976
976
  onContextMenu: b,
977
977
  "data-testid": l,
978
- children: [/* @__PURE__ */ R(Si, {
978
+ children: [/* @__PURE__ */ R(xi, {
979
979
  width: t,
980
980
  fullHeight: p,
981
- isDisabled: n || Ci(e) || u,
981
+ isDisabled: n || Si(e) || u,
982
982
  trigger: f,
983
983
  label: d,
984
984
  onClickTrigger: () => {},
@@ -990,17 +990,17 @@ var mr = /* @__PURE__ */ function(e) {
990
990
  groupOrder: c
991
991
  }), y]
992
992
  });
993
- }, Ei = ({ menu: e, width: t, disabled: n = !1, badgeTitle: r, badgeDot: i = !1, loading: a = !1, isNested: o = !1, closeOnOptionClick: c = !0, closeParent: l, tree: u, path: d, groupOrder: f, overflowContainer: h = !0, maxHeight: g, testId: _, open: v, setOpen: y, tooltip: b, error: x, warning: S, selected: C, tabIndex: w, active: T }) => {
993
+ }, Ti = ({ menu: e, width: t, disabled: n = !1, badgeTitle: r, badgeDot: i = !1, loading: a = !1, isNested: o = !1, closeOnOptionClick: c = !0, closeParent: l, tree: u, path: d, groupOrder: f, overflowContainer: h = !0, maxHeight: g, testId: _, open: v, setOpen: y, tooltip: b, error: x, warning: S, selected: C, tabIndex: w, active: T }) => {
994
994
  let E = s(H), D = p(null), { label: O, title: k, trigger: A, fullHeightTrigger: j, colored: M, small: N, sections: P, component: F, placement: ee, showAllButton: te, possiblePlacements: ne = ["bottom-start", "top-start"] } = e, [re, ie] = Gt(v) && Jt(y) ? [v, y] : m(!1), ae = () => ie(!1), oe = () => ie(!0), { triggerProps: se, layerProps: ce, renderLayer: le } = Lt({
995
995
  isOpen: re,
996
- ...pi(ee, o),
996
+ ...fi(ee, o),
997
997
  possiblePlacements: ne,
998
998
  ResizeObserver: Nt,
999
999
  onOutsideClick: ae,
1000
1000
  overflowContainer: h,
1001
1001
  onParentClose: ae
1002
- }), I = n || Ci(e) || E;
1003
- return di(u, d, ae), /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Si, {
1002
+ }), I = n || Si(e) || E;
1003
+ return ui(u, d, ae), /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(xi, {
1004
1004
  ref: se.ref,
1005
1005
  isDisabled: I,
1006
1006
  badgeTitle: r,
@@ -1017,7 +1017,7 @@ var mr = /* @__PURE__ */ function(e) {
1017
1017
  ae();
1018
1018
  return;
1019
1019
  }
1020
- ui(u, d).forEach((e) => {
1020
+ li(u, d).forEach((e) => {
1021
1021
  e.close && e.close();
1022
1022
  }), oe();
1023
1023
  }
@@ -1040,8 +1040,8 @@ var mr = /* @__PURE__ */ function(e) {
1040
1040
  in: re,
1041
1041
  timeout: 100,
1042
1042
  classNames: {
1043
- enter: K.enter,
1044
- enterActive: K.enterActive
1043
+ enter: q.enter,
1044
+ enterActive: q.enterActive
1045
1045
  },
1046
1046
  unmountOnExit: !0,
1047
1047
  children: /* @__PURE__ */ R(L, { children: re && le(/* @__PURE__ */ R("div", {
@@ -1049,10 +1049,10 @@ var mr = /* @__PURE__ */ function(e) {
1049
1049
  ref: (e) => {
1050
1050
  D.current = e, ce.ref(e);
1051
1051
  },
1052
- className: K.layerContainer,
1052
+ className: q.layerContainer,
1053
1053
  "data-testid": e.testId,
1054
1054
  onClick: (e) => e.stopPropagation(),
1055
- children: /* @__PURE__ */ R(fi, {
1055
+ children: /* @__PURE__ */ R(di, {
1056
1056
  sections: P,
1057
1057
  isNested: o,
1058
1058
  width: t,
@@ -1066,18 +1066,18 @@ var mr = /* @__PURE__ */ function(e) {
1066
1066
  })
1067
1067
  })) })
1068
1068
  })] });
1069
- }, Di = (e) => e.contextMenu ? /* @__PURE__ */ R(Ti, {
1069
+ }, Ei = (e) => e.contextMenu ? /* @__PURE__ */ R(wi, {
1070
1070
  ...e,
1071
1071
  tree: {},
1072
1072
  path: "",
1073
1073
  testId: e.testId
1074
- }) : /* @__PURE__ */ R(Ei, {
1074
+ }) : /* @__PURE__ */ R(Ti, {
1075
1075
  ...e,
1076
1076
  tree: {},
1077
1077
  path: "",
1078
1078
  testId: e.testId
1079
- }), Oi = (e) => {
1080
- let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ R(G, {
1079
+ }), Di = (e) => {
1080
+ let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ R(K, {
1081
1081
  colored: r ? !0 : hr.MUTED,
1082
1082
  basic: !r,
1083
1083
  round: !0,
@@ -1086,7 +1086,7 @@ var mr = /* @__PURE__ */ function(e) {
1086
1086
  testId: i,
1087
1087
  tooltip: a
1088
1088
  });
1089
- return t.length ? /* @__PURE__ */ R(Di, { menu: {
1089
+ return t.length ? /* @__PURE__ */ R(Ei, { menu: {
1090
1090
  trigger: mr.COMPONENT,
1091
1091
  component: o,
1092
1092
  sections: t.map((e) => {
@@ -1104,22 +1104,22 @@ var mr = /* @__PURE__ */ function(e) {
1104
1104
  };
1105
1105
  })
1106
1106
  } }) : null;
1107
- }, ki = (t) => {
1107
+ }, Oi = (t) => {
1108
1108
  let n = s(H), { actions: r = [], closeLayer: i } = t;
1109
1109
  return /* @__PURE__ */ R("div", {
1110
- className: g(ei.actions),
1110
+ className: g($r.actions),
1111
1111
  children: r.map((t, r) => {
1112
1112
  if (!(t != null && t.hidden || !t || !Object.keys(t).length)) return t.childComponent && e.isValidElement(t.childComponent) ? /* @__PURE__ */ R("div", {
1113
1113
  "data-testid": t.testId,
1114
- className: ei.childComponent,
1114
+ className: $r.childComponent,
1115
1115
  children: t.childComponent
1116
- }, r) : t.subActions ? /* @__PURE__ */ R(Oi, {
1116
+ }, r) : t.subActions ? /* @__PURE__ */ R(Di, {
1117
1117
  subActions: t.subActions,
1118
1118
  primary: t.primary,
1119
1119
  subMenuIcon: t.icon,
1120
1120
  testId: t.testId,
1121
1121
  tooltip: t.tooltip
1122
- }, r) : /* @__PURE__ */ R(G, {
1122
+ }, r) : /* @__PURE__ */ R(K, {
1123
1123
  colored: t.primary ? !0 : "muted",
1124
1124
  round: !0,
1125
1125
  basic: !t.primary,
@@ -1135,30 +1135,30 @@ var mr = /* @__PURE__ */ function(e) {
1135
1135
  }, r);
1136
1136
  })
1137
1137
  });
1138
- }, Ai = {
1138
+ }, ki = {
1139
1139
  breadcrumb: "_breadcrumb_2k0cd_1",
1140
1140
  small: "_small_2k0cd_4",
1141
1141
  labelContainer: "_labelContainer_2k0cd_7",
1142
1142
  active: "_active_2k0cd_17",
1143
1143
  disabled: "_disabled_2k0cd_22",
1144
1144
  separator: "_separator_2k0cd_27"
1145
- }, ji = /* @__PURE__ */ function(e) {
1145
+ }, Ai = /* @__PURE__ */ function(e) {
1146
1146
  return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
1147
- }({}), Mi = ({ type: e = ji.LABEL, label: t, url: n, onClick: r, active: a, disabled: o, element: c }) => {
1148
- let l = s(H), u = e === ji.LINK && n !== void 0, d = e === ji.CUSTOM && i(c);
1147
+ }({}), ji = ({ type: e = Ai.LABEL, label: t, url: n, onClick: r, active: a, disabled: o, element: c }) => {
1148
+ let l = s(H), u = e === Ai.LINK && n !== void 0, d = e === Ai.CUSTOM && i(c);
1149
1149
  return /* @__PURE__ */ R("span", {
1150
1150
  onClick: r,
1151
- className: g(Ai.labelContainer, a && Ai.active, (o || l) && Ai.disabled),
1151
+ className: g(ki.labelContainer, a && ki.active, (o || l) && ki.disabled),
1152
1152
  children: u ? /* @__PURE__ */ R("a", {
1153
1153
  href: n,
1154
1154
  children: t
1155
1155
  }) : d ? c : t
1156
1156
  });
1157
- }, Ni = ({ links: e, small: t = !1 }) => /* @__PURE__ */ R("div", {
1158
- className: g(Ai.breadcrumb, t && Ai.small),
1157
+ }, Mi = ({ links: e, small: t = !1 }) => /* @__PURE__ */ R("div", {
1158
+ className: g(ki.breadcrumb, t && ki.small),
1159
1159
  children: e.map((t, n) => {
1160
1160
  let r = e.length === n + 1, { type: i, label: a, url: o, onClick: s, active: c, disabled: l, element: u } = t;
1161
- return /* @__PURE__ */ z("span", { children: [/* @__PURE__ */ R(Mi, {
1161
+ return /* @__PURE__ */ z("span", { children: [/* @__PURE__ */ R(ji, {
1162
1162
  type: i,
1163
1163
  label: a,
1164
1164
  url: o,
@@ -1167,14 +1167,14 @@ var mr = /* @__PURE__ */ function(e) {
1167
1167
  disabled: l,
1168
1168
  element: u
1169
1169
  }), !r && /* @__PURE__ */ R("span", {
1170
- className: Ai.separator,
1170
+ className: ki.separator,
1171
1171
  children: "/"
1172
1172
  })] }, n);
1173
1173
  })
1174
- }), Pi = {
1174
+ }), Ni = {
1175
1175
  label: "_label_iu2wi_1",
1176
1176
  buttonGroup: "_buttonGroup_iu2wi_11"
1177
- }, Fi = (e) => {
1177
+ }, Pi = (e) => {
1178
1178
  let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: c = void 0, disabled: l } = e, u = s(H), d = (e, t, n, r, a) => {
1179
1179
  e.preventDefault(), e.stopPropagation(), !(l || a || u) && i(t, n, r);
1180
1180
  }, f = (e, t) => t === "string" ? e : t === "object" ? e.label : t === "array" ? e[1] : null, p = (e, t) => {
@@ -1183,22 +1183,22 @@ var mr = /* @__PURE__ */ function(e) {
1183
1183
  }, m = (e, t, n) => t === "object" && "key" in e ? e.key : n, h = (e, t) => t === "object" ? e.hidden : !1, g = (e, t) => t === "object" ? e.icon : void 0, _ = (e, t, n) => e === "object" ? String(t) === String(o) : n === o;
1184
1184
  return /* @__PURE__ */ R("div", { children: /* @__PURE__ */ z("div", { children: [(() => {
1185
1185
  if (r) return /* @__PURE__ */ R("label", {
1186
- className: Pi.label,
1186
+ className: Ni.label,
1187
1187
  children: r
1188
1188
  });
1189
1189
  })(), /* @__PURE__ */ R("div", {
1190
- className: Pi.buttonGroup,
1190
+ className: Ni.buttonGroup,
1191
1191
  "data-testid": c,
1192
1192
  children: n.map((e, r) => {
1193
- let i = mi(e), o = r === 0 ? B.FIRST : r === n.length - 1 ? B.LAST : B.MIDDLE, s = f(e, i), c = p(e, i), u = m(e, i, c), v = h(e, i), y = g(e, i), b = _(i, u, c), { error: x, maxTooltipWidth: S, testId: C, tooltip: w, warning: T } = e;
1193
+ let i = pi(e), o = r === 0 ? B.FIRST : r === n.length - 1 ? B.LAST : B.MIDDLE, s = f(e, i), c = p(e, i), u = m(e, i, c), v = h(e, i), y = g(e, i), b = _(i, u, c), { error: x, maxTooltipWidth: S, testId: C, tooltip: w, warning: T } = e;
1194
1194
  return v ? null : /* @__PURE__ */ R(W, {
1195
1195
  error: !!x,
1196
1196
  warning: !!T,
1197
1197
  text: w || x || T,
1198
1198
  maxWidth: S,
1199
1199
  display: "block",
1200
- enabled: w && q(w) || x && q(x) || T && q(T) || !1,
1201
- children: /* @__PURE__ */ R(G, {
1200
+ enabled: w && J(w) || x && J(x) || T && J(T) || !1,
1201
+ children: /* @__PURE__ */ R(K, {
1202
1202
  active: b,
1203
1203
  basic: t,
1204
1204
  disabled: l || e.disabled,
@@ -1214,7 +1214,7 @@ var mr = /* @__PURE__ */ function(e) {
1214
1214
  }, r);
1215
1215
  })
1216
1216
  })] }) });
1217
- }, Ii = {
1217
+ }, Fi = {
1218
1218
  card: "_card_ucdeu_1",
1219
1219
  bordered: "_bordered_ucdeu_4",
1220
1220
  raised: "_raised_ucdeu_10",
@@ -1222,23 +1222,23 @@ var mr = /* @__PURE__ */ function(e) {
1222
1222
  cardContentBorderTop: "_cardContentBorderTop_ucdeu_19",
1223
1223
  padding: "_padding_ucdeu_22",
1224
1224
  cardContent: "_cardContent_ucdeu_19"
1225
- }, Li = ({ bordered: e = !0, heading: t = null, children: n, margin: r = "0", padding: i = !0, raised: a = !1 }) => /* @__PURE__ */ z("div", {
1226
- className: g(Ii.card, e ? Ii.bordered : "", a ? Ii.raised : ""),
1225
+ }, Ii = ({ bordered: e = !0, heading: t = null, children: n, margin: r = "0", padding: i = !0, raised: a = !1 }) => /* @__PURE__ */ z("div", {
1226
+ className: g(Fi.card, e ? Fi.bordered : "", a ? Fi.raised : ""),
1227
1227
  style: { margin: r },
1228
1228
  children: [t ? /* @__PURE__ */ R("div", {
1229
- className: g(Ii.cardHeader),
1229
+ className: g(Fi.cardHeader),
1230
1230
  children: t
1231
1231
  }) : null, /* @__PURE__ */ R("div", {
1232
- className: g(Ii.cardContent, t ? Ii.cardContentBorderTop : "", i ? Ii.padding : ""),
1232
+ className: g(Fi.cardContent, t ? Fi.cardContentBorderTop : "", i ? Fi.padding : ""),
1233
1233
  children: n
1234
1234
  })]
1235
- }), Ri = {
1235
+ }), Li = {
1236
1236
  toggleBox: "_toggleBox_rwod1_1",
1237
1237
  enter: "_enter_rwod1_8",
1238
1238
  enterActive: "_enterActive_rwod1_12",
1239
1239
  fullWidthStyleFix: "_fullWidthStyleFix_rwod1_17",
1240
1240
  dismiss: "_dismiss_rwod1_22"
1241
- }, zi = ({ children: t, content: n, placement: r = "top-center", closeOnOutsideClick: i = !0, fullWidth: a = !1, showCloseButton: o = !1, testId: l, disabled: u = !1, overflowContainer: d = !1, isOpen: f, onToggle: h }) => {
1241
+ }, Ri = ({ children: t, content: n, placement: r = "top-center", closeOnOutsideClick: i = !0, fullWidth: a = !1, showCloseButton: o = !1, testId: l, disabled: u = !1, overflowContainer: d = !1, isOpen: f, onToggle: h }) => {
1242
1242
  let _ = s(H), v = p(null), [y, b] = f === void 0 ? m(!1) : [f, h], x = () => {
1243
1243
  !u && !_ && b && b(!1);
1244
1244
  }, S = () => {
@@ -1266,19 +1266,19 @@ var mr = /* @__PURE__ */ function(e) {
1266
1266
  in: y,
1267
1267
  timeout: 100,
1268
1268
  classNames: {
1269
- enter: Ri.enter,
1270
- enterActive: Ri.enterActive
1269
+ enter: Li.enter,
1270
+ enterActive: Li.enterActive
1271
1271
  },
1272
1272
  unmountOnExit: !0,
1273
1273
  children: /* @__PURE__ */ R(L, { children: y && C(/* @__PURE__ */ z("div", {
1274
- className: a ? g(Ri.toggleBox, Ri.fullWidthStyleFix) : g(Ri.toggleBox),
1274
+ className: a ? g(Li.toggleBox, Li.fullWidthStyleFix) : g(Li.toggleBox),
1275
1275
  ...T,
1276
1276
  ref: (e) => {
1277
1277
  v.current = e, T.ref(e);
1278
1278
  },
1279
1279
  children: [/* @__PURE__ */ z("div", { children: [e.isValidElement(n) ? e.cloneElement(n, { close: x }) : n, o && /* @__PURE__ */ R("div", {
1280
- className: Ri.dismiss,
1281
- children: /* @__PURE__ */ R(G, {
1280
+ className: Li.dismiss,
1281
+ children: /* @__PURE__ */ R(K, {
1282
1282
  small: !0,
1283
1283
  round: !0,
1284
1284
  onClick: x,
@@ -1293,34 +1293,34 @@ var mr = /* @__PURE__ */ function(e) {
1293
1293
  })]
1294
1294
  })) })
1295
1295
  })] });
1296
- }, Bi = {
1296
+ }, zi = {
1297
1297
  colorInput: "_colorInput_1j7vk_1",
1298
1298
  trigger: "_trigger_1j7vk_8",
1299
1299
  buttonColor: "_buttonColor_1j7vk_12",
1300
1300
  options: "_options_1j7vk_17",
1301
1301
  option: "_option_1j7vk_17",
1302
1302
  adjustColorsInDarkMode: "_adjustColorsInDarkMode_1j7vk_26"
1303
- }, Vi = ({ columns: e = 9, disabled: t, options: n = [], small: r, value: i, onChange: a, adjustColorsInDarkMode: o = !1 }) => {
1303
+ }, Bi = ({ columns: e = 9, disabled: t, options: n = [], small: r, value: i, onChange: a, adjustColorsInDarkMode: o = !1 }) => {
1304
1304
  var s;
1305
1305
  let [c, l] = m(!1), u = (s = n.find((e) => e.value === i)) == null ? void 0 : s.label;
1306
1306
  return /* @__PURE__ */ R("div", {
1307
- className: g(Bi.colorInput, o ? Bi.adjustColorsInDarkMode : void 0),
1308
- children: /* @__PURE__ */ R(zi, {
1307
+ className: g(zi.colorInput, o ? zi.adjustColorsInDarkMode : void 0),
1308
+ children: /* @__PURE__ */ R(Ri, {
1309
1309
  placement: "bottom-start",
1310
1310
  isOpen: c,
1311
1311
  onToggle: l,
1312
1312
  content: /* @__PURE__ */ R("div", {
1313
- className: g(Bi.options, o ? Bi.adjustColorsInDarkMode : void 0),
1313
+ className: g(zi.options, o ? zi.adjustColorsInDarkMode : void 0),
1314
1314
  style: { gridTemplateColumns: `repeat(${e}, auto)` },
1315
1315
  children: n.map((e) => /* @__PURE__ */ R("div", {
1316
- className: Bi.option,
1317
- children: /* @__PURE__ */ R(G, {
1316
+ className: zi.option,
1317
+ children: /* @__PURE__ */ R(K, {
1318
1318
  basic: !0,
1319
1319
  disabled: t,
1320
1320
  width: "var(--size)",
1321
1321
  tooltip: e.label,
1322
1322
  label: /* @__PURE__ */ R("div", {
1323
- className: Bi.buttonColor,
1323
+ className: zi.buttonColor,
1324
1324
  style: { backgroundColor: e.value }
1325
1325
  }),
1326
1326
  onClick: () => {
@@ -1329,26 +1329,26 @@ var mr = /* @__PURE__ */ function(e) {
1329
1329
  }, e.value)
1330
1330
  }, e.value))
1331
1331
  }),
1332
- children: /* @__PURE__ */ R(G, {
1332
+ children: /* @__PURE__ */ R(K, {
1333
1333
  disabled: t,
1334
1334
  small: r,
1335
1335
  active: c,
1336
1336
  width: r ? "var(--size-sm)" : "var(--size)",
1337
1337
  tooltip: u,
1338
1338
  label: /* @__PURE__ */ R("div", {
1339
- className: Bi.buttonColor,
1339
+ className: zi.buttonColor,
1340
1340
  style: { backgroundColor: i }
1341
1341
  })
1342
1342
  })
1343
1343
  })
1344
1344
  });
1345
- }, Hi = cn`
1345
+ }, Vi = cn`
1346
1346
  scrollbar-width: none;
1347
1347
  -ms-overflow-style: none;
1348
1348
  &::-webkit-scrollbar {
1349
1349
  display: none;
1350
1350
  }
1351
- `, Ui = sn.div`
1351
+ `, Hi = sn.div`
1352
1352
  position: relative; // for react-laag
1353
1353
  display: flex;
1354
1354
  flex-direction: column;
@@ -1361,7 +1361,7 @@ var mr = /* @__PURE__ */ function(e) {
1361
1361
  border-left: ${(e) => e.$borderLeft === !0 ? "1px solid var(--color-border)" : e.$borderLeft};
1362
1362
  border-right: ${(e) => e.$borderRight === !0 ? "1px solid var(--color-border)" : e.$borderRight};
1363
1363
  padding: ${(e) => e.$spacing ? `0 calc(${e.$spacing} / 2)` : "0"};
1364
- ${(e) => !e.$showScrollbar && Hi}
1364
+ ${(e) => !e.$showScrollbar && Vi}
1365
1365
 
1366
1366
  @media (max-width: 992px) {
1367
1367
  ${(e) => e.$widthTablet && `flex-basis: ${e.$widthTablet};`}
@@ -1380,9 +1380,9 @@ var mr = /* @__PURE__ */ function(e) {
1380
1380
  ${(e) => e.$flexbox && "flex-direction: column;"}
1381
1381
  padding: ${(e) => e.$padding === !0 ? "var(--padding)" : e.$padding};
1382
1382
  }
1383
- `, Wi = ({ background: e = "transparent", borderLeft: t, borderRight: n, children: r = null, flex: i = !0, flexbox: a = !1, padding: o = !1, scroll: s = !1, showScrollbar: c = !0, spacing: l = "var(--padding)", width: u, widthMobile: d, widthTablet: f, testId: p }) => {
1383
+ `, Ui = ({ background: e = "transparent", borderLeft: t, borderRight: n, children: r = null, flex: i = !0, flexbox: a = !1, padding: o = !1, scroll: s = !1, showScrollbar: c = !0, spacing: l = "var(--padding)", width: u, widthMobile: d, widthTablet: f, testId: p }) => {
1384
1384
  let m = (e) => typeof e == "string" ? e : typeof e == "number" ? `${e}px` : void 0;
1385
- return /* @__PURE__ */ R(Ui, {
1385
+ return /* @__PURE__ */ R(Hi, {
1386
1386
  $background: e,
1387
1387
  $borderLeft: t,
1388
1388
  $borderRight: n,
@@ -1401,11 +1401,11 @@ var mr = /* @__PURE__ */ function(e) {
1401
1401
  children: r
1402
1402
  })
1403
1403
  });
1404
- }, Gi = {
1404
+ }, Wi = {
1405
1405
  divider: "_divider_2bfzh_1",
1406
1406
  alignLeft: "_alignLeft_2bfzh_12",
1407
1407
  alignRight: "_alignRight_2bfzh_15"
1408
- }, Ki = {
1408
+ }, Gi = {
1409
1409
  bold: "_bold_11ofj_1",
1410
1410
  center: "_center_11ofj_4",
1411
1411
  muted: "_muted_11ofj_7",
@@ -1415,41 +1415,41 @@ var mr = /* @__PURE__ */ function(e) {
1415
1415
  error: "_error_11ofj_19",
1416
1416
  small: "_small_11ofj_22",
1417
1417
  link: "_link_11ofj_25"
1418
- }, qi = ({ children: e, bold: t = !1, center: n = !1, error: r = !1, faint: i = !1, link: a = !1, muted: o = !1, onClick: s, small: c = !1, success: l = !1, warning: u = !1 }) => /* @__PURE__ */ R("span", {
1419
- className: g(t && Ki.bold, n && Ki.center, r && Ki.error, i && Ki.faint, a && Ki.link, o && Ki.muted, s && Ki.clickable, c && Ki.small, l && Ki.success, u && Ki.warning),
1418
+ }, Ki = ({ children: e, bold: t = !1, center: n = !1, error: r = !1, faint: i = !1, link: a = !1, muted: o = !1, onClick: s, small: c = !1, success: l = !1, warning: u = !1 }) => /* @__PURE__ */ R("span", {
1419
+ className: g(t && Gi.bold, n && Gi.center, r && Gi.error, i && Gi.faint, a && Gi.link, o && Gi.muted, s && Gi.clickable, c && Gi.small, l && Gi.success, u && Gi.warning),
1420
1420
  onClick: s,
1421
1421
  children: e
1422
- }), Ji = (e) => {
1422
+ }), qi = (e) => {
1423
1423
  switch (e) {
1424
- case gr.LEFT: return Gi.alignLeft;
1425
- case gr.RIGHT: return Gi.alignRight;
1424
+ case gr.LEFT: return Wi.alignLeft;
1425
+ case gr.RIGHT: return Wi.alignRight;
1426
1426
  default: return "";
1427
1427
  }
1428
- }, Yi = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = gr.CENTER }) => /* @__PURE__ */ R("div", {
1429
- className: `${Gi.divider} ${Ji(r)}`,
1428
+ }, Ji = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = gr.CENTER }) => /* @__PURE__ */ R("div", {
1429
+ className: `${Wi.divider} ${qi(r)}`,
1430
1430
  style: {
1431
1431
  marginTop: t,
1432
1432
  marginBottom: t,
1433
1433
  "--color": n
1434
1434
  },
1435
- children: typeof e == "string" ? /* @__PURE__ */ R(qi, {
1435
+ children: typeof e == "string" ? /* @__PURE__ */ R(Ki, {
1436
1436
  muted: !0,
1437
1437
  children: e
1438
1438
  }) : e
1439
- }), Xi = {
1439
+ }), Yi = {
1440
1440
  heading: "_heading_yhdiy_1",
1441
1441
  top: "_top_yhdiy_10",
1442
1442
  icons: "_icons_yhdiy_20"
1443
- }, Zi = ({ children: e, helpText: t, onClick: n, onClickHelp: r, onIconClick: i, icon: a, libraryIcon: o, marginBottom: s, top: c = !1, testId: l }) => {
1443
+ }, Xi = ({ children: e, helpText: t, onClick: n, onClickHelp: r, onIconClick: i, icon: a, libraryIcon: o, marginBottom: s, top: c = !1, testId: l }) => {
1444
1444
  var u;
1445
1445
  let d = !!t || !!r;
1446
1446
  return /* @__PURE__ */ z("div", {
1447
- className: g(Xi.heading, c ? Xi.top : ""),
1447
+ className: g(Yi.heading, c ? Yi.top : ""),
1448
1448
  style: { marginBottom: s },
1449
1449
  onClick: n,
1450
1450
  "data-testid": l,
1451
1451
  children: [e, /* @__PURE__ */ z("div", {
1452
- className: Xi.icons,
1452
+ className: Yi.icons,
1453
1453
  children: [
1454
1454
  a && /* @__PURE__ */ R(Ur, {
1455
1455
  onClick: i,
@@ -1467,7 +1467,7 @@ var mr = /* @__PURE__ */ function(e) {
1467
1467
  ]
1468
1468
  })]
1469
1469
  });
1470
- }, Qi = {
1470
+ }, Zi = {
1471
1471
  dialog: "_dialog_xouqi_1",
1472
1472
  inline: "_inline_xouqi_18",
1473
1473
  scroll: "_scroll_xouqi_21",
@@ -1476,14 +1476,14 @@ var mr = /* @__PURE__ */ function(e) {
1476
1476
  subheading: "_subheading_xouqi_38",
1477
1477
  content: "_content_xouqi_41",
1478
1478
  footer: "_footer_xouqi_50"
1479
- }, $i = (e) => Wt(e) ? e.map((e, n) => /* @__PURE__ */ z(t, { children: [
1479
+ }, Qi = (e) => Wt(e) ? e.map((e, n) => /* @__PURE__ */ z(t, { children: [
1480
1480
  e,
1481
1481
  " ",
1482
1482
  /* @__PURE__ */ R("br", {})
1483
- ] }, n)) : e, ea = ({ dialog: e }) => {
1483
+ ] }, n)) : e, $i = ({ dialog: e }) => {
1484
1484
  let { heading: t, subheading: n, content: r, contentPadding: i = "var(--padding)", footer: a, scroll: o, width: s, height: c, onClose: l, testId: u } = e;
1485
1485
  return /* @__PURE__ */ z("div", {
1486
- className: g(Qi.dialog, s ? Qi.inline : null, o ? Qi.scroll : null),
1486
+ className: g(Zi.dialog, s ? Zi.inline : null, o ? Zi.scroll : null),
1487
1487
  style: {
1488
1488
  width: s,
1489
1489
  height: c
@@ -1491,18 +1491,18 @@ var mr = /* @__PURE__ */ function(e) {
1491
1491
  "data-testid": u == null ? null : u,
1492
1492
  children: [
1493
1493
  /* @__PURE__ */ z("div", {
1494
- className: Qi.header,
1495
- children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R(Zi, {
1494
+ className: Zi.header,
1495
+ children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R(Xi, {
1496
1496
  testId: u && `${u}-heading`,
1497
1497
  top: !0,
1498
1498
  marginBottom: 0,
1499
1499
  children: t
1500
1500
  }), /* @__PURE__ */ R("div", {
1501
- className: Qi.subheading,
1501
+ className: Zi.subheading,
1502
1502
  children: n
1503
1503
  })] }), l ? /* @__PURE__ */ R("div", {
1504
- className: Qi.dismiss,
1505
- children: /* @__PURE__ */ R(G, {
1504
+ className: Zi.dismiss,
1505
+ children: /* @__PURE__ */ R(K, {
1506
1506
  icon: V.CLOSE,
1507
1507
  round: !0,
1508
1508
  basic: !0,
@@ -1516,18 +1516,18 @@ var mr = /* @__PURE__ */ function(e) {
1516
1516
  }),
1517
1517
  /* @__PURE__ */ R("div", {
1518
1518
  "data-testid": u && `${u}-content`,
1519
- className: Qi.content,
1519
+ className: Zi.content,
1520
1520
  style: { padding: i },
1521
- children: $i(r)
1521
+ children: Qi(r)
1522
1522
  }),
1523
1523
  a && /* @__PURE__ */ R("div", {
1524
1524
  "data-testid": u && `${u}-footer`,
1525
- className: Qi.footer,
1525
+ className: Zi.footer,
1526
1526
  children: a
1527
1527
  })
1528
1528
  ]
1529
1529
  });
1530
- }, J = {
1530
+ }, ea = {
1531
1531
  inputInTable: "_inputInTable_c4h57_1",
1532
1532
  inputHover: "_inputHover_c4h57_13",
1533
1533
  inputFocus: "_inputFocus_c4h57_18",
@@ -1553,15 +1553,15 @@ var mr = /* @__PURE__ */ function(e) {
1553
1553
  disabled: "_disabled_c4h57_224",
1554
1554
  tabsContent: "_tabsContent_c4h57_231",
1555
1555
  resizeHandle: "_resizeHandle_c4h57_237"
1556
- }, ta = ({ badge: e, children: t }) => e ? /* @__PURE__ */ R(_i, {
1556
+ }, ta = ({ badge: e, children: t }) => e ? /* @__PURE__ */ R(gi, {
1557
1557
  small: !0,
1558
1558
  margin: 4,
1559
1559
  title: e.toString(),
1560
1560
  children: t
1561
1561
  }) : /* @__PURE__ */ R(L, { children: t }), na = ({ tabs: e, activeTab: t, open: n, background: r, handleTabClick: i, width: a, testId: o }) => /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
1562
- className: J.tabs,
1562
+ className: ea.tabs,
1563
1563
  children: e.map((e, a) => Yt(e) || Kt(e) ? null : /* @__PURE__ */ R("div", {
1564
- className: g(J.tab, t === a && n ? J.active : "", e.disabled ? J.disabled : ""),
1564
+ className: g(ea.tab, t === a && n ? ea.active : "", e.disabled ? ea.disabled : ""),
1565
1565
  style: { background: r },
1566
1566
  onClick: e.disabled ? void 0 : () => i(a),
1567
1567
  "data-testid": o && `${o}-icon-${a}`,
@@ -1578,7 +1578,7 @@ var mr = /* @__PURE__ */ function(e) {
1578
1578
  width: typeof a == "number" ? `${a}px` : a,
1579
1579
  display: i ? "block" : "none"
1580
1580
  },
1581
- className: J.tabsContent,
1581
+ className: ea.tabsContent,
1582
1582
  "data-testid": o && `${o}-content-${r}`,
1583
1583
  children: i && n && e.content
1584
1584
  }, r);
@@ -1586,7 +1586,7 @@ var mr = /* @__PURE__ */ function(e) {
1586
1586
  let { handleAxis: n, ...r } = e;
1587
1587
  return /* @__PURE__ */ R("div", {
1588
1588
  ref: t,
1589
- className: J.resizeHandle,
1589
+ className: ea.resizeHandle,
1590
1590
  ...r,
1591
1591
  children: /* @__PURE__ */ R(U, { icon: V.DRAG })
1592
1592
  });
@@ -1603,7 +1603,7 @@ var mr = /* @__PURE__ */ function(e) {
1603
1603
  handle: /* @__PURE__ */ R(ra, {}),
1604
1604
  resizeHandles: n ? ["w"] : ["e"],
1605
1605
  axis: "x",
1606
- className: o ? J.isResizing : "",
1606
+ className: o ? ea.isResizing : "",
1607
1607
  onResizeStart: () => {
1608
1608
  i && i(!0), r && r(t), s(!0);
1609
1609
  },
@@ -1621,10 +1621,10 @@ var mr = /* @__PURE__ */ function(e) {
1621
1621
  right: a,
1622
1622
  maxOpenWidth: E,
1623
1623
  children: /* @__PURE__ */ z("div", {
1624
- className: g(J.drawer, c ? J.shadow : "", t ? J.fixed : J.inline, a ? J.right : J.left),
1624
+ className: g(ea.drawer, c ? ea.shadow : "", t ? ea.fixed : ea.inline, a ? ea.right : ea.left),
1625
1625
  style: { top: l },
1626
1626
  children: [/* @__PURE__ */ R("div", {
1627
- className: g(J.drawerContent, p && J.border),
1627
+ className: g(ea.drawerContent, p && ea.border),
1628
1628
  style: {
1629
1629
  background: e,
1630
1630
  borderColor: typeof p == "string" ? p : void 0,
@@ -1655,8 +1655,8 @@ var mr = /* @__PURE__ */ function(e) {
1655
1655
  children: h
1656
1656
  })
1657
1657
  }), u && /* @__PURE__ */ R("span", {
1658
- className: g(J.toggleButton, k && (D || O && d) ? J.toggleButtonOpen : "", f === "top" ? J.top : J.bottom),
1659
- children: O ? u : /* @__PURE__ */ R(G, {
1658
+ className: g(ea.toggleButton, k && (D || O && d) ? ea.toggleButtonOpen : "", f === "top" ? ea.top : ea.bottom),
1659
+ children: O ? u : /* @__PURE__ */ R(K, {
1660
1660
  onClick: P ? () => P(!N) : void 0,
1661
1661
  round: !0,
1662
1662
  icon: a ? V.CHEVRON_RIGHT : V.CHEVRON_LEFT
@@ -1708,7 +1708,7 @@ var mr = /* @__PURE__ */ function(e) {
1708
1708
  error: !!e,
1709
1709
  warning: !!x,
1710
1710
  text: t || e || x,
1711
- enabled: t && q(t) || e && q(e) || x && q(x) || !1,
1711
+ enabled: t && J(t) || e && J(e) || x && J(x) || !1,
1712
1712
  maxWidth: C,
1713
1713
  display: "block",
1714
1714
  children: /* @__PURE__ */ R("input", {
@@ -1773,7 +1773,7 @@ var mr = /* @__PURE__ */ function(e) {
1773
1773
  value: h || "",
1774
1774
  placeholder: n,
1775
1775
  disabled: !0
1776
- }), /* @__PURE__ */ R(G, {
1776
+ }), /* @__PURE__ */ R(K, {
1777
1777
  label: e,
1778
1778
  loading: t,
1779
1779
  disabled: t || r || f,
@@ -1948,7 +1948,7 @@ var mr = /* @__PURE__ */ function(e) {
1948
1948
  }, k = () => {
1949
1949
  n();
1950
1950
  }, A = /* @__PURE__ */ z(L, { children: [
1951
- /* @__PURE__ */ R(qi, { children: u || "Upload file and extract data using a LLM" }),
1951
+ /* @__PURE__ */ R(Ki, { children: u || "Upload file and extract data using a LLM" }),
1952
1952
  /* @__PURE__ */ R(_a, {}),
1953
1953
  /* @__PURE__ */ R(ga, {
1954
1954
  placeholder: f || "No file",
@@ -1959,13 +1959,13 @@ var mr = /* @__PURE__ */ function(e) {
1959
1959
  accept: "image/*"
1960
1960
  }),
1961
1961
  y && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(_a, {}), /* @__PURE__ */ R(Ea, { percentage: Dn(100 * x / Oa, 3) })] })
1962
- ] }), j = /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(G, {
1962
+ ] }), j = /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(K, {
1963
1963
  label: p || "Upload",
1964
1964
  colored: !0,
1965
1965
  onClick: O,
1966
1966
  disabled: !_ || y,
1967
1967
  testId: `${g}-button-upload`
1968
- }), /* @__PURE__ */ R(G, {
1968
+ }), /* @__PURE__ */ R(K, {
1969
1969
  label: h || "Cancel",
1970
1970
  onClick: k,
1971
1971
  testId: `${g}-button-cancel`
@@ -1973,7 +1973,7 @@ var mr = /* @__PURE__ */ function(e) {
1973
1973
  return va("Escape", () => k()), /* @__PURE__ */ R(Ca, {
1974
1974
  visible: e,
1975
1975
  centered: !0,
1976
- children: /* @__PURE__ */ R(ea, { dialog: {
1976
+ children: /* @__PURE__ */ R($i, { dialog: {
1977
1977
  scroll: !0,
1978
1978
  heading: l || "Smart Upload",
1979
1979
  content: A,
@@ -2020,13 +2020,13 @@ var mr = /* @__PURE__ */ function(e) {
2020
2020
  }, Pa = ({ visible: e, setModalVisibility: t, validationRules: n = [], t: r }) => /* @__PURE__ */ R(Ca, {
2021
2021
  visible: e,
2022
2022
  centered: !0,
2023
- children: /* @__PURE__ */ R(ea, { dialog: {
2023
+ children: /* @__PURE__ */ R($i, { dialog: {
2024
2024
  heading: r("importingData"),
2025
2025
  content: /* @__PURE__ */ R(Na, {
2026
2026
  validationRules: n,
2027
2027
  t: r
2028
2028
  }),
2029
- footer: /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(G, {
2029
+ footer: /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(K, {
2030
2030
  label: r("cancel"),
2031
2031
  onClick: () => t("helpModal", !1)
2032
2032
  }) }),
@@ -2168,12 +2168,12 @@ var mr = /* @__PURE__ */ function(e) {
2168
2168
  let i = e !== null, a = t !== null;
2169
2169
  return !i && !a ? null : /* @__PURE__ */ z("div", {
2170
2170
  className: Ga.title,
2171
- children: [i ? /* @__PURE__ */ R(Zi, { children: /* @__PURE__ */ R("span", {
2171
+ children: [i ? /* @__PURE__ */ R(Xi, { children: /* @__PURE__ */ R("span", {
2172
2172
  "data-testid": r,
2173
2173
  children: e
2174
2174
  }) }) : null, (() => {
2175
2175
  if (!a) return null;
2176
- let e = /* @__PURE__ */ R(ki, { actions: t });
2176
+ let e = /* @__PURE__ */ R(Oi, { actions: t });
2177
2177
  return n ? e : /* @__PURE__ */ R("div", { children: e });
2178
2178
  })()]
2179
2179
  });
@@ -2222,7 +2222,7 @@ var mr = /* @__PURE__ */ function(e) {
2222
2222
  error: !!t,
2223
2223
  warning: !!n,
2224
2224
  text: r || t || n,
2225
- enabled: r && q(r) || t && q(t) || n && q(n) || !1,
2225
+ enabled: r && J(r) || t && J(t) || n && J(n) || !1,
2226
2226
  maxWidth: x,
2227
2227
  children: /* @__PURE__ */ R("select", {
2228
2228
  className: g(Ja.select, T ? Ja.unSelected : "", l ? Ja.right : "", u ? Ja.small : "", _ ? Ja.isInTable : "", D),
@@ -2305,14 +2305,14 @@ var mr = /* @__PURE__ */ function(e) {
2305
2305
  }),
2306
2306
  e && /* @__PURE__ */ R("div", {
2307
2307
  className: g(eo.details),
2308
- children: /* @__PURE__ */ R(qi, {
2308
+ children: /* @__PURE__ */ R(Ki, {
2309
2309
  faint: !0,
2310
2310
  children: e
2311
2311
  })
2312
2312
  }),
2313
2313
  !!(s != null && s.length) && /* @__PURE__ */ R("div", {
2314
2314
  className: g(eo.actions),
2315
- children: /* @__PURE__ */ R(ki, {
2315
+ children: /* @__PURE__ */ R(Oi, {
2316
2316
  actions: s,
2317
2317
  closeLayer: c
2318
2318
  })
@@ -2325,8 +2325,8 @@ var mr = /* @__PURE__ */ function(e) {
2325
2325
  }), ro = ({ section: e, selected: t, focused: n, onSelectOption: r, closeLayer: i }) => {
2326
2326
  let a = s(H);
2327
2327
  switch (e.type) {
2328
- case ii.HEADING: return /* @__PURE__ */ R(to, { label: e.label });
2329
- case ii.OPTION:
2328
+ case ri.HEADING: return /* @__PURE__ */ R(to, { label: e.label });
2329
+ case ri.OPTION:
2330
2330
  default: return /* @__PURE__ */ R(no, {
2331
2331
  closeLayer: i,
2332
2332
  actions: e.actions,
@@ -2374,7 +2374,7 @@ var mr = /* @__PURE__ */ function(e) {
2374
2374
  children: /* @__PURE__ */ R(ro, {
2375
2375
  closeLayer: u,
2376
2376
  section: n[e],
2377
- selected: t && n[e].type !== ii.HEADING && Array.isArray(r) ? r == null ? void 0 : r.some((t) => {
2377
+ selected: t && n[e].type !== ri.HEADING && Array.isArray(r) ? r == null ? void 0 : r.some((t) => {
2378
2378
  var r;
2379
2379
  return t && (t == null ? void 0 : t.value) === (n == null || (r = n[e]) == null ? void 0 : r.value);
2380
2380
  }) : !Array.isArray(r) && (n == null || (s = n[e]) == null ? void 0 : s.value) === (r == null ? void 0 : r.value),
@@ -2492,7 +2492,7 @@ var mr = /* @__PURE__ */ function(e) {
2492
2492
  ...e,
2493
2493
  label: /* @__PURE__ */ z("div", {
2494
2494
  className: g(Y.detailedLabel),
2495
- children: [/* @__PURE__ */ R(qi, { children: e.label }), /* @__PURE__ */ R(qi, {
2495
+ children: [/* @__PURE__ */ R(Ki, { children: e.label }), /* @__PURE__ */ R(Ki, {
2496
2496
  muted: !0,
2497
2497
  children: e.details
2498
2498
  })]
@@ -2540,7 +2540,7 @@ var mr = /* @__PURE__ */ function(e) {
2540
2540
  error: !!o,
2541
2541
  warning: !!s,
2542
2542
  text: c || o || s,
2543
- enabled: c && q(c) || o && q(o) || s && q(s) || !1,
2543
+ enabled: c && J(c) || o && J(o) || s && J(s) || !1,
2544
2544
  maxWidth: w,
2545
2545
  children: F
2546
2546
  }) });
@@ -2552,7 +2552,7 @@ var mr = /* @__PURE__ */ function(e) {
2552
2552
  currentOption: !1,
2553
2553
  clearAll: !1
2554
2554
  }, ko = (e) => e === null ? 0 : e + 1, Ao = (e, t) => {
2555
- let n = ["none", ...e.map((e, t) => e.type === ii.HEADING ? null : t).filter((e) => e !== null)], r = ko(t);
2555
+ let n = ["none", ...e.map((e, t) => e.type === ri.HEADING ? null : t).filter((e) => e !== null)], r = ko(t);
2556
2556
  return {
2557
2557
  options: n,
2558
2558
  currentIndex: r,
@@ -2862,13 +2862,13 @@ var mr = /* @__PURE__ */ function(e) {
2862
2862
  if (typeof t == "object" && t && t.hasOwnProperty("label") && t.hasOwnProperty("value")) return t;
2863
2863
  {
2864
2864
  let n = typeof t == "object" && t && t.hasOwnProperty("value") ? t.value : t;
2865
- return (Array.isArray(e) ? e.filter((e) => e.type !== ii.HEADING).find((e) => e.value == n) : void 0) || (Vo(n) ? void 0 : {
2865
+ return (Array.isArray(e) ? e.filter((e) => e.type !== ri.HEADING).find((e) => e.value == n) : void 0) || (Vo(n) ? void 0 : {
2866
2866
  value: n,
2867
2867
  label: n
2868
2868
  });
2869
2869
  }
2870
2870
  }, Ko = (e, t) => Uo(t) ? t.map((t) => Go(e, t)).filter((e) => e !== void 0) : t === null ? void 0 : Go(e, t), qo = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" || typeof e == "number"), Jo = (e, t) => {
2871
- let n = t instanceof Array ? t.length ? t[0] : null : t, r = n == null ? null : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? n : n.value, i = e.filter((e) => e.type !== ii.HEADING).findIndex((e) => typeof e == "string" || typeof e == "number" ? e == r : e.value == r);
2871
+ let n = t instanceof Array ? t.length ? t[0] : null : t, r = n == null ? null : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? n : n.value, i = e.filter((e) => e.type !== ri.HEADING).findIndex((e) => typeof e == "string" || typeof e == "number" ? e == r : e.value == r);
2872
2872
  return i === -1 ? null : i;
2873
2873
  }, Yo = (e, t) => {
2874
2874
  let n = Uo(t) ? t : Vo(t) ? [] : [t];
@@ -2981,7 +2981,7 @@ var mr = /* @__PURE__ */ function(e) {
2981
2981
  value: a.value
2982
2982
  })
2983
2983
  }),
2984
- /* @__PURE__ */ R(G, {
2984
+ /* @__PURE__ */ R(K, {
2985
2985
  small: r,
2986
2986
  round: !0,
2987
2987
  basic: !0,
@@ -2989,7 +2989,7 @@ var mr = /* @__PURE__ */ function(e) {
2989
2989
  onClick: () => h("1"),
2990
2990
  disabled: l || n === 1
2991
2991
  }),
2992
- /* @__PURE__ */ R(G, {
2992
+ /* @__PURE__ */ R(K, {
2993
2993
  small: r,
2994
2994
  round: !0,
2995
2995
  basic: !0,
@@ -3010,7 +3010,7 @@ var mr = /* @__PURE__ */ function(e) {
3010
3010
  error: p
3011
3011
  }), /* @__PURE__ */ z(rs, { children: ["of ", u] })]
3012
3012
  }),
3013
- /* @__PURE__ */ R(G, {
3013
+ /* @__PURE__ */ R(K, {
3014
3014
  small: r,
3015
3015
  round: !0,
3016
3016
  basic: !0,
@@ -3018,7 +3018,7 @@ var mr = /* @__PURE__ */ function(e) {
3018
3018
  onClick: () => h(String(Number(n) + 1)),
3019
3019
  disabled: l || n === u
3020
3020
  }),
3021
- /* @__PURE__ */ R(G, {
3021
+ /* @__PURE__ */ R(K, {
3022
3022
  small: r,
3023
3023
  round: !0,
3024
3024
  basic: !0,
@@ -3046,7 +3046,7 @@ var mr = /* @__PURE__ */ function(e) {
3046
3046
  children: /* @__PURE__ */ R("div", { children: n })
3047
3047
  }) : null, i || o() ? /* @__PURE__ */ z("div", {
3048
3048
  className: qa.section,
3049
- children: [e && o() ? /* @__PURE__ */ R(is, { pagination: e }) : /* @__PURE__ */ R("div", {}), i && /* @__PURE__ */ R("div", { children: /* @__PURE__ */ R(ki, { actions: t }) })]
3049
+ children: [e && o() ? /* @__PURE__ */ R(is, { pagination: e }) : /* @__PURE__ */ R("div", {}), i && /* @__PURE__ */ R("div", { children: /* @__PURE__ */ R(Oi, { actions: t }) })]
3050
3050
  }) : null]
3051
3051
  }) : null;
3052
3052
  }, os = (e) => {
@@ -3077,8 +3077,8 @@ var mr = /* @__PURE__ */ function(e) {
3077
3077
  centerAligned: ""
3078
3078
  }, n = !1) => {
3079
3079
  if (!e) return null;
3080
- let { bodyAlignment: r, headerAlignment: i, isHeader: a } = e;
3081
- switch (a && i ? i : r) {
3080
+ let { bodyAlignment: r, headerAlignment: i, textAlign: a, isHeader: o } = e;
3081
+ switch (a || (o && i ? i : r)) {
3082
3082
  case gr.LEFT: return n ? gr.LEFT : t.leftAligned;
3083
3083
  case gr.RIGHT: return n ? gr.RIGHT : t.rightAligned;
3084
3084
  case gr.CENTER: return n ? gr.CENTER : t.centerAligned;
@@ -3296,7 +3296,7 @@ var mr = /* @__PURE__ */ function(e) {
3296
3296
  testId: n
3297
3297
  }) : null
3298
3298
  }), Cs = ({ cell: e, testId: t }) => {
3299
- let n = s(H), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, c = (e) => q(e);
3299
+ let n = s(H), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, c = (e) => J(e);
3300
3300
  return /* @__PURE__ */ R("div", {
3301
3301
  className: X.inputWrapper,
3302
3302
  children: /* @__PURE__ */ R(W, {
@@ -3361,7 +3361,7 @@ var mr = /* @__PURE__ */ function(e) {
3361
3361
  } });
3362
3362
  }, S = () => /* @__PURE__ */ R("div", {
3363
3363
  className: Ts.button,
3364
- children: /* @__PURE__ */ R(G, {
3364
+ children: /* @__PURE__ */ R(K, {
3365
3365
  basic: !0,
3366
3366
  small: !0,
3367
3367
  round: !0,
@@ -3371,7 +3371,7 @@ var mr = /* @__PURE__ */ function(e) {
3371
3371
  })
3372
3372
  }), C = () => /* @__PURE__ */ R("div", {
3373
3373
  className: Ts.button,
3374
- children: /* @__PURE__ */ R(G, {
3374
+ children: /* @__PURE__ */ R(K, {
3375
3375
  basic: !0,
3376
3376
  small: !0,
3377
3377
  round: !0,
@@ -3442,13 +3442,13 @@ var mr = /* @__PURE__ */ function(e) {
3442
3442
  className: X.iconCellWrapper,
3443
3443
  children: /* @__PURE__ */ R(W, {
3444
3444
  text: t,
3445
- enabled: !!t && q(t),
3445
+ enabled: !!t && J(t),
3446
3446
  display: "flex",
3447
3447
  placement: "top-center",
3448
3448
  children: /* @__PURE__ */ R(U, { icon: n })
3449
3449
  })
3450
3450
  });
3451
- }, As = ({ cell: e }) => /* @__PURE__ */ R(ki, { actions: e.actions }), js = ({ cell: e }) => {
3451
+ }, As = ({ cell: e }) => /* @__PURE__ */ R(Oi, { actions: e.actions }), js = ({ cell: e }) => {
3452
3452
  let { helpIcon: t } = e;
3453
3453
  return t ? /* @__PURE__ */ R("div", {
3454
3454
  className: X.icon,
@@ -3471,13 +3471,13 @@ var mr = /* @__PURE__ */ function(e) {
3471
3471
  let { hasSort: t, sort: n, sortPriority: r } = e;
3472
3472
  return t ? /* @__PURE__ */ z("span", {
3473
3473
  className: X.sortingCellIcon,
3474
- children: [n === "down" ? /* @__PURE__ */ R(qi, {
3474
+ children: [n === "down" ? /* @__PURE__ */ R(Ki, {
3475
3475
  link: !0,
3476
3476
  children: /* @__PURE__ */ R(U, { icon: V.SORT_ASCENDING })
3477
- }) : n === "up" ? /* @__PURE__ */ R(qi, {
3477
+ }) : n === "up" ? /* @__PURE__ */ R(Ki, {
3478
3478
  link: !0,
3479
3479
  children: /* @__PURE__ */ R(U, { icon: V.SORT_DESCENDING })
3480
- }) : /* @__PURE__ */ R(qi, {
3480
+ }) : /* @__PURE__ */ R(Ki, {
3481
3481
  faint: !0,
3482
3482
  children: /* @__PURE__ */ R(U, { icon: V.SORT_DESCENDING })
3483
3483
  }), r && n ? /* @__PURE__ */ R("sup", { children: r }) : null]
@@ -3501,7 +3501,7 @@ var mr = /* @__PURE__ */ function(e) {
3501
3501
  error: !!r,
3502
3502
  warning: !!i,
3503
3503
  text: a || r || i,
3504
- enabled: a && q(a) || r && q(r) || i && q(i) || !1,
3504
+ enabled: a && J(a) || r && J(r) || i && J(i) || !1,
3505
3505
  maxWidth: o,
3506
3506
  display: "block",
3507
3507
  children: u
@@ -3509,7 +3509,7 @@ var mr = /* @__PURE__ */ function(e) {
3509
3509
  });
3510
3510
  }, Fs = ({ cell: e, testId: t }) => {
3511
3511
  let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
3512
- return /* @__PURE__ */ R(zi, {
3512
+ return /* @__PURE__ */ R(Ri, {
3513
3513
  content: n,
3514
3514
  fullWidth: r,
3515
3515
  closeOnOutsideClick: i,
@@ -3606,25 +3606,26 @@ var mr = /* @__PURE__ */ function(e) {
3606
3606
  }({}), Vs = ({ cell: e, isHeader: t, columnHeaderAlignment: n, columnAlignment: r = gr.LEFT, width: i, testId: a }) => {
3607
3607
  var o;
3608
3608
  if (!e) return null;
3609
- let { style: s, colSpan: c, rowSpan: l, width: u } = e, d = p(null), f = {
3609
+ let { style: s, colSpan: c, rowSpan: l, width: u, textAlign: d } = e, f = p(null), m = {
3610
3610
  bodyAlignment: r,
3611
3611
  headerAlignment: n,
3612
+ textAlign: d,
3612
3613
  isHeader: t
3613
- }, m = fs(f, X), h = fs(f, X, !0), _ = e.type === Bs.INPUT || e.type === Bs.NUMBER_INPUT || e.type === Bs.SELECT || e.type === Bs.POPOVER ? X.inputCell : e.type === Bs.SLIDER ? X.sliderCell : e.type === Bs.CHECKBOX || e.type === Bs.RADIO ? X.checkBoxCell : e.type === Bs.ACTIONS ? X.actionsCell : X.staticCell, v = g(X.cell, _, e.hasSort ? X.sortingCell : null, m, e.breakWord ? X.breakWord : ""), y = (o = u == null ? i : u) == null ? void 0 : o, b = e.type === Bs.STATIC || !e.type, x = {
3614
- width: y,
3615
- minWidth: y,
3616
- textTransform: t && b ? vr.CAPITALIZE : void 0,
3614
+ }, h = fs(m, X), _ = fs(m, X, !0), v = e.type === Bs.INPUT || e.type === Bs.NUMBER_INPUT || e.type === Bs.SELECT || e.type === Bs.POPOVER ? X.inputCell : e.type === Bs.SLIDER ? X.sliderCell : e.type === Bs.CHECKBOX || e.type === Bs.RADIO ? X.checkBoxCell : e.type === Bs.ACTIONS ? X.actionsCell : X.staticCell, y = g(X.cell, v, e.hasSort ? X.sortingCell : null, h, e.breakWord ? X.breakWord : ""), b = (o = u == null ? i : u) == null ? void 0 : o, x = e.type === Bs.STATIC || !e.type, S = {
3615
+ width: b,
3616
+ minWidth: b,
3617
+ textTransform: t && x ? vr.CAPITALIZE : void 0,
3617
3618
  ...s
3618
3619
  };
3619
3620
  return /* @__PURE__ */ R(t ? "th" : "td", {
3620
- ref: d,
3621
- className: v,
3622
- style: x,
3621
+ ref: f,
3622
+ className: y,
3623
+ style: S,
3623
3624
  colSpan: c,
3624
3625
  rowSpan: l,
3625
3626
  children: /* @__PURE__ */ R(zs, {
3626
3627
  cell: e,
3627
- columnAlignment: h == null ? gr.RIGHT : h,
3628
+ columnAlignment: _ == null ? gr.RIGHT : _,
3628
3629
  isHeader: t,
3629
3630
  testId: a
3630
3631
  })
@@ -4177,7 +4178,7 @@ var mr = /* @__PURE__ */ function(e) {
4177
4178
  }),
4178
4179
  n !== "" && /* @__PURE__ */ R("div", {
4179
4180
  className: rc.text,
4180
- children: /* @__PURE__ */ R(qi, {
4181
+ children: /* @__PURE__ */ R(Ki, {
4181
4182
  faint: !0,
4182
4183
  children: n
4183
4184
  })
@@ -4563,7 +4564,7 @@ var mr = /* @__PURE__ */ function(e) {
4563
4564
  }),
4564
4565
  /* @__PURE__ */ R(W, {
4565
4566
  text: u("deletePastedContent"),
4566
- children: /* @__PURE__ */ R(G, {
4567
+ children: /* @__PURE__ */ R(K, {
4567
4568
  name: "clearReview",
4568
4569
  icon: "delete",
4569
4570
  small: !0,
@@ -4572,7 +4573,7 @@ var mr = /* @__PURE__ */ function(e) {
4572
4573
  }),
4573
4574
  /* @__PURE__ */ R(W, {
4574
4575
  text: u("openHelp"),
4575
- children: /* @__PURE__ */ R(G, {
4576
+ children: /* @__PURE__ */ R(K, {
4576
4577
  name: "help",
4577
4578
  icon: "help",
4578
4579
  small: !0,
@@ -4604,7 +4605,7 @@ var mr = /* @__PURE__ */ function(e) {
4604
4605
  ")"
4605
4606
  ]
4606
4607
  }),
4607
- /* @__PURE__ */ R(G, {
4608
+ /* @__PURE__ */ R(K, {
4608
4609
  name: "paste",
4609
4610
  icon: "paste",
4610
4611
  label: u("pasteFromClipboard"),
@@ -4627,7 +4628,7 @@ var mr = /* @__PURE__ */ function(e) {
4627
4628
  errors: ee,
4628
4629
  t: u
4629
4630
  }) : null,
4630
- re && /* @__PURE__ */ R(qi, {
4631
+ re && /* @__PURE__ */ R(Ki, {
4631
4632
  muted: !0,
4632
4633
  children: u("commasAsDecimals")
4633
4634
  }),
@@ -4658,7 +4659,7 @@ var mr = /* @__PURE__ */ function(e) {
4658
4659
  return /* @__PURE__ */ R(Ca, {
4659
4660
  visible: g,
4660
4661
  centered: !0,
4661
- children: /* @__PURE__ */ R(ea, { dialog: {
4662
+ children: /* @__PURE__ */ R($i, { dialog: {
4662
4663
  width: "60vw",
4663
4664
  height: "650px",
4664
4665
  scroll: !0,
@@ -4668,7 +4669,7 @@ var mr = /* @__PURE__ */ function(e) {
4668
4669
  children: ae
4669
4670
  }),
4670
4671
  footer: /* @__PURE__ */ z(L, { children: [
4671
- /* @__PURE__ */ R(G, {
4672
+ /* @__PURE__ */ R(K, {
4672
4673
  label: u("okay"),
4673
4674
  colored: !0,
4674
4675
  onClick: () => f(() => j()),
@@ -4676,11 +4677,11 @@ var mr = /* @__PURE__ */ function(e) {
4676
4677
  loading: d,
4677
4678
  testId: `${h}-paste-with-review-modal-button-okay`
4678
4679
  }),
4679
- /* @__PURE__ */ R(G, {
4680
+ /* @__PURE__ */ R(K, {
4680
4681
  label: u("cancel"),
4681
4682
  onClick: () => i()
4682
4683
  }),
4683
- P && /* @__PURE__ */ R(G, {
4684
+ P && /* @__PURE__ */ R(K, {
4684
4685
  label: b,
4685
4686
  onClick: x
4686
4687
  })
@@ -4696,10 +4697,10 @@ var mr = /* @__PURE__ */ function(e) {
4696
4697
  onClose: () => r({ name: e }),
4697
4698
  ...o
4698
4699
  }) }, e);
4699
- }) }) : null, Hc = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ R(Di, {
4700
+ }) }) : null, Hc = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ R(Ei, {
4700
4701
  loading: !0,
4701
4702
  menu: {
4702
- component: /* @__PURE__ */ R(G, {
4703
+ component: /* @__PURE__ */ R(K, {
4703
4704
  basic: !0,
4704
4705
  icon: t,
4705
4706
  colored: "muted",
@@ -5156,7 +5157,7 @@ var mr = /* @__PURE__ */ function(e) {
5156
5157
  }] : []
5157
5158
  ];
5158
5159
  return /* @__PURE__ */ z("span", { children: [
5159
- ee && /* @__PURE__ */ R(Zr, {
5160
+ ee && /* @__PURE__ */ R(Xr, {
5160
5161
  small: !0,
5161
5162
  dark: !0
5162
5163
  }),
@@ -5225,7 +5226,7 @@ var mr = /* @__PURE__ */ function(e) {
5225
5226
  }
5226
5227
  }), l.current && (l.current.value = "");
5227
5228
  };
5228
- return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(G, {
5229
+ return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(K, {
5229
5230
  ...o,
5230
5231
  onClick: u
5231
5232
  }), /* @__PURE__ */ R("input", {
@@ -5410,7 +5411,7 @@ var mr = /* @__PURE__ */ function(e) {
5410
5411
  }),
5411
5412
  e && /* @__PURE__ */ R("div", {
5412
5413
  className: Z.headerTitle,
5413
- children: /* @__PURE__ */ R(Zi, {
5414
+ children: /* @__PURE__ */ R(Xi, {
5414
5415
  top: !0,
5415
5416
  marginBottom: 0,
5416
5417
  children: e
@@ -5420,13 +5421,13 @@ var mr = /* @__PURE__ */ function(e) {
5420
5421
  className: Z.right,
5421
5422
  children: /* @__PURE__ */ R("div", {
5422
5423
  className: Z.actions,
5423
- children: /* @__PURE__ */ R(ki, { actions: t })
5424
+ children: /* @__PURE__ */ R(Oi, { actions: t })
5424
5425
  })
5425
5426
  })
5426
5427
  ]
5427
5428
  })), gl = ({ label: e }) => e ? /* @__PURE__ */ R("span", {
5428
5429
  className: Z.label,
5429
- children: /* @__PURE__ */ R(_i, {
5430
+ children: /* @__PURE__ */ R(gi, {
5430
5431
  color: e.color,
5431
5432
  title: e.value,
5432
5433
  small: e.small
@@ -5457,7 +5458,7 @@ var mr = /* @__PURE__ */ function(e) {
5457
5458
  icon: n,
5458
5459
  testId: o && `${o}-name`
5459
5460
  });
5460
- return a && (s = /* @__PURE__ */ R(_i, {
5461
+ return a && (s = /* @__PURE__ */ R(gi, {
5461
5462
  small: !0,
5462
5463
  margin: "-2px",
5463
5464
  title: "!",
@@ -5478,7 +5479,7 @@ var mr = /* @__PURE__ */ function(e) {
5478
5479
  })
5479
5480
  ]
5480
5481
  });
5481
- }, yl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ R(_i, {
5482
+ }, yl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ R(gi, {
5482
5483
  color: "rgba(0,0,0,0.25)",
5483
5484
  title: e.metaCount
5484
5485
  }), bl = ({ item: e, expanding: t }) => /* @__PURE__ */ R(Pr, {
@@ -5518,7 +5519,7 @@ var mr = /* @__PURE__ */ function(e) {
5518
5519
  className: Z.right,
5519
5520
  children: [/* @__PURE__ */ R(yl, { item: e }), !(o || i) && a && /* @__PURE__ */ R("div", {
5520
5521
  className: Z.actions,
5521
- children: /* @__PURE__ */ R(ki, { actions: (r = e.actions) == null ? [] : r })
5522
+ children: /* @__PURE__ */ R(Oi, { actions: (r = e.actions) == null ? [] : r })
5522
5523
  })]
5523
5524
  })
5524
5525
  ]
@@ -5566,7 +5567,7 @@ var mr = /* @__PURE__ */ function(e) {
5566
5567
  className: Z.right,
5567
5568
  children: [/* @__PURE__ */ R(yl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ R("div", {
5568
5569
  className: Z.actions,
5569
- children: /* @__PURE__ */ R(ki, { actions: t.actions })
5570
+ children: /* @__PURE__ */ R(Oi, { actions: t.actions })
5570
5571
  })]
5571
5572
  })
5572
5573
  ]
@@ -5812,10 +5813,10 @@ var mr = /* @__PURE__ */ function(e) {
5812
5813
  children: "Invert"
5813
5814
  })
5814
5815
  ]
5815
- }), /* @__PURE__ */ R(Yi, { margin: 0 })] }), e.map((n, r) => {
5816
+ }), /* @__PURE__ */ R(Ji, { margin: 0 })] }), e.map((n, r) => {
5816
5817
  switch (n.type) {
5817
5818
  case Ml.HEADING: return /* @__PURE__ */ R(jl, { label: n.label }, r);
5818
- case Ml.DIVIDER: return /* @__PURE__ */ R(Yi, { margin: 0 }, r);
5819
+ case Ml.DIVIDER: return /* @__PURE__ */ R(Ji, { margin: 0 }, r);
5819
5820
  default: return /* @__PURE__ */ R(Al, {
5820
5821
  option: n,
5821
5822
  onChange: (r) => {
@@ -5828,7 +5829,7 @@ var mr = /* @__PURE__ */ function(e) {
5828
5829
  }, r);
5829
5830
  }
5830
5831
  })]
5831
- }), Pl = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ R(Di, {
5832
+ }), Pl = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ R(Ei, {
5832
5833
  testId: c,
5833
5834
  disabled: t,
5834
5835
  menu: {
@@ -5935,7 +5936,7 @@ var mr = /* @__PURE__ */ function(e) {
5935
5936
  className: Bl.richTextToolbarContainer,
5936
5937
  children: [/* @__PURE__ */ R("div", {
5937
5938
  className: Bl.richTextToolbar,
5938
- children: c.map((e, n) => /* @__PURE__ */ R(G, {
5939
+ children: c.map((e, n) => /* @__PURE__ */ R(K, {
5939
5940
  small: !0,
5940
5941
  round: !0,
5941
5942
  basic: !0,
@@ -6038,7 +6039,7 @@ var mr = /* @__PURE__ */ function(e) {
6038
6039
  display: "block",
6039
6040
  children: /* @__PURE__ */ R("span", {
6040
6041
  className: ql.icon,
6041
- children: /* @__PURE__ */ R(_i, {
6042
+ children: /* @__PURE__ */ R(gi, {
6042
6043
  small: !0,
6043
6044
  title: r ? "!" : void 0,
6044
6045
  margin: 4,
@@ -6086,7 +6087,7 @@ var mr = /* @__PURE__ */ function(e) {
6086
6087
  closedWidth: "var(--size-sidebar)",
6087
6088
  buttonPosition: _r.BOTTOM,
6088
6089
  buttonAnimate: !0,
6089
- button: s && /* @__PURE__ */ R(G, {
6090
+ button: s && /* @__PURE__ */ R(K, {
6090
6091
  onClick: (e) => {
6091
6092
  e.shiftKey && n && n(e), a(!i);
6092
6093
  },
@@ -6139,13 +6140,13 @@ var mr = /* @__PURE__ */ function(e) {
6139
6140
  className: g(eu.item, i ? eu.active : "", r ? eu.disabled : "", n && !i ? eu.hidden : "", o ? eu.right : eu.left),
6140
6141
  onClick: a,
6141
6142
  "data-testid": l,
6142
- children: s ? /* @__PURE__ */ R(_i, {
6143
+ children: s ? /* @__PURE__ */ R(gi, {
6143
6144
  small: !0,
6144
6145
  margin: "-4px",
6145
6146
  color: u,
6146
6147
  title: "!",
6147
6148
  children: e
6148
- }) : c ? /* @__PURE__ */ R(_i, {
6149
+ }) : c ? /* @__PURE__ */ R(gi, {
6149
6150
  small: !0,
6150
6151
  margin: "-4px",
6151
6152
  title: c == null ? void 0 : c.toString(),
@@ -6207,7 +6208,7 @@ var mr = /* @__PURE__ */ function(e) {
6207
6208
  target: n,
6208
6209
  onClick: i,
6209
6210
  "data-testid": r,
6210
- children: /* @__PURE__ */ R(qi, {
6211
+ children: /* @__PURE__ */ R(Ki, {
6211
6212
  link: !0,
6212
6213
  children: e
6213
6214
  })
@@ -6245,7 +6246,7 @@ var mr = /* @__PURE__ */ function(e) {
6245
6246
  error: !!f,
6246
6247
  warning: !!p,
6247
6248
  text: m || f || p,
6248
- enabled: m && q(m) || f && q(f) || p && q(p) || !1,
6249
+ enabled: m && J(m) || f && J(f) || p && J(p) || !1,
6249
6250
  maxWidth: h,
6250
6251
  children: S
6251
6252
  });
@@ -6346,7 +6347,7 @@ var mr = /* @__PURE__ */ function(e) {
6346
6347
  });
6347
6348
  case uu.BUTTON: return /* @__PURE__ */ R("div", {
6348
6349
  className: g(Q.item, Q.button),
6349
- children: /* @__PURE__ */ R(G, {
6350
+ children: /* @__PURE__ */ R(K, {
6350
6351
  label: e.label,
6351
6352
  colored: e.colored,
6352
6353
  pill: !0,
@@ -6358,7 +6359,7 @@ var mr = /* @__PURE__ */ function(e) {
6358
6359
  });
6359
6360
  case uu.MENU: return /* @__PURE__ */ R("div", {
6360
6361
  className: g(Q.item, Q.menu),
6361
- children: /* @__PURE__ */ R(Di, {
6362
+ children: /* @__PURE__ */ R(Ei, {
6362
6363
  maxHeight: "100%",
6363
6364
  menu: {
6364
6365
  trigger: mr.COMPONENT,
@@ -6411,27 +6412,27 @@ var mr = /* @__PURE__ */ function(e) {
6411
6412
  className: mu.popConfirm,
6412
6413
  children: [e && /* @__PURE__ */ R("div", {
6413
6414
  className: mu.content,
6414
- children: /* @__PURE__ */ R(qi, {
6415
+ children: /* @__PURE__ */ R(Ki, {
6415
6416
  small: !0,
6416
6417
  children: e
6417
6418
  })
6418
6419
  }), /* @__PURE__ */ z("div", {
6419
6420
  className: mu.buttons,
6420
- children: [/* @__PURE__ */ R(G, {
6421
+ children: [/* @__PURE__ */ R(K, {
6421
6422
  small: !0,
6422
6423
  colored: !0,
6423
6424
  label: t,
6424
6425
  onClick: () => n(o),
6425
6426
  disabled: r,
6426
6427
  testId: `${s}-ok-button`
6427
- }), /* @__PURE__ */ R(G, {
6428
+ }), /* @__PURE__ */ R(K, {
6428
6429
  small: !0,
6429
6430
  label: i,
6430
6431
  onClick: () => a(o),
6431
6432
  testId: `${s}-cancel-button`
6432
6433
  })]
6433
6434
  })]
6434
- }), 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__ */ R(zi, {
6435
+ }), 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__ */ R(Ri, {
6435
6436
  content: /* @__PURE__ */ R(hu, {
6436
6437
  title: i,
6437
6438
  okText: s,
@@ -6482,7 +6483,7 @@ var mr = /* @__PURE__ */ function(e) {
6482
6483
  children: [
6483
6484
  a && /* @__PURE__ */ R("div", {
6484
6485
  className: _u.toggle,
6485
- children: /* @__PURE__ */ R(G, {
6486
+ children: /* @__PURE__ */ R(K, {
6486
6487
  basic: !0,
6487
6488
  colored: r ? !0 : hr.MUTED,
6488
6489
  small: !0,
@@ -6500,7 +6501,7 @@ var mr = /* @__PURE__ */ function(e) {
6500
6501
  className: Z.right,
6501
6502
  children: [/* @__PURE__ */ R(yl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ R("div", {
6502
6503
  className: Z.actions,
6503
- children: /* @__PURE__ */ R(ki, { actions: h })
6504
+ children: /* @__PURE__ */ R(Oi, { actions: h })
6504
6505
  })]
6505
6506
  })
6506
6507
  ]
@@ -6668,7 +6669,7 @@ var mr = /* @__PURE__ */ function(e) {
6668
6669
  className: xu.folder,
6669
6670
  onClick: () => m(v),
6670
6671
  onMouseDown: (e) => e.stopPropagation(),
6671
- children: /* @__PURE__ */ R(G, {
6672
+ children: /* @__PURE__ */ R(K, {
6672
6673
  basic: !0,
6673
6674
  colored: c ? !0 : hr.MUTED,
6674
6675
  disabled: !a,
@@ -6969,7 +6970,7 @@ var mr = /* @__PURE__ */ function(e) {
6969
6970
  o = In(Ln(e, ae));
6970
6971
  }
6971
6972
  return {
6972
- type: ii.OPTION,
6973
+ type: ri.OPTION,
6973
6974
  inline: !0,
6974
6975
  onClick: () => {
6975
6976
  Fn(i).valid && !n && (pe(Ou.PREDEFINED), h({ target: {
@@ -6979,7 +6980,7 @@ var mr = /* @__PURE__ */ function(e) {
6979
6980
  predefinedOption: t
6980
6981
  } }));
6981
6982
  },
6982
- label: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(qi, { children: t.label }), /* @__PURE__ */ R(_a, {
6983
+ label: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Ki, { children: t.label }), /* @__PURE__ */ R(_a, {
6983
6984
  width: "20px",
6984
6985
  height: "0"
6985
6986
  })] }),
@@ -6988,7 +6989,7 @@ var mr = /* @__PURE__ */ function(e) {
6988
6989
  };
6989
6990
  };
6990
6991
  if (Ce = [{
6991
- type: ii.OPTION,
6992
+ type: ri.OPTION,
6992
6993
  inline: !0,
6993
6994
  onClick: () => {
6994
6995
  fe !== Ou.CUSTOM && !n && h({ target: {
@@ -7021,7 +7022,7 @@ var mr = /* @__PURE__ */ function(e) {
7021
7022
  small: o,
7022
7023
  width: s,
7023
7024
  children: [
7024
- C && /* @__PURE__ */ R(Di, {
7025
+ C && /* @__PURE__ */ R(Ei, {
7025
7026
  maxHeight: 380,
7026
7027
  groupOrder: "first",
7027
7028
  testId: x && `${x}-predefined-menu`,
@@ -7029,7 +7030,7 @@ var mr = /* @__PURE__ */ function(e) {
7029
7030
  menu: {
7030
7031
  colored: !0,
7031
7032
  trigger: "Component",
7032
- component: /* @__PURE__ */ R(G, {
7033
+ component: /* @__PURE__ */ R(K, {
7033
7034
  groupOrder: "first",
7034
7035
  active: fe === Ou.PREDEFINED,
7035
7036
  icon: fe === Ou.PREDEFINED ? "link" : "unlink",
@@ -7069,7 +7070,7 @@ var mr = /* @__PURE__ */ function(e) {
7069
7070
  groupOrder: De,
7070
7071
  small: o,
7071
7072
  children: be
7072
- }) : /* @__PURE__ */ R(Di, {
7073
+ }) : /* @__PURE__ */ R(Ei, {
7073
7074
  groupOrder: De,
7074
7075
  maxHeight: 380,
7075
7076
  disabled: r,
@@ -7308,7 +7309,7 @@ var mr = /* @__PURE__ */ function(e) {
7308
7309
  })]
7309
7310
  })
7310
7311
  })]
7311
- }), t && /* @__PURE__ */ R(qi, {
7312
+ }), t && /* @__PURE__ */ R(Ki, {
7312
7313
  muted: !0,
7313
7314
  children: f(t)
7314
7315
  })]
@@ -7333,18 +7334,18 @@ var mr = /* @__PURE__ */ function(e) {
7333
7334
  let s = ({ target: { value: e } }) => {
7334
7335
  a(e);
7335
7336
  }, { added: l, removed: u } = nd(e, t), d = l + u > 3500;
7336
- return /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(Li, {
7337
+ return /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(Ii, {
7337
7338
  bordered: !0,
7338
7339
  heading: /* @__PURE__ */ z(sl, {
7339
7340
  gap: !0,
7340
- children: [/* @__PURE__ */ R(Zi, { children: /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z(qi, {
7341
+ children: [/* @__PURE__ */ R(Xi, { children: /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z(Ki, {
7341
7342
  success: !0,
7342
7343
  children: [
7343
7344
  "+",
7344
7345
  l,
7345
7346
  " "
7346
7347
  ]
7347
- }), /* @__PURE__ */ z(qi, {
7348
+ }), /* @__PURE__ */ z(Ki, {
7348
7349
  error: !0,
7349
7350
  children: ["-", u]
7350
7351
  })] }) }), !d && /* @__PURE__ */ R(zl, {
@@ -7358,7 +7359,7 @@ var mr = /* @__PURE__ */ function(e) {
7358
7359
  padding: !1,
7359
7360
  children: d ? /* @__PURE__ */ R("div", {
7360
7361
  style: { padding: "5px" },
7361
- children: /* @__PURE__ */ R(qi, {
7362
+ children: /* @__PURE__ */ R(Ki, {
7362
7363
  muted: !0,
7363
7364
  children: r == null ? void 0 : r.changesTooLarge
7364
7365
  })
@@ -8753,43 +8754,30 @@ var Zd = ((e = {}) => Xd({
8753
8754
  after: ""
8754
8755
  };
8755
8756
  }
8756
- }, af = (e) => Array.isArray(e), of = (e, t) => t ? af(t) ? t.length === 0 ? e : t.reduce((e, t) => Zd.unpatch(zt(e), zt(t)), zt(e)) : Zd.unpatch(zt(e), zt(t)) : e, sf = (e) => e.createdAt || e.date, cf = (e, t, n) => {
8757
- let r = sf(e);
8758
- if (!r) return {
8759
- oldJson: "",
8760
- newJson: "",
8761
- error: `Cannot create comparison view: missing date for audit log ${e.id}`
8762
- };
8763
- let i = t.filter((e) => {
8764
- let t = sf(e);
8765
- return !!(e.diffs && t && t >= r);
8766
- }), a = Array(i.length + 1);
8767
- a[0] = zt(n);
8768
- let o = "", s = "";
8757
+ }, af = (e) => Array.isArray(e), of = (e, t) => t ? af(t) ? t.length === 0 ? e : t.reduce((e, t) => Zd.unpatch(zt(e), zt(t)), zt(e)) : Zd.unpatch(zt(e), zt(t)) : e, sf = (e, t, n) => {
8758
+ let r = t.filter((t) => !!t.diffs && t.createdAt >= e.createdAt), i = Array(r.length + 1);
8759
+ i[0] = zt(n);
8760
+ let a = "", o = "";
8769
8761
  try {
8770
- for (let e = 0; e < i.length; e++) {
8771
- var c, l;
8772
- let t = (c = (l = i[e]) == null ? void 0 : l.diffs) == null ? null : c;
8762
+ for (let e = 0; e < r.length; e++) {
8763
+ var s, c;
8764
+ let t = (s = (c = r[e]) == null ? void 0 : c.diffs) == null ? null : s;
8773
8765
  if (!t) {
8774
- a[e + 1] = a[e];
8766
+ i[e + 1] = i[e];
8775
8767
  continue;
8776
8768
  }
8777
- a[e + 1] = of(a[e], t);
8769
+ i[e + 1] = of(i[e], t);
8778
8770
  }
8779
- let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
8780
- o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
8771
+ let e = r.length > 0 ? i[r.length - 1] : n, t = r.length > 0 ? i[r.length] : n;
8772
+ a = JSON.stringify(t == null ? "" : t, null, 2), o = JSON.stringify(e == null ? "" : e, null, 2);
8781
8773
  } catch (e) {
8782
- return console.error("err", e), {
8783
- oldJson: "",
8784
- newJson: "",
8785
- error: "Cannot create comparison view for this audit log."
8786
- };
8774
+ console.error("err", e);
8787
8775
  }
8788
8776
  return {
8789
- oldJson: o,
8790
- newJson: s
8777
+ oldJson: a,
8778
+ newJson: o
8791
8779
  };
8792
- }, lf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), uf = (e) => {
8780
+ }, cf = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), lf = (e) => {
8793
8781
  if (e == null || e === "") return "empty";
8794
8782
  if (typeof e == "boolean") return e ? "true" : "false";
8795
8783
  if (typeof e == "string") return e;
@@ -8800,34 +8788,32 @@ var Zd = ((e = {}) => Xd({
8800
8788
  } catch {
8801
8789
  return String(e);
8802
8790
  }
8803
- }, df = (e, t = e.length - 1) => {
8791
+ }, uf = (e, t = e.length - 1) => {
8804
8792
  if (t >= e.length) return "Value";
8805
8793
  let n = e[t];
8806
- return !n || xn(n) ? df(e, t - 1) : lf(n);
8807
- }, ff = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
8808
- let o = uf(r), s = uf(i);
8809
- console.log(s);
8810
- let c = a ? ` in ${a}` : "";
8794
+ return !n || xn(n) ? uf(e, t - 1) : cf(n);
8795
+ }, df = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
8796
+ let o = lf(r), s = lf(i), c = a ? ` in ${a}` : "";
8811
8797
  switch (t) {
8812
8798
  case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
8813
8799
  case "created": return `${e} created ${s}${c}.`;
8814
8800
  case "deleted": return `${e} deleted ${o}${c}.`;
8815
8801
  default: return `${e} changed ${n}${c}.`;
8816
8802
  }
8817
- }, pf = ({ sectionNames: e, userName: t, diffs: n }) => /* @__PURE__ */ R(qs, { table: {
8803
+ }, ff = ({ sectionNames: e, userName: t, diffs: n }) => /* @__PURE__ */ R(qs, { table: {
8818
8804
  headers: [{ cells: [{ value: "Changes" }] }],
8819
8805
  rows: n.map((n) => {
8820
8806
  let { deltaFormat: r, path: i } = n, a = tf(e, i), { type: o, before: s, after: c } = rf(r);
8821
- return { cells: [{ value: ff({
8807
+ return { cells: [{ value: df({
8822
8808
  userName: t,
8823
8809
  type: o,
8824
- property: df(i),
8810
+ property: uf(i),
8825
8811
  before: s,
8826
8812
  after: c,
8827
8813
  sectionName: a
8828
8814
  }) }] };
8829
8815
  })
8830
- } }), mf = Object.freeze({
8816
+ } }), pf = Object.freeze({
8831
8817
  summary: {
8832
8818
  label: "Summary",
8833
8819
  value: "summary"
@@ -8836,7 +8822,7 @@ var Zd = ((e = {}) => Xd({
8836
8822
  label: "Compare",
8837
8823
  value: "compare"
8838
8824
  }
8839
- }), hf = (e) => {
8825
+ }), mf = (e) => {
8840
8826
  let t = ["user", "unittemplate"], n = [], r = [], i = (e) => {
8841
8827
  e && Object.keys(e).forEach((a) => {
8842
8828
  t.includes(a) || (r.push(a), Wt(e[a]) ? n.push({
@@ -8846,36 +8832,33 @@ var Zd = ((e = {}) => Xd({
8846
8832
  });
8847
8833
  };
8848
8834
  return e ? (i(e), n) : [];
8849
- }, gf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, sectionNames: i, onClose: a }) => {
8850
- let o = [mf.summary, mf.compare].map(({ label: e, value: t }) => ({
8835
+ }, hf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, sectionNames: i, onClose: a }) => {
8836
+ let { diffs: o = void 0 } = e || {};
8837
+ if (!o) return null;
8838
+ let s = [pf.summary, pf.compare].map(({ label: e, value: t }) => ({
8851
8839
  label: e,
8852
8840
  value: t
8853
- })), [s, c] = m(o[0]), { diffs: l = void 0 } = e || {};
8854
- if (!l) return null;
8855
- let { oldJson: u, newJson: d, error: f } = cf(e, t, n);
8841
+ })), [c, l] = m(s[0]), { oldJson: u, newJson: d } = sf(e, t, n);
8856
8842
  return /* @__PURE__ */ R(Ca, {
8857
8843
  visible: r,
8858
8844
  centered: !0,
8859
- children: /* @__PURE__ */ R(ea, { dialog: {
8845
+ children: /* @__PURE__ */ R($i, { dialog: {
8860
8846
  scroll: !0,
8861
8847
  heading: "Comparison view",
8862
8848
  content: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(ru, {
8863
8849
  name: "ViewTab",
8864
- onChange: (e) => c(o.find((t) => t.value === e.target.value)),
8865
- options: o,
8866
- value: s
8867
- }), s.value === "summary" ? /* @__PURE__ */ R(pf, {
8850
+ onChange: (e) => l(s.find((t) => t.value === e.target.value)),
8851
+ options: s,
8852
+ value: c
8853
+ }), c.value === "summary" ? /* @__PURE__ */ R(ff, {
8868
8854
  userName: e.userName,
8869
8855
  sectionNames: i,
8870
- diffs: hf(l)
8871
- }) : f ? /* @__PURE__ */ R("div", {
8872
- style: { padding: 16 },
8873
- children: f
8856
+ diffs: mf(o)
8874
8857
  }) : /* @__PURE__ */ R(ad, {
8875
8858
  oldJson: u,
8876
8859
  newJson: d
8877
8860
  })] }),
8878
- footer: /* @__PURE__ */ R(G, {
8861
+ footer: /* @__PURE__ */ R(K, {
8879
8862
  label: "Cancel",
8880
8863
  onClick: a
8881
8864
  }),
@@ -8884,83 +8867,75 @@ var Zd = ((e = {}) => Xd({
8884
8867
  height: "90vh"
8885
8868
  } })
8886
8869
  });
8887
- }, _f = [
8888
- {
8889
- label: "10 / page",
8890
- value: 10
8891
- },
8892
- {
8893
- label: "20 / page",
8894
- value: 20
8895
- },
8896
- {
8897
- label: "50 / page",
8898
- value: 50
8899
- }
8900
- ], vf = (e) => {
8901
- let { diffs: t, userName: n, source: r, operation: i, operationMetaData: a } = e, o = ef(t).total, s = o ? `${o} change${o === 1 ? "" : "s"}` : "no field changes";
8902
- if (r === "API") return i === "Created" ? "Created through API" : "Changed through API";
8903
- switch (i) {
8904
- case "Created": return `Created by ${n}`;
8905
- case "Cloned": return `Cloned by ${n} (from ${a || "unknown"})`;
8906
- case "Reverted": return `Reverted by ${n}`;
8907
- case "Imported": return `Imported by ${n}`;
8908
- case "Updated": return `Updated by ${n} (${s})`;
8909
- default: return `Change by ${n}`;
8910
- }
8911
- }, yf = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, filterToggles: s = [], onChangeRowsPerPage: c, onSelectPage: l, onClickSnapshot: u, snapshotLoading: d, getActions: f, isLogDisabled: p }) => {
8912
- let [h, g] = m(!1), [_, v] = m(null), y = (e) => {
8913
- if (e.snapshot) {
8914
- u == null || u(e.snapshot, e);
8915
- return;
8870
+ }, gf = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, filterToggles: s = [], onChangeRowsPerPage: c, onSelectPage: l }) => {
8871
+ let [u, d] = m(!1), [f, p] = m(null), h = [
8872
+ {
8873
+ label: "10 / page",
8874
+ value: 10
8875
+ },
8876
+ {
8877
+ label: "20 / page",
8878
+ value: 20
8879
+ },
8880
+ {
8881
+ label: "50 / page",
8882
+ value: 50
8883
+ },
8884
+ {
8885
+ label: "Show all",
8886
+ value: 0
8887
+ }
8888
+ ], g = ({ diffs: e, userName: t, source: n, operation: r, operationMetaData: i }) => {
8889
+ let a = ef(e), o = a.total ? `${a.total} change${a.total === 1 ? "" : "s"}` : "no field changes";
8890
+ if (n === "API") return r === "Created" ? "Created through API" : "Changed through API";
8891
+ switch (r) {
8892
+ case "Created": return `Created by ${t}`;
8893
+ case "Cloned": return `Cloned by ${t} (from ${i || "unknown"})`;
8894
+ case "Reverted": return `Reverted by ${t}`;
8895
+ case "Imported": return `Imported by ${t}`;
8896
+ case "Updated": return `Updated by ${t} (${o})`;
8897
+ default: return `Change by ${t}`;
8916
8898
  }
8917
- v(e), g(!0);
8918
- }, b = [{ cells: [
8899
+ }, _ = [{ cells: [
8919
8900
  { value: "Change" },
8920
8901
  { value: "Modified by" },
8921
8902
  { value: "Using" },
8922
8903
  { value: "Operation" },
8923
8904
  { value: "Date" }
8924
- ] }], x = e.map((e) => {
8925
- var t;
8926
- let n = (t = p == null ? void 0 : p(e)) == null ? !!(e.snapshot && d || !e.diffs) : t;
8927
- return {
8928
- cells: [
8929
- {
8930
- value: e.snapshot ? `Snapshot: ${e.snapshot}` : vf(e),
8931
- type: "Link",
8932
- disabled: n,
8933
- onClick: n ? void 0 : () => y(e),
8934
- breakWord: !0
8935
- },
8936
- {
8937
- value: e.source === "API" ? "API" : e.userName || "Unknown user",
8938
- type: "Static"
8939
- },
8940
- {
8941
- value: e.source || "System",
8942
- type: "Static"
8943
- },
8944
- {
8945
- value: e.operation,
8946
- type: "Static"
8947
- },
8948
- {
8949
- value: od({
8950
- date: sf(e),
8951
- showTime: !0
8952
- }),
8953
- type: "Static"
8954
- }
8955
- ],
8956
- actions: f == null ? void 0 : f(e)
8957
- };
8958
- });
8959
- return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Li, {
8905
+ ] }], v = e.map((e) => ({ cells: [
8906
+ {
8907
+ value: g(e),
8908
+ type: "Link",
8909
+ onClick: () => {
8910
+ d(!0), p(e);
8911
+ },
8912
+ breakWord: !0
8913
+ },
8914
+ {
8915
+ value: e.source === "API" ? "API" : e.userName || "Unknown",
8916
+ type: "Static"
8917
+ },
8918
+ {
8919
+ value: e.source || "System",
8920
+ type: "Static"
8921
+ },
8922
+ {
8923
+ value: e.operation,
8924
+ type: "Static"
8925
+ },
8926
+ {
8927
+ value: od({
8928
+ date: e.createdAt,
8929
+ showTime: !0
8930
+ }),
8931
+ type: "Static"
8932
+ }
8933
+ ] }));
8934
+ return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Ii, {
8960
8935
  heading: /* @__PURE__ */ z(sl, {
8961
8936
  gap: !0,
8962
8937
  wrap: !0,
8963
- children: [/* @__PURE__ */ R(Zi, { children: "Changes" }), s.map((e) => {
8938
+ children: [/* @__PURE__ */ R(Xi, { children: "CHANGES" }), s == null ? void 0 : s.map((e) => {
8964
8939
  var t;
8965
8940
  return /* @__PURE__ */ R(zc, {
8966
8941
  small: (t = e.small) == null ? !0 : t,
@@ -8975,10 +8950,10 @@ var Zd = ((e = {}) => Xd({
8975
8950
  children: r ? /* @__PURE__ */ R(Ol, {
8976
8951
  height: "100px",
8977
8952
  theme: yr.WHITE,
8978
- children: /* @__PURE__ */ R(Zr, { dark: !0 })
8953
+ children: /* @__PURE__ */ R(Xr, { dark: !0 })
8979
8954
  }) : /* @__PURE__ */ R(qs, { table: {
8980
- headers: b,
8981
- rows: x,
8955
+ headers: _,
8956
+ rows: v,
8982
8957
  fixedWidth: "100%",
8983
8958
  bordered: !1,
8984
8959
  actionsRight: !0,
@@ -8987,24 +8962,25 @@ var Zd = ((e = {}) => Xd({
8987
8962
  selectedPage: i,
8988
8963
  rowsPerPage: {
8989
8964
  onChange: (e) => {
8990
- c(Number(e.target.value));
8965
+ let { value: t } = e.target;
8966
+ c(Number(t));
8991
8967
  },
8992
- options: _f,
8968
+ options: h,
8993
8969
  value: a
8994
8970
  },
8995
8971
  onSelectPage: (e) => l(e),
8996
8972
  small: !0
8997
8973
  } }
8998
8974
  } })
8999
- }), h && _ && _.diffs && /* @__PURE__ */ R(gf, {
8975
+ }), u && f && /* @__PURE__ */ R(hf, {
9000
8976
  sectionNames: o,
9001
- isOpen: h,
9002
- onClose: () => g(!1),
8977
+ isOpen: u,
8978
+ onClose: () => d(!1),
9003
8979
  auditLogs: e,
9004
- auditLog: _,
8980
+ auditLog: f,
9005
8981
  data: t
9006
8982
  })] });
9007
- }, bf = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
8983
+ }, _f = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
9008
8984
  let i = window.location.href, a = p(i);
9009
8985
  return c(() => {
9010
8986
  a.current = i;
@@ -9027,10 +9003,10 @@ var Zd = ((e = {}) => Xd({
9027
9003
  });
9028
9004
  };
9029
9005
  }, [e, t]), null;
9030
- }, xf = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Sf = (e) => {
9006
+ }, vf = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, yf = (e) => {
9031
9007
  Yu(Wu.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
9032
- e === Wu.Translations ? Yu(e, Ku(t)) : Yu(e, xf(t) ? t : { ...t });
9008
+ e === Wu.Translations ? Yu(e, Ku(t)) : Yu(e, vf(t) ? t : { ...t });
9033
9009
  });
9034
9010
  };
9035
9011
  //#endregion
9036
- export { Lr as Accordion, Jr as AccordionWithDefaultToggle, ki as Actions, gr as Align, yf as AuditLog, _i as Badge, Ni as Breadcrumb, ji as BreadcrumbLinkType, G as Button, Fi as ButtonGroup, _r as ButtonPosition, Qr as ButtonType, Li as Card, Wr as CheckBox, jr as Chevron, Pr as Collapse, hr as Color, Vi as ColorInput, Wi as Column, ea as Dialog, ad as DiffViewer, H as DisabledContext, Yi as Divider, oa as Drawer, uu as ElementType, ic as Empty, ol as Field, nl as FileButton, ga as FileInput, sl as Flex, ll as FormRow, pl as Grid, B as GroupOrder, Zi as Heading, Ur as HelpIcon, U as Icon, V as IconType, da as Input, la as InputGroup, rs as InputGroupAddon, pa as InputReaderMethods, br as InputType, il as Label, El as List, hl as ListHeading, xl as ListSubheading, Ol as Loader, Di as Menu, ai as MenuCarat, ii as MenuType, Ua as Message, La as MessageType, Ca as Modal, Ya as NativeSelect, ys as NumberInput, Pl as OptionDropdown, Il as Page, is as Pagination, gu as PopConfirm, zi as Popover, ya as Portal, Rl as PrintHeader, Ea as ProgressBar, zl as RadioButton, Wl as RichTextInput, Kl as Row, Zo as Select, td as SettingField, Zl as SideBar, $l as Skeleton, Ds as Slider, ja as SmartUploadModal, _a as Spacer, Zr as Spinner, qs as Table, tl as TableImportExport, ru as Tabs, qi as Text, ou as TextArea, iu as TextLink, vr as TextTransform, yr as Theme, $n as Toaster, zc as Toggle, W as Tooltip, pu as TopBar, bu as Tree, wu as TreeTable, mr as TriggerType, Uu as UnitInput, $u as UnitTable, bf as UsageTracker, Ic as dismissToast, Bu as initializeContext, Sf as initializeGuiLibrary, ma as readFile, Fc as toast, Xa as useFocus, va as useKeyboardEvent, $a as useWindowWidth };
9012
+ export { Lr as Accordion, Jr as AccordionWithDefaultToggle, Oi as Actions, gr as Align, gf as AuditLog, gi as Badge, Mi as Breadcrumb, Ai as BreadcrumbLinkType, K as Button, Pi as ButtonGroup, _r as ButtonPosition, Zr as ButtonType, Ii as Card, Wr as CheckBox, jr as Chevron, Pr as Collapse, hr as Color, Bi as ColorInput, Ui as Column, $i as Dialog, ad as DiffViewer, H as DisabledContext, Ji as Divider, oa as Drawer, uu as ElementType, ic as Empty, ol as Field, nl as FileButton, ga as FileInput, sl as Flex, ll as FormRow, pl as Grid, B as GroupOrder, Xi as Heading, Ur as HelpIcon, U as Icon, V as IconType, da as Input, la as InputGroup, rs as InputGroupAddon, pa as InputReaderMethods, br as InputType, il as Label, El as List, hl as ListHeading, xl as ListSubheading, Ol as Loader, Ei as Menu, ii as MenuCarat, ri as MenuType, Ua as Message, La as MessageType, Ca as Modal, Ya as NativeSelect, ys as NumberInput, Pl as OptionDropdown, Il as Page, is as Pagination, gu as PopConfirm, Ri as Popover, ya as Portal, Rl as PrintHeader, Ea as ProgressBar, zl as RadioButton, Wl as RichTextInput, Kl as Row, Zo as Select, td as SettingField, Zl as SideBar, $l as Skeleton, Ds as Slider, ja as SmartUploadModal, _a as Spacer, Xr as Spinner, qs as Table, tl as TableImportExport, ru as Tabs, Ki as Text, ou as TextArea, iu as TextLink, vr as TextTransform, yr as Theme, $n as Toaster, zc as Toggle, W as Tooltip, pu as TopBar, bu as Tree, wu as TreeTable, mr as TriggerType, Uu as UnitInput, $u as UnitTable, _f as UsageTracker, Ic as dismissToast, Bu as initializeContext, yf as initializeGuiLibrary, ma as readFile, Fc as toast, Xa as useFocus, va as useKeyboardEvent, $a as useWindowWidth };