@oliasoft-open-source/react-ui-library 10.2.4 → 10.2.5-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +14 -5
- package/dist/index.js +832 -813
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -552,27 +552,27 @@ var Di = /* @__PURE__ */ function(e) {
|
|
|
552
552
|
onMouseOver: A,
|
|
553
553
|
children: e
|
|
554
554
|
})] });
|
|
555
|
-
},
|
|
555
|
+
}, K = (e) => /* @__PURE__ */ S($i, { children: /* @__PURE__ */ S(da, { ...e }) }), fa = {
|
|
556
556
|
helpIcon: "_helpIcon_hd0z2_1",
|
|
557
557
|
active: "_active_hd0z2_9",
|
|
558
558
|
clickable: "_clickable_hd0z2_12"
|
|
559
|
-
},
|
|
559
|
+
}, pa = ({ children: e, text: t, maxWidth: n }) => t ? /* @__PURE__ */ S(K, {
|
|
560
560
|
text: t,
|
|
561
561
|
display: "inline-flex",
|
|
562
562
|
maxWidth: n,
|
|
563
563
|
children: e
|
|
564
|
-
}) : /* @__PURE__ */ S(x, { children: e }),
|
|
565
|
-
className: b(
|
|
564
|
+
}) : /* @__PURE__ */ S(x, { children: e }), ma = ({ text: e, onClick: t, icon: n = "help", active: r = !1, maxWidth: i = "300px", testId: a }) => /* @__PURE__ */ S("div", {
|
|
565
|
+
className: b(fa.helpIcon, t ? fa.clickable : "", r ? fa.active : ""),
|
|
566
566
|
onClick: (e) => {
|
|
567
567
|
t && (e.stopPropagation(), t());
|
|
568
568
|
},
|
|
569
569
|
"data-testid": a,
|
|
570
|
-
children: /* @__PURE__ */ S(
|
|
570
|
+
children: /* @__PURE__ */ S(pa, {
|
|
571
571
|
text: e,
|
|
572
572
|
maxWidth: i,
|
|
573
573
|
children: /* @__PURE__ */ S(G, { icon: n })
|
|
574
574
|
})
|
|
575
|
-
}),
|
|
575
|
+
}), ha = ({ 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: d, testId: f, helpText: p, onClickHelp: m, textTransform: h = ji.CAPITALIZE }) => {
|
|
576
576
|
let g = u(W), _ = p || m;
|
|
577
577
|
return /* @__PURE__ */ C(It, {
|
|
578
578
|
name: o,
|
|
@@ -604,46 +604,46 @@ var Di = /* @__PURE__ */ function(e) {
|
|
|
604
604
|
style: { textTransform: h },
|
|
605
605
|
children: s
|
|
606
606
|
})]
|
|
607
|
-
}), _ && /* @__PURE__ */ S(
|
|
607
|
+
}), _ && /* @__PURE__ */ S(ma, {
|
|
608
608
|
text: p,
|
|
609
609
|
onClick: m
|
|
610
610
|
})]
|
|
611
611
|
});
|
|
612
|
-
},
|
|
612
|
+
}, ga = {
|
|
613
613
|
bordered: "_bordered_1cgsf_1",
|
|
614
614
|
checkboxWrapper: "_checkboxWrapper_1cgsf_7",
|
|
615
615
|
padding: "_padding_1cgsf_13",
|
|
616
616
|
contentWrapper: "_contentWrapper_1cgsf_16"
|
|
617
|
-
},
|
|
617
|
+
}, _a = /* @__PURE__ */ function(e) {
|
|
618
618
|
return e.TOGGLE_ACCORDION = "TOGGLE_ACCORDION", e.TOGGLE_ENABLE = "TOGGLE_ENABLE", e;
|
|
619
|
-
}({}),
|
|
619
|
+
}({}), va = (e, t) => {
|
|
620
620
|
switch (t.type) {
|
|
621
|
-
case
|
|
621
|
+
case _a.TOGGLE_ACCORDION: return {
|
|
622
622
|
...e,
|
|
623
623
|
accordionExpanded: !e.accordionExpanded
|
|
624
624
|
};
|
|
625
|
-
case
|
|
625
|
+
case _a.TOGGLE_ENABLE: return {
|
|
626
626
|
...e,
|
|
627
627
|
defaultEnabled: !e.defaultEnabled,
|
|
628
628
|
accordionExpanded: e.defaultEnabled
|
|
629
629
|
};
|
|
630
630
|
default: return e;
|
|
631
631
|
}
|
|
632
|
-
},
|
|
633
|
-
let [s, c] = g(
|
|
632
|
+
}, ya = ({ heading: e, toggleLabel: t, onClickDefaultToggle: n, expanded: r = !1, defaultEnabled: i = !0, padding: a = !0, children: o }) => {
|
|
633
|
+
let [s, c] = g(va, {
|
|
634
634
|
accordionExpanded: r,
|
|
635
635
|
defaultEnabled: i
|
|
636
636
|
}), l = /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
|
|
637
|
-
className:
|
|
638
|
-
children: /* @__PURE__ */ S(
|
|
637
|
+
className: ga.checkboxWrapper,
|
|
638
|
+
children: /* @__PURE__ */ S(ha, {
|
|
639
639
|
label: t,
|
|
640
640
|
onChange: (e) => {
|
|
641
|
-
c({ type:
|
|
641
|
+
c({ type: _a.TOGGLE_ENABLE }), n == null || n(e);
|
|
642
642
|
},
|
|
643
643
|
checked: s.defaultEnabled
|
|
644
644
|
})
|
|
645
645
|
}), s.accordionExpanded && /* @__PURE__ */ S("div", {
|
|
646
|
-
className:
|
|
646
|
+
className: ga.contentWrapper,
|
|
647
647
|
children: o
|
|
648
648
|
})] });
|
|
649
649
|
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Zi, {
|
|
@@ -651,12 +651,12 @@ var Di = /* @__PURE__ */ function(e) {
|
|
|
651
651
|
bordered: !0,
|
|
652
652
|
expanded: s.accordionExpanded,
|
|
653
653
|
squareBottom: !0,
|
|
654
|
-
onClick: () => c({ type:
|
|
654
|
+
onClick: () => c({ type: _a.TOGGLE_ACCORDION })
|
|
655
655
|
}), /* @__PURE__ */ S("div", {
|
|
656
|
-
className: b(
|
|
656
|
+
className: b(ga.bordered, a ? ga.padding : ""),
|
|
657
657
|
children: l
|
|
658
658
|
})] });
|
|
659
|
-
},
|
|
659
|
+
}, ba = {
|
|
660
660
|
inputInTable: "_inputInTable_7ijg3_1",
|
|
661
661
|
inputHover: "_inputHover_7ijg3_13",
|
|
662
662
|
inputFocus: "_inputFocus_7ijg3_18",
|
|
@@ -683,46 +683,46 @@ var Di = /* @__PURE__ */ function(e) {
|
|
|
683
683
|
groupOrderFirst: "_groupOrderFirst_7ijg3_348",
|
|
684
684
|
groupOrderMiddle: "_groupOrderMiddle_7ijg3_349",
|
|
685
685
|
groupOrderLast: "_groupOrderLast_7ijg3_350"
|
|
686
|
-
},
|
|
686
|
+
}, xa = { spinner: "_spinner_156m4_1" }, Sa = ({ small: e = !1, colored: t = !1, dark: n = !1, tiny: r = !1 }) => {
|
|
687
687
|
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)";
|
|
688
688
|
return /* @__PURE__ */ S("div", {
|
|
689
|
-
className:
|
|
689
|
+
className: xa.spinner,
|
|
690
690
|
style: {
|
|
691
691
|
color: i,
|
|
692
692
|
fontSize: a
|
|
693
693
|
}
|
|
694
694
|
});
|
|
695
|
-
},
|
|
695
|
+
}, Ca = /* @__PURE__ */ function(e) {
|
|
696
696
|
return e.SUBMIT = "submit", e.BUTTON = "button", e.RESET = "reset", e;
|
|
697
|
-
}({}),
|
|
697
|
+
}({}), wa = ({ children: e, tooltip: t = null }) => t ? /* @__PURE__ */ S(K, {
|
|
698
698
|
text: t,
|
|
699
699
|
display: "inline-flex",
|
|
700
700
|
children: e
|
|
701
|
-
}) : /* @__PURE__ */ S(x, { children: e }),
|
|
701
|
+
}) : /* @__PURE__ */ S(x, { 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: d, pill: f = !1, round: p = !1, small: m = !1, styles: h = "", width: g = "", title: _ = "", type: v = Ca.BUTTON, onClick: y = () => {}, error: x, warning: w, testId: T, tooltip: E, inverted: D = !1, component: O = "button", url: k, tabIndex: A, ...j }, M) => {
|
|
702
702
|
let N = u(W), P = (() => {
|
|
703
703
|
if (n) switch (n) {
|
|
704
704
|
case Oi.DANGER:
|
|
705
|
-
case Oi.RED: return
|
|
705
|
+
case Oi.RED: return ba.red;
|
|
706
706
|
case Oi.SUCCESS:
|
|
707
|
-
case Oi.GREEN: return
|
|
708
|
-
case Oi.MUTED: return
|
|
709
|
-
default: return
|
|
707
|
+
case Oi.GREEN: return ba.green;
|
|
708
|
+
case Oi.MUTED: return ba.muted;
|
|
709
|
+
default: return ba.orange;
|
|
710
710
|
}
|
|
711
711
|
return "";
|
|
712
712
|
})(), F = (() => {
|
|
713
713
|
if (a) switch (a) {
|
|
714
|
-
case H.FIRST: return
|
|
715
|
-
case H.LAST: return
|
|
716
|
-
default: return
|
|
714
|
+
case H.FIRST: return ba.groupOrderFirst;
|
|
715
|
+
case H.LAST: return ba.groupOrderLast;
|
|
716
|
+
default: return ba.groupOrderMiddle;
|
|
717
717
|
}
|
|
718
718
|
return "";
|
|
719
719
|
})(), I = r || N && !i;
|
|
720
|
-
return /* @__PURE__ */ S(
|
|
720
|
+
return /* @__PURE__ */ S(wa, {
|
|
721
721
|
tooltip: E,
|
|
722
722
|
children: /* @__PURE__ */ C(O, {
|
|
723
723
|
ref: M,
|
|
724
|
-
type: v ===
|
|
725
|
-
className: b(
|
|
724
|
+
type: v === Ca.SUBMIT ? Ca.SUBMIT : Ca.BUTTON,
|
|
725
|
+
className: b(ba.button, e ? ba.active : "", t ? ba.basic : "", P, I ? ba.disabled : "", (o || l) && !c ? ba.iconOnly : "", D ? ba.inverted : "", F, f ? ba.pill : "", p ? ba.round : "", m ? ba.small : "", h),
|
|
726
726
|
disabled: I,
|
|
727
727
|
name: d == null ? "" : d,
|
|
728
728
|
onClick: y,
|
|
@@ -736,12 +736,12 @@ var Di = /* @__PURE__ */ function(e) {
|
|
|
736
736
|
...j,
|
|
737
737
|
children: [
|
|
738
738
|
o && /* @__PURE__ */ S("span", {
|
|
739
|
-
className:
|
|
739
|
+
className: ba.icon,
|
|
740
740
|
children: /* @__PURE__ */ S(G, { icon: o })
|
|
741
741
|
}),
|
|
742
742
|
l && /* @__PURE__ */ S("span", {
|
|
743
|
-
className:
|
|
744
|
-
children: /* @__PURE__ */ S(
|
|
743
|
+
className: ba.icon,
|
|
744
|
+
children: /* @__PURE__ */ S(Sa, {
|
|
745
745
|
small: !m,
|
|
746
746
|
tiny: m,
|
|
747
747
|
dark: !n && !t,
|
|
@@ -750,20 +750,20 @@ var Di = /* @__PURE__ */ function(e) {
|
|
|
750
750
|
}),
|
|
751
751
|
c,
|
|
752
752
|
s && /* @__PURE__ */ S("span", {
|
|
753
|
-
className:
|
|
753
|
+
className: ba.rightIcon,
|
|
754
754
|
children: /* @__PURE__ */ S(G, { icon: s })
|
|
755
755
|
})
|
|
756
756
|
]
|
|
757
757
|
})
|
|
758
758
|
});
|
|
759
759
|
});
|
|
760
|
-
|
|
761
|
-
var
|
|
760
|
+
q.displayName = "Button";
|
|
761
|
+
var Ta = {
|
|
762
762
|
actions: "_actions_1t7vd_1",
|
|
763
763
|
childComponent: "_childComponent_1t7vd_11",
|
|
764
764
|
actionComponentContainer: "_actionComponentContainer_1t7vd_14",
|
|
765
765
|
active: "_active_1t7vd_36"
|
|
766
|
-
},
|
|
766
|
+
}, Ea = {
|
|
767
767
|
"top-start": "top start",
|
|
768
768
|
"top-center": "top",
|
|
769
769
|
"top-end": "top end",
|
|
@@ -777,28 +777,28 @@ var Ea = {
|
|
|
777
777
|
"left-center": "left",
|
|
778
778
|
"left-end": "left bottom",
|
|
779
779
|
center: "bottom"
|
|
780
|
-
},
|
|
780
|
+
}, Da = (e = "top-center") => {
|
|
781
781
|
var t;
|
|
782
|
-
return (t =
|
|
783
|
-
},
|
|
782
|
+
return (t = Ea[e]) == null ? "top" : t;
|
|
783
|
+
}, Oa = () => {
|
|
784
784
|
if (typeof document > "u") return;
|
|
785
785
|
let e = document.getElementById(ea);
|
|
786
786
|
return e || (e = document.createElement("div"), e.id = ea, document.body.appendChild(e)), e;
|
|
787
|
-
},
|
|
787
|
+
}, ka = (e) => {
|
|
788
788
|
if (e) {
|
|
789
789
|
let t = ra(e);
|
|
790
790
|
if (t) return t;
|
|
791
791
|
}
|
|
792
|
-
return
|
|
793
|
-
},
|
|
792
|
+
return Oa();
|
|
793
|
+
}, Aa = /* @__PURE__ */ new Set([
|
|
794
794
|
"button",
|
|
795
795
|
"a",
|
|
796
796
|
"input",
|
|
797
797
|
"select",
|
|
798
798
|
"textarea"
|
|
799
|
-
]),
|
|
799
|
+
]), ja = (e) => s(e) && typeof e.type == "string" && Aa.has(e.type), Ma = (e) => s(e) && typeof e.type == "string", Na = (e) => typeof e == "object" && !!e && "$$typeof" in e && e.$$typeof === Symbol.for("react.forward_ref"), Pa = (e) => ja(e) || Ma(e) || s(e) && Na(e.type), Fa = (e) => e.props.disabled === !0 || e.props["aria-disabled"] === !0 || e.props["aria-disabled"] === "true", Ia = (e) => t.toArray(e).some(s), La = /* @__PURE__ */ function(e) {
|
|
800
800
|
return e.PRESS = "press", e.FOCUS = "focus", e;
|
|
801
|
-
}({}),
|
|
801
|
+
}({}), Ra = ({ 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 = [] }) => {
|
|
802
802
|
let p = t.toArray(e).filter(s), m = p.length === 1 ? p[0] : null, h = o;
|
|
803
803
|
if (p.length === 0) return null;
|
|
804
804
|
let g = (e) => n === "press" ? /* @__PURE__ */ S(Hn, {
|
|
@@ -810,14 +810,14 @@ var Ea = {
|
|
|
810
810
|
children: e
|
|
811
811
|
});
|
|
812
812
|
if (m) {
|
|
813
|
-
let e = typeof m.type == "string", t = f.includes(m.type), o = d &&
|
|
813
|
+
let e = typeof m.type == "string", t = f.includes(m.type), o = d && Pa(m), s = e || t || o, l = n === "focus" && Fa(m);
|
|
814
814
|
if (s && !l) {
|
|
815
815
|
let t = {}, { role: o, tabIndex: s } = m.props;
|
|
816
816
|
if (a) {
|
|
817
817
|
var _;
|
|
818
818
|
((_ = m.props["data-testid"]) == null ? m.props.testId : _) || (e ? t["data-testid"] = a : t.testId = a);
|
|
819
819
|
}
|
|
820
|
-
n === "press" && !
|
|
820
|
+
n === "press" && !ja(m) && o == null && (t.role = "button", t.tabIndex = s == null ? i ? -1 : 0 : s);
|
|
821
821
|
let l = r(m, t);
|
|
822
822
|
return c && (l = c(l)), g(l);
|
|
823
823
|
}
|
|
@@ -831,20 +831,20 @@ var Ea = {
|
|
|
831
831
|
...u,
|
|
832
832
|
children: e
|
|
833
833
|
}));
|
|
834
|
-
},
|
|
835
|
-
let s = r ? void 0 :
|
|
834
|
+
}, za = ({ children: e, placement: t = "bottom-start", portalTriggerRef: n, isNested: r = !1, offset: i = 0, className: a, ...o }) => {
|
|
835
|
+
let s = r ? void 0 : ka(n == null ? void 0 : n.current);
|
|
836
836
|
return /* @__PURE__ */ S(Vn, {
|
|
837
837
|
className: a,
|
|
838
|
-
placement:
|
|
838
|
+
placement: Da(t),
|
|
839
839
|
offset: r ? 0 : i,
|
|
840
840
|
UNSTABLE_portalContainer: s,
|
|
841
841
|
...o,
|
|
842
842
|
children: e
|
|
843
843
|
});
|
|
844
|
-
},
|
|
844
|
+
}, Ba = (e) => {
|
|
845
845
|
let { sections: t } = e;
|
|
846
846
|
return !s(t) && (!Array.isArray(t) || t.every((e) => ln(e)));
|
|
847
|
-
},
|
|
847
|
+
}, J = {
|
|
848
848
|
layer: "_layer_15mfd_1",
|
|
849
849
|
nested: "_nested_15mfd_14",
|
|
850
850
|
fileInput: "_fileInput_15mfd_17",
|
|
@@ -871,18 +871,18 @@ var Ea = {
|
|
|
871
871
|
menuPopover: "_menuPopover_15mfd_176",
|
|
872
872
|
menuPopoverNested: "_menuPopoverNested_15mfd_198",
|
|
873
873
|
menuItem: "_menuItem_15mfd_201"
|
|
874
|
-
},
|
|
874
|
+
}, Va = ({ label: e, onClick: t, icon: n, testId: r }) => /* @__PURE__ */ C("div", {
|
|
875
875
|
"data-testid": r,
|
|
876
876
|
children: [e, !!n && /* @__PURE__ */ S("span", {
|
|
877
|
-
className: b(
|
|
877
|
+
className: b(J.headingIcon, t ? J.clickable : ""),
|
|
878
878
|
onClick: t,
|
|
879
879
|
children: /* @__PURE__ */ S(G, { icon: n })
|
|
880
880
|
})]
|
|
881
|
-
}),
|
|
881
|
+
}), Ha = () => /* @__PURE__ */ S(kn, { className: J.divider }), Ua = (e) => typeof e == "string" || typeof e == "number" ? String(e) : "", Wa = ({ 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 }) => {
|
|
882
882
|
let g = _(null);
|
|
883
883
|
return /* @__PURE__ */ C(Dn, {
|
|
884
|
-
className: b(
|
|
885
|
-
textValue:
|
|
884
|
+
className: b(J.menuItem, J.option, u && J.inline, o && J.selected),
|
|
885
|
+
textValue: Ua(t),
|
|
886
886
|
href: n,
|
|
887
887
|
isDisabled: l,
|
|
888
888
|
shouldCloseOnSelect: !f && s,
|
|
@@ -902,17 +902,17 @@ var Ea = {
|
|
|
902
902
|
"data-testid": h,
|
|
903
903
|
children: [
|
|
904
904
|
a ? /* @__PURE__ */ S("span", {
|
|
905
|
-
className:
|
|
905
|
+
className: J.icon,
|
|
906
906
|
children: /* @__PURE__ */ S(G, { icon: a })
|
|
907
907
|
}) : null,
|
|
908
908
|
/* @__PURE__ */ C("div", {
|
|
909
|
-
className:
|
|
909
|
+
className: J.optionContent,
|
|
910
910
|
children: [
|
|
911
911
|
f && /* @__PURE__ */ S("input", {
|
|
912
912
|
ref: g,
|
|
913
913
|
type: "file",
|
|
914
914
|
accept: p,
|
|
915
|
-
className:
|
|
915
|
+
className: J.fileInput,
|
|
916
916
|
onClick: (e) => e.stopPropagation(),
|
|
917
917
|
onChange: (e) => {
|
|
918
918
|
var t;
|
|
@@ -932,51 +932,51 @@ var Ea = {
|
|
|
932
932
|
}
|
|
933
933
|
}),
|
|
934
934
|
/* @__PURE__ */ S("span", {
|
|
935
|
-
className:
|
|
936
|
-
title: d ||
|
|
935
|
+
className: J.label,
|
|
936
|
+
title: d || Ua(t),
|
|
937
937
|
children: t
|
|
938
938
|
}),
|
|
939
939
|
i ? /* @__PURE__ */ S("span", {
|
|
940
|
-
className:
|
|
940
|
+
className: J.description,
|
|
941
941
|
children: i
|
|
942
942
|
}) : null
|
|
943
943
|
]
|
|
944
944
|
}),
|
|
945
945
|
/* @__PURE__ */ C("div", {
|
|
946
|
-
className:
|
|
946
|
+
className: J.right,
|
|
947
947
|
children: [o && /* @__PURE__ */ S("span", {
|
|
948
|
-
className:
|
|
948
|
+
className: J.check,
|
|
949
949
|
children: /* @__PURE__ */ S(G, { icon: U.CHECK })
|
|
950
950
|
}), !!(e != null && e.length) && /* @__PURE__ */ S("div", {
|
|
951
|
-
className:
|
|
951
|
+
className: J.actions,
|
|
952
952
|
onClick: (e) => e.stopPropagation(),
|
|
953
|
-
children: /* @__PURE__ */ S(
|
|
953
|
+
children: /* @__PURE__ */ S(fo, { actions: e })
|
|
954
954
|
})]
|
|
955
955
|
})
|
|
956
956
|
]
|
|
957
957
|
});
|
|
958
|
-
},
|
|
958
|
+
}, Ga = /* @__PURE__ */ function(e) {
|
|
959
959
|
return e.HEADING = "Heading", e.DIVIDER = "Divider", e.OPTION = "Option", e.MENU = "Menu", e;
|
|
960
|
-
}({}),
|
|
960
|
+
}({}), Ka = /* @__PURE__ */ function(e) {
|
|
961
961
|
return e.FALSE = "false", e.RIGHT = "right", e.DOWN = "down", e;
|
|
962
|
-
}({}),
|
|
962
|
+
}({}), qa = ({ section: e, closeOnOptionClick: t, close: n }) => {
|
|
963
963
|
let r = u(W);
|
|
964
964
|
switch (e.type) {
|
|
965
|
-
case
|
|
965
|
+
case Ga.HEADING:
|
|
966
966
|
var i;
|
|
967
967
|
return /* @__PURE__ */ S(Tn, {
|
|
968
|
-
className:
|
|
969
|
-
children: /* @__PURE__ */ S(
|
|
968
|
+
className: J.heading,
|
|
969
|
+
children: /* @__PURE__ */ S(Va, {
|
|
970
970
|
label: (i = e == null ? void 0 : e.label) == null ? "" : i,
|
|
971
971
|
onClick: e.onClick,
|
|
972
972
|
icon: e.icon,
|
|
973
973
|
testId: e.testId
|
|
974
974
|
})
|
|
975
975
|
});
|
|
976
|
-
case
|
|
977
|
-
case
|
|
976
|
+
case Ga.DIVIDER: return /* @__PURE__ */ S(Ha, {});
|
|
977
|
+
case Ga.OPTION:
|
|
978
978
|
var a;
|
|
979
|
-
return /* @__PURE__ */ S(
|
|
979
|
+
return /* @__PURE__ */ S(Wa, {
|
|
980
980
|
actions: e == null ? void 0 : e.actions,
|
|
981
981
|
label: (a = e == null ? void 0 : e.label) == null ? "" : a,
|
|
982
982
|
url: e == null ? void 0 : e.url,
|
|
@@ -996,45 +996,45 @@ var Ea = {
|
|
|
996
996
|
});
|
|
997
997
|
default: return null;
|
|
998
998
|
}
|
|
999
|
-
},
|
|
999
|
+
}, Ja = o(({ label: e, title: t, carat: n, disabled: r, isOpen: i, selected: a, className: o, ...s }, c) => {
|
|
1000
1000
|
let l;
|
|
1001
1001
|
return t ? l = t : (typeof e == "string" || typeof e == "number") && (l = String(e)), /* @__PURE__ */ C("div", {
|
|
1002
1002
|
ref: c,
|
|
1003
|
-
className: b(
|
|
1003
|
+
className: b(J.trigger, r ? J.disabled : null, i ? J.active : null, a ? J == null ? void 0 : J.selected : null, o),
|
|
1004
1004
|
...s,
|
|
1005
1005
|
children: [/* @__PURE__ */ S("span", {
|
|
1006
|
-
className:
|
|
1006
|
+
className: J.label,
|
|
1007
1007
|
title: l,
|
|
1008
1008
|
children: e
|
|
1009
|
-
}), n && n ===
|
|
1010
|
-
className:
|
|
1009
|
+
}), n && n === Ka.RIGHT ? /* @__PURE__ */ S("span", {
|
|
1010
|
+
className: J.arrow,
|
|
1011
1011
|
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_RIGHT })
|
|
1012
|
-
}) : n && n ===
|
|
1013
|
-
className:
|
|
1012
|
+
}) : n && n === Ka.DOWN ? /* @__PURE__ */ S("span", {
|
|
1013
|
+
className: J.arrow,
|
|
1014
1014
|
children: /* @__PURE__ */ S(G, { icon: U.CHEVRON_DOWN })
|
|
1015
1015
|
}) : null]
|
|
1016
1016
|
});
|
|
1017
|
-
}),
|
|
1018
|
-
if (e.type ===
|
|
1017
|
+
}), Ya = (e) => typeof e == "string" || typeof e == "number" ? String(e) : "", Xa = (e, t, { closeOnOptionClick: n, close: r, maxHeight: i, width: a }) => {
|
|
1018
|
+
if (e.type === Ga.MENU) {
|
|
1019
1019
|
var o, s, c, l, u, d, f, p, m, h, g;
|
|
1020
|
-
let _ = (o = e.menu) == null ? void 0 : o.sections, v = Array.isArray(_) && _.some((e) => e == null ? void 0 : e.selected), y =
|
|
1020
|
+
let _ = (o = e.menu) == null ? void 0 : o.sections, v = Array.isArray(_) && _.some((e) => e == null ? void 0 : e.selected), y = Ba((s = e.menu) == null ? {} : s), x = ((c = e.menu) == null ? void 0 : c.placement) || "right-start", w = e.testId;
|
|
1021
1021
|
return /* @__PURE__ */ C(An, { children: [/* @__PURE__ */ S(Dn, {
|
|
1022
|
-
className:
|
|
1023
|
-
textValue:
|
|
1022
|
+
className: J.menuItem,
|
|
1023
|
+
textValue: Ya((l = (u = e.menu) == null ? void 0 : u.label) == null ? e.label : l),
|
|
1024
1024
|
isDisabled: y,
|
|
1025
1025
|
"data-testid": w,
|
|
1026
|
-
children: /* @__PURE__ */ S(
|
|
1026
|
+
children: /* @__PURE__ */ S(Ja, {
|
|
1027
1027
|
label: (d = (f = (p = e.menu) == null ? void 0 : p.label) == null ? e.label : f) == null ? "" : d,
|
|
1028
1028
|
title: e.title,
|
|
1029
|
-
carat:
|
|
1029
|
+
carat: Ka.RIGHT,
|
|
1030
1030
|
selected: v
|
|
1031
1031
|
})
|
|
1032
|
-
}), /* @__PURE__ */ S(
|
|
1033
|
-
className: b(
|
|
1032
|
+
}), /* @__PURE__ */ S(za, {
|
|
1033
|
+
className: b(J.menuPopover, J.menuPopoverNested),
|
|
1034
1034
|
placement: x,
|
|
1035
1035
|
isNested: !0,
|
|
1036
1036
|
"data-testid": (m = e.menu) == null ? void 0 : m.testId,
|
|
1037
|
-
children: /* @__PURE__ */ S(
|
|
1037
|
+
children: /* @__PURE__ */ S(Za, {
|
|
1038
1038
|
sections: (h = (g = e.menu) == null ? void 0 : g.sections) == null ? [] : h,
|
|
1039
1039
|
isNested: !0,
|
|
1040
1040
|
width: a,
|
|
@@ -1045,12 +1045,12 @@ var Ea = {
|
|
|
1045
1045
|
})
|
|
1046
1046
|
})] }, `${e.type}-${t}`);
|
|
1047
1047
|
}
|
|
1048
|
-
return /* @__PURE__ */ S(
|
|
1048
|
+
return /* @__PURE__ */ S(qa, {
|
|
1049
1049
|
section: e,
|
|
1050
1050
|
closeOnOptionClick: e.closeOnOptionClick,
|
|
1051
1051
|
close: r
|
|
1052
1052
|
}, `${e.type}-${t}`);
|
|
1053
|
-
},
|
|
1053
|
+
}, Za = ({ sections: e, isNested: t = !1, width: n, closeOnOptionClick: r, close: i, maxHeight: a, showAllButton: o, testId: c }) => {
|
|
1054
1054
|
var l, u;
|
|
1055
1055
|
let [d, f] = v(!(o != null && o.visible));
|
|
1056
1056
|
if (s(e)) return /* @__PURE__ */ S(x, { children: e });
|
|
@@ -1059,7 +1059,7 @@ var Ea = {
|
|
|
1059
1059
|
closeOnOptionClick: r,
|
|
1060
1060
|
visible: !0
|
|
1061
1061
|
}))) == null ? [] : l, h = p.length > 4 ? [{
|
|
1062
|
-
type:
|
|
1062
|
+
type: Ga.OPTION,
|
|
1063
1063
|
label: d ? (o == null ? void 0 : o.showLessTitle) || "Show less" : (o == null ? void 0 : o.showAllTitle) || "Show all",
|
|
1064
1064
|
onClick: () => f(!d),
|
|
1065
1065
|
visible: !0,
|
|
@@ -1073,7 +1073,7 @@ var Ea = {
|
|
|
1073
1073
|
closeOnOptionClick: r
|
|
1074
1074
|
}));
|
|
1075
1075
|
return /* @__PURE__ */ S(En, {
|
|
1076
|
-
className: b(
|
|
1076
|
+
className: b(J.layer, t && J.nested),
|
|
1077
1077
|
style: {
|
|
1078
1078
|
maxWidth: n,
|
|
1079
1079
|
maxHeight: a
|
|
@@ -1081,29 +1081,29 @@ var Ea = {
|
|
|
1081
1081
|
shouldCloseOnSelect: r,
|
|
1082
1082
|
autoFocus: t ? void 0 : "first",
|
|
1083
1083
|
"data-testid": c,
|
|
1084
|
-
children: g.map((e, t) =>
|
|
1084
|
+
children: g.map((e, t) => Xa(e, t, {
|
|
1085
1085
|
closeOnOptionClick: e.closeOnOptionClick,
|
|
1086
1086
|
close: i,
|
|
1087
1087
|
maxHeight: a,
|
|
1088
1088
|
width: n
|
|
1089
1089
|
}))
|
|
1090
1090
|
});
|
|
1091
|
-
},
|
|
1091
|
+
}, Qa = (e, t = !1) => ({ placement: e || (t ? "right-start" : "bottom-start") }), Y = (e) => _n(e) || mn(e) || s(e), $a = (e) => Array.isArray(e) ? "array" : typeof e, eo = {
|
|
1092
1092
|
wrapper: "_wrapper_14vly_1",
|
|
1093
1093
|
badge: "_badge_14vly_5",
|
|
1094
1094
|
label: "_label_14vly_11",
|
|
1095
1095
|
small: "_small_14vly_23",
|
|
1096
1096
|
dot: "_dot_14vly_27",
|
|
1097
1097
|
hasChildren: "_hasChildren_14vly_33"
|
|
1098
|
-
},
|
|
1098
|
+
}, to = (e) => {
|
|
1099
1099
|
let t = e.substring(1), n = parseInt(t, 16), r = n >> 16 & 255, i = n >> 8 & 255, a = n >> 0 & 255;
|
|
1100
1100
|
return .2126 * r + .7152 * i + .0722 * a < 128;
|
|
1101
|
-
},
|
|
1102
|
-
let s = r !== null || i !== !1, c = n || (
|
|
1101
|
+
}, no = ({ children: e, color: t = "", textColor: n = "", title: r = null, dot: i = !1, margin: a = null, small: o = !1 }) => {
|
|
1102
|
+
let s = r !== null || i !== !1, c = n || (to(t) ? "#fff" : "rgba(0, 0, 0, 0.6)");
|
|
1103
1103
|
return /* @__PURE__ */ C("div", {
|
|
1104
|
-
className:
|
|
1104
|
+
className: eo.wrapper,
|
|
1105
1105
|
children: [s && /* @__PURE__ */ S("sup", {
|
|
1106
|
-
className: b(
|
|
1106
|
+
className: b(eo.badge, r === null ? eo.dot : eo.label, o ? eo.small : "", e ? eo.hasChildren : ""),
|
|
1107
1107
|
style: {
|
|
1108
1108
|
background: t || void 0,
|
|
1109
1109
|
margin: a || void 0,
|
|
@@ -1112,12 +1112,12 @@ var Ea = {
|
|
|
1112
1112
|
children: r
|
|
1113
1113
|
}), e]
|
|
1114
1114
|
});
|
|
1115
|
-
},
|
|
1115
|
+
}, ro = e.forwardRef(({ trigger: e, label: t, colored: n, small: r, width: i, disabled: a, groupOrder: o, loading: s, error: c, warning: l, active: d, tabIndex: f, testId: p, ...m }, h) => {
|
|
1116
1116
|
let g = u(W), _ = e === Di.DROP_DOWN_BUTTON;
|
|
1117
|
-
return /* @__PURE__ */ S(
|
|
1117
|
+
return /* @__PURE__ */ S(q, {
|
|
1118
1118
|
ref: h,
|
|
1119
1119
|
label: /* @__PURE__ */ S("span", {
|
|
1120
|
-
className:
|
|
1120
|
+
className: J.buttonLabel,
|
|
1121
1121
|
children: t
|
|
1122
1122
|
}),
|
|
1123
1123
|
colored: n,
|
|
@@ -1134,7 +1134,7 @@ var Ea = {
|
|
|
1134
1134
|
testId: p,
|
|
1135
1135
|
...m
|
|
1136
1136
|
});
|
|
1137
|
-
}),
|
|
1137
|
+
}), io = (...e) => (t) => {
|
|
1138
1138
|
e.forEach((e) => {
|
|
1139
1139
|
if (e) {
|
|
1140
1140
|
if (typeof e == "function") {
|
|
@@ -1144,13 +1144,13 @@ var Ea = {
|
|
|
1144
1144
|
e.current = t;
|
|
1145
1145
|
}
|
|
1146
1146
|
});
|
|
1147
|
-
},
|
|
1148
|
-
if (s(e) &&
|
|
1147
|
+
}, ao = o(({ component: e, disabled: t, active: n, testId: i, ...a }, o) => {
|
|
1148
|
+
if (s(e) && Pa(e)) {
|
|
1149
1149
|
var c;
|
|
1150
1150
|
let s = e, l = (c = s.props["data-testid"]) == null ? s.props.testId : c, u = typeof s.type == "string", d = s.ref;
|
|
1151
1151
|
return r(s, {
|
|
1152
1152
|
...a,
|
|
1153
|
-
ref:
|
|
1153
|
+
ref: io(o, d),
|
|
1154
1154
|
disabled: t || s.props.disabled,
|
|
1155
1155
|
...u ? null : { active: !!(s.props.active || n) },
|
|
1156
1156
|
...l ? null : u ? { "data-testid": i } : { testId: i }
|
|
@@ -1158,25 +1158,25 @@ var Ea = {
|
|
|
1158
1158
|
}
|
|
1159
1159
|
return /* @__PURE__ */ S("div", {
|
|
1160
1160
|
ref: o,
|
|
1161
|
-
className: b(
|
|
1161
|
+
className: b(J.component, t ? J.disabled : null),
|
|
1162
1162
|
"data-testid": i,
|
|
1163
1163
|
...a,
|
|
1164
1164
|
children: e
|
|
1165
1165
|
});
|
|
1166
|
-
}),
|
|
1166
|
+
}), oo = ({ tooltip: e, error: t, warning: n, children: r }) => !Y(e) && !Y(t) && !Y(n) ? /* @__PURE__ */ S(x, { children: r }) : /* @__PURE__ */ S(K, {
|
|
1167
1167
|
error: !!t,
|
|
1168
1168
|
warning: !!n,
|
|
1169
1169
|
text: e || t || n,
|
|
1170
1170
|
display: "inline-flex",
|
|
1171
1171
|
children: r
|
|
1172
|
-
}),
|
|
1172
|
+
}), so = (e, { isNested: t, badgeTitle: n, badgeDot: r }) => !t && (n || r) ? /* @__PURE__ */ S(no, {
|
|
1173
1173
|
title: n,
|
|
1174
1174
|
dot: r,
|
|
1175
1175
|
small: !r,
|
|
1176
1176
|
children: e
|
|
1177
|
-
}) : e,
|
|
1177
|
+
}) : e, co = 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) => {
|
|
1178
1178
|
let b = i === Di.BUTTON || i === Di.DROP_DOWN_BUTTON, x = i === Di.COMPONENT;
|
|
1179
|
-
return b ? /* @__PURE__ */ S(
|
|
1179
|
+
return b ? /* @__PURE__ */ S(ro, {
|
|
1180
1180
|
ref: y,
|
|
1181
1181
|
trigger: i,
|
|
1182
1182
|
label: a == null ? "" : a,
|
|
@@ -1192,17 +1192,17 @@ var Ea = {
|
|
|
1192
1192
|
tabIndex: _,
|
|
1193
1193
|
testId: h,
|
|
1194
1194
|
...v
|
|
1195
|
-
}) : i === Di.TEXT ? /* @__PURE__ */ S(
|
|
1195
|
+
}) : i === Di.TEXT ? /* @__PURE__ */ S(Ja, {
|
|
1196
1196
|
ref: y,
|
|
1197
1197
|
label: a == null ? "" : a,
|
|
1198
1198
|
title: o,
|
|
1199
1199
|
disabled: t,
|
|
1200
|
-
carat: l ?
|
|
1200
|
+
carat: l ? Ka.RIGHT : Ka.DOWN,
|
|
1201
1201
|
isOpen: f,
|
|
1202
1202
|
selected: g,
|
|
1203
1203
|
tabIndex: _,
|
|
1204
1204
|
...v
|
|
1205
|
-
}) : x ? /* @__PURE__ */ S(
|
|
1205
|
+
}) : x ? /* @__PURE__ */ S(ao, {
|
|
1206
1206
|
ref: y,
|
|
1207
1207
|
component: u,
|
|
1208
1208
|
disabled: t,
|
|
@@ -1211,8 +1211,8 @@ var Ea = {
|
|
|
1211
1211
|
tabIndex: _,
|
|
1212
1212
|
...v
|
|
1213
1213
|
}) : null;
|
|
1214
|
-
}),
|
|
1215
|
-
let T = u(W), E = _(null), [D, O] = v(!1), { label: k, title: A, trigger: j, colored: M, small: N, sections: P, component: F, placement: I, showAllButton: L } = e, R = cn(f) && fn(p), z = R ? f : D, B = n ||
|
|
1214
|
+
}), lo = ({ menu: e, width: t, disabled: n = !1, badgeTitle: r, badgeDot: i = !1, loading: a = !1, closeOnOptionClick: o = !0, maxHeight: s, testId: c, open: f, setOpen: p, tooltip: m, error: h, warning: g, tabIndex: y, active: b, groupOrder: x, offset: w = 0 }) => {
|
|
1215
|
+
let T = u(W), E = _(null), [D, O] = v(!1), { label: k, title: A, trigger: j, colored: M, small: N, sections: P, component: F, placement: I, showAllButton: L } = e, R = cn(f) && fn(p), z = R ? f : D, B = n || Ba(e) || T, ee = l((e) => {
|
|
1216
1216
|
B && e || (R ? p(e) : O(e));
|
|
1217
1217
|
}, [
|
|
1218
1218
|
R,
|
|
@@ -1228,14 +1228,14 @@ var Ea = {
|
|
|
1228
1228
|
z,
|
|
1229
1229
|
te
|
|
1230
1230
|
]);
|
|
1231
|
-
let ne =
|
|
1232
|
-
behavior:
|
|
1231
|
+
let ne = Qa(I).placement, V = c ? `${c}-layer` : void 0, re = /* @__PURE__ */ S(Ra, {
|
|
1232
|
+
behavior: La.PRESS,
|
|
1233
1233
|
testId: c,
|
|
1234
1234
|
isDisabled: B,
|
|
1235
1235
|
triggerRef: E,
|
|
1236
|
-
safeComponents: [
|
|
1236
|
+
safeComponents: [q],
|
|
1237
1237
|
attachToForwardRef: !0,
|
|
1238
|
-
children: /* @__PURE__ */ S(
|
|
1238
|
+
children: /* @__PURE__ */ S(co, {
|
|
1239
1239
|
active: b,
|
|
1240
1240
|
disabled: B,
|
|
1241
1241
|
loading: a,
|
|
@@ -1259,21 +1259,21 @@ var Ea = {
|
|
|
1259
1259
|
return /* @__PURE__ */ C(On, {
|
|
1260
1260
|
isOpen: z,
|
|
1261
1261
|
onOpenChange: ee,
|
|
1262
|
-
children: [/* @__PURE__ */ S(
|
|
1262
|
+
children: [/* @__PURE__ */ S(oo, {
|
|
1263
1263
|
tooltip: m,
|
|
1264
1264
|
error: h,
|
|
1265
1265
|
warning: g,
|
|
1266
|
-
children:
|
|
1266
|
+
children: so(re, {
|
|
1267
1267
|
badgeTitle: r,
|
|
1268
1268
|
badgeDot: i
|
|
1269
1269
|
})
|
|
1270
|
-
}), /* @__PURE__ */ S(
|
|
1271
|
-
className:
|
|
1270
|
+
}), /* @__PURE__ */ S(za, {
|
|
1271
|
+
className: J.menuPopover,
|
|
1272
1272
|
placement: ne,
|
|
1273
1273
|
portalTriggerRef: E,
|
|
1274
1274
|
offset: w,
|
|
1275
1275
|
"data-testid": e.testId,
|
|
1276
|
-
children: /* @__PURE__ */ S(
|
|
1276
|
+
children: /* @__PURE__ */ S(Za, {
|
|
1277
1277
|
sections: P,
|
|
1278
1278
|
width: t,
|
|
1279
1279
|
closeOnOptionClick: o,
|
|
@@ -1284,8 +1284,8 @@ var Ea = {
|
|
|
1284
1284
|
})
|
|
1285
1285
|
})]
|
|
1286
1286
|
});
|
|
1287
|
-
},
|
|
1288
|
-
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ S(
|
|
1287
|
+
}, uo = (e) => {
|
|
1288
|
+
let { subActions: t, subMenuIcon: n, primary: r, testId: i, tooltip: a } = e, o = /* @__PURE__ */ S(q, {
|
|
1289
1289
|
colored: r ? !0 : Oi.MUTED,
|
|
1290
1290
|
basic: !r,
|
|
1291
1291
|
round: !0,
|
|
@@ -1313,25 +1313,25 @@ var Ea = {
|
|
|
1313
1313
|
};
|
|
1314
1314
|
})
|
|
1315
1315
|
};
|
|
1316
|
-
return /* @__PURE__ */ S(
|
|
1316
|
+
return /* @__PURE__ */ S(lo, { menu: e });
|
|
1317
1317
|
}
|
|
1318
1318
|
return null;
|
|
1319
|
-
},
|
|
1319
|
+
}, fo = (t) => {
|
|
1320
1320
|
let n = u(W), { actions: r = [], closeLayer: i } = t;
|
|
1321
1321
|
return /* @__PURE__ */ S("div", {
|
|
1322
|
-
className: b(
|
|
1322
|
+
className: b(Ta.actions),
|
|
1323
1323
|
children: r.map((t, r) => {
|
|
1324
1324
|
if (!(t != null && t.hidden || !t || !Object.keys(t).length)) return t.childComponent && e.isValidElement(t.childComponent) ? /* @__PURE__ */ S("div", {
|
|
1325
1325
|
"data-testid": t.testId,
|
|
1326
|
-
className:
|
|
1326
|
+
className: Ta.childComponent,
|
|
1327
1327
|
children: t.childComponent
|
|
1328
|
-
}, r) : t.subActions ? /* @__PURE__ */ S(
|
|
1328
|
+
}, r) : t.subActions ? /* @__PURE__ */ S(uo, {
|
|
1329
1329
|
subActions: t.subActions,
|
|
1330
1330
|
primary: t.primary,
|
|
1331
1331
|
subMenuIcon: t.icon,
|
|
1332
1332
|
testId: t.testId,
|
|
1333
1333
|
tooltip: t.tooltip
|
|
1334
|
-
}, r) : /* @__PURE__ */ S(
|
|
1334
|
+
}, r) : /* @__PURE__ */ S(q, {
|
|
1335
1335
|
colored: t.primary ? !0 : "muted",
|
|
1336
1336
|
round: !0,
|
|
1337
1337
|
basic: !t.primary,
|
|
@@ -1347,7 +1347,7 @@ var Ea = {
|
|
|
1347
1347
|
}, r);
|
|
1348
1348
|
})
|
|
1349
1349
|
});
|
|
1350
|
-
},
|
|
1350
|
+
}, po = {
|
|
1351
1351
|
breadcrumb: "_breadcrumb_9y5ky_1",
|
|
1352
1352
|
small: "_small_9y5ky_10",
|
|
1353
1353
|
item: "_item_9y5ky_13",
|
|
@@ -1356,33 +1356,33 @@ var Ea = {
|
|
|
1356
1356
|
disabled: "_disabled_9y5ky_34",
|
|
1357
1357
|
title: "_title_9y5ky_39",
|
|
1358
1358
|
separator: "_separator_9y5ky_46"
|
|
1359
|
-
},
|
|
1359
|
+
}, mo = /* @__PURE__ */ function(e) {
|
|
1360
1360
|
return e.LABEL = "label", e.LINK = "link", e.CUSTOM = "custom", e;
|
|
1361
|
-
}({}),
|
|
1362
|
-
let l = u(W), d = e ===
|
|
1361
|
+
}({}), ho = ({ type: e = mo.LABEL, label: t, url: n, onClick: r, active: i, disabled: a, element: o, title: c }) => {
|
|
1362
|
+
let l = u(W), d = e === mo.LINK && n !== void 0, f = e === mo.CUSTOM && s(o), p = !!(a || l), m = d || !!r || f;
|
|
1363
1363
|
return /* @__PURE__ */ C(Jn, {
|
|
1364
1364
|
...d ? { href: n } : {},
|
|
1365
1365
|
isDisabled: p || !!i || !m,
|
|
1366
1366
|
onPress: r,
|
|
1367
|
-
className: b(
|
|
1367
|
+
className: b(po.labelContainer, i && po.active, p && po.disabled),
|
|
1368
1368
|
children: [c ? /* @__PURE__ */ S("span", {
|
|
1369
|
-
className:
|
|
1369
|
+
className: po.title,
|
|
1370
1370
|
"aria-hidden": "true",
|
|
1371
1371
|
children: c
|
|
1372
1372
|
}) : null, f ? o : t]
|
|
1373
1373
|
});
|
|
1374
|
-
},
|
|
1374
|
+
}, go = ({ links: e, small: t = !1 }) => {
|
|
1375
1375
|
let n = u(W);
|
|
1376
1376
|
return /* @__PURE__ */ S(qn, {
|
|
1377
|
-
className: b(
|
|
1377
|
+
className: b(po.breadcrumb, t && po.small),
|
|
1378
1378
|
isDisabled: n,
|
|
1379
1379
|
"aria-label": "Breadcrumbs",
|
|
1380
1380
|
children: e.map((e, t) => {
|
|
1381
1381
|
let { type: n, label: r, url: i, onClick: a, active: o, disabled: s, element: c, title: l } = e;
|
|
1382
1382
|
return /* @__PURE__ */ S(Kn, {
|
|
1383
1383
|
id: t,
|
|
1384
|
-
className:
|
|
1385
|
-
children: ({ isCurrent: e }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
1384
|
+
className: po.item,
|
|
1385
|
+
children: ({ isCurrent: e }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(ho, {
|
|
1386
1386
|
type: n,
|
|
1387
1387
|
label: r,
|
|
1388
1388
|
url: i,
|
|
@@ -1392,17 +1392,17 @@ var Ea = {
|
|
|
1392
1392
|
element: c,
|
|
1393
1393
|
title: l
|
|
1394
1394
|
}), !e && /* @__PURE__ */ S("span", {
|
|
1395
|
-
className:
|
|
1395
|
+
className: po.separator,
|
|
1396
1396
|
"aria-hidden": "true",
|
|
1397
1397
|
children: "/"
|
|
1398
1398
|
})] })
|
|
1399
1399
|
}, t);
|
|
1400
1400
|
})
|
|
1401
1401
|
});
|
|
1402
|
-
},
|
|
1402
|
+
}, _o = {
|
|
1403
1403
|
label: "_label_iu2wi_1",
|
|
1404
1404
|
buttonGroup: "_buttonGroup_iu2wi_11"
|
|
1405
|
-
},
|
|
1405
|
+
}, vo = (e) => {
|
|
1406
1406
|
let { basic: t = !1, items: n = [], header: r = "", onSelected: i = () => {}, small: a = !1, value: o = "", testId: s = void 0, disabled: c } = e, l = u(W), d = (e, t, n, r, a) => {
|
|
1407
1407
|
e.preventDefault(), e.stopPropagation(), !(c || a || l) && i(t, n, r);
|
|
1408
1408
|
}, f = (e, t) => t === "string" ? e : t === "object" ? e.label : t === "array" ? e[1] : null, p = (e, t) => {
|
|
@@ -1411,22 +1411,22 @@ var Ea = {
|
|
|
1411
1411
|
}, 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;
|
|
1412
1412
|
return /* @__PURE__ */ C(x, { children: [(() => {
|
|
1413
1413
|
if (r) return /* @__PURE__ */ S("label", {
|
|
1414
|
-
className:
|
|
1414
|
+
className: _o.label,
|
|
1415
1415
|
children: r
|
|
1416
1416
|
});
|
|
1417
1417
|
})(), /* @__PURE__ */ S("div", {
|
|
1418
|
-
className:
|
|
1418
|
+
className: _o.buttonGroup,
|
|
1419
1419
|
"data-testid": s,
|
|
1420
1420
|
children: n.map((e, r) => {
|
|
1421
|
-
let i =
|
|
1422
|
-
return v ? null : /* @__PURE__ */ S(
|
|
1421
|
+
let i = $a(e), o = r === 0 ? H.FIRST : r === n.length - 1 ? H.LAST : H.MIDDLE, s = f(e, i), l = p(e, i), u = m(e, i, l), v = h(e, i), y = g(e, i), b = _(i, u, l), { error: x, maxTooltipWidth: C, testId: w, tooltip: T, warning: E } = e;
|
|
1422
|
+
return v ? null : /* @__PURE__ */ S(K, {
|
|
1423
1423
|
error: !!x,
|
|
1424
1424
|
warning: !!E,
|
|
1425
1425
|
text: T || x || E,
|
|
1426
1426
|
maxWidth: C,
|
|
1427
1427
|
display: "inline-flex",
|
|
1428
|
-
enabled: T &&
|
|
1429
|
-
children: /* @__PURE__ */ S(
|
|
1428
|
+
enabled: T && Y(T) || x && Y(x) || E && Y(E) || !1,
|
|
1429
|
+
children: /* @__PURE__ */ S(q, {
|
|
1430
1430
|
active: b,
|
|
1431
1431
|
basic: t,
|
|
1432
1432
|
disabled: c || e.disabled,
|
|
@@ -1442,7 +1442,7 @@ var Ea = {
|
|
|
1442
1442
|
}, r);
|
|
1443
1443
|
})
|
|
1444
1444
|
})] });
|
|
1445
|
-
},
|
|
1445
|
+
}, yo = {
|
|
1446
1446
|
card: "_card_ucdeu_1",
|
|
1447
1447
|
bordered: "_bordered_ucdeu_4",
|
|
1448
1448
|
raised: "_raised_ucdeu_10",
|
|
@@ -1450,22 +1450,22 @@ var Ea = {
|
|
|
1450
1450
|
cardContentBorderTop: "_cardContentBorderTop_ucdeu_19",
|
|
1451
1451
|
padding: "_padding_ucdeu_22",
|
|
1452
1452
|
cardContent: "_cardContent_ucdeu_19"
|
|
1453
|
-
},
|
|
1454
|
-
className: b(
|
|
1453
|
+
}, bo = ({ bordered: e = !0, heading: t = null, children: n, margin: r = "0", padding: i = !0, raised: a = !1 }) => /* @__PURE__ */ C("div", {
|
|
1454
|
+
className: b(yo.card, e ? yo.bordered : "", a ? yo.raised : ""),
|
|
1455
1455
|
style: { margin: r },
|
|
1456
1456
|
children: [t ? /* @__PURE__ */ S("div", {
|
|
1457
|
-
className: b(
|
|
1457
|
+
className: b(yo.cardHeader),
|
|
1458
1458
|
children: t
|
|
1459
1459
|
}) : null, /* @__PURE__ */ S("div", {
|
|
1460
|
-
className: b(
|
|
1460
|
+
className: b(yo.cardContent, t ? yo.cardContentBorderTop : "", i ? yo.padding : ""),
|
|
1461
1461
|
children: n
|
|
1462
1462
|
})]
|
|
1463
|
-
}),
|
|
1463
|
+
}), xo = {
|
|
1464
1464
|
toggleBox: "_toggleBox_oy22o_1",
|
|
1465
1465
|
arrowIcon: "_arrowIcon_oy22o_32",
|
|
1466
1466
|
fullWidthStyleFix: "_fullWidthStyleFix_oy22o_48",
|
|
1467
1467
|
dismiss: "_dismiss_oy22o_53"
|
|
1468
|
-
},
|
|
1468
|
+
}, So = ({ children: e, content: t, placement: i = "top-center", closeOnOutsideClick: a = !0, fullWidth: o = !1, showCloseButton: c = !1, showArrow: f = !0, testId: p, disabled: m = !1, isOpen: h, onToggle: g, toggleOnTriggerClick: y = !0, isNonModal: w = !1, restoreTriggerFocusOnClose: T = !0 }) => {
|
|
1469
1469
|
let E = u(W), D = _(null), [O, k] = v(!1), A = m || E, j = h !== void 0, M = j ? h : O, N = l((e) => {
|
|
1470
1470
|
A || (j ? g == null || g(e) : k(e));
|
|
1471
1471
|
}, [
|
|
@@ -1483,16 +1483,16 @@ var Ea = {
|
|
|
1483
1483
|
A,
|
|
1484
1484
|
M,
|
|
1485
1485
|
F
|
|
1486
|
-
]), !
|
|
1487
|
-
let I = s(t) && typeof t.type != "string" && t.type !== n ? r(t, { close: F }) : t, L = /* @__PURE__ */ S(
|
|
1488
|
-
behavior:
|
|
1486
|
+
]), !Ia(e)) return null;
|
|
1487
|
+
let I = s(t) && typeof t.type != "string" && t.type !== n ? r(t, { close: F }) : t, L = /* @__PURE__ */ S(Ra, {
|
|
1488
|
+
behavior: La.PRESS,
|
|
1489
1489
|
testId: p,
|
|
1490
1490
|
isDisabled: A,
|
|
1491
1491
|
triggerRef: D,
|
|
1492
|
-
safeComponents: [
|
|
1492
|
+
safeComponents: [q],
|
|
1493
1493
|
children: e
|
|
1494
|
-
}), R = /* @__PURE__ */ C(
|
|
1495
|
-
className: b(
|
|
1494
|
+
}), R = /* @__PURE__ */ C(za, {
|
|
1495
|
+
className: b(xo.toggleBox, o && xo.fullWidthStyleFix),
|
|
1496
1496
|
placement: i,
|
|
1497
1497
|
portalTriggerRef: D,
|
|
1498
1498
|
offset: f ? 6 : 0,
|
|
@@ -1505,8 +1505,8 @@ var Ea = {
|
|
|
1505
1505
|
isKeyboardDismissDisabled: !a,
|
|
1506
1506
|
"data-testid": p ? `${p}-layer` : void 0,
|
|
1507
1507
|
children: [/* @__PURE__ */ C("div", { children: [I, c && /* @__PURE__ */ S("div", {
|
|
1508
|
-
className:
|
|
1509
|
-
children: /* @__PURE__ */ S(
|
|
1508
|
+
className: xo.dismiss,
|
|
1509
|
+
children: /* @__PURE__ */ S(q, {
|
|
1510
1510
|
small: !0,
|
|
1511
1511
|
round: !0,
|
|
1512
1512
|
onClick: F,
|
|
@@ -1517,7 +1517,7 @@ var Ea = {
|
|
|
1517
1517
|
height: "12",
|
|
1518
1518
|
viewBox: "0 0 12 12",
|
|
1519
1519
|
"aria-hidden": "true",
|
|
1520
|
-
className:
|
|
1520
|
+
className: xo.arrowIcon,
|
|
1521
1521
|
children: /* @__PURE__ */ S("path", { d: "M0 0 L6 6 L12 0" })
|
|
1522
1522
|
}) })]
|
|
1523
1523
|
});
|
|
@@ -1526,21 +1526,21 @@ var Ea = {
|
|
|
1526
1526
|
onOpenChange: P,
|
|
1527
1527
|
children: [L, R]
|
|
1528
1528
|
}) : /* @__PURE__ */ C(x, { children: [L, R] });
|
|
1529
|
-
},
|
|
1529
|
+
}, Co = { grid: "_grid_obkz4_1" }, wo = (e) => typeof e == "boolean" ? e ? "var(--padding)" : "0px" : typeof e == "number" ? `${e}px` : e || "initial", To = (e) => typeof e == "number" ? `${e}px` : e || "initial", Eo = ({ rows: e = "initial", columns: t = "initial", columnsTablet: n = null, columnsMobile: r = null, gap: i = !1, height: a = "initial", children: o }) => {
|
|
1530
1530
|
let s = {
|
|
1531
|
-
"--grid-gap":
|
|
1532
|
-
"--grid-rows":
|
|
1533
|
-
"--grid-columns":
|
|
1534
|
-
"--grid-height":
|
|
1535
|
-
...n != null && { "--grid-columns-tablet":
|
|
1536
|
-
...r != null && { "--grid-columns-mobile":
|
|
1531
|
+
"--grid-gap": wo(i),
|
|
1532
|
+
"--grid-rows": To(e),
|
|
1533
|
+
"--grid-columns": To(t),
|
|
1534
|
+
"--grid-height": To(a),
|
|
1535
|
+
...n != null && { "--grid-columns-tablet": To(n) },
|
|
1536
|
+
...r != null && { "--grid-columns-mobile": To(r) }
|
|
1537
1537
|
};
|
|
1538
1538
|
return /* @__PURE__ */ S("div", {
|
|
1539
|
-
className:
|
|
1539
|
+
className: Co.grid,
|
|
1540
1540
|
style: s,
|
|
1541
1541
|
children: o
|
|
1542
1542
|
});
|
|
1543
|
-
},
|
|
1543
|
+
}, Do = {
|
|
1544
1544
|
colorInput: "_colorInput_1ieww_1",
|
|
1545
1545
|
swatch: "_swatch_1ieww_5",
|
|
1546
1546
|
transparent: "_transparent_1ieww_12",
|
|
@@ -1553,79 +1553,79 @@ var Ea = {
|
|
|
1553
1553
|
colorThumb: "_colorThumb_1ieww_42",
|
|
1554
1554
|
hueSliderTrack: "_hueSliderTrack_1ieww_51",
|
|
1555
1555
|
hueSlider: "_hueSlider_1ieww_51"
|
|
1556
|
-
},
|
|
1557
|
-
className:
|
|
1556
|
+
}, Oo = ({ disabled: e }) => /* @__PURE__ */ C("div", {
|
|
1557
|
+
className: Do.areaPicker,
|
|
1558
1558
|
children: [/* @__PURE__ */ S(jn, {
|
|
1559
|
-
className:
|
|
1559
|
+
className: Do.colorArea,
|
|
1560
1560
|
colorSpace: "hsb",
|
|
1561
1561
|
xChannel: "saturation",
|
|
1562
1562
|
yChannel: "brightness",
|
|
1563
1563
|
isDisabled: e,
|
|
1564
|
-
children: /* @__PURE__ */ S(Ln, { className:
|
|
1564
|
+
children: /* @__PURE__ */ S(Ln, { className: Do.colorThumb })
|
|
1565
1565
|
}), /* @__PURE__ */ S(Nn, {
|
|
1566
|
-
className:
|
|
1566
|
+
className: Do.hueSlider,
|
|
1567
1567
|
colorSpace: "hsb",
|
|
1568
1568
|
channel: "hue",
|
|
1569
1569
|
isDisabled: e,
|
|
1570
1570
|
children: /* @__PURE__ */ S(Wn, {
|
|
1571
|
-
className:
|
|
1572
|
-
children: /* @__PURE__ */ S(Ln, { className:
|
|
1571
|
+
className: Do.hueSliderTrack,
|
|
1572
|
+
children: /* @__PURE__ */ S(Ln, { className: Do.colorThumb })
|
|
1573
1573
|
})
|
|
1574
1574
|
})]
|
|
1575
1575
|
});
|
|
1576
1576
|
//#endregion
|
|
1577
1577
|
//#region src/components/color-input/color-input-utils.ts
|
|
1578
1578
|
Xn([Zn]);
|
|
1579
|
-
var
|
|
1579
|
+
var ko = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ao = (e) => {
|
|
1580
1580
|
try {
|
|
1581
1581
|
return Qn(e);
|
|
1582
1582
|
} catch {
|
|
1583
1583
|
return;
|
|
1584
1584
|
}
|
|
1585
|
-
},
|
|
1585
|
+
}, jo = (e) => {
|
|
1586
1586
|
let t = Yn(e);
|
|
1587
1587
|
if (t.isValid()) return Qn(t.toHex());
|
|
1588
|
-
let n =
|
|
1588
|
+
let n = ko(e);
|
|
1589
1589
|
if (n === e) return;
|
|
1590
1590
|
let r = Yn(n);
|
|
1591
1591
|
return r.isValid() ? Qn(r.toHex()) : void 0;
|
|
1592
|
-
},
|
|
1592
|
+
}, Mo = (e) => {
|
|
1593
1593
|
var t;
|
|
1594
|
-
if (e) return (t =
|
|
1595
|
-
},
|
|
1594
|
+
if (e) return (t = Ao(e)) == null ? jo(e) : t;
|
|
1595
|
+
}, No = (e) => {
|
|
1596
1596
|
var t;
|
|
1597
|
-
return ((t =
|
|
1598
|
-
},
|
|
1597
|
+
return ((t = Mo(e)) == null ? Qn("#808080") : t).toFormat("hsb");
|
|
1598
|
+
}, Po = (e) => e.toString("hex"), Fo = (e) => {
|
|
1599
1599
|
let t = e.toFormat("hsb");
|
|
1600
1600
|
return t.getChannelValue("saturation") === 0 || t.getChannelValue("brightness") === 0;
|
|
1601
|
-
},
|
|
1601
|
+
}, Io = (e, t) => {
|
|
1602
1602
|
if (e.toString("hex") !== t.toString("hex")) return !1;
|
|
1603
1603
|
let n = e.toFormat("hsb"), r = t.toFormat("hsb");
|
|
1604
|
-
return !
|
|
1605
|
-
},
|
|
1606
|
-
if (
|
|
1604
|
+
return !Fo(n) || n.getChannelValue("hue") === r.getChannelValue("hue");
|
|
1605
|
+
}, Lo = (e, t) => {
|
|
1606
|
+
if (Io(e, t)) return t.toFormat("hsb");
|
|
1607
1607
|
let n = e.toFormat("hsb"), r = t.toFormat("hsb");
|
|
1608
|
-
return n.toString("hex") === r.toString("hex") &&
|
|
1609
|
-
},
|
|
1608
|
+
return n.toString("hex") === r.toString("hex") && Fo(n) ? n.withChannelValue("hue", r.getChannelValue("hue")) : n;
|
|
1609
|
+
}, Ro = ({ columns: e, options: t, onSwatchSelect: n, selectedValue: r }) => /* @__PURE__ */ S(Fn, {
|
|
1610
1610
|
layout: "grid",
|
|
1611
|
-
className:
|
|
1611
|
+
className: Do.swatchPicker,
|
|
1612
1612
|
style: e ? {
|
|
1613
1613
|
display: "grid",
|
|
1614
1614
|
gridTemplateColumns: `repeat(${e}, auto)`
|
|
1615
1615
|
} : void 0,
|
|
1616
1616
|
children: t.map((e) => {
|
|
1617
|
-
let t =
|
|
1617
|
+
let t = Mo(e.value);
|
|
1618
1618
|
if (!t) return null;
|
|
1619
|
-
let i = r &&
|
|
1619
|
+
let i = r && Io(t, r);
|
|
1620
1620
|
return /* @__PURE__ */ S(In, {
|
|
1621
1621
|
color: t,
|
|
1622
1622
|
"aria-label": e.label,
|
|
1623
1623
|
onPress: () => n == null ? void 0 : n(t),
|
|
1624
|
-
children: /* @__PURE__ */ S(
|
|
1624
|
+
children: /* @__PURE__ */ S(q, {
|
|
1625
1625
|
round: !0,
|
|
1626
1626
|
basic: !0,
|
|
1627
1627
|
icon: /* @__PURE__ */ S(Pn, {
|
|
1628
|
-
className:
|
|
1628
|
+
className: Do.swatch,
|
|
1629
1629
|
color: t,
|
|
1630
1630
|
colorName: e.label
|
|
1631
1631
|
}),
|
|
@@ -1634,32 +1634,32 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1634
1634
|
})
|
|
1635
1635
|
}, e.value);
|
|
1636
1636
|
})
|
|
1637
|
-
}),
|
|
1638
|
-
let { locale: u } = Gn(), [f, p] = v(!1), [m, g] = v(() =>
|
|
1637
|
+
}), zo = 100, Bo = ({ adjustColorsInDarkMode: e = !1, children: t, columns: n, disabled: r, hideAreaPicker: i = !1, onChange: a, onConfirm: o, options: s = [], testId: c, value: l }) => {
|
|
1638
|
+
let { locale: u } = Gn(), [f, p] = v(!1), [m, g] = v(() => No(l)), _ = Mo(l), y = !Io(No(l), m), x = h(() => rn((e) => a == null ? void 0 : a(e), zo), [a]);
|
|
1639
1639
|
d(() => () => x.cancel(), [x]), d(() => {
|
|
1640
1640
|
if (f) return;
|
|
1641
|
-
let e =
|
|
1642
|
-
g((t) =>
|
|
1641
|
+
let e = No(l);
|
|
1642
|
+
g((t) => Lo(e, t));
|
|
1643
1643
|
}, [l, f]);
|
|
1644
1644
|
let w = (e) => {
|
|
1645
1645
|
let t = e.toFormat("hsb");
|
|
1646
|
-
g(t), !o && x(
|
|
1646
|
+
g(t), !o && x(Po(t));
|
|
1647
1647
|
}, T = () => {
|
|
1648
|
-
x.cancel(),
|
|
1648
|
+
x.cancel(), Io(No(l), m) || a == null || a(Po(m));
|
|
1649
1649
|
}, E = (e) => {
|
|
1650
|
-
e ? g((e) =>
|
|
1650
|
+
e ? g((e) => Lo(No(l), e)) : o || T(), p(e);
|
|
1651
1651
|
}, D = (e) => {
|
|
1652
1652
|
let t = e.toFormat("hsb");
|
|
1653
|
-
x.cancel(), g(t), !o && (a == null || a(
|
|
1653
|
+
x.cancel(), g(t), !o && (a == null || a(Po(t)), p(!1));
|
|
1654
1654
|
}, O = (e) => {
|
|
1655
|
-
e.stopPropagation(), x.cancel(), o == null || o(
|
|
1655
|
+
e.stopPropagation(), x.cancel(), o == null || o(Po(m)), E(!1);
|
|
1656
1656
|
}, k = (e) => {
|
|
1657
1657
|
e.stopPropagation(), E(!1);
|
|
1658
1658
|
}, A = h(() => {
|
|
1659
1659
|
var e;
|
|
1660
1660
|
let t = (e = s.find((e) => {
|
|
1661
|
-
let t =
|
|
1662
|
-
return t &&
|
|
1661
|
+
let t = Mo(e.value);
|
|
1662
|
+
return t && Io(t, m);
|
|
1663
1663
|
})) == null ? void 0 : e.label;
|
|
1664
1664
|
if (t) return t;
|
|
1665
1665
|
let n = m.getColorName(u).split(" ").pop();
|
|
@@ -1668,43 +1668,43 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1668
1668
|
s,
|
|
1669
1669
|
m,
|
|
1670
1670
|
u
|
|
1671
|
-
]), j = e ?
|
|
1671
|
+
]), j = e ? Do.adjustColorsInDarkMode : void 0, M = typeof t == "function" ? t({
|
|
1672
1672
|
isOpen: f,
|
|
1673
1673
|
colorName: A,
|
|
1674
1674
|
valueColor: _
|
|
1675
1675
|
}) : t;
|
|
1676
1676
|
return /* @__PURE__ */ S("div", {
|
|
1677
|
-
className: b(
|
|
1677
|
+
className: b(Do.colorInput, j),
|
|
1678
1678
|
children: /* @__PURE__ */ S(Mn, {
|
|
1679
1679
|
value: m,
|
|
1680
1680
|
onChange: w,
|
|
1681
|
-
children: /* @__PURE__ */ S(
|
|
1681
|
+
children: /* @__PURE__ */ S(So, {
|
|
1682
1682
|
placement: "bottom-start",
|
|
1683
1683
|
isOpen: f,
|
|
1684
1684
|
onToggle: E,
|
|
1685
1685
|
disabled: r,
|
|
1686
1686
|
testId: c,
|
|
1687
1687
|
content: /* @__PURE__ */ C("div", {
|
|
1688
|
-
className: b(
|
|
1688
|
+
className: b(Do.popoverContent, j),
|
|
1689
1689
|
children: [
|
|
1690
|
-
!i && /* @__PURE__ */ S(
|
|
1691
|
-
s.length > 0 && /* @__PURE__ */ S(
|
|
1690
|
+
!i && /* @__PURE__ */ S(Oo, { disabled: r }),
|
|
1691
|
+
s.length > 0 && /* @__PURE__ */ S(Ro, {
|
|
1692
1692
|
columns: n,
|
|
1693
1693
|
options: s,
|
|
1694
1694
|
onSwatchSelect: D,
|
|
1695
1695
|
selectedValue: m
|
|
1696
1696
|
}),
|
|
1697
|
-
o && /* @__PURE__ */ C(
|
|
1697
|
+
o && /* @__PURE__ */ C(Eo, {
|
|
1698
1698
|
columns: "1fr 1fr",
|
|
1699
1699
|
gap: "var(--padding-sm)",
|
|
1700
|
-
children: [/* @__PURE__ */ S(
|
|
1700
|
+
children: [/* @__PURE__ */ S(q, {
|
|
1701
1701
|
small: !0,
|
|
1702
1702
|
icon: "check",
|
|
1703
1703
|
disabled: !y,
|
|
1704
1704
|
onClick: O,
|
|
1705
1705
|
testId: c ? `${c}-confirm` : void 0,
|
|
1706
1706
|
width: "100%"
|
|
1707
|
-
}), /* @__PURE__ */ S(
|
|
1707
|
+
}), /* @__PURE__ */ S(q, {
|
|
1708
1708
|
small: !0,
|
|
1709
1709
|
icon: "times",
|
|
1710
1710
|
onClick: k,
|
|
@@ -1718,7 +1718,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1718
1718
|
})
|
|
1719
1719
|
})
|
|
1720
1720
|
});
|
|
1721
|
-
},
|
|
1721
|
+
}, Vo = ({ adjustColorsInDarkMode: e, columns: t, disabled: n, hideAreaPicker: r = !1, onChange: i, onConfirm: a, options: o = [], small: s, testId: c, value: l }) => /* @__PURE__ */ S(Bo, {
|
|
1722
1722
|
adjustColorsInDarkMode: e,
|
|
1723
1723
|
columns: t,
|
|
1724
1724
|
disabled: n,
|
|
@@ -1728,7 +1728,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1728
1728
|
options: o,
|
|
1729
1729
|
testId: c,
|
|
1730
1730
|
value: l,
|
|
1731
|
-
children: ({ isOpen: e, colorName: t, valueColor: r }) => /* @__PURE__ */ S(
|
|
1731
|
+
children: ({ isOpen: e, colorName: t, valueColor: r }) => /* @__PURE__ */ S(q, {
|
|
1732
1732
|
round: !0,
|
|
1733
1733
|
disabled: n,
|
|
1734
1734
|
basic: !0,
|
|
@@ -1736,14 +1736,14 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1736
1736
|
active: e,
|
|
1737
1737
|
tooltip: r ? t : void 0,
|
|
1738
1738
|
icon: r ? /* @__PURE__ */ S(Pn, {
|
|
1739
|
-
className: b(
|
|
1739
|
+
className: b(Do.swatch, s && Do.small),
|
|
1740
1740
|
color: r
|
|
1741
1741
|
}) : /* @__PURE__ */ S("span", {
|
|
1742
|
-
className: b(
|
|
1742
|
+
className: b(Do.swatch, Do.transparent, s && Do.small),
|
|
1743
1743
|
"aria-hidden": !0
|
|
1744
1744
|
})
|
|
1745
1745
|
})
|
|
1746
|
-
}),
|
|
1746
|
+
}), Ho = {
|
|
1747
1747
|
inputInTable: "_inputInTable_qtkou_1",
|
|
1748
1748
|
inputHover: "_inputHover_qtkou_13",
|
|
1749
1749
|
inputFocus: "_inputFocus_qtkou_18",
|
|
@@ -1756,15 +1756,15 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1756
1756
|
noScrollbar: "_noScrollbar_qtkou_98",
|
|
1757
1757
|
inner: "_inner_qtkou_108",
|
|
1758
1758
|
innerFlexbox: "_innerFlexbox_qtkou_115"
|
|
1759
|
-
},
|
|
1759
|
+
}, Uo = (e) => {
|
|
1760
1760
|
if (typeof e == "string") return e;
|
|
1761
1761
|
if (typeof e == "number") return `${e}px`;
|
|
1762
|
-
},
|
|
1762
|
+
}, Wo = (e) => {
|
|
1763
1763
|
if (e === !0) return "1px solid var(--color-border)";
|
|
1764
1764
|
if (typeof e == "string") return e;
|
|
1765
|
-
},
|
|
1765
|
+
}, Go = (e) => e === !0 ? "var(--padding)" : e === !1 ? "0" : e, Ko = ({ 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 }) => {
|
|
1766
1766
|
var m, h, g;
|
|
1767
|
-
let _ =
|
|
1767
|
+
let _ = Uo(u), v = Uo(f), y = Uo(d), x = Wo(t), C = Wo(n), w = Go(o), T = {
|
|
1768
1768
|
"--column-width": _ || "auto",
|
|
1769
1769
|
"--column-width-tablet": (m = v == null ? _ : v) == null ? "auto" : m,
|
|
1770
1770
|
"--column-width-mobile": (h = (g = y == null ? v : y) == null ? _ : g) == null ? "auto" : h,
|
|
@@ -1777,20 +1777,20 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1777
1777
|
padding: l ? `0 calc(${l} / 2)` : 0
|
|
1778
1778
|
};
|
|
1779
1779
|
return /* @__PURE__ */ S("div", {
|
|
1780
|
-
className: b(
|
|
1780
|
+
className: b(Ho.column, !c && Ho.noScrollbar),
|
|
1781
1781
|
style: T,
|
|
1782
1782
|
children: /* @__PURE__ */ S("div", {
|
|
1783
|
-
className: b(
|
|
1783
|
+
className: b(Ho.inner, a && !s && Ho.innerFlexbox),
|
|
1784
1784
|
style: { padding: w },
|
|
1785
1785
|
"data-testid": p,
|
|
1786
1786
|
children: r
|
|
1787
1787
|
})
|
|
1788
1788
|
});
|
|
1789
|
-
},
|
|
1789
|
+
}, qo = {
|
|
1790
1790
|
divider: "_divider_2bfzh_1",
|
|
1791
1791
|
alignLeft: "_alignLeft_2bfzh_12",
|
|
1792
1792
|
alignRight: "_alignRight_2bfzh_15"
|
|
1793
|
-
},
|
|
1793
|
+
}, Jo = {
|
|
1794
1794
|
bold: "_bold_11ofj_1",
|
|
1795
1795
|
center: "_center_11ofj_4",
|
|
1796
1796
|
muted: "_muted_11ofj_7",
|
|
@@ -1800,35 +1800,35 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1800
1800
|
error: "_error_11ofj_19",
|
|
1801
1801
|
small: "_small_11ofj_22",
|
|
1802
1802
|
link: "_link_11ofj_25"
|
|
1803
|
-
},
|
|
1804
|
-
className: b(t &&
|
|
1803
|
+
}, Yo = ({ 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__ */ S("span", {
|
|
1804
|
+
className: b(t && Jo.bold, n && Jo.center, r && Jo.error, i && Jo.faint, a && Jo.link, o && Jo.muted, s && Jo.clickable, c && Jo.small, l && Jo.success, u && Jo.warning),
|
|
1805
1805
|
onClick: s,
|
|
1806
1806
|
children: e
|
|
1807
|
-
}),
|
|
1807
|
+
}), Xo = (e) => {
|
|
1808
1808
|
switch (e) {
|
|
1809
|
-
case ki.LEFT: return
|
|
1810
|
-
case ki.RIGHT: return
|
|
1809
|
+
case ki.LEFT: return qo.alignLeft;
|
|
1810
|
+
case ki.RIGHT: return qo.alignRight;
|
|
1811
1811
|
default: return "";
|
|
1812
1812
|
}
|
|
1813
|
-
},
|
|
1814
|
-
className: `${
|
|
1813
|
+
}, Zo = ({ children: e, margin: t = "var(--padding)", color: n = "var(--color-border)", align: r = ki.CENTER }) => /* @__PURE__ */ S("div", {
|
|
1814
|
+
className: `${qo.divider} ${Xo(r)}`,
|
|
1815
1815
|
style: {
|
|
1816
1816
|
marginTop: t,
|
|
1817
1817
|
marginBottom: t,
|
|
1818
1818
|
"--color": n
|
|
1819
1819
|
},
|
|
1820
|
-
children: typeof e == "string" ? /* @__PURE__ */ S(
|
|
1820
|
+
children: typeof e == "string" ? /* @__PURE__ */ S(Yo, {
|
|
1821
1821
|
muted: !0,
|
|
1822
1822
|
children: e
|
|
1823
1823
|
}) : e
|
|
1824
|
-
}),
|
|
1824
|
+
}), Qo = {
|
|
1825
1825
|
heading: "_heading_vy5xr_1",
|
|
1826
1826
|
top: "_top_vy5xr_11",
|
|
1827
1827
|
icons: "_icons_vy5xr_21"
|
|
1828
|
-
},
|
|
1828
|
+
}, $o = {
|
|
1829
1829
|
1: "h1",
|
|
1830
1830
|
2: "h2"
|
|
1831
|
-
},
|
|
1831
|
+
}, es = 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) => {
|
|
1832
1832
|
let g = l ? 1 : 2, _ = !!t || !!r;
|
|
1833
1833
|
return /* @__PURE__ */ S(nr, {
|
|
1834
1834
|
slot: d,
|
|
@@ -1838,8 +1838,8 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1838
1838
|
let y = {
|
|
1839
1839
|
...m,
|
|
1840
1840
|
...d,
|
|
1841
|
-
ref:
|
|
1842
|
-
className: b(
|
|
1841
|
+
ref: io(h, d.ref),
|
|
1842
|
+
className: b(Qo.heading, l ? Qo.top : "", f, d.className),
|
|
1843
1843
|
style: {
|
|
1844
1844
|
marginBottom: c,
|
|
1845
1845
|
...p,
|
|
@@ -1848,18 +1848,18 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1848
1848
|
onClick: n == null ? d.onClick : n,
|
|
1849
1849
|
"data-testid": u
|
|
1850
1850
|
};
|
|
1851
|
-
return a(
|
|
1852
|
-
className:
|
|
1851
|
+
return a($o[g], y, e, /* @__PURE__ */ C("span", {
|
|
1852
|
+
className: Qo.icons,
|
|
1853
1853
|
children: [
|
|
1854
|
-
o && /* @__PURE__ */ S(
|
|
1854
|
+
o && /* @__PURE__ */ S(ma, {
|
|
1855
1855
|
onClick: i,
|
|
1856
1856
|
icon: o
|
|
1857
1857
|
}),
|
|
1858
|
-
_ && /* @__PURE__ */ S(
|
|
1858
|
+
_ && /* @__PURE__ */ S(ma, {
|
|
1859
1859
|
text: t,
|
|
1860
1860
|
onClick: r
|
|
1861
1861
|
}),
|
|
1862
|
-
s && /* @__PURE__ */ S(
|
|
1862
|
+
s && /* @__PURE__ */ S(ma, {
|
|
1863
1863
|
text: (v = s == null ? void 0 : s.tooltip) == null ? "" : v,
|
|
1864
1864
|
onClick: s.onClick,
|
|
1865
1865
|
icon: U.LIBRARY
|
|
@@ -1868,7 +1868,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1868
1868
|
}, "icons"));
|
|
1869
1869
|
}
|
|
1870
1870
|
});
|
|
1871
|
-
}),
|
|
1871
|
+
}), ts = {
|
|
1872
1872
|
dialog: "_dialog_64i57_1",
|
|
1873
1873
|
inline: "_inline_64i57_19",
|
|
1874
1874
|
scroll: "_scroll_64i57_22",
|
|
@@ -1877,14 +1877,14 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1877
1877
|
subheading: "_subheading_64i57_39",
|
|
1878
1878
|
content: "_content_64i57_42",
|
|
1879
1879
|
footer: "_footer_64i57_51"
|
|
1880
|
-
},
|
|
1880
|
+
}, ns = (e) => sn(e) ? e.map((e, t) => /* @__PURE__ */ C(n, { children: [
|
|
1881
1881
|
e,
|
|
1882
1882
|
" ",
|
|
1883
1883
|
/* @__PURE__ */ S("br", {})
|
|
1884
|
-
] }, t)) : e,
|
|
1884
|
+
] }, t)) : e, rs = ({ dialog: e }) => {
|
|
1885
1885
|
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 !== "";
|
|
1886
1886
|
return /* @__PURE__ */ C($n, {
|
|
1887
|
-
className: b(
|
|
1887
|
+
className: b(ts.dialog, s ? ts.inline : null, o ? ts.scroll : null),
|
|
1888
1888
|
style: {
|
|
1889
1889
|
width: s,
|
|
1890
1890
|
height: c
|
|
@@ -1893,19 +1893,19 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1893
1893
|
"data-testid": u == null ? null : u,
|
|
1894
1894
|
children: [
|
|
1895
1895
|
/* @__PURE__ */ C("div", {
|
|
1896
|
-
className:
|
|
1897
|
-
children: [/* @__PURE__ */ C("div", { children: [d ? /* @__PURE__ */ S(
|
|
1896
|
+
className: ts.header,
|
|
1897
|
+
children: [/* @__PURE__ */ C("div", { children: [d ? /* @__PURE__ */ S(es, {
|
|
1898
1898
|
slot: "title",
|
|
1899
1899
|
top: !0,
|
|
1900
1900
|
marginBottom: 0,
|
|
1901
1901
|
testId: u && `${u}-heading`,
|
|
1902
1902
|
children: t
|
|
1903
1903
|
}) : null, n ? /* @__PURE__ */ S("div", {
|
|
1904
|
-
className:
|
|
1904
|
+
className: ts.subheading,
|
|
1905
1905
|
children: n
|
|
1906
1906
|
}) : null] }), l ? /* @__PURE__ */ S("div", {
|
|
1907
|
-
className:
|
|
1908
|
-
children: /* @__PURE__ */ S(
|
|
1907
|
+
className: ts.dismiss,
|
|
1908
|
+
children: /* @__PURE__ */ S(q, {
|
|
1909
1909
|
icon: U.CLOSE,
|
|
1910
1910
|
round: !0,
|
|
1911
1911
|
basic: !0,
|
|
@@ -1919,18 +1919,18 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1919
1919
|
}),
|
|
1920
1920
|
/* @__PURE__ */ S("div", {
|
|
1921
1921
|
"data-testid": u && `${u}-content`,
|
|
1922
|
-
className:
|
|
1922
|
+
className: ts.content,
|
|
1923
1923
|
style: { padding: i },
|
|
1924
|
-
children:
|
|
1924
|
+
children: ns(r)
|
|
1925
1925
|
}),
|
|
1926
1926
|
a && /* @__PURE__ */ S("div", {
|
|
1927
1927
|
"data-testid": u && `${u}-footer`,
|
|
1928
|
-
className:
|
|
1928
|
+
className: ts.footer,
|
|
1929
1929
|
children: a
|
|
1930
1930
|
})
|
|
1931
1931
|
]
|
|
1932
1932
|
});
|
|
1933
|
-
},
|
|
1933
|
+
}, is = {
|
|
1934
1934
|
inputInTable: "_inputInTable_1pgq8_1",
|
|
1935
1935
|
inputHover: "_inputHover_1pgq8_13",
|
|
1936
1936
|
inputFocus: "_inputFocus_1pgq8_18",
|
|
@@ -1957,19 +1957,19 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1957
1957
|
disabled: "_disabled_1pgq8_228",
|
|
1958
1958
|
tabsContent: "_tabsContent_1pgq8_235",
|
|
1959
1959
|
resizeHandle: "_resizeHandle_1pgq8_241"
|
|
1960
|
-
},
|
|
1960
|
+
}, as = ({ badge: e, children: t }) => e ? /* @__PURE__ */ S(no, {
|
|
1961
1961
|
small: !0,
|
|
1962
1962
|
margin: 4,
|
|
1963
1963
|
title: e.toString(),
|
|
1964
1964
|
children: t
|
|
1965
|
-
}) : /* @__PURE__ */ S(x, { children: t }),
|
|
1966
|
-
className:
|
|
1965
|
+
}) : /* @__PURE__ */ S(x, { children: t }), os = ({ tabs: e, activeTab: t, open: n, background: r, handleTabClick: i, width: a, testId: o }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S("div", {
|
|
1966
|
+
className: is.tabs,
|
|
1967
1967
|
children: e.map((e, a) => pn(e) || ln(e) ? null : /* @__PURE__ */ S("div", {
|
|
1968
|
-
className: b(
|
|
1968
|
+
className: b(is.tab, t === a && n ? is.active : "", e.disabled ? is.disabled : ""),
|
|
1969
1969
|
style: { background: r },
|
|
1970
1970
|
onClick: e.disabled ? void 0 : () => i(a),
|
|
1971
1971
|
"data-testid": o && `${o}-icon-${a}`,
|
|
1972
|
-
children: /* @__PURE__ */ S(
|
|
1972
|
+
children: /* @__PURE__ */ S(as, {
|
|
1973
1973
|
badge: e.badge,
|
|
1974
1974
|
children: e.icon
|
|
1975
1975
|
})
|
|
@@ -1982,21 +1982,21 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
1982
1982
|
width: typeof a == "number" ? `${a}px` : a,
|
|
1983
1983
|
display: i ? "block" : "none"
|
|
1984
1984
|
},
|
|
1985
|
-
className:
|
|
1985
|
+
className: is.tabsContent,
|
|
1986
1986
|
"data-testid": o && `${o}-content-${r}`,
|
|
1987
1987
|
children: i && n && e.content
|
|
1988
1988
|
}, r);
|
|
1989
|
-
})] }),
|
|
1989
|
+
})] }), ss = o((e, t) => {
|
|
1990
1990
|
let { handleAxis: n, ...r } = e;
|
|
1991
1991
|
return /* @__PURE__ */ S("div", {
|
|
1992
1992
|
ref: t,
|
|
1993
|
-
className:
|
|
1993
|
+
className: is.resizeHandle,
|
|
1994
1994
|
...r,
|
|
1995
1995
|
children: /* @__PURE__ */ S(G, { icon: U.DRAG })
|
|
1996
1996
|
});
|
|
1997
|
-
}),
|
|
1997
|
+
}), cs = rr, ls = ({ children: e = null, width: t = 400, right: n = !1, onResize: r, setOpen: i, maxOpenWidth: a }) => {
|
|
1998
1998
|
let [o, s] = v(!1), c = a == null ? window.innerWidth / 2 : a;
|
|
1999
|
-
return r ? /* @__PURE__ */ S(
|
|
1999
|
+
return r ? /* @__PURE__ */ S(cs, {
|
|
2000
2000
|
width: Sn(t),
|
|
2001
2001
|
height: 100,
|
|
2002
2002
|
minConstraints: [35, Infinity],
|
|
@@ -2004,10 +2004,10 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2004
2004
|
onResize: (e, { size: t }) => {
|
|
2005
2005
|
r && r(t.width);
|
|
2006
2006
|
},
|
|
2007
|
-
handle: /* @__PURE__ */ S(
|
|
2007
|
+
handle: /* @__PURE__ */ S(ss, {}),
|
|
2008
2008
|
resizeHandles: n ? ["w"] : ["e"],
|
|
2009
2009
|
axis: "x",
|
|
2010
|
-
className: o ?
|
|
2010
|
+
className: o ? is.isResizing : "",
|
|
2011
2011
|
onResizeStart: () => {
|
|
2012
2012
|
i && i(!0), r && r(t), s(!0);
|
|
2013
2013
|
},
|
|
@@ -2016,27 +2016,27 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2016
2016
|
},
|
|
2017
2017
|
children: e
|
|
2018
2018
|
}) : /* @__PURE__ */ S(x, { children: e });
|
|
2019
|
-
},
|
|
2019
|
+
}, us = ({ 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 = Ai.BOTTOM, border: p = !1, children: m = null, tabs: h, defaultTabIndex: g = 0, activeTab: _, setActiveTab: y, testId: x, onResize: w, getActiveTab: T, onClose: E, onOpen: D, maxOpenWidth: O }) => {
|
|
2020
2020
|
let k = u === !0, A = !k && s(u), [j, M] = r ? [n, r] : k || h ? v(n) : [n, () => {}], [N, P] = v(g), F = r ? n : j, I = r || M, L = y === void 0 ? N : _, R = y || P, z = Array.isArray(a) ? a[L || 0] : a, B = F ? z : h ? 35 : o;
|
|
2021
|
-
return /* @__PURE__ */ S(
|
|
2021
|
+
return /* @__PURE__ */ S(ls, {
|
|
2022
2022
|
width: B,
|
|
2023
2023
|
onResize: w,
|
|
2024
2024
|
setOpen: I,
|
|
2025
2025
|
right: i,
|
|
2026
2026
|
maxOpenWidth: O,
|
|
2027
2027
|
children: /* @__PURE__ */ C("div", {
|
|
2028
|
-
className: b(
|
|
2028
|
+
className: b(is.drawer, c ? is.shadow : "", t ? is.fixed : is.inline, i ? is.right : is.left),
|
|
2029
2029
|
style: { top: l },
|
|
2030
2030
|
"data-testid": x,
|
|
2031
2031
|
children: [/* @__PURE__ */ S("div", {
|
|
2032
|
-
className: b(
|
|
2032
|
+
className: b(is.drawerContent, p && is.border),
|
|
2033
2033
|
style: {
|
|
2034
2034
|
background: e,
|
|
2035
2035
|
borderColor: typeof p == "string" ? p : void 0,
|
|
2036
2036
|
width: B
|
|
2037
2037
|
},
|
|
2038
2038
|
"data-testid": x ? `${x}-content` : void 0,
|
|
2039
|
-
children: h ? /* @__PURE__ */ S(
|
|
2039
|
+
children: h ? /* @__PURE__ */ S(os, {
|
|
2040
2040
|
width: z,
|
|
2041
2041
|
testId: x,
|
|
2042
2042
|
tabs: h,
|
|
@@ -2061,8 +2061,8 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2061
2061
|
children: m
|
|
2062
2062
|
})
|
|
2063
2063
|
}), u && /* @__PURE__ */ S("span", {
|
|
2064
|
-
className: b(
|
|
2065
|
-
children: A ? u : /* @__PURE__ */ S(
|
|
2064
|
+
className: b(is.toggleButton, j && (k || A && d) ? is.toggleButtonOpen : "", f === "top" ? is.top : is.bottom),
|
|
2065
|
+
children: A ? u : /* @__PURE__ */ S(q, {
|
|
2066
2066
|
onClick: I ? () => I(!F) : void 0,
|
|
2067
2067
|
round: !0,
|
|
2068
2068
|
icon: i ? U.CHEVRON_RIGHT : U.CHEVRON_LEFT,
|
|
@@ -2071,20 +2071,20 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2071
2071
|
})]
|
|
2072
2072
|
})
|
|
2073
2073
|
});
|
|
2074
|
-
},
|
|
2074
|
+
}, ds = { inputGroup: "_inputGroup_biuoa_1" }, fs = (e) => s(e) && typeof e.type == "string", ps = ({ children: t, small: r = !1, width: i = "100%" }) => {
|
|
2075
2075
|
let a = Array.isArray(t) ? t.filter((e) => s(e)) : [t], o = a.map((t, i) => {
|
|
2076
|
-
let o =
|
|
2076
|
+
let o = fs(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);
|
|
2077
2077
|
return o ? t : t.type === n ? /* @__PURE__ */ S(n, { children: t }, i) : /* @__PURE__ */ S(n, { children: e.cloneElement(t, {
|
|
2078
2078
|
groupOrder: d,
|
|
2079
2079
|
small: r
|
|
2080
2080
|
}) }, i);
|
|
2081
2081
|
});
|
|
2082
2082
|
return /* @__PURE__ */ S("div", {
|
|
2083
|
-
className: b(
|
|
2083
|
+
className: b(ds.inputGroup),
|
|
2084
2084
|
style: { width: i },
|
|
2085
2085
|
children: o
|
|
2086
2086
|
});
|
|
2087
|
-
},
|
|
2087
|
+
}, ms = {
|
|
2088
2088
|
inputInTable: "_inputInTable_o2gwb_1",
|
|
2089
2089
|
inputHover: "_inputHover_o2gwb_13",
|
|
2090
2090
|
inputFocus: "_inputFocus_o2gwb_18",
|
|
@@ -2102,27 +2102,27 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2102
2102
|
groupOrderMiddle: "_groupOrderMiddle_o2gwb_181",
|
|
2103
2103
|
groupOrderLast: "_groupOrderLast_o2gwb_185",
|
|
2104
2104
|
icon: "_icon_o2gwb_190"
|
|
2105
|
-
},
|
|
2105
|
+
}, hs = o(({ error: e = null, tooltip: t = null, isInTable: n, width: r = void 0, small: i = !1, onChange: a = yn, placeholder: o = "", value: s = "", icon: c, onKeyPress: l = () => {}, onFocus: d = () => {}, onBlur: f = () => {}, onPaste: p = () => {}, onKeyDown: m = () => {}, selectOnFocus: h = !0, name: g = void 0, type: _ = "text", tabIndex: v = 0, disabled: y = !1, right: x = !1, warning: w = null, groupOrder: T = null, maxTooltipWidth: E = void 0, testId: D = void 0, size: O = null }, k) => {
|
|
2106
2106
|
let A = u(W), j = (() => {
|
|
2107
2107
|
if (T) switch (T) {
|
|
2108
|
-
case H.FIRST: return
|
|
2109
|
-
case H.LAST: return
|
|
2110
|
-
default: return
|
|
2108
|
+
case H.FIRST: return ms.groupOrderFirst;
|
|
2109
|
+
case H.LAST: return ms.groupOrderLast;
|
|
2110
|
+
default: return ms.groupOrderMiddle;
|
|
2111
2111
|
}
|
|
2112
2112
|
return "";
|
|
2113
2113
|
})(), M = r || (O ? "auto" : "100%");
|
|
2114
2114
|
return /* @__PURE__ */ S("div", {
|
|
2115
2115
|
style: { width: M },
|
|
2116
|
-
className: b(j,
|
|
2117
|
-
children: /* @__PURE__ */ C(
|
|
2116
|
+
className: b(j, ms.wrapper),
|
|
2117
|
+
children: /* @__PURE__ */ C(K, {
|
|
2118
2118
|
error: !!e,
|
|
2119
2119
|
warning: !!w,
|
|
2120
2120
|
text: t || e || w,
|
|
2121
|
-
enabled: t &&
|
|
2121
|
+
enabled: t && Y(t) || e && Y(e) || w && Y(w) || !1,
|
|
2122
2122
|
maxWidth: E,
|
|
2123
2123
|
display: "block",
|
|
2124
2124
|
children: [c && /* @__PURE__ */ S("span", {
|
|
2125
|
-
className:
|
|
2125
|
+
className: ms.icon,
|
|
2126
2126
|
children: /* @__PURE__ */ S(G, { icon: c })
|
|
2127
2127
|
}), /* @__PURE__ */ S("input", {
|
|
2128
2128
|
ref: k,
|
|
@@ -2144,7 +2144,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2144
2144
|
tabIndex: v,
|
|
2145
2145
|
autoComplete: "off",
|
|
2146
2146
|
disabled: y || A,
|
|
2147
|
-
className: b(
|
|
2147
|
+
className: b(ms.input, x ? ms.right : "", i ? ms.small : "", n ? ms.isInTable : ""),
|
|
2148
2148
|
style: { width: M },
|
|
2149
2149
|
"data-error": e || null,
|
|
2150
2150
|
"data-warning": w || null,
|
|
@@ -2152,9 +2152,9 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2152
2152
|
})]
|
|
2153
2153
|
})
|
|
2154
2154
|
});
|
|
2155
|
-
}),
|
|
2155
|
+
}), gs = { fileInput: "_fileInput_1elar_1" }, _s = /* @__PURE__ */ function(e) {
|
|
2156
2156
|
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;
|
|
2157
|
-
}({}),
|
|
2157
|
+
}({}), vs = (e = new Blob(), t = _s.READ_AS_TEXT) => {
|
|
2158
2158
|
let n = new FileReader();
|
|
2159
2159
|
return new Promise((r, i) => {
|
|
2160
2160
|
if (t in n) n[t](e);
|
|
@@ -2166,7 +2166,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2166
2166
|
n.result === null ? i(/* @__PURE__ */ Error("File reading resulted in null")) : r(n.result);
|
|
2167
2167
|
}, n.onerror = (e) => i(e);
|
|
2168
2168
|
});
|
|
2169
|
-
},
|
|
2169
|
+
}, ys = (e, t) => {
|
|
2170
2170
|
let n;
|
|
2171
2171
|
if (!e) return null;
|
|
2172
2172
|
if (t) {
|
|
@@ -2174,19 +2174,19 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2174
2174
|
n = `Selected - ${(r = Object.keys(e)) == null ? void 0 : r.length} files`;
|
|
2175
2175
|
} else n = e == null ? void 0 : e.name;
|
|
2176
2176
|
return n || null;
|
|
2177
|
-
},
|
|
2178
|
-
let f = u(W), p = _(null), m =
|
|
2177
|
+
}, bs = ({ 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 = yn, testId: d }) => {
|
|
2178
|
+
let f = u(W), p = _(null), m = ys(i, o);
|
|
2179
2179
|
return /* @__PURE__ */ C("div", {
|
|
2180
2180
|
onClick: () => {
|
|
2181
2181
|
var e;
|
|
2182
2182
|
r || f || (e = p.current) == null || e.click();
|
|
2183
2183
|
},
|
|
2184
2184
|
style: { width: c },
|
|
2185
|
-
children: [/* @__PURE__ */ C(
|
|
2185
|
+
children: [/* @__PURE__ */ C(ps, { children: [/* @__PURE__ */ S(hs, {
|
|
2186
2186
|
value: m || "",
|
|
2187
2187
|
placeholder: n,
|
|
2188
2188
|
disabled: !0
|
|
2189
|
-
}), /* @__PURE__ */ S(
|
|
2189
|
+
}), /* @__PURE__ */ S(q, {
|
|
2190
2190
|
label: e,
|
|
2191
2191
|
loading: t,
|
|
2192
2192
|
disabled: t || r || f,
|
|
@@ -2194,7 +2194,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2194
2194
|
})] }), /* @__PURE__ */ S("input", {
|
|
2195
2195
|
name: s,
|
|
2196
2196
|
ref: p,
|
|
2197
|
-
className:
|
|
2197
|
+
className: gs.fileInput,
|
|
2198
2198
|
type: "file",
|
|
2199
2199
|
accept: a,
|
|
2200
2200
|
multiple: o,
|
|
@@ -2212,13 +2212,13 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2212
2212
|
"data-testid": d
|
|
2213
2213
|
})]
|
|
2214
2214
|
});
|
|
2215
|
-
},
|
|
2215
|
+
}, xs = ({ height: e = "var(--padding)", width: t = null, flex: n = !1 }) => /* @__PURE__ */ S("div", { style: {
|
|
2216
2216
|
height: e,
|
|
2217
2217
|
width: t || "auto",
|
|
2218
2218
|
flexGrow: +!!n,
|
|
2219
2219
|
flexShrink: 0,
|
|
2220
2220
|
display: t ? "inline-block" : "block"
|
|
2221
|
-
} }),
|
|
2221
|
+
} }), Ss = (e, t, n = [], r) => {
|
|
2222
2222
|
d(() => {
|
|
2223
2223
|
let n = (n) => {
|
|
2224
2224
|
var i, a, o;
|
|
@@ -2229,39 +2229,39 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2229
2229
|
window.removeEventListener("keydown", n);
|
|
2230
2230
|
};
|
|
2231
2231
|
}, n);
|
|
2232
|
-
},
|
|
2232
|
+
}, Cs = {
|
|
2233
2233
|
overlay: "_overlay_9zdey_1",
|
|
2234
2234
|
container: "_container_9zdey_24",
|
|
2235
2235
|
modal: "_modal_9zdey_27",
|
|
2236
2236
|
contentContainer: "_contentContainer_9zdey_42",
|
|
2237
2237
|
centered: "_centered_9zdey_51",
|
|
2238
2238
|
newLine: "_newLine_9zdey_55"
|
|
2239
|
-
},
|
|
2240
|
-
className: b(
|
|
2239
|
+
}, ws = ({ children: e, width: t, centered: n }) => /* @__PURE__ */ S("div", {
|
|
2240
|
+
className: b(Cs.contentContainer, n ? Cs.centered : ""),
|
|
2241
2241
|
style: { maxWidth: t },
|
|
2242
2242
|
children: e
|
|
2243
|
-
}),
|
|
2243
|
+
}), Ts = ({ children: e, visible: t = !1, centered: n = !1, width: r = "100%", onEnter: i, onEscape: a }) => (Ss("Enter", () => {
|
|
2244
2244
|
t && i && i();
|
|
2245
2245
|
}, [t, i]), /* @__PURE__ */ S(tr, {
|
|
2246
2246
|
isOpen: t,
|
|
2247
|
-
className:
|
|
2247
|
+
className: Cs.overlay,
|
|
2248
2248
|
shouldCloseOnInteractOutside: () => !1,
|
|
2249
2249
|
onOpenChange: (e) => {
|
|
2250
2250
|
e || a == null || a();
|
|
2251
2251
|
},
|
|
2252
2252
|
children: /* @__PURE__ */ S("div", {
|
|
2253
2253
|
id: ta,
|
|
2254
|
-
className:
|
|
2254
|
+
className: Cs.container,
|
|
2255
2255
|
children: /* @__PURE__ */ C(er, {
|
|
2256
|
-
className:
|
|
2257
|
-
children: [/* @__PURE__ */ S(
|
|
2256
|
+
className: Cs.modal,
|
|
2257
|
+
children: [/* @__PURE__ */ S(ws, {
|
|
2258
2258
|
width: r,
|
|
2259
2259
|
centered: n,
|
|
2260
2260
|
children: t && e
|
|
2261
2261
|
}), /* @__PURE__ */ S("div", { id: na })]
|
|
2262
2262
|
})
|
|
2263
2263
|
})
|
|
2264
|
-
})),
|
|
2264
|
+
})), Es = {
|
|
2265
2265
|
progress: "_progress_23ror_1",
|
|
2266
2266
|
inverted: "_inverted_23ror_9",
|
|
2267
2267
|
bar: "_bar_23ror_12",
|
|
@@ -2272,30 +2272,30 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2272
2272
|
yellow: "_yellow_23ror_33",
|
|
2273
2273
|
green: "_green_23ror_36",
|
|
2274
2274
|
label: "_label_23ror_39"
|
|
2275
|
-
},
|
|
2275
|
+
}, Ds = (e) => e < 20 ? Es.grey : e < 40 ? Es.red : e < 60 ? Es.orange : e < 80 ? Es.yellow : Es.green, Os = ({ width: e = "auto", inverted: t = !1, colored: n = !0, showProgressColors: r = !1, percentage: i = 0, noLabel: a = !1 }) => /* @__PURE__ */ S("div", {
|
|
2276
2276
|
style: { width: e },
|
|
2277
2277
|
"data-percent": i,
|
|
2278
2278
|
children: /* @__PURE__ */ C("div", {
|
|
2279
|
-
className: b(
|
|
2279
|
+
className: b(Es.progress, t ? Es.inverted : ""),
|
|
2280
2280
|
style: { width: e },
|
|
2281
2281
|
children: [/* @__PURE__ */ S("div", {
|
|
2282
|
-
className: b(
|
|
2282
|
+
className: b(Es.bar, r ? Ds(i) : n ? Es.colored : ""),
|
|
2283
2283
|
style: { width: `${i}%` },
|
|
2284
2284
|
children: /* @__PURE__ */ S("div", {
|
|
2285
|
-
className:
|
|
2285
|
+
className: Es.label,
|
|
2286
2286
|
children: !a && `${i}%`
|
|
2287
2287
|
})
|
|
2288
2288
|
}), /* @__PURE__ */ S("div", {
|
|
2289
|
-
className:
|
|
2289
|
+
className: Es.label,
|
|
2290
2290
|
children: !a && `${i}%`
|
|
2291
2291
|
})]
|
|
2292
2292
|
})
|
|
2293
|
-
}),
|
|
2293
|
+
}), ks = 250, As = 4e4, js = 20, Ms = 500, Ns = ({ visible: e, prompt: t, onCloseModal: n, onUpload: r, onComplete: i, onFailed: a, onError: o, width: s, heading: c, dialogText: l, fileInputText: u, fileInputPlaceholder: f, uploadText: p, cancelText: m, testId: h }) => {
|
|
2294
2294
|
let [g, _] = v(null), [y, b] = v(!1), [w, T] = v(0), E = 0, D = () => {
|
|
2295
|
-
E +=
|
|
2295
|
+
E += ks, T(E);
|
|
2296
2296
|
}, O = (e) => {
|
|
2297
2297
|
let t = E + e;
|
|
2298
|
-
t >= .99 *
|
|
2298
|
+
t >= .99 * As && (t = As), E = t, T(E);
|
|
2299
2299
|
};
|
|
2300
2300
|
d(() => {
|
|
2301
2301
|
_(null);
|
|
@@ -2304,7 +2304,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2304
2304
|
e.target.value && _(e.target.value);
|
|
2305
2305
|
}, A = async () => {
|
|
2306
2306
|
T(0);
|
|
2307
|
-
let n = setInterval(D,
|
|
2307
|
+
let n = setInterval(D, ks);
|
|
2308
2308
|
try {
|
|
2309
2309
|
if (!g) return;
|
|
2310
2310
|
b(!0);
|
|
@@ -2312,10 +2312,10 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2312
2312
|
if (!e) return;
|
|
2313
2313
|
if (o) {
|
|
2314
2314
|
clearInterval(n);
|
|
2315
|
-
let e = setInterval(O,
|
|
2315
|
+
let e = setInterval(O, Ms / js, (As - E) / 19);
|
|
2316
2316
|
setTimeout(() => {
|
|
2317
2317
|
i(o), clearInterval(e), b(!1);
|
|
2318
|
-
},
|
|
2318
|
+
}, Ms);
|
|
2319
2319
|
} else a == null || a(), b(!1);
|
|
2320
2320
|
} catch (e) {
|
|
2321
2321
|
o == null || o(e), b(!1);
|
|
@@ -2327,9 +2327,9 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2327
2327
|
}, M = () => {
|
|
2328
2328
|
n();
|
|
2329
2329
|
}, N = /* @__PURE__ */ C(x, { children: [
|
|
2330
|
-
/* @__PURE__ */ S(
|
|
2331
|
-
/* @__PURE__ */ S(
|
|
2332
|
-
/* @__PURE__ */ S(
|
|
2330
|
+
/* @__PURE__ */ S(Yo, { children: l || "Upload file and extract data using a LLM" }),
|
|
2331
|
+
/* @__PURE__ */ S(xs, {}),
|
|
2332
|
+
/* @__PURE__ */ S(bs, {
|
|
2333
2333
|
placeholder: f || "No file",
|
|
2334
2334
|
label: u || "Select",
|
|
2335
2335
|
file: g || void 0,
|
|
@@ -2337,23 +2337,23 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2337
2337
|
testId: `${h}-file-input`,
|
|
2338
2338
|
accept: "image/*"
|
|
2339
2339
|
}),
|
|
2340
|
-
y && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
2341
|
-
] }), P = /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
2340
|
+
y && /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(xs, {}), /* @__PURE__ */ S(Os, { percentage: br(100 * w / As, 3) })] })
|
|
2341
|
+
] }), P = /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(q, {
|
|
2342
2342
|
label: p || "Upload",
|
|
2343
2343
|
colored: !0,
|
|
2344
2344
|
onClick: j,
|
|
2345
2345
|
disabled: !g || y,
|
|
2346
2346
|
testId: `${h}-button-upload`
|
|
2347
|
-
}), /* @__PURE__ */ S(
|
|
2347
|
+
}), /* @__PURE__ */ S(q, {
|
|
2348
2348
|
label: m || "Cancel",
|
|
2349
2349
|
onClick: M,
|
|
2350
2350
|
testId: `${h}-button-cancel`
|
|
2351
2351
|
})] });
|
|
2352
|
-
return /* @__PURE__ */ S(
|
|
2352
|
+
return /* @__PURE__ */ S(Ts, {
|
|
2353
2353
|
visible: e,
|
|
2354
2354
|
centered: !0,
|
|
2355
2355
|
onEscape: M,
|
|
2356
|
-
children: /* @__PURE__ */ S(
|
|
2356
|
+
children: /* @__PURE__ */ S(rs, { dialog: {
|
|
2357
2357
|
scroll: !0,
|
|
2358
2358
|
heading: c || "Smart Upload",
|
|
2359
2359
|
content: N,
|
|
@@ -2363,11 +2363,11 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2363
2363
|
testId: h
|
|
2364
2364
|
} })
|
|
2365
2365
|
});
|
|
2366
|
-
},
|
|
2366
|
+
}, Ps = {
|
|
2367
2367
|
helpContainer: "_helpContainer_1pgey_1",
|
|
2368
2368
|
codeBlockStyle: "_codeBlockStyle_1pgey_8",
|
|
2369
2369
|
listStyle: "_listStyle_1pgey_15"
|
|
2370
|
-
},
|
|
2370
|
+
}, Fs = ({ validationRules: e, t }) => {
|
|
2371
2371
|
let n = (t) => {
|
|
2372
2372
|
let n = e.filter((e) => !e.optionalColumn);
|
|
2373
2373
|
return [
|
|
@@ -2377,39 +2377,39 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2377
2377
|
].map((e, r) => n.map(() => r * 10).join(t)).join("\n");
|
|
2378
2378
|
};
|
|
2379
2379
|
return /* @__PURE__ */ C("div", {
|
|
2380
|
-
className:
|
|
2380
|
+
className: Ps.helpContainer,
|
|
2381
2381
|
children: [
|
|
2382
2382
|
/* @__PURE__ */ S("p", { children: t("youCanImportDataByPastingOrByMessage") }),
|
|
2383
2383
|
/* @__PURE__ */ C("p", { children: [t("theValuesCanBeSeparatedByDifferentDelimiters"), ":"] }),
|
|
2384
2384
|
/* @__PURE__ */ C("ul", {
|
|
2385
|
-
className:
|
|
2385
|
+
className: Ps.listStyle,
|
|
2386
2386
|
children: [/* @__PURE__ */ S("li", { children: t("tabSeparatedValues") }), /* @__PURE__ */ S("li", { children: t("semicolonSeparatedValues") })]
|
|
2387
2387
|
}),
|
|
2388
2388
|
/* @__PURE__ */ C("p", { children: [t("toUploadOrImportFromClipboardMessage"), ":"] }),
|
|
2389
2389
|
/* @__PURE__ */ S("p", { children: /* @__PURE__ */ C("strong", { children: [t("examples"), ":"] }) }),
|
|
2390
2390
|
/* @__PURE__ */ S("div", { children: /* @__PURE__ */ S("pre", {
|
|
2391
|
-
className:
|
|
2391
|
+
className: Ps.codeBlockStyle,
|
|
2392
2392
|
children: /* @__PURE__ */ S("code", { children: n(";") })
|
|
2393
2393
|
}) }),
|
|
2394
2394
|
/* @__PURE__ */ S("div", { children: /* @__PURE__ */ S("pre", {
|
|
2395
|
-
className:
|
|
2395
|
+
className: Ps.codeBlockStyle,
|
|
2396
2396
|
children: /* @__PURE__ */ S("code", { children: n(" ") })
|
|
2397
2397
|
}) })
|
|
2398
2398
|
]
|
|
2399
2399
|
});
|
|
2400
|
-
},
|
|
2400
|
+
}, Is = ({ visible: e, setModalVisibility: t, validationRules: n = [], t: r }) => {
|
|
2401
2401
|
let i = () => t("helpModal", !1);
|
|
2402
|
-
return /* @__PURE__ */ S(
|
|
2402
|
+
return /* @__PURE__ */ S(Ts, {
|
|
2403
2403
|
visible: e,
|
|
2404
2404
|
centered: !0,
|
|
2405
2405
|
onEscape: i,
|
|
2406
|
-
children: /* @__PURE__ */ S(
|
|
2406
|
+
children: /* @__PURE__ */ S(rs, { dialog: {
|
|
2407
2407
|
heading: r("importingData"),
|
|
2408
|
-
content: /* @__PURE__ */ S(
|
|
2408
|
+
content: /* @__PURE__ */ S(Fs, {
|
|
2409
2409
|
validationRules: n,
|
|
2410
2410
|
t: r
|
|
2411
2411
|
}),
|
|
2412
|
-
footer: /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(
|
|
2412
|
+
footer: /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(q, {
|
|
2413
2413
|
label: r("cancel"),
|
|
2414
2414
|
onClick: i
|
|
2415
2415
|
}) }),
|
|
@@ -2417,7 +2417,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2417
2417
|
width: "95%"
|
|
2418
2418
|
} })
|
|
2419
2419
|
});
|
|
2420
|
-
},
|
|
2420
|
+
}, Ls = {
|
|
2421
2421
|
headerContainer: "_headerContainer_esg1i_1",
|
|
2422
2422
|
modalContent: "_modalContent_esg1i_10",
|
|
2423
2423
|
resultContainer: "_resultContainer_esg1i_17",
|
|
@@ -2425,7 +2425,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2425
2425
|
emptyState: "_emptyState_esg1i_39",
|
|
2426
2426
|
emptyMainText: "_emptyMainText_esg1i_47",
|
|
2427
2427
|
emptyHint: "_emptyHint_esg1i_51"
|
|
2428
|
-
},
|
|
2428
|
+
}, Rs = {
|
|
2429
2429
|
inputInTable: "_inputInTable_m9de7_1",
|
|
2430
2430
|
inputHover: "_inputHover_m9de7_13",
|
|
2431
2431
|
inputFocus: "_inputFocus_m9de7_18",
|
|
@@ -2448,46 +2448,46 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2448
2448
|
legendToggle: "_legendToggle_m9de7_159",
|
|
2449
2449
|
detailsText: "_detailsText_m9de7_169",
|
|
2450
2450
|
footer: "_footer_m9de7_173"
|
|
2451
|
-
},
|
|
2451
|
+
}, zs = /* @__PURE__ */ function(e) {
|
|
2452
2452
|
return e.INFO = "Info", e.SUCCESS = "Success", e.WARNING = "Warning", e.ERROR = "Error", e;
|
|
2453
|
-
}({}),
|
|
2453
|
+
}({}), Bs = /* @__PURE__ */ function(e) {
|
|
2454
2454
|
return e.TOGGLE_DETAILS = "TOGGLE_DETAILS", e;
|
|
2455
|
-
}({}),
|
|
2456
|
-
className: b(
|
|
2455
|
+
}({}), Vs = ({ type: e, onClose: t, isInToast: n, testId: r }) => /* @__PURE__ */ S("div", {
|
|
2456
|
+
className: b(Rs.dismiss, n ? Rs.absolute : "", e === zs.INFO ? Rs.info : e === zs.SUCCESS ? Rs.success : e === zs.WARNING ? Rs.warning : e === zs.ERROR ? Rs.error : null),
|
|
2457
2457
|
children: /* @__PURE__ */ S(G, {
|
|
2458
2458
|
icon: U.CLOSE,
|
|
2459
2459
|
onClick: t,
|
|
2460
2460
|
testId: r
|
|
2461
2461
|
})
|
|
2462
|
-
}),
|
|
2462
|
+
}), Hs = (e, t) => {
|
|
2463
2463
|
switch (t.type) {
|
|
2464
|
-
case
|
|
2464
|
+
case Bs.TOGGLE_DETAILS: return {
|
|
2465
2465
|
...e,
|
|
2466
2466
|
detailsVisible: !e.detailsVisible
|
|
2467
2467
|
};
|
|
2468
2468
|
default: return e;
|
|
2469
2469
|
}
|
|
2470
|
-
},
|
|
2471
|
-
className: b(
|
|
2470
|
+
}, Us = ({ details: e, visible: t, dispatch: n }) => /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("div", {
|
|
2471
|
+
className: b(Rs.legendToggle),
|
|
2472
2472
|
onClick: n,
|
|
2473
2473
|
children: t ? "Hide details" : "Show details"
|
|
2474
2474
|
}), /* @__PURE__ */ S(Ji, {
|
|
2475
2475
|
expanded: t,
|
|
2476
2476
|
children: /* @__PURE__ */ S("div", {
|
|
2477
|
-
className:
|
|
2477
|
+
className: Rs.detailsText,
|
|
2478
2478
|
children: e
|
|
2479
2479
|
})
|
|
2480
|
-
})] }),
|
|
2480
|
+
})] }), Ws = ({ type: e }) => {
|
|
2481
2481
|
switch (e) {
|
|
2482
|
-
case
|
|
2482
|
+
case zs.SUCCESS: return /* @__PURE__ */ S(G, {
|
|
2483
2483
|
icon: U.SUCCESS,
|
|
2484
2484
|
size: 16
|
|
2485
2485
|
});
|
|
2486
|
-
case
|
|
2486
|
+
case zs.WARNING: return /* @__PURE__ */ S(G, {
|
|
2487
2487
|
icon: U.WARNING,
|
|
2488
2488
|
size: 16
|
|
2489
2489
|
});
|
|
2490
|
-
case
|
|
2490
|
+
case zs.ERROR: return /* @__PURE__ */ S(G, {
|
|
2491
2491
|
icon: U.ERROR,
|
|
2492
2492
|
size: 16
|
|
2493
2493
|
});
|
|
@@ -2496,45 +2496,45 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2496
2496
|
size: 16
|
|
2497
2497
|
});
|
|
2498
2498
|
}
|
|
2499
|
-
},
|
|
2500
|
-
let { visible: t, type: n =
|
|
2499
|
+
}, Gs = ({ message: e }) => {
|
|
2500
|
+
let { visible: t, type: n = zs.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] = g(Hs, { detailsVisible: s });
|
|
2501
2501
|
return /* @__PURE__ */ S(x, { children: t ? /* @__PURE__ */ C("div", {
|
|
2502
|
-
className: b(
|
|
2502
|
+
className: b(Rs.container, d ? Rs.block : null, n === zs.SUCCESS ? Rs.success : n === zs.WARNING ? Rs.warning : n === zs.ERROR ? Rs.error : Rs.info),
|
|
2503
2503
|
style: {
|
|
2504
2504
|
width: d,
|
|
2505
2505
|
maxHeight: f
|
|
2506
2506
|
},
|
|
2507
2507
|
children: [
|
|
2508
2508
|
/* @__PURE__ */ S("div", { children: r ? /* @__PURE__ */ S("div", {
|
|
2509
|
-
className:
|
|
2510
|
-
children: /* @__PURE__ */ S(
|
|
2509
|
+
className: Rs.icon,
|
|
2510
|
+
children: /* @__PURE__ */ S(Ws, { type: n })
|
|
2511
2511
|
}) : null }),
|
|
2512
2512
|
/* @__PURE__ */ C("div", {
|
|
2513
|
-
className:
|
|
2513
|
+
className: Rs.content,
|
|
2514
2514
|
children: [
|
|
2515
2515
|
i ? /* @__PURE__ */ S("div", {
|
|
2516
|
-
className:
|
|
2516
|
+
className: Rs.heading,
|
|
2517
2517
|
children: i
|
|
2518
2518
|
}) : null,
|
|
2519
2519
|
/* @__PURE__ */ S("div", { children: a }),
|
|
2520
|
-
o ? /* @__PURE__ */ S(
|
|
2520
|
+
o ? /* @__PURE__ */ S(Us, {
|
|
2521
2521
|
details: o,
|
|
2522
2522
|
visible: p.detailsVisible,
|
|
2523
|
-
dispatch: () => m({ type:
|
|
2523
|
+
dispatch: () => m({ type: Bs.TOGGLE_DETAILS })
|
|
2524
2524
|
}) : null,
|
|
2525
2525
|
!!c && /* @__PURE__ */ S("div", {
|
|
2526
|
-
className:
|
|
2526
|
+
className: Rs.footer,
|
|
2527
2527
|
children: c
|
|
2528
2528
|
})
|
|
2529
2529
|
]
|
|
2530
2530
|
}),
|
|
2531
|
-
l ? /* @__PURE__ */ S(
|
|
2531
|
+
l ? /* @__PURE__ */ S(Vs, {
|
|
2532
2532
|
type: n,
|
|
2533
2533
|
onClose: u
|
|
2534
2534
|
}) : null
|
|
2535
2535
|
]
|
|
2536
2536
|
}) : null });
|
|
2537
|
-
},
|
|
2537
|
+
}, Ks = {
|
|
2538
2538
|
inputInTable: "_inputInTable_mq0ls_1",
|
|
2539
2539
|
inputHover: "_inputHover_mq0ls_13",
|
|
2540
2540
|
inputFocus: "_inputFocus_mq0ls_18",
|
|
@@ -2550,23 +2550,23 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2550
2550
|
table: "_table_mq0ls_116",
|
|
2551
2551
|
dragOverlay: "_dragOverlay_mq0ls_152",
|
|
2552
2552
|
striped: "_striped_mq0ls_207"
|
|
2553
|
-
},
|
|
2553
|
+
}, qs = { title: "_title_zn5s7_1" }, Js = ({ name: e = null, actions: t = null, actionsRight: n = !1, testId: r }) => {
|
|
2554
2554
|
let i = e !== null, a = t !== null;
|
|
2555
2555
|
return !i && !a ? null : /* @__PURE__ */ C("div", {
|
|
2556
|
-
className:
|
|
2557
|
-
children: [i ? /* @__PURE__ */ S(
|
|
2556
|
+
className: qs.title,
|
|
2557
|
+
children: [i ? /* @__PURE__ */ S(es, { children: /* @__PURE__ */ S("span", {
|
|
2558
2558
|
"data-testid": r,
|
|
2559
2559
|
children: e
|
|
2560
2560
|
}) }) : null, (() => {
|
|
2561
2561
|
if (!a) return null;
|
|
2562
|
-
let e = /* @__PURE__ */ S(
|
|
2562
|
+
let e = /* @__PURE__ */ S(fo, { actions: t });
|
|
2563
2563
|
return n ? e : /* @__PURE__ */ S("div", { children: e });
|
|
2564
2564
|
})()]
|
|
2565
2565
|
});
|
|
2566
|
-
},
|
|
2566
|
+
}, Ys = {
|
|
2567
2567
|
footer: "_footer_4sumy_1",
|
|
2568
2568
|
section: "_section_4sumy_7"
|
|
2569
|
-
},
|
|
2569
|
+
}, Xs = {
|
|
2570
2570
|
inputInTable: "_inputInTable_hq6m3_1",
|
|
2571
2571
|
inputHover: "_inputHover_hq6m3_13",
|
|
2572
2572
|
inputFocus: "_inputFocus_hq6m3_18",
|
|
@@ -2583,7 +2583,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2583
2583
|
groupOrderFirst: "_groupOrderFirst_hq6m3_197",
|
|
2584
2584
|
groupOrderMiddle: "_groupOrderMiddle_hq6m3_198",
|
|
2585
2585
|
groupOrderLast: "_groupOrderLast_hq6m3_202"
|
|
2586
|
-
},
|
|
2586
|
+
}, Zs = ({ disabled: e = !1, error: t = null, warning: n = null, tooltip: r = null, options: i, onChange: a = yn, onFocus: o = yn, onBlur: s = yn, right: c = !1, small: l = !1, tabIndex: d = 0, selectedOption: f, width: p = null, groupOrder: m, testId: h, isInTable: g = !1, clearable: _, placeholder: v, hasNonExistentValue: y, maxTooltipWidth: x }) => {
|
|
2587
2587
|
let C = u(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__ */ S("option", {
|
|
2588
2588
|
value: "unselected",
|
|
2589
2589
|
disabled: !_,
|
|
@@ -2599,20 +2599,20 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2599
2599
|
children: e.label
|
|
2600
2600
|
}, t))), D = (() => {
|
|
2601
2601
|
if (m) switch (m) {
|
|
2602
|
-
case H.FIRST: return
|
|
2603
|
-
case H.LAST: return
|
|
2604
|
-
default: return
|
|
2602
|
+
case H.FIRST: return Xs.groupOrderFirst;
|
|
2603
|
+
case H.LAST: return Xs.groupOrderLast;
|
|
2604
|
+
default: return Xs.groupOrderMiddle;
|
|
2605
2605
|
}
|
|
2606
2606
|
return "";
|
|
2607
2607
|
})();
|
|
2608
|
-
return /* @__PURE__ */ S(
|
|
2608
|
+
return /* @__PURE__ */ S(K, {
|
|
2609
2609
|
error: !!t,
|
|
2610
2610
|
warning: !!n,
|
|
2611
2611
|
text: r || t || n,
|
|
2612
|
-
enabled: r &&
|
|
2612
|
+
enabled: r && Y(r) || t && Y(t) || n && Y(n) || !1,
|
|
2613
2613
|
maxWidth: x,
|
|
2614
2614
|
children: /* @__PURE__ */ S("select", {
|
|
2615
|
-
className: b(
|
|
2615
|
+
className: b(Xs.select, T ? Xs.unSelected : "", c ? Xs.right : "", l ? Xs.small : "", g ? Xs.isInTable : "", D),
|
|
2616
2616
|
style: { width: p || "" },
|
|
2617
2617
|
onChange: (e) => {
|
|
2618
2618
|
let { value: t } = e.target, n;
|
|
@@ -2629,12 +2629,12 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2629
2629
|
children: E
|
|
2630
2630
|
})
|
|
2631
2631
|
});
|
|
2632
|
-
},
|
|
2632
|
+
}, Qs = () => {
|
|
2633
2633
|
let e = _(null);
|
|
2634
2634
|
return [e, () => {
|
|
2635
2635
|
e.current && e.current.focus();
|
|
2636
2636
|
}];
|
|
2637
|
-
},
|
|
2637
|
+
}, $s = () => {
|
|
2638
2638
|
let [e, t] = v(!1), n = _(!0);
|
|
2639
2639
|
return d(() => () => {
|
|
2640
2640
|
n.current = !1;
|
|
@@ -2645,12 +2645,12 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2645
2645
|
});
|
|
2646
2646
|
})();
|
|
2647
2647
|
}, []), e;
|
|
2648
|
-
},
|
|
2649
|
-
let [e, t] = v(
|
|
2648
|
+
}, ec = () => window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, tc = () => {
|
|
2649
|
+
let [e, t] = v(ec()), n = rn(() => t(ec()), 150);
|
|
2650
2650
|
return d(() => (window.addEventListener("resize", n), () => {
|
|
2651
2651
|
window.removeEventListener("resize", n);
|
|
2652
2652
|
}), []), e;
|
|
2653
|
-
},
|
|
2653
|
+
}, nc = {
|
|
2654
2654
|
layerContainer: "_layerContainer_1ksd5_1",
|
|
2655
2655
|
layer: "_layer_1ksd5_1",
|
|
2656
2656
|
small: "_small_1ksd5_44",
|
|
@@ -2666,25 +2666,25 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2666
2666
|
label: "_label_1ksd5_132",
|
|
2667
2667
|
icon: "_icon_1ksd5_139",
|
|
2668
2668
|
details: "_details_1ksd5_144"
|
|
2669
|
-
},
|
|
2669
|
+
}, rc = (e, t) => {
|
|
2670
2670
|
let n = document.createElement("canvas").getContext("2d");
|
|
2671
2671
|
return n ? (n.font = t, n.measureText(e).width) : 0;
|
|
2672
|
-
},
|
|
2673
|
-
let i =
|
|
2672
|
+
}, ic = "13px", ac = "12px", oc = "Roobert", sc = "sans-serif", cc = 12, lc = 8, uc = 30, dc = 24, fc = 5, pc = 3, mc = 2, hc = (e = !1, t = !1) => `${e ? ac : ic} ${t ? oc : sc}`, gc = (e = !1, t = !1) => (e ? lc : cc) + (e ? dc : uc) + (t ? 17 : 0), _c = (e, t, n, r) => {
|
|
2673
|
+
let i = hc(t, n), a = r ? rc(r, i) : 0;
|
|
2674
2674
|
return Math.ceil(e.reduce((e, n) => {
|
|
2675
2675
|
var r, a;
|
|
2676
|
-
let o = ((r = n == null || (a = n.actions) == null ? void 0 : a.length) == null ? 0 : r) * 24, s = n.icon ? parseInt(t ?
|
|
2676
|
+
let o = ((r = n == null || (a = n.actions) == null ? void 0 : a.length) == null ? 0 : r) * 24, s = n.icon ? parseInt(t ? ac : ic) + 7 : 0, c = rc(`${n.label} ${n.details || ""}`, i) + o + s;
|
|
2677
2677
|
return e = c > e ? c : e, e;
|
|
2678
|
-
}, a)) +
|
|
2679
|
-
},
|
|
2680
|
-
let r =
|
|
2681
|
-
return Math.ceil(i + ((t ?
|
|
2682
|
-
},
|
|
2678
|
+
}, a)) + gc(t, !0);
|
|
2679
|
+
}, vc = (e, t, n) => {
|
|
2680
|
+
let r = hc(!0, n), i = rc(e.label, r);
|
|
2681
|
+
return Math.ceil(i + ((t ? pc : fc) * 2 + 2 + mc));
|
|
2682
|
+
}, yc = ({ label: e }) => /* @__PURE__ */ S("div", {
|
|
2683
2683
|
onClick: (e) => e.stopPropagation(),
|
|
2684
|
-
className:
|
|
2684
|
+
className: nc.heading,
|
|
2685
2685
|
children: e
|
|
2686
|
-
}),
|
|
2687
|
-
className: b(
|
|
2686
|
+
}), bc = ({ details: e, label: t, icon: n, disabled: r = !1, selected: i = !1, focused: a = !1, onSelectOption: o, actions: s, closeLayer: c, testId: l }) => /* @__PURE__ */ C("div", {
|
|
2687
|
+
className: b(nc.option, r ? nc.disabled : "", i ? nc == null ? void 0 : nc.selected : "", a ? nc.focused : ""),
|
|
2688
2688
|
onClick: !r && o ? o : void 0,
|
|
2689
2689
|
onMouseDown: (e) => {
|
|
2690
2690
|
e.preventDefault();
|
|
@@ -2692,41 +2692,41 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2692
2692
|
"data-testid": l,
|
|
2693
2693
|
children: [
|
|
2694
2694
|
/* @__PURE__ */ S("div", {
|
|
2695
|
-
className:
|
|
2695
|
+
className: nc.optionContent,
|
|
2696
2696
|
children: /* @__PURE__ */ C("span", {
|
|
2697
|
-
className:
|
|
2697
|
+
className: nc.label,
|
|
2698
2698
|
title: String(t),
|
|
2699
2699
|
children: [t, n && /* @__PURE__ */ S("span", {
|
|
2700
|
-
className:
|
|
2700
|
+
className: nc.icon,
|
|
2701
2701
|
children: n
|
|
2702
2702
|
})]
|
|
2703
2703
|
})
|
|
2704
2704
|
}),
|
|
2705
2705
|
e && /* @__PURE__ */ S("div", {
|
|
2706
|
-
className: b(
|
|
2707
|
-
children: /* @__PURE__ */ S(
|
|
2706
|
+
className: b(nc.details),
|
|
2707
|
+
children: /* @__PURE__ */ S(Yo, {
|
|
2708
2708
|
faint: !0,
|
|
2709
2709
|
children: e
|
|
2710
2710
|
})
|
|
2711
2711
|
}),
|
|
2712
2712
|
!!(s != null && s.length) && /* @__PURE__ */ S("div", {
|
|
2713
|
-
className: b(
|
|
2714
|
-
children: /* @__PURE__ */ S(
|
|
2713
|
+
className: b(nc.actions),
|
|
2714
|
+
children: /* @__PURE__ */ S(fo, {
|
|
2715
2715
|
actions: s,
|
|
2716
2716
|
closeLayer: c
|
|
2717
2717
|
})
|
|
2718
2718
|
}),
|
|
2719
2719
|
/* @__PURE__ */ S("span", {
|
|
2720
|
-
className:
|
|
2720
|
+
className: nc.check,
|
|
2721
2721
|
children: i ? /* @__PURE__ */ S(G, { icon: U.CHECK }) : null
|
|
2722
2722
|
})
|
|
2723
2723
|
]
|
|
2724
|
-
}),
|
|
2724
|
+
}), xc = ({ section: e, selected: t, focused: n, onSelectOption: r, closeLayer: i }) => {
|
|
2725
2725
|
let a = u(W);
|
|
2726
2726
|
switch (e.type) {
|
|
2727
|
-
case
|
|
2728
|
-
case
|
|
2729
|
-
default: return /* @__PURE__ */ S(
|
|
2727
|
+
case Ga.HEADING: return /* @__PURE__ */ S(yc, { label: e.label });
|
|
2728
|
+
case Ga.OPTION:
|
|
2729
|
+
default: return /* @__PURE__ */ S(bc, {
|
|
2730
2730
|
closeLayer: i,
|
|
2731
2731
|
actions: e.actions,
|
|
2732
2732
|
label: e.label,
|
|
@@ -2739,19 +2739,19 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2739
2739
|
testId: e.testId
|
|
2740
2740
|
});
|
|
2741
2741
|
}
|
|
2742
|
-
},
|
|
2743
|
-
let n = e.findIndex((e) =>
|
|
2742
|
+
}, Sc = (e, t) => !e || e.type === Ga.HEADING ? !1 : Array.isArray(t) ? t.some((t) => t && t.value == e.value) : e.value == (t == null ? void 0 : t.value), Cc = (e, t) => {
|
|
2743
|
+
let n = e.findIndex((e) => Sc(e, t));
|
|
2744
2744
|
return n === -1 ? null : n;
|
|
2745
|
-
},
|
|
2745
|
+
}, wc = (e, t) => {
|
|
2746
2746
|
var n;
|
|
2747
|
-
return e.type ===
|
|
2748
|
-
},
|
|
2749
|
-
let l = _(null), u = o ? 24 : 30, f = u * 10, p = b(
|
|
2747
|
+
return e.type === Ga.HEADING ? `heading-${t}` : e.createAble ? `create-${t}` : `option-${String((n = e.value) == null ? t : n)}`;
|
|
2748
|
+
}, Tc = ({ listRef: e, sections: t, selectedOptions: n, onSelectOption: r, focusedOptionIndex: i, width: a, small: o, closeLayer: s, testId: c }) => {
|
|
2749
|
+
let l = _(null), u = o ? 24 : 30, f = u * 10, p = b(nc.layer, o && nc.small), m = t.length >= 100, g = h(() => t.map((e, t) => ({
|
|
2750
2750
|
...e,
|
|
2751
|
-
id:
|
|
2751
|
+
id: wc(e, t),
|
|
2752
2752
|
index: t,
|
|
2753
2753
|
focused: i === t,
|
|
2754
|
-
selected:
|
|
2754
|
+
selected: Sc(e, n)
|
|
2755
2755
|
})), [
|
|
2756
2756
|
t,
|
|
2757
2757
|
i,
|
|
@@ -2774,7 +2774,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2774
2774
|
u,
|
|
2775
2775
|
f
|
|
2776
2776
|
]), d(() => {
|
|
2777
|
-
let e =
|
|
2777
|
+
let e = Cc(t, n);
|
|
2778
2778
|
if (e === null) return;
|
|
2779
2779
|
let r = requestAnimationFrame(() => {
|
|
2780
2780
|
v(e);
|
|
@@ -2797,20 +2797,20 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2797
2797
|
items: g,
|
|
2798
2798
|
selectionMode: "none",
|
|
2799
2799
|
renderEmptyState: () => /* @__PURE__ */ S("div", {
|
|
2800
|
-
className:
|
|
2800
|
+
className: nc.message,
|
|
2801
2801
|
children: "No matches"
|
|
2802
2802
|
}),
|
|
2803
2803
|
"data-testid": c,
|
|
2804
2804
|
children: (e) => {
|
|
2805
2805
|
var t;
|
|
2806
|
-
let n = e.type ===
|
|
2806
|
+
let n = e.type === Ga.HEADING;
|
|
2807
2807
|
return /* @__PURE__ */ S(Mr, {
|
|
2808
2808
|
id: e.id,
|
|
2809
2809
|
textValue: `${String((t = e.label) == null ? "" : t)}${e.details ? String(e.details) : ""}`,
|
|
2810
2810
|
isDisabled: n || e.disabled,
|
|
2811
|
-
className:
|
|
2811
|
+
className: nc.listBoxItem,
|
|
2812
2812
|
style: { height: u },
|
|
2813
|
-
children: /* @__PURE__ */ S(
|
|
2813
|
+
children: /* @__PURE__ */ S(xc, {
|
|
2814
2814
|
closeLayer: s,
|
|
2815
2815
|
section: e,
|
|
2816
2816
|
selected: e.selected,
|
|
@@ -2825,7 +2825,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2825
2825
|
layoutOptions: { rowSize: u },
|
|
2826
2826
|
children: y
|
|
2827
2827
|
}) : y;
|
|
2828
|
-
},
|
|
2828
|
+
}, Ec = {
|
|
2829
2829
|
inputInTable: "_inputInTable_c2rg4_1",
|
|
2830
2830
|
inputHover: "_inputHover_c2rg4_13",
|
|
2831
2831
|
inputFocus: "_inputFocus_c2rg4_18",
|
|
@@ -2857,30 +2857,30 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2857
2857
|
groupOrderLast: "_groupOrderLast_c2rg4_307",
|
|
2858
2858
|
detailedLabel: "_detailedLabel_c2rg4_312"
|
|
2859
2859
|
}, Dc = ({ selectedOptions: e, small: t, width: n, testId: r }) => {
|
|
2860
|
-
let i =
|
|
2860
|
+
let i = $s(), [a, o] = v([]), [s, c] = v([]);
|
|
2861
2861
|
return d(() => {
|
|
2862
2862
|
let r = [], a = [], s = 0;
|
|
2863
2863
|
e.forEach((o, c) => {
|
|
2864
|
-
s +=
|
|
2864
|
+
s += vc(o, t, i), c === e.length - 1 && s < n || s < n - 24 ? r.push(o) : a.push(o);
|
|
2865
2865
|
}), o(r), c(a);
|
|
2866
2866
|
}, [
|
|
2867
2867
|
e,
|
|
2868
2868
|
i,
|
|
2869
2869
|
n
|
|
2870
2870
|
]), /* @__PURE__ */ C("div", {
|
|
2871
|
-
className:
|
|
2871
|
+
className: Ec.multiOptions,
|
|
2872
2872
|
"data-testid": r && `${r}-value`,
|
|
2873
2873
|
children: [a.filter((e) => e && e.label).map((e, t) => /* @__PURE__ */ S("span", {
|
|
2874
|
-
className:
|
|
2874
|
+
className: Ec.multiOption,
|
|
2875
2875
|
onClick: (e) => {
|
|
2876
2876
|
e.stopPropagation();
|
|
2877
2877
|
},
|
|
2878
2878
|
children: e.label
|
|
2879
|
-
}, t)), s.length > 0 && /* @__PURE__ */ S(
|
|
2879
|
+
}, t)), s.length > 0 && /* @__PURE__ */ S(K, {
|
|
2880
2880
|
text: s.map((e, t) => /* @__PURE__ */ S("div", { children: e.label }, t)),
|
|
2881
2881
|
display: "inline-flex",
|
|
2882
2882
|
children: /* @__PURE__ */ S("span", {
|
|
2883
|
-
className:
|
|
2883
|
+
className: Ec.multiOption,
|
|
2884
2884
|
children: a.length ? `+${s.length}` : `${s.length} items`
|
|
2885
2885
|
})
|
|
2886
2886
|
})]
|
|
@@ -2888,7 +2888,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2888
2888
|
}, Oc = ({ selectedOptions: e, searchable: t = !1, searchValue: n, onChange: r = yn, inputRef: i, error: a, placeholder: o = "Select...", small: s, testId: c }) => {
|
|
2889
2889
|
let l = _(null), u = Array.isArray(e), d = u ? e.length > 0 : !!e, f = n ? n.length + 1 : 1;
|
|
2890
2890
|
return /* @__PURE__ */ C("div", {
|
|
2891
|
-
className:
|
|
2891
|
+
className: Ec.triggerInputContainer,
|
|
2892
2892
|
ref: l,
|
|
2893
2893
|
children: [d ? u ? /* @__PURE__ */ S(Dc, {
|
|
2894
2894
|
selectedOptions: e,
|
|
@@ -2899,17 +2899,17 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2899
2899
|
})(),
|
|
2900
2900
|
testId: c
|
|
2901
2901
|
}) : /* @__PURE__ */ S("span", {
|
|
2902
|
-
className:
|
|
2902
|
+
className: Ec.selectedSingleValue,
|
|
2903
2903
|
"data-testid": c && `${c}-value`,
|
|
2904
2904
|
children: n != null && n.length ? "" : e == null ? void 0 : e.label
|
|
2905
2905
|
}) : /* @__PURE__ */ S("span", {
|
|
2906
|
-
className:
|
|
2906
|
+
className: Ec.placeHolder,
|
|
2907
2907
|
children: n != null && n.length ? "" : o
|
|
2908
2908
|
}), t ? /* @__PURE__ */ S("input", {
|
|
2909
2909
|
tabIndex: -1,
|
|
2910
2910
|
ref: i,
|
|
2911
2911
|
size: f,
|
|
2912
|
-
className:
|
|
2912
|
+
className: Ec.input,
|
|
2913
2913
|
value: n,
|
|
2914
2914
|
onChange: (e) => r(e.target.value),
|
|
2915
2915
|
"data-error": a || null,
|
|
@@ -2918,18 +2918,18 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2918
2918
|
});
|
|
2919
2919
|
}, kc = ({ selectedOptions: e, searchValue: t, searchable: n, clearable: r, onClickTrigger: i, element: a, error: o, warning: s, tooltip: c, small: l, isInTable: u, disabled: d, onChangeSearch: f, onClickClear: p, tabIndex: m, isOpen: h, triggerRef: g, clearAllIsFocused: _, onFocus: v, onBlur: y, groupOrder: w, maxTooltipWidth: T, placeholder: E, right: D, testId: O }) => {
|
|
2920
2920
|
var k;
|
|
2921
|
-
let [A, j] =
|
|
2921
|
+
let [A, j] = Qs(), M = Array.isArray(e) ? e.length > 0 && ((k = e[0]) == null ? void 0 : k.value) : e == null ? void 0 : e.value, N = r && M, P = (() => {
|
|
2922
2922
|
if (w) switch (w) {
|
|
2923
|
-
case H.FIRST: return
|
|
2924
|
-
case H.LAST: return
|
|
2925
|
-
default: return
|
|
2923
|
+
case H.FIRST: return Ec.groupOrderFirst;
|
|
2924
|
+
case H.LAST: return Ec.groupOrderLast;
|
|
2925
|
+
default: return Ec.groupOrderMiddle;
|
|
2926
2926
|
}
|
|
2927
2927
|
return "";
|
|
2928
2928
|
})(), F = !Array.isArray(e) && e != null && e.details ? {
|
|
2929
2929
|
...e,
|
|
2930
2930
|
label: /* @__PURE__ */ C("div", {
|
|
2931
|
-
className: b(
|
|
2932
|
-
children: [/* @__PURE__ */ S(
|
|
2931
|
+
className: b(Ec.detailedLabel),
|
|
2932
|
+
children: [/* @__PURE__ */ S(Yo, { children: e.label }), /* @__PURE__ */ S(Yo, {
|
|
2933
2933
|
muted: !0,
|
|
2934
2934
|
children: e.details
|
|
2935
2935
|
})]
|
|
@@ -2937,7 +2937,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2937
2937
|
} : e, I = /* @__PURE__ */ C(x, { children: [a, /* @__PURE__ */ C("div", {
|
|
2938
2938
|
ref: g,
|
|
2939
2939
|
tabIndex: m,
|
|
2940
|
-
className: b(
|
|
2940
|
+
className: b(Ec.trigger, h ? Ec.isOpen : "", d ? Ec.disabled : "", l ? Ec.small : "", u ? Ec.isInTable : "", D ? Ec.right : "", P),
|
|
2941
2941
|
onClick: (e) => {
|
|
2942
2942
|
e.stopPropagation(), i(e), requestAnimationFrame(() => {
|
|
2943
2943
|
typeof j == "function" && j();
|
|
@@ -2961,25 +2961,25 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2961
2961
|
small: l,
|
|
2962
2962
|
testId: O
|
|
2963
2963
|
}), /* @__PURE__ */ S("span", {
|
|
2964
|
-
className:
|
|
2964
|
+
className: Ec.icons,
|
|
2965
2965
|
children: N ? /* @__PURE__ */ S("span", {
|
|
2966
|
-
className: b(
|
|
2966
|
+
className: b(Ec.clearAll, _ ? Ec.focus : ""),
|
|
2967
2967
|
onClick: (e) => {
|
|
2968
2968
|
e.stopPropagation(), p && p(e);
|
|
2969
2969
|
},
|
|
2970
2970
|
"data-testid": O && `${O}-clear`,
|
|
2971
2971
|
children: /* @__PURE__ */ S(G, { icon: U.CLOSE })
|
|
2972
2972
|
}) : /* @__PURE__ */ S("span", {
|
|
2973
|
-
className: b(
|
|
2973
|
+
className: b(Ec.iconOpen),
|
|
2974
2974
|
children: /* @__PURE__ */ S(G, { icon: "chevron down" })
|
|
2975
2975
|
})
|
|
2976
2976
|
})]
|
|
2977
2977
|
})] });
|
|
2978
|
-
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(
|
|
2978
|
+
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(K, {
|
|
2979
2979
|
error: !!o,
|
|
2980
2980
|
warning: !!s,
|
|
2981
2981
|
text: c || o || s,
|
|
2982
|
-
enabled: c &&
|
|
2982
|
+
enabled: c && Y(c) || o && Y(o) || s && Y(s) || !1,
|
|
2983
2983
|
maxWidth: T,
|
|
2984
2984
|
children: I
|
|
2985
2985
|
}) });
|
|
@@ -2991,7 +2991,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
2991
2991
|
currentOption: !1,
|
|
2992
2992
|
clearAll: !1
|
|
2993
2993
|
}, Mc = (e) => e === null ? 0 : e + 1, Nc = (e, t) => {
|
|
2994
|
-
let n = ["none", ...e.map((e, t) => e.type ===
|
|
2994
|
+
let n = ["none", ...e.map((e, t) => e.type === Ga.HEADING ? null : t).filter((e) => e !== null)], r = Mc(t);
|
|
2995
2995
|
return {
|
|
2996
2996
|
options: n,
|
|
2997
2997
|
currentIndex: r,
|
|
@@ -3108,10 +3108,10 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3108
3108
|
options: n
|
|
3109
3109
|
});
|
|
3110
3110
|
}
|
|
3111
|
-
}, A = l(() => u ? u === "auto" ?
|
|
3111
|
+
}, A = l(() => u ? u === "auto" ? _c(n, f, p, h) : u : "100%", [n, p]), j = l((e) => {
|
|
3112
3112
|
var t;
|
|
3113
3113
|
let r = (t = e == null ? void 0 : e.getBoundingClientRect().width) == null ? 0 : t;
|
|
3114
|
-
return x ? Math.max(
|
|
3114
|
+
return x ? Math.max(_c(n, f, p, h), r) : r;
|
|
3115
3115
|
}, [
|
|
3116
3116
|
n,
|
|
3117
3117
|
p,
|
|
@@ -3244,7 +3244,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3244
3244
|
}
|
|
3245
3245
|
};
|
|
3246
3246
|
}, Hc = (e) => {
|
|
3247
|
-
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onCreate: c = null, placeholder: d = "", small: f = !1, tabIndex: p = 0, onFocus: m = () => {}, onBlur: h = () => {}, searchable: v = !0, clearable: y = !1, maxTooltipWidth: b, closeOnOptionActionClick: x, isInTable: w = !1, groupOrder: T, firstSelectedOptionIndex: E = 0, right: D = !1, testId: O = void 0 } = e, k = u(W), A = c !== null, j = _(null), M = _(null), N = _(null), P =
|
|
3247
|
+
let { multi: t = !1, disabled: n = !1, error: r = null, warning: i = null, tooltip: a = null, options: o, selectedOptions: s, onCreate: c = null, placeholder: d = "", small: f = !1, tabIndex: p = 0, onFocus: m = () => {}, onBlur: h = () => {}, searchable: v = !0, clearable: y = !1, maxTooltipWidth: b, closeOnOptionActionClick: x, isInTable: w = !1, groupOrder: T, firstSelectedOptionIndex: E = 0, right: D = !1, testId: O = void 0 } = e, k = u(W), A = c !== null, j = _(null), M = _(null), N = _(null), P = $s(), F = l(() => {
|
|
3248
3248
|
var e;
|
|
3249
3249
|
(e = M.current) == null || e.focus();
|
|
3250
3250
|
}, []), [I, L] = g(Rc, {
|
|
@@ -3300,8 +3300,8 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3300
3300
|
placeholder: d,
|
|
3301
3301
|
right: D,
|
|
3302
3302
|
testId: O
|
|
3303
|
-
}), /* @__PURE__ */ S(
|
|
3304
|
-
className:
|
|
3303
|
+
}), /* @__PURE__ */ S(za, {
|
|
3304
|
+
className: nc.layerContainer,
|
|
3305
3305
|
placement: "bottom-start",
|
|
3306
3306
|
portalTriggerRef: M,
|
|
3307
3307
|
triggerRef: M,
|
|
@@ -3312,7 +3312,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3312
3312
|
disableFocusManagement: !0,
|
|
3313
3313
|
children: /* @__PURE__ */ S("div", {
|
|
3314
3314
|
ref: N,
|
|
3315
|
-
children: /* @__PURE__ */ S(
|
|
3315
|
+
children: /* @__PURE__ */ S(Tc, {
|
|
3316
3316
|
listRef: j,
|
|
3317
3317
|
sections: I.visibleOptions,
|
|
3318
3318
|
selectedOptions: s,
|
|
@@ -3337,13 +3337,13 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3337
3337
|
if (typeof t == "object" && t && t.hasOwnProperty("label") && t.hasOwnProperty("value")) return t;
|
|
3338
3338
|
{
|
|
3339
3339
|
let n = typeof t == "object" && t && t.hasOwnProperty("value") ? t.value : t;
|
|
3340
|
-
return (Array.isArray(e) ? e.filter((e) => e.type !==
|
|
3340
|
+
return (Array.isArray(e) ? e.filter((e) => e.type !== Ga.HEADING).find((e) => e.value == n) : void 0) || (Wc(n) ? void 0 : {
|
|
3341
3341
|
value: n,
|
|
3342
3342
|
label: n
|
|
3343
3343
|
});
|
|
3344
3344
|
}
|
|
3345
3345
|
}, Yc = (e, t) => Kc(t) ? t.map((t) => Jc(e, t)).filter((e) => e !== void 0) : t === null ? void 0 : Jc(e, t), Xc = (e) => Array.isArray(e) && e.some((e) => typeof e == "string" || typeof e == "number"), Zc = (e, t) => {
|
|
3346
|
-
let n = t instanceof Array ? t.length ? t[0] : null : t, r = n == null ? null : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? n : n.value, i = e.filter((e) => e.type !==
|
|
3346
|
+
let n = t instanceof Array ? t.length ? t[0] : null : t, r = n == null ? null : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? n : n.value, i = e.filter((e) => e.type !== Ga.HEADING).findIndex((e) => typeof e == "string" || typeof e == "number" ? e == r : e.value == r);
|
|
3347
3347
|
return i === -1 ? null : i;
|
|
3348
3348
|
}, Qc = (e, t) => {
|
|
3349
3349
|
let n = Kc(t) ? t : Wc(t) ? [] : [t];
|
|
@@ -3377,7 +3377,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3377
3377
|
a(r);
|
|
3378
3378
|
}
|
|
3379
3379
|
};
|
|
3380
|
-
return b ? /* @__PURE__ */ S(
|
|
3380
|
+
return b ? /* @__PURE__ */ S(Zs, {
|
|
3381
3381
|
...p,
|
|
3382
3382
|
options: h,
|
|
3383
3383
|
selectedOption: g,
|
|
@@ -3457,7 +3457,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3457
3457
|
value: a.value
|
|
3458
3458
|
})
|
|
3459
3459
|
}),
|
|
3460
|
-
/* @__PURE__ */ S(
|
|
3460
|
+
/* @__PURE__ */ S(q, {
|
|
3461
3461
|
small: r,
|
|
3462
3462
|
round: !0,
|
|
3463
3463
|
basic: !0,
|
|
@@ -3465,7 +3465,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3465
3465
|
onClick: () => m("1"),
|
|
3466
3466
|
disabled: c || n === 1
|
|
3467
3467
|
}),
|
|
3468
|
-
/* @__PURE__ */ S(
|
|
3468
|
+
/* @__PURE__ */ S(q, {
|
|
3469
3469
|
small: r,
|
|
3470
3470
|
round: !0,
|
|
3471
3471
|
basic: !0,
|
|
@@ -3473,10 +3473,10 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3473
3473
|
onClick: () => m(String(Number(n) - 1)),
|
|
3474
3474
|
disabled: c || n === 1
|
|
3475
3475
|
}),
|
|
3476
|
-
/* @__PURE__ */ C(
|
|
3476
|
+
/* @__PURE__ */ C(ps, {
|
|
3477
3477
|
small: r,
|
|
3478
3478
|
width: "auto",
|
|
3479
|
-
children: [/* @__PURE__ */ S(
|
|
3479
|
+
children: [/* @__PURE__ */ S(hs, {
|
|
3480
3480
|
right: !0,
|
|
3481
3481
|
value: u,
|
|
3482
3482
|
placeholder: String(n),
|
|
@@ -3486,7 +3486,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3486
3486
|
error: p
|
|
3487
3487
|
}), /* @__PURE__ */ C(ol, { children: ["of ", l] })]
|
|
3488
3488
|
}),
|
|
3489
|
-
/* @__PURE__ */ S(
|
|
3489
|
+
/* @__PURE__ */ S(q, {
|
|
3490
3490
|
small: r,
|
|
3491
3491
|
round: !0,
|
|
3492
3492
|
basic: !0,
|
|
@@ -3494,7 +3494,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3494
3494
|
onClick: () => m(String(Number(n) + 1)),
|
|
3495
3495
|
disabled: c || n === l
|
|
3496
3496
|
}),
|
|
3497
|
-
/* @__PURE__ */ S(
|
|
3497
|
+
/* @__PURE__ */ S(q, {
|
|
3498
3498
|
small: r,
|
|
3499
3499
|
round: !0,
|
|
3500
3500
|
basic: !0,
|
|
@@ -3515,14 +3515,14 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3515
3515
|
return !1;
|
|
3516
3516
|
};
|
|
3517
3517
|
return i || a || o() ? /* @__PURE__ */ C("div", {
|
|
3518
|
-
className:
|
|
3518
|
+
className: Ys.footer,
|
|
3519
3519
|
"data-testid": `${r == null ? "pagination" : r}-footer`,
|
|
3520
3520
|
children: [a ? /* @__PURE__ */ S("div", {
|
|
3521
|
-
className:
|
|
3521
|
+
className: Ys.section,
|
|
3522
3522
|
children: /* @__PURE__ */ S("div", { children: n })
|
|
3523
3523
|
}) : null, i || o() ? /* @__PURE__ */ C("div", {
|
|
3524
|
-
className:
|
|
3525
|
-
children: [e && o() ? /* @__PURE__ */ S(sl, { pagination: e }) : /* @__PURE__ */ S("div", {}), i && /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(
|
|
3524
|
+
className: Ys.section,
|
|
3525
|
+
children: [e && o() ? /* @__PURE__ */ S(sl, { pagination: e }) : /* @__PURE__ */ S("div", {}), i && /* @__PURE__ */ S("div", { children: /* @__PURE__ */ S(fo, { actions: t }) })]
|
|
3526
3526
|
}) : null]
|
|
3527
3527
|
}) : null;
|
|
3528
3528
|
}, ll = (e) => {
|
|
@@ -3595,7 +3595,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3595
3595
|
popover: "_popover_g4jsi_211",
|
|
3596
3596
|
disabledPointerEvents: "_disabledPointerEvents_g4jsi_214",
|
|
3597
3597
|
standaloneCheckbox: "_standaloneCheckbox_g4jsi_217"
|
|
3598
|
-
}, _l = ({ cell: e, columnAlignment: t, testId: n, type: r }) => /* @__PURE__ */ S(
|
|
3598
|
+
}, _l = ({ cell: e, columnAlignment: t, testId: n, type: r }) => /* @__PURE__ */ S(hs, {
|
|
3599
3599
|
name: e.name,
|
|
3600
3600
|
value: e.value,
|
|
3601
3601
|
onChange: (t) => {
|
|
@@ -3676,7 +3676,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3676
3676
|
}, te = (e) => {
|
|
3677
3677
|
F(!1), yl(M) && N(sr(M)), u(e);
|
|
3678
3678
|
}, ne = T && !P && L ? E ? Er(E(M)) : ((e) => x ? Sr(e, 2) : yr(e, 4))(s) : M;
|
|
3679
|
-
return /* @__PURE__ */ S(
|
|
3679
|
+
return /* @__PURE__ */ S(hs, {
|
|
3680
3680
|
type: "text",
|
|
3681
3681
|
name: I,
|
|
3682
3682
|
testId: m,
|
|
@@ -3773,10 +3773,10 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3773
3773
|
testId: n
|
|
3774
3774
|
}) : null
|
|
3775
3775
|
}), Tl = ({ cell: e, testId: t }) => {
|
|
3776
|
-
let n = u(W), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, s = (e) =>
|
|
3776
|
+
let n = u(W), { error: r, warning: i, tooltip: a, maxTooltipWidth: o } = e, s = (e) => Y(e);
|
|
3777
3777
|
return /* @__PURE__ */ S("div", {
|
|
3778
3778
|
className: X.inputWrapper,
|
|
3779
|
-
children: /* @__PURE__ */ S(
|
|
3779
|
+
children: /* @__PURE__ */ S(K, {
|
|
3780
3780
|
error: !!r,
|
|
3781
3781
|
warning: !!i,
|
|
3782
3782
|
text: a || r || i,
|
|
@@ -3800,10 +3800,10 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3800
3800
|
});
|
|
3801
3801
|
}, El = ({ cell: e, testId: t }) => /* @__PURE__ */ S("div", {
|
|
3802
3802
|
className: e.label ? "" : X.standaloneCheckbox,
|
|
3803
|
-
children: /* @__PURE__ */ S(
|
|
3803
|
+
children: /* @__PURE__ */ S(K, {
|
|
3804
3804
|
text: e.tooltip,
|
|
3805
3805
|
enabled: !!e.tooltip,
|
|
3806
|
-
children: /* @__PURE__ */ S(
|
|
3806
|
+
children: /* @__PURE__ */ S(ha, {
|
|
3807
3807
|
label: e.label,
|
|
3808
3808
|
checked: e.checked,
|
|
3809
3809
|
isInTable: !0,
|
|
@@ -3854,7 +3854,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3854
3854
|
N(e), P(e);
|
|
3855
3855
|
}, I = () => /* @__PURE__ */ S("div", {
|
|
3856
3856
|
className: Dl.button,
|
|
3857
|
-
children: /* @__PURE__ */ S(
|
|
3857
|
+
children: /* @__PURE__ */ S(q, {
|
|
3858
3858
|
basic: !0,
|
|
3859
3859
|
small: !0,
|
|
3860
3860
|
round: !0,
|
|
@@ -3868,7 +3868,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3868
3868
|
})
|
|
3869
3869
|
}), L = () => /* @__PURE__ */ S("div", {
|
|
3870
3870
|
className: Dl.button,
|
|
3871
|
-
children: /* @__PURE__ */ S(
|
|
3871
|
+
children: /* @__PURE__ */ S(q, {
|
|
3872
3872
|
basic: !0,
|
|
3873
3873
|
small: !0,
|
|
3874
3874
|
round: !0,
|
|
@@ -3925,7 +3925,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3925
3925
|
onPointerDown: (e) => e.stopPropagation(),
|
|
3926
3926
|
style: a,
|
|
3927
3927
|
type: "button",
|
|
3928
|
-
children: /* @__PURE__ */ S(
|
|
3928
|
+
children: /* @__PURE__ */ S(K, {
|
|
3929
3929
|
text: /* @__PURE__ */ C(x, { children: [
|
|
3930
3930
|
t,
|
|
3931
3931
|
t ? ": " : "",
|
|
@@ -3947,7 +3947,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3947
3947
|
onPointerDown: () => k(r),
|
|
3948
3948
|
onPointerUp: () => k(null),
|
|
3949
3949
|
style: z(n),
|
|
3950
|
-
children: f && O === r && /* @__PURE__ */ S(
|
|
3950
|
+
children: f && O === r && /* @__PURE__ */ S(K, {
|
|
3951
3951
|
display: "block",
|
|
3952
3952
|
text: p(kl(j, g)),
|
|
3953
3953
|
forceOpen: !0,
|
|
@@ -3988,19 +3988,19 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
3988
3988
|
let { tooltip: t, icon: n } = e;
|
|
3989
3989
|
return /* @__PURE__ */ S("div", {
|
|
3990
3990
|
className: X.iconCellWrapper,
|
|
3991
|
-
children: /* @__PURE__ */ S(
|
|
3991
|
+
children: /* @__PURE__ */ S(K, {
|
|
3992
3992
|
text: t,
|
|
3993
|
-
enabled: !!t &&
|
|
3993
|
+
enabled: !!t && Y(t),
|
|
3994
3994
|
display: "flex",
|
|
3995
3995
|
placement: "top-center",
|
|
3996
3996
|
children: /* @__PURE__ */ S(G, { icon: n })
|
|
3997
3997
|
})
|
|
3998
3998
|
});
|
|
3999
|
-
}, Pl = ({ cell: e }) => /* @__PURE__ */ S(
|
|
3999
|
+
}, Pl = ({ cell: e }) => /* @__PURE__ */ S(fo, { actions: e.actions }), Fl = ({ cell: e }) => {
|
|
4000
4000
|
let { helpIcon: t } = e;
|
|
4001
4001
|
return t ? /* @__PURE__ */ S("div", {
|
|
4002
4002
|
className: X.icon,
|
|
4003
|
-
children: /* @__PURE__ */ S(
|
|
4003
|
+
children: /* @__PURE__ */ S(ma, {
|
|
4004
4004
|
onClick: t.onClick,
|
|
4005
4005
|
text: t.tooltip
|
|
4006
4006
|
})
|
|
@@ -4009,7 +4009,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4009
4009
|
let { libraryIcon: t } = e;
|
|
4010
4010
|
return t ? /* @__PURE__ */ S("div", {
|
|
4011
4011
|
className: X.icon,
|
|
4012
|
-
children: /* @__PURE__ */ S(
|
|
4012
|
+
children: /* @__PURE__ */ S(ma, {
|
|
4013
4013
|
onClick: t.onClick,
|
|
4014
4014
|
text: t.tooltip,
|
|
4015
4015
|
icon: U.LIBRARY
|
|
@@ -4019,13 +4019,13 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4019
4019
|
let { hasSort: t, sort: n, sortPriority: r } = e;
|
|
4020
4020
|
return t ? /* @__PURE__ */ C("span", {
|
|
4021
4021
|
className: X.sortingCellIcon,
|
|
4022
|
-
children: [n === "down" ? /* @__PURE__ */ S(
|
|
4022
|
+
children: [n === "down" ? /* @__PURE__ */ S(Yo, {
|
|
4023
4023
|
link: !0,
|
|
4024
4024
|
children: /* @__PURE__ */ S(G, { icon: U.SORT_ASCENDING })
|
|
4025
|
-
}) : n === "up" ? /* @__PURE__ */ S(
|
|
4025
|
+
}) : n === "up" ? /* @__PURE__ */ S(Yo, {
|
|
4026
4026
|
link: !0,
|
|
4027
4027
|
children: /* @__PURE__ */ S(G, { icon: U.SORT_DESCENDING })
|
|
4028
|
-
}) : /* @__PURE__ */ S(
|
|
4028
|
+
}) : /* @__PURE__ */ S(Yo, {
|
|
4029
4029
|
faint: !0,
|
|
4030
4030
|
children: /* @__PURE__ */ S(G, { icon: U.SORT_DESCENDING })
|
|
4031
4031
|
}), r && n ? /* @__PURE__ */ S("sup", { children: r }) : null]
|
|
@@ -4045,11 +4045,11 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4045
4045
|
});
|
|
4046
4046
|
return /* @__PURE__ */ S("div", {
|
|
4047
4047
|
className: X.inputWrapper,
|
|
4048
|
-
children: /* @__PURE__ */ S(
|
|
4048
|
+
children: /* @__PURE__ */ S(K, {
|
|
4049
4049
|
error: !!r,
|
|
4050
4050
|
warning: !!i,
|
|
4051
4051
|
text: a || r || i,
|
|
4052
|
-
enabled: a &&
|
|
4052
|
+
enabled: a && Y(a) || r && Y(r) || i && Y(i) || !1,
|
|
4053
4053
|
maxWidth: o,
|
|
4054
4054
|
display: "block",
|
|
4055
4055
|
children: u
|
|
@@ -4057,7 +4057,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4057
4057
|
});
|
|
4058
4058
|
}, zl = ({ cell: e, testId: t }) => {
|
|
4059
4059
|
let { content: n, fullWidth: r, closeOnOutsideClick: i, disabled: a } = e;
|
|
4060
|
-
return /* @__PURE__ */ S(
|
|
4060
|
+
return /* @__PURE__ */ S(So, {
|
|
4061
4061
|
content: n,
|
|
4062
4062
|
fullWidth: r,
|
|
4063
4063
|
closeOnOutsideClick: i,
|
|
@@ -4105,7 +4105,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4105
4105
|
style: { textTransform: f },
|
|
4106
4106
|
children: t
|
|
4107
4107
|
})]
|
|
4108
|
-
}), g && /* @__PURE__ */ S(
|
|
4108
|
+
}), g && /* @__PURE__ */ S(ma, {
|
|
4109
4109
|
text: l,
|
|
4110
4110
|
onClick: d
|
|
4111
4111
|
})]
|
|
@@ -4336,7 +4336,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4336
4336
|
}), !!d && qr(/* @__PURE__ */ S(Yr, {
|
|
4337
4337
|
dropAnimation: null,
|
|
4338
4338
|
children: /* @__PURE__ */ S("table", {
|
|
4339
|
-
className: b(
|
|
4339
|
+
className: b(Ks.table, Ks.dragOverlay),
|
|
4340
4340
|
children: /* @__PURE__ */ S("tbody", { children: /* @__PURE__ */ S(Yl, {
|
|
4341
4341
|
rowIndex: Number(d),
|
|
4342
4342
|
row: l[Number(d)],
|
|
@@ -4374,7 +4374,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4374
4374
|
});
|
|
4375
4375
|
return l && (d.shouldAdjustScrollPositionOnItemSizeChange = () => !1), /* @__PURE__ */ S("div", {
|
|
4376
4376
|
id: "scrollWrapper",
|
|
4377
|
-
className: b(
|
|
4377
|
+
className: b(Ks.scroll, Ks.virtualScroll),
|
|
4378
4378
|
ref: r,
|
|
4379
4379
|
children: t({
|
|
4380
4380
|
virtualizer: d,
|
|
@@ -4421,7 +4421,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4421
4421
|
})] })
|
|
4422
4422
|
}) : /* @__PURE__ */ C("div", {
|
|
4423
4423
|
id: "scrollWrapper",
|
|
4424
|
-
className:
|
|
4424
|
+
className: Ks.scroll,
|
|
4425
4425
|
children: [/* @__PURE__ */ S(eu, {
|
|
4426
4426
|
isVirtualized: !1,
|
|
4427
4427
|
activeIndex: a,
|
|
@@ -4452,7 +4452,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4452
4452
|
}, R = I ? p.concat(L) : p, z = {
|
|
4453
4453
|
...l,
|
|
4454
4454
|
rows: R
|
|
4455
|
-
}, B = b(
|
|
4455
|
+
}, B = b(Ks.wrapper, D ? Ks.bordered : "");
|
|
4456
4456
|
return /* @__PURE__ */ C("div", {
|
|
4457
4457
|
className: B,
|
|
4458
4458
|
style: {
|
|
@@ -4461,7 +4461,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4461
4461
|
display: k === "auto" ? "inline-flex" : "flex"
|
|
4462
4462
|
},
|
|
4463
4463
|
children: [
|
|
4464
|
-
/* @__PURE__ */ S(
|
|
4464
|
+
/* @__PURE__ */ S(Js, {
|
|
4465
4465
|
actions: m,
|
|
4466
4466
|
actionsRight: h,
|
|
4467
4467
|
name: f,
|
|
@@ -4480,7 +4480,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4480
4480
|
children: ({ dropDisabled: e }) => /* @__PURE__ */ S(tu, {
|
|
4481
4481
|
table: z,
|
|
4482
4482
|
children: ({ virtualizer: t, tableStyle: n }) => /* @__PURE__ */ C("table", {
|
|
4483
|
-
className: b(
|
|
4483
|
+
className: b(Ks.table, y ? Ks.striped : ""),
|
|
4484
4484
|
"data-testid": x,
|
|
4485
4485
|
style: n,
|
|
4486
4486
|
children: [/* @__PURE__ */ S("thead", { children: j.map((e, t) => /* @__PURE__ */ S(Yl, {
|
|
@@ -4745,7 +4745,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4745
4745
|
children: r.map((e, t) => /* @__PURE__ */ S("li", { children: e }, t))
|
|
4746
4746
|
})
|
|
4747
4747
|
};
|
|
4748
|
-
}, du = ({ errors: e, t }) => e.length ? /* @__PURE__ */ S(
|
|
4748
|
+
}, du = ({ errors: e, t }) => e.length ? /* @__PURE__ */ S(Gs, { message: uu({
|
|
4749
4749
|
errors: e,
|
|
4750
4750
|
t
|
|
4751
4751
|
}) }) : null, fu = {
|
|
@@ -4789,7 +4789,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
4789
4789
|
}),
|
|
4790
4790
|
n !== "" && /* @__PURE__ */ S("div", {
|
|
4791
4791
|
className: fu.text,
|
|
4792
|
-
children: /* @__PURE__ */ S(
|
|
4792
|
+
children: /* @__PURE__ */ S(Yo, {
|
|
4793
4793
|
faint: !0,
|
|
4794
4794
|
children: n
|
|
4795
4795
|
})
|
|
@@ -5042,15 +5042,15 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5042
5042
|
}
|
|
5043
5043
|
return e.filter((e, t) => l.has(t));
|
|
5044
5044
|
}, Xu = ({ id: e, message: t = {
|
|
5045
|
-
type:
|
|
5045
|
+
type: zs.INFO,
|
|
5046
5046
|
content: ""
|
|
5047
5047
|
}, autoClose: n = 6e3, onClose: r }) => {
|
|
5048
|
-
let { type: i =
|
|
5048
|
+
let { type: i = zs.INFO } = t == null ? {} : t, a = ({ closeToast: t }) => /* @__PURE__ */ S(Vs, {
|
|
5049
5049
|
type: i,
|
|
5050
5050
|
onClose: t,
|
|
5051
5051
|
isInToast: !0,
|
|
5052
5052
|
testId: e === void 0 ? void 0 : e.toString() + "-dismiss"
|
|
5053
|
-
}), o = /* @__PURE__ */ S(
|
|
5053
|
+
}), o = /* @__PURE__ */ S(Gs, { message: {
|
|
5054
5054
|
...t,
|
|
5055
5055
|
visible: !0,
|
|
5056
5056
|
width: "100%",
|
|
@@ -5058,9 +5058,9 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5058
5058
|
withDismiss: !1
|
|
5059
5059
|
} }), s = (() => {
|
|
5060
5060
|
switch (t == null ? void 0 : t.type) {
|
|
5061
|
-
case
|
|
5062
|
-
case
|
|
5063
|
-
case
|
|
5061
|
+
case zs.SUCCESS: return "success";
|
|
5062
|
+
case zs.WARNING: return "warning";
|
|
5063
|
+
case zs.ERROR: return "error";
|
|
5064
5064
|
default: return "info";
|
|
5065
5065
|
}
|
|
5066
5066
|
})();
|
|
@@ -5128,7 +5128,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5128
5128
|
style: { textTransform: f },
|
|
5129
5129
|
children: t
|
|
5130
5130
|
})]
|
|
5131
|
-
}), m && /* @__PURE__ */ S(
|
|
5131
|
+
}), m && /* @__PURE__ */ S(ma, {
|
|
5132
5132
|
text: l,
|
|
5133
5133
|
onClick: d
|
|
5134
5134
|
})]
|
|
@@ -5144,7 +5144,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5144
5144
|
errors: []
|
|
5145
5145
|
}
|
|
5146
5146
|
});
|
|
5147
|
-
|
|
5147
|
+
Ss("v", async () => {
|
|
5148
5148
|
let e = await a({ showSuccessToast: !1 });
|
|
5149
5149
|
e && A(e);
|
|
5150
5150
|
}, [a], {
|
|
@@ -5196,9 +5196,9 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5196
5196
|
} }, f);
|
|
5197
5197
|
}, L = T && T(M), { isValid: R, errors: z } = M, B = z.length, ee = j === "", te = hu(j), ne = mu(j), V = /* @__PURE__ */ C(x, { children: [
|
|
5198
5198
|
/* @__PURE__ */ C("div", {
|
|
5199
|
-
className:
|
|
5199
|
+
className: Ls.headerContainer,
|
|
5200
5200
|
children: [
|
|
5201
|
-
/* @__PURE__ */ S(
|
|
5201
|
+
/* @__PURE__ */ S(K, {
|
|
5202
5202
|
text: u("downsampleTooltip"),
|
|
5203
5203
|
children: /* @__PURE__ */ S(ed, {
|
|
5204
5204
|
label: u("downsampled"),
|
|
@@ -5207,18 +5207,18 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5207
5207
|
disabled: ee || !R
|
|
5208
5208
|
})
|
|
5209
5209
|
}),
|
|
5210
|
-
/* @__PURE__ */ S(
|
|
5210
|
+
/* @__PURE__ */ S(K, {
|
|
5211
5211
|
text: u("deletePastedContent"),
|
|
5212
|
-
children: /* @__PURE__ */ S(
|
|
5212
|
+
children: /* @__PURE__ */ S(q, {
|
|
5213
5213
|
name: "clearReview",
|
|
5214
5214
|
icon: "delete",
|
|
5215
5215
|
small: !0,
|
|
5216
5216
|
onClick: P
|
|
5217
5217
|
})
|
|
5218
5218
|
}),
|
|
5219
|
-
/* @__PURE__ */ S(
|
|
5219
|
+
/* @__PURE__ */ S(K, {
|
|
5220
5220
|
text: u("openHelp"),
|
|
5221
|
-
children: /* @__PURE__ */ S(
|
|
5221
|
+
children: /* @__PURE__ */ S(q, {
|
|
5222
5222
|
name: "help",
|
|
5223
5223
|
icon: "help",
|
|
5224
5224
|
small: !0,
|
|
@@ -5227,30 +5227,30 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5227
5227
|
})
|
|
5228
5228
|
]
|
|
5229
5229
|
}),
|
|
5230
|
-
h && /* @__PURE__ */ S(
|
|
5230
|
+
h && /* @__PURE__ */ S(Fs, {
|
|
5231
5231
|
validationRules: o,
|
|
5232
5232
|
t: u
|
|
5233
5233
|
}),
|
|
5234
5234
|
ee ? /* @__PURE__ */ S("div", {
|
|
5235
|
-
className:
|
|
5235
|
+
className: Ls.resultContainer,
|
|
5236
5236
|
children: /* @__PURE__ */ S(pu, {
|
|
5237
5237
|
text: null,
|
|
5238
5238
|
children: /* @__PURE__ */ C("div", {
|
|
5239
|
-
className:
|
|
5239
|
+
className: Ls.emptyState,
|
|
5240
5240
|
children: [
|
|
5241
5241
|
/* @__PURE__ */ S("p", {
|
|
5242
|
-
className:
|
|
5242
|
+
className: Ls.emptyMainText,
|
|
5243
5243
|
children: u("noDataPastedYet")
|
|
5244
5244
|
}),
|
|
5245
5245
|
/* @__PURE__ */ C("p", {
|
|
5246
|
-
className:
|
|
5246
|
+
className: Ls.emptyHint,
|
|
5247
5247
|
children: [
|
|
5248
5248
|
"(",
|
|
5249
5249
|
u("pasteShortcutHint"),
|
|
5250
5250
|
")"
|
|
5251
5251
|
]
|
|
5252
5252
|
}),
|
|
5253
|
-
/* @__PURE__ */ S(
|
|
5253
|
+
/* @__PURE__ */ S(q, {
|
|
5254
5254
|
name: "paste",
|
|
5255
5255
|
icon: "paste",
|
|
5256
5256
|
label: u("pasteFromClipboard"),
|
|
@@ -5267,24 +5267,24 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5267
5267
|
})
|
|
5268
5268
|
})
|
|
5269
5269
|
}) : /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ C("div", {
|
|
5270
|
-
className:
|
|
5270
|
+
className: Ls.messagesContainer,
|
|
5271
5271
|
children: [
|
|
5272
5272
|
B ? /* @__PURE__ */ S(du, {
|
|
5273
5273
|
errors: z,
|
|
5274
5274
|
t: u
|
|
5275
5275
|
}) : null,
|
|
5276
|
-
te && /* @__PURE__ */ S(
|
|
5276
|
+
te && /* @__PURE__ */ S(Yo, {
|
|
5277
5277
|
muted: !0,
|
|
5278
5278
|
children: u("commasAsDecimals")
|
|
5279
5279
|
}),
|
|
5280
|
-
ne && /* @__PURE__ */ S(
|
|
5280
|
+
ne && /* @__PURE__ */ S(Gs, { message: {
|
|
5281
5281
|
visible: !0,
|
|
5282
5282
|
icon: !0,
|
|
5283
5283
|
width: "100%",
|
|
5284
5284
|
content: u("extraSeparators"),
|
|
5285
5285
|
type: "Warning"
|
|
5286
5286
|
} }),
|
|
5287
|
-
L && /* @__PURE__ */ S(
|
|
5287
|
+
L && /* @__PURE__ */ S(Gs, { message: {
|
|
5288
5288
|
visible: !0,
|
|
5289
5289
|
icon: !0,
|
|
5290
5290
|
width: "100%",
|
|
@@ -5301,21 +5301,21 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5301
5301
|
}))
|
|
5302
5302
|
})] })
|
|
5303
5303
|
] });
|
|
5304
|
-
return /* @__PURE__ */ S(
|
|
5304
|
+
return /* @__PURE__ */ S(Ts, {
|
|
5305
5305
|
visible: m,
|
|
5306
5306
|
centered: !0,
|
|
5307
5307
|
onEscape: i,
|
|
5308
|
-
children: /* @__PURE__ */ S(
|
|
5308
|
+
children: /* @__PURE__ */ S(rs, { dialog: {
|
|
5309
5309
|
width: "60vw",
|
|
5310
5310
|
height: "650px",
|
|
5311
5311
|
scroll: !0,
|
|
5312
5312
|
heading: u("pasteWithReviewRoundBrackets"),
|
|
5313
5313
|
content: /* @__PURE__ */ S("div", {
|
|
5314
|
-
className:
|
|
5314
|
+
className: Ls.modalContent,
|
|
5315
5315
|
children: V
|
|
5316
5316
|
}),
|
|
5317
5317
|
footer: /* @__PURE__ */ C(x, { children: [
|
|
5318
|
-
/* @__PURE__ */ S(
|
|
5318
|
+
/* @__PURE__ */ S(q, {
|
|
5319
5319
|
label: u("okay"),
|
|
5320
5320
|
colored: !0,
|
|
5321
5321
|
onClick: () => f(() => I()),
|
|
@@ -5323,11 +5323,11 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5323
5323
|
loading: d,
|
|
5324
5324
|
testId: `${p}-paste-with-review-modal-button-okay`
|
|
5325
5325
|
}),
|
|
5326
|
-
/* @__PURE__ */ S(
|
|
5326
|
+
/* @__PURE__ */ S(q, {
|
|
5327
5327
|
label: u("cancel"),
|
|
5328
5328
|
onClick: () => i()
|
|
5329
5329
|
}),
|
|
5330
|
-
L && /* @__PURE__ */ S(
|
|
5330
|
+
L && /* @__PURE__ */ S(q, {
|
|
5331
5331
|
label: b,
|
|
5332
5332
|
onClick: w
|
|
5333
5333
|
})
|
|
@@ -5343,10 +5343,10 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5343
5343
|
onClose: () => r({ name: e }),
|
|
5344
5344
|
...o
|
|
5345
5345
|
}) }, e);
|
|
5346
|
-
}) }) : null, rd = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ S(
|
|
5346
|
+
}) }) : null, rd = ({ sections: e, iconName: t, testId: n, tooltip: r }) => /* @__PURE__ */ S(lo, {
|
|
5347
5347
|
loading: !0,
|
|
5348
5348
|
menu: {
|
|
5349
|
-
component: /* @__PURE__ */ S(
|
|
5349
|
+
component: /* @__PURE__ */ S(q, {
|
|
5350
5350
|
basic: !0,
|
|
5351
5351
|
icon: t,
|
|
5352
5352
|
colored: "muted",
|
|
@@ -5795,7 +5795,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5795
5795
|
}] : []
|
|
5796
5796
|
];
|
|
5797
5797
|
return /* @__PURE__ */ C("span", { children: [
|
|
5798
|
-
R && /* @__PURE__ */ S(
|
|
5798
|
+
R && /* @__PURE__ */ S(Sa, {
|
|
5799
5799
|
small: !0,
|
|
5800
5800
|
dark: !0
|
|
5801
5801
|
}),
|
|
@@ -5820,13 +5820,13 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5820
5820
|
startTransition: z,
|
|
5821
5821
|
testId: n
|
|
5822
5822
|
}),
|
|
5823
|
-
A && /* @__PURE__ */ S(
|
|
5823
|
+
A && /* @__PURE__ */ S(Is, {
|
|
5824
5824
|
visible: A,
|
|
5825
5825
|
setModalVisibility: V,
|
|
5826
5826
|
validationRules: u,
|
|
5827
5827
|
t: I
|
|
5828
5828
|
}),
|
|
5829
|
-
j && t && /* @__PURE__ */ S(
|
|
5829
|
+
j && t && /* @__PURE__ */ S(Ns, {
|
|
5830
5830
|
visible: O,
|
|
5831
5831
|
prompt: M,
|
|
5832
5832
|
onUpload: F,
|
|
@@ -5864,7 +5864,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5864
5864
|
}
|
|
5865
5865
|
}), c.current && (c.current.value = "");
|
|
5866
5866
|
};
|
|
5867
|
-
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
5867
|
+
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(q, {
|
|
5868
5868
|
...o,
|
|
5869
5869
|
onClick: l
|
|
5870
5870
|
}), /* @__PURE__ */ S("input", {
|
|
@@ -5899,22 +5899,22 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
5899
5899
|
children: [e, /* @__PURE__ */ C("div", {
|
|
5900
5900
|
className: vd.icons,
|
|
5901
5901
|
children: [
|
|
5902
|
-
(n || i) && /* @__PURE__ */ S(
|
|
5902
|
+
(n || i) && /* @__PURE__ */ S(ma, {
|
|
5903
5903
|
text: n,
|
|
5904
5904
|
onClick: i,
|
|
5905
5905
|
maxWidth: r
|
|
5906
5906
|
}),
|
|
5907
|
-
o && /* @__PURE__ */ S(
|
|
5907
|
+
o && /* @__PURE__ */ S(ma, {
|
|
5908
5908
|
text: o,
|
|
5909
5909
|
icon: U.INFO
|
|
5910
5910
|
}),
|
|
5911
|
-
a && a.visible && a.onClick && /* @__PURE__ */ S(
|
|
5911
|
+
a && a.visible && a.onClick && /* @__PURE__ */ S(ma, {
|
|
5912
5912
|
onClick: a.onClick,
|
|
5913
5913
|
icon: a.active ? U.LOCK : U.UNLOCK,
|
|
5914
5914
|
active: a.active,
|
|
5915
5915
|
testId: a.testId
|
|
5916
5916
|
}),
|
|
5917
|
-
s && /* @__PURE__ */ S(
|
|
5917
|
+
s && /* @__PURE__ */ S(ma, {
|
|
5918
5918
|
text: (d = s == null ? void 0 : s.tooltip) == null ? "" : d,
|
|
5919
5919
|
onClick: s.onClick,
|
|
5920
5920
|
icon: U.LIBRARY
|
|
@@ -6028,7 +6028,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6028
6028
|
}),
|
|
6029
6029
|
e && /* @__PURE__ */ S("div", {
|
|
6030
6030
|
className: Z.headerTitle,
|
|
6031
|
-
children: /* @__PURE__ */ S(
|
|
6031
|
+
children: /* @__PURE__ */ S(es, {
|
|
6032
6032
|
top: !0,
|
|
6033
6033
|
marginBottom: 0,
|
|
6034
6034
|
children: e
|
|
@@ -6038,13 +6038,13 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6038
6038
|
className: Z.right,
|
|
6039
6039
|
children: /* @__PURE__ */ S("div", {
|
|
6040
6040
|
className: Z.actions,
|
|
6041
|
-
children: /* @__PURE__ */ S(
|
|
6041
|
+
children: /* @__PURE__ */ S(fo, { actions: t })
|
|
6042
6042
|
})
|
|
6043
6043
|
})
|
|
6044
6044
|
]
|
|
6045
6045
|
})), Dd = ({ label: e }) => e ? /* @__PURE__ */ S("span", {
|
|
6046
6046
|
className: Z.label,
|
|
6047
|
-
children: /* @__PURE__ */ S(
|
|
6047
|
+
children: /* @__PURE__ */ S(no, {
|
|
6048
6048
|
color: e.color,
|
|
6049
6049
|
title: e.value,
|
|
6050
6050
|
small: e.small
|
|
@@ -6059,7 +6059,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6059
6059
|
"data-testid": n,
|
|
6060
6060
|
children: [e, t && t.tooltip && t.tooltip.text ? /* @__PURE__ */ S("span", {
|
|
6061
6061
|
className: Z.iconTooltipMargin,
|
|
6062
|
-
children: /* @__PURE__ */ S(
|
|
6062
|
+
children: /* @__PURE__ */ S(K, {
|
|
6063
6063
|
text: t.tooltip.text,
|
|
6064
6064
|
maxWidth: "350px",
|
|
6065
6065
|
children: r
|
|
@@ -6075,7 +6075,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6075
6075
|
icon: n,
|
|
6076
6076
|
testId: o && `${o}-name`
|
|
6077
6077
|
});
|
|
6078
|
-
return a && (s = /* @__PURE__ */ S(
|
|
6078
|
+
return a && (s = /* @__PURE__ */ S(no, {
|
|
6079
6079
|
small: !0,
|
|
6080
6080
|
margin: "-2px",
|
|
6081
6081
|
title: "!",
|
|
@@ -6096,7 +6096,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6096
6096
|
})
|
|
6097
6097
|
]
|
|
6098
6098
|
});
|
|
6099
|
-
}, Ad = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ S(
|
|
6099
|
+
}, Ad = ({ item: e }) => e.metaCount === void 0 ? null : /* @__PURE__ */ S(no, {
|
|
6100
6100
|
color: "rgba(0,0,0,0.25)",
|
|
6101
6101
|
title: e.metaCount
|
|
6102
6102
|
}), jd = ({ item: e, expanding: t }) => {
|
|
@@ -6139,7 +6139,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6139
6139
|
className: Z.right,
|
|
6140
6140
|
children: [/* @__PURE__ */ S(Ad, { item: e }), !(o || i) && a && /* @__PURE__ */ S("div", {
|
|
6141
6141
|
className: Z.actions,
|
|
6142
|
-
children: /* @__PURE__ */ S(
|
|
6142
|
+
children: /* @__PURE__ */ S(fo, { actions: (r = e.actions) == null ? [] : r })
|
|
6143
6143
|
})]
|
|
6144
6144
|
})
|
|
6145
6145
|
]
|
|
@@ -6187,7 +6187,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6187
6187
|
className: Z.right,
|
|
6188
6188
|
children: [/* @__PURE__ */ S(Ad, { item: t }), !(t.disabled || o) && t.actions && /* @__PURE__ */ S("div", {
|
|
6189
6189
|
className: Z.actions,
|
|
6190
|
-
children: /* @__PURE__ */ S(
|
|
6190
|
+
children: /* @__PURE__ */ S(fo, { actions: t.actions })
|
|
6191
6191
|
})]
|
|
6192
6192
|
})
|
|
6193
6193
|
]
|
|
@@ -6388,7 +6388,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6388
6388
|
let { key: n, selected: r, label: i, disabled: a, testId: o, helpText: s, onClickHelp: c, textTransform: l } = e;
|
|
6389
6389
|
return /* @__PURE__ */ S("div", {
|
|
6390
6390
|
className: Bd.item,
|
|
6391
|
-
children: /* @__PURE__ */ S(
|
|
6391
|
+
children: /* @__PURE__ */ S(ha, {
|
|
6392
6392
|
label: i,
|
|
6393
6393
|
noMargin: !0,
|
|
6394
6394
|
checked: r,
|
|
@@ -6440,14 +6440,14 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6440
6440
|
children: "Invert"
|
|
6441
6441
|
})
|
|
6442
6442
|
]
|
|
6443
|
-
}), /* @__PURE__ */ S(
|
|
6443
|
+
}), /* @__PURE__ */ S(Zo, { margin: 0 })] }), e.map((n, r) => {
|
|
6444
6444
|
switch (n.type) {
|
|
6445
6445
|
case Ud.HEADING:
|
|
6446
6446
|
var i;
|
|
6447
6447
|
return /* @__PURE__ */ S(Hd, { label: n.label }, (i = n.key) == null ? r : i);
|
|
6448
6448
|
case Ud.DIVIDER:
|
|
6449
6449
|
var a;
|
|
6450
|
-
return /* @__PURE__ */ S(
|
|
6450
|
+
return /* @__PURE__ */ S(Zo, { margin: 0 }, (a = n.key) == null ? r : a);
|
|
6451
6451
|
default:
|
|
6452
6452
|
var o;
|
|
6453
6453
|
return /* @__PURE__ */ S(Vd, {
|
|
@@ -6462,7 +6462,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6462
6462
|
}, (o = n.key) == null ? r : o);
|
|
6463
6463
|
}
|
|
6464
6464
|
})]
|
|
6465
|
-
}), Kd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ S(
|
|
6465
|
+
}), Kd = ({ name: e, disabled: t, label: n, options: r, onChange: i, small: a = !1, showHeader: o = !0, maxHeight: s = "40vh", testId: c }) => /* @__PURE__ */ S(lo, {
|
|
6466
6466
|
testId: c,
|
|
6467
6467
|
disabled: t,
|
|
6468
6468
|
menu: {
|
|
@@ -6598,7 +6598,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6598
6598
|
"data-testid": i,
|
|
6599
6599
|
children: [/* @__PURE__ */ S("div", {
|
|
6600
6600
|
className: $d.richTextToolbar,
|
|
6601
|
-
children: u.map((e, n) => /* @__PURE__ */ S(
|
|
6601
|
+
children: u.map((e, n) => /* @__PURE__ */ S(q, {
|
|
6602
6602
|
small: !0,
|
|
6603
6603
|
round: !0,
|
|
6604
6604
|
basic: !0,
|
|
@@ -6826,7 +6826,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6826
6826
|
className: ff.mention,
|
|
6827
6827
|
children: e
|
|
6828
6828
|
}), _f = { row: "_row_n16je_1" }, vf = ({ 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 }) => {
|
|
6829
|
-
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__ */ S(n, { children: t.type ===
|
|
6829
|
+
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__ */ S(n, { children: t.type === Ko ? e.cloneElement(t, { spacing: p }) : t }, r));
|
|
6830
6830
|
return /* @__PURE__ */ S("div", {
|
|
6831
6831
|
className: b(_f.row),
|
|
6832
6832
|
style: {
|
|
@@ -6864,7 +6864,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6864
6864
|
experimental: "_experimental_t1w93_159",
|
|
6865
6865
|
active: "_active_t1w93_163",
|
|
6866
6866
|
icon: "_icon_t1w93_167"
|
|
6867
|
-
}, bf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
6867
|
+
}, bf = c(({ isOpen: e, label: t, icon: n, invalid: r }) => /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(K, {
|
|
6868
6868
|
text: t,
|
|
6869
6869
|
enabled: !e,
|
|
6870
6870
|
placement: "right-center",
|
|
@@ -6874,7 +6874,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6874
6874
|
display: "block",
|
|
6875
6875
|
children: /* @__PURE__ */ S("span", {
|
|
6876
6876
|
className: yf.icon,
|
|
6877
|
-
children: /* @__PURE__ */ S(
|
|
6877
|
+
children: /* @__PURE__ */ S(no, {
|
|
6878
6878
|
small: !0,
|
|
6879
6879
|
title: r ? "!" : void 0,
|
|
6880
6880
|
margin: 4,
|
|
@@ -6914,7 +6914,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6914
6914
|
let [a, o] = v(t), s = (e, t, n, r) => {
|
|
6915
6915
|
e.preventDefault(), typeof r == "function" && (e.currentTarget.value = t, e.currentTarget.label = n, r(e)), o(!1);
|
|
6916
6916
|
}, c = e.sections.length > 0;
|
|
6917
|
-
return /* @__PURE__ */ S(
|
|
6917
|
+
return /* @__PURE__ */ S(us, {
|
|
6918
6918
|
fixed: !0,
|
|
6919
6919
|
open: a,
|
|
6920
6920
|
top: r,
|
|
@@ -6923,7 +6923,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
6923
6923
|
buttonPosition: Ai.BOTTOM,
|
|
6924
6924
|
buttonAnimate: !0,
|
|
6925
6925
|
testId: i,
|
|
6926
|
-
button: c && /* @__PURE__ */ S(
|
|
6926
|
+
button: c && /* @__PURE__ */ S(q, {
|
|
6927
6927
|
onClick: (e) => {
|
|
6928
6928
|
e.shiftKey && n && n(e), o(!a);
|
|
6929
6929
|
},
|
|
@@ -7183,7 +7183,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7183
7183
|
o = kr(Ar(e, V));
|
|
7184
7184
|
}
|
|
7185
7185
|
return {
|
|
7186
|
-
type:
|
|
7186
|
+
type: Ga.OPTION,
|
|
7187
7187
|
inline: !0,
|
|
7188
7188
|
onClick: () => {
|
|
7189
7189
|
Or(i).valid && !n && (de(Af.PREDEFINED), p({ target: {
|
|
@@ -7193,7 +7193,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7193
7193
|
predefinedOption: t
|
|
7194
7194
|
} }));
|
|
7195
7195
|
},
|
|
7196
|
-
label: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
7196
|
+
label: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Yo, { children: t.label }), /* @__PURE__ */ S(xs, {
|
|
7197
7197
|
width: "20px",
|
|
7198
7198
|
height: "0"
|
|
7199
7199
|
})] }),
|
|
@@ -7202,7 +7202,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7202
7202
|
};
|
|
7203
7203
|
};
|
|
7204
7204
|
if (xe = [{
|
|
7205
|
-
type:
|
|
7205
|
+
type: Ga.OPTION,
|
|
7206
7206
|
inline: !0,
|
|
7207
7207
|
onClick: () => {
|
|
7208
7208
|
ue !== Af.CUSTOM && !n && p({ target: {
|
|
@@ -7231,11 +7231,11 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7231
7231
|
}, we = !E && (!R || R === H.FIRST) ? H.FIRST : H.MIDDLE, Te = !R || R === H.LAST ? H.LAST : H.MIDDLE;
|
|
7232
7232
|
return /* @__PURE__ */ S("div", {
|
|
7233
7233
|
className: ue === Af.PREDEFINED ? b(Wf.predefinedMenuActive) : "",
|
|
7234
|
-
children: /* @__PURE__ */ C(
|
|
7234
|
+
children: /* @__PURE__ */ C(ps, {
|
|
7235
7235
|
small: o,
|
|
7236
7236
|
width: s,
|
|
7237
7237
|
children: [
|
|
7238
|
-
E && /* @__PURE__ */ S(
|
|
7238
|
+
E && /* @__PURE__ */ S(lo, {
|
|
7239
7239
|
maxHeight: 380,
|
|
7240
7240
|
groupOrder: "first",
|
|
7241
7241
|
testId: w && `${w}-predefined-menu`,
|
|
@@ -7243,7 +7243,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7243
7243
|
menu: {
|
|
7244
7244
|
colored: !0,
|
|
7245
7245
|
trigger: "Component",
|
|
7246
|
-
component: /* @__PURE__ */ S(
|
|
7246
|
+
component: /* @__PURE__ */ S(q, {
|
|
7247
7247
|
groupOrder: "first",
|
|
7248
7248
|
active: ue === Af.PREDEFINED,
|
|
7249
7249
|
icon: ue === Af.PREDEFINED ? "link" : "unlink",
|
|
@@ -7283,7 +7283,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7283
7283
|
groupOrder: Te,
|
|
7284
7284
|
small: o,
|
|
7285
7285
|
children: ve
|
|
7286
|
-
}) : /* @__PURE__ */ S(
|
|
7286
|
+
}) : /* @__PURE__ */ S(lo, {
|
|
7287
7287
|
groupOrder: Te,
|
|
7288
7288
|
maxHeight: 380,
|
|
7289
7289
|
disabled: r,
|
|
@@ -7349,12 +7349,12 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7349
7349
|
e.key === "Enter" && B(), e.key === "Escape" && z();
|
|
7350
7350
|
}, V = f || k, re = /* @__PURE__ */ C("div", {
|
|
7351
7351
|
className: Ef.actions,
|
|
7352
|
-
children: [/* @__PURE__ */ S(
|
|
7352
|
+
children: [/* @__PURE__ */ S(q, {
|
|
7353
7353
|
icon: "close",
|
|
7354
7354
|
small: !0,
|
|
7355
7355
|
onClick: z,
|
|
7356
7356
|
testId: g && `${g}-cancel`
|
|
7357
|
-
}), /* @__PURE__ */ S(
|
|
7357
|
+
}), /* @__PURE__ */ S(q, {
|
|
7358
7358
|
icon: "checkmark",
|
|
7359
7359
|
small: !0,
|
|
7360
7360
|
disabled: !!L,
|
|
@@ -7368,14 +7368,14 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7368
7368
|
children: [
|
|
7369
7369
|
i && /* @__PURE__ */ S("span", {
|
|
7370
7370
|
className: Ef.label,
|
|
7371
|
-
children: /* @__PURE__ */ S(
|
|
7371
|
+
children: /* @__PURE__ */ S(Yo, {
|
|
7372
7372
|
small: y,
|
|
7373
7373
|
children: i
|
|
7374
7374
|
})
|
|
7375
7375
|
}),
|
|
7376
7376
|
p && /* @__PURE__ */ S("div", {
|
|
7377
7377
|
className: b(Ef.input, y && Ef.inputSmall, u && !f && Ef.editable),
|
|
7378
|
-
children: /* @__PURE__ */ S(
|
|
7378
|
+
children: /* @__PURE__ */ S(So, {
|
|
7379
7379
|
content: re,
|
|
7380
7380
|
isOpen: k,
|
|
7381
7381
|
isNonModal: !0,
|
|
@@ -7427,13 +7427,13 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7427
7427
|
})
|
|
7428
7428
|
]
|
|
7429
7429
|
});
|
|
7430
|
-
}, Xf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ S(
|
|
7430
|
+
}, Xf = ({ label: e, invalid: t, badge: n }) => t ? /* @__PURE__ */ S(no, {
|
|
7431
7431
|
small: !0,
|
|
7432
7432
|
margin: "-4px",
|
|
7433
7433
|
color: "var(--color-text-error)",
|
|
7434
7434
|
title: "!",
|
|
7435
7435
|
children: e
|
|
7436
|
-
}) : n ? /* @__PURE__ */ S(
|
|
7436
|
+
}) : n ? /* @__PURE__ */ S(no, {
|
|
7437
7437
|
small: !0,
|
|
7438
7438
|
margin: "-4px",
|
|
7439
7439
|
title: n == null ? void 0 : n.toString(),
|
|
@@ -7513,7 +7513,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7513
7513
|
target: n,
|
|
7514
7514
|
onClick: i,
|
|
7515
7515
|
"data-testid": r,
|
|
7516
|
-
children: /* @__PURE__ */ S(
|
|
7516
|
+
children: /* @__PURE__ */ S(Yo, {
|
|
7517
7517
|
link: !0,
|
|
7518
7518
|
children: e
|
|
7519
7519
|
})
|
|
@@ -7548,11 +7548,11 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7548
7548
|
"data-warning": p || null,
|
|
7549
7549
|
"data-testid": y
|
|
7550
7550
|
});
|
|
7551
|
-
return /* @__PURE__ */ S(
|
|
7551
|
+
return /* @__PURE__ */ S(K, {
|
|
7552
7552
|
error: !!f,
|
|
7553
7553
|
warning: !!p,
|
|
7554
7554
|
text: m || f || p,
|
|
7555
|
-
enabled: m &&
|
|
7555
|
+
enabled: m && Y(m) || f && Y(f) || p && Y(p) || !1,
|
|
7556
7556
|
maxWidth: h,
|
|
7557
7557
|
children: C
|
|
7558
7558
|
});
|
|
@@ -7653,7 +7653,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7653
7653
|
});
|
|
7654
7654
|
case ap.BUTTON: return /* @__PURE__ */ S("div", {
|
|
7655
7655
|
className: b(Q.item, Q.button),
|
|
7656
|
-
children: /* @__PURE__ */ S(
|
|
7656
|
+
children: /* @__PURE__ */ S(q, {
|
|
7657
7657
|
label: e.label,
|
|
7658
7658
|
colored: e.colored,
|
|
7659
7659
|
pill: !0,
|
|
@@ -7665,7 +7665,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7665
7665
|
});
|
|
7666
7666
|
case ap.MENU: return /* @__PURE__ */ S("div", {
|
|
7667
7667
|
className: b(Q.item, Q.menu),
|
|
7668
|
-
children: /* @__PURE__ */ S(
|
|
7668
|
+
children: /* @__PURE__ */ S(lo, {
|
|
7669
7669
|
maxHeight: "100%",
|
|
7670
7670
|
menu: {
|
|
7671
7671
|
trigger: Di.COMPONENT,
|
|
@@ -7717,27 +7717,27 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7717
7717
|
className: lp.popConfirm,
|
|
7718
7718
|
children: [e && /* @__PURE__ */ S("div", {
|
|
7719
7719
|
className: lp.content,
|
|
7720
|
-
children: /* @__PURE__ */ S(
|
|
7720
|
+
children: /* @__PURE__ */ S(Yo, {
|
|
7721
7721
|
small: !0,
|
|
7722
7722
|
children: e
|
|
7723
7723
|
})
|
|
7724
7724
|
}), /* @__PURE__ */ C("div", {
|
|
7725
7725
|
className: lp.buttons,
|
|
7726
|
-
children: [/* @__PURE__ */ S(
|
|
7726
|
+
children: [/* @__PURE__ */ S(q, {
|
|
7727
7727
|
small: !0,
|
|
7728
7728
|
colored: !0,
|
|
7729
7729
|
label: t,
|
|
7730
7730
|
onClick: () => n(o),
|
|
7731
7731
|
disabled: r,
|
|
7732
7732
|
testId: `${s}-ok-button`
|
|
7733
|
-
}), /* @__PURE__ */ S(
|
|
7733
|
+
}), /* @__PURE__ */ S(q, {
|
|
7734
7734
|
small: !0,
|
|
7735
7735
|
label: i,
|
|
7736
7736
|
onClick: () => a(o),
|
|
7737
7737
|
testId: `${s}-cancel-button`
|
|
7738
7738
|
})]
|
|
7739
7739
|
})]
|
|
7740
|
-
}), dp = ({ 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__ */ S(
|
|
7740
|
+
}), dp = ({ 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__ */ S(So, {
|
|
7741
7741
|
content: /* @__PURE__ */ S(up, {
|
|
7742
7742
|
title: i,
|
|
7743
7743
|
okText: s,
|
|
@@ -7787,7 +7787,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7787
7787
|
children: [
|
|
7788
7788
|
a && /* @__PURE__ */ S("div", {
|
|
7789
7789
|
className: fp.toggle,
|
|
7790
|
-
children: /* @__PURE__ */ S(
|
|
7790
|
+
children: /* @__PURE__ */ S(q, {
|
|
7791
7791
|
basic: !0,
|
|
7792
7792
|
colored: r ? !0 : Oi.MUTED,
|
|
7793
7793
|
small: !0,
|
|
@@ -7805,7 +7805,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
7805
7805
|
className: Z.right,
|
|
7806
7806
|
children: [/* @__PURE__ */ S(Ad, { item: u }), !f && h.length > 0 && /* @__PURE__ */ S("div", {
|
|
7807
7807
|
className: Z.actions,
|
|
7808
|
-
children: /* @__PURE__ */ S(
|
|
7808
|
+
children: /* @__PURE__ */ S(fo, { actions: h })
|
|
7809
7809
|
})]
|
|
7810
7810
|
})
|
|
7811
7811
|
]
|
|
@@ -8042,7 +8042,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8042
8042
|
return e === 0 ? `calc(${r} - ${`calc(var(--size) * ${N ? n + 1 : n})`})` : r;
|
|
8043
8043
|
};
|
|
8044
8044
|
return /* @__PURE__ */ S("table", {
|
|
8045
|
-
className:
|
|
8045
|
+
className: Ks.table,
|
|
8046
8046
|
"data-testid": k,
|
|
8047
8047
|
onDrop: m,
|
|
8048
8048
|
onDragEnter: d,
|
|
@@ -8079,7 +8079,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8079
8079
|
className: _p.folder,
|
|
8080
8080
|
onClick: () => h(D),
|
|
8081
8081
|
onMouseDown: (e) => e.stopPropagation(),
|
|
8082
|
-
children: /* @__PURE__ */ S(
|
|
8082
|
+
children: /* @__PURE__ */ S(q, {
|
|
8083
8083
|
basic: !0,
|
|
8084
8084
|
colored: l ? !0 : Oi.MUTED,
|
|
8085
8085
|
disabled: !a,
|
|
@@ -8111,7 +8111,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8111
8111
|
}, Dp = ({ columnAlignment: e, columnWidths: t, draggable: n, hasRowActions: r, headers: i }) => {
|
|
8112
8112
|
let a = wp(), o = a == null ? void 0 : a.headerCheckState, s = (a == null ? void 0 : a.enabled) && o !== void 0;
|
|
8113
8113
|
return /* @__PURE__ */ S("table", {
|
|
8114
|
-
className: b(
|
|
8114
|
+
className: b(Ks.table, _p.treeTableHeader),
|
|
8115
8115
|
children: /* @__PURE__ */ S("thead", { children: i.map((i, c) => /* @__PURE__ */ C("tr", { children: [
|
|
8116
8116
|
s && c === 0 ? /* @__PURE__ */ S(Gl, {
|
|
8117
8117
|
isHeader: !0,
|
|
@@ -8235,19 +8235,29 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8235
8235
|
}, {
|
|
8236
8236
|
preferredUnits: {},
|
|
8237
8237
|
storageUnits: {}
|
|
8238
|
-
}), Ip = ({
|
|
8238
|
+
}), Ip = ({ value: e, unitKey: t, selectedUnits: n, storageUnits: r }) => {
|
|
8239
|
+
let i = n[t], a = r[t];
|
|
8240
|
+
if (!(a && i !== a) || e === null || e === "") return e;
|
|
8241
|
+
let { value: o = e } = Pf({
|
|
8242
|
+
value: Er(e),
|
|
8243
|
+
unitkey: t,
|
|
8244
|
+
toUnit: i,
|
|
8245
|
+
fromUnit: a
|
|
8246
|
+
});
|
|
8247
|
+
return o;
|
|
8248
|
+
}, Lp = ({ row: e, selectedUnits: t, storageUnits: n, convertBackToStorageUnit: r, enableCosmeticRounding: i, enableDisplayRounding: a }) => ({
|
|
8239
8249
|
...e,
|
|
8240
8250
|
cells: e.cells.map((e) => {
|
|
8241
8251
|
if ("autoUnit" in e && e.autoUnit && (typeof e.value == "string" || typeof e.value == "number")) {
|
|
8242
|
-
let { unitKey: o, value: s, formatDisplayValue: c } = e, l = a && "roundDisplayValue" in e ? e.roundDisplayValue : null, u = t[o], d = n[o], f = d && u !== d,
|
|
8243
|
-
value:
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
}), m =
|
|
8252
|
+
let { unitKey: o, value: s, formatDisplayValue: c } = e, l = a && "roundDisplayValue" in e ? e.roundDisplayValue : null, u = t[o], d = n[o], f = d && u !== d, p = Ip({
|
|
8253
|
+
value: s,
|
|
8254
|
+
unitKey: o,
|
|
8255
|
+
selectedUnits: t,
|
|
8256
|
+
storageUnits: n
|
|
8257
|
+
}), m = c ? c(p, u) : p;
|
|
8248
8258
|
return {
|
|
8249
8259
|
...e,
|
|
8250
|
-
value:
|
|
8260
|
+
value: m,
|
|
8251
8261
|
enableCosmeticRounding: i,
|
|
8252
8262
|
enableDisplayRounding: a,
|
|
8253
8263
|
roundDisplayValue: l,
|
|
@@ -8272,7 +8282,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8272
8282
|
}
|
|
8273
8283
|
return e;
|
|
8274
8284
|
})
|
|
8275
|
-
}),
|
|
8285
|
+
}), Rp = ({ headers: e, selectedUnits: t, storageUnits: n, onChangeUnit: r }) => {
|
|
8276
8286
|
let { translations: i } = Np();
|
|
8277
8287
|
return e ? e.map((e) => ({
|
|
8278
8288
|
...e,
|
|
@@ -8302,7 +8312,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8302
8312
|
return e;
|
|
8303
8313
|
})
|
|
8304
8314
|
})) : [];
|
|
8305
|
-
},
|
|
8315
|
+
}, zp = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: s }) => {
|
|
8306
8316
|
let { headers: c, ...u } = e, { storageUnits: f, preferredUnits: p } = Fp(t), m = Of(p), [h, g] = v(p), _ = ({ unitKey: e, value: n }) => {
|
|
8307
8317
|
g((t) => ({
|
|
8308
8318
|
...t,
|
|
@@ -8314,10 +8324,18 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8314
8324
|
newUnit: n,
|
|
8315
8325
|
unitKey: e
|
|
8316
8326
|
});
|
|
8317
|
-
}, y = l(({ row: e, rowIndex: t }) =>
|
|
8327
|
+
}, y = l(({ row: e, rowIndex: t }) => Lp({
|
|
8318
8328
|
row: s ? s({
|
|
8319
8329
|
row: e,
|
|
8320
|
-
rowIndex: t
|
|
8330
|
+
rowIndex: t,
|
|
8331
|
+
selectedUnits: h,
|
|
8332
|
+
storageUnits: f,
|
|
8333
|
+
convertValue: (e, t) => Ip({
|
|
8334
|
+
value: e,
|
|
8335
|
+
unitKey: t,
|
|
8336
|
+
selectedUnits: h,
|
|
8337
|
+
storageUnits: f
|
|
8338
|
+
})
|
|
8321
8339
|
}) : e,
|
|
8322
8340
|
selectedUnits: h,
|
|
8323
8341
|
storageUnits: f,
|
|
@@ -8325,6 +8343,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8325
8343
|
enableCosmeticRounding: r,
|
|
8326
8344
|
enableDisplayRounding: i
|
|
8327
8345
|
}), [
|
|
8346
|
+
s,
|
|
8328
8347
|
h,
|
|
8329
8348
|
f,
|
|
8330
8349
|
n,
|
|
@@ -8342,7 +8361,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8342
8361
|
}, [t]), /* @__PURE__ */ S(nu, {
|
|
8343
8362
|
table: {
|
|
8344
8363
|
...u,
|
|
8345
|
-
headers:
|
|
8364
|
+
headers: Rp({
|
|
8346
8365
|
headers: e.headers,
|
|
8347
8366
|
selectedUnits: h,
|
|
8348
8367
|
storageUnits: f,
|
|
@@ -8353,7 +8372,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8353
8372
|
canListReorder: o,
|
|
8354
8373
|
beforeRenderRow: y
|
|
8355
8374
|
});
|
|
8356
|
-
},
|
|
8375
|
+
}, Bp = { settingField: "_settingField_1x02n_1" }, Vp = ({ helpText: t, disabled: n = !1, showCustom: r = !1, children: i, userValue: a = void 0, companyValue: o = void 0, noPermission: s = !1, selectedOption: c, handleSelectChange: l, testId: u }) => {
|
|
8357
8376
|
let { translations: d } = Np(), f = (t) => t.replace(/\\n/g, "\n").split(/\n/).map((t, n) => /* @__PURE__ */ C(e.Fragment, { children: [t, /* @__PURE__ */ S("br", {})] }, n)), p = [
|
|
8358
8377
|
...r ? [] : [{
|
|
8359
8378
|
label: d == null ? void 0 : d.allUsers,
|
|
@@ -8369,7 +8388,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8369
8388
|
}] : []
|
|
8370
8389
|
], m = a !== void 0 && o !== void 0 && !un(a, o);
|
|
8371
8390
|
return /* @__PURE__ */ C("div", {
|
|
8372
|
-
className:
|
|
8391
|
+
className: Bp.settingField,
|
|
8373
8392
|
"data-testid": u,
|
|
8374
8393
|
children: [/* @__PURE__ */ C(Sd, {
|
|
8375
8394
|
justifyContent: "space-between",
|
|
@@ -8379,7 +8398,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8379
8398
|
children: /* @__PURE__ */ C(Sd, {
|
|
8380
8399
|
gap: "8px",
|
|
8381
8400
|
alignItems: "center",
|
|
8382
|
-
children: [m && /* @__PURE__ */ S(
|
|
8401
|
+
children: [m && /* @__PURE__ */ S(ma, {
|
|
8383
8402
|
text: Or(o).valid ? `${d == null ? void 0 : d.companySetting}: ${_r(o) ? kr(o) : o}` : d == null ? void 0 : d.companySettingDifferent,
|
|
8384
8403
|
icon: U.INFO
|
|
8385
8404
|
}), /* @__PURE__ */ S(el, {
|
|
@@ -8396,12 +8415,12 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8396
8415
|
})]
|
|
8397
8416
|
})
|
|
8398
8417
|
})]
|
|
8399
|
-
}), t && /* @__PURE__ */ S(
|
|
8418
|
+
}), t && /* @__PURE__ */ S(Yo, {
|
|
8400
8419
|
muted: !0,
|
|
8401
8420
|
children: f(t)
|
|
8402
8421
|
})]
|
|
8403
8422
|
});
|
|
8404
|
-
},
|
|
8423
|
+
}, Hp = { backgroundColor: "var(--color-background-error-muted)" }, Up = { backgroundColor: "var(--color-background-success-muted)" }, Wp = { backgroundColor: "var(--color-background-warning-muted)" }, Gp = {
|
|
8405
8424
|
addedBackground: "var(--color-diff-added-background)",
|
|
8406
8425
|
addedGutterBackground: "var(--color-diff-added-gutter-background)",
|
|
8407
8426
|
codeFoldBackground: "var(--color-diff-code-fold-background)",
|
|
@@ -8420,10 +8439,10 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8420
8439
|
removedGutterBackground: "var(--color-diff-removed-gutter-background)",
|
|
8421
8440
|
wordAddedBackground: "var(--color-diff-word-added-background)",
|
|
8422
8441
|
wordRemovedBackground: "var(--color-diff-word-removed-background)"
|
|
8423
|
-
},
|
|
8442
|
+
}, Kp = {
|
|
8424
8443
|
variables: {
|
|
8425
|
-
light:
|
|
8426
|
-
dark:
|
|
8444
|
+
light: Gp,
|
|
8445
|
+
dark: Gp
|
|
8427
8446
|
},
|
|
8428
8447
|
diffContainer: { minWidth: "unset" },
|
|
8429
8448
|
codeFoldGutter: {
|
|
@@ -8438,10 +8457,10 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8438
8457
|
pre: { opacity: .5 }
|
|
8439
8458
|
} },
|
|
8440
8459
|
marker: { pre: { opacity: .4 } }
|
|
8441
|
-
},
|
|
8460
|
+
}, qp = { codeOnly: "_codeOnly_1lph2_42" }, Jp = ({ value: e, compareValue: t, splitView: n = !1, showDiffOnly: r = !1, compareMethod: i = Ti.LINES, extraLinesSurroundingDiff: a, hideSummary: o = !0, className: s }) => {
|
|
8442
8461
|
let c = t !== void 0, l = c ? t : e, u = i !== Ti.WORDS;
|
|
8443
8462
|
return /* @__PURE__ */ S("div", {
|
|
8444
|
-
className: b(s, { [
|
|
8463
|
+
className: b(s, { [qp.codeOnly]: !c && !n }),
|
|
8445
8464
|
children: /* @__PURE__ */ S(wi, {
|
|
8446
8465
|
oldValue: l,
|
|
8447
8466
|
newValue: e,
|
|
@@ -8453,22 +8472,22 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8453
8472
|
hideLineNumbers: !1,
|
|
8454
8473
|
hideSummary: o,
|
|
8455
8474
|
disableWorker: !0,
|
|
8456
|
-
styles:
|
|
8475
|
+
styles: Kp
|
|
8457
8476
|
})
|
|
8458
8477
|
});
|
|
8459
|
-
},
|
|
8478
|
+
}, Yp = (e, t) => {
|
|
8460
8479
|
let n = e.replace(/\r\n/g, "\n").split("\n"), r = t.replace(/\r\n/g, "\n").split("\n"), i = r.length - n.length, a = n.length - r.length;
|
|
8461
8480
|
return {
|
|
8462
8481
|
added: Math.max(0, i),
|
|
8463
8482
|
removed: Math.max(0, a)
|
|
8464
8483
|
};
|
|
8465
|
-
},
|
|
8484
|
+
}, Xp = "split", Zp = "unified", Qp = ({ oldJson: e, newJson: t, viewType: n = Xp }) => {
|
|
8466
8485
|
var r, i;
|
|
8467
8486
|
let { translations: a } = Np(), [o, s] = v(n), c = [{
|
|
8468
|
-
value:
|
|
8487
|
+
value: Xp,
|
|
8469
8488
|
label: (r = a == null ? void 0 : a.split) == null ? "Split" : r
|
|
8470
8489
|
}, {
|
|
8471
|
-
value:
|
|
8490
|
+
value: Zp,
|
|
8472
8491
|
label: (i = a == null ? void 0 : a.unified) == null ? "Unified" : i
|
|
8473
8492
|
}];
|
|
8474
8493
|
d(() => {
|
|
@@ -8476,19 +8495,19 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8476
8495
|
}, [n]);
|
|
8477
8496
|
let l = ({ target: { value: e } }) => {
|
|
8478
8497
|
s(e);
|
|
8479
|
-
}, { added: u, removed: f } =
|
|
8480
|
-
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(
|
|
8498
|
+
}, { added: u, removed: f } = Yp(e, t), p = u + f > 3500;
|
|
8499
|
+
return /* @__PURE__ */ S(x, { children: /* @__PURE__ */ S(bo, {
|
|
8481
8500
|
bordered: !0,
|
|
8482
8501
|
heading: /* @__PURE__ */ C(Sd, {
|
|
8483
8502
|
gap: !0,
|
|
8484
|
-
children: [/* @__PURE__ */ S(
|
|
8503
|
+
children: [/* @__PURE__ */ S(es, { children: /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ C(Yo, {
|
|
8485
8504
|
success: !0,
|
|
8486
8505
|
children: [
|
|
8487
8506
|
"+",
|
|
8488
8507
|
u,
|
|
8489
8508
|
" "
|
|
8490
8509
|
]
|
|
8491
|
-
}), /* @__PURE__ */ C(
|
|
8510
|
+
}), /* @__PURE__ */ C(Yo, {
|
|
8492
8511
|
error: !0,
|
|
8493
8512
|
children: ["-", f]
|
|
8494
8513
|
})] }) }), !p && /* @__PURE__ */ S(Qd, {
|
|
@@ -8502,25 +8521,25 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8502
8521
|
padding: !1,
|
|
8503
8522
|
children: p ? /* @__PURE__ */ S("div", {
|
|
8504
8523
|
style: { padding: "var(--padding-sm)" },
|
|
8505
|
-
children: /* @__PURE__ */ S(
|
|
8524
|
+
children: /* @__PURE__ */ S(Yo, {
|
|
8506
8525
|
muted: !0,
|
|
8507
8526
|
children: a == null ? void 0 : a.changesTooLarge
|
|
8508
8527
|
})
|
|
8509
|
-
}) : /* @__PURE__ */ S(
|
|
8528
|
+
}) : /* @__PURE__ */ S(Jp, {
|
|
8510
8529
|
value: t,
|
|
8511
8530
|
compareValue: e,
|
|
8512
|
-
splitView: o ===
|
|
8531
|
+
splitView: o === Xp,
|
|
8513
8532
|
compareMethod: Ti.WORDS,
|
|
8514
8533
|
showDiffOnly: !0,
|
|
8515
8534
|
hideSummary: !1
|
|
8516
8535
|
})
|
|
8517
8536
|
}) });
|
|
8518
|
-
},
|
|
8537
|
+
}, $p = (e) => typeof e == "object" && e && "value" in e ? e.value : e, em = (e) => {
|
|
8519
8538
|
var t;
|
|
8520
8539
|
if (e.id != null) return String(e.id);
|
|
8521
|
-
let n =
|
|
8540
|
+
let n = $p((t = e.cells) == null || (t = t[0]) == null ? void 0 : t.value);
|
|
8522
8541
|
return n == null ? "" : String(n);
|
|
8523
|
-
},
|
|
8542
|
+
}, tm = (e, t) => ({
|
|
8524
8543
|
...e,
|
|
8525
8544
|
cells: e.cells.map((e) => ({
|
|
8526
8545
|
...e,
|
|
@@ -8529,7 +8548,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8529
8548
|
...t
|
|
8530
8549
|
}
|
|
8531
8550
|
}))
|
|
8532
|
-
}),
|
|
8551
|
+
}), nm = (e, t) => ({
|
|
8533
8552
|
...e,
|
|
8534
8553
|
cells: e.cells.map((e, n) => {
|
|
8535
8554
|
var r;
|
|
@@ -8538,17 +8557,17 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8538
8557
|
...e,
|
|
8539
8558
|
style: {
|
|
8540
8559
|
...e.style,
|
|
8541
|
-
...
|
|
8560
|
+
...Wp
|
|
8542
8561
|
},
|
|
8543
8562
|
tooltip: typeof a == "number" ? String(a) : a
|
|
8544
8563
|
};
|
|
8545
8564
|
})
|
|
8546
|
-
}),
|
|
8565
|
+
}), rm = (e = [], t = []) => {
|
|
8547
8566
|
let n = /* @__PURE__ */ new Map();
|
|
8548
|
-
for (let e of t) n.set(
|
|
8549
|
-
let r = new Set(e.map(
|
|
8567
|
+
for (let e of t) n.set(em(e), e);
|
|
8568
|
+
let r = new Set(e.map(em)), i = /* @__PURE__ */ new Map(), a = [], o = null;
|
|
8550
8569
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
8551
|
-
let n = t[e], c =
|
|
8570
|
+
let n = t[e], c = em(n);
|
|
8552
8571
|
if (r.has(c)) {
|
|
8553
8572
|
o = c;
|
|
8554
8573
|
continue;
|
|
@@ -8563,7 +8582,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8563
8582
|
a.reverse();
|
|
8564
8583
|
let c = [];
|
|
8565
8584
|
for (let t of e) {
|
|
8566
|
-
let e =
|
|
8585
|
+
let e = em(t), r = i.get(e);
|
|
8567
8586
|
if (r) for (let e of r) c.push({
|
|
8568
8587
|
status: "deleted",
|
|
8569
8588
|
row: e
|
|
@@ -8583,11 +8602,11 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8583
8602
|
row: e
|
|
8584
8603
|
});
|
|
8585
8604
|
return c;
|
|
8586
|
-
},
|
|
8587
|
-
let i = h(() =>
|
|
8605
|
+
}, im = (e) => e.status === "deleted" ? tm(e.row, Hp) : e.status === "added" ? tm(e.row, Up) : nm(e.row, e.compareRow), am = ({ table: e, compareRows: t, beforeRenderRow: n, ...r }) => {
|
|
8606
|
+
let i = h(() => rm(e.rows, t), [e.rows, t]), a = !!e.infiniteScroll, o = h(() => {
|
|
8588
8607
|
if (!a) return i.map((e) => e.row);
|
|
8589
8608
|
}, [a, i]), s = l(({ row: e, rowIndex: t }) => {
|
|
8590
|
-
let r = i[t], a = r ?
|
|
8609
|
+
let r = i[t], a = r ? im(r) : e;
|
|
8591
8610
|
return n ? n({
|
|
8592
8611
|
row: a,
|
|
8593
8612
|
rowIndex: t
|
|
@@ -8606,7 +8625,7 @@ var Ao = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), jo =
|
|
|
8606
8625
|
};
|
|
8607
8626
|
//#endregion
|
|
8608
8627
|
//#region src/helpers/date.ts
|
|
8609
|
-
function
|
|
8628
|
+
function om({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i, locale: a }) {
|
|
8610
8629
|
return e ? new Date(e).toLocaleString(a, {
|
|
8611
8630
|
year: "numeric",
|
|
8612
8631
|
month: "short",
|
|
@@ -8620,28 +8639,28 @@ function am({ date: e, showTime: t, showSeconds: n, timeZone: r, showTimeZone: i
|
|
|
8620
8639
|
}
|
|
8621
8640
|
//#endregion
|
|
8622
8641
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/clone.js
|
|
8623
|
-
function
|
|
8642
|
+
function sm(e) {
|
|
8624
8643
|
var t;
|
|
8625
8644
|
let n = /^\/(.*)\/([gimyu]*)$/.exec(e.toString());
|
|
8626
8645
|
if (!n) throw Error("Invalid RegExp");
|
|
8627
8646
|
return new RegExp((t = n[1]) == null ? "" : t, n[2]);
|
|
8628
8647
|
}
|
|
8629
|
-
function
|
|
8648
|
+
function cm(e) {
|
|
8630
8649
|
if (typeof e != "object") return e;
|
|
8631
8650
|
if (e === null) return null;
|
|
8632
|
-
if (Array.isArray(e)) return e.map(
|
|
8651
|
+
if (Array.isArray(e)) return e.map(cm);
|
|
8633
8652
|
if (e instanceof Date) return new Date(e.getTime());
|
|
8634
|
-
if (e instanceof RegExp) return
|
|
8653
|
+
if (e instanceof RegExp) return sm(e);
|
|
8635
8654
|
let t = {};
|
|
8636
|
-
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
8655
|
+
for (let n in e) Object.prototype.hasOwnProperty.call(e, n) && (t[n] = cm(e[n]));
|
|
8637
8656
|
return t;
|
|
8638
8657
|
}
|
|
8639
8658
|
//#endregion
|
|
8640
8659
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/assertions/arrays.js
|
|
8641
|
-
function
|
|
8660
|
+
function lm(e, t) {
|
|
8642
8661
|
if (e.length === 0) throw Error(t || "Expected a non-empty array");
|
|
8643
8662
|
}
|
|
8644
|
-
var
|
|
8663
|
+
var um = (e) => e[e.length - 1], dm = class {
|
|
8645
8664
|
setResult(e) {
|
|
8646
8665
|
return this.result = e, this.hasResult = !0, this;
|
|
8647
8666
|
}
|
|
@@ -8649,16 +8668,16 @@ var lm = (e) => e[e.length - 1], um = class {
|
|
|
8649
8668
|
return this.exiting = !0, this;
|
|
8650
8669
|
}
|
|
8651
8670
|
push(e, t) {
|
|
8652
|
-
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (
|
|
8671
|
+
return e.parent = this, t !== void 0 && (e.childName = t), e.root = this.root || this, e.options = e.options || this.options, this.children ? (lm(this.children), um(this.children).next = e, this.children.push(e)) : (this.children = [e], this.nextAfterChildren = this.next || null, this.next = e), e.next = this, this;
|
|
8653
8672
|
}
|
|
8654
|
-
},
|
|
8673
|
+
}, fm = class extends dm {
|
|
8655
8674
|
constructor(e, t) {
|
|
8656
8675
|
super(), this.left = e, this.right = t, this.pipe = "diff";
|
|
8657
8676
|
}
|
|
8658
8677
|
prepareDeltaResult(e) {
|
|
8659
8678
|
var t, n, r, i;
|
|
8660
8679
|
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)) {
|
|
8661
|
-
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues :
|
|
8680
|
+
let t = typeof ((r = this.options) == null ? void 0 : r.cloneDiffValues) == "function" ? (i = this.options) == null ? void 0 : i.cloneDiffValues : cm;
|
|
8662
8681
|
typeof e[0] == "object" && (e[0] = t(e[0])), typeof e[1] == "object" && (e[1] = t(e[1]));
|
|
8663
8682
|
}
|
|
8664
8683
|
return e;
|
|
@@ -8666,15 +8685,15 @@ var lm = (e) => e[e.length - 1], um = class {
|
|
|
8666
8685
|
setResult(e) {
|
|
8667
8686
|
return this.prepareDeltaResult(e), super.setResult(e);
|
|
8668
8687
|
}
|
|
8669
|
-
},
|
|
8688
|
+
}, pm = class extends dm {
|
|
8670
8689
|
constructor(e, t) {
|
|
8671
8690
|
super(), this.left = e, this.delta = t, this.pipe = "patch";
|
|
8672
8691
|
}
|
|
8673
|
-
},
|
|
8692
|
+
}, mm = class extends dm {
|
|
8674
8693
|
constructor(e) {
|
|
8675
8694
|
super(), this.delta = e, this.pipe = "reverse";
|
|
8676
8695
|
}
|
|
8677
|
-
},
|
|
8696
|
+
}, hm = class {
|
|
8678
8697
|
constructor(e) {
|
|
8679
8698
|
this.name = e, this.filters = [];
|
|
8680
8699
|
}
|
|
@@ -8738,7 +8757,7 @@ var lm = (e) => e[e.length - 1], um = class {
|
|
|
8738
8757
|
}
|
|
8739
8758
|
}), this);
|
|
8740
8759
|
}
|
|
8741
|
-
},
|
|
8760
|
+
}, gm = class {
|
|
8742
8761
|
constructor(e) {
|
|
8743
8762
|
this.selfOptions = e || {}, this.pipes = {};
|
|
8744
8763
|
}
|
|
@@ -8765,7 +8784,7 @@ var lm = (e) => e[e.length - 1], um = class {
|
|
|
8765
8784
|
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);
|
|
8766
8785
|
return n.hasResult ? n.result : void 0;
|
|
8767
8786
|
}
|
|
8768
|
-
},
|
|
8787
|
+
}, _m = (e, t, n, r) => e[n] === t[r], vm = (e, t, n, r) => {
|
|
8769
8788
|
var i, a, o;
|
|
8770
8789
|
let s = e.length, c = t.length, l, u, d = Array(s + 1);
|
|
8771
8790
|
for (l = 0; l < s + 1; l++) {
|
|
@@ -8781,7 +8800,7 @@ var lm = (e) => e[e.length - 1], um = class {
|
|
|
8781
8800
|
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);
|
|
8782
8801
|
}
|
|
8783
8802
|
return d;
|
|
8784
|
-
},
|
|
8803
|
+
}, ym = (e, t, n, r) => {
|
|
8785
8804
|
let i = t.length, a = n.length, o = {
|
|
8786
8805
|
sequence: [],
|
|
8787
8806
|
indices1: [],
|
|
@@ -8803,11 +8822,11 @@ var lm = (e) => e[e.length - 1], um = class {
|
|
|
8803
8822
|
}
|
|
8804
8823
|
}
|
|
8805
8824
|
return o;
|
|
8806
|
-
},
|
|
8825
|
+
}, bm = { get: (e, t, n, r) => {
|
|
8807
8826
|
let i = r || {};
|
|
8808
|
-
return vm(
|
|
8809
|
-
} },
|
|
8810
|
-
function
|
|
8827
|
+
return ym(vm(e, t, n || _m, i), e, t, i);
|
|
8828
|
+
} }, xm = 3;
|
|
8829
|
+
function Sm(e, t, n, r) {
|
|
8811
8830
|
for (let i = 0; i < n; i++) {
|
|
8812
8831
|
let n = e[i];
|
|
8813
8832
|
for (let e = 0; e < r; e++) {
|
|
@@ -8817,7 +8836,7 @@ function xm(e, t, n, r) {
|
|
|
8817
8836
|
}
|
|
8818
8837
|
return !1;
|
|
8819
8838
|
}
|
|
8820
|
-
function
|
|
8839
|
+
function Cm(e, t, n, r, i) {
|
|
8821
8840
|
let a = e[n], o = t[r];
|
|
8822
8841
|
if (a === o) return !0;
|
|
8823
8842
|
if (typeof a != "object" || typeof o != "object") return !1;
|
|
@@ -8830,15 +8849,15 @@ function Sm(e, t, n, r, i) {
|
|
|
8830
8849
|
let l = i.hashCache2[r];
|
|
8831
8850
|
return l === void 0 && (i.hashCache2[r] = l = s(o, r)), l !== void 0 && c === l;
|
|
8832
8851
|
}
|
|
8833
|
-
var
|
|
8852
|
+
var wm = function(e) {
|
|
8834
8853
|
var t, n, r, i, a;
|
|
8835
8854
|
if (!e.leftIsArray) return;
|
|
8836
8855
|
let o = {
|
|
8837
8856
|
objectHash: (t = e.options) == null ? void 0 : t.objectHash,
|
|
8838
8857
|
matchByPosition: (n = e.options) == null ? void 0 : n.matchByPosition
|
|
8839
8858
|
}, s = 0, c = 0, l, u, d, f = e.left, p = e.right, m = f.length, h = p.length, g;
|
|
8840
|
-
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !
|
|
8841
|
-
for (; c + s < m && c + s < h &&
|
|
8859
|
+
for (m > 0 && h > 0 && !o.objectHash && typeof o.matchByPosition != "boolean" && (o.matchByPosition = !Sm(f, p, m, h)); s < m && s < h && Cm(f, p, s, s, o);) l = s, g = new fm(f[l], p[l]), e.push(g, l), s++;
|
|
8860
|
+
for (; c + s < m && c + s < h && Cm(f, p, m - 1 - c, h - 1 - c, o);) u = m - 1 - c, d = h - 1 - c, g = new fm(f[u], p[d]), e.push(g, d), c++;
|
|
8842
8861
|
let _;
|
|
8843
8862
|
if (s + c === m) {
|
|
8844
8863
|
if (m === h) {
|
|
@@ -8862,7 +8881,7 @@ var Cm = function(e) {
|
|
|
8862
8881
|
return;
|
|
8863
8882
|
}
|
|
8864
8883
|
o.hashCache1 = void 0, o.hashCache2 = void 0;
|
|
8865
|
-
let v = f.slice(s, m - c), y = p.slice(s, h - c), b =
|
|
8884
|
+
let v = f.slice(s, m - c), y = p.slice(s, h - c), b = bm.get(v, y, Cm, o), x = [];
|
|
8866
8885
|
for (_ = _ || { _t: "a" }, l = s; l < m - c; l++) if (b.indices1.indexOf(l - s) < 0) {
|
|
8867
8886
|
let t = `_${l}`;
|
|
8868
8887
|
_[t] = [
|
|
@@ -8883,8 +8902,8 @@ var Cm = function(e) {
|
|
|
8883
8902
|
if (S && w > 0) for (let n = 0; n < w; n++) {
|
|
8884
8903
|
u = x[n];
|
|
8885
8904
|
let r = u === void 0 ? void 0 : _[`_${u}`];
|
|
8886
|
-
if (u !== void 0 && r &&
|
|
8887
|
-
r.splice(1, 2, l,
|
|
8905
|
+
if (u !== void 0 && r && Cm(v, y, u - s, l - s, o)) {
|
|
8906
|
+
r.splice(1, 2, l, xm), r.splice(1, 2, l, xm), C || (r[0] = ""), d = l, g = new fm(f[u], p[d]), e.push(g, d), x.splice(n, 1), t = !0;
|
|
8888
8907
|
break;
|
|
8889
8908
|
}
|
|
8890
8909
|
}
|
|
@@ -8892,20 +8911,20 @@ var Cm = function(e) {
|
|
|
8892
8911
|
} else {
|
|
8893
8912
|
if (b.indices1[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices1: ${b.indices1}`);
|
|
8894
8913
|
if (u = b.indices1[t] + s, b.indices2[t] === void 0) throw Error(`Invalid indexOnArray2: ${t}, seq.indices2: ${b.indices2}`);
|
|
8895
|
-
d = b.indices2[t] + s, g = new
|
|
8914
|
+
d = b.indices2[t] + s, g = new fm(f[u], p[d]), e.push(g, d);
|
|
8896
8915
|
}
|
|
8897
8916
|
}
|
|
8898
8917
|
e.setResult(_).exit();
|
|
8899
8918
|
};
|
|
8900
|
-
|
|
8901
|
-
var
|
|
8919
|
+
wm.filterName = "arrays";
|
|
8920
|
+
var Tm = {
|
|
8902
8921
|
numerically(e, t) {
|
|
8903
8922
|
return e - t;
|
|
8904
8923
|
},
|
|
8905
8924
|
numericallyBy(e) {
|
|
8906
8925
|
return (t, n) => t[e] - n[e];
|
|
8907
8926
|
}
|
|
8908
|
-
},
|
|
8927
|
+
}, Em = function(e) {
|
|
8909
8928
|
var t;
|
|
8910
8929
|
if (!e.nested) return;
|
|
8911
8930
|
let n = e.delta;
|
|
@@ -8914,7 +8933,7 @@ var wm = {
|
|
|
8914
8933
|
for (r in a) if (r !== "_t") {
|
|
8915
8934
|
if (r[0] === "_") {
|
|
8916
8935
|
let e = r;
|
|
8917
|
-
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] ===
|
|
8936
|
+
if (a[e] !== void 0 && (a[e][2] === 0 || a[e][2] === xm)) s.push(Number.parseInt(r.slice(1), 10));
|
|
8918
8937
|
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]}`);
|
|
8919
8938
|
} else {
|
|
8920
8939
|
let e = r;
|
|
@@ -8927,15 +8946,15 @@ var wm = {
|
|
|
8927
8946
|
});
|
|
8928
8947
|
}
|
|
8929
8948
|
}
|
|
8930
|
-
for (s = s.sort(
|
|
8949
|
+
for (s = s.sort(Tm.numerically), r = s.length - 1; r >= 0; r--) {
|
|
8931
8950
|
if (i = s[r], i === void 0) continue;
|
|
8932
8951
|
let e = a[`_${i}`], t = o.splice(i, 1)[0];
|
|
8933
|
-
(e == null ? void 0 : e[2]) ===
|
|
8952
|
+
(e == null ? void 0 : e[2]) === xm && c.push({
|
|
8934
8953
|
index: e[1],
|
|
8935
8954
|
value: t
|
|
8936
8955
|
});
|
|
8937
8956
|
}
|
|
8938
|
-
c = c.sort(
|
|
8957
|
+
c = c.sort(Tm.numericallyBy("index"));
|
|
8939
8958
|
let u = c.length;
|
|
8940
8959
|
for (r = 0; r < u; r++) {
|
|
8941
8960
|
let e = c[r];
|
|
@@ -8945,7 +8964,7 @@ var wm = {
|
|
|
8945
8964
|
if (d > 0) for (r = 0; r < d; r++) {
|
|
8946
8965
|
let t = l[r];
|
|
8947
8966
|
if (t === void 0) continue;
|
|
8948
|
-
let n = new
|
|
8967
|
+
let n = new pm(o[t.index], t.delta);
|
|
8949
8968
|
e.push(n, t.index);
|
|
8950
8969
|
}
|
|
8951
8970
|
if (!e.children) {
|
|
@@ -8954,8 +8973,8 @@ var wm = {
|
|
|
8954
8973
|
}
|
|
8955
8974
|
e.exit();
|
|
8956
8975
|
};
|
|
8957
|
-
|
|
8958
|
-
var
|
|
8976
|
+
Em.filterName = "arrays";
|
|
8977
|
+
var Dm = function(e) {
|
|
8959
8978
|
if (!e || !e.children || e.delta._t !== "a") return;
|
|
8960
8979
|
let t = e.left, n = e.children.length;
|
|
8961
8980
|
for (let r = 0; r < n; r++) {
|
|
@@ -8966,16 +8985,16 @@ var Em = function(e) {
|
|
|
8966
8985
|
}
|
|
8967
8986
|
e.setResult(t).exit();
|
|
8968
8987
|
};
|
|
8969
|
-
|
|
8970
|
-
var
|
|
8988
|
+
Dm.filterName = "arraysCollectChildren";
|
|
8989
|
+
var Om = function(e) {
|
|
8971
8990
|
if (!e.nested) {
|
|
8972
8991
|
let t = e.delta;
|
|
8973
|
-
if (t[2] ===
|
|
8992
|
+
if (t[2] === xm) {
|
|
8974
8993
|
let n = t;
|
|
8975
8994
|
e.newName = `_${n[1]}`, e.setResult([
|
|
8976
8995
|
n[0],
|
|
8977
8996
|
Number.parseInt(e.childName.substring(1), 10),
|
|
8978
|
-
|
|
8997
|
+
xm
|
|
8979
8998
|
]).exit();
|
|
8980
8999
|
}
|
|
8981
9000
|
return;
|
|
@@ -8985,20 +9004,20 @@ var Dm = function(e) {
|
|
|
8985
9004
|
let n = t;
|
|
8986
9005
|
for (let t in n) {
|
|
8987
9006
|
if (t === "_t") continue;
|
|
8988
|
-
let r = new
|
|
9007
|
+
let r = new mm(n[t]);
|
|
8989
9008
|
e.push(r, t);
|
|
8990
9009
|
}
|
|
8991
9010
|
e.exit();
|
|
8992
9011
|
};
|
|
8993
|
-
|
|
8994
|
-
var
|
|
9012
|
+
Om.filterName = "arrays";
|
|
9013
|
+
var km = (e, t, n) => {
|
|
8995
9014
|
if (typeof t == "string" && t[0] === "_") return Number.parseInt(t.substring(1), 10);
|
|
8996
9015
|
if (Array.isArray(n) && n[2] === 0) return `_${t}`;
|
|
8997
9016
|
let r = +t;
|
|
8998
9017
|
for (let n in e) {
|
|
8999
9018
|
let i = e[n];
|
|
9000
9019
|
if (Array.isArray(i)) {
|
|
9001
|
-
if (i[2] ===
|
|
9020
|
+
if (i[2] === xm) {
|
|
9002
9021
|
let e = Number.parseInt(n.substring(1), 10), a = i[1];
|
|
9003
9022
|
if (a === +t) return e;
|
|
9004
9023
|
e <= r && a > r ? r++ : e >= r && a < r && r--;
|
|
@@ -9006,7 +9025,7 @@ var Om = (e, t, n) => {
|
|
|
9006
9025
|
}
|
|
9007
9026
|
}
|
|
9008
9027
|
return r;
|
|
9009
|
-
},
|
|
9028
|
+
}, Am = (e) => {
|
|
9010
9029
|
if (!e || !e.children) return;
|
|
9011
9030
|
let t = e.delta;
|
|
9012
9031
|
if (t._t !== "a") return;
|
|
@@ -9017,22 +9036,22 @@ var Om = (e, t, n) => {
|
|
|
9017
9036
|
let a = r.newName;
|
|
9018
9037
|
if (a === void 0) {
|
|
9019
9038
|
if (r.childName === void 0) throw Error("child.childName is undefined");
|
|
9020
|
-
a =
|
|
9039
|
+
a = km(n, r.childName, r.result);
|
|
9021
9040
|
}
|
|
9022
9041
|
i[a] !== r.result && (i[a] = r.result);
|
|
9023
9042
|
}
|
|
9024
9043
|
e.setResult(i).exit();
|
|
9025
9044
|
};
|
|
9026
|
-
|
|
9045
|
+
Am.filterName = "arraysCollectChildren";
|
|
9027
9046
|
//#endregion
|
|
9028
9047
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/dates.js
|
|
9029
|
-
var
|
|
9048
|
+
var jm = function(e) {
|
|
9030
9049
|
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();
|
|
9031
9050
|
};
|
|
9032
|
-
|
|
9051
|
+
jm.filterName = "dates";
|
|
9033
9052
|
//#endregion
|
|
9034
9053
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/nested.js
|
|
9035
|
-
var
|
|
9054
|
+
var Mm = /* @__PURE__ */ new Set(["__proto__"]), Nm = (e) => {
|
|
9036
9055
|
if (!e || !e.children) return;
|
|
9037
9056
|
let t = e.children.length, n = e.result;
|
|
9038
9057
|
for (let r = 0; r < t; r++) {
|
|
@@ -9044,18 +9063,18 @@ var jm = /* @__PURE__ */ new Set(["__proto__"]), Mm = (e) => {
|
|
|
9044
9063
|
}
|
|
9045
9064
|
n && e.leftIsArray && (n._t = "a"), e.setResult(n).exit();
|
|
9046
9065
|
};
|
|
9047
|
-
|
|
9048
|
-
var
|
|
9066
|
+
Nm.filterName = "collectChildren";
|
|
9067
|
+
var Pm = (e) => {
|
|
9049
9068
|
var t;
|
|
9050
9069
|
if (e.leftIsArray || e.leftType !== "object") return;
|
|
9051
9070
|
let n = e.left, r = e.right, i = (t = e.options) == null ? void 0 : t.propertyFilter;
|
|
9052
9071
|
for (let t in n) {
|
|
9053
9072
|
if (!Object.prototype.hasOwnProperty.call(n, t) || i && !i(t, e)) continue;
|
|
9054
|
-
let a = new
|
|
9073
|
+
let a = new fm(n[t], r[t]);
|
|
9055
9074
|
e.push(a, t);
|
|
9056
9075
|
}
|
|
9057
9076
|
for (let t in r) if (Object.prototype.hasOwnProperty.call(r, t) && !(i && !i(t, e)) && n[t] === void 0) {
|
|
9058
|
-
let n = new
|
|
9077
|
+
let n = new fm(void 0, r[t]);
|
|
9059
9078
|
e.push(n, t);
|
|
9060
9079
|
}
|
|
9061
9080
|
if (!e.children || e.children.length === 0) {
|
|
@@ -9064,15 +9083,15 @@ var Nm = (e) => {
|
|
|
9064
9083
|
}
|
|
9065
9084
|
e.exit();
|
|
9066
9085
|
};
|
|
9067
|
-
|
|
9068
|
-
var
|
|
9086
|
+
Pm.filterName = "objects";
|
|
9087
|
+
var Fm = function(e) {
|
|
9069
9088
|
if (!e.nested) return;
|
|
9070
9089
|
let t = e.delta;
|
|
9071
9090
|
if (t._t) return;
|
|
9072
9091
|
let n = t, r = !1;
|
|
9073
9092
|
for (let t in n) {
|
|
9074
|
-
if (
|
|
9075
|
-
let i = e.left, a = new
|
|
9093
|
+
if (Mm.has(t) || !Object.prototype.hasOwnProperty.call(n, t)) continue;
|
|
9094
|
+
let i = e.left, a = new pm(typeof i == "object" && i && Object.prototype.hasOwnProperty.call(i, t) ? i[t] : void 0, n[t]);
|
|
9076
9095
|
e.push(a, t), r = !0;
|
|
9077
9096
|
}
|
|
9078
9097
|
if (!r) {
|
|
@@ -9081,8 +9100,8 @@ var Pm = function(e) {
|
|
|
9081
9100
|
}
|
|
9082
9101
|
e.exit();
|
|
9083
9102
|
};
|
|
9084
|
-
|
|
9085
|
-
var
|
|
9103
|
+
Fm.filterName = "objects";
|
|
9104
|
+
var Im = function(e) {
|
|
9086
9105
|
if (!e || !e.children || e.delta._t) return;
|
|
9087
9106
|
if (e.left === null || typeof e.left != "object") {
|
|
9088
9107
|
e.setResult(e.left).exit();
|
|
@@ -9093,17 +9112,17 @@ var Fm = function(e) {
|
|
|
9093
9112
|
let n = e.children[r];
|
|
9094
9113
|
if (n === void 0) continue;
|
|
9095
9114
|
let i = n.childName;
|
|
9096
|
-
|
|
9115
|
+
Mm.has(i) || (Object.prototype.hasOwnProperty.call(e.left, i) && n.result === void 0 ? delete t[i] : t[i] !== n.result && (t[i] = n.result));
|
|
9097
9116
|
}
|
|
9098
9117
|
e.setResult(t).exit();
|
|
9099
9118
|
};
|
|
9100
|
-
|
|
9101
|
-
var
|
|
9119
|
+
Im.filterName = "collectChildren";
|
|
9120
|
+
var Lm = function(e) {
|
|
9102
9121
|
if (!e.nested || e.delta._t) return;
|
|
9103
9122
|
let t = e.delta, n = !1;
|
|
9104
9123
|
for (let r in t) {
|
|
9105
|
-
if (
|
|
9106
|
-
let i = new
|
|
9124
|
+
if (Mm.has(r) || !Object.prototype.hasOwnProperty.call(t, r)) continue;
|
|
9125
|
+
let i = new mm(t[r]);
|
|
9107
9126
|
e.push(i, r), n = !0;
|
|
9108
9127
|
}
|
|
9109
9128
|
if (!n) {
|
|
@@ -9112,25 +9131,25 @@ var Im = function(e) {
|
|
|
9112
9131
|
}
|
|
9113
9132
|
e.exit();
|
|
9114
9133
|
};
|
|
9115
|
-
|
|
9116
|
-
var
|
|
9134
|
+
Lm.filterName = "objects";
|
|
9135
|
+
var Rm = (e) => {
|
|
9117
9136
|
if (!e || !e.children || e.delta._t) return;
|
|
9118
9137
|
let t = e.children.length, n = {};
|
|
9119
9138
|
for (let r = 0; r < t; r++) {
|
|
9120
9139
|
let t = e.children[r];
|
|
9121
9140
|
if (t === void 0) continue;
|
|
9122
9141
|
let i = t.childName;
|
|
9123
|
-
|
|
9142
|
+
Mm.has(i) || n[i] !== t.result && (n[i] = t.result);
|
|
9124
9143
|
}
|
|
9125
9144
|
e.setResult(n).exit();
|
|
9126
9145
|
};
|
|
9127
|
-
|
|
9146
|
+
Rm.filterName = "collectChildren";
|
|
9128
9147
|
//#endregion
|
|
9129
9148
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/texts.js
|
|
9130
|
-
var
|
|
9131
|
-
function
|
|
9149
|
+
var zm = 2, Bm = 60, Vm = null;
|
|
9150
|
+
function Hm(e, t) {
|
|
9132
9151
|
var n;
|
|
9133
|
-
if (!
|
|
9152
|
+
if (!Vm) {
|
|
9134
9153
|
let r;
|
|
9135
9154
|
if ((n = e == null ? void 0 : e.textDiff) != null && n.diffMatchPatch) r = new e.textDiff.diffMatchPatch();
|
|
9136
9155
|
else {
|
|
@@ -9138,7 +9157,7 @@ function Vm(e, t) {
|
|
|
9138
9157
|
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.");
|
|
9139
9158
|
throw e.diff_match_patch_not_found = !0, e;
|
|
9140
9159
|
}
|
|
9141
|
-
|
|
9160
|
+
Vm = {
|
|
9142
9161
|
diff: (e, t) => r.patch_toText(r.patch_make(e, t)),
|
|
9143
9162
|
patch: (e, t) => {
|
|
9144
9163
|
let n = r.patch_apply(r.patch_fromText(t), e);
|
|
@@ -9150,17 +9169,17 @@ function Vm(e, t) {
|
|
|
9150
9169
|
}
|
|
9151
9170
|
};
|
|
9152
9171
|
}
|
|
9153
|
-
return
|
|
9172
|
+
return Vm;
|
|
9154
9173
|
}
|
|
9155
|
-
var
|
|
9174
|
+
var Um = function(e) {
|
|
9156
9175
|
var t, n;
|
|
9157
9176
|
if (e.leftType !== "string") return;
|
|
9158
|
-
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) ||
|
|
9177
|
+
let r = e.left, i = e.right, a = ((n = (t = e.options) == null ? void 0 : t.textDiff) == null ? void 0 : n.minLength) || Bm;
|
|
9159
9178
|
if (r.length < a || i.length < a) {
|
|
9160
9179
|
e.setResult([r, i]).exit();
|
|
9161
9180
|
return;
|
|
9162
9181
|
}
|
|
9163
|
-
let o =
|
|
9182
|
+
let o = Hm(e.options);
|
|
9164
9183
|
if (!o) {
|
|
9165
9184
|
e.setResult([r, i]).exit();
|
|
9166
9185
|
return;
|
|
@@ -9169,19 +9188,19 @@ var Hm = function(e) {
|
|
|
9169
9188
|
e.setResult([
|
|
9170
9189
|
s(r, i),
|
|
9171
9190
|
0,
|
|
9172
|
-
|
|
9191
|
+
zm
|
|
9173
9192
|
]).exit();
|
|
9174
9193
|
};
|
|
9175
|
-
|
|
9176
|
-
var
|
|
9194
|
+
Um.filterName = "texts";
|
|
9195
|
+
var Wm = function(e) {
|
|
9177
9196
|
if (e.nested) return;
|
|
9178
9197
|
let t = e.delta;
|
|
9179
|
-
if (t[2] !==
|
|
9180
|
-
let n = t, r =
|
|
9198
|
+
if (t[2] !== zm) return;
|
|
9199
|
+
let n = t, r = Hm(e.options, !0).patch;
|
|
9181
9200
|
e.setResult(r(e.left, n[0])).exit();
|
|
9182
9201
|
};
|
|
9183
|
-
|
|
9184
|
-
var
|
|
9202
|
+
Wm.filterName = "texts";
|
|
9203
|
+
var Gm = (e) => {
|
|
9185
9204
|
var t, n, r;
|
|
9186
9205
|
let i = /^@@ +-(\d+),(\d+) +\+(\d+),(\d+) +@@$/, a = e.split("\n");
|
|
9187
9206
|
for (let e = 0; e < a.length; e++) {
|
|
@@ -9202,21 +9221,21 @@ var Wm = (e) => {
|
|
|
9202
9221
|
} else s === "-" && (a[e] = `+${(r = a[e]) == null ? void 0 : r.slice(1)}`);
|
|
9203
9222
|
}
|
|
9204
9223
|
return a.join("\n");
|
|
9205
|
-
},
|
|
9224
|
+
}, Km = function(e) {
|
|
9206
9225
|
if (e.nested) return;
|
|
9207
9226
|
let t = e.delta;
|
|
9208
|
-
if (t[2] !==
|
|
9227
|
+
if (t[2] !== zm) return;
|
|
9209
9228
|
let n = t;
|
|
9210
9229
|
e.setResult([
|
|
9211
|
-
|
|
9230
|
+
Gm(n[0]),
|
|
9212
9231
|
0,
|
|
9213
|
-
|
|
9232
|
+
zm
|
|
9214
9233
|
]).exit();
|
|
9215
9234
|
};
|
|
9216
|
-
|
|
9235
|
+
Km.filterName = "texts";
|
|
9217
9236
|
//#endregion
|
|
9218
9237
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/filters/trivial.js
|
|
9219
|
-
var
|
|
9238
|
+
var qm = function(e) {
|
|
9220
9239
|
if (e.left === e.right) {
|
|
9221
9240
|
e.setResult(void 0).exit();
|
|
9222
9241
|
return;
|
|
@@ -9249,8 +9268,8 @@ var Km = function(e) {
|
|
|
9249
9268
|
}
|
|
9250
9269
|
e.left instanceof RegExp && (e.right instanceof RegExp ? e.setResult([e.left.toString(), e.right.toString()]).exit() : e.setResult([e.left, e.right]).exit());
|
|
9251
9270
|
};
|
|
9252
|
-
|
|
9253
|
-
var
|
|
9271
|
+
qm.filterName = "trivial";
|
|
9272
|
+
var Jm = function(e) {
|
|
9254
9273
|
if (e.delta === void 0) {
|
|
9255
9274
|
e.setResult(e.left).exit();
|
|
9256
9275
|
return;
|
|
@@ -9274,8 +9293,8 @@ var qm = function(e) {
|
|
|
9274
9293
|
}
|
|
9275
9294
|
t.length === 3 && t[2] === 0 && e.setResult(void 0).exit();
|
|
9276
9295
|
};
|
|
9277
|
-
|
|
9278
|
-
var
|
|
9296
|
+
Jm.filterName = "trivial";
|
|
9297
|
+
var Ym = function(e) {
|
|
9279
9298
|
if (e.delta === void 0) {
|
|
9280
9299
|
e.setResult(e.delta).exit();
|
|
9281
9300
|
return;
|
|
@@ -9296,36 +9315,36 @@ var Jm = function(e) {
|
|
|
9296
9315
|
}
|
|
9297
9316
|
t.length === 3 && t[2] === 0 && e.setResult([t[0]]).exit();
|
|
9298
9317
|
};
|
|
9299
|
-
|
|
9318
|
+
Ym.filterName = "trivial";
|
|
9300
9319
|
//#endregion
|
|
9301
9320
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/diffpatcher.js
|
|
9302
|
-
var
|
|
9321
|
+
var Xm = class {
|
|
9303
9322
|
constructor(e) {
|
|
9304
|
-
this.processor = new
|
|
9323
|
+
this.processor = new gm(e), this.processor.pipe(new hm("diff").append(Nm, qm, jm, Um, Pm, wm).shouldHaveResult()), this.processor.pipe(new hm("patch").append(Im, Dm, Jm, Wm, Fm, Em).shouldHaveResult()), this.processor.pipe(new hm("reverse").append(Rm, Am, Ym, Km, Lm, Om).shouldHaveResult());
|
|
9305
9324
|
}
|
|
9306
9325
|
options(e) {
|
|
9307
9326
|
return this.processor.options(e);
|
|
9308
9327
|
}
|
|
9309
9328
|
diff(e, t) {
|
|
9310
|
-
return this.processor.process(new
|
|
9329
|
+
return this.processor.process(new fm(e, t));
|
|
9311
9330
|
}
|
|
9312
9331
|
patch(e, t) {
|
|
9313
|
-
return this.processor.process(new
|
|
9332
|
+
return this.processor.process(new pm(e, t));
|
|
9314
9333
|
}
|
|
9315
9334
|
reverse(e) {
|
|
9316
|
-
return this.processor.process(new
|
|
9335
|
+
return this.processor.process(new mm(e));
|
|
9317
9336
|
}
|
|
9318
9337
|
unpatch(e, t) {
|
|
9319
9338
|
return this.patch(e, this.reverse(t));
|
|
9320
9339
|
}
|
|
9321
9340
|
clone(e) {
|
|
9322
|
-
return
|
|
9341
|
+
return cm(e);
|
|
9323
9342
|
}
|
|
9324
9343
|
};
|
|
9325
9344
|
//#endregion
|
|
9326
9345
|
//#region node_modules/.pnpm/jsondiffpatch@0.7.6/node_modules/jsondiffpatch/lib/index.js
|
|
9327
|
-
function
|
|
9328
|
-
return new
|
|
9346
|
+
function Zm(e) {
|
|
9347
|
+
return new Xm(e);
|
|
9329
9348
|
}
|
|
9330
9349
|
//#endregion
|
|
9331
9350
|
//#region node_modules/.pnpm/@dmsnell+diff-match-patch@1.1.0/node_modules/@dmsnell/diff-match-patch/index.js
|
|
@@ -9887,46 +9906,46 @@ $.Diff = function(e, t) {
|
|
|
9887
9906
|
};
|
|
9888
9907
|
//#endregion
|
|
9889
9908
|
//#region src/components/audit-log/create-diff-patcher.tsx
|
|
9890
|
-
var
|
|
9909
|
+
var Qm = (e = {}) => Zm({
|
|
9891
9910
|
...e,
|
|
9892
9911
|
textDiff: {
|
|
9893
9912
|
diffMatchPatch: $,
|
|
9894
9913
|
minLength: 120
|
|
9895
9914
|
},
|
|
9896
9915
|
cloneDiffValues: !0
|
|
9897
|
-
}),
|
|
9916
|
+
}), $m = ["user", "unittemplate"], eh = Qm(), th = (e, t, n) => {
|
|
9898
9917
|
let r = Object.fromEntries(e.map((e) => [e.sectionKey, e.sectionLabel]));
|
|
9899
9918
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
9900
9919
|
let n = r[t[e]];
|
|
9901
9920
|
if (n) return n;
|
|
9902
9921
|
}
|
|
9903
9922
|
return n || "";
|
|
9904
|
-
},
|
|
9923
|
+
}, nh = (e) => {
|
|
9905
9924
|
let t = (e) => _r(e) ? kr(e) : String(e);
|
|
9906
9925
|
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);
|
|
9907
|
-
},
|
|
9926
|
+
}, rh = (e) => {
|
|
9908
9927
|
switch (e.length) {
|
|
9909
9928
|
case 1: {
|
|
9910
9929
|
let [t] = e;
|
|
9911
9930
|
return {
|
|
9912
9931
|
type: "created",
|
|
9913
9932
|
before: "",
|
|
9914
|
-
after:
|
|
9933
|
+
after: nh(t)
|
|
9915
9934
|
};
|
|
9916
9935
|
}
|
|
9917
9936
|
case 2: {
|
|
9918
9937
|
let [t, n] = e;
|
|
9919
9938
|
return {
|
|
9920
9939
|
type: "modified",
|
|
9921
|
-
before:
|
|
9922
|
-
after:
|
|
9940
|
+
before: nh(t),
|
|
9941
|
+
after: nh(n)
|
|
9923
9942
|
};
|
|
9924
9943
|
}
|
|
9925
9944
|
case 3: {
|
|
9926
9945
|
let [t] = e;
|
|
9927
9946
|
return {
|
|
9928
9947
|
type: "deleted",
|
|
9929
|
-
before:
|
|
9948
|
+
before: nh(t),
|
|
9930
9949
|
after: ""
|
|
9931
9950
|
};
|
|
9932
9951
|
}
|
|
@@ -9936,15 +9955,15 @@ var Zm = (e = {}) => Xm({
|
|
|
9936
9955
|
after: ""
|
|
9937
9956
|
};
|
|
9938
9957
|
}
|
|
9939
|
-
},
|
|
9940
|
-
let r =
|
|
9958
|
+
}, ih = (e) => Array.isArray(e), ah = (e, t) => t ? ih(t) ? t.length === 0 ? e : t.reduce((e, t) => eh.unpatch(tn(e), tn(t)), tn(e)) : eh.unpatch(tn(e), tn(t)) : e, oh = (e) => e.createdAt || e.date, sh = (e, t, n) => {
|
|
9959
|
+
let r = oh(e);
|
|
9941
9960
|
if (!r) return {
|
|
9942
9961
|
oldJson: "",
|
|
9943
9962
|
newJson: "",
|
|
9944
9963
|
error: `Cannot create comparison view: missing date for audit log ${e.id}`
|
|
9945
9964
|
};
|
|
9946
9965
|
let i = t.filter((e) => {
|
|
9947
|
-
let t =
|
|
9966
|
+
let t = oh(e);
|
|
9948
9967
|
return !!(e.diffs && t && t >= r);
|
|
9949
9968
|
}), a = Array.from({ length: i.length + 1 });
|
|
9950
9969
|
a[0] = tn(n);
|
|
@@ -9957,7 +9976,7 @@ var Zm = (e = {}) => Xm({
|
|
|
9957
9976
|
a[e + 1] = a[e];
|
|
9958
9977
|
continue;
|
|
9959
9978
|
}
|
|
9960
|
-
a[e + 1] =
|
|
9979
|
+
a[e + 1] = ah(a[e], t);
|
|
9961
9980
|
}
|
|
9962
9981
|
let e = i.length > 0 ? a[i.length - 1] : n, t = i.length > 0 ? a[i.length] : n;
|
|
9963
9982
|
o = JSON.stringify(t == null ? "" : t, null, 2), s = JSON.stringify(e == null ? "" : e, null, 2);
|
|
@@ -9972,10 +9991,10 @@ var Zm = (e = {}) => Xm({
|
|
|
9972
9991
|
oldJson: o,
|
|
9973
9992
|
newJson: s
|
|
9974
9993
|
};
|
|
9975
|
-
},
|
|
9994
|
+
}, ch = (e, t, n = {}, r = []) => {
|
|
9976
9995
|
var i;
|
|
9977
9996
|
if (!e) return;
|
|
9978
|
-
let a = [
|
|
9997
|
+
let a = [...$m, ...(i = n.hiddenKeys) == null ? [] : i];
|
|
9979
9998
|
Object.keys(e).forEach((i) => {
|
|
9980
9999
|
var o;
|
|
9981
10000
|
let s = e[i];
|
|
@@ -9988,12 +10007,12 @@ var Zm = (e = {}) => Xm({
|
|
|
9988
10007
|
sn(s) ? t.push({
|
|
9989
10008
|
deltaFormat: [...s],
|
|
9990
10009
|
path: c
|
|
9991
|
-
}) : hn(s) &&
|
|
10010
|
+
}) : hn(s) && ch(s, t, n, c);
|
|
9992
10011
|
});
|
|
9993
|
-
},
|
|
10012
|
+
}, lh = (e, t = {}) => {
|
|
9994
10013
|
let n = [];
|
|
9995
|
-
return e ? (
|
|
9996
|
-
},
|
|
10014
|
+
return e ? (ch(e, n, t), n) : [];
|
|
10015
|
+
}, uh = (e) => e.replace(/\[\d+\]/g, "").replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]/g, " ").replace(/\s+/g, " ").trim().replace(/^./, (e) => e.toUpperCase()), dh = (e) => {
|
|
9997
10016
|
if (e == null || e === "") return "empty";
|
|
9998
10017
|
if (typeof e == "boolean") return e ? "true" : "false";
|
|
9999
10018
|
if (typeof e == "string") return e;
|
|
@@ -10004,27 +10023,27 @@ var Zm = (e = {}) => Xm({
|
|
|
10004
10023
|
} catch {
|
|
10005
10024
|
return String(e);
|
|
10006
10025
|
}
|
|
10007
|
-
},
|
|
10026
|
+
}, fh = (e, t = e.length - 1) => {
|
|
10008
10027
|
if (t >= e.length) return "Value";
|
|
10009
10028
|
let n = e[t];
|
|
10010
|
-
return !n || mr(n) ?
|
|
10011
|
-
},
|
|
10012
|
-
let o =
|
|
10029
|
+
return !n || mr(n) ? fh(e, t - 1) : uh(n);
|
|
10030
|
+
}, ph = ({ userName: e, type: t, property: n, before: r, after: i, sectionName: a }) => {
|
|
10031
|
+
let o = dh(r), s = dh(i), c = a ? ` in ${a}` : "";
|
|
10013
10032
|
switch (t) {
|
|
10014
10033
|
case "modified": return `${e} updated ${n} from ${o} to ${s}${c}.`;
|
|
10015
10034
|
case "created": return `${e} created ${s}${c}.`;
|
|
10016
10035
|
case "deleted": return `${e} deleted ${o}${c}.`;
|
|
10017
10036
|
default: return `${e} changed ${n}${c}.`;
|
|
10018
10037
|
}
|
|
10019
|
-
},
|
|
10038
|
+
}, mh = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => {
|
|
10020
10039
|
let i = {
|
|
10021
10040
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
10022
10041
|
rows: n.map((n) => {
|
|
10023
|
-
let { deltaFormat: i, path: a } = n, o =
|
|
10024
|
-
return { cells: [{ value:
|
|
10042
|
+
let { deltaFormat: i, path: a } = n, o = th(e, a, r), { type: s, before: c, after: l } = rh(i);
|
|
10043
|
+
return { cells: [{ value: ph({
|
|
10025
10044
|
userName: t,
|
|
10026
10045
|
type: s,
|
|
10027
|
-
property:
|
|
10046
|
+
property: fh(a),
|
|
10028
10047
|
before: c,
|
|
10029
10048
|
after: l,
|
|
10030
10049
|
sectionName: o
|
|
@@ -10032,7 +10051,7 @@ var Zm = (e = {}) => Xm({
|
|
|
10032
10051
|
})
|
|
10033
10052
|
};
|
|
10034
10053
|
return /* @__PURE__ */ S(nu, { table: i });
|
|
10035
|
-
},
|
|
10054
|
+
}, hh = Object.freeze({
|
|
10036
10055
|
summary: {
|
|
10037
10056
|
label: "Summary",
|
|
10038
10057
|
value: "summary"
|
|
@@ -10041,18 +10060,18 @@ var Zm = (e = {}) => Xm({
|
|
|
10041
10060
|
label: "Compare",
|
|
10042
10061
|
value: "compare"
|
|
10043
10062
|
}
|
|
10044
|
-
}),
|
|
10045
|
-
let c = [
|
|
10063
|
+
}), gh = ({ auditLog: e, auditLogs: t, data: n, isOpen: r, transformDiffsConfig: i, sectionNames: a, defaultSectionName: o, onClose: s }) => {
|
|
10064
|
+
let c = [hh.summary, hh.compare].map(({ label: e, value: t }) => ({
|
|
10046
10065
|
label: e,
|
|
10047
10066
|
value: t
|
|
10048
10067
|
})), [l, u] = v(c[0]), { diffs: d = void 0 } = e || {};
|
|
10049
10068
|
if (!d) return null;
|
|
10050
|
-
let { oldJson: f, newJson: p, error: m } =
|
|
10051
|
-
return /* @__PURE__ */ S(
|
|
10069
|
+
let { oldJson: f, newJson: p, error: m } = sh(e, t, n);
|
|
10070
|
+
return /* @__PURE__ */ S(Ts, {
|
|
10052
10071
|
visible: r,
|
|
10053
10072
|
centered: !0,
|
|
10054
10073
|
onEscape: s,
|
|
10055
|
-
children: /* @__PURE__ */ S(
|
|
10074
|
+
children: /* @__PURE__ */ S(rs, { dialog: {
|
|
10056
10075
|
scroll: !0,
|
|
10057
10076
|
heading: "Comparison view",
|
|
10058
10077
|
content: /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(Qf, {
|
|
@@ -10060,19 +10079,19 @@ var Zm = (e = {}) => Xm({
|
|
|
10060
10079
|
onChange: (e) => u(c.find((t) => t.value === e.target.value)),
|
|
10061
10080
|
options: c,
|
|
10062
10081
|
value: l
|
|
10063
|
-
}), l.value === "summary" ? /* @__PURE__ */ S(
|
|
10082
|
+
}), l.value === "summary" ? /* @__PURE__ */ S(mh, {
|
|
10064
10083
|
userName: e.userName,
|
|
10065
10084
|
sectionNames: a,
|
|
10066
|
-
diffs:
|
|
10085
|
+
diffs: lh(d, i),
|
|
10067
10086
|
defaultSectionName: o
|
|
10068
10087
|
}) : m ? /* @__PURE__ */ S("div", {
|
|
10069
10088
|
style: { padding: 16 },
|
|
10070
10089
|
children: m
|
|
10071
|
-
}) : /* @__PURE__ */ S(
|
|
10090
|
+
}) : /* @__PURE__ */ S(Qp, {
|
|
10072
10091
|
oldJson: f,
|
|
10073
10092
|
newJson: p
|
|
10074
10093
|
})] }),
|
|
10075
|
-
footer: /* @__PURE__ */ S(
|
|
10094
|
+
footer: /* @__PURE__ */ S(q, {
|
|
10076
10095
|
label: "Cancel",
|
|
10077
10096
|
onClick: s
|
|
10078
10097
|
}),
|
|
@@ -10081,7 +10100,7 @@ var Zm = (e = {}) => Xm({
|
|
|
10081
10100
|
height: "90vh"
|
|
10082
10101
|
} })
|
|
10083
10102
|
});
|
|
10084
|
-
},
|
|
10103
|
+
}, _h = [
|
|
10085
10104
|
{
|
|
10086
10105
|
label: "10 / page",
|
|
10087
10106
|
value: 10
|
|
@@ -10094,8 +10113,8 @@ var Zm = (e = {}) => Xm({
|
|
|
10094
10113
|
label: "50 / page",
|
|
10095
10114
|
value: 50
|
|
10096
10115
|
}
|
|
10097
|
-
],
|
|
10098
|
-
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s =
|
|
10116
|
+
], vh = (e, t = {}) => {
|
|
10117
|
+
let { diffs: n, userName: r, source: i, operation: a, operationMetaData: o } = e, s = lh(n, t).length, c = s ? `${s} change${s === 1 ? "" : "s"}` : "no field changes";
|
|
10099
10118
|
if (i === "API" && !r) return a === "Created" ? "Created through API" : "Changed through API";
|
|
10100
10119
|
switch (a) {
|
|
10101
10120
|
case "Created": return `Created by ${r}`;
|
|
@@ -10106,7 +10125,7 @@ var Zm = (e = {}) => Xm({
|
|
|
10106
10125
|
case "Updated": return `Updated by ${r} (${c})`;
|
|
10107
10126
|
default: return `Change by ${r}`;
|
|
10108
10127
|
}
|
|
10109
|
-
},
|
|
10128
|
+
}, yh = ({ 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, onClickNavigateToDesgin: g }) => {
|
|
10110
10129
|
let [_, y] = v(!1), [b, w] = v(null), T = (e) => {
|
|
10111
10130
|
if (e.snapshot) {
|
|
10112
10131
|
f == null || f(e.snapshot, e);
|
|
@@ -10121,7 +10140,7 @@ var Zm = (e = {}) => Xm({
|
|
|
10121
10140
|
{ value: "Date" }
|
|
10122
10141
|
] }], D = e.map((e) => {
|
|
10123
10142
|
var t;
|
|
10124
|
-
let n = (t = h == null ? void 0 : h(e)) == null ? !!(e.snapshot && p || !e.diffs) : t, r = e.snapshot ? `Snapshot: ${e.snapshot}` :
|
|
10143
|
+
let n = (t = h == null ? void 0 : h(e)) == null ? !!(e.snapshot && p || !e.diffs) : t, r = e.snapshot ? `Snapshot: ${e.snapshot}` : vh(e, l), i = (e.operation === "Restored" || e.operation === "Cloned") && g;
|
|
10125
10144
|
return {
|
|
10126
10145
|
cells: [
|
|
10127
10146
|
{
|
|
@@ -10144,8 +10163,8 @@ var Zm = (e = {}) => Xm({
|
|
|
10144
10163
|
type: "Static"
|
|
10145
10164
|
},
|
|
10146
10165
|
{
|
|
10147
|
-
value:
|
|
10148
|
-
date:
|
|
10166
|
+
value: om({
|
|
10167
|
+
date: oh(e),
|
|
10149
10168
|
showTime: !0
|
|
10150
10169
|
}),
|
|
10151
10170
|
type: "Static"
|
|
@@ -10154,11 +10173,11 @@ var Zm = (e = {}) => Xm({
|
|
|
10154
10173
|
actions: m == null ? void 0 : m(e)
|
|
10155
10174
|
};
|
|
10156
10175
|
});
|
|
10157
|
-
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(
|
|
10176
|
+
return /* @__PURE__ */ C(x, { children: [/* @__PURE__ */ S(bo, {
|
|
10158
10177
|
heading: /* @__PURE__ */ C(Sd, {
|
|
10159
10178
|
gap: !0,
|
|
10160
10179
|
wrap: !0,
|
|
10161
|
-
children: [/* @__PURE__ */ S(
|
|
10180
|
+
children: [/* @__PURE__ */ S(es, { children: "Changes" }), c.map((e) => {
|
|
10162
10181
|
var t;
|
|
10163
10182
|
return /* @__PURE__ */ S(ed, {
|
|
10164
10183
|
small: (t = e.small) == null || t,
|
|
@@ -10173,7 +10192,7 @@ var Zm = (e = {}) => Xm({
|
|
|
10173
10192
|
children: r ? /* @__PURE__ */ S(zd, {
|
|
10174
10193
|
height: "100px",
|
|
10175
10194
|
theme: Mi.WHITE,
|
|
10176
|
-
children: /* @__PURE__ */ S(
|
|
10195
|
+
children: /* @__PURE__ */ S(Sa, { dark: !0 })
|
|
10177
10196
|
}) : /* @__PURE__ */ S(nu, { table: {
|
|
10178
10197
|
headers: E,
|
|
10179
10198
|
testId: "auditlog-table",
|
|
@@ -10188,14 +10207,14 @@ var Zm = (e = {}) => Xm({
|
|
|
10188
10207
|
onChange: (e) => {
|
|
10189
10208
|
u(Number(e.target.value));
|
|
10190
10209
|
},
|
|
10191
|
-
options:
|
|
10210
|
+
options: _h,
|
|
10192
10211
|
value: a
|
|
10193
10212
|
},
|
|
10194
10213
|
onSelectPage: (e) => d(e),
|
|
10195
10214
|
small: !0
|
|
10196
10215
|
} }
|
|
10197
10216
|
} })
|
|
10198
|
-
}), _ && b && b.diffs && /* @__PURE__ */ S(
|
|
10217
|
+
}), _ && b && b.diffs && /* @__PURE__ */ S(gh, {
|
|
10199
10218
|
sectionNames: o,
|
|
10200
10219
|
isOpen: _,
|
|
10201
10220
|
onClose: () => y(!1),
|
|
@@ -10205,7 +10224,7 @@ var Zm = (e = {}) => Xm({
|
|
|
10205
10224
|
data: t,
|
|
10206
10225
|
transformDiffsConfig: l
|
|
10207
10226
|
})] });
|
|
10208
|
-
},
|
|
10227
|
+
}, bh = ({ pathName: e, moduleName: t, onNavigate: n, onStartTimingEvent: r }) => {
|
|
10209
10228
|
let i = window.location.href, a = _(i);
|
|
10210
10229
|
return d(() => {
|
|
10211
10230
|
a.current = i;
|
|
@@ -10228,22 +10247,22 @@ var Zm = (e = {}) => Xm({
|
|
|
10228
10247
|
});
|
|
10229
10248
|
};
|
|
10230
10249
|
}, [e, t]), null;
|
|
10231
|
-
},
|
|
10250
|
+
}, xh = {
|
|
10232
10251
|
errorBoundary: "_errorBoundary_hmco0_1",
|
|
10233
10252
|
sidebarErrorBoundary: "_sidebarErrorBoundary_hmco0_5",
|
|
10234
10253
|
rightSidebarErrorBoundary: "_rightSidebarErrorBoundary_hmco0_6"
|
|
10235
|
-
},
|
|
10254
|
+
}, Sh = ({ options: e }) => {
|
|
10236
10255
|
let { ErrorComponent: t, isSideBar: n, isRightSideBar: r, isPage: i, style: a } = e == null ? {} : e, { translations: o } = Np();
|
|
10237
10256
|
if (t) return /* @__PURE__ */ S(t, {});
|
|
10238
10257
|
if (n || r) return /* @__PURE__ */ S("div", {
|
|
10239
|
-
className: b(n ?
|
|
10258
|
+
className: b(n ? xh.sidebarErrorBoundary : "", r ? xh.rightSidebarErrorBoundary : ""),
|
|
10240
10259
|
style: a,
|
|
10241
10260
|
children: o == null ? void 0 : o.unexpectedError
|
|
10242
10261
|
});
|
|
10243
10262
|
let s = /* @__PURE__ */ S("div", {
|
|
10244
|
-
className:
|
|
10263
|
+
className: xh.errorBoundary,
|
|
10245
10264
|
style: a,
|
|
10246
|
-
children: /* @__PURE__ */ S(
|
|
10265
|
+
children: /* @__PURE__ */ S(Gs, { message: {
|
|
10247
10266
|
icon: !0,
|
|
10248
10267
|
type: "Error",
|
|
10249
10268
|
content: o == null ? void 0 : o.unexpectedError,
|
|
@@ -10256,19 +10275,19 @@ var Zm = (e = {}) => Xm({
|
|
|
10256
10275
|
padding: 0,
|
|
10257
10276
|
children: s
|
|
10258
10277
|
}) : s;
|
|
10259
|
-
},
|
|
10260
|
-
fallback: /* @__PURE__ */ S(
|
|
10278
|
+
}, Ch = ({ children: e, options: t }) => /* @__PURE__ */ S(Ei.ErrorBoundary, {
|
|
10279
|
+
fallback: /* @__PURE__ */ S(Sh, { options: t }),
|
|
10261
10280
|
onError: (e, t) => {
|
|
10262
10281
|
console.error("Error caught by boundary:", e, t);
|
|
10263
10282
|
},
|
|
10264
10283
|
children: e
|
|
10265
|
-
}),
|
|
10284
|
+
}), wh = (e, t = {}) => (n) => /* @__PURE__ */ S(Ch, {
|
|
10266
10285
|
options: t,
|
|
10267
10286
|
children: /* @__PURE__ */ S(e, { ...n })
|
|
10268
|
-
}),
|
|
10287
|
+
}), Th = (e = {}) => (t) => wh(t, e), Eh = (e) => typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null, Dh = (e) => {
|
|
10269
10288
|
Pp(kp.LanguageKey, e.languageKey), Object.entries(e).forEach(([e, t]) => {
|
|
10270
|
-
e === kp.Translations ? Pp(e, jp(t)) : Pp(e,
|
|
10289
|
+
e === kp.Translations ? Pp(e, jp(t)) : Pp(e, Eh(t) ? t : { ...t });
|
|
10271
10290
|
});
|
|
10272
10291
|
};
|
|
10273
10292
|
//#endregion
|
|
10274
|
-
export { Zi as Accordion,
|
|
10293
|
+
export { Zi as Accordion, ya as AccordionWithDefaultToggle, fo as Actions, ki as Align, yh as AuditLog, no as Badge, go as Breadcrumb, mo as BreadcrumbLinkType, q as Button, vo as ButtonGroup, Ai as ButtonPosition, Ca as ButtonType, bo as Card, ha as CheckBox, Gi as Chevron, Ji as Collapse, Oi as Color, Vo as ColorInput, Bo as ColorInputPopover, Ko as Column, rs as Dialog, Jp as DiffCode, am as DiffTable, Qp as DiffViewer, W as DisabledContext, Zo as Divider, us as Drawer, ap as ElementType, pu as Empty, Ch as ErrorBoundary, xd as Field, _d as FileButton, bs as FileInput, Sd as Flex, wd as FormRow, Eo as Grid, H as GroupOrder, es as Heading, ma as HelpIcon, G as Icon, U as IconType, hs as Input, ps as InputGroup, ol as InputGroupAddon, _s as InputReaderMethods, Ni as InputType, yd as Label, Ld as List, Ed as ListHeading, Md as ListSubheading, zd as Loader, gf as Mention, lo as Menu, Ka as MenuCarat, Ga as MenuType, Gs as Message, zs as MessageType, Ts as Modal, Zs as NativeSelect, xl as NumberInput, Kd as OptionDropdown, Jd as Page, sl as Pagination, dp as PopConfirm, So as Popover, Yd as Portal, Zd as PrintHeader, Os as ProgressBar, Qd as RadioButton, hf as RichTextInput, vf as Row, el as Select, Vp as SettingField, Cf as SideBar, Tf as Skeleton, jl as Slider, Ns as SmartUploadModal, xs as Spacer, Sa as Spinner, nu as Table, gd as TableImportExport, Qf as Tabs, Yo as Text, tp as TextArea, $f as TextLink, ji as TextTransform, Mi as Theme, ai as Toaster, ed as Toggle, K as Tooltip, cp as TopBar, gp as Tree, Op as TreeTable, Di as TriggerType, Gf as UnitInput, Yf as UnitSlider, zp as UnitTable, bh as UsageTracker, Zu as dismissToast, Hf as initializeContext, Dh as initializeGuiLibrary, vs as readFile, Xu as toast, Qs as useFocus, Ss as useKeyboardEvent, tc as useWindowWidth, Th as withChainableErrorBoundary, wh as withErrorBoundary };
|