@livechat/design-system-react-components 1.16.4 → 1.16.5
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/Alert/Alert.stories.d.ts +1 -1
- package/dist/components/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/components/Button/Button.stories.d.ts +1 -1
- package/dist/components/Card/Card.stories.d.ts +1 -1
- package/dist/components/Checkbox/Checkbox.stories.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +4 -4
- package/dist/components/DatePicker/RangeDatePicker.stories.d.ts +2 -2
- package/dist/components/FieldGroup/FieldGroup.stories.d.ts +1 -1
- package/dist/components/FileUploadProgress/FileUploadProgress.stories.d.ts +3 -3
- package/dist/components/Form/Form.stories.d.ts +1 -1
- package/dist/components/FormField/FormField.stories.d.ts +3 -3
- package/dist/components/FormGroup/FormGroup.stories.d.ts +1 -1
- package/dist/components/Icon/Icon.stories.d.ts +1 -1
- package/dist/components/Input/Input.stories.d.ts +1 -1
- package/dist/components/Link/Link.stories.d.ts +1 -1
- package/dist/components/Loader/Loader.stories.d.ts +1 -1
- package/dist/components/Modal/Modal.stories.d.ts +5 -5
- package/dist/components/NumericInput/NumericInput.stories.d.ts +6 -6
- package/dist/components/Picker/Picker.stories.d.ts +2 -2
- package/dist/components/Popover/Popover.stories.d.ts +1 -1
- package/dist/components/Progress/ProgressBar.stories.d.ts +1 -1
- package/dist/components/Progress/ProgressCircle.stories.d.ts +1 -1
- package/dist/components/PromoBanner/PromoBanner.stories.d.ts +6 -6
- package/dist/components/RadioButton/RadioButton.stories.d.ts +1 -1
- package/dist/components/Search/Search.stories.d.ts +2 -2
- package/dist/components/SegmentedControl/SegmentedControl.stories.d.ts +1 -1
- package/dist/components/Switch/Switch.stories.d.ts +1 -1
- package/dist/components/Tab/Tab.stories.d.ts +1 -19
- package/dist/components/Tab/TabsWrapper.stories.d.ts +1 -1
- package/dist/components/Tag/Tag.stories.d.ts +1 -1
- package/dist/components/TagInput/TagInput.stories.d.ts +1 -1
- package/dist/components/Textarea/Textarea.stories.d.ts +1 -1
- package/dist/components/Toast/Toast.stories.d.ts +1 -1
- package/dist/components/Toast/ToastWrapper.stories.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -1
- package/dist/components/UploadBar/UploadBar.stories.d.ts +1 -1
- package/dist/{stories/components → docs/components/Icons}/TablerIconsShowcase.d.ts +1 -1
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +633 -644
- package/dist/preview-stats.json +622 -622
- package/dist/style.css +1 -1
- package/package.json +16 -14
- /package/dist/{stories/components → docs/components/BlockColumns}/BlockColumns.d.ts +0 -0
- /package/dist/{stories → docs}/components/ColorTokens.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Radius}/Radius.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Radius}/RadiusExamples.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Shadow}/Shadow.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Shadow}/ShadowExamples.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Spacing}/Spacing.d.ts +0 -0
- /package/dist/{stories/components → docs/components/Spacing}/SpacingExamples.d.ts +0 -0
- /package/dist/{stories → docs}/components/StoryDescriptor.d.ts +0 -0
- /package/dist/{stories → docs}/components/Transition/TransitionTable.d.ts +0 -0
- /package/dist/{stories → docs}/components/Transition/transitionDelay.d.ts +0 -0
- /package/dist/{stories → docs}/components/Transition/transitionDuration.d.ts +0 -0
- /package/dist/{stories → docs}/components/Transition/transitionTiming.d.ts +0 -0
package/dist/dsrc.es.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
var Tr = Object.defineProperty, Br = Object.defineProperties;
|
|
2
2
|
var Pr = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var At = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var Oa = Object.prototype.hasOwnProperty, Ha = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var fa = (t, a, r) => a in t ? Tr(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, k = (t, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
Oa.call(a, r) && fa(t, r, a[r]);
|
|
8
8
|
if (At)
|
|
9
9
|
for (var r of At(a))
|
|
10
|
-
|
|
10
|
+
Ha.call(a, r) && fa(t, r, a[r]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
12
|
+
}, N = (t, a) => Br(t, Pr(a));
|
|
13
13
|
var A = (t, a) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var _ in t)
|
|
16
|
-
|
|
16
|
+
Oa.call(t, _) && a.indexOf(_) < 0 && (r[_] = t[_]);
|
|
17
17
|
if (t != null && At)
|
|
18
18
|
for (var _ of At(t))
|
|
19
|
-
a.indexOf(_) < 0 &&
|
|
19
|
+
a.indexOf(_) < 0 && Ha.call(t, _) && (r[_] = t[_]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
22
|
var va = (t, a, r) => (fa(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
24
|
import { useReducer as Ar, useRef as Ir, useEffect as ut, useCallback as It, useMemo as Ft } from "react";
|
|
25
|
-
import { Check as Qt, Close as Te, ChevronLeft as
|
|
25
|
+
import { Check as Qt, Close as Te, ChevronLeft as cr, ChevronDown as Bt, Info as Ia, Warning as nr, CheckCircle as sr, Block as ir, Person as Fr, ChevronUp as Xt, DoubleArrowLeft as Mr, ChevronRight as dr, DoubleArrowRight as Rr, VisibilityOn as Lr, VisibilityOff as Or, Search as Hr, LockBlackFilled as zr, Refresh as Gr, Error as Ur } from "@livechat/design-system-icons";
|
|
26
26
|
import u from "clsx";
|
|
27
|
-
import { useFloating as jt, offset as Zt, flip as ea, autoUpdate as ta, useClick as aa, useDismiss as ra, useRole as _a, useInteractions as oa, useTransitionStyles as ur, shift as
|
|
27
|
+
import { useFloating as jt, offset as Zt, flip as ea, autoUpdate as ta, useClick as aa, useDismiss as ra, useRole as _a, useInteractions as oa, useTransitionStyles as ur, shift as Fa, arrow as Wr, useHover as Vr, safePolygon as Yr, useFocus as qr, useTransitionStatus as Kr, FloatingFocusManager as Sa, useFloatingNodeId as mr, size as Jr, useListNavigation as Qr, FloatingNode as pr, FloatingPortal as Xr, useFloatingParentNodeId as jr, FloatingTree as Zr } from "@floating-ui/react";
|
|
28
28
|
import gr from "lodash.debounce";
|
|
29
|
-
import { getContrast as
|
|
29
|
+
import { getContrast as Ma } from "polished";
|
|
30
30
|
import e_ from "react-day-picker";
|
|
31
|
-
import { subMonths as pt, differenceInCalendarMonths as
|
|
31
|
+
import { subMonths as pt, differenceInCalendarMonths as za, addMonths as Ga, isSameMonth as Da, isSameDay as Ta, isAfter as Ba, differenceInCalendarDays as br } from "date-fns";
|
|
32
32
|
import * as fr from "react-dom";
|
|
33
33
|
import { cx as t_ } from "@emotion/css";
|
|
34
34
|
import { Virtuoso as a_ } from "react-virtuoso";
|
|
35
|
-
import
|
|
35
|
+
import Ua from "lodash.escape";
|
|
36
36
|
import { TransitionGroup as vr, CSSTransition as hr } from "react-transition-group";
|
|
37
37
|
const Zl = {
|
|
38
38
|
Background: "--background",
|
|
@@ -374,7 +374,7 @@ const Zl = {
|
|
|
374
374
|
comma: ",",
|
|
375
375
|
arrowUp: "ArrowUp",
|
|
376
376
|
arrowDown: "ArrowDown"
|
|
377
|
-
}, r_ = "lc-Icon-module__icon___tw31R",
|
|
377
|
+
}, r_ = "lc-Icon-module__icon___tw31R", Wa = {
|
|
378
378
|
icon: r_,
|
|
379
379
|
"icon--primary": "lc-Icon-module__icon--primary___JJnBV",
|
|
380
380
|
"icon--subtle": "lc-Icon-module__icon--subtle___sZIzL",
|
|
@@ -429,29 +429,29 @@ const Zl = {
|
|
|
429
429
|
width: 32,
|
|
430
430
|
height: 32
|
|
431
431
|
}
|
|
432
|
-
},
|
|
433
|
-
const
|
|
432
|
+
}, Va = "icon", T = (t) => {
|
|
433
|
+
const i = t, {
|
|
434
434
|
source: a,
|
|
435
435
|
size: r = "medium",
|
|
436
436
|
kind: _,
|
|
437
437
|
disabled: o,
|
|
438
438
|
className: l,
|
|
439
439
|
customColor: c
|
|
440
|
-
} =
|
|
440
|
+
} = i, d = A(i, [
|
|
441
441
|
"source",
|
|
442
442
|
"size",
|
|
443
443
|
"kind",
|
|
444
444
|
"disabled",
|
|
445
445
|
"className",
|
|
446
446
|
"customColor"
|
|
447
|
-
]), n = e.createElement(a,
|
|
447
|
+
]), n = e.createElement(a, N(k({}, __[r]), {
|
|
448
448
|
color: c
|
|
449
|
-
})),
|
|
449
|
+
})), s = u(
|
|
450
450
|
l,
|
|
451
|
-
Va
|
|
452
|
-
_ &&
|
|
451
|
+
Wa[Va],
|
|
452
|
+
_ && Wa[`${Va}--${o ? "disabled--" : ""}${_}`]
|
|
453
453
|
);
|
|
454
|
-
return /* @__PURE__ */ e.createElement("span",
|
|
454
|
+
return /* @__PURE__ */ e.createElement("span", N(k({}, d), { className: s }), n);
|
|
455
455
|
}, Ve = {
|
|
456
456
|
"action-menu": "lc-ActionMenu-module__action-menu___K2UwW",
|
|
457
457
|
"action-menu__trigger-button": "lc-ActionMenu-module__action-menu__trigger-button___tBrz5",
|
|
@@ -473,11 +473,11 @@ const Zl = {
|
|
|
473
473
|
keepOpenOnClick: c,
|
|
474
474
|
flipOptions: d,
|
|
475
475
|
visible: n,
|
|
476
|
-
onClose:
|
|
477
|
-
onOpen:
|
|
476
|
+
onClose: s,
|
|
477
|
+
onOpen: i,
|
|
478
478
|
floatingStrategy: m,
|
|
479
479
|
selectedOptions: g
|
|
480
|
-
} = f,
|
|
480
|
+
} = f, v = A(f, [
|
|
481
481
|
"className",
|
|
482
482
|
"triggerClassName",
|
|
483
483
|
"options",
|
|
@@ -492,8 +492,8 @@ const Zl = {
|
|
|
492
492
|
"floatingStrategy",
|
|
493
493
|
"selectedOptions"
|
|
494
494
|
]);
|
|
495
|
-
const p = n !== void 0, [y,
|
|
496
|
-
x ? (
|
|
495
|
+
const p = n !== void 0, [y, h] = e.useState(l), E = e.useRef(-1), w = e.useRef(null), x = p ? n : y, $ = () => {
|
|
496
|
+
x ? (s == null || s(), !p && h(!1)) : (i == null || i(), !p && h(!0));
|
|
497
497
|
}, { x: F, y: S, strategy: R, refs: B, context: L } = jt({
|
|
498
498
|
middleware: [Zt(4), ea(d)],
|
|
499
499
|
placement: o,
|
|
@@ -543,7 +543,7 @@ const Zl = {
|
|
|
543
543
|
E.current = -1;
|
|
544
544
|
}, [x, Je]);
|
|
545
545
|
const at = (P, W) => {
|
|
546
|
-
E.current = P, W == null || W(), !p && !c && (
|
|
546
|
+
E.current = P, W == null || W(), !p && !c && (h(!1), s == null || s());
|
|
547
547
|
}, Qe = (P, W) => P.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
548
548
|
"li",
|
|
549
549
|
{
|
|
@@ -568,11 +568,11 @@ const Zl = {
|
|
|
568
568
|
})
|
|
569
569
|
},
|
|
570
570
|
P.element,
|
|
571
|
-
(g == null ? void 0 : g.includes(P.key)) && /* @__PURE__ */ e.createElement("div", { className: Ve[`${Ye}__list__item__icon`] }, /* @__PURE__ */ e.createElement(
|
|
571
|
+
(g == null ? void 0 : g.includes(P.key)) && /* @__PURE__ */ e.createElement("div", { className: Ve[`${Ye}__list__item__icon`] }, /* @__PURE__ */ e.createElement(T, { source: Qt, kind: "action-primary" }))
|
|
572
572
|
));
|
|
573
573
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
574
574
|
"div",
|
|
575
|
-
|
|
575
|
+
N(k({
|
|
576
576
|
"aria-label": "Toggle menu",
|
|
577
577
|
"data-testid": "action-menu-trigger-button",
|
|
578
578
|
ref: B.setReference
|
|
@@ -593,7 +593,7 @@ const Zl = {
|
|
|
593
593
|
}, Pe()),
|
|
594
594
|
/* @__PURE__ */ e.createElement(
|
|
595
595
|
"ul",
|
|
596
|
-
|
|
596
|
+
N(k({}, v), {
|
|
597
597
|
className: u(Ve[`${Ye}__list`], t),
|
|
598
598
|
role: "menu",
|
|
599
599
|
ref: w
|
|
@@ -642,8 +642,8 @@ const Zl = {
|
|
|
642
642
|
k({ className: u(mt[`heading-${a}`], _) }, o),
|
|
643
643
|
r
|
|
644
644
|
);
|
|
645
|
-
}, M = (
|
|
646
|
-
var
|
|
645
|
+
}, M = (s) => {
|
|
646
|
+
var i = s, {
|
|
647
647
|
as: t = "p",
|
|
648
648
|
size: a = "md",
|
|
649
649
|
caps: r = !1,
|
|
@@ -652,7 +652,7 @@ const Zl = {
|
|
|
652
652
|
strike: l = !1,
|
|
653
653
|
children: c,
|
|
654
654
|
className: d
|
|
655
|
-
} =
|
|
655
|
+
} = i, n = A(i, [
|
|
656
656
|
"as",
|
|
657
657
|
"size",
|
|
658
658
|
"caps",
|
|
@@ -720,7 +720,7 @@ const Zl = {
|
|
|
720
720
|
"loader__spinner-circle": "lc-Loader-module__loader__spinner-circle___ApBUO",
|
|
721
721
|
rotate: d_,
|
|
722
722
|
loader__label: u_
|
|
723
|
-
}, kr = "loader",
|
|
723
|
+
}, kr = "loader", Ya = `${kr}__spinner`, Ra = ({
|
|
724
724
|
primaryColor: t,
|
|
725
725
|
secondaryColor: a,
|
|
726
726
|
label: r,
|
|
@@ -729,7 +729,7 @@ const Zl = {
|
|
|
729
729
|
}) => /* @__PURE__ */ e.createElement("div", { className: u(vt[kr], _) }, /* @__PURE__ */ e.createElement(
|
|
730
730
|
"div",
|
|
731
731
|
{
|
|
732
|
-
className: u(vt[
|
|
732
|
+
className: u(vt[Ya], vt[`${Ya}--${o}`])
|
|
733
733
|
},
|
|
734
734
|
/* @__PURE__ */ e.createElement(
|
|
735
735
|
"div",
|
|
@@ -795,11 +795,11 @@ const Zl = {
|
|
|
795
795
|
icon: c = null,
|
|
796
796
|
iconPosition: d = "left",
|
|
797
797
|
loaderLabel: n,
|
|
798
|
-
className:
|
|
799
|
-
children:
|
|
798
|
+
className: s,
|
|
799
|
+
children: i,
|
|
800
800
|
href: m,
|
|
801
801
|
onClick: g
|
|
802
|
-
} = p,
|
|
802
|
+
} = p, v = A(p, [
|
|
803
803
|
"loading",
|
|
804
804
|
"disabled",
|
|
805
805
|
"type",
|
|
@@ -814,17 +814,17 @@ const Zl = {
|
|
|
814
814
|
"href",
|
|
815
815
|
"onClick"
|
|
816
816
|
]);
|
|
817
|
-
const y = t || a,
|
|
818
|
-
|
|
817
|
+
const y = t || a, h = !i && c, E = ["text", "link", "link-light"].includes(o), w = m ? "a" : "button", x = u(
|
|
818
|
+
s,
|
|
819
819
|
pe[ge],
|
|
820
820
|
pe[`${ge}--${o}`],
|
|
821
821
|
pe[`${ge}--${l}`],
|
|
822
822
|
{
|
|
823
823
|
[pe[`${ge}--loading`]]: t,
|
|
824
824
|
[pe[`${ge}--full-width`]]: _,
|
|
825
|
-
[pe[`${ge}--with-${d}-icon`]]: c && !
|
|
826
|
-
[pe[`${ge}--icon-only`]]:
|
|
827
|
-
[pe[`${ge}--icon-only--bg`]]:
|
|
825
|
+
[pe[`${ge}--with-${d}-icon`]]: c && !h && !E,
|
|
826
|
+
[pe[`${ge}--icon-only`]]: h,
|
|
827
|
+
[pe[`${ge}--icon-only--bg`]]: h && E,
|
|
828
828
|
[pe[`${ge}--disabled`]]: y
|
|
829
829
|
}
|
|
830
830
|
);
|
|
@@ -836,9 +836,9 @@ const Zl = {
|
|
|
836
836
|
"aria-disabled": y,
|
|
837
837
|
type: r,
|
|
838
838
|
disabled: y
|
|
839
|
-
}, !y && { href: m, onClick: g }),
|
|
839
|
+
}, !y && { href: m, onClick: g }), v),
|
|
840
840
|
t && /* @__PURE__ */ e.createElement(
|
|
841
|
-
|
|
841
|
+
Ra,
|
|
842
842
|
k({
|
|
843
843
|
size: "small",
|
|
844
844
|
label: n,
|
|
@@ -853,7 +853,7 @@ const Zl = {
|
|
|
853
853
|
),
|
|
854
854
|
disabled: a
|
|
855
855
|
}),
|
|
856
|
-
/* @__PURE__ */ e.createElement("div", { className: pe[`${ge}__content`] },
|
|
856
|
+
/* @__PURE__ */ e.createElement("div", { className: pe[`${ge}__content`] }, i)
|
|
857
857
|
);
|
|
858
858
|
}
|
|
859
859
|
);
|
|
@@ -875,7 +875,7 @@ function f_(t, a, r, _) {
|
|
|
875
875
|
left: a ? _ + a : _
|
|
876
876
|
};
|
|
877
877
|
}
|
|
878
|
-
const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__tooltip__arrow___Ov1YW", k_ = "lc-Tooltip-module__tooltip__interactive___0JawB",
|
|
878
|
+
const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__tooltip__arrow___Ov1YW", k_ = "lc-Tooltip-module__tooltip__interactive___0JawB", C = {
|
|
879
879
|
tooltip: v_,
|
|
880
880
|
tooltip__arrow: h_,
|
|
881
881
|
"tooltip--invert": "lc-Tooltip-module__tooltip--invert___PVjhE",
|
|
@@ -915,16 +915,16 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
915
915
|
placement: c = "bottom",
|
|
916
916
|
isVisible: d,
|
|
917
917
|
fullSpaceContent: n,
|
|
918
|
-
onClose:
|
|
919
|
-
onOpen:
|
|
918
|
+
onClose: s,
|
|
919
|
+
onOpen: i,
|
|
920
920
|
withFadeAnimation: m = !0,
|
|
921
921
|
transitionDuration: g = 200,
|
|
922
|
-
hoverOnDuration:
|
|
922
|
+
hoverOnDuration: v,
|
|
923
923
|
hoverOffDuration: b,
|
|
924
924
|
transitionDelay: f = 0,
|
|
925
925
|
hoverOnDelay: p,
|
|
926
926
|
hoverOffDelay: y,
|
|
927
|
-
triggerOnClick:
|
|
927
|
+
triggerOnClick: h = !1,
|
|
928
928
|
offsetMainAxis: E = 8,
|
|
929
929
|
referenceElement: w,
|
|
930
930
|
activationThreshold: x = 0,
|
|
@@ -937,12 +937,12 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
937
937
|
floatingStrategy: j
|
|
938
938
|
}) => {
|
|
939
939
|
const $e = d !== void 0, [de, Be] = e.useState(!1), Pe = e.useRef(null), ve = $e ? d : de, Ae = l || o, Me = u(
|
|
940
|
-
|
|
940
|
+
C[Mt],
|
|
941
941
|
a,
|
|
942
|
-
Ae &&
|
|
943
|
-
n &&
|
|
942
|
+
Ae && C[`${Mt}--${Ae}`],
|
|
943
|
+
n && C[`${Mt}--full-space`]
|
|
944
944
|
), Je = typeof _ == "function", at = (ue) => {
|
|
945
|
-
ue !== ve && (ue ?
|
|
945
|
+
ue !== ve && (ue ? i == null || i() : s == null || s(), !$e && Be(ue));
|
|
946
946
|
}, Qe = (ue) => m ? ue != null ? ue : g : 0, P = (ue) => ue != null ? ue : f, {
|
|
947
947
|
floatingStyles: W,
|
|
948
948
|
refs: K,
|
|
@@ -952,7 +952,7 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
952
952
|
} = jt({
|
|
953
953
|
middleware: [
|
|
954
954
|
Zt({ mainAxis: E }),
|
|
955
|
-
|
|
955
|
+
Fa(),
|
|
956
956
|
ea(),
|
|
957
957
|
Wr({ element: Pe })
|
|
958
958
|
],
|
|
@@ -968,11 +968,11 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
968
968
|
open: P(p),
|
|
969
969
|
close: P(y || S)
|
|
970
970
|
},
|
|
971
|
-
enabled: !
|
|
971
|
+
enabled: !h,
|
|
972
972
|
handleClose: L ? null : Yr()
|
|
973
973
|
}), sa = qr(Q), ia = ra(Q, $), da = _a(Q, { role: "tooltip" }), ua = aa(Q, F), { isMounted: ma, styles: pa } = ur(Q, {
|
|
974
974
|
duration: {
|
|
975
|
-
open: Qe(
|
|
975
|
+
open: Qe(v),
|
|
976
976
|
close: Qe(b)
|
|
977
977
|
}
|
|
978
978
|
}), { status: gt } = Kr(Q), { getReferenceProps: ga, getFloatingProps: ba } = oa([
|
|
@@ -986,7 +986,7 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
986
986
|
w && K.setReference(w);
|
|
987
987
|
}, [K.setReference, w]), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
988
988
|
"div",
|
|
989
|
-
|
|
989
|
+
N(k({
|
|
990
990
|
ref: K.setReference
|
|
991
991
|
}, ga()), {
|
|
992
992
|
className: r
|
|
@@ -994,7 +994,7 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
994
994
|
Je ? _() : _
|
|
995
995
|
), ma && /* @__PURE__ */ e.createElement(
|
|
996
996
|
"div",
|
|
997
|
-
|
|
997
|
+
N(k({
|
|
998
998
|
ref: K.setFloating,
|
|
999
999
|
style: k(k({}, W), pa),
|
|
1000
1000
|
className: Me
|
|
@@ -1006,7 +1006,7 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1006
1006
|
"div",
|
|
1007
1007
|
{
|
|
1008
1008
|
ref: Pe,
|
|
1009
|
-
className:
|
|
1009
|
+
className: C[`${Mt}__arrow`],
|
|
1010
1010
|
"aria-placement": ca,
|
|
1011
1011
|
style: k({}, f_(
|
|
1012
1012
|
R,
|
|
@@ -1022,16 +1022,16 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1022
1022
|
{
|
|
1023
1023
|
type: "button",
|
|
1024
1024
|
"aria-label": "Close tooltip",
|
|
1025
|
-
className:
|
|
1025
|
+
className: C[`${ht}-close`],
|
|
1026
1026
|
onClick: l
|
|
1027
1027
|
},
|
|
1028
|
-
/* @__PURE__ */ e.createElement(
|
|
1028
|
+
/* @__PURE__ */ e.createElement(T, { source: Te, kind: o ? yr(o) : "primary" })
|
|
1029
1029
|
), a && /* @__PURE__ */ e.createElement(
|
|
1030
1030
|
"div",
|
|
1031
1031
|
{
|
|
1032
1032
|
className: u(
|
|
1033
|
-
|
|
1034
|
-
|
|
1033
|
+
C[`${ht}-header`],
|
|
1034
|
+
C[`${ht}-header--info`]
|
|
1035
1035
|
)
|
|
1036
1036
|
},
|
|
1037
1037
|
a
|
|
@@ -1039,8 +1039,8 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1039
1039
|
"div",
|
|
1040
1040
|
{
|
|
1041
1041
|
className: u(
|
|
1042
|
-
|
|
1043
|
-
|
|
1042
|
+
C[`${ht}-text`],
|
|
1043
|
+
C[`${ht}-text--info`]
|
|
1044
1044
|
)
|
|
1045
1045
|
},
|
|
1046
1046
|
r
|
|
@@ -1054,29 +1054,29 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1054
1054
|
primaryButton: c,
|
|
1055
1055
|
secondaryButton: d
|
|
1056
1056
|
}) => {
|
|
1057
|
-
const n = (
|
|
1058
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
1057
|
+
const n = (s) => s === "invert" ? "secondary" : "high-contrast";
|
|
1058
|
+
return /* @__PURE__ */ e.createElement("div", { className: C[`${Ie}__interactive`] }, _ && /* @__PURE__ */ e.createElement(
|
|
1059
1059
|
"button",
|
|
1060
1060
|
{
|
|
1061
1061
|
type: "button",
|
|
1062
1062
|
"aria-label": "Close tooltip",
|
|
1063
|
-
className:
|
|
1063
|
+
className: C[`${Ie}-close`],
|
|
1064
1064
|
onClick: l
|
|
1065
1065
|
},
|
|
1066
|
-
/* @__PURE__ */ e.createElement(
|
|
1067
|
-
), r && /* @__PURE__ */ e.createElement("div", { className:
|
|
1066
|
+
/* @__PURE__ */ e.createElement(T, { source: Te, kind: o ? yr(o) : "primary" })
|
|
1067
|
+
), r && /* @__PURE__ */ e.createElement("div", { className: C[`${Ie}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1068
1068
|
"img",
|
|
1069
1069
|
{
|
|
1070
|
-
className:
|
|
1070
|
+
className: C[`${Ie}-image`],
|
|
1071
1071
|
src: r.src,
|
|
1072
1072
|
alt: r.alt
|
|
1073
1073
|
}
|
|
1074
|
-
)), t && /* @__PURE__ */ e.createElement("div", { className:
|
|
1074
|
+
)), t && /* @__PURE__ */ e.createElement("div", { className: C[`${Ie}-header`] }, t), /* @__PURE__ */ e.createElement("div", { className: C[`${Ie}-text`] }, a), /* @__PURE__ */ e.createElement(
|
|
1075
1075
|
"div",
|
|
1076
1076
|
{
|
|
1077
1077
|
className: u(
|
|
1078
|
-
|
|
1079
|
-
|
|
1078
|
+
C[`${Ie}-footer`],
|
|
1079
|
+
C[`${Ie}-footer--interactive`]
|
|
1080
1080
|
)
|
|
1081
1081
|
},
|
|
1082
1082
|
/* @__PURE__ */ e.createElement(
|
|
@@ -1090,8 +1090,8 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1090
1090
|
/* @__PURE__ */ e.createElement(
|
|
1091
1091
|
U,
|
|
1092
1092
|
{
|
|
1093
|
-
className: u(
|
|
1094
|
-
[
|
|
1093
|
+
className: u(C[`${Ie}-footer-secondary`], {
|
|
1094
|
+
[C[`${Ie}-footer-secondary-invert`]]: o === "invert"
|
|
1095
1095
|
}),
|
|
1096
1096
|
kind: d.kind || "text",
|
|
1097
1097
|
onClick: d.handleClick
|
|
@@ -1138,9 +1138,9 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1138
1138
|
"div",
|
|
1139
1139
|
{
|
|
1140
1140
|
className: u({
|
|
1141
|
-
[
|
|
1142
|
-
[
|
|
1143
|
-
[
|
|
1141
|
+
[C[`${Z}__overlay`]]: !0,
|
|
1142
|
+
[C[`${Z}__overlay--visible`]]: a,
|
|
1143
|
+
[C[`${Z}__overlay--slide`]]: r
|
|
1144
1144
|
}),
|
|
1145
1145
|
style: o
|
|
1146
1146
|
}
|
|
@@ -1148,9 +1148,9 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1148
1148
|
"div",
|
|
1149
1149
|
{
|
|
1150
1150
|
className: u({
|
|
1151
|
-
[
|
|
1152
|
-
[
|
|
1153
|
-
[
|
|
1151
|
+
[C[`${Z}__overlay`]]: !0,
|
|
1152
|
+
[C[`${Z}__overlay--visible`]]: a,
|
|
1153
|
+
[C[`${Z}__overlay--slide`]]: r
|
|
1154
1154
|
}),
|
|
1155
1155
|
style: c
|
|
1156
1156
|
}
|
|
@@ -1158,9 +1158,9 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1158
1158
|
"div",
|
|
1159
1159
|
{
|
|
1160
1160
|
className: u({
|
|
1161
|
-
[
|
|
1162
|
-
[
|
|
1163
|
-
[
|
|
1161
|
+
[C[`${Z}__overlay`]]: !0,
|
|
1162
|
+
[C[`${Z}__overlay--visible`]]: a,
|
|
1163
|
+
[C[`${Z}__overlay--slide`]]: r
|
|
1164
1164
|
}),
|
|
1165
1165
|
style: l
|
|
1166
1166
|
}
|
|
@@ -1168,9 +1168,9 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1168
1168
|
"div",
|
|
1169
1169
|
{
|
|
1170
1170
|
className: u({
|
|
1171
|
-
[
|
|
1172
|
-
[
|
|
1173
|
-
[
|
|
1171
|
+
[C[`${Z}__overlay`]]: !0,
|
|
1172
|
+
[C[`${Z}__overlay--visible`]]: a,
|
|
1173
|
+
[C[`${Z}__overlay--slide`]]: r
|
|
1174
1174
|
}),
|
|
1175
1175
|
style: d
|
|
1176
1176
|
}
|
|
@@ -1178,9 +1178,9 @@ const v_ = "lc-Tooltip-module__tooltip___QOOAr", h_ = "lc-Tooltip-module__toolti
|
|
|
1178
1178
|
"div",
|
|
1179
1179
|
{
|
|
1180
1180
|
className: u({
|
|
1181
|
-
[
|
|
1182
|
-
[
|
|
1183
|
-
[
|
|
1181
|
+
[C[`${Z}__overlay`]]: !0,
|
|
1182
|
+
[C[`${Z}__overlay--visible`]]: a,
|
|
1183
|
+
[C[`${Z}__overlay--slide`]]: r
|
|
1184
1184
|
}),
|
|
1185
1185
|
style: n
|
|
1186
1186
|
}
|
|
@@ -1193,7 +1193,7 @@ class E_ {
|
|
|
1193
1193
|
this.element = a, this.padding = r;
|
|
1194
1194
|
}
|
|
1195
1195
|
addPadding(a) {
|
|
1196
|
-
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 = _, d = r, n = c + l,
|
|
1196
|
+
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 = _, d = r, n = c + l, s = d + o;
|
|
1197
1197
|
return {
|
|
1198
1198
|
x: r,
|
|
1199
1199
|
y: _,
|
|
@@ -1202,7 +1202,7 @@ class E_ {
|
|
|
1202
1202
|
top: c,
|
|
1203
1203
|
left: d,
|
|
1204
1204
|
bottom: n,
|
|
1205
|
-
right:
|
|
1205
|
+
right: s
|
|
1206
1206
|
};
|
|
1207
1207
|
}
|
|
1208
1208
|
getBoundingClientRect() {
|
|
@@ -1215,7 +1215,7 @@ class E_ {
|
|
|
1215
1215
|
return this.getBoundingClientRect().height;
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
|
-
const
|
|
1218
|
+
const qa = 8, Ka = "guide-tooltip", Ja = (t, a) => new E_(t, a), dc = (t) => {
|
|
1219
1219
|
const {
|
|
1220
1220
|
className: a,
|
|
1221
1221
|
parentElementName: r,
|
|
@@ -1223,13 +1223,13 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1223
1223
|
shouldSlide: o = !0
|
|
1224
1224
|
} = t, [l, c] = e.useState(
|
|
1225
1225
|
null
|
|
1226
|
-
), [d, n] = e.useState(null), [
|
|
1226
|
+
), [d, n] = e.useState(null), [s, i] = e.useState(o), m = () => {
|
|
1227
1227
|
l && (n(
|
|
1228
|
-
|
|
1228
|
+
Ja(
|
|
1229
1229
|
l,
|
|
1230
|
-
|
|
1230
|
+
qa
|
|
1231
1231
|
).getBoundingClientRect()
|
|
1232
|
-
),
|
|
1232
|
+
), i(!1));
|
|
1233
1233
|
};
|
|
1234
1234
|
return e.useEffect(() => {
|
|
1235
1235
|
if (l !== null)
|
|
@@ -1243,30 +1243,30 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
}, [r]), e.useEffect(() => {
|
|
1245
1245
|
l && n(
|
|
1246
|
-
|
|
1246
|
+
Ja(
|
|
1247
1247
|
l,
|
|
1248
|
-
|
|
1248
|
+
qa
|
|
1249
1249
|
).getBoundingClientRect()
|
|
1250
|
-
),
|
|
1250
|
+
), i(!0);
|
|
1251
1251
|
}, [l]), l && _ ? /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
1252
1252
|
y_,
|
|
1253
1253
|
{
|
|
1254
1254
|
gap: d,
|
|
1255
1255
|
isVisible: _,
|
|
1256
|
-
slide:
|
|
1256
|
+
slide: s,
|
|
1257
1257
|
disablePointerEvents: !0
|
|
1258
1258
|
}
|
|
1259
1259
|
), /* @__PURE__ */ e.createElement(
|
|
1260
1260
|
Er,
|
|
1261
|
-
|
|
1261
|
+
N(k({}, t), {
|
|
1262
1262
|
referenceElement: {
|
|
1263
1263
|
getBoundingClientRect: () => d,
|
|
1264
1264
|
contextElement: l
|
|
1265
1265
|
},
|
|
1266
1266
|
arrowOffsetY: 25,
|
|
1267
1267
|
className: u({
|
|
1268
|
-
[
|
|
1269
|
-
[
|
|
1268
|
+
[C[Ka]]: !0,
|
|
1269
|
+
[C[`${Ka}--slide`]]: s,
|
|
1270
1270
|
className: a
|
|
1271
1271
|
})
|
|
1272
1272
|
}),
|
|
@@ -1276,15 +1276,15 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1276
1276
|
title: t,
|
|
1277
1277
|
description: a,
|
|
1278
1278
|
children: r
|
|
1279
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
1279
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: C[kt] }, /* @__PURE__ */ e.createElement("div", { className: C[`${kt}__heading`] }, /* @__PURE__ */ e.createElement(M, { as: "div", className: C[`${kt}__heading__title`] }, t), /* @__PURE__ */ e.createElement(
|
|
1280
1280
|
M,
|
|
1281
1281
|
{
|
|
1282
1282
|
as: "div",
|
|
1283
1283
|
size: "xs",
|
|
1284
|
-
className:
|
|
1284
|
+
className: C[`${kt}__heading__description`]
|
|
1285
1285
|
},
|
|
1286
1286
|
a
|
|
1287
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
1287
|
+
)), /* @__PURE__ */ e.createElement("div", { className: C[`${kt}__content`] }, /* @__PURE__ */ e.createElement(M, { as: "div" }, r))), se = {
|
|
1288
1288
|
"action-bar": "lc-ActionBar-module__action-bar___TJitF",
|
|
1289
1289
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___uhoQA",
|
|
1290
1290
|
"action-bar__items--scroll": "lc-ActionBar-module__action-bar__items--scroll___f--dN",
|
|
@@ -1357,24 +1357,24 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1357
1357
|
activeOptionKey: o,
|
|
1358
1358
|
vertical: l
|
|
1359
1359
|
}) => {
|
|
1360
|
-
const [c, d] = e.useState([]), n = r === "scroll",
|
|
1360
|
+
const [c, d] = e.useState([]), n = r === "scroll", s = u(
|
|
1361
1361
|
se[_t],
|
|
1362
1362
|
t,
|
|
1363
1363
|
l && se[`${_t}--vertical`]
|
|
1364
|
-
),
|
|
1364
|
+
), i = `${_t}__menu-wrapper`, m = {
|
|
1365
1365
|
root: document.querySelector(`${a}`),
|
|
1366
1366
|
threshold: 1
|
|
1367
|
-
}, g = !n && c.length !== 0,
|
|
1367
|
+
}, g = !n && c.length !== 0, v = (p) => {
|
|
1368
1368
|
p.map((y) => {
|
|
1369
|
-
const
|
|
1369
|
+
const h = c.includes(y.target.id);
|
|
1370
1370
|
if (!y.isIntersecting) {
|
|
1371
|
-
y.target.setAttribute("tabindex", "-1"),
|
|
1371
|
+
y.target.setAttribute("tabindex", "-1"), h || d((E) => [
|
|
1372
1372
|
...E,
|
|
1373
1373
|
y.target.id
|
|
1374
1374
|
]);
|
|
1375
1375
|
return;
|
|
1376
1376
|
}
|
|
1377
|
-
y.target.removeAttribute("tabindex"),
|
|
1377
|
+
y.target.removeAttribute("tabindex"), h && d(c.filter((E) => E !== y.target.id));
|
|
1378
1378
|
});
|
|
1379
1379
|
};
|
|
1380
1380
|
e.useEffect(() => {
|
|
@@ -1382,21 +1382,21 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1382
1382
|
if (!n && p) {
|
|
1383
1383
|
const y = document.querySelectorAll(
|
|
1384
1384
|
`.${se[`${_t}__items__button`]}`
|
|
1385
|
-
),
|
|
1386
|
-
|
|
1385
|
+
), h = new IntersectionObserver(
|
|
1386
|
+
v,
|
|
1387
1387
|
m
|
|
1388
1388
|
);
|
|
1389
|
-
return y.forEach((E) =>
|
|
1389
|
+
return y.forEach((E) => h.observe(E)), () => h.disconnect();
|
|
1390
1390
|
}
|
|
1391
1391
|
}, [c, n]);
|
|
1392
1392
|
const b = (p) => _.filter(
|
|
1393
|
-
(
|
|
1394
|
-
).map((
|
|
1395
|
-
key:
|
|
1396
|
-
element: /* @__PURE__ */ e.createElement(n_, { leftNode:
|
|
1397
|
-
onClick:
|
|
1393
|
+
(h) => p.find((E) => E === h.key)
|
|
1394
|
+
).map((h) => ({
|
|
1395
|
+
key: h.key,
|
|
1396
|
+
element: /* @__PURE__ */ e.createElement(n_, { leftNode: h.element }, h.label),
|
|
1397
|
+
onClick: h.onClick
|
|
1398
1398
|
})), f = _.filter((p) => c.find((y) => y === p.key)).find((p) => p.key === o);
|
|
1399
|
-
return /* @__PURE__ */ e.createElement("div", { id: a, className:
|
|
1399
|
+
return /* @__PURE__ */ e.createElement("div", { id: a, className: s }, /* @__PURE__ */ e.createElement(
|
|
1400
1400
|
"div",
|
|
1401
1401
|
{
|
|
1402
1402
|
className: u(se[`${_t}__items`], {
|
|
@@ -1412,26 +1412,26 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1412
1412
|
vertical: l
|
|
1413
1413
|
}
|
|
1414
1414
|
))
|
|
1415
|
-
), g && /* @__PURE__ */ e.createElement("div", { className: se[
|
|
1415
|
+
), g && /* @__PURE__ */ e.createElement("div", { className: se[i] }, /* @__PURE__ */ e.createElement(
|
|
1416
1416
|
o_,
|
|
1417
1417
|
{
|
|
1418
1418
|
placement: l ? "left-end" : "bottom-end",
|
|
1419
1419
|
options: b(c),
|
|
1420
1420
|
triggerClassName: u(
|
|
1421
|
-
l && se[`${
|
|
1421
|
+
l && se[`${i}__trigger-vertical`]
|
|
1422
1422
|
),
|
|
1423
1423
|
triggerRenderer: /* @__PURE__ */ e.createElement(
|
|
1424
1424
|
U,
|
|
1425
1425
|
{
|
|
1426
1426
|
className: u(
|
|
1427
|
-
se[`${
|
|
1428
|
-
f && se[`${
|
|
1427
|
+
se[`${i}__button`],
|
|
1428
|
+
f && se[`${i}__button--active`]
|
|
1429
1429
|
),
|
|
1430
1430
|
kind: "plain",
|
|
1431
1431
|
icon: /* @__PURE__ */ e.createElement(
|
|
1432
|
-
|
|
1432
|
+
T,
|
|
1433
1433
|
{
|
|
1434
|
-
source: l ?
|
|
1434
|
+
source: l ? cr : Bt,
|
|
1435
1435
|
kind: "primary"
|
|
1436
1436
|
}
|
|
1437
1437
|
),
|
|
@@ -1441,7 +1441,7 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1441
1441
|
"div",
|
|
1442
1442
|
{
|
|
1443
1443
|
className: u(
|
|
1444
|
-
se[`${
|
|
1444
|
+
se[`${i}__button__with-item`]
|
|
1445
1445
|
)
|
|
1446
1446
|
},
|
|
1447
1447
|
f.element
|
|
@@ -1449,10 +1449,10 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1449
1449
|
)
|
|
1450
1450
|
}
|
|
1451
1451
|
)));
|
|
1452
|
-
}, w_ = "lc-Alert-module__alert___HBTns",
|
|
1452
|
+
}, w_ = "lc-Alert-module__alert___HBTns", N_ = "lc-Alert-module__alert__icon___8TaAH", C_ = "lc-Alert-module__alert__content___9nZdf", x_ = "lc-Alert-module__alert__content__wrapper___aLBkP", S_ = "lc-Alert-module__alert__content__wrapper__text___HDMbR", D_ = "lc-Alert-module__alert__content__wrapper__cta___9L-oE", T_ = "lc-Alert-module__alert__content__wrapper__cta__link___D9Igz", ke = {
|
|
1453
1453
|
alert: w_,
|
|
1454
|
-
alert__icon:
|
|
1455
|
-
alert__content:
|
|
1454
|
+
alert__icon: N_,
|
|
1455
|
+
alert__content: C_,
|
|
1456
1456
|
alert__content__wrapper: x_,
|
|
1457
1457
|
alert__content__wrapper__text: S_,
|
|
1458
1458
|
alert__content__wrapper__cta: D_,
|
|
@@ -1467,19 +1467,19 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1467
1467
|
"alert--error": "lc-Alert-module__alert--error___DKPo0"
|
|
1468
1468
|
}, B_ = {
|
|
1469
1469
|
info: {
|
|
1470
|
-
source:
|
|
1470
|
+
source: Ia,
|
|
1471
1471
|
kind: "link"
|
|
1472
1472
|
},
|
|
1473
1473
|
warning: {
|
|
1474
|
-
source:
|
|
1474
|
+
source: nr,
|
|
1475
1475
|
kind: "warning"
|
|
1476
1476
|
},
|
|
1477
1477
|
success: {
|
|
1478
|
-
source:
|
|
1478
|
+
source: sr,
|
|
1479
1479
|
kind: "success"
|
|
1480
1480
|
},
|
|
1481
1481
|
error: {
|
|
1482
|
-
source:
|
|
1482
|
+
source: ir,
|
|
1483
1483
|
kind: "error"
|
|
1484
1484
|
}
|
|
1485
1485
|
}, ye = "alert", pc = (d) => {
|
|
@@ -1498,22 +1498,22 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1498
1498
|
"kind",
|
|
1499
1499
|
"onClose"
|
|
1500
1500
|
]);
|
|
1501
|
-
const
|
|
1501
|
+
const s = e.useRef(null), [i, m] = e.useState(null), g = u(
|
|
1502
1502
|
ke[ye],
|
|
1503
1503
|
ke[`${ye}--${o}`],
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1504
|
+
i === "large" && ke[`${ye}--large`],
|
|
1505
|
+
i === "medium" && ke[`${ye}--medium`],
|
|
1506
|
+
i === "small" && ke[`${ye}--small`],
|
|
1507
1507
|
a
|
|
1508
1508
|
);
|
|
1509
1509
|
return e.useEffect(() => {
|
|
1510
|
-
const
|
|
1511
|
-
|
|
1510
|
+
const v = () => s.current && s.current.offsetWidth <= 400 ? m("small") : s.current && s.current.offsetWidth > 400 && s.current.offsetWidth <= 800 ? m("medium") : m("large"), b = gr(() => {
|
|
1511
|
+
v();
|
|
1512
1512
|
}, 500);
|
|
1513
|
-
return window.addEventListener("resize", b),
|
|
1514
|
-
}), /* @__PURE__ */ e.createElement("div", k({ ref:
|
|
1515
|
-
|
|
1516
|
-
|
|
1513
|
+
return window.addEventListener("resize", b), v(), () => window.removeEventListener("resize", b);
|
|
1514
|
+
}), /* @__PURE__ */ e.createElement("div", k({ ref: s, className: g }, c), /* @__PURE__ */ e.createElement("div", { className: ke[`${ye}__content`] }, /* @__PURE__ */ e.createElement("div", { className: ke[`${ye}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1515
|
+
T,
|
|
1516
|
+
N(k({}, B_[o]), {
|
|
1517
1517
|
size: "large",
|
|
1518
1518
|
className: ke[`${ye}__icon`]
|
|
1519
1519
|
})
|
|
@@ -1540,11 +1540,11 @@ const Ka = 8, Ja = "guide-tooltip", Qa = (t, a) => new E_(t, a), dc = (t) => {
|
|
|
1540
1540
|
className: ke[`${ye}__close-icon`],
|
|
1541
1541
|
size: "compact",
|
|
1542
1542
|
kind: "plain",
|
|
1543
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
1543
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: Te }),
|
|
1544
1544
|
onClick: l
|
|
1545
1545
|
}
|
|
1546
1546
|
));
|
|
1547
|
-
},
|
|
1547
|
+
}, Qa = Array.from(
|
|
1548
1548
|
{ length: 10 },
|
|
1549
1549
|
(t, a) => `--surface-avatar-${a + 1}`
|
|
1550
1550
|
);
|
|
@@ -1552,7 +1552,7 @@ function P_(t) {
|
|
|
1552
1552
|
if (!t)
|
|
1553
1553
|
return;
|
|
1554
1554
|
const a = t.split("").reduce((r, _) => r + _.charCodeAt(0), 0);
|
|
1555
|
-
return `var(${
|
|
1555
|
+
return `var(${Qa[a % Qa.length]})`;
|
|
1556
1556
|
}
|
|
1557
1557
|
function A_(t = "", a = 2) {
|
|
1558
1558
|
const r = t.trim().split(/\s+/), _ = r.map((l) => [...l][0]);
|
|
@@ -1571,7 +1571,7 @@ function I_(t) {
|
|
|
1571
1571
|
const r = t.slice(4, -1);
|
|
1572
1572
|
a = window.getComputedStyle(document.documentElement).getPropertyValue(r).trim();
|
|
1573
1573
|
}
|
|
1574
|
-
return a &&
|
|
1574
|
+
return a && Ma(a, "#FFFFFF") > 3 ? "var(--color-white)" : "var(--color-black)";
|
|
1575
1575
|
}
|
|
1576
1576
|
const F_ = "lc-Avatar-module__avatar___1zTCE", M_ = "lc-Avatar-module__avatar__status___nX2Ls", R_ = "lc-Avatar-module__avatar__rim___RCQ8Q", L_ = "lc-Avatar-module__avatar__image___YqfqE", be = {
|
|
1577
1577
|
avatar: F_,
|
|
@@ -1632,8 +1632,8 @@ const F_ = "lc-Avatar-module__avatar___1zTCE", M_ = "lc-Avatar-module__avatar__s
|
|
|
1632
1632
|
status: c,
|
|
1633
1633
|
text: d,
|
|
1634
1634
|
type: n,
|
|
1635
|
-
withRim:
|
|
1636
|
-
} = g,
|
|
1635
|
+
withRim: s = !1
|
|
1636
|
+
} = g, i = A(g, [
|
|
1637
1637
|
"alt",
|
|
1638
1638
|
"className",
|
|
1639
1639
|
"color",
|
|
@@ -1645,11 +1645,11 @@ const F_ = "lc-Avatar-module__avatar___1zTCE", M_ = "lc-Avatar-module__avatar__s
|
|
|
1645
1645
|
"type",
|
|
1646
1646
|
"withRim"
|
|
1647
1647
|
]);
|
|
1648
|
-
const
|
|
1648
|
+
const v = n === "image" && !l, [b, f] = e.useState(v), p = n === "image" && !!l && !b, y = n === "text", h = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, E = A_(d, h), w = r || P_(d), x = w ? I_(w) : void 0, $ = y ? { backgroundColor: w } : {}, F = u(k({
|
|
1649
1649
|
[be[X]]: !0,
|
|
1650
1650
|
[be[`${X}--${_}`]]: !0,
|
|
1651
1651
|
[be[`${X}--${o}`]]: !0,
|
|
1652
|
-
[be[`${X}--with-rim`]]:
|
|
1652
|
+
[be[`${X}--with-rim`]]: s
|
|
1653
1653
|
}, a ? { [`${a}`]: a } : {})), S = u(
|
|
1654
1654
|
be[`${X}__status`],
|
|
1655
1655
|
be[`${X}__status--${_}`],
|
|
@@ -1663,8 +1663,8 @@ const F_ = "lc-Avatar-module__avatar___1zTCE", M_ = "lc-Avatar-module__avatar__s
|
|
|
1663
1663
|
be[`${X}__rim--${o}`]
|
|
1664
1664
|
), L = e.useCallback(() => f(!0), []);
|
|
1665
1665
|
return e.useEffect(() => {
|
|
1666
|
-
f(
|
|
1667
|
-
}, [
|
|
1666
|
+
f(v);
|
|
1667
|
+
}, [v]), /* @__PURE__ */ e.createElement("div", k({ className: F, style: $ }, i), s && /* @__PURE__ */ e.createElement(
|
|
1668
1668
|
"div",
|
|
1669
1669
|
{
|
|
1670
1670
|
"data-testid": `${X}__rim`,
|
|
@@ -1685,7 +1685,7 @@ const F_ = "lc-Avatar-module__avatar___1zTCE", M_ = "lc-Avatar-module__avatar__s
|
|
|
1685
1685
|
onError: L
|
|
1686
1686
|
}
|
|
1687
1687
|
), y && /* @__PURE__ */ e.createElement("span", { style: { color: x } }, E), b && /* @__PURE__ */ e.createElement(
|
|
1688
|
-
|
|
1688
|
+
T,
|
|
1689
1689
|
{
|
|
1690
1690
|
"data-testid": `${X}__icon`,
|
|
1691
1691
|
className: R,
|
|
@@ -1721,17 +1721,17 @@ const z_ = "lc-Badge-module__badge___GhLnu", G_ = "lc-Badge-module__badge__dot__
|
|
|
1721
1721
|
"size",
|
|
1722
1722
|
"type"
|
|
1723
1723
|
]);
|
|
1724
|
-
const
|
|
1724
|
+
const s = u(
|
|
1725
1725
|
t,
|
|
1726
1726
|
Lt[Ot],
|
|
1727
1727
|
Lt[`${Ot}--${_}`],
|
|
1728
1728
|
Lt[`${Ot}--${o}`]
|
|
1729
|
-
),
|
|
1729
|
+
), i = {
|
|
1730
1730
|
counter: H_(a, r),
|
|
1731
1731
|
alert: "!",
|
|
1732
1732
|
dot: /* @__PURE__ */ e.createElement("span", { className: Lt[`${Ot}__dot`] })
|
|
1733
1733
|
}[l];
|
|
1734
|
-
return /* @__PURE__ */ e.createElement("span", k({ className:
|
|
1734
|
+
return /* @__PURE__ */ e.createElement("span", k({ className: s }, c), i);
|
|
1735
1735
|
};
|
|
1736
1736
|
function W_() {
|
|
1737
1737
|
}
|
|
@@ -1751,27 +1751,27 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1751
1751
|
fullWidth: l = !1,
|
|
1752
1752
|
onButtonClick: c = W_
|
|
1753
1753
|
}) => {
|
|
1754
|
-
const d = u(Ht[Y_], r), [n,
|
|
1754
|
+
const d = u(Ht[Y_], r), [n, s] = e.useState(() => _), i = typeof o == "string";
|
|
1755
1755
|
e.useEffect(() => {
|
|
1756
|
-
|
|
1756
|
+
i && s(o);
|
|
1757
1757
|
}, [o]);
|
|
1758
|
-
const m = (
|
|
1759
|
-
|
|
1760
|
-
}, g = a.map(({ id:
|
|
1761
|
-
const
|
|
1758
|
+
const m = (v, b) => {
|
|
1759
|
+
i || s(v), c(v, b);
|
|
1760
|
+
}, g = a.map(({ id: v, label: b, loading: f, disabled: p, icon: y }) => {
|
|
1761
|
+
const h = v === n, E = h ? Ht["btn--active"] : "", w = h ? !1 : f;
|
|
1762
1762
|
return /* @__PURE__ */ e.createElement(
|
|
1763
1763
|
U,
|
|
1764
1764
|
{
|
|
1765
|
-
key:
|
|
1765
|
+
key: v,
|
|
1766
1766
|
fullWidth: l,
|
|
1767
1767
|
loading: w,
|
|
1768
1768
|
disabled: p,
|
|
1769
|
-
"aria-pressed":
|
|
1769
|
+
"aria-pressed": h,
|
|
1770
1770
|
kind: "secondary",
|
|
1771
1771
|
icon: y,
|
|
1772
1772
|
className: u(Ht.btn, Ht[`btn--${t}`], E),
|
|
1773
1773
|
onClick: (x) => {
|
|
1774
|
-
m(
|
|
1774
|
+
m(v, x);
|
|
1775
1775
|
}
|
|
1776
1776
|
},
|
|
1777
1777
|
b
|
|
@@ -1792,8 +1792,8 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1792
1792
|
card__actions__line: to,
|
|
1793
1793
|
card__actions__buttons: ao,
|
|
1794
1794
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___lz4h-"
|
|
1795
|
-
}, Dt = "card", Jt = `${Dt}__header`, ha = `${Jt}__heading`, zt = `${Dt}__actions`, ro = `${Jt}__no-image`, bc = (
|
|
1796
|
-
var
|
|
1795
|
+
}, Dt = "card", Jt = `${Dt}__header`, ha = `${Jt}__heading`, zt = `${Dt}__actions`, ro = `${Jt}__no-image`, bc = (s) => {
|
|
1796
|
+
var i = s, {
|
|
1797
1797
|
alt: t,
|
|
1798
1798
|
buttonsOptions: a = [],
|
|
1799
1799
|
children: r,
|
|
@@ -1802,7 +1802,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1802
1802
|
expandableContent: l,
|
|
1803
1803
|
src: c,
|
|
1804
1804
|
title: d
|
|
1805
|
-
} =
|
|
1805
|
+
} = i, n = A(i, [
|
|
1806
1806
|
"alt",
|
|
1807
1807
|
"buttonsOptions",
|
|
1808
1808
|
"children",
|
|
@@ -1812,8 +1812,8 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1812
1812
|
"src",
|
|
1813
1813
|
"title"
|
|
1814
1814
|
]);
|
|
1815
|
-
const [m, g] = e.useState(!1),
|
|
1816
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: u(fe[Dt], _) }, n),
|
|
1815
|
+
const [m, g] = e.useState(!1), v = m ? Xt : Bt, b = m ? "Hide" : "Show more", f = (a == null ? void 0 : a.length) > 0, p = !!l, y = f || p, h = d, E = c, w = E ? "" : fe[ro];
|
|
1816
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(fe[Dt], _) }, n), h && /* @__PURE__ */ e.createElement("div", { className: u(fe[Jt], w) }, E && /* @__PURE__ */ e.createElement(
|
|
1817
1817
|
"img",
|
|
1818
1818
|
{
|
|
1819
1819
|
alt: t,
|
|
@@ -1836,7 +1836,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1836
1836
|
className: fe[`${zt}__buttons-expander`],
|
|
1837
1837
|
kind: "link",
|
|
1838
1838
|
iconPosition: "right",
|
|
1839
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
1839
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: v }),
|
|
1840
1840
|
onClick: () => g(!m)
|
|
1841
1841
|
},
|
|
1842
1842
|
b
|
|
@@ -1852,7 +1852,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1852
1852
|
"className"
|
|
1853
1853
|
]);
|
|
1854
1854
|
const l = u(_o[oo], a);
|
|
1855
|
-
return /* @__PURE__ */ e.createElement(M,
|
|
1855
|
+
return /* @__PURE__ */ e.createElement(M, N(k({ as: "span", size: "sm" }, r), { className: l }), t);
|
|
1856
1856
|
}, lo = "lc-Checkbox-module__checkbox___G7nTf", co = "lc-Checkbox-module__checkbox__label___-o01x", no = "lc-Checkbox-module__checkbox__text___P2SIq", so = "lc-Checkbox-module__checkbox__input___YLbVF", io = "lc-Checkbox-module__checkbox__checkmark___16pfY", uo = "lc-Checkbox-module__checkbox__square___MHUyd", mo = "lc-Checkbox-module__checkbox__helper___YSJ-n", je = {
|
|
1857
1857
|
checkbox: lo,
|
|
1858
1858
|
checkbox__label: co,
|
|
@@ -1876,7 +1876,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1876
1876
|
},
|
|
1877
1877
|
/* @__PURE__ */ e.createElement("label", { className: je[`${Ze}__label`] }, /* @__PURE__ */ e.createElement(
|
|
1878
1878
|
"input",
|
|
1879
|
-
|
|
1879
|
+
N(k({}, l), {
|
|
1880
1880
|
ref: c,
|
|
1881
1881
|
checked: t,
|
|
1882
1882
|
disabled: a,
|
|
@@ -1887,7 +1887,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1887
1887
|
_ && /* @__PURE__ */ e.createElement(la, { className: je[`${Ze}__helper`] }, _)
|
|
1888
1888
|
);
|
|
1889
1889
|
}
|
|
1890
|
-
),
|
|
1890
|
+
), D = {
|
|
1891
1891
|
"date-picker": "lc-DatePicker-module__date-picker___9AqJ2",
|
|
1892
1892
|
"date-picker--interaction-disabled": "lc-DatePicker-module__date-picker--interaction-disabled___-zn8o",
|
|
1893
1893
|
"date-picker__day": "lc-DatePicker-module__date-picker__day___ZTSw9",
|
|
@@ -1922,7 +1922,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1922
1922
|
"date-picker--range__select-input": "lc-DatePicker-module__date-picker--range__select-input___6pyj3",
|
|
1923
1923
|
"date-picker--range__calendars-wrapper": "lc-DatePicker-module__date-picker--range__calendars-wrapper___8nWaW",
|
|
1924
1924
|
"date-picker__navbar-buttons-wrapper": "lc-DatePicker-module__date-picker__navbar-buttons-wrapper___Hnksb"
|
|
1925
|
-
},
|
|
1925
|
+
}, Xa = "date-picker", go = (t) => {
|
|
1926
1926
|
const {
|
|
1927
1927
|
onPreviousClick: a,
|
|
1928
1928
|
onMonthChange: r,
|
|
@@ -1932,35 +1932,35 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1932
1932
|
className: c,
|
|
1933
1933
|
classNames: d,
|
|
1934
1934
|
numberOfMonths: n,
|
|
1935
|
-
month:
|
|
1936
|
-
fromMonth:
|
|
1935
|
+
month: s,
|
|
1936
|
+
fromMonth: i,
|
|
1937
1937
|
toMonth: m
|
|
1938
1938
|
} = t, g = () => {
|
|
1939
1939
|
typeof a == "function" && a();
|
|
1940
|
-
},
|
|
1940
|
+
}, v = () => {
|
|
1941
1941
|
typeof _ == "function" && _();
|
|
1942
1942
|
}, b = () => {
|
|
1943
|
-
if (!
|
|
1944
|
-
const
|
|
1945
|
-
return r(
|
|
1943
|
+
if (!i) {
|
|
1944
|
+
const h = pt(s, 12);
|
|
1945
|
+
return r(h);
|
|
1946
1946
|
}
|
|
1947
|
-
const p = Math.abs(
|
|
1948
|
-
|
|
1947
|
+
const p = Math.abs(za(s, i)), y = pt(
|
|
1948
|
+
s,
|
|
1949
1949
|
!Number.isNaN(p) && p > 12 ? 12 : p
|
|
1950
1950
|
);
|
|
1951
1951
|
return r(y);
|
|
1952
1952
|
}, f = () => {
|
|
1953
1953
|
if (!m) {
|
|
1954
|
-
const
|
|
1955
|
-
return r(
|
|
1954
|
+
const h = Ga(s, 12);
|
|
1955
|
+
return r(h);
|
|
1956
1956
|
}
|
|
1957
|
-
const p = Math.abs(
|
|
1958
|
-
|
|
1957
|
+
const p = Math.abs(za(m, s)), y = Ga(
|
|
1958
|
+
s,
|
|
1959
1959
|
!Number.isNaN(p) && p > 12 ? 12 : p
|
|
1960
1960
|
);
|
|
1961
|
-
return n === 2 &&
|
|
1961
|
+
return n === 2 && Da(y, m) ? r(pt(y, 1)) : r(y);
|
|
1962
1962
|
};
|
|
1963
|
-
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement("div", { className:
|
|
1963
|
+
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement("div", { className: D[`${Xa}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1964
1964
|
"button",
|
|
1965
1965
|
{
|
|
1966
1966
|
"data-testid": "date-picker-prev-year-button",
|
|
@@ -1970,7 +1970,7 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1970
1970
|
}),
|
|
1971
1971
|
onClick: b
|
|
1972
1972
|
},
|
|
1973
|
-
/* @__PURE__ */ e.createElement(
|
|
1973
|
+
/* @__PURE__ */ e.createElement(T, { source: Mr, kind: "subtle" })
|
|
1974
1974
|
), /* @__PURE__ */ e.createElement(
|
|
1975
1975
|
"button",
|
|
1976
1976
|
{
|
|
@@ -1981,8 +1981,8 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1981
1981
|
}),
|
|
1982
1982
|
onClick: g
|
|
1983
1983
|
},
|
|
1984
|
-
/* @__PURE__ */ e.createElement(
|
|
1985
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
1984
|
+
/* @__PURE__ */ e.createElement(T, { source: cr, kind: "subtle" })
|
|
1985
|
+
)), /* @__PURE__ */ e.createElement("div", { className: D[`${Xa}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1986
1986
|
"button",
|
|
1987
1987
|
{
|
|
1988
1988
|
"data-testid": "date-picker-next-month-button",
|
|
@@ -1990,9 +1990,9 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
1990
1990
|
[d.navButtonNext]: !0,
|
|
1991
1991
|
[d.navButtonInteractionDisabled]: !o
|
|
1992
1992
|
}),
|
|
1993
|
-
onClick:
|
|
1993
|
+
onClick: v
|
|
1994
1994
|
},
|
|
1995
|
-
/* @__PURE__ */ e.createElement(
|
|
1995
|
+
/* @__PURE__ */ e.createElement(T, { source: dr, kind: "subtle" })
|
|
1996
1996
|
), /* @__PURE__ */ e.createElement(
|
|
1997
1997
|
"button",
|
|
1998
1998
|
{
|
|
@@ -2003,30 +2003,30 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2003
2003
|
}),
|
|
2004
2004
|
onClick: f
|
|
2005
2005
|
},
|
|
2006
|
-
/* @__PURE__ */ e.createElement(
|
|
2006
|
+
/* @__PURE__ */ e.createElement(T, { source: Rr, kind: "subtle" })
|
|
2007
2007
|
)));
|
|
2008
2008
|
}, I = "date-picker", $r = (t, a) => {
|
|
2009
2009
|
const { from: r, to: _ } = a;
|
|
2010
|
-
return !(_ && !
|
|
2011
|
-
}, wr = (t, a, r) => a ? t && !
|
|
2010
|
+
return !(_ && !Ta(t, _) && Ba(t, _) || r && !Ta(t, r) && !Ba(t, r));
|
|
2011
|
+
}, wr = (t, a, r) => a ? t && !Da(t, a) || r && Da(a, r) ? pt(a, 1) : a : pt(r || /* @__PURE__ */ new Date(), 1), bo = (t, a) => {
|
|
2012
2012
|
const r = {
|
|
2013
|
-
[
|
|
2014
|
-
[
|
|
2015
|
-
[
|
|
2016
|
-
[
|
|
2013
|
+
[D[`${I}__day--monday`]]: { daysOfWeek: [1] },
|
|
2014
|
+
[D[`${I}__day--sunday`]]: { daysOfWeek: [0] },
|
|
2015
|
+
[D[`${I}__day--start`]]: t,
|
|
2016
|
+
[D[`${I}__day--end`]]: t
|
|
2017
2017
|
};
|
|
2018
2018
|
if (!a || !t)
|
|
2019
2019
|
return r;
|
|
2020
2020
|
const _ = br(a, t);
|
|
2021
|
-
return _ > 0 ?
|
|
2022
|
-
[
|
|
2023
|
-
}) : _ < 0 ?
|
|
2024
|
-
[
|
|
2021
|
+
return _ > 0 ? N(k({}, r), {
|
|
2022
|
+
[D[`${I}__day--end`]]: a
|
|
2023
|
+
}) : _ < 0 ? N(k({}, r), {
|
|
2024
|
+
[D[`${I}__day--start`]]: a
|
|
2025
2025
|
}) : r;
|
|
2026
2026
|
}, xt = (t, a) => {
|
|
2027
2027
|
const r = a.find((_) => _.id === t);
|
|
2028
2028
|
return r || void 0;
|
|
2029
|
-
},
|
|
2029
|
+
}, ja = (t, a) => !!(!t || t && a), fo = (t) => {
|
|
2030
2030
|
const a = {};
|
|
2031
2031
|
if (!t.initialSelectedItemKey)
|
|
2032
2032
|
return a;
|
|
@@ -2037,42 +2037,42 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2037
2037
|
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) : {};
|
|
2038
2038
|
}, vo = (t, a) => k({
|
|
2039
2039
|
container: u({
|
|
2040
|
-
[
|
|
2041
|
-
[
|
|
2040
|
+
[D[`${I}`]]: !0,
|
|
2041
|
+
[D[`${I}--range`]]: t
|
|
2042
2042
|
}),
|
|
2043
|
-
wrapper:
|
|
2044
|
-
interactionDisabled:
|
|
2045
|
-
months:
|
|
2046
|
-
month:
|
|
2047
|
-
navBar:
|
|
2043
|
+
wrapper: D[`${I}__wrapper`],
|
|
2044
|
+
interactionDisabled: D[`${I}--interaction-disabled`],
|
|
2045
|
+
months: D[`${I}__months`],
|
|
2046
|
+
month: D[`${I}__month`],
|
|
2047
|
+
navBar: D[`${I}__nav-bar`],
|
|
2048
2048
|
navButtonPrev: u(
|
|
2049
|
-
|
|
2050
|
-
|
|
2049
|
+
D[`${I}__nav-button`],
|
|
2050
|
+
D[`${I}__nav-button--prev`]
|
|
2051
2051
|
),
|
|
2052
2052
|
navButtonNext: u(
|
|
2053
|
-
|
|
2054
|
-
|
|
2053
|
+
D[`${I}__nav-button`],
|
|
2054
|
+
D[`${I}__nav-button--next`]
|
|
2055
2055
|
),
|
|
2056
|
-
navButtonInteractionDisabled:
|
|
2057
|
-
caption:
|
|
2058
|
-
weekdays:
|
|
2059
|
-
weekdaysRow:
|
|
2060
|
-
weekday:
|
|
2061
|
-
body:
|
|
2062
|
-
week:
|
|
2063
|
-
weekNumber:
|
|
2064
|
-
day:
|
|
2065
|
-
footer:
|
|
2066
|
-
todayButton:
|
|
2067
|
-
today:
|
|
2068
|
-
selected:
|
|
2069
|
-
disabled:
|
|
2070
|
-
outside:
|
|
2071
|
-
start:
|
|
2072
|
-
end:
|
|
2073
|
-
}, a),
|
|
2056
|
+
navButtonInteractionDisabled: D[`${I}__nav-button--interaction-disabled`],
|
|
2057
|
+
caption: D[`${I}__caption`],
|
|
2058
|
+
weekdays: D[`${I}__weekdays`],
|
|
2059
|
+
weekdaysRow: D[`${I}__weekdays-row`],
|
|
2060
|
+
weekday: D[`${I}__weekday`],
|
|
2061
|
+
body: D[`${I}__body`],
|
|
2062
|
+
week: D[`${I}__week`],
|
|
2063
|
+
weekNumber: D[`${I}__week-number`],
|
|
2064
|
+
day: D[`${I}__day`],
|
|
2065
|
+
footer: D[`${I}__footer`],
|
|
2066
|
+
todayButton: D[`${I}__today-button`],
|
|
2067
|
+
today: D[`${I}__day--today`],
|
|
2068
|
+
selected: D[`${I}__day--selected`],
|
|
2069
|
+
disabled: D[`${I}__day--disabled`],
|
|
2070
|
+
outside: D[`${I}__day--outside`],
|
|
2071
|
+
start: D[`${I}__day--start`],
|
|
2072
|
+
end: D[`${I}__day--end`]
|
|
2073
|
+
}, a), Za = "date-picker", ho = (t) => {
|
|
2074
2074
|
const a = t.getDate();
|
|
2075
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
2075
|
+
return /* @__PURE__ */ e.createElement("div", { className: D[`${Za}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: D[`${Za}__day-content`] }, a));
|
|
2076
2076
|
}, ko = (t) => {
|
|
2077
2077
|
const y = t, {
|
|
2078
2078
|
classNames: a,
|
|
@@ -2083,8 +2083,8 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2083
2083
|
firstDayOfWeek: c,
|
|
2084
2084
|
numberOfMonths: d,
|
|
2085
2085
|
navbarElement: n,
|
|
2086
|
-
renderDay:
|
|
2087
|
-
innerRef:
|
|
2086
|
+
renderDay: s,
|
|
2087
|
+
innerRef: i
|
|
2088
2088
|
} = y, m = A(y, [
|
|
2089
2089
|
"classNames",
|
|
2090
2090
|
"range",
|
|
@@ -2096,19 +2096,19 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2096
2096
|
"navbarElement",
|
|
2097
2097
|
"renderDay",
|
|
2098
2098
|
"innerRef"
|
|
2099
|
-
]), [g,
|
|
2099
|
+
]), [g, v] = e.useState(o || /* @__PURE__ */ new Date());
|
|
2100
2100
|
e.useEffect(() => {
|
|
2101
|
-
o && o !== g &&
|
|
2101
|
+
o && o !== g && v(o);
|
|
2102
2102
|
}, [o, g]), e.useEffect(() => {
|
|
2103
|
-
_ && ($r(g, { from: l, to: _ }) ||
|
|
2103
|
+
_ && ($r(g, { from: l, to: _ }) || v(_));
|
|
2104
2104
|
}, [g, t.toMonth, t.fromMonth]);
|
|
2105
2105
|
const b = e.useCallback(
|
|
2106
|
-
(
|
|
2107
|
-
if (t.onMonthChange &&
|
|
2108
|
-
t.onMonthChange(
|
|
2106
|
+
(h) => {
|
|
2107
|
+
if (t.onMonthChange && h) {
|
|
2108
|
+
t.onMonthChange(h);
|
|
2109
2109
|
return;
|
|
2110
2110
|
}
|
|
2111
|
-
h
|
|
2111
|
+
v(h);
|
|
2112
2112
|
},
|
|
2113
2113
|
[o, t.onMonthChange]
|
|
2114
2114
|
);
|
|
@@ -2132,14 +2132,14 @@ const V_ = "lc-SegmentedControl-module__btn___tfsvL", Ht = {
|
|
|
2132
2132
|
fromMonth: l
|
|
2133
2133
|
}
|
|
2134
2134
|
),
|
|
2135
|
-
ref:
|
|
2135
|
+
ref: i,
|
|
2136
2136
|
classNames: p,
|
|
2137
2137
|
numberOfMonths: d,
|
|
2138
2138
|
toMonth: _,
|
|
2139
2139
|
fromMonth: l,
|
|
2140
2140
|
firstDayOfWeek: f,
|
|
2141
2141
|
month: g,
|
|
2142
|
-
renderDay:
|
|
2142
|
+
renderDay: s || ho
|
|
2143
2143
|
}, m)
|
|
2144
2144
|
);
|
|
2145
2145
|
}, yo = e.forwardRef(
|
|
@@ -2170,36 +2170,36 @@ const Eo = (t) => {
|
|
|
2170
2170
|
currentMonth: a
|
|
2171
2171
|
};
|
|
2172
2172
|
case V.NEW_TEMPORARY_TO_VALUE:
|
|
2173
|
-
return
|
|
2173
|
+
return N(k({}, l), {
|
|
2174
2174
|
temporaryTo: c.payload.date
|
|
2175
2175
|
});
|
|
2176
2176
|
case V.SELECT_FIRST_DAY:
|
|
2177
|
-
return
|
|
2177
|
+
return N(k({}, l), {
|
|
2178
2178
|
from: c.payload.date,
|
|
2179
2179
|
to: void 0,
|
|
2180
2180
|
temporaryTo: void 0
|
|
2181
2181
|
});
|
|
2182
2182
|
case V.SELECT_SECOND_DAY_AS_FROM:
|
|
2183
|
-
return
|
|
2183
|
+
return N(k({}, l), {
|
|
2184
2184
|
from: c.payload.date,
|
|
2185
2185
|
to: l.from,
|
|
2186
2186
|
temporaryTo: l.from
|
|
2187
2187
|
});
|
|
2188
2188
|
case V.SELECT_SECOND_DAY_AS_TO:
|
|
2189
|
-
return
|
|
2189
|
+
return N(k({}, l), {
|
|
2190
2190
|
to: c.payload.date,
|
|
2191
2191
|
temporaryTo: c.payload.date
|
|
2192
2192
|
});
|
|
2193
2193
|
case V.CURRENT_MONTH_CHANGE:
|
|
2194
|
-
return
|
|
2194
|
+
return N(k({}, l), {
|
|
2195
2195
|
currentMonth: c.payload.date
|
|
2196
2196
|
});
|
|
2197
2197
|
case V.SET_FROM:
|
|
2198
|
-
return
|
|
2198
|
+
return N(k({}, l), {
|
|
2199
2199
|
from: c.payload.date
|
|
2200
2200
|
});
|
|
2201
2201
|
case V.SET_TO:
|
|
2202
|
-
return
|
|
2202
|
+
return N(k({}, l), {
|
|
2203
2203
|
to: c.payload.date
|
|
2204
2204
|
});
|
|
2205
2205
|
default:
|
|
@@ -2218,7 +2218,7 @@ const Eo = (t) => {
|
|
|
2218
2218
|
}) => {
|
|
2219
2219
|
const d = Ir(
|
|
2220
2220
|
a || null
|
|
2221
|
-
), [n,
|
|
2221
|
+
), [n, s] = Eo({
|
|
2222
2222
|
options: t,
|
|
2223
2223
|
initialSelectedItemKey: a,
|
|
2224
2224
|
initialFromDate: r,
|
|
@@ -2228,12 +2228,12 @@ const Eo = (t) => {
|
|
|
2228
2228
|
children: c
|
|
2229
2229
|
});
|
|
2230
2230
|
ut(() => {
|
|
2231
|
-
|
|
2231
|
+
s({
|
|
2232
2232
|
type: V.SET_FROM,
|
|
2233
2233
|
payload: { date: r }
|
|
2234
2234
|
});
|
|
2235
2235
|
}, [r]), ut(() => {
|
|
2236
|
-
|
|
2236
|
+
s({
|
|
2237
2237
|
type: V.SET_TO,
|
|
2238
2238
|
payload: { date: _ }
|
|
2239
2239
|
});
|
|
@@ -2243,7 +2243,7 @@ const Eo = (t) => {
|
|
|
2243
2243
|
_,
|
|
2244
2244
|
o
|
|
2245
2245
|
);
|
|
2246
|
-
|
|
2246
|
+
s({
|
|
2247
2247
|
type: V.CURRENT_MONTH_CHANGE,
|
|
2248
2248
|
payload: { date: f }
|
|
2249
2249
|
});
|
|
@@ -2251,8 +2251,8 @@ const Eo = (t) => {
|
|
|
2251
2251
|
const { from: f, selectedItem: p, to: y } = n;
|
|
2252
2252
|
if (!(f && y))
|
|
2253
2253
|
return;
|
|
2254
|
-
const
|
|
2255
|
-
|
|
2254
|
+
const h = xt(p, t);
|
|
2255
|
+
h && (l == null || l(N(k({}, h), {
|
|
2256
2256
|
value: {
|
|
2257
2257
|
from: f,
|
|
2258
2258
|
to: y
|
|
@@ -2269,15 +2269,15 @@ const Eo = (t) => {
|
|
|
2269
2269
|
if (!xt(f, t))
|
|
2270
2270
|
return;
|
|
2271
2271
|
const y = t.reduce(
|
|
2272
|
-
(
|
|
2272
|
+
(h, E) => N(k({}, h), { [E.id]: E }),
|
|
2273
2273
|
{}
|
|
2274
2274
|
);
|
|
2275
2275
|
l(y[f]);
|
|
2276
2276
|
}, [l, n.selectedItem, t]);
|
|
2277
|
-
const
|
|
2277
|
+
const i = It(
|
|
2278
2278
|
(f) => {
|
|
2279
2279
|
const p = o ? br(o, f) >= 0 : !0;
|
|
2280
|
-
!
|
|
2280
|
+
!ja(n.from, n.to) && p && s({
|
|
2281
2281
|
type: V.NEW_TEMPORARY_TO_VALUE,
|
|
2282
2282
|
payload: { date: f }
|
|
2283
2283
|
});
|
|
@@ -2286,13 +2286,13 @@ const Eo = (t) => {
|
|
|
2286
2286
|
), m = It(
|
|
2287
2287
|
(f) => {
|
|
2288
2288
|
const { from: p, to: y } = n;
|
|
2289
|
-
$r(f, { to: o }) && (
|
|
2289
|
+
$r(f, { to: o }) && (ja(p, y) ? s({
|
|
2290
2290
|
type: V.SELECT_FIRST_DAY,
|
|
2291
2291
|
payload: { date: f }
|
|
2292
|
-
}) : p &&
|
|
2292
|
+
}) : p && Ta(f, p) || p && Ba(f, p) ? s({
|
|
2293
2293
|
type: V.SELECT_SECOND_DAY_AS_TO,
|
|
2294
2294
|
payload: { date: f }
|
|
2295
|
-
}) :
|
|
2295
|
+
}) : s({
|
|
2296
2296
|
type: V.SELECT_SECOND_DAY_AS_FROM,
|
|
2297
2297
|
payload: { date: f }
|
|
2298
2298
|
}));
|
|
@@ -2301,29 +2301,29 @@ const Eo = (t) => {
|
|
|
2301
2301
|
), g = It(
|
|
2302
2302
|
(f) => {
|
|
2303
2303
|
if (f === null) {
|
|
2304
|
-
|
|
2304
|
+
s({
|
|
2305
2305
|
type: V.NEW_SELECTED_ITEM,
|
|
2306
2306
|
payload: { selectedItem: null }
|
|
2307
2307
|
});
|
|
2308
2308
|
return;
|
|
2309
2309
|
}
|
|
2310
|
-
xt(f, t) &&
|
|
2310
|
+
xt(f, t) && s({
|
|
2311
2311
|
type: V.NEW_SELECTED_ITEM,
|
|
2312
2312
|
payload: { selectedItem: f }
|
|
2313
2313
|
});
|
|
2314
2314
|
},
|
|
2315
2315
|
[t]
|
|
2316
|
-
),
|
|
2317
|
-
|
|
2316
|
+
), v = It((f) => {
|
|
2317
|
+
s({
|
|
2318
2318
|
type: V.CURRENT_MONTH_CHANGE,
|
|
2319
2319
|
payload: { date: f }
|
|
2320
2320
|
});
|
|
2321
2321
|
}, []);
|
|
2322
2322
|
return c((() => {
|
|
2323
|
-
const { currentMonth: f, from: p, selectedItem: y, temporaryTo:
|
|
2324
|
-
() => bo(p,
|
|
2325
|
-
[p,
|
|
2326
|
-
), x = Ft(() => xt(y, t), [t, y]), $ = Ft(() => [p, { from: p, to:
|
|
2323
|
+
const { currentMonth: f, from: p, selectedItem: y, temporaryTo: h, to: E } = n, w = Ft(
|
|
2324
|
+
() => bo(p, h),
|
|
2325
|
+
[p, h]
|
|
2326
|
+
), x = Ft(() => xt(y, t), [t, y]), $ = Ft(() => [p, { from: p, to: h }], [p, h]), F = Ft(() => o ? { after: o } : void 0, [o]);
|
|
2327
2327
|
return {
|
|
2328
2328
|
select: {
|
|
2329
2329
|
onItemSelect: g,
|
|
@@ -2343,8 +2343,8 @@ const Eo = (t) => {
|
|
|
2343
2343
|
initialMonth: o && pt(o, 1),
|
|
2344
2344
|
toMonth: o,
|
|
2345
2345
|
disabledDays: F,
|
|
2346
|
-
onDayMouseEnter:
|
|
2347
|
-
onMonthChange:
|
|
2346
|
+
onDayMouseEnter: i,
|
|
2347
|
+
onMonthChange: v
|
|
2348
2348
|
},
|
|
2349
2349
|
selectedOption: x
|
|
2350
2350
|
};
|
|
@@ -2366,26 +2366,25 @@ $o.defaultProps = {
|
|
|
2366
2366
|
const fc = (t) => {
|
|
2367
2367
|
const l = t, { className: a, children: r } = l, _ = A(l, ["className", "children"]), o = u(
|
|
2368
2368
|
a,
|
|
2369
|
-
|
|
2369
|
+
D["date-picker--range__calendars-wrapper"]
|
|
2370
2370
|
);
|
|
2371
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
2371
|
+
return /* @__PURE__ */ e.createElement("div", N(k({}, _), { className: o }), r);
|
|
2372
2372
|
}, O = {
|
|
2373
2373
|
"details-card": "lc-DetailsCard-module__details-card___cVoS7",
|
|
2374
|
-
"details-
|
|
2374
|
+
"details-card__button--fading": "lc-DetailsCard-module__details-card__button--fading___tQA02",
|
|
2375
2375
|
"details-card--with-divider": "lc-DetailsCard-module__details-card--with-divider___xyXvc",
|
|
2376
|
-
"details-
|
|
2377
|
-
"details-
|
|
2378
|
-
"details-
|
|
2379
|
-
"details-card__button--hide": "lc-DetailsCard-module__details-card__button--hide___vdQhz",
|
|
2376
|
+
"details-card__label-wrapper": "lc-DetailsCard-module__details-card__label-wrapper___7W-BY",
|
|
2377
|
+
"details-card__label-wrapper--hide": "lc-DetailsCard-module__details-card__label-wrapper--hide___H-U4O",
|
|
2378
|
+
"details-card__label-wrapper--fading": "lc-DetailsCard-module__details-card__label-wrapper--fading___yiAoB",
|
|
2380
2379
|
"details-card__label": "lc-DetailsCard-module__details-card__label___nhDQE",
|
|
2381
2380
|
"details-card__label--with-margin": "lc-DetailsCard-module__details-card__label--with-margin___w2S8X",
|
|
2382
2381
|
"details-card__label__left-node": "lc-DetailsCard-module__details-card__label__left-node___Slmc6",
|
|
2383
2382
|
"details-card__label__right-node": "lc-DetailsCard-module__details-card__label__right-node___ZrOLh",
|
|
2384
2383
|
"details-card__label__content": "lc-DetailsCard-module__details-card__label__content___Cfip3",
|
|
2385
|
-
"details-
|
|
2386
|
-
"details-
|
|
2387
|
-
"details-
|
|
2388
|
-
"details-
|
|
2384
|
+
"details-card__button": "lc-DetailsCard-module__details-card__button___FWUG5",
|
|
2385
|
+
"details-card__button--closed": "lc-DetailsCard-module__details-card__button--closed___TkMaQ",
|
|
2386
|
+
"details-card__button__icon": "lc-DetailsCard-module__details-card__button__icon___iOlKd",
|
|
2387
|
+
"details-card__button__icon--open": "lc-DetailsCard-module__details-card__button__icon--open___TI0Xq",
|
|
2389
2388
|
"details-card__content-wrapper": "lc-DetailsCard-module__details-card__content-wrapper___2UOlE",
|
|
2390
2389
|
"details-card__content-wrapper--open": "lc-DetailsCard-module__details-card__content-wrapper--open___ESQxg",
|
|
2391
2390
|
"details-card__content": "lc-DetailsCard-module__details-card__content___RNVd2",
|
|
@@ -2401,35 +2400,35 @@ const fc = (t) => {
|
|
|
2401
2400
|
fullSpaceContent: c,
|
|
2402
2401
|
openOnInit: d = !1,
|
|
2403
2402
|
hideLabelOnOpen: n,
|
|
2404
|
-
onClick:
|
|
2403
|
+
onClick: s
|
|
2405
2404
|
}) => {
|
|
2406
|
-
const [
|
|
2405
|
+
const [i, m] = e.useState(d), [g, v] = e.useState(0), b = e.useRef(null), f = u(
|
|
2407
2406
|
O[H],
|
|
2408
2407
|
l && O[`${H}--with-divider`],
|
|
2409
2408
|
a
|
|
2410
|
-
), p = n &&
|
|
2411
|
-
m((
|
|
2409
|
+
), p = n && i, y = typeof o == "string", h = (E) => {
|
|
2410
|
+
m((w) => !w), E.currentTarget.blur(), s == null || s();
|
|
2412
2411
|
};
|
|
2413
2412
|
return e.useEffect(() => {
|
|
2414
2413
|
const E = !!window.IntersectionObserver;
|
|
2415
2414
|
if (b.current && E) {
|
|
2416
2415
|
const w = new ResizeObserver(() => {
|
|
2417
|
-
b.current && g !== b.current.offsetHeight &&
|
|
2416
|
+
b.current && g !== b.current.offsetHeight && v(b.current.offsetHeight);
|
|
2418
2417
|
});
|
|
2419
2418
|
return w.observe(b.current), () => w.disconnect();
|
|
2420
2419
|
}
|
|
2421
2420
|
}, [b]), /* @__PURE__ */ e.createElement("div", { className: f }, /* @__PURE__ */ e.createElement(
|
|
2422
|
-
"
|
|
2421
|
+
"div",
|
|
2423
2422
|
{
|
|
2424
2423
|
className: u(
|
|
2425
|
-
O[`${H}
|
|
2426
|
-
|
|
2427
|
-
|
|
2424
|
+
O[`${H}__label-wrapper`],
|
|
2425
|
+
n && O[`${H}__label-wrapper--fading`],
|
|
2426
|
+
p && O[`${H}__label-wrapper--hide`],
|
|
2427
|
+
i && O[`${H}__label-wrapper--open`]
|
|
2428
2428
|
),
|
|
2429
|
-
|
|
2430
|
-
"aria-expanded": s,
|
|
2429
|
+
"aria-expanded": i,
|
|
2431
2430
|
"aria-hidden": p,
|
|
2432
|
-
"data-testid": "details-card-
|
|
2431
|
+
"data-testid": "details-card-label"
|
|
2433
2432
|
},
|
|
2434
2433
|
/* @__PURE__ */ e.createElement(
|
|
2435
2434
|
"div",
|
|
@@ -2449,49 +2448,39 @@ const fc = (t) => {
|
|
|
2449
2448
|
o
|
|
2450
2449
|
) : /* @__PURE__ */ e.createElement("div", { className: O[`${H}__label__content`] }, o),
|
|
2451
2450
|
_ && /* @__PURE__ */ e.createElement("div", { className: O[`${H}__label__right-node`] }, _)
|
|
2452
|
-
),
|
|
2453
|
-
!n && /* @__PURE__ */ e.createElement(
|
|
2454
|
-
D,
|
|
2455
|
-
{
|
|
2456
|
-
className: u(
|
|
2457
|
-
O[`${H}__button__icon`],
|
|
2458
|
-
s && O[`${H}__button__icon--open`]
|
|
2459
|
-
),
|
|
2460
|
-
source: Sa
|
|
2461
|
-
}
|
|
2462
2451
|
)
|
|
2463
|
-
),
|
|
2452
|
+
), /* @__PURE__ */ e.createElement(
|
|
2464
2453
|
U,
|
|
2465
2454
|
{
|
|
2466
|
-
kind:
|
|
2455
|
+
kind: i && n ? "float" : "text",
|
|
2467
2456
|
icon: /* @__PURE__ */ e.createElement(
|
|
2468
|
-
|
|
2457
|
+
T,
|
|
2469
2458
|
{
|
|
2470
|
-
source:
|
|
2459
|
+
source: dr,
|
|
2471
2460
|
className: u(
|
|
2472
|
-
O[`${H}
|
|
2473
|
-
|
|
2461
|
+
O[`${H}__button__icon`],
|
|
2462
|
+
i && O[`${H}__button__icon--open`]
|
|
2474
2463
|
)
|
|
2475
2464
|
}
|
|
2476
2465
|
),
|
|
2477
2466
|
className: u(
|
|
2478
|
-
O[`${H}
|
|
2479
|
-
!
|
|
2480
|
-
|
|
2467
|
+
O[`${H}__button`],
|
|
2468
|
+
!i && O[`${H}__button--closed`],
|
|
2469
|
+
i && O[`${H}__button--open`],
|
|
2470
|
+
n && O[`${H}__button--fading`]
|
|
2481
2471
|
),
|
|
2482
|
-
onClick:
|
|
2483
|
-
"aria-expanded":
|
|
2484
|
-
"data-testid": "details-card-floating-button"
|
|
2472
|
+
onClick: h,
|
|
2473
|
+
"aria-expanded": i
|
|
2485
2474
|
}
|
|
2486
2475
|
), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
2487
2476
|
"div",
|
|
2488
2477
|
{
|
|
2489
2478
|
className: u(
|
|
2490
2479
|
O[`${H}__content-wrapper`],
|
|
2491
|
-
|
|
2480
|
+
i && O[`${H}__content-wrapper--open`]
|
|
2492
2481
|
),
|
|
2493
2482
|
style: {
|
|
2494
|
-
maxHeight:
|
|
2483
|
+
maxHeight: i ? g : 0
|
|
2495
2484
|
}
|
|
2496
2485
|
},
|
|
2497
2486
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2514,10 +2503,10 @@ const fc = (t) => {
|
|
|
2514
2503
|
}, ya = "details-card-info", hc = ({
|
|
2515
2504
|
children: t,
|
|
2516
2505
|
label: a
|
|
2517
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: ka[ya] }, /* @__PURE__ */ e.createElement("div", { className: ka[`${ya}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: ka[`${ya}__content`] }, t)),
|
|
2506
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: ka[ya] }, /* @__PURE__ */ e.createElement("div", { className: ka[`${ya}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: ka[`${ya}__content`] }, t)), er = {
|
|
2518
2507
|
"field-error": "lc-FieldError-module__field-error___IDkPT",
|
|
2519
2508
|
"field-error__icon": "lc-FieldError-module__field-error__icon___D4UNC"
|
|
2520
|
-
},
|
|
2509
|
+
}, tr = "field-error", La = (_) => {
|
|
2521
2510
|
var o = _, {
|
|
2522
2511
|
children: t,
|
|
2523
2512
|
className: a = ""
|
|
@@ -2525,12 +2514,12 @@ const fc = (t) => {
|
|
|
2525
2514
|
"children",
|
|
2526
2515
|
"className"
|
|
2527
2516
|
]);
|
|
2528
|
-
const l = u(tr
|
|
2529
|
-
return /* @__PURE__ */ e.createElement(M,
|
|
2530
|
-
|
|
2517
|
+
const l = u(er[tr], a);
|
|
2518
|
+
return /* @__PURE__ */ e.createElement(M, N(k({ as: "span", size: "sm" }, r), { className: l }), /* @__PURE__ */ e.createElement(
|
|
2519
|
+
T,
|
|
2531
2520
|
{
|
|
2532
|
-
source:
|
|
2533
|
-
className:
|
|
2521
|
+
source: Ia,
|
|
2522
|
+
className: er[`${tr}__icon`],
|
|
2534
2523
|
size: "small"
|
|
2535
2524
|
}
|
|
2536
2525
|
), t);
|
|
@@ -2554,15 +2543,15 @@ const fc = (t) => {
|
|
|
2554
2543
|
"inline",
|
|
2555
2544
|
"stretch"
|
|
2556
2545
|
]);
|
|
2557
|
-
const
|
|
2546
|
+
const s = u(Ea[$a], t, {
|
|
2558
2547
|
[Ea[`${$a}--inline`]]: o,
|
|
2559
2548
|
[Ea[`${$a}--stretched`]]: l
|
|
2560
2549
|
});
|
|
2561
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
2562
|
-
}, wo = "lc-Form-module__form___1nOYF",
|
|
2550
|
+
return /* @__PURE__ */ e.createElement("div", N(k({}, c), { className: s }), a, _ && /* @__PURE__ */ e.createElement(La, null, _), r && /* @__PURE__ */ e.createElement(la, null, r));
|
|
2551
|
+
}, wo = "lc-Form-module__form___1nOYF", No = "lc-Form-module__form__header___U4B7t", Co = "lc-Form-module__form__footer___1-sUX", xo = "lc-Form-module__form__label___spg-J", So = "lc-Form-module__form__helper___bhfwS", yt = {
|
|
2563
2552
|
form: wo,
|
|
2564
|
-
form__header:
|
|
2565
|
-
form__footer:
|
|
2553
|
+
form__header: No,
|
|
2554
|
+
form__footer: Co,
|
|
2566
2555
|
form__label: xo,
|
|
2567
2556
|
form__helper: So
|
|
2568
2557
|
}, Et = "form", yc = (c) => {
|
|
@@ -2608,7 +2597,7 @@ const fc = (t) => {
|
|
|
2608
2597
|
children: d,
|
|
2609
2598
|
labelRightNode: n
|
|
2610
2599
|
}) => {
|
|
2611
|
-
const
|
|
2600
|
+
const s = e.useRef(null), [i, m] = e.useState("auto"), g = u(
|
|
2612
2601
|
Y[q],
|
|
2613
2602
|
{
|
|
2614
2603
|
[Y[`${q}--inline`]]: t
|
|
@@ -2616,8 +2605,8 @@ const fc = (t) => {
|
|
|
2616
2605
|
l
|
|
2617
2606
|
);
|
|
2618
2607
|
return e.useEffect(() => {
|
|
2619
|
-
const
|
|
2620
|
-
return t &&
|
|
2608
|
+
const v = s;
|
|
2609
|
+
return t && v.current ? m(`${v.current.clientHeight}px`) : m("auto");
|
|
2621
2610
|
}), /* @__PURE__ */ e.createElement("div", { className: g }, n && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2622
2611
|
"div",
|
|
2623
2612
|
{
|
|
@@ -2652,7 +2641,7 @@ const fc = (t) => {
|
|
|
2652
2641
|
t && Y[`${q}__label-wrapper--inline`]
|
|
2653
2642
|
),
|
|
2654
2643
|
style: {
|
|
2655
|
-
height:
|
|
2644
|
+
height: i
|
|
2656
2645
|
}
|
|
2657
2646
|
},
|
|
2658
2647
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2676,7 +2665,7 @@ const fc = (t) => {
|
|
|
2676
2665
|
),
|
|
2677
2666
|
n && !t && /* @__PURE__ */ e.createElement("div", { className: u(Y[`${q}__label-right-node`]) }, n)
|
|
2678
2667
|
),
|
|
2679
|
-
/* @__PURE__ */ e.createElement("div", { className: u(Y[`${q}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref:
|
|
2668
|
+
/* @__PURE__ */ e.createElement("div", { className: u(Y[`${q}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: s }, d), a && /* @__PURE__ */ e.createElement(La, null, a), !a && r && /* @__PURE__ */ e.createElement(
|
|
2680
2669
|
la,
|
|
2681
2670
|
{
|
|
2682
2671
|
className: u(Y[`${q}__content__description`])
|
|
@@ -2704,7 +2693,7 @@ const fc = (t) => {
|
|
|
2704
2693
|
const d = u(Gt[Ut], t);
|
|
2705
2694
|
return /* @__PURE__ */ e.createElement(
|
|
2706
2695
|
"div",
|
|
2707
|
-
|
|
2696
|
+
N(k(N(k({}, o), {
|
|
2708
2697
|
role: "group"
|
|
2709
2698
|
}), r && { "aria-label": r }), {
|
|
2710
2699
|
className: d
|
|
@@ -2727,7 +2716,7 @@ const fc = (t) => {
|
|
|
2727
2716
|
"input__icon--left": "lc-Input-module__input__icon--left___BcySs",
|
|
2728
2717
|
"input__icon--right": "lc-Input-module__input__icon--right___VefSK",
|
|
2729
2718
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
2730
|
-
}, De = "input",
|
|
2719
|
+
}, De = "input", ar = (t, a) => e.cloneElement(t.source, {
|
|
2731
2720
|
"data-testid": `input-icon-${t.place}`,
|
|
2732
2721
|
className: u(
|
|
2733
2722
|
Se[`${De}__icon`],
|
|
@@ -2738,14 +2727,14 @@ const fc = (t) => {
|
|
|
2738
2727
|
)
|
|
2739
2728
|
}), wc = e.forwardRef(
|
|
2740
2729
|
(n, d) => {
|
|
2741
|
-
var
|
|
2730
|
+
var s = n, {
|
|
2742
2731
|
inputSize: t = "medium",
|
|
2743
2732
|
error: a = !1,
|
|
2744
2733
|
disabled: r,
|
|
2745
2734
|
icon: _ = null,
|
|
2746
2735
|
className: o,
|
|
2747
2736
|
cropOnBlur: l = !0
|
|
2748
|
-
} =
|
|
2737
|
+
} = s, c = A(s, [
|
|
2749
2738
|
"inputSize",
|
|
2750
2739
|
"error",
|
|
2751
2740
|
"disabled",
|
|
@@ -2753,21 +2742,21 @@ const fc = (t) => {
|
|
|
2753
2742
|
"className",
|
|
2754
2743
|
"cropOnBlur"
|
|
2755
2744
|
]);
|
|
2756
|
-
const [
|
|
2745
|
+
const [i, m] = e.useState(!1), [g, v] = e.useState(!1), { type: b, onFocus: f, onBlur: p } = c, y = u(
|
|
2757
2746
|
o,
|
|
2758
2747
|
Se[De],
|
|
2759
2748
|
Se[`${De}--${t}`],
|
|
2760
2749
|
{
|
|
2761
2750
|
[Se[`${De}--disabled`]]: r,
|
|
2762
|
-
[Se[`${De}--focused`]]:
|
|
2751
|
+
[Se[`${De}--focused`]]: i,
|
|
2763
2752
|
[Se[`${De}--error`]]: a,
|
|
2764
2753
|
[Se[`${De}--crop`]]: l,
|
|
2765
2754
|
[Se[`${De}--read-only`]]: c.readOnly
|
|
2766
2755
|
}
|
|
2767
|
-
),
|
|
2768
|
-
return /* @__PURE__ */ e.createElement("div", { className: y, "aria-disabled": r, "tab-index": "0" }, w &&
|
|
2756
|
+
), h = r ? "var(--content-disabled)" : "var(--content-default)", E = g ? Lr : Or, w = _ && _.place === "left", x = _ && b !== "password" && _.place === "right";
|
|
2757
|
+
return /* @__PURE__ */ e.createElement("div", { className: y, "aria-disabled": r, "tab-index": "0" }, w && ar(_, r), /* @__PURE__ */ e.createElement(
|
|
2769
2758
|
"input",
|
|
2770
|
-
|
|
2759
|
+
N(k({}, c), {
|
|
2771
2760
|
ref: d,
|
|
2772
2761
|
onFocus: ($) => {
|
|
2773
2762
|
m(!0), f == null || f($);
|
|
@@ -2778,22 +2767,22 @@ const fc = (t) => {
|
|
|
2778
2767
|
disabled: r,
|
|
2779
2768
|
type: b && !g ? b : "text"
|
|
2780
2769
|
})
|
|
2781
|
-
), x &&
|
|
2770
|
+
), x && ar(_, r), b === "password" && /* @__PURE__ */ e.createElement(
|
|
2782
2771
|
U,
|
|
2783
2772
|
{
|
|
2784
2773
|
disabled: r,
|
|
2785
2774
|
kind: "text",
|
|
2786
2775
|
size: "compact",
|
|
2787
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
2788
|
-
onClick: () =>
|
|
2776
|
+
icon: /* @__PURE__ */ e.createElement(T, { customColor: h, source: E }),
|
|
2777
|
+
onClick: () => v(($) => !$),
|
|
2789
2778
|
className: Se[`${De}__visibility-button`]
|
|
2790
2779
|
}
|
|
2791
2780
|
));
|
|
2792
2781
|
}
|
|
2793
|
-
), To = "lc-Link-module__link___kqx52",
|
|
2782
|
+
), To = "lc-Link-module__link___kqx52", rr = {
|
|
2794
2783
|
link: To,
|
|
2795
2784
|
"link--bold": "lc-Link-module__link--bold___1rGdO"
|
|
2796
|
-
},
|
|
2785
|
+
}, _r = "link", Nc = (_) => {
|
|
2797
2786
|
var o = _, {
|
|
2798
2787
|
bold: t = !1,
|
|
2799
2788
|
className: a = ""
|
|
@@ -2805,8 +2794,8 @@ const fc = (t) => {
|
|
|
2805
2794
|
"a",
|
|
2806
2795
|
k({
|
|
2807
2796
|
className: u(
|
|
2808
|
-
_r
|
|
2809
|
-
t &&
|
|
2797
|
+
rr[_r],
|
|
2798
|
+
t && rr[`${_r}--bold`],
|
|
2810
2799
|
a
|
|
2811
2800
|
)
|
|
2812
2801
|
}, r)
|
|
@@ -2826,7 +2815,7 @@ const fc = (t) => {
|
|
|
2826
2815
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
2827
2816
|
modal__footer: Io
|
|
2828
2817
|
}, $t = "modal-base", Fo = (n) => {
|
|
2829
|
-
var
|
|
2818
|
+
var s = n, {
|
|
2830
2819
|
children: t,
|
|
2831
2820
|
className: a = "",
|
|
2832
2821
|
onClose: r,
|
|
@@ -2834,7 +2823,7 @@ const fc = (t) => {
|
|
|
2834
2823
|
closeOnOverlayPress: o = !0,
|
|
2835
2824
|
fullSpaceContent: l,
|
|
2836
2825
|
isLabelled: c
|
|
2837
|
-
} =
|
|
2826
|
+
} = s, d = A(s, [
|
|
2838
2827
|
"children",
|
|
2839
2828
|
"className",
|
|
2840
2829
|
"onClose",
|
|
@@ -2843,7 +2832,7 @@ const fc = (t) => {
|
|
|
2843
2832
|
"fullSpaceContent",
|
|
2844
2833
|
"isLabelled"
|
|
2845
2834
|
]);
|
|
2846
|
-
const
|
|
2835
|
+
const i = u(
|
|
2847
2836
|
ie[$t],
|
|
2848
2837
|
a,
|
|
2849
2838
|
l && ie[`${$t}--full-space`]
|
|
@@ -2851,8 +2840,8 @@ const fc = (t) => {
|
|
|
2851
2840
|
e.useEffect(() => {
|
|
2852
2841
|
if (!_)
|
|
2853
2842
|
return;
|
|
2854
|
-
const g = (
|
|
2855
|
-
|
|
2843
|
+
const g = (v) => {
|
|
2844
|
+
v.key === re.esc && r();
|
|
2856
2845
|
};
|
|
2857
2846
|
return document.addEventListener("keyup", g, !0), () => document.removeEventListener("keyup", g, !0);
|
|
2858
2847
|
}, [_]);
|
|
@@ -2875,12 +2864,12 @@ const fc = (t) => {
|
|
|
2875
2864
|
k({
|
|
2876
2865
|
role: "dialog",
|
|
2877
2866
|
"aria-modal": !0,
|
|
2878
|
-
className:
|
|
2867
|
+
className: i
|
|
2879
2868
|
}, d),
|
|
2880
2869
|
t
|
|
2881
2870
|
)
|
|
2882
2871
|
);
|
|
2883
|
-
},
|
|
2872
|
+
}, or = ({
|
|
2884
2873
|
labelType: t,
|
|
2885
2874
|
customColor: a,
|
|
2886
2875
|
onClick: r
|
|
@@ -2896,10 +2885,10 @@ const fc = (t) => {
|
|
|
2896
2885
|
t && ie["modal-base__close--label-type"]
|
|
2897
2886
|
),
|
|
2898
2887
|
onClick: r,
|
|
2899
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
2888
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: Te, size: "medium", customColor: a })
|
|
2900
2889
|
}
|
|
2901
|
-
), et = "modal",
|
|
2902
|
-
var
|
|
2890
|
+
), et = "modal", Cc = (s) => {
|
|
2891
|
+
var i = s, {
|
|
2903
2892
|
children: t,
|
|
2904
2893
|
className: a = "",
|
|
2905
2894
|
heading: r,
|
|
@@ -2908,7 +2897,7 @@ const fc = (t) => {
|
|
|
2908
2897
|
footer: l,
|
|
2909
2898
|
onClose: c,
|
|
2910
2899
|
contentClassName: d
|
|
2911
|
-
} =
|
|
2900
|
+
} = i, n = A(i, [
|
|
2912
2901
|
"children",
|
|
2913
2902
|
"className",
|
|
2914
2903
|
"heading",
|
|
@@ -2918,7 +2907,7 @@ const fc = (t) => {
|
|
|
2918
2907
|
"onClose",
|
|
2919
2908
|
"contentClassName"
|
|
2920
2909
|
]);
|
|
2921
|
-
const m = u(ie[et], a), g = typeof t == "string",
|
|
2910
|
+
const m = u(ie[et], a), g = typeof t == "string", v = (b) => {
|
|
2922
2911
|
b.preventDefault(), b.stopPropagation(), c();
|
|
2923
2912
|
};
|
|
2924
2913
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2938,11 +2927,11 @@ const fc = (t) => {
|
|
|
2938
2927
|
},
|
|
2939
2928
|
_
|
|
2940
2929
|
), /* @__PURE__ */ e.createElement(
|
|
2941
|
-
|
|
2930
|
+
or,
|
|
2942
2931
|
{
|
|
2943
2932
|
labelType: !!_,
|
|
2944
2933
|
customColor: "var(--color-white)",
|
|
2945
|
-
onClick:
|
|
2934
|
+
onClick: v
|
|
2946
2935
|
}
|
|
2947
2936
|
)),
|
|
2948
2937
|
!_ && r && /* @__PURE__ */ e.createElement("div", { className: ie[`${et}__header`] }, /* @__PURE__ */ e.createElement(
|
|
@@ -2953,7 +2942,7 @@ const fc = (t) => {
|
|
|
2953
2942
|
className: ie[`${et}__heading`]
|
|
2954
2943
|
},
|
|
2955
2944
|
r
|
|
2956
|
-
), /* @__PURE__ */ e.createElement(
|
|
2945
|
+
), /* @__PURE__ */ e.createElement(or, { onClick: v })),
|
|
2957
2946
|
/* @__PURE__ */ e.createElement(
|
|
2958
2947
|
"div",
|
|
2959
2948
|
{
|
|
@@ -2993,7 +2982,7 @@ const fc = (t) => {
|
|
|
2993
2982
|
}) => {
|
|
2994
2983
|
const l = t_(ot[lt], o);
|
|
2995
2984
|
return /* @__PURE__ */ e.createElement("div", { className: l }, a && /* @__PURE__ */ e.createElement(
|
|
2996
|
-
|
|
2985
|
+
T,
|
|
2997
2986
|
k({
|
|
2998
2987
|
className: ot[`${lt}__heading-left-node`]
|
|
2999
2988
|
}, a)
|
|
@@ -3025,8 +3014,8 @@ const fc = (t) => {
|
|
|
3025
3014
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___yaRvQ",
|
|
3026
3015
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___D90rG",
|
|
3027
3016
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___TMxRx"
|
|
3028
|
-
}, nt = "numeric-input", Dc = (
|
|
3029
|
-
var m =
|
|
3017
|
+
}, nt = "numeric-input", Dc = (i) => {
|
|
3018
|
+
var m = i, {
|
|
3030
3019
|
className: t,
|
|
3031
3020
|
error: a,
|
|
3032
3021
|
value: r,
|
|
@@ -3036,7 +3025,7 @@ const fc = (t) => {
|
|
|
3036
3025
|
noControls: c,
|
|
3037
3026
|
style: d,
|
|
3038
3027
|
onChange: n
|
|
3039
|
-
} = m,
|
|
3028
|
+
} = m, s = A(m, [
|
|
3040
3029
|
"className",
|
|
3041
3030
|
"error",
|
|
3042
3031
|
"value",
|
|
@@ -3047,7 +3036,7 @@ const fc = (t) => {
|
|
|
3047
3036
|
"style",
|
|
3048
3037
|
"onChange"
|
|
3049
3038
|
]);
|
|
3050
|
-
const g = e.useRef(null),
|
|
3039
|
+
const g = e.useRef(null), v = u(
|
|
3051
3040
|
ct[nt],
|
|
3052
3041
|
{
|
|
3053
3042
|
[ct[`${nt}--error`]]: a,
|
|
@@ -3060,7 +3049,7 @@ const fc = (t) => {
|
|
|
3060
3049
|
return b(f(F));
|
|
3061
3050
|
}, y = ($) => {
|
|
3062
3051
|
$.key === re.arrowDown && ($.preventDefault(), p(-1)), $.key === re.arrowUp && ($.preventDefault(), p(1));
|
|
3063
|
-
},
|
|
3052
|
+
}, h = ($, F) => F !== void 0 && parseInt($, 10) === F, E = ($) => {
|
|
3064
3053
|
$.preventDefault(), $.stopPropagation();
|
|
3065
3054
|
const F = $.currentTarget.value.replace(
|
|
3066
3055
|
/((?!([-]|([-]?\d+))).)/,
|
|
@@ -3077,12 +3066,12 @@ const fc = (t) => {
|
|
|
3077
3066
|
var $;
|
|
3078
3067
|
return ($ = g.current) == null || $.focus(), p(-1);
|
|
3079
3068
|
};
|
|
3080
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
3069
|
+
return /* @__PURE__ */ e.createElement("div", { className: v, style: d }, /* @__PURE__ */ e.createElement(
|
|
3081
3070
|
"input",
|
|
3082
|
-
|
|
3071
|
+
N(k({
|
|
3083
3072
|
type: "text",
|
|
3084
3073
|
ref: g
|
|
3085
|
-
},
|
|
3074
|
+
}, s), {
|
|
3086
3075
|
value: r,
|
|
3087
3076
|
disabled: l,
|
|
3088
3077
|
onChange: E,
|
|
@@ -3094,17 +3083,17 @@ const fc = (t) => {
|
|
|
3094
3083
|
"button",
|
|
3095
3084
|
{
|
|
3096
3085
|
tabIndex: -1,
|
|
3097
|
-
disabled: l ||
|
|
3086
|
+
disabled: l || h(r, _),
|
|
3098
3087
|
onClick: w,
|
|
3099
3088
|
"aria-label": "Increment value",
|
|
3100
3089
|
className: ct[`${nt}__increment`],
|
|
3101
3090
|
type: "button"
|
|
3102
3091
|
},
|
|
3103
3092
|
/* @__PURE__ */ e.createElement(
|
|
3104
|
-
|
|
3093
|
+
T,
|
|
3105
3094
|
{
|
|
3106
3095
|
source: Xt,
|
|
3107
|
-
disabled: l ||
|
|
3096
|
+
disabled: l || h(r, _),
|
|
3108
3097
|
kind: "primary"
|
|
3109
3098
|
}
|
|
3110
3099
|
)
|
|
@@ -3112,18 +3101,18 @@ const fc = (t) => {
|
|
|
3112
3101
|
"button",
|
|
3113
3102
|
{
|
|
3114
3103
|
tabIndex: -1,
|
|
3115
|
-
disabled: l ||
|
|
3104
|
+
disabled: l || h(r, o),
|
|
3116
3105
|
"aria-label": "Decrement value",
|
|
3117
3106
|
className: ct[`${nt}__decrement`],
|
|
3118
3107
|
onClick: x,
|
|
3119
3108
|
type: "button"
|
|
3120
3109
|
},
|
|
3121
3110
|
/* @__PURE__ */ e.createElement(
|
|
3122
|
-
|
|
3111
|
+
T,
|
|
3123
3112
|
{
|
|
3124
3113
|
source: Bt,
|
|
3125
3114
|
kind: "primary",
|
|
3126
|
-
disabled: l ||
|
|
3115
|
+
disabled: l || h(r, o)
|
|
3127
3116
|
}
|
|
3128
3117
|
)
|
|
3129
3118
|
)));
|
|
@@ -3140,7 +3129,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3140
3129
|
return t.forEach((_, o) => {
|
|
3141
3130
|
a(_) && r.push(o);
|
|
3142
3131
|
}), r;
|
|
3143
|
-
},
|
|
3132
|
+
}, Pa = (t) => t.filter(
|
|
3144
3133
|
({ key: a, disabled: r, groupHeader: _ }) => !(a === Tt || r || _)
|
|
3145
3134
|
), ee = {
|
|
3146
3135
|
"item-wrapper": "lc-PickerListItem-module__item-wrapper___ETYMU",
|
|
@@ -3167,36 +3156,36 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3167
3156
|
item: c,
|
|
3168
3157
|
numberOfItems: d
|
|
3169
3158
|
}) => {
|
|
3170
|
-
const n = (
|
|
3159
|
+
const n = (i) => i != null && i.customElement ? /* @__PURE__ */ e.createElement("div", { className: ee[`${Ee}__custom`] }, i.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, i.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3171
3160
|
po,
|
|
3172
3161
|
{
|
|
3173
3162
|
className: ee[`${Ee}__checkbox`],
|
|
3174
3163
|
checked: r
|
|
3175
3164
|
}
|
|
3176
|
-
),
|
|
3177
|
-
|
|
3165
|
+
), i.icon && /* @__PURE__ */ e.createElement(
|
|
3166
|
+
T,
|
|
3178
3167
|
{
|
|
3179
3168
|
className: ee[`${Ee}__icon`],
|
|
3180
3169
|
kind: "link",
|
|
3181
|
-
source:
|
|
3170
|
+
source: i.icon
|
|
3182
3171
|
}
|
|
3183
|
-
),
|
|
3172
|
+
), i.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3184
3173
|
"img",
|
|
3185
3174
|
{
|
|
3186
3175
|
className: u(ee[`${Ee}__avatar`]),
|
|
3187
|
-
src:
|
|
3188
|
-
alt:
|
|
3176
|
+
src: i.avatarSrc,
|
|
3177
|
+
alt: i.name
|
|
3189
3178
|
}
|
|
3190
3179
|
), /* @__PURE__ */ e.createElement("div", { className: ee[`${Ee}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3191
3180
|
"span",
|
|
3192
3181
|
{
|
|
3193
3182
|
className: u({
|
|
3194
|
-
[ee[`${Ee}__main-label`]]:
|
|
3183
|
+
[ee[`${Ee}__main-label`]]: i.secondaryText
|
|
3195
3184
|
}),
|
|
3196
|
-
"aria-disabled":
|
|
3185
|
+
"aria-disabled": i.disabled
|
|
3197
3186
|
},
|
|
3198
|
-
|
|
3199
|
-
),
|
|
3187
|
+
i.name
|
|
3188
|
+
), i.secondaryText && /* @__PURE__ */ e.createElement("span", { className: ee[`${Ee}__secondary-label`] }, i.secondaryText)));
|
|
3200
3189
|
if (c.groupHeader)
|
|
3201
3190
|
return /* @__PURE__ */ e.createElement(
|
|
3202
3191
|
"div",
|
|
@@ -3208,23 +3197,23 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3208
3197
|
}, l()),
|
|
3209
3198
|
c.name
|
|
3210
3199
|
);
|
|
3211
|
-
const
|
|
3212
|
-
!c.disabled && o(
|
|
3200
|
+
const s = (i) => {
|
|
3201
|
+
!c.disabled && o(i);
|
|
3213
3202
|
};
|
|
3214
3203
|
return /* @__PURE__ */ e.createElement(
|
|
3215
3204
|
"div",
|
|
3216
|
-
|
|
3205
|
+
N(k({
|
|
3217
3206
|
id: c.key,
|
|
3218
3207
|
key: c.key,
|
|
3219
3208
|
tabIndex: a ? 0 : -1,
|
|
3220
|
-
ref: (
|
|
3221
|
-
|
|
3209
|
+
ref: (i) => {
|
|
3210
|
+
i && (_.current[t] = i);
|
|
3222
3211
|
},
|
|
3223
3212
|
role: "option",
|
|
3224
3213
|
"aria-setsize": d,
|
|
3225
3214
|
"aria-posinset": t + 1
|
|
3226
3215
|
}, l({
|
|
3227
|
-
onClick: () =>
|
|
3216
|
+
onClick: () => s(c.key)
|
|
3228
3217
|
})), {
|
|
3229
3218
|
className: u(ee["item-wrapper"], {
|
|
3230
3219
|
[ee["item-wrapper__first"]]: t === 0 && !c.groupHeader,
|
|
@@ -3244,7 +3233,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3244
3233
|
},
|
|
3245
3234
|
/* @__PURE__ */ e.createElement("div", { className: ee[`${Ee}__content`] }, n(c)),
|
|
3246
3235
|
r && !c.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3247
|
-
|
|
3236
|
+
T,
|
|
3248
3237
|
{
|
|
3249
3238
|
kind: "link",
|
|
3250
3239
|
source: Qt,
|
|
@@ -3257,7 +3246,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3257
3246
|
listbox: Oo,
|
|
3258
3247
|
"no-results": "lc-PickerList-module__no-results___QRce-",
|
|
3259
3248
|
"listbox-wrapper": "lc-PickerList-module__listbox-wrapper___FbDrf"
|
|
3260
|
-
},
|
|
3249
|
+
}, lr = "picker-list", Ho = ({
|
|
3261
3250
|
context: t,
|
|
3262
3251
|
setFloating: a,
|
|
3263
3252
|
floatingStyles: r,
|
|
@@ -3267,21 +3256,21 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3267
3256
|
pointer: c,
|
|
3268
3257
|
activeIndex: d,
|
|
3269
3258
|
selectedKeys: n,
|
|
3270
|
-
listElementsRef:
|
|
3271
|
-
setPointer:
|
|
3259
|
+
listElementsRef: s,
|
|
3260
|
+
setPointer: i,
|
|
3272
3261
|
onSelect: m,
|
|
3273
3262
|
getFloatingProps: g,
|
|
3274
|
-
getItemProps:
|
|
3263
|
+
getItemProps: v,
|
|
3275
3264
|
emptyStateText: b = "No results found",
|
|
3276
3265
|
pickerType: f = "single",
|
|
3277
3266
|
listClassName: p,
|
|
3278
3267
|
virtuosoProps: y
|
|
3279
3268
|
}) => {
|
|
3280
|
-
const
|
|
3269
|
+
const h = e.useRef(null), [E, w] = e.useState(wa), x = o.length;
|
|
3281
3270
|
e.useLayoutEffect(() => {
|
|
3282
3271
|
var S;
|
|
3283
|
-
l && !c && d !== null && ((S =
|
|
3284
|
-
}, [l, d, c,
|
|
3272
|
+
l && !c && d !== null && ((S = h.current) == null || S.focus({ preventScroll: !0 }));
|
|
3273
|
+
}, [l, d, c, h]);
|
|
3285
3274
|
const $ = e.useCallback(
|
|
3286
3275
|
(S) => {
|
|
3287
3276
|
S !== E && (S < wa ? w(S + (x - 1) * Mo) : w(wa));
|
|
@@ -3289,12 +3278,12 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3289
3278
|
[x]
|
|
3290
3279
|
);
|
|
3291
3280
|
if (ut(() => {
|
|
3292
|
-
|
|
3281
|
+
s.current = new Array(o.length);
|
|
3293
3282
|
}, [o.length]), o.length === 0) {
|
|
3294
|
-
const S = u(st[
|
|
3295
|
-
[st[`${
|
|
3283
|
+
const S = u(st[lr], {
|
|
3284
|
+
[st[`${lr}__no-results`]]: o.length === 0
|
|
3296
3285
|
});
|
|
3297
|
-
return /* @__PURE__ */ e.createElement(
|
|
3286
|
+
return /* @__PURE__ */ e.createElement(Sa, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
3298
3287
|
"div",
|
|
3299
3288
|
{
|
|
3300
3289
|
className: u(st.listbox, st["no-results"]),
|
|
@@ -3305,14 +3294,14 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3305
3294
|
/* @__PURE__ */ e.createElement("div", { className: S }, b)
|
|
3306
3295
|
));
|
|
3307
3296
|
}
|
|
3308
|
-
const F = (S) => n.includes(S) || S === Tt && n.length ===
|
|
3309
|
-
return /* @__PURE__ */ e.createElement(
|
|
3297
|
+
const F = (S) => n.includes(S) || S === Tt && n.length === Pa(o).length;
|
|
3298
|
+
return /* @__PURE__ */ e.createElement(Sa, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
3310
3299
|
"div",
|
|
3311
3300
|
{
|
|
3312
3301
|
ref: a,
|
|
3313
3302
|
tabIndex: -1,
|
|
3314
3303
|
className: u(st.listbox, p),
|
|
3315
|
-
style:
|
|
3304
|
+
style: N(k({}, r), {
|
|
3316
3305
|
maxHeight: _
|
|
3317
3306
|
})
|
|
3318
3307
|
},
|
|
@@ -3322,21 +3311,21 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3322
3311
|
tabIndex: 0,
|
|
3323
3312
|
"aria-multiselectable": f === "multi",
|
|
3324
3313
|
className: st["listbox-wrapper"],
|
|
3325
|
-
ref:
|
|
3314
|
+
ref: h
|
|
3326
3315
|
}, g({
|
|
3327
3316
|
onKeyDown(S) {
|
|
3328
|
-
|
|
3317
|
+
i(!1), S.key === "Enter" && d !== null && m(o[d].key), S.key === " " && S.preventDefault();
|
|
3329
3318
|
},
|
|
3330
3319
|
onKeyUp(S) {
|
|
3331
3320
|
S.key === " " && d !== null && m(o[d].key);
|
|
3332
3321
|
},
|
|
3333
3322
|
onPointerMove() {
|
|
3334
|
-
|
|
3323
|
+
i(!0);
|
|
3335
3324
|
}
|
|
3336
3325
|
})),
|
|
3337
3326
|
/* @__PURE__ */ e.createElement(
|
|
3338
3327
|
a_,
|
|
3339
|
-
|
|
3328
|
+
N(k({
|
|
3340
3329
|
totalListHeightChanged: $,
|
|
3341
3330
|
style: { height: `${E}px`, maxHeight: _ },
|
|
3342
3331
|
totalCount: o.length,
|
|
@@ -3347,8 +3336,8 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3347
3336
|
Lo,
|
|
3348
3337
|
{
|
|
3349
3338
|
index: S,
|
|
3350
|
-
getItemProps:
|
|
3351
|
-
listElementsRef:
|
|
3339
|
+
getItemProps: v,
|
|
3340
|
+
listElementsRef: s,
|
|
3352
3341
|
isActive: d === S,
|
|
3353
3342
|
isSelected: F(R.key),
|
|
3354
3343
|
onSelect: m,
|
|
@@ -3388,19 +3377,19 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3388
3377
|
hideClearButton: c,
|
|
3389
3378
|
isDisabled: d,
|
|
3390
3379
|
isRequired: n,
|
|
3391
|
-
isOpen:
|
|
3392
|
-
isError:
|
|
3380
|
+
isOpen: s,
|
|
3381
|
+
isError: i,
|
|
3393
3382
|
onClear: m,
|
|
3394
3383
|
children: g
|
|
3395
3384
|
}) => {
|
|
3396
|
-
const
|
|
3385
|
+
const v = u(
|
|
3397
3386
|
_e[te],
|
|
3398
3387
|
_e[`${te}--${_}`],
|
|
3399
3388
|
o && _e[`${te}--multi-select`],
|
|
3400
3389
|
o && l && _e[`${te}--multi-select--with-items`],
|
|
3401
3390
|
d && _e[`${te}--disabled`],
|
|
3402
|
-
|
|
3403
|
-
|
|
3391
|
+
s && _e[`${te}--focused`],
|
|
3392
|
+
i && _e[`${te}--error`]
|
|
3404
3393
|
), b = !c && l && !d && !n, f = (p) => {
|
|
3405
3394
|
p.stopPropagation(), m();
|
|
3406
3395
|
};
|
|
@@ -3409,7 +3398,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3409
3398
|
k({
|
|
3410
3399
|
tabIndex: d ? -1 : 0,
|
|
3411
3400
|
"aria-disabled": d,
|
|
3412
|
-
className:
|
|
3401
|
+
className: v,
|
|
3413
3402
|
"data-testid": r,
|
|
3414
3403
|
ref: t,
|
|
3415
3404
|
type: "button"
|
|
@@ -3440,13 +3429,13 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3440
3429
|
className: _e[`${te}__clear-icon`],
|
|
3441
3430
|
onClick: f
|
|
3442
3431
|
},
|
|
3443
|
-
/* @__PURE__ */ e.createElement(
|
|
3432
|
+
/* @__PURE__ */ e.createElement(T, { kind: "primary", size: "small", source: Te })
|
|
3444
3433
|
),
|
|
3445
3434
|
/* @__PURE__ */ e.createElement(
|
|
3446
|
-
|
|
3435
|
+
T,
|
|
3447
3436
|
{
|
|
3448
3437
|
className: _e[`${te}__chevron-icon`],
|
|
3449
|
-
source:
|
|
3438
|
+
source: s ? Xt : Bt,
|
|
3450
3439
|
size: "medium",
|
|
3451
3440
|
disabled: d
|
|
3452
3441
|
}
|
|
@@ -3473,7 +3462,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3473
3462
|
"tag--dismissible": "lc-Tag-module__tag--dismissible___Qobyr",
|
|
3474
3463
|
tag__node: Vo,
|
|
3475
3464
|
tag__content: Yo
|
|
3476
|
-
}, Oe = "tag", qo = (t) => t ?
|
|
3465
|
+
}, Oe = "tag", qo = (t) => t ? Ma(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", Nr = (m) => {
|
|
3477
3466
|
var g = m, {
|
|
3478
3467
|
className: t = "",
|
|
3479
3468
|
children: a,
|
|
@@ -3484,8 +3473,8 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3484
3473
|
outline: c = !1,
|
|
3485
3474
|
leftNode: d,
|
|
3486
3475
|
rightNode: n,
|
|
3487
|
-
customColor:
|
|
3488
|
-
} = g,
|
|
3476
|
+
customColor: s
|
|
3477
|
+
} = g, i = A(g, [
|
|
3489
3478
|
"className",
|
|
3490
3479
|
"children",
|
|
3491
3480
|
"dismissible",
|
|
@@ -3497,7 +3486,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3497
3486
|
"rightNode",
|
|
3498
3487
|
"customColor"
|
|
3499
3488
|
]);
|
|
3500
|
-
const
|
|
3489
|
+
const v = u(
|
|
3501
3490
|
Le[Oe],
|
|
3502
3491
|
t,
|
|
3503
3492
|
Le[`${Oe}--${_}`],
|
|
@@ -3505,23 +3494,23 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3505
3494
|
{
|
|
3506
3495
|
[Le[`${Oe}--dismissible`]]: r,
|
|
3507
3496
|
[Le[`${Oe}--outline`]]: c,
|
|
3508
|
-
[Le[`${Oe}--${qo(
|
|
3497
|
+
[Le[`${Oe}--${qo(s)}`]]: !!s
|
|
3509
3498
|
}
|
|
3510
|
-
), b = _ === "small" ? "small" : "medium", f = () =>
|
|
3499
|
+
), b = _ === "small" ? "small" : "medium", f = () => s ? c ? {
|
|
3511
3500
|
style: {
|
|
3512
3501
|
backgroundColor: "transparent",
|
|
3513
|
-
color:
|
|
3514
|
-
borderColor:
|
|
3502
|
+
color: s,
|
|
3503
|
+
borderColor: s
|
|
3515
3504
|
}
|
|
3516
|
-
} : { style: { backgroundColor:
|
|
3517
|
-
if (
|
|
3518
|
-
return c ?
|
|
3505
|
+
} : { style: { backgroundColor: s } } : {}, p = () => {
|
|
3506
|
+
if (s)
|
|
3507
|
+
return c ? s : Ma(s, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
3519
3508
|
};
|
|
3520
3509
|
return /* @__PURE__ */ e.createElement(
|
|
3521
3510
|
M,
|
|
3522
|
-
|
|
3523
|
-
className:
|
|
3524
|
-
},
|
|
3511
|
+
N(k(k({
|
|
3512
|
+
className: v
|
|
3513
|
+
}, i), f()), {
|
|
3525
3514
|
as: "div",
|
|
3526
3515
|
size: "md"
|
|
3527
3516
|
}),
|
|
@@ -3554,7 +3543,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3554
3543
|
className: Le[`${Oe}__remove`]
|
|
3555
3544
|
},
|
|
3556
3545
|
/* @__PURE__ */ e.createElement(
|
|
3557
|
-
|
|
3546
|
+
T,
|
|
3558
3547
|
{
|
|
3559
3548
|
"data-dismiss-icon": !0,
|
|
3560
3549
|
source: Te,
|
|
@@ -3592,17 +3581,17 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3592
3581
|
clearSearchAfterSelection: c,
|
|
3593
3582
|
size: d = "medium",
|
|
3594
3583
|
onItemRemove: n,
|
|
3595
|
-
onSelect:
|
|
3596
|
-
onFilter:
|
|
3584
|
+
onSelect: s,
|
|
3585
|
+
onFilter: i,
|
|
3597
3586
|
searchPhrase: m,
|
|
3598
3587
|
virtualItemRef: g
|
|
3599
3588
|
}) => {
|
|
3600
|
-
const
|
|
3589
|
+
const v = t && !a, b = e.useRef(null);
|
|
3601
3590
|
e.useEffect(() => {
|
|
3602
|
-
c && (
|
|
3591
|
+
c && (i(""), b.current && (b.current.value = "", b.current.focus()));
|
|
3603
3592
|
}, [o, c]);
|
|
3604
3593
|
const f = (E) => l === "single" && t && !a ? null : E != null && E.customElement ? /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__item`] }, E.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__item`] }, E.icon && /* @__PURE__ */ e.createElement(
|
|
3605
|
-
|
|
3594
|
+
T,
|
|
3606
3595
|
{
|
|
3607
3596
|
source: E.icon,
|
|
3608
3597
|
className: oe[`${le}__item__icon`]
|
|
@@ -3614,10 +3603,10 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3614
3603
|
alt: "",
|
|
3615
3604
|
className: oe[`${le}__item__avatar`]
|
|
3616
3605
|
}
|
|
3617
|
-
), /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__item__content`] }, E.name)), p = (E) =>
|
|
3606
|
+
), /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__item__content`] }, E.name)), p = (E) => i(E.target.value), y = (E) => {
|
|
3618
3607
|
var w, x;
|
|
3619
|
-
(w = g.current) != null && w.id && E.key === "Enter" &&
|
|
3620
|
-
},
|
|
3608
|
+
(w = g.current) != null && w.id && E.key === "Enter" && s((x = g.current) == null ? void 0 : x.id), l === "multi" && (E.key === "Backspace" || E.key === "Delete") && !m && o && (o == null ? void 0 : o.length) > 0 && n(o[o.length - 1].key);
|
|
3609
|
+
}, h = () => /* @__PURE__ */ e.createElement(
|
|
3621
3610
|
"input",
|
|
3622
3611
|
{
|
|
3623
3612
|
ref: b,
|
|
@@ -3632,7 +3621,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3632
3621
|
value: m
|
|
3633
3622
|
}
|
|
3634
3623
|
);
|
|
3635
|
-
return !o || o.length === 0 ?
|
|
3624
|
+
return !o || o.length === 0 ? v ? h() : /* @__PURE__ */ e.createElement(
|
|
3636
3625
|
"div",
|
|
3637
3626
|
{
|
|
3638
3627
|
className: u({
|
|
@@ -3649,7 +3638,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3649
3638
|
})
|
|
3650
3639
|
},
|
|
3651
3640
|
/* @__PURE__ */ e.createElement("div", { className: oe[`${le}__item-container`] }, l === "single" ? f(o[0]) : o.map((E) => /* @__PURE__ */ e.createElement(
|
|
3652
|
-
|
|
3641
|
+
Nr,
|
|
3653
3642
|
{
|
|
3654
3643
|
key: E.name,
|
|
3655
3644
|
className: u(
|
|
@@ -3663,7 +3652,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3663
3652
|
},
|
|
3664
3653
|
f(E)
|
|
3665
3654
|
))),
|
|
3666
|
-
|
|
3655
|
+
v && h()
|
|
3667
3656
|
);
|
|
3668
3657
|
}, Jo = {
|
|
3669
3658
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___2EDne"
|
|
@@ -3678,16 +3667,16 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3678
3667
|
selected: c,
|
|
3679
3668
|
size: d = "medium",
|
|
3680
3669
|
placeholder: n = "Select option",
|
|
3681
|
-
isRequired:
|
|
3682
|
-
noSearchResultText:
|
|
3670
|
+
isRequired: s,
|
|
3671
|
+
noSearchResultText: i = "No results found",
|
|
3683
3672
|
selectAllOptionText: m,
|
|
3684
3673
|
type: g = "single",
|
|
3685
|
-
searchDisabled:
|
|
3674
|
+
searchDisabled: v = !1,
|
|
3686
3675
|
hideClearButton: b,
|
|
3687
3676
|
openedOnInit: f = !1,
|
|
3688
3677
|
clearSearchAfterSelection: p,
|
|
3689
3678
|
onSelect: y,
|
|
3690
|
-
floatingStrategy:
|
|
3679
|
+
floatingStrategy: h,
|
|
3691
3680
|
useDismissHookProps: E,
|
|
3692
3681
|
useClickHookProps: w,
|
|
3693
3682
|
virtuosoProps: x
|
|
@@ -3737,7 +3726,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3737
3726
|
}, [ve, l, g, m]), K = W.length > 0, { refs: Q, floatingStyles: Re, context: Xe, isPositioned: ca } = jt({
|
|
3738
3727
|
nodeId: P,
|
|
3739
3728
|
open: R,
|
|
3740
|
-
strategy:
|
|
3729
|
+
strategy: h,
|
|
3741
3730
|
onOpenChange: (G) => {
|
|
3742
3731
|
B(G);
|
|
3743
3732
|
},
|
|
@@ -3745,7 +3734,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3745
3734
|
middleware: [
|
|
3746
3735
|
Zt(4),
|
|
3747
3736
|
ea({ padding: 10 }),
|
|
3748
|
-
|
|
3737
|
+
Fa(),
|
|
3749
3738
|
Jr({
|
|
3750
3739
|
apply({ availableHeight: G, rects: he, elements: me }) {
|
|
3751
3740
|
fr.flushSync(() => {
|
|
@@ -3776,8 +3765,8 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3776
3765
|
[na, ia, sa, da]
|
|
3777
3766
|
), gt = (G) => {
|
|
3778
3767
|
const he = W.find((me) => me.key === G);
|
|
3779
|
-
!he || he.disabled || (g === "single" ? (B(!1), de(() => (y([he]), [G]))) : G === Tt ? $e.length ===
|
|
3780
|
-
const me =
|
|
3768
|
+
!he || he.disabled || (g === "single" ? (B(!1), de(() => (y([he]), [G]))) : G === Tt ? $e.length === Pa(W).length ? de(() => (y(null), [])) : de(() => {
|
|
3769
|
+
const me = Pa(W);
|
|
3781
3770
|
return y(me), me.map(({ key: rt }) => rt);
|
|
3782
3771
|
}) : de((me) => {
|
|
3783
3772
|
const rt = me.includes(G) ? me.filter((Pt) => Pt !== G) : [...me, G];
|
|
@@ -3798,7 +3787,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3798
3787
|
hideClearButton: b,
|
|
3799
3788
|
isDisabled: _,
|
|
3800
3789
|
isError: o,
|
|
3801
|
-
isRequired:
|
|
3790
|
+
isRequired: s,
|
|
3802
3791
|
isMultiSelect: g === "multi",
|
|
3803
3792
|
size: d
|
|
3804
3793
|
},
|
|
@@ -3806,7 +3795,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3806
3795
|
Ko,
|
|
3807
3796
|
{
|
|
3808
3797
|
isOpen: R,
|
|
3809
|
-
isSearchDisabled:
|
|
3798
|
+
isSearchDisabled: v,
|
|
3810
3799
|
isDisabled: _,
|
|
3811
3800
|
placeholder: n,
|
|
3812
3801
|
selectedItems: c,
|
|
@@ -3839,7 +3828,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3839
3828
|
onSelect: gt,
|
|
3840
3829
|
getFloatingProps: ma,
|
|
3841
3830
|
getItemProps: pa,
|
|
3842
|
-
emptyStateText:
|
|
3831
|
+
emptyStateText: i,
|
|
3843
3832
|
virtuosoProps: x
|
|
3844
3833
|
}
|
|
3845
3834
|
))));
|
|
@@ -3855,24 +3844,24 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3855
3844
|
placement: c,
|
|
3856
3845
|
flipOptions: d,
|
|
3857
3846
|
offsetSize: n = 4,
|
|
3858
|
-
isVisible:
|
|
3859
|
-
openedOnInit:
|
|
3847
|
+
isVisible: s,
|
|
3848
|
+
openedOnInit: i,
|
|
3860
3849
|
closeOnEsc: m = !0,
|
|
3861
3850
|
useDismissHookProps: g,
|
|
3862
|
-
useClickHookProps:
|
|
3851
|
+
useClickHookProps: v,
|
|
3863
3852
|
floatingStrategy: b
|
|
3864
3853
|
}) => {
|
|
3865
|
-
const [f, p] = e.useState(
|
|
3854
|
+
const [f, p] = e.useState(i), y = jr(), h = mr(), E = s !== void 0, w = E ? s : f, x = typeof _ == "string", $ = typeof t == "function", F = (Ae, Me) => {
|
|
3866
3855
|
Ae ? r == null || r(Me) : a == null || a(Me), !E && p(Ae);
|
|
3867
3856
|
}, { refs: S, context: R, floatingStyles: B } = jt({
|
|
3868
|
-
nodeId:
|
|
3857
|
+
nodeId: h,
|
|
3869
3858
|
open: w,
|
|
3870
3859
|
onOpenChange: F,
|
|
3871
|
-
middleware: [Zt(n), ea(d),
|
|
3860
|
+
middleware: [Zt(n), ea(d), Fa()],
|
|
3872
3861
|
placement: c,
|
|
3873
3862
|
strategy: b,
|
|
3874
3863
|
whileElementsMounted: ta
|
|
3875
|
-
}), L = aa(R,
|
|
3864
|
+
}), L = aa(R, v), j = ra(R, k({
|
|
3876
3865
|
escapeKey: m
|
|
3877
3866
|
}, g)), $e = _a(R), { getReferenceProps: de, getFloatingProps: Be } = oa([
|
|
3878
3867
|
L,
|
|
@@ -3880,14 +3869,14 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3880
3869
|
$e
|
|
3881
3870
|
]), Pe = u(jo.popover, o), ve = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3882
3871
|
"div",
|
|
3883
|
-
|
|
3872
|
+
N(k({
|
|
3884
3873
|
"data-testid": "popover-trigger-button",
|
|
3885
3874
|
ref: S.setReference
|
|
3886
3875
|
}, de()), {
|
|
3887
3876
|
className: l
|
|
3888
3877
|
}),
|
|
3889
3878
|
$ ? t() : t
|
|
3890
|
-
), /* @__PURE__ */ e.createElement(pr, { id:
|
|
3879
|
+
), /* @__PURE__ */ e.createElement(pr, { id: h }, w && /* @__PURE__ */ e.createElement(Sa, { context: R, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
3891
3880
|
"div",
|
|
3892
3881
|
k({
|
|
3893
3882
|
className: Pe,
|
|
@@ -3902,7 +3891,7 @@ const Tt = "select-all", Ro = (t, a) => {
|
|
|
3902
3891
|
"error",
|
|
3903
3892
|
"success"
|
|
3904
3893
|
], el = (t) => Math.min(Math.max(t, 0), 100);
|
|
3905
|
-
function
|
|
3894
|
+
function Cr(t, a = 0) {
|
|
3906
3895
|
return t === "error" ? 0 : el(parseInt(a.toString(), 10));
|
|
3907
3896
|
}
|
|
3908
3897
|
function xr(t, a) {
|
|
@@ -3927,7 +3916,7 @@ const wt = {
|
|
|
3927
3916
|
small: 15,
|
|
3928
3917
|
medium: 36,
|
|
3929
3918
|
large: 56
|
|
3930
|
-
},
|
|
3919
|
+
}, Nt = "progress-circle", rl = e.forwardRef(
|
|
3931
3920
|
(c, l) => {
|
|
3932
3921
|
var d = c, {
|
|
3933
3922
|
status: t = "normal",
|
|
@@ -3940,16 +3929,16 @@ const wt = {
|
|
|
3940
3929
|
"className",
|
|
3941
3930
|
"size"
|
|
3942
3931
|
]);
|
|
3943
|
-
const n = xr(t, a),
|
|
3944
|
-
wt[
|
|
3932
|
+
const n = xr(t, a), s = Cr(n, a), i = tl[_], m = al[_], g = u(
|
|
3933
|
+
wt[Nt],
|
|
3945
3934
|
{
|
|
3946
|
-
[wt[`${
|
|
3947
|
-
[wt[`${
|
|
3935
|
+
[wt[`${Nt}--${_}`]]: _,
|
|
3936
|
+
[wt[`${Nt}--${t}`]]: t
|
|
3948
3937
|
},
|
|
3949
3938
|
r
|
|
3950
|
-
),
|
|
3951
|
-
strokeDasharray:
|
|
3952
|
-
strokeDashoffset: `${((100 -
|
|
3939
|
+
), v = 2 * Math.PI * ((m - i) / 2), b = {
|
|
3940
|
+
strokeDasharray: v.toFixed(3),
|
|
3941
|
+
strokeDashoffset: `${((100 - s) / 100 * v).toFixed(3)}px`
|
|
3953
3942
|
}, f = `${m / 2} ${m / 2} ${m} ${m}`;
|
|
3954
3943
|
return /* @__PURE__ */ e.createElement(
|
|
3955
3944
|
"div",
|
|
@@ -3961,23 +3950,23 @@ const wt = {
|
|
|
3961
3950
|
/* @__PURE__ */ e.createElement("svg", { viewBox: f }, /* @__PURE__ */ e.createElement(
|
|
3962
3951
|
"circle",
|
|
3963
3952
|
{
|
|
3964
|
-
className: wt[`${
|
|
3953
|
+
className: wt[`${Nt}__bg-line--${t}`],
|
|
3965
3954
|
cx: m,
|
|
3966
3955
|
cy: m,
|
|
3967
|
-
r: (m -
|
|
3956
|
+
r: (m - i) / 2,
|
|
3968
3957
|
fill: "none",
|
|
3969
|
-
strokeWidth:
|
|
3958
|
+
strokeWidth: i
|
|
3970
3959
|
}
|
|
3971
3960
|
), /* @__PURE__ */ e.createElement(
|
|
3972
3961
|
"circle",
|
|
3973
3962
|
{
|
|
3974
|
-
className: wt[`${
|
|
3963
|
+
className: wt[`${Nt}__indicator--${t}`],
|
|
3975
3964
|
style: b,
|
|
3976
3965
|
cx: m,
|
|
3977
3966
|
cy: m,
|
|
3978
|
-
r: (m -
|
|
3967
|
+
r: (m - i) / 2,
|
|
3979
3968
|
fill: "none",
|
|
3980
|
-
strokeWidth:
|
|
3969
|
+
strokeWidth: i
|
|
3981
3970
|
}
|
|
3982
3971
|
))
|
|
3983
3972
|
);
|
|
@@ -4005,7 +3994,7 @@ const wt = {
|
|
|
4005
3994
|
"size",
|
|
4006
3995
|
"className"
|
|
4007
3996
|
]);
|
|
4008
|
-
const n = xr(t, a),
|
|
3997
|
+
const n = xr(t, a), s = Cr(n, a), i = u(
|
|
4009
3998
|
Wt[Vt],
|
|
4010
3999
|
{
|
|
4011
4000
|
[Wt[`${Vt}--${r}`]]: r,
|
|
@@ -4015,8 +4004,8 @@ const wt = {
|
|
|
4015
4004
|
);
|
|
4016
4005
|
return /* @__PURE__ */ e.createElement(
|
|
4017
4006
|
"div",
|
|
4018
|
-
|
|
4019
|
-
className:
|
|
4007
|
+
N(k({}, o), {
|
|
4008
|
+
className: i,
|
|
4020
4009
|
ref: l,
|
|
4021
4010
|
role: "progressbar"
|
|
4022
4011
|
}),
|
|
@@ -4024,7 +4013,7 @@ const wt = {
|
|
|
4024
4013
|
"div",
|
|
4025
4014
|
{
|
|
4026
4015
|
className: Wt[`${Vt}__indicator--${t}`],
|
|
4027
|
-
style: { width: `${
|
|
4016
|
+
style: { width: `${s}%` }
|
|
4028
4017
|
}
|
|
4029
4018
|
)
|
|
4030
4019
|
);
|
|
@@ -4041,7 +4030,7 @@ const wt = {
|
|
|
4041
4030
|
"promo-banner--small": "lc-PromoBanner-module__promo-banner--small___7sWLV",
|
|
4042
4031
|
"promo-banner--large": "lc-PromoBanner-module__promo-banner--large___pMiCU",
|
|
4043
4032
|
"promo-banner__close-icon": "lc-PromoBanner-module__promo-banner__close-icon___GowBL"
|
|
4044
|
-
}, ol = 400, ll = 800, cl = 500,
|
|
4033
|
+
}, ol = 400, ll = 800, cl = 500, Ne = "promo-banner", Pc = ({
|
|
4045
4034
|
className: t,
|
|
4046
4035
|
buttonText: a,
|
|
4047
4036
|
children: r,
|
|
@@ -4051,19 +4040,19 @@ const wt = {
|
|
|
4051
4040
|
linkText: c,
|
|
4052
4041
|
onButtonClick: d,
|
|
4053
4042
|
onClose: n,
|
|
4054
|
-
onLinkClick:
|
|
4043
|
+
onLinkClick: s
|
|
4055
4044
|
}) => {
|
|
4056
|
-
const
|
|
4057
|
-
we[
|
|
4045
|
+
const i = e.useRef(null), [m, g] = e.useState("medium"), v = u(
|
|
4046
|
+
we[Ne],
|
|
4058
4047
|
{
|
|
4059
|
-
[we[`${
|
|
4060
|
-
[we[`${
|
|
4061
|
-
[we[`${
|
|
4048
|
+
[we[`${Ne}--light`]]: l,
|
|
4049
|
+
[we[`${Ne}--small`]]: m === "small",
|
|
4050
|
+
[we[`${Ne}--large`]]: m === "large"
|
|
4062
4051
|
},
|
|
4063
4052
|
t
|
|
4064
4053
|
);
|
|
4065
4054
|
e.useEffect(() => {
|
|
4066
|
-
const f = () =>
|
|
4055
|
+
const f = () => i.current && i.current.offsetWidth <= ol ? g("small") : i.current && i.current.offsetWidth >= ll ? g("large") : g("medium"), p = gr(
|
|
4067
4056
|
f,
|
|
4068
4057
|
cl
|
|
4069
4058
|
);
|
|
@@ -4071,24 +4060,24 @@ const wt = {
|
|
|
4071
4060
|
p.cancel(), window.removeEventListener("resize", f);
|
|
4072
4061
|
};
|
|
4073
4062
|
}, []);
|
|
4074
|
-
const b = /* @__PURE__ */ e.createElement("div", { className: we[`${
|
|
4063
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: we[`${Ne}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
4075
4064
|
U,
|
|
4076
4065
|
{
|
|
4077
4066
|
kind: "primary",
|
|
4078
4067
|
size: "compact",
|
|
4079
4068
|
onClick: d,
|
|
4080
|
-
className: we[`${
|
|
4069
|
+
className: we[`${Ne}__button-text`]
|
|
4081
4070
|
},
|
|
4082
4071
|
a
|
|
4083
|
-
), c && /* @__PURE__ */ e.createElement(U, { size: "compact", kind: "text", onClick:
|
|
4084
|
-
return /* @__PURE__ */ e.createElement("div", { ref:
|
|
4072
|
+
), c && /* @__PURE__ */ e.createElement(U, { size: "compact", kind: "text", onClick: s }, c));
|
|
4073
|
+
return /* @__PURE__ */ e.createElement("div", { ref: i, className: v }, /* @__PURE__ */ e.createElement("div", { className: we[`${Ne}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: we[`${Ne}__img`] }), /* @__PURE__ */ e.createElement("div", { className: we[`${Ne}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: we[`${Ne}__header`] }, _), /* @__PURE__ */ e.createElement(M, { as: "div" }, r), m !== "large" && b), m === "large" && b), n && /* @__PURE__ */ e.createElement(
|
|
4085
4074
|
"button",
|
|
4086
4075
|
{
|
|
4087
4076
|
type: "button",
|
|
4088
|
-
className: we[`${
|
|
4077
|
+
className: we[`${Ne}__close-icon`],
|
|
4089
4078
|
onClick: n
|
|
4090
4079
|
},
|
|
4091
|
-
/* @__PURE__ */ e.createElement(
|
|
4080
|
+
/* @__PURE__ */ e.createElement(T, { source: Te, size: "large", kind: "primary" })
|
|
4092
4081
|
));
|
|
4093
4082
|
}, He = {
|
|
4094
4083
|
"main-wrapper": "lc-PromoBannerV2-module__main-wrapper___U-dPS",
|
|
@@ -4111,8 +4100,8 @@ const wt = {
|
|
|
4111
4100
|
additionalContentClassName: d,
|
|
4112
4101
|
onClose: n
|
|
4113
4102
|
}) => {
|
|
4114
|
-
const
|
|
4115
|
-
return /* @__PURE__ */ e.createElement("div", { role: "banner", className:
|
|
4103
|
+
const s = u(He["main-wrapper"], a);
|
|
4104
|
+
return /* @__PURE__ */ e.createElement("div", { role: "banner", className: s }, /* @__PURE__ */ e.createElement(
|
|
4116
4105
|
"div",
|
|
4117
4106
|
{
|
|
4118
4107
|
className: u(
|
|
@@ -4151,7 +4140,7 @@ const wt = {
|
|
|
4151
4140
|
{
|
|
4152
4141
|
className: He[`${qe}__close__btn`],
|
|
4153
4142
|
onClick: n,
|
|
4154
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
4143
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: Te, kind: "primary" }),
|
|
4155
4144
|
kind: "plain",
|
|
4156
4145
|
size: "compact"
|
|
4157
4146
|
}
|
|
@@ -4170,13 +4159,13 @@ const wt = {
|
|
|
4170
4159
|
}, Ge = "radio-button", Ic = e.forwardRef(
|
|
4171
4160
|
(d, c) => {
|
|
4172
4161
|
var n = d, { children: t, className: a = "", description: r, checked: _, disabled: o } = n, l = A(n, ["children", "className", "description", "checked", "disabled"]);
|
|
4173
|
-
const
|
|
4162
|
+
const s = u(ze[Ge], a, {
|
|
4174
4163
|
[ze[`${Ge}--selected`]]: _,
|
|
4175
4164
|
[ze[`${Ge}--disabled`]]: o
|
|
4176
4165
|
});
|
|
4177
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
4166
|
+
return /* @__PURE__ */ e.createElement("div", { className: s }, /* @__PURE__ */ e.createElement("label", { className: ze[`${Ge}__label`] }, /* @__PURE__ */ e.createElement("div", { className: ze[`${Ge}__circle`] }, /* @__PURE__ */ e.createElement("span", { className: ze[`${Ge}__inner-circle`] }), /* @__PURE__ */ e.createElement(
|
|
4178
4167
|
"input",
|
|
4179
|
-
|
|
4168
|
+
N(k({}, l), {
|
|
4180
4169
|
className: ze[`${Ge}__input`],
|
|
4181
4170
|
ref: c,
|
|
4182
4171
|
type: "radio",
|
|
@@ -4208,30 +4197,30 @@ const wt = {
|
|
|
4208
4197
|
className: c,
|
|
4209
4198
|
onChange: d
|
|
4210
4199
|
}) => {
|
|
4211
|
-
const [n,
|
|
4200
|
+
const [n, s] = e.useState(!0), [i, m] = e.useState(!1), g = e.useRef(null), v = !!l && !a && !r, b = t && !n && "true", f = u(
|
|
4212
4201
|
c,
|
|
4213
4202
|
Fe[xe],
|
|
4214
4203
|
Fe[`${xe}--${o}`],
|
|
4215
|
-
|
|
4204
|
+
i && Fe[`${xe}--focused`],
|
|
4216
4205
|
a && Fe[`${xe}--disabled`],
|
|
4217
4206
|
t && Fe[`${xe}--collapsable`],
|
|
4218
4207
|
!n && Fe[`${xe}--collapsable--open`]
|
|
4219
4208
|
);
|
|
4220
4209
|
e.useEffect(() => {
|
|
4221
|
-
t && l &&
|
|
4210
|
+
t && l && s(!1);
|
|
4222
4211
|
}, [t]);
|
|
4223
4212
|
const p = ($) => {
|
|
4224
4213
|
const F = $.currentTarget.value;
|
|
4225
4214
|
d(F);
|
|
4226
4215
|
}, y = () => {
|
|
4227
4216
|
d("");
|
|
4228
|
-
},
|
|
4217
|
+
}, h = () => {
|
|
4229
4218
|
var $;
|
|
4230
4219
|
($ = g.current) == null || $.focus();
|
|
4231
4220
|
}, E = () => {
|
|
4232
|
-
t &&
|
|
4221
|
+
t && s(!1), m(!0);
|
|
4233
4222
|
}, w = () => {
|
|
4234
|
-
t && !l &&
|
|
4223
|
+
t && !l && s(!0), m(!1);
|
|
4235
4224
|
}, x = ($) => {
|
|
4236
4225
|
$.key === re.enter && ($.preventDefault(), d(l));
|
|
4237
4226
|
};
|
|
@@ -4241,10 +4230,10 @@ const wt = {
|
|
|
4241
4230
|
"aria-expanded": b,
|
|
4242
4231
|
role: "search",
|
|
4243
4232
|
className: f,
|
|
4244
|
-
onClick:
|
|
4233
|
+
onClick: h
|
|
4245
4234
|
},
|
|
4246
4235
|
/* @__PURE__ */ e.createElement(
|
|
4247
|
-
|
|
4236
|
+
T,
|
|
4248
4237
|
{
|
|
4249
4238
|
className: Fe[`${xe}__search-icon`],
|
|
4250
4239
|
source: Hr,
|
|
@@ -4268,14 +4257,14 @@ const wt = {
|
|
|
4268
4257
|
disabled: a
|
|
4269
4258
|
}
|
|
4270
4259
|
),
|
|
4271
|
-
|
|
4260
|
+
v && /* @__PURE__ */ e.createElement(
|
|
4272
4261
|
U,
|
|
4273
4262
|
{
|
|
4274
4263
|
"aria-label": "Clear search",
|
|
4275
4264
|
title: "Clear search",
|
|
4276
4265
|
className: Fe[`${xe}__clear-icon`],
|
|
4277
4266
|
onClick: y,
|
|
4278
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
4267
|
+
icon: /* @__PURE__ */ e.createElement(T, { source: Te, kind: "primary" }),
|
|
4279
4268
|
kind: "text",
|
|
4280
4269
|
size: "compact"
|
|
4281
4270
|
}
|
|
@@ -4286,7 +4275,7 @@ const wt = {
|
|
|
4286
4275
|
"data-testid": `${xe}-loader`,
|
|
4287
4276
|
className: Fe[`${xe}__loader`]
|
|
4288
4277
|
},
|
|
4289
|
-
/* @__PURE__ */ e.createElement(
|
|
4278
|
+
/* @__PURE__ */ e.createElement(Ra, { size: "small" })
|
|
4290
4279
|
)
|
|
4291
4280
|
);
|
|
4292
4281
|
}, sl = "lc-Switch-module__switch__input___NiiOR", il = "lc-Switch-module__switch__container___79F7W", dl = "lc-Switch-module__switch__track___2wr2M", ul = "lc-Switch-module__switch__slider___WHd--", ml = "lc-Switch-module__switch__loader___FE-fA", pl = "lc-Switch-module__switch__icon___-O1qY", ce = {
|
|
@@ -4328,8 +4317,8 @@ const wt = {
|
|
|
4328
4317
|
size: c = "large",
|
|
4329
4318
|
state: d = "regular",
|
|
4330
4319
|
innerRef: n,
|
|
4331
|
-
ariaLabel:
|
|
4332
|
-
} = g,
|
|
4320
|
+
ariaLabel: s
|
|
4321
|
+
} = g, i = A(g, [
|
|
4333
4322
|
"className",
|
|
4334
4323
|
"defaultOn",
|
|
4335
4324
|
"disabled",
|
|
@@ -4341,14 +4330,14 @@ const wt = {
|
|
|
4341
4330
|
"innerRef",
|
|
4342
4331
|
"ariaLabel"
|
|
4343
4332
|
]);
|
|
4344
|
-
const
|
|
4345
|
-
() =>
|
|
4346
|
-
), p =
|
|
4333
|
+
const v = o !== void 0, [b, f] = e.useState(
|
|
4334
|
+
() => v ? o : a
|
|
4335
|
+
), p = v ? o : b, y = d === "loading", h = d === "locked", E = c === "large" ? "small" : "xsmall", w = p ? "on" : "off", x = r || y || h, $ = x ? "disabled" : "enabled", F = u(
|
|
4347
4336
|
ce[ae],
|
|
4348
4337
|
ce[`${ae}--${c}`],
|
|
4349
4338
|
t
|
|
4350
4339
|
), S = (R) => {
|
|
4351
|
-
l == null || l(R, !p),
|
|
4340
|
+
l == null || l(R, !p), v || (R.stopPropagation(), f((B) => !B));
|
|
4352
4341
|
};
|
|
4353
4342
|
return /* @__PURE__ */ e.createElement("span", { className: F }, /* @__PURE__ */ e.createElement(
|
|
4354
4343
|
"input",
|
|
@@ -4363,8 +4352,8 @@ const wt = {
|
|
|
4363
4352
|
name: _,
|
|
4364
4353
|
ref: n,
|
|
4365
4354
|
disabled: x,
|
|
4366
|
-
"aria-label":
|
|
4367
|
-
},
|
|
4355
|
+
"aria-label": s
|
|
4356
|
+
}, i)
|
|
4368
4357
|
), /* @__PURE__ */ e.createElement("span", { className: ce[`${ae}__container`] }, /* @__PURE__ */ e.createElement(
|
|
4369
4358
|
"span",
|
|
4370
4359
|
{
|
|
@@ -4384,7 +4373,7 @@ const wt = {
|
|
|
4384
4373
|
)
|
|
4385
4374
|
},
|
|
4386
4375
|
y && /* @__PURE__ */ e.createElement(
|
|
4387
|
-
|
|
4376
|
+
Ra,
|
|
4388
4377
|
{
|
|
4389
4378
|
className: u(
|
|
4390
4379
|
ce[`${ae}__loader`],
|
|
@@ -4392,8 +4381,8 @@ const wt = {
|
|
|
4392
4381
|
)
|
|
4393
4382
|
}
|
|
4394
4383
|
),
|
|
4395
|
-
|
|
4396
|
-
|
|
4384
|
+
h && /* @__PURE__ */ e.createElement(
|
|
4385
|
+
T,
|
|
4397
4386
|
{
|
|
4398
4387
|
className: ce[`${ae}__icon`],
|
|
4399
4388
|
"data-testid": "lock-icon",
|
|
@@ -4428,10 +4417,10 @@ const wt = {
|
|
|
4428
4417
|
"asBadge",
|
|
4429
4418
|
"size"
|
|
4430
4419
|
]);
|
|
4431
|
-
const { disabled:
|
|
4420
|
+
const { disabled: s } = c, i = r !== void 0 && !o, m = r !== void 0 && o;
|
|
4432
4421
|
return /* @__PURE__ */ e.createElement(
|
|
4433
4422
|
M,
|
|
4434
|
-
|
|
4423
|
+
N(k({}, c), {
|
|
4435
4424
|
as: c.href ? "a" : "button",
|
|
4436
4425
|
size: "md",
|
|
4437
4426
|
bold: _,
|
|
@@ -4440,11 +4429,11 @@ const wt = {
|
|
|
4440
4429
|
it[dt],
|
|
4441
4430
|
it[`${dt}--${l}`],
|
|
4442
4431
|
_ && it[`${dt}--selected`],
|
|
4443
|
-
|
|
4432
|
+
s && it[`${dt}--disabled`]
|
|
4444
4433
|
)
|
|
4445
4434
|
}),
|
|
4446
4435
|
t,
|
|
4447
|
-
|
|
4436
|
+
i && /* @__PURE__ */ e.createElement(M, { as: "span", size: "md", className: it[`${dt}__count`] }, "(", r, ")"),
|
|
4448
4437
|
m && /* @__PURE__ */ e.createElement(
|
|
4449
4438
|
U_,
|
|
4450
4439
|
{
|
|
@@ -4472,17 +4461,17 @@ const wt = {
|
|
|
4472
4461
|
remove: o,
|
|
4473
4462
|
value: l
|
|
4474
4463
|
}) => {
|
|
4475
|
-
const [c, d] = e.useState(!1), n = () => a.current,
|
|
4464
|
+
const [c, d] = e.useState(!1), n = () => a.current, s = () => {
|
|
4476
4465
|
const b = n();
|
|
4477
4466
|
return b ? b.innerText : "";
|
|
4478
|
-
},
|
|
4467
|
+
}, i = () => {
|
|
4479
4468
|
r && r.current && r.current.focus();
|
|
4480
4469
|
}, m = (b) => {
|
|
4481
4470
|
if (b.key === re.enter) {
|
|
4482
|
-
b.preventDefault(),
|
|
4471
|
+
b.preventDefault(), i();
|
|
4483
4472
|
return;
|
|
4484
4473
|
}
|
|
4485
|
-
b.key === re.backspace &&
|
|
4474
|
+
b.key === re.backspace && s() === "" && (d(!0), o(), i());
|
|
4486
4475
|
}, g = () => {
|
|
4487
4476
|
const b = n();
|
|
4488
4477
|
if (!(c || !b)) {
|
|
@@ -4492,10 +4481,10 @@ const wt = {
|
|
|
4492
4481
|
}
|
|
4493
4482
|
_(b.innerText);
|
|
4494
4483
|
}
|
|
4495
|
-
},
|
|
4484
|
+
}, v = (b) => {
|
|
4496
4485
|
b.preventDefault();
|
|
4497
4486
|
const f = b.clipboardData.getData("text/plain");
|
|
4498
|
-
document.execCommand("insertHTML", !1,
|
|
4487
|
+
document.execCommand("insertHTML", !1, Ua(f));
|
|
4499
4488
|
};
|
|
4500
4489
|
return /* @__PURE__ */ e.createElement(
|
|
4501
4490
|
"div",
|
|
@@ -4503,10 +4492,10 @@ const wt = {
|
|
|
4503
4492
|
ref: a,
|
|
4504
4493
|
className: t,
|
|
4505
4494
|
contentEditable: !0,
|
|
4506
|
-
onPaste:
|
|
4495
|
+
onPaste: v,
|
|
4507
4496
|
onBlur: g,
|
|
4508
4497
|
onKeyDown: m,
|
|
4509
|
-
dangerouslySetInnerHTML: { __html:
|
|
4498
|
+
dangerouslySetInnerHTML: { __html: Ua(l) }
|
|
4510
4499
|
}
|
|
4511
4500
|
);
|
|
4512
4501
|
}, St = {
|
|
@@ -4525,14 +4514,14 @@ const wt = {
|
|
|
4525
4514
|
update: l,
|
|
4526
4515
|
size: c
|
|
4527
4516
|
}) => {
|
|
4528
|
-
const d = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), n = e.useRef(null),
|
|
4517
|
+
const d = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), n = e.useRef(null), s = () => r(a);
|
|
4529
4518
|
return /* @__PURE__ */ e.createElement(
|
|
4530
|
-
|
|
4519
|
+
Nr,
|
|
4531
4520
|
{
|
|
4532
4521
|
kind: d ? "default" : "error",
|
|
4533
4522
|
dismissible: !0,
|
|
4534
4523
|
size: c,
|
|
4535
|
-
onRemove:
|
|
4524
|
+
onRemove: s
|
|
4536
4525
|
},
|
|
4537
4526
|
/* @__PURE__ */ e.createElement(
|
|
4538
4527
|
kl,
|
|
@@ -4541,8 +4530,8 @@ const wt = {
|
|
|
4541
4530
|
inputRef: o,
|
|
4542
4531
|
innerEditableRef: n,
|
|
4543
4532
|
className: St[`${yl}__content`],
|
|
4544
|
-
change: (
|
|
4545
|
-
remove:
|
|
4533
|
+
change: (i) => l(a, i),
|
|
4534
|
+
remove: s,
|
|
4546
4535
|
validator: _
|
|
4547
4536
|
}
|
|
4548
4537
|
)
|
|
@@ -4553,8 +4542,8 @@ const wt = {
|
|
|
4553
4542
|
re.tab,
|
|
4554
4543
|
re.semicolon,
|
|
4555
4544
|
re.comma
|
|
4556
|
-
], wl = [re.backspace, re.delete],
|
|
4557
|
-
var
|
|
4545
|
+
], wl = [re.backspace, re.delete], Nl = (g) => {
|
|
4546
|
+
var v = g, {
|
|
4558
4547
|
id: t,
|
|
4559
4548
|
tags: a,
|
|
4560
4549
|
onChange: r,
|
|
@@ -4564,9 +4553,9 @@ const wt = {
|
|
|
4564
4553
|
size: c = "medium",
|
|
4565
4554
|
className: d,
|
|
4566
4555
|
inputClassName: n,
|
|
4567
|
-
onBlur:
|
|
4568
|
-
addOnBlur:
|
|
4569
|
-
} =
|
|
4556
|
+
onBlur: s,
|
|
4557
|
+
addOnBlur: i = !0
|
|
4558
|
+
} = v, m = A(v, [
|
|
4570
4559
|
"id",
|
|
4571
4560
|
"tags",
|
|
4572
4561
|
"onChange",
|
|
@@ -4589,7 +4578,7 @@ const wt = {
|
|
|
4589
4578
|
n,
|
|
4590
4579
|
St[`${Yt}__input`],
|
|
4591
4580
|
St[`${Yt}__input--${c}`]
|
|
4592
|
-
), [p, y] = e.useState(""),
|
|
4581
|
+
), [p, y] = e.useState(""), h = e.useRef(null), E = (B) => {
|
|
4593
4582
|
r([...a || [], B]), y("");
|
|
4594
4583
|
}, w = (B) => {
|
|
4595
4584
|
const L = [...a || []];
|
|
@@ -4605,7 +4594,7 @@ const wt = {
|
|
|
4605
4594
|
w(a.length - 1);
|
|
4606
4595
|
}
|
|
4607
4596
|
}, F = (B) => {
|
|
4608
|
-
|
|
4597
|
+
i && E(p), s == null || s(B);
|
|
4609
4598
|
}, S = (B, L) => {
|
|
4610
4599
|
const j = [...a || []];
|
|
4611
4600
|
j.reduce(
|
|
@@ -4624,16 +4613,16 @@ const wt = {
|
|
|
4624
4613
|
key: `${L}${B}`,
|
|
4625
4614
|
update: S,
|
|
4626
4615
|
remove: w,
|
|
4627
|
-
inputRef:
|
|
4616
|
+
inputRef: h,
|
|
4628
4617
|
validator: _,
|
|
4629
4618
|
size: c
|
|
4630
4619
|
},
|
|
4631
4620
|
B
|
|
4632
4621
|
)), /* @__PURE__ */ e.createElement(
|
|
4633
4622
|
"input",
|
|
4634
|
-
|
|
4623
|
+
N(k({}, m), {
|
|
4635
4624
|
id: t,
|
|
4636
|
-
ref:
|
|
4625
|
+
ref: h,
|
|
4637
4626
|
className: f,
|
|
4638
4627
|
placeholder: l,
|
|
4639
4628
|
value: p,
|
|
@@ -4642,8 +4631,8 @@ const wt = {
|
|
|
4642
4631
|
onPaste: R,
|
|
4643
4632
|
onBlur: F
|
|
4644
4633
|
})
|
|
4645
|
-
)), o && /* @__PURE__ */ e.createElement(
|
|
4646
|
-
},
|
|
4634
|
+
)), o && /* @__PURE__ */ e.createElement(La, null, o));
|
|
4635
|
+
}, Cl = /^(?:[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, xl = "name@company.com", Sl = (t) => Cl.test(t), Hc = (d) => {
|
|
4647
4636
|
var n = d, {
|
|
4648
4637
|
id: t,
|
|
4649
4638
|
tags: a,
|
|
@@ -4660,8 +4649,8 @@ const wt = {
|
|
|
4660
4649
|
"size"
|
|
4661
4650
|
]);
|
|
4662
4651
|
return /* @__PURE__ */ e.createElement(
|
|
4663
|
-
|
|
4664
|
-
|
|
4652
|
+
Nl,
|
|
4653
|
+
N(k({}, c), {
|
|
4665
4654
|
id: t,
|
|
4666
4655
|
tags: a,
|
|
4667
4656
|
error: _,
|
|
@@ -4703,16 +4692,16 @@ const wt = {
|
|
|
4703
4692
|
"toast-exit-active--fade": "lc-Toast-module__toast-exit-active--fade___tL7sb"
|
|
4704
4693
|
}, Al = {
|
|
4705
4694
|
success: {
|
|
4706
|
-
source:
|
|
4695
|
+
source: sr
|
|
4707
4696
|
},
|
|
4708
4697
|
warning: {
|
|
4709
|
-
source:
|
|
4698
|
+
source: nr
|
|
4710
4699
|
},
|
|
4711
4700
|
error: {
|
|
4712
|
-
source:
|
|
4701
|
+
source: ir
|
|
4713
4702
|
},
|
|
4714
4703
|
info: {
|
|
4715
|
-
source:
|
|
4704
|
+
source: Ia
|
|
4716
4705
|
}
|
|
4717
4706
|
}, Ke = "toast", Il = (d) => {
|
|
4718
4707
|
var n = d, {
|
|
@@ -4730,12 +4719,12 @@ const wt = {
|
|
|
4730
4719
|
"kind",
|
|
4731
4720
|
"onClose"
|
|
4732
4721
|
]);
|
|
4733
|
-
const
|
|
4722
|
+
const s = u(
|
|
4734
4723
|
J[Ke],
|
|
4735
4724
|
J[`${Ke}--${o}`],
|
|
4736
4725
|
a
|
|
4737
|
-
),
|
|
4738
|
-
return /* @__PURE__ */ e.createElement("div", k({ className:
|
|
4726
|
+
), i = typeof r == "string", m = (g) => g && g.closesOnClick && l ? (g.onClick(), l()) : g.onClick();
|
|
4727
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: s }, c), /* @__PURE__ */ e.createElement("div", { className: J[`${Ke}__icon`] }, /* @__PURE__ */ e.createElement(T, N(k({}, Al[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: J[`${Ke}__content`] }, i ? /* @__PURE__ */ e.createElement(M, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: J[`${Ke}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
4739
4728
|
U,
|
|
4740
4729
|
{
|
|
4741
4730
|
className: J[`${Ke}__actions--custom`],
|
|
@@ -4754,9 +4743,9 @@ const wt = {
|
|
|
4754
4743
|
"aria-label": "Close toast",
|
|
4755
4744
|
onClick: l
|
|
4756
4745
|
},
|
|
4757
|
-
/* @__PURE__ */ e.createElement(
|
|
4746
|
+
/* @__PURE__ */ e.createElement(T, { source: Te, size: "medium" })
|
|
4758
4747
|
)));
|
|
4759
|
-
}, Fl = 200,
|
|
4748
|
+
}, Fl = 200, Ct = "toast-wrapper", zc = ({
|
|
4760
4749
|
className: t,
|
|
4761
4750
|
toasts: a = [],
|
|
4762
4751
|
fixed: r = !0,
|
|
@@ -4766,16 +4755,16 @@ const wt = {
|
|
|
4766
4755
|
horizontalPosition: c = "center"
|
|
4767
4756
|
}) => {
|
|
4768
4757
|
const d = u(
|
|
4769
|
-
J[
|
|
4758
|
+
J[Ct],
|
|
4770
4759
|
{
|
|
4771
|
-
[J[`${
|
|
4772
|
-
[J[`${
|
|
4773
|
-
[J[`${
|
|
4774
|
-
[J[`${
|
|
4760
|
+
[J[`${Ct}--fixed`]]: r,
|
|
4761
|
+
[J[`${Ct}--block`]]: !r && _,
|
|
4762
|
+
[J[`${Ct}--horizontal-${c}`]]: c,
|
|
4763
|
+
[J[`${Ct}--vertical-${l}`]]: l
|
|
4775
4764
|
},
|
|
4776
4765
|
t
|
|
4777
4766
|
);
|
|
4778
|
-
return /* @__PURE__ */ e.createElement("div", { className: d }, /* @__PURE__ */ e.createElement(vr, { component: null }, a.map(({ id: n, kind:
|
|
4767
|
+
return /* @__PURE__ */ e.createElement("div", { className: d }, /* @__PURE__ */ e.createElement(vr, { component: null }, a.map(({ id: n, kind: s, content: i, removable: m, action: g, onClose: v }) => /* @__PURE__ */ e.createElement(
|
|
4779
4768
|
hr,
|
|
4780
4769
|
{
|
|
4781
4770
|
key: n,
|
|
@@ -4790,12 +4779,12 @@ const wt = {
|
|
|
4790
4779
|
/* @__PURE__ */ e.createElement(
|
|
4791
4780
|
Il,
|
|
4792
4781
|
{
|
|
4793
|
-
kind:
|
|
4794
|
-
onClose:
|
|
4782
|
+
kind: s,
|
|
4783
|
+
onClose: v,
|
|
4795
4784
|
removable: m,
|
|
4796
4785
|
action: g
|
|
4797
4786
|
},
|
|
4798
|
-
|
|
4787
|
+
i
|
|
4799
4788
|
)
|
|
4800
4789
|
))));
|
|
4801
4790
|
}, Ml = "lc-Textarea-module__textarea___g6U8F", qt = {
|
|
@@ -4806,47 +4795,47 @@ const wt = {
|
|
|
4806
4795
|
}, Kt = "textarea", Gc = e.forwardRef(
|
|
4807
4796
|
(o, _) => {
|
|
4808
4797
|
var l = o, { className: t, error: a } = l, r = A(l, ["className", "error"]);
|
|
4809
|
-
const { disabled: c, onBlur: d, onFocus: n } = r, [
|
|
4798
|
+
const { disabled: c, onBlur: d, onFocus: n } = r, [s, i] = e.useState(!1), m = u(t, qt[Kt], {
|
|
4810
4799
|
[qt[`${Kt}--disabled`]]: c,
|
|
4811
|
-
[qt[`${Kt}--focused`]]:
|
|
4800
|
+
[qt[`${Kt}--focused`]]: s,
|
|
4812
4801
|
[qt[`${Kt}--error`]]: a
|
|
4813
4802
|
}), g = (b) => {
|
|
4814
|
-
|
|
4815
|
-
},
|
|
4816
|
-
|
|
4803
|
+
i(!1), d == null || d(b);
|
|
4804
|
+
}, v = (b) => {
|
|
4805
|
+
i(!0), n == null || n(b);
|
|
4817
4806
|
};
|
|
4818
4807
|
return /* @__PURE__ */ e.createElement("div", { className: m }, /* @__PURE__ */ e.createElement(
|
|
4819
4808
|
"textarea",
|
|
4820
|
-
|
|
4809
|
+
N(k({}, r), {
|
|
4821
4810
|
ref: _,
|
|
4822
|
-
onFocus:
|
|
4811
|
+
onFocus: v,
|
|
4823
4812
|
onBlur: g
|
|
4824
4813
|
})
|
|
4825
4814
|
));
|
|
4826
4815
|
}
|
|
4827
|
-
),
|
|
4816
|
+
), Na = {
|
|
4828
4817
|
"file-upload-progress-actions": "lc-FileUploadProgressActions-module__file-upload-progress-actions___qOBr2",
|
|
4829
4818
|
"file-upload-progress-actions__close-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__close-button___Eh4um",
|
|
4830
4819
|
"file-upload-progress-actions__retry-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__retry-button___DqFEo"
|
|
4831
|
-
},
|
|
4820
|
+
}, Ca = "file-upload-progress-actions", Aa = ({ status: t, onCloseButtonClick: a, onRetryButtonClick: r }) => /* @__PURE__ */ e.createElement("div", { className: Na[`${Ca}`] }, r && t === "error" && /* @__PURE__ */ e.createElement(
|
|
4832
4821
|
"button",
|
|
4833
4822
|
{
|
|
4834
4823
|
type: "button",
|
|
4835
|
-
className:
|
|
4824
|
+
className: Na[`${Ca}__retry-button`],
|
|
4836
4825
|
"aria-label": "Retry",
|
|
4837
4826
|
onClick: r
|
|
4838
4827
|
},
|
|
4839
|
-
/* @__PURE__ */ e.createElement(
|
|
4828
|
+
/* @__PURE__ */ e.createElement(T, { size: "small", source: Gr })
|
|
4840
4829
|
), a && t !== "success" && /* @__PURE__ */ e.createElement(
|
|
4841
4830
|
"button",
|
|
4842
4831
|
{
|
|
4843
4832
|
type: "button",
|
|
4844
|
-
className:
|
|
4833
|
+
className: Na[`${Ca}__close-button`],
|
|
4845
4834
|
"aria-label": "Close",
|
|
4846
4835
|
onClick: a
|
|
4847
4836
|
},
|
|
4848
|
-
/* @__PURE__ */ e.createElement(
|
|
4849
|
-
)),
|
|
4837
|
+
/* @__PURE__ */ e.createElement(T, { size: "small", source: Te })
|
|
4838
|
+
)), Ce = {
|
|
4850
4839
|
"file-upload-progress": "lc-FileUploadProgress-module__file-upload-progress___xw8h8",
|
|
4851
4840
|
"file-upload-progress__icon": "lc-FileUploadProgress-module__file-upload-progress__icon___p8Rfz",
|
|
4852
4841
|
"file-upload-progress__icon--success": "lc-FileUploadProgress-module__file-upload-progress__icon--success___X40uH",
|
|
@@ -4868,28 +4857,28 @@ const wt = {
|
|
|
4868
4857
|
status: c = "normal",
|
|
4869
4858
|
onCloseButtonClick: d,
|
|
4870
4859
|
onRetryButtonClick: n
|
|
4871
|
-
},
|
|
4860
|
+
}, s) => /* @__PURE__ */ e.createElement("div", { className: Ce[Ue], ref: s }, r && c !== "success" && /* @__PURE__ */ e.createElement("div", { className: Ce[`${Ue}__icon`] }, r), c === "success" && /* @__PURE__ */ e.createElement(
|
|
4872
4861
|
"div",
|
|
4873
4862
|
{
|
|
4874
4863
|
className: u(
|
|
4875
|
-
|
|
4876
|
-
|
|
4864
|
+
Ce[`${Ue}__icon`],
|
|
4865
|
+
Ce[`${Ue}__icon--success`]
|
|
4877
4866
|
)
|
|
4878
4867
|
},
|
|
4879
|
-
/* @__PURE__ */ e.createElement(
|
|
4868
|
+
/* @__PURE__ */ e.createElement(T, { source: Qt })
|
|
4880
4869
|
), /* @__PURE__ */ e.createElement(
|
|
4881
4870
|
"div",
|
|
4882
4871
|
{
|
|
4883
|
-
className: u(
|
|
4884
|
-
[
|
|
4872
|
+
className: u(Ce[`${Ue}__wrapper`], {
|
|
4873
|
+
[Ce[`${Ue}__wrapper--with-icon`]]: r
|
|
4885
4874
|
})
|
|
4886
4875
|
},
|
|
4887
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4876
|
+
/* @__PURE__ */ e.createElement("div", { className: Ce[`${Ue}__wrapper__header`] }, _ && /* @__PURE__ */ e.createElement(
|
|
4888
4877
|
"div",
|
|
4889
4878
|
{
|
|
4890
|
-
className: u(
|
|
4891
|
-
[
|
|
4892
|
-
[
|
|
4879
|
+
className: u(Ce[xa], {
|
|
4880
|
+
[Ce[`${xa}--success`]]: c === "success",
|
|
4881
|
+
[Ce[`${xa}--error`]]: c === "error"
|
|
4893
4882
|
})
|
|
4894
4883
|
},
|
|
4895
4884
|
/* @__PURE__ */ e.createElement(M, { size: "sm", as: "div" }, _),
|
|
@@ -4899,11 +4888,11 @@ const wt = {
|
|
|
4899
4888
|
"div",
|
|
4900
4889
|
{
|
|
4901
4890
|
className: u({
|
|
4902
|
-
[
|
|
4891
|
+
[Ce[`${Ue}__wrapper__header__actions`]]: t === "hover"
|
|
4903
4892
|
})
|
|
4904
4893
|
},
|
|
4905
4894
|
/* @__PURE__ */ e.createElement(
|
|
4906
|
-
|
|
4895
|
+
Aa,
|
|
4907
4896
|
{
|
|
4908
4897
|
status: c,
|
|
4909
4898
|
onCloseButtonClick: d,
|
|
@@ -4942,7 +4931,7 @@ const wt = {
|
|
|
4942
4931
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
|
|
4943
4932
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
|
|
4944
4933
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
|
|
4945
|
-
}, ne = "upload-bar", We = `${ne}__wrapper__header`, Ll = 300, Ol = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: z[`${We}__success-icon`] }, /* @__PURE__ */ e.createElement(
|
|
4934
|
+
}, ne = "upload-bar", We = `${ne}__wrapper__header`, Ll = 300, Ol = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: z[`${We}__success-icon`] }, /* @__PURE__ */ e.createElement(T, { source: Qt })) : t === "error" ? /* @__PURE__ */ e.createElement("div", { className: z[`${We}__error-icon`] }, /* @__PURE__ */ e.createElement(T, { source: Ur })) : /* @__PURE__ */ e.createElement(
|
|
4946
4935
|
rl,
|
|
4947
4936
|
{
|
|
4948
4937
|
className: z[`${We}__loader`],
|
|
@@ -4959,15 +4948,15 @@ const wt = {
|
|
|
4959
4948
|
status: c = "normal",
|
|
4960
4949
|
icon: d,
|
|
4961
4950
|
size: n,
|
|
4962
|
-
mode:
|
|
4963
|
-
onCloseButtonClick:
|
|
4951
|
+
mode: s = "multiple",
|
|
4952
|
+
onCloseButtonClick: i,
|
|
4964
4953
|
onRetryButtonClick: m
|
|
4965
4954
|
}) => {
|
|
4966
|
-
const [g,
|
|
4955
|
+
const [g, v] = e.useState(o || !1), b = c === "error", f = c === "success", p = u(z[ne], a, {
|
|
4967
4956
|
[z[`${ne}--error`]]: b,
|
|
4968
4957
|
[z[`${ne}--success`]]: f
|
|
4969
|
-
}), y = !(b && (m ||
|
|
4970
|
-
return
|
|
4958
|
+
}), y = !(b && (m || i)), h = () => v(!g);
|
|
4959
|
+
return s === "single" ? /* @__PURE__ */ e.createElement("div", { className: p }, /* @__PURE__ */ e.createElement("div", { className: z[`${ne}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${We}`] }, /* @__PURE__ */ e.createElement(
|
|
4971
4960
|
Rl,
|
|
4972
4961
|
{
|
|
4973
4962
|
title: b && l || _,
|
|
@@ -4977,31 +4966,31 @@ const wt = {
|
|
|
4977
4966
|
size: n
|
|
4978
4967
|
}
|
|
4979
4968
|
)), c === "error" && /* @__PURE__ */ e.createElement(
|
|
4980
|
-
|
|
4969
|
+
Aa,
|
|
4981
4970
|
{
|
|
4982
4971
|
status: c,
|
|
4983
|
-
onCloseButtonClick:
|
|
4972
|
+
onCloseButtonClick: i,
|
|
4984
4973
|
onRetryButtonClick: m
|
|
4985
4974
|
}
|
|
4986
4975
|
))) : /* @__PURE__ */ e.createElement("div", { className: p }, /* @__PURE__ */ e.createElement(
|
|
4987
4976
|
"div",
|
|
4988
4977
|
{
|
|
4989
4978
|
className: z[`${ne}__wrapper`],
|
|
4990
|
-
onClick:
|
|
4979
|
+
onClick: h
|
|
4991
4980
|
},
|
|
4992
4981
|
/* @__PURE__ */ e.createElement("div", { className: z[`${We}`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${We}__icon`] }, Ol(c, r)), /* @__PURE__ */ e.createElement("div", { className: z[`${We}__title`] }, /* @__PURE__ */ e.createElement(M, { size: "sm", as: "div" }, b ? l : _)), y && /* @__PURE__ */ e.createElement(
|
|
4993
4982
|
"button",
|
|
4994
4983
|
{
|
|
4995
4984
|
className: z[`${We}__collapse-button`],
|
|
4996
4985
|
type: "button",
|
|
4997
|
-
onClick:
|
|
4986
|
+
onClick: h
|
|
4998
4987
|
},
|
|
4999
|
-
g ? /* @__PURE__ */ e.createElement(
|
|
4988
|
+
g ? /* @__PURE__ */ e.createElement(T, { source: Xt }) : /* @__PURE__ */ e.createElement(T, { source: Bt })
|
|
5000
4989
|
), c === "error" && /* @__PURE__ */ e.createElement("div", { className: z[`${We}__actions-container`] }, /* @__PURE__ */ e.createElement(
|
|
5001
|
-
|
|
4990
|
+
Aa,
|
|
5002
4991
|
{
|
|
5003
4992
|
status: c,
|
|
5004
|
-
onCloseButtonClick:
|
|
4993
|
+
onCloseButtonClick: i,
|
|
5005
4994
|
onRetryButtonClick: m
|
|
5006
4995
|
}
|
|
5007
4996
|
)))
|
|
@@ -5039,23 +5028,23 @@ export {
|
|
|
5039
5028
|
cc as Display,
|
|
5040
5029
|
Hc as EmailTagInput,
|
|
5041
5030
|
la as FieldDescription,
|
|
5042
|
-
|
|
5031
|
+
La as FieldError,
|
|
5043
5032
|
kc as FieldGroup,
|
|
5044
5033
|
Rl as FileUploadProgress,
|
|
5045
|
-
|
|
5034
|
+
Aa as FileUploadProgressActions,
|
|
5046
5035
|
yc as Form,
|
|
5047
5036
|
Ec as FormField,
|
|
5048
5037
|
$c as FormGroup,
|
|
5049
5038
|
tt as Heading,
|
|
5050
|
-
|
|
5039
|
+
T as Icon,
|
|
5051
5040
|
sc as Info,
|
|
5052
5041
|
wc as Input,
|
|
5053
5042
|
ic as Interactive,
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
5043
|
+
Nc as Link,
|
|
5044
|
+
Ra as Loader,
|
|
5045
|
+
Cc as Modal,
|
|
5057
5046
|
Fo as ModalBase,
|
|
5058
|
-
|
|
5047
|
+
or as ModalCloseButton,
|
|
5059
5048
|
Sc as ModalHeader,
|
|
5060
5049
|
xc as ModalPortal,
|
|
5061
5050
|
Dc as NumericInput,
|
|
@@ -5079,8 +5068,8 @@ export {
|
|
|
5079
5068
|
Rc as Tab,
|
|
5080
5069
|
Oc as TabsList,
|
|
5081
5070
|
Lc as TabsWrapper,
|
|
5082
|
-
|
|
5083
|
-
|
|
5071
|
+
Nr as Tag,
|
|
5072
|
+
Nl as TagInput,
|
|
5084
5073
|
M as Text,
|
|
5085
5074
|
Gc as Textarea,
|
|
5086
5075
|
Il as Toast,
|