@oliasoft-open-source/react-ui-library 10.0.0-beta-37 → 10.0.0-beta-39
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/global.css +1 -1
- package/dist/index.d.ts +12 -0
- package/dist/index.js +1002 -913
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -557,27 +557,27 @@ var Ni = /* @__PURE__ */ function(e) {
|
|
|
557
557
|
onMouseOver: A,
|
|
558
558
|
children: e
|
|
559
559
|
})] });
|
|
560
|
-
},
|
|
560
|
+
}, K = (e) => /* @__PURE__ */ C(oa, { children: /* @__PURE__ */ C(va, { ...e }) }), ya = {
|
|
561
561
|
helpIcon: "_helpIcon_hd0z2_1",
|
|
562
562
|
active: "_active_hd0z2_9",
|
|
563
563
|
clickable: "_clickable_hd0z2_12"
|
|
564
|
-
},
|
|
564
|
+
}, ba = ({ children: e, text: t, maxWidth: n }) => t ? /* @__PURE__ */ C(K, {
|
|
565
565
|
text: t,
|
|
566
566
|
display: "inline-flex",
|
|
567
567
|
maxWidth: n,
|
|
568
568
|
children: e
|
|
569
|
-
}) : /* @__PURE__ */ C(S, { children: e }),
|
|
570
|
-
className: x(
|
|
569
|
+
}) : /* @__PURE__ */ C(S, { children: e }), xa = ({ text: e, onClick: t, icon: n = "help", active: r = !1, maxWidth: i = "300px", testId: a }) => /* @__PURE__ */ C("div", {
|
|
570
|
+
className: x(ya.helpIcon, t ? ya.clickable : "", r ? ya.active : ""),
|
|
571
571
|
onClick: (e) => {
|
|
572
572
|
t && (e.stopPropagation(), t());
|
|
573
573
|
},
|
|
574
574
|
"data-testid": a,
|
|
575
|
-
children: /* @__PURE__ */ C(
|
|
575
|
+
children: /* @__PURE__ */ C(ba, {
|
|
576
576
|
text: e,
|
|
577
577
|
maxWidth: i,
|
|
578
578
|
children: /* @__PURE__ */ C(G, { icon: n })
|
|
579
579
|
})
|
|
580
|
-
}),
|
|
580
|
+
}), Sa = ({ noMargin: e = !1, dataix: t = 0, isInTable: n = !1, tabIndex: r = 0, checked: i = !1, indeterminate: a = !1, name: o, label: s = "", disabled: c = !1, small: l = !1, onChange: u, testId: f, helpText: p, onClickHelp: m, textTransform: h = Li.CAPITALIZE }) => {
|
|
581
581
|
let g = d(W), _ = p || m;
|
|
582
582
|
return /* @__PURE__ */ w(Lt, {
|
|
583
583
|
name: o,
|
|
@@ -609,46 +609,46 @@ var Ni = /* @__PURE__ */ function(e) {
|
|
|
609
609
|
style: { textTransform: h },
|
|
610
610
|
children: s
|
|
611
611
|
})]
|
|
612
|
-
}), _ && /* @__PURE__ */ C(
|
|
612
|
+
}), _ && /* @__PURE__ */ C(xa, {
|
|
613
613
|
text: p,
|
|
614
614
|
onClick: m
|
|
615
615
|
})]
|
|
616
616
|
});
|
|
617
|
-
},
|
|
617
|
+
}, Ca = {
|
|
618
618
|
bordered: "_bordered_1cgsf_1",
|
|
619
619
|
checkboxWrapper: "_checkboxWrapper_1cgsf_7",
|
|
620
620
|
padding: "_padding_1cgsf_13",
|
|
621
621
|
contentWrapper: "_contentWrapper_1cgsf_16"
|
|
622
|
-
},
|
|
622
|
+
}, wa = /* @__PURE__ */ function(e) {
|
|
623
623
|
return e.TOGGLE_ACCORDION = "TOGGLE_ACCORDION", e.TOGGLE_ENABLE = "TOGGLE_ENABLE", e;
|
|
624
|
-
}({}),
|
|
624
|
+
}({}), Ta = (e, t) => {
|
|
625
625
|
switch (t.type) {
|
|
626
|
-
case
|
|
626
|
+
case wa.TOGGLE_ACCORDION: return {
|
|
627
627
|
...e,
|
|
628
628
|
accordionExpanded: !e.accordionExpanded
|
|
629
629
|
};
|
|
630
|
-
case
|
|
630
|
+
case wa.TOGGLE_ENABLE: return {
|
|
631
631
|
...e,
|
|
632
632
|
defaultEnabled: !e.defaultEnabled,
|
|
633
633
|
accordionExpanded: e.defaultEnabled
|
|
634
634
|
};
|
|
635
635
|
default: return e;
|
|
636
636
|
}
|
|
637
|
-
},
|
|
638
|
-
let [s, c] = _(
|
|
637
|
+
}, Ea = ({ heading: e, toggleLabel: t, onClickDefaultToggle: n, expanded: r = !1, defaultEnabled: i = !0, padding: a = !0, children: o }) => {
|
|
638
|
+
let [s, c] = _(Ta, {
|
|
639
639
|
accordionExpanded: r,
|
|
640
640
|
defaultEnabled: i
|
|
641
641
|
}), l = /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
|
|
642
|
-
className:
|
|
643
|
-
children: /* @__PURE__ */ C(
|
|
642
|
+
className: Ca.checkboxWrapper,
|
|
643
|
+
children: /* @__PURE__ */ C(Sa, {
|
|
644
644
|
label: t,
|
|
645
645
|
onChange: (e) => {
|
|
646
|
-
c({ type:
|
|
646
|
+
c({ type: wa.TOGGLE_ENABLE }), n == null || n(e);
|
|
647
647
|
},
|
|
648
648
|
checked: s.defaultEnabled
|
|
649
649
|
})
|
|
650
650
|
}), s.accordionExpanded && /* @__PURE__ */ C("div", {
|
|
651
|
-
className:
|
|
651
|
+
className: Ca.contentWrapper,
|
|
652
652
|
children: o
|
|
653
653
|
})] });
|
|
654
654
|
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(ia, {
|
|
@@ -656,12 +656,12 @@ var Ni = /* @__PURE__ */ function(e) {
|
|
|
656
656
|
bordered: !0,
|
|
657
657
|
expanded: s.accordionExpanded,
|
|
658
658
|
squareBottom: !0,
|
|
659
|
-
onClick: () => c({ type:
|
|
659
|
+
onClick: () => c({ type: wa.TOGGLE_ACCORDION })
|
|
660
660
|
}), /* @__PURE__ */ C("div", {
|
|
661
|
-
className: x(
|
|
661
|
+
className: x(Ca.bordered, a ? Ca.padding : ""),
|
|
662
662
|
children: l
|
|
663
663
|
})] });
|
|
664
|
-
},
|
|
664
|
+
}, Da = {
|
|
665
665
|
inputInTable: "_inputInTable_7ijg3_1",
|
|
666
666
|
inputHover: "_inputHover_7ijg3_13",
|
|
667
667
|
inputFocus: "_inputFocus_7ijg3_18",
|
|
@@ -688,46 +688,46 @@ var Ni = /* @__PURE__ */ function(e) {
|
|
|
688
688
|
groupOrderFirst: "_groupOrderFirst_7ijg3_348",
|
|
689
689
|
groupOrderMiddle: "_groupOrderMiddle_7ijg3_349",
|
|
690
690
|
groupOrderLast: "_groupOrderLast_7ijg3_350"
|
|
691
|
-
},
|
|
691
|
+
}, Oa = { spinner: "_spinner_156m4_1" }, ka = ({ small: e = !1, colored: t = !1, dark: n = !1, tiny: r = !1 }) => {
|
|
692
692
|
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)";
|
|
693
693
|
return /* @__PURE__ */ C("div", {
|
|
694
|
-
className:
|
|
694
|
+
className: Oa.spinner,
|
|
695
695
|
style: {
|
|
696
696
|
color: i,
|
|
697
697
|
fontSize: a
|
|
698
698
|
}
|
|
699
699
|
});
|
|
700
|
-
},
|
|
700
|
+
}, Aa = /* @__PURE__ */ function(e) {
|
|
701
701
|
return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
|
|
702
|
-
}({}),
|
|
702
|
+
}({}), ja = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ C(K, {
|
|
703
703
|
text: t,
|
|
704
704
|
display: "inline-flex",
|
|
705
705
|
children: e
|
|
706
|
-
}) : /* @__PURE__ */ C(S, { children: e }),
|
|
706
|
+
}) : /* @__PURE__ */ C(S, { children: e }), q = e.forwardRef(({ active: e = !1, basic: t = !1, colored: n = !1, disabled: r = !1, ignoreDisabledContext: i = !1, groupOrder: a, icon: o = null, rightIcon: s = null, label: c = "", loading: l = !1, name: u, pill: f = !1, round: p = !1, small: m = !1, styles: h = "", width: g = "", title: _ = "", type: v = Aa.BUTTON, onClick: y = () => {}, error: b, warning: S, testId: T, tooltip: E, inverted: D = !1, component: O = "button", url: k, tabIndex: A, ...j }, M) => {
|
|
707
707
|
let N = d(W), P = (() => {
|
|
708
708
|
if (n) switch (n) {
|
|
709
709
|
case Pi.DANGER:
|
|
710
|
-
case Pi.RED: return
|
|
710
|
+
case Pi.RED: return Da.red;
|
|
711
711
|
case Pi.SUCCESS:
|
|
712
|
-
case Pi.GREEN: return
|
|
713
|
-
case Pi.MUTED: return
|
|
714
|
-
default: return
|
|
712
|
+
case Pi.GREEN: return Da.green;
|
|
713
|
+
case Pi.MUTED: return Da.muted;
|
|
714
|
+
default: return Da.orange;
|
|
715
715
|
}
|
|
716
716
|
return "";
|
|
717
717
|
})(), F = (() => {
|
|
718
718
|
if (a) switch (a) {
|
|
719
|
-
case H.FIRST: return
|
|
720
|
-
case H.LAST: return
|
|
721
|
-
default: return
|
|
719
|
+
case H.FIRST: return Da.groupOrderFirst;
|
|
720
|
+
case H.LAST: return Da.groupOrderLast;
|
|
721
|
+
default: return Da.groupOrderMiddle;
|
|
722
722
|
}
|
|
723
723
|
return "";
|
|
724
724
|
})(), I = r || N && !i;
|
|
725
|
-
return /* @__PURE__ */ C(
|
|
725
|
+
return /* @__PURE__ */ C(ja, {
|
|
726
726
|
tooltip: E,
|
|
727
727
|
children: /* @__PURE__ */ w(O, {
|
|
728
728
|
ref: M,
|
|
729
|
-
type: v ===
|
|
730
|
-
className: x(
|
|
729
|
+
type: v === Aa.SUBMIT ? Aa.SUBMIT : Aa.BUTTON,
|
|
730
|
+
className: x(Da.button, e ? Da.active : "", t ? Da.basic : "", P, I ? Da.disabled : "", (o || l) && !c ? Da.iconOnly : "", D ? Da.inverted : "", F, f ? Da.pill : "", p ? Da.round : "", m ? Da.small : "", h),
|
|
731
731
|
disabled: I,
|
|
732
732
|
name: u == null ? "" : u,
|
|
733
733
|
onClick: y,
|
|
@@ -741,12 +741,12 @@ var Ni = /* @__PURE__ */ function(e) {
|
|
|
741
741
|
...j,
|
|
742
742
|
children: [
|
|
743
743
|
o && /* @__PURE__ */ C("span", {
|
|
744
|
-
className:
|
|
744
|
+
className: Da.icon,
|
|
745
745
|
children: /* @__PURE__ */ C(G, { icon: o })
|
|
746
746
|
}),
|
|
747
747
|
l && /* @__PURE__ */ C("span", {
|
|
748
|
-
className:
|
|
749
|
-
children: /* @__PURE__ */ C(
|
|
748
|
+
className: Da.icon,
|
|
749
|
+
children: /* @__PURE__ */ C(ka, {
|
|
750
750
|
small: !m,
|
|
751
751
|
tiny: m,
|
|
752
752
|
dark: !n && !t,
|
|
@@ -755,20 +755,20 @@ var Ni = /* @__PURE__ */ function(e) {
|
|
|
755
755
|
}),
|
|
756
756
|
c,
|
|
757
757
|
s && /* @__PURE__ */ C("span", {
|
|
758
|
-
className:
|
|
758
|
+
className: Da.rightIcon,
|
|
759
759
|
children: /* @__PURE__ */ C(G, { icon: s })
|
|
760
760
|
})
|
|
761
761
|
]
|
|
762
762
|
})
|
|
763
763
|
});
|
|
764
764
|
});
|
|
765
|
-
|
|
766
|
-
var
|
|
765
|
+
q.displayName = "Button";
|
|
766
|
+
var Ma = {
|
|
767
767
|
actions: "_actions_1t7vd_1",
|
|
768
768
|
childComponent: "_childComponent_1t7vd_11",
|
|
769
769
|
actionComponentContainer: "_actionComponentContainer_1t7vd_14",
|
|
770
770
|
active: "_active_1t7vd_36"
|
|
771
|
-
},
|
|
771
|
+
}, Na = {
|
|
772
772
|
"top-start": "top start",
|
|
773
773
|
"top-center": "top",
|
|
774
774
|
"top-end": "top end",
|
|
@@ -782,28 +782,28 @@ var Na = {
|
|
|
782
782
|
"left-center": "left",
|
|
783
783
|
"left-end": "left bottom",
|
|
784
784
|
center: "bottom"
|
|
785
|
-
},
|
|
785
|
+
}, Pa = (e = "top-center") => {
|
|
786
786
|
var t;
|
|
787
|
-
return (t =
|
|
788
|
-
},
|
|
787
|
+
return (t = Na[e]) == null ? "top" : t;
|
|
788
|
+
}, Fa = () => {
|
|
789
789
|
if (typeof document > "u") return;
|
|
790
790
|
let e = document.getElementById(sa);
|
|
791
791
|
return e || (e = document.createElement("div"), e.id = sa, document.body.appendChild(e)), e;
|
|
792
|
-
},
|
|
792
|
+
}, Ia = (e) => {
|
|
793
793
|
if (e) {
|
|
794
794
|
let t = ua(e);
|
|
795
795
|
if (t) return t;
|
|
796
796
|
}
|
|
797
|
-
return
|
|
798
|
-
},
|
|
797
|
+
return Fa();
|
|
798
|
+
}, La = /* @__PURE__ */ new Set([
|
|
799
799
|
"button",
|
|
800
800
|
"a",
|
|
801
801
|
"input",
|
|
802
802
|
"select",
|
|
803
803
|
"textarea"
|
|
804
|
-
]),
|
|
804
|
+
]), Ra = (e) => s(e) && typeof e.type == "string" && La.has(e.type), za = (e) => s(e) && typeof e.type == "string", Ba = (e) => typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === Symbol.for("react.forward_ref"), Va = (e) => Ra(e) || za(e) || s(e) && Ba(e.type), Ha = (e) => e.props.disabled === !0 || e.props["aria-disabled"] === !0 || e.props["aria-disabled"] === "true", Ua = (e) => t.toArray(e).some(s), Wa = /* @__PURE__ */ function(e) {
|
|
805
805
|
return e.PRESS = "press", e.FOCUS = "focus", e;
|
|
806
|
-
}({}),
|
|
806
|
+
}({}), Ga = ({ children: e, behavior: n, isDisabled: i = !1, testId: a, triggerRef: o, enhanceChild: c, fallbackStyle: l = { display: "inline-flex" }, fallbackProps: u, attachToForwardRef: d = !1, safeComponents: f = [] }) => {
|
|
807
807
|
let p = t.toArray(e).filter(s), m = p.length === 1 ? p[0] : null, h = o;
|
|
808
808
|
if (p.length === 0) return null;
|
|
809
809
|
let g = (e) => n === "press" ? /* @__PURE__ */ C(Un, {
|
|
@@ -815,14 +815,14 @@ var Na = {
|
|
|
815
815
|
children: e
|
|
816
816
|
});
|
|
817
817
|
if (m) {
|
|
818
|
-
let e = typeof m.type == "string", t = f.includes(m.type), o = d &&
|
|
818
|
+
let e = typeof m.type == "string", t = f.includes(m.type), o = d && Va(m), s = e || t || o, l = n === "focus" && Ha(m);
|
|
819
819
|
if (s && !l) {
|
|
820
820
|
let t = {}, { role: o, tabIndex: s } = m.props;
|
|
821
821
|
if (a) {
|
|
822
822
|
var _;
|
|
823
823
|
((_ = m.props["data-testid"]) == null ? m.props.testId : _) || (e ? t["data-testid"] = a : t.testId = a);
|
|
824
824
|
}
|
|
825
|
-
n === "press" && !
|
|
825
|
+
n === "press" && !Ra(m) && o == null && (t.role = "button", t.tabIndex = s == null ? i ? -1 : 0 : s);
|
|
826
826
|
let l = r(m, t);
|
|
827
827
|
return c && (l = c(l)), g(l);
|
|
828
828
|
}
|
|
@@ -836,20 +836,20 @@ var Na = {
|
|
|
836
836
|
...u,
|
|
837
837
|
children: e
|
|
838
838
|
}));
|
|
839
|
-
},
|
|
840
|
-
let s = r ? void 0 :
|
|
839
|
+
}, Ka = ({ children: e, placement: t = "bottom-start", portalTriggerRef: n, isNested: r = !1, offset: i = 0, className: a, ...o }) => {
|
|
840
|
+
let s = r ? void 0 : Ia(n == null ? void 0 : n.current);
|
|
841
841
|
return /* @__PURE__ */ C(Hn, {
|
|
842
842
|
className: a,
|
|
843
|
-
placement:
|
|
843
|
+
placement: Pa(t),
|
|
844
844
|
offset: r ? 0 : i,
|
|
845
845
|
UNSTABLE_portalContainer: s,
|
|
846
846
|
...o,
|
|
847
847
|
children: e
|
|
848
848
|
});
|
|
849
|
-
},
|
|
849
|
+
}, qa = (e) => {
|
|
850
850
|
let { sections: t } = e;
|
|
851
851
|
return !s(t) && (!Array.isArray(t) || t.every((e) => un(e)));
|
|
852
|
-
},
|
|
852
|
+
}, J = {
|
|
853
853
|
layer: "_layer_14ect_1",
|
|
854
854
|
nested: "_nested_14ect_14",
|
|
855
855
|
fileInput: "_fileInput_14ect_17",
|
|
@@ -876,18 +876,18 @@ var Na = {
|
|
|
876
876
|
menuPopover: "_menuPopover_14ect_172",
|
|
877
877
|
menuPopoverNested: "_menuPopoverNested_14ect_194",
|
|
878
878
|
menuItem: "_menuItem_14ect_197"
|
|
879
|
-
},
|
|
879
|
+
}, Ja = ({ label: e, onClick: t, icon: n, testId: r }) => /* @__PURE__ */ w("div", {
|
|
880
880
|
"data-testid": r,
|
|
881
881
|
children: [e, !!n && /* @__PURE__ */ C("span", {
|
|
882
|
-
className: x(
|
|
882
|
+
className: x(J.headingIcon, t ? J.clickable : ""),
|
|
883
883
|
onClick: t,
|
|
884
884
|
children: /* @__PURE__ */ C(G, { icon: n })
|
|
885
885
|
})]
|
|
886
|
-
}),
|
|
886
|
+
}), Ya = () => /* @__PURE__ */ C(An, { className: J.divider }), Xa = (e) => typeof e == "string" || typeof e == "number" ? String(e) : "", Za = ({ actions: e, label: t, url: n, onClick: r, description: i, icon: a, selected: o, closeOnOptionClick: s = !0, close: c, disabled: l, inline: u, title: d, upload: f, uploadType: p, onChange: m, testId: h }) => {
|
|
887
887
|
let g = v(null);
|
|
888
888
|
return /* @__PURE__ */ w(On, {
|
|
889
|
-
className: x(
|
|
890
|
-
textValue:
|
|
889
|
+
className: x(J.menuItem, J.option, u && J.inline, o && J.selected),
|
|
890
|
+
textValue: Xa(t),
|
|
891
891
|
href: n,
|
|
892
892
|
isDisabled: l,
|
|
893
893
|
shouldCloseOnSelect: !f && s,
|
|
@@ -907,17 +907,17 @@ var Na = {
|
|
|
907
907
|
"data-testid": h,
|
|
908
908
|
children: [
|
|
909
909
|
a ? /* @__PURE__ */ C("span", {
|
|
910
|
-
className:
|
|
910
|
+
className: J.icon,
|
|
911
911
|
children: /* @__PURE__ */ C(G, { icon: a })
|
|
912
912
|
}) : null,
|
|
913
913
|
/* @__PURE__ */ w("div", {
|
|
914
|
-
className:
|
|
914
|
+
className: J.optionContent,
|
|
915
915
|
children: [
|
|
916
916
|
f && /* @__PURE__ */ C("input", {
|
|
917
917
|
ref: g,
|
|
918
918
|
type: "file",
|
|
919
919
|
accept: p,
|
|
920
|
-
className:
|
|
920
|
+
className: J.fileInput,
|
|
921
921
|
onClick: (e) => e.stopPropagation(),
|
|
922
922
|
onChange: (e) => {
|
|
923
923
|
var t;
|
|
@@ -937,51 +937,51 @@ var Na = {
|
|
|
937
937
|
}
|
|
938
938
|
}),
|
|
939
939
|
/* @__PURE__ */ C("span", {
|
|
940
|
-
className:
|
|
941
|
-
title: d ||
|
|
940
|
+
className: J.label,
|
|
941
|
+
title: d || Xa(t),
|
|
942
942
|
children: t
|
|
943
943
|
}),
|
|
944
944
|
i ? /* @__PURE__ */ C("span", {
|
|
945
|
-
className:
|
|
945
|
+
className: J.description,
|
|
946
946
|
children: i
|
|
947
947
|
}) : null
|
|
948
948
|
]
|
|
949
949
|
}),
|
|
950
950
|
/* @__PURE__ */ w("div", {
|
|
951
|
-
className:
|
|
951
|
+
className: J.right,
|
|
952
952
|
children: [o && /* @__PURE__ */ C("span", {
|
|
953
|
-
className:
|
|
953
|
+
className: J.check,
|
|
954
954
|
children: /* @__PURE__ */ C(G, { icon: U.CHECK })
|
|
955
955
|
}), !!(e != null && e.length) && /* @__PURE__ */ C("div", {
|
|
956
|
-
className:
|
|
956
|
+
className: J.actions,
|
|
957
957
|
onClick: (e) => e.stopPropagation(),
|
|
958
|
-
children: /* @__PURE__ */ C(
|
|
958
|
+
children: /* @__PURE__ */ C(yo, { actions: e })
|
|
959
959
|
})]
|
|
960
960
|
})
|
|
961
961
|
]
|
|
962
962
|
});
|
|
963
|
-
},
|
|
963
|
+
}, Qa = /* @__PURE__ */ function(e) {
|
|
964
964
|
return e.HEADING = "Heading", e.DIVIDER = "Divider", e.OPTION = "Option", e.MENU = "Menu", e;
|
|
965
|
-
}({}),
|
|
965
|
+
}({}), $a = /* @__PURE__ */ function(e) {
|
|
966
966
|
return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
|
|
967
|
-
}({}),
|
|
967
|
+
}({}), eo = ({ section: e, closeOnOptionClick: t, close: n }) => {
|
|
968
968
|
let r = d(W);
|
|
969
969
|
switch (e.type) {
|
|
970
|
-
case
|
|
970
|
+
case Qa.HEADING:
|
|
971
971
|
var i;
|
|
972
972
|
return /* @__PURE__ */ C(En, {
|
|
973
|
-
className:
|
|
974
|
-
children: /* @__PURE__ */ C(
|
|
973
|
+
className: J.heading,
|
|
974
|
+
children: /* @__PURE__ */ C(Ja, {
|
|
975
975
|
label: (i = e == null ? void 0 : e.label) == null ? "" : i,
|
|
976
976
|
onClick: e.onClick,
|
|
977
977
|
icon: e.icon,
|
|
978
978
|
testId: e.testId
|
|
979
979
|
})
|
|
980
980
|
});
|
|
981
|
-
case
|
|
982
|
-
case
|
|
981
|
+
case Qa.DIVIDER: return /* @__PURE__ */ C(Ya, {});
|
|
982
|
+
case Qa.OPTION:
|
|
983
983
|
var a;
|
|
984
|
-
return /* @__PURE__ */ C(
|
|
984
|
+
return /* @__PURE__ */ C(Za, {
|
|
985
985
|
actions: e == null ? void 0 : e.actions,
|
|
986
986
|
label: (a = e == null ? void 0 : e.label) == null ? "" : a,
|
|
987
987
|
url: e == null ? void 0 : e.url,
|
|
@@ -1001,45 +1001,45 @@ var Na = {
|
|
|
1001
1001
|
});
|
|
1002
1002
|
default: return null;
|
|
1003
1003
|
}
|
|
1004
|
-
},
|
|
1004
|
+
}, to = o(({ label: e, title: t, carat: n, disabled: r, isOpen: i, selected: a, className: o, ...s }, c) => {
|
|
1005
1005
|
let l;
|
|
1006
1006
|
return t ? l = t : (typeof e == "string" || typeof e == "number") && (l = String(e)), /* @__PURE__ */ w("div", {
|
|
1007
1007
|
ref: c,
|
|
1008
|
-
className: x(
|
|
1008
|
+
className: x(J.trigger, r ? J.disabled : null, i ? J.active : null, a ? J == null ? void 0 : J.selected : null, o),
|
|
1009
1009
|
...s,
|
|
1010
1010
|
children: [/* @__PURE__ */ C("span", {
|
|
1011
|
-
className:
|
|
1011
|
+
className: J.label,
|
|
1012
1012
|
title: l,
|
|
1013
1013
|
children: e
|
|
1014
|
-
}), n && n ===
|
|
1015
|
-
className:
|
|
1014
|
+
}), n && n === $a.RIGHT ? /* @__PURE__ */ C("span", {
|
|
1015
|
+
className: J.arrow,
|
|
1016
1016
|
children: /* @__PURE__ */ C(G, { icon: U.CHEVRON_RIGHT })
|
|
1017
|
-
}) : n && n ===
|
|
1018
|
-
className:
|
|
1017
|
+
}) : n && n === $a.DOWN ? /* @__PURE__ */ C("span", {
|
|
1018
|
+
className: J.arrow,
|
|
1019
1019
|
children: /* @__PURE__ */ C(G, { icon: U.CHEVRON_DOWN })
|
|
1020
1020
|
}) : null]
|
|
1021
1021
|
});
|
|
1022
|
-
}),
|
|
1023
|
-
if (e.type ===
|
|
1022
|
+
}), no = (e) => typeof e == "string" || typeof e == "number" ? String(e) : "", ro = (e, t, { closeOnOptionClick: n, close: r, maxHeight: i, width: a }) => {
|
|
1023
|
+
if (e.type === Qa.MENU) {
|
|
1024
1024
|
var o, s, c, l, u, d, f, p, m, h, g;
|
|
1025
|
-
let _ = (o = e.menu) == null ? void 0 : o.sections, v = Array.isArray(_) && _.some((e) => e == null ? void 0 : e.selected), y =
|
|
1025
|
+
let _ = (o = e.menu) == null ? void 0 : o.sections, v = Array.isArray(_) && _.some((e) => e == null ? void 0 : e.selected), y = qa((s = e.menu) == null ? {} : s), b = ((c = e.menu) == null ? void 0 : c.placement) || "right-start", S = e.testId;
|
|
1026
1026
|
return /* @__PURE__ */ w(jn, { children: [/* @__PURE__ */ C(On, {
|
|
1027
|
-
className:
|
|
1028
|
-
textValue:
|
|
1027
|
+
className: J.menuItem,
|
|
1028
|
+
textValue: no((l = (u = e.menu) == null ? void 0 : u.label) == null ? e.label : l),
|
|
1029
1029
|
isDisabled: y,
|
|
1030
1030
|
"data-testid": S,
|
|
1031
|
-
children: /* @__PURE__ */ C(
|
|
1031
|
+
children: /* @__PURE__ */ C(to, {
|
|
1032
1032
|
label: (d = (f = (p = e.menu) == null ? void 0 : p.label) == null ? e.label : f) == null ? "" : d,
|
|
1033
1033
|
title: e.title,
|
|
1034
|
-
carat:
|
|
1034
|
+
carat: $a.RIGHT,
|
|
1035
1035
|
selected: v
|
|
1036
1036
|
})
|
|
1037
|
-
}), /* @__PURE__ */ C(
|
|
1038
|
-
className: x(
|
|
1037
|
+
}), /* @__PURE__ */ C(Ka, {
|
|
1038
|
+
className: x(J.menuPopover, J.menuPopoverNested),
|
|
1039
1039
|
placement: b,
|
|
1040
1040
|
isNested: !0,
|
|
1041
1041
|
"data-testid": (m = e.menu) == null ? void 0 : m.testId,
|
|
1042
|
-
children: /* @__PURE__ */ C(
|
|
1042
|
+
children: /* @__PURE__ */ C(io, {
|
|
1043
1043
|
sections: (h = (g = e.menu) == null ? void 0 : g.sections) == null ? [] : h,
|
|
1044
1044
|
isNested: !0,
|
|
1045
1045
|
width: a,
|
|
@@ -1050,12 +1050,12 @@ var Na = {
|
|
|
1050
1050
|
})
|
|
1051
1051
|
})] }, `${e.type}-${t}`);
|
|
1052
1052
|
}
|
|
1053
|
-
return /* @__PURE__ */ C(
|
|
1053
|
+
return /* @__PURE__ */ C(eo, {
|
|
1054
1054
|
section: e,
|
|
1055
1055
|
closeOnOptionClick: e.closeOnOptionClick,
|
|
1056
1056
|
close: r
|
|
1057
1057
|
}, `${e.type}-${t}`);
|
|
1058
|
-
},
|
|
1058
|
+
}, io = ({ sections: e, isNested: t = !1, width: n, closeOnOptionClick: r, close: i, maxHeight: a, showAllButton: o, testId: c }) => {
|
|
1059
1059
|
var l, u;
|
|
1060
1060
|
let [d, f] = y(!(o != null && o.visible));
|
|
1061
1061
|
if (s(e)) return /* @__PURE__ */ C(S, { children: e });
|
|
@@ -1064,7 +1064,7 @@ var Na = {
|
|
|
1064
1064
|
closeOnOptionClick: r,
|
|
1065
1065
|
visible: !0
|
|
1066
1066
|
}))) == null ? [] : l, h = p.length > 4 ? [{
|
|
1067
|
-
type:
|
|
1067
|
+
type: Qa.OPTION,
|
|
1068
1068
|
label: d ? (o == null ? void 0 : o.showLessTitle) || "Show less" : (o == null ? void 0 : o.showAllTitle) || "Show all",
|
|
1069
1069
|
onClick: () => f(!d),
|
|
1070
1070
|
visible: !0,
|
|
@@ -1078,7 +1078,7 @@ var Na = {
|
|
|
1078
1078
|
closeOnOptionClick: r
|
|
1079
1079
|
}));
|
|
1080
1080
|
return /* @__PURE__ */ C(Dn, {
|
|
1081
|
-
className: x(
|
|
1081
|
+
className: x(J.layer, t && J.nested),
|
|
1082
1082
|
style: {
|
|
1083
1083
|
maxWidth: n,
|
|
1084
1084
|
maxHeight: a
|
|
@@ -1086,29 +1086,29 @@ var Na = {
|
|
|
1086
1086
|
shouldCloseOnSelect: r,
|
|
1087
1087
|
autoFocus: t ? void 0 : "first",
|
|
1088
1088
|
"data-testid": c,
|
|
1089
|
-
children: g.map((e, t) =>
|
|
1089
|
+
children: g.map((e, t) => ro(e, t, {
|
|
1090
1090
|
closeOnOptionClick: e.closeOnOptionClick,
|
|
1091
1091
|
close: i,
|
|
1092
1092
|
maxHeight: a,
|
|
1093
1093
|
width: n
|
|
1094
1094
|
}))
|
|
1095
1095
|
});
|
|
1096
|
-
},
|
|
1096
|
+
}, ao = (e, t = !1) => ({ placement: e || (t ? "right-start" : "bottom-start") }), Y = (e) => vn(e) || hn(e) || s(e), oo = (e) => Array.isArray(e) ? "array" : typeof e, so = {
|
|
1097
1097
|
wrapper: "_wrapper_14vly_1",
|
|
1098
1098
|
badge: "_badge_14vly_5",
|
|
1099
1099
|
label: "_label_14vly_11",
|
|
1100
1100
|
small: "_small_14vly_23",
|
|
1101
1101
|
dot: "_dot_14vly_27",
|
|
1102
1102
|
hasChildren: "_hasChildren_14vly_33"
|
|
1103
|
-
},
|
|
1103
|
+
}, co = (e) => {
|
|
1104
1104
|
let t = e.substring(1), n = parseInt(t, 16), r = n >> 16 & 255, i = n >> 8 & 255, a = n >> 0 & 255;
|
|
1105
1105
|
return .2126 * r + .7152 * i + .0722 * a < 128;
|
|
1106
|
-
},
|
|
1107
|
-
let s = r !== null || i !== !1, c = n || (
|
|
1106
|
+
}, lo = ({ children: e, color: t = "", textColor: n = "", title: r = null, dot: i = !1, margin: a = null, small: o = !1 }) => {
|
|
1107
|
+
let s = r !== null || i !== !1, c = n || (co(t) ? "#fff" : "rgba(0, 0, 0, 0.6)");
|
|
1108
1108
|
return /* @__PURE__ */ w("div", {
|
|
1109
|
-
className:
|
|
1109
|
+
className: so.wrapper,
|
|
1110
1110
|
children: [s && /* @__PURE__ */ C("sup", {
|
|
1111
|
-
className: x(
|
|
1111
|
+
className: x(so.badge, r === null ? so.dot : so.label, o ? so.small : "", e ? so.hasChildren : ""),
|
|
1112
1112
|
style: {
|
|
1113
1113
|
background: t || void 0,
|
|
1114
1114
|
margin: a || void 0,
|
|
@@ -1117,12 +1117,12 @@ var Na = {
|
|
|
1117
1117
|
children: r
|
|
1118
1118
|
}), e]
|
|
1119
1119
|
});
|
|
1120
|
-
},
|
|
1120
|
+
}, uo = e.forwardRef(({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: s, error: c, warning: l, active: u, tabIndex: f, testId: p, ...m }, h) => {
|
|
1121
1121
|
let g = d(W), _ = e === Ni.DROP_DOWN_BUTTON;
|
|
1122
|
-
return /* @__PURE__ */ C(
|
|
1122
|
+
return /* @__PURE__ */ C(q, {
|
|
1123
1123
|
ref: h,
|
|
1124
1124
|
label: /* @__PURE__ */ C("span", {
|
|
1125
|
-
className:
|
|
1125
|
+
className: J.buttonLabel,
|
|
1126
1126
|
children: t
|
|
1127
1127
|
}),
|
|
1128
1128
|
colored: n,
|
|
@@ -1139,7 +1139,7 @@ var Na = {
|
|
|
1139
1139
|
testId: p,
|
|
1140
1140
|
...m
|
|
1141
1141
|
});
|
|
1142
|
-
}),
|
|
1142
|
+
}), fo = (...e) => (t) => {
|
|
1143
1143
|
e.forEach((e) => {
|
|
1144
1144
|
if (e) {
|
|
1145
1145
|
if (typeof e == "function") {
|
|
@@ -1149,13 +1149,13 @@ var Na = {
|
|
|
1149
1149
|
e.current = t;
|
|
1150
1150
|
}
|
|
1151
1151
|
});
|
|
1152
|
-
},
|
|
1153
|
-
if (s(e) &&
|
|
1152
|
+
}, po = o(({ component: e, disabled: t, active: n, testId: i, ...a }, o) => {
|
|
1153
|
+
if (s(e) && Va(e)) {
|
|
1154
1154
|
var c;
|
|
1155
1155
|
let s = e, l = (c = s.props["data-testid"]) == null ? s.props.testId : c, u = typeof s.type == "string", d = s.ref;
|
|
1156
1156
|
return r(s, {
|
|
1157
1157
|
...a,
|
|
1158
|
-
ref:
|
|
1158
|
+
ref: fo(o, d),
|
|
1159
1159
|
disabled: t || s.props.disabled,
|
|
1160
1160
|
...u ? null : { active: !!(s.props.active || n) },
|
|
1161
1161
|
...l ? null : u ? { "data-testid": i } : { testId: i }
|
|
@@ -1163,25 +1163,25 @@ var Na = {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
return /* @__PURE__ */ C("div", {
|
|
1165
1165
|
ref: o,
|
|
1166
|
-
className: x(
|
|
1166
|
+
className: x(J.component, t ? J.disabled : null),
|
|
1167
1167
|
"data-testid": i,
|
|
1168
1168
|
...a,
|
|
1169
1169
|
children: e
|
|
1170
1170
|
});
|
|
1171
|
-
}),
|
|
1171
|
+
}), mo = ({ tooltip: e, error: t, warning: n, children: r }) => !Y(e) && !Y(t) && !Y(n) ? /* @__PURE__ */ C(S, { children: r }) : /* @__PURE__ */ C(K, {
|
|
1172
1172
|
error: !!t,
|
|
1173
1173
|
warning: !!n,
|
|
1174
1174
|
text: e || t || n,
|
|
1175
1175
|
display: "inline-flex",
|
|
1176
1176
|
children: r
|
|
1177
|
-
}),
|
|
1177
|
+
}), ho = (e, { isNested: t, badgeTitle: n, badgeDot: r }) => !t && (n || r) ? /* @__PURE__ */ C(lo, {
|
|
1178
1178
|
title: n,
|
|
1179
1179
|
dot: r,
|
|
1180
1180
|
small: !r,
|
|
1181
1181
|
children: e
|
|
1182
|
-
}) : e,
|
|
1182
|
+
}) : e, go = e.forwardRef(({ active: e, disabled: t, loading: n, width: r, trigger: i, label: a, title: o, colored: s, small: c, isNested: l, component: u, groupOrder: d, isOpen: f, error: p, warning: m, testId: h, selected: g, tabIndex: _, ...v }, y) => {
|
|
1183
1183
|
let b = i === Ni.BUTTON || i === Ni.DROP_DOWN_BUTTON, x = i === Ni.COMPONENT;
|
|
1184
|
-
return b ? /* @__PURE__ */ C(
|
|
1184
|
+
return b ? /* @__PURE__ */ C(uo, {
|
|
1185
1185
|
ref: y,
|
|
1186
1186
|
trigger: i,
|
|
1187
1187
|
label: a == null ? "" : a,
|
|
@@ -1197,17 +1197,17 @@ var Na = {
|
|
|
1197
1197
|
tabIndex: _,
|
|
1198
1198
|
testId: h,
|
|
1199
1199
|
...v
|
|
1200
|
-
}) : i === Ni.TEXT ? /* @__PURE__ */ C(
|
|
1200
|
+
}) : i === Ni.TEXT ? /* @__PURE__ */ C(to, {
|
|
1201
1201
|
ref: y,
|
|
1202
1202
|
label: a == null ? "" : a,
|
|
1203
1203
|
title: o,
|
|
1204
1204
|
disabled: t,
|
|
1205
|
-
carat: l ?
|
|
1205
|
+
carat: l ? $a.RIGHT : $a.DOWN,
|
|
1206
1206
|
isOpen: f,
|
|
1207
1207
|
selected: g,
|
|
1208
1208
|
tabIndex: _,
|
|
1209
1209
|
...v
|
|
1210
|
-
}) : x ? /* @__PURE__ */ C(
|
|
1210
|
+
}) : x ? /* @__PURE__ */ C(po, {
|
|
1211
1211
|
ref: y,
|
|
1212
1212
|
component: u,
|
|
1213
1213
|
disabled: t,
|
|
@@ -1216,8 +1216,8 @@ var Na = {
|
|
|
1216
1216
|
tabIndex: _,
|
|
1217
1217
|
...v
|
|
1218
1218
|
}) : null;
|
|
1219
|
-
}),
|
|
1220
|
-
let T = d(W), E = v(null), [D, O] = y(!1), { label: k, title: A, trigger: j, colored: M, small: N, sections: P, component: F, placement: I, showAllButton: L } = e, R = ln(l) && pn(p), z = R ? l : D, B = n ||
|
|
1219
|
+
}), _o = ({ menu: e, width: t, disabled: n = !1, badgeTitle: r, badgeDot: i = !1, loading: a = !1, closeOnOptionClick: o = !0, maxHeight: s, testId: c, open: l, setOpen: p, tooltip: m, error: h, warning: g, tabIndex: _, active: b, groupOrder: x, offset: S = 0 }) => {
|
|
1220
|
+
let T = d(W), E = v(null), [D, O] = y(!1), { label: k, title: A, trigger: j, colored: M, small: N, sections: P, component: F, placement: I, showAllButton: L } = e, R = ln(l) && pn(p), z = R ? l : D, B = n || qa(e) || T, ee = u((e) => {
|
|
1221
1221
|
B && e || (R ? p(e) : O(e));
|
|
1222
1222
|
}, [
|
|
1223
1223
|
R,
|
|
@@ -1233,14 +1233,14 @@ var Na = {
|
|
|
1233
1233
|
z,
|
|
1234
1234
|
te
|
|
1235
1235
|
]);
|
|
1236
|
-
let ne =
|
|
1237
|
-
behavior:
|
|
1236
|
+
let ne = ao(I).placement, V = c ? `${c}-layer` : void 0, re = /* @__PURE__ */ C(Ga, {
|
|
1237
|
+
behavior: Wa.PRESS,
|
|
1238
1238
|
testId: c,
|
|
1239
1239
|
isDisabled: B,
|
|
1240
1240
|
triggerRef: E,
|
|
1241
|
-
safeComponents: [
|
|
1241
|
+
safeComponents: [q],
|
|
1242
1242
|
attachToForwardRef: !0,
|
|
1243
|
-
children: /* @__PURE__ */ C(
|
|
1243
|
+
children: /* @__PURE__ */ C(go, {
|
|
1244
1244
|
active: b,
|
|
1245
1245
|
disabled: B,
|
|
1246
1246
|
loading: a,
|
|
@@ -1264,21 +1264,21 @@ var Na = {
|
|
|
1264
1264
|
return /* @__PURE__ */ w(kn, {
|
|
1265
1265
|
isOpen: z,
|
|
1266
1266
|
onOpenChange: ee,
|
|
1267
|
-
children: [/* @__PURE__ */ C(
|
|
1267
|
+
children: [/* @__PURE__ */ C(mo, {
|
|
1268
1268
|
tooltip: m,
|
|
1269
1269
|
error: h,
|
|
1270
1270
|
warning: g,
|
|
1271
|
-
children:
|
|
1271
|
+
children: ho(re, {
|
|
1272
1272
|
badgeTitle: r,
|
|
1273
1273
|
badgeDot: i
|
|
1274
1274
|
})
|
|
1275
|
-
}), /* @__PURE__ */ C(
|
|
1276
|
-
className:
|
|
1275
|
+
}), /* @__PURE__ */ C(Ka, {
|
|
1276
|
+
className: J.menuPopover,
|
|
1277
1277
|
placement: ne,
|
|
1278
1278
|
portalTriggerRef: E,
|
|
1279
1279
|
offset: S,
|
|
1280
1280
|
"data-testid": e.testId,
|
|
1281
|
-
children: /* @__PURE__ */ C(
|
|
1281
|
+
children: /* @__PURE__ */ C(io, {
|
|
1282
1282
|
sections: P,
|
|
1283
1283
|
width: t,
|
|
1284
1284
|
closeOnOptionClick: o,
|
|
@@ -1289,8 +1289,8 @@ var Na = {
|
|
|
1289
1289
|
})
|
|
1290
1290
|
})]
|
|
1291
1291
|
});
|
|
1292
|
-
},
|
|
1293
|
-
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ C(
|
|
1292
|
+
}, vo = (e) => {
|
|
1293
|
+
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ C(q, {
|
|
1294
1294
|
colored: r ? !0 : Pi.MUTED,
|
|
1295
1295
|
basic: !r,
|
|
1296
1296
|
round: !0,
|
|
@@ -1318,25 +1318,25 @@ var Na = {
|
|
|
1318
1318
|
};
|
|
1319
1319
|
})
|
|
1320
1320
|
};
|
|
1321
|
-
return /* @__PURE__ */ C(
|
|
1321
|
+
return /* @__PURE__ */ C(_o, { menu: e });
|
|
1322
1322
|
}
|
|
1323
1323
|
return null;
|
|
1324
|
-
},
|
|
1324
|
+
}, yo = (t) => {
|
|
1325
1325
|
let n = d(W), { actions: r = [], closeLayer: i } = t;
|
|
1326
1326
|
return /* @__PURE__ */ C("div", {
|
|
1327
|
-
className: x(
|
|
1327
|
+
className: x(Ma.actions),
|
|
1328
1328
|
children: r.map((t, r) => {
|
|
1329
1329
|
if (!(t != null && t.hidden || !t || !Object.keys(t).length)) return t.childComponent && e.isValidElement(t.childComponent) ? /* @__PURE__ */ C("div", {
|
|
1330
1330
|
"data-testid": t.testId,
|
|
1331
|
-
className:
|
|
1331
|
+
className: Ma.childComponent,
|
|
1332
1332
|
children: t.childComponent
|
|
1333
|
-
}, r) : t.subActions ? /* @__PURE__ */ C(
|
|
1333
|
+
}, r) : t.subActions ? /* @__PURE__ */ C(vo, {
|
|
1334
1334
|
subActions: t.subActions,
|
|
1335
1335
|
primary: t.primary,
|
|
1336
1336
|
subMenuIcon: t.icon,
|
|
1337
1337
|
testId: t.testId,
|
|
1338
1338
|
tooltip: t.tooltip
|
|
1339
|
-
}, r) : /* @__PURE__ */ C(
|
|
1339
|
+
}, r) : /* @__PURE__ */ C(q, {
|
|
1340
1340
|
colored: t.primary ? !0 : "muted",
|
|
1341
1341
|
round: !0,
|
|
1342
1342
|
basic: !t.primary,
|
|
@@ -1352,7 +1352,7 @@ var Na = {
|
|
|
1352
1352
|
}, r);
|
|
1353
1353
|
})
|
|
1354
1354
|
});
|
|
1355
|
-
},
|
|
1355
|
+
}, bo = {
|
|
1356
1356
|
breadcrumb: "_breadcrumb_9y5ky_1",
|
|
1357
1357
|
small: "_small_9y5ky_10",
|
|
1358
1358
|
item: "_item_9y5ky_13",
|
|
@@ -1361,33 +1361,33 @@ var Na = {
|
|
|
1361
1361
|
disabled: "_disabled_9y5ky_34",
|
|
1362
1362
|
title: "_title_9y5ky_39",
|
|
1363
1363
|
separator: "_separator_9y5ky_46"
|
|
1364
|
-
},
|
|
1364
|
+
}, xo = /* @__PURE__ */ function(e) {
|
|
1365
1365
|
return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
|
|
1366
|
-
}({}),
|
|
1367
|
-
let l = d(W), u = e ===
|
|
1366
|
+
}({}), So = ({ type: e = xo.LABEL, label: t, url: n, onClick: r, active: i, disabled: a, element: o, title: c }) => {
|
|
1367
|
+
let l = d(W), u = e === xo.LINK && n !== void 0, f = e === xo.CUSTOM && s(o), p = !!(a || l), m = u || !!r || f;
|
|
1368
1368
|
return /* @__PURE__ */ w(Yn, {
|
|
1369
1369
|
...u ? { href: n } : {},
|
|
1370
1370
|
isDisabled: p || !!i || !m,
|
|
1371
1371
|
onPress: r,
|
|
1372
|
-
className: x(
|
|
1372
|
+
className: x(bo.labelContainer, i && bo.active, p && bo.disabled),
|
|
1373
1373
|
children: [c ? /* @__PURE__ */ C("span", {
|
|
1374
|
-
className:
|
|
1374
|
+
className: bo.title,
|
|
1375
1375
|
"aria-hidden": "true",
|
|
1376
1376
|
children: c
|
|
1377
1377
|
}) : null, f ? o : t]
|
|
1378
1378
|
});
|
|
1379
|
-
},
|
|
1379
|
+
}, Co = ({ links: e, small: t = !1 }) => {
|
|
1380
1380
|
let n = d(W);
|
|
1381
1381
|
return /* @__PURE__ */ C(Jn, {
|
|
1382
|
-
className: x(
|
|
1382
|
+
className: x(bo.breadcrumb, t && bo.small),
|
|
1383
1383
|
isDisabled: n,
|
|
1384
1384
|
"aria-label": "Breadcrumbs",
|
|
1385
1385
|
children: e.map((e, t) => {
|
|
1386
1386
|
let { type: n, label: r, url: i, onClick: a, active: o, disabled: s, element: c, title: l } = e;
|
|
1387
1387
|
return /* @__PURE__ */ C(qn, {
|
|
1388
1388
|
id: t,
|
|
1389
|
-
className:
|
|
1390
|
-
children: ({ isCurrent: e }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(
|
|
1389
|
+
className: bo.item,
|
|
1390
|
+
children: ({ isCurrent: e }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(So, {
|
|
1391
1391
|
type: n,
|
|
1392
1392
|
label: r,
|
|
1393
1393
|
url: i,
|
|
@@ -1397,17 +1397,17 @@ var Na = {
|
|
|
1397
1397
|
element: c,
|
|
1398
1398
|
title: l
|
|
1399
1399
|
}), !e && /* @__PURE__ */ C("span", {
|
|
1400
|
-
className:
|
|
1400
|
+
className: bo.separator,
|
|
1401
1401
|
"aria-hidden": "true",
|
|
1402
1402
|
children: "/"
|
|
1403
1403
|
})] })
|
|
1404
1404
|
}, t);
|
|
1405
1405
|
})
|
|
1406
1406
|
});
|
|
1407
|
-
},
|
|
1407
|
+
}, wo = {
|
|
1408
1408
|
label: "_label_iu2wi_1",
|
|
1409
1409
|
buttonGroup: "_buttonGroup_iu2wi_11"
|
|
1410
|
-
},
|
|
1410
|
+
}, To = (e) => {
|
|
1411
1411
|
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: s = void 0, disabled: c } = e, l = d(W), u = (e, t, n, r, a) => {
|
|
1412
1412
|
e.preventDefault(), e.stopPropagation(), !(c || a || l) && i(t, n, r);
|
|
1413
1413
|
}, f = (e, t) => t === "string" ? e : t === "object" ? e.label : t === "array" ? e[1] : null, p = (e, t) => {
|
|
@@ -1416,22 +1416,22 @@ var Na = {
|
|
|
1416
1416
|
}, m = (e, t, n) => t === "object" && "key" in e ? e.key : n, h = (e, t) => t === "object" && e.hidden, g = (e, t) => t === "object" ? e.icon : void 0, _ = (e, t, n) => e === "object" ? String(t) === String(o) : n === o;
|
|
1417
1417
|
return /* @__PURE__ */ C("div", { children: /* @__PURE__ */ w("div", { children: [(() => {
|
|
1418
1418
|
if (r) return /* @__PURE__ */ C("label", {
|
|
1419
|
-
className:
|
|
1419
|
+
className: wo.label,
|
|
1420
1420
|
children: r
|
|
1421
1421
|
});
|
|
1422
1422
|
})(), /* @__PURE__ */ C("div", {
|
|
1423
|
-
className:
|
|
1423
|
+
className: wo.buttonGroup,
|
|
1424
1424
|
"data-testid": s,
|
|
1425
1425
|
children: n.map((e, r) => {
|
|
1426
|
-
let i =
|
|
1427
|
-
return v ? null : /* @__PURE__ */ C(
|
|
1426
|
+
let i = oo(e), o = r === 0 ? H.FIRST : r === n.length - 1 ? H.LAST : H.MIDDLE, s = f(e, i), l = p(e, i), d = m(e, i, l), v = h(e, i), y = g(e, i), b = _(i, d, l), { error: x, maxTooltipWidth: S, testId: w, tooltip: T, warning: E } = e;
|
|
1427
|
+
return v ? null : /* @__PURE__ */ C(K, {
|
|
1428
1428
|
error: !!x,
|
|
1429
1429
|
warning: !!E,
|
|
1430
1430
|
text: T || x || E,
|
|
1431
1431
|
maxWidth: S,
|
|
1432
1432
|
display: "block",
|
|
1433
|
-
enabled: T &&
|
|
1434
|
-
children: /* @__PURE__ */ C(
|
|
1433
|
+
enabled: T && Y(T) || x && Y(x) || E && Y(E) || !1,
|
|
1434
|
+
children: /* @__PURE__ */ C(q, {
|
|
1435
1435
|
active: b,
|
|
1436
1436
|
basic: t,
|
|
1437
1437
|
disabled: c || e.disabled,
|
|
@@ -1447,7 +1447,7 @@ var Na = {
|
|
|
1447
1447
|
}, r);
|
|
1448
1448
|
})
|
|
1449
1449
|
})] }) });
|
|
1450
|
-
},
|
|
1450
|
+
}, Eo = {
|
|
1451
1451
|
card: "_card_ucdeu_1",
|
|
1452
1452
|
bordered: "_bordered_ucdeu_4",
|
|
1453
1453
|
raised: "_raised_ucdeu_10",
|
|
@@ -1455,22 +1455,22 @@ var Na = {
|
|
|
1455
1455
|
cardContentBorderTop: "_cardContentBorderTop_ucdeu_19",
|
|
1456
1456
|
padding: "_padding_ucdeu_22",
|
|
1457
1457
|
cardContent: "_cardContent_ucdeu_19"
|
|
1458
|
-
},
|
|
1459
|
-
className: x(
|
|
1458
|
+
}, Do = ({ bordered: e = !0, heading: t = null, children: n, margin: r = "0", padding: i = !0, raised: a = !1 }) => /* @__PURE__ */ w("div", {
|
|
1459
|
+
className: x(Eo.card, e ? Eo.bordered : "", a ? Eo.raised : ""),
|
|
1460
1460
|
style: { margin: r },
|
|
1461
1461
|
children: [t ? /* @__PURE__ */ C("div", {
|
|
1462
|
-
className: x(
|
|
1462
|
+
className: x(Eo.cardHeader),
|
|
1463
1463
|
children: t
|
|
1464
1464
|
}) : null, /* @__PURE__ */ C("div", {
|
|
1465
|
-
className: x(
|
|
1465
|
+
className: x(Eo.cardContent, t ? Eo.cardContentBorderTop : "", i ? Eo.padding : ""),
|
|
1466
1466
|
children: n
|
|
1467
1467
|
})]
|
|
1468
|
-
}),
|
|
1468
|
+
}), Oo = {
|
|
1469
1469
|
toggleBox: "_toggleBox_eamgh_1",
|
|
1470
1470
|
arrowIcon: "_arrowIcon_eamgh_27",
|
|
1471
1471
|
fullWidthStyleFix: "_fullWidthStyleFix_eamgh_43",
|
|
1472
1472
|
dismiss: "_dismiss_eamgh_48"
|
|
1473
|
-
},
|
|
1473
|
+
}, ko = ({ children: e, content: t, placement: i = "top-center", closeOnOutsideClick: a = !0, fullWidth: o = !1, showCloseButton: c = !1, testId: l, disabled: p = !1, isOpen: m, onToggle: h, toggleOnTriggerClick: g = !0, isNonModal: _ = !1, restoreTriggerFocusOnClose: b = !0 }) => {
|
|
1474
1474
|
let T = d(W), E = v(null), [D, O] = y(!1), k = p || T, A = m !== void 0, j = A ? m : D, M = u((e) => {
|
|
1475
1475
|
k || (A ? h == null || h(e) : O(e));
|
|
1476
1476
|
}, [
|
|
@@ -1488,16 +1488,16 @@ var Na = {
|
|
|
1488
1488
|
k,
|
|
1489
1489
|
j,
|
|
1490
1490
|
P
|
|
1491
|
-
]), !
|
|
1492
|
-
let F = s(t) && typeof t.type != "string" && t.type !== n ? r(t, { close: P }) : t, I = /* @__PURE__ */ C(
|
|
1493
|
-
behavior:
|
|
1491
|
+
]), !Ua(e)) return null;
|
|
1492
|
+
let F = s(t) && typeof t.type != "string" && t.type !== n ? r(t, { close: P }) : t, I = /* @__PURE__ */ C(Ga, {
|
|
1493
|
+
behavior: Wa.PRESS,
|
|
1494
1494
|
testId: l,
|
|
1495
1495
|
isDisabled: k,
|
|
1496
1496
|
triggerRef: E,
|
|
1497
|
-
safeComponents: [
|
|
1497
|
+
safeComponents: [q],
|
|
1498
1498
|
children: e
|
|
1499
|
-
}), L = /* @__PURE__ */ w(
|
|
1500
|
-
className: x(
|
|
1499
|
+
}), L = /* @__PURE__ */ w(Ka, {
|
|
1500
|
+
className: x(Oo.toggleBox, o && Oo.fullWidthStyleFix),
|
|
1501
1501
|
placement: i,
|
|
1502
1502
|
portalTriggerRef: E,
|
|
1503
1503
|
offset: 6,
|
|
@@ -1510,8 +1510,8 @@ var Na = {
|
|
|
1510
1510
|
isKeyboardDismissDisabled: !a,
|
|
1511
1511
|
"data-testid": l ? `${l}-layer` : void 0,
|
|
1512
1512
|
children: [/* @__PURE__ */ w("div", { children: [F, c && /* @__PURE__ */ C("div", {
|
|
1513
|
-
className:
|
|
1514
|
-
children: /* @__PURE__ */ C(
|
|
1513
|
+
className: Oo.dismiss,
|
|
1514
|
+
children: /* @__PURE__ */ C(q, {
|
|
1515
1515
|
small: !0,
|
|
1516
1516
|
round: !0,
|
|
1517
1517
|
onClick: P,
|
|
@@ -1522,7 +1522,7 @@ var Na = {
|
|
|
1522
1522
|
height: "12",
|
|
1523
1523
|
viewBox: "0 0 12 12",
|
|
1524
1524
|
"aria-hidden": "true",
|
|
1525
|
-
className:
|
|
1525
|
+
className: Oo.arrowIcon,
|
|
1526
1526
|
children: /* @__PURE__ */ C("path", { d: "M0 0 L6 6 L12 0" })
|
|
1527
1527
|
}) })]
|
|
1528
1528
|
});
|
|
@@ -1531,21 +1531,21 @@ var Na = {
|
|
|
1531
1531
|
onOpenChange: N,
|
|
1532
1532
|
children: [I, L]
|
|
1533
1533
|
}) : /* @__PURE__ */ w(S, { children: [I, L] });
|
|
1534
|
-
},
|
|
1534
|
+
}, Ao = { grid: "_grid_obkz4_1" }, jo = (e) => typeof e == "boolean" ? e ? "var(--padding)" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", Mo = (e) => typeof e == "number" ? `${e}px` : e || "initial", No = ({ rows: e = "initial", columns: t = "initial", columnsTablet: n = null, columnsMobile: r = null, gap: i = !1, height: a = "initial", children: o }) => {
|
|
1535
1535
|
let s = {
|
|
1536
|
-
"--grid-gap":
|
|
1537
|
-
"--grid-rows":
|
|
1538
|
-
"--grid-columns":
|
|
1539
|
-
"--grid-height":
|
|
1540
|
-
...n != null && { "--grid-columns-tablet":
|
|
1541
|
-
...r != null && { "--grid-columns-mobile":
|
|
1536
|
+
"--grid-gap": jo(i),
|
|
1537
|
+
"--grid-rows": Mo(e),
|
|
1538
|
+
"--grid-columns": Mo(t),
|
|
1539
|
+
"--grid-height": Mo(a),
|
|
1540
|
+
...n != null && { "--grid-columns-tablet": Mo(n) },
|
|
1541
|
+
...r != null && { "--grid-columns-mobile": Mo(r) }
|
|
1542
1542
|
};
|
|
1543
1543
|
return /* @__PURE__ */ C("div", {
|
|
1544
|
-
className:
|
|
1544
|
+
className: Ao.grid,
|
|
1545
1545
|
style: s,
|
|
1546
1546
|
children: o
|
|
1547
1547
|
});
|
|
1548
|
-
},
|
|
1548
|
+
}, Po = {
|
|
1549
1549
|
colorInput: "_colorInput_1ieww_1",
|
|
1550
1550
|
swatch: "_swatch_1ieww_5",
|
|
1551
1551
|
transparent: "_transparent_1ieww_12",
|
|
@@ -1558,79 +1558,79 @@ var Na = {
|
|
|
1558
1558
|
colorThumb: "_colorThumb_1ieww_42",
|
|
1559
1559
|
hueSliderTrack: "_hueSliderTrack_1ieww_51",
|
|
1560
1560
|
hueSlider: "_hueSlider_1ieww_51"
|
|
1561
|
-
},
|
|
1562
|
-
className:
|
|
1561
|
+
}, Fo = ({ disabled: e }) => /* @__PURE__ */ w("div", {
|
|
1562
|
+
className: Po.areaPicker,
|
|
1563
1563
|
children: [/* @__PURE__ */ C(Mn, {
|
|
1564
|
-
className:
|
|
1564
|
+
className: Po.colorArea,
|
|
1565
1565
|
colorSpace: "hsb",
|
|
1566
1566
|
xChannel: "saturation",
|
|
1567
1567
|
yChannel: "brightness",
|
|
1568
1568
|
isDisabled: e,
|
|
1569
|
-
children: /* @__PURE__ */ C(Rn, { className:
|
|
1569
|
+
children: /* @__PURE__ */ C(Rn, { className: Po.colorThumb })
|
|
1570
1570
|
}), /* @__PURE__ */ C(Pn, {
|
|
1571
|
-
className:
|
|
1571
|
+
className: Po.hueSlider,
|
|
1572
1572
|
colorSpace: "hsb",
|
|
1573
1573
|
channel: "hue",
|
|
1574
1574
|
isDisabled: e,
|
|
1575
1575
|
children: /* @__PURE__ */ C(Gn, {
|
|
1576
|
-
className:
|
|
1577
|
-
children: /* @__PURE__ */ C(Rn, { className:
|
|
1576
|
+
className: Po.hueSliderTrack,
|
|
1577
|
+
children: /* @__PURE__ */ C(Rn, { className: Po.colorThumb })
|
|
1578
1578
|
})
|
|
1579
1579
|
})]
|
|
1580
1580
|
});
|
|
1581
1581
|
//#endregion
|
|
1582
1582
|
//#region src/components/color-input/color-input-utils.ts
|
|
1583
1583
|
Zn([Qn]);
|
|
1584
|
-
var
|
|
1584
|
+
var Io = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Lo = (e) => {
|
|
1585
1585
|
try {
|
|
1586
1586
|
return $n(e);
|
|
1587
1587
|
} catch {
|
|
1588
1588
|
return;
|
|
1589
1589
|
}
|
|
1590
|
-
},
|
|
1590
|
+
}, Ro = (e) => {
|
|
1591
1591
|
let t = Xn(e);
|
|
1592
1592
|
if (t.isValid()) return $n(t.toHex());
|
|
1593
|
-
let n =
|
|
1593
|
+
let n = Io(e);
|
|
1594
1594
|
if (n === e) return;
|
|
1595
1595
|
let r = Xn(n);
|
|
1596
1596
|
return r.isValid() ? $n(r.toHex()) : void 0;
|
|
1597
|
-
},
|
|
1597
|
+
}, zo = (e) => {
|
|
1598
1598
|
var t;
|
|
1599
|
-
if (e) return (t =
|
|
1600
|
-
},
|
|
1599
|
+
if (e) return (t = Lo(e)) == null ? Ro(e) : t;
|
|
1600
|
+
}, Bo = (e) => {
|
|
1601
1601
|
var t;
|
|
1602
|
-
return ((t =
|
|
1603
|
-
},
|
|
1602
|
+
return ((t = zo(e)) == null ? $n("#808080") : t).toFormat("hsb");
|
|
1603
|
+
}, Vo = (e) => e.toString("hex"), Ho = (e) => {
|
|
1604
1604
|
let t = e.toFormat("hsb");
|
|
1605
1605
|
return t.getChannelValue("saturation") === 0 || t.getChannelValue("brightness") === 0;
|
|
1606
|
-
},
|
|
1606
|
+
}, Uo = (e, t) => {
|
|
1607
1607
|
if (e.toString("hex") !== t.toString("hex")) return !1;
|
|
1608
1608
|
let n = e.toFormat("hsb"), r = t.toFormat("hsb");
|
|
1609
|
-
return !
|
|
1610
|
-
},
|
|
1611
|
-
if (
|
|
1609
|
+
return !Ho(n) || n.getChannelValue("hue") === r.getChannelValue("hue");
|
|
1610
|
+
}, Wo = (e, t) => {
|
|
1611
|
+
if (Uo(e, t)) return t.toFormat("hsb");
|
|
1612
1612
|
let n = e.toFormat("hsb"), r = t.toFormat("hsb");
|
|
1613
|
-
return n.toString("hex") === r.toString("hex") &&
|
|
1614
|
-
},
|
|
1613
|
+
return n.toString("hex") === r.toString("hex") && Ho(n) ? n.withChannelValue("hue", r.getChannelValue("hue")) : n;
|
|
1614
|
+
}, Go = ({ columns: e, options: t, onSwatchSelect: n, selectedValue: r }) => /* @__PURE__ */ C(In, {
|
|
1615
1615
|
layout: "grid",
|
|
1616
|
-
className:
|
|
1616
|
+
className: Po.swatchPicker,
|
|
1617
1617
|
style: e ? {
|
|
1618
1618
|
display: "grid",
|
|
1619
1619
|
gridTemplateColumns: `repeat(${e}, auto)`
|
|
1620
1620
|
} : void 0,
|
|
1621
1621
|
children: t.map((e) => {
|
|
1622
|
-
let t =
|
|
1622
|
+
let t = zo(e.value);
|
|
1623
1623
|
if (!t) return null;
|
|
1624
|
-
let i = r &&
|
|
1624
|
+
let i = r && Uo(t, r);
|
|
1625
1625
|
return /* @__PURE__ */ C(Ln, {
|
|
1626
1626
|
color: t,
|
|
1627
1627
|
"aria-label": e.label,
|
|
1628
1628
|
onPress: () => n == null ? void 0 : n(t),
|
|
1629
|
-
children: /* @__PURE__ */ C(
|
|
1629
|
+
children: /* @__PURE__ */ C(q, {
|
|
1630
1630
|
round: !0,
|
|
1631
1631
|
basic: !0,
|
|
1632
1632
|
icon: /* @__PURE__ */ C(Fn, {
|
|
1633
|
-
className:
|
|
1633
|
+
className: Po.swatch,
|
|
1634
1634
|
color: t,
|
|
1635
1635
|
colorName: e.label
|
|
1636
1636
|
}),
|
|
@@ -1639,32 +1639,32 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1639
1639
|
})
|
|
1640
1640
|
}, e.value);
|
|
1641
1641
|
})
|
|
1642
|
-
}),
|
|
1643
|
-
let { locale: u } = Kn(), [d, p] = y(!1), [m, h] = y(() =>
|
|
1642
|
+
}), Ko = 100, qo = ({ adjustColorsInDarkMode: e = !1, children: t, columns: n, disabled: r, hideAreaPicker: i = !1, onChange: a, onConfirm: o, options: s = [], testId: c, value: l }) => {
|
|
1643
|
+
let { locale: u } = Kn(), [d, p] = y(!1), [m, h] = y(() => Bo(l)), _ = zo(l), v = !Uo(Bo(l), m), b = g(() => an((e) => a == null ? void 0 : a(e), Ko), [a]);
|
|
1644
1644
|
f(() => () => b.cancel(), [b]), f(() => {
|
|
1645
1645
|
if (d) return;
|
|
1646
|
-
let e =
|
|
1647
|
-
h((t) =>
|
|
1646
|
+
let e = Bo(l);
|
|
1647
|
+
h((t) => Wo(e, t));
|
|
1648
1648
|
}, [l, d]);
|
|
1649
1649
|
let S = (e) => {
|
|
1650
1650
|
let t = e.toFormat("hsb");
|
|
1651
|
-
h(t), !o && b(
|
|
1651
|
+
h(t), !o && b(Vo(t));
|
|
1652
1652
|
}, T = () => {
|
|
1653
|
-
b.cancel(),
|
|
1653
|
+
b.cancel(), Uo(Bo(l), m) || a == null || a(Vo(m));
|
|
1654
1654
|
}, E = (e) => {
|
|
1655
|
-
e ? h((e) =>
|
|
1655
|
+
e ? h((e) => Wo(Bo(l), e)) : o || T(), p(e);
|
|
1656
1656
|
}, D = (e) => {
|
|
1657
1657
|
let t = e.toFormat("hsb");
|
|
1658
|
-
b.cancel(), h(t), !o && (a == null || a(
|
|
1658
|
+
b.cancel(), h(t), !o && (a == null || a(Vo(t)), p(!1));
|
|
1659
1659
|
}, O = (e) => {
|
|
1660
|
-
e.stopPropagation(), b.cancel(), o == null || o(
|
|
1660
|
+
e.stopPropagation(), b.cancel(), o == null || o(Vo(m)), E(!1);
|
|
1661
1661
|
}, k = (e) => {
|
|
1662
1662
|
e.stopPropagation(), E(!1);
|
|
1663
1663
|
}, A = g(() => {
|
|
1664
1664
|
var e;
|
|
1665
1665
|
let t = (e = s.find((e) => {
|
|
1666
|
-
let t =
|
|
1667
|
-
return t &&
|
|
1666
|
+
let t = zo(e.value);
|
|
1667
|
+
return t && Uo(t, m);
|
|
1668
1668
|
})) == null ? void 0 : e.label;
|
|
1669
1669
|
if (t) return t;
|
|
1670
1670
|
let n = m.getColorName(u).split(" ").pop();
|
|
@@ -1673,43 +1673,43 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1673
1673
|
s,
|
|
1674
1674
|
m,
|
|
1675
1675
|
u
|
|
1676
|
-
]), j = e ?
|
|
1676
|
+
]), j = e ? Po.adjustColorsInDarkMode : void 0, M = typeof t == "function" ? t({
|
|
1677
1677
|
isOpen: d,
|
|
1678
1678
|
colorName: A,
|
|
1679
1679
|
valueColor: _
|
|
1680
1680
|
}) : t;
|
|
1681
1681
|
return /* @__PURE__ */ C("div", {
|
|
1682
|
-
className: x(
|
|
1682
|
+
className: x(Po.colorInput, j),
|
|
1683
1683
|
children: /* @__PURE__ */ C(Nn, {
|
|
1684
1684
|
value: m,
|
|
1685
1685
|
onChange: S,
|
|
1686
|
-
children: /* @__PURE__ */ C(
|
|
1686
|
+
children: /* @__PURE__ */ C(ko, {
|
|
1687
1687
|
placement: "bottom-start",
|
|
1688
1688
|
isOpen: d,
|
|
1689
1689
|
onToggle: E,
|
|
1690
1690
|
disabled: r,
|
|
1691
1691
|
testId: c,
|
|
1692
1692
|
content: /* @__PURE__ */ w("div", {
|
|
1693
|
-
className: x(
|
|
1693
|
+
className: x(Po.popoverContent, j),
|
|
1694
1694
|
children: [
|
|
1695
|
-
!i && /* @__PURE__ */ C(
|
|
1696
|
-
s.length > 0 && /* @__PURE__ */ C(
|
|
1695
|
+
!i && /* @__PURE__ */ C(Fo, { disabled: r }),
|
|
1696
|
+
s.length > 0 && /* @__PURE__ */ C(Go, {
|
|
1697
1697
|
columns: n,
|
|
1698
1698
|
options: s,
|
|
1699
1699
|
onSwatchSelect: D,
|
|
1700
1700
|
selectedValue: m
|
|
1701
1701
|
}),
|
|
1702
|
-
o && /* @__PURE__ */ w(
|
|
1702
|
+
o && /* @__PURE__ */ w(No, {
|
|
1703
1703
|
columns: "1fr 1fr",
|
|
1704
1704
|
gap: "var(--padding-sm)",
|
|
1705
|
-
children: [/* @__PURE__ */ C(
|
|
1705
|
+
children: [/* @__PURE__ */ C(q, {
|
|
1706
1706
|
small: !0,
|
|
1707
1707
|
icon: "check",
|
|
1708
1708
|
disabled: !v,
|
|
1709
1709
|
onClick: O,
|
|
1710
1710
|
testId: c ? `${c}-confirm` : void 0,
|
|
1711
1711
|
width: "100%"
|
|
1712
|
-
}), /* @__PURE__ */ C(
|
|
1712
|
+
}), /* @__PURE__ */ C(q, {
|
|
1713
1713
|
small: !0,
|
|
1714
1714
|
icon: "times",
|
|
1715
1715
|
onClick: k,
|
|
@@ -1723,7 +1723,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1723
1723
|
})
|
|
1724
1724
|
})
|
|
1725
1725
|
});
|
|
1726
|
-
},
|
|
1726
|
+
}, Jo = ({ adjustColorsInDarkMode: e, columns: t, disabled: n, hideAreaPicker: r = !1, onChange: i, onConfirm: a, options: o = [], small: s, testId: c, value: l }) => /* @__PURE__ */ C(qo, {
|
|
1727
1727
|
adjustColorsInDarkMode: e,
|
|
1728
1728
|
columns: t,
|
|
1729
1729
|
disabled: n,
|
|
@@ -1733,7 +1733,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1733
1733
|
options: o,
|
|
1734
1734
|
testId: c,
|
|
1735
1735
|
value: l,
|
|
1736
|
-
children: ({ isOpen: e, colorName: t, valueColor: r }) => /* @__PURE__ */ C(
|
|
1736
|
+
children: ({ isOpen: e, colorName: t, valueColor: r }) => /* @__PURE__ */ C(q, {
|
|
1737
1737
|
round: !0,
|
|
1738
1738
|
disabled: n,
|
|
1739
1739
|
basic: !0,
|
|
@@ -1741,14 +1741,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1741
1741
|
active: e,
|
|
1742
1742
|
tooltip: r ? t : void 0,
|
|
1743
1743
|
icon: r ? /* @__PURE__ */ C(Fn, {
|
|
1744
|
-
className: x(
|
|
1744
|
+
className: x(Po.swatch, s && Po.small),
|
|
1745
1745
|
color: r
|
|
1746
1746
|
}) : /* @__PURE__ */ C("span", {
|
|
1747
|
-
className: x(
|
|
1747
|
+
className: x(Po.swatch, Po.transparent, s && Po.small),
|
|
1748
1748
|
"aria-hidden": !0
|
|
1749
1749
|
})
|
|
1750
1750
|
})
|
|
1751
|
-
}),
|
|
1751
|
+
}), Yo = {
|
|
1752
1752
|
inputInTable: "_inputInTable_qtkou_1",
|
|
1753
1753
|
inputHover: "_inputHover_qtkou_13",
|
|
1754
1754
|
inputFocus: "_inputFocus_qtkou_18",
|
|
@@ -1761,15 +1761,15 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1761
1761
|
noScrollbar: "_noScrollbar_qtkou_98",
|
|
1762
1762
|
inner: "_inner_qtkou_108",
|
|
1763
1763
|
innerFlexbox: "_innerFlexbox_qtkou_115"
|
|
1764
|
-
},
|
|
1764
|
+
}, Xo = (e) => {
|
|
1765
1765
|
if (typeof e == "string") return e;
|
|
1766
1766
|
if (typeof e == "number") return `${e}px`;
|
|
1767
|
-
},
|
|
1767
|
+
}, Zo = (e) => {
|
|
1768
1768
|
if (e === !0) return "1px solid var(--color-border)";
|
|
1769
1769
|
if (typeof e == "string") return e;
|
|
1770
|
-
},
|
|
1770
|
+
}, Qo = (e) => e === !0 ? "var(--padding)" : e === !1 ? "0" : e, $o = ({ 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 }) => {
|
|
1771
1771
|
var m, h, g;
|
|
1772
|
-
let _ =
|
|
1772
|
+
let _ = Xo(u), v = Xo(f), y = Xo(d), b = Zo(t), S = Zo(n), w = Qo(o), T = {
|
|
1773
1773
|
"--column-width": _ || "auto",
|
|
1774
1774
|
"--column-width-tablet": (m = v == null ? _ : v) == null ? "auto" : m,
|
|
1775
1775
|
"--column-width-mobile": (h = (g = y == null ? v : y) == null ? _ : g) == null ? "auto" : h,
|
|
@@ -1782,20 +1782,20 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1782
1782
|
padding: l ? `0 calc(${l} / 2)` : 0
|
|
1783
1783
|
};
|
|
1784
1784
|
return /* @__PURE__ */ C("div", {
|
|
1785
|
-
className: x(
|
|
1785
|
+
className: x(Yo.column, !c && Yo.noScrollbar),
|
|
1786
1786
|
style: T,
|
|
1787
1787
|
children: /* @__PURE__ */ C("div", {
|
|
1788
|
-
className: x(
|
|
1788
|
+
className: x(Yo.inner, a && !s && Yo.innerFlexbox),
|
|
1789
1789
|
style: { padding: w },
|
|
1790
1790
|
"data-testid": p,
|
|
1791
1791
|
children: r
|
|
1792
1792
|
})
|
|
1793
1793
|
});
|
|
1794
|
-
},
|
|
1794
|
+
}, es = {
|
|
1795
1795
|
divider: "_divider_2bfzh_1",
|
|
1796
1796
|
alignLeft: "_alignLeft_2bfzh_12",
|
|
1797
1797
|
alignRight: "_alignRight_2bfzh_15"
|
|
1798
|
-
},
|
|
1798
|
+
}, ts = {
|
|
1799
1799
|
bold: "_bold_11ofj_1",
|
|
1800
1800
|
center: "_center_11ofj_4",
|
|
1801
1801
|
muted: "_muted_11ofj_7",
|
|
@@ -1805,35 +1805,35 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1805
1805
|
error: "_error_11ofj_19",
|
|
1806
1806
|
small: "_small_11ofj_22",
|
|
1807
1807
|
link: "_link_11ofj_25"
|
|
1808
|
-
},
|
|
1809
|
-
className: x(t &&
|
|
1808
|
+
}, ns = ({ 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__ */ C("span", {
|
|
1809
|
+
className: x(t && ts.bold, n && ts.center, r && ts.error, i && ts.faint, a && ts.link, o && ts.muted, s && ts.clickable, c && ts.small, l && ts.success, u && ts.warning),
|
|
1810
1810
|
onClick: s,
|
|
1811
1811
|
children: e
|
|
1812
|
-
}),
|
|
1812
|
+
}), rs = (e) => {
|
|
1813
1813
|
switch (e) {
|
|
1814
|
-
case Fi.LEFT: return
|
|
1815
|
-
case Fi.RIGHT: return
|
|
1814
|
+
case Fi.LEFT: return es.alignLeft;
|
|
1815
|
+
case Fi.RIGHT: return es.alignRight;
|
|
1816
1816
|
default: return "";
|
|
1817
1817
|
}
|
|
1818
|
-
},
|
|
1819
|
-
className: `${
|
|
1818
|
+
}, is = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = Fi.CENTER }) => /* @__PURE__ */ C("div", {
|
|
1819
|
+
className: `${es.divider} ${rs(r)}`,
|
|
1820
1820
|
style: {
|
|
1821
1821
|
marginTop: t,
|
|
1822
1822
|
marginBottom: t,
|
|
1823
1823
|
"--color": n
|
|
1824
1824
|
},
|
|
1825
|
-
children: typeof e == "string" ? /* @__PURE__ */ C(
|
|
1825
|
+
children: typeof e == "string" ? /* @__PURE__ */ C(ns, {
|
|
1826
1826
|
muted: !0,
|
|
1827
1827
|
children: e
|
|
1828
1828
|
}) : e
|
|
1829
|
-
}),
|
|
1829
|
+
}), as = {
|
|
1830
1830
|
heading: "_heading_vy5xr_1",
|
|
1831
1831
|
top: "_top_vy5xr_11",
|
|
1832
1832
|
icons: "_icons_vy5xr_21"
|
|
1833
|
-
},
|
|
1833
|
+
}, os = {
|
|
1834
1834
|
1: "h1",
|
|
1835
1835
|
2: "h2"
|
|
1836
|
-
},
|
|
1836
|
+
}, ss = o(({ children: e, helpText: t, onClick: n, onClickHelp: r, onIconClick: i, icon: o, libraryIcon: s, marginBottom: c, top: l = !1, testId: u, slot: d, className: f, style: p, ...m }, h) => {
|
|
1837
1837
|
let g = l ? 1 : 2, _ = !!t || !!r;
|
|
1838
1838
|
return /* @__PURE__ */ C(rr, {
|
|
1839
1839
|
slot: d,
|
|
@@ -1843,8 +1843,8 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1843
1843
|
let y = {
|
|
1844
1844
|
...m,
|
|
1845
1845
|
...d,
|
|
1846
|
-
ref:
|
|
1847
|
-
className: x(
|
|
1846
|
+
ref: fo(h, d.ref),
|
|
1847
|
+
className: x(as.heading, l ? as.top : "", f, d.className),
|
|
1848
1848
|
style: {
|
|
1849
1849
|
marginBottom: c,
|
|
1850
1850
|
...p,
|
|
@@ -1853,18 +1853,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1853
1853
|
onClick: n == null ? d.onClick : n,
|
|
1854
1854
|
"data-testid": u
|
|
1855
1855
|
};
|
|
1856
|
-
return a(
|
|
1857
|
-
className:
|
|
1856
|
+
return a(os[g], y, e, /* @__PURE__ */ w("span", {
|
|
1857
|
+
className: as.icons,
|
|
1858
1858
|
children: [
|
|
1859
|
-
o && /* @__PURE__ */ C(
|
|
1859
|
+
o && /* @__PURE__ */ C(xa, {
|
|
1860
1860
|
onClick: i,
|
|
1861
1861
|
icon: o
|
|
1862
1862
|
}),
|
|
1863
|
-
_ && /* @__PURE__ */ C(
|
|
1863
|
+
_ && /* @__PURE__ */ C(xa, {
|
|
1864
1864
|
text: t,
|
|
1865
1865
|
onClick: r
|
|
1866
1866
|
}),
|
|
1867
|
-
s && /* @__PURE__ */ C(
|
|
1867
|
+
s && /* @__PURE__ */ C(xa, {
|
|
1868
1868
|
text: (v = s == null ? void 0 : s.tooltip) == null ? "" : v,
|
|
1869
1869
|
onClick: s.onClick,
|
|
1870
1870
|
icon: U.LIBRARY
|
|
@@ -1873,7 +1873,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1873
1873
|
}, "icons"));
|
|
1874
1874
|
}
|
|
1875
1875
|
});
|
|
1876
|
-
}),
|
|
1876
|
+
}), cs = {
|
|
1877
1877
|
dialog: "_dialog_64i57_1",
|
|
1878
1878
|
inline: "_inline_64i57_19",
|
|
1879
1879
|
scroll: "_scroll_64i57_22",
|
|
@@ -1882,14 +1882,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1882
1882
|
subheading: "_subheading_64i57_39",
|
|
1883
1883
|
content: "_content_64i57_42",
|
|
1884
1884
|
footer: "_footer_64i57_51"
|
|
1885
|
-
},
|
|
1885
|
+
}, ls = (e) => cn(e) ? e.map((e, t) => /* @__PURE__ */ w(n, { children: [
|
|
1886
1886
|
e,
|
|
1887
1887
|
" ",
|
|
1888
1888
|
/* @__PURE__ */ C("br", {})
|
|
1889
|
-
] }, t)) : e,
|
|
1889
|
+
] }, t)) : e, us = ({ dialog: e }) => {
|
|
1890
1890
|
let { heading: t, subheading: n, content: r, contentPadding: i = "var(--padding)", footer: a, scroll: o, width: s, height: c, onClose: l, testId: u } = e, d = t != null && t !== "";
|
|
1891
1891
|
return /* @__PURE__ */ w(er, {
|
|
1892
|
-
className: x(
|
|
1892
|
+
className: x(cs.dialog, s ? cs.inline : null, o ? cs.scroll : null),
|
|
1893
1893
|
style: {
|
|
1894
1894
|
width: s,
|
|
1895
1895
|
height: c
|
|
@@ -1898,19 +1898,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1898
1898
|
"data-testid": u == null ? null : u,
|
|
1899
1899
|
children: [
|
|
1900
1900
|
/* @__PURE__ */ w("div", {
|
|
1901
|
-
className:
|
|
1902
|
-
children: [/* @__PURE__ */ w("div", { children: [d ? /* @__PURE__ */ C(
|
|
1901
|
+
className: cs.header,
|
|
1902
|
+
children: [/* @__PURE__ */ w("div", { children: [d ? /* @__PURE__ */ C(ss, {
|
|
1903
1903
|
slot: "title",
|
|
1904
1904
|
top: !0,
|
|
1905
1905
|
marginBottom: 0,
|
|
1906
1906
|
testId: u && `${u}-heading`,
|
|
1907
1907
|
children: t
|
|
1908
1908
|
}) : null, n ? /* @__PURE__ */ C("div", {
|
|
1909
|
-
className:
|
|
1909
|
+
className: cs.subheading,
|
|
1910
1910
|
children: n
|
|
1911
1911
|
}) : null] }), l ? /* @__PURE__ */ C("div", {
|
|
1912
|
-
className:
|
|
1913
|
-
children: /* @__PURE__ */ C(
|
|
1912
|
+
className: cs.dismiss,
|
|
1913
|
+
children: /* @__PURE__ */ C(q, {
|
|
1914
1914
|
icon: U.CLOSE,
|
|
1915
1915
|
round: !0,
|
|
1916
1916
|
basic: !0,
|
|
@@ -1924,18 +1924,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1924
1924
|
}),
|
|
1925
1925
|
/* @__PURE__ */ C("div", {
|
|
1926
1926
|
"data-testid": u && `${u}-content`,
|
|
1927
|
-
className:
|
|
1927
|
+
className: cs.content,
|
|
1928
1928
|
style: { padding: i },
|
|
1929
|
-
children:
|
|
1929
|
+
children: ls(r)
|
|
1930
1930
|
}),
|
|
1931
1931
|
a && /* @__PURE__ */ C("div", {
|
|
1932
1932
|
"data-testid": u && `${u}-footer`,
|
|
1933
|
-
className:
|
|
1933
|
+
className: cs.footer,
|
|
1934
1934
|
children: a
|
|
1935
1935
|
})
|
|
1936
1936
|
]
|
|
1937
1937
|
});
|
|
1938
|
-
},
|
|
1938
|
+
}, ds = {
|
|
1939
1939
|
inputInTable: "_inputInTable_hly0v_1",
|
|
1940
1940
|
inputHover: "_inputHover_hly0v_13",
|
|
1941
1941
|
inputFocus: "_inputFocus_hly0v_18",
|
|
@@ -1962,19 +1962,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1962
1962
|
disabled: "_disabled_hly0v_228",
|
|
1963
1963
|
tabsContent: "_tabsContent_hly0v_235",
|
|
1964
1964
|
resizeHandle: "_resizeHandle_hly0v_241"
|
|
1965
|
-
},
|
|
1965
|
+
}, fs = ({ badge: e, children: t }) => e ? /* @__PURE__ */ C(lo, {
|
|
1966
1966
|
small: !0,
|
|
1967
1967
|
margin: 4,
|
|
1968
1968
|
title: e.toString(),
|
|
1969
1969
|
children: t
|
|
1970
|
-
}) : /* @__PURE__ */ C(S, { children: t }),
|
|
1971
|
-
className:
|
|
1970
|
+
}) : /* @__PURE__ */ C(S, { children: t }), ps = ({ tabs: e, activeTab: t, open: n, background: r, handleTabClick: i, width: a, testId: o }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C("div", {
|
|
1971
|
+
className: ds.tabs,
|
|
1972
1972
|
children: e.map((e, a) => mn(e) || un(e) ? null : /* @__PURE__ */ C("div", {
|
|
1973
|
-
className: x(
|
|
1973
|
+
className: x(ds.tab, t === a && n ? ds.active : "", e.disabled ? ds.disabled : ""),
|
|
1974
1974
|
style: { background: r },
|
|
1975
1975
|
onClick: e.disabled ? void 0 : () => i(a),
|
|
1976
1976
|
"data-testid": o && `${o}-icon-${a}`,
|
|
1977
|
-
children: /* @__PURE__ */ C(
|
|
1977
|
+
children: /* @__PURE__ */ C(fs, {
|
|
1978
1978
|
badge: e.badge,
|
|
1979
1979
|
children: e.icon
|
|
1980
1980
|
})
|
|
@@ -1987,21 +1987,21 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
1987
1987
|
width: typeof a == "number" ? `${a}px` : a,
|
|
1988
1988
|
display: i ? "block" : "none"
|
|
1989
1989
|
},
|
|
1990
|
-
className:
|
|
1990
|
+
className: ds.tabsContent,
|
|
1991
1991
|
"data-testid": o && `${o}-content-${r}`,
|
|
1992
1992
|
children: i && n && e.content
|
|
1993
1993
|
}, r);
|
|
1994
|
-
})] }),
|
|
1994
|
+
})] }), ms = o((e, t) => {
|
|
1995
1995
|
let { handleAxis: n, ...r } = e;
|
|
1996
1996
|
return /* @__PURE__ */ C("div", {
|
|
1997
1997
|
ref: t,
|
|
1998
|
-
className:
|
|
1998
|
+
className: ds.resizeHandle,
|
|
1999
1999
|
...r,
|
|
2000
2000
|
children: /* @__PURE__ */ C(G, { icon: U.DRAG })
|
|
2001
2001
|
});
|
|
2002
|
-
}),
|
|
2002
|
+
}), hs = ir, gs = ({ children: e = null, width: t = 400, right: n = !1, onResize: r, setOpen: i, maxOpenWidth: a }) => {
|
|
2003
2003
|
let [o, s] = y(!1), c = a == null ? window.innerWidth / 2 : a;
|
|
2004
|
-
return r ? /* @__PURE__ */ C(
|
|
2004
|
+
return r ? /* @__PURE__ */ C(hs, {
|
|
2005
2005
|
width: Cn(t),
|
|
2006
2006
|
height: 100,
|
|
2007
2007
|
minConstraints: [35, Infinity],
|
|
@@ -2009,10 +2009,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2009
2009
|
onResize: (e, { size: t }) => {
|
|
2010
2010
|
r && r(t.width);
|
|
2011
2011
|
},
|
|
2012
|
-
handle: /* @__PURE__ */ C(
|
|
2012
|
+
handle: /* @__PURE__ */ C(ms, {}),
|
|
2013
2013
|
resizeHandles: n ? ["w"] : ["e"],
|
|
2014
2014
|
axis: "x",
|
|
2015
|
-
className: o ?
|
|
2015
|
+
className: o ? ds.isResizing : "",
|
|
2016
2016
|
onResizeStart: () => {
|
|
2017
2017
|
i && i(!0), r && r(t), s(!0);
|
|
2018
2018
|
},
|
|
@@ -2021,27 +2021,27 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2021
2021
|
},
|
|
2022
2022
|
children: e
|
|
2023
2023
|
}) : /* @__PURE__ */ C(S, { children: e });
|
|
2024
|
-
},
|
|
2024
|
+
}, _s = ({ background: e = "var(--color-background-raised)", fixed: t = !1, open: n = !1, setOpen: r, right: i = !1, width: a = 400, closedWidth: o = 0, shadow: c = !1, top: l = 0, button: u = null, buttonAnimate: d = !0, buttonPosition: f = Ii.BOTTOM, border: p = !1, children: m = null, tabs: h, defaultTabIndex: g = 0, activeTab: _, setActiveTab: v, testId: b, onResize: S, getActiveTab: T, onClose: E, onOpen: D, maxOpenWidth: O }) => {
|
|
2025
2025
|
let k = u === !0, A = !k && s(u), [j, M] = r ? [n, r] : k || h ? y(n) : [n, () => {}], [N, P] = y(g), F = r ? n : j, I = r || M, L = v === void 0 ? N : _, R = v || P, z = Array.isArray(a) ? a[L || 0] : a, B = F ? z : h ? 35 : o;
|
|
2026
|
-
return /* @__PURE__ */ C(
|
|
2026
|
+
return /* @__PURE__ */ C(gs, {
|
|
2027
2027
|
width: B,
|
|
2028
2028
|
onResize: S,
|
|
2029
2029
|
setOpen: I,
|
|
2030
2030
|
right: i,
|
|
2031
2031
|
maxOpenWidth: O,
|
|
2032
2032
|
children: /* @__PURE__ */ w("div", {
|
|
2033
|
-
className: x(
|
|
2033
|
+
className: x(ds.drawer, c ? ds.shadow : "", t ? ds.fixed : ds.inline, i ? ds.right : ds.left),
|
|
2034
2034
|
style: { top: l },
|
|
2035
2035
|
"data-testid": b,
|
|
2036
2036
|
children: [/* @__PURE__ */ C("div", {
|
|
2037
|
-
className: x(
|
|
2037
|
+
className: x(ds.drawerContent, p && ds.border),
|
|
2038
2038
|
style: {
|
|
2039
2039
|
background: e,
|
|
2040
2040
|
borderColor: typeof p == "string" ? p : void 0,
|
|
2041
2041
|
width: B
|
|
2042
2042
|
},
|
|
2043
2043
|
"data-testid": b ? `${b}-content` : void 0,
|
|
2044
|
-
children: h ? /* @__PURE__ */ C(
|
|
2044
|
+
children: h ? /* @__PURE__ */ C(ps, {
|
|
2045
2045
|
width: z,
|
|
2046
2046
|
testId: b,
|
|
2047
2047
|
tabs: h,
|
|
@@ -2066,8 +2066,8 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2066
2066
|
children: m
|
|
2067
2067
|
})
|
|
2068
2068
|
}), u && /* @__PURE__ */ C("span", {
|
|
2069
|
-
className: x(
|
|
2070
|
-
children: A ? u : /* @__PURE__ */ C(
|
|
2069
|
+
className: x(ds.toggleButton, j && (k || A && d) ? ds.toggleButtonOpen : "", f === "top" ? ds.top : ds.bottom),
|
|
2070
|
+
children: A ? u : /* @__PURE__ */ C(q, {
|
|
2071
2071
|
onClick: I ? () => I(!F) : void 0,
|
|
2072
2072
|
round: !0,
|
|
2073
2073
|
icon: i ? U.CHEVRON_RIGHT : U.CHEVRON_LEFT,
|
|
@@ -2076,20 +2076,20 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2076
2076
|
})]
|
|
2077
2077
|
})
|
|
2078
2078
|
});
|
|
2079
|
-
},
|
|
2079
|
+
}, vs = { inputGroup: "_inputGroup_biuoa_1" }, ys = (e) => s(e) && typeof e.type == "string", bs = ({ children: t, small: r = !1, width: i = "100%" }) => {
|
|
2080
2080
|
let a = Array.isArray(t) ? t.filter((e) => s(e)) : [t], o = a.map((t, i) => {
|
|
2081
|
-
let o =
|
|
2081
|
+
let o = ys(t), { groupOrder: s } = o ? { groupOrder: null } : t.props, c = a.length, l = i === 0, u = i === c - 1, d = s || (!c || c === 1 ? null : l ? H.FIRST : u ? H.LAST : H.MIDDLE);
|
|
2082
2082
|
return o ? t : t.type === n ? /* @__PURE__ */ C(n, { children: t }, i) : /* @__PURE__ */ C(n, { children: e.cloneElement(t, {
|
|
2083
2083
|
groupOrder: d,
|
|
2084
2084
|
small: r
|
|
2085
2085
|
}) }, i);
|
|
2086
2086
|
});
|
|
2087
2087
|
return /* @__PURE__ */ C("div", {
|
|
2088
|
-
className: x(
|
|
2088
|
+
className: x(vs.inputGroup),
|
|
2089
2089
|
style: { width: i },
|
|
2090
2090
|
children: o
|
|
2091
2091
|
});
|
|
2092
|
-
},
|
|
2092
|
+
}, xs = {
|
|
2093
2093
|
inputInTable: "_inputInTable_o2gwb_1",
|
|
2094
2094
|
inputHover: "_inputHover_o2gwb_13",
|
|
2095
2095
|
inputFocus: "_inputFocus_o2gwb_18",
|
|
@@ -2107,27 +2107,27 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2107
2107
|
groupOrderMiddle: "_groupOrderMiddle_o2gwb_181",
|
|
2108
2108
|
groupOrderLast: "_groupOrderLast_o2gwb_185",
|
|
2109
2109
|
icon: "_icon_o2gwb_190"
|
|
2110
|
-
},
|
|
2110
|
+
}, Ss = o(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a = bn, placeholder: o = "", value: s = "", icon: c, onKeyPress: l = () => {}, onFocus: u = () => {}, onBlur: f = () => {}, onPaste: p = () => {}, onKeyDown: m = () => {}, selectOnFocus: h = !0, name: g = void 0, type: _ = "text", tabIndex: v = 0, disabled: y = !1, right: b = !1, warning: S = null, groupOrder: T = null, maxTooltipWidth: E = void 0, testId: D = void 0, size: O = null }, k) => {
|
|
2111
2111
|
let A = d(W), j = (() => {
|
|
2112
2112
|
if (T) switch (T) {
|
|
2113
|
-
case H.FIRST: return
|
|
2114
|
-
case H.LAST: return
|
|
2115
|
-
default: return
|
|
2113
|
+
case H.FIRST: return xs.groupOrderFirst;
|
|
2114
|
+
case H.LAST: return xs.groupOrderLast;
|
|
2115
|
+
default: return xs.groupOrderMiddle;
|
|
2116
2116
|
}
|
|
2117
2117
|
return "";
|
|
2118
2118
|
})(), M = r || (O ? "auto" : "100%");
|
|
2119
2119
|
return /* @__PURE__ */ C("div", {
|
|
2120
2120
|
style: { width: M },
|
|
2121
|
-
className: x(j,
|
|
2122
|
-
children: /* @__PURE__ */ w(
|
|
2121
|
+
className: x(j, xs.wrapper),
|
|
2122
|
+
children: /* @__PURE__ */ w(K, {
|
|
2123
2123
|
error: !!e,
|
|
2124
2124
|
warning: !!S,
|
|
2125
2125
|
text: t || e || S,
|
|
2126
|
-
enabled: t &&
|
|
2126
|
+
enabled: t && Y(t) || e && Y(e) || S && Y(S) || !1,
|
|
2127
2127
|
maxWidth: E,
|
|
2128
2128
|
display: "block",
|
|
2129
2129
|
children: [c && /* @__PURE__ */ C("span", {
|
|
2130
|
-
className:
|
|
2130
|
+
className: xs.icon,
|
|
2131
2131
|
children: /* @__PURE__ */ C(G, { icon: c })
|
|
2132
2132
|
}), /* @__PURE__ */ C("input", {
|
|
2133
2133
|
ref: k,
|
|
@@ -2149,7 +2149,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2149
2149
|
tabIndex: v,
|
|
2150
2150
|
autoComplete: "off",
|
|
2151
2151
|
disabled: y || A,
|
|
2152
|
-
className: x(
|
|
2152
|
+
className: x(xs.input, b ? xs.right : "", i ? xs.small : "", n ? xs.isInTable : ""),
|
|
2153
2153
|
style: { width: M },
|
|
2154
2154
|
"data-error": e || null,
|
|
2155
2155
|
"data-warning": S || null,
|
|
@@ -2157,9 +2157,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2157
2157
|
})]
|
|
2158
2158
|
})
|
|
2159
2159
|
});
|
|
2160
|
-
}),
|
|
2160
|
+
}), Cs = { fileInput: "_fileInput_1elar_1" }, ws = /* @__PURE__ */ function(e) {
|
|
2161
2161
|
return e.READ_AS_TEXT = "readAsText", e.READ_AS_ARRAY_BUFFER = "readAsArrayBuffer", e.READ_AS_DATA_URL = "readAsDataURL", e.READ_AS_BINARY_STRING = "readAsBinaryString", e;
|
|
2162
|
-
}({}),
|
|
2162
|
+
}({}), Ts = (e = new Blob(), t = ws.READ_AS_TEXT) => {
|
|
2163
2163
|
let n = new FileReader();
|
|
2164
2164
|
return new Promise((r, i) => {
|
|
2165
2165
|
if (t in n) n[t](e);
|
|
@@ -2171,7 +2171,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2171
2171
|
n.result === null ? i(/* @__PURE__ */ Error("File reading resulted in null")) : r(n.result);
|
|
2172
2172
|
}, n.onerror = (e) => i(e);
|
|
2173
2173
|
});
|
|
2174
|
-
},
|
|
2174
|
+
}, Es = (e, t) => {
|
|
2175
2175
|
let n;
|
|
2176
2176
|
if (!e) return null;
|
|
2177
2177
|
if (t) {
|
|
@@ -2179,19 +2179,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2179
2179
|
n = `Selected - ${(r = Object.keys(e)) == null ? void 0 : r.length} files`;
|
|
2180
2180
|
} else n = e == null ? void 0 : e.name;
|
|
2181
2181
|
return n || null;
|
|
2182
|
-
},
|
|
2183
|
-
let f = d(W), p = v(null), m =
|
|
2182
|
+
}, Ds = ({ label: e = "Select", loading: t = !1, placeholder: n = "No file selected", disabled: r = !1, file: i, accept: a, multi: o, name: s, width: c, onChange: l = bn, testId: u }) => {
|
|
2183
|
+
let f = d(W), p = v(null), m = Es(i, o);
|
|
2184
2184
|
return /* @__PURE__ */ w("div", {
|
|
2185
2185
|
onClick: () => {
|
|
2186
2186
|
var e;
|
|
2187
2187
|
r || f || (e = p.current) == null || e.click();
|
|
2188
2188
|
},
|
|
2189
2189
|
style: { width: c },
|
|
2190
|
-
children: [/* @__PURE__ */ w(
|
|
2190
|
+
children: [/* @__PURE__ */ w(bs, { children: [/* @__PURE__ */ C(Ss, {
|
|
2191
2191
|
value: m || "",
|
|
2192
2192
|
placeholder: n,
|
|
2193
2193
|
disabled: !0
|
|
2194
|
-
}), /* @__PURE__ */ C(
|
|
2194
|
+
}), /* @__PURE__ */ C(q, {
|
|
2195
2195
|
label: e,
|
|
2196
2196
|
loading: t,
|
|
2197
2197
|
disabled: t || r || f,
|
|
@@ -2199,7 +2199,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2199
2199
|
})] }), /* @__PURE__ */ C("input", {
|
|
2200
2200
|
name: s,
|
|
2201
2201
|
ref: p,
|
|
2202
|
-
className:
|
|
2202
|
+
className: Cs.fileInput,
|
|
2203
2203
|
type: "file",
|
|
2204
2204
|
accept: a,
|
|
2205
2205
|
multiple: o,
|
|
@@ -2217,13 +2217,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2217
2217
|
"data-testid": u
|
|
2218
2218
|
})]
|
|
2219
2219
|
});
|
|
2220
|
-
},
|
|
2220
|
+
}, Os = ({ height: e = "var(--padding)", width: t = null, flex: n = !1 }) => /* @__PURE__ */ C("div", { style: {
|
|
2221
2221
|
height: e,
|
|
2222
2222
|
width: t || "auto",
|
|
2223
2223
|
flexGrow: +!!n,
|
|
2224
2224
|
flexShrink: 0,
|
|
2225
2225
|
display: t ? "inline-block" : "block"
|
|
2226
|
-
} }),
|
|
2226
|
+
} }), ks = (e, t, n = [], r) => {
|
|
2227
2227
|
f(() => {
|
|
2228
2228
|
let n = (n) => {
|
|
2229
2229
|
var i, a, o;
|
|
@@ -2234,39 +2234,39 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2234
2234
|
window.removeEventListener("keydown", n);
|
|
2235
2235
|
};
|
|
2236
2236
|
}, n);
|
|
2237
|
-
},
|
|
2237
|
+
}, As = {
|
|
2238
2238
|
overlay: "_overlay_r9cw5_1",
|
|
2239
2239
|
container: "_container_r9cw5_24",
|
|
2240
2240
|
modal: "_modal_r9cw5_27",
|
|
2241
2241
|
contentContainer: "_contentContainer_r9cw5_41",
|
|
2242
2242
|
centered: "_centered_r9cw5_50",
|
|
2243
2243
|
newLine: "_newLine_r9cw5_54"
|
|
2244
|
-
},
|
|
2245
|
-
className: x(
|
|
2244
|
+
}, js = ({ children: e, width: t, centered: n }) => /* @__PURE__ */ C("div", {
|
|
2245
|
+
className: x(As.contentContainer, n ? As.centered : ""),
|
|
2246
2246
|
style: { maxWidth: t },
|
|
2247
2247
|
children: e
|
|
2248
|
-
}),
|
|
2248
|
+
}), Ms = ({ children: e, visible: t = !1, centered: n = !1, width: r = "100%", onEnter: i, onEscape: a }) => (ks("Enter", () => {
|
|
2249
2249
|
t && i && i();
|
|
2250
2250
|
}, [t, i]), /* @__PURE__ */ C(nr, {
|
|
2251
2251
|
isOpen: t,
|
|
2252
|
-
className:
|
|
2252
|
+
className: As.overlay,
|
|
2253
2253
|
shouldCloseOnInteractOutside: () => !1,
|
|
2254
2254
|
onOpenChange: (e) => {
|
|
2255
2255
|
e || a == null || a();
|
|
2256
2256
|
},
|
|
2257
2257
|
children: /* @__PURE__ */ C("div", {
|
|
2258
2258
|
id: ca,
|
|
2259
|
-
className:
|
|
2259
|
+
className: As.container,
|
|
2260
2260
|
children: /* @__PURE__ */ w(tr, {
|
|
2261
|
-
className:
|
|
2262
|
-
children: [/* @__PURE__ */ C(
|
|
2261
|
+
className: As.modal,
|
|
2262
|
+
children: [/* @__PURE__ */ C(js, {
|
|
2263
2263
|
width: r,
|
|
2264
2264
|
centered: n,
|
|
2265
2265
|
children: t && e
|
|
2266
2266
|
}), /* @__PURE__ */ C("div", { id: la })]
|
|
2267
2267
|
})
|
|
2268
2268
|
})
|
|
2269
|
-
})),
|
|
2269
|
+
})), Ns = {
|
|
2270
2270
|
progress: "_progress_23ror_1",
|
|
2271
2271
|
inverted: "_inverted_23ror_9",
|
|
2272
2272
|
bar: "_bar_23ror_12",
|
|
@@ -2277,30 +2277,30 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2277
2277
|
yellow: "_yellow_23ror_33",
|
|
2278
2278
|
green: "_green_23ror_36",
|
|
2279
2279
|
label: "_label_23ror_39"
|
|
2280
|
-
},
|
|
2280
|
+
}, Ps = (e) => e < 20 ? Ns.grey : e < 40 ? Ns.red : e < 60 ? Ns.orange : e < 80 ? Ns.yellow : Ns.green, Fs = ({ width: e = "auto", inverted: t = !1, colored: n = !0, showProgressColors: r = !1, percentage: i = 0, noLabel: a = !1 }) => /* @__PURE__ */ C("div", {
|
|
2281
2281
|
style: { width: e },
|
|
2282
2282
|
"data-percent": i,
|
|
2283
2283
|
children: /* @__PURE__ */ w("div", {
|
|
2284
|
-
className: x(
|
|
2284
|
+
className: x(Ns.progress, t ? Ns.inverted : ""),
|
|
2285
2285
|
style: { width: e },
|
|
2286
2286
|
children: [/* @__PURE__ */ C("div", {
|
|
2287
|
-
className: x(
|
|
2287
|
+
className: x(Ns.bar, r ? Ps(i) : n ? Ns.colored : ""),
|
|
2288
2288
|
style: { width: `${i}%` },
|
|
2289
2289
|
children: /* @__PURE__ */ C("div", {
|
|
2290
|
-
className:
|
|
2290
|
+
className: Ns.label,
|
|
2291
2291
|
children: !a && `${i}%`
|
|
2292
2292
|
})
|
|
2293
2293
|
}), /* @__PURE__ */ C("div", {
|
|
2294
|
-
className:
|
|
2294
|
+
className: Ns.label,
|
|
2295
2295
|
children: !a && `${i}%`
|
|
2296
2296
|
})]
|
|
2297
2297
|
})
|
|
2298
|
-
}),
|
|
2298
|
+
}), Is = 250, Ls = 4e4, Rs = 20, zs = 500, Bs = ({ visible: e, prompt: t, onCloseModal: n, onUpload: r, onComplete: i, onFailed: a, onError: o, width: s, heading: c, dialogText: l, fileInputText: u, fileInputPlaceholder: d, uploadText: p, cancelText: m, testId: h }) => {
|
|
2299
2299
|
let [g, _] = y(null), [v, b] = y(!1), [x, T] = y(0), E = 0, D = () => {
|
|
2300
|
-
E +=
|
|
2300
|
+
E += Is, T(E);
|
|
2301
2301
|
}, O = (e) => {
|
|
2302
2302
|
let t = E + e;
|
|
2303
|
-
t >= .99 *
|
|
2303
|
+
t >= .99 * Ls && (t = Ls), E = t, T(E);
|
|
2304
2304
|
};
|
|
2305
2305
|
f(() => {
|
|
2306
2306
|
_(null);
|
|
@@ -2309,7 +2309,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2309
2309
|
e.target.value && _(e.target.value);
|
|
2310
2310
|
}, A = async () => {
|
|
2311
2311
|
T(0);
|
|
2312
|
-
let n = setInterval(D,
|
|
2312
|
+
let n = setInterval(D, Is);
|
|
2313
2313
|
try {
|
|
2314
2314
|
if (!g) return;
|
|
2315
2315
|
b(!0);
|
|
@@ -2317,10 +2317,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2317
2317
|
if (!e) return;
|
|
2318
2318
|
if (o) {
|
|
2319
2319
|
clearInterval(n);
|
|
2320
|
-
let e = setInterval(O,
|
|
2320
|
+
let e = setInterval(O, zs / Rs, (Ls - E) / 19);
|
|
2321
2321
|
setTimeout(() => {
|
|
2322
2322
|
i(o), clearInterval(e), b(!1);
|
|
2323
|
-
},
|
|
2323
|
+
}, zs);
|
|
2324
2324
|
} else a == null || a(), b(!1);
|
|
2325
2325
|
} catch (e) {
|
|
2326
2326
|
o == null || o(e), b(!1);
|
|
@@ -2332,9 +2332,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2332
2332
|
}, M = () => {
|
|
2333
2333
|
n();
|
|
2334
2334
|
}, N = /* @__PURE__ */ w(S, { children: [
|
|
2335
|
-
/* @__PURE__ */ C(
|
|
2336
|
-
/* @__PURE__ */ C(
|
|
2337
|
-
/* @__PURE__ */ C(
|
|
2335
|
+
/* @__PURE__ */ C(ns, { children: l || "Upload file and extract data using a LLM" }),
|
|
2336
|
+
/* @__PURE__ */ C(Os, {}),
|
|
2337
|
+
/* @__PURE__ */ C(Ds, {
|
|
2338
2338
|
placeholder: d || "No file",
|
|
2339
2339
|
label: u || "Select",
|
|
2340
2340
|
file: g || void 0,
|
|
@@ -2342,23 +2342,23 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2342
2342
|
testId: `${h}-file-input`,
|
|
2343
2343
|
accept: "image/*"
|
|
2344
2344
|
}),
|
|
2345
|
-
v && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(
|
|
2346
|
-
] }), P = /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(
|
|
2345
|
+
v && /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(Os, {}), /* @__PURE__ */ C(Fs, { percentage: xr(100 * x / Ls, 3) })] })
|
|
2346
|
+
] }), P = /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(q, {
|
|
2347
2347
|
label: p || "Upload",
|
|
2348
2348
|
colored: !0,
|
|
2349
2349
|
onClick: j,
|
|
2350
2350
|
disabled: !g || v,
|
|
2351
2351
|
testId: `${h}-button-upload`
|
|
2352
|
-
}), /* @__PURE__ */ C(
|
|
2352
|
+
}), /* @__PURE__ */ C(q, {
|
|
2353
2353
|
label: m || "Cancel",
|
|
2354
2354
|
onClick: M,
|
|
2355
2355
|
testId: `${h}-button-cancel`
|
|
2356
2356
|
})] });
|
|
2357
|
-
return /* @__PURE__ */ C(
|
|
2357
|
+
return /* @__PURE__ */ C(Ms, {
|
|
2358
2358
|
visible: e,
|
|
2359
2359
|
centered: !0,
|
|
2360
2360
|
onEscape: M,
|
|
2361
|
-
children: /* @__PURE__ */ C(
|
|
2361
|
+
children: /* @__PURE__ */ C(us, { dialog: {
|
|
2362
2362
|
scroll: !0,
|
|
2363
2363
|
heading: c || "Smart Upload",
|
|
2364
2364
|
content: N,
|
|
@@ -2368,11 +2368,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2368
2368
|
testId: h
|
|
2369
2369
|
} })
|
|
2370
2370
|
});
|
|
2371
|
-
},
|
|
2371
|
+
}, Vs = {
|
|
2372
2372
|
helpContainer: "_helpContainer_1pgey_1",
|
|
2373
2373
|
codeBlockStyle: "_codeBlockStyle_1pgey_8",
|
|
2374
2374
|
listStyle: "_listStyle_1pgey_15"
|
|
2375
|
-
},
|
|
2375
|
+
}, Hs = ({ validationRules: e, t }) => {
|
|
2376
2376
|
let n = (t) => {
|
|
2377
2377
|
let n = e.filter((e) => !e.optionalColumn);
|
|
2378
2378
|
return [
|
|
@@ -2382,39 +2382,39 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2382
2382
|
].map((e, r) => n.map(() => r * 10).join(t)).join("\n");
|
|
2383
2383
|
};
|
|
2384
2384
|
return /* @__PURE__ */ w("div", {
|
|
2385
|
-
className:
|
|
2385
|
+
className: Vs.helpContainer,
|
|
2386
2386
|
children: [
|
|
2387
2387
|
/* @__PURE__ */ C("p", { children: t("youCanImportDataByPastingOrByMessage") }),
|
|
2388
2388
|
/* @__PURE__ */ w("p", { children: [t("theValuesCanBeSeparatedByDifferentDelimiters"), ":"] }),
|
|
2389
2389
|
/* @__PURE__ */ w("ul", {
|
|
2390
|
-
className:
|
|
2390
|
+
className: Vs.listStyle,
|
|
2391
2391
|
children: [/* @__PURE__ */ C("li", { children: t("tabSeparatedValues") }), /* @__PURE__ */ C("li", { children: t("semicolonSeparatedValues") })]
|
|
2392
2392
|
}),
|
|
2393
2393
|
/* @__PURE__ */ w("p", { children: [t("toUploadOrImportFromClipboardMessage"), ":"] }),
|
|
2394
2394
|
/* @__PURE__ */ C("p", { children: /* @__PURE__ */ w("strong", { children: [t("examples"), ":"] }) }),
|
|
2395
2395
|
/* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("pre", {
|
|
2396
|
-
className:
|
|
2396
|
+
className: Vs.codeBlockStyle,
|
|
2397
2397
|
children: /* @__PURE__ */ C("code", { children: n(";") })
|
|
2398
2398
|
}) }),
|
|
2399
2399
|
/* @__PURE__ */ C("div", { children: /* @__PURE__ */ C("pre", {
|
|
2400
|
-
className:
|
|
2400
|
+
className: Vs.codeBlockStyle,
|
|
2401
2401
|
children: /* @__PURE__ */ C("code", { children: n(" ") })
|
|
2402
2402
|
}) })
|
|
2403
2403
|
]
|
|
2404
2404
|
});
|
|
2405
|
-
},
|
|
2405
|
+
}, Us = ({ visible: e, setModalVisibility: t, validationRules: n = [], t: r }) => {
|
|
2406
2406
|
let i = () => t("helpModal", !1);
|
|
2407
|
-
return /* @__PURE__ */ C(
|
|
2407
|
+
return /* @__PURE__ */ C(Ms, {
|
|
2408
2408
|
visible: e,
|
|
2409
2409
|
centered: !0,
|
|
2410
2410
|
onEscape: i,
|
|
2411
|
-
children: /* @__PURE__ */ C(
|
|
2411
|
+
children: /* @__PURE__ */ C(us, { dialog: {
|
|
2412
2412
|
heading: r("importingData"),
|
|
2413
|
-
content: /* @__PURE__ */ C(
|
|
2413
|
+
content: /* @__PURE__ */ C(Hs, {
|
|
2414
2414
|
validationRules: n,
|
|
2415
2415
|
t: r
|
|
2416
2416
|
}),
|
|
2417
|
-
footer: /* @__PURE__ */ C(S, { children: /* @__PURE__ */ C(
|
|
2417
|
+
footer: /* @__PURE__ */ C(S, { children: /* @__PURE__ */ C(q, {
|
|
2418
2418
|
label: r("cancel"),
|
|
2419
2419
|
onClick: i
|
|
2420
2420
|
}) }),
|
|
@@ -2422,7 +2422,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2422
2422
|
width: "95%"
|
|
2423
2423
|
} })
|
|
2424
2424
|
});
|
|
2425
|
-
},
|
|
2425
|
+
}, Ws = {
|
|
2426
2426
|
headerContainer: "_headerContainer_esg1i_1",
|
|
2427
2427
|
modalContent: "_modalContent_esg1i_10",
|
|
2428
2428
|
resultContainer: "_resultContainer_esg1i_17",
|
|
@@ -2430,7 +2430,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2430
2430
|
emptyState: "_emptyState_esg1i_39",
|
|
2431
2431
|
emptyMainText: "_emptyMainText_esg1i_47",
|
|
2432
2432
|
emptyHint: "_emptyHint_esg1i_51"
|
|
2433
|
-
},
|
|
2433
|
+
}, Gs = {
|
|
2434
2434
|
inputInTable: "_inputInTable_m9de7_1",
|
|
2435
2435
|
inputHover: "_inputHover_m9de7_13",
|
|
2436
2436
|
inputFocus: "_inputFocus_m9de7_18",
|
|
@@ -2453,46 +2453,46 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2453
2453
|
legendToggle: "_legendToggle_m9de7_159",
|
|
2454
2454
|
detailsText: "_detailsText_m9de7_169",
|
|
2455
2455
|
footer: "_footer_m9de7_173"
|
|
2456
|
-
},
|
|
2456
|
+
}, Ks = /* @__PURE__ */ function(e) {
|
|
2457
2457
|
return e.INFO = "Info", e.SUCCESS = "Success", e.WARNING = "Warning", e.ERROR = "Error", e;
|
|
2458
|
-
}({}),
|
|
2458
|
+
}({}), qs = /* @__PURE__ */ function(e) {
|
|
2459
2459
|
return e.TOGGLE_DETAILS = "TOGGLE_DETAILS", e;
|
|
2460
|
-
}({}),
|
|
2461
|
-
className: x(
|
|
2460
|
+
}({}), Js = ({ type: e, onClose: t, isInToast: n, testId: r }) => /* @__PURE__ */ C("div", {
|
|
2461
|
+
className: x(Gs.dismiss, n ? Gs.absolute : "", e === Ks.INFO ? Gs.info : e === Ks.SUCCESS ? Gs.success : e === Ks.WARNING ? Gs.warning : e === Ks.ERROR ? Gs.error : null),
|
|
2462
2462
|
children: /* @__PURE__ */ C(G, {
|
|
2463
2463
|
icon: U.CLOSE,
|
|
2464
2464
|
onClick: t,
|
|
2465
2465
|
testId: r
|
|
2466
2466
|
})
|
|
2467
|
-
}),
|
|
2467
|
+
}), Ys = (e, t) => {
|
|
2468
2468
|
switch (t.type) {
|
|
2469
|
-
case
|
|
2469
|
+
case qs.TOGGLE_DETAILS: return {
|
|
2470
2470
|
...e,
|
|
2471
2471
|
detailsVisible: !e.detailsVisible
|
|
2472
2472
|
};
|
|
2473
2473
|
default: return e;
|
|
2474
2474
|
}
|
|
2475
|
-
},
|
|
2476
|
-
className: x(
|
|
2475
|
+
}, Xs = ({ details: e, visible: t, dispatch: n }) => /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ C("div", {
|
|
2476
|
+
className: x(Gs.legendToggle),
|
|
2477
2477
|
onClick: n,
|
|
2478
2478
|
children: t ? "Hide details" : "Show details"
|
|
2479
2479
|
}), /* @__PURE__ */ C(ta, {
|
|
2480
2480
|
expanded: t,
|
|
2481
2481
|
children: /* @__PURE__ */ C("div", {
|
|
2482
|
-
className:
|
|
2482
|
+
className: Gs.detailsText,
|
|
2483
2483
|
children: e
|
|
2484
2484
|
})
|
|
2485
|
-
})] }),
|
|
2485
|
+
})] }), Zs = ({ type: e }) => {
|
|
2486
2486
|
switch (e) {
|
|
2487
|
-
case
|
|
2487
|
+
case Ks.SUCCESS: return /* @__PURE__ */ C(G, {
|
|
2488
2488
|
icon: U.SUCCESS,
|
|
2489
2489
|
size: 16
|
|
2490
2490
|
});
|
|
2491
|
-
case
|
|
2491
|
+
case Ks.WARNING: return /* @__PURE__ */ C(G, {
|
|
2492
2492
|
icon: U.WARNING,
|
|
2493
2493
|
size: 16
|
|
2494
2494
|
});
|
|
2495
|
-
case
|
|
2495
|
+
case Ks.ERROR: return /* @__PURE__ */ C(G, {
|
|
2496
2496
|
icon: U.ERROR,
|
|
2497
2497
|
size: 16
|
|
2498
2498
|
});
|
|
@@ -2501,45 +2501,45 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2501
2501
|
size: 16
|
|
2502
2502
|
});
|
|
2503
2503
|
}
|
|
2504
|
-
},
|
|
2505
|
-
let { visible: t, type: n =
|
|
2504
|
+
}, Qs = ({ message: e }) => {
|
|
2505
|
+
let { visible: t, type: n = Ks.INFO, icon: r, heading: i, content: a, details: o, detailsVisible: s = !1, footer: c, withDismiss: l, onClose: u, width: d, maxHeight: f } = e, [p, m] = _(Ys, { detailsVisible: s });
|
|
2506
2506
|
return /* @__PURE__ */ C(S, { children: t ? /* @__PURE__ */ w("div", {
|
|
2507
|
-
className: x(
|
|
2507
|
+
className: x(Gs.container, d ? Gs.block : null, n === Ks.SUCCESS ? Gs.success : n === Ks.WARNING ? Gs.warning : n === Ks.ERROR ? Gs.error : Gs.info),
|
|
2508
2508
|
style: {
|
|
2509
2509
|
width: d,
|
|
2510
2510
|
maxHeight: f
|
|
2511
2511
|
},
|
|
2512
2512
|
children: [
|
|
2513
2513
|
/* @__PURE__ */ C("div", { children: r ? /* @__PURE__ */ C("div", {
|
|
2514
|
-
className:
|
|
2515
|
-
children: /* @__PURE__ */ C(
|
|
2514
|
+
className: Gs.icon,
|
|
2515
|
+
children: /* @__PURE__ */ C(Zs, { type: n })
|
|
2516
2516
|
}) : null }),
|
|
2517
2517
|
/* @__PURE__ */ w("div", {
|
|
2518
|
-
className:
|
|
2518
|
+
className: Gs.content,
|
|
2519
2519
|
children: [
|
|
2520
2520
|
i ? /* @__PURE__ */ C("div", {
|
|
2521
|
-
className:
|
|
2521
|
+
className: Gs.heading,
|
|
2522
2522
|
children: i
|
|
2523
2523
|
}) : null,
|
|
2524
2524
|
/* @__PURE__ */ C("div", { children: a }),
|
|
2525
|
-
o ? /* @__PURE__ */ C(
|
|
2525
|
+
o ? /* @__PURE__ */ C(Xs, {
|
|
2526
2526
|
details: o,
|
|
2527
2527
|
visible: p.detailsVisible,
|
|
2528
|
-
dispatch: () => m({ type:
|
|
2528
|
+
dispatch: () => m({ type: qs.TOGGLE_DETAILS })
|
|
2529
2529
|
}) : null,
|
|
2530
2530
|
!!c && /* @__PURE__ */ C("div", {
|
|
2531
|
-
className:
|
|
2531
|
+
className: Gs.footer,
|
|
2532
2532
|
children: c
|
|
2533
2533
|
})
|
|
2534
2534
|
]
|
|
2535
2535
|
}),
|
|
2536
|
-
l ? /* @__PURE__ */ C(
|
|
2536
|
+
l ? /* @__PURE__ */ C(Js, {
|
|
2537
2537
|
type: n,
|
|
2538
2538
|
onClose: u
|
|
2539
2539
|
}) : null
|
|
2540
2540
|
]
|
|
2541
2541
|
}) : null });
|
|
2542
|
-
},
|
|
2542
|
+
}, $s = {
|
|
2543
2543
|
inputInTable: "_inputInTable_mq0ls_1",
|
|
2544
2544
|
inputHover: "_inputHover_mq0ls_13",
|
|
2545
2545
|
inputFocus: "_inputFocus_mq0ls_18",
|
|
@@ -2555,23 +2555,23 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2555
2555
|
table: "_table_mq0ls_116",
|
|
2556
2556
|
dragOverlay: "_dragOverlay_mq0ls_152",
|
|
2557
2557
|
striped: "_striped_mq0ls_207"
|
|
2558
|
-
},
|
|
2558
|
+
}, ec = { title: "_title_zn5s7_1" }, tc = ({ name: e = null, actions: t = null, actionsRight: n = !1, testId: r }) => {
|
|
2559
2559
|
let i = e !== null, a = t !== null;
|
|
2560
2560
|
return !i && !a ? null : /* @__PURE__ */ w("div", {
|
|
2561
|
-
className:
|
|
2562
|
-
children: [i ? /* @__PURE__ */ C(
|
|
2561
|
+
className: ec.title,
|
|
2562
|
+
children: [i ? /* @__PURE__ */ C(ss, { children: /* @__PURE__ */ C("span", {
|
|
2563
2563
|
"data-testid": r,
|
|
2564
2564
|
children: e
|
|
2565
2565
|
}) }) : null, (() => {
|
|
2566
2566
|
if (!a) return null;
|
|
2567
|
-
let e = /* @__PURE__ */ C(
|
|
2567
|
+
let e = /* @__PURE__ */ C(yo, { actions: t });
|
|
2568
2568
|
return n ? e : /* @__PURE__ */ C("div", { children: e });
|
|
2569
2569
|
})()]
|
|
2570
2570
|
});
|
|
2571
|
-
},
|
|
2571
|
+
}, nc = {
|
|
2572
2572
|
footer: "_footer_4sumy_1",
|
|
2573
2573
|
section: "_section_4sumy_7"
|
|
2574
|
-
},
|
|
2574
|
+
}, rc = {
|
|
2575
2575
|
inputInTable: "_inputInTable_hq6m3_1",
|
|
2576
2576
|
inputHover: "_inputHover_hq6m3_13",
|
|
2577
2577
|
inputFocus: "_inputFocus_hq6m3_18",
|
|
@@ -2588,7 +2588,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2588
2588
|
groupOrderFirst: "_groupOrderFirst_hq6m3_197",
|
|
2589
2589
|
groupOrderMiddle: "_groupOrderMiddle_hq6m3_198",
|
|
2590
2590
|
groupOrderLast: "_groupOrderLast_hq6m3_202"
|
|
2591
|
-
},
|
|
2591
|
+
}, ic = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a = bn, onFocus: o = bn, onBlur: s = bn, right: c = !1, small: l = !1, tabIndex: u = 0, selectedOption: f, width: p = null, groupOrder: m, testId: h, isInTable: g = !1, clearable: _, placeholder: v, hasNonExistentValue: y, maxTooltipWidth: b }) => {
|
|
2592
2592
|
let S = d(W), w = f === null || (f == null ? void 0 : f.value) === null ? "unselected" : f == null ? void 0 : f.value, T = w === "unselected", E = (w === "unselected" || _ ? [/* @__PURE__ */ C("option", {
|
|
2593
2593
|
value: "unselected",
|
|
2594
2594
|
disabled: !_,
|
|
@@ -2604,20 +2604,20 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2604
2604
|
children: e.label
|
|
2605
2605
|
}, t))), D = (() => {
|
|
2606
2606
|
if (m) switch (m) {
|
|
2607
|
-
case H.FIRST: return
|
|
2608
|
-
case H.LAST: return
|
|
2609
|
-
default: return
|
|
2607
|
+
case H.FIRST: return rc.groupOrderFirst;
|
|
2608
|
+
case H.LAST: return rc.groupOrderLast;
|
|
2609
|
+
default: return rc.groupOrderMiddle;
|
|
2610
2610
|
}
|
|
2611
2611
|
return "";
|
|
2612
2612
|
})();
|
|
2613
|
-
return /* @__PURE__ */ C(
|
|
2613
|
+
return /* @__PURE__ */ C(K, {
|
|
2614
2614
|
error: !!t,
|
|
2615
2615
|
warning: !!n,
|
|
2616
2616
|
text: r || t || n,
|
|
2617
|
-
enabled: r &&
|
|
2617
|
+
enabled: r && Y(r) || t && Y(t) || n && Y(n) || !1,
|
|
2618
2618
|
maxWidth: b,
|
|
2619
2619
|
children: /* @__PURE__ */ C("select", {
|
|
2620
|
-
className: x(
|
|
2620
|
+
className: x(rc.select, T ? rc.unSelected : "", c ? rc.right : "", l ? rc.small : "", g ? rc.isInTable : "", D),
|
|
2621
2621
|
style: { width: p || "" },
|
|
2622
2622
|
onChange: (e) => {
|
|
2623
2623
|
let { value: t } = e.target, n;
|
|
@@ -2634,7 +2634,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2634
2634
|
children: E
|
|
2635
2635
|
})
|
|
2636
2636
|
});
|
|
2637
|
-
},
|
|
2637
|
+
}, ac = {
|
|
2638
2638
|
select: "_select_nfeiz_1",
|
|
2639
2639
|
layerContainer: "_layerContainer_nfeiz_6",
|
|
2640
2640
|
layer: "_layer_nfeiz_6",
|
|
@@ -2648,7 +2648,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2648
2648
|
label: "_label_nfeiz_145",
|
|
2649
2649
|
icon: "_icon_nfeiz_152",
|
|
2650
2650
|
details: "_details_nfeiz_157"
|
|
2651
|
-
},
|
|
2651
|
+
}, oc = ({ stateRef: e }) => {
|
|
2652
2652
|
let t = d(Nr);
|
|
2653
2653
|
return f(() => {
|
|
2654
2654
|
e.current = t ? {
|
|
@@ -2658,12 +2658,12 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2658
2658
|
}
|
|
2659
2659
|
} : null;
|
|
2660
2660
|
}, [t, e]), null;
|
|
2661
|
-
},
|
|
2661
|
+
}, sc = () => {
|
|
2662
2662
|
let e = v(null);
|
|
2663
2663
|
return [e, () => {
|
|
2664
2664
|
e.current && e.current.focus();
|
|
2665
2665
|
}];
|
|
2666
|
-
},
|
|
2666
|
+
}, cc = () => {
|
|
2667
2667
|
let [e, t] = y(!1), n = v(!0);
|
|
2668
2668
|
return f(() => () => {
|
|
2669
2669
|
n.current = !1;
|
|
@@ -2674,68 +2674,68 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2674
2674
|
});
|
|
2675
2675
|
})();
|
|
2676
2676
|
}, []), e;
|
|
2677
|
-
},
|
|
2678
|
-
let [e, t] = y(
|
|
2677
|
+
}, lc = () => window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, uc = () => {
|
|
2678
|
+
let [e, t] = y(lc()), n = an(() => t(lc()), 150);
|
|
2679
2679
|
return f(() => (window.addEventListener("resize", n), () => {
|
|
2680
2680
|
window.removeEventListener("resize", n);
|
|
2681
2681
|
}), []), e;
|
|
2682
|
-
},
|
|
2682
|
+
}, dc = (e, t) => {
|
|
2683
2683
|
let n = document.createElement("canvas").getContext("2d");
|
|
2684
2684
|
return n ? (n.font = t, n.measureText(e).width) : 0;
|
|
2685
|
-
},
|
|
2686
|
-
let i =
|
|
2685
|
+
}, fc = "13px", pc = "12px", mc = "Roobert", hc = "sans-serif", gc = 12, _c = 8, vc = 30, yc = 24, bc = 5, xc = 3, Sc = 2, Cc = (e = !1, t = !1) => `${e ? pc : fc} ${t ? mc : hc}`, wc = (e = !1, t = !1) => (e ? _c : gc) + (e ? yc : vc) + (t ? 17 : 0), Tc = (e, t, n, r) => {
|
|
2686
|
+
let i = Cc(t, n), a = r ? dc(r, i) : 0;
|
|
2687
2687
|
return Math.ceil(e.reduce((e, n) => {
|
|
2688
2688
|
var r, a;
|
|
2689
|
-
let o = ((r = n == null || (a = n.actions) == null ? void 0 : a.length) == null ? 0 : r) * 24, s = n.icon ? parseInt(t ?
|
|
2689
|
+
let o = ((r = n == null || (a = n.actions) == null ? void 0 : a.length) == null ? 0 : r) * 24, s = n.icon ? parseInt(t ? pc : fc) + 7 : 0, c = dc(`${n.label} ${n.details || ""}`, i) + o + s;
|
|
2690
2690
|
return e = c > e ? c : e, e;
|
|
2691
|
-
}, a)) +
|
|
2692
|
-
},
|
|
2693
|
-
let r =
|
|
2694
|
-
return Math.ceil(i + ((t ?
|
|
2695
|
-
},
|
|
2691
|
+
}, a)) + wc(t, !0);
|
|
2692
|
+
}, Ec = (e, t, n) => {
|
|
2693
|
+
let r = Cc(!0, n), i = dc(e.label, r);
|
|
2694
|
+
return Math.ceil(i + ((t ? xc : bc) * 2 + 2 + Sc));
|
|
2695
|
+
}, Dc = ({ details: e, label: t, icon: n, selected: r = !1, actions: i, closeLayer: a }) => /* @__PURE__ */ w(S, { children: [
|
|
2696
2696
|
/* @__PURE__ */ C("div", {
|
|
2697
|
-
className:
|
|
2697
|
+
className: ac.optionContent,
|
|
2698
2698
|
children: /* @__PURE__ */ w("span", {
|
|
2699
|
-
className:
|
|
2699
|
+
className: ac.label,
|
|
2700
2700
|
title: String(t),
|
|
2701
2701
|
children: [t, n && /* @__PURE__ */ C("span", {
|
|
2702
|
-
className:
|
|
2702
|
+
className: ac.icon,
|
|
2703
2703
|
children: n
|
|
2704
2704
|
})]
|
|
2705
2705
|
})
|
|
2706
2706
|
}),
|
|
2707
2707
|
e && /* @__PURE__ */ C("div", {
|
|
2708
|
-
className: x(
|
|
2709
|
-
children: /* @__PURE__ */ C(
|
|
2708
|
+
className: x(ac.details),
|
|
2709
|
+
children: /* @__PURE__ */ C(ns, {
|
|
2710
2710
|
faint: !0,
|
|
2711
2711
|
children: e
|
|
2712
2712
|
})
|
|
2713
2713
|
}),
|
|
2714
2714
|
!!(i != null && i.length) && /* @__PURE__ */ C("div", {
|
|
2715
|
-
className: x(
|
|
2716
|
-
children: /* @__PURE__ */ C(
|
|
2715
|
+
className: x(ac.actions),
|
|
2716
|
+
children: /* @__PURE__ */ C(yo, {
|
|
2717
2717
|
actions: i,
|
|
2718
2718
|
closeLayer: a
|
|
2719
2719
|
})
|
|
2720
2720
|
}),
|
|
2721
2721
|
/* @__PURE__ */ C("span", {
|
|
2722
|
-
className:
|
|
2722
|
+
className: ac.check,
|
|
2723
2723
|
children: r ? /* @__PURE__ */ C(G, { icon: U.CHECK }) : null
|
|
2724
2724
|
})
|
|
2725
|
-
] }),
|
|
2725
|
+
] }), Oc = "create", kc = (e, t) => e.type === Qa.HEADING ? `heading-${t}` : e.createAble ? Oc : String(e.value), Ac = c(({ item: e, closeLayer: t }) => {
|
|
2726
2726
|
var n, r;
|
|
2727
|
-
let i = d(W), a = e.type ===
|
|
2727
|
+
let i = d(W), a = e.type === Qa.HEADING, o = a || !!e.disabled || i, s = (n = e.textValue) == null ? `${String((r = e.label) == null ? "" : r)}${e.details ? String(e.details) : ""}` : n;
|
|
2728
2728
|
return /* @__PURE__ */ C(Br, {
|
|
2729
2729
|
id: e.id,
|
|
2730
2730
|
textValue: s,
|
|
2731
2731
|
isDisabled: o,
|
|
2732
|
-
className: x(a ?
|
|
2732
|
+
className: x(a ? ac.listBoxItem : ac.option),
|
|
2733
2733
|
"data-testid": e.testId,
|
|
2734
2734
|
children: ({ isSelected: n }) => a ? /* @__PURE__ */ C("div", {
|
|
2735
2735
|
onClick: (e) => e.stopPropagation(),
|
|
2736
|
-
className:
|
|
2736
|
+
className: ac.heading,
|
|
2737
2737
|
children: e.label
|
|
2738
|
-
}) : /* @__PURE__ */ C(
|
|
2738
|
+
}) : /* @__PURE__ */ C(Dc, {
|
|
2739
2739
|
closeLayer: t,
|
|
2740
2740
|
actions: e.actions,
|
|
2741
2741
|
label: e.label,
|
|
@@ -2744,7 +2744,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2744
2744
|
selected: n
|
|
2745
2745
|
})
|
|
2746
2746
|
});
|
|
2747
|
-
}),
|
|
2747
|
+
}), jc = 50, Mc = (e, t) => Math.abs(t.length - e.length) === 1 && (t.startsWith(e) || e.startsWith(t)), Nc = ({ optionsCount: e, comboBoxStateRef: t }) => {
|
|
2748
2748
|
let n = v(null), r = v(""), [i, a] = y(""), [o, s] = y(""), [c, d] = y(!1), p = u(() => {
|
|
2749
2749
|
n.current != null && (clearTimeout(n.current), n.current = null);
|
|
2750
2750
|
}, []), m = u((e, n) => {
|
|
@@ -2765,13 +2765,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2765
2765
|
}
|
|
2766
2766
|
p();
|
|
2767
2767
|
let c = r.current;
|
|
2768
|
-
if (r.current = i, !(o &&
|
|
2768
|
+
if (r.current = i, !(o && Mc(c, i))) {
|
|
2769
2769
|
m(i, o);
|
|
2770
2770
|
return;
|
|
2771
2771
|
}
|
|
2772
2772
|
d(!0), n.current = setTimeout(() => {
|
|
2773
2773
|
n.current = null, m(i, !0);
|
|
2774
|
-
},
|
|
2774
|
+
}, jc);
|
|
2775
2775
|
}, [
|
|
2776
2776
|
p,
|
|
2777
2777
|
m,
|
|
@@ -2785,40 +2785,45 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2785
2785
|
onChangeSearch: g,
|
|
2786
2786
|
resetSearchState: h
|
|
2787
2787
|
};
|
|
2788
|
-
},
|
|
2788
|
+
}, Pc = (e, t) => {
|
|
2789
2789
|
var n;
|
|
2790
2790
|
let r = `${String((n = e.label) == null ? "" : n)}${e.details ? String(e.details) : ""}`;
|
|
2791
2791
|
return {
|
|
2792
|
-
id:
|
|
2792
|
+
id: kc(e, t),
|
|
2793
2793
|
...e,
|
|
2794
2794
|
textValue: r,
|
|
2795
2795
|
searchText: r.toLowerCase()
|
|
2796
2796
|
};
|
|
2797
|
-
},
|
|
2798
|
-
let f = !!
|
|
2797
|
+
}, Fc = (e) => Pr(e) ? [] : Array.isArray(e) ? e.map(String) : [String(e)], Ic = ({ options: e, onCreate: t, onChange: n, selectedOptions: r, width: i = null, small: a, placeholder: o = "", autoLayerWidth: s = !1, isMulti: c, closeOnOptionActionClick: l, searchable: d = !0 }) => {
|
|
2798
|
+
let f = !!t, p = cc(), m = v(null), h = v(!1), [_, b] = y(!1), x = g(() => e.map((e, t) => Pc(e, t)), [e]), { searchValue: S, committedFilter: C, isFilterPending: w, onChangeSearch: T, resetSearchState: E } = Nc({
|
|
2799
2799
|
optionsCount: x.length,
|
|
2800
2800
|
comboBoxStateRef: m
|
|
2801
|
-
}), D = u((
|
|
2801
|
+
}), D = u(() => {
|
|
2802
|
+
if (l) {
|
|
2803
|
+
var e;
|
|
2804
|
+
(e = m.current) == null || e.close();
|
|
2805
|
+
}
|
|
2806
|
+
}, [l]), O = u((e) => {
|
|
2802
2807
|
b(e), e || E();
|
|
2803
|
-
}, [E]),
|
|
2804
|
-
|
|
2808
|
+
}, [E]), k = i === "auto" || s, A = g(() => k ? Tc(e, a, p, o == null ? "" : o) : 0, [
|
|
2809
|
+
k,
|
|
2805
2810
|
e,
|
|
2806
2811
|
a,
|
|
2807
2812
|
p,
|
|
2808
|
-
|
|
2809
|
-
]),
|
|
2813
|
+
o
|
|
2814
|
+
]), j = u(() => i ? i === "auto" ? A : i : "100%", [i, A]), M = u((e) => {
|
|
2810
2815
|
var t;
|
|
2811
|
-
let n =
|
|
2812
|
-
return s ? Math.max(
|
|
2816
|
+
let n = j(), r = (t = e == null ? void 0 : e.getBoundingClientRect().width) == null ? typeof n == "number" ? n : 0 : t;
|
|
2817
|
+
return s ? Math.max(A, r) : r;
|
|
2813
2818
|
}, [
|
|
2814
2819
|
s,
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
]),
|
|
2820
|
+
A,
|
|
2821
|
+
j
|
|
2822
|
+
]), N = g(() => {
|
|
2818
2823
|
if (d && w && !C.trim()) return [];
|
|
2819
2824
|
let e = d ? C.trim().toLowerCase() : "", t = e ? x.filter((t) => t.searchText.includes(e)) : x;
|
|
2820
2825
|
return f && e ? [...t, {
|
|
2821
|
-
id:
|
|
2826
|
+
id: Oc,
|
|
2822
2827
|
label: `Create "${C}"`,
|
|
2823
2828
|
value: C,
|
|
2824
2829
|
createAble: !0,
|
|
@@ -2830,115 +2835,110 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2830
2835
|
f,
|
|
2831
2836
|
d,
|
|
2832
2837
|
w
|
|
2833
|
-
]),
|
|
2838
|
+
]), P = g(() => {
|
|
2834
2839
|
let e = /* @__PURE__ */ new Map();
|
|
2835
2840
|
for (let t of x) e.set(t.id, t);
|
|
2836
2841
|
return e;
|
|
2837
|
-
}, [x]),
|
|
2838
|
-
if (
|
|
2839
|
-
let e = Array.isArray(
|
|
2842
|
+
}, [x]), F = g(() => {
|
|
2843
|
+
if (c) return (Array.isArray(r) ? r : []).filter((e) => e && !Pr(e.value)).map((e) => String(e.value));
|
|
2844
|
+
let e = Array.isArray(r) ? r[0] : r;
|
|
2840
2845
|
return Pr(e == null ? void 0 : e.value) ? null : String(e.value);
|
|
2841
|
-
}, [
|
|
2842
|
-
if (
|
|
2843
|
-
let e = Array.isArray(
|
|
2846
|
+
}, [c, r]), I = g(() => {
|
|
2847
|
+
if (c) {
|
|
2848
|
+
let e = Array.isArray(r) ? r[0] : null;
|
|
2844
2849
|
return Pr(e == null ? void 0 : e.value) ? null : String(e.value);
|
|
2845
2850
|
}
|
|
2846
|
-
return
|
|
2851
|
+
return F;
|
|
2847
2852
|
}, [
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
]),
|
|
2853
|
+
F,
|
|
2854
|
+
c,
|
|
2855
|
+
r
|
|
2856
|
+
]), L = u((e) => {
|
|
2852
2857
|
n == null || n({ target: {} }, e);
|
|
2853
|
-
}, [n]),
|
|
2854
|
-
if (!(!
|
|
2855
|
-
var
|
|
2856
|
-
(
|
|
2858
|
+
}, [n]), R = u((e = S) => {
|
|
2859
|
+
if (!(!t || !e) && (h.current = !0, t(e), E(), !c)) {
|
|
2860
|
+
var n;
|
|
2861
|
+
(n = m.current) == null || n.close();
|
|
2857
2862
|
}
|
|
2858
2863
|
}, [
|
|
2859
2864
|
S,
|
|
2860
|
-
|
|
2861
|
-
|
|
2865
|
+
c,
|
|
2866
|
+
t,
|
|
2862
2867
|
E
|
|
2863
|
-
])
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
setIsOpen: D,
|
|
2869
|
-
visibleOptions: M,
|
|
2870
|
-
comboValue: P,
|
|
2871
|
-
selectedItemId: F,
|
|
2872
|
-
getTriggerWidth: A,
|
|
2873
|
-
getLayerWidth: j,
|
|
2874
|
-
handleChange: u((e) => {
|
|
2875
|
-
if (E(), i) {
|
|
2876
|
-
let t = Ic(e);
|
|
2877
|
-
if (t.includes("create")) {
|
|
2878
|
-
L();
|
|
2879
|
-
return;
|
|
2880
|
-
}
|
|
2881
|
-
let n = Array.isArray(P) ? P : [];
|
|
2882
|
-
if (t.length === n.length && t.every((e) => n.includes(e))) return;
|
|
2883
|
-
let r = t.map((e) => N.get(e)).filter((e) => !Pr(e) && e.type !== $a.HEADING).map((e) => ({
|
|
2884
|
-
value: e.value,
|
|
2885
|
-
label: e.label,
|
|
2886
|
-
details: e.details,
|
|
2887
|
-
icon: e.icon,
|
|
2888
|
-
actions: e.actions,
|
|
2889
|
-
testId: e.testId
|
|
2890
|
-
}));
|
|
2891
|
-
I(r);
|
|
2868
|
+
]), z = u((e) => {
|
|
2869
|
+
if (E(), c) {
|
|
2870
|
+
let t = Fc(e);
|
|
2871
|
+
if (t.includes("create")) {
|
|
2872
|
+
R();
|
|
2892
2873
|
return;
|
|
2893
2874
|
}
|
|
2894
|
-
let
|
|
2895
|
-
if (
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2875
|
+
let n = Array.isArray(F) ? F : [];
|
|
2876
|
+
if (t.length === n.length && t.every((e) => n.includes(e))) return;
|
|
2877
|
+
let r = t.map((e) => P.get(e)).filter((e) => !Pr(e) && e.type !== Qa.HEADING).map((e) => ({
|
|
2878
|
+
value: e.value,
|
|
2879
|
+
label: e.label,
|
|
2880
|
+
details: e.details,
|
|
2881
|
+
icon: e.icon,
|
|
2882
|
+
actions: e.actions,
|
|
2883
|
+
testId: e.testId
|
|
2884
|
+
}));
|
|
2885
|
+
L(r);
|
|
2886
|
+
return;
|
|
2887
|
+
}
|
|
2888
|
+
let t = Array.isArray(e) ? e[0] : e;
|
|
2889
|
+
if (Pr(t)) {
|
|
2890
|
+
if (h.current) {
|
|
2891
|
+
h.current = !1;
|
|
2905
2892
|
return;
|
|
2906
2893
|
}
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2894
|
+
L({ value: null });
|
|
2895
|
+
return;
|
|
2896
|
+
}
|
|
2897
|
+
if (String(t) === "create") {
|
|
2898
|
+
R();
|
|
2899
|
+
return;
|
|
2900
|
+
}
|
|
2901
|
+
if (String(t) === F) return;
|
|
2902
|
+
let n = P.get(String(t));
|
|
2903
|
+
!n || n.type === Qa.HEADING || n.disabled || n.createAble || L({
|
|
2904
|
+
value: n.value,
|
|
2905
|
+
label: n.label,
|
|
2906
|
+
details: n.details,
|
|
2907
|
+
icon: n.icon,
|
|
2908
|
+
actions: n.actions,
|
|
2909
|
+
testId: n.testId
|
|
2910
|
+
});
|
|
2911
|
+
}, [
|
|
2912
|
+
E,
|
|
2913
|
+
F,
|
|
2914
|
+
L,
|
|
2915
|
+
R,
|
|
2916
|
+
c,
|
|
2917
|
+
P
|
|
2918
|
+
]);
|
|
2919
|
+
return {
|
|
2920
|
+
getTriggerWidth: j,
|
|
2921
|
+
onChangeSearch: T,
|
|
2925
2922
|
onClickClearAll: u(() => {
|
|
2926
|
-
E(),
|
|
2923
|
+
E(), L(c ? [] : { value: null });
|
|
2927
2924
|
}, [
|
|
2928
2925
|
E,
|
|
2929
|
-
|
|
2930
|
-
|
|
2926
|
+
L,
|
|
2927
|
+
c
|
|
2931
2928
|
]),
|
|
2932
|
-
closeLayer:
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2929
|
+
closeLayer: D,
|
|
2930
|
+
handleChange: z,
|
|
2931
|
+
getLayerWidth: M,
|
|
2932
|
+
searchValue: S,
|
|
2933
|
+
isOpen: _,
|
|
2934
|
+
setIsOpen: O,
|
|
2935
|
+
visibleOptions: N,
|
|
2936
|
+
comboValue: F,
|
|
2937
|
+
selectedItemId: I,
|
|
2938
2938
|
comboBoxStateRef: m
|
|
2939
2939
|
};
|
|
2940
|
-
},
|
|
2941
|
-
let c = v(null), l = i ? 24 : 30, u = l * 10, d = x(
|
|
2940
|
+
}, Lc = ({ items: e, optionsCount: t, selectedItemId: n, width: r, small: i, isMulti: a = !1, closeLayer: o, testId: s }) => {
|
|
2941
|
+
let c = v(null), l = i ? 24 : 30, u = l * 10, d = x(ac.layer, i && ac.small), p = t >= 20;
|
|
2942
2942
|
f(() => {
|
|
2943
2943
|
if (!n) return;
|
|
2944
2944
|
let t = e.findIndex((e) => e.id === n);
|
|
@@ -2962,11 +2962,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2962
2962
|
},
|
|
2963
2963
|
selectionBehavior: a ? "toggle" : "replace",
|
|
2964
2964
|
renderEmptyState: () => /* @__PURE__ */ C("div", {
|
|
2965
|
-
className:
|
|
2965
|
+
className: ac.message,
|
|
2966
2966
|
children: "No matches"
|
|
2967
2967
|
}),
|
|
2968
2968
|
"data-testid": s,
|
|
2969
|
-
children: (e) => /* @__PURE__ */ C(
|
|
2969
|
+
children: (e) => /* @__PURE__ */ C(Ac, {
|
|
2970
2970
|
item: e,
|
|
2971
2971
|
closeLayer: o
|
|
2972
2972
|
})
|
|
@@ -2976,48 +2976,48 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2976
2976
|
layoutOptions: { rowSize: l },
|
|
2977
2977
|
children: m
|
|
2978
2978
|
}) : m;
|
|
2979
|
-
},
|
|
2980
|
-
inputInTable: "
|
|
2981
|
-
inputHover: "
|
|
2982
|
-
inputFocus: "
|
|
2983
|
-
controlFocusVisible: "
|
|
2984
|
-
inputError: "
|
|
2985
|
-
inputWarning: "
|
|
2986
|
-
inputDisabled: "
|
|
2987
|
-
hideScrollbars: "
|
|
2988
|
-
trigger: "
|
|
2989
|
-
input: "
|
|
2990
|
-
isInTable: "
|
|
2991
|
-
isOpen: "
|
|
2992
|
-
disabled: "
|
|
2993
|
-
toggle: "
|
|
2994
|
-
icons: "
|
|
2995
|
-
clearAll: "
|
|
2996
|
-
iconOpen: "
|
|
2997
|
-
small: "
|
|
2998
|
-
triggerInputContainer: "
|
|
2999
|
-
right: "
|
|
3000
|
-
multiOptions: "
|
|
3001
|
-
multiOption: "
|
|
3002
|
-
label: "
|
|
3003
|
-
closeMultiOption: "
|
|
3004
|
-
focus: "
|
|
3005
|
-
selectedSingleValue: "
|
|
3006
|
-
placeHolder: "
|
|
3007
|
-
groupOrderFirst: "
|
|
3008
|
-
groupOrderMiddle: "
|
|
3009
|
-
groupOrderLast: "
|
|
3010
|
-
detailedLabel: "
|
|
2979
|
+
}, Rc = {
|
|
2980
|
+
inputInTable: "_inputInTable_46rff_1",
|
|
2981
|
+
inputHover: "_inputHover_46rff_13",
|
|
2982
|
+
inputFocus: "_inputFocus_46rff_18",
|
|
2983
|
+
controlFocusVisible: "_controlFocusVisible_46rff_25",
|
|
2984
|
+
inputError: "_inputError_46rff_29",
|
|
2985
|
+
inputWarning: "_inputWarning_46rff_30",
|
|
2986
|
+
inputDisabled: "_inputDisabled_46rff_65",
|
|
2987
|
+
hideScrollbars: "_hideScrollbars_46rff_71",
|
|
2988
|
+
trigger: "_trigger_46rff_81",
|
|
2989
|
+
input: "_input_46rff_1",
|
|
2990
|
+
isInTable: "_isInTable_46rff_100",
|
|
2991
|
+
isOpen: "_isOpen_46rff_121",
|
|
2992
|
+
disabled: "_disabled_46rff_164",
|
|
2993
|
+
toggle: "_toggle_46rff_170",
|
|
2994
|
+
icons: "_icons_46rff_179",
|
|
2995
|
+
clearAll: "_clearAll_46rff_187",
|
|
2996
|
+
iconOpen: "_iconOpen_46rff_188",
|
|
2997
|
+
small: "_small_46rff_199",
|
|
2998
|
+
triggerInputContainer: "_triggerInputContainer_46rff_211",
|
|
2999
|
+
right: "_right_46rff_220",
|
|
3000
|
+
multiOptions: "_multiOptions_46rff_235",
|
|
3001
|
+
multiOption: "_multiOption_46rff_235",
|
|
3002
|
+
label: "_label_46rff_263",
|
|
3003
|
+
closeMultiOption: "_closeMultiOption_46rff_266",
|
|
3004
|
+
focus: "_focus_46rff_277",
|
|
3005
|
+
selectedSingleValue: "_selectedSingleValue_46rff_281",
|
|
3006
|
+
placeHolder: "_placeHolder_46rff_282",
|
|
3007
|
+
groupOrderFirst: "_groupOrderFirst_46rff_325",
|
|
3008
|
+
groupOrderMiddle: "_groupOrderMiddle_46rff_326",
|
|
3009
|
+
groupOrderLast: "_groupOrderLast_46rff_330",
|
|
3010
|
+
detailedLabel: "_detailedLabel_46rff_335"
|
|
3011
3011
|
}, zc = 24, Bc = (e, t, n, r) => {
|
|
3012
3012
|
let i = [], a = [], o = 0;
|
|
3013
3013
|
return e.forEach((s, c) => {
|
|
3014
|
-
o +=
|
|
3014
|
+
o += Ec(s, n, r), c === e.length - 1 && o < t || o < t - 24 ? i.push(s) : a.push(s);
|
|
3015
3015
|
}), {
|
|
3016
3016
|
displayed: i,
|
|
3017
3017
|
overflow: a
|
|
3018
3018
|
};
|
|
3019
3019
|
}, Vc = ({ selectedOptions: e, small: t, searchable: n, testId: r }) => {
|
|
3020
|
-
let i =
|
|
3020
|
+
let i = cc(), a = v(null), [o, s] = y(0);
|
|
3021
3021
|
h(() => {
|
|
3022
3022
|
var e;
|
|
3023
3023
|
let t = (e = a.current) == null ? void 0 : e.parentElement;
|
|
@@ -3034,20 +3034,20 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3034
3034
|
}, [n]);
|
|
3035
3035
|
let { displayed: c, overflow: l } = Bc(e, o, t, i);
|
|
3036
3036
|
return /* @__PURE__ */ w("div", {
|
|
3037
|
-
className:
|
|
3037
|
+
className: Rc.multiOptions,
|
|
3038
3038
|
ref: a,
|
|
3039
3039
|
"data-testid": r && `${r}-value`,
|
|
3040
3040
|
children: [c.filter((e) => e && e.label).map((e, t) => /* @__PURE__ */ C("span", {
|
|
3041
|
-
className:
|
|
3041
|
+
className: Rc.multiOption,
|
|
3042
3042
|
onClick: (e) => {
|
|
3043
3043
|
e.stopPropagation();
|
|
3044
3044
|
},
|
|
3045
3045
|
children: e.label
|
|
3046
|
-
}, t)), l.length > 0 && /* @__PURE__ */ C(
|
|
3046
|
+
}, t)), l.length > 0 && /* @__PURE__ */ C(K, {
|
|
3047
3047
|
text: l.map((e, t) => /* @__PURE__ */ C("div", { children: e.label }, t)),
|
|
3048
3048
|
display: "inline-flex",
|
|
3049
3049
|
children: /* @__PURE__ */ C("span", {
|
|
3050
|
-
className:
|
|
3050
|
+
className: Rc.multiOption,
|
|
3051
3051
|
children: c.length ? `+${l.length}` : `${l.length} items`
|
|
3052
3052
|
})
|
|
3053
3053
|
})]
|
|
@@ -3055,25 +3055,26 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3055
3055
|
}, Hc = ({ selectedOptions: e, searchable: t = !1, searchValue: n, error: r, placeholder: i = "Select...", small: a, testId: o, tabIndex: s, onFocus: c, onBlur: l }) => {
|
|
3056
3056
|
let u = Array.isArray(e), d = u ? e.length > 0 : !!e;
|
|
3057
3057
|
return /* @__PURE__ */ w("div", {
|
|
3058
|
-
className:
|
|
3058
|
+
className: Rc.triggerInputContainer,
|
|
3059
3059
|
children: [d ? u ? /* @__PURE__ */ C(Vc, {
|
|
3060
3060
|
selectedOptions: e,
|
|
3061
3061
|
small: a,
|
|
3062
3062
|
searchable: t,
|
|
3063
3063
|
testId: o
|
|
3064
3064
|
}) : /* @__PURE__ */ C("span", {
|
|
3065
|
-
className:
|
|
3065
|
+
className: Rc.selectedSingleValue,
|
|
3066
3066
|
"data-testid": o && `${o}-value`,
|
|
3067
3067
|
children: n != null && n.length ? "" : e == null ? void 0 : e.label
|
|
3068
3068
|
}) : /* @__PURE__ */ C("span", {
|
|
3069
|
-
className:
|
|
3069
|
+
className: Rc.placeHolder,
|
|
3070
3070
|
children: n != null && n.length ? "" : i
|
|
3071
3071
|
}), /* @__PURE__ */ C(Wr, {
|
|
3072
|
-
className:
|
|
3073
|
-
|
|
3072
|
+
className: Rc.input,
|
|
3073
|
+
inputMode: t ? void 0 : "none",
|
|
3074
3074
|
tabIndex: s,
|
|
3075
3075
|
onFocus: c,
|
|
3076
3076
|
onBlur: l,
|
|
3077
|
+
"data-searchable": t || void 0,
|
|
3077
3078
|
"data-error": r || null,
|
|
3078
3079
|
"data-testid": o && `${o}-input`
|
|
3079
3080
|
})]
|
|
@@ -3082,23 +3083,23 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3082
3083
|
var T;
|
|
3083
3084
|
let E = Array.isArray(e) ? e.length > 0 && !Pr((T = e[0]) == null ? void 0 : T.value) : !Pr(e == null ? void 0 : e.value), D = r && E, O = (() => {
|
|
3084
3085
|
if (g) switch (g) {
|
|
3085
|
-
case H.FIRST: return
|
|
3086
|
-
case H.LAST: return
|
|
3087
|
-
default: return
|
|
3086
|
+
case H.FIRST: return Rc.groupOrderFirst;
|
|
3087
|
+
case H.LAST: return Rc.groupOrderLast;
|
|
3088
|
+
default: return Rc.groupOrderMiddle;
|
|
3088
3089
|
}
|
|
3089
3090
|
return "";
|
|
3090
3091
|
})(), k = !Array.isArray(e) && e != null && e.details ? {
|
|
3091
3092
|
...e,
|
|
3092
3093
|
label: /* @__PURE__ */ w("div", {
|
|
3093
|
-
className: x(
|
|
3094
|
-
children: [/* @__PURE__ */ C(
|
|
3094
|
+
className: x(Rc.detailedLabel),
|
|
3095
|
+
children: [/* @__PURE__ */ C(ns, { children: e.label }), /* @__PURE__ */ C(ns, {
|
|
3095
3096
|
muted: !0,
|
|
3096
3097
|
children: e.details
|
|
3097
3098
|
})]
|
|
3098
3099
|
})
|
|
3099
3100
|
} : e, A = /* @__PURE__ */ C(S, { children: /* @__PURE__ */ w("div", {
|
|
3100
3101
|
ref: p,
|
|
3101
|
-
className: x(
|
|
3102
|
+
className: x(Rc.trigger, f ? Rc.isOpen : "", l ? Rc.disabled : "", s ? Rc.small : "", c ? Rc.isInTable : "", y ? Rc.right : "", O),
|
|
3102
3103
|
"data-error": i || null,
|
|
3103
3104
|
"data-warning": a || null,
|
|
3104
3105
|
"data-testid": b,
|
|
@@ -3116,72 +3117,72 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3116
3117
|
onBlur: h
|
|
3117
3118
|
}),
|
|
3118
3119
|
/* @__PURE__ */ C(Ur, {
|
|
3119
|
-
className:
|
|
3120
|
+
className: Rc.toggle,
|
|
3120
3121
|
"aria-label": v || "Select",
|
|
3121
3122
|
"data-testid": b && `${b}-toggle`
|
|
3122
3123
|
}),
|
|
3123
3124
|
/* @__PURE__ */ C("span", {
|
|
3124
|
-
className:
|
|
3125
|
+
className: Rc.icons,
|
|
3125
3126
|
children: D ? /* @__PURE__ */ C("span", {
|
|
3126
|
-
className:
|
|
3127
|
+
className: Rc.clearAll,
|
|
3127
3128
|
onClick: (e) => {
|
|
3128
3129
|
e.stopPropagation(), u == null || u(e);
|
|
3129
3130
|
},
|
|
3130
3131
|
"data-testid": b && `${b}-clear`,
|
|
3131
3132
|
children: /* @__PURE__ */ C(G, { icon: U.CLOSE })
|
|
3132
3133
|
}) : /* @__PURE__ */ C("span", {
|
|
3133
|
-
className:
|
|
3134
|
+
className: Rc.iconOpen,
|
|
3134
3135
|
"aria-hidden": !0,
|
|
3135
3136
|
children: /* @__PURE__ */ C(G, { icon: "chevron down" })
|
|
3136
3137
|
})
|
|
3137
3138
|
})
|
|
3138
3139
|
]
|
|
3139
3140
|
}) });
|
|
3140
|
-
return /* @__PURE__ */ C(S, { children: /* @__PURE__ */ C(
|
|
3141
|
+
return /* @__PURE__ */ C(S, { children: /* @__PURE__ */ C(K, {
|
|
3141
3142
|
error: !!i,
|
|
3142
3143
|
warning: !!a,
|
|
3143
3144
|
text: o || i || a,
|
|
3144
|
-
enabled: o &&
|
|
3145
|
+
enabled: o && Y(o) || i && Y(i) || a && Y(a) || !1,
|
|
3145
3146
|
maxWidth: _,
|
|
3146
3147
|
display: "block",
|
|
3147
3148
|
children: A
|
|
3148
3149
|
}) });
|
|
3149
3150
|
}, Wc = (e) => {
|
|
3150
|
-
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onChange: c, onCreate: l = null, placeholder: u = "", small: f = !1, tabIndex: p = 0, onFocus: m = Ir, onBlur: g = Ir, searchable: _ = !0, clearable: b = !1, maxTooltipWidth: x, closeOnOptionActionClick: S, isInTable: T = !1, groupOrder: E, right: D = !1, width: O = null, autoLayerWidth: k = !1, testId: A } = e, j = d(W), M = n || j, N = v(null), [P, F] = y(0), {
|
|
3151
|
+
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onChange: c, onCreate: l = null, placeholder: u = "", small: f = !1, tabIndex: p = 0, onFocus: m = Ir, onBlur: g = Ir, searchable: _ = !0, clearable: b = !1, maxTooltipWidth: x, closeOnOptionActionClick: S, isInTable: T = !1, groupOrder: E, right: D = !1, width: O = null, autoLayerWidth: k = !1, testId: A } = e, j = d(W), M = n || j, N = v(null), [P, F] = y(0), { getTriggerWidth: I, onChangeSearch: L, onClickClearAll: R, closeLayer: z, handleChange: B, getLayerWidth: ee, searchValue: te, isOpen: ne, setIsOpen: V, visibleOptions: re, comboValue: ie, selectedItemId: ae, comboBoxStateRef: oe } = Ic({
|
|
3151
3152
|
options: o,
|
|
3152
|
-
selectedOptions: s,
|
|
3153
|
-
onChange: c,
|
|
3154
3153
|
onCreate: l,
|
|
3155
|
-
|
|
3156
|
-
|
|
3154
|
+
onChange: c,
|
|
3155
|
+
selectedOptions: s,
|
|
3157
3156
|
width: O,
|
|
3158
|
-
|
|
3157
|
+
small: f,
|
|
3159
3158
|
placeholder: u,
|
|
3159
|
+
autoLayerWidth: k,
|
|
3160
|
+
isMulti: t,
|
|
3160
3161
|
closeOnOptionActionClick: S,
|
|
3161
3162
|
searchable: _
|
|
3162
3163
|
});
|
|
3163
3164
|
return h(() => {
|
|
3164
|
-
|
|
3165
|
-
}, [
|
|
3165
|
+
ne && F(ee(N.current));
|
|
3166
|
+
}, [ee, ne]), /* @__PURE__ */ w(Mr, {
|
|
3166
3167
|
"aria-label": u || "Select",
|
|
3167
|
-
className:
|
|
3168
|
-
style: { width:
|
|
3168
|
+
className: ac.select,
|
|
3169
|
+
style: { width: I() },
|
|
3169
3170
|
isDisabled: M,
|
|
3170
3171
|
selectionMode: t ? "multiple" : "single",
|
|
3171
|
-
value:
|
|
3172
|
-
onChange:
|
|
3173
|
-
inputValue:
|
|
3174
|
-
onInputChange: L,
|
|
3175
|
-
items:
|
|
3172
|
+
value: ie,
|
|
3173
|
+
onChange: B,
|
|
3174
|
+
inputValue: te,
|
|
3175
|
+
onInputChange: _ ? L : void 0,
|
|
3176
|
+
items: re,
|
|
3176
3177
|
defaultFilter: () => !0,
|
|
3177
3178
|
allowsEmptyCollection: !0,
|
|
3178
3179
|
menuTrigger: "manual",
|
|
3179
|
-
onOpenChange:
|
|
3180
|
+
onOpenChange: V,
|
|
3180
3181
|
children: [
|
|
3181
|
-
/* @__PURE__ */ C(
|
|
3182
|
+
/* @__PURE__ */ C(oc, { stateRef: oe }),
|
|
3182
3183
|
/* @__PURE__ */ C(Uc, {
|
|
3183
3184
|
selectedOptions: s,
|
|
3184
|
-
searchValue:
|
|
3185
|
+
searchValue: te,
|
|
3185
3186
|
searchable: _,
|
|
3186
3187
|
clearable: b,
|
|
3187
3188
|
error: r,
|
|
@@ -3190,9 +3191,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3190
3191
|
small: f,
|
|
3191
3192
|
isInTable: T,
|
|
3192
3193
|
disabled: M,
|
|
3193
|
-
onClickClear:
|
|
3194
|
+
onClickClear: R,
|
|
3194
3195
|
tabIndex: p,
|
|
3195
|
-
isOpen:
|
|
3196
|
+
isOpen: ne,
|
|
3196
3197
|
triggerRef: N,
|
|
3197
3198
|
onFocus: m,
|
|
3198
3199
|
onBlur: g,
|
|
@@ -3202,20 +3203,20 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3202
3203
|
right: D,
|
|
3203
3204
|
testId: A
|
|
3204
3205
|
}),
|
|
3205
|
-
/* @__PURE__ */ C(
|
|
3206
|
-
className:
|
|
3206
|
+
/* @__PURE__ */ C(Ka, {
|
|
3207
|
+
className: ac.layerContainer,
|
|
3207
3208
|
placement: "bottom-start",
|
|
3208
3209
|
portalTriggerRef: N,
|
|
3209
3210
|
triggerRef: N,
|
|
3210
3211
|
offset: 0,
|
|
3211
|
-
children: /* @__PURE__ */ C(
|
|
3212
|
-
items:
|
|
3212
|
+
children: /* @__PURE__ */ C(Lc, {
|
|
3213
|
+
items: re,
|
|
3213
3214
|
optionsCount: o.length,
|
|
3214
|
-
selectedItemId:
|
|
3215
|
+
selectedItemId: ae,
|
|
3215
3216
|
width: P,
|
|
3216
3217
|
small: f,
|
|
3217
3218
|
isMulti: t,
|
|
3218
|
-
closeLayer:
|
|
3219
|
+
closeLayer: z,
|
|
3219
3220
|
testId: A && `${A}-layer`
|
|
3220
3221
|
})
|
|
3221
3222
|
})
|
|
@@ -3228,7 +3229,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3228
3229
|
if (typeof t == "object" && t && t.hasOwnProperty("label") && t.hasOwnProperty("value")) return t;
|
|
3229
3230
|
{
|
|
3230
3231
|
let n = typeof t == "object" && t && t.hasOwnProperty("value") ? t.value : t;
|
|
3231
|
-
return (Array.isArray(e) ? e.filter((e) => e.type !==
|
|
3232
|
+
return (Array.isArray(e) ? e.filter((e) => e.type !== Qa.HEADING).find((e) => e.value == n) : void 0) || (Gc(n) ? void 0 : {
|
|
3232
3233
|
value: n,
|
|
3233
3234
|
label: n
|
|
3234
3235
|
});
|
|
@@ -3259,7 +3260,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3259
3260
|
}
|
|
3260
3261
|
});
|
|
3261
3262
|
};
|
|
3262
|
-
return y ? /* @__PURE__ */ C(
|
|
3263
|
+
return y ? /* @__PURE__ */ C(ic, {
|
|
3263
3264
|
...p,
|
|
3264
3265
|
options: h,
|
|
3265
3266
|
selectedOption: g,
|
|
@@ -3338,7 +3339,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3338
3339
|
value: a.value
|
|
3339
3340
|
})
|
|
3340
3341
|
}),
|
|
3341
|
-
/* @__PURE__ */ C(
|
|
3342
|
+
/* @__PURE__ */ C(q, {
|
|
3342
3343
|
small: r,
|
|
3343
3344
|
round: !0,
|
|
3344
3345
|
basic: !0,
|
|
@@ -3346,7 +3347,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3346
3347
|
onClick: () => m("1"),
|
|
3347
3348
|
disabled: c || n === 1
|
|
3348
3349
|
}),
|
|
3349
|
-
/* @__PURE__ */ C(
|
|
3350
|
+
/* @__PURE__ */ C(q, {
|
|
3350
3351
|
small: r,
|
|
3351
3352
|
round: !0,
|
|
3352
3353
|
basic: !0,
|
|
@@ -3354,10 +3355,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3354
3355
|
onClick: () => m(String(Number(n) - 1)),
|
|
3355
3356
|
disabled: c || n === 1
|
|
3356
3357
|
}),
|
|
3357
|
-
/* @__PURE__ */ w(
|
|
3358
|
+
/* @__PURE__ */ w(bs, {
|
|
3358
3359
|
small: r,
|
|
3359
3360
|
width: "auto",
|
|
3360
|
-
children: [/* @__PURE__ */ C(
|
|
3361
|
+
children: [/* @__PURE__ */ C(Ss, {
|
|
3361
3362
|
right: !0,
|
|
3362
3363
|
value: u,
|
|
3363
3364
|
placeholder: String(n),
|
|
@@ -3367,7 +3368,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3367
3368
|
error: p
|
|
3368
3369
|
}), /* @__PURE__ */ w(ol, { children: ["of ", l] })]
|
|
3369
3370
|
}),
|
|
3370
|
-
/* @__PURE__ */ C(
|
|
3371
|
+
/* @__PURE__ */ C(q, {
|
|
3371
3372
|
small: r,
|
|
3372
3373
|
round: !0,
|
|
3373
3374
|
basic: !0,
|
|
@@ -3375,7 +3376,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3375
3376
|
onClick: () => m(String(Number(n) + 1)),
|
|
3376
3377
|
disabled: c || n === l
|
|
3377
3378
|
}),
|
|
3378
|
-
/* @__PURE__ */ C(
|
|
3379
|
+
/* @__PURE__ */ C(q, {
|
|
3379
3380
|
small: r,
|
|
3380
3381
|
round: !0,
|
|
3381
3382
|
basic: !0,
|
|
@@ -3396,14 +3397,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3396
3397
|
return !1;
|
|
3397
3398
|
};
|
|
3398
3399
|
return i || a || o() ? /* @__PURE__ */ w("div", {
|
|
3399
|
-
className:
|
|
3400
|
+
className: nc.footer,
|
|
3400
3401
|
"data-testid": `${r == null ? "pagination" : r}-footer`,
|
|
3401
3402
|
children: [a ? /* @__PURE__ */ C("div", {
|
|
3402
|
-
className:
|
|
3403
|
+
className: nc.section,
|
|
3403
3404
|
children: /* @__PURE__ */ C("div", { children: n })
|
|
3404
3405
|
}) : null, i || o() ? /* @__PURE__ */ w("div", {
|
|
3405
|
-
className:
|
|
3406
|
-
children: [e && o() ? /* @__PURE__ */ C(sl, { pagination: e }) : /* @__PURE__ */ C("div", {}), i && /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C(
|
|
3406
|
+
className: nc.section,
|
|
3407
|
+
children: [e && o() ? /* @__PURE__ */ C(sl, { pagination: e }) : /* @__PURE__ */ C("div", {}), i && /* @__PURE__ */ C("div", { children: /* @__PURE__ */ C(yo, { actions: t }) })]
|
|
3407
3408
|
}) : null]
|
|
3408
3409
|
}) : null;
|
|
3409
3410
|
}, ll = (e) => {
|
|
@@ -3476,7 +3477,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3476
3477
|
popover: "_popover_g4jsi_211",
|
|
3477
3478
|
disabledPointerEvents: "_disabledPointerEvents_g4jsi_214",
|
|
3478
3479
|
standaloneCheckbox: "_standaloneCheckbox_g4jsi_217"
|
|
3479
|
-
}, _l = ({ cell: e, columnAlignment: t, testId: n, type: r }) => /* @__PURE__ */ C(
|
|
3480
|
+
}, _l = ({ cell: e, columnAlignment: t, testId: n, type: r }) => /* @__PURE__ */ C(Ss, {
|
|
3480
3481
|
name: e.name,
|
|
3481
3482
|
value: e.value,
|
|
3482
3483
|
onChange: (t) => {
|
|
@@ -3557,7 +3558,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3557
3558
|
}, te = (e) => {
|
|
3558
3559
|
F(!1), u(e);
|
|
3559
3560
|
}, ne = T && !P && L ? E ? Dr(E(M)) : ((e) => x ? Cr(e, 2) : br(e, 4))(s) : M;
|
|
3560
|
-
return /* @__PURE__ */ C(
|
|
3561
|
+
return /* @__PURE__ */ C(Ss, {
|
|
3561
3562
|
type: "text",
|
|
3562
3563
|
name: I,
|
|
3563
3564
|
testId: m,
|
|
@@ -3654,10 +3655,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3654
3655
|
testId: n
|
|
3655
3656
|
}) : null
|
|
3656
3657
|
}), Cl = ({ cell: e, testId: t }) => {
|
|
3657
|
-
let n = d(W), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, s = (e) =>
|
|
3658
|
+
let n = d(W), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, s = (e) => Y(e);
|
|
3658
3659
|
return /* @__PURE__ */ C("div", {
|
|
3659
3660
|
className: X.inputWrapper,
|
|
3660
|
-
children: /* @__PURE__ */ C(
|
|
3661
|
+
children: /* @__PURE__ */ C(K, {
|
|
3661
3662
|
error: !!r,
|
|
3662
3663
|
warning: !!i,
|
|
3663
3664
|
text: a || r || i,
|
|
@@ -3681,10 +3682,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3681
3682
|
});
|
|
3682
3683
|
}, wl = ({ cell: e, testId: t }) => /* @__PURE__ */ C("div", {
|
|
3683
3684
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3684
|
-
children: /* @__PURE__ */ C(
|
|
3685
|
+
children: /* @__PURE__ */ C(K, {
|
|
3685
3686
|
text: e.tooltip,
|
|
3686
3687
|
enabled: !!e.tooltip,
|
|
3687
|
-
children: /* @__PURE__ */ C(
|
|
3688
|
+
children: /* @__PURE__ */ C(Sa, {
|
|
3688
3689
|
label: e.label,
|
|
3689
3690
|
checked: e.checked,
|
|
3690
3691
|
isInTable: !0,
|
|
@@ -3735,7 +3736,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3735
3736
|
N(e), P(e);
|
|
3736
3737
|
}, I = () => /* @__PURE__ */ C("div", {
|
|
3737
3738
|
className: Tl.button,
|
|
3738
|
-
children: /* @__PURE__ */ C(
|
|
3739
|
+
children: /* @__PURE__ */ C(q, {
|
|
3739
3740
|
basic: !0,
|
|
3740
3741
|
small: !0,
|
|
3741
3742
|
round: !0,
|
|
@@ -3749,7 +3750,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3749
3750
|
})
|
|
3750
3751
|
}), L = () => /* @__PURE__ */ C("div", {
|
|
3751
3752
|
className: Tl.button,
|
|
3752
|
-
children: /* @__PURE__ */ C(
|
|
3753
|
+
children: /* @__PURE__ */ C(q, {
|
|
3753
3754
|
basic: !0,
|
|
3754
3755
|
small: !0,
|
|
3755
3756
|
round: !0,
|
|
@@ -3806,7 +3807,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3806
3807
|
onPointerDown: (e) => e.stopPropagation(),
|
|
3807
3808
|
style: a,
|
|
3808
3809
|
type: "button",
|
|
3809
|
-
children: /* @__PURE__ */ C(
|
|
3810
|
+
children: /* @__PURE__ */ C(K, {
|
|
3810
3811
|
text: /* @__PURE__ */ w(S, { children: [
|
|
3811
3812
|
t,
|
|
3812
3813
|
t ? ": " : "",
|
|
@@ -3828,7 +3829,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3828
3829
|
onPointerDown: () => k(r),
|
|
3829
3830
|
onPointerUp: () => k(null),
|
|
3830
3831
|
style: z(n),
|
|
3831
|
-
children: f && O === r && /* @__PURE__ */ C(
|
|
3832
|
+
children: f && O === r && /* @__PURE__ */ C(K, {
|
|
3832
3833
|
display: "block",
|
|
3833
3834
|
text: p(Dl(j, h)),
|
|
3834
3835
|
forceOpen: !0,
|
|
@@ -3869,19 +3870,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3869
3870
|
let { tooltip: t, icon: n } = e;
|
|
3870
3871
|
return /* @__PURE__ */ C("div", {
|
|
3871
3872
|
className: X.iconCellWrapper,
|
|
3872
|
-
children: /* @__PURE__ */ C(
|
|
3873
|
+
children: /* @__PURE__ */ C(K, {
|
|
3873
3874
|
text: t,
|
|
3874
|
-
enabled: !!t &&
|
|
3875
|
+
enabled: !!t && Y(t),
|
|
3875
3876
|
display: "flex",
|
|
3876
3877
|
placement: "top-center",
|
|
3877
3878
|
children: /* @__PURE__ */ C(G, { icon: n })
|
|
3878
3879
|
})
|
|
3879
3880
|
});
|
|
3880
|
-
}, Ml = ({ cell: e }) => /* @__PURE__ */ C(
|
|
3881
|
+
}, Ml = ({ cell: e }) => /* @__PURE__ */ C(yo, { actions: e.actions }), Nl = ({ cell: e }) => {
|
|
3881
3882
|
let { helpIcon: t } = e;
|
|
3882
3883
|
return t ? /* @__PURE__ */ C("div", {
|
|
3883
3884
|
className: X.icon,
|
|
3884
|
-
children: /* @__PURE__ */ C(
|
|
3885
|
+
children: /* @__PURE__ */ C(xa, {
|
|
3885
3886
|
onClick: t.onClick,
|
|
3886
3887
|
text: t.tooltip
|
|
3887
3888
|
})
|
|
@@ -3890,7 +3891,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3890
3891
|
let { libraryIcon: t } = e;
|
|
3891
3892
|
return t ? /* @__PURE__ */ C("div", {
|
|
3892
3893
|
className: X.icon,
|
|
3893
|
-
children: /* @__PURE__ */ C(
|
|
3894
|
+
children: /* @__PURE__ */ C(xa, {
|
|
3894
3895
|
onClick: t.onClick,
|
|
3895
3896
|
text: t.tooltip,
|
|
3896
3897
|
icon: U.LIBRARY
|
|
@@ -3900,13 +3901,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3900
3901
|
let { hasSort: t, sort: n, sortPriority: r } = e;
|
|
3901
3902
|
return t ? /* @__PURE__ */ w("span", {
|
|
3902
3903
|
className: X.sortingCellIcon,
|
|
3903
|
-
children: [n === "down" ? /* @__PURE__ */ C(
|
|
3904
|
+
children: [n === "down" ? /* @__PURE__ */ C(ns, {
|
|
3904
3905
|
link: !0,
|
|
3905
3906
|
children: /* @__PURE__ */ C(G, { icon: U.SORT_ASCENDING })
|
|
3906
|
-
}) : n === "up" ? /* @__PURE__ */ C(
|
|
3907
|
+
}) : n === "up" ? /* @__PURE__ */ C(ns, {
|
|
3907
3908
|
link: !0,
|
|
3908
3909
|
children: /* @__PURE__ */ C(G, { icon: U.SORT_DESCENDING })
|
|
3909
|
-
}) : /* @__PURE__ */ C(
|
|
3910
|
+
}) : /* @__PURE__ */ C(ns, {
|
|
3910
3911
|
faint: !0,
|
|
3911
3912
|
children: /* @__PURE__ */ C(G, { icon: U.SORT_DESCENDING })
|
|
3912
3913
|
}), r && n ? /* @__PURE__ */ C("sup", { children: r }) : null]
|
|
@@ -3926,11 +3927,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3926
3927
|
});
|
|
3927
3928
|
return /* @__PURE__ */ C("div", {
|
|
3928
3929
|
className: X.inputWrapper,
|
|
3929
|
-
children: /* @__PURE__ */ C(
|
|
3930
|
+
children: /* @__PURE__ */ C(K, {
|
|
3930
3931
|
error: !!r,
|
|
3931
3932
|
warning: !!i,
|
|
3932
3933
|
text: a || r || i,
|
|
3933
|
-
enabled: a &&
|
|
3934
|
+
enabled: a && Y(a) || r && Y(r) || i && Y(i) || !1,
|
|
3934
3935
|
maxWidth: o,
|
|
3935
3936
|
display: "block",
|
|
3936
3937
|
children: u
|
|
@@ -3938,7 +3939,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3938
3939
|
});
|
|
3939
3940
|
}, Ll = ({ cell: e, testId: t }) => {
|
|
3940
3941
|
let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
|
|
3941
|
-
return /* @__PURE__ */ C(
|
|
3942
|
+
return /* @__PURE__ */ C(ko, {
|
|
3942
3943
|
content: n,
|
|
3943
3944
|
fullWidth: r,
|
|
3944
3945
|
closeOnOutsideClick: i,
|
|
@@ -3986,7 +3987,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3986
3987
|
style: { textTransform: f },
|
|
3987
3988
|
children: t
|
|
3988
3989
|
})]
|
|
3989
|
-
}), g && /* @__PURE__ */ C(
|
|
3990
|
+
}), g && /* @__PURE__ */ C(xa, {
|
|
3990
3991
|
text: l,
|
|
3991
3992
|
onClick: u
|
|
3992
3993
|
})]
|
|
@@ -4217,7 +4218,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4217
4218
|
}), !!d && ri(/* @__PURE__ */ C(ai, {
|
|
4218
4219
|
dropAnimation: null,
|
|
4219
4220
|
children: /* @__PURE__ */ C("table", {
|
|
4220
|
-
className: x(
|
|
4221
|
+
className: x($s.table, $s.dragOverlay),
|
|
4221
4222
|
children: /* @__PURE__ */ C("tbody", { children: /* @__PURE__ */ C(ql, {
|
|
4222
4223
|
rowIndex: Number(d),
|
|
4223
4224
|
row: l[Number(d)],
|
|
@@ -4255,7 +4256,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4255
4256
|
});
|
|
4256
4257
|
return l && (d.shouldAdjustScrollPositionOnItemSizeChange = () => !1), /* @__PURE__ */ C("div", {
|
|
4257
4258
|
id: "scrollWrapper",
|
|
4258
|
-
className: x(
|
|
4259
|
+
className: x($s.scroll, $s.virtualScroll),
|
|
4259
4260
|
ref: r,
|
|
4260
4261
|
children: t({
|
|
4261
4262
|
virtualizer: d,
|
|
@@ -4302,7 +4303,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4302
4303
|
})] })
|
|
4303
4304
|
}) : /* @__PURE__ */ w("div", {
|
|
4304
4305
|
id: "scrollWrapper",
|
|
4305
|
-
className:
|
|
4306
|
+
className: $s.scroll,
|
|
4306
4307
|
children: [/* @__PURE__ */ C(Ql, {
|
|
4307
4308
|
isVirtualized: !1,
|
|
4308
4309
|
activeIndex: a,
|
|
@@ -4333,7 +4334,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4333
4334
|
}, R = I ? p.concat(L) : p, z = {
|
|
4334
4335
|
...l,
|
|
4335
4336
|
rows: R
|
|
4336
|
-
}, B = x(
|
|
4337
|
+
}, B = x($s.wrapper, D ? $s.bordered : "");
|
|
4337
4338
|
return /* @__PURE__ */ w("div", {
|
|
4338
4339
|
className: B,
|
|
4339
4340
|
style: {
|
|
@@ -4342,7 +4343,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4342
4343
|
display: k === "auto" ? "inline-flex" : "flex"
|
|
4343
4344
|
},
|
|
4344
4345
|
children: [
|
|
4345
|
-
/* @__PURE__ */ C(
|
|
4346
|
+
/* @__PURE__ */ C(tc, {
|
|
4346
4347
|
actions: m,
|
|
4347
4348
|
actionsRight: h,
|
|
4348
4349
|
name: f,
|
|
@@ -4361,7 +4362,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4361
4362
|
children: ({ dropDisabled: e }) => /* @__PURE__ */ C($l, {
|
|
4362
4363
|
table: z,
|
|
4363
4364
|
children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ w("table", {
|
|
4364
|
-
className: x(
|
|
4365
|
+
className: x($s.table, y ? $s.striped : ""),
|
|
4365
4366
|
"data-testid": b,
|
|
4366
4367
|
style: n,
|
|
4367
4368
|
children: [/* @__PURE__ */ C("thead", { children: j.map((e, t) => /* @__PURE__ */ C(ql, {
|
|
@@ -4626,7 +4627,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4626
4627
|
children: r.map((e, t) => /* @__PURE__ */ C("li", { children: e }, t))
|
|
4627
4628
|
})
|
|
4628
4629
|
};
|
|
4629
|
-
}, lu = ({ errors: e, t }) => e.length ? /* @__PURE__ */ C(
|
|
4630
|
+
}, lu = ({ errors: e, t }) => e.length ? /* @__PURE__ */ C(Qs, { message: cu({
|
|
4630
4631
|
errors: e,
|
|
4631
4632
|
t
|
|
4632
4633
|
}) }) : null, uu = {
|
|
@@ -4670,7 +4671,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4670
4671
|
}),
|
|
4671
4672
|
n !== "" && /* @__PURE__ */ C("div", {
|
|
4672
4673
|
className: uu.text,
|
|
4673
|
-
children: /* @__PURE__ */ C(
|
|
4674
|
+
children: /* @__PURE__ */ C(ns, {
|
|
4674
4675
|
faint: !0,
|
|
4675
4676
|
children: n
|
|
4676
4677
|
})
|
|
@@ -4923,15 +4924,15 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4923
4924
|
}
|
|
4924
4925
|
return e.filter((e, t) => l.has(t));
|
|
4925
4926
|
}, Ku = ({ id: e, message: t = {
|
|
4926
|
-
type:
|
|
4927
|
+
type: Ks.INFO,
|
|
4927
4928
|
content: ""
|
|
4928
4929
|
}, autoClose: n = 6e3, onClose: r }) => {
|
|
4929
|
-
let { type: i =
|
|
4930
|
+
let { type: i = Ks.INFO } = t == null ? {} : t, a = ({ closeToast: t }) => /* @__PURE__ */ C(Js, {
|
|
4930
4931
|
type: i,
|
|
4931
4932
|
onClose: t,
|
|
4932
4933
|
isInToast: !0,
|
|
4933
4934
|
testId: e === void 0 ? void 0 : e.toString() + "-dismiss"
|
|
4934
|
-
}), o = /* @__PURE__ */ C(
|
|
4935
|
+
}), o = /* @__PURE__ */ C(Qs, { message: {
|
|
4935
4936
|
...t,
|
|
4936
4937
|
visible: !0,
|
|
4937
4938
|
width: "100%",
|
|
@@ -4939,9 +4940,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
4939
4940
|
withDismiss: !1
|
|
4940
4941
|
} }), s = (() => {
|
|
4941
4942
|
switch (t == null ? void 0 : t.type) {
|
|
4942
|
-
case
|
|
4943
|
-
case
|
|
4944
|
-
case
|
|
4943
|
+
case Ks.SUCCESS: return "success";
|
|
4944
|
+
case Ks.WARNING: return "warning";
|
|
4945
|
+
case Ks.ERROR: return "error";
|
|
4945
4946
|
default: return "info";
|
|
4946
4947
|
}
|
|
4947
4948
|
})();
|
|
@@ -5009,7 +5010,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5009
5010
|
style: { textTransform: f },
|
|
5010
5011
|
children: t
|
|
5011
5012
|
})]
|
|
5012
|
-
}), m && /* @__PURE__ */ C(
|
|
5013
|
+
}), m && /* @__PURE__ */ C(xa, {
|
|
5013
5014
|
text: l,
|
|
5014
5015
|
onClick: u
|
|
5015
5016
|
})]
|
|
@@ -5025,7 +5026,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5025
5026
|
errors: []
|
|
5026
5027
|
}
|
|
5027
5028
|
});
|
|
5028
|
-
|
|
5029
|
+
ks("v", async () => {
|
|
5029
5030
|
let e = await a({ showSuccessToast: !1 });
|
|
5030
5031
|
e && A(e);
|
|
5031
5032
|
}, [a], {
|
|
@@ -5077,9 +5078,9 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5077
5078
|
} }, f);
|
|
5078
5079
|
}, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te = pu(j), ne = fu(j), V = /* @__PURE__ */ w(S, { children: [
|
|
5079
5080
|
/* @__PURE__ */ w("div", {
|
|
5080
|
-
className:
|
|
5081
|
+
className: Ws.headerContainer,
|
|
5081
5082
|
children: [
|
|
5082
|
-
/* @__PURE__ */ C(
|
|
5083
|
+
/* @__PURE__ */ C(K, {
|
|
5083
5084
|
text: l("downsampleTooltip"),
|
|
5084
5085
|
children: /* @__PURE__ */ C(Xu, {
|
|
5085
5086
|
label: l("downsampled"),
|
|
@@ -5088,18 +5089,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5088
5089
|
disabled: ee || !R
|
|
5089
5090
|
})
|
|
5090
5091
|
}),
|
|
5091
|
-
/* @__PURE__ */ C(
|
|
5092
|
+
/* @__PURE__ */ C(K, {
|
|
5092
5093
|
text: l("deletePastedContent"),
|
|
5093
|
-
children: /* @__PURE__ */ C(
|
|
5094
|
+
children: /* @__PURE__ */ C(q, {
|
|
5094
5095
|
name: "clearReview",
|
|
5095
5096
|
icon: "delete",
|
|
5096
5097
|
small: !0,
|
|
5097
5098
|
onClick: P
|
|
5098
5099
|
})
|
|
5099
5100
|
}),
|
|
5100
|
-
/* @__PURE__ */ C(
|
|
5101
|
+
/* @__PURE__ */ C(K, {
|
|
5101
5102
|
text: l("openHelp"),
|
|
5102
|
-
children: /* @__PURE__ */ C(
|
|
5103
|
+
children: /* @__PURE__ */ C(q, {
|
|
5103
5104
|
name: "help",
|
|
5104
5105
|
icon: "help",
|
|
5105
5106
|
small: !0,
|
|
@@ -5108,30 +5109,30 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5108
5109
|
})
|
|
5109
5110
|
]
|
|
5110
5111
|
}),
|
|
5111
|
-
h && /* @__PURE__ */ C(
|
|
5112
|
+
h && /* @__PURE__ */ C(Hs, {
|
|
5112
5113
|
validationRules: o,
|
|
5113
5114
|
t: l
|
|
5114
5115
|
}),
|
|
5115
5116
|
ee ? /* @__PURE__ */ C("div", {
|
|
5116
|
-
className:
|
|
5117
|
+
className: Ws.resultContainer,
|
|
5117
5118
|
children: /* @__PURE__ */ C(du, {
|
|
5118
5119
|
text: null,
|
|
5119
5120
|
children: /* @__PURE__ */ w("div", {
|
|
5120
|
-
className:
|
|
5121
|
+
className: Ws.emptyState,
|
|
5121
5122
|
children: [
|
|
5122
5123
|
/* @__PURE__ */ C("p", {
|
|
5123
|
-
className:
|
|
5124
|
+
className: Ws.emptyMainText,
|
|
5124
5125
|
children: l("noDataPastedYet")
|
|
5125
5126
|
}),
|
|
5126
5127
|
/* @__PURE__ */ w("p", {
|
|
5127
|
-
className:
|
|
5128
|
+
className: Ws.emptyHint,
|
|
5128
5129
|
children: [
|
|
5129
5130
|
"(",
|
|
5130
5131
|
l("pasteShortcutHint"),
|
|
5131
5132
|
")"
|
|
5132
5133
|
]
|
|
5133
5134
|
}),
|
|
5134
|
-
/* @__PURE__ */ C(
|
|
5135
|
+
/* @__PURE__ */ C(q, {
|
|
5135
5136
|
name: "paste",
|
|
5136
5137
|
icon: "paste",
|
|
5137
5138
|
label: l("pasteFromClipboard"),
|
|
@@ -5148,24 +5149,24 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5148
5149
|
})
|
|
5149
5150
|
})
|
|
5150
5151
|
}) : /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ w("div", {
|
|
5151
|
-
className:
|
|
5152
|
+
className: Ws.messagesContainer,
|
|
5152
5153
|
children: [
|
|
5153
5154
|
B ? /* @__PURE__ */ C(lu, {
|
|
5154
5155
|
errors: z,
|
|
5155
5156
|
t: l
|
|
5156
5157
|
}) : null,
|
|
5157
|
-
te && /* @__PURE__ */ C(
|
|
5158
|
+
te && /* @__PURE__ */ C(ns, {
|
|
5158
5159
|
muted: !0,
|
|
5159
5160
|
children: l("commasAsDecimals")
|
|
5160
5161
|
}),
|
|
5161
|
-
ne && /* @__PURE__ */ C(
|
|
5162
|
+
ne && /* @__PURE__ */ C(Qs, { message: {
|
|
5162
5163
|
visible: !0,
|
|
5163
5164
|
icon: !0,
|
|
5164
5165
|
width: "100%",
|
|
5165
5166
|
content: l("extraSeparators"),
|
|
5166
5167
|
type: "Warning"
|
|
5167
5168
|
} }),
|
|
5168
|
-
L && /* @__PURE__ */ C(
|
|
5169
|
+
L && /* @__PURE__ */ C(Qs, { message: {
|
|
5169
5170
|
visible: !0,
|
|
5170
5171
|
icon: !0,
|
|
5171
5172
|
width: "100%",
|
|
@@ -5182,21 +5183,21 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5182
5183
|
}))
|
|
5183
5184
|
})] })
|
|
5184
5185
|
] });
|
|
5185
|
-
return /* @__PURE__ */ C(
|
|
5186
|
+
return /* @__PURE__ */ C(Ms, {
|
|
5186
5187
|
visible: m,
|
|
5187
5188
|
centered: !0,
|
|
5188
5189
|
onEscape: i,
|
|
5189
|
-
children: /* @__PURE__ */ C(
|
|
5190
|
+
children: /* @__PURE__ */ C(us, { dialog: {
|
|
5190
5191
|
width: "60vw",
|
|
5191
5192
|
height: "650px",
|
|
5192
5193
|
scroll: !0,
|
|
5193
5194
|
heading: l("pasteWithReviewRoundBrackets"),
|
|
5194
5195
|
content: /* @__PURE__ */ C("div", {
|
|
5195
|
-
className:
|
|
5196
|
+
className: Ws.modalContent,
|
|
5196
5197
|
children: V
|
|
5197
5198
|
}),
|
|
5198
5199
|
footer: /* @__PURE__ */ w(S, { children: [
|
|
5199
|
-
/* @__PURE__ */ C(
|
|
5200
|
+
/* @__PURE__ */ C(q, {
|
|
5200
5201
|
label: l("okay"),
|
|
5201
5202
|
colored: !0,
|
|
5202
5203
|
onClick: () => f(() => I()),
|
|
@@ -5204,11 +5205,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5204
5205
|
loading: d,
|
|
5205
5206
|
testId: `${p}-paste-with-review-modal-button-okay`
|
|
5206
5207
|
}),
|
|
5207
|
-
/* @__PURE__ */ C(
|
|
5208
|
+
/* @__PURE__ */ C(q, {
|
|
5208
5209
|
label: l("cancel"),
|
|
5209
5210
|
onClick: () => i()
|
|
5210
5211
|
}),
|
|
5211
|
-
L && /* @__PURE__ */ C(
|
|
5212
|
+
L && /* @__PURE__ */ C(q, {
|
|
5212
5213
|
label: b,
|
|
5213
5214
|
onClick: x
|
|
5214
5215
|
})
|
|
@@ -5224,10 +5225,10 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5224
5225
|
onClose: () => r({ name: e }),
|
|
5225
5226
|
...o
|
|
5226
5227
|
}) }, e);
|
|
5227
|
-
}) }) : null, $u = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ C(
|
|
5228
|
+
}) }) : null, $u = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ C(_o, {
|
|
5228
5229
|
loading: !0,
|
|
5229
5230
|
menu: {
|
|
5230
|
-
component: /* @__PURE__ */ C(
|
|
5231
|
+
component: /* @__PURE__ */ C(q, {
|
|
5231
5232
|
basic: !0,
|
|
5232
5233
|
icon: t,
|
|
5233
5234
|
colored: "muted",
|
|
@@ -5676,7 +5677,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5676
5677
|
}] : []
|
|
5677
5678
|
];
|
|
5678
5679
|
return /* @__PURE__ */ w("span", { children: [
|
|
5679
|
-
R && /* @__PURE__ */ C(
|
|
5680
|
+
R && /* @__PURE__ */ C(ka, {
|
|
5680
5681
|
small: !0,
|
|
5681
5682
|
dark: !0
|
|
5682
5683
|
}),
|
|
@@ -5701,13 +5702,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5701
5702
|
startTransition: z,
|
|
5702
5703
|
testId: n
|
|
5703
5704
|
}),
|
|
5704
|
-
A && /* @__PURE__ */ C(
|
|
5705
|
+
A && /* @__PURE__ */ C(Us, {
|
|
5705
5706
|
visible: A,
|
|
5706
5707
|
setModalVisibility: V,
|
|
5707
5708
|
validationRules: u,
|
|
5708
5709
|
t: I
|
|
5709
5710
|
}),
|
|
5710
|
-
j && t && /* @__PURE__ */ C(
|
|
5711
|
+
j && t && /* @__PURE__ */ C(Bs, {
|
|
5711
5712
|
visible: O,
|
|
5712
5713
|
prompt: M,
|
|
5713
5714
|
onUpload: F,
|
|
@@ -5745,7 +5746,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5745
5746
|
}
|
|
5746
5747
|
}), c.current && (c.current.value = "");
|
|
5747
5748
|
};
|
|
5748
|
-
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(
|
|
5749
|
+
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(q, {
|
|
5749
5750
|
...o,
|
|
5750
5751
|
onClick: l
|
|
5751
5752
|
}), /* @__PURE__ */ C("input", {
|
|
@@ -5780,22 +5781,22 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5780
5781
|
children: [e, /* @__PURE__ */ w("div", {
|
|
5781
5782
|
className: md.icons,
|
|
5782
5783
|
children: [
|
|
5783
|
-
(n || i) && /* @__PURE__ */ C(
|
|
5784
|
+
(n || i) && /* @__PURE__ */ C(xa, {
|
|
5784
5785
|
text: n,
|
|
5785
5786
|
onClick: i,
|
|
5786
5787
|
maxWidth: r
|
|
5787
5788
|
}),
|
|
5788
|
-
o && /* @__PURE__ */ C(
|
|
5789
|
+
o && /* @__PURE__ */ C(xa, {
|
|
5789
5790
|
text: o,
|
|
5790
5791
|
icon: U.INFO
|
|
5791
5792
|
}),
|
|
5792
|
-
a && a.visible && a.onClick && /* @__PURE__ */ C(
|
|
5793
|
+
a && a.visible && a.onClick && /* @__PURE__ */ C(xa, {
|
|
5793
5794
|
onClick: a.onClick,
|
|
5794
5795
|
icon: a.active ? U.LOCK : U.UNLOCK,
|
|
5795
5796
|
active: a.active,
|
|
5796
5797
|
testId: a.testId
|
|
5797
5798
|
}),
|
|
5798
|
-
s && /* @__PURE__ */ C(
|
|
5799
|
+
s && /* @__PURE__ */ C(xa, {
|
|
5799
5800
|
text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
|
|
5800
5801
|
onClick: s.onClick,
|
|
5801
5802
|
icon: U.LIBRARY
|
|
@@ -5909,7 +5910,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5909
5910
|
}),
|
|
5910
5911
|
e && /* @__PURE__ */ C("div", {
|
|
5911
5912
|
className: Z.headerTitle,
|
|
5912
|
-
children: /* @__PURE__ */ C(
|
|
5913
|
+
children: /* @__PURE__ */ C(ss, {
|
|
5913
5914
|
top: !0,
|
|
5914
5915
|
marginBottom: 0,
|
|
5915
5916
|
children: e
|
|
@@ -5919,13 +5920,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5919
5920
|
className: Z.right,
|
|
5920
5921
|
children: /* @__PURE__ */ C("div", {
|
|
5921
5922
|
className: Z.actions,
|
|
5922
|
-
children: /* @__PURE__ */ C(
|
|
5923
|
+
children: /* @__PURE__ */ C(yo, { actions: t })
|
|
5923
5924
|
})
|
|
5924
5925
|
})
|
|
5925
5926
|
]
|
|
5926
5927
|
})), Cd = ({ label: e }) => e ? /* @__PURE__ */ C("span", {
|
|
5927
5928
|
className: Z.label,
|
|
5928
|
-
children: /* @__PURE__ */ C(
|
|
5929
|
+
children: /* @__PURE__ */ C(lo, {
|
|
5929
5930
|
color: e.color,
|
|
5930
5931
|
title: e.value,
|
|
5931
5932
|
small: e.small
|
|
@@ -5940,7 +5941,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5940
5941
|
"data-testid": n,
|
|
5941
5942
|
children: [e, t && t.tooltip && t.tooltip.text ? /* @__PURE__ */ C("span", {
|
|
5942
5943
|
className: Z.iconTooltipMargin,
|
|
5943
|
-
children: /* @__PURE__ */ C(
|
|
5944
|
+
children: /* @__PURE__ */ C(K, {
|
|
5944
5945
|
text: t.tooltip.text,
|
|
5945
5946
|
maxWidth: "350px",
|
|
5946
5947
|
children: r
|
|
@@ -5956,7 +5957,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5956
5957
|
icon: n,
|
|
5957
5958
|
testId: o && `${o}-name`
|
|
5958
5959
|
});
|
|
5959
|
-
return a && (s = /* @__PURE__ */ C(
|
|
5960
|
+
return a && (s = /* @__PURE__ */ C(lo, {
|
|
5960
5961
|
small: !0,
|
|
5961
5962
|
margin: "-2px",
|
|
5962
5963
|
title: "!",
|
|
@@ -5977,7 +5978,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
5977
5978
|
})
|
|
5978
5979
|
]
|
|
5979
5980
|
});
|
|
5980
|
-
}, Ed = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ C(
|
|
5981
|
+
}, Ed = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ C(lo, {
|
|
5981
5982
|
color: "rgba(0,0,0,0.25)",
|
|
5982
5983
|
title: e.metaCount
|
|
5983
5984
|
}), Dd = ({ item: e, expanding: t }) => {
|
|
@@ -6020,7 +6021,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6020
6021
|
className: Z.right,
|
|
6021
6022
|
children: [/* @__PURE__ */ C(Ed, { item: e }), !(o || i) && a && /* @__PURE__ */ C("div", {
|
|
6022
6023
|
className: Z.actions,
|
|
6023
|
-
children: /* @__PURE__ */ C(
|
|
6024
|
+
children: /* @__PURE__ */ C(yo, { actions: (r = e.actions) == null ? [] : r })
|
|
6024
6025
|
})]
|
|
6025
6026
|
})
|
|
6026
6027
|
]
|
|
@@ -6068,7 +6069,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6068
6069
|
className: Z.right,
|
|
6069
6070
|
children: [/* @__PURE__ */ C(Ed, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ C("div", {
|
|
6070
6071
|
className: Z.actions,
|
|
6071
|
-
children: /* @__PURE__ */ C(
|
|
6072
|
+
children: /* @__PURE__ */ C(yo, { actions: t.actions })
|
|
6072
6073
|
})]
|
|
6073
6074
|
})
|
|
6074
6075
|
]
|
|
@@ -6269,7 +6270,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6269
6270
|
let { key: n, selected: r, label: i, disabled: a, testId: o, helpText: s, onClickHelp: c, textTransform: l } = e;
|
|
6270
6271
|
return /* @__PURE__ */ C("div", {
|
|
6271
6272
|
className: Id.item,
|
|
6272
|
-
children: /* @__PURE__ */ C(
|
|
6273
|
+
children: /* @__PURE__ */ C(Sa, {
|
|
6273
6274
|
label: i,
|
|
6274
6275
|
noMargin: !0,
|
|
6275
6276
|
checked: r,
|
|
@@ -6321,14 +6322,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6321
6322
|
children: "Invert"
|
|
6322
6323
|
})
|
|
6323
6324
|
]
|
|
6324
|
-
}), /* @__PURE__ */ C(
|
|
6325
|
+
}), /* @__PURE__ */ C(is, { margin: 0 })] }), e.map((n, r) => {
|
|
6325
6326
|
switch (n.type) {
|
|
6326
6327
|
case zd.HEADING:
|
|
6327
6328
|
var i;
|
|
6328
6329
|
return /* @__PURE__ */ C(Rd, { label: n.label }, (i = n.key) == null ? r : i);
|
|
6329
6330
|
case zd.DIVIDER:
|
|
6330
6331
|
var a;
|
|
6331
|
-
return /* @__PURE__ */ C(
|
|
6332
|
+
return /* @__PURE__ */ C(is, { margin: 0 }, (a = n.key) == null ? r : a);
|
|
6332
6333
|
default:
|
|
6333
6334
|
var o;
|
|
6334
6335
|
return /* @__PURE__ */ C(Ld, {
|
|
@@ -6343,7 +6344,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6343
6344
|
}, (o = n.key) == null ? r : o);
|
|
6344
6345
|
}
|
|
6345
6346
|
})]
|
|
6346
|
-
}), Hd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ C(
|
|
6347
|
+
}), Hd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ C(_o, {
|
|
6347
6348
|
testId: c,
|
|
6348
6349
|
disabled: t,
|
|
6349
6350
|
menu: {
|
|
@@ -6479,7 +6480,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6479
6480
|
"data-testid": i,
|
|
6480
6481
|
children: [/* @__PURE__ */ C("div", {
|
|
6481
6482
|
className: Yd.richTextToolbar,
|
|
6482
|
-
children: u.map((e, n) => /* @__PURE__ */ C(
|
|
6483
|
+
children: u.map((e, n) => /* @__PURE__ */ C(q, {
|
|
6483
6484
|
small: !0,
|
|
6484
6485
|
round: !0,
|
|
6485
6486
|
basic: !0,
|
|
@@ -6707,7 +6708,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6707
6708
|
className: cf.mention,
|
|
6708
6709
|
children: e
|
|
6709
6710
|
}), pf = { row: "_row_n16je_1" }, mf = ({ alignItems: t = "initial", justifyContent: r = "initial", children: i = null, flex: a = !1, height: o = "auto", marginBottom: c = "0", marginTop: l = "0", spacing: u = "var(--padding)", wrap: d = !1, testId: f = null }) => {
|
|
6710
|
-
let p = typeof u == "number" ? `${u}px` : u, m = (i === null || i === !1 ? [] : Array.isArray(i) ? i.filter((e) => s(e)) : [i]).map((t, r) => /* @__PURE__ */ C(n, { children: t.type ===
|
|
6711
|
+
let p = typeof u == "number" ? `${u}px` : u, m = (i === null || i === !1 ? [] : Array.isArray(i) ? i.filter((e) => s(e)) : [i]).map((t, r) => /* @__PURE__ */ C(n, { children: t.type === $o ? e.cloneElement(t, { spacing: p }) : t }, r));
|
|
6711
6712
|
return /* @__PURE__ */ C("div", {
|
|
6712
6713
|
className: x(pf.row),
|
|
6713
6714
|
style: {
|
|
@@ -6745,7 +6746,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6745
6746
|
experimental: "_experimental_t1w93_159",
|
|
6746
6747
|
active: "_active_t1w93_163",
|
|
6747
6748
|
icon: "_icon_t1w93_167"
|
|
6748
|
-
}, gf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(
|
|
6749
|
+
}, gf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(K, {
|
|
6749
6750
|
text: t,
|
|
6750
6751
|
enabled: !e,
|
|
6751
6752
|
placement: "right-center",
|
|
@@ -6755,7 +6756,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6755
6756
|
display: "block",
|
|
6756
6757
|
children: /* @__PURE__ */ C("span", {
|
|
6757
6758
|
className: hf.icon,
|
|
6758
|
-
children: /* @__PURE__ */ C(
|
|
6759
|
+
children: /* @__PURE__ */ C(lo, {
|
|
6759
6760
|
small: !0,
|
|
6760
6761
|
title: r ? "!" : void 0,
|
|
6761
6762
|
margin: 4,
|
|
@@ -6795,7 +6796,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6795
6796
|
let [a, o] = y(t), s = (e, t, n, r) => {
|
|
6796
6797
|
e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), o(!1);
|
|
6797
6798
|
}, c = e.sections.length > 0;
|
|
6798
|
-
return /* @__PURE__ */ C(
|
|
6799
|
+
return /* @__PURE__ */ C(_s, {
|
|
6799
6800
|
fixed: !0,
|
|
6800
6801
|
open: a,
|
|
6801
6802
|
top: r,
|
|
@@ -6804,7 +6805,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
6804
6805
|
buttonPosition: Ii.BOTTOM,
|
|
6805
6806
|
buttonAnimate: !0,
|
|
6806
6807
|
testId: i,
|
|
6807
|
-
button: c && /* @__PURE__ */ C(
|
|
6808
|
+
button: c && /* @__PURE__ */ C(q, {
|
|
6808
6809
|
onClick: (e) => {
|
|
6809
6810
|
e.shiftKey && n && n(e), o(!a);
|
|
6810
6811
|
},
|
|
@@ -7064,7 +7065,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7064
7065
|
o = Ar(jr(e, V));
|
|
7065
7066
|
}
|
|
7066
7067
|
return {
|
|
7067
|
-
type:
|
|
7068
|
+
type: Qa.OPTION,
|
|
7068
7069
|
inline: !0,
|
|
7069
7070
|
onClick: () => {
|
|
7070
7071
|
kr(i).valid && !n && (de(Ef.PREDEFINED), p({ target: {
|
|
@@ -7074,7 +7075,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7074
7075
|
predefinedOption: t
|
|
7075
7076
|
} }));
|
|
7076
7077
|
},
|
|
7077
|
-
label: /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(
|
|
7078
|
+
label: /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(ns, { children: t.label }), /* @__PURE__ */ C(Os, {
|
|
7078
7079
|
width: "20px",
|
|
7079
7080
|
height: "0"
|
|
7080
7081
|
})] }),
|
|
@@ -7083,7 +7084,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7083
7084
|
};
|
|
7084
7085
|
};
|
|
7085
7086
|
if (xe = [{
|
|
7086
|
-
type:
|
|
7087
|
+
type: Qa.OPTION,
|
|
7087
7088
|
inline: !0,
|
|
7088
7089
|
onClick: () => {
|
|
7089
7090
|
ue !== Ef.CUSTOM && !n && p({ target: {
|
|
@@ -7112,11 +7113,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7112
7113
|
}, we = !E && (!R || R === H.FIRST) ? H.FIRST : H.MIDDLE, Te = !R || R === H.LAST ? H.LAST : H.MIDDLE;
|
|
7113
7114
|
return /* @__PURE__ */ C("div", {
|
|
7114
7115
|
className: ue === Ef.PREDEFINED ? x(Bf.predefinedMenuActive) : "",
|
|
7115
|
-
children: /* @__PURE__ */ w(
|
|
7116
|
+
children: /* @__PURE__ */ w(bs, {
|
|
7116
7117
|
small: o,
|
|
7117
7118
|
width: s,
|
|
7118
7119
|
children: [
|
|
7119
|
-
E && /* @__PURE__ */ C(
|
|
7120
|
+
E && /* @__PURE__ */ C(_o, {
|
|
7120
7121
|
maxHeight: 380,
|
|
7121
7122
|
groupOrder: "first",
|
|
7122
7123
|
testId: b && `${b}-predefined-menu`,
|
|
@@ -7124,7 +7125,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7124
7125
|
menu: {
|
|
7125
7126
|
colored: !0,
|
|
7126
7127
|
trigger: "Component",
|
|
7127
|
-
component: /* @__PURE__ */ C(
|
|
7128
|
+
component: /* @__PURE__ */ C(q, {
|
|
7128
7129
|
groupOrder: "first",
|
|
7129
7130
|
active: ue === Ef.PREDEFINED,
|
|
7130
7131
|
icon: ue === Ef.PREDEFINED ? "link" : "unlink",
|
|
@@ -7164,7 +7165,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7164
7165
|
groupOrder: Te,
|
|
7165
7166
|
small: o,
|
|
7166
7167
|
children: ve
|
|
7167
|
-
}) : /* @__PURE__ */ C(
|
|
7168
|
+
}) : /* @__PURE__ */ C(_o, {
|
|
7168
7169
|
groupOrder: Te,
|
|
7169
7170
|
maxHeight: 380,
|
|
7170
7171
|
disabled: r,
|
|
@@ -7230,12 +7231,12 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7230
7231
|
e.key === "Enter" && B(), e.key === "Escape" && z();
|
|
7231
7232
|
}, V = d || k, re = /* @__PURE__ */ w("div", {
|
|
7232
7233
|
className: Sf.actions,
|
|
7233
|
-
children: [/* @__PURE__ */ C(
|
|
7234
|
+
children: [/* @__PURE__ */ C(q, {
|
|
7234
7235
|
icon: "close",
|
|
7235
7236
|
small: !0,
|
|
7236
7237
|
onClick: z,
|
|
7237
7238
|
testId: g && `${g}-cancel`
|
|
7238
|
-
}), /* @__PURE__ */ C(
|
|
7239
|
+
}), /* @__PURE__ */ C(q, {
|
|
7239
7240
|
icon: "checkmark",
|
|
7240
7241
|
small: !0,
|
|
7241
7242
|
disabled: !!L,
|
|
@@ -7249,14 +7250,14 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7249
7250
|
children: [
|
|
7250
7251
|
i && /* @__PURE__ */ C("span", {
|
|
7251
7252
|
className: Sf.label,
|
|
7252
|
-
children: /* @__PURE__ */ C(
|
|
7253
|
+
children: /* @__PURE__ */ C(ns, {
|
|
7253
7254
|
small: v,
|
|
7254
7255
|
children: i
|
|
7255
7256
|
})
|
|
7256
7257
|
}),
|
|
7257
7258
|
p && /* @__PURE__ */ C("div", {
|
|
7258
7259
|
className: x(Sf.input, v && Sf.inputSmall, u && !d && Sf.editable),
|
|
7259
|
-
children: /* @__PURE__ */ C(
|
|
7260
|
+
children: /* @__PURE__ */ C(ko, {
|
|
7260
7261
|
content: re,
|
|
7261
7262
|
isOpen: k,
|
|
7262
7263
|
isNonModal: !0,
|
|
@@ -7308,13 +7309,13 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7308
7309
|
})
|
|
7309
7310
|
]
|
|
7310
7311
|
});
|
|
7311
|
-
}, Kf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ C(
|
|
7312
|
+
}, Kf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ C(lo, {
|
|
7312
7313
|
small: !0,
|
|
7313
7314
|
margin: "-4px",
|
|
7314
7315
|
color: "var(--color-text-error)",
|
|
7315
7316
|
title: "!",
|
|
7316
7317
|
children: e
|
|
7317
|
-
}) : n ? /* @__PURE__ */ C(
|
|
7318
|
+
}) : n ? /* @__PURE__ */ C(lo, {
|
|
7318
7319
|
small: !0,
|
|
7319
7320
|
margin: "-4px",
|
|
7320
7321
|
title: n == null ? void 0 : n.toString(),
|
|
@@ -7394,7 +7395,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7394
7395
|
target: n,
|
|
7395
7396
|
onClick: i,
|
|
7396
7397
|
"data-testid": r,
|
|
7397
|
-
children: /* @__PURE__ */ C(
|
|
7398
|
+
children: /* @__PURE__ */ C(ns, {
|
|
7398
7399
|
link: !0,
|
|
7399
7400
|
children: e
|
|
7400
7401
|
})
|
|
@@ -7429,11 +7430,11 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7429
7430
|
"data-warning": p || null,
|
|
7430
7431
|
"data-testid": y
|
|
7431
7432
|
});
|
|
7432
|
-
return /* @__PURE__ */ C(
|
|
7433
|
+
return /* @__PURE__ */ C(K, {
|
|
7433
7434
|
error: !!f,
|
|
7434
7435
|
warning: !!p,
|
|
7435
7436
|
text: m || f || p,
|
|
7436
|
-
enabled: m &&
|
|
7437
|
+
enabled: m && Y(m) || f && Y(f) || p && Y(p) || !1,
|
|
7437
7438
|
maxWidth: h,
|
|
7438
7439
|
children: S
|
|
7439
7440
|
});
|
|
@@ -7534,7 +7535,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7534
7535
|
});
|
|
7535
7536
|
case tp.BUTTON: return /* @__PURE__ */ C("div", {
|
|
7536
7537
|
className: x(Q.item, Q.button),
|
|
7537
|
-
children: /* @__PURE__ */ C(
|
|
7538
|
+
children: /* @__PURE__ */ C(q, {
|
|
7538
7539
|
label: e.label,
|
|
7539
7540
|
colored: e.colored,
|
|
7540
7541
|
pill: !0,
|
|
@@ -7546,7 +7547,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7546
7547
|
});
|
|
7547
7548
|
case tp.MENU: return /* @__PURE__ */ C("div", {
|
|
7548
7549
|
className: x(Q.item, Q.menu),
|
|
7549
|
-
children: /* @__PURE__ */ C(
|
|
7550
|
+
children: /* @__PURE__ */ C(_o, {
|
|
7550
7551
|
maxHeight: "100%",
|
|
7551
7552
|
menu: {
|
|
7552
7553
|
trigger: Ni.COMPONENT,
|
|
@@ -7598,27 +7599,27 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7598
7599
|
className: ap.popConfirm,
|
|
7599
7600
|
children: [e && /* @__PURE__ */ C("div", {
|
|
7600
7601
|
className: ap.content,
|
|
7601
|
-
children: /* @__PURE__ */ C(
|
|
7602
|
+
children: /* @__PURE__ */ C(ns, {
|
|
7602
7603
|
small: !0,
|
|
7603
7604
|
children: e
|
|
7604
7605
|
})
|
|
7605
7606
|
}), /* @__PURE__ */ w("div", {
|
|
7606
7607
|
className: ap.buttons,
|
|
7607
|
-
children: [/* @__PURE__ */ C(
|
|
7608
|
+
children: [/* @__PURE__ */ C(q, {
|
|
7608
7609
|
small: !0,
|
|
7609
7610
|
colored: !0,
|
|
7610
7611
|
label: t,
|
|
7611
7612
|
onClick: () => n(o),
|
|
7612
7613
|
disabled: r,
|
|
7613
7614
|
testId: `${s}-ok-button`
|
|
7614
|
-
}), /* @__PURE__ */ C(
|
|
7615
|
+
}), /* @__PURE__ */ C(q, {
|
|
7615
7616
|
small: !0,
|
|
7616
7617
|
label: i,
|
|
7617
7618
|
onClick: () => a(o),
|
|
7618
7619
|
testId: `${s}-cancel-button`
|
|
7619
7620
|
})]
|
|
7620
7621
|
})]
|
|
7621
|
-
}), sp = ({ 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, testId: u = void 0 }) => /* @__PURE__ */ C(
|
|
7622
|
+
}), sp = ({ 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, testId: u = void 0 }) => /* @__PURE__ */ C(ko, {
|
|
7622
7623
|
content: /* @__PURE__ */ C(op, {
|
|
7623
7624
|
title: i,
|
|
7624
7625
|
okText: s,
|
|
@@ -7668,7 +7669,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7668
7669
|
children: [
|
|
7669
7670
|
a && /* @__PURE__ */ C("div", {
|
|
7670
7671
|
className: cp.toggle,
|
|
7671
|
-
children: /* @__PURE__ */ C(
|
|
7672
|
+
children: /* @__PURE__ */ C(q, {
|
|
7672
7673
|
basic: !0,
|
|
7673
7674
|
colored: r ? !0 : Pi.MUTED,
|
|
7674
7675
|
small: !0,
|
|
@@ -7686,7 +7687,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7686
7687
|
className: Z.right,
|
|
7687
7688
|
children: [/* @__PURE__ */ C(Ed, { item: u }), !f && h.length > 0 && /* @__PURE__ */ C("div", {
|
|
7688
7689
|
className: Z.actions,
|
|
7689
|
-
children: /* @__PURE__ */ C(
|
|
7690
|
+
children: /* @__PURE__ */ C(yo, { actions: h })
|
|
7690
7691
|
})]
|
|
7691
7692
|
})
|
|
7692
7693
|
]
|
|
@@ -7910,7 +7911,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7910
7911
|
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${M ? n + 1 : n})`})` : r;
|
|
7911
7912
|
};
|
|
7912
7913
|
return /* @__PURE__ */ C("table", {
|
|
7913
|
-
className:
|
|
7914
|
+
className: $s.table,
|
|
7914
7915
|
"data-testid": O,
|
|
7915
7916
|
onDrop: p,
|
|
7916
7917
|
onDragEnter: u,
|
|
@@ -7947,7 +7948,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7947
7948
|
className: fp.folder,
|
|
7948
7949
|
onClick: () => m(E),
|
|
7949
7950
|
onMouseDown: (e) => e.stopPropagation(),
|
|
7950
|
-
children: /* @__PURE__ */ C(
|
|
7951
|
+
children: /* @__PURE__ */ C(q, {
|
|
7951
7952
|
basic: !0,
|
|
7952
7953
|
colored: c ? !0 : Pi.MUTED,
|
|
7953
7954
|
disabled: !a,
|
|
@@ -7979,7 +7980,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
7979
7980
|
}, Sp = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
7980
7981
|
let a = yp(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
7981
7982
|
return /* @__PURE__ */ C("table", {
|
|
7982
|
-
className: x(
|
|
7983
|
+
className: x($s.table, fp.treeTableHeader),
|
|
7983
7984
|
children: /* @__PURE__ */ C("thead", { children: i.map((i, c) => /* @__PURE__ */ w("tr", { children: [
|
|
7984
7985
|
s && c === 0 ? /* @__PURE__ */ C(Ul, {
|
|
7985
7986
|
isHeader: !0,
|
|
@@ -8246,7 +8247,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8246
8247
|
children: /* @__PURE__ */ w(vd, {
|
|
8247
8248
|
gap: "8px",
|
|
8248
8249
|
alignItems: "center",
|
|
8249
|
-
children: [m && /* @__PURE__ */ C(
|
|
8250
|
+
children: [m && /* @__PURE__ */ C(xa, {
|
|
8250
8251
|
text: kr(o).valid ? `${d == null ? void 0 : d.companySetting}: ${vr(o) ? Ar(o) : o}` : d == null ? void 0 : d.companySettingDifferent,
|
|
8251
8252
|
icon: U.INFO
|
|
8252
8253
|
}), /* @__PURE__ */ C(el, {
|
|
@@ -8263,7 +8264,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8263
8264
|
})]
|
|
8264
8265
|
})
|
|
8265
8266
|
})]
|
|
8266
|
-
}), t && /* @__PURE__ */ C(
|
|
8267
|
+
}), t && /* @__PURE__ */ C(ns, {
|
|
8267
8268
|
muted: !0,
|
|
8268
8269
|
children: f(t)
|
|
8269
8270
|
})]
|
|
@@ -8289,18 +8290,18 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8289
8290
|
let l = ({ target: { value: e } }) => {
|
|
8290
8291
|
s(e);
|
|
8291
8292
|
}, { added: u, removed: d } = Ip(e, t), p = u + d > 3500;
|
|
8292
|
-
return /* @__PURE__ */ C(S, { children: /* @__PURE__ */ C(
|
|
8293
|
+
return /* @__PURE__ */ C(S, { children: /* @__PURE__ */ C(Do, {
|
|
8293
8294
|
bordered: !0,
|
|
8294
8295
|
heading: /* @__PURE__ */ w(vd, {
|
|
8295
8296
|
gap: !0,
|
|
8296
|
-
children: [/* @__PURE__ */ C(
|
|
8297
|
+
children: [/* @__PURE__ */ C(ss, { children: /* @__PURE__ */ w("div", { children: [/* @__PURE__ */ w(ns, {
|
|
8297
8298
|
success: !0,
|
|
8298
8299
|
children: [
|
|
8299
8300
|
"+",
|
|
8300
8301
|
u,
|
|
8301
8302
|
" "
|
|
8302
8303
|
]
|
|
8303
|
-
}), /* @__PURE__ */ w(
|
|
8304
|
+
}), /* @__PURE__ */ w(ns, {
|
|
8304
8305
|
error: !0,
|
|
8305
8306
|
children: ["-", d]
|
|
8306
8307
|
})] }) }), !p && /* @__PURE__ */ C(Jd, {
|
|
@@ -8314,7 +8315,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8314
8315
|
padding: !1,
|
|
8315
8316
|
children: p ? /* @__PURE__ */ C("div", {
|
|
8316
8317
|
style: { padding: "5px" },
|
|
8317
|
-
children: /* @__PURE__ */ C(
|
|
8318
|
+
children: /* @__PURE__ */ C(ns, {
|
|
8318
8319
|
muted: !0,
|
|
8319
8320
|
children: a == null ? void 0 : a.changesTooLarge
|
|
8320
8321
|
})
|
|
@@ -8325,10 +8326,98 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
8325
8326
|
compareMethod: ji.WORDS
|
|
8326
8327
|
})
|
|
8327
8328
|
}) });
|
|
8329
|
+
}, Bp = { backgroundColor: "var(--color-background-error-muted)" }, Vp = { backgroundColor: "var(--color-background-success-muted)" }, Hp = { backgroundColor: "var(--color-background-warning-muted)" }, Up = (e) => typeof e == "object" && e && "value" in e ? e.value : e, Wp = (e) => {
|
|
8330
|
+
var t;
|
|
8331
|
+
if (e.id != null) return String(e.id);
|
|
8332
|
+
let n = Up((t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
8333
|
+
return n == null ? "" : String(n);
|
|
8334
|
+
}, Gp = (e, t) => ({
|
|
8335
|
+
...e,
|
|
8336
|
+
cells: e.cells.map((e) => ({
|
|
8337
|
+
...e,
|
|
8338
|
+
style: {
|
|
8339
|
+
...e.style,
|
|
8340
|
+
...t
|
|
8341
|
+
}
|
|
8342
|
+
}))
|
|
8343
|
+
}), Kp = (e, t) => ({
|
|
8344
|
+
...e,
|
|
8345
|
+
cells: e.cells.map((e, n) => {
|
|
8346
|
+
var r;
|
|
8347
|
+
let i = (r = t.cells) == null ? void 0 : r[n], a = i == null ? void 0 : i.value;
|
|
8348
|
+
return !i || dn(e.value, a) ? e : {
|
|
8349
|
+
...e,
|
|
8350
|
+
style: {
|
|
8351
|
+
...e.style,
|
|
8352
|
+
...Hp
|
|
8353
|
+
},
|
|
8354
|
+
tooltip: a
|
|
8355
|
+
};
|
|
8356
|
+
})
|
|
8357
|
+
}), qp = (e = [], t = []) => {
|
|
8358
|
+
let n = /* @__PURE__ */ new Map();
|
|
8359
|
+
for (let e of t) n.set(Wp(e), e);
|
|
8360
|
+
let r = new Set(e.map(Wp)), i = /* @__PURE__ */ new Map(), a = [], o = null;
|
|
8361
|
+
for (let e = t.length - 1; e >= 0; e--) {
|
|
8362
|
+
let n = t[e], c = Wp(n);
|
|
8363
|
+
if (r.has(c)) {
|
|
8364
|
+
o = c;
|
|
8365
|
+
continue;
|
|
8366
|
+
}
|
|
8367
|
+
if (o === null) a.push(n);
|
|
8368
|
+
else {
|
|
8369
|
+
var s;
|
|
8370
|
+
let e = (s = i.get(o)) == null ? [] : s;
|
|
8371
|
+
e.unshift(n), i.set(o, e);
|
|
8372
|
+
}
|
|
8373
|
+
}
|
|
8374
|
+
a.reverse();
|
|
8375
|
+
let c = [];
|
|
8376
|
+
for (let t of e) {
|
|
8377
|
+
let e = Wp(t), r = i.get(e);
|
|
8378
|
+
if (r) for (let e of r) c.push({
|
|
8379
|
+
status: "deleted",
|
|
8380
|
+
row: e
|
|
8381
|
+
});
|
|
8382
|
+
let a = n.get(e);
|
|
8383
|
+
a ? c.push({
|
|
8384
|
+
status: "matched",
|
|
8385
|
+
row: t,
|
|
8386
|
+
compareRow: a
|
|
8387
|
+
}) : c.push({
|
|
8388
|
+
status: "added",
|
|
8389
|
+
row: t
|
|
8390
|
+
});
|
|
8391
|
+
}
|
|
8392
|
+
for (let e of a) c.push({
|
|
8393
|
+
status: "deleted",
|
|
8394
|
+
row: e
|
|
8395
|
+
});
|
|
8396
|
+
return c;
|
|
8397
|
+
}, Jp = (e) => e.status === "deleted" ? Gp(e.row, Bp) : e.status === "added" ? Gp(e.row, Vp) : Kp(e.row, e.compareRow), Yp = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
|
|
8398
|
+
let i = g(() => qp(e.rows, t), [e.rows, t]), a = !!e.infiniteScroll, o = g(() => {
|
|
8399
|
+
if (!a) return i.map((e) => e.row);
|
|
8400
|
+
}, [a, i]), s = u(({ row: e, rowIndex: t }) => {
|
|
8401
|
+
let r = i[t], a = r ? Jp(r) : e;
|
|
8402
|
+
return n ? n({
|
|
8403
|
+
row: a,
|
|
8404
|
+
rowIndex: t
|
|
8405
|
+
}) : a;
|
|
8406
|
+
}, [i, n]);
|
|
8407
|
+
return /* @__PURE__ */ C(eu, {
|
|
8408
|
+
...r,
|
|
8409
|
+
beforeRenderRow: s,
|
|
8410
|
+
table: {
|
|
8411
|
+
...e,
|
|
8412
|
+
rows: o,
|
|
8413
|
+
rowCount: a ? i.length : void 0,
|
|
8414
|
+
striped: !1
|
|
8415
|
+
}
|
|
8416
|
+
});
|
|
8328
8417
|
};
|
|
8329
8418
|
//#endregion
|
|
8330
8419
|
//#region src/helpers/date.ts
|
|
8331
|
-
function
|
|
8420
|
+
function Xp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
8332
8421
|
return e ? new Date(e).toLocaleString(a, {
|
|
8333
8422
|
year: "numeric",
|
|
8334
8423
|
month: "short",
|
|
@@ -8342,28 +8431,28 @@ function Bp({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8342
8431
|
}
|
|
8343
8432
|
//#endregion
|
|
8344
8433
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8345
|
-
function
|
|
8434
|
+
function Zp(e) {
|
|
8346
8435
|
var t;
|
|
8347
8436
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8348
8437
|
if (!n) throw Error("Invalid RegExp");
|
|
8349
8438
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8350
8439
|
}
|
|
8351
|
-
function
|
|
8440
|
+
function Qp(e) {
|
|
8352
8441
|
if (typeof e != "object") return e;
|
|
8353
8442
|
if (e === null) return null;
|
|
8354
|
-
if (Array.isArray(e)) return e.map(
|
|
8443
|
+
if (Array.isArray(e)) return e.map(Qp);
|
|
8355
8444
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8356
|
-
if (e instanceof RegExp) return
|
|
8445
|
+
if (e instanceof RegExp) return Zp(e);
|
|
8357
8446
|
let t = {};
|
|
8358
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8447
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Qp(e[n]));
|
|
8359
8448
|
return t;
|
|
8360
8449
|
}
|
|
8361
8450
|
//#endregion
|
|
8362
8451
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8363
|
-
function
|
|
8452
|
+
function $p(e, t) {
|
|
8364
8453
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8365
8454
|
}
|
|
8366
|
-
var
|
|
8455
|
+
var em = (e) => e[e.length - 1], tm = class {
|
|
8367
8456
|
setResult(e) {
|
|
8368
8457
|
return this.result = e, this.hasResult = !0, this;
|
|
8369
8458
|
}
|
|
@@ -8371,16 +8460,16 @@ var Wp = (e) => e[e.length - 1], Gp = class {
|
|
|
8371
8460
|
return this.exiting = !0, this;
|
|
8372
8461
|
}
|
|
8373
8462
|
push(e, t) {
|
|
8374
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8463
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? ($p(this.children), em(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8375
8464
|
}
|
|
8376
|
-
},
|
|
8465
|
+
}, nm = class extends tm {
|
|
8377
8466
|
constructor(e, t) {
|
|
8378
8467
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8379
8468
|
}
|
|
8380
8469
|
prepareDeltaResult(e) {
|
|
8381
8470
|
var t, n, r, i;
|
|
8382
8471
|
if (typeof e == "object" && ((t = this.options) != null && t.omitRemovedValues && Array.isArray(e) && e.length > 1 && (e.length === 2 || e[2] === 0 || e[2] === 3) && (e[0] = 0), (n = this.options) != null && n.cloneDiffValues)) {
|
|
8383
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8472
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : Qp;
|
|
8384
8473
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8385
8474
|
}
|
|
8386
8475
|
return e;
|
|
@@ -8388,15 +8477,15 @@ var Wp = (e) => e[e.length - 1], Gp = class {
|
|
|
8388
8477
|
setResult(e) {
|
|
8389
8478
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8390
8479
|
}
|
|
8391
|
-
},
|
|
8480
|
+
}, rm = class extends tm {
|
|
8392
8481
|
constructor(e, t) {
|
|
8393
8482
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8394
8483
|
}
|
|
8395
|
-
},
|
|
8484
|
+
}, im = class extends tm {
|
|
8396
8485
|
constructor(e) {
|
|
8397
8486
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8398
8487
|
}
|
|
8399
|
-
},
|
|
8488
|
+
}, am = class {
|
|
8400
8489
|
constructor(e) {
|
|
8401
8490
|
this.name = e, this.filters = [];
|
|
8402
8491
|
}
|
|
@@ -8460,7 +8549,7 @@ var Wp = (e) => e[e.length - 1], Gp = class {
|
|
|
8460
8549
|
}
|
|
8461
8550
|
}), this);
|
|
8462
8551
|
}
|
|
8463
|
-
},
|
|
8552
|
+
}, om = class {
|
|
8464
8553
|
constructor(e) {
|
|
8465
8554
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8466
8555
|
}
|
|
@@ -8487,7 +8576,7 @@ var Wp = (e) => e[e.length - 1], Gp = class {
|
|
|
8487
8576
|
for (; r;) n.nextAfterChildren !== void 0 && (n.next = n.nextAfterChildren, n.nextAfterChildren = null), typeof r == "string" && (r = this.pipe(r)), r.process(n), i = r, r = null, n && n.next && (n = n.next, r = n.pipe || i);
|
|
8488
8577
|
return n.hasResult ? n.result : void 0;
|
|
8489
8578
|
}
|
|
8490
|
-
},
|
|
8579
|
+
}, sm = (e, t, n, r) => e[n] === t[r], cm = (e, t, n, r) => {
|
|
8491
8580
|
var i, a, o;
|
|
8492
8581
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8493
8582
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8503,7 +8592,7 @@ var Wp = (e) => e[e.length - 1], Gp = class {
|
|
|
8503
8592
|
for (u = 1; u < c + 1; u++) n(e, t, l - 1, u - 1, r) ? s[u] = ((i = f[u - 1]) == null ? 0 : i) + 1 : s[u] = Math.max((a = f[u]) == null ? 0 : a, (o = s[u - 1]) == null ? 0 : o);
|
|
8504
8593
|
}
|
|
8505
8594
|
return d;
|
|
8506
|
-
},
|
|
8595
|
+
}, lm = (e, t, n, r) => {
|
|
8507
8596
|
let i = t.length, a = n.length, o = {
|
|
8508
8597
|
sequence: [],
|
|
8509
8598
|
indices1: [],
|
|
@@ -8525,11 +8614,11 @@ var Wp = (e) => e[e.length - 1], Gp = class {
|
|
|
8525
8614
|
}
|
|
8526
8615
|
}
|
|
8527
8616
|
return o;
|
|
8528
|
-
},
|
|
8617
|
+
}, um = { get: (e, t, n, r) => {
|
|
8529
8618
|
let i = r || {};
|
|
8530
|
-
return
|
|
8531
|
-
} },
|
|
8532
|
-
function
|
|
8619
|
+
return lm(cm(e, t, n || sm, i), e, t, i);
|
|
8620
|
+
} }, dm = 3;
|
|
8621
|
+
function fm(e, t, n, r) {
|
|
8533
8622
|
for (let i = 0; i < n; i++) {
|
|
8534
8623
|
let n = e[i];
|
|
8535
8624
|
for (let e = 0; e < r; e++) {
|
|
@@ -8539,7 +8628,7 @@ function nm(e, t, n, r) {
|
|
|
8539
8628
|
}
|
|
8540
8629
|
return !1;
|
|
8541
8630
|
}
|
|
8542
|
-
function
|
|
8631
|
+
function pm(e, t, n, r, i) {
|
|
8543
8632
|
let a = e[n], o = t[r];
|
|
8544
8633
|
if (a === o) return !0;
|
|
8545
8634
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8552,15 +8641,15 @@ function rm(e, t, n, r, i) {
|
|
|
8552
8641
|
let l = i.hashCache2[r];
|
|
8553
8642
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
|
|
8554
8643
|
}
|
|
8555
|
-
var
|
|
8644
|
+
var mm = function(e) {
|
|
8556
8645
|
var t, n, r, i, a;
|
|
8557
8646
|
if (!e.leftIsArray) return;
|
|
8558
8647
|
let o = {
|
|
8559
8648
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8560
8649
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8561
8650
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8562
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8563
|
-
for (; c + s < m && c + s < h &&
|
|
8651
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !fm(f, p, m, h)); s < m && s < h && pm(f, p, s, s, o);) l = s, g = new nm(f[l], p[l]), e.push(g, l), s++;
|
|
8652
|
+
for (; c + s < m && c + s < h && pm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new nm(f[u], p[d]), e.push(g, d), c++;
|
|
8564
8653
|
let _;
|
|
8565
8654
|
if (s + c === m) {
|
|
8566
8655
|
if (m === h) {
|
|
@@ -8584,7 +8673,7 @@ var im = function(e) {
|
|
|
8584
8673
|
return;
|
|
8585
8674
|
}
|
|
8586
8675
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8587
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8676
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = um.get(v, y, pm, o), x = [];
|
|
8588
8677
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8589
8678
|
let t = `_${l}`;
|
|
8590
8679
|
_[t] = [
|
|
@@ -8605,8 +8694,8 @@ var im = function(e) {
|
|
|
8605
8694
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8606
8695
|
u = x[n];
|
|
8607
8696
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8608
|
-
if (u !== void 0 && r &&
|
|
8609
|
-
r.splice(1, 2, l,
|
|
8697
|
+
if (u !== void 0 && r && pm(v, y, u - s, l - s, o)) {
|
|
8698
|
+
r.splice(1, 2, l, dm), r.splice(1, 2, l, dm), C || (r[0] = ""), d = l, g = new nm(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8610
8699
|
break;
|
|
8611
8700
|
}
|
|
8612
8701
|
}
|
|
@@ -8614,20 +8703,20 @@ var im = function(e) {
|
|
|
8614
8703
|
} else {
|
|
8615
8704
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8616
8705
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8617
|
-
d = b.indices2[t] + s, g = new
|
|
8706
|
+
d = b.indices2[t] + s, g = new nm(f[u], p[d]), e.push(g, d);
|
|
8618
8707
|
}
|
|
8619
8708
|
}
|
|
8620
8709
|
e.setResult(_).exit();
|
|
8621
8710
|
};
|
|
8622
|
-
|
|
8623
|
-
var
|
|
8711
|
+
mm.filterName = "arrays";
|
|
8712
|
+
var hm = {
|
|
8624
8713
|
numerically(e, t) {
|
|
8625
8714
|
return e - t;
|
|
8626
8715
|
},
|
|
8627
8716
|
numericallyBy(e) {
|
|
8628
8717
|
return (t, n) => t[e] - n[e];
|
|
8629
8718
|
}
|
|
8630
|
-
},
|
|
8719
|
+
}, gm = function(e) {
|
|
8631
8720
|
var t;
|
|
8632
8721
|
if (!e.nested) return;
|
|
8633
8722
|
let n = e.delta;
|
|
@@ -8636,7 +8725,7 @@ var am = {
|
|
|
8636
8725
|
for (r in a) if (r !== "_t") {
|
|
8637
8726
|
if (r[0] === "_") {
|
|
8638
8727
|
let e = r;
|
|
8639
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8728
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === dm)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8640
8729
|
else throw Error(`only removal or move can be applied at original array indices, invalid diff type: ${(t = a[e]) == null ? void 0 : t[2]}`);
|
|
8641
8730
|
} else {
|
|
8642
8731
|
let e = r;
|
|
@@ -8649,15 +8738,15 @@ var am = {
|
|
|
8649
8738
|
});
|
|
8650
8739
|
}
|
|
8651
8740
|
}
|
|
8652
|
-
for (s = s.sort(
|
|
8741
|
+
for (s = s.sort(hm.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8653
8742
|
if (i = s[r], i === void 0) continue;
|
|
8654
8743
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8655
|
-
(e == null ? void 0 : e[2]) ===
|
|
8744
|
+
(e == null ? void 0 : e[2]) === dm && c.push({
|
|
8656
8745
|
index: e[1],
|
|
8657
8746
|
value: t
|
|
8658
8747
|
});
|
|
8659
8748
|
}
|
|
8660
|
-
c = c.sort(
|
|
8749
|
+
c = c.sort(hm.numericallyBy("index"));
|
|
8661
8750
|
let u = c.length;
|
|
8662
8751
|
for (r = 0; r < u; r++) {
|
|
8663
8752
|
let e = c[r];
|
|
@@ -8667,7 +8756,7 @@ var am = {
|
|
|
8667
8756
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8668
8757
|
let t = l[r];
|
|
8669
8758
|
if (t === void 0) continue;
|
|
8670
|
-
let n = new
|
|
8759
|
+
let n = new rm(o[t.index], t.delta);
|
|
8671
8760
|
e.push(n, t.index);
|
|
8672
8761
|
}
|
|
8673
8762
|
if (!e.children) {
|
|
@@ -8676,8 +8765,8 @@ var am = {
|
|
|
8676
8765
|
}
|
|
8677
8766
|
e.exit();
|
|
8678
8767
|
};
|
|
8679
|
-
|
|
8680
|
-
var
|
|
8768
|
+
gm.filterName = "arrays";
|
|
8769
|
+
var _m = function(e) {
|
|
8681
8770
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8682
8771
|
let t = e.left, n = e.children.length;
|
|
8683
8772
|
for (let r = 0; r < n; r++) {
|
|
@@ -8688,16 +8777,16 @@ var sm = function(e) {
|
|
|
8688
8777
|
}
|
|
8689
8778
|
e.setResult(t).exit();
|
|
8690
8779
|
};
|
|
8691
|
-
|
|
8692
|
-
var
|
|
8780
|
+
_m.filterName = "arraysCollectChildren";
|
|
8781
|
+
var vm = function(e) {
|
|
8693
8782
|
if (!e.nested) {
|
|
8694
8783
|
let t = e.delta;
|
|
8695
|
-
if (t[2] ===
|
|
8784
|
+
if (t[2] === dm) {
|
|
8696
8785
|
let n = t;
|
|
8697
8786
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8698
8787
|
n[0],
|
|
8699
8788
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8700
|
-
|
|
8789
|
+
dm
|
|
8701
8790
|
]).exit();
|
|
8702
8791
|
}
|
|
8703
8792
|
return;
|
|
@@ -8707,20 +8796,20 @@ var cm = function(e) {
|
|
|
8707
8796
|
let n = t;
|
|
8708
8797
|
for (let t in n) {
|
|
8709
8798
|
if (t === "_t") continue;
|
|
8710
|
-
let r = new
|
|
8799
|
+
let r = new im(n[t]);
|
|
8711
8800
|
e.push(r, t);
|
|
8712
8801
|
}
|
|
8713
8802
|
e.exit();
|
|
8714
8803
|
};
|
|
8715
|
-
|
|
8716
|
-
var
|
|
8804
|
+
vm.filterName = "arrays";
|
|
8805
|
+
var ym = (e, t, n) => {
|
|
8717
8806
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8718
8807
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8719
8808
|
let r = +t;
|
|
8720
8809
|
for (let n in e) {
|
|
8721
8810
|
let i = e[n];
|
|
8722
8811
|
if (Array.isArray(i)) {
|
|
8723
|
-
if (i[2] ===
|
|
8812
|
+
if (i[2] === dm) {
|
|
8724
8813
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
8725
8814
|
if (a === +t) return e;
|
|
8726
8815
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
@@ -8728,7 +8817,7 @@ var lm = (e, t, n) => {
|
|
|
8728
8817
|
}
|
|
8729
8818
|
}
|
|
8730
8819
|
return r;
|
|
8731
|
-
},
|
|
8820
|
+
}, bm = (e) => {
|
|
8732
8821
|
if (!e || !e.children) return;
|
|
8733
8822
|
let t = e.delta;
|
|
8734
8823
|
if (t._t !== "a") return;
|
|
@@ -8739,22 +8828,22 @@ var lm = (e, t, n) => {
|
|
|
8739
8828
|
let a = r.newName;
|
|
8740
8829
|
if (a === void 0) {
|
|
8741
8830
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
8742
|
-
a =
|
|
8831
|
+
a = ym(n, r.childName, r.result);
|
|
8743
8832
|
}
|
|
8744
8833
|
i[a] !== r.result && (i[a] = r.result);
|
|
8745
8834
|
}
|
|
8746
8835
|
e.setResult(i).exit();
|
|
8747
8836
|
};
|
|
8748
|
-
|
|
8837
|
+
bm.filterName = "arraysCollectChildren";
|
|
8749
8838
|
//#endregion
|
|
8750
8839
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
8751
|
-
var
|
|
8840
|
+
var xm = function(e) {
|
|
8752
8841
|
e.left instanceof Date ? (e.right instanceof Date && e.left.getTime() === e.right.getTime() ? e.setResult(void 0) : e.setResult([e.left, e.right]), e.exit()) : e.right instanceof Date && e.setResult([e.left, e.right]).exit();
|
|
8753
8842
|
};
|
|
8754
|
-
|
|
8843
|
+
xm.filterName = "dates";
|
|
8755
8844
|
//#endregion
|
|
8756
8845
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
8757
|
-
var
|
|
8846
|
+
var Sm = /* @__PURE__ */ new Set(["__proto__"]), Cm = (e) => {
|
|
8758
8847
|
if (!e || !e.children) return;
|
|
8759
8848
|
let t = e.children.length, n = e.result;
|
|
8760
8849
|
for (let r = 0; r < t; r++) {
|
|
@@ -8766,18 +8855,18 @@ var fm = /* @__PURE__ */ new Set(["__proto__"]), pm = (e) => {
|
|
|
8766
8855
|
}
|
|
8767
8856
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
8768
8857
|
};
|
|
8769
|
-
|
|
8770
|
-
var
|
|
8858
|
+
Cm.filterName = "collectChildren";
|
|
8859
|
+
var wm = (e) => {
|
|
8771
8860
|
var t;
|
|
8772
8861
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
8773
8862
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
8774
8863
|
for (let t in n) {
|
|
8775
8864
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
8776
|
-
let a = new
|
|
8865
|
+
let a = new nm(n[t], r[t]);
|
|
8777
8866
|
e.push(a, t);
|
|
8778
8867
|
}
|
|
8779
8868
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
8780
|
-
let n = new
|
|
8869
|
+
let n = new nm(void 0, r[t]);
|
|
8781
8870
|
e.push(n, t);
|
|
8782
8871
|
}
|
|
8783
8872
|
if (!e.children || e.children.length === 0) {
|
|
@@ -8786,15 +8875,15 @@ var mm = (e) => {
|
|
|
8786
8875
|
}
|
|
8787
8876
|
e.exit();
|
|
8788
8877
|
};
|
|
8789
|
-
|
|
8790
|
-
var
|
|
8878
|
+
wm.filterName = "objects";
|
|
8879
|
+
var Tm = function(e) {
|
|
8791
8880
|
if (!e.nested) return;
|
|
8792
8881
|
let t = e.delta;
|
|
8793
8882
|
if (t._t) return;
|
|
8794
8883
|
let n = t, r = !1;
|
|
8795
8884
|
for (let t in n) {
|
|
8796
|
-
if (
|
|
8797
|
-
let i = e.left, a = new
|
|
8885
|
+
if (Sm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
8886
|
+
let i = e.left, a = new rm(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
8798
8887
|
e.push(a, t), r = !0;
|
|
8799
8888
|
}
|
|
8800
8889
|
if (!r) {
|
|
@@ -8803,8 +8892,8 @@ var hm = function(e) {
|
|
|
8803
8892
|
}
|
|
8804
8893
|
e.exit();
|
|
8805
8894
|
};
|
|
8806
|
-
|
|
8807
|
-
var
|
|
8895
|
+
Tm.filterName = "objects";
|
|
8896
|
+
var Em = function(e) {
|
|
8808
8897
|
if (!e || !e.children || e.delta._t) return;
|
|
8809
8898
|
if (e.left === null || typeof e.left != "object") {
|
|
8810
8899
|
e.setResult(e.left).exit();
|
|
@@ -8815,17 +8904,17 @@ var gm = function(e) {
|
|
|
8815
8904
|
let n = e.children[r];
|
|
8816
8905
|
if (n === void 0) continue;
|
|
8817
8906
|
let i = n.childName;
|
|
8818
|
-
|
|
8907
|
+
Sm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
8819
8908
|
}
|
|
8820
8909
|
e.setResult(t).exit();
|
|
8821
8910
|
};
|
|
8822
|
-
|
|
8823
|
-
var
|
|
8911
|
+
Em.filterName = "collectChildren";
|
|
8912
|
+
var Dm = function(e) {
|
|
8824
8913
|
if (!e.nested || e.delta._t) return;
|
|
8825
8914
|
let t = e.delta, n = !1;
|
|
8826
8915
|
for (let r in t) {
|
|
8827
|
-
if (
|
|
8828
|
-
let i = new
|
|
8916
|
+
if (Sm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
8917
|
+
let i = new im(t[r]);
|
|
8829
8918
|
e.push(i, r), n = !0;
|
|
8830
8919
|
}
|
|
8831
8920
|
if (!n) {
|
|
@@ -8834,25 +8923,25 @@ var _m = function(e) {
|
|
|
8834
8923
|
}
|
|
8835
8924
|
e.exit();
|
|
8836
8925
|
};
|
|
8837
|
-
|
|
8838
|
-
var
|
|
8926
|
+
Dm.filterName = "objects";
|
|
8927
|
+
var Om = (e) => {
|
|
8839
8928
|
if (!e || !e.children || e.delta._t) return;
|
|
8840
8929
|
let t = e.children.length, n = {};
|
|
8841
8930
|
for (let r = 0; r < t; r++) {
|
|
8842
8931
|
let t = e.children[r];
|
|
8843
8932
|
if (t === void 0) continue;
|
|
8844
8933
|
let i = t.childName;
|
|
8845
|
-
|
|
8934
|
+
Sm.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
8846
8935
|
}
|
|
8847
8936
|
e.setResult(n).exit();
|
|
8848
8937
|
};
|
|
8849
|
-
|
|
8938
|
+
Om.filterName = "collectChildren";
|
|
8850
8939
|
//#endregion
|
|
8851
8940
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
8852
|
-
var
|
|
8853
|
-
function
|
|
8941
|
+
var km = 2, Am = 60, jm = null;
|
|
8942
|
+
function Mm(e, t) {
|
|
8854
8943
|
var n;
|
|
8855
|
-
if (!
|
|
8944
|
+
if (!jm) {
|
|
8856
8945
|
let r;
|
|
8857
8946
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
8858
8947
|
else {
|
|
@@ -8860,7 +8949,7 @@ function Sm(e, t) {
|
|
|
8860
8949
|
let e = /* @__PURE__ */ Error("The diff-match-patch library was not provided. Pass the library in through the options or use the `jsondiffpatch/with-text-diffs` entry-point.");
|
|
8861
8950
|
throw e.diff_match_patch_not_found = !0, e;
|
|
8862
8951
|
}
|
|
8863
|
-
|
|
8952
|
+
jm = {
|
|
8864
8953
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
8865
8954
|
patch: (e, t) => {
|
|
8866
8955
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -8872,17 +8961,17 @@ function Sm(e, t) {
|
|
|
8872
8961
|
}
|
|
8873
8962
|
};
|
|
8874
8963
|
}
|
|
8875
|
-
return
|
|
8964
|
+
return jm;
|
|
8876
8965
|
}
|
|
8877
|
-
var
|
|
8966
|
+
var Nm = function(e) {
|
|
8878
8967
|
var t, n;
|
|
8879
8968
|
if (e.leftType !== "string") return;
|
|
8880
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
8969
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Am;
|
|
8881
8970
|
if (r.length < a || i.length < a) {
|
|
8882
8971
|
e.setResult([r, i]).exit();
|
|
8883
8972
|
return;
|
|
8884
8973
|
}
|
|
8885
|
-
let o =
|
|
8974
|
+
let o = Mm(e.options);
|
|
8886
8975
|
if (!o) {
|
|
8887
8976
|
e.setResult([r, i]).exit();
|
|
8888
8977
|
return;
|
|
@@ -8891,19 +8980,19 @@ var Cm = function(e) {
|
|
|
8891
8980
|
e.setResult([
|
|
8892
8981
|
s(r, i),
|
|
8893
8982
|
0,
|
|
8894
|
-
|
|
8983
|
+
km
|
|
8895
8984
|
]).exit();
|
|
8896
8985
|
};
|
|
8897
|
-
|
|
8898
|
-
var
|
|
8986
|
+
Nm.filterName = "texts";
|
|
8987
|
+
var Pm = function(e) {
|
|
8899
8988
|
if (e.nested) return;
|
|
8900
8989
|
let t = e.delta;
|
|
8901
|
-
if (t[2] !==
|
|
8902
|
-
let n = t, r =
|
|
8990
|
+
if (t[2] !== km) return;
|
|
8991
|
+
let n = t, r = Mm(e.options, !0).patch;
|
|
8903
8992
|
e.setResult(r(e.left, n[0])).exit();
|
|
8904
8993
|
};
|
|
8905
|
-
|
|
8906
|
-
var
|
|
8994
|
+
Pm.filterName = "texts";
|
|
8995
|
+
var Fm = (e) => {
|
|
8907
8996
|
var t, n, r;
|
|
8908
8997
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
8909
8998
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -8924,21 +9013,21 @@ var Tm = (e) => {
|
|
|
8924
9013
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
8925
9014
|
}
|
|
8926
9015
|
return a.join("\n");
|
|
8927
|
-
},
|
|
9016
|
+
}, Im = function(e) {
|
|
8928
9017
|
if (e.nested) return;
|
|
8929
9018
|
let t = e.delta;
|
|
8930
|
-
if (t[2] !==
|
|
9019
|
+
if (t[2] !== km) return;
|
|
8931
9020
|
let n = t;
|
|
8932
9021
|
e.setResult([
|
|
8933
|
-
|
|
9022
|
+
Fm(n[0]),
|
|
8934
9023
|
0,
|
|
8935
|
-
|
|
9024
|
+
km
|
|
8936
9025
|
]).exit();
|
|
8937
9026
|
};
|
|
8938
|
-
|
|
9027
|
+
Im.filterName = "texts";
|
|
8939
9028
|
//#endregion
|
|
8940
9029
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
8941
|
-
var
|
|
9030
|
+
var Lm = function(e) {
|
|
8942
9031
|
if (e.left === e.right) {
|
|
8943
9032
|
e.setResult(void 0).exit();
|
|
8944
9033
|
return;
|
|
@@ -8971,8 +9060,8 @@ var Dm = function(e) {
|
|
|
8971
9060
|
}
|
|
8972
9061
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
8973
9062
|
};
|
|
8974
|
-
|
|
8975
|
-
var
|
|
9063
|
+
Lm.filterName = "trivial";
|
|
9064
|
+
var Rm = function(e) {
|
|
8976
9065
|
if (e.delta === void 0) {
|
|
8977
9066
|
e.setResult(e.left).exit();
|
|
8978
9067
|
return;
|
|
@@ -8996,8 +9085,8 @@ var Om = function(e) {
|
|
|
8996
9085
|
}
|
|
8997
9086
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
8998
9087
|
};
|
|
8999
|
-
|
|
9000
|
-
var
|
|
9088
|
+
Rm.filterName = "trivial";
|
|
9089
|
+
var zm = function(e) {
|
|
9001
9090
|
if (e.delta === void 0) {
|
|
9002
9091
|
e.setResult(e.delta).exit();
|
|
9003
9092
|
return;
|
|
@@ -9018,36 +9107,36 @@ var km = function(e) {
|
|
|
9018
9107
|
}
|
|
9019
9108
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
9020
9109
|
};
|
|
9021
|
-
|
|
9110
|
+
zm.filterName = "trivial";
|
|
9022
9111
|
//#endregion
|
|
9023
9112
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
9024
|
-
var
|
|
9113
|
+
var Bm = class {
|
|
9025
9114
|
constructor(e) {
|
|
9026
|
-
this.processor = new
|
|
9115
|
+
this.processor = new om(e), this.processor.pipe(new am("diff").append(Cm, Lm, xm, Nm, wm, mm).shouldHaveResult()), this.processor.pipe(new am("patch").append(Em, _m, Rm, Pm, Tm, gm).shouldHaveResult()), this.processor.pipe(new am("reverse").append(Om, bm, zm, Im, Dm, vm).shouldHaveResult());
|
|
9027
9116
|
}
|
|
9028
9117
|
options(e) {
|
|
9029
9118
|
return this.processor.options(e);
|
|
9030
9119
|
}
|
|
9031
9120
|
diff(e, t) {
|
|
9032
|
-
return this.processor.process(new
|
|
9121
|
+
return this.processor.process(new nm(e, t));
|
|
9033
9122
|
}
|
|
9034
9123
|
patch(e, t) {
|
|
9035
|
-
return this.processor.process(new
|
|
9124
|
+
return this.processor.process(new rm(e, t));
|
|
9036
9125
|
}
|
|
9037
9126
|
reverse(e) {
|
|
9038
|
-
return this.processor.process(new
|
|
9127
|
+
return this.processor.process(new im(e));
|
|
9039
9128
|
}
|
|
9040
9129
|
unpatch(e, t) {
|
|
9041
9130
|
return this.patch(e, this.reverse(t));
|
|
9042
9131
|
}
|
|
9043
9132
|
clone(e) {
|
|
9044
|
-
return
|
|
9133
|
+
return Qp(e);
|
|
9045
9134
|
}
|
|
9046
9135
|
};
|
|
9047
9136
|
//#endregion
|
|
9048
9137
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
9049
|
-
function
|
|
9050
|
-
return new
|
|
9138
|
+
function Vm(e) {
|
|
9139
|
+
return new Bm(e);
|
|
9051
9140
|
}
|
|
9052
9141
|
//#endregion
|
|
9053
9142
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9609,46 +9698,46 @@ $.Diff = function(e, t) {
|
|
|
9609
9698
|
};
|
|
9610
9699
|
//#endregion
|
|
9611
9700
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9612
|
-
var
|
|
9701
|
+
var Hm = (e = {}) => Vm({
|
|
9613
9702
|
...e,
|
|
9614
9703
|
textDiff: {
|
|
9615
9704
|
diffMatchPatch: $,
|
|
9616
9705
|
minLength: 120
|
|
9617
9706
|
},
|
|
9618
9707
|
cloneDiffValues: !0
|
|
9619
|
-
}),
|
|
9708
|
+
}), Um = ["user", "unittemplate"], Wm = Hm(), Gm = (e, t, n) => {
|
|
9620
9709
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9621
9710
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9622
9711
|
let n = r[t[e]];
|
|
9623
9712
|
if (n) return n;
|
|
9624
9713
|
}
|
|
9625
9714
|
return n || "";
|
|
9626
|
-
},
|
|
9715
|
+
}, Km = (e) => {
|
|
9627
9716
|
let t = (e) => vr(e) ? Ar(e) : String(e);
|
|
9628
9717
|
return Array.isArray(e) ? e.length === 0 ? "" : e.some((e) => e && typeof e == "object") ? "Multiple changes..." : e.map(t).join(", ") : e && typeof e == "object" ? Object.keys(e).length === 0 ? "" : "Multiple changes..." : t(e);
|
|
9629
|
-
},
|
|
9718
|
+
}, qm = (e) => {
|
|
9630
9719
|
switch (e.length) {
|
|
9631
9720
|
case 1: {
|
|
9632
9721
|
let [t] = e;
|
|
9633
9722
|
return {
|
|
9634
9723
|
type: "created",
|
|
9635
9724
|
before: "",
|
|
9636
|
-
after:
|
|
9725
|
+
after: Km(t)
|
|
9637
9726
|
};
|
|
9638
9727
|
}
|
|
9639
9728
|
case 2: {
|
|
9640
9729
|
let [t, n] = e;
|
|
9641
9730
|
return {
|
|
9642
9731
|
type: "modified",
|
|
9643
|
-
before:
|
|
9644
|
-
after:
|
|
9732
|
+
before: Km(t),
|
|
9733
|
+
after: Km(n)
|
|
9645
9734
|
};
|
|
9646
9735
|
}
|
|
9647
9736
|
case 3: {
|
|
9648
9737
|
let [t] = e;
|
|
9649
9738
|
return {
|
|
9650
9739
|
type: "deleted",
|
|
9651
|
-
before:
|
|
9740
|
+
before: Km(t),
|
|
9652
9741
|
after: ""
|
|
9653
9742
|
};
|
|
9654
9743
|
}
|
|
@@ -9658,15 +9747,15 @@ var Mm = (e = {}) => jm({
|
|
|
9658
9747
|
after: ""
|
|
9659
9748
|
};
|
|
9660
9749
|
}
|
|
9661
|
-
},
|
|
9662
|
-
let r =
|
|
9750
|
+
}, Jm = (e) => Array.isArray(e), Ym = (e, t) => t ? Jm(t) ? t.length === 0 ? e : t.reduce((e, t) => Wm.unpatch(nn(e), nn(t)), nn(e)) : Wm.unpatch(nn(e), nn(t)) : e, Xm = (e) => e.createdAt || e.date, Zm = (e, t, n) => {
|
|
9751
|
+
let r = Xm(e);
|
|
9663
9752
|
if (!r) return {
|
|
9664
9753
|
oldJson: "",
|
|
9665
9754
|
newJson: "",
|
|
9666
9755
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9667
9756
|
};
|
|
9668
9757
|
let i = t.filter((e) => {
|
|
9669
|
-
let t =
|
|
9758
|
+
let t = Xm(e);
|
|
9670
9759
|
return !!(e.diffs && t && t >= r);
|
|
9671
9760
|
}), a = Array.from({ length: i.length + 1 });
|
|
9672
9761
|
a[0] = nn(n);
|
|
@@ -9679,7 +9768,7 @@ var Mm = (e = {}) => jm({
|
|
|
9679
9768
|
a[e + 1] = a[e];
|
|
9680
9769
|
continue;
|
|
9681
9770
|
}
|
|
9682
|
-
a[e + 1] =
|
|
9771
|
+
a[e + 1] = Ym(a[e], t);
|
|
9683
9772
|
}
|
|
9684
9773
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9685
9774
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9694,10 +9783,10 @@ var Mm = (e = {}) => jm({
|
|
|
9694
9783
|
oldJson: o,
|
|
9695
9784
|
newJson: s
|
|
9696
9785
|
};
|
|
9697
|
-
},
|
|
9786
|
+
}, Qm = (e, t, n = {}, r = []) => {
|
|
9698
9787
|
var i;
|
|
9699
9788
|
if (!e) return;
|
|
9700
|
-
let a = [...
|
|
9789
|
+
let a = [...Um, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9701
9790
|
Object.keys(e).forEach((i) => {
|
|
9702
9791
|
var o;
|
|
9703
9792
|
let s = e[i];
|
|
@@ -9710,12 +9799,12 @@ var Mm = (e = {}) => jm({
|
|
|
9710
9799
|
cn(s) ? t.push({
|
|
9711
9800
|
deltaFormat: [...s],
|
|
9712
9801
|
path: c
|
|
9713
|
-
}) : gn(s) &&
|
|
9802
|
+
}) : gn(s) && Qm(s, t, n, c);
|
|
9714
9803
|
});
|
|
9715
|
-
},
|
|
9804
|
+
}, $m = (e, t = {}) => {
|
|
9716
9805
|
let n = [];
|
|
9717
|
-
return e ? (
|
|
9718
|
-
},
|
|
9806
|
+
return e ? (Qm(e, n, t), n) : [];
|
|
9807
|
+
}, eh = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), th = (e) => {
|
|
9719
9808
|
if (e == null || e === "") return "empty";
|
|
9720
9809
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9721
9810
|
if (typeof e == "string") return e;
|
|
@@ -9726,27 +9815,27 @@ var Mm = (e = {}) => jm({
|
|
|
9726
9815
|
} catch {
|
|
9727
9816
|
return String(e);
|
|
9728
9817
|
}
|
|
9729
|
-
},
|
|
9818
|
+
}, nh = (e, t = e.length - 1) => {
|
|
9730
9819
|
if (t >= e.length) return "Value";
|
|
9731
9820
|
let n = e[t];
|
|
9732
|
-
return !n || hr(n) ?
|
|
9733
|
-
},
|
|
9734
|
-
let o =
|
|
9821
|
+
return !n || hr(n) ? nh(e, t - 1) : eh(n);
|
|
9822
|
+
}, rh = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
9823
|
+
let o = th(r), s = th(i), c = a ? ` in ${a}` : "";
|
|
9735
9824
|
switch (t) {
|
|
9736
9825
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
9737
9826
|
case "created": return `${e} created ${s}${c}.`;
|
|
9738
9827
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
9739
9828
|
default: return `${e} changed ${n}${c}.`;
|
|
9740
9829
|
}
|
|
9741
|
-
},
|
|
9830
|
+
}, ih = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
|
|
9742
9831
|
let i = {
|
|
9743
9832
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9744
9833
|
rows: n.map((n) => {
|
|
9745
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
9746
|
-
return { cells: [{ value:
|
|
9834
|
+
let { deltaFormat: i, path: a } = n, o = Gm(e, a, r), { type: s, before: c, after: l } = qm(i);
|
|
9835
|
+
return { cells: [{ value: rh({
|
|
9747
9836
|
userName: t,
|
|
9748
9837
|
type: s,
|
|
9749
|
-
property:
|
|
9838
|
+
property: nh(a),
|
|
9750
9839
|
before: c,
|
|
9751
9840
|
after: l,
|
|
9752
9841
|
sectionName: o
|
|
@@ -9754,7 +9843,7 @@ var Mm = (e = {}) => jm({
|
|
|
9754
9843
|
})
|
|
9755
9844
|
};
|
|
9756
9845
|
return /* @__PURE__ */ C(eu, { table: i });
|
|
9757
|
-
},
|
|
9846
|
+
}, ah = Object.freeze({
|
|
9758
9847
|
summary: {
|
|
9759
9848
|
label: "Summary",
|
|
9760
9849
|
value: "summary"
|
|
@@ -9763,18 +9852,18 @@ var Mm = (e = {}) => jm({
|
|
|
9763
9852
|
label: "Compare",
|
|
9764
9853
|
value: "compare"
|
|
9765
9854
|
}
|
|
9766
|
-
}),
|
|
9767
|
-
let c = [
|
|
9855
|
+
}), oh = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
9856
|
+
let c = [ah.summary, ah.compare].map(({ label: e, value: t }) => ({
|
|
9768
9857
|
label: e,
|
|
9769
9858
|
value: t
|
|
9770
9859
|
})), [l, u] = y(c[0]), { diffs: d = void 0 } = e || {};
|
|
9771
9860
|
if (!d) return null;
|
|
9772
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
9773
|
-
return /* @__PURE__ */ C(
|
|
9861
|
+
let { oldJson: f, newJson: p, error: m } = Zm(e, t, n);
|
|
9862
|
+
return /* @__PURE__ */ C(Ms, {
|
|
9774
9863
|
visible: r,
|
|
9775
9864
|
centered: !0,
|
|
9776
9865
|
onEscape: s,
|
|
9777
|
-
children: /* @__PURE__ */ C(
|
|
9866
|
+
children: /* @__PURE__ */ C(us, { dialog: {
|
|
9778
9867
|
scroll: !0,
|
|
9779
9868
|
heading: "Comparison view",
|
|
9780
9869
|
content: /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(Jf, {
|
|
@@ -9782,10 +9871,10 @@ var Mm = (e = {}) => jm({
|
|
|
9782
9871
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
9783
9872
|
options: c,
|
|
9784
9873
|
value: l
|
|
9785
|
-
}), l.value === "summary" ? /* @__PURE__ */ C(
|
|
9874
|
+
}), l.value === "summary" ? /* @__PURE__ */ C(ih, {
|
|
9786
9875
|
userName: e.userName,
|
|
9787
9876
|
sectionNames: a,
|
|
9788
|
-
diffs:
|
|
9877
|
+
diffs: $m(d, i),
|
|
9789
9878
|
defaultSectionName: o
|
|
9790
9879
|
}) : m ? /* @__PURE__ */ C("div", {
|
|
9791
9880
|
style: { padding: 16 },
|
|
@@ -9794,7 +9883,7 @@ var Mm = (e = {}) => jm({
|
|
|
9794
9883
|
oldJson: f,
|
|
9795
9884
|
newJson: p
|
|
9796
9885
|
})] }),
|
|
9797
|
-
footer: /* @__PURE__ */ C(
|
|
9886
|
+
footer: /* @__PURE__ */ C(q, {
|
|
9798
9887
|
label: "Cancel",
|
|
9799
9888
|
onClick: s
|
|
9800
9889
|
}),
|
|
@@ -9803,7 +9892,7 @@ var Mm = (e = {}) => jm({
|
|
|
9803
9892
|
height: "90vh"
|
|
9804
9893
|
} })
|
|
9805
9894
|
});
|
|
9806
|
-
},
|
|
9895
|
+
}, sh = [
|
|
9807
9896
|
{
|
|
9808
9897
|
label: "10 / page",
|
|
9809
9898
|
value: 10
|
|
@@ -9816,8 +9905,8 @@ var Mm = (e = {}) => jm({
|
|
|
9816
9905
|
label: "50 / page",
|
|
9817
9906
|
value: 50
|
|
9818
9907
|
}
|
|
9819
|
-
],
|
|
9820
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
9908
|
+
], ch = (e, t = {}) => {
|
|
9909
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = $m(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
9821
9910
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
9822
9911
|
switch (a) {
|
|
9823
9912
|
case "Created": return `Created by ${r}`;
|
|
@@ -9827,7 +9916,7 @@ var Mm = (e = {}) => jm({
|
|
|
9827
9916
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
9828
9917
|
default: return `Change by ${r}`;
|
|
9829
9918
|
}
|
|
9830
|
-
},
|
|
9919
|
+
}, lh = ({ logs: e, data: t, total: n, loading: r, selectedPage: i, rowsPerPage: a, sectionNames: o, defaultSectionName: s, filterToggles: c = [], transformDiffsConfig: l, onChangeRowsPerPage: u, onSelectPage: d, onClickSnapshot: f, snapshotLoading: p, getActions: m, isLogDisabled: h }) => {
|
|
9831
9920
|
let [g, _] = y(!1), [v, b] = y(null), x = (e) => {
|
|
9832
9921
|
if (e.snapshot) {
|
|
9833
9922
|
f == null || f(e.snapshot, e);
|
|
@@ -9846,7 +9935,7 @@ var Mm = (e = {}) => jm({
|
|
|
9846
9935
|
return {
|
|
9847
9936
|
cells: [
|
|
9848
9937
|
{
|
|
9849
|
-
value: e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
9938
|
+
value: e.snapshot ? `Snapshot: ${e.snapshot}` : ch(e, l),
|
|
9850
9939
|
type: "Link",
|
|
9851
9940
|
disabled: n,
|
|
9852
9941
|
onClick: n ? void 0 : () => x(e),
|
|
@@ -9865,8 +9954,8 @@ var Mm = (e = {}) => jm({
|
|
|
9865
9954
|
type: "Static"
|
|
9866
9955
|
},
|
|
9867
9956
|
{
|
|
9868
|
-
value:
|
|
9869
|
-
date:
|
|
9957
|
+
value: Xp({
|
|
9958
|
+
date: Xm(e),
|
|
9870
9959
|
showTime: !0
|
|
9871
9960
|
}),
|
|
9872
9961
|
type: "Static"
|
|
@@ -9875,11 +9964,11 @@ var Mm = (e = {}) => jm({
|
|
|
9875
9964
|
actions: m == null ? void 0 : m(e)
|
|
9876
9965
|
};
|
|
9877
9966
|
});
|
|
9878
|
-
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(
|
|
9967
|
+
return /* @__PURE__ */ w(S, { children: [/* @__PURE__ */ C(Do, {
|
|
9879
9968
|
heading: /* @__PURE__ */ w(vd, {
|
|
9880
9969
|
gap: !0,
|
|
9881
9970
|
wrap: !0,
|
|
9882
|
-
children: [/* @__PURE__ */ C(
|
|
9971
|
+
children: [/* @__PURE__ */ C(ss, { children: "Changes" }), c.map((e) => {
|
|
9883
9972
|
var t;
|
|
9884
9973
|
return /* @__PURE__ */ C(Xu, {
|
|
9885
9974
|
small: (t = e.small) == null || t,
|
|
@@ -9894,7 +9983,7 @@ var Mm = (e = {}) => jm({
|
|
|
9894
9983
|
children: r ? /* @__PURE__ */ C(Fd, {
|
|
9895
9984
|
height: "100px",
|
|
9896
9985
|
theme: Ri.WHITE,
|
|
9897
|
-
children: /* @__PURE__ */ C(
|
|
9986
|
+
children: /* @__PURE__ */ C(ka, { dark: !0 })
|
|
9898
9987
|
}) : /* @__PURE__ */ C(eu, { table: {
|
|
9899
9988
|
headers: T,
|
|
9900
9989
|
testId: "auditlog-table",
|
|
@@ -9909,14 +9998,14 @@ var Mm = (e = {}) => jm({
|
|
|
9909
9998
|
onChange: (e) => {
|
|
9910
9999
|
u(Number(e.target.value));
|
|
9911
10000
|
},
|
|
9912
|
-
options:
|
|
10001
|
+
options: sh,
|
|
9913
10002
|
value: a
|
|
9914
10003
|
},
|
|
9915
10004
|
onSelectPage: (e) => d(e),
|
|
9916
10005
|
small: !0
|
|
9917
10006
|
} }
|
|
9918
10007
|
} })
|
|
9919
|
-
}), g && v && v.diffs && /* @__PURE__ */ C(
|
|
10008
|
+
}), g && v && v.diffs && /* @__PURE__ */ C(oh, {
|
|
9920
10009
|
sectionNames: o,
|
|
9921
10010
|
isOpen: g,
|
|
9922
10011
|
onClose: () => _(!1),
|
|
@@ -9926,7 +10015,7 @@ var Mm = (e = {}) => jm({
|
|
|
9926
10015
|
data: t,
|
|
9927
10016
|
transformDiffsConfig: l
|
|
9928
10017
|
})] });
|
|
9929
|
-
},
|
|
10018
|
+
}, uh = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
9930
10019
|
let i = window.location.href, a = v(i);
|
|
9931
10020
|
return f(() => {
|
|
9932
10021
|
a.current = i;
|
|
@@ -9949,22 +10038,22 @@ var Mm = (e = {}) => jm({
|
|
|
9949
10038
|
});
|
|
9950
10039
|
};
|
|
9951
10040
|
}, [e, t]), null;
|
|
9952
|
-
},
|
|
10041
|
+
}, dh = {
|
|
9953
10042
|
errorBoundary: "_errorBoundary_hmco0_1",
|
|
9954
10043
|
sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
|
|
9955
10044
|
rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
|
|
9956
|
-
},
|
|
10045
|
+
}, fh = ({ options: e }) => {
|
|
9957
10046
|
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Op();
|
|
9958
10047
|
if (t) return /* @__PURE__ */ C(t, {});
|
|
9959
10048
|
if (n || r) return /* @__PURE__ */ C("div", {
|
|
9960
|
-
className: x(n ?
|
|
10049
|
+
className: x(n ? dh.sidebarErrorBoundary : "", r ? dh.rightSidebarErrorBoundary : ""),
|
|
9961
10050
|
style: a,
|
|
9962
10051
|
children: o == null ? void 0 : o.unexpectedError
|
|
9963
10052
|
});
|
|
9964
10053
|
let s = /* @__PURE__ */ C("div", {
|
|
9965
|
-
className:
|
|
10054
|
+
className: dh.errorBoundary,
|
|
9966
10055
|
style: a,
|
|
9967
|
-
children: /* @__PURE__ */ C(
|
|
10056
|
+
children: /* @__PURE__ */ C(Qs, { message: {
|
|
9968
10057
|
icon: !0,
|
|
9969
10058
|
type: "Error",
|
|
9970
10059
|
content: o == null ? void 0 : o.unexpectedError,
|
|
@@ -9977,19 +10066,19 @@ var Mm = (e = {}) => jm({
|
|
|
9977
10066
|
padding: 0,
|
|
9978
10067
|
children: s
|
|
9979
10068
|
}) : s;
|
|
9980
|
-
},
|
|
9981
|
-
fallback: /* @__PURE__ */ C(
|
|
10069
|
+
}, ph = ({ children: e, options: t }) => /* @__PURE__ */ C(Mi.ErrorBoundary, {
|
|
10070
|
+
fallback: /* @__PURE__ */ C(fh, { options: t }),
|
|
9982
10071
|
onError: (e, t) => {
|
|
9983
10072
|
console.error("Error caught by boundary:", e, t);
|
|
9984
10073
|
},
|
|
9985
10074
|
children: e
|
|
9986
|
-
}),
|
|
10075
|
+
}), mh = (e, t = {}) => (n) => /* @__PURE__ */ C(ph, {
|
|
9987
10076
|
options: t,
|
|
9988
10077
|
children: /* @__PURE__ */ C(e, { ...n })
|
|
9989
|
-
}),
|
|
10078
|
+
}), hh = (e = {}) => (t) => mh(t, e), gh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, _h = (e) => {
|
|
9990
10079
|
kp(wp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
9991
|
-
e === wp.Translations ? kp(e, Ep(t)) : kp(e,
|
|
10080
|
+
e === wp.Translations ? kp(e, Ep(t)) : kp(e, gh(t) ? t : { ...t });
|
|
9992
10081
|
});
|
|
9993
10082
|
};
|
|
9994
10083
|
//#endregion
|
|
9995
|
-
export { ia as Accordion,
|
|
10084
|
+
export { ia as Accordion, Ea as AccordionWithDefaultToggle, yo as Actions, Fi as Align, lh as AuditLog, lo as Badge, Co as Breadcrumb, xo as BreadcrumbLinkType, q as Button, To as ButtonGroup, Ii as ButtonPosition, Aa as ButtonType, Do as Card, Sa as CheckBox, Qi as Chevron, ta as Collapse, Pi as Color, Jo as ColorInput, qo as ColorInputPopover, $o as Column, us as Dialog, Yp as DiffTable, zp as DiffViewer, W as DisabledContext, is as Divider, _s as Drawer, tp as ElementType, du as Empty, ph as ErrorBoundary, Bi as EventKey, _d as Field, pd as FileButton, Ds as FileInput, vd as Flex, bd as FormRow, No as Grid, H as GroupOrder, ss as Heading, xa as HelpIcon, G as Icon, U as IconType, Ss as Input, bs as InputGroup, ol as InputGroupAddon, ws as InputReaderMethods, zi as InputType, hd as Label, Nd as List, Sd as ListHeading, Od as ListSubheading, Fd as Loader, ff as Mention, _o as Menu, $a as MenuCarat, Qa as MenuType, Qs as Message, Ks as MessageType, Ms as Modal, ic as NativeSelect, yl as NumberInput, Hd as OptionDropdown, Wd as Page, sl as Pagination, sp as PopConfirm, ko as Popover, Gd as Portal, qd as PrintHeader, Fs as ProgressBar, Jd as RadioButton, df as RichTextInput, mf as Row, el as Select, Fp as SettingField, yf as SideBar, xf as Skeleton, kl as Slider, Bs as SmartUploadModal, Os as Spacer, ka as Spinner, eu as Table, fd as TableImportExport, Jf as Tabs, ns as Text, Zf as TextArea, Yf as TextLink, Li as TextTransform, Ri as Theme, di as Toaster, Xu as Toggle, K as Tooltip, ip as TopBar, dp as Tree, Cp as TreeTable, Ni as TriggerType, Vf as UnitInput, Gf as UnitSlider, Np as UnitTable, uh as UsageTracker, qu as dismissToast, Rf as initializeContext, _h as initializeGuiLibrary, Ts as readFile, Ku as toast, sc as useFocus, ks as useKeyboardEvent, uc as useWindowWidth, hh as withChainableErrorBoundary, mh as withErrorBoundary };
|