@livechat/design-system-react-components 1.23.1 → 1.24.1
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/ActionCard/ActionCard.d.ts +3 -0
- package/dist/components/ActionCard/index.d.ts +2 -0
- package/dist/components/ActionCard/types.d.ts +23 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/foundations/design-token.d.ts +4 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +1127 -1068
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var zr = Object.defineProperty, Gr = Object.defineProperties;
|
|
2
|
+
var Ur = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var Mt = Object.getOwnPropertySymbols;
|
|
4
|
+
var qa = Object.prototype.hasOwnProperty, Ya = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var ka = (t, a, r) => a in t ? zr(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, k = (t, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
10
|
-
|
|
7
|
+
qa.call(a, r) && ka(t, r, a[r]);
|
|
8
|
+
if (Mt)
|
|
9
|
+
for (var r of Mt(a))
|
|
10
|
+
Ya.call(a, r) && ka(t, r, a[r]);
|
|
11
11
|
return t;
|
|
12
|
-
}, T = (t, a) =>
|
|
12
|
+
}, T = (t, a) => Gr(t, Ur(a));
|
|
13
13
|
var F = (t, a) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var _ in t)
|
|
16
|
-
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var _ of
|
|
19
|
-
a.indexOf(_) < 0 &&
|
|
16
|
+
qa.call(t, _) && a.indexOf(_) < 0 && (r[_] = t[_]);
|
|
17
|
+
if (t != null && Mt)
|
|
18
|
+
for (var _ of Mt(t))
|
|
19
|
+
a.indexOf(_) < 0 && Ya.call(t, _) && (r[_] = t[_]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var ya = (t, a, r) => (ka(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
|
-
import { useReducer as
|
|
25
|
-
import { Check as
|
|
24
|
+
import { useReducer as Wr, useRef as Vr, useEffect as mt, useCallback as Rt, useMemo as Lt } from "react";
|
|
25
|
+
import { Check as jt, Close as Be, ChevronDown as It, Info as La, Warning as hr, CheckCircle as kr, Block as yr, Person as qr, ChevronUp as Zt, DoubleArrowLeft as Yr, ChevronLeft as Kr, ChevronRight as Er, DoubleArrowRight as Jr, VisibilityOn as Xr, VisibilityOff as Qr, Search as jr, LockBlack as Zr, Refresh as e_, Error as t_ } from "@livechat/design-system-icons";
|
|
26
26
|
import u from "clsx";
|
|
27
|
-
import { useFloatingParentNodeId as
|
|
28
|
-
import
|
|
29
|
-
import { getContrast as
|
|
30
|
-
import
|
|
31
|
-
import { subMonths as
|
|
32
|
-
import * as
|
|
33
|
-
import { Virtuoso as
|
|
34
|
-
import
|
|
35
|
-
import { TransitionGroup as
|
|
36
|
-
const
|
|
27
|
+
import { useFloatingParentNodeId as Oa, useFloatingNodeId as ea, useFloating as ta, offset as aa, flip as ra, autoUpdate as _a, useClick as oa, useDismiss as la, useRole as ca, useInteractions as na, useTransitionStyles as wr, FloatingNode as sa, FloatingTree as Ha, shift as za, arrow as a_, useHover as r_, safePolygon as __, useFocus as o_, useTransitionStatus as l_, FloatingArrow as c_, FloatingPortal as $r, FloatingOverlay as n_, FloatingFocusManager as Aa, size as s_, useListNavigation as i_ } from "@floating-ui/react";
|
|
28
|
+
import Nr from "lodash.debounce";
|
|
29
|
+
import { getContrast as Ga } from "polished";
|
|
30
|
+
import d_ from "react-day-picker";
|
|
31
|
+
import { subMonths as pt, differenceInCalendarMonths as Ka, addMonths as Ja, isSameMonth as Pa, isSameDay as Ia, isAfter as Fa, differenceInCalendarDays as Cr } from "date-fns";
|
|
32
|
+
import * as Sr from "react-dom";
|
|
33
|
+
import { Virtuoso as u_ } from "react-virtuoso";
|
|
34
|
+
import Xa from "lodash.escape";
|
|
35
|
+
import { TransitionGroup as xr, CSSTransition as Tr } from "react-transition-group";
|
|
36
|
+
const dc = {
|
|
37
37
|
/** @deprecated */
|
|
38
38
|
Background: "--background",
|
|
39
39
|
Background01: "--background-01",
|
|
@@ -138,6 +138,7 @@ const sc = {
|
|
|
138
138
|
SurfaceGradient11: "--surface-gradient-11",
|
|
139
139
|
SurfaceGradient12: "--surface-gradient-12",
|
|
140
140
|
SurfaceGradient13: "--surface-gradient-13",
|
|
141
|
+
SurfaceGradient14: "--surface-gradient-14",
|
|
141
142
|
SurfaceOtherOverlay: "--surface-other-overlay",
|
|
142
143
|
SurfaceOtherAgent: "--surface-other-agent",
|
|
143
144
|
SurfaceOtherAgentHover: "--surface-other-agent-hover",
|
|
@@ -393,8 +394,11 @@ const sc = {
|
|
|
393
394
|
SurfaceOtherInternalNoteMessageArea: "--surface-other-internal-note-message-area",
|
|
394
395
|
SurfaceOtherInternalNoteDefault: "--surface-other-internal-note-default",
|
|
395
396
|
ContentBasicInternalNoteMessagePlaceholder: "--content-basic-internal-note-message-placeholder",
|
|
396
|
-
ContentBasicInternalNoteMessageActive: "--content-basic-internal-note-message-active"
|
|
397
|
-
|
|
397
|
+
ContentBasicInternalNoteMessageActive: "--content-basic-internal-note-message-active",
|
|
398
|
+
OnePopoverMessageBackgroundDefault: "--one-popover-message-background-default",
|
|
399
|
+
OnePopoverBorderDefault: "--one-popover-border-default",
|
|
400
|
+
OnePopoverBorderActive: "--one-popover-border-active"
|
|
401
|
+
}, uc = {
|
|
398
402
|
Spacing0: "--spacing-0",
|
|
399
403
|
Spacing05: "--spacing-05",
|
|
400
404
|
Spacing1: "--spacing-1",
|
|
@@ -414,7 +418,7 @@ const sc = {
|
|
|
414
418
|
Spacing18: "--spacing-18",
|
|
415
419
|
Spacing20: "--spacing-20",
|
|
416
420
|
Spacing24: "--spacing-24"
|
|
417
|
-
},
|
|
421
|
+
}, mc = {
|
|
418
422
|
Float: "--shadow-float",
|
|
419
423
|
PopOver: "--shadow-pop-over",
|
|
420
424
|
Modal: "--shadow-modal",
|
|
@@ -436,7 +440,7 @@ const sc = {
|
|
|
436
440
|
FixedLeft: "--shadow-fixed-left",
|
|
437
441
|
FixedTop: "--shadow-fixed-top",
|
|
438
442
|
FixedBottom: "--shadow-fixed-bottom"
|
|
439
|
-
},
|
|
443
|
+
}, pc = {
|
|
440
444
|
Radius0: "--radius-0",
|
|
441
445
|
Radius1: "--radius-1",
|
|
442
446
|
Radius2: "--radius-2",
|
|
@@ -452,18 +456,18 @@ const sc = {
|
|
|
452
456
|
// deprecated
|
|
453
457
|
4: "--radius-4"
|
|
454
458
|
// deprecated
|
|
455
|
-
},
|
|
459
|
+
}, gc = {
|
|
456
460
|
Fast1: "--transition-duration-fast-1",
|
|
457
461
|
Fast2: "--transition-duration-fast-2",
|
|
458
462
|
Moderate1: "--transition-duration-moderate-1"
|
|
459
|
-
},
|
|
463
|
+
}, bc = {
|
|
460
464
|
EaseIn: "--transition-timing-ease-in",
|
|
461
465
|
EaseOut: "--transition-timing-ease-out"
|
|
462
|
-
},
|
|
466
|
+
}, fc = {
|
|
463
467
|
Instant: "--delay-instant",
|
|
464
468
|
Moderate: "--delay-moderate",
|
|
465
469
|
Slow: "--delay-slow"
|
|
466
|
-
},
|
|
470
|
+
}, vc = (t, a) => `color-mix(in srgb, var(${t}) ${a}, transparent)`, _e = {
|
|
467
471
|
esc: "Escape",
|
|
468
472
|
enter: "Enter",
|
|
469
473
|
backspace: "Backspace",
|
|
@@ -474,8 +478,8 @@ const sc = {
|
|
|
474
478
|
comma: ",",
|
|
475
479
|
arrowUp: "ArrowUp",
|
|
476
480
|
arrowDown: "ArrowDown"
|
|
477
|
-
},
|
|
478
|
-
icon:
|
|
481
|
+
}, m_ = "lc-Icon-module__icon___tw31R", Qa = {
|
|
482
|
+
icon: m_,
|
|
479
483
|
"icon--primary": "lc-Icon-module__icon--primary___JJnBV",
|
|
480
484
|
"icon--subtle": "lc-Icon-module__icon--subtle___sZIzL",
|
|
481
485
|
"icon--inverted": "lc-Icon-module__icon--inverted___zA9QC",
|
|
@@ -509,7 +513,7 @@ const sc = {
|
|
|
509
513
|
"icon--disabled--action-warning": "lc-Icon-module__icon--disabled--action-warning___5VvCf",
|
|
510
514
|
"icon--disabled--action-neutral": "lc-Icon-module__icon--disabled--action-neutral___SxlyC",
|
|
511
515
|
"icon--disabled--lock-black": "lc-Icon-module__icon--disabled--lock-black___WJNua"
|
|
512
|
-
},
|
|
516
|
+
}, p_ = {
|
|
513
517
|
xsmall: {
|
|
514
518
|
width: 12,
|
|
515
519
|
height: 12
|
|
@@ -530,27 +534,27 @@ const sc = {
|
|
|
530
534
|
width: 32,
|
|
531
535
|
height: 32
|
|
532
536
|
}
|
|
533
|
-
},
|
|
534
|
-
const
|
|
537
|
+
}, ja = "icon", A = (t) => {
|
|
538
|
+
const s = t, {
|
|
535
539
|
source: a,
|
|
536
540
|
size: r = "medium",
|
|
537
541
|
kind: _,
|
|
538
542
|
disabled: o,
|
|
539
543
|
className: l,
|
|
540
544
|
customColor: c
|
|
541
|
-
} =
|
|
545
|
+
} = s, n = F(s, [
|
|
542
546
|
"source",
|
|
543
547
|
"size",
|
|
544
548
|
"kind",
|
|
545
549
|
"disabled",
|
|
546
550
|
"className",
|
|
547
551
|
"customColor"
|
|
548
|
-
]), i = e.createElement(a, k(k({},
|
|
552
|
+
]), i = e.createElement(a, k(k({}, p_[r]), c ? { color: c } : {})), d = u(
|
|
549
553
|
l,
|
|
550
|
-
|
|
551
|
-
_ &&
|
|
554
|
+
Qa[ja],
|
|
555
|
+
_ && Qa[`${ja}--${o ? "disabled--" : ""}${_}`]
|
|
552
556
|
);
|
|
553
|
-
return /* @__PURE__ */ e.createElement("span", T(k({},
|
|
557
|
+
return /* @__PURE__ */ e.createElement("span", T(k({}, n), { className: d }), i);
|
|
554
558
|
}, Me = {
|
|
555
559
|
"heading-xl": "lc-Typography-module__heading-xl___nhr-6",
|
|
556
560
|
"heading-lg": "lc-Typography-module__heading-lg___XYF7l",
|
|
@@ -572,7 +576,7 @@ const sc = {
|
|
|
572
576
|
"display-lg": "lc-Typography-module__display-lg___WKhIT",
|
|
573
577
|
"display-max": "lc-Typography-module__display-max___vR8yn",
|
|
574
578
|
"display--bold": "lc-Typography-module__display--bold___a1pLv"
|
|
575
|
-
},
|
|
579
|
+
}, g_ = {
|
|
576
580
|
xl: "h1",
|
|
577
581
|
lg: "h2",
|
|
578
582
|
md: "h3",
|
|
@@ -580,7 +584,7 @@ const sc = {
|
|
|
580
584
|
xs: "h5",
|
|
581
585
|
"2xs": "h6"
|
|
582
586
|
}, De = (d) => {
|
|
583
|
-
var
|
|
587
|
+
var s = d, {
|
|
584
588
|
as: t,
|
|
585
589
|
size: a = "md",
|
|
586
590
|
children: r,
|
|
@@ -588,8 +592,8 @@ const sc = {
|
|
|
588
592
|
uppercase: o,
|
|
589
593
|
bold: l,
|
|
590
594
|
customColor: c,
|
|
591
|
-
textAlign:
|
|
592
|
-
} =
|
|
595
|
+
textAlign: n
|
|
596
|
+
} = s, i = F(s, [
|
|
593
597
|
"as",
|
|
594
598
|
"size",
|
|
595
599
|
"children",
|
|
@@ -600,7 +604,7 @@ const sc = {
|
|
|
600
604
|
"textAlign"
|
|
601
605
|
]);
|
|
602
606
|
return e.createElement(
|
|
603
|
-
t ||
|
|
607
|
+
t || g_[a],
|
|
604
608
|
k({
|
|
605
609
|
className: u(
|
|
606
610
|
{
|
|
@@ -610,7 +614,7 @@ const sc = {
|
|
|
610
614
|
},
|
|
611
615
|
_
|
|
612
616
|
),
|
|
613
|
-
style: k(k({}, c && { color: c }),
|
|
617
|
+
style: k(k({}, c && { color: c }), n && { textAlign: n })
|
|
614
618
|
}, i),
|
|
615
619
|
r
|
|
616
620
|
);
|
|
@@ -623,10 +627,10 @@ const sc = {
|
|
|
623
627
|
bold: o = !1,
|
|
624
628
|
underline: l = !1,
|
|
625
629
|
strike: c = !1,
|
|
626
|
-
children:
|
|
630
|
+
children: n,
|
|
627
631
|
className: i,
|
|
628
632
|
customColor: d,
|
|
629
|
-
textAlign:
|
|
633
|
+
textAlign: s
|
|
630
634
|
} = f, m = F(f, [
|
|
631
635
|
"as",
|
|
632
636
|
"size",
|
|
@@ -654,11 +658,11 @@ const sc = {
|
|
|
654
658
|
},
|
|
655
659
|
i
|
|
656
660
|
),
|
|
657
|
-
style: k(k({}, d && { color: d }),
|
|
661
|
+
style: k(k({}, d && { color: d }), s && { textAlign: s })
|
|
658
662
|
}, m),
|
|
659
|
-
|
|
663
|
+
n
|
|
660
664
|
);
|
|
661
|
-
},
|
|
665
|
+
}, hc = (i) => {
|
|
662
666
|
var d = i, {
|
|
663
667
|
as: t = "div",
|
|
664
668
|
size: a = "md",
|
|
@@ -667,7 +671,7 @@ const sc = {
|
|
|
667
671
|
customColor: o,
|
|
668
672
|
textAlign: l,
|
|
669
673
|
bold: c = !0
|
|
670
|
-
} = d,
|
|
674
|
+
} = d, n = F(d, [
|
|
671
675
|
"as",
|
|
672
676
|
"size",
|
|
673
677
|
"children",
|
|
@@ -687,7 +691,7 @@ const sc = {
|
|
|
687
691
|
_
|
|
688
692
|
),
|
|
689
693
|
style: k(k({}, o && { color: o }), l && { textAlign: l })
|
|
690
|
-
},
|
|
694
|
+
}, n),
|
|
691
695
|
r
|
|
692
696
|
);
|
|
693
697
|
}, Pe = {
|
|
@@ -702,7 +706,7 @@ const sc = {
|
|
|
702
706
|
"action-menu__list__item__icon": "lc-ActionMenu-module__action-menu__list__item__icon___o3ePo",
|
|
703
707
|
"action-menu__list--with-footer": "lc-ActionMenu-module__action-menu__list--with-footer___ghTxL",
|
|
704
708
|
"action-menu__footer": "lc-ActionMenu-module__action-menu__footer___HxoOe"
|
|
705
|
-
}, Ie = "action-menu",
|
|
709
|
+
}, Ie = "action-menu", b_ = (E) => {
|
|
706
710
|
var v = E, {
|
|
707
711
|
className: t,
|
|
708
712
|
triggerClassName: a,
|
|
@@ -711,10 +715,10 @@ const sc = {
|
|
|
711
715
|
placement: o = "bottom-end",
|
|
712
716
|
openedOnInit: l = !1,
|
|
713
717
|
keepOpenOnClick: c,
|
|
714
|
-
flipOptions:
|
|
718
|
+
flipOptions: n,
|
|
715
719
|
visible: i,
|
|
716
720
|
onClose: d,
|
|
717
|
-
onOpen:
|
|
721
|
+
onOpen: s,
|
|
718
722
|
floatingStrategy: m,
|
|
719
723
|
selectedOptions: p,
|
|
720
724
|
footer: f
|
|
@@ -734,23 +738,23 @@ const sc = {
|
|
|
734
738
|
"selectedOptions",
|
|
735
739
|
"footer"
|
|
736
740
|
]);
|
|
737
|
-
const h = i !== void 0, [y, $] = e.useState(l),
|
|
738
|
-
S ? (d == null || d(), !h && $(!1)) : (
|
|
739
|
-
}, { x: q, y: x, strategy: R, refs: Y, context: G } =
|
|
741
|
+
const h = i !== void 0, [y, $] = e.useState(l), N = e.useRef(-1), w = Oa(), g = ea(), C = e.useRef(null), S = h ? i : y, V = () => {
|
|
742
|
+
S ? (d == null || d(), !h && $(!1)) : (s == null || s(), !h && $(!0));
|
|
743
|
+
}, { x: q, y: x, strategy: R, refs: Y, context: G } = ta({
|
|
740
744
|
nodeId: g,
|
|
741
|
-
middleware: [
|
|
745
|
+
middleware: [aa(4), ra(n)],
|
|
742
746
|
placement: o,
|
|
743
747
|
open: S,
|
|
744
748
|
strategy: m,
|
|
745
749
|
onOpenChange: V,
|
|
746
|
-
whileElementsMounted:
|
|
747
|
-
}), Ee =
|
|
750
|
+
whileElementsMounted: _a
|
|
751
|
+
}), Ee = oa(G), ve = la(G, {
|
|
748
752
|
enabled: S
|
|
749
|
-
}), we =
|
|
753
|
+
}), we = ca(G), { getReferenceProps: Ae, getFloatingProps: Re } = na([
|
|
750
754
|
Ee,
|
|
751
755
|
ve,
|
|
752
756
|
we
|
|
753
|
-
]), { styles: Le } =
|
|
757
|
+
]), { styles: Le } = wr(G, {
|
|
754
758
|
initial: ({ side: P }) => k({
|
|
755
759
|
opacity: 0
|
|
756
760
|
}, P === "bottom" && {
|
|
@@ -762,9 +766,9 @@ const sc = {
|
|
|
762
766
|
} || P === "right" && {
|
|
763
767
|
marginLeft: -10
|
|
764
768
|
})
|
|
765
|
-
}),
|
|
769
|
+
}), _t = (P) => {
|
|
766
770
|
var Oe, He;
|
|
767
|
-
const L =
|
|
771
|
+
const L = N.current;
|
|
768
772
|
let oe = L + P;
|
|
769
773
|
for (; (Oe = r[oe]) != null && Oe.disabled || (He = r[oe]) != null && He.groupHeader; )
|
|
770
774
|
if (oe += P, oe === -1) {
|
|
@@ -774,19 +778,19 @@ const sc = {
|
|
|
774
778
|
return oe;
|
|
775
779
|
}, Qe = (P) => {
|
|
776
780
|
var Oe, He;
|
|
777
|
-
|
|
778
|
-
const L = (Oe =
|
|
781
|
+
N.current = _t(P);
|
|
782
|
+
const L = (Oe = C.current) == null ? void 0 : Oe.children, oe = L && ((He = L[N.current]) == null ? void 0 : He.children[0]);
|
|
779
783
|
return oe == null ? void 0 : oe.focus();
|
|
780
784
|
}, Ke = (P) => {
|
|
781
|
-
P.key === _e.arrowUp &&
|
|
785
|
+
P.key === _e.arrowUp && N.current > 0 && (P.preventDefault(), Qe(-1)), P.key === _e.arrowDown && N.current + 1 < r.length && (P.preventDefault(), Qe(1));
|
|
782
786
|
};
|
|
783
787
|
e.useEffect(() => {
|
|
784
788
|
if (S)
|
|
785
789
|
return document.addEventListener("keydown", Ke), () => document.removeEventListener("keydown", Ke);
|
|
786
|
-
|
|
790
|
+
N.current = -1;
|
|
787
791
|
}, [S, Ke]);
|
|
788
|
-
const
|
|
789
|
-
|
|
792
|
+
const ot = (P, L) => {
|
|
793
|
+
N.current = P, L == null || L(), !h && !c && ($(!1), d == null || d());
|
|
790
794
|
}, je = (P, L) => P.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
791
795
|
"li",
|
|
792
796
|
{
|
|
@@ -802,7 +806,7 @@ const sc = {
|
|
|
802
806
|
tabIndex: -1,
|
|
803
807
|
key: P.key,
|
|
804
808
|
disabled: P.disabled,
|
|
805
|
-
onClick: () =>
|
|
809
|
+
onClick: () => ot(L, P.onClick),
|
|
806
810
|
role: "menuitem",
|
|
807
811
|
className: u(Pe[`${Ie}__list__item`], {
|
|
808
812
|
[Pe[`${Ie}__list__item--disabled`]]: P.disabled,
|
|
@@ -817,9 +821,9 @@ const sc = {
|
|
|
817
821
|
"data-testid": `${P.key}-selected-icon`,
|
|
818
822
|
className: Pe[`${Ie}__list__item__icon`]
|
|
819
823
|
},
|
|
820
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
824
|
+
/* @__PURE__ */ e.createElement(A, { source: jt, kind: "action-primary" })
|
|
821
825
|
)
|
|
822
|
-
)),
|
|
826
|
+
)), lt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
823
827
|
"div",
|
|
824
828
|
T(k({
|
|
825
829
|
"aria-label": "Toggle menu",
|
|
@@ -829,7 +833,7 @@ const sc = {
|
|
|
829
833
|
className: a
|
|
830
834
|
}),
|
|
831
835
|
_
|
|
832
|
-
), /* @__PURE__ */ e.createElement(
|
|
836
|
+
), /* @__PURE__ */ e.createElement(sa, { id: g }, S && /* @__PURE__ */ e.createElement(
|
|
833
837
|
"div",
|
|
834
838
|
k({
|
|
835
839
|
ref: Y.setFloating,
|
|
@@ -851,7 +855,7 @@ const sc = {
|
|
|
851
855
|
t
|
|
852
856
|
),
|
|
853
857
|
role: "menu",
|
|
854
|
-
ref:
|
|
858
|
+
ref: C
|
|
855
859
|
}),
|
|
856
860
|
r.map(je)
|
|
857
861
|
),
|
|
@@ -865,56 +869,56 @@ const sc = {
|
|
|
865
869
|
f
|
|
866
870
|
)
|
|
867
871
|
)));
|
|
868
|
-
return w === null ? /* @__PURE__ */ e.createElement(
|
|
869
|
-
},
|
|
872
|
+
return w === null ? /* @__PURE__ */ e.createElement(Ha, null, lt) : lt;
|
|
873
|
+
}, bt = {
|
|
870
874
|
"action-menu-item": "lc-ActionMenuItem-module__action-menu-item___cT70J",
|
|
871
875
|
"action-menu-item__left-node": "lc-ActionMenuItem-module__action-menu-item__left-node___3R-o1",
|
|
872
876
|
"action-menu-item__right-node": "lc-ActionMenuItem-module__action-menu-item__right-node___uq0Ym",
|
|
873
877
|
"action-menu-item__label": "lc-ActionMenuItem-module__action-menu-item__label___OgJ80",
|
|
874
878
|
"action-menu-item--warning": "lc-ActionMenuItem-module__action-menu-item--warning___DgeYg"
|
|
875
|
-
},
|
|
879
|
+
}, ft = "action-menu-item", f_ = ({ leftNode: t, rightNode: a, children: r, kind: _ }) => /* @__PURE__ */ e.createElement(
|
|
876
880
|
"div",
|
|
877
881
|
{
|
|
878
|
-
className: u(
|
|
879
|
-
[
|
|
882
|
+
className: u(bt[ft], {
|
|
883
|
+
[bt[`${ft}--warning`]]: _ === "warning"
|
|
880
884
|
})
|
|
881
885
|
},
|
|
882
|
-
t && /* @__PURE__ */ e.createElement("div", { className:
|
|
883
|
-
/* @__PURE__ */ e.createElement(I, { as: "div", className:
|
|
884
|
-
a && /* @__PURE__ */ e.createElement("div", { className:
|
|
885
|
-
),
|
|
886
|
-
loader:
|
|
887
|
-
loader__spinner:
|
|
886
|
+
t && /* @__PURE__ */ e.createElement("div", { className: bt[`${ft}__left-node`] }, t),
|
|
887
|
+
/* @__PURE__ */ e.createElement(I, { as: "div", className: bt[`${ft}__label`] }, r),
|
|
888
|
+
a && /* @__PURE__ */ e.createElement("div", { className: bt[`${ft}__right-node`] }, a)
|
|
889
|
+
), v_ = "lc-Loader-module__loader___LRflD", h_ = "lc-Loader-module__loader__spinner___l3C1g", k_ = "lc-Loader-module__rotate___Tlni-", y_ = "lc-Loader-module__loader__label___R74f6", vt = {
|
|
890
|
+
loader: v_,
|
|
891
|
+
loader__spinner: h_,
|
|
888
892
|
"loader__spinner--small": "lc-Loader-module__loader__spinner--small___dGFFt",
|
|
889
893
|
"loader__spinner--medium": "lc-Loader-module__loader__spinner--medium___J-ki0",
|
|
890
894
|
"loader__spinner--large": "lc-Loader-module__loader__spinner--large___Poqq7",
|
|
891
895
|
"loader__spinner-circle": "lc-Loader-module__loader__spinner-circle___ApBUO",
|
|
892
|
-
rotate:
|
|
893
|
-
loader__label:
|
|
894
|
-
},
|
|
895
|
-
var
|
|
896
|
+
rotate: k_,
|
|
897
|
+
loader__label: y_
|
|
898
|
+
}, Dr = "loader", Za = `${Dr}__spinner`, Ua = (c) => {
|
|
899
|
+
var n = c, {
|
|
896
900
|
primaryColor: t,
|
|
897
901
|
secondaryColor: a,
|
|
898
902
|
label: r,
|
|
899
903
|
className: _,
|
|
900
904
|
size: o = "medium"
|
|
901
|
-
} =
|
|
905
|
+
} = n, l = F(n, [
|
|
902
906
|
"primaryColor",
|
|
903
907
|
"secondaryColor",
|
|
904
908
|
"label",
|
|
905
909
|
"className",
|
|
906
910
|
"size"
|
|
907
911
|
]);
|
|
908
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: u(
|
|
912
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(vt[Dr], _) }, l), /* @__PURE__ */ e.createElement(
|
|
909
913
|
"div",
|
|
910
914
|
{
|
|
911
|
-
className: u(
|
|
915
|
+
className: u(vt[Za], vt[`${Za}--${o}`])
|
|
912
916
|
},
|
|
913
917
|
/* @__PURE__ */ e.createElement(
|
|
914
918
|
"div",
|
|
915
919
|
{
|
|
916
920
|
role: "status",
|
|
917
|
-
className:
|
|
921
|
+
className: vt["loader__spinner-circle"],
|
|
918
922
|
style: {
|
|
919
923
|
/* stylelint-disable */
|
|
920
924
|
borderColor: a,
|
|
@@ -922,8 +926,8 @@ const sc = {
|
|
|
922
926
|
}
|
|
923
927
|
}
|
|
924
928
|
)
|
|
925
|
-
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className:
|
|
926
|
-
},
|
|
929
|
+
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: vt.loader__label }, r));
|
|
930
|
+
}, E_ = (t) => {
|
|
927
931
|
if (t === "primary" || t === "destructive")
|
|
928
932
|
return {
|
|
929
933
|
primaryColor: "var(--action-primary-default)",
|
|
@@ -934,8 +938,8 @@ const sc = {
|
|
|
934
938
|
primaryColor: "var(--content-invert-primary)",
|
|
935
939
|
secondaryColor: "var(--surface-invert-secondary)"
|
|
936
940
|
};
|
|
937
|
-
},
|
|
938
|
-
btn:
|
|
941
|
+
}, w_ = "lc-Button-module__btn___aijZJ", $_ = "lc-Button-module__btn__loader___c8zZz", N_ = "lc-Button-module__btn__icon___GVExB", ce = {
|
|
942
|
+
btn: w_,
|
|
939
943
|
"btn--disabled": "lc-Button-module__btn--disabled___lXBav",
|
|
940
944
|
"btn--full-width": "lc-Button-module__btn--full-width___kdbAr",
|
|
941
945
|
"btn--xcompact": "lc-Button-module__btn--xcompact___s-zG-",
|
|
@@ -958,8 +962,8 @@ const sc = {
|
|
|
958
962
|
"btn--dotted": "lc-Button-module__btn--dotted___y1EEP",
|
|
959
963
|
"btn--high-contrast": "lc-Button-module__btn--high-contrast___zHSVM",
|
|
960
964
|
"btn--loading": "lc-Button-module__btn--loading___ZAgjv",
|
|
961
|
-
btn__loader:
|
|
962
|
-
btn__icon:
|
|
965
|
+
btn__loader: $_,
|
|
966
|
+
btn__icon: N_,
|
|
963
967
|
"btn__icon--left": "lc-Button-module__btn__icon--left___H68zu",
|
|
964
968
|
"btn__icon--right": "lc-Button-module__btn__icon--right___fHr3D",
|
|
965
969
|
"btn__icon--small": "lc-Button-module__btn__icon--small___WLk8c",
|
|
@@ -977,10 +981,10 @@ const sc = {
|
|
|
977
981
|
kind: o = "basic",
|
|
978
982
|
size: l = "medium",
|
|
979
983
|
icon: c = null,
|
|
980
|
-
iconPosition:
|
|
984
|
+
iconPosition: n = "left",
|
|
981
985
|
loaderLabel: i,
|
|
982
986
|
className: d,
|
|
983
|
-
children:
|
|
987
|
+
children: s,
|
|
984
988
|
href: m,
|
|
985
989
|
onClick: p
|
|
986
990
|
} = v, f = F(v, [
|
|
@@ -998,7 +1002,7 @@ const sc = {
|
|
|
998
1002
|
"href",
|
|
999
1003
|
"onClick"
|
|
1000
1004
|
]);
|
|
1001
|
-
const h = t || a, y = !
|
|
1005
|
+
const h = t || a, y = !s && c, $ = ["text", "link", "link-light"].includes(o), N = m ? "a" : "button", w = u(
|
|
1002
1006
|
d,
|
|
1003
1007
|
ce[ne],
|
|
1004
1008
|
ce[`${ne}--${o}`],
|
|
@@ -1006,14 +1010,14 @@ const sc = {
|
|
|
1006
1010
|
{
|
|
1007
1011
|
[ce[`${ne}--loading`]]: t,
|
|
1008
1012
|
[ce[`${ne}--full-width`]]: _,
|
|
1009
|
-
[ce[`${ne}--with-${
|
|
1013
|
+
[ce[`${ne}--with-${n}-icon`]]: c && !y && !$,
|
|
1010
1014
|
[ce[`${ne}--icon-only`]]: y,
|
|
1011
1015
|
[ce[`${ne}--icon-only--bg`]]: y && $,
|
|
1012
1016
|
[ce[`${ne}--disabled`]]: h
|
|
1013
1017
|
}
|
|
1014
1018
|
);
|
|
1015
1019
|
return /* @__PURE__ */ e.createElement(
|
|
1016
|
-
|
|
1020
|
+
N,
|
|
1017
1021
|
k(k({
|
|
1018
1022
|
ref: b,
|
|
1019
1023
|
className: w,
|
|
@@ -1022,19 +1026,19 @@ const sc = {
|
|
|
1022
1026
|
disabled: h
|
|
1023
1027
|
}, !h && { href: m, onClick: p }), f),
|
|
1024
1028
|
t && /* @__PURE__ */ e.createElement(
|
|
1025
|
-
|
|
1029
|
+
Ua,
|
|
1026
1030
|
k({
|
|
1027
1031
|
"data-testid": "button-loader",
|
|
1028
1032
|
size: "small",
|
|
1029
1033
|
label: i,
|
|
1030
1034
|
className: ce[`${ne}__loader`]
|
|
1031
|
-
},
|
|
1035
|
+
}, E_(o))
|
|
1032
1036
|
),
|
|
1033
1037
|
c && e.cloneElement(c, {
|
|
1034
1038
|
className: u(
|
|
1035
1039
|
c.props.className,
|
|
1036
1040
|
ce[`${ne}__icon`],
|
|
1037
|
-
ce[`${ne}__icon--${
|
|
1041
|
+
ce[`${ne}__icon--${n}`],
|
|
1038
1042
|
{
|
|
1039
1043
|
[ce[`${ne}__icon--small`]]: l === "xcompact"
|
|
1040
1044
|
}
|
|
@@ -1043,11 +1047,11 @@ const sc = {
|
|
|
1043
1047
|
size: l === "xcompact" ? "small" : "medium",
|
|
1044
1048
|
"data-testid": "button-icon"
|
|
1045
1049
|
}),
|
|
1046
|
-
/* @__PURE__ */ e.createElement("div", { className: ce[`${ne}__content`] },
|
|
1050
|
+
/* @__PURE__ */ e.createElement("div", { className: ce[`${ne}__content`] }, s)
|
|
1047
1051
|
);
|
|
1048
1052
|
}
|
|
1049
1053
|
);
|
|
1050
|
-
function
|
|
1054
|
+
function Br(t) {
|
|
1051
1055
|
switch (t) {
|
|
1052
1056
|
case "invert":
|
|
1053
1057
|
return "inverted";
|
|
@@ -1057,7 +1061,7 @@ function Tr(t) {
|
|
|
1057
1061
|
return "primary";
|
|
1058
1062
|
}
|
|
1059
1063
|
}
|
|
1060
|
-
function
|
|
1064
|
+
function C_(t, a, r, _) {
|
|
1061
1065
|
if (r)
|
|
1062
1066
|
return {
|
|
1063
1067
|
top: t ? r + t : r
|
|
@@ -1067,7 +1071,7 @@ function $_(t, a, r, _) {
|
|
|
1067
1071
|
left: a ? _ + a : _
|
|
1068
1072
|
};
|
|
1069
1073
|
}
|
|
1070
|
-
const
|
|
1074
|
+
const S_ = (t) => {
|
|
1071
1075
|
switch (t) {
|
|
1072
1076
|
case "invert":
|
|
1073
1077
|
return {
|
|
@@ -1085,13 +1089,13 @@ const C_ = (t) => {
|
|
|
1085
1089
|
fill: "var(--tooltip-background-basic)"
|
|
1086
1090
|
};
|
|
1087
1091
|
}
|
|
1088
|
-
},
|
|
1089
|
-
tooltip:
|
|
1090
|
-
tooltip__content:
|
|
1092
|
+
}, x_ = "lc-Tooltip-module__tooltip___QOOAr", T_ = "lc-Tooltip-module__tooltip__content___RuamE", D_ = "lc-Tooltip-module__tooltip__arrow___Ov1YW", B_ = "lc-Tooltip-module__tooltip__interactive___0JawB", D = {
|
|
1093
|
+
tooltip: x_,
|
|
1094
|
+
tooltip__content: T_,
|
|
1091
1095
|
"tooltip--invert": "lc-Tooltip-module__tooltip--invert___PVjhE",
|
|
1092
|
-
tooltip__arrow:
|
|
1096
|
+
tooltip__arrow: D_,
|
|
1093
1097
|
"tooltip--important": "lc-Tooltip-module__tooltip--important___X-IMK",
|
|
1094
|
-
tooltip__interactive:
|
|
1098
|
+
tooltip__interactive: B_,
|
|
1095
1099
|
"tooltip__user-guide-step": "lc-Tooltip-module__tooltip__user-guide-step___evexI",
|
|
1096
1100
|
"tooltip--full-space": "lc-Tooltip-module__tooltip--full-space___wmbaw",
|
|
1097
1101
|
"tooltip-header": "lc-Tooltip-module__tooltip-header___QV0Vd",
|
|
@@ -1115,7 +1119,7 @@ const C_ = (t) => {
|
|
|
1115
1119
|
"reports-tooltip__heading__title": "lc-Tooltip-module__reports-tooltip__heading__title___6TlzE",
|
|
1116
1120
|
"reports-tooltip__heading__description": "lc-Tooltip-module__reports-tooltip__heading__description___eOQnc",
|
|
1117
1121
|
"reports-tooltip__content": "lc-Tooltip-module__reports-tooltip__content___jxis9"
|
|
1118
|
-
},
|
|
1122
|
+
}, Ot = "tooltip", Ar = ({
|
|
1119
1123
|
children: t,
|
|
1120
1124
|
className: a,
|
|
1121
1125
|
triggerClassName: r,
|
|
@@ -1123,10 +1127,10 @@ const C_ = (t) => {
|
|
|
1123
1127
|
theme: o,
|
|
1124
1128
|
kind: l,
|
|
1125
1129
|
placement: c = "bottom",
|
|
1126
|
-
isVisible:
|
|
1130
|
+
isVisible: n,
|
|
1127
1131
|
fullSpaceContent: i,
|
|
1128
1132
|
onClose: d,
|
|
1129
|
-
onOpen:
|
|
1133
|
+
onOpen: s,
|
|
1130
1134
|
withFadeAnimation: m = !0,
|
|
1131
1135
|
transitionDuration: p = 200,
|
|
1132
1136
|
hoverOnDuration: f,
|
|
@@ -1136,42 +1140,42 @@ const C_ = (t) => {
|
|
|
1136
1140
|
hoverOffDelay: h,
|
|
1137
1141
|
triggerOnClick: y = !1,
|
|
1138
1142
|
offsetMainAxis: $ = 8,
|
|
1139
|
-
referenceElement:
|
|
1143
|
+
referenceElement: N,
|
|
1140
1144
|
activationThreshold: w = 0,
|
|
1141
1145
|
useDismissHookProps: g,
|
|
1142
|
-
useClickHookProps:
|
|
1146
|
+
useClickHookProps: C,
|
|
1143
1147
|
hoverOutDelayTimeout: S = 100,
|
|
1144
1148
|
arrowOffsetY: V,
|
|
1145
1149
|
arrowOffsetX: q,
|
|
1146
1150
|
closeOnTriggerBlur: x = !1,
|
|
1147
1151
|
floatingStrategy: R
|
|
1148
1152
|
}) => {
|
|
1149
|
-
const Y =
|
|
1150
|
-
D[
|
|
1153
|
+
const Y = n !== void 0, [G, Ee] = e.useState(!1), ve = e.useRef(null), we = Y ? n : G, Ae = l || o, Re = Oa(), Le = ea(), _t = u(
|
|
1154
|
+
D[Ot],
|
|
1151
1155
|
a,
|
|
1152
|
-
Ae && D[`${
|
|
1153
|
-
i && D[`${
|
|
1156
|
+
Ae && D[`${Ot}--${Ae}`],
|
|
1157
|
+
i && D[`${Ot}--full-space`]
|
|
1154
1158
|
), Qe = typeof _ == "function", Ke = (le) => {
|
|
1155
|
-
le !== we && (le ?
|
|
1156
|
-
},
|
|
1157
|
-
floatingStyles:
|
|
1159
|
+
le !== we && (le ? s == null || s() : d == null || d(), !Y && Ee(le));
|
|
1160
|
+
}, ot = (le) => m ? le != null ? le : p : 0, je = (le) => le != null ? le : E, {
|
|
1161
|
+
floatingStyles: lt,
|
|
1158
1162
|
refs: P,
|
|
1159
1163
|
context: L,
|
|
1160
1164
|
middlewareData: { arrow: { x: oe, y: Oe } = {} }
|
|
1161
|
-
} =
|
|
1165
|
+
} = ta({
|
|
1162
1166
|
nodeId: Le,
|
|
1163
1167
|
middleware: [
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
+
aa({ mainAxis: $ }),
|
|
1169
|
+
za(),
|
|
1170
|
+
ra(),
|
|
1171
|
+
a_({ element: ve })
|
|
1168
1172
|
],
|
|
1169
1173
|
placement: c,
|
|
1170
1174
|
open: we,
|
|
1171
1175
|
strategy: R,
|
|
1172
1176
|
onOpenChange: Ke,
|
|
1173
|
-
whileElementsMounted:
|
|
1174
|
-
}), He =
|
|
1177
|
+
whileElementsMounted: _a
|
|
1178
|
+
}), He = r_(L, {
|
|
1175
1179
|
move: !1,
|
|
1176
1180
|
restMs: w,
|
|
1177
1181
|
delay: {
|
|
@@ -1179,76 +1183,76 @@ const C_ = (t) => {
|
|
|
1179
1183
|
close: je(h || S)
|
|
1180
1184
|
},
|
|
1181
1185
|
enabled: !y,
|
|
1182
|
-
handleClose: x ? null :
|
|
1183
|
-
}),
|
|
1186
|
+
handleClose: x ? null : __()
|
|
1187
|
+
}), da = o_(L), ua = la(L, g), ma = ca(L, { role: "tooltip" }), pa = oa(L, k({
|
|
1184
1188
|
enabled: y
|
|
1185
|
-
},
|
|
1189
|
+
}, C)), { isMounted: ga, styles: ba } = wr(L, {
|
|
1186
1190
|
duration: {
|
|
1187
|
-
open:
|
|
1188
|
-
close:
|
|
1191
|
+
open: ot(f),
|
|
1192
|
+
close: ot(b)
|
|
1189
1193
|
}
|
|
1190
|
-
}), { status:
|
|
1194
|
+
}), { status: fa } = l_(L), { getReferenceProps: va, getFloatingProps: ha } = na([
|
|
1191
1195
|
He,
|
|
1192
|
-
sa,
|
|
1193
|
-
ia,
|
|
1194
1196
|
da,
|
|
1195
|
-
ua
|
|
1197
|
+
ua,
|
|
1198
|
+
ma,
|
|
1199
|
+
pa
|
|
1196
1200
|
]);
|
|
1197
1201
|
e.useEffect(() => {
|
|
1198
|
-
|
|
1199
|
-
}, [P.setReference,
|
|
1200
|
-
const
|
|
1202
|
+
N && P.setReference(N);
|
|
1203
|
+
}, [P.setReference, N]);
|
|
1204
|
+
const Ft = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1201
1205
|
"div",
|
|
1202
1206
|
T(k({
|
|
1203
1207
|
ref: P.setReference
|
|
1204
|
-
},
|
|
1208
|
+
}, va()), {
|
|
1205
1209
|
className: r
|
|
1206
1210
|
}),
|
|
1207
1211
|
Qe ? _() : _
|
|
1208
|
-
), /* @__PURE__ */ e.createElement(
|
|
1212
|
+
), /* @__PURE__ */ e.createElement(sa, { id: Le }, ga && /* @__PURE__ */ e.createElement(
|
|
1209
1213
|
"div",
|
|
1210
1214
|
T(k({
|
|
1211
1215
|
ref: P.setFloating,
|
|
1212
|
-
style: k(k({},
|
|
1213
|
-
className:
|
|
1214
|
-
},
|
|
1215
|
-
"data-status":
|
|
1216
|
+
style: k(k({}, lt), ba),
|
|
1217
|
+
className: _t
|
|
1218
|
+
}, ha()), {
|
|
1219
|
+
"data-status": fa
|
|
1216
1220
|
}),
|
|
1217
|
-
/* @__PURE__ */ e.createElement(I, { as: "div", className: D[`${
|
|
1221
|
+
/* @__PURE__ */ e.createElement(I, { as: "div", className: D[`${Ot}__content`] }, t),
|
|
1218
1222
|
/* @__PURE__ */ e.createElement(
|
|
1219
|
-
|
|
1223
|
+
c_,
|
|
1220
1224
|
k({
|
|
1221
1225
|
ref: ve,
|
|
1222
1226
|
context: L,
|
|
1223
1227
|
strokeWidth: 1,
|
|
1224
1228
|
width: 10,
|
|
1225
1229
|
height: 5,
|
|
1226
|
-
style: k({},
|
|
1230
|
+
style: k({}, C_(
|
|
1227
1231
|
V,
|
|
1228
1232
|
q,
|
|
1229
1233
|
Oe,
|
|
1230
1234
|
oe
|
|
1231
1235
|
))
|
|
1232
|
-
},
|
|
1236
|
+
}, S_(Ae))
|
|
1233
1237
|
)
|
|
1234
1238
|
)));
|
|
1235
|
-
return Re === null ? /* @__PURE__ */ e.createElement(
|
|
1236
|
-
},
|
|
1239
|
+
return Re === null ? /* @__PURE__ */ e.createElement(Ha, null, Ft) : Ft;
|
|
1240
|
+
}, kc = ({ text: t }) => /* @__PURE__ */ e.createElement("div", null, t), ht = "tooltip", yc = ({ className: t, header: a, text: r, closeWithX: _, theme: o, handleCloseAction: l }) => /* @__PURE__ */ e.createElement("div", { className: t }, _ && /* @__PURE__ */ e.createElement(
|
|
1237
1241
|
"button",
|
|
1238
1242
|
{
|
|
1239
1243
|
type: "button",
|
|
1240
1244
|
"aria-label": "Close tooltip",
|
|
1241
|
-
className: D[`${
|
|
1245
|
+
className: D[`${ht}-close`],
|
|
1242
1246
|
onClick: l
|
|
1243
1247
|
},
|
|
1244
|
-
/* @__PURE__ */ e.createElement(A, { source: Be, kind: o ?
|
|
1248
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, kind: o ? Br(o) : "primary" })
|
|
1245
1249
|
), a && /* @__PURE__ */ e.createElement(
|
|
1246
1250
|
De,
|
|
1247
1251
|
{
|
|
1248
1252
|
as: "div",
|
|
1249
1253
|
size: "xs",
|
|
1250
|
-
className: u(D[`${
|
|
1251
|
-
[D[`${
|
|
1254
|
+
className: u(D[`${ht}-header`], {
|
|
1255
|
+
[D[`${ht}-header--info`]]: _
|
|
1252
1256
|
})
|
|
1253
1257
|
},
|
|
1254
1258
|
a
|
|
@@ -1257,12 +1261,12 @@ const C_ = (t) => {
|
|
|
1257
1261
|
{
|
|
1258
1262
|
as: "div",
|
|
1259
1263
|
className: u({
|
|
1260
|
-
[D[`${
|
|
1261
|
-
[D[`${
|
|
1264
|
+
[D[`${ht}-text`]]: _,
|
|
1265
|
+
[D[`${ht}-text--info`]]: _
|
|
1262
1266
|
})
|
|
1263
1267
|
},
|
|
1264
1268
|
r
|
|
1265
|
-
)), ze = "tooltip",
|
|
1269
|
+
)), ze = "tooltip", Ec = ({
|
|
1266
1270
|
header: t,
|
|
1267
1271
|
text: a,
|
|
1268
1272
|
image: r,
|
|
@@ -1270,9 +1274,9 @@ const C_ = (t) => {
|
|
|
1270
1274
|
theme: o,
|
|
1271
1275
|
handleCloseAction: l,
|
|
1272
1276
|
primaryButton: c,
|
|
1273
|
-
secondaryButton:
|
|
1277
|
+
secondaryButton: n
|
|
1274
1278
|
}) => {
|
|
1275
|
-
const i = (
|
|
1279
|
+
const i = (s) => s === "invert" ? "secondary" : s === "important" ? "plain-lock-black" : "high-contrast", d = (s) => s === "invert" ? "link-inverted" : s === "important" ? "text-lock-black" : "text";
|
|
1276
1280
|
return /* @__PURE__ */ e.createElement("div", { className: D[`${ze}__interactive`] }, _ && /* @__PURE__ */ e.createElement(
|
|
1277
1281
|
"button",
|
|
1278
1282
|
{
|
|
@@ -1281,7 +1285,7 @@ const C_ = (t) => {
|
|
|
1281
1285
|
className: D[`${ze}-close`],
|
|
1282
1286
|
onClick: l
|
|
1283
1287
|
},
|
|
1284
|
-
/* @__PURE__ */ e.createElement(A, { source: Be, kind: o ?
|
|
1288
|
+
/* @__PURE__ */ e.createElement(A, { source: Be, kind: o ? Br(o) : "primary" })
|
|
1285
1289
|
), r && /* @__PURE__ */ e.createElement("div", { className: D[`${ze}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1286
1290
|
"img",
|
|
1287
1291
|
{
|
|
@@ -1309,13 +1313,13 @@ const C_ = (t) => {
|
|
|
1309
1313
|
W,
|
|
1310
1314
|
{
|
|
1311
1315
|
className: u(D[`${ze}-footer-secondary`]),
|
|
1312
|
-
kind:
|
|
1313
|
-
onClick:
|
|
1316
|
+
kind: n.kind || d(o),
|
|
1317
|
+
onClick: n.handleClick
|
|
1314
1318
|
},
|
|
1315
|
-
|
|
1319
|
+
n.label
|
|
1316
1320
|
)
|
|
1317
1321
|
));
|
|
1318
|
-
}, te = "guide-tooltip",
|
|
1322
|
+
}, te = "guide-tooltip", A_ = ({
|
|
1319
1323
|
gap: t,
|
|
1320
1324
|
isVisible: a,
|
|
1321
1325
|
slide: r,
|
|
@@ -1338,7 +1342,7 @@ const C_ = (t) => {
|
|
|
1338
1342
|
left: "0",
|
|
1339
1343
|
width: "100%",
|
|
1340
1344
|
height: `${t.top}px`
|
|
1341
|
-
},
|
|
1345
|
+
}, n = {
|
|
1342
1346
|
top: `${t.bottom}px`,
|
|
1343
1347
|
left: "0",
|
|
1344
1348
|
width: "100%",
|
|
@@ -1388,7 +1392,7 @@ const C_ = (t) => {
|
|
|
1388
1392
|
[D[`${te}__overlay--visible`]]: a,
|
|
1389
1393
|
[D[`${te}__overlay--slide`]]: r
|
|
1390
1394
|
}),
|
|
1391
|
-
style:
|
|
1395
|
+
style: n
|
|
1392
1396
|
}
|
|
1393
1397
|
), _ && /* @__PURE__ */ e.createElement(
|
|
1394
1398
|
"div",
|
|
@@ -1402,21 +1406,21 @@ const C_ = (t) => {
|
|
|
1402
1406
|
}
|
|
1403
1407
|
));
|
|
1404
1408
|
};
|
|
1405
|
-
class
|
|
1409
|
+
class P_ {
|
|
1406
1410
|
constructor(a, r) {
|
|
1407
|
-
|
|
1408
|
-
|
|
1411
|
+
ya(this, "element");
|
|
1412
|
+
ya(this, "padding");
|
|
1409
1413
|
this.element = a, this.padding = r;
|
|
1410
1414
|
}
|
|
1411
1415
|
addPadding(a) {
|
|
1412
|
-
const r = Math.round(a.left) - this.padding, _ = Math.round(a.top) - this.padding, o = Math.round(a.width) + 2 * this.padding, l = Math.round(a.height) + 2 * this.padding, c = _,
|
|
1416
|
+
const r = Math.round(a.left) - this.padding, _ = Math.round(a.top) - this.padding, o = Math.round(a.width) + 2 * this.padding, l = Math.round(a.height) + 2 * this.padding, c = _, n = r, i = c + l, d = n + o;
|
|
1413
1417
|
return {
|
|
1414
1418
|
x: r,
|
|
1415
1419
|
y: _,
|
|
1416
1420
|
width: o,
|
|
1417
1421
|
height: l,
|
|
1418
1422
|
top: c,
|
|
1419
|
-
left:
|
|
1423
|
+
left: n,
|
|
1420
1424
|
bottom: i,
|
|
1421
1425
|
right: d
|
|
1422
1426
|
};
|
|
@@ -1431,7 +1435,7 @@ class B_ {
|
|
|
1431
1435
|
return this.getBoundingClientRect().height;
|
|
1432
1436
|
}
|
|
1433
1437
|
}
|
|
1434
|
-
const
|
|
1438
|
+
const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), wc = (t) => {
|
|
1435
1439
|
const {
|
|
1436
1440
|
className: a,
|
|
1437
1441
|
parentElementName: r,
|
|
@@ -1439,13 +1443,13 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1439
1443
|
shouldSlide: o = !0
|
|
1440
1444
|
} = t, [l, c] = e.useState(
|
|
1441
1445
|
null
|
|
1442
|
-
), [
|
|
1446
|
+
), [n, i] = e.useState(null), [d, s] = e.useState(o), m = () => {
|
|
1443
1447
|
l && (i(
|
|
1444
|
-
|
|
1448
|
+
ar(
|
|
1445
1449
|
l,
|
|
1446
|
-
|
|
1450
|
+
er
|
|
1447
1451
|
).getBoundingClientRect()
|
|
1448
|
-
),
|
|
1452
|
+
), s(!1));
|
|
1449
1453
|
};
|
|
1450
1454
|
return e.useEffect(() => {
|
|
1451
1455
|
if (l !== null)
|
|
@@ -1459,48 +1463,48 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1459
1463
|
}
|
|
1460
1464
|
}, [r]), e.useEffect(() => {
|
|
1461
1465
|
l && i(
|
|
1462
|
-
|
|
1466
|
+
ar(
|
|
1463
1467
|
l,
|
|
1464
|
-
|
|
1468
|
+
er
|
|
1465
1469
|
).getBoundingClientRect()
|
|
1466
|
-
),
|
|
1467
|
-
}, [l]), l && _ &&
|
|
1468
|
-
|
|
1470
|
+
), s(!0);
|
|
1471
|
+
}, [l]), l && _ && n ? /* @__PURE__ */ e.createElement($r, null, /* @__PURE__ */ e.createElement(
|
|
1472
|
+
A_,
|
|
1469
1473
|
{
|
|
1470
|
-
gap:
|
|
1474
|
+
gap: n,
|
|
1471
1475
|
isVisible: _,
|
|
1472
1476
|
slide: d,
|
|
1473
1477
|
disablePointerEvents: !0
|
|
1474
1478
|
}
|
|
1475
1479
|
), /* @__PURE__ */ e.createElement(
|
|
1476
|
-
|
|
1480
|
+
Ar,
|
|
1477
1481
|
T(k({}, t), {
|
|
1478
1482
|
triggerRenderer: /* @__PURE__ */ e.createElement(e.Fragment, null),
|
|
1479
1483
|
referenceElement: {
|
|
1480
|
-
getBoundingClientRect: () =>
|
|
1484
|
+
getBoundingClientRect: () => n,
|
|
1481
1485
|
contextElement: l
|
|
1482
1486
|
},
|
|
1483
1487
|
className: u({
|
|
1484
|
-
[D[
|
|
1485
|
-
[D[`${
|
|
1488
|
+
[D[tr]]: !0,
|
|
1489
|
+
[D[`${tr}--slide`]]: d,
|
|
1486
1490
|
className: a
|
|
1487
1491
|
})
|
|
1488
1492
|
}),
|
|
1489
1493
|
t.children
|
|
1490
1494
|
)) : null;
|
|
1491
|
-
},
|
|
1495
|
+
}, kt = "reports-tooltip", $c = ({
|
|
1492
1496
|
title: t,
|
|
1493
1497
|
description: a,
|
|
1494
1498
|
children: r
|
|
1495
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: D[
|
|
1499
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: D[kt] }, /* @__PURE__ */ e.createElement("div", { className: D[`${kt}__heading`] }, /* @__PURE__ */ e.createElement(I, { as: "div", className: D[`${kt}__heading__title`] }, t), /* @__PURE__ */ e.createElement(
|
|
1496
1500
|
I,
|
|
1497
1501
|
{
|
|
1498
1502
|
as: "div",
|
|
1499
1503
|
size: "xs",
|
|
1500
|
-
className: D[`${
|
|
1504
|
+
className: D[`${kt}__heading__description`]
|
|
1501
1505
|
},
|
|
1502
1506
|
a
|
|
1503
|
-
)), /* @__PURE__ */ e.createElement("div", { className: D[`${
|
|
1507
|
+
)), /* @__PURE__ */ e.createElement("div", { className: D[`${kt}__content`] }, /* @__PURE__ */ e.createElement(I, { as: "div" }, r))), U = {
|
|
1504
1508
|
"action-bar": "lc-ActionBar-module__action-bar___TJitF",
|
|
1505
1509
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___uhoQA",
|
|
1506
1510
|
"action-bar__items--scroll": "lc-ActionBar-module__action-bar__items--scroll___f--dN",
|
|
@@ -1524,17 +1528,17 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1524
1528
|
"action-bar--vertical": "lc-ActionBar-module__action-bar--vertical___tMzLJ",
|
|
1525
1529
|
"action-bar__items__button": "lc-ActionBar-module__action-bar__items__button___Vdjl7",
|
|
1526
1530
|
"action-bar__items__button--active": "lc-ActionBar-module__action-bar__items__button--active___PFLdm"
|
|
1527
|
-
},
|
|
1531
|
+
}, Pr = "action-bar__items", yt = `${Pr}__button-wrapper`, I_ = ({
|
|
1528
1532
|
id: t,
|
|
1529
1533
|
option: a,
|
|
1530
1534
|
isHidden: r,
|
|
1531
1535
|
isActive: _,
|
|
1532
1536
|
vertical: o
|
|
1533
1537
|
}) => {
|
|
1534
|
-
const l = u(U[
|
|
1535
|
-
[U[`${
|
|
1536
|
-
[U[`${
|
|
1537
|
-
[U[`${
|
|
1538
|
+
const l = u(U[yt], {
|
|
1539
|
+
[U[`${yt}--hidden`]]: r,
|
|
1540
|
+
[U[`${yt}--active`]]: _,
|
|
1541
|
+
[U[`${yt}--vertical`]]: o
|
|
1538
1542
|
}), c = /* @__PURE__ */ e.createElement(
|
|
1539
1543
|
W,
|
|
1540
1544
|
{
|
|
@@ -1546,7 +1550,7 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1546
1550
|
onClick: a.onClick,
|
|
1547
1551
|
icon: a.element,
|
|
1548
1552
|
disabled: r,
|
|
1549
|
-
className: U[`${
|
|
1553
|
+
className: U[`${yt}__button`]
|
|
1550
1554
|
}
|
|
1551
1555
|
);
|
|
1552
1556
|
return a.showTooltip ? /* @__PURE__ */ e.createElement(
|
|
@@ -1557,11 +1561,11 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1557
1561
|
className: l
|
|
1558
1562
|
},
|
|
1559
1563
|
/* @__PURE__ */ e.createElement(
|
|
1560
|
-
|
|
1564
|
+
Ar,
|
|
1561
1565
|
{
|
|
1562
1566
|
kind: "invert",
|
|
1563
1567
|
placement: o ? "left" : "bottom",
|
|
1564
|
-
triggerClassName: U[`${
|
|
1568
|
+
triggerClassName: U[`${Pr}__tooltip`],
|
|
1565
1569
|
triggerRenderer: () => c,
|
|
1566
1570
|
floatingStrategy: "fixed",
|
|
1567
1571
|
useClickHookProps: {
|
|
@@ -1573,7 +1577,7 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1573
1577
|
/* @__PURE__ */ e.createElement("div", null, a.label)
|
|
1574
1578
|
)
|
|
1575
1579
|
) : /* @__PURE__ */ e.createElement("div", { "data-testid": a.key, className: l }, c);
|
|
1576
|
-
},
|
|
1580
|
+
}, Et = "action-bar", Ge = "action-bar__menu-wrapper", Nc = ({
|
|
1577
1581
|
className: t,
|
|
1578
1582
|
id: a = "action-bar-area",
|
|
1579
1583
|
type: r = "menu",
|
|
@@ -1582,31 +1586,31 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1582
1586
|
vertical: l,
|
|
1583
1587
|
menuFooter: c
|
|
1584
1588
|
}) => {
|
|
1585
|
-
const [
|
|
1586
|
-
U[
|
|
1589
|
+
const [n, i] = e.useState([]), [d, s] = e.useState(0), [m, p] = e.useState(!1), f = r === "scroll", b = u(
|
|
1590
|
+
U[Et],
|
|
1587
1591
|
t,
|
|
1588
|
-
l && U[`${
|
|
1592
|
+
l && U[`${Et}--vertical`]
|
|
1589
1593
|
), E = {
|
|
1590
1594
|
root: document.querySelector(`${a}`),
|
|
1591
1595
|
threshold: 1
|
|
1592
|
-
}, v = !f &&
|
|
1596
|
+
}, v = !f && n.length !== 0;
|
|
1593
1597
|
e.useEffect(() => {
|
|
1594
1598
|
if (f)
|
|
1595
1599
|
return;
|
|
1596
|
-
const w = 44, g = 4,
|
|
1597
|
-
|
|
1598
|
-
}, [
|
|
1600
|
+
const w = 44, g = 4, C = _.length, S = n.length, q = (C - S) * w + g;
|
|
1601
|
+
s(q);
|
|
1602
|
+
}, [n, _, f]);
|
|
1599
1603
|
const h = (w) => {
|
|
1600
1604
|
w.map((g) => {
|
|
1601
|
-
const
|
|
1605
|
+
const C = n.includes(g.target.id);
|
|
1602
1606
|
if (!g.isIntersecting) {
|
|
1603
|
-
g.target.setAttribute("tabindex", "-1"),
|
|
1607
|
+
g.target.setAttribute("tabindex", "-1"), C || i((S) => [
|
|
1604
1608
|
...S,
|
|
1605
1609
|
g.target.id
|
|
1606
1610
|
]);
|
|
1607
1611
|
return;
|
|
1608
1612
|
}
|
|
1609
|
-
g.target.removeAttribute("tabindex"),
|
|
1613
|
+
g.target.removeAttribute("tabindex"), C && i(n.filter((S) => S !== g.target.id));
|
|
1610
1614
|
});
|
|
1611
1615
|
};
|
|
1612
1616
|
e.useEffect(() => {
|
|
@@ -1614,20 +1618,20 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1614
1618
|
if (!f && w) {
|
|
1615
1619
|
const g = document.querySelectorAll(
|
|
1616
1620
|
`button[data-actionbarid='${a}']`
|
|
1617
|
-
),
|
|
1621
|
+
), C = new IntersectionObserver(
|
|
1618
1622
|
h,
|
|
1619
1623
|
E
|
|
1620
1624
|
);
|
|
1621
|
-
return g.forEach((S) =>
|
|
1625
|
+
return g.forEach((S) => C.observe(S)), () => C.disconnect();
|
|
1622
1626
|
}
|
|
1623
|
-
}, [
|
|
1627
|
+
}, [n, f]);
|
|
1624
1628
|
const y = (w) => _.filter(
|
|
1625
|
-
(
|
|
1626
|
-
).map((
|
|
1627
|
-
key:
|
|
1628
|
-
element: /* @__PURE__ */ e.createElement(
|
|
1629
|
-
onClick:
|
|
1630
|
-
})), $ = _.filter((w) =>
|
|
1629
|
+
(C) => w.find((S) => S === C.key && !C.hideInMenu)
|
|
1630
|
+
).map((C) => ({
|
|
1631
|
+
key: C.key,
|
|
1632
|
+
element: /* @__PURE__ */ e.createElement(f_, { leftNode: C.element }, C.label),
|
|
1633
|
+
onClick: C.onClick
|
|
1634
|
+
})), $ = _.filter((w) => n.find((g) => g === w.key)).find((w) => w.key === o), N = (w, g) => g ? {
|
|
1631
1635
|
top: w
|
|
1632
1636
|
} : {
|
|
1633
1637
|
left: w
|
|
@@ -1635,17 +1639,17 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1635
1639
|
return /* @__PURE__ */ e.createElement("div", { id: a, className: b }, /* @__PURE__ */ e.createElement(
|
|
1636
1640
|
"div",
|
|
1637
1641
|
{
|
|
1638
|
-
className: u(U[`${
|
|
1639
|
-
[U[`${
|
|
1640
|
-
[U[`${
|
|
1642
|
+
className: u(U[`${Et}__items`], {
|
|
1643
|
+
[U[`${Et}__items--scroll`]]: f,
|
|
1644
|
+
[U[`${Et}__items--with-menu`]]: v
|
|
1641
1645
|
})
|
|
1642
1646
|
},
|
|
1643
1647
|
_.map((w) => /* @__PURE__ */ e.createElement(
|
|
1644
|
-
|
|
1648
|
+
I_,
|
|
1645
1649
|
{
|
|
1646
1650
|
id: a,
|
|
1647
1651
|
option: w,
|
|
1648
|
-
isHidden:
|
|
1652
|
+
isHidden: n.includes(w.key),
|
|
1649
1653
|
isActive: w.key === o,
|
|
1650
1654
|
vertical: l
|
|
1651
1655
|
}
|
|
@@ -1658,17 +1662,17 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1658
1662
|
$ && U[`${Ge}--active`],
|
|
1659
1663
|
l && U[`${Ge}--vertical`]
|
|
1660
1664
|
),
|
|
1661
|
-
style:
|
|
1665
|
+
style: N(d, l)
|
|
1662
1666
|
},
|
|
1663
1667
|
/* @__PURE__ */ e.createElement(
|
|
1664
|
-
|
|
1668
|
+
b_,
|
|
1665
1669
|
{
|
|
1666
1670
|
selectedOptions: o ? [o] : [],
|
|
1667
1671
|
onOpen: () => p(!0),
|
|
1668
1672
|
onClose: () => p(!1),
|
|
1669
1673
|
floatingStrategy: "fixed",
|
|
1670
1674
|
placement: l ? "left-start" : "bottom-end",
|
|
1671
|
-
options: y(
|
|
1675
|
+
options: y(n),
|
|
1672
1676
|
triggerClassName: u(
|
|
1673
1677
|
l && U[`${Ge}__trigger-vertical`]
|
|
1674
1678
|
),
|
|
@@ -1683,7 +1687,7 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1683
1687
|
icon: /* @__PURE__ */ e.createElement(
|
|
1684
1688
|
A,
|
|
1685
1689
|
{
|
|
1686
|
-
source:
|
|
1690
|
+
source: It,
|
|
1687
1691
|
kind: "primary",
|
|
1688
1692
|
className: u(
|
|
1689
1693
|
U[`${Ge}__button__icon`],
|
|
@@ -1707,14 +1711,68 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1707
1711
|
}
|
|
1708
1712
|
)
|
|
1709
1713
|
));
|
|
1710
|
-
},
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1714
|
+
}, ct = {
|
|
1715
|
+
"main-wrapper": "lc-ActionCard-module__main-wrapper___Mt65R",
|
|
1716
|
+
"action-card": "lc-ActionCard-module__action-card___lSEBY",
|
|
1717
|
+
"action-card__column": "lc-ActionCard-module__action-card__column___K7tyh",
|
|
1718
|
+
"action-card__column--first": "lc-ActionCard-module__action-card__column--first___9XE58",
|
|
1719
|
+
"action-card__column--second": "lc-ActionCard-module__action-card__column--second___X1UC-"
|
|
1720
|
+
}, Ze = "action-card", Cc = ({
|
|
1721
|
+
className: t,
|
|
1722
|
+
children: a,
|
|
1723
|
+
secondColumn: r,
|
|
1724
|
+
firstColumnClassName: _,
|
|
1725
|
+
secondColumnClassName: o,
|
|
1726
|
+
onClick: l
|
|
1727
|
+
}) => {
|
|
1728
|
+
const c = u(ct[Ze], t), n = (d) => {
|
|
1729
|
+
d.currentTarget === document.activeElement && (l == null || l());
|
|
1730
|
+
}, i = (d) => {
|
|
1731
|
+
d.currentTarget === document.activeElement && (d.key === "Enter" || d.key === " " || d.key === "Spacebar" || d.key === "Space") && (d.preventDefault(), l == null || l());
|
|
1732
|
+
};
|
|
1733
|
+
return /* @__PURE__ */ e.createElement("div", { className: ct["main-wrapper"] }, /* @__PURE__ */ e.createElement(
|
|
1734
|
+
"div",
|
|
1735
|
+
{
|
|
1736
|
+
role: "button",
|
|
1737
|
+
"aria-label": "Action Card",
|
|
1738
|
+
tabIndex: 0,
|
|
1739
|
+
className: c,
|
|
1740
|
+
onClick: n,
|
|
1741
|
+
onKeyDown: i
|
|
1742
|
+
},
|
|
1743
|
+
/* @__PURE__ */ e.createElement(
|
|
1744
|
+
"div",
|
|
1745
|
+
{
|
|
1746
|
+
"data-testid": `${Ze}-first-column`,
|
|
1747
|
+
className: u(
|
|
1748
|
+
ct[`${Ze}__column`],
|
|
1749
|
+
ct[`${Ze}__column--first`],
|
|
1750
|
+
_
|
|
1751
|
+
)
|
|
1752
|
+
},
|
|
1753
|
+
a
|
|
1754
|
+
),
|
|
1755
|
+
r && /* @__PURE__ */ e.createElement(
|
|
1756
|
+
"div",
|
|
1757
|
+
{
|
|
1758
|
+
"data-testid": `${Ze}-second-column`,
|
|
1759
|
+
className: u(
|
|
1760
|
+
ct[`${Ze}__column`],
|
|
1761
|
+
ct[`${Ze}__column--second`],
|
|
1762
|
+
o
|
|
1763
|
+
)
|
|
1764
|
+
},
|
|
1765
|
+
r
|
|
1766
|
+
)
|
|
1767
|
+
));
|
|
1768
|
+
}, F_ = "lc-Alert-module__alert___HBTns", M_ = "lc-Alert-module__alert__icon___8TaAH", R_ = "lc-Alert-module__alert__content___9nZdf", L_ = "lc-Alert-module__alert__content__wrapper___aLBkP", O_ = "lc-Alert-module__alert__content__wrapper__text___HDMbR", H_ = "lc-Alert-module__alert__content__wrapper__cta___9L-oE", z_ = "lc-Alert-module__alert__content__wrapper__cta__link___D9Igz", he = {
|
|
1769
|
+
alert: F_,
|
|
1770
|
+
alert__icon: M_,
|
|
1771
|
+
alert__content: R_,
|
|
1772
|
+
alert__content__wrapper: L_,
|
|
1773
|
+
alert__content__wrapper__text: O_,
|
|
1774
|
+
alert__content__wrapper__cta: H_,
|
|
1775
|
+
alert__content__wrapper__cta__link: z_,
|
|
1718
1776
|
"alert__close-icon": "lc-Alert-module__alert__close-icon___rYxVy",
|
|
1719
1777
|
"alert--small": "lc-Alert-module__alert--small___Fyk-v",
|
|
1720
1778
|
"alert--medium": "lc-Alert-module__alert--medium___ItZWT",
|
|
@@ -1723,25 +1781,25 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1723
1781
|
"alert--warning": "lc-Alert-module__alert--warning___MubhD",
|
|
1724
1782
|
"alert--success": "lc-Alert-module__alert--success___fPtlZ",
|
|
1725
1783
|
"alert--error": "lc-Alert-module__alert--error___DKPo0"
|
|
1726
|
-
},
|
|
1784
|
+
}, G_ = {
|
|
1727
1785
|
info: {
|
|
1728
|
-
source:
|
|
1786
|
+
source: La,
|
|
1729
1787
|
kind: "link"
|
|
1730
1788
|
},
|
|
1731
1789
|
warning: {
|
|
1732
|
-
source:
|
|
1790
|
+
source: hr,
|
|
1733
1791
|
kind: "warning"
|
|
1734
1792
|
},
|
|
1735
1793
|
success: {
|
|
1736
|
-
source:
|
|
1794
|
+
source: kr,
|
|
1737
1795
|
kind: "success"
|
|
1738
1796
|
},
|
|
1739
1797
|
error: {
|
|
1740
|
-
source:
|
|
1798
|
+
source: yr,
|
|
1741
1799
|
kind: "error"
|
|
1742
1800
|
}
|
|
1743
|
-
}, ke = "alert",
|
|
1744
|
-
var i =
|
|
1801
|
+
}, ke = "alert", Sc = (n) => {
|
|
1802
|
+
var i = n, {
|
|
1745
1803
|
children: t,
|
|
1746
1804
|
className: a,
|
|
1747
1805
|
primaryButton: r,
|
|
@@ -1756,22 +1814,22 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1756
1814
|
"kind",
|
|
1757
1815
|
"onClose"
|
|
1758
1816
|
]);
|
|
1759
|
-
const d = e.useRef(null), [
|
|
1817
|
+
const d = e.useRef(null), [s, m] = e.useState(null), p = u(
|
|
1760
1818
|
he[ke],
|
|
1761
1819
|
he[`${ke}--${o}`],
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1820
|
+
s === "large" && he[`${ke}--large`],
|
|
1821
|
+
s === "medium" && he[`${ke}--medium`],
|
|
1822
|
+
s === "small" && he[`${ke}--small`],
|
|
1765
1823
|
a
|
|
1766
1824
|
);
|
|
1767
1825
|
return e.useEffect(() => {
|
|
1768
|
-
const f = () => d.current && d.current.offsetWidth <= 400 ? m("small") : d.current && d.current.offsetWidth > 400 && d.current.offsetWidth <= 800 ? m("medium") : m("large"), b =
|
|
1826
|
+
const f = () => d.current && d.current.offsetWidth <= 400 ? m("small") : d.current && d.current.offsetWidth > 400 && d.current.offsetWidth <= 800 ? m("medium") : m("large"), b = Nr(() => {
|
|
1769
1827
|
f();
|
|
1770
1828
|
}, 500);
|
|
1771
1829
|
return window.addEventListener("resize", b), f(), () => window.removeEventListener("resize", b);
|
|
1772
1830
|
}), /* @__PURE__ */ e.createElement("div", k({ ref: d, className: p }, c), /* @__PURE__ */ e.createElement("div", { className: he[`${ke}__content`] }, /* @__PURE__ */ e.createElement("div", { className: he[`${ke}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1773
1831
|
A,
|
|
1774
|
-
T(k({},
|
|
1832
|
+
T(k({}, G_[o]), {
|
|
1775
1833
|
size: "large",
|
|
1776
1834
|
className: he[`${ke}__icon`]
|
|
1777
1835
|
})
|
|
@@ -1801,17 +1859,17 @@ const ja = 8, Za = "guide-tooltip", er = (t, a) => new B_(t, a), yc = (t) => {
|
|
|
1801
1859
|
onClick: l
|
|
1802
1860
|
}
|
|
1803
1861
|
));
|
|
1804
|
-
},
|
|
1862
|
+
}, rr = Array.from(
|
|
1805
1863
|
{ length: 10 },
|
|
1806
1864
|
(t, a) => `--surface-avatar-${a + 1}`
|
|
1807
1865
|
);
|
|
1808
|
-
function
|
|
1866
|
+
function U_(t) {
|
|
1809
1867
|
if (!t)
|
|
1810
1868
|
return;
|
|
1811
1869
|
const a = t.split("").reduce((r, _) => r + _.charCodeAt(0), 0);
|
|
1812
|
-
return `var(${
|
|
1870
|
+
return `var(${rr[a % rr.length]})`;
|
|
1813
1871
|
}
|
|
1814
|
-
function
|
|
1872
|
+
function W_(t = "", a = 2) {
|
|
1815
1873
|
const r = t.trim().split(/\s+/), _ = r.map((l) => [...l][0]);
|
|
1816
1874
|
if (a < 1)
|
|
1817
1875
|
return "";
|
|
@@ -1822,17 +1880,17 @@ function G_(t = "", a = 2) {
|
|
|
1822
1880
|
o.push(_[l]);
|
|
1823
1881
|
return o.join("").toUpperCase();
|
|
1824
1882
|
}
|
|
1825
|
-
function
|
|
1883
|
+
function V_(t) {
|
|
1826
1884
|
let a = t;
|
|
1827
1885
|
if (t.startsWith("var(--") && t.endsWith(")")) {
|
|
1828
1886
|
const r = t.slice(4, -1);
|
|
1829
1887
|
a = window.getComputedStyle(document.documentElement).getPropertyValue(r).trim();
|
|
1830
1888
|
}
|
|
1831
|
-
return a &&
|
|
1889
|
+
return a && Ga(a, "#FFFFFF") > 3 ? "var(--color-white)" : "var(--color-black)";
|
|
1832
1890
|
}
|
|
1833
|
-
const
|
|
1834
|
-
avatar:
|
|
1835
|
-
avatar__status:
|
|
1891
|
+
const q_ = "lc-Avatar-module__avatar___1zTCE", Y_ = "lc-Avatar-module__avatar__status___nX2Ls", K_ = "lc-Avatar-module__avatar__rim___RCQ8Q", J_ = "lc-Avatar-module__avatar__image___YqfqE", pe = {
|
|
1892
|
+
avatar: q_,
|
|
1893
|
+
avatar__status: Y_,
|
|
1836
1894
|
"avatar__status--available": "lc-Avatar-module__avatar__status--available___tcpFg",
|
|
1837
1895
|
"avatar__status--unavailable": "lc-Avatar-module__avatar__status--unavailable___ciauF",
|
|
1838
1896
|
"avatar__status--unknown": "lc-Avatar-module__avatar__status--unknown___MBaGB",
|
|
@@ -1847,7 +1905,7 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1847
1905
|
"avatar__status--xxlarge": "lc-Avatar-module__avatar__status--xxlarge___crG9D",
|
|
1848
1906
|
"avatar__status--xxxlarge": "lc-Avatar-module__avatar__status--xxxlarge___Iv61X",
|
|
1849
1907
|
"avatar__status--rounded-square": "lc-Avatar-module__avatar__status--rounded-square___-My1P",
|
|
1850
|
-
avatar__rim:
|
|
1908
|
+
avatar__rim: K_,
|
|
1851
1909
|
"avatar__rim--xxxsmall": "lc-Avatar-module__avatar__rim--xxxsmall___0CH9D",
|
|
1852
1910
|
"avatar__rim--xxsmall": "lc-Avatar-module__avatar__rim--xxsmall___Mde0K",
|
|
1853
1911
|
"avatar__rim--xsmall": "lc-Avatar-module__avatar__rim--xsmall___LAN-b",
|
|
@@ -1857,7 +1915,7 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1857
1915
|
"avatar__rim--xlarge": "lc-Avatar-module__avatar__rim--xlarge___CY0kN",
|
|
1858
1916
|
"avatar__rim--xxlarge": "lc-Avatar-module__avatar__rim--xxlarge___tE053",
|
|
1859
1917
|
"avatar__rim--xxxlarge": "lc-Avatar-module__avatar__rim--xxxlarge___amlGP",
|
|
1860
|
-
avatar__image:
|
|
1918
|
+
avatar__image: J_,
|
|
1861
1919
|
"avatar__icon--xxxsmall": "lc-Avatar-module__avatar__icon--xxxsmall___KaoMa",
|
|
1862
1920
|
"avatar__icon--xxsmall": "lc-Avatar-module__avatar__icon--xxsmall___NJJNV",
|
|
1863
1921
|
"avatar__icon--xsmall": "lc-Avatar-module__avatar__icon--xsmall___yHEZK",
|
|
@@ -1878,7 +1936,7 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1878
1936
|
"avatar--xlarge": "lc-Avatar-module__avatar--xlarge___zwgeW",
|
|
1879
1937
|
"avatar--xxlarge": "lc-Avatar-module__avatar--xxlarge___Ur0ul",
|
|
1880
1938
|
"avatar--xxxlarge": "lc-Avatar-module__avatar--xxxlarge___Z-54U"
|
|
1881
|
-
}, ee = "avatar",
|
|
1939
|
+
}, ee = "avatar", X_ = (m) => {
|
|
1882
1940
|
var p = m, {
|
|
1883
1941
|
alt: t,
|
|
1884
1942
|
className: a,
|
|
@@ -1887,10 +1945,10 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1887
1945
|
size: o = "medium",
|
|
1888
1946
|
src: l,
|
|
1889
1947
|
status: c,
|
|
1890
|
-
text:
|
|
1948
|
+
text: n,
|
|
1891
1949
|
type: i,
|
|
1892
1950
|
withRim: d = !1
|
|
1893
|
-
} = p,
|
|
1951
|
+
} = p, s = F(p, [
|
|
1894
1952
|
"alt",
|
|
1895
1953
|
"className",
|
|
1896
1954
|
"color",
|
|
@@ -1902,7 +1960,7 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1902
1960
|
"type",
|
|
1903
1961
|
"withRim"
|
|
1904
1962
|
]);
|
|
1905
|
-
const f = i === "image" && !l, [b, E] = e.useState(f), v = i === "image" && !!l && !b, h = i === "text", y = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, $ =
|
|
1963
|
+
const f = i === "image" && !l, [b, E] = e.useState(f), v = i === "image" && !!l && !b, h = i === "text", y = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, $ = W_(n, y), N = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), w = r || U_(n), g = w ? V_(w) : void 0, C = h ? { backgroundColor: w } : {}, S = u(k({
|
|
1906
1964
|
[pe[ee]]: !0,
|
|
1907
1965
|
[pe[`${ee}--${_}`]]: !0,
|
|
1908
1966
|
[pe[`${ee}--${o}`]]: !0,
|
|
@@ -1918,10 +1976,10 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1918
1976
|
), x = u(
|
|
1919
1977
|
pe[`${ee}__rim`],
|
|
1920
1978
|
pe[`${ee}__rim--${o}`]
|
|
1921
|
-
), R = (G) =>
|
|
1979
|
+
), R = (G) => N ? "2xs" : ["medium"].includes(G) ? "xs" : ["large", "xlarge"].includes(G) ? "sm" : ["xxlarge"].includes(G) ? "lg" : "xl", Y = e.useCallback(() => E(!0), []);
|
|
1922
1980
|
return e.useEffect(() => {
|
|
1923
1981
|
E(f);
|
|
1924
|
-
}, [f]), /* @__PURE__ */ e.createElement("div", k({ className: S, style:
|
|
1982
|
+
}, [f]), /* @__PURE__ */ e.createElement("div", k({ className: S, style: C }, s), d && /* @__PURE__ */ e.createElement(
|
|
1925
1983
|
"div",
|
|
1926
1984
|
{
|
|
1927
1985
|
"data-testid": `${ee}__rim`,
|
|
@@ -1947,8 +2005,8 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1947
2005
|
as: "span",
|
|
1948
2006
|
size: R(o),
|
|
1949
2007
|
style: { color: g },
|
|
1950
|
-
bold:
|
|
1951
|
-
uppercase:
|
|
2008
|
+
bold: N,
|
|
2009
|
+
uppercase: N
|
|
1952
2010
|
},
|
|
1953
2011
|
$
|
|
1954
2012
|
), b && /* @__PURE__ */ e.createElement(
|
|
@@ -1956,24 +2014,24 @@ const W_ = "lc-Avatar-module__avatar___1zTCE", V_ = "lc-Avatar-module__avatar__s
|
|
|
1956
2014
|
{
|
|
1957
2015
|
"data-testid": `${ee}__icon`,
|
|
1958
2016
|
className: q,
|
|
1959
|
-
source:
|
|
2017
|
+
source: qr
|
|
1960
2018
|
}
|
|
1961
2019
|
));
|
|
1962
2020
|
};
|
|
1963
|
-
function
|
|
2021
|
+
function Q_(t, a) {
|
|
1964
2022
|
return t > a ? `${a}+` : `${t}`;
|
|
1965
2023
|
}
|
|
1966
|
-
const
|
|
1967
|
-
badge:
|
|
1968
|
-
badge__dot:
|
|
2024
|
+
const j_ = "lc-Badge-module__badge___GhLnu", Z_ = "lc-Badge-module__badge__dot___z6RO6", Ht = {
|
|
2025
|
+
badge: j_,
|
|
2026
|
+
badge__dot: Z_,
|
|
1969
2027
|
"badge--large": "lc-Badge-module__badge--large___B131q",
|
|
1970
2028
|
"badge--medium": "lc-Badge-module__badge--medium___TDU8a",
|
|
1971
2029
|
"badge--compact": "lc-Badge-module__badge--compact___9xJ4y",
|
|
1972
2030
|
"badge--primary": "lc-Badge-module__badge--primary___8LRpp",
|
|
1973
2031
|
"badge--secondary": "lc-Badge-module__badge--secondary___JjNIJ",
|
|
1974
2032
|
"badge--tertiary": "lc-Badge-module__badge--tertiary___e83wV"
|
|
1975
|
-
},
|
|
1976
|
-
var i =
|
|
2033
|
+
}, zt = "badge", eo = (n) => {
|
|
2034
|
+
var i = n, {
|
|
1977
2035
|
className: t,
|
|
1978
2036
|
count: a = 0,
|
|
1979
2037
|
max: r = 99,
|
|
@@ -1990,53 +2048,53 @@ const X_ = "lc-Badge-module__badge___GhLnu", Q_ = "lc-Badge-module__badge__dot__
|
|
|
1990
2048
|
]);
|
|
1991
2049
|
const d = u(
|
|
1992
2050
|
t,
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
),
|
|
1997
|
-
counter:
|
|
2051
|
+
Ht[zt],
|
|
2052
|
+
Ht[`${zt}--${_}`],
|
|
2053
|
+
Ht[`${zt}--${o}`]
|
|
2054
|
+
), s = {
|
|
2055
|
+
counter: Q_(a, r),
|
|
1998
2056
|
alert: "!",
|
|
1999
|
-
dot: /* @__PURE__ */ e.createElement("span", { "data-testid": "badge-dot", className:
|
|
2057
|
+
dot: /* @__PURE__ */ e.createElement("span", { "data-testid": "badge-dot", className: Ht[`${zt}__dot`] })
|
|
2000
2058
|
}[l];
|
|
2001
|
-
return /* @__PURE__ */ e.createElement("span", k({ className: d }, c),
|
|
2059
|
+
return /* @__PURE__ */ e.createElement("span", k({ className: d }, c), s);
|
|
2002
2060
|
};
|
|
2003
|
-
function
|
|
2061
|
+
function to() {
|
|
2004
2062
|
}
|
|
2005
|
-
const
|
|
2063
|
+
const ao = "lc-SegmentedControl-module__btn___tfsvL", Gt = {
|
|
2006
2064
|
"segmented-control": "lc-SegmentedControl-module__segmented-control___LHWSk",
|
|
2007
|
-
btn:
|
|
2065
|
+
btn: ao,
|
|
2008
2066
|
"btn--active": "lc-SegmentedControl-module__btn--active___Za-th",
|
|
2009
2067
|
"btn--compact": "lc-SegmentedControl-module__btn--compact___gcSwq",
|
|
2010
2068
|
"btn--medium": "lc-SegmentedControl-module__btn--medium___w3UzC",
|
|
2011
2069
|
"btn--large": "lc-SegmentedControl-module__btn--large___yHPw4"
|
|
2012
|
-
},
|
|
2070
|
+
}, ro = "segmented-control", xc = ({
|
|
2013
2071
|
size: t = "medium",
|
|
2014
2072
|
buttons: a,
|
|
2015
2073
|
className: r,
|
|
2016
2074
|
initialId: _,
|
|
2017
2075
|
currentId: o,
|
|
2018
2076
|
fullWidth: l = !1,
|
|
2019
|
-
onButtonClick: c =
|
|
2077
|
+
onButtonClick: c = to
|
|
2020
2078
|
}) => {
|
|
2021
|
-
const
|
|
2079
|
+
const n = u(Gt[ro], r), [i, d] = e.useState(() => _), s = typeof o == "string";
|
|
2022
2080
|
e.useEffect(() => {
|
|
2023
|
-
|
|
2081
|
+
s && d(o);
|
|
2024
2082
|
}, [o]);
|
|
2025
2083
|
const m = (f, b) => {
|
|
2026
|
-
|
|
2084
|
+
s || d(f), c(f, b);
|
|
2027
2085
|
}, p = a.map(({ id: f, label: b, loading: E, disabled: v, icon: h }) => {
|
|
2028
|
-
const y = f === i, $ = y ?
|
|
2086
|
+
const y = f === i, $ = y ? Gt["btn--active"] : "", N = y ? !1 : E;
|
|
2029
2087
|
return /* @__PURE__ */ e.createElement(
|
|
2030
2088
|
W,
|
|
2031
2089
|
{
|
|
2032
2090
|
key: f,
|
|
2033
2091
|
fullWidth: l,
|
|
2034
|
-
loading:
|
|
2092
|
+
loading: N,
|
|
2035
2093
|
disabled: v,
|
|
2036
2094
|
"aria-pressed": y,
|
|
2037
2095
|
kind: "secondary",
|
|
2038
2096
|
icon: h,
|
|
2039
|
-
className: u(
|
|
2097
|
+
className: u(Gt.btn, Gt[`btn--${t}`], $),
|
|
2040
2098
|
onClick: (w) => {
|
|
2041
2099
|
m(f, w);
|
|
2042
2100
|
}
|
|
@@ -2044,23 +2102,23 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2044
2102
|
b
|
|
2045
2103
|
);
|
|
2046
2104
|
});
|
|
2047
|
-
return /* @__PURE__ */ e.createElement("div", { role: "group", className:
|
|
2048
|
-
},
|
|
2049
|
-
card:
|
|
2050
|
-
card__header:
|
|
2051
|
-
card__header__image:
|
|
2052
|
-
card__header__heading:
|
|
2053
|
-
card__header__heading__title:
|
|
2054
|
-
card__header__heading__description:
|
|
2105
|
+
return /* @__PURE__ */ e.createElement("div", { role: "group", className: n }, p);
|
|
2106
|
+
}, _o = "lc-Card-module__card___GqMm2", oo = "lc-Card-module__card__header___0ptfD", lo = "lc-Card-module__card__header__image___QMwSu", co = "lc-Card-module__card__header__heading___Wkikx", no = "lc-Card-module__card__header__heading__title___Uxi8s", so = "lc-Card-module__card__header__heading__description___6LnOK", io = "lc-Card-module__card__content___KuDcc", uo = "lc-Card-module__card__actions___q9sAo", mo = "lc-Card-module__card__actions__line___TF1bt", po = "lc-Card-module__card__actions__buttons___PDMMR", ge = {
|
|
2107
|
+
card: _o,
|
|
2108
|
+
card__header: oo,
|
|
2109
|
+
card__header__image: lo,
|
|
2110
|
+
card__header__heading: co,
|
|
2111
|
+
card__header__heading__title: no,
|
|
2112
|
+
card__header__heading__description: so,
|
|
2055
2113
|
"card__header__no-image": "lc-Card-module__card__header__no-image___UcnNY",
|
|
2056
|
-
card__content:
|
|
2114
|
+
card__content: io,
|
|
2057
2115
|
"card__expanded-content": "lc-Card-module__card__expanded-content___yB-QL",
|
|
2058
|
-
card__actions:
|
|
2059
|
-
card__actions__line:
|
|
2060
|
-
card__actions__buttons:
|
|
2116
|
+
card__actions: uo,
|
|
2117
|
+
card__actions__line: mo,
|
|
2118
|
+
card__actions__buttons: po,
|
|
2061
2119
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___lz4h-"
|
|
2062
|
-
},
|
|
2063
|
-
var
|
|
2120
|
+
}, Pt = "card", Qt = `${Pt}__header`, Ea = `${Qt}__heading`, Ut = `${Pt}__actions`, go = `${Qt}__no-image`, Tc = (d) => {
|
|
2121
|
+
var s = d, {
|
|
2064
2122
|
alt: t,
|
|
2065
2123
|
buttonsOptions: a = [],
|
|
2066
2124
|
children: r,
|
|
@@ -2068,8 +2126,8 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2068
2126
|
description: o,
|
|
2069
2127
|
expandableContent: l,
|
|
2070
2128
|
src: c,
|
|
2071
|
-
title:
|
|
2072
|
-
} =
|
|
2129
|
+
title: n
|
|
2130
|
+
} = s, i = F(s, [
|
|
2073
2131
|
"alt",
|
|
2074
2132
|
"buttonsOptions",
|
|
2075
2133
|
"children",
|
|
@@ -2079,35 +2137,35 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2079
2137
|
"src",
|
|
2080
2138
|
"title"
|
|
2081
2139
|
]);
|
|
2082
|
-
const [m, p] = e.useState(!1), f = m ?
|
|
2083
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: u(ge[
|
|
2140
|
+
const [m, p] = e.useState(!1), f = m ? Zt : It, b = m ? "Hide" : "Show more", E = (a == null ? void 0 : a.length) > 0, v = !!l, h = E || v, y = n, $ = c, N = $ ? "" : ge[go];
|
|
2141
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(ge[Pt], _) }, i), y && /* @__PURE__ */ e.createElement("div", { className: u(ge[Qt], N) }, $ && /* @__PURE__ */ e.createElement(
|
|
2084
2142
|
"img",
|
|
2085
2143
|
{
|
|
2086
2144
|
alt: t,
|
|
2087
|
-
className: ge[`${
|
|
2145
|
+
className: ge[`${Qt}__image`],
|
|
2088
2146
|
src: c
|
|
2089
2147
|
}
|
|
2090
|
-
), /* @__PURE__ */ e.createElement("div", { className: ge[
|
|
2148
|
+
), /* @__PURE__ */ e.createElement("div", { className: ge[Ea] }, /* @__PURE__ */ e.createElement(De, { size: "xs", className: ge[`${Ea}__title`] }, n), o && /* @__PURE__ */ e.createElement(
|
|
2091
2149
|
I,
|
|
2092
2150
|
{
|
|
2093
2151
|
size: "sm",
|
|
2094
|
-
className: ge[`${
|
|
2152
|
+
className: ge[`${Ea}__description`]
|
|
2095
2153
|
},
|
|
2096
2154
|
o
|
|
2097
|
-
))), /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: ge[`${
|
|
2155
|
+
))), /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: ge[`${Pt}__content`] }, r), m && /* @__PURE__ */ e.createElement(
|
|
2098
2156
|
I,
|
|
2099
2157
|
{
|
|
2100
2158
|
as: "div",
|
|
2101
2159
|
size: "md",
|
|
2102
|
-
className: ge[`${
|
|
2160
|
+
className: ge[`${Pt}__expanded-content`]
|
|
2103
2161
|
},
|
|
2104
2162
|
l
|
|
2105
|
-
), h && /* @__PURE__ */ e.createElement("div", { className: ge[
|
|
2106
|
-
({ kind: w, onClick: g, children:
|
|
2163
|
+
), h && /* @__PURE__ */ e.createElement("div", { className: ge[Ut] }, /* @__PURE__ */ e.createElement("div", { className: ge[`${Ut}__line`] }), /* @__PURE__ */ e.createElement("div", { className: ge[`${Ut}__buttons`] }, E && a.map(
|
|
2164
|
+
({ kind: w, onClick: g, children: C }) => /* @__PURE__ */ e.createElement(W, { size: "compact", kind: w, onClick: g }, C)
|
|
2107
2165
|
), v && /* @__PURE__ */ e.createElement(
|
|
2108
2166
|
W,
|
|
2109
2167
|
{
|
|
2110
|
-
className: ge[`${
|
|
2168
|
+
className: ge[`${Ut}__buttons-expander`],
|
|
2111
2169
|
kind: "link",
|
|
2112
2170
|
iconPosition: "right",
|
|
2113
2171
|
icon: /* @__PURE__ */ e.createElement(A, { source: f }),
|
|
@@ -2115,9 +2173,9 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2115
2173
|
},
|
|
2116
2174
|
b
|
|
2117
2175
|
))));
|
|
2118
|
-
},
|
|
2176
|
+
}, bo = {
|
|
2119
2177
|
"field-description": "lc-FieldDescription-module__field-description___IcRDH"
|
|
2120
|
-
},
|
|
2178
|
+
}, fo = "field-description", ia = (_) => {
|
|
2121
2179
|
var o = _, {
|
|
2122
2180
|
children: t,
|
|
2123
2181
|
className: a = ""
|
|
@@ -2125,40 +2183,40 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2125
2183
|
"children",
|
|
2126
2184
|
"className"
|
|
2127
2185
|
]);
|
|
2128
|
-
const l = u(
|
|
2186
|
+
const l = u(bo[fo], a);
|
|
2129
2187
|
return /* @__PURE__ */ e.createElement(I, T(k({ as: "span", size: "sm" }, r), { className: l }), t);
|
|
2130
|
-
},
|
|
2131
|
-
checkbox:
|
|
2132
|
-
checkbox__label:
|
|
2133
|
-
checkbox__text:
|
|
2134
|
-
checkbox__input:
|
|
2135
|
-
checkbox__checkmark:
|
|
2188
|
+
}, vo = "lc-Checkbox-module__checkbox___G7nTf", ho = "lc-Checkbox-module__checkbox__label___-o01x", ko = "lc-Checkbox-module__checkbox__text___P2SIq", yo = "lc-Checkbox-module__checkbox__input___YLbVF", Eo = "lc-Checkbox-module__checkbox__checkmark___16pfY", wo = "lc-Checkbox-module__checkbox__square___MHUyd", $o = "lc-Checkbox-module__checkbox__helper___YSJ-n", et = {
|
|
2189
|
+
checkbox: vo,
|
|
2190
|
+
checkbox__label: ho,
|
|
2191
|
+
checkbox__text: ko,
|
|
2192
|
+
checkbox__input: yo,
|
|
2193
|
+
checkbox__checkmark: Eo,
|
|
2136
2194
|
"checkbox--selected": "lc-Checkbox-module__checkbox--selected___S2vqY",
|
|
2137
|
-
checkbox__square:
|
|
2195
|
+
checkbox__square: wo,
|
|
2138
2196
|
"checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___-lAqW",
|
|
2139
|
-
checkbox__helper:
|
|
2140
|
-
},
|
|
2141
|
-
(
|
|
2142
|
-
var i =
|
|
2197
|
+
checkbox__helper: $o
|
|
2198
|
+
}, tt = "checkbox", No = e.forwardRef(
|
|
2199
|
+
(n, c) => {
|
|
2200
|
+
var i = n, { checked: t, disabled: a, children: r, description: _, className: o } = i, l = F(i, ["checked", "disabled", "children", "description", "className"]);
|
|
2143
2201
|
return /* @__PURE__ */ e.createElement(
|
|
2144
2202
|
"div",
|
|
2145
2203
|
{
|
|
2146
|
-
className: u(
|
|
2147
|
-
[
|
|
2148
|
-
[
|
|
2204
|
+
className: u(et[tt], o, {
|
|
2205
|
+
[et[`${tt}--selected`]]: t,
|
|
2206
|
+
[et[`${tt}--disabled`]]: a
|
|
2149
2207
|
})
|
|
2150
2208
|
},
|
|
2151
|
-
/* @__PURE__ */ e.createElement("label", { className:
|
|
2209
|
+
/* @__PURE__ */ e.createElement("label", { className: et[`${tt}__label`] }, /* @__PURE__ */ e.createElement(
|
|
2152
2210
|
"input",
|
|
2153
2211
|
T(k({}, l), {
|
|
2154
2212
|
ref: c,
|
|
2155
2213
|
checked: t,
|
|
2156
2214
|
disabled: a,
|
|
2157
|
-
className:
|
|
2215
|
+
className: et[`${tt}__input`],
|
|
2158
2216
|
type: "checkbox"
|
|
2159
2217
|
})
|
|
2160
|
-
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className:
|
|
2161
|
-
_ && /* @__PURE__ */ e.createElement(
|
|
2218
|
+
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: et[`${tt}__text`] }, r)),
|
|
2219
|
+
_ && /* @__PURE__ */ e.createElement(ia, { className: et[`${tt}__helper`] }, _)
|
|
2162
2220
|
);
|
|
2163
2221
|
}
|
|
2164
2222
|
), B = {
|
|
@@ -2196,7 +2254,7 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2196
2254
|
"date-picker--range__select-input": "lc-DatePicker-module__date-picker--range__select-input___6pyj3",
|
|
2197
2255
|
"date-picker--range__calendars-wrapper": "lc-DatePicker-module__date-picker--range__calendars-wrapper___8nWaW",
|
|
2198
2256
|
"date-picker__navbar-buttons-wrapper": "lc-DatePicker-module__date-picker__navbar-buttons-wrapper___Hnksb"
|
|
2199
|
-
},
|
|
2257
|
+
}, _r = "date-picker", Co = (t) => {
|
|
2200
2258
|
const {
|
|
2201
2259
|
onPreviousClick: a,
|
|
2202
2260
|
onMonthChange: r,
|
|
@@ -2204,85 +2262,85 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2204
2262
|
showNextButton: o,
|
|
2205
2263
|
showPreviousButton: l,
|
|
2206
2264
|
className: c,
|
|
2207
|
-
classNames:
|
|
2265
|
+
classNames: n,
|
|
2208
2266
|
numberOfMonths: i,
|
|
2209
2267
|
month: d,
|
|
2210
|
-
fromMonth:
|
|
2268
|
+
fromMonth: s,
|
|
2211
2269
|
toMonth: m
|
|
2212
2270
|
} = t, p = () => {
|
|
2213
2271
|
typeof a == "function" && a();
|
|
2214
2272
|
}, f = () => {
|
|
2215
2273
|
typeof _ == "function" && _();
|
|
2216
2274
|
}, b = () => {
|
|
2217
|
-
if (!
|
|
2218
|
-
const y =
|
|
2275
|
+
if (!s) {
|
|
2276
|
+
const y = pt(d, 12);
|
|
2219
2277
|
return r(y);
|
|
2220
2278
|
}
|
|
2221
|
-
const v = Math.abs(
|
|
2279
|
+
const v = Math.abs(Ka(d, s)), h = pt(
|
|
2222
2280
|
d,
|
|
2223
2281
|
!Number.isNaN(v) && v > 12 ? 12 : v
|
|
2224
2282
|
);
|
|
2225
2283
|
return r(h);
|
|
2226
2284
|
}, E = () => {
|
|
2227
2285
|
if (!m) {
|
|
2228
|
-
const y =
|
|
2286
|
+
const y = Ja(d, 12);
|
|
2229
2287
|
return r(y);
|
|
2230
2288
|
}
|
|
2231
|
-
const v = Math.abs(
|
|
2289
|
+
const v = Math.abs(Ka(m, d)), h = Ja(
|
|
2232
2290
|
d,
|
|
2233
2291
|
!Number.isNaN(v) && v > 12 ? 12 : v
|
|
2234
2292
|
);
|
|
2235
|
-
return i === 2 &&
|
|
2293
|
+
return i === 2 && Pa(h, m) ? r(pt(h, 1)) : r(h);
|
|
2236
2294
|
};
|
|
2237
|
-
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement("div", { className: B[`${
|
|
2295
|
+
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement("div", { className: B[`${_r}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
2238
2296
|
"button",
|
|
2239
2297
|
{
|
|
2240
2298
|
"data-testid": "date-picker-prev-year-button",
|
|
2241
2299
|
className: u({
|
|
2242
|
-
[
|
|
2243
|
-
[
|
|
2300
|
+
[n.navButtonPrev]: !0,
|
|
2301
|
+
[n.navButtonInteractionDisabled]: !l
|
|
2244
2302
|
}),
|
|
2245
2303
|
onClick: b
|
|
2246
2304
|
},
|
|
2247
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
2305
|
+
/* @__PURE__ */ e.createElement(A, { source: Yr, kind: "subtle" })
|
|
2248
2306
|
), /* @__PURE__ */ e.createElement(
|
|
2249
2307
|
"button",
|
|
2250
2308
|
{
|
|
2251
2309
|
"data-testid": "date-picker-prev-month-button",
|
|
2252
2310
|
className: u({
|
|
2253
|
-
[
|
|
2254
|
-
[
|
|
2311
|
+
[n.navButtonPrev]: !0,
|
|
2312
|
+
[n.navButtonInteractionDisabled]: !l
|
|
2255
2313
|
}),
|
|
2256
2314
|
onClick: p
|
|
2257
2315
|
},
|
|
2258
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
2259
|
-
)), /* @__PURE__ */ e.createElement("div", { className: B[`${
|
|
2316
|
+
/* @__PURE__ */ e.createElement(A, { source: Kr, kind: "subtle" })
|
|
2317
|
+
)), /* @__PURE__ */ e.createElement("div", { className: B[`${_r}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
2260
2318
|
"button",
|
|
2261
2319
|
{
|
|
2262
2320
|
"data-testid": "date-picker-next-month-button",
|
|
2263
2321
|
className: u({
|
|
2264
|
-
[
|
|
2265
|
-
[
|
|
2322
|
+
[n.navButtonNext]: !0,
|
|
2323
|
+
[n.navButtonInteractionDisabled]: !o
|
|
2266
2324
|
}),
|
|
2267
2325
|
onClick: f
|
|
2268
2326
|
},
|
|
2269
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
2327
|
+
/* @__PURE__ */ e.createElement(A, { source: Er, kind: "subtle" })
|
|
2270
2328
|
), /* @__PURE__ */ e.createElement(
|
|
2271
2329
|
"button",
|
|
2272
2330
|
{
|
|
2273
2331
|
"data-testid": "date-picker-next-year-button",
|
|
2274
2332
|
className: u({
|
|
2275
|
-
[
|
|
2276
|
-
[
|
|
2333
|
+
[n.navButtonNext]: !0,
|
|
2334
|
+
[n.navButtonInteractionDisabled]: !o
|
|
2277
2335
|
}),
|
|
2278
2336
|
onClick: E
|
|
2279
2337
|
},
|
|
2280
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
2338
|
+
/* @__PURE__ */ e.createElement(A, { source: Jr, kind: "subtle" })
|
|
2281
2339
|
)));
|
|
2282
|
-
}, M = "date-picker",
|
|
2340
|
+
}, M = "date-picker", Ir = (t, a) => {
|
|
2283
2341
|
const { from: r, to: _ } = a;
|
|
2284
|
-
return !(_ && !
|
|
2285
|
-
},
|
|
2342
|
+
return !(_ && !Ia(t, _) && Fa(t, _) || r && !Ia(t, r) && !Fa(t, r));
|
|
2343
|
+
}, Fr = (t, a, r) => a ? t && !Pa(t, a) || r && Pa(a, r) ? pt(a, 1) : a : pt(r || /* @__PURE__ */ new Date(), 1), So = (t, a) => {
|
|
2286
2344
|
const r = {
|
|
2287
2345
|
[B[`${M}__day--monday`]]: { daysOfWeek: [1] },
|
|
2288
2346
|
[B[`${M}__day--sunday`]]: { daysOfWeek: [0] },
|
|
@@ -2291,25 +2349,25 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2291
2349
|
};
|
|
2292
2350
|
if (!a || !t)
|
|
2293
2351
|
return r;
|
|
2294
|
-
const _ =
|
|
2352
|
+
const _ = Cr(a, t);
|
|
2295
2353
|
return _ > 0 ? T(k({}, r), {
|
|
2296
2354
|
[B[`${M}__day--end`]]: a
|
|
2297
2355
|
}) : _ < 0 ? T(k({}, r), {
|
|
2298
2356
|
[B[`${M}__day--start`]]: a
|
|
2299
2357
|
}) : r;
|
|
2300
|
-
},
|
|
2358
|
+
}, Bt = (t, a) => {
|
|
2301
2359
|
const r = a.find((_) => _.id === t);
|
|
2302
2360
|
return r || void 0;
|
|
2303
|
-
},
|
|
2361
|
+
}, or = (t, a) => !!(!t || t && a), xo = (t) => {
|
|
2304
2362
|
const a = {};
|
|
2305
2363
|
if (!t.initialSelectedItemKey)
|
|
2306
2364
|
return a;
|
|
2307
|
-
const r =
|
|
2365
|
+
const r = Bt(
|
|
2308
2366
|
t.initialSelectedItemKey,
|
|
2309
2367
|
t.options
|
|
2310
2368
|
);
|
|
2311
2369
|
return r ? (a.selectedItem = t.initialSelectedItemKey, r.isManual && (t.initialFromDate && (a.from = t.initialFromDate), t.initialToDate && (a.to = t.initialToDate, a.temporaryTo = t.initialToDate)), a) : {};
|
|
2312
|
-
},
|
|
2370
|
+
}, To = (t, a) => k({
|
|
2313
2371
|
container: u({
|
|
2314
2372
|
[B[`${M}`]]: !0,
|
|
2315
2373
|
[B[`${M}--range`]]: t
|
|
@@ -2344,10 +2402,10 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2344
2402
|
outside: B[`${M}__day--outside`],
|
|
2345
2403
|
start: B[`${M}__day--start`],
|
|
2346
2404
|
end: B[`${M}__day--end`]
|
|
2347
|
-
}, a),
|
|
2405
|
+
}, a), lr = "date-picker", Do = (t) => {
|
|
2348
2406
|
const a = t.getDate();
|
|
2349
|
-
return /* @__PURE__ */ e.createElement("div", { className: B[`${
|
|
2350
|
-
},
|
|
2407
|
+
return /* @__PURE__ */ e.createElement("div", { className: B[`${lr}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: B[`${lr}__day-content`] }, a));
|
|
2408
|
+
}, Bo = (t) => {
|
|
2351
2409
|
const h = t, {
|
|
2352
2410
|
classNames: a,
|
|
2353
2411
|
range: r,
|
|
@@ -2355,10 +2413,10 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2355
2413
|
month: o,
|
|
2356
2414
|
fromMonth: l,
|
|
2357
2415
|
firstDayOfWeek: c,
|
|
2358
|
-
numberOfMonths:
|
|
2416
|
+
numberOfMonths: n,
|
|
2359
2417
|
navbarElement: i,
|
|
2360
2418
|
renderDay: d,
|
|
2361
|
-
innerRef:
|
|
2419
|
+
innerRef: s
|
|
2362
2420
|
} = h, m = F(h, [
|
|
2363
2421
|
"classNames",
|
|
2364
2422
|
"range",
|
|
@@ -2374,7 +2432,7 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2374
2432
|
e.useEffect(() => {
|
|
2375
2433
|
o && o !== p && f(o);
|
|
2376
2434
|
}, [o, p]), e.useEffect(() => {
|
|
2377
|
-
_ && o !== p && (
|
|
2435
|
+
_ && o !== p && (Ir(p, { from: l, to: _ }) || f(_));
|
|
2378
2436
|
}, [o, p, _, l]);
|
|
2379
2437
|
const b = e.useCallback(
|
|
2380
2438
|
(y) => {
|
|
@@ -2389,40 +2447,40 @@ const eo = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2389
2447
|
let E = 1;
|
|
2390
2448
|
(c === 0 || c && c < 7) && (E = c);
|
|
2391
2449
|
const v = e.useMemo(
|
|
2392
|
-
() =>
|
|
2450
|
+
() => To(r, a),
|
|
2393
2451
|
[r, a]
|
|
2394
2452
|
);
|
|
2395
2453
|
return /* @__PURE__ */ e.createElement(
|
|
2396
|
-
|
|
2454
|
+
d_,
|
|
2397
2455
|
k({
|
|
2398
2456
|
navbarElement: i || /* @__PURE__ */ e.createElement(
|
|
2399
|
-
|
|
2457
|
+
Co,
|
|
2400
2458
|
{
|
|
2401
2459
|
month: p,
|
|
2402
2460
|
classNames: v,
|
|
2403
|
-
numberOfMonths:
|
|
2461
|
+
numberOfMonths: n,
|
|
2404
2462
|
onMonthChange: b,
|
|
2405
2463
|
toMonth: _,
|
|
2406
2464
|
fromMonth: l
|
|
2407
2465
|
}
|
|
2408
2466
|
),
|
|
2409
|
-
ref:
|
|
2467
|
+
ref: s,
|
|
2410
2468
|
classNames: v,
|
|
2411
|
-
numberOfMonths:
|
|
2469
|
+
numberOfMonths: n,
|
|
2412
2470
|
toMonth: _,
|
|
2413
2471
|
fromMonth: l,
|
|
2414
2472
|
firstDayOfWeek: E,
|
|
2415
2473
|
month: p,
|
|
2416
|
-
renderDay: d ||
|
|
2474
|
+
renderDay: d || Do
|
|
2417
2475
|
}, m)
|
|
2418
2476
|
);
|
|
2419
|
-
},
|
|
2420
|
-
(t, a) => /* @__PURE__ */ e.createElement(
|
|
2477
|
+
}, Ao = e.forwardRef(
|
|
2478
|
+
(t, a) => /* @__PURE__ */ e.createElement(Bo, k({ innerRef: a }, t))
|
|
2421
2479
|
);
|
|
2422
|
-
|
|
2480
|
+
Ao.displayName = "DatePicker";
|
|
2423
2481
|
var K = /* @__PURE__ */ ((t) => (t.NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM", t.NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE", t.CLEAR = "CLEAR", t.SET_FROM = "SET_FROM", t.SET_TO = "SET_TO", t.SELECT_FIRST_DAY = "SELECT_FIRST_DAY", t.SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM", t.SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO", t.CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE", t))(K || {});
|
|
2424
|
-
const
|
|
2425
|
-
const a =
|
|
2482
|
+
const Po = (t) => {
|
|
2483
|
+
const a = Fr(
|
|
2426
2484
|
t.initialFromDate,
|
|
2427
2485
|
t.initialToDate,
|
|
2428
2486
|
t.toMonth
|
|
@@ -2432,7 +2490,7 @@ const Bo = (t) => {
|
|
|
2432
2490
|
to: void 0,
|
|
2433
2491
|
temporaryTo: void 0,
|
|
2434
2492
|
currentMonth: a
|
|
2435
|
-
}),
|
|
2493
|
+
}), xo(t));
|
|
2436
2494
|
function o(l, c) {
|
|
2437
2495
|
switch (c.type) {
|
|
2438
2496
|
case K.NEW_SELECTED_ITEM:
|
|
@@ -2480,8 +2538,8 @@ const Bo = (t) => {
|
|
|
2480
2538
|
return l;
|
|
2481
2539
|
}
|
|
2482
2540
|
}
|
|
2483
|
-
return
|
|
2484
|
-
},
|
|
2541
|
+
return Wr(o, _);
|
|
2542
|
+
}, Io = ({
|
|
2485
2543
|
options: t,
|
|
2486
2544
|
initialSelectedItemKey: a,
|
|
2487
2545
|
initialFromDate: r,
|
|
@@ -2490,9 +2548,9 @@ const Bo = (t) => {
|
|
|
2490
2548
|
onChange: l,
|
|
2491
2549
|
children: c
|
|
2492
2550
|
}) => {
|
|
2493
|
-
const
|
|
2551
|
+
const n = Vr(
|
|
2494
2552
|
a || null
|
|
2495
|
-
), [i, d] =
|
|
2553
|
+
), [i, d] = Po({
|
|
2496
2554
|
options: t,
|
|
2497
2555
|
initialSelectedItemKey: a,
|
|
2498
2556
|
initialFromDate: r,
|
|
@@ -2501,18 +2559,18 @@ const Bo = (t) => {
|
|
|
2501
2559
|
onChange: l,
|
|
2502
2560
|
children: c
|
|
2503
2561
|
});
|
|
2504
|
-
|
|
2562
|
+
mt(() => {
|
|
2505
2563
|
d({
|
|
2506
2564
|
type: K.SET_FROM,
|
|
2507
2565
|
payload: { date: r }
|
|
2508
2566
|
});
|
|
2509
|
-
}, [r]),
|
|
2567
|
+
}, [r]), mt(() => {
|
|
2510
2568
|
d({
|
|
2511
2569
|
type: K.SET_TO,
|
|
2512
2570
|
payload: { date: _ }
|
|
2513
2571
|
});
|
|
2514
|
-
}, [_]),
|
|
2515
|
-
const E =
|
|
2572
|
+
}, [_]), mt(() => {
|
|
2573
|
+
const E = Fr(
|
|
2516
2574
|
r,
|
|
2517
2575
|
_,
|
|
2518
2576
|
o
|
|
@@ -2521,26 +2579,26 @@ const Bo = (t) => {
|
|
|
2521
2579
|
type: K.CURRENT_MONTH_CHANGE,
|
|
2522
2580
|
payload: { date: E }
|
|
2523
2581
|
});
|
|
2524
|
-
}, [o, r, _]),
|
|
2582
|
+
}, [o, r, _]), mt(() => {
|
|
2525
2583
|
const { from: E, selectedItem: v, to: h } = i;
|
|
2526
2584
|
if (!(E && h))
|
|
2527
2585
|
return;
|
|
2528
|
-
const y =
|
|
2586
|
+
const y = Bt(v, t);
|
|
2529
2587
|
y && (l == null || l(T(k({}, y), {
|
|
2530
2588
|
value: {
|
|
2531
2589
|
from: E,
|
|
2532
2590
|
to: h
|
|
2533
2591
|
}
|
|
2534
2592
|
})));
|
|
2535
|
-
}, [i.from, i.to, i.selectedItem, t, l]),
|
|
2593
|
+
}, [i.from, i.to, i.selectedItem, t, l]), mt(() => {
|
|
2536
2594
|
const { selectedItem: E } = i;
|
|
2537
|
-
if (E ===
|
|
2595
|
+
if (E === n.current)
|
|
2538
2596
|
return;
|
|
2539
2597
|
if (!E) {
|
|
2540
2598
|
l(null);
|
|
2541
2599
|
return;
|
|
2542
2600
|
}
|
|
2543
|
-
if (!
|
|
2601
|
+
if (!Bt(E, t))
|
|
2544
2602
|
return;
|
|
2545
2603
|
const h = t.reduce(
|
|
2546
2604
|
(y, $) => T(k({}, y), { [$.id]: $ }),
|
|
@@ -2548,22 +2606,22 @@ const Bo = (t) => {
|
|
|
2548
2606
|
);
|
|
2549
2607
|
l(h[E]);
|
|
2550
2608
|
}, [l, i.selectedItem, t]);
|
|
2551
|
-
const
|
|
2609
|
+
const s = Rt(
|
|
2552
2610
|
(E) => {
|
|
2553
|
-
const v = o ?
|
|
2554
|
-
!
|
|
2611
|
+
const v = o ? Cr(o, E) >= 0 : !0;
|
|
2612
|
+
!or(i.from, i.to) && v && d({
|
|
2555
2613
|
type: K.NEW_TEMPORARY_TO_VALUE,
|
|
2556
2614
|
payload: { date: E }
|
|
2557
2615
|
});
|
|
2558
2616
|
},
|
|
2559
2617
|
[o, i.from, i.to]
|
|
2560
|
-
), m =
|
|
2618
|
+
), m = Rt(
|
|
2561
2619
|
(E) => {
|
|
2562
2620
|
const { from: v, to: h } = i;
|
|
2563
|
-
|
|
2621
|
+
Ir(E, { to: o }) && (or(v, h) ? d({
|
|
2564
2622
|
type: K.SELECT_FIRST_DAY,
|
|
2565
2623
|
payload: { date: E }
|
|
2566
|
-
}) : v &&
|
|
2624
|
+
}) : v && Ia(E, v) || v && Fa(E, v) ? d({
|
|
2567
2625
|
type: K.SELECT_SECOND_DAY_AS_TO,
|
|
2568
2626
|
payload: { date: E }
|
|
2569
2627
|
}) : d({
|
|
@@ -2572,7 +2630,7 @@ const Bo = (t) => {
|
|
|
2572
2630
|
}));
|
|
2573
2631
|
},
|
|
2574
2632
|
[o, i.from, i.to]
|
|
2575
|
-
), p =
|
|
2633
|
+
), p = Rt(
|
|
2576
2634
|
(E) => {
|
|
2577
2635
|
if (E === null) {
|
|
2578
2636
|
d({
|
|
@@ -2581,23 +2639,23 @@ const Bo = (t) => {
|
|
|
2581
2639
|
});
|
|
2582
2640
|
return;
|
|
2583
2641
|
}
|
|
2584
|
-
|
|
2642
|
+
Bt(E, t) && d({
|
|
2585
2643
|
type: K.NEW_SELECTED_ITEM,
|
|
2586
2644
|
payload: { selectedItem: E }
|
|
2587
2645
|
});
|
|
2588
2646
|
},
|
|
2589
2647
|
[t]
|
|
2590
|
-
), f =
|
|
2648
|
+
), f = Rt((E) => {
|
|
2591
2649
|
d({
|
|
2592
2650
|
type: K.CURRENT_MONTH_CHANGE,
|
|
2593
2651
|
payload: { date: E }
|
|
2594
2652
|
});
|
|
2595
2653
|
}, []);
|
|
2596
2654
|
return c((() => {
|
|
2597
|
-
const { currentMonth: E, from: v, selectedItem: h, temporaryTo: y, to: $ } = i,
|
|
2598
|
-
() =>
|
|
2655
|
+
const { currentMonth: E, from: v, selectedItem: h, temporaryTo: y, to: $ } = i, N = Lt(
|
|
2656
|
+
() => So(v, y),
|
|
2599
2657
|
[v, y]
|
|
2600
|
-
), w =
|
|
2658
|
+
), w = Lt(() => Bt(h, t), [t, h]), g = Lt(() => [v, { from: v, to: y }], [v, y]), C = Lt(() => o ? { after: o } : void 0, [o]);
|
|
2601
2659
|
return {
|
|
2602
2660
|
select: {
|
|
2603
2661
|
onItemSelect: p,
|
|
@@ -2613,18 +2671,18 @@ const Bo = (t) => {
|
|
|
2613
2671
|
numberOfMonths: 2,
|
|
2614
2672
|
onDayClick: m,
|
|
2615
2673
|
selectedDays: g,
|
|
2616
|
-
modifiers:
|
|
2617
|
-
initialMonth: o &&
|
|
2674
|
+
modifiers: N,
|
|
2675
|
+
initialMonth: o && pt(o, 1),
|
|
2618
2676
|
toMonth: o,
|
|
2619
|
-
disabledDays:
|
|
2620
|
-
onDayMouseEnter:
|
|
2677
|
+
disabledDays: C,
|
|
2678
|
+
onDayMouseEnter: s,
|
|
2621
2679
|
onMonthChange: f
|
|
2622
2680
|
},
|
|
2623
2681
|
selectedOption: w
|
|
2624
2682
|
};
|
|
2625
2683
|
})());
|
|
2626
2684
|
};
|
|
2627
|
-
|
|
2685
|
+
Io.defaultProps = {
|
|
2628
2686
|
options: [
|
|
2629
2687
|
{
|
|
2630
2688
|
id: "default",
|
|
@@ -2637,7 +2695,7 @@ Ao.defaultProps = {
|
|
|
2637
2695
|
}
|
|
2638
2696
|
]
|
|
2639
2697
|
};
|
|
2640
|
-
const
|
|
2698
|
+
const Dc = (t) => {
|
|
2641
2699
|
const l = t, { className: a, children: r } = l, _ = F(l, ["className", "children"]), o = u(
|
|
2642
2700
|
a,
|
|
2643
2701
|
B["date-picker--range__calendars-wrapper"]
|
|
@@ -2664,7 +2722,7 @@ const Sc = (t) => {
|
|
|
2664
2722
|
"details-card__content": "lc-DetailsCard-module__details-card__content___RNVd2",
|
|
2665
2723
|
"details-card__content--spacing": "lc-DetailsCard-module__details-card__content--spacing___QecUa",
|
|
2666
2724
|
"details-card__content--full-space": "lc-DetailsCard-module__details-card__content--full-space___2ms8I"
|
|
2667
|
-
}, H = "details-card",
|
|
2725
|
+
}, H = "details-card", Bc = ({
|
|
2668
2726
|
children: t,
|
|
2669
2727
|
className: a,
|
|
2670
2728
|
leftNode: r,
|
|
@@ -2672,24 +2730,24 @@ const Sc = (t) => {
|
|
|
2672
2730
|
label: o,
|
|
2673
2731
|
withDivider: l,
|
|
2674
2732
|
fullSpaceContent: c,
|
|
2675
|
-
openOnInit:
|
|
2733
|
+
openOnInit: n = !1,
|
|
2676
2734
|
hideLabelOnOpen: i,
|
|
2677
2735
|
onClick: d
|
|
2678
2736
|
}) => {
|
|
2679
|
-
const [
|
|
2737
|
+
const [s, m] = e.useState(n), [p, f] = e.useState(0), b = e.useRef(null), E = u(
|
|
2680
2738
|
O[H],
|
|
2681
2739
|
l && O[`${H}--with-divider`],
|
|
2682
2740
|
a
|
|
2683
|
-
), v = i &&
|
|
2684
|
-
m((
|
|
2741
|
+
), v = i && s, h = typeof o == "string", y = ($) => {
|
|
2742
|
+
m((N) => !N), $.currentTarget.blur(), d == null || d();
|
|
2685
2743
|
};
|
|
2686
2744
|
return e.useEffect(() => {
|
|
2687
2745
|
const $ = !!window.IntersectionObserver;
|
|
2688
2746
|
if (b.current && $) {
|
|
2689
|
-
const
|
|
2747
|
+
const N = new ResizeObserver(() => {
|
|
2690
2748
|
b.current && p !== b.current.offsetHeight && f(b.current.offsetHeight);
|
|
2691
2749
|
});
|
|
2692
|
-
return
|
|
2750
|
+
return N.observe(b.current), () => N.disconnect();
|
|
2693
2751
|
}
|
|
2694
2752
|
}, [b]), /* @__PURE__ */ e.createElement("div", { className: E }, /* @__PURE__ */ e.createElement(
|
|
2695
2753
|
"div",
|
|
@@ -2698,9 +2756,9 @@ const Sc = (t) => {
|
|
|
2698
2756
|
O[`${H}__label-wrapper`],
|
|
2699
2757
|
i && O[`${H}__label-wrapper--fading`],
|
|
2700
2758
|
v && O[`${H}__label-wrapper--hide`],
|
|
2701
|
-
|
|
2759
|
+
s && O[`${H}__label-wrapper--open`]
|
|
2702
2760
|
),
|
|
2703
|
-
"aria-expanded":
|
|
2761
|
+
"aria-expanded": s,
|
|
2704
2762
|
"aria-hidden": v,
|
|
2705
2763
|
"data-testid": "details-card-label"
|
|
2706
2764
|
},
|
|
@@ -2726,35 +2784,35 @@ const Sc = (t) => {
|
|
|
2726
2784
|
), /* @__PURE__ */ e.createElement(
|
|
2727
2785
|
W,
|
|
2728
2786
|
{
|
|
2729
|
-
kind:
|
|
2787
|
+
kind: s && i ? "float" : "text",
|
|
2730
2788
|
icon: /* @__PURE__ */ e.createElement(
|
|
2731
2789
|
A,
|
|
2732
2790
|
{
|
|
2733
|
-
source:
|
|
2791
|
+
source: Er,
|
|
2734
2792
|
className: u(
|
|
2735
2793
|
O[`${H}__button__icon`],
|
|
2736
|
-
|
|
2794
|
+
s && O[`${H}__button__icon--open`]
|
|
2737
2795
|
)
|
|
2738
2796
|
}
|
|
2739
2797
|
),
|
|
2740
2798
|
className: u(
|
|
2741
2799
|
O[`${H}__button`],
|
|
2742
|
-
!
|
|
2743
|
-
|
|
2800
|
+
!s && O[`${H}__button--closed`],
|
|
2801
|
+
s && O[`${H}__button--open`],
|
|
2744
2802
|
i && O[`${H}__button--fading`]
|
|
2745
2803
|
),
|
|
2746
2804
|
onClick: y,
|
|
2747
|
-
"aria-expanded":
|
|
2805
|
+
"aria-expanded": s
|
|
2748
2806
|
}
|
|
2749
2807
|
), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
2750
2808
|
"div",
|
|
2751
2809
|
{
|
|
2752
2810
|
className: u(
|
|
2753
2811
|
O[`${H}__content-wrapper`],
|
|
2754
|
-
|
|
2812
|
+
s && O[`${H}__content-wrapper--open`]
|
|
2755
2813
|
),
|
|
2756
2814
|
style: {
|
|
2757
|
-
maxHeight:
|
|
2815
|
+
maxHeight: s ? p : 0
|
|
2758
2816
|
}
|
|
2759
2817
|
},
|
|
2760
2818
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2770,17 +2828,17 @@ const Sc = (t) => {
|
|
|
2770
2828
|
t
|
|
2771
2829
|
)
|
|
2772
2830
|
)));
|
|
2773
|
-
},
|
|
2831
|
+
}, wa = {
|
|
2774
2832
|
"details-card-info": "lc-DetailsCardInfo-module__details-card-info___D4VRk",
|
|
2775
2833
|
"details-card-info__label": "lc-DetailsCardInfo-module__details-card-info__label___U-KsO",
|
|
2776
2834
|
"details-card-info__content": "lc-DetailsCardInfo-module__details-card-info__content___TFEXS"
|
|
2777
|
-
},
|
|
2835
|
+
}, $a = "details-card-info", Ac = ({
|
|
2778
2836
|
children: t,
|
|
2779
2837
|
label: a
|
|
2780
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
2838
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: wa[$a] }, /* @__PURE__ */ e.createElement("div", { className: wa[`${$a}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: wa[`${$a}__content`] }, t)), cr = {
|
|
2781
2839
|
"field-error": "lc-FieldError-module__field-error___IDkPT",
|
|
2782
2840
|
"field-error__icon": "lc-FieldError-module__field-error__icon___D4UNC"
|
|
2783
|
-
},
|
|
2841
|
+
}, nr = "field-error", Wa = (_) => {
|
|
2784
2842
|
var o = _, {
|
|
2785
2843
|
children: t,
|
|
2786
2844
|
className: a = ""
|
|
@@ -2788,21 +2846,21 @@ const Sc = (t) => {
|
|
|
2788
2846
|
"children",
|
|
2789
2847
|
"className"
|
|
2790
2848
|
]);
|
|
2791
|
-
const l = u(
|
|
2849
|
+
const l = u(cr[nr], a);
|
|
2792
2850
|
return /* @__PURE__ */ e.createElement(I, T(k({ as: "span", size: "sm" }, r), { className: l }), /* @__PURE__ */ e.createElement(
|
|
2793
2851
|
A,
|
|
2794
2852
|
{
|
|
2795
|
-
source:
|
|
2796
|
-
className:
|
|
2853
|
+
source: La,
|
|
2854
|
+
className: cr[`${nr}__icon`],
|
|
2797
2855
|
size: "small"
|
|
2798
2856
|
}
|
|
2799
2857
|
), t);
|
|
2800
|
-
},
|
|
2858
|
+
}, Na = {
|
|
2801
2859
|
"field-group": "lc-FieldGroup-module__field-group___gy8lp",
|
|
2802
2860
|
"field-group--inline": "lc-FieldGroup-module__field-group--inline___or4qf",
|
|
2803
2861
|
"field-group--stretched": "lc-FieldGroup-module__field-group--stretched___6rkuO"
|
|
2804
|
-
},
|
|
2805
|
-
var i =
|
|
2862
|
+
}, Ca = "field-group", Pc = (n) => {
|
|
2863
|
+
var i = n, {
|
|
2806
2864
|
className: t = "",
|
|
2807
2865
|
children: a,
|
|
2808
2866
|
description: r,
|
|
@@ -2817,32 +2875,32 @@ const Sc = (t) => {
|
|
|
2817
2875
|
"inline",
|
|
2818
2876
|
"stretch"
|
|
2819
2877
|
]);
|
|
2820
|
-
const d = u(
|
|
2821
|
-
[
|
|
2822
|
-
[
|
|
2878
|
+
const d = u(Na[Ca], t, {
|
|
2879
|
+
[Na[`${Ca}--inline`]]: o,
|
|
2880
|
+
[Na[`${Ca}--stretched`]]: l
|
|
2823
2881
|
});
|
|
2824
|
-
return /* @__PURE__ */ e.createElement("div", T(k({}, c), { className: d }), a, _ && /* @__PURE__ */ e.createElement(
|
|
2825
|
-
},
|
|
2826
|
-
form:
|
|
2827
|
-
form__header:
|
|
2828
|
-
form__footer:
|
|
2829
|
-
form__label:
|
|
2830
|
-
form__helper:
|
|
2831
|
-
},
|
|
2832
|
-
var
|
|
2882
|
+
return /* @__PURE__ */ e.createElement("div", T(k({}, c), { className: d }), a, _ && /* @__PURE__ */ e.createElement(Wa, null, _), r && /* @__PURE__ */ e.createElement(ia, null, r));
|
|
2883
|
+
}, Fo = "lc-Form-module__form___1nOYF", Mo = "lc-Form-module__form__header___U4B7t", Ro = "lc-Form-module__form__footer___1-sUX", Lo = "lc-Form-module__form__label___spg-J", Oo = "lc-Form-module__form__helper___bhfwS", wt = {
|
|
2884
|
+
form: Fo,
|
|
2885
|
+
form__header: Mo,
|
|
2886
|
+
form__footer: Ro,
|
|
2887
|
+
form__label: Lo,
|
|
2888
|
+
form__helper: Oo
|
|
2889
|
+
}, $t = "form", Ic = (c) => {
|
|
2890
|
+
var n = c, {
|
|
2833
2891
|
className: t,
|
|
2834
2892
|
children: a,
|
|
2835
2893
|
labelText: r,
|
|
2836
2894
|
helperText: _,
|
|
2837
2895
|
formFooter: o
|
|
2838
|
-
} =
|
|
2896
|
+
} = n, l = F(n, [
|
|
2839
2897
|
"className",
|
|
2840
2898
|
"children",
|
|
2841
2899
|
"labelText",
|
|
2842
2900
|
"helperText",
|
|
2843
2901
|
"formFooter"
|
|
2844
2902
|
]);
|
|
2845
|
-
return /* @__PURE__ */ e.createElement("form", k({ className: u(
|
|
2903
|
+
return /* @__PURE__ */ e.createElement("form", k({ className: u(wt[$t], t) }, l), (r || _) && /* @__PURE__ */ e.createElement("div", { className: wt[`${$t}__header`] }, r && /* @__PURE__ */ e.createElement(De, { size: "sm", className: wt[`${$t}__label`] }, r), _ && /* @__PURE__ */ e.createElement(I, { as: "p", size: "sm", className: wt[`${$t}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: wt[`${$t}__footer`] }, o));
|
|
2846
2904
|
}, J = {
|
|
2847
2905
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
2848
2906
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
@@ -2860,7 +2918,7 @@ const Sc = (t) => {
|
|
|
2860
2918
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___DCBjC",
|
|
2861
2919
|
"form-field__content": "lc-FormField-module__form-field__content___XaOx3",
|
|
2862
2920
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___NpVw4"
|
|
2863
|
-
}, X = "form-field",
|
|
2921
|
+
}, X = "form-field", Fc = ({
|
|
2864
2922
|
inline: t,
|
|
2865
2923
|
error: a,
|
|
2866
2924
|
description: r,
|
|
@@ -2868,10 +2926,10 @@ const Sc = (t) => {
|
|
|
2868
2926
|
labelAdornment: o,
|
|
2869
2927
|
className: l,
|
|
2870
2928
|
labelFor: c,
|
|
2871
|
-
children:
|
|
2929
|
+
children: n,
|
|
2872
2930
|
labelRightNode: i
|
|
2873
2931
|
}) => {
|
|
2874
|
-
const d = e.useRef(null), [
|
|
2932
|
+
const d = e.useRef(null), [s, m] = e.useState("auto"), p = u(
|
|
2875
2933
|
J[X],
|
|
2876
2934
|
{
|
|
2877
2935
|
[J[`${X}--inline`]]: t
|
|
@@ -2917,7 +2975,7 @@ const Sc = (t) => {
|
|
|
2917
2975
|
t && J[`${X}__label-wrapper--inline`]
|
|
2918
2976
|
),
|
|
2919
2977
|
style: {
|
|
2920
|
-
height:
|
|
2978
|
+
height: s
|
|
2921
2979
|
}
|
|
2922
2980
|
},
|
|
2923
2981
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2951,20 +3009,20 @@ const Sc = (t) => {
|
|
|
2951
3009
|
i
|
|
2952
3010
|
)
|
|
2953
3011
|
),
|
|
2954
|
-
/* @__PURE__ */ e.createElement("div", { className: u(J[`${X}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: d },
|
|
2955
|
-
|
|
3012
|
+
/* @__PURE__ */ e.createElement("div", { className: u(J[`${X}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: d }, n), a && /* @__PURE__ */ e.createElement(Wa, null, a), !a && r && /* @__PURE__ */ e.createElement(
|
|
3013
|
+
ia,
|
|
2956
3014
|
{
|
|
2957
3015
|
className: u(J[`${X}__content__description`])
|
|
2958
3016
|
},
|
|
2959
3017
|
r
|
|
2960
3018
|
))
|
|
2961
3019
|
));
|
|
2962
|
-
},
|
|
3020
|
+
}, Wt = {
|
|
2963
3021
|
"form-group": "lc-FormGroup-module__form-group___e2JHa",
|
|
2964
3022
|
"form-group__header": "lc-FormGroup-module__form-group__header___DgGmR",
|
|
2965
3023
|
"form-group__label": "lc-FormGroup-module__form-group__label___NC-JW",
|
|
2966
3024
|
"form-group__helper": "lc-FormGroup-module__form-group__helper___SRuxe"
|
|
2967
|
-
},
|
|
3025
|
+
}, Vt = "form-group", Mc = (l) => {
|
|
2968
3026
|
var c = l, {
|
|
2969
3027
|
className: t = "",
|
|
2970
3028
|
children: a,
|
|
@@ -2976,19 +3034,19 @@ const Sc = (t) => {
|
|
|
2976
3034
|
"labelText",
|
|
2977
3035
|
"helperText"
|
|
2978
3036
|
]);
|
|
2979
|
-
const
|
|
3037
|
+
const n = u(Wt[Vt], t);
|
|
2980
3038
|
return /* @__PURE__ */ e.createElement(
|
|
2981
3039
|
"div",
|
|
2982
3040
|
T(k(T(k({}, o), {
|
|
2983
3041
|
role: "group"
|
|
2984
3042
|
}), r && { "aria-label": r }), {
|
|
2985
|
-
className:
|
|
3043
|
+
className: n
|
|
2986
3044
|
}),
|
|
2987
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
3045
|
+
/* @__PURE__ */ e.createElement("div", { className: Wt[`${Vt}__header`] }, /* @__PURE__ */ e.createElement(De, { as: "div", size: "sm", className: Wt[`${Vt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(I, { as: "div", size: "sm", className: Wt[`${Vt}__helper`] }, _)),
|
|
2988
3046
|
a
|
|
2989
3047
|
);
|
|
2990
|
-
},
|
|
2991
|
-
input:
|
|
3048
|
+
}, Ho = "lc-Input-module__input___qeMAQ", xe = {
|
|
3049
|
+
input: Ho,
|
|
2992
3050
|
"input--focused": "lc-Input-module__input--focused___wQH5-",
|
|
2993
3051
|
"input--disabled": "lc-Input-module__input--disabled___HidXX",
|
|
2994
3052
|
"input--crop": "lc-Input-module__input--crop___uzJS8",
|
|
@@ -3002,7 +3060,7 @@ const Sc = (t) => {
|
|
|
3002
3060
|
"input__icon--left": "lc-Input-module__input__icon--left___BcySs",
|
|
3003
3061
|
"input__icon--right": "lc-Input-module__input__icon--right___VefSK",
|
|
3004
3062
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
3005
|
-
}, Te = "input",
|
|
3063
|
+
}, Te = "input", sr = (t, a) => e.cloneElement(t.source, {
|
|
3006
3064
|
"data-testid": `input-icon-${t.place}`,
|
|
3007
3065
|
className: u(
|
|
3008
3066
|
xe[`${Te}__icon`],
|
|
@@ -3011,8 +3069,8 @@ const Sc = (t) => {
|
|
|
3011
3069
|
[xe[`${Te}__icon--disabled`]]: a
|
|
3012
3070
|
}
|
|
3013
3071
|
)
|
|
3014
|
-
}),
|
|
3015
|
-
(i,
|
|
3072
|
+
}), Rc = e.forwardRef(
|
|
3073
|
+
(i, n) => {
|
|
3016
3074
|
var d = i, {
|
|
3017
3075
|
inputSize: t = "medium",
|
|
3018
3076
|
error: a = !1,
|
|
@@ -3028,8 +3086,8 @@ const Sc = (t) => {
|
|
|
3028
3086
|
"className",
|
|
3029
3087
|
"cropOnBlur"
|
|
3030
3088
|
]);
|
|
3031
|
-
const
|
|
3032
|
-
e.useImperativeHandle(
|
|
3089
|
+
const s = e.useRef(null);
|
|
3090
|
+
e.useImperativeHandle(n, () => s.current, []);
|
|
3033
3091
|
const [m, p] = e.useState(!1), [f, b] = e.useState(!1), { type: E, onFocus: v, onBlur: h } = c, y = u(
|
|
3034
3092
|
o,
|
|
3035
3093
|
xe[Te],
|
|
@@ -3041,9 +3099,9 @@ const Sc = (t) => {
|
|
|
3041
3099
|
[xe[`${Te}--crop`]]: l,
|
|
3042
3100
|
[xe[`${Te}--read-only`]]: c.readOnly
|
|
3043
3101
|
}
|
|
3044
|
-
), $ = r ? "var(--content-disabled)" : "var(--content-default)",
|
|
3102
|
+
), $ = r ? "var(--content-disabled)" : "var(--content-default)", N = f ? Xr : Qr, w = _ && _.place === "left", g = _ && E !== "password" && _.place === "right", C = () => {
|
|
3045
3103
|
var S;
|
|
3046
|
-
(S =
|
|
3104
|
+
(S = s.current) == null || S.focus();
|
|
3047
3105
|
};
|
|
3048
3106
|
return /* @__PURE__ */ e.createElement(
|
|
3049
3107
|
I,
|
|
@@ -3052,13 +3110,13 @@ const Sc = (t) => {
|
|
|
3052
3110
|
className: y,
|
|
3053
3111
|
"aria-disabled": r,
|
|
3054
3112
|
"tab-index": "0",
|
|
3055
|
-
onClick:
|
|
3113
|
+
onClick: C
|
|
3056
3114
|
},
|
|
3057
|
-
w &&
|
|
3115
|
+
w && sr(_, r),
|
|
3058
3116
|
/* @__PURE__ */ e.createElement(
|
|
3059
3117
|
"input",
|
|
3060
3118
|
T(k({}, c), {
|
|
3061
|
-
ref:
|
|
3119
|
+
ref: s,
|
|
3062
3120
|
onFocus: (S) => {
|
|
3063
3121
|
p(!0), v == null || v(S);
|
|
3064
3122
|
},
|
|
@@ -3069,24 +3127,24 @@ const Sc = (t) => {
|
|
|
3069
3127
|
type: E && !f ? E : "text"
|
|
3070
3128
|
})
|
|
3071
3129
|
),
|
|
3072
|
-
g &&
|
|
3130
|
+
g && sr(_, r),
|
|
3073
3131
|
E === "password" && /* @__PURE__ */ e.createElement(
|
|
3074
3132
|
W,
|
|
3075
3133
|
{
|
|
3076
3134
|
disabled: r,
|
|
3077
3135
|
kind: "text",
|
|
3078
3136
|
size: "compact",
|
|
3079
|
-
icon: /* @__PURE__ */ e.createElement(A, { customColor: $, source:
|
|
3137
|
+
icon: /* @__PURE__ */ e.createElement(A, { customColor: $, source: N }),
|
|
3080
3138
|
onClick: () => b((S) => !S),
|
|
3081
3139
|
className: xe[`${Te}__visibility-button`]
|
|
3082
3140
|
}
|
|
3083
3141
|
)
|
|
3084
3142
|
);
|
|
3085
3143
|
}
|
|
3086
|
-
),
|
|
3087
|
-
link:
|
|
3144
|
+
), zo = "lc-Link-module__link___kqx52", ir = {
|
|
3145
|
+
link: zo,
|
|
3088
3146
|
"link--bold": "lc-Link-module__link--bold___1rGdO"
|
|
3089
|
-
},
|
|
3147
|
+
}, dr = "link", Lc = (_) => {
|
|
3090
3148
|
var o = _, {
|
|
3091
3149
|
bold: t = !1,
|
|
3092
3150
|
className: a = ""
|
|
@@ -3098,13 +3156,13 @@ const Sc = (t) => {
|
|
|
3098
3156
|
"a",
|
|
3099
3157
|
k({
|
|
3100
3158
|
className: u(
|
|
3101
|
-
|
|
3102
|
-
t &&
|
|
3159
|
+
ir[dr],
|
|
3160
|
+
t && ir[`${dr}--bold`],
|
|
3103
3161
|
a
|
|
3104
3162
|
)
|
|
3105
3163
|
}, r)
|
|
3106
3164
|
);
|
|
3107
|
-
},
|
|
3165
|
+
}, Go = "lc-Modal-module__modal__body___M-jmN", Uo = "lc-Modal-module__modal__header___Fp5VE", Wo = "lc-Modal-module__modal__heading___G9KVK", Vo = "lc-Modal-module__modal__footer___2LYdc", me = {
|
|
3108
3166
|
"modal-base": "lc-Modal-module__modal-base___hbL1U",
|
|
3109
3167
|
"fade-in-step2": "lc-Modal-module__fade-in-step2___xzJX5",
|
|
3110
3168
|
"modal-base--full-space": "lc-Modal-module__modal-base--full-space___KcGFL",
|
|
@@ -3114,13 +3172,13 @@ const Sc = (t) => {
|
|
|
3114
3172
|
"modal-base__overlay--labelled": "lc-Modal-module__modal-base__overlay--labelled___THAo-",
|
|
3115
3173
|
"modal-base__close": "lc-Modal-module__modal-base__close___gJlgr",
|
|
3116
3174
|
"modal-base__close--label-type": "lc-Modal-module__modal-base__close--label-type___Om0Vb",
|
|
3117
|
-
modal__body:
|
|
3118
|
-
modal__header:
|
|
3175
|
+
modal__body: Go,
|
|
3176
|
+
modal__header: Uo,
|
|
3119
3177
|
"modal__label-header": "lc-Modal-module__modal__label-header___ZPtEy",
|
|
3120
|
-
modal__heading:
|
|
3178
|
+
modal__heading: Wo,
|
|
3121
3179
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
3122
|
-
modal__footer:
|
|
3123
|
-
},
|
|
3180
|
+
modal__footer: Vo
|
|
3181
|
+
}, Nt = "modal-base", qo = (i) => {
|
|
3124
3182
|
var d = i, {
|
|
3125
3183
|
children: t,
|
|
3126
3184
|
className: a = "",
|
|
@@ -3129,7 +3187,7 @@ const Sc = (t) => {
|
|
|
3129
3187
|
closeOnOverlayPress: o = !0,
|
|
3130
3188
|
fullSpaceContent: l,
|
|
3131
3189
|
isLabelled: c
|
|
3132
|
-
} = d,
|
|
3190
|
+
} = d, n = F(d, [
|
|
3133
3191
|
"children",
|
|
3134
3192
|
"className",
|
|
3135
3193
|
"onClose",
|
|
@@ -3138,10 +3196,10 @@ const Sc = (t) => {
|
|
|
3138
3196
|
"fullSpaceContent",
|
|
3139
3197
|
"isLabelled"
|
|
3140
3198
|
]);
|
|
3141
|
-
const
|
|
3142
|
-
me[
|
|
3199
|
+
const s = u(
|
|
3200
|
+
me[Nt],
|
|
3143
3201
|
a,
|
|
3144
|
-
l && me[`${
|
|
3202
|
+
l && me[`${Nt}--full-space`]
|
|
3145
3203
|
);
|
|
3146
3204
|
e.useEffect(() => {
|
|
3147
3205
|
if (!_)
|
|
@@ -3155,14 +3213,14 @@ const Sc = (t) => {
|
|
|
3155
3213
|
o && p.target === p.currentTarget && r();
|
|
3156
3214
|
};
|
|
3157
3215
|
return /* @__PURE__ */ e.createElement(
|
|
3158
|
-
|
|
3216
|
+
n_,
|
|
3159
3217
|
{
|
|
3160
3218
|
"data-testid": "lc-modal-overlay",
|
|
3161
3219
|
onMouseDown: m,
|
|
3162
3220
|
className: u(
|
|
3163
|
-
me[`${
|
|
3164
|
-
me[`${
|
|
3165
|
-
c && me[`${
|
|
3221
|
+
me[`${Nt}__overlay`],
|
|
3222
|
+
me[`${Nt}__overlay--visible`],
|
|
3223
|
+
c && me[`${Nt}__overlay--labelled`]
|
|
3166
3224
|
)
|
|
3167
3225
|
},
|
|
3168
3226
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3170,12 +3228,12 @@ const Sc = (t) => {
|
|
|
3170
3228
|
k({
|
|
3171
3229
|
role: "dialog",
|
|
3172
3230
|
"aria-modal": !0,
|
|
3173
|
-
className:
|
|
3174
|
-
},
|
|
3231
|
+
className: s
|
|
3232
|
+
}, n),
|
|
3175
3233
|
t
|
|
3176
3234
|
)
|
|
3177
3235
|
);
|
|
3178
|
-
},
|
|
3236
|
+
}, ur = ({
|
|
3179
3237
|
labelType: t,
|
|
3180
3238
|
customColor: a,
|
|
3181
3239
|
onClick: r
|
|
@@ -3193,8 +3251,8 @@ const Sc = (t) => {
|
|
|
3193
3251
|
onClick: r,
|
|
3194
3252
|
icon: /* @__PURE__ */ e.createElement(A, { source: Be, size: "medium", customColor: a })
|
|
3195
3253
|
}
|
|
3196
|
-
),
|
|
3197
|
-
var
|
|
3254
|
+
), at = "modal", Oc = (d) => {
|
|
3255
|
+
var s = d, {
|
|
3198
3256
|
children: t,
|
|
3199
3257
|
className: a = "",
|
|
3200
3258
|
heading: r,
|
|
@@ -3202,8 +3260,8 @@ const Sc = (t) => {
|
|
|
3202
3260
|
fullSpaceContent: o,
|
|
3203
3261
|
footer: l,
|
|
3204
3262
|
onClose: c,
|
|
3205
|
-
contentClassName:
|
|
3206
|
-
} =
|
|
3263
|
+
contentClassName: n
|
|
3264
|
+
} = s, i = F(s, [
|
|
3207
3265
|
"children",
|
|
3208
3266
|
"className",
|
|
3209
3267
|
"heading",
|
|
@@ -3213,53 +3271,53 @@ const Sc = (t) => {
|
|
|
3213
3271
|
"onClose",
|
|
3214
3272
|
"contentClassName"
|
|
3215
3273
|
]);
|
|
3216
|
-
const m = u(me[
|
|
3274
|
+
const m = u(me[at], a), p = typeof t == "string", f = (b) => {
|
|
3217
3275
|
b.preventDefault(), b.stopPropagation(), c();
|
|
3218
3276
|
};
|
|
3219
3277
|
return /* @__PURE__ */ e.createElement(
|
|
3220
|
-
|
|
3278
|
+
qo,
|
|
3221
3279
|
k({
|
|
3222
3280
|
className: m,
|
|
3223
3281
|
fullSpaceContent: o,
|
|
3224
3282
|
onClose: c,
|
|
3225
3283
|
isLabelled: !!_
|
|
3226
3284
|
}, i),
|
|
3227
|
-
_ && /* @__PURE__ */ e.createElement("div", { className: me[`${
|
|
3285
|
+
_ && /* @__PURE__ */ e.createElement("div", { className: me[`${at}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
3228
3286
|
De,
|
|
3229
3287
|
{
|
|
3230
3288
|
size: "sm",
|
|
3231
3289
|
as: "div",
|
|
3232
|
-
className: me[`${
|
|
3290
|
+
className: me[`${at}__label-heading`]
|
|
3233
3291
|
},
|
|
3234
3292
|
_
|
|
3235
3293
|
), /* @__PURE__ */ e.createElement(
|
|
3236
|
-
|
|
3294
|
+
ur,
|
|
3237
3295
|
{
|
|
3238
3296
|
labelType: !!_,
|
|
3239
3297
|
customColor: "var(--color-white)",
|
|
3240
3298
|
onClick: f
|
|
3241
3299
|
}
|
|
3242
3300
|
)),
|
|
3243
|
-
!_ && r && /* @__PURE__ */ e.createElement("div", { className: me[`${
|
|
3301
|
+
!_ && r && /* @__PURE__ */ e.createElement("div", { className: me[`${at}__header`] }, /* @__PURE__ */ e.createElement(
|
|
3244
3302
|
De,
|
|
3245
3303
|
{
|
|
3246
3304
|
size: "sm",
|
|
3247
3305
|
as: "div",
|
|
3248
|
-
className: me[`${
|
|
3306
|
+
className: me[`${at}__heading`]
|
|
3249
3307
|
},
|
|
3250
3308
|
r
|
|
3251
|
-
), /* @__PURE__ */ e.createElement(
|
|
3309
|
+
), /* @__PURE__ */ e.createElement(ur, { onClick: f })),
|
|
3252
3310
|
/* @__PURE__ */ e.createElement(
|
|
3253
3311
|
"div",
|
|
3254
3312
|
{
|
|
3255
3313
|
"data-testid": "modal-body",
|
|
3256
|
-
className: u(me[`${
|
|
3314
|
+
className: u(me[`${at}__body`], n)
|
|
3257
3315
|
},
|
|
3258
3316
|
p ? /* @__PURE__ */ e.createElement(I, { as: "div" }, t) : t
|
|
3259
3317
|
),
|
|
3260
|
-
l && /* @__PURE__ */ e.createElement("div", { className: me[`${
|
|
3318
|
+
l && /* @__PURE__ */ e.createElement("div", { className: me[`${at}__footer`] }, l)
|
|
3261
3319
|
);
|
|
3262
|
-
},
|
|
3320
|
+
}, Hc = ({
|
|
3263
3321
|
children: t,
|
|
3264
3322
|
className: a = "",
|
|
3265
3323
|
parentElementName: r = "body",
|
|
@@ -3272,47 +3330,47 @@ const Sc = (t) => {
|
|
|
3272
3330
|
var c;
|
|
3273
3331
|
(c = document.querySelector(r)) == null || c.removeChild(o);
|
|
3274
3332
|
};
|
|
3275
|
-
}, [r]), /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
3276
|
-
},
|
|
3333
|
+
}, [r]), /* @__PURE__ */ e.createElement(e.Fragment, null, Sr.createPortal(t, o));
|
|
3334
|
+
}, Ct = {
|
|
3277
3335
|
"modal-header": "lc-ModalHeader-module__modal-header___xk3bd",
|
|
3278
3336
|
"modal-header__heading-left-node": "lc-ModalHeader-module__modal-header__heading-left-node___1--G5",
|
|
3279
3337
|
"modal-header__heading-body": "lc-ModalHeader-module__modal-header__heading-body___HHEF-",
|
|
3280
3338
|
"modal-header__heading-description": "lc-ModalHeader-module__modal-header__heading-description___54Xvf"
|
|
3281
|
-
},
|
|
3339
|
+
}, St = "modal-header", zc = ({
|
|
3282
3340
|
title: t,
|
|
3283
3341
|
iconProps: a,
|
|
3284
3342
|
avatarProps: r,
|
|
3285
3343
|
children: _,
|
|
3286
3344
|
className: o = ""
|
|
3287
3345
|
}) => {
|
|
3288
|
-
const l = u(
|
|
3346
|
+
const l = u(Ct[St], o);
|
|
3289
3347
|
return /* @__PURE__ */ e.createElement("div", { className: l }, a && /* @__PURE__ */ e.createElement(
|
|
3290
3348
|
A,
|
|
3291
3349
|
k({
|
|
3292
|
-
className:
|
|
3350
|
+
className: Ct[`${St}__heading-left-node`]
|
|
3293
3351
|
}, a)
|
|
3294
3352
|
), r && /* @__PURE__ */ e.createElement(
|
|
3295
|
-
|
|
3353
|
+
X_,
|
|
3296
3354
|
k({
|
|
3297
|
-
className:
|
|
3355
|
+
className: Ct[`${St}__heading-left-node`]
|
|
3298
3356
|
}, r)
|
|
3299
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
3357
|
+
), /* @__PURE__ */ e.createElement("div", { className: Ct[`${St}__heading-body`] }, /* @__PURE__ */ e.createElement(De, { as: "div", size: "sm" }, t), _ && /* @__PURE__ */ e.createElement(
|
|
3300
3358
|
I,
|
|
3301
3359
|
{
|
|
3302
3360
|
as: "div",
|
|
3303
|
-
className:
|
|
3361
|
+
className: Ct[`${St}__heading-description`]
|
|
3304
3362
|
},
|
|
3305
3363
|
_
|
|
3306
3364
|
)));
|
|
3307
|
-
},
|
|
3365
|
+
}, nt = {
|
|
3308
3366
|
"numeric-input": "lc-NumericInput-module__numeric-input___j1esc",
|
|
3309
3367
|
"numeric-input__increment": "lc-NumericInput-module__numeric-input__increment___i3Tys",
|
|
3310
3368
|
"numeric-input__decrement": "lc-NumericInput-module__numeric-input__decrement___3qgn0",
|
|
3311
3369
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___yaRvQ",
|
|
3312
3370
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___D90rG",
|
|
3313
3371
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___TMxRx"
|
|
3314
|
-
},
|
|
3315
|
-
var m =
|
|
3372
|
+
}, st = "numeric-input", Gc = (s) => {
|
|
3373
|
+
var m = s, {
|
|
3316
3374
|
className: t,
|
|
3317
3375
|
error: a,
|
|
3318
3376
|
value: r,
|
|
@@ -3320,7 +3378,7 @@ const Sc = (t) => {
|
|
|
3320
3378
|
min: o,
|
|
3321
3379
|
disabled: l,
|
|
3322
3380
|
noControls: c,
|
|
3323
|
-
style:
|
|
3381
|
+
style: n,
|
|
3324
3382
|
onChange: i
|
|
3325
3383
|
} = m, d = F(m, [
|
|
3326
3384
|
"className",
|
|
@@ -3334,36 +3392,36 @@ const Sc = (t) => {
|
|
|
3334
3392
|
"onChange"
|
|
3335
3393
|
]);
|
|
3336
3394
|
const p = e.useRef(null), f = u(
|
|
3337
|
-
|
|
3395
|
+
nt[st],
|
|
3338
3396
|
{
|
|
3339
|
-
[
|
|
3340
|
-
[
|
|
3341
|
-
[
|
|
3397
|
+
[nt[`${st}--error`]]: a,
|
|
3398
|
+
[nt[`${st}--no-controls`]]: c,
|
|
3399
|
+
[nt[`${st}--disabled`]]: l
|
|
3342
3400
|
},
|
|
3343
3401
|
t
|
|
3344
3402
|
), b = (g) => i(String(g)), E = (g) => _ !== void 0 && g > _ ? _ : o !== void 0 && g < o ? o : g, v = (g) => {
|
|
3345
|
-
const
|
|
3346
|
-
return b(E(
|
|
3403
|
+
const C = parseInt(r, 10) + g;
|
|
3404
|
+
return b(E(C));
|
|
3347
3405
|
}, h = (g) => {
|
|
3348
3406
|
g.key === _e.arrowDown && (g.preventDefault(), v(-1)), g.key === _e.arrowUp && (g.preventDefault(), v(1));
|
|
3349
|
-
}, y = (g,
|
|
3407
|
+
}, y = (g, C) => C !== void 0 && parseInt(g, 10) === C, $ = (g) => {
|
|
3350
3408
|
g.preventDefault(), g.stopPropagation();
|
|
3351
|
-
const
|
|
3409
|
+
const C = g.currentTarget.value.replace(
|
|
3352
3410
|
/((?!([-]|([-]?\d+))).)/,
|
|
3353
3411
|
""
|
|
3354
3412
|
);
|
|
3355
|
-
if (
|
|
3356
|
-
return b(
|
|
3357
|
-
const S = parseInt(
|
|
3413
|
+
if (C === "" || C === "-")
|
|
3414
|
+
return b(C);
|
|
3415
|
+
const S = parseInt(C, 10);
|
|
3358
3416
|
return b(E(S));
|
|
3359
|
-
},
|
|
3417
|
+
}, N = () => {
|
|
3360
3418
|
var g;
|
|
3361
3419
|
return (g = p.current) == null || g.focus(), v(1);
|
|
3362
3420
|
}, w = () => {
|
|
3363
3421
|
var g;
|
|
3364
3422
|
return (g = p.current) == null || g.focus(), v(-1);
|
|
3365
3423
|
};
|
|
3366
|
-
return /* @__PURE__ */ e.createElement("div", { className: f, style:
|
|
3424
|
+
return /* @__PURE__ */ e.createElement("div", { className: f, style: n }, /* @__PURE__ */ e.createElement(
|
|
3367
3425
|
"input",
|
|
3368
3426
|
T(k({
|
|
3369
3427
|
type: "text",
|
|
@@ -3381,15 +3439,15 @@ const Sc = (t) => {
|
|
|
3381
3439
|
{
|
|
3382
3440
|
tabIndex: -1,
|
|
3383
3441
|
disabled: l || y(r, _),
|
|
3384
|
-
onClick:
|
|
3442
|
+
onClick: N,
|
|
3385
3443
|
"aria-label": "Increment value",
|
|
3386
|
-
className:
|
|
3444
|
+
className: nt[`${st}__increment`],
|
|
3387
3445
|
type: "button"
|
|
3388
3446
|
},
|
|
3389
3447
|
/* @__PURE__ */ e.createElement(
|
|
3390
3448
|
A,
|
|
3391
3449
|
{
|
|
3392
|
-
source:
|
|
3450
|
+
source: Zt,
|
|
3393
3451
|
disabled: l || y(r, _),
|
|
3394
3452
|
kind: "primary"
|
|
3395
3453
|
}
|
|
@@ -3400,20 +3458,20 @@ const Sc = (t) => {
|
|
|
3400
3458
|
tabIndex: -1,
|
|
3401
3459
|
disabled: l || y(r, o),
|
|
3402
3460
|
"aria-label": "Decrement value",
|
|
3403
|
-
className:
|
|
3461
|
+
className: nt[`${st}__decrement`],
|
|
3404
3462
|
onClick: w,
|
|
3405
3463
|
type: "button"
|
|
3406
3464
|
},
|
|
3407
3465
|
/* @__PURE__ */ e.createElement(
|
|
3408
3466
|
A,
|
|
3409
3467
|
{
|
|
3410
|
-
source:
|
|
3468
|
+
source: It,
|
|
3411
3469
|
kind: "primary",
|
|
3412
3470
|
disabled: l || y(r, o)
|
|
3413
3471
|
}
|
|
3414
3472
|
)
|
|
3415
3473
|
)));
|
|
3416
|
-
},
|
|
3474
|
+
}, Yo = 2, Ko = 200, Jo = 400;
|
|
3417
3475
|
[
|
|
3418
3476
|
...[...Array(100)].map((t, a) => ({
|
|
3419
3477
|
key: `option${a + 8}`,
|
|
@@ -3421,14 +3479,14 @@ const Sc = (t) => {
|
|
|
3421
3479
|
disabled: a % 4 === 0
|
|
3422
3480
|
}))
|
|
3423
3481
|
];
|
|
3424
|
-
const
|
|
3482
|
+
const gt = "select-all", Xo = (t, a) => {
|
|
3425
3483
|
const r = [];
|
|
3426
3484
|
return t.forEach((_, o) => {
|
|
3427
3485
|
a(_) && r.push(o);
|
|
3428
3486
|
}), r;
|
|
3429
|
-
},
|
|
3430
|
-
({ key: a, disabled: r, groupHeader: _ }) => !(a ===
|
|
3431
|
-
),
|
|
3487
|
+
}, Ma = (t) => t.filter(
|
|
3488
|
+
({ key: a, disabled: r, groupHeader: _ }) => !(a === gt || r || _)
|
|
3489
|
+
), Sa = ({ key: t }) => t, mr = (t, a) => t.includes(a) ? t.filter((r) => r !== a) : [...t, a], ae = {
|
|
3432
3490
|
"item-wrapper": "lc-PickerListItem-module__item-wrapper___ETYMU",
|
|
3433
3491
|
"item-wrapper__first": "lc-PickerListItem-module__item-wrapper__first___uit1z",
|
|
3434
3492
|
"item-wrapper__last": "lc-PickerListItem-module__item-wrapper__last___cWmGF",
|
|
@@ -3443,7 +3501,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3443
3501
|
"picker-list__item__label": "lc-PickerListItem-module__picker-list__item__label___e0uwB",
|
|
3444
3502
|
"picker-list__item__main-label": "lc-PickerListItem-module__picker-list__item__main-label___YfUhr",
|
|
3445
3503
|
"picker-list__item__secondary-label": "lc-PickerListItem-module__picker-list__item__secondary-label___6xcMD"
|
|
3446
|
-
}, ye = "picker-list__item",
|
|
3504
|
+
}, ye = "picker-list__item", Qo = ({
|
|
3447
3505
|
index: t,
|
|
3448
3506
|
isActive: a,
|
|
3449
3507
|
isSelected: r,
|
|
@@ -3451,39 +3509,39 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3451
3509
|
onSelect: o,
|
|
3452
3510
|
getItemProps: l,
|
|
3453
3511
|
item: c,
|
|
3454
|
-
numberOfItems:
|
|
3512
|
+
numberOfItems: n
|
|
3455
3513
|
}) => {
|
|
3456
|
-
const i = (
|
|
3457
|
-
|
|
3514
|
+
const i = (s) => s != null && s.customElement ? /* @__PURE__ */ e.createElement("div", { className: ae[`${ye}__custom`] }, s.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, s.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3515
|
+
No,
|
|
3458
3516
|
{
|
|
3459
3517
|
className: ae[`${ye}__checkbox`],
|
|
3460
3518
|
checked: r
|
|
3461
3519
|
}
|
|
3462
|
-
),
|
|
3520
|
+
), s.icon && /* @__PURE__ */ e.createElement(
|
|
3463
3521
|
A,
|
|
3464
3522
|
{
|
|
3465
3523
|
className: ae[`${ye}__icon`],
|
|
3466
3524
|
kind: "link",
|
|
3467
|
-
source:
|
|
3525
|
+
source: s.icon
|
|
3468
3526
|
}
|
|
3469
|
-
),
|
|
3527
|
+
), s.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3470
3528
|
"img",
|
|
3471
3529
|
{
|
|
3472
3530
|
className: u(ae[`${ye}__avatar`]),
|
|
3473
|
-
src:
|
|
3474
|
-
alt:
|
|
3531
|
+
src: s.avatarSrc,
|
|
3532
|
+
alt: s.name
|
|
3475
3533
|
}
|
|
3476
3534
|
), /* @__PURE__ */ e.createElement("div", { className: ae[`${ye}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3477
3535
|
I,
|
|
3478
3536
|
{
|
|
3479
3537
|
as: "span",
|
|
3480
3538
|
className: u([ae[`${ye}__label`]], {
|
|
3481
|
-
[ae[`${ye}__main-label`]]:
|
|
3539
|
+
[ae[`${ye}__main-label`]]: s.secondaryText
|
|
3482
3540
|
}),
|
|
3483
|
-
"aria-disabled":
|
|
3541
|
+
"aria-disabled": s.disabled
|
|
3484
3542
|
},
|
|
3485
|
-
|
|
3486
|
-
),
|
|
3543
|
+
s.name
|
|
3544
|
+
), s.secondaryText && /* @__PURE__ */ e.createElement("span", { className: ae[`${ye}__secondary-label`] }, s.secondaryText)));
|
|
3487
3545
|
if (c.groupHeader)
|
|
3488
3546
|
return /* @__PURE__ */ e.createElement(
|
|
3489
3547
|
"div",
|
|
@@ -3495,8 +3553,8 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3495
3553
|
}, l()),
|
|
3496
3554
|
/* @__PURE__ */ e.createElement(De, { size: "2xs", uppercase: !0, bold: !0, as: "div" }, c.name)
|
|
3497
3555
|
);
|
|
3498
|
-
const d = (
|
|
3499
|
-
!c.disabled && o(
|
|
3556
|
+
const d = (s) => {
|
|
3557
|
+
!c.disabled && o(s);
|
|
3500
3558
|
};
|
|
3501
3559
|
return /* @__PURE__ */ e.createElement(
|
|
3502
3560
|
"div",
|
|
@@ -3504,18 +3562,18 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3504
3562
|
id: c.key,
|
|
3505
3563
|
key: c.key,
|
|
3506
3564
|
tabIndex: a ? 0 : -1,
|
|
3507
|
-
ref: (
|
|
3508
|
-
|
|
3565
|
+
ref: (s) => {
|
|
3566
|
+
s && (_.current[t] = s);
|
|
3509
3567
|
},
|
|
3510
3568
|
role: "option",
|
|
3511
|
-
"aria-setsize":
|
|
3569
|
+
"aria-setsize": n,
|
|
3512
3570
|
"aria-posinset": t + 1
|
|
3513
3571
|
}, l({
|
|
3514
3572
|
onClick: () => d(c.key)
|
|
3515
3573
|
})), {
|
|
3516
3574
|
className: u(ae["item-wrapper"], {
|
|
3517
3575
|
[ae["item-wrapper__first"]]: t === 0 && !c.groupHeader,
|
|
3518
|
-
[ae["item-wrapper__last"]]: t ===
|
|
3576
|
+
[ae["item-wrapper__last"]]: t === n - 1 && !c.groupHeader
|
|
3519
3577
|
})
|
|
3520
3578
|
}),
|
|
3521
3579
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3526,7 +3584,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3526
3584
|
"aria-current": a && !c.disabled,
|
|
3527
3585
|
className: u(ae[ye], {
|
|
3528
3586
|
[ae[`${ye}__custom`]]: c.customElement,
|
|
3529
|
-
[ae[`${ye}--select-all`]]: c.key ===
|
|
3587
|
+
[ae[`${ye}--select-all`]]: c.key === gt
|
|
3530
3588
|
})
|
|
3531
3589
|
},
|
|
3532
3590
|
i(c),
|
|
@@ -3534,17 +3592,17 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3534
3592
|
A,
|
|
3535
3593
|
{
|
|
3536
3594
|
kind: "link",
|
|
3537
|
-
source:
|
|
3595
|
+
source: jt,
|
|
3538
3596
|
customColor: "var(--content-basic-info)"
|
|
3539
3597
|
}
|
|
3540
3598
|
)
|
|
3541
3599
|
)
|
|
3542
3600
|
);
|
|
3543
|
-
},
|
|
3544
|
-
listbox:
|
|
3601
|
+
}, jo = "lc-PickerList-module__listbox___-LqE-", it = {
|
|
3602
|
+
listbox: jo,
|
|
3545
3603
|
"no-results": "lc-PickerList-module__no-results___QRce-",
|
|
3546
3604
|
"listbox-wrapper": "lc-PickerList-module__listbox-wrapper___FbDrf"
|
|
3547
|
-
},
|
|
3605
|
+
}, pr = "picker-list", Zo = ({
|
|
3548
3606
|
context: t,
|
|
3549
3607
|
setFloating: a,
|
|
3550
3608
|
floatingStyles: r,
|
|
@@ -3552,10 +3610,10 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3552
3610
|
options: o,
|
|
3553
3611
|
activeIndex: l,
|
|
3554
3612
|
selectedKeys: c,
|
|
3555
|
-
listElementsRef:
|
|
3613
|
+
listElementsRef: n,
|
|
3556
3614
|
setPointer: i,
|
|
3557
3615
|
onSelect: d,
|
|
3558
|
-
getFloatingProps:
|
|
3616
|
+
getFloatingProps: s,
|
|
3559
3617
|
getItemProps: m,
|
|
3560
3618
|
emptyStateText: p = "No results found",
|
|
3561
3619
|
pickerType: f = "single",
|
|
@@ -3564,20 +3622,20 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3564
3622
|
}) => {
|
|
3565
3623
|
const [v, h] = e.useState(0), y = o.length, $ = e.useCallback(
|
|
3566
3624
|
(w) => {
|
|
3567
|
-
w !== v && (w < _ ? h(w + (y - 1) *
|
|
3625
|
+
w !== v && (w < _ ? h(w + (y - 1) * Yo) : h(_));
|
|
3568
3626
|
},
|
|
3569
3627
|
[y]
|
|
3570
3628
|
);
|
|
3571
|
-
if (
|
|
3572
|
-
|
|
3629
|
+
if (mt(() => {
|
|
3630
|
+
n.current = new Array(o.length);
|
|
3573
3631
|
}, [o.length]), o.length === 0) {
|
|
3574
|
-
const w = u(
|
|
3575
|
-
[
|
|
3632
|
+
const w = u(it[pr], {
|
|
3633
|
+
[it[`${pr}__no-results`]]: o.length === 0
|
|
3576
3634
|
});
|
|
3577
|
-
return /* @__PURE__ */ e.createElement(
|
|
3635
|
+
return /* @__PURE__ */ e.createElement(Aa, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
3578
3636
|
"div",
|
|
3579
3637
|
{
|
|
3580
|
-
className: u(
|
|
3638
|
+
className: u(it.listbox, it["no-results"]),
|
|
3581
3639
|
ref: a,
|
|
3582
3640
|
tabIndex: -1,
|
|
3583
3641
|
style: r
|
|
@@ -3585,13 +3643,13 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3585
3643
|
/* @__PURE__ */ e.createElement("div", { className: w }, p)
|
|
3586
3644
|
));
|
|
3587
3645
|
}
|
|
3588
|
-
const
|
|
3589
|
-
return /* @__PURE__ */ e.createElement(
|
|
3646
|
+
const N = (w) => c.includes(w) || w === gt && c.length === Ma(o).length;
|
|
3647
|
+
return /* @__PURE__ */ e.createElement(Aa, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
3590
3648
|
"div",
|
|
3591
3649
|
{
|
|
3592
3650
|
ref: a,
|
|
3593
3651
|
tabIndex: -1,
|
|
3594
|
-
className: u(
|
|
3652
|
+
className: u(it.listbox, b),
|
|
3595
3653
|
style: T(k({}, r), {
|
|
3596
3654
|
maxHeight: _
|
|
3597
3655
|
})
|
|
@@ -3601,8 +3659,8 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3601
3659
|
k({
|
|
3602
3660
|
tabIndex: 0,
|
|
3603
3661
|
"aria-multiselectable": f === "multi",
|
|
3604
|
-
className:
|
|
3605
|
-
},
|
|
3662
|
+
className: it["listbox-wrapper"]
|
|
3663
|
+
}, s({
|
|
3606
3664
|
onKeyDown(w) {
|
|
3607
3665
|
i(!1), w.key === "Enter" && l !== null && d(o[l].key), w.key === " " && w.preventDefault();
|
|
3608
3666
|
},
|
|
@@ -3614,7 +3672,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3614
3672
|
}
|
|
3615
3673
|
})),
|
|
3616
3674
|
/* @__PURE__ */ e.createElement(
|
|
3617
|
-
|
|
3675
|
+
u_,
|
|
3618
3676
|
T(k({
|
|
3619
3677
|
totalListHeightChanged: $,
|
|
3620
3678
|
style: { height: `${v}px`, maxHeight: _ },
|
|
@@ -3623,13 +3681,13 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3623
3681
|
increaseViewportBy: 200
|
|
3624
3682
|
}, E), {
|
|
3625
3683
|
itemContent: (w, g) => /* @__PURE__ */ e.createElement(
|
|
3626
|
-
|
|
3684
|
+
Qo,
|
|
3627
3685
|
{
|
|
3628
3686
|
index: w,
|
|
3629
3687
|
getItemProps: m,
|
|
3630
|
-
listElementsRef:
|
|
3688
|
+
listElementsRef: n,
|
|
3631
3689
|
isActive: l === w,
|
|
3632
|
-
isSelected:
|
|
3690
|
+
isSelected: N(g.key),
|
|
3633
3691
|
onSelect: d,
|
|
3634
3692
|
item: g,
|
|
3635
3693
|
numberOfItems: y
|
|
@@ -3657,7 +3715,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3657
3715
|
"picker-trigger--disabled": "lc-PickerTrigger-module__picker-trigger--disabled___4MGb4",
|
|
3658
3716
|
"picker-trigger--focused": "lc-PickerTrigger-module__picker-trigger--focused___vBA4d",
|
|
3659
3717
|
"picker-trigger--error": "lc-PickerTrigger-module__picker-trigger--error___yu6Dt"
|
|
3660
|
-
}, re = "picker-trigger",
|
|
3718
|
+
}, re = "picker-trigger", el = ({
|
|
3661
3719
|
setReference: t,
|
|
3662
3720
|
getReferenceProps: a,
|
|
3663
3721
|
testId: r,
|
|
@@ -3665,10 +3723,10 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3665
3723
|
isMultiSelect: o,
|
|
3666
3724
|
isItemSelected: l,
|
|
3667
3725
|
hideClearButton: c,
|
|
3668
|
-
isDisabled:
|
|
3726
|
+
isDisabled: n,
|
|
3669
3727
|
isRequired: i,
|
|
3670
3728
|
isOpen: d,
|
|
3671
|
-
isError:
|
|
3729
|
+
isError: s,
|
|
3672
3730
|
onClear: m,
|
|
3673
3731
|
children: p,
|
|
3674
3732
|
setTriggerFocus: f
|
|
@@ -3678,17 +3736,17 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3678
3736
|
se[`${re}--${_}`],
|
|
3679
3737
|
o && se[`${re}--multi-select`],
|
|
3680
3738
|
o && l && se[`${re}--multi-select--with-items`],
|
|
3681
|
-
|
|
3739
|
+
n && se[`${re}--disabled`],
|
|
3682
3740
|
d && se[`${re}--focused`],
|
|
3683
|
-
|
|
3684
|
-
), E = !c && l && !
|
|
3741
|
+
s && se[`${re}--error`]
|
|
3742
|
+
), E = !c && l && !n && !i, v = (h) => {
|
|
3685
3743
|
h.stopPropagation(), m();
|
|
3686
3744
|
};
|
|
3687
3745
|
return /* @__PURE__ */ e.createElement(
|
|
3688
3746
|
"button",
|
|
3689
3747
|
T(k({
|
|
3690
|
-
tabIndex:
|
|
3691
|
-
"aria-disabled":
|
|
3748
|
+
tabIndex: n ? -1 : 0,
|
|
3749
|
+
"aria-disabled": n,
|
|
3692
3750
|
className: b,
|
|
3693
3751
|
"data-testid": r,
|
|
3694
3752
|
ref: t,
|
|
@@ -3730,18 +3788,18 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3730
3788
|
A,
|
|
3731
3789
|
{
|
|
3732
3790
|
className: se[`${re}__chevron-icon`],
|
|
3733
|
-
source: d ?
|
|
3791
|
+
source: d ? Zt : It,
|
|
3734
3792
|
size: "medium",
|
|
3735
|
-
disabled:
|
|
3793
|
+
disabled: n
|
|
3736
3794
|
}
|
|
3737
3795
|
)
|
|
3738
3796
|
)
|
|
3739
3797
|
);
|
|
3740
|
-
},
|
|
3741
|
-
tag:
|
|
3798
|
+
}, tl = "lc-Tag-module__tag___1QRVY", al = "lc-Tag-module__tag__remove___UmtrW", rl = "lc-Tag-module__tag__node___rZTzB", _l = "lc-Tag-module__tag__content___q6vKK", be = {
|
|
3799
|
+
tag: tl,
|
|
3742
3800
|
"tag__content-wrapper": "lc-Tag-module__tag__content-wrapper___oyXA4",
|
|
3743
3801
|
"tag--success": "lc-Tag-module__tag--success___P2hXQ",
|
|
3744
|
-
tag__remove:
|
|
3802
|
+
tag__remove: al,
|
|
3745
3803
|
"tag--error": "lc-Tag-module__tag--error___1cjsm",
|
|
3746
3804
|
"tag--warning": "lc-Tag-module__tag--warning___PstMG",
|
|
3747
3805
|
"tag--info": "lc-Tag-module__tag--info___RTH0C",
|
|
@@ -3769,9 +3827,9 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3769
3827
|
"tag--text-black": "lc-Tag-module__tag--text-black___dUvmD",
|
|
3770
3828
|
"tag--dismissible-on-hover": "lc-Tag-module__tag--dismissible-on-hover___t68Az",
|
|
3771
3829
|
"tag__remove--hover": "lc-Tag-module__tag__remove--hover___2ROEU",
|
|
3772
|
-
tag__node:
|
|
3773
|
-
tag__content:
|
|
3774
|
-
}, fe = "tag",
|
|
3830
|
+
tag__node: rl,
|
|
3831
|
+
tag__content: _l
|
|
3832
|
+
}, fe = "tag", ol = (t) => t ? Ga(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", Mr = (E) => {
|
|
3775
3833
|
var v = E, {
|
|
3776
3834
|
className: t = "",
|
|
3777
3835
|
children: a,
|
|
@@ -3780,10 +3838,10 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3780
3838
|
disabled: o = !1,
|
|
3781
3839
|
size: l = "medium",
|
|
3782
3840
|
kind: c = "default",
|
|
3783
|
-
onRemove:
|
|
3841
|
+
onRemove: n,
|
|
3784
3842
|
outline: i = !1,
|
|
3785
3843
|
leftNode: d,
|
|
3786
|
-
rightNode:
|
|
3844
|
+
rightNode: s,
|
|
3787
3845
|
customColor: m,
|
|
3788
3846
|
iconOnly: p = !1,
|
|
3789
3847
|
value: f
|
|
@@ -3803,18 +3861,18 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3803
3861
|
"iconOnly",
|
|
3804
3862
|
"value"
|
|
3805
3863
|
]);
|
|
3806
|
-
const h = _ ||
|
|
3864
|
+
const h = _ || n && p, y = u(
|
|
3807
3865
|
be[fe],
|
|
3808
3866
|
t,
|
|
3809
3867
|
be[`${fe}--${l}`],
|
|
3810
3868
|
be[`${fe}--${c}`],
|
|
3811
3869
|
{
|
|
3812
3870
|
[be[`${fe}--outline`]]: i,
|
|
3813
|
-
[be[`${fe}--${
|
|
3871
|
+
[be[`${fe}--${ol(m)}`]]: !!m,
|
|
3814
3872
|
[be[`${fe}--icon-only`]]: p,
|
|
3815
3873
|
[be[`${fe}--dismissible-on-hover`]]: h
|
|
3816
3874
|
}
|
|
3817
|
-
), $ = l === "small" ? "small" : "medium",
|
|
3875
|
+
), $ = l === "small" ? "small" : "medium", N = l === "small" ? "sm" : "md", w = () => m ? i ? {
|
|
3818
3876
|
style: {
|
|
3819
3877
|
backgroundColor: "transparent",
|
|
3820
3878
|
color: m,
|
|
@@ -3822,7 +3880,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3822
3880
|
}
|
|
3823
3881
|
} : { style: { backgroundColor: m } } : {}, g = () => {
|
|
3824
3882
|
if (m)
|
|
3825
|
-
return i ? m :
|
|
3883
|
+
return i ? m : Ga(m, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
3826
3884
|
};
|
|
3827
3885
|
return /* @__PURE__ */ e.createElement(
|
|
3828
3886
|
I,
|
|
@@ -3830,7 +3888,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3830
3888
|
className: y
|
|
3831
3889
|
}, b), w()), {
|
|
3832
3890
|
as: "div",
|
|
3833
|
-
size:
|
|
3891
|
+
size: N
|
|
3834
3892
|
}),
|
|
3835
3893
|
/* @__PURE__ */ e.createElement("div", { className: be[`${fe}__content-wrapper`] }, d && !p && /* @__PURE__ */ e.createElement(
|
|
3836
3894
|
"div",
|
|
@@ -3840,21 +3898,21 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3840
3898
|
style: { color: g() }
|
|
3841
3899
|
},
|
|
3842
3900
|
d
|
|
3843
|
-
), /* @__PURE__ */ e.createElement("div", { className: be[`${fe}__content`] }, f || a),
|
|
3901
|
+
), /* @__PURE__ */ e.createElement("div", { className: be[`${fe}__content`] }, f || a), s && !p && /* @__PURE__ */ e.createElement(
|
|
3844
3902
|
"div",
|
|
3845
3903
|
{
|
|
3846
3904
|
"data-testid": "lc-tag-right-node",
|
|
3847
3905
|
className: be[`${fe}__node`],
|
|
3848
3906
|
style: { color: g() }
|
|
3849
3907
|
},
|
|
3850
|
-
|
|
3908
|
+
s
|
|
3851
3909
|
)),
|
|
3852
|
-
|
|
3910
|
+
n && !o && /* @__PURE__ */ e.createElement(
|
|
3853
3911
|
"span",
|
|
3854
3912
|
{
|
|
3855
3913
|
tabIndex: -1,
|
|
3856
3914
|
title: "Remove",
|
|
3857
|
-
onClick:
|
|
3915
|
+
onClick: n,
|
|
3858
3916
|
role: "button",
|
|
3859
3917
|
"aria-label": "Remove tag",
|
|
3860
3918
|
className: u(be[`${fe}__remove`], {
|
|
@@ -3890,7 +3948,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3890
3948
|
"picker-trigger-body__tag--compact": "lc-PickerTriggerBody-module__picker-trigger-body__tag--compact___vajtL",
|
|
3891
3949
|
"picker-trigger-body__tag--medium": "lc-PickerTriggerBody-module__picker-trigger-body__tag--medium___yhMyC",
|
|
3892
3950
|
"picker-trigger-body__tag--large": "lc-PickerTriggerBody-module__picker-trigger-body__tag--large___FbETT"
|
|
3893
|
-
}, de = "picker-trigger-body",
|
|
3951
|
+
}, de = "picker-trigger-body", ll = ({
|
|
3894
3952
|
isOpen: t,
|
|
3895
3953
|
isSearchDisabled: a,
|
|
3896
3954
|
isDisabled: r,
|
|
@@ -3898,10 +3956,10 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3898
3956
|
selectedItems: o,
|
|
3899
3957
|
type: l,
|
|
3900
3958
|
clearSearchAfterSelection: c,
|
|
3901
|
-
size:
|
|
3959
|
+
size: n = "medium",
|
|
3902
3960
|
onItemRemove: i,
|
|
3903
3961
|
onSelect: d,
|
|
3904
|
-
onFilter:
|
|
3962
|
+
onFilter: s,
|
|
3905
3963
|
onClear: m,
|
|
3906
3964
|
searchPhrase: p,
|
|
3907
3965
|
virtualItemRef: f,
|
|
@@ -3909,7 +3967,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3909
3967
|
}) => {
|
|
3910
3968
|
const E = t && !a, v = e.useRef(null);
|
|
3911
3969
|
e.useEffect(() => {
|
|
3912
|
-
c && (
|
|
3970
|
+
c && (s(""), v.current && (v.current.value = "", v.current.focus()));
|
|
3913
3971
|
}, [o, c]);
|
|
3914
3972
|
const h = (g) => {
|
|
3915
3973
|
g.key === "Backspace" && o && o.length > 0 && (g.preventDefault(), l === "multi" ? i(o[o.length - 1].key) : m()), g.key === "Delete" && (g.preventDefault(), m());
|
|
@@ -3928,20 +3986,20 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3928
3986
|
alt: "",
|
|
3929
3987
|
className: ie[`${de}__item__avatar`]
|
|
3930
3988
|
}
|
|
3931
|
-
), /* @__PURE__ */ e.createElement("div", { className: ie[`${de}__item__content`] }, g.name)), $ = (g) =>
|
|
3932
|
-
var
|
|
3933
|
-
(
|
|
3989
|
+
), /* @__PURE__ */ e.createElement("div", { className: ie[`${de}__item__content`] }, g.name)), $ = (g) => s(g.target.value), N = (g) => {
|
|
3990
|
+
var C, S;
|
|
3991
|
+
(C = f.current) != null && C.id && g.key === "Enter" && d((S = f.current) == null ? void 0 : S.id), l === "multi" && (g.key === "Backspace" || g.key === "Delete") && !p && o && (o == null ? void 0 : o.length) > 0 && i(o[o.length - 1].key);
|
|
3934
3992
|
}, w = () => /* @__PURE__ */ e.createElement(
|
|
3935
3993
|
"input",
|
|
3936
3994
|
{
|
|
3937
3995
|
ref: v,
|
|
3938
3996
|
className: u(
|
|
3939
3997
|
ie[`${de}__input`],
|
|
3940
|
-
ie[`${de}__input--${
|
|
3998
|
+
ie[`${de}__input--${n}`]
|
|
3941
3999
|
),
|
|
3942
4000
|
placeholder: _,
|
|
3943
4001
|
onChange: $,
|
|
3944
|
-
onKeyDown:
|
|
4002
|
+
onKeyDown: N,
|
|
3945
4003
|
autoFocus: !0,
|
|
3946
4004
|
value: p
|
|
3947
4005
|
}
|
|
@@ -3963,23 +4021,23 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3963
4021
|
})
|
|
3964
4022
|
},
|
|
3965
4023
|
/* @__PURE__ */ e.createElement("div", { className: ie[`${de}__item-container`] }, l === "single" ? y(o[0]) : o.map((g) => /* @__PURE__ */ e.createElement(
|
|
3966
|
-
|
|
4024
|
+
Mr,
|
|
3967
4025
|
{
|
|
3968
4026
|
key: g.name,
|
|
3969
4027
|
className: u(
|
|
3970
4028
|
ie[`${de}__tag`],
|
|
3971
|
-
ie[`${de}__tag--${
|
|
4029
|
+
ie[`${de}__tag--${n}`]
|
|
3972
4030
|
),
|
|
3973
4031
|
disabled: r,
|
|
3974
|
-
onRemove: (
|
|
3975
|
-
|
|
4032
|
+
onRemove: (C) => {
|
|
4033
|
+
C.stopPropagation(), i(g.key);
|
|
3976
4034
|
}
|
|
3977
4035
|
},
|
|
3978
4036
|
y(g)
|
|
3979
4037
|
))),
|
|
3980
4038
|
E && w()
|
|
3981
4039
|
);
|
|
3982
|
-
},
|
|
4040
|
+
}, cl = 10, nl = ({
|
|
3983
4041
|
disabled: t,
|
|
3984
4042
|
items: a,
|
|
3985
4043
|
placement: r,
|
|
@@ -3987,24 +4045,24 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
3987
4045
|
maxListHeight: o,
|
|
3988
4046
|
floatingStrategy: l,
|
|
3989
4047
|
useDismissHookProps: c,
|
|
3990
|
-
useClickHookProps:
|
|
4048
|
+
useClickHookProps: n,
|
|
3991
4049
|
isOpen: i,
|
|
3992
4050
|
onVisibilityChange: d
|
|
3993
4051
|
}) => {
|
|
3994
|
-
const
|
|
3995
|
-
nodeId:
|
|
4052
|
+
const s = ea(), [m, p] = e.useState(!1), [f, b] = e.useState(null), [E, v] = e.useState(o), h = e.useRef([]), y = e.useRef(null), { refs: $, floatingStyles: N, context: w, isPositioned: g } = ta({
|
|
4053
|
+
nodeId: s,
|
|
3996
4054
|
open: i,
|
|
3997
4055
|
strategy: l,
|
|
3998
4056
|
onOpenChange: d,
|
|
3999
|
-
whileElementsMounted:
|
|
4057
|
+
whileElementsMounted: _a,
|
|
4000
4058
|
placement: r,
|
|
4001
4059
|
middleware: [
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4060
|
+
aa(4),
|
|
4061
|
+
ra({ padding: 10 }),
|
|
4062
|
+
za(),
|
|
4063
|
+
s_({
|
|
4006
4064
|
apply({ availableHeight: G, rects: Ee, elements: ve }) {
|
|
4007
|
-
|
|
4065
|
+
Sr.flushSync(() => {
|
|
4008
4066
|
v(
|
|
4009
4067
|
Math.max(
|
|
4010
4068
|
Math.min(o, G),
|
|
@@ -4015,36 +4073,36 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4015
4073
|
width: `${Ee.reference.width}px`
|
|
4016
4074
|
});
|
|
4017
4075
|
},
|
|
4018
|
-
padding:
|
|
4076
|
+
padding: cl
|
|
4019
4077
|
})
|
|
4020
4078
|
]
|
|
4021
|
-
}),
|
|
4079
|
+
}), C = oa(w, k({
|
|
4022
4080
|
enabled: !t,
|
|
4023
4081
|
keyboardHandlers: !1,
|
|
4024
4082
|
toggle: !1
|
|
4025
|
-
},
|
|
4083
|
+
}, n)), S = ca(w, { role: "listbox" }), V = la(w, c), q = i_(w, {
|
|
4026
4084
|
enabled: a.length > 0 && !t,
|
|
4027
4085
|
listRef: h,
|
|
4028
4086
|
activeIndex: f,
|
|
4029
4087
|
onNavigate: b,
|
|
4030
4088
|
virtual: !0,
|
|
4031
4089
|
virtualItemRef: y,
|
|
4032
|
-
disabledIndices:
|
|
4090
|
+
disabledIndices: Xo(
|
|
4033
4091
|
a,
|
|
4034
4092
|
(G) => !!G.disabled || !!G.groupHeader
|
|
4035
4093
|
)
|
|
4036
|
-
}), { getReferenceProps: x, getFloatingProps: R, getItemProps: Y } =
|
|
4037
|
-
[
|
|
4094
|
+
}), { getReferenceProps: x, getFloatingProps: R, getItemProps: Y } = na(
|
|
4095
|
+
[C, V, S, q]
|
|
4038
4096
|
);
|
|
4039
4097
|
return !i && m && p(!1), {
|
|
4040
4098
|
getReferenceProps: x,
|
|
4041
4099
|
getFloatingProps: R,
|
|
4042
4100
|
getItemProps: Y,
|
|
4043
4101
|
setReference: $.setReference,
|
|
4044
|
-
floatingStyles:
|
|
4102
|
+
floatingStyles: N,
|
|
4045
4103
|
isPositioned: g,
|
|
4046
4104
|
context: w,
|
|
4047
|
-
nodeId:
|
|
4105
|
+
nodeId: s,
|
|
4048
4106
|
setFloating: $.setFloating,
|
|
4049
4107
|
activeIndex: f,
|
|
4050
4108
|
listElementsRef: h,
|
|
@@ -4053,7 +4111,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4053
4111
|
pointer: m,
|
|
4054
4112
|
setPointer: p
|
|
4055
4113
|
};
|
|
4056
|
-
},
|
|
4114
|
+
}, sl = ({
|
|
4057
4115
|
selected: t,
|
|
4058
4116
|
options: a,
|
|
4059
4117
|
type: r,
|
|
@@ -4061,69 +4119,69 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4061
4119
|
onSelect: o,
|
|
4062
4120
|
setOpen: l
|
|
4063
4121
|
}) => {
|
|
4064
|
-
const [c,
|
|
4065
|
-
() => (t == null ? void 0 : t.map(
|
|
4066
|
-
), i = t !== void 0, d = i ? (t == null ? void 0 : t.map(
|
|
4122
|
+
const [c, n] = e.useState(
|
|
4123
|
+
() => (t == null ? void 0 : t.map(Sa)) || []
|
|
4124
|
+
), i = t !== void 0, d = i ? (t == null ? void 0 : t.map(Sa)) || [] : c, [s, m] = e.useState(""), p = e.useMemo(() => {
|
|
4067
4125
|
const h = r === "multi" && _;
|
|
4068
4126
|
let y = a;
|
|
4069
|
-
return
|
|
4070
|
-
var
|
|
4127
|
+
return s && (y = y.filter(($) => {
|
|
4128
|
+
var C;
|
|
4071
4129
|
if ($.groupHeader)
|
|
4072
4130
|
return !1;
|
|
4073
|
-
const
|
|
4074
|
-
return w.includes(
|
|
4131
|
+
const N = s.toLowerCase(), w = $.name.toLowerCase(), g = (C = $.secondaryText) == null ? void 0 : C.toLowerCase();
|
|
4132
|
+
return w.includes(N) || (g == null ? void 0 : g.includes(N));
|
|
4075
4133
|
})), h && y.length > 1 && (y = [
|
|
4076
4134
|
{
|
|
4077
|
-
key:
|
|
4135
|
+
key: gt,
|
|
4078
4136
|
name: _
|
|
4079
4137
|
},
|
|
4080
4138
|
...y
|
|
4081
4139
|
]), y;
|
|
4082
|
-
}, [
|
|
4140
|
+
}, [s, a, r, _]), f = (h) => {
|
|
4083
4141
|
const y = a.find(($) => $.key === h);
|
|
4084
|
-
if (!((!y || y.disabled) && h !==
|
|
4142
|
+
if (!((!y || y.disabled) && h !== gt))
|
|
4085
4143
|
if (r === "single")
|
|
4086
|
-
l(!1),
|
|
4087
|
-
else if (h ===
|
|
4088
|
-
d.length ===
|
|
4089
|
-
const $ =
|
|
4090
|
-
return o($), $.map(({ key:
|
|
4144
|
+
l(!1), n(() => (y && o([y]), [h]));
|
|
4145
|
+
else if (h === gt)
|
|
4146
|
+
d.length === Ma(a).length ? n(() => (o(null), [])) : n(() => {
|
|
4147
|
+
const $ = Ma(a);
|
|
4148
|
+
return o($), $.map(({ key: N }) => N);
|
|
4091
4149
|
});
|
|
4092
4150
|
else if (i) {
|
|
4093
|
-
const $ = (t == null ? void 0 : t.map(
|
|
4094
|
-
o(a.filter(({ key: w }) =>
|
|
4151
|
+
const $ = (t == null ? void 0 : t.map(Sa)) || [], N = mr($, h);
|
|
4152
|
+
o(a.filter(({ key: w }) => N.includes(w)));
|
|
4095
4153
|
} else
|
|
4096
|
-
|
|
4097
|
-
const
|
|
4098
|
-
return o(a.filter(({ key: w }) =>
|
|
4154
|
+
n(($) => {
|
|
4155
|
+
const N = mr($, h);
|
|
4156
|
+
return o(a.filter(({ key: w }) => N.includes(w))), N;
|
|
4099
4157
|
});
|
|
4100
4158
|
};
|
|
4101
4159
|
return {
|
|
4102
4160
|
selectedKeys: d,
|
|
4103
4161
|
items: p,
|
|
4104
|
-
searchPhrase:
|
|
4162
|
+
searchPhrase: s,
|
|
4105
4163
|
handleSelect: f,
|
|
4106
4164
|
handleOnFilter: (h) => m(h),
|
|
4107
4165
|
handleItemRemove: (h) => f(h),
|
|
4108
4166
|
handleClear: () => {
|
|
4109
|
-
l(!1),
|
|
4167
|
+
l(!1), n([]), o(null), m("");
|
|
4110
4168
|
}
|
|
4111
4169
|
};
|
|
4112
|
-
},
|
|
4170
|
+
}, il = {
|
|
4113
4171
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___2EDne"
|
|
4114
|
-
},
|
|
4172
|
+
}, Uc = (Y) => {
|
|
4115
4173
|
var G = Y, {
|
|
4116
4174
|
id: t,
|
|
4117
4175
|
className: a,
|
|
4118
4176
|
listClassName: r,
|
|
4119
|
-
minListHeight: _ =
|
|
4120
|
-
maxListHeight: o =
|
|
4177
|
+
minListHeight: _ = Ko,
|
|
4178
|
+
maxListHeight: o = Jo,
|
|
4121
4179
|
disabled: l,
|
|
4122
4180
|
error: c,
|
|
4123
|
-
options:
|
|
4181
|
+
options: n,
|
|
4124
4182
|
selected: i,
|
|
4125
4183
|
size: d = "medium",
|
|
4126
|
-
placeholder:
|
|
4184
|
+
placeholder: s = "Select option",
|
|
4127
4185
|
isRequired: m,
|
|
4128
4186
|
noSearchResultText: p = "No results found",
|
|
4129
4187
|
selectAllOptionText: f,
|
|
@@ -4133,10 +4191,10 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4133
4191
|
isVisible: h,
|
|
4134
4192
|
onOpen: y,
|
|
4135
4193
|
onClose: $,
|
|
4136
|
-
openedOnInit:
|
|
4194
|
+
openedOnInit: N = !1,
|
|
4137
4195
|
clearSearchAfterSelection: w,
|
|
4138
4196
|
onSelect: g,
|
|
4139
|
-
placement:
|
|
4197
|
+
placement: C,
|
|
4140
4198
|
floatingStrategy: S,
|
|
4141
4199
|
useDismissHookProps: V,
|
|
4142
4200
|
useClickHookProps: q,
|
|
@@ -4171,55 +4229,55 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4171
4229
|
"useClickHookProps",
|
|
4172
4230
|
"virtuosoProps"
|
|
4173
4231
|
]);
|
|
4174
|
-
const [Ee, ve] = e.useState(
|
|
4175
|
-
le ? y == null || y(
|
|
4232
|
+
const [Ee, ve] = e.useState(N), [we, Ae] = e.useState(!1), Re = h !== void 0, Le = Re ? h : Ee, _t = (le, Va) => {
|
|
4233
|
+
le ? y == null || y(Va) : $ == null || $(Va), !Re && ve(le);
|
|
4176
4234
|
}, {
|
|
4177
4235
|
selectedKeys: Qe,
|
|
4178
4236
|
items: Ke,
|
|
4179
|
-
searchPhrase:
|
|
4237
|
+
searchPhrase: ot,
|
|
4180
4238
|
handleSelect: je,
|
|
4181
|
-
handleOnFilter:
|
|
4239
|
+
handleOnFilter: lt,
|
|
4182
4240
|
handleItemRemove: P,
|
|
4183
4241
|
handleClear: L
|
|
4184
|
-
} =
|
|
4242
|
+
} = sl({
|
|
4185
4243
|
selected: i,
|
|
4186
|
-
options:
|
|
4244
|
+
options: n,
|
|
4187
4245
|
type: b,
|
|
4188
4246
|
selectAllOptionText: f,
|
|
4189
4247
|
onSelect: g,
|
|
4190
|
-
setOpen:
|
|
4248
|
+
setOpen: _t
|
|
4191
4249
|
}), {
|
|
4192
4250
|
context: oe,
|
|
4193
4251
|
nodeId: Oe,
|
|
4194
4252
|
getReferenceProps: He,
|
|
4195
|
-
setReference:
|
|
4196
|
-
getFloatingProps:
|
|
4197
|
-
getItemProps:
|
|
4198
|
-
setFloating:
|
|
4199
|
-
floatingStyles:
|
|
4200
|
-
listElementsRef:
|
|
4201
|
-
virtualItemRef:
|
|
4202
|
-
activeIndex:
|
|
4203
|
-
maxHeight:
|
|
4204
|
-
setPointer:
|
|
4205
|
-
} =
|
|
4206
|
-
openedOnInit:
|
|
4253
|
+
setReference: da,
|
|
4254
|
+
getFloatingProps: ua,
|
|
4255
|
+
getItemProps: ma,
|
|
4256
|
+
setFloating: pa,
|
|
4257
|
+
floatingStyles: ga,
|
|
4258
|
+
listElementsRef: ba,
|
|
4259
|
+
virtualItemRef: fa,
|
|
4260
|
+
activeIndex: va,
|
|
4261
|
+
maxHeight: ha,
|
|
4262
|
+
setPointer: Ft
|
|
4263
|
+
} = nl({
|
|
4264
|
+
openedOnInit: N,
|
|
4207
4265
|
disabled: l,
|
|
4208
4266
|
items: Ke,
|
|
4209
|
-
placement:
|
|
4267
|
+
placement: C,
|
|
4210
4268
|
minListHeight: _,
|
|
4211
4269
|
maxListHeight: o,
|
|
4212
4270
|
floatingStrategy: S,
|
|
4213
4271
|
useClickHookProps: q,
|
|
4214
4272
|
useDismissHookProps: V,
|
|
4215
4273
|
isOpen: Le,
|
|
4216
|
-
onVisibilityChange:
|
|
4274
|
+
onVisibilityChange: _t
|
|
4217
4275
|
});
|
|
4218
|
-
return /* @__PURE__ */ e.createElement("div", { id: t, className: u(
|
|
4219
|
-
|
|
4276
|
+
return /* @__PURE__ */ e.createElement("div", { id: t, className: u(il["picker-wrapper"], a) }, /* @__PURE__ */ e.createElement(
|
|
4277
|
+
el,
|
|
4220
4278
|
{
|
|
4221
4279
|
getReferenceProps: He,
|
|
4222
|
-
setReference:
|
|
4280
|
+
setReference: da,
|
|
4223
4281
|
testId: R["data-testid"],
|
|
4224
4282
|
isItemSelected: Qe.length > 0,
|
|
4225
4283
|
isOpen: Le,
|
|
@@ -4233,49 +4291,49 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4233
4291
|
setTriggerFocus: Ae
|
|
4234
4292
|
},
|
|
4235
4293
|
/* @__PURE__ */ e.createElement(
|
|
4236
|
-
|
|
4294
|
+
ll,
|
|
4237
4295
|
{
|
|
4238
4296
|
isOpen: Le,
|
|
4239
4297
|
isSearchDisabled: E,
|
|
4240
4298
|
isDisabled: l,
|
|
4241
|
-
placeholder:
|
|
4299
|
+
placeholder: s,
|
|
4242
4300
|
selectedItems: i,
|
|
4243
4301
|
type: b,
|
|
4244
4302
|
size: d,
|
|
4245
4303
|
clearSearchAfterSelection: w,
|
|
4246
4304
|
onItemRemove: P,
|
|
4247
4305
|
onSelect: je,
|
|
4248
|
-
onFilter:
|
|
4306
|
+
onFilter: lt,
|
|
4249
4307
|
onClear: L,
|
|
4250
|
-
searchPhrase:
|
|
4251
|
-
virtualItemRef:
|
|
4308
|
+
searchPhrase: ot,
|
|
4309
|
+
virtualItemRef: fa,
|
|
4252
4310
|
isTriggerFocused: we
|
|
4253
4311
|
}
|
|
4254
4312
|
)
|
|
4255
|
-
), /* @__PURE__ */ e.createElement(
|
|
4256
|
-
|
|
4313
|
+
), /* @__PURE__ */ e.createElement(sa, { id: Oe }, Le && /* @__PURE__ */ e.createElement($r, null, /* @__PURE__ */ e.createElement(
|
|
4314
|
+
Zo,
|
|
4257
4315
|
{
|
|
4258
4316
|
pickerType: b,
|
|
4259
4317
|
options: Ke,
|
|
4260
4318
|
listClassName: r,
|
|
4261
4319
|
context: oe,
|
|
4262
|
-
setFloating:
|
|
4263
|
-
floatingStyles:
|
|
4264
|
-
maxHeight:
|
|
4265
|
-
activeIndex:
|
|
4320
|
+
setFloating: pa,
|
|
4321
|
+
floatingStyles: ga,
|
|
4322
|
+
maxHeight: ha,
|
|
4323
|
+
activeIndex: va,
|
|
4266
4324
|
selectedKeys: Qe,
|
|
4267
|
-
listElementsRef:
|
|
4268
|
-
setPointer:
|
|
4325
|
+
listElementsRef: ba,
|
|
4326
|
+
setPointer: Ft,
|
|
4269
4327
|
onSelect: je,
|
|
4270
|
-
getFloatingProps:
|
|
4271
|
-
getItemProps:
|
|
4328
|
+
getFloatingProps: ua,
|
|
4329
|
+
getItemProps: ma,
|
|
4272
4330
|
emptyStateText: p,
|
|
4273
4331
|
virtuosoProps: x
|
|
4274
4332
|
}
|
|
4275
4333
|
))));
|
|
4276
|
-
},
|
|
4277
|
-
popover:
|
|
4278
|
-
},
|
|
4334
|
+
}, dl = "lc-Popover-module__popover___8X1b2", ul = {
|
|
4335
|
+
popover: dl
|
|
4336
|
+
}, Wc = ({
|
|
4279
4337
|
triggerRenderer: t,
|
|
4280
4338
|
onClose: a,
|
|
4281
4339
|
onOpen: r,
|
|
@@ -4283,32 +4341,32 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4283
4341
|
className: o,
|
|
4284
4342
|
triggerClassName: l,
|
|
4285
4343
|
placement: c,
|
|
4286
|
-
flipOptions:
|
|
4344
|
+
flipOptions: n,
|
|
4287
4345
|
offsetSize: i = 4,
|
|
4288
4346
|
isVisible: d,
|
|
4289
|
-
openedOnInit:
|
|
4347
|
+
openedOnInit: s,
|
|
4290
4348
|
closeOnEsc: m = !0,
|
|
4291
4349
|
useDismissHookProps: p,
|
|
4292
4350
|
useClickHookProps: f,
|
|
4293
4351
|
floatingStrategy: b
|
|
4294
4352
|
}) => {
|
|
4295
|
-
const [E, v] = e.useState(
|
|
4353
|
+
const [E, v] = e.useState(s), h = Oa(), y = ea(), $ = d !== void 0, N = $ ? d : E, w = typeof _ == "string", g = typeof t == "function", C = (Ae, Re) => {
|
|
4296
4354
|
Ae ? r == null || r(Re) : a == null || a(Re), !$ && v(Ae);
|
|
4297
|
-
}, { refs: S, context: V, floatingStyles: q } =
|
|
4355
|
+
}, { refs: S, context: V, floatingStyles: q } = ta({
|
|
4298
4356
|
nodeId: y,
|
|
4299
|
-
open:
|
|
4300
|
-
onOpenChange:
|
|
4301
|
-
middleware: [
|
|
4357
|
+
open: N,
|
|
4358
|
+
onOpenChange: C,
|
|
4359
|
+
middleware: [aa(i), ra(n), za()],
|
|
4302
4360
|
placement: c,
|
|
4303
4361
|
strategy: b,
|
|
4304
|
-
whileElementsMounted:
|
|
4305
|
-
}), x =
|
|
4362
|
+
whileElementsMounted: _a
|
|
4363
|
+
}), x = oa(V, f), R = la(V, k({
|
|
4306
4364
|
escapeKey: m
|
|
4307
|
-
}, p)), Y =
|
|
4365
|
+
}, p)), Y = ca(V), { getReferenceProps: G, getFloatingProps: Ee } = na([
|
|
4308
4366
|
x,
|
|
4309
4367
|
R,
|
|
4310
4368
|
Y
|
|
4311
|
-
]), ve = u(
|
|
4369
|
+
]), ve = u(ul.popover, o), we = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
4312
4370
|
"div",
|
|
4313
4371
|
T(k({
|
|
4314
4372
|
"data-testid": "popover-trigger-button",
|
|
@@ -4317,7 +4375,7 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4317
4375
|
className: l
|
|
4318
4376
|
}),
|
|
4319
4377
|
g ? t() : t
|
|
4320
|
-
), /* @__PURE__ */ e.createElement(
|
|
4378
|
+
), /* @__PURE__ */ e.createElement(sa, { id: y }, N && /* @__PURE__ */ e.createElement(Aa, { context: V, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
4321
4379
|
"div",
|
|
4322
4380
|
k({
|
|
4323
4381
|
className: ve,
|
|
@@ -4326,19 +4384,19 @@ const mt = "select-all", Ko = (t, a) => {
|
|
|
4326
4384
|
}, Ee()),
|
|
4327
4385
|
w ? /* @__PURE__ */ e.createElement(I, { as: "div" }, _) : _
|
|
4328
4386
|
))));
|
|
4329
|
-
return h === null ? /* @__PURE__ */ e.createElement(
|
|
4330
|
-
},
|
|
4387
|
+
return h === null ? /* @__PURE__ */ e.createElement(Ha, null, we) : we;
|
|
4388
|
+
}, ml = [
|
|
4331
4389
|
"normal",
|
|
4332
4390
|
"error",
|
|
4333
4391
|
"success"
|
|
4334
|
-
],
|
|
4335
|
-
function
|
|
4336
|
-
return t === "error" ? 0 :
|
|
4392
|
+
], pl = (t) => Math.min(Math.max(t, 0), 100);
|
|
4393
|
+
function Rr(t, a = 0) {
|
|
4394
|
+
return t === "error" ? 0 : pl(parseInt(a.toString(), 10));
|
|
4337
4395
|
}
|
|
4338
|
-
function
|
|
4339
|
-
return !
|
|
4396
|
+
function Lr(t, a) {
|
|
4397
|
+
return !ml.includes(t) && a >= 100 ? "normal" : t || "normal";
|
|
4340
4398
|
}
|
|
4341
|
-
const
|
|
4399
|
+
const xt = {
|
|
4342
4400
|
"progress-circle": "lc-ProgressCircle-module__progress-circle___NRHCi",
|
|
4343
4401
|
"progress-circle--small": "lc-ProgressCircle-module__progress-circle--small___8FVwG",
|
|
4344
4402
|
"progress-circle--medium": "lc-ProgressCircle-module__progress-circle--medium___XlzEX",
|
|
@@ -4349,35 +4407,35 @@ const Nt = {
|
|
|
4349
4407
|
"progress-circle__indicator--normal": "lc-ProgressCircle-module__progress-circle__indicator--normal___0SdkX",
|
|
4350
4408
|
"progress-circle__indicator--success": "lc-ProgressCircle-module__progress-circle__indicator--success___fLwRR",
|
|
4351
4409
|
"progress-circle__indicator--error": "lc-ProgressCircle-module__progress-circle__indicator--error___nwJS9"
|
|
4352
|
-
},
|
|
4410
|
+
}, gl = {
|
|
4353
4411
|
small: 2,
|
|
4354
4412
|
medium: 3,
|
|
4355
4413
|
large: 4
|
|
4356
|
-
},
|
|
4414
|
+
}, bl = {
|
|
4357
4415
|
small: 15,
|
|
4358
4416
|
medium: 36,
|
|
4359
4417
|
large: 56
|
|
4360
|
-
},
|
|
4418
|
+
}, Tt = "progress-circle", fl = e.forwardRef(
|
|
4361
4419
|
(c, l) => {
|
|
4362
|
-
var
|
|
4420
|
+
var n = c, {
|
|
4363
4421
|
status: t = "normal",
|
|
4364
4422
|
progressValue: a,
|
|
4365
4423
|
className: r,
|
|
4366
4424
|
size: _ = "medium"
|
|
4367
|
-
} =
|
|
4425
|
+
} = n, o = F(n, [
|
|
4368
4426
|
"status",
|
|
4369
4427
|
"progressValue",
|
|
4370
4428
|
"className",
|
|
4371
4429
|
"size"
|
|
4372
4430
|
]);
|
|
4373
|
-
const i =
|
|
4374
|
-
|
|
4431
|
+
const i = Lr(t, a), d = Rr(i, a), s = gl[_], m = bl[_], p = u(
|
|
4432
|
+
xt[Tt],
|
|
4375
4433
|
{
|
|
4376
|
-
[
|
|
4377
|
-
[
|
|
4434
|
+
[xt[`${Tt}--${_}`]]: _,
|
|
4435
|
+
[xt[`${Tt}--${t}`]]: t
|
|
4378
4436
|
},
|
|
4379
4437
|
r
|
|
4380
|
-
), f = 2 * Math.PI * ((m -
|
|
4438
|
+
), f = 2 * Math.PI * ((m - s) / 2), b = {
|
|
4381
4439
|
strokeDasharray: f.toFixed(3),
|
|
4382
4440
|
strokeDashoffset: `${((100 - d) / 100 * f).toFixed(3)}px`
|
|
4383
4441
|
}, E = `${m / 2} ${m / 2} ${m} ${m}`;
|
|
@@ -4391,28 +4449,28 @@ const Nt = {
|
|
|
4391
4449
|
/* @__PURE__ */ e.createElement("svg", { viewBox: E }, /* @__PURE__ */ e.createElement(
|
|
4392
4450
|
"circle",
|
|
4393
4451
|
{
|
|
4394
|
-
className:
|
|
4452
|
+
className: xt[`${Tt}__bg-line--${t}`],
|
|
4395
4453
|
cx: m,
|
|
4396
4454
|
cy: m,
|
|
4397
|
-
r: (m -
|
|
4455
|
+
r: (m - s) / 2,
|
|
4398
4456
|
fill: "none",
|
|
4399
|
-
strokeWidth:
|
|
4457
|
+
strokeWidth: s
|
|
4400
4458
|
}
|
|
4401
4459
|
), /* @__PURE__ */ e.createElement(
|
|
4402
4460
|
"circle",
|
|
4403
4461
|
{
|
|
4404
|
-
className:
|
|
4462
|
+
className: xt[`${Tt}__indicator--${t}`],
|
|
4405
4463
|
style: b,
|
|
4406
4464
|
cx: m,
|
|
4407
4465
|
cy: m,
|
|
4408
|
-
r: (m -
|
|
4466
|
+
r: (m - s) / 2,
|
|
4409
4467
|
fill: "none",
|
|
4410
|
-
strokeWidth:
|
|
4468
|
+
strokeWidth: s
|
|
4411
4469
|
}
|
|
4412
4470
|
))
|
|
4413
4471
|
);
|
|
4414
4472
|
}
|
|
4415
|
-
),
|
|
4473
|
+
), qt = {
|
|
4416
4474
|
"progress-bar": "lc-ProgressBar-module__progress-bar___3pa3d",
|
|
4417
4475
|
"progress-bar--small": "lc-ProgressBar-module__progress-bar--small___7nQKx",
|
|
4418
4476
|
"progress-bar--medium": "lc-ProgressBar-module__progress-bar--medium___cM44p",
|
|
@@ -4422,38 +4480,38 @@ const Nt = {
|
|
|
4422
4480
|
"progress-bar--normal": "lc-ProgressBar-module__progress-bar--normal___ZwCb-",
|
|
4423
4481
|
"progress-bar__indicator--success": "lc-ProgressBar-module__progress-bar__indicator--success___wRjR3",
|
|
4424
4482
|
"progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___0Uhle"
|
|
4425
|
-
},
|
|
4483
|
+
}, Yt = "progress-bar", vl = e.forwardRef(
|
|
4426
4484
|
(c, l) => {
|
|
4427
|
-
var
|
|
4485
|
+
var n = c, {
|
|
4428
4486
|
status: t = "normal",
|
|
4429
4487
|
percent: a,
|
|
4430
4488
|
size: r = "medium",
|
|
4431
4489
|
className: _ = ""
|
|
4432
|
-
} =
|
|
4490
|
+
} = n, o = F(n, [
|
|
4433
4491
|
"status",
|
|
4434
4492
|
"percent",
|
|
4435
4493
|
"size",
|
|
4436
4494
|
"className"
|
|
4437
4495
|
]);
|
|
4438
|
-
const i =
|
|
4439
|
-
|
|
4496
|
+
const i = Lr(t, a), d = Rr(i, a), s = u(
|
|
4497
|
+
qt[Yt],
|
|
4440
4498
|
{
|
|
4441
|
-
[
|
|
4442
|
-
[
|
|
4499
|
+
[qt[`${Yt}--${r}`]]: r,
|
|
4500
|
+
[qt[`${Yt}--${t}`]]: t
|
|
4443
4501
|
},
|
|
4444
4502
|
_
|
|
4445
4503
|
);
|
|
4446
4504
|
return /* @__PURE__ */ e.createElement(
|
|
4447
4505
|
"div",
|
|
4448
4506
|
T(k({}, o), {
|
|
4449
|
-
className:
|
|
4507
|
+
className: s,
|
|
4450
4508
|
ref: l,
|
|
4451
4509
|
role: "progressbar"
|
|
4452
4510
|
}),
|
|
4453
4511
|
/* @__PURE__ */ e.createElement(
|
|
4454
4512
|
"div",
|
|
4455
4513
|
{
|
|
4456
|
-
className:
|
|
4514
|
+
className: qt[`${Yt}__indicator--${t}`],
|
|
4457
4515
|
style: { width: `${d}%` }
|
|
4458
4516
|
}
|
|
4459
4517
|
)
|
|
@@ -4471,7 +4529,7 @@ const Nt = {
|
|
|
4471
4529
|
"promo-banner--small": "lc-PromoBanner-module__promo-banner--small___7sWLV",
|
|
4472
4530
|
"promo-banner--large": "lc-PromoBanner-module__promo-banner--large___pMiCU",
|
|
4473
4531
|
"promo-banner__close-icon": "lc-PromoBanner-module__promo-banner__close-icon___GowBL"
|
|
4474
|
-
},
|
|
4532
|
+
}, hl = 400, kl = 800, yl = 500, Ne = "promo-banner", Vc = ({
|
|
4475
4533
|
className: t,
|
|
4476
4534
|
buttonText: a,
|
|
4477
4535
|
children: r,
|
|
@@ -4479,43 +4537,43 @@ const Nt = {
|
|
|
4479
4537
|
img: o,
|
|
4480
4538
|
light: l = !1,
|
|
4481
4539
|
linkText: c,
|
|
4482
|
-
onButtonClick:
|
|
4540
|
+
onButtonClick: n,
|
|
4483
4541
|
onClose: i,
|
|
4484
4542
|
onLinkClick: d
|
|
4485
4543
|
}) => {
|
|
4486
|
-
const
|
|
4487
|
-
$e[
|
|
4544
|
+
const s = e.useRef(null), [m, p] = e.useState("medium"), f = u(
|
|
4545
|
+
$e[Ne],
|
|
4488
4546
|
{
|
|
4489
|
-
[$e[`${
|
|
4490
|
-
[$e[`${
|
|
4491
|
-
[$e[`${
|
|
4547
|
+
[$e[`${Ne}--light`]]: l,
|
|
4548
|
+
[$e[`${Ne}--small`]]: m === "small",
|
|
4549
|
+
[$e[`${Ne}--large`]]: m === "large"
|
|
4492
4550
|
},
|
|
4493
4551
|
t
|
|
4494
4552
|
);
|
|
4495
4553
|
e.useEffect(() => {
|
|
4496
|
-
const E = () =>
|
|
4554
|
+
const E = () => s.current && s.current.offsetWidth <= hl ? p("small") : s.current && s.current.offsetWidth >= kl ? p("large") : p("medium"), v = Nr(
|
|
4497
4555
|
E,
|
|
4498
|
-
|
|
4556
|
+
yl
|
|
4499
4557
|
);
|
|
4500
4558
|
return window.addEventListener("resize", v), E(), () => {
|
|
4501
4559
|
v.cancel(), window.removeEventListener("resize", v);
|
|
4502
4560
|
};
|
|
4503
4561
|
}, []);
|
|
4504
|
-
const b = /* @__PURE__ */ e.createElement("div", { className: $e[`${
|
|
4562
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: $e[`${Ne}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
4505
4563
|
W,
|
|
4506
4564
|
{
|
|
4507
4565
|
kind: "primary",
|
|
4508
4566
|
size: "compact",
|
|
4509
|
-
onClick:
|
|
4510
|
-
className: $e[`${
|
|
4567
|
+
onClick: n,
|
|
4568
|
+
className: $e[`${Ne}__button-text`]
|
|
4511
4569
|
},
|
|
4512
4570
|
a
|
|
4513
4571
|
), c && /* @__PURE__ */ e.createElement(W, { size: "compact", kind: "text", onClick: d }, c));
|
|
4514
|
-
return /* @__PURE__ */ e.createElement("div", { ref:
|
|
4572
|
+
return /* @__PURE__ */ e.createElement("div", { ref: s, className: f }, /* @__PURE__ */ e.createElement("div", { className: $e[`${Ne}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: $e[`${Ne}__img`] }), /* @__PURE__ */ e.createElement("div", { className: $e[`${Ne}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: $e[`${Ne}__header`] }, _), /* @__PURE__ */ e.createElement(I, { as: "div" }, r), m !== "large" && b), m === "large" && b), i && /* @__PURE__ */ e.createElement(
|
|
4515
4573
|
"button",
|
|
4516
4574
|
{
|
|
4517
4575
|
type: "button",
|
|
4518
|
-
className: $e[`${
|
|
4576
|
+
className: $e[`${Ne}__close-icon`],
|
|
4519
4577
|
onClick: i
|
|
4520
4578
|
},
|
|
4521
4579
|
/* @__PURE__ */ e.createElement(A, { source: Be, size: "large", kind: "primary" })
|
|
@@ -4530,7 +4588,7 @@ const Nt = {
|
|
|
4530
4588
|
"promo-banner-v2__close": "lc-PromoBannerV2-module__promo-banner-v2__close___rOh-U",
|
|
4531
4589
|
"promo-banner-v2__close__btn": "lc-PromoBannerV2-module__promo-banner-v2__close__btn___5AZQC",
|
|
4532
4590
|
"promo-banner-v2--vertical": "lc-PromoBannerV2-module__promo-banner-v2--vertical___p0mSU"
|
|
4533
|
-
}, Je = "promo-banner-v2",
|
|
4591
|
+
}, Je = "promo-banner-v2", qc = ({
|
|
4534
4592
|
children: t,
|
|
4535
4593
|
className: a,
|
|
4536
4594
|
additionalContent: r,
|
|
@@ -4538,7 +4596,7 @@ const Nt = {
|
|
|
4538
4596
|
secondaryButton: o,
|
|
4539
4597
|
vertical: l,
|
|
4540
4598
|
contentClassName: c,
|
|
4541
|
-
additionalContentClassName:
|
|
4599
|
+
additionalContentClassName: n,
|
|
4542
4600
|
onClose: i
|
|
4543
4601
|
}) => {
|
|
4544
4602
|
const d = u(Ue["main-wrapper"], a);
|
|
@@ -4571,7 +4629,7 @@ const Nt = {
|
|
|
4571
4629
|
{
|
|
4572
4630
|
className: u(
|
|
4573
4631
|
Ue[`${Je}__additional-content`],
|
|
4574
|
-
|
|
4632
|
+
n
|
|
4575
4633
|
)
|
|
4576
4634
|
},
|
|
4577
4635
|
r
|
|
@@ -4597,9 +4655,9 @@ const Nt = {
|
|
|
4597
4655
|
"radio-button__helper": "lc-RadioButton-module__radio-button__helper___r8gJJ",
|
|
4598
4656
|
"radio-button--selected": "lc-RadioButton-module__radio-button--selected___s9lqj",
|
|
4599
4657
|
"radio-button--disabled": "lc-RadioButton-module__radio-button--disabled___wHSA7"
|
|
4600
|
-
}, Ve = "radio-button",
|
|
4601
|
-
(
|
|
4602
|
-
var i =
|
|
4658
|
+
}, Ve = "radio-button", Yc = e.forwardRef(
|
|
4659
|
+
(n, c) => {
|
|
4660
|
+
var i = n, { children: t, className: a = "", description: r, checked: _, disabled: o } = i, l = F(i, ["children", "className", "description", "checked", "disabled"]);
|
|
4603
4661
|
const d = u(We[Ve], a, {
|
|
4604
4662
|
[We[`${Ve}--selected`]]: _,
|
|
4605
4663
|
[We[`${Ve}--disabled`]]: o
|
|
@@ -4613,9 +4671,9 @@ const Nt = {
|
|
|
4613
4671
|
checked: _,
|
|
4614
4672
|
disabled: o
|
|
4615
4673
|
})
|
|
4616
|
-
)), t && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: We[`${Ve}__text`] }, t)), r && /* @__PURE__ */ e.createElement(
|
|
4674
|
+
)), t && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: We[`${Ve}__text`] }, t)), r && /* @__PURE__ */ e.createElement(ia, { className: We[`${Ve}__helper`] }, r));
|
|
4617
4675
|
}
|
|
4618
|
-
),
|
|
4676
|
+
), Ce = {
|
|
4619
4677
|
"search-input": "lc-Search-module__search-input___FsbCk",
|
|
4620
4678
|
"search-input--compact": "lc-Search-module__search-input--compact___498To",
|
|
4621
4679
|
"search-input--medium": "lc-Search-module__search-input--medium___Hwteg",
|
|
@@ -4629,7 +4687,7 @@ const Nt = {
|
|
|
4629
4687
|
"search-input__loader": "lc-Search-module__search-input__loader___pkpIG",
|
|
4630
4688
|
"search-input__input-wrapper": "lc-Search-module__search-input__input-wrapper___k8bvn",
|
|
4631
4689
|
"search-input__input-wrapper--crop": "lc-Search-module__search-input__input-wrapper--crop___nBPKY"
|
|
4632
|
-
}, Fe = "search-input",
|
|
4690
|
+
}, Fe = "search-input", gr = `${Fe}__input-wrapper`, Kc = ({
|
|
4633
4691
|
isCollapsable: t,
|
|
4634
4692
|
isDisabled: a,
|
|
4635
4693
|
isLoading: r,
|
|
@@ -4637,35 +4695,35 @@ const Nt = {
|
|
|
4637
4695
|
size: o = "medium",
|
|
4638
4696
|
value: l,
|
|
4639
4697
|
className: c,
|
|
4640
|
-
cropOnBlur:
|
|
4698
|
+
cropOnBlur: n = !0,
|
|
4641
4699
|
onChange: i
|
|
4642
4700
|
}) => {
|
|
4643
|
-
const [d,
|
|
4701
|
+
const [d, s] = e.useState(!0), [m, p] = e.useState(!1), f = e.useRef(null), b = !!l && !a && !r, E = t && !d && "true", v = u(
|
|
4644
4702
|
c,
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
m &&
|
|
4648
|
-
a &&
|
|
4649
|
-
t &&
|
|
4650
|
-
!d &&
|
|
4703
|
+
Ce[Fe],
|
|
4704
|
+
Ce[`${Fe}--${o}`],
|
|
4705
|
+
m && Ce[`${Fe}--focused`],
|
|
4706
|
+
a && Ce[`${Fe}--disabled`],
|
|
4707
|
+
t && Ce[`${Fe}--collapsable`],
|
|
4708
|
+
!d && Ce[`${Fe}--collapsable--open`]
|
|
4651
4709
|
);
|
|
4652
4710
|
e.useEffect(() => {
|
|
4653
|
-
t && l &&
|
|
4711
|
+
t && l && s(!1);
|
|
4654
4712
|
}, [t]);
|
|
4655
|
-
const h = (
|
|
4656
|
-
const S =
|
|
4713
|
+
const h = (C) => {
|
|
4714
|
+
const S = C.currentTarget.value;
|
|
4657
4715
|
i(S);
|
|
4658
4716
|
}, y = () => {
|
|
4659
4717
|
i("");
|
|
4660
4718
|
}, $ = () => {
|
|
4661
|
-
var
|
|
4662
|
-
(
|
|
4663
|
-
},
|
|
4664
|
-
t &&
|
|
4719
|
+
var C;
|
|
4720
|
+
(C = f.current) == null || C.focus();
|
|
4721
|
+
}, N = () => {
|
|
4722
|
+
t && s(!1), p(!0);
|
|
4665
4723
|
}, w = () => {
|
|
4666
|
-
t && !l &&
|
|
4667
|
-
}, g = (
|
|
4668
|
-
|
|
4724
|
+
t && !l && s(!0), p(!1);
|
|
4725
|
+
}, g = (C) => {
|
|
4726
|
+
C.key === _e.enter && (C.preventDefault(), i(l));
|
|
4669
4727
|
};
|
|
4670
4728
|
return /* @__PURE__ */ e.createElement(
|
|
4671
4729
|
"div",
|
|
@@ -4678,8 +4736,8 @@ const Nt = {
|
|
|
4678
4736
|
/* @__PURE__ */ e.createElement(
|
|
4679
4737
|
A,
|
|
4680
4738
|
{
|
|
4681
|
-
className:
|
|
4682
|
-
source:
|
|
4739
|
+
className: Ce[`${Fe}__search-icon`],
|
|
4740
|
+
source: jr,
|
|
4683
4741
|
disabled: a,
|
|
4684
4742
|
kind: "primary"
|
|
4685
4743
|
}
|
|
@@ -4689,8 +4747,8 @@ const Nt = {
|
|
|
4689
4747
|
{
|
|
4690
4748
|
as: "div",
|
|
4691
4749
|
className: u(
|
|
4692
|
-
|
|
4693
|
-
|
|
4750
|
+
Ce[gr],
|
|
4751
|
+
n && Ce[`${gr}--crop`]
|
|
4694
4752
|
)
|
|
4695
4753
|
},
|
|
4696
4754
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4703,7 +4761,7 @@ const Nt = {
|
|
|
4703
4761
|
placeholder: _,
|
|
4704
4762
|
onChange: h,
|
|
4705
4763
|
onBlur: w,
|
|
4706
|
-
onFocus:
|
|
4764
|
+
onFocus: N,
|
|
4707
4765
|
onKeyDown: g,
|
|
4708
4766
|
disabled: a
|
|
4709
4767
|
}
|
|
@@ -4714,25 +4772,25 @@ const Nt = {
|
|
|
4714
4772
|
{
|
|
4715
4773
|
"aria-label": "Clear search",
|
|
4716
4774
|
title: "Clear search",
|
|
4717
|
-
className:
|
|
4775
|
+
className: Ce[`${Fe}__clear-icon`],
|
|
4718
4776
|
onClick: y,
|
|
4719
4777
|
icon: /* @__PURE__ */ e.createElement(A, { source: Be, kind: "primary" }),
|
|
4720
4778
|
kind: "text",
|
|
4721
4779
|
size: "compact"
|
|
4722
4780
|
}
|
|
4723
4781
|
),
|
|
4724
|
-
r && /* @__PURE__ */ e.createElement("div", { className:
|
|
4782
|
+
r && /* @__PURE__ */ e.createElement("div", { className: Ce[`${Fe}__loader`] }, /* @__PURE__ */ e.createElement(Ua, { size: "small" }))
|
|
4725
4783
|
);
|
|
4726
|
-
},
|
|
4784
|
+
}, El = "lc-Skeleton-module__loading___MHvGo", rt = {
|
|
4727
4785
|
"skeleton-wrapper": "lc-Skeleton-module__skeleton-wrapper___MXuR8",
|
|
4728
4786
|
"skeleton-wrapper--vertical": "lc-Skeleton-module__skeleton-wrapper--vertical___H3weP",
|
|
4729
4787
|
"skeleton-avatar": "lc-Skeleton-module__skeleton-avatar___qWzIc",
|
|
4730
4788
|
"skeleton-avatar--square": "lc-Skeleton-module__skeleton-avatar--square___GNIE4",
|
|
4731
4789
|
"skeleton-avatar--animated": "lc-Skeleton-module__skeleton-avatar--animated___rqj9A",
|
|
4732
|
-
loading:
|
|
4790
|
+
loading: El,
|
|
4733
4791
|
"skeleton-text": "lc-Skeleton-module__skeleton-text___rgElk",
|
|
4734
4792
|
"skeleton-text--animated": "lc-Skeleton-module__skeleton-text--animated___xOUsy"
|
|
4735
|
-
},
|
|
4793
|
+
}, br = "skeleton-wrapper", Jc = (o) => {
|
|
4736
4794
|
var l = o, {
|
|
4737
4795
|
children: t,
|
|
4738
4796
|
vertical: a,
|
|
@@ -4742,50 +4800,50 @@ const Nt = {
|
|
|
4742
4800
|
"vertical",
|
|
4743
4801
|
"animated"
|
|
4744
4802
|
]);
|
|
4745
|
-
const c = e.Children.map(t, (
|
|
4803
|
+
const c = e.Children.map(t, (n) => e.isValidElement(n) ? e.cloneElement(n, {
|
|
4746
4804
|
animated: r
|
|
4747
|
-
}) :
|
|
4805
|
+
}) : n);
|
|
4748
4806
|
return /* @__PURE__ */ e.createElement(
|
|
4749
4807
|
"div",
|
|
4750
4808
|
k({
|
|
4751
|
-
className: u(
|
|
4752
|
-
[
|
|
4809
|
+
className: u(rt[`${br}`], {
|
|
4810
|
+
[rt[`${br}--vertical`]]: a
|
|
4753
4811
|
})
|
|
4754
4812
|
}, _),
|
|
4755
4813
|
c
|
|
4756
4814
|
);
|
|
4757
|
-
},
|
|
4815
|
+
}, xa = "skeleton-avatar", Xc = ({
|
|
4758
4816
|
square: t = !1,
|
|
4759
4817
|
size: a = 16,
|
|
4760
4818
|
animated: r
|
|
4761
4819
|
}) => /* @__PURE__ */ e.createElement(
|
|
4762
4820
|
"div",
|
|
4763
4821
|
{
|
|
4764
|
-
className: u(
|
|
4765
|
-
[
|
|
4766
|
-
[
|
|
4822
|
+
className: u(rt[`${xa}`], {
|
|
4823
|
+
[rt[`${xa}--square`]]: t,
|
|
4824
|
+
[rt[`${xa}--animated`]]: r
|
|
4767
4825
|
}),
|
|
4768
4826
|
style: {
|
|
4769
4827
|
width: a,
|
|
4770
4828
|
height: a
|
|
4771
4829
|
}
|
|
4772
4830
|
}
|
|
4773
|
-
),
|
|
4831
|
+
), fr = "skeleton-text", Qc = ({
|
|
4774
4832
|
height: t = 13,
|
|
4775
4833
|
width: a,
|
|
4776
4834
|
animated: r
|
|
4777
4835
|
}) => /* @__PURE__ */ e.createElement(
|
|
4778
4836
|
"div",
|
|
4779
4837
|
{
|
|
4780
|
-
className: u(
|
|
4781
|
-
[
|
|
4838
|
+
className: u(rt[`${fr}`], {
|
|
4839
|
+
[rt[`${fr}--animated`]]: r
|
|
4782
4840
|
}),
|
|
4783
4841
|
style: {
|
|
4784
4842
|
height: t,
|
|
4785
4843
|
width: a
|
|
4786
4844
|
}
|
|
4787
4845
|
}
|
|
4788
|
-
),
|
|
4846
|
+
), wl = "lc-Switch-module__switch__input___NiiOR", $l = "lc-Switch-module__switch__container___79F7W", Nl = "lc-Switch-module__switch__track___2wr2M", Cl = "lc-Switch-module__switch__slider___WHd--", Sl = "lc-Switch-module__switch__loader___FE-fA", xl = "lc-Switch-module__switch__icon___-O1qY", j = {
|
|
4789
4847
|
switch: "lc-Switch-module__switch___AaA2k",
|
|
4790
4848
|
"switch__track--enabled": "lc-Switch-module__switch__track--enabled___sy4Xl",
|
|
4791
4849
|
"switch__track--on": "lc-Switch-module__switch__track--on___aOMWe",
|
|
@@ -4794,13 +4852,13 @@ const Nt = {
|
|
|
4794
4852
|
"switch--compact": "lc-Switch-module__switch--compact___OGFIX",
|
|
4795
4853
|
"switch--medium": "lc-Switch-module__switch--medium___EcZwT",
|
|
4796
4854
|
"switch--focused": "lc-Switch-module__switch--focused___P9d9S",
|
|
4797
|
-
switch__input:
|
|
4855
|
+
switch__input: wl,
|
|
4798
4856
|
"switch__input--disabled": "lc-Switch-module__switch__input--disabled___Po8gh",
|
|
4799
|
-
switch__container:
|
|
4800
|
-
switch__track:
|
|
4857
|
+
switch__container: $l,
|
|
4858
|
+
switch__track: Nl,
|
|
4801
4859
|
"switch__container--focused": "lc-Switch-module__switch__container--focused___bKy79",
|
|
4802
4860
|
"switch__track--disabled": "lc-Switch-module__switch__track--disabled___HkDhl",
|
|
4803
|
-
switch__slider:
|
|
4861
|
+
switch__slider: Cl,
|
|
4804
4862
|
"switch__slider--large": "lc-Switch-module__switch__slider--large___WoEgi",
|
|
4805
4863
|
"switch__slider--large--on": "lc-Switch-module__switch__slider--large--on___7Qp3G",
|
|
4806
4864
|
"switch__slider--large--off": "lc-Switch-module__switch__slider--large--off___iRMmD",
|
|
@@ -4811,12 +4869,12 @@ const Nt = {
|
|
|
4811
4869
|
"switch__slider--medium--on": "lc-Switch-module__switch__slider--medium--on___SfeAV",
|
|
4812
4870
|
"switch__slider--medium--off": "lc-Switch-module__switch__slider--medium--off___eXJJz",
|
|
4813
4871
|
"switch__slider--disabled": "lc-Switch-module__switch__slider--disabled___A6hPg",
|
|
4814
|
-
switch__loader:
|
|
4872
|
+
switch__loader: Sl,
|
|
4815
4873
|
"switch__loader--compact": "lc-Switch-module__switch__loader--compact___3imUh",
|
|
4816
4874
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___2zi05",
|
|
4817
4875
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
|
|
4818
|
-
switch__icon:
|
|
4819
|
-
}, Q = "switch",
|
|
4876
|
+
switch__icon: xl
|
|
4877
|
+
}, Q = "switch", jc = (m) => {
|
|
4820
4878
|
var p = m, {
|
|
4821
4879
|
className: t = "",
|
|
4822
4880
|
defaultOn: a = !1,
|
|
@@ -4825,10 +4883,10 @@ const Nt = {
|
|
|
4825
4883
|
on: o,
|
|
4826
4884
|
onChange: l,
|
|
4827
4885
|
size: c = "large",
|
|
4828
|
-
state:
|
|
4886
|
+
state: n = "regular",
|
|
4829
4887
|
innerRef: i,
|
|
4830
4888
|
ariaLabel: d
|
|
4831
|
-
} = p,
|
|
4889
|
+
} = p, s = F(p, [
|
|
4832
4890
|
"className",
|
|
4833
4891
|
"defaultOn",
|
|
4834
4892
|
"disabled",
|
|
@@ -4842,7 +4900,7 @@ const Nt = {
|
|
|
4842
4900
|
]);
|
|
4843
4901
|
const f = o !== void 0, [b, E] = e.useState(
|
|
4844
4902
|
() => f ? o : a
|
|
4845
|
-
), [v, h] = e.useState(!1), y = f ? o : b, $ =
|
|
4903
|
+
), [v, h] = e.useState(!1), y = f ? o : b, $ = n === "loading", N = n === "locked", w = c === "large" ? "small" : "xsmall", g = y ? "on" : "off", C = r || $ || N, S = C ? "disabled" : "enabled", V = u(
|
|
4846
4904
|
j[Q],
|
|
4847
4905
|
j[`${Q}--${c}`],
|
|
4848
4906
|
{
|
|
@@ -4864,9 +4922,9 @@ const Nt = {
|
|
|
4864
4922
|
checked: y,
|
|
4865
4923
|
name: _,
|
|
4866
4924
|
ref: i,
|
|
4867
|
-
disabled:
|
|
4925
|
+
disabled: C,
|
|
4868
4926
|
"aria-label": d
|
|
4869
|
-
},
|
|
4927
|
+
}, s), {
|
|
4870
4928
|
onFocus: () => h(!0),
|
|
4871
4929
|
onBlur: () => h(!1)
|
|
4872
4930
|
})
|
|
@@ -4898,7 +4956,7 @@ const Nt = {
|
|
|
4898
4956
|
)
|
|
4899
4957
|
},
|
|
4900
4958
|
$ && /* @__PURE__ */ e.createElement(
|
|
4901
|
-
|
|
4959
|
+
Ua,
|
|
4902
4960
|
{
|
|
4903
4961
|
"data-testid": "switch-loader",
|
|
4904
4962
|
className: u(
|
|
@@ -4907,29 +4965,29 @@ const Nt = {
|
|
|
4907
4965
|
)
|
|
4908
4966
|
}
|
|
4909
4967
|
),
|
|
4910
|
-
|
|
4968
|
+
N && /* @__PURE__ */ e.createElement(
|
|
4911
4969
|
A,
|
|
4912
4970
|
{
|
|
4913
4971
|
className: j[`${Q}__icon`],
|
|
4914
4972
|
"data-testid": "lock-icon",
|
|
4915
4973
|
size: w,
|
|
4916
|
-
source:
|
|
4974
|
+
source: Zr,
|
|
4917
4975
|
kind: "primary"
|
|
4918
4976
|
}
|
|
4919
4977
|
)
|
|
4920
4978
|
)
|
|
4921
4979
|
));
|
|
4922
|
-
},
|
|
4923
|
-
tab:
|
|
4924
|
-
tab__count:
|
|
4980
|
+
}, Tl = "lc-Tab-module__tab___fME7u", Dl = "lc-Tab-module__tab__count___gc8tA", Bl = "lc-Tab-module__tab__badge___W9c-T", dt = {
|
|
4981
|
+
tab: Tl,
|
|
4982
|
+
tab__count: Dl,
|
|
4925
4983
|
"tab--compact": "lc-Tab-module__tab--compact___4qead",
|
|
4926
4984
|
"tab--medium": "lc-Tab-module__tab--medium___bHnGV",
|
|
4927
4985
|
"tab--large": "lc-Tab-module__tab--large___JL30g",
|
|
4928
|
-
tab__badge:
|
|
4986
|
+
tab__badge: Bl,
|
|
4929
4987
|
"tab--selected": "lc-Tab-module__tab--selected___c0EkL",
|
|
4930
4988
|
"tab--disabled": "lc-Tab-module__tab--disabled___URdTh"
|
|
4931
|
-
},
|
|
4932
|
-
var i =
|
|
4989
|
+
}, ut = "tab", Zc = (n) => {
|
|
4990
|
+
var i = n, {
|
|
4933
4991
|
children: t,
|
|
4934
4992
|
className: a,
|
|
4935
4993
|
count: r,
|
|
@@ -4944,7 +5002,7 @@ const Nt = {
|
|
|
4944
5002
|
"asBadge",
|
|
4945
5003
|
"size"
|
|
4946
5004
|
]);
|
|
4947
|
-
const { disabled: d } = c,
|
|
5005
|
+
const { disabled: d } = c, s = r !== void 0 && !o, m = r !== void 0 && o;
|
|
4948
5006
|
return /* @__PURE__ */ e.createElement(
|
|
4949
5007
|
I,
|
|
4950
5008
|
T(k({}, c), {
|
|
@@ -4953,41 +5011,41 @@ const Nt = {
|
|
|
4953
5011
|
bold: _,
|
|
4954
5012
|
className: u(
|
|
4955
5013
|
a,
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
_ &&
|
|
4959
|
-
d &&
|
|
5014
|
+
dt[ut],
|
|
5015
|
+
dt[`${ut}--${l}`],
|
|
5016
|
+
_ && dt[`${ut}--selected`],
|
|
5017
|
+
d && dt[`${ut}--disabled`]
|
|
4960
5018
|
)
|
|
4961
5019
|
}),
|
|
4962
5020
|
t,
|
|
4963
|
-
|
|
5021
|
+
s && /* @__PURE__ */ e.createElement(I, { as: "span", size: "md", className: dt[`${ut}__count`] }, "(", r, ")"),
|
|
4964
5022
|
m && /* @__PURE__ */ e.createElement(
|
|
4965
|
-
|
|
5023
|
+
eo,
|
|
4966
5024
|
{
|
|
4967
5025
|
"data-testid": "tab-badge",
|
|
4968
5026
|
count: r,
|
|
4969
5027
|
size: "compact",
|
|
4970
|
-
className:
|
|
5028
|
+
className: dt[`${ut}__badge`]
|
|
4971
5029
|
}
|
|
4972
5030
|
)
|
|
4973
5031
|
);
|
|
4974
|
-
},
|
|
4975
|
-
tabs:
|
|
4976
|
-
tabs__list:
|
|
4977
|
-
},
|
|
5032
|
+
}, Al = "lc-TabsWrapper-module__tabs___Y2xyD", Pl = "lc-TabsWrapper-module__tabs__list___i6tVO", Or = {
|
|
5033
|
+
tabs: Al,
|
|
5034
|
+
tabs__list: Pl
|
|
5035
|
+
}, Hr = "tabs", en = ({
|
|
4978
5036
|
className: t,
|
|
4979
5037
|
children: a
|
|
4980
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: u(
|
|
5038
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: u(Or[Hr], t) }, a), tn = ({
|
|
4981
5039
|
className: t,
|
|
4982
5040
|
children: a
|
|
4983
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: u(
|
|
5041
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: u(Or[`${Hr}__list`], t) }, a), At = {
|
|
4984
5042
|
"tag-input": "lc-TagInput-module__tag-input___CLVY-",
|
|
4985
5043
|
"tag-input--error": "lc-TagInput-module__tag-input--error___RP0SB",
|
|
4986
5044
|
"tag-input__input": "lc-TagInput-module__tag-input__input___dgEYB",
|
|
4987
5045
|
"tag-input__input--medium": "lc-TagInput-module__tag-input__input--medium___DYF7X",
|
|
4988
5046
|
"tag-input__input--large": "lc-TagInput-module__tag-input__input--large___G6iEO",
|
|
4989
5047
|
"tag-input__tag__content": "lc-TagInput-module__tag-input__tag__content___x95-M"
|
|
4990
|
-
},
|
|
5048
|
+
}, Il = ({
|
|
4991
5049
|
className: t = "",
|
|
4992
5050
|
innerEditableRef: a,
|
|
4993
5051
|
inputRef: r,
|
|
@@ -4995,17 +5053,17 @@ const Nt = {
|
|
|
4995
5053
|
remove: o,
|
|
4996
5054
|
value: l
|
|
4997
5055
|
}) => {
|
|
4998
|
-
const [c,
|
|
5056
|
+
const [c, n] = e.useState(!1), i = () => a.current, d = () => {
|
|
4999
5057
|
const b = i();
|
|
5000
5058
|
return b ? b.innerText : "";
|
|
5001
|
-
},
|
|
5059
|
+
}, s = () => {
|
|
5002
5060
|
r && r.current && r.current.focus();
|
|
5003
5061
|
}, m = (b) => {
|
|
5004
5062
|
if (b.key === _e.enter) {
|
|
5005
|
-
b.preventDefault(),
|
|
5063
|
+
b.preventDefault(), s();
|
|
5006
5064
|
return;
|
|
5007
5065
|
}
|
|
5008
|
-
b.key === _e.backspace && d() === "" && (
|
|
5066
|
+
b.key === _e.backspace && d() === "" && (n(!0), o(), s());
|
|
5009
5067
|
}, p = () => {
|
|
5010
5068
|
const b = i();
|
|
5011
5069
|
if (!(c || !b)) {
|
|
@@ -5018,7 +5076,7 @@ const Nt = {
|
|
|
5018
5076
|
}, f = (b) => {
|
|
5019
5077
|
b.preventDefault();
|
|
5020
5078
|
const E = b.clipboardData.getData("text/plain");
|
|
5021
|
-
document.execCommand("insertHTML", !1,
|
|
5079
|
+
document.execCommand("insertHTML", !1, Xa(E));
|
|
5022
5080
|
};
|
|
5023
5081
|
return /* @__PURE__ */ e.createElement(
|
|
5024
5082
|
"div",
|
|
@@ -5029,10 +5087,10 @@ const Nt = {
|
|
|
5029
5087
|
onPaste: f,
|
|
5030
5088
|
onBlur: p,
|
|
5031
5089
|
onKeyDown: m,
|
|
5032
|
-
dangerouslySetInnerHTML: { __html:
|
|
5090
|
+
dangerouslySetInnerHTML: { __html: Xa(l) }
|
|
5033
5091
|
}
|
|
5034
5092
|
);
|
|
5035
|
-
},
|
|
5093
|
+
}, Fl = "tag-input__tag", vr = ({
|
|
5036
5094
|
children: t,
|
|
5037
5095
|
index: a,
|
|
5038
5096
|
remove: r,
|
|
@@ -5040,28 +5098,28 @@ const Nt = {
|
|
|
5040
5098
|
inputRef: o,
|
|
5041
5099
|
update: l,
|
|
5042
5100
|
size: c,
|
|
5043
|
-
tagProps:
|
|
5101
|
+
tagProps: n
|
|
5044
5102
|
}) => {
|
|
5045
|
-
const i = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), d = e.useRef(null),
|
|
5046
|
-
return /* @__PURE__ */ e.createElement(
|
|
5047
|
-
|
|
5103
|
+
const i = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), d = e.useRef(null), s = () => r(a), m = () => i ? n ? n.kind : "default" : "error";
|
|
5104
|
+
return /* @__PURE__ */ e.createElement(Mr, T(k({ size: c }, n), { kind: m(), onRemove: s }), /* @__PURE__ */ e.createElement(
|
|
5105
|
+
Il,
|
|
5048
5106
|
{
|
|
5049
5107
|
value: t,
|
|
5050
5108
|
inputRef: o,
|
|
5051
5109
|
innerEditableRef: d,
|
|
5052
|
-
className:
|
|
5110
|
+
className: At[`${Fl}__content`],
|
|
5053
5111
|
change: (p) => l(a, p),
|
|
5054
|
-
remove:
|
|
5112
|
+
remove: s,
|
|
5055
5113
|
validator: _
|
|
5056
5114
|
}
|
|
5057
5115
|
));
|
|
5058
|
-
},
|
|
5116
|
+
}, Kt = "tag-input", Ml = [
|
|
5059
5117
|
_e.enter,
|
|
5060
5118
|
_e.spacebar,
|
|
5061
5119
|
_e.tab,
|
|
5062
5120
|
_e.semicolon,
|
|
5063
5121
|
_e.comma
|
|
5064
|
-
],
|
|
5122
|
+
], Rl = [_e.backspace, _e.delete], Ll = (p) => {
|
|
5065
5123
|
var f = p, {
|
|
5066
5124
|
id: t,
|
|
5067
5125
|
tags: a,
|
|
@@ -5070,10 +5128,10 @@ const Nt = {
|
|
|
5070
5128
|
error: o,
|
|
5071
5129
|
placeholder: l,
|
|
5072
5130
|
size: c = "medium",
|
|
5073
|
-
className:
|
|
5131
|
+
className: n,
|
|
5074
5132
|
inputClassName: i,
|
|
5075
5133
|
onBlur: d,
|
|
5076
|
-
addOnBlur:
|
|
5134
|
+
addOnBlur: s = !0
|
|
5077
5135
|
} = f, m = F(f, [
|
|
5078
5136
|
"id",
|
|
5079
5137
|
"tags",
|
|
@@ -5088,32 +5146,32 @@ const Nt = {
|
|
|
5088
5146
|
"addOnBlur"
|
|
5089
5147
|
]);
|
|
5090
5148
|
const b = u(
|
|
5091
|
-
|
|
5149
|
+
At[Kt],
|
|
5092
5150
|
{
|
|
5093
|
-
[
|
|
5151
|
+
[At[`${Kt}--error`]]: o
|
|
5094
5152
|
},
|
|
5095
|
-
|
|
5153
|
+
n
|
|
5096
5154
|
), E = u(
|
|
5097
5155
|
i,
|
|
5098
|
-
|
|
5099
|
-
|
|
5156
|
+
At[`${Kt}__input`],
|
|
5157
|
+
At[`${Kt}__input--${c}`]
|
|
5100
5158
|
), [v, h] = e.useState(""), y = e.useRef(null), $ = (x) => {
|
|
5101
5159
|
x.trim() !== "" && (r([...a || [], x]), h(""));
|
|
5102
|
-
},
|
|
5160
|
+
}, N = (x) => {
|
|
5103
5161
|
const R = [...a || []];
|
|
5104
5162
|
R.splice(x, 1), r(R);
|
|
5105
5163
|
}, w = (x) => h(x.target.value), g = (x) => {
|
|
5106
|
-
if (
|
|
5164
|
+
if (Ml.includes(x.key)) {
|
|
5107
5165
|
if (x.preventDefault(), v === "")
|
|
5108
5166
|
return;
|
|
5109
5167
|
$(v);
|
|
5110
|
-
} else if (
|
|
5168
|
+
} else if (Rl.includes(x.key)) {
|
|
5111
5169
|
if (v !== "" || !(a != null && a.length))
|
|
5112
5170
|
return;
|
|
5113
|
-
|
|
5171
|
+
N(a.length - 1);
|
|
5114
5172
|
}
|
|
5115
|
-
},
|
|
5116
|
-
|
|
5173
|
+
}, C = (x) => {
|
|
5174
|
+
s && $(v), d == null || d(x);
|
|
5117
5175
|
}, S = (x, R) => {
|
|
5118
5176
|
const Y = [...a || []];
|
|
5119
5177
|
Y.reduce(
|
|
@@ -5125,24 +5183,24 @@ const Nt = {
|
|
|
5125
5183
|
const Y = x.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
5126
5184
|
r([...a || [], ...Y]);
|
|
5127
5185
|
}, q = (x, R) => typeof x == "string" ? /* @__PURE__ */ e.createElement(
|
|
5128
|
-
|
|
5186
|
+
vr,
|
|
5129
5187
|
{
|
|
5130
5188
|
index: R,
|
|
5131
5189
|
key: `${R}${x}`,
|
|
5132
5190
|
update: S,
|
|
5133
|
-
remove:
|
|
5191
|
+
remove: N,
|
|
5134
5192
|
inputRef: y,
|
|
5135
5193
|
validator: _,
|
|
5136
5194
|
size: c
|
|
5137
5195
|
},
|
|
5138
5196
|
x
|
|
5139
5197
|
) : /* @__PURE__ */ e.createElement(
|
|
5140
|
-
|
|
5198
|
+
vr,
|
|
5141
5199
|
{
|
|
5142
5200
|
index: R,
|
|
5143
5201
|
key: `${R}${x.children}`,
|
|
5144
5202
|
update: S,
|
|
5145
|
-
remove:
|
|
5203
|
+
remove: N,
|
|
5146
5204
|
inputRef: y,
|
|
5147
5205
|
validator: _,
|
|
5148
5206
|
size: c,
|
|
@@ -5161,21 +5219,21 @@ const Nt = {
|
|
|
5161
5219
|
onChange: w,
|
|
5162
5220
|
onKeyDown: g,
|
|
5163
5221
|
onPaste: V,
|
|
5164
|
-
onBlur:
|
|
5222
|
+
onBlur: C
|
|
5165
5223
|
})
|
|
5166
|
-
)), o && /* @__PURE__ */ e.createElement(
|
|
5167
|
-
},
|
|
5224
|
+
)), o && /* @__PURE__ */ e.createElement(Wa, null, o));
|
|
5225
|
+
}, Ol = /^(?:[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, Hl = "name@company.com", zl = (t) => Ol.test(t), an = (r) => {
|
|
5168
5226
|
var _ = r, {
|
|
5169
|
-
placeholder: t =
|
|
5227
|
+
placeholder: t = Hl
|
|
5170
5228
|
} = _, a = F(_, [
|
|
5171
5229
|
"placeholder"
|
|
5172
5230
|
]);
|
|
5173
|
-
return /* @__PURE__ */ e.createElement(
|
|
5174
|
-
},
|
|
5175
|
-
toast:
|
|
5176
|
-
toast__content:
|
|
5177
|
-
toast__actions:
|
|
5178
|
-
toast__actions__button:
|
|
5231
|
+
return /* @__PURE__ */ e.createElement(Ll, T(k({}, a), { placeholder: t, validator: zl }));
|
|
5232
|
+
}, Gl = "lc-Toast-module__toast___j5Amn", Ul = "lc-Toast-module__toast__content___HjaNw", Wl = "lc-Toast-module__toast__actions___JWu-1", Vl = "lc-Toast-module__toast__actions__button___Iblrl", Z = {
|
|
5233
|
+
toast: Gl,
|
|
5234
|
+
toast__content: Ul,
|
|
5235
|
+
toast__actions: Wl,
|
|
5236
|
+
toast__actions__button: Vl,
|
|
5179
5237
|
"toast__actions__button--success": "lc-Toast-module__toast__actions__button--success___5JmFw",
|
|
5180
5238
|
"toast__actions__button--warning": "lc-Toast-module__toast__actions__button--warning___zGQ-Q",
|
|
5181
5239
|
"toast__actions__button--error": "lc-Toast-module__toast__actions__button--error___PuTv3",
|
|
@@ -5201,21 +5259,21 @@ const Nt = {
|
|
|
5201
5259
|
"toast-appear-active--fade": "lc-Toast-module__toast-appear-active--fade___D3--J",
|
|
5202
5260
|
"toast-exit--fade": "lc-Toast-module__toast-exit--fade___iDA1p",
|
|
5203
5261
|
"toast-exit-active--fade": "lc-Toast-module__toast-exit-active--fade___tL7sb"
|
|
5204
|
-
},
|
|
5262
|
+
}, ql = {
|
|
5205
5263
|
success: {
|
|
5206
|
-
source:
|
|
5264
|
+
source: kr
|
|
5207
5265
|
},
|
|
5208
5266
|
warning: {
|
|
5209
|
-
source:
|
|
5267
|
+
source: hr
|
|
5210
5268
|
},
|
|
5211
5269
|
error: {
|
|
5212
|
-
source:
|
|
5270
|
+
source: yr
|
|
5213
5271
|
},
|
|
5214
5272
|
info: {
|
|
5215
|
-
source:
|
|
5273
|
+
source: La
|
|
5216
5274
|
}
|
|
5217
|
-
}, Xe = "toast",
|
|
5218
|
-
var i =
|
|
5275
|
+
}, Xe = "toast", Yl = (n) => {
|
|
5276
|
+
var i = n, {
|
|
5219
5277
|
action: t,
|
|
5220
5278
|
className: a,
|
|
5221
5279
|
children: r,
|
|
@@ -5234,8 +5292,8 @@ const Nt = {
|
|
|
5234
5292
|
Z[Xe],
|
|
5235
5293
|
Z[`${Xe}--${o}`],
|
|
5236
5294
|
a
|
|
5237
|
-
),
|
|
5238
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: d }, c), /* @__PURE__ */ e.createElement("div", { className: Z[`${Xe}__icon`] }, /* @__PURE__ */ e.createElement(A, T(k({},
|
|
5295
|
+
), s = typeof r == "string", m = (p) => p && p.closesOnClick && l ? (p.onClick(), l()) : p.onClick();
|
|
5296
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: d }, c), /* @__PURE__ */ e.createElement("div", { className: Z[`${Xe}__icon`] }, /* @__PURE__ */ e.createElement(A, T(k({}, ql[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: Z[`${Xe}__content`] }, s ? /* @__PURE__ */ e.createElement(I, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: Z[`${Xe}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
5239
5297
|
W,
|
|
5240
5298
|
{
|
|
5241
5299
|
className: Z[`${Xe}__actions--custom`],
|
|
@@ -5256,7 +5314,7 @@ const Nt = {
|
|
|
5256
5314
|
},
|
|
5257
5315
|
/* @__PURE__ */ e.createElement(A, { source: Be, size: "medium" })
|
|
5258
5316
|
)));
|
|
5259
|
-
},
|
|
5317
|
+
}, Kl = 200, Dt = "toast-wrapper", rn = ({
|
|
5260
5318
|
className: t,
|
|
5261
5319
|
toasts: a = [],
|
|
5262
5320
|
fixed: r = !0,
|
|
@@ -5265,18 +5323,18 @@ const Nt = {
|
|
|
5265
5323
|
verticalPosition: l = "top",
|
|
5266
5324
|
horizontalPosition: c = "center"
|
|
5267
5325
|
}) => {
|
|
5268
|
-
const
|
|
5269
|
-
Z[
|
|
5326
|
+
const n = u(
|
|
5327
|
+
Z[Dt],
|
|
5270
5328
|
{
|
|
5271
|
-
[Z[`${
|
|
5272
|
-
[Z[`${
|
|
5273
|
-
[Z[`${
|
|
5274
|
-
[Z[`${
|
|
5329
|
+
[Z[`${Dt}--fixed`]]: r,
|
|
5330
|
+
[Z[`${Dt}--block`]]: !r && _,
|
|
5331
|
+
[Z[`${Dt}--horizontal-${c}`]]: c,
|
|
5332
|
+
[Z[`${Dt}--vertical-${l}`]]: l
|
|
5275
5333
|
},
|
|
5276
5334
|
t
|
|
5277
5335
|
);
|
|
5278
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
5279
|
-
|
|
5336
|
+
return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement(xr, { component: null }, a.map(({ id: i, kind: d, content: s, removable: m, action: p, onClose: f }) => /* @__PURE__ */ e.createElement(
|
|
5337
|
+
Tr,
|
|
5280
5338
|
{
|
|
5281
5339
|
key: i,
|
|
5282
5340
|
classNames: {
|
|
@@ -5285,35 +5343,35 @@ const Nt = {
|
|
|
5285
5343
|
exit: Z[`toast-exit--${o}`],
|
|
5286
5344
|
exitActive: Z[`toast-exit-active--${o}`]
|
|
5287
5345
|
},
|
|
5288
|
-
timeout:
|
|
5346
|
+
timeout: Kl
|
|
5289
5347
|
},
|
|
5290
5348
|
/* @__PURE__ */ e.createElement(
|
|
5291
|
-
|
|
5349
|
+
Yl,
|
|
5292
5350
|
{
|
|
5293
5351
|
kind: d,
|
|
5294
5352
|
onClose: f,
|
|
5295
5353
|
removable: m,
|
|
5296
5354
|
action: p
|
|
5297
5355
|
},
|
|
5298
|
-
|
|
5356
|
+
s
|
|
5299
5357
|
)
|
|
5300
5358
|
))));
|
|
5301
|
-
},
|
|
5302
|
-
textarea:
|
|
5359
|
+
}, Jl = "lc-Textarea-module__textarea___g6U8F", Jt = {
|
|
5360
|
+
textarea: Jl,
|
|
5303
5361
|
"textarea--focused": "lc-Textarea-module__textarea--focused___1vtEx",
|
|
5304
5362
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___xXaGv",
|
|
5305
5363
|
"textarea--error": "lc-Textarea-module__textarea--error___0EGuq"
|
|
5306
|
-
},
|
|
5364
|
+
}, Xt = "textarea", _n = e.forwardRef(
|
|
5307
5365
|
(o, _) => {
|
|
5308
5366
|
var l = o, { className: t, error: a } = l, r = F(l, ["className", "error"]);
|
|
5309
|
-
const { disabled: c, onBlur:
|
|
5310
|
-
[
|
|
5311
|
-
[
|
|
5312
|
-
[
|
|
5367
|
+
const { disabled: c, onBlur: n, onFocus: i } = r, [d, s] = e.useState(!1), m = u(t, Jt[Xt], {
|
|
5368
|
+
[Jt[`${Xt}--disabled`]]: c,
|
|
5369
|
+
[Jt[`${Xt}--focused`]]: d,
|
|
5370
|
+
[Jt[`${Xt}--error`]]: a
|
|
5313
5371
|
}), p = (b) => {
|
|
5314
|
-
|
|
5372
|
+
s(!1), n == null || n(b);
|
|
5315
5373
|
}, f = (b) => {
|
|
5316
|
-
|
|
5374
|
+
s(!0), i == null || i(b);
|
|
5317
5375
|
};
|
|
5318
5376
|
return /* @__PURE__ */ e.createElement(I, { as: "div", className: m }, /* @__PURE__ */ e.createElement(
|
|
5319
5377
|
"textarea",
|
|
@@ -5324,24 +5382,24 @@ const Nt = {
|
|
|
5324
5382
|
})
|
|
5325
5383
|
));
|
|
5326
5384
|
}
|
|
5327
|
-
),
|
|
5385
|
+
), Ta = {
|
|
5328
5386
|
"file-upload-progress-actions": "lc-FileUploadProgressActions-module__file-upload-progress-actions___qOBr2",
|
|
5329
5387
|
"file-upload-progress-actions__close-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__close-button___Eh4um",
|
|
5330
5388
|
"file-upload-progress-actions__retry-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__retry-button___DqFEo"
|
|
5331
|
-
},
|
|
5389
|
+
}, Da = "file-upload-progress-actions", Ra = ({ status: t, onCloseButtonClick: a, onRetryButtonClick: r }) => /* @__PURE__ */ e.createElement("div", { className: Ta[`${Da}`] }, r && t === "error" && /* @__PURE__ */ e.createElement(
|
|
5332
5390
|
"button",
|
|
5333
5391
|
{
|
|
5334
5392
|
type: "button",
|
|
5335
|
-
className:
|
|
5393
|
+
className: Ta[`${Da}__retry-button`],
|
|
5336
5394
|
"aria-label": "Retry",
|
|
5337
5395
|
onClick: r
|
|
5338
5396
|
},
|
|
5339
|
-
/* @__PURE__ */ e.createElement(A, { size: "small", source:
|
|
5397
|
+
/* @__PURE__ */ e.createElement(A, { size: "small", source: e_ })
|
|
5340
5398
|
), a && t !== "success" && /* @__PURE__ */ e.createElement(
|
|
5341
5399
|
"button",
|
|
5342
5400
|
{
|
|
5343
5401
|
type: "button",
|
|
5344
|
-
className:
|
|
5402
|
+
className: Ta[`${Da}__close-button`],
|
|
5345
5403
|
"aria-label": "Close",
|
|
5346
5404
|
onClick: a
|
|
5347
5405
|
},
|
|
@@ -5357,7 +5415,7 @@ const Nt = {
|
|
|
5357
5415
|
"file-upload-progress__wrapper__header__title": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title___2IVuv",
|
|
5358
5416
|
"file-upload-progress__wrapper__header__title--success": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--success___E6DQl",
|
|
5359
5417
|
"file-upload-progress__wrapper__header__title--error": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--error___5BPpI"
|
|
5360
|
-
}, qe = "file-upload-progress",
|
|
5418
|
+
}, qe = "file-upload-progress", Ba = `${qe}__wrapper__header__title`, Xl = e.forwardRef(
|
|
5361
5419
|
({
|
|
5362
5420
|
actionsVisibility: t = "hidden",
|
|
5363
5421
|
className: a,
|
|
@@ -5366,7 +5424,7 @@ const Nt = {
|
|
|
5366
5424
|
progressValue: o,
|
|
5367
5425
|
size: l,
|
|
5368
5426
|
status: c = "normal",
|
|
5369
|
-
onCloseButtonClick:
|
|
5427
|
+
onCloseButtonClick: n,
|
|
5370
5428
|
onRetryButtonClick: i
|
|
5371
5429
|
}, d) => /* @__PURE__ */ e.createElement("div", { className: Se[qe], ref: d }, r && c !== "success" && /* @__PURE__ */ e.createElement("div", { className: Se[`${qe}__icon`] }, r), c === "success" && /* @__PURE__ */ e.createElement(
|
|
5372
5430
|
"div",
|
|
@@ -5376,7 +5434,7 @@ const Nt = {
|
|
|
5376
5434
|
Se[`${qe}__icon--success`]
|
|
5377
5435
|
)
|
|
5378
5436
|
},
|
|
5379
|
-
/* @__PURE__ */ e.createElement(A, { source:
|
|
5437
|
+
/* @__PURE__ */ e.createElement(A, { source: jt })
|
|
5380
5438
|
), /* @__PURE__ */ e.createElement(
|
|
5381
5439
|
"div",
|
|
5382
5440
|
{
|
|
@@ -5387,9 +5445,9 @@ const Nt = {
|
|
|
5387
5445
|
/* @__PURE__ */ e.createElement("div", { className: Se[`${qe}__wrapper__header`] }, _ && /* @__PURE__ */ e.createElement(
|
|
5388
5446
|
"div",
|
|
5389
5447
|
{
|
|
5390
|
-
className: u(Se[
|
|
5391
|
-
[Se[`${
|
|
5392
|
-
[Se[`${
|
|
5448
|
+
className: u(Se[Ba], {
|
|
5449
|
+
[Se[`${Ba}--success`]]: c === "success",
|
|
5450
|
+
[Se[`${Ba}--error`]]: c === "error"
|
|
5393
5451
|
})
|
|
5394
5452
|
},
|
|
5395
5453
|
/* @__PURE__ */ e.createElement(I, { size: "sm", as: "div" }, _),
|
|
@@ -5403,16 +5461,16 @@ const Nt = {
|
|
|
5403
5461
|
})
|
|
5404
5462
|
},
|
|
5405
5463
|
/* @__PURE__ */ e.createElement(
|
|
5406
|
-
|
|
5464
|
+
Ra,
|
|
5407
5465
|
{
|
|
5408
5466
|
status: c,
|
|
5409
|
-
onCloseButtonClick:
|
|
5467
|
+
onCloseButtonClick: n,
|
|
5410
5468
|
onRetryButtonClick: i
|
|
5411
5469
|
}
|
|
5412
5470
|
)
|
|
5413
5471
|
)),
|
|
5414
5472
|
c !== "success" && /* @__PURE__ */ e.createElement(
|
|
5415
|
-
|
|
5473
|
+
vl,
|
|
5416
5474
|
{
|
|
5417
5475
|
className: a,
|
|
5418
5476
|
percent: o,
|
|
@@ -5442,14 +5500,14 @@ const Nt = {
|
|
|
5442
5500
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
|
|
5443
5501
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
|
|
5444
5502
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
|
|
5445
|
-
}, ue = "upload-bar", Ye = `${ue}__wrapper__header`,
|
|
5446
|
-
|
|
5503
|
+
}, ue = "upload-bar", Ye = `${ue}__wrapper__header`, Ql = 300, jl = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__success-icon`] }, /* @__PURE__ */ e.createElement(A, { source: jt })) : t === "error" ? /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__error-icon`] }, /* @__PURE__ */ e.createElement(A, { source: t_ })) : /* @__PURE__ */ e.createElement(
|
|
5504
|
+
fl,
|
|
5447
5505
|
{
|
|
5448
5506
|
className: z[`${Ye}__loader`],
|
|
5449
5507
|
status: t,
|
|
5450
5508
|
progressValue: a
|
|
5451
5509
|
}
|
|
5452
|
-
),
|
|
5510
|
+
), on = ({
|
|
5453
5511
|
children: t,
|
|
5454
5512
|
className: a,
|
|
5455
5513
|
progressValue: r,
|
|
@@ -5457,30 +5515,30 @@ const Nt = {
|
|
|
5457
5515
|
isExpanded: o,
|
|
5458
5516
|
errorMessage: l,
|
|
5459
5517
|
status: c = "normal",
|
|
5460
|
-
icon:
|
|
5518
|
+
icon: n,
|
|
5461
5519
|
size: i,
|
|
5462
5520
|
mode: d = "multiple",
|
|
5463
|
-
onCloseButtonClick:
|
|
5521
|
+
onCloseButtonClick: s,
|
|
5464
5522
|
onRetryButtonClick: m
|
|
5465
5523
|
}) => {
|
|
5466
5524
|
const [p, f] = e.useState(o || !1), b = c === "error", E = c === "success", v = u(z[ue], a, {
|
|
5467
5525
|
[z[`${ue}--error`]]: b,
|
|
5468
5526
|
[z[`${ue}--success`]]: E
|
|
5469
|
-
}), h = !(b && (m ||
|
|
5527
|
+
}), h = !(b && (m || s)), y = () => f(!p);
|
|
5470
5528
|
return d === "single" ? /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement("div", { className: z[`${ue}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}`] }, /* @__PURE__ */ e.createElement(
|
|
5471
|
-
|
|
5529
|
+
Xl,
|
|
5472
5530
|
{
|
|
5473
5531
|
title: b && l || _,
|
|
5474
5532
|
progressValue: r,
|
|
5475
5533
|
status: c,
|
|
5476
|
-
icon:
|
|
5534
|
+
icon: n,
|
|
5477
5535
|
size: i
|
|
5478
5536
|
}
|
|
5479
5537
|
)), c === "error" && /* @__PURE__ */ e.createElement(
|
|
5480
|
-
|
|
5538
|
+
Ra,
|
|
5481
5539
|
{
|
|
5482
5540
|
status: c,
|
|
5483
|
-
onCloseButtonClick:
|
|
5541
|
+
onCloseButtonClick: s,
|
|
5484
5542
|
onRetryButtonClick: m
|
|
5485
5543
|
}
|
|
5486
5544
|
))) : /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement(
|
|
@@ -5489,26 +5547,26 @@ const Nt = {
|
|
|
5489
5547
|
className: z[`${ue}__wrapper`],
|
|
5490
5548
|
onClick: y
|
|
5491
5549
|
},
|
|
5492
|
-
/* @__PURE__ */ e.createElement("div", { className: z[`${Ye}`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__icon`] },
|
|
5550
|
+
/* @__PURE__ */ e.createElement("div", { className: z[`${Ye}`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__icon`] }, jl(c, r)), /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__title`] }, /* @__PURE__ */ e.createElement(I, { size: "sm", as: "div" }, b ? l : _)), h && /* @__PURE__ */ e.createElement(
|
|
5493
5551
|
"button",
|
|
5494
5552
|
{
|
|
5495
5553
|
className: z[`${Ye}__collapse-button`],
|
|
5496
5554
|
type: "button",
|
|
5497
5555
|
onClick: y
|
|
5498
5556
|
},
|
|
5499
|
-
p ? /* @__PURE__ */ e.createElement(A, { source:
|
|
5557
|
+
p ? /* @__PURE__ */ e.createElement(A, { source: Zt }) : /* @__PURE__ */ e.createElement(A, { source: It })
|
|
5500
5558
|
), c === "error" && /* @__PURE__ */ e.createElement("div", { className: z[`${Ye}__actions-container`] }, /* @__PURE__ */ e.createElement(
|
|
5501
|
-
|
|
5559
|
+
Ra,
|
|
5502
5560
|
{
|
|
5503
5561
|
status: c,
|
|
5504
|
-
onCloseButtonClick:
|
|
5562
|
+
onCloseButtonClick: s,
|
|
5505
5563
|
onRetryButtonClick: m
|
|
5506
5564
|
}
|
|
5507
5565
|
)))
|
|
5508
|
-
), /* @__PURE__ */ e.createElement(
|
|
5509
|
-
|
|
5566
|
+
), /* @__PURE__ */ e.createElement(xr, { component: null }, p && /* @__PURE__ */ e.createElement(
|
|
5567
|
+
Tr,
|
|
5510
5568
|
{
|
|
5511
|
-
timeout:
|
|
5569
|
+
timeout: Ql,
|
|
5512
5570
|
classNames: {
|
|
5513
5571
|
enter: z[`${ue}__files--enter`],
|
|
5514
5572
|
enterActive: z[`${ue}__files--enter-active`],
|
|
@@ -5521,79 +5579,80 @@ const Nt = {
|
|
|
5521
5579
|
)));
|
|
5522
5580
|
};
|
|
5523
5581
|
export {
|
|
5524
|
-
|
|
5525
|
-
|
|
5526
|
-
|
|
5527
|
-
|
|
5528
|
-
|
|
5529
|
-
|
|
5530
|
-
|
|
5582
|
+
Kl as ANIMATION_TIME,
|
|
5583
|
+
Nc as ActionBar,
|
|
5584
|
+
Cc as ActionCard,
|
|
5585
|
+
b_ as ActionMenu,
|
|
5586
|
+
f_ as ActionMenuItem,
|
|
5587
|
+
Sc as Alert,
|
|
5588
|
+
X_ as Avatar,
|
|
5589
|
+
eo as Badge,
|
|
5531
5590
|
W as Button,
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5591
|
+
Tc as Card,
|
|
5592
|
+
No as Checkbox,
|
|
5593
|
+
Ao as DatePicker,
|
|
5594
|
+
Dc as DatePickerRangeCalendarsWrapper,
|
|
5595
|
+
dc as DesignToken,
|
|
5596
|
+
Bc as DetailsCard,
|
|
5597
|
+
Ac as DetailsCardInfo,
|
|
5598
|
+
hc as Display,
|
|
5599
|
+
an as EmailTagInput,
|
|
5600
|
+
ia as FieldDescription,
|
|
5601
|
+
Wa as FieldError,
|
|
5602
|
+
Pc as FieldGroup,
|
|
5603
|
+
Xl as FileUploadProgress,
|
|
5604
|
+
Ra as FileUploadProgressActions,
|
|
5605
|
+
Ic as Form,
|
|
5606
|
+
Fc as FormField,
|
|
5607
|
+
Mc as FormGroup,
|
|
5549
5608
|
De as Heading,
|
|
5550
5609
|
A as Icon,
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5585
|
-
|
|
5586
|
-
|
|
5610
|
+
yc as Info,
|
|
5611
|
+
Rc as Input,
|
|
5612
|
+
Ec as Interactive,
|
|
5613
|
+
Lc as Link,
|
|
5614
|
+
Ua as Loader,
|
|
5615
|
+
Oc as Modal,
|
|
5616
|
+
qo as ModalBase,
|
|
5617
|
+
ur as ModalCloseButton,
|
|
5618
|
+
zc as ModalHeader,
|
|
5619
|
+
Hc as ModalPortal,
|
|
5620
|
+
Gc as NumericInput,
|
|
5621
|
+
Uc as Picker,
|
|
5622
|
+
Zo as PickerList,
|
|
5623
|
+
Wc as Popover,
|
|
5624
|
+
vl as ProgressBar,
|
|
5625
|
+
fl as ProgressCircle,
|
|
5626
|
+
Vc as PromoBanner,
|
|
5627
|
+
qc as PromoBannerV2,
|
|
5628
|
+
Yc as RadioButton,
|
|
5629
|
+
pc as RadiusToken,
|
|
5630
|
+
Io as RangeDatePicker,
|
|
5631
|
+
$c as Reports,
|
|
5632
|
+
Kc as SearchInput,
|
|
5633
|
+
xc as SegmentedControl,
|
|
5634
|
+
mc as ShadowToken,
|
|
5635
|
+
kc as Simple,
|
|
5636
|
+
Xc as SkeletonAvatar,
|
|
5637
|
+
Qc as SkeletonText,
|
|
5638
|
+
Jc as SkeletonWrapper,
|
|
5639
|
+
uc as SpacingToken,
|
|
5640
|
+
jc as Switch,
|
|
5641
|
+
Zc as Tab,
|
|
5642
|
+
tn as TabsList,
|
|
5643
|
+
en as TabsWrapper,
|
|
5644
|
+
Mr as Tag,
|
|
5645
|
+
Ll as TagInput,
|
|
5587
5646
|
I as Text,
|
|
5588
|
-
|
|
5589
|
-
|
|
5590
|
-
|
|
5591
|
-
|
|
5592
|
-
|
|
5593
|
-
|
|
5594
|
-
|
|
5595
|
-
|
|
5596
|
-
|
|
5597
|
-
|
|
5598
|
-
|
|
5647
|
+
_n as Textarea,
|
|
5648
|
+
Yl as Toast,
|
|
5649
|
+
rn as ToastWrapper,
|
|
5650
|
+
Ar as Tooltip,
|
|
5651
|
+
fc as TransitionDelayToken,
|
|
5652
|
+
gc as TransitionDurationToken,
|
|
5653
|
+
bc as TransitionTimingToken,
|
|
5654
|
+
on as UploadBar,
|
|
5655
|
+
wc as UserGuide,
|
|
5656
|
+
U_ as generateAvatarColor,
|
|
5657
|
+
vc as getDesignTokenWithOpacity
|
|
5599
5658
|
};
|