@livechat/design-system-react-components 2.5.1 → 2.5.3
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/Card/Card.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/RadioButton/RadioButton.d.ts +1 -1
- package/dist/components/Tooltip/components/Reports.d.ts +2 -2
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/Tooltip/types.d.ts +4 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +837 -843
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ var F = (e, a) => {
|
|
|
21
21
|
};
|
|
22
22
|
var wr = (e, a, r) => yr(e, typeof a != "symbol" ? a + "" : a, r);
|
|
23
23
|
import { jsx as t, jsxs as f, Fragment as ne } from "react/jsx-runtime";
|
|
24
|
-
import * as
|
|
24
|
+
import * as g from "react";
|
|
25
25
|
import { createContext as u_, useContext as m_, useState as Jt, useEffect as tt, useMemo as qt, useRef as Ur, useReducer as p_, useCallback as Ga, memo as g_ } from "react";
|
|
26
26
|
import { ChevronDown as Ht, Check as Sa, Close as Me, Info as Na, Warning as Ao, CheckCircle as Hr, Block as Do, ChevronRight as ir, VisibilityOn as h_, VisibilityOff as f_, ChevronUp as lr, Person as b_, DoubleArrowLeft as v_, ChevronLeft as k_, DoubleArrowRight as y_, People as w_, Bot as C_, Add as $_, ChatBotColored as N_, PersonAdd as x_, TextLogoFull as S_, LiveChatMono as B_, ChatBotMono as E_, HelpDeskMono as I_, KnowledgeBaseMono as T_, OpenWidgetMono as A_, HelloMono as D_, TextAccounts as P_, Search as F_, LockBlack as R_, Refresh as M_, Error as O_ } from "@livechat/design-system-icons";
|
|
27
27
|
import u from "clsx";
|
|
@@ -493,25 +493,25 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
493
493
|
const [o, _] = Jt(a), [n, i] = Jt(r);
|
|
494
494
|
tt(() => {
|
|
495
495
|
document.body.classList.remove(Dt.Light, Dt.Dark), document.body.classList.add(`lc-${o}-theme`);
|
|
496
|
-
for (const [
|
|
497
|
-
document.body.style.setProperty(
|
|
496
|
+
for (const [s, c] of Object.entries(n))
|
|
497
|
+
document.body.style.setProperty(s, c);
|
|
498
498
|
}, [o, n]);
|
|
499
499
|
const l = qt(
|
|
500
500
|
() => ({
|
|
501
501
|
theme: o,
|
|
502
|
-
toggleTheme: () => _((
|
|
502
|
+
toggleTheme: () => _((s) => s === "light" ? "dark" : "light"),
|
|
503
503
|
setTheme: _,
|
|
504
|
-
setCustomVariables: (
|
|
505
|
-
i(
|
|
504
|
+
setCustomVariables: (s) => {
|
|
505
|
+
i(s);
|
|
506
506
|
}
|
|
507
507
|
}),
|
|
508
508
|
[o, _, i]
|
|
509
509
|
);
|
|
510
510
|
return /* @__PURE__ */ t(Oo.Provider, { value: l, children: e });
|
|
511
|
-
}, Lo =
|
|
511
|
+
}, Lo = g.createContext(
|
|
512
512
|
void 0
|
|
513
513
|
), Yr = () => {
|
|
514
|
-
const e =
|
|
514
|
+
const e = g.useContext(Lo);
|
|
515
515
|
if (!e)
|
|
516
516
|
throw new Error("useAppFrame must be used within a AppFrameProvider");
|
|
517
517
|
return e;
|
|
@@ -520,12 +520,12 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
520
520
|
isSideNavigationVisible: a = !0,
|
|
521
521
|
isMobileViewVisible: r = !1
|
|
522
522
|
}) => {
|
|
523
|
-
const [o, _] =
|
|
523
|
+
const [o, _] = g.useState(a), [n, i] = g.useState(r), l = g.useMemo(
|
|
524
524
|
() => ({
|
|
525
525
|
isSideNavigationVisible: o,
|
|
526
526
|
toggleSideNavigationVisibility: () => _(!o),
|
|
527
527
|
isMobileViewEnabled: n,
|
|
528
|
-
setIsMobileViewEnabled: (
|
|
528
|
+
setIsMobileViewEnabled: (s) => i(s)
|
|
529
529
|
}),
|
|
530
530
|
[
|
|
531
531
|
o,
|
|
@@ -539,13 +539,13 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
539
539
|
isVisible: e,
|
|
540
540
|
elementRef: a
|
|
541
541
|
}) => {
|
|
542
|
-
const [r, o] =
|
|
543
|
-
return
|
|
544
|
-
const
|
|
545
|
-
if (!i &&
|
|
542
|
+
const [r, o] = g.useState(e), [_, n] = g.useState(e), [i, l] = g.useState(e);
|
|
543
|
+
return g.useEffect(() => {
|
|
544
|
+
const s = a.current;
|
|
545
|
+
if (!i && s) {
|
|
546
546
|
const c = () => o(!1);
|
|
547
|
-
return
|
|
548
|
-
|
|
547
|
+
return s.addEventListener("transitionend", c), n(!1), () => {
|
|
548
|
+
s.removeEventListener(
|
|
549
549
|
"transitionend",
|
|
550
550
|
c
|
|
551
551
|
);
|
|
@@ -555,7 +555,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
555
555
|
o(!0), requestAnimationFrame(() => n(!0));
|
|
556
556
|
return;
|
|
557
557
|
}
|
|
558
|
-
}, [i]),
|
|
558
|
+
}, [i]), g.useEffect(() => {
|
|
559
559
|
l(e);
|
|
560
560
|
}, [e]), {
|
|
561
561
|
isOpen: _,
|
|
@@ -569,7 +569,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
569
569
|
observe: (_, n) => {
|
|
570
570
|
e || (e = new ResizeObserver((i) => {
|
|
571
571
|
i.forEach((l) => {
|
|
572
|
-
const
|
|
572
|
+
const s = l.target, c = a.get(s);
|
|
573
573
|
c && c(l.contentRect);
|
|
574
574
|
});
|
|
575
575
|
})), _ && (a.set(_, n), e.observe(_));
|
|
@@ -583,7 +583,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
583
583
|
a(o);
|
|
584
584
|
}) : ro.unobserve(e));
|
|
585
585
|
}, Go = () => {
|
|
586
|
-
const [e, a] =
|
|
586
|
+
const [e, a] = g.useState(0), r = g.useCallback(
|
|
587
587
|
(o) => Xr(
|
|
588
588
|
o,
|
|
589
589
|
(_) => a(_.height)
|
|
@@ -597,7 +597,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
597
597
|
}, tn = ({
|
|
598
598
|
mobileBreakpoint: e
|
|
599
599
|
}) => {
|
|
600
|
-
const [a, r] =
|
|
600
|
+
const [a, r] = g.useState(!1), o = g.useCallback(
|
|
601
601
|
(_) => Xr(
|
|
602
602
|
_,
|
|
603
603
|
(n) => r(n.width <= e)
|
|
@@ -673,26 +673,26 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
673
673
|
height: 64
|
|
674
674
|
}
|
|
675
675
|
}, _o = "icon", P = (e) => {
|
|
676
|
-
const
|
|
676
|
+
const d = e, {
|
|
677
677
|
source: a,
|
|
678
678
|
size: r = "medium",
|
|
679
679
|
kind: o,
|
|
680
680
|
disabled: _,
|
|
681
681
|
className: n,
|
|
682
682
|
customColor: i
|
|
683
|
-
} =
|
|
683
|
+
} = d, l = F(d, [
|
|
684
684
|
"source",
|
|
685
685
|
"size",
|
|
686
686
|
"kind",
|
|
687
687
|
"disabled",
|
|
688
688
|
"className",
|
|
689
689
|
"customColor"
|
|
690
|
-
]),
|
|
690
|
+
]), s = g.createElement(a, k(k({}, rn[r]), i ? { color: i } : {})), c = u(
|
|
691
691
|
n,
|
|
692
692
|
oo[_o],
|
|
693
693
|
o && oo[`${_o}--${_ ? "disabled--" : ""}${o}`]
|
|
694
694
|
);
|
|
695
|
-
return /* @__PURE__ */ t("span", E(k({}, l), { className: c, children:
|
|
695
|
+
return /* @__PURE__ */ t("span", E(k({}, l), { className: c, children: s }));
|
|
696
696
|
}, et = {
|
|
697
697
|
"heading-xl": "lc-Typography-module__heading-xl___jTpRq",
|
|
698
698
|
"heading-lg": "lc-Typography-module__heading-lg___VGjgP",
|
|
@@ -724,7 +724,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
724
724
|
xs: "h5",
|
|
725
725
|
"2xs": "h6"
|
|
726
726
|
}, he = (c) => {
|
|
727
|
-
var
|
|
727
|
+
var d = c, {
|
|
728
728
|
as: e,
|
|
729
729
|
size: a = "md",
|
|
730
730
|
children: r,
|
|
@@ -733,7 +733,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
733
733
|
bold: n,
|
|
734
734
|
customColor: i,
|
|
735
735
|
textAlign: l
|
|
736
|
-
} =
|
|
736
|
+
} = d, s = F(d, [
|
|
737
737
|
"as",
|
|
738
738
|
"size",
|
|
739
739
|
"children",
|
|
@@ -743,7 +743,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
743
743
|
"customColor",
|
|
744
744
|
"textAlign"
|
|
745
745
|
]);
|
|
746
|
-
return
|
|
746
|
+
return g.createElement(
|
|
747
747
|
e || on[a],
|
|
748
748
|
k({
|
|
749
749
|
className: u(
|
|
@@ -755,7 +755,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
755
755
|
o
|
|
756
756
|
),
|
|
757
757
|
style: k(k({}, i && { color: i }), l && { textAlign: l })
|
|
758
|
-
},
|
|
758
|
+
}, s),
|
|
759
759
|
r
|
|
760
760
|
);
|
|
761
761
|
}, A = (v) => {
|
|
@@ -768,11 +768,11 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
768
768
|
underline: n = !1,
|
|
769
769
|
strike: i = !1,
|
|
770
770
|
children: l,
|
|
771
|
-
className:
|
|
771
|
+
className: s,
|
|
772
772
|
customColor: c,
|
|
773
|
-
textAlign:
|
|
774
|
-
noMargin:
|
|
775
|
-
} = h,
|
|
773
|
+
textAlign: d,
|
|
774
|
+
noMargin: m
|
|
775
|
+
} = h, p = F(h, [
|
|
776
776
|
"as",
|
|
777
777
|
"size",
|
|
778
778
|
"caps",
|
|
@@ -787,7 +787,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
787
787
|
"noMargin"
|
|
788
788
|
]);
|
|
789
789
|
const b = "paragraph";
|
|
790
|
-
return
|
|
790
|
+
return g.createElement(
|
|
791
791
|
e,
|
|
792
792
|
k({
|
|
793
793
|
className: u(
|
|
@@ -797,16 +797,16 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
797
797
|
[et[`${b}--strike`]]: i,
|
|
798
798
|
[et[`${b}--underline`]]: n,
|
|
799
799
|
[et[`${b}--uppercase`]]: o || r,
|
|
800
|
-
[et[`${b}--no-margin`]]:
|
|
800
|
+
[et[`${b}--no-margin`]]: m
|
|
801
801
|
},
|
|
802
|
-
|
|
802
|
+
s
|
|
803
803
|
),
|
|
804
|
-
style: k(k({}, c && { color: c }),
|
|
805
|
-
},
|
|
804
|
+
style: k(k({}, c && { color: c }), d && { textAlign: d })
|
|
805
|
+
}, p),
|
|
806
806
|
l
|
|
807
807
|
);
|
|
808
|
-
}, cs = (
|
|
809
|
-
var c =
|
|
808
|
+
}, cs = (s) => {
|
|
809
|
+
var c = s, {
|
|
810
810
|
as: e = "div",
|
|
811
811
|
size: a = "md",
|
|
812
812
|
children: r,
|
|
@@ -823,7 +823,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
823
823
|
"textAlign",
|
|
824
824
|
"bold"
|
|
825
825
|
]);
|
|
826
|
-
return
|
|
826
|
+
return g.createElement(
|
|
827
827
|
e,
|
|
828
828
|
k({
|
|
829
829
|
className: u(
|
|
@@ -841,7 +841,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
841
841
|
"accordion-multiline": "lc-AccordionMultilineElement-module__accordion-multiline___oI-PH",
|
|
842
842
|
"accordion-multiline__inner": "lc-AccordionMultilineElement-module__accordion-multiline__inner___bBTnC"
|
|
843
843
|
}, io = "accordion-multiline", _n = ({ children: e, isExpanded: a }) => {
|
|
844
|
-
const r =
|
|
844
|
+
const r = g.useRef(null), { isOpen: o, isMounted: _ } = Gt({
|
|
845
845
|
isVisible: !a,
|
|
846
846
|
elementRef: r
|
|
847
847
|
}), { size: n, handleResizeRef: i } = Go();
|
|
@@ -865,28 +865,28 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
865
865
|
closed: a,
|
|
866
866
|
isOpen: r
|
|
867
867
|
}) => {
|
|
868
|
-
const o =
|
|
868
|
+
const o = g.useRef(null), _ = g.useRef(null), [n, i] = g.useState(void 0), { isOpen: l, isMounted: s } = Gt({
|
|
869
869
|
isVisible: r,
|
|
870
870
|
elementRef: o
|
|
871
|
-
}), { isOpen: c, isMounted:
|
|
871
|
+
}), { isOpen: c, isMounted: d } = Gt(
|
|
872
872
|
{
|
|
873
873
|
isVisible: !r,
|
|
874
874
|
elementRef: _
|
|
875
875
|
}
|
|
876
876
|
);
|
|
877
|
-
return
|
|
878
|
-
const
|
|
879
|
-
if (
|
|
880
|
-
const
|
|
881
|
-
i(
|
|
877
|
+
return g.useEffect(() => {
|
|
878
|
+
const m = r ? o.current : _.current;
|
|
879
|
+
if (m) {
|
|
880
|
+
const p = m.getBoundingClientRect().height;
|
|
881
|
+
i(p);
|
|
882
882
|
}
|
|
883
|
-
}, [r,
|
|
883
|
+
}, [r, s, d]), /* @__PURE__ */ f(
|
|
884
884
|
"div",
|
|
885
885
|
{
|
|
886
886
|
className: aa[ra],
|
|
887
887
|
style: { height: n ? `${n}px` : "auto" },
|
|
888
888
|
children: [
|
|
889
|
-
|
|
889
|
+
s && /* @__PURE__ */ t(
|
|
890
890
|
"div",
|
|
891
891
|
{
|
|
892
892
|
ref: o,
|
|
@@ -896,7 +896,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
896
896
|
children: e
|
|
897
897
|
}
|
|
898
898
|
),
|
|
899
|
-
|
|
899
|
+
d && /* @__PURE__ */ t(
|
|
900
900
|
"div",
|
|
901
901
|
{
|
|
902
902
|
ref: _,
|
|
@@ -930,8 +930,8 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
930
930
|
accordion__content: mn,
|
|
931
931
|
accordion__content__inner: pn,
|
|
932
932
|
"accordion__content__inner--open": "lc-Accordion-module__accordion__content__inner--open___BhKjm"
|
|
933
|
-
}, mt = "accordion", ss = (
|
|
934
|
-
var
|
|
933
|
+
}, mt = "accordion", ss = (d) => {
|
|
934
|
+
var m = d, {
|
|
935
935
|
className: e,
|
|
936
936
|
children: a,
|
|
937
937
|
label: r,
|
|
@@ -940,8 +940,8 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
940
940
|
openOnInit: n = !1,
|
|
941
941
|
isOpen: i,
|
|
942
942
|
onClose: l,
|
|
943
|
-
onOpen:
|
|
944
|
-
} =
|
|
943
|
+
onOpen: s
|
|
944
|
+
} = m, c = F(m, [
|
|
945
945
|
"className",
|
|
946
946
|
"children",
|
|
947
947
|
"label",
|
|
@@ -952,7 +952,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
952
952
|
"onClose",
|
|
953
953
|
"onOpen"
|
|
954
954
|
]);
|
|
955
|
-
const
|
|
955
|
+
const p = i !== void 0, v = p ? i : n, h = g.useRef(null), {
|
|
956
956
|
isOpen: b,
|
|
957
957
|
isMounted: y,
|
|
958
958
|
setShouldBeVisible: C
|
|
@@ -967,7 +967,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
967
967
|
},
|
|
968
968
|
e
|
|
969
969
|
), { size: B, handleResizeRef: $ } = Go(), S = (x) => {
|
|
970
|
-
x ? (l == null || l(), !
|
|
970
|
+
x ? (l == null || l(), !p && C(!1)) : (s == null || s(), !p && C(!0));
|
|
971
971
|
};
|
|
972
972
|
return /* @__PURE__ */ f(
|
|
973
973
|
"div",
|
|
@@ -1056,11 +1056,11 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1056
1056
|
openedOnInit: n = !1,
|
|
1057
1057
|
keepOpenOnClick: i,
|
|
1058
1058
|
flipOptions: l,
|
|
1059
|
-
visible:
|
|
1059
|
+
visible: s,
|
|
1060
1060
|
onClose: c,
|
|
1061
|
-
onOpen:
|
|
1062
|
-
floatingStrategy:
|
|
1063
|
-
selectedOptions:
|
|
1061
|
+
onOpen: d,
|
|
1062
|
+
floatingStrategy: m,
|
|
1063
|
+
selectedOptions: p,
|
|
1064
1064
|
footer: v
|
|
1065
1065
|
} = y, h = F(y, [
|
|
1066
1066
|
"className",
|
|
@@ -1078,8 +1078,8 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1078
1078
|
"selectedOptions",
|
|
1079
1079
|
"footer"
|
|
1080
1080
|
]);
|
|
1081
|
-
const C =
|
|
1082
|
-
G ? (c == null || c(), !C && B(!1)) : (
|
|
1081
|
+
const C = s !== void 0, [N, B] = g.useState(n), [$, S] = g.useState(null), w = g.useRef(-1), x = cr(), I = Ba(), R = g.useRef(null), G = C ? s : N, T = () => {
|
|
1082
|
+
G ? (c == null || c(), !C && B(!1)) : (d == null || d(), !C && B(!0));
|
|
1083
1083
|
}, { x: D, y: z, strategy: ie, refs: V, context: H } = Ea({
|
|
1084
1084
|
nodeId: I,
|
|
1085
1085
|
middleware: [
|
|
@@ -1093,12 +1093,12 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1093
1093
|
],
|
|
1094
1094
|
placement: _,
|
|
1095
1095
|
open: G,
|
|
1096
|
-
strategy:
|
|
1096
|
+
strategy: m,
|
|
1097
1097
|
onOpenChange: T,
|
|
1098
1098
|
whileElementsMounted: Ta
|
|
1099
1099
|
}), K = Aa(H), Oe = Da(H, {
|
|
1100
1100
|
enabled: G
|
|
1101
|
-
}), at = Pa(H), { getReferenceProps:
|
|
1101
|
+
}), at = Pa(H), { getReferenceProps: Ct, getFloatingProps: xe } = Fa([
|
|
1102
1102
|
K,
|
|
1103
1103
|
Oe,
|
|
1104
1104
|
at
|
|
@@ -1132,14 +1132,14 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1132
1132
|
}, Le = (M) => {
|
|
1133
1133
|
M.key === ke.arrowUp && w.current > 0 && (M.preventDefault(), ct(-1)), M.key === ke.arrowDown && w.current + 1 < r.length && (M.preventDefault(), ct(1));
|
|
1134
1134
|
};
|
|
1135
|
-
|
|
1135
|
+
g.useEffect(() => {
|
|
1136
1136
|
if (G)
|
|
1137
1137
|
return document.addEventListener("keydown", Le), () => document.removeEventListener("keydown", Le);
|
|
1138
1138
|
w.current = -1;
|
|
1139
1139
|
}, [G, Le]);
|
|
1140
|
-
const
|
|
1140
|
+
const $t = (M, J) => {
|
|
1141
1141
|
w.current = M, J == null || J(), !C && !i && (B(!1), c == null || c());
|
|
1142
|
-
},
|
|
1142
|
+
}, Nt = (M, J) => M.groupHeader ? /* @__PURE__ */ t(
|
|
1143
1143
|
"li",
|
|
1144
1144
|
{
|
|
1145
1145
|
role: "none",
|
|
@@ -1153,16 +1153,16 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1153
1153
|
"data-testid": M.key,
|
|
1154
1154
|
tabIndex: -1,
|
|
1155
1155
|
disabled: M.disabled,
|
|
1156
|
-
onClick: () =>
|
|
1156
|
+
onClick: () => $t(J, M.onClick),
|
|
1157
1157
|
role: "menuitem",
|
|
1158
1158
|
className: u(ot[`${_t}__list__item`], {
|
|
1159
1159
|
[ot[`${_t}__list__item--disabled`]]: M.disabled,
|
|
1160
1160
|
[ot[`${_t}__list__item--with-divider`]]: M.withDivider,
|
|
1161
|
-
[ot[`${_t}__list__item--selected`]]:
|
|
1161
|
+
[ot[`${_t}__list__item--selected`]]: p == null ? void 0 : p.includes(M.key)
|
|
1162
1162
|
}),
|
|
1163
1163
|
children: [
|
|
1164
1164
|
M.element,
|
|
1165
|
-
(
|
|
1165
|
+
(p == null ? void 0 : p.includes(M.key)) && /* @__PURE__ */ t(
|
|
1166
1166
|
"div",
|
|
1167
1167
|
{
|
|
1168
1168
|
"data-testid": `${M.key}-selected-icon`,
|
|
@@ -1180,7 +1180,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1180
1180
|
"aria-label": "Toggle menu",
|
|
1181
1181
|
"data-testid": "action-menu-trigger-button",
|
|
1182
1182
|
ref: V.setReference
|
|
1183
|
-
},
|
|
1183
|
+
}, Ct()), {
|
|
1184
1184
|
className: a,
|
|
1185
1185
|
children: o
|
|
1186
1186
|
})
|
|
@@ -1209,7 +1209,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1209
1209
|
),
|
|
1210
1210
|
role: "menu",
|
|
1211
1211
|
ref: R,
|
|
1212
|
-
children: r.map(
|
|
1212
|
+
children: r.map(Nt)
|
|
1213
1213
|
})
|
|
1214
1214
|
),
|
|
1215
1215
|
v && /* @__PURE__ */ t(
|
|
@@ -1342,7 +1342,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1342
1342
|
"btn--animated-label": "lc-Button-module__btn--animated-label___8uZTa",
|
|
1343
1343
|
btn__content: Nn,
|
|
1344
1344
|
"btn--animated-label--expanded": "lc-Button-module__btn--animated-label--expanded___dTfmD"
|
|
1345
|
-
}, ue = "btn",
|
|
1345
|
+
}, ue = "btn", j = g.forwardRef(
|
|
1346
1346
|
(y, b) => {
|
|
1347
1347
|
var C = y, {
|
|
1348
1348
|
loading: e = !1,
|
|
@@ -1353,11 +1353,11 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1353
1353
|
size: n = "medium",
|
|
1354
1354
|
icon: i = null,
|
|
1355
1355
|
iconPosition: l = "left",
|
|
1356
|
-
loaderLabel:
|
|
1356
|
+
loaderLabel: s,
|
|
1357
1357
|
className: c,
|
|
1358
|
-
children:
|
|
1359
|
-
href:
|
|
1360
|
-
onClick:
|
|
1358
|
+
children: d,
|
|
1359
|
+
href: m,
|
|
1360
|
+
onClick: p,
|
|
1361
1361
|
animatedLabel: v
|
|
1362
1362
|
} = C, h = F(C, [
|
|
1363
1363
|
"loading",
|
|
@@ -1375,7 +1375,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1375
1375
|
"onClick",
|
|
1376
1376
|
"animatedLabel"
|
|
1377
1377
|
]);
|
|
1378
|
-
const [N, B] =
|
|
1378
|
+
const [N, B] = g.useState(0), [$, S] = g.useState(!1), w = e || a, x = !d && i, I = v && d && i, R = ["text", "link", "link-light"].includes(_), G = m ? "a" : "button", T = u(
|
|
1379
1379
|
de[ue],
|
|
1380
1380
|
de[`${ue}--${_}`],
|
|
1381
1381
|
de[`${ue}--${n}`],
|
|
@@ -1399,7 +1399,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1399
1399
|
"aria-disabled": w,
|
|
1400
1400
|
type: r,
|
|
1401
1401
|
disabled: w
|
|
1402
|
-
}, !w && { href:
|
|
1402
|
+
}, !w && { href: m, onClick: p }), h), I && {
|
|
1403
1403
|
onMouseEnter: (D) => co(
|
|
1404
1404
|
D,
|
|
1405
1405
|
() => S(!0),
|
|
@@ -1426,11 +1426,11 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1426
1426
|
k({
|
|
1427
1427
|
"data-testid": "button-loader",
|
|
1428
1428
|
size: "small",
|
|
1429
|
-
label:
|
|
1429
|
+
label: s,
|
|
1430
1430
|
className: de[`${ue}__loader`]
|
|
1431
1431
|
}, vn(_))
|
|
1432
1432
|
),
|
|
1433
|
-
i &&
|
|
1433
|
+
i && g.cloneElement(i, {
|
|
1434
1434
|
className: u(
|
|
1435
1435
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1436
1436
|
i.props.className,
|
|
@@ -1448,7 +1448,7 @@ const _s = (e) => e === "dark" ? Dt.Dark : Dt.Light, Oo = u_(void 0), ns = () =>
|
|
|
1448
1448
|
{
|
|
1449
1449
|
className: de[`${ue}__content`],
|
|
1450
1450
|
style: I ? { maxWidth: $ ? N : 0 } : void 0,
|
|
1451
|
-
children: I ? /* @__PURE__ */ t("span", { ref: (D) => yn(D, B), children:
|
|
1451
|
+
children: I ? /* @__PURE__ */ t("span", { ref: (D) => yn(D, B), children: d }) : d
|
|
1452
1452
|
}
|
|
1453
1453
|
)
|
|
1454
1454
|
]
|
|
@@ -1494,7 +1494,7 @@ const Sn = (e) => {
|
|
|
1494
1494
|
fill: "var(--tooltip-background-basic)"
|
|
1495
1495
|
};
|
|
1496
1496
|
}
|
|
1497
|
-
}, Bn = "lc-Tooltip-module__tooltip___LjRUX", En = "lc-Tooltip-module__tooltip__content___cxaIe", In = "lc-Tooltip-module__tooltip__arrow___vLFFP", Tn = "lc-Tooltip-module__tooltip__interactive___WTll9",
|
|
1497
|
+
}, Bn = "lc-Tooltip-module__tooltip___LjRUX", En = "lc-Tooltip-module__tooltip__content___cxaIe", In = "lc-Tooltip-module__tooltip__arrow___vLFFP", Tn = "lc-Tooltip-module__tooltip__interactive___WTll9", L = {
|
|
1498
1498
|
tooltip: Bn,
|
|
1499
1499
|
tooltip__content: En,
|
|
1500
1500
|
"tooltip--invert": "lc-Tooltip-module__tooltip--invert___J4i3t",
|
|
@@ -1511,7 +1511,6 @@ const Sn = (e) => {
|
|
|
1511
1511
|
"tooltip-close": "lc-Tooltip-module__tooltip-close___3t8it",
|
|
1512
1512
|
"tooltip-step": "lc-Tooltip-module__tooltip-step___WnQFV",
|
|
1513
1513
|
"tooltip-footer": "lc-Tooltip-module__tooltip-footer___Ila6T",
|
|
1514
|
-
"tooltip-footer-secondary": "lc-Tooltip-module__tooltip-footer-secondary___9OaW5",
|
|
1515
1514
|
"tooltip-footer--interactive": "lc-Tooltip-module__tooltip-footer--interactive___8WwVX",
|
|
1516
1515
|
"tooltip-footer--user-guide-step": "lc-Tooltip-module__tooltip-footer--user-guide-step___hIsO4",
|
|
1517
1516
|
"guide-tooltip": "lc-Tooltip-module__guide-tooltip___lBG0P",
|
|
@@ -1533,11 +1532,11 @@ const Sn = (e) => {
|
|
|
1533
1532
|
kind: n,
|
|
1534
1533
|
placement: i = "bottom",
|
|
1535
1534
|
isVisible: l,
|
|
1536
|
-
fullSpaceContent:
|
|
1535
|
+
fullSpaceContent: s,
|
|
1537
1536
|
onClose: c,
|
|
1538
|
-
onOpen:
|
|
1539
|
-
withFadeAnimation:
|
|
1540
|
-
transitionDuration:
|
|
1537
|
+
onOpen: d,
|
|
1538
|
+
withFadeAnimation: m = !0,
|
|
1539
|
+
transitionDuration: p = 200,
|
|
1541
1540
|
hoverOnDuration: v,
|
|
1542
1541
|
hoverOffDuration: h,
|
|
1543
1542
|
transitionDelay: b = 0,
|
|
@@ -1560,18 +1559,18 @@ const Sn = (e) => {
|
|
|
1560
1559
|
portalProps: H,
|
|
1561
1560
|
hideWhenReferenceHidden: K = !1
|
|
1562
1561
|
}) => {
|
|
1563
|
-
const Oe = l !== void 0, [at,
|
|
1564
|
-
|
|
1562
|
+
const Oe = l !== void 0, [at, Ct] = g.useState(!1), xe = g.useRef(null), lt = Oe ? l : at, rt = n || _, ct = cr(), Le = Ba(), $t = u(
|
|
1563
|
+
L[Ua],
|
|
1565
1564
|
a,
|
|
1566
|
-
rt &&
|
|
1567
|
-
|
|
1568
|
-
),
|
|
1569
|
-
Ge !== lt && (Ge ?
|
|
1570
|
-
}, M = (Ge) =>
|
|
1565
|
+
rt && L[`${Ua}--${rt}`],
|
|
1566
|
+
s && L[`${Ua}--full-space`]
|
|
1567
|
+
), Nt = typeof o == "function", st = (Ge) => {
|
|
1568
|
+
Ge !== lt && (Ge ? d == null || d() : c == null || c(), !Oe && Ct(Ge));
|
|
1569
|
+
}, M = (Ge) => m ? Ge != null ? Ge : p : 0, J = (Ge) => Ge != null ? Ge : b, {
|
|
1571
1570
|
floatingStyles: se,
|
|
1572
1571
|
refs: W,
|
|
1573
1572
|
context: Y,
|
|
1574
|
-
middlewareData: { arrow: { x: dt, y: zt } = {}, hide:
|
|
1573
|
+
middlewareData: { arrow: { x: dt, y: zt } = {}, hide: xt }
|
|
1575
1574
|
} = Ea({
|
|
1576
1575
|
nodeId: Le,
|
|
1577
1576
|
middleware: [
|
|
@@ -1609,7 +1608,7 @@ const Sn = (e) => {
|
|
|
1609
1608
|
hr,
|
|
1610
1609
|
fr
|
|
1611
1610
|
]);
|
|
1612
|
-
|
|
1611
|
+
g.useEffect(() => {
|
|
1613
1612
|
w && W.setReference(w);
|
|
1614
1613
|
}, [W.setReference, w]);
|
|
1615
1614
|
const Oa = /* @__PURE__ */ t(ta, { id: Le, children: br && /* @__PURE__ */ f(
|
|
@@ -1617,13 +1616,13 @@ const Sn = (e) => {
|
|
|
1617
1616
|
E(k({
|
|
1618
1617
|
ref: W.setFloating,
|
|
1619
1618
|
style: E(k(k({}, se), vr), {
|
|
1620
|
-
visibility:
|
|
1619
|
+
visibility: xt != null && xt.referenceHidden ? "hidden" : "visible"
|
|
1621
1620
|
}),
|
|
1622
|
-
className:
|
|
1621
|
+
className: $t
|
|
1623
1622
|
}, Ma()), {
|
|
1624
1623
|
"data-status": kr,
|
|
1625
1624
|
children: [
|
|
1626
|
-
/* @__PURE__ */ t(A, { as: "div", className:
|
|
1625
|
+
/* @__PURE__ */ t(A, { as: "div", className: L[`${Ua}__content`], children: e }),
|
|
1627
1626
|
/* @__PURE__ */ t(
|
|
1628
1627
|
W_,
|
|
1629
1628
|
k({
|
|
@@ -1651,7 +1650,7 @@ const Sn = (e) => {
|
|
|
1651
1650
|
ref: W.setReference
|
|
1652
1651
|
}, Ra()), {
|
|
1653
1652
|
className: r,
|
|
1654
|
-
children:
|
|
1653
|
+
children: Nt ? o() : o
|
|
1655
1654
|
})
|
|
1656
1655
|
),
|
|
1657
1656
|
l_()
|
|
@@ -1664,12 +1663,12 @@ const Sn = (e) => {
|
|
|
1664
1663
|
theme: _,
|
|
1665
1664
|
handleCloseAction: n
|
|
1666
1665
|
}) => /* @__PURE__ */ f("div", { className: e, children: [
|
|
1667
|
-
o && /* @__PURE__ */ t(
|
|
1666
|
+
(o || n) && /* @__PURE__ */ t(
|
|
1668
1667
|
"button",
|
|
1669
1668
|
{
|
|
1670
1669
|
type: "button",
|
|
1671
1670
|
"aria-label": "Close tooltip",
|
|
1672
|
-
className:
|
|
1671
|
+
className: L[`${ia}-close`],
|
|
1673
1672
|
onClick: n,
|
|
1674
1673
|
children: /* @__PURE__ */ t(P, { source: Me, kind: _ ? zo(_) : "primary" })
|
|
1675
1674
|
}
|
|
@@ -1679,8 +1678,8 @@ const Sn = (e) => {
|
|
|
1679
1678
|
{
|
|
1680
1679
|
as: "div",
|
|
1681
1680
|
size: "xs",
|
|
1682
|
-
className: u(
|
|
1683
|
-
[
|
|
1681
|
+
className: u(L[`${ia}-header`], {
|
|
1682
|
+
[L[`${ia}-header--info`]]: o
|
|
1684
1683
|
}),
|
|
1685
1684
|
children: a
|
|
1686
1685
|
}
|
|
@@ -1690,13 +1689,13 @@ const Sn = (e) => {
|
|
|
1690
1689
|
{
|
|
1691
1690
|
as: "div",
|
|
1692
1691
|
className: u({
|
|
1693
|
-
[
|
|
1694
|
-
[
|
|
1692
|
+
[L[`${ia}-text`]]: o,
|
|
1693
|
+
[L[`${ia}-text--info`]]: o
|
|
1695
1694
|
}),
|
|
1696
1695
|
children: r
|
|
1697
1696
|
}
|
|
1698
1697
|
)
|
|
1699
|
-
] }),
|
|
1698
|
+
] }), St = "tooltip", An = ({
|
|
1700
1699
|
header: e,
|
|
1701
1700
|
text: a,
|
|
1702
1701
|
image: r,
|
|
@@ -1706,56 +1705,51 @@ const Sn = (e) => {
|
|
|
1706
1705
|
primaryButton: i,
|
|
1707
1706
|
secondaryButton: l
|
|
1708
1707
|
}) => {
|
|
1709
|
-
const
|
|
1710
|
-
|
|
1711
|
-
|
|
1708
|
+
const s = (m) => m === "invert" ? "secondary" : m === "important" ? "plain-lock-black" : "high-contrast", c = (m) => m === "invert" ? "link-inverted" : m === "important" ? "text-lock-black" : "text", d = (m, p = !0) => {
|
|
1709
|
+
if (!m) return null;
|
|
1710
|
+
if (g.isValidElement(m))
|
|
1711
|
+
return m;
|
|
1712
|
+
const v = m, h = p ? v.kind || s(_) : v.kind || c(_);
|
|
1713
|
+
return /* @__PURE__ */ t(
|
|
1714
|
+
j,
|
|
1715
|
+
E(k({}, v), {
|
|
1716
|
+
kind: h,
|
|
1717
|
+
onClick: v.handleClick,
|
|
1718
|
+
children: v.label
|
|
1719
|
+
})
|
|
1720
|
+
);
|
|
1721
|
+
};
|
|
1722
|
+
return /* @__PURE__ */ f("div", { className: L[`${St}__interactive`], children: [
|
|
1723
|
+
(o || n) && /* @__PURE__ */ t(
|
|
1712
1724
|
"button",
|
|
1713
1725
|
{
|
|
1714
1726
|
type: "button",
|
|
1715
1727
|
"aria-label": "Close tooltip",
|
|
1716
|
-
className:
|
|
1728
|
+
className: L[`${St}-close`],
|
|
1717
1729
|
onClick: n,
|
|
1718
1730
|
children: /* @__PURE__ */ t(P, { source: Me, kind: _ ? zo(_) : "primary" })
|
|
1719
1731
|
}
|
|
1720
1732
|
),
|
|
1721
|
-
r && /* @__PURE__ */ t("div", { className:
|
|
1733
|
+
r && /* @__PURE__ */ t("div", { className: L[`${St}-image-container`], children: /* @__PURE__ */ t(
|
|
1722
1734
|
"img",
|
|
1723
1735
|
{
|
|
1724
|
-
className:
|
|
1736
|
+
className: L[`${St}-image`],
|
|
1725
1737
|
src: r.src,
|
|
1726
1738
|
alt: r.alt
|
|
1727
1739
|
}
|
|
1728
1740
|
) }),
|
|
1729
|
-
e && /* @__PURE__ */ t(he, { as: "div", size: "xs", className:
|
|
1730
|
-
/* @__PURE__ */ t("div", { className:
|
|
1741
|
+
e && /* @__PURE__ */ t(he, { as: "div", size: "xs", className: L[`${St}-header`], children: e }),
|
|
1742
|
+
/* @__PURE__ */ t("div", { className: L[`${St}-text`], children: a }),
|
|
1731
1743
|
/* @__PURE__ */ f(
|
|
1732
1744
|
"div",
|
|
1733
1745
|
{
|
|
1734
1746
|
className: u(
|
|
1735
|
-
|
|
1736
|
-
|
|
1747
|
+
L[`${St}-footer`],
|
|
1748
|
+
L[`${St}-footer--interactive`]
|
|
1737
1749
|
),
|
|
1738
1750
|
children: [
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
E(k({}, i), {
|
|
1742
|
-
kind: i.kind || d(_),
|
|
1743
|
-
onClick: i.handleClick,
|
|
1744
|
-
children: i.label
|
|
1745
|
-
})
|
|
1746
|
-
),
|
|
1747
|
-
l && /* @__PURE__ */ t(
|
|
1748
|
-
q,
|
|
1749
|
-
E(k({}, l), {
|
|
1750
|
-
className: u(
|
|
1751
|
-
O[`${pt}-footer-secondary`],
|
|
1752
|
-
l.className
|
|
1753
|
-
),
|
|
1754
|
-
kind: l.kind || c(_),
|
|
1755
|
-
onClick: l.handleClick,
|
|
1756
|
-
children: l.label
|
|
1757
|
-
})
|
|
1758
|
-
)
|
|
1751
|
+
d(i, !0),
|
|
1752
|
+
d(l, !1)
|
|
1759
1753
|
]
|
|
1760
1754
|
}
|
|
1761
1755
|
)
|
|
@@ -1787,7 +1781,7 @@ const Sn = (e) => {
|
|
|
1787
1781
|
left: "0",
|
|
1788
1782
|
width: "100%",
|
|
1789
1783
|
height: `calc(100% - ${e.bottom}px)`
|
|
1790
|
-
},
|
|
1784
|
+
}, s = {
|
|
1791
1785
|
top: `${e.top}px`,
|
|
1792
1786
|
left: `${e.left}px`,
|
|
1793
1787
|
width: `${e.width}px`,
|
|
@@ -1799,9 +1793,9 @@ const Sn = (e) => {
|
|
|
1799
1793
|
"div",
|
|
1800
1794
|
{
|
|
1801
1795
|
className: u({
|
|
1802
|
-
[
|
|
1803
|
-
[
|
|
1804
|
-
[
|
|
1796
|
+
[L[`${fe}__overlay`]]: !0,
|
|
1797
|
+
[L[`${fe}__overlay--visible`]]: a,
|
|
1798
|
+
[L[`${fe}__overlay--slide`]]: r
|
|
1805
1799
|
}),
|
|
1806
1800
|
style: _
|
|
1807
1801
|
}
|
|
@@ -1810,9 +1804,9 @@ const Sn = (e) => {
|
|
|
1810
1804
|
"div",
|
|
1811
1805
|
{
|
|
1812
1806
|
className: u({
|
|
1813
|
-
[
|
|
1814
|
-
[
|
|
1815
|
-
[
|
|
1807
|
+
[L[`${fe}__overlay`]]: !0,
|
|
1808
|
+
[L[`${fe}__overlay--visible`]]: a,
|
|
1809
|
+
[L[`${fe}__overlay--slide`]]: r
|
|
1816
1810
|
}),
|
|
1817
1811
|
style: i
|
|
1818
1812
|
}
|
|
@@ -1821,9 +1815,9 @@ const Sn = (e) => {
|
|
|
1821
1815
|
"div",
|
|
1822
1816
|
{
|
|
1823
1817
|
className: u({
|
|
1824
|
-
[
|
|
1825
|
-
[
|
|
1826
|
-
[
|
|
1818
|
+
[L[`${fe}__overlay`]]: !0,
|
|
1819
|
+
[L[`${fe}__overlay--visible`]]: a,
|
|
1820
|
+
[L[`${fe}__overlay--slide`]]: r
|
|
1827
1821
|
}),
|
|
1828
1822
|
style: n
|
|
1829
1823
|
}
|
|
@@ -1832,9 +1826,9 @@ const Sn = (e) => {
|
|
|
1832
1826
|
"div",
|
|
1833
1827
|
{
|
|
1834
1828
|
className: u({
|
|
1835
|
-
[
|
|
1836
|
-
[
|
|
1837
|
-
[
|
|
1829
|
+
[L[`${fe}__overlay`]]: !0,
|
|
1830
|
+
[L[`${fe}__overlay--visible`]]: a,
|
|
1831
|
+
[L[`${fe}__overlay--slide`]]: r
|
|
1838
1832
|
}),
|
|
1839
1833
|
style: l
|
|
1840
1834
|
}
|
|
@@ -1843,11 +1837,11 @@ const Sn = (e) => {
|
|
|
1843
1837
|
"div",
|
|
1844
1838
|
{
|
|
1845
1839
|
className: u({
|
|
1846
|
-
[
|
|
1847
|
-
[
|
|
1848
|
-
[
|
|
1840
|
+
[L[`${fe}__overlay`]]: !0,
|
|
1841
|
+
[L[`${fe}__overlay--visible`]]: a,
|
|
1842
|
+
[L[`${fe}__overlay--slide`]]: r
|
|
1849
1843
|
}),
|
|
1850
|
-
style:
|
|
1844
|
+
style: s
|
|
1851
1845
|
}
|
|
1852
1846
|
)
|
|
1853
1847
|
] });
|
|
@@ -1859,7 +1853,7 @@ class Pn {
|
|
|
1859
1853
|
this.element = a, this.padding = r;
|
|
1860
1854
|
}
|
|
1861
1855
|
addPadding(a) {
|
|
1862
|
-
const r = Math.round(a.left) - this.padding, o = Math.round(a.top) - this.padding, _ = Math.round(a.width) + 2 * this.padding, n = Math.round(a.height) + 2 * this.padding, i = o, l = r,
|
|
1856
|
+
const r = Math.round(a.left) - this.padding, o = Math.round(a.top) - this.padding, _ = Math.round(a.width) + 2 * this.padding, n = Math.round(a.height) + 2 * this.padding, i = o, l = r, s = i + n, c = l + _;
|
|
1863
1857
|
return {
|
|
1864
1858
|
x: r,
|
|
1865
1859
|
y: o,
|
|
@@ -1867,7 +1861,7 @@ class Pn {
|
|
|
1867
1861
|
height: n,
|
|
1868
1862
|
top: i,
|
|
1869
1863
|
left: l,
|
|
1870
|
-
bottom:
|
|
1864
|
+
bottom: s,
|
|
1871
1865
|
right: c
|
|
1872
1866
|
};
|
|
1873
1867
|
}
|
|
@@ -1887,33 +1881,33 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
1887
1881
|
parentElementName: r,
|
|
1888
1882
|
isVisible: o = !1,
|
|
1889
1883
|
shouldSlide: _ = !0
|
|
1890
|
-
} = e, [n, i] =
|
|
1884
|
+
} = e, [n, i] = g.useState(
|
|
1891
1885
|
null
|
|
1892
|
-
), [l,
|
|
1893
|
-
n && (
|
|
1886
|
+
), [l, s] = g.useState(null), [c, d] = g.useState(_), m = () => {
|
|
1887
|
+
n && (s(
|
|
1894
1888
|
mo(
|
|
1895
1889
|
n,
|
|
1896
1890
|
so
|
|
1897
1891
|
).getBoundingClientRect()
|
|
1898
|
-
),
|
|
1892
|
+
), d(!1));
|
|
1899
1893
|
};
|
|
1900
|
-
return
|
|
1894
|
+
return g.useEffect(() => {
|
|
1901
1895
|
if (n !== null)
|
|
1902
|
-
return window.addEventListener("resize",
|
|
1903
|
-
window.removeEventListener("resize",
|
|
1896
|
+
return window.addEventListener("resize", m), window.addEventListener("scroll", m), () => {
|
|
1897
|
+
window.removeEventListener("resize", m), window.removeEventListener("scroll", m);
|
|
1904
1898
|
};
|
|
1905
|
-
}, [n]),
|
|
1899
|
+
}, [n]), g.useEffect(() => {
|
|
1906
1900
|
if (r) {
|
|
1907
|
-
const
|
|
1908
|
-
i(
|
|
1901
|
+
const p = document.querySelector(r);
|
|
1902
|
+
i(p);
|
|
1909
1903
|
}
|
|
1910
|
-
}, [r]),
|
|
1911
|
-
n &&
|
|
1904
|
+
}, [r]), g.useEffect(() => {
|
|
1905
|
+
n && s(
|
|
1912
1906
|
mo(
|
|
1913
1907
|
n,
|
|
1914
1908
|
so
|
|
1915
1909
|
).getBoundingClientRect()
|
|
1916
|
-
),
|
|
1910
|
+
), d(!0);
|
|
1917
1911
|
}, [n]), n && o && l ? /* @__PURE__ */ f(ea, { children: [
|
|
1918
1912
|
/* @__PURE__ */ t(
|
|
1919
1913
|
Dn,
|
|
@@ -1933,8 +1927,8 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
1933
1927
|
contextElement: n
|
|
1934
1928
|
},
|
|
1935
1929
|
className: u({
|
|
1936
|
-
[
|
|
1937
|
-
[
|
|
1930
|
+
[L[uo]]: !0,
|
|
1931
|
+
[L[`${uo}--slide`]]: c,
|
|
1938
1932
|
className: a
|
|
1939
1933
|
}),
|
|
1940
1934
|
children: e.children
|
|
@@ -1945,20 +1939,20 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
1945
1939
|
title: e,
|
|
1946
1940
|
description: a,
|
|
1947
1941
|
children: r
|
|
1948
|
-
}) => /* @__PURE__ */ f("div", { className:
|
|
1949
|
-
/* @__PURE__ */ f("div", { className:
|
|
1950
|
-
/* @__PURE__ */ t(A, { as: "div", className:
|
|
1942
|
+
}) => /* @__PURE__ */ f("div", { className: L[la], children: [
|
|
1943
|
+
/* @__PURE__ */ f("div", { className: L[`${la}__heading`], children: [
|
|
1944
|
+
/* @__PURE__ */ t(A, { as: "div", className: L[`${la}__heading__title`], children: e }),
|
|
1951
1945
|
/* @__PURE__ */ t(
|
|
1952
1946
|
A,
|
|
1953
1947
|
{
|
|
1954
1948
|
as: "div",
|
|
1955
1949
|
size: "xs",
|
|
1956
|
-
className:
|
|
1950
|
+
className: L[`${la}__heading__description`],
|
|
1957
1951
|
children: a
|
|
1958
1952
|
}
|
|
1959
1953
|
)
|
|
1960
1954
|
] }),
|
|
1961
|
-
/* @__PURE__ */ t("div", { className:
|
|
1955
|
+
/* @__PURE__ */ t("div", { className: L[`${la}__content`], children: /* @__PURE__ */ t(A, { as: "div", children: r }) })
|
|
1962
1956
|
] }), Q = {
|
|
1963
1957
|
"action-bar": "lc-ActionBar-module__action-bar___yfLdO",
|
|
1964
1958
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___E8fX6",
|
|
@@ -1994,7 +1988,7 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
1994
1988
|
[Q[`${Vt}--active`]]: a,
|
|
1995
1989
|
[Q[`${Vt}--vertical`]]: r
|
|
1996
1990
|
}), _ = /* @__PURE__ */ t(
|
|
1997
|
-
|
|
1991
|
+
j,
|
|
1998
1992
|
{
|
|
1999
1993
|
id: e.key,
|
|
2000
1994
|
title: e != null && e.showTooltip ? void 0 : e.label,
|
|
@@ -2032,7 +2026,7 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2032
2026
|
},
|
|
2033
2027
|
e.key
|
|
2034
2028
|
) : /* @__PURE__ */ t("div", { "data-testid": e.key, className: o, children: _ });
|
|
2035
|
-
}, Ha = "action-bar",
|
|
2029
|
+
}, Ha = "action-bar", pt = "action-bar__menu-wrapper", Rn = 44, gs = ({
|
|
2036
2030
|
className: e,
|
|
2037
2031
|
id: a = "action-bar-area",
|
|
2038
2032
|
type: r = "menu",
|
|
@@ -2041,28 +2035,28 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2041
2035
|
vertical: n,
|
|
2042
2036
|
menuFooter: i
|
|
2043
2037
|
}) => {
|
|
2044
|
-
const [l,
|
|
2038
|
+
const [l, s] = g.useState(
|
|
2045
2039
|
o.length
|
|
2046
|
-
), [c,
|
|
2040
|
+
), [c, d] = g.useState([]), [m, p] = g.useState(!1), v = r === "scroll", h = u(
|
|
2047
2041
|
Q[Ha],
|
|
2048
2042
|
e,
|
|
2049
2043
|
n && Q[`${Ha}--vertical`]
|
|
2050
2044
|
), b = !v && c.length !== 0;
|
|
2051
|
-
|
|
2052
|
-
v || (o.length > l ?
|
|
2053
|
-
}, [o, l]),
|
|
2045
|
+
g.useEffect(() => {
|
|
2046
|
+
v || (o.length > l ? d(o.slice(l, o.length)) : d([]));
|
|
2047
|
+
}, [o, l]), g.useEffect(() => {
|
|
2054
2048
|
const N = !!window.ResizeObserver;
|
|
2055
2049
|
if (!v && N) {
|
|
2056
2050
|
const B = new ResizeObserver(($) => {
|
|
2057
2051
|
const { width: S, height: w } = $[0].contentRect, x = n ? w : S, I = c.length > 0 ? 60 : 0, R = Math.floor(
|
|
2058
2052
|
(x - I) / Rn
|
|
2059
2053
|
);
|
|
2060
|
-
R >= 0 && R !== l &&
|
|
2054
|
+
R >= 0 && R !== l && s(R);
|
|
2061
2055
|
});
|
|
2062
2056
|
return B.observe(document.querySelector(`#${a}`)), () => B.disconnect();
|
|
2063
2057
|
}
|
|
2064
2058
|
}, [c, v, l]);
|
|
2065
|
-
const y =
|
|
2059
|
+
const y = g.useCallback(() => c.reduce(
|
|
2066
2060
|
(N, B) => {
|
|
2067
2061
|
if (!B.hideInMenu) {
|
|
2068
2062
|
const $ = {
|
|
@@ -2098,28 +2092,28 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2098
2092
|
"div",
|
|
2099
2093
|
{
|
|
2100
2094
|
className: u(
|
|
2101
|
-
Q[
|
|
2102
|
-
C && Q[`${
|
|
2103
|
-
n && Q[`${
|
|
2095
|
+
Q[pt],
|
|
2096
|
+
C && Q[`${pt}--active`],
|
|
2097
|
+
n && Q[`${pt}--vertical`]
|
|
2104
2098
|
),
|
|
2105
2099
|
children: /* @__PURE__ */ t(
|
|
2106
2100
|
Uo,
|
|
2107
2101
|
{
|
|
2108
2102
|
selectedOptions: _ ? [_] : [],
|
|
2109
|
-
onOpen: () =>
|
|
2110
|
-
onClose: () =>
|
|
2103
|
+
onOpen: () => p(!0),
|
|
2104
|
+
onClose: () => p(!1),
|
|
2111
2105
|
floatingStrategy: "fixed",
|
|
2112
2106
|
placement: n ? "left-start" : "bottom-end",
|
|
2113
2107
|
options: y(),
|
|
2114
2108
|
triggerClassName: u(
|
|
2115
|
-
n && Q[`${
|
|
2109
|
+
n && Q[`${pt}__trigger-vertical`]
|
|
2116
2110
|
),
|
|
2117
2111
|
triggerRenderer: /* @__PURE__ */ t(
|
|
2118
|
-
|
|
2112
|
+
j,
|
|
2119
2113
|
{
|
|
2120
2114
|
className: u(
|
|
2121
|
-
Q[`${
|
|
2122
|
-
C && Q[`${
|
|
2115
|
+
Q[`${pt}__button`],
|
|
2116
|
+
C && Q[`${pt}__button--active`]
|
|
2123
2117
|
),
|
|
2124
2118
|
kind: "plain",
|
|
2125
2119
|
icon: /* @__PURE__ */ t(
|
|
@@ -2128,8 +2122,8 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2128
2122
|
source: Ht,
|
|
2129
2123
|
kind: "primary",
|
|
2130
2124
|
className: u(
|
|
2131
|
-
Q[`${
|
|
2132
|
-
|
|
2125
|
+
Q[`${pt}__button__icon`],
|
|
2126
|
+
m && Q[`${pt}__button__icon--open`]
|
|
2133
2127
|
)
|
|
2134
2128
|
}
|
|
2135
2129
|
),
|
|
@@ -2138,7 +2132,7 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2138
2132
|
"div",
|
|
2139
2133
|
{
|
|
2140
2134
|
className: u(
|
|
2141
|
-
Q[`${
|
|
2135
|
+
Q[`${pt}__button__with-item`]
|
|
2142
2136
|
),
|
|
2143
2137
|
children: C.element
|
|
2144
2138
|
}
|
|
@@ -2167,7 +2161,7 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2167
2161
|
}) => {
|
|
2168
2162
|
const i = u(Wt[Pt], e), l = (c) => {
|
|
2169
2163
|
c.currentTarget === document.activeElement && (n == null || n());
|
|
2170
|
-
},
|
|
2164
|
+
}, s = (c) => {
|
|
2171
2165
|
c.currentTarget === document.activeElement && (c.key === "Enter" || c.key === " " || c.key === "Spacebar" || c.key === "Space") && (c.preventDefault(), n == null || n());
|
|
2172
2166
|
};
|
|
2173
2167
|
return /* @__PURE__ */ t("div", { className: Wt["main-wrapper"], children: /* @__PURE__ */ f(
|
|
@@ -2178,7 +2172,7 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2178
2172
|
tabIndex: 0,
|
|
2179
2173
|
className: i,
|
|
2180
2174
|
onClick: l,
|
|
2181
|
-
onKeyDown:
|
|
2175
|
+
onKeyDown: s,
|
|
2182
2176
|
children: [
|
|
2183
2177
|
/* @__PURE__ */ t(
|
|
2184
2178
|
"div",
|
|
@@ -2241,14 +2235,14 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2241
2235
|
kind: "error"
|
|
2242
2236
|
}
|
|
2243
2237
|
}, Pe = "alert", fs = (l) => {
|
|
2244
|
-
var
|
|
2238
|
+
var s = l, {
|
|
2245
2239
|
children: e,
|
|
2246
2240
|
className: a,
|
|
2247
2241
|
primaryButton: r,
|
|
2248
2242
|
secondaryButton: o,
|
|
2249
2243
|
kind: _ = "info",
|
|
2250
2244
|
onClose: n
|
|
2251
|
-
} =
|
|
2245
|
+
} = s, i = F(s, [
|
|
2252
2246
|
"children",
|
|
2253
2247
|
"className",
|
|
2254
2248
|
"primaryButton",
|
|
@@ -2256,20 +2250,20 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2256
2250
|
"kind",
|
|
2257
2251
|
"onClose"
|
|
2258
2252
|
]);
|
|
2259
|
-
const c =
|
|
2253
|
+
const c = g.useRef(null), [d, m] = g.useState(null), p = u(
|
|
2260
2254
|
De[Pe],
|
|
2261
2255
|
De[`${Pe}--${_}`],
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2256
|
+
d === "large" && De[`${Pe}--large`],
|
|
2257
|
+
d === "medium" && De[`${Pe}--medium`],
|
|
2258
|
+
d === "small" && De[`${Pe}--small`],
|
|
2265
2259
|
a
|
|
2266
2260
|
);
|
|
2267
|
-
return
|
|
2268
|
-
const v = () => c.current && c.current.offsetWidth <= 400 ?
|
|
2261
|
+
return g.useEffect(() => {
|
|
2262
|
+
const v = () => c.current && c.current.offsetWidth <= 400 ? m("small") : c.current && c.current.offsetWidth > 400 && c.current.offsetWidth <= 800 ? m("medium") : m("large"), h = Fo(() => {
|
|
2269
2263
|
v();
|
|
2270
2264
|
}, 500);
|
|
2271
2265
|
return window.addEventListener("resize", h), v(), () => window.removeEventListener("resize", h);
|
|
2272
|
-
}), /* @__PURE__ */ f("div", E(k({ ref: c, className:
|
|
2266
|
+
}), /* @__PURE__ */ f("div", E(k({ ref: c, className: p }, i), { children: [
|
|
2273
2267
|
/* @__PURE__ */ f("div", { className: De[`${Pe}__content`], children: [
|
|
2274
2268
|
/* @__PURE__ */ f("div", { className: De[`${Pe}__content__wrapper`], children: [
|
|
2275
2269
|
/* @__PURE__ */ t(
|
|
@@ -2290,7 +2284,7 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2290
2284
|
] }),
|
|
2291
2285
|
(r || o) && /* @__PURE__ */ f("div", { className: De[`${Pe}__content__wrapper__cta`], children: [
|
|
2292
2286
|
r && /* @__PURE__ */ t(
|
|
2293
|
-
|
|
2287
|
+
j,
|
|
2294
2288
|
E(k({
|
|
2295
2289
|
kind: "high-contrast",
|
|
2296
2290
|
onClick: r.handleClick
|
|
@@ -2299,7 +2293,7 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2299
2293
|
})
|
|
2300
2294
|
),
|
|
2301
2295
|
o && /* @__PURE__ */ t(
|
|
2302
|
-
|
|
2296
|
+
j,
|
|
2303
2297
|
E(k({
|
|
2304
2298
|
className: u(
|
|
2305
2299
|
De[`${Pe}__content__wrapper__cta__link`],
|
|
@@ -2314,7 +2308,7 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2314
2308
|
] })
|
|
2315
2309
|
] }),
|
|
2316
2310
|
n && /* @__PURE__ */ t(
|
|
2317
|
-
|
|
2311
|
+
j,
|
|
2318
2312
|
{
|
|
2319
2313
|
"aria-label": "Close alert",
|
|
2320
2314
|
className: De[`${Pe}__close-icon`],
|
|
@@ -2347,21 +2341,21 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2347
2341
|
sideNavigation: n,
|
|
2348
2342
|
topBar: i,
|
|
2349
2343
|
topBarClassName: l,
|
|
2350
|
-
sideNavigationContainerClassName:
|
|
2344
|
+
sideNavigationContainerClassName: s,
|
|
2351
2345
|
contentClassName: c
|
|
2352
|
-
} = e,
|
|
2353
|
-
isSideNavigationVisible:
|
|
2354
|
-
setIsMobileViewEnabled:
|
|
2346
|
+
} = e, d = u(Fe[Wo], r), {
|
|
2347
|
+
isSideNavigationVisible: m,
|
|
2348
|
+
setIsMobileViewEnabled: p,
|
|
2355
2349
|
isMobileViewEnabled: v
|
|
2356
|
-
} = Yr(), h =
|
|
2357
|
-
isVisible:
|
|
2350
|
+
} = Yr(), h = g.useRef(null), { isOpen: b, isMounted: y } = Gt({
|
|
2351
|
+
isVisible: m,
|
|
2358
2352
|
elementRef: h
|
|
2359
2353
|
}), { isMobile: C, handleResizeRef: N } = tn({
|
|
2360
2354
|
mobileBreakpoint: Wn
|
|
2361
2355
|
});
|
|
2362
|
-
return
|
|
2363
|
-
|
|
2364
|
-
}, [C]), /* @__PURE__ */ f("div", { className:
|
|
2356
|
+
return g.useEffect(() => {
|
|
2357
|
+
p(C);
|
|
2358
|
+
}, [C]), /* @__PURE__ */ f("div", { className: d, ref: N, children: [
|
|
2365
2359
|
!v && o,
|
|
2366
2360
|
/* @__PURE__ */ f(
|
|
2367
2361
|
"div",
|
|
@@ -2397,7 +2391,7 @@ const so = 8, uo = "guide-tooltip", mo = (e, a) => new Pn(e, a), ms = (e) => {
|
|
|
2397
2391
|
className: u(
|
|
2398
2392
|
Fe[`${Ue}__content-wrapper__nav-bar-wrapper`],
|
|
2399
2393
|
"lc-dark-theme",
|
|
2400
|
-
|
|
2394
|
+
s,
|
|
2401
2395
|
{
|
|
2402
2396
|
[Fe[`${Ue}__content-wrapper__nav-bar-wrapper--open`]]: b
|
|
2403
2397
|
}
|
|
@@ -2491,8 +2485,8 @@ const Xn = "side-navigation-item-test-id", Zn = "side-navigation-active-item-tes
|
|
|
2491
2485
|
"side-navigation-item__label": "lc-SideNavigationItem-module__side-navigation-item__label___dpMyX",
|
|
2492
2486
|
"side-navigation-item__label--active": "lc-SideNavigationItem-module__side-navigation-item__label--active___4vImp",
|
|
2493
2487
|
"side-navigation-item__custom-label--active": "lc-SideNavigationItem-module__side-navigation-item__custom-label--active___UWDu9"
|
|
2494
|
-
}, ze = "side-navigation-item", jn = (
|
|
2495
|
-
var v =
|
|
2488
|
+
}, ze = "side-navigation-item", jn = (p) => {
|
|
2489
|
+
var v = p, {
|
|
2496
2490
|
leftNode: e,
|
|
2497
2491
|
shouldKeepIconSpace: a = !0,
|
|
2498
2492
|
url: r,
|
|
@@ -2501,10 +2495,10 @@ const Xn = "side-navigation-item-test-id", Zn = "side-navigation-active-item-tes
|
|
|
2501
2495
|
rightNode: n,
|
|
2502
2496
|
onClick: i,
|
|
2503
2497
|
isActive: l,
|
|
2504
|
-
isMainEntry:
|
|
2498
|
+
isMainEntry: s,
|
|
2505
2499
|
onItemHover: c,
|
|
2506
|
-
isIconHidden:
|
|
2507
|
-
} = v,
|
|
2500
|
+
isIconHidden: d
|
|
2501
|
+
} = v, m = F(v, [
|
|
2508
2502
|
"leftNode",
|
|
2509
2503
|
"shouldKeepIconSpace",
|
|
2510
2504
|
"url",
|
|
@@ -2528,15 +2522,15 @@ const Xn = "side-navigation-item-test-id", Zn = "side-navigation-active-item-tes
|
|
|
2528
2522
|
className: u([He[ze], _]),
|
|
2529
2523
|
"data-testid": l ? Zn : Xn,
|
|
2530
2524
|
"data-active": l
|
|
2531
|
-
},
|
|
2525
|
+
}, m), {
|
|
2532
2526
|
children: /* @__PURE__ */ f(
|
|
2533
2527
|
"a",
|
|
2534
2528
|
{
|
|
2535
2529
|
tabIndex: 0,
|
|
2536
2530
|
className: u(He[`${ze}__anchor`], {
|
|
2537
2531
|
[He[`${ze}__anchor--active`]]: l,
|
|
2538
|
-
[He[`${ze}__anchor--main-entry`]]:
|
|
2539
|
-
[He[`${ze}__anchor--icon-hidden`]]:
|
|
2532
|
+
[He[`${ze}__anchor--main-entry`]]: s,
|
|
2533
|
+
[He[`${ze}__anchor--icon-hidden`]]: d
|
|
2540
2534
|
}),
|
|
2541
2535
|
href: r,
|
|
2542
2536
|
onClick: b,
|
|
@@ -2548,7 +2542,7 @@ const Xn = "side-navigation-item-test-id", Zn = "side-navigation-active-item-tes
|
|
|
2548
2542
|
"span",
|
|
2549
2543
|
{
|
|
2550
2544
|
className: u(He[`${ze}__left-node`], {
|
|
2551
|
-
[He[`${ze}__left-node--active`]]: l ||
|
|
2545
|
+
[He[`${ze}__left-node--active`]]: l || s
|
|
2552
2546
|
}),
|
|
2553
2547
|
"data-testid": qn,
|
|
2554
2548
|
children: e
|
|
@@ -2557,9 +2551,9 @@ const Xn = "side-navigation-item-test-id", Zn = "side-navigation-active-item-tes
|
|
|
2557
2551
|
h ? /* @__PURE__ */ t(
|
|
2558
2552
|
A,
|
|
2559
2553
|
{
|
|
2560
|
-
bold: l ||
|
|
2554
|
+
bold: l || s,
|
|
2561
2555
|
className: u(He[`${ze}__label`], {
|
|
2562
|
-
[He[`${ze}__label--active`]]: l ||
|
|
2556
|
+
[He[`${ze}__label--active`]]: l || s
|
|
2563
2557
|
}),
|
|
2564
2558
|
children: o
|
|
2565
2559
|
}
|
|
@@ -2567,7 +2561,7 @@ const Xn = "side-navigation-item-test-id", Zn = "side-navigation-active-item-tes
|
|
|
2567
2561
|
"span",
|
|
2568
2562
|
{
|
|
2569
2563
|
className: u(He[`${ze}__custom-label`], {
|
|
2570
|
-
[He[`${ze}__custom-label--active`]]: l ||
|
|
2564
|
+
[He[`${ze}__custom-label--active`]]: l || s
|
|
2571
2565
|
}),
|
|
2572
2566
|
children: o
|
|
2573
2567
|
}
|
|
@@ -2596,13 +2590,13 @@ const Xn = "side-navigation-item-test-id", Zn = "side-navigation-active-item-tes
|
|
|
2596
2590
|
onItemHover: n,
|
|
2597
2591
|
shouldOpenOnInit: i = !1
|
|
2598
2592
|
}) => {
|
|
2599
|
-
const [l,
|
|
2593
|
+
const [l, s] = g.useState(!1), [c, d] = g.useState(0), m = g.useRef(!1), p = g.useRef(null), { isOpen: v, isMounted: h, setShouldBeVisible: b } = Gt({
|
|
2600
2594
|
isVisible: !_ || i,
|
|
2601
|
-
elementRef:
|
|
2595
|
+
elementRef: p
|
|
2602
2596
|
}), y = typeof a == "function" ? a(v) : a, C = typeof e == "function" ? e(v) : e, N = () => b(!0), B = () => {
|
|
2603
2597
|
_ && b(($) => !$);
|
|
2604
2598
|
};
|
|
2605
|
-
return
|
|
2599
|
+
return g.useEffect(() => {
|
|
2606
2600
|
if (!o || !_)
|
|
2607
2601
|
return;
|
|
2608
2602
|
const $ = o, S = !!($ != null && $.some(
|
|
@@ -2611,12 +2605,12 @@ const Xn = "side-navigation-item-test-id", Zn = "side-navigation-active-item-tes
|
|
|
2611
2605
|
return (I = x.props) == null ? void 0 : I.isActive;
|
|
2612
2606
|
}
|
|
2613
2607
|
));
|
|
2614
|
-
|
|
2608
|
+
s(S);
|
|
2615
2609
|
const w = (($ == null ? void 0 : $.length) || 0) * Qn;
|
|
2616
|
-
|
|
2617
|
-
}, [o]),
|
|
2618
|
-
!
|
|
2619
|
-
}, [l,
|
|
2610
|
+
d(w);
|
|
2611
|
+
}, [o]), g.useEffect(() => {
|
|
2612
|
+
!m.current && l && N(), m.current = l;
|
|
2613
|
+
}, [l, m.current, i]), /* @__PURE__ */ f("div", { "data-testid": "side-navigation-group", className: Bt[Et], children: [
|
|
2620
2614
|
_ ? /* @__PURE__ */ t(
|
|
2621
2615
|
jn,
|
|
2622
2616
|
{
|
|
@@ -2647,7 +2641,7 @@ const Xn = "side-navigation-item-test-id", Zn = "side-navigation-active-item-tes
|
|
|
2647
2641
|
/* @__PURE__ */ t(
|
|
2648
2642
|
"div",
|
|
2649
2643
|
{
|
|
2650
|
-
ref:
|
|
2644
|
+
ref: p,
|
|
2651
2645
|
className: u([
|
|
2652
2646
|
Bt[`${Et}__list-wrapper`],
|
|
2653
2647
|
{
|
|
@@ -2700,14 +2694,14 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2700
2694
|
"badge--secondary": "lc-Badge-module__badge--secondary___mAh3w",
|
|
2701
2695
|
"badge--tertiary": "lc-Badge-module__badge--tertiary___rFqKw"
|
|
2702
2696
|
}, Va = "badge", rr = (l) => {
|
|
2703
|
-
var
|
|
2697
|
+
var s = l, {
|
|
2704
2698
|
className: e,
|
|
2705
2699
|
count: a = 0,
|
|
2706
2700
|
max: r = 99,
|
|
2707
2701
|
kind: o = "primary",
|
|
2708
2702
|
size: _ = "medium",
|
|
2709
2703
|
type: n = "counter"
|
|
2710
|
-
} =
|
|
2704
|
+
} = s, i = F(s, [
|
|
2711
2705
|
"className",
|
|
2712
2706
|
"count",
|
|
2713
2707
|
"max",
|
|
@@ -2720,13 +2714,13 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2720
2714
|
za[Va],
|
|
2721
2715
|
za[`${Va}--${o}`],
|
|
2722
2716
|
za[`${Va}--${_}`]
|
|
2723
|
-
),
|
|
2717
|
+
), d = {
|
|
2724
2718
|
counter: Jn(a, r),
|
|
2725
2719
|
alert: "!",
|
|
2726
2720
|
dot: /* @__PURE__ */ t("span", { "data-testid": "badge-dot", className: za[`${Va}__dot`] })
|
|
2727
2721
|
}[n];
|
|
2728
|
-
return /* @__PURE__ */ t("span", E(k({ className: c }, i), { children:
|
|
2729
|
-
},
|
|
2722
|
+
return /* @__PURE__ */ t("span", E(k({ className: c }, i), { children: d }));
|
|
2723
|
+
}, kt = {
|
|
2730
2724
|
"navigation-item": "lc-NavigationItem-module__navigation-item___KVL3Y",
|
|
2731
2725
|
"navigation-item--disabled": "lc-NavigationItem-module__navigation-item--disabled___VY8pA",
|
|
2732
2726
|
"navigation-item__badge": "lc-NavigationItem-module__navigation-item__badge___6RiK5",
|
|
@@ -2735,11 +2729,11 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2735
2729
|
"navigation-item__button--active": "lc-NavigationItem-module__navigation-item__button--active___zsO2E",
|
|
2736
2730
|
"navigation-item__button--opacity": "lc-NavigationItem-module__navigation-item__button--opacity___buZjS",
|
|
2737
2731
|
"navigation-item__button--mobile": "lc-NavigationItem-module__navigation-item__button--mobile___GqQwP"
|
|
2738
|
-
},
|
|
2732
|
+
}, yt = "navigation-item", ai = (e, a) => typeof e == "number" ? /* @__PURE__ */ t(
|
|
2739
2733
|
rr,
|
|
2740
2734
|
{
|
|
2741
2735
|
"data-testid": `${a}-badge-count`,
|
|
2742
|
-
className:
|
|
2736
|
+
className: kt[`${yt}__badge`],
|
|
2743
2737
|
size: "compact",
|
|
2744
2738
|
count: e
|
|
2745
2739
|
}
|
|
@@ -2747,12 +2741,12 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2747
2741
|
rr,
|
|
2748
2742
|
{
|
|
2749
2743
|
"data-testid": `${a}-badge`,
|
|
2750
|
-
className:
|
|
2744
|
+
className: kt[`${yt}__badge`],
|
|
2751
2745
|
size: "compact",
|
|
2752
2746
|
type: e
|
|
2753
2747
|
}
|
|
2754
|
-
), ws = (
|
|
2755
|
-
var
|
|
2748
|
+
), ws = (m) => {
|
|
2749
|
+
var p = m, {
|
|
2756
2750
|
id: e,
|
|
2757
2751
|
label: a,
|
|
2758
2752
|
icon: r,
|
|
@@ -2761,9 +2755,9 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2761
2755
|
disabled: n = !1,
|
|
2762
2756
|
badge: i,
|
|
2763
2757
|
isActive: l,
|
|
2764
|
-
onClick:
|
|
2758
|
+
onClick: s,
|
|
2765
2759
|
className: c
|
|
2766
|
-
} =
|
|
2760
|
+
} = p, d = F(p, [
|
|
2767
2761
|
"id",
|
|
2768
2762
|
"label",
|
|
2769
2763
|
"icon",
|
|
@@ -2780,9 +2774,9 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2780
2774
|
"li",
|
|
2781
2775
|
{
|
|
2782
2776
|
className: u(
|
|
2783
|
-
yt
|
|
2777
|
+
kt[yt],
|
|
2784
2778
|
{
|
|
2785
|
-
[
|
|
2779
|
+
[kt[`${yt}--disabled`]]: n
|
|
2786
2780
|
},
|
|
2787
2781
|
c
|
|
2788
2782
|
),
|
|
@@ -2807,18 +2801,18 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2807
2801
|
tabIndex: n ? -1 : 0,
|
|
2808
2802
|
"aria-label": a,
|
|
2809
2803
|
className: u(
|
|
2810
|
-
|
|
2804
|
+
kt[`${yt}__button`],
|
|
2811
2805
|
{
|
|
2812
|
-
[
|
|
2813
|
-
[
|
|
2814
|
-
[
|
|
2815
|
-
[
|
|
2806
|
+
[kt[`${yt}__button--active`]]: l,
|
|
2807
|
+
[kt[`${yt}__button--opacity`]]: _,
|
|
2808
|
+
[kt[`${yt}__button--disabled`]]: n,
|
|
2809
|
+
[kt[`${yt}__button--mobile`]]: v
|
|
2816
2810
|
},
|
|
2817
2811
|
"lc-dark-theme"
|
|
2818
2812
|
),
|
|
2819
|
-
onClick: (h) => !n &&
|
|
2813
|
+
onClick: (h) => !n && s(h, e),
|
|
2820
2814
|
href: o
|
|
2821
|
-
},
|
|
2815
|
+
}, d), {
|
|
2822
2816
|
children: [
|
|
2823
2817
|
r,
|
|
2824
2818
|
v && a
|
|
@@ -2889,18 +2883,18 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2889
2883
|
secondaryCta: n,
|
|
2890
2884
|
isVisible: i = !0
|
|
2891
2885
|
}) => {
|
|
2892
|
-
const [l,
|
|
2886
|
+
const [l, s] = g.useState(!1), c = g.useRef(null), { isMounted: d, isOpen: m } = Gt({
|
|
2893
2887
|
isVisible: i,
|
|
2894
2888
|
elementRef: c
|
|
2895
|
-
}),
|
|
2889
|
+
}), p = g.useCallback(
|
|
2896
2890
|
(B) => Xr(
|
|
2897
2891
|
B,
|
|
2898
|
-
($) =>
|
|
2892
|
+
($) => s($.width < Kn)
|
|
2899
2893
|
),
|
|
2900
2894
|
[]
|
|
2901
2895
|
), v = a === "warning" ? "link-inverted" : "text", h = a === "warning" ? "plain-lock-black" : "high-contrast", b = _ == null ? void 0 : _.kind, y = n == null ? void 0 : n.kind, C = _ || n ? /* @__PURE__ */ f("div", { className: je[`${It}__cta-wrapper`], children: [
|
|
2902
2896
|
_ && /* @__PURE__ */ t(
|
|
2903
|
-
|
|
2897
|
+
j,
|
|
2904
2898
|
E(k({
|
|
2905
2899
|
size: "compact"
|
|
2906
2900
|
}, _), {
|
|
@@ -2909,7 +2903,7 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2909
2903
|
})
|
|
2910
2904
|
),
|
|
2911
2905
|
n && /* @__PURE__ */ t(
|
|
2912
|
-
|
|
2906
|
+
j,
|
|
2913
2907
|
E(k({
|
|
2914
2908
|
size: "compact"
|
|
2915
2909
|
}, n), {
|
|
@@ -2931,13 +2925,13 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2931
2925
|
})
|
|
2932
2926
|
)
|
|
2933
2927
|
] });
|
|
2934
|
-
return /* @__PURE__ */ t(ne, { children:
|
|
2928
|
+
return /* @__PURE__ */ t(ne, { children: d && /* @__PURE__ */ t("div", { ref: p, children: /* @__PURE__ */ t(
|
|
2935
2929
|
"div",
|
|
2936
2930
|
{
|
|
2937
2931
|
className: u(
|
|
2938
2932
|
je[`${It}__wrapper`],
|
|
2939
2933
|
{
|
|
2940
|
-
[je[`${It}__wrapper--open`]]:
|
|
2934
|
+
[je[`${It}__wrapper--open`]]: m
|
|
2941
2935
|
},
|
|
2942
2936
|
"lc-dark-theme"
|
|
2943
2937
|
// Alerts are forced into dark mode to maintain consistency of the colors
|
|
@@ -2952,7 +2946,7 @@ const ei = "lc-Badge-module__badge___ZbEBU", ti = "lc-Badge-module__badge__dot__
|
|
|
2952
2946
|
je[It],
|
|
2953
2947
|
je[`${It}--${a}`],
|
|
2954
2948
|
{
|
|
2955
|
-
[je[`${It}--open`]]:
|
|
2949
|
+
[je[`${It}--open`]]: m
|
|
2956
2950
|
},
|
|
2957
2951
|
e
|
|
2958
2952
|
),
|
|
@@ -2991,7 +2985,7 @@ const Wa = {
|
|
|
2991
2985
|
E(k({
|
|
2992
2986
|
tabIndex: 0,
|
|
2993
2987
|
href: r,
|
|
2994
|
-
onClick: (
|
|
2988
|
+
onClick: (s) => o(s, e),
|
|
2995
2989
|
className: Wa[`${Ka}__button`]
|
|
2996
2990
|
}, n), {
|
|
2997
2991
|
children: [
|
|
@@ -3026,7 +3020,7 @@ const Wa = {
|
|
|
3026
3020
|
"input__icon--left": "lc-Input-module__input__icon--left___IBzj8",
|
|
3027
3021
|
"input__icon--right": "lc-Input-module__input__icon--right___lw1xQ",
|
|
3028
3022
|
"input__visibility-button": "lc-Input-module__input__visibility-button___lmD5H"
|
|
3029
|
-
}, Je = "input", ho = (e, a) =>
|
|
3023
|
+
}, Je = "input", ho = (e, a) => g.cloneElement(e.source, {
|
|
3030
3024
|
"data-testid": `input-icon-${e.place}`,
|
|
3031
3025
|
className: u(
|
|
3032
3026
|
Qe[`${Je}__icon`],
|
|
@@ -3035,9 +3029,9 @@ const Wa = {
|
|
|
3035
3029
|
[Qe[`${Je}__icon--disabled`]]: a
|
|
3036
3030
|
}
|
|
3037
3031
|
)
|
|
3038
|
-
}), di =
|
|
3039
|
-
(
|
|
3040
|
-
var c =
|
|
3032
|
+
}), di = g.forwardRef(
|
|
3033
|
+
(s, l) => {
|
|
3034
|
+
var c = s, {
|
|
3041
3035
|
inputSize: e = "medium",
|
|
3042
3036
|
error: a = !1,
|
|
3043
3037
|
disabled: r,
|
|
@@ -3052,15 +3046,15 @@ const Wa = {
|
|
|
3052
3046
|
"className",
|
|
3053
3047
|
"cropOnBlur"
|
|
3054
3048
|
]);
|
|
3055
|
-
const
|
|
3056
|
-
|
|
3057
|
-
const [
|
|
3049
|
+
const d = g.useRef(null);
|
|
3050
|
+
g.useImperativeHandle(l, () => d.current, []);
|
|
3051
|
+
const [m, p] = g.useState(!1), [v, h] = g.useState(!1), { type: b, onFocus: y, onBlur: C } = i, N = u(
|
|
3058
3052
|
_,
|
|
3059
3053
|
Qe[Je],
|
|
3060
3054
|
Qe[`${Je}--${e}`],
|
|
3061
3055
|
{
|
|
3062
3056
|
[Qe[`${Je}--disabled`]]: r,
|
|
3063
|
-
[Qe[`${Je}--focused`]]:
|
|
3057
|
+
[Qe[`${Je}--focused`]]: m,
|
|
3064
3058
|
[Qe[`${Je}--error`]]: a,
|
|
3065
3059
|
[Qe[`${Je}--crop`]]: n,
|
|
3066
3060
|
[Qe[`${Je}--read-only`]]: i.readOnly
|
|
@@ -3075,19 +3069,19 @@ const Wa = {
|
|
|
3075
3069
|
"tab-index": "0",
|
|
3076
3070
|
onClick: () => {
|
|
3077
3071
|
var I;
|
|
3078
|
-
(I =
|
|
3072
|
+
(I = d.current) == null || I.focus();
|
|
3079
3073
|
},
|
|
3080
3074
|
children: [
|
|
3081
3075
|
S && ho(o, r),
|
|
3082
3076
|
/* @__PURE__ */ t(
|
|
3083
3077
|
"input",
|
|
3084
3078
|
E(k({}, i), {
|
|
3085
|
-
ref:
|
|
3079
|
+
ref: d,
|
|
3086
3080
|
onFocus: (I) => {
|
|
3087
|
-
|
|
3081
|
+
p(!0), y == null || y(I);
|
|
3088
3082
|
},
|
|
3089
3083
|
onBlur: (I) => {
|
|
3090
|
-
|
|
3084
|
+
p(!1), C == null || C(I);
|
|
3091
3085
|
},
|
|
3092
3086
|
disabled: r,
|
|
3093
3087
|
type: b && !v ? b : "text"
|
|
@@ -3095,7 +3089,7 @@ const Wa = {
|
|
|
3095
3089
|
),
|
|
3096
3090
|
w && ho(o, r),
|
|
3097
3091
|
b === "password" && /* @__PURE__ */ t(
|
|
3098
|
-
|
|
3092
|
+
j,
|
|
3099
3093
|
{
|
|
3100
3094
|
disabled: r,
|
|
3101
3095
|
kind: "text",
|
|
@@ -3140,9 +3134,9 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3140
3134
|
checkbox__square: wi,
|
|
3141
3135
|
"checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___kRNDo",
|
|
3142
3136
|
checkbox__helper: Ci
|
|
3143
|
-
}, Rt = "checkbox", $i =
|
|
3137
|
+
}, Rt = "checkbox", $i = g.forwardRef(
|
|
3144
3138
|
(l, i) => {
|
|
3145
|
-
var
|
|
3139
|
+
var s = l, { checked: e, disabled: a, children: r, description: o, className: _ } = s, n = F(s, ["checked", "disabled", "children", "description", "className"]);
|
|
3146
3140
|
return /* @__PURE__ */ f(
|
|
3147
3141
|
"div",
|
|
3148
3142
|
{
|
|
@@ -3194,30 +3188,30 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3194
3188
|
item: i,
|
|
3195
3189
|
numberOfItems: l
|
|
3196
3190
|
}) => {
|
|
3197
|
-
const
|
|
3198
|
-
var
|
|
3199
|
-
return (
|
|
3200
|
-
|
|
3191
|
+
const s = (d) => {
|
|
3192
|
+
var m;
|
|
3193
|
+
return (m = d == null ? void 0 : d.customElement) != null && m.listItemBody ? /* @__PURE__ */ t("div", { className: ye[`${Ve}__custom`], children: d.customElement.listItemBody }) : /* @__PURE__ */ f(ne, { children: [
|
|
3194
|
+
d.showCheckbox && /* @__PURE__ */ t(
|
|
3201
3195
|
$i,
|
|
3202
3196
|
{
|
|
3203
3197
|
className: ye[`${Ve}__checkbox`],
|
|
3204
3198
|
checked: r
|
|
3205
3199
|
}
|
|
3206
3200
|
),
|
|
3207
|
-
|
|
3201
|
+
d.icon && /* @__PURE__ */ t(
|
|
3208
3202
|
P,
|
|
3209
3203
|
{
|
|
3210
3204
|
className: ye[`${Ve}__icon`],
|
|
3211
3205
|
kind: "link",
|
|
3212
|
-
source:
|
|
3206
|
+
source: d.icon
|
|
3213
3207
|
}
|
|
3214
3208
|
),
|
|
3215
|
-
|
|
3209
|
+
d.avatarSrc && /* @__PURE__ */ t(
|
|
3216
3210
|
"img",
|
|
3217
3211
|
{
|
|
3218
3212
|
className: u(ye[`${Ve}__avatar`]),
|
|
3219
|
-
src:
|
|
3220
|
-
alt:
|
|
3213
|
+
src: d.avatarSrc,
|
|
3214
|
+
alt: d.name
|
|
3221
3215
|
}
|
|
3222
3216
|
),
|
|
3223
3217
|
/* @__PURE__ */ f("div", { className: ye[`${Ve}__label-container`], children: [
|
|
@@ -3226,13 +3220,13 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3226
3220
|
{
|
|
3227
3221
|
as: "span",
|
|
3228
3222
|
className: u([ye[`${Ve}__label`]], {
|
|
3229
|
-
[ye[`${Ve}__main-label`]]:
|
|
3223
|
+
[ye[`${Ve}__main-label`]]: d.secondaryText
|
|
3230
3224
|
}),
|
|
3231
|
-
"aria-disabled":
|
|
3232
|
-
children:
|
|
3225
|
+
"aria-disabled": d.disabled,
|
|
3226
|
+
children: d.name
|
|
3233
3227
|
}
|
|
3234
3228
|
),
|
|
3235
|
-
|
|
3229
|
+
d.secondaryText && /* @__PURE__ */ t("span", { className: ye[`${Ve}__secondary-label`], children: d.secondaryText })
|
|
3236
3230
|
] })
|
|
3237
3231
|
] });
|
|
3238
3232
|
};
|
|
@@ -3248,16 +3242,16 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3248
3242
|
}),
|
|
3249
3243
|
i.key
|
|
3250
3244
|
);
|
|
3251
|
-
const c = (
|
|
3252
|
-
!i.disabled && _(
|
|
3245
|
+
const c = (d) => {
|
|
3246
|
+
!i.disabled && _(d);
|
|
3253
3247
|
};
|
|
3254
3248
|
return /* @__PURE__ */ t(
|
|
3255
3249
|
"div",
|
|
3256
3250
|
E(k({
|
|
3257
3251
|
id: i.key,
|
|
3258
3252
|
tabIndex: a ? 0 : -1,
|
|
3259
|
-
ref: (
|
|
3260
|
-
|
|
3253
|
+
ref: (d) => {
|
|
3254
|
+
d && (o.current[e] = d);
|
|
3261
3255
|
},
|
|
3262
3256
|
role: "option",
|
|
3263
3257
|
"aria-setsize": l,
|
|
@@ -3279,7 +3273,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3279
3273
|
[ye[`${Ve}--select-all`]]: i.key === Qt
|
|
3280
3274
|
}),
|
|
3281
3275
|
children: [
|
|
3282
|
-
|
|
3276
|
+
s(i),
|
|
3283
3277
|
r && !i.showCheckbox && /* @__PURE__ */ t(
|
|
3284
3278
|
P,
|
|
3285
3279
|
{
|
|
@@ -3308,11 +3302,11 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3308
3302
|
activeIndex: n,
|
|
3309
3303
|
selectedKeys: i,
|
|
3310
3304
|
listElementsRef: l,
|
|
3311
|
-
isPositioned:
|
|
3305
|
+
isPositioned: s,
|
|
3312
3306
|
searchDisabled: c,
|
|
3313
|
-
onItemRemove:
|
|
3314
|
-
setPointer:
|
|
3315
|
-
onSelect:
|
|
3307
|
+
onItemRemove: d,
|
|
3308
|
+
setPointer: m,
|
|
3309
|
+
onSelect: p,
|
|
3316
3310
|
getFloatingProps: v,
|
|
3317
3311
|
getItemProps: h,
|
|
3318
3312
|
emptyStateText: b = "No results found",
|
|
@@ -3321,7 +3315,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3321
3315
|
listClassName: N,
|
|
3322
3316
|
virtuosoProps: B
|
|
3323
3317
|
}) => {
|
|
3324
|
-
const [$, S] =
|
|
3318
|
+
const [$, S] = g.useState(0), w = Ur(null), x = _.length, I = g.useCallback(
|
|
3325
3319
|
(T) => {
|
|
3326
3320
|
T !== $ && (T < o ? S(T + (x - 1) * ui) : S(o));
|
|
3327
3321
|
},
|
|
@@ -3329,8 +3323,8 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3329
3323
|
);
|
|
3330
3324
|
if (tt(() => {
|
|
3331
3325
|
var T;
|
|
3332
|
-
c &&
|
|
3333
|
-
}, [c,
|
|
3326
|
+
c && s && n !== null && ((T = w.current) == null || T.focus());
|
|
3327
|
+
}, [c, s, n]), tt(() => {
|
|
3334
3328
|
l.current = new Array(_.length);
|
|
3335
3329
|
}, [_.length]), _.length === 0)
|
|
3336
3330
|
return y ? null : /* @__PURE__ */ t(Pr, { context: e, modal: !1, initialFocus: -1, children: /* @__PURE__ */ t(
|
|
@@ -3344,7 +3338,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3344
3338
|
}
|
|
3345
3339
|
) });
|
|
3346
3340
|
const R = (T) => i.includes(T) || T === Qt && i.length === Lr(_).length, G = () => {
|
|
3347
|
-
C === "multi" &&
|
|
3341
|
+
C === "multi" && d(i[i.length - 1]);
|
|
3348
3342
|
};
|
|
3349
3343
|
return /* @__PURE__ */ t(Pr, { context: e, modal: !1, initialFocus: -1, children: /* @__PURE__ */ t(
|
|
3350
3344
|
"div",
|
|
@@ -3365,13 +3359,13 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3365
3359
|
className: ca["listbox-wrapper"]
|
|
3366
3360
|
}, v({
|
|
3367
3361
|
onKeyDown(T) {
|
|
3368
|
-
|
|
3362
|
+
m(!1), T.key === "Enter" && n !== null && p(_[n].key), (T.key === "Backspace" || T.key === "Delete") && G(), T.key === " " && T.preventDefault();
|
|
3369
3363
|
},
|
|
3370
3364
|
onKeyUp(T) {
|
|
3371
|
-
T.key === " " && n !== null &&
|
|
3365
|
+
T.key === " " && n !== null && p(_[n].key);
|
|
3372
3366
|
},
|
|
3373
3367
|
onPointerMove() {
|
|
3374
|
-
|
|
3368
|
+
m(!0);
|
|
3375
3369
|
}
|
|
3376
3370
|
})), {
|
|
3377
3371
|
children: /* @__PURE__ */ t(
|
|
@@ -3391,7 +3385,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3391
3385
|
listElementsRef: l,
|
|
3392
3386
|
isActive: n === T,
|
|
3393
3387
|
isSelected: R(D.key),
|
|
3394
|
-
onSelect:
|
|
3388
|
+
onSelect: p,
|
|
3395
3389
|
item: D,
|
|
3396
3390
|
numberOfItems: x
|
|
3397
3391
|
}
|
|
@@ -3429,11 +3423,11 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3429
3423
|
isItemSelected: n,
|
|
3430
3424
|
hideClearButton: i,
|
|
3431
3425
|
isDisabled: l,
|
|
3432
|
-
isRequired:
|
|
3426
|
+
isRequired: s,
|
|
3433
3427
|
isOpen: c,
|
|
3434
|
-
isError:
|
|
3435
|
-
onClear:
|
|
3436
|
-
children:
|
|
3428
|
+
isError: d,
|
|
3429
|
+
onClear: m,
|
|
3430
|
+
children: p,
|
|
3437
3431
|
setTriggerFocus: v
|
|
3438
3432
|
}) => {
|
|
3439
3433
|
const h = u(
|
|
@@ -3443,11 +3437,11 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3443
3437
|
_ && n && we[`${be}--multi-select--with-items`],
|
|
3444
3438
|
l && we[`${be}--disabled`],
|
|
3445
3439
|
c && we[`${be}--focused`],
|
|
3446
|
-
|
|
3447
|
-
), b = !i && n && !l && !
|
|
3448
|
-
C.stopPropagation(),
|
|
3440
|
+
d && we[`${be}--error`]
|
|
3441
|
+
), b = !i && n && !l && !s, y = (C) => {
|
|
3442
|
+
C.stopPropagation(), m();
|
|
3449
3443
|
};
|
|
3450
|
-
return
|
|
3444
|
+
return g.useEffect(() => {
|
|
3451
3445
|
c || v(!1);
|
|
3452
3446
|
}, [c]), /* @__PURE__ */ f(
|
|
3453
3447
|
"button",
|
|
@@ -3472,7 +3466,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3472
3466
|
we[`${be}__content--${o}`],
|
|
3473
3467
|
_ && n && we[`${be}__content--with-items`]
|
|
3474
3468
|
),
|
|
3475
|
-
children:
|
|
3469
|
+
children: p
|
|
3476
3470
|
}
|
|
3477
3471
|
),
|
|
3478
3472
|
/* @__PURE__ */ f(
|
|
@@ -3551,11 +3545,11 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3551
3545
|
kind: n = "default",
|
|
3552
3546
|
onRemove: i,
|
|
3553
3547
|
outline: l = !1,
|
|
3554
|
-
leftNode:
|
|
3548
|
+
leftNode: s,
|
|
3555
3549
|
rightNode: c,
|
|
3556
|
-
customColor:
|
|
3557
|
-
iconOnly:
|
|
3558
|
-
value:
|
|
3550
|
+
customColor: d,
|
|
3551
|
+
iconOnly: m = !1,
|
|
3552
|
+
value: p
|
|
3559
3553
|
} = b, v = F(b, [
|
|
3560
3554
|
"className",
|
|
3561
3555
|
"children",
|
|
@@ -3571,26 +3565,26 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3571
3565
|
"iconOnly",
|
|
3572
3566
|
"value"
|
|
3573
3567
|
]);
|
|
3574
|
-
const y = r || i &&
|
|
3568
|
+
const y = r || i && m, C = u(
|
|
3575
3569
|
Se[Be],
|
|
3576
3570
|
e,
|
|
3577
3571
|
Se[`${Be}--${_}`],
|
|
3578
3572
|
Se[`${Be}--${n}`],
|
|
3579
3573
|
{
|
|
3580
3574
|
[Se[`${Be}--outline`]]: l,
|
|
3581
|
-
[Se[`${Be}--${Ai(
|
|
3582
|
-
[Se[`${Be}--icon-only`]]:
|
|
3575
|
+
[Se[`${Be}--${Ai(d)}`]]: !!d,
|
|
3576
|
+
[Se[`${Be}--icon-only`]]: m,
|
|
3583
3577
|
[Se[`${Be}--dismissible-on-hover`]]: y
|
|
3584
3578
|
}
|
|
3585
|
-
), N = _ === "small" ? "small" : "medium", B = _ === "small" ? "sm" : "md", $ = () =>
|
|
3579
|
+
), N = _ === "small" ? "small" : "medium", B = _ === "small" ? "sm" : "md", $ = () => d ? l ? {
|
|
3586
3580
|
style: {
|
|
3587
3581
|
backgroundColor: "transparent",
|
|
3588
|
-
color:
|
|
3589
|
-
borderColor:
|
|
3582
|
+
color: d,
|
|
3583
|
+
borderColor: d
|
|
3590
3584
|
}
|
|
3591
|
-
} : { style: { backgroundColor:
|
|
3592
|
-
if (
|
|
3593
|
-
return l ?
|
|
3585
|
+
} : { style: { backgroundColor: d } } : {}, S = () => {
|
|
3586
|
+
if (d)
|
|
3587
|
+
return l ? d : Wr(d, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
3594
3588
|
};
|
|
3595
3589
|
return /* @__PURE__ */ f(
|
|
3596
3590
|
A,
|
|
@@ -3601,17 +3595,17 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3601
3595
|
size: B,
|
|
3602
3596
|
children: [
|
|
3603
3597
|
/* @__PURE__ */ f("div", { className: Se[`${Be}__content-wrapper`], children: [
|
|
3604
|
-
|
|
3598
|
+
s && !m && /* @__PURE__ */ t(
|
|
3605
3599
|
"div",
|
|
3606
3600
|
{
|
|
3607
3601
|
"data-testid": "lc-tag-left-node",
|
|
3608
3602
|
className: Se[`${Be}__node`],
|
|
3609
3603
|
style: { color: S() },
|
|
3610
|
-
children:
|
|
3604
|
+
children: s
|
|
3611
3605
|
}
|
|
3612
3606
|
),
|
|
3613
|
-
/* @__PURE__ */ t("div", { className: Se[`${Be}__content`], children:
|
|
3614
|
-
c && !
|
|
3607
|
+
/* @__PURE__ */ t("div", { className: Se[`${Be}__content`], children: p || a }),
|
|
3608
|
+
c && !m && /* @__PURE__ */ t(
|
|
3615
3609
|
"div",
|
|
3616
3610
|
{
|
|
3617
3611
|
"data-testid": "lc-tag-right-node",
|
|
@@ -3673,24 +3667,24 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3673
3667
|
type: n,
|
|
3674
3668
|
clearSearchAfterSelection: i,
|
|
3675
3669
|
size: l = "medium",
|
|
3676
|
-
onItemRemove:
|
|
3670
|
+
onItemRemove: s,
|
|
3677
3671
|
onSelect: c,
|
|
3678
|
-
onFilter:
|
|
3679
|
-
onClear:
|
|
3680
|
-
searchPhrase:
|
|
3672
|
+
onFilter: d,
|
|
3673
|
+
onClear: m,
|
|
3674
|
+
searchPhrase: p,
|
|
3681
3675
|
virtualItemRef: v,
|
|
3682
3676
|
isTriggerFocused: h,
|
|
3683
3677
|
inputRef: b,
|
|
3684
3678
|
inputProps: y
|
|
3685
3679
|
}) => {
|
|
3686
3680
|
const C = e && !a;
|
|
3687
|
-
|
|
3681
|
+
g.useEffect(() => {
|
|
3688
3682
|
i && b != null && b.current && b.current.focus();
|
|
3689
3683
|
}, [_, i]);
|
|
3690
3684
|
const N = (x) => {
|
|
3691
|
-
x.key === "Backspace" && _ && _.length > 0 && (x.preventDefault(), n === "multi" ?
|
|
3685
|
+
x.key === "Backspace" && _ && _.length > 0 && (x.preventDefault(), n === "multi" ? s(_[_.length - 1].key) : m()), x.key === "Delete" && (x.preventDefault(), m());
|
|
3692
3686
|
};
|
|
3693
|
-
|
|
3687
|
+
g.useEffect(() => (!e && h ? document.addEventListener("keydown", N) : document.removeEventListener("keydown", N), () => document.removeEventListener("keydown", N)), [e, _, h]);
|
|
3694
3688
|
const B = (x) => {
|
|
3695
3689
|
var I;
|
|
3696
3690
|
return n === "single" && e && !a ? null : (I = x == null ? void 0 : x.customElement) != null && I.selectedItemBody ? /* @__PURE__ */ t("div", { className: Ce[`${$e}__item`], children: x.customElement.selectedItemBody }) : /* @__PURE__ */ f("div", { className: Ce[`${$e}__item`], children: [
|
|
@@ -3711,9 +3705,9 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3711
3705
|
),
|
|
3712
3706
|
/* @__PURE__ */ t("div", { className: Ce[`${$e}__item__content`], children: x.name })
|
|
3713
3707
|
] });
|
|
3714
|
-
}, $ = (x) =>
|
|
3708
|
+
}, $ = (x) => d(x.target.value), S = (x) => {
|
|
3715
3709
|
var I, R;
|
|
3716
|
-
(I = v.current) != null && I.id && x.key === "Enter" && c((R = v.current) == null ? void 0 : R.id), n === "multi" && (x.key === "Backspace" || x.key === "Delete") && !
|
|
3710
|
+
(I = v.current) != null && I.id && x.key === "Enter" && c((R = v.current) == null ? void 0 : R.id), n === "multi" && (x.key === "Backspace" || x.key === "Delete") && !p && _ && (_ == null ? void 0 : _.length) > 0 && s(_[_.length - 1].key);
|
|
3717
3711
|
}, w = () => /* @__PURE__ */ t(
|
|
3718
3712
|
"input",
|
|
3719
3713
|
E(k({}, y), {
|
|
@@ -3726,7 +3720,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3726
3720
|
onChange: $,
|
|
3727
3721
|
onKeyDown: S,
|
|
3728
3722
|
autoFocus: !0,
|
|
3729
|
-
value:
|
|
3723
|
+
value: p
|
|
3730
3724
|
})
|
|
3731
3725
|
);
|
|
3732
3726
|
return !_ || _.length === 0 ? C ? w() : /* @__PURE__ */ t(
|
|
@@ -3754,7 +3748,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3754
3748
|
),
|
|
3755
3749
|
disabled: r,
|
|
3756
3750
|
onRemove: (I) => {
|
|
3757
|
-
I.stopPropagation(),
|
|
3751
|
+
I.stopPropagation(), s(x.key);
|
|
3758
3752
|
}
|
|
3759
3753
|
}, x.selectedTagOptions), {
|
|
3760
3754
|
children: B(x)
|
|
@@ -3774,17 +3768,17 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3774
3768
|
floatingStrategy: n,
|
|
3775
3769
|
useDismissHookProps: i,
|
|
3776
3770
|
useClickHookProps: l,
|
|
3777
|
-
isOpen:
|
|
3771
|
+
isOpen: s,
|
|
3778
3772
|
onVisibilityChange: c,
|
|
3779
|
-
searchPhrase:
|
|
3773
|
+
searchPhrase: d
|
|
3780
3774
|
}) => {
|
|
3781
|
-
const
|
|
3782
|
-
|
|
3775
|
+
const m = Ba(), [p, v] = g.useState(!1), [h, b] = g.useState(null), [y, C] = g.useState(_), N = g.useRef([]), B = g.useRef(null);
|
|
3776
|
+
g.useEffect(() => {
|
|
3783
3777
|
B.current = null, b(null);
|
|
3784
|
-
}, [
|
|
3778
|
+
}, [d]);
|
|
3785
3779
|
const { refs: $, floatingStyles: S, context: w, isPositioned: x } = Ea({
|
|
3786
|
-
nodeId:
|
|
3787
|
-
open:
|
|
3780
|
+
nodeId: m,
|
|
3781
|
+
open: s,
|
|
3788
3782
|
strategy: n,
|
|
3789
3783
|
onOpenChange: c,
|
|
3790
3784
|
whileElementsMounted: Ta,
|
|
@@ -3827,7 +3821,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3827
3821
|
}), { getReferenceProps: D, getFloatingProps: z, getItemProps: ie } = Fa(
|
|
3828
3822
|
[I, G, R, T]
|
|
3829
3823
|
);
|
|
3830
|
-
return !
|
|
3824
|
+
return !s && p && v(!1), {
|
|
3831
3825
|
getReferenceProps: D,
|
|
3832
3826
|
getFloatingProps: z,
|
|
3833
3827
|
getItemProps: ie,
|
|
@@ -3835,13 +3829,13 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3835
3829
|
floatingStyles: S,
|
|
3836
3830
|
isPositioned: x,
|
|
3837
3831
|
context: w,
|
|
3838
|
-
nodeId:
|
|
3832
|
+
nodeId: m,
|
|
3839
3833
|
setFloating: $.setFloating,
|
|
3840
3834
|
activeIndex: h,
|
|
3841
3835
|
listElementsRef: N,
|
|
3842
3836
|
virtualItemRef: B,
|
|
3843
3837
|
maxHeight: y,
|
|
3844
|
-
pointer:
|
|
3838
|
+
pointer: p,
|
|
3845
3839
|
setPointer: v
|
|
3846
3840
|
};
|
|
3847
3841
|
}, Qo = ({
|
|
@@ -3854,22 +3848,22 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3854
3848
|
clearSearchAfterSelection: i,
|
|
3855
3849
|
inputRef: l
|
|
3856
3850
|
}) => {
|
|
3857
|
-
const [
|
|
3851
|
+
const [s, c] = g.useState(
|
|
3858
3852
|
() => (e == null ? void 0 : e.map(fo)) || []
|
|
3859
|
-
),
|
|
3860
|
-
r === "single" ? B($) : (c(
|
|
3853
|
+
), d = e !== void 0, m = d ? (e == null ? void 0 : e.map(fo)) || [] : s, [p, v] = g.useState(""), h = ($) => v($), b = ($) => {
|
|
3854
|
+
r === "single" ? B($) : (c(m.filter((S) => S !== $)), _((e == null ? void 0 : e.filter(({ key: S }) => S !== $)) || null));
|
|
3861
3855
|
}, y = () => {
|
|
3862
|
-
!
|
|
3856
|
+
!d && c([]), _(null), v(""), n(!1);
|
|
3863
3857
|
}, C = () => {
|
|
3864
3858
|
h(""), l.current && (l.current.value = "");
|
|
3865
|
-
}, N =
|
|
3859
|
+
}, N = g.useMemo(() => {
|
|
3866
3860
|
const $ = r === "multi" && o;
|
|
3867
3861
|
let S = a;
|
|
3868
|
-
return
|
|
3862
|
+
return p && (S = S.filter((w) => {
|
|
3869
3863
|
var G;
|
|
3870
3864
|
if (w.groupHeader)
|
|
3871
3865
|
return !1;
|
|
3872
|
-
const x =
|
|
3866
|
+
const x = p.toLowerCase(), I = w.name.toLowerCase(), R = (G = w.secondaryText) == null ? void 0 : G.toLowerCase();
|
|
3873
3867
|
return I.includes(x) || (R == null ? void 0 : R.includes(x));
|
|
3874
3868
|
})), $ && S.length > 1 && (S = [
|
|
3875
3869
|
{
|
|
@@ -3878,12 +3872,12 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3878
3872
|
},
|
|
3879
3873
|
...S
|
|
3880
3874
|
]), S;
|
|
3881
|
-
}, [
|
|
3875
|
+
}, [p, a, r, o]), B = ($) => {
|
|
3882
3876
|
const S = a.find((w) => w.key === $);
|
|
3883
|
-
(!S || S.disabled) && $ !== Qt || (r === "single" ? (c(() => (S && _([S]), [$])), n(!1)) : $ === Qt ?
|
|
3877
|
+
(!S || S.disabled) && $ !== Qt || (r === "single" ? (c(() => (S && _([S]), [$])), n(!1)) : $ === Qt ? m.length === Lr(a).length ? c(() => (_(null), [])) : c(() => {
|
|
3884
3878
|
const w = Lr(a);
|
|
3885
3879
|
return _(w), w.map(({ key: x }) => x);
|
|
3886
|
-
}) : (
|
|
3880
|
+
}) : (d ? m.includes($) ? (_(
|
|
3887
3881
|
(e == null ? void 0 : e.filter(({ key: w }) => w !== $)) || null
|
|
3888
3882
|
), c((w) => w.filter((x) => x !== $))) : (_([...e || [], S]), c((w) => [...w, $])) : c((w) => {
|
|
3889
3883
|
const x = pi(w, $);
|
|
@@ -3891,9 +3885,9 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3891
3885
|
}), i && C()));
|
|
3892
3886
|
};
|
|
3893
3887
|
return {
|
|
3894
|
-
selectedKeys:
|
|
3888
|
+
selectedKeys: m,
|
|
3895
3889
|
items: N,
|
|
3896
|
-
searchPhrase:
|
|
3890
|
+
searchPhrase: p,
|
|
3897
3891
|
handleSelect: B,
|
|
3898
3892
|
handleOnFilter: h,
|
|
3899
3893
|
handleItemRemove: b,
|
|
@@ -3911,11 +3905,11 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3911
3905
|
disabled: n,
|
|
3912
3906
|
error: i,
|
|
3913
3907
|
options: l,
|
|
3914
|
-
selected:
|
|
3908
|
+
selected: s,
|
|
3915
3909
|
size: c = "medium",
|
|
3916
|
-
placeholder:
|
|
3917
|
-
isRequired:
|
|
3918
|
-
noSearchResultText:
|
|
3910
|
+
placeholder: d = "Select option",
|
|
3911
|
+
isRequired: m,
|
|
3912
|
+
noSearchResultText: p = "No results found",
|
|
3919
3913
|
selectAllOptionText: v,
|
|
3920
3914
|
type: h = "single",
|
|
3921
3915
|
searchDisabled: b = !1,
|
|
@@ -3963,18 +3957,18 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3963
3957
|
"virtuosoProps",
|
|
3964
3958
|
"inputProps"
|
|
3965
3959
|
]);
|
|
3966
|
-
const [H, K] =
|
|
3967
|
-
Ra ? !xe && (N == null || N(Ma)) : xe && (B == null || B(Ma)),
|
|
3960
|
+
const [H, K] = g.useState($), [Oe, at] = g.useState(!1), Ct = C !== void 0, xe = Ct ? C : H, lt = g.useRef(null), rt = (Ra, Ma) => {
|
|
3961
|
+
Ra ? !xe && (N == null || N(Ma)) : xe && (B == null || B(Ma)), !Ct && K(Ra);
|
|
3968
3962
|
}, {
|
|
3969
3963
|
selectedKeys: ct,
|
|
3970
3964
|
items: Le,
|
|
3971
|
-
searchPhrase:
|
|
3972
|
-
handleSelect:
|
|
3965
|
+
searchPhrase: $t,
|
|
3966
|
+
handleSelect: Nt,
|
|
3973
3967
|
handleOnFilter: st,
|
|
3974
3968
|
handleItemRemove: M,
|
|
3975
3969
|
handleClear: J
|
|
3976
3970
|
} = Qo({
|
|
3977
|
-
selected:
|
|
3971
|
+
selected: s,
|
|
3978
3972
|
options: l,
|
|
3979
3973
|
type: h,
|
|
3980
3974
|
selectAllOptionText: v,
|
|
@@ -3988,7 +3982,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
3988
3982
|
getReferenceProps: Y,
|
|
3989
3983
|
setReference: dt,
|
|
3990
3984
|
getFloatingProps: zt,
|
|
3991
|
-
getItemProps:
|
|
3985
|
+
getItemProps: xt,
|
|
3992
3986
|
setFloating: mr,
|
|
3993
3987
|
floatingStyles: pr,
|
|
3994
3988
|
listElementsRef: gr,
|
|
@@ -4009,7 +4003,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4009
4003
|
useDismissHookProps: R,
|
|
4010
4004
|
isOpen: xe,
|
|
4011
4005
|
onVisibilityChange: rt,
|
|
4012
|
-
searchPhrase:
|
|
4006
|
+
searchPhrase: $t
|
|
4013
4007
|
});
|
|
4014
4008
|
return /* @__PURE__ */ f("div", { id: e, className: u(Fi["picker-wrapper"], a), children: [
|
|
4015
4009
|
/* @__PURE__ */ t(
|
|
@@ -4024,7 +4018,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4024
4018
|
hideClearButton: y,
|
|
4025
4019
|
isDisabled: n,
|
|
4026
4020
|
isError: i,
|
|
4027
|
-
isRequired:
|
|
4021
|
+
isRequired: m,
|
|
4028
4022
|
isMultiSelect: h === "multi",
|
|
4029
4023
|
size: c,
|
|
4030
4024
|
setTriggerFocus: at,
|
|
@@ -4034,17 +4028,17 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4034
4028
|
isOpen: xe,
|
|
4035
4029
|
isSearchDisabled: b,
|
|
4036
4030
|
isDisabled: n,
|
|
4037
|
-
placeholder:
|
|
4038
|
-
selectedItems:
|
|
4031
|
+
placeholder: d,
|
|
4032
|
+
selectedItems: s,
|
|
4039
4033
|
type: h,
|
|
4040
4034
|
size: c,
|
|
4041
4035
|
clearSearchAfterSelection: S,
|
|
4042
4036
|
inputRef: lt,
|
|
4043
4037
|
onItemRemove: M,
|
|
4044
|
-
onSelect:
|
|
4038
|
+
onSelect: Nt,
|
|
4045
4039
|
onFilter: st,
|
|
4046
4040
|
onClear: J,
|
|
4047
|
-
searchPhrase:
|
|
4041
|
+
searchPhrase: $t,
|
|
4048
4042
|
virtualItemRef: hr,
|
|
4049
4043
|
isTriggerFocused: Oe,
|
|
4050
4044
|
inputProps: D
|
|
@@ -4069,10 +4063,10 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4069
4063
|
isPositioned: kr,
|
|
4070
4064
|
onItemRemove: M,
|
|
4071
4065
|
setPointer: vr,
|
|
4072
|
-
onSelect:
|
|
4066
|
+
onSelect: Nt,
|
|
4073
4067
|
getFloatingProps: zt,
|
|
4074
|
-
getItemProps:
|
|
4075
|
-
emptyStateText:
|
|
4068
|
+
getItemProps: xt,
|
|
4069
|
+
emptyStateText: p,
|
|
4076
4070
|
virtuosoProps: T
|
|
4077
4071
|
}
|
|
4078
4072
|
) }) })
|
|
@@ -4091,8 +4085,8 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4091
4085
|
}), Li = (e, a, r, o) => {
|
|
4092
4086
|
const _ = e.length === 1 && e[0].name === o, n = a ? e.slice(0, 1) : e;
|
|
4093
4087
|
return r && _ ? [] : n;
|
|
4094
|
-
}, Ss =
|
|
4095
|
-
(v,
|
|
4088
|
+
}, Ss = g.forwardRef(
|
|
4089
|
+
(v, p) => {
|
|
4096
4090
|
var h = v, {
|
|
4097
4091
|
disabled: e,
|
|
4098
4092
|
minListHeight: a = Yo,
|
|
@@ -4102,10 +4096,10 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4102
4096
|
options: n,
|
|
4103
4097
|
readOnly: i,
|
|
4104
4098
|
floatingStrategy: l,
|
|
4105
|
-
single:
|
|
4099
|
+
single: s,
|
|
4106
4100
|
alwaysShowAllOptions: c,
|
|
4107
|
-
hideIfExactMatch:
|
|
4108
|
-
} = h,
|
|
4101
|
+
hideIfExactMatch: d = !0
|
|
4102
|
+
} = h, m = F(h, [
|
|
4109
4103
|
"disabled",
|
|
4110
4104
|
"minListHeight",
|
|
4111
4105
|
"maxListHeight",
|
|
@@ -4118,9 +4112,9 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4118
4112
|
"alwaysShowAllOptions",
|
|
4119
4113
|
"hideIfExactMatch"
|
|
4120
4114
|
]);
|
|
4121
|
-
const b =
|
|
4122
|
-
|
|
4123
|
-
const [y, C] =
|
|
4115
|
+
const b = g.useRef(null);
|
|
4116
|
+
g.useImperativeHandle(p, () => b.current, []);
|
|
4117
|
+
const [y, C] = g.useState(""), B = m.value !== void 0 ? m.value : y, [$, S] = g.useState(
|
|
4124
4118
|
o
|
|
4125
4119
|
), w = (W) => {
|
|
4126
4120
|
S(W);
|
|
@@ -4128,11 +4122,11 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4128
4122
|
ie(W);
|
|
4129
4123
|
}, I = (W) => {
|
|
4130
4124
|
var Y, dt;
|
|
4131
|
-
(Y =
|
|
4125
|
+
(Y = m.onChange) == null || Y.call(m, W), C(W.target.value), c || x(W.target.value), (dt = b.current) == null || dt.focus();
|
|
4132
4126
|
}, R = (W) => {
|
|
4133
|
-
var dt, zt,
|
|
4127
|
+
var dt, zt, xt;
|
|
4134
4128
|
const Y = W.key === "Enter";
|
|
4135
|
-
(dt = st.current) != null && dt.id && Y && (G([{ key: (zt = st.current) == null ? void 0 : zt.id }]), W.preventDefault()), Y || w(!0), (
|
|
4129
|
+
(dt = st.current) != null && dt.id && Y && (G([{ key: (zt = st.current) == null ? void 0 : zt.id }]), W.preventDefault()), Y || w(!0), (xt = m.onKeyDown) == null || xt.call(m, W);
|
|
4136
4130
|
}, G = (W) => {
|
|
4137
4131
|
if (W) {
|
|
4138
4132
|
const Y = W[0].key;
|
|
@@ -4142,7 +4136,7 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4142
4136
|
w(!1);
|
|
4143
4137
|
}, 0);
|
|
4144
4138
|
}
|
|
4145
|
-
}, T =
|
|
4139
|
+
}, T = g.useMemo(() => n ? Ri(n) ? Mi(n) : Oi(n) : [], [n]), { items: D, searchPhrase: z, handleOnFilter: ie, handleSelect: V, selectedKeys: H } = Qo({
|
|
4146
4140
|
selected: [],
|
|
4147
4141
|
options: T,
|
|
4148
4142
|
type: "single",
|
|
@@ -4152,20 +4146,20 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4152
4146
|
inputRef: b
|
|
4153
4147
|
}), K = Li(
|
|
4154
4148
|
D,
|
|
4155
|
-
d || !1,
|
|
4156
4149
|
s || !1,
|
|
4150
|
+
d || !1,
|
|
4157
4151
|
(B == null ? void 0 : B.toString()) || ""
|
|
4158
4152
|
), {
|
|
4159
4153
|
nodeId: Oe,
|
|
4160
4154
|
context: at,
|
|
4161
|
-
setFloating:
|
|
4155
|
+
setFloating: Ct,
|
|
4162
4156
|
getReferenceProps: xe,
|
|
4163
4157
|
getItemProps: lt,
|
|
4164
4158
|
getFloatingProps: rt,
|
|
4165
4159
|
floatingStyles: ct,
|
|
4166
4160
|
maxHeight: Le,
|
|
4167
|
-
setPointer:
|
|
4168
|
-
setReference:
|
|
4161
|
+
setPointer: $t,
|
|
4162
|
+
setReference: Nt,
|
|
4169
4163
|
virtualItemRef: st,
|
|
4170
4164
|
listElementsRef: M,
|
|
4171
4165
|
activeIndex: J,
|
|
@@ -4182,10 +4176,10 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4182
4176
|
placement: _,
|
|
4183
4177
|
floatingStrategy: l
|
|
4184
4178
|
});
|
|
4185
|
-
return /* @__PURE__ */ f("div", E(k({ ref:
|
|
4179
|
+
return /* @__PURE__ */ f("div", E(k({ ref: Nt }, xe()), { children: [
|
|
4186
4180
|
/* @__PURE__ */ t(
|
|
4187
4181
|
di,
|
|
4188
|
-
E(k({},
|
|
4182
|
+
E(k({}, m), {
|
|
4189
4183
|
ref: b,
|
|
4190
4184
|
onChange: I,
|
|
4191
4185
|
onKeyDown: R,
|
|
@@ -4200,14 +4194,14 @@ const Qt = "select-all", mi = (e, a) => {
|
|
|
4200
4194
|
{
|
|
4201
4195
|
context: at,
|
|
4202
4196
|
options: K,
|
|
4203
|
-
setFloating:
|
|
4197
|
+
setFloating: Ct,
|
|
4204
4198
|
getFloatingProps: rt,
|
|
4205
4199
|
floatingStyles: ct,
|
|
4206
4200
|
maxHeight: Le,
|
|
4207
4201
|
listElementsRef: M,
|
|
4208
4202
|
activeIndex: J,
|
|
4209
4203
|
selectedKeys: H,
|
|
4210
|
-
setPointer:
|
|
4204
|
+
setPointer: $t,
|
|
4211
4205
|
hideWhenEmpty: !0,
|
|
4212
4206
|
getItemProps: lt,
|
|
4213
4207
|
onSelect: V,
|
|
@@ -4294,8 +4288,8 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4294
4288
|
"avatar--xlarge": "lc-Avatar-module__avatar--xlarge___hjIy5",
|
|
4295
4289
|
"avatar--xxlarge": "lc-Avatar-module__avatar--xxlarge___AjkHw",
|
|
4296
4290
|
"avatar--xxxlarge": "lc-Avatar-module__avatar--xxxlarge___4Hhp9"
|
|
4297
|
-
}, me = "avatar", Jo = (
|
|
4298
|
-
var v =
|
|
4291
|
+
}, me = "avatar", Jo = (p) => {
|
|
4292
|
+
var v = p, {
|
|
4299
4293
|
alt: e,
|
|
4300
4294
|
className: a,
|
|
4301
4295
|
color: r,
|
|
@@ -4304,10 +4298,10 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4304
4298
|
src: n,
|
|
4305
4299
|
status: i,
|
|
4306
4300
|
text: l,
|
|
4307
|
-
type:
|
|
4301
|
+
type: s,
|
|
4308
4302
|
withRim: c = !1,
|
|
4309
|
-
style:
|
|
4310
|
-
} = v,
|
|
4303
|
+
style: d
|
|
4304
|
+
} = v, m = F(v, [
|
|
4311
4305
|
"alt",
|
|
4312
4306
|
"className",
|
|
4313
4307
|
"color",
|
|
@@ -4320,7 +4314,7 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4320
4314
|
"withRim",
|
|
4321
4315
|
"style"
|
|
4322
4316
|
]);
|
|
4323
|
-
const h =
|
|
4317
|
+
const h = s === "image" && !n, [b, y] = g.useState(h), C = s === "image" && !!n && !b, N = s === "text", B = ["xxxsmall", "xxsmall", "xsmall"].includes(_) ? 1 : 2, $ = Ui(l, B), S = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(_), w = r || Gi(l), x = w ? Hi(w) : void 0, I = N ? { backgroundColor: w } : {}, R = u(k({
|
|
4324
4318
|
[Ee[me]]: !0,
|
|
4325
4319
|
[Ee[`${me}--${o}`]]: !0,
|
|
4326
4320
|
[Ee[`${me}--${_}`]]: !0,
|
|
@@ -4336,15 +4330,15 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4336
4330
|
), D = u(
|
|
4337
4331
|
Ee[`${me}__rim`],
|
|
4338
4332
|
Ee[`${me}__rim--${_}`]
|
|
4339
|
-
), z = (V) => S ? "2xs" : ["medium"].includes(V) ? "xs" : ["large", "xlarge"].includes(V) ? "sm" : ["xxlarge"].includes(V) ? "lg" : "xl", ie =
|
|
4340
|
-
return
|
|
4333
|
+
), z = (V) => S ? "2xs" : ["medium"].includes(V) ? "xs" : ["large", "xlarge"].includes(V) ? "sm" : ["xxlarge"].includes(V) ? "lg" : "xl", ie = g.useCallback(() => y(!0), []);
|
|
4334
|
+
return g.useEffect(() => {
|
|
4341
4335
|
y(h);
|
|
4342
4336
|
}, [h]), /* @__PURE__ */ f(
|
|
4343
4337
|
"div",
|
|
4344
4338
|
E(k({
|
|
4345
4339
|
className: R,
|
|
4346
|
-
style: k(k({}, I),
|
|
4347
|
-
},
|
|
4340
|
+
style: k(k({}, I), d)
|
|
4341
|
+
}, m), {
|
|
4348
4342
|
children: [
|
|
4349
4343
|
c && /* @__PURE__ */ t(
|
|
4350
4344
|
"div",
|
|
@@ -4407,16 +4401,16 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4407
4401
|
fullWidth: n = !1,
|
|
4408
4402
|
onButtonClick: i = xa
|
|
4409
4403
|
}) => {
|
|
4410
|
-
const l = u(Ya[Xi], r), [
|
|
4411
|
-
|
|
4412
|
-
|
|
4404
|
+
const l = u(Ya[Xi], r), [s, c] = g.useState(() => o), d = typeof _ == "string";
|
|
4405
|
+
g.useEffect(() => {
|
|
4406
|
+
d && c(_);
|
|
4413
4407
|
}, [_]);
|
|
4414
|
-
const
|
|
4415
|
-
|
|
4416
|
-
},
|
|
4417
|
-
const N = v ===
|
|
4408
|
+
const m = (v, h) => {
|
|
4409
|
+
d || c(v), i(v, h);
|
|
4410
|
+
}, p = a.map(({ id: v, label: h, loading: b, disabled: y, icon: C }) => {
|
|
4411
|
+
const N = v === s, B = N ? Ya["btn--active"] : "";
|
|
4418
4412
|
return /* @__PURE__ */ t(
|
|
4419
|
-
|
|
4413
|
+
j,
|
|
4420
4414
|
{
|
|
4421
4415
|
fullWidth: n,
|
|
4422
4416
|
loading: N ? !1 : b,
|
|
@@ -4426,14 +4420,14 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4426
4420
|
icon: C,
|
|
4427
4421
|
className: u(Ya.btn, Ya[`btn--${e}`], B),
|
|
4428
4422
|
onClick: (S) => {
|
|
4429
|
-
|
|
4423
|
+
m(v, S);
|
|
4430
4424
|
},
|
|
4431
4425
|
children: h
|
|
4432
4426
|
},
|
|
4433
4427
|
v
|
|
4434
4428
|
);
|
|
4435
4429
|
});
|
|
4436
|
-
return /* @__PURE__ */ t("div", { role: "group", className: l, children:
|
|
4430
|
+
return /* @__PURE__ */ t("div", { role: "group", className: l, children: p });
|
|
4437
4431
|
}, Zi = "lc-Card-module__card___LzN-3", qi = "lc-Card-module__card__header___SRONR", ji = "lc-Card-module__card__header__image___93pD4", Qi = "lc-Card-module__card__header__heading___jK55U", Ji = "lc-Card-module__card__header__heading__title___5090w", el = "lc-Card-module__card__header__heading__description___iVYoq", tl = "lc-Card-module__card__content___9G1YM", al = "lc-Card-module__card__actions___gp-xf", rl = "lc-Card-module__card__actions__line___C6TI0", ol = "lc-Card-module__card__actions__buttons___XJlFJ", Ie = {
|
|
4438
4432
|
card: Zi,
|
|
4439
4433
|
card__header: qi,
|
|
@@ -4449,7 +4443,7 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4449
4443
|
card__actions__buttons: ol,
|
|
4450
4444
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___I--MQ"
|
|
4451
4445
|
}, $a = "card", nr = `${$a}__header`, Cr = `${nr}__heading`, Xa = `${$a}__actions`, _l = `${nr}__no-image`, Es = (c) => {
|
|
4452
|
-
var
|
|
4446
|
+
var d = c, {
|
|
4453
4447
|
alt: e,
|
|
4454
4448
|
buttonsOptions: a = [],
|
|
4455
4449
|
children: r,
|
|
@@ -4458,7 +4452,7 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4458
4452
|
expandableContent: n,
|
|
4459
4453
|
src: i,
|
|
4460
4454
|
title: l
|
|
4461
|
-
} =
|
|
4455
|
+
} = d, s = F(d, [
|
|
4462
4456
|
"alt",
|
|
4463
4457
|
"buttonsOptions",
|
|
4464
4458
|
"children",
|
|
@@ -4468,8 +4462,8 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4468
4462
|
"src",
|
|
4469
4463
|
"title"
|
|
4470
4464
|
]);
|
|
4471
|
-
const [
|
|
4472
|
-
return /* @__PURE__ */ f("div", E(k({ className: u(Ie[$a], o) },
|
|
4465
|
+
const [m, p] = g.useState(!1), v = m ? lr : Ht, h = m ? "Hide" : "Show more", b = (a == null ? void 0 : a.length) > 0, y = !!n, C = b || y, N = l, B = i, $ = B ? "" : Ie[_l];
|
|
4466
|
+
return /* @__PURE__ */ f("div", E(k({ className: u(Ie[$a], o) }, s), { children: [
|
|
4473
4467
|
N && /* @__PURE__ */ f("div", { className: u(Ie[nr], $), children: [
|
|
4474
4468
|
B && /* @__PURE__ */ t(
|
|
4475
4469
|
"img",
|
|
@@ -4492,7 +4486,7 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4492
4486
|
] })
|
|
4493
4487
|
] }),
|
|
4494
4488
|
/* @__PURE__ */ t(A, { as: "div", size: "md", className: Ie[`${$a}__content`], children: r }),
|
|
4495
|
-
|
|
4489
|
+
m && /* @__PURE__ */ t(
|
|
4496
4490
|
A,
|
|
4497
4491
|
{
|
|
4498
4492
|
as: "div",
|
|
@@ -4506,7 +4500,7 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4506
4500
|
/* @__PURE__ */ f("div", { className: Ie[`${Xa}__buttons`], children: [
|
|
4507
4501
|
b && a.map(
|
|
4508
4502
|
({ kind: S, onClick: w, children: x }, I) => /* @__PURE__ */ t(
|
|
4509
|
-
|
|
4503
|
+
j,
|
|
4510
4504
|
{
|
|
4511
4505
|
size: "compact",
|
|
4512
4506
|
kind: S,
|
|
@@ -4517,20 +4511,20 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4517
4511
|
)
|
|
4518
4512
|
),
|
|
4519
4513
|
y && /* @__PURE__ */ t(
|
|
4520
|
-
|
|
4514
|
+
j,
|
|
4521
4515
|
{
|
|
4522
4516
|
className: Ie[`${Xa}__buttons-expander`],
|
|
4523
4517
|
kind: "link",
|
|
4524
4518
|
iconPosition: "right",
|
|
4525
4519
|
icon: /* @__PURE__ */ t(P, { source: v }),
|
|
4526
|
-
onClick: () =>
|
|
4520
|
+
onClick: () => p(!m),
|
|
4527
4521
|
children: h
|
|
4528
4522
|
}
|
|
4529
4523
|
)
|
|
4530
4524
|
] })
|
|
4531
4525
|
] })
|
|
4532
4526
|
] }));
|
|
4533
|
-
},
|
|
4527
|
+
}, O = {
|
|
4534
4528
|
"date-picker": "lc-DatePicker-module__date-picker___MOZFY",
|
|
4535
4529
|
"date-picker--interaction-disabled": "lc-DatePicker-module__date-picker--interaction-disabled___HsYQt",
|
|
4536
4530
|
"date-picker__day": "lc-DatePicker-module__date-picker__day___L1YZn",
|
|
@@ -4574,37 +4568,37 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4574
4568
|
showPreviousButton: n,
|
|
4575
4569
|
className: i,
|
|
4576
4570
|
classNames: l,
|
|
4577
|
-
numberOfMonths:
|
|
4571
|
+
numberOfMonths: s,
|
|
4578
4572
|
month: c,
|
|
4579
|
-
fromMonth:
|
|
4580
|
-
toMonth:
|
|
4581
|
-
} = e,
|
|
4573
|
+
fromMonth: d,
|
|
4574
|
+
toMonth: m
|
|
4575
|
+
} = e, p = () => {
|
|
4582
4576
|
typeof a == "function" && a();
|
|
4583
4577
|
}, v = () => {
|
|
4584
4578
|
typeof o == "function" && o();
|
|
4585
4579
|
}, h = () => {
|
|
4586
|
-
if (!
|
|
4580
|
+
if (!d) {
|
|
4587
4581
|
const N = jt(c, 12);
|
|
4588
4582
|
return r(N);
|
|
4589
4583
|
}
|
|
4590
|
-
const y = Math.abs(eo(c,
|
|
4584
|
+
const y = Math.abs(eo(c, d)), C = jt(
|
|
4591
4585
|
c,
|
|
4592
4586
|
!Number.isNaN(y) && y > 12 ? 12 : y
|
|
4593
4587
|
);
|
|
4594
4588
|
return r(C);
|
|
4595
4589
|
}, b = () => {
|
|
4596
|
-
if (!
|
|
4590
|
+
if (!m) {
|
|
4597
4591
|
const N = to(c, 12);
|
|
4598
4592
|
return r(N);
|
|
4599
4593
|
}
|
|
4600
|
-
const y = Math.abs(eo(
|
|
4594
|
+
const y = Math.abs(eo(m, c)), C = to(
|
|
4601
4595
|
c,
|
|
4602
4596
|
!Number.isNaN(y) && y > 12 ? 12 : y
|
|
4603
4597
|
);
|
|
4604
|
-
return
|
|
4598
|
+
return s === 2 && Fr(C, m) ? r(jt(C, 1)) : r(C);
|
|
4605
4599
|
};
|
|
4606
4600
|
return /* @__PURE__ */ f("div", { className: i, children: [
|
|
4607
|
-
/* @__PURE__ */ f("div", { className:
|
|
4601
|
+
/* @__PURE__ */ f("div", { className: O[`${vo}__navbar-buttons-wrapper`], children: [
|
|
4608
4602
|
/* @__PURE__ */ t(
|
|
4609
4603
|
"button",
|
|
4610
4604
|
{
|
|
@@ -4625,12 +4619,12 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4625
4619
|
[l.navButtonPrev]: !0,
|
|
4626
4620
|
[l.navButtonInteractionDisabled]: !n
|
|
4627
4621
|
}),
|
|
4628
|
-
onClick:
|
|
4622
|
+
onClick: p,
|
|
4629
4623
|
children: /* @__PURE__ */ t(P, { source: k_, kind: "subtle" })
|
|
4630
4624
|
}
|
|
4631
4625
|
)
|
|
4632
4626
|
] }),
|
|
4633
|
-
/* @__PURE__ */ f("div", { className:
|
|
4627
|
+
/* @__PURE__ */ f("div", { className: O[`${vo}__navbar-buttons-wrapper`], children: [
|
|
4634
4628
|
/* @__PURE__ */ t(
|
|
4635
4629
|
"button",
|
|
4636
4630
|
{
|
|
@@ -4662,17 +4656,17 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4662
4656
|
return !(o && !Rr(e, o) && Mr(e, o) || r && !Rr(e, r) && !Mr(e, r));
|
|
4663
4657
|
}, t_ = (e, a, r) => a ? e && !Fr(e, a) || r && Fr(a, r) ? jt(a, 1) : a : jt(r || /* @__PURE__ */ new Date(), 1), il = (e, a) => {
|
|
4664
4658
|
const r = {
|
|
4665
|
-
[
|
|
4666
|
-
[
|
|
4667
|
-
[
|
|
4668
|
-
[
|
|
4659
|
+
[O[`${U}__day--monday`]]: { daysOfWeek: [1] },
|
|
4660
|
+
[O[`${U}__day--sunday`]]: { daysOfWeek: [0] },
|
|
4661
|
+
[O[`${U}__day--start`]]: e,
|
|
4662
|
+
[O[`${U}__day--end`]]: e
|
|
4669
4663
|
};
|
|
4670
4664
|
if (!a || !e) return r;
|
|
4671
4665
|
const o = Kr(a, e);
|
|
4672
4666
|
return o > 0 ? E(k({}, r), {
|
|
4673
|
-
[
|
|
4667
|
+
[O[`${U}__day--end`]]: a
|
|
4674
4668
|
}) : o < 0 ? E(k({}, r), {
|
|
4675
|
-
[
|
|
4669
|
+
[O[`${U}__day--start`]]: a
|
|
4676
4670
|
}) : r;
|
|
4677
4671
|
}, wa = (e, a) => {
|
|
4678
4672
|
const r = a.find((o) => o.id === e);
|
|
@@ -4688,42 +4682,42 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4688
4682
|
return r ? (a.selectedItem = e.initialSelectedItemKey, r.isManual && (e.initialFromDate && (a.from = e.initialFromDate), e.initialToDate && (a.to = e.initialToDate, a.temporaryTo = e.initialToDate)), a) : {};
|
|
4689
4683
|
}, cl = (e, a) => k({
|
|
4690
4684
|
container: u({
|
|
4691
|
-
[
|
|
4692
|
-
[
|
|
4685
|
+
[O[`${U}`]]: !0,
|
|
4686
|
+
[O[`${U}--range`]]: e
|
|
4693
4687
|
}),
|
|
4694
|
-
wrapper:
|
|
4695
|
-
interactionDisabled:
|
|
4696
|
-
months:
|
|
4697
|
-
month:
|
|
4698
|
-
navBar:
|
|
4688
|
+
wrapper: O[`${U}__wrapper`],
|
|
4689
|
+
interactionDisabled: O[`${U}--interaction-disabled`],
|
|
4690
|
+
months: O[`${U}__months`],
|
|
4691
|
+
month: O[`${U}__month`],
|
|
4692
|
+
navBar: O[`${U}__nav-bar`],
|
|
4699
4693
|
navButtonPrev: u(
|
|
4700
|
-
|
|
4701
|
-
|
|
4694
|
+
O[`${U}__nav-button`],
|
|
4695
|
+
O[`${U}__nav-button--prev`]
|
|
4702
4696
|
),
|
|
4703
4697
|
navButtonNext: u(
|
|
4704
|
-
|
|
4705
|
-
|
|
4698
|
+
O[`${U}__nav-button`],
|
|
4699
|
+
O[`${U}__nav-button--next`]
|
|
4706
4700
|
),
|
|
4707
|
-
navButtonInteractionDisabled:
|
|
4708
|
-
caption:
|
|
4709
|
-
weekdays:
|
|
4710
|
-
weekdaysRow:
|
|
4711
|
-
weekday:
|
|
4712
|
-
body:
|
|
4713
|
-
week:
|
|
4714
|
-
weekNumber:
|
|
4715
|
-
day:
|
|
4716
|
-
footer:
|
|
4717
|
-
todayButton:
|
|
4718
|
-
today:
|
|
4719
|
-
selected:
|
|
4720
|
-
disabled:
|
|
4721
|
-
outside:
|
|
4722
|
-
start:
|
|
4723
|
-
end:
|
|
4701
|
+
navButtonInteractionDisabled: O[`${U}__nav-button--interaction-disabled`],
|
|
4702
|
+
caption: O[`${U}__caption`],
|
|
4703
|
+
weekdays: O[`${U}__weekdays`],
|
|
4704
|
+
weekdaysRow: O[`${U}__weekdays-row`],
|
|
4705
|
+
weekday: O[`${U}__weekday`],
|
|
4706
|
+
body: O[`${U}__body`],
|
|
4707
|
+
week: O[`${U}__week`],
|
|
4708
|
+
weekNumber: O[`${U}__week-number`],
|
|
4709
|
+
day: O[`${U}__day`],
|
|
4710
|
+
footer: O[`${U}__footer`],
|
|
4711
|
+
todayButton: O[`${U}__today-button`],
|
|
4712
|
+
today: O[`${U}__day--today`],
|
|
4713
|
+
selected: O[`${U}__day--selected`],
|
|
4714
|
+
disabled: O[`${U}__day--disabled`],
|
|
4715
|
+
outside: O[`${U}__day--outside`],
|
|
4716
|
+
start: O[`${U}__day--start`],
|
|
4717
|
+
end: O[`${U}__day--end`]
|
|
4724
4718
|
}, a), yo = "date-picker", sl = (e) => {
|
|
4725
4719
|
const a = e.getDate();
|
|
4726
|
-
return /* @__PURE__ */ t("div", { className:
|
|
4720
|
+
return /* @__PURE__ */ t("div", { className: O[`${yo}__day-wrapper`], children: /* @__PURE__ */ t("div", { className: O[`${yo}__day-content`], children: a }) });
|
|
4727
4721
|
}, dl = (e) => {
|
|
4728
4722
|
const C = e, {
|
|
4729
4723
|
classNames: a,
|
|
@@ -4733,10 +4727,10 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4733
4727
|
fromMonth: n,
|
|
4734
4728
|
firstDayOfWeek: i,
|
|
4735
4729
|
numberOfMonths: l,
|
|
4736
|
-
navbarElement:
|
|
4730
|
+
navbarElement: s,
|
|
4737
4731
|
renderDay: c,
|
|
4738
|
-
innerRef:
|
|
4739
|
-
} = C,
|
|
4732
|
+
innerRef: d
|
|
4733
|
+
} = C, m = F(C, [
|
|
4740
4734
|
"classNames",
|
|
4741
4735
|
"range",
|
|
4742
4736
|
"toMonth",
|
|
@@ -4747,13 +4741,13 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4747
4741
|
"navbarElement",
|
|
4748
4742
|
"renderDay",
|
|
4749
4743
|
"innerRef"
|
|
4750
|
-
]), [
|
|
4751
|
-
|
|
4752
|
-
_ && _ !==
|
|
4753
|
-
}, [_,
|
|
4754
|
-
o && _ !==
|
|
4755
|
-
}, [_,
|
|
4756
|
-
const h =
|
|
4744
|
+
]), [p, v] = g.useState(_ || /* @__PURE__ */ new Date());
|
|
4745
|
+
g.useEffect(() => {
|
|
4746
|
+
_ && _ !== p && v(_);
|
|
4747
|
+
}, [_, p]), g.useEffect(() => {
|
|
4748
|
+
o && _ !== p && (e_(p, { from: n, to: o }) || v(o));
|
|
4749
|
+
}, [_, p, o, n]);
|
|
4750
|
+
const h = g.useCallback(
|
|
4757
4751
|
(N) => {
|
|
4758
4752
|
if (e.onMonthChange && N) {
|
|
4759
4753
|
e.onMonthChange(N);
|
|
@@ -4765,17 +4759,17 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4765
4759
|
);
|
|
4766
4760
|
let b = 1;
|
|
4767
4761
|
(i === 0 || i && i < 7) && (b = i);
|
|
4768
|
-
const y =
|
|
4762
|
+
const y = g.useMemo(
|
|
4769
4763
|
() => cl(r, a),
|
|
4770
4764
|
[r, a]
|
|
4771
4765
|
);
|
|
4772
4766
|
return /* @__PURE__ */ t(
|
|
4773
4767
|
Q_,
|
|
4774
4768
|
k({
|
|
4775
|
-
navbarElement:
|
|
4769
|
+
navbarElement: s || /* @__PURE__ */ t(
|
|
4776
4770
|
nl,
|
|
4777
4771
|
{
|
|
4778
|
-
month:
|
|
4772
|
+
month: p,
|
|
4779
4773
|
classNames: y,
|
|
4780
4774
|
numberOfMonths: l,
|
|
4781
4775
|
onMonthChange: h,
|
|
@@ -4783,17 +4777,17 @@ const zi = "lc-Avatar-module__avatar___5-kP8", Vi = "lc-Avatar-module__avatar__s
|
|
|
4783
4777
|
fromMonth: n
|
|
4784
4778
|
}
|
|
4785
4779
|
),
|
|
4786
|
-
ref:
|
|
4780
|
+
ref: d,
|
|
4787
4781
|
classNames: y,
|
|
4788
4782
|
numberOfMonths: l,
|
|
4789
4783
|
toMonth: o,
|
|
4790
4784
|
fromMonth: n,
|
|
4791
4785
|
firstDayOfWeek: b,
|
|
4792
|
-
month:
|
|
4786
|
+
month: p,
|
|
4793
4787
|
renderDay: c || sl
|
|
4794
|
-
},
|
|
4788
|
+
}, m)
|
|
4795
4789
|
);
|
|
4796
|
-
}, ul =
|
|
4790
|
+
}, ul = g.forwardRef(
|
|
4797
4791
|
(e, a) => /* @__PURE__ */ t(dl, k({ innerRef: a }, e))
|
|
4798
4792
|
);
|
|
4799
4793
|
ul.displayName = "DatePicker";
|
|
@@ -4869,7 +4863,7 @@ const ml = (e) => {
|
|
|
4869
4863
|
}) => {
|
|
4870
4864
|
const l = Ur(
|
|
4871
4865
|
a || null
|
|
4872
|
-
), [
|
|
4866
|
+
), [s, c] = ml({
|
|
4873
4867
|
options: e,
|
|
4874
4868
|
initialSelectedItemKey: a,
|
|
4875
4869
|
initialFromDate: r,
|
|
@@ -4899,7 +4893,7 @@ const ml = (e) => {
|
|
|
4899
4893
|
payload: { date: b }
|
|
4900
4894
|
});
|
|
4901
4895
|
}, [_, r, o]), tt(() => {
|
|
4902
|
-
const { from: b, selectedItem: y, to: C } =
|
|
4896
|
+
const { from: b, selectedItem: y, to: C } = s;
|
|
4903
4897
|
if (!(b && C))
|
|
4904
4898
|
return;
|
|
4905
4899
|
const N = wa(y, e);
|
|
@@ -4909,8 +4903,8 @@ const ml = (e) => {
|
|
|
4909
4903
|
to: C
|
|
4910
4904
|
}
|
|
4911
4905
|
})));
|
|
4912
|
-
}, [
|
|
4913
|
-
const { selectedItem: b } =
|
|
4906
|
+
}, [s.from, s.to, s.selectedItem, e, n]), tt(() => {
|
|
4907
|
+
const { selectedItem: b } = s;
|
|
4914
4908
|
if (b === l.current)
|
|
4915
4909
|
return;
|
|
4916
4910
|
if (!b) {
|
|
@@ -4924,19 +4918,19 @@ const ml = (e) => {
|
|
|
4924
4918
|
{}
|
|
4925
4919
|
);
|
|
4926
4920
|
n(C[b]);
|
|
4927
|
-
}, [n,
|
|
4928
|
-
const
|
|
4921
|
+
}, [n, s.selectedItem, e]);
|
|
4922
|
+
const d = Ga(
|
|
4929
4923
|
(b) => {
|
|
4930
4924
|
const y = _ ? Kr(_, b) >= 0 : !0;
|
|
4931
|
-
!ko(
|
|
4925
|
+
!ko(s.from, s.to) && y && c({
|
|
4932
4926
|
type: ae.NEW_TEMPORARY_TO_VALUE,
|
|
4933
4927
|
payload: { date: b }
|
|
4934
4928
|
});
|
|
4935
4929
|
},
|
|
4936
|
-
[_,
|
|
4937
|
-
),
|
|
4930
|
+
[_, s.from, s.to]
|
|
4931
|
+
), m = Ga(
|
|
4938
4932
|
(b) => {
|
|
4939
|
-
const { from: y, to: C } =
|
|
4933
|
+
const { from: y, to: C } = s;
|
|
4940
4934
|
e_(b, { to: _ }) && (ko(y, C) ? c({
|
|
4941
4935
|
type: ae.SELECT_FIRST_DAY,
|
|
4942
4936
|
payload: { date: b }
|
|
@@ -4948,8 +4942,8 @@ const ml = (e) => {
|
|
|
4948
4942
|
payload: { date: b }
|
|
4949
4943
|
}));
|
|
4950
4944
|
},
|
|
4951
|
-
[_,
|
|
4952
|
-
),
|
|
4945
|
+
[_, s.from, s.to]
|
|
4946
|
+
), p = Ga(
|
|
4953
4947
|
(b) => {
|
|
4954
4948
|
if (b === null) {
|
|
4955
4949
|
c({
|
|
@@ -4971,13 +4965,13 @@ const ml = (e) => {
|
|
|
4971
4965
|
});
|
|
4972
4966
|
}, []);
|
|
4973
4967
|
return i((() => {
|
|
4974
|
-
const { currentMonth: b, from: y, selectedItem: C, temporaryTo: N, to: B } =
|
|
4968
|
+
const { currentMonth: b, from: y, selectedItem: C, temporaryTo: N, to: B } = s, $ = qt(
|
|
4975
4969
|
() => il(y, N),
|
|
4976
4970
|
[y, N]
|
|
4977
4971
|
), S = qt(() => wa(C, e), [e, C]), w = qt(() => [y, { from: y, to: N }], [y, N]), x = qt(() => _ ? { after: _ } : void 0, [_]);
|
|
4978
4972
|
return {
|
|
4979
4973
|
select: {
|
|
4980
|
-
onItemSelect:
|
|
4974
|
+
onItemSelect: p,
|
|
4981
4975
|
selected: C || ""
|
|
4982
4976
|
},
|
|
4983
4977
|
inputs: {
|
|
@@ -4988,13 +4982,13 @@ const ml = (e) => {
|
|
|
4988
4982
|
range: !0,
|
|
4989
4983
|
month: b,
|
|
4990
4984
|
numberOfMonths: 2,
|
|
4991
|
-
onDayClick:
|
|
4985
|
+
onDayClick: m,
|
|
4992
4986
|
selectedDays: w,
|
|
4993
4987
|
modifiers: $,
|
|
4994
4988
|
initialMonth: _ && jt(_, 1),
|
|
4995
4989
|
toMonth: _,
|
|
4996
4990
|
disabledDays: x,
|
|
4997
|
-
onDayMouseEnter:
|
|
4991
|
+
onDayMouseEnter: d,
|
|
4998
4992
|
onMonthChange: v
|
|
4999
4993
|
},
|
|
5000
4994
|
selectedOption: S
|
|
@@ -5017,7 +5011,7 @@ pl.defaultProps = {
|
|
|
5017
5011
|
const Is = (e) => {
|
|
5018
5012
|
const n = e, { className: a, children: r } = n, o = F(n, ["className", "children"]), _ = u(
|
|
5019
5013
|
a,
|
|
5020
|
-
|
|
5014
|
+
O["date-picker--range__calendars-wrapper"]
|
|
5021
5015
|
);
|
|
5022
5016
|
return /* @__PURE__ */ t("div", E(k({}, o), { className: _, children: r }));
|
|
5023
5017
|
}, X = {
|
|
@@ -5050,24 +5044,24 @@ const Is = (e) => {
|
|
|
5050
5044
|
withDivider: n,
|
|
5051
5045
|
fullSpaceContent: i,
|
|
5052
5046
|
openOnInit: l = !1,
|
|
5053
|
-
hideLabelOnOpen:
|
|
5047
|
+
hideLabelOnOpen: s,
|
|
5054
5048
|
onClick: c
|
|
5055
5049
|
}) => {
|
|
5056
|
-
const [
|
|
5050
|
+
const [d, m] = g.useState(l), [p, v] = g.useState(0), h = g.useRef(null), b = u(
|
|
5057
5051
|
X[Z],
|
|
5058
5052
|
n && X[`${Z}--with-divider`],
|
|
5059
5053
|
a
|
|
5060
|
-
), y =
|
|
5061
|
-
|
|
5054
|
+
), y = s && d, C = typeof _ == "string", N = ($) => {
|
|
5055
|
+
m((S) => !S), $.currentTarget.blur(), c == null || c($);
|
|
5062
5056
|
}, B = ($) => {
|
|
5063
5057
|
const w = $.target.tagName.toLowerCase();
|
|
5064
|
-
gl.includes(w) || (
|
|
5058
|
+
gl.includes(w) || (m((x) => !x), c == null || c($));
|
|
5065
5059
|
};
|
|
5066
|
-
return
|
|
5060
|
+
return g.useEffect(() => {
|
|
5067
5061
|
const $ = !!window.IntersectionObserver;
|
|
5068
5062
|
if (h.current && $) {
|
|
5069
5063
|
const S = new ResizeObserver(() => {
|
|
5070
|
-
h.current &&
|
|
5064
|
+
h.current && p !== h.current.offsetHeight && v(h.current.offsetHeight);
|
|
5071
5065
|
});
|
|
5072
5066
|
return S.observe(h.current), () => S.disconnect();
|
|
5073
5067
|
}
|
|
@@ -5077,11 +5071,11 @@ const Is = (e) => {
|
|
|
5077
5071
|
{
|
|
5078
5072
|
className: u(
|
|
5079
5073
|
X[`${Z}__label-wrapper`],
|
|
5080
|
-
|
|
5074
|
+
s && X[`${Z}__label-wrapper--fading`],
|
|
5081
5075
|
y && X[`${Z}__label-wrapper--hide`],
|
|
5082
|
-
|
|
5076
|
+
d && X[`${Z}__label-wrapper--open`]
|
|
5083
5077
|
),
|
|
5084
|
-
"aria-expanded":
|
|
5078
|
+
"aria-expanded": d,
|
|
5085
5079
|
"aria-hidden": y,
|
|
5086
5080
|
"data-testid": "details-card-label",
|
|
5087
5081
|
onClick: B,
|
|
@@ -5090,7 +5084,7 @@ const Is = (e) => {
|
|
|
5090
5084
|
{
|
|
5091
5085
|
className: u(
|
|
5092
5086
|
X[`${Z}__label`],
|
|
5093
|
-
|
|
5087
|
+
s && X[`${Z}__label--with-margin`]
|
|
5094
5088
|
),
|
|
5095
5089
|
children: [
|
|
5096
5090
|
r && /* @__PURE__ */ t("div", { className: X[`${Z}__label__left-node`], children: r }),
|
|
@@ -5109,27 +5103,27 @@ const Is = (e) => {
|
|
|
5109
5103
|
}
|
|
5110
5104
|
),
|
|
5111
5105
|
/* @__PURE__ */ t(
|
|
5112
|
-
|
|
5106
|
+
j,
|
|
5113
5107
|
{
|
|
5114
|
-
kind:
|
|
5108
|
+
kind: d && s ? "float" : "text",
|
|
5115
5109
|
icon: /* @__PURE__ */ t(
|
|
5116
5110
|
P,
|
|
5117
5111
|
{
|
|
5118
5112
|
source: ir,
|
|
5119
5113
|
className: u(
|
|
5120
5114
|
X[`${Z}__button__icon`],
|
|
5121
|
-
|
|
5115
|
+
d && X[`${Z}__button__icon--open`]
|
|
5122
5116
|
)
|
|
5123
5117
|
}
|
|
5124
5118
|
),
|
|
5125
5119
|
className: u(
|
|
5126
5120
|
X[`${Z}__button`],
|
|
5127
|
-
!
|
|
5128
|
-
|
|
5129
|
-
|
|
5121
|
+
!d && X[`${Z}__button--closed`],
|
|
5122
|
+
d && X[`${Z}__button--open`],
|
|
5123
|
+
s && X[`${Z}__button--fading`]
|
|
5130
5124
|
),
|
|
5131
5125
|
onClick: N,
|
|
5132
|
-
"aria-expanded":
|
|
5126
|
+
"aria-expanded": d
|
|
5133
5127
|
}
|
|
5134
5128
|
),
|
|
5135
5129
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
@@ -5137,10 +5131,10 @@ const Is = (e) => {
|
|
|
5137
5131
|
{
|
|
5138
5132
|
className: u(
|
|
5139
5133
|
X[`${Z}__content-wrapper`],
|
|
5140
|
-
|
|
5134
|
+
d && X[`${Z}__content-wrapper--open`]
|
|
5141
5135
|
),
|
|
5142
5136
|
style: {
|
|
5143
|
-
maxHeight:
|
|
5137
|
+
maxHeight: d ? p : 0
|
|
5144
5138
|
},
|
|
5145
5139
|
children: /* @__PURE__ */ t(
|
|
5146
5140
|
"div",
|
|
@@ -5149,7 +5143,7 @@ const Is = (e) => {
|
|
|
5149
5143
|
className: u(
|
|
5150
5144
|
X[`${Z}__content`],
|
|
5151
5145
|
i && X[`${Z}__content--full-space`],
|
|
5152
|
-
|
|
5146
|
+
s && X[`${Z}__content--spacing`]
|
|
5153
5147
|
),
|
|
5154
5148
|
children: e
|
|
5155
5149
|
}
|
|
@@ -5192,14 +5186,14 @@ const Is = (e) => {
|
|
|
5192
5186
|
"field-group--inline": "lc-FieldGroup-module__field-group--inline___iSg4S",
|
|
5193
5187
|
"field-group--stretched": "lc-FieldGroup-module__field-group--stretched___4Evlw"
|
|
5194
5188
|
}, Sr = "field-group", Ds = (l) => {
|
|
5195
|
-
var
|
|
5189
|
+
var s = l, {
|
|
5196
5190
|
className: e = "",
|
|
5197
5191
|
children: a,
|
|
5198
5192
|
description: r,
|
|
5199
5193
|
error: o,
|
|
5200
5194
|
inline: _,
|
|
5201
5195
|
stretch: n
|
|
5202
|
-
} =
|
|
5196
|
+
} = s, i = F(s, [
|
|
5203
5197
|
"className",
|
|
5204
5198
|
"children",
|
|
5205
5199
|
"description",
|
|
@@ -5270,20 +5264,20 @@ const Is = (e) => {
|
|
|
5270
5264
|
className: n,
|
|
5271
5265
|
labelFor: i,
|
|
5272
5266
|
children: l,
|
|
5273
|
-
labelRightNode:
|
|
5267
|
+
labelRightNode: s
|
|
5274
5268
|
}) => {
|
|
5275
|
-
const c =
|
|
5269
|
+
const c = g.useRef(null), [d, m] = g.useState("auto"), p = u(
|
|
5276
5270
|
re[oe],
|
|
5277
5271
|
{
|
|
5278
5272
|
[re[`${oe}--inline`]]: e
|
|
5279
5273
|
},
|
|
5280
5274
|
n
|
|
5281
5275
|
);
|
|
5282
|
-
return
|
|
5276
|
+
return g.useEffect(() => {
|
|
5283
5277
|
const v = c;
|
|
5284
|
-
return e && v.current ?
|
|
5285
|
-
}), /* @__PURE__ */ f("div", { className:
|
|
5286
|
-
|
|
5278
|
+
return e && v.current ? m(`${v.current.clientHeight}px`) : m("auto");
|
|
5279
|
+
}), /* @__PURE__ */ f("div", { className: p, children: [
|
|
5280
|
+
s && e && /* @__PURE__ */ f(g.Fragment, { children: [
|
|
5287
5281
|
/* @__PURE__ */ t(
|
|
5288
5282
|
A,
|
|
5289
5283
|
{
|
|
@@ -5293,7 +5287,7 @@ const Is = (e) => {
|
|
|
5293
5287
|
re[`${oe}__label-right-node`],
|
|
5294
5288
|
re[`${oe}__label-right-node--inline`]
|
|
5295
5289
|
),
|
|
5296
|
-
children:
|
|
5290
|
+
children: s
|
|
5297
5291
|
}
|
|
5298
5292
|
),
|
|
5299
5293
|
/* @__PURE__ */ t("div", { className: re[`${oe}__row-break`] })
|
|
@@ -5306,7 +5300,7 @@ const Is = (e) => {
|
|
|
5306
5300
|
e && re[`${oe}__wrapper--inline`]
|
|
5307
5301
|
),
|
|
5308
5302
|
children: [
|
|
5309
|
-
(o ||
|
|
5303
|
+
(o || s) && /* @__PURE__ */ f(
|
|
5310
5304
|
"div",
|
|
5311
5305
|
{
|
|
5312
5306
|
className: u(
|
|
@@ -5323,7 +5317,7 @@ const Is = (e) => {
|
|
|
5323
5317
|
e && re[`${oe}__label-wrapper--inline`]
|
|
5324
5318
|
),
|
|
5325
5319
|
style: {
|
|
5326
|
-
height:
|
|
5320
|
+
height: d
|
|
5327
5321
|
},
|
|
5328
5322
|
children: [
|
|
5329
5323
|
/* @__PURE__ */ t(
|
|
@@ -5349,13 +5343,13 @@ const Is = (e) => {
|
|
|
5349
5343
|
]
|
|
5350
5344
|
}
|
|
5351
5345
|
),
|
|
5352
|
-
|
|
5346
|
+
s && !e && /* @__PURE__ */ t(
|
|
5353
5347
|
A,
|
|
5354
5348
|
{
|
|
5355
5349
|
as: "div",
|
|
5356
5350
|
size: "sm",
|
|
5357
5351
|
className: u(re[`${oe}__label-right-node`]),
|
|
5358
|
-
children:
|
|
5352
|
+
children: s
|
|
5359
5353
|
}
|
|
5360
5354
|
)
|
|
5361
5355
|
]
|
|
@@ -5429,9 +5423,9 @@ const Is = (e) => {
|
|
|
5429
5423
|
className: o,
|
|
5430
5424
|
isExpanded: _
|
|
5431
5425
|
}) => {
|
|
5432
|
-
const [n, i] = Jt(!1), l = _ !== void 0,
|
|
5426
|
+
const [n, i] = Jt(!1), l = _ !== void 0, s = l ? _ : n, c = () => {
|
|
5433
5427
|
i(!0);
|
|
5434
|
-
},
|
|
5428
|
+
}, d = () => {
|
|
5435
5429
|
i(!1);
|
|
5436
5430
|
};
|
|
5437
5431
|
return tt(() => {
|
|
@@ -5442,12 +5436,12 @@ const Is = (e) => {
|
|
|
5442
5436
|
type: "button",
|
|
5443
5437
|
className: u(
|
|
5444
5438
|
ja["animated-button"],
|
|
5445
|
-
{ [ja.expanded]:
|
|
5439
|
+
{ [ja.expanded]: s },
|
|
5446
5440
|
o
|
|
5447
5441
|
),
|
|
5448
5442
|
onClick: r,
|
|
5449
5443
|
onMouseEnter: c,
|
|
5450
|
-
onMouseLeave:
|
|
5444
|
+
onMouseLeave: d,
|
|
5451
5445
|
children: [
|
|
5452
5446
|
/* @__PURE__ */ t("span", { className: ja.icon, children: e }),
|
|
5453
5447
|
/* @__PURE__ */ t("span", { className: ja.text, children: a })
|
|
@@ -5472,7 +5466,7 @@ const Is = (e) => {
|
|
|
5472
5466
|
"invite-agents__accepting-agents": "lc-InviteAgents-module__invite-agents__accepting-agents___KNMQw",
|
|
5473
5467
|
"invite-agents__accepting-agents-row": "lc-InviteAgents-module__invite-agents__accepting-agents-row___bTb9i"
|
|
5474
5468
|
}, Ae = "invite-agents", xl = 50, Sl = (c) => {
|
|
5475
|
-
var
|
|
5469
|
+
var d = c, {
|
|
5476
5470
|
agents: e,
|
|
5477
5471
|
onSetUpChatbotClick: a,
|
|
5478
5472
|
onAddTeammateClick: r,
|
|
@@ -5481,7 +5475,7 @@ const Is = (e) => {
|
|
|
5481
5475
|
tooltipArrowOffset: n = 13,
|
|
5482
5476
|
onAvailableAgentsClick: i,
|
|
5483
5477
|
showBotsInTooltip: l = !0
|
|
5484
|
-
} =
|
|
5478
|
+
} = d, s = F(d, [
|
|
5485
5479
|
"agents",
|
|
5486
5480
|
"onSetUpChatbotClick",
|
|
5487
5481
|
"onAddTeammateClick",
|
|
@@ -5491,7 +5485,7 @@ const Is = (e) => {
|
|
|
5491
5485
|
"onAvailableAgentsClick",
|
|
5492
5486
|
"showBotsInTooltip"
|
|
5493
5487
|
]);
|
|
5494
|
-
const [
|
|
5488
|
+
const [m, p] = Jt(!1), [v, h] = Jt(!1), {
|
|
5495
5489
|
availableAgentsNumber: b,
|
|
5496
5490
|
visibleAgents: y,
|
|
5497
5491
|
hasOnlyUnavailableAgents: C,
|
|
@@ -5511,11 +5505,11 @@ const Is = (e) => {
|
|
|
5511
5505
|
onlyBotsNumber: ie
|
|
5512
5506
|
};
|
|
5513
5507
|
}, [e]), $ = () => {
|
|
5514
|
-
a(),
|
|
5508
|
+
a(), p(!1), h(!1);
|
|
5515
5509
|
}, S = () => {
|
|
5516
|
-
r(),
|
|
5510
|
+
r(), p(!1), h(!1);
|
|
5517
5511
|
}, w = () => {
|
|
5518
|
-
i(),
|
|
5512
|
+
i(), p(!1), h(!1);
|
|
5519
5513
|
}, x = [
|
|
5520
5514
|
{
|
|
5521
5515
|
key: "chatbot",
|
|
@@ -5530,7 +5524,7 @@ const Is = (e) => {
|
|
|
5530
5524
|
];
|
|
5531
5525
|
return /* @__PURE__ */ f(
|
|
5532
5526
|
"div",
|
|
5533
|
-
E(k({},
|
|
5527
|
+
E(k({}, s), {
|
|
5534
5528
|
className: u(
|
|
5535
5529
|
Dt.Dark,
|
|
5536
5530
|
Te[Ae],
|
|
@@ -5544,7 +5538,7 @@ const Is = (e) => {
|
|
|
5544
5538
|
e.length > 0 && /* @__PURE__ */ t(
|
|
5545
5539
|
Ut,
|
|
5546
5540
|
{
|
|
5547
|
-
isVisible: v && !
|
|
5541
|
+
isVisible: v && !m,
|
|
5548
5542
|
offsetMainAxis: n,
|
|
5549
5543
|
floatingStrategy: "fixed",
|
|
5550
5544
|
hoverOnDelay: xl,
|
|
@@ -5651,17 +5645,17 @@ const Is = (e) => {
|
|
|
5651
5645
|
Uo,
|
|
5652
5646
|
{
|
|
5653
5647
|
floatingStrategy: "fixed",
|
|
5654
|
-
visible:
|
|
5655
|
-
onOpen: () =>
|
|
5656
|
-
onClose: () =>
|
|
5648
|
+
visible: m,
|
|
5649
|
+
onOpen: () => p(!0),
|
|
5650
|
+
onClose: () => p(!1),
|
|
5657
5651
|
options: x,
|
|
5658
5652
|
triggerRenderer: /* @__PURE__ */ t(
|
|
5659
5653
|
$l,
|
|
5660
5654
|
{
|
|
5661
5655
|
icon: /* @__PURE__ */ t(P, { source: $_ }),
|
|
5662
5656
|
text: "Invite",
|
|
5663
|
-
onClick: () =>
|
|
5664
|
-
isExpanded: _ ?
|
|
5657
|
+
onClick: () => p((I) => !I),
|
|
5658
|
+
isExpanded: _ ? m || void 0 : !0
|
|
5665
5659
|
}
|
|
5666
5660
|
)
|
|
5667
5661
|
}
|
|
@@ -5706,8 +5700,8 @@ const Is = (e) => {
|
|
|
5706
5700
|
modal__heading: Tl,
|
|
5707
5701
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___OZoP1",
|
|
5708
5702
|
modal__footer: Al
|
|
5709
|
-
}, ua = "modal-base", Dl = (
|
|
5710
|
-
var c =
|
|
5703
|
+
}, ua = "modal-base", Dl = (s) => {
|
|
5704
|
+
var c = s, {
|
|
5711
5705
|
children: e,
|
|
5712
5706
|
className: a = "",
|
|
5713
5707
|
onClose: r,
|
|
@@ -5724,24 +5718,24 @@ const Is = (e) => {
|
|
|
5724
5718
|
"fullSpaceContent",
|
|
5725
5719
|
"isLabelled"
|
|
5726
5720
|
]);
|
|
5727
|
-
const
|
|
5721
|
+
const d = u(
|
|
5728
5722
|
ve[ua],
|
|
5729
5723
|
a,
|
|
5730
5724
|
n && ve[`${ua}--full-space`]
|
|
5731
5725
|
);
|
|
5732
|
-
return
|
|
5726
|
+
return g.useEffect(() => {
|
|
5733
5727
|
if (!o)
|
|
5734
5728
|
return;
|
|
5735
|
-
const
|
|
5729
|
+
const p = (v) => {
|
|
5736
5730
|
v.key === ke.esc && r();
|
|
5737
5731
|
};
|
|
5738
|
-
return document.addEventListener("keyup",
|
|
5732
|
+
return document.addEventListener("keyup", p, !0), () => document.removeEventListener("keyup", p, !0);
|
|
5739
5733
|
}, [o]), /* @__PURE__ */ t(
|
|
5740
5734
|
Y_,
|
|
5741
5735
|
{
|
|
5742
5736
|
"data-testid": "lc-modal-overlay",
|
|
5743
|
-
onMouseDown: (
|
|
5744
|
-
_ &&
|
|
5737
|
+
onMouseDown: (p) => {
|
|
5738
|
+
_ && p.target === p.currentTarget && r();
|
|
5745
5739
|
},
|
|
5746
5740
|
className: u(
|
|
5747
5741
|
ve[`${ua}__overlay`],
|
|
@@ -5753,7 +5747,7 @@ const Is = (e) => {
|
|
|
5753
5747
|
E(k({
|
|
5754
5748
|
role: "dialog",
|
|
5755
5749
|
"aria-modal": !0,
|
|
5756
|
-
className:
|
|
5750
|
+
className: d
|
|
5757
5751
|
}, l), {
|
|
5758
5752
|
children: e
|
|
5759
5753
|
})
|
|
@@ -5765,7 +5759,7 @@ const Is = (e) => {
|
|
|
5765
5759
|
customColor: a,
|
|
5766
5760
|
onClick: r
|
|
5767
5761
|
}) => /* @__PURE__ */ t(
|
|
5768
|
-
|
|
5762
|
+
j,
|
|
5769
5763
|
{
|
|
5770
5764
|
type: "button",
|
|
5771
5765
|
kind: "plain",
|
|
@@ -5779,7 +5773,7 @@ const Is = (e) => {
|
|
|
5779
5773
|
icon: /* @__PURE__ */ t(P, { source: Me, size: "medium", customColor: a })
|
|
5780
5774
|
}
|
|
5781
5775
|
), Tt = "modal", Ls = (c) => {
|
|
5782
|
-
var
|
|
5776
|
+
var d = c, {
|
|
5783
5777
|
children: e,
|
|
5784
5778
|
className: a = "",
|
|
5785
5779
|
heading: r,
|
|
@@ -5788,7 +5782,7 @@ const Is = (e) => {
|
|
|
5788
5782
|
footer: n,
|
|
5789
5783
|
onClose: i,
|
|
5790
5784
|
contentClassName: l
|
|
5791
|
-
} =
|
|
5785
|
+
} = d, s = F(d, [
|
|
5792
5786
|
"children",
|
|
5793
5787
|
"className",
|
|
5794
5788
|
"heading",
|
|
@@ -5798,17 +5792,17 @@ const Is = (e) => {
|
|
|
5798
5792
|
"onClose",
|
|
5799
5793
|
"contentClassName"
|
|
5800
5794
|
]);
|
|
5801
|
-
const
|
|
5795
|
+
const m = u(ve[Tt], a), p = typeof e == "string", v = (h) => {
|
|
5802
5796
|
h.preventDefault(), h.stopPropagation(), i();
|
|
5803
5797
|
};
|
|
5804
5798
|
return /* @__PURE__ */ f(
|
|
5805
5799
|
Dl,
|
|
5806
5800
|
E(k({
|
|
5807
|
-
className:
|
|
5801
|
+
className: m,
|
|
5808
5802
|
fullSpaceContent: _,
|
|
5809
5803
|
onClose: i,
|
|
5810
5804
|
isLabelled: !!o
|
|
5811
|
-
},
|
|
5805
|
+
}, s), {
|
|
5812
5806
|
children: [
|
|
5813
5807
|
o && /* @__PURE__ */ f("div", { className: ve[`${Tt}__label-header`], children: [
|
|
5814
5808
|
/* @__PURE__ */ t(
|
|
@@ -5854,7 +5848,7 @@ const Is = (e) => {
|
|
|
5854
5848
|
{
|
|
5855
5849
|
"data-testid": "modal-body",
|
|
5856
5850
|
className: u(ve[`${Tt}__body`], l),
|
|
5857
|
-
children:
|
|
5851
|
+
children: p ? /* @__PURE__ */ t(A, { as: "div", children: e }) : e
|
|
5858
5852
|
}
|
|
5859
5853
|
),
|
|
5860
5854
|
n && /* @__PURE__ */ t("div", { className: ve[`${Tt}__footer`], children: n })
|
|
@@ -5951,8 +5945,8 @@ const Is = (e) => {
|
|
|
5951
5945
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___s2O8w",
|
|
5952
5946
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___nO8zN",
|
|
5953
5947
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___y9v6f"
|
|
5954
|
-
}, Zt = "numeric-input", zs = (
|
|
5955
|
-
var
|
|
5948
|
+
}, Zt = "numeric-input", zs = (d) => {
|
|
5949
|
+
var m = d, {
|
|
5956
5950
|
className: e,
|
|
5957
5951
|
error: a,
|
|
5958
5952
|
value: r,
|
|
@@ -5961,8 +5955,8 @@ const Is = (e) => {
|
|
|
5961
5955
|
disabled: n,
|
|
5962
5956
|
noControls: i,
|
|
5963
5957
|
style: l,
|
|
5964
|
-
onChange:
|
|
5965
|
-
} =
|
|
5958
|
+
onChange: s
|
|
5959
|
+
} = m, c = F(m, [
|
|
5966
5960
|
"className",
|
|
5967
5961
|
"error",
|
|
5968
5962
|
"value",
|
|
@@ -5973,7 +5967,7 @@ const Is = (e) => {
|
|
|
5973
5967
|
"style",
|
|
5974
5968
|
"onChange"
|
|
5975
5969
|
]);
|
|
5976
|
-
const
|
|
5970
|
+
const p = g.useRef(null), v = u(
|
|
5977
5971
|
Xt[Zt],
|
|
5978
5972
|
{
|
|
5979
5973
|
[Xt[`${Zt}--error`]]: a,
|
|
@@ -5981,7 +5975,7 @@ const Is = (e) => {
|
|
|
5981
5975
|
[Xt[`${Zt}--disabled`]]: n
|
|
5982
5976
|
},
|
|
5983
5977
|
e
|
|
5984
|
-
), h = (w) =>
|
|
5978
|
+
), h = (w) => s(String(w)), b = (w) => o !== void 0 && w > o ? o : _ !== void 0 && w < _ ? _ : w, y = (w) => {
|
|
5985
5979
|
const x = parseInt(r, 10) + w;
|
|
5986
5980
|
return h(b(x));
|
|
5987
5981
|
}, C = (w) => {
|
|
@@ -5998,17 +5992,17 @@ const Is = (e) => {
|
|
|
5998
5992
|
return h(b(I));
|
|
5999
5993
|
}, $ = () => {
|
|
6000
5994
|
var w;
|
|
6001
|
-
return (w =
|
|
5995
|
+
return (w = p.current) == null || w.focus(), y(1);
|
|
6002
5996
|
}, S = () => {
|
|
6003
5997
|
var w;
|
|
6004
|
-
return (w =
|
|
5998
|
+
return (w = p.current) == null || w.focus(), y(-1);
|
|
6005
5999
|
};
|
|
6006
6000
|
return /* @__PURE__ */ f("div", { className: v, style: l, children: [
|
|
6007
6001
|
/* @__PURE__ */ t(
|
|
6008
6002
|
"input",
|
|
6009
6003
|
E(k({
|
|
6010
6004
|
type: "text",
|
|
6011
|
-
ref:
|
|
6005
|
+
ref: p
|
|
6012
6006
|
}, c), {
|
|
6013
6007
|
value: r,
|
|
6014
6008
|
disabled: n,
|
|
@@ -6085,23 +6079,23 @@ const Is = (e) => {
|
|
|
6085
6079
|
titleHint: n,
|
|
6086
6080
|
description: i,
|
|
6087
6081
|
onClick: l,
|
|
6088
|
-
cta:
|
|
6082
|
+
cta: s
|
|
6089
6083
|
}) => {
|
|
6090
|
-
const c =
|
|
6091
|
-
return
|
|
6084
|
+
const c = g.useRef(null), d = g.useRef(null), [m, p] = g.useState(0), v = g.useRef(m);
|
|
6085
|
+
return g.useEffect(() => {
|
|
6092
6086
|
a && c.current && c.current.focus();
|
|
6093
|
-
}, [a]),
|
|
6087
|
+
}, [a]), g.useEffect(() => {
|
|
6094
6088
|
const h = !!window.ResizeObserver;
|
|
6095
|
-
if (
|
|
6089
|
+
if (d.current && h) {
|
|
6096
6090
|
const b = new ResizeObserver((y) => {
|
|
6097
6091
|
const C = y[0];
|
|
6098
6092
|
if (!C) return;
|
|
6099
6093
|
const N = C.contentRect.height + Pl;
|
|
6100
|
-
v.current !== N && (
|
|
6094
|
+
v.current !== N && (p(N), v.current = N);
|
|
6101
6095
|
});
|
|
6102
|
-
return b.observe(
|
|
6096
|
+
return b.observe(d.current), () => b.disconnect();
|
|
6103
6097
|
}
|
|
6104
|
-
}, [
|
|
6098
|
+
}, [d]), /* @__PURE__ */ f(
|
|
6105
6099
|
"div",
|
|
6106
6100
|
{
|
|
6107
6101
|
className: u(pe[ge], {
|
|
@@ -6166,8 +6160,8 @@ const Is = (e) => {
|
|
|
6166
6160
|
className: u(pe[`${ge}__content__inner`], {
|
|
6167
6161
|
[pe[`${ge}__content__inner--open`]]: a
|
|
6168
6162
|
}),
|
|
6169
|
-
style: { maxHeight: a ?
|
|
6170
|
-
children: /* @__PURE__ */ f("div", { ref:
|
|
6163
|
+
style: { maxHeight: a ? m : 0 },
|
|
6164
|
+
children: /* @__PURE__ */ f("div", { ref: d, children: [
|
|
6171
6165
|
/* @__PURE__ */ t(
|
|
6172
6166
|
A,
|
|
6173
6167
|
{
|
|
@@ -6176,7 +6170,7 @@ const Is = (e) => {
|
|
|
6176
6170
|
children: i
|
|
6177
6171
|
}
|
|
6178
6172
|
),
|
|
6179
|
-
/* @__PURE__ */ t("div", { className: pe[`${ge}__content__inner__cta`], children:
|
|
6173
|
+
/* @__PURE__ */ t("div", { className: pe[`${ge}__content__inner__cta`], children: s })
|
|
6180
6174
|
] })
|
|
6181
6175
|
}
|
|
6182
6176
|
)
|
|
@@ -6215,20 +6209,20 @@ const Is = (e) => {
|
|
|
6215
6209
|
onActiveChange: n,
|
|
6216
6210
|
placeholderClassName: i,
|
|
6217
6211
|
isCompleted: l = !1,
|
|
6218
|
-
completionMessageData:
|
|
6212
|
+
completionMessageData: s,
|
|
6219
6213
|
className: c
|
|
6220
6214
|
}) => {
|
|
6221
6215
|
var B;
|
|
6222
|
-
const [
|
|
6216
|
+
const [d, m] = g.useState(l), [p, v] = g.useState(!l), [h, b] = g.useState(void 0), y = g.useRef(null), C = s.height || 96, N = () => {
|
|
6223
6217
|
v(($) => !$);
|
|
6224
6218
|
};
|
|
6225
|
-
return
|
|
6226
|
-
const $ =
|
|
6219
|
+
return g.useEffect(() => {
|
|
6220
|
+
const $ = s.delay || 1500, S = y.current;
|
|
6227
6221
|
if (l && S) {
|
|
6228
6222
|
const w = S.offsetHeight;
|
|
6229
6223
|
b(w);
|
|
6230
6224
|
const x = setTimeout(() => {
|
|
6231
|
-
|
|
6225
|
+
m(!0), v(!1);
|
|
6232
6226
|
}, $);
|
|
6233
6227
|
return () => {
|
|
6234
6228
|
clearTimeout(x);
|
|
@@ -6241,15 +6235,15 @@ const Is = (e) => {
|
|
|
6241
6235
|
className: u(
|
|
6242
6236
|
ee[te],
|
|
6243
6237
|
{
|
|
6244
|
-
[ee[`${te}--complete`]]:
|
|
6238
|
+
[ee[`${te}--complete`]]: d && !p
|
|
6245
6239
|
},
|
|
6246
6240
|
c
|
|
6247
6241
|
),
|
|
6248
6242
|
style: {
|
|
6249
|
-
height: !
|
|
6243
|
+
height: !d || p ? h : C
|
|
6250
6244
|
},
|
|
6251
6245
|
children: [
|
|
6252
|
-
|
|
6246
|
+
p && /* @__PURE__ */ f(ne, { children: [
|
|
6253
6247
|
/* @__PURE__ */ f("div", { className: ee[`${te}__column`], children: [
|
|
6254
6248
|
/* @__PURE__ */ f("div", { className: ee[`${te}__header`], children: [
|
|
6255
6249
|
o && /* @__PURE__ */ t(
|
|
@@ -6298,12 +6292,12 @@ const Is = (e) => {
|
|
|
6298
6292
|
),
|
|
6299
6293
|
children: [
|
|
6300
6294
|
!l && /* @__PURE__ */ t("div", { className: ee[`${te}__placeholder`], children: (B = _.find(($) => $.id === e)) == null ? void 0 : B.placeholder }),
|
|
6301
|
-
l && /* @__PURE__ */ t("div", { className: ee[`${te}__placeholder`], children:
|
|
6295
|
+
l && /* @__PURE__ */ t("div", { className: ee[`${te}__placeholder`], children: s.placeholder })
|
|
6302
6296
|
]
|
|
6303
6297
|
}
|
|
6304
6298
|
)
|
|
6305
6299
|
] }),
|
|
6306
|
-
!
|
|
6300
|
+
!p && /* @__PURE__ */ t(ne, { children: /* @__PURE__ */ f("div", { className: ee[`${te}__complete`], children: [
|
|
6307
6301
|
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
6308
6302
|
P,
|
|
6309
6303
|
{
|
|
@@ -6313,12 +6307,12 @@ const Is = (e) => {
|
|
|
6313
6307
|
}
|
|
6314
6308
|
) }),
|
|
6315
6309
|
/* @__PURE__ */ f("div", { children: [
|
|
6316
|
-
(
|
|
6310
|
+
(s == null ? void 0 : s.greetingText) && /* @__PURE__ */ t(
|
|
6317
6311
|
A,
|
|
6318
6312
|
{
|
|
6319
6313
|
size: "lg",
|
|
6320
6314
|
className: ee[`${te}__complete__label`],
|
|
6321
|
-
children:
|
|
6315
|
+
children: s.greetingText
|
|
6322
6316
|
}
|
|
6323
6317
|
),
|
|
6324
6318
|
/* @__PURE__ */ t(
|
|
@@ -6326,28 +6320,28 @@ const Is = (e) => {
|
|
|
6326
6320
|
{
|
|
6327
6321
|
size: "sm",
|
|
6328
6322
|
className: ee[`${te}__complete__title`],
|
|
6329
|
-
children:
|
|
6323
|
+
children: s.title
|
|
6330
6324
|
}
|
|
6331
6325
|
)
|
|
6332
6326
|
] })
|
|
6333
6327
|
] }) }),
|
|
6334
|
-
|
|
6335
|
-
|
|
6328
|
+
d && /* @__PURE__ */ t(
|
|
6329
|
+
j,
|
|
6336
6330
|
{
|
|
6337
|
-
kind:
|
|
6331
|
+
kind: p ? "float" : "text",
|
|
6338
6332
|
icon: /* @__PURE__ */ t(
|
|
6339
6333
|
P,
|
|
6340
6334
|
{
|
|
6341
6335
|
source: Ht,
|
|
6342
6336
|
className: u(
|
|
6343
6337
|
ee[`${te}__button__icon`],
|
|
6344
|
-
|
|
6338
|
+
p && ee[`${te}__button__icon--open`]
|
|
6345
6339
|
)
|
|
6346
6340
|
}
|
|
6347
6341
|
),
|
|
6348
6342
|
className: ee[`${te}__button`],
|
|
6349
6343
|
onClick: N,
|
|
6350
|
-
"aria-expanded":
|
|
6344
|
+
"aria-expanded": p
|
|
6351
6345
|
}
|
|
6352
6346
|
)
|
|
6353
6347
|
]
|
|
@@ -6364,27 +6358,27 @@ const Is = (e) => {
|
|
|
6364
6358
|
triggerClassName: n,
|
|
6365
6359
|
placement: i,
|
|
6366
6360
|
flipOptions: l,
|
|
6367
|
-
offsetSize:
|
|
6361
|
+
offsetSize: s = 4,
|
|
6368
6362
|
isVisible: c,
|
|
6369
|
-
openedOnInit:
|
|
6370
|
-
closeOnEsc:
|
|
6371
|
-
useDismissHookProps:
|
|
6363
|
+
openedOnInit: d,
|
|
6364
|
+
closeOnEsc: m = !0,
|
|
6365
|
+
useDismissHookProps: p,
|
|
6372
6366
|
useClickHookProps: v,
|
|
6373
6367
|
floatingStrategy: h
|
|
6374
6368
|
}) => {
|
|
6375
|
-
const [b, y] =
|
|
6369
|
+
const [b, y] = g.useState(d), C = cr(), N = Ba(), B = c !== void 0, $ = B ? c : b, S = typeof o == "string", w = typeof e == "function", x = (Oe, at) => {
|
|
6376
6370
|
Oe ? r == null || r(at) : a == null || a(at), !B && y(Oe);
|
|
6377
6371
|
}, { refs: I, context: R, floatingStyles: G } = Ea({
|
|
6378
6372
|
nodeId: N,
|
|
6379
6373
|
open: $,
|
|
6380
6374
|
onOpenChange: x,
|
|
6381
|
-
middleware: [Ia(
|
|
6375
|
+
middleware: [Ia(s), sr(l), Vr()],
|
|
6382
6376
|
placement: i,
|
|
6383
6377
|
strategy: h,
|
|
6384
6378
|
whileElementsMounted: Ta
|
|
6385
6379
|
}), T = Aa(R, v), D = Da(R, k({
|
|
6386
|
-
escapeKey:
|
|
6387
|
-
},
|
|
6380
|
+
escapeKey: m
|
|
6381
|
+
}, p)), z = Pa(R), { getReferenceProps: ie, getFloatingProps: V } = Fa([
|
|
6388
6382
|
T,
|
|
6389
6383
|
D,
|
|
6390
6384
|
z
|
|
@@ -6424,7 +6418,7 @@ const Is = (e) => {
|
|
|
6424
6418
|
"product-tile__icon": "lc-ProductTile-module__product-tile__icon___IQqzd",
|
|
6425
6419
|
"product-tile__icon--large": "lc-ProductTile-module__product-tile__icon--large___Ta9v0",
|
|
6426
6420
|
"product-tile__icon--expired": "lc-ProductTile-module__product-tile__icon--expired___5PbNr"
|
|
6427
|
-
},
|
|
6421
|
+
}, gt = "product-tile", a_ = ({
|
|
6428
6422
|
icon: e,
|
|
6429
6423
|
iconColor: a,
|
|
6430
6424
|
expired: r,
|
|
@@ -6445,14 +6439,14 @@ const Is = (e) => {
|
|
|
6445
6439
|
/* @__PURE__ */ t(
|
|
6446
6440
|
"div",
|
|
6447
6441
|
{
|
|
6448
|
-
className: Re[`${
|
|
6442
|
+
className: Re[`${gt}__third-layer`],
|
|
6449
6443
|
style: { background: o.third }
|
|
6450
6444
|
}
|
|
6451
6445
|
),
|
|
6452
6446
|
/* @__PURE__ */ t(
|
|
6453
6447
|
"div",
|
|
6454
6448
|
{
|
|
6455
|
-
className: Re[`${
|
|
6449
|
+
className: Re[`${gt}__second-layer`],
|
|
6456
6450
|
style: { background: o.second }
|
|
6457
6451
|
}
|
|
6458
6452
|
)
|
|
@@ -6460,8 +6454,8 @@ const Is = (e) => {
|
|
|
6460
6454
|
/* @__PURE__ */ f(
|
|
6461
6455
|
"div",
|
|
6462
6456
|
{
|
|
6463
|
-
className: u(Re[
|
|
6464
|
-
[Re[`${
|
|
6457
|
+
className: u(Re[gt], {
|
|
6458
|
+
[Re[`${gt}__main-product`]]: l
|
|
6465
6459
|
}),
|
|
6466
6460
|
style: {
|
|
6467
6461
|
background: r ? "var(--surface-moderate-default)" : o.main,
|
|
@@ -6473,8 +6467,8 @@ const Is = (e) => {
|
|
|
6473
6467
|
{
|
|
6474
6468
|
size: "compact",
|
|
6475
6469
|
count: n,
|
|
6476
|
-
className: u(Re[`${
|
|
6477
|
-
[Re[`${
|
|
6470
|
+
className: u(Re[`${gt}__badge`], {
|
|
6471
|
+
[Re[`${gt}__badge--bordered`]]: l
|
|
6478
6472
|
})
|
|
6479
6473
|
}
|
|
6480
6474
|
) : null,
|
|
@@ -6482,9 +6476,9 @@ const Is = (e) => {
|
|
|
6482
6476
|
P,
|
|
6483
6477
|
{
|
|
6484
6478
|
source: e,
|
|
6485
|
-
className: u(Re[`${
|
|
6486
|
-
[Re[`${
|
|
6487
|
-
[Re[`${
|
|
6479
|
+
className: u(Re[`${gt}__icon`], {
|
|
6480
|
+
[Re[`${gt}__icon--large`]]: l,
|
|
6481
|
+
[Re[`${gt}__icon--expired`]]: r
|
|
6488
6482
|
}),
|
|
6489
6483
|
customColor: a
|
|
6490
6484
|
}
|
|
@@ -6514,17 +6508,17 @@ const Is = (e) => {
|
|
|
6514
6508
|
notificationCount: n,
|
|
6515
6509
|
name: i,
|
|
6516
6510
|
url: l,
|
|
6517
|
-
withDivider:
|
|
6511
|
+
withDivider: s,
|
|
6518
6512
|
shortcutKey: c,
|
|
6519
|
-
expired:
|
|
6520
|
-
trialDaysLeft:
|
|
6521
|
-
nameAdornment:
|
|
6513
|
+
expired: d,
|
|
6514
|
+
trialDaysLeft: m,
|
|
6515
|
+
nameAdornment: p
|
|
6522
6516
|
},
|
|
6523
6517
|
onClick: v,
|
|
6524
6518
|
isActive: h = !1,
|
|
6525
6519
|
isDarkMode: b
|
|
6526
6520
|
}) => /* @__PURE__ */ f(ne, { children: [
|
|
6527
|
-
|
|
6521
|
+
s && /* @__PURE__ */ t("div", { className: We[`${Ke}__divider`] }),
|
|
6528
6522
|
/* @__PURE__ */ f(
|
|
6529
6523
|
"a",
|
|
6530
6524
|
{
|
|
@@ -6533,7 +6527,7 @@ const Is = (e) => {
|
|
|
6533
6527
|
"aria-label": `Go to ${i} product`,
|
|
6534
6528
|
onClick: (y) => v(y, e),
|
|
6535
6529
|
className: u(We[Ke], {
|
|
6536
|
-
[We[`${Ke}--expired`]]:
|
|
6530
|
+
[We[`${Ke}--expired`]]: d
|
|
6537
6531
|
}),
|
|
6538
6532
|
children: [
|
|
6539
6533
|
/* @__PURE__ */ f("div", { className: We[`${Ke}__heading`], children: [
|
|
@@ -6542,7 +6536,7 @@ const Is = (e) => {
|
|
|
6542
6536
|
{
|
|
6543
6537
|
icon: a,
|
|
6544
6538
|
iconColor: r,
|
|
6545
|
-
expired:
|
|
6539
|
+
expired: d,
|
|
6546
6540
|
backgroundColors: o,
|
|
6547
6541
|
borderColor: _,
|
|
6548
6542
|
notificationCount: n,
|
|
@@ -6551,7 +6545,7 @@ const Is = (e) => {
|
|
|
6551
6545
|
),
|
|
6552
6546
|
/* @__PURE__ */ f(A, { as: "div", bold: !0, className: We[`${Ke}__name`], children: [
|
|
6553
6547
|
i,
|
|
6554
|
-
|
|
6548
|
+
d && /* @__PURE__ */ t(
|
|
6555
6549
|
Ut,
|
|
6556
6550
|
{
|
|
6557
6551
|
className: u({
|
|
@@ -6568,7 +6562,7 @@ const Is = (e) => {
|
|
|
6568
6562
|
children: "Your licence is expired."
|
|
6569
6563
|
}
|
|
6570
6564
|
),
|
|
6571
|
-
typeof
|
|
6565
|
+
typeof m != "undefined" && /* @__PURE__ */ f(
|
|
6572
6566
|
Ut,
|
|
6573
6567
|
{
|
|
6574
6568
|
className: u(We[`${Ke}__trial-tooltip`], {
|
|
@@ -6583,14 +6577,14 @@ const Is = (e) => {
|
|
|
6583
6577
|
),
|
|
6584
6578
|
placement: "right",
|
|
6585
6579
|
children: [
|
|
6586
|
-
|
|
6580
|
+
m,
|
|
6587
6581
|
" ",
|
|
6588
|
-
_r(
|
|
6582
|
+
_r(m, "day", "days"),
|
|
6589
6583
|
" left in your trial. Time to upgrade."
|
|
6590
6584
|
]
|
|
6591
6585
|
}
|
|
6592
6586
|
),
|
|
6593
|
-
|
|
6587
|
+
p
|
|
6594
6588
|
] })
|
|
6595
6589
|
] }),
|
|
6596
6590
|
c && /* @__PURE__ */ f(A, { size: "sm", className: We[`${Ke}__shortcut`], children: [
|
|
@@ -6615,19 +6609,19 @@ const Is = (e) => {
|
|
|
6615
6609
|
onOpen: n,
|
|
6616
6610
|
onClose: i,
|
|
6617
6611
|
onSelect: l,
|
|
6618
|
-
textURL:
|
|
6612
|
+
textURL: s = "https://www.text.com"
|
|
6619
6613
|
}) => {
|
|
6620
|
-
const [c,
|
|
6614
|
+
const [c, d] = g.useState(r), [m, p] = Jt(
|
|
6621
6615
|
!1
|
|
6622
6616
|
), v = cr(), h = Ba(), b = o !== void 0, y = b ? o : c, C = (H, K) => {
|
|
6623
|
-
H ? n == null || n(K) : i == null || i(K), !b &&
|
|
6617
|
+
H ? n == null || n(K) : i == null || i(K), !b && d(H);
|
|
6624
6618
|
}, { refs: N, context: B, floatingStyles: $ } = Ea({
|
|
6625
6619
|
nodeId: h,
|
|
6626
6620
|
strategy: "fixed",
|
|
6627
6621
|
placement: "right-start",
|
|
6628
6622
|
open: y,
|
|
6629
6623
|
onOpenChange: (H, K) => {
|
|
6630
|
-
|
|
6624
|
+
p(!1), C(H, K);
|
|
6631
6625
|
},
|
|
6632
6626
|
middleware: [Ia({ mainAxis: 5 })],
|
|
6633
6627
|
whileElementsMounted: Ta
|
|
@@ -6650,7 +6644,7 @@ const Is = (e) => {
|
|
|
6650
6644
|
if (!D)
|
|
6651
6645
|
return null;
|
|
6652
6646
|
const z = (H, K) => {
|
|
6653
|
-
K === a && H.preventDefault(),
|
|
6647
|
+
K === a && H.preventDefault(), d(!1), l == null || l(K);
|
|
6654
6648
|
}, ie = e.reduce(
|
|
6655
6649
|
(H, K) => H + (K.notificationCount || 0),
|
|
6656
6650
|
0
|
|
@@ -6658,9 +6652,9 @@ const Is = (e) => {
|
|
|
6658
6652
|
/* @__PURE__ */ t("div", E(k({ ref: N.setReference }, G()), { children: /* @__PURE__ */ t(
|
|
6659
6653
|
Ut,
|
|
6660
6654
|
{
|
|
6661
|
-
isVisible:
|
|
6662
|
-
onOpen: () =>
|
|
6663
|
-
onClose: () =>
|
|
6655
|
+
isVisible: m,
|
|
6656
|
+
onOpen: () => p(!0),
|
|
6657
|
+
onClose: () => p(!1),
|
|
6664
6658
|
offsetCrossAxis: 2,
|
|
6665
6659
|
arrowOffsetY: 2,
|
|
6666
6660
|
offsetMainAxis: 10,
|
|
@@ -6711,7 +6705,7 @@ const Is = (e) => {
|
|
|
6711
6705
|
/* @__PURE__ */ t("div", { className: fa[`${ba}__footer`], children: /* @__PURE__ */ f(
|
|
6712
6706
|
"a",
|
|
6713
6707
|
{
|
|
6714
|
-
href:
|
|
6708
|
+
href: s,
|
|
6715
6709
|
target: "_blank",
|
|
6716
6710
|
className: fa[`${ba}__footer-link`],
|
|
6717
6711
|
onClick: () => C(!1),
|
|
@@ -6952,15 +6946,15 @@ const Is = (e) => {
|
|
|
6952
6946
|
}, Kl = (e, a) => zl.includes(e) || a.some(
|
|
6953
6947
|
(r) => r.product === jr[e]
|
|
6954
6948
|
), Yl = (e, a, r, o, _, n) => {
|
|
6955
|
-
var l,
|
|
6949
|
+
var l, s, c, d, m;
|
|
6956
6950
|
const i = a.find(
|
|
6957
|
-
(
|
|
6951
|
+
(p) => p.product === jr[e.id]
|
|
6958
6952
|
);
|
|
6959
6953
|
if (!i)
|
|
6960
6954
|
throw new Error(`Product data for ${e.id} not found`);
|
|
6961
6955
|
return E(k({}, e), {
|
|
6962
|
-
trialDaysLeft: r[e.id] && ((l = r[e.id]) == null ? void 0 : l.status) === "trial" && ((
|
|
6963
|
-
expired: ((
|
|
6956
|
+
trialDaysLeft: r[e.id] && ((l = r[e.id]) == null ? void 0 : l.status) === "trial" && ((s = r[e.id]) != null && s.next_charge_at) ? Wl((d = (c = r[e.id]) == null ? void 0 : c.next_charge_at) != null ? d : "") : void 0,
|
|
6957
|
+
expired: ((m = r[e.id]) == null ? void 0 : m.status) === "expired",
|
|
6964
6958
|
url: Vl(
|
|
6965
6959
|
i.clientId,
|
|
6966
6960
|
i.redirectUri,
|
|
@@ -7033,7 +7027,7 @@ const va = {
|
|
|
7033
7027
|
small: 15,
|
|
7034
7028
|
medium: 36,
|
|
7035
7029
|
large: 56
|
|
7036
|
-
}, ka = "progress-circle", Ql =
|
|
7030
|
+
}, ka = "progress-circle", Ql = g.forwardRef(
|
|
7037
7031
|
(i, n) => {
|
|
7038
7032
|
var l = i, {
|
|
7039
7033
|
status: e = "normal",
|
|
@@ -7046,21 +7040,21 @@ const va = {
|
|
|
7046
7040
|
"className",
|
|
7047
7041
|
"size"
|
|
7048
7042
|
]);
|
|
7049
|
-
const
|
|
7043
|
+
const s = __(e, a), c = ql[o], d = jl[o], m = u(
|
|
7050
7044
|
va[ka],
|
|
7051
7045
|
{
|
|
7052
7046
|
[va[`${ka}--${o}`]]: o,
|
|
7053
7047
|
[va[`${ka}--${e}`]]: e
|
|
7054
7048
|
},
|
|
7055
7049
|
r
|
|
7056
|
-
),
|
|
7057
|
-
strokeDasharray:
|
|
7058
|
-
strokeDashoffset: `${((100 -
|
|
7059
|
-
}, h = `${
|
|
7050
|
+
), p = 2 * Math.PI * ((d - c) / 2), v = {
|
|
7051
|
+
strokeDasharray: p.toFixed(3),
|
|
7052
|
+
strokeDashoffset: `${((100 - s) / 100 * p).toFixed(3)}px`
|
|
7053
|
+
}, h = `${d / 2} ${d / 2} ${d} ${d}`;
|
|
7060
7054
|
return /* @__PURE__ */ t(
|
|
7061
7055
|
"div",
|
|
7062
7056
|
E(k({
|
|
7063
|
-
className:
|
|
7057
|
+
className: m,
|
|
7064
7058
|
ref: n,
|
|
7065
7059
|
role: "progressbar"
|
|
7066
7060
|
}, _), {
|
|
@@ -7069,9 +7063,9 @@ const va = {
|
|
|
7069
7063
|
"circle",
|
|
7070
7064
|
{
|
|
7071
7065
|
className: va[`${ka}__bg-line--${e}`],
|
|
7072
|
-
cx:
|
|
7073
|
-
cy:
|
|
7074
|
-
r: (
|
|
7066
|
+
cx: d,
|
|
7067
|
+
cy: d,
|
|
7068
|
+
r: (d - c) / 2,
|
|
7075
7069
|
fill: "none",
|
|
7076
7070
|
strokeWidth: c
|
|
7077
7071
|
}
|
|
@@ -7081,9 +7075,9 @@ const va = {
|
|
|
7081
7075
|
{
|
|
7082
7076
|
className: va[`${ka}__indicator--${e}`],
|
|
7083
7077
|
style: v,
|
|
7084
|
-
cx:
|
|
7085
|
-
cy:
|
|
7086
|
-
r: (
|
|
7078
|
+
cx: d,
|
|
7079
|
+
cy: d,
|
|
7080
|
+
r: (d - c) / 2,
|
|
7087
7081
|
fill: "none",
|
|
7088
7082
|
strokeWidth: c
|
|
7089
7083
|
}
|
|
@@ -7102,7 +7096,7 @@ const va = {
|
|
|
7102
7096
|
"progress-bar--normal": "lc-ProgressBar-module__progress-bar--normal___WboRI",
|
|
7103
7097
|
"progress-bar__indicator--success": "lc-ProgressBar-module__progress-bar__indicator--success___MHAlN",
|
|
7104
7098
|
"progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___sjEAI"
|
|
7105
|
-
}, Ja = "progress-bar", Jl =
|
|
7099
|
+
}, Ja = "progress-bar", Jl = g.forwardRef(
|
|
7106
7100
|
(i, n) => {
|
|
7107
7101
|
var l = i, {
|
|
7108
7102
|
status: e = "normal",
|
|
@@ -7115,7 +7109,7 @@ const va = {
|
|
|
7115
7109
|
"size",
|
|
7116
7110
|
"className"
|
|
7117
7111
|
]);
|
|
7118
|
-
const
|
|
7112
|
+
const s = __(e, a), c = u(
|
|
7119
7113
|
Qa[Ja],
|
|
7120
7114
|
{
|
|
7121
7115
|
[Qa[`${Ja}--${r}`]]: r,
|
|
@@ -7134,7 +7128,7 @@ const va = {
|
|
|
7134
7128
|
{
|
|
7135
7129
|
"data-testid": "progress-bar-indicator",
|
|
7136
7130
|
className: Qa[`${Ja}__indicator--${e}`],
|
|
7137
|
-
style: { width: `${
|
|
7131
|
+
style: { width: `${s}%` }
|
|
7138
7132
|
}
|
|
7139
7133
|
)
|
|
7140
7134
|
})
|
|
@@ -7161,20 +7155,20 @@ const va = {
|
|
|
7161
7155
|
light: n = !1,
|
|
7162
7156
|
linkText: i,
|
|
7163
7157
|
onButtonClick: l,
|
|
7164
|
-
onClose:
|
|
7158
|
+
onClose: s,
|
|
7165
7159
|
onLinkClick: c
|
|
7166
7160
|
}) => {
|
|
7167
|
-
const
|
|
7161
|
+
const d = g.useRef(null), [m, p] = g.useState("medium"), v = u(
|
|
7168
7162
|
Ye[Xe],
|
|
7169
7163
|
{
|
|
7170
7164
|
[Ye[`${Xe}--light`]]: n,
|
|
7171
|
-
[Ye[`${Xe}--small`]]:
|
|
7172
|
-
[Ye[`${Xe}--large`]]:
|
|
7165
|
+
[Ye[`${Xe}--small`]]: m === "small",
|
|
7166
|
+
[Ye[`${Xe}--large`]]: m === "large"
|
|
7173
7167
|
},
|
|
7174
7168
|
e
|
|
7175
7169
|
);
|
|
7176
|
-
|
|
7177
|
-
const b = () =>
|
|
7170
|
+
g.useEffect(() => {
|
|
7171
|
+
const b = () => d.current && d.current.offsetWidth <= ec ? p("small") : d.current && d.current.offsetWidth >= tc ? p("large") : p("medium"), y = Fo(
|
|
7178
7172
|
b,
|
|
7179
7173
|
ac
|
|
7180
7174
|
);
|
|
@@ -7184,7 +7178,7 @@ const va = {
|
|
|
7184
7178
|
}, []);
|
|
7185
7179
|
const h = /* @__PURE__ */ f("div", { className: Ye[`${Xe}__footer`], children: [
|
|
7186
7180
|
a && /* @__PURE__ */ t(
|
|
7187
|
-
|
|
7181
|
+
j,
|
|
7188
7182
|
{
|
|
7189
7183
|
kind: "primary",
|
|
7190
7184
|
size: "compact",
|
|
@@ -7193,24 +7187,24 @@ const va = {
|
|
|
7193
7187
|
children: a
|
|
7194
7188
|
}
|
|
7195
7189
|
),
|
|
7196
|
-
i && /* @__PURE__ */ t(
|
|
7190
|
+
i && /* @__PURE__ */ t(j, { size: "compact", kind: "text", onClick: c, children: i })
|
|
7197
7191
|
] });
|
|
7198
|
-
return /* @__PURE__ */ f("div", { ref:
|
|
7192
|
+
return /* @__PURE__ */ f("div", { ref: d, className: v, children: [
|
|
7199
7193
|
/* @__PURE__ */ f("div", { className: Ye[`${Xe}__content`], children: [
|
|
7200
7194
|
_ && /* @__PURE__ */ t("img", { src: _, className: Ye[`${Xe}__img`] }),
|
|
7201
7195
|
/* @__PURE__ */ f("div", { className: Ye[`${Xe}__wrapper`], children: [
|
|
7202
7196
|
/* @__PURE__ */ t("div", { className: Ye[`${Xe}__header`], children: o }),
|
|
7203
7197
|
/* @__PURE__ */ t(A, { as: "div", children: r }),
|
|
7204
|
-
|
|
7198
|
+
m !== "large" && h
|
|
7205
7199
|
] }),
|
|
7206
|
-
|
|
7200
|
+
m === "large" && h
|
|
7207
7201
|
] }),
|
|
7208
|
-
|
|
7202
|
+
s && /* @__PURE__ */ t(
|
|
7209
7203
|
"button",
|
|
7210
7204
|
{
|
|
7211
7205
|
type: "button",
|
|
7212
7206
|
className: Ye[`${Xe}__close-icon`],
|
|
7213
|
-
onClick:
|
|
7207
|
+
onClick: s,
|
|
7214
7208
|
children: /* @__PURE__ */ t(P, { source: Me, size: "large", kind: "primary" })
|
|
7215
7209
|
}
|
|
7216
7210
|
)
|
|
@@ -7226,7 +7220,7 @@ const va = {
|
|
|
7226
7220
|
"promo-banner-v2__close__btn": "lc-PromoBannerV2-module__promo-banner-v2__close__btn___23Qui",
|
|
7227
7221
|
"promo-banner-v2--dark": "lc-PromoBannerV2-module__promo-banner-v2--dark___pmXpS",
|
|
7228
7222
|
"promo-banner-v2--vertical": "lc-PromoBannerV2-module__promo-banner-v2--vertical___hXlPD"
|
|
7229
|
-
},
|
|
7223
|
+
}, ht = "promo-banner-v2", Zs = ({
|
|
7230
7224
|
children: e,
|
|
7231
7225
|
className: a,
|
|
7232
7226
|
additionalContent: r,
|
|
@@ -7235,33 +7229,33 @@ const va = {
|
|
|
7235
7229
|
vertical: n,
|
|
7236
7230
|
contentClassName: i,
|
|
7237
7231
|
additionalContentClassName: l,
|
|
7238
|
-
onClose:
|
|
7232
|
+
onClose: s,
|
|
7239
7233
|
kind: c = "default"
|
|
7240
7234
|
}) => {
|
|
7241
|
-
const
|
|
7235
|
+
const d = u(
|
|
7242
7236
|
nt["main-wrapper"],
|
|
7243
|
-
nt[`${
|
|
7237
|
+
nt[`${ht}--${c}`],
|
|
7244
7238
|
c === "dark" && Dt.Dark,
|
|
7245
7239
|
a
|
|
7246
7240
|
);
|
|
7247
|
-
return /* @__PURE__ */ t("div", { role: "banner", className:
|
|
7241
|
+
return /* @__PURE__ */ t("div", { role: "banner", className: d, children: /* @__PURE__ */ f(
|
|
7248
7242
|
"div",
|
|
7249
7243
|
{
|
|
7250
7244
|
className: u(
|
|
7251
|
-
nt[
|
|
7252
|
-
n && nt[`${
|
|
7245
|
+
nt[ht],
|
|
7246
|
+
n && nt[`${ht}--vertical`]
|
|
7253
7247
|
),
|
|
7254
7248
|
children: [
|
|
7255
7249
|
/* @__PURE__ */ f(
|
|
7256
7250
|
"div",
|
|
7257
7251
|
{
|
|
7258
7252
|
"data-testId": "content",
|
|
7259
|
-
className: u(nt[`${
|
|
7253
|
+
className: u(nt[`${ht}__content`], i),
|
|
7260
7254
|
children: [
|
|
7261
7255
|
e,
|
|
7262
|
-
(o || _) && /* @__PURE__ */ f("div", { className: nt[`${
|
|
7256
|
+
(o || _) && /* @__PURE__ */ f("div", { className: nt[`${ht}__content__cta`], children: [
|
|
7263
7257
|
o && /* @__PURE__ */ t(
|
|
7264
|
-
|
|
7258
|
+
j,
|
|
7265
7259
|
E(k({}, o), {
|
|
7266
7260
|
kind: (o == null ? void 0 : o.kind) || "high-contrast",
|
|
7267
7261
|
onClick: o.handleClick,
|
|
@@ -7269,12 +7263,12 @@ const va = {
|
|
|
7269
7263
|
})
|
|
7270
7264
|
),
|
|
7271
7265
|
_ && /* @__PURE__ */ t(
|
|
7272
|
-
|
|
7266
|
+
j,
|
|
7273
7267
|
E(k({}, _), {
|
|
7274
7268
|
kind: (_ == null ? void 0 : _.kind) || "text",
|
|
7275
7269
|
onClick: _.handleClick,
|
|
7276
7270
|
className: u(
|
|
7277
|
-
nt[`${
|
|
7271
|
+
nt[`${ht}__content__cta__secondary`],
|
|
7278
7272
|
_.className
|
|
7279
7273
|
),
|
|
7280
7274
|
children: _.label
|
|
@@ -7289,17 +7283,17 @@ const va = {
|
|
|
7289
7283
|
{
|
|
7290
7284
|
"data-testId": "additional-content",
|
|
7291
7285
|
className: u(
|
|
7292
|
-
nt[`${
|
|
7286
|
+
nt[`${ht}__additional-content`],
|
|
7293
7287
|
l
|
|
7294
7288
|
),
|
|
7295
7289
|
children: r
|
|
7296
7290
|
}
|
|
7297
7291
|
),
|
|
7298
|
-
|
|
7299
|
-
|
|
7292
|
+
s && /* @__PURE__ */ t("div", { className: nt[`${ht}__close`], children: /* @__PURE__ */ t(
|
|
7293
|
+
j,
|
|
7300
7294
|
{
|
|
7301
|
-
className: nt[`${
|
|
7302
|
-
onClick:
|
|
7295
|
+
className: nt[`${ht}__close__btn`],
|
|
7296
|
+
onClick: s,
|
|
7303
7297
|
icon: /* @__PURE__ */ t(P, { source: Me, kind: "primary" }),
|
|
7304
7298
|
kind: "plain",
|
|
7305
7299
|
size: "compact"
|
|
@@ -7308,7 +7302,7 @@ const va = {
|
|
|
7308
7302
|
]
|
|
7309
7303
|
}
|
|
7310
7304
|
) });
|
|
7311
|
-
},
|
|
7305
|
+
}, ft = {
|
|
7312
7306
|
"radio-button": "lc-RadioButton-module__radio-button___PtGXj",
|
|
7313
7307
|
"radio-button__circle": "lc-RadioButton-module__radio-button__circle___-RXEf",
|
|
7314
7308
|
"radio-button__label": "lc-RadioButton-module__radio-button__label___WGhio",
|
|
@@ -7318,21 +7312,21 @@ const va = {
|
|
|
7318
7312
|
"radio-button__helper": "lc-RadioButton-module__radio-button__helper___X4Ihv",
|
|
7319
7313
|
"radio-button--selected": "lc-RadioButton-module__radio-button--selected___00LlN",
|
|
7320
7314
|
"radio-button--disabled": "lc-RadioButton-module__radio-button--disabled___StpOi"
|
|
7321
|
-
},
|
|
7315
|
+
}, bt = "radio-button", qs = g.forwardRef(
|
|
7322
7316
|
(l, i) => {
|
|
7323
|
-
var
|
|
7324
|
-
const c = u(bt
|
|
7325
|
-
[
|
|
7326
|
-
[
|
|
7317
|
+
var s = l, { children: e, className: a = "", description: r, checked: o, disabled: _ } = s, n = F(s, ["children", "className", "description", "checked", "disabled"]);
|
|
7318
|
+
const c = u(ft[bt], a, {
|
|
7319
|
+
[ft[`${bt}--selected`]]: o,
|
|
7320
|
+
[ft[`${bt}--disabled`]]: _
|
|
7327
7321
|
});
|
|
7328
7322
|
return /* @__PURE__ */ f("div", { className: c, children: [
|
|
7329
|
-
/* @__PURE__ */ f("label", { className:
|
|
7330
|
-
/* @__PURE__ */ f("div", { className:
|
|
7331
|
-
/* @__PURE__ */ t("span", { className:
|
|
7323
|
+
/* @__PURE__ */ f("label", { className: ft[`${bt}__label`], children: [
|
|
7324
|
+
/* @__PURE__ */ f("div", { className: ft[`${bt}__circle`], children: [
|
|
7325
|
+
/* @__PURE__ */ t("span", { className: ft[`${bt}__inner-circle`] }),
|
|
7332
7326
|
/* @__PURE__ */ t(
|
|
7333
7327
|
"input",
|
|
7334
7328
|
E(k({}, n), {
|
|
7335
|
-
className:
|
|
7329
|
+
className: ft[`${bt}__input`],
|
|
7336
7330
|
ref: i,
|
|
7337
7331
|
type: "radio",
|
|
7338
7332
|
checked: o,
|
|
@@ -7340,9 +7334,9 @@ const va = {
|
|
|
7340
7334
|
})
|
|
7341
7335
|
)
|
|
7342
7336
|
] }),
|
|
7343
|
-
e && /* @__PURE__ */ t(A, { as: "div", size: "md", className:
|
|
7337
|
+
e && /* @__PURE__ */ t(A, { as: "div", size: "md", className: ft[`${bt}__text`], children: e })
|
|
7344
7338
|
] }),
|
|
7345
|
-
r && /* @__PURE__ */ t(ur, { className:
|
|
7339
|
+
r && /* @__PURE__ */ t(ur, { className: ft[`${bt}__helper`], children: r })
|
|
7346
7340
|
] });
|
|
7347
7341
|
}
|
|
7348
7342
|
), Ze = {
|
|
@@ -7359,9 +7353,9 @@ const va = {
|
|
|
7359
7353
|
"search-input__loader": "lc-SearchInput-module__search-input__loader___9veIC",
|
|
7360
7354
|
"search-input__input-wrapper": "lc-SearchInput-module__search-input__input-wrapper___9NT39",
|
|
7361
7355
|
"search-input__input-wrapper--crop": "lc-SearchInput-module__search-input__input-wrapper--crop___JA7J1"
|
|
7362
|
-
}, it = "search-input", Bo = `${it}__input-wrapper`, rc =
|
|
7363
|
-
(
|
|
7364
|
-
var
|
|
7356
|
+
}, it = "search-input", Bo = `${it}__input-wrapper`, rc = g.forwardRef(
|
|
7357
|
+
(m, d) => {
|
|
7358
|
+
var p = m, {
|
|
7365
7359
|
isCollapsable: e,
|
|
7366
7360
|
isDisabled: a,
|
|
7367
7361
|
isLoading: r,
|
|
@@ -7370,8 +7364,8 @@ const va = {
|
|
|
7370
7364
|
value: n,
|
|
7371
7365
|
className: i,
|
|
7372
7366
|
cropOnBlur: l = !0,
|
|
7373
|
-
onChange:
|
|
7374
|
-
} =
|
|
7367
|
+
onChange: s
|
|
7368
|
+
} = p, c = F(p, [
|
|
7375
7369
|
"isCollapsable",
|
|
7376
7370
|
"isDisabled",
|
|
7377
7371
|
"isLoading",
|
|
@@ -7382,9 +7376,9 @@ const va = {
|
|
|
7382
7376
|
"cropOnBlur",
|
|
7383
7377
|
"onChange"
|
|
7384
7378
|
]);
|
|
7385
|
-
const v =
|
|
7386
|
-
|
|
7387
|
-
const [h, b] =
|
|
7379
|
+
const v = g.useRef(null);
|
|
7380
|
+
g.useImperativeHandle(d, () => v.current, [d]);
|
|
7381
|
+
const [h, b] = g.useState(!0), [y, C] = g.useState(!1), N = !!n && !a && !r, B = e && !h && "true", $ = u(
|
|
7388
7382
|
i,
|
|
7389
7383
|
Ze[it],
|
|
7390
7384
|
Ze[`${it}--${_}`],
|
|
@@ -7393,14 +7387,14 @@ const va = {
|
|
|
7393
7387
|
e && Ze[`${it}--collapsable`],
|
|
7394
7388
|
!h && Ze[`${it}--collapsable--open`]
|
|
7395
7389
|
);
|
|
7396
|
-
|
|
7390
|
+
g.useEffect(() => {
|
|
7397
7391
|
e && n && b(!1);
|
|
7398
7392
|
}, [e, n]);
|
|
7399
7393
|
const S = (T) => {
|
|
7400
7394
|
const D = T.currentTarget.value;
|
|
7401
|
-
|
|
7395
|
+
s(D);
|
|
7402
7396
|
}, w = () => {
|
|
7403
|
-
|
|
7397
|
+
s("");
|
|
7404
7398
|
}, x = () => {
|
|
7405
7399
|
v.current && v.current.focus();
|
|
7406
7400
|
}, I = () => {
|
|
@@ -7408,7 +7402,7 @@ const va = {
|
|
|
7408
7402
|
}, R = () => {
|
|
7409
7403
|
e && !n && b(!0), C(!1);
|
|
7410
7404
|
}, G = (T) => {
|
|
7411
|
-
T.key === ke.enter && (T.preventDefault(),
|
|
7405
|
+
T.key === ke.enter && (T.preventDefault(), s(n));
|
|
7412
7406
|
};
|
|
7413
7407
|
return /* @__PURE__ */ f(
|
|
7414
7408
|
"div",
|
|
@@ -7453,7 +7447,7 @@ const va = {
|
|
|
7453
7447
|
}
|
|
7454
7448
|
),
|
|
7455
7449
|
N && /* @__PURE__ */ t(
|
|
7456
|
-
|
|
7450
|
+
j,
|
|
7457
7451
|
{
|
|
7458
7452
|
"aria-label": "Clear search",
|
|
7459
7453
|
title: "Clear search",
|
|
@@ -7482,7 +7476,7 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7482
7476
|
"skeleton-text--animated": "lc-Skeleton-module__skeleton-text--animated___Bnr3Z"
|
|
7483
7477
|
}, Eo = "skeleton-wrapper", js = (_) => {
|
|
7484
7478
|
var n = _, { children: e, vertical: a, animated: r } = n, o = F(n, ["children", "vertical", "animated"]);
|
|
7485
|
-
const i =
|
|
7479
|
+
const i = g.Children.map(e, (l) => g.isValidElement(l) ? g.cloneElement(l, {
|
|
7486
7480
|
animated: r
|
|
7487
7481
|
}) : l);
|
|
7488
7482
|
return /* @__PURE__ */ t(
|
|
@@ -7588,8 +7582,8 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7588
7582
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___XpfaO",
|
|
7589
7583
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___NDgeg",
|
|
7590
7584
|
switch__icon: sc
|
|
7591
|
-
}, _e = "switch", td = (
|
|
7592
|
-
var
|
|
7585
|
+
}, _e = "switch", td = (m) => {
|
|
7586
|
+
var p = m, {
|
|
7593
7587
|
className: e = "",
|
|
7594
7588
|
defaultOn: a = !1,
|
|
7595
7589
|
disabled: r = !1,
|
|
@@ -7598,9 +7592,9 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7598
7592
|
onChange: n,
|
|
7599
7593
|
size: i = "large",
|
|
7600
7594
|
state: l = "regular",
|
|
7601
|
-
innerRef:
|
|
7595
|
+
innerRef: s,
|
|
7602
7596
|
ariaLabel: c
|
|
7603
|
-
} =
|
|
7597
|
+
} = p, d = F(p, [
|
|
7604
7598
|
"className",
|
|
7605
7599
|
"defaultOn",
|
|
7606
7600
|
"disabled",
|
|
@@ -7612,9 +7606,9 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7612
7606
|
"innerRef",
|
|
7613
7607
|
"ariaLabel"
|
|
7614
7608
|
]);
|
|
7615
|
-
const v = _ !== void 0, [h, b] =
|
|
7609
|
+
const v = _ !== void 0, [h, b] = g.useState(
|
|
7616
7610
|
() => v ? _ : a
|
|
7617
|
-
), [y, C] =
|
|
7611
|
+
), [y, C] = g.useState(!1), N = v ? _ : h, B = l === "loading", $ = l === "locked", S = i === "large" ? "small" : "xsmall", w = N ? "on" : "off", x = r || B || $, I = x ? "disabled" : "enabled", R = u(
|
|
7618
7612
|
le[_e],
|
|
7619
7613
|
le[`${_e}--${i}`],
|
|
7620
7614
|
{
|
|
@@ -7636,10 +7630,10 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7636
7630
|
onChange: G,
|
|
7637
7631
|
checked: N,
|
|
7638
7632
|
name: o,
|
|
7639
|
-
ref:
|
|
7633
|
+
ref: s,
|
|
7640
7634
|
disabled: x,
|
|
7641
7635
|
"aria-label": c
|
|
7642
|
-
},
|
|
7636
|
+
}, d), {
|
|
7643
7637
|
onFocus: () => C(!0),
|
|
7644
7638
|
onBlur: () => C(!1)
|
|
7645
7639
|
})
|
|
@@ -7708,8 +7702,8 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7708
7702
|
tab__badge: pc,
|
|
7709
7703
|
"tab--selected": "lc-Tab-module__tab--selected___vsPhT",
|
|
7710
7704
|
"tab--disabled": "lc-Tab-module__tab--disabled___JPMHC"
|
|
7711
|
-
}, Ot = "tab", ad = (
|
|
7712
|
-
var c =
|
|
7705
|
+
}, Ot = "tab", ad = (s) => {
|
|
7706
|
+
var c = s, {
|
|
7713
7707
|
children: e,
|
|
7714
7708
|
className: a,
|
|
7715
7709
|
count: r,
|
|
@@ -7726,7 +7720,7 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7726
7720
|
"size",
|
|
7727
7721
|
"icon"
|
|
7728
7722
|
]);
|
|
7729
|
-
const { disabled:
|
|
7723
|
+
const { disabled: d } = l, m = r !== void 0 && !_, p = r !== void 0 && _;
|
|
7730
7724
|
return /* @__PURE__ */ f(
|
|
7731
7725
|
A,
|
|
7732
7726
|
E(k({}, l), {
|
|
@@ -7739,17 +7733,17 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7739
7733
|
Mt[Ot],
|
|
7740
7734
|
Mt[`${Ot}--${n}`],
|
|
7741
7735
|
o && Mt[`${Ot}--selected`],
|
|
7742
|
-
|
|
7736
|
+
d && Mt[`${Ot}--disabled`]
|
|
7743
7737
|
),
|
|
7744
7738
|
children: [
|
|
7745
7739
|
i && /* @__PURE__ */ t("div", { "data-testId": "icon", className: Mt[`${Ot}__icon`], children: i }),
|
|
7746
7740
|
e,
|
|
7747
|
-
|
|
7741
|
+
m && /* @__PURE__ */ f(A, { as: "span", size: "md", className: Mt[`${Ot}__count`], children: [
|
|
7748
7742
|
"(",
|
|
7749
7743
|
r,
|
|
7750
7744
|
")"
|
|
7751
7745
|
] }),
|
|
7752
|
-
|
|
7746
|
+
p && /* @__PURE__ */ t(
|
|
7753
7747
|
rr,
|
|
7754
7748
|
{
|
|
7755
7749
|
"data-testid": "tab-badge",
|
|
@@ -7779,10 +7773,10 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7779
7773
|
remove: _,
|
|
7780
7774
|
value: n
|
|
7781
7775
|
}) => {
|
|
7782
|
-
const [i, l] =
|
|
7783
|
-
const h =
|
|
7776
|
+
const [i, l] = g.useState(!1), s = () => a.current, c = () => {
|
|
7777
|
+
const h = s();
|
|
7784
7778
|
return h ? h.innerText : "";
|
|
7785
|
-
},
|
|
7779
|
+
}, d = () => {
|
|
7786
7780
|
r && r.current && r.current.focus();
|
|
7787
7781
|
};
|
|
7788
7782
|
return /* @__PURE__ */ t(
|
|
@@ -7797,7 +7791,7 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7797
7791
|
document.execCommand("insertHTML", !1, ao(b));
|
|
7798
7792
|
},
|
|
7799
7793
|
onBlur: () => {
|
|
7800
|
-
const h =
|
|
7794
|
+
const h = s();
|
|
7801
7795
|
if (!(i || !h)) {
|
|
7802
7796
|
if (h.innerText === "") {
|
|
7803
7797
|
_();
|
|
@@ -7808,10 +7802,10 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7808
7802
|
},
|
|
7809
7803
|
onKeyDown: (h) => {
|
|
7810
7804
|
if (h.key === ke.enter) {
|
|
7811
|
-
h.preventDefault(),
|
|
7805
|
+
h.preventDefault(), d();
|
|
7812
7806
|
return;
|
|
7813
7807
|
}
|
|
7814
|
-
h.key === ke.backspace && c() === "" && (l(!0), _(),
|
|
7808
|
+
h.key === ke.backspace && c() === "" && (l(!0), _(), d());
|
|
7815
7809
|
},
|
|
7816
7810
|
dangerouslySetInnerHTML: { __html: ao(n) }
|
|
7817
7811
|
}
|
|
@@ -7826,16 +7820,16 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7826
7820
|
size: i,
|
|
7827
7821
|
tagProps: l
|
|
7828
7822
|
}) => {
|
|
7829
|
-
const
|
|
7830
|
-
return /* @__PURE__ */ t(qo, E(k({ size: i }, l), { kind:
|
|
7823
|
+
const s = g.useMemo(() => o !== void 0 ? o(e) : !0, [e, o]), c = g.useRef(null), d = () => r(a), m = () => s ? l ? l.kind : "default" : "error";
|
|
7824
|
+
return /* @__PURE__ */ t(qo, E(k({ size: i }, l), { kind: m(), onRemove: d, children: /* @__PURE__ */ t(
|
|
7831
7825
|
fc,
|
|
7832
7826
|
{
|
|
7833
7827
|
value: e,
|
|
7834
7828
|
inputRef: _,
|
|
7835
7829
|
innerEditableRef: c,
|
|
7836
7830
|
className: Ca[`${bc}__content`],
|
|
7837
|
-
change: (
|
|
7838
|
-
remove:
|
|
7831
|
+
change: (p) => n(a, p),
|
|
7832
|
+
remove: d,
|
|
7839
7833
|
validator: o
|
|
7840
7834
|
}
|
|
7841
7835
|
) }));
|
|
@@ -7845,8 +7839,8 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7845
7839
|
ke.tab,
|
|
7846
7840
|
ke.semicolon,
|
|
7847
7841
|
ke.comma
|
|
7848
|
-
], kc = [ke.backspace, ke.delete], yc = (
|
|
7849
|
-
var v =
|
|
7842
|
+
], kc = [ke.backspace, ke.delete], yc = (p) => {
|
|
7843
|
+
var v = p, {
|
|
7850
7844
|
id: e,
|
|
7851
7845
|
tags: a,
|
|
7852
7846
|
onChange: r,
|
|
@@ -7855,10 +7849,10 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7855
7849
|
placeholder: n,
|
|
7856
7850
|
size: i = "medium",
|
|
7857
7851
|
className: l,
|
|
7858
|
-
inputClassName:
|
|
7852
|
+
inputClassName: s,
|
|
7859
7853
|
onBlur: c,
|
|
7860
|
-
addOnBlur:
|
|
7861
|
-
} = v,
|
|
7854
|
+
addOnBlur: d = !0
|
|
7855
|
+
} = v, m = F(v, [
|
|
7862
7856
|
"id",
|
|
7863
7857
|
"tags",
|
|
7864
7858
|
"onChange",
|
|
@@ -7878,10 +7872,10 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7878
7872
|
},
|
|
7879
7873
|
l
|
|
7880
7874
|
), b = u(
|
|
7881
|
-
|
|
7875
|
+
s,
|
|
7882
7876
|
Ca[`${er}__input`],
|
|
7883
7877
|
Ca[`${er}__input--${i}`]
|
|
7884
|
-
), [y, C] =
|
|
7878
|
+
), [y, C] = g.useState(""), N = g.useRef(null), B = (T) => {
|
|
7885
7879
|
T.trim() !== "" && (r([...a || [], T]), C(""));
|
|
7886
7880
|
}, $ = (T) => {
|
|
7887
7881
|
const D = [...a || []];
|
|
@@ -7897,7 +7891,7 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7897
7891
|
$(a.length - 1);
|
|
7898
7892
|
}
|
|
7899
7893
|
}, x = (T) => {
|
|
7900
|
-
|
|
7894
|
+
d && B(y), c == null || c(T);
|
|
7901
7895
|
}, I = (T, D) => {
|
|
7902
7896
|
const z = [...a || []];
|
|
7903
7897
|
z.reduce(
|
|
@@ -7939,7 +7933,7 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
7939
7933
|
a == null ? void 0 : a.map(G),
|
|
7940
7934
|
/* @__PURE__ */ t(
|
|
7941
7935
|
"input",
|
|
7942
|
-
E(k({},
|
|
7936
|
+
E(k({}, m), {
|
|
7943
7937
|
id: e,
|
|
7944
7938
|
ref: N,
|
|
7945
7939
|
className: b,
|
|
@@ -8005,14 +7999,14 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8005
7999
|
source: Na
|
|
8006
8000
|
}
|
|
8007
8001
|
}, At = "toast", Ic = (l) => {
|
|
8008
|
-
var
|
|
8002
|
+
var s = l, {
|
|
8009
8003
|
action: e,
|
|
8010
8004
|
className: a,
|
|
8011
8005
|
children: r,
|
|
8012
8006
|
removable: o,
|
|
8013
8007
|
kind: _ = "info",
|
|
8014
8008
|
onClose: n
|
|
8015
|
-
} =
|
|
8009
|
+
} = s, i = F(s, [
|
|
8016
8010
|
"action",
|
|
8017
8011
|
"className",
|
|
8018
8012
|
"children",
|
|
@@ -8024,18 +8018,18 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8024
8018
|
ce[At],
|
|
8025
8019
|
ce[`${At}--${_}`],
|
|
8026
8020
|
a
|
|
8027
|
-
),
|
|
8021
|
+
), d = typeof r == "string", m = (p) => p && p.closesOnClick && n ? (p.onClick(), n()) : p.onClick();
|
|
8028
8022
|
return /* @__PURE__ */ f("div", E(k({ className: c }, i), { children: [
|
|
8029
8023
|
/* @__PURE__ */ t("div", { className: ce[`${At}__icon`], children: /* @__PURE__ */ t(P, E(k({}, Ec[_]), { size: "medium" })) }),
|
|
8030
|
-
/* @__PURE__ */ t("div", { className: ce[`${At}__content`], children:
|
|
8024
|
+
/* @__PURE__ */ t("div", { className: ce[`${At}__content`], children: d ? /* @__PURE__ */ t(A, { as: "div", children: r }) : r }),
|
|
8031
8025
|
(e || o) && /* @__PURE__ */ f("div", { className: ce[`${At}__actions`], children: [
|
|
8032
8026
|
e && /* @__PURE__ */ t(
|
|
8033
|
-
|
|
8027
|
+
j,
|
|
8034
8028
|
{
|
|
8035
8029
|
className: ce[`${At}__actions--custom`],
|
|
8036
8030
|
kind: "text",
|
|
8037
8031
|
size: "compact",
|
|
8038
|
-
onClick: () =>
|
|
8032
|
+
onClick: () => m(e),
|
|
8039
8033
|
children: e.label
|
|
8040
8034
|
}
|
|
8041
8035
|
),
|
|
@@ -8072,7 +8066,7 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8072
8066
|
},
|
|
8073
8067
|
e
|
|
8074
8068
|
);
|
|
8075
|
-
return /* @__PURE__ */ t("div", { className: l, children: /* @__PURE__ */ t(Ro, { component: null, children: a.map(({ id:
|
|
8069
|
+
return /* @__PURE__ */ t("div", { className: l, children: /* @__PURE__ */ t(Ro, { component: null, children: a.map(({ id: s, kind: c, content: d, removable: m, action: p, onClose: v }) => /* @__PURE__ */ t(
|
|
8076
8070
|
Mo,
|
|
8077
8071
|
{
|
|
8078
8072
|
classNames: {
|
|
@@ -8087,37 +8081,37 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8087
8081
|
{
|
|
8088
8082
|
kind: c,
|
|
8089
8083
|
onClose: v,
|
|
8090
|
-
removable:
|
|
8091
|
-
action:
|
|
8092
|
-
children:
|
|
8084
|
+
removable: m,
|
|
8085
|
+
action: p,
|
|
8086
|
+
children: d
|
|
8093
8087
|
}
|
|
8094
8088
|
)
|
|
8095
8089
|
},
|
|
8096
|
-
|
|
8090
|
+
s
|
|
8097
8091
|
)) }) });
|
|
8098
8092
|
}, Ac = "lc-Textarea-module__textarea___yE6jp", tr = {
|
|
8099
8093
|
textarea: Ac,
|
|
8100
8094
|
"textarea--focused": "lc-Textarea-module__textarea--focused___YnB5S",
|
|
8101
8095
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___zZJAq",
|
|
8102
8096
|
"textarea--error": "lc-Textarea-module__textarea--error___n-fD5"
|
|
8103
|
-
}, ar = "textarea", id =
|
|
8097
|
+
}, ar = "textarea", id = g.forwardRef(
|
|
8104
8098
|
(_, o) => {
|
|
8105
8099
|
var n = _, { className: e, error: a } = n, r = F(n, ["className", "error"]);
|
|
8106
|
-
const { disabled: i, onBlur: l, onFocus:
|
|
8100
|
+
const { disabled: i, onBlur: l, onFocus: s } = r, [c, d] = g.useState(!1), m = u(e, tr[ar], {
|
|
8107
8101
|
[tr[`${ar}--disabled`]]: i,
|
|
8108
8102
|
[tr[`${ar}--focused`]]: c,
|
|
8109
8103
|
[tr[`${ar}--error`]]: a
|
|
8110
|
-
}),
|
|
8111
|
-
|
|
8104
|
+
}), p = (h) => {
|
|
8105
|
+
d(!1), l == null || l(h);
|
|
8112
8106
|
}, v = (h) => {
|
|
8113
|
-
|
|
8107
|
+
d(!0), s == null || s(h);
|
|
8114
8108
|
};
|
|
8115
|
-
return /* @__PURE__ */ t(A, { as: "div", className:
|
|
8109
|
+
return /* @__PURE__ */ t(A, { as: "div", className: m, children: /* @__PURE__ */ t(
|
|
8116
8110
|
"textarea",
|
|
8117
8111
|
E(k({}, r), {
|
|
8118
8112
|
ref: o,
|
|
8119
8113
|
onFocus: v,
|
|
8120
|
-
onBlur:
|
|
8114
|
+
onBlur: p
|
|
8121
8115
|
})
|
|
8122
8116
|
) });
|
|
8123
8117
|
}
|
|
@@ -8159,7 +8153,7 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8159
8153
|
"file-upload-progress__wrapper__header__title": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title___EYxE3",
|
|
8160
8154
|
"file-upload-progress__wrapper__header__title--success": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--success___P0XSe",
|
|
8161
8155
|
"file-upload-progress__wrapper__header__title--error": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--error___la8oa"
|
|
8162
|
-
},
|
|
8156
|
+
}, vt = "file-upload-progress", Dr = `${vt}__wrapper__header__title`, Fc = g.forwardRef(
|
|
8163
8157
|
({
|
|
8164
8158
|
actionsVisibility: e = "hidden",
|
|
8165
8159
|
className: a,
|
|
@@ -8169,15 +8163,15 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8169
8163
|
size: n,
|
|
8170
8164
|
status: i = "normal",
|
|
8171
8165
|
onCloseButtonClick: l,
|
|
8172
|
-
onRetryButtonClick:
|
|
8173
|
-
}, c) => /* @__PURE__ */ f("div", { className: qe[
|
|
8174
|
-
r && i !== "success" && /* @__PURE__ */ t("div", { className: qe[`${
|
|
8166
|
+
onRetryButtonClick: s
|
|
8167
|
+
}, c) => /* @__PURE__ */ f("div", { className: qe[vt], ref: c, children: [
|
|
8168
|
+
r && i !== "success" && /* @__PURE__ */ t("div", { className: qe[`${vt}__icon`], children: r }),
|
|
8175
8169
|
i === "success" && /* @__PURE__ */ t(
|
|
8176
8170
|
"div",
|
|
8177
8171
|
{
|
|
8178
8172
|
className: u(
|
|
8179
|
-
qe[`${
|
|
8180
|
-
qe[`${
|
|
8173
|
+
qe[`${vt}__icon`],
|
|
8174
|
+
qe[`${vt}__icon--success`]
|
|
8181
8175
|
),
|
|
8182
8176
|
children: /* @__PURE__ */ t(P, { source: Sa })
|
|
8183
8177
|
}
|
|
@@ -8185,11 +8179,11 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8185
8179
|
/* @__PURE__ */ f(
|
|
8186
8180
|
"div",
|
|
8187
8181
|
{
|
|
8188
|
-
className: u(qe[`${
|
|
8189
|
-
[qe[`${
|
|
8182
|
+
className: u(qe[`${vt}__wrapper`], {
|
|
8183
|
+
[qe[`${vt}__wrapper--with-icon`]]: r
|
|
8190
8184
|
}),
|
|
8191
8185
|
children: [
|
|
8192
|
-
/* @__PURE__ */ f("div", { className: qe[`${
|
|
8186
|
+
/* @__PURE__ */ f("div", { className: qe[`${vt}__wrapper__header`], children: [
|
|
8193
8187
|
o && /* @__PURE__ */ t(
|
|
8194
8188
|
"div",
|
|
8195
8189
|
{
|
|
@@ -8204,14 +8198,14 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8204
8198
|
"div",
|
|
8205
8199
|
{
|
|
8206
8200
|
className: u({
|
|
8207
|
-
[qe[`${
|
|
8201
|
+
[qe[`${vt}__wrapper__header__actions`]]: e === "hover"
|
|
8208
8202
|
}),
|
|
8209
8203
|
children: /* @__PURE__ */ t(
|
|
8210
8204
|
Gr,
|
|
8211
8205
|
{
|
|
8212
8206
|
status: i,
|
|
8213
8207
|
onCloseButtonClick: l,
|
|
8214
|
-
onRetryButtonClick:
|
|
8208
|
+
onRetryButtonClick: s
|
|
8215
8209
|
}
|
|
8216
8210
|
)
|
|
8217
8211
|
}
|
|
@@ -8230,7 +8224,7 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8230
8224
|
}
|
|
8231
8225
|
)
|
|
8232
8226
|
] })
|
|
8233
|
-
),
|
|
8227
|
+
), q = {
|
|
8234
8228
|
"upload-bar": "lc-UploadBar-module__upload-bar___0ZOP3",
|
|
8235
8229
|
"upload-bar__loader-test": "lc-UploadBar-module__upload-bar__loader-test___4QKID",
|
|
8236
8230
|
"upload-bar--error": "lc-UploadBar-module__upload-bar--error___83It3",
|
|
@@ -8251,24 +8245,24 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8251
8245
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___-N5nJ",
|
|
8252
8246
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___C3au9",
|
|
8253
8247
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___95G7b"
|
|
8254
|
-
}, Ne = "upload-bar",
|
|
8248
|
+
}, Ne = "upload-bar", wt = `${Ne}__wrapper__header`, Rc = 300, Mc = (e, a) => e === "success" ? /* @__PURE__ */ t(
|
|
8255
8249
|
"div",
|
|
8256
8250
|
{
|
|
8257
8251
|
"data-testid": "success-icon",
|
|
8258
|
-
className:
|
|
8252
|
+
className: q[`${wt}__success-icon`],
|
|
8259
8253
|
children: /* @__PURE__ */ t(P, { source: Sa })
|
|
8260
8254
|
}
|
|
8261
8255
|
) : e === "error" ? /* @__PURE__ */ t(
|
|
8262
8256
|
"div",
|
|
8263
8257
|
{
|
|
8264
8258
|
"data-testid": "error-icon",
|
|
8265
|
-
className:
|
|
8259
|
+
className: q[`${wt}__error-icon`],
|
|
8266
8260
|
children: /* @__PURE__ */ t(P, { source: O_ })
|
|
8267
8261
|
}
|
|
8268
8262
|
) : /* @__PURE__ */ t(
|
|
8269
8263
|
Ql,
|
|
8270
8264
|
{
|
|
8271
|
-
className:
|
|
8265
|
+
className: q[`${wt}__loader`],
|
|
8272
8266
|
status: e,
|
|
8273
8267
|
progressValue: a
|
|
8274
8268
|
}
|
|
@@ -8281,76 +8275,76 @@ const oc = "lc-Skeleton-module__loading___fc1WK", Lt = {
|
|
|
8281
8275
|
errorMessage: n,
|
|
8282
8276
|
status: i = "normal",
|
|
8283
8277
|
icon: l,
|
|
8284
|
-
size:
|
|
8278
|
+
size: s,
|
|
8285
8279
|
mode: c = "multiple",
|
|
8286
|
-
onCloseButtonClick:
|
|
8287
|
-
onRetryButtonClick:
|
|
8280
|
+
onCloseButtonClick: d,
|
|
8281
|
+
onRetryButtonClick: m
|
|
8288
8282
|
}) => {
|
|
8289
|
-
const [
|
|
8290
|
-
[
|
|
8291
|
-
[
|
|
8292
|
-
}), C = !(h && (
|
|
8293
|
-
return c === "single" ? /* @__PURE__ */ t("div", { className: y, children: /* @__PURE__ */ f("div", { className:
|
|
8294
|
-
/* @__PURE__ */ t("div", { className:
|
|
8283
|
+
const [p, v] = g.useState(_ || !1), h = i === "error", b = i === "success", y = u(q[Ne], a, {
|
|
8284
|
+
[q[`${Ne}--error`]]: h,
|
|
8285
|
+
[q[`${Ne}--success`]]: b
|
|
8286
|
+
}), C = !(h && (m || d)), N = () => v(!p);
|
|
8287
|
+
return c === "single" ? /* @__PURE__ */ t("div", { className: y, children: /* @__PURE__ */ f("div", { className: q[`${Ne}__wrapper`], children: [
|
|
8288
|
+
/* @__PURE__ */ t("div", { className: q[`${wt}`], children: /* @__PURE__ */ t(
|
|
8295
8289
|
Fc,
|
|
8296
8290
|
{
|
|
8297
8291
|
title: h && n || o,
|
|
8298
8292
|
progressValue: r,
|
|
8299
8293
|
status: i,
|
|
8300
8294
|
icon: l,
|
|
8301
|
-
size:
|
|
8295
|
+
size: s
|
|
8302
8296
|
}
|
|
8303
8297
|
) }),
|
|
8304
8298
|
i === "error" && /* @__PURE__ */ t(
|
|
8305
8299
|
Gr,
|
|
8306
8300
|
{
|
|
8307
8301
|
status: i,
|
|
8308
|
-
onCloseButtonClick:
|
|
8309
|
-
onRetryButtonClick:
|
|
8302
|
+
onCloseButtonClick: d,
|
|
8303
|
+
onRetryButtonClick: m
|
|
8310
8304
|
}
|
|
8311
8305
|
)
|
|
8312
8306
|
] }) }) : /* @__PURE__ */ f("div", { className: y, children: [
|
|
8313
8307
|
/* @__PURE__ */ t(
|
|
8314
8308
|
"div",
|
|
8315
8309
|
{
|
|
8316
|
-
className:
|
|
8310
|
+
className: q[`${Ne}__wrapper`],
|
|
8317
8311
|
onClick: N,
|
|
8318
|
-
children: /* @__PURE__ */ f("div", { className:
|
|
8319
|
-
/* @__PURE__ */ t("div", { className:
|
|
8320
|
-
/* @__PURE__ */ t("div", { className:
|
|
8312
|
+
children: /* @__PURE__ */ f("div", { className: q[`${wt}`], children: [
|
|
8313
|
+
/* @__PURE__ */ t("div", { className: q[`${wt}__icon`], children: Mc(i, r) }),
|
|
8314
|
+
/* @__PURE__ */ t("div", { className: q[`${wt}__title`], children: /* @__PURE__ */ t(A, { size: "sm", as: "div", children: h ? n : o }) }),
|
|
8321
8315
|
C && /* @__PURE__ */ t(
|
|
8322
8316
|
"button",
|
|
8323
8317
|
{
|
|
8324
|
-
className:
|
|
8318
|
+
className: q[`${wt}__collapse-button`],
|
|
8325
8319
|
type: "button",
|
|
8326
8320
|
"aria-label": "Collapse button",
|
|
8327
8321
|
onClick: N,
|
|
8328
|
-
children:
|
|
8322
|
+
children: p ? /* @__PURE__ */ t(P, { source: lr }) : /* @__PURE__ */ t(P, { source: Ht })
|
|
8329
8323
|
}
|
|
8330
8324
|
),
|
|
8331
|
-
i === "error" && /* @__PURE__ */ t("div", { className:
|
|
8325
|
+
i === "error" && /* @__PURE__ */ t("div", { className: q[`${wt}__actions-container`], children: /* @__PURE__ */ t(
|
|
8332
8326
|
Gr,
|
|
8333
8327
|
{
|
|
8334
8328
|
status: i,
|
|
8335
|
-
onCloseButtonClick:
|
|
8336
|
-
onRetryButtonClick:
|
|
8329
|
+
onCloseButtonClick: d,
|
|
8330
|
+
onRetryButtonClick: m
|
|
8337
8331
|
}
|
|
8338
8332
|
) })
|
|
8339
8333
|
] })
|
|
8340
8334
|
}
|
|
8341
8335
|
),
|
|
8342
|
-
/* @__PURE__ */ t(Ro, { component: null, children:
|
|
8336
|
+
/* @__PURE__ */ t(Ro, { component: null, children: p && /* @__PURE__ */ t(
|
|
8343
8337
|
Mo,
|
|
8344
8338
|
{
|
|
8345
8339
|
timeout: Rc,
|
|
8346
8340
|
classNames: {
|
|
8347
|
-
enter:
|
|
8348
|
-
enterActive:
|
|
8349
|
-
exit:
|
|
8350
|
-
exitActive:
|
|
8351
|
-
exitDone:
|
|
8341
|
+
enter: q[`${Ne}__files--enter`],
|
|
8342
|
+
enterActive: q[`${Ne}__files--enter-active`],
|
|
8343
|
+
exit: q[`${Ne}__files--exit`],
|
|
8344
|
+
exitActive: q[`${Ne}__files--exit-active`],
|
|
8345
|
+
exitDone: q[`${Ne}__files--exit-done`]
|
|
8352
8346
|
},
|
|
8353
|
-
children: /* @__PURE__ */ t("div", { className:
|
|
8347
|
+
children: /* @__PURE__ */ t("div", { className: q[`${Ne}__files`], children: /* @__PURE__ */ t("div", { className: q[`${Ne}__files-wrapper`], children: /* @__PURE__ */ t("div", { className: q[`${Ne}__files__list`], children: e }) }) })
|
|
8354
8348
|
}
|
|
8355
8349
|
) })
|
|
8356
8350
|
] });
|
|
@@ -8374,7 +8368,7 @@ export {
|
|
|
8374
8368
|
Ss as AutoComplete,
|
|
8375
8369
|
Jo as Avatar,
|
|
8376
8370
|
rr as Badge,
|
|
8377
|
-
|
|
8371
|
+
j as Button,
|
|
8378
8372
|
Es as Card,
|
|
8379
8373
|
$i as Checkbox,
|
|
8380
8374
|
ul as DatePicker,
|