@livechat/design-system-react-components 1.33.2 → 1.33.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AppFrame/components/NavigationItem/types.d.ts +6 -6
- package/dist/components/AppFrame/stories-helpers.d.ts +3 -0
- package/dist/components/OnboardingChecklist/types.d.ts +4 -0
- package/dist/components/ProductSwitcher/types.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1000 -957
- package/dist/providers/AppFrameProvider.d.ts +11 -0
- package/dist/providers/index.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -9,7 +9,7 @@ var Qa = (t, a, r) => a in t ? $_(t, a, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
for (var r of va(a))
|
|
10
10
|
Br.call(a, r) && Qa(t, r, a[r]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
12
|
+
}, T = (t, a) => N_(t, S_(a));
|
|
13
13
|
var D = (t, a) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var _ in t)
|
|
@@ -21,8 +21,8 @@ var D = (t, a) => {
|
|
|
21
21
|
};
|
|
22
22
|
var er = (t, a, r) => (Qa(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
|
-
import { useReducer as x_, useRef as B_, useEffect as
|
|
25
|
-
import { Check as ia, Close as Ie, ChevronDown as Ot, Info as ca, Warning as a_, CheckCircle as vr, Block as r_, ChevronRight as La, Person as T_, ChevronUp as Oa, DoubleArrowLeft as D_, ChevronLeft as
|
|
24
|
+
import { useReducer as x_, useRef as B_, useEffect as Ft, useCallback as ka, useMemo as Ea, useState as I_ } from "react";
|
|
25
|
+
import { Check as ia, Close as Ie, ChevronDown as Ot, Info as ca, Warning as a_, CheckCircle as vr, Block as r_, ChevronRight as La, Person as T_, ChevronUp as Oa, DoubleArrowLeft as D_, ChevronLeft as P_, DoubleArrowRight as A_, VisibilityOn as F_, VisibilityOff as R_, TextLogoFull as M_, LiveChatMono as L_, ChatBotMono as O_, HelpDeskMono as G_, KnowledgeBaseMono as U_, OpenWidgetMono as H_, HelloMono as z_, TextAccounts as W_, Search as V_, LockBlack as K_, Refresh as Y_, Error as q_ } from "@livechat/design-system-icons";
|
|
26
26
|
import u from "clsx";
|
|
27
27
|
import { useFloatingParentNodeId as Ga, useFloatingNodeId as sa, useFloating as da, offset as ua, flip as Ua, size as __, autoUpdate as ma, useClick as pa, useDismiss as ga, useRole as fa, useInteractions as ba, useTransitionStyles as kr, FloatingNode as ha, FloatingTree as Ha, shift as Er, arrow as Z_, useHover as X_, safePolygon as J_, useFocus as j_, useTransitionStatus as Q_, FloatingArrow as eo, FloatingPortal as o_, FloatingOverlay as to, FloatingFocusManager as mr, useListNavigation as ao } from "@floating-ui/react";
|
|
28
28
|
import * as l_ from "react-dom";
|
|
@@ -494,7 +494,7 @@ const Mc = {
|
|
|
494
494
|
[r, _]
|
|
495
495
|
);
|
|
496
496
|
return /* @__PURE__ */ e.createElement(s_.Provider, { value: o }, t);
|
|
497
|
-
}, Wc = (t, a) => `color-mix(in srgb, var(${t}) ${a}, transparent)`,
|
|
497
|
+
}, Wc = (t, a) => `color-mix(in srgb, var(${t}) ${a}, transparent)`, de = {
|
|
498
498
|
esc: "Escape",
|
|
499
499
|
enter: "Enter",
|
|
500
500
|
backspace: "Backspace",
|
|
@@ -505,7 +505,7 @@ const Mc = {
|
|
|
505
505
|
comma: ",",
|
|
506
506
|
arrowUp: "ArrowUp",
|
|
507
507
|
arrowDown: "ArrowDown"
|
|
508
|
-
}, io = "lc-Icon-module__icon___tw31R",
|
|
508
|
+
}, io = "lc-Icon-module__icon___tw31R", Pr = {
|
|
509
509
|
icon: io,
|
|
510
510
|
"icon--primary": "lc-Icon-module__icon--primary___JJnBV",
|
|
511
511
|
"icon--subtle": "lc-Icon-module__icon--subtle___sZIzL",
|
|
@@ -569,7 +569,7 @@ const Mc = {
|
|
|
569
569
|
width: 64,
|
|
570
570
|
height: 64
|
|
571
571
|
}
|
|
572
|
-
},
|
|
572
|
+
}, Ar = "icon", x = (t) => {
|
|
573
573
|
const s = t, {
|
|
574
574
|
source: a,
|
|
575
575
|
size: r = "medium",
|
|
@@ -586,10 +586,10 @@ const Mc = {
|
|
|
586
586
|
"customColor"
|
|
587
587
|
]), d = e.createElement(a, k(k({}, so[r]), n ? { color: n } : {})), i = u(
|
|
588
588
|
l,
|
|
589
|
-
Ar
|
|
590
|
-
_ &&
|
|
589
|
+
Pr[Ar],
|
|
590
|
+
_ && Pr[`${Ar}--${o ? "disabled--" : ""}${_}`]
|
|
591
591
|
);
|
|
592
|
-
return /* @__PURE__ */ e.createElement("span",
|
|
592
|
+
return /* @__PURE__ */ e.createElement("span", T(k({}, c), { className: i }), d);
|
|
593
593
|
}, Ge = {
|
|
594
594
|
"heading-xl": "lc-Typography-module__heading-xl___nhr-6",
|
|
595
595
|
"heading-lg": "lc-Typography-module__heading-lg___XYF7l",
|
|
@@ -620,7 +620,7 @@ const Mc = {
|
|
|
620
620
|
sm: "h4",
|
|
621
621
|
xs: "h5",
|
|
622
622
|
"2xs": "h6"
|
|
623
|
-
},
|
|
623
|
+
}, ne = (i) => {
|
|
624
624
|
var s = i, {
|
|
625
625
|
as: t,
|
|
626
626
|
size: a = "md",
|
|
@@ -655,8 +655,8 @@ const Mc = {
|
|
|
655
655
|
}, d),
|
|
656
656
|
r
|
|
657
657
|
);
|
|
658
|
-
}, B = (
|
|
659
|
-
var
|
|
658
|
+
}, B = (f) => {
|
|
659
|
+
var b = f, {
|
|
660
660
|
as: t = "p",
|
|
661
661
|
size: a = "md",
|
|
662
662
|
caps: r = !1,
|
|
@@ -669,7 +669,7 @@ const Mc = {
|
|
|
669
669
|
customColor: i,
|
|
670
670
|
textAlign: s,
|
|
671
671
|
noMargin: p
|
|
672
|
-
} =
|
|
672
|
+
} = b, m = D(b, [
|
|
673
673
|
"as",
|
|
674
674
|
"size",
|
|
675
675
|
"caps",
|
|
@@ -761,8 +761,8 @@ const Mc = {
|
|
|
761
761
|
onOpen: s,
|
|
762
762
|
floatingStrategy: p,
|
|
763
763
|
selectedOptions: m,
|
|
764
|
-
footer:
|
|
765
|
-
} = h,
|
|
764
|
+
footer: f
|
|
765
|
+
} = h, b = D(h, [
|
|
766
766
|
"className",
|
|
767
767
|
"triggerClassName",
|
|
768
768
|
"options",
|
|
@@ -778,146 +778,146 @@ const Mc = {
|
|
|
778
778
|
"selectedOptions",
|
|
779
779
|
"footer"
|
|
780
780
|
]);
|
|
781
|
-
const
|
|
782
|
-
|
|
783
|
-
}, { x:
|
|
781
|
+
const y = d !== void 0, [E, $] = e.useState(l), [w, C] = e.useState(null), g = e.useRef(-1), N = Ga(), S = sa(), M = e.useRef(null), G = y ? d : E, I = () => {
|
|
782
|
+
G ? (i == null || i(), !y && $(!1)) : (s == null || s(), !y && $(!0));
|
|
783
|
+
}, { x: O, y: Y, strategy: X, refs: L, context: U } = da({
|
|
784
784
|
nodeId: S,
|
|
785
785
|
middleware: [
|
|
786
786
|
ua(4),
|
|
787
787
|
Ua(c),
|
|
788
788
|
__({
|
|
789
|
-
apply({ availableHeight:
|
|
790
|
-
ro(() => C(
|
|
789
|
+
apply({ availableHeight: P }) {
|
|
790
|
+
ro(() => C(P));
|
|
791
791
|
}
|
|
792
792
|
})
|
|
793
793
|
],
|
|
794
794
|
placement: o,
|
|
795
|
-
open:
|
|
795
|
+
open: G,
|
|
796
796
|
strategy: p,
|
|
797
|
-
onOpenChange:
|
|
797
|
+
onOpenChange: I,
|
|
798
798
|
whileElementsMounted: ma
|
|
799
|
-
}), $e = pa(
|
|
800
|
-
enabled:
|
|
801
|
-
}), Ue = fa(
|
|
799
|
+
}), $e = pa(U), Ke = ga(U, {
|
|
800
|
+
enabled: G
|
|
801
|
+
}), Ue = fa(U), { getReferenceProps: Ne, getFloatingProps: $t } = ba([
|
|
802
802
|
$e,
|
|
803
803
|
Ke,
|
|
804
804
|
Ue
|
|
805
|
-
]), { styles:
|
|
806
|
-
initial: ({ side:
|
|
805
|
+
]), { styles: ft } = kr(U, {
|
|
806
|
+
initial: ({ side: P }) => k({
|
|
807
807
|
opacity: 0
|
|
808
|
-
},
|
|
808
|
+
}, P === "bottom" && {
|
|
809
809
|
marginTop: -10
|
|
810
|
-
} ||
|
|
810
|
+
} || P === "top" && {
|
|
811
811
|
marginTop: 10
|
|
812
|
-
} ||
|
|
812
|
+
} || P === "left" && {
|
|
813
813
|
marginLeft: 10
|
|
814
|
-
} ||
|
|
814
|
+
} || P === "right" && {
|
|
815
815
|
marginLeft: -10
|
|
816
816
|
})
|
|
817
|
-
}),
|
|
817
|
+
}), Nt = (P) => {
|
|
818
818
|
var Ye, qe;
|
|
819
|
-
const
|
|
820
|
-
let ue =
|
|
819
|
+
const V = g.current;
|
|
820
|
+
let ue = V + P;
|
|
821
821
|
for (; (Ye = r[ue]) != null && Ye.disabled || (qe = r[ue]) != null && qe.groupHeader; )
|
|
822
|
-
if (ue +=
|
|
823
|
-
ue =
|
|
822
|
+
if (ue += P, ue === -1) {
|
|
823
|
+
ue = V;
|
|
824
824
|
break;
|
|
825
825
|
}
|
|
826
826
|
return ue;
|
|
827
|
-
},
|
|
827
|
+
}, bt = (P) => {
|
|
828
828
|
var Ye, qe;
|
|
829
|
-
g.current =
|
|
830
|
-
const
|
|
829
|
+
g.current = Nt(P);
|
|
830
|
+
const V = (Ye = M.current) == null ? void 0 : Ye.children, ue = V && ((qe = V[g.current]) == null ? void 0 : qe.children[0]);
|
|
831
831
|
return ue == null ? void 0 : ue.focus();
|
|
832
|
-
}, lt = (
|
|
833
|
-
|
|
832
|
+
}, lt = (P) => {
|
|
833
|
+
P.key === de.arrowUp && g.current > 0 && (P.preventDefault(), bt(-1)), P.key === de.arrowDown && g.current + 1 < r.length && (P.preventDefault(), bt(1));
|
|
834
834
|
};
|
|
835
835
|
e.useEffect(() => {
|
|
836
|
-
if (
|
|
836
|
+
if (G)
|
|
837
837
|
return document.addEventListener("keydown", lt), () => document.removeEventListener("keydown", lt);
|
|
838
838
|
g.current = -1;
|
|
839
|
-
}, [
|
|
840
|
-
const
|
|
841
|
-
g.current =
|
|
842
|
-
},
|
|
839
|
+
}, [G, lt]);
|
|
840
|
+
const ht = (P, V) => {
|
|
841
|
+
g.current = P, V == null || V(), !y && !n && ($(!1), i == null || i());
|
|
842
|
+
}, St = (P, V) => P.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
843
843
|
"li",
|
|
844
844
|
{
|
|
845
|
-
key:
|
|
845
|
+
key: P.key,
|
|
846
846
|
role: "none",
|
|
847
847
|
className: He[`${ze}__list__group-header`]
|
|
848
848
|
},
|
|
849
|
-
|
|
850
|
-
) : /* @__PURE__ */ e.createElement("li", { key:
|
|
849
|
+
P.element
|
|
850
|
+
) : /* @__PURE__ */ e.createElement("li", { key: P.key, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
851
851
|
"button",
|
|
852
852
|
{
|
|
853
|
-
"data-testid":
|
|
853
|
+
"data-testid": P.key,
|
|
854
854
|
tabIndex: -1,
|
|
855
|
-
key:
|
|
856
|
-
disabled:
|
|
857
|
-
onClick: () =>
|
|
855
|
+
key: P.key,
|
|
856
|
+
disabled: P.disabled,
|
|
857
|
+
onClick: () => ht(V, P.onClick),
|
|
858
858
|
role: "menuitem",
|
|
859
859
|
className: u(He[`${ze}__list__item`], {
|
|
860
|
-
[He[`${ze}__list__item--disabled`]]:
|
|
861
|
-
[He[`${ze}__list__item--with-divider`]]:
|
|
862
|
-
[He[`${ze}__list__item--selected`]]: m == null ? void 0 : m.includes(
|
|
860
|
+
[He[`${ze}__list__item--disabled`]]: P.disabled,
|
|
861
|
+
[He[`${ze}__list__item--with-divider`]]: P.withDivider,
|
|
862
|
+
[He[`${ze}__list__item--selected`]]: m == null ? void 0 : m.includes(P.key)
|
|
863
863
|
})
|
|
864
864
|
},
|
|
865
|
-
|
|
866
|
-
(m == null ? void 0 : m.includes(
|
|
865
|
+
P.element,
|
|
866
|
+
(m == null ? void 0 : m.includes(P.key)) && /* @__PURE__ */ e.createElement(
|
|
867
867
|
"div",
|
|
868
868
|
{
|
|
869
|
-
"data-testid": `${
|
|
869
|
+
"data-testid": `${P.key}-selected-icon`,
|
|
870
870
|
className: He[`${ze}__list__item__icon`]
|
|
871
871
|
},
|
|
872
872
|
/* @__PURE__ */ e.createElement(x, { source: ia, kind: "action-primary" })
|
|
873
873
|
)
|
|
874
|
-
)),
|
|
874
|
+
)), xt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
875
875
|
"div",
|
|
876
|
-
|
|
876
|
+
T(k({
|
|
877
877
|
"aria-label": "Toggle menu",
|
|
878
878
|
"data-testid": "action-menu-trigger-button",
|
|
879
|
-
ref:
|
|
879
|
+
ref: L.setReference
|
|
880
880
|
}, Ne()), {
|
|
881
881
|
className: a
|
|
882
882
|
}),
|
|
883
883
|
_
|
|
884
|
-
), /* @__PURE__ */ e.createElement(ha, { id: S },
|
|
884
|
+
), /* @__PURE__ */ e.createElement(ha, { id: S }, G && /* @__PURE__ */ e.createElement(
|
|
885
885
|
"div",
|
|
886
886
|
k({
|
|
887
|
-
ref:
|
|
887
|
+
ref: L.setFloating,
|
|
888
888
|
className: He[ze],
|
|
889
889
|
style: k(k({
|
|
890
|
-
position:
|
|
891
|
-
top:
|
|
892
|
-
left:
|
|
893
|
-
}, !!w && { maxHeight: w }),
|
|
894
|
-
},
|
|
890
|
+
position: X,
|
|
891
|
+
top: Y != null ? Y : "",
|
|
892
|
+
left: O != null ? O : ""
|
|
893
|
+
}, !!w && { maxHeight: w }), ft)
|
|
894
|
+
}, $t()),
|
|
895
895
|
r.length > 0 && /* @__PURE__ */ e.createElement(
|
|
896
896
|
"ul",
|
|
897
|
-
|
|
897
|
+
T(k({}, b), {
|
|
898
898
|
className: u(
|
|
899
899
|
He[`${ze}__list`],
|
|
900
900
|
{
|
|
901
|
-
[He[`${ze}__list--with-footer`]]:
|
|
901
|
+
[He[`${ze}__list--with-footer`]]: f
|
|
902
902
|
},
|
|
903
903
|
t
|
|
904
904
|
),
|
|
905
905
|
role: "menu",
|
|
906
906
|
ref: M
|
|
907
907
|
}),
|
|
908
|
-
r.map(
|
|
908
|
+
r.map(St)
|
|
909
909
|
),
|
|
910
|
-
|
|
910
|
+
f && /* @__PURE__ */ e.createElement(
|
|
911
911
|
B,
|
|
912
912
|
{
|
|
913
913
|
size: "sm",
|
|
914
914
|
as: "div",
|
|
915
915
|
className: He[`${ze}__footer`]
|
|
916
916
|
},
|
|
917
|
-
|
|
917
|
+
f
|
|
918
918
|
)
|
|
919
919
|
)));
|
|
920
|
-
return N === null ? /* @__PURE__ */ e.createElement(Ha, null,
|
|
920
|
+
return N === null ? /* @__PURE__ */ e.createElement(Ha, null, xt) : xt;
|
|
921
921
|
}, Ut = {
|
|
922
922
|
"action-menu-item": "lc-ActionMenuItem-module__action-menu-item___cT70J",
|
|
923
923
|
"action-menu-item__left-node": "lc-ActionMenuItem-module__action-menu-item__left-node___3R-o1",
|
|
@@ -1020,7 +1020,7 @@ const Mc = {
|
|
|
1020
1020
|
"btn--plain-lock-black": "lc-Button-module__btn--plain-lock-black___aL-wC",
|
|
1021
1021
|
"btn--text-lock-black": "lc-Button-module__btn--text-lock-black___fy3zb"
|
|
1022
1022
|
}, ge = "btn", W = e.forwardRef(
|
|
1023
|
-
(v,
|
|
1023
|
+
(v, b) => {
|
|
1024
1024
|
var h = v, {
|
|
1025
1025
|
loading: t = !1,
|
|
1026
1026
|
disabled: a = !1,
|
|
@@ -1035,7 +1035,7 @@ const Mc = {
|
|
|
1035
1035
|
children: s,
|
|
1036
1036
|
href: p,
|
|
1037
1037
|
onClick: m
|
|
1038
|
-
} = h,
|
|
1038
|
+
} = h, f = D(h, [
|
|
1039
1039
|
"loading",
|
|
1040
1040
|
"disabled",
|
|
1041
1041
|
"type",
|
|
@@ -1050,7 +1050,7 @@ const Mc = {
|
|
|
1050
1050
|
"href",
|
|
1051
1051
|
"onClick"
|
|
1052
1052
|
]);
|
|
1053
|
-
const
|
|
1053
|
+
const y = t || a, E = !s && n, $ = ["text", "link", "link-light"].includes(o), w = p ? "a" : "button", C = u(
|
|
1054
1054
|
i,
|
|
1055
1055
|
pe[ge],
|
|
1056
1056
|
pe[`${ge}--${o}`],
|
|
@@ -1058,21 +1058,21 @@ const Mc = {
|
|
|
1058
1058
|
{
|
|
1059
1059
|
[pe[`${ge}--loading`]]: t,
|
|
1060
1060
|
[pe[`${ge}--full-width`]]: _,
|
|
1061
|
-
[pe[`${ge}--with-${c}-icon`]]: n && !
|
|
1062
|
-
[pe[`${ge}--icon-only`]]:
|
|
1063
|
-
[pe[`${ge}--icon-only--bg`]]:
|
|
1064
|
-
[pe[`${ge}--disabled`]]:
|
|
1061
|
+
[pe[`${ge}--with-${c}-icon`]]: n && !E && !$,
|
|
1062
|
+
[pe[`${ge}--icon-only`]]: E,
|
|
1063
|
+
[pe[`${ge}--icon-only--bg`]]: E && $,
|
|
1064
|
+
[pe[`${ge}--disabled`]]: y
|
|
1065
1065
|
}
|
|
1066
1066
|
);
|
|
1067
1067
|
return /* @__PURE__ */ e.createElement(
|
|
1068
1068
|
w,
|
|
1069
1069
|
k(k({
|
|
1070
|
-
ref:
|
|
1070
|
+
ref: b,
|
|
1071
1071
|
className: C,
|
|
1072
|
-
"aria-disabled":
|
|
1072
|
+
"aria-disabled": y,
|
|
1073
1073
|
type: r,
|
|
1074
|
-
disabled:
|
|
1075
|
-
}, !
|
|
1074
|
+
disabled: y
|
|
1075
|
+
}, !y && { href: p, onClick: m }), f),
|
|
1076
1076
|
t && /* @__PURE__ */ e.createElement(
|
|
1077
1077
|
Cr,
|
|
1078
1078
|
k({
|
|
@@ -1136,7 +1136,7 @@ const Co = (t) => {
|
|
|
1136
1136
|
fill: "var(--tooltip-background-basic)"
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
}, $o = "lc-Tooltip-module__tooltip___QOOAr", No = "lc-Tooltip-module__tooltip__content___RuamE", So = "lc-Tooltip-module__tooltip__arrow___Ov1YW", xo = "lc-Tooltip-module__tooltip__interactive___0JawB",
|
|
1139
|
+
}, $o = "lc-Tooltip-module__tooltip___QOOAr", No = "lc-Tooltip-module__tooltip__content___RuamE", So = "lc-Tooltip-module__tooltip__arrow___Ov1YW", xo = "lc-Tooltip-module__tooltip__interactive___0JawB", A = {
|
|
1140
1140
|
tooltip: $o,
|
|
1141
1141
|
tooltip__content: No,
|
|
1142
1142
|
"tooltip--invert": "lc-Tooltip-module__tooltip--invert___PVjhE",
|
|
@@ -1180,12 +1180,12 @@ const Co = (t) => {
|
|
|
1180
1180
|
onOpen: s,
|
|
1181
1181
|
withFadeAnimation: p = !0,
|
|
1182
1182
|
transitionDuration: m = 200,
|
|
1183
|
-
hoverOnDuration:
|
|
1184
|
-
hoverOffDuration:
|
|
1183
|
+
hoverOnDuration: f,
|
|
1184
|
+
hoverOffDuration: b,
|
|
1185
1185
|
transitionDelay: v = 0,
|
|
1186
1186
|
hoverOnDelay: h,
|
|
1187
|
-
hoverOffDelay:
|
|
1188
|
-
triggerOnClick:
|
|
1187
|
+
hoverOffDelay: y,
|
|
1188
|
+
triggerOnClick: E = !1,
|
|
1189
1189
|
triggerOnHover: $ = !0,
|
|
1190
1190
|
offsetMainAxis: w = 8,
|
|
1191
1191
|
offsetCrossAxis: C = 0,
|
|
@@ -1193,26 +1193,26 @@ const Co = (t) => {
|
|
|
1193
1193
|
activationThreshold: N = 0,
|
|
1194
1194
|
useDismissHookProps: S,
|
|
1195
1195
|
useClickHookProps: M,
|
|
1196
|
-
hoverOutDelayTimeout:
|
|
1197
|
-
arrowOffsetY:
|
|
1198
|
-
arrowOffsetX:
|
|
1199
|
-
closeOnTriggerBlur:
|
|
1200
|
-
floatingStrategy:
|
|
1196
|
+
hoverOutDelayTimeout: G = 100,
|
|
1197
|
+
arrowOffsetY: I,
|
|
1198
|
+
arrowOffsetX: O,
|
|
1199
|
+
closeOnTriggerBlur: Y = !1,
|
|
1200
|
+
floatingStrategy: X
|
|
1201
1201
|
}) => {
|
|
1202
|
-
const
|
|
1203
|
-
|
|
1202
|
+
const L = c !== void 0, [U, $e] = e.useState(!1), Ke = e.useRef(null), Ue = L ? c : U, Ne = l || o, $t = Ga(), ft = sa(), Nt = u(
|
|
1203
|
+
A[ya],
|
|
1204
1204
|
a,
|
|
1205
|
-
Ne &&
|
|
1206
|
-
d &&
|
|
1207
|
-
),
|
|
1208
|
-
me !== Ue && (me ? s == null || s() : i == null || i(), !
|
|
1209
|
-
},
|
|
1210
|
-
floatingStyles:
|
|
1211
|
-
refs:
|
|
1212
|
-
context:
|
|
1205
|
+
Ne && A[`${ya}--${Ne}`],
|
|
1206
|
+
d && A[`${ya}--full-space`]
|
|
1207
|
+
), bt = typeof _ == "function", lt = (me) => {
|
|
1208
|
+
me !== Ue && (me ? s == null || s() : i == null || i(), !L && $e(me));
|
|
1209
|
+
}, ht = (me) => p ? me != null ? me : m : 0, St = (me) => me != null ? me : v, {
|
|
1210
|
+
floatingStyles: xt,
|
|
1211
|
+
refs: P,
|
|
1212
|
+
context: V,
|
|
1213
1213
|
middlewareData: { arrow: { x: ue, y: Ye } = {} }
|
|
1214
1214
|
} = da({
|
|
1215
|
-
nodeId:
|
|
1215
|
+
nodeId: ft,
|
|
1216
1216
|
middleware: [
|
|
1217
1217
|
ua({ mainAxis: w, crossAxis: C }),
|
|
1218
1218
|
Er(),
|
|
@@ -1221,26 +1221,26 @@ const Co = (t) => {
|
|
|
1221
1221
|
],
|
|
1222
1222
|
placement: n,
|
|
1223
1223
|
open: Ue,
|
|
1224
|
-
strategy:
|
|
1224
|
+
strategy: X,
|
|
1225
1225
|
onOpenChange: lt,
|
|
1226
1226
|
whileElementsMounted: ma
|
|
1227
|
-
}), qe = X_(
|
|
1227
|
+
}), qe = X_(V, {
|
|
1228
1228
|
move: !1,
|
|
1229
1229
|
restMs: N,
|
|
1230
1230
|
delay: {
|
|
1231
|
-
open:
|
|
1232
|
-
close:
|
|
1231
|
+
open: St(h),
|
|
1232
|
+
close: St(y || G)
|
|
1233
1233
|
},
|
|
1234
1234
|
enabled: $,
|
|
1235
|
-
handleClose:
|
|
1236
|
-
}), Wa = j_(
|
|
1237
|
-
enabled:
|
|
1238
|
-
}, M)), { isMounted: qa, styles: Za } = kr(
|
|
1235
|
+
handleClose: Y ? null : J_()
|
|
1236
|
+
}), Wa = j_(V), Va = ga(V, S), Ka = fa(V, { role: "tooltip" }), Ya = pa(V, k({
|
|
1237
|
+
enabled: E
|
|
1238
|
+
}, M)), { isMounted: qa, styles: Za } = kr(V, {
|
|
1239
1239
|
duration: {
|
|
1240
|
-
open:
|
|
1241
|
-
close:
|
|
1240
|
+
open: ht(f),
|
|
1241
|
+
close: ht(b)
|
|
1242
1242
|
}
|
|
1243
|
-
}), { status: Xa } = Q_(
|
|
1243
|
+
}), { status: Xa } = Q_(V), { getReferenceProps: Ja, getFloatingProps: ja } = ba([
|
|
1244
1244
|
qe,
|
|
1245
1245
|
Wa,
|
|
1246
1246
|
Va,
|
|
@@ -1248,45 +1248,45 @@ const Co = (t) => {
|
|
|
1248
1248
|
Ya
|
|
1249
1249
|
]);
|
|
1250
1250
|
e.useEffect(() => {
|
|
1251
|
-
g &&
|
|
1252
|
-
}, [
|
|
1251
|
+
g && P.setReference(g);
|
|
1252
|
+
}, [P.setReference, g]);
|
|
1253
1253
|
const Gt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1254
1254
|
"div",
|
|
1255
|
-
|
|
1255
|
+
T(k({
|
|
1256
1256
|
"data-testid": "tooltip-trigger",
|
|
1257
|
-
ref:
|
|
1257
|
+
ref: P.setReference
|
|
1258
1258
|
}, Ja()), {
|
|
1259
1259
|
className: r
|
|
1260
1260
|
}),
|
|
1261
|
-
|
|
1262
|
-
), /* @__PURE__ */ e.createElement(ha, { id:
|
|
1261
|
+
bt ? _() : _
|
|
1262
|
+
), /* @__PURE__ */ e.createElement(ha, { id: ft }, qa && /* @__PURE__ */ e.createElement(
|
|
1263
1263
|
"div",
|
|
1264
|
-
|
|
1265
|
-
ref:
|
|
1266
|
-
style: k(k({},
|
|
1267
|
-
className:
|
|
1264
|
+
T(k({
|
|
1265
|
+
ref: P.setFloating,
|
|
1266
|
+
style: k(k({}, xt), Za),
|
|
1267
|
+
className: Nt
|
|
1268
1268
|
}, ja()), {
|
|
1269
1269
|
"data-status": Xa
|
|
1270
1270
|
}),
|
|
1271
|
-
/* @__PURE__ */ e.createElement(B, { as: "div", className:
|
|
1271
|
+
/* @__PURE__ */ e.createElement(B, { as: "div", className: A[`${ya}__content`] }, t),
|
|
1272
1272
|
/* @__PURE__ */ e.createElement(
|
|
1273
1273
|
eo,
|
|
1274
1274
|
k({
|
|
1275
1275
|
ref: Ke,
|
|
1276
|
-
context:
|
|
1276
|
+
context: V,
|
|
1277
1277
|
strokeWidth: 1,
|
|
1278
1278
|
width: 10,
|
|
1279
1279
|
height: 5,
|
|
1280
1280
|
style: k({}, wo(
|
|
1281
|
-
|
|
1282
|
-
|
|
1281
|
+
I,
|
|
1282
|
+
O,
|
|
1283
1283
|
Ye,
|
|
1284
1284
|
ue
|
|
1285
1285
|
))
|
|
1286
1286
|
}, Co(Ne))
|
|
1287
1287
|
)
|
|
1288
1288
|
)));
|
|
1289
|
-
return
|
|
1289
|
+
return $t === null ? /* @__PURE__ */ e.createElement(Ha, null, Gt) : Gt;
|
|
1290
1290
|
}, Kc = ({ text: t }) => /* @__PURE__ */ e.createElement("div", null, t), Wt = "tooltip", Yc = ({
|
|
1291
1291
|
className: t,
|
|
1292
1292
|
header: a,
|
|
@@ -1299,17 +1299,17 @@ const Co = (t) => {
|
|
|
1299
1299
|
{
|
|
1300
1300
|
type: "button",
|
|
1301
1301
|
"aria-label": "Close tooltip",
|
|
1302
|
-
className:
|
|
1302
|
+
className: A[`${Wt}-close`],
|
|
1303
1303
|
onClick: l
|
|
1304
1304
|
},
|
|
1305
1305
|
/* @__PURE__ */ e.createElement(x, { source: Ie, kind: o ? u_(o) : "primary" })
|
|
1306
1306
|
), a && /* @__PURE__ */ e.createElement(
|
|
1307
|
-
|
|
1307
|
+
ne,
|
|
1308
1308
|
{
|
|
1309
1309
|
as: "div",
|
|
1310
1310
|
size: "xs",
|
|
1311
|
-
className: u(
|
|
1312
|
-
[
|
|
1311
|
+
className: u(A[`${Wt}-header`], {
|
|
1312
|
+
[A[`${Wt}-header--info`]]: _
|
|
1313
1313
|
})
|
|
1314
1314
|
},
|
|
1315
1315
|
a
|
|
@@ -1318,8 +1318,8 @@ const Co = (t) => {
|
|
|
1318
1318
|
{
|
|
1319
1319
|
as: "div",
|
|
1320
1320
|
className: u({
|
|
1321
|
-
[
|
|
1322
|
-
[
|
|
1321
|
+
[A[`${Wt}-text`]]: _,
|
|
1322
|
+
[A[`${Wt}-text--info`]]: _
|
|
1323
1323
|
})
|
|
1324
1324
|
},
|
|
1325
1325
|
r
|
|
@@ -1334,33 +1334,33 @@ const Co = (t) => {
|
|
|
1334
1334
|
secondaryButton: c
|
|
1335
1335
|
}) => {
|
|
1336
1336
|
const d = (s) => s === "invert" ? "secondary" : s === "important" ? "plain-lock-black" : "high-contrast", i = (s) => s === "invert" ? "link-inverted" : s === "important" ? "text-lock-black" : "text";
|
|
1337
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
1337
|
+
return /* @__PURE__ */ e.createElement("div", { className: A[`${Ze}__interactive`] }, _ && /* @__PURE__ */ e.createElement(
|
|
1338
1338
|
"button",
|
|
1339
1339
|
{
|
|
1340
1340
|
type: "button",
|
|
1341
1341
|
"aria-label": "Close tooltip",
|
|
1342
|
-
className:
|
|
1342
|
+
className: A[`${Ze}-close`],
|
|
1343
1343
|
onClick: l
|
|
1344
1344
|
},
|
|
1345
1345
|
/* @__PURE__ */ e.createElement(x, { source: Ie, kind: o ? u_(o) : "primary" })
|
|
1346
|
-
), r && /* @__PURE__ */ e.createElement("div", { className:
|
|
1346
|
+
), r && /* @__PURE__ */ e.createElement("div", { className: A[`${Ze}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1347
1347
|
"img",
|
|
1348
1348
|
{
|
|
1349
|
-
className:
|
|
1349
|
+
className: A[`${Ze}-image`],
|
|
1350
1350
|
src: r.src,
|
|
1351
1351
|
alt: r.alt
|
|
1352
1352
|
}
|
|
1353
|
-
)), t && /* @__PURE__ */ e.createElement(
|
|
1353
|
+
)), t && /* @__PURE__ */ e.createElement(ne, { as: "div", size: "xs", className: A[`${Ze}-header`] }, t), /* @__PURE__ */ e.createElement("div", { className: A[`${Ze}-text`] }, a), /* @__PURE__ */ e.createElement(
|
|
1354
1354
|
"div",
|
|
1355
1355
|
{
|
|
1356
1356
|
className: u(
|
|
1357
|
-
|
|
1358
|
-
|
|
1357
|
+
A[`${Ze}-footer`],
|
|
1358
|
+
A[`${Ze}-footer--interactive`]
|
|
1359
1359
|
)
|
|
1360
1360
|
},
|
|
1361
1361
|
/* @__PURE__ */ e.createElement(
|
|
1362
1362
|
W,
|
|
1363
|
-
|
|
1363
|
+
T(k({}, n), {
|
|
1364
1364
|
kind: n.kind || d(o),
|
|
1365
1365
|
onClick: n.handleClick
|
|
1366
1366
|
}),
|
|
@@ -1368,9 +1368,9 @@ const Co = (t) => {
|
|
|
1368
1368
|
),
|
|
1369
1369
|
c && /* @__PURE__ */ e.createElement(
|
|
1370
1370
|
W,
|
|
1371
|
-
|
|
1371
|
+
T(k({}, c), {
|
|
1372
1372
|
className: u(
|
|
1373
|
-
|
|
1373
|
+
A[`${Ze}-footer-secondary`],
|
|
1374
1374
|
c.className
|
|
1375
1375
|
),
|
|
1376
1376
|
kind: c.kind || i(o),
|
|
@@ -1379,7 +1379,7 @@ const Co = (t) => {
|
|
|
1379
1379
|
c.label
|
|
1380
1380
|
)
|
|
1381
1381
|
));
|
|
1382
|
-
},
|
|
1382
|
+
}, ce = "guide-tooltip", Bo = ({
|
|
1383
1383
|
gap: t,
|
|
1384
1384
|
isVisible: a,
|
|
1385
1385
|
slide: r,
|
|
@@ -1418,9 +1418,9 @@ const Co = (t) => {
|
|
|
1418
1418
|
"div",
|
|
1419
1419
|
{
|
|
1420
1420
|
className: u({
|
|
1421
|
-
[
|
|
1422
|
-
[
|
|
1423
|
-
[
|
|
1421
|
+
[A[`${ce}__overlay`]]: !0,
|
|
1422
|
+
[A[`${ce}__overlay--visible`]]: a,
|
|
1423
|
+
[A[`${ce}__overlay--slide`]]: r
|
|
1424
1424
|
}),
|
|
1425
1425
|
style: o
|
|
1426
1426
|
}
|
|
@@ -1428,9 +1428,9 @@ const Co = (t) => {
|
|
|
1428
1428
|
"div",
|
|
1429
1429
|
{
|
|
1430
1430
|
className: u({
|
|
1431
|
-
[
|
|
1432
|
-
[
|
|
1433
|
-
[
|
|
1431
|
+
[A[`${ce}__overlay`]]: !0,
|
|
1432
|
+
[A[`${ce}__overlay--visible`]]: a,
|
|
1433
|
+
[A[`${ce}__overlay--slide`]]: r
|
|
1434
1434
|
}),
|
|
1435
1435
|
style: n
|
|
1436
1436
|
}
|
|
@@ -1438,9 +1438,9 @@ const Co = (t) => {
|
|
|
1438
1438
|
"div",
|
|
1439
1439
|
{
|
|
1440
1440
|
className: u({
|
|
1441
|
-
[
|
|
1442
|
-
[
|
|
1443
|
-
[
|
|
1441
|
+
[A[`${ce}__overlay`]]: !0,
|
|
1442
|
+
[A[`${ce}__overlay--visible`]]: a,
|
|
1443
|
+
[A[`${ce}__overlay--slide`]]: r
|
|
1444
1444
|
}),
|
|
1445
1445
|
style: l
|
|
1446
1446
|
}
|
|
@@ -1448,9 +1448,9 @@ const Co = (t) => {
|
|
|
1448
1448
|
"div",
|
|
1449
1449
|
{
|
|
1450
1450
|
className: u({
|
|
1451
|
-
[
|
|
1452
|
-
[
|
|
1453
|
-
[
|
|
1451
|
+
[A[`${ce}__overlay`]]: !0,
|
|
1452
|
+
[A[`${ce}__overlay--visible`]]: a,
|
|
1453
|
+
[A[`${ce}__overlay--slide`]]: r
|
|
1454
1454
|
}),
|
|
1455
1455
|
style: c
|
|
1456
1456
|
}
|
|
@@ -1458,9 +1458,9 @@ const Co = (t) => {
|
|
|
1458
1458
|
"div",
|
|
1459
1459
|
{
|
|
1460
1460
|
className: u({
|
|
1461
|
-
[
|
|
1462
|
-
[
|
|
1463
|
-
[
|
|
1461
|
+
[A[`${ce}__overlay`]]: !0,
|
|
1462
|
+
[A[`${ce}__overlay--visible`]]: a,
|
|
1463
|
+
[A[`${ce}__overlay--slide`]]: r
|
|
1464
1464
|
}),
|
|
1465
1465
|
style: d
|
|
1466
1466
|
}
|
|
@@ -1538,15 +1538,15 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1538
1538
|
}
|
|
1539
1539
|
), /* @__PURE__ */ e.createElement(
|
|
1540
1540
|
Lt,
|
|
1541
|
-
|
|
1541
|
+
T(k({}, t), {
|
|
1542
1542
|
triggerRenderer: /* @__PURE__ */ e.createElement(e.Fragment, null),
|
|
1543
1543
|
referenceElement: {
|
|
1544
1544
|
getBoundingClientRect: () => c,
|
|
1545
1545
|
contextElement: l
|
|
1546
1546
|
},
|
|
1547
1547
|
className: u({
|
|
1548
|
-
[
|
|
1549
|
-
[
|
|
1548
|
+
[A[Mr]]: !0,
|
|
1549
|
+
[A[`${Mr}--slide`]]: i,
|
|
1550
1550
|
className: a
|
|
1551
1551
|
})
|
|
1552
1552
|
}),
|
|
@@ -1556,15 +1556,15 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1556
1556
|
title: t,
|
|
1557
1557
|
description: a,
|
|
1558
1558
|
children: r
|
|
1559
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
1559
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: A[Vt] }, /* @__PURE__ */ e.createElement("div", { className: A[`${Vt}__heading`] }, /* @__PURE__ */ e.createElement(B, { as: "div", className: A[`${Vt}__heading__title`] }, t), /* @__PURE__ */ e.createElement(
|
|
1560
1560
|
B,
|
|
1561
1561
|
{
|
|
1562
1562
|
as: "div",
|
|
1563
1563
|
size: "xs",
|
|
1564
|
-
className:
|
|
1564
|
+
className: A[`${Vt}__heading__description`]
|
|
1565
1565
|
},
|
|
1566
1566
|
a
|
|
1567
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
1567
|
+
)), /* @__PURE__ */ e.createElement("div", { className: A[`${Vt}__content`] }, /* @__PURE__ */ e.createElement(B, { as: "div" }, r))), q = {
|
|
1568
1568
|
"action-bar": "lc-ActionBar-module__action-bar___TJitF",
|
|
1569
1569
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___uhoQA",
|
|
1570
1570
|
"action-bar__items--scroll": "lc-ActionBar-module__action-bar__items--scroll___f--dN",
|
|
@@ -1590,14 +1590,14 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1590
1590
|
"action-bar__items--with-menu": "lc-ActionBar-module__action-bar__items--with-menu___F6phI",
|
|
1591
1591
|
"action-bar__items__button": "lc-ActionBar-module__action-bar__items__button___Vdjl7",
|
|
1592
1592
|
"action-bar__items__button--active": "lc-ActionBar-module__action-bar__items__button--active___PFLdm"
|
|
1593
|
-
}, m_ = "action-bar__items",
|
|
1593
|
+
}, m_ = "action-bar__items", Bt = `${m_}__button-wrapper`, To = ({
|
|
1594
1594
|
option: t,
|
|
1595
1595
|
isActive: a,
|
|
1596
1596
|
vertical: r
|
|
1597
1597
|
}) => {
|
|
1598
|
-
const _ = u(q[
|
|
1599
|
-
[q[`${
|
|
1600
|
-
[q[`${
|
|
1598
|
+
const _ = u(q[Bt], {
|
|
1599
|
+
[q[`${Bt}--active`]]: a,
|
|
1600
|
+
[q[`${Bt}--vertical`]]: r
|
|
1601
1601
|
}), o = /* @__PURE__ */ e.createElement(
|
|
1602
1602
|
W,
|
|
1603
1603
|
{
|
|
@@ -1607,9 +1607,9 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1607
1607
|
kind: "plain",
|
|
1608
1608
|
onClick: t.onClick,
|
|
1609
1609
|
icon: t.element,
|
|
1610
|
-
className: u(q[`${
|
|
1611
|
-
[q[`${
|
|
1612
|
-
[q[`${
|
|
1610
|
+
className: u(q[`${Bt}__button`], {
|
|
1611
|
+
[q[`${Bt}__button--with-vertical-divider`]]: r && t.withDivider,
|
|
1612
|
+
[q[`${Bt}__button--with-divider`]]: !r && t.withDivider
|
|
1613
1613
|
})
|
|
1614
1614
|
}
|
|
1615
1615
|
);
|
|
@@ -1648,16 +1648,16 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1648
1648
|
}) => {
|
|
1649
1649
|
const [c, d] = e.useState(
|
|
1650
1650
|
_.length
|
|
1651
|
-
), [i, s] = e.useState([]), [p, m] = e.useState(!1),
|
|
1651
|
+
), [i, s] = e.useState([]), [p, m] = e.useState(!1), f = r === "scroll", b = u(
|
|
1652
1652
|
q[wa],
|
|
1653
1653
|
t,
|
|
1654
1654
|
l && q[`${wa}--vertical`]
|
|
1655
|
-
), v = !
|
|
1655
|
+
), v = !f && i.length !== 0;
|
|
1656
1656
|
e.useEffect(() => {
|
|
1657
|
-
|
|
1657
|
+
f || (_.length > c ? s(_.slice(c, _.length)) : s([]));
|
|
1658
1658
|
}, [_, c]), e.useEffect(() => {
|
|
1659
|
-
const
|
|
1660
|
-
if (!
|
|
1659
|
+
const E = !!window.ResizeObserver;
|
|
1660
|
+
if (!f && E) {
|
|
1661
1661
|
const $ = new ResizeObserver((w) => {
|
|
1662
1662
|
const { width: C, height: g } = w[0].contentRect, N = l ? g : C, S = i.length > 0 ? 60 : 0, M = Math.floor(
|
|
1663
1663
|
(N - S) / Do
|
|
@@ -1666,9 +1666,9 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1666
1666
|
});
|
|
1667
1667
|
return $.observe(document.querySelector(`#${a}`)), () => $.disconnect();
|
|
1668
1668
|
}
|
|
1669
|
-
}, [i,
|
|
1669
|
+
}, [i, f, c]);
|
|
1670
1670
|
const h = e.useCallback(() => i.reduce(
|
|
1671
|
-
(
|
|
1671
|
+
(E, $) => {
|
|
1672
1672
|
if (!$.hideInMenu) {
|
|
1673
1673
|
const w = {
|
|
1674
1674
|
key: $.key,
|
|
@@ -1676,24 +1676,24 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1676
1676
|
withDivider: $.withDivider,
|
|
1677
1677
|
onClick: $.onClick
|
|
1678
1678
|
};
|
|
1679
|
-
|
|
1679
|
+
E.push(w);
|
|
1680
1680
|
}
|
|
1681
|
-
return
|
|
1681
|
+
return E;
|
|
1682
1682
|
},
|
|
1683
1683
|
[]
|
|
1684
|
-
), [i]),
|
|
1685
|
-
return /* @__PURE__ */ e.createElement("div", { id: a, className:
|
|
1684
|
+
), [i]), y = i.find((E) => E.key === o);
|
|
1685
|
+
return /* @__PURE__ */ e.createElement("div", { id: a, className: b }, /* @__PURE__ */ e.createElement(
|
|
1686
1686
|
"div",
|
|
1687
1687
|
{
|
|
1688
1688
|
className: u(q[`${wa}__items`], {
|
|
1689
|
-
[q[`${wa}__items--scroll`]]:
|
|
1689
|
+
[q[`${wa}__items--scroll`]]: f
|
|
1690
1690
|
})
|
|
1691
1691
|
},
|
|
1692
|
-
_.slice(0, c).map((
|
|
1692
|
+
_.slice(0, c).map((E) => /* @__PURE__ */ e.createElement(
|
|
1693
1693
|
To,
|
|
1694
1694
|
{
|
|
1695
|
-
option:
|
|
1696
|
-
isActive:
|
|
1695
|
+
option: E,
|
|
1696
|
+
isActive: E.key === o,
|
|
1697
1697
|
vertical: l
|
|
1698
1698
|
}
|
|
1699
1699
|
))
|
|
@@ -1702,7 +1702,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1702
1702
|
{
|
|
1703
1703
|
className: u(
|
|
1704
1704
|
q[Xe],
|
|
1705
|
-
|
|
1705
|
+
y && q[`${Xe}--active`],
|
|
1706
1706
|
l && q[`${Xe}--vertical`]
|
|
1707
1707
|
)
|
|
1708
1708
|
},
|
|
@@ -1723,7 +1723,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1723
1723
|
{
|
|
1724
1724
|
className: u(
|
|
1725
1725
|
q[`${Xe}__button`],
|
|
1726
|
-
|
|
1726
|
+
y && q[`${Xe}__button--active`]
|
|
1727
1727
|
),
|
|
1728
1728
|
kind: "plain",
|
|
1729
1729
|
icon: /* @__PURE__ */ e.createElement(
|
|
@@ -1739,27 +1739,27 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1739
1739
|
),
|
|
1740
1740
|
iconPosition: "right"
|
|
1741
1741
|
},
|
|
1742
|
-
|
|
1742
|
+
y && /* @__PURE__ */ e.createElement(
|
|
1743
1743
|
"div",
|
|
1744
1744
|
{
|
|
1745
1745
|
className: u(
|
|
1746
1746
|
q[`${Xe}__button__with-item`]
|
|
1747
1747
|
)
|
|
1748
1748
|
},
|
|
1749
|
-
|
|
1749
|
+
y.element
|
|
1750
1750
|
)
|
|
1751
1751
|
),
|
|
1752
1752
|
footer: n
|
|
1753
1753
|
}
|
|
1754
1754
|
)
|
|
1755
1755
|
));
|
|
1756
|
-
},
|
|
1756
|
+
}, It = {
|
|
1757
1757
|
"main-wrapper": "lc-ActionCard-module__main-wrapper___Mt65R",
|
|
1758
1758
|
"action-card": "lc-ActionCard-module__action-card___lSEBY",
|
|
1759
1759
|
"action-card__column": "lc-ActionCard-module__action-card__column___K7tyh",
|
|
1760
1760
|
"action-card__column--first": "lc-ActionCard-module__action-card__column--first___9XE58",
|
|
1761
1761
|
"action-card__column--second": "lc-ActionCard-module__action-card__column--second___X1UC-"
|
|
1762
|
-
},
|
|
1762
|
+
}, vt = "action-card", jc = ({
|
|
1763
1763
|
className: t,
|
|
1764
1764
|
children: a,
|
|
1765
1765
|
secondColumn: r,
|
|
@@ -1767,12 +1767,12 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1767
1767
|
secondColumnClassName: o,
|
|
1768
1768
|
onClick: l
|
|
1769
1769
|
}) => {
|
|
1770
|
-
const n = u(
|
|
1770
|
+
const n = u(It[vt], t), c = (i) => {
|
|
1771
1771
|
i.currentTarget === document.activeElement && (l == null || l());
|
|
1772
1772
|
}, d = (i) => {
|
|
1773
1773
|
i.currentTarget === document.activeElement && (i.key === "Enter" || i.key === " " || i.key === "Spacebar" || i.key === "Space") && (i.preventDefault(), l == null || l());
|
|
1774
1774
|
};
|
|
1775
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
1775
|
+
return /* @__PURE__ */ e.createElement("div", { className: It["main-wrapper"] }, /* @__PURE__ */ e.createElement(
|
|
1776
1776
|
"div",
|
|
1777
1777
|
{
|
|
1778
1778
|
role: "button",
|
|
@@ -1785,10 +1785,10 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1785
1785
|
/* @__PURE__ */ e.createElement(
|
|
1786
1786
|
"div",
|
|
1787
1787
|
{
|
|
1788
|
-
"data-testid": `${
|
|
1788
|
+
"data-testid": `${vt}-first-column`,
|
|
1789
1789
|
className: u(
|
|
1790
|
-
|
|
1791
|
-
|
|
1790
|
+
It[`${vt}__column`],
|
|
1791
|
+
It[`${vt}__column--first`],
|
|
1792
1792
|
_
|
|
1793
1793
|
)
|
|
1794
1794
|
},
|
|
@@ -1797,19 +1797,19 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1797
1797
|
r && /* @__PURE__ */ e.createElement(
|
|
1798
1798
|
"div",
|
|
1799
1799
|
{
|
|
1800
|
-
"data-testid": `${
|
|
1800
|
+
"data-testid": `${vt}-second-column`,
|
|
1801
1801
|
className: u(
|
|
1802
|
-
|
|
1803
|
-
|
|
1802
|
+
It[`${vt}__column`],
|
|
1803
|
+
It[`${vt}__column--second`],
|
|
1804
1804
|
o
|
|
1805
1805
|
)
|
|
1806
1806
|
},
|
|
1807
1807
|
r
|
|
1808
1808
|
)
|
|
1809
1809
|
));
|
|
1810
|
-
},
|
|
1811
|
-
alert:
|
|
1812
|
-
alert__icon:
|
|
1810
|
+
}, Po = "lc-Alert-module__alert___HBTns", Ao = "lc-Alert-module__alert__icon___8TaAH", Fo = "lc-Alert-module__alert__content___9nZdf", Ro = "lc-Alert-module__alert__content__wrapper___aLBkP", Mo = "lc-Alert-module__alert__content__wrapper__text___HDMbR", Lo = "lc-Alert-module__alert__content__wrapper__cta___9L-oE", Oo = "lc-Alert-module__alert__content__wrapper__cta__link___D9Igz", Se = {
|
|
1811
|
+
alert: Po,
|
|
1812
|
+
alert__icon: Ao,
|
|
1813
1813
|
alert__content: Fo,
|
|
1814
1814
|
alert__content__wrapper: Ro,
|
|
1815
1815
|
alert__content__wrapper__text: Mo,
|
|
@@ -1865,13 +1865,13 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1865
1865
|
a
|
|
1866
1866
|
);
|
|
1867
1867
|
return e.useEffect(() => {
|
|
1868
|
-
const
|
|
1869
|
-
|
|
1868
|
+
const f = () => i.current && i.current.offsetWidth <= 400 ? p("small") : i.current && i.current.offsetWidth > 400 && i.current.offsetWidth <= 800 ? p("medium") : p("large"), b = n_(() => {
|
|
1869
|
+
f();
|
|
1870
1870
|
}, 500);
|
|
1871
|
-
return window.addEventListener("resize",
|
|
1871
|
+
return window.addEventListener("resize", b), f(), () => window.removeEventListener("resize", b);
|
|
1872
1872
|
}), /* @__PURE__ */ e.createElement("div", k({ ref: i, className: m }, n), /* @__PURE__ */ e.createElement("div", { className: Se[`${xe}__content`] }, /* @__PURE__ */ e.createElement("div", { className: Se[`${xe}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1873
1873
|
x,
|
|
1874
|
-
|
|
1874
|
+
T(k({}, Go[o]), {
|
|
1875
1875
|
size: "large",
|
|
1876
1876
|
className: Se[`${xe}__icon`]
|
|
1877
1877
|
})
|
|
@@ -1952,7 +1952,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1952
1952
|
topBarClassName: n,
|
|
1953
1953
|
sideNavigationContainerClassName: c,
|
|
1954
1954
|
contentClassName: d
|
|
1955
|
-
} = t, i = u(Je[p_], r), { isSideNavigationVisible: s } = no(), p = e.useRef(null), { isOpen: m, isMounted:
|
|
1955
|
+
} = t, i = u(Je[p_], r), { isSideNavigationVisible: s } = no(), p = e.useRef(null), { isOpen: m, isMounted: f } = $r({
|
|
1956
1956
|
isVisible: s,
|
|
1957
1957
|
elementRef: p
|
|
1958
1958
|
});
|
|
@@ -1989,7 +1989,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
)
|
|
1991
1991
|
},
|
|
1992
|
-
|
|
1992
|
+
f && o
|
|
1993
1993
|
),
|
|
1994
1994
|
/* @__PURE__ */ e.createElement(
|
|
1995
1995
|
"div",
|
|
@@ -2002,14 +2002,14 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
2002
2002
|
a
|
|
2003
2003
|
)
|
|
2004
2004
|
)));
|
|
2005
|
-
}, ei = (t) => /* @__PURE__ */ e.createElement(co, null, /* @__PURE__ */ e.createElement(Uo, k({}, t))),
|
|
2005
|
+
}, ei = (t) => /* @__PURE__ */ e.createElement(co, null, /* @__PURE__ */ e.createElement(Uo, k({}, t))), Tt = {
|
|
2006
2006
|
"side-navigation": "lc-SideNavigation-module__side-navigation___97Smn",
|
|
2007
2007
|
"side-navigation__header": "lc-SideNavigation-module__side-navigation__header___jKhiq",
|
|
2008
2008
|
"side-navigation__header__title": "lc-SideNavigation-module__side-navigation__header__title___ZpMAv",
|
|
2009
2009
|
"side-navigation__footer": "lc-SideNavigation-module__side-navigation__footer___-fWZ1",
|
|
2010
2010
|
"side-navigation__nav-wrapper": "lc-SideNavigation-module__side-navigation__nav-wrapper___3yenW",
|
|
2011
2011
|
"side-navigation__nav-wrapper--no-gaps": "lc-SideNavigation-module__side-navigation__nav-wrapper--no-gaps___MFRCx"
|
|
2012
|
-
},
|
|
2012
|
+
}, Dt = "side-navigation", ti = ({
|
|
2013
2013
|
children: t,
|
|
2014
2014
|
className: a,
|
|
2015
2015
|
title: r,
|
|
@@ -2018,24 +2018,24 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
2018
2018
|
noGaps: l,
|
|
2019
2019
|
rightNode: n
|
|
2020
2020
|
}) => {
|
|
2021
|
-
const c = _ || /* @__PURE__ */ e.createElement("div", { className:
|
|
2021
|
+
const c = _ || /* @__PURE__ */ e.createElement("div", { className: Tt[`${Dt}__header`] }, /* @__PURE__ */ e.createElement(ne, { size: "sm", className: Tt[`${Dt}__header__title`] }, r), n);
|
|
2022
2022
|
return /* @__PURE__ */ e.createElement(
|
|
2023
2023
|
"div",
|
|
2024
2024
|
{
|
|
2025
2025
|
"data-testid": "side-navigation",
|
|
2026
|
-
className: u(
|
|
2026
|
+
className: u(Tt[Dt], a)
|
|
2027
2027
|
},
|
|
2028
2028
|
c,
|
|
2029
2029
|
/* @__PURE__ */ e.createElement(
|
|
2030
2030
|
"div",
|
|
2031
2031
|
{
|
|
2032
|
-
className: u(
|
|
2033
|
-
[
|
|
2032
|
+
className: u(Tt[`${Dt}__nav-wrapper`], {
|
|
2033
|
+
[Tt[`${Dt}__nav-wrapper--no-gaps`]]: l
|
|
2034
2034
|
})
|
|
2035
2035
|
},
|
|
2036
2036
|
t
|
|
2037
2037
|
),
|
|
2038
|
-
o && /* @__PURE__ */ e.createElement("div", { className:
|
|
2038
|
+
o && /* @__PURE__ */ e.createElement("div", { className: Tt[`${Dt}__footer`] }, o)
|
|
2039
2039
|
);
|
|
2040
2040
|
};
|
|
2041
2041
|
function Fa() {
|
|
@@ -2053,7 +2053,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2053
2053
|
"side-navigation-item__label--active": "lc-SideNavigationItem-module__side-navigation-item__label--active___lHzUo",
|
|
2054
2054
|
"side-navigation-item__custom-label--active": "lc-SideNavigationItem-module__side-navigation-item__custom-label--active___js4w6"
|
|
2055
2055
|
}, De = "side-navigation-item", Vo = (m) => {
|
|
2056
|
-
var
|
|
2056
|
+
var f = m, {
|
|
2057
2057
|
leftNode: t,
|
|
2058
2058
|
shouldKeepIconSpace: a = !0,
|
|
2059
2059
|
url: r,
|
|
@@ -2065,7 +2065,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2065
2065
|
isMainEntry: d,
|
|
2066
2066
|
onItemHover: i,
|
|
2067
2067
|
isIconHidden: s
|
|
2068
|
-
} =
|
|
2068
|
+
} = f, p = D(f, [
|
|
2069
2069
|
"leftNode",
|
|
2070
2070
|
"shouldKeepIconSpace",
|
|
2071
2071
|
"url",
|
|
@@ -2078,10 +2078,10 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2078
2078
|
"onItemHover",
|
|
2079
2079
|
"isIconHidden"
|
|
2080
2080
|
]);
|
|
2081
|
-
const
|
|
2082
|
-
|
|
2083
|
-
}, h = (
|
|
2084
|
-
|
|
2081
|
+
const b = typeof _ == "string", v = (y) => {
|
|
2082
|
+
y.preventDefault(), n == null || n();
|
|
2083
|
+
}, h = (y) => {
|
|
2084
|
+
y.key === "Enter" && (y.preventDefault(), n == null || n());
|
|
2085
2085
|
};
|
|
2086
2086
|
return /* @__PURE__ */ e.createElement(
|
|
2087
2087
|
"li",
|
|
@@ -2115,7 +2115,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2115
2115
|
},
|
|
2116
2116
|
t
|
|
2117
2117
|
),
|
|
2118
|
-
|
|
2118
|
+
b ? /* @__PURE__ */ e.createElement(
|
|
2119
2119
|
B,
|
|
2120
2120
|
{
|
|
2121
2121
|
bold: c || d,
|
|
@@ -2155,14 +2155,14 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2155
2155
|
shouldOpenOnInit: n = !1,
|
|
2156
2156
|
shouldOpenOnActive: c = !1
|
|
2157
2157
|
}) => {
|
|
2158
|
-
const [d, i] = e.useState(!1), [s, p] = e.useState(0), m = e.useRef(!1),
|
|
2158
|
+
const [d, i] = e.useState(!1), [s, p] = e.useState(0), m = e.useRef(!1), f = e.useRef(null), { isOpen: b, isMounted: v, setIsOpen: h } = $r({
|
|
2159
2159
|
isVisible: !o || n,
|
|
2160
|
-
elementRef:
|
|
2161
|
-
}),
|
|
2160
|
+
elementRef: f
|
|
2161
|
+
}), y = typeof a == "function" ? a(b) : a, E = typeof t == "function" ? t(b) : t, $ = () => h(!0), w = () => {
|
|
2162
2162
|
o && h((g) => !g);
|
|
2163
2163
|
}, C = (g) => {
|
|
2164
2164
|
const N = g == null ? void 0 : g.getElementsByTagName("li"), S = N != null && N.length ? [...N].some(
|
|
2165
|
-
(
|
|
2165
|
+
(G) => G.getAttribute("data-active") === "true"
|
|
2166
2166
|
) : !1;
|
|
2167
2167
|
i(S);
|
|
2168
2168
|
const M = ((N == null ? void 0 : N.length) || 0) * Ko;
|
|
@@ -2177,16 +2177,16 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2177
2177
|
"div",
|
|
2178
2178
|
{
|
|
2179
2179
|
className: u(ct[`${it}__chevron`], {
|
|
2180
|
-
[ct[`${it}__chevron--active`]]:
|
|
2180
|
+
[ct[`${it}__chevron--active`]]: b
|
|
2181
2181
|
})
|
|
2182
2182
|
},
|
|
2183
2183
|
/* @__PURE__ */ e.createElement(x, { source: La, size: "small" })
|
|
2184
2184
|
),
|
|
2185
|
-
label: /* @__PURE__ */ e.createElement(B, { className: ct[`${it}__label`], bold: !0 },
|
|
2185
|
+
label: /* @__PURE__ */ e.createElement(B, { className: ct[`${it}__label`], bold: !0 }, E),
|
|
2186
2186
|
isMainEntry: !0,
|
|
2187
2187
|
onClick: w,
|
|
2188
2188
|
onItemHover: l,
|
|
2189
|
-
rightNode:
|
|
2189
|
+
rightNode: y
|
|
2190
2190
|
}
|
|
2191
2191
|
) : /* @__PURE__ */ e.createElement(
|
|
2192
2192
|
B,
|
|
@@ -2195,18 +2195,18 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2195
2195
|
className: ct[`${it}__simple-label`],
|
|
2196
2196
|
onMouseEnter: l || Fa
|
|
2197
2197
|
},
|
|
2198
|
-
|
|
2198
|
+
E
|
|
2199
2199
|
), /* @__PURE__ */ e.createElement(
|
|
2200
2200
|
"div",
|
|
2201
2201
|
{
|
|
2202
|
-
ref:
|
|
2202
|
+
ref: f,
|
|
2203
2203
|
className: u([
|
|
2204
2204
|
ct[`${it}__list-wrapper`],
|
|
2205
2205
|
{
|
|
2206
|
-
[ct[`${it}__list-wrapper--expanded`]]:
|
|
2206
|
+
[ct[`${it}__list-wrapper--expanded`]]: b
|
|
2207
2207
|
}
|
|
2208
2208
|
]),
|
|
2209
|
-
style: { maxHeight:
|
|
2209
|
+
style: { maxHeight: b ? s : 0 }
|
|
2210
2210
|
},
|
|
2211
2211
|
v && /* @__PURE__ */ e.createElement(
|
|
2212
2212
|
"ul",
|
|
@@ -2283,17 +2283,19 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2283
2283
|
dot: /* @__PURE__ */ e.createElement("span", { "data-testid": "badge-dot", className: Ca[`${$a}__dot`] })
|
|
2284
2284
|
}[l];
|
|
2285
2285
|
return /* @__PURE__ */ e.createElement("span", k({ className: i }, n), s);
|
|
2286
|
-
},
|
|
2286
|
+
}, pt = {
|
|
2287
2287
|
"navigation-item": "lc-NavigationItem-module__navigation-item___uyE9V",
|
|
2288
|
+
"navigation-item--disabled": "lc-NavigationItem-module__navigation-item--disabled___0oA-E",
|
|
2288
2289
|
"navigation-item__badge": "lc-NavigationItem-module__navigation-item__badge___cn6xZ",
|
|
2289
2290
|
"navigation-item__button": "lc-NavigationItem-module__navigation-item__button___vtqjz",
|
|
2291
|
+
"navigation-item__button--disabled": "lc-NavigationItem-module__navigation-item__button--disabled___BRd-i",
|
|
2290
2292
|
"navigation-item__button--active": "lc-NavigationItem-module__navigation-item__button--active___NiA3H",
|
|
2291
2293
|
"navigation-item__button--opacity": "lc-NavigationItem-module__navigation-item__button--opacity___sgLDT"
|
|
2292
|
-
},
|
|
2294
|
+
}, gt = "navigation-item", Xo = (t, a) => typeof t == "number" ? /* @__PURE__ */ e.createElement(
|
|
2293
2295
|
Ra,
|
|
2294
2296
|
{
|
|
2295
2297
|
"data-testid": `${a}-badge-count`,
|
|
2296
|
-
className:
|
|
2298
|
+
className: pt[`${gt}__badge`],
|
|
2297
2299
|
size: "compact",
|
|
2298
2300
|
count: t
|
|
2299
2301
|
}
|
|
@@ -2301,7 +2303,7 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2301
2303
|
Ra,
|
|
2302
2304
|
{
|
|
2303
2305
|
"data-testid": `${a}-badge`,
|
|
2304
|
-
className:
|
|
2306
|
+
className: pt[`${gt}__badge`],
|
|
2305
2307
|
size: "compact",
|
|
2306
2308
|
type: t
|
|
2307
2309
|
}
|
|
@@ -2311,8 +2313,8 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2311
2313
|
label: a,
|
|
2312
2314
|
icon: r,
|
|
2313
2315
|
url: _,
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
+
disableOpacity: o,
|
|
2317
|
+
disabled: l = !1,
|
|
2316
2318
|
badge: n,
|
|
2317
2319
|
isActive: c,
|
|
2318
2320
|
onClick: d,
|
|
@@ -2322,42 +2324,62 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2322
2324
|
"label",
|
|
2323
2325
|
"icon",
|
|
2324
2326
|
"url",
|
|
2325
|
-
"disableTooltip",
|
|
2326
2327
|
"disableOpacity",
|
|
2328
|
+
"disabled",
|
|
2327
2329
|
"badge",
|
|
2328
2330
|
"isActive",
|
|
2329
2331
|
"onClick",
|
|
2330
2332
|
"className"
|
|
2331
2333
|
]);
|
|
2332
|
-
return /* @__PURE__ */ e.createElement(
|
|
2333
|
-
|
|
2334
|
+
return /* @__PURE__ */ e.createElement(
|
|
2335
|
+
"li",
|
|
2334
2336
|
{
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
k({
|
|
2344
|
-
"aria-label": a,
|
|
2345
|
-
className: u(
|
|
2346
|
-
Pt[`${Ft}__button`],
|
|
2347
|
-
{
|
|
2348
|
-
[Pt[`${Ft}__button--active`]]: c,
|
|
2349
|
-
[Pt[`${Ft}__button--opacity`]]: l
|
|
2350
|
-
},
|
|
2351
|
-
"lc-dark-theme"
|
|
2352
|
-
),
|
|
2353
|
-
onClick: (b) => d(b, t),
|
|
2354
|
-
href: _
|
|
2355
|
-
}, s),
|
|
2356
|
-
r
|
|
2357
|
-
), n && Xo(n, t))
|
|
2337
|
+
key: t,
|
|
2338
|
+
className: u(
|
|
2339
|
+
pt[gt],
|
|
2340
|
+
{
|
|
2341
|
+
[pt[`${gt}--disabled`]]: l
|
|
2342
|
+
},
|
|
2343
|
+
i
|
|
2344
|
+
)
|
|
2358
2345
|
},
|
|
2359
|
-
|
|
2360
|
-
|
|
2346
|
+
/* @__PURE__ */ e.createElement(
|
|
2347
|
+
Lt,
|
|
2348
|
+
{
|
|
2349
|
+
floatingStrategy: "fixed",
|
|
2350
|
+
placement: "right",
|
|
2351
|
+
kind: "invert",
|
|
2352
|
+
isVisible: !a || l ? !1 : void 0,
|
|
2353
|
+
offsetMainAxis: 12,
|
|
2354
|
+
hoverOnDelay: 400,
|
|
2355
|
+
useClickHookProps: { ignoreMouse: !0 },
|
|
2356
|
+
useDismissHookProps: {
|
|
2357
|
+
referencePress: !0,
|
|
2358
|
+
referencePressEvent: "click"
|
|
2359
|
+
},
|
|
2360
|
+
triggerRenderer: /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2361
|
+
"a",
|
|
2362
|
+
k({
|
|
2363
|
+
tabIndex: l ? -1 : 0,
|
|
2364
|
+
"aria-label": a,
|
|
2365
|
+
className: u(
|
|
2366
|
+
pt[`${gt}__button`],
|
|
2367
|
+
{
|
|
2368
|
+
[pt[`${gt}__button--active`]]: c,
|
|
2369
|
+
[pt[`${gt}__button--opacity`]]: o,
|
|
2370
|
+
[pt[`${gt}__button--disabled`]]: l
|
|
2371
|
+
},
|
|
2372
|
+
"lc-dark-theme"
|
|
2373
|
+
),
|
|
2374
|
+
onClick: (f) => !l && d(f, t),
|
|
2375
|
+
href: _
|
|
2376
|
+
}, s),
|
|
2377
|
+
r
|
|
2378
|
+
), n && Xo(n, t))
|
|
2379
|
+
},
|
|
2380
|
+
a
|
|
2381
|
+
)
|
|
2382
|
+
);
|
|
2361
2383
|
}, Jo = "lc-Navigation-module__navigation___x9vC9", jo = {
|
|
2362
2384
|
navigation: Jo
|
|
2363
2385
|
}, Qo = "navigation", oi = (_) => {
|
|
@@ -2410,14 +2432,14 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2410
2432
|
const c = e.useRef(null), { isMounted: d, isOpen: i } = $r({
|
|
2411
2433
|
isVisible: n,
|
|
2412
2434
|
elementRef: c
|
|
2413
|
-
}), s = window.matchMedia("(max-width: 768px)").matches, p = a === "warning" ? "link-inverted" : "text", m = a === "warning" ? "secondary" : "high-contrast",
|
|
2435
|
+
}), s = window.matchMedia("(max-width: 768px)").matches, p = a === "warning" ? "link-inverted" : "text", m = a === "warning" ? "secondary" : "high-contrast", f = o || l ? /* @__PURE__ */ e.createElement("div", { className: Ve[`${st}__cta-wrapper`] }, o && /* @__PURE__ */ e.createElement(
|
|
2414
2436
|
W,
|
|
2415
2437
|
k({
|
|
2416
2438
|
size: "compact",
|
|
2417
2439
|
kind: s ? p : m
|
|
2418
2440
|
}, o),
|
|
2419
2441
|
o.label
|
|
2420
|
-
), l && /* @__PURE__ */ e.createElement(W, k({ size: "compact", kind: p }, l), l.label)) : null,
|
|
2442
|
+
), l && /* @__PURE__ */ e.createElement(W, k({ size: "compact", kind: p }, l), l.label)) : null, b = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Ve[`${st}__children-wrapper`] }, _, f), r && /* @__PURE__ */ e.createElement(
|
|
2421
2443
|
"button",
|
|
2422
2444
|
k({
|
|
2423
2445
|
className: Ve[`${st}__close-button`]
|
|
@@ -2451,7 +2473,7 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2451
2473
|
t
|
|
2452
2474
|
)
|
|
2453
2475
|
},
|
|
2454
|
-
|
|
2476
|
+
b
|
|
2455
2477
|
)
|
|
2456
2478
|
));
|
|
2457
2479
|
};
|
|
@@ -2534,7 +2556,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2534
2556
|
"avatar--xlarge": "lc-Avatar-module__avatar--xlarge___zwgeW",
|
|
2535
2557
|
"avatar--xxlarge": "lc-Avatar-module__avatar--xxlarge___Ur0ul",
|
|
2536
2558
|
"avatar--xxxlarge": "lc-Avatar-module__avatar--xxxlarge___Z-54U"
|
|
2537
|
-
},
|
|
2559
|
+
}, _e = "avatar", il = (p) => {
|
|
2538
2560
|
var m = p, {
|
|
2539
2561
|
alt: t,
|
|
2540
2562
|
className: a,
|
|
@@ -2558,60 +2580,60 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2558
2580
|
"type",
|
|
2559
2581
|
"withRim"
|
|
2560
2582
|
]);
|
|
2561
|
-
const
|
|
2562
|
-
[Ee[
|
|
2563
|
-
[Ee[`${
|
|
2564
|
-
[Ee[`${
|
|
2565
|
-
[Ee[`${
|
|
2583
|
+
const f = d === "image" && !l, [b, v] = e.useState(f), h = d === "image" && !!l && !b, y = d === "text", E = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, $ = rl(c, E), w = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), C = r || al(c), g = C ? _l(C) : void 0, N = y ? { backgroundColor: C } : {}, S = u(k({
|
|
2584
|
+
[Ee[_e]]: !0,
|
|
2585
|
+
[Ee[`${_e}--${_}`]]: !0,
|
|
2586
|
+
[Ee[`${_e}--${o}`]]: !0,
|
|
2587
|
+
[Ee[`${_e}--with-rim`]]: i
|
|
2566
2588
|
}, a ? { [`${a}`]: a } : {})), M = u(
|
|
2567
|
-
Ee[`${
|
|
2568
|
-
Ee[`${
|
|
2569
|
-
Ee[`${
|
|
2570
|
-
...n ? [Ee[`${
|
|
2571
|
-
),
|
|
2572
|
-
Ee[`${
|
|
2573
|
-
Ee[`${
|
|
2574
|
-
),
|
|
2575
|
-
Ee[`${
|
|
2576
|
-
Ee[`${
|
|
2577
|
-
),
|
|
2589
|
+
Ee[`${_e}__status`],
|
|
2590
|
+
Ee[`${_e}__status--${_}`],
|
|
2591
|
+
Ee[`${_e}__status--${o}`],
|
|
2592
|
+
...n ? [Ee[`${_e}__status--${n}`]] : []
|
|
2593
|
+
), G = u(
|
|
2594
|
+
Ee[`${_e}__icon`],
|
|
2595
|
+
Ee[`${_e}__icon--${o}`]
|
|
2596
|
+
), I = u(
|
|
2597
|
+
Ee[`${_e}__rim`],
|
|
2598
|
+
Ee[`${_e}__rim--${o}`]
|
|
2599
|
+
), O = (X) => w ? "2xs" : ["medium"].includes(X) ? "xs" : ["large", "xlarge"].includes(X) ? "sm" : ["xxlarge"].includes(X) ? "lg" : "xl", Y = e.useCallback(() => v(!0), []);
|
|
2578
2600
|
return e.useEffect(() => {
|
|
2579
|
-
v(
|
|
2580
|
-
}, [
|
|
2601
|
+
v(f);
|
|
2602
|
+
}, [f]), /* @__PURE__ */ e.createElement("div", k({ className: S, style: N }, s), i && /* @__PURE__ */ e.createElement(
|
|
2581
2603
|
"div",
|
|
2582
2604
|
{
|
|
2583
|
-
"data-testid": `${
|
|
2584
|
-
className:
|
|
2605
|
+
"data-testid": `${_e}__rim`,
|
|
2606
|
+
className: I
|
|
2585
2607
|
}
|
|
2586
2608
|
), n && /* @__PURE__ */ e.createElement(
|
|
2587
2609
|
"div",
|
|
2588
2610
|
{
|
|
2589
|
-
"data-testid": `${
|
|
2611
|
+
"data-testid": `${_e}__status`,
|
|
2590
2612
|
className: M
|
|
2591
2613
|
}
|
|
2592
2614
|
), h && /* @__PURE__ */ e.createElement(
|
|
2593
2615
|
"img",
|
|
2594
2616
|
{
|
|
2595
|
-
className: Ee[`${
|
|
2617
|
+
className: Ee[`${_e}__image`],
|
|
2596
2618
|
src: l,
|
|
2597
2619
|
alt: t,
|
|
2598
|
-
onError:
|
|
2620
|
+
onError: Y
|
|
2599
2621
|
}
|
|
2600
|
-
),
|
|
2601
|
-
|
|
2622
|
+
), y && /* @__PURE__ */ e.createElement(
|
|
2623
|
+
ne,
|
|
2602
2624
|
{
|
|
2603
2625
|
as: "span",
|
|
2604
|
-
size:
|
|
2626
|
+
size: O(o),
|
|
2605
2627
|
style: { color: g },
|
|
2606
2628
|
bold: w,
|
|
2607
2629
|
uppercase: w
|
|
2608
2630
|
},
|
|
2609
2631
|
$
|
|
2610
|
-
),
|
|
2632
|
+
), b && /* @__PURE__ */ e.createElement(
|
|
2611
2633
|
x,
|
|
2612
2634
|
{
|
|
2613
|
-
"data-testid": `${
|
|
2614
|
-
className:
|
|
2635
|
+
"data-testid": `${_e}__icon`,
|
|
2636
|
+
className: G,
|
|
2615
2637
|
source: T_
|
|
2616
2638
|
}
|
|
2617
2639
|
));
|
|
@@ -2635,26 +2657,26 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2635
2657
|
e.useEffect(() => {
|
|
2636
2658
|
s && i(o);
|
|
2637
2659
|
}, [o]);
|
|
2638
|
-
const p = (
|
|
2639
|
-
s || i(
|
|
2640
|
-
}, m = a.map(({ id:
|
|
2641
|
-
const
|
|
2660
|
+
const p = (f, b) => {
|
|
2661
|
+
s || i(f), n(f, b);
|
|
2662
|
+
}, m = a.map(({ id: f, label: b, loading: v, disabled: h, icon: y }) => {
|
|
2663
|
+
const E = f === d, $ = E ? Na["btn--active"] : "", w = E ? !1 : v;
|
|
2642
2664
|
return /* @__PURE__ */ e.createElement(
|
|
2643
2665
|
W,
|
|
2644
2666
|
{
|
|
2645
|
-
key:
|
|
2667
|
+
key: f,
|
|
2646
2668
|
fullWidth: l,
|
|
2647
2669
|
loading: w,
|
|
2648
2670
|
disabled: h,
|
|
2649
|
-
"aria-pressed":
|
|
2671
|
+
"aria-pressed": E,
|
|
2650
2672
|
kind: "secondary",
|
|
2651
|
-
icon:
|
|
2673
|
+
icon: y,
|
|
2652
2674
|
className: u(Na.btn, Na[`btn--${t}`], $),
|
|
2653
2675
|
onClick: (C) => {
|
|
2654
|
-
p(
|
|
2676
|
+
p(f, C);
|
|
2655
2677
|
}
|
|
2656
2678
|
},
|
|
2657
|
-
|
|
2679
|
+
b
|
|
2658
2680
|
);
|
|
2659
2681
|
});
|
|
2660
2682
|
return /* @__PURE__ */ e.createElement("div", { role: "group", className: c }, m);
|
|
@@ -2692,15 +2714,15 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2692
2714
|
"src",
|
|
2693
2715
|
"title"
|
|
2694
2716
|
]);
|
|
2695
|
-
const [p, m] = e.useState(!1),
|
|
2696
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: u(ye[na], _) }, d),
|
|
2717
|
+
const [p, m] = e.useState(!1), f = p ? Oa : Ot, b = p ? "Hide" : "Show more", v = (a == null ? void 0 : a.length) > 0, h = !!l, y = v || h, E = c, $ = n, w = $ ? "" : ye[yl];
|
|
2718
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(ye[na], _) }, d), E && /* @__PURE__ */ e.createElement("div", { className: u(ye[Ma], w) }, $ && /* @__PURE__ */ e.createElement(
|
|
2697
2719
|
"img",
|
|
2698
2720
|
{
|
|
2699
2721
|
alt: t,
|
|
2700
2722
|
className: ye[`${Ma}__image`],
|
|
2701
2723
|
src: n
|
|
2702
2724
|
}
|
|
2703
|
-
), /* @__PURE__ */ e.createElement("div", { className: ye[tr] }, /* @__PURE__ */ e.createElement(
|
|
2725
|
+
), /* @__PURE__ */ e.createElement("div", { className: ye[tr] }, /* @__PURE__ */ e.createElement(ne, { size: "xs", className: ye[`${tr}__title`] }, c), o && /* @__PURE__ */ e.createElement(
|
|
2704
2726
|
B,
|
|
2705
2727
|
{
|
|
2706
2728
|
size: "sm",
|
|
@@ -2715,7 +2737,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2715
2737
|
className: ye[`${na}__expanded-content`]
|
|
2716
2738
|
},
|
|
2717
2739
|
l
|
|
2718
|
-
),
|
|
2740
|
+
), y && /* @__PURE__ */ e.createElement("div", { className: ye[Sa] }, /* @__PURE__ */ e.createElement("div", { className: ye[`${Sa}__line`] }), /* @__PURE__ */ e.createElement("div", { className: ye[`${Sa}__buttons`] }, v && a.map(
|
|
2719
2741
|
({ kind: C, onClick: g, children: N }, S) => /* @__PURE__ */ e.createElement(
|
|
2720
2742
|
W,
|
|
2721
2743
|
{
|
|
@@ -2732,10 +2754,10 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2732
2754
|
className: ye[`${Sa}__buttons-expander`],
|
|
2733
2755
|
kind: "link",
|
|
2734
2756
|
iconPosition: "right",
|
|
2735
|
-
icon: /* @__PURE__ */ e.createElement(x, { source:
|
|
2757
|
+
icon: /* @__PURE__ */ e.createElement(x, { source: f }),
|
|
2736
2758
|
onClick: () => m(!p)
|
|
2737
2759
|
},
|
|
2738
|
-
|
|
2760
|
+
b
|
|
2739
2761
|
))));
|
|
2740
2762
|
}, wl = {
|
|
2741
2763
|
"field-description": "lc-FieldDescription-module__field-description___IcRDH"
|
|
@@ -2748,8 +2770,8 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2748
2770
|
"className"
|
|
2749
2771
|
]);
|
|
2750
2772
|
const l = u(wl[Cl], a);
|
|
2751
|
-
return /* @__PURE__ */ e.createElement(B,
|
|
2752
|
-
}, $l = "lc-Checkbox-module__checkbox___G7nTf", Nl = "lc-Checkbox-module__checkbox__label___-o01x", Sl = "lc-Checkbox-module__checkbox__text___P2SIq", xl = "lc-Checkbox-module__checkbox__input___YLbVF", Bl = "lc-Checkbox-module__checkbox__checkmark___16pfY", Il = "lc-Checkbox-module__checkbox__square___MHUyd", Tl = "lc-Checkbox-module__checkbox__helper___YSJ-n",
|
|
2773
|
+
return /* @__PURE__ */ e.createElement(B, T(k({ as: "span", size: "sm" }, r), { className: l }), t);
|
|
2774
|
+
}, $l = "lc-Checkbox-module__checkbox___G7nTf", Nl = "lc-Checkbox-module__checkbox__label___-o01x", Sl = "lc-Checkbox-module__checkbox__text___P2SIq", xl = "lc-Checkbox-module__checkbox__input___YLbVF", Bl = "lc-Checkbox-module__checkbox__checkmark___16pfY", Il = "lc-Checkbox-module__checkbox__square___MHUyd", Tl = "lc-Checkbox-module__checkbox__helper___YSJ-n", kt = {
|
|
2753
2775
|
checkbox: $l,
|
|
2754
2776
|
checkbox__label: Nl,
|
|
2755
2777
|
checkbox__text: Sl,
|
|
@@ -2759,28 +2781,28 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2759
2781
|
checkbox__square: Il,
|
|
2760
2782
|
"checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___-lAqW",
|
|
2761
2783
|
checkbox__helper: Tl
|
|
2762
|
-
},
|
|
2784
|
+
}, Et = "checkbox", Dl = e.forwardRef(
|
|
2763
2785
|
(c, n) => {
|
|
2764
2786
|
var d = c, { checked: t, disabled: a, children: r, description: _, className: o } = d, l = D(d, ["checked", "disabled", "children", "description", "className"]);
|
|
2765
2787
|
return /* @__PURE__ */ e.createElement(
|
|
2766
2788
|
"div",
|
|
2767
2789
|
{
|
|
2768
|
-
className: u(
|
|
2769
|
-
[
|
|
2770
|
-
[
|
|
2790
|
+
className: u(kt[Et], o, {
|
|
2791
|
+
[kt[`${Et}--selected`]]: t,
|
|
2792
|
+
[kt[`${Et}--disabled`]]: a
|
|
2771
2793
|
})
|
|
2772
2794
|
},
|
|
2773
|
-
/* @__PURE__ */ e.createElement("label", { className:
|
|
2795
|
+
/* @__PURE__ */ e.createElement("label", { className: kt[`${Et}__label`] }, /* @__PURE__ */ e.createElement(
|
|
2774
2796
|
"input",
|
|
2775
|
-
|
|
2797
|
+
T(k({}, l), {
|
|
2776
2798
|
ref: n,
|
|
2777
2799
|
checked: t,
|
|
2778
2800
|
disabled: a,
|
|
2779
|
-
className:
|
|
2801
|
+
className: kt[`${Et}__input`],
|
|
2780
2802
|
type: "checkbox"
|
|
2781
2803
|
})
|
|
2782
|
-
), r && /* @__PURE__ */ e.createElement(B, { as: "div", size: "md", className:
|
|
2783
|
-
_ && /* @__PURE__ */ e.createElement(za, { className:
|
|
2804
|
+
), r && /* @__PURE__ */ e.createElement(B, { as: "div", size: "md", className: kt[`${Et}__text`] }, r)),
|
|
2805
|
+
_ && /* @__PURE__ */ e.createElement(za, { className: kt[`${Et}__helper`] }, _)
|
|
2784
2806
|
);
|
|
2785
2807
|
}
|
|
2786
2808
|
), F = {
|
|
@@ -2818,7 +2840,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2818
2840
|
"date-picker--range__select-input": "lc-DatePicker-module__date-picker--range__select-input___6pyj3",
|
|
2819
2841
|
"date-picker--range__calendars-wrapper": "lc-DatePicker-module__date-picker--range__calendars-wrapper___8nWaW",
|
|
2820
2842
|
"date-picker__navbar-buttons-wrapper": "lc-DatePicker-module__date-picker__navbar-buttons-wrapper___Hnksb"
|
|
2821
|
-
}, Hr = "date-picker",
|
|
2843
|
+
}, Hr = "date-picker", Pl = (t) => {
|
|
2822
2844
|
const {
|
|
2823
2845
|
onPreviousClick: a,
|
|
2824
2846
|
onMonthChange: r,
|
|
@@ -2833,28 +2855,28 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2833
2855
|
toMonth: p
|
|
2834
2856
|
} = t, m = () => {
|
|
2835
2857
|
typeof a == "function" && a();
|
|
2836
|
-
}, b = () => {
|
|
2837
|
-
typeof _ == "function" && _();
|
|
2838
2858
|
}, f = () => {
|
|
2859
|
+
typeof _ == "function" && _();
|
|
2860
|
+
}, b = () => {
|
|
2839
2861
|
if (!s) {
|
|
2840
|
-
const
|
|
2841
|
-
return r(
|
|
2862
|
+
const E = Rt(i, 12);
|
|
2863
|
+
return r(E);
|
|
2842
2864
|
}
|
|
2843
|
-
const h = Math.abs(Ir(i, s)),
|
|
2865
|
+
const h = Math.abs(Ir(i, s)), y = Rt(
|
|
2844
2866
|
i,
|
|
2845
2867
|
!Number.isNaN(h) && h > 12 ? 12 : h
|
|
2846
2868
|
);
|
|
2847
|
-
return r(
|
|
2869
|
+
return r(y);
|
|
2848
2870
|
}, v = () => {
|
|
2849
2871
|
if (!p) {
|
|
2850
|
-
const
|
|
2851
|
-
return r(
|
|
2872
|
+
const E = Tr(i, 12);
|
|
2873
|
+
return r(E);
|
|
2852
2874
|
}
|
|
2853
|
-
const h = Math.abs(Ir(p, i)),
|
|
2875
|
+
const h = Math.abs(Ir(p, i)), y = Tr(
|
|
2854
2876
|
i,
|
|
2855
2877
|
!Number.isNaN(h) && h > 12 ? 12 : h
|
|
2856
2878
|
);
|
|
2857
|
-
return d === 2 && pr(
|
|
2879
|
+
return d === 2 && pr(y, p) ? r(Rt(y, 1)) : r(y);
|
|
2858
2880
|
};
|
|
2859
2881
|
return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement("div", { className: F[`${Hr}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
2860
2882
|
"button",
|
|
@@ -2864,7 +2886,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2864
2886
|
[c.navButtonPrev]: !0,
|
|
2865
2887
|
[c.navButtonInteractionDisabled]: !l
|
|
2866
2888
|
}),
|
|
2867
|
-
onClick:
|
|
2889
|
+
onClick: b
|
|
2868
2890
|
},
|
|
2869
2891
|
/* @__PURE__ */ e.createElement(x, { source: D_, kind: "subtle" })
|
|
2870
2892
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -2877,7 +2899,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2877
2899
|
}),
|
|
2878
2900
|
onClick: m
|
|
2879
2901
|
},
|
|
2880
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
2902
|
+
/* @__PURE__ */ e.createElement(x, { source: P_, kind: "subtle" })
|
|
2881
2903
|
)), /* @__PURE__ */ e.createElement("div", { className: F[`${Hr}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
2882
2904
|
"button",
|
|
2883
2905
|
{
|
|
@@ -2886,7 +2908,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2886
2908
|
[c.navButtonNext]: !0,
|
|
2887
2909
|
[c.navButtonInteractionDisabled]: !o
|
|
2888
2910
|
}),
|
|
2889
|
-
onClick:
|
|
2911
|
+
onClick: f
|
|
2890
2912
|
},
|
|
2891
2913
|
/* @__PURE__ */ e.createElement(x, { source: La, kind: "subtle" })
|
|
2892
2914
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -2899,12 +2921,12 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2899
2921
|
}),
|
|
2900
2922
|
onClick: v
|
|
2901
2923
|
},
|
|
2902
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
2924
|
+
/* @__PURE__ */ e.createElement(x, { source: A_, kind: "subtle" })
|
|
2903
2925
|
)));
|
|
2904
2926
|
}, R = "date-picker", f_ = (t, a) => {
|
|
2905
2927
|
const { from: r, to: _ } = a;
|
|
2906
2928
|
return !(_ && !gr(t, _) && fr(t, _) || r && !gr(t, r) && !fr(t, r));
|
|
2907
|
-
}, b_ = (t, a, r) => a ? t && !pr(t, a) || r && pr(a, r) ? Rt(a, 1) : a : Rt(r || /* @__PURE__ */ new Date(), 1),
|
|
2929
|
+
}, b_ = (t, a, r) => a ? t && !pr(t, a) || r && pr(a, r) ? Rt(a, 1) : a : Rt(r || /* @__PURE__ */ new Date(), 1), Al = (t, a) => {
|
|
2908
2930
|
const r = {
|
|
2909
2931
|
[F[`${R}__day--monday`]]: { daysOfWeek: [1] },
|
|
2910
2932
|
[F[`${R}__day--sunday`]]: { daysOfWeek: [0] },
|
|
@@ -2914,9 +2936,9 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2914
2936
|
if (!a || !t)
|
|
2915
2937
|
return r;
|
|
2916
2938
|
const _ = wr(a, t);
|
|
2917
|
-
return _ > 0 ?
|
|
2939
|
+
return _ > 0 ? T(k({}, r), {
|
|
2918
2940
|
[F[`${R}__day--end`]]: a
|
|
2919
|
-
}) : _ < 0 ?
|
|
2941
|
+
}) : _ < 0 ? T(k({}, r), {
|
|
2920
2942
|
[F[`${R}__day--start`]]: a
|
|
2921
2943
|
}) : r;
|
|
2922
2944
|
}, oa = (t, a) => {
|
|
@@ -2970,7 +2992,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2970
2992
|
const a = t.getDate();
|
|
2971
2993
|
return /* @__PURE__ */ e.createElement("div", { className: F[`${Wr}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: F[`${Wr}__day-content`] }, a));
|
|
2972
2994
|
}, Ll = (t) => {
|
|
2973
|
-
const
|
|
2995
|
+
const y = t, {
|
|
2974
2996
|
classNames: a,
|
|
2975
2997
|
range: r,
|
|
2976
2998
|
toMonth: _,
|
|
@@ -2981,7 +3003,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2981
3003
|
navbarElement: d,
|
|
2982
3004
|
renderDay: i,
|
|
2983
3005
|
innerRef: s
|
|
2984
|
-
} =
|
|
3006
|
+
} = y, p = D(y, [
|
|
2985
3007
|
"classNames",
|
|
2986
3008
|
"range",
|
|
2987
3009
|
"toMonth",
|
|
@@ -2992,19 +3014,19 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2992
3014
|
"navbarElement",
|
|
2993
3015
|
"renderDay",
|
|
2994
3016
|
"innerRef"
|
|
2995
|
-
]), [m,
|
|
3017
|
+
]), [m, f] = e.useState(o || /* @__PURE__ */ new Date());
|
|
2996
3018
|
e.useEffect(() => {
|
|
2997
|
-
o && o !== m &&
|
|
3019
|
+
o && o !== m && f(o);
|
|
2998
3020
|
}, [o, m]), e.useEffect(() => {
|
|
2999
|
-
_ && o !== m && (f_(m, { from: l, to: _ }) ||
|
|
3021
|
+
_ && o !== m && (f_(m, { from: l, to: _ }) || f(_));
|
|
3000
3022
|
}, [o, m, _, l]);
|
|
3001
|
-
const
|
|
3002
|
-
(
|
|
3003
|
-
if (t.onMonthChange &&
|
|
3004
|
-
t.onMonthChange(
|
|
3023
|
+
const b = e.useCallback(
|
|
3024
|
+
(E) => {
|
|
3025
|
+
if (t.onMonthChange && E) {
|
|
3026
|
+
t.onMonthChange(E);
|
|
3005
3027
|
return;
|
|
3006
3028
|
}
|
|
3007
|
-
|
|
3029
|
+
f(E);
|
|
3008
3030
|
},
|
|
3009
3031
|
[o, t.onMonthChange]
|
|
3010
3032
|
);
|
|
@@ -3018,12 +3040,12 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
3018
3040
|
_o,
|
|
3019
3041
|
k({
|
|
3020
3042
|
navbarElement: d || /* @__PURE__ */ e.createElement(
|
|
3021
|
-
|
|
3043
|
+
Pl,
|
|
3022
3044
|
{
|
|
3023
3045
|
month: m,
|
|
3024
3046
|
classNames: h,
|
|
3025
3047
|
numberOfMonths: c,
|
|
3026
|
-
onMonthChange:
|
|
3048
|
+
onMonthChange: b,
|
|
3027
3049
|
toMonth: _,
|
|
3028
3050
|
fromMonth: l
|
|
3029
3051
|
}
|
|
@@ -3066,36 +3088,36 @@ const Gl = (t) => {
|
|
|
3066
3088
|
currentMonth: a
|
|
3067
3089
|
};
|
|
3068
3090
|
case Z.NEW_TEMPORARY_TO_VALUE:
|
|
3069
|
-
return
|
|
3091
|
+
return T(k({}, l), {
|
|
3070
3092
|
temporaryTo: n.payload.date
|
|
3071
3093
|
});
|
|
3072
3094
|
case Z.SELECT_FIRST_DAY:
|
|
3073
|
-
return
|
|
3095
|
+
return T(k({}, l), {
|
|
3074
3096
|
from: n.payload.date,
|
|
3075
3097
|
to: void 0,
|
|
3076
3098
|
temporaryTo: void 0
|
|
3077
3099
|
});
|
|
3078
3100
|
case Z.SELECT_SECOND_DAY_AS_FROM:
|
|
3079
|
-
return
|
|
3101
|
+
return T(k({}, l), {
|
|
3080
3102
|
from: n.payload.date,
|
|
3081
3103
|
to: l.from,
|
|
3082
3104
|
temporaryTo: l.from
|
|
3083
3105
|
});
|
|
3084
3106
|
case Z.SELECT_SECOND_DAY_AS_TO:
|
|
3085
|
-
return
|
|
3107
|
+
return T(k({}, l), {
|
|
3086
3108
|
to: n.payload.date,
|
|
3087
3109
|
temporaryTo: n.payload.date
|
|
3088
3110
|
});
|
|
3089
3111
|
case Z.CURRENT_MONTH_CHANGE:
|
|
3090
|
-
return
|
|
3112
|
+
return T(k({}, l), {
|
|
3091
3113
|
currentMonth: n.payload.date
|
|
3092
3114
|
});
|
|
3093
3115
|
case Z.SET_FROM:
|
|
3094
|
-
return
|
|
3116
|
+
return T(k({}, l), {
|
|
3095
3117
|
from: n.payload.date
|
|
3096
3118
|
});
|
|
3097
3119
|
case Z.SET_TO:
|
|
3098
|
-
return
|
|
3120
|
+
return T(k({}, l), {
|
|
3099
3121
|
to: n.payload.date
|
|
3100
3122
|
});
|
|
3101
3123
|
default:
|
|
@@ -3123,17 +3145,17 @@ const Gl = (t) => {
|
|
|
3123
3145
|
onChange: l,
|
|
3124
3146
|
children: n
|
|
3125
3147
|
});
|
|
3126
|
-
|
|
3148
|
+
Ft(() => {
|
|
3127
3149
|
i({
|
|
3128
3150
|
type: Z.SET_FROM,
|
|
3129
3151
|
payload: { date: r }
|
|
3130
3152
|
});
|
|
3131
|
-
}, [r]),
|
|
3153
|
+
}, [r]), Ft(() => {
|
|
3132
3154
|
i({
|
|
3133
3155
|
type: Z.SET_TO,
|
|
3134
3156
|
payload: { date: _ }
|
|
3135
3157
|
});
|
|
3136
|
-
}, [_]),
|
|
3158
|
+
}, [_]), Ft(() => {
|
|
3137
3159
|
const v = b_(
|
|
3138
3160
|
r,
|
|
3139
3161
|
_,
|
|
@@ -3143,18 +3165,18 @@ const Gl = (t) => {
|
|
|
3143
3165
|
type: Z.CURRENT_MONTH_CHANGE,
|
|
3144
3166
|
payload: { date: v }
|
|
3145
3167
|
});
|
|
3146
|
-
}, [o, r, _]),
|
|
3147
|
-
const { from: v, selectedItem: h, to:
|
|
3148
|
-
if (!(v &&
|
|
3168
|
+
}, [o, r, _]), Ft(() => {
|
|
3169
|
+
const { from: v, selectedItem: h, to: y } = d;
|
|
3170
|
+
if (!(v && y))
|
|
3149
3171
|
return;
|
|
3150
|
-
const
|
|
3151
|
-
|
|
3172
|
+
const E = oa(h, t);
|
|
3173
|
+
E && (l == null || l(T(k({}, E), {
|
|
3152
3174
|
value: {
|
|
3153
3175
|
from: v,
|
|
3154
|
-
to:
|
|
3176
|
+
to: y
|
|
3155
3177
|
}
|
|
3156
3178
|
})));
|
|
3157
|
-
}, [d.from, d.to, d.selectedItem, t, l]),
|
|
3179
|
+
}, [d.from, d.to, d.selectedItem, t, l]), Ft(() => {
|
|
3158
3180
|
const { selectedItem: v } = d;
|
|
3159
3181
|
if (v === c.current)
|
|
3160
3182
|
return;
|
|
@@ -3164,11 +3186,11 @@ const Gl = (t) => {
|
|
|
3164
3186
|
}
|
|
3165
3187
|
if (!oa(v, t))
|
|
3166
3188
|
return;
|
|
3167
|
-
const
|
|
3168
|
-
(
|
|
3189
|
+
const y = t.reduce(
|
|
3190
|
+
(E, $) => T(k({}, E), { [$.id]: $ }),
|
|
3169
3191
|
{}
|
|
3170
3192
|
);
|
|
3171
|
-
l(
|
|
3193
|
+
l(y[v]);
|
|
3172
3194
|
}, [l, d.selectedItem, t]);
|
|
3173
3195
|
const s = ka(
|
|
3174
3196
|
(v) => {
|
|
@@ -3181,8 +3203,8 @@ const Gl = (t) => {
|
|
|
3181
3203
|
[o, d.from, d.to]
|
|
3182
3204
|
), p = ka(
|
|
3183
3205
|
(v) => {
|
|
3184
|
-
const { from: h, to:
|
|
3185
|
-
f_(v, { to: o }) && (zr(h,
|
|
3206
|
+
const { from: h, to: y } = d;
|
|
3207
|
+
f_(v, { to: o }) && (zr(h, y) ? i({
|
|
3186
3208
|
type: Z.SELECT_FIRST_DAY,
|
|
3187
3209
|
payload: { date: v }
|
|
3188
3210
|
}) : h && gr(v, h) || h && fr(v, h) ? i({
|
|
@@ -3209,21 +3231,21 @@ const Gl = (t) => {
|
|
|
3209
3231
|
});
|
|
3210
3232
|
},
|
|
3211
3233
|
[t]
|
|
3212
|
-
),
|
|
3234
|
+
), f = ka((v) => {
|
|
3213
3235
|
i({
|
|
3214
3236
|
type: Z.CURRENT_MONTH_CHANGE,
|
|
3215
3237
|
payload: { date: v }
|
|
3216
3238
|
});
|
|
3217
3239
|
}, []);
|
|
3218
3240
|
return n((() => {
|
|
3219
|
-
const { currentMonth: v, from: h, selectedItem:
|
|
3220
|
-
() =>
|
|
3221
|
-
[h,
|
|
3222
|
-
), C = Ea(() => oa(
|
|
3241
|
+
const { currentMonth: v, from: h, selectedItem: y, temporaryTo: E, to: $ } = d, w = Ea(
|
|
3242
|
+
() => Al(h, E),
|
|
3243
|
+
[h, E]
|
|
3244
|
+
), C = Ea(() => oa(y, t), [t, y]), g = Ea(() => [h, { from: h, to: E }], [h, E]), N = Ea(() => o ? { after: o } : void 0, [o]);
|
|
3223
3245
|
return {
|
|
3224
3246
|
select: {
|
|
3225
3247
|
onItemSelect: m,
|
|
3226
|
-
selected:
|
|
3248
|
+
selected: y || ""
|
|
3227
3249
|
},
|
|
3228
3250
|
inputs: {
|
|
3229
3251
|
fromDate: h,
|
|
@@ -3240,7 +3262,7 @@ const Gl = (t) => {
|
|
|
3240
3262
|
toMonth: o,
|
|
3241
3263
|
disabledDays: N,
|
|
3242
3264
|
onDayMouseEnter: s,
|
|
3243
|
-
onMonthChange:
|
|
3265
|
+
onMonthChange: f
|
|
3244
3266
|
},
|
|
3245
3267
|
selectedOption: C
|
|
3246
3268
|
};
|
|
@@ -3264,7 +3286,7 @@ const ci = (t) => {
|
|
|
3264
3286
|
a,
|
|
3265
3287
|
F["date-picker--range__calendars-wrapper"]
|
|
3266
3288
|
);
|
|
3267
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
3289
|
+
return /* @__PURE__ */ e.createElement("div", T(k({}, _), { className: o }), r);
|
|
3268
3290
|
}, H = {
|
|
3269
3291
|
"details-card": "lc-DetailsCard-module__details-card___cVoS7",
|
|
3270
3292
|
"details-card__button--fading": "lc-DetailsCard-module__details-card__button--fading___tQA02",
|
|
@@ -3298,11 +3320,11 @@ const ci = (t) => {
|
|
|
3298
3320
|
hideLabelOnOpen: d,
|
|
3299
3321
|
onClick: i
|
|
3300
3322
|
}) => {
|
|
3301
|
-
const [s, p] = e.useState(c), [m,
|
|
3323
|
+
const [s, p] = e.useState(c), [m, f] = e.useState(0), b = e.useRef(null), v = u(
|
|
3302
3324
|
H[z],
|
|
3303
3325
|
l && H[`${z}--with-divider`],
|
|
3304
3326
|
a
|
|
3305
|
-
), h = d && s,
|
|
3327
|
+
), h = d && s, y = typeof o == "string", E = (w) => {
|
|
3306
3328
|
p((C) => !C), w.currentTarget.blur(), i == null || i(w);
|
|
3307
3329
|
}, $ = (w) => {
|
|
3308
3330
|
const g = w.target.tagName.toLowerCase();
|
|
@@ -3310,13 +3332,13 @@ const ci = (t) => {
|
|
|
3310
3332
|
};
|
|
3311
3333
|
return e.useEffect(() => {
|
|
3312
3334
|
const w = !!window.IntersectionObserver;
|
|
3313
|
-
if (
|
|
3335
|
+
if (b.current && w) {
|
|
3314
3336
|
const C = new ResizeObserver(() => {
|
|
3315
|
-
|
|
3337
|
+
b.current && m !== b.current.offsetHeight && f(b.current.offsetHeight);
|
|
3316
3338
|
});
|
|
3317
|
-
return C.observe(
|
|
3339
|
+
return C.observe(b.current), () => C.disconnect();
|
|
3318
3340
|
}
|
|
3319
|
-
}, [
|
|
3341
|
+
}, [b]), /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement(
|
|
3320
3342
|
"div",
|
|
3321
3343
|
{
|
|
3322
3344
|
className: u(
|
|
@@ -3339,8 +3361,8 @@ const ci = (t) => {
|
|
|
3339
3361
|
)
|
|
3340
3362
|
},
|
|
3341
3363
|
r && /* @__PURE__ */ e.createElement("div", { className: H[`${z}__label__left-node`] }, r),
|
|
3342
|
-
|
|
3343
|
-
|
|
3364
|
+
y ? /* @__PURE__ */ e.createElement(
|
|
3365
|
+
ne,
|
|
3344
3366
|
{
|
|
3345
3367
|
size: "xs",
|
|
3346
3368
|
className: H[`${z}__label__content`]
|
|
@@ -3369,7 +3391,7 @@ const ci = (t) => {
|
|
|
3369
3391
|
s && H[`${z}__button--open`],
|
|
3370
3392
|
d && H[`${z}__button--fading`]
|
|
3371
3393
|
),
|
|
3372
|
-
onClick:
|
|
3394
|
+
onClick: E,
|
|
3373
3395
|
"aria-expanded": s
|
|
3374
3396
|
}
|
|
3375
3397
|
), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
@@ -3386,7 +3408,7 @@ const ci = (t) => {
|
|
|
3386
3408
|
/* @__PURE__ */ e.createElement(
|
|
3387
3409
|
"div",
|
|
3388
3410
|
{
|
|
3389
|
-
ref:
|
|
3411
|
+
ref: b,
|
|
3390
3412
|
className: u(
|
|
3391
3413
|
H[`${z}__content`],
|
|
3392
3414
|
n && H[`${z}__content--full-space`],
|
|
@@ -3415,7 +3437,7 @@ const ci = (t) => {
|
|
|
3415
3437
|
"className"
|
|
3416
3438
|
]);
|
|
3417
3439
|
const l = u(Vr[Kr], a);
|
|
3418
|
-
return /* @__PURE__ */ e.createElement(B,
|
|
3440
|
+
return /* @__PURE__ */ e.createElement(B, T(k({ as: "span", size: "sm" }, r), { className: l }), /* @__PURE__ */ e.createElement(
|
|
3419
3441
|
x,
|
|
3420
3442
|
{
|
|
3421
3443
|
source: ca,
|
|
@@ -3447,7 +3469,7 @@ const ci = (t) => {
|
|
|
3447
3469
|
[_r[`${or}--inline`]]: o,
|
|
3448
3470
|
[_r[`${or}--stretched`]]: l
|
|
3449
3471
|
});
|
|
3450
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
3472
|
+
return /* @__PURE__ */ e.createElement("div", T(k({}, n), { className: i }), a, _ && /* @__PURE__ */ e.createElement(Sr, null, _), r && /* @__PURE__ */ e.createElement(za, null, r));
|
|
3451
3473
|
}, zl = "lc-Form-module__form___1nOYF", Wl = "lc-Form-module__form__header___U4B7t", Vl = "lc-Form-module__form__footer___1-sUX", Kl = "lc-Form-module__form__label___spg-J", Yl = "lc-Form-module__form__helper___bhfwS", Kt = {
|
|
3452
3474
|
form: zl,
|
|
3453
3475
|
form__header: Wl,
|
|
@@ -3468,8 +3490,8 @@ const ci = (t) => {
|
|
|
3468
3490
|
"helperText",
|
|
3469
3491
|
"formFooter"
|
|
3470
3492
|
]);
|
|
3471
|
-
return /* @__PURE__ */ e.createElement("form", k({ className: u(Kt[Yt], t) }, l), (r || _) && /* @__PURE__ */ e.createElement("div", { className: Kt[`${Yt}__header`] }, r && /* @__PURE__ */ e.createElement(
|
|
3472
|
-
},
|
|
3493
|
+
return /* @__PURE__ */ e.createElement("form", k({ className: u(Kt[Yt], t) }, l), (r || _) && /* @__PURE__ */ e.createElement("div", { className: Kt[`${Yt}__header`] }, r && /* @__PURE__ */ e.createElement(ne, { size: "sm", className: Kt[`${Yt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(B, { as: "p", size: "sm", className: Kt[`${Yt}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: Kt[`${Yt}__footer`] }, o));
|
|
3494
|
+
}, J = {
|
|
3473
3495
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
3474
3496
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
3475
3497
|
"form-field__wrapper--inline": "lc-FormField-module__form-field__wrapper--inline___Ubvrn",
|
|
@@ -3486,7 +3508,7 @@ const ci = (t) => {
|
|
|
3486
3508
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___DCBjC",
|
|
3487
3509
|
"form-field__content": "lc-FormField-module__form-field__content___XaOx3",
|
|
3488
3510
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___NpVw4"
|
|
3489
|
-
},
|
|
3511
|
+
}, j = "form-field", mi = ({
|
|
3490
3512
|
inline: t,
|
|
3491
3513
|
error: a,
|
|
3492
3514
|
description: r,
|
|
@@ -3498,49 +3520,49 @@ const ci = (t) => {
|
|
|
3498
3520
|
labelRightNode: d
|
|
3499
3521
|
}) => {
|
|
3500
3522
|
const i = e.useRef(null), [s, p] = e.useState("auto"), m = u(
|
|
3501
|
-
|
|
3523
|
+
J[j],
|
|
3502
3524
|
{
|
|
3503
|
-
[
|
|
3525
|
+
[J[`${j}--inline`]]: t
|
|
3504
3526
|
},
|
|
3505
3527
|
l
|
|
3506
3528
|
);
|
|
3507
3529
|
return e.useEffect(() => {
|
|
3508
|
-
const
|
|
3509
|
-
return t &&
|
|
3530
|
+
const f = i;
|
|
3531
|
+
return t && f.current ? p(`${f.current.clientHeight}px`) : p("auto");
|
|
3510
3532
|
}), /* @__PURE__ */ e.createElement("div", { className: m }, d && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3511
3533
|
B,
|
|
3512
3534
|
{
|
|
3513
3535
|
as: "div",
|
|
3514
3536
|
size: "sm",
|
|
3515
3537
|
className: u(
|
|
3516
|
-
|
|
3517
|
-
|
|
3538
|
+
J[`${j}__label-right-node`],
|
|
3539
|
+
J[`${j}__label-right-node--inline`]
|
|
3518
3540
|
)
|
|
3519
3541
|
},
|
|
3520
3542
|
d
|
|
3521
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
3543
|
+
), /* @__PURE__ */ e.createElement("div", { className: J[`${j}__row-break`] })), /* @__PURE__ */ e.createElement(
|
|
3522
3544
|
"div",
|
|
3523
3545
|
{
|
|
3524
3546
|
className: u(
|
|
3525
|
-
|
|
3526
|
-
t &&
|
|
3547
|
+
J[`${j}__wrapper`],
|
|
3548
|
+
t && J[`${j}__wrapper--inline`]
|
|
3527
3549
|
)
|
|
3528
3550
|
},
|
|
3529
3551
|
(_ || d) && /* @__PURE__ */ e.createElement(
|
|
3530
3552
|
"div",
|
|
3531
3553
|
{
|
|
3532
3554
|
className: u(
|
|
3533
|
-
|
|
3534
|
-
t &&
|
|
3535
|
-
!_ &&
|
|
3555
|
+
J[`${j}__label`],
|
|
3556
|
+
t && J[`${j}__label--inline`],
|
|
3557
|
+
!_ && J[`${j}__label--no-text`]
|
|
3536
3558
|
)
|
|
3537
3559
|
},
|
|
3538
3560
|
_ && /* @__PURE__ */ e.createElement(
|
|
3539
3561
|
"div",
|
|
3540
3562
|
{
|
|
3541
3563
|
className: u(
|
|
3542
|
-
|
|
3543
|
-
t &&
|
|
3564
|
+
J[`${j}__label-wrapper`],
|
|
3565
|
+
t && J[`${j}__label-wrapper--inline`]
|
|
3544
3566
|
),
|
|
3545
3567
|
style: {
|
|
3546
3568
|
height: s
|
|
@@ -3549,7 +3571,7 @@ const ci = (t) => {
|
|
|
3549
3571
|
/* @__PURE__ */ e.createElement(
|
|
3550
3572
|
"label",
|
|
3551
3573
|
{
|
|
3552
|
-
className:
|
|
3574
|
+
className: J[`${j}__label-left-node`],
|
|
3553
3575
|
htmlFor: n
|
|
3554
3576
|
},
|
|
3555
3577
|
/* @__PURE__ */ e.createElement(B, { as: "span", size: "sm" }, _)
|
|
@@ -3560,8 +3582,8 @@ const ci = (t) => {
|
|
|
3560
3582
|
as: "div",
|
|
3561
3583
|
size: "sm",
|
|
3562
3584
|
className: u(
|
|
3563
|
-
|
|
3564
|
-
t &&
|
|
3585
|
+
J[`${j}__label-adornment`],
|
|
3586
|
+
t && J[`${j}__label-adornment--inline`]
|
|
3565
3587
|
)
|
|
3566
3588
|
},
|
|
3567
3589
|
o
|
|
@@ -3572,15 +3594,15 @@ const ci = (t) => {
|
|
|
3572
3594
|
{
|
|
3573
3595
|
as: "div",
|
|
3574
3596
|
size: "sm",
|
|
3575
|
-
className: u(
|
|
3597
|
+
className: u(J[`${j}__label-right-node`])
|
|
3576
3598
|
},
|
|
3577
3599
|
d
|
|
3578
3600
|
)
|
|
3579
3601
|
),
|
|
3580
|
-
/* @__PURE__ */ e.createElement("div", { className: u(
|
|
3602
|
+
/* @__PURE__ */ e.createElement("div", { className: u(J[`${j}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: i }, c), a && /* @__PURE__ */ e.createElement(Sr, null, a), !a && r && /* @__PURE__ */ e.createElement(
|
|
3581
3603
|
za,
|
|
3582
3604
|
{
|
|
3583
|
-
className: u(
|
|
3605
|
+
className: u(J[`${j}__content__description`])
|
|
3584
3606
|
},
|
|
3585
3607
|
r
|
|
3586
3608
|
))
|
|
@@ -3605,13 +3627,13 @@ const ci = (t) => {
|
|
|
3605
3627
|
const c = u(xa[Ba], t);
|
|
3606
3628
|
return /* @__PURE__ */ e.createElement(
|
|
3607
3629
|
"div",
|
|
3608
|
-
|
|
3630
|
+
T(k(T(k({}, o), {
|
|
3609
3631
|
role: "group"
|
|
3610
3632
|
}), r && { "aria-label": r }), {
|
|
3611
3633
|
className: c
|
|
3612
3634
|
}),
|
|
3613
3635
|
(r || _) && /* @__PURE__ */ e.createElement("div", { className: xa[`${Ba}__header`] }, r && /* @__PURE__ */ e.createElement(
|
|
3614
|
-
|
|
3636
|
+
ne,
|
|
3615
3637
|
{
|
|
3616
3638
|
as: "div",
|
|
3617
3639
|
size: "sm",
|
|
@@ -3664,7 +3686,7 @@ const ci = (t) => {
|
|
|
3664
3686
|
]);
|
|
3665
3687
|
const s = e.useRef(null);
|
|
3666
3688
|
e.useImperativeHandle(c, () => s.current, []);
|
|
3667
|
-
const [p, m] = e.useState(!1), [
|
|
3689
|
+
const [p, m] = e.useState(!1), [f, b] = e.useState(!1), { type: v, onFocus: h, onBlur: y } = n, E = u(
|
|
3668
3690
|
o,
|
|
3669
3691
|
Le[Oe],
|
|
3670
3692
|
Le[`${Oe}--${t}`],
|
|
@@ -3675,7 +3697,7 @@ const ci = (t) => {
|
|
|
3675
3697
|
[Le[`${Oe}--crop`]]: l,
|
|
3676
3698
|
[Le[`${Oe}--read-only`]]: n.readOnly
|
|
3677
3699
|
}
|
|
3678
|
-
), $ = r ? "var(--content-disabled)" : "var(--content-default)", w =
|
|
3700
|
+
), $ = r ? "var(--content-disabled)" : "var(--content-default)", w = f ? F_ : R_, C = _ && _.place === "left", g = _ && v !== "password" && _.place === "right", N = () => {
|
|
3679
3701
|
var S;
|
|
3680
3702
|
(S = s.current) == null || S.focus();
|
|
3681
3703
|
};
|
|
@@ -3683,7 +3705,7 @@ const ci = (t) => {
|
|
|
3683
3705
|
B,
|
|
3684
3706
|
{
|
|
3685
3707
|
as: "div",
|
|
3686
|
-
className:
|
|
3708
|
+
className: E,
|
|
3687
3709
|
"aria-disabled": r,
|
|
3688
3710
|
"tab-index": "0",
|
|
3689
3711
|
onClick: N
|
|
@@ -3691,16 +3713,16 @@ const ci = (t) => {
|
|
|
3691
3713
|
C && Yr(_, r),
|
|
3692
3714
|
/* @__PURE__ */ e.createElement(
|
|
3693
3715
|
"input",
|
|
3694
|
-
|
|
3716
|
+
T(k({}, n), {
|
|
3695
3717
|
ref: s,
|
|
3696
3718
|
onFocus: (S) => {
|
|
3697
3719
|
m(!0), h == null || h(S);
|
|
3698
3720
|
},
|
|
3699
3721
|
onBlur: (S) => {
|
|
3700
|
-
m(!1),
|
|
3722
|
+
m(!1), y == null || y(S);
|
|
3701
3723
|
},
|
|
3702
3724
|
disabled: r,
|
|
3703
|
-
type: v && !
|
|
3725
|
+
type: v && !f ? v : "text"
|
|
3704
3726
|
})
|
|
3705
3727
|
),
|
|
3706
3728
|
g && Yr(_, r),
|
|
@@ -3711,7 +3733,7 @@ const ci = (t) => {
|
|
|
3711
3733
|
kind: "text",
|
|
3712
3734
|
size: "compact",
|
|
3713
3735
|
icon: /* @__PURE__ */ e.createElement(x, { customColor: $, source: w }),
|
|
3714
|
-
onClick: () =>
|
|
3736
|
+
onClick: () => b((S) => !S),
|
|
3715
3737
|
className: Le[`${Oe}__visibility-button`]
|
|
3716
3738
|
}
|
|
3717
3739
|
)
|
|
@@ -3738,7 +3760,7 @@ const ci = (t) => {
|
|
|
3738
3760
|
)
|
|
3739
3761
|
}, r)
|
|
3740
3762
|
);
|
|
3741
|
-
}, Xl = "lc-Modal-module__modal__body___M-jmN", Jl = "lc-Modal-module__modal__header___Fp5VE", jl = "lc-Modal-module__modal__heading___G9KVK", Ql = "lc-Modal-module__modal__footer___2LYdc",
|
|
3763
|
+
}, Xl = "lc-Modal-module__modal__body___M-jmN", Jl = "lc-Modal-module__modal__header___Fp5VE", jl = "lc-Modal-module__modal__heading___G9KVK", Ql = "lc-Modal-module__modal__footer___2LYdc", se = {
|
|
3742
3764
|
"modal-base": "lc-Modal-module__modal-base___hbL1U",
|
|
3743
3765
|
"fade-in": "lc-Modal-module__fade-in___gWlGs",
|
|
3744
3766
|
"modal-base--full-space": "lc-Modal-module__modal-base--full-space___KcGFL",
|
|
@@ -3773,15 +3795,15 @@ const ci = (t) => {
|
|
|
3773
3795
|
"isLabelled"
|
|
3774
3796
|
]);
|
|
3775
3797
|
const s = u(
|
|
3776
|
-
|
|
3798
|
+
se[qt],
|
|
3777
3799
|
a,
|
|
3778
|
-
l &&
|
|
3800
|
+
l && se[`${qt}--full-space`]
|
|
3779
3801
|
);
|
|
3780
3802
|
e.useEffect(() => {
|
|
3781
3803
|
if (!_)
|
|
3782
3804
|
return;
|
|
3783
|
-
const m = (
|
|
3784
|
-
|
|
3805
|
+
const m = (f) => {
|
|
3806
|
+
f.key === de.esc && r();
|
|
3785
3807
|
};
|
|
3786
3808
|
return document.addEventListener("keyup", m, !0), () => document.removeEventListener("keyup", m, !0);
|
|
3787
3809
|
}, [_]);
|
|
@@ -3794,9 +3816,9 @@ const ci = (t) => {
|
|
|
3794
3816
|
"data-testid": "lc-modal-overlay",
|
|
3795
3817
|
onMouseDown: p,
|
|
3796
3818
|
className: u(
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
n &&
|
|
3819
|
+
se[`${qt}__overlay`],
|
|
3820
|
+
se[`${qt}__overlay--visible`],
|
|
3821
|
+
n && se[`${qt}__overlay--labelled`]
|
|
3800
3822
|
)
|
|
3801
3823
|
},
|
|
3802
3824
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3821,8 +3843,8 @@ const ci = (t) => {
|
|
|
3821
3843
|
"aria-label": "Close modal",
|
|
3822
3844
|
title: "Close modal",
|
|
3823
3845
|
className: u(
|
|
3824
|
-
|
|
3825
|
-
t &&
|
|
3846
|
+
se["modal-base__close"],
|
|
3847
|
+
t && se["modal-base__close--label-type"]
|
|
3826
3848
|
),
|
|
3827
3849
|
onClick: r,
|
|
3828
3850
|
icon: /* @__PURE__ */ e.createElement(x, { source: Ie, size: "medium", customColor: a })
|
|
@@ -3847,8 +3869,8 @@ const ci = (t) => {
|
|
|
3847
3869
|
"onClose",
|
|
3848
3870
|
"contentClassName"
|
|
3849
3871
|
]);
|
|
3850
|
-
const p = u(
|
|
3851
|
-
|
|
3872
|
+
const p = u(se[dt], a), m = typeof t == "string", f = (b) => {
|
|
3873
|
+
b.preventDefault(), b.stopPropagation(), n();
|
|
3852
3874
|
};
|
|
3853
3875
|
return /* @__PURE__ */ e.createElement(
|
|
3854
3876
|
en,
|
|
@@ -3858,12 +3880,12 @@ const ci = (t) => {
|
|
|
3858
3880
|
onClose: n,
|
|
3859
3881
|
isLabelled: !!_
|
|
3860
3882
|
}, d),
|
|
3861
|
-
_ && /* @__PURE__ */ e.createElement("div", { className:
|
|
3862
|
-
|
|
3883
|
+
_ && /* @__PURE__ */ e.createElement("div", { className: se[`${dt}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
3884
|
+
ne,
|
|
3863
3885
|
{
|
|
3864
3886
|
size: "sm",
|
|
3865
3887
|
as: "div",
|
|
3866
|
-
className:
|
|
3888
|
+
className: se[`${dt}__label-heading`]
|
|
3867
3889
|
},
|
|
3868
3890
|
_
|
|
3869
3891
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -3871,36 +3893,36 @@ const ci = (t) => {
|
|
|
3871
3893
|
{
|
|
3872
3894
|
labelType: !!_,
|
|
3873
3895
|
customColor: "var(--color-white)",
|
|
3874
|
-
onClick:
|
|
3896
|
+
onClick: f
|
|
3875
3897
|
}
|
|
3876
3898
|
)),
|
|
3877
3899
|
!_ && /* @__PURE__ */ e.createElement(
|
|
3878
3900
|
"div",
|
|
3879
3901
|
{
|
|
3880
|
-
className: u(
|
|
3881
|
-
[
|
|
3902
|
+
className: u(se[`${dt}__header`], {
|
|
3903
|
+
[se[`${dt}__header--without-heading`]]: !r
|
|
3882
3904
|
})
|
|
3883
3905
|
},
|
|
3884
3906
|
r && /* @__PURE__ */ e.createElement(
|
|
3885
|
-
|
|
3907
|
+
ne,
|
|
3886
3908
|
{
|
|
3887
3909
|
size: "sm",
|
|
3888
3910
|
as: "div",
|
|
3889
|
-
className:
|
|
3911
|
+
className: se[`${dt}__heading`]
|
|
3890
3912
|
},
|
|
3891
3913
|
r
|
|
3892
3914
|
),
|
|
3893
|
-
/* @__PURE__ */ e.createElement(Xr, { onClick:
|
|
3915
|
+
/* @__PURE__ */ e.createElement(Xr, { onClick: f })
|
|
3894
3916
|
),
|
|
3895
3917
|
/* @__PURE__ */ e.createElement(
|
|
3896
3918
|
"div",
|
|
3897
3919
|
{
|
|
3898
3920
|
"data-testid": "modal-body",
|
|
3899
|
-
className: u(
|
|
3921
|
+
className: u(se[`${dt}__body`], c)
|
|
3900
3922
|
},
|
|
3901
3923
|
m ? /* @__PURE__ */ e.createElement(B, { as: "div" }, t) : t
|
|
3902
3924
|
),
|
|
3903
|
-
l && /* @__PURE__ */ e.createElement("div", { className:
|
|
3925
|
+
l && /* @__PURE__ */ e.createElement("div", { className: se[`${dt}__footer`] }, l)
|
|
3904
3926
|
);
|
|
3905
3927
|
}, hi = ({
|
|
3906
3928
|
children: t,
|
|
@@ -3939,7 +3961,7 @@ const ci = (t) => {
|
|
|
3939
3961
|
k({
|
|
3940
3962
|
className: Zt[`${Xt}__heading-left-node`]
|
|
3941
3963
|
}, r)
|
|
3942
|
-
), /* @__PURE__ */ e.createElement("div", { className: Zt[`${Xt}__heading-body`] }, /* @__PURE__ */ e.createElement(
|
|
3964
|
+
), /* @__PURE__ */ e.createElement("div", { className: Zt[`${Xt}__heading-body`] }, /* @__PURE__ */ e.createElement(ne, { as: "div", size: "sm" }, t), _ && /* @__PURE__ */ e.createElement(
|
|
3943
3965
|
B,
|
|
3944
3966
|
{
|
|
3945
3967
|
as: "div",
|
|
@@ -3964,7 +3986,7 @@ const ci = (t) => {
|
|
|
3964
3986
|
}) => {
|
|
3965
3987
|
const c = u(Jt[jt], a);
|
|
3966
3988
|
return /* @__PURE__ */ e.createElement("div", { className: c }, r && /* @__PURE__ */ e.createElement("div", { className: Jt[`${jt}__icon`] }, r), _ && /* @__PURE__ */ e.createElement(
|
|
3967
|
-
|
|
3989
|
+
ne,
|
|
3968
3990
|
{
|
|
3969
3991
|
className: u(Jt[`${jt}__heading`], l)
|
|
3970
3992
|
},
|
|
@@ -3977,14 +3999,14 @@ const ci = (t) => {
|
|
|
3977
3999
|
},
|
|
3978
4000
|
t
|
|
3979
4001
|
), o && /* @__PURE__ */ e.createElement("div", { className: Jt[`${jt}__actions`] }, o));
|
|
3980
|
-
},
|
|
4002
|
+
}, Pt = {
|
|
3981
4003
|
"numeric-input": "lc-NumericInput-module__numeric-input___j1esc",
|
|
3982
4004
|
"numeric-input__increment": "lc-NumericInput-module__numeric-input__increment___i3Tys",
|
|
3983
4005
|
"numeric-input__decrement": "lc-NumericInput-module__numeric-input__decrement___3qgn0",
|
|
3984
4006
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___yaRvQ",
|
|
3985
4007
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___D90rG",
|
|
3986
4008
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___TMxRx"
|
|
3987
|
-
},
|
|
4009
|
+
}, At = "numeric-input", Ei = (s) => {
|
|
3988
4010
|
var p = s, {
|
|
3989
4011
|
className: t,
|
|
3990
4012
|
error: a,
|
|
@@ -4006,29 +4028,29 @@ const ci = (t) => {
|
|
|
4006
4028
|
"style",
|
|
4007
4029
|
"onChange"
|
|
4008
4030
|
]);
|
|
4009
|
-
const m = e.useRef(null),
|
|
4010
|
-
|
|
4031
|
+
const m = e.useRef(null), f = u(
|
|
4032
|
+
Pt[At],
|
|
4011
4033
|
{
|
|
4012
|
-
[
|
|
4013
|
-
[
|
|
4014
|
-
[
|
|
4034
|
+
[Pt[`${At}--error`]]: a,
|
|
4035
|
+
[Pt[`${At}--no-controls`]]: n,
|
|
4036
|
+
[Pt[`${At}--disabled`]]: l
|
|
4015
4037
|
},
|
|
4016
4038
|
t
|
|
4017
|
-
),
|
|
4039
|
+
), b = (g) => d(String(g)), v = (g) => _ !== void 0 && g > _ ? _ : o !== void 0 && g < o ? o : g, h = (g) => {
|
|
4018
4040
|
const N = parseInt(r, 10) + g;
|
|
4019
|
-
return
|
|
4020
|
-
},
|
|
4021
|
-
g.key ===
|
|
4022
|
-
},
|
|
4041
|
+
return b(v(N));
|
|
4042
|
+
}, y = (g) => {
|
|
4043
|
+
g.key === de.arrowDown && (g.preventDefault(), h(-1)), g.key === de.arrowUp && (g.preventDefault(), h(1));
|
|
4044
|
+
}, E = (g, N) => N !== void 0 && parseInt(g, 10) === N, $ = (g) => {
|
|
4023
4045
|
g.preventDefault(), g.stopPropagation();
|
|
4024
4046
|
const N = g.currentTarget.value.replace(
|
|
4025
4047
|
/((?!([-]|([-]?\d+))).)/,
|
|
4026
4048
|
""
|
|
4027
4049
|
);
|
|
4028
4050
|
if (N === "" || N === "-")
|
|
4029
|
-
return
|
|
4051
|
+
return b(N);
|
|
4030
4052
|
const S = parseInt(N, 10);
|
|
4031
|
-
return
|
|
4053
|
+
return b(v(S));
|
|
4032
4054
|
}, w = () => {
|
|
4033
4055
|
var g;
|
|
4034
4056
|
return (g = m.current) == null || g.focus(), h(1);
|
|
@@ -4036,16 +4058,16 @@ const ci = (t) => {
|
|
|
4036
4058
|
var g;
|
|
4037
4059
|
return (g = m.current) == null || g.focus(), h(-1);
|
|
4038
4060
|
};
|
|
4039
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
4061
|
+
return /* @__PURE__ */ e.createElement("div", { className: f, style: c }, /* @__PURE__ */ e.createElement(
|
|
4040
4062
|
"input",
|
|
4041
|
-
|
|
4063
|
+
T(k({
|
|
4042
4064
|
type: "text",
|
|
4043
4065
|
ref: m
|
|
4044
4066
|
}, i), {
|
|
4045
4067
|
value: r,
|
|
4046
4068
|
disabled: l,
|
|
4047
4069
|
onChange: $,
|
|
4048
|
-
onKeyDown:
|
|
4070
|
+
onKeyDown: y,
|
|
4049
4071
|
min: o,
|
|
4050
4072
|
max: _
|
|
4051
4073
|
})
|
|
@@ -4053,17 +4075,17 @@ const ci = (t) => {
|
|
|
4053
4075
|
"button",
|
|
4054
4076
|
{
|
|
4055
4077
|
tabIndex: -1,
|
|
4056
|
-
disabled: l ||
|
|
4078
|
+
disabled: l || E(r, _),
|
|
4057
4079
|
onClick: w,
|
|
4058
4080
|
"aria-label": "Increment value",
|
|
4059
|
-
className:
|
|
4081
|
+
className: Pt[`${At}__increment`],
|
|
4060
4082
|
type: "button"
|
|
4061
4083
|
},
|
|
4062
4084
|
/* @__PURE__ */ e.createElement(
|
|
4063
4085
|
x,
|
|
4064
4086
|
{
|
|
4065
4087
|
source: Oa,
|
|
4066
|
-
disabled: l ||
|
|
4088
|
+
disabled: l || E(r, _),
|
|
4067
4089
|
kind: "primary"
|
|
4068
4090
|
}
|
|
4069
4091
|
)
|
|
@@ -4071,9 +4093,9 @@ const ci = (t) => {
|
|
|
4071
4093
|
"button",
|
|
4072
4094
|
{
|
|
4073
4095
|
tabIndex: -1,
|
|
4074
|
-
disabled: l ||
|
|
4096
|
+
disabled: l || E(r, o),
|
|
4075
4097
|
"aria-label": "Decrement value",
|
|
4076
|
-
className:
|
|
4098
|
+
className: Pt[`${At}__decrement`],
|
|
4077
4099
|
onClick: C,
|
|
4078
4100
|
type: "button"
|
|
4079
4101
|
},
|
|
@@ -4082,11 +4104,11 @@ const ci = (t) => {
|
|
|
4082
4104
|
{
|
|
4083
4105
|
source: Ot,
|
|
4084
4106
|
kind: "primary",
|
|
4085
|
-
disabled: l ||
|
|
4107
|
+
disabled: l || E(r, o)
|
|
4086
4108
|
}
|
|
4087
4109
|
)
|
|
4088
4110
|
)));
|
|
4089
|
-
},
|
|
4111
|
+
}, oe = {
|
|
4090
4112
|
"checklist-item": "lc-CheckListItem-module__checklist-item___t4CCN",
|
|
4091
4113
|
"checklist-item--active": "lc-CheckListItem-module__checklist-item--active___mZ8df",
|
|
4092
4114
|
"checklist-item__check-mark": "lc-CheckListItem-module__checklist-item__check-mark___sZkv4",
|
|
@@ -4102,93 +4124,104 @@ const ci = (t) => {
|
|
|
4102
4124
|
"checklist-item__content__inner__description": "lc-CheckListItem-module__checklist-item__content__inner__description___FBp5h",
|
|
4103
4125
|
"checklist-item__content__inner__cta": "lc-CheckListItem-module__checklist-item__content__inner__cta___4s0rt",
|
|
4104
4126
|
"checklist-item__chevron": "lc-CheckListItem-module__checklist-item__chevron___1Fmqp"
|
|
4105
|
-
},
|
|
4127
|
+
}, le = "checklist-item", tn = 3, an = ({
|
|
4106
4128
|
id: t,
|
|
4107
4129
|
isActive: a,
|
|
4108
4130
|
isChecked: r,
|
|
4109
4131
|
isLastElement: _,
|
|
4110
4132
|
title: o,
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4133
|
+
titleHint: l,
|
|
4134
|
+
description: n,
|
|
4135
|
+
onClick: c,
|
|
4136
|
+
cta: d
|
|
4114
4137
|
}) => {
|
|
4115
|
-
const
|
|
4138
|
+
const i = e.useRef(null), s = e.useRef(null), [p, m] = e.useState(0), f = e.useRef(p);
|
|
4116
4139
|
return e.useEffect(() => {
|
|
4117
|
-
a &&
|
|
4140
|
+
a && i.current && i.current.focus();
|
|
4118
4141
|
}, [a]), e.useEffect(() => {
|
|
4119
4142
|
const b = !!window.ResizeObserver;
|
|
4120
|
-
if (
|
|
4121
|
-
const
|
|
4122
|
-
const
|
|
4123
|
-
if (!
|
|
4143
|
+
if (s.current && b) {
|
|
4144
|
+
const v = new ResizeObserver((h) => {
|
|
4145
|
+
const y = h[0];
|
|
4146
|
+
if (!y)
|
|
4124
4147
|
return;
|
|
4125
|
-
const E =
|
|
4126
|
-
|
|
4148
|
+
const E = y.contentRect.height + tn;
|
|
4149
|
+
f.current !== E && (m(E), f.current = E);
|
|
4127
4150
|
});
|
|
4128
|
-
return
|
|
4151
|
+
return v.observe(s.current), () => v.disconnect();
|
|
4129
4152
|
}
|
|
4130
|
-
}, [
|
|
4153
|
+
}, [s]), /* @__PURE__ */ e.createElement(
|
|
4131
4154
|
"div",
|
|
4132
4155
|
{
|
|
4133
|
-
className: u(le
|
|
4134
|
-
[
|
|
4156
|
+
className: u(oe[le], {
|
|
4157
|
+
[oe[`${le}--active`]]: a
|
|
4135
4158
|
})
|
|
4136
4159
|
},
|
|
4137
4160
|
/* @__PURE__ */ e.createElement(
|
|
4138
4161
|
"span",
|
|
4139
4162
|
{
|
|
4140
|
-
className: u(
|
|
4141
|
-
[
|
|
4163
|
+
className: u(oe[`${le}__check-mark`], {
|
|
4164
|
+
[oe[`${le}__check-mark--checked`]]: r
|
|
4142
4165
|
})
|
|
4143
4166
|
},
|
|
4144
4167
|
r && /* @__PURE__ */ e.createElement(x, { size: "small", source: ia }),
|
|
4145
|
-
!_ && /* @__PURE__ */ e.createElement("span", { className:
|
|
4168
|
+
!_ && /* @__PURE__ */ e.createElement("span", { className: oe[`${le}__check-mark__line`] })
|
|
4146
4169
|
),
|
|
4147
4170
|
/* @__PURE__ */ e.createElement(
|
|
4148
4171
|
"div",
|
|
4149
4172
|
{
|
|
4150
|
-
ref:
|
|
4173
|
+
ref: i,
|
|
4151
4174
|
"data-testid": `checklist-item-${t}`,
|
|
4152
4175
|
"aria-expanded": a,
|
|
4153
4176
|
tabIndex: 0,
|
|
4154
|
-
onFocus: a ? void 0 : () =>
|
|
4155
|
-
onClick: a ? void 0 : () =>
|
|
4156
|
-
className: u(
|
|
4157
|
-
[
|
|
4177
|
+
onFocus: a ? void 0 : () => c(t),
|
|
4178
|
+
onClick: a ? void 0 : () => c(t),
|
|
4179
|
+
className: u(oe[`${le}__content`], {
|
|
4180
|
+
[oe[`${le}__content--open`]]: a
|
|
4158
4181
|
})
|
|
4159
4182
|
},
|
|
4160
4183
|
/* @__PURE__ */ e.createElement(
|
|
4161
|
-
|
|
4184
|
+
ne,
|
|
4162
4185
|
{
|
|
4163
4186
|
size: "xs",
|
|
4164
|
-
className: u(
|
|
4165
|
-
[
|
|
4166
|
-
[
|
|
4187
|
+
className: u(oe[`${le}__content__label`], {
|
|
4188
|
+
[oe[`${le}__content__label--open`]]: a,
|
|
4189
|
+
[oe[`${le}__content__label--checked`]]: r
|
|
4167
4190
|
})
|
|
4168
4191
|
},
|
|
4169
|
-
o
|
|
4192
|
+
o,
|
|
4193
|
+
" ",
|
|
4194
|
+
l && /* @__PURE__ */ e.createElement(
|
|
4195
|
+
B,
|
|
4196
|
+
{
|
|
4197
|
+
noMargin: !0,
|
|
4198
|
+
size: "lg",
|
|
4199
|
+
className: oe[`${le}__content__hint`]
|
|
4200
|
+
},
|
|
4201
|
+
l
|
|
4202
|
+
)
|
|
4170
4203
|
),
|
|
4171
4204
|
/* @__PURE__ */ e.createElement(
|
|
4172
4205
|
"div",
|
|
4173
4206
|
{
|
|
4174
|
-
className: u(
|
|
4175
|
-
[
|
|
4207
|
+
className: u(oe[`${le}__content__inner`], {
|
|
4208
|
+
[oe[`${le}__content__inner--open`]]: a
|
|
4176
4209
|
}),
|
|
4177
|
-
style: { maxHeight: a ?
|
|
4210
|
+
style: { maxHeight: a ? p : 0 }
|
|
4178
4211
|
},
|
|
4179
|
-
/* @__PURE__ */ e.createElement("div", { ref:
|
|
4212
|
+
/* @__PURE__ */ e.createElement("div", { ref: s }, /* @__PURE__ */ e.createElement(
|
|
4180
4213
|
B,
|
|
4181
4214
|
{
|
|
4182
4215
|
size: "lg",
|
|
4183
|
-
className:
|
|
4216
|
+
className: oe[`${le}__content__inner__description`]
|
|
4184
4217
|
},
|
|
4185
|
-
|
|
4186
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
4218
|
+
n
|
|
4219
|
+
), /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__content__inner__cta`] }, d))
|
|
4187
4220
|
),
|
|
4188
|
-
!a && /* @__PURE__ */ e.createElement("div", { className:
|
|
4221
|
+
!a && /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__chevron`] }, /* @__PURE__ */ e.createElement(x, { source: La }))
|
|
4189
4222
|
)
|
|
4190
4223
|
);
|
|
4191
|
-
},
|
|
4224
|
+
}, Q = {
|
|
4192
4225
|
"onboarding-checklist": "lc-OnboardingChecklist-module__onboarding-checklist___xwJSs",
|
|
4193
4226
|
"onboarding-checklist--complete": "lc-OnboardingChecklist-module__onboarding-checklist--complete___7guKi",
|
|
4194
4227
|
"onboarding-checklist__complete": "lc-OnboardingChecklist-module__onboarding-checklist__complete___MWabe",
|
|
@@ -4205,7 +4238,7 @@ const ci = (t) => {
|
|
|
4205
4238
|
"onboarding-checklist__button": "lc-OnboardingChecklist-module__onboarding-checklist__button___Gnl9l",
|
|
4206
4239
|
"onboarding-checklist__button__icon": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon___oW59S",
|
|
4207
4240
|
"onboarding-checklist__button__icon--open": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon--open___HrIjs"
|
|
4208
|
-
},
|
|
4241
|
+
}, ee = "onboarding-checklist", yi = ({
|
|
4209
4242
|
activeItemId: t,
|
|
4210
4243
|
completedItemsIds: a,
|
|
4211
4244
|
title: r,
|
|
@@ -4218,8 +4251,8 @@ const ci = (t) => {
|
|
|
4218
4251
|
className: i
|
|
4219
4252
|
}) => {
|
|
4220
4253
|
var $;
|
|
4221
|
-
const [s, p] = e.useState(c), [m,
|
|
4222
|
-
|
|
4254
|
+
const [s, p] = e.useState(c), [m, f] = e.useState(!c), [b, v] = e.useState(void 0), h = e.useRef(null), y = d.height || 96, E = () => {
|
|
4255
|
+
f((w) => !w);
|
|
4223
4256
|
};
|
|
4224
4257
|
return e.useEffect(() => {
|
|
4225
4258
|
const w = d.delay || 1500, C = h.current;
|
|
@@ -4227,7 +4260,7 @@ const ci = (t) => {
|
|
|
4227
4260
|
const g = C.offsetHeight;
|
|
4228
4261
|
v(g);
|
|
4229
4262
|
const N = setTimeout(() => {
|
|
4230
|
-
p(!0),
|
|
4263
|
+
p(!0), f(!1);
|
|
4231
4264
|
}, w);
|
|
4232
4265
|
return () => {
|
|
4233
4266
|
clearTimeout(N);
|
|
@@ -4238,37 +4271,38 @@ const ci = (t) => {
|
|
|
4238
4271
|
{
|
|
4239
4272
|
ref: h,
|
|
4240
4273
|
className: u(
|
|
4241
|
-
|
|
4274
|
+
Q[ee],
|
|
4242
4275
|
{
|
|
4243
|
-
[
|
|
4276
|
+
[Q[`${ee}--complete`]]: s && !m
|
|
4244
4277
|
},
|
|
4245
4278
|
i
|
|
4246
4279
|
),
|
|
4247
4280
|
style: {
|
|
4248
|
-
height: !s || m ?
|
|
4281
|
+
height: !s || m ? b : y
|
|
4249
4282
|
}
|
|
4250
4283
|
},
|
|
4251
|
-
m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className:
|
|
4284
|
+
m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Q[`${ee}__column`] }, /* @__PURE__ */ e.createElement("div", { className: Q[`${ee}__header`] }, _ && /* @__PURE__ */ e.createElement(
|
|
4252
4285
|
B,
|
|
4253
4286
|
{
|
|
4254
4287
|
size: "lg",
|
|
4255
|
-
className:
|
|
4288
|
+
className: Q[`${ee}__header__label`]
|
|
4256
4289
|
},
|
|
4257
4290
|
_
|
|
4258
4291
|
), /* @__PURE__ */ e.createElement(
|
|
4259
|
-
|
|
4292
|
+
ne,
|
|
4260
4293
|
{
|
|
4261
4294
|
size: "lg",
|
|
4262
|
-
className:
|
|
4295
|
+
className: Q[`${ee}__header__title`]
|
|
4263
4296
|
},
|
|
4264
4297
|
r
|
|
4265
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
4298
|
+
)), /* @__PURE__ */ e.createElement("div", { className: Q[`${ee}__checklist`] }, o.map((w, C) => /* @__PURE__ */ e.createElement(
|
|
4266
4299
|
an,
|
|
4267
4300
|
{
|
|
4268
4301
|
key: C,
|
|
4269
4302
|
id: w.id,
|
|
4270
4303
|
description: w.description,
|
|
4271
4304
|
title: w.title,
|
|
4305
|
+
titleHint: w.titleHint,
|
|
4272
4306
|
isActive: w.id === t,
|
|
4273
4307
|
isChecked: a.includes(w.id),
|
|
4274
4308
|
isLastElement: C === o.length - 1,
|
|
@@ -4279,33 +4313,33 @@ const ci = (t) => {
|
|
|
4279
4313
|
"div",
|
|
4280
4314
|
{
|
|
4281
4315
|
className: u(
|
|
4282
|
-
|
|
4283
|
-
|
|
4316
|
+
Q[`${ee}__column`],
|
|
4317
|
+
Q[`${ee}__column--right`],
|
|
4284
4318
|
n
|
|
4285
4319
|
)
|
|
4286
4320
|
},
|
|
4287
|
-
!c && /* @__PURE__ */ e.createElement("div", { className:
|
|
4288
|
-
c && /* @__PURE__ */ e.createElement("div", { className:
|
|
4321
|
+
!c && /* @__PURE__ */ e.createElement("div", { className: Q[`${ee}__placeholder`] }, ($ = o.find((w) => w.id === t)) == null ? void 0 : $.placeholder),
|
|
4322
|
+
c && /* @__PURE__ */ e.createElement("div", { className: Q[`${ee}__placeholder`] }, d.placeholder)
|
|
4289
4323
|
)),
|
|
4290
|
-
!m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className:
|
|
4324
|
+
!m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Q[`${ee}__complete`] }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
4291
4325
|
x,
|
|
4292
4326
|
{
|
|
4293
4327
|
size: "large",
|
|
4294
|
-
className:
|
|
4328
|
+
className: Q[`${ee}__complete__icon`],
|
|
4295
4329
|
source: vr
|
|
4296
4330
|
}
|
|
4297
4331
|
)), /* @__PURE__ */ e.createElement("div", null, (d == null ? void 0 : d.greetingText) && /* @__PURE__ */ e.createElement(
|
|
4298
4332
|
B,
|
|
4299
4333
|
{
|
|
4300
4334
|
size: "lg",
|
|
4301
|
-
className:
|
|
4335
|
+
className: Q[`${ee}__complete__label`]
|
|
4302
4336
|
},
|
|
4303
4337
|
d.greetingText
|
|
4304
4338
|
), /* @__PURE__ */ e.createElement(
|
|
4305
|
-
|
|
4339
|
+
ne,
|
|
4306
4340
|
{
|
|
4307
4341
|
size: "sm",
|
|
4308
|
-
className:
|
|
4342
|
+
className: Q[`${ee}__complete__title`]
|
|
4309
4343
|
},
|
|
4310
4344
|
d.title
|
|
4311
4345
|
)))),
|
|
@@ -4318,13 +4352,13 @@ const ci = (t) => {
|
|
|
4318
4352
|
{
|
|
4319
4353
|
source: Ot,
|
|
4320
4354
|
className: u(
|
|
4321
|
-
|
|
4322
|
-
m &&
|
|
4355
|
+
Q[`${ee}__button__icon`],
|
|
4356
|
+
m && Q[`${ee}__button__icon--open`]
|
|
4323
4357
|
)
|
|
4324
4358
|
}
|
|
4325
4359
|
),
|
|
4326
|
-
className:
|
|
4327
|
-
onClick:
|
|
4360
|
+
className: Q[`${ee}__button`],
|
|
4361
|
+
onClick: E,
|
|
4328
4362
|
"aria-expanded": m
|
|
4329
4363
|
}
|
|
4330
4364
|
)
|
|
@@ -4359,7 +4393,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4359
4393
|
"picker-list__item__label": "lc-PickerListItem-module__picker-list__item__label___e0uwB",
|
|
4360
4394
|
"picker-list__item__main-label": "lc-PickerListItem-module__picker-list__item__main-label___YfUhr",
|
|
4361
4395
|
"picker-list__item__secondary-label": "lc-PickerListItem-module__picker-list__item__secondary-label___6xcMD"
|
|
4362
|
-
},
|
|
4396
|
+
}, Pe = "picker-list__item", nn = ({
|
|
4363
4397
|
index: t,
|
|
4364
4398
|
isActive: a,
|
|
4365
4399
|
isSelected: r,
|
|
@@ -4369,37 +4403,37 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4369
4403
|
item: n,
|
|
4370
4404
|
numberOfItems: c
|
|
4371
4405
|
}) => {
|
|
4372
|
-
const d = (s) => s != null && s.customElement ? /* @__PURE__ */ e.createElement("div", { className: fe[`${
|
|
4406
|
+
const d = (s) => s != null && s.customElement ? /* @__PURE__ */ e.createElement("div", { className: fe[`${Pe}__custom`] }, s.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, s.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
4373
4407
|
Dl,
|
|
4374
4408
|
{
|
|
4375
|
-
className: fe[`${
|
|
4409
|
+
className: fe[`${Pe}__checkbox`],
|
|
4376
4410
|
checked: r
|
|
4377
4411
|
}
|
|
4378
4412
|
), s.icon && /* @__PURE__ */ e.createElement(
|
|
4379
4413
|
x,
|
|
4380
4414
|
{
|
|
4381
|
-
className: fe[`${
|
|
4415
|
+
className: fe[`${Pe}__icon`],
|
|
4382
4416
|
kind: "link",
|
|
4383
4417
|
source: s.icon
|
|
4384
4418
|
}
|
|
4385
4419
|
), s.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
4386
4420
|
"img",
|
|
4387
4421
|
{
|
|
4388
|
-
className: u(fe[`${
|
|
4422
|
+
className: u(fe[`${Pe}__avatar`]),
|
|
4389
4423
|
src: s.avatarSrc,
|
|
4390
4424
|
alt: s.name
|
|
4391
4425
|
}
|
|
4392
|
-
), /* @__PURE__ */ e.createElement("div", { className: fe[`${
|
|
4426
|
+
), /* @__PURE__ */ e.createElement("div", { className: fe[`${Pe}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
4393
4427
|
B,
|
|
4394
4428
|
{
|
|
4395
4429
|
as: "span",
|
|
4396
|
-
className: u([fe[`${
|
|
4397
|
-
[fe[`${
|
|
4430
|
+
className: u([fe[`${Pe}__label`]], {
|
|
4431
|
+
[fe[`${Pe}__main-label`]]: s.secondaryText
|
|
4398
4432
|
}),
|
|
4399
4433
|
"aria-disabled": s.disabled
|
|
4400
4434
|
},
|
|
4401
4435
|
s.name
|
|
4402
|
-
), s.secondaryText && /* @__PURE__ */ e.createElement("span", { className: fe[`${
|
|
4436
|
+
), s.secondaryText && /* @__PURE__ */ e.createElement("span", { className: fe[`${Pe}__secondary-label`] }, s.secondaryText)));
|
|
4403
4437
|
if (n.groupHeader)
|
|
4404
4438
|
return /* @__PURE__ */ e.createElement(
|
|
4405
4439
|
"div",
|
|
@@ -4407,16 +4441,16 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4407
4441
|
id: `item-${t}`,
|
|
4408
4442
|
key: n.key,
|
|
4409
4443
|
role: "group",
|
|
4410
|
-
className: fe[`${
|
|
4444
|
+
className: fe[`${Pe}__header`]
|
|
4411
4445
|
}, l()),
|
|
4412
|
-
/* @__PURE__ */ e.createElement(
|
|
4446
|
+
/* @__PURE__ */ e.createElement(ne, { size: "2xs", uppercase: !0, bold: !0, as: "div" }, n.name)
|
|
4413
4447
|
);
|
|
4414
4448
|
const i = (s) => {
|
|
4415
4449
|
!n.disabled && o(s);
|
|
4416
4450
|
};
|
|
4417
4451
|
return /* @__PURE__ */ e.createElement(
|
|
4418
4452
|
"div",
|
|
4419
|
-
|
|
4453
|
+
T(k({
|
|
4420
4454
|
id: n.key,
|
|
4421
4455
|
key: n.key,
|
|
4422
4456
|
tabIndex: a ? 0 : -1,
|
|
@@ -4440,8 +4474,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4440
4474
|
"aria-selected": r,
|
|
4441
4475
|
"aria-disabled": n.disabled,
|
|
4442
4476
|
"aria-current": a && !n.disabled,
|
|
4443
|
-
className: u(fe[
|
|
4444
|
-
[fe[`${
|
|
4477
|
+
className: u(fe[Pe], {
|
|
4478
|
+
[fe[`${Pe}--select-all`]]: n.key === Mt
|
|
4445
4479
|
})
|
|
4446
4480
|
},
|
|
4447
4481
|
d(n),
|
|
@@ -4474,17 +4508,17 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4474
4508
|
getFloatingProps: s,
|
|
4475
4509
|
getItemProps: p,
|
|
4476
4510
|
emptyStateText: m = "No results found",
|
|
4477
|
-
pickerType:
|
|
4478
|
-
listClassName:
|
|
4511
|
+
pickerType: f = "single",
|
|
4512
|
+
listClassName: b,
|
|
4479
4513
|
virtuosoProps: v
|
|
4480
4514
|
}) => {
|
|
4481
|
-
const [h,
|
|
4515
|
+
const [h, y] = e.useState(0), E = o.length, $ = e.useCallback(
|
|
4482
4516
|
(C) => {
|
|
4483
|
-
C !== h && (C < _ ?
|
|
4517
|
+
C !== h && (C < _ ? y(C + (E - 1) * rn) : y(_));
|
|
4484
4518
|
},
|
|
4485
|
-
[
|
|
4519
|
+
[E]
|
|
4486
4520
|
);
|
|
4487
|
-
if (
|
|
4521
|
+
if (Ft(() => {
|
|
4488
4522
|
c.current = new Array(o.length);
|
|
4489
4523
|
}, [o.length]), o.length === 0)
|
|
4490
4524
|
return /* @__PURE__ */ e.createElement(mr, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
@@ -4504,8 +4538,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4504
4538
|
"data-testid": "picker-list",
|
|
4505
4539
|
ref: a,
|
|
4506
4540
|
tabIndex: -1,
|
|
4507
|
-
className: u(Qt.listbox,
|
|
4508
|
-
style:
|
|
4541
|
+
className: u(Qt.listbox, b),
|
|
4542
|
+
style: T(k({}, r), {
|
|
4509
4543
|
maxHeight: _
|
|
4510
4544
|
})
|
|
4511
4545
|
},
|
|
@@ -4513,7 +4547,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4513
4547
|
"div",
|
|
4514
4548
|
k({
|
|
4515
4549
|
tabIndex: 0,
|
|
4516
|
-
"aria-multiselectable":
|
|
4550
|
+
"aria-multiselectable": f === "multi",
|
|
4517
4551
|
className: Qt["listbox-wrapper"]
|
|
4518
4552
|
}, s({
|
|
4519
4553
|
onKeyDown(C) {
|
|
@@ -4528,7 +4562,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4528
4562
|
})),
|
|
4529
4563
|
/* @__PURE__ */ e.createElement(
|
|
4530
4564
|
lo,
|
|
4531
|
-
|
|
4565
|
+
T(k({
|
|
4532
4566
|
totalListHeightChanged: $,
|
|
4533
4567
|
style: { height: `${h}px`, maxHeight: _ },
|
|
4534
4568
|
totalCount: o.length,
|
|
@@ -4545,7 +4579,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4545
4579
|
isSelected: w(g.key),
|
|
4546
4580
|
onSelect: i,
|
|
4547
4581
|
item: g,
|
|
4548
|
-
numberOfItems:
|
|
4582
|
+
numberOfItems: E
|
|
4549
4583
|
}
|
|
4550
4584
|
)
|
|
4551
4585
|
})
|
|
@@ -4570,7 +4604,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4570
4604
|
"picker-trigger--disabled": "lc-PickerTrigger-module__picker-trigger--disabled___4MGb4",
|
|
4571
4605
|
"picker-trigger--focused": "lc-PickerTrigger-module__picker-trigger--focused___vBA4d",
|
|
4572
4606
|
"picker-trigger--error": "lc-PickerTrigger-module__picker-trigger--error___yu6Dt"
|
|
4573
|
-
},
|
|
4607
|
+
}, ie = "picker-trigger", dn = ({
|
|
4574
4608
|
setReference: t,
|
|
4575
4609
|
getReferenceProps: a,
|
|
4576
4610
|
testId: r,
|
|
@@ -4584,43 +4618,43 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4584
4618
|
isError: s,
|
|
4585
4619
|
onClear: p,
|
|
4586
4620
|
children: m,
|
|
4587
|
-
setTriggerFocus:
|
|
4621
|
+
setTriggerFocus: f
|
|
4588
4622
|
}) => {
|
|
4589
|
-
const
|
|
4590
|
-
be[
|
|
4591
|
-
be[`${
|
|
4592
|
-
o && be[`${
|
|
4593
|
-
o && l && be[`${
|
|
4594
|
-
c && be[`${
|
|
4595
|
-
i && be[`${
|
|
4596
|
-
s && be[`${
|
|
4597
|
-
), v = !n && l && !c && !d, h = (
|
|
4598
|
-
|
|
4623
|
+
const b = u(
|
|
4624
|
+
be[ie],
|
|
4625
|
+
be[`${ie}--${_}`],
|
|
4626
|
+
o && be[`${ie}--multi-select`],
|
|
4627
|
+
o && l && be[`${ie}--multi-select--with-items`],
|
|
4628
|
+
c && be[`${ie}--disabled`],
|
|
4629
|
+
i && be[`${ie}--focused`],
|
|
4630
|
+
s && be[`${ie}--error`]
|
|
4631
|
+
), v = !n && l && !c && !d, h = (y) => {
|
|
4632
|
+
y.stopPropagation(), p();
|
|
4599
4633
|
};
|
|
4600
4634
|
return e.useEffect(() => {
|
|
4601
|
-
i ||
|
|
4635
|
+
i || f(!1);
|
|
4602
4636
|
}, [i]), /* @__PURE__ */ e.createElement(
|
|
4603
4637
|
"button",
|
|
4604
|
-
|
|
4638
|
+
T(k({
|
|
4605
4639
|
tabIndex: c ? -1 : 0,
|
|
4606
4640
|
"aria-disabled": c,
|
|
4607
4641
|
disabled: c,
|
|
4608
|
-
className:
|
|
4642
|
+
className: b,
|
|
4609
4643
|
"data-testid": r,
|
|
4610
4644
|
ref: t,
|
|
4611
4645
|
type: "button"
|
|
4612
4646
|
}, a()), {
|
|
4613
|
-
onFocus: () =>
|
|
4614
|
-
onBlur: () =>
|
|
4647
|
+
onFocus: () => f(!0),
|
|
4648
|
+
onBlur: () => f(!1)
|
|
4615
4649
|
}),
|
|
4616
4650
|
/* @__PURE__ */ e.createElement(
|
|
4617
4651
|
B,
|
|
4618
4652
|
{
|
|
4619
4653
|
as: "div",
|
|
4620
4654
|
className: u(
|
|
4621
|
-
be[`${
|
|
4622
|
-
be[`${
|
|
4623
|
-
o && l && be[`${
|
|
4655
|
+
be[`${ie}__content`],
|
|
4656
|
+
be[`${ie}__content--${_}`],
|
|
4657
|
+
o && l && be[`${ie}__content--with-items`]
|
|
4624
4658
|
)
|
|
4625
4659
|
},
|
|
4626
4660
|
m
|
|
@@ -4629,15 +4663,15 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4629
4663
|
"div",
|
|
4630
4664
|
{
|
|
4631
4665
|
className: u(
|
|
4632
|
-
be[`${
|
|
4633
|
-
be[`${
|
|
4666
|
+
be[`${ie}__controls`],
|
|
4667
|
+
be[`${ie}__controls--${_}`]
|
|
4634
4668
|
)
|
|
4635
4669
|
},
|
|
4636
4670
|
v && /* @__PURE__ */ e.createElement(
|
|
4637
4671
|
"div",
|
|
4638
4672
|
{
|
|
4639
|
-
"data-testid": `${
|
|
4640
|
-
className: be[`${
|
|
4673
|
+
"data-testid": `${ie}__clear-icon`,
|
|
4674
|
+
className: be[`${ie}__clear-icon`],
|
|
4641
4675
|
onClick: h
|
|
4642
4676
|
},
|
|
4643
4677
|
/* @__PURE__ */ e.createElement(x, { kind: "primary", size: "small", source: Ie })
|
|
@@ -4645,7 +4679,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4645
4679
|
/* @__PURE__ */ e.createElement(
|
|
4646
4680
|
x,
|
|
4647
4681
|
{
|
|
4648
|
-
className: be[`${
|
|
4682
|
+
className: be[`${ie}__chevron-icon`],
|
|
4649
4683
|
source: i ? Oa : Ot,
|
|
4650
4684
|
size: "medium",
|
|
4651
4685
|
disabled: c
|
|
@@ -4702,8 +4736,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4702
4736
|
rightNode: s,
|
|
4703
4737
|
customColor: p,
|
|
4704
4738
|
iconOnly: m = !1,
|
|
4705
|
-
value:
|
|
4706
|
-
} = h,
|
|
4739
|
+
value: f
|
|
4740
|
+
} = h, b = D(h, [
|
|
4707
4741
|
"className",
|
|
4708
4742
|
"children",
|
|
4709
4743
|
"dismissible",
|
|
@@ -4719,7 +4753,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4719
4753
|
"iconOnly",
|
|
4720
4754
|
"value"
|
|
4721
4755
|
]);
|
|
4722
|
-
const
|
|
4756
|
+
const y = _ || c && m, E = u(
|
|
4723
4757
|
we[Ce],
|
|
4724
4758
|
t,
|
|
4725
4759
|
we[`${Ce}--${l}`],
|
|
@@ -4728,7 +4762,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4728
4762
|
[we[`${Ce}--outline`]]: d,
|
|
4729
4763
|
[we[`${Ce}--${fn(p)}`]]: !!p,
|
|
4730
4764
|
[we[`${Ce}--icon-only`]]: m,
|
|
4731
|
-
[we[`${Ce}--dismissible-on-hover`]]:
|
|
4765
|
+
[we[`${Ce}--dismissible-on-hover`]]: y
|
|
4732
4766
|
}
|
|
4733
4767
|
), $ = l === "small" ? "small" : "medium", w = l === "small" ? "sm" : "md", C = () => p ? d ? {
|
|
4734
4768
|
style: {
|
|
@@ -4742,9 +4776,9 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4742
4776
|
};
|
|
4743
4777
|
return /* @__PURE__ */ e.createElement(
|
|
4744
4778
|
B,
|
|
4745
|
-
|
|
4746
|
-
className:
|
|
4747
|
-
},
|
|
4779
|
+
T(k(k({
|
|
4780
|
+
className: E
|
|
4781
|
+
}, b), C()), {
|
|
4748
4782
|
as: "div",
|
|
4749
4783
|
size: w
|
|
4750
4784
|
}),
|
|
@@ -4756,7 +4790,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4756
4790
|
style: { color: g() }
|
|
4757
4791
|
},
|
|
4758
4792
|
i
|
|
4759
|
-
), /* @__PURE__ */ e.createElement("div", { className: we[`${Ce}__content`] },
|
|
4793
|
+
), /* @__PURE__ */ e.createElement("div", { className: we[`${Ce}__content`] }, f || a), s && !m && /* @__PURE__ */ e.createElement(
|
|
4760
4794
|
"div",
|
|
4761
4795
|
{
|
|
4762
4796
|
"data-testid": "lc-tag-right-node",
|
|
@@ -4774,7 +4808,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4774
4808
|
role: "button",
|
|
4775
4809
|
"aria-label": "Remove tag",
|
|
4776
4810
|
className: u(we[`${Ce}__remove`], {
|
|
4777
|
-
[we[`${Ce}__remove--hover`]]:
|
|
4811
|
+
[we[`${Ce}__remove--hover`]]: y
|
|
4778
4812
|
})
|
|
4779
4813
|
},
|
|
4780
4814
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4820,19 +4854,19 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4820
4854
|
onFilter: s,
|
|
4821
4855
|
onClear: p,
|
|
4822
4856
|
searchPhrase: m,
|
|
4823
|
-
virtualItemRef:
|
|
4824
|
-
isTriggerFocused:
|
|
4857
|
+
virtualItemRef: f,
|
|
4858
|
+
isTriggerFocused: b,
|
|
4825
4859
|
inputRef: v
|
|
4826
4860
|
}) => {
|
|
4827
4861
|
const h = t && !a;
|
|
4828
4862
|
e.useEffect(() => {
|
|
4829
4863
|
n && v != null && v.current && v.current.focus();
|
|
4830
4864
|
}, [o, n]);
|
|
4831
|
-
const
|
|
4865
|
+
const y = (g) => {
|
|
4832
4866
|
g.key === "Backspace" && o && o.length > 0 && (g.preventDefault(), l === "multi" ? d(o[o.length - 1].key) : p()), g.key === "Delete" && (g.preventDefault(), p());
|
|
4833
4867
|
};
|
|
4834
|
-
e.useEffect(() => (!t &&
|
|
4835
|
-
const
|
|
4868
|
+
e.useEffect(() => (!t && b ? document.addEventListener("keydown", y) : document.removeEventListener("keydown", y), () => document.removeEventListener("keydown", y)), [t, o, b]);
|
|
4869
|
+
const E = (g) => l === "single" && t && !a ? null : g != null && g.customElement ? /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item`] }, g.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item`] }, g.icon && /* @__PURE__ */ e.createElement(
|
|
4836
4870
|
x,
|
|
4837
4871
|
{
|
|
4838
4872
|
source: g.icon,
|
|
@@ -4847,7 +4881,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4847
4881
|
}
|
|
4848
4882
|
), /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item__content`] }, g.name)), $ = (g) => s(g.target.value), w = (g) => {
|
|
4849
4883
|
var N, S;
|
|
4850
|
-
(N =
|
|
4884
|
+
(N = f.current) != null && N.id && g.key === "Enter" && i((S = f.current) == null ? void 0 : S.id), l === "multi" && (g.key === "Backspace" || g.key === "Delete") && !m && o && (o == null ? void 0 : o.length) > 0 && d(o[o.length - 1].key);
|
|
4851
4885
|
}, C = () => /* @__PURE__ */ e.createElement(
|
|
4852
4886
|
"input",
|
|
4853
4887
|
{
|
|
@@ -4879,7 +4913,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4879
4913
|
[he[`${ve}--single`]]: l === "single"
|
|
4880
4914
|
})
|
|
4881
4915
|
},
|
|
4882
|
-
/* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item-container`] }, l === "single" ?
|
|
4916
|
+
/* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item-container`] }, l === "single" ? E(o[0]) : o.map((g) => /* @__PURE__ */ e.createElement(
|
|
4883
4917
|
h_,
|
|
4884
4918
|
{
|
|
4885
4919
|
key: g.key,
|
|
@@ -4892,7 +4926,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4892
4926
|
N.stopPropagation(), d(g.key);
|
|
4893
4927
|
}
|
|
4894
4928
|
},
|
|
4895
|
-
|
|
4929
|
+
E(g)
|
|
4896
4930
|
))),
|
|
4897
4931
|
h && C()
|
|
4898
4932
|
);
|
|
@@ -4909,7 +4943,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4909
4943
|
onVisibilityChange: i,
|
|
4910
4944
|
searchPhrase: s
|
|
4911
4945
|
}) => {
|
|
4912
|
-
const p = sa(), [m,
|
|
4946
|
+
const p = sa(), [m, f] = e.useState(!1), [b, v] = e.useState(null), [h, y] = e.useState(o), E = e.useRef([]), $ = e.useRef(null);
|
|
4913
4947
|
e.useEffect(() => {
|
|
4914
4948
|
$.current = null, v(null);
|
|
4915
4949
|
}, [s]);
|
|
@@ -4925,16 +4959,16 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4925
4959
|
Ua({ padding: 10 }),
|
|
4926
4960
|
Er(),
|
|
4927
4961
|
__({
|
|
4928
|
-
apply({ availableHeight:
|
|
4962
|
+
apply({ availableHeight: L, rects: U, elements: $e }) {
|
|
4929
4963
|
l_.flushSync(() => {
|
|
4930
|
-
|
|
4964
|
+
y(
|
|
4931
4965
|
Math.max(
|
|
4932
|
-
Math.min(o,
|
|
4966
|
+
Math.min(o, L),
|
|
4933
4967
|
_
|
|
4934
4968
|
)
|
|
4935
4969
|
);
|
|
4936
4970
|
}), Object.assign($e.floating.style, {
|
|
4937
|
-
width: `${
|
|
4971
|
+
width: `${U.reference.width}px`
|
|
4938
4972
|
});
|
|
4939
4973
|
},
|
|
4940
4974
|
padding: hn
|
|
@@ -4944,36 +4978,36 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4944
4978
|
enabled: !t,
|
|
4945
4979
|
keyboardHandlers: !1,
|
|
4946
4980
|
toggle: !1
|
|
4947
|
-
}, c)), M = fa(g, { role: "listbox" }),
|
|
4981
|
+
}, c)), M = fa(g, { role: "listbox" }), G = ga(g, n), I = ao(g, {
|
|
4948
4982
|
enabled: a.length > 0 && !t,
|
|
4949
|
-
listRef:
|
|
4950
|
-
activeIndex:
|
|
4983
|
+
listRef: E,
|
|
4984
|
+
activeIndex: b,
|
|
4951
4985
|
onNavigate: v,
|
|
4952
4986
|
virtual: !0,
|
|
4953
4987
|
virtualItemRef: $,
|
|
4954
4988
|
disabledIndices: ln(
|
|
4955
4989
|
a,
|
|
4956
|
-
(
|
|
4990
|
+
(L) => !!L.disabled || !!L.groupHeader
|
|
4957
4991
|
)
|
|
4958
|
-
}), { getReferenceProps:
|
|
4959
|
-
[S,
|
|
4992
|
+
}), { getReferenceProps: O, getFloatingProps: Y, getItemProps: X } = ba(
|
|
4993
|
+
[S, G, M, I]
|
|
4960
4994
|
);
|
|
4961
|
-
return !d && m &&
|
|
4962
|
-
getReferenceProps:
|
|
4963
|
-
getFloatingProps:
|
|
4964
|
-
getItemProps:
|
|
4995
|
+
return !d && m && f(!1), {
|
|
4996
|
+
getReferenceProps: O,
|
|
4997
|
+
getFloatingProps: Y,
|
|
4998
|
+
getItemProps: X,
|
|
4965
4999
|
setReference: w.setReference,
|
|
4966
5000
|
floatingStyles: C,
|
|
4967
5001
|
isPositioned: N,
|
|
4968
5002
|
context: g,
|
|
4969
5003
|
nodeId: p,
|
|
4970
5004
|
setFloating: w.setFloating,
|
|
4971
|
-
activeIndex:
|
|
4972
|
-
listElementsRef:
|
|
5005
|
+
activeIndex: b,
|
|
5006
|
+
listElementsRef: E,
|
|
4973
5007
|
virtualItemRef: $,
|
|
4974
5008
|
maxHeight: h,
|
|
4975
5009
|
pointer: m,
|
|
4976
|
-
setPointer:
|
|
5010
|
+
setPointer: f
|
|
4977
5011
|
};
|
|
4978
5012
|
}, kn = ({
|
|
4979
5013
|
selected: t,
|
|
@@ -4987,18 +5021,18 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4987
5021
|
}) => {
|
|
4988
5022
|
const [d, i] = e.useState(
|
|
4989
5023
|
() => (t == null ? void 0 : t.map(lr)) || []
|
|
4990
|
-
), s = t !== void 0, p = s ? (t == null ? void 0 : t.map(lr)) || [] : d, [m,
|
|
4991
|
-
!s && i([]), o(null),
|
|
4992
|
-
},
|
|
4993
|
-
|
|
4994
|
-
},
|
|
5024
|
+
), s = t !== void 0, p = s ? (t == null ? void 0 : t.map(lr)) || [] : d, [m, f] = e.useState(""), b = (w) => f(w), v = (w) => $(w), h = () => {
|
|
5025
|
+
!s && i([]), o(null), f(""), l(!1);
|
|
5026
|
+
}, y = () => {
|
|
5027
|
+
b(""), c.current && (c.current.value = "");
|
|
5028
|
+
}, E = e.useMemo(() => {
|
|
4995
5029
|
const w = r === "multi" && _;
|
|
4996
5030
|
let C = a;
|
|
4997
5031
|
return m && (C = C.filter((g) => {
|
|
4998
|
-
var
|
|
5032
|
+
var G;
|
|
4999
5033
|
if (g.groupHeader)
|
|
5000
5034
|
return !1;
|
|
5001
|
-
const N = m.toLowerCase(), S = g.name.toLowerCase(), M = (
|
|
5035
|
+
const N = m.toLowerCase(), S = g.name.toLowerCase(), M = (G = g.secondaryText) == null ? void 0 : G.toLowerCase();
|
|
5002
5036
|
return S.includes(N) || (M == null ? void 0 : M.includes(N));
|
|
5003
5037
|
})), w && C.length > 1 && (C = [
|
|
5004
5038
|
{
|
|
@@ -5026,22 +5060,22 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5026
5060
|
const N = Jr(g, w);
|
|
5027
5061
|
return o(a.filter(({ key: S }) => N.includes(S))), N;
|
|
5028
5062
|
});
|
|
5029
|
-
n &&
|
|
5063
|
+
n && y();
|
|
5030
5064
|
}
|
|
5031
5065
|
};
|
|
5032
5066
|
return {
|
|
5033
5067
|
selectedKeys: p,
|
|
5034
|
-
items:
|
|
5068
|
+
items: E,
|
|
5035
5069
|
searchPhrase: m,
|
|
5036
5070
|
handleSelect: $,
|
|
5037
|
-
handleOnFilter:
|
|
5071
|
+
handleOnFilter: b,
|
|
5038
5072
|
handleItemRemove: v,
|
|
5039
5073
|
handleClear: h
|
|
5040
5074
|
};
|
|
5041
5075
|
}, En = {
|
|
5042
5076
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___2EDne"
|
|
5043
|
-
}, wi = (
|
|
5044
|
-
var
|
|
5077
|
+
}, wi = (Y) => {
|
|
5078
|
+
var X = Y, {
|
|
5045
5079
|
id: t,
|
|
5046
5080
|
className: a,
|
|
5047
5081
|
listClassName: r,
|
|
@@ -5055,12 +5089,12 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5055
5089
|
placeholder: s = "Select option",
|
|
5056
5090
|
isRequired: p,
|
|
5057
5091
|
noSearchResultText: m = "No results found",
|
|
5058
|
-
selectAllOptionText:
|
|
5059
|
-
type:
|
|
5092
|
+
selectAllOptionText: f,
|
|
5093
|
+
type: b = "single",
|
|
5060
5094
|
searchDisabled: v = !1,
|
|
5061
5095
|
hideClearButton: h,
|
|
5062
|
-
isVisible:
|
|
5063
|
-
onOpen:
|
|
5096
|
+
isVisible: y,
|
|
5097
|
+
onOpen: E,
|
|
5064
5098
|
onClose: $,
|
|
5065
5099
|
openedOnInit: w = !1,
|
|
5066
5100
|
clearSearchAfterSelection: C = !0,
|
|
@@ -5068,9 +5102,9 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5068
5102
|
placement: N,
|
|
5069
5103
|
floatingStrategy: S,
|
|
5070
5104
|
useDismissHookProps: M,
|
|
5071
|
-
useClickHookProps:
|
|
5072
|
-
virtuosoProps:
|
|
5073
|
-
} =
|
|
5105
|
+
useClickHookProps: G,
|
|
5106
|
+
virtuosoProps: I
|
|
5107
|
+
} = X, O = D(X, [
|
|
5074
5108
|
"id",
|
|
5075
5109
|
"className",
|
|
5076
5110
|
"listClassName",
|
|
@@ -5100,27 +5134,27 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5100
5134
|
"useClickHookProps",
|
|
5101
5135
|
"virtuosoProps"
|
|
5102
5136
|
]);
|
|
5103
|
-
const [
|
|
5104
|
-
Gt ? !Ne && (
|
|
5137
|
+
const [L, U] = e.useState(w), [$e, Ke] = e.useState(!1), Ue = y !== void 0, Ne = Ue ? y : L, $t = e.useRef(null), ft = (Gt, me) => {
|
|
5138
|
+
Gt ? !Ne && (E == null || E(me)) : Ne && ($ == null || $(me)), !Ue && U(Gt);
|
|
5105
5139
|
}, {
|
|
5106
|
-
selectedKeys:
|
|
5107
|
-
items:
|
|
5140
|
+
selectedKeys: Nt,
|
|
5141
|
+
items: bt,
|
|
5108
5142
|
searchPhrase: lt,
|
|
5109
|
-
handleSelect:
|
|
5110
|
-
handleOnFilter:
|
|
5111
|
-
handleItemRemove:
|
|
5112
|
-
handleClear:
|
|
5143
|
+
handleSelect: ht,
|
|
5144
|
+
handleOnFilter: St,
|
|
5145
|
+
handleItemRemove: xt,
|
|
5146
|
+
handleClear: P
|
|
5113
5147
|
} = kn({
|
|
5114
5148
|
selected: d,
|
|
5115
5149
|
options: c,
|
|
5116
|
-
type:
|
|
5117
|
-
selectAllOptionText:
|
|
5150
|
+
type: b,
|
|
5151
|
+
selectAllOptionText: f,
|
|
5118
5152
|
onSelect: g,
|
|
5119
|
-
setOpen:
|
|
5153
|
+
setOpen: ft,
|
|
5120
5154
|
clearSearchAfterSelection: C,
|
|
5121
|
-
inputRef:
|
|
5155
|
+
inputRef: $t
|
|
5122
5156
|
}), {
|
|
5123
|
-
context:
|
|
5157
|
+
context: V,
|
|
5124
5158
|
nodeId: ue,
|
|
5125
5159
|
getReferenceProps: Ye,
|
|
5126
5160
|
setReference: qe,
|
|
@@ -5136,15 +5170,15 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5136
5170
|
} = vn({
|
|
5137
5171
|
openedOnInit: w,
|
|
5138
5172
|
disabled: l,
|
|
5139
|
-
items:
|
|
5173
|
+
items: bt,
|
|
5140
5174
|
placement: N,
|
|
5141
5175
|
minListHeight: _,
|
|
5142
5176
|
maxListHeight: o,
|
|
5143
5177
|
floatingStrategy: S,
|
|
5144
|
-
useClickHookProps:
|
|
5178
|
+
useClickHookProps: G,
|
|
5145
5179
|
useDismissHookProps: M,
|
|
5146
5180
|
isOpen: Ne,
|
|
5147
|
-
onVisibilityChange:
|
|
5181
|
+
onVisibilityChange: ft,
|
|
5148
5182
|
searchPhrase: lt
|
|
5149
5183
|
});
|
|
5150
5184
|
return /* @__PURE__ */ e.createElement("div", { id: t, className: u(En["picker-wrapper"], a) }, /* @__PURE__ */ e.createElement(
|
|
@@ -5152,15 +5186,15 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5152
5186
|
{
|
|
5153
5187
|
getReferenceProps: Ye,
|
|
5154
5188
|
setReference: qe,
|
|
5155
|
-
testId:
|
|
5156
|
-
isItemSelected:
|
|
5189
|
+
testId: O["data-testid"],
|
|
5190
|
+
isItemSelected: Nt.length > 0,
|
|
5157
5191
|
isOpen: Ne,
|
|
5158
|
-
onClear:
|
|
5192
|
+
onClear: P,
|
|
5159
5193
|
hideClearButton: h,
|
|
5160
5194
|
isDisabled: l,
|
|
5161
5195
|
isError: n,
|
|
5162
5196
|
isRequired: p,
|
|
5163
|
-
isMultiSelect:
|
|
5197
|
+
isMultiSelect: b === "multi",
|
|
5164
5198
|
size: i,
|
|
5165
5199
|
setTriggerFocus: Ke
|
|
5166
5200
|
},
|
|
@@ -5172,14 +5206,14 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5172
5206
|
isDisabled: l,
|
|
5173
5207
|
placeholder: s,
|
|
5174
5208
|
selectedItems: d,
|
|
5175
|
-
type:
|
|
5209
|
+
type: b,
|
|
5176
5210
|
size: i,
|
|
5177
5211
|
clearSearchAfterSelection: C,
|
|
5178
|
-
inputRef:
|
|
5179
|
-
onItemRemove:
|
|
5180
|
-
onSelect:
|
|
5181
|
-
onFilter:
|
|
5182
|
-
onClear:
|
|
5212
|
+
inputRef: $t,
|
|
5213
|
+
onItemRemove: xt,
|
|
5214
|
+
onSelect: ht,
|
|
5215
|
+
onFilter: St,
|
|
5216
|
+
onClear: P,
|
|
5183
5217
|
searchPhrase: lt,
|
|
5184
5218
|
virtualItemRef: Za,
|
|
5185
5219
|
isTriggerFocused: $e
|
|
@@ -5188,22 +5222,22 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5188
5222
|
), /* @__PURE__ */ e.createElement(ha, { id: ue }, Ne && /* @__PURE__ */ e.createElement(o_, null, /* @__PURE__ */ e.createElement(
|
|
5189
5223
|
sn,
|
|
5190
5224
|
{
|
|
5191
|
-
pickerType:
|
|
5192
|
-
options:
|
|
5225
|
+
pickerType: b,
|
|
5226
|
+
options: bt,
|
|
5193
5227
|
listClassName: r,
|
|
5194
|
-
context:
|
|
5228
|
+
context: V,
|
|
5195
5229
|
setFloating: Ka,
|
|
5196
5230
|
floatingStyles: Ya,
|
|
5197
5231
|
maxHeight: Ja,
|
|
5198
5232
|
activeIndex: Xa,
|
|
5199
|
-
selectedKeys:
|
|
5233
|
+
selectedKeys: Nt,
|
|
5200
5234
|
listElementsRef: qa,
|
|
5201
5235
|
setPointer: ja,
|
|
5202
|
-
onSelect:
|
|
5236
|
+
onSelect: ht,
|
|
5203
5237
|
getFloatingProps: Wa,
|
|
5204
5238
|
getItemProps: Va,
|
|
5205
5239
|
emptyStateText: m,
|
|
5206
|
-
virtuosoProps:
|
|
5240
|
+
virtuosoProps: I
|
|
5207
5241
|
}
|
|
5208
5242
|
))));
|
|
5209
5243
|
}, yn = "lc-Popover-module__popover___8X1b2", wn = {
|
|
@@ -5222,44 +5256,44 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5222
5256
|
openedOnInit: s,
|
|
5223
5257
|
closeOnEsc: p = !0,
|
|
5224
5258
|
useDismissHookProps: m,
|
|
5225
|
-
useClickHookProps:
|
|
5226
|
-
floatingStrategy:
|
|
5259
|
+
useClickHookProps: f,
|
|
5260
|
+
floatingStrategy: b
|
|
5227
5261
|
}) => {
|
|
5228
|
-
const [v, h] = e.useState(s),
|
|
5262
|
+
const [v, h] = e.useState(s), y = Ga(), E = sa(), $ = i !== void 0, w = $ ? i : v, C = typeof _ == "string", g = typeof t == "function", N = (Ke, Ue) => {
|
|
5229
5263
|
Ke ? r == null || r(Ue) : a == null || a(Ue), !$ && h(Ke);
|
|
5230
|
-
}, { refs: S, context: M, floatingStyles:
|
|
5231
|
-
nodeId:
|
|
5264
|
+
}, { refs: S, context: M, floatingStyles: G } = da({
|
|
5265
|
+
nodeId: E,
|
|
5232
5266
|
open: w,
|
|
5233
5267
|
onOpenChange: N,
|
|
5234
5268
|
middleware: [ua(d), Ua(c), Er()],
|
|
5235
5269
|
placement: n,
|
|
5236
|
-
strategy:
|
|
5270
|
+
strategy: b,
|
|
5237
5271
|
whileElementsMounted: ma
|
|
5238
|
-
}),
|
|
5272
|
+
}), I = pa(M, f), O = ga(M, k({
|
|
5239
5273
|
escapeKey: p
|
|
5240
|
-
}, m)),
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
]),
|
|
5274
|
+
}, m)), Y = fa(M), { getReferenceProps: X, getFloatingProps: L } = ba([
|
|
5275
|
+
I,
|
|
5276
|
+
O,
|
|
5277
|
+
Y
|
|
5278
|
+
]), U = u(wn.popover, o), $e = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
5245
5279
|
"div",
|
|
5246
|
-
|
|
5280
|
+
T(k({
|
|
5247
5281
|
"data-testid": "popover-trigger-button",
|
|
5248
5282
|
ref: S.setReference
|
|
5249
|
-
},
|
|
5283
|
+
}, X()), {
|
|
5250
5284
|
className: l
|
|
5251
5285
|
}),
|
|
5252
5286
|
g ? t() : t
|
|
5253
|
-
), /* @__PURE__ */ e.createElement(ha, { id:
|
|
5287
|
+
), /* @__PURE__ */ e.createElement(ha, { id: E }, w && /* @__PURE__ */ e.createElement(mr, { context: M, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
5254
5288
|
"div",
|
|
5255
5289
|
k({
|
|
5256
|
-
className:
|
|
5290
|
+
className: U,
|
|
5257
5291
|
ref: S.setFloating,
|
|
5258
|
-
style:
|
|
5259
|
-
},
|
|
5292
|
+
style: G
|
|
5293
|
+
}, L()),
|
|
5260
5294
|
C ? /* @__PURE__ */ e.createElement(B, { as: "div" }, _) : _
|
|
5261
5295
|
))));
|
|
5262
|
-
return
|
|
5296
|
+
return y === null ? /* @__PURE__ */ e.createElement(Ha, null, $e) : $e;
|
|
5263
5297
|
};
|
|
5264
5298
|
function Cn(t, a, r, _) {
|
|
5265
5299
|
return _ && t === 0 ? _ : t === 1 ? a : r;
|
|
@@ -5362,14 +5396,14 @@ const Be = {
|
|
|
5362
5396
|
nameAdornment: p
|
|
5363
5397
|
},
|
|
5364
5398
|
onClick: m,
|
|
5365
|
-
isActive:
|
|
5399
|
+
isActive: f = !1
|
|
5366
5400
|
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, c && /* @__PURE__ */ e.createElement("div", { className: Qe[`${et}__divider`] }), /* @__PURE__ */ e.createElement(
|
|
5367
5401
|
"a",
|
|
5368
5402
|
{
|
|
5369
5403
|
href: n,
|
|
5370
5404
|
target: "_blank",
|
|
5371
5405
|
"aria-label": `Go to ${l} product`,
|
|
5372
|
-
onClick: (
|
|
5406
|
+
onClick: (b) => m(b, t),
|
|
5373
5407
|
className: u(Qe[et], {
|
|
5374
5408
|
[Qe[`${et}--expired`]]: i
|
|
5375
5409
|
})
|
|
@@ -5382,7 +5416,7 @@ const Be = {
|
|
|
5382
5416
|
expired: i,
|
|
5383
5417
|
backgroundColors: _,
|
|
5384
5418
|
notificationCount: o,
|
|
5385
|
-
withBorder:
|
|
5419
|
+
withBorder: f
|
|
5386
5420
|
}
|
|
5387
5421
|
), /* @__PURE__ */ e.createElement(B, { as: "div", bold: !0, className: Qe[`${et}__name`] }, l, i && /* @__PURE__ */ e.createElement(
|
|
5388
5422
|
Lt,
|
|
@@ -5430,23 +5464,24 @@ const Be = {
|
|
|
5430
5464
|
isVisible: _,
|
|
5431
5465
|
onOpen: o,
|
|
5432
5466
|
onClose: l,
|
|
5433
|
-
onSelect: n
|
|
5467
|
+
onSelect: n,
|
|
5468
|
+
textURL: c = "https://www.text.com"
|
|
5434
5469
|
}) => {
|
|
5435
|
-
const [
|
|
5470
|
+
const [d, i] = e.useState(r), [s, p] = I_(
|
|
5436
5471
|
!1
|
|
5437
|
-
),
|
|
5438
|
-
|
|
5439
|
-
}, { refs:
|
|
5440
|
-
nodeId:
|
|
5472
|
+
), m = Ga(), f = sa(), b = _ !== void 0, v = b ? _ : d, h = (L, U) => {
|
|
5473
|
+
L ? o == null || o(U) : l == null || l(U), !b && i(L);
|
|
5474
|
+
}, { refs: y, context: E, floatingStyles: $ } = da({
|
|
5475
|
+
nodeId: f,
|
|
5441
5476
|
strategy: "fixed",
|
|
5442
5477
|
placement: "right-start",
|
|
5443
|
-
open:
|
|
5444
|
-
onOpenChange: (
|
|
5445
|
-
|
|
5478
|
+
open: v,
|
|
5479
|
+
onOpenChange: (L, U) => {
|
|
5480
|
+
p(!1), h(L, U);
|
|
5446
5481
|
},
|
|
5447
5482
|
middleware: [ua({ mainAxis: 5 })],
|
|
5448
5483
|
whileElementsMounted: ma
|
|
5449
|
-
}),
|
|
5484
|
+
}), w = pa(E), C = fa(E), g = ga(E), { isMounted: N, styles: S } = kr(E, {
|
|
5450
5485
|
duration: 200,
|
|
5451
5486
|
common: {
|
|
5452
5487
|
transformOrigin: "left top"
|
|
@@ -5455,26 +5490,26 @@ const Be = {
|
|
|
5455
5490
|
opacity: 0,
|
|
5456
5491
|
transform: "scale(0.84) translateX(-22px)"
|
|
5457
5492
|
}
|
|
5458
|
-
}), { getReferenceProps:
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
]),
|
|
5463
|
-
(
|
|
5493
|
+
}), { getReferenceProps: M, getFloatingProps: G } = ba([
|
|
5494
|
+
w,
|
|
5495
|
+
g,
|
|
5496
|
+
C
|
|
5497
|
+
]), I = t.find(
|
|
5498
|
+
(L) => L.id === a
|
|
5464
5499
|
);
|
|
5465
|
-
if (!
|
|
5500
|
+
if (!I)
|
|
5466
5501
|
return null;
|
|
5467
|
-
const
|
|
5468
|
-
U === a &&
|
|
5469
|
-
},
|
|
5470
|
-
(
|
|
5502
|
+
const O = (L, U) => {
|
|
5503
|
+
U === a && L.preventDefault(), i(!1), n == null || n(U);
|
|
5504
|
+
}, Y = t.reduce(
|
|
5505
|
+
(L, U) => L + (U.notificationCount || 0),
|
|
5471
5506
|
0
|
|
5472
|
-
),
|
|
5507
|
+
), X = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", k({ ref: y.setReference }, M()), /* @__PURE__ */ e.createElement(
|
|
5473
5508
|
Lt,
|
|
5474
5509
|
{
|
|
5475
|
-
isVisible:
|
|
5476
|
-
onOpen: () =>
|
|
5477
|
-
onClose: () =>
|
|
5510
|
+
isVisible: s,
|
|
5511
|
+
onOpen: () => p(!0),
|
|
5512
|
+
onClose: () => p(!1),
|
|
5478
5513
|
offsetCrossAxis: 2,
|
|
5479
5514
|
arrowOffsetY: 2,
|
|
5480
5515
|
offsetMainAxis: 10,
|
|
@@ -5485,48 +5520,56 @@ const Be = {
|
|
|
5485
5520
|
v_,
|
|
5486
5521
|
{
|
|
5487
5522
|
isMainProduct: !0,
|
|
5488
|
-
icon:
|
|
5489
|
-
iconColor:
|
|
5490
|
-
backgroundColors:
|
|
5491
|
-
notificationCount:
|
|
5523
|
+
icon: I.icon,
|
|
5524
|
+
iconColor: I.iconColor,
|
|
5525
|
+
backgroundColors: I.backgroundColors,
|
|
5526
|
+
notificationCount: Y
|
|
5492
5527
|
}
|
|
5493
5528
|
)
|
|
5494
5529
|
},
|
|
5495
5530
|
"Switch product"
|
|
5496
|
-
)), /* @__PURE__ */ e.createElement(ha, { id:
|
|
5531
|
+
)), /* @__PURE__ */ e.createElement(ha, { id: f }, /* @__PURE__ */ e.createElement(
|
|
5497
5532
|
"div",
|
|
5498
5533
|
k({
|
|
5499
|
-
ref:
|
|
5500
|
-
style:
|
|
5501
|
-
},
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
{
|
|
5505
|
-
key: O.id,
|
|
5506
|
-
isActive: O.id === a,
|
|
5507
|
-
product: O,
|
|
5508
|
-
onClick: T
|
|
5509
|
-
}
|
|
5510
|
-
))), /* @__PURE__ */ e.createElement("div", { className: ea[`${ta}__footer`] }, /* @__PURE__ */ e.createElement(
|
|
5511
|
-
"a",
|
|
5534
|
+
ref: y.setFloating,
|
|
5535
|
+
style: $
|
|
5536
|
+
}, G()),
|
|
5537
|
+
N && /* @__PURE__ */ e.createElement(
|
|
5538
|
+
"div",
|
|
5512
5539
|
{
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
className: ea[`${ta}__footer-link`],
|
|
5516
|
-
onClick: () => v(!1)
|
|
5540
|
+
className: u("lc-dark-theme", ea[ta]),
|
|
5541
|
+
style: S
|
|
5517
5542
|
},
|
|
5518
|
-
/* @__PURE__ */ e.createElement(
|
|
5519
|
-
|
|
5520
|
-
x,
|
|
5543
|
+
/* @__PURE__ */ e.createElement("div", { className: ea[`${ta}__content`] }, t.map((L) => /* @__PURE__ */ e.createElement(
|
|
5544
|
+
$n,
|
|
5521
5545
|
{
|
|
5522
|
-
|
|
5523
|
-
|
|
5524
|
-
|
|
5546
|
+
key: L.id,
|
|
5547
|
+
isActive: L.id === a,
|
|
5548
|
+
product: L,
|
|
5549
|
+
onClick: O
|
|
5525
5550
|
}
|
|
5526
|
-
)
|
|
5527
|
-
|
|
5551
|
+
))),
|
|
5552
|
+
/* @__PURE__ */ e.createElement("div", { className: ea[`${ta}__footer`] }, /* @__PURE__ */ e.createElement(
|
|
5553
|
+
"a",
|
|
5554
|
+
{
|
|
5555
|
+
href: c,
|
|
5556
|
+
target: "_blank",
|
|
5557
|
+
className: ea[`${ta}__footer-link`],
|
|
5558
|
+
onClick: () => h(!1)
|
|
5559
|
+
},
|
|
5560
|
+
/* @__PURE__ */ e.createElement(B, { noMargin: !0 }, "powered by"),
|
|
5561
|
+
/* @__PURE__ */ e.createElement(
|
|
5562
|
+
x,
|
|
5563
|
+
{
|
|
5564
|
+
size: "xlarge",
|
|
5565
|
+
source: M_,
|
|
5566
|
+
customColor: "var(--content-locked-white)"
|
|
5567
|
+
}
|
|
5568
|
+
)
|
|
5569
|
+
))
|
|
5570
|
+
)
|
|
5528
5571
|
)));
|
|
5529
|
-
return
|
|
5572
|
+
return m === null ? /* @__PURE__ */ e.createElement(Ha, null, X) : X;
|
|
5530
5573
|
}, Nn = 'data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_24854_8994)"%3E%3Crect width="40" height="40" fill="%230066FF"/%3E%3Cg filter="url(%23filter0_f_24854_8994)"%3E%3Cpath d="M32.6382 31.0816C41.9891 31.0816 49.5694 23.5012 49.5694 14.1504C49.5694 4.79953 41.9891 -2.78082 32.6382 -2.78082C23.2874 -2.78082 15.707 4.79953 15.707 14.1504C15.707 23.5012 23.2874 31.0816 32.6382 31.0816Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter1_f_24854_8994)"%3E%3Cpath d="M10.417 50.1292C19.7679 50.1292 27.3482 42.5488 27.3482 33.198C27.3482 23.8471 19.7679 16.2668 10.417 16.2668C1.0662 16.2668 -6.51416 23.8471 -6.51416 33.198C-6.51416 42.5488 1.0662 50.1292 10.417 50.1292Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter2_f_24854_8994)"%3E%3Cpath d="M9.35788 16.2667C15.2022 16.2667 19.9399 11.529 19.9399 5.68472C19.9399 -0.159555 15.2022 -4.89728 9.35788 -4.89728C3.5136 -4.89728 -1.22412 -0.159555 -1.22412 5.68472C-1.22412 11.529 3.5136 16.2667 9.35788 16.2667Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter3_f_24854_8994)"%3E%3Cpath d="M7.24274 18.3831C13.6714 18.3831 18.8829 13.1716 18.8829 6.74292C18.8829 0.314217 13.6714 -4.89728 7.24274 -4.89728C0.814034 -4.89728 -4.39746 0.314217 -4.39746 6.74292C-4.39746 13.1716 0.814034 18.3831 7.24274 18.3831Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter4_f_24854_8994)"%3E%3Cpath d="M8.29938 21.5577C14.7281 21.5577 19.9396 16.3462 19.9396 9.91748C19.9396 3.48878 14.7281 -1.72272 8.29938 -1.72272C1.87068 -1.72272 -3.34082 3.48878 -3.34082 9.91748C-3.34082 16.3462 1.87068 21.5577 8.29938 21.5577Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter5_f_24854_8994)"%3E%3Cpath d="M33.6973 45.8964C40.126 45.8964 45.3375 40.6849 45.3375 34.2562C45.3375 27.8275 40.126 22.616 33.6973 22.616C27.2686 22.616 22.0571 27.8275 22.0571 34.2562C22.0571 40.6849 27.2686 45.8964 33.6973 45.8964Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter6_f_24854_8994)"%3E%3Cpath d="M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter7_f_24854_8994)"%3E%3Cpath d="M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter8_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter9_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter10_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter11_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter12_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter13_f_24854_8994)"%3E%3Cpath d="M9.35898 38.489C12.8655 38.489 15.7082 35.6463 15.7082 32.1398C15.7082 28.6332 12.8655 25.7906 9.35898 25.7906C5.8524 25.7906 3.00977 28.6332 3.00977 32.1398C3.00977 35.6463 5.8524 38.489 9.35898 38.489Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter14_f_24854_8994)"%3E%3Cpath d="M38.9871 31.0816C46.5846 31.0816 52.7437 24.9225 52.7437 17.325C52.7437 9.7274 46.5846 3.56836 38.9871 3.56836C31.3895 3.56836 25.2305 9.7274 25.2305 17.325C25.2305 24.9225 31.3895 31.0816 38.9871 31.0816Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter15_f_24854_8994)"%3E%3Cpath d="M38.9879 25.7905C45.4166 25.7905 50.6281 20.579 50.6281 14.1503C50.6281 7.72157 45.4166 2.51007 38.9879 2.51007C32.5592 2.51007 27.3477 7.72157 27.3477 14.1503C27.3477 20.579 32.5592 25.7905 38.9879 25.7905Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter16_f_24854_8994)"%3E%3Cpath d="M9.35868 21.5578C14.0341 21.5578 17.8243 17.7676 17.8243 13.0922C17.8243 8.41674 14.0341 4.62656 9.35868 4.62656C4.68325 4.62656 0.893066 8.41674 0.893066 13.0922C0.893066 17.7676 4.68325 21.5578 9.35868 21.5578Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter17_f_24854_8994)"%3E%3Cpath d="M31.5797 18.3831C35.0862 18.3831 37.9289 15.5404 37.9289 12.0339C37.9289 8.5273 35.0862 5.68466 31.5797 5.68466C28.0731 5.68466 25.2305 8.5273 25.2305 12.0339C25.2305 15.5404 28.0731 18.3831 31.5797 18.3831Z" fill="%23FF2E00"/%3E%3C/g%3E%3Cg filter="url(%23filter18_f_24854_8994)"%3E%3Cpath d="M12.5312 14.1503C18.3755 14.1503 23.1132 9.41257 23.1132 3.5683C23.1132 -2.27598 18.3755 -7.0137 12.5312 -7.0137C6.68694 -7.0137 1.94922 -2.27598 1.94922 3.5683C1.94922 9.41257 6.68694 14.1503 12.5312 14.1503Z" fill="%233851FF"/%3E%3C/g%3E%3Cg filter="url(%23filter19_f_24854_8994)"%3E%3Cpath d="M28.4057 13.0921C34.25 13.0921 38.9877 8.35441 38.9877 2.51013C38.9877 -3.33415 34.25 -8.07187 28.4057 -8.07187C22.5615 -8.07187 17.8237 -3.33415 17.8237 2.51013C17.8237 8.35441 22.5615 13.0921 28.4057 13.0921Z" fill="%23F3354D"/%3E%3C/g%3E%3Cg filter="url(%23filter20_f_24854_8994)"%3E%3Cpath d="M33.6958 48.0128C39.54 48.0128 44.2778 43.275 44.2778 37.4308C44.2778 31.5865 39.54 26.8488 33.6958 26.8488C27.8515 26.8488 23.1138 31.5865 23.1138 37.4308C23.1138 43.275 27.8515 48.0128 33.6958 48.0128Z" fill="%23FFD101"/%3E%3C/g%3E%3Cg filter="url(%23filter21_f_24854_8994)"%3E%3Cpath d="M8.30173 43.78C14.146 43.78 18.8837 39.0422 18.8837 33.198C18.8837 27.3537 14.146 22.616 8.30173 22.616C2.45745 22.616 -2.28027 27.3537 -2.28027 33.198C-2.28027 39.0422 2.45745 43.78 8.30173 43.78Z" fill="%237FCF35"/%3E%3C/g%3E%3Cg filter="url(%23filter22_f_24854_8994)"%3E%3Cpath d="M6.18454 34.2562C12.0288 34.2562 16.7665 29.5184 16.7665 23.6742C16.7665 17.8299 12.0288 13.0922 6.18454 13.0922C0.340261 13.0922 -4.39746 17.8299 -4.39746 23.6742C-4.39746 29.5184 0.340261 34.2562 6.18454 34.2562Z" fill="%231D7DD0"/%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3Cfilter id="filter0_f_24854_8994" x="-8.29297" y="-26.7808" width="81.8623" height="81.8624" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter1_f_24854_8994" x="-30.5142" y="-7.73322" width="81.8623" height="81.8624" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter2_f_24854_8994" x="-25.2241" y="-28.8973" width="69.1641" height="69.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter3_f_24854_8994" x="-28.3975" y="-28.8973" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter4_f_24854_8994" x="-27.3408" y="-25.7227" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter5_f_24854_8994" x="-1.94287" y="-1.38403" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter6_f_24854_8994" x="-6.17627" y="0.732361" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter7_f_24854_8994" x="-6.17627" y="0.732361" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter8_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter9_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter10_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter11_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter12_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter13_f_24854_8994" x="-20.9902" y="1.79056" width="60.6982" height="60.6984" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter14_f_24854_8994" x="1.23047" y="-20.4316" width="75.5132" height="75.5132" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter15_f_24854_8994" x="3.34766" y="-21.4899" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter16_f_24854_8994" x="-23.1069" y="-19.3734" width="64.9312" height="64.9312" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter17_f_24854_8994" x="1.23047" y="-18.3153" width="60.6982" height="60.6984" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter18_f_24854_8994" x="-9.05078" y="-18.0137" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter19_f_24854_8994" x="6.82373" y="-19.0719" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter20_f_24854_8994" x="12.1138" y="15.8488" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter21_f_24854_8994" x="-13.2803" y="11.616" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter22_f_24854_8994" x="-15.3975" y="2.09216" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3CclipPath id="clip0_24854_8994"%3E%3Crect width="40" height="40" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A', Sn = [
|
|
5531
5574
|
{
|
|
5532
5575
|
id: "livechat",
|
|
@@ -5729,16 +5772,16 @@ const Be = {
|
|
|
5729
5772
|
}, Dn = (t) => {
|
|
5730
5773
|
const a = new Date(t), r = /* @__PURE__ */ new Date();
|
|
5731
5774
|
return oo(a) ? 0 : wr(a, r);
|
|
5732
|
-
},
|
|
5775
|
+
}, Pn = (t, a) => In.includes(t) || a.some(
|
|
5733
5776
|
(r) => r.product === E_[t]
|
|
5734
|
-
),
|
|
5777
|
+
), An = (t, a, r, _, o) => {
|
|
5735
5778
|
var n, c, d, i, s;
|
|
5736
5779
|
const l = a.find(
|
|
5737
5780
|
(p) => p.product === E_[t.id]
|
|
5738
5781
|
);
|
|
5739
5782
|
if (!l)
|
|
5740
5783
|
throw new Error(`Product data for ${t.id} not found`);
|
|
5741
|
-
return
|
|
5784
|
+
return T(k({}, t), {
|
|
5742
5785
|
trialDaysLeft: r[t.id] && ((n = r[t.id]) == null ? void 0 : n.status) === "trial" && ((c = r[t.id]) != null && c.next_charge_at) ? Dn((i = (d = r[t.id]) == null ? void 0 : d.next_charge_at) != null ? i : "") : void 0,
|
|
5743
5786
|
expired: ((s = r[t.id]) == null ? void 0 : s.status) === "expired",
|
|
5744
5787
|
url: Tn(
|
|
@@ -5770,8 +5813,8 @@ const Be = {
|
|
|
5770
5813
|
const o = t ? Fn(t) : k_;
|
|
5771
5814
|
return {
|
|
5772
5815
|
products: Sn.reduce(
|
|
5773
|
-
(l, n) => (
|
|
5774
|
-
|
|
5816
|
+
(l, n) => (Pn(n.id, a) && l.push(
|
|
5817
|
+
An(
|
|
5775
5818
|
n,
|
|
5776
5819
|
o,
|
|
5777
5820
|
r,
|
|
@@ -5825,10 +5868,10 @@ const aa = {
|
|
|
5825
5868
|
[aa[`${ra}--${t}`]]: t
|
|
5826
5869
|
},
|
|
5827
5870
|
r
|
|
5828
|
-
), m = 2 * Math.PI * ((s - i) / 2),
|
|
5871
|
+
), m = 2 * Math.PI * ((s - i) / 2), f = {
|
|
5829
5872
|
strokeDasharray: m.toFixed(3),
|
|
5830
5873
|
strokeDashoffset: `${((100 - d) / 100 * m).toFixed(3)}px`
|
|
5831
|
-
},
|
|
5874
|
+
}, b = `${s / 2} ${s / 2} ${s} ${s}`;
|
|
5832
5875
|
return /* @__PURE__ */ e.createElement(
|
|
5833
5876
|
"div",
|
|
5834
5877
|
k({
|
|
@@ -5836,7 +5879,7 @@ const aa = {
|
|
|
5836
5879
|
ref: l,
|
|
5837
5880
|
role: "progressbar"
|
|
5838
5881
|
}, o),
|
|
5839
|
-
/* @__PURE__ */ e.createElement("svg", { viewBox:
|
|
5882
|
+
/* @__PURE__ */ e.createElement("svg", { viewBox: b }, /* @__PURE__ */ e.createElement(
|
|
5840
5883
|
"circle",
|
|
5841
5884
|
{
|
|
5842
5885
|
className: aa[`${ra}__bg-line--${t}`],
|
|
@@ -5850,7 +5893,7 @@ const aa = {
|
|
|
5850
5893
|
"circle",
|
|
5851
5894
|
{
|
|
5852
5895
|
className: aa[`${ra}__indicator--${t}`],
|
|
5853
|
-
style:
|
|
5896
|
+
style: f,
|
|
5854
5897
|
cx: s,
|
|
5855
5898
|
cy: s,
|
|
5856
5899
|
r: (s - i) / 2,
|
|
@@ -5893,7 +5936,7 @@ const aa = {
|
|
|
5893
5936
|
);
|
|
5894
5937
|
return /* @__PURE__ */ e.createElement(
|
|
5895
5938
|
"div",
|
|
5896
|
-
|
|
5939
|
+
T(k({}, o), {
|
|
5897
5940
|
className: i,
|
|
5898
5941
|
ref: l,
|
|
5899
5942
|
role: "progressbar"
|
|
@@ -5908,7 +5951,7 @@ const aa = {
|
|
|
5908
5951
|
)
|
|
5909
5952
|
);
|
|
5910
5953
|
}
|
|
5911
|
-
),
|
|
5954
|
+
), Ae = {
|
|
5912
5955
|
"promo-banner": "lc-PromoBanner-module__promo-banner___-mGpq",
|
|
5913
5956
|
"promo-banner__content": "lc-PromoBanner-module__promo-banner__content___kRWar",
|
|
5914
5957
|
"promo-banner__wrapper": "lc-PromoBanner-module__promo-banner__wrapper___I-8cl",
|
|
@@ -5932,12 +5975,12 @@ const aa = {
|
|
|
5932
5975
|
onClose: d,
|
|
5933
5976
|
onLinkClick: i
|
|
5934
5977
|
}) => {
|
|
5935
|
-
const s = e.useRef(null), [p, m] = e.useState("medium"),
|
|
5936
|
-
|
|
5978
|
+
const s = e.useRef(null), [p, m] = e.useState("medium"), f = u(
|
|
5979
|
+
Ae[Fe],
|
|
5937
5980
|
{
|
|
5938
|
-
[
|
|
5939
|
-
[
|
|
5940
|
-
[
|
|
5981
|
+
[Ae[`${Fe}--light`]]: l,
|
|
5982
|
+
[Ae[`${Fe}--small`]]: p === "small",
|
|
5983
|
+
[Ae[`${Fe}--large`]]: p === "large"
|
|
5941
5984
|
},
|
|
5942
5985
|
t
|
|
5943
5986
|
);
|
|
@@ -5950,21 +5993,21 @@ const aa = {
|
|
|
5950
5993
|
h.cancel(), window.removeEventListener("resize", h);
|
|
5951
5994
|
};
|
|
5952
5995
|
}, []);
|
|
5953
|
-
const
|
|
5996
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
5954
5997
|
W,
|
|
5955
5998
|
{
|
|
5956
5999
|
kind: "primary",
|
|
5957
6000
|
size: "compact",
|
|
5958
6001
|
onClick: c,
|
|
5959
|
-
className:
|
|
6002
|
+
className: Ae[`${Fe}__button-text`]
|
|
5960
6003
|
},
|
|
5961
6004
|
a
|
|
5962
6005
|
), n && /* @__PURE__ */ e.createElement(W, { size: "compact", kind: "text", onClick: i }, n));
|
|
5963
|
-
return /* @__PURE__ */ e.createElement("div", { ref: s, className:
|
|
6006
|
+
return /* @__PURE__ */ e.createElement("div", { ref: s, className: f }, /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: Ae[`${Fe}__img`] }), /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__header`] }, _), /* @__PURE__ */ e.createElement(B, { as: "div" }, r), p !== "large" && b), p === "large" && b), d && /* @__PURE__ */ e.createElement(
|
|
5964
6007
|
"button",
|
|
5965
6008
|
{
|
|
5966
6009
|
type: "button",
|
|
5967
|
-
className:
|
|
6010
|
+
className: Ae[`${Fe}__close-icon`],
|
|
5968
6011
|
onClick: d
|
|
5969
6012
|
},
|
|
5970
6013
|
/* @__PURE__ */ e.createElement(x, { source: Ie, size: "large", kind: "primary" })
|
|
@@ -6064,7 +6107,7 @@ const aa = {
|
|
|
6064
6107
|
});
|
|
6065
6108
|
return /* @__PURE__ */ e.createElement("div", { className: i }, /* @__PURE__ */ e.createElement("label", { className: at[`${rt}__label`] }, /* @__PURE__ */ e.createElement("div", { className: at[`${rt}__circle`] }, /* @__PURE__ */ e.createElement("span", { className: at[`${rt}__inner-circle`] }), /* @__PURE__ */ e.createElement(
|
|
6066
6109
|
"input",
|
|
6067
|
-
|
|
6110
|
+
T(k({}, l), {
|
|
6068
6111
|
className: at[`${rt}__input`],
|
|
6069
6112
|
ref: n,
|
|
6070
6113
|
type: "radio",
|
|
@@ -6098,7 +6141,7 @@ const aa = {
|
|
|
6098
6141
|
cropOnBlur: c = !0,
|
|
6099
6142
|
onChange: d
|
|
6100
6143
|
}) => {
|
|
6101
|
-
const [i, s] = e.useState(!0), [p, m] = e.useState(!1),
|
|
6144
|
+
const [i, s] = e.useState(!0), [p, m] = e.useState(!1), f = e.useRef(null), b = !!l && !a && !r, v = t && !i && "true", h = u(
|
|
6102
6145
|
n,
|
|
6103
6146
|
Re[We],
|
|
6104
6147
|
Re[`${We}--${o}`],
|
|
@@ -6110,20 +6153,20 @@ const aa = {
|
|
|
6110
6153
|
e.useEffect(() => {
|
|
6111
6154
|
t && l && s(!1);
|
|
6112
6155
|
}, [t]);
|
|
6113
|
-
const
|
|
6156
|
+
const y = (N) => {
|
|
6114
6157
|
const S = N.currentTarget.value;
|
|
6115
6158
|
d(S);
|
|
6116
|
-
},
|
|
6159
|
+
}, E = () => {
|
|
6117
6160
|
d("");
|
|
6118
6161
|
}, $ = () => {
|
|
6119
6162
|
var N;
|
|
6120
|
-
(N =
|
|
6163
|
+
(N = f.current) == null || N.focus();
|
|
6121
6164
|
}, w = () => {
|
|
6122
6165
|
t && s(!1), m(!0);
|
|
6123
6166
|
}, C = () => {
|
|
6124
6167
|
t && !l && s(!0), m(!1);
|
|
6125
6168
|
}, g = (N) => {
|
|
6126
|
-
N.key ===
|
|
6169
|
+
N.key === de.enter && (N.preventDefault(), d(l));
|
|
6127
6170
|
};
|
|
6128
6171
|
return /* @__PURE__ */ e.createElement(
|
|
6129
6172
|
"div",
|
|
@@ -6155,11 +6198,11 @@ const aa = {
|
|
|
6155
6198
|
"input",
|
|
6156
6199
|
{
|
|
6157
6200
|
role: "searchbox",
|
|
6158
|
-
ref:
|
|
6201
|
+
ref: f,
|
|
6159
6202
|
type: "text",
|
|
6160
6203
|
value: l,
|
|
6161
6204
|
placeholder: _,
|
|
6162
|
-
onChange:
|
|
6205
|
+
onChange: y,
|
|
6163
6206
|
onBlur: C,
|
|
6164
6207
|
onFocus: w,
|
|
6165
6208
|
onKeyDown: g,
|
|
@@ -6167,13 +6210,13 @@ const aa = {
|
|
|
6167
6210
|
}
|
|
6168
6211
|
)
|
|
6169
6212
|
),
|
|
6170
|
-
|
|
6213
|
+
b && /* @__PURE__ */ e.createElement(
|
|
6171
6214
|
W,
|
|
6172
6215
|
{
|
|
6173
6216
|
"aria-label": "Clear search",
|
|
6174
6217
|
title: "Clear search",
|
|
6175
6218
|
className: Re[`${We}__clear-icon`],
|
|
6176
|
-
onClick:
|
|
6219
|
+
onClick: E,
|
|
6177
6220
|
icon: /* @__PURE__ */ e.createElement(x, { source: Ie, kind: "primary" }),
|
|
6178
6221
|
kind: "text",
|
|
6179
6222
|
size: "compact"
|
|
@@ -6181,7 +6224,7 @@ const aa = {
|
|
|
6181
6224
|
),
|
|
6182
6225
|
r && /* @__PURE__ */ e.createElement("div", { className: Re[`${We}__loader`] }, /* @__PURE__ */ e.createElement(Cr, { size: "small" }))
|
|
6183
6226
|
);
|
|
6184
|
-
}, Wn = "lc-Skeleton-module__loading___MHvGo",
|
|
6227
|
+
}, Wn = "lc-Skeleton-module__loading___MHvGo", Ct = {
|
|
6185
6228
|
"skeleton-wrapper": "lc-Skeleton-module__skeleton-wrapper___MXuR8",
|
|
6186
6229
|
"skeleton-wrapper--vertical": "lc-Skeleton-module__skeleton-wrapper--vertical___H3weP",
|
|
6187
6230
|
"skeleton-avatar": "lc-Skeleton-module__skeleton-avatar___qWzIc",
|
|
@@ -6206,8 +6249,8 @@ const aa = {
|
|
|
6206
6249
|
return /* @__PURE__ */ e.createElement(
|
|
6207
6250
|
"div",
|
|
6208
6251
|
k({
|
|
6209
|
-
className: u(
|
|
6210
|
-
[
|
|
6252
|
+
className: u(Ct[`${Qr}`], {
|
|
6253
|
+
[Ct[`${Qr}--vertical`]]: a
|
|
6211
6254
|
})
|
|
6212
6255
|
}, _),
|
|
6213
6256
|
n
|
|
@@ -6219,24 +6262,24 @@ const aa = {
|
|
|
6219
6262
|
}) => /* @__PURE__ */ e.createElement(
|
|
6220
6263
|
"div",
|
|
6221
6264
|
{
|
|
6222
|
-
className: u(
|
|
6223
|
-
[
|
|
6224
|
-
[
|
|
6265
|
+
className: u(Ct[`${nr}`], {
|
|
6266
|
+
[Ct[`${nr}--square`]]: t,
|
|
6267
|
+
[Ct[`${nr}--animated`]]: r
|
|
6225
6268
|
}),
|
|
6226
6269
|
style: {
|
|
6227
6270
|
width: a,
|
|
6228
6271
|
height: a
|
|
6229
6272
|
}
|
|
6230
6273
|
}
|
|
6231
|
-
), e_ = "skeleton-text",
|
|
6274
|
+
), e_ = "skeleton-text", Pi = ({
|
|
6232
6275
|
height: t = 13,
|
|
6233
6276
|
width: a,
|
|
6234
6277
|
animated: r
|
|
6235
6278
|
}) => /* @__PURE__ */ e.createElement(
|
|
6236
6279
|
"div",
|
|
6237
6280
|
{
|
|
6238
|
-
className: u(
|
|
6239
|
-
[
|
|
6281
|
+
className: u(Ct[`${e_}`], {
|
|
6282
|
+
[Ct[`${e_}--animated`]]: r
|
|
6240
6283
|
}),
|
|
6241
6284
|
style: {
|
|
6242
6285
|
height: t,
|
|
@@ -6257,7 +6300,7 @@ const aa = {
|
|
|
6257
6300
|
"status-badge--offline": "lc-StatusBadge-module__status-badge--offline___0BHxn",
|
|
6258
6301
|
"status-badge--accept": "lc-StatusBadge-module__status-badge--accept___6g3cx",
|
|
6259
6302
|
"status-badge--not-accept": "lc-StatusBadge-module__status-badge--not-accept___tUgKD"
|
|
6260
|
-
}, ir = "status-badge",
|
|
6303
|
+
}, ir = "status-badge", Ai = (o) => {
|
|
6261
6304
|
var l = o, {
|
|
6262
6305
|
className: t,
|
|
6263
6306
|
kind: a = "offline",
|
|
@@ -6274,7 +6317,7 @@ const aa = {
|
|
|
6274
6317
|
t
|
|
6275
6318
|
);
|
|
6276
6319
|
return /* @__PURE__ */ e.createElement("span", k({ className: n }, _));
|
|
6277
|
-
}, Vn = "lc-Switch-module__switch__input___NiiOR", Kn = "lc-Switch-module__switch__container___79F7W", Yn = "lc-Switch-module__switch__track___2wr2M", qn = "lc-Switch-module__switch__slider___WHd--", Zn = "lc-Switch-module__switch__loader___FE-fA", Xn = "lc-Switch-module__switch__icon___-O1qY",
|
|
6320
|
+
}, Vn = "lc-Switch-module__switch__input___NiiOR", Kn = "lc-Switch-module__switch__container___79F7W", Yn = "lc-Switch-module__switch__track___2wr2M", qn = "lc-Switch-module__switch__slider___WHd--", Zn = "lc-Switch-module__switch__loader___FE-fA", Xn = "lc-Switch-module__switch__icon___-O1qY", ae = {
|
|
6278
6321
|
switch: "lc-Switch-module__switch___AaA2k",
|
|
6279
6322
|
"switch__track--enabled": "lc-Switch-module__switch__track--enabled___sy4Xl",
|
|
6280
6323
|
"switch__track--on": "lc-Switch-module__switch__track--on___aOMWe",
|
|
@@ -6305,12 +6348,12 @@ const aa = {
|
|
|
6305
6348
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___2zi05",
|
|
6306
6349
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
|
|
6307
6350
|
switch__icon: Xn
|
|
6308
|
-
},
|
|
6351
|
+
}, te = "switch", Fi = (p) => {
|
|
6309
6352
|
var m = p, {
|
|
6310
6353
|
className: t = "",
|
|
6311
6354
|
defaultOn: a = !1,
|
|
6312
6355
|
disabled: r = !1,
|
|
6313
|
-
name: _ =
|
|
6356
|
+
name: _ = te,
|
|
6314
6357
|
on: o,
|
|
6315
6358
|
onChange: l,
|
|
6316
6359
|
size: n = "large",
|
|
@@ -6329,50 +6372,50 @@ const aa = {
|
|
|
6329
6372
|
"innerRef",
|
|
6330
6373
|
"ariaLabel"
|
|
6331
6374
|
]);
|
|
6332
|
-
const
|
|
6333
|
-
() =>
|
|
6334
|
-
), [h,
|
|
6335
|
-
te
|
|
6336
|
-
|
|
6375
|
+
const f = o !== void 0, [b, v] = e.useState(
|
|
6376
|
+
() => f ? o : a
|
|
6377
|
+
), [h, y] = e.useState(!1), E = f ? o : b, $ = c === "loading", w = c === "locked", C = n === "large" ? "small" : "xsmall", g = E ? "on" : "off", N = r || $ || w, S = N ? "disabled" : "enabled", M = u(
|
|
6378
|
+
ae[te],
|
|
6379
|
+
ae[`${te}--${n}`],
|
|
6337
6380
|
{
|
|
6338
|
-
[
|
|
6381
|
+
[ae[`${te}--focused`]]: h
|
|
6339
6382
|
},
|
|
6340
6383
|
t
|
|
6341
|
-
),
|
|
6342
|
-
l == null || l(
|
|
6384
|
+
), G = (I) => {
|
|
6385
|
+
l == null || l(I, !E), f || (I.stopPropagation(), v((O) => !O));
|
|
6343
6386
|
};
|
|
6344
6387
|
return /* @__PURE__ */ e.createElement("span", { className: M }, /* @__PURE__ */ e.createElement(
|
|
6345
6388
|
"input",
|
|
6346
|
-
|
|
6389
|
+
T(k({
|
|
6347
6390
|
type: "checkbox",
|
|
6348
6391
|
className: u(
|
|
6349
|
-
|
|
6350
|
-
|
|
6392
|
+
ae[`${te}__input`],
|
|
6393
|
+
ae[`${te}__input--${S}`]
|
|
6351
6394
|
),
|
|
6352
|
-
onChange:
|
|
6353
|
-
checked:
|
|
6395
|
+
onChange: G,
|
|
6396
|
+
checked: E,
|
|
6354
6397
|
name: _,
|
|
6355
6398
|
ref: d,
|
|
6356
6399
|
disabled: N,
|
|
6357
6400
|
"aria-label": i
|
|
6358
6401
|
}, s), {
|
|
6359
|
-
onFocus: () =>
|
|
6360
|
-
onBlur: () =>
|
|
6402
|
+
onFocus: () => y(!0),
|
|
6403
|
+
onBlur: () => y(!1)
|
|
6361
6404
|
})
|
|
6362
6405
|
), /* @__PURE__ */ e.createElement(
|
|
6363
6406
|
"span",
|
|
6364
6407
|
{
|
|
6365
|
-
className: u(
|
|
6366
|
-
[
|
|
6408
|
+
className: u(ae[`${te}__container`], {
|
|
6409
|
+
[ae[`${te}__container--focused`]]: h
|
|
6367
6410
|
})
|
|
6368
6411
|
},
|
|
6369
6412
|
/* @__PURE__ */ e.createElement(
|
|
6370
6413
|
"span",
|
|
6371
6414
|
{
|
|
6372
6415
|
className: u(
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6416
|
+
ae[`${te}__track`],
|
|
6417
|
+
ae[`${te}__track--${g}`],
|
|
6418
|
+
ae[`${te}__track--${S}`]
|
|
6376
6419
|
)
|
|
6377
6420
|
}
|
|
6378
6421
|
),
|
|
@@ -6380,10 +6423,10 @@ const aa = {
|
|
|
6380
6423
|
"span",
|
|
6381
6424
|
{
|
|
6382
6425
|
className: u(
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6426
|
+
ae[`${te}__slider`],
|
|
6427
|
+
ae[`${te}__slider--${S}`],
|
|
6428
|
+
ae[`${te}__slider--${n}`],
|
|
6429
|
+
ae[`${te}__slider--${n}--${g}`]
|
|
6387
6430
|
)
|
|
6388
6431
|
},
|
|
6389
6432
|
$ && /* @__PURE__ */ e.createElement(
|
|
@@ -6391,15 +6434,15 @@ const aa = {
|
|
|
6391
6434
|
{
|
|
6392
6435
|
"data-testid": "switch-loader",
|
|
6393
6436
|
className: u(
|
|
6394
|
-
|
|
6395
|
-
|
|
6437
|
+
ae[`${te}__loader`],
|
|
6438
|
+
ae[`${te}__loader--${n}`]
|
|
6396
6439
|
)
|
|
6397
6440
|
}
|
|
6398
6441
|
),
|
|
6399
6442
|
w && /* @__PURE__ */ e.createElement(
|
|
6400
6443
|
x,
|
|
6401
6444
|
{
|
|
6402
|
-
className:
|
|
6445
|
+
className: ae[`${te}__icon`],
|
|
6403
6446
|
"data-testid": "lock-icon",
|
|
6404
6447
|
size: C,
|
|
6405
6448
|
source: K_,
|
|
@@ -6408,7 +6451,7 @@ const aa = {
|
|
|
6408
6451
|
)
|
|
6409
6452
|
)
|
|
6410
6453
|
));
|
|
6411
|
-
}, Jn = "lc-Tab-module__tab___fME7u", jn = "lc-Tab-module__tab__count___gc8tA", Qn = "lc-Tab-module__tab__icon___wvUqO", ec = "lc-Tab-module__tab__badge___W9c-T",
|
|
6454
|
+
}, Jn = "lc-Tab-module__tab___fME7u", jn = "lc-Tab-module__tab__count___gc8tA", Qn = "lc-Tab-module__tab__icon___wvUqO", ec = "lc-Tab-module__tab__badge___W9c-T", yt = {
|
|
6412
6455
|
tab: Jn,
|
|
6413
6456
|
tab__count: jn,
|
|
6414
6457
|
"tab--compact": "lc-Tab-module__tab--compact___4qead",
|
|
@@ -6418,7 +6461,7 @@ const aa = {
|
|
|
6418
6461
|
tab__badge: ec,
|
|
6419
6462
|
"tab--selected": "lc-Tab-module__tab--selected___c0EkL",
|
|
6420
6463
|
"tab--disabled": "lc-Tab-module__tab--disabled___URdTh"
|
|
6421
|
-
},
|
|
6464
|
+
}, wt = "tab", Ri = (d) => {
|
|
6422
6465
|
var i = d, {
|
|
6423
6466
|
children: t,
|
|
6424
6467
|
className: a,
|
|
@@ -6439,29 +6482,29 @@ const aa = {
|
|
|
6439
6482
|
const { disabled: s } = c, p = r !== void 0 && !o, m = r !== void 0 && o;
|
|
6440
6483
|
return /* @__PURE__ */ e.createElement(
|
|
6441
6484
|
B,
|
|
6442
|
-
|
|
6485
|
+
T(k({}, c), {
|
|
6443
6486
|
as: c.href ? "a" : "button",
|
|
6444
6487
|
"aria-selected": _,
|
|
6445
6488
|
size: "md",
|
|
6446
6489
|
bold: _,
|
|
6447
6490
|
className: u(
|
|
6448
6491
|
a,
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
_ &&
|
|
6452
|
-
s &&
|
|
6492
|
+
yt[wt],
|
|
6493
|
+
yt[`${wt}--${l}`],
|
|
6494
|
+
_ && yt[`${wt}--selected`],
|
|
6495
|
+
s && yt[`${wt}--disabled`]
|
|
6453
6496
|
)
|
|
6454
6497
|
}),
|
|
6455
|
-
n && /* @__PURE__ */ e.createElement("div", { "data-testId": "icon", className:
|
|
6498
|
+
n && /* @__PURE__ */ e.createElement("div", { "data-testId": "icon", className: yt[`${wt}__icon`] }, n),
|
|
6456
6499
|
t,
|
|
6457
|
-
p && /* @__PURE__ */ e.createElement(B, { as: "span", size: "md", className:
|
|
6500
|
+
p && /* @__PURE__ */ e.createElement(B, { as: "span", size: "md", className: yt[`${wt}__count`] }, "(", r, ")"),
|
|
6458
6501
|
m && /* @__PURE__ */ e.createElement(
|
|
6459
6502
|
Ra,
|
|
6460
6503
|
{
|
|
6461
6504
|
"data-testid": "tab-badge",
|
|
6462
6505
|
count: r,
|
|
6463
6506
|
size: "compact",
|
|
6464
|
-
className:
|
|
6507
|
+
className: yt[`${wt}__badge`]
|
|
6465
6508
|
}
|
|
6466
6509
|
)
|
|
6467
6510
|
);
|
|
@@ -6490,28 +6533,28 @@ const aa = {
|
|
|
6490
6533
|
value: l
|
|
6491
6534
|
}) => {
|
|
6492
6535
|
const [n, c] = e.useState(!1), d = () => a.current, i = () => {
|
|
6493
|
-
const
|
|
6494
|
-
return
|
|
6536
|
+
const b = d();
|
|
6537
|
+
return b ? b.innerText : "";
|
|
6495
6538
|
}, s = () => {
|
|
6496
6539
|
r && r.current && r.current.focus();
|
|
6497
|
-
}, p = (
|
|
6498
|
-
if (
|
|
6499
|
-
|
|
6540
|
+
}, p = (b) => {
|
|
6541
|
+
if (b.key === de.enter) {
|
|
6542
|
+
b.preventDefault(), s();
|
|
6500
6543
|
return;
|
|
6501
6544
|
}
|
|
6502
|
-
|
|
6545
|
+
b.key === de.backspace && i() === "" && (c(!0), o(), s());
|
|
6503
6546
|
}, m = () => {
|
|
6504
|
-
const
|
|
6505
|
-
if (!(n || !
|
|
6506
|
-
if (
|
|
6547
|
+
const b = d();
|
|
6548
|
+
if (!(n || !b)) {
|
|
6549
|
+
if (b.innerText === "") {
|
|
6507
6550
|
o();
|
|
6508
6551
|
return;
|
|
6509
6552
|
}
|
|
6510
|
-
_(
|
|
6553
|
+
_(b.innerText);
|
|
6511
6554
|
}
|
|
6512
|
-
},
|
|
6513
|
-
|
|
6514
|
-
const v =
|
|
6555
|
+
}, f = (b) => {
|
|
6556
|
+
b.preventDefault();
|
|
6557
|
+
const v = b.clipboardData.getData("text/plain");
|
|
6515
6558
|
document.execCommand("insertHTML", !1, Dr(v));
|
|
6516
6559
|
};
|
|
6517
6560
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -6520,7 +6563,7 @@ const aa = {
|
|
|
6520
6563
|
ref: a,
|
|
6521
6564
|
className: t,
|
|
6522
6565
|
contentEditable: !0,
|
|
6523
|
-
onPaste:
|
|
6566
|
+
onPaste: f,
|
|
6524
6567
|
onBlur: m,
|
|
6525
6568
|
onKeyDown: p,
|
|
6526
6569
|
dangerouslySetInnerHTML: { __html: Dr(l) }
|
|
@@ -6537,7 +6580,7 @@ const aa = {
|
|
|
6537
6580
|
tagProps: c
|
|
6538
6581
|
}) => {
|
|
6539
6582
|
const d = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), i = e.useRef(null), s = () => r(a), p = () => d ? c ? c.kind : "default" : "error";
|
|
6540
|
-
return /* @__PURE__ */ e.createElement(h_,
|
|
6583
|
+
return /* @__PURE__ */ e.createElement(h_, T(k({ size: n }, c), { kind: p(), onRemove: s }), /* @__PURE__ */ e.createElement(
|
|
6541
6584
|
rc,
|
|
6542
6585
|
{
|
|
6543
6586
|
value: t,
|
|
@@ -6550,13 +6593,13 @@ const aa = {
|
|
|
6550
6593
|
}
|
|
6551
6594
|
));
|
|
6552
6595
|
}, Da = "tag-input", oc = [
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
], lc = [
|
|
6559
|
-
var
|
|
6596
|
+
de.enter,
|
|
6597
|
+
de.spacebar,
|
|
6598
|
+
de.tab,
|
|
6599
|
+
de.semicolon,
|
|
6600
|
+
de.comma
|
|
6601
|
+
], lc = [de.backspace, de.delete], nc = (m) => {
|
|
6602
|
+
var f = m, {
|
|
6560
6603
|
id: t,
|
|
6561
6604
|
tags: a,
|
|
6562
6605
|
onChange: r,
|
|
@@ -6568,7 +6611,7 @@ const aa = {
|
|
|
6568
6611
|
inputClassName: d,
|
|
6569
6612
|
onBlur: i,
|
|
6570
6613
|
addOnBlur: s = !0
|
|
6571
|
-
} =
|
|
6614
|
+
} = f, p = D(f, [
|
|
6572
6615
|
"id",
|
|
6573
6616
|
"tags",
|
|
6574
6617
|
"onChange",
|
|
@@ -6581,7 +6624,7 @@ const aa = {
|
|
|
6581
6624
|
"onBlur",
|
|
6582
6625
|
"addOnBlur"
|
|
6583
6626
|
]);
|
|
6584
|
-
const
|
|
6627
|
+
const b = u(
|
|
6585
6628
|
la[Da],
|
|
6586
6629
|
{
|
|
6587
6630
|
[la[`${Da}--error`]]: o
|
|
@@ -6591,64 +6634,64 @@ const aa = {
|
|
|
6591
6634
|
d,
|
|
6592
6635
|
la[`${Da}__input`],
|
|
6593
6636
|
la[`${Da}__input--${n}`]
|
|
6594
|
-
), [h,
|
|
6595
|
-
|
|
6596
|
-
}, w = (
|
|
6597
|
-
const
|
|
6598
|
-
|
|
6599
|
-
}, C = (
|
|
6600
|
-
if (oc.includes(
|
|
6601
|
-
if (
|
|
6637
|
+
), [h, y] = e.useState(""), E = e.useRef(null), $ = (I) => {
|
|
6638
|
+
I.trim() !== "" && (r([...a || [], I]), y(""));
|
|
6639
|
+
}, w = (I) => {
|
|
6640
|
+
const O = [...a || []];
|
|
6641
|
+
O.splice(I, 1), r(O);
|
|
6642
|
+
}, C = (I) => y(I.target.value), g = (I) => {
|
|
6643
|
+
if (oc.includes(I.key)) {
|
|
6644
|
+
if (I.preventDefault(), h === "")
|
|
6602
6645
|
return;
|
|
6603
6646
|
$(h);
|
|
6604
|
-
} else if (lc.includes(
|
|
6647
|
+
} else if (lc.includes(I.key)) {
|
|
6605
6648
|
if (h !== "" || !(a != null && a.length))
|
|
6606
6649
|
return;
|
|
6607
6650
|
w(a.length - 1);
|
|
6608
6651
|
}
|
|
6609
|
-
}, N = (
|
|
6610
|
-
s && $(h), i == null || i(
|
|
6611
|
-
}, S = (
|
|
6612
|
-
const
|
|
6613
|
-
|
|
6614
|
-
(
|
|
6652
|
+
}, N = (I) => {
|
|
6653
|
+
s && $(h), i == null || i(I);
|
|
6654
|
+
}, S = (I, O) => {
|
|
6655
|
+
const Y = [...a || []];
|
|
6656
|
+
Y.reduce(
|
|
6657
|
+
(L, U, $e) => L + (U === O && $e !== I ? 1 : 0),
|
|
6615
6658
|
0
|
|
6616
|
-
) > 0 ?
|
|
6617
|
-
}, M = (
|
|
6618
|
-
|
|
6619
|
-
const
|
|
6620
|
-
r([...a || [], ...
|
|
6621
|
-
},
|
|
6659
|
+
) > 0 ? Y.splice(I, 1) : Y[I] = O, r(Y);
|
|
6660
|
+
}, M = (I) => {
|
|
6661
|
+
I.preventDefault();
|
|
6662
|
+
const Y = I.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
6663
|
+
r([...a || [], ...Y]);
|
|
6664
|
+
}, G = (I, O) => typeof I == "string" ? /* @__PURE__ */ e.createElement(
|
|
6622
6665
|
t_,
|
|
6623
6666
|
{
|
|
6624
|
-
index:
|
|
6625
|
-
key: `${
|
|
6667
|
+
index: O,
|
|
6668
|
+
key: `${O}${I}`,
|
|
6626
6669
|
update: S,
|
|
6627
6670
|
remove: w,
|
|
6628
|
-
inputRef:
|
|
6671
|
+
inputRef: E,
|
|
6629
6672
|
validator: _,
|
|
6630
6673
|
size: n
|
|
6631
6674
|
},
|
|
6632
|
-
|
|
6675
|
+
I
|
|
6633
6676
|
) : /* @__PURE__ */ e.createElement(
|
|
6634
6677
|
t_,
|
|
6635
6678
|
{
|
|
6636
|
-
index:
|
|
6637
|
-
key: `${
|
|
6679
|
+
index: O,
|
|
6680
|
+
key: `${O}${I.children}`,
|
|
6638
6681
|
update: S,
|
|
6639
6682
|
remove: w,
|
|
6640
|
-
inputRef:
|
|
6683
|
+
inputRef: E,
|
|
6641
6684
|
validator: _,
|
|
6642
6685
|
size: n,
|
|
6643
|
-
tagProps:
|
|
6686
|
+
tagProps: I
|
|
6644
6687
|
},
|
|
6645
|
-
|
|
6688
|
+
I.value || I.children
|
|
6646
6689
|
);
|
|
6647
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(B, { as: "div", className:
|
|
6690
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(B, { as: "div", className: b }, a == null ? void 0 : a.map(G), /* @__PURE__ */ e.createElement(
|
|
6648
6691
|
"input",
|
|
6649
|
-
|
|
6692
|
+
T(k({}, p), {
|
|
6650
6693
|
id: t,
|
|
6651
|
-
ref:
|
|
6694
|
+
ref: E,
|
|
6652
6695
|
className: v,
|
|
6653
6696
|
placeholder: l,
|
|
6654
6697
|
value: h,
|
|
@@ -6664,8 +6707,8 @@ const aa = {
|
|
|
6664
6707
|
} = _, a = D(_, [
|
|
6665
6708
|
"placeholder"
|
|
6666
6709
|
]);
|
|
6667
|
-
return /* @__PURE__ */ e.createElement(nc,
|
|
6668
|
-
}, dc = "lc-Toast-module__toast___j5Amn", uc = "lc-Toast-module__toast__content___HjaNw", mc = "lc-Toast-module__toast__actions___JWu-1", pc = "lc-Toast-module__toast__actions__button___Iblrl",
|
|
6710
|
+
return /* @__PURE__ */ e.createElement(nc, T(k({}, a), { placeholder: t, validator: sc }));
|
|
6711
|
+
}, dc = "lc-Toast-module__toast___j5Amn", uc = "lc-Toast-module__toast__content___HjaNw", mc = "lc-Toast-module__toast__actions___JWu-1", pc = "lc-Toast-module__toast__actions__button___Iblrl", re = {
|
|
6669
6712
|
toast: dc,
|
|
6670
6713
|
toast__content: uc,
|
|
6671
6714
|
toast__actions: mc,
|
|
@@ -6725,14 +6768,14 @@ const aa = {
|
|
|
6725
6768
|
"onClose"
|
|
6726
6769
|
]);
|
|
6727
6770
|
const i = u(
|
|
6728
|
-
|
|
6729
|
-
|
|
6771
|
+
re[mt],
|
|
6772
|
+
re[`${mt}--${o}`],
|
|
6730
6773
|
a
|
|
6731
6774
|
), s = typeof r == "string", p = (m) => m && m.closesOnClick && l ? (m.onClick(), l()) : m.onClick();
|
|
6732
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: i }, n), /* @__PURE__ */ e.createElement("div", { className:
|
|
6775
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: i }, n), /* @__PURE__ */ e.createElement("div", { className: re[`${mt}__icon`] }, /* @__PURE__ */ e.createElement(x, T(k({}, gc[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: re[`${mt}__content`] }, s ? /* @__PURE__ */ e.createElement(B, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: re[`${mt}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
6733
6776
|
W,
|
|
6734
6777
|
{
|
|
6735
|
-
className:
|
|
6778
|
+
className: re[`${mt}__actions--custom`],
|
|
6736
6779
|
kind: "text",
|
|
6737
6780
|
size: "compact",
|
|
6738
6781
|
onClick: () => p(t)
|
|
@@ -6742,8 +6785,8 @@ const aa = {
|
|
|
6742
6785
|
"button",
|
|
6743
6786
|
{
|
|
6744
6787
|
className: u(
|
|
6745
|
-
|
|
6746
|
-
|
|
6788
|
+
re[`${mt}__actions__button`],
|
|
6789
|
+
re[`${mt}__actions__button--${o}`]
|
|
6747
6790
|
),
|
|
6748
6791
|
"aria-label": "Close toast",
|
|
6749
6792
|
onClick: l
|
|
@@ -6760,24 +6803,24 @@ const aa = {
|
|
|
6760
6803
|
horizontalPosition: n = "center"
|
|
6761
6804
|
}) => {
|
|
6762
6805
|
const c = u(
|
|
6763
|
-
|
|
6806
|
+
re[_a],
|
|
6764
6807
|
{
|
|
6765
|
-
[
|
|
6766
|
-
[
|
|
6767
|
-
[
|
|
6768
|
-
[
|
|
6808
|
+
[re[`${_a}--fixed`]]: r,
|
|
6809
|
+
[re[`${_a}--block`]]: !r && _,
|
|
6810
|
+
[re[`${_a}--horizontal-${n}`]]: n,
|
|
6811
|
+
[re[`${_a}--vertical-${l}`]]: l
|
|
6769
6812
|
},
|
|
6770
6813
|
t
|
|
6771
6814
|
);
|
|
6772
|
-
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement(c_, { component: null }, a.map(({ id: d, kind: i, content: s, removable: p, action: m, onClose:
|
|
6815
|
+
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement(c_, { component: null }, a.map(({ id: d, kind: i, content: s, removable: p, action: m, onClose: f }) => /* @__PURE__ */ e.createElement(
|
|
6773
6816
|
i_,
|
|
6774
6817
|
{
|
|
6775
6818
|
key: d,
|
|
6776
6819
|
classNames: {
|
|
6777
|
-
enter:
|
|
6778
|
-
enterActive:
|
|
6779
|
-
exit:
|
|
6780
|
-
exitActive:
|
|
6820
|
+
enter: re[`toast-appear--${o}`],
|
|
6821
|
+
enterActive: re[`toast-appear-active--${o}`],
|
|
6822
|
+
exit: re[`toast-exit--${o}`],
|
|
6823
|
+
exitActive: re[`toast-exit-active--${o}`]
|
|
6781
6824
|
},
|
|
6782
6825
|
timeout: bc
|
|
6783
6826
|
},
|
|
@@ -6785,35 +6828,35 @@ const aa = {
|
|
|
6785
6828
|
fc,
|
|
6786
6829
|
{
|
|
6787
6830
|
kind: i,
|
|
6788
|
-
onClose:
|
|
6831
|
+
onClose: f,
|
|
6789
6832
|
removable: p,
|
|
6790
6833
|
action: m
|
|
6791
6834
|
},
|
|
6792
6835
|
s
|
|
6793
6836
|
)
|
|
6794
6837
|
))));
|
|
6795
|
-
}, hc = "lc-Textarea-module__textarea___g6U8F",
|
|
6838
|
+
}, hc = "lc-Textarea-module__textarea___g6U8F", Pa = {
|
|
6796
6839
|
textarea: hc,
|
|
6797
6840
|
"textarea--focused": "lc-Textarea-module__textarea--focused___1vtEx",
|
|
6798
6841
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___xXaGv",
|
|
6799
6842
|
"textarea--error": "lc-Textarea-module__textarea--error___0EGuq"
|
|
6800
|
-
},
|
|
6843
|
+
}, Aa = "textarea", Ui = e.forwardRef(
|
|
6801
6844
|
(o, _) => {
|
|
6802
6845
|
var l = o, { className: t, error: a } = l, r = D(l, ["className", "error"]);
|
|
6803
|
-
const { disabled: n, onBlur: c, onFocus: d } = r, [i, s] = e.useState(!1), p = u(t, Aa
|
|
6804
|
-
[
|
|
6805
|
-
[
|
|
6806
|
-
[
|
|
6807
|
-
}), m = (
|
|
6808
|
-
s(!1), c == null || c(
|
|
6809
|
-
},
|
|
6810
|
-
s(!0), d == null || d(
|
|
6846
|
+
const { disabled: n, onBlur: c, onFocus: d } = r, [i, s] = e.useState(!1), p = u(t, Pa[Aa], {
|
|
6847
|
+
[Pa[`${Aa}--disabled`]]: n,
|
|
6848
|
+
[Pa[`${Aa}--focused`]]: i,
|
|
6849
|
+
[Pa[`${Aa}--error`]]: a
|
|
6850
|
+
}), m = (b) => {
|
|
6851
|
+
s(!1), c == null || c(b);
|
|
6852
|
+
}, f = (b) => {
|
|
6853
|
+
s(!0), d == null || d(b);
|
|
6811
6854
|
};
|
|
6812
6855
|
return /* @__PURE__ */ e.createElement(B, { as: "div", className: p }, /* @__PURE__ */ e.createElement(
|
|
6813
6856
|
"textarea",
|
|
6814
|
-
|
|
6857
|
+
T(k({}, r), {
|
|
6815
6858
|
ref: _,
|
|
6816
|
-
onFocus:
|
|
6859
|
+
onFocus: f,
|
|
6817
6860
|
onBlur: m
|
|
6818
6861
|
})
|
|
6819
6862
|
));
|
|
@@ -6915,7 +6958,7 @@ const aa = {
|
|
|
6915
6958
|
}
|
|
6916
6959
|
)
|
|
6917
6960
|
))
|
|
6918
|
-
),
|
|
6961
|
+
), K = {
|
|
6919
6962
|
"upload-bar": "lc-UploadBar-module__upload-bar___6Or8h",
|
|
6920
6963
|
"upload-bar__loader-test": "lc-UploadBar-module__upload-bar__loader-test___aZb2J",
|
|
6921
6964
|
"upload-bar--error": "lc-UploadBar-module__upload-bar--error___MzvhT",
|
|
@@ -6940,20 +6983,20 @@ const aa = {
|
|
|
6940
6983
|
"div",
|
|
6941
6984
|
{
|
|
6942
6985
|
"data-testid": "success-icon",
|
|
6943
|
-
className:
|
|
6986
|
+
className: K[`${ot}__success-icon`]
|
|
6944
6987
|
},
|
|
6945
6988
|
/* @__PURE__ */ e.createElement(x, { source: ia })
|
|
6946
6989
|
) : t === "error" ? /* @__PURE__ */ e.createElement(
|
|
6947
6990
|
"div",
|
|
6948
6991
|
{
|
|
6949
6992
|
"data-testid": "error-icon",
|
|
6950
|
-
className:
|
|
6993
|
+
className: K[`${ot}__error-icon`]
|
|
6951
6994
|
},
|
|
6952
6995
|
/* @__PURE__ */ e.createElement(x, { source: q_ })
|
|
6953
6996
|
) : /* @__PURE__ */ e.createElement(
|
|
6954
6997
|
On,
|
|
6955
6998
|
{
|
|
6956
|
-
className:
|
|
6999
|
+
className: K[`${ot}__loader`],
|
|
6957
7000
|
status: t,
|
|
6958
7001
|
progressValue: a
|
|
6959
7002
|
}
|
|
@@ -6971,14 +7014,14 @@ const aa = {
|
|
|
6971
7014
|
onCloseButtonClick: s,
|
|
6972
7015
|
onRetryButtonClick: p
|
|
6973
7016
|
}) => {
|
|
6974
|
-
const [m,
|
|
6975
|
-
[
|
|
6976
|
-
[
|
|
6977
|
-
}),
|
|
6978
|
-
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: h }, /* @__PURE__ */ e.createElement("div", { className:
|
|
7017
|
+
const [m, f] = e.useState(o || !1), b = n === "error", v = n === "success", h = u(K[ke], a, {
|
|
7018
|
+
[K[`${ke}--error`]]: b,
|
|
7019
|
+
[K[`${ke}--success`]]: v
|
|
7020
|
+
}), y = !(b && (p || s)), E = () => f(!m);
|
|
7021
|
+
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: h }, /* @__PURE__ */ e.createElement("div", { className: K[`${ke}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ot}`] }, /* @__PURE__ */ e.createElement(
|
|
6979
7022
|
Ec,
|
|
6980
7023
|
{
|
|
6981
|
-
title:
|
|
7024
|
+
title: b && l || _,
|
|
6982
7025
|
progressValue: r,
|
|
6983
7026
|
status: n,
|
|
6984
7027
|
icon: c,
|
|
@@ -6994,19 +7037,19 @@ const aa = {
|
|
|
6994
7037
|
))) : /* @__PURE__ */ e.createElement("div", { className: h }, /* @__PURE__ */ e.createElement(
|
|
6995
7038
|
"div",
|
|
6996
7039
|
{
|
|
6997
|
-
className:
|
|
6998
|
-
onClick:
|
|
7040
|
+
className: K[`${ke}__wrapper`],
|
|
7041
|
+
onClick: E
|
|
6999
7042
|
},
|
|
7000
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
7043
|
+
/* @__PURE__ */ e.createElement("div", { className: K[`${ot}`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ot}__icon`] }, wc(n, r)), /* @__PURE__ */ e.createElement("div", { className: K[`${ot}__title`] }, /* @__PURE__ */ e.createElement(B, { size: "sm", as: "div" }, b ? l : _)), y && /* @__PURE__ */ e.createElement(
|
|
7001
7044
|
"button",
|
|
7002
7045
|
{
|
|
7003
|
-
className:
|
|
7046
|
+
className: K[`${ot}__collapse-button`],
|
|
7004
7047
|
type: "button",
|
|
7005
7048
|
"aria-label": "Collapse button",
|
|
7006
|
-
onClick:
|
|
7049
|
+
onClick: E
|
|
7007
7050
|
},
|
|
7008
7051
|
m ? /* @__PURE__ */ e.createElement(x, { source: Oa }) : /* @__PURE__ */ e.createElement(x, { source: Ot })
|
|
7009
|
-
), n === "error" && /* @__PURE__ */ e.createElement("div", { className:
|
|
7052
|
+
), n === "error" && /* @__PURE__ */ e.createElement("div", { className: K[`${ot}__actions-container`] }, /* @__PURE__ */ e.createElement(
|
|
7010
7053
|
hr,
|
|
7011
7054
|
{
|
|
7012
7055
|
status: n,
|
|
@@ -7019,14 +7062,14 @@ const aa = {
|
|
|
7019
7062
|
{
|
|
7020
7063
|
timeout: yc,
|
|
7021
7064
|
classNames: {
|
|
7022
|
-
enter:
|
|
7023
|
-
enterActive:
|
|
7024
|
-
exit:
|
|
7025
|
-
exitActive:
|
|
7026
|
-
exitDone:
|
|
7065
|
+
enter: K[`${ke}__files--enter`],
|
|
7066
|
+
enterActive: K[`${ke}__files--enter-active`],
|
|
7067
|
+
exit: K[`${ke}__files--exit`],
|
|
7068
|
+
exitActive: K[`${ke}__files--exit-active`],
|
|
7069
|
+
exitDone: K[`${ke}__files--exit-done`]
|
|
7027
7070
|
}
|
|
7028
7071
|
},
|
|
7029
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
7072
|
+
/* @__PURE__ */ e.createElement("div", { className: K[`${ke}__files`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ke}__files-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ke}__files__list`] }, t)))
|
|
7030
7073
|
)));
|
|
7031
7074
|
};
|
|
7032
7075
|
export {
|
|
@@ -7059,7 +7102,7 @@ export {
|
|
|
7059
7102
|
ui as Form,
|
|
7060
7103
|
mi as FormField,
|
|
7061
7104
|
pi as FormGroup,
|
|
7062
|
-
|
|
7105
|
+
ne as Heading,
|
|
7063
7106
|
x as Icon,
|
|
7064
7107
|
Yc as Info,
|
|
7065
7108
|
gi as Input,
|
|
@@ -7103,10 +7146,10 @@ export {
|
|
|
7103
7146
|
Vo as SideNavigationItem,
|
|
7104
7147
|
Kc as Simple,
|
|
7105
7148
|
Di as SkeletonAvatar,
|
|
7106
|
-
|
|
7149
|
+
Pi as SkeletonText,
|
|
7107
7150
|
Ti as SkeletonWrapper,
|
|
7108
7151
|
Lc as SpacingToken,
|
|
7109
|
-
|
|
7152
|
+
Ai as StatusBadge,
|
|
7110
7153
|
Fi as Switch,
|
|
7111
7154
|
Ri as Tab,
|
|
7112
7155
|
Li as TabsList,
|