@livechat/design-system-react-components 2.3.1 → 2.3.2
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/{Search/Search.d.ts → SearchInput/SearchInput.d.ts} +2 -2
- package/dist/components/SearchInput/index.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +892 -876
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/dist/components/Search/index.d.ts +0 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var i_ = Object.defineProperty, l_ = Object.defineProperties;
|
|
2
2
|
var c_ = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var Ra = Object.getOwnPropertySymbols;
|
|
4
|
-
var Zr = Object.prototype.hasOwnProperty,
|
|
4
|
+
var Zr = Object.prototype.hasOwnProperty, qr = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var gr = (e, t, r) => t in e ? i_(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, k = (e, t) => {
|
|
6
6
|
for (var r in t || (t = {}))
|
|
7
7
|
Zr.call(t, r) && gr(e, r, t[r]);
|
|
8
8
|
if (Ra)
|
|
9
9
|
for (var r of Ra(t))
|
|
10
|
-
|
|
10
|
+
qr.call(t, r) && gr(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
12
|
}, E = (e, t) => l_(e, c_(t));
|
|
13
13
|
var F = (e, t) => {
|
|
@@ -16,13 +16,13 @@ var F = (e, t) => {
|
|
|
16
16
|
Zr.call(e, o) && t.indexOf(o) < 0 && (r[o] = e[o]);
|
|
17
17
|
if (e != null && Ra)
|
|
18
18
|
for (var o of Ra(e))
|
|
19
|
-
t.indexOf(o) < 0 &&
|
|
19
|
+
t.indexOf(o) < 0 && qr.call(e, o) && (r[o] = e[o]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
22
|
var hr = (e, t, r) => gr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
23
23
|
import { jsx as a, jsxs as f, Fragment as ae } from "react/jsx-runtime";
|
|
24
|
-
import * as
|
|
25
|
-
import { createContext as s_, useContext as d_, useState as Jt, useEffect as
|
|
24
|
+
import * as m from "react";
|
|
25
|
+
import { createContext as s_, useContext as d_, useState as Jt, useEffect as je, useMemo as qt, useRef as Rr, useReducer as u_, useCallback as Ma, memo as m_ } from "react";
|
|
26
26
|
import { ChevronDown as Ut, Check as xa, Close as Re, Info as $a, Warning as Eo, CheckCircle as Mr, Block as Io, ChevronRight as rr, VisibilityOn as p_, VisibilityOff as g_, ChevronUp as or, Person as h_, DoubleArrowLeft as f_, ChevronLeft as b_, DoubleArrowRight as v_, Add as k_, ChatBotColored as y_, PersonAdd as C_, TextLogoFull as w_, LiveChatMono as $_, ChatBotMono as N_, HelpDeskMono as x_, KnowledgeBaseMono as S_, OpenWidgetMono as B_, HelloMono as E_, TextAccounts as I_, Search as T_, LockBlack as A_, Refresh as D_, Error as P_ } from "@livechat/design-system-icons";
|
|
27
27
|
import u from "clsx";
|
|
28
28
|
import { useFloatingParentNodeId as _r, useFloatingNodeId as Sa, useFloating as Ba, offset as Ea, flip as nr, size as To, autoUpdate as Ia, useClick as Ta, useDismiss as Aa, useRole as Da, useInteractions as Pa, useTransitionStyles as Or, FloatingNode as ea, FloatingTree as ir, shift as Lr, arrow as F_, useHover as R_, safePolygon as M_, useFocus as O_, useTransitionStatus as L_, FloatingArrow as G_, FloatingPortal as Gr, FloatingFocusManager as Er, useListNavigation as U_, FloatingOverlay as H_ } from "@floating-ui/react";
|
|
@@ -32,10 +32,10 @@ import Ao from "lodash.debounce";
|
|
|
32
32
|
import { Virtuoso as K_ } from "react-virtuoso";
|
|
33
33
|
import { getContrast as Ur } from "polished";
|
|
34
34
|
import Y_ from "react-day-picker";
|
|
35
|
-
import { subMonths as
|
|
35
|
+
import { subMonths as jt, differenceInCalendarMonths as jr, addMonths as Qr, isSameMonth as Ir, isSameDay as Tr, isAfter as Ar, differenceInCalendarDays as Hr, isPast as X_ } from "date-fns";
|
|
36
36
|
import Jr from "lodash.escape";
|
|
37
37
|
import { TransitionGroup as Do, CSSTransition as Po } from "react-transition-group";
|
|
38
|
-
const
|
|
38
|
+
const Yc = {
|
|
39
39
|
/** @deprecated */
|
|
40
40
|
Background: "--background",
|
|
41
41
|
Background01: "--background-01",
|
|
@@ -407,7 +407,7 @@ const Kc = {
|
|
|
407
407
|
SurfaceCheckListItemOpenBackground: "--surface-check-list-item-open-background",
|
|
408
408
|
SurfaceCheckListBackground: "--surface-check-list-background",
|
|
409
409
|
ContentBasicPlaceholder: "--content-basic-placeholder"
|
|
410
|
-
},
|
|
410
|
+
}, Xc = {
|
|
411
411
|
Spacing0: "--spacing-0",
|
|
412
412
|
Spacing05: "--spacing-05",
|
|
413
413
|
Spacing1: "--spacing-1",
|
|
@@ -427,7 +427,7 @@ const Kc = {
|
|
|
427
427
|
Spacing18: "--spacing-18",
|
|
428
428
|
Spacing20: "--spacing-20",
|
|
429
429
|
Spacing24: "--spacing-24"
|
|
430
|
-
},
|
|
430
|
+
}, Zc = {
|
|
431
431
|
Float: "--shadow-float",
|
|
432
432
|
PopOver: "--shadow-pop-over",
|
|
433
433
|
Modal: "--shadow-modal",
|
|
@@ -451,7 +451,7 @@ const Kc = {
|
|
|
451
451
|
FixedLeft: "--shadow-fixed-left",
|
|
452
452
|
FixedTop: "--shadow-fixed-top",
|
|
453
453
|
FixedBottom: "--shadow-fixed-bottom"
|
|
454
|
-
},
|
|
454
|
+
}, qc = {
|
|
455
455
|
Radius0: "--radius-0",
|
|
456
456
|
Radius1: "--radius-1",
|
|
457
457
|
Radius2: "--radius-2",
|
|
@@ -471,32 +471,32 @@ const Kc = {
|
|
|
471
471
|
Fast1: "--transition-duration-fast-1",
|
|
472
472
|
Fast2: "--transition-duration-fast-2",
|
|
473
473
|
Moderate1: "--transition-duration-moderate-1"
|
|
474
|
-
},
|
|
474
|
+
}, Qc = {
|
|
475
475
|
EaseIn: "--transition-timing-ease-in",
|
|
476
476
|
EaseOut: "--transition-timing-ease-out"
|
|
477
|
-
},
|
|
477
|
+
}, Jc = {
|
|
478
478
|
Instant: "--delay-instant",
|
|
479
479
|
Moderate: "--delay-moderate",
|
|
480
480
|
Slow: "--delay-slow"
|
|
481
481
|
};
|
|
482
482
|
var xt = /* @__PURE__ */ ((e) => (e.Dark = "lc-dark-theme", e.Light = "lc-light-theme", e))(xt || {});
|
|
483
|
-
const
|
|
483
|
+
const es = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), ts = () => {
|
|
484
484
|
const e = d_(Fo);
|
|
485
485
|
if (!e)
|
|
486
486
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
487
487
|
return e;
|
|
488
|
-
},
|
|
488
|
+
}, as = ({
|
|
489
489
|
children: e,
|
|
490
490
|
initialTheme: t = "light",
|
|
491
491
|
customVariables: r = {}
|
|
492
492
|
}) => {
|
|
493
493
|
const [o, _] = Jt(t), [n, i] = Jt(r);
|
|
494
|
-
|
|
494
|
+
je(() => {
|
|
495
495
|
document.body.classList.remove(xt.Light, xt.Dark), document.body.classList.add(`lc-${o}-theme`);
|
|
496
496
|
for (const [d, c] of Object.entries(n))
|
|
497
497
|
document.body.style.setProperty(d, c);
|
|
498
498
|
}, [o, n]);
|
|
499
|
-
const l =
|
|
499
|
+
const l = qt(
|
|
500
500
|
() => ({
|
|
501
501
|
theme: o,
|
|
502
502
|
toggleTheme: () => _((d) => d === "light" ? "dark" : "light"),
|
|
@@ -508,10 +508,10 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
508
508
|
[o, _, i]
|
|
509
509
|
);
|
|
510
510
|
return /* @__PURE__ */ a(Fo.Provider, { value: l, children: e });
|
|
511
|
-
}, Ro =
|
|
511
|
+
}, Ro = m.createContext(
|
|
512
512
|
void 0
|
|
513
513
|
), Mo = () => {
|
|
514
|
-
const e =
|
|
514
|
+
const e = m.useContext(Ro);
|
|
515
515
|
if (!e)
|
|
516
516
|
throw new Error("useAppFrame must be used within a AppFrameProvider");
|
|
517
517
|
return e;
|
|
@@ -520,7 +520,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
520
520
|
isSideNavigationVisible: t = !0,
|
|
521
521
|
isMobileViewVisible: r = !1
|
|
522
522
|
}) => {
|
|
523
|
-
const [o, _] =
|
|
523
|
+
const [o, _] = m.useState(t), [n, i] = m.useState(r), l = m.useMemo(
|
|
524
524
|
() => ({
|
|
525
525
|
isSideNavigationVisible: o,
|
|
526
526
|
toggleSideNavigationVisibility: () => _(!o),
|
|
@@ -535,12 +535,12 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
535
535
|
]
|
|
536
536
|
);
|
|
537
537
|
return /* @__PURE__ */ a(Ro.Provider, { value: l, children: e });
|
|
538
|
-
},
|
|
538
|
+
}, rs = (e, t) => `color-mix(in srgb, var(${e}) ${t}, transparent)`, Lt = ({
|
|
539
539
|
isVisible: e,
|
|
540
540
|
elementRef: t
|
|
541
541
|
}) => {
|
|
542
|
-
const [r, o] =
|
|
543
|
-
return
|
|
542
|
+
const [r, o] = m.useState(e), [_, n] = m.useState(e), [i, l] = m.useState(e);
|
|
543
|
+
return m.useEffect(() => {
|
|
544
544
|
const d = t.current;
|
|
545
545
|
if (!i && d) {
|
|
546
546
|
const c = () => o(!1);
|
|
@@ -555,7 +555,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
555
555
|
o(!0), requestAnimationFrame(() => n(!0));
|
|
556
556
|
return;
|
|
557
557
|
}
|
|
558
|
-
}, [i]),
|
|
558
|
+
}, [i]), m.useEffect(() => {
|
|
559
559
|
l(e);
|
|
560
560
|
}, [e]), {
|
|
561
561
|
isOpen: _,
|
|
@@ -583,7 +583,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
583
583
|
t(o);
|
|
584
584
|
}) : eo.unobserve(e));
|
|
585
585
|
}, Oo = () => {
|
|
586
|
-
const [e, t] =
|
|
586
|
+
const [e, t] = m.useState(0), r = m.useCallback(
|
|
587
587
|
(o) => zr(
|
|
588
588
|
o,
|
|
589
589
|
(_) => t(_.height)
|
|
@@ -594,10 +594,10 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
594
594
|
size: e,
|
|
595
595
|
handleResizeRef: r
|
|
596
596
|
};
|
|
597
|
-
},
|
|
597
|
+
}, q_ = ({
|
|
598
598
|
mobileBreakpoint: e
|
|
599
599
|
}) => {
|
|
600
|
-
const [t, r] =
|
|
600
|
+
const [t, r] = m.useState(!1), o = m.useCallback(
|
|
601
601
|
(_) => zr(
|
|
602
602
|
_,
|
|
603
603
|
(n) => r(n.width <= e)
|
|
@@ -608,8 +608,8 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
608
608
|
isMobile: t,
|
|
609
609
|
handleResizeRef: o
|
|
610
610
|
};
|
|
611
|
-
},
|
|
612
|
-
icon:
|
|
611
|
+
}, j_ = "lc-Icon-module__icon___J5RH5", to = {
|
|
612
|
+
icon: j_,
|
|
613
613
|
"icon--primary": "lc-Icon-module__icon--primary___lclud",
|
|
614
614
|
"icon--subtle": "lc-Icon-module__icon--subtle___d17Qj",
|
|
615
615
|
"icon--inverted": "lc-Icon-module__icon--inverted___Cb4ml",
|
|
@@ -687,13 +687,13 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
687
687
|
"disabled",
|
|
688
688
|
"className",
|
|
689
689
|
"customColor"
|
|
690
|
-
]), d =
|
|
690
|
+
]), d = m.createElement(t, k(k({}, Q_[r]), i ? { color: i } : {})), c = u(
|
|
691
691
|
n,
|
|
692
692
|
to[ao],
|
|
693
693
|
o && to[`${ao}--${_ ? "disabled--" : ""}${o}`]
|
|
694
694
|
);
|
|
695
695
|
return /* @__PURE__ */ a("span", E(k({}, l), { className: c, children: d }));
|
|
696
|
-
},
|
|
696
|
+
}, qe = {
|
|
697
697
|
"heading-xl": "lc-Typography-module__heading-xl___jTpRq",
|
|
698
698
|
"heading-lg": "lc-Typography-module__heading-lg___VGjgP",
|
|
699
699
|
"heading-md": "lc-Typography-module__heading-md___U-DUC",
|
|
@@ -743,14 +743,14 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
743
743
|
"customColor",
|
|
744
744
|
"textAlign"
|
|
745
745
|
]);
|
|
746
|
-
return
|
|
746
|
+
return m.createElement(
|
|
747
747
|
e || J_[t],
|
|
748
748
|
k({
|
|
749
749
|
className: u(
|
|
750
750
|
{
|
|
751
|
-
[
|
|
752
|
-
[
|
|
753
|
-
[
|
|
751
|
+
[qe[`heading-${t}`]]: !0,
|
|
752
|
+
[qe["heading-uppercase"]]: _,
|
|
753
|
+
[qe["heading-bold"]]: n
|
|
754
754
|
},
|
|
755
755
|
o
|
|
756
756
|
),
|
|
@@ -758,7 +758,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
758
758
|
}, d),
|
|
759
759
|
r
|
|
760
760
|
);
|
|
761
|
-
},
|
|
761
|
+
}, D = (v) => {
|
|
762
762
|
var h = v, {
|
|
763
763
|
as: e = "p",
|
|
764
764
|
size: t = "md",
|
|
@@ -771,7 +771,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
771
771
|
className: d,
|
|
772
772
|
customColor: c,
|
|
773
773
|
textAlign: s,
|
|
774
|
-
noMargin:
|
|
774
|
+
noMargin: g
|
|
775
775
|
} = h, p = F(h, [
|
|
776
776
|
"as",
|
|
777
777
|
"size",
|
|
@@ -787,17 +787,17 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
787
787
|
"noMargin"
|
|
788
788
|
]);
|
|
789
789
|
const b = "paragraph";
|
|
790
|
-
return
|
|
790
|
+
return m.createElement(
|
|
791
791
|
e,
|
|
792
792
|
k({
|
|
793
793
|
className: u(
|
|
794
794
|
{
|
|
795
|
-
[
|
|
796
|
-
[
|
|
797
|
-
[
|
|
798
|
-
[
|
|
799
|
-
[
|
|
800
|
-
[
|
|
795
|
+
[qe[`${b}-${t}`]]: !0,
|
|
796
|
+
[qe[`${b}--bold`]]: _,
|
|
797
|
+
[qe[`${b}--strike`]]: i,
|
|
798
|
+
[qe[`${b}--underline`]]: n,
|
|
799
|
+
[qe[`${b}--uppercase`]]: o || r,
|
|
800
|
+
[qe[`${b}--no-margin`]]: g
|
|
801
801
|
},
|
|
802
802
|
d
|
|
803
803
|
),
|
|
@@ -805,7 +805,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
805
805
|
}, p),
|
|
806
806
|
l
|
|
807
807
|
);
|
|
808
|
-
},
|
|
808
|
+
}, os = (d) => {
|
|
809
809
|
var c = d, {
|
|
810
810
|
as: e = "div",
|
|
811
811
|
size: t = "md",
|
|
@@ -823,13 +823,13 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
823
823
|
"textAlign",
|
|
824
824
|
"bold"
|
|
825
825
|
]);
|
|
826
|
-
return
|
|
826
|
+
return m.createElement(
|
|
827
827
|
e,
|
|
828
828
|
k({
|
|
829
829
|
className: u(
|
|
830
|
-
|
|
830
|
+
qe[`display-${t}`],
|
|
831
831
|
{
|
|
832
|
-
[
|
|
832
|
+
[qe["display--bold"]]: i
|
|
833
833
|
},
|
|
834
834
|
o
|
|
835
835
|
),
|
|
@@ -841,7 +841,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
841
841
|
"accordion-multiline": "lc-AccordionMultilineElement-module__accordion-multiline___oI-PH",
|
|
842
842
|
"accordion-multiline__inner": "lc-AccordionMultilineElement-module__accordion-multiline__inner___bBTnC"
|
|
843
843
|
}, oo = "accordion-multiline", en = ({ children: e, isExpanded: t }) => {
|
|
844
|
-
const r =
|
|
844
|
+
const r = m.useRef(null), { isOpen: o, isMounted: _ } = Lt({
|
|
845
845
|
isVisible: !t,
|
|
846
846
|
elementRef: r
|
|
847
847
|
}), { size: n, handleResizeRef: i } = Oo();
|
|
@@ -865,7 +865,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
865
865
|
closed: t,
|
|
866
866
|
isOpen: r
|
|
867
867
|
}) => {
|
|
868
|
-
const o =
|
|
868
|
+
const o = m.useRef(null), _ = m.useRef(null), [n, i] = m.useState(void 0), { isOpen: l, isMounted: d } = Lt({
|
|
869
869
|
isVisible: r,
|
|
870
870
|
elementRef: o
|
|
871
871
|
}), { isOpen: c, isMounted: s } = Lt(
|
|
@@ -874,10 +874,10 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
874
874
|
elementRef: _
|
|
875
875
|
}
|
|
876
876
|
);
|
|
877
|
-
return
|
|
878
|
-
const
|
|
879
|
-
if (
|
|
880
|
-
const p =
|
|
877
|
+
return m.useEffect(() => {
|
|
878
|
+
const g = r ? o.current : _.current;
|
|
879
|
+
if (g) {
|
|
880
|
+
const p = g.getBoundingClientRect().height;
|
|
881
881
|
i(p);
|
|
882
882
|
}
|
|
883
883
|
}, [r, d, s]), /* @__PURE__ */ f(
|
|
@@ -930,8 +930,8 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
930
930
|
accordion__content: ln,
|
|
931
931
|
accordion__content__inner: cn,
|
|
932
932
|
"accordion__content__inner--open": "lc-Accordion-module__accordion__content__inner--open___BhKjm"
|
|
933
|
-
}, mt = "accordion",
|
|
934
|
-
var
|
|
933
|
+
}, mt = "accordion", _s = (s) => {
|
|
934
|
+
var g = s, {
|
|
935
935
|
className: e,
|
|
936
936
|
children: t,
|
|
937
937
|
label: r,
|
|
@@ -941,7 +941,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
941
941
|
isOpen: i,
|
|
942
942
|
onClose: l,
|
|
943
943
|
onOpen: d
|
|
944
|
-
} =
|
|
944
|
+
} = g, c = F(g, [
|
|
945
945
|
"className",
|
|
946
946
|
"children",
|
|
947
947
|
"label",
|
|
@@ -952,31 +952,31 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
952
952
|
"onClose",
|
|
953
953
|
"onOpen"
|
|
954
954
|
]);
|
|
955
|
-
const p = i !== void 0, v = p ? i : n, h =
|
|
955
|
+
const p = i !== void 0, v = p ? i : n, h = m.useRef(null), {
|
|
956
956
|
isOpen: b,
|
|
957
957
|
isMounted: C,
|
|
958
|
-
setShouldBeVisible:
|
|
958
|
+
setShouldBeVisible: w
|
|
959
959
|
} = Lt({
|
|
960
960
|
isVisible: v,
|
|
961
961
|
elementRef: h
|
|
962
|
-
}),
|
|
962
|
+
}), $ = u(
|
|
963
963
|
ut[mt],
|
|
964
964
|
ut[`${mt}--${_}`],
|
|
965
965
|
{
|
|
966
966
|
[ut[`${mt}--open`]]: b
|
|
967
967
|
},
|
|
968
968
|
e
|
|
969
|
-
), { size: S, handleResizeRef: x } = Oo(), B = (
|
|
970
|
-
|
|
969
|
+
), { size: S, handleResizeRef: x } = Oo(), B = (N) => {
|
|
970
|
+
N ? (l == null || l(), !p && w(!1)) : (d == null || d(), !p && w(!0));
|
|
971
971
|
};
|
|
972
972
|
return /* @__PURE__ */ f(
|
|
973
973
|
"div",
|
|
974
974
|
E(k({
|
|
975
975
|
tabIndex: 0,
|
|
976
976
|
"aria-expanded": b,
|
|
977
|
-
className:
|
|
978
|
-
onKeyDown: (
|
|
979
|
-
!b && (
|
|
977
|
+
className: $,
|
|
978
|
+
onKeyDown: (N) => {
|
|
979
|
+
!b && (N.key === "Enter" || N.key === " ") && B(b), b && N.key === "Escape" && B(b);
|
|
980
980
|
}
|
|
981
981
|
}, c), {
|
|
982
982
|
children: [
|
|
@@ -990,7 +990,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
990
990
|
}
|
|
991
991
|
),
|
|
992
992
|
/* @__PURE__ */ a(
|
|
993
|
-
|
|
993
|
+
D,
|
|
994
994
|
{
|
|
995
995
|
"aria-expanded": b,
|
|
996
996
|
role: "button",
|
|
@@ -1009,7 +1009,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1009
1009
|
style: { maxHeight: b ? S : 0 },
|
|
1010
1010
|
ref: h,
|
|
1011
1011
|
children: /* @__PURE__ */ a("div", { ref: x, children: C && /* @__PURE__ */ a(
|
|
1012
|
-
|
|
1012
|
+
D,
|
|
1013
1013
|
{
|
|
1014
1014
|
as: "div",
|
|
1015
1015
|
className: u(ut[`${mt}__content__inner`], {
|
|
@@ -1059,7 +1059,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1059
1059
|
visible: d,
|
|
1060
1060
|
onClose: c,
|
|
1061
1061
|
onOpen: s,
|
|
1062
|
-
floatingStrategy:
|
|
1062
|
+
floatingStrategy: g,
|
|
1063
1063
|
selectedOptions: p,
|
|
1064
1064
|
footer: v
|
|
1065
1065
|
} = C, h = F(C, [
|
|
@@ -1078,9 +1078,9 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1078
1078
|
"selectedOptions",
|
|
1079
1079
|
"footer"
|
|
1080
1080
|
]);
|
|
1081
|
-
const
|
|
1082
|
-
G ? (c == null || c(),
|
|
1083
|
-
}, { x:
|
|
1081
|
+
const w = d !== void 0, [$, S] = m.useState(n), [x, B] = m.useState(null), y = m.useRef(-1), N = _r(), T = Sa(), R = m.useRef(null), G = w ? d : $, I = () => {
|
|
1082
|
+
G ? (c == null || c(), !w && S(!1)) : (s == null || s(), !w && S(!0));
|
|
1083
|
+
}, { x: A, y: z, strategy: he, refs: V, context: H } = Ba({
|
|
1084
1084
|
nodeId: T,
|
|
1085
1085
|
middleware: [
|
|
1086
1086
|
Ea(4),
|
|
@@ -1093,7 +1093,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1093
1093
|
],
|
|
1094
1094
|
placement: _,
|
|
1095
1095
|
open: G,
|
|
1096
|
-
strategy:
|
|
1096
|
+
strategy: g,
|
|
1097
1097
|
onOpenChange: I,
|
|
1098
1098
|
whileElementsMounted: Ia
|
|
1099
1099
|
}), K = Ta(H), Me = Aa(H, {
|
|
@@ -1132,13 +1132,13 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1132
1132
|
}, Je = (M) => {
|
|
1133
1133
|
M.key === ke.arrowUp && y.current > 0 && (M.preventDefault(), it(-1)), M.key === ke.arrowDown && y.current + 1 < r.length && (M.preventDefault(), it(1));
|
|
1134
1134
|
};
|
|
1135
|
-
|
|
1135
|
+
m.useEffect(() => {
|
|
1136
1136
|
if (G)
|
|
1137
1137
|
return document.addEventListener("keydown", Je), () => document.removeEventListener("keydown", Je);
|
|
1138
1138
|
y.current = -1;
|
|
1139
1139
|
}, [G, Je]);
|
|
1140
1140
|
const lt = (M, W) => {
|
|
1141
|
-
y.current = M, W == null || W(),
|
|
1141
|
+
y.current = M, W == null || W(), !w && !i && (S(!1), c == null || c());
|
|
1142
1142
|
}, ct = (M, W) => M.groupHeader ? /* @__PURE__ */ a(
|
|
1143
1143
|
"li",
|
|
1144
1144
|
{
|
|
@@ -1193,7 +1193,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1193
1193
|
style: k(k({
|
|
1194
1194
|
position: he,
|
|
1195
1195
|
top: z != null ? z : "",
|
|
1196
|
-
left:
|
|
1196
|
+
left: A != null ? A : ""
|
|
1197
1197
|
}, !!x && { maxHeight: x }), nt)
|
|
1198
1198
|
}, Te()), {
|
|
1199
1199
|
children: [
|
|
@@ -1213,7 +1213,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1213
1213
|
})
|
|
1214
1214
|
),
|
|
1215
1215
|
v && /* @__PURE__ */ a(
|
|
1216
|
-
|
|
1216
|
+
D,
|
|
1217
1217
|
{
|
|
1218
1218
|
size: "sm",
|
|
1219
1219
|
as: "div",
|
|
@@ -1225,7 +1225,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1225
1225
|
})
|
|
1226
1226
|
) })
|
|
1227
1227
|
] });
|
|
1228
|
-
return
|
|
1228
|
+
return N === null ? /* @__PURE__ */ a(ir, { children: st }) : st;
|
|
1229
1229
|
}, ra = {
|
|
1230
1230
|
"action-menu-item": "lc-ActionMenuItem-module__action-menu-item___tGD5A",
|
|
1231
1231
|
"action-menu-item__left-node": "lc-ActionMenuItem-module__action-menu-item__left-node___USShV",
|
|
@@ -1240,7 +1240,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1240
1240
|
}),
|
|
1241
1241
|
children: [
|
|
1242
1242
|
e && /* @__PURE__ */ a("div", { className: ra[`${oa}__left-node`], children: e }),
|
|
1243
|
-
/* @__PURE__ */ a(
|
|
1243
|
+
/* @__PURE__ */ a(D, { as: "div", className: ra[`${oa}__label`], children: r }),
|
|
1244
1244
|
t && /* @__PURE__ */ a("div", { className: ra[`${oa}__right-node`], children: t })
|
|
1245
1245
|
]
|
|
1246
1246
|
}
|
|
@@ -1286,7 +1286,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1286
1286
|
)
|
|
1287
1287
|
}
|
|
1288
1288
|
),
|
|
1289
|
-
r && /* @__PURE__ */ a(
|
|
1289
|
+
r && /* @__PURE__ */ a(D, { as: "div", size: "md", className: _a.loader__label, children: r })
|
|
1290
1290
|
] }));
|
|
1291
1291
|
}, pn = (e) => {
|
|
1292
1292
|
if (e === "primary" || e === "destructive")
|
|
@@ -1342,9 +1342,9 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1342
1342
|
"btn--animated-label": "lc-Button-module__btn--animated-label___8uZTa",
|
|
1343
1343
|
btn__content: kn,
|
|
1344
1344
|
"btn--animated-label--expanded": "lc-Button-module__btn--animated-label--expanded___dTfmD"
|
|
1345
|
-
}, de = "btn",
|
|
1345
|
+
}, de = "btn", q = m.forwardRef(
|
|
1346
1346
|
(C, b) => {
|
|
1347
|
-
var
|
|
1347
|
+
var w = C, {
|
|
1348
1348
|
loading: e = !1,
|
|
1349
1349
|
disabled: t = !1,
|
|
1350
1350
|
type: r = "button",
|
|
@@ -1356,10 +1356,10 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1356
1356
|
loaderLabel: d,
|
|
1357
1357
|
className: c,
|
|
1358
1358
|
children: s,
|
|
1359
|
-
href:
|
|
1359
|
+
href: g,
|
|
1360
1360
|
onClick: p,
|
|
1361
1361
|
animatedLabel: v
|
|
1362
|
-
} =
|
|
1362
|
+
} = w, h = F(w, [
|
|
1363
1363
|
"loading",
|
|
1364
1364
|
"disabled",
|
|
1365
1365
|
"type",
|
|
@@ -1375,16 +1375,16 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1375
1375
|
"onClick",
|
|
1376
1376
|
"animatedLabel"
|
|
1377
1377
|
]);
|
|
1378
|
-
const [
|
|
1378
|
+
const [$, S] = m.useState(0), [x, B] = m.useState(!1), y = e || t, N = !s && i, T = v && s && i, R = ["text", "link", "link-light"].includes(_), G = g ? "a" : "button", I = u(
|
|
1379
1379
|
se[de],
|
|
1380
1380
|
se[`${de}--${_}`],
|
|
1381
1381
|
se[`${de}--${n}`],
|
|
1382
1382
|
{
|
|
1383
1383
|
[se[`${de}--loading`]]: e,
|
|
1384
1384
|
[se[`${de}--full-width`]]: o,
|
|
1385
|
-
[se[`${de}--with-${l}-icon`]]: i && !
|
|
1386
|
-
[se[`${de}--icon-only`]]:
|
|
1387
|
-
[se[`${de}--icon-only--bg`]]:
|
|
1385
|
+
[se[`${de}--with-${l}-icon`]]: i && !N && !R,
|
|
1386
|
+
[se[`${de}--icon-only`]]: N,
|
|
1387
|
+
[se[`${de}--icon-only--bg`]]: N && R,
|
|
1388
1388
|
[se[`${de}--disabled`]]: y,
|
|
1389
1389
|
[se[`${de}--animated-label`]]: T,
|
|
1390
1390
|
[se[`${de}--animated-label--expanded`]]: T && x
|
|
@@ -1399,25 +1399,25 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1399
1399
|
"aria-disabled": y,
|
|
1400
1400
|
type: r,
|
|
1401
1401
|
disabled: y
|
|
1402
|
-
}, !y && { href:
|
|
1403
|
-
onMouseEnter: (
|
|
1404
|
-
|
|
1402
|
+
}, !y && { href: g, onClick: p }), h), T && {
|
|
1403
|
+
onMouseEnter: (A) => no(
|
|
1404
|
+
A,
|
|
1405
1405
|
() => B(!0),
|
|
1406
1406
|
h == null ? void 0 : h.onMouseEnter
|
|
1407
1407
|
),
|
|
1408
|
-
onMouseLeave: (
|
|
1409
|
-
|
|
1408
|
+
onMouseLeave: (A) => no(
|
|
1409
|
+
A,
|
|
1410
1410
|
() => B(!1),
|
|
1411
1411
|
h == null ? void 0 : h.onMouseLeave
|
|
1412
1412
|
),
|
|
1413
|
-
onBlur: (
|
|
1414
|
-
|
|
1413
|
+
onBlur: (A) => gn(
|
|
1414
|
+
A,
|
|
1415
1415
|
() => B(!1),
|
|
1416
1416
|
h == null ? void 0 : h.onBlur
|
|
1417
1417
|
),
|
|
1418
|
-
onKeyUp: (
|
|
1418
|
+
onKeyUp: (A) => {
|
|
1419
1419
|
var z;
|
|
1420
|
-
(
|
|
1420
|
+
(A.key === "Enter" || A.key === " ") && B(!0), A.key === "Escape" && B(!1), (z = h == null ? void 0 : h.onKeyUp) == null || z.call(h, A);
|
|
1421
1421
|
}
|
|
1422
1422
|
}), {
|
|
1423
1423
|
children: [
|
|
@@ -1430,7 +1430,7 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1430
1430
|
className: se[`${de}__loader`]
|
|
1431
1431
|
}, pn(_))
|
|
1432
1432
|
),
|
|
1433
|
-
i &&
|
|
1433
|
+
i && m.cloneElement(i, {
|
|
1434
1434
|
className: u(
|
|
1435
1435
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1436
1436
|
i.props.className,
|
|
@@ -1447,8 +1447,8 @@ const Jc = (e) => e === "dark" ? xt.Dark : xt.Light, Fo = s_(void 0), es = () =>
|
|
|
1447
1447
|
"div",
|
|
1448
1448
|
{
|
|
1449
1449
|
className: se[`${de}__content`],
|
|
1450
|
-
style: T ? { maxWidth: x ?
|
|
1451
|
-
children: T ? /* @__PURE__ */ a("span", { ref: (
|
|
1450
|
+
style: T ? { maxWidth: x ? $ : 0 } : void 0,
|
|
1451
|
+
children: T ? /* @__PURE__ */ a("span", { ref: (A) => hn(A, S), children: s }) : s
|
|
1452
1452
|
}
|
|
1453
1453
|
)
|
|
1454
1454
|
]
|
|
@@ -1536,35 +1536,35 @@ const Cn = (e) => {
|
|
|
1536
1536
|
fullSpaceContent: d,
|
|
1537
1537
|
onClose: c,
|
|
1538
1538
|
onOpen: s,
|
|
1539
|
-
withFadeAnimation:
|
|
1539
|
+
withFadeAnimation: g = !0,
|
|
1540
1540
|
transitionDuration: p = 200,
|
|
1541
1541
|
hoverOnDuration: v,
|
|
1542
1542
|
hoverOffDuration: h,
|
|
1543
1543
|
transitionDelay: b = 0,
|
|
1544
1544
|
hoverOnDelay: C,
|
|
1545
|
-
hoverOffDelay:
|
|
1546
|
-
triggerOnClick:
|
|
1545
|
+
hoverOffDelay: w,
|
|
1546
|
+
triggerOnClick: $ = !1,
|
|
1547
1547
|
triggerOnHover: S = !0,
|
|
1548
1548
|
offsetMainAxis: x = 8,
|
|
1549
1549
|
offsetCrossAxis: B = 0,
|
|
1550
1550
|
referenceElement: y,
|
|
1551
|
-
activationThreshold:
|
|
1551
|
+
activationThreshold: N = 0,
|
|
1552
1552
|
useDismissHookProps: T,
|
|
1553
1553
|
useClickHookProps: R,
|
|
1554
1554
|
hoverOutDelayTimeout: G = 100,
|
|
1555
1555
|
arrowOffsetY: I,
|
|
1556
|
-
arrowOffsetX:
|
|
1556
|
+
arrowOffsetX: A,
|
|
1557
1557
|
closeOnTriggerBlur: z = !1,
|
|
1558
1558
|
floatingStrategy: he
|
|
1559
1559
|
}) => {
|
|
1560
|
-
const V = l !== void 0, [H, K] =
|
|
1560
|
+
const V = l !== void 0, [H, K] = m.useState(!1), Me = m.useRef(null), Oe = V ? l : H, Qe = n || _, Te = _r(), nt = Sa(), St = u(
|
|
1561
1561
|
O[Oa],
|
|
1562
1562
|
t,
|
|
1563
1563
|
Qe && O[`${Oa}--${Qe}`],
|
|
1564
1564
|
d && O[`${Oa}--full-space`]
|
|
1565
1565
|
), it = typeof o == "function", Je = (xe) => {
|
|
1566
1566
|
xe !== Oe && (xe ? s == null || s() : c == null || c(), !V && K(xe));
|
|
1567
|
-
}, lt = (xe) =>
|
|
1567
|
+
}, lt = (xe) => g ? xe != null ? xe : p : 0, ct = (xe) => xe != null ? xe : b, {
|
|
1568
1568
|
floatingStyles: st,
|
|
1569
1569
|
refs: M,
|
|
1570
1570
|
context: W,
|
|
@@ -1584,15 +1584,15 @@ const Cn = (e) => {
|
|
|
1584
1584
|
whileElementsMounted: Ia
|
|
1585
1585
|
}), ne = R_(W, {
|
|
1586
1586
|
move: !1,
|
|
1587
|
-
restMs:
|
|
1587
|
+
restMs: N,
|
|
1588
1588
|
delay: {
|
|
1589
1589
|
open: ct(C),
|
|
1590
|
-
close: ct(
|
|
1590
|
+
close: ct(w || G)
|
|
1591
1591
|
},
|
|
1592
1592
|
enabled: S,
|
|
1593
1593
|
handleClose: z ? null : M_()
|
|
1594
1594
|
}), dt = O_(W), Ht = Aa(W, T), zt = Da(W, { role: "tooltip" }), cr = Ta(W, k({
|
|
1595
|
-
enabled:
|
|
1595
|
+
enabled: $
|
|
1596
1596
|
}, R)), { isMounted: sr, styles: dr } = Or(W, {
|
|
1597
1597
|
duration: {
|
|
1598
1598
|
open: lt(v),
|
|
@@ -1605,7 +1605,7 @@ const Cn = (e) => {
|
|
|
1605
1605
|
zt,
|
|
1606
1606
|
cr
|
|
1607
1607
|
]);
|
|
1608
|
-
|
|
1608
|
+
m.useEffect(() => {
|
|
1609
1609
|
y && M.setReference(y);
|
|
1610
1610
|
}, [M.setReference, y]);
|
|
1611
1611
|
const Fa = /* @__PURE__ */ f(ae, { children: [
|
|
@@ -1628,7 +1628,7 @@ const Cn = (e) => {
|
|
|
1628
1628
|
}, pr()), {
|
|
1629
1629
|
"data-status": ur,
|
|
1630
1630
|
children: [
|
|
1631
|
-
/* @__PURE__ */ a(
|
|
1631
|
+
/* @__PURE__ */ a(D, { as: "div", className: O[`${Oa}__content`], children: e }),
|
|
1632
1632
|
/* @__PURE__ */ a(
|
|
1633
1633
|
G_,
|
|
1634
1634
|
k({
|
|
@@ -1639,7 +1639,7 @@ const Cn = (e) => {
|
|
|
1639
1639
|
height: 5,
|
|
1640
1640
|
style: k({}, yn(
|
|
1641
1641
|
I,
|
|
1642
|
-
|
|
1642
|
+
A,
|
|
1643
1643
|
Y,
|
|
1644
1644
|
ce
|
|
1645
1645
|
))
|
|
@@ -1650,7 +1650,7 @@ const Cn = (e) => {
|
|
|
1650
1650
|
) })
|
|
1651
1651
|
] });
|
|
1652
1652
|
return Te === null ? /* @__PURE__ */ a(ir, { children: Fa }) : Fa;
|
|
1653
|
-
},
|
|
1653
|
+
}, ns = ({ text: e }) => /* @__PURE__ */ a("div", { children: e }), na = "tooltip", is = ({
|
|
1654
1654
|
className: e,
|
|
1655
1655
|
header: t,
|
|
1656
1656
|
text: r,
|
|
@@ -1680,7 +1680,7 @@ const Cn = (e) => {
|
|
|
1680
1680
|
}
|
|
1681
1681
|
),
|
|
1682
1682
|
/* @__PURE__ */ a(
|
|
1683
|
-
|
|
1683
|
+
D,
|
|
1684
1684
|
{
|
|
1685
1685
|
as: "div",
|
|
1686
1686
|
className: u({
|
|
@@ -1731,7 +1731,7 @@ const Cn = (e) => {
|
|
|
1731
1731
|
),
|
|
1732
1732
|
children: [
|
|
1733
1733
|
/* @__PURE__ */ a(
|
|
1734
|
-
|
|
1734
|
+
q,
|
|
1735
1735
|
E(k({}, i), {
|
|
1736
1736
|
kind: i.kind || d(_),
|
|
1737
1737
|
onClick: i.handleClick,
|
|
@@ -1739,7 +1739,7 @@ const Cn = (e) => {
|
|
|
1739
1739
|
})
|
|
1740
1740
|
),
|
|
1741
1741
|
l && /* @__PURE__ */ a(
|
|
1742
|
-
|
|
1742
|
+
q,
|
|
1743
1743
|
E(k({}, l), {
|
|
1744
1744
|
className: u(
|
|
1745
1745
|
O[`${pt}-footer-secondary`],
|
|
@@ -1875,15 +1875,15 @@ class En {
|
|
|
1875
1875
|
return this.getBoundingClientRect().height;
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
|
-
const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t),
|
|
1878
|
+
const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), ls = (e) => {
|
|
1879
1879
|
const {
|
|
1880
1880
|
className: t,
|
|
1881
1881
|
parentElementName: r,
|
|
1882
1882
|
isVisible: o = !1,
|
|
1883
1883
|
shouldSlide: _ = !0
|
|
1884
|
-
} = e, [n, i] =
|
|
1884
|
+
} = e, [n, i] = m.useState(
|
|
1885
1885
|
null
|
|
1886
|
-
), [l, d] =
|
|
1886
|
+
), [l, d] = m.useState(null), [c, s] = m.useState(_), g = () => {
|
|
1887
1887
|
n && (d(
|
|
1888
1888
|
co(
|
|
1889
1889
|
n,
|
|
@@ -1891,17 +1891,17 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
1891
1891
|
).getBoundingClientRect()
|
|
1892
1892
|
), s(!1));
|
|
1893
1893
|
};
|
|
1894
|
-
return
|
|
1894
|
+
return m.useEffect(() => {
|
|
1895
1895
|
if (n !== null)
|
|
1896
|
-
return window.addEventListener("resize",
|
|
1897
|
-
window.removeEventListener("resize",
|
|
1896
|
+
return window.addEventListener("resize", g), window.addEventListener("scroll", g), () => {
|
|
1897
|
+
window.removeEventListener("resize", g), window.removeEventListener("scroll", g);
|
|
1898
1898
|
};
|
|
1899
|
-
}, [n]),
|
|
1899
|
+
}, [n]), m.useEffect(() => {
|
|
1900
1900
|
if (r) {
|
|
1901
1901
|
const p = document.querySelector(r);
|
|
1902
1902
|
i(p);
|
|
1903
1903
|
}
|
|
1904
|
-
}, [r]),
|
|
1904
|
+
}, [r]), m.useEffect(() => {
|
|
1905
1905
|
n && d(
|
|
1906
1906
|
co(
|
|
1907
1907
|
n,
|
|
@@ -1935,15 +1935,15 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
1935
1935
|
})
|
|
1936
1936
|
)
|
|
1937
1937
|
] }) : null;
|
|
1938
|
-
}, ia = "reports-tooltip",
|
|
1938
|
+
}, ia = "reports-tooltip", cs = ({
|
|
1939
1939
|
title: e,
|
|
1940
1940
|
description: t,
|
|
1941
1941
|
children: r
|
|
1942
1942
|
}) => /* @__PURE__ */ f("div", { className: O[ia], children: [
|
|
1943
1943
|
/* @__PURE__ */ f("div", { className: O[`${ia}__heading`], children: [
|
|
1944
|
-
/* @__PURE__ */ a(
|
|
1944
|
+
/* @__PURE__ */ a(D, { as: "div", className: O[`${ia}__heading__title`], children: e }),
|
|
1945
1945
|
/* @__PURE__ */ a(
|
|
1946
|
-
|
|
1946
|
+
D,
|
|
1947
1947
|
{
|
|
1948
1948
|
as: "div",
|
|
1949
1949
|
size: "xs",
|
|
@@ -1952,7 +1952,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
)
|
|
1954
1954
|
] }),
|
|
1955
|
-
/* @__PURE__ */ a("div", { className: O[`${ia}__content`], children: /* @__PURE__ */ a(
|
|
1955
|
+
/* @__PURE__ */ a("div", { className: O[`${ia}__content`], children: /* @__PURE__ */ a(D, { as: "div", children: r }) })
|
|
1956
1956
|
] }), Q = {
|
|
1957
1957
|
"action-bar": "lc-ActionBar-module__action-bar___yfLdO",
|
|
1958
1958
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___E8fX6",
|
|
@@ -1988,7 +1988,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
1988
1988
|
[Q[`${Vt}--active`]]: t,
|
|
1989
1989
|
[Q[`${Vt}--vertical`]]: r
|
|
1990
1990
|
}), _ = /* @__PURE__ */ a(
|
|
1991
|
-
|
|
1991
|
+
q,
|
|
1992
1992
|
{
|
|
1993
1993
|
id: e.key,
|
|
1994
1994
|
title: e != null && e.showTooltip ? void 0 : e.label,
|
|
@@ -2026,7 +2026,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2026
2026
|
},
|
|
2027
2027
|
e.key
|
|
2028
2028
|
) : /* @__PURE__ */ a("div", { "data-testid": e.key, className: o, children: _ });
|
|
2029
|
-
}, La = "action-bar", gt = "action-bar__menu-wrapper", Tn = 44,
|
|
2029
|
+
}, La = "action-bar", gt = "action-bar__menu-wrapper", Tn = 44, ss = ({
|
|
2030
2030
|
className: e,
|
|
2031
2031
|
id: t = "action-bar-area",
|
|
2032
2032
|
type: r = "menu",
|
|
@@ -2035,29 +2035,29 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2035
2035
|
vertical: n,
|
|
2036
2036
|
menuFooter: i
|
|
2037
2037
|
}) => {
|
|
2038
|
-
const [l, d] =
|
|
2038
|
+
const [l, d] = m.useState(
|
|
2039
2039
|
o.length
|
|
2040
|
-
), [c, s] =
|
|
2040
|
+
), [c, s] = m.useState([]), [g, p] = m.useState(!1), v = r === "scroll", h = u(
|
|
2041
2041
|
Q[La],
|
|
2042
2042
|
e,
|
|
2043
2043
|
n && Q[`${La}--vertical`]
|
|
2044
2044
|
), b = !v && c.length !== 0;
|
|
2045
|
-
|
|
2045
|
+
m.useEffect(() => {
|
|
2046
2046
|
v || (o.length > l ? s(o.slice(l, o.length)) : s([]));
|
|
2047
|
-
}, [o, l]),
|
|
2048
|
-
const
|
|
2049
|
-
if (!v &&
|
|
2047
|
+
}, [o, l]), m.useEffect(() => {
|
|
2048
|
+
const $ = !!window.ResizeObserver;
|
|
2049
|
+
if (!v && $) {
|
|
2050
2050
|
const S = new ResizeObserver((x) => {
|
|
2051
|
-
const { width: B, height: y } = x[0].contentRect,
|
|
2052
|
-
(
|
|
2051
|
+
const { width: B, height: y } = x[0].contentRect, N = n ? y : B, T = c.length > 0 ? 60 : 0, R = Math.floor(
|
|
2052
|
+
(N - T) / Tn
|
|
2053
2053
|
);
|
|
2054
2054
|
R >= 0 && R !== l && d(R);
|
|
2055
2055
|
});
|
|
2056
2056
|
return S.observe(document.querySelector(`#${t}`)), () => S.disconnect();
|
|
2057
2057
|
}
|
|
2058
2058
|
}, [c, v, l]);
|
|
2059
|
-
const C =
|
|
2060
|
-
(
|
|
2059
|
+
const C = m.useCallback(() => c.reduce(
|
|
2060
|
+
($, S) => {
|
|
2061
2061
|
if (!S.hideInMenu) {
|
|
2062
2062
|
const x = {
|
|
2063
2063
|
key: S.key,
|
|
@@ -2065,12 +2065,12 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2065
2065
|
withDivider: S.withDivider,
|
|
2066
2066
|
onClick: S.onClick
|
|
2067
2067
|
};
|
|
2068
|
-
|
|
2068
|
+
$.push(x);
|
|
2069
2069
|
}
|
|
2070
|
-
return
|
|
2070
|
+
return $;
|
|
2071
2071
|
},
|
|
2072
2072
|
[]
|
|
2073
|
-
), [c]),
|
|
2073
|
+
), [c]), w = c.find(($) => $.key === _);
|
|
2074
2074
|
return /* @__PURE__ */ f("div", { id: t, className: h, children: [
|
|
2075
2075
|
/* @__PURE__ */ a(
|
|
2076
2076
|
"div",
|
|
@@ -2078,11 +2078,11 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2078
2078
|
className: u(Q[`${La}__items`], {
|
|
2079
2079
|
[Q[`${La}__items--scroll`]]: v
|
|
2080
2080
|
}),
|
|
2081
|
-
children: o.slice(0, l).map((
|
|
2081
|
+
children: o.slice(0, l).map(($) => /* @__PURE__ */ a(
|
|
2082
2082
|
In,
|
|
2083
2083
|
{
|
|
2084
|
-
option:
|
|
2085
|
-
isActive:
|
|
2084
|
+
option: $,
|
|
2085
|
+
isActive: $.key === _,
|
|
2086
2086
|
vertical: n
|
|
2087
2087
|
}
|
|
2088
2088
|
))
|
|
@@ -2093,7 +2093,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2093
2093
|
{
|
|
2094
2094
|
className: u(
|
|
2095
2095
|
Q[gt],
|
|
2096
|
-
|
|
2096
|
+
w && Q[`${gt}--active`],
|
|
2097
2097
|
n && Q[`${gt}--vertical`]
|
|
2098
2098
|
),
|
|
2099
2099
|
children: /* @__PURE__ */ a(
|
|
@@ -2109,11 +2109,11 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2109
2109
|
n && Q[`${gt}__trigger-vertical`]
|
|
2110
2110
|
),
|
|
2111
2111
|
triggerRenderer: /* @__PURE__ */ a(
|
|
2112
|
-
|
|
2112
|
+
q,
|
|
2113
2113
|
{
|
|
2114
2114
|
className: u(
|
|
2115
2115
|
Q[`${gt}__button`],
|
|
2116
|
-
|
|
2116
|
+
w && Q[`${gt}__button--active`]
|
|
2117
2117
|
),
|
|
2118
2118
|
kind: "plain",
|
|
2119
2119
|
icon: /* @__PURE__ */ a(
|
|
@@ -2123,18 +2123,18 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2123
2123
|
kind: "primary",
|
|
2124
2124
|
className: u(
|
|
2125
2125
|
Q[`${gt}__button__icon`],
|
|
2126
|
-
|
|
2126
|
+
g && Q[`${gt}__button__icon--open`]
|
|
2127
2127
|
)
|
|
2128
2128
|
}
|
|
2129
2129
|
),
|
|
2130
2130
|
iconPosition: "right",
|
|
2131
|
-
children:
|
|
2131
|
+
children: w && /* @__PURE__ */ a(
|
|
2132
2132
|
"div",
|
|
2133
2133
|
{
|
|
2134
2134
|
className: u(
|
|
2135
2135
|
Q[`${gt}__button__with-item`]
|
|
2136
2136
|
),
|
|
2137
|
-
children:
|
|
2137
|
+
children: w.element
|
|
2138
2138
|
}
|
|
2139
2139
|
)
|
|
2140
2140
|
}
|
|
@@ -2151,7 +2151,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2151
2151
|
"action-card__column": "lc-ActionCard-module__action-card__column___KgMRx",
|
|
2152
2152
|
"action-card__column--first": "lc-ActionCard-module__action-card__column--first___BWQwi",
|
|
2153
2153
|
"action-card__column--second": "lc-ActionCard-module__action-card__column--second___-X-gO"
|
|
2154
|
-
}, Dt = "action-card",
|
|
2154
|
+
}, Dt = "action-card", ds = ({
|
|
2155
2155
|
className: e,
|
|
2156
2156
|
children: t,
|
|
2157
2157
|
secondColumn: r,
|
|
@@ -2234,7 +2234,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2234
2234
|
source: Io,
|
|
2235
2235
|
kind: "error"
|
|
2236
2236
|
}
|
|
2237
|
-
}, De = "alert",
|
|
2237
|
+
}, De = "alert", us = (l) => {
|
|
2238
2238
|
var d = l, {
|
|
2239
2239
|
children: e,
|
|
2240
2240
|
className: t,
|
|
@@ -2250,7 +2250,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2250
2250
|
"kind",
|
|
2251
2251
|
"onClose"
|
|
2252
2252
|
]);
|
|
2253
|
-
const c =
|
|
2253
|
+
const c = m.useRef(null), [s, g] = m.useState(null), p = u(
|
|
2254
2254
|
Ae[De],
|
|
2255
2255
|
Ae[`${De}--${_}`],
|
|
2256
2256
|
s === "large" && Ae[`${De}--large`],
|
|
@@ -2258,8 +2258,8 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2258
2258
|
s === "small" && Ae[`${De}--small`],
|
|
2259
2259
|
t
|
|
2260
2260
|
);
|
|
2261
|
-
return
|
|
2262
|
-
const v = () => c.current && c.current.offsetWidth <= 400 ?
|
|
2261
|
+
return m.useEffect(() => {
|
|
2262
|
+
const v = () => c.current && c.current.offsetWidth <= 400 ? g("small") : c.current && c.current.offsetWidth > 400 && c.current.offsetWidth <= 800 ? g("medium") : g("large"), h = Ao(() => {
|
|
2263
2263
|
v();
|
|
2264
2264
|
}, 500);
|
|
2265
2265
|
return window.addEventListener("resize", h), v(), () => window.removeEventListener("resize", h);
|
|
@@ -2274,7 +2274,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2274
2274
|
})
|
|
2275
2275
|
),
|
|
2276
2276
|
/* @__PURE__ */ a(
|
|
2277
|
-
|
|
2277
|
+
D,
|
|
2278
2278
|
{
|
|
2279
2279
|
as: "div",
|
|
2280
2280
|
className: Ae[`${De}__content__wrapper__text`],
|
|
@@ -2283,9 +2283,9 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2283
2283
|
)
|
|
2284
2284
|
] }),
|
|
2285
2285
|
(r || o) && /* @__PURE__ */ f("div", { className: Ae[`${De}__content__wrapper__cta`], children: [
|
|
2286
|
-
r && /* @__PURE__ */ a(
|
|
2286
|
+
r && /* @__PURE__ */ a(q, { kind: "high-contrast", onClick: r.handleClick, children: r.label }),
|
|
2287
2287
|
o && /* @__PURE__ */ a(
|
|
2288
|
-
|
|
2288
|
+
q,
|
|
2289
2289
|
{
|
|
2290
2290
|
className: Ae[`${De}__content__wrapper__cta__link`],
|
|
2291
2291
|
kind: "text",
|
|
@@ -2296,7 +2296,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2296
2296
|
] })
|
|
2297
2297
|
] }),
|
|
2298
2298
|
n && /* @__PURE__ */ a(
|
|
2299
|
-
|
|
2299
|
+
q,
|
|
2300
2300
|
{
|
|
2301
2301
|
"aria-label": "Close alert",
|
|
2302
2302
|
className: Ae[`${De}__close-icon`],
|
|
@@ -2332,18 +2332,18 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2332
2332
|
sideNavigationContainerClassName: d,
|
|
2333
2333
|
contentClassName: c
|
|
2334
2334
|
} = e, s = u(Pe[zo], r), {
|
|
2335
|
-
isSideNavigationVisible:
|
|
2335
|
+
isSideNavigationVisible: g,
|
|
2336
2336
|
setIsMobileViewEnabled: p,
|
|
2337
2337
|
isMobileViewEnabled: v
|
|
2338
|
-
} = Mo(), h =
|
|
2339
|
-
isVisible:
|
|
2338
|
+
} = Mo(), h = m.useRef(null), { isOpen: b, isMounted: C } = Lt({
|
|
2339
|
+
isVisible: g,
|
|
2340
2340
|
elementRef: h
|
|
2341
|
-
}), { isMobile:
|
|
2341
|
+
}), { isMobile: w, handleResizeRef: $ } = q_({
|
|
2342
2342
|
mobileBreakpoint: Gn
|
|
2343
2343
|
});
|
|
2344
|
-
return
|
|
2345
|
-
p(
|
|
2346
|
-
}, [
|
|
2344
|
+
return m.useEffect(() => {
|
|
2345
|
+
p(w);
|
|
2346
|
+
}, [w]), /* @__PURE__ */ f("div", { className: s, ref: $, children: [
|
|
2347
2347
|
!v && o,
|
|
2348
2348
|
/* @__PURE__ */ f(
|
|
2349
2349
|
"div",
|
|
@@ -2418,7 +2418,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2418
2418
|
}
|
|
2419
2419
|
)
|
|
2420
2420
|
] });
|
|
2421
|
-
},
|
|
2421
|
+
}, ms = (e) => {
|
|
2422
2422
|
const o = e, { isSideNavigationVisible: t } = o, r = F(o, ["isSideNavigationVisible"]);
|
|
2423
2423
|
return /* @__PURE__ */ a(Z_, { isSideNavigationVisible: t, children: /* @__PURE__ */ a(Hn, k({}, r)) });
|
|
2424
2424
|
}, Kt = {
|
|
@@ -2428,7 +2428,7 @@ const io = 8, lo = "guide-tooltip", co = (e, t) => new En(e, t), is = (e) => {
|
|
|
2428
2428
|
"side-navigation__footer": "lc-SideNavigation-module__side-navigation__footer___9LLon",
|
|
2429
2429
|
"side-navigation__nav-wrapper": "lc-SideNavigation-module__side-navigation__nav-wrapper___8Opuh",
|
|
2430
2430
|
"side-navigation__nav-wrapper--no-gaps": "lc-SideNavigation-module__side-navigation__nav-wrapper--no-gaps___1ApnT"
|
|
2431
|
-
}, Yt = "side-navigation",
|
|
2431
|
+
}, Yt = "side-navigation", ps = ({
|
|
2432
2432
|
children: e,
|
|
2433
2433
|
className: t,
|
|
2434
2434
|
title: r,
|
|
@@ -2489,7 +2489,7 @@ const zn = "side-navigation-item-test-id", Vn = "side-navigation-active-item-tes
|
|
|
2489
2489
|
isMainEntry: d,
|
|
2490
2490
|
onItemHover: c,
|
|
2491
2491
|
isIconHidden: s
|
|
2492
|
-
} = v,
|
|
2492
|
+
} = v, g = F(v, [
|
|
2493
2493
|
"leftNode",
|
|
2494
2494
|
"shouldKeepIconSpace",
|
|
2495
2495
|
"url",
|
|
@@ -2502,10 +2502,10 @@ const zn = "side-navigation-item-test-id", Vn = "side-navigation-active-item-tes
|
|
|
2502
2502
|
"onItemHover",
|
|
2503
2503
|
"isIconHidden"
|
|
2504
2504
|
]);
|
|
2505
|
-
const h = typeof o == "string", b = (
|
|
2506
|
-
|
|
2507
|
-
}, C = (
|
|
2508
|
-
|
|
2505
|
+
const h = typeof o == "string", b = (w) => {
|
|
2506
|
+
w.preventDefault(), i == null || i();
|
|
2507
|
+
}, C = (w) => {
|
|
2508
|
+
w.key === "Enter" && (w.preventDefault(), i == null || i());
|
|
2509
2509
|
};
|
|
2510
2510
|
return /* @__PURE__ */ a(
|
|
2511
2511
|
"li",
|
|
@@ -2513,7 +2513,7 @@ const zn = "side-navigation-item-test-id", Vn = "side-navigation-active-item-tes
|
|
|
2513
2513
|
className: u([Ge[Ue], _]),
|
|
2514
2514
|
"data-testid": l ? Vn : zn,
|
|
2515
2515
|
"data-active": l
|
|
2516
|
-
},
|
|
2516
|
+
}, g), {
|
|
2517
2517
|
children: /* @__PURE__ */ f(
|
|
2518
2518
|
"a",
|
|
2519
2519
|
{
|
|
@@ -2540,7 +2540,7 @@ const zn = "side-navigation-item-test-id", Vn = "side-navigation-active-item-tes
|
|
|
2540
2540
|
}
|
|
2541
2541
|
),
|
|
2542
2542
|
h ? /* @__PURE__ */ a(
|
|
2543
|
-
|
|
2543
|
+
D,
|
|
2544
2544
|
{
|
|
2545
2545
|
bold: l || d,
|
|
2546
2546
|
className: u(Ge[`${Ue}__label`], {
|
|
@@ -2572,7 +2572,7 @@ const zn = "side-navigation-item-test-id", Vn = "side-navigation-active-item-tes
|
|
|
2572
2572
|
"side-navigation-group__list-wrapper": "lc-SideNavigationGroup-module__side-navigation-group__list-wrapper___moivM",
|
|
2573
2573
|
"side-navigation-group__list-wrapper--expanded": "lc-SideNavigationGroup-module__side-navigation-group__list-wrapper--expanded___cwPUQ",
|
|
2574
2574
|
"side-navigation-group__list": "lc-SideNavigationGroup-module__side-navigation-group__list___Srb-J"
|
|
2575
|
-
}, Et = "side-navigation-group", Yn = 34,
|
|
2575
|
+
}, Et = "side-navigation-group", Yn = 34, gs = ({
|
|
2576
2576
|
label: e,
|
|
2577
2577
|
rightNode: t,
|
|
2578
2578
|
className: r,
|
|
@@ -2582,20 +2582,20 @@ const zn = "side-navigation-item-test-id", Vn = "side-navigation-active-item-tes
|
|
|
2582
2582
|
shouldOpenOnInit: i = !1,
|
|
2583
2583
|
shouldOpenOnActive: l = !1
|
|
2584
2584
|
}) => {
|
|
2585
|
-
const [d, c] =
|
|
2585
|
+
const [d, c] = m.useState(!1), [s, g] = m.useState(0), p = m.useRef(!1), v = m.useRef(null), { isOpen: h, isMounted: b, setShouldBeVisible: C } = Lt({
|
|
2586
2586
|
isVisible: !_ || i,
|
|
2587
2587
|
elementRef: v
|
|
2588
|
-
}),
|
|
2588
|
+
}), w = typeof t == "function" ? t(h) : t, $ = typeof e == "function" ? e(h) : e, S = () => C(!0), x = () => {
|
|
2589
2589
|
_ && C((y) => !y);
|
|
2590
2590
|
}, B = (y) => {
|
|
2591
|
-
const
|
|
2591
|
+
const N = y == null ? void 0 : y.getElementsByTagName("li"), T = N != null && N.length ? [...N].some(
|
|
2592
2592
|
(G) => G.getAttribute("data-active") === "true"
|
|
2593
2593
|
) : !1;
|
|
2594
2594
|
c(T);
|
|
2595
|
-
const R = ((
|
|
2596
|
-
|
|
2595
|
+
const R = ((N == null ? void 0 : N.length) || 0) * Yn;
|
|
2596
|
+
g(R);
|
|
2597
2597
|
};
|
|
2598
|
-
return
|
|
2598
|
+
return m.useEffect(() => {
|
|
2599
2599
|
l && (!p.current && d && S(), p.current = d);
|
|
2600
2600
|
}, [d, l]), /* @__PURE__ */ f("div", { "data-testid": "side-navigation-group", className: Bt[Et], children: [
|
|
2601
2601
|
_ ? /* @__PURE__ */ a(
|
|
@@ -2610,19 +2610,19 @@ const zn = "side-navigation-item-test-id", Vn = "side-navigation-active-item-tes
|
|
|
2610
2610
|
children: /* @__PURE__ */ a(P, { source: rr, size: "small" })
|
|
2611
2611
|
}
|
|
2612
2612
|
),
|
|
2613
|
-
label: /* @__PURE__ */ a(
|
|
2613
|
+
label: /* @__PURE__ */ a(D, { className: Bt[`${Et}__label`], bold: !0, children: $ }),
|
|
2614
2614
|
isMainEntry: !0,
|
|
2615
2615
|
onClick: x,
|
|
2616
2616
|
onItemHover: n,
|
|
2617
|
-
rightNode:
|
|
2617
|
+
rightNode: w
|
|
2618
2618
|
}
|
|
2619
2619
|
) : /* @__PURE__ */ a(
|
|
2620
|
-
|
|
2620
|
+
D,
|
|
2621
2621
|
{
|
|
2622
2622
|
bold: !0,
|
|
2623
2623
|
className: Bt[`${Et}__simple-label`],
|
|
2624
2624
|
onMouseEnter: n || Na,
|
|
2625
|
-
children:
|
|
2625
|
+
children: $
|
|
2626
2626
|
}
|
|
2627
2627
|
),
|
|
2628
2628
|
/* @__PURE__ */ a(
|
|
@@ -2650,7 +2650,7 @@ const zn = "side-navigation-item-test-id", Vn = "side-navigation-active-item-tes
|
|
|
2650
2650
|
}, so = {
|
|
2651
2651
|
"navigation-group": "lc-NavigationGroup-module__navigation-group___61JTX",
|
|
2652
2652
|
"navigation-group--scrollable": "lc-NavigationGroup-module__navigation-group--scrollable___BL8-e"
|
|
2653
|
-
}, uo = "navigation-group",
|
|
2653
|
+
}, uo = "navigation-group", hs = (_) => {
|
|
2654
2654
|
var n = _, {
|
|
2655
2655
|
children: e,
|
|
2656
2656
|
className: t,
|
|
@@ -2678,9 +2678,9 @@ const zn = "side-navigation-item-test-id", Vn = "side-navigation-active-item-tes
|
|
|
2678
2678
|
function Xn(e, t) {
|
|
2679
2679
|
return e > t ? `${t}+` : `${e}`;
|
|
2680
2680
|
}
|
|
2681
|
-
const Zn = "lc-Badge-module__badge___ZbEBU",
|
|
2681
|
+
const Zn = "lc-Badge-module__badge___ZbEBU", qn = "lc-Badge-module__badge__dot___MSVVf", Ga = {
|
|
2682
2682
|
badge: Zn,
|
|
2683
|
-
badge__dot:
|
|
2683
|
+
badge__dot: qn,
|
|
2684
2684
|
"badge--large": "lc-Badge-module__badge--large___P4qtE",
|
|
2685
2685
|
"badge--medium": "lc-Badge-module__badge--medium___5HFVb",
|
|
2686
2686
|
"badge--compact": "lc-Badge-module__badge--compact___AUaWg",
|
|
@@ -2723,7 +2723,7 @@ const Zn = "lc-Badge-module__badge___ZbEBU", jn = "lc-Badge-module__badge__dot__
|
|
|
2723
2723
|
"navigation-item__button--active": "lc-NavigationItem-module__navigation-item__button--active___zsO2E",
|
|
2724
2724
|
"navigation-item__button--opacity": "lc-NavigationItem-module__navigation-item__button--opacity___buZjS",
|
|
2725
2725
|
"navigation-item__button--mobile": "lc-NavigationItem-module__navigation-item__button--mobile___GqQwP"
|
|
2726
|
-
}, $t = "navigation-item",
|
|
2726
|
+
}, $t = "navigation-item", jn = (e, t) => typeof e == "number" ? /* @__PURE__ */ a(
|
|
2727
2727
|
er,
|
|
2728
2728
|
{
|
|
2729
2729
|
"data-testid": `${t}-badge-count`,
|
|
@@ -2739,8 +2739,8 @@ const Zn = "lc-Badge-module__badge___ZbEBU", jn = "lc-Badge-module__badge__dot__
|
|
|
2739
2739
|
size: "compact",
|
|
2740
2740
|
type: e
|
|
2741
2741
|
}
|
|
2742
|
-
),
|
|
2743
|
-
var p =
|
|
2742
|
+
), fs = (g) => {
|
|
2743
|
+
var p = g, {
|
|
2744
2744
|
id: e,
|
|
2745
2745
|
label: t,
|
|
2746
2746
|
icon: r,
|
|
@@ -2813,7 +2813,7 @@ const Zn = "lc-Badge-module__badge___ZbEBU", jn = "lc-Badge-module__badge__dot__
|
|
|
2813
2813
|
]
|
|
2814
2814
|
})
|
|
2815
2815
|
),
|
|
2816
|
-
i &&
|
|
2816
|
+
i && jn(i, e)
|
|
2817
2817
|
] }),
|
|
2818
2818
|
children: t
|
|
2819
2819
|
}
|
|
@@ -2823,7 +2823,7 @@ const Zn = "lc-Badge-module__badge___ZbEBU", jn = "lc-Badge-module__badge__dot__
|
|
|
2823
2823
|
);
|
|
2824
2824
|
}, Qn = "lc-Navigation-module__navigation___oNBOL", Jn = {
|
|
2825
2825
|
navigation: Qn
|
|
2826
|
-
}, ei = "navigation",
|
|
2826
|
+
}, ei = "navigation", bs = (o) => {
|
|
2827
2827
|
var _ = o, {
|
|
2828
2828
|
children: e,
|
|
2829
2829
|
className: t
|
|
@@ -2874,18 +2874,18 @@ const Zn = "lc-Badge-module__badge___ZbEBU", jn = "lc-Badge-module__badge__dot__
|
|
|
2874
2874
|
secondaryCta: n,
|
|
2875
2875
|
isVisible: i = !0
|
|
2876
2876
|
}) => {
|
|
2877
|
-
const [l, d] =
|
|
2877
|
+
const [l, d] = m.useState(!1), c = m.useRef(null), { isMounted: s, isOpen: g } = Lt({
|
|
2878
2878
|
isVisible: i,
|
|
2879
2879
|
elementRef: c
|
|
2880
|
-
}), p =
|
|
2880
|
+
}), p = m.useCallback(
|
|
2881
2881
|
(S) => zr(
|
|
2882
2882
|
S,
|
|
2883
2883
|
(x) => d(x.width < Un)
|
|
2884
2884
|
),
|
|
2885
2885
|
[]
|
|
2886
|
-
), v = t === "warning" ? "link-inverted" : "text", h = t === "warning" ? "plain-lock-black" : "high-contrast", b = _ == null ? void 0 : _.kind, C = n == null ? void 0 : n.kind,
|
|
2886
|
+
), v = t === "warning" ? "link-inverted" : "text", h = t === "warning" ? "plain-lock-black" : "high-contrast", b = _ == null ? void 0 : _.kind, C = n == null ? void 0 : n.kind, w = _ || n ? /* @__PURE__ */ f("div", { className: Ye[`${It}__cta-wrapper`], children: [
|
|
2887
2887
|
_ && /* @__PURE__ */ a(
|
|
2888
|
-
|
|
2888
|
+
q,
|
|
2889
2889
|
E(k({
|
|
2890
2890
|
size: "compact"
|
|
2891
2891
|
}, _), {
|
|
@@ -2894,7 +2894,7 @@ const Zn = "lc-Badge-module__badge___ZbEBU", jn = "lc-Badge-module__badge__dot__
|
|
|
2894
2894
|
})
|
|
2895
2895
|
),
|
|
2896
2896
|
n && /* @__PURE__ */ a(
|
|
2897
|
-
|
|
2897
|
+
q,
|
|
2898
2898
|
E(k({
|
|
2899
2899
|
size: "compact"
|
|
2900
2900
|
}, n), {
|
|
@@ -2902,10 +2902,10 @@ const Zn = "lc-Badge-module__badge___ZbEBU", jn = "lc-Badge-module__badge__dot__
|
|
|
2902
2902
|
children: n.label
|
|
2903
2903
|
})
|
|
2904
2904
|
)
|
|
2905
|
-
] }) : null,
|
|
2905
|
+
] }) : null, $ = /* @__PURE__ */ f(ae, { children: [
|
|
2906
2906
|
/* @__PURE__ */ f("div", { className: Ye[`${It}__children-wrapper`], children: [
|
|
2907
2907
|
o,
|
|
2908
|
-
|
|
2908
|
+
w
|
|
2909
2909
|
] }),
|
|
2910
2910
|
r && /* @__PURE__ */ a(
|
|
2911
2911
|
"button",
|
|
@@ -2922,7 +2922,7 @@ const Zn = "lc-Badge-module__badge___ZbEBU", jn = "lc-Badge-module__badge__dot__
|
|
|
2922
2922
|
className: u(
|
|
2923
2923
|
Ye[`${It}__wrapper`],
|
|
2924
2924
|
{
|
|
2925
|
-
[Ye[`${It}__wrapper--open`]]:
|
|
2925
|
+
[Ye[`${It}__wrapper--open`]]: g
|
|
2926
2926
|
},
|
|
2927
2927
|
"lc-dark-theme"
|
|
2928
2928
|
// Alerts are forced into dark mode to maintain consistency of the colors
|
|
@@ -2937,11 +2937,11 @@ const Zn = "lc-Badge-module__badge___ZbEBU", jn = "lc-Badge-module__badge__dot__
|
|
|
2937
2937
|
Ye[It],
|
|
2938
2938
|
Ye[`${It}--${t}`],
|
|
2939
2939
|
{
|
|
2940
|
-
[Ye[`${It}--open`]]:
|
|
2940
|
+
[Ye[`${It}--open`]]: g
|
|
2941
2941
|
},
|
|
2942
2942
|
e
|
|
2943
2943
|
),
|
|
2944
|
-
children:
|
|
2944
|
+
children: $
|
|
2945
2945
|
}
|
|
2946
2946
|
)
|
|
2947
2947
|
}
|
|
@@ -2957,7 +2957,7 @@ const Ha = {
|
|
|
2957
2957
|
"expiration-counter__button": "lc-ExpirationCounter-module__expiration-counter__button___Xv5Nx",
|
|
2958
2958
|
"expiration-counter__button__number": "lc-ExpirationCounter-module__expiration-counter__button__number___9hZV4",
|
|
2959
2959
|
"expiration-counter__button__label": "lc-ExpirationCounter-module__expiration-counter__button__label___nJAOv"
|
|
2960
|
-
}, za = "expiration-counter",
|
|
2960
|
+
}, za = "expiration-counter", vs = (i) => {
|
|
2961
2961
|
var l = i, {
|
|
2962
2962
|
id: e,
|
|
2963
2963
|
daysLeft: t,
|
|
@@ -2987,7 +2987,7 @@ const Ha = {
|
|
|
2987
2987
|
) }, e);
|
|
2988
2988
|
}, ri = {
|
|
2989
2989
|
"mobile-navigation": "lc-MobileNavigation-module__mobile-navigation___a--p5"
|
|
2990
|
-
}, oi = "mobile-navigation",
|
|
2990
|
+
}, oi = "mobile-navigation", ks = (o) => {
|
|
2991
2991
|
var _ = o, {
|
|
2992
2992
|
children: e,
|
|
2993
2993
|
className: t
|
|
@@ -3011,7 +3011,7 @@ const Ha = {
|
|
|
3011
3011
|
"input__icon--left": "lc-Input-module__input__icon--left___IBzj8",
|
|
3012
3012
|
"input__icon--right": "lc-Input-module__input__icon--right___lw1xQ",
|
|
3013
3013
|
"input__visibility-button": "lc-Input-module__input__visibility-button___lmD5H"
|
|
3014
|
-
}, Ze = "input", mo = (e, t) =>
|
|
3014
|
+
}, Ze = "input", mo = (e, t) => m.cloneElement(e.source, {
|
|
3015
3015
|
"data-testid": `input-icon-${e.place}`,
|
|
3016
3016
|
className: u(
|
|
3017
3017
|
Xe[`${Ze}__icon`],
|
|
@@ -3020,7 +3020,7 @@ const Ha = {
|
|
|
3020
3020
|
[Xe[`${Ze}__icon--disabled`]]: t
|
|
3021
3021
|
}
|
|
3022
3022
|
)
|
|
3023
|
-
}), ni =
|
|
3023
|
+
}), ni = m.forwardRef(
|
|
3024
3024
|
(d, l) => {
|
|
3025
3025
|
var c = d, {
|
|
3026
3026
|
inputSize: e = "medium",
|
|
@@ -3037,25 +3037,25 @@ const Ha = {
|
|
|
3037
3037
|
"className",
|
|
3038
3038
|
"cropOnBlur"
|
|
3039
3039
|
]);
|
|
3040
|
-
const s =
|
|
3041
|
-
|
|
3042
|
-
const [
|
|
3040
|
+
const s = m.useRef(null);
|
|
3041
|
+
m.useImperativeHandle(l, () => s.current, []);
|
|
3042
|
+
const [g, p] = m.useState(!1), [v, h] = m.useState(!1), { type: b, onFocus: C, onBlur: w } = i, $ = u(
|
|
3043
3043
|
_,
|
|
3044
3044
|
Xe[Ze],
|
|
3045
3045
|
Xe[`${Ze}--${e}`],
|
|
3046
3046
|
{
|
|
3047
3047
|
[Xe[`${Ze}--disabled`]]: r,
|
|
3048
|
-
[Xe[`${Ze}--focused`]]:
|
|
3048
|
+
[Xe[`${Ze}--focused`]]: g,
|
|
3049
3049
|
[Xe[`${Ze}--error`]]: t,
|
|
3050
3050
|
[Xe[`${Ze}--crop`]]: n,
|
|
3051
3051
|
[Xe[`${Ze}--read-only`]]: i.readOnly
|
|
3052
3052
|
}
|
|
3053
3053
|
), S = r ? "var(--content-disabled)" : "var(--content-default)", x = v ? p_ : g_, B = o && o.place === "left", y = o && b !== "password" && o.place === "right";
|
|
3054
3054
|
return /* @__PURE__ */ f(
|
|
3055
|
-
|
|
3055
|
+
D,
|
|
3056
3056
|
{
|
|
3057
3057
|
as: "div",
|
|
3058
|
-
className:
|
|
3058
|
+
className: $,
|
|
3059
3059
|
"aria-disabled": r,
|
|
3060
3060
|
"tab-index": "0",
|
|
3061
3061
|
onClick: () => {
|
|
@@ -3072,7 +3072,7 @@ const Ha = {
|
|
|
3072
3072
|
p(!0), C == null || C(T);
|
|
3073
3073
|
},
|
|
3074
3074
|
onBlur: (T) => {
|
|
3075
|
-
p(!1),
|
|
3075
|
+
p(!1), w == null || w(T);
|
|
3076
3076
|
},
|
|
3077
3077
|
disabled: r,
|
|
3078
3078
|
type: b && !v ? b : "text"
|
|
@@ -3080,7 +3080,7 @@ const Ha = {
|
|
|
3080
3080
|
),
|
|
3081
3081
|
y && mo(o, r),
|
|
3082
3082
|
b === "password" && /* @__PURE__ */ a(
|
|
3083
|
-
|
|
3083
|
+
q,
|
|
3084
3084
|
{
|
|
3085
3085
|
disabled: r,
|
|
3086
3086
|
kind: "text",
|
|
@@ -3114,7 +3114,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3114
3114
|
}, si = "field-description", lr = (o) => {
|
|
3115
3115
|
var _ = o, { children: e, className: t = "" } = _, r = F(_, ["children", "className"]);
|
|
3116
3116
|
const n = u(ci[si], t);
|
|
3117
|
-
return /* @__PURE__ */ a(
|
|
3117
|
+
return /* @__PURE__ */ a(D, E(k({ as: "span", size: "sm" }, r), { className: n, children: e }));
|
|
3118
3118
|
}, di = "lc-Checkbox-module__checkbox___D0D4S", ui = "lc-Checkbox-module__checkbox__label___I472A", mi = "lc-Checkbox-module__checkbox__text___Ex7K1", pi = "lc-Checkbox-module__checkbox__input___3krUF", gi = "lc-Checkbox-module__checkbox__checkmark___eZIG1", hi = "lc-Checkbox-module__checkbox__square___yjtrH", fi = "lc-Checkbox-module__checkbox__helper___hwxAV", Pt = {
|
|
3119
3119
|
checkbox: di,
|
|
3120
3120
|
checkbox__label: ui,
|
|
@@ -3125,7 +3125,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3125
3125
|
checkbox__square: hi,
|
|
3126
3126
|
"checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___kRNDo",
|
|
3127
3127
|
checkbox__helper: fi
|
|
3128
|
-
}, Ft = "checkbox", bi =
|
|
3128
|
+
}, Ft = "checkbox", bi = m.forwardRef(
|
|
3129
3129
|
(l, i) => {
|
|
3130
3130
|
var d = l, { checked: e, disabled: t, children: r, description: o, className: _ } = d, n = F(d, ["checked", "disabled", "children", "description", "className"]);
|
|
3131
3131
|
return /* @__PURE__ */ f(
|
|
@@ -3147,7 +3147,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3147
3147
|
type: "checkbox"
|
|
3148
3148
|
})
|
|
3149
3149
|
),
|
|
3150
|
-
r && /* @__PURE__ */ a(
|
|
3150
|
+
r && /* @__PURE__ */ a(D, { as: "div", size: "md", className: Pt[`${Ft}__text`], children: r })
|
|
3151
3151
|
] }),
|
|
3152
3152
|
o && /* @__PURE__ */ a(lr, { className: Pt[`${Ft}__helper`], children: o })
|
|
3153
3153
|
]
|
|
@@ -3180,8 +3180,8 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3180
3180
|
numberOfItems: l
|
|
3181
3181
|
}) => {
|
|
3182
3182
|
const d = (s) => {
|
|
3183
|
-
var
|
|
3184
|
-
return (
|
|
3183
|
+
var g;
|
|
3184
|
+
return (g = s == null ? void 0 : s.customElement) != null && g.listItemBody ? /* @__PURE__ */ a("div", { className: ye[`${He}__custom`], children: s.customElement.listItemBody }) : /* @__PURE__ */ f(ae, { children: [
|
|
3185
3185
|
s.showCheckbox && /* @__PURE__ */ a(
|
|
3186
3186
|
bi,
|
|
3187
3187
|
{
|
|
@@ -3207,7 +3207,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3207
3207
|
),
|
|
3208
3208
|
/* @__PURE__ */ f("div", { className: ye[`${He}__label-container`], children: [
|
|
3209
3209
|
/* @__PURE__ */ a(
|
|
3210
|
-
|
|
3210
|
+
D,
|
|
3211
3211
|
{
|
|
3212
3212
|
as: "span",
|
|
3213
3213
|
className: u([ye[`${He}__label`]], {
|
|
@@ -3296,26 +3296,26 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3296
3296
|
isPositioned: d,
|
|
3297
3297
|
searchDisabled: c,
|
|
3298
3298
|
onItemRemove: s,
|
|
3299
|
-
setPointer:
|
|
3299
|
+
setPointer: g,
|
|
3300
3300
|
onSelect: p,
|
|
3301
3301
|
getFloatingProps: v,
|
|
3302
3302
|
getItemProps: h,
|
|
3303
3303
|
emptyStateText: b = "No results found",
|
|
3304
3304
|
hideWhenEmpty: C = !1,
|
|
3305
|
-
pickerType:
|
|
3306
|
-
listClassName:
|
|
3305
|
+
pickerType: w = "single",
|
|
3306
|
+
listClassName: $,
|
|
3307
3307
|
virtuosoProps: S
|
|
3308
3308
|
}) => {
|
|
3309
|
-
const [x, B] =
|
|
3309
|
+
const [x, B] = m.useState(0), y = Rr(null), N = _.length, T = m.useCallback(
|
|
3310
3310
|
(I) => {
|
|
3311
|
-
I !== x && (I < o ? B(I + (
|
|
3311
|
+
I !== x && (I < o ? B(I + (N - 1) * ii) : B(o));
|
|
3312
3312
|
},
|
|
3313
|
-
[
|
|
3313
|
+
[N]
|
|
3314
3314
|
);
|
|
3315
|
-
if (
|
|
3315
|
+
if (je(() => {
|
|
3316
3316
|
var I;
|
|
3317
3317
|
c && d && n !== null && ((I = y.current) == null || I.focus());
|
|
3318
|
-
}, [c, d, n]),
|
|
3318
|
+
}, [c, d, n]), je(() => {
|
|
3319
3319
|
l.current = new Array(_.length);
|
|
3320
3320
|
}, [_.length]), _.length === 0)
|
|
3321
3321
|
return C ? null : /* @__PURE__ */ a(Er, { context: e, modal: !1, initialFocus: -1, children: /* @__PURE__ */ a(
|
|
@@ -3329,7 +3329,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3329
3329
|
}
|
|
3330
3330
|
) });
|
|
3331
3331
|
const R = (I) => i.includes(I) || I === Qt && i.length === Pr(_).length, G = () => {
|
|
3332
|
-
|
|
3332
|
+
w === "multi" && s(i[i.length - 1]);
|
|
3333
3333
|
};
|
|
3334
3334
|
return /* @__PURE__ */ a(Er, { context: e, modal: !1, initialFocus: -1, children: /* @__PURE__ */ a(
|
|
3335
3335
|
"div",
|
|
@@ -3337,7 +3337,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3337
3337
|
"data-testid": "picker-list",
|
|
3338
3338
|
ref: t,
|
|
3339
3339
|
tabIndex: -1,
|
|
3340
|
-
className: u(la.listbox,
|
|
3340
|
+
className: u(la.listbox, $),
|
|
3341
3341
|
style: E(k({}, r), {
|
|
3342
3342
|
maxHeight: o
|
|
3343
3343
|
}),
|
|
@@ -3346,17 +3346,17 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3346
3346
|
E(k({
|
|
3347
3347
|
ref: y,
|
|
3348
3348
|
tabIndex: 0,
|
|
3349
|
-
"aria-multiselectable":
|
|
3349
|
+
"aria-multiselectable": w === "multi",
|
|
3350
3350
|
className: la["listbox-wrapper"]
|
|
3351
3351
|
}, v({
|
|
3352
3352
|
onKeyDown(I) {
|
|
3353
|
-
|
|
3353
|
+
g(!1), I.key === "Enter" && n !== null && p(_[n].key), (I.key === "Backspace" || I.key === "Delete") && G(), I.key === " " && I.preventDefault();
|
|
3354
3354
|
},
|
|
3355
3355
|
onKeyUp(I) {
|
|
3356
3356
|
I.key === " " && n !== null && p(_[n].key);
|
|
3357
3357
|
},
|
|
3358
3358
|
onPointerMove() {
|
|
3359
|
-
|
|
3359
|
+
g(!0);
|
|
3360
3360
|
}
|
|
3361
3361
|
})), {
|
|
3362
3362
|
children: /* @__PURE__ */ a(
|
|
@@ -3368,17 +3368,17 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3368
3368
|
data: _,
|
|
3369
3369
|
increaseViewportBy: 200
|
|
3370
3370
|
}, S), {
|
|
3371
|
-
itemContent: (I,
|
|
3371
|
+
itemContent: (I, A) => /* @__PURE__ */ a(
|
|
3372
3372
|
vi,
|
|
3373
3373
|
{
|
|
3374
3374
|
index: I,
|
|
3375
3375
|
getItemProps: h,
|
|
3376
3376
|
listElementsRef: l,
|
|
3377
3377
|
isActive: n === I,
|
|
3378
|
-
isSelected: R(
|
|
3378
|
+
isSelected: R(A.key),
|
|
3379
3379
|
onSelect: p,
|
|
3380
|
-
item:
|
|
3381
|
-
numberOfItems:
|
|
3380
|
+
item: A,
|
|
3381
|
+
numberOfItems: N
|
|
3382
3382
|
}
|
|
3383
3383
|
)
|
|
3384
3384
|
})
|
|
@@ -3417,7 +3417,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3417
3417
|
isRequired: d,
|
|
3418
3418
|
isOpen: c,
|
|
3419
3419
|
isError: s,
|
|
3420
|
-
onClear:
|
|
3420
|
+
onClear: g,
|
|
3421
3421
|
children: p,
|
|
3422
3422
|
setTriggerFocus: v
|
|
3423
3423
|
}) => {
|
|
@@ -3429,10 +3429,10 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3429
3429
|
l && Ce[`${be}--disabled`],
|
|
3430
3430
|
c && Ce[`${be}--focused`],
|
|
3431
3431
|
s && Ce[`${be}--error`]
|
|
3432
|
-
), b = !i && n && !l && !d, C = (
|
|
3433
|
-
|
|
3432
|
+
), b = !i && n && !l && !d, C = (w) => {
|
|
3433
|
+
w.stopPropagation(), g();
|
|
3434
3434
|
};
|
|
3435
|
-
return
|
|
3435
|
+
return m.useEffect(() => {
|
|
3436
3436
|
c || v(!1);
|
|
3437
3437
|
}, [c]), /* @__PURE__ */ f(
|
|
3438
3438
|
"button",
|
|
@@ -3449,7 +3449,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3449
3449
|
onBlur: () => v(!1),
|
|
3450
3450
|
children: [
|
|
3451
3451
|
/* @__PURE__ */ a(
|
|
3452
|
-
|
|
3452
|
+
D,
|
|
3453
3453
|
{
|
|
3454
3454
|
as: "div",
|
|
3455
3455
|
className: u(
|
|
@@ -3539,7 +3539,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3539
3539
|
leftNode: d,
|
|
3540
3540
|
rightNode: c,
|
|
3541
3541
|
customColor: s,
|
|
3542
|
-
iconOnly:
|
|
3542
|
+
iconOnly: g = !1,
|
|
3543
3543
|
value: p
|
|
3544
3544
|
} = b, v = F(b, [
|
|
3545
3545
|
"className",
|
|
@@ -3556,7 +3556,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3556
3556
|
"iconOnly",
|
|
3557
3557
|
"value"
|
|
3558
3558
|
]);
|
|
3559
|
-
const C = r || i &&
|
|
3559
|
+
const C = r || i && g, w = u(
|
|
3560
3560
|
Se[Be],
|
|
3561
3561
|
e,
|
|
3562
3562
|
Se[`${Be}--${_}`],
|
|
@@ -3564,10 +3564,10 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3564
3564
|
{
|
|
3565
3565
|
[Se[`${Be}--outline`]]: l,
|
|
3566
3566
|
[Se[`${Be}--${xi(s)}`]]: !!s,
|
|
3567
|
-
[Se[`${Be}--icon-only`]]:
|
|
3567
|
+
[Se[`${Be}--icon-only`]]: g,
|
|
3568
3568
|
[Se[`${Be}--dismissible-on-hover`]]: C
|
|
3569
3569
|
}
|
|
3570
|
-
),
|
|
3570
|
+
), $ = _ === "small" ? "small" : "medium", S = _ === "small" ? "sm" : "md", x = () => s ? l ? {
|
|
3571
3571
|
style: {
|
|
3572
3572
|
backgroundColor: "transparent",
|
|
3573
3573
|
color: s,
|
|
@@ -3578,15 +3578,15 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3578
3578
|
return l ? s : Ur(s, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
3579
3579
|
};
|
|
3580
3580
|
return /* @__PURE__ */ f(
|
|
3581
|
-
|
|
3581
|
+
D,
|
|
3582
3582
|
E(k(k({
|
|
3583
|
-
className:
|
|
3583
|
+
className: w
|
|
3584
3584
|
}, v), x()), {
|
|
3585
3585
|
as: "div",
|
|
3586
3586
|
size: S,
|
|
3587
3587
|
children: [
|
|
3588
3588
|
/* @__PURE__ */ f("div", { className: Se[`${Be}__content-wrapper`], children: [
|
|
3589
|
-
d && !
|
|
3589
|
+
d && !g && /* @__PURE__ */ a(
|
|
3590
3590
|
"div",
|
|
3591
3591
|
{
|
|
3592
3592
|
"data-testid": "lc-tag-left-node",
|
|
@@ -3596,7 +3596,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3596
3596
|
}
|
|
3597
3597
|
),
|
|
3598
3598
|
/* @__PURE__ */ a("div", { className: Se[`${Be}__content`], children: p || t }),
|
|
3599
|
-
c && !
|
|
3599
|
+
c && !g && /* @__PURE__ */ a(
|
|
3600
3600
|
"div",
|
|
3601
3601
|
{
|
|
3602
3602
|
"data-testid": "lc-tag-right-node",
|
|
@@ -3622,7 +3622,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3622
3622
|
{
|
|
3623
3623
|
"data-dismiss-icon": !0,
|
|
3624
3624
|
source: Re,
|
|
3625
|
-
size:
|
|
3625
|
+
size: $,
|
|
3626
3626
|
customColor: B()
|
|
3627
3627
|
}
|
|
3628
3628
|
)
|
|
@@ -3661,44 +3661,44 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3661
3661
|
onItemRemove: d,
|
|
3662
3662
|
onSelect: c,
|
|
3663
3663
|
onFilter: s,
|
|
3664
|
-
onClear:
|
|
3664
|
+
onClear: g,
|
|
3665
3665
|
searchPhrase: p,
|
|
3666
3666
|
virtualItemRef: v,
|
|
3667
3667
|
isTriggerFocused: h,
|
|
3668
3668
|
inputRef: b,
|
|
3669
3669
|
inputProps: C
|
|
3670
3670
|
}) => {
|
|
3671
|
-
const
|
|
3672
|
-
|
|
3671
|
+
const w = e && !t;
|
|
3672
|
+
m.useEffect(() => {
|
|
3673
3673
|
i && b != null && b.current && b.current.focus();
|
|
3674
3674
|
}, [_, i]);
|
|
3675
|
-
const
|
|
3676
|
-
|
|
3675
|
+
const $ = (N) => {
|
|
3676
|
+
N.key === "Backspace" && _ && _.length > 0 && (N.preventDefault(), n === "multi" ? d(_[_.length - 1].key) : g()), N.key === "Delete" && (N.preventDefault(), g());
|
|
3677
3677
|
};
|
|
3678
|
-
|
|
3679
|
-
const S = (
|
|
3678
|
+
m.useEffect(() => (!e && h ? document.addEventListener("keydown", $) : document.removeEventListener("keydown", $), () => document.removeEventListener("keydown", $)), [e, _, h]);
|
|
3679
|
+
const S = (N) => {
|
|
3680
3680
|
var T;
|
|
3681
|
-
return n === "single" && e && !t ? null : (T =
|
|
3682
|
-
|
|
3681
|
+
return n === "single" && e && !t ? null : (T = N == null ? void 0 : N.customElement) != null && T.selectedItemBody ? /* @__PURE__ */ a("div", { className: we[`${$e}__item`], children: N.customElement.selectedItemBody }) : /* @__PURE__ */ f("div", { className: we[`${$e}__item`], children: [
|
|
3682
|
+
N.icon && /* @__PURE__ */ a(
|
|
3683
3683
|
P,
|
|
3684
3684
|
{
|
|
3685
|
-
source:
|
|
3685
|
+
source: N.icon,
|
|
3686
3686
|
className: we[`${$e}__item__icon`]
|
|
3687
3687
|
}
|
|
3688
3688
|
),
|
|
3689
|
-
|
|
3689
|
+
N.avatarSrc && /* @__PURE__ */ a(
|
|
3690
3690
|
"img",
|
|
3691
3691
|
{
|
|
3692
|
-
src:
|
|
3692
|
+
src: N.avatarSrc,
|
|
3693
3693
|
alt: "",
|
|
3694
3694
|
className: we[`${$e}__item__avatar`]
|
|
3695
3695
|
}
|
|
3696
3696
|
),
|
|
3697
|
-
/* @__PURE__ */ a("div", { className: we[`${$e}__item__content`], children:
|
|
3697
|
+
/* @__PURE__ */ a("div", { className: we[`${$e}__item__content`], children: N.name })
|
|
3698
3698
|
] });
|
|
3699
|
-
}, x = (
|
|
3699
|
+
}, x = (N) => s(N.target.value), B = (N) => {
|
|
3700
3700
|
var T, R;
|
|
3701
|
-
(T = v.current) != null && T.id &&
|
|
3701
|
+
(T = v.current) != null && T.id && N.key === "Enter" && c((R = v.current) == null ? void 0 : R.id), n === "multi" && (N.key === "Backspace" || N.key === "Delete") && !p && _ && (_ == null ? void 0 : _.length) > 0 && d(_[_.length - 1].key);
|
|
3702
3702
|
}, y = () => /* @__PURE__ */ a(
|
|
3703
3703
|
"input",
|
|
3704
3704
|
E(k({}, C), {
|
|
@@ -3714,7 +3714,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3714
3714
|
value: p
|
|
3715
3715
|
})
|
|
3716
3716
|
);
|
|
3717
|
-
return !_ || _.length === 0 ?
|
|
3717
|
+
return !_ || _.length === 0 ? w ? y() : /* @__PURE__ */ a(
|
|
3718
3718
|
"div",
|
|
3719
3719
|
{
|
|
3720
3720
|
className: u({
|
|
@@ -3730,7 +3730,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3730
3730
|
[we[`${$e}--single`]]: n === "single"
|
|
3731
3731
|
}),
|
|
3732
3732
|
children: [
|
|
3733
|
-
/* @__PURE__ */ a("div", { className: we[`${$e}__item-container`], children: n === "single" ? S(_[0]) : _.map((
|
|
3733
|
+
/* @__PURE__ */ a("div", { className: we[`${$e}__item-container`], children: n === "single" ? S(_[0]) : _.map((N) => /* @__PURE__ */ a(
|
|
3734
3734
|
Zo,
|
|
3735
3735
|
{
|
|
3736
3736
|
className: u(
|
|
@@ -3739,17 +3739,17 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3739
3739
|
),
|
|
3740
3740
|
disabled: r,
|
|
3741
3741
|
onRemove: (T) => {
|
|
3742
|
-
T.stopPropagation(), d(
|
|
3742
|
+
T.stopPropagation(), d(N.key);
|
|
3743
3743
|
},
|
|
3744
|
-
children: S(
|
|
3744
|
+
children: S(N)
|
|
3745
3745
|
},
|
|
3746
|
-
|
|
3746
|
+
N.key
|
|
3747
3747
|
)) }),
|
|
3748
|
-
|
|
3748
|
+
w && y()
|
|
3749
3749
|
]
|
|
3750
3750
|
}
|
|
3751
3751
|
);
|
|
3752
|
-
}, Bi = 10,
|
|
3752
|
+
}, Bi = 10, qo = ({
|
|
3753
3753
|
disabled: e,
|
|
3754
3754
|
items: t,
|
|
3755
3755
|
placement: r,
|
|
@@ -3762,12 +3762,12 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3762
3762
|
onVisibilityChange: c,
|
|
3763
3763
|
searchPhrase: s
|
|
3764
3764
|
}) => {
|
|
3765
|
-
const
|
|
3766
|
-
|
|
3765
|
+
const g = Sa(), [p, v] = m.useState(!1), [h, b] = m.useState(null), [C, w] = m.useState(_), $ = m.useRef([]), S = m.useRef(null);
|
|
3766
|
+
m.useEffect(() => {
|
|
3767
3767
|
S.current = null, b(null);
|
|
3768
3768
|
}, [s]);
|
|
3769
|
-
const { refs: x, floatingStyles: B, context: y, isPositioned:
|
|
3770
|
-
nodeId:
|
|
3769
|
+
const { refs: x, floatingStyles: B, context: y, isPositioned: N } = Ba({
|
|
3770
|
+
nodeId: g,
|
|
3771
3771
|
open: d,
|
|
3772
3772
|
strategy: n,
|
|
3773
3773
|
onOpenChange: c,
|
|
@@ -3780,7 +3780,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3780
3780
|
To({
|
|
3781
3781
|
apply({ availableHeight: V, rects: H, elements: K }) {
|
|
3782
3782
|
z_.flushSync(() => {
|
|
3783
|
-
|
|
3783
|
+
w(
|
|
3784
3784
|
Math.max(
|
|
3785
3785
|
Math.min(_, Number(V)),
|
|
3786
3786
|
o
|
|
@@ -3799,7 +3799,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3799
3799
|
toggle: !1
|
|
3800
3800
|
}, l)), R = Da(y, { role: "listbox" }), G = Aa(y, i), I = U_(y, {
|
|
3801
3801
|
enabled: t.length > 0 && !e,
|
|
3802
|
-
listRef:
|
|
3802
|
+
listRef: $,
|
|
3803
3803
|
activeIndex: h,
|
|
3804
3804
|
onNavigate: b,
|
|
3805
3805
|
virtual: !0,
|
|
@@ -3808,27 +3808,27 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3808
3808
|
t,
|
|
3809
3809
|
(V) => !!V.disabled || !!V.groupHeader
|
|
3810
3810
|
)
|
|
3811
|
-
}), { getReferenceProps:
|
|
3811
|
+
}), { getReferenceProps: A, getFloatingProps: z, getItemProps: he } = Pa(
|
|
3812
3812
|
[T, G, R, I]
|
|
3813
3813
|
);
|
|
3814
3814
|
return !d && p && v(!1), {
|
|
3815
|
-
getReferenceProps:
|
|
3815
|
+
getReferenceProps: A,
|
|
3816
3816
|
getFloatingProps: z,
|
|
3817
3817
|
getItemProps: he,
|
|
3818
3818
|
setReference: x.setReference,
|
|
3819
3819
|
floatingStyles: B,
|
|
3820
|
-
isPositioned:
|
|
3820
|
+
isPositioned: N,
|
|
3821
3821
|
context: y,
|
|
3822
|
-
nodeId:
|
|
3822
|
+
nodeId: g,
|
|
3823
3823
|
setFloating: x.setFloating,
|
|
3824
3824
|
activeIndex: h,
|
|
3825
|
-
listElementsRef:
|
|
3825
|
+
listElementsRef: $,
|
|
3826
3826
|
virtualItemRef: S,
|
|
3827
3827
|
maxHeight: C,
|
|
3828
3828
|
pointer: p,
|
|
3829
3829
|
setPointer: v
|
|
3830
3830
|
};
|
|
3831
|
-
},
|
|
3831
|
+
}, jo = ({
|
|
3832
3832
|
selected: e,
|
|
3833
3833
|
options: t,
|
|
3834
3834
|
type: r,
|
|
@@ -3838,21 +3838,21 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3838
3838
|
clearSearchAfterSelection: i,
|
|
3839
3839
|
inputRef: l
|
|
3840
3840
|
}) => {
|
|
3841
|
-
const [d, c] =
|
|
3841
|
+
const [d, c] = m.useState(
|
|
3842
3842
|
() => (e == null ? void 0 : e.map(fr)) || []
|
|
3843
|
-
), s = e !== void 0,
|
|
3843
|
+
), s = e !== void 0, g = s ? (e == null ? void 0 : e.map(fr)) || [] : d, [p, v] = m.useState(""), h = (x) => v(x), b = (x) => S(x), C = () => {
|
|
3844
3844
|
!s && c([]), _(null), v(""), n(!1);
|
|
3845
|
-
},
|
|
3845
|
+
}, w = () => {
|
|
3846
3846
|
h(""), l.current && (l.current.value = "");
|
|
3847
|
-
},
|
|
3847
|
+
}, $ = m.useMemo(() => {
|
|
3848
3848
|
const x = r === "multi" && o;
|
|
3849
3849
|
let B = t;
|
|
3850
3850
|
return p && (B = B.filter((y) => {
|
|
3851
3851
|
var G;
|
|
3852
3852
|
if (y.groupHeader)
|
|
3853
3853
|
return !1;
|
|
3854
|
-
const
|
|
3855
|
-
return T.includes(
|
|
3854
|
+
const N = p.toLowerCase(), T = y.name.toLowerCase(), R = (G = y.secondaryText) == null ? void 0 : G.toLowerCase();
|
|
3855
|
+
return T.includes(N) || (R == null ? void 0 : R.includes(N));
|
|
3856
3856
|
})), x && B.length > 1 && (B = [
|
|
3857
3857
|
{
|
|
3858
3858
|
key: Qt,
|
|
@@ -3866,25 +3866,25 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3866
3866
|
if (r === "single")
|
|
3867
3867
|
c(() => (B && _([B]), [x])), n(!1);
|
|
3868
3868
|
else if (x === Qt)
|
|
3869
|
-
|
|
3869
|
+
g.length === Pr(t).length ? c(() => (_(null), [])) : c(() => {
|
|
3870
3870
|
const y = Pr(t);
|
|
3871
|
-
return _(y), y.map(({ key:
|
|
3871
|
+
return _(y), y.map(({ key: N }) => N);
|
|
3872
3872
|
});
|
|
3873
3873
|
else {
|
|
3874
3874
|
if (s) {
|
|
3875
|
-
const y = (e == null ? void 0 : e.map(fr)) || [],
|
|
3876
|
-
_(t.filter(({ key: T }) =>
|
|
3875
|
+
const y = (e == null ? void 0 : e.map(fr)) || [], N = po(y, x);
|
|
3876
|
+
_(t.filter(({ key: T }) => N.includes(T)));
|
|
3877
3877
|
} else
|
|
3878
3878
|
c((y) => {
|
|
3879
|
-
const
|
|
3880
|
-
return _(t.filter(({ key: T }) =>
|
|
3879
|
+
const N = po(y, x);
|
|
3880
|
+
return _(t.filter(({ key: T }) => N.includes(T))), N;
|
|
3881
3881
|
});
|
|
3882
|
-
i &&
|
|
3882
|
+
i && w();
|
|
3883
3883
|
}
|
|
3884
3884
|
};
|
|
3885
3885
|
return {
|
|
3886
|
-
selectedKeys:
|
|
3887
|
-
items:
|
|
3886
|
+
selectedKeys: g,
|
|
3887
|
+
items: $,
|
|
3888
3888
|
searchPhrase: p,
|
|
3889
3889
|
handleSelect: S,
|
|
3890
3890
|
handleOnFilter: h,
|
|
@@ -3893,7 +3893,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3893
3893
|
};
|
|
3894
3894
|
}, Ei = {
|
|
3895
3895
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___uaLHq"
|
|
3896
|
-
},
|
|
3896
|
+
}, ys = (he) => {
|
|
3897
3897
|
var V = he, {
|
|
3898
3898
|
id: e,
|
|
3899
3899
|
className: t,
|
|
@@ -3906,24 +3906,24 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3906
3906
|
selected: d,
|
|
3907
3907
|
size: c = "medium",
|
|
3908
3908
|
placeholder: s = "Select option",
|
|
3909
|
-
isRequired:
|
|
3909
|
+
isRequired: g,
|
|
3910
3910
|
noSearchResultText: p = "No results found",
|
|
3911
3911
|
selectAllOptionText: v,
|
|
3912
3912
|
type: h = "single",
|
|
3913
3913
|
searchDisabled: b = !1,
|
|
3914
3914
|
hideClearButton: C,
|
|
3915
|
-
isVisible:
|
|
3916
|
-
onOpen:
|
|
3915
|
+
isVisible: w,
|
|
3916
|
+
onOpen: $,
|
|
3917
3917
|
onClose: S,
|
|
3918
3918
|
openedOnInit: x = !1,
|
|
3919
3919
|
clearSearchAfterSelection: B = !0,
|
|
3920
3920
|
onSelect: y,
|
|
3921
|
-
placement:
|
|
3921
|
+
placement: N,
|
|
3922
3922
|
floatingStrategy: T,
|
|
3923
3923
|
useDismissHookProps: R,
|
|
3924
3924
|
useClickHookProps: G,
|
|
3925
3925
|
virtuosoProps: I,
|
|
3926
|
-
inputProps:
|
|
3926
|
+
inputProps: A
|
|
3927
3927
|
} = V, z = F(V, [
|
|
3928
3928
|
"id",
|
|
3929
3929
|
"className",
|
|
@@ -3955,8 +3955,8 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3955
3955
|
"virtuosoProps",
|
|
3956
3956
|
"inputProps"
|
|
3957
3957
|
]);
|
|
3958
|
-
const [H, K] =
|
|
3959
|
-
Yr ? !Te && (
|
|
3958
|
+
const [H, K] = m.useState(x), [Me, Oe] = m.useState(!1), Qe = w !== void 0, Te = Qe ? w : H, nt = m.useRef(null), St = (Yr, Xr) => {
|
|
3959
|
+
Yr ? !Te && ($ == null || $(Xr)) : Te && (S == null || S(Xr)), !Qe && K(Yr);
|
|
3960
3960
|
}, {
|
|
3961
3961
|
selectedKeys: it,
|
|
3962
3962
|
items: Je,
|
|
@@ -3965,7 +3965,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3965
3965
|
handleOnFilter: st,
|
|
3966
3966
|
handleItemRemove: M,
|
|
3967
3967
|
handleClear: W
|
|
3968
|
-
} =
|
|
3968
|
+
} = jo({
|
|
3969
3969
|
selected: d,
|
|
3970
3970
|
options: l,
|
|
3971
3971
|
type: h,
|
|
@@ -3989,11 +3989,11 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
3989
3989
|
maxHeight: pr,
|
|
3990
3990
|
setPointer: Fa,
|
|
3991
3991
|
isPositioned: xe
|
|
3992
|
-
} =
|
|
3992
|
+
} = qo({
|
|
3993
3993
|
openedOnInit: x,
|
|
3994
3994
|
disabled: n,
|
|
3995
3995
|
items: Je,
|
|
3996
|
-
placement:
|
|
3996
|
+
placement: N,
|
|
3997
3997
|
minListHeight: o,
|
|
3998
3998
|
maxListHeight: _,
|
|
3999
3999
|
floatingStrategy: T,
|
|
@@ -4016,7 +4016,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
4016
4016
|
hideClearButton: C,
|
|
4017
4017
|
isDisabled: n,
|
|
4018
4018
|
isError: i,
|
|
4019
|
-
isRequired:
|
|
4019
|
+
isRequired: g,
|
|
4020
4020
|
isMultiSelect: h === "multi",
|
|
4021
4021
|
size: c,
|
|
4022
4022
|
setTriggerFocus: Oe,
|
|
@@ -4039,7 +4039,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
4039
4039
|
searchPhrase: lt,
|
|
4040
4040
|
virtualItemRef: ur,
|
|
4041
4041
|
isTriggerFocused: Me,
|
|
4042
|
-
inputProps:
|
|
4042
|
+
inputProps: A
|
|
4043
4043
|
}
|
|
4044
4044
|
)
|
|
4045
4045
|
}
|
|
@@ -4083,7 +4083,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
4083
4083
|
}), Di = (e, t, r, o) => {
|
|
4084
4084
|
const _ = e.length === 1 && e[0].name === o, n = t ? e.slice(0, 1) : e;
|
|
4085
4085
|
return r && _ ? [] : n;
|
|
4086
|
-
},
|
|
4086
|
+
}, Cs = m.forwardRef(
|
|
4087
4087
|
(v, p) => {
|
|
4088
4088
|
var h = v, {
|
|
4089
4089
|
disabled: e,
|
|
@@ -4097,7 +4097,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
4097
4097
|
single: d,
|
|
4098
4098
|
alwaysShowAllOptions: c,
|
|
4099
4099
|
hideIfExactMatch: s = !0
|
|
4100
|
-
} = h,
|
|
4100
|
+
} = h, g = F(h, [
|
|
4101
4101
|
"disabled",
|
|
4102
4102
|
"minListHeight",
|
|
4103
4103
|
"maxListHeight",
|
|
@@ -4110,21 +4110,21 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
4110
4110
|
"alwaysShowAllOptions",
|
|
4111
4111
|
"hideIfExactMatch"
|
|
4112
4112
|
]);
|
|
4113
|
-
const b =
|
|
4114
|
-
|
|
4115
|
-
const [C,
|
|
4113
|
+
const b = m.useRef(null);
|
|
4114
|
+
m.useImperativeHandle(p, () => b.current, []);
|
|
4115
|
+
const [C, w] = m.useState(""), S = g.value !== void 0 ? g.value : C, [x, B] = m.useState(
|
|
4116
4116
|
o
|
|
4117
4117
|
), y = (Y) => {
|
|
4118
4118
|
B(Y);
|
|
4119
|
-
},
|
|
4119
|
+
}, N = (Y) => {
|
|
4120
4120
|
he(Y);
|
|
4121
4121
|
}, T = (Y) => {
|
|
4122
4122
|
var ne, dt;
|
|
4123
|
-
(ne =
|
|
4123
|
+
(ne = g.onChange) == null || ne.call(g, Y), w(Y.target.value), c || N(Y.target.value), (dt = b.current) == null || dt.focus();
|
|
4124
4124
|
}, R = (Y) => {
|
|
4125
4125
|
var dt, Ht, zt;
|
|
4126
4126
|
const ne = Y.key === "Enter";
|
|
4127
|
-
(dt = st.current) != null && dt.id && ne && (G([{ key: (Ht = st.current) == null ? void 0 : Ht.id }]), Y.preventDefault()), ne || y(!0), (zt =
|
|
4127
|
+
(dt = st.current) != null && dt.id && ne && (G([{ key: (Ht = st.current) == null ? void 0 : Ht.id }]), Y.preventDefault()), ne || y(!0), (zt = g.onKeyDown) == null || zt.call(g, Y);
|
|
4128
4128
|
}, G = (Y) => {
|
|
4129
4129
|
if (Y) {
|
|
4130
4130
|
const ne = Y[0].key;
|
|
@@ -4134,7 +4134,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
4134
4134
|
y(!1);
|
|
4135
4135
|
}, 0);
|
|
4136
4136
|
}
|
|
4137
|
-
}, I =
|
|
4137
|
+
}, I = m.useMemo(() => n ? Ii(n) ? Ti(n) : Ai(n) : [], [n]), { items: A, searchPhrase: z, handleOnFilter: he, handleSelect: V, selectedKeys: H } = jo({
|
|
4138
4138
|
selected: [],
|
|
4139
4139
|
options: I,
|
|
4140
4140
|
type: "single",
|
|
@@ -4143,7 +4143,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
4143
4143
|
clearSearchAfterSelection: !0,
|
|
4144
4144
|
inputRef: b
|
|
4145
4145
|
}), K = Di(
|
|
4146
|
-
|
|
4146
|
+
A,
|
|
4147
4147
|
d || !1,
|
|
4148
4148
|
s || !1,
|
|
4149
4149
|
(S == null ? void 0 : S.toString()) || ""
|
|
@@ -4162,10 +4162,10 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
4162
4162
|
listElementsRef: M,
|
|
4163
4163
|
activeIndex: W,
|
|
4164
4164
|
isPositioned: ce
|
|
4165
|
-
} =
|
|
4165
|
+
} = qo({
|
|
4166
4166
|
openedOnInit: o,
|
|
4167
4167
|
disabled: e || i,
|
|
4168
|
-
items:
|
|
4168
|
+
items: A,
|
|
4169
4169
|
searchPhrase: c ? "" : z,
|
|
4170
4170
|
isOpen: x,
|
|
4171
4171
|
onVisibilityChange: y,
|
|
@@ -4177,7 +4177,7 @@ const Qt = "select-all", li = (e, t) => {
|
|
|
4177
4177
|
return /* @__PURE__ */ f("div", E(k({ ref: ct }, Te()), { children: [
|
|
4178
4178
|
/* @__PURE__ */ a(
|
|
4179
4179
|
ni,
|
|
4180
|
-
E(k({},
|
|
4180
|
+
E(k({}, g), {
|
|
4181
4181
|
ref: b,
|
|
4182
4182
|
onChange: T,
|
|
4183
4183
|
onKeyDown: R,
|
|
@@ -4299,7 +4299,7 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4299
4299
|
type: d,
|
|
4300
4300
|
withRim: c = !1,
|
|
4301
4301
|
style: s
|
|
4302
|
-
} = v,
|
|
4302
|
+
} = v, g = F(v, [
|
|
4303
4303
|
"alt",
|
|
4304
4304
|
"className",
|
|
4305
4305
|
"color",
|
|
@@ -4312,7 +4312,7 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4312
4312
|
"withRim",
|
|
4313
4313
|
"style"
|
|
4314
4314
|
]);
|
|
4315
|
-
const h = d === "image" && !n, [b, C] =
|
|
4315
|
+
const h = d === "image" && !n, [b, C] = m.useState(h), w = d === "image" && !!n && !b, $ = d === "text", S = ["xxxsmall", "xxsmall", "xsmall"].includes(_) ? 1 : 2, x = Fi(l, S), B = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(_), y = r || Pi(l), N = y ? Ri(y) : void 0, T = $ ? { backgroundColor: y } : {}, R = u(k({
|
|
4316
4316
|
[Ee[ue]]: !0,
|
|
4317
4317
|
[Ee[`${ue}--${o}`]]: !0,
|
|
4318
4318
|
[Ee[`${ue}--${_}`]]: !0,
|
|
@@ -4325,24 +4325,24 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4325
4325
|
), I = u(
|
|
4326
4326
|
Ee[`${ue}__icon`],
|
|
4327
4327
|
Ee[`${ue}__icon--${_}`]
|
|
4328
|
-
),
|
|
4328
|
+
), A = u(
|
|
4329
4329
|
Ee[`${ue}__rim`],
|
|
4330
4330
|
Ee[`${ue}__rim--${_}`]
|
|
4331
|
-
), z = (V) => B ? "2xs" : ["medium"].includes(V) ? "xs" : ["large", "xlarge"].includes(V) ? "sm" : ["xxlarge"].includes(V) ? "lg" : "xl", he =
|
|
4332
|
-
return
|
|
4331
|
+
), z = (V) => B ? "2xs" : ["medium"].includes(V) ? "xs" : ["large", "xlarge"].includes(V) ? "sm" : ["xxlarge"].includes(V) ? "lg" : "xl", he = m.useCallback(() => C(!0), []);
|
|
4332
|
+
return m.useEffect(() => {
|
|
4333
4333
|
C(h);
|
|
4334
4334
|
}, [h]), /* @__PURE__ */ f(
|
|
4335
4335
|
"div",
|
|
4336
4336
|
E(k({
|
|
4337
4337
|
className: R,
|
|
4338
4338
|
style: k(k({}, T), s)
|
|
4339
|
-
},
|
|
4339
|
+
}, g), {
|
|
4340
4340
|
children: [
|
|
4341
4341
|
c && /* @__PURE__ */ a(
|
|
4342
4342
|
"div",
|
|
4343
4343
|
{
|
|
4344
4344
|
"data-testid": `${ue}__rim`,
|
|
4345
|
-
className:
|
|
4345
|
+
className: A
|
|
4346
4346
|
}
|
|
4347
4347
|
),
|
|
4348
4348
|
i && /* @__PURE__ */ a(
|
|
@@ -4352,7 +4352,7 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4352
4352
|
className: G
|
|
4353
4353
|
}
|
|
4354
4354
|
),
|
|
4355
|
-
|
|
4355
|
+
w && /* @__PURE__ */ a(
|
|
4356
4356
|
"img",
|
|
4357
4357
|
{
|
|
4358
4358
|
className: Ee[`${ue}__image`],
|
|
@@ -4361,12 +4361,12 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4361
4361
|
onError: he
|
|
4362
4362
|
}
|
|
4363
4363
|
),
|
|
4364
|
-
|
|
4364
|
+
$ && /* @__PURE__ */ a(
|
|
4365
4365
|
ge,
|
|
4366
4366
|
{
|
|
4367
4367
|
as: "span",
|
|
4368
4368
|
size: z(_),
|
|
4369
|
-
style: { color:
|
|
4369
|
+
style: { color: N },
|
|
4370
4370
|
bold: B,
|
|
4371
4371
|
uppercase: B,
|
|
4372
4372
|
children: x
|
|
@@ -4390,7 +4390,7 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4390
4390
|
"btn--compact": "lc-SegmentedControl-module__btn--compact___grlBl",
|
|
4391
4391
|
"btn--medium": "lc-SegmentedControl-module__btn--medium___YGzgQ",
|
|
4392
4392
|
"btn--large": "lc-SegmentedControl-module__btn--large___DCJ-p"
|
|
4393
|
-
}, Hi = "segmented-control",
|
|
4393
|
+
}, Hi = "segmented-control", ws = ({
|
|
4394
4394
|
size: e = "medium",
|
|
4395
4395
|
buttons: t,
|
|
4396
4396
|
className: r,
|
|
@@ -4399,26 +4399,26 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4399
4399
|
fullWidth: n = !1,
|
|
4400
4400
|
onButtonClick: i = Na
|
|
4401
4401
|
}) => {
|
|
4402
|
-
const l = u(Va[Hi], r), [d, c] =
|
|
4403
|
-
|
|
4402
|
+
const l = u(Va[Hi], r), [d, c] = m.useState(() => o), s = typeof _ == "string";
|
|
4403
|
+
m.useEffect(() => {
|
|
4404
4404
|
s && c(_);
|
|
4405
4405
|
}, [_]);
|
|
4406
|
-
const
|
|
4406
|
+
const g = (v, h) => {
|
|
4407
4407
|
s || c(v), i(v, h);
|
|
4408
|
-
}, p = t.map(({ id: v, label: h, loading: b, disabled: C, icon:
|
|
4409
|
-
const
|
|
4408
|
+
}, p = t.map(({ id: v, label: h, loading: b, disabled: C, icon: w }) => {
|
|
4409
|
+
const $ = v === d, S = $ ? Va["btn--active"] : "";
|
|
4410
4410
|
return /* @__PURE__ */ a(
|
|
4411
|
-
|
|
4411
|
+
q,
|
|
4412
4412
|
{
|
|
4413
4413
|
fullWidth: n,
|
|
4414
|
-
loading:
|
|
4414
|
+
loading: $ ? !1 : b,
|
|
4415
4415
|
disabled: C,
|
|
4416
|
-
"aria-pressed":
|
|
4416
|
+
"aria-pressed": $,
|
|
4417
4417
|
kind: "secondary",
|
|
4418
|
-
icon:
|
|
4418
|
+
icon: w,
|
|
4419
4419
|
className: u(Va.btn, Va[`btn--${e}`], S),
|
|
4420
4420
|
onClick: (B) => {
|
|
4421
|
-
|
|
4421
|
+
g(v, B);
|
|
4422
4422
|
},
|
|
4423
4423
|
children: h
|
|
4424
4424
|
},
|
|
@@ -4426,7 +4426,7 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4426
4426
|
);
|
|
4427
4427
|
});
|
|
4428
4428
|
return /* @__PURE__ */ a("div", { role: "group", className: l, children: p });
|
|
4429
|
-
}, zi = "lc-Card-module__card___LzN-3", Vi = "lc-Card-module__card__header___SRONR", Wi = "lc-Card-module__card__header__image___93pD4", Ki = "lc-Card-module__card__header__heading___jK55U", Yi = "lc-Card-module__card__header__heading__title___5090w", Xi = "lc-Card-module__card__header__heading__description___iVYoq", Zi = "lc-Card-module__card__content___9G1YM",
|
|
4429
|
+
}, zi = "lc-Card-module__card___LzN-3", Vi = "lc-Card-module__card__header___SRONR", Wi = "lc-Card-module__card__header__image___93pD4", Ki = "lc-Card-module__card__header__heading___jK55U", Yi = "lc-Card-module__card__header__heading__title___5090w", Xi = "lc-Card-module__card__header__heading__description___iVYoq", Zi = "lc-Card-module__card__content___9G1YM", qi = "lc-Card-module__card__actions___gp-xf", ji = "lc-Card-module__card__actions__line___C6TI0", Qi = "lc-Card-module__card__actions__buttons___XJlFJ", Ie = {
|
|
4430
4430
|
card: zi,
|
|
4431
4431
|
card__header: Vi,
|
|
4432
4432
|
card__header__image: Wi,
|
|
@@ -4436,11 +4436,11 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4436
4436
|
"card__header__no-image": "lc-Card-module__card__header__no-image___2gPx6",
|
|
4437
4437
|
card__content: Zi,
|
|
4438
4438
|
"card__expanded-content": "lc-Card-module__card__expanded-content___WBjEn",
|
|
4439
|
-
card__actions:
|
|
4440
|
-
card__actions__line:
|
|
4439
|
+
card__actions: qi,
|
|
4440
|
+
card__actions__line: ji,
|
|
4441
4441
|
card__actions__buttons: Qi,
|
|
4442
4442
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___I--MQ"
|
|
4443
|
-
}, wa = "card", ar = `${wa}__header`, br = `${ar}__heading`, Wa = `${wa}__actions`, Ji = `${ar}__no-image`,
|
|
4443
|
+
}, wa = "card", ar = `${wa}__header`, br = `${ar}__heading`, Wa = `${wa}__actions`, Ji = `${ar}__no-image`, $s = (c) => {
|
|
4444
4444
|
var s = c, {
|
|
4445
4445
|
alt: e,
|
|
4446
4446
|
buttonsOptions: t = [],
|
|
@@ -4460,9 +4460,9 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4460
4460
|
"src",
|
|
4461
4461
|
"title"
|
|
4462
4462
|
]);
|
|
4463
|
-
const [
|
|
4463
|
+
const [g, p] = m.useState(!1), v = g ? or : Ut, h = g ? "Hide" : "Show more", b = (t == null ? void 0 : t.length) > 0, C = !!n, w = b || C, $ = l, S = i, x = S ? "" : Ie[Ji];
|
|
4464
4464
|
return /* @__PURE__ */ f("div", E(k({ className: u(Ie[wa], o) }, d), { children: [
|
|
4465
|
-
|
|
4465
|
+
$ && /* @__PURE__ */ f("div", { className: u(Ie[ar], x), children: [
|
|
4466
4466
|
S && /* @__PURE__ */ a(
|
|
4467
4467
|
"img",
|
|
4468
4468
|
{
|
|
@@ -4474,7 +4474,7 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4474
4474
|
/* @__PURE__ */ f("div", { className: Ie[br], children: [
|
|
4475
4475
|
/* @__PURE__ */ a(ge, { size: "xs", className: Ie[`${br}__title`], children: l }),
|
|
4476
4476
|
_ && /* @__PURE__ */ a(
|
|
4477
|
-
|
|
4477
|
+
D,
|
|
4478
4478
|
{
|
|
4479
4479
|
size: "sm",
|
|
4480
4480
|
className: Ie[`${br}__description`],
|
|
@@ -4483,9 +4483,9 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4483
4483
|
)
|
|
4484
4484
|
] })
|
|
4485
4485
|
] }),
|
|
4486
|
-
/* @__PURE__ */ a(
|
|
4487
|
-
|
|
4488
|
-
|
|
4486
|
+
/* @__PURE__ */ a(D, { as: "div", size: "md", className: Ie[`${wa}__content`], children: r }),
|
|
4487
|
+
g && /* @__PURE__ */ a(
|
|
4488
|
+
D,
|
|
4489
4489
|
{
|
|
4490
4490
|
as: "div",
|
|
4491
4491
|
size: "md",
|
|
@@ -4493,29 +4493,29 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4493
4493
|
children: n
|
|
4494
4494
|
}
|
|
4495
4495
|
),
|
|
4496
|
-
|
|
4496
|
+
w && /* @__PURE__ */ f("div", { className: Ie[Wa], children: [
|
|
4497
4497
|
/* @__PURE__ */ a("div", { className: Ie[`${Wa}__line`] }),
|
|
4498
4498
|
/* @__PURE__ */ f("div", { className: Ie[`${Wa}__buttons`], children: [
|
|
4499
4499
|
b && t.map(
|
|
4500
|
-
({ kind: B, onClick: y, children:
|
|
4501
|
-
|
|
4500
|
+
({ kind: B, onClick: y, children: N }, T) => /* @__PURE__ */ a(
|
|
4501
|
+
q,
|
|
4502
4502
|
{
|
|
4503
4503
|
size: "compact",
|
|
4504
4504
|
kind: B,
|
|
4505
4505
|
onClick: y,
|
|
4506
|
-
children:
|
|
4506
|
+
children: N
|
|
4507
4507
|
},
|
|
4508
4508
|
T
|
|
4509
4509
|
)
|
|
4510
4510
|
),
|
|
4511
4511
|
C && /* @__PURE__ */ a(
|
|
4512
|
-
|
|
4512
|
+
q,
|
|
4513
4513
|
{
|
|
4514
4514
|
className: Ie[`${Wa}__buttons-expander`],
|
|
4515
4515
|
kind: "link",
|
|
4516
4516
|
iconPosition: "right",
|
|
4517
4517
|
icon: /* @__PURE__ */ a(P, { source: v }),
|
|
4518
|
-
onClick: () => p(!
|
|
4518
|
+
onClick: () => p(!g),
|
|
4519
4519
|
children: h
|
|
4520
4520
|
}
|
|
4521
4521
|
)
|
|
@@ -4569,31 +4569,31 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4569
4569
|
numberOfMonths: d,
|
|
4570
4570
|
month: c,
|
|
4571
4571
|
fromMonth: s,
|
|
4572
|
-
toMonth:
|
|
4572
|
+
toMonth: g
|
|
4573
4573
|
} = e, p = () => {
|
|
4574
4574
|
typeof t == "function" && t();
|
|
4575
4575
|
}, v = () => {
|
|
4576
4576
|
typeof o == "function" && o();
|
|
4577
4577
|
}, h = () => {
|
|
4578
4578
|
if (!s) {
|
|
4579
|
-
const
|
|
4580
|
-
return r(
|
|
4579
|
+
const $ = jt(c, 12);
|
|
4580
|
+
return r($);
|
|
4581
4581
|
}
|
|
4582
|
-
const C = Math.abs(
|
|
4582
|
+
const C = Math.abs(jr(c, s)), w = jt(
|
|
4583
4583
|
c,
|
|
4584
4584
|
!Number.isNaN(C) && C > 12 ? 12 : C
|
|
4585
4585
|
);
|
|
4586
|
-
return r(
|
|
4586
|
+
return r(w);
|
|
4587
4587
|
}, b = () => {
|
|
4588
|
-
if (!
|
|
4589
|
-
const
|
|
4590
|
-
return r(
|
|
4588
|
+
if (!g) {
|
|
4589
|
+
const $ = Qr(c, 12);
|
|
4590
|
+
return r($);
|
|
4591
4591
|
}
|
|
4592
|
-
const C = Math.abs(
|
|
4592
|
+
const C = Math.abs(jr(g, c)), w = Qr(
|
|
4593
4593
|
c,
|
|
4594
4594
|
!Number.isNaN(C) && C > 12 ? 12 : C
|
|
4595
4595
|
);
|
|
4596
|
-
return d === 2 && Ir(
|
|
4596
|
+
return d === 2 && Ir(w, g) ? r(jt(w, 1)) : r(w);
|
|
4597
4597
|
};
|
|
4598
4598
|
return /* @__PURE__ */ f("div", { className: i, children: [
|
|
4599
4599
|
/* @__PURE__ */ f("div", { className: L[`${ho}__navbar-buttons-wrapper`], children: [
|
|
@@ -4652,7 +4652,7 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4652
4652
|
}, U = "date-picker", Jo = (e, t) => {
|
|
4653
4653
|
const { from: r, to: o } = t;
|
|
4654
4654
|
return !(o && !Tr(e, o) && Ar(e, o) || r && !Tr(e, r) && !Ar(e, r));
|
|
4655
|
-
}, e_ = (e, t, r) => t ? e && !Ir(e, t) || r && Ir(t, r) ?
|
|
4655
|
+
}, e_ = (e, t, r) => t ? e && !Ir(e, t) || r && Ir(t, r) ? jt(t, 1) : t : jt(r || /* @__PURE__ */ new Date(), 1), tl = (e, t) => {
|
|
4656
4656
|
const r = {
|
|
4657
4657
|
[L[`${U}__day--monday`]]: { daysOfWeek: [1] },
|
|
4658
4658
|
[L[`${U}__day--sunday`]]: { daysOfWeek: [0] },
|
|
@@ -4717,7 +4717,7 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4717
4717
|
const t = e.getDate();
|
|
4718
4718
|
return /* @__PURE__ */ a("div", { className: L[`${bo}__day-wrapper`], children: /* @__PURE__ */ a("div", { className: L[`${bo}__day-content`], children: t }) });
|
|
4719
4719
|
}, _l = (e) => {
|
|
4720
|
-
const
|
|
4720
|
+
const w = e, {
|
|
4721
4721
|
classNames: t,
|
|
4722
4722
|
range: r,
|
|
4723
4723
|
toMonth: o,
|
|
@@ -4728,7 +4728,7 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4728
4728
|
navbarElement: d,
|
|
4729
4729
|
renderDay: c,
|
|
4730
4730
|
innerRef: s
|
|
4731
|
-
} =
|
|
4731
|
+
} = w, g = F(w, [
|
|
4732
4732
|
"classNames",
|
|
4733
4733
|
"range",
|
|
4734
4734
|
"toMonth",
|
|
@@ -4739,25 +4739,25 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4739
4739
|
"navbarElement",
|
|
4740
4740
|
"renderDay",
|
|
4741
4741
|
"innerRef"
|
|
4742
|
-
]), [p, v] =
|
|
4743
|
-
|
|
4742
|
+
]), [p, v] = m.useState(_ || /* @__PURE__ */ new Date());
|
|
4743
|
+
m.useEffect(() => {
|
|
4744
4744
|
_ && _ !== p && v(_);
|
|
4745
|
-
}, [_, p]),
|
|
4745
|
+
}, [_, p]), m.useEffect(() => {
|
|
4746
4746
|
o && _ !== p && (Jo(p, { from: n, to: o }) || v(o));
|
|
4747
4747
|
}, [_, p, o, n]);
|
|
4748
|
-
const h =
|
|
4749
|
-
(
|
|
4750
|
-
if (e.onMonthChange &&
|
|
4751
|
-
e.onMonthChange(
|
|
4748
|
+
const h = m.useCallback(
|
|
4749
|
+
($) => {
|
|
4750
|
+
if (e.onMonthChange && $) {
|
|
4751
|
+
e.onMonthChange($);
|
|
4752
4752
|
return;
|
|
4753
4753
|
}
|
|
4754
|
-
v(
|
|
4754
|
+
v($);
|
|
4755
4755
|
},
|
|
4756
4756
|
[_, e.onMonthChange]
|
|
4757
4757
|
);
|
|
4758
4758
|
let b = 1;
|
|
4759
4759
|
(i === 0 || i && i < 7) && (b = i);
|
|
4760
|
-
const C =
|
|
4760
|
+
const C = m.useMemo(
|
|
4761
4761
|
() => rl(r, t),
|
|
4762
4762
|
[r, t]
|
|
4763
4763
|
);
|
|
@@ -4783,9 +4783,9 @@ const Mi = "lc-Avatar-module__avatar___5-kP8", Oi = "lc-Avatar-module__avatar__s
|
|
|
4783
4783
|
firstDayOfWeek: b,
|
|
4784
4784
|
month: p,
|
|
4785
4785
|
renderDay: c || ol
|
|
4786
|
-
},
|
|
4786
|
+
}, g)
|
|
4787
4787
|
);
|
|
4788
|
-
}, nl =
|
|
4788
|
+
}, nl = m.forwardRef(
|
|
4789
4789
|
(e, t) => /* @__PURE__ */ a(_l, k({ innerRef: t }, e))
|
|
4790
4790
|
);
|
|
4791
4791
|
nl.displayName = "DatePicker";
|
|
@@ -4870,17 +4870,17 @@ const il = (e) => {
|
|
|
4870
4870
|
onChange: n,
|
|
4871
4871
|
children: i
|
|
4872
4872
|
});
|
|
4873
|
-
|
|
4873
|
+
je(() => {
|
|
4874
4874
|
c({
|
|
4875
4875
|
type: te.SET_FROM,
|
|
4876
4876
|
payload: { date: r }
|
|
4877
4877
|
});
|
|
4878
|
-
}, [r]),
|
|
4878
|
+
}, [r]), je(() => {
|
|
4879
4879
|
c({
|
|
4880
4880
|
type: te.SET_TO,
|
|
4881
4881
|
payload: { date: o }
|
|
4882
4882
|
});
|
|
4883
|
-
}, [o]),
|
|
4883
|
+
}, [o]), je(() => {
|
|
4884
4884
|
const b = e_(
|
|
4885
4885
|
r,
|
|
4886
4886
|
o,
|
|
@@ -4890,18 +4890,18 @@ const il = (e) => {
|
|
|
4890
4890
|
type: te.CURRENT_MONTH_CHANGE,
|
|
4891
4891
|
payload: { date: b }
|
|
4892
4892
|
});
|
|
4893
|
-
}, [_, r, o]),
|
|
4894
|
-
const { from: b, selectedItem: C, to:
|
|
4895
|
-
if (!(b &&
|
|
4893
|
+
}, [_, r, o]), je(() => {
|
|
4894
|
+
const { from: b, selectedItem: C, to: w } = d;
|
|
4895
|
+
if (!(b && w))
|
|
4896
4896
|
return;
|
|
4897
|
-
const
|
|
4898
|
-
|
|
4897
|
+
const $ = ya(C, e);
|
|
4898
|
+
$ && (n == null || n(E(k({}, $), {
|
|
4899
4899
|
value: {
|
|
4900
4900
|
from: b,
|
|
4901
|
-
to:
|
|
4901
|
+
to: w
|
|
4902
4902
|
}
|
|
4903
4903
|
})));
|
|
4904
|
-
}, [d.from, d.to, d.selectedItem, e, n]),
|
|
4904
|
+
}, [d.from, d.to, d.selectedItem, e, n]), je(() => {
|
|
4905
4905
|
const { selectedItem: b } = d;
|
|
4906
4906
|
if (b === l.current)
|
|
4907
4907
|
return;
|
|
@@ -4911,11 +4911,11 @@ const il = (e) => {
|
|
|
4911
4911
|
}
|
|
4912
4912
|
if (!ya(b, e))
|
|
4913
4913
|
return;
|
|
4914
|
-
const
|
|
4915
|
-
(
|
|
4914
|
+
const w = e.reduce(
|
|
4915
|
+
($, S) => E(k({}, $), { [S.id]: S }),
|
|
4916
4916
|
{}
|
|
4917
4917
|
);
|
|
4918
|
-
n(
|
|
4918
|
+
n(w[b]);
|
|
4919
4919
|
}, [n, d.selectedItem, e]);
|
|
4920
4920
|
const s = Ma(
|
|
4921
4921
|
(b) => {
|
|
@@ -4926,10 +4926,10 @@ const il = (e) => {
|
|
|
4926
4926
|
});
|
|
4927
4927
|
},
|
|
4928
4928
|
[_, d.from, d.to]
|
|
4929
|
-
),
|
|
4929
|
+
), g = Ma(
|
|
4930
4930
|
(b) => {
|
|
4931
|
-
const { from: C, to:
|
|
4932
|
-
Jo(b, { to: _ }) && (fo(C,
|
|
4931
|
+
const { from: C, to: w } = d;
|
|
4932
|
+
Jo(b, { to: _ }) && (fo(C, w) ? c({
|
|
4933
4933
|
type: te.SELECT_FIRST_DAY,
|
|
4934
4934
|
payload: { date: b }
|
|
4935
4935
|
}) : C && Tr(b, C) || C && Ar(b, C) ? c({
|
|
@@ -4963,14 +4963,14 @@ const il = (e) => {
|
|
|
4963
4963
|
});
|
|
4964
4964
|
}, []);
|
|
4965
4965
|
return i((() => {
|
|
4966
|
-
const { currentMonth: b, from: C, selectedItem:
|
|
4967
|
-
() => tl(C,
|
|
4968
|
-
[C,
|
|
4969
|
-
), B =
|
|
4966
|
+
const { currentMonth: b, from: C, selectedItem: w, temporaryTo: $, to: S } = d, x = qt(
|
|
4967
|
+
() => tl(C, $),
|
|
4968
|
+
[C, $]
|
|
4969
|
+
), B = qt(() => ya(w, e), [e, w]), y = qt(() => [C, { from: C, to: $ }], [C, $]), N = qt(() => _ ? { after: _ } : void 0, [_]);
|
|
4970
4970
|
return {
|
|
4971
4971
|
select: {
|
|
4972
4972
|
onItemSelect: p,
|
|
4973
|
-
selected:
|
|
4973
|
+
selected: w || ""
|
|
4974
4974
|
},
|
|
4975
4975
|
inputs: {
|
|
4976
4976
|
fromDate: C,
|
|
@@ -4980,12 +4980,12 @@ const il = (e) => {
|
|
|
4980
4980
|
range: !0,
|
|
4981
4981
|
month: b,
|
|
4982
4982
|
numberOfMonths: 2,
|
|
4983
|
-
onDayClick:
|
|
4983
|
+
onDayClick: g,
|
|
4984
4984
|
selectedDays: y,
|
|
4985
4985
|
modifiers: x,
|
|
4986
|
-
initialMonth: _ &&
|
|
4986
|
+
initialMonth: _ && jt(_, 1),
|
|
4987
4987
|
toMonth: _,
|
|
4988
|
-
disabledDays:
|
|
4988
|
+
disabledDays: N,
|
|
4989
4989
|
onDayMouseEnter: s,
|
|
4990
4990
|
onMonthChange: v
|
|
4991
4991
|
},
|
|
@@ -5006,7 +5006,7 @@ ll.defaultProps = {
|
|
|
5006
5006
|
}
|
|
5007
5007
|
]
|
|
5008
5008
|
};
|
|
5009
|
-
const
|
|
5009
|
+
const Ns = (e) => {
|
|
5010
5010
|
const n = e, { className: t, children: r } = n, o = F(n, ["className", "children"]), _ = u(
|
|
5011
5011
|
t,
|
|
5012
5012
|
L["date-picker--range__calendars-wrapper"]
|
|
@@ -5033,7 +5033,7 @@ const $s = (e) => {
|
|
|
5033
5033
|
"details-card__content": "lc-DetailsCard-module__details-card__content___aJux3",
|
|
5034
5034
|
"details-card__content--spacing": "lc-DetailsCard-module__details-card__content--spacing___F17pU",
|
|
5035
5035
|
"details-card__content--full-space": "lc-DetailsCard-module__details-card__content--full-space___8CLFw"
|
|
5036
|
-
}, Z = "details-card", cl = ["input", "button", "select", "textarea", "a"],
|
|
5036
|
+
}, Z = "details-card", cl = ["input", "button", "select", "textarea", "a"], xs = ({
|
|
5037
5037
|
children: e,
|
|
5038
5038
|
className: t,
|
|
5039
5039
|
leftNode: r,
|
|
@@ -5045,17 +5045,17 @@ const $s = (e) => {
|
|
|
5045
5045
|
hideLabelOnOpen: d,
|
|
5046
5046
|
onClick: c
|
|
5047
5047
|
}) => {
|
|
5048
|
-
const [s,
|
|
5048
|
+
const [s, g] = m.useState(l), [p, v] = m.useState(0), h = m.useRef(null), b = u(
|
|
5049
5049
|
X[Z],
|
|
5050
5050
|
n && X[`${Z}--with-divider`],
|
|
5051
5051
|
t
|
|
5052
|
-
), C = d && s,
|
|
5053
|
-
|
|
5052
|
+
), C = d && s, w = typeof _ == "string", $ = (x) => {
|
|
5053
|
+
g((B) => !B), x.currentTarget.blur(), c == null || c(x);
|
|
5054
5054
|
}, S = (x) => {
|
|
5055
5055
|
const y = x.target.tagName.toLowerCase();
|
|
5056
|
-
cl.includes(y) || (
|
|
5056
|
+
cl.includes(y) || (g((N) => !N), c == null || c(x));
|
|
5057
5057
|
};
|
|
5058
|
-
return
|
|
5058
|
+
return m.useEffect(() => {
|
|
5059
5059
|
const x = !!window.IntersectionObserver;
|
|
5060
5060
|
if (h.current && x) {
|
|
5061
5061
|
const B = new ResizeObserver(() => {
|
|
@@ -5086,7 +5086,7 @@ const $s = (e) => {
|
|
|
5086
5086
|
),
|
|
5087
5087
|
children: [
|
|
5088
5088
|
r && /* @__PURE__ */ a("div", { className: X[`${Z}__label__left-node`], children: r }),
|
|
5089
|
-
|
|
5089
|
+
w ? /* @__PURE__ */ a(
|
|
5090
5090
|
ge,
|
|
5091
5091
|
{
|
|
5092
5092
|
size: "xs",
|
|
@@ -5101,7 +5101,7 @@ const $s = (e) => {
|
|
|
5101
5101
|
}
|
|
5102
5102
|
),
|
|
5103
5103
|
/* @__PURE__ */ a(
|
|
5104
|
-
|
|
5104
|
+
q,
|
|
5105
5105
|
{
|
|
5106
5106
|
kind: s && d ? "float" : "text",
|
|
5107
5107
|
icon: /* @__PURE__ */ a(
|
|
@@ -5120,7 +5120,7 @@ const $s = (e) => {
|
|
|
5120
5120
|
s && X[`${Z}__button--open`],
|
|
5121
5121
|
d && X[`${Z}__button--fading`]
|
|
5122
5122
|
),
|
|
5123
|
-
onClick:
|
|
5123
|
+
onClick: $,
|
|
5124
5124
|
"aria-expanded": s
|
|
5125
5125
|
}
|
|
5126
5126
|
),
|
|
@@ -5153,7 +5153,7 @@ const $s = (e) => {
|
|
|
5153
5153
|
"details-card-info": "lc-DetailsCardInfo-module__details-card-info___22mOK",
|
|
5154
5154
|
"details-card-info__label": "lc-DetailsCardInfo-module__details-card-info__label___LXTXh",
|
|
5155
5155
|
"details-card-info__content": "lc-DetailsCardInfo-module__details-card-info__content___03cfr"
|
|
5156
|
-
}, kr = "details-card-info",
|
|
5156
|
+
}, kr = "details-card-info", Ss = ({ children: e, label: t }) => /* @__PURE__ */ f("div", { className: vr[kr], children: [
|
|
5157
5157
|
/* @__PURE__ */ a("div", { className: vr[`${kr}__label`], children: t }),
|
|
5158
5158
|
/* @__PURE__ */ a("div", { className: vr[`${kr}__content`], children: e })
|
|
5159
5159
|
] }), vo = {
|
|
@@ -5168,7 +5168,7 @@ const $s = (e) => {
|
|
|
5168
5168
|
"className"
|
|
5169
5169
|
]);
|
|
5170
5170
|
const n = u(vo[ko], t);
|
|
5171
|
-
return /* @__PURE__ */ f(
|
|
5171
|
+
return /* @__PURE__ */ f(D, E(k({ as: "span", size: "sm" }, r), { className: n, children: [
|
|
5172
5172
|
/* @__PURE__ */ a(
|
|
5173
5173
|
P,
|
|
5174
5174
|
{
|
|
@@ -5183,7 +5183,7 @@ const $s = (e) => {
|
|
|
5183
5183
|
"field-group": "lc-FieldGroup-module__field-group___--i2x",
|
|
5184
5184
|
"field-group--inline": "lc-FieldGroup-module__field-group--inline___iSg4S",
|
|
5185
5185
|
"field-group--stretched": "lc-FieldGroup-module__field-group--stretched___4Evlw"
|
|
5186
|
-
}, Cr = "field-group",
|
|
5186
|
+
}, Cr = "field-group", Bs = (l) => {
|
|
5187
5187
|
var d = l, {
|
|
5188
5188
|
className: e = "",
|
|
5189
5189
|
children: t,
|
|
@@ -5214,7 +5214,7 @@ const $s = (e) => {
|
|
|
5214
5214
|
form__footer: ul,
|
|
5215
5215
|
form__label: ml,
|
|
5216
5216
|
form__helper: pl
|
|
5217
|
-
}, sa = "form",
|
|
5217
|
+
}, sa = "form", Es = (i) => {
|
|
5218
5218
|
var l = i, {
|
|
5219
5219
|
className: e,
|
|
5220
5220
|
children: t,
|
|
@@ -5231,7 +5231,7 @@ const $s = (e) => {
|
|
|
5231
5231
|
return /* @__PURE__ */ f("form", E(k({ className: u(ca[sa], e) }, n), { children: [
|
|
5232
5232
|
(r || o) && /* @__PURE__ */ f("div", { className: ca[`${sa}__header`], children: [
|
|
5233
5233
|
r && /* @__PURE__ */ a(ge, { size: "sm", className: ca[`${sa}__label`], children: r }),
|
|
5234
|
-
o && /* @__PURE__ */ a(
|
|
5234
|
+
o && /* @__PURE__ */ a(D, { as: "p", size: "sm", className: ca[`${sa}__helper`], children: o })
|
|
5235
5235
|
] }),
|
|
5236
5236
|
t,
|
|
5237
5237
|
_ && /* @__PURE__ */ a("div", { className: ca[`${sa}__footer`], children: _ })
|
|
@@ -5253,7 +5253,7 @@ const $s = (e) => {
|
|
|
5253
5253
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___ibOb7",
|
|
5254
5254
|
"form-field__content": "lc-FormField-module__form-field__content___7Cnwe",
|
|
5255
5255
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___qdMlU"
|
|
5256
|
-
}, oe = "form-field",
|
|
5256
|
+
}, oe = "form-field", Is = ({
|
|
5257
5257
|
inline: e,
|
|
5258
5258
|
error: t,
|
|
5259
5259
|
description: r,
|
|
@@ -5264,20 +5264,20 @@ const $s = (e) => {
|
|
|
5264
5264
|
children: l,
|
|
5265
5265
|
labelRightNode: d
|
|
5266
5266
|
}) => {
|
|
5267
|
-
const c =
|
|
5267
|
+
const c = m.useRef(null), [s, g] = m.useState("auto"), p = u(
|
|
5268
5268
|
re[oe],
|
|
5269
5269
|
{
|
|
5270
5270
|
[re[`${oe}--inline`]]: e
|
|
5271
5271
|
},
|
|
5272
5272
|
n
|
|
5273
5273
|
);
|
|
5274
|
-
return
|
|
5274
|
+
return m.useEffect(() => {
|
|
5275
5275
|
const v = c;
|
|
5276
|
-
return e && v.current ?
|
|
5276
|
+
return e && v.current ? g(`${v.current.clientHeight}px`) : g("auto");
|
|
5277
5277
|
}), /* @__PURE__ */ f("div", { className: p, children: [
|
|
5278
|
-
d && e && /* @__PURE__ */ f(
|
|
5278
|
+
d && e && /* @__PURE__ */ f(m.Fragment, { children: [
|
|
5279
5279
|
/* @__PURE__ */ a(
|
|
5280
|
-
|
|
5280
|
+
D,
|
|
5281
5281
|
{
|
|
5282
5282
|
as: "div",
|
|
5283
5283
|
size: "sm",
|
|
@@ -5323,11 +5323,11 @@ const $s = (e) => {
|
|
|
5323
5323
|
{
|
|
5324
5324
|
className: re[`${oe}__label-left-node`],
|
|
5325
5325
|
htmlFor: i,
|
|
5326
|
-
children: /* @__PURE__ */ a(
|
|
5326
|
+
children: /* @__PURE__ */ a(D, { as: "span", size: "sm", children: o })
|
|
5327
5327
|
}
|
|
5328
5328
|
),
|
|
5329
5329
|
_ && /* @__PURE__ */ a(
|
|
5330
|
-
|
|
5330
|
+
D,
|
|
5331
5331
|
{
|
|
5332
5332
|
as: "div",
|
|
5333
5333
|
size: "sm",
|
|
@@ -5342,7 +5342,7 @@ const $s = (e) => {
|
|
|
5342
5342
|
}
|
|
5343
5343
|
),
|
|
5344
5344
|
d && !e && /* @__PURE__ */ a(
|
|
5345
|
-
|
|
5345
|
+
D,
|
|
5346
5346
|
{
|
|
5347
5347
|
as: "div",
|
|
5348
5348
|
size: "sm",
|
|
@@ -5373,7 +5373,7 @@ const $s = (e) => {
|
|
|
5373
5373
|
"form-group__header": "lc-FormGroup-module__form-group__header___U4FrR",
|
|
5374
5374
|
"form-group__label": "lc-FormGroup-module__form-group__label___9AcBX",
|
|
5375
5375
|
"form-group__helper": "lc-FormGroup-module__form-group__helper___2XQcm"
|
|
5376
|
-
}, Ya = "form-group",
|
|
5376
|
+
}, Ya = "form-group", Ts = (n) => {
|
|
5377
5377
|
var i = n, {
|
|
5378
5378
|
className: e = "",
|
|
5379
5379
|
children: t,
|
|
@@ -5403,7 +5403,7 @@ const $s = (e) => {
|
|
|
5403
5403
|
children: r
|
|
5404
5404
|
}
|
|
5405
5405
|
),
|
|
5406
|
-
o && /* @__PURE__ */ a(
|
|
5406
|
+
o && /* @__PURE__ */ a(D, { as: "div", size: "sm", className: Ka[`${Ya}__helper`], children: o })
|
|
5407
5407
|
] }),
|
|
5408
5408
|
t
|
|
5409
5409
|
]
|
|
@@ -5426,7 +5426,7 @@ const $s = (e) => {
|
|
|
5426
5426
|
}, s = () => {
|
|
5427
5427
|
i(!1);
|
|
5428
5428
|
};
|
|
5429
|
-
return
|
|
5429
|
+
return je(() => {
|
|
5430
5430
|
l && !_ && i(!1);
|
|
5431
5431
|
}, [l, _]), /* @__PURE__ */ f(
|
|
5432
5432
|
"button",
|
|
@@ -5479,31 +5479,31 @@ const $s = (e) => {
|
|
|
5479
5479
|
"tooltipArrowOffset",
|
|
5480
5480
|
"onAvailableAgentsClick"
|
|
5481
5481
|
]);
|
|
5482
|
-
const [s,
|
|
5482
|
+
const [s, g] = Jt(!1), [p, v] = Jt(!1), {
|
|
5483
5483
|
availableAgentsNumber: h,
|
|
5484
5484
|
visibleAgents: b,
|
|
5485
5485
|
additionalAgentsNumber: C,
|
|
5486
|
-
hasOnlyUnavailableAgents:
|
|
5487
|
-
} =
|
|
5486
|
+
hasOnlyUnavailableAgents: w
|
|
5487
|
+
} = qt(() => {
|
|
5488
5488
|
const y = e.filter(
|
|
5489
|
-
(
|
|
5490
|
-
),
|
|
5489
|
+
(A) => A.status === "available"
|
|
5490
|
+
), N = vl(y), T = y.length, R = N.length > 4 ? N.slice(0, 3) : N, G = T - R.length, I = e.length > 0 && T === 0;
|
|
5491
5491
|
return {
|
|
5492
5492
|
availableAgentsNumber: T,
|
|
5493
5493
|
visibleAgents: R,
|
|
5494
5494
|
additionalAgentsNumber: G,
|
|
5495
5495
|
hasOnlyUnavailableAgents: I
|
|
5496
5496
|
};
|
|
5497
|
-
}, [e]),
|
|
5498
|
-
t(),
|
|
5497
|
+
}, [e]), $ = () => {
|
|
5498
|
+
t(), g(!1), v(!1);
|
|
5499
5499
|
}, S = () => {
|
|
5500
|
-
r(),
|
|
5500
|
+
r(), g(!1), v(!1);
|
|
5501
5501
|
}, x = () => {
|
|
5502
|
-
i(),
|
|
5502
|
+
i(), g(!1), v(!1);
|
|
5503
5503
|
}, B = [
|
|
5504
5504
|
{
|
|
5505
5505
|
key: "chatbot",
|
|
5506
|
-
onClick:
|
|
5506
|
+
onClick: $,
|
|
5507
5507
|
element: /* @__PURE__ */ a(Dr, { leftNode: /* @__PURE__ */ a(P, { source: y_ }), children: "Set up ChatBot" })
|
|
5508
5508
|
},
|
|
5509
5509
|
{
|
|
@@ -5520,7 +5520,7 @@ const $s = (e) => {
|
|
|
5520
5520
|
at[rt],
|
|
5521
5521
|
{
|
|
5522
5522
|
[at[`${rt}--empty`]]: e.length === 0,
|
|
5523
|
-
[at[`${rt}--only-unavailable`]]:
|
|
5523
|
+
[at[`${rt}--only-unavailable`]]: w
|
|
5524
5524
|
},
|
|
5525
5525
|
o
|
|
5526
5526
|
),
|
|
@@ -5535,7 +5535,7 @@ const $s = (e) => {
|
|
|
5535
5535
|
onOpen: () => v(!0),
|
|
5536
5536
|
onClose: () => v(!1),
|
|
5537
5537
|
className: u(xt.Dark, at[`${rt}__tooltip`]),
|
|
5538
|
-
triggerRenderer:
|
|
5538
|
+
triggerRenderer: w ? /* @__PURE__ */ f(
|
|
5539
5539
|
"div",
|
|
5540
5540
|
{
|
|
5541
5541
|
className: at[`${rt}__not-accepting`],
|
|
@@ -5549,7 +5549,7 @@ const $s = (e) => {
|
|
|
5549
5549
|
)
|
|
5550
5550
|
}
|
|
5551
5551
|
),
|
|
5552
|
-
/* @__PURE__ */ a(
|
|
5552
|
+
/* @__PURE__ */ a(D, { noMargin: !0, bold: !0, size: "sm", children: "No active agents" })
|
|
5553
5553
|
]
|
|
5554
5554
|
}
|
|
5555
5555
|
) : /* @__PURE__ */ f(
|
|
@@ -5558,7 +5558,7 @@ const $s = (e) => {
|
|
|
5558
5558
|
className: at[`${rt}__tooltip-trigger`],
|
|
5559
5559
|
onClick: x,
|
|
5560
5560
|
children: [
|
|
5561
|
-
/* @__PURE__ */ a("div", { className: at[`${rt}__avatar-container`], children: b.map((y,
|
|
5561
|
+
/* @__PURE__ */ a("div", { className: at[`${rt}__avatar-container`], children: b.map((y, N) => /* @__PURE__ */ a(
|
|
5562
5562
|
Qo,
|
|
5563
5563
|
{
|
|
5564
5564
|
text: y.name,
|
|
@@ -5567,12 +5567,12 @@ const $s = (e) => {
|
|
|
5567
5567
|
size: "xsmall",
|
|
5568
5568
|
status: y.status,
|
|
5569
5569
|
src: y.avatar,
|
|
5570
|
-
style: { zIndex: e.length -
|
|
5570
|
+
style: { zIndex: e.length - N }
|
|
5571
5571
|
},
|
|
5572
5572
|
y.email
|
|
5573
5573
|
)) }),
|
|
5574
5574
|
C > 0 && /* @__PURE__ */ f(
|
|
5575
|
-
|
|
5575
|
+
D,
|
|
5576
5576
|
{
|
|
5577
5577
|
className: at[`${rt}__available-agents-number`],
|
|
5578
5578
|
children: [
|
|
@@ -5584,17 +5584,17 @@ const $s = (e) => {
|
|
|
5584
5584
|
]
|
|
5585
5585
|
}
|
|
5586
5586
|
),
|
|
5587
|
-
children:
|
|
5587
|
+
children: w ? /* @__PURE__ */ a(
|
|
5588
5588
|
Sn,
|
|
5589
5589
|
{
|
|
5590
5590
|
header: "No one's available to assist customers",
|
|
5591
5591
|
text: "Offer 24/7 support with ChatBot.",
|
|
5592
5592
|
primaryButton: {
|
|
5593
|
-
handleClick:
|
|
5593
|
+
handleClick: $,
|
|
5594
5594
|
label: "Set up ChatBot"
|
|
5595
5595
|
}
|
|
5596
5596
|
}
|
|
5597
|
-
) : /* @__PURE__ */ a(
|
|
5597
|
+
) : /* @__PURE__ */ a(D, { noMargin: !0, size: "md", children: kl(h) })
|
|
5598
5598
|
}
|
|
5599
5599
|
),
|
|
5600
5600
|
/* @__PURE__ */ a(
|
|
@@ -5602,15 +5602,15 @@ const $s = (e) => {
|
|
|
5602
5602
|
{
|
|
5603
5603
|
floatingStrategy: "fixed",
|
|
5604
5604
|
visible: s,
|
|
5605
|
-
onOpen: () =>
|
|
5606
|
-
onClose: () =>
|
|
5605
|
+
onOpen: () => g(!0),
|
|
5606
|
+
onClose: () => g(!1),
|
|
5607
5607
|
options: B,
|
|
5608
5608
|
triggerRenderer: /* @__PURE__ */ a(
|
|
5609
5609
|
bl,
|
|
5610
5610
|
{
|
|
5611
5611
|
icon: /* @__PURE__ */ a(P, { source: k_ }),
|
|
5612
5612
|
text: "Invite",
|
|
5613
|
-
onClick: () =>
|
|
5613
|
+
onClick: () => g((y) => !y),
|
|
5614
5614
|
isExpanded: _ ? s || void 0 : !0
|
|
5615
5615
|
}
|
|
5616
5616
|
)
|
|
@@ -5619,10 +5619,10 @@ const $s = (e) => {
|
|
|
5619
5619
|
]
|
|
5620
5620
|
})
|
|
5621
5621
|
);
|
|
5622
|
-
},
|
|
5622
|
+
}, As = m_(Cl), wl = "lc-Link-module__link___35Vo1", Co = {
|
|
5623
5623
|
link: wl,
|
|
5624
5624
|
"link--bold": "lc-Link-module__link--bold___9Uq3Z"
|
|
5625
|
-
}, wo = "link",
|
|
5625
|
+
}, wo = "link", Ds = (o) => {
|
|
5626
5626
|
var _ = o, {
|
|
5627
5627
|
bold: e = !1,
|
|
5628
5628
|
className: t = ""
|
|
@@ -5679,7 +5679,7 @@ const $s = (e) => {
|
|
|
5679
5679
|
t,
|
|
5680
5680
|
n && ve[`${da}--full-space`]
|
|
5681
5681
|
);
|
|
5682
|
-
return
|
|
5682
|
+
return m.useEffect(() => {
|
|
5683
5683
|
if (!o)
|
|
5684
5684
|
return;
|
|
5685
5685
|
const p = (v) => {
|
|
@@ -5715,7 +5715,7 @@ const $s = (e) => {
|
|
|
5715
5715
|
customColor: t,
|
|
5716
5716
|
onClick: r
|
|
5717
5717
|
}) => /* @__PURE__ */ a(
|
|
5718
|
-
|
|
5718
|
+
q,
|
|
5719
5719
|
{
|
|
5720
5720
|
type: "button",
|
|
5721
5721
|
kind: "plain",
|
|
@@ -5728,7 +5728,7 @@ const $s = (e) => {
|
|
|
5728
5728
|
onClick: r,
|
|
5729
5729
|
icon: /* @__PURE__ */ a(P, { source: Re, size: "medium", customColor: t })
|
|
5730
5730
|
}
|
|
5731
|
-
), Tt = "modal",
|
|
5731
|
+
), Tt = "modal", Ps = (c) => {
|
|
5732
5732
|
var s = c, {
|
|
5733
5733
|
children: e,
|
|
5734
5734
|
className: t = "",
|
|
@@ -5748,13 +5748,13 @@ const $s = (e) => {
|
|
|
5748
5748
|
"onClose",
|
|
5749
5749
|
"contentClassName"
|
|
5750
5750
|
]);
|
|
5751
|
-
const
|
|
5751
|
+
const g = u(ve[Tt], t), p = typeof e == "string", v = (h) => {
|
|
5752
5752
|
h.preventDefault(), h.stopPropagation(), i();
|
|
5753
5753
|
};
|
|
5754
5754
|
return /* @__PURE__ */ f(
|
|
5755
5755
|
Bl,
|
|
5756
5756
|
E(k({
|
|
5757
|
-
className:
|
|
5757
|
+
className: g,
|
|
5758
5758
|
fullSpaceContent: _,
|
|
5759
5759
|
onClose: i,
|
|
5760
5760
|
isLabelled: !!o
|
|
@@ -5804,26 +5804,26 @@ const $s = (e) => {
|
|
|
5804
5804
|
{
|
|
5805
5805
|
"data-testid": "modal-body",
|
|
5806
5806
|
className: u(ve[`${Tt}__body`], l),
|
|
5807
|
-
children: p ? /* @__PURE__ */ a(
|
|
5807
|
+
children: p ? /* @__PURE__ */ a(D, { as: "div", children: e }) : e
|
|
5808
5808
|
}
|
|
5809
5809
|
),
|
|
5810
5810
|
n && /* @__PURE__ */ a("div", { className: ve[`${Tt}__footer`], children: n })
|
|
5811
5811
|
]
|
|
5812
5812
|
})
|
|
5813
5813
|
);
|
|
5814
|
-
},
|
|
5814
|
+
}, Fs = ({
|
|
5815
5815
|
children: e,
|
|
5816
5816
|
className: t = "",
|
|
5817
5817
|
parentElementName: r = "body",
|
|
5818
5818
|
zIndex: o
|
|
5819
5819
|
}) => {
|
|
5820
5820
|
const _ = Rr(document.createElement("div"));
|
|
5821
|
-
return
|
|
5821
|
+
return je(() => {
|
|
5822
5822
|
const n = _.current, i = document.querySelector(r);
|
|
5823
5823
|
return i && i.appendChild(n), () => {
|
|
5824
5824
|
i && i.removeChild(n);
|
|
5825
5825
|
};
|
|
5826
|
-
}, [r]),
|
|
5826
|
+
}, [r]), je(() => {
|
|
5827
5827
|
const n = _.current;
|
|
5828
5828
|
t && (n.className = t), o && (n.style.zIndex = `${o}`);
|
|
5829
5829
|
}, [t, o]), W_(/* @__PURE__ */ a(ae, { children: e }), _.current);
|
|
@@ -5832,7 +5832,7 @@ const $s = (e) => {
|
|
|
5832
5832
|
"modal-header__heading-left-node": "lc-ModalHeader-module__modal-header__heading-left-node___SZBRX",
|
|
5833
5833
|
"modal-header__heading-body": "lc-ModalHeader-module__modal-header__heading-body___aBgMz",
|
|
5834
5834
|
"modal-header__heading-description": "lc-ModalHeader-module__modal-header__heading-description___dpbWK"
|
|
5835
|
-
}, ma = "modal-header",
|
|
5835
|
+
}, ma = "modal-header", Rs = ({ title: e, iconProps: t, avatarProps: r, children: o, className: _ = "" }) => {
|
|
5836
5836
|
const n = u(ua[ma], _);
|
|
5837
5837
|
return /* @__PURE__ */ f("div", { className: n, children: [
|
|
5838
5838
|
t && /* @__PURE__ */ a(
|
|
@@ -5850,7 +5850,7 @@ const $s = (e) => {
|
|
|
5850
5850
|
/* @__PURE__ */ f("div", { className: ua[`${ma}__heading-body`], children: [
|
|
5851
5851
|
/* @__PURE__ */ a(ge, { as: "div", size: "sm", children: e }),
|
|
5852
5852
|
o && /* @__PURE__ */ a(
|
|
5853
|
-
|
|
5853
|
+
D,
|
|
5854
5854
|
{
|
|
5855
5855
|
as: "div",
|
|
5856
5856
|
className: ua[`${ma}__heading-description`],
|
|
@@ -5865,7 +5865,7 @@ const $s = (e) => {
|
|
|
5865
5865
|
"action-modal-content__heading": "lc-ActionModalContent-module__action-modal-content__heading___gGgOD",
|
|
5866
5866
|
"action-modal-content__content": "lc-ActionModalContent-module__action-modal-content__content___K4e5r",
|
|
5867
5867
|
"action-modal-content__actions": "lc-ActionModalContent-module__action-modal-content__actions___bgnDV"
|
|
5868
|
-
}, ga = "action-modal-content",
|
|
5868
|
+
}, ga = "action-modal-content", Ms = ({
|
|
5869
5869
|
children: e,
|
|
5870
5870
|
className: t,
|
|
5871
5871
|
icon: r,
|
|
@@ -5885,7 +5885,7 @@ const $s = (e) => {
|
|
|
5885
5885
|
}
|
|
5886
5886
|
),
|
|
5887
5887
|
/* @__PURE__ */ a(
|
|
5888
|
-
|
|
5888
|
+
D,
|
|
5889
5889
|
{
|
|
5890
5890
|
as: "div",
|
|
5891
5891
|
className: u(pa[`${ga}__content`], i),
|
|
@@ -5901,8 +5901,8 @@ const $s = (e) => {
|
|
|
5901
5901
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___s2O8w",
|
|
5902
5902
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___nO8zN",
|
|
5903
5903
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___y9v6f"
|
|
5904
|
-
}, Zt = "numeric-input",
|
|
5905
|
-
var
|
|
5904
|
+
}, Zt = "numeric-input", Os = (s) => {
|
|
5905
|
+
var g = s, {
|
|
5906
5906
|
className: e,
|
|
5907
5907
|
error: t,
|
|
5908
5908
|
value: r,
|
|
@@ -5912,7 +5912,7 @@ const $s = (e) => {
|
|
|
5912
5912
|
noControls: i,
|
|
5913
5913
|
style: l,
|
|
5914
5914
|
onChange: d
|
|
5915
|
-
} =
|
|
5915
|
+
} = g, c = F(g, [
|
|
5916
5916
|
"className",
|
|
5917
5917
|
"error",
|
|
5918
5918
|
"value",
|
|
@@ -5923,7 +5923,7 @@ const $s = (e) => {
|
|
|
5923
5923
|
"style",
|
|
5924
5924
|
"onChange"
|
|
5925
5925
|
]);
|
|
5926
|
-
const p =
|
|
5926
|
+
const p = m.useRef(null), v = u(
|
|
5927
5927
|
Xt[Zt],
|
|
5928
5928
|
{
|
|
5929
5929
|
[Xt[`${Zt}--error`]]: t,
|
|
@@ -5932,19 +5932,19 @@ const $s = (e) => {
|
|
|
5932
5932
|
},
|
|
5933
5933
|
e
|
|
5934
5934
|
), h = (y) => d(String(y)), b = (y) => o !== void 0 && y > o ? o : _ !== void 0 && y < _ ? _ : y, C = (y) => {
|
|
5935
|
-
const
|
|
5936
|
-
return h(b(
|
|
5937
|
-
},
|
|
5935
|
+
const N = parseInt(r, 10) + y;
|
|
5936
|
+
return h(b(N));
|
|
5937
|
+
}, w = (y) => {
|
|
5938
5938
|
y.key === ke.arrowDown && (y.preventDefault(), C(-1)), y.key === ke.arrowUp && (y.preventDefault(), C(1));
|
|
5939
|
-
},
|
|
5939
|
+
}, $ = (y, N) => N !== void 0 && parseInt(y, 10) === N, S = (y) => {
|
|
5940
5940
|
y.preventDefault(), y.stopPropagation();
|
|
5941
|
-
const
|
|
5941
|
+
const N = y.currentTarget.value.replace(
|
|
5942
5942
|
/((?!([-]|([-]?\d+))).)/,
|
|
5943
5943
|
""
|
|
5944
5944
|
);
|
|
5945
|
-
if (
|
|
5946
|
-
return h(
|
|
5947
|
-
const T = parseInt(
|
|
5945
|
+
if (N === "" || N === "-")
|
|
5946
|
+
return h(N);
|
|
5947
|
+
const T = parseInt(N, 10);
|
|
5948
5948
|
return h(b(T));
|
|
5949
5949
|
}, x = () => {
|
|
5950
5950
|
var y;
|
|
@@ -5963,7 +5963,7 @@ const $s = (e) => {
|
|
|
5963
5963
|
value: r,
|
|
5964
5964
|
disabled: n,
|
|
5965
5965
|
onChange: S,
|
|
5966
|
-
onKeyDown:
|
|
5966
|
+
onKeyDown: w,
|
|
5967
5967
|
min: _,
|
|
5968
5968
|
max: o
|
|
5969
5969
|
})
|
|
@@ -5973,7 +5973,7 @@ const $s = (e) => {
|
|
|
5973
5973
|
"button",
|
|
5974
5974
|
{
|
|
5975
5975
|
tabIndex: -1,
|
|
5976
|
-
disabled: n ||
|
|
5976
|
+
disabled: n || $(r, o),
|
|
5977
5977
|
onClick: x,
|
|
5978
5978
|
"aria-label": "Increment value",
|
|
5979
5979
|
className: Xt[`${Zt}__increment`],
|
|
@@ -5982,7 +5982,7 @@ const $s = (e) => {
|
|
|
5982
5982
|
P,
|
|
5983
5983
|
{
|
|
5984
5984
|
source: or,
|
|
5985
|
-
disabled: n ||
|
|
5985
|
+
disabled: n || $(r, o),
|
|
5986
5986
|
kind: "primary"
|
|
5987
5987
|
}
|
|
5988
5988
|
)
|
|
@@ -5992,7 +5992,7 @@ const $s = (e) => {
|
|
|
5992
5992
|
"button",
|
|
5993
5993
|
{
|
|
5994
5994
|
tabIndex: -1,
|
|
5995
|
-
disabled: n ||
|
|
5995
|
+
disabled: n || $(r, _),
|
|
5996
5996
|
"aria-label": "Decrement value",
|
|
5997
5997
|
className: Xt[`${Zt}__decrement`],
|
|
5998
5998
|
onClick: B,
|
|
@@ -6002,7 +6002,7 @@ const $s = (e) => {
|
|
|
6002
6002
|
{
|
|
6003
6003
|
source: Ut,
|
|
6004
6004
|
kind: "primary",
|
|
6005
|
-
disabled: n ||
|
|
6005
|
+
disabled: n || $(r, _)
|
|
6006
6006
|
}
|
|
6007
6007
|
)
|
|
6008
6008
|
}
|
|
@@ -6037,17 +6037,17 @@ const $s = (e) => {
|
|
|
6037
6037
|
onClick: l,
|
|
6038
6038
|
cta: d
|
|
6039
6039
|
}) => {
|
|
6040
|
-
const c =
|
|
6041
|
-
return
|
|
6040
|
+
const c = m.useRef(null), s = m.useRef(null), [g, p] = m.useState(0), v = m.useRef(g);
|
|
6041
|
+
return m.useEffect(() => {
|
|
6042
6042
|
t && c.current && c.current.focus();
|
|
6043
|
-
}, [t]),
|
|
6043
|
+
}, [t]), m.useEffect(() => {
|
|
6044
6044
|
const h = !!window.ResizeObserver;
|
|
6045
6045
|
if (s.current && h) {
|
|
6046
6046
|
const b = new ResizeObserver((C) => {
|
|
6047
|
-
const
|
|
6048
|
-
if (
|
|
6049
|
-
const
|
|
6050
|
-
v.current !==
|
|
6047
|
+
const w = C[0];
|
|
6048
|
+
if (!w) return;
|
|
6049
|
+
const $ = w.contentRect.height + El;
|
|
6050
|
+
v.current !== $ && (p($), v.current = $);
|
|
6051
6051
|
});
|
|
6052
6052
|
return b.observe(s.current), () => b.disconnect();
|
|
6053
6053
|
}
|
|
@@ -6096,7 +6096,7 @@ const $s = (e) => {
|
|
|
6096
6096
|
_,
|
|
6097
6097
|
" ",
|
|
6098
6098
|
n && /* @__PURE__ */ f(
|
|
6099
|
-
|
|
6099
|
+
D,
|
|
6100
6100
|
{
|
|
6101
6101
|
noMargin: !0,
|
|
6102
6102
|
size: "lg",
|
|
@@ -6116,10 +6116,10 @@ const $s = (e) => {
|
|
|
6116
6116
|
className: u(me[`${pe}__content__inner`], {
|
|
6117
6117
|
[me[`${pe}__content__inner--open`]]: t
|
|
6118
6118
|
}),
|
|
6119
|
-
style: { maxHeight: t ?
|
|
6119
|
+
style: { maxHeight: t ? g : 0 },
|
|
6120
6120
|
children: /* @__PURE__ */ f("div", { ref: s, children: [
|
|
6121
6121
|
/* @__PURE__ */ a(
|
|
6122
|
-
|
|
6122
|
+
D,
|
|
6123
6123
|
{
|
|
6124
6124
|
size: "lg",
|
|
6125
6125
|
className: me[`${pe}__content__inner__description`],
|
|
@@ -6156,7 +6156,7 @@ const $s = (e) => {
|
|
|
6156
6156
|
"onboarding-checklist__button": "lc-OnboardingChecklist-module__onboarding-checklist__button___ZmZ2j",
|
|
6157
6157
|
"onboarding-checklist__button__icon": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon___ta8M6",
|
|
6158
6158
|
"onboarding-checklist__button__icon--open": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon--open___Jnrn8"
|
|
6159
|
-
}, ee = "onboarding-checklist",
|
|
6159
|
+
}, ee = "onboarding-checklist", Ls = ({
|
|
6160
6160
|
activeItemId: e,
|
|
6161
6161
|
completedItemsIds: t,
|
|
6162
6162
|
title: r,
|
|
@@ -6169,19 +6169,19 @@ const $s = (e) => {
|
|
|
6169
6169
|
className: c
|
|
6170
6170
|
}) => {
|
|
6171
6171
|
var S;
|
|
6172
|
-
const [s,
|
|
6172
|
+
const [s, g] = m.useState(l), [p, v] = m.useState(!l), [h, b] = m.useState(void 0), C = m.useRef(null), w = d.height || 96, $ = () => {
|
|
6173
6173
|
v((x) => !x);
|
|
6174
6174
|
};
|
|
6175
|
-
return
|
|
6175
|
+
return m.useEffect(() => {
|
|
6176
6176
|
const x = d.delay || 1500, B = C.current;
|
|
6177
6177
|
if (l && B) {
|
|
6178
6178
|
const y = B.offsetHeight;
|
|
6179
6179
|
b(y);
|
|
6180
|
-
const
|
|
6181
|
-
|
|
6180
|
+
const N = setTimeout(() => {
|
|
6181
|
+
g(!0), v(!1);
|
|
6182
6182
|
}, x);
|
|
6183
6183
|
return () => {
|
|
6184
|
-
clearTimeout(
|
|
6184
|
+
clearTimeout(N);
|
|
6185
6185
|
};
|
|
6186
6186
|
}
|
|
6187
6187
|
}, [l]), /* @__PURE__ */ f(
|
|
@@ -6196,14 +6196,14 @@ const $s = (e) => {
|
|
|
6196
6196
|
c
|
|
6197
6197
|
),
|
|
6198
6198
|
style: {
|
|
6199
|
-
height: !s || p ? h :
|
|
6199
|
+
height: !s || p ? h : w
|
|
6200
6200
|
},
|
|
6201
6201
|
children: [
|
|
6202
6202
|
p && /* @__PURE__ */ f(ae, { children: [
|
|
6203
6203
|
/* @__PURE__ */ f("div", { className: J[`${ee}__column`], children: [
|
|
6204
6204
|
/* @__PURE__ */ f("div", { className: J[`${ee}__header`], children: [
|
|
6205
6205
|
o && /* @__PURE__ */ a(
|
|
6206
|
-
|
|
6206
|
+
D,
|
|
6207
6207
|
{
|
|
6208
6208
|
size: "lg",
|
|
6209
6209
|
className: J[`${ee}__header__label`],
|
|
@@ -6264,7 +6264,7 @@ const $s = (e) => {
|
|
|
6264
6264
|
) }),
|
|
6265
6265
|
/* @__PURE__ */ f("div", { children: [
|
|
6266
6266
|
(d == null ? void 0 : d.greetingText) && /* @__PURE__ */ a(
|
|
6267
|
-
|
|
6267
|
+
D,
|
|
6268
6268
|
{
|
|
6269
6269
|
size: "lg",
|
|
6270
6270
|
className: J[`${ee}__complete__label`],
|
|
@@ -6282,7 +6282,7 @@ const $s = (e) => {
|
|
|
6282
6282
|
] })
|
|
6283
6283
|
] }) }),
|
|
6284
6284
|
s && /* @__PURE__ */ a(
|
|
6285
|
-
|
|
6285
|
+
q,
|
|
6286
6286
|
{
|
|
6287
6287
|
kind: p ? "float" : "text",
|
|
6288
6288
|
icon: /* @__PURE__ */ a(
|
|
@@ -6296,7 +6296,7 @@ const $s = (e) => {
|
|
|
6296
6296
|
}
|
|
6297
6297
|
),
|
|
6298
6298
|
className: J[`${ee}__button`],
|
|
6299
|
-
onClick:
|
|
6299
|
+
onClick: $,
|
|
6300
6300
|
"aria-expanded": p
|
|
6301
6301
|
}
|
|
6302
6302
|
)
|
|
@@ -6305,7 +6305,7 @@ const $s = (e) => {
|
|
|
6305
6305
|
);
|
|
6306
6306
|
}, Tl = "lc-Popover-module__popover___rvS3X", Al = {
|
|
6307
6307
|
popover: Tl
|
|
6308
|
-
},
|
|
6308
|
+
}, Gs = ({
|
|
6309
6309
|
triggerRenderer: e,
|
|
6310
6310
|
onClose: t,
|
|
6311
6311
|
onOpen: r,
|
|
@@ -6317,26 +6317,26 @@ const $s = (e) => {
|
|
|
6317
6317
|
offsetSize: d = 4,
|
|
6318
6318
|
isVisible: c,
|
|
6319
6319
|
openedOnInit: s,
|
|
6320
|
-
closeOnEsc:
|
|
6320
|
+
closeOnEsc: g = !0,
|
|
6321
6321
|
useDismissHookProps: p,
|
|
6322
6322
|
useClickHookProps: v,
|
|
6323
6323
|
floatingStrategy: h
|
|
6324
6324
|
}) => {
|
|
6325
|
-
const [b, C] =
|
|
6325
|
+
const [b, C] = m.useState(s), w = _r(), $ = Sa(), S = c !== void 0, x = S ? c : b, B = typeof o == "string", y = typeof e == "function", N = (Me, Oe) => {
|
|
6326
6326
|
Me ? r == null || r(Oe) : t == null || t(Oe), !S && C(Me);
|
|
6327
6327
|
}, { refs: T, context: R, floatingStyles: G } = Ba({
|
|
6328
|
-
nodeId:
|
|
6328
|
+
nodeId: $,
|
|
6329
6329
|
open: x,
|
|
6330
|
-
onOpenChange:
|
|
6330
|
+
onOpenChange: N,
|
|
6331
6331
|
middleware: [Ea(d), nr(l), Lr()],
|
|
6332
6332
|
placement: i,
|
|
6333
6333
|
strategy: h,
|
|
6334
6334
|
whileElementsMounted: Ia
|
|
6335
|
-
}), I = Ta(R, v),
|
|
6336
|
-
escapeKey:
|
|
6335
|
+
}), I = Ta(R, v), A = Aa(R, k({
|
|
6336
|
+
escapeKey: g
|
|
6337
6337
|
}, p)), z = Da(R), { getReferenceProps: he, getFloatingProps: V } = Pa([
|
|
6338
6338
|
I,
|
|
6339
|
-
|
|
6339
|
+
A,
|
|
6340
6340
|
z
|
|
6341
6341
|
]), H = u(Al.popover, _), K = /* @__PURE__ */ f(ae, { children: [
|
|
6342
6342
|
/* @__PURE__ */ a(
|
|
@@ -6349,18 +6349,18 @@ const $s = (e) => {
|
|
|
6349
6349
|
children: y ? e() : e
|
|
6350
6350
|
})
|
|
6351
6351
|
),
|
|
6352
|
-
/* @__PURE__ */ a(ea, { id:
|
|
6352
|
+
/* @__PURE__ */ a(ea, { id: $, children: x && /* @__PURE__ */ a(Er, { context: R, modal: !1, children: /* @__PURE__ */ a(
|
|
6353
6353
|
"div",
|
|
6354
6354
|
E(k({
|
|
6355
6355
|
className: H,
|
|
6356
6356
|
ref: T.setFloating,
|
|
6357
6357
|
style: G
|
|
6358
6358
|
}, V()), {
|
|
6359
|
-
children: B ? /* @__PURE__ */ a(
|
|
6359
|
+
children: B ? /* @__PURE__ */ a(D, { as: "div", children: o }) : o
|
|
6360
6360
|
})
|
|
6361
6361
|
) }) })
|
|
6362
6362
|
] });
|
|
6363
|
-
return
|
|
6363
|
+
return w === null ? /* @__PURE__ */ a(ir, { children: K }) : K;
|
|
6364
6364
|
}, Fe = {
|
|
6365
6365
|
"outer-border": "lc-ProductTile-module__outer-border___tsyqh",
|
|
6366
6366
|
"product-tile-wrapper": "lc-ProductTile-module__product-tile-wrapper___iKDxM",
|
|
@@ -6466,7 +6466,7 @@ const $s = (e) => {
|
|
|
6466
6466
|
withDivider: d,
|
|
6467
6467
|
shortcutKey: c,
|
|
6468
6468
|
expired: s,
|
|
6469
|
-
trialDaysLeft:
|
|
6469
|
+
trialDaysLeft: g,
|
|
6470
6470
|
nameAdornment: p
|
|
6471
6471
|
},
|
|
6472
6472
|
onClick: v,
|
|
@@ -6497,7 +6497,7 @@ const $s = (e) => {
|
|
|
6497
6497
|
withBorder: h
|
|
6498
6498
|
}
|
|
6499
6499
|
),
|
|
6500
|
-
/* @__PURE__ */ f(
|
|
6500
|
+
/* @__PURE__ */ f(D, { as: "div", bold: !0, className: ft[`${bt}__name`], children: [
|
|
6501
6501
|
i,
|
|
6502
6502
|
s && /* @__PURE__ */ a(
|
|
6503
6503
|
Gt,
|
|
@@ -6513,7 +6513,7 @@ const $s = (e) => {
|
|
|
6513
6513
|
children: "Your licence is expired."
|
|
6514
6514
|
}
|
|
6515
6515
|
),
|
|
6516
|
-
typeof
|
|
6516
|
+
typeof g != "undefined" && /* @__PURE__ */ f(
|
|
6517
6517
|
Gt,
|
|
6518
6518
|
{
|
|
6519
6519
|
className: ft[`${bt}__trial-tooltip`],
|
|
@@ -6526,9 +6526,9 @@ const $s = (e) => {
|
|
|
6526
6526
|
),
|
|
6527
6527
|
placement: "right",
|
|
6528
6528
|
children: [
|
|
6529
|
-
|
|
6529
|
+
g,
|
|
6530
6530
|
" ",
|
|
6531
|
-
Wo(
|
|
6531
|
+
Wo(g, "day", "days"),
|
|
6532
6532
|
" left in your trial. Time to upgrade."
|
|
6533
6533
|
]
|
|
6534
6534
|
}
|
|
@@ -6536,7 +6536,7 @@ const $s = (e) => {
|
|
|
6536
6536
|
p
|
|
6537
6537
|
] })
|
|
6538
6538
|
] }),
|
|
6539
|
-
c && /* @__PURE__ */ f(
|
|
6539
|
+
c && /* @__PURE__ */ f(D, { size: "sm", className: ft[`${bt}__shortcut`], children: [
|
|
6540
6540
|
"⌘",
|
|
6541
6541
|
c
|
|
6542
6542
|
] })
|
|
@@ -6549,7 +6549,7 @@ const $s = (e) => {
|
|
|
6549
6549
|
"product-switcher__footer": "lc-ProductSwitcher-module__product-switcher__footer___YRPN9",
|
|
6550
6550
|
"product-switcher__footer-link": "lc-ProductSwitcher-module__product-switcher__footer-link___X0VOn",
|
|
6551
6551
|
"product-switcher__tooltip": "lc-ProductSwitcher-module__product-switcher__tooltip___kcVyp"
|
|
6552
|
-
}, fa = "product-switcher",
|
|
6552
|
+
}, fa = "product-switcher", Us = ({
|
|
6553
6553
|
productOptions: e,
|
|
6554
6554
|
mainProductId: t,
|
|
6555
6555
|
openedOnInit: r = !1,
|
|
@@ -6560,21 +6560,21 @@ const $s = (e) => {
|
|
|
6560
6560
|
onSelect: l,
|
|
6561
6561
|
textURL: d = "https://www.text.com"
|
|
6562
6562
|
}) => {
|
|
6563
|
-
const [c, s] =
|
|
6563
|
+
const [c, s] = m.useState(r), [g, p] = Jt(
|
|
6564
6564
|
!1
|
|
6565
|
-
), v = _r(), h = Sa(), b = o !== void 0, C = b ? o : c,
|
|
6565
|
+
), v = _r(), h = Sa(), b = o !== void 0, C = b ? o : c, w = (H, K) => {
|
|
6566
6566
|
H ? n == null || n(K) : i == null || i(K), !b && s(H);
|
|
6567
|
-
}, { refs:
|
|
6567
|
+
}, { refs: $, context: S, floatingStyles: x } = Ba({
|
|
6568
6568
|
nodeId: h,
|
|
6569
6569
|
strategy: "fixed",
|
|
6570
6570
|
placement: "right-start",
|
|
6571
6571
|
open: C,
|
|
6572
6572
|
onOpenChange: (H, K) => {
|
|
6573
|
-
p(!1),
|
|
6573
|
+
p(!1), w(H, K);
|
|
6574
6574
|
},
|
|
6575
6575
|
middleware: [Ea({ mainAxis: 5 })],
|
|
6576
6576
|
whileElementsMounted: Ia
|
|
6577
|
-
}), B = Ta(S), y = Da(S),
|
|
6577
|
+
}), B = Ta(S), y = Da(S), N = Aa(S), { isMounted: T, styles: R } = Or(S, {
|
|
6578
6578
|
duration: 200,
|
|
6579
6579
|
common: {
|
|
6580
6580
|
transformOrigin: "left top"
|
|
@@ -6585,12 +6585,12 @@ const $s = (e) => {
|
|
|
6585
6585
|
}
|
|
6586
6586
|
}), { getReferenceProps: G, getFloatingProps: I } = Pa([
|
|
6587
6587
|
B,
|
|
6588
|
-
|
|
6588
|
+
N,
|
|
6589
6589
|
y
|
|
6590
|
-
]),
|
|
6590
|
+
]), A = e.find(
|
|
6591
6591
|
(H) => H.id === t
|
|
6592
6592
|
);
|
|
6593
|
-
if (!
|
|
6593
|
+
if (!A)
|
|
6594
6594
|
return null;
|
|
6595
6595
|
const z = (H, K) => {
|
|
6596
6596
|
K === t && H.preventDefault(), s(!1), l == null || l(K);
|
|
@@ -6598,10 +6598,10 @@ const $s = (e) => {
|
|
|
6598
6598
|
(H, K) => H + (K.notificationCount || 0),
|
|
6599
6599
|
0
|
|
6600
6600
|
), V = /* @__PURE__ */ f(ae, { children: [
|
|
6601
|
-
/* @__PURE__ */ a("div", E(k({ ref:
|
|
6601
|
+
/* @__PURE__ */ a("div", E(k({ ref: $.setReference }, G()), { children: /* @__PURE__ */ a(
|
|
6602
6602
|
Gt,
|
|
6603
6603
|
{
|
|
6604
|
-
isVisible:
|
|
6604
|
+
isVisible: g,
|
|
6605
6605
|
onOpen: () => p(!0),
|
|
6606
6606
|
onClose: () => p(!1),
|
|
6607
6607
|
offsetCrossAxis: 2,
|
|
@@ -6616,9 +6616,9 @@ const $s = (e) => {
|
|
|
6616
6616
|
t_,
|
|
6617
6617
|
{
|
|
6618
6618
|
isMainProduct: !0,
|
|
6619
|
-
icon:
|
|
6620
|
-
iconColor:
|
|
6621
|
-
backgroundColors:
|
|
6619
|
+
icon: A.icon,
|
|
6620
|
+
iconColor: A.iconColor,
|
|
6621
|
+
backgroundColors: A.backgroundColors,
|
|
6622
6622
|
notificationCount: he
|
|
6623
6623
|
}
|
|
6624
6624
|
),
|
|
@@ -6628,7 +6628,7 @@ const $s = (e) => {
|
|
|
6628
6628
|
/* @__PURE__ */ a(ea, { id: h, children: /* @__PURE__ */ a(
|
|
6629
6629
|
"div",
|
|
6630
6630
|
E(k({
|
|
6631
|
-
ref:
|
|
6631
|
+
ref: $.setFloating,
|
|
6632
6632
|
style: x
|
|
6633
6633
|
}, I()), {
|
|
6634
6634
|
children: T && /* @__PURE__ */ f(
|
|
@@ -6655,9 +6655,9 @@ const $s = (e) => {
|
|
|
6655
6655
|
href: d,
|
|
6656
6656
|
target: "_blank",
|
|
6657
6657
|
className: ha[`${fa}__footer-link`],
|
|
6658
|
-
onClick: () =>
|
|
6658
|
+
onClick: () => w(!1),
|
|
6659
6659
|
children: [
|
|
6660
|
-
/* @__PURE__ */ a(
|
|
6660
|
+
/* @__PURE__ */ a(D, { noMargin: !0, children: "powered by" }),
|
|
6661
6661
|
/* @__PURE__ */ a(
|
|
6662
6662
|
P,
|
|
6663
6663
|
{
|
|
@@ -6893,7 +6893,7 @@ const $s = (e) => {
|
|
|
6893
6893
|
}, Ul = (e, t) => Ol.includes(e) || t.some(
|
|
6894
6894
|
(r) => r.product === Kr[e]
|
|
6895
6895
|
), Hl = (e, t, r, o, _, n) => {
|
|
6896
|
-
var l, d, c, s,
|
|
6896
|
+
var l, d, c, s, g;
|
|
6897
6897
|
const i = t.find(
|
|
6898
6898
|
(p) => p.product === Kr[e.id]
|
|
6899
6899
|
);
|
|
@@ -6901,7 +6901,7 @@ const $s = (e) => {
|
|
|
6901
6901
|
throw new Error(`Product data for ${e.id} not found`);
|
|
6902
6902
|
return E(k({}, e), {
|
|
6903
6903
|
trialDaysLeft: r[e.id] && ((l = r[e.id]) == null ? void 0 : l.status) === "trial" && ((d = r[e.id]) != null && d.next_charge_at) ? Gl((s = (c = r[e.id]) == null ? void 0 : c.next_charge_at) != null ? s : "") : void 0,
|
|
6904
|
-
expired: ((
|
|
6904
|
+
expired: ((g = r[e.id]) == null ? void 0 : g.status) === "expired",
|
|
6905
6905
|
url: Ll(
|
|
6906
6906
|
i.clientId,
|
|
6907
6907
|
i.redirectUri,
|
|
@@ -6926,7 +6926,7 @@ const $s = (e) => {
|
|
|
6926
6926
|
(_) => _.product === Kr[t]
|
|
6927
6927
|
);
|
|
6928
6928
|
return o == null ? void 0 : o.redirectUri.replace("https://", "");
|
|
6929
|
-
},
|
|
6929
|
+
}, Hs = ({
|
|
6930
6930
|
env: e = "prod",
|
|
6931
6931
|
installedProducts: t,
|
|
6932
6932
|
subscriptions: r,
|
|
@@ -6974,7 +6974,7 @@ const ba = {
|
|
|
6974
6974
|
small: 15,
|
|
6975
6975
|
medium: 36,
|
|
6976
6976
|
large: 56
|
|
6977
|
-
}, va = "progress-circle", Yl =
|
|
6977
|
+
}, va = "progress-circle", Yl = m.forwardRef(
|
|
6978
6978
|
(i, n) => {
|
|
6979
6979
|
var l = i, {
|
|
6980
6980
|
status: e = "normal",
|
|
@@ -6987,7 +6987,7 @@ const ba = {
|
|
|
6987
6987
|
"className",
|
|
6988
6988
|
"size"
|
|
6989
6989
|
]);
|
|
6990
|
-
const d = o_(e, t), c = Wl[o], s = Kl[o],
|
|
6990
|
+
const d = o_(e, t), c = Wl[o], s = Kl[o], g = u(
|
|
6991
6991
|
ba[va],
|
|
6992
6992
|
{
|
|
6993
6993
|
[ba[`${va}--${o}`]]: o,
|
|
@@ -7001,7 +7001,7 @@ const ba = {
|
|
|
7001
7001
|
return /* @__PURE__ */ a(
|
|
7002
7002
|
"div",
|
|
7003
7003
|
E(k({
|
|
7004
|
-
className:
|
|
7004
|
+
className: g,
|
|
7005
7005
|
ref: n,
|
|
7006
7006
|
role: "progressbar"
|
|
7007
7007
|
}, _), {
|
|
@@ -7043,7 +7043,7 @@ const ba = {
|
|
|
7043
7043
|
"progress-bar--normal": "lc-ProgressBar-module__progress-bar--normal___WboRI",
|
|
7044
7044
|
"progress-bar__indicator--success": "lc-ProgressBar-module__progress-bar__indicator--success___MHAlN",
|
|
7045
7045
|
"progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___sjEAI"
|
|
7046
|
-
},
|
|
7046
|
+
}, qa = "progress-bar", Xl = m.forwardRef(
|
|
7047
7047
|
(i, n) => {
|
|
7048
7048
|
var l = i, {
|
|
7049
7049
|
status: e = "normal",
|
|
@@ -7057,10 +7057,10 @@ const ba = {
|
|
|
7057
7057
|
"className"
|
|
7058
7058
|
]);
|
|
7059
7059
|
const d = o_(e, t), c = u(
|
|
7060
|
-
Za[
|
|
7060
|
+
Za[qa],
|
|
7061
7061
|
{
|
|
7062
|
-
[Za[`${
|
|
7063
|
-
[Za[`${
|
|
7062
|
+
[Za[`${qa}--${r}`]]: r,
|
|
7063
|
+
[Za[`${qa}--${e}`]]: e
|
|
7064
7064
|
},
|
|
7065
7065
|
o
|
|
7066
7066
|
);
|
|
@@ -7074,7 +7074,7 @@ const ba = {
|
|
|
7074
7074
|
"div",
|
|
7075
7075
|
{
|
|
7076
7076
|
"data-testid": "progress-bar-indicator",
|
|
7077
|
-
className: Za[`${
|
|
7077
|
+
className: Za[`${qa}__indicator--${e}`],
|
|
7078
7078
|
style: { width: `${d}%` }
|
|
7079
7079
|
}
|
|
7080
7080
|
)
|
|
@@ -7093,7 +7093,7 @@ const ba = {
|
|
|
7093
7093
|
"promo-banner--small": "lc-PromoBanner-module__promo-banner--small___8dqnJ",
|
|
7094
7094
|
"promo-banner--large": "lc-PromoBanner-module__promo-banner--large___GDbja",
|
|
7095
7095
|
"promo-banner__close-icon": "lc-PromoBanner-module__promo-banner__close-icon___rt1kN"
|
|
7096
|
-
}, Zl = 400,
|
|
7096
|
+
}, Zl = 400, ql = 800, jl = 500, Ve = "promo-banner", zs = ({
|
|
7097
7097
|
className: e,
|
|
7098
7098
|
buttonText: t,
|
|
7099
7099
|
children: r,
|
|
@@ -7105,19 +7105,19 @@ const ba = {
|
|
|
7105
7105
|
onClose: d,
|
|
7106
7106
|
onLinkClick: c
|
|
7107
7107
|
}) => {
|
|
7108
|
-
const s =
|
|
7108
|
+
const s = m.useRef(null), [g, p] = m.useState("medium"), v = u(
|
|
7109
7109
|
ze[Ve],
|
|
7110
7110
|
{
|
|
7111
7111
|
[ze[`${Ve}--light`]]: n,
|
|
7112
|
-
[ze[`${Ve}--small`]]:
|
|
7113
|
-
[ze[`${Ve}--large`]]:
|
|
7112
|
+
[ze[`${Ve}--small`]]: g === "small",
|
|
7113
|
+
[ze[`${Ve}--large`]]: g === "large"
|
|
7114
7114
|
},
|
|
7115
7115
|
e
|
|
7116
7116
|
);
|
|
7117
|
-
|
|
7118
|
-
const b = () => s.current && s.current.offsetWidth <= Zl ? p("small") : s.current && s.current.offsetWidth >=
|
|
7117
|
+
m.useEffect(() => {
|
|
7118
|
+
const b = () => s.current && s.current.offsetWidth <= Zl ? p("small") : s.current && s.current.offsetWidth >= ql ? p("large") : p("medium"), C = Ao(
|
|
7119
7119
|
b,
|
|
7120
|
-
|
|
7120
|
+
jl
|
|
7121
7121
|
);
|
|
7122
7122
|
return window.addEventListener("resize", C), b(), () => {
|
|
7123
7123
|
C.cancel(), window.removeEventListener("resize", C);
|
|
@@ -7125,7 +7125,7 @@ const ba = {
|
|
|
7125
7125
|
}, []);
|
|
7126
7126
|
const h = /* @__PURE__ */ f("div", { className: ze[`${Ve}__footer`], children: [
|
|
7127
7127
|
t && /* @__PURE__ */ a(
|
|
7128
|
-
|
|
7128
|
+
q,
|
|
7129
7129
|
{
|
|
7130
7130
|
kind: "primary",
|
|
7131
7131
|
size: "compact",
|
|
@@ -7134,17 +7134,17 @@ const ba = {
|
|
|
7134
7134
|
children: t
|
|
7135
7135
|
}
|
|
7136
7136
|
),
|
|
7137
|
-
i && /* @__PURE__ */ a(
|
|
7137
|
+
i && /* @__PURE__ */ a(q, { size: "compact", kind: "text", onClick: c, children: i })
|
|
7138
7138
|
] });
|
|
7139
7139
|
return /* @__PURE__ */ f("div", { ref: s, className: v, children: [
|
|
7140
7140
|
/* @__PURE__ */ f("div", { className: ze[`${Ve}__content`], children: [
|
|
7141
7141
|
_ && /* @__PURE__ */ a("img", { src: _, className: ze[`${Ve}__img`] }),
|
|
7142
7142
|
/* @__PURE__ */ f("div", { className: ze[`${Ve}__wrapper`], children: [
|
|
7143
7143
|
/* @__PURE__ */ a("div", { className: ze[`${Ve}__header`], children: o }),
|
|
7144
|
-
/* @__PURE__ */ a(
|
|
7145
|
-
|
|
7144
|
+
/* @__PURE__ */ a(D, { as: "div", children: r }),
|
|
7145
|
+
g !== "large" && h
|
|
7146
7146
|
] }),
|
|
7147
|
-
|
|
7147
|
+
g === "large" && h
|
|
7148
7148
|
] }),
|
|
7149
7149
|
d && /* @__PURE__ */ a(
|
|
7150
7150
|
"button",
|
|
@@ -7167,7 +7167,7 @@ const ba = {
|
|
|
7167
7167
|
"promo-banner-v2__close__btn": "lc-PromoBannerV2-module__promo-banner-v2__close__btn___23Qui",
|
|
7168
7168
|
"promo-banner-v2--dark": "lc-PromoBannerV2-module__promo-banner-v2--dark___pmXpS",
|
|
7169
7169
|
"promo-banner-v2--vertical": "lc-PromoBannerV2-module__promo-banner-v2--vertical___hXlPD"
|
|
7170
|
-
}, vt = "promo-banner-v2",
|
|
7170
|
+
}, vt = "promo-banner-v2", Vs = ({
|
|
7171
7171
|
children: e,
|
|
7172
7172
|
className: t,
|
|
7173
7173
|
additionalContent: r,
|
|
@@ -7202,7 +7202,7 @@ const ba = {
|
|
|
7202
7202
|
e,
|
|
7203
7203
|
(o || _) && /* @__PURE__ */ f("div", { className: ot[`${vt}__content__cta`], children: [
|
|
7204
7204
|
o && /* @__PURE__ */ a(
|
|
7205
|
-
|
|
7205
|
+
q,
|
|
7206
7206
|
{
|
|
7207
7207
|
kind: (o == null ? void 0 : o.kind) || "high-contrast",
|
|
7208
7208
|
onClick: o.handleClick,
|
|
@@ -7210,7 +7210,7 @@ const ba = {
|
|
|
7210
7210
|
}
|
|
7211
7211
|
),
|
|
7212
7212
|
_ && /* @__PURE__ */ a(
|
|
7213
|
-
|
|
7213
|
+
q,
|
|
7214
7214
|
{
|
|
7215
7215
|
kind: (_ == null ? void 0 : _.kind) || "text",
|
|
7216
7216
|
onClick: _.handleClick,
|
|
@@ -7234,7 +7234,7 @@ const ba = {
|
|
|
7234
7234
|
}
|
|
7235
7235
|
),
|
|
7236
7236
|
d && /* @__PURE__ */ a("div", { className: ot[`${vt}__close`], children: /* @__PURE__ */ a(
|
|
7237
|
-
|
|
7237
|
+
q,
|
|
7238
7238
|
{
|
|
7239
7239
|
className: ot[`${vt}__close__btn`],
|
|
7240
7240
|
onClick: d,
|
|
@@ -7256,7 +7256,7 @@ const ba = {
|
|
|
7256
7256
|
"radio-button__helper": "lc-RadioButton-module__radio-button__helper___X4Ihv",
|
|
7257
7257
|
"radio-button--selected": "lc-RadioButton-module__radio-button--selected___00LlN",
|
|
7258
7258
|
"radio-button--disabled": "lc-RadioButton-module__radio-button--disabled___StpOi"
|
|
7259
|
-
}, yt = "radio-button",
|
|
7259
|
+
}, yt = "radio-button", Ws = m.forwardRef(
|
|
7260
7260
|
(l, i) => {
|
|
7261
7261
|
var d = l, { children: e, className: t = "", description: r, checked: o, disabled: _ } = d, n = F(d, ["children", "className", "description", "checked", "disabled"]);
|
|
7262
7262
|
const c = u(kt[yt], t, {
|
|
@@ -7278,133 +7278,149 @@ const ba = {
|
|
|
7278
7278
|
})
|
|
7279
7279
|
)
|
|
7280
7280
|
] }),
|
|
7281
|
-
e && /* @__PURE__ */ a(
|
|
7281
|
+
e && /* @__PURE__ */ a(D, { as: "div", size: "md", className: kt[`${yt}__text`], children: e })
|
|
7282
7282
|
] }),
|
|
7283
7283
|
r && /* @__PURE__ */ a(lr, { className: kt[`${yt}__helper`], children: r })
|
|
7284
7284
|
] });
|
|
7285
7285
|
}
|
|
7286
7286
|
), We = {
|
|
7287
|
-
"search-input": "lc-
|
|
7288
|
-
"search-input--compact": "lc-
|
|
7289
|
-
"search-input--medium": "lc-
|
|
7290
|
-
"search-input--large": "lc-
|
|
7291
|
-
"search-input--focused": "lc-
|
|
7292
|
-
"search-input--disabled": "lc-
|
|
7293
|
-
"search-input--collapsable": "lc-
|
|
7294
|
-
"search-input__search-icon": "lc-
|
|
7295
|
-
"search-input--collapsable--open": "lc-
|
|
7296
|
-
"search-input__clear-icon": "lc-
|
|
7297
|
-
"search-input__loader": "lc-
|
|
7298
|
-
"search-input__input-wrapper": "lc-
|
|
7299
|
-
"search-input__input-wrapper--crop": "lc-
|
|
7300
|
-
}, _t = "search-input", No = `${_t}__input-wrapper`,
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
{
|
|
7341
|
-
"
|
|
7342
|
-
|
|
7343
|
-
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7348
|
-
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7287
|
+
"search-input": "lc-SearchInput-module__search-input___3J4w9",
|
|
7288
|
+
"search-input--compact": "lc-SearchInput-module__search-input--compact___4hBLm",
|
|
7289
|
+
"search-input--medium": "lc-SearchInput-module__search-input--medium___c3OEc",
|
|
7290
|
+
"search-input--large": "lc-SearchInput-module__search-input--large___RcwfK",
|
|
7291
|
+
"search-input--focused": "lc-SearchInput-module__search-input--focused___XvA05",
|
|
7292
|
+
"search-input--disabled": "lc-SearchInput-module__search-input--disabled___m1suy",
|
|
7293
|
+
"search-input--collapsable": "lc-SearchInput-module__search-input--collapsable___LgOIB",
|
|
7294
|
+
"search-input__search-icon": "lc-SearchInput-module__search-input__search-icon___KYne6",
|
|
7295
|
+
"search-input--collapsable--open": "lc-SearchInput-module__search-input--collapsable--open___a3kOq",
|
|
7296
|
+
"search-input__clear-icon": "lc-SearchInput-module__search-input__clear-icon___PgKgA",
|
|
7297
|
+
"search-input__loader": "lc-SearchInput-module__search-input__loader___9veIC",
|
|
7298
|
+
"search-input__input-wrapper": "lc-SearchInput-module__search-input__input-wrapper___9NT39",
|
|
7299
|
+
"search-input__input-wrapper--crop": "lc-SearchInput-module__search-input__input-wrapper--crop___JA7J1"
|
|
7300
|
+
}, _t = "search-input", No = `${_t}__input-wrapper`, Ql = m.forwardRef(
|
|
7301
|
+
(g, s) => {
|
|
7302
|
+
var p = g, {
|
|
7303
|
+
isCollapsable: e,
|
|
7304
|
+
isDisabled: t,
|
|
7305
|
+
isLoading: r,
|
|
7306
|
+
placeholder: o = "Search ...",
|
|
7307
|
+
size: _ = "medium",
|
|
7308
|
+
value: n,
|
|
7309
|
+
className: i,
|
|
7310
|
+
cropOnBlur: l = !0,
|
|
7311
|
+
onChange: d
|
|
7312
|
+
} = p, c = F(p, [
|
|
7313
|
+
"isCollapsable",
|
|
7314
|
+
"isDisabled",
|
|
7315
|
+
"isLoading",
|
|
7316
|
+
"placeholder",
|
|
7317
|
+
"size",
|
|
7318
|
+
"value",
|
|
7319
|
+
"className",
|
|
7320
|
+
"cropOnBlur",
|
|
7321
|
+
"onChange"
|
|
7322
|
+
]);
|
|
7323
|
+
const v = m.useRef(null);
|
|
7324
|
+
m.useImperativeHandle(s, () => v.current, [s]);
|
|
7325
|
+
const [h, b] = m.useState(!0), [C, w] = m.useState(!1), $ = !!n && !t && !r, S = e && !h && "true", x = u(
|
|
7326
|
+
i,
|
|
7327
|
+
We[_t],
|
|
7328
|
+
We[`${_t}--${_}`],
|
|
7329
|
+
C && We[`${_t}--focused`],
|
|
7330
|
+
t && We[`${_t}--disabled`],
|
|
7331
|
+
e && We[`${_t}--collapsable`],
|
|
7332
|
+
!h && We[`${_t}--collapsable--open`]
|
|
7333
|
+
);
|
|
7334
|
+
m.useEffect(() => {
|
|
7335
|
+
e && n && b(!1);
|
|
7336
|
+
}, [e, n]);
|
|
7337
|
+
const B = (I) => {
|
|
7338
|
+
const A = I.currentTarget.value;
|
|
7339
|
+
d(A);
|
|
7340
|
+
}, y = () => {
|
|
7341
|
+
d("");
|
|
7342
|
+
}, N = () => {
|
|
7343
|
+
v.current && v.current.focus();
|
|
7344
|
+
}, T = () => {
|
|
7345
|
+
e && b(!1), w(!0);
|
|
7346
|
+
}, R = () => {
|
|
7347
|
+
e && !n && b(!0), w(!1);
|
|
7348
|
+
}, G = (I) => {
|
|
7349
|
+
I.key === ke.enter && (I.preventDefault(), d(n));
|
|
7350
|
+
};
|
|
7351
|
+
return /* @__PURE__ */ f(
|
|
7352
|
+
"div",
|
|
7353
|
+
{
|
|
7354
|
+
"aria-expanded": S,
|
|
7355
|
+
role: "search",
|
|
7356
|
+
className: x,
|
|
7357
|
+
onClick: N,
|
|
7358
|
+
children: [
|
|
7359
|
+
/* @__PURE__ */ a(
|
|
7360
|
+
P,
|
|
7361
|
+
{
|
|
7362
|
+
className: We[`${_t}__search-icon`],
|
|
7363
|
+
source: T_,
|
|
7364
|
+
disabled: t,
|
|
7365
|
+
kind: "primary"
|
|
7366
|
+
}
|
|
7367
|
+
),
|
|
7368
|
+
/* @__PURE__ */ a(
|
|
7369
|
+
D,
|
|
7370
|
+
{
|
|
7371
|
+
as: "div",
|
|
7372
|
+
className: u(
|
|
7373
|
+
We[No],
|
|
7374
|
+
l && We[`${No}--crop`]
|
|
7375
|
+
),
|
|
7376
|
+
children: /* @__PURE__ */ a(
|
|
7377
|
+
"input",
|
|
7378
|
+
k({
|
|
7379
|
+
role: "searchbox",
|
|
7380
|
+
ref: v,
|
|
7381
|
+
type: "text",
|
|
7382
|
+
value: n,
|
|
7383
|
+
placeholder: o,
|
|
7384
|
+
onChange: B,
|
|
7385
|
+
onBlur: R,
|
|
7386
|
+
onFocus: T,
|
|
7387
|
+
onKeyDown: G,
|
|
7388
|
+
disabled: t
|
|
7389
|
+
}, c)
|
|
7390
|
+
)
|
|
7391
|
+
}
|
|
7392
|
+
),
|
|
7393
|
+
$ && /* @__PURE__ */ a(
|
|
7394
|
+
q,
|
|
7395
|
+
{
|
|
7396
|
+
"aria-label": "Clear search",
|
|
7397
|
+
title: "Clear search",
|
|
7398
|
+
className: We[`${_t}__clear-icon`],
|
|
7399
|
+
onClick: y,
|
|
7400
|
+
icon: /* @__PURE__ */ a(P, { source: Re, kind: "primary" }),
|
|
7401
|
+
kind: "text",
|
|
7402
|
+
size: "compact"
|
|
7403
|
+
}
|
|
7404
|
+
),
|
|
7405
|
+
r && /* @__PURE__ */ a("div", { className: We[`${_t}__loader`], children: /* @__PURE__ */ a(Vr, { size: "small" }) })
|
|
7406
|
+
]
|
|
7407
|
+
}
|
|
7408
|
+
);
|
|
7409
|
+
}
|
|
7410
|
+
);
|
|
7411
|
+
Ql.displayName = "SearchInput";
|
|
7412
|
+
const Jl = "lc-Skeleton-module__loading___fc1WK", Ot = {
|
|
7397
7413
|
"skeleton-wrapper": "lc-Skeleton-module__skeleton-wrapper___5N-1n",
|
|
7398
7414
|
"skeleton-wrapper--vertical": "lc-Skeleton-module__skeleton-wrapper--vertical___0sU7e",
|
|
7399
7415
|
"skeleton-avatar": "lc-Skeleton-module__skeleton-avatar___7-CDQ",
|
|
7400
7416
|
"skeleton-avatar--square": "lc-Skeleton-module__skeleton-avatar--square___NlK0K",
|
|
7401
7417
|
"skeleton-avatar--animated": "lc-Skeleton-module__skeleton-avatar--animated___iFXkb",
|
|
7402
|
-
loading:
|
|
7418
|
+
loading: Jl,
|
|
7403
7419
|
"skeleton-text": "lc-Skeleton-module__skeleton-text___WnwUw",
|
|
7404
7420
|
"skeleton-text--animated": "lc-Skeleton-module__skeleton-text--animated___Bnr3Z"
|
|
7405
7421
|
}, xo = "skeleton-wrapper", Ks = (_) => {
|
|
7406
7422
|
var n = _, { children: e, vertical: t, animated: r } = n, o = F(n, ["children", "vertical", "animated"]);
|
|
7407
|
-
const i =
|
|
7423
|
+
const i = m.Children.map(e, (l) => m.isValidElement(l) ? m.cloneElement(l, {
|
|
7408
7424
|
animated: r
|
|
7409
7425
|
}) : l);
|
|
7410
7426
|
return /* @__PURE__ */ a(
|
|
@@ -7479,7 +7495,7 @@ const ba = {
|
|
|
7479
7495
|
e
|
|
7480
7496
|
);
|
|
7481
7497
|
return /* @__PURE__ */ a("span", k({ className: i }, o));
|
|
7482
|
-
},
|
|
7498
|
+
}, ec = "lc-Switch-module__switch__input___-bYMW", tc = "lc-Switch-module__switch__container___dYb8a", ac = "lc-Switch-module__switch__track___3lNXx", rc = "lc-Switch-module__switch__slider___NmDHK", oc = "lc-Switch-module__switch__loader___Pbo1Q", _c = "lc-Switch-module__switch__icon___tCZTq", ie = {
|
|
7483
7499
|
switch: "lc-Switch-module__switch___PKzsW",
|
|
7484
7500
|
"switch__track--enabled": "lc-Switch-module__switch__track--enabled___Dwbmx",
|
|
7485
7501
|
"switch__track--on": "lc-Switch-module__switch__track--on___7vdEj",
|
|
@@ -7488,13 +7504,13 @@ const ba = {
|
|
|
7488
7504
|
"switch--compact": "lc-Switch-module__switch--compact___T4bhh",
|
|
7489
7505
|
"switch--medium": "lc-Switch-module__switch--medium___uruMu",
|
|
7490
7506
|
"switch--focused": "lc-Switch-module__switch--focused___XADLL",
|
|
7491
|
-
switch__input:
|
|
7507
|
+
switch__input: ec,
|
|
7492
7508
|
"switch__input--disabled": "lc-Switch-module__switch__input--disabled___c1vVD",
|
|
7493
|
-
switch__container:
|
|
7494
|
-
switch__track:
|
|
7509
|
+
switch__container: tc,
|
|
7510
|
+
switch__track: ac,
|
|
7495
7511
|
"switch__container--focused": "lc-Switch-module__switch__container--focused___120ao",
|
|
7496
7512
|
"switch__track--disabled": "lc-Switch-module__switch__track--disabled___pz3md",
|
|
7497
|
-
switch__slider:
|
|
7513
|
+
switch__slider: rc,
|
|
7498
7514
|
"switch__slider--large": "lc-Switch-module__switch__slider--large___0-Vky",
|
|
7499
7515
|
"switch__slider--large--on": "lc-Switch-module__switch__slider--large--on___HXudz",
|
|
7500
7516
|
"switch__slider--large--off": "lc-Switch-module__switch__slider--large--off___zPuP6",
|
|
@@ -7505,13 +7521,13 @@ const ba = {
|
|
|
7505
7521
|
"switch__slider--medium--on": "lc-Switch-module__switch__slider--medium--on___WNNGh",
|
|
7506
7522
|
"switch__slider--medium--off": "lc-Switch-module__switch__slider--medium--off___pkbCl",
|
|
7507
7523
|
"switch__slider--disabled": "lc-Switch-module__switch__slider--disabled___6rrSU",
|
|
7508
|
-
switch__loader:
|
|
7524
|
+
switch__loader: oc,
|
|
7509
7525
|
"switch__loader--compact": "lc-Switch-module__switch__loader--compact___jKLak",
|
|
7510
7526
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___XpfaO",
|
|
7511
7527
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___NDgeg",
|
|
7512
|
-
switch__icon:
|
|
7513
|
-
}, _e = "switch",
|
|
7514
|
-
var p =
|
|
7528
|
+
switch__icon: _c
|
|
7529
|
+
}, _e = "switch", qs = (g) => {
|
|
7530
|
+
var p = g, {
|
|
7515
7531
|
className: e = "",
|
|
7516
7532
|
defaultOn: t = !1,
|
|
7517
7533
|
disabled: r = !1,
|
|
@@ -7534,9 +7550,9 @@ const ba = {
|
|
|
7534
7550
|
"innerRef",
|
|
7535
7551
|
"ariaLabel"
|
|
7536
7552
|
]);
|
|
7537
|
-
const v = _ !== void 0, [h, b] =
|
|
7553
|
+
const v = _ !== void 0, [h, b] = m.useState(
|
|
7538
7554
|
() => v ? _ : t
|
|
7539
|
-
), [C,
|
|
7555
|
+
), [C, w] = m.useState(!1), $ = v ? _ : h, S = l === "loading", x = l === "locked", B = i === "large" ? "small" : "xsmall", y = $ ? "on" : "off", N = r || S || x, T = N ? "disabled" : "enabled", R = u(
|
|
7540
7556
|
ie[_e],
|
|
7541
7557
|
ie[`${_e}--${i}`],
|
|
7542
7558
|
{
|
|
@@ -7544,7 +7560,7 @@ const ba = {
|
|
|
7544
7560
|
},
|
|
7545
7561
|
e
|
|
7546
7562
|
), G = (I) => {
|
|
7547
|
-
n == null || n(I,
|
|
7563
|
+
n == null || n(I, !$), v || (I.stopPropagation(), b((A) => !A));
|
|
7548
7564
|
};
|
|
7549
7565
|
return /* @__PURE__ */ f("span", { className: R, children: [
|
|
7550
7566
|
/* @__PURE__ */ a(
|
|
@@ -7556,14 +7572,14 @@ const ba = {
|
|
|
7556
7572
|
ie[`${_e}__input--${T}`]
|
|
7557
7573
|
),
|
|
7558
7574
|
onChange: G,
|
|
7559
|
-
checked:
|
|
7575
|
+
checked: $,
|
|
7560
7576
|
name: o,
|
|
7561
7577
|
ref: d,
|
|
7562
|
-
disabled:
|
|
7578
|
+
disabled: N,
|
|
7563
7579
|
"aria-label": c
|
|
7564
7580
|
}, s), {
|
|
7565
|
-
onFocus: () =>
|
|
7566
|
-
onBlur: () =>
|
|
7581
|
+
onFocus: () => w(!0),
|
|
7582
|
+
onBlur: () => w(!1)
|
|
7567
7583
|
})
|
|
7568
7584
|
),
|
|
7569
7585
|
/* @__PURE__ */ f(
|
|
@@ -7620,17 +7636,17 @@ const ba = {
|
|
|
7620
7636
|
}
|
|
7621
7637
|
)
|
|
7622
7638
|
] });
|
|
7623
|
-
},
|
|
7624
|
-
tab:
|
|
7625
|
-
tab__count:
|
|
7639
|
+
}, nc = "lc-Tab-module__tab___ShyYn", ic = "lc-Tab-module__tab__count___7QKoz", lc = "lc-Tab-module__tab__icon___eCD-d", cc = "lc-Tab-module__tab__badge___nwfVJ", Rt = {
|
|
7640
|
+
tab: nc,
|
|
7641
|
+
tab__count: ic,
|
|
7626
7642
|
"tab--compact": "lc-Tab-module__tab--compact___yetP5",
|
|
7627
7643
|
"tab--medium": "lc-Tab-module__tab--medium___KhPsI",
|
|
7628
7644
|
"tab--large": "lc-Tab-module__tab--large___3GE8k",
|
|
7629
|
-
tab__icon:
|
|
7630
|
-
tab__badge:
|
|
7645
|
+
tab__icon: lc,
|
|
7646
|
+
tab__badge: cc,
|
|
7631
7647
|
"tab--selected": "lc-Tab-module__tab--selected___vsPhT",
|
|
7632
7648
|
"tab--disabled": "lc-Tab-module__tab--disabled___JPMHC"
|
|
7633
|
-
}, Mt = "tab",
|
|
7649
|
+
}, Mt = "tab", js = (d) => {
|
|
7634
7650
|
var c = d, {
|
|
7635
7651
|
children: e,
|
|
7636
7652
|
className: t,
|
|
@@ -7648,9 +7664,9 @@ const ba = {
|
|
|
7648
7664
|
"size",
|
|
7649
7665
|
"icon"
|
|
7650
7666
|
]);
|
|
7651
|
-
const { disabled: s } = l,
|
|
7667
|
+
const { disabled: s } = l, g = r !== void 0 && !_, p = r !== void 0 && _;
|
|
7652
7668
|
return /* @__PURE__ */ f(
|
|
7653
|
-
|
|
7669
|
+
D,
|
|
7654
7670
|
E(k({}, l), {
|
|
7655
7671
|
as: l.href ? "a" : "button",
|
|
7656
7672
|
"aria-selected": o,
|
|
@@ -7666,7 +7682,7 @@ const ba = {
|
|
|
7666
7682
|
children: [
|
|
7667
7683
|
i && /* @__PURE__ */ a("div", { "data-testId": "icon", className: Rt[`${Mt}__icon`], children: i }),
|
|
7668
7684
|
e,
|
|
7669
|
-
|
|
7685
|
+
g && /* @__PURE__ */ f(D, { as: "span", size: "md", className: Rt[`${Mt}__count`], children: [
|
|
7670
7686
|
"(",
|
|
7671
7687
|
r,
|
|
7672
7688
|
")"
|
|
@@ -7683,9 +7699,9 @@ const ba = {
|
|
|
7683
7699
|
]
|
|
7684
7700
|
})
|
|
7685
7701
|
);
|
|
7686
|
-
},
|
|
7687
|
-
tabs:
|
|
7688
|
-
tabs__list:
|
|
7702
|
+
}, sc = "lc-TabsWrapper-module__tabs___rJby-", dc = "lc-TabsWrapper-module__tabs__list___ylJuP", __ = {
|
|
7703
|
+
tabs: sc,
|
|
7704
|
+
tabs__list: dc
|
|
7689
7705
|
}, n_ = "tabs", Qs = ({ className: e, children: t }) => /* @__PURE__ */ a("div", { className: u(__[n_], e), children: t }), Js = ({ className: e, children: t }) => /* @__PURE__ */ a("div", { role: "tablist", className: u(__[`${n_}__list`], e), children: t }), Ca = {
|
|
7690
7706
|
"tag-input": "lc-TagInput-module__tag-input___zQKuG",
|
|
7691
7707
|
"tag-input--error": "lc-TagInput-module__tag-input--error___0iuR-",
|
|
@@ -7693,7 +7709,7 @@ const ba = {
|
|
|
7693
7709
|
"tag-input__input--medium": "lc-TagInput-module__tag-input__input--medium___9ifYO",
|
|
7694
7710
|
"tag-input__input--large": "lc-TagInput-module__tag-input__input--large___0xBUb",
|
|
7695
7711
|
"tag-input__tag__content": "lc-TagInput-module__tag-input__tag__content___glcu0"
|
|
7696
|
-
},
|
|
7712
|
+
}, uc = ({
|
|
7697
7713
|
className: e = "",
|
|
7698
7714
|
innerEditableRef: t,
|
|
7699
7715
|
inputRef: r,
|
|
@@ -7701,7 +7717,7 @@ const ba = {
|
|
|
7701
7717
|
remove: _,
|
|
7702
7718
|
value: n
|
|
7703
7719
|
}) => {
|
|
7704
|
-
const [i, l] =
|
|
7720
|
+
const [i, l] = m.useState(!1), d = () => t.current, c = () => {
|
|
7705
7721
|
const h = d();
|
|
7706
7722
|
return h ? h.innerText : "";
|
|
7707
7723
|
}, s = () => {
|
|
@@ -7738,7 +7754,7 @@ const ba = {
|
|
|
7738
7754
|
dangerouslySetInnerHTML: { __html: Jr(n) }
|
|
7739
7755
|
}
|
|
7740
7756
|
);
|
|
7741
|
-
},
|
|
7757
|
+
}, mc = "tag-input__tag", Bo = ({
|
|
7742
7758
|
children: e,
|
|
7743
7759
|
index: t,
|
|
7744
7760
|
remove: r,
|
|
@@ -7748,26 +7764,26 @@ const ba = {
|
|
|
7748
7764
|
size: i,
|
|
7749
7765
|
tagProps: l
|
|
7750
7766
|
}) => {
|
|
7751
|
-
const d =
|
|
7752
|
-
return /* @__PURE__ */ a(Zo, E(k({ size: i }, l), { kind:
|
|
7753
|
-
|
|
7767
|
+
const d = m.useMemo(() => o !== void 0 ? o(e) : !0, [e, o]), c = m.useRef(null), s = () => r(t), g = () => d ? l ? l.kind : "default" : "error";
|
|
7768
|
+
return /* @__PURE__ */ a(Zo, E(k({ size: i }, l), { kind: g(), onRemove: s, children: /* @__PURE__ */ a(
|
|
7769
|
+
uc,
|
|
7754
7770
|
{
|
|
7755
7771
|
value: e,
|
|
7756
7772
|
inputRef: _,
|
|
7757
7773
|
innerEditableRef: c,
|
|
7758
|
-
className: Ca[`${
|
|
7774
|
+
className: Ca[`${mc}__content`],
|
|
7759
7775
|
change: (p) => n(t, p),
|
|
7760
7776
|
remove: s,
|
|
7761
7777
|
validator: o
|
|
7762
7778
|
}
|
|
7763
7779
|
) }));
|
|
7764
|
-
},
|
|
7780
|
+
}, ja = "tag-input", pc = [
|
|
7765
7781
|
ke.enter,
|
|
7766
7782
|
ke.spacebar,
|
|
7767
7783
|
ke.tab,
|
|
7768
7784
|
ke.semicolon,
|
|
7769
7785
|
ke.comma
|
|
7770
|
-
],
|
|
7786
|
+
], gc = [ke.backspace, ke.delete], hc = (p) => {
|
|
7771
7787
|
var v = p, {
|
|
7772
7788
|
id: e,
|
|
7773
7789
|
tags: t,
|
|
@@ -7780,7 +7796,7 @@ const ba = {
|
|
|
7780
7796
|
inputClassName: d,
|
|
7781
7797
|
onBlur: c,
|
|
7782
7798
|
addOnBlur: s = !0
|
|
7783
|
-
} = v,
|
|
7799
|
+
} = v, g = F(v, [
|
|
7784
7800
|
"id",
|
|
7785
7801
|
"tags",
|
|
7786
7802
|
"onChange",
|
|
@@ -7794,100 +7810,100 @@ const ba = {
|
|
|
7794
7810
|
"addOnBlur"
|
|
7795
7811
|
]);
|
|
7796
7812
|
const h = u(
|
|
7797
|
-
Ca[
|
|
7813
|
+
Ca[ja],
|
|
7798
7814
|
{
|
|
7799
|
-
[Ca[`${
|
|
7815
|
+
[Ca[`${ja}--error`]]: _
|
|
7800
7816
|
},
|
|
7801
7817
|
l
|
|
7802
7818
|
), b = u(
|
|
7803
7819
|
d,
|
|
7804
|
-
Ca[`${
|
|
7805
|
-
Ca[`${
|
|
7806
|
-
), [C,
|
|
7807
|
-
I.trim() !== "" && (r([...t || [], I]),
|
|
7820
|
+
Ca[`${ja}__input`],
|
|
7821
|
+
Ca[`${ja}__input--${i}`]
|
|
7822
|
+
), [C, w] = m.useState(""), $ = m.useRef(null), S = (I) => {
|
|
7823
|
+
I.trim() !== "" && (r([...t || [], I]), w(""));
|
|
7808
7824
|
}, x = (I) => {
|
|
7809
|
-
const
|
|
7810
|
-
|
|
7811
|
-
}, B = (I) =>
|
|
7812
|
-
if (
|
|
7825
|
+
const A = [...t || []];
|
|
7826
|
+
A.splice(I, 1), r(A);
|
|
7827
|
+
}, B = (I) => w(I.target.value), y = (I) => {
|
|
7828
|
+
if (pc.includes(I.key)) {
|
|
7813
7829
|
if (I.preventDefault(), C === "")
|
|
7814
7830
|
return;
|
|
7815
7831
|
S(C);
|
|
7816
|
-
} else if (
|
|
7832
|
+
} else if (gc.includes(I.key)) {
|
|
7817
7833
|
if (C !== "" || !(t != null && t.length))
|
|
7818
7834
|
return;
|
|
7819
7835
|
x(t.length - 1);
|
|
7820
7836
|
}
|
|
7821
|
-
},
|
|
7837
|
+
}, N = (I) => {
|
|
7822
7838
|
s && S(C), c == null || c(I);
|
|
7823
|
-
}, T = (I,
|
|
7839
|
+
}, T = (I, A) => {
|
|
7824
7840
|
const z = [...t || []];
|
|
7825
7841
|
z.reduce(
|
|
7826
|
-
(V, H, K) => V + (H ===
|
|
7842
|
+
(V, H, K) => V + (H === A && K !== I ? 1 : 0),
|
|
7827
7843
|
0
|
|
7828
|
-
) > 0 ? z.splice(I, 1) : z[I] =
|
|
7844
|
+
) > 0 ? z.splice(I, 1) : z[I] = A, r(z);
|
|
7829
7845
|
}, R = (I) => {
|
|
7830
7846
|
I.preventDefault();
|
|
7831
7847
|
const z = I.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
7832
7848
|
r([...t || [], ...z]);
|
|
7833
|
-
}, G = (I,
|
|
7849
|
+
}, G = (I, A) => typeof I == "string" ? /* @__PURE__ */ a(
|
|
7834
7850
|
Bo,
|
|
7835
7851
|
{
|
|
7836
|
-
index:
|
|
7852
|
+
index: A,
|
|
7837
7853
|
update: T,
|
|
7838
7854
|
remove: x,
|
|
7839
|
-
inputRef:
|
|
7855
|
+
inputRef: $,
|
|
7840
7856
|
validator: o,
|
|
7841
7857
|
size: i,
|
|
7842
7858
|
children: I
|
|
7843
7859
|
},
|
|
7844
|
-
`${
|
|
7860
|
+
`${A}${I}`
|
|
7845
7861
|
) : /* @__PURE__ */ a(
|
|
7846
7862
|
Bo,
|
|
7847
7863
|
{
|
|
7848
|
-
index:
|
|
7864
|
+
index: A,
|
|
7849
7865
|
update: T,
|
|
7850
7866
|
remove: x,
|
|
7851
|
-
inputRef:
|
|
7867
|
+
inputRef: $,
|
|
7852
7868
|
validator: o,
|
|
7853
7869
|
size: i,
|
|
7854
7870
|
tagProps: I,
|
|
7855
7871
|
children: I.value || I.children
|
|
7856
7872
|
},
|
|
7857
|
-
`${
|
|
7873
|
+
`${A}${I.children}`
|
|
7858
7874
|
);
|
|
7859
7875
|
return /* @__PURE__ */ f(ae, { children: [
|
|
7860
|
-
/* @__PURE__ */ f(
|
|
7876
|
+
/* @__PURE__ */ f(D, { as: "div", className: h, children: [
|
|
7861
7877
|
t == null ? void 0 : t.map(G),
|
|
7862
7878
|
/* @__PURE__ */ a(
|
|
7863
7879
|
"input",
|
|
7864
|
-
E(k({},
|
|
7880
|
+
E(k({}, g), {
|
|
7865
7881
|
id: e,
|
|
7866
|
-
ref:
|
|
7882
|
+
ref: $,
|
|
7867
7883
|
className: b,
|
|
7868
7884
|
placeholder: n,
|
|
7869
7885
|
value: C,
|
|
7870
7886
|
onChange: B,
|
|
7871
7887
|
onKeyDown: y,
|
|
7872
7888
|
onPaste: R,
|
|
7873
|
-
onBlur:
|
|
7889
|
+
onBlur: N
|
|
7874
7890
|
})
|
|
7875
7891
|
)
|
|
7876
7892
|
] }),
|
|
7877
7893
|
_ && /* @__PURE__ */ a(Wr, { children: _ })
|
|
7878
7894
|
] });
|
|
7879
|
-
},
|
|
7895
|
+
}, fc = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/i, bc = "name@company.com", vc = (e) => fc.test(e), ed = (r) => {
|
|
7880
7896
|
var o = r, {
|
|
7881
|
-
placeholder: e =
|
|
7897
|
+
placeholder: e = bc
|
|
7882
7898
|
} = o, t = F(o, [
|
|
7883
7899
|
"placeholder"
|
|
7884
7900
|
]);
|
|
7885
|
-
return /* @__PURE__ */ a(
|
|
7886
|
-
},
|
|
7887
|
-
toast:
|
|
7888
|
-
toast__content:
|
|
7889
|
-
toast__actions:
|
|
7890
|
-
toast__actions__button:
|
|
7901
|
+
return /* @__PURE__ */ a(hc, E(k({}, t), { placeholder: e, validator: vc }));
|
|
7902
|
+
}, kc = "lc-Toast-module__toast___ngbBR", yc = "lc-Toast-module__toast__content___XGt2m", Cc = "lc-Toast-module__toast__actions___iFshW", wc = "lc-Toast-module__toast__actions__button___sQIbQ", le = {
|
|
7903
|
+
toast: kc,
|
|
7904
|
+
toast__content: yc,
|
|
7905
|
+
toast__actions: Cc,
|
|
7906
|
+
toast__actions__button: wc,
|
|
7891
7907
|
"toast__actions__button--success": "lc-Toast-module__toast__actions__button--success___p53MR",
|
|
7892
7908
|
"toast__actions__button--warning": "lc-Toast-module__toast__actions__button--warning___fCMO5",
|
|
7893
7909
|
"toast__actions__button--error": "lc-Toast-module__toast__actions__button--error___hct1w",
|
|
@@ -7913,7 +7929,7 @@ const ba = {
|
|
|
7913
7929
|
"toast-appear-active--fade": "lc-Toast-module__toast-appear-active--fade___Z39eu",
|
|
7914
7930
|
"toast-exit--fade": "lc-Toast-module__toast-exit--fade___1t0Qp",
|
|
7915
7931
|
"toast-exit-active--fade": "lc-Toast-module__toast-exit-active--fade___UK5Kw"
|
|
7916
|
-
},
|
|
7932
|
+
}, $c = {
|
|
7917
7933
|
success: {
|
|
7918
7934
|
source: Mr
|
|
7919
7935
|
},
|
|
@@ -7926,7 +7942,7 @@ const ba = {
|
|
|
7926
7942
|
info: {
|
|
7927
7943
|
source: $a
|
|
7928
7944
|
}
|
|
7929
|
-
}, At = "toast",
|
|
7945
|
+
}, At = "toast", Nc = (l) => {
|
|
7930
7946
|
var d = l, {
|
|
7931
7947
|
action: e,
|
|
7932
7948
|
className: t,
|
|
@@ -7946,18 +7962,18 @@ const ba = {
|
|
|
7946
7962
|
le[At],
|
|
7947
7963
|
le[`${At}--${_}`],
|
|
7948
7964
|
t
|
|
7949
|
-
), s = typeof r == "string",
|
|
7965
|
+
), s = typeof r == "string", g = (p) => p && p.closesOnClick && n ? (p.onClick(), n()) : p.onClick();
|
|
7950
7966
|
return /* @__PURE__ */ f("div", E(k({ className: c }, i), { children: [
|
|
7951
|
-
/* @__PURE__ */ a("div", { className: le[`${At}__icon`], children: /* @__PURE__ */ a(P, E(k({},
|
|
7952
|
-
/* @__PURE__ */ a("div", { className: le[`${At}__content`], children: s ? /* @__PURE__ */ a(
|
|
7967
|
+
/* @__PURE__ */ a("div", { className: le[`${At}__icon`], children: /* @__PURE__ */ a(P, E(k({}, $c[_]), { size: "medium" })) }),
|
|
7968
|
+
/* @__PURE__ */ a("div", { className: le[`${At}__content`], children: s ? /* @__PURE__ */ a(D, { as: "div", children: r }) : r }),
|
|
7953
7969
|
(e || o) && /* @__PURE__ */ f("div", { className: le[`${At}__actions`], children: [
|
|
7954
7970
|
e && /* @__PURE__ */ a(
|
|
7955
|
-
|
|
7971
|
+
q,
|
|
7956
7972
|
{
|
|
7957
7973
|
className: le[`${At}__actions--custom`],
|
|
7958
7974
|
kind: "text",
|
|
7959
7975
|
size: "compact",
|
|
7960
|
-
onClick: () =>
|
|
7976
|
+
onClick: () => g(e),
|
|
7961
7977
|
children: e.label
|
|
7962
7978
|
}
|
|
7963
7979
|
),
|
|
@@ -7975,7 +7991,7 @@ const ba = {
|
|
|
7975
7991
|
)
|
|
7976
7992
|
] })
|
|
7977
7993
|
] }));
|
|
7978
|
-
},
|
|
7994
|
+
}, xc = 200, ka = "toast-wrapper", td = ({
|
|
7979
7995
|
className: e,
|
|
7980
7996
|
toasts: t = [],
|
|
7981
7997
|
fixed: r = !0,
|
|
@@ -7994,7 +8010,7 @@ const ba = {
|
|
|
7994
8010
|
},
|
|
7995
8011
|
e
|
|
7996
8012
|
);
|
|
7997
|
-
return /* @__PURE__ */ a("div", { className: l, children: /* @__PURE__ */ a(Do, { component: null, children: t.map(({ id: d, kind: c, content: s, removable:
|
|
8013
|
+
return /* @__PURE__ */ a("div", { className: l, children: /* @__PURE__ */ a(Do, { component: null, children: t.map(({ id: d, kind: c, content: s, removable: g, action: p, onClose: v }) => /* @__PURE__ */ a(
|
|
7998
8014
|
Po,
|
|
7999
8015
|
{
|
|
8000
8016
|
classNames: {
|
|
@@ -8003,13 +8019,13 @@ const ba = {
|
|
|
8003
8019
|
exit: le[`toast-exit--${_}`],
|
|
8004
8020
|
exitActive: le[`toast-exit-active--${_}`]
|
|
8005
8021
|
},
|
|
8006
|
-
timeout:
|
|
8022
|
+
timeout: xc,
|
|
8007
8023
|
children: /* @__PURE__ */ a(
|
|
8008
|
-
|
|
8024
|
+
Nc,
|
|
8009
8025
|
{
|
|
8010
8026
|
kind: c,
|
|
8011
8027
|
onClose: v,
|
|
8012
|
-
removable:
|
|
8028
|
+
removable: g,
|
|
8013
8029
|
action: p,
|
|
8014
8030
|
children: s
|
|
8015
8031
|
}
|
|
@@ -8017,15 +8033,15 @@ const ba = {
|
|
|
8017
8033
|
},
|
|
8018
8034
|
d
|
|
8019
8035
|
)) }) });
|
|
8020
|
-
},
|
|
8021
|
-
textarea:
|
|
8036
|
+
}, Sc = "lc-Textarea-module__textarea___yE6jp", Qa = {
|
|
8037
|
+
textarea: Sc,
|
|
8022
8038
|
"textarea--focused": "lc-Textarea-module__textarea--focused___YnB5S",
|
|
8023
8039
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___zZJAq",
|
|
8024
8040
|
"textarea--error": "lc-Textarea-module__textarea--error___n-fD5"
|
|
8025
|
-
}, Ja = "textarea", ad =
|
|
8041
|
+
}, Ja = "textarea", ad = m.forwardRef(
|
|
8026
8042
|
(_, o) => {
|
|
8027
8043
|
var n = _, { className: e, error: t } = n, r = F(n, ["className", "error"]);
|
|
8028
|
-
const { disabled: i, onBlur: l, onFocus: d } = r, [c, s] =
|
|
8044
|
+
const { disabled: i, onBlur: l, onFocus: d } = r, [c, s] = m.useState(!1), g = u(e, Qa[Ja], {
|
|
8029
8045
|
[Qa[`${Ja}--disabled`]]: i,
|
|
8030
8046
|
[Qa[`${Ja}--focused`]]: c,
|
|
8031
8047
|
[Qa[`${Ja}--error`]]: t
|
|
@@ -8034,7 +8050,7 @@ const ba = {
|
|
|
8034
8050
|
}, v = (h) => {
|
|
8035
8051
|
s(!0), d == null || d(h);
|
|
8036
8052
|
};
|
|
8037
|
-
return /* @__PURE__ */ a(
|
|
8053
|
+
return /* @__PURE__ */ a(D, { as: "div", className: g, children: /* @__PURE__ */ a(
|
|
8038
8054
|
"textarea",
|
|
8039
8055
|
E(k({}, r), {
|
|
8040
8056
|
ref: o,
|
|
@@ -8043,9 +8059,9 @@ const ba = {
|
|
|
8043
8059
|
})
|
|
8044
8060
|
) });
|
|
8045
8061
|
}
|
|
8046
|
-
),
|
|
8062
|
+
), Bc = {
|
|
8047
8063
|
"update-badge": "lc-UpdateBadge-module__update-badge___heZyU"
|
|
8048
|
-
},
|
|
8064
|
+
}, Ec = "update-badge", rd = () => /* @__PURE__ */ a("span", { className: Bc[Ec] }), xr = {
|
|
8049
8065
|
"file-upload-progress-actions": "lc-FileUploadProgressActions-module__file-upload-progress-actions___XINkF",
|
|
8050
8066
|
"file-upload-progress-actions__close-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__close-button___BHRcO",
|
|
8051
8067
|
"file-upload-progress-actions__retry-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__retry-button___2Xd72"
|
|
@@ -8081,7 +8097,7 @@ const ba = {
|
|
|
8081
8097
|
"file-upload-progress__wrapper__header__title": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title___EYxE3",
|
|
8082
8098
|
"file-upload-progress__wrapper__header__title--success": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--success___P0XSe",
|
|
8083
8099
|
"file-upload-progress__wrapper__header__title--error": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--error___la8oa"
|
|
8084
|
-
}, Ct = "file-upload-progress", Br = `${Ct}__wrapper__header__title`,
|
|
8100
|
+
}, Ct = "file-upload-progress", Br = `${Ct}__wrapper__header__title`, Ic = m.forwardRef(
|
|
8085
8101
|
({
|
|
8086
8102
|
actionsVisibility: e = "hidden",
|
|
8087
8103
|
className: t,
|
|
@@ -8119,7 +8135,7 @@ const ba = {
|
|
|
8119
8135
|
[Ke[`${Br}--success`]]: i === "success",
|
|
8120
8136
|
[Ke[`${Br}--error`]]: i === "error"
|
|
8121
8137
|
}),
|
|
8122
|
-
children: /* @__PURE__ */ a(
|
|
8138
|
+
children: /* @__PURE__ */ a(D, { size: "sm", as: "div", children: o })
|
|
8123
8139
|
}
|
|
8124
8140
|
),
|
|
8125
8141
|
e !== "hidden" && /* @__PURE__ */ a(
|
|
@@ -8152,7 +8168,7 @@ const ba = {
|
|
|
8152
8168
|
}
|
|
8153
8169
|
)
|
|
8154
8170
|
] })
|
|
8155
|
-
),
|
|
8171
|
+
), j = {
|
|
8156
8172
|
"upload-bar": "lc-UploadBar-module__upload-bar___0ZOP3",
|
|
8157
8173
|
"upload-bar__loader-test": "lc-UploadBar-module__upload-bar__loader-test___4QKID",
|
|
8158
8174
|
"upload-bar--error": "lc-UploadBar-module__upload-bar--error___83It3",
|
|
@@ -8173,24 +8189,24 @@ const ba = {
|
|
|
8173
8189
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___-N5nJ",
|
|
8174
8190
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___C3au9",
|
|
8175
8191
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___95G7b"
|
|
8176
|
-
}, Ne = "upload-bar", Nt = `${Ne}__wrapper__header`,
|
|
8192
|
+
}, Ne = "upload-bar", Nt = `${Ne}__wrapper__header`, Tc = 300, Ac = (e, t) => e === "success" ? /* @__PURE__ */ a(
|
|
8177
8193
|
"div",
|
|
8178
8194
|
{
|
|
8179
8195
|
"data-testid": "success-icon",
|
|
8180
|
-
className:
|
|
8196
|
+
className: j[`${Nt}__success-icon`],
|
|
8181
8197
|
children: /* @__PURE__ */ a(P, { source: xa })
|
|
8182
8198
|
}
|
|
8183
8199
|
) : e === "error" ? /* @__PURE__ */ a(
|
|
8184
8200
|
"div",
|
|
8185
8201
|
{
|
|
8186
8202
|
"data-testid": "error-icon",
|
|
8187
|
-
className:
|
|
8203
|
+
className: j[`${Nt}__error-icon`],
|
|
8188
8204
|
children: /* @__PURE__ */ a(P, { source: P_ })
|
|
8189
8205
|
}
|
|
8190
8206
|
) : /* @__PURE__ */ a(
|
|
8191
8207
|
Yl,
|
|
8192
8208
|
{
|
|
8193
|
-
className:
|
|
8209
|
+
className: j[`${Nt}__loader`],
|
|
8194
8210
|
status: e,
|
|
8195
8211
|
progressValue: t
|
|
8196
8212
|
}
|
|
@@ -8206,15 +8222,15 @@ const ba = {
|
|
|
8206
8222
|
size: d,
|
|
8207
8223
|
mode: c = "multiple",
|
|
8208
8224
|
onCloseButtonClick: s,
|
|
8209
|
-
onRetryButtonClick:
|
|
8225
|
+
onRetryButtonClick: g
|
|
8210
8226
|
}) => {
|
|
8211
|
-
const [p, v] =
|
|
8212
|
-
[
|
|
8213
|
-
[
|
|
8214
|
-
}),
|
|
8215
|
-
return c === "single" ? /* @__PURE__ */ a("div", { className: C, children: /* @__PURE__ */ f("div", { className:
|
|
8216
|
-
/* @__PURE__ */ a("div", { className:
|
|
8217
|
-
|
|
8227
|
+
const [p, v] = m.useState(_ || !1), h = i === "error", b = i === "success", C = u(j[Ne], t, {
|
|
8228
|
+
[j[`${Ne}--error`]]: h,
|
|
8229
|
+
[j[`${Ne}--success`]]: b
|
|
8230
|
+
}), w = !(h && (g || s)), $ = () => v(!p);
|
|
8231
|
+
return c === "single" ? /* @__PURE__ */ a("div", { className: C, children: /* @__PURE__ */ f("div", { className: j[`${Ne}__wrapper`], children: [
|
|
8232
|
+
/* @__PURE__ */ a("div", { className: j[`${Nt}`], children: /* @__PURE__ */ a(
|
|
8233
|
+
Ic,
|
|
8218
8234
|
{
|
|
8219
8235
|
title: h && n || o,
|
|
8220
8236
|
progressValue: r,
|
|
@@ -8228,34 +8244,34 @@ const ba = {
|
|
|
8228
8244
|
{
|
|
8229
8245
|
status: i,
|
|
8230
8246
|
onCloseButtonClick: s,
|
|
8231
|
-
onRetryButtonClick:
|
|
8247
|
+
onRetryButtonClick: g
|
|
8232
8248
|
}
|
|
8233
8249
|
)
|
|
8234
8250
|
] }) }) : /* @__PURE__ */ f("div", { className: C, children: [
|
|
8235
8251
|
/* @__PURE__ */ a(
|
|
8236
8252
|
"div",
|
|
8237
8253
|
{
|
|
8238
|
-
className:
|
|
8239
|
-
onClick:
|
|
8240
|
-
children: /* @__PURE__ */ f("div", { className:
|
|
8241
|
-
/* @__PURE__ */ a("div", { className:
|
|
8242
|
-
/* @__PURE__ */ a("div", { className:
|
|
8243
|
-
|
|
8254
|
+
className: j[`${Ne}__wrapper`],
|
|
8255
|
+
onClick: $,
|
|
8256
|
+
children: /* @__PURE__ */ f("div", { className: j[`${Nt}`], children: [
|
|
8257
|
+
/* @__PURE__ */ a("div", { className: j[`${Nt}__icon`], children: Ac(i, r) }),
|
|
8258
|
+
/* @__PURE__ */ a("div", { className: j[`${Nt}__title`], children: /* @__PURE__ */ a(D, { size: "sm", as: "div", children: h ? n : o }) }),
|
|
8259
|
+
w && /* @__PURE__ */ a(
|
|
8244
8260
|
"button",
|
|
8245
8261
|
{
|
|
8246
|
-
className:
|
|
8262
|
+
className: j[`${Nt}__collapse-button`],
|
|
8247
8263
|
type: "button",
|
|
8248
8264
|
"aria-label": "Collapse button",
|
|
8249
|
-
onClick:
|
|
8265
|
+
onClick: $,
|
|
8250
8266
|
children: p ? /* @__PURE__ */ a(P, { source: or }) : /* @__PURE__ */ a(P, { source: Ut })
|
|
8251
8267
|
}
|
|
8252
8268
|
),
|
|
8253
|
-
i === "error" && /* @__PURE__ */ a("div", { className:
|
|
8269
|
+
i === "error" && /* @__PURE__ */ a("div", { className: j[`${Nt}__actions-container`], children: /* @__PURE__ */ a(
|
|
8254
8270
|
Fr,
|
|
8255
8271
|
{
|
|
8256
8272
|
status: i,
|
|
8257
8273
|
onCloseButtonClick: s,
|
|
8258
|
-
onRetryButtonClick:
|
|
8274
|
+
onRetryButtonClick: g
|
|
8259
8275
|
}
|
|
8260
8276
|
) })
|
|
8261
8277
|
] })
|
|
@@ -8264,125 +8280,125 @@ const ba = {
|
|
|
8264
8280
|
/* @__PURE__ */ a(Do, { component: null, children: p && /* @__PURE__ */ a(
|
|
8265
8281
|
Po,
|
|
8266
8282
|
{
|
|
8267
|
-
timeout:
|
|
8283
|
+
timeout: Tc,
|
|
8268
8284
|
classNames: {
|
|
8269
|
-
enter:
|
|
8270
|
-
enterActive:
|
|
8271
|
-
exit:
|
|
8272
|
-
exitActive:
|
|
8273
|
-
exitDone:
|
|
8285
|
+
enter: j[`${Ne}__files--enter`],
|
|
8286
|
+
enterActive: j[`${Ne}__files--enter-active`],
|
|
8287
|
+
exit: j[`${Ne}__files--exit`],
|
|
8288
|
+
exitActive: j[`${Ne}__files--exit-active`],
|
|
8289
|
+
exitDone: j[`${Ne}__files--exit-done`]
|
|
8274
8290
|
},
|
|
8275
|
-
children: /* @__PURE__ */ a("div", { className:
|
|
8291
|
+
children: /* @__PURE__ */ a("div", { className: j[`${Ne}__files`], children: /* @__PURE__ */ a("div", { className: j[`${Ne}__files-wrapper`], children: /* @__PURE__ */ a("div", { className: j[`${Ne}__files__list`], children: e }) }) })
|
|
8276
8292
|
}
|
|
8277
8293
|
) })
|
|
8278
8294
|
] });
|
|
8279
8295
|
};
|
|
8280
8296
|
export {
|
|
8281
|
-
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8297
|
+
xc as ANIMATION_TIME,
|
|
8298
|
+
_s as Accordion,
|
|
8299
|
+
ss as ActionBar,
|
|
8300
|
+
ds as ActionCard,
|
|
8285
8301
|
Lo as ActionMenu,
|
|
8286
8302
|
Dr as ActionMenuItem,
|
|
8287
|
-
|
|
8288
|
-
|
|
8289
|
-
|
|
8303
|
+
Ms as ActionModalContent,
|
|
8304
|
+
us as Alert,
|
|
8305
|
+
ms as AppFrame,
|
|
8290
8306
|
Z_ as AppFrameProvider,
|
|
8291
|
-
|
|
8307
|
+
Cs as AutoComplete,
|
|
8292
8308
|
Qo as Avatar,
|
|
8293
8309
|
er as Badge,
|
|
8294
|
-
|
|
8295
|
-
|
|
8310
|
+
q as Button,
|
|
8311
|
+
$s as Card,
|
|
8296
8312
|
bi as Checkbox,
|
|
8297
8313
|
nl as DatePicker,
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
8314
|
+
Ns as DatePickerRangeCalendarsWrapper,
|
|
8315
|
+
Yc as DesignToken,
|
|
8316
|
+
xs as DetailsCard,
|
|
8317
|
+
Ss as DetailsCardInfo,
|
|
8318
|
+
os as Display,
|
|
8303
8319
|
ed as EmailTagInput,
|
|
8304
|
-
|
|
8320
|
+
vs as ExpirationCounter,
|
|
8305
8321
|
lr as FieldDescription,
|
|
8306
8322
|
Wr as FieldError,
|
|
8307
|
-
|
|
8308
|
-
|
|
8323
|
+
Bs as FieldGroup,
|
|
8324
|
+
Ic as FileUploadProgress,
|
|
8309
8325
|
Fr as FileUploadProgressActions,
|
|
8310
|
-
|
|
8311
|
-
|
|
8312
|
-
|
|
8326
|
+
Es as Form,
|
|
8327
|
+
Is as FormField,
|
|
8328
|
+
Ts as FormGroup,
|
|
8313
8329
|
ge as Heading,
|
|
8314
8330
|
P as Icon,
|
|
8315
|
-
|
|
8331
|
+
is as Info,
|
|
8316
8332
|
ni as Input,
|
|
8317
8333
|
Sn as Interactive,
|
|
8318
|
-
|
|
8319
|
-
|
|
8334
|
+
As as InviteAgents,
|
|
8335
|
+
Ds as Link,
|
|
8320
8336
|
Vr as Loader,
|
|
8321
|
-
|
|
8322
|
-
|
|
8337
|
+
ks as MobileNavigation,
|
|
8338
|
+
Ps as Modal,
|
|
8323
8339
|
Bl as ModalBase,
|
|
8324
8340
|
$o as ModalCloseButton,
|
|
8325
|
-
|
|
8326
|
-
|
|
8327
|
-
|
|
8328
|
-
|
|
8329
|
-
|
|
8341
|
+
Rs as ModalHeader,
|
|
8342
|
+
Fs as ModalPortal,
|
|
8343
|
+
bs as Navigation,
|
|
8344
|
+
hs as NavigationGroup,
|
|
8345
|
+
fs as NavigationItem,
|
|
8330
8346
|
Vo as NavigationTopBar,
|
|
8331
8347
|
ai as NavigationTopBarAlert,
|
|
8332
8348
|
ti as NavigationTopBarTitle,
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8349
|
+
Os as NumericInput,
|
|
8350
|
+
Ls as OnboardingChecklist,
|
|
8351
|
+
ys as Picker,
|
|
8336
8352
|
Xo as PickerList,
|
|
8337
|
-
|
|
8338
|
-
|
|
8353
|
+
Gs as Popover,
|
|
8354
|
+
Us as ProductSwitcher,
|
|
8339
8355
|
Fl as ProductSwitcherProducts,
|
|
8340
8356
|
Xl as ProgressBar,
|
|
8341
8357
|
Yl as ProgressCircle,
|
|
8342
|
-
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8358
|
+
zs as PromoBanner,
|
|
8359
|
+
Vs as PromoBannerV2,
|
|
8360
|
+
Ws as RadioButton,
|
|
8361
|
+
qc as RadiusToken,
|
|
8346
8362
|
ll as RangeDatePicker,
|
|
8347
|
-
|
|
8363
|
+
cs as Reports,
|
|
8348
8364
|
Vn as SIDE_NAVIGATION_ACTIVE_ITEM_TEST_ID,
|
|
8349
8365
|
zn as SIDE_NAVIGATION_ITEM_TEST_ID,
|
|
8350
8366
|
Wn as SIDE_NAVIGATION_PARENT_ICON_TEST_ID,
|
|
8351
|
-
|
|
8352
|
-
|
|
8353
|
-
|
|
8354
|
-
|
|
8355
|
-
|
|
8367
|
+
Ql as SearchInput,
|
|
8368
|
+
ws as SegmentedControl,
|
|
8369
|
+
Zc as ShadowToken,
|
|
8370
|
+
ps as SideNavigation,
|
|
8371
|
+
gs as SideNavigationGroup,
|
|
8356
8372
|
Kn as SideNavigationItem,
|
|
8357
|
-
|
|
8373
|
+
ns as Simple,
|
|
8358
8374
|
Ys as SkeletonAvatar,
|
|
8359
8375
|
Xs as SkeletonText,
|
|
8360
8376
|
Ks as SkeletonWrapper,
|
|
8361
|
-
|
|
8377
|
+
Xc as SpacingToken,
|
|
8362
8378
|
Zs as StatusBadge,
|
|
8363
|
-
|
|
8364
|
-
|
|
8379
|
+
qs as Switch,
|
|
8380
|
+
js as Tab,
|
|
8365
8381
|
Js as TabsList,
|
|
8366
8382
|
Qs as TabsWrapper,
|
|
8367
8383
|
Zo as Tag,
|
|
8368
|
-
|
|
8369
|
-
|
|
8384
|
+
hc as TagInput,
|
|
8385
|
+
D as Text,
|
|
8370
8386
|
ad as Textarea,
|
|
8371
8387
|
xt as ThemeClassName,
|
|
8372
|
-
|
|
8373
|
-
|
|
8388
|
+
as as ThemeProvider,
|
|
8389
|
+
Nc as Toast,
|
|
8374
8390
|
td as ToastWrapper,
|
|
8375
8391
|
Gt as Tooltip,
|
|
8376
|
-
|
|
8392
|
+
Jc as TransitionDelayToken,
|
|
8377
8393
|
jc as TransitionDurationToken,
|
|
8378
|
-
|
|
8394
|
+
Qc as TransitionTimingToken,
|
|
8379
8395
|
rd as UpdateBadge,
|
|
8380
8396
|
od as UploadBar,
|
|
8381
|
-
|
|
8397
|
+
ls as UserGuide,
|
|
8382
8398
|
Pi as generateAvatarColor,
|
|
8383
|
-
|
|
8384
|
-
|
|
8399
|
+
rs as getDesignTokenWithOpacity,
|
|
8400
|
+
es as getThemeClassName,
|
|
8385
8401
|
Mo as useAppFrame,
|
|
8386
|
-
|
|
8387
|
-
|
|
8402
|
+
Hs as useProductSwitcher,
|
|
8403
|
+
ts as useTheme
|
|
8388
8404
|
};
|