@livechat/design-system-react-components 1.7.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DetailsCard/DetailsCard.d.ts +4 -0
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +599 -574
- package/dist/foundations/transition-token.d.ts +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/preview-stats.json +470 -461
- package/dist/style.css +1 -1
- package/dist/themes/design-token.d.ts +1 -0
- package/package.json +2 -2
package/dist/dsrc.es.js
CHANGED
|
@@ -23,7 +23,7 @@ var Vt = (t, a, r) => (Wt(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
|
23
23
|
import * as e from "react";
|
|
24
24
|
import { useReducer as $r, useRef as wr, useEffect as st, useCallback as Ct, useMemo as Nt } from "react";
|
|
25
25
|
import { Close as Ne, ChevronLeft as Ua, ChevronDown as $t, Info as ca, Warning as Wa, CheckCircle as Va, Block as Ya, Person as Cr, ChevronUp as Gt, DoubleArrowLeft as Nr, ChevronRight as ea, DoubleArrowRight as xr, VisibilityOn as Sr, VisibilityOff as Dr, Check as la, Search as Tr, LockBlackFilled as Br, Refresh as Ar, Error as Ir } from "@livechat/design-system-icons";
|
|
26
|
-
import
|
|
26
|
+
import g, { clsx as Je } from "clsx";
|
|
27
27
|
import { useFloating as na, offset as sa, flip as ia, autoUpdate as da, useClick as ua, useDismiss as ma, useRole as pa, useInteractions as ga, useTransitionStyles as qa, shift as Ka, arrow as Pr, useHover as Fr, safePolygon as Rr, useFocus as Mr, useTransitionStatus as Lr, FloatingArrow as Or, FloatingFocusManager as Hr } from "@floating-ui/react";
|
|
28
28
|
import Ja from "lodash.debounce";
|
|
29
29
|
import { getContrast as ba } from "polished";
|
|
@@ -307,7 +307,8 @@ const Rc = {
|
|
|
307
307
|
SurfaceAvatar7: "--surface-avatar-7",
|
|
308
308
|
SurfaceAvatar8: "--surface-avatar-8",
|
|
309
309
|
SurfaceAvatar9: "--surface-avatar-9",
|
|
310
|
-
SurfaceAvatar10: "--surface-avatar-10"
|
|
310
|
+
SurfaceAvatar10: "--surface-avatar-10",
|
|
311
|
+
NavbarBackground: "--navbar-background"
|
|
311
312
|
}, Mc = {
|
|
312
313
|
Spacing0: "--spacing-0",
|
|
313
314
|
Spacing05: "--spacing-05",
|
|
@@ -345,7 +346,14 @@ const Rc = {
|
|
|
345
346
|
1: "--radius-1",
|
|
346
347
|
2: "--radius-2",
|
|
347
348
|
3: "--radius-3"
|
|
348
|
-
}, Hc =
|
|
349
|
+
}, Hc = {
|
|
350
|
+
Fast1: "--transition-duration-fast-1",
|
|
351
|
+
Fast2: "--transition-duration-fast-2",
|
|
352
|
+
Moderate1: "--transition-duration-moderate-1"
|
|
353
|
+
}, zc = {
|
|
354
|
+
EaseIn: "--transition-timing-ease-in",
|
|
355
|
+
EaseOut: "--transition-timing-ease-out"
|
|
356
|
+
}, Gc = (t, a) => `color-mix(in srgb, var(${t}) ${a}, transparent)`, z = {
|
|
349
357
|
esc: "Escape",
|
|
350
358
|
enter: "Enter",
|
|
351
359
|
backspace: "Backspace",
|
|
@@ -373,9 +381,9 @@ const Rc = {
|
|
|
373
381
|
placement: o = "bottom-end",
|
|
374
382
|
openedOnInit: c = !1,
|
|
375
383
|
keepOpenOnClick: l,
|
|
376
|
-
flipOptions:
|
|
377
|
-
visible:
|
|
378
|
-
onClose:
|
|
384
|
+
flipOptions: n,
|
|
385
|
+
visible: s,
|
|
386
|
+
onClose: i,
|
|
379
387
|
onOpen: d,
|
|
380
388
|
floatingStrategy: m
|
|
381
389
|
} = v, u = P(v, [
|
|
@@ -392,10 +400,10 @@ const Rc = {
|
|
|
392
400
|
"onOpen",
|
|
393
401
|
"floatingStrategy"
|
|
394
402
|
]);
|
|
395
|
-
const
|
|
396
|
-
w ? (
|
|
403
|
+
const p = s !== void 0, [b, k] = e.useState(c), f = e.useRef(-1), $ = e.useRef(null), w = p ? s : b, F = () => {
|
|
404
|
+
w ? (i == null || i(), !p && k(!1)) : (d == null || d(), !p && k(!0));
|
|
397
405
|
}, { x: E, y: T, strategy: S, refs: se, context: A } = na({
|
|
398
|
-
middleware: [sa(4), ia(
|
|
406
|
+
middleware: [sa(4), ia(n)],
|
|
399
407
|
placement: o,
|
|
400
408
|
open: w,
|
|
401
409
|
strategy: m,
|
|
@@ -443,7 +451,7 @@ const Rc = {
|
|
|
443
451
|
f.current = -1;
|
|
444
452
|
}, [w, R]);
|
|
445
453
|
const U = (N, ee) => {
|
|
446
|
-
f.current = N, ee == null || ee(), !
|
|
454
|
+
f.current = N, ee == null || ee(), !p && !l && (k(!1), i == null || i());
|
|
447
455
|
}, Y = (N, ee) => N.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
448
456
|
"li",
|
|
449
457
|
{
|
|
@@ -461,7 +469,7 @@ const Rc = {
|
|
|
461
469
|
disabled: N.disabled,
|
|
462
470
|
onClick: () => U(ee, N.onClick),
|
|
463
471
|
role: "menuitem",
|
|
464
|
-
className:
|
|
472
|
+
className: g(Qe[`${Ze}__list__item`], {
|
|
465
473
|
[Qe[`${Ze}__list__item--disabled`]]: N.disabled,
|
|
466
474
|
[Qe[`${Ze}__list__item--with-divider`]]: N.withDivider
|
|
467
475
|
})
|
|
@@ -491,7 +499,7 @@ const Rc = {
|
|
|
491
499
|
/* @__PURE__ */ e.createElement(
|
|
492
500
|
"ul",
|
|
493
501
|
B(y({}, u), {
|
|
494
|
-
className:
|
|
502
|
+
className: g(Qe[`${Ze}__list`], t),
|
|
495
503
|
role: "menu",
|
|
496
504
|
ref: $
|
|
497
505
|
}),
|
|
@@ -536,11 +544,11 @@ const Rc = {
|
|
|
536
544
|
]);
|
|
537
545
|
return e.createElement(
|
|
538
546
|
t || Yr[a],
|
|
539
|
-
y({ className:
|
|
547
|
+
y({ className: g(lt[`heading-${a}`], _) }, o),
|
|
540
548
|
r
|
|
541
549
|
);
|
|
542
|
-
}, M = (
|
|
543
|
-
var d =
|
|
550
|
+
}, M = (i) => {
|
|
551
|
+
var d = i, {
|
|
544
552
|
as: t = "p",
|
|
545
553
|
size: a = "md",
|
|
546
554
|
caps: r = !1,
|
|
@@ -548,8 +556,8 @@ const Rc = {
|
|
|
548
556
|
underline: o = !1,
|
|
549
557
|
strike: c = !1,
|
|
550
558
|
children: l,
|
|
551
|
-
className:
|
|
552
|
-
} = d,
|
|
559
|
+
className: n
|
|
560
|
+
} = d, s = P(d, [
|
|
553
561
|
"as",
|
|
554
562
|
"size",
|
|
555
563
|
"caps",
|
|
@@ -563,19 +571,19 @@ const Rc = {
|
|
|
563
571
|
return e.createElement(
|
|
564
572
|
t,
|
|
565
573
|
y({
|
|
566
|
-
className:
|
|
574
|
+
className: g(
|
|
567
575
|
{
|
|
568
576
|
[lt[`${m}`]]: !0,
|
|
569
577
|
[lt[`${m}--bold`]]: _,
|
|
570
578
|
[lt[`${m}--strike`]]: c,
|
|
571
579
|
[lt[`${m}--underline`]]: o
|
|
572
580
|
},
|
|
573
|
-
|
|
581
|
+
n
|
|
574
582
|
)
|
|
575
|
-
},
|
|
583
|
+
}, s),
|
|
576
584
|
l
|
|
577
585
|
);
|
|
578
|
-
},
|
|
586
|
+
}, Uc = (c) => {
|
|
579
587
|
var l = c, {
|
|
580
588
|
as: t = "div",
|
|
581
589
|
size: a = "md",
|
|
@@ -589,7 +597,7 @@ const Rc = {
|
|
|
589
597
|
]);
|
|
590
598
|
return e.createElement(
|
|
591
599
|
t,
|
|
592
|
-
y({ className:
|
|
600
|
+
y({ className: g(lt[`display-${a}`], _) }, o),
|
|
593
601
|
r
|
|
594
602
|
);
|
|
595
603
|
}, it = {
|
|
@@ -601,7 +609,7 @@ const Rc = {
|
|
|
601
609
|
}, dt = "action-menu-item", qr = ({ leftNode: t, rightNode: a, children: r, kind: _ }) => /* @__PURE__ */ e.createElement(
|
|
602
610
|
"div",
|
|
603
611
|
{
|
|
604
|
-
className:
|
|
612
|
+
className: g(it[dt], {
|
|
605
613
|
[it[`${dt}--warning`]]: _ === "warning"
|
|
606
614
|
})
|
|
607
615
|
},
|
|
@@ -623,10 +631,10 @@ const Rc = {
|
|
|
623
631
|
label: r,
|
|
624
632
|
className: _,
|
|
625
633
|
size: o = "medium"
|
|
626
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
634
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: g(ut[Xa], _) }, /* @__PURE__ */ e.createElement(
|
|
627
635
|
"div",
|
|
628
636
|
{
|
|
629
|
-
className:
|
|
637
|
+
className: g(ut[wa], ut[`${wa}--${o}`])
|
|
630
638
|
},
|
|
631
639
|
/* @__PURE__ */ e.createElement(
|
|
632
640
|
"div",
|
|
@@ -677,8 +685,8 @@ const Rc = {
|
|
|
677
685
|
"btn__icon--right": "lc-Button-module__btn__icon--right___fHr3D",
|
|
678
686
|
"btn--icon-only--bg": "lc-Button-module__btn--icon-only--bg___X-4V2"
|
|
679
687
|
}, pe = "btn", G = e.forwardRef(
|
|
680
|
-
(
|
|
681
|
-
var b =
|
|
688
|
+
(p, v) => {
|
|
689
|
+
var b = p, {
|
|
682
690
|
loading: t = !1,
|
|
683
691
|
disabled: a = !1,
|
|
684
692
|
type: r = "button",
|
|
@@ -686,9 +694,9 @@ const Rc = {
|
|
|
686
694
|
kind: o = "basic",
|
|
687
695
|
size: c = "medium",
|
|
688
696
|
icon: l = null,
|
|
689
|
-
iconPosition:
|
|
690
|
-
loaderLabel:
|
|
691
|
-
className:
|
|
697
|
+
iconPosition: n = "left",
|
|
698
|
+
loaderLabel: s,
|
|
699
|
+
className: i,
|
|
692
700
|
children: d,
|
|
693
701
|
href: m,
|
|
694
702
|
onClick: u
|
|
@@ -707,8 +715,8 @@ const Rc = {
|
|
|
707
715
|
"href",
|
|
708
716
|
"onClick"
|
|
709
717
|
]);
|
|
710
|
-
const k = t || a, f = !d && l, $ = ["text", "link", "link-light"].includes(o), w = m ? "a" : "button", F =
|
|
711
|
-
|
|
718
|
+
const k = t || a, f = !d && l, $ = ["text", "link", "link-light"].includes(o), w = m ? "a" : "button", F = g(
|
|
719
|
+
i,
|
|
712
720
|
me[pe],
|
|
713
721
|
me[`${pe}--${o}`],
|
|
714
722
|
me[`${pe}--${c}`],
|
|
@@ -733,15 +741,15 @@ const Rc = {
|
|
|
733
741
|
fa,
|
|
734
742
|
y({
|
|
735
743
|
size: "small",
|
|
736
|
-
label:
|
|
744
|
+
label: s,
|
|
737
745
|
className: me[`${pe}__loader`]
|
|
738
746
|
}, Zr(o))
|
|
739
747
|
),
|
|
740
748
|
l && e.cloneElement(l, {
|
|
741
|
-
className:
|
|
749
|
+
className: g(
|
|
742
750
|
l.props.className,
|
|
743
751
|
me[`${pe}__icon`],
|
|
744
|
-
me[`${pe}__icon--${
|
|
752
|
+
me[`${pe}__icon--${n}`]
|
|
745
753
|
),
|
|
746
754
|
disabled: a
|
|
747
755
|
}),
|
|
@@ -811,21 +819,21 @@ const Rc = {
|
|
|
811
819
|
disabled: o,
|
|
812
820
|
className: c,
|
|
813
821
|
customColor: l
|
|
814
|
-
} = d,
|
|
822
|
+
} = d, n = P(d, [
|
|
815
823
|
"source",
|
|
816
824
|
"size",
|
|
817
825
|
"kind",
|
|
818
826
|
"disabled",
|
|
819
827
|
"className",
|
|
820
828
|
"customColor"
|
|
821
|
-
]),
|
|
829
|
+
]), s = e.createElement(a, B(y({}, r_[r]), {
|
|
822
830
|
color: l
|
|
823
|
-
})),
|
|
831
|
+
})), i = g(
|
|
824
832
|
c,
|
|
825
833
|
Ca[Na],
|
|
826
834
|
_ && Ca[`${Na}--${o ? "disabled--" : ""}${_}`]
|
|
827
835
|
);
|
|
828
|
-
return /* @__PURE__ */ e.createElement("span", B(y({},
|
|
836
|
+
return /* @__PURE__ */ e.createElement("span", B(y({}, n), { className: i }), s);
|
|
829
837
|
};
|
|
830
838
|
function er(t) {
|
|
831
839
|
switch (t) {
|
|
@@ -883,15 +891,15 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
883
891
|
theme: o,
|
|
884
892
|
kind: c,
|
|
885
893
|
placement: l = "bottom",
|
|
886
|
-
isVisible:
|
|
887
|
-
fullSpaceContent:
|
|
888
|
-
onClose:
|
|
894
|
+
isVisible: n,
|
|
895
|
+
fullSpaceContent: s,
|
|
896
|
+
onClose: i,
|
|
889
897
|
onOpen: d,
|
|
890
898
|
withFadeAnimation: m = !0,
|
|
891
899
|
transitionDuration: u = 200,
|
|
892
900
|
hoverOnDuration: h,
|
|
893
901
|
hoverOffDuration: v,
|
|
894
|
-
transitionDelay:
|
|
902
|
+
transitionDelay: p = 0,
|
|
895
903
|
hoverOnDelay: b,
|
|
896
904
|
hoverOffDelay: k,
|
|
897
905
|
triggerOnClick: f = !1,
|
|
@@ -905,14 +913,14 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
905
913
|
closeOnTriggerBlur: A = !1,
|
|
906
914
|
floatingStrategy: J
|
|
907
915
|
}) => {
|
|
908
|
-
const X =
|
|
916
|
+
const X = n !== void 0, [Le, Be] = e.useState(!1), fe = e.useRef(null), Oe = X ? n : Le, Ge = c || o, Ue = g(
|
|
909
917
|
C[xt],
|
|
910
918
|
a,
|
|
911
919
|
Ge && C[`${xt}--${Ge}`],
|
|
912
|
-
|
|
920
|
+
s && C[`${xt}--full-space`]
|
|
913
921
|
), R = typeof _ == "function", U = (ve) => {
|
|
914
|
-
ve !== Oe && (ve ? d == null || d() :
|
|
915
|
-
}, Y = (ve) => m ? ve != null ? ve : u : 0, N = (ve) => ve != null ? ve :
|
|
922
|
+
ve !== Oe && (ve ? d == null || d() : i == null || i(), !X && Be(ve));
|
|
923
|
+
}, Y = (ve) => m ? ve != null ? ve : u : 0, N = (ve) => ve != null ? ve : p, {
|
|
916
924
|
floatingStyles: ee,
|
|
917
925
|
refs: W,
|
|
918
926
|
context: _e,
|
|
@@ -980,7 +988,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
980
988
|
}
|
|
981
989
|
)
|
|
982
990
|
));
|
|
983
|
-
},
|
|
991
|
+
}, Wc = ({ text: t }) => /* @__PURE__ */ e.createElement("div", null, t), mt = "tooltip", Vc = ({ className: t, header: a, text: r, closeWithX: _, theme: o, handleCloseAction: c }) => /* @__PURE__ */ e.createElement("div", { className: t }, _ && /* @__PURE__ */ e.createElement(
|
|
984
992
|
"button",
|
|
985
993
|
{
|
|
986
994
|
className: C[`${mt}-close`],
|
|
@@ -990,7 +998,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
990
998
|
), a && /* @__PURE__ */ e.createElement(
|
|
991
999
|
"div",
|
|
992
1000
|
{
|
|
993
|
-
className:
|
|
1001
|
+
className: g(
|
|
994
1002
|
C[`${mt}-header`],
|
|
995
1003
|
C[`${mt}-header--info`]
|
|
996
1004
|
)
|
|
@@ -999,13 +1007,13 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
999
1007
|
), /* @__PURE__ */ e.createElement(
|
|
1000
1008
|
"div",
|
|
1001
1009
|
{
|
|
1002
|
-
className:
|
|
1010
|
+
className: g(
|
|
1003
1011
|
C[`${mt}-text`],
|
|
1004
1012
|
C[`${mt}-text--info`]
|
|
1005
1013
|
)
|
|
1006
1014
|
},
|
|
1007
1015
|
r
|
|
1008
|
-
)), xe = "tooltip",
|
|
1016
|
+
)), xe = "tooltip", Yc = ({
|
|
1009
1017
|
header: t,
|
|
1010
1018
|
text: a,
|
|
1011
1019
|
image: r,
|
|
@@ -1013,9 +1021,9 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1013
1021
|
theme: o,
|
|
1014
1022
|
handleCloseAction: c,
|
|
1015
1023
|
primaryButton: l,
|
|
1016
|
-
secondaryButton:
|
|
1024
|
+
secondaryButton: n
|
|
1017
1025
|
}) => {
|
|
1018
|
-
const
|
|
1026
|
+
const s = (i) => i === "invert" ? "secondary" : "high-contrast";
|
|
1019
1027
|
return /* @__PURE__ */ e.createElement("div", { className: C[`${xe}__interactive`] }, _ && /* @__PURE__ */ e.createElement(
|
|
1020
1028
|
"button",
|
|
1021
1029
|
{
|
|
@@ -1033,7 +1041,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1033
1041
|
)), t && /* @__PURE__ */ e.createElement("div", { className: C[`${xe}-header`] }, t), /* @__PURE__ */ e.createElement("div", { className: C[`${xe}-text`] }, a), /* @__PURE__ */ e.createElement(
|
|
1034
1042
|
"div",
|
|
1035
1043
|
{
|
|
1036
|
-
className:
|
|
1044
|
+
className: g(
|
|
1037
1045
|
C[`${xe}-footer`],
|
|
1038
1046
|
C[`${xe}-footer--interactive`]
|
|
1039
1047
|
)
|
|
@@ -1041,7 +1049,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1041
1049
|
/* @__PURE__ */ e.createElement(
|
|
1042
1050
|
G,
|
|
1043
1051
|
{
|
|
1044
|
-
kind: l.kind ||
|
|
1052
|
+
kind: l.kind || s(o),
|
|
1045
1053
|
onClick: l.handleClick
|
|
1046
1054
|
},
|
|
1047
1055
|
l.label
|
|
@@ -1049,13 +1057,13 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1049
1057
|
/* @__PURE__ */ e.createElement(
|
|
1050
1058
|
G,
|
|
1051
1059
|
{
|
|
1052
|
-
className:
|
|
1060
|
+
className: g(C[`${xe}-footer-secondary`], {
|
|
1053
1061
|
[C[`${xe}-footer-secondary-invert`]]: o === "invert"
|
|
1054
1062
|
}),
|
|
1055
|
-
kind:
|
|
1056
|
-
onClick:
|
|
1063
|
+
kind: n.kind || "text",
|
|
1064
|
+
onClick: n.handleClick
|
|
1057
1065
|
},
|
|
1058
|
-
|
|
1066
|
+
n.label
|
|
1059
1067
|
)
|
|
1060
1068
|
));
|
|
1061
1069
|
}, te = "guide-tooltip", n_ = ({
|
|
@@ -1081,12 +1089,12 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1081
1089
|
left: "0",
|
|
1082
1090
|
width: "100%",
|
|
1083
1091
|
height: `${t.top}px`
|
|
1084
|
-
},
|
|
1092
|
+
}, n = {
|
|
1085
1093
|
top: `${t.bottom}px`,
|
|
1086
1094
|
left: "0",
|
|
1087
1095
|
width: "100%",
|
|
1088
1096
|
height: `calc(100% - ${t.bottom}px)`
|
|
1089
|
-
},
|
|
1097
|
+
}, s = {
|
|
1090
1098
|
top: `${t.top}px`,
|
|
1091
1099
|
left: `${t.left}px`,
|
|
1092
1100
|
width: `${t.width}px`,
|
|
@@ -1096,7 +1104,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1096
1104
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1097
1105
|
"div",
|
|
1098
1106
|
{
|
|
1099
|
-
className:
|
|
1107
|
+
className: g({
|
|
1100
1108
|
[C[`${te}__overlay`]]: !0,
|
|
1101
1109
|
[C[`${te}__overlay--visible`]]: a,
|
|
1102
1110
|
[C[`${te}__overlay--slide`]]: r
|
|
@@ -1106,7 +1114,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1106
1114
|
), /* @__PURE__ */ e.createElement(
|
|
1107
1115
|
"div",
|
|
1108
1116
|
{
|
|
1109
|
-
className:
|
|
1117
|
+
className: g({
|
|
1110
1118
|
[C[`${te}__overlay`]]: !0,
|
|
1111
1119
|
[C[`${te}__overlay--visible`]]: a,
|
|
1112
1120
|
[C[`${te}__overlay--slide`]]: r
|
|
@@ -1116,7 +1124,7 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1116
1124
|
), /* @__PURE__ */ e.createElement(
|
|
1117
1125
|
"div",
|
|
1118
1126
|
{
|
|
1119
|
-
className:
|
|
1127
|
+
className: g({
|
|
1120
1128
|
[C[`${te}__overlay`]]: !0,
|
|
1121
1129
|
[C[`${te}__overlay--visible`]]: a,
|
|
1122
1130
|
[C[`${te}__overlay--slide`]]: r
|
|
@@ -1126,22 +1134,22 @@ const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__toolti
|
|
|
1126
1134
|
), /* @__PURE__ */ e.createElement(
|
|
1127
1135
|
"div",
|
|
1128
1136
|
{
|
|
1129
|
-
className:
|
|
1137
|
+
className: g({
|
|
1130
1138
|
[C[`${te}__overlay`]]: !0,
|
|
1131
1139
|
[C[`${te}__overlay--visible`]]: a,
|
|
1132
1140
|
[C[`${te}__overlay--slide`]]: r
|
|
1133
1141
|
}),
|
|
1134
|
-
style:
|
|
1142
|
+
style: n
|
|
1135
1143
|
}
|
|
1136
1144
|
), _ && /* @__PURE__ */ e.createElement(
|
|
1137
1145
|
"div",
|
|
1138
1146
|
{
|
|
1139
|
-
className:
|
|
1147
|
+
className: g({
|
|
1140
1148
|
[C[`${te}__overlay`]]: !0,
|
|
1141
1149
|
[C[`${te}__overlay--visible`]]: a,
|
|
1142
1150
|
[C[`${te}__overlay--slide`]]: r
|
|
1143
1151
|
}),
|
|
1144
|
-
style:
|
|
1152
|
+
style: s
|
|
1145
1153
|
}
|
|
1146
1154
|
));
|
|
1147
1155
|
};
|
|
@@ -1152,16 +1160,16 @@ class s_ {
|
|
|
1152
1160
|
this.element = a, this.padding = r;
|
|
1153
1161
|
}
|
|
1154
1162
|
addPadding(a) {
|
|
1155
|
-
const r = Math.round(a.left) - this.padding, _ = Math.round(a.top) - this.padding, o = Math.round(a.width) + 2 * this.padding, c = Math.round(a.height) + 2 * this.padding, l = _,
|
|
1163
|
+
const r = Math.round(a.left) - this.padding, _ = Math.round(a.top) - this.padding, o = Math.round(a.width) + 2 * this.padding, c = Math.round(a.height) + 2 * this.padding, l = _, n = r, s = l + c, i = n + o;
|
|
1156
1164
|
return {
|
|
1157
1165
|
x: r,
|
|
1158
1166
|
y: _,
|
|
1159
1167
|
width: o,
|
|
1160
1168
|
height: c,
|
|
1161
1169
|
top: l,
|
|
1162
|
-
left:
|
|
1163
|
-
bottom:
|
|
1164
|
-
right:
|
|
1170
|
+
left: n,
|
|
1171
|
+
bottom: s,
|
|
1172
|
+
right: i
|
|
1165
1173
|
};
|
|
1166
1174
|
}
|
|
1167
1175
|
getBoundingClientRect() {
|
|
@@ -1174,7 +1182,7 @@ class s_ {
|
|
|
1174
1182
|
return this.getBoundingClientRect().height;
|
|
1175
1183
|
}
|
|
1176
1184
|
}
|
|
1177
|
-
const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a),
|
|
1185
|
+
const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), qc = (t) => {
|
|
1178
1186
|
const {
|
|
1179
1187
|
className: a,
|
|
1180
1188
|
parentElementName: r,
|
|
@@ -1182,8 +1190,8 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1182
1190
|
shouldSlide: o = !0
|
|
1183
1191
|
} = t, [c, l] = e.useState(
|
|
1184
1192
|
null
|
|
1185
|
-
), [
|
|
1186
|
-
c && (
|
|
1193
|
+
), [n, s] = e.useState(null), [i, d] = e.useState(o), m = () => {
|
|
1194
|
+
c && (s(
|
|
1187
1195
|
Da(
|
|
1188
1196
|
c,
|
|
1189
1197
|
xa
|
|
@@ -1201,7 +1209,7 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1201
1209
|
l(u);
|
|
1202
1210
|
}
|
|
1203
1211
|
}, [r]), e.useEffect(() => {
|
|
1204
|
-
c &&
|
|
1212
|
+
c && s(
|
|
1205
1213
|
Da(
|
|
1206
1214
|
c,
|
|
1207
1215
|
xa
|
|
@@ -1210,28 +1218,28 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1210
1218
|
}, [c]), c && _ ? /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
1211
1219
|
n_,
|
|
1212
1220
|
{
|
|
1213
|
-
gap:
|
|
1221
|
+
gap: n,
|
|
1214
1222
|
isVisible: _,
|
|
1215
|
-
slide:
|
|
1223
|
+
slide: i,
|
|
1216
1224
|
disablePointerEvents: !0
|
|
1217
1225
|
}
|
|
1218
1226
|
), /* @__PURE__ */ e.createElement(
|
|
1219
1227
|
tr,
|
|
1220
1228
|
B(y({}, t), {
|
|
1221
1229
|
referenceElement: {
|
|
1222
|
-
getBoundingClientRect: () =>
|
|
1230
|
+
getBoundingClientRect: () => n,
|
|
1223
1231
|
contextElement: c
|
|
1224
1232
|
},
|
|
1225
1233
|
arrowOffsetY: 25,
|
|
1226
|
-
className:
|
|
1234
|
+
className: g({
|
|
1227
1235
|
[C[Sa]]: !0,
|
|
1228
|
-
[C[`${Sa}--slide`]]:
|
|
1236
|
+
[C[`${Sa}--slide`]]: i,
|
|
1229
1237
|
className: a
|
|
1230
1238
|
})
|
|
1231
1239
|
}),
|
|
1232
1240
|
t.children
|
|
1233
1241
|
)) : null;
|
|
1234
|
-
}, pt = "reports-tooltip",
|
|
1242
|
+
}, pt = "reports-tooltip", Kc = ({
|
|
1235
1243
|
title: t,
|
|
1236
1244
|
description: a,
|
|
1237
1245
|
children: r
|
|
@@ -1264,7 +1272,7 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1264
1272
|
activeOptionKey: r,
|
|
1265
1273
|
vertical: _
|
|
1266
1274
|
}) => {
|
|
1267
|
-
const o =
|
|
1275
|
+
const o = g(ne[`${St}__button`], {
|
|
1268
1276
|
[ne[`${St}__button--hidden`]]: a.includes(
|
|
1269
1277
|
t.key
|
|
1270
1278
|
),
|
|
@@ -1308,7 +1316,7 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1308
1316
|
icon: t.element
|
|
1309
1317
|
}
|
|
1310
1318
|
);
|
|
1311
|
-
}, Xe = "action-bar",
|
|
1319
|
+
}, Xe = "action-bar", Jc = ({
|
|
1312
1320
|
className: t,
|
|
1313
1321
|
id: a = "action-bar-area",
|
|
1314
1322
|
type: r = "menu",
|
|
@@ -1316,29 +1324,29 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1316
1324
|
activeOptionKey: o,
|
|
1317
1325
|
vertical: c
|
|
1318
1326
|
}) => {
|
|
1319
|
-
const [l,
|
|
1327
|
+
const [l, n] = e.useState([]), s = r === "scroll", i = g(
|
|
1320
1328
|
ne[Xe],
|
|
1321
1329
|
t,
|
|
1322
1330
|
c && ne[`${Xe}--vertical`]
|
|
1323
1331
|
), d = `${Xe}__menu-wrapper`, m = {
|
|
1324
1332
|
root: document.querySelector(`${a}`),
|
|
1325
1333
|
threshold: 1
|
|
1326
|
-
}, u = !
|
|
1334
|
+
}, u = !s && l.length !== 0, h = (b) => {
|
|
1327
1335
|
b.map((k) => {
|
|
1328
1336
|
const f = l.includes(k.target.id);
|
|
1329
1337
|
if (!k.isIntersecting) {
|
|
1330
|
-
k.target.setAttribute("tabindex", "-1"), f ||
|
|
1338
|
+
k.target.setAttribute("tabindex", "-1"), f || n(($) => [
|
|
1331
1339
|
...$,
|
|
1332
1340
|
k.target.id
|
|
1333
1341
|
]);
|
|
1334
1342
|
return;
|
|
1335
1343
|
}
|
|
1336
|
-
k.target.removeAttribute("tabindex"), f &&
|
|
1344
|
+
k.target.removeAttribute("tabindex"), f && n(l.filter(($) => $ !== k.target.id));
|
|
1337
1345
|
});
|
|
1338
1346
|
};
|
|
1339
1347
|
e.useEffect(() => {
|
|
1340
1348
|
const b = !!window.IntersectionObserver;
|
|
1341
|
-
if (!
|
|
1349
|
+
if (!s && b) {
|
|
1342
1350
|
const k = document.querySelectorAll(
|
|
1343
1351
|
`.${ne[`${Xe}__items__button`]}`
|
|
1344
1352
|
), f = new IntersectionObserver(
|
|
@@ -1347,19 +1355,19 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1347
1355
|
);
|
|
1348
1356
|
return k.forEach(($) => f.observe($)), () => f.disconnect();
|
|
1349
1357
|
}
|
|
1350
|
-
}, [l,
|
|
1358
|
+
}, [l, s]);
|
|
1351
1359
|
const v = (b) => _.filter(
|
|
1352
1360
|
(f) => b.find(($) => $ === f.key)
|
|
1353
1361
|
).map((f) => ({
|
|
1354
1362
|
key: f.key,
|
|
1355
1363
|
element: /* @__PURE__ */ e.createElement(qr, { leftNode: f.element }, f.label),
|
|
1356
1364
|
onClick: f.onClick
|
|
1357
|
-
})),
|
|
1358
|
-
return /* @__PURE__ */ e.createElement("div", { id: a, className:
|
|
1365
|
+
})), p = _.filter((b) => l.find((k) => k === b.key)).find((b) => b.key === o);
|
|
1366
|
+
return /* @__PURE__ */ e.createElement("div", { id: a, className: i }, /* @__PURE__ */ e.createElement(
|
|
1359
1367
|
"div",
|
|
1360
1368
|
{
|
|
1361
|
-
className:
|
|
1362
|
-
[ne[`${Xe}__items--scroll`]]:
|
|
1369
|
+
className: g(ne[`${Xe}__items`], {
|
|
1370
|
+
[ne[`${Xe}__items--scroll`]]: s
|
|
1363
1371
|
})
|
|
1364
1372
|
},
|
|
1365
1373
|
_.map((b) => /* @__PURE__ */ e.createElement(
|
|
@@ -1376,15 +1384,15 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1376
1384
|
{
|
|
1377
1385
|
placement: c ? "left-end" : "bottom-end",
|
|
1378
1386
|
options: v(l),
|
|
1379
|
-
triggerClassName:
|
|
1387
|
+
triggerClassName: g(
|
|
1380
1388
|
c && ne[`${d}__trigger-vertical`]
|
|
1381
1389
|
),
|
|
1382
1390
|
triggerRenderer: /* @__PURE__ */ e.createElement(
|
|
1383
1391
|
G,
|
|
1384
1392
|
{
|
|
1385
|
-
className:
|
|
1393
|
+
className: g(
|
|
1386
1394
|
ne[`${d}__button`],
|
|
1387
|
-
|
|
1395
|
+
p && ne[`${d}__button--active`]
|
|
1388
1396
|
),
|
|
1389
1397
|
kind: "plain",
|
|
1390
1398
|
icon: /* @__PURE__ */ e.createElement(
|
|
@@ -1396,14 +1404,14 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1396
1404
|
),
|
|
1397
1405
|
iconPosition: "right"
|
|
1398
1406
|
},
|
|
1399
|
-
|
|
1407
|
+
p && /* @__PURE__ */ e.createElement(
|
|
1400
1408
|
"div",
|
|
1401
1409
|
{
|
|
1402
|
-
className:
|
|
1410
|
+
className: g(
|
|
1403
1411
|
ne[`${d}__button__with-item`]
|
|
1404
1412
|
)
|
|
1405
1413
|
},
|
|
1406
|
-
|
|
1414
|
+
p.element
|
|
1407
1415
|
)
|
|
1408
1416
|
)
|
|
1409
1417
|
}
|
|
@@ -1440,15 +1448,15 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1440
1448
|
source: Ya,
|
|
1441
1449
|
kind: "error"
|
|
1442
1450
|
}
|
|
1443
|
-
}, ke = "alert",
|
|
1444
|
-
var
|
|
1451
|
+
}, ke = "alert", jc = (n) => {
|
|
1452
|
+
var s = n, {
|
|
1445
1453
|
children: t,
|
|
1446
1454
|
className: a,
|
|
1447
1455
|
primaryButton: r,
|
|
1448
1456
|
secondaryButton: _,
|
|
1449
1457
|
kind: o = "info",
|
|
1450
1458
|
onClose: c
|
|
1451
|
-
} =
|
|
1459
|
+
} = s, l = P(s, [
|
|
1452
1460
|
"children",
|
|
1453
1461
|
"className",
|
|
1454
1462
|
"primaryButton",
|
|
@@ -1456,7 +1464,7 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1456
1464
|
"kind",
|
|
1457
1465
|
"onClose"
|
|
1458
1466
|
]);
|
|
1459
|
-
const
|
|
1467
|
+
const i = e.useRef(null), [d, m] = e.useState(null), u = g(
|
|
1460
1468
|
he[ke],
|
|
1461
1469
|
he[`${ke}--${o}`],
|
|
1462
1470
|
d === "medium" && he[`${ke}--medium`],
|
|
@@ -1464,11 +1472,11 @@ const xa = 8, Sa = "guide-tooltip", Da = (t, a) => new s_(t, a), Vc = (t) => {
|
|
|
1464
1472
|
a
|
|
1465
1473
|
);
|
|
1466
1474
|
return e.useEffect(() => {
|
|
1467
|
-
const h = () =>
|
|
1475
|
+
const h = () => i.current && i.current.offsetWidth <= 400 ? m("small") : i.current && i.current.offsetWidth > 400 && i.current.offsetWidth <= 800 ? m("medium") : m(null), v = Ja(() => {
|
|
1468
1476
|
h();
|
|
1469
1477
|
}, 500);
|
|
1470
1478
|
return window.addEventListener("resize", v), h(), () => window.removeEventListener("resize", v);
|
|
1471
|
-
}), /* @__PURE__ */ e.createElement("div", y({ ref:
|
|
1479
|
+
}), /* @__PURE__ */ e.createElement("div", y({ ref: i, className: u }, l), /* @__PURE__ */ e.createElement("div", { className: he[`${ke}__content`] }, /* @__PURE__ */ e.createElement("div", { className: he[`${ke}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1472
1480
|
x,
|
|
1473
1481
|
B(y({}, v_[o]), {
|
|
1474
1482
|
size: "large",
|
|
@@ -1585,30 +1593,30 @@ const E_ = "lc-Avatar-module__avatar___1zTCE", $_ = "lc-Avatar-module__avatar__s
|
|
|
1585
1593
|
size: o = "medium",
|
|
1586
1594
|
src: c,
|
|
1587
1595
|
status: l,
|
|
1588
|
-
text:
|
|
1589
|
-
type:
|
|
1590
|
-
withRim:
|
|
1596
|
+
text: n,
|
|
1597
|
+
type: s,
|
|
1598
|
+
withRim: i = !1
|
|
1591
1599
|
}) => {
|
|
1592
|
-
const d =
|
|
1600
|
+
const d = s === "image" && !c, [m, u] = e.useState(d), h = s === "image" && !!c && !m, v = s === "text", p = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, b = k_(n, p), k = r || h_(n), f = k ? y_(k) : void 0, $ = v ? { backgroundColor: k } : {}, w = g(y({
|
|
1593
1601
|
[ie[Z]]: !0,
|
|
1594
1602
|
[ie[`${Z}--${_}`]]: !0,
|
|
1595
1603
|
[ie[`${Z}--${o}`]]: !0,
|
|
1596
|
-
[ie[`${Z}--with-rim`]]:
|
|
1597
|
-
}, a ? { [`${a}`]: a } : {})), F =
|
|
1604
|
+
[ie[`${Z}--with-rim`]]: i
|
|
1605
|
+
}, a ? { [`${a}`]: a } : {})), F = g(
|
|
1598
1606
|
ie[`${Z}__status`],
|
|
1599
1607
|
ie[`${Z}__status--${_}`],
|
|
1600
1608
|
ie[`${Z}__status--${o}`],
|
|
1601
1609
|
...l ? [ie[`${Z}__status--${l}`]] : []
|
|
1602
|
-
), E =
|
|
1610
|
+
), E = g(
|
|
1603
1611
|
ie[`${Z}__icon`],
|
|
1604
1612
|
ie[`${Z}__icon--${o}`]
|
|
1605
|
-
), T =
|
|
1613
|
+
), T = g(
|
|
1606
1614
|
ie[`${Z}__rim`],
|
|
1607
1615
|
ie[`${Z}__rim--${o}`]
|
|
1608
1616
|
), S = e.useCallback(() => u(!0), []);
|
|
1609
1617
|
return e.useEffect(() => {
|
|
1610
1618
|
u(d);
|
|
1611
|
-
}, [d]), /* @__PURE__ */ e.createElement("div", { className: w, style: $ },
|
|
1619
|
+
}, [d]), /* @__PURE__ */ e.createElement("div", { className: w, style: $ }, i && /* @__PURE__ */ e.createElement(
|
|
1612
1620
|
"div",
|
|
1613
1621
|
{
|
|
1614
1622
|
"data-testid": `${Z}__rim`,
|
|
@@ -1649,15 +1657,15 @@ const S_ = "lc-Badge-module__badge___GhLnu", D_ = "lc-Badge-module__badge__dot__
|
|
|
1649
1657
|
"badge--primary": "lc-Badge-module__badge--primary___8LRpp",
|
|
1650
1658
|
"badge--secondary": "lc-Badge-module__badge--secondary___JjNIJ",
|
|
1651
1659
|
"badge--tertiary": "lc-Badge-module__badge--tertiary___e83wV"
|
|
1652
|
-
}, Tt = "badge", T_ = (
|
|
1653
|
-
var
|
|
1660
|
+
}, Tt = "badge", T_ = (n) => {
|
|
1661
|
+
var s = n, {
|
|
1654
1662
|
className: t,
|
|
1655
1663
|
count: a = 0,
|
|
1656
1664
|
max: r = 99,
|
|
1657
1665
|
kind: _ = "primary",
|
|
1658
1666
|
size: o = "medium",
|
|
1659
1667
|
type: c = "counter"
|
|
1660
|
-
} =
|
|
1668
|
+
} = s, l = P(s, [
|
|
1661
1669
|
"className",
|
|
1662
1670
|
"count",
|
|
1663
1671
|
"max",
|
|
@@ -1665,7 +1673,7 @@ const S_ = "lc-Badge-module__badge___GhLnu", D_ = "lc-Badge-module__badge__dot__
|
|
|
1665
1673
|
"size",
|
|
1666
1674
|
"type"
|
|
1667
1675
|
]);
|
|
1668
|
-
const
|
|
1676
|
+
const i = g(
|
|
1669
1677
|
t,
|
|
1670
1678
|
Dt[Tt],
|
|
1671
1679
|
Dt[`${Tt}--${_}`],
|
|
@@ -1675,7 +1683,7 @@ const S_ = "lc-Badge-module__badge___GhLnu", D_ = "lc-Badge-module__badge__dot__
|
|
|
1675
1683
|
alert: "!",
|
|
1676
1684
|
dot: /* @__PURE__ */ e.createElement("span", { className: Dt[`${Tt}__dot`] })
|
|
1677
1685
|
}[c];
|
|
1678
|
-
return /* @__PURE__ */ e.createElement("span", y({ className:
|
|
1686
|
+
return /* @__PURE__ */ e.createElement("span", y({ className: i }, l), d);
|
|
1679
1687
|
};
|
|
1680
1688
|
function B_() {
|
|
1681
1689
|
}
|
|
@@ -1686,7 +1694,7 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1686
1694
|
"btn--compact": "lc-SegmentedControl-module__btn--compact___gcSwq",
|
|
1687
1695
|
"btn--medium": "lc-SegmentedControl-module__btn--medium___w3UzC",
|
|
1688
1696
|
"btn--large": "lc-SegmentedControl-module__btn--large___yHPw4"
|
|
1689
|
-
}, I_ = "segmented-control",
|
|
1697
|
+
}, I_ = "segmented-control", Qc = ({
|
|
1690
1698
|
size: t = "medium",
|
|
1691
1699
|
buttons: a,
|
|
1692
1700
|
className: r,
|
|
@@ -1695,14 +1703,14 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1695
1703
|
fullWidth: c = !1,
|
|
1696
1704
|
onButtonClick: l = B_
|
|
1697
1705
|
}) => {
|
|
1698
|
-
const
|
|
1706
|
+
const n = g(Bt[I_], r), [s, i] = e.useState(() => _), d = typeof o == "string";
|
|
1699
1707
|
e.useEffect(() => {
|
|
1700
|
-
d &&
|
|
1708
|
+
d && i(o);
|
|
1701
1709
|
}, [o]);
|
|
1702
1710
|
const m = (h, v) => {
|
|
1703
|
-
d ||
|
|
1704
|
-
}, u = a.map(({ id: h, label: v, loading:
|
|
1705
|
-
const f = h ===
|
|
1711
|
+
d || i(h), l(h, v);
|
|
1712
|
+
}, u = a.map(({ id: h, label: v, loading: p, disabled: b, icon: k }) => {
|
|
1713
|
+
const f = h === s, $ = f ? Bt["btn--active"] : "", w = f ? !1 : p;
|
|
1706
1714
|
return /* @__PURE__ */ e.createElement(
|
|
1707
1715
|
G,
|
|
1708
1716
|
{
|
|
@@ -1713,7 +1721,7 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1713
1721
|
"aria-pressed": f,
|
|
1714
1722
|
kind: "secondary",
|
|
1715
1723
|
icon: k,
|
|
1716
|
-
className:
|
|
1724
|
+
className: g(Bt.btn, Bt[`btn--${t}`], $),
|
|
1717
1725
|
onClick: (F) => {
|
|
1718
1726
|
m(h, F);
|
|
1719
1727
|
}
|
|
@@ -1721,7 +1729,7 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1721
1729
|
v
|
|
1722
1730
|
);
|
|
1723
1731
|
});
|
|
1724
|
-
return /* @__PURE__ */ e.createElement("div", { role: "group", className:
|
|
1732
|
+
return /* @__PURE__ */ e.createElement("div", { role: "group", className: n }, u);
|
|
1725
1733
|
}, P_ = "lc-Card-module__card___GqMm2", F_ = "lc-Card-module__card__header___0ptfD", R_ = "lc-Card-module__card__header__image___QMwSu", M_ = "lc-Card-module__card__header__heading___Wkikx", L_ = "lc-Card-module__card__header__heading__title___Uxi8s", O_ = "lc-Card-module__card__header__heading__description___6LnOK", H_ = "lc-Card-module__card__content___KuDcc", z_ = "lc-Card-module__card__actions___q9sAo", G_ = "lc-Card-module__card__actions__line___TF1bt", U_ = "lc-Card-module__card__actions__buttons___PDMMR", de = {
|
|
1726
1734
|
card: P_,
|
|
1727
1735
|
card__header: F_,
|
|
@@ -1736,8 +1744,8 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1736
1744
|
card__actions__line: G_,
|
|
1737
1745
|
card__actions__buttons: U_,
|
|
1738
1746
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___lz4h-"
|
|
1739
|
-
}, Et = "card", zt = `${Et}__header`, Yt = `${zt}__heading`, At = `${Et}__actions`, W_ = `${zt}__no-image`,
|
|
1740
|
-
var d =
|
|
1747
|
+
}, Et = "card", zt = `${Et}__header`, Yt = `${zt}__heading`, At = `${Et}__actions`, W_ = `${zt}__no-image`, Zc = (i) => {
|
|
1748
|
+
var d = i, {
|
|
1741
1749
|
alt: t,
|
|
1742
1750
|
buttonsOptions: a = [],
|
|
1743
1751
|
children: r,
|
|
@@ -1745,8 +1753,8 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1745
1753
|
description: o,
|
|
1746
1754
|
expandableContent: c,
|
|
1747
1755
|
src: l,
|
|
1748
|
-
title:
|
|
1749
|
-
} = d,
|
|
1756
|
+
title: n
|
|
1757
|
+
} = d, s = P(d, [
|
|
1750
1758
|
"alt",
|
|
1751
1759
|
"buttonsOptions",
|
|
1752
1760
|
"children",
|
|
@@ -1756,15 +1764,15 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1756
1764
|
"src",
|
|
1757
1765
|
"title"
|
|
1758
1766
|
]);
|
|
1759
|
-
const [m, u] = e.useState(!1), h = m ? Gt : $t, v = m ? "Hide" : "Show more",
|
|
1760
|
-
return /* @__PURE__ */ e.createElement("div", y({ className:
|
|
1767
|
+
const [m, u] = e.useState(!1), h = m ? Gt : $t, v = m ? "Hide" : "Show more", p = (a == null ? void 0 : a.length) > 0, b = !!c, k = p || b, f = n, $ = l, w = $ ? "" : de[W_];
|
|
1768
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: g(de[Et], _) }, s), f && /* @__PURE__ */ e.createElement("div", { className: g(de[zt], w) }, $ && /* @__PURE__ */ e.createElement(
|
|
1761
1769
|
"img",
|
|
1762
1770
|
{
|
|
1763
1771
|
alt: t,
|
|
1764
1772
|
className: de[`${zt}__image`],
|
|
1765
1773
|
src: l
|
|
1766
1774
|
}
|
|
1767
|
-
), /* @__PURE__ */ e.createElement("div", { className: de[Yt] }, /* @__PURE__ */ e.createElement(je, { size: "sm", className: de[`${Yt}__title`] },
|
|
1775
|
+
), /* @__PURE__ */ e.createElement("div", { className: de[Yt] }, /* @__PURE__ */ e.createElement(je, { size: "sm", className: de[`${Yt}__title`] }, n), /* @__PURE__ */ e.createElement(M, { size: "sm", className: de[`${Yt}__description`] }, o))), /* @__PURE__ */ e.createElement(M, { as: "div", size: "md", className: de[`${Et}__content`] }, r), m && /* @__PURE__ */ e.createElement(
|
|
1768
1776
|
M,
|
|
1769
1777
|
{
|
|
1770
1778
|
as: "div",
|
|
@@ -1772,7 +1780,7 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1772
1780
|
className: de[`${Et}__expanded-content`]
|
|
1773
1781
|
},
|
|
1774
1782
|
c
|
|
1775
|
-
), k && /* @__PURE__ */ e.createElement("div", { className: de[At] }, /* @__PURE__ */ e.createElement("div", { className: de[`${At}__line`] }), /* @__PURE__ */ e.createElement("div", { className: de[`${At}__buttons`] },
|
|
1783
|
+
), k && /* @__PURE__ */ e.createElement("div", { className: de[At] }, /* @__PURE__ */ e.createElement("div", { className: de[`${At}__line`] }), /* @__PURE__ */ e.createElement("div", { className: de[`${At}__buttons`] }, p && a.map(
|
|
1776
1784
|
({ kind: F, onClick: E, children: T }) => /* @__PURE__ */ e.createElement(G, { size: "compact", kind: F, onClick: E }, T)
|
|
1777
1785
|
), b && /* @__PURE__ */ e.createElement(
|
|
1778
1786
|
G,
|
|
@@ -1795,7 +1803,7 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1795
1803
|
"children",
|
|
1796
1804
|
"className"
|
|
1797
1805
|
]);
|
|
1798
|
-
const c =
|
|
1806
|
+
const c = g(V_[Y_], a);
|
|
1799
1807
|
return /* @__PURE__ */ e.createElement(M, B(y({ as: "span", size: "sm" }, r), { className: c }), t);
|
|
1800
1808
|
}, q_ = "lc-Checkbox-module__checkbox___G7nTf", K_ = "lc-Checkbox-module__checkbox__label___-o01x", J_ = "lc-Checkbox-module__checkbox__text___P2SIq", j_ = "lc-Checkbox-module__checkbox__input___YLbVF", Q_ = "lc-Checkbox-module__checkbox__checkmark___16pfY", Z_ = "lc-Checkbox-module__checkbox__square___MHUyd", X_ = "lc-Checkbox-module__checkbox__helper___YSJ-n", Ve = {
|
|
1801
1809
|
checkbox: q_,
|
|
@@ -1807,13 +1815,13 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1807
1815
|
checkbox__square: Z_,
|
|
1808
1816
|
"checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___-lAqW",
|
|
1809
1817
|
checkbox__helper: X_
|
|
1810
|
-
}, Ye = "checkbox",
|
|
1811
|
-
(
|
|
1812
|
-
var
|
|
1818
|
+
}, Ye = "checkbox", Xc = e.forwardRef(
|
|
1819
|
+
(n, l) => {
|
|
1820
|
+
var s = n, { checked: t, disabled: a, children: r, description: _, className: o } = s, c = P(s, ["checked", "disabled", "children", "description", "className"]);
|
|
1813
1821
|
return /* @__PURE__ */ e.createElement(
|
|
1814
1822
|
"div",
|
|
1815
1823
|
{
|
|
1816
|
-
className:
|
|
1824
|
+
className: g(Ve[Ye], o, {
|
|
1817
1825
|
[Ve[`${Ye}--selected`]]: t,
|
|
1818
1826
|
[Ve[`${Ye}--disabled`]]: a
|
|
1819
1827
|
})
|
|
@@ -1874,9 +1882,9 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1874
1882
|
showNextButton: o,
|
|
1875
1883
|
showPreviousButton: c,
|
|
1876
1884
|
className: l,
|
|
1877
|
-
classNames:
|
|
1878
|
-
numberOfMonths:
|
|
1879
|
-
month:
|
|
1885
|
+
classNames: n,
|
|
1886
|
+
numberOfMonths: s,
|
|
1887
|
+
month: i,
|
|
1880
1888
|
fromMonth: d,
|
|
1881
1889
|
toMonth: m
|
|
1882
1890
|
} = t, u = () => {
|
|
@@ -1885,32 +1893,32 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1885
1893
|
typeof _ == "function" && _();
|
|
1886
1894
|
}, v = () => {
|
|
1887
1895
|
if (!d) {
|
|
1888
|
-
const f = nt(
|
|
1896
|
+
const f = nt(i, 12);
|
|
1889
1897
|
return r(f);
|
|
1890
1898
|
}
|
|
1891
|
-
const b = Math.abs(ya(
|
|
1892
|
-
|
|
1899
|
+
const b = Math.abs(ya(i, d)), k = nt(
|
|
1900
|
+
i,
|
|
1893
1901
|
!Number.isNaN(b) && b > 12 ? 12 : b
|
|
1894
1902
|
);
|
|
1895
1903
|
return r(k);
|
|
1896
|
-
},
|
|
1904
|
+
}, p = () => {
|
|
1897
1905
|
if (!m) {
|
|
1898
|
-
const f = Ea(
|
|
1906
|
+
const f = Ea(i, 12);
|
|
1899
1907
|
return r(f);
|
|
1900
1908
|
}
|
|
1901
|
-
const b = Math.abs(ya(m,
|
|
1902
|
-
|
|
1909
|
+
const b = Math.abs(ya(m, i)), k = Ea(
|
|
1910
|
+
i,
|
|
1903
1911
|
!Number.isNaN(b) && b > 12 ? 12 : b
|
|
1904
1912
|
);
|
|
1905
|
-
return
|
|
1913
|
+
return s === 2 && ta(k, m) ? r(nt(k, 1)) : r(k);
|
|
1906
1914
|
};
|
|
1907
1915
|
return /* @__PURE__ */ e.createElement("div", { className: l }, /* @__PURE__ */ e.createElement("div", { className: D[`${Ba}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1908
1916
|
"button",
|
|
1909
1917
|
{
|
|
1910
1918
|
"data-testid": "date-picker-prev-year-button",
|
|
1911
1919
|
className: Je({
|
|
1912
|
-
[
|
|
1913
|
-
[
|
|
1920
|
+
[n.navButtonPrev]: !0,
|
|
1921
|
+
[n.navButtonInteractionDisabled]: !c
|
|
1914
1922
|
}),
|
|
1915
1923
|
onClick: v
|
|
1916
1924
|
},
|
|
@@ -1920,8 +1928,8 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1920
1928
|
{
|
|
1921
1929
|
"data-testid": "date-picker-prev-month-button",
|
|
1922
1930
|
className: Je({
|
|
1923
|
-
[
|
|
1924
|
-
[
|
|
1931
|
+
[n.navButtonPrev]: !0,
|
|
1932
|
+
[n.navButtonInteractionDisabled]: !c
|
|
1925
1933
|
}),
|
|
1926
1934
|
onClick: u
|
|
1927
1935
|
},
|
|
@@ -1931,8 +1939,8 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1931
1939
|
{
|
|
1932
1940
|
"data-testid": "date-picker-next-month-button",
|
|
1933
1941
|
className: Je({
|
|
1934
|
-
[
|
|
1935
|
-
[
|
|
1942
|
+
[n.navButtonNext]: !0,
|
|
1943
|
+
[n.navButtonInteractionDisabled]: !o
|
|
1936
1944
|
}),
|
|
1937
1945
|
onClick: h
|
|
1938
1946
|
},
|
|
@@ -1942,10 +1950,10 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
1942
1950
|
{
|
|
1943
1951
|
"data-testid": "date-picker-next-year-button",
|
|
1944
1952
|
className: Je({
|
|
1945
|
-
[
|
|
1946
|
-
[
|
|
1953
|
+
[n.navButtonNext]: !0,
|
|
1954
|
+
[n.navButtonInteractionDisabled]: !o
|
|
1947
1955
|
}),
|
|
1948
|
-
onClick:
|
|
1956
|
+
onClick: p
|
|
1949
1957
|
},
|
|
1950
1958
|
/* @__PURE__ */ e.createElement(x, { source: xr, kind: "subtle" })
|
|
1951
1959
|
)));
|
|
@@ -2025,9 +2033,9 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
2025
2033
|
month: o,
|
|
2026
2034
|
fromMonth: c,
|
|
2027
2035
|
firstDayOfWeek: l,
|
|
2028
|
-
numberOfMonths:
|
|
2029
|
-
navbarElement:
|
|
2030
|
-
renderDay:
|
|
2036
|
+
numberOfMonths: n,
|
|
2037
|
+
navbarElement: s,
|
|
2038
|
+
renderDay: i,
|
|
2031
2039
|
innerRef: d
|
|
2032
2040
|
} = k, m = P(k, [
|
|
2033
2041
|
"classNames",
|
|
@@ -2056,8 +2064,8 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
2056
2064
|
},
|
|
2057
2065
|
[o, t.onMonthChange]
|
|
2058
2066
|
);
|
|
2059
|
-
let
|
|
2060
|
-
(l === 0 || l && l < 7) && (
|
|
2067
|
+
let p = 1;
|
|
2068
|
+
(l === 0 || l && l < 7) && (p = l);
|
|
2061
2069
|
const b = e.useMemo(
|
|
2062
2070
|
() => ro(r, a),
|
|
2063
2071
|
[r, a]
|
|
@@ -2065,12 +2073,12 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
2065
2073
|
return /* @__PURE__ */ e.createElement(
|
|
2066
2074
|
zr,
|
|
2067
2075
|
y({
|
|
2068
|
-
navbarElement:
|
|
2076
|
+
navbarElement: s || /* @__PURE__ */ e.createElement(
|
|
2069
2077
|
eo,
|
|
2070
2078
|
{
|
|
2071
2079
|
month: u,
|
|
2072
2080
|
classNames: b,
|
|
2073
|
-
numberOfMonths:
|
|
2081
|
+
numberOfMonths: n,
|
|
2074
2082
|
onMonthChange: v,
|
|
2075
2083
|
toMonth: _,
|
|
2076
2084
|
fromMonth: c
|
|
@@ -2078,12 +2086,12 @@ const A_ = "lc-SegmentedControl-module__btn___tfsvL", Bt = {
|
|
|
2078
2086
|
),
|
|
2079
2087
|
ref: d,
|
|
2080
2088
|
classNames: b,
|
|
2081
|
-
numberOfMonths:
|
|
2089
|
+
numberOfMonths: n,
|
|
2082
2090
|
toMonth: _,
|
|
2083
2091
|
fromMonth: c,
|
|
2084
|
-
firstDayOfWeek:
|
|
2092
|
+
firstDayOfWeek: p,
|
|
2085
2093
|
month: u,
|
|
2086
|
-
renderDay:
|
|
2094
|
+
renderDay: i || _o
|
|
2087
2095
|
}, m)
|
|
2088
2096
|
);
|
|
2089
2097
|
}, co = e.forwardRef(
|
|
@@ -2160,9 +2168,9 @@ const lo = (t) => {
|
|
|
2160
2168
|
onChange: c,
|
|
2161
2169
|
children: l
|
|
2162
2170
|
}) => {
|
|
2163
|
-
const
|
|
2171
|
+
const n = wr(
|
|
2164
2172
|
a || null
|
|
2165
|
-
), [
|
|
2173
|
+
), [s, i] = lo({
|
|
2166
2174
|
options: t,
|
|
2167
2175
|
initialSelectedItemKey: a,
|
|
2168
2176
|
initialFromDate: r,
|
|
@@ -2172,99 +2180,99 @@ const lo = (t) => {
|
|
|
2172
2180
|
children: l
|
|
2173
2181
|
});
|
|
2174
2182
|
st(() => {
|
|
2175
|
-
|
|
2183
|
+
i({
|
|
2176
2184
|
type: V.SET_FROM,
|
|
2177
2185
|
payload: { date: r }
|
|
2178
2186
|
});
|
|
2179
2187
|
}, [r]), st(() => {
|
|
2180
|
-
|
|
2188
|
+
i({
|
|
2181
2189
|
type: V.SET_TO,
|
|
2182
2190
|
payload: { date: _ }
|
|
2183
2191
|
});
|
|
2184
2192
|
}, [_]), st(() => {
|
|
2185
|
-
const
|
|
2193
|
+
const p = rr(
|
|
2186
2194
|
r,
|
|
2187
2195
|
_,
|
|
2188
2196
|
o
|
|
2189
2197
|
);
|
|
2190
|
-
|
|
2198
|
+
i({
|
|
2191
2199
|
type: V.CURRENT_MONTH_CHANGE,
|
|
2192
|
-
payload: { date:
|
|
2200
|
+
payload: { date: p }
|
|
2193
2201
|
});
|
|
2194
2202
|
}, [o, r, _]), st(() => {
|
|
2195
|
-
const { from:
|
|
2196
|
-
if (!(
|
|
2203
|
+
const { from: p, selectedItem: b, to: k } = s;
|
|
2204
|
+
if (!(p && k))
|
|
2197
2205
|
return;
|
|
2198
2206
|
const f = kt(b, t);
|
|
2199
2207
|
f && (c == null || c(B(y({}, f), {
|
|
2200
2208
|
value: {
|
|
2201
|
-
from:
|
|
2209
|
+
from: p,
|
|
2202
2210
|
to: k
|
|
2203
2211
|
}
|
|
2204
2212
|
})));
|
|
2205
|
-
}, [
|
|
2206
|
-
const { selectedItem:
|
|
2207
|
-
if (
|
|
2213
|
+
}, [s.from, s.to, s.selectedItem, t, c]), st(() => {
|
|
2214
|
+
const { selectedItem: p } = s;
|
|
2215
|
+
if (p === n.current)
|
|
2208
2216
|
return;
|
|
2209
|
-
if (!
|
|
2217
|
+
if (!p) {
|
|
2210
2218
|
c(null);
|
|
2211
2219
|
return;
|
|
2212
2220
|
}
|
|
2213
|
-
if (!kt(
|
|
2221
|
+
if (!kt(p, t))
|
|
2214
2222
|
return;
|
|
2215
2223
|
const k = t.reduce(
|
|
2216
2224
|
(f, $) => B(y({}, f), { [$.id]: $ }),
|
|
2217
2225
|
{}
|
|
2218
2226
|
);
|
|
2219
|
-
c(k[
|
|
2220
|
-
}, [c,
|
|
2227
|
+
c(k[p]);
|
|
2228
|
+
}, [c, s.selectedItem, t]);
|
|
2221
2229
|
const d = Ct(
|
|
2222
|
-
(
|
|
2223
|
-
const b = o ? ja(o,
|
|
2224
|
-
!Aa(
|
|
2230
|
+
(p) => {
|
|
2231
|
+
const b = o ? ja(o, p) >= 0 : !0;
|
|
2232
|
+
!Aa(s.from, s.to) && b && i({
|
|
2225
2233
|
type: V.NEW_TEMPORARY_TO_VALUE,
|
|
2226
|
-
payload: { date:
|
|
2234
|
+
payload: { date: p }
|
|
2227
2235
|
});
|
|
2228
2236
|
},
|
|
2229
|
-
[o,
|
|
2237
|
+
[o, s.from, s.to]
|
|
2230
2238
|
), m = Ct(
|
|
2231
|
-
(
|
|
2232
|
-
const { from: b, to: k } =
|
|
2233
|
-
ar(
|
|
2239
|
+
(p) => {
|
|
2240
|
+
const { from: b, to: k } = s;
|
|
2241
|
+
ar(p, { to: o }) && (Aa(b, k) ? i({
|
|
2234
2242
|
type: V.SELECT_FIRST_DAY,
|
|
2235
|
-
payload: { date:
|
|
2236
|
-
}) : b && aa(
|
|
2243
|
+
payload: { date: p }
|
|
2244
|
+
}) : b && aa(p, b) || b && ra(p, b) ? i({
|
|
2237
2245
|
type: V.SELECT_SECOND_DAY_AS_TO,
|
|
2238
|
-
payload: { date:
|
|
2239
|
-
}) :
|
|
2246
|
+
payload: { date: p }
|
|
2247
|
+
}) : i({
|
|
2240
2248
|
type: V.SELECT_SECOND_DAY_AS_FROM,
|
|
2241
|
-
payload: { date:
|
|
2249
|
+
payload: { date: p }
|
|
2242
2250
|
}));
|
|
2243
2251
|
},
|
|
2244
|
-
[o,
|
|
2252
|
+
[o, s.from, s.to]
|
|
2245
2253
|
), u = Ct(
|
|
2246
|
-
(
|
|
2247
|
-
if (
|
|
2248
|
-
|
|
2254
|
+
(p) => {
|
|
2255
|
+
if (p === null) {
|
|
2256
|
+
i({
|
|
2249
2257
|
type: V.NEW_SELECTED_ITEM,
|
|
2250
2258
|
payload: { selectedItem: null }
|
|
2251
2259
|
});
|
|
2252
2260
|
return;
|
|
2253
2261
|
}
|
|
2254
|
-
kt(
|
|
2262
|
+
kt(p, t) && i({
|
|
2255
2263
|
type: V.NEW_SELECTED_ITEM,
|
|
2256
|
-
payload: { selectedItem:
|
|
2264
|
+
payload: { selectedItem: p }
|
|
2257
2265
|
});
|
|
2258
2266
|
},
|
|
2259
2267
|
[t]
|
|
2260
|
-
), h = Ct((
|
|
2261
|
-
|
|
2268
|
+
), h = Ct((p) => {
|
|
2269
|
+
i({
|
|
2262
2270
|
type: V.CURRENT_MONTH_CHANGE,
|
|
2263
|
-
payload: { date:
|
|
2271
|
+
payload: { date: p }
|
|
2264
2272
|
});
|
|
2265
2273
|
}, []);
|
|
2266
2274
|
return l((() => {
|
|
2267
|
-
const { currentMonth:
|
|
2275
|
+
const { currentMonth: p, from: b, selectedItem: k, temporaryTo: f, to: $ } = s, w = Nt(
|
|
2268
2276
|
() => to(b, f),
|
|
2269
2277
|
[b, f]
|
|
2270
2278
|
), F = Nt(() => kt(k, t), [t, k]), E = Nt(() => [b, { from: b, to: f }], [b, f]), T = Nt(() => o ? { after: o } : void 0, [o]);
|
|
@@ -2279,7 +2287,7 @@ const lo = (t) => {
|
|
|
2279
2287
|
},
|
|
2280
2288
|
datepicker: {
|
|
2281
2289
|
range: !0,
|
|
2282
|
-
month:
|
|
2290
|
+
month: p,
|
|
2283
2291
|
numberOfMonths: 2,
|
|
2284
2292
|
onDayClick: m,
|
|
2285
2293
|
selectedDays: E,
|
|
@@ -2330,7 +2338,7 @@ const L = {
|
|
|
2330
2338
|
"details-card__content": "lc-DetailsCard-module__details-card__content___RNVd2",
|
|
2331
2339
|
"details-card__content--spacing": "lc-DetailsCard-module__details-card__content--spacing___QecUa",
|
|
2332
2340
|
"details-card__content--full-space": "lc-DetailsCard-module__details-card__content--full-space___2ms8I"
|
|
2333
|
-
}, O = "details-card",
|
|
2341
|
+
}, O = "details-card", el = ({
|
|
2334
2342
|
children: t,
|
|
2335
2343
|
className: a,
|
|
2336
2344
|
leftNode: r,
|
|
@@ -2338,97 +2346,112 @@ const L = {
|
|
|
2338
2346
|
label: o,
|
|
2339
2347
|
withDivider: c,
|
|
2340
2348
|
fullSpaceContent: l,
|
|
2341
|
-
openOnInit:
|
|
2342
|
-
hideLabelOnOpen:
|
|
2349
|
+
openOnInit: n = !1,
|
|
2350
|
+
hideLabelOnOpen: s,
|
|
2351
|
+
onClick: i
|
|
2343
2352
|
}) => {
|
|
2344
|
-
const [n,
|
|
2353
|
+
const [d, m] = e.useState(n), [u, h] = e.useState(0), v = e.useRef(null), p = g(
|
|
2345
2354
|
L[O],
|
|
2346
2355
|
c && L[`${O}--with-divider`],
|
|
2347
2356
|
a
|
|
2348
|
-
),
|
|
2349
|
-
|
|
2357
|
+
), b = s && d, k = () => {
|
|
2358
|
+
m((f) => !f), i == null || i();
|
|
2359
|
+
};
|
|
2360
|
+
return e.useEffect(() => {
|
|
2361
|
+
const f = !!window.IntersectionObserver;
|
|
2362
|
+
if (v.current && f) {
|
|
2363
|
+
const $ = new ResizeObserver(() => {
|
|
2364
|
+
v.current && u !== v.current.offsetHeight && h(v.current.offsetHeight);
|
|
2365
|
+
});
|
|
2366
|
+
return $.observe(v.current), () => $.disconnect();
|
|
2367
|
+
}
|
|
2368
|
+
}, [v]), /* @__PURE__ */ e.createElement("div", { className: p }, /* @__PURE__ */ e.createElement(
|
|
2350
2369
|
"button",
|
|
2351
2370
|
{
|
|
2352
|
-
className:
|
|
2371
|
+
className: g(
|
|
2353
2372
|
L[`${O}__button`],
|
|
2354
|
-
|
|
2355
|
-
|
|
2373
|
+
b && L[`${O}__button--hide`],
|
|
2374
|
+
d && L[`${O}__button--open`]
|
|
2356
2375
|
),
|
|
2357
|
-
onClick:
|
|
2358
|
-
"aria-expanded":
|
|
2359
|
-
"aria-hidden":
|
|
2376
|
+
onClick: k,
|
|
2377
|
+
"aria-expanded": d,
|
|
2378
|
+
"aria-hidden": b,
|
|
2360
2379
|
"data-testid": "details-card-button"
|
|
2361
2380
|
},
|
|
2362
2381
|
/* @__PURE__ */ e.createElement(
|
|
2363
2382
|
"div",
|
|
2364
2383
|
{
|
|
2365
|
-
className:
|
|
2384
|
+
className: g(
|
|
2366
2385
|
L[`${O}__label`],
|
|
2367
|
-
|
|
2386
|
+
s && L[`${O}__label--with-margin`]
|
|
2368
2387
|
)
|
|
2369
2388
|
},
|
|
2370
2389
|
r && /* @__PURE__ */ e.createElement("div", { className: L[`${O}__label__left-node`] }, r),
|
|
2371
2390
|
/* @__PURE__ */ e.createElement(je, { size: "xs", className: L[`${O}__label__text`] }, o),
|
|
2372
2391
|
_ && /* @__PURE__ */ e.createElement("div", { className: L[`${O}__label__right-node`] }, _)
|
|
2373
2392
|
),
|
|
2374
|
-
!
|
|
2393
|
+
!s && /* @__PURE__ */ e.createElement(
|
|
2375
2394
|
x,
|
|
2376
2395
|
{
|
|
2377
|
-
className:
|
|
2396
|
+
className: g(
|
|
2378
2397
|
L[`${O}__button__icon`],
|
|
2379
|
-
|
|
2398
|
+
d && L[`${O}__button__icon--open`]
|
|
2380
2399
|
),
|
|
2381
2400
|
source: ea
|
|
2382
2401
|
}
|
|
2383
2402
|
)
|
|
2384
|
-
),
|
|
2403
|
+
), s && /* @__PURE__ */ e.createElement(
|
|
2385
2404
|
G,
|
|
2386
2405
|
{
|
|
2387
|
-
kind:
|
|
2406
|
+
kind: d ? "float" : "text",
|
|
2388
2407
|
icon: /* @__PURE__ */ e.createElement(
|
|
2389
2408
|
x,
|
|
2390
2409
|
{
|
|
2391
2410
|
source: ea,
|
|
2392
|
-
className:
|
|
2411
|
+
className: g(
|
|
2393
2412
|
L[`${O}__float-button__icon`],
|
|
2394
|
-
|
|
2413
|
+
d && L[`${O}__float-button__icon--open`]
|
|
2395
2414
|
)
|
|
2396
2415
|
}
|
|
2397
2416
|
),
|
|
2398
|
-
className:
|
|
2417
|
+
className: g(
|
|
2399
2418
|
L[`${O}__float-button`],
|
|
2400
|
-
!
|
|
2401
|
-
|
|
2419
|
+
!d && L[`${O}__float-button--closed`],
|
|
2420
|
+
d && L[`${O}__float-button--open`]
|
|
2402
2421
|
),
|
|
2403
|
-
onClick:
|
|
2404
|
-
"aria-expanded":
|
|
2422
|
+
onClick: k,
|
|
2423
|
+
"aria-expanded": d,
|
|
2405
2424
|
"data-testid": "details-card-floating-button"
|
|
2406
2425
|
}
|
|
2407
|
-
), /* @__PURE__ */ e.createElement(
|
|
2426
|
+
), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
2408
2427
|
"div",
|
|
2409
2428
|
{
|
|
2410
|
-
className:
|
|
2429
|
+
className: g(
|
|
2411
2430
|
L[`${O}__content-wrapper`],
|
|
2412
|
-
|
|
2413
|
-
)
|
|
2431
|
+
d && L[`${O}__content-wrapper--open`]
|
|
2432
|
+
),
|
|
2433
|
+
style: {
|
|
2434
|
+
maxHeight: d ? u : 0
|
|
2435
|
+
}
|
|
2414
2436
|
},
|
|
2415
2437
|
/* @__PURE__ */ e.createElement(
|
|
2416
2438
|
"div",
|
|
2417
2439
|
{
|
|
2418
|
-
|
|
2440
|
+
ref: v,
|
|
2441
|
+
className: g(
|
|
2419
2442
|
L[`${O}__content`],
|
|
2420
2443
|
l && L[`${O}__content--full-space`],
|
|
2421
|
-
|
|
2444
|
+
s && L[`${O}__content--spacing`]
|
|
2422
2445
|
)
|
|
2423
2446
|
},
|
|
2424
2447
|
t
|
|
2425
2448
|
)
|
|
2426
|
-
));
|
|
2449
|
+
)));
|
|
2427
2450
|
}, qt = {
|
|
2428
2451
|
"details-card-info": "lc-DetailsCardInfo-module__details-card-info___D4VRk",
|
|
2429
2452
|
"details-card-info__label": "lc-DetailsCardInfo-module__details-card-info__label___U-KsO",
|
|
2430
2453
|
"details-card-info__content": "lc-DetailsCardInfo-module__details-card-info__content___TFEXS"
|
|
2431
|
-
}, Kt = "details-card-info",
|
|
2454
|
+
}, Kt = "details-card-info", tl = ({
|
|
2432
2455
|
children: t,
|
|
2433
2456
|
label: a
|
|
2434
2457
|
}) => /* @__PURE__ */ e.createElement("div", { className: qt[Kt] }, /* @__PURE__ */ e.createElement("div", { className: qt[`${Kt}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: qt[`${Kt}__content`] }, t)), Pa = {
|
|
@@ -2442,7 +2465,7 @@ const L = {
|
|
|
2442
2465
|
"children",
|
|
2443
2466
|
"className"
|
|
2444
2467
|
]);
|
|
2445
|
-
const c =
|
|
2468
|
+
const c = g(Pa[Fa], a);
|
|
2446
2469
|
return /* @__PURE__ */ e.createElement(M, B(y({ as: "span", size: "sm" }, r), { className: c }), /* @__PURE__ */ e.createElement(
|
|
2447
2470
|
x,
|
|
2448
2471
|
{
|
|
@@ -2455,15 +2478,15 @@ const L = {
|
|
|
2455
2478
|
"field-group": "lc-FieldGroup-module__field-group___gy8lp",
|
|
2456
2479
|
"field-group--inline": "lc-FieldGroup-module__field-group--inline___or4qf",
|
|
2457
2480
|
"field-group--stretched": "lc-FieldGroup-module__field-group--stretched___6rkuO"
|
|
2458
|
-
}, jt = "field-group",
|
|
2459
|
-
var
|
|
2481
|
+
}, jt = "field-group", al = (n) => {
|
|
2482
|
+
var s = n, {
|
|
2460
2483
|
className: t = "",
|
|
2461
2484
|
children: a,
|
|
2462
2485
|
description: r,
|
|
2463
2486
|
error: _,
|
|
2464
2487
|
inline: o,
|
|
2465
2488
|
stretch: c
|
|
2466
|
-
} =
|
|
2489
|
+
} = s, l = P(s, [
|
|
2467
2490
|
"className",
|
|
2468
2491
|
"children",
|
|
2469
2492
|
"description",
|
|
@@ -2471,32 +2494,32 @@ const L = {
|
|
|
2471
2494
|
"inline",
|
|
2472
2495
|
"stretch"
|
|
2473
2496
|
]);
|
|
2474
|
-
const
|
|
2497
|
+
const i = g(Jt[jt], t, {
|
|
2475
2498
|
[Jt[`${jt}--inline`]]: o,
|
|
2476
2499
|
[Jt[`${jt}--stretched`]]: c
|
|
2477
2500
|
});
|
|
2478
|
-
return /* @__PURE__ */ e.createElement("div", B(y({}, l), { className:
|
|
2501
|
+
return /* @__PURE__ */ e.createElement("div", B(y({}, l), { className: i }), a, _ && /* @__PURE__ */ e.createElement(va, null, _), r && /* @__PURE__ */ e.createElement(Ut, null, r));
|
|
2479
2502
|
}, so = "lc-Form-module__form___1nOYF", io = "lc-Form-module__form__header___U4B7t", uo = "lc-Form-module__form__footer___1-sUX", mo = "lc-Form-module__form__label___spg-J", po = "lc-Form-module__form__helper___bhfwS", gt = {
|
|
2480
2503
|
form: so,
|
|
2481
2504
|
form__header: io,
|
|
2482
2505
|
form__footer: uo,
|
|
2483
2506
|
form__label: mo,
|
|
2484
2507
|
form__helper: po
|
|
2485
|
-
}, bt = "form",
|
|
2486
|
-
var
|
|
2508
|
+
}, bt = "form", rl = (l) => {
|
|
2509
|
+
var n = l, {
|
|
2487
2510
|
className: t,
|
|
2488
2511
|
children: a,
|
|
2489
2512
|
labelText: r,
|
|
2490
2513
|
helperText: _,
|
|
2491
2514
|
formFooter: o
|
|
2492
|
-
} =
|
|
2515
|
+
} = n, c = P(n, [
|
|
2493
2516
|
"className",
|
|
2494
2517
|
"children",
|
|
2495
2518
|
"labelText",
|
|
2496
2519
|
"helperText",
|
|
2497
2520
|
"formFooter"
|
|
2498
2521
|
]);
|
|
2499
|
-
return /* @__PURE__ */ e.createElement("form", y({ className:
|
|
2522
|
+
return /* @__PURE__ */ e.createElement("form", y({ className: g(gt[bt], t) }, c), (r || _) && /* @__PURE__ */ e.createElement("div", { className: gt[`${bt}__header`] }, r && /* @__PURE__ */ e.createElement(je, { size: "sm", className: gt[`${bt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(M, { as: "p", size: "sm", className: gt[`${bt}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: gt[`${bt}__footer`] }, o));
|
|
2500
2523
|
}, q = {
|
|
2501
2524
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
2502
2525
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
@@ -2514,7 +2537,7 @@ const L = {
|
|
|
2514
2537
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___DCBjC",
|
|
2515
2538
|
"form-field__content": "lc-FormField-module__form-field__content___XaOx3",
|
|
2516
2539
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___NpVw4"
|
|
2517
|
-
}, K = "form-field",
|
|
2540
|
+
}, K = "form-field", _l = ({
|
|
2518
2541
|
inline: t,
|
|
2519
2542
|
error: a,
|
|
2520
2543
|
description: r,
|
|
@@ -2522,10 +2545,10 @@ const L = {
|
|
|
2522
2545
|
labelAdornment: o,
|
|
2523
2546
|
className: c,
|
|
2524
2547
|
labelFor: l,
|
|
2525
|
-
children:
|
|
2526
|
-
labelRightNode:
|
|
2548
|
+
children: n,
|
|
2549
|
+
labelRightNode: s
|
|
2527
2550
|
}) => {
|
|
2528
|
-
const
|
|
2551
|
+
const i = e.useRef(null), [d, m] = e.useState("auto"), u = g(
|
|
2529
2552
|
q[K],
|
|
2530
2553
|
{
|
|
2531
2554
|
[q[`${K}--inline`]]: t
|
|
@@ -2533,29 +2556,29 @@ const L = {
|
|
|
2533
2556
|
c
|
|
2534
2557
|
);
|
|
2535
2558
|
return e.useEffect(() => {
|
|
2536
|
-
const h =
|
|
2559
|
+
const h = i;
|
|
2537
2560
|
return t && h.current ? m(`${h.current.clientHeight}px`) : m("auto");
|
|
2538
|
-
}), /* @__PURE__ */ e.createElement("div", { className: u },
|
|
2561
|
+
}), /* @__PURE__ */ e.createElement("div", { className: u }, s && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2539
2562
|
"div",
|
|
2540
2563
|
{
|
|
2541
|
-
className:
|
|
2564
|
+
className: g(
|
|
2542
2565
|
q[`${K}__label-right-node`],
|
|
2543
2566
|
q[`${K}__label-right-node--inline`]
|
|
2544
2567
|
)
|
|
2545
2568
|
},
|
|
2546
|
-
|
|
2569
|
+
s
|
|
2547
2570
|
), /* @__PURE__ */ e.createElement("div", { className: q[`${K}__row-break`] })), /* @__PURE__ */ e.createElement(
|
|
2548
2571
|
"div",
|
|
2549
2572
|
{
|
|
2550
|
-
className:
|
|
2573
|
+
className: g(
|
|
2551
2574
|
q[`${K}__wrapper`],
|
|
2552
2575
|
t && q[`${K}__wrapper--inline`]
|
|
2553
2576
|
)
|
|
2554
2577
|
},
|
|
2555
|
-
(_ ||
|
|
2578
|
+
(_ || s) && /* @__PURE__ */ e.createElement(
|
|
2556
2579
|
"div",
|
|
2557
2580
|
{
|
|
2558
|
-
className:
|
|
2581
|
+
className: g(
|
|
2559
2582
|
q[`${K}__label`],
|
|
2560
2583
|
t && q[`${K}__label--inline`],
|
|
2561
2584
|
!_ && q[`${K}__label--no-text`]
|
|
@@ -2564,7 +2587,7 @@ const L = {
|
|
|
2564
2587
|
_ && /* @__PURE__ */ e.createElement(
|
|
2565
2588
|
"div",
|
|
2566
2589
|
{
|
|
2567
|
-
className:
|
|
2590
|
+
className: g(
|
|
2568
2591
|
q[`${K}__label-wrapper`],
|
|
2569
2592
|
t && q[`${K}__label-wrapper--inline`]
|
|
2570
2593
|
),
|
|
@@ -2583,7 +2606,7 @@ const L = {
|
|
|
2583
2606
|
o && /* @__PURE__ */ e.createElement(
|
|
2584
2607
|
"div",
|
|
2585
2608
|
{
|
|
2586
|
-
className:
|
|
2609
|
+
className: g(
|
|
2587
2610
|
q[`${K}__label-adornment`],
|
|
2588
2611
|
t && q[`${K}__label-adornment--inline`]
|
|
2589
2612
|
)
|
|
@@ -2591,12 +2614,12 @@ const L = {
|
|
|
2591
2614
|
o
|
|
2592
2615
|
)
|
|
2593
2616
|
),
|
|
2594
|
-
|
|
2617
|
+
s && !t && /* @__PURE__ */ e.createElement("div", { className: g(q[`${K}__label-right-node`]) }, s)
|
|
2595
2618
|
),
|
|
2596
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
2619
|
+
/* @__PURE__ */ e.createElement("div", { className: g(q[`${K}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: i }, n), a && /* @__PURE__ */ e.createElement(va, null, a), !a && r && /* @__PURE__ */ e.createElement(
|
|
2597
2620
|
Ut,
|
|
2598
2621
|
{
|
|
2599
|
-
className:
|
|
2622
|
+
className: g(q[`${K}__content__description`])
|
|
2600
2623
|
},
|
|
2601
2624
|
r
|
|
2602
2625
|
))
|
|
@@ -2606,7 +2629,7 @@ const L = {
|
|
|
2606
2629
|
"form-group__header": "lc-FormGroup-module__form-group__header___DgGmR",
|
|
2607
2630
|
"form-group__label": "lc-FormGroup-module__form-group__label___NC-JW",
|
|
2608
2631
|
"form-group__helper": "lc-FormGroup-module__form-group__helper___SRuxe"
|
|
2609
|
-
}, Pt = "form-group",
|
|
2632
|
+
}, Pt = "form-group", ol = (c) => {
|
|
2610
2633
|
var l = c, {
|
|
2611
2634
|
className: t = "",
|
|
2612
2635
|
children: a,
|
|
@@ -2618,13 +2641,13 @@ const L = {
|
|
|
2618
2641
|
"labelText",
|
|
2619
2642
|
"helperText"
|
|
2620
2643
|
]);
|
|
2621
|
-
const
|
|
2644
|
+
const n = g(It[Pt], t);
|
|
2622
2645
|
return /* @__PURE__ */ e.createElement(
|
|
2623
2646
|
"div",
|
|
2624
2647
|
B(y(B(y({}, o), {
|
|
2625
2648
|
role: "group"
|
|
2626
2649
|
}), r && { "aria-label": r }), {
|
|
2627
|
-
className:
|
|
2650
|
+
className: n
|
|
2628
2651
|
}),
|
|
2629
2652
|
/* @__PURE__ */ e.createElement("div", { className: It[`${Pt}__header`] }, /* @__PURE__ */ e.createElement(je, { as: "div", size: "sm", className: It[`${Pt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(M, { as: "div", size: "sm", className: It[`${Pt}__helper`] }, _)),
|
|
2630
2653
|
a
|
|
@@ -2645,23 +2668,23 @@ const L = {
|
|
|
2645
2668
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
2646
2669
|
}, Te = "input", Ra = (t, a) => e.cloneElement(t.source, {
|
|
2647
2670
|
"data-testid": `input-icon-${t.place}`,
|
|
2648
|
-
className:
|
|
2671
|
+
className: g(
|
|
2649
2672
|
De[`${Te}__icon`],
|
|
2650
2673
|
De[`${Te}__icon--${t.place}`],
|
|
2651
2674
|
{
|
|
2652
2675
|
[De[`${Te}__icon--disabled`]]: a
|
|
2653
2676
|
}
|
|
2654
2677
|
)
|
|
2655
|
-
}),
|
|
2656
|
-
(
|
|
2657
|
-
var
|
|
2678
|
+
}), cl = e.forwardRef(
|
|
2679
|
+
(s, n) => {
|
|
2680
|
+
var i = s, {
|
|
2658
2681
|
inputSize: t = "medium",
|
|
2659
2682
|
error: a = !1,
|
|
2660
2683
|
disabled: r,
|
|
2661
2684
|
icon: _ = null,
|
|
2662
2685
|
className: o,
|
|
2663
2686
|
cropOnBlur: c = !0
|
|
2664
|
-
} =
|
|
2687
|
+
} = i, l = P(i, [
|
|
2665
2688
|
"inputSize",
|
|
2666
2689
|
"error",
|
|
2667
2690
|
"disabled",
|
|
@@ -2669,7 +2692,7 @@ const L = {
|
|
|
2669
2692
|
"className",
|
|
2670
2693
|
"cropOnBlur"
|
|
2671
2694
|
]);
|
|
2672
|
-
const [d, m] = e.useState(!1), [u, h] = e.useState(!1), { type: v, onFocus:
|
|
2695
|
+
const [d, m] = e.useState(!1), [u, h] = e.useState(!1), { type: v, onFocus: p, onBlur: b } = l, k = g(
|
|
2673
2696
|
o,
|
|
2674
2697
|
De[Te],
|
|
2675
2698
|
De[`${Te}--${t}`],
|
|
@@ -2683,9 +2706,9 @@ const L = {
|
|
|
2683
2706
|
return /* @__PURE__ */ e.createElement("div", { className: k, "aria-disabled": r, "tab-index": "0" }, w && Ra(_, r), /* @__PURE__ */ e.createElement(
|
|
2684
2707
|
"input",
|
|
2685
2708
|
B(y({}, l), {
|
|
2686
|
-
ref:
|
|
2709
|
+
ref: n,
|
|
2687
2710
|
onFocus: (E) => {
|
|
2688
|
-
m(!0),
|
|
2711
|
+
m(!0), p == null || p(E);
|
|
2689
2712
|
},
|
|
2690
2713
|
onBlur: (E) => {
|
|
2691
2714
|
m(!1), b == null || b(E);
|
|
@@ -2708,7 +2731,7 @@ const L = {
|
|
|
2708
2731
|
), bo = "lc-Link-module__link___kqx52", Ma = {
|
|
2709
2732
|
link: bo,
|
|
2710
2733
|
"link--bold": "lc-Link-module__link--bold___1rGdO"
|
|
2711
|
-
}, La = "link",
|
|
2734
|
+
}, La = "link", ll = (_) => {
|
|
2712
2735
|
var o = _, {
|
|
2713
2736
|
bold: t = !1,
|
|
2714
2737
|
className: a = ""
|
|
@@ -2719,7 +2742,7 @@ const L = {
|
|
|
2719
2742
|
return /* @__PURE__ */ e.createElement(
|
|
2720
2743
|
"a",
|
|
2721
2744
|
y({
|
|
2722
|
-
className:
|
|
2745
|
+
className: g(
|
|
2723
2746
|
Ma[La],
|
|
2724
2747
|
t && Ma[`${La}--bold`],
|
|
2725
2748
|
a
|
|
@@ -2739,15 +2762,15 @@ const L = {
|
|
|
2739
2762
|
modal__heading: ho,
|
|
2740
2763
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
2741
2764
|
modal__footer: ko
|
|
2742
|
-
}, Ft = "modal-base", yo = (
|
|
2743
|
-
var
|
|
2765
|
+
}, Ft = "modal-base", yo = (n) => {
|
|
2766
|
+
var s = n, {
|
|
2744
2767
|
children: t,
|
|
2745
2768
|
className: a = "",
|
|
2746
2769
|
onClose: r,
|
|
2747
2770
|
closeOnEscPress: _ = !0,
|
|
2748
2771
|
closeOnOverlayPress: o = !0,
|
|
2749
2772
|
fullSpaceContent: c
|
|
2750
|
-
} =
|
|
2773
|
+
} = s, l = P(s, [
|
|
2751
2774
|
"children",
|
|
2752
2775
|
"className",
|
|
2753
2776
|
"onClose",
|
|
@@ -2755,7 +2778,7 @@ const L = {
|
|
|
2755
2778
|
"closeOnOverlayPress",
|
|
2756
2779
|
"fullSpaceContent"
|
|
2757
2780
|
]);
|
|
2758
|
-
const
|
|
2781
|
+
const i = g(
|
|
2759
2782
|
ue[Ft],
|
|
2760
2783
|
a,
|
|
2761
2784
|
c && ue[`${Ft}--full-space`]
|
|
@@ -2776,7 +2799,7 @@ const L = {
|
|
|
2776
2799
|
{
|
|
2777
2800
|
"data-testid": "lc-modal-overlay",
|
|
2778
2801
|
onMouseDown: d,
|
|
2779
|
-
className:
|
|
2802
|
+
className: g(
|
|
2780
2803
|
ue[`${Ft}__overlay`],
|
|
2781
2804
|
ue[`${Ft}__overlay--visible`]
|
|
2782
2805
|
)
|
|
@@ -2786,7 +2809,7 @@ const L = {
|
|
|
2786
2809
|
y({
|
|
2787
2810
|
role: "dialog",
|
|
2788
2811
|
"aria-modal": !0,
|
|
2789
|
-
className:
|
|
2812
|
+
className: i
|
|
2790
2813
|
}, l),
|
|
2791
2814
|
t
|
|
2792
2815
|
)
|
|
@@ -2800,15 +2823,15 @@ const L = {
|
|
|
2800
2823
|
{
|
|
2801
2824
|
kind: "plain",
|
|
2802
2825
|
title: "Close modal",
|
|
2803
|
-
className:
|
|
2826
|
+
className: g(
|
|
2804
2827
|
ue["modal-base__close"],
|
|
2805
2828
|
t && ue["modal-base__close--label-type"]
|
|
2806
2829
|
),
|
|
2807
2830
|
onClick: r,
|
|
2808
2831
|
icon: /* @__PURE__ */ e.createElement(x, { source: Ne, size: "medium", customColor: a })
|
|
2809
2832
|
}
|
|
2810
|
-
), qe = "modal",
|
|
2811
|
-
var d =
|
|
2833
|
+
), qe = "modal", nl = (i) => {
|
|
2834
|
+
var d = i, {
|
|
2812
2835
|
children: t,
|
|
2813
2836
|
className: a = "",
|
|
2814
2837
|
heading: r,
|
|
@@ -2816,8 +2839,8 @@ const L = {
|
|
|
2816
2839
|
fullSpaceContent: o,
|
|
2817
2840
|
footer: c,
|
|
2818
2841
|
onClose: l,
|
|
2819
|
-
contentClassName:
|
|
2820
|
-
} = d,
|
|
2842
|
+
contentClassName: n
|
|
2843
|
+
} = d, s = P(d, [
|
|
2821
2844
|
"children",
|
|
2822
2845
|
"className",
|
|
2823
2846
|
"heading",
|
|
@@ -2827,7 +2850,7 @@ const L = {
|
|
|
2827
2850
|
"onClose",
|
|
2828
2851
|
"contentClassName"
|
|
2829
2852
|
]);
|
|
2830
|
-
const m =
|
|
2853
|
+
const m = g(ue[qe], a), u = typeof t == "string", h = (v) => {
|
|
2831
2854
|
v.preventDefault(), v.stopPropagation(), l();
|
|
2832
2855
|
};
|
|
2833
2856
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2836,7 +2859,7 @@ const L = {
|
|
|
2836
2859
|
className: m,
|
|
2837
2860
|
fullSpaceContent: o,
|
|
2838
2861
|
onClose: l
|
|
2839
|
-
},
|
|
2862
|
+
}, s),
|
|
2840
2863
|
_ && /* @__PURE__ */ e.createElement("div", { className: ue[`${qe}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
2841
2864
|
je,
|
|
2842
2865
|
{
|
|
@@ -2866,13 +2889,13 @@ const L = {
|
|
|
2866
2889
|
"div",
|
|
2867
2890
|
{
|
|
2868
2891
|
"data-testid": "modal-body",
|
|
2869
|
-
className:
|
|
2892
|
+
className: g(ue[`${qe}__body`], n)
|
|
2870
2893
|
},
|
|
2871
2894
|
u ? /* @__PURE__ */ e.createElement(M, { as: "div" }, t) : t
|
|
2872
2895
|
),
|
|
2873
2896
|
c && /* @__PURE__ */ e.createElement("div", { className: ue[`${qe}__footer`] }, c)
|
|
2874
2897
|
);
|
|
2875
|
-
},
|
|
2898
|
+
}, sl = ({
|
|
2876
2899
|
children: t,
|
|
2877
2900
|
className: a = "",
|
|
2878
2901
|
parentElementName: r = "body",
|
|
@@ -2892,7 +2915,7 @@ const L = {
|
|
|
2892
2915
|
"modal-header__heading-body": "lc-ModalHeader-module__modal-header__heading-body___HHEF-",
|
|
2893
2916
|
"modal-header__heading-title": "lc-ModalHeader-module__modal-header__heading-title___2R9pm",
|
|
2894
2917
|
"modal-header__heading-description": "lc-ModalHeader-module__modal-header__heading-description___54Xvf"
|
|
2895
|
-
}, tt = "modal-header",
|
|
2918
|
+
}, tt = "modal-header", il = ({
|
|
2896
2919
|
title: t,
|
|
2897
2920
|
iconProps: a,
|
|
2898
2921
|
avatarProps: r,
|
|
@@ -2933,7 +2956,7 @@ const L = {
|
|
|
2933
2956
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___yaRvQ",
|
|
2934
2957
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___D90rG",
|
|
2935
2958
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___TMxRx"
|
|
2936
|
-
}, rt = "numeric-input",
|
|
2959
|
+
}, rt = "numeric-input", dl = (d) => {
|
|
2937
2960
|
var m = d, {
|
|
2938
2961
|
className: t,
|
|
2939
2962
|
error: a,
|
|
@@ -2942,9 +2965,9 @@ const L = {
|
|
|
2942
2965
|
min: o,
|
|
2943
2966
|
disabled: c,
|
|
2944
2967
|
noControls: l,
|
|
2945
|
-
style:
|
|
2946
|
-
onChange:
|
|
2947
|
-
} = m,
|
|
2968
|
+
style: n,
|
|
2969
|
+
onChange: s
|
|
2970
|
+
} = m, i = P(m, [
|
|
2948
2971
|
"className",
|
|
2949
2972
|
"error",
|
|
2950
2973
|
"value",
|
|
@@ -2955,7 +2978,7 @@ const L = {
|
|
|
2955
2978
|
"style",
|
|
2956
2979
|
"onChange"
|
|
2957
2980
|
]);
|
|
2958
|
-
const u = e.useRef(null), h =
|
|
2981
|
+
const u = e.useRef(null), h = g(
|
|
2959
2982
|
at[rt],
|
|
2960
2983
|
{
|
|
2961
2984
|
[at[`${rt}--error`]]: a,
|
|
@@ -2963,9 +2986,9 @@ const L = {
|
|
|
2963
2986
|
[at[`${rt}--disabled`]]: c
|
|
2964
2987
|
},
|
|
2965
2988
|
t
|
|
2966
|
-
), v = (E) =>
|
|
2989
|
+
), v = (E) => s(String(E)), p = (E) => _ !== void 0 && E > _ ? _ : o !== void 0 && E < o ? o : E, b = (E) => {
|
|
2967
2990
|
const T = parseInt(r, 10) + E;
|
|
2968
|
-
return v(
|
|
2991
|
+
return v(p(T));
|
|
2969
2992
|
}, k = (E) => {
|
|
2970
2993
|
E.key === z.arrowDown && (E.preventDefault(), b(-1)), E.key === z.arrowUp && (E.preventDefault(), b(1));
|
|
2971
2994
|
}, f = (E, T) => T !== void 0 && parseInt(E, 10) === T, $ = (E) => {
|
|
@@ -2977,7 +3000,7 @@ const L = {
|
|
|
2977
3000
|
if (T === "" || T === "-")
|
|
2978
3001
|
return v(T);
|
|
2979
3002
|
const S = parseInt(T, 10);
|
|
2980
|
-
return v(
|
|
3003
|
+
return v(p(S));
|
|
2981
3004
|
}, w = () => {
|
|
2982
3005
|
var E;
|
|
2983
3006
|
return (E = u.current) == null || E.focus(), b(1);
|
|
@@ -2985,12 +3008,12 @@ const L = {
|
|
|
2985
3008
|
var E;
|
|
2986
3009
|
return (E = u.current) == null || E.focus(), b(-1);
|
|
2987
3010
|
};
|
|
2988
|
-
return /* @__PURE__ */ e.createElement("div", { className: h, style:
|
|
3011
|
+
return /* @__PURE__ */ e.createElement("div", { className: h, style: n }, /* @__PURE__ */ e.createElement(
|
|
2989
3012
|
"input",
|
|
2990
3013
|
B(y({
|
|
2991
3014
|
type: "text",
|
|
2992
3015
|
ref: u
|
|
2993
|
-
},
|
|
3016
|
+
}, i), {
|
|
2994
3017
|
value: r,
|
|
2995
3018
|
disabled: c,
|
|
2996
3019
|
onChange: $,
|
|
@@ -3041,12 +3064,12 @@ function Eo(t, a) {
|
|
|
3041
3064
|
if (a && a.length > 1) {
|
|
3042
3065
|
const _ = t.map((o) => o.key).filter((o) => a.includes(o));
|
|
3043
3066
|
for (let o = 0; o < _.length; o++) {
|
|
3044
|
-
const c = _[o], l = _[o + 1],
|
|
3067
|
+
const c = _[o], l = _[o + 1], n = _[o - 1], s = l && Math.abs(
|
|
3045
3068
|
t.findIndex((d) => d.key === l) - t.findIndex((d) => d.key === c)
|
|
3046
|
-
) === 1,
|
|
3047
|
-
t.findIndex((d) => d.key ===
|
|
3069
|
+
) === 1, i = n && Math.abs(
|
|
3070
|
+
t.findIndex((d) => d.key === n) - t.findIndex((d) => d.key === c)
|
|
3048
3071
|
) === 1;
|
|
3049
|
-
|
|
3072
|
+
s && i ? r[c] = "middle" : s ? r[c] = "top" : i && (r[c] = "bottom");
|
|
3050
3073
|
}
|
|
3051
3074
|
}
|
|
3052
3075
|
return r;
|
|
@@ -3073,37 +3096,37 @@ const j = {
|
|
|
3073
3096
|
isAdjacentStyleApplied: _,
|
|
3074
3097
|
onSelect: o
|
|
3075
3098
|
}) => {
|
|
3076
|
-
const c = (
|
|
3099
|
+
const c = (n) => n != null && n.customElement ? /* @__PURE__ */ e.createElement("div", { className: j[`${ye}__custom`] }, n.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, n.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3077
3100
|
"input",
|
|
3078
3101
|
{
|
|
3079
3102
|
type: "checkbox",
|
|
3080
3103
|
className: j[`${ye}__checkbox`],
|
|
3081
3104
|
checked: a
|
|
3082
3105
|
}
|
|
3083
|
-
),
|
|
3106
|
+
), n.icon && /* @__PURE__ */ e.createElement(
|
|
3084
3107
|
x,
|
|
3085
3108
|
{
|
|
3086
3109
|
className: j[`${ye}__icon`],
|
|
3087
3110
|
kind: "link",
|
|
3088
|
-
source:
|
|
3111
|
+
source: n.icon
|
|
3089
3112
|
}
|
|
3090
|
-
),
|
|
3113
|
+
), n.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3091
3114
|
"img",
|
|
3092
3115
|
{
|
|
3093
|
-
className:
|
|
3094
|
-
src:
|
|
3095
|
-
alt:
|
|
3116
|
+
className: g(j[`${ye}__avatar`]),
|
|
3117
|
+
src: n.avatarSrc,
|
|
3118
|
+
alt: n.name
|
|
3096
3119
|
}
|
|
3097
3120
|
), /* @__PURE__ */ e.createElement("div", { className: j[`${ye}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3098
3121
|
"span",
|
|
3099
3122
|
{
|
|
3100
|
-
className:
|
|
3101
|
-
[j[`${ye}__main-label`]]:
|
|
3123
|
+
className: g({
|
|
3124
|
+
[j[`${ye}__main-label`]]: n.secondaryText
|
|
3102
3125
|
})
|
|
3103
3126
|
},
|
|
3104
|
-
|
|
3105
|
-
),
|
|
3106
|
-
!
|
|
3127
|
+
n.name
|
|
3128
|
+
), n.secondaryText && /* @__PURE__ */ e.createElement("span", { className: j[`${ye}__secondary-label`] }, n.secondaryText))), l = (n) => {
|
|
3129
|
+
!n.disabled && o(n);
|
|
3107
3130
|
};
|
|
3108
3131
|
return t.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
3109
3132
|
"li",
|
|
@@ -3117,8 +3140,8 @@ const j = {
|
|
|
3117
3140
|
"li",
|
|
3118
3141
|
{
|
|
3119
3142
|
"data-testid": t.key,
|
|
3120
|
-
ref: (
|
|
3121
|
-
r === t.key && (
|
|
3143
|
+
ref: (n) => {
|
|
3144
|
+
r === t.key && (n == null || n.scrollIntoView({ block: "nearest" }));
|
|
3122
3145
|
},
|
|
3123
3146
|
role: "option",
|
|
3124
3147
|
"aria-current": r === t.key,
|
|
@@ -3127,7 +3150,7 @@ const j = {
|
|
|
3127
3150
|
id: t.key,
|
|
3128
3151
|
key: t.key,
|
|
3129
3152
|
"data-adjacent": _,
|
|
3130
|
-
className:
|
|
3153
|
+
className: g(j[ye], {
|
|
3131
3154
|
[j[`${ye}__custom`]]: t == null ? void 0 : t.customElement
|
|
3132
3155
|
}),
|
|
3133
3156
|
onClick: () => l(t)
|
|
@@ -3150,18 +3173,18 @@ const j = {
|
|
|
3150
3173
|
selectAllOptionText: o,
|
|
3151
3174
|
isMultiSelect: c,
|
|
3152
3175
|
onClose: l,
|
|
3153
|
-
onSelect:
|
|
3154
|
-
onSelectAll:
|
|
3176
|
+
onSelect: n,
|
|
3177
|
+
onSelectAll: s
|
|
3155
3178
|
}) => {
|
|
3156
|
-
const
|
|
3179
|
+
const i = g(j[_a], {
|
|
3157
3180
|
[j[`${_a}__no-results`]]: a.length === 0
|
|
3158
3181
|
}), [d, m] = e.useState(
|
|
3159
3182
|
null
|
|
3160
|
-
), u = e.useRef(-1), h = e.useRef(0), v = e.useRef(null), [
|
|
3183
|
+
), u = e.useRef(-1), h = e.useRef(0), v = e.useRef(null), [p, b] = e.useState({}), k = (S) => {
|
|
3161
3184
|
if (S.key === z.esc && (S.preventDefault(), l()), S.key === z.arrowUp && u.current > 0 && (S.preventDefault(), u.current = $(), m(a[u.current].key)), S.key === z.arrowDown && u.current + 1 < a.length && (S.preventDefault(), u.current = w(), m(a[u.current].key)), S.key === z.enter && a[u.current] && !a[u.current].disabled) {
|
|
3162
3185
|
if (S.preventDefault(), a[u.current].key === ct)
|
|
3163
|
-
return
|
|
3164
|
-
|
|
3186
|
+
return s();
|
|
3187
|
+
n(a[u.current]);
|
|
3165
3188
|
}
|
|
3166
3189
|
};
|
|
3167
3190
|
e.useEffect(() => {
|
|
@@ -3185,7 +3208,7 @@ const j = {
|
|
|
3185
3208
|
break;
|
|
3186
3209
|
}
|
|
3187
3210
|
return h.current = u.current, u.current;
|
|
3188
|
-
}, F = () =>
|
|
3211
|
+
}, F = () => s(), E = (S) => r ? r.includes(S) : !1, T = () => !c || c && !o ? null : /* @__PURE__ */ e.createElement(
|
|
3189
3212
|
"li",
|
|
3190
3213
|
{
|
|
3191
3214
|
ref: (S) => {
|
|
@@ -3195,7 +3218,7 @@ const j = {
|
|
|
3195
3218
|
"aria-current": d === ct,
|
|
3196
3219
|
id: ct,
|
|
3197
3220
|
key: ct,
|
|
3198
|
-
className:
|
|
3221
|
+
className: g(
|
|
3199
3222
|
j[Ha],
|
|
3200
3223
|
j[`${Ha}--select-all`]
|
|
3201
3224
|
),
|
|
@@ -3203,11 +3226,11 @@ const j = {
|
|
|
3203
3226
|
},
|
|
3204
3227
|
o
|
|
3205
3228
|
);
|
|
3206
|
-
return t ? a.length === 0 ? /* @__PURE__ */ e.createElement("div", { className: j["list-wrapper"] }, /* @__PURE__ */ e.createElement("div", { className:
|
|
3229
|
+
return t ? a.length === 0 ? /* @__PURE__ */ e.createElement("div", { className: j["list-wrapper"] }, /* @__PURE__ */ e.createElement("div", { className: i }, _)) : /* @__PURE__ */ e.createElement("div", { className: j["list-wrapper"] }, /* @__PURE__ */ e.createElement(
|
|
3207
3230
|
"ul",
|
|
3208
3231
|
{
|
|
3209
3232
|
ref: v,
|
|
3210
|
-
className:
|
|
3233
|
+
className: i,
|
|
3211
3234
|
role: "listbox",
|
|
3212
3235
|
tabIndex: -1
|
|
3213
3236
|
},
|
|
@@ -3217,9 +3240,9 @@ const j = {
|
|
|
3217
3240
|
{
|
|
3218
3241
|
item: S,
|
|
3219
3242
|
isItemSelected: E(S.key),
|
|
3220
|
-
isAdjacentStyleApplied:
|
|
3243
|
+
isAdjacentStyleApplied: p[S.key],
|
|
3221
3244
|
currentItemKey: d,
|
|
3222
|
-
onSelect:
|
|
3245
|
+
onSelect: n
|
|
3223
3246
|
}
|
|
3224
3247
|
))
|
|
3225
3248
|
)) : null;
|
|
@@ -3248,18 +3271,18 @@ const j = {
|
|
|
3248
3271
|
isItemSelected: o,
|
|
3249
3272
|
isOpen: c,
|
|
3250
3273
|
isRequired: l,
|
|
3251
|
-
isMultiSelect:
|
|
3252
|
-
size:
|
|
3253
|
-
hideClearButton:
|
|
3274
|
+
isMultiSelect: n,
|
|
3275
|
+
size: s = "medium",
|
|
3276
|
+
hideClearButton: i,
|
|
3254
3277
|
onTrigger: d,
|
|
3255
3278
|
onClear: m,
|
|
3256
3279
|
testId: u
|
|
3257
3280
|
}) => {
|
|
3258
|
-
const h = e.useRef(null), v =
|
|
3281
|
+
const h = e.useRef(null), v = g(
|
|
3259
3282
|
oe[ae],
|
|
3260
|
-
oe[`${ae}--${
|
|
3261
|
-
|
|
3262
|
-
|
|
3283
|
+
oe[`${ae}--${s}`],
|
|
3284
|
+
n && oe[`${ae}--multi-select`],
|
|
3285
|
+
n && o && oe[`${ae}--multi-select--with-items`],
|
|
3263
3286
|
r && oe[`${ae}--disabled`],
|
|
3264
3287
|
c && oe[`${ae}--focused`],
|
|
3265
3288
|
_ && oe[`${ae}--error`]
|
|
@@ -3272,27 +3295,27 @@ const j = {
|
|
|
3272
3295
|
a || document.removeEventListener("keydown", f);
|
|
3273
3296
|
};
|
|
3274
3297
|
}, [a]);
|
|
3275
|
-
const
|
|
3298
|
+
const p = (f) => {
|
|
3276
3299
|
d(f);
|
|
3277
3300
|
}, b = (f) => {
|
|
3278
3301
|
f.stopPropagation(), m();
|
|
3279
|
-
}, k = !
|
|
3302
|
+
}, k = !i && o && !r && !l;
|
|
3280
3303
|
return /* @__PURE__ */ e.createElement(
|
|
3281
3304
|
"div",
|
|
3282
3305
|
{
|
|
3283
3306
|
ref: h,
|
|
3284
3307
|
className: v,
|
|
3285
|
-
onClick:
|
|
3308
|
+
onClick: p,
|
|
3286
3309
|
tabIndex: 0,
|
|
3287
3310
|
"data-testid": u
|
|
3288
3311
|
},
|
|
3289
3312
|
/* @__PURE__ */ e.createElement(
|
|
3290
3313
|
"div",
|
|
3291
3314
|
{
|
|
3292
|
-
className:
|
|
3315
|
+
className: g(
|
|
3293
3316
|
oe[`${ae}__content`],
|
|
3294
|
-
oe[`${ae}__content--${
|
|
3295
|
-
|
|
3317
|
+
oe[`${ae}__content--${s}`],
|
|
3318
|
+
n && o && oe[`${ae}__content--with-items`]
|
|
3296
3319
|
)
|
|
3297
3320
|
},
|
|
3298
3321
|
t
|
|
@@ -3300,9 +3323,9 @@ const j = {
|
|
|
3300
3323
|
/* @__PURE__ */ e.createElement(
|
|
3301
3324
|
"div",
|
|
3302
3325
|
{
|
|
3303
|
-
className:
|
|
3326
|
+
className: g(
|
|
3304
3327
|
oe[`${ae}__controls`],
|
|
3305
|
-
oe[`${ae}__controls--${
|
|
3328
|
+
oe[`${ae}__controls--${s}`]
|
|
3306
3329
|
)
|
|
3307
3330
|
},
|
|
3308
3331
|
k && /* @__PURE__ */ e.createElement(
|
|
@@ -3354,9 +3377,9 @@ const j = {
|
|
|
3354
3377
|
kind: o = "default",
|
|
3355
3378
|
onRemove: c,
|
|
3356
3379
|
outline: l = !1,
|
|
3357
|
-
leftNode:
|
|
3358
|
-
rightNode:
|
|
3359
|
-
customColor:
|
|
3380
|
+
leftNode: n,
|
|
3381
|
+
rightNode: s,
|
|
3382
|
+
customColor: i
|
|
3360
3383
|
} = u, d = P(u, [
|
|
3361
3384
|
"className",
|
|
3362
3385
|
"children",
|
|
@@ -3369,7 +3392,7 @@ const j = {
|
|
|
3369
3392
|
"rightNode",
|
|
3370
3393
|
"customColor"
|
|
3371
3394
|
]);
|
|
3372
|
-
const h =
|
|
3395
|
+
const h = g(
|
|
3373
3396
|
Ae[Ie],
|
|
3374
3397
|
t,
|
|
3375
3398
|
Ae[`${Ie}--${_}`],
|
|
@@ -3377,43 +3400,43 @@ const j = {
|
|
|
3377
3400
|
{
|
|
3378
3401
|
[Ae[`${Ie}--dismissible`]]: r,
|
|
3379
3402
|
[Ae[`${Ie}--outline`]]: l,
|
|
3380
|
-
[Ae[`${Ie}--${Bo(
|
|
3403
|
+
[Ae[`${Ie}--${Bo(i)}`]]: !!i
|
|
3381
3404
|
}
|
|
3382
|
-
), v = _ === "small" ? "small" : "medium",
|
|
3405
|
+
), v = _ === "small" ? "small" : "medium", p = () => i ? l ? {
|
|
3383
3406
|
style: {
|
|
3384
3407
|
backgroundColor: "transparent",
|
|
3385
|
-
color:
|
|
3386
|
-
borderColor:
|
|
3408
|
+
color: i,
|
|
3409
|
+
borderColor: i
|
|
3387
3410
|
}
|
|
3388
|
-
} : { style: { backgroundColor:
|
|
3389
|
-
if (
|
|
3390
|
-
return l ?
|
|
3411
|
+
} : { style: { backgroundColor: i } } : {}, b = () => {
|
|
3412
|
+
if (i)
|
|
3413
|
+
return l ? i : ba(i, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
3391
3414
|
};
|
|
3392
3415
|
return /* @__PURE__ */ e.createElement(
|
|
3393
3416
|
M,
|
|
3394
3417
|
B(y(y({
|
|
3395
3418
|
className: h
|
|
3396
|
-
}, d),
|
|
3419
|
+
}, d), p()), {
|
|
3397
3420
|
as: "div",
|
|
3398
3421
|
size: "md"
|
|
3399
3422
|
}),
|
|
3400
|
-
|
|
3423
|
+
n && /* @__PURE__ */ e.createElement(
|
|
3401
3424
|
"div",
|
|
3402
3425
|
{
|
|
3403
3426
|
"data-testid": "lc-tag-left-node",
|
|
3404
3427
|
className: Ae[`${Ie}__node`],
|
|
3405
3428
|
style: { color: b() }
|
|
3406
3429
|
},
|
|
3407
|
-
|
|
3430
|
+
n
|
|
3408
3431
|
),
|
|
3409
3432
|
/* @__PURE__ */ e.createElement("div", { className: Ae[`${Ie}__content`] }, a),
|
|
3410
|
-
|
|
3433
|
+
s && /* @__PURE__ */ e.createElement(
|
|
3411
3434
|
"div",
|
|
3412
3435
|
{
|
|
3413
3436
|
"data-testid": "lc-tag-right-node",
|
|
3414
3437
|
style: { color: b() }
|
|
3415
3438
|
},
|
|
3416
|
-
|
|
3439
|
+
s
|
|
3417
3440
|
),
|
|
3418
3441
|
r && /* @__PURE__ */ e.createElement(
|
|
3419
3442
|
"button",
|
|
@@ -3458,36 +3481,36 @@ const j = {
|
|
|
3458
3481
|
items: o,
|
|
3459
3482
|
type: c,
|
|
3460
3483
|
clearSearchAfterSelection: l,
|
|
3461
|
-
size:
|
|
3462
|
-
onItemRemove:
|
|
3463
|
-
onFilter:
|
|
3484
|
+
size: n,
|
|
3485
|
+
onItemRemove: s,
|
|
3486
|
+
onFilter: i
|
|
3464
3487
|
}) => {
|
|
3465
3488
|
const d = t && !a, m = e.useRef(null);
|
|
3466
3489
|
e.useEffect(() => {
|
|
3467
|
-
l && (
|
|
3490
|
+
l && (i(""), m.current && (m.current.value = "", m.current.focus()));
|
|
3468
3491
|
}, [o, l]);
|
|
3469
|
-
const u = (
|
|
3492
|
+
const u = (p) => c === "single" && t && !a ? null : p != null && p.customElement ? /* @__PURE__ */ e.createElement("div", { className: ge[`${be}__item`] }, p.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: ge[`${be}__item`] }, p.icon && /* @__PURE__ */ e.createElement(
|
|
3470
3493
|
x,
|
|
3471
3494
|
{
|
|
3472
|
-
source:
|
|
3495
|
+
source: p.icon,
|
|
3473
3496
|
className: ge[`${be}__item__icon`]
|
|
3474
3497
|
}
|
|
3475
|
-
),
|
|
3498
|
+
), p.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3476
3499
|
"img",
|
|
3477
3500
|
{
|
|
3478
|
-
src:
|
|
3501
|
+
src: p.avatarSrc,
|
|
3479
3502
|
alt: "",
|
|
3480
3503
|
className: ge[`${be}__item__avatar`]
|
|
3481
3504
|
}
|
|
3482
|
-
), /* @__PURE__ */ e.createElement("div", { className: ge[`${be}__item__content`] },
|
|
3483
|
-
|
|
3505
|
+
), /* @__PURE__ */ e.createElement("div", { className: ge[`${be}__item__content`] }, p.name)), h = (p) => {
|
|
3506
|
+
i(p.target.value);
|
|
3484
3507
|
}, v = () => /* @__PURE__ */ e.createElement(
|
|
3485
3508
|
"input",
|
|
3486
3509
|
{
|
|
3487
3510
|
ref: m,
|
|
3488
|
-
className:
|
|
3511
|
+
className: g(
|
|
3489
3512
|
ge[`${be}__input`],
|
|
3490
|
-
ge[`${be}__input--${
|
|
3513
|
+
ge[`${be}__input--${n}`]
|
|
3491
3514
|
),
|
|
3492
3515
|
placeholder: "Select option",
|
|
3493
3516
|
onChange: h,
|
|
@@ -3497,29 +3520,29 @@ const j = {
|
|
|
3497
3520
|
return !o || o.length === 0 ? d ? v() : /* @__PURE__ */ e.createElement("div", null, _) : /* @__PURE__ */ e.createElement(
|
|
3498
3521
|
"div",
|
|
3499
3522
|
{
|
|
3500
|
-
className:
|
|
3523
|
+
className: g(ge[be], {
|
|
3501
3524
|
[ge[`${be}--single`]]: c === "single"
|
|
3502
3525
|
})
|
|
3503
3526
|
},
|
|
3504
|
-
/* @__PURE__ */ e.createElement("div", { className: ge[`${be}__item-container`] }, c === "single" ? u(o[0]) : o.map((
|
|
3527
|
+
/* @__PURE__ */ e.createElement("div", { className: ge[`${be}__item-container`] }, c === "single" ? u(o[0]) : o.map((p) => /* @__PURE__ */ e.createElement(
|
|
3505
3528
|
_r,
|
|
3506
3529
|
{
|
|
3507
|
-
key:
|
|
3508
|
-
className:
|
|
3530
|
+
key: p.name,
|
|
3531
|
+
className: g(
|
|
3509
3532
|
ge[`${be}__tag`],
|
|
3510
|
-
ge[`${be}__tag--${
|
|
3533
|
+
ge[`${be}__tag--${n}`]
|
|
3511
3534
|
),
|
|
3512
3535
|
dismissible: !r,
|
|
3513
|
-
onRemove: () =>
|
|
3536
|
+
onRemove: () => s(p)
|
|
3514
3537
|
},
|
|
3515
|
-
u(
|
|
3538
|
+
u(p)
|
|
3516
3539
|
))),
|
|
3517
3540
|
d && v()
|
|
3518
3541
|
);
|
|
3519
3542
|
}, Io = "lc-Picker-module__picker___GRj9W", Po = "lc-Picker-module__picker__container___s0PUc", za = {
|
|
3520
3543
|
picker: Io,
|
|
3521
3544
|
picker__container: Po
|
|
3522
|
-
}, Ga = "picker",
|
|
3545
|
+
}, Ga = "picker", ul = (k) => {
|
|
3523
3546
|
var f = k, {
|
|
3524
3547
|
className: t,
|
|
3525
3548
|
disabled: a,
|
|
@@ -3528,15 +3551,15 @@ const j = {
|
|
|
3528
3551
|
selected: o,
|
|
3529
3552
|
size: c = "medium",
|
|
3530
3553
|
placeholder: l = "Select option",
|
|
3531
|
-
isRequired:
|
|
3532
|
-
noSearchResultText:
|
|
3533
|
-
selectAllOptionText:
|
|
3554
|
+
isRequired: n,
|
|
3555
|
+
noSearchResultText: s = "No results found",
|
|
3556
|
+
selectAllOptionText: i,
|
|
3534
3557
|
type: d = "single",
|
|
3535
3558
|
searchDisabled: m = !1,
|
|
3536
3559
|
hideClearButton: u,
|
|
3537
3560
|
openedOnInit: h = !1,
|
|
3538
3561
|
clearSearchAfterSelection: v,
|
|
3539
|
-
onSelect:
|
|
3562
|
+
onSelect: p
|
|
3540
3563
|
} = f, b = P(f, [
|
|
3541
3564
|
"className",
|
|
3542
3565
|
"disabled",
|
|
@@ -3555,7 +3578,7 @@ const j = {
|
|
|
3555
3578
|
"clearSearchAfterSelection",
|
|
3556
3579
|
"onSelect"
|
|
3557
3580
|
]);
|
|
3558
|
-
const [$, w] = e.useState(h), [F, E] = e.useState(null), T = e.useRef(null), S =
|
|
3581
|
+
const [$, w] = e.useState(h), [F, E] = e.useState(null), T = e.useRef(null), S = g(za[Ga], t);
|
|
3559
3582
|
e.useEffect(() => {
|
|
3560
3583
|
if ($) {
|
|
3561
3584
|
const R = (Y) => {
|
|
@@ -3577,30 +3600,30 @@ const j = {
|
|
|
3577
3600
|
w(!1);
|
|
3578
3601
|
}, J = (R) => {
|
|
3579
3602
|
if (d === "single")
|
|
3580
|
-
return w(!1),
|
|
3603
|
+
return w(!1), p([R]);
|
|
3581
3604
|
const U = R.key, Y = Ue;
|
|
3582
3605
|
if (!Y)
|
|
3583
|
-
return
|
|
3606
|
+
return p([R]);
|
|
3584
3607
|
const N = Y.includes(
|
|
3585
3608
|
U
|
|
3586
3609
|
) ? Y.filter((W) => W !== U) : Y.concat(U);
|
|
3587
3610
|
if ((N == null ? void 0 : N.length) === 0)
|
|
3588
|
-
return
|
|
3611
|
+
return p(null);
|
|
3589
3612
|
const ee = _.filter(
|
|
3590
3613
|
(W) => N.includes(W.key)
|
|
3591
3614
|
);
|
|
3592
|
-
|
|
3615
|
+
p(ee);
|
|
3593
3616
|
}, X = (R) => !R.disabled && !R.groupHeader && R.key !== ct, Le = () => {
|
|
3594
3617
|
w(!1);
|
|
3595
3618
|
const R = Ge.filter(X);
|
|
3596
|
-
|
|
3619
|
+
p(R);
|
|
3597
3620
|
}, Be = () => {
|
|
3598
|
-
w(!1),
|
|
3621
|
+
w(!1), p(null);
|
|
3599
3622
|
}, fe = (R) => E(R), Oe = (R) => {
|
|
3600
3623
|
const U = o ? o.filter((Y) => Y !== R) : null;
|
|
3601
3624
|
if ((U == null ? void 0 : U.length) === 0)
|
|
3602
|
-
return
|
|
3603
|
-
|
|
3625
|
+
return p(null);
|
|
3626
|
+
p(U);
|
|
3604
3627
|
}, Ge = e.useMemo(() => F ? _.filter((R) => {
|
|
3605
3628
|
if (R.groupHeader)
|
|
3606
3629
|
return !1;
|
|
@@ -3616,7 +3639,7 @@ const j = {
|
|
|
3616
3639
|
isOpen: $,
|
|
3617
3640
|
isDisabled: a,
|
|
3618
3641
|
isItemSelected: !!o,
|
|
3619
|
-
isRequired:
|
|
3642
|
+
isRequired: n,
|
|
3620
3643
|
isMultiSelect: d === "multi",
|
|
3621
3644
|
size: c,
|
|
3622
3645
|
hideClearButton: u,
|
|
@@ -3645,8 +3668,8 @@ const j = {
|
|
|
3645
3668
|
items: Ge,
|
|
3646
3669
|
isOpen: $,
|
|
3647
3670
|
isMultiSelect: d === "multi",
|
|
3648
|
-
emptyStateText:
|
|
3649
|
-
selectAllOptionText:
|
|
3671
|
+
emptyStateText: s,
|
|
3672
|
+
selectAllOptionText: i,
|
|
3650
3673
|
onClose: A,
|
|
3651
3674
|
onSelect: J,
|
|
3652
3675
|
onSelectAll: Le
|
|
@@ -3654,7 +3677,7 @@ const j = {
|
|
|
3654
3677
|
)));
|
|
3655
3678
|
}, Fo = "lc-Popover-module__popover___8X1b2", Ro = {
|
|
3656
3679
|
popover: Fo
|
|
3657
|
-
},
|
|
3680
|
+
}, ml = ({
|
|
3658
3681
|
triggerRenderer: t,
|
|
3659
3682
|
onClose: a,
|
|
3660
3683
|
onOpen: r,
|
|
@@ -3662,21 +3685,21 @@ const j = {
|
|
|
3662
3685
|
className: o,
|
|
3663
3686
|
triggerClassName: c,
|
|
3664
3687
|
placement: l,
|
|
3665
|
-
flipOptions:
|
|
3666
|
-
offsetSize:
|
|
3667
|
-
isVisible:
|
|
3688
|
+
flipOptions: n,
|
|
3689
|
+
offsetSize: s = 4,
|
|
3690
|
+
isVisible: i,
|
|
3668
3691
|
openedOnInit: d,
|
|
3669
3692
|
closeOnEsc: m = !0,
|
|
3670
3693
|
useDismissHookProps: u,
|
|
3671
3694
|
useClickHookProps: h,
|
|
3672
3695
|
floatingStrategy: v
|
|
3673
3696
|
}) => {
|
|
3674
|
-
const [
|
|
3697
|
+
const [p, b] = e.useState(d), k = i !== void 0, f = k ? i : p, $ = typeof _ == "string", w = typeof t == "function", F = (fe) => {
|
|
3675
3698
|
fe ? r == null || r() : a == null || a(), !k && b(fe);
|
|
3676
3699
|
}, { refs: E, context: T, floatingStyles: S } = na({
|
|
3677
3700
|
open: f,
|
|
3678
3701
|
onOpenChange: F,
|
|
3679
|
-
middleware: [sa(
|
|
3702
|
+
middleware: [sa(s), ia(n), Ka()],
|
|
3680
3703
|
placement: l,
|
|
3681
3704
|
strategy: v,
|
|
3682
3705
|
whileElementsMounted: da
|
|
@@ -3686,7 +3709,7 @@ const j = {
|
|
|
3686
3709
|
se,
|
|
3687
3710
|
A,
|
|
3688
3711
|
J
|
|
3689
|
-
]), Be =
|
|
3712
|
+
]), Be = g(Ro.popover, o);
|
|
3690
3713
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3691
3714
|
"div",
|
|
3692
3715
|
B(y({
|
|
@@ -3737,18 +3760,18 @@ const ft = {
|
|
|
3737
3760
|
large: 56
|
|
3738
3761
|
}, vt = "progress-circle", zo = e.forwardRef(
|
|
3739
3762
|
(l, c) => {
|
|
3740
|
-
var
|
|
3763
|
+
var n = l, {
|
|
3741
3764
|
status: t = "normal",
|
|
3742
3765
|
progressValue: a,
|
|
3743
3766
|
className: r,
|
|
3744
3767
|
size: _ = "medium"
|
|
3745
|
-
} =
|
|
3768
|
+
} = n, o = P(n, [
|
|
3746
3769
|
"status",
|
|
3747
3770
|
"progressValue",
|
|
3748
3771
|
"className",
|
|
3749
3772
|
"size"
|
|
3750
3773
|
]);
|
|
3751
|
-
const
|
|
3774
|
+
const s = cr(t, a), i = or(s, a), d = Oo[_], m = Ho[_], u = g(
|
|
3752
3775
|
ft[vt],
|
|
3753
3776
|
{
|
|
3754
3777
|
[ft[`${vt}--${_}`]]: _,
|
|
@@ -3757,8 +3780,8 @@ const ft = {
|
|
|
3757
3780
|
r
|
|
3758
3781
|
), h = 2 * Math.PI * ((m - d) / 2), v = {
|
|
3759
3782
|
strokeDasharray: h.toFixed(3),
|
|
3760
|
-
strokeDashoffset: `${((100 -
|
|
3761
|
-
},
|
|
3783
|
+
strokeDashoffset: `${((100 - i) / 100 * h).toFixed(3)}px`
|
|
3784
|
+
}, p = `${m / 2} ${m / 2} ${m} ${m}`;
|
|
3762
3785
|
return /* @__PURE__ */ e.createElement(
|
|
3763
3786
|
"div",
|
|
3764
3787
|
y({
|
|
@@ -3766,7 +3789,7 @@ const ft = {
|
|
|
3766
3789
|
ref: c,
|
|
3767
3790
|
role: "progressbar"
|
|
3768
3791
|
}, o),
|
|
3769
|
-
/* @__PURE__ */ e.createElement("svg", { viewBox:
|
|
3792
|
+
/* @__PURE__ */ e.createElement("svg", { viewBox: p }, /* @__PURE__ */ e.createElement(
|
|
3770
3793
|
"circle",
|
|
3771
3794
|
{
|
|
3772
3795
|
className: ft[`${vt}__bg-line--${t}`],
|
|
@@ -3802,18 +3825,18 @@ const ft = {
|
|
|
3802
3825
|
"progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___0Uhle"
|
|
3803
3826
|
}, Mt = "progress-bar", Go = e.forwardRef(
|
|
3804
3827
|
(l, c) => {
|
|
3805
|
-
var
|
|
3828
|
+
var n = l, {
|
|
3806
3829
|
status: t = "normal",
|
|
3807
3830
|
percent: a,
|
|
3808
3831
|
size: r = "medium",
|
|
3809
3832
|
className: _ = ""
|
|
3810
|
-
} =
|
|
3833
|
+
} = n, o = P(n, [
|
|
3811
3834
|
"status",
|
|
3812
3835
|
"percent",
|
|
3813
3836
|
"size",
|
|
3814
3837
|
"className"
|
|
3815
3838
|
]);
|
|
3816
|
-
const
|
|
3839
|
+
const s = cr(t, a), i = or(s, a), d = g(
|
|
3817
3840
|
Rt[Mt],
|
|
3818
3841
|
{
|
|
3819
3842
|
[Rt[`${Mt}--${r}`]]: r,
|
|
@@ -3832,7 +3855,7 @@ const ft = {
|
|
|
3832
3855
|
"div",
|
|
3833
3856
|
{
|
|
3834
3857
|
className: Rt[`${Mt}__indicator--${t}`],
|
|
3835
|
-
style: { width: `${
|
|
3858
|
+
style: { width: `${i}%` }
|
|
3836
3859
|
}
|
|
3837
3860
|
)
|
|
3838
3861
|
);
|
|
@@ -3849,7 +3872,7 @@ const ft = {
|
|
|
3849
3872
|
"promo-banner--small": "lc-PromoBanner-module__promo-banner--small___7sWLV",
|
|
3850
3873
|
"promo-banner--large": "lc-PromoBanner-module__promo-banner--large___pMiCU",
|
|
3851
3874
|
"promo-banner__close-icon": "lc-PromoBanner-module__promo-banner__close-icon___GowBL"
|
|
3852
|
-
}, Uo = 400, Wo = 800, Vo = 500, $e = "promo-banner",
|
|
3875
|
+
}, Uo = 400, Wo = 800, Vo = 500, $e = "promo-banner", pl = ({
|
|
3853
3876
|
className: t,
|
|
3854
3877
|
buttonText: a,
|
|
3855
3878
|
children: r,
|
|
@@ -3857,11 +3880,11 @@ const ft = {
|
|
|
3857
3880
|
img: o,
|
|
3858
3881
|
light: c = !1,
|
|
3859
3882
|
linkText: l,
|
|
3860
|
-
onButtonClick:
|
|
3861
|
-
onClose:
|
|
3862
|
-
onLinkClick:
|
|
3883
|
+
onButtonClick: n,
|
|
3884
|
+
onClose: s,
|
|
3885
|
+
onLinkClick: i
|
|
3863
3886
|
}) => {
|
|
3864
|
-
const d = e.useRef(null), [m, u] = e.useState("medium"), h =
|
|
3887
|
+
const d = e.useRef(null), [m, u] = e.useState("medium"), h = g(
|
|
3865
3888
|
Ee[$e],
|
|
3866
3889
|
{
|
|
3867
3890
|
[Ee[`${$e}--light`]]: c,
|
|
@@ -3871,12 +3894,12 @@ const ft = {
|
|
|
3871
3894
|
t
|
|
3872
3895
|
);
|
|
3873
3896
|
e.useEffect(() => {
|
|
3874
|
-
const
|
|
3875
|
-
|
|
3897
|
+
const p = () => d.current && d.current.offsetWidth <= Uo ? u("small") : d.current && d.current.offsetWidth >= Wo ? u("large") : u("medium"), b = Ja(
|
|
3898
|
+
p,
|
|
3876
3899
|
Vo
|
|
3877
3900
|
);
|
|
3878
|
-
return window.addEventListener("resize", b),
|
|
3879
|
-
b.cancel(), window.removeEventListener("resize",
|
|
3901
|
+
return window.addEventListener("resize", b), p(), () => {
|
|
3902
|
+
b.cancel(), window.removeEventListener("resize", p);
|
|
3880
3903
|
};
|
|
3881
3904
|
}, []);
|
|
3882
3905
|
const v = /* @__PURE__ */ e.createElement("div", { className: Ee[`${$e}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
@@ -3884,17 +3907,17 @@ const ft = {
|
|
|
3884
3907
|
{
|
|
3885
3908
|
kind: "primary",
|
|
3886
3909
|
size: "compact",
|
|
3887
|
-
onClick:
|
|
3910
|
+
onClick: n,
|
|
3888
3911
|
className: Ee[`${$e}__button-text`]
|
|
3889
3912
|
},
|
|
3890
3913
|
a
|
|
3891
|
-
), l && /* @__PURE__ */ e.createElement(G, { size: "compact", kind: "text", onClick:
|
|
3892
|
-
return /* @__PURE__ */ e.createElement("div", { ref: d, className: h }, /* @__PURE__ */ e.createElement("div", { className: Ee[`${$e}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: Ee[`${$e}__img`] }), /* @__PURE__ */ e.createElement("div", { className: Ee[`${$e}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: Ee[`${$e}__header`] }, _), /* @__PURE__ */ e.createElement(M, { as: "div" }, r), m !== "large" && v), m === "large" && v),
|
|
3914
|
+
), l && /* @__PURE__ */ e.createElement(G, { size: "compact", kind: "text", onClick: i }, l));
|
|
3915
|
+
return /* @__PURE__ */ e.createElement("div", { ref: d, className: h }, /* @__PURE__ */ e.createElement("div", { className: Ee[`${$e}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: Ee[`${$e}__img`] }), /* @__PURE__ */ e.createElement("div", { className: Ee[`${$e}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: Ee[`${$e}__header`] }, _), /* @__PURE__ */ e.createElement(M, { as: "div" }, r), m !== "large" && v), m === "large" && v), s && /* @__PURE__ */ e.createElement(
|
|
3893
3916
|
"button",
|
|
3894
3917
|
{
|
|
3895
3918
|
type: "button",
|
|
3896
3919
|
className: Ee[`${$e}__close-icon`],
|
|
3897
|
-
onClick:
|
|
3920
|
+
onClick: s
|
|
3898
3921
|
},
|
|
3899
3922
|
/* @__PURE__ */ e.createElement(x, { source: Ne, size: "large", kind: "primary" })
|
|
3900
3923
|
));
|
|
@@ -3907,7 +3930,7 @@ const ft = {
|
|
|
3907
3930
|
"promo-banner-v2__additional-content": "lc-PromoBannerV2-module__promo-banner-v2__additional-content___LpU9B",
|
|
3908
3931
|
"promo-banner-v2__close": "lc-PromoBannerV2-module__promo-banner-v2__close___rOh-U",
|
|
3909
3932
|
"promo-banner-v2__close__btn": "lc-PromoBannerV2-module__promo-banner-v2__close__btn___5AZQC"
|
|
3910
|
-
}, Ke = "promo-banner-v2",
|
|
3933
|
+
}, Ke = "promo-banner-v2", gl = ({
|
|
3911
3934
|
children: t,
|
|
3912
3935
|
className: a,
|
|
3913
3936
|
additionalContent: r,
|
|
@@ -3915,7 +3938,7 @@ const ft = {
|
|
|
3915
3938
|
secondaryButton: o,
|
|
3916
3939
|
onClose: c
|
|
3917
3940
|
}) => {
|
|
3918
|
-
const l =
|
|
3941
|
+
const l = g(He["main-wrapper"], a);
|
|
3919
3942
|
return /* @__PURE__ */ e.createElement("div", { role: "banner", className: l }, /* @__PURE__ */ e.createElement("div", { className: He[Ke] }, /* @__PURE__ */ e.createElement("div", { className: He[`${Ke}__content`] }, t, (_ || o) && /* @__PURE__ */ e.createElement("div", { className: He[`${Ke}__content__cta`] }, _ && /* @__PURE__ */ e.createElement(
|
|
3920
3943
|
G,
|
|
3921
3944
|
{
|
|
@@ -3951,14 +3974,14 @@ const ft = {
|
|
|
3951
3974
|
"radio-button__helper": "lc-RadioButton-module__radio-button__helper___r8gJJ",
|
|
3952
3975
|
"radio-button--selected": "lc-RadioButton-module__radio-button--selected___s9lqj",
|
|
3953
3976
|
"radio-button--disabled": "lc-RadioButton-module__radio-button--disabled___wHSA7"
|
|
3954
|
-
}, Fe = "radio-button",
|
|
3955
|
-
(
|
|
3956
|
-
var
|
|
3957
|
-
const
|
|
3977
|
+
}, Fe = "radio-button", bl = e.forwardRef(
|
|
3978
|
+
(n, l) => {
|
|
3979
|
+
var s = n, { children: t, className: a = "", description: r, checked: _, disabled: o } = s, c = P(s, ["children", "className", "description", "checked", "disabled"]);
|
|
3980
|
+
const i = g(Pe[Fe], a, {
|
|
3958
3981
|
[Pe[`${Fe}--selected`]]: _,
|
|
3959
3982
|
[Pe[`${Fe}--disabled`]]: o
|
|
3960
3983
|
});
|
|
3961
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
3984
|
+
return /* @__PURE__ */ e.createElement("div", { className: i }, /* @__PURE__ */ e.createElement("label", { className: Pe[`${Fe}__label`] }, /* @__PURE__ */ e.createElement("div", { className: Pe[`${Fe}__circle`] }, /* @__PURE__ */ e.createElement("span", { className: Pe[`${Fe}__inner-circle`] }), /* @__PURE__ */ e.createElement(
|
|
3962
3985
|
"input",
|
|
3963
3986
|
B(y({}, c), {
|
|
3964
3987
|
className: Pe[`${Fe}__input`],
|
|
@@ -3982,7 +4005,7 @@ const ft = {
|
|
|
3982
4005
|
"search-input__clear-icon": "lc-Search-module__search-input__clear-icon___LoNkc",
|
|
3983
4006
|
"search-input__loader": "lc-Search-module__search-input__loader___pkpIG",
|
|
3984
4007
|
"search-input__input": "lc-Search-module__search-input__input___OhyTr"
|
|
3985
|
-
}, Ce = "search-input", Yo = `${Ce}__input`,
|
|
4008
|
+
}, Ce = "search-input", Yo = `${Ce}__input`, fl = ({
|
|
3986
4009
|
isCollapsable: t,
|
|
3987
4010
|
isDisabled: a,
|
|
3988
4011
|
isLoading: r,
|
|
@@ -3990,41 +4013,41 @@ const ft = {
|
|
|
3990
4013
|
size: o = "medium",
|
|
3991
4014
|
value: c,
|
|
3992
4015
|
className: l,
|
|
3993
|
-
onChange:
|
|
4016
|
+
onChange: n
|
|
3994
4017
|
}) => {
|
|
3995
|
-
const [
|
|
4018
|
+
const [s, i] = e.useState(!0), [d, m] = e.useState(!1), u = e.useRef(null), h = !!c && !a && !r, v = t && !s && "true", p = g(
|
|
3996
4019
|
l,
|
|
3997
4020
|
Se[Ce],
|
|
3998
4021
|
Se[`${Ce}--${o}`],
|
|
3999
4022
|
d && Se[`${Ce}--focused`],
|
|
4000
4023
|
a && Se[`${Ce}--disabled`],
|
|
4001
4024
|
t && Se[`${Ce}--collapsable`],
|
|
4002
|
-
!
|
|
4025
|
+
!s && Se[`${Ce}--collapsable--open`]
|
|
4003
4026
|
);
|
|
4004
4027
|
e.useEffect(() => {
|
|
4005
|
-
t && c &&
|
|
4028
|
+
t && c && i(!1);
|
|
4006
4029
|
}, [t]);
|
|
4007
4030
|
const b = (E) => {
|
|
4008
4031
|
const T = E.currentTarget.value;
|
|
4009
|
-
|
|
4032
|
+
n(T);
|
|
4010
4033
|
}, k = () => {
|
|
4011
|
-
|
|
4034
|
+
n("");
|
|
4012
4035
|
}, f = () => {
|
|
4013
4036
|
var E;
|
|
4014
4037
|
(E = u.current) == null || E.focus();
|
|
4015
4038
|
}, $ = () => {
|
|
4016
|
-
t &&
|
|
4039
|
+
t && i(!1), m(!0);
|
|
4017
4040
|
}, w = () => {
|
|
4018
|
-
t && !c &&
|
|
4041
|
+
t && !c && i(!0), m(!1);
|
|
4019
4042
|
}, F = (E) => {
|
|
4020
|
-
E.key === z.enter && (E.preventDefault(),
|
|
4043
|
+
E.key === z.enter && (E.preventDefault(), n(c));
|
|
4021
4044
|
};
|
|
4022
4045
|
return /* @__PURE__ */ e.createElement(
|
|
4023
4046
|
"div",
|
|
4024
4047
|
{
|
|
4025
4048
|
"aria-expanded": v,
|
|
4026
4049
|
role: "search",
|
|
4027
|
-
className:
|
|
4050
|
+
className: p,
|
|
4028
4051
|
onClick: f
|
|
4029
4052
|
},
|
|
4030
4053
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4101,7 +4124,7 @@ const ft = {
|
|
|
4101
4124
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___2zi05",
|
|
4102
4125
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
|
|
4103
4126
|
switch__icon: Zo
|
|
4104
|
-
}, re = "switch",
|
|
4127
|
+
}, re = "switch", vl = (m) => {
|
|
4105
4128
|
var u = m, {
|
|
4106
4129
|
className: t = "",
|
|
4107
4130
|
defaultOn: a = !1,
|
|
@@ -4110,9 +4133,9 @@ const ft = {
|
|
|
4110
4133
|
on: o,
|
|
4111
4134
|
onChange: c,
|
|
4112
4135
|
size: l = "large",
|
|
4113
|
-
state:
|
|
4114
|
-
innerRef:
|
|
4115
|
-
ariaLabel:
|
|
4136
|
+
state: n = "regular",
|
|
4137
|
+
innerRef: s,
|
|
4138
|
+
ariaLabel: i
|
|
4116
4139
|
} = u, d = P(u, [
|
|
4117
4140
|
"className",
|
|
4118
4141
|
"defaultOn",
|
|
@@ -4125,34 +4148,34 @@ const ft = {
|
|
|
4125
4148
|
"innerRef",
|
|
4126
4149
|
"ariaLabel"
|
|
4127
4150
|
]);
|
|
4128
|
-
const h = o !== void 0, [v,
|
|
4151
|
+
const h = o !== void 0, [v, p] = e.useState(
|
|
4129
4152
|
() => h ? o : a
|
|
4130
|
-
), b = h ? o : v, k =
|
|
4153
|
+
), b = h ? o : v, k = n === "loading", f = n === "locked", $ = l === "large" ? "small" : "xsmall", w = b ? "on" : "off", F = r || k || f, E = F ? "disabled" : "enabled", T = g(
|
|
4131
4154
|
ce[re],
|
|
4132
4155
|
ce[`${re}--${l}`],
|
|
4133
4156
|
t
|
|
4134
4157
|
), S = (se) => {
|
|
4135
|
-
c == null || c(se, !b), h || (se.stopPropagation(),
|
|
4158
|
+
c == null || c(se, !b), h || (se.stopPropagation(), p((A) => !A));
|
|
4136
4159
|
};
|
|
4137
4160
|
return /* @__PURE__ */ e.createElement("span", { className: T }, /* @__PURE__ */ e.createElement(
|
|
4138
4161
|
"input",
|
|
4139
4162
|
y({
|
|
4140
4163
|
type: "checkbox",
|
|
4141
|
-
className:
|
|
4164
|
+
className: g(
|
|
4142
4165
|
ce[`${re}__input`],
|
|
4143
4166
|
ce[`${re}__input--${E}`]
|
|
4144
4167
|
),
|
|
4145
4168
|
onChange: S,
|
|
4146
4169
|
checked: b,
|
|
4147
4170
|
name: _,
|
|
4148
|
-
ref:
|
|
4171
|
+
ref: s,
|
|
4149
4172
|
disabled: F,
|
|
4150
|
-
"aria-label":
|
|
4173
|
+
"aria-label": i
|
|
4151
4174
|
}, d)
|
|
4152
4175
|
), /* @__PURE__ */ e.createElement("span", { className: ce[`${re}__container`] }, /* @__PURE__ */ e.createElement(
|
|
4153
4176
|
"span",
|
|
4154
4177
|
{
|
|
4155
|
-
className:
|
|
4178
|
+
className: g(
|
|
4156
4179
|
ce[`${re}__track`],
|
|
4157
4180
|
ce[`${re}__track--${w}`],
|
|
4158
4181
|
ce[`${re}__track--${E}`]
|
|
@@ -4161,7 +4184,7 @@ const ft = {
|
|
|
4161
4184
|
), /* @__PURE__ */ e.createElement(
|
|
4162
4185
|
"span",
|
|
4163
4186
|
{
|
|
4164
|
-
className:
|
|
4187
|
+
className: g(
|
|
4165
4188
|
ce[`${re}__slider`],
|
|
4166
4189
|
ce[`${re}__slider--${l}`],
|
|
4167
4190
|
ce[`${re}__slider--${l}--${w}`]
|
|
@@ -4170,7 +4193,7 @@ const ft = {
|
|
|
4170
4193
|
k && /* @__PURE__ */ e.createElement(
|
|
4171
4194
|
fa,
|
|
4172
4195
|
{
|
|
4173
|
-
className:
|
|
4196
|
+
className: g(
|
|
4174
4197
|
ce[`${re}__loader`],
|
|
4175
4198
|
ce[`${re}__loader--${l}`]
|
|
4176
4199
|
)
|
|
@@ -4196,15 +4219,15 @@ const ft = {
|
|
|
4196
4219
|
tab__badge: tc,
|
|
4197
4220
|
"tab--selected": "lc-Tab-module__tab--selected___c0EkL",
|
|
4198
4221
|
"tab--disabled": "lc-Tab-module__tab--disabled___URdTh"
|
|
4199
|
-
}, ot = "tab",
|
|
4200
|
-
var
|
|
4222
|
+
}, ot = "tab", hl = (n) => {
|
|
4223
|
+
var s = n, {
|
|
4201
4224
|
children: t,
|
|
4202
4225
|
className: a,
|
|
4203
4226
|
count: r,
|
|
4204
4227
|
isSelected: _,
|
|
4205
4228
|
asBadge: o,
|
|
4206
4229
|
size: c = "medium"
|
|
4207
|
-
} =
|
|
4230
|
+
} = s, l = P(s, [
|
|
4208
4231
|
"children",
|
|
4209
4232
|
"className",
|
|
4210
4233
|
"count",
|
|
@@ -4212,19 +4235,19 @@ const ft = {
|
|
|
4212
4235
|
"asBadge",
|
|
4213
4236
|
"size"
|
|
4214
4237
|
]);
|
|
4215
|
-
const { disabled:
|
|
4238
|
+
const { disabled: i } = l, d = r !== void 0 && !o, m = r !== void 0 && o;
|
|
4216
4239
|
return /* @__PURE__ */ e.createElement(
|
|
4217
4240
|
M,
|
|
4218
4241
|
B(y({}, l), {
|
|
4219
4242
|
as: l.href ? "a" : "button",
|
|
4220
4243
|
size: "md",
|
|
4221
4244
|
bold: _,
|
|
4222
|
-
className:
|
|
4245
|
+
className: g(
|
|
4223
4246
|
a,
|
|
4224
4247
|
_t[ot],
|
|
4225
4248
|
_t[`${ot}--${c}`],
|
|
4226
4249
|
_ && _t[`${ot}--selected`],
|
|
4227
|
-
|
|
4250
|
+
i && _t[`${ot}--disabled`]
|
|
4228
4251
|
)
|
|
4229
4252
|
}),
|
|
4230
4253
|
t,
|
|
@@ -4242,13 +4265,13 @@ const ft = {
|
|
|
4242
4265
|
}, ac = "lc-TabsWrapper-module__tabs___Y2xyD", rc = "lc-TabsWrapper-module__tabs__list___i6tVO", lr = {
|
|
4243
4266
|
tabs: ac,
|
|
4244
4267
|
tabs__list: rc
|
|
4245
|
-
}, nr = "tabs",
|
|
4268
|
+
}, nr = "tabs", kl = ({
|
|
4246
4269
|
className: t,
|
|
4247
4270
|
children: a
|
|
4248
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
4271
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: g(lr[nr], t) }, a), yl = ({
|
|
4249
4272
|
className: t,
|
|
4250
4273
|
children: a
|
|
4251
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
4274
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: g(lr[`${nr}__list`], t) }, a), _c = ({
|
|
4252
4275
|
className: t = "",
|
|
4253
4276
|
innerEditableRef: a,
|
|
4254
4277
|
inputRef: r,
|
|
@@ -4256,8 +4279,8 @@ const ft = {
|
|
|
4256
4279
|
remove: o,
|
|
4257
4280
|
value: c
|
|
4258
4281
|
}) => {
|
|
4259
|
-
const [l,
|
|
4260
|
-
const v =
|
|
4282
|
+
const [l, n] = e.useState(!1), s = () => a.current, i = () => {
|
|
4283
|
+
const v = s();
|
|
4261
4284
|
return v ? v.innerText : "";
|
|
4262
4285
|
}, d = () => {
|
|
4263
4286
|
r && r.current && r.current.focus();
|
|
@@ -4266,9 +4289,9 @@ const ft = {
|
|
|
4266
4289
|
v.preventDefault(), d();
|
|
4267
4290
|
return;
|
|
4268
4291
|
}
|
|
4269
|
-
v.key === z.backspace &&
|
|
4292
|
+
v.key === z.backspace && i() === "" && (n(!0), o(), d());
|
|
4270
4293
|
}, u = () => {
|
|
4271
|
-
const v =
|
|
4294
|
+
const v = s();
|
|
4272
4295
|
if (!(l || !v)) {
|
|
4273
4296
|
if (v.innerText === "") {
|
|
4274
4297
|
o();
|
|
@@ -4278,8 +4301,8 @@ const ft = {
|
|
|
4278
4301
|
}
|
|
4279
4302
|
}, h = (v) => {
|
|
4280
4303
|
v.preventDefault();
|
|
4281
|
-
const
|
|
4282
|
-
document.execCommand("insertHTML", !1, $a(
|
|
4304
|
+
const p = v.clipboardData.getData("text/plain");
|
|
4305
|
+
document.execCommand("insertHTML", !1, $a(p));
|
|
4283
4306
|
};
|
|
4284
4307
|
return /* @__PURE__ */ e.createElement(
|
|
4285
4308
|
"div",
|
|
@@ -4309,24 +4332,24 @@ const ft = {
|
|
|
4309
4332
|
update: c,
|
|
4310
4333
|
size: l
|
|
4311
4334
|
}) => {
|
|
4312
|
-
const
|
|
4335
|
+
const n = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), s = e.useRef(null), i = () => r(a);
|
|
4313
4336
|
return /* @__PURE__ */ e.createElement(
|
|
4314
4337
|
_r,
|
|
4315
4338
|
{
|
|
4316
|
-
kind:
|
|
4339
|
+
kind: n ? "default" : "error",
|
|
4317
4340
|
dismissible: !0,
|
|
4318
4341
|
size: l,
|
|
4319
|
-
onRemove:
|
|
4342
|
+
onRemove: i
|
|
4320
4343
|
},
|
|
4321
4344
|
/* @__PURE__ */ e.createElement(
|
|
4322
4345
|
_c,
|
|
4323
4346
|
{
|
|
4324
4347
|
value: t,
|
|
4325
4348
|
inputRef: o,
|
|
4326
|
-
innerEditableRef:
|
|
4349
|
+
innerEditableRef: s,
|
|
4327
4350
|
className: yt[`${oc}__content`],
|
|
4328
4351
|
change: (d) => c(a, d),
|
|
4329
|
-
remove:
|
|
4352
|
+
remove: i,
|
|
4330
4353
|
validator: _
|
|
4331
4354
|
}
|
|
4332
4355
|
)
|
|
@@ -4346,9 +4369,9 @@ const ft = {
|
|
|
4346
4369
|
error: o,
|
|
4347
4370
|
placeholder: c,
|
|
4348
4371
|
size: l = "medium",
|
|
4349
|
-
className:
|
|
4350
|
-
inputClassName:
|
|
4351
|
-
onBlur:
|
|
4372
|
+
className: n,
|
|
4373
|
+
inputClassName: s,
|
|
4374
|
+
onBlur: i,
|
|
4352
4375
|
addOnBlur: d = !0
|
|
4353
4376
|
} = h, m = P(h, [
|
|
4354
4377
|
"id",
|
|
@@ -4363,14 +4386,14 @@ const ft = {
|
|
|
4363
4386
|
"onBlur",
|
|
4364
4387
|
"addOnBlur"
|
|
4365
4388
|
]);
|
|
4366
|
-
const v =
|
|
4389
|
+
const v = g(
|
|
4367
4390
|
yt[Lt],
|
|
4368
4391
|
{
|
|
4369
4392
|
[yt[`${Lt}--error`]]: o
|
|
4370
4393
|
},
|
|
4371
|
-
|
|
4372
|
-
),
|
|
4373
|
-
|
|
4394
|
+
n
|
|
4395
|
+
), p = g(
|
|
4396
|
+
s,
|
|
4374
4397
|
yt[`${Lt}__input`],
|
|
4375
4398
|
yt[`${Lt}__input--${l}`]
|
|
4376
4399
|
), [b, k] = e.useState(""), f = e.useRef(null), $ = (A) => {
|
|
@@ -4389,7 +4412,7 @@ const ft = {
|
|
|
4389
4412
|
w(a.length - 1);
|
|
4390
4413
|
}
|
|
4391
4414
|
}, T = (A) => {
|
|
4392
|
-
d && $(b),
|
|
4415
|
+
d && $(b), i == null || i(A);
|
|
4393
4416
|
}, S = (A, J) => {
|
|
4394
4417
|
const X = [...a || []];
|
|
4395
4418
|
X.reduce(
|
|
@@ -4418,7 +4441,7 @@ const ft = {
|
|
|
4418
4441
|
B(y({}, m), {
|
|
4419
4442
|
id: t,
|
|
4420
4443
|
ref: f,
|
|
4421
|
-
className:
|
|
4444
|
+
className: p,
|
|
4422
4445
|
placeholder: c,
|
|
4423
4446
|
value: b,
|
|
4424
4447
|
onChange: F,
|
|
@@ -4427,15 +4450,15 @@ const ft = {
|
|
|
4427
4450
|
onBlur: T
|
|
4428
4451
|
})
|
|
4429
4452
|
)), o && /* @__PURE__ */ e.createElement(va, null, o));
|
|
4430
|
-
}, ic = /^(?:[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, dc = "name@company.com", uc = (t) => ic.test(t),
|
|
4431
|
-
var
|
|
4453
|
+
}, ic = /^(?:[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, dc = "name@company.com", uc = (t) => ic.test(t), El = (n) => {
|
|
4454
|
+
var s = n, {
|
|
4432
4455
|
id: t,
|
|
4433
4456
|
tags: a,
|
|
4434
4457
|
onChange: r,
|
|
4435
4458
|
error: _,
|
|
4436
4459
|
placeholder: o = dc,
|
|
4437
4460
|
size: c
|
|
4438
|
-
} =
|
|
4461
|
+
} = s, l = P(s, [
|
|
4439
4462
|
"id",
|
|
4440
4463
|
"tags",
|
|
4441
4464
|
"onChange",
|
|
@@ -4498,15 +4521,15 @@ const ft = {
|
|
|
4498
4521
|
info: {
|
|
4499
4522
|
source: ca
|
|
4500
4523
|
}
|
|
4501
|
-
}, ze = "toast", vc = (
|
|
4502
|
-
var
|
|
4524
|
+
}, ze = "toast", vc = (n) => {
|
|
4525
|
+
var s = n, {
|
|
4503
4526
|
action: t,
|
|
4504
4527
|
className: a,
|
|
4505
4528
|
children: r,
|
|
4506
4529
|
removable: _,
|
|
4507
4530
|
kind: o = "info",
|
|
4508
4531
|
onClose: c
|
|
4509
|
-
} =
|
|
4532
|
+
} = s, l = P(s, [
|
|
4510
4533
|
"action",
|
|
4511
4534
|
"className",
|
|
4512
4535
|
"children",
|
|
@@ -4514,12 +4537,12 @@ const ft = {
|
|
|
4514
4537
|
"kind",
|
|
4515
4538
|
"onClose"
|
|
4516
4539
|
]);
|
|
4517
|
-
const
|
|
4540
|
+
const i = g(
|
|
4518
4541
|
Q[ze],
|
|
4519
4542
|
Q[`${ze}--${o}`],
|
|
4520
4543
|
a
|
|
4521
4544
|
), d = typeof r == "string", m = (u) => u && u.closesOnClick && c ? (u.onClick(), c()) : u.onClick();
|
|
4522
|
-
return /* @__PURE__ */ e.createElement("div", y({ className:
|
|
4545
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: i }, l), /* @__PURE__ */ e.createElement("div", { className: Q[`${ze}__icon`] }, /* @__PURE__ */ e.createElement(x, B(y({}, fc[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: Q[`${ze}__content`] }, d ? /* @__PURE__ */ e.createElement(M, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: Q[`${ze}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
4523
4546
|
G,
|
|
4524
4547
|
{
|
|
4525
4548
|
className: Q[`${ze}__actions--custom`],
|
|
@@ -4531,7 +4554,7 @@ const ft = {
|
|
|
4531
4554
|
), _ && /* @__PURE__ */ e.createElement(
|
|
4532
4555
|
"button",
|
|
4533
4556
|
{
|
|
4534
|
-
className:
|
|
4557
|
+
className: g(
|
|
4535
4558
|
Q[`${ze}__actions__button`],
|
|
4536
4559
|
Q[`${ze}__actions__button--${o}`]
|
|
4537
4560
|
),
|
|
@@ -4540,7 +4563,7 @@ const ft = {
|
|
|
4540
4563
|
},
|
|
4541
4564
|
/* @__PURE__ */ e.createElement(x, { source: Ne, size: "medium" })
|
|
4542
4565
|
)));
|
|
4543
|
-
}, hc = 200, ht = "toast-wrapper",
|
|
4566
|
+
}, hc = 200, ht = "toast-wrapper", $l = ({
|
|
4544
4567
|
className: t,
|
|
4545
4568
|
toasts: a = [],
|
|
4546
4569
|
fixed: r = !0,
|
|
@@ -4549,7 +4572,7 @@ const ft = {
|
|
|
4549
4572
|
verticalPosition: c = "top",
|
|
4550
4573
|
horizontalPosition: l = "center"
|
|
4551
4574
|
}) => {
|
|
4552
|
-
const
|
|
4575
|
+
const n = g(
|
|
4553
4576
|
Q[ht],
|
|
4554
4577
|
{
|
|
4555
4578
|
[Q[`${ht}--fixed`]]: r,
|
|
@@ -4559,10 +4582,10 @@ const ft = {
|
|
|
4559
4582
|
},
|
|
4560
4583
|
t
|
|
4561
4584
|
);
|
|
4562
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
4585
|
+
return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement(Qa, { component: null }, a.map(({ id: s, kind: i, content: d, removable: m, action: u, onClose: h }) => /* @__PURE__ */ e.createElement(
|
|
4563
4586
|
Za,
|
|
4564
4587
|
{
|
|
4565
|
-
key:
|
|
4588
|
+
key: s,
|
|
4566
4589
|
classNames: {
|
|
4567
4590
|
enter: Q[`toast-appear--${o}`],
|
|
4568
4591
|
enterActive: Q[`toast-appear-active--${o}`],
|
|
@@ -4574,7 +4597,7 @@ const ft = {
|
|
|
4574
4597
|
/* @__PURE__ */ e.createElement(
|
|
4575
4598
|
vc,
|
|
4576
4599
|
{
|
|
4577
|
-
kind:
|
|
4600
|
+
kind: i,
|
|
4578
4601
|
onClose: h,
|
|
4579
4602
|
removable: m,
|
|
4580
4603
|
action: u
|
|
@@ -4587,17 +4610,17 @@ const ft = {
|
|
|
4587
4610
|
"textarea--focused": "lc-Textarea-module__textarea--focused___1vtEx",
|
|
4588
4611
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___xXaGv",
|
|
4589
4612
|
"textarea--error": "lc-Textarea-module__textarea--error___0EGuq"
|
|
4590
|
-
}, Ht = "textarea",
|
|
4613
|
+
}, Ht = "textarea", wl = e.forwardRef(
|
|
4591
4614
|
(o, _) => {
|
|
4592
4615
|
var c = o, { className: t, error: a } = c, r = P(c, ["className", "error"]);
|
|
4593
|
-
const { disabled: l, onBlur:
|
|
4616
|
+
const { disabled: l, onBlur: n, onFocus: s } = r, [i, d] = e.useState(!1), m = g(t, Ot[Ht], {
|
|
4594
4617
|
[Ot[`${Ht}--disabled`]]: l,
|
|
4595
|
-
[Ot[`${Ht}--focused`]]:
|
|
4618
|
+
[Ot[`${Ht}--focused`]]: i,
|
|
4596
4619
|
[Ot[`${Ht}--error`]]: a
|
|
4597
4620
|
}), u = (v) => {
|
|
4598
|
-
d(!1),
|
|
4621
|
+
d(!1), n == null || n(v);
|
|
4599
4622
|
}, h = (v) => {
|
|
4600
|
-
d(!0),
|
|
4623
|
+
d(!0), s == null || s(v);
|
|
4601
4624
|
};
|
|
4602
4625
|
return /* @__PURE__ */ e.createElement("div", { className: m }, /* @__PURE__ */ e.createElement(
|
|
4603
4626
|
"textarea",
|
|
@@ -4650,12 +4673,12 @@ const ft = {
|
|
|
4650
4673
|
progressValue: o,
|
|
4651
4674
|
size: c,
|
|
4652
4675
|
status: l = "normal",
|
|
4653
|
-
onCloseButtonClick:
|
|
4654
|
-
onRetryButtonClick:
|
|
4655
|
-
},
|
|
4676
|
+
onCloseButtonClick: n,
|
|
4677
|
+
onRetryButtonClick: s
|
|
4678
|
+
}, i) => /* @__PURE__ */ e.createElement("div", { className: we[Re], ref: i }, r && l !== "success" && /* @__PURE__ */ e.createElement("div", { className: we[`${Re}__icon`] }, r), l === "success" && /* @__PURE__ */ e.createElement(
|
|
4656
4679
|
"div",
|
|
4657
4680
|
{
|
|
4658
|
-
className:
|
|
4681
|
+
className: g(
|
|
4659
4682
|
we[`${Re}__icon`],
|
|
4660
4683
|
we[`${Re}__icon--success`]
|
|
4661
4684
|
)
|
|
@@ -4664,14 +4687,14 @@ const ft = {
|
|
|
4664
4687
|
), /* @__PURE__ */ e.createElement(
|
|
4665
4688
|
"div",
|
|
4666
4689
|
{
|
|
4667
|
-
className:
|
|
4690
|
+
className: g(we[`${Re}__wrapper`], {
|
|
4668
4691
|
[we[`${Re}__wrapper--with-icon`]]: r
|
|
4669
4692
|
})
|
|
4670
4693
|
},
|
|
4671
4694
|
/* @__PURE__ */ e.createElement("div", { className: we[`${Re}__wrapper__header`] }, _ && /* @__PURE__ */ e.createElement(
|
|
4672
4695
|
"div",
|
|
4673
4696
|
{
|
|
4674
|
-
className:
|
|
4697
|
+
className: g(we[Xt], {
|
|
4675
4698
|
[we[`${Xt}--success`]]: l === "success",
|
|
4676
4699
|
[we[`${Xt}--error`]]: l === "error"
|
|
4677
4700
|
})
|
|
@@ -4682,7 +4705,7 @@ const ft = {
|
|
|
4682
4705
|
), t !== "hidden" && /* @__PURE__ */ e.createElement(
|
|
4683
4706
|
"div",
|
|
4684
4707
|
{
|
|
4685
|
-
className:
|
|
4708
|
+
className: g({
|
|
4686
4709
|
[we[`${Re}__wrapper__header__actions`]]: t === "hover"
|
|
4687
4710
|
})
|
|
4688
4711
|
},
|
|
@@ -4690,8 +4713,8 @@ const ft = {
|
|
|
4690
4713
|
oa,
|
|
4691
4714
|
{
|
|
4692
4715
|
status: l,
|
|
4693
|
-
onCloseButtonClick:
|
|
4694
|
-
onRetryButtonClick:
|
|
4716
|
+
onCloseButtonClick: n,
|
|
4717
|
+
onRetryButtonClick: s
|
|
4695
4718
|
}
|
|
4696
4719
|
)
|
|
4697
4720
|
)),
|
|
@@ -4733,7 +4756,7 @@ const ft = {
|
|
|
4733
4756
|
status: t,
|
|
4734
4757
|
progressValue: a
|
|
4735
4758
|
}
|
|
4736
|
-
),
|
|
4759
|
+
), Cl = ({
|
|
4737
4760
|
children: t,
|
|
4738
4761
|
className: a,
|
|
4739
4762
|
progressValue: r,
|
|
@@ -4741,24 +4764,24 @@ const ft = {
|
|
|
4741
4764
|
isExpanded: o,
|
|
4742
4765
|
errorMessage: c,
|
|
4743
4766
|
status: l = "normal",
|
|
4744
|
-
icon:
|
|
4745
|
-
size:
|
|
4746
|
-
mode:
|
|
4767
|
+
icon: n,
|
|
4768
|
+
size: s,
|
|
4769
|
+
mode: i = "multiple",
|
|
4747
4770
|
onCloseButtonClick: d,
|
|
4748
4771
|
onRetryButtonClick: m
|
|
4749
4772
|
}) => {
|
|
4750
|
-
const [u, h] = e.useState(o || !1), v = l === "error",
|
|
4773
|
+
const [u, h] = e.useState(o || !1), v = l === "error", p = l === "success", b = g(H[le], a, {
|
|
4751
4774
|
[H[`${le}--error`]]: v,
|
|
4752
|
-
[H[`${le}--success`]]:
|
|
4775
|
+
[H[`${le}--success`]]: p
|
|
4753
4776
|
}), k = !(v && (m || d)), f = () => h(!u);
|
|
4754
|
-
return
|
|
4777
|
+
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: b }, /* @__PURE__ */ e.createElement("div", { className: H[`${le}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: H[`${Me}`] }, /* @__PURE__ */ e.createElement(
|
|
4755
4778
|
yc,
|
|
4756
4779
|
{
|
|
4757
4780
|
title: v && c || _,
|
|
4758
4781
|
progressValue: r,
|
|
4759
4782
|
status: l,
|
|
4760
|
-
icon:
|
|
4761
|
-
size:
|
|
4783
|
+
icon: n,
|
|
4784
|
+
size: s
|
|
4762
4785
|
}
|
|
4763
4786
|
)), l === "error" && /* @__PURE__ */ e.createElement(
|
|
4764
4787
|
oa,
|
|
@@ -4806,71 +4829,73 @@ const ft = {
|
|
|
4806
4829
|
};
|
|
4807
4830
|
export {
|
|
4808
4831
|
hc as ANIMATION_TIME,
|
|
4809
|
-
|
|
4832
|
+
Jc as ActionBar,
|
|
4810
4833
|
Wr as ActionMenu,
|
|
4811
4834
|
qr as ActionMenuItem,
|
|
4812
|
-
|
|
4835
|
+
jc as Alert,
|
|
4813
4836
|
N_ as Avatar,
|
|
4814
4837
|
T_ as Badge,
|
|
4815
4838
|
G as Button,
|
|
4816
|
-
|
|
4817
|
-
|
|
4839
|
+
Zc as Card,
|
|
4840
|
+
Xc as Checkbox,
|
|
4818
4841
|
co as DatePicker,
|
|
4819
4842
|
Rc as DesignToken,
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4843
|
+
el as DetailsCard,
|
|
4844
|
+
tl as DetailsCardInfo,
|
|
4845
|
+
Uc as Display,
|
|
4846
|
+
El as EmailTagInput,
|
|
4824
4847
|
Ut as FieldDescription,
|
|
4825
4848
|
va as FieldError,
|
|
4826
|
-
|
|
4849
|
+
al as FieldGroup,
|
|
4827
4850
|
yc as FileUploadProgress,
|
|
4828
4851
|
oa as FileUploadProgressActions,
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4852
|
+
rl as Form,
|
|
4853
|
+
_l as FormField,
|
|
4854
|
+
ol as FormGroup,
|
|
4832
4855
|
je as Heading,
|
|
4833
4856
|
x as Icon,
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4857
|
+
Vc as Info,
|
|
4858
|
+
cl as Input,
|
|
4859
|
+
Yc as Interactive,
|
|
4860
|
+
ll as Link,
|
|
4838
4861
|
fa as Loader,
|
|
4839
|
-
|
|
4862
|
+
nl as Modal,
|
|
4840
4863
|
yo as ModalBase,
|
|
4841
4864
|
Oa as ModalCloseButton,
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4865
|
+
il as ModalHeader,
|
|
4866
|
+
sl as ModalPortal,
|
|
4867
|
+
dl as NumericInput,
|
|
4868
|
+
ul as Picker,
|
|
4846
4869
|
wo as PickerList,
|
|
4847
|
-
|
|
4870
|
+
ml as Popover,
|
|
4848
4871
|
Go as ProgressBar,
|
|
4849
4872
|
zo as ProgressCircle,
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4873
|
+
pl as PromoBanner,
|
|
4874
|
+
gl as PromoBannerV2,
|
|
4875
|
+
bl as RadioButton,
|
|
4853
4876
|
Oc as RadiusToken,
|
|
4854
4877
|
no as RangeDatePicker,
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4878
|
+
Kc as Reports,
|
|
4879
|
+
fl as SearchInput,
|
|
4880
|
+
Qc as SegmentedControl,
|
|
4858
4881
|
Lc as ShadowToken,
|
|
4859
|
-
|
|
4882
|
+
Wc as Simple,
|
|
4860
4883
|
Mc as SpacingToken,
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4864
|
-
|
|
4884
|
+
vl as Switch,
|
|
4885
|
+
hl as Tab,
|
|
4886
|
+
yl as TabsList,
|
|
4887
|
+
kl as TabsWrapper,
|
|
4865
4888
|
_r as Tag,
|
|
4866
4889
|
sc as TagInput,
|
|
4867
4890
|
M as Text,
|
|
4868
|
-
|
|
4891
|
+
wl as Textarea,
|
|
4869
4892
|
vc as Toast,
|
|
4870
|
-
|
|
4893
|
+
$l as ToastWrapper,
|
|
4871
4894
|
tr as Tooltip,
|
|
4872
|
-
|
|
4873
|
-
|
|
4895
|
+
Hc as TransitionDurationToken,
|
|
4896
|
+
zc as TransitionTimingToken,
|
|
4897
|
+
Cl as UploadBar,
|
|
4898
|
+
qc as UserGuide,
|
|
4874
4899
|
h_ as generateAvatarColor,
|
|
4875
|
-
|
|
4900
|
+
Gc as getDesignTokenWithOpacity
|
|
4876
4901
|
};
|