@livechat/design-system-react-components 1.30.0 → 1.30.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/components/DetailsCard/DetailsCard.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +689 -683
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -2,7 +2,7 @@ var n_ = Object.defineProperty, l_ = Object.defineProperties;
|
|
|
2
2
|
var c_ = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Kt = Object.getOwnPropertySymbols;
|
|
4
4
|
var cr = Object.prototype.hasOwnProperty, ir = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Aa = (t, a, r) => a in t ? n_(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r,
|
|
5
|
+
var Aa = (t, a, r) => a in t ? n_(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, k = (t, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
7
|
cr.call(a, r) && Aa(t, r, a[r]);
|
|
8
8
|
if (Kt)
|
|
@@ -34,7 +34,7 @@ import { subMonths as St, differenceInCalendarMonths as sr, addMonths as dr, isS
|
|
|
34
34
|
import { Virtuoso as B_ } from "react-virtuoso";
|
|
35
35
|
import ur from "lodash.escape";
|
|
36
36
|
import { TransitionGroup as qr, CSSTransition as Kr } from "react-transition-group";
|
|
37
|
-
const
|
|
37
|
+
const ql = {
|
|
38
38
|
/** @deprecated */
|
|
39
39
|
Background: "--background",
|
|
40
40
|
Background01: "--background-01",
|
|
@@ -401,7 +401,7 @@ const Vl = {
|
|
|
401
401
|
OnePopoverBorderActive: "--one-popover-border-active",
|
|
402
402
|
OneTooltipBackground: "--one-tooltip-background",
|
|
403
403
|
ContentBasicAutofill: "--content-basic-autofill"
|
|
404
|
-
},
|
|
404
|
+
}, Kl = {
|
|
405
405
|
Spacing0: "--spacing-0",
|
|
406
406
|
Spacing05: "--spacing-05",
|
|
407
407
|
Spacing1: "--spacing-1",
|
|
@@ -421,7 +421,7 @@ const Vl = {
|
|
|
421
421
|
Spacing18: "--spacing-18",
|
|
422
422
|
Spacing20: "--spacing-20",
|
|
423
423
|
Spacing24: "--spacing-24"
|
|
424
|
-
},
|
|
424
|
+
}, Yl = {
|
|
425
425
|
Float: "--shadow-float",
|
|
426
426
|
PopOver: "--shadow-pop-over",
|
|
427
427
|
Modal: "--shadow-modal",
|
|
@@ -443,7 +443,7 @@ const Vl = {
|
|
|
443
443
|
FixedLeft: "--shadow-fixed-left",
|
|
444
444
|
FixedTop: "--shadow-fixed-top",
|
|
445
445
|
FixedBottom: "--shadow-fixed-bottom"
|
|
446
|
-
},
|
|
446
|
+
}, Xl = {
|
|
447
447
|
Radius0: "--radius-0",
|
|
448
448
|
Radius1: "--radius-1",
|
|
449
449
|
Radius2: "--radius-2",
|
|
@@ -459,14 +459,14 @@ const Vl = {
|
|
|
459
459
|
// deprecated
|
|
460
460
|
4: "--radius-4"
|
|
461
461
|
// deprecated
|
|
462
|
-
},
|
|
462
|
+
}, Jl = {
|
|
463
463
|
Fast1: "--transition-duration-fast-1",
|
|
464
464
|
Fast2: "--transition-duration-fast-2",
|
|
465
465
|
Moderate1: "--transition-duration-moderate-1"
|
|
466
|
-
},
|
|
466
|
+
}, Ql = {
|
|
467
467
|
EaseIn: "--transition-timing-ease-in",
|
|
468
468
|
EaseOut: "--transition-timing-ease-out"
|
|
469
|
-
},
|
|
469
|
+
}, jl = {
|
|
470
470
|
Instant: "--delay-instant",
|
|
471
471
|
Moderate: "--delay-moderate",
|
|
472
472
|
Slow: "--delay-slow"
|
|
@@ -489,7 +489,7 @@ const Vl = {
|
|
|
489
489
|
[r, _]
|
|
490
490
|
);
|
|
491
491
|
return /* @__PURE__ */ e.createElement(Yr.Provider, { value: o }, t);
|
|
492
|
-
},
|
|
492
|
+
}, Zl = (t, a) => `color-mix(in srgb, var(${t}) ${a}, transparent)`, _e = {
|
|
493
493
|
esc: "Escape",
|
|
494
494
|
enter: "Enter",
|
|
495
495
|
backspace: "Backspace",
|
|
@@ -579,12 +579,12 @@ const Vl = {
|
|
|
579
579
|
"disabled",
|
|
580
580
|
"className",
|
|
581
581
|
"customColor"
|
|
582
|
-
]), d = e.createElement(a,
|
|
582
|
+
]), d = e.createElement(a, k(k({}, F_[r]), l ? { color: l } : {})), i = u(
|
|
583
583
|
n,
|
|
584
584
|
mr[pr],
|
|
585
585
|
_ && mr[`${pr}--${o ? "disabled--" : ""}${_}`]
|
|
586
586
|
);
|
|
587
|
-
return /* @__PURE__ */ e.createElement("span", C(
|
|
587
|
+
return /* @__PURE__ */ e.createElement("span", C(k({}, c), { className: i }), d);
|
|
588
588
|
}, He = {
|
|
589
589
|
"heading-xl": "lc-Typography-module__heading-xl___nhr-6",
|
|
590
590
|
"heading-lg": "lc-Typography-module__heading-lg___XYF7l",
|
|
@@ -636,7 +636,7 @@ const Vl = {
|
|
|
636
636
|
]);
|
|
637
637
|
return e.createElement(
|
|
638
638
|
t || M_[a],
|
|
639
|
-
|
|
639
|
+
k({
|
|
640
640
|
className: u(
|
|
641
641
|
{
|
|
642
642
|
[He[`heading-${a}`]]: !0,
|
|
@@ -645,12 +645,12 @@ const Vl = {
|
|
|
645
645
|
},
|
|
646
646
|
_
|
|
647
647
|
),
|
|
648
|
-
style:
|
|
648
|
+
style: k(k({}, l && { color: l }), c && { textAlign: c })
|
|
649
649
|
}, d),
|
|
650
650
|
r
|
|
651
651
|
);
|
|
652
652
|
}, A = (m) => {
|
|
653
|
-
var
|
|
653
|
+
var g = m, {
|
|
654
654
|
as: t = "p",
|
|
655
655
|
size: a = "md",
|
|
656
656
|
caps: r = !1,
|
|
@@ -662,7 +662,7 @@ const Vl = {
|
|
|
662
662
|
className: d,
|
|
663
663
|
customColor: i,
|
|
664
664
|
textAlign: s
|
|
665
|
-
} =
|
|
665
|
+
} = g, p = B(g, [
|
|
666
666
|
"as",
|
|
667
667
|
"size",
|
|
668
668
|
"caps",
|
|
@@ -675,25 +675,25 @@ const Vl = {
|
|
|
675
675
|
"customColor",
|
|
676
676
|
"textAlign"
|
|
677
677
|
]);
|
|
678
|
-
const
|
|
678
|
+
const b = "paragraph";
|
|
679
679
|
return e.createElement(
|
|
680
680
|
t,
|
|
681
|
-
|
|
681
|
+
k({
|
|
682
682
|
className: u(
|
|
683
683
|
{
|
|
684
|
-
[He[`${
|
|
685
|
-
[He[`${
|
|
686
|
-
[He[`${
|
|
687
|
-
[He[`${
|
|
688
|
-
[He[`${
|
|
684
|
+
[He[`${b}-${a}`]]: !0,
|
|
685
|
+
[He[`${b}--bold`]]: o,
|
|
686
|
+
[He[`${b}--strike`]]: l,
|
|
687
|
+
[He[`${b}--underline`]]: n,
|
|
688
|
+
[He[`${b}--uppercase`]]: _ || r
|
|
689
689
|
},
|
|
690
690
|
d
|
|
691
691
|
),
|
|
692
|
-
style:
|
|
692
|
+
style: k(k({}, i && { color: i }), s && { textAlign: s })
|
|
693
693
|
}, p),
|
|
694
694
|
c
|
|
695
695
|
);
|
|
696
|
-
},
|
|
696
|
+
}, ec = (d) => {
|
|
697
697
|
var i = d, {
|
|
698
698
|
as: t = "div",
|
|
699
699
|
size: a = "md",
|
|
@@ -713,7 +713,7 @@ const Vl = {
|
|
|
713
713
|
]);
|
|
714
714
|
return e.createElement(
|
|
715
715
|
t,
|
|
716
|
-
|
|
716
|
+
k({
|
|
717
717
|
className: u(
|
|
718
718
|
He[`display-${a}`],
|
|
719
719
|
{
|
|
@@ -721,7 +721,7 @@ const Vl = {
|
|
|
721
721
|
},
|
|
722
722
|
_
|
|
723
723
|
),
|
|
724
|
-
style:
|
|
724
|
+
style: k(k({}, o && { color: o }), n && { textAlign: n })
|
|
725
725
|
}, c),
|
|
726
726
|
r
|
|
727
727
|
);
|
|
@@ -752,8 +752,8 @@ const Vl = {
|
|
|
752
752
|
onOpen: s,
|
|
753
753
|
floatingStrategy: p,
|
|
754
754
|
selectedOptions: m,
|
|
755
|
-
footer:
|
|
756
|
-
} = f,
|
|
755
|
+
footer: g
|
|
756
|
+
} = f, b = B(f, [
|
|
757
757
|
"className",
|
|
758
758
|
"triggerClassName",
|
|
759
759
|
"options",
|
|
@@ -769,8 +769,8 @@ const Vl = {
|
|
|
769
769
|
"selectedOptions",
|
|
770
770
|
"footer"
|
|
771
771
|
]);
|
|
772
|
-
const v = d !== void 0, [
|
|
773
|
-
G ? (i == null || i(), !v &&
|
|
772
|
+
const v = d !== void 0, [y, $] = e.useState(n), [N, w] = e.useState(null), h = e.useRef(-1), S = tr(), T = ma(), L = e.useRef(null), G = v ? d : y, D = () => {
|
|
773
|
+
G ? (i == null || i(), !v && $(!1)) : (s == null || s(), !v && $(!0));
|
|
774
774
|
}, { x: R, y: V, strategy: q, refs: he, context: oe } = pa({
|
|
775
775
|
nodeId: T,
|
|
776
776
|
middleware: [
|
|
@@ -778,7 +778,7 @@ const Vl = {
|
|
|
778
778
|
ba(c),
|
|
779
779
|
Hr({
|
|
780
780
|
apply({ availableHeight: x }) {
|
|
781
|
-
T_(() =>
|
|
781
|
+
T_(() => w(x));
|
|
782
782
|
}
|
|
783
783
|
})
|
|
784
784
|
],
|
|
@@ -794,7 +794,7 @@ const Vl = {
|
|
|
794
794
|
Ge,
|
|
795
795
|
$e
|
|
796
796
|
]), { styles: ut } = Gr(oe, {
|
|
797
|
-
initial: ({ side: x }) =>
|
|
797
|
+
initial: ({ side: x }) => k({
|
|
798
798
|
opacity: 0
|
|
799
799
|
}, x === "bottom" && {
|
|
800
800
|
marginTop: -10
|
|
@@ -807,7 +807,7 @@ const Vl = {
|
|
|
807
807
|
})
|
|
808
808
|
}), mt = (x) => {
|
|
809
809
|
var Ue, We;
|
|
810
|
-
const ee =
|
|
810
|
+
const ee = h.current;
|
|
811
811
|
let ne = ee + x;
|
|
812
812
|
for (; (Ue = r[ne]) != null && Ue.disabled || (We = r[ne]) != null && We.groupHeader; )
|
|
813
813
|
if (ne += x, ne === -1) {
|
|
@@ -817,19 +817,19 @@ const Vl = {
|
|
|
817
817
|
return ne;
|
|
818
818
|
}, pt = (x) => {
|
|
819
819
|
var Ue, We;
|
|
820
|
-
|
|
821
|
-
const ee = (Ue = L.current) == null ? void 0 : Ue.children, ne = ee && ((We = ee[
|
|
820
|
+
h.current = mt(x);
|
|
821
|
+
const ee = (Ue = L.current) == null ? void 0 : Ue.children, ne = ee && ((We = ee[h.current]) == null ? void 0 : We.children[0]);
|
|
822
822
|
return ne == null ? void 0 : ne.focus();
|
|
823
823
|
}, ze = (x) => {
|
|
824
|
-
x.key === _e.arrowUp &&
|
|
824
|
+
x.key === _e.arrowUp && h.current > 0 && (x.preventDefault(), pt(-1)), x.key === _e.arrowDown && h.current + 1 < r.length && (x.preventDefault(), pt(1));
|
|
825
825
|
};
|
|
826
826
|
e.useEffect(() => {
|
|
827
827
|
if (G)
|
|
828
828
|
return document.addEventListener("keydown", ze), () => document.removeEventListener("keydown", ze);
|
|
829
|
-
|
|
829
|
+
h.current = -1;
|
|
830
830
|
}, [G, ze]);
|
|
831
831
|
const gt = (x, ee) => {
|
|
832
|
-
|
|
832
|
+
h.current = x, ee == null || ee(), !v && !l && ($(!1), i == null || i());
|
|
833
833
|
}, xt = (x, ee) => x.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
834
834
|
"li",
|
|
835
835
|
{
|
|
@@ -864,7 +864,7 @@ const Vl = {
|
|
|
864
864
|
)
|
|
865
865
|
)), Me = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
866
866
|
"div",
|
|
867
|
-
C(
|
|
867
|
+
C(k({
|
|
868
868
|
"aria-label": "Toggle menu",
|
|
869
869
|
"data-testid": "action-menu-trigger-button",
|
|
870
870
|
ref: he.setReference
|
|
@@ -874,10 +874,10 @@ const Vl = {
|
|
|
874
874
|
_
|
|
875
875
|
), /* @__PURE__ */ e.createElement(Ea, { id: T }, G && /* @__PURE__ */ e.createElement(
|
|
876
876
|
"div",
|
|
877
|
-
|
|
877
|
+
k({
|
|
878
878
|
ref: he.setFloating,
|
|
879
879
|
className: Re[Le],
|
|
880
|
-
style:
|
|
880
|
+
style: k(k({
|
|
881
881
|
position: q,
|
|
882
882
|
top: V != null ? V : "",
|
|
883
883
|
left: R != null ? R : ""
|
|
@@ -885,11 +885,11 @@ const Vl = {
|
|
|
885
885
|
}, ot()),
|
|
886
886
|
r.length > 0 && /* @__PURE__ */ e.createElement(
|
|
887
887
|
"ul",
|
|
888
|
-
C(
|
|
888
|
+
C(k({}, b), {
|
|
889
889
|
className: u(
|
|
890
890
|
Re[`${Le}__list`],
|
|
891
891
|
{
|
|
892
|
-
[Re[`${Le}__list--with-footer`]]:
|
|
892
|
+
[Re[`${Le}__list--with-footer`]]: g
|
|
893
893
|
},
|
|
894
894
|
t
|
|
895
895
|
),
|
|
@@ -898,14 +898,14 @@ const Vl = {
|
|
|
898
898
|
}),
|
|
899
899
|
r.map(xt)
|
|
900
900
|
),
|
|
901
|
-
|
|
901
|
+
g && /* @__PURE__ */ e.createElement(
|
|
902
902
|
A,
|
|
903
903
|
{
|
|
904
904
|
size: "sm",
|
|
905
905
|
as: "div",
|
|
906
906
|
className: Re[`${Le}__footer`]
|
|
907
907
|
},
|
|
908
|
-
|
|
908
|
+
g
|
|
909
909
|
)
|
|
910
910
|
)));
|
|
911
911
|
return S === null ? /* @__PURE__ */ e.createElement(ar, null, Me) : Me;
|
|
@@ -948,7 +948,7 @@ const Vl = {
|
|
|
948
948
|
"className",
|
|
949
949
|
"size"
|
|
950
950
|
]);
|
|
951
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
951
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(At[Xr], _) }, n), /* @__PURE__ */ e.createElement(
|
|
952
952
|
"div",
|
|
953
953
|
{
|
|
954
954
|
className: u(At[gr], At[`${gr}--${o}`])
|
|
@@ -1011,7 +1011,7 @@ const Vl = {
|
|
|
1011
1011
|
"btn--plain-lock-black": "lc-Button-module__btn--plain-lock-black___aL-wC",
|
|
1012
1012
|
"btn--text-lock-black": "lc-Button-module__btn--text-lock-black___fy3zb"
|
|
1013
1013
|
}, ie = "btn", W = e.forwardRef(
|
|
1014
|
-
(E,
|
|
1014
|
+
(E, b) => {
|
|
1015
1015
|
var f = E, {
|
|
1016
1016
|
loading: t = !1,
|
|
1017
1017
|
disabled: a = !1,
|
|
@@ -1026,7 +1026,7 @@ const Vl = {
|
|
|
1026
1026
|
children: s,
|
|
1027
1027
|
href: p,
|
|
1028
1028
|
onClick: m
|
|
1029
|
-
} = f,
|
|
1029
|
+
} = f, g = B(f, [
|
|
1030
1030
|
"loading",
|
|
1031
1031
|
"disabled",
|
|
1032
1032
|
"type",
|
|
@@ -1041,7 +1041,7 @@ const Vl = {
|
|
|
1041
1041
|
"href",
|
|
1042
1042
|
"onClick"
|
|
1043
1043
|
]);
|
|
1044
|
-
const v = t || a,
|
|
1044
|
+
const v = t || a, y = !s && l, $ = ["text", "link", "link-light"].includes(o), N = p ? "a" : "button", w = u(
|
|
1045
1045
|
i,
|
|
1046
1046
|
ce[ie],
|
|
1047
1047
|
ce[`${ie}--${o}`],
|
|
@@ -1049,24 +1049,24 @@ const Vl = {
|
|
|
1049
1049
|
{
|
|
1050
1050
|
[ce[`${ie}--loading`]]: t,
|
|
1051
1051
|
[ce[`${ie}--full-width`]]: _,
|
|
1052
|
-
[ce[`${ie}--with-${c}-icon`]]: l && !
|
|
1053
|
-
[ce[`${ie}--icon-only`]]:
|
|
1054
|
-
[ce[`${ie}--icon-only--bg`]]:
|
|
1052
|
+
[ce[`${ie}--with-${c}-icon`]]: l && !y && !$,
|
|
1053
|
+
[ce[`${ie}--icon-only`]]: y,
|
|
1054
|
+
[ce[`${ie}--icon-only--bg`]]: y && $,
|
|
1055
1055
|
[ce[`${ie}--disabled`]]: v
|
|
1056
1056
|
}
|
|
1057
1057
|
);
|
|
1058
1058
|
return /* @__PURE__ */ e.createElement(
|
|
1059
1059
|
N,
|
|
1060
|
-
|
|
1061
|
-
ref:
|
|
1062
|
-
className:
|
|
1060
|
+
k(k({
|
|
1061
|
+
ref: b,
|
|
1062
|
+
className: w,
|
|
1063
1063
|
"aria-disabled": v,
|
|
1064
1064
|
type: r,
|
|
1065
1065
|
disabled: v
|
|
1066
|
-
}, !v && { href: p, onClick: m }),
|
|
1066
|
+
}, !v && { href: p, onClick: m }), g),
|
|
1067
1067
|
t && /* @__PURE__ */ e.createElement(
|
|
1068
1068
|
or,
|
|
1069
|
-
|
|
1069
|
+
k({
|
|
1070
1070
|
"data-testid": "button-loader",
|
|
1071
1071
|
size: "small",
|
|
1072
1072
|
label: d,
|
|
@@ -1171,16 +1171,16 @@ const Y_ = (t) => {
|
|
|
1171
1171
|
onOpen: s,
|
|
1172
1172
|
withFadeAnimation: p = !0,
|
|
1173
1173
|
transitionDuration: m = 200,
|
|
1174
|
-
hoverOnDuration:
|
|
1175
|
-
hoverOffDuration:
|
|
1174
|
+
hoverOnDuration: g,
|
|
1175
|
+
hoverOffDuration: b,
|
|
1176
1176
|
transitionDelay: E = 0,
|
|
1177
1177
|
hoverOnDelay: f,
|
|
1178
1178
|
hoverOffDelay: v,
|
|
1179
|
-
triggerOnClick:
|
|
1180
|
-
triggerOnHover:
|
|
1179
|
+
triggerOnClick: y = !1,
|
|
1180
|
+
triggerOnHover: $ = !0,
|
|
1181
1181
|
offsetMainAxis: N = 8,
|
|
1182
|
-
referenceElement:
|
|
1183
|
-
activationThreshold:
|
|
1182
|
+
referenceElement: w,
|
|
1183
|
+
activationThreshold: h = 0,
|
|
1184
1184
|
useDismissHookProps: S,
|
|
1185
1185
|
useClickHookProps: T,
|
|
1186
1186
|
hoverOutDelayTimeout: L = 100,
|
|
@@ -1216,19 +1216,19 @@ const Y_ = (t) => {
|
|
|
1216
1216
|
whileElementsMounted: fa
|
|
1217
1217
|
}), Ue = E_(x, {
|
|
1218
1218
|
move: !1,
|
|
1219
|
-
restMs:
|
|
1219
|
+
restMs: h,
|
|
1220
1220
|
delay: {
|
|
1221
1221
|
open: gt(f),
|
|
1222
1222
|
close: gt(v || L)
|
|
1223
1223
|
},
|
|
1224
|
-
enabled:
|
|
1224
|
+
enabled: $,
|
|
1225
1225
|
handleClose: R ? null : w_()
|
|
1226
|
-
}), We = $_(x), $a = ha(x, S), Na = ka(x, { role: "tooltip" }), Sa = va(x,
|
|
1227
|
-
enabled:
|
|
1226
|
+
}), We = $_(x), $a = ha(x, S), Na = ka(x, { role: "tooltip" }), Sa = va(x, k({
|
|
1227
|
+
enabled: y
|
|
1228
1228
|
}, T)), { isMounted: Ca, styles: xa } = Gr(x, {
|
|
1229
1229
|
duration: {
|
|
1230
|
-
open: ze(
|
|
1231
|
-
close: ze(
|
|
1230
|
+
open: ze(g),
|
|
1231
|
+
close: ze(b)
|
|
1232
1232
|
}
|
|
1233
1233
|
}), { status: Ta } = N_(x), { getReferenceProps: Da, getFloatingProps: Ba } = ya([
|
|
1234
1234
|
Ue,
|
|
@@ -1238,11 +1238,11 @@ const Y_ = (t) => {
|
|
|
1238
1238
|
Sa
|
|
1239
1239
|
]);
|
|
1240
1240
|
e.useEffect(() => {
|
|
1241
|
-
|
|
1242
|
-
}, [Me.setReference,
|
|
1241
|
+
w && Me.setReference(w);
|
|
1242
|
+
}, [Me.setReference, w]);
|
|
1243
1243
|
const Tt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1244
1244
|
"div",
|
|
1245
|
-
C(
|
|
1245
|
+
C(k({
|
|
1246
1246
|
"data-testid": "tooltip-trigger",
|
|
1247
1247
|
ref: Me.setReference
|
|
1248
1248
|
}, Da()), {
|
|
@@ -1251,9 +1251,9 @@ const Y_ = (t) => {
|
|
|
1251
1251
|
mt ? _() : _
|
|
1252
1252
|
), /* @__PURE__ */ e.createElement(Ea, { id: ot }, Ca && /* @__PURE__ */ e.createElement(
|
|
1253
1253
|
"div",
|
|
1254
|
-
C(
|
|
1254
|
+
C(k({
|
|
1255
1255
|
ref: Me.setFloating,
|
|
1256
|
-
style:
|
|
1256
|
+
style: k(k({}, xt), xa),
|
|
1257
1257
|
className: ut
|
|
1258
1258
|
}, Ba()), {
|
|
1259
1259
|
"data-status": Ta
|
|
@@ -1261,13 +1261,13 @@ const Y_ = (t) => {
|
|
|
1261
1261
|
/* @__PURE__ */ e.createElement(A, { as: "div", className: I[`${Jt}__content`] }, t),
|
|
1262
1262
|
/* @__PURE__ */ e.createElement(
|
|
1263
1263
|
S_,
|
|
1264
|
-
|
|
1264
|
+
k({
|
|
1265
1265
|
ref: we,
|
|
1266
1266
|
context: x,
|
|
1267
1267
|
strokeWidth: 1,
|
|
1268
1268
|
width: 10,
|
|
1269
1269
|
height: 5,
|
|
1270
|
-
style:
|
|
1270
|
+
style: k({}, K_(
|
|
1271
1271
|
G,
|
|
1272
1272
|
D,
|
|
1273
1273
|
ne,
|
|
@@ -1277,7 +1277,7 @@ const Y_ = (t) => {
|
|
|
1277
1277
|
)
|
|
1278
1278
|
)));
|
|
1279
1279
|
return Fe === null ? /* @__PURE__ */ e.createElement(ar, null, Tt) : Tt;
|
|
1280
|
-
},
|
|
1280
|
+
}, tc = ({ text: t }) => /* @__PURE__ */ e.createElement("div", null, t), It = "tooltip", ac = ({
|
|
1281
1281
|
className: t,
|
|
1282
1282
|
header: a,
|
|
1283
1283
|
text: r,
|
|
@@ -1313,7 +1313,7 @@ const Y_ = (t) => {
|
|
|
1313
1313
|
})
|
|
1314
1314
|
},
|
|
1315
1315
|
r
|
|
1316
|
-
)), Ve = "tooltip",
|
|
1316
|
+
)), Ve = "tooltip", rc = ({
|
|
1317
1317
|
header: t,
|
|
1318
1318
|
text: a,
|
|
1319
1319
|
image: r,
|
|
@@ -1350,7 +1350,7 @@ const Y_ = (t) => {
|
|
|
1350
1350
|
},
|
|
1351
1351
|
/* @__PURE__ */ e.createElement(
|
|
1352
1352
|
W,
|
|
1353
|
-
C(
|
|
1353
|
+
C(k({}, l), {
|
|
1354
1354
|
kind: l.kind || d(o),
|
|
1355
1355
|
onClick: l.handleClick
|
|
1356
1356
|
}),
|
|
@@ -1358,7 +1358,7 @@ const Y_ = (t) => {
|
|
|
1358
1358
|
),
|
|
1359
1359
|
c && /* @__PURE__ */ e.createElement(
|
|
1360
1360
|
W,
|
|
1361
|
-
C(
|
|
1361
|
+
C(k({}, c), {
|
|
1362
1362
|
className: u(
|
|
1363
1363
|
I[`${Ve}-footer-secondary`],
|
|
1364
1364
|
c.className
|
|
@@ -1485,7 +1485,7 @@ class eo {
|
|
|
1485
1485
|
return this.getBoundingClientRect().height;
|
|
1486
1486
|
}
|
|
1487
1487
|
}
|
|
1488
|
-
const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a),
|
|
1488
|
+
const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), _c = (t) => {
|
|
1489
1489
|
const {
|
|
1490
1490
|
className: a,
|
|
1491
1491
|
parentElementName: r,
|
|
@@ -1528,7 +1528,7 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1528
1528
|
}
|
|
1529
1529
|
), /* @__PURE__ */ e.createElement(
|
|
1530
1530
|
nr,
|
|
1531
|
-
C(
|
|
1531
|
+
C(k({}, t), {
|
|
1532
1532
|
triggerRenderer: /* @__PURE__ */ e.createElement(e.Fragment, null),
|
|
1533
1533
|
referenceElement: {
|
|
1534
1534
|
getBoundingClientRect: () => c,
|
|
@@ -1542,7 +1542,7 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1542
1542
|
}),
|
|
1543
1543
|
t.children
|
|
1544
1544
|
)) : null;
|
|
1545
|
-
}, Pt = "reports-tooltip",
|
|
1545
|
+
}, Pt = "reports-tooltip", oc = ({
|
|
1546
1546
|
title: t,
|
|
1547
1547
|
description: a,
|
|
1548
1548
|
children: r
|
|
@@ -1627,7 +1627,7 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1627
1627
|
/* @__PURE__ */ e.createElement("div", null, t.label)
|
|
1628
1628
|
)
|
|
1629
1629
|
) : /* @__PURE__ */ e.createElement("div", { "data-testid": t.key, className: _ }, o);
|
|
1630
|
-
}, Qt = "action-bar", qe = "action-bar__menu-wrapper", ao = 44,
|
|
1630
|
+
}, Qt = "action-bar", qe = "action-bar__menu-wrapper", ao = 44, nc = ({
|
|
1631
1631
|
className: t,
|
|
1632
1632
|
id: a = "action-bar-area",
|
|
1633
1633
|
type: r = "menu",
|
|
@@ -1638,52 +1638,52 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1638
1638
|
}) => {
|
|
1639
1639
|
const [c, d] = e.useState(
|
|
1640
1640
|
_.length
|
|
1641
|
-
), [i, s] = e.useState([]), [p, m] = e.useState(!1),
|
|
1641
|
+
), [i, s] = e.useState([]), [p, m] = e.useState(!1), g = r === "scroll", b = u(
|
|
1642
1642
|
U[Qt],
|
|
1643
1643
|
t,
|
|
1644
1644
|
n && U[`${Qt}--vertical`]
|
|
1645
|
-
), E = !
|
|
1645
|
+
), E = !g && i.length !== 0;
|
|
1646
1646
|
e.useEffect(() => {
|
|
1647
|
-
|
|
1647
|
+
g || (_.length > c ? s(_.slice(c, _.length)) : s([]));
|
|
1648
1648
|
}, [_, c]), e.useEffect(() => {
|
|
1649
|
-
const
|
|
1650
|
-
if (!
|
|
1651
|
-
const
|
|
1652
|
-
const { width:
|
|
1649
|
+
const y = !!window.ResizeObserver;
|
|
1650
|
+
if (!g && y) {
|
|
1651
|
+
const $ = new ResizeObserver((N) => {
|
|
1652
|
+
const { width: w, height: h } = N[0].contentRect, S = n ? h : w, T = i.length > 0 ? 60 : 0, L = Math.floor(
|
|
1653
1653
|
(S - T) / ao
|
|
1654
1654
|
);
|
|
1655
1655
|
L >= 0 && L !== c && d(L);
|
|
1656
1656
|
});
|
|
1657
|
-
return
|
|
1657
|
+
return $.observe(document.querySelector(`#${a}`)), () => $.disconnect();
|
|
1658
1658
|
}
|
|
1659
|
-
}, [i,
|
|
1659
|
+
}, [i, g, c]);
|
|
1660
1660
|
const f = e.useCallback(() => i.reduce(
|
|
1661
|
-
(
|
|
1662
|
-
if (
|
|
1661
|
+
(y, $) => {
|
|
1662
|
+
if (!$.hideInMenu) {
|
|
1663
1663
|
const N = {
|
|
1664
|
-
key:
|
|
1665
|
-
element: /* @__PURE__ */ e.createElement(L_, { leftNode:
|
|
1666
|
-
withDivider:
|
|
1667
|
-
onClick:
|
|
1664
|
+
key: $.key,
|
|
1665
|
+
element: /* @__PURE__ */ e.createElement(L_, { leftNode: $.element }, $.label),
|
|
1666
|
+
withDivider: $.withDivider,
|
|
1667
|
+
onClick: $.onClick
|
|
1668
1668
|
};
|
|
1669
|
-
|
|
1669
|
+
y.push(N);
|
|
1670
1670
|
}
|
|
1671
|
-
return
|
|
1671
|
+
return y;
|
|
1672
1672
|
},
|
|
1673
1673
|
[]
|
|
1674
|
-
), [i]), v = i.find((
|
|
1675
|
-
return /* @__PURE__ */ e.createElement("div", { id: a, className:
|
|
1674
|
+
), [i]), v = i.find((y) => y.key === o);
|
|
1675
|
+
return /* @__PURE__ */ e.createElement("div", { id: a, className: b }, /* @__PURE__ */ e.createElement(
|
|
1676
1676
|
"div",
|
|
1677
1677
|
{
|
|
1678
1678
|
className: u(U[`${Qt}__items`], {
|
|
1679
|
-
[U[`${Qt}__items--scroll`]]:
|
|
1679
|
+
[U[`${Qt}__items--scroll`]]: g
|
|
1680
1680
|
})
|
|
1681
1681
|
},
|
|
1682
|
-
_.slice(0, c).map((
|
|
1682
|
+
_.slice(0, c).map((y) => /* @__PURE__ */ e.createElement(
|
|
1683
1683
|
to,
|
|
1684
1684
|
{
|
|
1685
|
-
option:
|
|
1686
|
-
isActive:
|
|
1685
|
+
option: y,
|
|
1686
|
+
isActive: y.key === o,
|
|
1687
1687
|
vertical: n
|
|
1688
1688
|
}
|
|
1689
1689
|
))
|
|
@@ -1749,7 +1749,7 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1749
1749
|
"action-card__column": "lc-ActionCard-module__action-card__column___K7tyh",
|
|
1750
1750
|
"action-card__column--first": "lc-ActionCard-module__action-card__column--first___9XE58",
|
|
1751
1751
|
"action-card__column--second": "lc-ActionCard-module__action-card__column--second___X1UC-"
|
|
1752
|
-
}, nt = "action-card",
|
|
1752
|
+
}, nt = "action-card", lc = ({
|
|
1753
1753
|
className: t,
|
|
1754
1754
|
children: a,
|
|
1755
1755
|
secondColumn: r,
|
|
@@ -1830,7 +1830,7 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1830
1830
|
source: Or,
|
|
1831
1831
|
kind: "error"
|
|
1832
1832
|
}
|
|
1833
|
-
}, ye = "alert",
|
|
1833
|
+
}, ye = "alert", cc = (c) => {
|
|
1834
1834
|
var d = c, {
|
|
1835
1835
|
children: t,
|
|
1836
1836
|
className: a,
|
|
@@ -1855,13 +1855,13 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1855
1855
|
a
|
|
1856
1856
|
);
|
|
1857
1857
|
return e.useEffect(() => {
|
|
1858
|
-
const
|
|
1859
|
-
|
|
1858
|
+
const g = () => i.current && i.current.offsetWidth <= 400 ? p("small") : i.current && i.current.offsetWidth > 400 && i.current.offsetWidth <= 800 ? p("medium") : p("large"), b = Wr(() => {
|
|
1859
|
+
g();
|
|
1860
1860
|
}, 500);
|
|
1861
|
-
return window.addEventListener("resize",
|
|
1862
|
-
}), /* @__PURE__ */ e.createElement("div",
|
|
1861
|
+
return window.addEventListener("resize", b), g(), () => window.removeEventListener("resize", b);
|
|
1862
|
+
}), /* @__PURE__ */ e.createElement("div", k({ ref: i, className: m }, l), /* @__PURE__ */ e.createElement("div", { className: ke[`${ye}__content`] }, /* @__PURE__ */ e.createElement("div", { className: ke[`${ye}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1863
1863
|
P,
|
|
1864
|
-
C(
|
|
1864
|
+
C(k({}, so[o]), {
|
|
1865
1865
|
size: "large",
|
|
1866
1866
|
className: ke[`${ye}__icon`]
|
|
1867
1867
|
})
|
|
@@ -1943,7 +1943,7 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1943
1943
|
topBarClassName: l,
|
|
1944
1944
|
sideNavigationContainerClassName: c,
|
|
1945
1945
|
contentClassName: d
|
|
1946
|
-
} = t, i = u(Ke[Zr], r), { isSideNavigationVisible: s } = A_(), p = e.useRef(null), { isOpen: m, isMounted:
|
|
1946
|
+
} = t, i = u(Ke[Zr], r), { isSideNavigationVisible: s } = A_(), p = e.useRef(null), { isOpen: m, isMounted: g } = jr({
|
|
1947
1947
|
isVisible: s,
|
|
1948
1948
|
elementRef: p
|
|
1949
1949
|
});
|
|
@@ -1980,7 +1980,7 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1980
1980
|
}
|
|
1981
1981
|
)
|
|
1982
1982
|
},
|
|
1983
|
-
|
|
1983
|
+
g && o
|
|
1984
1984
|
),
|
|
1985
1985
|
/* @__PURE__ */ e.createElement(
|
|
1986
1986
|
"div",
|
|
@@ -1993,14 +1993,14 @@ const br = 8, fr = "guide-tooltip", vr = (t, a) => new eo(t, a), rc = (t) => {
|
|
|
1993
1993
|
a
|
|
1994
1994
|
)
|
|
1995
1995
|
)));
|
|
1996
|
-
},
|
|
1996
|
+
}, ic = (t) => /* @__PURE__ */ e.createElement(I_, null, /* @__PURE__ */ e.createElement(uo, k({}, t))), vt = {
|
|
1997
1997
|
"side-navigation": "lc-SideNavigation-module__side-navigation___97Smn",
|
|
1998
1998
|
"side-navigation__header": "lc-SideNavigation-module__side-navigation__header___jKhiq",
|
|
1999
1999
|
"side-navigation__header__title": "lc-SideNavigation-module__side-navigation__header__title___ZpMAv",
|
|
2000
2000
|
"side-navigation__footer": "lc-SideNavigation-module__side-navigation__footer___-fWZ1",
|
|
2001
2001
|
"side-navigation__nav-wrapper": "lc-SideNavigation-module__side-navigation__nav-wrapper___3yenW",
|
|
2002
2002
|
"side-navigation__nav-wrapper--no-gaps": "lc-SideNavigation-module__side-navigation__nav-wrapper--no-gaps___MFRCx"
|
|
2003
|
-
}, ht = "side-navigation",
|
|
2003
|
+
}, ht = "side-navigation", sc = ({
|
|
2004
2004
|
children: t,
|
|
2005
2005
|
className: a,
|
|
2006
2006
|
title: r,
|
|
@@ -2044,7 +2044,7 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2044
2044
|
"side-navigation-item__label--active": "lc-SideNavigationItem-module__side-navigation-item__label--active___lHzUo",
|
|
2045
2045
|
"side-navigation-item__custom-label--active": "lc-SideNavigationItem-module__side-navigation-item__custom-label--active___js4w6"
|
|
2046
2046
|
}, Se = "side-navigation-item", bo = (m) => {
|
|
2047
|
-
var
|
|
2047
|
+
var g = m, {
|
|
2048
2048
|
leftNode: t,
|
|
2049
2049
|
shouldKeepIconSpace: a = !0,
|
|
2050
2050
|
url: r,
|
|
@@ -2056,7 +2056,7 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2056
2056
|
isMainEntry: d,
|
|
2057
2057
|
onItemHover: i,
|
|
2058
2058
|
isIconHidden: s
|
|
2059
|
-
} =
|
|
2059
|
+
} = g, p = B(g, [
|
|
2060
2060
|
"leftNode",
|
|
2061
2061
|
"shouldKeepIconSpace",
|
|
2062
2062
|
"url",
|
|
@@ -2069,14 +2069,14 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2069
2069
|
"onItemHover",
|
|
2070
2070
|
"isIconHidden"
|
|
2071
2071
|
]);
|
|
2072
|
-
const
|
|
2072
|
+
const b = typeof _ == "string", E = (v) => {
|
|
2073
2073
|
v.preventDefault(), l == null || l();
|
|
2074
2074
|
}, f = (v) => {
|
|
2075
2075
|
v.key === "Enter" && (v.preventDefault(), l == null || l());
|
|
2076
2076
|
};
|
|
2077
2077
|
return /* @__PURE__ */ e.createElement(
|
|
2078
2078
|
"li",
|
|
2079
|
-
|
|
2079
|
+
k({
|
|
2080
2080
|
className: u([Ne[Se], o]),
|
|
2081
2081
|
"data-testid": c ? po : mo,
|
|
2082
2082
|
"data-active": c
|
|
@@ -2106,7 +2106,7 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2106
2106
|
},
|
|
2107
2107
|
t
|
|
2108
2108
|
),
|
|
2109
|
-
|
|
2109
|
+
b ? /* @__PURE__ */ e.createElement(
|
|
2110
2110
|
A,
|
|
2111
2111
|
{
|
|
2112
2112
|
bold: c || d,
|
|
@@ -2136,7 +2136,7 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2136
2136
|
"side-navigation-group__list-wrapper": "lc-SideNavigationGroup-module__side-navigation-group__list-wrapper___pMP-G",
|
|
2137
2137
|
"side-navigation-group__list-wrapper--expanded": "lc-SideNavigationGroup-module__side-navigation-group__list-wrapper--expanded___jm-18",
|
|
2138
2138
|
"side-navigation-group__list": "lc-SideNavigationGroup-module__side-navigation-group__list___XlUf-"
|
|
2139
|
-
}, tt = "side-navigation-group", fo = 34,
|
|
2139
|
+
}, tt = "side-navigation-group", fo = 34, dc = ({
|
|
2140
2140
|
label: t,
|
|
2141
2141
|
rightNode: a,
|
|
2142
2142
|
className: r,
|
|
@@ -2146,13 +2146,13 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2146
2146
|
shouldOpenOnInit: l = !1,
|
|
2147
2147
|
shouldOpenOnActive: c = !1
|
|
2148
2148
|
}) => {
|
|
2149
|
-
const [d, i] = e.useState(!1), [s, p] = e.useState(0), m = e.useRef(!1),
|
|
2149
|
+
const [d, i] = e.useState(!1), [s, p] = e.useState(0), m = e.useRef(!1), g = e.useRef(null), { isOpen: b, isMounted: E, setIsOpen: f } = jr({
|
|
2150
2150
|
isVisible: !o || l,
|
|
2151
|
-
elementRef:
|
|
2152
|
-
}), v = typeof a == "function" ? a(
|
|
2153
|
-
o && f((
|
|
2154
|
-
},
|
|
2155
|
-
const S =
|
|
2151
|
+
elementRef: g
|
|
2152
|
+
}), v = typeof a == "function" ? a(b) : a, y = typeof t == "function" ? t(b) : t, $ = () => f(!0), N = () => {
|
|
2153
|
+
o && f((h) => !h);
|
|
2154
|
+
}, w = (h) => {
|
|
2155
|
+
const S = h == null ? void 0 : h.getElementsByTagName("li"), T = S != null && S.length ? [...S].some(
|
|
2156
2156
|
(G) => G.getAttribute("data-active") === "true"
|
|
2157
2157
|
) : !1;
|
|
2158
2158
|
i(T);
|
|
@@ -2160,7 +2160,7 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2160
2160
|
p(L);
|
|
2161
2161
|
};
|
|
2162
2162
|
return e.useEffect(() => {
|
|
2163
|
-
c && (!m.current && d &&
|
|
2163
|
+
c && (!m.current && d && $(), m.current = d);
|
|
2164
2164
|
}, [d, c]), /* @__PURE__ */ e.createElement("div", { "data-testid": "side-navigation-group", className: et[tt] }, o ? /* @__PURE__ */ e.createElement(
|
|
2165
2165
|
bo,
|
|
2166
2166
|
{
|
|
@@ -2168,12 +2168,12 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2168
2168
|
"div",
|
|
2169
2169
|
{
|
|
2170
2170
|
className: u(et[`${tt}__chevron`], {
|
|
2171
|
-
[et[`${tt}__chevron--active`]]:
|
|
2171
|
+
[et[`${tt}__chevron--active`]]: b
|
|
2172
2172
|
})
|
|
2173
2173
|
},
|
|
2174
2174
|
/* @__PURE__ */ e.createElement(P, { source: er, size: "small" })
|
|
2175
2175
|
),
|
|
2176
|
-
label: /* @__PURE__ */ e.createElement(A, { className: et[`${tt}__label`], bold: !0 },
|
|
2176
|
+
label: /* @__PURE__ */ e.createElement(A, { className: et[`${tt}__label`], bold: !0 }, y),
|
|
2177
2177
|
isMainEntry: !0,
|
|
2178
2178
|
onClick: N,
|
|
2179
2179
|
onItemHover: n,
|
|
@@ -2186,24 +2186,24 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2186
2186
|
className: et[`${tt}__simple-label`],
|
|
2187
2187
|
onMouseEnter: n || ia
|
|
2188
2188
|
},
|
|
2189
|
-
|
|
2189
|
+
y
|
|
2190
2190
|
), /* @__PURE__ */ e.createElement(
|
|
2191
2191
|
"div",
|
|
2192
2192
|
{
|
|
2193
|
-
ref:
|
|
2193
|
+
ref: g,
|
|
2194
2194
|
className: u([
|
|
2195
2195
|
et[`${tt}__list-wrapper`],
|
|
2196
2196
|
{
|
|
2197
|
-
[et[`${tt}__list-wrapper--expanded`]]:
|
|
2197
|
+
[et[`${tt}__list-wrapper--expanded`]]: b
|
|
2198
2198
|
}
|
|
2199
2199
|
]),
|
|
2200
|
-
style: { maxHeight:
|
|
2200
|
+
style: { maxHeight: b ? s : 0 }
|
|
2201
2201
|
},
|
|
2202
2202
|
E && /* @__PURE__ */ e.createElement(
|
|
2203
2203
|
"ul",
|
|
2204
2204
|
{
|
|
2205
2205
|
className: u(et[`${tt}__list`], r),
|
|
2206
|
-
ref:
|
|
2206
|
+
ref: w
|
|
2207
2207
|
},
|
|
2208
2208
|
_
|
|
2209
2209
|
)
|
|
@@ -2211,7 +2211,7 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2211
2211
|
}, hr = {
|
|
2212
2212
|
"navigation-group": "lc-NavigationGroup-module__navigation-group___CxK9Y",
|
|
2213
2213
|
"navigation-group--scrollable": "lc-NavigationGroup-module__navigation-group--scrollable___lVA6K"
|
|
2214
|
-
}, kr = "navigation-group",
|
|
2214
|
+
}, kr = "navigation-group", uc = (o) => {
|
|
2215
2215
|
var n = o, {
|
|
2216
2216
|
children: t,
|
|
2217
2217
|
className: a,
|
|
@@ -2223,7 +2223,7 @@ const mo = "side-navigation-item-test-id", po = "side-navigation-active-item-tes
|
|
|
2223
2223
|
]);
|
|
2224
2224
|
return /* @__PURE__ */ e.createElement(
|
|
2225
2225
|
"ul",
|
|
2226
|
-
|
|
2226
|
+
k({
|
|
2227
2227
|
className: u(
|
|
2228
2228
|
hr[kr],
|
|
2229
2229
|
{
|
|
@@ -2273,7 +2273,7 @@ const ho = "lc-Badge-module__badge___GhLnu", ko = "lc-Badge-module__badge__dot__
|
|
|
2273
2273
|
alert: "!",
|
|
2274
2274
|
dot: /* @__PURE__ */ e.createElement("span", { "data-testid": "badge-dot", className: jt[`${Zt}__dot`] })
|
|
2275
2275
|
}[n];
|
|
2276
|
-
return /* @__PURE__ */ e.createElement("span",
|
|
2276
|
+
return /* @__PURE__ */ e.createElement("span", k({ className: i }, l), s);
|
|
2277
2277
|
}, $t = {
|
|
2278
2278
|
"navigation-item": "lc-NavigationItem-module__navigation-item___uyE9V",
|
|
2279
2279
|
"navigation-item__badge": "lc-NavigationItem-module__navigation-item__badge___cn6xZ",
|
|
@@ -2296,7 +2296,7 @@ const ho = "lc-Badge-module__badge___GhLnu", ko = "lc-Badge-module__badge__dot__
|
|
|
2296
2296
|
size: "compact",
|
|
2297
2297
|
type: t
|
|
2298
2298
|
}
|
|
2299
|
-
),
|
|
2299
|
+
), mc = (p) => {
|
|
2300
2300
|
var m = p, {
|
|
2301
2301
|
id: t,
|
|
2302
2302
|
label: a,
|
|
@@ -2331,7 +2331,7 @@ const ho = "lc-Badge-module__badge___GhLnu", ko = "lc-Badge-module__badge__dot__
|
|
|
2331
2331
|
hoverOnDelay: 400,
|
|
2332
2332
|
triggerRenderer: /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2333
2333
|
"a",
|
|
2334
|
-
|
|
2334
|
+
k({
|
|
2335
2335
|
"aria-label": a,
|
|
2336
2336
|
className: u(
|
|
2337
2337
|
$t[`${Nt}__button`],
|
|
@@ -2341,7 +2341,7 @@ const ho = "lc-Badge-module__badge___GhLnu", ko = "lc-Badge-module__badge__dot__
|
|
|
2341
2341
|
},
|
|
2342
2342
|
"lc-dark-theme"
|
|
2343
2343
|
),
|
|
2344
|
-
onClick: (
|
|
2344
|
+
onClick: (g) => d(g, t),
|
|
2345
2345
|
href: _
|
|
2346
2346
|
}, s),
|
|
2347
2347
|
r
|
|
@@ -2351,7 +2351,7 @@ const ho = "lc-Badge-module__badge___GhLnu", ko = "lc-Badge-module__badge__dot__
|
|
|
2351
2351
|
));
|
|
2352
2352
|
}, Eo = "lc-Navigation-module__navigation___x9vC9", wo = {
|
|
2353
2353
|
navigation: Eo
|
|
2354
|
-
}, $o = "navigation",
|
|
2354
|
+
}, $o = "navigation", pc = (_) => {
|
|
2355
2355
|
var o = _, {
|
|
2356
2356
|
children: t,
|
|
2357
2357
|
className: a
|
|
@@ -2359,7 +2359,7 @@ const ho = "lc-Badge-module__badge___GhLnu", ko = "lc-Badge-module__badge__dot__
|
|
|
2359
2359
|
"children",
|
|
2360
2360
|
"className"
|
|
2361
2361
|
]);
|
|
2362
|
-
return /* @__PURE__ */ e.createElement("nav",
|
|
2362
|
+
return /* @__PURE__ */ e.createElement("nav", k({ className: u(wo[$o], a) }, r), t);
|
|
2363
2363
|
}, yr = Array.from(
|
|
2364
2364
|
{ length: 10 },
|
|
2365
2365
|
(t, a) => `--surface-avatar-${a + 1}`
|
|
@@ -2461,7 +2461,7 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2461
2461
|
"type",
|
|
2462
2462
|
"withRim"
|
|
2463
2463
|
]);
|
|
2464
|
-
const
|
|
2464
|
+
const g = d === "image" && !n, [b, E] = e.useState(g), f = d === "image" && !!n && !b, v = d === "text", y = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, $ = So(c, y), N = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), w = r || No(c), h = w ? Co(w) : void 0, S = v ? { backgroundColor: w } : {}, T = u(k({
|
|
2465
2465
|
[ge[Z]]: !0,
|
|
2466
2466
|
[ge[`${Z}--${_}`]]: !0,
|
|
2467
2467
|
[ge[`${Z}--${o}`]]: !0,
|
|
@@ -2479,8 +2479,8 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2479
2479
|
ge[`${Z}__rim--${o}`]
|
|
2480
2480
|
), R = (q) => N ? "2xs" : ["medium"].includes(q) ? "xs" : ["large", "xlarge"].includes(q) ? "sm" : ["xxlarge"].includes(q) ? "lg" : "xl", V = e.useCallback(() => E(!0), []);
|
|
2481
2481
|
return e.useEffect(() => {
|
|
2482
|
-
E(
|
|
2483
|
-
}, [
|
|
2482
|
+
E(g);
|
|
2483
|
+
}, [g]), /* @__PURE__ */ e.createElement("div", k({ className: T, style: S }, s), i && /* @__PURE__ */ e.createElement(
|
|
2484
2484
|
"div",
|
|
2485
2485
|
{
|
|
2486
2486
|
"data-testid": `${Z}__rim`,
|
|
@@ -2505,12 +2505,12 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2505
2505
|
{
|
|
2506
2506
|
as: "span",
|
|
2507
2507
|
size: R(o),
|
|
2508
|
-
style: { color:
|
|
2508
|
+
style: { color: h },
|
|
2509
2509
|
bold: N,
|
|
2510
2510
|
uppercase: N
|
|
2511
2511
|
},
|
|
2512
|
-
|
|
2513
|
-
),
|
|
2512
|
+
$
|
|
2513
|
+
), b && /* @__PURE__ */ e.createElement(
|
|
2514
2514
|
P,
|
|
2515
2515
|
{
|
|
2516
2516
|
"data-testid": `${Z}__icon`,
|
|
@@ -2525,7 +2525,7 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2525
2525
|
"btn--compact": "lc-SegmentedControl-module__btn--compact___gcSwq",
|
|
2526
2526
|
"btn--medium": "lc-SegmentedControl-module__btn--medium___w3UzC",
|
|
2527
2527
|
"btn--large": "lc-SegmentedControl-module__btn--large___yHPw4"
|
|
2528
|
-
}, Po = "segmented-control",
|
|
2528
|
+
}, Po = "segmented-control", gc = ({
|
|
2529
2529
|
size: t = "medium",
|
|
2530
2530
|
buttons: a,
|
|
2531
2531
|
className: r,
|
|
@@ -2538,26 +2538,26 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2538
2538
|
e.useEffect(() => {
|
|
2539
2539
|
s && i(o);
|
|
2540
2540
|
}, [o]);
|
|
2541
|
-
const p = (
|
|
2542
|
-
s || i(
|
|
2543
|
-
}, m = a.map(({ id:
|
|
2544
|
-
const
|
|
2541
|
+
const p = (g, b) => {
|
|
2542
|
+
s || i(g), l(g, b);
|
|
2543
|
+
}, m = a.map(({ id: g, label: b, loading: E, disabled: f, icon: v }) => {
|
|
2544
|
+
const y = g === d, $ = y ? ea["btn--active"] : "", N = y ? !1 : E;
|
|
2545
2545
|
return /* @__PURE__ */ e.createElement(
|
|
2546
2546
|
W,
|
|
2547
2547
|
{
|
|
2548
|
-
key:
|
|
2548
|
+
key: g,
|
|
2549
2549
|
fullWidth: n,
|
|
2550
2550
|
loading: N,
|
|
2551
2551
|
disabled: f,
|
|
2552
|
-
"aria-pressed":
|
|
2552
|
+
"aria-pressed": y,
|
|
2553
2553
|
kind: "secondary",
|
|
2554
2554
|
icon: v,
|
|
2555
|
-
className: u(ea.btn, ea[`btn--${t}`],
|
|
2556
|
-
onClick: (
|
|
2557
|
-
p(
|
|
2555
|
+
className: u(ea.btn, ea[`btn--${t}`], $),
|
|
2556
|
+
onClick: (w) => {
|
|
2557
|
+
p(g, w);
|
|
2558
2558
|
}
|
|
2559
2559
|
},
|
|
2560
|
-
|
|
2560
|
+
b
|
|
2561
2561
|
);
|
|
2562
2562
|
});
|
|
2563
2563
|
return /* @__PURE__ */ e.createElement("div", { role: "group", className: c }, m);
|
|
@@ -2575,7 +2575,7 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2575
2575
|
card__actions__line: Uo,
|
|
2576
2576
|
card__actions__buttons: Wo,
|
|
2577
2577
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___lz4h-"
|
|
2578
|
-
}, Vt = "card", sa = `${Vt}__header`, Pa = `${sa}__heading`, ta = `${Vt}__actions`, Vo = `${sa}__no-image`,
|
|
2578
|
+
}, Vt = "card", sa = `${Vt}__header`, Pa = `${sa}__heading`, ta = `${Vt}__actions`, Vo = `${sa}__no-image`, bc = (i) => {
|
|
2579
2579
|
var s = i, {
|
|
2580
2580
|
alt: t,
|
|
2581
2581
|
buttonsOptions: a = [],
|
|
@@ -2595,8 +2595,8 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2595
2595
|
"src",
|
|
2596
2596
|
"title"
|
|
2597
2597
|
]);
|
|
2598
|
-
const [p, m] = e.useState(!1),
|
|
2599
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
2598
|
+
const [p, m] = e.useState(!1), g = p ? ua : qt, b = p ? "Hide" : "Show more", E = (a == null ? void 0 : a.length) > 0, f = !!n, v = E || f, y = c, $ = l, N = $ ? "" : be[Vo];
|
|
2599
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(be[Vt], _) }, d), y && /* @__PURE__ */ e.createElement("div", { className: u(be[sa], N) }, $ && /* @__PURE__ */ e.createElement(
|
|
2600
2600
|
"img",
|
|
2601
2601
|
{
|
|
2602
2602
|
alt: t,
|
|
@@ -2619,13 +2619,13 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2619
2619
|
},
|
|
2620
2620
|
n
|
|
2621
2621
|
), v && /* @__PURE__ */ e.createElement("div", { className: be[ta] }, /* @__PURE__ */ e.createElement("div", { className: be[`${ta}__line`] }), /* @__PURE__ */ e.createElement("div", { className: be[`${ta}__buttons`] }, E && a.map(
|
|
2622
|
-
({ kind:
|
|
2622
|
+
({ kind: w, onClick: h, children: S }, T) => /* @__PURE__ */ e.createElement(
|
|
2623
2623
|
W,
|
|
2624
2624
|
{
|
|
2625
2625
|
key: T,
|
|
2626
2626
|
size: "compact",
|
|
2627
|
-
kind:
|
|
2628
|
-
onClick:
|
|
2627
|
+
kind: w,
|
|
2628
|
+
onClick: h
|
|
2629
2629
|
},
|
|
2630
2630
|
S
|
|
2631
2631
|
)
|
|
@@ -2635,10 +2635,10 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2635
2635
|
className: be[`${ta}__buttons-expander`],
|
|
2636
2636
|
kind: "link",
|
|
2637
2637
|
iconPosition: "right",
|
|
2638
|
-
icon: /* @__PURE__ */ e.createElement(P, { source:
|
|
2638
|
+
icon: /* @__PURE__ */ e.createElement(P, { source: g }),
|
|
2639
2639
|
onClick: () => m(!p)
|
|
2640
2640
|
},
|
|
2641
|
-
|
|
2641
|
+
b
|
|
2642
2642
|
))));
|
|
2643
2643
|
}, qo = {
|
|
2644
2644
|
"field-description": "lc-FieldDescription-module__field-description___IcRDH"
|
|
@@ -2651,7 +2651,7 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2651
2651
|
"className"
|
|
2652
2652
|
]);
|
|
2653
2653
|
const n = u(qo[Ko], a);
|
|
2654
|
-
return /* @__PURE__ */ e.createElement(A, C(
|
|
2654
|
+
return /* @__PURE__ */ e.createElement(A, C(k({ as: "span", size: "sm" }, r), { className: n }), t);
|
|
2655
2655
|
}, Yo = "lc-Checkbox-module__checkbox___G7nTf", Xo = "lc-Checkbox-module__checkbox__label___-o01x", Jo = "lc-Checkbox-module__checkbox__text___P2SIq", Qo = "lc-Checkbox-module__checkbox__input___YLbVF", jo = "lc-Checkbox-module__checkbox__checkmark___16pfY", Zo = "lc-Checkbox-module__checkbox__square___MHUyd", en = "lc-Checkbox-module__checkbox__helper___YSJ-n", lt = {
|
|
2656
2656
|
checkbox: Yo,
|
|
2657
2657
|
checkbox__label: Xo,
|
|
@@ -2675,7 +2675,7 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2675
2675
|
},
|
|
2676
2676
|
/* @__PURE__ */ e.createElement("label", { className: lt[`${ct}__label`] }, /* @__PURE__ */ e.createElement(
|
|
2677
2677
|
"input",
|
|
2678
|
-
C(
|
|
2678
|
+
C(k({}, n), {
|
|
2679
2679
|
ref: l,
|
|
2680
2680
|
checked: t,
|
|
2681
2681
|
disabled: a,
|
|
@@ -2736,12 +2736,12 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2736
2736
|
toMonth: p
|
|
2737
2737
|
} = t, m = () => {
|
|
2738
2738
|
typeof a == "function" && a();
|
|
2739
|
-
}, b = () => {
|
|
2740
|
-
typeof _ == "function" && _();
|
|
2741
2739
|
}, g = () => {
|
|
2740
|
+
typeof _ == "function" && _();
|
|
2741
|
+
}, b = () => {
|
|
2742
2742
|
if (!s) {
|
|
2743
|
-
const
|
|
2744
|
-
return r(
|
|
2743
|
+
const y = St(i, 12);
|
|
2744
|
+
return r(y);
|
|
2745
2745
|
}
|
|
2746
2746
|
const f = Math.abs(sr(i, s)), v = St(
|
|
2747
2747
|
i,
|
|
@@ -2750,8 +2750,8 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2750
2750
|
return r(v);
|
|
2751
2751
|
}, E = () => {
|
|
2752
2752
|
if (!p) {
|
|
2753
|
-
const
|
|
2754
|
-
return r(
|
|
2753
|
+
const y = dr(i, 12);
|
|
2754
|
+
return r(y);
|
|
2755
2755
|
}
|
|
2756
2756
|
const f = Math.abs(sr(p, i)), v = dr(
|
|
2757
2757
|
i,
|
|
@@ -2767,7 +2767,7 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2767
2767
|
[c.navButtonPrev]: !0,
|
|
2768
2768
|
[c.navButtonInteractionDisabled]: !n
|
|
2769
2769
|
}),
|
|
2770
|
-
onClick:
|
|
2770
|
+
onClick: b
|
|
2771
2771
|
},
|
|
2772
2772
|
/* @__PURE__ */ e.createElement(P, { source: u_, kind: "subtle" })
|
|
2773
2773
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -2789,7 +2789,7 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2789
2789
|
[c.navButtonNext]: !0,
|
|
2790
2790
|
[c.navButtonInteractionDisabled]: !o
|
|
2791
2791
|
}),
|
|
2792
|
-
onClick:
|
|
2792
|
+
onClick: g
|
|
2793
2793
|
},
|
|
2794
2794
|
/* @__PURE__ */ e.createElement(P, { source: er, kind: "subtle" })
|
|
2795
2795
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -2817,9 +2817,9 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2817
2817
|
if (!a || !t)
|
|
2818
2818
|
return r;
|
|
2819
2819
|
const _ = Vr(a, t);
|
|
2820
|
-
return _ > 0 ? C(
|
|
2820
|
+
return _ > 0 ? C(k({}, r), {
|
|
2821
2821
|
[F[`${M}__day--end`]]: a
|
|
2822
|
-
}) : _ < 0 ? C(
|
|
2822
|
+
}) : _ < 0 ? C(k({}, r), {
|
|
2823
2823
|
[F[`${M}__day--start`]]: a
|
|
2824
2824
|
}) : r;
|
|
2825
2825
|
}, Ut = (t, a) => {
|
|
@@ -2834,7 +2834,7 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2834
2834
|
t.options
|
|
2835
2835
|
);
|
|
2836
2836
|
return r ? (a.selectedItem = t.initialSelectedItemKey, r.isManual && (t.initialFromDate && (a.from = t.initialFromDate), t.initialToDate && (a.to = t.initialToDate, a.temporaryTo = t.initialToDate)), a) : {};
|
|
2837
|
-
}, on = (t, a) =>
|
|
2837
|
+
}, on = (t, a) => k({
|
|
2838
2838
|
container: u({
|
|
2839
2839
|
[F[`${M}`]]: !0,
|
|
2840
2840
|
[F[`${M}--range`]]: t
|
|
@@ -2895,19 +2895,19 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2895
2895
|
"navbarElement",
|
|
2896
2896
|
"renderDay",
|
|
2897
2897
|
"innerRef"
|
|
2898
|
-
]), [m,
|
|
2898
|
+
]), [m, g] = e.useState(o || /* @__PURE__ */ new Date());
|
|
2899
2899
|
e.useEffect(() => {
|
|
2900
|
-
o && o !== m &&
|
|
2900
|
+
o && o !== m && g(o);
|
|
2901
2901
|
}, [o, m]), e.useEffect(() => {
|
|
2902
|
-
_ && o !== m && (e_(m, { from: n, to: _ }) ||
|
|
2902
|
+
_ && o !== m && (e_(m, { from: n, to: _ }) || g(_));
|
|
2903
2903
|
}, [o, m, _, n]);
|
|
2904
|
-
const
|
|
2905
|
-
(
|
|
2906
|
-
if (t.onMonthChange &&
|
|
2907
|
-
t.onMonthChange(
|
|
2904
|
+
const b = e.useCallback(
|
|
2905
|
+
(y) => {
|
|
2906
|
+
if (t.onMonthChange && y) {
|
|
2907
|
+
t.onMonthChange(y);
|
|
2908
2908
|
return;
|
|
2909
2909
|
}
|
|
2910
|
-
|
|
2910
|
+
g(y);
|
|
2911
2911
|
},
|
|
2912
2912
|
[o, t.onMonthChange]
|
|
2913
2913
|
);
|
|
@@ -2919,14 +2919,14 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2919
2919
|
);
|
|
2920
2920
|
return /* @__PURE__ */ e.createElement(
|
|
2921
2921
|
D_,
|
|
2922
|
-
|
|
2922
|
+
k({
|
|
2923
2923
|
navbarElement: d || /* @__PURE__ */ e.createElement(
|
|
2924
2924
|
an,
|
|
2925
2925
|
{
|
|
2926
2926
|
month: m,
|
|
2927
2927
|
classNames: f,
|
|
2928
2928
|
numberOfMonths: c,
|
|
2929
|
-
onMonthChange:
|
|
2929
|
+
onMonthChange: b,
|
|
2930
2930
|
toMonth: _,
|
|
2931
2931
|
fromMonth: n
|
|
2932
2932
|
}
|
|
@@ -2942,7 +2942,7 @@ const xo = "lc-Avatar-module__avatar___1zTCE", To = "lc-Avatar-module__avatar__s
|
|
|
2942
2942
|
}, p)
|
|
2943
2943
|
);
|
|
2944
2944
|
}, cn = e.forwardRef(
|
|
2945
|
-
(t, a) => /* @__PURE__ */ e.createElement(ln,
|
|
2945
|
+
(t, a) => /* @__PURE__ */ e.createElement(ln, k({ innerRef: a }, t))
|
|
2946
2946
|
);
|
|
2947
2947
|
cn.displayName = "DatePicker";
|
|
2948
2948
|
var K = /* @__PURE__ */ ((t) => (t.NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM", t.NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE", t.CLEAR = "CLEAR", t.SET_FROM = "SET_FROM", t.SET_TO = "SET_TO", t.SELECT_FIRST_DAY = "SELECT_FIRST_DAY", t.SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM", t.SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO", t.CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE", t))(K || {});
|
|
@@ -2951,7 +2951,7 @@ const sn = (t) => {
|
|
|
2951
2951
|
t.initialFromDate,
|
|
2952
2952
|
t.initialToDate,
|
|
2953
2953
|
t.toMonth
|
|
2954
|
-
), _ =
|
|
2954
|
+
), _ = k(k({}, {
|
|
2955
2955
|
selectedItem: null,
|
|
2956
2956
|
from: void 0,
|
|
2957
2957
|
to: void 0,
|
|
@@ -2969,36 +2969,36 @@ const sn = (t) => {
|
|
|
2969
2969
|
currentMonth: a
|
|
2970
2970
|
};
|
|
2971
2971
|
case K.NEW_TEMPORARY_TO_VALUE:
|
|
2972
|
-
return C(
|
|
2972
|
+
return C(k({}, n), {
|
|
2973
2973
|
temporaryTo: l.payload.date
|
|
2974
2974
|
});
|
|
2975
2975
|
case K.SELECT_FIRST_DAY:
|
|
2976
|
-
return C(
|
|
2976
|
+
return C(k({}, n), {
|
|
2977
2977
|
from: l.payload.date,
|
|
2978
2978
|
to: void 0,
|
|
2979
2979
|
temporaryTo: void 0
|
|
2980
2980
|
});
|
|
2981
2981
|
case K.SELECT_SECOND_DAY_AS_FROM:
|
|
2982
|
-
return C(
|
|
2982
|
+
return C(k({}, n), {
|
|
2983
2983
|
from: l.payload.date,
|
|
2984
2984
|
to: n.from,
|
|
2985
2985
|
temporaryTo: n.from
|
|
2986
2986
|
});
|
|
2987
2987
|
case K.SELECT_SECOND_DAY_AS_TO:
|
|
2988
|
-
return C(
|
|
2988
|
+
return C(k({}, n), {
|
|
2989
2989
|
to: l.payload.date,
|
|
2990
2990
|
temporaryTo: l.payload.date
|
|
2991
2991
|
});
|
|
2992
2992
|
case K.CURRENT_MONTH_CHANGE:
|
|
2993
|
-
return C(
|
|
2993
|
+
return C(k({}, n), {
|
|
2994
2994
|
currentMonth: l.payload.date
|
|
2995
2995
|
});
|
|
2996
2996
|
case K.SET_FROM:
|
|
2997
|
-
return C(
|
|
2997
|
+
return C(k({}, n), {
|
|
2998
2998
|
from: l.payload.date
|
|
2999
2999
|
});
|
|
3000
3000
|
case K.SET_TO:
|
|
3001
|
-
return C(
|
|
3001
|
+
return C(k({}, n), {
|
|
3002
3002
|
to: l.payload.date
|
|
3003
3003
|
});
|
|
3004
3004
|
default:
|
|
@@ -3050,8 +3050,8 @@ const sn = (t) => {
|
|
|
3050
3050
|
const { from: E, selectedItem: f, to: v } = d;
|
|
3051
3051
|
if (!(E && v))
|
|
3052
3052
|
return;
|
|
3053
|
-
const
|
|
3054
|
-
|
|
3053
|
+
const y = Ut(f, t);
|
|
3054
|
+
y && (n == null || n(C(k({}, y), {
|
|
3055
3055
|
value: {
|
|
3056
3056
|
from: E,
|
|
3057
3057
|
to: v
|
|
@@ -3068,7 +3068,7 @@ const sn = (t) => {
|
|
|
3068
3068
|
if (!Ut(E, t))
|
|
3069
3069
|
return;
|
|
3070
3070
|
const v = t.reduce(
|
|
3071
|
-
(
|
|
3071
|
+
(y, $) => C(k({}, y), { [$.id]: $ }),
|
|
3072
3072
|
{}
|
|
3073
3073
|
);
|
|
3074
3074
|
n(v[E]);
|
|
@@ -3112,17 +3112,17 @@ const sn = (t) => {
|
|
|
3112
3112
|
});
|
|
3113
3113
|
},
|
|
3114
3114
|
[t]
|
|
3115
|
-
),
|
|
3115
|
+
), g = Yt((E) => {
|
|
3116
3116
|
i({
|
|
3117
3117
|
type: K.CURRENT_MONTH_CHANGE,
|
|
3118
3118
|
payload: { date: E }
|
|
3119
3119
|
});
|
|
3120
3120
|
}, []);
|
|
3121
3121
|
return l((() => {
|
|
3122
|
-
const { currentMonth: E, from: f, selectedItem: v, temporaryTo:
|
|
3123
|
-
() => rn(f,
|
|
3124
|
-
[f,
|
|
3125
|
-
),
|
|
3122
|
+
const { currentMonth: E, from: f, selectedItem: v, temporaryTo: y, to: $ } = d, N = Xt(
|
|
3123
|
+
() => rn(f, y),
|
|
3124
|
+
[f, y]
|
|
3125
|
+
), w = Xt(() => Ut(v, t), [t, v]), h = Xt(() => [f, { from: f, to: y }], [f, y]), S = Xt(() => o ? { after: o } : void 0, [o]);
|
|
3126
3126
|
return {
|
|
3127
3127
|
select: {
|
|
3128
3128
|
onItemSelect: m,
|
|
@@ -3130,22 +3130,22 @@ const sn = (t) => {
|
|
|
3130
3130
|
},
|
|
3131
3131
|
inputs: {
|
|
3132
3132
|
fromDate: f,
|
|
3133
|
-
toDate:
|
|
3133
|
+
toDate: $
|
|
3134
3134
|
},
|
|
3135
3135
|
datepicker: {
|
|
3136
3136
|
range: !0,
|
|
3137
3137
|
month: E,
|
|
3138
3138
|
numberOfMonths: 2,
|
|
3139
3139
|
onDayClick: p,
|
|
3140
|
-
selectedDays:
|
|
3140
|
+
selectedDays: h,
|
|
3141
3141
|
modifiers: N,
|
|
3142
3142
|
initialMonth: o && St(o, 1),
|
|
3143
3143
|
toMonth: o,
|
|
3144
3144
|
disabledDays: S,
|
|
3145
3145
|
onDayMouseEnter: s,
|
|
3146
|
-
onMonthChange:
|
|
3146
|
+
onMonthChange: g
|
|
3147
3147
|
},
|
|
3148
|
-
selectedOption:
|
|
3148
|
+
selectedOption: w
|
|
3149
3149
|
};
|
|
3150
3150
|
})());
|
|
3151
3151
|
};
|
|
@@ -3162,12 +3162,12 @@ dn.defaultProps = {
|
|
|
3162
3162
|
}
|
|
3163
3163
|
]
|
|
3164
3164
|
};
|
|
3165
|
-
const
|
|
3165
|
+
const fc = (t) => {
|
|
3166
3166
|
const n = t, { className: a, children: r } = n, _ = B(n, ["className", "children"]), o = u(
|
|
3167
3167
|
a,
|
|
3168
3168
|
F["date-picker--range__calendars-wrapper"]
|
|
3169
3169
|
);
|
|
3170
|
-
return /* @__PURE__ */ e.createElement("div", C(
|
|
3170
|
+
return /* @__PURE__ */ e.createElement("div", C(k({}, _), { className: o }), r);
|
|
3171
3171
|
}, O = {
|
|
3172
3172
|
"details-card": "lc-DetailsCard-module__details-card___cVoS7",
|
|
3173
3173
|
"details-card__button--fading": "lc-DetailsCard-module__details-card__button--fading___tQA02",
|
|
@@ -3189,7 +3189,7 @@ const bc = (t) => {
|
|
|
3189
3189
|
"details-card__content": "lc-DetailsCard-module__details-card__content___RNVd2",
|
|
3190
3190
|
"details-card__content--spacing": "lc-DetailsCard-module__details-card__content--spacing___QecUa",
|
|
3191
3191
|
"details-card__content--full-space": "lc-DetailsCard-module__details-card__content--full-space___2ms8I"
|
|
3192
|
-
}, H = "details-card",
|
|
3192
|
+
}, H = "details-card", un = ["input", "button", "select", "textarea", "a"], vc = ({
|
|
3193
3193
|
children: t,
|
|
3194
3194
|
className: a,
|
|
3195
3195
|
leftNode: r,
|
|
@@ -3201,22 +3201,25 @@ const bc = (t) => {
|
|
|
3201
3201
|
hideLabelOnOpen: d,
|
|
3202
3202
|
onClick: i
|
|
3203
3203
|
}) => {
|
|
3204
|
-
const [s, p] = e.useState(c), [m,
|
|
3204
|
+
const [s, p] = e.useState(c), [m, g] = e.useState(0), b = e.useRef(null), E = u(
|
|
3205
3205
|
O[H],
|
|
3206
3206
|
n && O[`${H}--with-divider`],
|
|
3207
3207
|
a
|
|
3208
|
-
), f = d && s, v = typeof o == "string",
|
|
3209
|
-
p((
|
|
3208
|
+
), f = d && s, v = typeof o == "string", y = (N) => {
|
|
3209
|
+
p((w) => !w), N.currentTarget.blur(), i == null || i(N);
|
|
3210
|
+
}, $ = (N) => {
|
|
3211
|
+
const h = N.target.tagName.toLowerCase();
|
|
3212
|
+
un.includes(h) || (p((S) => !S), i == null || i(N));
|
|
3210
3213
|
};
|
|
3211
3214
|
return e.useEffect(() => {
|
|
3212
|
-
const
|
|
3213
|
-
if (
|
|
3214
|
-
const
|
|
3215
|
-
|
|
3215
|
+
const N = !!window.IntersectionObserver;
|
|
3216
|
+
if (b.current && N) {
|
|
3217
|
+
const w = new ResizeObserver(() => {
|
|
3218
|
+
b.current && m !== b.current.offsetHeight && g(b.current.offsetHeight);
|
|
3216
3219
|
});
|
|
3217
|
-
return
|
|
3220
|
+
return w.observe(b.current), () => w.disconnect();
|
|
3218
3221
|
}
|
|
3219
|
-
}, [
|
|
3222
|
+
}, [b]), /* @__PURE__ */ e.createElement("div", { className: E }, /* @__PURE__ */ e.createElement(
|
|
3220
3223
|
"div",
|
|
3221
3224
|
{
|
|
3222
3225
|
className: u(
|
|
@@ -3227,7 +3230,8 @@ const bc = (t) => {
|
|
|
3227
3230
|
),
|
|
3228
3231
|
"aria-expanded": s,
|
|
3229
3232
|
"aria-hidden": f,
|
|
3230
|
-
"data-testid": "details-card-label"
|
|
3233
|
+
"data-testid": "details-card-label",
|
|
3234
|
+
onClick: $
|
|
3231
3235
|
},
|
|
3232
3236
|
/* @__PURE__ */ e.createElement(
|
|
3233
3237
|
"div",
|
|
@@ -3268,7 +3272,7 @@ const bc = (t) => {
|
|
|
3268
3272
|
s && O[`${H}__button--open`],
|
|
3269
3273
|
d && O[`${H}__button--fading`]
|
|
3270
3274
|
),
|
|
3271
|
-
onClick:
|
|
3275
|
+
onClick: y,
|
|
3272
3276
|
"aria-expanded": s
|
|
3273
3277
|
}
|
|
3274
3278
|
), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
@@ -3285,7 +3289,7 @@ const bc = (t) => {
|
|
|
3285
3289
|
/* @__PURE__ */ e.createElement(
|
|
3286
3290
|
"div",
|
|
3287
3291
|
{
|
|
3288
|
-
ref:
|
|
3292
|
+
ref: b,
|
|
3289
3293
|
className: u(
|
|
3290
3294
|
O[`${H}__content`],
|
|
3291
3295
|
l && O[`${H}__content--full-space`],
|
|
@@ -3299,7 +3303,7 @@ const bc = (t) => {
|
|
|
3299
3303
|
"details-card-info": "lc-DetailsCardInfo-module__details-card-info___D4VRk",
|
|
3300
3304
|
"details-card-info__label": "lc-DetailsCardInfo-module__details-card-info__label___U-KsO",
|
|
3301
3305
|
"details-card-info__content": "lc-DetailsCardInfo-module__details-card-info__content___TFEXS"
|
|
3302
|
-
}, Ma = "details-card-info",
|
|
3306
|
+
}, Ma = "details-card-info", hc = ({
|
|
3303
3307
|
children: t,
|
|
3304
3308
|
label: a
|
|
3305
3309
|
}) => /* @__PURE__ */ e.createElement("div", { className: Fa[Ma] }, /* @__PURE__ */ e.createElement("div", { className: Fa[`${Ma}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: Fa[`${Ma}__content`] }, t)), Nr = {
|
|
@@ -3314,7 +3318,7 @@ const bc = (t) => {
|
|
|
3314
3318
|
"className"
|
|
3315
3319
|
]);
|
|
3316
3320
|
const n = u(Nr[Sr], a);
|
|
3317
|
-
return /* @__PURE__ */ e.createElement(A, C(
|
|
3321
|
+
return /* @__PURE__ */ e.createElement(A, C(k({ as: "span", size: "sm" }, r), { className: n }), /* @__PURE__ */ e.createElement(
|
|
3318
3322
|
P,
|
|
3319
3323
|
{
|
|
3320
3324
|
source: Za,
|
|
@@ -3326,7 +3330,7 @@ const bc = (t) => {
|
|
|
3326
3330
|
"field-group": "lc-FieldGroup-module__field-group___gy8lp",
|
|
3327
3331
|
"field-group--inline": "lc-FieldGroup-module__field-group--inline___or4qf",
|
|
3328
3332
|
"field-group--stretched": "lc-FieldGroup-module__field-group--stretched___6rkuO"
|
|
3329
|
-
}, La = "field-group",
|
|
3333
|
+
}, La = "field-group", kc = (c) => {
|
|
3330
3334
|
var d = c, {
|
|
3331
3335
|
className: t = "",
|
|
3332
3336
|
children: a,
|
|
@@ -3346,14 +3350,14 @@ const bc = (t) => {
|
|
|
3346
3350
|
[Ra[`${La}--inline`]]: o,
|
|
3347
3351
|
[Ra[`${La}--stretched`]]: n
|
|
3348
3352
|
});
|
|
3349
|
-
return /* @__PURE__ */ e.createElement("div", C(
|
|
3350
|
-
},
|
|
3351
|
-
form:
|
|
3352
|
-
form__header:
|
|
3353
|
-
form__footer:
|
|
3354
|
-
form__label:
|
|
3355
|
-
form__helper:
|
|
3356
|
-
}, Mt = "form",
|
|
3353
|
+
return /* @__PURE__ */ e.createElement("div", C(k({}, l), { className: i }), a, _ && /* @__PURE__ */ e.createElement(lr, null, _), r && /* @__PURE__ */ e.createElement(wa, null, r));
|
|
3354
|
+
}, mn = "lc-Form-module__form___1nOYF", pn = "lc-Form-module__form__header___U4B7t", gn = "lc-Form-module__form__footer___1-sUX", bn = "lc-Form-module__form__label___spg-J", fn = "lc-Form-module__form__helper___bhfwS", Ft = {
|
|
3355
|
+
form: mn,
|
|
3356
|
+
form__header: pn,
|
|
3357
|
+
form__footer: gn,
|
|
3358
|
+
form__label: bn,
|
|
3359
|
+
form__helper: fn
|
|
3360
|
+
}, Mt = "form", yc = (l) => {
|
|
3357
3361
|
var c = l, {
|
|
3358
3362
|
className: t,
|
|
3359
3363
|
children: a,
|
|
@@ -3367,7 +3371,7 @@ const bc = (t) => {
|
|
|
3367
3371
|
"helperText",
|
|
3368
3372
|
"formFooter"
|
|
3369
3373
|
]);
|
|
3370
|
-
return /* @__PURE__ */ e.createElement("form",
|
|
3374
|
+
return /* @__PURE__ */ e.createElement("form", k({ className: u(Ft[Mt], t) }, n), (r || _) && /* @__PURE__ */ e.createElement("div", { className: Ft[`${Mt}__header`] }, r && /* @__PURE__ */ e.createElement(Ee, { size: "sm", className: Ft[`${Mt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(A, { as: "p", size: "sm", className: Ft[`${Mt}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: Ft[`${Mt}__footer`] }, o));
|
|
3371
3375
|
}, Y = {
|
|
3372
3376
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
3373
3377
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
@@ -3385,7 +3389,7 @@ const bc = (t) => {
|
|
|
3385
3389
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___DCBjC",
|
|
3386
3390
|
"form-field__content": "lc-FormField-module__form-field__content___XaOx3",
|
|
3387
3391
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___NpVw4"
|
|
3388
|
-
}, X = "form-field",
|
|
3392
|
+
}, X = "form-field", Ec = ({
|
|
3389
3393
|
inline: t,
|
|
3390
3394
|
error: a,
|
|
3391
3395
|
description: r,
|
|
@@ -3404,8 +3408,8 @@ const bc = (t) => {
|
|
|
3404
3408
|
n
|
|
3405
3409
|
);
|
|
3406
3410
|
return e.useEffect(() => {
|
|
3407
|
-
const
|
|
3408
|
-
return t &&
|
|
3411
|
+
const g = i;
|
|
3412
|
+
return t && g.current ? p(`${g.current.clientHeight}px`) : p("auto");
|
|
3409
3413
|
}), /* @__PURE__ */ e.createElement("div", { className: m }, d && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3410
3414
|
A,
|
|
3411
3415
|
{
|
|
@@ -3489,7 +3493,7 @@ const bc = (t) => {
|
|
|
3489
3493
|
"form-group__header": "lc-FormGroup-module__form-group__header___DgGmR",
|
|
3490
3494
|
"form-group__label": "lc-FormGroup-module__form-group__label___NC-JW",
|
|
3491
3495
|
"form-group__helper": "lc-FormGroup-module__form-group__helper___SRuxe"
|
|
3492
|
-
}, ra = "form-group",
|
|
3496
|
+
}, ra = "form-group", wc = (n) => {
|
|
3493
3497
|
var l = n, {
|
|
3494
3498
|
className: t = "",
|
|
3495
3499
|
children: a,
|
|
@@ -3504,7 +3508,7 @@ const bc = (t) => {
|
|
|
3504
3508
|
const c = u(aa[ra], t);
|
|
3505
3509
|
return /* @__PURE__ */ e.createElement(
|
|
3506
3510
|
"div",
|
|
3507
|
-
C(
|
|
3511
|
+
C(k(C(k({}, o), {
|
|
3508
3512
|
role: "group"
|
|
3509
3513
|
}), r && { "aria-label": r }), {
|
|
3510
3514
|
className: c
|
|
@@ -3520,8 +3524,8 @@ const bc = (t) => {
|
|
|
3520
3524
|
), _ && /* @__PURE__ */ e.createElement(A, { as: "div", size: "sm", className: aa[`${ra}__helper`] }, _)),
|
|
3521
3525
|
a
|
|
3522
3526
|
);
|
|
3523
|
-
},
|
|
3524
|
-
input:
|
|
3527
|
+
}, vn = "lc-Input-module__input___qeMAQ", Ae = {
|
|
3528
|
+
input: vn,
|
|
3525
3529
|
"input--focused": "lc-Input-module__input--focused___wQH5-",
|
|
3526
3530
|
"input--disabled": "lc-Input-module__input--disabled___HidXX",
|
|
3527
3531
|
"input--crop": "lc-Input-module__input--crop___uzJS8",
|
|
@@ -3544,7 +3548,7 @@ const bc = (t) => {
|
|
|
3544
3548
|
[Ae[`${Ie}__icon--disabled`]]: a
|
|
3545
3549
|
}
|
|
3546
3550
|
)
|
|
3547
|
-
}),
|
|
3551
|
+
}), $c = e.forwardRef(
|
|
3548
3552
|
(d, c) => {
|
|
3549
3553
|
var i = d, {
|
|
3550
3554
|
inputSize: t = "medium",
|
|
@@ -3563,7 +3567,7 @@ const bc = (t) => {
|
|
|
3563
3567
|
]);
|
|
3564
3568
|
const s = e.useRef(null);
|
|
3565
3569
|
e.useImperativeHandle(c, () => s.current, []);
|
|
3566
|
-
const [p, m] = e.useState(!1), [
|
|
3570
|
+
const [p, m] = e.useState(!1), [g, b] = e.useState(!1), { type: E, onFocus: f, onBlur: v } = l, y = u(
|
|
3567
3571
|
o,
|
|
3568
3572
|
Ae[Ie],
|
|
3569
3573
|
Ae[`${Ie}--${t}`],
|
|
@@ -3574,7 +3578,7 @@ const bc = (t) => {
|
|
|
3574
3578
|
[Ae[`${Ie}--crop`]]: n,
|
|
3575
3579
|
[Ae[`${Ie}--read-only`]]: l.readOnly
|
|
3576
3580
|
}
|
|
3577
|
-
),
|
|
3581
|
+
), $ = r ? "var(--content-disabled)" : "var(--content-default)", N = g ? g_ : b_, w = _ && _.place === "left", h = _ && E !== "password" && _.place === "right", S = () => {
|
|
3578
3582
|
var T;
|
|
3579
3583
|
(T = s.current) == null || T.focus();
|
|
3580
3584
|
};
|
|
@@ -3582,15 +3586,15 @@ const bc = (t) => {
|
|
|
3582
3586
|
A,
|
|
3583
3587
|
{
|
|
3584
3588
|
as: "div",
|
|
3585
|
-
className:
|
|
3589
|
+
className: y,
|
|
3586
3590
|
"aria-disabled": r,
|
|
3587
3591
|
"tab-index": "0",
|
|
3588
3592
|
onClick: S
|
|
3589
3593
|
},
|
|
3590
|
-
|
|
3594
|
+
w && Cr(_, r),
|
|
3591
3595
|
/* @__PURE__ */ e.createElement(
|
|
3592
3596
|
"input",
|
|
3593
|
-
C(
|
|
3597
|
+
C(k({}, l), {
|
|
3594
3598
|
ref: s,
|
|
3595
3599
|
onFocus: (T) => {
|
|
3596
3600
|
m(!0), f == null || f(T);
|
|
@@ -3599,27 +3603,27 @@ const bc = (t) => {
|
|
|
3599
3603
|
m(!1), v == null || v(T);
|
|
3600
3604
|
},
|
|
3601
3605
|
disabled: r,
|
|
3602
|
-
type: E && !
|
|
3606
|
+
type: E && !g ? E : "text"
|
|
3603
3607
|
})
|
|
3604
3608
|
),
|
|
3605
|
-
|
|
3609
|
+
h && Cr(_, r),
|
|
3606
3610
|
E === "password" && /* @__PURE__ */ e.createElement(
|
|
3607
3611
|
W,
|
|
3608
3612
|
{
|
|
3609
3613
|
disabled: r,
|
|
3610
3614
|
kind: "text",
|
|
3611
3615
|
size: "compact",
|
|
3612
|
-
icon: /* @__PURE__ */ e.createElement(P, { customColor:
|
|
3613
|
-
onClick: () =>
|
|
3616
|
+
icon: /* @__PURE__ */ e.createElement(P, { customColor: $, source: N }),
|
|
3617
|
+
onClick: () => b((T) => !T),
|
|
3614
3618
|
className: Ae[`${Ie}__visibility-button`]
|
|
3615
3619
|
}
|
|
3616
3620
|
)
|
|
3617
3621
|
);
|
|
3618
3622
|
}
|
|
3619
|
-
),
|
|
3620
|
-
link:
|
|
3623
|
+
), hn = "lc-Link-module__link___kqx52", xr = {
|
|
3624
|
+
link: hn,
|
|
3621
3625
|
"link--bold": "lc-Link-module__link--bold___1rGdO"
|
|
3622
|
-
}, Tr = "link",
|
|
3626
|
+
}, Tr = "link", Nc = (_) => {
|
|
3623
3627
|
var o = _, {
|
|
3624
3628
|
bold: t = !1,
|
|
3625
3629
|
className: a = ""
|
|
@@ -3629,7 +3633,7 @@ const bc = (t) => {
|
|
|
3629
3633
|
]);
|
|
3630
3634
|
return /* @__PURE__ */ e.createElement(
|
|
3631
3635
|
"a",
|
|
3632
|
-
|
|
3636
|
+
k({
|
|
3633
3637
|
className: u(
|
|
3634
3638
|
xr[Tr],
|
|
3635
3639
|
t && xr[`${Tr}--bold`],
|
|
@@ -3637,7 +3641,7 @@ const bc = (t) => {
|
|
|
3637
3641
|
)
|
|
3638
3642
|
}, r)
|
|
3639
3643
|
);
|
|
3640
|
-
},
|
|
3644
|
+
}, kn = "lc-Modal-module__modal__body___M-jmN", yn = "lc-Modal-module__modal__header___Fp5VE", En = "lc-Modal-module__modal__heading___G9KVK", wn = "lc-Modal-module__modal__footer___2LYdc", re = {
|
|
3641
3645
|
"modal-base": "lc-Modal-module__modal-base___hbL1U",
|
|
3642
3646
|
"fade-in": "lc-Modal-module__fade-in___gWlGs",
|
|
3643
3647
|
"modal-base--full-space": "lc-Modal-module__modal-base--full-space___KcGFL",
|
|
@@ -3646,14 +3650,14 @@ const bc = (t) => {
|
|
|
3646
3650
|
"modal-base__overlay--labelled": "lc-Modal-module__modal-base__overlay--labelled___THAo-",
|
|
3647
3651
|
"modal-base__close": "lc-Modal-module__modal-base__close___gJlgr",
|
|
3648
3652
|
"modal-base__close--label-type": "lc-Modal-module__modal-base__close--label-type___Om0Vb",
|
|
3649
|
-
modal__body:
|
|
3650
|
-
modal__header:
|
|
3653
|
+
modal__body: kn,
|
|
3654
|
+
modal__header: yn,
|
|
3651
3655
|
"modal__header--without-heading": "lc-Modal-module__modal__header--without-heading___N2Bra",
|
|
3652
3656
|
"modal__label-header": "lc-Modal-module__modal__label-header___ZPtEy",
|
|
3653
|
-
modal__heading:
|
|
3657
|
+
modal__heading: En,
|
|
3654
3658
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
3655
|
-
modal__footer:
|
|
3656
|
-
}, Rt = "modal-base",
|
|
3659
|
+
modal__footer: wn
|
|
3660
|
+
}, Rt = "modal-base", $n = (d) => {
|
|
3657
3661
|
var i = d, {
|
|
3658
3662
|
children: t,
|
|
3659
3663
|
className: a = "",
|
|
@@ -3679,8 +3683,8 @@ const bc = (t) => {
|
|
|
3679
3683
|
e.useEffect(() => {
|
|
3680
3684
|
if (!_)
|
|
3681
3685
|
return;
|
|
3682
|
-
const m = (
|
|
3683
|
-
|
|
3686
|
+
const m = (g) => {
|
|
3687
|
+
g.key === _e.esc && r();
|
|
3684
3688
|
};
|
|
3685
3689
|
return document.addEventListener("keyup", m, !0), () => document.removeEventListener("keyup", m, !0);
|
|
3686
3690
|
}, [_]);
|
|
@@ -3700,7 +3704,7 @@ const bc = (t) => {
|
|
|
3700
3704
|
},
|
|
3701
3705
|
/* @__PURE__ */ e.createElement(
|
|
3702
3706
|
"div",
|
|
3703
|
-
|
|
3707
|
+
k({
|
|
3704
3708
|
role: "dialog",
|
|
3705
3709
|
"aria-modal": !0,
|
|
3706
3710
|
className: s
|
|
@@ -3726,7 +3730,7 @@ const bc = (t) => {
|
|
|
3726
3730
|
onClick: r,
|
|
3727
3731
|
icon: /* @__PURE__ */ e.createElement(P, { source: Pe, size: "medium", customColor: a })
|
|
3728
3732
|
}
|
|
3729
|
-
), at = "modal",
|
|
3733
|
+
), at = "modal", Sc = (i) => {
|
|
3730
3734
|
var s = i, {
|
|
3731
3735
|
children: t,
|
|
3732
3736
|
className: a = "",
|
|
@@ -3746,12 +3750,12 @@ const bc = (t) => {
|
|
|
3746
3750
|
"onClose",
|
|
3747
3751
|
"contentClassName"
|
|
3748
3752
|
]);
|
|
3749
|
-
const p = u(re[at], a), m = typeof t == "string",
|
|
3750
|
-
|
|
3753
|
+
const p = u(re[at], a), m = typeof t == "string", g = (b) => {
|
|
3754
|
+
b.preventDefault(), b.stopPropagation(), l();
|
|
3751
3755
|
};
|
|
3752
3756
|
return /* @__PURE__ */ e.createElement(
|
|
3753
|
-
|
|
3754
|
-
|
|
3757
|
+
$n,
|
|
3758
|
+
k({
|
|
3755
3759
|
className: p,
|
|
3756
3760
|
fullSpaceContent: o,
|
|
3757
3761
|
onClose: l,
|
|
@@ -3770,7 +3774,7 @@ const bc = (t) => {
|
|
|
3770
3774
|
{
|
|
3771
3775
|
labelType: !!_,
|
|
3772
3776
|
customColor: "var(--color-white)",
|
|
3773
|
-
onClick:
|
|
3777
|
+
onClick: g
|
|
3774
3778
|
}
|
|
3775
3779
|
)),
|
|
3776
3780
|
!_ && /* @__PURE__ */ e.createElement(
|
|
@@ -3789,7 +3793,7 @@ const bc = (t) => {
|
|
|
3789
3793
|
},
|
|
3790
3794
|
r
|
|
3791
3795
|
),
|
|
3792
|
-
/* @__PURE__ */ e.createElement(Dr, { onClick:
|
|
3796
|
+
/* @__PURE__ */ e.createElement(Dr, { onClick: g })
|
|
3793
3797
|
),
|
|
3794
3798
|
/* @__PURE__ */ e.createElement(
|
|
3795
3799
|
"div",
|
|
@@ -3801,7 +3805,7 @@ const bc = (t) => {
|
|
|
3801
3805
|
),
|
|
3802
3806
|
n && /* @__PURE__ */ e.createElement("div", { className: re[`${at}__footer`] }, n)
|
|
3803
3807
|
);
|
|
3804
|
-
},
|
|
3808
|
+
}, Cc = ({
|
|
3805
3809
|
children: t,
|
|
3806
3810
|
className: a = "",
|
|
3807
3811
|
parentElementName: r = "body",
|
|
@@ -3820,7 +3824,7 @@ const bc = (t) => {
|
|
|
3820
3824
|
"modal-header__heading-left-node": "lc-ModalHeader-module__modal-header__heading-left-node___1--G5",
|
|
3821
3825
|
"modal-header__heading-body": "lc-ModalHeader-module__modal-header__heading-body___HHEF-",
|
|
3822
3826
|
"modal-header__heading-description": "lc-ModalHeader-module__modal-header__heading-description___54Xvf"
|
|
3823
|
-
}, Ot = "modal-header",
|
|
3827
|
+
}, Ot = "modal-header", xc = ({
|
|
3824
3828
|
title: t,
|
|
3825
3829
|
iconProps: a,
|
|
3826
3830
|
avatarProps: r,
|
|
@@ -3830,12 +3834,12 @@ const bc = (t) => {
|
|
|
3830
3834
|
const n = u(Lt[Ot], o);
|
|
3831
3835
|
return /* @__PURE__ */ e.createElement("div", { className: n }, a && /* @__PURE__ */ e.createElement(
|
|
3832
3836
|
P,
|
|
3833
|
-
|
|
3837
|
+
k({
|
|
3834
3838
|
className: Lt[`${Ot}__heading-left-node`]
|
|
3835
3839
|
}, a)
|
|
3836
3840
|
), r && /* @__PURE__ */ e.createElement(
|
|
3837
3841
|
Ao,
|
|
3838
|
-
|
|
3842
|
+
k({
|
|
3839
3843
|
className: Lt[`${Ot}__heading-left-node`]
|
|
3840
3844
|
}, r)
|
|
3841
3845
|
), /* @__PURE__ */ e.createElement("div", { className: Lt[`${Ot}__heading-body`] }, /* @__PURE__ */ e.createElement(Ee, { as: "div", size: "sm" }, t), _ && /* @__PURE__ */ e.createElement(
|
|
@@ -3853,7 +3857,7 @@ const bc = (t) => {
|
|
|
3853
3857
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___yaRvQ",
|
|
3854
3858
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___D90rG",
|
|
3855
3859
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___TMxRx"
|
|
3856
|
-
}, yt = "numeric-input",
|
|
3860
|
+
}, yt = "numeric-input", Tc = (s) => {
|
|
3857
3861
|
var p = s, {
|
|
3858
3862
|
className: t,
|
|
3859
3863
|
error: a,
|
|
@@ -3875,7 +3879,7 @@ const bc = (t) => {
|
|
|
3875
3879
|
"style",
|
|
3876
3880
|
"onChange"
|
|
3877
3881
|
]);
|
|
3878
|
-
const m = e.useRef(null),
|
|
3882
|
+
const m = e.useRef(null), g = u(
|
|
3879
3883
|
kt[yt],
|
|
3880
3884
|
{
|
|
3881
3885
|
[kt[`${yt}--error`]]: a,
|
|
@@ -3883,37 +3887,37 @@ const bc = (t) => {
|
|
|
3883
3887
|
[kt[`${yt}--disabled`]]: n
|
|
3884
3888
|
},
|
|
3885
3889
|
t
|
|
3886
|
-
),
|
|
3887
|
-
const S = parseInt(r, 10) +
|
|
3888
|
-
return
|
|
3889
|
-
}, v = (
|
|
3890
|
-
|
|
3891
|
-
},
|
|
3892
|
-
|
|
3893
|
-
const S =
|
|
3890
|
+
), b = (h) => d(String(h)), E = (h) => _ !== void 0 && h > _ ? _ : o !== void 0 && h < o ? o : h, f = (h) => {
|
|
3891
|
+
const S = parseInt(r, 10) + h;
|
|
3892
|
+
return b(E(S));
|
|
3893
|
+
}, v = (h) => {
|
|
3894
|
+
h.key === _e.arrowDown && (h.preventDefault(), f(-1)), h.key === _e.arrowUp && (h.preventDefault(), f(1));
|
|
3895
|
+
}, y = (h, S) => S !== void 0 && parseInt(h, 10) === S, $ = (h) => {
|
|
3896
|
+
h.preventDefault(), h.stopPropagation();
|
|
3897
|
+
const S = h.currentTarget.value.replace(
|
|
3894
3898
|
/((?!([-]|([-]?\d+))).)/,
|
|
3895
3899
|
""
|
|
3896
3900
|
);
|
|
3897
3901
|
if (S === "" || S === "-")
|
|
3898
|
-
return
|
|
3902
|
+
return b(S);
|
|
3899
3903
|
const T = parseInt(S, 10);
|
|
3900
|
-
return
|
|
3904
|
+
return b(E(T));
|
|
3901
3905
|
}, N = () => {
|
|
3902
|
-
var
|
|
3903
|
-
return (
|
|
3904
|
-
},
|
|
3905
|
-
var
|
|
3906
|
-
return (
|
|
3906
|
+
var h;
|
|
3907
|
+
return (h = m.current) == null || h.focus(), f(1);
|
|
3908
|
+
}, w = () => {
|
|
3909
|
+
var h;
|
|
3910
|
+
return (h = m.current) == null || h.focus(), f(-1);
|
|
3907
3911
|
};
|
|
3908
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
3912
|
+
return /* @__PURE__ */ e.createElement("div", { className: g, style: c }, /* @__PURE__ */ e.createElement(
|
|
3909
3913
|
"input",
|
|
3910
|
-
C(
|
|
3914
|
+
C(k({
|
|
3911
3915
|
type: "text",
|
|
3912
3916
|
ref: m
|
|
3913
3917
|
}, i), {
|
|
3914
3918
|
value: r,
|
|
3915
3919
|
disabled: n,
|
|
3916
|
-
onChange:
|
|
3920
|
+
onChange: $,
|
|
3917
3921
|
onKeyDown: v,
|
|
3918
3922
|
min: o,
|
|
3919
3923
|
max: _
|
|
@@ -3922,7 +3926,7 @@ const bc = (t) => {
|
|
|
3922
3926
|
"button",
|
|
3923
3927
|
{
|
|
3924
3928
|
tabIndex: -1,
|
|
3925
|
-
disabled: n ||
|
|
3929
|
+
disabled: n || y(r, _),
|
|
3926
3930
|
onClick: N,
|
|
3927
3931
|
"aria-label": "Increment value",
|
|
3928
3932
|
className: kt[`${yt}__increment`],
|
|
@@ -3932,7 +3936,7 @@ const bc = (t) => {
|
|
|
3932
3936
|
P,
|
|
3933
3937
|
{
|
|
3934
3938
|
source: ua,
|
|
3935
|
-
disabled: n ||
|
|
3939
|
+
disabled: n || y(r, _),
|
|
3936
3940
|
kind: "primary"
|
|
3937
3941
|
}
|
|
3938
3942
|
)
|
|
@@ -3940,10 +3944,10 @@ const bc = (t) => {
|
|
|
3940
3944
|
"button",
|
|
3941
3945
|
{
|
|
3942
3946
|
tabIndex: -1,
|
|
3943
|
-
disabled: n ||
|
|
3947
|
+
disabled: n || y(r, o),
|
|
3944
3948
|
"aria-label": "Decrement value",
|
|
3945
3949
|
className: kt[`${yt}__decrement`],
|
|
3946
|
-
onClick:
|
|
3950
|
+
onClick: w,
|
|
3947
3951
|
type: "button"
|
|
3948
3952
|
},
|
|
3949
3953
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3951,11 +3955,11 @@ const bc = (t) => {
|
|
|
3951
3955
|
{
|
|
3952
3956
|
source: qt,
|
|
3953
3957
|
kind: "primary",
|
|
3954
|
-
disabled: n ||
|
|
3958
|
+
disabled: n || y(r, o)
|
|
3955
3959
|
}
|
|
3956
3960
|
)
|
|
3957
3961
|
)));
|
|
3958
|
-
},
|
|
3962
|
+
}, Nn = 2, Sn = 200, Cn = 400;
|
|
3959
3963
|
[
|
|
3960
3964
|
...[...Array(100)].map((t, a) => ({
|
|
3961
3965
|
key: `option${a + 8}`,
|
|
@@ -3963,7 +3967,7 @@ const bc = (t) => {
|
|
|
3963
3967
|
disabled: a % 4 === 0
|
|
3964
3968
|
}))
|
|
3965
3969
|
];
|
|
3966
|
-
const Ct = "select-all",
|
|
3970
|
+
const Ct = "select-all", xn = (t, a) => {
|
|
3967
3971
|
const r = [];
|
|
3968
3972
|
return t.forEach((_, o) => {
|
|
3969
3973
|
a(_) && r.push(o);
|
|
@@ -3985,7 +3989,7 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
3985
3989
|
"picker-list__item__label": "lc-PickerListItem-module__picker-list__item__label___e0uwB",
|
|
3986
3990
|
"picker-list__item__main-label": "lc-PickerListItem-module__picker-list__item__main-label___YfUhr",
|
|
3987
3991
|
"picker-list__item__secondary-label": "lc-PickerListItem-module__picker-list__item__secondary-label___6xcMD"
|
|
3988
|
-
}, Ce = "picker-list__item",
|
|
3992
|
+
}, Ce = "picker-list__item", Tn = ({
|
|
3989
3993
|
index: t,
|
|
3990
3994
|
isActive: a,
|
|
3991
3995
|
isSelected: r,
|
|
@@ -4029,7 +4033,7 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4029
4033
|
if (l.groupHeader)
|
|
4030
4034
|
return /* @__PURE__ */ e.createElement(
|
|
4031
4035
|
"div",
|
|
4032
|
-
|
|
4036
|
+
k({
|
|
4033
4037
|
id: `item-${t}`,
|
|
4034
4038
|
key: l.key,
|
|
4035
4039
|
role: "group",
|
|
@@ -4042,7 +4046,7 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4042
4046
|
};
|
|
4043
4047
|
return /* @__PURE__ */ e.createElement(
|
|
4044
4048
|
"div",
|
|
4045
|
-
C(
|
|
4049
|
+
C(k({
|
|
4046
4050
|
id: l.key,
|
|
4047
4051
|
key: l.key,
|
|
4048
4052
|
tabIndex: a ? 0 : -1,
|
|
@@ -4081,11 +4085,11 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4081
4085
|
)
|
|
4082
4086
|
)
|
|
4083
4087
|
);
|
|
4084
|
-
},
|
|
4085
|
-
listbox:
|
|
4088
|
+
}, Dn = "lc-PickerList-module__listbox___-LqE-", Et = {
|
|
4089
|
+
listbox: Dn,
|
|
4086
4090
|
"no-results": "lc-PickerList-module__no-results___QRce-",
|
|
4087
4091
|
"listbox-wrapper": "lc-PickerList-module__listbox-wrapper___FbDrf"
|
|
4088
|
-
}, Ar = "picker-list",
|
|
4092
|
+
}, Ar = "picker-list", Bn = ({
|
|
4089
4093
|
context: t,
|
|
4090
4094
|
setFloating: a,
|
|
4091
4095
|
floatingStyles: r,
|
|
@@ -4099,20 +4103,20 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4099
4103
|
getFloatingProps: s,
|
|
4100
4104
|
getItemProps: p,
|
|
4101
4105
|
emptyStateText: m = "No results found",
|
|
4102
|
-
pickerType:
|
|
4103
|
-
listClassName:
|
|
4106
|
+
pickerType: g = "single",
|
|
4107
|
+
listClassName: b,
|
|
4104
4108
|
virtuosoProps: E
|
|
4105
4109
|
}) => {
|
|
4106
|
-
const [f, v] = e.useState(0),
|
|
4107
|
-
(
|
|
4108
|
-
|
|
4110
|
+
const [f, v] = e.useState(0), y = o.length, $ = e.useCallback(
|
|
4111
|
+
(w) => {
|
|
4112
|
+
w !== f && (w < _ ? v(w + (y - 1) * Nn) : v(_));
|
|
4109
4113
|
},
|
|
4110
|
-
[
|
|
4114
|
+
[y]
|
|
4111
4115
|
);
|
|
4112
4116
|
if (wt(() => {
|
|
4113
4117
|
c.current = new Array(o.length);
|
|
4114
4118
|
}, [o.length]), o.length === 0) {
|
|
4115
|
-
const
|
|
4119
|
+
const w = u(Et[Ar], {
|
|
4116
4120
|
[Et[`${Ar}__no-results`]]: o.length === 0
|
|
4117
4121
|
});
|
|
4118
4122
|
return /* @__PURE__ */ e.createElement(qa, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
@@ -4123,33 +4127,33 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4123
4127
|
tabIndex: -1,
|
|
4124
4128
|
style: r
|
|
4125
4129
|
},
|
|
4126
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4130
|
+
/* @__PURE__ */ e.createElement("div", { className: w }, m)
|
|
4127
4131
|
));
|
|
4128
4132
|
}
|
|
4129
|
-
const N = (
|
|
4133
|
+
const N = (w) => l.includes(w) || w === Ct && l.length === Qa(o).length;
|
|
4130
4134
|
return /* @__PURE__ */ e.createElement(qa, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
4131
4135
|
"div",
|
|
4132
4136
|
{
|
|
4133
4137
|
"data-testid": "picker-list",
|
|
4134
4138
|
ref: a,
|
|
4135
4139
|
tabIndex: -1,
|
|
4136
|
-
className: u(Et.listbox,
|
|
4137
|
-
style: C(
|
|
4140
|
+
className: u(Et.listbox, b),
|
|
4141
|
+
style: C(k({}, r), {
|
|
4138
4142
|
maxHeight: _
|
|
4139
4143
|
})
|
|
4140
4144
|
},
|
|
4141
4145
|
/* @__PURE__ */ e.createElement(
|
|
4142
4146
|
"div",
|
|
4143
|
-
|
|
4147
|
+
k({
|
|
4144
4148
|
tabIndex: 0,
|
|
4145
|
-
"aria-multiselectable":
|
|
4149
|
+
"aria-multiselectable": g === "multi",
|
|
4146
4150
|
className: Et["listbox-wrapper"]
|
|
4147
4151
|
}, s({
|
|
4148
|
-
onKeyDown(
|
|
4149
|
-
d(!1),
|
|
4152
|
+
onKeyDown(w) {
|
|
4153
|
+
d(!1), w.key === "Enter" && n !== null && i(o[n].key), w.key === " " && w.preventDefault();
|
|
4150
4154
|
},
|
|
4151
|
-
onKeyUp(
|
|
4152
|
-
|
|
4155
|
+
onKeyUp(w) {
|
|
4156
|
+
w.key === " " && n !== null && i(o[n].key);
|
|
4153
4157
|
},
|
|
4154
4158
|
onPointerMove() {
|
|
4155
4159
|
d(!0);
|
|
@@ -4157,24 +4161,24 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4157
4161
|
})),
|
|
4158
4162
|
/* @__PURE__ */ e.createElement(
|
|
4159
4163
|
B_,
|
|
4160
|
-
C(
|
|
4161
|
-
totalListHeightChanged:
|
|
4164
|
+
C(k({
|
|
4165
|
+
totalListHeightChanged: $,
|
|
4162
4166
|
style: { height: `${f}px`, maxHeight: _ },
|
|
4163
4167
|
totalCount: o.length,
|
|
4164
4168
|
data: o,
|
|
4165
4169
|
increaseViewportBy: 200
|
|
4166
4170
|
}, E), {
|
|
4167
|
-
itemContent: (
|
|
4168
|
-
|
|
4171
|
+
itemContent: (w, h) => /* @__PURE__ */ e.createElement(
|
|
4172
|
+
Tn,
|
|
4169
4173
|
{
|
|
4170
|
-
index:
|
|
4174
|
+
index: w,
|
|
4171
4175
|
getItemProps: p,
|
|
4172
4176
|
listElementsRef: c,
|
|
4173
|
-
isActive: n ===
|
|
4174
|
-
isSelected: N(
|
|
4177
|
+
isActive: n === w,
|
|
4178
|
+
isSelected: N(h.key),
|
|
4175
4179
|
onSelect: i,
|
|
4176
|
-
item:
|
|
4177
|
-
numberOfItems:
|
|
4180
|
+
item: h,
|
|
4181
|
+
numberOfItems: y
|
|
4178
4182
|
}
|
|
4179
4183
|
)
|
|
4180
4184
|
})
|
|
@@ -4199,7 +4203,7 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4199
4203
|
"picker-trigger--disabled": "lc-PickerTrigger-module__picker-trigger--disabled___4MGb4",
|
|
4200
4204
|
"picker-trigger--focused": "lc-PickerTrigger-module__picker-trigger--focused___vBA4d",
|
|
4201
4205
|
"picker-trigger--error": "lc-PickerTrigger-module__picker-trigger--error___yu6Dt"
|
|
4202
|
-
}, ae = "picker-trigger",
|
|
4206
|
+
}, ae = "picker-trigger", An = ({
|
|
4203
4207
|
setReference: t,
|
|
4204
4208
|
getReferenceProps: a,
|
|
4205
4209
|
testId: r,
|
|
@@ -4213,9 +4217,9 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4213
4217
|
isError: s,
|
|
4214
4218
|
onClear: p,
|
|
4215
4219
|
children: m,
|
|
4216
|
-
setTriggerFocus:
|
|
4220
|
+
setTriggerFocus: g
|
|
4217
4221
|
}) => {
|
|
4218
|
-
const
|
|
4222
|
+
const b = u(
|
|
4219
4223
|
de[ae],
|
|
4220
4224
|
de[`${ae}--${_}`],
|
|
4221
4225
|
o && de[`${ae}--multi-select`],
|
|
@@ -4226,19 +4230,21 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4226
4230
|
), E = !l && n && !c && !d, f = (v) => {
|
|
4227
4231
|
v.stopPropagation(), p();
|
|
4228
4232
|
};
|
|
4229
|
-
return
|
|
4233
|
+
return e.useEffect(() => {
|
|
4234
|
+
i || g(!1);
|
|
4235
|
+
}, [i]), /* @__PURE__ */ e.createElement(
|
|
4230
4236
|
"button",
|
|
4231
|
-
C(
|
|
4237
|
+
C(k({
|
|
4232
4238
|
tabIndex: c ? -1 : 0,
|
|
4233
4239
|
"aria-disabled": c,
|
|
4234
4240
|
disabled: c,
|
|
4235
|
-
className:
|
|
4241
|
+
className: b,
|
|
4236
4242
|
"data-testid": r,
|
|
4237
4243
|
ref: t,
|
|
4238
4244
|
type: "button"
|
|
4239
4245
|
}, a()), {
|
|
4240
|
-
onFocus: () =>
|
|
4241
|
-
onBlur: () =>
|
|
4246
|
+
onFocus: () => g(!0),
|
|
4247
|
+
onBlur: () => g(!1)
|
|
4242
4248
|
}),
|
|
4243
4249
|
/* @__PURE__ */ e.createElement(
|
|
4244
4250
|
A,
|
|
@@ -4280,11 +4286,11 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4280
4286
|
)
|
|
4281
4287
|
)
|
|
4282
4288
|
);
|
|
4283
|
-
},
|
|
4284
|
-
tag:
|
|
4289
|
+
}, In = "lc-Tag-module__tag___1QRVY", Pn = "lc-Tag-module__tag__remove___UmtrW", Fn = "lc-Tag-module__tag__node___rZTzB", Mn = "lc-Tag-module__tag__content___q6vKK", fe = {
|
|
4290
|
+
tag: In,
|
|
4285
4291
|
"tag__content-wrapper": "lc-Tag-module__tag__content-wrapper___oyXA4",
|
|
4286
4292
|
"tag--success": "lc-Tag-module__tag--success___P2hXQ",
|
|
4287
|
-
tag__remove:
|
|
4293
|
+
tag__remove: Pn,
|
|
4288
4294
|
"tag--error": "lc-Tag-module__tag--error___1cjsm",
|
|
4289
4295
|
"tag--warning": "lc-Tag-module__tag--warning___PstMG",
|
|
4290
4296
|
"tag--info": "lc-Tag-module__tag--info___RTH0C",
|
|
@@ -4312,9 +4318,9 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4312
4318
|
"tag--text-black": "lc-Tag-module__tag--text-black___dUvmD",
|
|
4313
4319
|
"tag--dismissible-on-hover": "lc-Tag-module__tag--dismissible-on-hover___t68Az",
|
|
4314
4320
|
"tag__remove--hover": "lc-Tag-module__tag__remove--hover___2ROEU",
|
|
4315
|
-
tag__node:
|
|
4316
|
-
tag__content:
|
|
4317
|
-
}, ve = "tag",
|
|
4321
|
+
tag__node: Fn,
|
|
4322
|
+
tag__content: Mn
|
|
4323
|
+
}, ve = "tag", Rn = (t) => t ? _r(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", a_ = (E) => {
|
|
4318
4324
|
var f = E, {
|
|
4319
4325
|
className: t = "",
|
|
4320
4326
|
children: a,
|
|
@@ -4329,8 +4335,8 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4329
4335
|
rightNode: s,
|
|
4330
4336
|
customColor: p,
|
|
4331
4337
|
iconOnly: m = !1,
|
|
4332
|
-
value:
|
|
4333
|
-
} = f,
|
|
4338
|
+
value: g
|
|
4339
|
+
} = f, b = B(f, [
|
|
4334
4340
|
"className",
|
|
4335
4341
|
"children",
|
|
4336
4342
|
"dismissible",
|
|
@@ -4346,32 +4352,32 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4346
4352
|
"iconOnly",
|
|
4347
4353
|
"value"
|
|
4348
4354
|
]);
|
|
4349
|
-
const v = _ || c && m,
|
|
4355
|
+
const v = _ || c && m, y = u(
|
|
4350
4356
|
fe[ve],
|
|
4351
4357
|
t,
|
|
4352
4358
|
fe[`${ve}--${n}`],
|
|
4353
4359
|
fe[`${ve}--${l}`],
|
|
4354
4360
|
{
|
|
4355
4361
|
[fe[`${ve}--outline`]]: d,
|
|
4356
|
-
[fe[`${ve}--${
|
|
4362
|
+
[fe[`${ve}--${Rn(p)}`]]: !!p,
|
|
4357
4363
|
[fe[`${ve}--icon-only`]]: m,
|
|
4358
4364
|
[fe[`${ve}--dismissible-on-hover`]]: v
|
|
4359
4365
|
}
|
|
4360
|
-
),
|
|
4366
|
+
), $ = n === "small" ? "small" : "medium", N = n === "small" ? "sm" : "md", w = () => p ? d ? {
|
|
4361
4367
|
style: {
|
|
4362
4368
|
backgroundColor: "transparent",
|
|
4363
4369
|
color: p,
|
|
4364
4370
|
borderColor: p
|
|
4365
4371
|
}
|
|
4366
|
-
} : { style: { backgroundColor: p } } : {},
|
|
4372
|
+
} : { style: { backgroundColor: p } } : {}, h = () => {
|
|
4367
4373
|
if (p)
|
|
4368
4374
|
return d ? p : _r(p, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
4369
4375
|
};
|
|
4370
4376
|
return /* @__PURE__ */ e.createElement(
|
|
4371
4377
|
A,
|
|
4372
|
-
C(
|
|
4373
|
-
className:
|
|
4374
|
-
},
|
|
4378
|
+
C(k(k({
|
|
4379
|
+
className: y
|
|
4380
|
+
}, b), w()), {
|
|
4375
4381
|
as: "div",
|
|
4376
4382
|
size: N
|
|
4377
4383
|
}),
|
|
@@ -4380,15 +4386,15 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4380
4386
|
{
|
|
4381
4387
|
"data-testid": "lc-tag-left-node",
|
|
4382
4388
|
className: fe[`${ve}__node`],
|
|
4383
|
-
style: { color:
|
|
4389
|
+
style: { color: h() }
|
|
4384
4390
|
},
|
|
4385
4391
|
i
|
|
4386
|
-
), /* @__PURE__ */ e.createElement("div", { className: fe[`${ve}__content`] },
|
|
4392
|
+
), /* @__PURE__ */ e.createElement("div", { className: fe[`${ve}__content`] }, g || a), s && !m && /* @__PURE__ */ e.createElement(
|
|
4387
4393
|
"div",
|
|
4388
4394
|
{
|
|
4389
4395
|
"data-testid": "lc-tag-right-node",
|
|
4390
4396
|
className: fe[`${ve}__node`],
|
|
4391
|
-
style: { color:
|
|
4397
|
+
style: { color: h() }
|
|
4392
4398
|
},
|
|
4393
4399
|
s
|
|
4394
4400
|
)),
|
|
@@ -4409,8 +4415,8 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4409
4415
|
{
|
|
4410
4416
|
"data-dismiss-icon": !0,
|
|
4411
4417
|
source: Pe,
|
|
4412
|
-
size:
|
|
4413
|
-
customColor:
|
|
4418
|
+
size: $,
|
|
4419
|
+
customColor: h()
|
|
4414
4420
|
}
|
|
4415
4421
|
)
|
|
4416
4422
|
)
|
|
@@ -4433,7 +4439,7 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4433
4439
|
"picker-trigger-body__tag--compact": "lc-PickerTriggerBody-module__picker-trigger-body__tag--compact___vajtL",
|
|
4434
4440
|
"picker-trigger-body__tag--medium": "lc-PickerTriggerBody-module__picker-trigger-body__tag--medium___yhMyC",
|
|
4435
4441
|
"picker-trigger-body__tag--large": "lc-PickerTriggerBody-module__picker-trigger-body__tag--large___FbETT"
|
|
4436
|
-
}, me = "picker-trigger-body",
|
|
4442
|
+
}, me = "picker-trigger-body", Ln = ({
|
|
4437
4443
|
isOpen: t,
|
|
4438
4444
|
isSearchDisabled: a,
|
|
4439
4445
|
isDisabled: r,
|
|
@@ -4447,34 +4453,34 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4447
4453
|
onFilter: s,
|
|
4448
4454
|
onClear: p,
|
|
4449
4455
|
searchPhrase: m,
|
|
4450
|
-
virtualItemRef:
|
|
4451
|
-
isTriggerFocused:
|
|
4456
|
+
virtualItemRef: g,
|
|
4457
|
+
isTriggerFocused: b
|
|
4452
4458
|
}) => {
|
|
4453
4459
|
const E = t && !a, f = e.useRef(null);
|
|
4454
4460
|
e.useEffect(() => {
|
|
4455
4461
|
l && (s(""), f.current && (f.current.value = "", f.current.focus()));
|
|
4456
4462
|
}, [o, l]);
|
|
4457
|
-
const v = (
|
|
4458
|
-
|
|
4463
|
+
const v = (h) => {
|
|
4464
|
+
h.key === "Backspace" && o && o.length > 0 && (h.preventDefault(), n === "multi" ? d(o[o.length - 1].key) : p()), h.key === "Delete" && (h.preventDefault(), p());
|
|
4459
4465
|
};
|
|
4460
|
-
e.useEffect(() => (!t &&
|
|
4461
|
-
const
|
|
4466
|
+
e.useEffect(() => (!t && b ? document.addEventListener("keydown", v) : document.removeEventListener("keydown", v), () => document.removeEventListener("keydown", v)), [t, o, b]);
|
|
4467
|
+
const y = (h) => n === "single" && t && !a ? null : h != null && h.customElement ? /* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item`] }, h.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item`] }, h.icon && /* @__PURE__ */ e.createElement(
|
|
4462
4468
|
P,
|
|
4463
4469
|
{
|
|
4464
|
-
source:
|
|
4470
|
+
source: h.icon,
|
|
4465
4471
|
className: ue[`${me}__item__icon`]
|
|
4466
4472
|
}
|
|
4467
|
-
),
|
|
4473
|
+
), h.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
4468
4474
|
"img",
|
|
4469
4475
|
{
|
|
4470
|
-
src:
|
|
4476
|
+
src: h.avatarSrc,
|
|
4471
4477
|
alt: "",
|
|
4472
4478
|
className: ue[`${me}__item__avatar`]
|
|
4473
4479
|
}
|
|
4474
|
-
), /* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item__content`] },
|
|
4480
|
+
), /* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item__content`] }, h.name)), $ = (h) => s(h.target.value), N = (h) => {
|
|
4475
4481
|
var S, T;
|
|
4476
|
-
(S =
|
|
4477
|
-
},
|
|
4482
|
+
(S = g.current) != null && S.id && h.key === "Enter" && i((T = g.current) == null ? void 0 : T.id), n === "multi" && (h.key === "Backspace" || h.key === "Delete") && !m && o && (o == null ? void 0 : o.length) > 0 && d(o[o.length - 1].key);
|
|
4483
|
+
}, w = () => /* @__PURE__ */ e.createElement(
|
|
4478
4484
|
"input",
|
|
4479
4485
|
{
|
|
4480
4486
|
ref: f,
|
|
@@ -4483,13 +4489,13 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4483
4489
|
ue[`${me}__input--${c}`]
|
|
4484
4490
|
),
|
|
4485
4491
|
placeholder: _,
|
|
4486
|
-
onChange:
|
|
4492
|
+
onChange: $,
|
|
4487
4493
|
onKeyDown: N,
|
|
4488
4494
|
autoFocus: !0,
|
|
4489
4495
|
value: m
|
|
4490
4496
|
}
|
|
4491
4497
|
);
|
|
4492
|
-
return !o || o.length === 0 ? E ?
|
|
4498
|
+
return !o || o.length === 0 ? E ? w() : /* @__PURE__ */ e.createElement(
|
|
4493
4499
|
"div",
|
|
4494
4500
|
{
|
|
4495
4501
|
className: u({
|
|
@@ -4505,24 +4511,24 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4505
4511
|
[ue[`${me}--single`]]: n === "single"
|
|
4506
4512
|
})
|
|
4507
4513
|
},
|
|
4508
|
-
/* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item-container`] }, n === "single" ?
|
|
4514
|
+
/* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item-container`] }, n === "single" ? y(o[0]) : o.map((h) => /* @__PURE__ */ e.createElement(
|
|
4509
4515
|
a_,
|
|
4510
4516
|
{
|
|
4511
|
-
key:
|
|
4517
|
+
key: h.name,
|
|
4512
4518
|
className: u(
|
|
4513
4519
|
ue[`${me}__tag`],
|
|
4514
4520
|
ue[`${me}__tag--${c}`]
|
|
4515
4521
|
),
|
|
4516
4522
|
disabled: r,
|
|
4517
4523
|
onRemove: (S) => {
|
|
4518
|
-
S.stopPropagation(), d(
|
|
4524
|
+
S.stopPropagation(), d(h.key);
|
|
4519
4525
|
}
|
|
4520
4526
|
},
|
|
4521
|
-
|
|
4527
|
+
y(h)
|
|
4522
4528
|
))),
|
|
4523
|
-
E &&
|
|
4529
|
+
E && w()
|
|
4524
4530
|
);
|
|
4525
|
-
},
|
|
4531
|
+
}, On = 10, Hn = ({
|
|
4526
4532
|
disabled: t,
|
|
4527
4533
|
items: a,
|
|
4528
4534
|
placement: r,
|
|
@@ -4534,7 +4540,7 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4534
4540
|
isOpen: d,
|
|
4535
4541
|
onVisibilityChange: i
|
|
4536
4542
|
}) => {
|
|
4537
|
-
const s = ma(), [p, m] = e.useState(!1), [
|
|
4543
|
+
const s = ma(), [p, m] = e.useState(!1), [g, b] = e.useState(null), [E, f] = e.useState(o), v = e.useRef([]), y = e.useRef(null), { refs: $, floatingStyles: N, context: w, isPositioned: h } = pa({
|
|
4538
4544
|
nodeId: s,
|
|
4539
4545
|
open: d,
|
|
4540
4546
|
strategy: n,
|
|
@@ -4558,21 +4564,21 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4558
4564
|
width: `${he.reference.width}px`
|
|
4559
4565
|
});
|
|
4560
4566
|
},
|
|
4561
|
-
padding:
|
|
4567
|
+
padding: On
|
|
4562
4568
|
})
|
|
4563
4569
|
]
|
|
4564
|
-
}), S = va(
|
|
4570
|
+
}), S = va(w, k({
|
|
4565
4571
|
enabled: !t,
|
|
4566
4572
|
keyboardHandlers: !1,
|
|
4567
4573
|
toggle: !1
|
|
4568
|
-
}, c)), T = ka(
|
|
4574
|
+
}, c)), T = ka(w, { role: "listbox" }), L = ha(w, l), G = x_(w, {
|
|
4569
4575
|
enabled: a.length > 0 && !t,
|
|
4570
4576
|
listRef: v,
|
|
4571
|
-
activeIndex:
|
|
4572
|
-
onNavigate:
|
|
4577
|
+
activeIndex: g,
|
|
4578
|
+
onNavigate: b,
|
|
4573
4579
|
virtual: !0,
|
|
4574
|
-
virtualItemRef:
|
|
4575
|
-
disabledIndices:
|
|
4580
|
+
virtualItemRef: y,
|
|
4581
|
+
disabledIndices: xn(
|
|
4576
4582
|
a,
|
|
4577
4583
|
(q) => !!q.disabled || !!q.groupHeader
|
|
4578
4584
|
)
|
|
@@ -4583,20 +4589,20 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4583
4589
|
getReferenceProps: D,
|
|
4584
4590
|
getFloatingProps: R,
|
|
4585
4591
|
getItemProps: V,
|
|
4586
|
-
setReference:
|
|
4592
|
+
setReference: $.setReference,
|
|
4587
4593
|
floatingStyles: N,
|
|
4588
|
-
isPositioned:
|
|
4589
|
-
context:
|
|
4594
|
+
isPositioned: h,
|
|
4595
|
+
context: w,
|
|
4590
4596
|
nodeId: s,
|
|
4591
|
-
setFloating:
|
|
4592
|
-
activeIndex:
|
|
4597
|
+
setFloating: $.setFloating,
|
|
4598
|
+
activeIndex: g,
|
|
4593
4599
|
listElementsRef: v,
|
|
4594
|
-
virtualItemRef:
|
|
4600
|
+
virtualItemRef: y,
|
|
4595
4601
|
maxHeight: E,
|
|
4596
4602
|
pointer: p,
|
|
4597
4603
|
setPointer: m
|
|
4598
4604
|
};
|
|
4599
|
-
},
|
|
4605
|
+
}, Gn = ({
|
|
4600
4606
|
selected: t,
|
|
4601
4607
|
options: a,
|
|
4602
4608
|
type: r,
|
|
@@ -4608,59 +4614,59 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4608
4614
|
() => (t == null ? void 0 : t.map(Oa)) || []
|
|
4609
4615
|
), d = t !== void 0, i = d ? (t == null ? void 0 : t.map(Oa)) || [] : l, [s, p] = e.useState(""), m = e.useMemo(() => {
|
|
4610
4616
|
const v = r === "multi" && _;
|
|
4611
|
-
let
|
|
4612
|
-
return s && (
|
|
4617
|
+
let y = a;
|
|
4618
|
+
return s && (y = y.filter(($) => {
|
|
4613
4619
|
var S;
|
|
4614
|
-
if (
|
|
4620
|
+
if ($.groupHeader)
|
|
4615
4621
|
return !1;
|
|
4616
|
-
const N = s.toLowerCase(),
|
|
4617
|
-
return
|
|
4618
|
-
})), v &&
|
|
4622
|
+
const N = s.toLowerCase(), w = $.name.toLowerCase(), h = (S = $.secondaryText) == null ? void 0 : S.toLowerCase();
|
|
4623
|
+
return w.includes(N) || (h == null ? void 0 : h.includes(N));
|
|
4624
|
+
})), v && y.length > 1 && (y = [
|
|
4619
4625
|
{
|
|
4620
4626
|
key: Ct,
|
|
4621
4627
|
name: _
|
|
4622
4628
|
},
|
|
4623
|
-
...
|
|
4624
|
-
]),
|
|
4625
|
-
}, [s, a, r, _]),
|
|
4626
|
-
const
|
|
4627
|
-
if (!((!
|
|
4629
|
+
...y
|
|
4630
|
+
]), y;
|
|
4631
|
+
}, [s, a, r, _]), g = (v) => {
|
|
4632
|
+
const y = a.find(($) => $.key === v);
|
|
4633
|
+
if (!((!y || y.disabled) && v !== Ct))
|
|
4628
4634
|
if (r === "single")
|
|
4629
|
-
c(() => (
|
|
4635
|
+
c(() => (y && o([y]), [v])), n(!1);
|
|
4630
4636
|
else if (v === Ct)
|
|
4631
4637
|
i.length === Qa(a).length ? c(() => (o(null), [])) : c(() => {
|
|
4632
|
-
const
|
|
4633
|
-
return o(
|
|
4638
|
+
const $ = Qa(a);
|
|
4639
|
+
return o($), $.map(({ key: N }) => N);
|
|
4634
4640
|
});
|
|
4635
4641
|
else if (d) {
|
|
4636
|
-
const
|
|
4637
|
-
o(a.filter(({ key:
|
|
4642
|
+
const $ = (t == null ? void 0 : t.map(Oa)) || [], N = Br($, v);
|
|
4643
|
+
o(a.filter(({ key: w }) => N.includes(w)));
|
|
4638
4644
|
} else
|
|
4639
|
-
c((
|
|
4640
|
-
const N = Br(
|
|
4641
|
-
return o(a.filter(({ key:
|
|
4645
|
+
c(($) => {
|
|
4646
|
+
const N = Br($, v);
|
|
4647
|
+
return o(a.filter(({ key: w }) => N.includes(w))), N;
|
|
4642
4648
|
});
|
|
4643
4649
|
};
|
|
4644
4650
|
return {
|
|
4645
4651
|
selectedKeys: i,
|
|
4646
4652
|
items: m,
|
|
4647
4653
|
searchPhrase: s,
|
|
4648
|
-
handleSelect:
|
|
4654
|
+
handleSelect: g,
|
|
4649
4655
|
handleOnFilter: (v) => p(v),
|
|
4650
|
-
handleItemRemove: (v) =>
|
|
4656
|
+
handleItemRemove: (v) => g(v),
|
|
4651
4657
|
handleClear: () => {
|
|
4652
4658
|
!d && c([]), o(null), p(""), n(!1);
|
|
4653
4659
|
}
|
|
4654
4660
|
};
|
|
4655
|
-
},
|
|
4661
|
+
}, zn = {
|
|
4656
4662
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___2EDne"
|
|
4657
|
-
},
|
|
4663
|
+
}, Dc = (V) => {
|
|
4658
4664
|
var q = V, {
|
|
4659
4665
|
id: t,
|
|
4660
4666
|
className: a,
|
|
4661
4667
|
listClassName: r,
|
|
4662
|
-
minListHeight: _ =
|
|
4663
|
-
maxListHeight: o =
|
|
4668
|
+
minListHeight: _ = Sn,
|
|
4669
|
+
maxListHeight: o = Cn,
|
|
4664
4670
|
disabled: n,
|
|
4665
4671
|
error: l,
|
|
4666
4672
|
options: c,
|
|
@@ -4669,16 +4675,16 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4669
4675
|
placeholder: s = "Select option",
|
|
4670
4676
|
isRequired: p,
|
|
4671
4677
|
noSearchResultText: m = "No results found",
|
|
4672
|
-
selectAllOptionText:
|
|
4673
|
-
type:
|
|
4678
|
+
selectAllOptionText: g,
|
|
4679
|
+
type: b = "single",
|
|
4674
4680
|
searchDisabled: E = !1,
|
|
4675
4681
|
hideClearButton: f,
|
|
4676
4682
|
isVisible: v,
|
|
4677
|
-
onOpen:
|
|
4678
|
-
onClose:
|
|
4683
|
+
onOpen: y,
|
|
4684
|
+
onClose: $,
|
|
4679
4685
|
openedOnInit: N = !1,
|
|
4680
|
-
clearSearchAfterSelection:
|
|
4681
|
-
onSelect:
|
|
4686
|
+
clearSearchAfterSelection: w = !0,
|
|
4687
|
+
onSelect: h,
|
|
4682
4688
|
placement: S,
|
|
4683
4689
|
floatingStrategy: T,
|
|
4684
4690
|
useDismissHookProps: L,
|
|
@@ -4715,7 +4721,7 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4715
4721
|
"virtuosoProps"
|
|
4716
4722
|
]);
|
|
4717
4723
|
const [he, oe] = e.useState(N), [we, Ge] = e.useState(!1), $e = v !== void 0, Fe = $e ? v : he, ot = (Tt, le) => {
|
|
4718
|
-
Tt ? !Fe && (
|
|
4724
|
+
Tt ? !Fe && (y == null || y(le)) : Fe && ($ == null || $(le)), !$e && oe(Tt);
|
|
4719
4725
|
}, {
|
|
4720
4726
|
selectedKeys: ut,
|
|
4721
4727
|
items: mt,
|
|
@@ -4724,12 +4730,12 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4724
4730
|
handleOnFilter: gt,
|
|
4725
4731
|
handleItemRemove: xt,
|
|
4726
4732
|
handleClear: Me
|
|
4727
|
-
} =
|
|
4733
|
+
} = Gn({
|
|
4728
4734
|
selected: d,
|
|
4729
4735
|
options: c,
|
|
4730
|
-
type:
|
|
4731
|
-
selectAllOptionText:
|
|
4732
|
-
onSelect:
|
|
4736
|
+
type: b,
|
|
4737
|
+
selectAllOptionText: g,
|
|
4738
|
+
onSelect: h,
|
|
4733
4739
|
setOpen: ot
|
|
4734
4740
|
}), {
|
|
4735
4741
|
context: x,
|
|
@@ -4745,7 +4751,7 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4745
4751
|
activeIndex: Ta,
|
|
4746
4752
|
maxHeight: Da,
|
|
4747
4753
|
setPointer: Ba
|
|
4748
|
-
} =
|
|
4754
|
+
} = Hn({
|
|
4749
4755
|
openedOnInit: N,
|
|
4750
4756
|
disabled: n,
|
|
4751
4757
|
items: mt,
|
|
@@ -4758,8 +4764,8 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4758
4764
|
isOpen: Fe,
|
|
4759
4765
|
onVisibilityChange: ot
|
|
4760
4766
|
});
|
|
4761
|
-
return /* @__PURE__ */ e.createElement("div", { id: t, className: u(
|
|
4762
|
-
|
|
4767
|
+
return /* @__PURE__ */ e.createElement("div", { id: t, className: u(zn["picker-wrapper"], a) }, /* @__PURE__ */ e.createElement(
|
|
4768
|
+
An,
|
|
4763
4769
|
{
|
|
4764
4770
|
getReferenceProps: ne,
|
|
4765
4771
|
setReference: Ue,
|
|
@@ -4771,21 +4777,21 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4771
4777
|
isDisabled: n,
|
|
4772
4778
|
isError: l,
|
|
4773
4779
|
isRequired: p,
|
|
4774
|
-
isMultiSelect:
|
|
4780
|
+
isMultiSelect: b === "multi",
|
|
4775
4781
|
size: i,
|
|
4776
4782
|
setTriggerFocus: Ge
|
|
4777
4783
|
},
|
|
4778
4784
|
/* @__PURE__ */ e.createElement(
|
|
4779
|
-
|
|
4785
|
+
Ln,
|
|
4780
4786
|
{
|
|
4781
4787
|
isOpen: Fe,
|
|
4782
4788
|
isSearchDisabled: E,
|
|
4783
4789
|
isDisabled: n,
|
|
4784
4790
|
placeholder: s,
|
|
4785
4791
|
selectedItems: d,
|
|
4786
|
-
type:
|
|
4792
|
+
type: b,
|
|
4787
4793
|
size: i,
|
|
4788
|
-
clearSearchAfterSelection:
|
|
4794
|
+
clearSearchAfterSelection: w,
|
|
4789
4795
|
onItemRemove: xt,
|
|
4790
4796
|
onSelect: ze,
|
|
4791
4797
|
onFilter: gt,
|
|
@@ -4796,9 +4802,9 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4796
4802
|
}
|
|
4797
4803
|
)
|
|
4798
4804
|
), /* @__PURE__ */ e.createElement(Ea, { id: ee }, Fe && /* @__PURE__ */ e.createElement(zr, null, /* @__PURE__ */ e.createElement(
|
|
4799
|
-
|
|
4805
|
+
Bn,
|
|
4800
4806
|
{
|
|
4801
|
-
pickerType:
|
|
4807
|
+
pickerType: b,
|
|
4802
4808
|
options: mt,
|
|
4803
4809
|
listClassName: r,
|
|
4804
4810
|
context: x,
|
|
@@ -4816,9 +4822,9 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4816
4822
|
virtuosoProps: D
|
|
4817
4823
|
}
|
|
4818
4824
|
))));
|
|
4819
|
-
},
|
|
4820
|
-
popover:
|
|
4821
|
-
},
|
|
4825
|
+
}, Un = "lc-Popover-module__popover___8X1b2", Wn = {
|
|
4826
|
+
popover: Un
|
|
4827
|
+
}, Bc = ({
|
|
4822
4828
|
triggerRenderer: t,
|
|
4823
4829
|
onClose: a,
|
|
4824
4830
|
onOpen: r,
|
|
@@ -4832,47 +4838,47 @@ const Ct = "select-all", Cn = (t, a) => {
|
|
|
4832
4838
|
openedOnInit: s,
|
|
4833
4839
|
closeOnEsc: p = !0,
|
|
4834
4840
|
useDismissHookProps: m,
|
|
4835
|
-
useClickHookProps:
|
|
4836
|
-
floatingStrategy:
|
|
4841
|
+
useClickHookProps: g,
|
|
4842
|
+
floatingStrategy: b
|
|
4837
4843
|
}) => {
|
|
4838
|
-
const [E, f] = e.useState(s), v = tr(),
|
|
4839
|
-
Ge ? r == null || r($e) : a == null || a($e),
|
|
4844
|
+
const [E, f] = e.useState(s), v = tr(), y = ma(), $ = i !== void 0, N = $ ? i : E, w = typeof _ == "string", h = typeof t == "function", S = (Ge, $e) => {
|
|
4845
|
+
Ge ? r == null || r($e) : a == null || a($e), !$ && f(Ge);
|
|
4840
4846
|
}, { refs: T, context: L, floatingStyles: G } = pa({
|
|
4841
|
-
nodeId:
|
|
4847
|
+
nodeId: y,
|
|
4842
4848
|
open: N,
|
|
4843
4849
|
onOpenChange: S,
|
|
4844
4850
|
middleware: [ga(d), ba(c), rr()],
|
|
4845
4851
|
placement: l,
|
|
4846
|
-
strategy:
|
|
4852
|
+
strategy: b,
|
|
4847
4853
|
whileElementsMounted: fa
|
|
4848
|
-
}), D = va(L,
|
|
4854
|
+
}), D = va(L, g), R = ha(L, k({
|
|
4849
4855
|
escapeKey: p
|
|
4850
4856
|
}, m)), V = ka(L), { getReferenceProps: q, getFloatingProps: he } = ya([
|
|
4851
4857
|
D,
|
|
4852
4858
|
R,
|
|
4853
4859
|
V
|
|
4854
|
-
]), oe = u(
|
|
4860
|
+
]), oe = u(Wn.popover, o), we = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
4855
4861
|
"div",
|
|
4856
|
-
C(
|
|
4862
|
+
C(k({
|
|
4857
4863
|
"data-testid": "popover-trigger-button",
|
|
4858
4864
|
ref: T.setReference
|
|
4859
4865
|
}, q()), {
|
|
4860
4866
|
className: n
|
|
4861
4867
|
}),
|
|
4862
|
-
|
|
4863
|
-
), /* @__PURE__ */ e.createElement(Ea, { id:
|
|
4868
|
+
h ? t() : t
|
|
4869
|
+
), /* @__PURE__ */ e.createElement(Ea, { id: y }, N && /* @__PURE__ */ e.createElement(qa, { context: L, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
4864
4870
|
"div",
|
|
4865
|
-
|
|
4871
|
+
k({
|
|
4866
4872
|
className: oe,
|
|
4867
4873
|
ref: T.setFloating,
|
|
4868
4874
|
style: G
|
|
4869
4875
|
}, he()),
|
|
4870
|
-
|
|
4876
|
+
w ? /* @__PURE__ */ e.createElement(A, { as: "div" }, _) : _
|
|
4871
4877
|
))));
|
|
4872
4878
|
return v === null ? /* @__PURE__ */ e.createElement(ar, null, we) : we;
|
|
4873
|
-
},
|
|
4879
|
+
}, Vn = (t) => Math.min(Math.max(t, 0), 100);
|
|
4874
4880
|
function r_(t, a = 0) {
|
|
4875
|
-
return t === "error" ? 0 :
|
|
4881
|
+
return t === "error" ? 0 : Vn(parseInt(a.toString(), 10));
|
|
4876
4882
|
}
|
|
4877
4883
|
const Ht = {
|
|
4878
4884
|
"progress-circle": "lc-ProgressCircle-module__progress-circle___NRHCi",
|
|
@@ -4885,15 +4891,15 @@ const Ht = {
|
|
|
4885
4891
|
"progress-circle__indicator--normal": "lc-ProgressCircle-module__progress-circle__indicator--normal___0SdkX",
|
|
4886
4892
|
"progress-circle__indicator--success": "lc-ProgressCircle-module__progress-circle__indicator--success___fLwRR",
|
|
4887
4893
|
"progress-circle__indicator--error": "lc-ProgressCircle-module__progress-circle__indicator--error___nwJS9"
|
|
4888
|
-
},
|
|
4894
|
+
}, qn = {
|
|
4889
4895
|
small: 2,
|
|
4890
4896
|
medium: 3,
|
|
4891
4897
|
large: 4
|
|
4892
|
-
},
|
|
4898
|
+
}, Kn = {
|
|
4893
4899
|
small: 15,
|
|
4894
4900
|
medium: 36,
|
|
4895
4901
|
large: 56
|
|
4896
|
-
}, Gt = "progress-circle",
|
|
4902
|
+
}, Gt = "progress-circle", Yn = e.forwardRef(
|
|
4897
4903
|
(l, n) => {
|
|
4898
4904
|
var c = l, {
|
|
4899
4905
|
status: t = "normal",
|
|
@@ -4906,25 +4912,25 @@ const Ht = {
|
|
|
4906
4912
|
"className",
|
|
4907
4913
|
"size"
|
|
4908
4914
|
]);
|
|
4909
|
-
const d = r_(t, a), i =
|
|
4915
|
+
const d = r_(t, a), i = qn[_], s = Kn[_], p = u(
|
|
4910
4916
|
Ht[Gt],
|
|
4911
4917
|
{
|
|
4912
4918
|
[Ht[`${Gt}--${_}`]]: _,
|
|
4913
4919
|
[Ht[`${Gt}--${t}`]]: t
|
|
4914
4920
|
},
|
|
4915
4921
|
r
|
|
4916
|
-
), m = 2 * Math.PI * ((s - i) / 2),
|
|
4922
|
+
), m = 2 * Math.PI * ((s - i) / 2), g = {
|
|
4917
4923
|
strokeDasharray: m.toFixed(3),
|
|
4918
4924
|
strokeDashoffset: `${((100 - d) / 100 * m).toFixed(3)}px`
|
|
4919
|
-
},
|
|
4925
|
+
}, b = `${s / 2} ${s / 2} ${s} ${s}`;
|
|
4920
4926
|
return /* @__PURE__ */ e.createElement(
|
|
4921
4927
|
"div",
|
|
4922
|
-
|
|
4928
|
+
k({
|
|
4923
4929
|
className: p,
|
|
4924
4930
|
ref: n,
|
|
4925
4931
|
role: "progressbar"
|
|
4926
4932
|
}, o),
|
|
4927
|
-
/* @__PURE__ */ e.createElement("svg", { viewBox:
|
|
4933
|
+
/* @__PURE__ */ e.createElement("svg", { viewBox: b }, /* @__PURE__ */ e.createElement(
|
|
4928
4934
|
"circle",
|
|
4929
4935
|
{
|
|
4930
4936
|
className: Ht[`${Gt}__bg-line--${t}`],
|
|
@@ -4938,7 +4944,7 @@ const Ht = {
|
|
|
4938
4944
|
"circle",
|
|
4939
4945
|
{
|
|
4940
4946
|
className: Ht[`${Gt}__indicator--${t}`],
|
|
4941
|
-
style:
|
|
4947
|
+
style: g,
|
|
4942
4948
|
cx: s,
|
|
4943
4949
|
cy: s,
|
|
4944
4950
|
r: (s - i) / 2,
|
|
@@ -4958,7 +4964,7 @@ const Ht = {
|
|
|
4958
4964
|
"progress-bar--normal": "lc-ProgressBar-module__progress-bar--normal___ZwCb-",
|
|
4959
4965
|
"progress-bar__indicator--success": "lc-ProgressBar-module__progress-bar__indicator--success___wRjR3",
|
|
4960
4966
|
"progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___0Uhle"
|
|
4961
|
-
}, oa = "progress-bar",
|
|
4967
|
+
}, oa = "progress-bar", Xn = e.forwardRef(
|
|
4962
4968
|
(l, n) => {
|
|
4963
4969
|
var c = l, {
|
|
4964
4970
|
status: t = "normal",
|
|
@@ -4981,7 +4987,7 @@ const Ht = {
|
|
|
4981
4987
|
);
|
|
4982
4988
|
return /* @__PURE__ */ e.createElement(
|
|
4983
4989
|
"div",
|
|
4984
|
-
C(
|
|
4990
|
+
C(k({}, o), {
|
|
4985
4991
|
className: i,
|
|
4986
4992
|
ref: n,
|
|
4987
4993
|
role: "progressbar"
|
|
@@ -5008,7 +5014,7 @@ const Ht = {
|
|
|
5008
5014
|
"promo-banner--small": "lc-PromoBanner-module__promo-banner--small___7sWLV",
|
|
5009
5015
|
"promo-banner--large": "lc-PromoBanner-module__promo-banner--large___pMiCU",
|
|
5010
5016
|
"promo-banner__close-icon": "lc-PromoBanner-module__promo-banner__close-icon___GowBL"
|
|
5011
|
-
},
|
|
5017
|
+
}, Jn = 400, Qn = 800, jn = 500, Te = "promo-banner", Ac = ({
|
|
5012
5018
|
className: t,
|
|
5013
5019
|
buttonText: a,
|
|
5014
5020
|
children: r,
|
|
@@ -5020,7 +5026,7 @@ const Ht = {
|
|
|
5020
5026
|
onClose: d,
|
|
5021
5027
|
onLinkClick: i
|
|
5022
5028
|
}) => {
|
|
5023
|
-
const s = e.useRef(null), [p, m] = e.useState("medium"),
|
|
5029
|
+
const s = e.useRef(null), [p, m] = e.useState("medium"), g = u(
|
|
5024
5030
|
xe[Te],
|
|
5025
5031
|
{
|
|
5026
5032
|
[xe[`${Te}--light`]]: n,
|
|
@@ -5030,15 +5036,15 @@ const Ht = {
|
|
|
5030
5036
|
t
|
|
5031
5037
|
);
|
|
5032
5038
|
e.useEffect(() => {
|
|
5033
|
-
const E = () => s.current && s.current.offsetWidth <=
|
|
5039
|
+
const E = () => s.current && s.current.offsetWidth <= Jn ? m("small") : s.current && s.current.offsetWidth >= Qn ? m("large") : m("medium"), f = Wr(
|
|
5034
5040
|
E,
|
|
5035
|
-
|
|
5041
|
+
jn
|
|
5036
5042
|
);
|
|
5037
5043
|
return window.addEventListener("resize", f), E(), () => {
|
|
5038
5044
|
f.cancel(), window.removeEventListener("resize", f);
|
|
5039
5045
|
};
|
|
5040
5046
|
}, []);
|
|
5041
|
-
const
|
|
5047
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: xe[`${Te}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
5042
5048
|
W,
|
|
5043
5049
|
{
|
|
5044
5050
|
kind: "primary",
|
|
@@ -5048,7 +5054,7 @@ const Ht = {
|
|
|
5048
5054
|
},
|
|
5049
5055
|
a
|
|
5050
5056
|
), l && /* @__PURE__ */ e.createElement(W, { size: "compact", kind: "text", onClick: i }, l));
|
|
5051
|
-
return /* @__PURE__ */ e.createElement("div", { ref: s, className:
|
|
5057
|
+
return /* @__PURE__ */ e.createElement("div", { ref: s, className: g }, /* @__PURE__ */ e.createElement("div", { className: xe[`${Te}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: xe[`${Te}__img`] }), /* @__PURE__ */ e.createElement("div", { className: xe[`${Te}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: xe[`${Te}__header`] }, _), /* @__PURE__ */ e.createElement(A, { as: "div" }, r), p !== "large" && b), p === "large" && b), d && /* @__PURE__ */ e.createElement(
|
|
5052
5058
|
"button",
|
|
5053
5059
|
{
|
|
5054
5060
|
type: "button",
|
|
@@ -5067,7 +5073,7 @@ const Ht = {
|
|
|
5067
5073
|
"promo-banner-v2__close": "lc-PromoBannerV2-module__promo-banner-v2__close___rOh-U",
|
|
5068
5074
|
"promo-banner-v2__close__btn": "lc-PromoBannerV2-module__promo-banner-v2__close__btn___5AZQC",
|
|
5069
5075
|
"promo-banner-v2--vertical": "lc-PromoBannerV2-module__promo-banner-v2--vertical___p0mSU"
|
|
5070
|
-
}, rt = "promo-banner-v2",
|
|
5076
|
+
}, rt = "promo-banner-v2", Ic = ({
|
|
5071
5077
|
children: t,
|
|
5072
5078
|
className: a,
|
|
5073
5079
|
additionalContent: r,
|
|
@@ -5143,7 +5149,7 @@ const Ht = {
|
|
|
5143
5149
|
"radio-button__helper": "lc-RadioButton-module__radio-button__helper___r8gJJ",
|
|
5144
5150
|
"radio-button--selected": "lc-RadioButton-module__radio-button--selected___s9lqj",
|
|
5145
5151
|
"radio-button--disabled": "lc-RadioButton-module__radio-button--disabled___wHSA7"
|
|
5146
|
-
}, Je = "radio-button",
|
|
5152
|
+
}, Je = "radio-button", Pc = e.forwardRef(
|
|
5147
5153
|
(c, l) => {
|
|
5148
5154
|
var d = c, { children: t, className: a = "", description: r, checked: _, disabled: o } = d, n = B(d, ["children", "className", "description", "checked", "disabled"]);
|
|
5149
5155
|
const i = u(Xe[Je], a, {
|
|
@@ -5152,7 +5158,7 @@ const Ht = {
|
|
|
5152
5158
|
});
|
|
5153
5159
|
return /* @__PURE__ */ e.createElement("div", { className: i }, /* @__PURE__ */ e.createElement("label", { className: Xe[`${Je}__label`] }, /* @__PURE__ */ e.createElement("div", { className: Xe[`${Je}__circle`] }, /* @__PURE__ */ e.createElement("span", { className: Xe[`${Je}__inner-circle`] }), /* @__PURE__ */ e.createElement(
|
|
5154
5160
|
"input",
|
|
5155
|
-
C(
|
|
5161
|
+
C(k({}, n), {
|
|
5156
5162
|
className: Xe[`${Je}__input`],
|
|
5157
5163
|
ref: l,
|
|
5158
5164
|
type: "radio",
|
|
@@ -5175,7 +5181,7 @@ const Ht = {
|
|
|
5175
5181
|
"search-input__loader": "lc-Search-module__search-input__loader___pkpIG",
|
|
5176
5182
|
"search-input__input-wrapper": "lc-Search-module__search-input__input-wrapper___k8bvn",
|
|
5177
5183
|
"search-input__input-wrapper--crop": "lc-Search-module__search-input__input-wrapper--crop___nBPKY"
|
|
5178
|
-
}, Oe = "search-input", Ir = `${Oe}__input-wrapper`,
|
|
5184
|
+
}, Oe = "search-input", Ir = `${Oe}__input-wrapper`, Fc = ({
|
|
5179
5185
|
isCollapsable: t,
|
|
5180
5186
|
isDisabled: a,
|
|
5181
5187
|
isLoading: r,
|
|
@@ -5186,7 +5192,7 @@ const Ht = {
|
|
|
5186
5192
|
cropOnBlur: c = !0,
|
|
5187
5193
|
onChange: d
|
|
5188
5194
|
}) => {
|
|
5189
|
-
const [i, s] = e.useState(!0), [p, m] = e.useState(!1),
|
|
5195
|
+
const [i, s] = e.useState(!0), [p, m] = e.useState(!1), g = e.useRef(null), b = !!n && !a && !r, E = t && !i && "true", f = u(
|
|
5190
5196
|
l,
|
|
5191
5197
|
De[Oe],
|
|
5192
5198
|
De[`${Oe}--${o}`],
|
|
@@ -5201,16 +5207,16 @@ const Ht = {
|
|
|
5201
5207
|
const v = (S) => {
|
|
5202
5208
|
const T = S.currentTarget.value;
|
|
5203
5209
|
d(T);
|
|
5204
|
-
},
|
|
5210
|
+
}, y = () => {
|
|
5205
5211
|
d("");
|
|
5206
|
-
},
|
|
5212
|
+
}, $ = () => {
|
|
5207
5213
|
var S;
|
|
5208
|
-
(S =
|
|
5214
|
+
(S = g.current) == null || S.focus();
|
|
5209
5215
|
}, N = () => {
|
|
5210
5216
|
t && s(!1), m(!0);
|
|
5211
|
-
},
|
|
5217
|
+
}, w = () => {
|
|
5212
5218
|
t && !n && s(!0), m(!1);
|
|
5213
|
-
},
|
|
5219
|
+
}, h = (S) => {
|
|
5214
5220
|
S.key === _e.enter && (S.preventDefault(), d(n));
|
|
5215
5221
|
};
|
|
5216
5222
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -5219,7 +5225,7 @@ const Ht = {
|
|
|
5219
5225
|
"aria-expanded": E,
|
|
5220
5226
|
role: "search",
|
|
5221
5227
|
className: f,
|
|
5222
|
-
onClick:
|
|
5228
|
+
onClick: $
|
|
5223
5229
|
},
|
|
5224
5230
|
/* @__PURE__ */ e.createElement(
|
|
5225
5231
|
P,
|
|
@@ -5243,25 +5249,25 @@ const Ht = {
|
|
|
5243
5249
|
"input",
|
|
5244
5250
|
{
|
|
5245
5251
|
role: "searchbox",
|
|
5246
|
-
ref:
|
|
5252
|
+
ref: g,
|
|
5247
5253
|
type: "text",
|
|
5248
5254
|
value: n,
|
|
5249
5255
|
placeholder: _,
|
|
5250
5256
|
onChange: v,
|
|
5251
|
-
onBlur:
|
|
5257
|
+
onBlur: w,
|
|
5252
5258
|
onFocus: N,
|
|
5253
|
-
onKeyDown:
|
|
5259
|
+
onKeyDown: h,
|
|
5254
5260
|
disabled: a
|
|
5255
5261
|
}
|
|
5256
5262
|
)
|
|
5257
5263
|
),
|
|
5258
|
-
|
|
5264
|
+
b && /* @__PURE__ */ e.createElement(
|
|
5259
5265
|
W,
|
|
5260
5266
|
{
|
|
5261
5267
|
"aria-label": "Clear search",
|
|
5262
5268
|
title: "Clear search",
|
|
5263
5269
|
className: De[`${Oe}__clear-icon`],
|
|
5264
|
-
onClick:
|
|
5270
|
+
onClick: y,
|
|
5265
5271
|
icon: /* @__PURE__ */ e.createElement(P, { source: Pe, kind: "primary" }),
|
|
5266
5272
|
kind: "text",
|
|
5267
5273
|
size: "compact"
|
|
@@ -5269,16 +5275,16 @@ const Ht = {
|
|
|
5269
5275
|
),
|
|
5270
5276
|
r && /* @__PURE__ */ e.createElement("div", { className: De[`${Oe}__loader`] }, /* @__PURE__ */ e.createElement(or, { size: "small" }))
|
|
5271
5277
|
);
|
|
5272
|
-
},
|
|
5278
|
+
}, Zn = "lc-Skeleton-module__loading___MHvGo", dt = {
|
|
5273
5279
|
"skeleton-wrapper": "lc-Skeleton-module__skeleton-wrapper___MXuR8",
|
|
5274
5280
|
"skeleton-wrapper--vertical": "lc-Skeleton-module__skeleton-wrapper--vertical___H3weP",
|
|
5275
5281
|
"skeleton-avatar": "lc-Skeleton-module__skeleton-avatar___qWzIc",
|
|
5276
5282
|
"skeleton-avatar--square": "lc-Skeleton-module__skeleton-avatar--square___GNIE4",
|
|
5277
5283
|
"skeleton-avatar--animated": "lc-Skeleton-module__skeleton-avatar--animated___rqj9A",
|
|
5278
|
-
loading:
|
|
5284
|
+
loading: Zn,
|
|
5279
5285
|
"skeleton-text": "lc-Skeleton-module__skeleton-text___rgElk",
|
|
5280
5286
|
"skeleton-text--animated": "lc-Skeleton-module__skeleton-text--animated___xOUsy"
|
|
5281
|
-
}, Pr = "skeleton-wrapper",
|
|
5287
|
+
}, Pr = "skeleton-wrapper", Mc = (o) => {
|
|
5282
5288
|
var n = o, {
|
|
5283
5289
|
children: t,
|
|
5284
5290
|
vertical: a,
|
|
@@ -5293,14 +5299,14 @@ const Ht = {
|
|
|
5293
5299
|
}) : c);
|
|
5294
5300
|
return /* @__PURE__ */ e.createElement(
|
|
5295
5301
|
"div",
|
|
5296
|
-
|
|
5302
|
+
k({
|
|
5297
5303
|
className: u(dt[`${Pr}`], {
|
|
5298
5304
|
[dt[`${Pr}--vertical`]]: a
|
|
5299
5305
|
})
|
|
5300
5306
|
}, _),
|
|
5301
5307
|
l
|
|
5302
5308
|
);
|
|
5303
|
-
}, Ha = "skeleton-avatar",
|
|
5309
|
+
}, Ha = "skeleton-avatar", Rc = ({
|
|
5304
5310
|
square: t = !1,
|
|
5305
5311
|
size: a = 16,
|
|
5306
5312
|
animated: r
|
|
@@ -5316,7 +5322,7 @@ const Ht = {
|
|
|
5316
5322
|
height: a
|
|
5317
5323
|
}
|
|
5318
5324
|
}
|
|
5319
|
-
), Fr = "skeleton-text",
|
|
5325
|
+
), Fr = "skeleton-text", Lc = ({
|
|
5320
5326
|
height: t = 13,
|
|
5321
5327
|
width: a,
|
|
5322
5328
|
animated: r
|
|
@@ -5345,7 +5351,7 @@ const Ht = {
|
|
|
5345
5351
|
"status-badge--offline": "lc-StatusBadge-module__status-badge--offline___0BHxn",
|
|
5346
5352
|
"status-badge--accept": "lc-StatusBadge-module__status-badge--accept___6g3cx",
|
|
5347
5353
|
"status-badge--not-accept": "lc-StatusBadge-module__status-badge--not-accept___tUgKD"
|
|
5348
|
-
}, za = "status-badge",
|
|
5354
|
+
}, za = "status-badge", Oc = (o) => {
|
|
5349
5355
|
var n = o, {
|
|
5350
5356
|
className: t,
|
|
5351
5357
|
kind: a = "offline",
|
|
@@ -5361,8 +5367,8 @@ const Ht = {
|
|
|
5361
5367
|
Ga[`${za}--${r}`],
|
|
5362
5368
|
t
|
|
5363
5369
|
);
|
|
5364
|
-
return /* @__PURE__ */ e.createElement("span",
|
|
5365
|
-
},
|
|
5370
|
+
return /* @__PURE__ */ e.createElement("span", k({ className: l }, _));
|
|
5371
|
+
}, el = "lc-Switch-module__switch__input___NiiOR", tl = "lc-Switch-module__switch__container___79F7W", al = "lc-Switch-module__switch__track___2wr2M", rl = "lc-Switch-module__switch__slider___WHd--", _l = "lc-Switch-module__switch__loader___FE-fA", ol = "lc-Switch-module__switch__icon___-O1qY", Q = {
|
|
5366
5372
|
switch: "lc-Switch-module__switch___AaA2k",
|
|
5367
5373
|
"switch__track--enabled": "lc-Switch-module__switch__track--enabled___sy4Xl",
|
|
5368
5374
|
"switch__track--on": "lc-Switch-module__switch__track--on___aOMWe",
|
|
@@ -5371,13 +5377,13 @@ const Ht = {
|
|
|
5371
5377
|
"switch--compact": "lc-Switch-module__switch--compact___OGFIX",
|
|
5372
5378
|
"switch--medium": "lc-Switch-module__switch--medium___EcZwT",
|
|
5373
5379
|
"switch--focused": "lc-Switch-module__switch--focused___P9d9S",
|
|
5374
|
-
switch__input:
|
|
5380
|
+
switch__input: el,
|
|
5375
5381
|
"switch__input--disabled": "lc-Switch-module__switch__input--disabled___Po8gh",
|
|
5376
|
-
switch__container:
|
|
5377
|
-
switch__track:
|
|
5382
|
+
switch__container: tl,
|
|
5383
|
+
switch__track: al,
|
|
5378
5384
|
"switch__container--focused": "lc-Switch-module__switch__container--focused___bKy79",
|
|
5379
5385
|
"switch__track--disabled": "lc-Switch-module__switch__track--disabled___HkDhl",
|
|
5380
|
-
switch__slider:
|
|
5386
|
+
switch__slider: rl,
|
|
5381
5387
|
"switch__slider--large": "lc-Switch-module__switch__slider--large___WoEgi",
|
|
5382
5388
|
"switch__slider--large--on": "lc-Switch-module__switch__slider--large--on___7Qp3G",
|
|
5383
5389
|
"switch__slider--large--off": "lc-Switch-module__switch__slider--large--off___iRMmD",
|
|
@@ -5388,12 +5394,12 @@ const Ht = {
|
|
|
5388
5394
|
"switch__slider--medium--on": "lc-Switch-module__switch__slider--medium--on___SfeAV",
|
|
5389
5395
|
"switch__slider--medium--off": "lc-Switch-module__switch__slider--medium--off___eXJJz",
|
|
5390
5396
|
"switch__slider--disabled": "lc-Switch-module__switch__slider--disabled___A6hPg",
|
|
5391
|
-
switch__loader:
|
|
5397
|
+
switch__loader: _l,
|
|
5392
5398
|
"switch__loader--compact": "lc-Switch-module__switch__loader--compact___3imUh",
|
|
5393
5399
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___2zi05",
|
|
5394
5400
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
|
|
5395
|
-
switch__icon:
|
|
5396
|
-
}, J = "switch",
|
|
5401
|
+
switch__icon: ol
|
|
5402
|
+
}, J = "switch", Hc = (p) => {
|
|
5397
5403
|
var m = p, {
|
|
5398
5404
|
className: t = "",
|
|
5399
5405
|
defaultOn: a = !1,
|
|
@@ -5417,9 +5423,9 @@ const Ht = {
|
|
|
5417
5423
|
"innerRef",
|
|
5418
5424
|
"ariaLabel"
|
|
5419
5425
|
]);
|
|
5420
|
-
const
|
|
5421
|
-
() =>
|
|
5422
|
-
), [f, v] = e.useState(!1),
|
|
5426
|
+
const g = o !== void 0, [b, E] = e.useState(
|
|
5427
|
+
() => g ? o : a
|
|
5428
|
+
), [f, v] = e.useState(!1), y = g ? o : b, $ = c === "loading", N = c === "locked", w = l === "large" ? "small" : "xsmall", h = y ? "on" : "off", S = r || $ || N, T = S ? "disabled" : "enabled", L = u(
|
|
5423
5429
|
Q[J],
|
|
5424
5430
|
Q[`${J}--${l}`],
|
|
5425
5431
|
{
|
|
@@ -5427,18 +5433,18 @@ const Ht = {
|
|
|
5427
5433
|
},
|
|
5428
5434
|
t
|
|
5429
5435
|
), G = (D) => {
|
|
5430
|
-
n == null || n(D, !
|
|
5436
|
+
n == null || n(D, !y), g || (D.stopPropagation(), E((R) => !R));
|
|
5431
5437
|
};
|
|
5432
5438
|
return /* @__PURE__ */ e.createElement("span", { className: L }, /* @__PURE__ */ e.createElement(
|
|
5433
5439
|
"input",
|
|
5434
|
-
C(
|
|
5440
|
+
C(k({
|
|
5435
5441
|
type: "checkbox",
|
|
5436
5442
|
className: u(
|
|
5437
5443
|
Q[`${J}__input`],
|
|
5438
5444
|
Q[`${J}__input--${T}`]
|
|
5439
5445
|
),
|
|
5440
5446
|
onChange: G,
|
|
5441
|
-
checked:
|
|
5447
|
+
checked: y,
|
|
5442
5448
|
name: _,
|
|
5443
5449
|
ref: d,
|
|
5444
5450
|
disabled: S,
|
|
@@ -5459,7 +5465,7 @@ const Ht = {
|
|
|
5459
5465
|
{
|
|
5460
5466
|
className: u(
|
|
5461
5467
|
Q[`${J}__track`],
|
|
5462
|
-
Q[`${J}__track--${
|
|
5468
|
+
Q[`${J}__track--${h}`],
|
|
5463
5469
|
Q[`${J}__track--${T}`]
|
|
5464
5470
|
)
|
|
5465
5471
|
}
|
|
@@ -5471,10 +5477,10 @@ const Ht = {
|
|
|
5471
5477
|
Q[`${J}__slider`],
|
|
5472
5478
|
Q[`${J}__slider--${T}`],
|
|
5473
5479
|
Q[`${J}__slider--${l}`],
|
|
5474
|
-
Q[`${J}__slider--${l}--${
|
|
5480
|
+
Q[`${J}__slider--${l}--${h}`]
|
|
5475
5481
|
)
|
|
5476
5482
|
},
|
|
5477
|
-
|
|
5483
|
+
$ && /* @__PURE__ */ e.createElement(
|
|
5478
5484
|
or,
|
|
5479
5485
|
{
|
|
5480
5486
|
"data-testid": "switch-loader",
|
|
@@ -5489,24 +5495,24 @@ const Ht = {
|
|
|
5489
5495
|
{
|
|
5490
5496
|
className: Q[`${J}__icon`],
|
|
5491
5497
|
"data-testid": "lock-icon",
|
|
5492
|
-
size:
|
|
5498
|
+
size: w,
|
|
5493
5499
|
source: v_,
|
|
5494
5500
|
kind: "primary"
|
|
5495
5501
|
}
|
|
5496
5502
|
)
|
|
5497
5503
|
)
|
|
5498
5504
|
));
|
|
5499
|
-
},
|
|
5500
|
-
tab:
|
|
5501
|
-
tab__count:
|
|
5505
|
+
}, nl = "lc-Tab-module__tab___fME7u", ll = "lc-Tab-module__tab__count___gc8tA", cl = "lc-Tab-module__tab__icon___wvUqO", il = "lc-Tab-module__tab__badge___W9c-T", it = {
|
|
5506
|
+
tab: nl,
|
|
5507
|
+
tab__count: ll,
|
|
5502
5508
|
"tab--compact": "lc-Tab-module__tab--compact___4qead",
|
|
5503
5509
|
"tab--medium": "lc-Tab-module__tab--medium___bHnGV",
|
|
5504
5510
|
"tab--large": "lc-Tab-module__tab--large___JL30g",
|
|
5505
|
-
tab__icon:
|
|
5506
|
-
tab__badge:
|
|
5511
|
+
tab__icon: cl,
|
|
5512
|
+
tab__badge: il,
|
|
5507
5513
|
"tab--selected": "lc-Tab-module__tab--selected___c0EkL",
|
|
5508
5514
|
"tab--disabled": "lc-Tab-module__tab--disabled___URdTh"
|
|
5509
|
-
}, st = "tab",
|
|
5515
|
+
}, st = "tab", Gc = (d) => {
|
|
5510
5516
|
var i = d, {
|
|
5511
5517
|
children: t,
|
|
5512
5518
|
className: a,
|
|
@@ -5527,7 +5533,7 @@ const Ht = {
|
|
|
5527
5533
|
const { disabled: s } = c, p = r !== void 0 && !o, m = r !== void 0 && o;
|
|
5528
5534
|
return /* @__PURE__ */ e.createElement(
|
|
5529
5535
|
A,
|
|
5530
|
-
C(
|
|
5536
|
+
C(k({}, c), {
|
|
5531
5537
|
as: c.href ? "a" : "button",
|
|
5532
5538
|
"aria-selected": _,
|
|
5533
5539
|
size: "md",
|
|
@@ -5553,13 +5559,13 @@ const Ht = {
|
|
|
5553
5559
|
}
|
|
5554
5560
|
)
|
|
5555
5561
|
);
|
|
5556
|
-
},
|
|
5557
|
-
tabs:
|
|
5558
|
-
tabs__list:
|
|
5559
|
-
}, o_ = "tabs",
|
|
5562
|
+
}, sl = "lc-TabsWrapper-module__tabs___Y2xyD", dl = "lc-TabsWrapper-module__tabs__list___i6tVO", __ = {
|
|
5563
|
+
tabs: sl,
|
|
5564
|
+
tabs__list: dl
|
|
5565
|
+
}, o_ = "tabs", zc = ({
|
|
5560
5566
|
className: t,
|
|
5561
5567
|
children: a
|
|
5562
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: u(__[o_], t) }, a),
|
|
5568
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: u(__[o_], t) }, a), Uc = ({
|
|
5563
5569
|
className: t,
|
|
5564
5570
|
children: a
|
|
5565
5571
|
}) => /* @__PURE__ */ e.createElement("div", { role: "tablist", className: u(__[`${o_}__list`], t) }, a), Wt = {
|
|
@@ -5569,7 +5575,7 @@ const Ht = {
|
|
|
5569
5575
|
"tag-input__input--medium": "lc-TagInput-module__tag-input__input--medium___DYF7X",
|
|
5570
5576
|
"tag-input__input--large": "lc-TagInput-module__tag-input__input--large___G6iEO",
|
|
5571
5577
|
"tag-input__tag__content": "lc-TagInput-module__tag-input__tag__content___x95-M"
|
|
5572
|
-
},
|
|
5578
|
+
}, ul = ({
|
|
5573
5579
|
className: t = "",
|
|
5574
5580
|
innerEditableRef: a,
|
|
5575
5581
|
inputRef: r,
|
|
@@ -5578,28 +5584,28 @@ const Ht = {
|
|
|
5578
5584
|
value: n
|
|
5579
5585
|
}) => {
|
|
5580
5586
|
const [l, c] = e.useState(!1), d = () => a.current, i = () => {
|
|
5581
|
-
const
|
|
5582
|
-
return
|
|
5587
|
+
const b = d();
|
|
5588
|
+
return b ? b.innerText : "";
|
|
5583
5589
|
}, s = () => {
|
|
5584
5590
|
r && r.current && r.current.focus();
|
|
5585
|
-
}, p = (
|
|
5586
|
-
if (
|
|
5587
|
-
|
|
5591
|
+
}, p = (b) => {
|
|
5592
|
+
if (b.key === _e.enter) {
|
|
5593
|
+
b.preventDefault(), s();
|
|
5588
5594
|
return;
|
|
5589
5595
|
}
|
|
5590
|
-
|
|
5596
|
+
b.key === _e.backspace && i() === "" && (c(!0), o(), s());
|
|
5591
5597
|
}, m = () => {
|
|
5592
|
-
const
|
|
5593
|
-
if (!(l || !
|
|
5594
|
-
if (
|
|
5598
|
+
const b = d();
|
|
5599
|
+
if (!(l || !b)) {
|
|
5600
|
+
if (b.innerText === "") {
|
|
5595
5601
|
o();
|
|
5596
5602
|
return;
|
|
5597
5603
|
}
|
|
5598
|
-
_(
|
|
5604
|
+
_(b.innerText);
|
|
5599
5605
|
}
|
|
5600
|
-
},
|
|
5601
|
-
|
|
5602
|
-
const E =
|
|
5606
|
+
}, g = (b) => {
|
|
5607
|
+
b.preventDefault();
|
|
5608
|
+
const E = b.clipboardData.getData("text/plain");
|
|
5603
5609
|
document.execCommand("insertHTML", !1, ur(E));
|
|
5604
5610
|
};
|
|
5605
5611
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -5608,13 +5614,13 @@ const Ht = {
|
|
|
5608
5614
|
ref: a,
|
|
5609
5615
|
className: t,
|
|
5610
5616
|
contentEditable: !0,
|
|
5611
|
-
onPaste:
|
|
5617
|
+
onPaste: g,
|
|
5612
5618
|
onBlur: m,
|
|
5613
5619
|
onKeyDown: p,
|
|
5614
5620
|
dangerouslySetInnerHTML: { __html: ur(n) }
|
|
5615
5621
|
}
|
|
5616
5622
|
);
|
|
5617
|
-
},
|
|
5623
|
+
}, ml = "tag-input__tag", Mr = ({
|
|
5618
5624
|
children: t,
|
|
5619
5625
|
index: a,
|
|
5620
5626
|
remove: r,
|
|
@@ -5625,26 +5631,26 @@ const Ht = {
|
|
|
5625
5631
|
tagProps: c
|
|
5626
5632
|
}) => {
|
|
5627
5633
|
const d = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), i = e.useRef(null), s = () => r(a), p = () => d ? c ? c.kind : "default" : "error";
|
|
5628
|
-
return /* @__PURE__ */ e.createElement(a_, C(
|
|
5629
|
-
|
|
5634
|
+
return /* @__PURE__ */ e.createElement(a_, C(k({ size: l }, c), { kind: p(), onRemove: s }), /* @__PURE__ */ e.createElement(
|
|
5635
|
+
ul,
|
|
5630
5636
|
{
|
|
5631
5637
|
value: t,
|
|
5632
5638
|
inputRef: o,
|
|
5633
5639
|
innerEditableRef: i,
|
|
5634
|
-
className: Wt[`${
|
|
5640
|
+
className: Wt[`${ml}__content`],
|
|
5635
5641
|
change: (m) => n(a, m),
|
|
5636
5642
|
remove: s,
|
|
5637
5643
|
validator: _
|
|
5638
5644
|
}
|
|
5639
5645
|
));
|
|
5640
|
-
}, na = "tag-input",
|
|
5646
|
+
}, na = "tag-input", pl = [
|
|
5641
5647
|
_e.enter,
|
|
5642
5648
|
_e.spacebar,
|
|
5643
5649
|
_e.tab,
|
|
5644
5650
|
_e.semicolon,
|
|
5645
5651
|
_e.comma
|
|
5646
|
-
],
|
|
5647
|
-
var
|
|
5652
|
+
], gl = [_e.backspace, _e.delete], bl = (m) => {
|
|
5653
|
+
var g = m, {
|
|
5648
5654
|
id: t,
|
|
5649
5655
|
tags: a,
|
|
5650
5656
|
onChange: r,
|
|
@@ -5656,7 +5662,7 @@ const Ht = {
|
|
|
5656
5662
|
inputClassName: d,
|
|
5657
5663
|
onBlur: i,
|
|
5658
5664
|
addOnBlur: s = !0
|
|
5659
|
-
} =
|
|
5665
|
+
} = g, p = B(g, [
|
|
5660
5666
|
"id",
|
|
5661
5667
|
"tags",
|
|
5662
5668
|
"onChange",
|
|
@@ -5669,7 +5675,7 @@ const Ht = {
|
|
|
5669
5675
|
"onBlur",
|
|
5670
5676
|
"addOnBlur"
|
|
5671
5677
|
]);
|
|
5672
|
-
const
|
|
5678
|
+
const b = u(
|
|
5673
5679
|
Wt[na],
|
|
5674
5680
|
{
|
|
5675
5681
|
[Wt[`${na}--error`]]: o
|
|
@@ -5679,23 +5685,23 @@ const Ht = {
|
|
|
5679
5685
|
d,
|
|
5680
5686
|
Wt[`${na}__input`],
|
|
5681
5687
|
Wt[`${na}__input--${l}`]
|
|
5682
|
-
), [f, v] = e.useState(""),
|
|
5688
|
+
), [f, v] = e.useState(""), y = e.useRef(null), $ = (D) => {
|
|
5683
5689
|
D.trim() !== "" && (r([...a || [], D]), v(""));
|
|
5684
5690
|
}, N = (D) => {
|
|
5685
5691
|
const R = [...a || []];
|
|
5686
5692
|
R.splice(D, 1), r(R);
|
|
5687
|
-
},
|
|
5688
|
-
if (
|
|
5693
|
+
}, w = (D) => v(D.target.value), h = (D) => {
|
|
5694
|
+
if (pl.includes(D.key)) {
|
|
5689
5695
|
if (D.preventDefault(), f === "")
|
|
5690
5696
|
return;
|
|
5691
|
-
|
|
5692
|
-
} else if (
|
|
5697
|
+
$(f);
|
|
5698
|
+
} else if (gl.includes(D.key)) {
|
|
5693
5699
|
if (f !== "" || !(a != null && a.length))
|
|
5694
5700
|
return;
|
|
5695
5701
|
N(a.length - 1);
|
|
5696
5702
|
}
|
|
5697
5703
|
}, S = (D) => {
|
|
5698
|
-
s &&
|
|
5704
|
+
s && $(f), i == null || i(D);
|
|
5699
5705
|
}, T = (D, R) => {
|
|
5700
5706
|
const V = [...a || []];
|
|
5701
5707
|
V.reduce(
|
|
@@ -5713,7 +5719,7 @@ const Ht = {
|
|
|
5713
5719
|
key: `${R}${D}`,
|
|
5714
5720
|
update: T,
|
|
5715
5721
|
remove: N,
|
|
5716
|
-
inputRef:
|
|
5722
|
+
inputRef: y,
|
|
5717
5723
|
validator: _,
|
|
5718
5724
|
size: l
|
|
5719
5725
|
},
|
|
@@ -5725,39 +5731,39 @@ const Ht = {
|
|
|
5725
5731
|
key: `${R}${D.children}`,
|
|
5726
5732
|
update: T,
|
|
5727
5733
|
remove: N,
|
|
5728
|
-
inputRef:
|
|
5734
|
+
inputRef: y,
|
|
5729
5735
|
validator: _,
|
|
5730
5736
|
size: l,
|
|
5731
5737
|
tagProps: D
|
|
5732
5738
|
},
|
|
5733
5739
|
D.value || D.children
|
|
5734
5740
|
);
|
|
5735
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(A, { as: "div", className:
|
|
5741
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(A, { as: "div", className: b }, a == null ? void 0 : a.map(G), /* @__PURE__ */ e.createElement(
|
|
5736
5742
|
"input",
|
|
5737
|
-
C(
|
|
5743
|
+
C(k({}, p), {
|
|
5738
5744
|
id: t,
|
|
5739
|
-
ref:
|
|
5745
|
+
ref: y,
|
|
5740
5746
|
className: E,
|
|
5741
5747
|
placeholder: n,
|
|
5742
5748
|
value: f,
|
|
5743
|
-
onChange:
|
|
5744
|
-
onKeyDown:
|
|
5749
|
+
onChange: w,
|
|
5750
|
+
onKeyDown: h,
|
|
5745
5751
|
onPaste: L,
|
|
5746
5752
|
onBlur: S
|
|
5747
5753
|
})
|
|
5748
5754
|
)), o && /* @__PURE__ */ e.createElement(lr, null, o));
|
|
5749
|
-
},
|
|
5755
|
+
}, fl = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/i, vl = "name@company.com", hl = (t) => fl.test(t), Wc = (r) => {
|
|
5750
5756
|
var _ = r, {
|
|
5751
|
-
placeholder: t =
|
|
5757
|
+
placeholder: t = vl
|
|
5752
5758
|
} = _, a = B(_, [
|
|
5753
5759
|
"placeholder"
|
|
5754
5760
|
]);
|
|
5755
|
-
return /* @__PURE__ */ e.createElement(
|
|
5756
|
-
},
|
|
5757
|
-
toast:
|
|
5758
|
-
toast__content:
|
|
5759
|
-
toast__actions:
|
|
5760
|
-
toast__actions__button:
|
|
5761
|
+
return /* @__PURE__ */ e.createElement(bl, C(k({}, a), { placeholder: t, validator: hl }));
|
|
5762
|
+
}, kl = "lc-Toast-module__toast___j5Amn", yl = "lc-Toast-module__toast__content___HjaNw", El = "lc-Toast-module__toast__actions___JWu-1", wl = "lc-Toast-module__toast__actions__button___Iblrl", j = {
|
|
5763
|
+
toast: kl,
|
|
5764
|
+
toast__content: yl,
|
|
5765
|
+
toast__actions: El,
|
|
5766
|
+
toast__actions__button: wl,
|
|
5761
5767
|
"toast__actions__button--success": "lc-Toast-module__toast__actions__button--success___5JmFw",
|
|
5762
5768
|
"toast__actions__button--warning": "lc-Toast-module__toast__actions__button--warning___zGQ-Q",
|
|
5763
5769
|
"toast__actions__button--error": "lc-Toast-module__toast__actions__button--error___PuTv3",
|
|
@@ -5783,7 +5789,7 @@ const Ht = {
|
|
|
5783
5789
|
"toast-appear-active--fade": "lc-Toast-module__toast-appear-active--fade___D3--J",
|
|
5784
5790
|
"toast-exit--fade": "lc-Toast-module__toast-exit--fade___iDA1p",
|
|
5785
5791
|
"toast-exit-active--fade": "lc-Toast-module__toast-exit-active--fade___tL7sb"
|
|
5786
|
-
},
|
|
5792
|
+
}, $l = {
|
|
5787
5793
|
success: {
|
|
5788
5794
|
source: Lr
|
|
5789
5795
|
},
|
|
@@ -5796,7 +5802,7 @@ const Ht = {
|
|
|
5796
5802
|
info: {
|
|
5797
5803
|
source: Za
|
|
5798
5804
|
}
|
|
5799
|
-
}, _t = "toast",
|
|
5805
|
+
}, _t = "toast", Nl = (c) => {
|
|
5800
5806
|
var d = c, {
|
|
5801
5807
|
action: t,
|
|
5802
5808
|
className: a,
|
|
@@ -5817,7 +5823,7 @@ const Ht = {
|
|
|
5817
5823
|
j[`${_t}--${o}`],
|
|
5818
5824
|
a
|
|
5819
5825
|
), s = typeof r == "string", p = (m) => m && m.closesOnClick && n ? (m.onClick(), n()) : m.onClick();
|
|
5820
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
5826
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: i }, l), /* @__PURE__ */ e.createElement("div", { className: j[`${_t}__icon`] }, /* @__PURE__ */ e.createElement(P, C(k({}, $l[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: j[`${_t}__content`] }, s ? /* @__PURE__ */ e.createElement(A, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: j[`${_t}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
5821
5827
|
W,
|
|
5822
5828
|
{
|
|
5823
5829
|
className: j[`${_t}__actions--custom`],
|
|
@@ -5838,7 +5844,7 @@ const Ht = {
|
|
|
5838
5844
|
},
|
|
5839
5845
|
/* @__PURE__ */ e.createElement(P, { source: Pe, size: "medium" })
|
|
5840
5846
|
)));
|
|
5841
|
-
},
|
|
5847
|
+
}, Sl = 200, zt = "toast-wrapper", Vc = ({
|
|
5842
5848
|
className: t,
|
|
5843
5849
|
toasts: a = [],
|
|
5844
5850
|
fixed: r = !0,
|
|
@@ -5857,7 +5863,7 @@ const Ht = {
|
|
|
5857
5863
|
},
|
|
5858
5864
|
t
|
|
5859
5865
|
);
|
|
5860
|
-
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement(qr, { component: null }, a.map(({ id: d, kind: i, content: s, removable: p, action: m, onClose:
|
|
5866
|
+
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement(qr, { component: null }, a.map(({ id: d, kind: i, content: s, removable: p, action: m, onClose: g }) => /* @__PURE__ */ e.createElement(
|
|
5861
5867
|
Kr,
|
|
5862
5868
|
{
|
|
5863
5869
|
key: d,
|
|
@@ -5867,48 +5873,48 @@ const Ht = {
|
|
|
5867
5873
|
exit: j[`toast-exit--${o}`],
|
|
5868
5874
|
exitActive: j[`toast-exit-active--${o}`]
|
|
5869
5875
|
},
|
|
5870
|
-
timeout:
|
|
5876
|
+
timeout: Sl
|
|
5871
5877
|
},
|
|
5872
5878
|
/* @__PURE__ */ e.createElement(
|
|
5873
|
-
|
|
5879
|
+
Nl,
|
|
5874
5880
|
{
|
|
5875
5881
|
kind: i,
|
|
5876
|
-
onClose:
|
|
5882
|
+
onClose: g,
|
|
5877
5883
|
removable: p,
|
|
5878
5884
|
action: m
|
|
5879
5885
|
},
|
|
5880
5886
|
s
|
|
5881
5887
|
)
|
|
5882
5888
|
))));
|
|
5883
|
-
},
|
|
5884
|
-
textarea:
|
|
5889
|
+
}, Cl = "lc-Textarea-module__textarea___g6U8F", la = {
|
|
5890
|
+
textarea: Cl,
|
|
5885
5891
|
"textarea--focused": "lc-Textarea-module__textarea--focused___1vtEx",
|
|
5886
5892
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___xXaGv",
|
|
5887
5893
|
"textarea--error": "lc-Textarea-module__textarea--error___0EGuq"
|
|
5888
|
-
}, ca = "textarea",
|
|
5894
|
+
}, ca = "textarea", qc = e.forwardRef(
|
|
5889
5895
|
(o, _) => {
|
|
5890
5896
|
var n = o, { className: t, error: a } = n, r = B(n, ["className", "error"]);
|
|
5891
5897
|
const { disabled: l, onBlur: c, onFocus: d } = r, [i, s] = e.useState(!1), p = u(t, la[ca], {
|
|
5892
5898
|
[la[`${ca}--disabled`]]: l,
|
|
5893
5899
|
[la[`${ca}--focused`]]: i,
|
|
5894
5900
|
[la[`${ca}--error`]]: a
|
|
5895
|
-
}), m = (
|
|
5896
|
-
s(!1), c == null || c(
|
|
5897
|
-
},
|
|
5898
|
-
s(!0), d == null || d(
|
|
5901
|
+
}), m = (b) => {
|
|
5902
|
+
s(!1), c == null || c(b);
|
|
5903
|
+
}, g = (b) => {
|
|
5904
|
+
s(!0), d == null || d(b);
|
|
5899
5905
|
};
|
|
5900
5906
|
return /* @__PURE__ */ e.createElement(A, { as: "div", className: p }, /* @__PURE__ */ e.createElement(
|
|
5901
5907
|
"textarea",
|
|
5902
|
-
C(
|
|
5908
|
+
C(k({}, r), {
|
|
5903
5909
|
ref: _,
|
|
5904
|
-
onFocus:
|
|
5910
|
+
onFocus: g,
|
|
5905
5911
|
onBlur: m
|
|
5906
5912
|
})
|
|
5907
5913
|
));
|
|
5908
5914
|
}
|
|
5909
|
-
),
|
|
5915
|
+
), xl = {
|
|
5910
5916
|
"update-badge": "lc-UpdateBadge-module__update-badge___Y-CXQ"
|
|
5911
|
-
},
|
|
5917
|
+
}, Tl = "update-badge", Kc = () => /* @__PURE__ */ e.createElement("span", { className: xl[Tl] }), Ua = {
|
|
5912
5918
|
"file-upload-progress-actions": "lc-FileUploadProgressActions-module__file-upload-progress-actions___qOBr2",
|
|
5913
5919
|
"file-upload-progress-actions__close-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__close-button___Eh4um",
|
|
5914
5920
|
"file-upload-progress-actions__retry-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__retry-button___DqFEo"
|
|
@@ -5941,7 +5947,7 @@ const Ht = {
|
|
|
5941
5947
|
"file-upload-progress__wrapper__header__title": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title___2IVuv",
|
|
5942
5948
|
"file-upload-progress__wrapper__header__title--success": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--success___E6DQl",
|
|
5943
5949
|
"file-upload-progress__wrapper__header__title--error": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--error___5BPpI"
|
|
5944
|
-
}, Qe = "file-upload-progress", Va = `${Qe}__wrapper__header__title`,
|
|
5950
|
+
}, Qe = "file-upload-progress", Va = `${Qe}__wrapper__header__title`, Dl = e.forwardRef(
|
|
5945
5951
|
({
|
|
5946
5952
|
actionsVisibility: t = "hidden",
|
|
5947
5953
|
className: a,
|
|
@@ -5994,7 +6000,7 @@ const Ht = {
|
|
|
5994
6000
|
)
|
|
5995
6001
|
)),
|
|
5996
6002
|
l !== "success" && /* @__PURE__ */ e.createElement(
|
|
5997
|
-
|
|
6003
|
+
Xn,
|
|
5998
6004
|
{
|
|
5999
6005
|
className: a,
|
|
6000
6006
|
percent: o,
|
|
@@ -6024,7 +6030,7 @@ const Ht = {
|
|
|
6024
6030
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
|
|
6025
6031
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
|
|
6026
6032
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
|
|
6027
|
-
}, pe = "upload-bar", je = `${pe}__wrapper__header`,
|
|
6033
|
+
}, pe = "upload-bar", je = `${pe}__wrapper__header`, Bl = 300, Al = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement(
|
|
6028
6034
|
"div",
|
|
6029
6035
|
{
|
|
6030
6036
|
"data-testid": "success-icon",
|
|
@@ -6039,13 +6045,13 @@ const Ht = {
|
|
|
6039
6045
|
},
|
|
6040
6046
|
/* @__PURE__ */ e.createElement(P, { source: k_ })
|
|
6041
6047
|
) : /* @__PURE__ */ e.createElement(
|
|
6042
|
-
|
|
6048
|
+
Yn,
|
|
6043
6049
|
{
|
|
6044
6050
|
className: z[`${je}__loader`],
|
|
6045
6051
|
status: t,
|
|
6046
6052
|
progressValue: a
|
|
6047
6053
|
}
|
|
6048
|
-
),
|
|
6054
|
+
), Yc = ({
|
|
6049
6055
|
children: t,
|
|
6050
6056
|
className: a,
|
|
6051
6057
|
progressValue: r,
|
|
@@ -6059,14 +6065,14 @@ const Ht = {
|
|
|
6059
6065
|
onCloseButtonClick: s,
|
|
6060
6066
|
onRetryButtonClick: p
|
|
6061
6067
|
}) => {
|
|
6062
|
-
const [m,
|
|
6063
|
-
[z[`${pe}--error`]]:
|
|
6068
|
+
const [m, g] = e.useState(o || !1), b = l === "error", E = l === "success", f = u(z[pe], a, {
|
|
6069
|
+
[z[`${pe}--error`]]: b,
|
|
6064
6070
|
[z[`${pe}--success`]]: E
|
|
6065
|
-
}), v = !(
|
|
6071
|
+
}), v = !(b && (p || s)), y = () => g(!m);
|
|
6066
6072
|
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: f }, /* @__PURE__ */ e.createElement("div", { className: z[`${pe}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${je}`] }, /* @__PURE__ */ e.createElement(
|
|
6067
|
-
|
|
6073
|
+
Dl,
|
|
6068
6074
|
{
|
|
6069
|
-
title:
|
|
6075
|
+
title: b && n || _,
|
|
6070
6076
|
progressValue: r,
|
|
6071
6077
|
status: l,
|
|
6072
6078
|
icon: c,
|
|
@@ -6083,15 +6089,15 @@ const Ht = {
|
|
|
6083
6089
|
"div",
|
|
6084
6090
|
{
|
|
6085
6091
|
className: z[`${pe}__wrapper`],
|
|
6086
|
-
onClick:
|
|
6092
|
+
onClick: y
|
|
6087
6093
|
},
|
|
6088
|
-
/* @__PURE__ */ e.createElement("div", { className: z[`${je}`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${je}__icon`] },
|
|
6094
|
+
/* @__PURE__ */ e.createElement("div", { className: z[`${je}`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${je}__icon`] }, Al(l, r)), /* @__PURE__ */ e.createElement("div", { className: z[`${je}__title`] }, /* @__PURE__ */ e.createElement(A, { size: "sm", as: "div" }, b ? n : _)), v && /* @__PURE__ */ e.createElement(
|
|
6089
6095
|
"button",
|
|
6090
6096
|
{
|
|
6091
6097
|
className: z[`${je}__collapse-button`],
|
|
6092
6098
|
type: "button",
|
|
6093
6099
|
"aria-label": "Collapse button",
|
|
6094
|
-
onClick:
|
|
6100
|
+
onClick: y
|
|
6095
6101
|
},
|
|
6096
6102
|
m ? /* @__PURE__ */ e.createElement(P, { source: ua }) : /* @__PURE__ */ e.createElement(P, { source: qt })
|
|
6097
6103
|
), l === "error" && /* @__PURE__ */ e.createElement("div", { className: z[`${je}__actions-container`] }, /* @__PURE__ */ e.createElement(
|
|
@@ -6105,7 +6111,7 @@ const Ht = {
|
|
|
6105
6111
|
), /* @__PURE__ */ e.createElement(qr, { component: null }, m && /* @__PURE__ */ e.createElement(
|
|
6106
6112
|
Kr,
|
|
6107
6113
|
{
|
|
6108
|
-
timeout:
|
|
6114
|
+
timeout: Bl,
|
|
6109
6115
|
classNames: {
|
|
6110
6116
|
enter: z[`${pe}__files--enter`],
|
|
6111
6117
|
enterActive: z[`${pe}__files--enter-active`],
|
|
@@ -6118,94 +6124,94 @@ const Ht = {
|
|
|
6118
6124
|
)));
|
|
6119
6125
|
};
|
|
6120
6126
|
export {
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6127
|
+
Sl as ANIMATION_TIME,
|
|
6128
|
+
nc as ActionBar,
|
|
6129
|
+
lc as ActionCard,
|
|
6124
6130
|
R_ as ActionMenu,
|
|
6125
6131
|
L_ as ActionMenuItem,
|
|
6126
|
-
|
|
6127
|
-
|
|
6132
|
+
cc as Alert,
|
|
6133
|
+
ic as AppFrame,
|
|
6128
6134
|
I_ as AppFrameProvider,
|
|
6129
6135
|
Ao as Avatar,
|
|
6130
6136
|
Ja as Badge,
|
|
6131
6137
|
W as Button,
|
|
6132
|
-
|
|
6138
|
+
bc as Card,
|
|
6133
6139
|
tn as Checkbox,
|
|
6134
6140
|
cn as DatePicker,
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
+
fc as DatePickerRangeCalendarsWrapper,
|
|
6142
|
+
ql as DesignToken,
|
|
6143
|
+
vc as DetailsCard,
|
|
6144
|
+
hc as DetailsCardInfo,
|
|
6145
|
+
ec as Display,
|
|
6146
|
+
Wc as EmailTagInput,
|
|
6141
6147
|
wa as FieldDescription,
|
|
6142
6148
|
lr as FieldError,
|
|
6143
|
-
|
|
6144
|
-
|
|
6149
|
+
kc as FieldGroup,
|
|
6150
|
+
Dl as FileUploadProgress,
|
|
6145
6151
|
ja as FileUploadProgressActions,
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6152
|
+
yc as Form,
|
|
6153
|
+
Ec as FormField,
|
|
6154
|
+
wc as FormGroup,
|
|
6149
6155
|
Ee as Heading,
|
|
6150
6156
|
P as Icon,
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6157
|
+
ac as Info,
|
|
6158
|
+
$c as Input,
|
|
6159
|
+
rc as Interactive,
|
|
6160
|
+
Nc as Link,
|
|
6155
6161
|
or as Loader,
|
|
6156
|
-
|
|
6157
|
-
|
|
6162
|
+
Sc as Modal,
|
|
6163
|
+
$n as ModalBase,
|
|
6158
6164
|
Dr as ModalCloseButton,
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6165
|
+
xc as ModalHeader,
|
|
6166
|
+
Cc as ModalPortal,
|
|
6167
|
+
pc as Navigation,
|
|
6168
|
+
uc as NavigationGroup,
|
|
6169
|
+
mc as NavigationItem,
|
|
6170
|
+
Tc as NumericInput,
|
|
6171
|
+
Dc as Picker,
|
|
6172
|
+
Bn as PickerList,
|
|
6173
|
+
Bc as Popover,
|
|
6174
|
+
Xn as ProgressBar,
|
|
6175
|
+
Yn as ProgressCircle,
|
|
6176
|
+
Ac as PromoBanner,
|
|
6177
|
+
Ic as PromoBannerV2,
|
|
6178
|
+
Pc as RadioButton,
|
|
6179
|
+
Xl as RadiusToken,
|
|
6174
6180
|
dn as RangeDatePicker,
|
|
6175
|
-
|
|
6181
|
+
oc as Reports,
|
|
6176
6182
|
po as SIDE_NAVIGATION_ACTIVE_ITEM_TEST_ID,
|
|
6177
6183
|
mo as SIDE_NAVIGATION_ITEM_TEST_ID,
|
|
6178
6184
|
go as SIDE_NAVIGATION_PARENT_ICON_TEST_ID,
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6185
|
+
Fc as SearchInput,
|
|
6186
|
+
gc as SegmentedControl,
|
|
6187
|
+
Yl as ShadowToken,
|
|
6188
|
+
sc as SideNavigation,
|
|
6189
|
+
dc as SideNavigationGroup,
|
|
6184
6190
|
bo as SideNavigationItem,
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6191
|
+
tc as Simple,
|
|
6192
|
+
Rc as SkeletonAvatar,
|
|
6193
|
+
Lc as SkeletonText,
|
|
6194
|
+
Mc as SkeletonWrapper,
|
|
6195
|
+
Kl as SpacingToken,
|
|
6196
|
+
Oc as StatusBadge,
|
|
6197
|
+
Hc as Switch,
|
|
6198
|
+
Gc as Tab,
|
|
6199
|
+
Uc as TabsList,
|
|
6200
|
+
zc as TabsWrapper,
|
|
6195
6201
|
a_ as Tag,
|
|
6196
|
-
|
|
6202
|
+
bl as TagInput,
|
|
6197
6203
|
A as Text,
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6204
|
+
qc as Textarea,
|
|
6205
|
+
Nl as Toast,
|
|
6206
|
+
Vc as ToastWrapper,
|
|
6201
6207
|
nr as Tooltip,
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
+
jl as TransitionDelayToken,
|
|
6209
|
+
Jl as TransitionDurationToken,
|
|
6210
|
+
Ql as TransitionTimingToken,
|
|
6211
|
+
Kc as UpdateBadge,
|
|
6212
|
+
Yc as UploadBar,
|
|
6213
|
+
_c as UserGuide,
|
|
6208
6214
|
No as generateAvatarColor,
|
|
6209
|
-
|
|
6215
|
+
Zl as getDesignTokenWithOpacity,
|
|
6210
6216
|
A_ as useAppFrame
|
|
6211
6217
|
};
|