@livechat/design-system-react-components 1.28.1 → 1.28.3
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/index.es.js
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
var zr = Object.defineProperty, Gr = Object.defineProperties;
|
|
2
2
|
var Ur = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var Rt = Object.getOwnPropertySymbols;
|
|
4
4
|
var qa = Object.prototype.hasOwnProperty, Ya = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var ya = (t, a, r) => a in t ? zr(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, k = (t, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
7
|
qa.call(a, r) && ya(t, r, a[r]);
|
|
8
|
-
if (
|
|
9
|
-
for (var r of
|
|
8
|
+
if (Rt)
|
|
9
|
+
for (var r of Rt(a))
|
|
10
10
|
Ya.call(a, r) && ya(t, r, a[r]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
12
|
+
}, S = (t, a) => Gr(t, Ur(a));
|
|
13
13
|
var F = (t, a) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var _ in t)
|
|
16
16
|
qa.call(t, _) && a.indexOf(_) < 0 && (r[_] = t[_]);
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var _ of
|
|
17
|
+
if (t != null && Rt)
|
|
18
|
+
for (var _ of Rt(t))
|
|
19
19
|
a.indexOf(_) < 0 && Ya.call(t, _) && (r[_] = t[_]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
22
|
var wa = (t, a, r) => (ya(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
24
|
import { useReducer as Wr, useRef as Vr, useEffect as gt, useCallback as Lt, useMemo as Ot } from "react";
|
|
25
|
-
import { Check as ea, Close as Ae, ChevronDown as
|
|
25
|
+
import { Check as ea, Close as Ae, ChevronDown as Mt, Info as Oa, Warning as hr, CheckCircle as kr, Block as yr, Person as qr, ChevronUp as ta, DoubleArrowLeft as Yr, ChevronLeft as Kr, ChevronRight as wr, DoubleArrowRight as Jr, VisibilityOn as Xr, VisibilityOff as Qr, Search as jr, LockBlack as Zr, Refresh as e_, Error as t_ } from "@livechat/design-system-icons";
|
|
26
26
|
import u from "clsx";
|
|
27
27
|
import { useFloatingParentNodeId as Ha, useFloatingNodeId as aa, useFloating as ra, offset as _a, flip as oa, size as Er, autoUpdate as la, useClick as ca, useDismiss as na, useRole as sa, useInteractions as ia, useTransitionStyles as $r, FloatingNode as da, FloatingTree as za, shift as Ga, arrow as a_, useHover as r_, safePolygon as __, useFocus as o_, useTransitionStatus as l_, FloatingArrow as c_, FloatingPortal as Nr, FloatingOverlay as n_, FloatingFocusManager as Pa, useListNavigation as s_ } from "@floating-ui/react";
|
|
28
28
|
import * as Cr from "react-dom";
|
|
29
29
|
import { flushSync as i_ } from "react-dom";
|
|
30
|
-
import
|
|
30
|
+
import Sr from "lodash.debounce";
|
|
31
31
|
import { getContrast as Ua } from "polished";
|
|
32
32
|
import d_ from "react-day-picker";
|
|
33
|
-
import { subMonths as bt, differenceInCalendarMonths as Ka, addMonths as Ja, isSameMonth as Ia, isSameDay as Fa, isAfter as
|
|
33
|
+
import { subMonths as bt, differenceInCalendarMonths as Ka, addMonths as Ja, isSameMonth as Ia, isSameDay as Fa, isAfter as Ma, differenceInCalendarDays as xr } from "date-fns";
|
|
34
34
|
import { Virtuoso as u_ } from "react-virtuoso";
|
|
35
35
|
import Xa from "lodash.escape";
|
|
36
36
|
import { TransitionGroup as Tr, CSSTransition as Dr } from "react-transition-group";
|
|
@@ -398,7 +398,9 @@ const mc = {
|
|
|
398
398
|
ContentBasicInternalNoteMessageActive: "--content-basic-internal-note-message-active",
|
|
399
399
|
OnePopoverMessageBackgroundDefault: "--one-popover-message-background-default",
|
|
400
400
|
OnePopoverBorderDefault: "--one-popover-border-default",
|
|
401
|
-
OnePopoverBorderActive: "--one-popover-border-active"
|
|
401
|
+
OnePopoverBorderActive: "--one-popover-border-active",
|
|
402
|
+
OneTooltipBackground: "--one-tooltip-background",
|
|
403
|
+
ContentBasicAutofill: "--content-basic-autofill"
|
|
402
404
|
}, pc = {
|
|
403
405
|
Spacing0: "--spacing-0",
|
|
404
406
|
Spacing05: "--spacing-05",
|
|
@@ -563,7 +565,7 @@ const mc = {
|
|
|
563
565
|
Qa[ja],
|
|
564
566
|
_ && Qa[`${ja}--${o ? "disabled--" : ""}${_}`]
|
|
565
567
|
);
|
|
566
|
-
return /* @__PURE__ */ e.createElement("span",
|
|
568
|
+
return /* @__PURE__ */ e.createElement("span", S(k({}, i), { className: n }), d);
|
|
567
569
|
}, Le = {
|
|
568
570
|
"heading-xl": "lc-Typography-module__heading-xl___nhr-6",
|
|
569
571
|
"heading-lg": "lc-Typography-module__heading-lg___XYF7l",
|
|
@@ -629,7 +631,7 @@ const mc = {
|
|
|
629
631
|
r
|
|
630
632
|
);
|
|
631
633
|
}, I = (m) => {
|
|
632
|
-
var
|
|
634
|
+
var b = m, {
|
|
633
635
|
as: t = "p",
|
|
634
636
|
size: a = "md",
|
|
635
637
|
caps: r = !1,
|
|
@@ -641,7 +643,7 @@ const mc = {
|
|
|
641
643
|
className: d,
|
|
642
644
|
customColor: n,
|
|
643
645
|
textAlign: s
|
|
644
|
-
} =
|
|
646
|
+
} = b, p = F(b, [
|
|
645
647
|
"as",
|
|
646
648
|
"size",
|
|
647
649
|
"caps",
|
|
@@ -716,8 +718,8 @@ const mc = {
|
|
|
716
718
|
"action-menu__list__item__icon": "lc-ActionMenu-module__action-menu__list__item__icon___o3ePo",
|
|
717
719
|
"action-menu__list--with-footer": "lc-ActionMenu-module__action-menu__list--with-footer___ghTxL",
|
|
718
720
|
"action-menu__footer": "lc-ActionMenu-module__action-menu__footer___HxoOe"
|
|
719
|
-
},
|
|
720
|
-
var
|
|
721
|
+
}, Me = "action-menu", b_ = (w) => {
|
|
722
|
+
var f = w, {
|
|
721
723
|
className: t,
|
|
722
724
|
triggerClassName: a,
|
|
723
725
|
options: r,
|
|
@@ -731,8 +733,8 @@ const mc = {
|
|
|
731
733
|
onOpen: s,
|
|
732
734
|
floatingStrategy: p,
|
|
733
735
|
selectedOptions: m,
|
|
734
|
-
footer:
|
|
735
|
-
} =
|
|
736
|
+
footer: b
|
|
737
|
+
} = f, g = F(f, [
|
|
736
738
|
"className",
|
|
737
739
|
"triggerClassName",
|
|
738
740
|
"options",
|
|
@@ -748,16 +750,16 @@ const mc = {
|
|
|
748
750
|
"selectedOptions",
|
|
749
751
|
"footer"
|
|
750
752
|
]);
|
|
751
|
-
const h = d !== void 0, [
|
|
753
|
+
const h = d !== void 0, [v, E] = e.useState(l), [N, $] = e.useState(null), y = e.useRef(-1), C = Ha(), D = aa(), L = e.useRef(null), G = h ? d : v, T = () => {
|
|
752
754
|
G ? (n == null || n(), !h && E(!1)) : (s == null || s(), !h && E(!0));
|
|
753
|
-
}, { x:
|
|
755
|
+
}, { x: R, y: V, strategy: q, refs: he, context: oe } = ra({
|
|
754
756
|
nodeId: D,
|
|
755
757
|
middleware: [
|
|
756
758
|
_a(4),
|
|
757
759
|
oa(i),
|
|
758
760
|
Er({
|
|
759
|
-
apply({ availableHeight:
|
|
760
|
-
i_(() => $(
|
|
761
|
+
apply({ availableHeight: x }) {
|
|
762
|
+
i_(() => $(x));
|
|
761
763
|
}
|
|
762
764
|
})
|
|
763
765
|
],
|
|
@@ -766,84 +768,84 @@ const mc = {
|
|
|
766
768
|
strategy: p,
|
|
767
769
|
onOpenChange: T,
|
|
768
770
|
whileElementsMounted: la
|
|
769
|
-
}),
|
|
771
|
+
}), we = ca(oe), Oe = na(oe, {
|
|
770
772
|
enabled: G
|
|
771
|
-
}),
|
|
772
|
-
|
|
773
|
+
}), Ee = sa(oe), { getReferenceProps: Pe, getFloatingProps: Ze } = ia([
|
|
774
|
+
we,
|
|
773
775
|
Oe,
|
|
774
|
-
|
|
776
|
+
Ee
|
|
775
777
|
]), { styles: lt } = $r(oe, {
|
|
776
|
-
initial: ({ side:
|
|
778
|
+
initial: ({ side: x }) => k({
|
|
777
779
|
opacity: 0
|
|
778
|
-
},
|
|
780
|
+
}, x === "bottom" && {
|
|
779
781
|
marginTop: -10
|
|
780
|
-
} ||
|
|
782
|
+
} || x === "top" && {
|
|
781
783
|
marginTop: 10
|
|
782
|
-
} ||
|
|
784
|
+
} || x === "left" && {
|
|
783
785
|
marginLeft: 10
|
|
784
|
-
} ||
|
|
786
|
+
} || x === "right" && {
|
|
785
787
|
marginLeft: -10
|
|
786
788
|
})
|
|
787
|
-
}), ct = (
|
|
789
|
+
}), ct = (x) => {
|
|
788
790
|
var ze, Ge;
|
|
789
791
|
const ee = y.current;
|
|
790
|
-
let le = ee +
|
|
792
|
+
let le = ee + x;
|
|
791
793
|
for (; (ze = r[le]) != null && ze.disabled || (Ge = r[le]) != null && Ge.groupHeader; )
|
|
792
|
-
if (le +=
|
|
794
|
+
if (le += x, le === -1) {
|
|
793
795
|
le = ee;
|
|
794
796
|
break;
|
|
795
797
|
}
|
|
796
798
|
return le;
|
|
797
|
-
}, nt = (
|
|
799
|
+
}, nt = (x) => {
|
|
798
800
|
var ze, Ge;
|
|
799
|
-
y.current = ct(
|
|
801
|
+
y.current = ct(x);
|
|
800
802
|
const ee = (ze = L.current) == null ? void 0 : ze.children, le = ee && ((Ge = ee[y.current]) == null ? void 0 : Ge.children[0]);
|
|
801
803
|
return le == null ? void 0 : le.focus();
|
|
802
|
-
}, He = (
|
|
803
|
-
|
|
804
|
+
}, He = (x) => {
|
|
805
|
+
x.key === _e.arrowUp && y.current > 0 && (x.preventDefault(), nt(-1)), x.key === _e.arrowDown && y.current + 1 < r.length && (x.preventDefault(), nt(1));
|
|
804
806
|
};
|
|
805
807
|
e.useEffect(() => {
|
|
806
808
|
if (G)
|
|
807
809
|
return document.addEventListener("keydown", He), () => document.removeEventListener("keydown", He);
|
|
808
810
|
y.current = -1;
|
|
809
811
|
}, [G, He]);
|
|
810
|
-
const st = (
|
|
811
|
-
y.current =
|
|
812
|
-
}, vt = (
|
|
812
|
+
const st = (x, ee) => {
|
|
813
|
+
y.current = x, ee == null || ee(), !h && !c && (E(!1), n == null || n());
|
|
814
|
+
}, vt = (x, ee) => x.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
813
815
|
"li",
|
|
814
816
|
{
|
|
815
|
-
key:
|
|
817
|
+
key: x.key,
|
|
816
818
|
role: "none",
|
|
817
|
-
className: Fe[`${
|
|
819
|
+
className: Fe[`${Me}__list__group-header`]
|
|
818
820
|
},
|
|
819
|
-
|
|
820
|
-
) : /* @__PURE__ */ e.createElement("li", { key:
|
|
821
|
+
x.element
|
|
822
|
+
) : /* @__PURE__ */ e.createElement("li", { key: x.key, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
821
823
|
"button",
|
|
822
824
|
{
|
|
823
|
-
"data-testid":
|
|
825
|
+
"data-testid": x.key,
|
|
824
826
|
tabIndex: -1,
|
|
825
|
-
key:
|
|
826
|
-
disabled:
|
|
827
|
-
onClick: () => st(ee,
|
|
827
|
+
key: x.key,
|
|
828
|
+
disabled: x.disabled,
|
|
829
|
+
onClick: () => st(ee, x.onClick),
|
|
828
830
|
role: "menuitem",
|
|
829
|
-
className: u(Fe[`${
|
|
830
|
-
[Fe[`${
|
|
831
|
-
[Fe[`${
|
|
832
|
-
[Fe[`${
|
|
831
|
+
className: u(Fe[`${Me}__list__item`], {
|
|
832
|
+
[Fe[`${Me}__list__item--disabled`]]: x.disabled,
|
|
833
|
+
[Fe[`${Me}__list__item--with-divider`]]: x.withDivider,
|
|
834
|
+
[Fe[`${Me}__list__item--selected`]]: m == null ? void 0 : m.includes(x.key)
|
|
833
835
|
})
|
|
834
836
|
},
|
|
835
|
-
|
|
836
|
-
(m == null ? void 0 : m.includes(
|
|
837
|
+
x.element,
|
|
838
|
+
(m == null ? void 0 : m.includes(x.key)) && /* @__PURE__ */ e.createElement(
|
|
837
839
|
"div",
|
|
838
840
|
{
|
|
839
|
-
"data-testid": `${
|
|
840
|
-
className: Fe[`${
|
|
841
|
+
"data-testid": `${x.key}-selected-icon`,
|
|
842
|
+
className: Fe[`${Me}__list__item__icon`]
|
|
841
843
|
},
|
|
842
844
|
/* @__PURE__ */ e.createElement(P, { source: ea, kind: "action-primary" })
|
|
843
845
|
)
|
|
844
846
|
)), Ie = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
845
847
|
"div",
|
|
846
|
-
|
|
848
|
+
S(k({
|
|
847
849
|
"aria-label": "Toggle menu",
|
|
848
850
|
"data-testid": "action-menu-trigger-button",
|
|
849
851
|
ref: he.setReference
|
|
@@ -855,20 +857,20 @@ const mc = {
|
|
|
855
857
|
"div",
|
|
856
858
|
k({
|
|
857
859
|
ref: he.setFloating,
|
|
858
|
-
className: Fe[
|
|
860
|
+
className: Fe[Me],
|
|
859
861
|
style: k(k({
|
|
860
862
|
position: q,
|
|
861
863
|
top: V != null ? V : "",
|
|
862
|
-
left:
|
|
864
|
+
left: R != null ? R : ""
|
|
863
865
|
}, !!N && { maxHeight: N }), lt)
|
|
864
|
-
},
|
|
866
|
+
}, Ze()),
|
|
865
867
|
r.length > 0 && /* @__PURE__ */ e.createElement(
|
|
866
868
|
"ul",
|
|
867
|
-
|
|
869
|
+
S(k({}, g), {
|
|
868
870
|
className: u(
|
|
869
|
-
Fe[`${
|
|
871
|
+
Fe[`${Me}__list`],
|
|
870
872
|
{
|
|
871
|
-
[Fe[`${
|
|
873
|
+
[Fe[`${Me}__list--with-footer`]]: b
|
|
872
874
|
},
|
|
873
875
|
t
|
|
874
876
|
),
|
|
@@ -877,14 +879,14 @@ const mc = {
|
|
|
877
879
|
}),
|
|
878
880
|
r.map(vt)
|
|
879
881
|
),
|
|
880
|
-
|
|
882
|
+
b && /* @__PURE__ */ e.createElement(
|
|
881
883
|
I,
|
|
882
884
|
{
|
|
883
885
|
size: "sm",
|
|
884
886
|
as: "div",
|
|
885
|
-
className: Fe[`${
|
|
887
|
+
className: Fe[`${Me}__footer`]
|
|
886
888
|
},
|
|
887
|
-
|
|
889
|
+
b
|
|
888
890
|
)
|
|
889
891
|
)));
|
|
890
892
|
return C === null ? /* @__PURE__ */ e.createElement(za, null, Ie) : Ie;
|
|
@@ -991,7 +993,7 @@ const mc = {
|
|
|
991
993
|
"btn--text-lock-black": "lc-Button-module__btn--text-lock-black___fy3zb"
|
|
992
994
|
}, se = "btn", W = e.forwardRef(
|
|
993
995
|
(w, g) => {
|
|
994
|
-
var
|
|
996
|
+
var f = w, {
|
|
995
997
|
loading: t = !1,
|
|
996
998
|
disabled: a = !1,
|
|
997
999
|
type: r = "button",
|
|
@@ -1005,7 +1007,7 @@ const mc = {
|
|
|
1005
1007
|
children: s,
|
|
1006
1008
|
href: p,
|
|
1007
1009
|
onClick: m
|
|
1008
|
-
} =
|
|
1010
|
+
} = f, b = F(f, [
|
|
1009
1011
|
"loading",
|
|
1010
1012
|
"disabled",
|
|
1011
1013
|
"type",
|
|
@@ -1020,7 +1022,7 @@ const mc = {
|
|
|
1020
1022
|
"href",
|
|
1021
1023
|
"onClick"
|
|
1022
1024
|
]);
|
|
1023
|
-
const h = t || a,
|
|
1025
|
+
const h = t || a, v = !s && c, E = ["text", "link", "link-light"].includes(o), N = p ? "a" : "button", $ = u(
|
|
1024
1026
|
n,
|
|
1025
1027
|
ne[se],
|
|
1026
1028
|
ne[`${se}--${o}`],
|
|
@@ -1028,9 +1030,9 @@ const mc = {
|
|
|
1028
1030
|
{
|
|
1029
1031
|
[ne[`${se}--loading`]]: t,
|
|
1030
1032
|
[ne[`${se}--full-width`]]: _,
|
|
1031
|
-
[ne[`${se}--with-${i}-icon`]]: c && !
|
|
1032
|
-
[ne[`${se}--icon-only`]]:
|
|
1033
|
-
[ne[`${se}--icon-only--bg`]]:
|
|
1033
|
+
[ne[`${se}--with-${i}-icon`]]: c && !v && !E,
|
|
1034
|
+
[ne[`${se}--icon-only`]]: v,
|
|
1035
|
+
[ne[`${se}--icon-only--bg`]]: v && E,
|
|
1034
1036
|
[ne[`${se}--disabled`]]: h
|
|
1035
1037
|
}
|
|
1036
1038
|
);
|
|
@@ -1042,7 +1044,7 @@ const mc = {
|
|
|
1042
1044
|
"aria-disabled": h,
|
|
1043
1045
|
type: r,
|
|
1044
1046
|
disabled: h
|
|
1045
|
-
}, !h && { href: p, onClick: m }),
|
|
1047
|
+
}, !h && { href: p, onClick: m }), b),
|
|
1046
1048
|
t && /* @__PURE__ */ e.createElement(
|
|
1047
1049
|
Wa,
|
|
1048
1050
|
k({
|
|
@@ -1088,7 +1090,7 @@ function C_(t, a, r, _) {
|
|
|
1088
1090
|
left: a ? _ + a : _
|
|
1089
1091
|
};
|
|
1090
1092
|
}
|
|
1091
|
-
const
|
|
1093
|
+
const S_ = (t) => {
|
|
1092
1094
|
switch (t) {
|
|
1093
1095
|
case "invert":
|
|
1094
1096
|
return {
|
|
@@ -1106,8 +1108,8 @@ const x_ = (t) => {
|
|
|
1106
1108
|
fill: "var(--tooltip-background-basic)"
|
|
1107
1109
|
};
|
|
1108
1110
|
}
|
|
1109
|
-
},
|
|
1110
|
-
tooltip:
|
|
1111
|
+
}, x_ = "lc-Tooltip-module__tooltip___QOOAr", T_ = "lc-Tooltip-module__tooltip__content___RuamE", D_ = "lc-Tooltip-module__tooltip__arrow___Ov1YW", B_ = "lc-Tooltip-module__tooltip__interactive___0JawB", B = {
|
|
1112
|
+
tooltip: x_,
|
|
1111
1113
|
tooltip__content: T_,
|
|
1112
1114
|
"tooltip--invert": "lc-Tooltip-module__tooltip--invert___PVjhE",
|
|
1113
1115
|
tooltip__arrow: D_,
|
|
@@ -1150,12 +1152,12 @@ const x_ = (t) => {
|
|
|
1150
1152
|
onOpen: s,
|
|
1151
1153
|
withFadeAnimation: p = !0,
|
|
1152
1154
|
transitionDuration: m = 200,
|
|
1153
|
-
hoverOnDuration:
|
|
1155
|
+
hoverOnDuration: b,
|
|
1154
1156
|
hoverOffDuration: g,
|
|
1155
1157
|
transitionDelay: w = 0,
|
|
1156
|
-
hoverOnDelay:
|
|
1158
|
+
hoverOnDelay: f,
|
|
1157
1159
|
hoverOffDelay: h,
|
|
1158
|
-
triggerOnClick:
|
|
1160
|
+
triggerOnClick: v = !1,
|
|
1159
1161
|
triggerOnHover: E = !0,
|
|
1160
1162
|
offsetMainAxis: N = 8,
|
|
1161
1163
|
referenceElement: $,
|
|
@@ -1165,51 +1167,51 @@ const x_ = (t) => {
|
|
|
1165
1167
|
hoverOutDelayTimeout: L = 100,
|
|
1166
1168
|
arrowOffsetY: G,
|
|
1167
1169
|
arrowOffsetX: T,
|
|
1168
|
-
closeOnTriggerBlur:
|
|
1170
|
+
closeOnTriggerBlur: R = !1,
|
|
1169
1171
|
floatingStrategy: V
|
|
1170
1172
|
}) => {
|
|
1171
|
-
const q = i !== void 0, [he, oe] = e.useState(!1),
|
|
1173
|
+
const q = i !== void 0, [he, oe] = e.useState(!1), we = e.useRef(null), Oe = q ? i : he, Ee = l || o, Pe = Ha(), Ze = aa(), lt = u(
|
|
1172
1174
|
B[Ht],
|
|
1173
1175
|
a,
|
|
1174
|
-
|
|
1176
|
+
Ee && B[`${Ht}--${Ee}`],
|
|
1175
1177
|
d && B[`${Ht}--full-space`]
|
|
1176
1178
|
), ct = typeof _ == "function", nt = (ce) => {
|
|
1177
1179
|
ce !== Oe && (ce ? s == null || s() : n == null || n(), !q && oe(ce));
|
|
1178
1180
|
}, He = (ce) => p ? ce != null ? ce : m : 0, st = (ce) => ce != null ? ce : w, {
|
|
1179
1181
|
floatingStyles: vt,
|
|
1180
1182
|
refs: Ie,
|
|
1181
|
-
context:
|
|
1183
|
+
context: x,
|
|
1182
1184
|
middlewareData: { arrow: { x: ee, y: le } = {} }
|
|
1183
1185
|
} = ra({
|
|
1184
|
-
nodeId:
|
|
1186
|
+
nodeId: Ze,
|
|
1185
1187
|
middleware: [
|
|
1186
1188
|
_a({ mainAxis: N }),
|
|
1187
1189
|
Ga(),
|
|
1188
1190
|
oa(),
|
|
1189
|
-
a_({ element:
|
|
1191
|
+
a_({ element: we })
|
|
1190
1192
|
],
|
|
1191
1193
|
placement: c,
|
|
1192
1194
|
open: Oe,
|
|
1193
1195
|
strategy: V,
|
|
1194
1196
|
onOpenChange: nt,
|
|
1195
1197
|
whileElementsMounted: la
|
|
1196
|
-
}), ze = r_(
|
|
1198
|
+
}), ze = r_(x, {
|
|
1197
1199
|
move: !1,
|
|
1198
1200
|
restMs: y,
|
|
1199
1201
|
delay: {
|
|
1200
|
-
open: st(
|
|
1202
|
+
open: st(f),
|
|
1201
1203
|
close: st(h || L)
|
|
1202
1204
|
},
|
|
1203
1205
|
enabled: E,
|
|
1204
|
-
handleClose:
|
|
1205
|
-
}), Ge = o_(
|
|
1206
|
-
enabled:
|
|
1207
|
-
}, D)), { isMounted: ba, styles: fa } = $r(
|
|
1206
|
+
handleClose: R ? null : __()
|
|
1207
|
+
}), Ge = o_(x), ma = na(x, C), pa = sa(x, { role: "tooltip" }), ga = ca(x, k({
|
|
1208
|
+
enabled: v
|
|
1209
|
+
}, D)), { isMounted: ba, styles: fa } = $r(x, {
|
|
1208
1210
|
duration: {
|
|
1209
|
-
open: He(
|
|
1211
|
+
open: He(b),
|
|
1210
1212
|
close: He(g)
|
|
1211
1213
|
}
|
|
1212
|
-
}), { status: va } = l_(
|
|
1214
|
+
}), { status: va } = l_(x), { getReferenceProps: ha, getFloatingProps: ka } = ia([
|
|
1213
1215
|
ze,
|
|
1214
1216
|
Ge,
|
|
1215
1217
|
ma,
|
|
@@ -1221,16 +1223,16 @@ const x_ = (t) => {
|
|
|
1221
1223
|
}, [Ie.setReference, $]);
|
|
1222
1224
|
const ht = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1223
1225
|
"div",
|
|
1224
|
-
|
|
1226
|
+
S(k({
|
|
1225
1227
|
"data-testid": "tooltip-trigger",
|
|
1226
1228
|
ref: Ie.setReference
|
|
1227
1229
|
}, ha()), {
|
|
1228
1230
|
className: r
|
|
1229
1231
|
}),
|
|
1230
1232
|
ct ? _() : _
|
|
1231
|
-
), /* @__PURE__ */ e.createElement(da, { id:
|
|
1233
|
+
), /* @__PURE__ */ e.createElement(da, { id: Ze }, ba && /* @__PURE__ */ e.createElement(
|
|
1232
1234
|
"div",
|
|
1233
|
-
|
|
1235
|
+
S(k({
|
|
1234
1236
|
ref: Ie.setFloating,
|
|
1235
1237
|
style: k(k({}, vt), fa),
|
|
1236
1238
|
className: lt
|
|
@@ -1241,8 +1243,8 @@ const x_ = (t) => {
|
|
|
1241
1243
|
/* @__PURE__ */ e.createElement(
|
|
1242
1244
|
c_,
|
|
1243
1245
|
k({
|
|
1244
|
-
ref:
|
|
1245
|
-
context:
|
|
1246
|
+
ref: we,
|
|
1247
|
+
context: x,
|
|
1246
1248
|
strokeWidth: 1,
|
|
1247
1249
|
width: 10,
|
|
1248
1250
|
height: 5,
|
|
@@ -1252,7 +1254,7 @@ const x_ = (t) => {
|
|
|
1252
1254
|
le,
|
|
1253
1255
|
ee
|
|
1254
1256
|
))
|
|
1255
|
-
},
|
|
1257
|
+
}, S_(Ee))
|
|
1256
1258
|
)
|
|
1257
1259
|
)));
|
|
1258
1260
|
return Pe === null ? /* @__PURE__ */ e.createElement(za, null, ht) : ht;
|
|
@@ -1329,7 +1331,7 @@ const x_ = (t) => {
|
|
|
1329
1331
|
},
|
|
1330
1332
|
/* @__PURE__ */ e.createElement(
|
|
1331
1333
|
W,
|
|
1332
|
-
|
|
1334
|
+
S(k({}, c), {
|
|
1333
1335
|
kind: c.kind || d(o),
|
|
1334
1336
|
onClick: c.handleClick
|
|
1335
1337
|
}),
|
|
@@ -1337,7 +1339,7 @@ const x_ = (t) => {
|
|
|
1337
1339
|
),
|
|
1338
1340
|
i && /* @__PURE__ */ e.createElement(
|
|
1339
1341
|
W,
|
|
1340
|
-
|
|
1342
|
+
S(k({}, i), {
|
|
1341
1343
|
className: u(
|
|
1342
1344
|
B[`${Ue}-footer-secondary`],
|
|
1343
1345
|
i.className
|
|
@@ -1507,7 +1509,7 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1507
1509
|
}
|
|
1508
1510
|
), /* @__PURE__ */ e.createElement(
|
|
1509
1511
|
Pr,
|
|
1510
|
-
|
|
1512
|
+
S(k({}, t), {
|
|
1511
1513
|
triggerRenderer: /* @__PURE__ */ e.createElement(e.Fragment, null),
|
|
1512
1514
|
referenceElement: {
|
|
1513
1515
|
getBoundingClientRect: () => i,
|
|
@@ -1606,7 +1608,7 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1606
1608
|
/* @__PURE__ */ e.createElement("div", null, t.label)
|
|
1607
1609
|
)
|
|
1608
1610
|
) : /* @__PURE__ */ e.createElement("div", { "data-testid": t.key, className: _ }, o);
|
|
1609
|
-
}, zt = "action-bar", We = "action-bar__menu-wrapper", F_ = 44,
|
|
1611
|
+
}, zt = "action-bar", We = "action-bar__menu-wrapper", F_ = 44, Sc = ({
|
|
1610
1612
|
className: t,
|
|
1611
1613
|
id: a = "action-bar-area",
|
|
1612
1614
|
type: r = "menu",
|
|
@@ -1617,16 +1619,16 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1617
1619
|
}) => {
|
|
1618
1620
|
const [i, d] = e.useState(
|
|
1619
1621
|
_.length
|
|
1620
|
-
), [n, s] = e.useState([]), [p, m] = e.useState(!1),
|
|
1622
|
+
), [n, s] = e.useState([]), [p, m] = e.useState(!1), b = r === "scroll", g = u(
|
|
1621
1623
|
U[zt],
|
|
1622
1624
|
t,
|
|
1623
1625
|
l && U[`${zt}--vertical`]
|
|
1624
|
-
), w = !
|
|
1626
|
+
), w = !b && n.length !== 0;
|
|
1625
1627
|
e.useEffect(() => {
|
|
1626
|
-
|
|
1628
|
+
b || (_.length > i ? s(_.slice(i, _.length)) : s([]));
|
|
1627
1629
|
}, [_, i]), e.useEffect(() => {
|
|
1628
|
-
const
|
|
1629
|
-
if (!
|
|
1630
|
+
const v = !!window.ResizeObserver;
|
|
1631
|
+
if (!b && v) {
|
|
1630
1632
|
const E = new ResizeObserver((N) => {
|
|
1631
1633
|
const { width: $, height: y } = N[0].contentRect, C = l ? y : $, D = n.length > 0 ? 60 : 0, L = Math.floor(
|
|
1632
1634
|
(C - D) / F_
|
|
@@ -1635,25 +1637,34 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1635
1637
|
});
|
|
1636
1638
|
return E.observe(document.querySelector(`#${a}`)), () => E.disconnect();
|
|
1637
1639
|
}
|
|
1638
|
-
}, [n,
|
|
1639
|
-
const
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1640
|
+
}, [n, b, i]);
|
|
1641
|
+
const f = e.useCallback(() => n.reduce(
|
|
1642
|
+
(v, E) => {
|
|
1643
|
+
if (!E.hideInMenu) {
|
|
1644
|
+
const N = {
|
|
1645
|
+
key: E.key,
|
|
1646
|
+
element: /* @__PURE__ */ e.createElement(f_, { leftNode: E.element }, E.label),
|
|
1647
|
+
withDivider: E.withDivider,
|
|
1648
|
+
onClick: E.onClick
|
|
1649
|
+
};
|
|
1650
|
+
v.push(N);
|
|
1651
|
+
}
|
|
1652
|
+
return v;
|
|
1653
|
+
},
|
|
1654
|
+
[]
|
|
1655
|
+
), [n]), h = n.find((v) => v.key === o);
|
|
1645
1656
|
return /* @__PURE__ */ e.createElement("div", { id: a, className: g }, /* @__PURE__ */ e.createElement(
|
|
1646
1657
|
"div",
|
|
1647
1658
|
{
|
|
1648
1659
|
className: u(U[`${zt}__items`], {
|
|
1649
|
-
[U[`${zt}__items--scroll`]]:
|
|
1660
|
+
[U[`${zt}__items--scroll`]]: b
|
|
1650
1661
|
})
|
|
1651
1662
|
},
|
|
1652
|
-
_.slice(0, i).map((
|
|
1663
|
+
_.slice(0, i).map((v) => /* @__PURE__ */ e.createElement(
|
|
1653
1664
|
I_,
|
|
1654
1665
|
{
|
|
1655
|
-
option:
|
|
1656
|
-
isActive:
|
|
1666
|
+
option: v,
|
|
1667
|
+
isActive: v.key === o,
|
|
1657
1668
|
vertical: l
|
|
1658
1669
|
}
|
|
1659
1670
|
))
|
|
@@ -1674,7 +1685,7 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1674
1685
|
onClose: () => m(!1),
|
|
1675
1686
|
floatingStrategy: "fixed",
|
|
1676
1687
|
placement: l ? "left-start" : "bottom-end",
|
|
1677
|
-
options:
|
|
1688
|
+
options: f(),
|
|
1678
1689
|
triggerClassName: u(
|
|
1679
1690
|
l && U[`${We}__trigger-vertical`]
|
|
1680
1691
|
),
|
|
@@ -1689,7 +1700,7 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1689
1700
|
icon: /* @__PURE__ */ e.createElement(
|
|
1690
1701
|
P,
|
|
1691
1702
|
{
|
|
1692
|
-
source:
|
|
1703
|
+
source: Mt,
|
|
1693
1704
|
kind: "primary",
|
|
1694
1705
|
className: u(
|
|
1695
1706
|
U[`${We}__button__icon`],
|
|
@@ -1719,7 +1730,7 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1719
1730
|
"action-card__column": "lc-ActionCard-module__action-card__column___K7tyh",
|
|
1720
1731
|
"action-card__column--first": "lc-ActionCard-module__action-card__column--first___9XE58",
|
|
1721
1732
|
"action-card__column--second": "lc-ActionCard-module__action-card__column--second___X1UC-"
|
|
1722
|
-
},
|
|
1733
|
+
}, et = "action-card", xc = ({
|
|
1723
1734
|
className: t,
|
|
1724
1735
|
children: a,
|
|
1725
1736
|
secondColumn: r,
|
|
@@ -1727,7 +1738,7 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1727
1738
|
secondColumnClassName: o,
|
|
1728
1739
|
onClick: l
|
|
1729
1740
|
}) => {
|
|
1730
|
-
const c = u(dt[
|
|
1741
|
+
const c = u(dt[et], t), i = (n) => {
|
|
1731
1742
|
n.currentTarget === document.activeElement && (l == null || l());
|
|
1732
1743
|
}, d = (n) => {
|
|
1733
1744
|
n.currentTarget === document.activeElement && (n.key === "Enter" || n.key === " " || n.key === "Spacebar" || n.key === "Space") && (n.preventDefault(), l == null || l());
|
|
@@ -1745,10 +1756,10 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1745
1756
|
/* @__PURE__ */ e.createElement(
|
|
1746
1757
|
"div",
|
|
1747
1758
|
{
|
|
1748
|
-
"data-testid": `${
|
|
1759
|
+
"data-testid": `${et}-first-column`,
|
|
1749
1760
|
className: u(
|
|
1750
|
-
dt[`${
|
|
1751
|
-
dt[`${
|
|
1761
|
+
dt[`${et}__column`],
|
|
1762
|
+
dt[`${et}__column--first`],
|
|
1752
1763
|
_
|
|
1753
1764
|
)
|
|
1754
1765
|
},
|
|
@@ -1757,19 +1768,19 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1757
1768
|
r && /* @__PURE__ */ e.createElement(
|
|
1758
1769
|
"div",
|
|
1759
1770
|
{
|
|
1760
|
-
"data-testid": `${
|
|
1771
|
+
"data-testid": `${et}-second-column`,
|
|
1761
1772
|
className: u(
|
|
1762
|
-
dt[`${
|
|
1763
|
-
dt[`${
|
|
1773
|
+
dt[`${et}__column`],
|
|
1774
|
+
dt[`${et}__column--second`],
|
|
1764
1775
|
o
|
|
1765
1776
|
)
|
|
1766
1777
|
},
|
|
1767
1778
|
r
|
|
1768
1779
|
)
|
|
1769
1780
|
));
|
|
1770
|
-
},
|
|
1771
|
-
alert:
|
|
1772
|
-
alert__icon:
|
|
1781
|
+
}, M_ = "lc-Alert-module__alert___HBTns", R_ = "lc-Alert-module__alert__icon___8TaAH", L_ = "lc-Alert-module__alert__content___9nZdf", O_ = "lc-Alert-module__alert__content__wrapper___aLBkP", H_ = "lc-Alert-module__alert__content__wrapper__text___HDMbR", z_ = "lc-Alert-module__alert__content__wrapper__cta___9L-oE", G_ = "lc-Alert-module__alert__content__wrapper__cta__link___D9Igz", ke = {
|
|
1782
|
+
alert: M_,
|
|
1783
|
+
alert__icon: R_,
|
|
1773
1784
|
alert__content: L_,
|
|
1774
1785
|
alert__content__wrapper: O_,
|
|
1775
1786
|
alert__content__wrapper__text: H_,
|
|
@@ -1825,13 +1836,13 @@ const er = 8, tr = "guide-tooltip", ar = (t, a) => new P_(t, a), Nc = (t) => {
|
|
|
1825
1836
|
a
|
|
1826
1837
|
);
|
|
1827
1838
|
return e.useEffect(() => {
|
|
1828
|
-
const
|
|
1829
|
-
|
|
1839
|
+
const b = () => n.current && n.current.offsetWidth <= 400 ? p("small") : n.current && n.current.offsetWidth > 400 && n.current.offsetWidth <= 800 ? p("medium") : p("large"), g = Sr(() => {
|
|
1840
|
+
b();
|
|
1830
1841
|
}, 500);
|
|
1831
|
-
return window.addEventListener("resize", g),
|
|
1842
|
+
return window.addEventListener("resize", g), b(), () => window.removeEventListener("resize", g);
|
|
1832
1843
|
}), /* @__PURE__ */ e.createElement("div", k({ ref: n, className: m }, c), /* @__PURE__ */ e.createElement("div", { className: ke[`${ye}__content`] }, /* @__PURE__ */ e.createElement("div", { className: ke[`${ye}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1833
1844
|
P,
|
|
1834
|
-
|
|
1845
|
+
S(k({}, U_[o]), {
|
|
1835
1846
|
size: "large",
|
|
1836
1847
|
className: ke[`${ye}__icon`]
|
|
1837
1848
|
})
|
|
@@ -1962,7 +1973,7 @@ const Y_ = "lc-Avatar-module__avatar___1zTCE", K_ = "lc-Avatar-module__avatar__s
|
|
|
1962
1973
|
"type",
|
|
1963
1974
|
"withRim"
|
|
1964
1975
|
]);
|
|
1965
|
-
const
|
|
1976
|
+
const b = d === "image" && !l, [g, w] = e.useState(b), f = d === "image" && !!l && !g, h = d === "text", v = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, E = V_(i, v), N = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), $ = r || W_(i), y = $ ? q_($) : void 0, C = h ? { backgroundColor: $ } : {}, D = u(k({
|
|
1966
1977
|
[ge[Z]]: !0,
|
|
1967
1978
|
[ge[`${Z}--${_}`]]: !0,
|
|
1968
1979
|
[ge[`${Z}--${o}`]]: !0,
|
|
@@ -1978,10 +1989,10 @@ const Y_ = "lc-Avatar-module__avatar___1zTCE", K_ = "lc-Avatar-module__avatar__s
|
|
|
1978
1989
|
), T = u(
|
|
1979
1990
|
ge[`${Z}__rim`],
|
|
1980
1991
|
ge[`${Z}__rim--${o}`]
|
|
1981
|
-
),
|
|
1992
|
+
), R = (q) => N ? "2xs" : ["medium"].includes(q) ? "xs" : ["large", "xlarge"].includes(q) ? "sm" : ["xxlarge"].includes(q) ? "lg" : "xl", V = e.useCallback(() => w(!0), []);
|
|
1982
1993
|
return e.useEffect(() => {
|
|
1983
|
-
w(
|
|
1984
|
-
}, [
|
|
1994
|
+
w(b);
|
|
1995
|
+
}, [b]), /* @__PURE__ */ e.createElement("div", k({ className: D, style: C }, s), n && /* @__PURE__ */ e.createElement(
|
|
1985
1996
|
"div",
|
|
1986
1997
|
{
|
|
1987
1998
|
"data-testid": `${Z}__rim`,
|
|
@@ -1993,7 +2004,7 @@ const Y_ = "lc-Avatar-module__avatar___1zTCE", K_ = "lc-Avatar-module__avatar__s
|
|
|
1993
2004
|
"data-testid": `${Z}__status`,
|
|
1994
2005
|
className: L
|
|
1995
2006
|
}
|
|
1996
|
-
),
|
|
2007
|
+
), f && /* @__PURE__ */ e.createElement(
|
|
1997
2008
|
"img",
|
|
1998
2009
|
{
|
|
1999
2010
|
className: ge[`${Z}__image`],
|
|
@@ -2005,7 +2016,7 @@ const Y_ = "lc-Avatar-module__avatar___1zTCE", K_ = "lc-Avatar-module__avatar__s
|
|
|
2005
2016
|
Be,
|
|
2006
2017
|
{
|
|
2007
2018
|
as: "span",
|
|
2008
|
-
size:
|
|
2019
|
+
size: R(o),
|
|
2009
2020
|
style: { color: y },
|
|
2010
2021
|
bold: N,
|
|
2011
2022
|
uppercase: N
|
|
@@ -2082,23 +2093,23 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2082
2093
|
e.useEffect(() => {
|
|
2083
2094
|
s && n(o);
|
|
2084
2095
|
}, [o]);
|
|
2085
|
-
const p = (
|
|
2086
|
-
s || n(
|
|
2087
|
-
}, m = a.map(({ id:
|
|
2088
|
-
const
|
|
2096
|
+
const p = (b, g) => {
|
|
2097
|
+
s || n(b), c(b, g);
|
|
2098
|
+
}, m = a.map(({ id: b, label: g, loading: w, disabled: f, icon: h }) => {
|
|
2099
|
+
const v = b === d, E = v ? Wt["btn--active"] : "", N = v ? !1 : w;
|
|
2089
2100
|
return /* @__PURE__ */ e.createElement(
|
|
2090
2101
|
W,
|
|
2091
2102
|
{
|
|
2092
|
-
key:
|
|
2103
|
+
key: b,
|
|
2093
2104
|
fullWidth: l,
|
|
2094
2105
|
loading: N,
|
|
2095
|
-
disabled:
|
|
2096
|
-
"aria-pressed":
|
|
2106
|
+
disabled: f,
|
|
2107
|
+
"aria-pressed": v,
|
|
2097
2108
|
kind: "secondary",
|
|
2098
2109
|
icon: h,
|
|
2099
2110
|
className: u(Wt.btn, Wt[`btn--${t}`], E),
|
|
2100
2111
|
onClick: ($) => {
|
|
2101
|
-
p(
|
|
2112
|
+
p(b, $);
|
|
2102
2113
|
}
|
|
2103
2114
|
},
|
|
2104
2115
|
g
|
|
@@ -2139,8 +2150,8 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2139
2150
|
"src",
|
|
2140
2151
|
"title"
|
|
2141
2152
|
]);
|
|
2142
|
-
const [p, m] = e.useState(!1),
|
|
2143
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: u(be[Ft], _) }, d),
|
|
2153
|
+
const [p, m] = e.useState(!1), b = p ? ta : Mt, g = p ? "Hide" : "Show more", w = (a == null ? void 0 : a.length) > 0, f = !!l, h = w || f, v = i, E = c, N = E ? "" : be[bo];
|
|
2154
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(be[Ft], _) }, d), v && /* @__PURE__ */ e.createElement("div", { className: u(be[Zt], N) }, E && /* @__PURE__ */ e.createElement(
|
|
2144
2155
|
"img",
|
|
2145
2156
|
{
|
|
2146
2157
|
alt: t,
|
|
@@ -2173,13 +2184,13 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2173
2184
|
},
|
|
2174
2185
|
C
|
|
2175
2186
|
)
|
|
2176
|
-
),
|
|
2187
|
+
), f && /* @__PURE__ */ e.createElement(
|
|
2177
2188
|
W,
|
|
2178
2189
|
{
|
|
2179
2190
|
className: be[`${Vt}__buttons-expander`],
|
|
2180
2191
|
kind: "link",
|
|
2181
2192
|
iconPosition: "right",
|
|
2182
|
-
icon: /* @__PURE__ */ e.createElement(P, { source:
|
|
2193
|
+
icon: /* @__PURE__ */ e.createElement(P, { source: b }),
|
|
2183
2194
|
onClick: () => m(!p)
|
|
2184
2195
|
},
|
|
2185
2196
|
g
|
|
@@ -2195,8 +2206,8 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2195
2206
|
"className"
|
|
2196
2207
|
]);
|
|
2197
2208
|
const l = u(fo[vo], a);
|
|
2198
|
-
return /* @__PURE__ */ e.createElement(I,
|
|
2199
|
-
}, ho = "lc-Checkbox-module__checkbox___G7nTf", ko = "lc-Checkbox-module__checkbox__label___-o01x", yo = "lc-Checkbox-module__checkbox__text___P2SIq", wo = "lc-Checkbox-module__checkbox__input___YLbVF", Eo = "lc-Checkbox-module__checkbox__checkmark___16pfY", $o = "lc-Checkbox-module__checkbox__square___MHUyd", No = "lc-Checkbox-module__checkbox__helper___YSJ-n",
|
|
2209
|
+
return /* @__PURE__ */ e.createElement(I, S(k({ as: "span", size: "sm" }, r), { className: l }), t);
|
|
2210
|
+
}, ho = "lc-Checkbox-module__checkbox___G7nTf", ko = "lc-Checkbox-module__checkbox__label___-o01x", yo = "lc-Checkbox-module__checkbox__text___P2SIq", wo = "lc-Checkbox-module__checkbox__input___YLbVF", Eo = "lc-Checkbox-module__checkbox__checkmark___16pfY", $o = "lc-Checkbox-module__checkbox__square___MHUyd", No = "lc-Checkbox-module__checkbox__helper___YSJ-n", tt = {
|
|
2200
2211
|
checkbox: ho,
|
|
2201
2212
|
checkbox__label: ko,
|
|
2202
2213
|
checkbox__text: yo,
|
|
@@ -2206,28 +2217,28 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2206
2217
|
checkbox__square: $o,
|
|
2207
2218
|
"checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___-lAqW",
|
|
2208
2219
|
checkbox__helper: No
|
|
2209
|
-
},
|
|
2220
|
+
}, at = "checkbox", Co = e.forwardRef(
|
|
2210
2221
|
(i, c) => {
|
|
2211
2222
|
var d = i, { checked: t, disabled: a, children: r, description: _, className: o } = d, l = F(d, ["checked", "disabled", "children", "description", "className"]);
|
|
2212
2223
|
return /* @__PURE__ */ e.createElement(
|
|
2213
2224
|
"div",
|
|
2214
2225
|
{
|
|
2215
|
-
className: u(
|
|
2216
|
-
[
|
|
2217
|
-
[
|
|
2226
|
+
className: u(tt[at], o, {
|
|
2227
|
+
[tt[`${at}--selected`]]: t,
|
|
2228
|
+
[tt[`${at}--disabled`]]: a
|
|
2218
2229
|
})
|
|
2219
2230
|
},
|
|
2220
|
-
/* @__PURE__ */ e.createElement("label", { className:
|
|
2231
|
+
/* @__PURE__ */ e.createElement("label", { className: tt[`${at}__label`] }, /* @__PURE__ */ e.createElement(
|
|
2221
2232
|
"input",
|
|
2222
|
-
|
|
2233
|
+
S(k({}, l), {
|
|
2223
2234
|
ref: c,
|
|
2224
2235
|
checked: t,
|
|
2225
2236
|
disabled: a,
|
|
2226
|
-
className:
|
|
2237
|
+
className: tt[`${at}__input`],
|
|
2227
2238
|
type: "checkbox"
|
|
2228
2239
|
})
|
|
2229
|
-
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className:
|
|
2230
|
-
_ && /* @__PURE__ */ e.createElement(ua, { className:
|
|
2240
|
+
), r && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: tt[`${at}__text`] }, r)),
|
|
2241
|
+
_ && /* @__PURE__ */ e.createElement(ua, { className: tt[`${at}__helper`] }, _)
|
|
2231
2242
|
);
|
|
2232
2243
|
}
|
|
2233
2244
|
), A = {
|
|
@@ -2265,7 +2276,7 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2265
2276
|
"date-picker--range__select-input": "lc-DatePicker-module__date-picker--range__select-input___6pyj3",
|
|
2266
2277
|
"date-picker--range__calendars-wrapper": "lc-DatePicker-module__date-picker--range__calendars-wrapper___8nWaW",
|
|
2267
2278
|
"date-picker__navbar-buttons-wrapper": "lc-DatePicker-module__date-picker__navbar-buttons-wrapper___Hnksb"
|
|
2268
|
-
}, _r = "date-picker",
|
|
2279
|
+
}, _r = "date-picker", So = (t) => {
|
|
2269
2280
|
const {
|
|
2270
2281
|
onPreviousClick: a,
|
|
2271
2282
|
onMonthChange: r,
|
|
@@ -2280,26 +2291,26 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2280
2291
|
toMonth: p
|
|
2281
2292
|
} = t, m = () => {
|
|
2282
2293
|
typeof a == "function" && a();
|
|
2283
|
-
},
|
|
2294
|
+
}, b = () => {
|
|
2284
2295
|
typeof _ == "function" && _();
|
|
2285
2296
|
}, g = () => {
|
|
2286
2297
|
if (!s) {
|
|
2287
|
-
const
|
|
2288
|
-
return r(
|
|
2298
|
+
const v = bt(n, 12);
|
|
2299
|
+
return r(v);
|
|
2289
2300
|
}
|
|
2290
|
-
const
|
|
2301
|
+
const f = Math.abs(Ka(n, s)), h = bt(
|
|
2291
2302
|
n,
|
|
2292
|
-
!Number.isNaN(
|
|
2303
|
+
!Number.isNaN(f) && f > 12 ? 12 : f
|
|
2293
2304
|
);
|
|
2294
2305
|
return r(h);
|
|
2295
2306
|
}, w = () => {
|
|
2296
2307
|
if (!p) {
|
|
2297
|
-
const
|
|
2298
|
-
return r(
|
|
2308
|
+
const v = Ja(n, 12);
|
|
2309
|
+
return r(v);
|
|
2299
2310
|
}
|
|
2300
|
-
const
|
|
2311
|
+
const f = Math.abs(Ka(p, n)), h = Ja(
|
|
2301
2312
|
n,
|
|
2302
|
-
!Number.isNaN(
|
|
2313
|
+
!Number.isNaN(f) && f > 12 ? 12 : f
|
|
2303
2314
|
);
|
|
2304
2315
|
return d === 2 && Ia(h, p) ? r(bt(h, 1)) : r(h);
|
|
2305
2316
|
};
|
|
@@ -2333,7 +2344,7 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2333
2344
|
[i.navButtonNext]: !0,
|
|
2334
2345
|
[i.navButtonInteractionDisabled]: !o
|
|
2335
2346
|
}),
|
|
2336
|
-
onClick:
|
|
2347
|
+
onClick: b
|
|
2337
2348
|
},
|
|
2338
2349
|
/* @__PURE__ */ e.createElement(P, { source: wr, kind: "subtle" })
|
|
2339
2350
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -2348,23 +2359,23 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2348
2359
|
},
|
|
2349
2360
|
/* @__PURE__ */ e.createElement(P, { source: Jr, kind: "subtle" })
|
|
2350
2361
|
)));
|
|
2351
|
-
},
|
|
2362
|
+
}, M = "date-picker", Fr = (t, a) => {
|
|
2352
2363
|
const { from: r, to: _ } = a;
|
|
2353
|
-
return !(_ && !Fa(t, _) &&
|
|
2354
|
-
},
|
|
2364
|
+
return !(_ && !Fa(t, _) && Ma(t, _) || r && !Fa(t, r) && !Ma(t, r));
|
|
2365
|
+
}, Mr = (t, a, r) => a ? t && !Ia(t, a) || r && Ia(a, r) ? bt(a, 1) : a : bt(r || /* @__PURE__ */ new Date(), 1), xo = (t, a) => {
|
|
2355
2366
|
const r = {
|
|
2356
|
-
[A[`${
|
|
2357
|
-
[A[`${
|
|
2358
|
-
[A[`${
|
|
2359
|
-
[A[`${
|
|
2367
|
+
[A[`${M}__day--monday`]]: { daysOfWeek: [1] },
|
|
2368
|
+
[A[`${M}__day--sunday`]]: { daysOfWeek: [0] },
|
|
2369
|
+
[A[`${M}__day--start`]]: t,
|
|
2370
|
+
[A[`${M}__day--end`]]: t
|
|
2360
2371
|
};
|
|
2361
2372
|
if (!a || !t)
|
|
2362
2373
|
return r;
|
|
2363
|
-
const _ =
|
|
2364
|
-
return _ > 0 ?
|
|
2365
|
-
[A[`${
|
|
2366
|
-
}) : _ < 0 ?
|
|
2367
|
-
[A[`${
|
|
2374
|
+
const _ = xr(a, t);
|
|
2375
|
+
return _ > 0 ? S(k({}, r), {
|
|
2376
|
+
[A[`${M}__day--end`]]: a
|
|
2377
|
+
}) : _ < 0 ? S(k({}, r), {
|
|
2378
|
+
[A[`${M}__day--start`]]: a
|
|
2368
2379
|
}) : r;
|
|
2369
2380
|
}, Pt = (t, a) => {
|
|
2370
2381
|
const r = a.find((_) => _.id === t);
|
|
@@ -2380,39 +2391,39 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2380
2391
|
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) : {};
|
|
2381
2392
|
}, Do = (t, a) => k({
|
|
2382
2393
|
container: u({
|
|
2383
|
-
[A[`${
|
|
2384
|
-
[A[`${
|
|
2394
|
+
[A[`${M}`]]: !0,
|
|
2395
|
+
[A[`${M}--range`]]: t
|
|
2385
2396
|
}),
|
|
2386
|
-
wrapper: A[`${
|
|
2387
|
-
interactionDisabled: A[`${
|
|
2388
|
-
months: A[`${
|
|
2389
|
-
month: A[`${
|
|
2390
|
-
navBar: A[`${
|
|
2397
|
+
wrapper: A[`${M}__wrapper`],
|
|
2398
|
+
interactionDisabled: A[`${M}--interaction-disabled`],
|
|
2399
|
+
months: A[`${M}__months`],
|
|
2400
|
+
month: A[`${M}__month`],
|
|
2401
|
+
navBar: A[`${M}__nav-bar`],
|
|
2391
2402
|
navButtonPrev: u(
|
|
2392
|
-
A[`${
|
|
2393
|
-
A[`${
|
|
2403
|
+
A[`${M}__nav-button`],
|
|
2404
|
+
A[`${M}__nav-button--prev`]
|
|
2394
2405
|
),
|
|
2395
2406
|
navButtonNext: u(
|
|
2396
|
-
A[`${
|
|
2397
|
-
A[`${
|
|
2407
|
+
A[`${M}__nav-button`],
|
|
2408
|
+
A[`${M}__nav-button--next`]
|
|
2398
2409
|
),
|
|
2399
|
-
navButtonInteractionDisabled: A[`${
|
|
2400
|
-
caption: A[`${
|
|
2401
|
-
weekdays: A[`${
|
|
2402
|
-
weekdaysRow: A[`${
|
|
2403
|
-
weekday: A[`${
|
|
2404
|
-
body: A[`${
|
|
2405
|
-
week: A[`${
|
|
2406
|
-
weekNumber: A[`${
|
|
2407
|
-
day: A[`${
|
|
2408
|
-
footer: A[`${
|
|
2409
|
-
todayButton: A[`${
|
|
2410
|
-
today: A[`${
|
|
2411
|
-
selected: A[`${
|
|
2412
|
-
disabled: A[`${
|
|
2413
|
-
outside: A[`${
|
|
2414
|
-
start: A[`${
|
|
2415
|
-
end: A[`${
|
|
2410
|
+
navButtonInteractionDisabled: A[`${M}__nav-button--interaction-disabled`],
|
|
2411
|
+
caption: A[`${M}__caption`],
|
|
2412
|
+
weekdays: A[`${M}__weekdays`],
|
|
2413
|
+
weekdaysRow: A[`${M}__weekdays-row`],
|
|
2414
|
+
weekday: A[`${M}__weekday`],
|
|
2415
|
+
body: A[`${M}__body`],
|
|
2416
|
+
week: A[`${M}__week`],
|
|
2417
|
+
weekNumber: A[`${M}__week-number`],
|
|
2418
|
+
day: A[`${M}__day`],
|
|
2419
|
+
footer: A[`${M}__footer`],
|
|
2420
|
+
todayButton: A[`${M}__today-button`],
|
|
2421
|
+
today: A[`${M}__day--today`],
|
|
2422
|
+
selected: A[`${M}__day--selected`],
|
|
2423
|
+
disabled: A[`${M}__day--disabled`],
|
|
2424
|
+
outside: A[`${M}__day--outside`],
|
|
2425
|
+
start: A[`${M}__day--start`],
|
|
2426
|
+
end: A[`${M}__day--end`]
|
|
2416
2427
|
}, a), lr = "date-picker", Bo = (t) => {
|
|
2417
2428
|
const a = t.getDate();
|
|
2418
2429
|
return /* @__PURE__ */ e.createElement("div", { className: A[`${lr}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: A[`${lr}__day-content`] }, a));
|
|
@@ -2439,25 +2450,25 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2439
2450
|
"navbarElement",
|
|
2440
2451
|
"renderDay",
|
|
2441
2452
|
"innerRef"
|
|
2442
|
-
]), [m,
|
|
2453
|
+
]), [m, b] = e.useState(o || /* @__PURE__ */ new Date());
|
|
2443
2454
|
e.useEffect(() => {
|
|
2444
|
-
o && o !== m &&
|
|
2455
|
+
o && o !== m && b(o);
|
|
2445
2456
|
}, [o, m]), e.useEffect(() => {
|
|
2446
|
-
_ && o !== m && (Fr(m, { from: l, to: _ }) ||
|
|
2457
|
+
_ && o !== m && (Fr(m, { from: l, to: _ }) || b(_));
|
|
2447
2458
|
}, [o, m, _, l]);
|
|
2448
2459
|
const g = e.useCallback(
|
|
2449
|
-
(
|
|
2450
|
-
if (t.onMonthChange &&
|
|
2451
|
-
t.onMonthChange(
|
|
2460
|
+
(v) => {
|
|
2461
|
+
if (t.onMonthChange && v) {
|
|
2462
|
+
t.onMonthChange(v);
|
|
2452
2463
|
return;
|
|
2453
2464
|
}
|
|
2454
|
-
|
|
2465
|
+
b(v);
|
|
2455
2466
|
},
|
|
2456
2467
|
[o, t.onMonthChange]
|
|
2457
2468
|
);
|
|
2458
2469
|
let w = 1;
|
|
2459
2470
|
(c === 0 || c && c < 7) && (w = c);
|
|
2460
|
-
const
|
|
2471
|
+
const f = e.useMemo(
|
|
2461
2472
|
() => Do(r, a),
|
|
2462
2473
|
[r, a]
|
|
2463
2474
|
);
|
|
@@ -2465,10 +2476,10 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2465
2476
|
d_,
|
|
2466
2477
|
k({
|
|
2467
2478
|
navbarElement: d || /* @__PURE__ */ e.createElement(
|
|
2468
|
-
|
|
2479
|
+
So,
|
|
2469
2480
|
{
|
|
2470
2481
|
month: m,
|
|
2471
|
-
classNames:
|
|
2482
|
+
classNames: f,
|
|
2472
2483
|
numberOfMonths: i,
|
|
2473
2484
|
onMonthChange: g,
|
|
2474
2485
|
toMonth: _,
|
|
@@ -2476,7 +2487,7 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2476
2487
|
}
|
|
2477
2488
|
),
|
|
2478
2489
|
ref: s,
|
|
2479
|
-
classNames:
|
|
2490
|
+
classNames: f,
|
|
2480
2491
|
numberOfMonths: i,
|
|
2481
2492
|
toMonth: _,
|
|
2482
2493
|
fromMonth: l,
|
|
@@ -2491,7 +2502,7 @@ const ro = "lc-SegmentedControl-module__btn___tfsvL", Wt = {
|
|
|
2491
2502
|
Po.displayName = "DatePicker";
|
|
2492
2503
|
var Y = /* @__PURE__ */ ((t) => (t.NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM", t.NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE", t.CLEAR = "CLEAR", t.SET_FROM = "SET_FROM", t.SET_TO = "SET_TO", t.SELECT_FIRST_DAY = "SELECT_FIRST_DAY", t.SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM", t.SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO", t.CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE", t))(Y || {});
|
|
2493
2504
|
const Io = (t) => {
|
|
2494
|
-
const a =
|
|
2505
|
+
const a = Mr(
|
|
2495
2506
|
t.initialFromDate,
|
|
2496
2507
|
t.initialToDate,
|
|
2497
2508
|
t.toMonth
|
|
@@ -2513,36 +2524,36 @@ const Io = (t) => {
|
|
|
2513
2524
|
currentMonth: a
|
|
2514
2525
|
};
|
|
2515
2526
|
case Y.NEW_TEMPORARY_TO_VALUE:
|
|
2516
|
-
return
|
|
2527
|
+
return S(k({}, l), {
|
|
2517
2528
|
temporaryTo: c.payload.date
|
|
2518
2529
|
});
|
|
2519
2530
|
case Y.SELECT_FIRST_DAY:
|
|
2520
|
-
return
|
|
2531
|
+
return S(k({}, l), {
|
|
2521
2532
|
from: c.payload.date,
|
|
2522
2533
|
to: void 0,
|
|
2523
2534
|
temporaryTo: void 0
|
|
2524
2535
|
});
|
|
2525
2536
|
case Y.SELECT_SECOND_DAY_AS_FROM:
|
|
2526
|
-
return
|
|
2537
|
+
return S(k({}, l), {
|
|
2527
2538
|
from: c.payload.date,
|
|
2528
2539
|
to: l.from,
|
|
2529
2540
|
temporaryTo: l.from
|
|
2530
2541
|
});
|
|
2531
2542
|
case Y.SELECT_SECOND_DAY_AS_TO:
|
|
2532
|
-
return
|
|
2543
|
+
return S(k({}, l), {
|
|
2533
2544
|
to: c.payload.date,
|
|
2534
2545
|
temporaryTo: c.payload.date
|
|
2535
2546
|
});
|
|
2536
2547
|
case Y.CURRENT_MONTH_CHANGE:
|
|
2537
|
-
return
|
|
2548
|
+
return S(k({}, l), {
|
|
2538
2549
|
currentMonth: c.payload.date
|
|
2539
2550
|
});
|
|
2540
2551
|
case Y.SET_FROM:
|
|
2541
|
-
return
|
|
2552
|
+
return S(k({}, l), {
|
|
2542
2553
|
from: c.payload.date
|
|
2543
2554
|
});
|
|
2544
2555
|
case Y.SET_TO:
|
|
2545
|
-
return
|
|
2556
|
+
return S(k({}, l), {
|
|
2546
2557
|
to: c.payload.date
|
|
2547
2558
|
});
|
|
2548
2559
|
default:
|
|
@@ -2581,7 +2592,7 @@ const Io = (t) => {
|
|
|
2581
2592
|
payload: { date: _ }
|
|
2582
2593
|
});
|
|
2583
2594
|
}, [_]), gt(() => {
|
|
2584
|
-
const w =
|
|
2595
|
+
const w = Mr(
|
|
2585
2596
|
r,
|
|
2586
2597
|
_,
|
|
2587
2598
|
o
|
|
@@ -2591,11 +2602,11 @@ const Io = (t) => {
|
|
|
2591
2602
|
payload: { date: w }
|
|
2592
2603
|
});
|
|
2593
2604
|
}, [o, r, _]), gt(() => {
|
|
2594
|
-
const { from: w, selectedItem:
|
|
2605
|
+
const { from: w, selectedItem: f, to: h } = d;
|
|
2595
2606
|
if (!(w && h))
|
|
2596
2607
|
return;
|
|
2597
|
-
const
|
|
2598
|
-
|
|
2608
|
+
const v = Pt(f, t);
|
|
2609
|
+
v && (l == null || l(S(k({}, v), {
|
|
2599
2610
|
value: {
|
|
2600
2611
|
from: w,
|
|
2601
2612
|
to: h
|
|
@@ -2612,15 +2623,15 @@ const Io = (t) => {
|
|
|
2612
2623
|
if (!Pt(w, t))
|
|
2613
2624
|
return;
|
|
2614
2625
|
const h = t.reduce(
|
|
2615
|
-
(
|
|
2626
|
+
(v, E) => S(k({}, v), { [E.id]: E }),
|
|
2616
2627
|
{}
|
|
2617
2628
|
);
|
|
2618
2629
|
l(h[w]);
|
|
2619
2630
|
}, [l, d.selectedItem, t]);
|
|
2620
2631
|
const s = Lt(
|
|
2621
2632
|
(w) => {
|
|
2622
|
-
const
|
|
2623
|
-
!or(d.from, d.to) &&
|
|
2633
|
+
const f = o ? xr(o, w) >= 0 : !0;
|
|
2634
|
+
!or(d.from, d.to) && f && n({
|
|
2624
2635
|
type: Y.NEW_TEMPORARY_TO_VALUE,
|
|
2625
2636
|
payload: { date: w }
|
|
2626
2637
|
});
|
|
@@ -2628,11 +2639,11 @@ const Io = (t) => {
|
|
|
2628
2639
|
[o, d.from, d.to]
|
|
2629
2640
|
), p = Lt(
|
|
2630
2641
|
(w) => {
|
|
2631
|
-
const { from:
|
|
2632
|
-
Fr(w, { to: o }) && (or(
|
|
2642
|
+
const { from: f, to: h } = d;
|
|
2643
|
+
Fr(w, { to: o }) && (or(f, h) ? n({
|
|
2633
2644
|
type: Y.SELECT_FIRST_DAY,
|
|
2634
2645
|
payload: { date: w }
|
|
2635
|
-
}) :
|
|
2646
|
+
}) : f && Fa(w, f) || f && Ma(w, f) ? n({
|
|
2636
2647
|
type: Y.SELECT_SECOND_DAY_AS_TO,
|
|
2637
2648
|
payload: { date: w }
|
|
2638
2649
|
}) : n({
|
|
@@ -2656,24 +2667,24 @@ const Io = (t) => {
|
|
|
2656
2667
|
});
|
|
2657
2668
|
},
|
|
2658
2669
|
[t]
|
|
2659
|
-
),
|
|
2670
|
+
), b = Lt((w) => {
|
|
2660
2671
|
n({
|
|
2661
2672
|
type: Y.CURRENT_MONTH_CHANGE,
|
|
2662
2673
|
payload: { date: w }
|
|
2663
2674
|
});
|
|
2664
2675
|
}, []);
|
|
2665
2676
|
return c((() => {
|
|
2666
|
-
const { currentMonth: w, from:
|
|
2667
|
-
() =>
|
|
2668
|
-
[
|
|
2669
|
-
), $ = Ot(() => Pt(h, t), [t, h]), y = Ot(() => [
|
|
2677
|
+
const { currentMonth: w, from: f, selectedItem: h, temporaryTo: v, to: E } = d, N = Ot(
|
|
2678
|
+
() => xo(f, v),
|
|
2679
|
+
[f, v]
|
|
2680
|
+
), $ = Ot(() => Pt(h, t), [t, h]), y = Ot(() => [f, { from: f, to: v }], [f, v]), C = Ot(() => o ? { after: o } : void 0, [o]);
|
|
2670
2681
|
return {
|
|
2671
2682
|
select: {
|
|
2672
2683
|
onItemSelect: m,
|
|
2673
2684
|
selected: h || ""
|
|
2674
2685
|
},
|
|
2675
2686
|
inputs: {
|
|
2676
|
-
fromDate:
|
|
2687
|
+
fromDate: f,
|
|
2677
2688
|
toDate: E
|
|
2678
2689
|
},
|
|
2679
2690
|
datepicker: {
|
|
@@ -2687,7 +2698,7 @@ const Io = (t) => {
|
|
|
2687
2698
|
toMonth: o,
|
|
2688
2699
|
disabledDays: C,
|
|
2689
2700
|
onDayMouseEnter: s,
|
|
2690
|
-
onMonthChange:
|
|
2701
|
+
onMonthChange: b
|
|
2691
2702
|
},
|
|
2692
2703
|
selectedOption: $
|
|
2693
2704
|
};
|
|
@@ -2711,7 +2722,7 @@ const Ac = (t) => {
|
|
|
2711
2722
|
a,
|
|
2712
2723
|
A["date-picker--range__calendars-wrapper"]
|
|
2713
2724
|
);
|
|
2714
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
2725
|
+
return /* @__PURE__ */ e.createElement("div", S(k({}, _), { className: o }), r);
|
|
2715
2726
|
}, O = {
|
|
2716
2727
|
"details-card": "lc-DetailsCard-module__details-card___cVoS7",
|
|
2717
2728
|
"details-card__button--fading": "lc-DetailsCard-module__details-card__button--fading___tQA02",
|
|
@@ -2745,18 +2756,18 @@ const Ac = (t) => {
|
|
|
2745
2756
|
hideLabelOnOpen: d,
|
|
2746
2757
|
onClick: n
|
|
2747
2758
|
}) => {
|
|
2748
|
-
const [s, p] = e.useState(i), [m,
|
|
2759
|
+
const [s, p] = e.useState(i), [m, b] = e.useState(0), g = e.useRef(null), w = u(
|
|
2749
2760
|
O[H],
|
|
2750
2761
|
l && O[`${H}--with-divider`],
|
|
2751
2762
|
a
|
|
2752
|
-
),
|
|
2763
|
+
), f = d && s, h = typeof o == "string", v = (E) => {
|
|
2753
2764
|
p((N) => !N), E.currentTarget.blur(), n == null || n();
|
|
2754
2765
|
};
|
|
2755
2766
|
return e.useEffect(() => {
|
|
2756
2767
|
const E = !!window.IntersectionObserver;
|
|
2757
2768
|
if (g.current && E) {
|
|
2758
2769
|
const N = new ResizeObserver(() => {
|
|
2759
|
-
g.current && m !== g.current.offsetHeight &&
|
|
2770
|
+
g.current && m !== g.current.offsetHeight && b(g.current.offsetHeight);
|
|
2760
2771
|
});
|
|
2761
2772
|
return N.observe(g.current), () => N.disconnect();
|
|
2762
2773
|
}
|
|
@@ -2766,11 +2777,11 @@ const Ac = (t) => {
|
|
|
2766
2777
|
className: u(
|
|
2767
2778
|
O[`${H}__label-wrapper`],
|
|
2768
2779
|
d && O[`${H}__label-wrapper--fading`],
|
|
2769
|
-
|
|
2780
|
+
f && O[`${H}__label-wrapper--hide`],
|
|
2770
2781
|
s && O[`${H}__label-wrapper--open`]
|
|
2771
2782
|
),
|
|
2772
2783
|
"aria-expanded": s,
|
|
2773
|
-
"aria-hidden":
|
|
2784
|
+
"aria-hidden": f,
|
|
2774
2785
|
"data-testid": "details-card-label"
|
|
2775
2786
|
},
|
|
2776
2787
|
/* @__PURE__ */ e.createElement(
|
|
@@ -2812,7 +2823,7 @@ const Ac = (t) => {
|
|
|
2812
2823
|
s && O[`${H}__button--open`],
|
|
2813
2824
|
d && O[`${H}__button--fading`]
|
|
2814
2825
|
),
|
|
2815
|
-
onClick:
|
|
2826
|
+
onClick: v,
|
|
2816
2827
|
"aria-expanded": s
|
|
2817
2828
|
}
|
|
2818
2829
|
), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
@@ -2858,7 +2869,7 @@ const Ac = (t) => {
|
|
|
2858
2869
|
"className"
|
|
2859
2870
|
]);
|
|
2860
2871
|
const l = u(cr[nr], a);
|
|
2861
|
-
return /* @__PURE__ */ e.createElement(I,
|
|
2872
|
+
return /* @__PURE__ */ e.createElement(I, S(k({ as: "span", size: "sm" }, r), { className: l }), /* @__PURE__ */ e.createElement(
|
|
2862
2873
|
P,
|
|
2863
2874
|
{
|
|
2864
2875
|
source: Oa,
|
|
@@ -2870,7 +2881,7 @@ const Ac = (t) => {
|
|
|
2870
2881
|
"field-group": "lc-FieldGroup-module__field-group___gy8lp",
|
|
2871
2882
|
"field-group--inline": "lc-FieldGroup-module__field-group--inline___or4qf",
|
|
2872
2883
|
"field-group--stretched": "lc-FieldGroup-module__field-group--stretched___6rkuO"
|
|
2873
|
-
},
|
|
2884
|
+
}, Sa = "field-group", Fc = (i) => {
|
|
2874
2885
|
var d = i, {
|
|
2875
2886
|
className: t = "",
|
|
2876
2887
|
children: a,
|
|
@@ -2886,18 +2897,18 @@ const Ac = (t) => {
|
|
|
2886
2897
|
"inline",
|
|
2887
2898
|
"stretch"
|
|
2888
2899
|
]);
|
|
2889
|
-
const n = u(Ca[
|
|
2890
|
-
[Ca[`${
|
|
2891
|
-
[Ca[`${
|
|
2900
|
+
const n = u(Ca[Sa], t, {
|
|
2901
|
+
[Ca[`${Sa}--inline`]]: o,
|
|
2902
|
+
[Ca[`${Sa}--stretched`]]: l
|
|
2892
2903
|
});
|
|
2893
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
2894
|
-
},
|
|
2895
|
-
form:
|
|
2896
|
-
form__header:
|
|
2904
|
+
return /* @__PURE__ */ e.createElement("div", S(k({}, c), { className: n }), a, _ && /* @__PURE__ */ e.createElement(Va, null, _), r && /* @__PURE__ */ e.createElement(ua, null, r));
|
|
2905
|
+
}, Mo = "lc-Form-module__form___1nOYF", Ro = "lc-Form-module__form__header___U4B7t", Lo = "lc-Form-module__form__footer___1-sUX", Oo = "lc-Form-module__form__label___spg-J", Ho = "lc-Form-module__form__helper___bhfwS", Nt = {
|
|
2906
|
+
form: Mo,
|
|
2907
|
+
form__header: Ro,
|
|
2897
2908
|
form__footer: Lo,
|
|
2898
2909
|
form__label: Oo,
|
|
2899
2910
|
form__helper: Ho
|
|
2900
|
-
}, Ct = "form",
|
|
2911
|
+
}, Ct = "form", Mc = (c) => {
|
|
2901
2912
|
var i = c, {
|
|
2902
2913
|
className: t,
|
|
2903
2914
|
children: a,
|
|
@@ -2929,7 +2940,7 @@ const Ac = (t) => {
|
|
|
2929
2940
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___DCBjC",
|
|
2930
2941
|
"form-field__content": "lc-FormField-module__form-field__content___XaOx3",
|
|
2931
2942
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___NpVw4"
|
|
2932
|
-
}, J = "form-field",
|
|
2943
|
+
}, J = "form-field", Rc = ({
|
|
2933
2944
|
inline: t,
|
|
2934
2945
|
error: a,
|
|
2935
2946
|
description: r,
|
|
@@ -2948,8 +2959,8 @@ const Ac = (t) => {
|
|
|
2948
2959
|
l
|
|
2949
2960
|
);
|
|
2950
2961
|
return e.useEffect(() => {
|
|
2951
|
-
const
|
|
2952
|
-
return t &&
|
|
2962
|
+
const b = n;
|
|
2963
|
+
return t && b.current ? p(`${b.current.clientHeight}px`) : p("auto");
|
|
2953
2964
|
}), /* @__PURE__ */ e.createElement("div", { className: m }, d && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
2954
2965
|
I,
|
|
2955
2966
|
{
|
|
@@ -3048,7 +3059,7 @@ const Ac = (t) => {
|
|
|
3048
3059
|
const i = u(qt[Yt], t);
|
|
3049
3060
|
return /* @__PURE__ */ e.createElement(
|
|
3050
3061
|
"div",
|
|
3051
|
-
|
|
3062
|
+
S(k(S(k({}, o), {
|
|
3052
3063
|
role: "group"
|
|
3053
3064
|
}), r && { "aria-label": r }), {
|
|
3054
3065
|
className: i
|
|
@@ -3107,7 +3118,7 @@ const Ac = (t) => {
|
|
|
3107
3118
|
]);
|
|
3108
3119
|
const s = e.useRef(null);
|
|
3109
3120
|
e.useImperativeHandle(i, () => s.current, []);
|
|
3110
|
-
const [p, m] = e.useState(!1), [
|
|
3121
|
+
const [p, m] = e.useState(!1), [b, g] = e.useState(!1), { type: w, onFocus: f, onBlur: h } = c, v = u(
|
|
3111
3122
|
o,
|
|
3112
3123
|
Te[De],
|
|
3113
3124
|
Te[`${De}--${t}`],
|
|
@@ -3118,7 +3129,7 @@ const Ac = (t) => {
|
|
|
3118
3129
|
[Te[`${De}--crop`]]: l,
|
|
3119
3130
|
[Te[`${De}--read-only`]]: c.readOnly
|
|
3120
3131
|
}
|
|
3121
|
-
), E = r ? "var(--content-disabled)" : "var(--content-default)", N =
|
|
3132
|
+
), E = r ? "var(--content-disabled)" : "var(--content-default)", N = b ? Xr : Qr, $ = _ && _.place === "left", y = _ && w !== "password" && _.place === "right", C = () => {
|
|
3122
3133
|
var D;
|
|
3123
3134
|
(D = s.current) == null || D.focus();
|
|
3124
3135
|
};
|
|
@@ -3126,7 +3137,7 @@ const Ac = (t) => {
|
|
|
3126
3137
|
I,
|
|
3127
3138
|
{
|
|
3128
3139
|
as: "div",
|
|
3129
|
-
className:
|
|
3140
|
+
className: v,
|
|
3130
3141
|
"aria-disabled": r,
|
|
3131
3142
|
"tab-index": "0",
|
|
3132
3143
|
onClick: C
|
|
@@ -3134,16 +3145,16 @@ const Ac = (t) => {
|
|
|
3134
3145
|
$ && sr(_, r),
|
|
3135
3146
|
/* @__PURE__ */ e.createElement(
|
|
3136
3147
|
"input",
|
|
3137
|
-
|
|
3148
|
+
S(k({}, c), {
|
|
3138
3149
|
ref: s,
|
|
3139
3150
|
onFocus: (D) => {
|
|
3140
|
-
m(!0),
|
|
3151
|
+
m(!0), f == null || f(D);
|
|
3141
3152
|
},
|
|
3142
3153
|
onBlur: (D) => {
|
|
3143
3154
|
m(!1), h == null || h(D);
|
|
3144
3155
|
},
|
|
3145
3156
|
disabled: r,
|
|
3146
|
-
type: w && !
|
|
3157
|
+
type: w && !b ? w : "text"
|
|
3147
3158
|
})
|
|
3148
3159
|
),
|
|
3149
3160
|
y && sr(_, r),
|
|
@@ -3181,23 +3192,23 @@ const Ac = (t) => {
|
|
|
3181
3192
|
)
|
|
3182
3193
|
}, r)
|
|
3183
3194
|
);
|
|
3184
|
-
}, Uo = "lc-Modal-module__modal__body___M-jmN", Wo = "lc-Modal-module__modal__header___Fp5VE", Vo = "lc-Modal-module__modal__heading___G9KVK", qo = "lc-Modal-module__modal__footer___2LYdc",
|
|
3195
|
+
}, Uo = "lc-Modal-module__modal__body___M-jmN", Wo = "lc-Modal-module__modal__header___Fp5VE", Vo = "lc-Modal-module__modal__heading___G9KVK", qo = "lc-Modal-module__modal__footer___2LYdc", re = {
|
|
3185
3196
|
"modal-base": "lc-Modal-module__modal-base___hbL1U",
|
|
3186
|
-
"fade-in
|
|
3197
|
+
"fade-in": "lc-Modal-module__fade-in___gWlGs",
|
|
3187
3198
|
"modal-base--full-space": "lc-Modal-module__modal-base--full-space___KcGFL",
|
|
3188
3199
|
"modal-base__overlay": "lc-Modal-module__modal-base__overlay___kCQ8t",
|
|
3189
3200
|
"modal-base__overlay--visible": "lc-Modal-module__modal-base__overlay--visible___zUNJL",
|
|
3190
|
-
"fade-in-step1": "lc-Modal-module__fade-in-step1___c1cRV",
|
|
3191
3201
|
"modal-base__overlay--labelled": "lc-Modal-module__modal-base__overlay--labelled___THAo-",
|
|
3192
3202
|
"modal-base__close": "lc-Modal-module__modal-base__close___gJlgr",
|
|
3193
3203
|
"modal-base__close--label-type": "lc-Modal-module__modal-base__close--label-type___Om0Vb",
|
|
3194
3204
|
modal__body: Uo,
|
|
3195
3205
|
modal__header: Wo,
|
|
3206
|
+
"modal__header--without-heading": "lc-Modal-module__modal__header--without-heading___N2Bra",
|
|
3196
3207
|
"modal__label-header": "lc-Modal-module__modal__label-header___ZPtEy",
|
|
3197
3208
|
modal__heading: Vo,
|
|
3198
3209
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
3199
3210
|
modal__footer: qo
|
|
3200
|
-
},
|
|
3211
|
+
}, St = "modal-base", Yo = (d) => {
|
|
3201
3212
|
var n = d, {
|
|
3202
3213
|
children: t,
|
|
3203
3214
|
className: a = "",
|
|
@@ -3216,15 +3227,15 @@ const Ac = (t) => {
|
|
|
3216
3227
|
"isLabelled"
|
|
3217
3228
|
]);
|
|
3218
3229
|
const s = u(
|
|
3219
|
-
|
|
3230
|
+
re[St],
|
|
3220
3231
|
a,
|
|
3221
|
-
l &&
|
|
3232
|
+
l && re[`${St}--full-space`]
|
|
3222
3233
|
);
|
|
3223
3234
|
e.useEffect(() => {
|
|
3224
3235
|
if (!_)
|
|
3225
3236
|
return;
|
|
3226
|
-
const m = (
|
|
3227
|
-
|
|
3237
|
+
const m = (b) => {
|
|
3238
|
+
b.key === _e.esc && r();
|
|
3228
3239
|
};
|
|
3229
3240
|
return document.addEventListener("keyup", m, !0), () => document.removeEventListener("keyup", m, !0);
|
|
3230
3241
|
}, [_]);
|
|
@@ -3237,9 +3248,9 @@ const Ac = (t) => {
|
|
|
3237
3248
|
"data-testid": "lc-modal-overlay",
|
|
3238
3249
|
onMouseDown: p,
|
|
3239
3250
|
className: u(
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
c &&
|
|
3251
|
+
re[`${St}__overlay`],
|
|
3252
|
+
re[`${St}__overlay--visible`],
|
|
3253
|
+
c && re[`${St}__overlay--labelled`]
|
|
3243
3254
|
)
|
|
3244
3255
|
},
|
|
3245
3256
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3264,13 +3275,13 @@ const Ac = (t) => {
|
|
|
3264
3275
|
"aria-label": "Close modal",
|
|
3265
3276
|
title: "Close modal",
|
|
3266
3277
|
className: u(
|
|
3267
|
-
|
|
3268
|
-
t &&
|
|
3278
|
+
re["modal-base__close"],
|
|
3279
|
+
t && re["modal-base__close--label-type"]
|
|
3269
3280
|
),
|
|
3270
3281
|
onClick: r,
|
|
3271
3282
|
icon: /* @__PURE__ */ e.createElement(P, { source: Ae, size: "medium", customColor: a })
|
|
3272
3283
|
}
|
|
3273
|
-
),
|
|
3284
|
+
), Xe = "modal", zc = (n) => {
|
|
3274
3285
|
var s = n, {
|
|
3275
3286
|
children: t,
|
|
3276
3287
|
className: a = "",
|
|
@@ -3290,7 +3301,7 @@ const Ac = (t) => {
|
|
|
3290
3301
|
"onClose",
|
|
3291
3302
|
"contentClassName"
|
|
3292
3303
|
]);
|
|
3293
|
-
const p = u(
|
|
3304
|
+
const p = u(re[Xe], a), m = typeof t == "string", b = (g) => {
|
|
3294
3305
|
g.preventDefault(), g.stopPropagation(), c();
|
|
3295
3306
|
};
|
|
3296
3307
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -3301,12 +3312,12 @@ const Ac = (t) => {
|
|
|
3301
3312
|
onClose: c,
|
|
3302
3313
|
isLabelled: !!_
|
|
3303
3314
|
}, d),
|
|
3304
|
-
_ && /* @__PURE__ */ e.createElement("div", { className:
|
|
3315
|
+
_ && /* @__PURE__ */ e.createElement("div", { className: re[`${Xe}__label-header`] }, /* @__PURE__ */ e.createElement(
|
|
3305
3316
|
Be,
|
|
3306
3317
|
{
|
|
3307
3318
|
size: "sm",
|
|
3308
3319
|
as: "div",
|
|
3309
|
-
className:
|
|
3320
|
+
className: re[`${Xe}__label-heading`]
|
|
3310
3321
|
},
|
|
3311
3322
|
_
|
|
3312
3323
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -3314,27 +3325,36 @@ const Ac = (t) => {
|
|
|
3314
3325
|
{
|
|
3315
3326
|
labelType: !!_,
|
|
3316
3327
|
customColor: "var(--color-white)",
|
|
3317
|
-
onClick:
|
|
3328
|
+
onClick: b
|
|
3318
3329
|
}
|
|
3319
3330
|
)),
|
|
3320
|
-
!_ &&
|
|
3321
|
-
|
|
3331
|
+
!_ && /* @__PURE__ */ e.createElement(
|
|
3332
|
+
"div",
|
|
3322
3333
|
{
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3334
|
+
className: u(re[`${Xe}__header`], {
|
|
3335
|
+
[re[`${Xe}__header--without-heading`]]: !r
|
|
3336
|
+
})
|
|
3326
3337
|
},
|
|
3327
|
-
r
|
|
3328
|
-
|
|
3338
|
+
r && /* @__PURE__ */ e.createElement(
|
|
3339
|
+
Be,
|
|
3340
|
+
{
|
|
3341
|
+
size: "sm",
|
|
3342
|
+
as: "div",
|
|
3343
|
+
className: re[`${Xe}__heading`]
|
|
3344
|
+
},
|
|
3345
|
+
r
|
|
3346
|
+
),
|
|
3347
|
+
/* @__PURE__ */ e.createElement(ur, { onClick: b })
|
|
3348
|
+
),
|
|
3329
3349
|
/* @__PURE__ */ e.createElement(
|
|
3330
3350
|
"div",
|
|
3331
3351
|
{
|
|
3332
3352
|
"data-testid": "modal-body",
|
|
3333
|
-
className: u(
|
|
3353
|
+
className: u(re[`${Xe}__body`], i)
|
|
3334
3354
|
},
|
|
3335
3355
|
m ? /* @__PURE__ */ e.createElement(I, { as: "div" }, t) : t
|
|
3336
3356
|
),
|
|
3337
|
-
l && /* @__PURE__ */ e.createElement("div", { className:
|
|
3357
|
+
l && /* @__PURE__ */ e.createElement("div", { className: re[`${Xe}__footer`] }, l)
|
|
3338
3358
|
);
|
|
3339
3359
|
}, Gc = ({
|
|
3340
3360
|
children: t,
|
|
@@ -3350,7 +3370,7 @@ const Ac = (t) => {
|
|
|
3350
3370
|
(c = document.querySelector(r)) == null || c.removeChild(o);
|
|
3351
3371
|
};
|
|
3352
3372
|
}, [r]), /* @__PURE__ */ e.createElement(e.Fragment, null, Cr.createPortal(t, o));
|
|
3353
|
-
},
|
|
3373
|
+
}, xt = {
|
|
3354
3374
|
"modal-header": "lc-ModalHeader-module__modal-header___xk3bd",
|
|
3355
3375
|
"modal-header__heading-left-node": "lc-ModalHeader-module__modal-header__heading-left-node___1--G5",
|
|
3356
3376
|
"modal-header__heading-body": "lc-ModalHeader-module__modal-header__heading-body___HHEF-",
|
|
@@ -3362,22 +3382,22 @@ const Ac = (t) => {
|
|
|
3362
3382
|
children: _,
|
|
3363
3383
|
className: o = ""
|
|
3364
3384
|
}) => {
|
|
3365
|
-
const l = u(
|
|
3385
|
+
const l = u(xt[Tt], o);
|
|
3366
3386
|
return /* @__PURE__ */ e.createElement("div", { className: l }, a && /* @__PURE__ */ e.createElement(
|
|
3367
3387
|
P,
|
|
3368
3388
|
k({
|
|
3369
|
-
className:
|
|
3389
|
+
className: xt[`${Tt}__heading-left-node`]
|
|
3370
3390
|
}, a)
|
|
3371
3391
|
), r && /* @__PURE__ */ e.createElement(
|
|
3372
3392
|
Q_,
|
|
3373
3393
|
k({
|
|
3374
|
-
className:
|
|
3394
|
+
className: xt[`${Tt}__heading-left-node`]
|
|
3375
3395
|
}, r)
|
|
3376
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
3396
|
+
), /* @__PURE__ */ e.createElement("div", { className: xt[`${Tt}__heading-body`] }, /* @__PURE__ */ e.createElement(Be, { as: "div", size: "sm" }, t), _ && /* @__PURE__ */ e.createElement(
|
|
3377
3397
|
I,
|
|
3378
3398
|
{
|
|
3379
3399
|
as: "div",
|
|
3380
|
-
className:
|
|
3400
|
+
className: xt[`${Tt}__heading-description`]
|
|
3381
3401
|
},
|
|
3382
3402
|
_
|
|
3383
3403
|
)));
|
|
@@ -3410,7 +3430,7 @@ const Ac = (t) => {
|
|
|
3410
3430
|
"style",
|
|
3411
3431
|
"onChange"
|
|
3412
3432
|
]);
|
|
3413
|
-
const m = e.useRef(null),
|
|
3433
|
+
const m = e.useRef(null), b = u(
|
|
3414
3434
|
ut[mt],
|
|
3415
3435
|
{
|
|
3416
3436
|
[ut[`${mt}--error`]]: a,
|
|
@@ -3418,12 +3438,12 @@ const Ac = (t) => {
|
|
|
3418
3438
|
[ut[`${mt}--disabled`]]: l
|
|
3419
3439
|
},
|
|
3420
3440
|
t
|
|
3421
|
-
), g = (y) => d(String(y)), w = (y) => _ !== void 0 && y > _ ? _ : o !== void 0 && y < o ? o : y,
|
|
3441
|
+
), g = (y) => d(String(y)), w = (y) => _ !== void 0 && y > _ ? _ : o !== void 0 && y < o ? o : y, f = (y) => {
|
|
3422
3442
|
const C = parseInt(r, 10) + y;
|
|
3423
3443
|
return g(w(C));
|
|
3424
3444
|
}, h = (y) => {
|
|
3425
|
-
y.key === _e.arrowDown && (y.preventDefault(),
|
|
3426
|
-
},
|
|
3445
|
+
y.key === _e.arrowDown && (y.preventDefault(), f(-1)), y.key === _e.arrowUp && (y.preventDefault(), f(1));
|
|
3446
|
+
}, v = (y, C) => C !== void 0 && parseInt(y, 10) === C, E = (y) => {
|
|
3427
3447
|
y.preventDefault(), y.stopPropagation();
|
|
3428
3448
|
const C = y.currentTarget.value.replace(
|
|
3429
3449
|
/((?!([-]|([-]?\d+))).)/,
|
|
@@ -3435,14 +3455,14 @@ const Ac = (t) => {
|
|
|
3435
3455
|
return g(w(D));
|
|
3436
3456
|
}, N = () => {
|
|
3437
3457
|
var y;
|
|
3438
|
-
return (y = m.current) == null || y.focus(),
|
|
3458
|
+
return (y = m.current) == null || y.focus(), f(1);
|
|
3439
3459
|
}, $ = () => {
|
|
3440
3460
|
var y;
|
|
3441
|
-
return (y = m.current) == null || y.focus(),
|
|
3461
|
+
return (y = m.current) == null || y.focus(), f(-1);
|
|
3442
3462
|
};
|
|
3443
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
3463
|
+
return /* @__PURE__ */ e.createElement("div", { className: b, style: i }, /* @__PURE__ */ e.createElement(
|
|
3444
3464
|
"input",
|
|
3445
|
-
|
|
3465
|
+
S(k({
|
|
3446
3466
|
type: "text",
|
|
3447
3467
|
ref: m
|
|
3448
3468
|
}, n), {
|
|
@@ -3457,7 +3477,7 @@ const Ac = (t) => {
|
|
|
3457
3477
|
"button",
|
|
3458
3478
|
{
|
|
3459
3479
|
tabIndex: -1,
|
|
3460
|
-
disabled: l ||
|
|
3480
|
+
disabled: l || v(r, _),
|
|
3461
3481
|
onClick: N,
|
|
3462
3482
|
"aria-label": "Increment value",
|
|
3463
3483
|
className: ut[`${mt}__increment`],
|
|
@@ -3467,7 +3487,7 @@ const Ac = (t) => {
|
|
|
3467
3487
|
P,
|
|
3468
3488
|
{
|
|
3469
3489
|
source: ta,
|
|
3470
|
-
disabled: l ||
|
|
3490
|
+
disabled: l || v(r, _),
|
|
3471
3491
|
kind: "primary"
|
|
3472
3492
|
}
|
|
3473
3493
|
)
|
|
@@ -3475,7 +3495,7 @@ const Ac = (t) => {
|
|
|
3475
3495
|
"button",
|
|
3476
3496
|
{
|
|
3477
3497
|
tabIndex: -1,
|
|
3478
|
-
disabled: l ||
|
|
3498
|
+
disabled: l || v(r, o),
|
|
3479
3499
|
"aria-label": "Decrement value",
|
|
3480
3500
|
className: ut[`${mt}__decrement`],
|
|
3481
3501
|
onClick: $,
|
|
@@ -3484,9 +3504,9 @@ const Ac = (t) => {
|
|
|
3484
3504
|
/* @__PURE__ */ e.createElement(
|
|
3485
3505
|
P,
|
|
3486
3506
|
{
|
|
3487
|
-
source:
|
|
3507
|
+
source: Mt,
|
|
3488
3508
|
kind: "primary",
|
|
3489
|
-
disabled: l ||
|
|
3509
|
+
disabled: l || v(r, o)
|
|
3490
3510
|
}
|
|
3491
3511
|
)
|
|
3492
3512
|
)));
|
|
@@ -3503,9 +3523,9 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3503
3523
|
return t.forEach((_, o) => {
|
|
3504
3524
|
a(_) && r.push(o);
|
|
3505
3525
|
}), r;
|
|
3506
|
-
},
|
|
3526
|
+
}, Ra = (t) => t.filter(
|
|
3507
3527
|
({ key: a, disabled: r, groupHeader: _ }) => !(a === ft || r || _)
|
|
3508
|
-
),
|
|
3528
|
+
), xa = ({ key: t }) => t, mr = (t, a) => t.includes(a) ? t.filter((r) => r !== a) : [...t, a], ie = {
|
|
3509
3529
|
"item-wrapper": "lc-PickerListItem-module__item-wrapper___ETYMU",
|
|
3510
3530
|
"item-wrapper__first": "lc-PickerListItem-module__item-wrapper__first___uit1z",
|
|
3511
3531
|
"item-wrapper__last": "lc-PickerListItem-module__item-wrapper__last___cWmGF",
|
|
@@ -3520,7 +3540,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3520
3540
|
"picker-list__item__label": "lc-PickerListItem-module__picker-list__item__label___e0uwB",
|
|
3521
3541
|
"picker-list__item__main-label": "lc-PickerListItem-module__picker-list__item__main-label___YfUhr",
|
|
3522
3542
|
"picker-list__item__secondary-label": "lc-PickerListItem-module__picker-list__item__secondary-label___6xcMD"
|
|
3523
|
-
},
|
|
3543
|
+
}, $e = "picker-list__item", jo = ({
|
|
3524
3544
|
index: t,
|
|
3525
3545
|
isActive: a,
|
|
3526
3546
|
isSelected: r,
|
|
@@ -3530,37 +3550,37 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3530
3550
|
item: c,
|
|
3531
3551
|
numberOfItems: i
|
|
3532
3552
|
}) => {
|
|
3533
|
-
const d = (s) => s != null && s.customElement ? /* @__PURE__ */ e.createElement("div", { className:
|
|
3553
|
+
const d = (s) => s != null && s.customElement ? /* @__PURE__ */ e.createElement("div", { className: ie[`${$e}__custom`] }, s.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, s.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3534
3554
|
Co,
|
|
3535
3555
|
{
|
|
3536
|
-
className:
|
|
3556
|
+
className: ie[`${$e}__checkbox`],
|
|
3537
3557
|
checked: r
|
|
3538
3558
|
}
|
|
3539
3559
|
), s.icon && /* @__PURE__ */ e.createElement(
|
|
3540
3560
|
P,
|
|
3541
3561
|
{
|
|
3542
|
-
className:
|
|
3562
|
+
className: ie[`${$e}__icon`],
|
|
3543
3563
|
kind: "link",
|
|
3544
3564
|
source: s.icon
|
|
3545
3565
|
}
|
|
3546
3566
|
), s.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3547
3567
|
"img",
|
|
3548
3568
|
{
|
|
3549
|
-
className: u(
|
|
3569
|
+
className: u(ie[`${$e}__avatar`]),
|
|
3550
3570
|
src: s.avatarSrc,
|
|
3551
3571
|
alt: s.name
|
|
3552
3572
|
}
|
|
3553
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
3573
|
+
), /* @__PURE__ */ e.createElement("div", { className: ie[`${$e}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3554
3574
|
I,
|
|
3555
3575
|
{
|
|
3556
3576
|
as: "span",
|
|
3557
|
-
className: u([
|
|
3558
|
-
[
|
|
3577
|
+
className: u([ie[`${$e}__label`]], {
|
|
3578
|
+
[ie[`${$e}__main-label`]]: s.secondaryText
|
|
3559
3579
|
}),
|
|
3560
3580
|
"aria-disabled": s.disabled
|
|
3561
3581
|
},
|
|
3562
3582
|
s.name
|
|
3563
|
-
), s.secondaryText && /* @__PURE__ */ e.createElement("span", { className:
|
|
3583
|
+
), s.secondaryText && /* @__PURE__ */ e.createElement("span", { className: ie[`${$e}__secondary-label`] }, s.secondaryText)));
|
|
3564
3584
|
if (c.groupHeader)
|
|
3565
3585
|
return /* @__PURE__ */ e.createElement(
|
|
3566
3586
|
"div",
|
|
@@ -3568,7 +3588,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3568
3588
|
id: `item-${t}`,
|
|
3569
3589
|
key: c.key,
|
|
3570
3590
|
role: "group",
|
|
3571
|
-
className:
|
|
3591
|
+
className: ie[`${$e}__header`]
|
|
3572
3592
|
}, l()),
|
|
3573
3593
|
/* @__PURE__ */ e.createElement(Be, { size: "2xs", uppercase: !0, bold: !0, as: "div" }, c.name)
|
|
3574
3594
|
);
|
|
@@ -3577,7 +3597,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3577
3597
|
};
|
|
3578
3598
|
return /* @__PURE__ */ e.createElement(
|
|
3579
3599
|
"div",
|
|
3580
|
-
|
|
3600
|
+
S(k({
|
|
3581
3601
|
id: c.key,
|
|
3582
3602
|
key: c.key,
|
|
3583
3603
|
tabIndex: a ? 0 : -1,
|
|
@@ -3590,9 +3610,9 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3590
3610
|
}, l({
|
|
3591
3611
|
onClick: () => n(c.key)
|
|
3592
3612
|
})), {
|
|
3593
|
-
className: u(
|
|
3594
|
-
[
|
|
3595
|
-
[
|
|
3613
|
+
className: u(ie["item-wrapper"], {
|
|
3614
|
+
[ie["item-wrapper__first"]]: t === 0 && !c.groupHeader,
|
|
3615
|
+
[ie["item-wrapper__last"]]: t === i - 1 && !c.groupHeader
|
|
3596
3616
|
})
|
|
3597
3617
|
}),
|
|
3598
3618
|
/* @__PURE__ */ e.createElement(
|
|
@@ -3601,9 +3621,8 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3601
3621
|
"aria-selected": r,
|
|
3602
3622
|
"aria-disabled": c.disabled,
|
|
3603
3623
|
"aria-current": a && !c.disabled,
|
|
3604
|
-
className: u(
|
|
3605
|
-
[
|
|
3606
|
-
[ae[`${we}--select-all`]]: c.key === ft
|
|
3624
|
+
className: u(ie[$e], {
|
|
3625
|
+
[ie[`${$e}--select-all`]]: c.key === ft
|
|
3607
3626
|
})
|
|
3608
3627
|
},
|
|
3609
3628
|
d(c),
|
|
@@ -3635,15 +3654,15 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3635
3654
|
getFloatingProps: s,
|
|
3636
3655
|
getItemProps: p,
|
|
3637
3656
|
emptyStateText: m = "No results found",
|
|
3638
|
-
pickerType:
|
|
3657
|
+
pickerType: b = "single",
|
|
3639
3658
|
listClassName: g,
|
|
3640
3659
|
virtuosoProps: w
|
|
3641
3660
|
}) => {
|
|
3642
|
-
const [
|
|
3661
|
+
const [f, h] = e.useState(0), v = o.length, E = e.useCallback(
|
|
3643
3662
|
($) => {
|
|
3644
|
-
$ !==
|
|
3663
|
+
$ !== f && ($ < _ ? h($ + (v - 1) * Ko) : h(_));
|
|
3645
3664
|
},
|
|
3646
|
-
[
|
|
3665
|
+
[v]
|
|
3647
3666
|
);
|
|
3648
3667
|
if (gt(() => {
|
|
3649
3668
|
i.current = new Array(o.length);
|
|
@@ -3662,7 +3681,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3662
3681
|
/* @__PURE__ */ e.createElement("div", { className: $ }, m)
|
|
3663
3682
|
));
|
|
3664
3683
|
}
|
|
3665
|
-
const N = ($) => c.includes($) || $ === ft && c.length ===
|
|
3684
|
+
const N = ($) => c.includes($) || $ === ft && c.length === Ra(o).length;
|
|
3666
3685
|
return /* @__PURE__ */ e.createElement(Pa, { context: t, modal: !1, initialFocus: -1 }, /* @__PURE__ */ e.createElement(
|
|
3667
3686
|
"div",
|
|
3668
3687
|
{
|
|
@@ -3670,7 +3689,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3670
3689
|
ref: a,
|
|
3671
3690
|
tabIndex: -1,
|
|
3672
3691
|
className: u(pt.listbox, g),
|
|
3673
|
-
style:
|
|
3692
|
+
style: S(k({}, r), {
|
|
3674
3693
|
maxHeight: _
|
|
3675
3694
|
})
|
|
3676
3695
|
},
|
|
@@ -3678,7 +3697,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3678
3697
|
"div",
|
|
3679
3698
|
k({
|
|
3680
3699
|
tabIndex: 0,
|
|
3681
|
-
"aria-multiselectable":
|
|
3700
|
+
"aria-multiselectable": b === "multi",
|
|
3682
3701
|
className: pt["listbox-wrapper"]
|
|
3683
3702
|
}, s({
|
|
3684
3703
|
onKeyDown($) {
|
|
@@ -3693,9 +3712,9 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3693
3712
|
})),
|
|
3694
3713
|
/* @__PURE__ */ e.createElement(
|
|
3695
3714
|
u_,
|
|
3696
|
-
|
|
3715
|
+
S(k({
|
|
3697
3716
|
totalListHeightChanged: E,
|
|
3698
|
-
style: { height: `${
|
|
3717
|
+
style: { height: `${f}px`, maxHeight: _ },
|
|
3699
3718
|
totalCount: o.length,
|
|
3700
3719
|
data: o,
|
|
3701
3720
|
increaseViewportBy: 200
|
|
@@ -3710,14 +3729,14 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3710
3729
|
isSelected: N(y.key),
|
|
3711
3730
|
onSelect: n,
|
|
3712
3731
|
item: y,
|
|
3713
|
-
numberOfItems:
|
|
3732
|
+
numberOfItems: v
|
|
3714
3733
|
}
|
|
3715
3734
|
)
|
|
3716
3735
|
})
|
|
3717
3736
|
)
|
|
3718
3737
|
)
|
|
3719
3738
|
));
|
|
3720
|
-
},
|
|
3739
|
+
}, de = {
|
|
3721
3740
|
"picker-trigger": "lc-PickerTrigger-module__picker-trigger___-tjS0",
|
|
3722
3741
|
"picker-trigger--multi-select": "lc-PickerTrigger-module__picker-trigger--multi-select___av4Ws",
|
|
3723
3742
|
"picker-trigger--multi-select--with-items": "lc-PickerTrigger-module__picker-trigger--multi-select--with-items___7uI-R",
|
|
@@ -3735,7 +3754,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3735
3754
|
"picker-trigger--disabled": "lc-PickerTrigger-module__picker-trigger--disabled___4MGb4",
|
|
3736
3755
|
"picker-trigger--focused": "lc-PickerTrigger-module__picker-trigger--focused___vBA4d",
|
|
3737
3756
|
"picker-trigger--error": "lc-PickerTrigger-module__picker-trigger--error___yu6Dt"
|
|
3738
|
-
},
|
|
3757
|
+
}, ae = "picker-trigger", tl = ({
|
|
3739
3758
|
setReference: t,
|
|
3740
3759
|
getReferenceProps: a,
|
|
3741
3760
|
testId: r,
|
|
@@ -3749,22 +3768,22 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3749
3768
|
isError: s,
|
|
3750
3769
|
onClear: p,
|
|
3751
3770
|
children: m,
|
|
3752
|
-
setTriggerFocus:
|
|
3771
|
+
setTriggerFocus: b
|
|
3753
3772
|
}) => {
|
|
3754
3773
|
const g = u(
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
o &&
|
|
3758
|
-
o && l &&
|
|
3759
|
-
i &&
|
|
3760
|
-
n &&
|
|
3761
|
-
s &&
|
|
3762
|
-
), w = !c && l && !i && !d,
|
|
3774
|
+
de[ae],
|
|
3775
|
+
de[`${ae}--${_}`],
|
|
3776
|
+
o && de[`${ae}--multi-select`],
|
|
3777
|
+
o && l && de[`${ae}--multi-select--with-items`],
|
|
3778
|
+
i && de[`${ae}--disabled`],
|
|
3779
|
+
n && de[`${ae}--focused`],
|
|
3780
|
+
s && de[`${ae}--error`]
|
|
3781
|
+
), w = !c && l && !i && !d, f = (h) => {
|
|
3763
3782
|
h.stopPropagation(), p();
|
|
3764
3783
|
};
|
|
3765
3784
|
return /* @__PURE__ */ e.createElement(
|
|
3766
3785
|
"button",
|
|
3767
|
-
|
|
3786
|
+
S(k({
|
|
3768
3787
|
tabIndex: i ? -1 : 0,
|
|
3769
3788
|
"aria-disabled": i,
|
|
3770
3789
|
disabled: i,
|
|
@@ -3773,17 +3792,17 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3773
3792
|
ref: t,
|
|
3774
3793
|
type: "button"
|
|
3775
3794
|
}, a()), {
|
|
3776
|
-
onFocus: () =>
|
|
3777
|
-
onBlur: () =>
|
|
3795
|
+
onFocus: () => b(!0),
|
|
3796
|
+
onBlur: () => b(!1)
|
|
3778
3797
|
}),
|
|
3779
3798
|
/* @__PURE__ */ e.createElement(
|
|
3780
3799
|
I,
|
|
3781
3800
|
{
|
|
3782
3801
|
as: "div",
|
|
3783
3802
|
className: u(
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
o && l &&
|
|
3803
|
+
de[`${ae}__content`],
|
|
3804
|
+
de[`${ae}__content--${_}`],
|
|
3805
|
+
o && l && de[`${ae}__content--with-items`]
|
|
3787
3806
|
)
|
|
3788
3807
|
},
|
|
3789
3808
|
m
|
|
@@ -3792,24 +3811,24 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3792
3811
|
"div",
|
|
3793
3812
|
{
|
|
3794
3813
|
className: u(
|
|
3795
|
-
|
|
3796
|
-
|
|
3814
|
+
de[`${ae}__controls`],
|
|
3815
|
+
de[`${ae}__controls--${_}`]
|
|
3797
3816
|
)
|
|
3798
3817
|
},
|
|
3799
3818
|
w && /* @__PURE__ */ e.createElement(
|
|
3800
3819
|
"div",
|
|
3801
3820
|
{
|
|
3802
|
-
"data-testid": `${
|
|
3803
|
-
className:
|
|
3804
|
-
onClick:
|
|
3821
|
+
"data-testid": `${ae}__clear-icon`,
|
|
3822
|
+
className: de[`${ae}__clear-icon`],
|
|
3823
|
+
onClick: f
|
|
3805
3824
|
},
|
|
3806
3825
|
/* @__PURE__ */ e.createElement(P, { kind: "primary", size: "small", source: Ae })
|
|
3807
3826
|
),
|
|
3808
3827
|
/* @__PURE__ */ e.createElement(
|
|
3809
3828
|
P,
|
|
3810
3829
|
{
|
|
3811
|
-
className:
|
|
3812
|
-
source: n ? ta :
|
|
3830
|
+
className: de[`${ae}__chevron-icon`],
|
|
3831
|
+
source: n ? ta : Mt,
|
|
3813
3832
|
size: "medium",
|
|
3814
3833
|
disabled: i
|
|
3815
3834
|
}
|
|
@@ -3850,8 +3869,8 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3850
3869
|
"tag__remove--hover": "lc-Tag-module__tag__remove--hover___2ROEU",
|
|
3851
3870
|
tag__node: _l,
|
|
3852
3871
|
tag__content: ol
|
|
3853
|
-
}, ve = "tag", ll = (t) => t ? Ua(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "",
|
|
3854
|
-
var
|
|
3872
|
+
}, ve = "tag", ll = (t) => t ? Ua(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", Rr = (w) => {
|
|
3873
|
+
var f = w, {
|
|
3855
3874
|
className: t = "",
|
|
3856
3875
|
children: a,
|
|
3857
3876
|
dismissible: r = !1,
|
|
@@ -3865,8 +3884,8 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3865
3884
|
rightNode: s,
|
|
3866
3885
|
customColor: p,
|
|
3867
3886
|
iconOnly: m = !1,
|
|
3868
|
-
value:
|
|
3869
|
-
} =
|
|
3887
|
+
value: b
|
|
3888
|
+
} = f, g = F(f, [
|
|
3870
3889
|
"className",
|
|
3871
3890
|
"children",
|
|
3872
3891
|
"dismissible",
|
|
@@ -3882,7 +3901,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3882
3901
|
"iconOnly",
|
|
3883
3902
|
"value"
|
|
3884
3903
|
]);
|
|
3885
|
-
const h = _ || i && m,
|
|
3904
|
+
const h = _ || i && m, v = u(
|
|
3886
3905
|
fe[ve],
|
|
3887
3906
|
t,
|
|
3888
3907
|
fe[`${ve}--${l}`],
|
|
@@ -3905,8 +3924,8 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3905
3924
|
};
|
|
3906
3925
|
return /* @__PURE__ */ e.createElement(
|
|
3907
3926
|
I,
|
|
3908
|
-
|
|
3909
|
-
className:
|
|
3927
|
+
S(k(k({
|
|
3928
|
+
className: v
|
|
3910
3929
|
}, g), $()), {
|
|
3911
3930
|
as: "div",
|
|
3912
3931
|
size: N
|
|
@@ -3919,7 +3938,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3919
3938
|
style: { color: y() }
|
|
3920
3939
|
},
|
|
3921
3940
|
n
|
|
3922
|
-
), /* @__PURE__ */ e.createElement("div", { className: fe[`${ve}__content`] },
|
|
3941
|
+
), /* @__PURE__ */ e.createElement("div", { className: fe[`${ve}__content`] }, b || a), s && !m && /* @__PURE__ */ e.createElement(
|
|
3923
3942
|
"div",
|
|
3924
3943
|
{
|
|
3925
3944
|
"data-testid": "lc-tag-right-node",
|
|
@@ -3951,7 +3970,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3951
3970
|
)
|
|
3952
3971
|
)
|
|
3953
3972
|
);
|
|
3954
|
-
},
|
|
3973
|
+
}, ue = {
|
|
3955
3974
|
"picker-trigger-body": "lc-PickerTriggerBody-module__picker-trigger-body___xL0Rq",
|
|
3956
3975
|
"picker-trigger-body--single": "lc-PickerTriggerBody-module__picker-trigger-body--single___5LWZK",
|
|
3957
3976
|
"picker-trigger-body__item-container": "lc-PickerTriggerBody-module__picker-trigger-body__item-container___5Qs5E",
|
|
@@ -3969,7 +3988,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3969
3988
|
"picker-trigger-body__tag--compact": "lc-PickerTriggerBody-module__picker-trigger-body__tag--compact___vajtL",
|
|
3970
3989
|
"picker-trigger-body__tag--medium": "lc-PickerTriggerBody-module__picker-trigger-body__tag--medium___yhMyC",
|
|
3971
3990
|
"picker-trigger-body__tag--large": "lc-PickerTriggerBody-module__picker-trigger-body__tag--large___FbETT"
|
|
3972
|
-
},
|
|
3991
|
+
}, me = "picker-trigger-body", cl = ({
|
|
3973
3992
|
isOpen: t,
|
|
3974
3993
|
isSearchDisabled: a,
|
|
3975
3994
|
isDisabled: r,
|
|
@@ -3983,40 +4002,40 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
3983
4002
|
onFilter: s,
|
|
3984
4003
|
onClear: p,
|
|
3985
4004
|
searchPhrase: m,
|
|
3986
|
-
virtualItemRef:
|
|
4005
|
+
virtualItemRef: b,
|
|
3987
4006
|
isTriggerFocused: g
|
|
3988
4007
|
}) => {
|
|
3989
|
-
const w = t && !a,
|
|
4008
|
+
const w = t && !a, f = e.useRef(null);
|
|
3990
4009
|
e.useEffect(() => {
|
|
3991
|
-
c && (s(""),
|
|
4010
|
+
c && (s(""), f.current && (f.current.value = "", f.current.focus()));
|
|
3992
4011
|
}, [o, c]);
|
|
3993
4012
|
const h = (y) => {
|
|
3994
4013
|
y.key === "Backspace" && o && o.length > 0 && (y.preventDefault(), l === "multi" ? d(o[o.length - 1].key) : p()), y.key === "Delete" && (y.preventDefault(), p());
|
|
3995
4014
|
};
|
|
3996
4015
|
e.useEffect(() => (!t && g ? document.addEventListener("keydown", h) : document.removeEventListener("keydown", h), () => document.removeEventListener("keydown", h)), [t, o, g]);
|
|
3997
|
-
const
|
|
4016
|
+
const v = (y) => l === "single" && t && !a ? null : y != null && y.customElement ? /* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item`] }, y.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item`] }, y.icon && /* @__PURE__ */ e.createElement(
|
|
3998
4017
|
P,
|
|
3999
4018
|
{
|
|
4000
4019
|
source: y.icon,
|
|
4001
|
-
className:
|
|
4020
|
+
className: ue[`${me}__item__icon`]
|
|
4002
4021
|
}
|
|
4003
4022
|
), y.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
4004
4023
|
"img",
|
|
4005
4024
|
{
|
|
4006
4025
|
src: y.avatarSrc,
|
|
4007
4026
|
alt: "",
|
|
4008
|
-
className:
|
|
4027
|
+
className: ue[`${me}__item__avatar`]
|
|
4009
4028
|
}
|
|
4010
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
4029
|
+
), /* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item__content`] }, y.name)), E = (y) => s(y.target.value), N = (y) => {
|
|
4011
4030
|
var C, D;
|
|
4012
|
-
(C =
|
|
4031
|
+
(C = b.current) != null && C.id && y.key === "Enter" && n((D = b.current) == null ? void 0 : D.id), l === "multi" && (y.key === "Backspace" || y.key === "Delete") && !m && o && (o == null ? void 0 : o.length) > 0 && d(o[o.length - 1].key);
|
|
4013
4032
|
}, $ = () => /* @__PURE__ */ e.createElement(
|
|
4014
4033
|
"input",
|
|
4015
4034
|
{
|
|
4016
|
-
ref:
|
|
4035
|
+
ref: f,
|
|
4017
4036
|
className: u(
|
|
4018
|
-
|
|
4019
|
-
|
|
4037
|
+
ue[`${me}__input`],
|
|
4038
|
+
ue[`${me}__input--${i}`]
|
|
4020
4039
|
),
|
|
4021
4040
|
placeholder: _,
|
|
4022
4041
|
onChange: E,
|
|
@@ -4029,32 +4048,32 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4029
4048
|
"div",
|
|
4030
4049
|
{
|
|
4031
4050
|
className: u({
|
|
4032
|
-
[
|
|
4033
|
-
[
|
|
4051
|
+
[ue[`${me}__placeholder`]]: !0,
|
|
4052
|
+
[ue[`${me}__placeholder--disabled`]]: r
|
|
4034
4053
|
})
|
|
4035
4054
|
},
|
|
4036
4055
|
_
|
|
4037
4056
|
) : /* @__PURE__ */ e.createElement(
|
|
4038
4057
|
"div",
|
|
4039
4058
|
{
|
|
4040
|
-
className: u(
|
|
4041
|
-
[
|
|
4059
|
+
className: u(ue[me], {
|
|
4060
|
+
[ue[`${me}--single`]]: l === "single"
|
|
4042
4061
|
})
|
|
4043
4062
|
},
|
|
4044
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4045
|
-
|
|
4063
|
+
/* @__PURE__ */ e.createElement("div", { className: ue[`${me}__item-container`] }, l === "single" ? v(o[0]) : o.map((y) => /* @__PURE__ */ e.createElement(
|
|
4064
|
+
Rr,
|
|
4046
4065
|
{
|
|
4047
4066
|
key: y.name,
|
|
4048
4067
|
className: u(
|
|
4049
|
-
|
|
4050
|
-
|
|
4068
|
+
ue[`${me}__tag`],
|
|
4069
|
+
ue[`${me}__tag--${i}`]
|
|
4051
4070
|
),
|
|
4052
4071
|
disabled: r,
|
|
4053
4072
|
onRemove: (C) => {
|
|
4054
4073
|
C.stopPropagation(), d(y.key);
|
|
4055
4074
|
}
|
|
4056
4075
|
},
|
|
4057
|
-
|
|
4076
|
+
v(y)
|
|
4058
4077
|
))),
|
|
4059
4078
|
w && $()
|
|
4060
4079
|
);
|
|
@@ -4070,7 +4089,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4070
4089
|
isOpen: d,
|
|
4071
4090
|
onVisibilityChange: n
|
|
4072
4091
|
}) => {
|
|
4073
|
-
const s = aa(), [p, m] = e.useState(!1), [
|
|
4092
|
+
const s = aa(), [p, m] = e.useState(!1), [b, g] = e.useState(null), [w, f] = e.useState(o), h = e.useRef([]), v = e.useRef(null), { refs: E, floatingStyles: N, context: $, isPositioned: y } = ra({
|
|
4074
4093
|
nodeId: s,
|
|
4075
4094
|
open: d,
|
|
4076
4095
|
strategy: l,
|
|
@@ -4084,7 +4103,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4084
4103
|
Er({
|
|
4085
4104
|
apply({ availableHeight: q, rects: he, elements: oe }) {
|
|
4086
4105
|
Cr.flushSync(() => {
|
|
4087
|
-
|
|
4106
|
+
f(
|
|
4088
4107
|
Math.max(
|
|
4089
4108
|
Math.min(o, q),
|
|
4090
4109
|
_
|
|
@@ -4104,20 +4123,20 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4104
4123
|
}, i)), D = sa($, { role: "listbox" }), L = na($, c), G = s_($, {
|
|
4105
4124
|
enabled: a.length > 0 && !t,
|
|
4106
4125
|
listRef: h,
|
|
4107
|
-
activeIndex:
|
|
4126
|
+
activeIndex: b,
|
|
4108
4127
|
onNavigate: g,
|
|
4109
4128
|
virtual: !0,
|
|
4110
|
-
virtualItemRef:
|
|
4129
|
+
virtualItemRef: v,
|
|
4111
4130
|
disabledIndices: Qo(
|
|
4112
4131
|
a,
|
|
4113
4132
|
(q) => !!q.disabled || !!q.groupHeader
|
|
4114
4133
|
)
|
|
4115
|
-
}), { getReferenceProps: T, getFloatingProps:
|
|
4134
|
+
}), { getReferenceProps: T, getFloatingProps: R, getItemProps: V } = ia(
|
|
4116
4135
|
[C, L, D, G]
|
|
4117
4136
|
);
|
|
4118
4137
|
return !d && p && m(!1), {
|
|
4119
4138
|
getReferenceProps: T,
|
|
4120
|
-
getFloatingProps:
|
|
4139
|
+
getFloatingProps: R,
|
|
4121
4140
|
getItemProps: V,
|
|
4122
4141
|
setReference: E.setReference,
|
|
4123
4142
|
floatingStyles: N,
|
|
@@ -4125,9 +4144,9 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4125
4144
|
context: $,
|
|
4126
4145
|
nodeId: s,
|
|
4127
4146
|
setFloating: E.setFloating,
|
|
4128
|
-
activeIndex:
|
|
4147
|
+
activeIndex: b,
|
|
4129
4148
|
listElementsRef: h,
|
|
4130
|
-
virtualItemRef:
|
|
4149
|
+
virtualItemRef: v,
|
|
4131
4150
|
maxHeight: w,
|
|
4132
4151
|
pointer: p,
|
|
4133
4152
|
setPointer: m
|
|
@@ -4141,35 +4160,35 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4141
4160
|
setOpen: l
|
|
4142
4161
|
}) => {
|
|
4143
4162
|
const [c, i] = e.useState(
|
|
4144
|
-
() => (t == null ? void 0 : t.map(
|
|
4145
|
-
), d = t !== void 0, n = d ? (t == null ? void 0 : t.map(
|
|
4163
|
+
() => (t == null ? void 0 : t.map(xa)) || []
|
|
4164
|
+
), d = t !== void 0, n = d ? (t == null ? void 0 : t.map(xa)) || [] : c, [s, p] = e.useState(""), m = e.useMemo(() => {
|
|
4146
4165
|
const h = r === "multi" && _;
|
|
4147
|
-
let
|
|
4148
|
-
return s && (
|
|
4166
|
+
let v = a;
|
|
4167
|
+
return s && (v = v.filter((E) => {
|
|
4149
4168
|
var C;
|
|
4150
4169
|
if (E.groupHeader)
|
|
4151
4170
|
return !1;
|
|
4152
4171
|
const N = s.toLowerCase(), $ = E.name.toLowerCase(), y = (C = E.secondaryText) == null ? void 0 : C.toLowerCase();
|
|
4153
4172
|
return $.includes(N) || (y == null ? void 0 : y.includes(N));
|
|
4154
|
-
})), h &&
|
|
4173
|
+
})), h && v.length > 1 && (v = [
|
|
4155
4174
|
{
|
|
4156
4175
|
key: ft,
|
|
4157
4176
|
name: _
|
|
4158
4177
|
},
|
|
4159
|
-
...
|
|
4160
|
-
]),
|
|
4161
|
-
}, [s, a, r, _]),
|
|
4162
|
-
const
|
|
4163
|
-
if (!((!
|
|
4178
|
+
...v
|
|
4179
|
+
]), v;
|
|
4180
|
+
}, [s, a, r, _]), b = (h) => {
|
|
4181
|
+
const v = a.find((E) => E.key === h);
|
|
4182
|
+
if (!((!v || v.disabled) && h !== ft))
|
|
4164
4183
|
if (r === "single")
|
|
4165
|
-
i(() => (
|
|
4184
|
+
i(() => (v && o([v]), [h])), l(!1);
|
|
4166
4185
|
else if (h === ft)
|
|
4167
|
-
n.length ===
|
|
4168
|
-
const E =
|
|
4186
|
+
n.length === Ra(a).length ? i(() => (o(null), [])) : i(() => {
|
|
4187
|
+
const E = Ra(a);
|
|
4169
4188
|
return o(E), E.map(({ key: N }) => N);
|
|
4170
4189
|
});
|
|
4171
4190
|
else if (d) {
|
|
4172
|
-
const E = (t == null ? void 0 : t.map(
|
|
4191
|
+
const E = (t == null ? void 0 : t.map(xa)) || [], N = mr(E, h);
|
|
4173
4192
|
o(a.filter(({ key: $ }) => N.includes($)));
|
|
4174
4193
|
} else
|
|
4175
4194
|
i((E) => {
|
|
@@ -4181,9 +4200,9 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4181
4200
|
selectedKeys: n,
|
|
4182
4201
|
items: m,
|
|
4183
4202
|
searchPhrase: s,
|
|
4184
|
-
handleSelect:
|
|
4203
|
+
handleSelect: b,
|
|
4185
4204
|
handleOnFilter: (h) => p(h),
|
|
4186
|
-
handleItemRemove: (h) =>
|
|
4205
|
+
handleItemRemove: (h) => b(h),
|
|
4187
4206
|
handleClear: () => {
|
|
4188
4207
|
!d && i([]), o(null), p(""), l(!1);
|
|
4189
4208
|
}
|
|
@@ -4205,12 +4224,12 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4205
4224
|
placeholder: s = "Select option",
|
|
4206
4225
|
isRequired: p,
|
|
4207
4226
|
noSearchResultText: m = "No results found",
|
|
4208
|
-
selectAllOptionText:
|
|
4227
|
+
selectAllOptionText: b,
|
|
4209
4228
|
type: g = "single",
|
|
4210
4229
|
searchDisabled: w = !1,
|
|
4211
|
-
hideClearButton:
|
|
4230
|
+
hideClearButton: f,
|
|
4212
4231
|
isVisible: h,
|
|
4213
|
-
onOpen:
|
|
4232
|
+
onOpen: v,
|
|
4214
4233
|
onClose: E,
|
|
4215
4234
|
openedOnInit: N = !1,
|
|
4216
4235
|
clearSearchAfterSelection: $,
|
|
@@ -4220,7 +4239,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4220
4239
|
useDismissHookProps: L,
|
|
4221
4240
|
useClickHookProps: G,
|
|
4222
4241
|
virtuosoProps: T
|
|
4223
|
-
} = q,
|
|
4242
|
+
} = q, R = F(q, [
|
|
4224
4243
|
"id",
|
|
4225
4244
|
"className",
|
|
4226
4245
|
"listClassName",
|
|
@@ -4250,8 +4269,8 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4250
4269
|
"useClickHookProps",
|
|
4251
4270
|
"virtuosoProps"
|
|
4252
4271
|
]);
|
|
4253
|
-
const [he, oe] = e.useState(N), [
|
|
4254
|
-
ht ? !Pe && (
|
|
4272
|
+
const [he, oe] = e.useState(N), [we, Oe] = e.useState(!1), Ee = h !== void 0, Pe = Ee ? h : he, Ze = (ht, ce) => {
|
|
4273
|
+
ht ? !Pe && (v == null || v(ce)) : Pe && (E == null || E(ce)), !Ee && oe(ht);
|
|
4255
4274
|
}, {
|
|
4256
4275
|
selectedKeys: lt,
|
|
4257
4276
|
items: ct,
|
|
@@ -4264,11 +4283,11 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4264
4283
|
selected: d,
|
|
4265
4284
|
options: i,
|
|
4266
4285
|
type: g,
|
|
4267
|
-
selectAllOptionText:
|
|
4286
|
+
selectAllOptionText: b,
|
|
4268
4287
|
onSelect: y,
|
|
4269
|
-
setOpen:
|
|
4288
|
+
setOpen: Ze
|
|
4270
4289
|
}), {
|
|
4271
|
-
context:
|
|
4290
|
+
context: x,
|
|
4272
4291
|
nodeId: ee,
|
|
4273
4292
|
getReferenceProps: le,
|
|
4274
4293
|
setReference: ze,
|
|
@@ -4292,18 +4311,18 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4292
4311
|
useClickHookProps: G,
|
|
4293
4312
|
useDismissHookProps: L,
|
|
4294
4313
|
isOpen: Pe,
|
|
4295
|
-
onVisibilityChange:
|
|
4314
|
+
onVisibilityChange: Ze
|
|
4296
4315
|
});
|
|
4297
4316
|
return /* @__PURE__ */ e.createElement("div", { id: t, className: u(dl["picker-wrapper"], a) }, /* @__PURE__ */ e.createElement(
|
|
4298
4317
|
tl,
|
|
4299
4318
|
{
|
|
4300
4319
|
getReferenceProps: le,
|
|
4301
4320
|
setReference: ze,
|
|
4302
|
-
testId:
|
|
4321
|
+
testId: R["data-testid"],
|
|
4303
4322
|
isItemSelected: lt.length > 0,
|
|
4304
4323
|
isOpen: Pe,
|
|
4305
4324
|
onClear: Ie,
|
|
4306
|
-
hideClearButton:
|
|
4325
|
+
hideClearButton: f,
|
|
4307
4326
|
isDisabled: l,
|
|
4308
4327
|
isError: c,
|
|
4309
4328
|
isRequired: p,
|
|
@@ -4328,7 +4347,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4328
4347
|
onClear: Ie,
|
|
4329
4348
|
searchPhrase: nt,
|
|
4330
4349
|
virtualItemRef: fa,
|
|
4331
|
-
isTriggerFocused:
|
|
4350
|
+
isTriggerFocused: we
|
|
4332
4351
|
}
|
|
4333
4352
|
)
|
|
4334
4353
|
), /* @__PURE__ */ e.createElement(da, { id: ee }, Pe && /* @__PURE__ */ e.createElement(Nr, null, /* @__PURE__ */ e.createElement(
|
|
@@ -4337,7 +4356,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4337
4356
|
pickerType: g,
|
|
4338
4357
|
options: ct,
|
|
4339
4358
|
listClassName: r,
|
|
4340
|
-
context:
|
|
4359
|
+
context: x,
|
|
4341
4360
|
setFloating: pa,
|
|
4342
4361
|
floatingStyles: ga,
|
|
4343
4362
|
maxHeight: ha,
|
|
@@ -4368,35 +4387,35 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4368
4387
|
openedOnInit: s,
|
|
4369
4388
|
closeOnEsc: p = !0,
|
|
4370
4389
|
useDismissHookProps: m,
|
|
4371
|
-
useClickHookProps:
|
|
4390
|
+
useClickHookProps: b,
|
|
4372
4391
|
floatingStrategy: g
|
|
4373
4392
|
}) => {
|
|
4374
|
-
const [w,
|
|
4375
|
-
Oe ? r == null || r(
|
|
4393
|
+
const [w, f] = e.useState(s), h = Ha(), v = aa(), E = n !== void 0, N = E ? n : w, $ = typeof _ == "string", y = typeof t == "function", C = (Oe, Ee) => {
|
|
4394
|
+
Oe ? r == null || r(Ee) : a == null || a(Ee), !E && f(Oe);
|
|
4376
4395
|
}, { refs: D, context: L, floatingStyles: G } = ra({
|
|
4377
|
-
nodeId:
|
|
4396
|
+
nodeId: v,
|
|
4378
4397
|
open: N,
|
|
4379
4398
|
onOpenChange: C,
|
|
4380
4399
|
middleware: [_a(d), oa(i), Ga()],
|
|
4381
4400
|
placement: c,
|
|
4382
4401
|
strategy: g,
|
|
4383
4402
|
whileElementsMounted: la
|
|
4384
|
-
}), T = ca(L,
|
|
4403
|
+
}), T = ca(L, b), R = na(L, k({
|
|
4385
4404
|
escapeKey: p
|
|
4386
4405
|
}, m)), V = sa(L), { getReferenceProps: q, getFloatingProps: he } = ia([
|
|
4387
4406
|
T,
|
|
4388
|
-
|
|
4407
|
+
R,
|
|
4389
4408
|
V
|
|
4390
|
-
]), oe = u(ml.popover, o),
|
|
4409
|
+
]), oe = u(ml.popover, o), we = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
4391
4410
|
"div",
|
|
4392
|
-
|
|
4411
|
+
S(k({
|
|
4393
4412
|
"data-testid": "popover-trigger-button",
|
|
4394
4413
|
ref: D.setReference
|
|
4395
4414
|
}, q()), {
|
|
4396
4415
|
className: l
|
|
4397
4416
|
}),
|
|
4398
4417
|
y ? t() : t
|
|
4399
|
-
), /* @__PURE__ */ e.createElement(da, { id:
|
|
4418
|
+
), /* @__PURE__ */ e.createElement(da, { id: v }, N && /* @__PURE__ */ e.createElement(Pa, { context: L, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
4400
4419
|
"div",
|
|
4401
4420
|
k({
|
|
4402
4421
|
className: oe,
|
|
@@ -4405,7 +4424,7 @@ const ft = "select-all", Qo = (t, a) => {
|
|
|
4405
4424
|
}, he()),
|
|
4406
4425
|
$ ? /* @__PURE__ */ e.createElement(I, { as: "div" }, _) : _
|
|
4407
4426
|
))));
|
|
4408
|
-
return h === null ? /* @__PURE__ */ e.createElement(za, null,
|
|
4427
|
+
return h === null ? /* @__PURE__ */ e.createElement(za, null, we) : we;
|
|
4409
4428
|
}, pl = (t) => Math.min(Math.max(t, 0), 100);
|
|
4410
4429
|
function Lr(t, a = 0) {
|
|
4411
4430
|
return t === "error" ? 0 : pl(parseInt(a.toString(), 10));
|
|
@@ -4449,7 +4468,7 @@ const Dt = {
|
|
|
4449
4468
|
[Dt[`${Bt}--${t}`]]: t
|
|
4450
4469
|
},
|
|
4451
4470
|
r
|
|
4452
|
-
), m = 2 * Math.PI * ((s - n) / 2),
|
|
4471
|
+
), m = 2 * Math.PI * ((s - n) / 2), b = {
|
|
4453
4472
|
strokeDasharray: m.toFixed(3),
|
|
4454
4473
|
strokeDashoffset: `${((100 - d) / 100 * m).toFixed(3)}px`
|
|
4455
4474
|
}, g = `${s / 2} ${s / 2} ${s} ${s}`;
|
|
@@ -4474,7 +4493,7 @@ const Dt = {
|
|
|
4474
4493
|
"circle",
|
|
4475
4494
|
{
|
|
4476
4495
|
className: Dt[`${Bt}__indicator--${t}`],
|
|
4477
|
-
style:
|
|
4496
|
+
style: b,
|
|
4478
4497
|
cx: s,
|
|
4479
4498
|
cy: s,
|
|
4480
4499
|
r: (s - n) / 2,
|
|
@@ -4517,7 +4536,7 @@ const Dt = {
|
|
|
4517
4536
|
);
|
|
4518
4537
|
return /* @__PURE__ */ e.createElement(
|
|
4519
4538
|
"div",
|
|
4520
|
-
|
|
4539
|
+
S(k({}, o), {
|
|
4521
4540
|
className: n,
|
|
4522
4541
|
ref: l,
|
|
4523
4542
|
role: "progressbar"
|
|
@@ -4556,7 +4575,7 @@ const Dt = {
|
|
|
4556
4575
|
onClose: d,
|
|
4557
4576
|
onLinkClick: n
|
|
4558
4577
|
}) => {
|
|
4559
|
-
const s = e.useRef(null), [p, m] = e.useState("medium"),
|
|
4578
|
+
const s = e.useRef(null), [p, m] = e.useState("medium"), b = u(
|
|
4560
4579
|
Ne[Ce],
|
|
4561
4580
|
{
|
|
4562
4581
|
[Ne[`${Ce}--light`]]: l,
|
|
@@ -4566,12 +4585,12 @@ const Dt = {
|
|
|
4566
4585
|
t
|
|
4567
4586
|
);
|
|
4568
4587
|
e.useEffect(() => {
|
|
4569
|
-
const w = () => s.current && s.current.offsetWidth <= hl ? m("small") : s.current && s.current.offsetWidth >= kl ? m("large") : m("medium"),
|
|
4588
|
+
const w = () => s.current && s.current.offsetWidth <= hl ? m("small") : s.current && s.current.offsetWidth >= kl ? m("large") : m("medium"), f = Sr(
|
|
4570
4589
|
w,
|
|
4571
4590
|
yl
|
|
4572
4591
|
);
|
|
4573
|
-
return window.addEventListener("resize",
|
|
4574
|
-
|
|
4592
|
+
return window.addEventListener("resize", f), w(), () => {
|
|
4593
|
+
f.cancel(), window.removeEventListener("resize", f);
|
|
4575
4594
|
};
|
|
4576
4595
|
}, []);
|
|
4577
4596
|
const g = /* @__PURE__ */ e.createElement("div", { className: Ne[`${Ce}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
@@ -4584,7 +4603,7 @@ const Dt = {
|
|
|
4584
4603
|
},
|
|
4585
4604
|
a
|
|
4586
4605
|
), c && /* @__PURE__ */ e.createElement(W, { size: "compact", kind: "text", onClick: n }, c));
|
|
4587
|
-
return /* @__PURE__ */ e.createElement("div", { ref: s, className:
|
|
4606
|
+
return /* @__PURE__ */ e.createElement("div", { ref: s, className: b }, /* @__PURE__ */ e.createElement("div", { className: Ne[`${Ce}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: Ne[`${Ce}__img`] }), /* @__PURE__ */ e.createElement("div", { className: Ne[`${Ce}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: Ne[`${Ce}__header`] }, _), /* @__PURE__ */ e.createElement(I, { as: "div" }, r), p !== "large" && g), p === "large" && g), d && /* @__PURE__ */ e.createElement(
|
|
4588
4607
|
"button",
|
|
4589
4608
|
{
|
|
4590
4609
|
type: "button",
|
|
@@ -4603,7 +4622,7 @@ const Dt = {
|
|
|
4603
4622
|
"promo-banner-v2__close": "lc-PromoBannerV2-module__promo-banner-v2__close___rOh-U",
|
|
4604
4623
|
"promo-banner-v2__close__btn": "lc-PromoBannerV2-module__promo-banner-v2__close__btn___5AZQC",
|
|
4605
4624
|
"promo-banner-v2--vertical": "lc-PromoBannerV2-module__promo-banner-v2--vertical___p0mSU"
|
|
4606
|
-
},
|
|
4625
|
+
}, Qe = "promo-banner-v2", Kc = ({
|
|
4607
4626
|
children: t,
|
|
4608
4627
|
className: a,
|
|
4609
4628
|
additionalContent: r,
|
|
@@ -4619,18 +4638,18 @@ const Dt = {
|
|
|
4619
4638
|
"div",
|
|
4620
4639
|
{
|
|
4621
4640
|
className: u(
|
|
4622
|
-
Ve[
|
|
4623
|
-
l && Ve[`${
|
|
4641
|
+
Ve[Qe],
|
|
4642
|
+
l && Ve[`${Qe}--vertical`]
|
|
4624
4643
|
)
|
|
4625
4644
|
},
|
|
4626
4645
|
/* @__PURE__ */ e.createElement(
|
|
4627
4646
|
"div",
|
|
4628
4647
|
{
|
|
4629
4648
|
"data-testId": "content",
|
|
4630
|
-
className: u(Ve[`${
|
|
4649
|
+
className: u(Ve[`${Qe}__content`], c)
|
|
4631
4650
|
},
|
|
4632
4651
|
t,
|
|
4633
|
-
(_ || o) && /* @__PURE__ */ e.createElement("div", { className: Ve[`${
|
|
4652
|
+
(_ || o) && /* @__PURE__ */ e.createElement("div", { className: Ve[`${Qe}__content__cta`] }, _ && /* @__PURE__ */ e.createElement(
|
|
4634
4653
|
W,
|
|
4635
4654
|
{
|
|
4636
4655
|
kind: (_ == null ? void 0 : _.kind) || "high-contrast",
|
|
@@ -4642,7 +4661,7 @@ const Dt = {
|
|
|
4642
4661
|
{
|
|
4643
4662
|
kind: (o == null ? void 0 : o.kind) || "text",
|
|
4644
4663
|
onClick: o.handleClick,
|
|
4645
|
-
className: Ve[`${
|
|
4664
|
+
className: Ve[`${Qe}__content__cta__secondary`]
|
|
4646
4665
|
},
|
|
4647
4666
|
o.label
|
|
4648
4667
|
))
|
|
@@ -4652,16 +4671,16 @@ const Dt = {
|
|
|
4652
4671
|
{
|
|
4653
4672
|
"data-testId": "additional-content",
|
|
4654
4673
|
className: u(
|
|
4655
|
-
Ve[`${
|
|
4674
|
+
Ve[`${Qe}__additional-content`],
|
|
4656
4675
|
i
|
|
4657
4676
|
)
|
|
4658
4677
|
},
|
|
4659
4678
|
r
|
|
4660
4679
|
),
|
|
4661
|
-
d && /* @__PURE__ */ e.createElement("div", { className: Ve[`${
|
|
4680
|
+
d && /* @__PURE__ */ e.createElement("div", { className: Ve[`${Qe}__close`] }, /* @__PURE__ */ e.createElement(
|
|
4662
4681
|
W,
|
|
4663
4682
|
{
|
|
4664
|
-
className: Ve[`${
|
|
4683
|
+
className: Ve[`${Qe}__close__btn`],
|
|
4665
4684
|
onClick: d,
|
|
4666
4685
|
icon: /* @__PURE__ */ e.createElement(P, { source: Ae, kind: "primary" }),
|
|
4667
4686
|
kind: "plain",
|
|
@@ -4688,7 +4707,7 @@ const Dt = {
|
|
|
4688
4707
|
});
|
|
4689
4708
|
return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement("label", { className: qe[`${Ye}__label`] }, /* @__PURE__ */ e.createElement("div", { className: qe[`${Ye}__circle`] }, /* @__PURE__ */ e.createElement("span", { className: qe[`${Ye}__inner-circle`] }), /* @__PURE__ */ e.createElement(
|
|
4690
4709
|
"input",
|
|
4691
|
-
|
|
4710
|
+
S(k({}, l), {
|
|
4692
4711
|
className: qe[`${Ye}__input`],
|
|
4693
4712
|
ref: c,
|
|
4694
4713
|
type: "radio",
|
|
@@ -4697,7 +4716,7 @@ const Dt = {
|
|
|
4697
4716
|
})
|
|
4698
4717
|
)), t && /* @__PURE__ */ e.createElement(I, { as: "div", size: "md", className: qe[`${Ye}__text`] }, t)), r && /* @__PURE__ */ e.createElement(ua, { className: qe[`${Ye}__helper`] }, r));
|
|
4699
4718
|
}
|
|
4700
|
-
),
|
|
4719
|
+
), Se = {
|
|
4701
4720
|
"search-input": "lc-Search-module__search-input___FsbCk",
|
|
4702
4721
|
"search-input--compact": "lc-Search-module__search-input--compact___498To",
|
|
4703
4722
|
"search-input--medium": "lc-Search-module__search-input--medium___Hwteg",
|
|
@@ -4711,7 +4730,7 @@ const Dt = {
|
|
|
4711
4730
|
"search-input__loader": "lc-Search-module__search-input__loader___pkpIG",
|
|
4712
4731
|
"search-input__input-wrapper": "lc-Search-module__search-input__input-wrapper___k8bvn",
|
|
4713
4732
|
"search-input__input-wrapper--crop": "lc-Search-module__search-input__input-wrapper--crop___nBPKY"
|
|
4714
|
-
},
|
|
4733
|
+
}, Re = "search-input", gr = `${Re}__input-wrapper`, Xc = ({
|
|
4715
4734
|
isCollapsable: t,
|
|
4716
4735
|
isDisabled: a,
|
|
4717
4736
|
isLoading: r,
|
|
@@ -4722,14 +4741,14 @@ const Dt = {
|
|
|
4722
4741
|
cropOnBlur: i = !0,
|
|
4723
4742
|
onChange: d
|
|
4724
4743
|
}) => {
|
|
4725
|
-
const [n, s] = e.useState(!0), [p, m] = e.useState(!1),
|
|
4744
|
+
const [n, s] = e.useState(!0), [p, m] = e.useState(!1), b = e.useRef(null), g = !!l && !a && !r, w = t && !n && "true", f = u(
|
|
4726
4745
|
c,
|
|
4727
|
-
|
|
4728
|
-
|
|
4729
|
-
p &&
|
|
4730
|
-
a &&
|
|
4731
|
-
t &&
|
|
4732
|
-
!n &&
|
|
4746
|
+
Se[Re],
|
|
4747
|
+
Se[`${Re}--${o}`],
|
|
4748
|
+
p && Se[`${Re}--focused`],
|
|
4749
|
+
a && Se[`${Re}--disabled`],
|
|
4750
|
+
t && Se[`${Re}--collapsable`],
|
|
4751
|
+
!n && Se[`${Re}--collapsable--open`]
|
|
4733
4752
|
);
|
|
4734
4753
|
e.useEffect(() => {
|
|
4735
4754
|
t && l && s(!1);
|
|
@@ -4737,11 +4756,11 @@ const Dt = {
|
|
|
4737
4756
|
const h = (C) => {
|
|
4738
4757
|
const D = C.currentTarget.value;
|
|
4739
4758
|
d(D);
|
|
4740
|
-
},
|
|
4759
|
+
}, v = () => {
|
|
4741
4760
|
d("");
|
|
4742
4761
|
}, E = () => {
|
|
4743
4762
|
var C;
|
|
4744
|
-
(C =
|
|
4763
|
+
(C = b.current) == null || C.focus();
|
|
4745
4764
|
}, N = () => {
|
|
4746
4765
|
t && s(!1), m(!0);
|
|
4747
4766
|
}, $ = () => {
|
|
@@ -4754,13 +4773,13 @@ const Dt = {
|
|
|
4754
4773
|
{
|
|
4755
4774
|
"aria-expanded": w,
|
|
4756
4775
|
role: "search",
|
|
4757
|
-
className:
|
|
4776
|
+
className: f,
|
|
4758
4777
|
onClick: E
|
|
4759
4778
|
},
|
|
4760
4779
|
/* @__PURE__ */ e.createElement(
|
|
4761
4780
|
P,
|
|
4762
4781
|
{
|
|
4763
|
-
className:
|
|
4782
|
+
className: Se[`${Re}__search-icon`],
|
|
4764
4783
|
source: jr,
|
|
4765
4784
|
disabled: a,
|
|
4766
4785
|
kind: "primary"
|
|
@@ -4771,15 +4790,15 @@ const Dt = {
|
|
|
4771
4790
|
{
|
|
4772
4791
|
as: "div",
|
|
4773
4792
|
className: u(
|
|
4774
|
-
|
|
4775
|
-
i &&
|
|
4793
|
+
Se[gr],
|
|
4794
|
+
i && Se[`${gr}--crop`]
|
|
4776
4795
|
)
|
|
4777
4796
|
},
|
|
4778
4797
|
/* @__PURE__ */ e.createElement(
|
|
4779
4798
|
"input",
|
|
4780
4799
|
{
|
|
4781
4800
|
role: "searchbox",
|
|
4782
|
-
ref:
|
|
4801
|
+
ref: b,
|
|
4783
4802
|
type: "text",
|
|
4784
4803
|
value: l,
|
|
4785
4804
|
placeholder: _,
|
|
@@ -4796,14 +4815,14 @@ const Dt = {
|
|
|
4796
4815
|
{
|
|
4797
4816
|
"aria-label": "Clear search",
|
|
4798
4817
|
title: "Clear search",
|
|
4799
|
-
className:
|
|
4800
|
-
onClick:
|
|
4818
|
+
className: Se[`${Re}__clear-icon`],
|
|
4819
|
+
onClick: v,
|
|
4801
4820
|
icon: /* @__PURE__ */ e.createElement(P, { source: Ae, kind: "primary" }),
|
|
4802
4821
|
kind: "text",
|
|
4803
4822
|
size: "compact"
|
|
4804
4823
|
}
|
|
4805
4824
|
),
|
|
4806
|
-
r && /* @__PURE__ */ e.createElement("div", { className:
|
|
4825
|
+
r && /* @__PURE__ */ e.createElement("div", { className: Se[`${Re}__loader`] }, /* @__PURE__ */ e.createElement(Wa, { size: "small" }))
|
|
4807
4826
|
);
|
|
4808
4827
|
}, wl = "lc-Skeleton-module__loading___MHvGo", ot = {
|
|
4809
4828
|
"skeleton-wrapper": "lc-Skeleton-module__skeleton-wrapper___MXuR8",
|
|
@@ -4867,7 +4886,7 @@ const Dt = {
|
|
|
4867
4886
|
width: a
|
|
4868
4887
|
}
|
|
4869
4888
|
}
|
|
4870
|
-
), El = "lc-Switch-module__switch__input___NiiOR", $l = "lc-Switch-module__switch__container___79F7W", Nl = "lc-Switch-module__switch__track___2wr2M", Cl = "lc-Switch-module__switch__slider___WHd--",
|
|
4889
|
+
), El = "lc-Switch-module__switch__input___NiiOR", $l = "lc-Switch-module__switch__container___79F7W", Nl = "lc-Switch-module__switch__track___2wr2M", Cl = "lc-Switch-module__switch__slider___WHd--", Sl = "lc-Switch-module__switch__loader___FE-fA", xl = "lc-Switch-module__switch__icon___-O1qY", Q = {
|
|
4871
4890
|
switch: "lc-Switch-module__switch___AaA2k",
|
|
4872
4891
|
"switch__track--enabled": "lc-Switch-module__switch__track--enabled___sy4Xl",
|
|
4873
4892
|
"switch__track--on": "lc-Switch-module__switch__track--on___aOMWe",
|
|
@@ -4893,11 +4912,11 @@ const Dt = {
|
|
|
4893
4912
|
"switch__slider--medium--on": "lc-Switch-module__switch__slider--medium--on___SfeAV",
|
|
4894
4913
|
"switch__slider--medium--off": "lc-Switch-module__switch__slider--medium--off___eXJJz",
|
|
4895
4914
|
"switch__slider--disabled": "lc-Switch-module__switch__slider--disabled___A6hPg",
|
|
4896
|
-
switch__loader:
|
|
4915
|
+
switch__loader: Sl,
|
|
4897
4916
|
"switch__loader--compact": "lc-Switch-module__switch__loader--compact___3imUh",
|
|
4898
4917
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___2zi05",
|
|
4899
4918
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
|
|
4900
|
-
switch__icon:
|
|
4919
|
+
switch__icon: xl
|
|
4901
4920
|
}, X = "switch", en = (p) => {
|
|
4902
4921
|
var m = p, {
|
|
4903
4922
|
className: t = "",
|
|
@@ -4922,28 +4941,28 @@ const Dt = {
|
|
|
4922
4941
|
"innerRef",
|
|
4923
4942
|
"ariaLabel"
|
|
4924
4943
|
]);
|
|
4925
|
-
const
|
|
4926
|
-
() =>
|
|
4927
|
-
), [
|
|
4944
|
+
const b = o !== void 0, [g, w] = e.useState(
|
|
4945
|
+
() => b ? o : a
|
|
4946
|
+
), [f, h] = e.useState(!1), v = b ? o : g, E = i === "loading", N = i === "locked", $ = c === "large" ? "small" : "xsmall", y = v ? "on" : "off", C = r || E || N, D = C ? "disabled" : "enabled", L = u(
|
|
4928
4947
|
Q[X],
|
|
4929
4948
|
Q[`${X}--${c}`],
|
|
4930
4949
|
{
|
|
4931
|
-
[Q[`${X}--focused`]]:
|
|
4950
|
+
[Q[`${X}--focused`]]: f
|
|
4932
4951
|
},
|
|
4933
4952
|
t
|
|
4934
4953
|
), G = (T) => {
|
|
4935
|
-
l == null || l(T, !
|
|
4954
|
+
l == null || l(T, !v), b || (T.stopPropagation(), w((R) => !R));
|
|
4936
4955
|
};
|
|
4937
4956
|
return /* @__PURE__ */ e.createElement("span", { className: L }, /* @__PURE__ */ e.createElement(
|
|
4938
4957
|
"input",
|
|
4939
|
-
|
|
4958
|
+
S(k({
|
|
4940
4959
|
type: "checkbox",
|
|
4941
4960
|
className: u(
|
|
4942
4961
|
Q[`${X}__input`],
|
|
4943
4962
|
Q[`${X}__input--${D}`]
|
|
4944
4963
|
),
|
|
4945
4964
|
onChange: G,
|
|
4946
|
-
checked:
|
|
4965
|
+
checked: v,
|
|
4947
4966
|
name: _,
|
|
4948
4967
|
ref: d,
|
|
4949
4968
|
disabled: C,
|
|
@@ -4956,7 +4975,7 @@ const Dt = {
|
|
|
4956
4975
|
"span",
|
|
4957
4976
|
{
|
|
4958
4977
|
className: u(Q[`${X}__container`], {
|
|
4959
|
-
[Q[`${X}__container--focused`]]:
|
|
4978
|
+
[Q[`${X}__container--focused`]]: f
|
|
4960
4979
|
})
|
|
4961
4980
|
},
|
|
4962
4981
|
/* @__PURE__ */ e.createElement(
|
|
@@ -5032,7 +5051,7 @@ const Dt = {
|
|
|
5032
5051
|
const { disabled: s } = i, p = r !== void 0 && !o, m = r !== void 0 && o;
|
|
5033
5052
|
return /* @__PURE__ */ e.createElement(
|
|
5034
5053
|
I,
|
|
5035
|
-
|
|
5054
|
+
S(k({}, i), {
|
|
5036
5055
|
as: i.href ? "a" : "button",
|
|
5037
5056
|
"aria-selected": _,
|
|
5038
5057
|
size: "md",
|
|
@@ -5102,7 +5121,7 @@ const Dt = {
|
|
|
5102
5121
|
}
|
|
5103
5122
|
_(g.innerText);
|
|
5104
5123
|
}
|
|
5105
|
-
},
|
|
5124
|
+
}, b = (g) => {
|
|
5106
5125
|
g.preventDefault();
|
|
5107
5126
|
const w = g.clipboardData.getData("text/plain");
|
|
5108
5127
|
document.execCommand("insertHTML", !1, Xa(w));
|
|
@@ -5113,13 +5132,13 @@ const Dt = {
|
|
|
5113
5132
|
ref: a,
|
|
5114
5133
|
className: t,
|
|
5115
5134
|
contentEditable: !0,
|
|
5116
|
-
onPaste:
|
|
5135
|
+
onPaste: b,
|
|
5117
5136
|
onBlur: m,
|
|
5118
5137
|
onKeyDown: p,
|
|
5119
5138
|
dangerouslySetInnerHTML: { __html: Xa(l) }
|
|
5120
5139
|
}
|
|
5121
5140
|
);
|
|
5122
|
-
},
|
|
5141
|
+
}, Ml = "tag-input__tag", vr = ({
|
|
5123
5142
|
children: t,
|
|
5124
5143
|
index: a,
|
|
5125
5144
|
remove: r,
|
|
@@ -5130,26 +5149,26 @@ const Dt = {
|
|
|
5130
5149
|
tagProps: i
|
|
5131
5150
|
}) => {
|
|
5132
5151
|
const d = e.useMemo(() => _ !== void 0 ? _(t) : !0, [t, _]), n = e.useRef(null), s = () => r(a), p = () => d ? i ? i.kind : "default" : "error";
|
|
5133
|
-
return /* @__PURE__ */ e.createElement(
|
|
5152
|
+
return /* @__PURE__ */ e.createElement(Rr, S(k({ size: c }, i), { kind: p(), onRemove: s }), /* @__PURE__ */ e.createElement(
|
|
5134
5153
|
Fl,
|
|
5135
5154
|
{
|
|
5136
5155
|
value: t,
|
|
5137
5156
|
inputRef: o,
|
|
5138
5157
|
innerEditableRef: n,
|
|
5139
|
-
className: It[`${
|
|
5158
|
+
className: It[`${Ml}__content`],
|
|
5140
5159
|
change: (m) => l(a, m),
|
|
5141
5160
|
remove: s,
|
|
5142
5161
|
validator: _
|
|
5143
5162
|
}
|
|
5144
5163
|
));
|
|
5145
|
-
}, Xt = "tag-input",
|
|
5164
|
+
}, Xt = "tag-input", Rl = [
|
|
5146
5165
|
_e.enter,
|
|
5147
5166
|
_e.spacebar,
|
|
5148
5167
|
_e.tab,
|
|
5149
5168
|
_e.semicolon,
|
|
5150
5169
|
_e.comma
|
|
5151
5170
|
], Ll = [_e.backspace, _e.delete], Ol = (m) => {
|
|
5152
|
-
var
|
|
5171
|
+
var b = m, {
|
|
5153
5172
|
id: t,
|
|
5154
5173
|
tags: a,
|
|
5155
5174
|
onChange: r,
|
|
@@ -5161,7 +5180,7 @@ const Dt = {
|
|
|
5161
5180
|
inputClassName: d,
|
|
5162
5181
|
onBlur: n,
|
|
5163
5182
|
addOnBlur: s = !0
|
|
5164
|
-
} =
|
|
5183
|
+
} = b, p = F(b, [
|
|
5165
5184
|
"id",
|
|
5166
5185
|
"tags",
|
|
5167
5186
|
"onChange",
|
|
@@ -5184,41 +5203,41 @@ const Dt = {
|
|
|
5184
5203
|
d,
|
|
5185
5204
|
It[`${Xt}__input`],
|
|
5186
5205
|
It[`${Xt}__input--${c}`]
|
|
5187
|
-
), [
|
|
5206
|
+
), [f, h] = e.useState(""), v = e.useRef(null), E = (T) => {
|
|
5188
5207
|
T.trim() !== "" && (r([...a || [], T]), h(""));
|
|
5189
5208
|
}, N = (T) => {
|
|
5190
|
-
const
|
|
5191
|
-
|
|
5209
|
+
const R = [...a || []];
|
|
5210
|
+
R.splice(T, 1), r(R);
|
|
5192
5211
|
}, $ = (T) => h(T.target.value), y = (T) => {
|
|
5193
|
-
if (
|
|
5194
|
-
if (T.preventDefault(),
|
|
5212
|
+
if (Rl.includes(T.key)) {
|
|
5213
|
+
if (T.preventDefault(), f === "")
|
|
5195
5214
|
return;
|
|
5196
|
-
E(
|
|
5215
|
+
E(f);
|
|
5197
5216
|
} else if (Ll.includes(T.key)) {
|
|
5198
|
-
if (
|
|
5217
|
+
if (f !== "" || !(a != null && a.length))
|
|
5199
5218
|
return;
|
|
5200
5219
|
N(a.length - 1);
|
|
5201
5220
|
}
|
|
5202
5221
|
}, C = (T) => {
|
|
5203
|
-
s && E(
|
|
5204
|
-
}, D = (T,
|
|
5222
|
+
s && E(f), n == null || n(T);
|
|
5223
|
+
}, D = (T, R) => {
|
|
5205
5224
|
const V = [...a || []];
|
|
5206
5225
|
V.reduce(
|
|
5207
|
-
(he, oe,
|
|
5226
|
+
(he, oe, we) => he + (oe === R && we !== T ? 1 : 0),
|
|
5208
5227
|
0
|
|
5209
|
-
) > 0 ? V.splice(T, 1) : V[T] =
|
|
5228
|
+
) > 0 ? V.splice(T, 1) : V[T] = R, r(V);
|
|
5210
5229
|
}, L = (T) => {
|
|
5211
5230
|
T.preventDefault();
|
|
5212
5231
|
const V = T.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
5213
5232
|
r([...a || [], ...V]);
|
|
5214
|
-
}, G = (T,
|
|
5233
|
+
}, G = (T, R) => typeof T == "string" ? /* @__PURE__ */ e.createElement(
|
|
5215
5234
|
vr,
|
|
5216
5235
|
{
|
|
5217
|
-
index:
|
|
5218
|
-
key: `${
|
|
5236
|
+
index: R,
|
|
5237
|
+
key: `${R}${T}`,
|
|
5219
5238
|
update: D,
|
|
5220
5239
|
remove: N,
|
|
5221
|
-
inputRef:
|
|
5240
|
+
inputRef: v,
|
|
5222
5241
|
validator: _,
|
|
5223
5242
|
size: c
|
|
5224
5243
|
},
|
|
@@ -5226,11 +5245,11 @@ const Dt = {
|
|
|
5226
5245
|
) : /* @__PURE__ */ e.createElement(
|
|
5227
5246
|
vr,
|
|
5228
5247
|
{
|
|
5229
|
-
index:
|
|
5230
|
-
key: `${
|
|
5248
|
+
index: R,
|
|
5249
|
+
key: `${R}${T.children}`,
|
|
5231
5250
|
update: D,
|
|
5232
5251
|
remove: N,
|
|
5233
|
-
inputRef:
|
|
5252
|
+
inputRef: v,
|
|
5234
5253
|
validator: _,
|
|
5235
5254
|
size: c,
|
|
5236
5255
|
tagProps: T
|
|
@@ -5239,12 +5258,12 @@ const Dt = {
|
|
|
5239
5258
|
);
|
|
5240
5259
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(I, { as: "div", className: g }, a == null ? void 0 : a.map(G), /* @__PURE__ */ e.createElement(
|
|
5241
5260
|
"input",
|
|
5242
|
-
|
|
5261
|
+
S(k({}, p), {
|
|
5243
5262
|
id: t,
|
|
5244
|
-
ref:
|
|
5263
|
+
ref: v,
|
|
5245
5264
|
className: w,
|
|
5246
5265
|
placeholder: l,
|
|
5247
|
-
value:
|
|
5266
|
+
value: f,
|
|
5248
5267
|
onChange: $,
|
|
5249
5268
|
onKeyDown: y,
|
|
5250
5269
|
onPaste: L,
|
|
@@ -5257,7 +5276,7 @@ const Dt = {
|
|
|
5257
5276
|
} = _, a = F(_, [
|
|
5258
5277
|
"placeholder"
|
|
5259
5278
|
]);
|
|
5260
|
-
return /* @__PURE__ */ e.createElement(Ol,
|
|
5279
|
+
return /* @__PURE__ */ e.createElement(Ol, S(k({}, a), { placeholder: t, validator: Gl }));
|
|
5261
5280
|
}, Ul = "lc-Toast-module__toast___j5Amn", Wl = "lc-Toast-module__toast__content___HjaNw", Vl = "lc-Toast-module__toast__actions___JWu-1", ql = "lc-Toast-module__toast__actions__button___Iblrl", j = {
|
|
5262
5281
|
toast: Ul,
|
|
5263
5282
|
toast__content: Wl,
|
|
@@ -5301,7 +5320,7 @@ const Dt = {
|
|
|
5301
5320
|
info: {
|
|
5302
5321
|
source: Oa
|
|
5303
5322
|
}
|
|
5304
|
-
},
|
|
5323
|
+
}, je = "toast", Kl = (i) => {
|
|
5305
5324
|
var d = i, {
|
|
5306
5325
|
action: t,
|
|
5307
5326
|
className: a,
|
|
@@ -5318,14 +5337,14 @@ const Dt = {
|
|
|
5318
5337
|
"onClose"
|
|
5319
5338
|
]);
|
|
5320
5339
|
const n = u(
|
|
5321
|
-
j[
|
|
5322
|
-
j[`${
|
|
5340
|
+
j[je],
|
|
5341
|
+
j[`${je}--${o}`],
|
|
5323
5342
|
a
|
|
5324
5343
|
), s = typeof r == "string", p = (m) => m && m.closesOnClick && l ? (m.onClick(), l()) : m.onClick();
|
|
5325
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: n }, c), /* @__PURE__ */ e.createElement("div", { className: j[`${
|
|
5344
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: n }, c), /* @__PURE__ */ e.createElement("div", { className: j[`${je}__icon`] }, /* @__PURE__ */ e.createElement(P, S(k({}, Yl[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: j[`${je}__content`] }, s ? /* @__PURE__ */ e.createElement(I, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: j[`${je}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
5326
5345
|
W,
|
|
5327
5346
|
{
|
|
5328
|
-
className: j[`${
|
|
5347
|
+
className: j[`${je}__actions--custom`],
|
|
5329
5348
|
kind: "text",
|
|
5330
5349
|
size: "compact",
|
|
5331
5350
|
onClick: () => p(t)
|
|
@@ -5335,8 +5354,8 @@ const Dt = {
|
|
|
5335
5354
|
"button",
|
|
5336
5355
|
{
|
|
5337
5356
|
className: u(
|
|
5338
|
-
j[`${
|
|
5339
|
-
j[`${
|
|
5357
|
+
j[`${je}__actions__button`],
|
|
5358
|
+
j[`${je}__actions__button--${o}`]
|
|
5340
5359
|
),
|
|
5341
5360
|
"aria-label": "Close toast",
|
|
5342
5361
|
onClick: l
|
|
@@ -5362,7 +5381,7 @@ const Dt = {
|
|
|
5362
5381
|
},
|
|
5363
5382
|
t
|
|
5364
5383
|
);
|
|
5365
|
-
return /* @__PURE__ */ e.createElement("div", { className: i }, /* @__PURE__ */ e.createElement(Tr, { component: null }, a.map(({ id: d, kind: n, content: s, removable: p, action: m, onClose:
|
|
5384
|
+
return /* @__PURE__ */ e.createElement("div", { className: i }, /* @__PURE__ */ e.createElement(Tr, { component: null }, a.map(({ id: d, kind: n, content: s, removable: p, action: m, onClose: b }) => /* @__PURE__ */ e.createElement(
|
|
5366
5385
|
Dr,
|
|
5367
5386
|
{
|
|
5368
5387
|
key: d,
|
|
@@ -5378,7 +5397,7 @@ const Dt = {
|
|
|
5378
5397
|
Kl,
|
|
5379
5398
|
{
|
|
5380
5399
|
kind: n,
|
|
5381
|
-
onClose:
|
|
5400
|
+
onClose: b,
|
|
5382
5401
|
removable: p,
|
|
5383
5402
|
action: m
|
|
5384
5403
|
},
|
|
@@ -5399,14 +5418,14 @@ const Dt = {
|
|
|
5399
5418
|
[Qt[`${jt}--error`]]: a
|
|
5400
5419
|
}), m = (g) => {
|
|
5401
5420
|
s(!1), i == null || i(g);
|
|
5402
|
-
},
|
|
5421
|
+
}, b = (g) => {
|
|
5403
5422
|
s(!0), d == null || d(g);
|
|
5404
5423
|
};
|
|
5405
5424
|
return /* @__PURE__ */ e.createElement(I, { as: "div", className: p }, /* @__PURE__ */ e.createElement(
|
|
5406
5425
|
"textarea",
|
|
5407
|
-
|
|
5426
|
+
S(k({}, r), {
|
|
5408
5427
|
ref: _,
|
|
5409
|
-
onFocus:
|
|
5428
|
+
onFocus: b,
|
|
5410
5429
|
onBlur: m
|
|
5411
5430
|
})
|
|
5412
5431
|
));
|
|
@@ -5433,7 +5452,7 @@ const Dt = {
|
|
|
5433
5452
|
onClick: a
|
|
5434
5453
|
},
|
|
5435
5454
|
/* @__PURE__ */ e.createElement(P, { size: "small", source: Ae })
|
|
5436
|
-
)),
|
|
5455
|
+
)), xe = {
|
|
5437
5456
|
"file-upload-progress": "lc-FileUploadProgress-module__file-upload-progress___xw8h8",
|
|
5438
5457
|
"file-upload-progress__icon": "lc-FileUploadProgress-module__file-upload-progress__icon___p8Rfz",
|
|
5439
5458
|
"file-upload-progress__icon--success": "lc-FileUploadProgress-module__file-upload-progress__icon--success___X40uH",
|
|
@@ -5455,28 +5474,28 @@ const Dt = {
|
|
|
5455
5474
|
status: c = "normal",
|
|
5456
5475
|
onCloseButtonClick: i,
|
|
5457
5476
|
onRetryButtonClick: d
|
|
5458
|
-
}, n) => /* @__PURE__ */ e.createElement("div", { className:
|
|
5477
|
+
}, n) => /* @__PURE__ */ e.createElement("div", { className: xe[Ke], ref: n }, r && c !== "success" && /* @__PURE__ */ e.createElement("div", { className: xe[`${Ke}__icon`] }, r), c === "success" && /* @__PURE__ */ e.createElement(
|
|
5459
5478
|
"div",
|
|
5460
5479
|
{
|
|
5461
5480
|
className: u(
|
|
5462
|
-
|
|
5463
|
-
|
|
5481
|
+
xe[`${Ke}__icon`],
|
|
5482
|
+
xe[`${Ke}__icon--success`]
|
|
5464
5483
|
)
|
|
5465
5484
|
},
|
|
5466
5485
|
/* @__PURE__ */ e.createElement(P, { source: ea })
|
|
5467
5486
|
), /* @__PURE__ */ e.createElement(
|
|
5468
5487
|
"div",
|
|
5469
5488
|
{
|
|
5470
|
-
className: u(
|
|
5471
|
-
[
|
|
5489
|
+
className: u(xe[`${Ke}__wrapper`], {
|
|
5490
|
+
[xe[`${Ke}__wrapper--with-icon`]]: r
|
|
5472
5491
|
})
|
|
5473
5492
|
},
|
|
5474
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
5493
|
+
/* @__PURE__ */ e.createElement("div", { className: xe[`${Ke}__wrapper__header`] }, _ && /* @__PURE__ */ e.createElement(
|
|
5475
5494
|
"div",
|
|
5476
5495
|
{
|
|
5477
|
-
className: u(
|
|
5478
|
-
[
|
|
5479
|
-
[
|
|
5496
|
+
className: u(xe[Aa], {
|
|
5497
|
+
[xe[`${Aa}--success`]]: c === "success",
|
|
5498
|
+
[xe[`${Aa}--error`]]: c === "error"
|
|
5480
5499
|
})
|
|
5481
5500
|
},
|
|
5482
5501
|
/* @__PURE__ */ e.createElement(I, { size: "sm", as: "div" }, _)
|
|
@@ -5484,7 +5503,7 @@ const Dt = {
|
|
|
5484
5503
|
"div",
|
|
5485
5504
|
{
|
|
5486
5505
|
className: u({
|
|
5487
|
-
[
|
|
5506
|
+
[xe[`${Ke}__wrapper__header__actions`]]: t === "hover"
|
|
5488
5507
|
})
|
|
5489
5508
|
},
|
|
5490
5509
|
/* @__PURE__ */ e.createElement(
|
|
@@ -5527,7 +5546,7 @@ const Dt = {
|
|
|
5527
5546
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
|
|
5528
5547
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
|
|
5529
5548
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
|
|
5530
|
-
},
|
|
5549
|
+
}, pe = "upload-bar", Je = `${pe}__wrapper__header`, jl = 300, Zl = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement(
|
|
5531
5550
|
"div",
|
|
5532
5551
|
{
|
|
5533
5552
|
"data-testid": "success-icon",
|
|
@@ -5562,11 +5581,11 @@ const Dt = {
|
|
|
5562
5581
|
onCloseButtonClick: s,
|
|
5563
5582
|
onRetryButtonClick: p
|
|
5564
5583
|
}) => {
|
|
5565
|
-
const [m,
|
|
5566
|
-
[z[`${
|
|
5567
|
-
[z[`${
|
|
5568
|
-
}), h = !(g && (p || s)),
|
|
5569
|
-
return n === "single" ? /* @__PURE__ */ e.createElement("div", { className:
|
|
5584
|
+
const [m, b] = e.useState(o || !1), g = c === "error", w = c === "success", f = u(z[pe], a, {
|
|
5585
|
+
[z[`${pe}--error`]]: g,
|
|
5586
|
+
[z[`${pe}--success`]]: w
|
|
5587
|
+
}), h = !(g && (p || s)), v = () => b(!m);
|
|
5588
|
+
return n === "single" ? /* @__PURE__ */ e.createElement("div", { className: f }, /* @__PURE__ */ e.createElement("div", { className: z[`${pe}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${Je}`] }, /* @__PURE__ */ e.createElement(
|
|
5570
5589
|
Ql,
|
|
5571
5590
|
{
|
|
5572
5591
|
title: g && l || _,
|
|
@@ -5582,11 +5601,11 @@ const Dt = {
|
|
|
5582
5601
|
onCloseButtonClick: s,
|
|
5583
5602
|
onRetryButtonClick: p
|
|
5584
5603
|
}
|
|
5585
|
-
))) : /* @__PURE__ */ e.createElement("div", { className:
|
|
5604
|
+
))) : /* @__PURE__ */ e.createElement("div", { className: f }, /* @__PURE__ */ e.createElement(
|
|
5586
5605
|
"div",
|
|
5587
5606
|
{
|
|
5588
|
-
className: z[`${
|
|
5589
|
-
onClick:
|
|
5607
|
+
className: z[`${pe}__wrapper`],
|
|
5608
|
+
onClick: v
|
|
5590
5609
|
},
|
|
5591
5610
|
/* @__PURE__ */ e.createElement("div", { className: z[`${Je}`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${Je}__icon`] }, Zl(c, r)), /* @__PURE__ */ e.createElement("div", { className: z[`${Je}__title`] }, /* @__PURE__ */ e.createElement(I, { size: "sm", as: "div" }, g ? l : _)), h && /* @__PURE__ */ e.createElement(
|
|
5592
5611
|
"button",
|
|
@@ -5594,9 +5613,9 @@ const Dt = {
|
|
|
5594
5613
|
className: z[`${Je}__collapse-button`],
|
|
5595
5614
|
type: "button",
|
|
5596
5615
|
"aria-label": "Collapse button",
|
|
5597
|
-
onClick:
|
|
5616
|
+
onClick: v
|
|
5598
5617
|
},
|
|
5599
|
-
m ? /* @__PURE__ */ e.createElement(P, { source: ta }) : /* @__PURE__ */ e.createElement(P, { source:
|
|
5618
|
+
m ? /* @__PURE__ */ e.createElement(P, { source: ta }) : /* @__PURE__ */ e.createElement(P, { source: Mt })
|
|
5600
5619
|
), c === "error" && /* @__PURE__ */ e.createElement("div", { className: z[`${Je}__actions-container`] }, /* @__PURE__ */ e.createElement(
|
|
5601
5620
|
La,
|
|
5602
5621
|
{
|
|
@@ -5610,20 +5629,20 @@ const Dt = {
|
|
|
5610
5629
|
{
|
|
5611
5630
|
timeout: jl,
|
|
5612
5631
|
classNames: {
|
|
5613
|
-
enter: z[`${
|
|
5614
|
-
enterActive: z[`${
|
|
5615
|
-
exit: z[`${
|
|
5616
|
-
exitActive: z[`${
|
|
5617
|
-
exitDone: z[`${
|
|
5632
|
+
enter: z[`${pe}__files--enter`],
|
|
5633
|
+
enterActive: z[`${pe}__files--enter-active`],
|
|
5634
|
+
exit: z[`${pe}__files--exit`],
|
|
5635
|
+
exitActive: z[`${pe}__files--exit-active`],
|
|
5636
|
+
exitDone: z[`${pe}__files--exit-done`]
|
|
5618
5637
|
}
|
|
5619
5638
|
},
|
|
5620
|
-
/* @__PURE__ */ e.createElement("div", { className: z[`${
|
|
5639
|
+
/* @__PURE__ */ e.createElement("div", { className: z[`${pe}__files`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${pe}__files-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: z[`${pe}__files__list`] }, t)))
|
|
5621
5640
|
)));
|
|
5622
5641
|
};
|
|
5623
5642
|
export {
|
|
5624
5643
|
Jl as ANIMATION_TIME,
|
|
5625
|
-
|
|
5626
|
-
|
|
5644
|
+
Sc as ActionBar,
|
|
5645
|
+
xc as ActionCard,
|
|
5627
5646
|
b_ as ActionMenu,
|
|
5628
5647
|
f_ as ActionMenuItem,
|
|
5629
5648
|
Tc as Alert,
|
|
@@ -5644,8 +5663,8 @@ export {
|
|
|
5644
5663
|
Fc as FieldGroup,
|
|
5645
5664
|
Ql as FileUploadProgress,
|
|
5646
5665
|
La as FileUploadProgressActions,
|
|
5647
|
-
|
|
5648
|
-
|
|
5666
|
+
Mc as Form,
|
|
5667
|
+
Rc as FormField,
|
|
5649
5668
|
Lc as FormGroup,
|
|
5650
5669
|
Be as Heading,
|
|
5651
5670
|
P as Icon,
|
|
@@ -5683,7 +5702,7 @@ export {
|
|
|
5683
5702
|
tn as Tab,
|
|
5684
5703
|
rn as TabsList,
|
|
5685
5704
|
an as TabsWrapper,
|
|
5686
|
-
|
|
5705
|
+
Rr as Tag,
|
|
5687
5706
|
Ol as TagInput,
|
|
5688
5707
|
I as Text,
|
|
5689
5708
|
ln as Textarea,
|