@oliasoft-open-source/react-ui-library 5.23.0-beta-2 → 5.23.0-beta-4
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/components/audit-log/audit-log.d.ts +34 -6
- package/dist/components/audit-log/audit-log.d.ts.map +1 -1
- package/dist/components/audit-log/comparison-view-modal.d.ts +10 -2
- package/dist/components/audit-log/comparison-view-modal.d.ts.map +1 -1
- package/dist/components/audit-log/utils.d.ts.map +1 -1
- package/dist/index.js +386 -361
- package/package.json +20 -1
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
|
-
},
|
|
509
|
+
}, Yr = {
|
|
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
|
-
},
|
|
535
|
+
}, Xr = { spinner: "_spinner_156m4_1" }, Zr = ({ 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:
|
|
538
|
+
className: Xr.spinner,
|
|
539
539
|
style: {
|
|
540
540
|
color: i,
|
|
541
541
|
fontSize: a
|
|
542
542
|
}
|
|
543
543
|
});
|
|
544
|
-
},
|
|
544
|
+
}, Qr = /* @__PURE__ */ function(e) {
|
|
545
545
|
return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
|
|
546
|
-
}({}),
|
|
546
|
+
}({}), $r = ({ 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 }),
|
|
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 }) => {
|
|
551
551
|
let k = s(H), A = (() => {
|
|
552
552
|
if (n) switch (n) {
|
|
553
553
|
case hr.DANGER:
|
|
554
|
-
case hr.RED: return
|
|
554
|
+
case hr.RED: return Yr.red;
|
|
555
555
|
case hr.SUCCESS:
|
|
556
|
-
case hr.GREEN: return
|
|
557
|
-
case hr.MUTED: return
|
|
558
|
-
default: return
|
|
556
|
+
case hr.GREEN: return Yr.green;
|
|
557
|
+
case hr.MUTED: return Yr.muted;
|
|
558
|
+
default: return Yr.orange;
|
|
559
559
|
}
|
|
560
560
|
return "";
|
|
561
561
|
})(), j = (() => {
|
|
562
562
|
if (a) switch (a) {
|
|
563
|
-
case B.FIRST: return
|
|
564
|
-
case B.LAST: return
|
|
565
|
-
default: return
|
|
563
|
+
case B.FIRST: return Yr.groupOrderFirst;
|
|
564
|
+
case B.LAST: return Yr.groupOrderLast;
|
|
565
|
+
default: return Yr.groupOrderMiddle;
|
|
566
566
|
}
|
|
567
567
|
return "";
|
|
568
568
|
})(), M = r || k && !i;
|
|
569
|
-
return /* @__PURE__ */ R(
|
|
569
|
+
return /* @__PURE__ */ R($r, {
|
|
570
570
|
tooltip: w,
|
|
571
571
|
children: /* @__PURE__ */ z(E, {
|
|
572
|
-
type: y ===
|
|
573
|
-
className: g(
|
|
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),
|
|
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:
|
|
586
|
+
className: Yr.icon,
|
|
587
587
|
children: /* @__PURE__ */ R(U, { icon: o })
|
|
588
588
|
}),
|
|
589
589
|
u && /* @__PURE__ */ R("span", {
|
|
590
|
-
className:
|
|
591
|
-
children: /* @__PURE__ */ R(
|
|
590
|
+
className: Yr.icon,
|
|
591
|
+
children: /* @__PURE__ */ R(Zr, {
|
|
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:
|
|
600
|
+
className: Yr.rightIcon,
|
|
601
601
|
children: /* @__PURE__ */ R(U, { icon: c })
|
|
602
602
|
})
|
|
603
603
|
]
|
|
604
604
|
})
|
|
605
605
|
});
|
|
606
|
-
},
|
|
606
|
+
}, ei = {
|
|
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
|
-
},
|
|
611
|
+
}, K = {
|
|
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
|
-
},
|
|
641
|
+
}, ti = ({ label: e, onClick: t, icon: n, testId: r }) => /* @__PURE__ */ z("div", {
|
|
642
642
|
onClick: (e) => e.stopPropagation(),
|
|
643
|
-
className:
|
|
643
|
+
className: K.heading,
|
|
644
644
|
"data-testid": r,
|
|
645
645
|
children: [e, !!n && /* @__PURE__ */ R("span", {
|
|
646
|
-
className: g(
|
|
646
|
+
className: g(K.headingIcon, t ? K.clickable : ""),
|
|
647
647
|
onClick: t,
|
|
648
648
|
children: /* @__PURE__ */ R(U, { icon: n })
|
|
649
649
|
})]
|
|
650
|
-
}),
|
|
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(_, {
|
|
651
651
|
href: n,
|
|
652
652
|
to: n,
|
|
653
|
-
className: g(
|
|
653
|
+
className: g(K.option, l ? K.disabled : "", u ? K.inline : "", o ? K == null ? void 0 : K.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:
|
|
664
|
+
className: K.icon,
|
|
665
665
|
children: /* @__PURE__ */ R(U, { icon: a })
|
|
666
666
|
}) : null,
|
|
667
667
|
/* @__PURE__ */ z("div", {
|
|
668
|
-
className:
|
|
668
|
+
className: K.optionContent,
|
|
669
669
|
children: [
|
|
670
670
|
f && /* @__PURE__ */ R("input", {
|
|
671
671
|
type: "file",
|
|
672
672
|
accept: p,
|
|
673
|
-
className:
|
|
673
|
+
className: K.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:
|
|
692
|
+
className: K.label,
|
|
693
693
|
title: `${d || t}`,
|
|
694
694
|
children: t
|
|
695
695
|
}),
|
|
696
696
|
/* @__PURE__ */ R("span", {
|
|
697
|
-
className:
|
|
697
|
+
className: K.description,
|
|
698
698
|
children: i
|
|
699
699
|
})
|
|
700
700
|
]
|
|
701
701
|
}),
|
|
702
702
|
/* @__PURE__ */ z("div", {
|
|
703
|
-
className:
|
|
703
|
+
className: K.right,
|
|
704
704
|
children: [o && /* @__PURE__ */ R("span", {
|
|
705
|
-
className:
|
|
705
|
+
className: K.check,
|
|
706
706
|
children: /* @__PURE__ */ R(U, { icon: V.CHECK })
|
|
707
707
|
}), !!(e != null && e.length) && /* @__PURE__ */ R("div", {
|
|
708
|
-
className:
|
|
709
|
-
children: /* @__PURE__ */ R(
|
|
708
|
+
className: K.actions,
|
|
709
|
+
children: /* @__PURE__ */ R(ki, { actions: e })
|
|
710
710
|
})]
|
|
711
711
|
})
|
|
712
712
|
]
|
|
713
|
-
}),
|
|
713
|
+
}), ii = /* @__PURE__ */ function(e) {
|
|
714
714
|
return e.HEADING = "Heading", e.DIVIDER = "Divider", e.OPTION = "Option", e.MENU = "Menu", e;
|
|
715
|
-
}({}),
|
|
715
|
+
}({}), ai = /* @__PURE__ */ function(e) {
|
|
716
716
|
return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
|
|
717
|
-
}({}),
|
|
717
|
+
}({}), oi = ({ 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
|
|
720
|
+
case ii.HEADING:
|
|
721
721
|
var c;
|
|
722
|
-
return /* @__PURE__ */ R(
|
|
722
|
+
return /* @__PURE__ */ R(ti, {
|
|
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
|
|
729
|
-
case
|
|
728
|
+
case ii.DIVIDER: return /* @__PURE__ */ R(ni, {});
|
|
729
|
+
case ii.OPTION:
|
|
730
730
|
var l;
|
|
731
|
-
return /* @__PURE__ */ R(
|
|
731
|
+
return /* @__PURE__ */ R(ri, {
|
|
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
|
|
750
|
+
case ii.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(
|
|
753
|
+
return /* @__PURE__ */ R(Ei, {
|
|
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
|
-
},
|
|
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 }) => {
|
|
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:
|
|
775
|
+
type: ii.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(
|
|
789
|
+
className: g(K.layer, t ? K.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(
|
|
795
|
+
children: /* @__PURE__ */ R("ul", { children: b.map((e, t) => /* @__PURE__ */ R("li", { children: /* @__PURE__ */ R(oi, {
|
|
796
796
|
section: e,
|
|
797
797
|
closeOnOptionClick: e.closeOnOptionClick,
|
|
798
798
|
close: a,
|
|
799
799
|
tree: o,
|
|
800
|
-
path:
|
|
800
|
+
path: ci(s, t),
|
|
801
801
|
maxHeight: c
|
|
802
802
|
}) }, t)) })
|
|
803
803
|
});
|
|
804
|
-
},
|
|
804
|
+
}, pi = (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
|
-
}),
|
|
809
|
+
}), q = (e) => $t(e) || Xt(e) || i(e), mi = (e) => Array.isArray(e) ? "array" : typeof e, hi = {
|
|
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
|
-
},
|
|
816
|
+
}, gi = (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
|
-
},
|
|
820
|
-
let s = !(r === null && i === !1), c = n || (
|
|
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)");
|
|
821
821
|
return /* @__PURE__ */ z("div", {
|
|
822
|
-
className:
|
|
822
|
+
className: hi.wrapper,
|
|
823
823
|
children: [s && /* @__PURE__ */ R("sup", {
|
|
824
|
-
className: g(
|
|
824
|
+
className: g(hi.badge, r === null ? hi.dot : hi.label, o ? hi.small : "", e ? hi.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
|
-
},
|
|
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 }) => {
|
|
834
834
|
let p = s(H), m = e === mr.DROP_DOWN_BUTTON;
|
|
835
835
|
return /* @__PURE__ */ R("div", {
|
|
836
|
-
className: g(
|
|
836
|
+
className: g(K.trigger, a || p ? K.disabled : null),
|
|
837
837
|
style: { width: i },
|
|
838
|
-
children: /* @__PURE__ */ R(
|
|
838
|
+
children: /* @__PURE__ */ R(G, {
|
|
839
839
|
label: /* @__PURE__ */ R("span", {
|
|
840
|
-
className:
|
|
840
|
+
className: K.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
|
-
},
|
|
857
|
+
}, yi = ({ 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(
|
|
860
|
+
className: g(K.trigger, r ? K.disabled : null, i ? K.active : null, a ? K == null ? void 0 : K.selected : null),
|
|
861
861
|
children: [/* @__PURE__ */ R("span", {
|
|
862
|
-
className:
|
|
862
|
+
className: K.label,
|
|
863
863
|
title: o,
|
|
864
864
|
children: e
|
|
865
|
-
}), n && n ===
|
|
866
|
-
className:
|
|
865
|
+
}), n && n === ai.RIGHT ? /* @__PURE__ */ R("span", {
|
|
866
|
+
className: K.arrow,
|
|
867
867
|
children: /* @__PURE__ */ R(U, { icon: V.CHEVRON_RIGHT })
|
|
868
|
-
}) : n && n ===
|
|
869
|
-
className:
|
|
868
|
+
}) : n && n === ai.DOWN ? /* @__PURE__ */ R("span", {
|
|
869
|
+
className: K.arrow,
|
|
870
870
|
children: /* @__PURE__ */ R(U, { icon: V.CHEVRON_DOWN })
|
|
871
871
|
}) : null]
|
|
872
872
|
});
|
|
873
|
-
},
|
|
874
|
-
className: g(
|
|
873
|
+
}, bi = ({ component: e, disabled: t, testId: n }) => /* @__PURE__ */ R("div", {
|
|
874
|
+
className: g(K.component, t ? K.disabled : null),
|
|
875
875
|
"data-testid": n,
|
|
876
876
|
children: e
|
|
877
|
-
}),
|
|
877
|
+
}), xi = ({ tooltip: e, error: t, warning: n, children: r }) => !q(e) && !q(t) && !q(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
|
-
}),
|
|
884
|
-
let E = o === mr.BUTTON || o === mr.DROP_DOWN_BUTTON ? /* @__PURE__ */ 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, {
|
|
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(
|
|
897
|
+
}) : o === mr.TEXT ? /* @__PURE__ */ R(yi, {
|
|
898
898
|
label: s == null ? "" : s,
|
|
899
899
|
title: c,
|
|
900
900
|
disabled: t,
|
|
901
|
-
carat: p ? void 0 : f ?
|
|
901
|
+
carat: p ? void 0 : f ? ai.RIGHT : ai.DOWN,
|
|
902
902
|
isOpen: _,
|
|
903
903
|
selected: S
|
|
904
|
-
}) : o === mr.COMPONENT ? /* @__PURE__ */ R(
|
|
904
|
+
}) : o === mr.COMPONENT ? /* @__PURE__ */ R(bi, {
|
|
905
905
|
component: m,
|
|
906
906
|
disabled: t
|
|
907
|
-
}) : null, D = !f && (n || r) ? /* @__PURE__ */ R(
|
|
907
|
+
}) : null, D = !f && (n || r) ? /* @__PURE__ */ R(_i, {
|
|
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:
|
|
915
|
+
className: K.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(
|
|
926
|
+
children: /* @__PURE__ */ R(xi, {
|
|
927
927
|
tooltip: b,
|
|
928
928
|
error: v,
|
|
929
929
|
warning: y,
|
|
930
930
|
children: D
|
|
931
931
|
})
|
|
932
932
|
});
|
|
933
|
-
}),
|
|
933
|
+
}), Ci = (e) => {
|
|
934
934
|
let { sections: t } = e;
|
|
935
935
|
return !i(t) && (!Array.isArray(t) || t.every((e) => Kt(e)));
|
|
936
|
-
},
|
|
936
|
+
}, wi = ({ 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
|
-
...
|
|
940
|
+
...pi(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(
|
|
948
|
+
children: /* @__PURE__ */ R(fi, {
|
|
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
|
-
},
|
|
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] =
|
|
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({
|
|
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(
|
|
978
|
+
children: [/* @__PURE__ */ R(Si, {
|
|
979
979
|
width: t,
|
|
980
980
|
fullHeight: p,
|
|
981
|
-
isDisabled: n ||
|
|
981
|
+
isDisabled: n || Ci(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
|
-
},
|
|
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 }) => {
|
|
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
|
-
...
|
|
996
|
+
...pi(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 ||
|
|
1003
|
-
return
|
|
1002
|
+
}), I = n || Ci(e) || E;
|
|
1003
|
+
return di(u, d, ae), /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Si, {
|
|
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
|
-
|
|
1020
|
+
ui(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:
|
|
1044
|
-
enterActive:
|
|
1043
|
+
enter: K.enter,
|
|
1044
|
+
enterActive: K.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:
|
|
1052
|
+
className: K.layerContainer,
|
|
1053
1053
|
"data-testid": e.testId,
|
|
1054
1054
|
onClick: (e) => e.stopPropagation(),
|
|
1055
|
-
children: /* @__PURE__ */ R(
|
|
1055
|
+
children: /* @__PURE__ */ R(fi, {
|
|
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
|
-
},
|
|
1069
|
+
}, Di = (e) => e.contextMenu ? /* @__PURE__ */ R(Ti, {
|
|
1070
1070
|
...e,
|
|
1071
1071
|
tree: {},
|
|
1072
1072
|
path: "",
|
|
1073
1073
|
testId: e.testId
|
|
1074
|
-
}) : /* @__PURE__ */ R(
|
|
1074
|
+
}) : /* @__PURE__ */ R(Ei, {
|
|
1075
1075
|
...e,
|
|
1076
1076
|
tree: {},
|
|
1077
1077
|
path: "",
|
|
1078
1078
|
testId: e.testId
|
|
1079
|
-
}),
|
|
1080
|
-
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ R(
|
|
1079
|
+
}), Oi = (e) => {
|
|
1080
|
+
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ R(G, {
|
|
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(
|
|
1089
|
+
return t.length ? /* @__PURE__ */ R(Di, { 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
|
-
},
|
|
1107
|
+
}, ki = (t) => {
|
|
1108
1108
|
let n = s(H), { actions: r = [], closeLayer: i } = t;
|
|
1109
1109
|
return /* @__PURE__ */ R("div", {
|
|
1110
|
-
className: g(
|
|
1110
|
+
className: g(ei.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:
|
|
1114
|
+
className: ei.childComponent,
|
|
1115
1115
|
children: t.childComponent
|
|
1116
|
-
}, r) : t.subActions ? /* @__PURE__ */ R(
|
|
1116
|
+
}, r) : t.subActions ? /* @__PURE__ */ R(Oi, {
|
|
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(
|
|
1122
|
+
}, r) : /* @__PURE__ */ R(G, {
|
|
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
|
-
},
|
|
1138
|
+
}, Ai = {
|
|
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
|
-
},
|
|
1145
|
+
}, ji = /* @__PURE__ */ function(e) {
|
|
1146
1146
|
return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
|
|
1147
|
-
}({}),
|
|
1148
|
-
let l = s(H), u = 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);
|
|
1149
1149
|
return /* @__PURE__ */ R("span", {
|
|
1150
1150
|
onClick: r,
|
|
1151
|
-
className: g(
|
|
1151
|
+
className: g(Ai.labelContainer, a && Ai.active, (o || l) && Ai.disabled),
|
|
1152
1152
|
children: u ? /* @__PURE__ */ R("a", {
|
|
1153
1153
|
href: n,
|
|
1154
1154
|
children: t
|
|
1155
1155
|
}) : d ? c : t
|
|
1156
1156
|
});
|
|
1157
|
-
},
|
|
1158
|
-
className: g(
|
|
1157
|
+
}, Ni = ({ links: e, small: t = !1 }) => /* @__PURE__ */ R("div", {
|
|
1158
|
+
className: g(Ai.breadcrumb, t && Ai.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(
|
|
1161
|
+
return /* @__PURE__ */ z("span", { children: [/* @__PURE__ */ R(Mi, {
|
|
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:
|
|
1170
|
+
className: Ai.separator,
|
|
1171
1171
|
children: "/"
|
|
1172
1172
|
})] }, n);
|
|
1173
1173
|
})
|
|
1174
|
-
}),
|
|
1174
|
+
}), Pi = {
|
|
1175
1175
|
label: "_label_iu2wi_1",
|
|
1176
1176
|
buttonGroup: "_buttonGroup_iu2wi_11"
|
|
1177
|
-
},
|
|
1177
|
+
}, Fi = (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:
|
|
1186
|
+
className: Pi.label,
|
|
1187
1187
|
children: r
|
|
1188
1188
|
});
|
|
1189
1189
|
})(), /* @__PURE__ */ R("div", {
|
|
1190
|
-
className:
|
|
1190
|
+
className: Pi.buttonGroup,
|
|
1191
1191
|
"data-testid": c,
|
|
1192
1192
|
children: n.map((e, r) => {
|
|
1193
|
-
let i =
|
|
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;
|
|
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 &&
|
|
1201
|
-
children: /* @__PURE__ */ R(
|
|
1200
|
+
enabled: w && q(w) || x && q(x) || T && q(T) || !1,
|
|
1201
|
+
children: /* @__PURE__ */ R(G, {
|
|
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
|
-
},
|
|
1217
|
+
}, Ii = {
|
|
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
|
-
},
|
|
1226
|
-
className: g(
|
|
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 : ""),
|
|
1227
1227
|
style: { margin: r },
|
|
1228
1228
|
children: [t ? /* @__PURE__ */ R("div", {
|
|
1229
|
-
className: g(
|
|
1229
|
+
className: g(Ii.cardHeader),
|
|
1230
1230
|
children: t
|
|
1231
1231
|
}) : null, /* @__PURE__ */ R("div", {
|
|
1232
|
-
className: g(
|
|
1232
|
+
className: g(Ii.cardContent, t ? Ii.cardContentBorderTop : "", i ? Ii.padding : ""),
|
|
1233
1233
|
children: n
|
|
1234
1234
|
})]
|
|
1235
|
-
}),
|
|
1235
|
+
}), Ri = {
|
|
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
|
-
},
|
|
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 }) => {
|
|
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:
|
|
1270
|
-
enterActive:
|
|
1269
|
+
enter: Ri.enter,
|
|
1270
|
+
enterActive: Ri.enterActive
|
|
1271
1271
|
},
|
|
1272
1272
|
unmountOnExit: !0,
|
|
1273
1273
|
children: /* @__PURE__ */ R(L, { children: y && C(/* @__PURE__ */ z("div", {
|
|
1274
|
-
className: a ? g(
|
|
1274
|
+
className: a ? g(Ri.toggleBox, Ri.fullWidthStyleFix) : g(Ri.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:
|
|
1281
|
-
children: /* @__PURE__ */ R(
|
|
1280
|
+
className: Ri.dismiss,
|
|
1281
|
+
children: /* @__PURE__ */ R(G, {
|
|
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
|
-
},
|
|
1296
|
+
}, Bi = {
|
|
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
|
-
},
|
|
1303
|
+
}, Vi = ({ 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(
|
|
1308
|
-
children: /* @__PURE__ */ R(
|
|
1307
|
+
className: g(Bi.colorInput, o ? Bi.adjustColorsInDarkMode : void 0),
|
|
1308
|
+
children: /* @__PURE__ */ R(zi, {
|
|
1309
1309
|
placement: "bottom-start",
|
|
1310
1310
|
isOpen: c,
|
|
1311
1311
|
onToggle: l,
|
|
1312
1312
|
content: /* @__PURE__ */ R("div", {
|
|
1313
|
-
className: g(
|
|
1313
|
+
className: g(Bi.options, o ? Bi.adjustColorsInDarkMode : void 0),
|
|
1314
1314
|
style: { gridTemplateColumns: `repeat(${e}, auto)` },
|
|
1315
1315
|
children: n.map((e) => /* @__PURE__ */ R("div", {
|
|
1316
|
-
className:
|
|
1317
|
-
children: /* @__PURE__ */ R(
|
|
1316
|
+
className: Bi.option,
|
|
1317
|
+
children: /* @__PURE__ */ R(G, {
|
|
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:
|
|
1323
|
+
className: Bi.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(
|
|
1332
|
+
children: /* @__PURE__ */ R(G, {
|
|
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:
|
|
1339
|
+
className: Bi.buttonColor,
|
|
1340
1340
|
style: { backgroundColor: i }
|
|
1341
1341
|
})
|
|
1342
1342
|
})
|
|
1343
1343
|
})
|
|
1344
1344
|
});
|
|
1345
|
-
},
|
|
1345
|
+
}, Hi = cn`
|
|
1346
1346
|
scrollbar-width: none;
|
|
1347
1347
|
-ms-overflow-style: none;
|
|
1348
1348
|
&::-webkit-scrollbar {
|
|
1349
1349
|
display: none;
|
|
1350
1350
|
}
|
|
1351
|
-
`,
|
|
1351
|
+
`, Ui = 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 &&
|
|
1364
|
+
${(e) => !e.$showScrollbar && Hi}
|
|
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
|
-
`,
|
|
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 }) => {
|
|
1384
1384
|
let m = (e) => typeof e == "string" ? e : typeof e == "number" ? `${e}px` : void 0;
|
|
1385
|
-
return /* @__PURE__ */ R(
|
|
1385
|
+
return /* @__PURE__ */ R(Ui, {
|
|
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
|
-
},
|
|
1404
|
+
}, Gi = {
|
|
1405
1405
|
divider: "_divider_2bfzh_1",
|
|
1406
1406
|
alignLeft: "_alignLeft_2bfzh_12",
|
|
1407
1407
|
alignRight: "_alignRight_2bfzh_15"
|
|
1408
|
-
},
|
|
1408
|
+
}, Ki = {
|
|
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
|
-
},
|
|
1419
|
-
className: g(t &&
|
|
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),
|
|
1420
1420
|
onClick: s,
|
|
1421
1421
|
children: e
|
|
1422
|
-
}),
|
|
1422
|
+
}), Ji = (e) => {
|
|
1423
1423
|
switch (e) {
|
|
1424
|
-
case gr.LEFT: return
|
|
1425
|
-
case gr.RIGHT: return
|
|
1424
|
+
case gr.LEFT: return Gi.alignLeft;
|
|
1425
|
+
case gr.RIGHT: return Gi.alignRight;
|
|
1426
1426
|
default: return "";
|
|
1427
1427
|
}
|
|
1428
|
-
},
|
|
1429
|
-
className: `${
|
|
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)}`,
|
|
1430
1430
|
style: {
|
|
1431
1431
|
marginTop: t,
|
|
1432
1432
|
marginBottom: t,
|
|
1433
1433
|
"--color": n
|
|
1434
1434
|
},
|
|
1435
|
-
children: typeof e == "string" ? /* @__PURE__ */ R(
|
|
1435
|
+
children: typeof e == "string" ? /* @__PURE__ */ R(qi, {
|
|
1436
1436
|
muted: !0,
|
|
1437
1437
|
children: e
|
|
1438
1438
|
}) : e
|
|
1439
|
-
}),
|
|
1439
|
+
}), Xi = {
|
|
1440
1440
|
heading: "_heading_yhdiy_1",
|
|
1441
1441
|
top: "_top_yhdiy_10",
|
|
1442
1442
|
icons: "_icons_yhdiy_20"
|
|
1443
|
-
},
|
|
1443
|
+
}, Zi = ({ 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(
|
|
1447
|
+
className: g(Xi.heading, c ? Xi.top : ""),
|
|
1448
1448
|
style: { marginBottom: s },
|
|
1449
1449
|
onClick: n,
|
|
1450
1450
|
"data-testid": l,
|
|
1451
1451
|
children: [e, /* @__PURE__ */ z("div", {
|
|
1452
|
-
className:
|
|
1452
|
+
className: Xi.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
|
-
},
|
|
1470
|
+
}, Qi = {
|
|
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
|
-
},
|
|
1479
|
+
}, $i = (e) => Wt(e) ? e.map((e, n) => /* @__PURE__ */ z(t, { children: [
|
|
1480
1480
|
e,
|
|
1481
1481
|
" ",
|
|
1482
1482
|
/* @__PURE__ */ R("br", {})
|
|
1483
|
-
] }, n)) : e,
|
|
1483
|
+
] }, n)) : e, ea = ({ 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(
|
|
1486
|
+
className: g(Qi.dialog, s ? Qi.inline : null, o ? Qi.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:
|
|
1495
|
-
children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R(
|
|
1494
|
+
className: Qi.header,
|
|
1495
|
+
children: [/* @__PURE__ */ z("div", { children: [/* @__PURE__ */ R(Zi, {
|
|
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:
|
|
1501
|
+
className: Qi.subheading,
|
|
1502
1502
|
children: n
|
|
1503
1503
|
})] }), l ? /* @__PURE__ */ R("div", {
|
|
1504
|
-
className:
|
|
1505
|
-
children: /* @__PURE__ */ R(
|
|
1504
|
+
className: Qi.dismiss,
|
|
1505
|
+
children: /* @__PURE__ */ R(G, {
|
|
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:
|
|
1519
|
+
className: Qi.content,
|
|
1520
1520
|
style: { padding: i },
|
|
1521
|
-
children:
|
|
1521
|
+
children: $i(r)
|
|
1522
1522
|
}),
|
|
1523
1523
|
a && /* @__PURE__ */ R("div", {
|
|
1524
1524
|
"data-testid": u && `${u}-footer`,
|
|
1525
|
-
className:
|
|
1525
|
+
className: Qi.footer,
|
|
1526
1526
|
children: a
|
|
1527
1527
|
})
|
|
1528
1528
|
]
|
|
1529
1529
|
});
|
|
1530
|
-
},
|
|
1530
|
+
}, J = {
|
|
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(
|
|
1556
|
+
}, ta = ({ badge: e, children: t }) => e ? /* @__PURE__ */ R(_i, {
|
|
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:
|
|
1562
|
+
className: J.tabs,
|
|
1563
1563
|
children: e.map((e, a) => Yt(e) || Kt(e) ? null : /* @__PURE__ */ R("div", {
|
|
1564
|
-
className: g(
|
|
1564
|
+
className: g(J.tab, t === a && n ? J.active : "", e.disabled ? J.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:
|
|
1581
|
+
className: J.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:
|
|
1589
|
+
className: J.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 ?
|
|
1606
|
+
className: o ? J.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(
|
|
1624
|
+
className: g(J.drawer, c ? J.shadow : "", t ? J.fixed : J.inline, a ? J.right : J.left),
|
|
1625
1625
|
style: { top: l },
|
|
1626
1626
|
children: [/* @__PURE__ */ R("div", {
|
|
1627
|
-
className: g(
|
|
1627
|
+
className: g(J.drawerContent, p && J.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(
|
|
1659
|
-
children: O ? u : /* @__PURE__ */ R(
|
|
1658
|
+
className: g(J.toggleButton, k && (D || O && d) ? J.toggleButtonOpen : "", f === "top" ? J.top : J.bottom),
|
|
1659
|
+
children: O ? u : /* @__PURE__ */ R(G, {
|
|
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 &&
|
|
1711
|
+
enabled: t && q(t) || e && q(e) || x && q(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(
|
|
1776
|
+
}), /* @__PURE__ */ R(G, {
|
|
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(
|
|
1951
|
+
/* @__PURE__ */ R(qi, { 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(
|
|
1962
|
+
] }), j = /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(G, {
|
|
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(
|
|
1968
|
+
}), /* @__PURE__ */ R(G, {
|
|
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(
|
|
1976
|
+
children: /* @__PURE__ */ R(ea, { 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(
|
|
2023
|
+
children: /* @__PURE__ */ R(ea, { 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(
|
|
2029
|
+
footer: /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(G, {
|
|
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(
|
|
2171
|
+
children: [i ? /* @__PURE__ */ R(Zi, { 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(
|
|
2176
|
+
let e = /* @__PURE__ */ R(ki, { 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 &&
|
|
2225
|
+
enabled: r && q(r) || t && q(t) || n && q(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(
|
|
2308
|
+
children: /* @__PURE__ */ R(qi, {
|
|
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(
|
|
2315
|
+
children: /* @__PURE__ */ R(ki, {
|
|
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
|
|
2329
|
-
case
|
|
2328
|
+
case ii.HEADING: return /* @__PURE__ */ R(to, { label: e.label });
|
|
2329
|
+
case ii.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 !==
|
|
2377
|
+
selected: t && n[e].type !== ii.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(
|
|
2495
|
+
children: [/* @__PURE__ */ R(qi, { children: e.label }), /* @__PURE__ */ R(qi, {
|
|
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 &&
|
|
2543
|
+
enabled: c && q(c) || o && q(o) || s && q(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 ===
|
|
2555
|
+
let n = ["none", ...e.map((e, t) => e.type === ii.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 !==
|
|
2865
|
+
return (Array.isArray(e) ? e.filter((e) => e.type !== ii.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 !==
|
|
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);
|
|
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(
|
|
2984
|
+
/* @__PURE__ */ R(G, {
|
|
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(
|
|
2992
|
+
/* @__PURE__ */ R(G, {
|
|
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(
|
|
3013
|
+
/* @__PURE__ */ R(G, {
|
|
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(
|
|
3021
|
+
/* @__PURE__ */ R(G, {
|
|
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(
|
|
3049
|
+
children: [e && o() ? /* @__PURE__ */ R(is, { pagination: e }) : /* @__PURE__ */ R("div", {}), i && /* @__PURE__ */ R("div", { children: /* @__PURE__ */ R(ki, { actions: t }) })]
|
|
3050
3050
|
}) : null]
|
|
3051
3051
|
}) : null;
|
|
3052
3052
|
}, os = (e) => {
|
|
@@ -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) =>
|
|
3299
|
+
let n = s(H), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, c = (e) => q(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(
|
|
3364
|
+
children: /* @__PURE__ */ R(G, {
|
|
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(
|
|
3374
|
+
children: /* @__PURE__ */ R(G, {
|
|
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 &&
|
|
3445
|
+
enabled: !!t && q(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(
|
|
3451
|
+
}, As = ({ cell: e }) => /* @__PURE__ */ R(ki, { 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(
|
|
3474
|
+
children: [n === "down" ? /* @__PURE__ */ R(qi, {
|
|
3475
3475
|
link: !0,
|
|
3476
3476
|
children: /* @__PURE__ */ R(U, { icon: V.SORT_ASCENDING })
|
|
3477
|
-
}) : n === "up" ? /* @__PURE__ */ R(
|
|
3477
|
+
}) : n === "up" ? /* @__PURE__ */ R(qi, {
|
|
3478
3478
|
link: !0,
|
|
3479
3479
|
children: /* @__PURE__ */ R(U, { icon: V.SORT_DESCENDING })
|
|
3480
|
-
}) : /* @__PURE__ */ R(
|
|
3480
|
+
}) : /* @__PURE__ */ R(qi, {
|
|
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 &&
|
|
3504
|
+
enabled: a && q(a) || r && q(r) || i && q(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(
|
|
3512
|
+
return /* @__PURE__ */ R(zi, {
|
|
3513
3513
|
content: n,
|
|
3514
3514
|
fullWidth: r,
|
|
3515
3515
|
closeOnOutsideClick: i,
|
|
@@ -4177,7 +4177,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4177
4177
|
}),
|
|
4178
4178
|
n !== "" && /* @__PURE__ */ R("div", {
|
|
4179
4179
|
className: rc.text,
|
|
4180
|
-
children: /* @__PURE__ */ R(
|
|
4180
|
+
children: /* @__PURE__ */ R(qi, {
|
|
4181
4181
|
faint: !0,
|
|
4182
4182
|
children: n
|
|
4183
4183
|
})
|
|
@@ -4563,7 +4563,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4563
4563
|
}),
|
|
4564
4564
|
/* @__PURE__ */ R(W, {
|
|
4565
4565
|
text: u("deletePastedContent"),
|
|
4566
|
-
children: /* @__PURE__ */ R(
|
|
4566
|
+
children: /* @__PURE__ */ R(G, {
|
|
4567
4567
|
name: "clearReview",
|
|
4568
4568
|
icon: "delete",
|
|
4569
4569
|
small: !0,
|
|
@@ -4572,7 +4572,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4572
4572
|
}),
|
|
4573
4573
|
/* @__PURE__ */ R(W, {
|
|
4574
4574
|
text: u("openHelp"),
|
|
4575
|
-
children: /* @__PURE__ */ R(
|
|
4575
|
+
children: /* @__PURE__ */ R(G, {
|
|
4576
4576
|
name: "help",
|
|
4577
4577
|
icon: "help",
|
|
4578
4578
|
small: !0,
|
|
@@ -4604,7 +4604,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4604
4604
|
")"
|
|
4605
4605
|
]
|
|
4606
4606
|
}),
|
|
4607
|
-
/* @__PURE__ */ R(
|
|
4607
|
+
/* @__PURE__ */ R(G, {
|
|
4608
4608
|
name: "paste",
|
|
4609
4609
|
icon: "paste",
|
|
4610
4610
|
label: u("pasteFromClipboard"),
|
|
@@ -4627,7 +4627,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4627
4627
|
errors: ee,
|
|
4628
4628
|
t: u
|
|
4629
4629
|
}) : null,
|
|
4630
|
-
re && /* @__PURE__ */ R(
|
|
4630
|
+
re && /* @__PURE__ */ R(qi, {
|
|
4631
4631
|
muted: !0,
|
|
4632
4632
|
children: u("commasAsDecimals")
|
|
4633
4633
|
}),
|
|
@@ -4658,7 +4658,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4658
4658
|
return /* @__PURE__ */ R(Ca, {
|
|
4659
4659
|
visible: g,
|
|
4660
4660
|
centered: !0,
|
|
4661
|
-
children: /* @__PURE__ */ R(
|
|
4661
|
+
children: /* @__PURE__ */ R(ea, { dialog: {
|
|
4662
4662
|
width: "60vw",
|
|
4663
4663
|
height: "650px",
|
|
4664
4664
|
scroll: !0,
|
|
@@ -4668,7 +4668,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4668
4668
|
children: ae
|
|
4669
4669
|
}),
|
|
4670
4670
|
footer: /* @__PURE__ */ z(L, { children: [
|
|
4671
|
-
/* @__PURE__ */ R(
|
|
4671
|
+
/* @__PURE__ */ R(G, {
|
|
4672
4672
|
label: u("okay"),
|
|
4673
4673
|
colored: !0,
|
|
4674
4674
|
onClick: () => f(() => j()),
|
|
@@ -4676,11 +4676,11 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4676
4676
|
loading: d,
|
|
4677
4677
|
testId: `${h}-paste-with-review-modal-button-okay`
|
|
4678
4678
|
}),
|
|
4679
|
-
/* @__PURE__ */ R(
|
|
4679
|
+
/* @__PURE__ */ R(G, {
|
|
4680
4680
|
label: u("cancel"),
|
|
4681
4681
|
onClick: () => i()
|
|
4682
4682
|
}),
|
|
4683
|
-
P && /* @__PURE__ */ R(
|
|
4683
|
+
P && /* @__PURE__ */ R(G, {
|
|
4684
4684
|
label: b,
|
|
4685
4685
|
onClick: x
|
|
4686
4686
|
})
|
|
@@ -4696,10 +4696,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
4696
4696
|
onClose: () => r({ name: e }),
|
|
4697
4697
|
...o
|
|
4698
4698
|
}) }, e);
|
|
4699
|
-
}) }) : null, Hc = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ R(
|
|
4699
|
+
}) }) : null, Hc = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ R(Di, {
|
|
4700
4700
|
loading: !0,
|
|
4701
4701
|
menu: {
|
|
4702
|
-
component: /* @__PURE__ */ R(
|
|
4702
|
+
component: /* @__PURE__ */ R(G, {
|
|
4703
4703
|
basic: !0,
|
|
4704
4704
|
icon: t,
|
|
4705
4705
|
colored: "muted",
|
|
@@ -5156,7 +5156,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5156
5156
|
}] : []
|
|
5157
5157
|
];
|
|
5158
5158
|
return /* @__PURE__ */ z("span", { children: [
|
|
5159
|
-
ee && /* @__PURE__ */ R(
|
|
5159
|
+
ee && /* @__PURE__ */ R(Zr, {
|
|
5160
5160
|
small: !0,
|
|
5161
5161
|
dark: !0
|
|
5162
5162
|
}),
|
|
@@ -5225,7 +5225,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5225
5225
|
}
|
|
5226
5226
|
}), l.current && (l.current.value = "");
|
|
5227
5227
|
};
|
|
5228
|
-
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(
|
|
5228
|
+
return /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(G, {
|
|
5229
5229
|
...o,
|
|
5230
5230
|
onClick: u
|
|
5231
5231
|
}), /* @__PURE__ */ R("input", {
|
|
@@ -5410,7 +5410,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5410
5410
|
}),
|
|
5411
5411
|
e && /* @__PURE__ */ R("div", {
|
|
5412
5412
|
className: Z.headerTitle,
|
|
5413
|
-
children: /* @__PURE__ */ R(
|
|
5413
|
+
children: /* @__PURE__ */ R(Zi, {
|
|
5414
5414
|
top: !0,
|
|
5415
5415
|
marginBottom: 0,
|
|
5416
5416
|
children: e
|
|
@@ -5420,13 +5420,13 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5420
5420
|
className: Z.right,
|
|
5421
5421
|
children: /* @__PURE__ */ R("div", {
|
|
5422
5422
|
className: Z.actions,
|
|
5423
|
-
children: /* @__PURE__ */ R(
|
|
5423
|
+
children: /* @__PURE__ */ R(ki, { actions: t })
|
|
5424
5424
|
})
|
|
5425
5425
|
})
|
|
5426
5426
|
]
|
|
5427
5427
|
})), gl = ({ label: e }) => e ? /* @__PURE__ */ R("span", {
|
|
5428
5428
|
className: Z.label,
|
|
5429
|
-
children: /* @__PURE__ */ R(
|
|
5429
|
+
children: /* @__PURE__ */ R(_i, {
|
|
5430
5430
|
color: e.color,
|
|
5431
5431
|
title: e.value,
|
|
5432
5432
|
small: e.small
|
|
@@ -5457,7 +5457,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5457
5457
|
icon: n,
|
|
5458
5458
|
testId: o && `${o}-name`
|
|
5459
5459
|
});
|
|
5460
|
-
return a && (s = /* @__PURE__ */ R(
|
|
5460
|
+
return a && (s = /* @__PURE__ */ R(_i, {
|
|
5461
5461
|
small: !0,
|
|
5462
5462
|
margin: "-2px",
|
|
5463
5463
|
title: "!",
|
|
@@ -5478,7 +5478,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5478
5478
|
})
|
|
5479
5479
|
]
|
|
5480
5480
|
});
|
|
5481
|
-
}, yl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ R(
|
|
5481
|
+
}, yl = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ R(_i, {
|
|
5482
5482
|
color: "rgba(0,0,0,0.25)",
|
|
5483
5483
|
title: e.metaCount
|
|
5484
5484
|
}), bl = ({ item: e, expanding: t }) => /* @__PURE__ */ R(Pr, {
|
|
@@ -5518,7 +5518,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5518
5518
|
className: Z.right,
|
|
5519
5519
|
children: [/* @__PURE__ */ R(yl, { item: e }), !(o || i) && a && /* @__PURE__ */ R("div", {
|
|
5520
5520
|
className: Z.actions,
|
|
5521
|
-
children: /* @__PURE__ */ R(
|
|
5521
|
+
children: /* @__PURE__ */ R(ki, { actions: (r = e.actions) == null ? [] : r })
|
|
5522
5522
|
})]
|
|
5523
5523
|
})
|
|
5524
5524
|
]
|
|
@@ -5566,7 +5566,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5566
5566
|
className: Z.right,
|
|
5567
5567
|
children: [/* @__PURE__ */ R(yl, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ R("div", {
|
|
5568
5568
|
className: Z.actions,
|
|
5569
|
-
children: /* @__PURE__ */ R(
|
|
5569
|
+
children: /* @__PURE__ */ R(ki, { actions: t.actions })
|
|
5570
5570
|
})]
|
|
5571
5571
|
})
|
|
5572
5572
|
]
|
|
@@ -5812,10 +5812,10 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5812
5812
|
children: "Invert"
|
|
5813
5813
|
})
|
|
5814
5814
|
]
|
|
5815
|
-
}), /* @__PURE__ */ R(
|
|
5815
|
+
}), /* @__PURE__ */ R(Yi, { margin: 0 })] }), e.map((n, r) => {
|
|
5816
5816
|
switch (n.type) {
|
|
5817
5817
|
case Ml.HEADING: return /* @__PURE__ */ R(jl, { label: n.label }, r);
|
|
5818
|
-
case Ml.DIVIDER: return /* @__PURE__ */ R(
|
|
5818
|
+
case Ml.DIVIDER: return /* @__PURE__ */ R(Yi, { margin: 0 }, r);
|
|
5819
5819
|
default: return /* @__PURE__ */ R(Al, {
|
|
5820
5820
|
option: n,
|
|
5821
5821
|
onChange: (r) => {
|
|
@@ -5828,7 +5828,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5828
5828
|
}, r);
|
|
5829
5829
|
}
|
|
5830
5830
|
})]
|
|
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(
|
|
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
5832
|
testId: c,
|
|
5833
5833
|
disabled: t,
|
|
5834
5834
|
menu: {
|
|
@@ -5935,7 +5935,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
5935
5935
|
className: Bl.richTextToolbarContainer,
|
|
5936
5936
|
children: [/* @__PURE__ */ R("div", {
|
|
5937
5937
|
className: Bl.richTextToolbar,
|
|
5938
|
-
children: c.map((e, n) => /* @__PURE__ */ R(
|
|
5938
|
+
children: c.map((e, n) => /* @__PURE__ */ R(G, {
|
|
5939
5939
|
small: !0,
|
|
5940
5940
|
round: !0,
|
|
5941
5941
|
basic: !0,
|
|
@@ -6038,7 +6038,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6038
6038
|
display: "block",
|
|
6039
6039
|
children: /* @__PURE__ */ R("span", {
|
|
6040
6040
|
className: ql.icon,
|
|
6041
|
-
children: /* @__PURE__ */ R(
|
|
6041
|
+
children: /* @__PURE__ */ R(_i, {
|
|
6042
6042
|
small: !0,
|
|
6043
6043
|
title: r ? "!" : void 0,
|
|
6044
6044
|
margin: 4,
|
|
@@ -6086,7 +6086,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6086
6086
|
closedWidth: "var(--size-sidebar)",
|
|
6087
6087
|
buttonPosition: _r.BOTTOM,
|
|
6088
6088
|
buttonAnimate: !0,
|
|
6089
|
-
button: s && /* @__PURE__ */ R(
|
|
6089
|
+
button: s && /* @__PURE__ */ R(G, {
|
|
6090
6090
|
onClick: (e) => {
|
|
6091
6091
|
e.shiftKey && n && n(e), a(!i);
|
|
6092
6092
|
},
|
|
@@ -6139,13 +6139,13 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6139
6139
|
className: g(eu.item, i ? eu.active : "", r ? eu.disabled : "", n && !i ? eu.hidden : "", o ? eu.right : eu.left),
|
|
6140
6140
|
onClick: a,
|
|
6141
6141
|
"data-testid": l,
|
|
6142
|
-
children: s ? /* @__PURE__ */ R(
|
|
6142
|
+
children: s ? /* @__PURE__ */ R(_i, {
|
|
6143
6143
|
small: !0,
|
|
6144
6144
|
margin: "-4px",
|
|
6145
6145
|
color: u,
|
|
6146
6146
|
title: "!",
|
|
6147
6147
|
children: e
|
|
6148
|
-
}) : c ? /* @__PURE__ */ R(
|
|
6148
|
+
}) : c ? /* @__PURE__ */ R(_i, {
|
|
6149
6149
|
small: !0,
|
|
6150
6150
|
margin: "-4px",
|
|
6151
6151
|
title: c == null ? void 0 : c.toString(),
|
|
@@ -6207,7 +6207,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6207
6207
|
target: n,
|
|
6208
6208
|
onClick: i,
|
|
6209
6209
|
"data-testid": r,
|
|
6210
|
-
children: /* @__PURE__ */ R(
|
|
6210
|
+
children: /* @__PURE__ */ R(qi, {
|
|
6211
6211
|
link: !0,
|
|
6212
6212
|
children: e
|
|
6213
6213
|
})
|
|
@@ -6245,7 +6245,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6245
6245
|
error: !!f,
|
|
6246
6246
|
warning: !!p,
|
|
6247
6247
|
text: m || f || p,
|
|
6248
|
-
enabled: m &&
|
|
6248
|
+
enabled: m && q(m) || f && q(f) || p && q(p) || !1,
|
|
6249
6249
|
maxWidth: h,
|
|
6250
6250
|
children: S
|
|
6251
6251
|
});
|
|
@@ -6346,7 +6346,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6346
6346
|
});
|
|
6347
6347
|
case uu.BUTTON: return /* @__PURE__ */ R("div", {
|
|
6348
6348
|
className: g(Q.item, Q.button),
|
|
6349
|
-
children: /* @__PURE__ */ R(
|
|
6349
|
+
children: /* @__PURE__ */ R(G, {
|
|
6350
6350
|
label: e.label,
|
|
6351
6351
|
colored: e.colored,
|
|
6352
6352
|
pill: !0,
|
|
@@ -6358,7 +6358,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6358
6358
|
});
|
|
6359
6359
|
case uu.MENU: return /* @__PURE__ */ R("div", {
|
|
6360
6360
|
className: g(Q.item, Q.menu),
|
|
6361
|
-
children: /* @__PURE__ */ R(
|
|
6361
|
+
children: /* @__PURE__ */ R(Di, {
|
|
6362
6362
|
maxHeight: "100%",
|
|
6363
6363
|
menu: {
|
|
6364
6364
|
trigger: mr.COMPONENT,
|
|
@@ -6411,27 +6411,27 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6411
6411
|
className: mu.popConfirm,
|
|
6412
6412
|
children: [e && /* @__PURE__ */ R("div", {
|
|
6413
6413
|
className: mu.content,
|
|
6414
|
-
children: /* @__PURE__ */ R(
|
|
6414
|
+
children: /* @__PURE__ */ R(qi, {
|
|
6415
6415
|
small: !0,
|
|
6416
6416
|
children: e
|
|
6417
6417
|
})
|
|
6418
6418
|
}), /* @__PURE__ */ z("div", {
|
|
6419
6419
|
className: mu.buttons,
|
|
6420
|
-
children: [/* @__PURE__ */ R(
|
|
6420
|
+
children: [/* @__PURE__ */ R(G, {
|
|
6421
6421
|
small: !0,
|
|
6422
6422
|
colored: !0,
|
|
6423
6423
|
label: t,
|
|
6424
6424
|
onClick: () => n(o),
|
|
6425
6425
|
disabled: r,
|
|
6426
6426
|
testId: `${s}-ok-button`
|
|
6427
|
-
}), /* @__PURE__ */ R(
|
|
6427
|
+
}), /* @__PURE__ */ R(G, {
|
|
6428
6428
|
small: !0,
|
|
6429
6429
|
label: i,
|
|
6430
6430
|
onClick: () => a(o),
|
|
6431
6431
|
testId: `${s}-cancel-button`
|
|
6432
6432
|
})]
|
|
6433
6433
|
})]
|
|
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(
|
|
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
6435
|
content: /* @__PURE__ */ R(hu, {
|
|
6436
6436
|
title: i,
|
|
6437
6437
|
okText: s,
|
|
@@ -6482,7 +6482,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6482
6482
|
children: [
|
|
6483
6483
|
a && /* @__PURE__ */ R("div", {
|
|
6484
6484
|
className: _u.toggle,
|
|
6485
|
-
children: /* @__PURE__ */ R(
|
|
6485
|
+
children: /* @__PURE__ */ R(G, {
|
|
6486
6486
|
basic: !0,
|
|
6487
6487
|
colored: r ? !0 : hr.MUTED,
|
|
6488
6488
|
small: !0,
|
|
@@ -6500,7 +6500,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6500
6500
|
className: Z.right,
|
|
6501
6501
|
children: [/* @__PURE__ */ R(yl, { item: u }), !f && h.length > 0 && /* @__PURE__ */ R("div", {
|
|
6502
6502
|
className: Z.actions,
|
|
6503
|
-
children: /* @__PURE__ */ R(
|
|
6503
|
+
children: /* @__PURE__ */ R(ki, { actions: h })
|
|
6504
6504
|
})]
|
|
6505
6505
|
})
|
|
6506
6506
|
]
|
|
@@ -6668,7 +6668,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6668
6668
|
className: xu.folder,
|
|
6669
6669
|
onClick: () => m(v),
|
|
6670
6670
|
onMouseDown: (e) => e.stopPropagation(),
|
|
6671
|
-
children: /* @__PURE__ */ R(
|
|
6671
|
+
children: /* @__PURE__ */ R(G, {
|
|
6672
6672
|
basic: !0,
|
|
6673
6673
|
colored: c ? !0 : hr.MUTED,
|
|
6674
6674
|
disabled: !a,
|
|
@@ -6969,7 +6969,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6969
6969
|
o = In(Ln(e, ae));
|
|
6970
6970
|
}
|
|
6971
6971
|
return {
|
|
6972
|
-
type:
|
|
6972
|
+
type: ii.OPTION,
|
|
6973
6973
|
inline: !0,
|
|
6974
6974
|
onClick: () => {
|
|
6975
6975
|
Fn(i).valid && !n && (pe(Ou.PREDEFINED), h({ target: {
|
|
@@ -6979,7 +6979,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6979
6979
|
predefinedOption: t
|
|
6980
6980
|
} }));
|
|
6981
6981
|
},
|
|
6982
|
-
label: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(
|
|
6982
|
+
label: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(qi, { children: t.label }), /* @__PURE__ */ R(_a, {
|
|
6983
6983
|
width: "20px",
|
|
6984
6984
|
height: "0"
|
|
6985
6985
|
})] }),
|
|
@@ -6988,7 +6988,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
6988
6988
|
};
|
|
6989
6989
|
};
|
|
6990
6990
|
if (Ce = [{
|
|
6991
|
-
type:
|
|
6991
|
+
type: ii.OPTION,
|
|
6992
6992
|
inline: !0,
|
|
6993
6993
|
onClick: () => {
|
|
6994
6994
|
fe !== Ou.CUSTOM && !n && h({ target: {
|
|
@@ -7021,7 +7021,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7021
7021
|
small: o,
|
|
7022
7022
|
width: s,
|
|
7023
7023
|
children: [
|
|
7024
|
-
C && /* @__PURE__ */ R(
|
|
7024
|
+
C && /* @__PURE__ */ R(Di, {
|
|
7025
7025
|
maxHeight: 380,
|
|
7026
7026
|
groupOrder: "first",
|
|
7027
7027
|
testId: x && `${x}-predefined-menu`,
|
|
@@ -7029,7 +7029,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7029
7029
|
menu: {
|
|
7030
7030
|
colored: !0,
|
|
7031
7031
|
trigger: "Component",
|
|
7032
|
-
component: /* @__PURE__ */ R(
|
|
7032
|
+
component: /* @__PURE__ */ R(G, {
|
|
7033
7033
|
groupOrder: "first",
|
|
7034
7034
|
active: fe === Ou.PREDEFINED,
|
|
7035
7035
|
icon: fe === Ou.PREDEFINED ? "link" : "unlink",
|
|
@@ -7069,7 +7069,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7069
7069
|
groupOrder: De,
|
|
7070
7070
|
small: o,
|
|
7071
7071
|
children: be
|
|
7072
|
-
}) : /* @__PURE__ */ R(
|
|
7072
|
+
}) : /* @__PURE__ */ R(Di, {
|
|
7073
7073
|
groupOrder: De,
|
|
7074
7074
|
maxHeight: 380,
|
|
7075
7075
|
disabled: r,
|
|
@@ -7308,7 +7308,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7308
7308
|
})]
|
|
7309
7309
|
})
|
|
7310
7310
|
})]
|
|
7311
|
-
}), t && /* @__PURE__ */ R(
|
|
7311
|
+
}), t && /* @__PURE__ */ R(qi, {
|
|
7312
7312
|
muted: !0,
|
|
7313
7313
|
children: f(t)
|
|
7314
7314
|
})]
|
|
@@ -7333,18 +7333,18 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7333
7333
|
let s = ({ target: { value: e } }) => {
|
|
7334
7334
|
a(e);
|
|
7335
7335
|
}, { added: l, removed: u } = nd(e, t), d = l + u > 3500;
|
|
7336
|
-
return /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(
|
|
7336
|
+
return /* @__PURE__ */ R(L, { children: /* @__PURE__ */ R(Li, {
|
|
7337
7337
|
bordered: !0,
|
|
7338
7338
|
heading: /* @__PURE__ */ z(sl, {
|
|
7339
7339
|
gap: !0,
|
|
7340
|
-
children: [/* @__PURE__ */ R(
|
|
7340
|
+
children: [/* @__PURE__ */ R(Zi, { children: /* @__PURE__ */ z("div", { children: [/* @__PURE__ */ z(qi, {
|
|
7341
7341
|
success: !0,
|
|
7342
7342
|
children: [
|
|
7343
7343
|
"+",
|
|
7344
7344
|
l,
|
|
7345
7345
|
" "
|
|
7346
7346
|
]
|
|
7347
|
-
}), /* @__PURE__ */ z(
|
|
7347
|
+
}), /* @__PURE__ */ z(qi, {
|
|
7348
7348
|
error: !0,
|
|
7349
7349
|
children: ["-", u]
|
|
7350
7350
|
})] }) }), !d && /* @__PURE__ */ R(zl, {
|
|
@@ -7358,7 +7358,7 @@ var mr = /* @__PURE__ */ function(e) {
|
|
|
7358
7358
|
padding: !1,
|
|
7359
7359
|
children: d ? /* @__PURE__ */ R("div", {
|
|
7360
7360
|
style: { padding: "5px" },
|
|
7361
|
-
children: /* @__PURE__ */ R(
|
|
7361
|
+
children: /* @__PURE__ */ R(qi, {
|
|
7362
7362
|
muted: !0,
|
|
7363
7363
|
children: r == null ? void 0 : r.changesTooLarge
|
|
7364
7364
|
})
|
|
@@ -8754,7 +8754,7 @@ var Zd = ((e = {}) => Xd({
|
|
|
8754
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, t, n) => {
|
|
8757
|
-
let r = t.filter((t) => !!t.diffs && t.createdAt >= e.createdAt), i = Array(r.length + 1);
|
|
8757
|
+
let r = t.filter((t) => !!t.diffs && (t.createdAt || t.date) >= (e.createdAt || e.date)), i = Array(r.length + 1);
|
|
8758
8758
|
i[0] = zt(n);
|
|
8759
8759
|
let a = "", o = "";
|
|
8760
8760
|
try {
|
|
@@ -8831,17 +8831,17 @@ var Zd = ((e = {}) => Xd({
|
|
|
8831
8831
|
});
|
|
8832
8832
|
};
|
|
8833
8833
|
return e ? (i(e), n) : [];
|
|
8834
|
-
}, hf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, sectionNames: i, onClose: a }) => {
|
|
8835
|
-
let { diffs: o = void 0 } = e || {};
|
|
8836
|
-
if (!o) return null;
|
|
8834
|
+
}, hf = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, sectionNames: i, onClose: a, cancelLabel: o = "Cancel" }) => {
|
|
8837
8835
|
let s = [pf.summary, pf.compare].map(({ label: e, value: t }) => ({
|
|
8838
8836
|
label: e,
|
|
8839
8837
|
value: t
|
|
8840
|
-
})), [c, l] = m(s[0]), {
|
|
8841
|
-
|
|
8838
|
+
})), [c, l] = m(s[0]), { diffs: u = void 0 } = e || {};
|
|
8839
|
+
if (!u) return null;
|
|
8840
|
+
let { oldJson: d, newJson: f } = sf(e, t, n);
|
|
8841
|
+
return console.log("GUI library:", e, t, n), console.log("GUi Auditlog:", d, f), /* @__PURE__ */ R(Ca, {
|
|
8842
8842
|
visible: r,
|
|
8843
8843
|
centered: !0,
|
|
8844
|
-
children: /* @__PURE__ */ R(
|
|
8844
|
+
children: /* @__PURE__ */ R(ea, { dialog: {
|
|
8845
8845
|
scroll: !0,
|
|
8846
8846
|
heading: "Comparison view",
|
|
8847
8847
|
content: /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(ru, {
|
|
@@ -8852,13 +8852,13 @@ var Zd = ((e = {}) => Xd({
|
|
|
8852
8852
|
}), c.value === "summary" ? /* @__PURE__ */ R(ff, {
|
|
8853
8853
|
userName: e.userName,
|
|
8854
8854
|
sectionNames: i,
|
|
8855
|
-
diffs: mf(
|
|
8855
|
+
diffs: mf(u)
|
|
8856
8856
|
}) : /* @__PURE__ */ R(ad, {
|
|
8857
|
-
oldJson:
|
|
8858
|
-
newJson:
|
|
8857
|
+
oldJson: d,
|
|
8858
|
+
newJson: f
|
|
8859
8859
|
})] }),
|
|
8860
|
-
footer: /* @__PURE__ */ R(
|
|
8861
|
-
label:
|
|
8860
|
+
footer: /* @__PURE__ */ R(G, {
|
|
8861
|
+
label: o,
|
|
8862
8862
|
onClick: a
|
|
8863
8863
|
}),
|
|
8864
8864
|
onClose: a,
|
|
@@ -8866,75 +8866,100 @@ var Zd = ((e = {}) => Xd({
|
|
|
8866
8866
|
height: "90vh"
|
|
8867
8867
|
} })
|
|
8868
8868
|
});
|
|
8869
|
-
}, gf =
|
|
8870
|
-
|
|
8871
|
-
|
|
8872
|
-
|
|
8873
|
-
|
|
8874
|
-
|
|
8875
|
-
|
|
8876
|
-
|
|
8877
|
-
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
8885
|
-
|
|
8886
|
-
|
|
8887
|
-
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8869
|
+
}, gf = {
|
|
8870
|
+
heading: "CHANGES",
|
|
8871
|
+
change: "Change",
|
|
8872
|
+
modifiedBy: "Modified by",
|
|
8873
|
+
using: "Using",
|
|
8874
|
+
operation: "Operation",
|
|
8875
|
+
date: "Date",
|
|
8876
|
+
unknownUser: "Unknown",
|
|
8877
|
+
snapshot: "Snapshot",
|
|
8878
|
+
cancel: "Cancel"
|
|
8879
|
+
}, _f = [
|
|
8880
|
+
{
|
|
8881
|
+
label: "10 / page",
|
|
8882
|
+
value: 10
|
|
8883
|
+
},
|
|
8884
|
+
{
|
|
8885
|
+
label: "20 / page",
|
|
8886
|
+
value: 20
|
|
8887
|
+
},
|
|
8888
|
+
{
|
|
8889
|
+
label: "50 / page",
|
|
8890
|
+
value: 50
|
|
8891
|
+
},
|
|
8892
|
+
{
|
|
8893
|
+
label: "Show all",
|
|
8894
|
+
value: 0
|
|
8895
|
+
}
|
|
8896
|
+
], vf = (e) => e.createdAt || e.date, yf = ({ diffs: e, userName: t, source: n, operation: r, operationMetaData: i }) => {
|
|
8897
|
+
let a = ef(e).total, o = a ? `${a} change${a === 1 ? "" : "s"}` : "no field changes";
|
|
8898
|
+
if (n === "API") return r === "Created" ? "Created through API" : "Changed through API";
|
|
8899
|
+
switch (r) {
|
|
8900
|
+
case "Created": return `Created by ${t}`;
|
|
8901
|
+
case "Cloned": return `Cloned by ${t} (from ${i || "unknown"})`;
|
|
8902
|
+
case "Reverted": return `Reverted by ${t}`;
|
|
8903
|
+
case "Imported": return `Imported by ${t}`;
|
|
8904
|
+
case "Updated": return `Updated by ${t} (${o})`;
|
|
8905
|
+
default: return `Change by ${t}`;
|
|
8906
|
+
}
|
|
8907
|
+
}, bf = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, filterToggles: s = [], labels: c, onChangeRowsPerPage: l, onSelectPage: u, onClickSnapshot: d, snapshotLoading: f, getActions: p, isLogDisabled: h }) => {
|
|
8908
|
+
let g = {
|
|
8909
|
+
...gf,
|
|
8910
|
+
...c
|
|
8911
|
+
}, [_, v] = m(!1), [y, b] = m(null), x = (e) => {
|
|
8912
|
+
if (e.snapshot) {
|
|
8913
|
+
d == null || d(e.snapshot, e);
|
|
8914
|
+
return;
|
|
8897
8915
|
}
|
|
8898
|
-
|
|
8916
|
+
b(e), v(!0);
|
|
8917
|
+
}, S = [{ cells: [
|
|
8899
8918
|
{ value: "Change" },
|
|
8900
8919
|
{ value: "Modified by" },
|
|
8901
8920
|
{ value: "Using" },
|
|
8902
8921
|
{ value: "Operation" },
|
|
8903
8922
|
{ value: "Date" }
|
|
8904
|
-
] }],
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
8927
|
-
|
|
8928
|
-
|
|
8929
|
-
|
|
8930
|
-
|
|
8931
|
-
|
|
8932
|
-
|
|
8933
|
-
|
|
8923
|
+
] }], C = e.map((e) => {
|
|
8924
|
+
var t;
|
|
8925
|
+
let n = (t = h == null ? void 0 : h(e)) == null ? !!(e.snapshot && f || !e.diffs) : t;
|
|
8926
|
+
return {
|
|
8927
|
+
cells: [
|
|
8928
|
+
{
|
|
8929
|
+
value: e.snapshot ? `${g.snapshot}: ${e.snapshot}` : yf(e),
|
|
8930
|
+
type: "Link",
|
|
8931
|
+
disabled: n,
|
|
8932
|
+
onClick: n ? void 0 : () => x(e),
|
|
8933
|
+
breakWord: !0
|
|
8934
|
+
},
|
|
8935
|
+
{
|
|
8936
|
+
value: e.source === "API" ? "API" : e.userName || g.unknownUser,
|
|
8937
|
+
type: "Static"
|
|
8938
|
+
},
|
|
8939
|
+
{
|
|
8940
|
+
value: e.source || "System",
|
|
8941
|
+
type: "Static"
|
|
8942
|
+
},
|
|
8943
|
+
{
|
|
8944
|
+
value: e.operation,
|
|
8945
|
+
type: "Static"
|
|
8946
|
+
},
|
|
8947
|
+
{
|
|
8948
|
+
value: od({
|
|
8949
|
+
date: vf(e),
|
|
8950
|
+
showTime: !0
|
|
8951
|
+
}),
|
|
8952
|
+
type: "Static"
|
|
8953
|
+
}
|
|
8954
|
+
],
|
|
8955
|
+
actions: p == null ? void 0 : p(e)
|
|
8956
|
+
};
|
|
8957
|
+
});
|
|
8958
|
+
return console.log("GUI:", y, e, t), /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R(Li, {
|
|
8934
8959
|
heading: /* @__PURE__ */ z(sl, {
|
|
8935
8960
|
gap: !0,
|
|
8936
8961
|
wrap: !0,
|
|
8937
|
-
children: [/* @__PURE__ */ R(
|
|
8962
|
+
children: [/* @__PURE__ */ R(Zi, { children: g.heading }), s.map((e) => {
|
|
8938
8963
|
var t;
|
|
8939
8964
|
return /* @__PURE__ */ R(zc, {
|
|
8940
8965
|
small: (t = e.small) == null ? !0 : t,
|
|
@@ -8949,10 +8974,10 @@ var Zd = ((e = {}) => Xd({
|
|
|
8949
8974
|
children: r ? /* @__PURE__ */ R(Ol, {
|
|
8950
8975
|
height: "100px",
|
|
8951
8976
|
theme: yr.WHITE,
|
|
8952
|
-
children: /* @__PURE__ */ R(
|
|
8977
|
+
children: /* @__PURE__ */ R(Zr, { dark: !0 })
|
|
8953
8978
|
}) : /* @__PURE__ */ R(qs, { table: {
|
|
8954
|
-
headers:
|
|
8955
|
-
rows:
|
|
8979
|
+
headers: S,
|
|
8980
|
+
rows: C,
|
|
8956
8981
|
fixedWidth: "100%",
|
|
8957
8982
|
bordered: !1,
|
|
8958
8983
|
actionsRight: !0,
|
|
@@ -8961,25 +8986,25 @@ var Zd = ((e = {}) => Xd({
|
|
|
8961
8986
|
selectedPage: i,
|
|
8962
8987
|
rowsPerPage: {
|
|
8963
8988
|
onChange: (e) => {
|
|
8964
|
-
|
|
8965
|
-
c(Number(t));
|
|
8989
|
+
l(Number(e.target.value));
|
|
8966
8990
|
},
|
|
8967
|
-
options:
|
|
8991
|
+
options: _f,
|
|
8968
8992
|
value: a
|
|
8969
8993
|
},
|
|
8970
|
-
onSelectPage: (e) =>
|
|
8994
|
+
onSelectPage: (e) => u(e),
|
|
8971
8995
|
small: !0
|
|
8972
8996
|
} }
|
|
8973
8997
|
} })
|
|
8974
|
-
}),
|
|
8998
|
+
}), _ && y && y.diffs && /* @__PURE__ */ R(hf, {
|
|
8975
8999
|
sectionNames: o,
|
|
8976
|
-
isOpen:
|
|
8977
|
-
onClose: () =>
|
|
9000
|
+
isOpen: _,
|
|
9001
|
+
onClose: () => v(!1),
|
|
8978
9002
|
auditLogs: e,
|
|
8979
|
-
auditLog:
|
|
8980
|
-
data: t
|
|
9003
|
+
auditLog: y,
|
|
9004
|
+
data: t,
|
|
9005
|
+
cancelLabel: g.cancel
|
|
8981
9006
|
})] });
|
|
8982
|
-
},
|
|
9007
|
+
}, xf = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
8983
9008
|
let i = window.location.href, a = p(i);
|
|
8984
9009
|
return c(() => {
|
|
8985
9010
|
a.current = i;
|
|
@@ -9002,10 +9027,10 @@ var Zd = ((e = {}) => Xd({
|
|
|
9002
9027
|
});
|
|
9003
9028
|
};
|
|
9004
9029
|
}, [e, t]), null;
|
|
9005
|
-
},
|
|
9030
|
+
}, Sf = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Cf = (e) => {
|
|
9006
9031
|
Yu(Wu.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
9007
|
-
e === Wu.Translations ? Yu(e, Ku(t)) : Yu(e,
|
|
9032
|
+
e === Wu.Translations ? Yu(e, Ku(t)) : Yu(e, Sf(t) ? t : { ...t });
|
|
9008
9033
|
});
|
|
9009
9034
|
};
|
|
9010
9035
|
//#endregion
|
|
9011
|
-
export { Lr as Accordion, Jr as AccordionWithDefaultToggle,
|
|
9036
|
+
export { Lr as Accordion, Jr as AccordionWithDefaultToggle, ki as Actions, gr as Align, bf 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, xf as UsageTracker, Ic as dismissToast, Bu as initializeContext, Cf as initializeGuiLibrary, ma as readFile, Fc as toast, Xa as useFocus, va as useKeyboardEvent, $a as useWindowWidth };
|