@livechat/design-system-react-components 1.33.8-beta.2 → 1.34.0
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/ProductSwitcher/components/ProductRow/ProductRow.d.ts +1 -1
- package/dist/components/ProductSwitcher/helpers.d.ts +5 -5
- package/dist/components/ProductSwitcher/hooks/useProductSwitcher.d.ts +4 -3
- package/dist/components/ProductSwitcher/types.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +905 -907
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var N_ = Object.defineProperty, S_ = Object.defineProperties;
|
|
2
|
+
var x_ = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var va = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var Qa = (t, a, r) => a in t ?
|
|
4
|
+
var Br = Object.prototype.hasOwnProperty, Ir = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Qa = (t, a, r) => a in t ? N_(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, k = (t, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
Br.call(a, r) && Qa(t, r, a[r]);
|
|
8
8
|
if (va)
|
|
9
9
|
for (var r of va(a))
|
|
10
|
-
|
|
10
|
+
Ir.call(a, r) && Qa(t, r, a[r]);
|
|
11
11
|
return t;
|
|
12
|
-
}, T = (t, a) =>
|
|
12
|
+
}, T = (t, a) => S_(t, x_(a));
|
|
13
13
|
var D = (t, a) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var _ in t)
|
|
16
|
-
|
|
16
|
+
Br.call(t, _) && a.indexOf(_) < 0 && (r[_] = t[_]);
|
|
17
17
|
if (t != null && va)
|
|
18
18
|
for (var _ of va(t))
|
|
19
|
-
a.indexOf(_) < 0 &&
|
|
19
|
+
a.indexOf(_) < 0 && Ir.call(t, _) && (r[_] = t[_]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
22
|
var er = (t, a, r) => (Qa(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
|
-
import { useReducer as
|
|
25
|
-
import { Check as ia, Close as Ie, ChevronDown as Ot, Info as ca, Warning as
|
|
24
|
+
import { useReducer as B_, useRef as I_, useEffect as Ft, useCallback as ka, useMemo as Ea, useState as T_ } from "react";
|
|
25
|
+
import { Check as ia, Close as Ie, ChevronDown as Ot, Info as ca, Warning as r_, CheckCircle as vr, Block as __, ChevronRight as La, Person as D_, ChevronUp as Oa, DoubleArrowLeft as P_, ChevronLeft as A_, DoubleArrowRight as F_, VisibilityOn as R_, VisibilityOff as M_, TextLogoFull as L_, LiveChatMono as O_, ChatBotMono as G_, HelpDeskMono as U_, KnowledgeBaseMono as H_, OpenWidgetMono as z_, HelloMono as W_, TextAccounts as V_, Search as K_, LockBlack as Y_, Refresh as q_, Error as Z_ } from "@livechat/design-system-icons";
|
|
26
26
|
import u from "clsx";
|
|
27
|
-
import { useFloatingParentNodeId as Ga, useFloatingNodeId as sa, useFloating as da, offset as ua, flip as Ua, size as
|
|
28
|
-
import * as
|
|
29
|
-
import { flushSync as
|
|
30
|
-
import
|
|
27
|
+
import { useFloatingParentNodeId as Ga, useFloatingNodeId as sa, useFloating as da, offset as ua, flip as Ua, size as o_, autoUpdate as ma, useClick as pa, useDismiss as ga, useRole as fa, useInteractions as ba, useTransitionStyles as kr, FloatingNode as ha, FloatingTree as Ha, shift as Er, arrow as X_, useHover as J_, safePolygon as j_, useFocus as Q_, useTransitionStatus as eo, FloatingArrow as to, FloatingPortal as l_, FloatingOverlay as ao, FloatingFocusManager as mr, useListNavigation as ro } from "@floating-ui/react";
|
|
28
|
+
import * as n_ from "react-dom";
|
|
29
|
+
import { flushSync as _o } from "react-dom";
|
|
30
|
+
import c_ from "lodash.debounce";
|
|
31
31
|
import { getContrast as yr } from "polished";
|
|
32
|
-
import
|
|
33
|
-
import { subMonths as Rt, differenceInCalendarMonths as
|
|
34
|
-
import { Virtuoso as
|
|
35
|
-
import
|
|
36
|
-
import { TransitionGroup as
|
|
32
|
+
import oo from "react-day-picker";
|
|
33
|
+
import { subMonths as Rt, differenceInCalendarMonths as Tr, addMonths as Dr, isSameMonth as pr, isSameDay as gr, isAfter as fr, differenceInCalendarDays as wr, isPast as lo } from "date-fns";
|
|
34
|
+
import { Virtuoso as no } from "react-virtuoso";
|
|
35
|
+
import Pr from "lodash.escape";
|
|
36
|
+
import { TransitionGroup as i_, CSSTransition as s_ } from "react-transition-group";
|
|
37
37
|
const Lc = {
|
|
38
38
|
/** @deprecated */
|
|
39
39
|
Background: "--background",
|
|
@@ -475,14 +475,14 @@ const Lc = {
|
|
|
475
475
|
Instant: "--delay-instant",
|
|
476
476
|
Moderate: "--delay-moderate",
|
|
477
477
|
Slow: "--delay-slow"
|
|
478
|
-
},
|
|
478
|
+
}, d_ = e.createContext(
|
|
479
479
|
void 0
|
|
480
|
-
),
|
|
481
|
-
const t = e.useContext(
|
|
480
|
+
), co = () => {
|
|
481
|
+
const t = e.useContext(d_);
|
|
482
482
|
if (!t)
|
|
483
483
|
throw new Error("useAppFrame must be used within a AppFrameProvider");
|
|
484
484
|
return t;
|
|
485
|
-
},
|
|
485
|
+
}, io = ({
|
|
486
486
|
children: t,
|
|
487
487
|
isSideNavigationVisible: a = !0
|
|
488
488
|
}) => {
|
|
@@ -493,7 +493,7 @@ const Lc = {
|
|
|
493
493
|
}),
|
|
494
494
|
[r, _]
|
|
495
495
|
);
|
|
496
|
-
return /* @__PURE__ */ e.createElement(
|
|
496
|
+
return /* @__PURE__ */ e.createElement(d_.Provider, { value: o }, t);
|
|
497
497
|
}, Vc = (t, a) => `color-mix(in srgb, var(${t}) ${a}, transparent)`, de = {
|
|
498
498
|
esc: "Escape",
|
|
499
499
|
enter: "Enter",
|
|
@@ -505,8 +505,8 @@ const Lc = {
|
|
|
505
505
|
comma: ",",
|
|
506
506
|
arrowUp: "ArrowUp",
|
|
507
507
|
arrowDown: "ArrowDown"
|
|
508
|
-
},
|
|
509
|
-
icon:
|
|
508
|
+
}, so = "lc-Icon-module__icon___tw31R", Ar = {
|
|
509
|
+
icon: so,
|
|
510
510
|
"icon--primary": "lc-Icon-module__icon--primary___JJnBV",
|
|
511
511
|
"icon--subtle": "lc-Icon-module__icon--subtle___sZIzL",
|
|
512
512
|
"icon--inverted": "lc-Icon-module__icon--inverted___zA9QC",
|
|
@@ -540,7 +540,7 @@ const Lc = {
|
|
|
540
540
|
"icon--disabled--action-warning": "lc-Icon-module__icon--disabled--action-warning___5VvCf",
|
|
541
541
|
"icon--disabled--action-neutral": "lc-Icon-module__icon--disabled--action-neutral___SxlyC",
|
|
542
542
|
"icon--disabled--lock-black": "lc-Icon-module__icon--disabled--lock-black___WJNua"
|
|
543
|
-
},
|
|
543
|
+
}, uo = {
|
|
544
544
|
xsmall: {
|
|
545
545
|
width: 12,
|
|
546
546
|
height: 12
|
|
@@ -569,7 +569,7 @@ const Lc = {
|
|
|
569
569
|
width: 64,
|
|
570
570
|
height: 64
|
|
571
571
|
}
|
|
572
|
-
},
|
|
572
|
+
}, Fr = "icon", x = (t) => {
|
|
573
573
|
const s = t, {
|
|
574
574
|
source: a,
|
|
575
575
|
size: r = "medium",
|
|
@@ -584,13 +584,13 @@ const Lc = {
|
|
|
584
584
|
"disabled",
|
|
585
585
|
"className",
|
|
586
586
|
"customColor"
|
|
587
|
-
]), d = e.createElement(a, k(k({},
|
|
587
|
+
]), d = e.createElement(a, k(k({}, uo[r]), n ? { color: n } : {})), i = u(
|
|
588
588
|
l,
|
|
589
|
-
|
|
590
|
-
_ &&
|
|
589
|
+
Ar[Fr],
|
|
590
|
+
_ && Ar[`${Fr}--${o ? "disabled--" : ""}${_}`]
|
|
591
591
|
);
|
|
592
592
|
return /* @__PURE__ */ e.createElement("span", T(k({}, c), { className: i }), d);
|
|
593
|
-
},
|
|
593
|
+
}, Ge = {
|
|
594
594
|
"heading-xl": "lc-Typography-module__heading-xl___nhr-6",
|
|
595
595
|
"heading-lg": "lc-Typography-module__heading-lg___XYF7l",
|
|
596
596
|
"heading-md": "lc-Typography-module__heading-md___wHOIs",
|
|
@@ -613,7 +613,7 @@ const Lc = {
|
|
|
613
613
|
"display-lg": "lc-Typography-module__display-lg___WKhIT",
|
|
614
614
|
"display-max": "lc-Typography-module__display-max___vR8yn",
|
|
615
615
|
"display--bold": "lc-Typography-module__display--bold___a1pLv"
|
|
616
|
-
},
|
|
616
|
+
}, mo = {
|
|
617
617
|
xl: "h1",
|
|
618
618
|
lg: "h2",
|
|
619
619
|
md: "h3",
|
|
@@ -641,13 +641,13 @@ const Lc = {
|
|
|
641
641
|
"textAlign"
|
|
642
642
|
]);
|
|
643
643
|
return e.createElement(
|
|
644
|
-
t ||
|
|
644
|
+
t || mo[a],
|
|
645
645
|
k({
|
|
646
646
|
className: u(
|
|
647
647
|
{
|
|
648
|
-
[
|
|
649
|
-
[
|
|
650
|
-
[
|
|
648
|
+
[Ge[`heading-${a}`]]: !0,
|
|
649
|
+
[Ge["heading-uppercase"]]: o,
|
|
650
|
+
[Ge["heading-bold"]]: l
|
|
651
651
|
},
|
|
652
652
|
_
|
|
653
653
|
),
|
|
@@ -683,18 +683,18 @@ const Lc = {
|
|
|
683
683
|
"textAlign",
|
|
684
684
|
"noMargin"
|
|
685
685
|
]);
|
|
686
|
-
const
|
|
686
|
+
const v = "paragraph";
|
|
687
687
|
return e.createElement(
|
|
688
688
|
t,
|
|
689
689
|
k({
|
|
690
690
|
className: u(
|
|
691
691
|
{
|
|
692
|
-
[
|
|
693
|
-
[
|
|
694
|
-
[
|
|
695
|
-
[
|
|
696
|
-
[
|
|
697
|
-
[
|
|
692
|
+
[Ge[`${v}-${a}`]]: !0,
|
|
693
|
+
[Ge[`${v}--bold`]]: o,
|
|
694
|
+
[Ge[`${v}--strike`]]: n,
|
|
695
|
+
[Ge[`${v}--underline`]]: l,
|
|
696
|
+
[Ge[`${v}--uppercase`]]: _ || r,
|
|
697
|
+
[Ge[`${v}--no-margin`]]: p
|
|
698
698
|
},
|
|
699
699
|
d
|
|
700
700
|
),
|
|
@@ -724,9 +724,9 @@ const Lc = {
|
|
|
724
724
|
t,
|
|
725
725
|
k({
|
|
726
726
|
className: u(
|
|
727
|
-
|
|
727
|
+
Ge[`display-${a}`],
|
|
728
728
|
{
|
|
729
|
-
[
|
|
729
|
+
[Ge["display--bold"]]: n
|
|
730
730
|
},
|
|
731
731
|
_
|
|
732
732
|
),
|
|
@@ -734,7 +734,7 @@ const Lc = {
|
|
|
734
734
|
}, c),
|
|
735
735
|
r
|
|
736
736
|
);
|
|
737
|
-
},
|
|
737
|
+
}, He = {
|
|
738
738
|
"action-menu": "lc-ActionMenu-module__action-menu___K2UwW",
|
|
739
739
|
"action-menu__trigger-button": "lc-ActionMenu-module__action-menu__trigger-button___tBrz5",
|
|
740
740
|
"action-menu__list": "lc-ActionMenu-module__action-menu__list___9pNUX",
|
|
@@ -746,8 +746,8 @@ const Lc = {
|
|
|
746
746
|
"action-menu__list__item__icon": "lc-ActionMenu-module__action-menu__list__item__icon___o3ePo",
|
|
747
747
|
"action-menu__list--with-footer": "lc-ActionMenu-module__action-menu__list--with-footer___ghTxL",
|
|
748
748
|
"action-menu__footer": "lc-ActionMenu-module__action-menu__footer___HxoOe"
|
|
749
|
-
},
|
|
750
|
-
var
|
|
749
|
+
}, ze = "action-menu", po = (v) => {
|
|
750
|
+
var h = v, {
|
|
751
751
|
className: t,
|
|
752
752
|
triggerClassName: a,
|
|
753
753
|
options: r,
|
|
@@ -762,7 +762,7 @@ const Lc = {
|
|
|
762
762
|
floatingStrategy: p,
|
|
763
763
|
selectedOptions: m,
|
|
764
764
|
footer: f
|
|
765
|
-
} =
|
|
765
|
+
} = h, b = D(h, [
|
|
766
766
|
"className",
|
|
767
767
|
"triggerClassName",
|
|
768
768
|
"options",
|
|
@@ -785,9 +785,9 @@ const Lc = {
|
|
|
785
785
|
middleware: [
|
|
786
786
|
ua(4),
|
|
787
787
|
Ua(c),
|
|
788
|
-
|
|
788
|
+
o_({
|
|
789
789
|
apply({ availableHeight: P }) {
|
|
790
|
-
|
|
790
|
+
_o(() => C(P));
|
|
791
791
|
}
|
|
792
792
|
})
|
|
793
793
|
],
|
|
@@ -796,12 +796,12 @@ const Lc = {
|
|
|
796
796
|
strategy: p,
|
|
797
797
|
onOpenChange: I,
|
|
798
798
|
whileElementsMounted: ma
|
|
799
|
-
}),
|
|
799
|
+
}), $e = pa(U), Ke = ga(U, {
|
|
800
800
|
enabled: G
|
|
801
|
-
}),
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
801
|
+
}), Ue = fa(U), { getReferenceProps: Ne, getFloatingProps: $t } = ba([
|
|
802
|
+
$e,
|
|
803
|
+
Ke,
|
|
804
|
+
Ue
|
|
805
805
|
]), { styles: ft } = kr(U, {
|
|
806
806
|
initial: ({ side: P }) => k({
|
|
807
807
|
opacity: 0
|
|
@@ -817,18 +817,18 @@ const Lc = {
|
|
|
817
817
|
}), Nt = (P) => {
|
|
818
818
|
var Ye, qe;
|
|
819
819
|
const V = g.current;
|
|
820
|
-
let
|
|
821
|
-
for (; (Ye = r[
|
|
822
|
-
if (
|
|
823
|
-
|
|
820
|
+
let ue = V + P;
|
|
821
|
+
for (; (Ye = r[ue]) != null && Ye.disabled || (qe = r[ue]) != null && qe.groupHeader; )
|
|
822
|
+
if (ue += P, ue === -1) {
|
|
823
|
+
ue = V;
|
|
824
824
|
break;
|
|
825
825
|
}
|
|
826
|
-
return
|
|
826
|
+
return ue;
|
|
827
827
|
}, bt = (P) => {
|
|
828
828
|
var Ye, qe;
|
|
829
829
|
g.current = Nt(P);
|
|
830
|
-
const V = (Ye = M.current) == null ? void 0 : Ye.children,
|
|
831
|
-
return
|
|
830
|
+
const V = (Ye = M.current) == null ? void 0 : Ye.children, ue = V && ((qe = V[g.current]) == null ? void 0 : qe.children[0]);
|
|
831
|
+
return ue == null ? void 0 : ue.focus();
|
|
832
832
|
}, lt = (P) => {
|
|
833
833
|
P.key === de.arrowUp && g.current > 0 && (P.preventDefault(), bt(-1)), P.key === de.arrowDown && g.current + 1 < r.length && (P.preventDefault(), bt(1));
|
|
834
834
|
};
|
|
@@ -844,7 +844,7 @@ const Lc = {
|
|
|
844
844
|
{
|
|
845
845
|
key: P.key,
|
|
846
846
|
role: "none",
|
|
847
|
-
className:
|
|
847
|
+
className: He[`${ze}__list__group-header`]
|
|
848
848
|
},
|
|
849
849
|
P.element
|
|
850
850
|
) : /* @__PURE__ */ e.createElement("li", { key: P.key, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
@@ -856,10 +856,10 @@ const Lc = {
|
|
|
856
856
|
disabled: P.disabled,
|
|
857
857
|
onClick: () => ht(V, P.onClick),
|
|
858
858
|
role: "menuitem",
|
|
859
|
-
className: u(
|
|
860
|
-
[
|
|
861
|
-
[
|
|
862
|
-
[
|
|
859
|
+
className: u(He[`${ze}__list__item`], {
|
|
860
|
+
[He[`${ze}__list__item--disabled`]]: P.disabled,
|
|
861
|
+
[He[`${ze}__list__item--with-divider`]]: P.withDivider,
|
|
862
|
+
[He[`${ze}__list__item--selected`]]: m == null ? void 0 : m.includes(P.key)
|
|
863
863
|
})
|
|
864
864
|
},
|
|
865
865
|
P.element,
|
|
@@ -867,7 +867,7 @@ const Lc = {
|
|
|
867
867
|
"div",
|
|
868
868
|
{
|
|
869
869
|
"data-testid": `${P.key}-selected-icon`,
|
|
870
|
-
className:
|
|
870
|
+
className: He[`${ze}__list__item__icon`]
|
|
871
871
|
},
|
|
872
872
|
/* @__PURE__ */ e.createElement(x, { source: ia, kind: "action-primary" })
|
|
873
873
|
)
|
|
@@ -885,7 +885,7 @@ const Lc = {
|
|
|
885
885
|
"div",
|
|
886
886
|
k({
|
|
887
887
|
ref: L.setFloating,
|
|
888
|
-
className: ze
|
|
888
|
+
className: He[ze],
|
|
889
889
|
style: k(k({
|
|
890
890
|
position: j,
|
|
891
891
|
top: Y != null ? Y : "",
|
|
@@ -896,9 +896,9 @@ const Lc = {
|
|
|
896
896
|
"ul",
|
|
897
897
|
T(k({}, b), {
|
|
898
898
|
className: u(
|
|
899
|
-
|
|
899
|
+
He[`${ze}__list`],
|
|
900
900
|
{
|
|
901
|
-
[
|
|
901
|
+
[He[`${ze}__list--with-footer`]]: f
|
|
902
902
|
},
|
|
903
903
|
t
|
|
904
904
|
),
|
|
@@ -912,7 +912,7 @@ const Lc = {
|
|
|
912
912
|
{
|
|
913
913
|
size: "sm",
|
|
914
914
|
as: "div",
|
|
915
|
-
className:
|
|
915
|
+
className: He[`${ze}__footer`]
|
|
916
916
|
},
|
|
917
917
|
f
|
|
918
918
|
)
|
|
@@ -924,7 +924,7 @@ const Lc = {
|
|
|
924
924
|
"action-menu-item__right-node": "lc-ActionMenuItem-module__action-menu-item__right-node___uq0Ym",
|
|
925
925
|
"action-menu-item__label": "lc-ActionMenuItem-module__action-menu-item__label___OgJ80",
|
|
926
926
|
"action-menu-item--warning": "lc-ActionMenuItem-module__action-menu-item--warning___DgeYg"
|
|
927
|
-
}, Ht = "action-menu-item",
|
|
927
|
+
}, Ht = "action-menu-item", go = ({ leftNode: t, rightNode: a, children: r, kind: _ }) => /* @__PURE__ */ e.createElement(
|
|
928
928
|
"div",
|
|
929
929
|
{
|
|
930
930
|
className: u(Ut[Ht], {
|
|
@@ -934,16 +934,16 @@ const Lc = {
|
|
|
934
934
|
t && /* @__PURE__ */ e.createElement("div", { className: Ut[`${Ht}__left-node`] }, t),
|
|
935
935
|
/* @__PURE__ */ e.createElement(B, { as: "div", className: Ut[`${Ht}__label`] }, r),
|
|
936
936
|
a && /* @__PURE__ */ e.createElement("div", { className: Ut[`${Ht}__right-node`] }, a)
|
|
937
|
-
),
|
|
938
|
-
loader:
|
|
939
|
-
loader__spinner:
|
|
937
|
+
), fo = "lc-Loader-module__loader___LRflD", bo = "lc-Loader-module__loader__spinner___l3C1g", ho = "lc-Loader-module__rotate___Tlni-", vo = "lc-Loader-module__loader__label___R74f6", zt = {
|
|
938
|
+
loader: fo,
|
|
939
|
+
loader__spinner: bo,
|
|
940
940
|
"loader__spinner--small": "lc-Loader-module__loader__spinner--small___dGFFt",
|
|
941
941
|
"loader__spinner--medium": "lc-Loader-module__loader__spinner--medium___J-ki0",
|
|
942
942
|
"loader__spinner--large": "lc-Loader-module__loader__spinner--large___Poqq7",
|
|
943
943
|
"loader__spinner-circle": "lc-Loader-module__loader__spinner-circle___ApBUO",
|
|
944
|
-
rotate:
|
|
945
|
-
loader__label:
|
|
946
|
-
},
|
|
944
|
+
rotate: ho,
|
|
945
|
+
loader__label: vo
|
|
946
|
+
}, u_ = "loader", Rr = `${u_}__spinner`, Cr = (n) => {
|
|
947
947
|
var c = n, {
|
|
948
948
|
primaryColor: t,
|
|
949
949
|
secondaryColor: a,
|
|
@@ -957,10 +957,10 @@ const Lc = {
|
|
|
957
957
|
"className",
|
|
958
958
|
"size"
|
|
959
959
|
]);
|
|
960
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: u(zt[
|
|
960
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(zt[u_], _) }, l), /* @__PURE__ */ e.createElement(
|
|
961
961
|
"div",
|
|
962
962
|
{
|
|
963
|
-
className: u(zt[
|
|
963
|
+
className: u(zt[Rr], zt[`${Rr}--${o}`])
|
|
964
964
|
},
|
|
965
965
|
/* @__PURE__ */ e.createElement(
|
|
966
966
|
"div",
|
|
@@ -975,7 +975,7 @@ const Lc = {
|
|
|
975
975
|
}
|
|
976
976
|
)
|
|
977
977
|
), r && /* @__PURE__ */ e.createElement(B, { as: "div", size: "md", className: zt.loader__label }, r));
|
|
978
|
-
},
|
|
978
|
+
}, ko = (t) => {
|
|
979
979
|
if (t === "primary" || t === "destructive")
|
|
980
980
|
return {
|
|
981
981
|
primaryColor: "var(--action-primary-default)",
|
|
@@ -986,8 +986,8 @@ const Lc = {
|
|
|
986
986
|
primaryColor: "var(--content-invert-primary)",
|
|
987
987
|
secondaryColor: "var(--surface-invert-secondary)"
|
|
988
988
|
};
|
|
989
|
-
},
|
|
990
|
-
btn:
|
|
989
|
+
}, Eo = "lc-Button-module__btn___aijZJ", yo = "lc-Button-module__btn__loader___c8zZz", wo = "lc-Button-module__btn__icon___GVExB", pe = {
|
|
990
|
+
btn: Eo,
|
|
991
991
|
"btn--disabled": "lc-Button-module__btn--disabled___lXBav",
|
|
992
992
|
"btn--full-width": "lc-Button-module__btn--full-width___kdbAr",
|
|
993
993
|
"btn--xcompact": "lc-Button-module__btn--xcompact___s-zG-",
|
|
@@ -1010,8 +1010,8 @@ const Lc = {
|
|
|
1010
1010
|
"btn--dotted": "lc-Button-module__btn--dotted___y1EEP",
|
|
1011
1011
|
"btn--high-contrast": "lc-Button-module__btn--high-contrast___zHSVM",
|
|
1012
1012
|
"btn--loading": "lc-Button-module__btn--loading___ZAgjv",
|
|
1013
|
-
btn__loader:
|
|
1014
|
-
btn__icon:
|
|
1013
|
+
btn__loader: yo,
|
|
1014
|
+
btn__icon: wo,
|
|
1015
1015
|
"btn__icon--left": "lc-Button-module__btn__icon--left___H68zu",
|
|
1016
1016
|
"btn__icon--right": "lc-Button-module__btn__icon--right___fHr3D",
|
|
1017
1017
|
"btn__icon--small": "lc-Button-module__btn__icon--small___WLk8c",
|
|
@@ -1019,9 +1019,9 @@ const Lc = {
|
|
|
1019
1019
|
"btn--icon-only--bg": "lc-Button-module__btn--icon-only--bg___X-4V2",
|
|
1020
1020
|
"btn--plain-lock-black": "lc-Button-module__btn--plain-lock-black___aL-wC",
|
|
1021
1021
|
"btn--text-lock-black": "lc-Button-module__btn--text-lock-black___fy3zb"
|
|
1022
|
-
},
|
|
1023
|
-
(
|
|
1024
|
-
var
|
|
1022
|
+
}, ge = "btn", W = e.forwardRef(
|
|
1023
|
+
(v, b) => {
|
|
1024
|
+
var h = v, {
|
|
1025
1025
|
loading: t = !1,
|
|
1026
1026
|
disabled: a = !1,
|
|
1027
1027
|
type: r = "button",
|
|
@@ -1035,7 +1035,7 @@ const Lc = {
|
|
|
1035
1035
|
children: s,
|
|
1036
1036
|
href: p,
|
|
1037
1037
|
onClick: m
|
|
1038
|
-
} =
|
|
1038
|
+
} = h, f = D(h, [
|
|
1039
1039
|
"loading",
|
|
1040
1040
|
"disabled",
|
|
1041
1041
|
"type",
|
|
@@ -1052,16 +1052,16 @@ const Lc = {
|
|
|
1052
1052
|
]);
|
|
1053
1053
|
const y = t || a, E = !s && n, $ = ["text", "link", "link-light"].includes(o), w = p ? "a" : "button", C = u(
|
|
1054
1054
|
i,
|
|
1055
|
-
ge
|
|
1056
|
-
|
|
1057
|
-
|
|
1055
|
+
pe[ge],
|
|
1056
|
+
pe[`${ge}--${o}`],
|
|
1057
|
+
pe[`${ge}--${l}`],
|
|
1058
1058
|
{
|
|
1059
|
-
[
|
|
1060
|
-
[
|
|
1061
|
-
[
|
|
1062
|
-
[
|
|
1063
|
-
[
|
|
1064
|
-
[
|
|
1059
|
+
[pe[`${ge}--loading`]]: t,
|
|
1060
|
+
[pe[`${ge}--full-width`]]: _,
|
|
1061
|
+
[pe[`${ge}--with-${c}-icon`]]: n && !E && !$,
|
|
1062
|
+
[pe[`${ge}--icon-only`]]: E,
|
|
1063
|
+
[pe[`${ge}--icon-only--bg`]]: E && $,
|
|
1064
|
+
[pe[`${ge}--disabled`]]: y
|
|
1065
1065
|
}
|
|
1066
1066
|
);
|
|
1067
1067
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -1079,26 +1079,26 @@ const Lc = {
|
|
|
1079
1079
|
"data-testid": "button-loader",
|
|
1080
1080
|
size: "small",
|
|
1081
1081
|
label: d,
|
|
1082
|
-
className:
|
|
1083
|
-
},
|
|
1082
|
+
className: pe[`${ge}__loader`]
|
|
1083
|
+
}, ko(o))
|
|
1084
1084
|
),
|
|
1085
1085
|
n && e.cloneElement(n, {
|
|
1086
1086
|
className: u(
|
|
1087
1087
|
n.props.className,
|
|
1088
|
-
|
|
1089
|
-
|
|
1088
|
+
pe[`${ge}__icon`],
|
|
1089
|
+
pe[`${ge}__icon--${c}`],
|
|
1090
1090
|
{
|
|
1091
|
-
[
|
|
1091
|
+
[pe[`${ge}__icon--small`]]: l === "xcompact"
|
|
1092
1092
|
}
|
|
1093
1093
|
),
|
|
1094
1094
|
disabled: a,
|
|
1095
1095
|
size: l === "xcompact" ? "small" : "medium"
|
|
1096
1096
|
}),
|
|
1097
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
1097
|
+
/* @__PURE__ */ e.createElement("div", { className: pe[`${ge}__content`] }, s)
|
|
1098
1098
|
);
|
|
1099
1099
|
}
|
|
1100
1100
|
);
|
|
1101
|
-
function
|
|
1101
|
+
function m_(t) {
|
|
1102
1102
|
switch (t) {
|
|
1103
1103
|
case "invert":
|
|
1104
1104
|
return "inverted";
|
|
@@ -1108,7 +1108,7 @@ function u_(t) {
|
|
|
1108
1108
|
return "primary";
|
|
1109
1109
|
}
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function Co(t, a, r, _) {
|
|
1112
1112
|
if (r)
|
|
1113
1113
|
return {
|
|
1114
1114
|
top: t ? r + t : r
|
|
@@ -1118,7 +1118,7 @@ function wo(t, a, r, _) {
|
|
|
1118
1118
|
left: a ? _ + a : _
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
|
-
const
|
|
1121
|
+
const $o = (t) => {
|
|
1122
1122
|
switch (t) {
|
|
1123
1123
|
case "invert":
|
|
1124
1124
|
return {
|
|
@@ -1136,13 +1136,13 @@ const Co = (t) => {
|
|
|
1136
1136
|
fill: "var(--tooltip-background-basic)"
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
},
|
|
1140
|
-
tooltip:
|
|
1141
|
-
tooltip__content:
|
|
1139
|
+
}, No = "lc-Tooltip-module__tooltip___QOOAr", So = "lc-Tooltip-module__tooltip__content___RuamE", xo = "lc-Tooltip-module__tooltip__arrow___Ov1YW", Bo = "lc-Tooltip-module__tooltip__interactive___0JawB", A = {
|
|
1140
|
+
tooltip: No,
|
|
1141
|
+
tooltip__content: So,
|
|
1142
1142
|
"tooltip--invert": "lc-Tooltip-module__tooltip--invert___PVjhE",
|
|
1143
|
-
tooltip__arrow:
|
|
1143
|
+
tooltip__arrow: xo,
|
|
1144
1144
|
"tooltip--important": "lc-Tooltip-module__tooltip--important___X-IMK",
|
|
1145
|
-
tooltip__interactive:
|
|
1145
|
+
tooltip__interactive: Bo,
|
|
1146
1146
|
"tooltip__user-guide-step": "lc-Tooltip-module__tooltip__user-guide-step___evexI",
|
|
1147
1147
|
"tooltip--full-space": "lc-Tooltip-module__tooltip--full-space___wmbaw",
|
|
1148
1148
|
"tooltip-header": "lc-Tooltip-module__tooltip-header___QV0Vd",
|
|
@@ -1182,8 +1182,8 @@ const Co = (t) => {
|
|
|
1182
1182
|
transitionDuration: m = 200,
|
|
1183
1183
|
hoverOnDuration: f,
|
|
1184
1184
|
hoverOffDuration: b,
|
|
1185
|
-
transitionDelay:
|
|
1186
|
-
hoverOnDelay:
|
|
1185
|
+
transitionDelay: v = 0,
|
|
1186
|
+
hoverOnDelay: h,
|
|
1187
1187
|
hoverOffDelay: y,
|
|
1188
1188
|
triggerOnClick: E = !1,
|
|
1189
1189
|
triggerOnHover: $ = !0,
|
|
@@ -1199,48 +1199,48 @@ const Co = (t) => {
|
|
|
1199
1199
|
closeOnTriggerBlur: Y = !1,
|
|
1200
1200
|
floatingStrategy: j
|
|
1201
1201
|
}) => {
|
|
1202
|
-
const L = c !== void 0, [U,
|
|
1202
|
+
const L = c !== void 0, [U, $e] = e.useState(!1), Ke = e.useRef(null), Ue = L ? c : U, Ne = l || o, $t = Ga(), ft = sa(), Nt = u(
|
|
1203
1203
|
A[ya],
|
|
1204
1204
|
a,
|
|
1205
1205
|
Ne && A[`${ya}--${Ne}`],
|
|
1206
1206
|
d && A[`${ya}--full-space`]
|
|
1207
|
-
), bt = typeof _ == "function", lt = (
|
|
1208
|
-
|
|
1209
|
-
}, ht = (
|
|
1207
|
+
), bt = typeof _ == "function", lt = (me) => {
|
|
1208
|
+
me !== Ue && (me ? s == null || s() : i == null || i(), !L && $e(me));
|
|
1209
|
+
}, ht = (me) => p ? me != null ? me : m : 0, St = (me) => me != null ? me : v, {
|
|
1210
1210
|
floatingStyles: xt,
|
|
1211
1211
|
refs: P,
|
|
1212
1212
|
context: V,
|
|
1213
|
-
middlewareData: { arrow: { x:
|
|
1213
|
+
middlewareData: { arrow: { x: ue, y: Ye } = {} }
|
|
1214
1214
|
} = da({
|
|
1215
1215
|
nodeId: ft,
|
|
1216
1216
|
middleware: [
|
|
1217
1217
|
ua({ mainAxis: w, crossAxis: C }),
|
|
1218
1218
|
Er(),
|
|
1219
1219
|
Ua(),
|
|
1220
|
-
|
|
1220
|
+
X_({ element: Ke })
|
|
1221
1221
|
],
|
|
1222
1222
|
placement: n,
|
|
1223
|
-
open:
|
|
1223
|
+
open: Ue,
|
|
1224
1224
|
strategy: j,
|
|
1225
1225
|
onOpenChange: lt,
|
|
1226
1226
|
whileElementsMounted: ma
|
|
1227
|
-
}), qe =
|
|
1227
|
+
}), qe = J_(V, {
|
|
1228
1228
|
move: !1,
|
|
1229
1229
|
restMs: N,
|
|
1230
1230
|
delay: {
|
|
1231
|
-
open: St(
|
|
1231
|
+
open: St(h),
|
|
1232
1232
|
close: St(y || G)
|
|
1233
1233
|
},
|
|
1234
1234
|
enabled: $,
|
|
1235
|
-
handleClose: Y ? null :
|
|
1236
|
-
}), Wa =
|
|
1235
|
+
handleClose: Y ? null : j_()
|
|
1236
|
+
}), Wa = Q_(V), Va = ga(V, S), Ka = fa(V, { role: "tooltip" }), Ya = pa(V, k({
|
|
1237
1237
|
enabled: E
|
|
1238
1238
|
}, M)), { isMounted: qa, styles: Za } = kr(V, {
|
|
1239
1239
|
duration: {
|
|
1240
1240
|
open: ht(f),
|
|
1241
1241
|
close: ht(b)
|
|
1242
1242
|
}
|
|
1243
|
-
}), { status: Xa } =
|
|
1243
|
+
}), { status: Xa } = eo(V), { getReferenceProps: Ja, getFloatingProps: ja } = ba([
|
|
1244
1244
|
qe,
|
|
1245
1245
|
Wa,
|
|
1246
1246
|
Va,
|
|
@@ -1270,20 +1270,20 @@ const Co = (t) => {
|
|
|
1270
1270
|
}),
|
|
1271
1271
|
/* @__PURE__ */ e.createElement(B, { as: "div", className: A[`${ya}__content`] }, t),
|
|
1272
1272
|
/* @__PURE__ */ e.createElement(
|
|
1273
|
-
|
|
1273
|
+
to,
|
|
1274
1274
|
k({
|
|
1275
|
-
ref:
|
|
1275
|
+
ref: Ke,
|
|
1276
1276
|
context: V,
|
|
1277
1277
|
strokeWidth: 1,
|
|
1278
1278
|
width: 10,
|
|
1279
1279
|
height: 5,
|
|
1280
|
-
style: k({},
|
|
1280
|
+
style: k({}, Co(
|
|
1281
1281
|
I,
|
|
1282
1282
|
O,
|
|
1283
1283
|
Ye,
|
|
1284
|
-
|
|
1284
|
+
ue
|
|
1285
1285
|
))
|
|
1286
|
-
},
|
|
1286
|
+
}, $o(Ne))
|
|
1287
1287
|
)
|
|
1288
1288
|
)));
|
|
1289
1289
|
return $t === null ? /* @__PURE__ */ e.createElement(Ha, null, Gt) : Gt;
|
|
@@ -1302,7 +1302,7 @@ const Co = (t) => {
|
|
|
1302
1302
|
className: A[`${Wt}-close`],
|
|
1303
1303
|
onClick: l
|
|
1304
1304
|
},
|
|
1305
|
-
/* @__PURE__ */ e.createElement(x, { source: Ie, kind: o ?
|
|
1305
|
+
/* @__PURE__ */ e.createElement(x, { source: Ie, kind: o ? m_(o) : "primary" })
|
|
1306
1306
|
), a && /* @__PURE__ */ e.createElement(
|
|
1307
1307
|
ne,
|
|
1308
1308
|
{
|
|
@@ -1342,7 +1342,7 @@ const Co = (t) => {
|
|
|
1342
1342
|
className: A[`${Ze}-close`],
|
|
1343
1343
|
onClick: l
|
|
1344
1344
|
},
|
|
1345
|
-
/* @__PURE__ */ e.createElement(x, { source: Ie, kind: o ?
|
|
1345
|
+
/* @__PURE__ */ e.createElement(x, { source: Ie, kind: o ? m_(o) : "primary" })
|
|
1346
1346
|
), r && /* @__PURE__ */ e.createElement("div", { className: A[`${Ze}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1347
1347
|
"img",
|
|
1348
1348
|
{
|
|
@@ -1379,7 +1379,7 @@ const Co = (t) => {
|
|
|
1379
1379
|
c.label
|
|
1380
1380
|
)
|
|
1381
1381
|
));
|
|
1382
|
-
}, ce = "guide-tooltip",
|
|
1382
|
+
}, ce = "guide-tooltip", Io = ({
|
|
1383
1383
|
gap: t,
|
|
1384
1384
|
isVisible: a,
|
|
1385
1385
|
slide: r,
|
|
@@ -1466,7 +1466,7 @@ const Co = (t) => {
|
|
|
1466
1466
|
}
|
|
1467
1467
|
));
|
|
1468
1468
|
};
|
|
1469
|
-
class
|
|
1469
|
+
class To {
|
|
1470
1470
|
constructor(a, r) {
|
|
1471
1471
|
er(this, "element");
|
|
1472
1472
|
er(this, "padding");
|
|
@@ -1495,7 +1495,7 @@ class Io {
|
|
|
1495
1495
|
return this.getBoundingClientRect().height;
|
|
1496
1496
|
}
|
|
1497
1497
|
}
|
|
1498
|
-
const
|
|
1498
|
+
const Mr = 8, Lr = "guide-tooltip", Or = (t, a) => new To(t, a), Xc = (t) => {
|
|
1499
1499
|
const {
|
|
1500
1500
|
className: a,
|
|
1501
1501
|
parentElementName: r,
|
|
@@ -1505,9 +1505,9 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1505
1505
|
null
|
|
1506
1506
|
), [c, d] = e.useState(null), [i, s] = e.useState(o), p = () => {
|
|
1507
1507
|
l && (d(
|
|
1508
|
-
|
|
1508
|
+
Or(
|
|
1509
1509
|
l,
|
|
1510
|
-
|
|
1510
|
+
Mr
|
|
1511
1511
|
).getBoundingClientRect()
|
|
1512
1512
|
), s(!1));
|
|
1513
1513
|
};
|
|
@@ -1523,13 +1523,13 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1523
1523
|
}
|
|
1524
1524
|
}, [r]), e.useEffect(() => {
|
|
1525
1525
|
l && d(
|
|
1526
|
-
|
|
1526
|
+
Or(
|
|
1527
1527
|
l,
|
|
1528
|
-
|
|
1528
|
+
Mr
|
|
1529
1529
|
).getBoundingClientRect()
|
|
1530
1530
|
), s(!0);
|
|
1531
|
-
}, [l]), l && _ && c ? /* @__PURE__ */ e.createElement(
|
|
1532
|
-
|
|
1531
|
+
}, [l]), l && _ && c ? /* @__PURE__ */ e.createElement(l_, null, /* @__PURE__ */ e.createElement(
|
|
1532
|
+
Io,
|
|
1533
1533
|
{
|
|
1534
1534
|
gap: c,
|
|
1535
1535
|
isVisible: _,
|
|
@@ -1545,8 +1545,8 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1545
1545
|
contextElement: l
|
|
1546
1546
|
},
|
|
1547
1547
|
className: u({
|
|
1548
|
-
[A[
|
|
1549
|
-
[A[`${
|
|
1548
|
+
[A[Lr]]: !0,
|
|
1549
|
+
[A[`${Lr}--slide`]]: i,
|
|
1550
1550
|
className: a
|
|
1551
1551
|
})
|
|
1552
1552
|
}),
|
|
@@ -1590,7 +1590,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1590
1590
|
"action-bar__items--with-menu": "lc-ActionBar-module__action-bar__items--with-menu___F6phI",
|
|
1591
1591
|
"action-bar__items__button": "lc-ActionBar-module__action-bar__items__button___Vdjl7",
|
|
1592
1592
|
"action-bar__items__button--active": "lc-ActionBar-module__action-bar__items__button--active___PFLdm"
|
|
1593
|
-
},
|
|
1593
|
+
}, p_ = "action-bar__items", Bt = `${p_}__button-wrapper`, Do = ({
|
|
1594
1594
|
option: t,
|
|
1595
1595
|
isActive: a,
|
|
1596
1596
|
vertical: r
|
|
@@ -1625,7 +1625,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1625
1625
|
{
|
|
1626
1626
|
kind: "invert",
|
|
1627
1627
|
placement: r ? "left" : "bottom",
|
|
1628
|
-
triggerClassName: q[`${
|
|
1628
|
+
triggerClassName: q[`${p_}__tooltip`],
|
|
1629
1629
|
triggerRenderer: () => o,
|
|
1630
1630
|
floatingStrategy: "fixed",
|
|
1631
1631
|
useClickHookProps: {
|
|
@@ -1637,7 +1637,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1637
1637
|
/* @__PURE__ */ e.createElement("div", null, t.label)
|
|
1638
1638
|
)
|
|
1639
1639
|
) : /* @__PURE__ */ e.createElement("div", { "data-testid": t.key, className: _ }, o);
|
|
1640
|
-
}, wa = "action-bar", Xe = "action-bar__menu-wrapper",
|
|
1640
|
+
}, wa = "action-bar", Xe = "action-bar__menu-wrapper", Po = 44, jc = ({
|
|
1641
1641
|
className: t,
|
|
1642
1642
|
id: a = "action-bar-area",
|
|
1643
1643
|
type: r = "menu",
|
|
@@ -1652,7 +1652,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1652
1652
|
q[wa],
|
|
1653
1653
|
t,
|
|
1654
1654
|
l && q[`${wa}--vertical`]
|
|
1655
|
-
),
|
|
1655
|
+
), v = !f && i.length !== 0;
|
|
1656
1656
|
e.useEffect(() => {
|
|
1657
1657
|
f || (_.length > c ? s(_.slice(c, _.length)) : s([]));
|
|
1658
1658
|
}, [_, c]), e.useEffect(() => {
|
|
@@ -1660,19 +1660,19 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1660
1660
|
if (!f && E) {
|
|
1661
1661
|
const $ = new ResizeObserver((w) => {
|
|
1662
1662
|
const { width: C, height: g } = w[0].contentRect, N = l ? g : C, S = i.length > 0 ? 60 : 0, M = Math.floor(
|
|
1663
|
-
(N - S) /
|
|
1663
|
+
(N - S) / Po
|
|
1664
1664
|
);
|
|
1665
1665
|
M >= 0 && M !== c && d(M);
|
|
1666
1666
|
});
|
|
1667
1667
|
return $.observe(document.querySelector(`#${a}`)), () => $.disconnect();
|
|
1668
1668
|
}
|
|
1669
1669
|
}, [i, f, c]);
|
|
1670
|
-
const
|
|
1670
|
+
const h = e.useCallback(() => i.reduce(
|
|
1671
1671
|
(E, $) => {
|
|
1672
1672
|
if (!$.hideInMenu) {
|
|
1673
1673
|
const w = {
|
|
1674
1674
|
key: $.key,
|
|
1675
|
-
element: /* @__PURE__ */ e.createElement(
|
|
1675
|
+
element: /* @__PURE__ */ e.createElement(go, { leftNode: $.element }, $.label),
|
|
1676
1676
|
withDivider: $.withDivider,
|
|
1677
1677
|
onClick: $.onClick
|
|
1678
1678
|
};
|
|
@@ -1690,14 +1690,14 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1690
1690
|
})
|
|
1691
1691
|
},
|
|
1692
1692
|
_.slice(0, c).map((E) => /* @__PURE__ */ e.createElement(
|
|
1693
|
-
|
|
1693
|
+
Do,
|
|
1694
1694
|
{
|
|
1695
1695
|
option: E,
|
|
1696
1696
|
isActive: E.key === o,
|
|
1697
1697
|
vertical: l
|
|
1698
1698
|
}
|
|
1699
1699
|
))
|
|
1700
|
-
),
|
|
1700
|
+
), v && /* @__PURE__ */ e.createElement(
|
|
1701
1701
|
"div",
|
|
1702
1702
|
{
|
|
1703
1703
|
className: u(
|
|
@@ -1707,14 +1707,14 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1707
1707
|
)
|
|
1708
1708
|
},
|
|
1709
1709
|
/* @__PURE__ */ e.createElement(
|
|
1710
|
-
|
|
1710
|
+
po,
|
|
1711
1711
|
{
|
|
1712
1712
|
selectedOptions: o ? [o] : [],
|
|
1713
1713
|
onOpen: () => m(!0),
|
|
1714
1714
|
onClose: () => m(!1),
|
|
1715
1715
|
floatingStrategy: "fixed",
|
|
1716
1716
|
placement: l ? "left-start" : "bottom-end",
|
|
1717
|
-
options:
|
|
1717
|
+
options: h(),
|
|
1718
1718
|
triggerClassName: u(
|
|
1719
1719
|
l && q[`${Xe}__trigger-vertical`]
|
|
1720
1720
|
),
|
|
@@ -1807,14 +1807,14 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1807
1807
|
r
|
|
1808
1808
|
)
|
|
1809
1809
|
));
|
|
1810
|
-
},
|
|
1811
|
-
alert:
|
|
1812
|
-
alert__icon:
|
|
1813
|
-
alert__content:
|
|
1814
|
-
alert__content__wrapper:
|
|
1815
|
-
alert__content__wrapper__text:
|
|
1816
|
-
alert__content__wrapper__cta:
|
|
1817
|
-
alert__content__wrapper__cta__link:
|
|
1810
|
+
}, Ao = "lc-Alert-module__alert___HBTns", Fo = "lc-Alert-module__alert__icon___8TaAH", Ro = "lc-Alert-module__alert__content___9nZdf", Mo = "lc-Alert-module__alert__content__wrapper___aLBkP", Lo = "lc-Alert-module__alert__content__wrapper__text___HDMbR", Oo = "lc-Alert-module__alert__content__wrapper__cta___9L-oE", Go = "lc-Alert-module__alert__content__wrapper__cta__link___D9Igz", Se = {
|
|
1811
|
+
alert: Ao,
|
|
1812
|
+
alert__icon: Fo,
|
|
1813
|
+
alert__content: Ro,
|
|
1814
|
+
alert__content__wrapper: Mo,
|
|
1815
|
+
alert__content__wrapper__text: Lo,
|
|
1816
|
+
alert__content__wrapper__cta: Oo,
|
|
1817
|
+
alert__content__wrapper__cta__link: Go,
|
|
1818
1818
|
"alert__close-icon": "lc-Alert-module__alert__close-icon___rYxVy",
|
|
1819
1819
|
"alert--small": "lc-Alert-module__alert--small___Fyk-v",
|
|
1820
1820
|
"alert--medium": "lc-Alert-module__alert--medium___ItZWT",
|
|
@@ -1823,13 +1823,13 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1823
1823
|
"alert--warning": "lc-Alert-module__alert--warning___MubhD",
|
|
1824
1824
|
"alert--success": "lc-Alert-module__alert--success___fPtlZ",
|
|
1825
1825
|
"alert--error": "lc-Alert-module__alert--error___DKPo0"
|
|
1826
|
-
},
|
|
1826
|
+
}, Uo = {
|
|
1827
1827
|
info: {
|
|
1828
1828
|
source: ca,
|
|
1829
1829
|
kind: "link"
|
|
1830
1830
|
},
|
|
1831
1831
|
warning: {
|
|
1832
|
-
source:
|
|
1832
|
+
source: r_,
|
|
1833
1833
|
kind: "warning"
|
|
1834
1834
|
},
|
|
1835
1835
|
success: {
|
|
@@ -1837,7 +1837,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1837
1837
|
kind: "success"
|
|
1838
1838
|
},
|
|
1839
1839
|
error: {
|
|
1840
|
-
source:
|
|
1840
|
+
source: __,
|
|
1841
1841
|
kind: "error"
|
|
1842
1842
|
}
|
|
1843
1843
|
}, xe = "alert", ei = (c) => {
|
|
@@ -1865,13 +1865,13 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1865
1865
|
a
|
|
1866
1866
|
);
|
|
1867
1867
|
return e.useEffect(() => {
|
|
1868
|
-
const f = () => i.current && i.current.offsetWidth <= 400 ? p("small") : i.current && i.current.offsetWidth > 400 && i.current.offsetWidth <= 800 ? p("medium") : p("large"), b =
|
|
1868
|
+
const f = () => i.current && i.current.offsetWidth <= 400 ? p("small") : i.current && i.current.offsetWidth > 400 && i.current.offsetWidth <= 800 ? p("medium") : p("large"), b = c_(() => {
|
|
1869
1869
|
f();
|
|
1870
1870
|
}, 500);
|
|
1871
1871
|
return window.addEventListener("resize", b), f(), () => window.removeEventListener("resize", b);
|
|
1872
1872
|
}), /* @__PURE__ */ e.createElement("div", k({ ref: i, className: m }, n), /* @__PURE__ */ e.createElement("div", { className: Se[`${xe}__content`] }, /* @__PURE__ */ e.createElement("div", { className: Se[`${xe}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1873
1873
|
x,
|
|
1874
|
-
T(k({},
|
|
1874
|
+
T(k({}, Uo[o]), {
|
|
1875
1875
|
size: "large",
|
|
1876
1876
|
className: Se[`${xe}__icon`]
|
|
1877
1877
|
})
|
|
@@ -1942,7 +1942,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1942
1942
|
"app-frame__page-content-container__content-wrapper__nav-bar-wrapper": "lc-AppFrame-module__app-frame__page-content-container__content-wrapper__nav-bar-wrapper___pRQpx",
|
|
1943
1943
|
"app-frame__page-content-container__content-wrapper__nav-bar-wrapper--open": "lc-AppFrame-module__app-frame__page-content-container__content-wrapper__nav-bar-wrapper--open___VvUQT",
|
|
1944
1944
|
"app-frame__page-content-container__content-wrapper__content": "lc-AppFrame-module__app-frame__page-content-container__content-wrapper__content___e7Eeh"
|
|
1945
|
-
},
|
|
1945
|
+
}, g_ = "app-frame", nt = `${g_}__page-content-container`, Ho = (t) => {
|
|
1946
1946
|
const {
|
|
1947
1947
|
children: a,
|
|
1948
1948
|
className: r,
|
|
@@ -1952,7 +1952,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
1952
1952
|
topBarClassName: n,
|
|
1953
1953
|
sideNavigationContainerClassName: c,
|
|
1954
1954
|
contentClassName: d
|
|
1955
|
-
} = t, i = u(Je[
|
|
1955
|
+
} = t, i = u(Je[g_], r), { isSideNavigationVisible: s } = co(), p = e.useRef(null), { isOpen: m, isMounted: f } = $r({
|
|
1956
1956
|
isVisible: s,
|
|
1957
1957
|
elementRef: p
|
|
1958
1958
|
});
|
|
@@ -2002,7 +2002,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
2002
2002
|
a
|
|
2003
2003
|
)
|
|
2004
2004
|
)));
|
|
2005
|
-
}, ti = (t) => /* @__PURE__ */ e.createElement(
|
|
2005
|
+
}, ti = (t) => /* @__PURE__ */ e.createElement(io, null, /* @__PURE__ */ e.createElement(Ho, k({}, t))), Tt = {
|
|
2006
2006
|
"side-navigation": "lc-SideNavigation-module__side-navigation___97Smn",
|
|
2007
2007
|
"side-navigation__header": "lc-SideNavigation-module__side-navigation__header___jKhiq",
|
|
2008
2008
|
"side-navigation__header__title": "lc-SideNavigation-module__side-navigation__header__title___ZpMAv",
|
|
@@ -2040,7 +2040,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Xc = (t) => {
|
|
|
2040
2040
|
};
|
|
2041
2041
|
function Fa() {
|
|
2042
2042
|
}
|
|
2043
|
-
const
|
|
2043
|
+
const zo = "side-navigation-item-test-id", Wo = "side-navigation-active-item-test-id", Vo = "side-navigation-parent-icon", Te = {
|
|
2044
2044
|
"side-navigation-item": "lc-SideNavigationItem-module__side-navigation-item___MsJTw",
|
|
2045
2045
|
"side-navigation-item__anchor": "lc-SideNavigationItem-module__side-navigation-item__anchor___zeXS-",
|
|
2046
2046
|
"side-navigation-item__custom-label": "lc-SideNavigationItem-module__side-navigation-item__custom-label___vOtD-",
|
|
@@ -2052,7 +2052,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2052
2052
|
"side-navigation-item__label": "lc-SideNavigationItem-module__side-navigation-item__label___8xcMR",
|
|
2053
2053
|
"side-navigation-item__label--active": "lc-SideNavigationItem-module__side-navigation-item__label--active___lHzUo",
|
|
2054
2054
|
"side-navigation-item__custom-label--active": "lc-SideNavigationItem-module__side-navigation-item__custom-label--active___js4w6"
|
|
2055
|
-
},
|
|
2055
|
+
}, De = "side-navigation-item", Ko = (m) => {
|
|
2056
2056
|
var f = m, {
|
|
2057
2057
|
leftNode: t,
|
|
2058
2058
|
shouldKeepIconSpace: a = !0,
|
|
@@ -2078,40 +2078,40 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2078
2078
|
"onItemHover",
|
|
2079
2079
|
"isIconHidden"
|
|
2080
2080
|
]);
|
|
2081
|
-
const b = typeof _ == "string",
|
|
2081
|
+
const b = typeof _ == "string", v = (y) => {
|
|
2082
2082
|
y.preventDefault(), n == null || n();
|
|
2083
|
-
},
|
|
2083
|
+
}, h = (y) => {
|
|
2084
2084
|
y.key === "Enter" && (y.preventDefault(), n == null || n());
|
|
2085
2085
|
};
|
|
2086
2086
|
return /* @__PURE__ */ e.createElement(
|
|
2087
2087
|
"li",
|
|
2088
2088
|
k({
|
|
2089
|
-
className: u([De
|
|
2090
|
-
"data-testid": c ?
|
|
2089
|
+
className: u([Te[De], o]),
|
|
2090
|
+
"data-testid": c ? Wo : zo,
|
|
2091
2091
|
"data-active": c
|
|
2092
2092
|
}, p),
|
|
2093
2093
|
/* @__PURE__ */ e.createElement(
|
|
2094
2094
|
"a",
|
|
2095
2095
|
{
|
|
2096
2096
|
tabIndex: 0,
|
|
2097
|
-
className: u(
|
|
2098
|
-
[
|
|
2099
|
-
[
|
|
2100
|
-
[
|
|
2097
|
+
className: u(Te[`${De}__anchor`], {
|
|
2098
|
+
[Te[`${De}__anchor--active`]]: c,
|
|
2099
|
+
[Te[`${De}__anchor--main-entry`]]: d,
|
|
2100
|
+
[Te[`${De}__anchor--icon-hidden`]]: s
|
|
2101
2101
|
}),
|
|
2102
2102
|
href: r,
|
|
2103
|
-
onClick:
|
|
2104
|
-
onKeyDown:
|
|
2103
|
+
onClick: v,
|
|
2104
|
+
onKeyDown: h,
|
|
2105
2105
|
onMouseEnter: i || Fa,
|
|
2106
2106
|
onFocus: i || Fa
|
|
2107
2107
|
},
|
|
2108
2108
|
a && /* @__PURE__ */ e.createElement(
|
|
2109
2109
|
"span",
|
|
2110
2110
|
{
|
|
2111
|
-
className: u(
|
|
2112
|
-
[
|
|
2111
|
+
className: u(Te[`${De}__left-node`], {
|
|
2112
|
+
[Te[`${De}__left-node--active`]]: c || d
|
|
2113
2113
|
}),
|
|
2114
|
-
"data-testid":
|
|
2114
|
+
"data-testid": Vo
|
|
2115
2115
|
},
|
|
2116
2116
|
t
|
|
2117
2117
|
),
|
|
@@ -2119,16 +2119,16 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2119
2119
|
B,
|
|
2120
2120
|
{
|
|
2121
2121
|
bold: c || d,
|
|
2122
|
-
className: u(
|
|
2123
|
-
[
|
|
2122
|
+
className: u(Te[`${De}__label`], {
|
|
2123
|
+
[Te[`${De}__label--active`]]: c || d
|
|
2124
2124
|
})
|
|
2125
2125
|
},
|
|
2126
2126
|
_
|
|
2127
2127
|
) : /* @__PURE__ */ e.createElement(
|
|
2128
2128
|
"span",
|
|
2129
2129
|
{
|
|
2130
|
-
className: u(
|
|
2131
|
-
[
|
|
2130
|
+
className: u(Te[`${De}__custom-label`], {
|
|
2131
|
+
[Te[`${De}__custom-label--active`]]: c || d
|
|
2132
2132
|
})
|
|
2133
2133
|
},
|
|
2134
2134
|
_
|
|
@@ -2145,7 +2145,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2145
2145
|
"side-navigation-group__list-wrapper": "lc-SideNavigationGroup-module__side-navigation-group__list-wrapper___pMP-G",
|
|
2146
2146
|
"side-navigation-group__list-wrapper--expanded": "lc-SideNavigationGroup-module__side-navigation-group__list-wrapper--expanded___jm-18",
|
|
2147
2147
|
"side-navigation-group__list": "lc-SideNavigationGroup-module__side-navigation-group__list___XlUf-"
|
|
2148
|
-
}, it = "side-navigation-group",
|
|
2148
|
+
}, it = "side-navigation-group", Yo = 34, ri = ({
|
|
2149
2149
|
label: t,
|
|
2150
2150
|
rightNode: a,
|
|
2151
2151
|
className: r,
|
|
@@ -2155,23 +2155,23 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2155
2155
|
shouldOpenOnInit: n = !1,
|
|
2156
2156
|
shouldOpenOnActive: c = !1
|
|
2157
2157
|
}) => {
|
|
2158
|
-
const [d, i] = e.useState(!1), [s, p] = e.useState(0), m = e.useRef(!1), f = e.useRef(null), { isOpen: b, isMounted:
|
|
2158
|
+
const [d, i] = e.useState(!1), [s, p] = e.useState(0), m = e.useRef(!1), f = e.useRef(null), { isOpen: b, isMounted: v, setIsOpen: h } = $r({
|
|
2159
2159
|
isVisible: !o || n,
|
|
2160
2160
|
elementRef: f
|
|
2161
|
-
}), y = typeof a == "function" ? a(b) : a, E = typeof t == "function" ? t(b) : t, $ = () =>
|
|
2162
|
-
o &&
|
|
2161
|
+
}), y = typeof a == "function" ? a(b) : a, E = typeof t == "function" ? t(b) : t, $ = () => h(!0), w = () => {
|
|
2162
|
+
o && h((g) => !g);
|
|
2163
2163
|
}, C = (g) => {
|
|
2164
2164
|
const N = g == null ? void 0 : g.getElementsByTagName("li"), S = N != null && N.length ? [...N].some(
|
|
2165
2165
|
(G) => G.getAttribute("data-active") === "true"
|
|
2166
2166
|
) : !1;
|
|
2167
2167
|
i(S);
|
|
2168
|
-
const M = ((N == null ? void 0 : N.length) || 0) *
|
|
2168
|
+
const M = ((N == null ? void 0 : N.length) || 0) * Yo;
|
|
2169
2169
|
p(M);
|
|
2170
2170
|
};
|
|
2171
2171
|
return e.useEffect(() => {
|
|
2172
2172
|
c && (!m.current && d && $(), m.current = d);
|
|
2173
2173
|
}, [d, c]), /* @__PURE__ */ e.createElement("div", { "data-testid": "side-navigation-group", className: ct[it] }, o ? /* @__PURE__ */ e.createElement(
|
|
2174
|
-
|
|
2174
|
+
Ko,
|
|
2175
2175
|
{
|
|
2176
2176
|
leftNode: /* @__PURE__ */ e.createElement(
|
|
2177
2177
|
"div",
|
|
@@ -2208,7 +2208,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2208
2208
|
]),
|
|
2209
2209
|
style: { maxHeight: b ? s : 0 }
|
|
2210
2210
|
},
|
|
2211
|
-
|
|
2211
|
+
v && /* @__PURE__ */ e.createElement(
|
|
2212
2212
|
"ul",
|
|
2213
2213
|
{
|
|
2214
2214
|
className: u(ct[`${it}__list`], r),
|
|
@@ -2217,10 +2217,10 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2217
2217
|
_
|
|
2218
2218
|
)
|
|
2219
2219
|
));
|
|
2220
|
-
},
|
|
2220
|
+
}, Gr = {
|
|
2221
2221
|
"navigation-group": "lc-NavigationGroup-module__navigation-group___CxK9Y",
|
|
2222
2222
|
"navigation-group--scrollable": "lc-NavigationGroup-module__navigation-group--scrollable___lVA6K"
|
|
2223
|
-
},
|
|
2223
|
+
}, Ur = "navigation-group", _i = (o) => {
|
|
2224
2224
|
var l = o, {
|
|
2225
2225
|
children: t,
|
|
2226
2226
|
className: a,
|
|
@@ -2234,9 +2234,9 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2234
2234
|
"ul",
|
|
2235
2235
|
k({
|
|
2236
2236
|
className: u(
|
|
2237
|
-
|
|
2237
|
+
Gr[Ur],
|
|
2238
2238
|
{
|
|
2239
|
-
[
|
|
2239
|
+
[Gr[`${Ur}--scrollable`]]: r
|
|
2240
2240
|
},
|
|
2241
2241
|
a
|
|
2242
2242
|
)
|
|
@@ -2244,12 +2244,12 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2244
2244
|
t
|
|
2245
2245
|
);
|
|
2246
2246
|
};
|
|
2247
|
-
function
|
|
2247
|
+
function qo(t, a) {
|
|
2248
2248
|
return t > a ? `${a}+` : `${t}`;
|
|
2249
2249
|
}
|
|
2250
|
-
const
|
|
2251
|
-
badge:
|
|
2252
|
-
badge__dot:
|
|
2250
|
+
const Zo = "lc-Badge-module__badge___GhLnu", Xo = "lc-Badge-module__badge__dot___z6RO6", Ca = {
|
|
2251
|
+
badge: Zo,
|
|
2252
|
+
badge__dot: Xo,
|
|
2253
2253
|
"badge--large": "lc-Badge-module__badge--large___B131q",
|
|
2254
2254
|
"badge--medium": "lc-Badge-module__badge--medium___TDU8a",
|
|
2255
2255
|
"badge--compact": "lc-Badge-module__badge--compact___9xJ4y",
|
|
@@ -2278,7 +2278,7 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2278
2278
|
Ca[`${$a}--${_}`],
|
|
2279
2279
|
Ca[`${$a}--${o}`]
|
|
2280
2280
|
), s = {
|
|
2281
|
-
counter:
|
|
2281
|
+
counter: qo(a, r),
|
|
2282
2282
|
alert: "!",
|
|
2283
2283
|
dot: /* @__PURE__ */ e.createElement("span", { "data-testid": "badge-dot", className: Ca[`${$a}__dot`] })
|
|
2284
2284
|
}[l];
|
|
@@ -2291,7 +2291,7 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2291
2291
|
"navigation-item__button--disabled": "lc-NavigationItem-module__navigation-item__button--disabled___BRd-i",
|
|
2292
2292
|
"navigation-item__button--active": "lc-NavigationItem-module__navigation-item__button--active___NiA3H",
|
|
2293
2293
|
"navigation-item__button--opacity": "lc-NavigationItem-module__navigation-item__button--opacity___sgLDT"
|
|
2294
|
-
}, gt = "navigation-item",
|
|
2294
|
+
}, gt = "navigation-item", Jo = (t, a) => typeof t == "number" ? /* @__PURE__ */ e.createElement(
|
|
2295
2295
|
Ra,
|
|
2296
2296
|
{
|
|
2297
2297
|
"data-testid": `${a}-badge-count`,
|
|
@@ -2375,14 +2375,14 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2375
2375
|
href: _
|
|
2376
2376
|
}, s),
|
|
2377
2377
|
r
|
|
2378
|
-
), n &&
|
|
2378
|
+
), n && Jo(n, t))
|
|
2379
2379
|
},
|
|
2380
2380
|
a
|
|
2381
2381
|
)
|
|
2382
2382
|
);
|
|
2383
|
-
},
|
|
2384
|
-
navigation:
|
|
2385
|
-
},
|
|
2383
|
+
}, jo = "lc-Navigation-module__navigation___x9vC9", Qo = {
|
|
2384
|
+
navigation: jo
|
|
2385
|
+
}, el = "navigation", li = (_) => {
|
|
2386
2386
|
var o = _, {
|
|
2387
2387
|
children: t,
|
|
2388
2388
|
className: a
|
|
@@ -2390,8 +2390,8 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2390
2390
|
"children",
|
|
2391
2391
|
"className"
|
|
2392
2392
|
]);
|
|
2393
|
-
return /* @__PURE__ */ e.createElement("nav", k({ className: u(
|
|
2394
|
-
},
|
|
2393
|
+
return /* @__PURE__ */ e.createElement("nav", k({ className: u(Qo[el], a) }, r), t);
|
|
2394
|
+
}, Ve = {
|
|
2395
2395
|
"navigation-top-bar": "lc-NavigationTopBar-module__navigation-top-bar___y5sPE",
|
|
2396
2396
|
"navigation-top-bar__title": "lc-NavigationTopBar-module__navigation-top-bar__title___GQaye",
|
|
2397
2397
|
"navigation-top-bar__alert": "lc-NavigationTopBar-module__navigation-top-bar__alert___m45Ys",
|
|
@@ -2405,22 +2405,22 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2405
2405
|
"navigation-top-bar__alert__children-wrapper": "lc-NavigationTopBar-module__navigation-top-bar__alert__children-wrapper___KJ7Y-",
|
|
2406
2406
|
"navigation-top-bar__alert__close-button": "lc-NavigationTopBar-module__navigation-top-bar__alert__close-button___y7ep7",
|
|
2407
2407
|
"navigation-top-bar__alert__cta-wrapper": "lc-NavigationTopBar-module__navigation-top-bar__alert__cta-wrapper___nA7ir"
|
|
2408
|
-
}, Nr = "navigation-top-bar", st = `${Nr}__alert`,
|
|
2408
|
+
}, Nr = "navigation-top-bar", st = `${Nr}__alert`, f_ = ({
|
|
2409
2409
|
children: t,
|
|
2410
2410
|
className: a,
|
|
2411
2411
|
additionalNodes: r
|
|
2412
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: u(
|
|
2412
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: u(Ve[Nr], a) }, t, r), tl = ({
|
|
2413
2413
|
children: t,
|
|
2414
2414
|
className: a,
|
|
2415
2415
|
"data-testid": r
|
|
2416
2416
|
}) => /* @__PURE__ */ e.createElement(
|
|
2417
2417
|
"div",
|
|
2418
2418
|
{
|
|
2419
|
-
className: u(
|
|
2419
|
+
className: u(Ve[`${Nr}__title`], a),
|
|
2420
2420
|
"data-testid": r
|
|
2421
2421
|
},
|
|
2422
2422
|
t
|
|
2423
|
-
),
|
|
2423
|
+
), al = ({
|
|
2424
2424
|
className: t,
|
|
2425
2425
|
kind: a = "info",
|
|
2426
2426
|
closeButton: r,
|
|
@@ -2432,17 +2432,17 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2432
2432
|
const c = e.useRef(null), { isMounted: d, isOpen: i } = $r({
|
|
2433
2433
|
isVisible: n,
|
|
2434
2434
|
elementRef: c
|
|
2435
|
-
}), s = window.matchMedia("(max-width: 768px)").matches, p = a === "warning" ? "link-inverted" : "text", m = a === "warning" ? "secondary" : "high-contrast", f = o || l ? /* @__PURE__ */ e.createElement("div", { className:
|
|
2435
|
+
}), s = window.matchMedia("(max-width: 768px)").matches, p = a === "warning" ? "link-inverted" : "text", m = a === "warning" ? "secondary" : "high-contrast", f = o || l ? /* @__PURE__ */ e.createElement("div", { className: Ve[`${st}__cta-wrapper`] }, o && /* @__PURE__ */ e.createElement(
|
|
2436
2436
|
W,
|
|
2437
2437
|
k({
|
|
2438
2438
|
size: "compact",
|
|
2439
2439
|
kind: s ? p : m
|
|
2440
2440
|
}, o),
|
|
2441
2441
|
o.label
|
|
2442
|
-
), l && /* @__PURE__ */ e.createElement(W, k({ size: "compact", kind: p }, l), l.label)) : null, b = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className:
|
|
2442
|
+
), l && /* @__PURE__ */ e.createElement(W, k({ size: "compact", kind: p }, l), l.label)) : null, b = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Ve[`${st}__children-wrapper`] }, _, f), r && /* @__PURE__ */ e.createElement(
|
|
2443
2443
|
"button",
|
|
2444
2444
|
k({
|
|
2445
|
-
className:
|
|
2445
|
+
className: Ve[`${st}__close-button`]
|
|
2446
2446
|
}, r),
|
|
2447
2447
|
/* @__PURE__ */ e.createElement(x, { source: Ie })
|
|
2448
2448
|
));
|
|
@@ -2450,9 +2450,9 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2450
2450
|
"div",
|
|
2451
2451
|
{
|
|
2452
2452
|
className: u(
|
|
2453
|
-
|
|
2453
|
+
Ve[`${st}__wrapper`],
|
|
2454
2454
|
{
|
|
2455
|
-
[
|
|
2455
|
+
[Ve[`${st}__wrapper--open`]]: i
|
|
2456
2456
|
},
|
|
2457
2457
|
"lc-dark-theme"
|
|
2458
2458
|
// Alerts are forced into dark mode to maintain consistency of the colors
|
|
@@ -2465,10 +2465,10 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2465
2465
|
{
|
|
2466
2466
|
"data-testid": "navigation-top-bar-alert",
|
|
2467
2467
|
className: u(
|
|
2468
|
-
|
|
2469
|
-
|
|
2468
|
+
Ve[st],
|
|
2469
|
+
Ve[`${st}--${a}`],
|
|
2470
2470
|
{
|
|
2471
|
-
[
|
|
2471
|
+
[Ve[`${st}--open`]]: i
|
|
2472
2472
|
},
|
|
2473
2473
|
t
|
|
2474
2474
|
)
|
|
@@ -2477,19 +2477,19 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2477
2477
|
)
|
|
2478
2478
|
));
|
|
2479
2479
|
};
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
const
|
|
2480
|
+
f_.Alert = al;
|
|
2481
|
+
f_.Title = tl;
|
|
2482
|
+
const Hr = Array.from(
|
|
2483
2483
|
{ length: 10 },
|
|
2484
2484
|
(t, a) => `--surface-avatar-${a + 1}`
|
|
2485
2485
|
);
|
|
2486
|
-
function
|
|
2486
|
+
function rl(t) {
|
|
2487
2487
|
if (!t)
|
|
2488
2488
|
return;
|
|
2489
2489
|
const a = t.split("").reduce((r, _) => r + _.charCodeAt(0), 0);
|
|
2490
|
-
return `var(${
|
|
2490
|
+
return `var(${Hr[a % Hr.length]})`;
|
|
2491
2491
|
}
|
|
2492
|
-
function
|
|
2492
|
+
function _l(t = "", a = 2) {
|
|
2493
2493
|
const r = t.trim().split(/\s+/), _ = r.map((l) => [...l][0]);
|
|
2494
2494
|
if (a < 1)
|
|
2495
2495
|
return "";
|
|
@@ -2500,7 +2500,7 @@ function rl(t = "", a = 2) {
|
|
|
2500
2500
|
o.push(_[l]);
|
|
2501
2501
|
return o.join("").toUpperCase();
|
|
2502
2502
|
}
|
|
2503
|
-
function
|
|
2503
|
+
function ol(t) {
|
|
2504
2504
|
let a = t;
|
|
2505
2505
|
if (t.startsWith("var(--") && t.endsWith(")")) {
|
|
2506
2506
|
const r = t.slice(4, -1);
|
|
@@ -2508,9 +2508,9 @@ function _l(t) {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
return a && yr(a, "#FFFFFF") > 3 ? "var(--color-white)" : "var(--color-black)";
|
|
2510
2510
|
}
|
|
2511
|
-
const
|
|
2512
|
-
avatar:
|
|
2513
|
-
avatar__status:
|
|
2511
|
+
const ll = "lc-Avatar-module__avatar___1zTCE", nl = "lc-Avatar-module__avatar__status___nX2Ls", cl = "lc-Avatar-module__avatar__rim___RCQ8Q", il = "lc-Avatar-module__avatar__image___YqfqE", Ee = {
|
|
2512
|
+
avatar: ll,
|
|
2513
|
+
avatar__status: nl,
|
|
2514
2514
|
"avatar__status--available": "lc-Avatar-module__avatar__status--available___tcpFg",
|
|
2515
2515
|
"avatar__status--unavailable": "lc-Avatar-module__avatar__status--unavailable___ciauF",
|
|
2516
2516
|
"avatar__status--unknown": "lc-Avatar-module__avatar__status--unknown___MBaGB",
|
|
@@ -2525,7 +2525,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2525
2525
|
"avatar__status--xxlarge": "lc-Avatar-module__avatar__status--xxlarge___crG9D",
|
|
2526
2526
|
"avatar__status--xxxlarge": "lc-Avatar-module__avatar__status--xxxlarge___Iv61X",
|
|
2527
2527
|
"avatar__status--rounded-square": "lc-Avatar-module__avatar__status--rounded-square___-My1P",
|
|
2528
|
-
avatar__rim:
|
|
2528
|
+
avatar__rim: cl,
|
|
2529
2529
|
"avatar__rim--xxxsmall": "lc-Avatar-module__avatar__rim--xxxsmall___0CH9D",
|
|
2530
2530
|
"avatar__rim--xxsmall": "lc-Avatar-module__avatar__rim--xxsmall___Mde0K",
|
|
2531
2531
|
"avatar__rim--xsmall": "lc-Avatar-module__avatar__rim--xsmall___LAN-b",
|
|
@@ -2535,7 +2535,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2535
2535
|
"avatar__rim--xlarge": "lc-Avatar-module__avatar__rim--xlarge___CY0kN",
|
|
2536
2536
|
"avatar__rim--xxlarge": "lc-Avatar-module__avatar__rim--xxlarge___tE053",
|
|
2537
2537
|
"avatar__rim--xxxlarge": "lc-Avatar-module__avatar__rim--xxxlarge___amlGP",
|
|
2538
|
-
avatar__image:
|
|
2538
|
+
avatar__image: il,
|
|
2539
2539
|
"avatar__icon--xxxsmall": "lc-Avatar-module__avatar__icon--xxxsmall___KaoMa",
|
|
2540
2540
|
"avatar__icon--xxsmall": "lc-Avatar-module__avatar__icon--xxsmall___NJJNV",
|
|
2541
2541
|
"avatar__icon--xsmall": "lc-Avatar-module__avatar__icon--xsmall___yHEZK",
|
|
@@ -2556,7 +2556,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2556
2556
|
"avatar--xlarge": "lc-Avatar-module__avatar--xlarge___zwgeW",
|
|
2557
2557
|
"avatar--xxlarge": "lc-Avatar-module__avatar--xxlarge___Ur0ul",
|
|
2558
2558
|
"avatar--xxxlarge": "lc-Avatar-module__avatar--xxxlarge___Z-54U"
|
|
2559
|
-
}, _e = "avatar",
|
|
2559
|
+
}, _e = "avatar", sl = (p) => {
|
|
2560
2560
|
var m = p, {
|
|
2561
2561
|
alt: t,
|
|
2562
2562
|
className: a,
|
|
@@ -2580,25 +2580,25 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2580
2580
|
"type",
|
|
2581
2581
|
"withRim"
|
|
2582
2582
|
]);
|
|
2583
|
-
const f = d === "image" && !l, [b,
|
|
2584
|
-
[
|
|
2585
|
-
[
|
|
2586
|
-
[
|
|
2587
|
-
[
|
|
2583
|
+
const f = d === "image" && !l, [b, v] = e.useState(f), h = d === "image" && !!l && !b, y = d === "text", E = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, $ = _l(c, E), w = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), C = r || rl(c), g = C ? ol(C) : void 0, N = y ? { backgroundColor: C } : {}, S = u(k({
|
|
2584
|
+
[Ee[_e]]: !0,
|
|
2585
|
+
[Ee[`${_e}--${_}`]]: !0,
|
|
2586
|
+
[Ee[`${_e}--${o}`]]: !0,
|
|
2587
|
+
[Ee[`${_e}--with-rim`]]: i
|
|
2588
2588
|
}, a ? { [`${a}`]: a } : {})), M = u(
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
...n ? [
|
|
2589
|
+
Ee[`${_e}__status`],
|
|
2590
|
+
Ee[`${_e}__status--${_}`],
|
|
2591
|
+
Ee[`${_e}__status--${o}`],
|
|
2592
|
+
...n ? [Ee[`${_e}__status--${n}`]] : []
|
|
2593
2593
|
), G = u(
|
|
2594
|
-
|
|
2595
|
-
|
|
2594
|
+
Ee[`${_e}__icon`],
|
|
2595
|
+
Ee[`${_e}__icon--${o}`]
|
|
2596
2596
|
), I = u(
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
), O = (j) => w ? "2xs" : ["medium"].includes(j) ? "xs" : ["large", "xlarge"].includes(j) ? "sm" : ["xxlarge"].includes(j) ? "lg" : "xl", Y = e.useCallback(() =>
|
|
2597
|
+
Ee[`${_e}__rim`],
|
|
2598
|
+
Ee[`${_e}__rim--${o}`]
|
|
2599
|
+
), O = (j) => w ? "2xs" : ["medium"].includes(j) ? "xs" : ["large", "xlarge"].includes(j) ? "sm" : ["xxlarge"].includes(j) ? "lg" : "xl", Y = e.useCallback(() => v(!0), []);
|
|
2600
2600
|
return e.useEffect(() => {
|
|
2601
|
-
|
|
2601
|
+
v(f);
|
|
2602
2602
|
}, [f]), /* @__PURE__ */ e.createElement("div", k({ className: S, style: N }, s), i && /* @__PURE__ */ e.createElement(
|
|
2603
2603
|
"div",
|
|
2604
2604
|
{
|
|
@@ -2611,10 +2611,10 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2611
2611
|
"data-testid": `${_e}__status`,
|
|
2612
2612
|
className: M
|
|
2613
2613
|
}
|
|
2614
|
-
),
|
|
2614
|
+
), h && /* @__PURE__ */ e.createElement(
|
|
2615
2615
|
"img",
|
|
2616
2616
|
{
|
|
2617
|
-
className:
|
|
2617
|
+
className: Ee[`${_e}__image`],
|
|
2618
2618
|
src: l,
|
|
2619
2619
|
alt: t,
|
|
2620
2620
|
onError: Y
|
|
@@ -2634,17 +2634,17 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2634
2634
|
{
|
|
2635
2635
|
"data-testid": `${_e}__icon`,
|
|
2636
2636
|
className: G,
|
|
2637
|
-
source:
|
|
2637
|
+
source: D_
|
|
2638
2638
|
}
|
|
2639
2639
|
));
|
|
2640
|
-
},
|
|
2640
|
+
}, dl = "lc-SegmentedControl-module__btn___tfsvL", Na = {
|
|
2641
2641
|
"segmented-control": "lc-SegmentedControl-module__segmented-control___LHWSk",
|
|
2642
|
-
btn:
|
|
2642
|
+
btn: dl,
|
|
2643
2643
|
"btn--active": "lc-SegmentedControl-module__btn--active___Za-th",
|
|
2644
2644
|
"btn--compact": "lc-SegmentedControl-module__btn--compact___gcSwq",
|
|
2645
2645
|
"btn--medium": "lc-SegmentedControl-module__btn--medium___w3UzC",
|
|
2646
2646
|
"btn--large": "lc-SegmentedControl-module__btn--large___yHPw4"
|
|
2647
|
-
},
|
|
2647
|
+
}, ul = "segmented-control", ni = ({
|
|
2648
2648
|
size: t = "medium",
|
|
2649
2649
|
buttons: a,
|
|
2650
2650
|
className: r,
|
|
@@ -2653,21 +2653,21 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2653
2653
|
fullWidth: l = !1,
|
|
2654
2654
|
onButtonClick: n = Fa
|
|
2655
2655
|
}) => {
|
|
2656
|
-
const c = u(Na[
|
|
2656
|
+
const c = u(Na[ul], r), [d, i] = e.useState(() => _), s = typeof o == "string";
|
|
2657
2657
|
e.useEffect(() => {
|
|
2658
2658
|
s && i(o);
|
|
2659
2659
|
}, [o]);
|
|
2660
2660
|
const p = (f, b) => {
|
|
2661
2661
|
s || i(f), n(f, b);
|
|
2662
|
-
}, m = a.map(({ id: f, label: b, loading:
|
|
2663
|
-
const E = f === d, $ = E ? Na["btn--active"] : "", w = E ? !1 :
|
|
2662
|
+
}, m = a.map(({ id: f, label: b, loading: v, disabled: h, icon: y }) => {
|
|
2663
|
+
const E = f === d, $ = E ? Na["btn--active"] : "", w = E ? !1 : v;
|
|
2664
2664
|
return /* @__PURE__ */ e.createElement(
|
|
2665
2665
|
W,
|
|
2666
2666
|
{
|
|
2667
2667
|
key: f,
|
|
2668
2668
|
fullWidth: l,
|
|
2669
2669
|
loading: w,
|
|
2670
|
-
disabled:
|
|
2670
|
+
disabled: h,
|
|
2671
2671
|
"aria-pressed": E,
|
|
2672
2672
|
kind: "secondary",
|
|
2673
2673
|
icon: y,
|
|
@@ -2680,21 +2680,21 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2680
2680
|
);
|
|
2681
2681
|
});
|
|
2682
2682
|
return /* @__PURE__ */ e.createElement("div", { role: "group", className: c }, m);
|
|
2683
|
-
},
|
|
2684
|
-
card:
|
|
2685
|
-
card__header:
|
|
2686
|
-
card__header__image:
|
|
2687
|
-
card__header__heading:
|
|
2688
|
-
card__header__heading__title:
|
|
2689
|
-
card__header__heading__description:
|
|
2683
|
+
}, ml = "lc-Card-module__card___GqMm2", pl = "lc-Card-module__card__header___0ptfD", gl = "lc-Card-module__card__header__image___QMwSu", fl = "lc-Card-module__card__header__heading___Wkikx", bl = "lc-Card-module__card__header__heading__title___Uxi8s", hl = "lc-Card-module__card__header__heading__description___6LnOK", vl = "lc-Card-module__card__content___KuDcc", kl = "lc-Card-module__card__actions___q9sAo", El = "lc-Card-module__card__actions__line___TF1bt", yl = "lc-Card-module__card__actions__buttons___PDMMR", ye = {
|
|
2684
|
+
card: ml,
|
|
2685
|
+
card__header: pl,
|
|
2686
|
+
card__header__image: gl,
|
|
2687
|
+
card__header__heading: fl,
|
|
2688
|
+
card__header__heading__title: bl,
|
|
2689
|
+
card__header__heading__description: hl,
|
|
2690
2690
|
"card__header__no-image": "lc-Card-module__card__header__no-image___UcnNY",
|
|
2691
|
-
card__content:
|
|
2691
|
+
card__content: vl,
|
|
2692
2692
|
"card__expanded-content": "lc-Card-module__card__expanded-content___yB-QL",
|
|
2693
|
-
card__actions:
|
|
2694
|
-
card__actions__line:
|
|
2695
|
-
card__actions__buttons:
|
|
2693
|
+
card__actions: kl,
|
|
2694
|
+
card__actions__line: El,
|
|
2695
|
+
card__actions__buttons: yl,
|
|
2696
2696
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___lz4h-"
|
|
2697
|
-
}, na = "card", Ma = `${na}__header`, tr = `${Ma}__heading`, Sa = `${na}__actions`,
|
|
2697
|
+
}, na = "card", Ma = `${na}__header`, tr = `${Ma}__heading`, Sa = `${na}__actions`, wl = `${Ma}__no-image`, ci = (i) => {
|
|
2698
2698
|
var s = i, {
|
|
2699
2699
|
alt: t,
|
|
2700
2700
|
buttonsOptions: a = [],
|
|
@@ -2714,30 +2714,30 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2714
2714
|
"src",
|
|
2715
2715
|
"title"
|
|
2716
2716
|
]);
|
|
2717
|
-
const [p, m] = e.useState(!1), f = p ? Oa : Ot, b = p ? "Hide" : "Show more",
|
|
2718
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: u(
|
|
2717
|
+
const [p, m] = e.useState(!1), f = p ? Oa : Ot, b = p ? "Hide" : "Show more", v = (a == null ? void 0 : a.length) > 0, h = !!l, y = v || h, E = c, $ = n, w = $ ? "" : ye[wl];
|
|
2718
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(ye[na], _) }, d), E && /* @__PURE__ */ e.createElement("div", { className: u(ye[Ma], w) }, $ && /* @__PURE__ */ e.createElement(
|
|
2719
2719
|
"img",
|
|
2720
2720
|
{
|
|
2721
2721
|
alt: t,
|
|
2722
|
-
className:
|
|
2722
|
+
className: ye[`${Ma}__image`],
|
|
2723
2723
|
src: n
|
|
2724
2724
|
}
|
|
2725
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
2725
|
+
), /* @__PURE__ */ e.createElement("div", { className: ye[tr] }, /* @__PURE__ */ e.createElement(ne, { size: "xs", className: ye[`${tr}__title`] }, c), o && /* @__PURE__ */ e.createElement(
|
|
2726
2726
|
B,
|
|
2727
2727
|
{
|
|
2728
2728
|
size: "sm",
|
|
2729
|
-
className:
|
|
2729
|
+
className: ye[`${tr}__description`]
|
|
2730
2730
|
},
|
|
2731
2731
|
o
|
|
2732
|
-
))), /* @__PURE__ */ e.createElement(B, { as: "div", size: "md", className:
|
|
2732
|
+
))), /* @__PURE__ */ e.createElement(B, { as: "div", size: "md", className: ye[`${na}__content`] }, r), p && /* @__PURE__ */ e.createElement(
|
|
2733
2733
|
B,
|
|
2734
2734
|
{
|
|
2735
2735
|
as: "div",
|
|
2736
2736
|
size: "md",
|
|
2737
|
-
className:
|
|
2737
|
+
className: ye[`${na}__expanded-content`]
|
|
2738
2738
|
},
|
|
2739
2739
|
l
|
|
2740
|
-
), y && /* @__PURE__ */ e.createElement("div", { className:
|
|
2740
|
+
), y && /* @__PURE__ */ e.createElement("div", { className: ye[Sa] }, /* @__PURE__ */ e.createElement("div", { className: ye[`${Sa}__line`] }), /* @__PURE__ */ e.createElement("div", { className: ye[`${Sa}__buttons`] }, v && a.map(
|
|
2741
2741
|
({ kind: C, onClick: g, children: N }, S) => /* @__PURE__ */ e.createElement(
|
|
2742
2742
|
W,
|
|
2743
2743
|
{
|
|
@@ -2748,10 +2748,10 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2748
2748
|
},
|
|
2749
2749
|
N
|
|
2750
2750
|
)
|
|
2751
|
-
),
|
|
2751
|
+
), h && /* @__PURE__ */ e.createElement(
|
|
2752
2752
|
W,
|
|
2753
2753
|
{
|
|
2754
|
-
className:
|
|
2754
|
+
className: ye[`${Sa}__buttons-expander`],
|
|
2755
2755
|
kind: "link",
|
|
2756
2756
|
iconPosition: "right",
|
|
2757
2757
|
icon: /* @__PURE__ */ e.createElement(x, { source: f }),
|
|
@@ -2759,9 +2759,9 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2759
2759
|
},
|
|
2760
2760
|
b
|
|
2761
2761
|
))));
|
|
2762
|
-
},
|
|
2762
|
+
}, Cl = {
|
|
2763
2763
|
"field-description": "lc-FieldDescription-module__field-description___IcRDH"
|
|
2764
|
-
},
|
|
2764
|
+
}, $l = "field-description", za = (_) => {
|
|
2765
2765
|
var o = _, {
|
|
2766
2766
|
children: t,
|
|
2767
2767
|
className: a = ""
|
|
@@ -2769,19 +2769,19 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2769
2769
|
"children",
|
|
2770
2770
|
"className"
|
|
2771
2771
|
]);
|
|
2772
|
-
const l = u(
|
|
2772
|
+
const l = u(Cl[$l], a);
|
|
2773
2773
|
return /* @__PURE__ */ e.createElement(B, T(k({ as: "span", size: "sm" }, r), { className: l }), t);
|
|
2774
|
-
},
|
|
2775
|
-
checkbox:
|
|
2776
|
-
checkbox__label:
|
|
2777
|
-
checkbox__text:
|
|
2778
|
-
checkbox__input:
|
|
2779
|
-
checkbox__checkmark:
|
|
2774
|
+
}, Nl = "lc-Checkbox-module__checkbox___G7nTf", Sl = "lc-Checkbox-module__checkbox__label___-o01x", xl = "lc-Checkbox-module__checkbox__text___P2SIq", Bl = "lc-Checkbox-module__checkbox__input___YLbVF", Il = "lc-Checkbox-module__checkbox__checkmark___16pfY", Tl = "lc-Checkbox-module__checkbox__square___MHUyd", Dl = "lc-Checkbox-module__checkbox__helper___YSJ-n", kt = {
|
|
2775
|
+
checkbox: Nl,
|
|
2776
|
+
checkbox__label: Sl,
|
|
2777
|
+
checkbox__text: xl,
|
|
2778
|
+
checkbox__input: Bl,
|
|
2779
|
+
checkbox__checkmark: Il,
|
|
2780
2780
|
"checkbox--selected": "lc-Checkbox-module__checkbox--selected___S2vqY",
|
|
2781
|
-
checkbox__square:
|
|
2781
|
+
checkbox__square: Tl,
|
|
2782
2782
|
"checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___-lAqW",
|
|
2783
|
-
checkbox__helper:
|
|
2784
|
-
}, Et = "checkbox",
|
|
2783
|
+
checkbox__helper: Dl
|
|
2784
|
+
}, Et = "checkbox", Pl = e.forwardRef(
|
|
2785
2785
|
(c, n) => {
|
|
2786
2786
|
var d = c, { checked: t, disabled: a, children: r, description: _, className: o } = d, l = D(d, ["checked", "disabled", "children", "description", "className"]);
|
|
2787
2787
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2840,7 +2840,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2840
2840
|
"date-picker--range__select-input": "lc-DatePicker-module__date-picker--range__select-input___6pyj3",
|
|
2841
2841
|
"date-picker--range__calendars-wrapper": "lc-DatePicker-module__date-picker--range__calendars-wrapper___8nWaW",
|
|
2842
2842
|
"date-picker__navbar-buttons-wrapper": "lc-DatePicker-module__date-picker__navbar-buttons-wrapper___Hnksb"
|
|
2843
|
-
},
|
|
2843
|
+
}, zr = "date-picker", Al = (t) => {
|
|
2844
2844
|
const {
|
|
2845
2845
|
onPreviousClick: a,
|
|
2846
2846
|
onMonthChange: r,
|
|
@@ -2862,23 +2862,23 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2862
2862
|
const E = Rt(i, 12);
|
|
2863
2863
|
return r(E);
|
|
2864
2864
|
}
|
|
2865
|
-
const
|
|
2865
|
+
const h = Math.abs(Tr(i, s)), y = Rt(
|
|
2866
2866
|
i,
|
|
2867
|
-
!Number.isNaN(
|
|
2867
|
+
!Number.isNaN(h) && h > 12 ? 12 : h
|
|
2868
2868
|
);
|
|
2869
2869
|
return r(y);
|
|
2870
|
-
},
|
|
2870
|
+
}, v = () => {
|
|
2871
2871
|
if (!p) {
|
|
2872
|
-
const E =
|
|
2872
|
+
const E = Dr(i, 12);
|
|
2873
2873
|
return r(E);
|
|
2874
2874
|
}
|
|
2875
|
-
const
|
|
2875
|
+
const h = Math.abs(Tr(p, i)), y = Dr(
|
|
2876
2876
|
i,
|
|
2877
|
-
!Number.isNaN(
|
|
2877
|
+
!Number.isNaN(h) && h > 12 ? 12 : h
|
|
2878
2878
|
);
|
|
2879
2879
|
return d === 2 && pr(y, p) ? r(Rt(y, 1)) : r(y);
|
|
2880
2880
|
};
|
|
2881
|
-
return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement("div", { className: F[`${
|
|
2881
|
+
return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement("div", { className: F[`${zr}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
2882
2882
|
"button",
|
|
2883
2883
|
{
|
|
2884
2884
|
"data-testid": "date-picker-prev-year-button",
|
|
@@ -2888,7 +2888,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2888
2888
|
}),
|
|
2889
2889
|
onClick: b
|
|
2890
2890
|
},
|
|
2891
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
2891
|
+
/* @__PURE__ */ e.createElement(x, { source: P_, kind: "subtle" })
|
|
2892
2892
|
), /* @__PURE__ */ e.createElement(
|
|
2893
2893
|
"button",
|
|
2894
2894
|
{
|
|
@@ -2899,8 +2899,8 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2899
2899
|
}),
|
|
2900
2900
|
onClick: m
|
|
2901
2901
|
},
|
|
2902
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
2903
|
-
)), /* @__PURE__ */ e.createElement("div", { className: F[`${
|
|
2902
|
+
/* @__PURE__ */ e.createElement(x, { source: A_, kind: "subtle" })
|
|
2903
|
+
)), /* @__PURE__ */ e.createElement("div", { className: F[`${zr}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
2904
2904
|
"button",
|
|
2905
2905
|
{
|
|
2906
2906
|
"data-testid": "date-picker-next-month-button",
|
|
@@ -2919,14 +2919,14 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2919
2919
|
[c.navButtonNext]: !0,
|
|
2920
2920
|
[c.navButtonInteractionDisabled]: !o
|
|
2921
2921
|
}),
|
|
2922
|
-
onClick:
|
|
2922
|
+
onClick: v
|
|
2923
2923
|
},
|
|
2924
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
2924
|
+
/* @__PURE__ */ e.createElement(x, { source: F_, kind: "subtle" })
|
|
2925
2925
|
)));
|
|
2926
|
-
}, R = "date-picker",
|
|
2926
|
+
}, R = "date-picker", b_ = (t, a) => {
|
|
2927
2927
|
const { from: r, to: _ } = a;
|
|
2928
2928
|
return !(_ && !gr(t, _) && fr(t, _) || r && !gr(t, r) && !fr(t, r));
|
|
2929
|
-
},
|
|
2929
|
+
}, h_ = (t, a, r) => a ? t && !pr(t, a) || r && pr(a, r) ? Rt(a, 1) : a : Rt(r || /* @__PURE__ */ new Date(), 1), Fl = (t, a) => {
|
|
2930
2930
|
const r = {
|
|
2931
2931
|
[F[`${R}__day--monday`]]: { daysOfWeek: [1] },
|
|
2932
2932
|
[F[`${R}__day--sunday`]]: { daysOfWeek: [0] },
|
|
@@ -2944,7 +2944,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2944
2944
|
}, oa = (t, a) => {
|
|
2945
2945
|
const r = a.find((_) => _.id === t);
|
|
2946
2946
|
return r || void 0;
|
|
2947
|
-
},
|
|
2947
|
+
}, Wr = (t, a) => !!(!t || t && a), Rl = (t) => {
|
|
2948
2948
|
const a = {};
|
|
2949
2949
|
if (!t.initialSelectedItemKey)
|
|
2950
2950
|
return a;
|
|
@@ -2953,7 +2953,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2953
2953
|
t.options
|
|
2954
2954
|
);
|
|
2955
2955
|
return r ? (a.selectedItem = t.initialSelectedItemKey, r.isManual && (t.initialFromDate && (a.from = t.initialFromDate), t.initialToDate && (a.to = t.initialToDate, a.temporaryTo = t.initialToDate)), a) : {};
|
|
2956
|
-
},
|
|
2956
|
+
}, Ml = (t, a) => k({
|
|
2957
2957
|
container: u({
|
|
2958
2958
|
[F[`${R}`]]: !0,
|
|
2959
2959
|
[F[`${R}--range`]]: t
|
|
@@ -2988,10 +2988,10 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2988
2988
|
outside: F[`${R}__day--outside`],
|
|
2989
2989
|
start: F[`${R}__day--start`],
|
|
2990
2990
|
end: F[`${R}__day--end`]
|
|
2991
|
-
}, a),
|
|
2991
|
+
}, a), Vr = "date-picker", Ll = (t) => {
|
|
2992
2992
|
const a = t.getDate();
|
|
2993
|
-
return /* @__PURE__ */ e.createElement("div", { className: F[`${
|
|
2994
|
-
},
|
|
2993
|
+
return /* @__PURE__ */ e.createElement("div", { className: F[`${Vr}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: F[`${Vr}__day-content`] }, a));
|
|
2994
|
+
}, Ol = (t) => {
|
|
2995
2995
|
const y = t, {
|
|
2996
2996
|
classNames: a,
|
|
2997
2997
|
range: r,
|
|
@@ -3018,7 +3018,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
3018
3018
|
e.useEffect(() => {
|
|
3019
3019
|
o && o !== m && f(o);
|
|
3020
3020
|
}, [o, m]), e.useEffect(() => {
|
|
3021
|
-
_ && o !== m && (
|
|
3021
|
+
_ && o !== m && (b_(m, { from: l, to: _ }) || f(_));
|
|
3022
3022
|
}, [o, m, _, l]);
|
|
3023
3023
|
const b = e.useCallback(
|
|
3024
3024
|
(E) => {
|
|
@@ -3030,20 +3030,20 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
3030
3030
|
},
|
|
3031
3031
|
[o, t.onMonthChange]
|
|
3032
3032
|
);
|
|
3033
|
-
let
|
|
3034
|
-
(n === 0 || n && n < 7) && (
|
|
3035
|
-
const
|
|
3036
|
-
() =>
|
|
3033
|
+
let v = 1;
|
|
3034
|
+
(n === 0 || n && n < 7) && (v = n);
|
|
3035
|
+
const h = e.useMemo(
|
|
3036
|
+
() => Ml(r, a),
|
|
3037
3037
|
[r, a]
|
|
3038
3038
|
);
|
|
3039
3039
|
return /* @__PURE__ */ e.createElement(
|
|
3040
|
-
|
|
3040
|
+
oo,
|
|
3041
3041
|
k({
|
|
3042
3042
|
navbarElement: d || /* @__PURE__ */ e.createElement(
|
|
3043
|
-
|
|
3043
|
+
Al,
|
|
3044
3044
|
{
|
|
3045
3045
|
month: m,
|
|
3046
|
-
classNames:
|
|
3046
|
+
classNames: h,
|
|
3047
3047
|
numberOfMonths: c,
|
|
3048
3048
|
onMonthChange: b,
|
|
3049
3049
|
toMonth: _,
|
|
@@ -3051,22 +3051,22 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
3051
3051
|
}
|
|
3052
3052
|
),
|
|
3053
3053
|
ref: s,
|
|
3054
|
-
classNames:
|
|
3054
|
+
classNames: h,
|
|
3055
3055
|
numberOfMonths: c,
|
|
3056
3056
|
toMonth: _,
|
|
3057
3057
|
fromMonth: l,
|
|
3058
|
-
firstDayOfWeek:
|
|
3058
|
+
firstDayOfWeek: v,
|
|
3059
3059
|
month: m,
|
|
3060
|
-
renderDay: i ||
|
|
3060
|
+
renderDay: i || Ll
|
|
3061
3061
|
}, p)
|
|
3062
3062
|
);
|
|
3063
|
-
},
|
|
3064
|
-
(t, a) => /* @__PURE__ */ e.createElement(
|
|
3063
|
+
}, Gl = e.forwardRef(
|
|
3064
|
+
(t, a) => /* @__PURE__ */ e.createElement(Ol, k({ innerRef: a }, t))
|
|
3065
3065
|
);
|
|
3066
|
-
|
|
3066
|
+
Gl.displayName = "DatePicker";
|
|
3067
3067
|
var J = /* @__PURE__ */ ((t) => (t.NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM", t.NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE", t.CLEAR = "CLEAR", t.SET_FROM = "SET_FROM", t.SET_TO = "SET_TO", t.SELECT_FIRST_DAY = "SELECT_FIRST_DAY", t.SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM", t.SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO", t.CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE", t))(J || {});
|
|
3068
|
-
const
|
|
3069
|
-
const a =
|
|
3068
|
+
const Ul = (t) => {
|
|
3069
|
+
const a = h_(
|
|
3070
3070
|
t.initialFromDate,
|
|
3071
3071
|
t.initialToDate,
|
|
3072
3072
|
t.toMonth
|
|
@@ -3076,7 +3076,7 @@ const Gl = (t) => {
|
|
|
3076
3076
|
to: void 0,
|
|
3077
3077
|
temporaryTo: void 0,
|
|
3078
3078
|
currentMonth: a
|
|
3079
|
-
}),
|
|
3079
|
+
}), Rl(t));
|
|
3080
3080
|
function o(l, n) {
|
|
3081
3081
|
switch (n.type) {
|
|
3082
3082
|
case J.NEW_SELECTED_ITEM:
|
|
@@ -3124,8 +3124,8 @@ const Gl = (t) => {
|
|
|
3124
3124
|
return l;
|
|
3125
3125
|
}
|
|
3126
3126
|
}
|
|
3127
|
-
return
|
|
3128
|
-
},
|
|
3127
|
+
return B_(o, _);
|
|
3128
|
+
}, Hl = ({
|
|
3129
3129
|
options: t,
|
|
3130
3130
|
initialSelectedItemKey: a,
|
|
3131
3131
|
initialFromDate: r,
|
|
@@ -3134,9 +3134,9 @@ const Gl = (t) => {
|
|
|
3134
3134
|
onChange: l,
|
|
3135
3135
|
children: n
|
|
3136
3136
|
}) => {
|
|
3137
|
-
const c =
|
|
3137
|
+
const c = I_(
|
|
3138
3138
|
a || null
|
|
3139
|
-
), [d, i] =
|
|
3139
|
+
), [d, i] = Ul({
|
|
3140
3140
|
options: t,
|
|
3141
3141
|
initialSelectedItemKey: a,
|
|
3142
3142
|
initialFromDate: r,
|
|
@@ -3156,104 +3156,104 @@ const Gl = (t) => {
|
|
|
3156
3156
|
payload: { date: _ }
|
|
3157
3157
|
});
|
|
3158
3158
|
}, [_]), Ft(() => {
|
|
3159
|
-
const
|
|
3159
|
+
const v = h_(
|
|
3160
3160
|
r,
|
|
3161
3161
|
_,
|
|
3162
3162
|
o
|
|
3163
3163
|
);
|
|
3164
3164
|
i({
|
|
3165
3165
|
type: J.CURRENT_MONTH_CHANGE,
|
|
3166
|
-
payload: { date:
|
|
3166
|
+
payload: { date: v }
|
|
3167
3167
|
});
|
|
3168
3168
|
}, [o, r, _]), Ft(() => {
|
|
3169
|
-
const { from:
|
|
3170
|
-
if (!(
|
|
3169
|
+
const { from: v, selectedItem: h, to: y } = d;
|
|
3170
|
+
if (!(v && y))
|
|
3171
3171
|
return;
|
|
3172
|
-
const E = oa(
|
|
3172
|
+
const E = oa(h, t);
|
|
3173
3173
|
E && (l == null || l(T(k({}, E), {
|
|
3174
3174
|
value: {
|
|
3175
|
-
from:
|
|
3175
|
+
from: v,
|
|
3176
3176
|
to: y
|
|
3177
3177
|
}
|
|
3178
3178
|
})));
|
|
3179
3179
|
}, [d.from, d.to, d.selectedItem, t, l]), Ft(() => {
|
|
3180
|
-
const { selectedItem:
|
|
3181
|
-
if (
|
|
3180
|
+
const { selectedItem: v } = d;
|
|
3181
|
+
if (v === c.current)
|
|
3182
3182
|
return;
|
|
3183
|
-
if (!
|
|
3183
|
+
if (!v) {
|
|
3184
3184
|
l(null);
|
|
3185
3185
|
return;
|
|
3186
3186
|
}
|
|
3187
|
-
if (!oa(
|
|
3187
|
+
if (!oa(v, t))
|
|
3188
3188
|
return;
|
|
3189
3189
|
const y = t.reduce(
|
|
3190
3190
|
(E, $) => T(k({}, E), { [$.id]: $ }),
|
|
3191
3191
|
{}
|
|
3192
3192
|
);
|
|
3193
|
-
l(y[
|
|
3193
|
+
l(y[v]);
|
|
3194
3194
|
}, [l, d.selectedItem, t]);
|
|
3195
3195
|
const s = ka(
|
|
3196
|
-
(
|
|
3197
|
-
const
|
|
3198
|
-
!
|
|
3196
|
+
(v) => {
|
|
3197
|
+
const h = o ? wr(o, v) >= 0 : !0;
|
|
3198
|
+
!Wr(d.from, d.to) && h && i({
|
|
3199
3199
|
type: J.NEW_TEMPORARY_TO_VALUE,
|
|
3200
|
-
payload: { date:
|
|
3200
|
+
payload: { date: v }
|
|
3201
3201
|
});
|
|
3202
3202
|
},
|
|
3203
3203
|
[o, d.from, d.to]
|
|
3204
3204
|
), p = ka(
|
|
3205
|
-
(
|
|
3206
|
-
const { from:
|
|
3207
|
-
|
|
3205
|
+
(v) => {
|
|
3206
|
+
const { from: h, to: y } = d;
|
|
3207
|
+
b_(v, { to: o }) && (Wr(h, y) ? i({
|
|
3208
3208
|
type: J.SELECT_FIRST_DAY,
|
|
3209
|
-
payload: { date:
|
|
3210
|
-
}) :
|
|
3209
|
+
payload: { date: v }
|
|
3210
|
+
}) : h && gr(v, h) || h && fr(v, h) ? i({
|
|
3211
3211
|
type: J.SELECT_SECOND_DAY_AS_TO,
|
|
3212
|
-
payload: { date:
|
|
3212
|
+
payload: { date: v }
|
|
3213
3213
|
}) : i({
|
|
3214
3214
|
type: J.SELECT_SECOND_DAY_AS_FROM,
|
|
3215
|
-
payload: { date:
|
|
3215
|
+
payload: { date: v }
|
|
3216
3216
|
}));
|
|
3217
3217
|
},
|
|
3218
3218
|
[o, d.from, d.to]
|
|
3219
3219
|
), m = ka(
|
|
3220
|
-
(
|
|
3221
|
-
if (
|
|
3220
|
+
(v) => {
|
|
3221
|
+
if (v === null) {
|
|
3222
3222
|
i({
|
|
3223
3223
|
type: J.NEW_SELECTED_ITEM,
|
|
3224
3224
|
payload: { selectedItem: null }
|
|
3225
3225
|
});
|
|
3226
3226
|
return;
|
|
3227
3227
|
}
|
|
3228
|
-
oa(
|
|
3228
|
+
oa(v, t) && i({
|
|
3229
3229
|
type: J.NEW_SELECTED_ITEM,
|
|
3230
|
-
payload: { selectedItem:
|
|
3230
|
+
payload: { selectedItem: v }
|
|
3231
3231
|
});
|
|
3232
3232
|
},
|
|
3233
3233
|
[t]
|
|
3234
|
-
), f = ka((
|
|
3234
|
+
), f = ka((v) => {
|
|
3235
3235
|
i({
|
|
3236
3236
|
type: J.CURRENT_MONTH_CHANGE,
|
|
3237
|
-
payload: { date:
|
|
3237
|
+
payload: { date: v }
|
|
3238
3238
|
});
|
|
3239
3239
|
}, []);
|
|
3240
3240
|
return n((() => {
|
|
3241
|
-
const { currentMonth:
|
|
3242
|
-
() =>
|
|
3243
|
-
[
|
|
3244
|
-
), C = Ea(() => oa(y, t), [t, y]), g = Ea(() => [
|
|
3241
|
+
const { currentMonth: v, from: h, selectedItem: y, temporaryTo: E, to: $ } = d, w = Ea(
|
|
3242
|
+
() => Fl(h, E),
|
|
3243
|
+
[h, E]
|
|
3244
|
+
), C = Ea(() => oa(y, t), [t, y]), g = Ea(() => [h, { from: h, to: E }], [h, E]), N = Ea(() => o ? { after: o } : void 0, [o]);
|
|
3245
3245
|
return {
|
|
3246
3246
|
select: {
|
|
3247
3247
|
onItemSelect: m,
|
|
3248
3248
|
selected: y || ""
|
|
3249
3249
|
},
|
|
3250
3250
|
inputs: {
|
|
3251
|
-
fromDate:
|
|
3251
|
+
fromDate: h,
|
|
3252
3252
|
toDate: $
|
|
3253
3253
|
},
|
|
3254
3254
|
datepicker: {
|
|
3255
3255
|
range: !0,
|
|
3256
|
-
month:
|
|
3256
|
+
month: v,
|
|
3257
3257
|
numberOfMonths: 2,
|
|
3258
3258
|
onDayClick: p,
|
|
3259
3259
|
selectedDays: g,
|
|
@@ -3268,7 +3268,7 @@ const Gl = (t) => {
|
|
|
3268
3268
|
};
|
|
3269
3269
|
})());
|
|
3270
3270
|
};
|
|
3271
|
-
|
|
3271
|
+
Hl.defaultProps = {
|
|
3272
3272
|
options: [
|
|
3273
3273
|
{
|
|
3274
3274
|
id: "default",
|
|
@@ -3308,7 +3308,7 @@ const ii = (t) => {
|
|
|
3308
3308
|
"details-card__content": "lc-DetailsCard-module__details-card__content___RNVd2",
|
|
3309
3309
|
"details-card__content--spacing": "lc-DetailsCard-module__details-card__content--spacing___QecUa",
|
|
3310
3310
|
"details-card__content--full-space": "lc-DetailsCard-module__details-card__content--full-space___2ms8I"
|
|
3311
|
-
}, z = "details-card",
|
|
3311
|
+
}, z = "details-card", zl = ["input", "button", "select", "textarea", "a"], si = ({
|
|
3312
3312
|
children: t,
|
|
3313
3313
|
className: a,
|
|
3314
3314
|
leftNode: r,
|
|
@@ -3320,15 +3320,15 @@ const ii = (t) => {
|
|
|
3320
3320
|
hideLabelOnOpen: d,
|
|
3321
3321
|
onClick: i
|
|
3322
3322
|
}) => {
|
|
3323
|
-
const [s, p] = e.useState(c), [m, f] = e.useState(0), b = e.useRef(null),
|
|
3323
|
+
const [s, p] = e.useState(c), [m, f] = e.useState(0), b = e.useRef(null), v = u(
|
|
3324
3324
|
H[z],
|
|
3325
3325
|
l && H[`${z}--with-divider`],
|
|
3326
3326
|
a
|
|
3327
|
-
),
|
|
3327
|
+
), h = d && s, y = typeof o == "string", E = (w) => {
|
|
3328
3328
|
p((C) => !C), w.currentTarget.blur(), i == null || i(w);
|
|
3329
3329
|
}, $ = (w) => {
|
|
3330
3330
|
const g = w.target.tagName.toLowerCase();
|
|
3331
|
-
|
|
3331
|
+
zl.includes(g) || (p((N) => !N), i == null || i(w));
|
|
3332
3332
|
};
|
|
3333
3333
|
return e.useEffect(() => {
|
|
3334
3334
|
const w = !!window.IntersectionObserver;
|
|
@@ -3338,17 +3338,17 @@ const ii = (t) => {
|
|
|
3338
3338
|
});
|
|
3339
3339
|
return C.observe(b.current), () => C.disconnect();
|
|
3340
3340
|
}
|
|
3341
|
-
}, [b]), /* @__PURE__ */ e.createElement("div", { className:
|
|
3341
|
+
}, [b]), /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement(
|
|
3342
3342
|
"div",
|
|
3343
3343
|
{
|
|
3344
3344
|
className: u(
|
|
3345
3345
|
H[`${z}__label-wrapper`],
|
|
3346
3346
|
d && H[`${z}__label-wrapper--fading`],
|
|
3347
|
-
|
|
3347
|
+
h && H[`${z}__label-wrapper--hide`],
|
|
3348
3348
|
s && H[`${z}__label-wrapper--open`]
|
|
3349
3349
|
),
|
|
3350
3350
|
"aria-expanded": s,
|
|
3351
|
-
"aria-hidden":
|
|
3351
|
+
"aria-hidden": h,
|
|
3352
3352
|
"data-testid": "details-card-label",
|
|
3353
3353
|
onClick: $
|
|
3354
3354
|
},
|
|
@@ -3425,10 +3425,10 @@ const ii = (t) => {
|
|
|
3425
3425
|
}, rr = "details-card-info", di = ({
|
|
3426
3426
|
children: t,
|
|
3427
3427
|
label: a
|
|
3428
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: ar[rr] }, /* @__PURE__ */ e.createElement("div", { className: ar[`${rr}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: ar[`${rr}__content`] }, t)),
|
|
3428
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: ar[rr] }, /* @__PURE__ */ e.createElement("div", { className: ar[`${rr}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: ar[`${rr}__content`] }, t)), Kr = {
|
|
3429
3429
|
"field-error": "lc-FieldError-module__field-error___IDkPT",
|
|
3430
3430
|
"field-error__icon": "lc-FieldError-module__field-error__icon___D4UNC"
|
|
3431
|
-
},
|
|
3431
|
+
}, Yr = "field-error", Sr = (_) => {
|
|
3432
3432
|
var o = _, {
|
|
3433
3433
|
children: t,
|
|
3434
3434
|
className: a = ""
|
|
@@ -3436,12 +3436,12 @@ const ii = (t) => {
|
|
|
3436
3436
|
"children",
|
|
3437
3437
|
"className"
|
|
3438
3438
|
]);
|
|
3439
|
-
const l = u(
|
|
3439
|
+
const l = u(Kr[Yr], a);
|
|
3440
3440
|
return /* @__PURE__ */ e.createElement(B, T(k({ as: "span", size: "sm" }, r), { className: l }), /* @__PURE__ */ e.createElement(
|
|
3441
3441
|
x,
|
|
3442
3442
|
{
|
|
3443
3443
|
source: ca,
|
|
3444
|
-
className:
|
|
3444
|
+
className: Kr[`${Yr}__icon`],
|
|
3445
3445
|
size: "small"
|
|
3446
3446
|
}
|
|
3447
3447
|
), t);
|
|
@@ -3470,12 +3470,12 @@ const ii = (t) => {
|
|
|
3470
3470
|
[_r[`${or}--stretched`]]: l
|
|
3471
3471
|
});
|
|
3472
3472
|
return /* @__PURE__ */ e.createElement("div", T(k({}, n), { className: i }), a, _ && /* @__PURE__ */ e.createElement(Sr, null, _), r && /* @__PURE__ */ e.createElement(za, null, r));
|
|
3473
|
-
},
|
|
3474
|
-
form:
|
|
3475
|
-
form__header:
|
|
3476
|
-
form__footer:
|
|
3477
|
-
form__label:
|
|
3478
|
-
form__helper:
|
|
3473
|
+
}, Wl = "lc-Form-module__form___1nOYF", Vl = "lc-Form-module__form__header___U4B7t", Kl = "lc-Form-module__form__footer___1-sUX", Yl = "lc-Form-module__form__label___spg-J", ql = "lc-Form-module__form__helper___bhfwS", Kt = {
|
|
3474
|
+
form: Wl,
|
|
3475
|
+
form__header: Vl,
|
|
3476
|
+
form__footer: Kl,
|
|
3477
|
+
form__label: Yl,
|
|
3478
|
+
form__helper: ql
|
|
3479
3479
|
}, Yt = "form", mi = (n) => {
|
|
3480
3480
|
var c = n, {
|
|
3481
3481
|
className: t,
|
|
@@ -3643,8 +3643,8 @@ const ii = (t) => {
|
|
|
3643
3643
|
), _ && /* @__PURE__ */ e.createElement(B, { as: "div", size: "sm", className: xa[`${Ba}__helper`] }, _)),
|
|
3644
3644
|
a
|
|
3645
3645
|
);
|
|
3646
|
-
},
|
|
3647
|
-
input:
|
|
3646
|
+
}, Zl = "lc-Input-module__input___qeMAQ", Le = {
|
|
3647
|
+
input: Zl,
|
|
3648
3648
|
"input--focused": "lc-Input-module__input--focused___wQH5-",
|
|
3649
3649
|
"input--disabled": "lc-Input-module__input--disabled___HidXX",
|
|
3650
3650
|
"input--crop": "lc-Input-module__input--crop___uzJS8",
|
|
@@ -3658,13 +3658,13 @@ const ii = (t) => {
|
|
|
3658
3658
|
"input__icon--left": "lc-Input-module__input__icon--left___BcySs",
|
|
3659
3659
|
"input__icon--right": "lc-Input-module__input__icon--right___VefSK",
|
|
3660
3660
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
3661
|
-
},
|
|
3661
|
+
}, Oe = "input", qr = (t, a) => e.cloneElement(t.source, {
|
|
3662
3662
|
"data-testid": `input-icon-${t.place}`,
|
|
3663
3663
|
className: u(
|
|
3664
|
-
|
|
3665
|
-
|
|
3664
|
+
Le[`${Oe}__icon`],
|
|
3665
|
+
Le[`${Oe}__icon--${t.place}`],
|
|
3666
3666
|
{
|
|
3667
|
-
[
|
|
3667
|
+
[Le[`${Oe}__icon--disabled`]]: a
|
|
3668
3668
|
}
|
|
3669
3669
|
)
|
|
3670
3670
|
}), fi = e.forwardRef(
|
|
@@ -3686,18 +3686,18 @@ const ii = (t) => {
|
|
|
3686
3686
|
]);
|
|
3687
3687
|
const s = e.useRef(null);
|
|
3688
3688
|
e.useImperativeHandle(c, () => s.current, []);
|
|
3689
|
-
const [p, m] = e.useState(!1), [f, b] = e.useState(!1), { type:
|
|
3689
|
+
const [p, m] = e.useState(!1), [f, b] = e.useState(!1), { type: v, onFocus: h, onBlur: y } = n, E = u(
|
|
3690
3690
|
o,
|
|
3691
|
-
Oe
|
|
3692
|
-
|
|
3691
|
+
Le[Oe],
|
|
3692
|
+
Le[`${Oe}--${t}`],
|
|
3693
3693
|
{
|
|
3694
|
-
[
|
|
3695
|
-
[
|
|
3696
|
-
[
|
|
3697
|
-
[
|
|
3698
|
-
[
|
|
3694
|
+
[Le[`${Oe}--disabled`]]: r,
|
|
3695
|
+
[Le[`${Oe}--focused`]]: p,
|
|
3696
|
+
[Le[`${Oe}--error`]]: a,
|
|
3697
|
+
[Le[`${Oe}--crop`]]: l,
|
|
3698
|
+
[Le[`${Oe}--read-only`]]: n.readOnly
|
|
3699
3699
|
}
|
|
3700
|
-
), $ = r ? "var(--content-disabled)" : "var(--content-default)", w = f ?
|
|
3700
|
+
), $ = r ? "var(--content-disabled)" : "var(--content-default)", w = f ? R_ : M_, C = _ && _.place === "left", g = _ && v !== "password" && _.place === "right", N = () => {
|
|
3701
3701
|
var S;
|
|
3702
3702
|
(S = s.current) == null || S.focus();
|
|
3703
3703
|
};
|
|
@@ -3710,23 +3710,23 @@ const ii = (t) => {
|
|
|
3710
3710
|
"tab-index": "0",
|
|
3711
3711
|
onClick: N
|
|
3712
3712
|
},
|
|
3713
|
-
C &&
|
|
3713
|
+
C && qr(_, r),
|
|
3714
3714
|
/* @__PURE__ */ e.createElement(
|
|
3715
3715
|
"input",
|
|
3716
3716
|
T(k({}, n), {
|
|
3717
3717
|
ref: s,
|
|
3718
3718
|
onFocus: (S) => {
|
|
3719
|
-
m(!0),
|
|
3719
|
+
m(!0), h == null || h(S);
|
|
3720
3720
|
},
|
|
3721
3721
|
onBlur: (S) => {
|
|
3722
3722
|
m(!1), y == null || y(S);
|
|
3723
3723
|
},
|
|
3724
3724
|
disabled: r,
|
|
3725
|
-
type:
|
|
3725
|
+
type: v && !f ? v : "text"
|
|
3726
3726
|
})
|
|
3727
3727
|
),
|
|
3728
|
-
g &&
|
|
3729
|
-
|
|
3728
|
+
g && qr(_, r),
|
|
3729
|
+
v === "password" && /* @__PURE__ */ e.createElement(
|
|
3730
3730
|
W,
|
|
3731
3731
|
{
|
|
3732
3732
|
disabled: r,
|
|
@@ -3734,15 +3734,15 @@ const ii = (t) => {
|
|
|
3734
3734
|
size: "compact",
|
|
3735
3735
|
icon: /* @__PURE__ */ e.createElement(x, { customColor: $, source: w }),
|
|
3736
3736
|
onClick: () => b((S) => !S),
|
|
3737
|
-
className:
|
|
3737
|
+
className: Le[`${Oe}__visibility-button`]
|
|
3738
3738
|
}
|
|
3739
3739
|
)
|
|
3740
3740
|
);
|
|
3741
3741
|
}
|
|
3742
|
-
),
|
|
3743
|
-
link:
|
|
3742
|
+
), Xl = "lc-Link-module__link___kqx52", Zr = {
|
|
3743
|
+
link: Xl,
|
|
3744
3744
|
"link--bold": "lc-Link-module__link--bold___1rGdO"
|
|
3745
|
-
},
|
|
3745
|
+
}, Xr = "link", bi = (_) => {
|
|
3746
3746
|
var o = _, {
|
|
3747
3747
|
bold: t = !1,
|
|
3748
3748
|
className: a = ""
|
|
@@ -3754,13 +3754,13 @@ const ii = (t) => {
|
|
|
3754
3754
|
"a",
|
|
3755
3755
|
k({
|
|
3756
3756
|
className: u(
|
|
3757
|
-
|
|
3758
|
-
t &&
|
|
3757
|
+
Zr[Xr],
|
|
3758
|
+
t && Zr[`${Xr}--bold`],
|
|
3759
3759
|
a
|
|
3760
3760
|
)
|
|
3761
3761
|
}, r)
|
|
3762
3762
|
);
|
|
3763
|
-
},
|
|
3763
|
+
}, Jl = "lc-Modal-module__modal__body___M-jmN", jl = "lc-Modal-module__modal__header___Fp5VE", Ql = "lc-Modal-module__modal__heading___G9KVK", en = "lc-Modal-module__modal__footer___2LYdc", se = {
|
|
3764
3764
|
"modal-base": "lc-Modal-module__modal-base___hbL1U",
|
|
3765
3765
|
"fade-in": "lc-Modal-module__fade-in___gWlGs",
|
|
3766
3766
|
"modal-base--full-space": "lc-Modal-module__modal-base--full-space___KcGFL",
|
|
@@ -3769,14 +3769,14 @@ const ii = (t) => {
|
|
|
3769
3769
|
"modal-base__overlay--labelled": "lc-Modal-module__modal-base__overlay--labelled___THAo-",
|
|
3770
3770
|
"modal-base__close": "lc-Modal-module__modal-base__close___gJlgr",
|
|
3771
3771
|
"modal-base__close--label-type": "lc-Modal-module__modal-base__close--label-type___Om0Vb",
|
|
3772
|
-
modal__body:
|
|
3773
|
-
modal__header:
|
|
3772
|
+
modal__body: Jl,
|
|
3773
|
+
modal__header: jl,
|
|
3774
3774
|
"modal__header--without-heading": "lc-Modal-module__modal__header--without-heading___N2Bra",
|
|
3775
3775
|
"modal__label-header": "lc-Modal-module__modal__label-header___ZPtEy",
|
|
3776
|
-
modal__heading:
|
|
3776
|
+
modal__heading: Ql,
|
|
3777
3777
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
3778
|
-
modal__footer:
|
|
3779
|
-
}, qt = "modal-base",
|
|
3778
|
+
modal__footer: en
|
|
3779
|
+
}, qt = "modal-base", tn = (d) => {
|
|
3780
3780
|
var i = d, {
|
|
3781
3781
|
children: t,
|
|
3782
3782
|
className: a = "",
|
|
@@ -3811,7 +3811,7 @@ const ii = (t) => {
|
|
|
3811
3811
|
o && m.target === m.currentTarget && r();
|
|
3812
3812
|
};
|
|
3813
3813
|
return /* @__PURE__ */ e.createElement(
|
|
3814
|
-
|
|
3814
|
+
ao,
|
|
3815
3815
|
{
|
|
3816
3816
|
"data-testid": "lc-modal-overlay",
|
|
3817
3817
|
onMouseDown: p,
|
|
@@ -3831,7 +3831,7 @@ const ii = (t) => {
|
|
|
3831
3831
|
t
|
|
3832
3832
|
)
|
|
3833
3833
|
);
|
|
3834
|
-
},
|
|
3834
|
+
}, Jr = ({
|
|
3835
3835
|
labelType: t,
|
|
3836
3836
|
customColor: a,
|
|
3837
3837
|
onClick: r
|
|
@@ -3873,7 +3873,7 @@ const ii = (t) => {
|
|
|
3873
3873
|
b.preventDefault(), b.stopPropagation(), n();
|
|
3874
3874
|
};
|
|
3875
3875
|
return /* @__PURE__ */ e.createElement(
|
|
3876
|
-
|
|
3876
|
+
tn,
|
|
3877
3877
|
k({
|
|
3878
3878
|
className: p,
|
|
3879
3879
|
fullSpaceContent: o,
|
|
@@ -3889,7 +3889,7 @@ const ii = (t) => {
|
|
|
3889
3889
|
},
|
|
3890
3890
|
_
|
|
3891
3891
|
), /* @__PURE__ */ e.createElement(
|
|
3892
|
-
|
|
3892
|
+
Jr,
|
|
3893
3893
|
{
|
|
3894
3894
|
labelType: !!_,
|
|
3895
3895
|
customColor: "var(--color-white)",
|
|
@@ -3912,7 +3912,7 @@ const ii = (t) => {
|
|
|
3912
3912
|
},
|
|
3913
3913
|
r
|
|
3914
3914
|
),
|
|
3915
|
-
/* @__PURE__ */ e.createElement(
|
|
3915
|
+
/* @__PURE__ */ e.createElement(Jr, { onClick: f })
|
|
3916
3916
|
),
|
|
3917
3917
|
/* @__PURE__ */ e.createElement(
|
|
3918
3918
|
"div",
|
|
@@ -3937,7 +3937,7 @@ const ii = (t) => {
|
|
|
3937
3937
|
var n;
|
|
3938
3938
|
(n = document.querySelector(r)) == null || n.removeChild(o);
|
|
3939
3939
|
};
|
|
3940
|
-
}, [r]), /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
3940
|
+
}, [r]), /* @__PURE__ */ e.createElement(e.Fragment, null, n_.createPortal(t, o));
|
|
3941
3941
|
}, Zt = {
|
|
3942
3942
|
"modal-header": "lc-ModalHeader-module__modal-header___xk3bd",
|
|
3943
3943
|
"modal-header__heading-left-node": "lc-ModalHeader-module__modal-header__heading-left-node___1--G5",
|
|
@@ -3957,7 +3957,7 @@ const ii = (t) => {
|
|
|
3957
3957
|
className: Zt[`${Xt}__heading-left-node`]
|
|
3958
3958
|
}, a)
|
|
3959
3959
|
), r && /* @__PURE__ */ e.createElement(
|
|
3960
|
-
|
|
3960
|
+
sl,
|
|
3961
3961
|
k({
|
|
3962
3962
|
className: Zt[`${Xt}__heading-left-node`]
|
|
3963
3963
|
}, r)
|
|
@@ -4036,11 +4036,11 @@ const ii = (t) => {
|
|
|
4036
4036
|
[Pt[`${At}--disabled`]]: l
|
|
4037
4037
|
},
|
|
4038
4038
|
t
|
|
4039
|
-
), b = (g) => d(String(g)),
|
|
4039
|
+
), b = (g) => d(String(g)), v = (g) => _ !== void 0 && g > _ ? _ : o !== void 0 && g < o ? o : g, h = (g) => {
|
|
4040
4040
|
const N = parseInt(r, 10) + g;
|
|
4041
|
-
return b(
|
|
4041
|
+
return b(v(N));
|
|
4042
4042
|
}, y = (g) => {
|
|
4043
|
-
g.key === de.arrowDown && (g.preventDefault(),
|
|
4043
|
+
g.key === de.arrowDown && (g.preventDefault(), h(-1)), g.key === de.arrowUp && (g.preventDefault(), h(1));
|
|
4044
4044
|
}, E = (g, N) => N !== void 0 && parseInt(g, 10) === N, $ = (g) => {
|
|
4045
4045
|
g.preventDefault(), g.stopPropagation();
|
|
4046
4046
|
const N = g.currentTarget.value.replace(
|
|
@@ -4050,13 +4050,13 @@ const ii = (t) => {
|
|
|
4050
4050
|
if (N === "" || N === "-")
|
|
4051
4051
|
return b(N);
|
|
4052
4052
|
const S = parseInt(N, 10);
|
|
4053
|
-
return b(
|
|
4053
|
+
return b(v(S));
|
|
4054
4054
|
}, w = () => {
|
|
4055
4055
|
var g;
|
|
4056
|
-
return (g = m.current) == null || g.focus(),
|
|
4056
|
+
return (g = m.current) == null || g.focus(), h(1);
|
|
4057
4057
|
}, C = () => {
|
|
4058
4058
|
var g;
|
|
4059
|
-
return (g = m.current) == null || g.focus(),
|
|
4059
|
+
return (g = m.current) == null || g.focus(), h(-1);
|
|
4060
4060
|
};
|
|
4061
4061
|
return /* @__PURE__ */ e.createElement("div", { className: f, style: c }, /* @__PURE__ */ e.createElement(
|
|
4062
4062
|
"input",
|
|
@@ -4125,7 +4125,7 @@ const ii = (t) => {
|
|
|
4125
4125
|
"checklist-item__content__inner__description": "lc-CheckListItem-module__checklist-item__content__inner__description___FBp5h",
|
|
4126
4126
|
"checklist-item__content__inner__cta": "lc-CheckListItem-module__checklist-item__content__inner__cta___4s0rt",
|
|
4127
4127
|
"checklist-item__chevron": "lc-CheckListItem-module__checklist-item__chevron___1Fmqp"
|
|
4128
|
-
}, le = "checklist-item",
|
|
4128
|
+
}, le = "checklist-item", an = 3, rn = ({
|
|
4129
4129
|
id: t,
|
|
4130
4130
|
isActive: a,
|
|
4131
4131
|
isChecked: r,
|
|
@@ -4142,14 +4142,14 @@ const ii = (t) => {
|
|
|
4142
4142
|
}, [a]), e.useEffect(() => {
|
|
4143
4143
|
const b = !!window.ResizeObserver;
|
|
4144
4144
|
if (s.current && b) {
|
|
4145
|
-
const
|
|
4146
|
-
const y =
|
|
4145
|
+
const v = new ResizeObserver((h) => {
|
|
4146
|
+
const y = h[0];
|
|
4147
4147
|
if (!y)
|
|
4148
4148
|
return;
|
|
4149
|
-
const E = y.contentRect.height +
|
|
4149
|
+
const E = y.contentRect.height + an;
|
|
4150
4150
|
f.current !== E && (m(E), f.current = E);
|
|
4151
4151
|
});
|
|
4152
|
-
return
|
|
4152
|
+
return v.observe(s.current), () => v.disconnect();
|
|
4153
4153
|
}
|
|
4154
4154
|
}, [s]), /* @__PURE__ */ e.createElement(
|
|
4155
4155
|
"div",
|
|
@@ -4253,14 +4253,14 @@ const ii = (t) => {
|
|
|
4253
4253
|
className: i
|
|
4254
4254
|
}) => {
|
|
4255
4255
|
var $;
|
|
4256
|
-
const [s, p] = e.useState(c), [m, f] = e.useState(!c), [b,
|
|
4256
|
+
const [s, p] = e.useState(c), [m, f] = e.useState(!c), [b, v] = e.useState(void 0), h = e.useRef(null), y = d.height || 96, E = () => {
|
|
4257
4257
|
f((w) => !w);
|
|
4258
4258
|
};
|
|
4259
4259
|
return e.useEffect(() => {
|
|
4260
|
-
const w = d.delay || 1500, C =
|
|
4260
|
+
const w = d.delay || 1500, C = h.current;
|
|
4261
4261
|
if (c && C) {
|
|
4262
4262
|
const g = C.offsetHeight;
|
|
4263
|
-
|
|
4263
|
+
v(g);
|
|
4264
4264
|
const N = setTimeout(() => {
|
|
4265
4265
|
p(!0), f(!1);
|
|
4266
4266
|
}, w);
|
|
@@ -4271,7 +4271,7 @@ const ii = (t) => {
|
|
|
4271
4271
|
}, [c]), /* @__PURE__ */ e.createElement(
|
|
4272
4272
|
"div",
|
|
4273
4273
|
{
|
|
4274
|
-
ref:
|
|
4274
|
+
ref: h,
|
|
4275
4275
|
className: u(
|
|
4276
4276
|
Z[X],
|
|
4277
4277
|
{
|
|
@@ -4298,7 +4298,7 @@ const ii = (t) => {
|
|
|
4298
4298
|
},
|
|
4299
4299
|
r
|
|
4300
4300
|
)), /* @__PURE__ */ e.createElement("div", { className: Z[`${X}__checklist`] }, o.map((w, C) => /* @__PURE__ */ e.createElement(
|
|
4301
|
-
|
|
4301
|
+
rn,
|
|
4302
4302
|
{
|
|
4303
4303
|
key: C,
|
|
4304
4304
|
id: w.id,
|
|
@@ -4368,7 +4368,7 @@ const ii = (t) => {
|
|
|
4368
4368
|
}
|
|
4369
4369
|
)
|
|
4370
4370
|
);
|
|
4371
|
-
},
|
|
4371
|
+
}, _n = 2, on = 200, ln = 400;
|
|
4372
4372
|
[
|
|
4373
4373
|
...[...Array(100)].map((t, a) => ({
|
|
4374
4374
|
key: `option${a + 8}`,
|
|
@@ -4376,14 +4376,14 @@ const ii = (t) => {
|
|
|
4376
4376
|
disabled: a % 4 === 0
|
|
4377
4377
|
}))
|
|
4378
4378
|
];
|
|
4379
|
-
const Mt = "select-all",
|
|
4379
|
+
const Mt = "select-all", nn = (t, a) => {
|
|
4380
4380
|
const r = [];
|
|
4381
4381
|
return t.forEach((_, o) => {
|
|
4382
4382
|
a(_) && r.push(o);
|
|
4383
4383
|
}), r;
|
|
4384
4384
|
}, br = (t) => t.filter(
|
|
4385
4385
|
({ key: a, disabled: r, groupHeader: _ }) => !(a === Mt || r || _)
|
|
4386
|
-
), lr = ({ key: t }) => t,
|
|
4386
|
+
), lr = ({ key: t }) => t, jr = (t, a) => t.includes(a) ? t.filter((r) => r !== a) : [...t, a], fe = {
|
|
4387
4387
|
"item-wrapper": "lc-PickerListItem-module__item-wrapper___ETYMU",
|
|
4388
4388
|
"item-wrapper__first": "lc-PickerListItem-module__item-wrapper__first___uit1z",
|
|
4389
4389
|
"item-wrapper__last": "lc-PickerListItem-module__item-wrapper__last___cWmGF",
|
|
@@ -4398,7 +4398,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4398
4398
|
"picker-list__item__label": "lc-PickerListItem-module__picker-list__item__label___e0uwB",
|
|
4399
4399
|
"picker-list__item__main-label": "lc-PickerListItem-module__picker-list__item__main-label___YfUhr",
|
|
4400
4400
|
"picker-list__item__secondary-label": "lc-PickerListItem-module__picker-list__item__secondary-label___6xcMD"
|
|
4401
|
-
},
|
|
4401
|
+
}, Pe = "picker-list__item", cn = ({
|
|
4402
4402
|
index: t,
|
|
4403
4403
|
isActive: a,
|
|
4404
4404
|
isSelected: r,
|
|
@@ -4408,37 +4408,37 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4408
4408
|
item: n,
|
|
4409
4409
|
numberOfItems: c
|
|
4410
4410
|
}) => {
|
|
4411
|
-
const d = (s) => s != null && s.customElement ? /* @__PURE__ */ e.createElement("div", { className:
|
|
4412
|
-
|
|
4411
|
+
const d = (s) => s != null && s.customElement ? /* @__PURE__ */ e.createElement("div", { className: fe[`${Pe}__custom`] }, s.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, s.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
4412
|
+
Pl,
|
|
4413
4413
|
{
|
|
4414
|
-
className:
|
|
4414
|
+
className: fe[`${Pe}__checkbox`],
|
|
4415
4415
|
checked: r
|
|
4416
4416
|
}
|
|
4417
4417
|
), s.icon && /* @__PURE__ */ e.createElement(
|
|
4418
4418
|
x,
|
|
4419
4419
|
{
|
|
4420
|
-
className:
|
|
4420
|
+
className: fe[`${Pe}__icon`],
|
|
4421
4421
|
kind: "link",
|
|
4422
4422
|
source: s.icon
|
|
4423
4423
|
}
|
|
4424
4424
|
), s.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
4425
4425
|
"img",
|
|
4426
4426
|
{
|
|
4427
|
-
className: u(
|
|
4427
|
+
className: u(fe[`${Pe}__avatar`]),
|
|
4428
4428
|
src: s.avatarSrc,
|
|
4429
4429
|
alt: s.name
|
|
4430
4430
|
}
|
|
4431
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
4431
|
+
), /* @__PURE__ */ e.createElement("div", { className: fe[`${Pe}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
4432
4432
|
B,
|
|
4433
4433
|
{
|
|
4434
4434
|
as: "span",
|
|
4435
|
-
className: u([
|
|
4436
|
-
[
|
|
4435
|
+
className: u([fe[`${Pe}__label`]], {
|
|
4436
|
+
[fe[`${Pe}__main-label`]]: s.secondaryText
|
|
4437
4437
|
}),
|
|
4438
4438
|
"aria-disabled": s.disabled
|
|
4439
4439
|
},
|
|
4440
4440
|
s.name
|
|
4441
|
-
), s.secondaryText && /* @__PURE__ */ e.createElement("span", { className:
|
|
4441
|
+
), s.secondaryText && /* @__PURE__ */ e.createElement("span", { className: fe[`${Pe}__secondary-label`] }, s.secondaryText)));
|
|
4442
4442
|
if (n.groupHeader)
|
|
4443
4443
|
return /* @__PURE__ */ e.createElement(
|
|
4444
4444
|
"div",
|
|
@@ -4446,7 +4446,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4446
4446
|
id: `item-${t}`,
|
|
4447
4447
|
key: n.key,
|
|
4448
4448
|
role: "group",
|
|
4449
|
-
className:
|
|
4449
|
+
className: fe[`${Pe}__header`]
|
|
4450
4450
|
}, l()),
|
|
4451
4451
|
/* @__PURE__ */ e.createElement(ne, { size: "2xs", uppercase: !0, bold: !0, as: "div" }, n.name)
|
|
4452
4452
|
);
|
|
@@ -4468,9 +4468,9 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4468
4468
|
}, l({
|
|
4469
4469
|
onClick: () => i(n.key)
|
|
4470
4470
|
})), {
|
|
4471
|
-
className: u(
|
|
4472
|
-
[
|
|
4473
|
-
[
|
|
4471
|
+
className: u(fe["item-wrapper"], {
|
|
4472
|
+
[fe["item-wrapper__first"]]: t === 0 && !n.groupHeader,
|
|
4473
|
+
[fe["item-wrapper__last"]]: t === c - 1 && !n.groupHeader
|
|
4474
4474
|
})
|
|
4475
4475
|
}),
|
|
4476
4476
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4479,8 +4479,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4479
4479
|
"aria-selected": r,
|
|
4480
4480
|
"aria-disabled": n.disabled,
|
|
4481
4481
|
"aria-current": a && !n.disabled,
|
|
4482
|
-
className: u(
|
|
4483
|
-
[
|
|
4482
|
+
className: u(fe[Pe], {
|
|
4483
|
+
[fe[`${Pe}--select-all`]]: n.key === Mt
|
|
4484
4484
|
})
|
|
4485
4485
|
},
|
|
4486
4486
|
d(n),
|
|
@@ -4494,12 +4494,12 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4494
4494
|
)
|
|
4495
4495
|
)
|
|
4496
4496
|
);
|
|
4497
|
-
},
|
|
4498
|
-
listbox:
|
|
4497
|
+
}, sn = "lc-PickerList-module__listbox___-LqE-", Qt = {
|
|
4498
|
+
listbox: sn,
|
|
4499
4499
|
"no-results": "lc-PickerList-module__no-results___QRce-",
|
|
4500
4500
|
"listbox-wrapper": "lc-PickerList-module__listbox-wrapper___FbDrf",
|
|
4501
4501
|
"no-results-text": "lc-PickerList-module__no-results-text___Bp1yO"
|
|
4502
|
-
},
|
|
4502
|
+
}, dn = ({
|
|
4503
4503
|
context: t,
|
|
4504
4504
|
setFloating: a,
|
|
4505
4505
|
floatingStyles: r,
|
|
@@ -4515,11 +4515,11 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4515
4515
|
emptyStateText: m = "No results found",
|
|
4516
4516
|
pickerType: f = "single",
|
|
4517
4517
|
listClassName: b,
|
|
4518
|
-
virtuosoProps:
|
|
4518
|
+
virtuosoProps: v
|
|
4519
4519
|
}) => {
|
|
4520
|
-
const [
|
|
4520
|
+
const [h, y] = e.useState(0), E = o.length, $ = e.useCallback(
|
|
4521
4521
|
(C) => {
|
|
4522
|
-
C !==
|
|
4522
|
+
C !== h && (C < _ ? y(C + (E - 1) * _n) : y(_));
|
|
4523
4523
|
},
|
|
4524
4524
|
[E]
|
|
4525
4525
|
);
|
|
@@ -4566,16 +4566,16 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4566
4566
|
}
|
|
4567
4567
|
})),
|
|
4568
4568
|
/* @__PURE__ */ e.createElement(
|
|
4569
|
-
|
|
4569
|
+
no,
|
|
4570
4570
|
T(k({
|
|
4571
4571
|
totalListHeightChanged: $,
|
|
4572
|
-
style: { height: `${
|
|
4572
|
+
style: { height: `${h}px`, maxHeight: _ },
|
|
4573
4573
|
totalCount: o.length,
|
|
4574
4574
|
data: o,
|
|
4575
4575
|
increaseViewportBy: 200
|
|
4576
|
-
},
|
|
4576
|
+
}, v), {
|
|
4577
4577
|
itemContent: (C, g) => /* @__PURE__ */ e.createElement(
|
|
4578
|
-
|
|
4578
|
+
cn,
|
|
4579
4579
|
{
|
|
4580
4580
|
index: C,
|
|
4581
4581
|
getItemProps: p,
|
|
@@ -4591,7 +4591,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4591
4591
|
)
|
|
4592
4592
|
)
|
|
4593
4593
|
));
|
|
4594
|
-
},
|
|
4594
|
+
}, be = {
|
|
4595
4595
|
"picker-trigger": "lc-PickerTrigger-module__picker-trigger___-tjS0",
|
|
4596
4596
|
"picker-trigger--multi-select": "lc-PickerTrigger-module__picker-trigger--multi-select___av4Ws",
|
|
4597
4597
|
"picker-trigger--multi-select--with-items": "lc-PickerTrigger-module__picker-trigger--multi-select--with-items___7uI-R",
|
|
@@ -4609,7 +4609,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4609
4609
|
"picker-trigger--disabled": "lc-PickerTrigger-module__picker-trigger--disabled___4MGb4",
|
|
4610
4610
|
"picker-trigger--focused": "lc-PickerTrigger-module__picker-trigger--focused___vBA4d",
|
|
4611
4611
|
"picker-trigger--error": "lc-PickerTrigger-module__picker-trigger--error___yu6Dt"
|
|
4612
|
-
}, ie = "picker-trigger",
|
|
4612
|
+
}, ie = "picker-trigger", un = ({
|
|
4613
4613
|
setReference: t,
|
|
4614
4614
|
getReferenceProps: a,
|
|
4615
4615
|
testId: r,
|
|
@@ -4626,14 +4626,14 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4626
4626
|
setTriggerFocus: f
|
|
4627
4627
|
}) => {
|
|
4628
4628
|
const b = u(
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
o &&
|
|
4632
|
-
o && l &&
|
|
4633
|
-
c &&
|
|
4634
|
-
i &&
|
|
4635
|
-
s &&
|
|
4636
|
-
),
|
|
4629
|
+
be[ie],
|
|
4630
|
+
be[`${ie}--${_}`],
|
|
4631
|
+
o && be[`${ie}--multi-select`],
|
|
4632
|
+
o && l && be[`${ie}--multi-select--with-items`],
|
|
4633
|
+
c && be[`${ie}--disabled`],
|
|
4634
|
+
i && be[`${ie}--focused`],
|
|
4635
|
+
s && be[`${ie}--error`]
|
|
4636
|
+
), v = !n && l && !c && !d, h = (y) => {
|
|
4637
4637
|
y.stopPropagation(), p();
|
|
4638
4638
|
};
|
|
4639
4639
|
return e.useEffect(() => {
|
|
@@ -4657,9 +4657,9 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4657
4657
|
{
|
|
4658
4658
|
as: "div",
|
|
4659
4659
|
className: u(
|
|
4660
|
-
|
|
4661
|
-
|
|
4662
|
-
o && l &&
|
|
4660
|
+
be[`${ie}__content`],
|
|
4661
|
+
be[`${ie}__content--${_}`],
|
|
4662
|
+
o && l && be[`${ie}__content--with-items`]
|
|
4663
4663
|
)
|
|
4664
4664
|
},
|
|
4665
4665
|
m
|
|
@@ -4668,23 +4668,23 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4668
4668
|
"div",
|
|
4669
4669
|
{
|
|
4670
4670
|
className: u(
|
|
4671
|
-
|
|
4672
|
-
|
|
4671
|
+
be[`${ie}__controls`],
|
|
4672
|
+
be[`${ie}__controls--${_}`]
|
|
4673
4673
|
)
|
|
4674
4674
|
},
|
|
4675
|
-
|
|
4675
|
+
v && /* @__PURE__ */ e.createElement(
|
|
4676
4676
|
"div",
|
|
4677
4677
|
{
|
|
4678
4678
|
"data-testid": `${ie}__clear-icon`,
|
|
4679
|
-
className:
|
|
4680
|
-
onClick:
|
|
4679
|
+
className: be[`${ie}__clear-icon`],
|
|
4680
|
+
onClick: h
|
|
4681
4681
|
},
|
|
4682
4682
|
/* @__PURE__ */ e.createElement(x, { kind: "primary", size: "small", source: Ie })
|
|
4683
4683
|
),
|
|
4684
4684
|
/* @__PURE__ */ e.createElement(
|
|
4685
4685
|
x,
|
|
4686
4686
|
{
|
|
4687
|
-
className:
|
|
4687
|
+
className: be[`${ie}__chevron-icon`],
|
|
4688
4688
|
source: i ? Oa : Ot,
|
|
4689
4689
|
size: "medium",
|
|
4690
4690
|
disabled: c
|
|
@@ -4692,11 +4692,11 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4692
4692
|
)
|
|
4693
4693
|
)
|
|
4694
4694
|
);
|
|
4695
|
-
},
|
|
4696
|
-
tag:
|
|
4695
|
+
}, mn = "lc-Tag-module__tag___1QRVY", pn = "lc-Tag-module__tag__remove___UmtrW", gn = "lc-Tag-module__tag__node___rZTzB", fn = "lc-Tag-module__tag__content___q6vKK", we = {
|
|
4696
|
+
tag: mn,
|
|
4697
4697
|
"tag__content-wrapper": "lc-Tag-module__tag__content-wrapper___oyXA4",
|
|
4698
4698
|
"tag--success": "lc-Tag-module__tag--success___P2hXQ",
|
|
4699
|
-
tag__remove:
|
|
4699
|
+
tag__remove: pn,
|
|
4700
4700
|
"tag--error": "lc-Tag-module__tag--error___1cjsm",
|
|
4701
4701
|
"tag--warning": "lc-Tag-module__tag--warning___PstMG",
|
|
4702
4702
|
"tag--info": "lc-Tag-module__tag--info___RTH0C",
|
|
@@ -4724,10 +4724,10 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4724
4724
|
"tag--text-black": "lc-Tag-module__tag--text-black___dUvmD",
|
|
4725
4725
|
"tag--dismissible-on-hover": "lc-Tag-module__tag--dismissible-on-hover___t68Az",
|
|
4726
4726
|
"tag__remove--hover": "lc-Tag-module__tag__remove--hover___2ROEU",
|
|
4727
|
-
tag__node:
|
|
4728
|
-
tag__content:
|
|
4729
|
-
},
|
|
4730
|
-
var
|
|
4727
|
+
tag__node: gn,
|
|
4728
|
+
tag__content: fn
|
|
4729
|
+
}, Ce = "tag", bn = (t) => t ? yr(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", v_ = (v) => {
|
|
4730
|
+
var h = v, {
|
|
4731
4731
|
className: t = "",
|
|
4732
4732
|
children: a,
|
|
4733
4733
|
dismissible: r = !1,
|
|
@@ -4742,7 +4742,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4742
4742
|
customColor: p,
|
|
4743
4743
|
iconOnly: m = !1,
|
|
4744
4744
|
value: f
|
|
4745
|
-
} =
|
|
4745
|
+
} = h, b = D(h, [
|
|
4746
4746
|
"className",
|
|
4747
4747
|
"children",
|
|
4748
4748
|
"dismissible",
|
|
@@ -4759,15 +4759,15 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4759
4759
|
"value"
|
|
4760
4760
|
]);
|
|
4761
4761
|
const y = _ || c && m, E = u(
|
|
4762
|
-
Ce
|
|
4762
|
+
we[Ce],
|
|
4763
4763
|
t,
|
|
4764
|
-
|
|
4765
|
-
|
|
4764
|
+
we[`${Ce}--${l}`],
|
|
4765
|
+
we[`${Ce}--${n}`],
|
|
4766
4766
|
{
|
|
4767
|
-
[
|
|
4768
|
-
[
|
|
4769
|
-
[
|
|
4770
|
-
[
|
|
4767
|
+
[we[`${Ce}--outline`]]: d,
|
|
4768
|
+
[we[`${Ce}--${bn(p)}`]]: !!p,
|
|
4769
|
+
[we[`${Ce}--icon-only`]]: m,
|
|
4770
|
+
[we[`${Ce}--dismissible-on-hover`]]: y
|
|
4771
4771
|
}
|
|
4772
4772
|
), $ = l === "small" ? "small" : "medium", w = l === "small" ? "sm" : "md", C = () => p ? d ? {
|
|
4773
4773
|
style: {
|
|
@@ -4787,19 +4787,19 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4787
4787
|
as: "div",
|
|
4788
4788
|
size: w
|
|
4789
4789
|
}),
|
|
4790
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4790
|
+
/* @__PURE__ */ e.createElement("div", { className: we[`${Ce}__content-wrapper`] }, i && !m && /* @__PURE__ */ e.createElement(
|
|
4791
4791
|
"div",
|
|
4792
4792
|
{
|
|
4793
4793
|
"data-testid": "lc-tag-left-node",
|
|
4794
|
-
className:
|
|
4794
|
+
className: we[`${Ce}__node`],
|
|
4795
4795
|
style: { color: g() }
|
|
4796
4796
|
},
|
|
4797
4797
|
i
|
|
4798
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
4798
|
+
), /* @__PURE__ */ e.createElement("div", { className: we[`${Ce}__content`] }, f || a), s && !m && /* @__PURE__ */ e.createElement(
|
|
4799
4799
|
"div",
|
|
4800
4800
|
{
|
|
4801
4801
|
"data-testid": "lc-tag-right-node",
|
|
4802
|
-
className:
|
|
4802
|
+
className: we[`${Ce}__node`],
|
|
4803
4803
|
style: { color: g() }
|
|
4804
4804
|
},
|
|
4805
4805
|
s
|
|
@@ -4812,8 +4812,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4812
4812
|
onClick: c,
|
|
4813
4813
|
role: "button",
|
|
4814
4814
|
"aria-label": "Remove tag",
|
|
4815
|
-
className: u(
|
|
4816
|
-
[
|
|
4815
|
+
className: u(we[`${Ce}__remove`], {
|
|
4816
|
+
[we[`${Ce}__remove--hover`]]: y
|
|
4817
4817
|
})
|
|
4818
4818
|
},
|
|
4819
4819
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4827,7 +4827,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4827
4827
|
)
|
|
4828
4828
|
)
|
|
4829
4829
|
);
|
|
4830
|
-
},
|
|
4830
|
+
}, he = {
|
|
4831
4831
|
"picker-trigger-body": "lc-PickerTriggerBody-module__picker-trigger-body___xL0Rq",
|
|
4832
4832
|
"picker-trigger-body--single": "lc-PickerTriggerBody-module__picker-trigger-body--single___5LWZK",
|
|
4833
4833
|
"picker-trigger-body__item-container": "lc-PickerTriggerBody-module__picker-trigger-body__item-container___5Qs5E",
|
|
@@ -4845,7 +4845,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4845
4845
|
"picker-trigger-body__tag--compact": "lc-PickerTriggerBody-module__picker-trigger-body__tag--compact___vajtL",
|
|
4846
4846
|
"picker-trigger-body__tag--medium": "lc-PickerTriggerBody-module__picker-trigger-body__tag--medium___yhMyC",
|
|
4847
4847
|
"picker-trigger-body__tag--large": "lc-PickerTriggerBody-module__picker-trigger-body__tag--large___FbETT"
|
|
4848
|
-
},
|
|
4848
|
+
}, ve = "picker-trigger-body", hn = ({
|
|
4849
4849
|
isOpen: t,
|
|
4850
4850
|
isSearchDisabled: a,
|
|
4851
4851
|
isDisabled: r,
|
|
@@ -4861,39 +4861,39 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4861
4861
|
searchPhrase: m,
|
|
4862
4862
|
virtualItemRef: f,
|
|
4863
4863
|
isTriggerFocused: b,
|
|
4864
|
-
inputRef:
|
|
4864
|
+
inputRef: v
|
|
4865
4865
|
}) => {
|
|
4866
|
-
const
|
|
4866
|
+
const h = t && !a;
|
|
4867
4867
|
e.useEffect(() => {
|
|
4868
|
-
n &&
|
|
4868
|
+
n && v != null && v.current && v.current.focus();
|
|
4869
4869
|
}, [o, n]);
|
|
4870
4870
|
const y = (g) => {
|
|
4871
4871
|
g.key === "Backspace" && o && o.length > 0 && (g.preventDefault(), l === "multi" ? d(o[o.length - 1].key) : p()), g.key === "Delete" && (g.preventDefault(), p());
|
|
4872
4872
|
};
|
|
4873
4873
|
e.useEffect(() => (!t && b ? document.addEventListener("keydown", y) : document.removeEventListener("keydown", y), () => document.removeEventListener("keydown", y)), [t, o, b]);
|
|
4874
|
-
const E = (g) => l === "single" && t && !a ? null : g != null && g.customElement ? /* @__PURE__ */ e.createElement("div", { className:
|
|
4874
|
+
const E = (g) => l === "single" && t && !a ? null : g != null && g.customElement ? /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item`] }, g.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item`] }, g.icon && /* @__PURE__ */ e.createElement(
|
|
4875
4875
|
x,
|
|
4876
4876
|
{
|
|
4877
4877
|
source: g.icon,
|
|
4878
|
-
className:
|
|
4878
|
+
className: he[`${ve}__item__icon`]
|
|
4879
4879
|
}
|
|
4880
4880
|
), g.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
4881
4881
|
"img",
|
|
4882
4882
|
{
|
|
4883
4883
|
src: g.avatarSrc,
|
|
4884
4884
|
alt: "",
|
|
4885
|
-
className:
|
|
4885
|
+
className: he[`${ve}__item__avatar`]
|
|
4886
4886
|
}
|
|
4887
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
4887
|
+
), /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item__content`] }, g.name)), $ = (g) => s(g.target.value), w = (g) => {
|
|
4888
4888
|
var N, S;
|
|
4889
4889
|
(N = f.current) != null && N.id && g.key === "Enter" && i((S = f.current) == null ? void 0 : S.id), l === "multi" && (g.key === "Backspace" || g.key === "Delete") && !m && o && (o == null ? void 0 : o.length) > 0 && d(o[o.length - 1].key);
|
|
4890
4890
|
}, C = () => /* @__PURE__ */ e.createElement(
|
|
4891
4891
|
"input",
|
|
4892
4892
|
{
|
|
4893
|
-
ref:
|
|
4893
|
+
ref: v,
|
|
4894
4894
|
className: u(
|
|
4895
|
-
|
|
4896
|
-
|
|
4895
|
+
he[`${ve}__input`],
|
|
4896
|
+
he[`${ve}__input--${c}`]
|
|
4897
4897
|
),
|
|
4898
4898
|
placeholder: _,
|
|
4899
4899
|
onChange: $,
|
|
@@ -4902,29 +4902,29 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4902
4902
|
value: m
|
|
4903
4903
|
}
|
|
4904
4904
|
);
|
|
4905
|
-
return !o || o.length === 0 ?
|
|
4905
|
+
return !o || o.length === 0 ? h ? C() : /* @__PURE__ */ e.createElement(
|
|
4906
4906
|
"div",
|
|
4907
4907
|
{
|
|
4908
4908
|
className: u({
|
|
4909
|
-
[
|
|
4910
|
-
[
|
|
4909
|
+
[he[`${ve}__placeholder`]]: !0,
|
|
4910
|
+
[he[`${ve}__placeholder--disabled`]]: r
|
|
4911
4911
|
})
|
|
4912
4912
|
},
|
|
4913
4913
|
_
|
|
4914
4914
|
) : /* @__PURE__ */ e.createElement(
|
|
4915
4915
|
"div",
|
|
4916
4916
|
{
|
|
4917
|
-
className: u(ve
|
|
4918
|
-
[
|
|
4917
|
+
className: u(he[ve], {
|
|
4918
|
+
[he[`${ve}--single`]]: l === "single"
|
|
4919
4919
|
})
|
|
4920
4920
|
},
|
|
4921
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4922
|
-
|
|
4921
|
+
/* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item-container`] }, l === "single" ? E(o[0]) : o.map((g) => /* @__PURE__ */ e.createElement(
|
|
4922
|
+
v_,
|
|
4923
4923
|
{
|
|
4924
4924
|
key: g.key,
|
|
4925
4925
|
className: u(
|
|
4926
|
-
|
|
4927
|
-
|
|
4926
|
+
he[`${ve}__tag`],
|
|
4927
|
+
he[`${ve}__tag--${c}`]
|
|
4928
4928
|
),
|
|
4929
4929
|
disabled: r,
|
|
4930
4930
|
onRemove: (N) => {
|
|
@@ -4933,9 +4933,9 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4933
4933
|
},
|
|
4934
4934
|
E(g)
|
|
4935
4935
|
))),
|
|
4936
|
-
|
|
4936
|
+
h && C()
|
|
4937
4937
|
);
|
|
4938
|
-
},
|
|
4938
|
+
}, vn = 10, kn = ({
|
|
4939
4939
|
disabled: t,
|
|
4940
4940
|
items: a,
|
|
4941
4941
|
placement: r,
|
|
@@ -4948,9 +4948,9 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4948
4948
|
onVisibilityChange: i,
|
|
4949
4949
|
searchPhrase: s
|
|
4950
4950
|
}) => {
|
|
4951
|
-
const p = sa(), [m, f] = e.useState(!1), [b,
|
|
4951
|
+
const p = sa(), [m, f] = e.useState(!1), [b, v] = e.useState(null), [h, y] = e.useState(o), E = e.useRef([]), $ = e.useRef(null);
|
|
4952
4952
|
e.useEffect(() => {
|
|
4953
|
-
$.current = null,
|
|
4953
|
+
$.current = null, v(null);
|
|
4954
4954
|
}, [s]);
|
|
4955
4955
|
const { refs: w, floatingStyles: C, context: g, isPositioned: N } = da({
|
|
4956
4956
|
nodeId: p,
|
|
@@ -4963,34 +4963,34 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4963
4963
|
ua(4),
|
|
4964
4964
|
Ua({ padding: 10 }),
|
|
4965
4965
|
Er(),
|
|
4966
|
-
|
|
4967
|
-
apply({ availableHeight: L, rects: U, elements:
|
|
4968
|
-
|
|
4966
|
+
o_({
|
|
4967
|
+
apply({ availableHeight: L, rects: U, elements: $e }) {
|
|
4968
|
+
n_.flushSync(() => {
|
|
4969
4969
|
y(
|
|
4970
4970
|
Math.max(
|
|
4971
4971
|
Math.min(o, L),
|
|
4972
4972
|
_
|
|
4973
4973
|
)
|
|
4974
4974
|
);
|
|
4975
|
-
}), Object.assign(
|
|
4975
|
+
}), Object.assign($e.floating.style, {
|
|
4976
4976
|
width: `${U.reference.width}px`
|
|
4977
4977
|
});
|
|
4978
4978
|
},
|
|
4979
|
-
padding:
|
|
4979
|
+
padding: vn
|
|
4980
4980
|
})
|
|
4981
4981
|
]
|
|
4982
4982
|
}), S = pa(g, k({
|
|
4983
4983
|
enabled: !t,
|
|
4984
4984
|
keyboardHandlers: !1,
|
|
4985
4985
|
toggle: !1
|
|
4986
|
-
}, c)), M = fa(g, { role: "listbox" }), G = ga(g, n), I =
|
|
4986
|
+
}, c)), M = fa(g, { role: "listbox" }), G = ga(g, n), I = ro(g, {
|
|
4987
4987
|
enabled: a.length > 0 && !t,
|
|
4988
4988
|
listRef: E,
|
|
4989
4989
|
activeIndex: b,
|
|
4990
|
-
onNavigate:
|
|
4990
|
+
onNavigate: v,
|
|
4991
4991
|
virtual: !0,
|
|
4992
4992
|
virtualItemRef: $,
|
|
4993
|
-
disabledIndices:
|
|
4993
|
+
disabledIndices: nn(
|
|
4994
4994
|
a,
|
|
4995
4995
|
(L) => !!L.disabled || !!L.groupHeader
|
|
4996
4996
|
)
|
|
@@ -5010,11 +5010,11 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5010
5010
|
activeIndex: b,
|
|
5011
5011
|
listElementsRef: E,
|
|
5012
5012
|
virtualItemRef: $,
|
|
5013
|
-
maxHeight:
|
|
5013
|
+
maxHeight: h,
|
|
5014
5014
|
pointer: m,
|
|
5015
5015
|
setPointer: f
|
|
5016
5016
|
};
|
|
5017
|
-
},
|
|
5017
|
+
}, En = ({
|
|
5018
5018
|
selected: t,
|
|
5019
5019
|
options: a,
|
|
5020
5020
|
type: r,
|
|
@@ -5026,7 +5026,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5026
5026
|
}) => {
|
|
5027
5027
|
const [d, i] = e.useState(
|
|
5028
5028
|
() => (t == null ? void 0 : t.map(lr)) || []
|
|
5029
|
-
), s = t !== void 0, p = s ? (t == null ? void 0 : t.map(lr)) || [] : d, [m, f] = e.useState(""), b = (w) => f(w),
|
|
5029
|
+
), s = t !== void 0, p = s ? (t == null ? void 0 : t.map(lr)) || [] : d, [m, f] = e.useState(""), b = (w) => f(w), v = (w) => $(w), h = () => {
|
|
5030
5030
|
!s && i([]), o(null), f(""), l(!1);
|
|
5031
5031
|
}, y = () => {
|
|
5032
5032
|
b(""), c.current && (c.current.value = "");
|
|
@@ -5058,11 +5058,11 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5058
5058
|
});
|
|
5059
5059
|
else {
|
|
5060
5060
|
if (s) {
|
|
5061
|
-
const g = (t == null ? void 0 : t.map(lr)) || [], N =
|
|
5061
|
+
const g = (t == null ? void 0 : t.map(lr)) || [], N = jr(g, w);
|
|
5062
5062
|
o(a.filter(({ key: S }) => N.includes(S)));
|
|
5063
5063
|
} else
|
|
5064
5064
|
i((g) => {
|
|
5065
|
-
const N =
|
|
5065
|
+
const N = jr(g, w);
|
|
5066
5066
|
return o(a.filter(({ key: S }) => N.includes(S))), N;
|
|
5067
5067
|
});
|
|
5068
5068
|
n && y();
|
|
@@ -5074,18 +5074,18 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5074
5074
|
searchPhrase: m,
|
|
5075
5075
|
handleSelect: $,
|
|
5076
5076
|
handleOnFilter: b,
|
|
5077
|
-
handleItemRemove:
|
|
5078
|
-
handleClear:
|
|
5077
|
+
handleItemRemove: v,
|
|
5078
|
+
handleClear: h
|
|
5079
5079
|
};
|
|
5080
|
-
},
|
|
5080
|
+
}, yn = {
|
|
5081
5081
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___2EDne"
|
|
5082
5082
|
}, Ci = (Y) => {
|
|
5083
5083
|
var j = Y, {
|
|
5084
5084
|
id: t,
|
|
5085
5085
|
className: a,
|
|
5086
5086
|
listClassName: r,
|
|
5087
|
-
minListHeight: _ =
|
|
5088
|
-
maxListHeight: o =
|
|
5087
|
+
minListHeight: _ = on,
|
|
5088
|
+
maxListHeight: o = ln,
|
|
5089
5089
|
disabled: l,
|
|
5090
5090
|
error: n,
|
|
5091
5091
|
options: c,
|
|
@@ -5096,8 +5096,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5096
5096
|
noSearchResultText: m = "No results found",
|
|
5097
5097
|
selectAllOptionText: f,
|
|
5098
5098
|
type: b = "single",
|
|
5099
|
-
searchDisabled:
|
|
5100
|
-
hideClearButton:
|
|
5099
|
+
searchDisabled: v = !1,
|
|
5100
|
+
hideClearButton: h,
|
|
5101
5101
|
isVisible: y,
|
|
5102
5102
|
onOpen: E,
|
|
5103
5103
|
onClose: $,
|
|
@@ -5139,8 +5139,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5139
5139
|
"useClickHookProps",
|
|
5140
5140
|
"virtuosoProps"
|
|
5141
5141
|
]);
|
|
5142
|
-
const [L, U] = e.useState(w), [
|
|
5143
|
-
Gt ? !Ne && (E == null || E(
|
|
5142
|
+
const [L, U] = e.useState(w), [$e, Ke] = e.useState(!1), Ue = y !== void 0, Ne = Ue ? y : L, $t = e.useRef(null), ft = (Gt, me) => {
|
|
5143
|
+
Gt ? !Ne && (E == null || E(me)) : Ne && ($ == null || $(me)), !Ue && U(Gt);
|
|
5144
5144
|
}, {
|
|
5145
5145
|
selectedKeys: Nt,
|
|
5146
5146
|
items: bt,
|
|
@@ -5149,7 +5149,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5149
5149
|
handleOnFilter: St,
|
|
5150
5150
|
handleItemRemove: xt,
|
|
5151
5151
|
handleClear: P
|
|
5152
|
-
} =
|
|
5152
|
+
} = En({
|
|
5153
5153
|
selected: d,
|
|
5154
5154
|
options: c,
|
|
5155
5155
|
type: b,
|
|
@@ -5160,7 +5160,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5160
5160
|
inputRef: $t
|
|
5161
5161
|
}), {
|
|
5162
5162
|
context: V,
|
|
5163
|
-
nodeId:
|
|
5163
|
+
nodeId: ue,
|
|
5164
5164
|
getReferenceProps: Ye,
|
|
5165
5165
|
setReference: qe,
|
|
5166
5166
|
getFloatingProps: Wa,
|
|
@@ -5172,7 +5172,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5172
5172
|
activeIndex: Xa,
|
|
5173
5173
|
maxHeight: Ja,
|
|
5174
5174
|
setPointer: ja
|
|
5175
|
-
} =
|
|
5175
|
+
} = kn({
|
|
5176
5176
|
openedOnInit: w,
|
|
5177
5177
|
disabled: l,
|
|
5178
5178
|
items: bt,
|
|
@@ -5186,8 +5186,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5186
5186
|
onVisibilityChange: ft,
|
|
5187
5187
|
searchPhrase: lt
|
|
5188
5188
|
});
|
|
5189
|
-
return /* @__PURE__ */ e.createElement("div", { id: t, className: u(
|
|
5190
|
-
|
|
5189
|
+
return /* @__PURE__ */ e.createElement("div", { id: t, className: u(yn["picker-wrapper"], a) }, /* @__PURE__ */ e.createElement(
|
|
5190
|
+
un,
|
|
5191
5191
|
{
|
|
5192
5192
|
getReferenceProps: Ye,
|
|
5193
5193
|
setReference: qe,
|
|
@@ -5195,19 +5195,19 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5195
5195
|
isItemSelected: Nt.length > 0,
|
|
5196
5196
|
isOpen: Ne,
|
|
5197
5197
|
onClear: P,
|
|
5198
|
-
hideClearButton:
|
|
5198
|
+
hideClearButton: h,
|
|
5199
5199
|
isDisabled: l,
|
|
5200
5200
|
isError: n,
|
|
5201
5201
|
isRequired: p,
|
|
5202
5202
|
isMultiSelect: b === "multi",
|
|
5203
5203
|
size: i,
|
|
5204
|
-
setTriggerFocus:
|
|
5204
|
+
setTriggerFocus: Ke
|
|
5205
5205
|
},
|
|
5206
5206
|
/* @__PURE__ */ e.createElement(
|
|
5207
|
-
|
|
5207
|
+
hn,
|
|
5208
5208
|
{
|
|
5209
5209
|
isOpen: Ne,
|
|
5210
|
-
isSearchDisabled:
|
|
5210
|
+
isSearchDisabled: v,
|
|
5211
5211
|
isDisabled: l,
|
|
5212
5212
|
placeholder: s,
|
|
5213
5213
|
selectedItems: d,
|
|
@@ -5221,11 +5221,11 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5221
5221
|
onClear: P,
|
|
5222
5222
|
searchPhrase: lt,
|
|
5223
5223
|
virtualItemRef: Za,
|
|
5224
|
-
isTriggerFocused:
|
|
5224
|
+
isTriggerFocused: $e
|
|
5225
5225
|
}
|
|
5226
5226
|
)
|
|
5227
|
-
), /* @__PURE__ */ e.createElement(ha, { id:
|
|
5228
|
-
|
|
5227
|
+
), /* @__PURE__ */ e.createElement(ha, { id: ue }, Ne && /* @__PURE__ */ e.createElement(l_, null, /* @__PURE__ */ e.createElement(
|
|
5228
|
+
dn,
|
|
5229
5229
|
{
|
|
5230
5230
|
pickerType: b,
|
|
5231
5231
|
options: bt,
|
|
@@ -5245,8 +5245,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5245
5245
|
virtuosoProps: I
|
|
5246
5246
|
}
|
|
5247
5247
|
))));
|
|
5248
|
-
},
|
|
5249
|
-
popover:
|
|
5248
|
+
}, wn = "lc-Popover-module__popover___8X1b2", Cn = {
|
|
5249
|
+
popover: wn
|
|
5250
5250
|
}, $i = ({
|
|
5251
5251
|
triggerRenderer: t,
|
|
5252
5252
|
onClose: a,
|
|
@@ -5264,8 +5264,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5264
5264
|
useClickHookProps: f,
|
|
5265
5265
|
floatingStrategy: b
|
|
5266
5266
|
}) => {
|
|
5267
|
-
const [
|
|
5268
|
-
|
|
5267
|
+
const [v, h] = e.useState(s), y = Ga(), E = sa(), $ = i !== void 0, w = $ ? i : v, C = typeof _ == "string", g = typeof t == "function", N = (Ke, Ue) => {
|
|
5268
|
+
Ke ? r == null || r(Ue) : a == null || a(Ue), !$ && h(Ke);
|
|
5269
5269
|
}, { refs: S, context: M, floatingStyles: G } = da({
|
|
5270
5270
|
nodeId: E,
|
|
5271
5271
|
open: w,
|
|
@@ -5280,7 +5280,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5280
5280
|
I,
|
|
5281
5281
|
O,
|
|
5282
5282
|
Y
|
|
5283
|
-
]), U = u(
|
|
5283
|
+
]), U = u(Cn.popover, o), $e = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
5284
5284
|
"div",
|
|
5285
5285
|
T(k({
|
|
5286
5286
|
"data-testid": "popover-trigger-button",
|
|
@@ -5298,9 +5298,9 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5298
5298
|
}, L()),
|
|
5299
5299
|
C ? /* @__PURE__ */ e.createElement(B, { as: "div" }, _) : _
|
|
5300
5300
|
))));
|
|
5301
|
-
return y === null ? /* @__PURE__ */ e.createElement(Ha, null,
|
|
5301
|
+
return y === null ? /* @__PURE__ */ e.createElement(Ha, null, $e) : $e;
|
|
5302
5302
|
};
|
|
5303
|
-
function
|
|
5303
|
+
function $n(t, a, r, _) {
|
|
5304
5304
|
return _ && t === 0 ? _ : t === 1 ? a : r;
|
|
5305
5305
|
}
|
|
5306
5306
|
const Be = {
|
|
@@ -5316,7 +5316,7 @@ const Be = {
|
|
|
5316
5316
|
"product-tile__icon": "lc-ProductTile-module__product-tile__icon___ftUbr",
|
|
5317
5317
|
"product-tile__icon--large": "lc-ProductTile-module__product-tile__icon--large___ilwGY",
|
|
5318
5318
|
"product-tile__icon--expired": "lc-ProductTile-module__product-tile__icon--expired___Ne4jK"
|
|
5319
|
-
}, je = "product-tile",
|
|
5319
|
+
}, je = "product-tile", k_ = ({
|
|
5320
5320
|
icon: t,
|
|
5321
5321
|
iconColor: a,
|
|
5322
5322
|
expired: r,
|
|
@@ -5385,7 +5385,7 @@ const Be = {
|
|
|
5385
5385
|
"product-row__name": "lc-ProductRow-module__product-row__name___zxxMl",
|
|
5386
5386
|
"product-row__tooltip-icon": "lc-ProductRow-module__product-row__tooltip-icon___o5AMn",
|
|
5387
5387
|
"product-row__trial-tooltip": "lc-ProductRow-module__product-row__trial-tooltip___h6mp9"
|
|
5388
|
-
}, et = "product-row",
|
|
5388
|
+
}, et = "product-row", Nn = ({
|
|
5389
5389
|
product: {
|
|
5390
5390
|
id: t,
|
|
5391
5391
|
icon: a,
|
|
@@ -5394,37 +5394,36 @@ const Be = {
|
|
|
5394
5394
|
notificationCount: o,
|
|
5395
5395
|
name: l,
|
|
5396
5396
|
url: n,
|
|
5397
|
-
|
|
5398
|
-
|
|
5399
|
-
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
nameAdornment: m
|
|
5397
|
+
withDivider: c,
|
|
5398
|
+
shortcutKey: d,
|
|
5399
|
+
expired: i,
|
|
5400
|
+
trialDaysLeft: s,
|
|
5401
|
+
nameAdornment: p
|
|
5403
5402
|
},
|
|
5404
|
-
onClick:
|
|
5405
|
-
isActive:
|
|
5406
|
-
}) => /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
5403
|
+
onClick: m,
|
|
5404
|
+
isActive: f = !1
|
|
5405
|
+
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, c && /* @__PURE__ */ e.createElement("div", { className: Qe[`${et}__divider`] }), /* @__PURE__ */ e.createElement(
|
|
5407
5406
|
"a",
|
|
5408
5407
|
{
|
|
5409
5408
|
href: n,
|
|
5410
5409
|
target: "_blank",
|
|
5411
5410
|
"aria-label": `Go to ${l} product`,
|
|
5412
|
-
onClick: (
|
|
5411
|
+
onClick: (b) => m(b, t),
|
|
5413
5412
|
className: u(Qe[et], {
|
|
5414
|
-
[Qe[`${et}--expired`]]:
|
|
5413
|
+
[Qe[`${et}--expired`]]: i
|
|
5415
5414
|
})
|
|
5416
5415
|
},
|
|
5417
5416
|
/* @__PURE__ */ e.createElement("div", { className: Qe[`${et}__heading`] }, /* @__PURE__ */ e.createElement(
|
|
5418
|
-
|
|
5417
|
+
k_,
|
|
5419
5418
|
{
|
|
5420
5419
|
icon: a,
|
|
5421
5420
|
iconColor: r,
|
|
5422
|
-
expired:
|
|
5421
|
+
expired: i,
|
|
5423
5422
|
backgroundColors: _,
|
|
5424
5423
|
notificationCount: o,
|
|
5425
|
-
withBorder:
|
|
5424
|
+
withBorder: f
|
|
5426
5425
|
}
|
|
5427
|
-
), /* @__PURE__ */ e.createElement(B, { as: "div", bold: !0, className: Qe[`${et}__name`] }, l,
|
|
5426
|
+
), /* @__PURE__ */ e.createElement(B, { as: "div", bold: !0, className: Qe[`${et}__name`] }, l, i && /* @__PURE__ */ e.createElement(
|
|
5428
5427
|
Lt,
|
|
5429
5428
|
{
|
|
5430
5429
|
triggerRenderer: /* @__PURE__ */ e.createElement(
|
|
@@ -5437,7 +5436,7 @@ const Be = {
|
|
|
5437
5436
|
placement: "right"
|
|
5438
5437
|
},
|
|
5439
5438
|
"Your licence is expired"
|
|
5440
|
-
), typeof
|
|
5439
|
+
), typeof s != "undefined" && /* @__PURE__ */ e.createElement(
|
|
5441
5440
|
Lt,
|
|
5442
5441
|
{
|
|
5443
5442
|
className: Qe[`${et}__trial-tooltip`],
|
|
@@ -5450,92 +5449,206 @@ const Be = {
|
|
|
5450
5449
|
),
|
|
5451
5450
|
placement: "right"
|
|
5452
5451
|
},
|
|
5453
|
-
|
|
5452
|
+
s,
|
|
5454
5453
|
" trial ",
|
|
5455
|
-
|
|
5454
|
+
$n(s, "day", "days"),
|
|
5456
5455
|
" ",
|
|
5457
5456
|
"left in your trial. Time to upgrade"
|
|
5458
|
-
),
|
|
5459
|
-
|
|
5460
|
-
)), Nn = 'data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_24854_8994)"%3E%3Crect width="40" height="40" fill="%230066FF"/%3E%3Cg filter="url(%23filter0_f_24854_8994)"%3E%3Cpath d="M32.6382 31.0816C41.9891 31.0816 49.5694 23.5012 49.5694 14.1504C49.5694 4.79953 41.9891 -2.78082 32.6382 -2.78082C23.2874 -2.78082 15.707 4.79953 15.707 14.1504C15.707 23.5012 23.2874 31.0816 32.6382 31.0816Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter1_f_24854_8994)"%3E%3Cpath d="M10.417 50.1292C19.7679 50.1292 27.3482 42.5488 27.3482 33.198C27.3482 23.8471 19.7679 16.2668 10.417 16.2668C1.0662 16.2668 -6.51416 23.8471 -6.51416 33.198C-6.51416 42.5488 1.0662 50.1292 10.417 50.1292Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter2_f_24854_8994)"%3E%3Cpath d="M9.35788 16.2667C15.2022 16.2667 19.9399 11.529 19.9399 5.68472C19.9399 -0.159555 15.2022 -4.89728 9.35788 -4.89728C3.5136 -4.89728 -1.22412 -0.159555 -1.22412 5.68472C-1.22412 11.529 3.5136 16.2667 9.35788 16.2667Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter3_f_24854_8994)"%3E%3Cpath d="M7.24274 18.3831C13.6714 18.3831 18.8829 13.1716 18.8829 6.74292C18.8829 0.314217 13.6714 -4.89728 7.24274 -4.89728C0.814034 -4.89728 -4.39746 0.314217 -4.39746 6.74292C-4.39746 13.1716 0.814034 18.3831 7.24274 18.3831Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter4_f_24854_8994)"%3E%3Cpath d="M8.29938 21.5577C14.7281 21.5577 19.9396 16.3462 19.9396 9.91748C19.9396 3.48878 14.7281 -1.72272 8.29938 -1.72272C1.87068 -1.72272 -3.34082 3.48878 -3.34082 9.91748C-3.34082 16.3462 1.87068 21.5577 8.29938 21.5577Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter5_f_24854_8994)"%3E%3Cpath d="M33.6973 45.8964C40.126 45.8964 45.3375 40.6849 45.3375 34.2562C45.3375 27.8275 40.126 22.616 33.6973 22.616C27.2686 22.616 22.0571 27.8275 22.0571 34.2562C22.0571 40.6849 27.2686 45.8964 33.6973 45.8964Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter6_f_24854_8994)"%3E%3Cpath d="M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter7_f_24854_8994)"%3E%3Cpath d="M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter8_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter9_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter10_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter11_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter12_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter13_f_24854_8994)"%3E%3Cpath d="M9.35898 38.489C12.8655 38.489 15.7082 35.6463 15.7082 32.1398C15.7082 28.6332 12.8655 25.7906 9.35898 25.7906C5.8524 25.7906 3.00977 28.6332 3.00977 32.1398C3.00977 35.6463 5.8524 38.489 9.35898 38.489Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter14_f_24854_8994)"%3E%3Cpath d="M38.9871 31.0816C46.5846 31.0816 52.7437 24.9225 52.7437 17.325C52.7437 9.7274 46.5846 3.56836 38.9871 3.56836C31.3895 3.56836 25.2305 9.7274 25.2305 17.325C25.2305 24.9225 31.3895 31.0816 38.9871 31.0816Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter15_f_24854_8994)"%3E%3Cpath d="M38.9879 25.7905C45.4166 25.7905 50.6281 20.579 50.6281 14.1503C50.6281 7.72157 45.4166 2.51007 38.9879 2.51007C32.5592 2.51007 27.3477 7.72157 27.3477 14.1503C27.3477 20.579 32.5592 25.7905 38.9879 25.7905Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter16_f_24854_8994)"%3E%3Cpath d="M9.35868 21.5578C14.0341 21.5578 17.8243 17.7676 17.8243 13.0922C17.8243 8.41674 14.0341 4.62656 9.35868 4.62656C4.68325 4.62656 0.893066 8.41674 0.893066 13.0922C0.893066 17.7676 4.68325 21.5578 9.35868 21.5578Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter17_f_24854_8994)"%3E%3Cpath d="M31.5797 18.3831C35.0862 18.3831 37.9289 15.5404 37.9289 12.0339C37.9289 8.5273 35.0862 5.68466 31.5797 5.68466C28.0731 5.68466 25.2305 8.5273 25.2305 12.0339C25.2305 15.5404 28.0731 18.3831 31.5797 18.3831Z" fill="%23FF2E00"/%3E%3C/g%3E%3Cg filter="url(%23filter18_f_24854_8994)"%3E%3Cpath d="M12.5312 14.1503C18.3755 14.1503 23.1132 9.41257 23.1132 3.5683C23.1132 -2.27598 18.3755 -7.0137 12.5312 -7.0137C6.68694 -7.0137 1.94922 -2.27598 1.94922 3.5683C1.94922 9.41257 6.68694 14.1503 12.5312 14.1503Z" fill="%233851FF"/%3E%3C/g%3E%3Cg filter="url(%23filter19_f_24854_8994)"%3E%3Cpath d="M28.4057 13.0921C34.25 13.0921 38.9877 8.35441 38.9877 2.51013C38.9877 -3.33415 34.25 -8.07187 28.4057 -8.07187C22.5615 -8.07187 17.8237 -3.33415 17.8237 2.51013C17.8237 8.35441 22.5615 13.0921 28.4057 13.0921Z" fill="%23F3354D"/%3E%3C/g%3E%3Cg filter="url(%23filter20_f_24854_8994)"%3E%3Cpath d="M33.6958 48.0128C39.54 48.0128 44.2778 43.275 44.2778 37.4308C44.2778 31.5865 39.54 26.8488 33.6958 26.8488C27.8515 26.8488 23.1138 31.5865 23.1138 37.4308C23.1138 43.275 27.8515 48.0128 33.6958 48.0128Z" fill="%23FFD101"/%3E%3C/g%3E%3Cg filter="url(%23filter21_f_24854_8994)"%3E%3Cpath d="M8.30173 43.78C14.146 43.78 18.8837 39.0422 18.8837 33.198C18.8837 27.3537 14.146 22.616 8.30173 22.616C2.45745 22.616 -2.28027 27.3537 -2.28027 33.198C-2.28027 39.0422 2.45745 43.78 8.30173 43.78Z" fill="%237FCF35"/%3E%3C/g%3E%3Cg filter="url(%23filter22_f_24854_8994)"%3E%3Cpath d="M6.18454 34.2562C12.0288 34.2562 16.7665 29.5184 16.7665 23.6742C16.7665 17.8299 12.0288 13.0922 6.18454 13.0922C0.340261 13.0922 -4.39746 17.8299 -4.39746 23.6742C-4.39746 29.5184 0.340261 34.2562 6.18454 34.2562Z" fill="%231D7DD0"/%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3Cfilter id="filter0_f_24854_8994" x="-8.29297" y="-26.7808" width="81.8623" height="81.8624" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter1_f_24854_8994" x="-30.5142" y="-7.73322" width="81.8623" height="81.8624" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter2_f_24854_8994" x="-25.2241" y="-28.8973" width="69.1641" height="69.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter3_f_24854_8994" x="-28.3975" y="-28.8973" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter4_f_24854_8994" x="-27.3408" y="-25.7227" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter5_f_24854_8994" x="-1.94287" y="-1.38403" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter6_f_24854_8994" x="-6.17627" y="0.732361" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter7_f_24854_8994" x="-6.17627" y="0.732361" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter8_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter9_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter10_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter11_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter12_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter13_f_24854_8994" x="-20.9902" y="1.79056" width="60.6982" height="60.6984" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter14_f_24854_8994" x="1.23047" y="-20.4316" width="75.5132" height="75.5132" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter15_f_24854_8994" x="3.34766" y="-21.4899" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter16_f_24854_8994" x="-23.1069" y="-19.3734" width="64.9312" height="64.9312" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter17_f_24854_8994" x="1.23047" y="-18.3153" width="60.6982" height="60.6984" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter18_f_24854_8994" x="-9.05078" y="-18.0137" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter19_f_24854_8994" x="6.82373" y="-19.0719" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter20_f_24854_8994" x="12.1138" y="15.8488" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter21_f_24854_8994" x="-13.2803" y="11.616" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter22_f_24854_8994" x="-15.3975" y="2.09216" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3CclipPath id="clip0_24854_8994"%3E%3Crect width="40" height="40" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A', Sn = [
|
|
5457
|
+
), p)),
|
|
5458
|
+
d && /* @__PURE__ */ e.createElement(B, { size: "sm", className: Qe[`${et}__shortcut`] }, "⌘", d)
|
|
5459
|
+
)), ea = {
|
|
5460
|
+
"product-switcher": "lc-ProductSwitcher-module__product-switcher___mI-WG",
|
|
5461
|
+
"product-switcher__content": "lc-ProductSwitcher-module__product-switcher__content___6jGuY",
|
|
5462
|
+
"product-switcher__footer": "lc-ProductSwitcher-module__product-switcher__footer___V-2O1",
|
|
5463
|
+
"product-switcher__footer-link": "lc-ProductSwitcher-module__product-switcher__footer-link___NmChu",
|
|
5464
|
+
"product-switcher__tooltip": "lc-ProductSwitcher-module__product-switcher__tooltip___nKPYG"
|
|
5465
|
+
}, ta = "product-switcher", Ni = ({
|
|
5466
|
+
productOptions: t,
|
|
5467
|
+
mainProductId: a,
|
|
5468
|
+
openedOnInit: r = !1,
|
|
5469
|
+
isVisible: _,
|
|
5470
|
+
onOpen: o,
|
|
5471
|
+
onClose: l,
|
|
5472
|
+
onSelect: n,
|
|
5473
|
+
textURL: c = "https://www.text.com"
|
|
5474
|
+
}) => {
|
|
5475
|
+
const [d, i] = e.useState(r), [s, p] = T_(
|
|
5476
|
+
!1
|
|
5477
|
+
), m = Ga(), f = sa(), b = _ !== void 0, v = b ? _ : d, h = (L, U) => {
|
|
5478
|
+
L ? o == null || o(U) : l == null || l(U), !b && i(L);
|
|
5479
|
+
}, { refs: y, context: E, floatingStyles: $ } = da({
|
|
5480
|
+
nodeId: f,
|
|
5481
|
+
strategy: "fixed",
|
|
5482
|
+
placement: "right-start",
|
|
5483
|
+
open: v,
|
|
5484
|
+
onOpenChange: (L, U) => {
|
|
5485
|
+
p(!1), h(L, U);
|
|
5486
|
+
},
|
|
5487
|
+
middleware: [ua({ mainAxis: 5 })],
|
|
5488
|
+
whileElementsMounted: ma
|
|
5489
|
+
}), w = pa(E), C = fa(E), g = ga(E), { isMounted: N, styles: S } = kr(E, {
|
|
5490
|
+
duration: 200,
|
|
5491
|
+
common: {
|
|
5492
|
+
transformOrigin: "left top"
|
|
5493
|
+
},
|
|
5494
|
+
initial: {
|
|
5495
|
+
opacity: 0,
|
|
5496
|
+
transform: "scale(0.84) translateX(-22px)"
|
|
5497
|
+
}
|
|
5498
|
+
}), { getReferenceProps: M, getFloatingProps: G } = ba([
|
|
5499
|
+
w,
|
|
5500
|
+
g,
|
|
5501
|
+
C
|
|
5502
|
+
]), I = t.find(
|
|
5503
|
+
(L) => L.id === a
|
|
5504
|
+
);
|
|
5505
|
+
if (!I)
|
|
5506
|
+
return null;
|
|
5507
|
+
const O = (L, U) => {
|
|
5508
|
+
U === a && L.preventDefault(), i(!1), n == null || n(U);
|
|
5509
|
+
}, Y = t.reduce(
|
|
5510
|
+
(L, U) => L + (U.notificationCount || 0),
|
|
5511
|
+
0
|
|
5512
|
+
), j = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", k({ ref: y.setReference }, M()), /* @__PURE__ */ e.createElement(
|
|
5513
|
+
Lt,
|
|
5514
|
+
{
|
|
5515
|
+
isVisible: s,
|
|
5516
|
+
onOpen: () => p(!0),
|
|
5517
|
+
onClose: () => p(!1),
|
|
5518
|
+
offsetCrossAxis: 2,
|
|
5519
|
+
arrowOffsetY: 2,
|
|
5520
|
+
offsetMainAxis: 10,
|
|
5521
|
+
className: ea[`${ta}__tooltip`],
|
|
5522
|
+
placement: "right",
|
|
5523
|
+
floatingStrategy: "fixed",
|
|
5524
|
+
kind: "invert",
|
|
5525
|
+
triggerRenderer: /* @__PURE__ */ e.createElement(
|
|
5526
|
+
k_,
|
|
5527
|
+
{
|
|
5528
|
+
isMainProduct: !0,
|
|
5529
|
+
icon: I.icon,
|
|
5530
|
+
iconColor: I.iconColor,
|
|
5531
|
+
backgroundColors: I.backgroundColors,
|
|
5532
|
+
notificationCount: Y
|
|
5533
|
+
}
|
|
5534
|
+
)
|
|
5535
|
+
},
|
|
5536
|
+
"Switch product"
|
|
5537
|
+
)), /* @__PURE__ */ e.createElement(ha, { id: f }, /* @__PURE__ */ e.createElement(
|
|
5538
|
+
"div",
|
|
5539
|
+
k({
|
|
5540
|
+
ref: y.setFloating,
|
|
5541
|
+
style: $
|
|
5542
|
+
}, G()),
|
|
5543
|
+
N && /* @__PURE__ */ e.createElement(
|
|
5544
|
+
"div",
|
|
5545
|
+
{
|
|
5546
|
+
className: u("lc-dark-theme", ea[ta]),
|
|
5547
|
+
style: S
|
|
5548
|
+
},
|
|
5549
|
+
/* @__PURE__ */ e.createElement("div", { className: ea[`${ta}__content`] }, t.map((L) => /* @__PURE__ */ e.createElement(
|
|
5550
|
+
Nn,
|
|
5551
|
+
{
|
|
5552
|
+
key: L.id,
|
|
5553
|
+
isActive: L.id === a,
|
|
5554
|
+
product: L,
|
|
5555
|
+
onClick: O
|
|
5556
|
+
}
|
|
5557
|
+
))),
|
|
5558
|
+
/* @__PURE__ */ e.createElement("div", { className: ea[`${ta}__footer`] }, /* @__PURE__ */ e.createElement(
|
|
5559
|
+
"a",
|
|
5560
|
+
{
|
|
5561
|
+
href: c,
|
|
5562
|
+
target: "_blank",
|
|
5563
|
+
className: ea[`${ta}__footer-link`],
|
|
5564
|
+
onClick: () => h(!1)
|
|
5565
|
+
},
|
|
5566
|
+
/* @__PURE__ */ e.createElement(B, { noMargin: !0 }, "powered by"),
|
|
5567
|
+
/* @__PURE__ */ e.createElement(
|
|
5568
|
+
x,
|
|
5569
|
+
{
|
|
5570
|
+
size: "xlarge",
|
|
5571
|
+
source: L_,
|
|
5572
|
+
customColor: "var(--content-locked-white)"
|
|
5573
|
+
}
|
|
5574
|
+
)
|
|
5575
|
+
))
|
|
5576
|
+
)
|
|
5577
|
+
)));
|
|
5578
|
+
return m === null ? /* @__PURE__ */ e.createElement(Ha, null, j) : j;
|
|
5579
|
+
}, Sn = 'data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_24854_8994)"%3E%3Crect width="40" height="40" fill="%230066FF"/%3E%3Cg filter="url(%23filter0_f_24854_8994)"%3E%3Cpath d="M32.6382 31.0816C41.9891 31.0816 49.5694 23.5012 49.5694 14.1504C49.5694 4.79953 41.9891 -2.78082 32.6382 -2.78082C23.2874 -2.78082 15.707 4.79953 15.707 14.1504C15.707 23.5012 23.2874 31.0816 32.6382 31.0816Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter1_f_24854_8994)"%3E%3Cpath d="M10.417 50.1292C19.7679 50.1292 27.3482 42.5488 27.3482 33.198C27.3482 23.8471 19.7679 16.2668 10.417 16.2668C1.0662 16.2668 -6.51416 23.8471 -6.51416 33.198C-6.51416 42.5488 1.0662 50.1292 10.417 50.1292Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter2_f_24854_8994)"%3E%3Cpath d="M9.35788 16.2667C15.2022 16.2667 19.9399 11.529 19.9399 5.68472C19.9399 -0.159555 15.2022 -4.89728 9.35788 -4.89728C3.5136 -4.89728 -1.22412 -0.159555 -1.22412 5.68472C-1.22412 11.529 3.5136 16.2667 9.35788 16.2667Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter3_f_24854_8994)"%3E%3Cpath d="M7.24274 18.3831C13.6714 18.3831 18.8829 13.1716 18.8829 6.74292C18.8829 0.314217 13.6714 -4.89728 7.24274 -4.89728C0.814034 -4.89728 -4.39746 0.314217 -4.39746 6.74292C-4.39746 13.1716 0.814034 18.3831 7.24274 18.3831Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter4_f_24854_8994)"%3E%3Cpath d="M8.29938 21.5577C14.7281 21.5577 19.9396 16.3462 19.9396 9.91748C19.9396 3.48878 14.7281 -1.72272 8.29938 -1.72272C1.87068 -1.72272 -3.34082 3.48878 -3.34082 9.91748C-3.34082 16.3462 1.87068 21.5577 8.29938 21.5577Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter5_f_24854_8994)"%3E%3Cpath d="M33.6973 45.8964C40.126 45.8964 45.3375 40.6849 45.3375 34.2562C45.3375 27.8275 40.126 22.616 33.6973 22.616C27.2686 22.616 22.0571 27.8275 22.0571 34.2562C22.0571 40.6849 27.2686 45.8964 33.6973 45.8964Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter6_f_24854_8994)"%3E%3Cpath d="M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter7_f_24854_8994)"%3E%3Cpath d="M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter8_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter9_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter10_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter11_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter12_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter13_f_24854_8994)"%3E%3Cpath d="M9.35898 38.489C12.8655 38.489 15.7082 35.6463 15.7082 32.1398C15.7082 28.6332 12.8655 25.7906 9.35898 25.7906C5.8524 25.7906 3.00977 28.6332 3.00977 32.1398C3.00977 35.6463 5.8524 38.489 9.35898 38.489Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter14_f_24854_8994)"%3E%3Cpath d="M38.9871 31.0816C46.5846 31.0816 52.7437 24.9225 52.7437 17.325C52.7437 9.7274 46.5846 3.56836 38.9871 3.56836C31.3895 3.56836 25.2305 9.7274 25.2305 17.325C25.2305 24.9225 31.3895 31.0816 38.9871 31.0816Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter15_f_24854_8994)"%3E%3Cpath d="M38.9879 25.7905C45.4166 25.7905 50.6281 20.579 50.6281 14.1503C50.6281 7.72157 45.4166 2.51007 38.9879 2.51007C32.5592 2.51007 27.3477 7.72157 27.3477 14.1503C27.3477 20.579 32.5592 25.7905 38.9879 25.7905Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter16_f_24854_8994)"%3E%3Cpath d="M9.35868 21.5578C14.0341 21.5578 17.8243 17.7676 17.8243 13.0922C17.8243 8.41674 14.0341 4.62656 9.35868 4.62656C4.68325 4.62656 0.893066 8.41674 0.893066 13.0922C0.893066 17.7676 4.68325 21.5578 9.35868 21.5578Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter17_f_24854_8994)"%3E%3Cpath d="M31.5797 18.3831C35.0862 18.3831 37.9289 15.5404 37.9289 12.0339C37.9289 8.5273 35.0862 5.68466 31.5797 5.68466C28.0731 5.68466 25.2305 8.5273 25.2305 12.0339C25.2305 15.5404 28.0731 18.3831 31.5797 18.3831Z" fill="%23FF2E00"/%3E%3C/g%3E%3Cg filter="url(%23filter18_f_24854_8994)"%3E%3Cpath d="M12.5312 14.1503C18.3755 14.1503 23.1132 9.41257 23.1132 3.5683C23.1132 -2.27598 18.3755 -7.0137 12.5312 -7.0137C6.68694 -7.0137 1.94922 -2.27598 1.94922 3.5683C1.94922 9.41257 6.68694 14.1503 12.5312 14.1503Z" fill="%233851FF"/%3E%3C/g%3E%3Cg filter="url(%23filter19_f_24854_8994)"%3E%3Cpath d="M28.4057 13.0921C34.25 13.0921 38.9877 8.35441 38.9877 2.51013C38.9877 -3.33415 34.25 -8.07187 28.4057 -8.07187C22.5615 -8.07187 17.8237 -3.33415 17.8237 2.51013C17.8237 8.35441 22.5615 13.0921 28.4057 13.0921Z" fill="%23F3354D"/%3E%3C/g%3E%3Cg filter="url(%23filter20_f_24854_8994)"%3E%3Cpath d="M33.6958 48.0128C39.54 48.0128 44.2778 43.275 44.2778 37.4308C44.2778 31.5865 39.54 26.8488 33.6958 26.8488C27.8515 26.8488 23.1138 31.5865 23.1138 37.4308C23.1138 43.275 27.8515 48.0128 33.6958 48.0128Z" fill="%23FFD101"/%3E%3C/g%3E%3Cg filter="url(%23filter21_f_24854_8994)"%3E%3Cpath d="M8.30173 43.78C14.146 43.78 18.8837 39.0422 18.8837 33.198C18.8837 27.3537 14.146 22.616 8.30173 22.616C2.45745 22.616 -2.28027 27.3537 -2.28027 33.198C-2.28027 39.0422 2.45745 43.78 8.30173 43.78Z" fill="%237FCF35"/%3E%3C/g%3E%3Cg filter="url(%23filter22_f_24854_8994)"%3E%3Cpath d="M6.18454 34.2562C12.0288 34.2562 16.7665 29.5184 16.7665 23.6742C16.7665 17.8299 12.0288 13.0922 6.18454 13.0922C0.340261 13.0922 -4.39746 17.8299 -4.39746 23.6742C-4.39746 29.5184 0.340261 34.2562 6.18454 34.2562Z" fill="%231D7DD0"/%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3Cfilter id="filter0_f_24854_8994" x="-8.29297" y="-26.7808" width="81.8623" height="81.8624" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter1_f_24854_8994" x="-30.5142" y="-7.73322" width="81.8623" height="81.8624" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter2_f_24854_8994" x="-25.2241" y="-28.8973" width="69.1641" height="69.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter3_f_24854_8994" x="-28.3975" y="-28.8973" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter4_f_24854_8994" x="-27.3408" y="-25.7227" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter5_f_24854_8994" x="-1.94287" y="-1.38403" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter6_f_24854_8994" x="-6.17627" y="0.732361" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter7_f_24854_8994" x="-6.17627" y="0.732361" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter8_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter9_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter10_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter11_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter12_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter13_f_24854_8994" x="-20.9902" y="1.79056" width="60.6982" height="60.6984" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter14_f_24854_8994" x="1.23047" y="-20.4316" width="75.5132" height="75.5132" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter15_f_24854_8994" x="3.34766" y="-21.4899" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter16_f_24854_8994" x="-23.1069" y="-19.3734" width="64.9312" height="64.9312" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter17_f_24854_8994" x="1.23047" y="-18.3153" width="60.6982" height="60.6984" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter18_f_24854_8994" x="-9.05078" y="-18.0137" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter19_f_24854_8994" x="6.82373" y="-19.0719" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter20_f_24854_8994" x="12.1138" y="15.8488" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter21_f_24854_8994" x="-13.2803" y="11.616" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter22_f_24854_8994" x="-15.3975" y="2.09216" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3CclipPath id="clip0_24854_8994"%3E%3Crect width="40" height="40" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A', xn = [
|
|
5461
5580
|
{
|
|
5462
5581
|
id: "livechat",
|
|
5463
5582
|
name: "LiveChat",
|
|
5464
|
-
icon:
|
|
5583
|
+
icon: O_,
|
|
5465
5584
|
backgroundColors: {
|
|
5466
5585
|
main: "var(--products-livechat)",
|
|
5467
5586
|
second: "var(--products-helpdesk)",
|
|
5468
5587
|
third: "var(--products-chatbot)"
|
|
5469
5588
|
},
|
|
5470
|
-
url: ""
|
|
5471
|
-
redirectUri: ""
|
|
5589
|
+
url: ""
|
|
5472
5590
|
},
|
|
5473
5591
|
{
|
|
5474
5592
|
id: "chatbot",
|
|
5475
5593
|
name: "ChatBot",
|
|
5476
|
-
icon:
|
|
5594
|
+
icon: G_,
|
|
5477
5595
|
backgroundColors: {
|
|
5478
5596
|
main: "var(--products-chatbot)",
|
|
5479
5597
|
second: "var(--products-livechat)",
|
|
5480
5598
|
third: "var(--products-helpdesk)"
|
|
5481
5599
|
},
|
|
5482
|
-
url: ""
|
|
5483
|
-
redirectUri: ""
|
|
5600
|
+
url: ""
|
|
5484
5601
|
},
|
|
5485
5602
|
{
|
|
5486
5603
|
id: "helpdesk",
|
|
5487
5604
|
name: "HelpDesk",
|
|
5488
|
-
icon:
|
|
5605
|
+
icon: U_,
|
|
5489
5606
|
backgroundColors: {
|
|
5490
5607
|
main: "var(--products-helpdesk)",
|
|
5491
5608
|
second: "var(--products-livechat)",
|
|
5492
5609
|
third: "var(--products-chatbot)"
|
|
5493
5610
|
},
|
|
5494
5611
|
url: "",
|
|
5495
|
-
redirectUri: "",
|
|
5496
5612
|
expired: !0
|
|
5497
5613
|
},
|
|
5498
5614
|
{
|
|
5499
5615
|
id: "knowledgebase",
|
|
5500
5616
|
name: "KnowledgeBase",
|
|
5501
|
-
icon:
|
|
5617
|
+
icon: H_,
|
|
5502
5618
|
backgroundColors: {
|
|
5503
5619
|
main: "var(--products-knowledgebase)",
|
|
5504
5620
|
second: "var(--products-helpdesk)",
|
|
5505
5621
|
third: "var(--products-chatbot)"
|
|
5506
5622
|
},
|
|
5507
5623
|
url: "",
|
|
5508
|
-
redirectUri: "",
|
|
5509
5624
|
trialDaysLeft: 2
|
|
5510
5625
|
},
|
|
5511
5626
|
{
|
|
5512
5627
|
id: "openwidget",
|
|
5513
5628
|
name: "OpenWidget",
|
|
5514
|
-
icon:
|
|
5629
|
+
icon: z_,
|
|
5515
5630
|
backgroundColors: {
|
|
5516
|
-
main: `url('${
|
|
5631
|
+
main: `url('${Sn}')`,
|
|
5517
5632
|
second: "var(--products-livechat)",
|
|
5518
5633
|
third: "var(--products-chatbot)"
|
|
5519
5634
|
},
|
|
5520
|
-
url: ""
|
|
5521
|
-
redirectUri: ""
|
|
5635
|
+
url: ""
|
|
5522
5636
|
},
|
|
5523
5637
|
{
|
|
5524
5638
|
id: "hello",
|
|
5525
5639
|
name: "Hello",
|
|
5526
|
-
icon:
|
|
5640
|
+
icon: W_,
|
|
5527
5641
|
backgroundColors: {
|
|
5528
5642
|
main: "var(--products-hello)",
|
|
5529
5643
|
second: "var(--products-livechat)",
|
|
5530
5644
|
third: "var(--products-chatbot)"
|
|
5531
5645
|
},
|
|
5532
|
-
url: ""
|
|
5533
|
-
redirectUri: ""
|
|
5646
|
+
url: ""
|
|
5534
5647
|
},
|
|
5535
5648
|
{
|
|
5536
5649
|
id: "accounts",
|
|
5537
5650
|
name: "Accounts",
|
|
5538
|
-
icon:
|
|
5651
|
+
icon: V_,
|
|
5539
5652
|
backgroundColors: {
|
|
5540
5653
|
main: "var(--surface-locked-white)",
|
|
5541
5654
|
second: "var(--products-livechat)",
|
|
@@ -5543,10 +5656,9 @@ const Be = {
|
|
|
5543
5656
|
},
|
|
5544
5657
|
iconColor: "var(--content-locked-black)",
|
|
5545
5658
|
withDivider: !0,
|
|
5546
|
-
url: ""
|
|
5547
|
-
redirectUri: ""
|
|
5659
|
+
url: ""
|
|
5548
5660
|
}
|
|
5549
|
-
],
|
|
5661
|
+
], Bn = [
|
|
5550
5662
|
{
|
|
5551
5663
|
clientId: "58737b5829e65621a45d598aa6f2ed8e",
|
|
5552
5664
|
redirectUri: "https://my.labs.livechatinc.com",
|
|
@@ -5579,7 +5691,7 @@ const Be = {
|
|
|
5579
5691
|
redirectUri: "https://accounts.labs.livechat.com/panel",
|
|
5580
5692
|
product: "Accounts"
|
|
5581
5693
|
}
|
|
5582
|
-
],
|
|
5694
|
+
], In = [
|
|
5583
5695
|
{
|
|
5584
5696
|
clientId: "bb9e5b2f1ab480e4a715977b7b1b4279",
|
|
5585
5697
|
redirectUri: "https://my.staging.livechatinc.com",
|
|
@@ -5587,7 +5699,7 @@ const Be = {
|
|
|
5587
5699
|
},
|
|
5588
5700
|
{
|
|
5589
5701
|
clientId: "82837eac-ff5e-45ca-bce1-00011acf925c",
|
|
5590
|
-
redirectUri: "https://app.helpdesk.com",
|
|
5702
|
+
redirectUri: "https://app.staging.helpdesk.com",
|
|
5591
5703
|
product: "HelpDesk"
|
|
5592
5704
|
},
|
|
5593
5705
|
{
|
|
@@ -5612,7 +5724,7 @@ const Be = {
|
|
|
5612
5724
|
redirectUri: "https://accounts.staging.livechat.com/panel",
|
|
5613
5725
|
product: "Accounts"
|
|
5614
5726
|
}
|
|
5615
|
-
],
|
|
5727
|
+
], E_ = [
|
|
5616
5728
|
{
|
|
5617
5729
|
clientId: "bb9e5b2f1ab480e4a715977b7b1b4279",
|
|
5618
5730
|
redirectUri: "https://my.livechatinc.com",
|
|
@@ -5645,12 +5757,12 @@ const Be = {
|
|
|
5645
5757
|
redirectUri: "https://accounts.livechat.com/panel",
|
|
5646
5758
|
product: "Accounts"
|
|
5647
5759
|
}
|
|
5648
|
-
],
|
|
5760
|
+
], Tn = [
|
|
5649
5761
|
"livechat",
|
|
5650
5762
|
"chatbot",
|
|
5651
5763
|
"helpdesk",
|
|
5652
5764
|
"accounts"
|
|
5653
|
-
],
|
|
5765
|
+
], xr = {
|
|
5654
5766
|
livechat: "LiveChat",
|
|
5655
5767
|
helpdesk: "HelpDesk",
|
|
5656
5768
|
accounts: "Accounts",
|
|
@@ -5658,193 +5770,79 @@ const Be = {
|
|
|
5658
5770
|
chatbot: "ChatBot",
|
|
5659
5771
|
openwidget: "OpenWidget",
|
|
5660
5772
|
hello: "Hello"
|
|
5661
|
-
},
|
|
5662
|
-
let
|
|
5663
|
-
|
|
5773
|
+
}, Dn = (t, a, r, _, o) => {
|
|
5774
|
+
let l = "";
|
|
5775
|
+
o && o !== "prod" ? l += `https://accounts.${o}.livechat.com` : l += "https://accounts.livechat.com";
|
|
5776
|
+
const n = Rn(o, _), c = `${l}?client_id=${t}&redirect_uri=${encodeURIComponent(
|
|
5664
5777
|
a
|
|
5665
5778
|
)}&response_type=token&organization_id=${r}`;
|
|
5666
|
-
|
|
5779
|
+
return n ? `${c}&utm_source=${n}&utm_medium=referral&utm_campaign=productswitcher` : c;
|
|
5780
|
+
}, Pn = (t) => {
|
|
5667
5781
|
const a = new Date(t), r = /* @__PURE__ */ new Date();
|
|
5668
|
-
return
|
|
5669
|
-
},
|
|
5670
|
-
(r) => r.product ===
|
|
5671
|
-
),
|
|
5672
|
-
var
|
|
5673
|
-
const
|
|
5674
|
-
(
|
|
5782
|
+
return lo(a) ? 0 : wr(a, r);
|
|
5783
|
+
}, An = (t, a) => Tn.includes(t) || a.some(
|
|
5784
|
+
(r) => r.product === xr[t]
|
|
5785
|
+
), Fn = (t, a, r, _, o, l) => {
|
|
5786
|
+
var c, d, i, s, p;
|
|
5787
|
+
const n = a.find(
|
|
5788
|
+
(m) => m.product === xr[t.id]
|
|
5675
5789
|
);
|
|
5676
|
-
if (!
|
|
5790
|
+
if (!n)
|
|
5677
5791
|
throw new Error(`Product data for ${t.id} not found`);
|
|
5678
5792
|
return T(k({}, t), {
|
|
5679
|
-
trialDaysLeft: r[t.id] && ((
|
|
5680
|
-
expired: ((
|
|
5681
|
-
url:
|
|
5682
|
-
|
|
5683
|
-
|
|
5793
|
+
trialDaysLeft: r[t.id] && ((c = r[t.id]) == null ? void 0 : c.status) === "trial" && ((d = r[t.id]) != null && d.next_charge_at) ? Pn((s = (i = r[t.id]) == null ? void 0 : i.next_charge_at) != null ? s : "") : void 0,
|
|
5794
|
+
expired: ((p = r[t.id]) == null ? void 0 : p.status) === "expired",
|
|
5795
|
+
url: Dn(
|
|
5796
|
+
n.clientId,
|
|
5797
|
+
n.redirectUri,
|
|
5684
5798
|
_,
|
|
5685
|
-
o
|
|
5686
|
-
|
|
5687
|
-
|
|
5799
|
+
o,
|
|
5800
|
+
l
|
|
5801
|
+
)
|
|
5688
5802
|
});
|
|
5689
|
-
},
|
|
5803
|
+
}, y_ = (t) => {
|
|
5690
5804
|
switch (t) {
|
|
5691
5805
|
case "prod":
|
|
5692
|
-
return
|
|
5806
|
+
return E_;
|
|
5693
5807
|
case "staging":
|
|
5694
|
-
return
|
|
5808
|
+
return In;
|
|
5695
5809
|
case "labs":
|
|
5696
|
-
return
|
|
5810
|
+
return Bn;
|
|
5697
5811
|
default:
|
|
5698
5812
|
return [];
|
|
5699
5813
|
}
|
|
5700
|
-
}, Rn = (t, a
|
|
5701
|
-
const _ =
|
|
5702
|
-
|
|
5703
|
-
}, ea = {
|
|
5704
|
-
"product-switcher": "lc-ProductSwitcher-module__product-switcher___mI-WG",
|
|
5705
|
-
"product-switcher__content": "lc-ProductSwitcher-module__product-switcher__content___6jGuY",
|
|
5706
|
-
"product-switcher__footer": "lc-ProductSwitcher-module__product-switcher__footer___V-2O1",
|
|
5707
|
-
"product-switcher__footer-link": "lc-ProductSwitcher-module__product-switcher__footer-link___NmChu",
|
|
5708
|
-
"product-switcher__tooltip": "lc-ProductSwitcher-module__product-switcher__tooltip___nKPYG"
|
|
5709
|
-
}, ta = "product-switcher", Ni = ({
|
|
5710
|
-
productOptions: t,
|
|
5711
|
-
mainProductId: a,
|
|
5712
|
-
openedOnInit: r = !1,
|
|
5713
|
-
isVisible: _,
|
|
5714
|
-
onOpen: o,
|
|
5715
|
-
onClose: l,
|
|
5716
|
-
onSelect: n,
|
|
5717
|
-
textURL: c = "https://www.text.com"
|
|
5718
|
-
}) => {
|
|
5719
|
-
const [d, i] = e.useState(r), [s, p] = I_(
|
|
5720
|
-
!1
|
|
5721
|
-
), m = Ga(), f = sa(), b = _ !== void 0, h = b ? _ : d, v = (L, U) => {
|
|
5722
|
-
L ? o == null || o(U) : l == null || l(U), !b && i(L);
|
|
5723
|
-
}, { refs: y, context: E, floatingStyles: $ } = da({
|
|
5724
|
-
nodeId: f,
|
|
5725
|
-
strategy: "fixed",
|
|
5726
|
-
placement: "right-start",
|
|
5727
|
-
open: h,
|
|
5728
|
-
onOpenChange: (L, U) => {
|
|
5729
|
-
p(!1), v(L, U);
|
|
5730
|
-
},
|
|
5731
|
-
middleware: [ua({ mainAxis: 5 })],
|
|
5732
|
-
whileElementsMounted: ma
|
|
5733
|
-
}), w = pa(E), C = fa(E), g = ga(E), { isMounted: N, styles: S } = kr(E, {
|
|
5734
|
-
duration: 200,
|
|
5735
|
-
common: {
|
|
5736
|
-
transformOrigin: "left top"
|
|
5737
|
-
},
|
|
5738
|
-
initial: {
|
|
5739
|
-
opacity: 0,
|
|
5740
|
-
transform: "scale(0.84) translateX(-22px)"
|
|
5741
|
-
}
|
|
5742
|
-
}), { getReferenceProps: M, getFloatingProps: G } = ba([
|
|
5743
|
-
w,
|
|
5744
|
-
g,
|
|
5745
|
-
C
|
|
5746
|
-
]), I = t.find(
|
|
5747
|
-
(L) => L.id === a
|
|
5814
|
+
}, Rn = (t, a) => {
|
|
5815
|
+
const _ = y_(t).find(
|
|
5816
|
+
(o) => o.product === xr[a]
|
|
5748
5817
|
);
|
|
5749
|
-
|
|
5750
|
-
return null;
|
|
5751
|
-
const O = (L, U, ue, Te) => {
|
|
5752
|
-
L.preventDefault(), U !== a && Rn(ue, U, Te), i(!1), n == null || n(U);
|
|
5753
|
-
}, Y = t.reduce(
|
|
5754
|
-
(L, U) => L + (U.notificationCount || 0),
|
|
5755
|
-
0
|
|
5756
|
-
), j = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", k({ ref: y.setReference }, M()), /* @__PURE__ */ e.createElement(
|
|
5757
|
-
Lt,
|
|
5758
|
-
{
|
|
5759
|
-
isVisible: s,
|
|
5760
|
-
onOpen: () => p(!0),
|
|
5761
|
-
onClose: () => p(!1),
|
|
5762
|
-
offsetCrossAxis: 2,
|
|
5763
|
-
arrowOffsetY: 2,
|
|
5764
|
-
offsetMainAxis: 10,
|
|
5765
|
-
className: ea[`${ta}__tooltip`],
|
|
5766
|
-
placement: "right",
|
|
5767
|
-
floatingStrategy: "fixed",
|
|
5768
|
-
kind: "invert",
|
|
5769
|
-
triggerRenderer: /* @__PURE__ */ e.createElement(
|
|
5770
|
-
v_,
|
|
5771
|
-
{
|
|
5772
|
-
isMainProduct: !0,
|
|
5773
|
-
icon: I.icon,
|
|
5774
|
-
iconColor: I.iconColor,
|
|
5775
|
-
backgroundColors: I.backgroundColors,
|
|
5776
|
-
notificationCount: Y
|
|
5777
|
-
}
|
|
5778
|
-
)
|
|
5779
|
-
},
|
|
5780
|
-
"Switch product"
|
|
5781
|
-
)), /* @__PURE__ */ e.createElement(ha, { id: f }, /* @__PURE__ */ e.createElement(
|
|
5782
|
-
"div",
|
|
5783
|
-
k({
|
|
5784
|
-
ref: y.setFloating,
|
|
5785
|
-
style: $
|
|
5786
|
-
}, G()),
|
|
5787
|
-
N && /* @__PURE__ */ e.createElement(
|
|
5788
|
-
"div",
|
|
5789
|
-
{
|
|
5790
|
-
className: u("lc-dark-theme", ea[ta]),
|
|
5791
|
-
style: S
|
|
5792
|
-
},
|
|
5793
|
-
/* @__PURE__ */ e.createElement("div", { className: ea[`${ta}__content`] }, t.map((L) => /* @__PURE__ */ e.createElement(
|
|
5794
|
-
$n,
|
|
5795
|
-
{
|
|
5796
|
-
key: L.id,
|
|
5797
|
-
isActive: L.id === a,
|
|
5798
|
-
product: L,
|
|
5799
|
-
onClick: O
|
|
5800
|
-
}
|
|
5801
|
-
))),
|
|
5802
|
-
/* @__PURE__ */ e.createElement("div", { className: ea[`${ta}__footer`] }, /* @__PURE__ */ e.createElement(
|
|
5803
|
-
"a",
|
|
5804
|
-
{
|
|
5805
|
-
href: c,
|
|
5806
|
-
target: "_blank",
|
|
5807
|
-
className: ea[`${ta}__footer-link`],
|
|
5808
|
-
onClick: () => v(!1)
|
|
5809
|
-
},
|
|
5810
|
-
/* @__PURE__ */ e.createElement(B, { noMargin: !0 }, "powered by"),
|
|
5811
|
-
/* @__PURE__ */ e.createElement(
|
|
5812
|
-
x,
|
|
5813
|
-
{
|
|
5814
|
-
size: "xlarge",
|
|
5815
|
-
source: W_,
|
|
5816
|
-
customColor: "var(--content-locked-white)"
|
|
5817
|
-
}
|
|
5818
|
-
)
|
|
5819
|
-
))
|
|
5820
|
-
)
|
|
5821
|
-
)));
|
|
5822
|
-
return m === null ? /* @__PURE__ */ e.createElement(Ha, null, j) : j;
|
|
5818
|
+
return _ == null ? void 0 : _.redirectUri.replace("https://", "");
|
|
5823
5819
|
}, Si = ({
|
|
5824
|
-
env: t,
|
|
5820
|
+
env: t = "prod",
|
|
5825
5821
|
installedProducts: a,
|
|
5826
5822
|
subscriptions: r,
|
|
5827
|
-
organizationId: _
|
|
5823
|
+
organizationId: _,
|
|
5824
|
+
mainProductId: o
|
|
5828
5825
|
}) => {
|
|
5829
5826
|
if (!a || !r || !_)
|
|
5830
5827
|
throw new Error("Missing required parameters");
|
|
5831
|
-
const
|
|
5828
|
+
const l = t ? y_(t) : E_;
|
|
5832
5829
|
return {
|
|
5833
|
-
products:
|
|
5834
|
-
(
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
|
|
5830
|
+
products: xn.reduce(
|
|
5831
|
+
(n, c) => (An(c.id, a) && n.push(
|
|
5832
|
+
Fn(
|
|
5833
|
+
c,
|
|
5834
|
+
l,
|
|
5838
5835
|
r,
|
|
5839
5836
|
_,
|
|
5837
|
+
o,
|
|
5840
5838
|
t
|
|
5841
5839
|
)
|
|
5842
|
-
),
|
|
5840
|
+
), n),
|
|
5843
5841
|
[]
|
|
5844
5842
|
)
|
|
5845
5843
|
};
|
|
5846
5844
|
}, Mn = (t) => Math.min(Math.max(t, 0), 100);
|
|
5847
|
-
function
|
|
5845
|
+
function w_(t, a = 0) {
|
|
5848
5846
|
return t === "error" ? 0 : Mn(parseInt(a.toString(), 10));
|
|
5849
5847
|
}
|
|
5850
5848
|
const aa = {
|
|
@@ -5879,7 +5877,7 @@ const aa = {
|
|
|
5879
5877
|
"className",
|
|
5880
5878
|
"size"
|
|
5881
5879
|
]);
|
|
5882
|
-
const d =
|
|
5880
|
+
const d = w_(t, a), i = Ln[_], s = On[_], p = u(
|
|
5883
5881
|
aa[ra],
|
|
5884
5882
|
{
|
|
5885
5883
|
[aa[`${ra}--${_}`]]: _,
|
|
@@ -5944,7 +5942,7 @@ const aa = {
|
|
|
5944
5942
|
"size",
|
|
5945
5943
|
"className"
|
|
5946
5944
|
]);
|
|
5947
|
-
const d =
|
|
5945
|
+
const d = w_(t, a), i = u(
|
|
5948
5946
|
Ia[Ta],
|
|
5949
5947
|
{
|
|
5950
5948
|
[Ia[`${Ta}--${r}`]]: r,
|
|
@@ -5969,7 +5967,7 @@ const aa = {
|
|
|
5969
5967
|
)
|
|
5970
5968
|
);
|
|
5971
5969
|
}
|
|
5972
|
-
),
|
|
5970
|
+
), Ae = {
|
|
5973
5971
|
"promo-banner": "lc-PromoBanner-module__promo-banner___-mGpq",
|
|
5974
5972
|
"promo-banner__content": "lc-PromoBanner-module__promo-banner__content___kRWar",
|
|
5975
5973
|
"promo-banner__wrapper": "lc-PromoBanner-module__promo-banner__wrapper___I-8cl",
|
|
@@ -5981,7 +5979,7 @@ const aa = {
|
|
|
5981
5979
|
"promo-banner--small": "lc-PromoBanner-module__promo-banner--small___7sWLV",
|
|
5982
5980
|
"promo-banner--large": "lc-PromoBanner-module__promo-banner--large___pMiCU",
|
|
5983
5981
|
"promo-banner__close-icon": "lc-PromoBanner-module__promo-banner__close-icon___GowBL"
|
|
5984
|
-
}, Hn = 400, zn = 800, Wn = 500,
|
|
5982
|
+
}, Hn = 400, zn = 800, Wn = 500, Fe = "promo-banner", xi = ({
|
|
5985
5983
|
className: t,
|
|
5986
5984
|
buttonText: a,
|
|
5987
5985
|
children: r,
|
|
@@ -5994,38 +5992,38 @@ const aa = {
|
|
|
5994
5992
|
onLinkClick: i
|
|
5995
5993
|
}) => {
|
|
5996
5994
|
const s = e.useRef(null), [p, m] = e.useState("medium"), f = u(
|
|
5997
|
-
Fe
|
|
5995
|
+
Ae[Fe],
|
|
5998
5996
|
{
|
|
5999
|
-
[
|
|
6000
|
-
[
|
|
6001
|
-
[
|
|
5997
|
+
[Ae[`${Fe}--light`]]: l,
|
|
5998
|
+
[Ae[`${Fe}--small`]]: p === "small",
|
|
5999
|
+
[Ae[`${Fe}--large`]]: p === "large"
|
|
6002
6000
|
},
|
|
6003
6001
|
t
|
|
6004
6002
|
);
|
|
6005
6003
|
e.useEffect(() => {
|
|
6006
|
-
const
|
|
6007
|
-
|
|
6004
|
+
const v = () => s.current && s.current.offsetWidth <= Hn ? m("small") : s.current && s.current.offsetWidth >= zn ? m("large") : m("medium"), h = c_(
|
|
6005
|
+
v,
|
|
6008
6006
|
Wn
|
|
6009
6007
|
);
|
|
6010
|
-
return window.addEventListener("resize",
|
|
6011
|
-
|
|
6008
|
+
return window.addEventListener("resize", h), v(), () => {
|
|
6009
|
+
h.cancel(), window.removeEventListener("resize", h);
|
|
6012
6010
|
};
|
|
6013
6011
|
}, []);
|
|
6014
|
-
const b = /* @__PURE__ */ e.createElement("div", { className:
|
|
6012
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
6015
6013
|
W,
|
|
6016
6014
|
{
|
|
6017
6015
|
kind: "primary",
|
|
6018
6016
|
size: "compact",
|
|
6019
6017
|
onClick: c,
|
|
6020
|
-
className:
|
|
6018
|
+
className: Ae[`${Fe}__button-text`]
|
|
6021
6019
|
},
|
|
6022
6020
|
a
|
|
6023
6021
|
), n && /* @__PURE__ */ e.createElement(W, { size: "compact", kind: "text", onClick: i }, n));
|
|
6024
|
-
return /* @__PURE__ */ e.createElement("div", { ref: s, className: f }, /* @__PURE__ */ e.createElement("div", { className:
|
|
6022
|
+
return /* @__PURE__ */ e.createElement("div", { ref: s, className: f }, /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: Ae[`${Fe}__img`] }), /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__header`] }, _), /* @__PURE__ */ e.createElement(B, { as: "div" }, r), p !== "large" && b), p === "large" && b), d && /* @__PURE__ */ e.createElement(
|
|
6025
6023
|
"button",
|
|
6026
6024
|
{
|
|
6027
6025
|
type: "button",
|
|
6028
|
-
className:
|
|
6026
|
+
className: Ae[`${Fe}__close-icon`],
|
|
6029
6027
|
onClick: d
|
|
6030
6028
|
},
|
|
6031
6029
|
/* @__PURE__ */ e.createElement(x, { source: Ie, size: "large", kind: "primary" })
|
|
@@ -6134,7 +6132,7 @@ const aa = {
|
|
|
6134
6132
|
})
|
|
6135
6133
|
)), t && /* @__PURE__ */ e.createElement(B, { as: "div", size: "md", className: at[`${rt}__text`] }, t)), r && /* @__PURE__ */ e.createElement(za, { className: at[`${rt}__helper`] }, r));
|
|
6136
6134
|
}
|
|
6137
|
-
),
|
|
6135
|
+
), Re = {
|
|
6138
6136
|
"search-input": "lc-Search-module__search-input___FsbCk",
|
|
6139
6137
|
"search-input--compact": "lc-Search-module__search-input--compact___498To",
|
|
6140
6138
|
"search-input--medium": "lc-Search-module__search-input--medium___Hwteg",
|
|
@@ -6148,7 +6146,7 @@ const aa = {
|
|
|
6148
6146
|
"search-input__loader": "lc-Search-module__search-input__loader___pkpIG",
|
|
6149
6147
|
"search-input__input-wrapper": "lc-Search-module__search-input__input-wrapper___k8bvn",
|
|
6150
6148
|
"search-input__input-wrapper--crop": "lc-Search-module__search-input__input-wrapper--crop___nBPKY"
|
|
6151
|
-
},
|
|
6149
|
+
}, We = "search-input", Qr = `${We}__input-wrapper`, Ti = ({
|
|
6152
6150
|
isCollapsable: t,
|
|
6153
6151
|
isDisabled: a,
|
|
6154
6152
|
isLoading: r,
|
|
@@ -6159,14 +6157,14 @@ const aa = {
|
|
|
6159
6157
|
cropOnBlur: c = !0,
|
|
6160
6158
|
onChange: d
|
|
6161
6159
|
}) => {
|
|
6162
|
-
const [i, s] = e.useState(!0), [p, m] = e.useState(!1), f = e.useRef(null), b = !!l && !a && !r,
|
|
6160
|
+
const [i, s] = e.useState(!0), [p, m] = e.useState(!1), f = e.useRef(null), b = !!l && !a && !r, v = t && !i && "true", h = u(
|
|
6163
6161
|
n,
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
p &&
|
|
6167
|
-
a &&
|
|
6168
|
-
t &&
|
|
6169
|
-
!i &&
|
|
6162
|
+
Re[We],
|
|
6163
|
+
Re[`${We}--${o}`],
|
|
6164
|
+
p && Re[`${We}--focused`],
|
|
6165
|
+
a && Re[`${We}--disabled`],
|
|
6166
|
+
t && Re[`${We}--collapsable`],
|
|
6167
|
+
!i && Re[`${We}--collapsable--open`]
|
|
6170
6168
|
);
|
|
6171
6169
|
e.useEffect(() => {
|
|
6172
6170
|
t && l && s(!1);
|
|
@@ -6189,16 +6187,16 @@ const aa = {
|
|
|
6189
6187
|
return /* @__PURE__ */ e.createElement(
|
|
6190
6188
|
"div",
|
|
6191
6189
|
{
|
|
6192
|
-
"aria-expanded":
|
|
6190
|
+
"aria-expanded": v,
|
|
6193
6191
|
role: "search",
|
|
6194
|
-
className:
|
|
6192
|
+
className: h,
|
|
6195
6193
|
onClick: $
|
|
6196
6194
|
},
|
|
6197
6195
|
/* @__PURE__ */ e.createElement(
|
|
6198
6196
|
x,
|
|
6199
6197
|
{
|
|
6200
|
-
className:
|
|
6201
|
-
source:
|
|
6198
|
+
className: Re[`${We}__search-icon`],
|
|
6199
|
+
source: K_,
|
|
6202
6200
|
disabled: a,
|
|
6203
6201
|
kind: "primary"
|
|
6204
6202
|
}
|
|
@@ -6208,8 +6206,8 @@ const aa = {
|
|
|
6208
6206
|
{
|
|
6209
6207
|
as: "div",
|
|
6210
6208
|
className: u(
|
|
6211
|
-
|
|
6212
|
-
c &&
|
|
6209
|
+
Re[Qr],
|
|
6210
|
+
c && Re[`${Qr}--crop`]
|
|
6213
6211
|
)
|
|
6214
6212
|
},
|
|
6215
6213
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6233,14 +6231,14 @@ const aa = {
|
|
|
6233
6231
|
{
|
|
6234
6232
|
"aria-label": "Clear search",
|
|
6235
6233
|
title: "Clear search",
|
|
6236
|
-
className:
|
|
6234
|
+
className: Re[`${We}__clear-icon`],
|
|
6237
6235
|
onClick: E,
|
|
6238
6236
|
icon: /* @__PURE__ */ e.createElement(x, { source: Ie, kind: "primary" }),
|
|
6239
6237
|
kind: "text",
|
|
6240
6238
|
size: "compact"
|
|
6241
6239
|
}
|
|
6242
6240
|
),
|
|
6243
|
-
r && /* @__PURE__ */ e.createElement("div", { className:
|
|
6241
|
+
r && /* @__PURE__ */ e.createElement("div", { className: Re[`${We}__loader`] }, /* @__PURE__ */ e.createElement(Cr, { size: "small" }))
|
|
6244
6242
|
);
|
|
6245
6243
|
}, Vn = "lc-Skeleton-module__loading___MHvGo", Ct = {
|
|
6246
6244
|
"skeleton-wrapper": "lc-Skeleton-module__skeleton-wrapper___MXuR8",
|
|
@@ -6251,7 +6249,7 @@ const aa = {
|
|
|
6251
6249
|
loading: Vn,
|
|
6252
6250
|
"skeleton-text": "lc-Skeleton-module__skeleton-text___rgElk",
|
|
6253
6251
|
"skeleton-text--animated": "lc-Skeleton-module__skeleton-text--animated___xOUsy"
|
|
6254
|
-
},
|
|
6252
|
+
}, e_ = "skeleton-wrapper", Di = (o) => {
|
|
6255
6253
|
var l = o, {
|
|
6256
6254
|
children: t,
|
|
6257
6255
|
vertical: a,
|
|
@@ -6267,8 +6265,8 @@ const aa = {
|
|
|
6267
6265
|
return /* @__PURE__ */ e.createElement(
|
|
6268
6266
|
"div",
|
|
6269
6267
|
k({
|
|
6270
|
-
className: u(Ct[`${
|
|
6271
|
-
[Ct[`${
|
|
6268
|
+
className: u(Ct[`${e_}`], {
|
|
6269
|
+
[Ct[`${e_}--vertical`]]: a
|
|
6272
6270
|
})
|
|
6273
6271
|
}, _),
|
|
6274
6272
|
n
|
|
@@ -6289,15 +6287,15 @@ const aa = {
|
|
|
6289
6287
|
height: a
|
|
6290
6288
|
}
|
|
6291
6289
|
}
|
|
6292
|
-
),
|
|
6290
|
+
), t_ = "skeleton-text", Ai = ({
|
|
6293
6291
|
height: t = 13,
|
|
6294
6292
|
width: a,
|
|
6295
6293
|
animated: r
|
|
6296
6294
|
}) => /* @__PURE__ */ e.createElement(
|
|
6297
6295
|
"div",
|
|
6298
6296
|
{
|
|
6299
|
-
className: u(Ct[`${
|
|
6300
|
-
[Ct[`${
|
|
6297
|
+
className: u(Ct[`${t_}`], {
|
|
6298
|
+
[Ct[`${t_}--animated`]]: r
|
|
6301
6299
|
}),
|
|
6302
6300
|
style: {
|
|
6303
6301
|
height: t,
|
|
@@ -6390,17 +6388,17 @@ const aa = {
|
|
|
6390
6388
|
"innerRef",
|
|
6391
6389
|
"ariaLabel"
|
|
6392
6390
|
]);
|
|
6393
|
-
const f = o !== void 0, [b,
|
|
6391
|
+
const f = o !== void 0, [b, v] = e.useState(
|
|
6394
6392
|
() => f ? o : a
|
|
6395
|
-
), [
|
|
6393
|
+
), [h, y] = e.useState(!1), E = f ? o : b, $ = c === "loading", w = c === "locked", C = n === "large" ? "small" : "xsmall", g = E ? "on" : "off", N = r || $ || w, S = N ? "disabled" : "enabled", M = u(
|
|
6396
6394
|
ae[te],
|
|
6397
6395
|
ae[`${te}--${n}`],
|
|
6398
6396
|
{
|
|
6399
|
-
[ae[`${te}--focused`]]:
|
|
6397
|
+
[ae[`${te}--focused`]]: h
|
|
6400
6398
|
},
|
|
6401
6399
|
t
|
|
6402
6400
|
), G = (I) => {
|
|
6403
|
-
l == null || l(I, !E), f || (I.stopPropagation(),
|
|
6401
|
+
l == null || l(I, !E), f || (I.stopPropagation(), v((O) => !O));
|
|
6404
6402
|
};
|
|
6405
6403
|
return /* @__PURE__ */ e.createElement("span", { className: M }, /* @__PURE__ */ e.createElement(
|
|
6406
6404
|
"input",
|
|
@@ -6424,7 +6422,7 @@ const aa = {
|
|
|
6424
6422
|
"span",
|
|
6425
6423
|
{
|
|
6426
6424
|
className: u(ae[`${te}__container`], {
|
|
6427
|
-
[ae[`${te}__container--focused`]]:
|
|
6425
|
+
[ae[`${te}__container--focused`]]: h
|
|
6428
6426
|
})
|
|
6429
6427
|
},
|
|
6430
6428
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6463,7 +6461,7 @@ const aa = {
|
|
|
6463
6461
|
className: ae[`${te}__icon`],
|
|
6464
6462
|
"data-testid": "lock-icon",
|
|
6465
6463
|
size: C,
|
|
6466
|
-
source:
|
|
6464
|
+
source: Y_,
|
|
6467
6465
|
kind: "primary"
|
|
6468
6466
|
}
|
|
6469
6467
|
)
|
|
@@ -6526,16 +6524,16 @@ const aa = {
|
|
|
6526
6524
|
}
|
|
6527
6525
|
)
|
|
6528
6526
|
);
|
|
6529
|
-
}, ac = "lc-TabsWrapper-module__tabs___Y2xyD", rc = "lc-TabsWrapper-module__tabs__list___i6tVO",
|
|
6527
|
+
}, ac = "lc-TabsWrapper-module__tabs___Y2xyD", rc = "lc-TabsWrapper-module__tabs__list___i6tVO", C_ = {
|
|
6530
6528
|
tabs: ac,
|
|
6531
6529
|
tabs__list: rc
|
|
6532
|
-
},
|
|
6530
|
+
}, $_ = "tabs", Li = ({
|
|
6533
6531
|
className: t,
|
|
6534
6532
|
children: a
|
|
6535
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: u(
|
|
6533
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: u(C_[$_], t) }, a), Oi = ({
|
|
6536
6534
|
className: t,
|
|
6537
6535
|
children: a
|
|
6538
|
-
}) => /* @__PURE__ */ e.createElement("div", { role: "tablist", className: u(
|
|
6536
|
+
}) => /* @__PURE__ */ e.createElement("div", { role: "tablist", className: u(C_[`${$_}__list`], t) }, a), la = {
|
|
6539
6537
|
"tag-input": "lc-TagInput-module__tag-input___CLVY-",
|
|
6540
6538
|
"tag-input--error": "lc-TagInput-module__tag-input--error___RP0SB",
|
|
6541
6539
|
"tag-input__input": "lc-TagInput-module__tag-input__input___dgEYB",
|
|
@@ -6572,8 +6570,8 @@ const aa = {
|
|
|
6572
6570
|
}
|
|
6573
6571
|
}, f = (b) => {
|
|
6574
6572
|
b.preventDefault();
|
|
6575
|
-
const
|
|
6576
|
-
document.execCommand("insertHTML", !1,
|
|
6573
|
+
const v = b.clipboardData.getData("text/plain");
|
|
6574
|
+
document.execCommand("insertHTML", !1, Pr(v));
|
|
6577
6575
|
};
|
|
6578
6576
|
return /* @__PURE__ */ e.createElement(
|
|
6579
6577
|
"div",
|
|
@@ -6584,10 +6582,10 @@ const aa = {
|
|
|
6584
6582
|
onPaste: f,
|
|
6585
6583
|
onBlur: m,
|
|
6586
6584
|
onKeyDown: p,
|
|
6587
|
-
dangerouslySetInnerHTML: { __html:
|
|
6585
|
+
dangerouslySetInnerHTML: { __html: Pr(l) }
|
|
6588
6586
|
}
|
|
6589
6587
|
);
|
|
6590
|
-
}, oc = "tag-input__tag",
|
|
6588
|
+
}, oc = "tag-input__tag", a_ = ({
|
|
6591
6589
|
children: t,
|
|
6592
6590
|
index: a,
|
|
6593
6591
|
remove: r,
|
|
@@ -6598,7 +6596,7 @@ const aa = {
|
|
|
6598
6596
|
tagProps: c
|
|
6599
6597
|
}) => {
|
|
6600
6598
|
const d = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), i = e.useRef(null), s = () => r(a), p = () => d ? c ? c.kind : "default" : "error";
|
|
6601
|
-
return /* @__PURE__ */ e.createElement(
|
|
6599
|
+
return /* @__PURE__ */ e.createElement(v_, T(k({ size: n }, c), { kind: p(), onRemove: s }), /* @__PURE__ */ e.createElement(
|
|
6602
6600
|
_c,
|
|
6603
6601
|
{
|
|
6604
6602
|
value: t,
|
|
@@ -6648,31 +6646,31 @@ const aa = {
|
|
|
6648
6646
|
[la[`${Da}--error`]]: o
|
|
6649
6647
|
},
|
|
6650
6648
|
c
|
|
6651
|
-
),
|
|
6649
|
+
), v = u(
|
|
6652
6650
|
d,
|
|
6653
6651
|
la[`${Da}__input`],
|
|
6654
6652
|
la[`${Da}__input--${n}`]
|
|
6655
|
-
), [
|
|
6653
|
+
), [h, y] = e.useState(""), E = e.useRef(null), $ = (I) => {
|
|
6656
6654
|
I.trim() !== "" && (r([...a || [], I]), y(""));
|
|
6657
6655
|
}, w = (I) => {
|
|
6658
6656
|
const O = [...a || []];
|
|
6659
6657
|
O.splice(I, 1), r(O);
|
|
6660
6658
|
}, C = (I) => y(I.target.value), g = (I) => {
|
|
6661
6659
|
if (lc.includes(I.key)) {
|
|
6662
|
-
if (I.preventDefault(),
|
|
6660
|
+
if (I.preventDefault(), h === "")
|
|
6663
6661
|
return;
|
|
6664
|
-
$(
|
|
6662
|
+
$(h);
|
|
6665
6663
|
} else if (nc.includes(I.key)) {
|
|
6666
|
-
if (
|
|
6664
|
+
if (h !== "" || !(a != null && a.length))
|
|
6667
6665
|
return;
|
|
6668
6666
|
w(a.length - 1);
|
|
6669
6667
|
}
|
|
6670
6668
|
}, N = (I) => {
|
|
6671
|
-
s && $(
|
|
6669
|
+
s && $(h), i == null || i(I);
|
|
6672
6670
|
}, S = (I, O) => {
|
|
6673
6671
|
const Y = [...a || []];
|
|
6674
6672
|
Y.reduce(
|
|
6675
|
-
(L, U,
|
|
6673
|
+
(L, U, $e) => L + (U === O && $e !== I ? 1 : 0),
|
|
6676
6674
|
0
|
|
6677
6675
|
) > 0 ? Y.splice(I, 1) : Y[I] = O, r(Y);
|
|
6678
6676
|
}, M = (I) => {
|
|
@@ -6680,7 +6678,7 @@ const aa = {
|
|
|
6680
6678
|
const Y = I.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
6681
6679
|
r([...a || [], ...Y]);
|
|
6682
6680
|
}, G = (I, O) => typeof I == "string" ? /* @__PURE__ */ e.createElement(
|
|
6683
|
-
|
|
6681
|
+
a_,
|
|
6684
6682
|
{
|
|
6685
6683
|
index: O,
|
|
6686
6684
|
key: `${O}${I}`,
|
|
@@ -6692,7 +6690,7 @@ const aa = {
|
|
|
6692
6690
|
},
|
|
6693
6691
|
I
|
|
6694
6692
|
) : /* @__PURE__ */ e.createElement(
|
|
6695
|
-
|
|
6693
|
+
a_,
|
|
6696
6694
|
{
|
|
6697
6695
|
index: O,
|
|
6698
6696
|
key: `${O}${I.children}`,
|
|
@@ -6710,9 +6708,9 @@ const aa = {
|
|
|
6710
6708
|
T(k({}, p), {
|
|
6711
6709
|
id: t,
|
|
6712
6710
|
ref: E,
|
|
6713
|
-
className:
|
|
6711
|
+
className: v,
|
|
6714
6712
|
placeholder: l,
|
|
6715
|
-
value:
|
|
6713
|
+
value: h,
|
|
6716
6714
|
onChange: C,
|
|
6717
6715
|
onKeyDown: g,
|
|
6718
6716
|
onPaste: M,
|
|
@@ -6761,10 +6759,10 @@ const aa = {
|
|
|
6761
6759
|
source: vr
|
|
6762
6760
|
},
|
|
6763
6761
|
warning: {
|
|
6764
|
-
source:
|
|
6762
|
+
source: r_
|
|
6765
6763
|
},
|
|
6766
6764
|
error: {
|
|
6767
|
-
source:
|
|
6765
|
+
source: __
|
|
6768
6766
|
},
|
|
6769
6767
|
info: {
|
|
6770
6768
|
source: ca
|
|
@@ -6830,8 +6828,8 @@ const aa = {
|
|
|
6830
6828
|
},
|
|
6831
6829
|
t
|
|
6832
6830
|
);
|
|
6833
|
-
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement(
|
|
6834
|
-
|
|
6831
|
+
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement(i_, { component: null }, a.map(({ id: d, kind: i, content: s, removable: p, action: m, onClose: f }) => /* @__PURE__ */ e.createElement(
|
|
6832
|
+
s_,
|
|
6835
6833
|
{
|
|
6836
6834
|
key: d,
|
|
6837
6835
|
classNames: {
|
|
@@ -6893,7 +6891,7 @@ const aa = {
|
|
|
6893
6891
|
"aria-label": "Retry",
|
|
6894
6892
|
onClick: r
|
|
6895
6893
|
},
|
|
6896
|
-
/* @__PURE__ */ e.createElement(x, { size: "small", source:
|
|
6894
|
+
/* @__PURE__ */ e.createElement(x, { size: "small", source: q_ })
|
|
6897
6895
|
), a && t !== "success" && /* @__PURE__ */ e.createElement(
|
|
6898
6896
|
"button",
|
|
6899
6897
|
{
|
|
@@ -6903,7 +6901,7 @@ const aa = {
|
|
|
6903
6901
|
onClick: a
|
|
6904
6902
|
},
|
|
6905
6903
|
/* @__PURE__ */ e.createElement(x, { size: "small", source: Ie })
|
|
6906
|
-
)),
|
|
6904
|
+
)), Me = {
|
|
6907
6905
|
"file-upload-progress": "lc-FileUploadProgress-module__file-upload-progress___xw8h8",
|
|
6908
6906
|
"file-upload-progress__icon": "lc-FileUploadProgress-module__file-upload-progress__icon___p8Rfz",
|
|
6909
6907
|
"file-upload-progress__icon--success": "lc-FileUploadProgress-module__file-upload-progress__icon--success___X40uH",
|
|
@@ -6925,28 +6923,28 @@ const aa = {
|
|
|
6925
6923
|
status: n = "normal",
|
|
6926
6924
|
onCloseButtonClick: c,
|
|
6927
6925
|
onRetryButtonClick: d
|
|
6928
|
-
}, i) => /* @__PURE__ */ e.createElement("div", { className:
|
|
6926
|
+
}, i) => /* @__PURE__ */ e.createElement("div", { className: Me[_t], ref: i }, r && n !== "success" && /* @__PURE__ */ e.createElement("div", { className: Me[`${_t}__icon`] }, r), n === "success" && /* @__PURE__ */ e.createElement(
|
|
6929
6927
|
"div",
|
|
6930
6928
|
{
|
|
6931
6929
|
className: u(
|
|
6932
|
-
|
|
6933
|
-
|
|
6930
|
+
Me[`${_t}__icon`],
|
|
6931
|
+
Me[`${_t}__icon--success`]
|
|
6934
6932
|
)
|
|
6935
6933
|
},
|
|
6936
6934
|
/* @__PURE__ */ e.createElement(x, { source: ia })
|
|
6937
6935
|
), /* @__PURE__ */ e.createElement(
|
|
6938
6936
|
"div",
|
|
6939
6937
|
{
|
|
6940
|
-
className: u(
|
|
6941
|
-
[
|
|
6938
|
+
className: u(Me[`${_t}__wrapper`], {
|
|
6939
|
+
[Me[`${_t}__wrapper--with-icon`]]: r
|
|
6942
6940
|
})
|
|
6943
6941
|
},
|
|
6944
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
6942
|
+
/* @__PURE__ */ e.createElement("div", { className: Me[`${_t}__wrapper__header`] }, _ && /* @__PURE__ */ e.createElement(
|
|
6945
6943
|
"div",
|
|
6946
6944
|
{
|
|
6947
|
-
className: u(
|
|
6948
|
-
[
|
|
6949
|
-
[
|
|
6945
|
+
className: u(Me[ur], {
|
|
6946
|
+
[Me[`${ur}--success`]]: n === "success",
|
|
6947
|
+
[Me[`${ur}--error`]]: n === "error"
|
|
6950
6948
|
})
|
|
6951
6949
|
},
|
|
6952
6950
|
/* @__PURE__ */ e.createElement(B, { size: "sm", as: "div" }, _)
|
|
@@ -6954,7 +6952,7 @@ const aa = {
|
|
|
6954
6952
|
"div",
|
|
6955
6953
|
{
|
|
6956
6954
|
className: u({
|
|
6957
|
-
[
|
|
6955
|
+
[Me[`${_t}__wrapper__header__actions`]]: t === "hover"
|
|
6958
6956
|
})
|
|
6959
6957
|
},
|
|
6960
6958
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6997,7 +6995,7 @@ const aa = {
|
|
|
6997
6995
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
|
|
6998
6996
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
|
|
6999
6997
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
|
|
7000
|
-
},
|
|
6998
|
+
}, ke = "upload-bar", ot = `${ke}__wrapper__header`, wc = 300, Cc = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement(
|
|
7001
6999
|
"div",
|
|
7002
7000
|
{
|
|
7003
7001
|
"data-testid": "success-icon",
|
|
@@ -7010,7 +7008,7 @@ const aa = {
|
|
|
7010
7008
|
"data-testid": "error-icon",
|
|
7011
7009
|
className: K[`${ot}__error-icon`]
|
|
7012
7010
|
},
|
|
7013
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
7011
|
+
/* @__PURE__ */ e.createElement(x, { source: Z_ })
|
|
7014
7012
|
) : /* @__PURE__ */ e.createElement(
|
|
7015
7013
|
Gn,
|
|
7016
7014
|
{
|
|
@@ -7032,11 +7030,11 @@ const aa = {
|
|
|
7032
7030
|
onCloseButtonClick: s,
|
|
7033
7031
|
onRetryButtonClick: p
|
|
7034
7032
|
}) => {
|
|
7035
|
-
const [m, f] = e.useState(o || !1), b = n === "error",
|
|
7036
|
-
[K[`${
|
|
7037
|
-
[K[`${
|
|
7033
|
+
const [m, f] = e.useState(o || !1), b = n === "error", v = n === "success", h = u(K[ke], a, {
|
|
7034
|
+
[K[`${ke}--error`]]: b,
|
|
7035
|
+
[K[`${ke}--success`]]: v
|
|
7038
7036
|
}), y = !(b && (p || s)), E = () => f(!m);
|
|
7039
|
-
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className:
|
|
7037
|
+
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: h }, /* @__PURE__ */ e.createElement("div", { className: K[`${ke}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ot}`] }, /* @__PURE__ */ e.createElement(
|
|
7040
7038
|
yc,
|
|
7041
7039
|
{
|
|
7042
7040
|
title: b && l || _,
|
|
@@ -7052,10 +7050,10 @@ const aa = {
|
|
|
7052
7050
|
onCloseButtonClick: s,
|
|
7053
7051
|
onRetryButtonClick: p
|
|
7054
7052
|
}
|
|
7055
|
-
))) : /* @__PURE__ */ e.createElement("div", { className:
|
|
7053
|
+
))) : /* @__PURE__ */ e.createElement("div", { className: h }, /* @__PURE__ */ e.createElement(
|
|
7056
7054
|
"div",
|
|
7057
7055
|
{
|
|
7058
|
-
className: K[`${
|
|
7056
|
+
className: K[`${ke}__wrapper`],
|
|
7059
7057
|
onClick: E
|
|
7060
7058
|
},
|
|
7061
7059
|
/* @__PURE__ */ e.createElement("div", { className: K[`${ot}`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ot}__icon`] }, Cc(n, r)), /* @__PURE__ */ e.createElement("div", { className: K[`${ot}__title`] }, /* @__PURE__ */ e.createElement(B, { size: "sm", as: "div" }, b ? l : _)), y && /* @__PURE__ */ e.createElement(
|
|
@@ -7075,37 +7073,37 @@ const aa = {
|
|
|
7075
7073
|
onRetryButtonClick: p
|
|
7076
7074
|
}
|
|
7077
7075
|
)))
|
|
7078
|
-
), /* @__PURE__ */ e.createElement(
|
|
7079
|
-
|
|
7076
|
+
), /* @__PURE__ */ e.createElement(i_, { component: null }, m && /* @__PURE__ */ e.createElement(
|
|
7077
|
+
s_,
|
|
7080
7078
|
{
|
|
7081
7079
|
timeout: wc,
|
|
7082
7080
|
classNames: {
|
|
7083
|
-
enter: K[`${
|
|
7084
|
-
enterActive: K[`${
|
|
7085
|
-
exit: K[`${
|
|
7086
|
-
exitActive: K[`${
|
|
7087
|
-
exitDone: K[`${
|
|
7081
|
+
enter: K[`${ke}__files--enter`],
|
|
7082
|
+
enterActive: K[`${ke}__files--enter-active`],
|
|
7083
|
+
exit: K[`${ke}__files--exit`],
|
|
7084
|
+
exitActive: K[`${ke}__files--exit-active`],
|
|
7085
|
+
exitDone: K[`${ke}__files--exit-done`]
|
|
7088
7086
|
}
|
|
7089
7087
|
},
|
|
7090
|
-
/* @__PURE__ */ e.createElement("div", { className: K[`${
|
|
7088
|
+
/* @__PURE__ */ e.createElement("div", { className: K[`${ke}__files`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ke}__files-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ke}__files__list`] }, t)))
|
|
7091
7089
|
)));
|
|
7092
7090
|
};
|
|
7093
7091
|
export {
|
|
7094
7092
|
hc as ANIMATION_TIME,
|
|
7095
7093
|
jc as ActionBar,
|
|
7096
7094
|
Qc as ActionCard,
|
|
7097
|
-
|
|
7098
|
-
|
|
7095
|
+
po as ActionMenu,
|
|
7096
|
+
go as ActionMenuItem,
|
|
7099
7097
|
Ei as ActionModalContent,
|
|
7100
7098
|
ei as Alert,
|
|
7101
7099
|
ti as AppFrame,
|
|
7102
|
-
|
|
7103
|
-
|
|
7100
|
+
io as AppFrameProvider,
|
|
7101
|
+
sl as Avatar,
|
|
7104
7102
|
Ra as Badge,
|
|
7105
7103
|
W as Button,
|
|
7106
7104
|
ci as Card,
|
|
7107
|
-
|
|
7108
|
-
|
|
7105
|
+
Pl as Checkbox,
|
|
7106
|
+
Gl as DatePicker,
|
|
7109
7107
|
ii as DatePickerRangeCalendarsWrapper,
|
|
7110
7108
|
Lc as DesignToken,
|
|
7111
7109
|
si as DetailsCard,
|
|
@@ -7128,40 +7126,40 @@ export {
|
|
|
7128
7126
|
bi as Link,
|
|
7129
7127
|
Cr as Loader,
|
|
7130
7128
|
hi as Modal,
|
|
7131
|
-
|
|
7132
|
-
|
|
7129
|
+
tn as ModalBase,
|
|
7130
|
+
Jr as ModalCloseButton,
|
|
7133
7131
|
ki as ModalHeader,
|
|
7134
7132
|
vi as ModalPortal,
|
|
7135
7133
|
li as Navigation,
|
|
7136
7134
|
_i as NavigationGroup,
|
|
7137
7135
|
oi as NavigationItem,
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7136
|
+
f_ as NavigationTopBar,
|
|
7137
|
+
al as NavigationTopBarAlert,
|
|
7138
|
+
tl as NavigationTopBarTitle,
|
|
7141
7139
|
yi as NumericInput,
|
|
7142
7140
|
wi as OnboardingChecklist,
|
|
7143
7141
|
Ci as Picker,
|
|
7144
|
-
|
|
7142
|
+
dn as PickerList,
|
|
7145
7143
|
$i as Popover,
|
|
7146
7144
|
Ni as ProductSwitcher,
|
|
7147
|
-
|
|
7145
|
+
xn as ProductSwitcherProducts,
|
|
7148
7146
|
Un as ProgressBar,
|
|
7149
7147
|
Gn as ProgressCircle,
|
|
7150
7148
|
xi as PromoBanner,
|
|
7151
7149
|
Bi as PromoBannerV2,
|
|
7152
7150
|
Ii as RadioButton,
|
|
7153
7151
|
Uc as RadiusToken,
|
|
7154
|
-
|
|
7152
|
+
Hl as RangeDatePicker,
|
|
7155
7153
|
Jc as Reports,
|
|
7156
|
-
|
|
7157
|
-
|
|
7158
|
-
|
|
7154
|
+
Wo as SIDE_NAVIGATION_ACTIVE_ITEM_TEST_ID,
|
|
7155
|
+
zo as SIDE_NAVIGATION_ITEM_TEST_ID,
|
|
7156
|
+
Vo as SIDE_NAVIGATION_PARENT_ICON_TEST_ID,
|
|
7159
7157
|
Ti as SearchInput,
|
|
7160
7158
|
ni as SegmentedControl,
|
|
7161
7159
|
Gc as ShadowToken,
|
|
7162
7160
|
ai as SideNavigation,
|
|
7163
7161
|
ri as SideNavigationGroup,
|
|
7164
|
-
|
|
7162
|
+
Ko as SideNavigationItem,
|
|
7165
7163
|
Yc as Simple,
|
|
7166
7164
|
Pi as SkeletonAvatar,
|
|
7167
7165
|
Ai as SkeletonText,
|
|
@@ -7172,7 +7170,7 @@ export {
|
|
|
7172
7170
|
Mi as Tab,
|
|
7173
7171
|
Oi as TabsList,
|
|
7174
7172
|
Li as TabsWrapper,
|
|
7175
|
-
|
|
7173
|
+
v_ as Tag,
|
|
7176
7174
|
cc as TagInput,
|
|
7177
7175
|
B as Text,
|
|
7178
7176
|
Hi as Textarea,
|
|
@@ -7185,8 +7183,8 @@ export {
|
|
|
7185
7183
|
zi as UpdateBadge,
|
|
7186
7184
|
Wi as UploadBar,
|
|
7187
7185
|
Xc as UserGuide,
|
|
7188
|
-
|
|
7186
|
+
rl as generateAvatarColor,
|
|
7189
7187
|
Vc as getDesignTokenWithOpacity,
|
|
7190
|
-
|
|
7188
|
+
co as useAppFrame,
|
|
7191
7189
|
Si as useProductSwitcher
|
|
7192
7190
|
};
|