@livechat/design-system-react-components 1.33.0 → 1.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AppFrame/components/NavigationTopBar/types.d.ts +10 -10
- package/dist/components/ProductSwitcher/types.d.ts +1 -0
- package/dist/foundations/design-token.d.ts +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +578 -580
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -404,7 +404,8 @@ const Fc = {
|
|
|
404
404
|
ProductsHello: "--products-hello",
|
|
405
405
|
ProductsPlatform: "--products-platform",
|
|
406
406
|
SurfaceCheckListItemOpenBackground: "--surface-check-list-item-open-background",
|
|
407
|
-
SurfaceCheckListBackground: "--surface-check-list-background"
|
|
407
|
+
SurfaceCheckListBackground: "--surface-check-list-background",
|
|
408
|
+
ContentBasicPlaceholder: "--content-basic-placeholder"
|
|
408
409
|
}, Rc = {
|
|
409
410
|
Spacing0: "--spacing-0",
|
|
410
411
|
Spacing05: "--spacing-05",
|
|
@@ -682,18 +683,18 @@ const Fc = {
|
|
|
682
683
|
"textAlign",
|
|
683
684
|
"noMargin"
|
|
684
685
|
]);
|
|
685
|
-
const
|
|
686
|
+
const y = "paragraph";
|
|
686
687
|
return e.createElement(
|
|
687
688
|
t,
|
|
688
689
|
k({
|
|
689
690
|
className: u(
|
|
690
691
|
{
|
|
691
|
-
[Ge[`${
|
|
692
|
-
[Ge[`${
|
|
693
|
-
[Ge[`${
|
|
694
|
-
[Ge[`${
|
|
695
|
-
[Ge[`${
|
|
696
|
-
[Ge[`${
|
|
692
|
+
[Ge[`${y}-${a}`]]: !0,
|
|
693
|
+
[Ge[`${y}--bold`]]: o,
|
|
694
|
+
[Ge[`${y}--strike`]]: n,
|
|
695
|
+
[Ge[`${y}--underline`]]: l,
|
|
696
|
+
[Ge[`${y}--uppercase`]]: _ || r,
|
|
697
|
+
[Ge[`${y}--no-margin`]]: p
|
|
697
698
|
},
|
|
698
699
|
s
|
|
699
700
|
),
|
|
@@ -745,8 +746,8 @@ const Fc = {
|
|
|
745
746
|
"action-menu__list__item__icon": "lc-ActionMenu-module__action-menu__list__item__icon___o3ePo",
|
|
746
747
|
"action-menu__list--with-footer": "lc-ActionMenu-module__action-menu__list--with-footer___ghTxL",
|
|
747
748
|
"action-menu__footer": "lc-ActionMenu-module__action-menu__footer___HxoOe"
|
|
748
|
-
}, ze = "action-menu", uo = (
|
|
749
|
-
var
|
|
749
|
+
}, ze = "action-menu", uo = (y) => {
|
|
750
|
+
var v = y, {
|
|
750
751
|
className: t,
|
|
751
752
|
triggerClassName: a,
|
|
752
753
|
options: r,
|
|
@@ -761,7 +762,7 @@ const Fc = {
|
|
|
761
762
|
floatingStrategy: p,
|
|
762
763
|
selectedOptions: m,
|
|
763
764
|
footer: g
|
|
764
|
-
} =
|
|
765
|
+
} = v, f = D(v, [
|
|
765
766
|
"className",
|
|
766
767
|
"triggerClassName",
|
|
767
768
|
"options",
|
|
@@ -777,9 +778,9 @@ const Fc = {
|
|
|
777
778
|
"selectedOptions",
|
|
778
779
|
"footer"
|
|
779
780
|
]);
|
|
780
|
-
const
|
|
781
|
-
G ? (i == null || i(), !
|
|
782
|
-
}, { x:
|
|
781
|
+
const b = s !== void 0, [E, w] = e.useState(l), [C, $] = e.useState(null), h = e.useRef(-1), N = Ua(), I = sa(), O = e.useRef(null), G = b ? s : E, T = () => {
|
|
782
|
+
G ? (i == null || i(), !b && w(!1)) : (d == null || d(), !b && w(!0));
|
|
783
|
+
}, { x: L, y: V, strategy: M, refs: U, context: de } = da({
|
|
783
784
|
nodeId: I,
|
|
784
785
|
middleware: [
|
|
785
786
|
ua(4),
|
|
@@ -815,18 +816,18 @@ const Fc = {
|
|
|
815
816
|
})
|
|
816
817
|
}), wt = (A) => {
|
|
817
818
|
var Ye, qe;
|
|
818
|
-
const
|
|
819
|
-
let ue =
|
|
819
|
+
const K = h.current;
|
|
820
|
+
let ue = K + A;
|
|
820
821
|
for (; (Ye = r[ue]) != null && Ye.disabled || (qe = r[ue]) != null && qe.groupHeader; )
|
|
821
822
|
if (ue += A, ue === -1) {
|
|
822
|
-
ue =
|
|
823
|
+
ue = K;
|
|
823
824
|
break;
|
|
824
825
|
}
|
|
825
826
|
return ue;
|
|
826
827
|
}, gt = (A) => {
|
|
827
828
|
var Ye, qe;
|
|
828
829
|
h.current = wt(A);
|
|
829
|
-
const
|
|
830
|
+
const K = (Ye = O.current) == null ? void 0 : Ye.children, ue = K && ((qe = K[h.current]) == null ? void 0 : qe.children[0]);
|
|
830
831
|
return ue == null ? void 0 : ue.focus();
|
|
831
832
|
}, _t = (A) => {
|
|
832
833
|
A.key === se.arrowUp && h.current > 0 && (A.preventDefault(), gt(-1)), A.key === se.arrowDown && h.current + 1 < r.length && (A.preventDefault(), gt(1));
|
|
@@ -836,9 +837,9 @@ const Fc = {
|
|
|
836
837
|
return document.addEventListener("keydown", _t), () => document.removeEventListener("keydown", _t);
|
|
837
838
|
h.current = -1;
|
|
838
839
|
}, [G, _t]);
|
|
839
|
-
const $t = (A,
|
|
840
|
-
h.current = A,
|
|
841
|
-
}, Nt = (A,
|
|
840
|
+
const $t = (A, K) => {
|
|
841
|
+
h.current = A, K == null || K(), !b && !n && (w(!1), i == null || i());
|
|
842
|
+
}, Nt = (A, K) => A.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
842
843
|
"li",
|
|
843
844
|
{
|
|
844
845
|
key: A.key,
|
|
@@ -853,7 +854,7 @@ const Fc = {
|
|
|
853
854
|
tabIndex: -1,
|
|
854
855
|
key: A.key,
|
|
855
856
|
disabled: A.disabled,
|
|
856
|
-
onClick: () => $t(
|
|
857
|
+
onClick: () => $t(K, A.onClick),
|
|
857
858
|
role: "menuitem",
|
|
858
859
|
className: u(He[`${ze}__list__item`], {
|
|
859
860
|
[He[`${ze}__list__item--disabled`]]: A.disabled,
|
|
@@ -875,7 +876,7 @@ const Fc = {
|
|
|
875
876
|
B(k({
|
|
876
877
|
"aria-label": "Toggle menu",
|
|
877
878
|
"data-testid": "action-menu-trigger-button",
|
|
878
|
-
ref:
|
|
879
|
+
ref: U.setReference
|
|
879
880
|
}, $e()), {
|
|
880
881
|
className: a
|
|
881
882
|
}),
|
|
@@ -883,12 +884,12 @@ const Fc = {
|
|
|
883
884
|
), /* @__PURE__ */ e.createElement(ha, { id: I }, G && /* @__PURE__ */ e.createElement(
|
|
884
885
|
"div",
|
|
885
886
|
k({
|
|
886
|
-
ref:
|
|
887
|
+
ref: U.setFloating,
|
|
887
888
|
className: He[ze],
|
|
888
889
|
style: k(k({
|
|
889
|
-
position:
|
|
890
|
-
top:
|
|
891
|
-
left:
|
|
890
|
+
position: M,
|
|
891
|
+
top: V != null ? V : "",
|
|
892
|
+
left: L != null ? L : ""
|
|
892
893
|
}, !!C && { maxHeight: C }), pt)
|
|
893
894
|
}, Ct()),
|
|
894
895
|
r.length > 0 && /* @__PURE__ */ e.createElement(
|
|
@@ -902,7 +903,7 @@ const Fc = {
|
|
|
902
903
|
t
|
|
903
904
|
),
|
|
904
905
|
role: "menu",
|
|
905
|
-
ref:
|
|
906
|
+
ref: O
|
|
906
907
|
}),
|
|
907
908
|
r.map(Nt)
|
|
908
909
|
),
|
|
@@ -1019,8 +1020,8 @@ const Fc = {
|
|
|
1019
1020
|
"btn--plain-lock-black": "lc-Button-module__btn--plain-lock-black___aL-wC",
|
|
1020
1021
|
"btn--text-lock-black": "lc-Button-module__btn--text-lock-black___fy3zb"
|
|
1021
1022
|
}, pe = "btn", W = e.forwardRef(
|
|
1022
|
-
(
|
|
1023
|
-
var
|
|
1023
|
+
(y, f) => {
|
|
1024
|
+
var v = y, {
|
|
1024
1025
|
loading: t = !1,
|
|
1025
1026
|
disabled: a = !1,
|
|
1026
1027
|
type: r = "button",
|
|
@@ -1034,7 +1035,7 @@ const Fc = {
|
|
|
1034
1035
|
children: d,
|
|
1035
1036
|
href: p,
|
|
1036
1037
|
onClick: m
|
|
1037
|
-
} =
|
|
1038
|
+
} = v, g = D(v, [
|
|
1038
1039
|
"loading",
|
|
1039
1040
|
"disabled",
|
|
1040
1041
|
"type",
|
|
@@ -1049,7 +1050,7 @@ const Fc = {
|
|
|
1049
1050
|
"href",
|
|
1050
1051
|
"onClick"
|
|
1051
1052
|
]);
|
|
1052
|
-
const
|
|
1053
|
+
const b = t || a, E = !d && n, w = ["text", "link", "link-light"].includes(o), C = p ? "a" : "button", $ = u(
|
|
1053
1054
|
i,
|
|
1054
1055
|
me[pe],
|
|
1055
1056
|
me[`${pe}--${o}`],
|
|
@@ -1057,10 +1058,10 @@ const Fc = {
|
|
|
1057
1058
|
{
|
|
1058
1059
|
[me[`${pe}--loading`]]: t,
|
|
1059
1060
|
[me[`${pe}--full-width`]]: _,
|
|
1060
|
-
[me[`${pe}--with-${c}-icon`]]: n && !
|
|
1061
|
-
[me[`${pe}--icon-only`]]:
|
|
1062
|
-
[me[`${pe}--icon-only--bg`]]:
|
|
1063
|
-
[me[`${pe}--disabled`]]:
|
|
1061
|
+
[me[`${pe}--with-${c}-icon`]]: n && !E && !w,
|
|
1062
|
+
[me[`${pe}--icon-only`]]: E,
|
|
1063
|
+
[me[`${pe}--icon-only--bg`]]: E && w,
|
|
1064
|
+
[me[`${pe}--disabled`]]: b
|
|
1064
1065
|
}
|
|
1065
1066
|
);
|
|
1066
1067
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -1068,10 +1069,10 @@ const Fc = {
|
|
|
1068
1069
|
k(k({
|
|
1069
1070
|
ref: f,
|
|
1070
1071
|
className: $,
|
|
1071
|
-
"aria-disabled":
|
|
1072
|
+
"aria-disabled": b,
|
|
1072
1073
|
type: r,
|
|
1073
|
-
disabled:
|
|
1074
|
-
}, !
|
|
1074
|
+
disabled: b
|
|
1075
|
+
}, !b && { href: p, onClick: m }), g),
|
|
1075
1076
|
t && /* @__PURE__ */ e.createElement(
|
|
1076
1077
|
Cr,
|
|
1077
1078
|
k({
|
|
@@ -1181,34 +1182,34 @@ const Co = (t) => {
|
|
|
1181
1182
|
transitionDuration: m = 200,
|
|
1182
1183
|
hoverOnDuration: g,
|
|
1183
1184
|
hoverOffDuration: f,
|
|
1184
|
-
transitionDelay:
|
|
1185
|
-
hoverOnDelay:
|
|
1186
|
-
hoverOffDelay:
|
|
1187
|
-
triggerOnClick:
|
|
1185
|
+
transitionDelay: y = 0,
|
|
1186
|
+
hoverOnDelay: v,
|
|
1187
|
+
hoverOffDelay: b,
|
|
1188
|
+
triggerOnClick: E = !1,
|
|
1188
1189
|
triggerOnHover: w = !0,
|
|
1189
1190
|
offsetMainAxis: C = 8,
|
|
1190
1191
|
offsetCrossAxis: $ = 0,
|
|
1191
1192
|
referenceElement: h,
|
|
1192
1193
|
activationThreshold: N = 0,
|
|
1193
1194
|
useDismissHookProps: I,
|
|
1194
|
-
useClickHookProps:
|
|
1195
|
+
useClickHookProps: O,
|
|
1195
1196
|
hoverOutDelayTimeout: G = 100,
|
|
1196
1197
|
arrowOffsetY: T,
|
|
1197
|
-
arrowOffsetX:
|
|
1198
|
-
closeOnTriggerBlur:
|
|
1199
|
-
floatingStrategy:
|
|
1198
|
+
arrowOffsetX: L,
|
|
1199
|
+
closeOnTriggerBlur: V = !1,
|
|
1200
|
+
floatingStrategy: M
|
|
1200
1201
|
}) => {
|
|
1201
|
-
const
|
|
1202
|
+
const U = c !== void 0, [de, we] = e.useState(!1), Ke = e.useRef(null), Ue = U ? c : de, $e = l || o, Ct = Ua(), pt = sa(), wt = u(
|
|
1202
1203
|
P[Ca],
|
|
1203
1204
|
a,
|
|
1204
1205
|
$e && P[`${Ca}--${$e}`],
|
|
1205
1206
|
s && P[`${Ca}--full-space`]
|
|
1206
1207
|
), gt = typeof _ == "function", _t = (Ie) => {
|
|
1207
|
-
Ie !== Ue && (Ie ? d == null || d() : i == null || i(), !
|
|
1208
|
-
}, $t = (Ie) => p ? Ie != null ? Ie : m : 0, Nt = (Ie) => Ie != null ? Ie :
|
|
1208
|
+
Ie !== Ue && (Ie ? d == null || d() : i == null || i(), !U && we(Ie));
|
|
1209
|
+
}, $t = (Ie) => p ? Ie != null ? Ie : m : 0, Nt = (Ie) => Ie != null ? Ie : y, {
|
|
1209
1210
|
floatingStyles: ft,
|
|
1210
1211
|
refs: A,
|
|
1211
|
-
context:
|
|
1212
|
+
context: K,
|
|
1212
1213
|
middlewareData: { arrow: { x: ue, y: Ye } = {} }
|
|
1213
1214
|
} = da({
|
|
1214
1215
|
nodeId: pt,
|
|
@@ -1220,26 +1221,26 @@ const Co = (t) => {
|
|
|
1220
1221
|
],
|
|
1221
1222
|
placement: n,
|
|
1222
1223
|
open: Ue,
|
|
1223
|
-
strategy:
|
|
1224
|
+
strategy: M,
|
|
1224
1225
|
onOpenChange: _t,
|
|
1225
1226
|
whileElementsMounted: ma
|
|
1226
|
-
}), qe = X_(
|
|
1227
|
+
}), qe = X_(K, {
|
|
1227
1228
|
move: !1,
|
|
1228
1229
|
restMs: N,
|
|
1229
1230
|
delay: {
|
|
1230
|
-
open: Nt(
|
|
1231
|
-
close: Nt(
|
|
1231
|
+
open: Nt(v),
|
|
1232
|
+
close: Nt(b || G)
|
|
1232
1233
|
},
|
|
1233
1234
|
enabled: w,
|
|
1234
|
-
handleClose:
|
|
1235
|
-
}), Va = j_(
|
|
1236
|
-
enabled:
|
|
1237
|
-
},
|
|
1235
|
+
handleClose: V ? null : J_()
|
|
1236
|
+
}), Va = j_(K), Ka = ga(K, I), Ya = fa(K, { role: "tooltip" }), qa = pa(K, k({
|
|
1237
|
+
enabled: E
|
|
1238
|
+
}, O)), { isMounted: Za, styles: Xa } = kr(K, {
|
|
1238
1239
|
duration: {
|
|
1239
1240
|
open: $t(g),
|
|
1240
1241
|
close: $t(f)
|
|
1241
1242
|
}
|
|
1242
|
-
}), { status: Ja } = Q_(
|
|
1243
|
+
}), { status: Ja } = Q_(K), { getReferenceProps: ja, getFloatingProps: va } = ba([
|
|
1243
1244
|
qe,
|
|
1244
1245
|
Va,
|
|
1245
1246
|
Ka,
|
|
@@ -1272,13 +1273,13 @@ const Co = (t) => {
|
|
|
1272
1273
|
eo,
|
|
1273
1274
|
k({
|
|
1274
1275
|
ref: Ke,
|
|
1275
|
-
context:
|
|
1276
|
+
context: K,
|
|
1276
1277
|
strokeWidth: 1,
|
|
1277
1278
|
width: 10,
|
|
1278
1279
|
height: 5,
|
|
1279
1280
|
style: k({}, yo(
|
|
1280
1281
|
T,
|
|
1281
|
-
|
|
1282
|
+
L,
|
|
1282
1283
|
Ye,
|
|
1283
1284
|
ue
|
|
1284
1285
|
))
|
|
@@ -1563,7 +1564,7 @@ const Fr = 8, Rr = "guide-tooltip", Mr = (t, a) => new Bo(t, a), Yc = (t) => {
|
|
|
1563
1564
|
className: P[`${Vt}__heading__description`]
|
|
1564
1565
|
},
|
|
1565
1566
|
a
|
|
1566
|
-
)), /* @__PURE__ */ e.createElement("div", { className: P[`${Vt}__content`] }, /* @__PURE__ */ e.createElement(x, { as: "div" }, r))),
|
|
1567
|
+
)), /* @__PURE__ */ e.createElement("div", { className: P[`${Vt}__content`] }, /* @__PURE__ */ e.createElement(x, { as: "div" }, r))), q = {
|
|
1567
1568
|
"action-bar": "lc-ActionBar-module__action-bar___TJitF",
|
|
1568
1569
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___uhoQA",
|
|
1569
1570
|
"action-bar__items--scroll": "lc-ActionBar-module__action-bar__items--scroll___f--dN",
|
|
@@ -1594,9 +1595,9 @@ const Fr = 8, Rr = "guide-tooltip", Mr = (t, a) => new Bo(t, a), Yc = (t) => {
|
|
|
1594
1595
|
isActive: a,
|
|
1595
1596
|
vertical: r
|
|
1596
1597
|
}) => {
|
|
1597
|
-
const _ = u(
|
|
1598
|
-
[
|
|
1599
|
-
[
|
|
1598
|
+
const _ = u(q[St], {
|
|
1599
|
+
[q[`${St}--active`]]: a,
|
|
1600
|
+
[q[`${St}--vertical`]]: r
|
|
1600
1601
|
}), o = /* @__PURE__ */ e.createElement(
|
|
1601
1602
|
W,
|
|
1602
1603
|
{
|
|
@@ -1606,9 +1607,9 @@ const Fr = 8, Rr = "guide-tooltip", Mr = (t, a) => new Bo(t, a), Yc = (t) => {
|
|
|
1606
1607
|
kind: "plain",
|
|
1607
1608
|
onClick: t.onClick,
|
|
1608
1609
|
icon: t.element,
|
|
1609
|
-
className: u(
|
|
1610
|
-
[
|
|
1611
|
-
[
|
|
1610
|
+
className: u(q[`${St}__button`], {
|
|
1611
|
+
[q[`${St}__button--with-vertical-divider`]]: r && t.withDivider,
|
|
1612
|
+
[q[`${St}__button--with-divider`]]: !r && t.withDivider
|
|
1612
1613
|
})
|
|
1613
1614
|
}
|
|
1614
1615
|
);
|
|
@@ -1624,7 +1625,7 @@ const Fr = 8, Rr = "guide-tooltip", Mr = (t, a) => new Bo(t, a), Yc = (t) => {
|
|
|
1624
1625
|
{
|
|
1625
1626
|
kind: "invert",
|
|
1626
1627
|
placement: r ? "left" : "bottom",
|
|
1627
|
-
triggerClassName:
|
|
1628
|
+
triggerClassName: q[`${m_}__tooltip`],
|
|
1628
1629
|
triggerRenderer: () => o,
|
|
1629
1630
|
floatingStrategy: "fixed",
|
|
1630
1631
|
useClickHookProps: {
|
|
@@ -1648,26 +1649,26 @@ const Fr = 8, Rr = "guide-tooltip", Mr = (t, a) => new Bo(t, a), Yc = (t) => {
|
|
|
1648
1649
|
const [c, s] = e.useState(
|
|
1649
1650
|
_.length
|
|
1650
1651
|
), [i, d] = e.useState([]), [p, m] = e.useState(!1), g = r === "scroll", f = u(
|
|
1651
|
-
|
|
1652
|
+
q[wa],
|
|
1652
1653
|
t,
|
|
1653
|
-
l &&
|
|
1654
|
-
),
|
|
1654
|
+
l && q[`${wa}--vertical`]
|
|
1655
|
+
), y = !g && i.length !== 0;
|
|
1655
1656
|
e.useEffect(() => {
|
|
1656
1657
|
g || (_.length > c ? d(_.slice(c, _.length)) : d([]));
|
|
1657
1658
|
}, [_, c]), e.useEffect(() => {
|
|
1658
|
-
const
|
|
1659
|
-
if (!g &&
|
|
1659
|
+
const E = !!window.ResizeObserver;
|
|
1660
|
+
if (!g && E) {
|
|
1660
1661
|
const w = new ResizeObserver((C) => {
|
|
1661
|
-
const { width: $, height: h } = C[0].contentRect, N = l ? h : $, I = i.length > 0 ? 60 : 0,
|
|
1662
|
+
const { width: $, height: h } = C[0].contentRect, N = l ? h : $, I = i.length > 0 ? 60 : 0, O = Math.floor(
|
|
1662
1663
|
(N - I) / To
|
|
1663
1664
|
);
|
|
1664
|
-
|
|
1665
|
+
O >= 0 && O !== c && s(O);
|
|
1665
1666
|
});
|
|
1666
1667
|
return w.observe(document.querySelector(`#${a}`)), () => w.disconnect();
|
|
1667
1668
|
}
|
|
1668
1669
|
}, [i, g, c]);
|
|
1669
|
-
const
|
|
1670
|
-
(
|
|
1670
|
+
const v = e.useCallback(() => i.reduce(
|
|
1671
|
+
(E, w) => {
|
|
1671
1672
|
if (!w.hideInMenu) {
|
|
1672
1673
|
const C = {
|
|
1673
1674
|
key: w.key,
|
|
@@ -1675,34 +1676,34 @@ const Fr = 8, Rr = "guide-tooltip", Mr = (t, a) => new Bo(t, a), Yc = (t) => {
|
|
|
1675
1676
|
withDivider: w.withDivider,
|
|
1676
1677
|
onClick: w.onClick
|
|
1677
1678
|
};
|
|
1678
|
-
|
|
1679
|
+
E.push(C);
|
|
1679
1680
|
}
|
|
1680
|
-
return
|
|
1681
|
+
return E;
|
|
1681
1682
|
},
|
|
1682
1683
|
[]
|
|
1683
|
-
), [i]),
|
|
1684
|
+
), [i]), b = i.find((E) => E.key === o);
|
|
1684
1685
|
return /* @__PURE__ */ e.createElement("div", { id: a, className: f }, /* @__PURE__ */ e.createElement(
|
|
1685
1686
|
"div",
|
|
1686
1687
|
{
|
|
1687
|
-
className: u(
|
|
1688
|
-
[
|
|
1688
|
+
className: u(q[`${wa}__items`], {
|
|
1689
|
+
[q[`${wa}__items--scroll`]]: g
|
|
1689
1690
|
})
|
|
1690
1691
|
},
|
|
1691
|
-
_.slice(0, c).map((
|
|
1692
|
+
_.slice(0, c).map((E) => /* @__PURE__ */ e.createElement(
|
|
1692
1693
|
Io,
|
|
1693
1694
|
{
|
|
1694
|
-
option:
|
|
1695
|
-
isActive:
|
|
1695
|
+
option: E,
|
|
1696
|
+
isActive: E.key === o,
|
|
1696
1697
|
vertical: l
|
|
1697
1698
|
}
|
|
1698
1699
|
))
|
|
1699
|
-
),
|
|
1700
|
+
), y && /* @__PURE__ */ e.createElement(
|
|
1700
1701
|
"div",
|
|
1701
1702
|
{
|
|
1702
1703
|
className: u(
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
l &&
|
|
1704
|
+
q[Xe],
|
|
1705
|
+
b && q[`${Xe}--active`],
|
|
1706
|
+
l && q[`${Xe}--vertical`]
|
|
1706
1707
|
)
|
|
1707
1708
|
},
|
|
1708
1709
|
/* @__PURE__ */ e.createElement(
|
|
@@ -1713,16 +1714,16 @@ const Fr = 8, Rr = "guide-tooltip", Mr = (t, a) => new Bo(t, a), Yc = (t) => {
|
|
|
1713
1714
|
onClose: () => m(!1),
|
|
1714
1715
|
floatingStrategy: "fixed",
|
|
1715
1716
|
placement: l ? "left-start" : "bottom-end",
|
|
1716
|
-
options:
|
|
1717
|
+
options: v(),
|
|
1717
1718
|
triggerClassName: u(
|
|
1718
|
-
l &&
|
|
1719
|
+
l && q[`${Xe}__trigger-vertical`]
|
|
1719
1720
|
),
|
|
1720
1721
|
triggerRenderer: /* @__PURE__ */ e.createElement(
|
|
1721
1722
|
W,
|
|
1722
1723
|
{
|
|
1723
1724
|
className: u(
|
|
1724
|
-
|
|
1725
|
-
|
|
1725
|
+
q[`${Xe}__button`],
|
|
1726
|
+
b && q[`${Xe}__button--active`]
|
|
1726
1727
|
),
|
|
1727
1728
|
kind: "plain",
|
|
1728
1729
|
icon: /* @__PURE__ */ e.createElement(
|
|
@@ -1731,21 +1732,21 @@ const Fr = 8, Rr = "guide-tooltip", Mr = (t, a) => new Bo(t, a), Yc = (t) => {
|
|
|
1731
1732
|
source: Ot,
|
|
1732
1733
|
kind: "primary",
|
|
1733
1734
|
className: u(
|
|
1734
|
-
|
|
1735
|
-
p &&
|
|
1735
|
+
q[`${Xe}__button__icon`],
|
|
1736
|
+
p && q[`${Xe}__button__icon--open`]
|
|
1736
1737
|
)
|
|
1737
1738
|
}
|
|
1738
1739
|
),
|
|
1739
1740
|
iconPosition: "right"
|
|
1740
1741
|
},
|
|
1741
|
-
|
|
1742
|
+
b && /* @__PURE__ */ e.createElement(
|
|
1742
1743
|
"div",
|
|
1743
1744
|
{
|
|
1744
1745
|
className: u(
|
|
1745
|
-
|
|
1746
|
+
q[`${Xe}__button__with-item`]
|
|
1746
1747
|
)
|
|
1747
1748
|
},
|
|
1748
|
-
|
|
1749
|
+
b.element
|
|
1749
1750
|
)
|
|
1750
1751
|
),
|
|
1751
1752
|
footer: n
|
|
@@ -2077,10 +2078,10 @@ const Uo = "side-navigation-item-test-id", Ho = "side-navigation-active-item-tes
|
|
|
2077
2078
|
"onItemHover",
|
|
2078
2079
|
"isIconHidden"
|
|
2079
2080
|
]);
|
|
2080
|
-
const f = typeof _ == "string",
|
|
2081
|
-
|
|
2082
|
-
},
|
|
2083
|
-
|
|
2081
|
+
const f = typeof _ == "string", y = (b) => {
|
|
2082
|
+
b.preventDefault(), n == null || n();
|
|
2083
|
+
}, v = (b) => {
|
|
2084
|
+
b.key === "Enter" && (b.preventDefault(), n == null || n());
|
|
2084
2085
|
};
|
|
2085
2086
|
return /* @__PURE__ */ e.createElement(
|
|
2086
2087
|
"li",
|
|
@@ -2099,8 +2100,8 @@ const Uo = "side-navigation-item-test-id", Ho = "side-navigation-active-item-tes
|
|
|
2099
2100
|
[Te[`${De}__anchor--icon-hidden`]]: d
|
|
2100
2101
|
}),
|
|
2101
2102
|
href: r,
|
|
2102
|
-
onClick:
|
|
2103
|
-
onKeyDown:
|
|
2103
|
+
onClick: y,
|
|
2104
|
+
onKeyDown: v,
|
|
2104
2105
|
onMouseEnter: i || Ra,
|
|
2105
2106
|
onFocus: i || Ra
|
|
2106
2107
|
},
|
|
@@ -2154,18 +2155,18 @@ const Uo = "side-navigation-item-test-id", Ho = "side-navigation-active-item-tes
|
|
|
2154
2155
|
shouldOpenOnInit: n = !1,
|
|
2155
2156
|
shouldOpenOnActive: c = !1
|
|
2156
2157
|
}) => {
|
|
2157
|
-
const [s, i] = e.useState(!1), [d, p] = e.useState(0), m = e.useRef(!1), g = e.useRef(null), { isOpen: f, isMounted:
|
|
2158
|
+
const [s, i] = e.useState(!1), [d, p] = e.useState(0), m = e.useRef(!1), g = e.useRef(null), { isOpen: f, isMounted: y, setIsOpen: v } = wr({
|
|
2158
2159
|
isVisible: !o || n,
|
|
2159
2160
|
elementRef: g
|
|
2160
|
-
}),
|
|
2161
|
-
o &&
|
|
2161
|
+
}), b = typeof a == "function" ? a(f) : a, E = typeof t == "function" ? t(f) : t, w = () => v(!0), C = () => {
|
|
2162
|
+
o && v((h) => !h);
|
|
2162
2163
|
}, $ = (h) => {
|
|
2163
2164
|
const N = h == null ? void 0 : h.getElementsByTagName("li"), I = N != null && N.length ? [...N].some(
|
|
2164
2165
|
(G) => G.getAttribute("data-active") === "true"
|
|
2165
2166
|
) : !1;
|
|
2166
2167
|
i(I);
|
|
2167
|
-
const
|
|
2168
|
-
p(
|
|
2168
|
+
const O = ((N == null ? void 0 : N.length) || 0) * Vo;
|
|
2169
|
+
p(O);
|
|
2169
2170
|
};
|
|
2170
2171
|
return e.useEffect(() => {
|
|
2171
2172
|
c && (!m.current && s && w(), m.current = s);
|
|
@@ -2181,11 +2182,11 @@ const Uo = "side-navigation-item-test-id", Ho = "side-navigation-active-item-tes
|
|
|
2181
2182
|
},
|
|
2182
2183
|
/* @__PURE__ */ e.createElement(S, { source: Oa, size: "small" })
|
|
2183
2184
|
),
|
|
2184
|
-
label: /* @__PURE__ */ e.createElement(x, { className: lt[`${nt}__label`], bold: !0 },
|
|
2185
|
+
label: /* @__PURE__ */ e.createElement(x, { className: lt[`${nt}__label`], bold: !0 }, E),
|
|
2185
2186
|
isMainEntry: !0,
|
|
2186
2187
|
onClick: C,
|
|
2187
2188
|
onItemHover: l,
|
|
2188
|
-
rightNode:
|
|
2189
|
+
rightNode: b
|
|
2189
2190
|
}
|
|
2190
2191
|
) : /* @__PURE__ */ e.createElement(
|
|
2191
2192
|
x,
|
|
@@ -2194,7 +2195,7 @@ const Uo = "side-navigation-item-test-id", Ho = "side-navigation-active-item-tes
|
|
|
2194
2195
|
className: lt[`${nt}__simple-label`],
|
|
2195
2196
|
onMouseEnter: l || Ra
|
|
2196
2197
|
},
|
|
2197
|
-
|
|
2198
|
+
E
|
|
2198
2199
|
), /* @__PURE__ */ e.createElement(
|
|
2199
2200
|
"div",
|
|
2200
2201
|
{
|
|
@@ -2207,7 +2208,7 @@ const Uo = "side-navigation-item-test-id", Ho = "side-navigation-active-item-tes
|
|
|
2207
2208
|
]),
|
|
2208
2209
|
style: { maxHeight: f ? d : 0 }
|
|
2209
2210
|
},
|
|
2210
|
-
|
|
2211
|
+
y && /* @__PURE__ */ e.createElement(
|
|
2211
2212
|
"ul",
|
|
2212
2213
|
{
|
|
2213
2214
|
className: u(lt[`${nt}__list`], r),
|
|
@@ -2410,21 +2411,12 @@ const Yo = "lc-Badge-module__badge___GhLnu", qo = "lc-Badge-module__badge__dot__
|
|
|
2410
2411
|
elementRef: c
|
|
2411
2412
|
}), d = window.matchMedia("(max-width: 768px)").matches, p = a === "warning" ? "link-inverted" : "text", m = a === "warning" ? "secondary" : "high-contrast", g = o || l ? /* @__PURE__ */ e.createElement("div", { className: Ve[`${ct}__cta-wrapper`] }, o && /* @__PURE__ */ e.createElement(
|
|
2412
2413
|
W,
|
|
2413
|
-
{
|
|
2414
|
+
k({
|
|
2414
2415
|
size: "compact",
|
|
2415
|
-
onClick: o.onClick,
|
|
2416
2416
|
kind: d ? p : m
|
|
2417
|
-
},
|
|
2417
|
+
}, o),
|
|
2418
2418
|
o.label
|
|
2419
|
-
), l && /* @__PURE__ */ e.createElement(
|
|
2420
|
-
W,
|
|
2421
|
-
{
|
|
2422
|
-
size: "compact",
|
|
2423
|
-
onClick: l.onClick,
|
|
2424
|
-
kind: p
|
|
2425
|
-
},
|
|
2426
|
-
l.label
|
|
2427
|
-
)) : null, f = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Ve[`${ct}__children-wrapper`] }, _, g), r && /* @__PURE__ */ e.createElement(
|
|
2419
|
+
), l && /* @__PURE__ */ e.createElement(W, k({ size: "compact", kind: p }, l), l.label)) : null, f = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Ve[`${ct}__children-wrapper`] }, _, g), r && /* @__PURE__ */ e.createElement(
|
|
2428
2420
|
"button",
|
|
2429
2421
|
k({
|
|
2430
2422
|
className: Ve[`${ct}__close-button`]
|
|
@@ -2434,9 +2426,14 @@ const Yo = "lc-Badge-module__badge___GhLnu", qo = "lc-Badge-module__badge__dot__
|
|
|
2434
2426
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, s && /* @__PURE__ */ e.createElement(
|
|
2435
2427
|
"div",
|
|
2436
2428
|
{
|
|
2437
|
-
className: u(
|
|
2438
|
-
|
|
2439
|
-
|
|
2429
|
+
className: u(
|
|
2430
|
+
Ve[`${ct}__wrapper`],
|
|
2431
|
+
{
|
|
2432
|
+
[Ve[`${ct}__wrapper--open`]]: i
|
|
2433
|
+
},
|
|
2434
|
+
"lc-dark-theme"
|
|
2435
|
+
// Alerts are forced into dark mode to maintain consistency of the colors
|
|
2436
|
+
),
|
|
2440
2437
|
ref: c,
|
|
2441
2438
|
role: "status"
|
|
2442
2439
|
},
|
|
@@ -2445,12 +2442,12 @@ const Yo = "lc-Badge-module__badge___GhLnu", qo = "lc-Badge-module__badge__dot__
|
|
|
2445
2442
|
{
|
|
2446
2443
|
"data-testid": "navigation-top-bar-alert",
|
|
2447
2444
|
className: u(
|
|
2448
|
-
t,
|
|
2449
2445
|
Ve[ct],
|
|
2450
2446
|
Ve[`${ct}--${a}`],
|
|
2451
2447
|
{
|
|
2452
2448
|
[Ve[`${ct}--open`]]: i
|
|
2453
|
-
}
|
|
2449
|
+
},
|
|
2450
|
+
t
|
|
2454
2451
|
)
|
|
2455
2452
|
},
|
|
2456
2453
|
f
|
|
@@ -2560,12 +2557,12 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2560
2557
|
"type",
|
|
2561
2558
|
"withRim"
|
|
2562
2559
|
]);
|
|
2563
|
-
const g = s === "image" && !l, [f,
|
|
2560
|
+
const g = s === "image" && !l, [f, y] = e.useState(g), v = s === "image" && !!l && !f, b = s === "text", E = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, w = al(c, E), C = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), $ = r || tl(c), h = $ ? rl($) : void 0, N = b ? { backgroundColor: $ } : {}, I = u(k({
|
|
2564
2561
|
[ke[re]]: !0,
|
|
2565
2562
|
[ke[`${re}--${_}`]]: !0,
|
|
2566
2563
|
[ke[`${re}--${o}`]]: !0,
|
|
2567
2564
|
[ke[`${re}--with-rim`]]: i
|
|
2568
|
-
}, a ? { [`${a}`]: a } : {})),
|
|
2565
|
+
}, a ? { [`${a}`]: a } : {})), O = u(
|
|
2569
2566
|
ke[`${re}__status`],
|
|
2570
2567
|
ke[`${re}__status--${_}`],
|
|
2571
2568
|
ke[`${re}__status--${o}`],
|
|
@@ -2576,9 +2573,9 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2576
2573
|
), T = u(
|
|
2577
2574
|
ke[`${re}__rim`],
|
|
2578
2575
|
ke[`${re}__rim--${o}`]
|
|
2579
|
-
),
|
|
2576
|
+
), L = (M) => C ? "2xs" : ["medium"].includes(M) ? "xs" : ["large", "xlarge"].includes(M) ? "sm" : ["xxlarge"].includes(M) ? "lg" : "xl", V = e.useCallback(() => y(!0), []);
|
|
2580
2577
|
return e.useEffect(() => {
|
|
2581
|
-
|
|
2578
|
+
y(g);
|
|
2582
2579
|
}, [g]), /* @__PURE__ */ e.createElement("div", k({ className: I, style: N }, d), i && /* @__PURE__ */ e.createElement(
|
|
2583
2580
|
"div",
|
|
2584
2581
|
{
|
|
@@ -2589,21 +2586,21 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2589
2586
|
"div",
|
|
2590
2587
|
{
|
|
2591
2588
|
"data-testid": `${re}__status`,
|
|
2592
|
-
className:
|
|
2589
|
+
className: O
|
|
2593
2590
|
}
|
|
2594
|
-
),
|
|
2591
|
+
), v && /* @__PURE__ */ e.createElement(
|
|
2595
2592
|
"img",
|
|
2596
2593
|
{
|
|
2597
2594
|
className: ke[`${re}__image`],
|
|
2598
2595
|
src: l,
|
|
2599
2596
|
alt: t,
|
|
2600
|
-
onError:
|
|
2597
|
+
onError: V
|
|
2601
2598
|
}
|
|
2602
|
-
),
|
|
2599
|
+
), b && /* @__PURE__ */ e.createElement(
|
|
2603
2600
|
_e,
|
|
2604
2601
|
{
|
|
2605
2602
|
as: "span",
|
|
2606
|
-
size:
|
|
2603
|
+
size: L(o),
|
|
2607
2604
|
style: { color: h },
|
|
2608
2605
|
bold: C,
|
|
2609
2606
|
uppercase: C
|
|
@@ -2639,18 +2636,18 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2639
2636
|
}, [o]);
|
|
2640
2637
|
const p = (g, f) => {
|
|
2641
2638
|
d || i(g), n(g, f);
|
|
2642
|
-
}, m = a.map(({ id: g, label: f, loading:
|
|
2643
|
-
const
|
|
2639
|
+
}, m = a.map(({ id: g, label: f, loading: y, disabled: v, icon: b }) => {
|
|
2640
|
+
const E = g === s, w = E ? Sa["btn--active"] : "", C = E ? !1 : y;
|
|
2644
2641
|
return /* @__PURE__ */ e.createElement(
|
|
2645
2642
|
W,
|
|
2646
2643
|
{
|
|
2647
2644
|
key: g,
|
|
2648
2645
|
fullWidth: l,
|
|
2649
2646
|
loading: C,
|
|
2650
|
-
disabled:
|
|
2651
|
-
"aria-pressed":
|
|
2647
|
+
disabled: v,
|
|
2648
|
+
"aria-pressed": E,
|
|
2652
2649
|
kind: "secondary",
|
|
2653
|
-
icon:
|
|
2650
|
+
icon: b,
|
|
2654
2651
|
className: u(Sa.btn, Sa[`btn--${t}`], w),
|
|
2655
2652
|
onClick: ($) => {
|
|
2656
2653
|
p(g, $);
|
|
@@ -2694,8 +2691,8 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2694
2691
|
"src",
|
|
2695
2692
|
"title"
|
|
2696
2693
|
]);
|
|
2697
|
-
const [p, m] = e.useState(!1), g = p ? Ga : Ot, f = p ? "Hide" : "Show more",
|
|
2698
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: u(Ee[na], _) }, s),
|
|
2694
|
+
const [p, m] = e.useState(!1), g = p ? Ga : Ot, f = p ? "Hide" : "Show more", y = (a == null ? void 0 : a.length) > 0, v = !!l, b = y || v, E = c, w = n, C = w ? "" : Ee[El];
|
|
2695
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: u(Ee[na], _) }, s), E && /* @__PURE__ */ e.createElement("div", { className: u(Ee[La], C) }, w && /* @__PURE__ */ e.createElement(
|
|
2699
2696
|
"img",
|
|
2700
2697
|
{
|
|
2701
2698
|
alt: t,
|
|
@@ -2717,7 +2714,7 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2717
2714
|
className: Ee[`${na}__expanded-content`]
|
|
2718
2715
|
},
|
|
2719
2716
|
l
|
|
2720
|
-
),
|
|
2717
|
+
), b && /* @__PURE__ */ e.createElement("div", { className: Ee[xa] }, /* @__PURE__ */ e.createElement("div", { className: Ee[`${xa}__line`] }), /* @__PURE__ */ e.createElement("div", { className: Ee[`${xa}__buttons`] }, y && a.map(
|
|
2721
2718
|
({ kind: $, onClick: h, children: N }, I) => /* @__PURE__ */ e.createElement(
|
|
2722
2719
|
W,
|
|
2723
2720
|
{
|
|
@@ -2728,7 +2725,7 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2728
2725
|
},
|
|
2729
2726
|
N
|
|
2730
2727
|
)
|
|
2731
|
-
),
|
|
2728
|
+
), v && /* @__PURE__ */ e.createElement(
|
|
2732
2729
|
W,
|
|
2733
2730
|
{
|
|
2734
2731
|
className: Ee[`${xa}__buttons-expander`],
|
|
@@ -2839,24 +2836,24 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2839
2836
|
typeof _ == "function" && _();
|
|
2840
2837
|
}, f = () => {
|
|
2841
2838
|
if (!d) {
|
|
2842
|
-
const
|
|
2843
|
-
return r(
|
|
2839
|
+
const E = Rt(i, 12);
|
|
2840
|
+
return r(E);
|
|
2844
2841
|
}
|
|
2845
|
-
const
|
|
2842
|
+
const v = Math.abs(Br(i, d)), b = Rt(
|
|
2846
2843
|
i,
|
|
2847
|
-
!Number.isNaN(
|
|
2844
|
+
!Number.isNaN(v) && v > 12 ? 12 : v
|
|
2848
2845
|
);
|
|
2849
|
-
return r(
|
|
2850
|
-
},
|
|
2846
|
+
return r(b);
|
|
2847
|
+
}, y = () => {
|
|
2851
2848
|
if (!p) {
|
|
2852
|
-
const
|
|
2853
|
-
return r(
|
|
2849
|
+
const E = Ir(i, 12);
|
|
2850
|
+
return r(E);
|
|
2854
2851
|
}
|
|
2855
|
-
const
|
|
2852
|
+
const v = Math.abs(Br(p, i)), b = Ir(
|
|
2856
2853
|
i,
|
|
2857
|
-
!Number.isNaN(
|
|
2854
|
+
!Number.isNaN(v) && v > 12 ? 12 : v
|
|
2858
2855
|
);
|
|
2859
|
-
return s === 2 && pr(
|
|
2856
|
+
return s === 2 && pr(b, p) ? r(Rt(b, 1)) : r(b);
|
|
2860
2857
|
};
|
|
2861
2858
|
return /* @__PURE__ */ e.createElement("div", { className: n }, /* @__PURE__ */ e.createElement("div", { className: F[`${Ur}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
2862
2859
|
"button",
|
|
@@ -2899,27 +2896,27 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2899
2896
|
[c.navButtonNext]: !0,
|
|
2900
2897
|
[c.navButtonInteractionDisabled]: !o
|
|
2901
2898
|
}),
|
|
2902
|
-
onClick:
|
|
2899
|
+
onClick: y
|
|
2903
2900
|
},
|
|
2904
2901
|
/* @__PURE__ */ e.createElement(S, { source: P_, kind: "subtle" })
|
|
2905
2902
|
)));
|
|
2906
|
-
},
|
|
2903
|
+
}, R = "date-picker", f_ = (t, a) => {
|
|
2907
2904
|
const { from: r, to: _ } = a;
|
|
2908
2905
|
return !(_ && !gr(t, _) && fr(t, _) || r && !gr(t, r) && !fr(t, r));
|
|
2909
2906
|
}, b_ = (t, a, r) => a ? t && !pr(t, a) || r && pr(a, r) ? Rt(a, 1) : a : Rt(r || /* @__PURE__ */ new Date(), 1), Al = (t, a) => {
|
|
2910
2907
|
const r = {
|
|
2911
|
-
[F[`${
|
|
2912
|
-
[F[`${
|
|
2913
|
-
[F[`${
|
|
2914
|
-
[F[`${
|
|
2908
|
+
[F[`${R}__day--monday`]]: { daysOfWeek: [1] },
|
|
2909
|
+
[F[`${R}__day--sunday`]]: { daysOfWeek: [0] },
|
|
2910
|
+
[F[`${R}__day--start`]]: t,
|
|
2911
|
+
[F[`${R}__day--end`]]: t
|
|
2915
2912
|
};
|
|
2916
2913
|
if (!a || !t)
|
|
2917
2914
|
return r;
|
|
2918
2915
|
const _ = n_(a, t);
|
|
2919
2916
|
return _ > 0 ? B(k({}, r), {
|
|
2920
|
-
[F[`${
|
|
2917
|
+
[F[`${R}__day--end`]]: a
|
|
2921
2918
|
}) : _ < 0 ? B(k({}, r), {
|
|
2922
|
-
[F[`${
|
|
2919
|
+
[F[`${R}__day--start`]]: a
|
|
2923
2920
|
}) : r;
|
|
2924
2921
|
}, oa = (t, a) => {
|
|
2925
2922
|
const r = a.find((_) => _.id === t);
|
|
@@ -2935,44 +2932,44 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2935
2932
|
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) : {};
|
|
2936
2933
|
}, Fl = (t, a) => k({
|
|
2937
2934
|
container: u({
|
|
2938
|
-
[F[`${
|
|
2939
|
-
[F[`${
|
|
2935
|
+
[F[`${R}`]]: !0,
|
|
2936
|
+
[F[`${R}--range`]]: t
|
|
2940
2937
|
}),
|
|
2941
|
-
wrapper: F[`${
|
|
2942
|
-
interactionDisabled: F[`${
|
|
2943
|
-
months: F[`${
|
|
2944
|
-
month: F[`${
|
|
2945
|
-
navBar: F[`${
|
|
2938
|
+
wrapper: F[`${R}__wrapper`],
|
|
2939
|
+
interactionDisabled: F[`${R}--interaction-disabled`],
|
|
2940
|
+
months: F[`${R}__months`],
|
|
2941
|
+
month: F[`${R}__month`],
|
|
2942
|
+
navBar: F[`${R}__nav-bar`],
|
|
2946
2943
|
navButtonPrev: u(
|
|
2947
|
-
F[`${
|
|
2948
|
-
F[`${
|
|
2944
|
+
F[`${R}__nav-button`],
|
|
2945
|
+
F[`${R}__nav-button--prev`]
|
|
2949
2946
|
),
|
|
2950
2947
|
navButtonNext: u(
|
|
2951
|
-
F[`${
|
|
2952
|
-
F[`${
|
|
2948
|
+
F[`${R}__nav-button`],
|
|
2949
|
+
F[`${R}__nav-button--next`]
|
|
2953
2950
|
),
|
|
2954
|
-
navButtonInteractionDisabled: F[`${
|
|
2955
|
-
caption: F[`${
|
|
2956
|
-
weekdays: F[`${
|
|
2957
|
-
weekdaysRow: F[`${
|
|
2958
|
-
weekday: F[`${
|
|
2959
|
-
body: F[`${
|
|
2960
|
-
week: F[`${
|
|
2961
|
-
weekNumber: F[`${
|
|
2962
|
-
day: F[`${
|
|
2963
|
-
footer: F[`${
|
|
2964
|
-
todayButton: F[`${
|
|
2965
|
-
today: F[`${
|
|
2966
|
-
selected: F[`${
|
|
2967
|
-
disabled: F[`${
|
|
2968
|
-
outside: F[`${
|
|
2969
|
-
start: F[`${
|
|
2970
|
-
end: F[`${
|
|
2951
|
+
navButtonInteractionDisabled: F[`${R}__nav-button--interaction-disabled`],
|
|
2952
|
+
caption: F[`${R}__caption`],
|
|
2953
|
+
weekdays: F[`${R}__weekdays`],
|
|
2954
|
+
weekdaysRow: F[`${R}__weekdays-row`],
|
|
2955
|
+
weekday: F[`${R}__weekday`],
|
|
2956
|
+
body: F[`${R}__body`],
|
|
2957
|
+
week: F[`${R}__week`],
|
|
2958
|
+
weekNumber: F[`${R}__week-number`],
|
|
2959
|
+
day: F[`${R}__day`],
|
|
2960
|
+
footer: F[`${R}__footer`],
|
|
2961
|
+
todayButton: F[`${R}__today-button`],
|
|
2962
|
+
today: F[`${R}__day--today`],
|
|
2963
|
+
selected: F[`${R}__day--selected`],
|
|
2964
|
+
disabled: F[`${R}__day--disabled`],
|
|
2965
|
+
outside: F[`${R}__day--outside`],
|
|
2966
|
+
start: F[`${R}__day--start`],
|
|
2967
|
+
end: F[`${R}__day--end`]
|
|
2971
2968
|
}, a), zr = "date-picker", Rl = (t) => {
|
|
2972
2969
|
const a = t.getDate();
|
|
2973
2970
|
return /* @__PURE__ */ e.createElement("div", { className: F[`${zr}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: F[`${zr}__day-content`] }, a));
|
|
2974
2971
|
}, Ml = (t) => {
|
|
2975
|
-
const
|
|
2972
|
+
const b = t, {
|
|
2976
2973
|
classNames: a,
|
|
2977
2974
|
range: r,
|
|
2978
2975
|
toMonth: _,
|
|
@@ -2983,7 +2980,7 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
2983
2980
|
navbarElement: s,
|
|
2984
2981
|
renderDay: i,
|
|
2985
2982
|
innerRef: d
|
|
2986
|
-
} =
|
|
2983
|
+
} = b, p = D(b, [
|
|
2987
2984
|
"classNames",
|
|
2988
2985
|
"range",
|
|
2989
2986
|
"toMonth",
|
|
@@ -3001,18 +2998,18 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
3001
2998
|
_ && o !== m && (f_(m, { from: l, to: _ }) || g(_));
|
|
3002
2999
|
}, [o, m, _, l]);
|
|
3003
3000
|
const f = e.useCallback(
|
|
3004
|
-
(
|
|
3005
|
-
if (t.onMonthChange &&
|
|
3006
|
-
t.onMonthChange(
|
|
3001
|
+
(E) => {
|
|
3002
|
+
if (t.onMonthChange && E) {
|
|
3003
|
+
t.onMonthChange(E);
|
|
3007
3004
|
return;
|
|
3008
3005
|
}
|
|
3009
|
-
g(
|
|
3006
|
+
g(E);
|
|
3010
3007
|
},
|
|
3011
3008
|
[o, t.onMonthChange]
|
|
3012
3009
|
);
|
|
3013
|
-
let
|
|
3014
|
-
(n === 0 || n && n < 7) && (
|
|
3015
|
-
const
|
|
3010
|
+
let y = 1;
|
|
3011
|
+
(n === 0 || n && n < 7) && (y = n);
|
|
3012
|
+
const v = e.useMemo(
|
|
3016
3013
|
() => Fl(r, a),
|
|
3017
3014
|
[r, a]
|
|
3018
3015
|
);
|
|
@@ -3023,7 +3020,7 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
3023
3020
|
Dl,
|
|
3024
3021
|
{
|
|
3025
3022
|
month: m,
|
|
3026
|
-
classNames:
|
|
3023
|
+
classNames: v,
|
|
3027
3024
|
numberOfMonths: c,
|
|
3028
3025
|
onMonthChange: f,
|
|
3029
3026
|
toMonth: _,
|
|
@@ -3031,11 +3028,11 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
3031
3028
|
}
|
|
3032
3029
|
),
|
|
3033
3030
|
ref: d,
|
|
3034
|
-
classNames:
|
|
3031
|
+
classNames: v,
|
|
3035
3032
|
numberOfMonths: c,
|
|
3036
3033
|
toMonth: _,
|
|
3037
3034
|
fromMonth: l,
|
|
3038
|
-
firstDayOfWeek:
|
|
3035
|
+
firstDayOfWeek: y,
|
|
3039
3036
|
month: m,
|
|
3040
3037
|
renderDay: i || Rl
|
|
3041
3038
|
}, p)
|
|
@@ -3044,7 +3041,7 @@ const _l = "lc-Avatar-module__avatar___1zTCE", ol = "lc-Avatar-module__avatar__s
|
|
|
3044
3041
|
(t, a) => /* @__PURE__ */ e.createElement(Ml, k({ innerRef: a }, t))
|
|
3045
3042
|
);
|
|
3046
3043
|
Ll.displayName = "DatePicker";
|
|
3047
|
-
var
|
|
3044
|
+
var Z = /* @__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))(Z || {});
|
|
3048
3045
|
const Ol = (t) => {
|
|
3049
3046
|
const a = b_(
|
|
3050
3047
|
t.initialFromDate,
|
|
@@ -3059,7 +3056,7 @@ const Ol = (t) => {
|
|
|
3059
3056
|
}), Pl(t));
|
|
3060
3057
|
function o(l, n) {
|
|
3061
3058
|
switch (n.type) {
|
|
3062
|
-
case
|
|
3059
|
+
case Z.NEW_SELECTED_ITEM:
|
|
3063
3060
|
return {
|
|
3064
3061
|
selectedItem: n.payload.selectedItem,
|
|
3065
3062
|
from: void 0,
|
|
@@ -3067,36 +3064,36 @@ const Ol = (t) => {
|
|
|
3067
3064
|
temporaryTo: void 0,
|
|
3068
3065
|
currentMonth: a
|
|
3069
3066
|
};
|
|
3070
|
-
case
|
|
3067
|
+
case Z.NEW_TEMPORARY_TO_VALUE:
|
|
3071
3068
|
return B(k({}, l), {
|
|
3072
3069
|
temporaryTo: n.payload.date
|
|
3073
3070
|
});
|
|
3074
|
-
case
|
|
3071
|
+
case Z.SELECT_FIRST_DAY:
|
|
3075
3072
|
return B(k({}, l), {
|
|
3076
3073
|
from: n.payload.date,
|
|
3077
3074
|
to: void 0,
|
|
3078
3075
|
temporaryTo: void 0
|
|
3079
3076
|
});
|
|
3080
|
-
case
|
|
3077
|
+
case Z.SELECT_SECOND_DAY_AS_FROM:
|
|
3081
3078
|
return B(k({}, l), {
|
|
3082
3079
|
from: n.payload.date,
|
|
3083
3080
|
to: l.from,
|
|
3084
3081
|
temporaryTo: l.from
|
|
3085
3082
|
});
|
|
3086
|
-
case
|
|
3083
|
+
case Z.SELECT_SECOND_DAY_AS_TO:
|
|
3087
3084
|
return B(k({}, l), {
|
|
3088
3085
|
to: n.payload.date,
|
|
3089
3086
|
temporaryTo: n.payload.date
|
|
3090
3087
|
});
|
|
3091
|
-
case
|
|
3088
|
+
case Z.CURRENT_MONTH_CHANGE:
|
|
3092
3089
|
return B(k({}, l), {
|
|
3093
3090
|
currentMonth: n.payload.date
|
|
3094
3091
|
});
|
|
3095
|
-
case
|
|
3092
|
+
case Z.SET_FROM:
|
|
3096
3093
|
return B(k({}, l), {
|
|
3097
3094
|
from: n.payload.date
|
|
3098
3095
|
});
|
|
3099
|
-
case
|
|
3096
|
+
case Z.SET_TO:
|
|
3100
3097
|
return B(k({}, l), {
|
|
3101
3098
|
to: n.payload.date
|
|
3102
3099
|
});
|
|
@@ -3127,113 +3124,113 @@ const Ol = (t) => {
|
|
|
3127
3124
|
});
|
|
3128
3125
|
At(() => {
|
|
3129
3126
|
i({
|
|
3130
|
-
type:
|
|
3127
|
+
type: Z.SET_FROM,
|
|
3131
3128
|
payload: { date: r }
|
|
3132
3129
|
});
|
|
3133
3130
|
}, [r]), At(() => {
|
|
3134
3131
|
i({
|
|
3135
|
-
type:
|
|
3132
|
+
type: Z.SET_TO,
|
|
3136
3133
|
payload: { date: _ }
|
|
3137
3134
|
});
|
|
3138
3135
|
}, [_]), At(() => {
|
|
3139
|
-
const
|
|
3136
|
+
const y = b_(
|
|
3140
3137
|
r,
|
|
3141
3138
|
_,
|
|
3142
3139
|
o
|
|
3143
3140
|
);
|
|
3144
3141
|
i({
|
|
3145
|
-
type:
|
|
3146
|
-
payload: { date:
|
|
3142
|
+
type: Z.CURRENT_MONTH_CHANGE,
|
|
3143
|
+
payload: { date: y }
|
|
3147
3144
|
});
|
|
3148
3145
|
}, [o, r, _]), At(() => {
|
|
3149
|
-
const { from:
|
|
3150
|
-
if (!(
|
|
3146
|
+
const { from: y, selectedItem: v, to: b } = s;
|
|
3147
|
+
if (!(y && b))
|
|
3151
3148
|
return;
|
|
3152
|
-
const
|
|
3153
|
-
|
|
3149
|
+
const E = oa(v, t);
|
|
3150
|
+
E && (l == null || l(B(k({}, E), {
|
|
3154
3151
|
value: {
|
|
3155
|
-
from:
|
|
3156
|
-
to:
|
|
3152
|
+
from: y,
|
|
3153
|
+
to: b
|
|
3157
3154
|
}
|
|
3158
3155
|
})));
|
|
3159
3156
|
}, [s.from, s.to, s.selectedItem, t, l]), At(() => {
|
|
3160
|
-
const { selectedItem:
|
|
3161
|
-
if (
|
|
3157
|
+
const { selectedItem: y } = s;
|
|
3158
|
+
if (y === c.current)
|
|
3162
3159
|
return;
|
|
3163
|
-
if (!
|
|
3160
|
+
if (!y) {
|
|
3164
3161
|
l(null);
|
|
3165
3162
|
return;
|
|
3166
3163
|
}
|
|
3167
|
-
if (!oa(
|
|
3164
|
+
if (!oa(y, t))
|
|
3168
3165
|
return;
|
|
3169
|
-
const
|
|
3170
|
-
(
|
|
3166
|
+
const b = t.reduce(
|
|
3167
|
+
(E, w) => B(k({}, E), { [w.id]: w }),
|
|
3171
3168
|
{}
|
|
3172
3169
|
);
|
|
3173
|
-
l(
|
|
3170
|
+
l(b[y]);
|
|
3174
3171
|
}, [l, s.selectedItem, t]);
|
|
3175
3172
|
const d = Ea(
|
|
3176
|
-
(
|
|
3177
|
-
const
|
|
3178
|
-
!Hr(s.from, s.to) &&
|
|
3179
|
-
type:
|
|
3180
|
-
payload: { date:
|
|
3173
|
+
(y) => {
|
|
3174
|
+
const v = o ? n_(o, y) >= 0 : !0;
|
|
3175
|
+
!Hr(s.from, s.to) && v && i({
|
|
3176
|
+
type: Z.NEW_TEMPORARY_TO_VALUE,
|
|
3177
|
+
payload: { date: y }
|
|
3181
3178
|
});
|
|
3182
3179
|
},
|
|
3183
3180
|
[o, s.from, s.to]
|
|
3184
3181
|
), p = Ea(
|
|
3185
|
-
(
|
|
3186
|
-
const { from:
|
|
3187
|
-
f_(
|
|
3188
|
-
type:
|
|
3189
|
-
payload: { date:
|
|
3190
|
-
}) :
|
|
3191
|
-
type:
|
|
3192
|
-
payload: { date:
|
|
3182
|
+
(y) => {
|
|
3183
|
+
const { from: v, to: b } = s;
|
|
3184
|
+
f_(y, { to: o }) && (Hr(v, b) ? i({
|
|
3185
|
+
type: Z.SELECT_FIRST_DAY,
|
|
3186
|
+
payload: { date: y }
|
|
3187
|
+
}) : v && gr(y, v) || v && fr(y, v) ? i({
|
|
3188
|
+
type: Z.SELECT_SECOND_DAY_AS_TO,
|
|
3189
|
+
payload: { date: y }
|
|
3193
3190
|
}) : i({
|
|
3194
|
-
type:
|
|
3195
|
-
payload: { date:
|
|
3191
|
+
type: Z.SELECT_SECOND_DAY_AS_FROM,
|
|
3192
|
+
payload: { date: y }
|
|
3196
3193
|
}));
|
|
3197
3194
|
},
|
|
3198
3195
|
[o, s.from, s.to]
|
|
3199
3196
|
), m = Ea(
|
|
3200
|
-
(
|
|
3201
|
-
if (
|
|
3197
|
+
(y) => {
|
|
3198
|
+
if (y === null) {
|
|
3202
3199
|
i({
|
|
3203
|
-
type:
|
|
3200
|
+
type: Z.NEW_SELECTED_ITEM,
|
|
3204
3201
|
payload: { selectedItem: null }
|
|
3205
3202
|
});
|
|
3206
3203
|
return;
|
|
3207
3204
|
}
|
|
3208
|
-
oa(
|
|
3209
|
-
type:
|
|
3210
|
-
payload: { selectedItem:
|
|
3205
|
+
oa(y, t) && i({
|
|
3206
|
+
type: Z.NEW_SELECTED_ITEM,
|
|
3207
|
+
payload: { selectedItem: y }
|
|
3211
3208
|
});
|
|
3212
3209
|
},
|
|
3213
3210
|
[t]
|
|
3214
|
-
), g = Ea((
|
|
3211
|
+
), g = Ea((y) => {
|
|
3215
3212
|
i({
|
|
3216
|
-
type:
|
|
3217
|
-
payload: { date:
|
|
3213
|
+
type: Z.CURRENT_MONTH_CHANGE,
|
|
3214
|
+
payload: { date: y }
|
|
3218
3215
|
});
|
|
3219
3216
|
}, []);
|
|
3220
3217
|
return n((() => {
|
|
3221
|
-
const { currentMonth:
|
|
3222
|
-
() => Al(
|
|
3223
|
-
[
|
|
3224
|
-
), $ = ya(() => oa(
|
|
3218
|
+
const { currentMonth: y, from: v, selectedItem: b, temporaryTo: E, to: w } = s, C = ya(
|
|
3219
|
+
() => Al(v, E),
|
|
3220
|
+
[v, E]
|
|
3221
|
+
), $ = ya(() => oa(b, t), [t, b]), h = ya(() => [v, { from: v, to: E }], [v, E]), N = ya(() => o ? { after: o } : void 0, [o]);
|
|
3225
3222
|
return {
|
|
3226
3223
|
select: {
|
|
3227
3224
|
onItemSelect: m,
|
|
3228
|
-
selected:
|
|
3225
|
+
selected: b || ""
|
|
3229
3226
|
},
|
|
3230
3227
|
inputs: {
|
|
3231
|
-
fromDate:
|
|
3228
|
+
fromDate: v,
|
|
3232
3229
|
toDate: w
|
|
3233
3230
|
},
|
|
3234
3231
|
datepicker: {
|
|
3235
3232
|
range: !0,
|
|
3236
|
-
month:
|
|
3233
|
+
month: y,
|
|
3237
3234
|
numberOfMonths: 2,
|
|
3238
3235
|
onDayClick: p,
|
|
3239
3236
|
selectedDays: h,
|
|
@@ -3300,11 +3297,11 @@ const li = (t) => {
|
|
|
3300
3297
|
hideLabelOnOpen: s,
|
|
3301
3298
|
onClick: i
|
|
3302
3299
|
}) => {
|
|
3303
|
-
const [d, p] = e.useState(c), [m, g] = e.useState(0), f = e.useRef(null),
|
|
3300
|
+
const [d, p] = e.useState(c), [m, g] = e.useState(0), f = e.useRef(null), y = u(
|
|
3304
3301
|
H[z],
|
|
3305
3302
|
l && H[`${z}--with-divider`],
|
|
3306
3303
|
a
|
|
3307
|
-
),
|
|
3304
|
+
), v = s && d, b = typeof o == "string", E = (C) => {
|
|
3308
3305
|
p(($) => !$), C.currentTarget.blur(), i == null || i(C);
|
|
3309
3306
|
}, w = (C) => {
|
|
3310
3307
|
const h = C.target.tagName.toLowerCase();
|
|
@@ -3318,17 +3315,17 @@ const li = (t) => {
|
|
|
3318
3315
|
});
|
|
3319
3316
|
return $.observe(f.current), () => $.disconnect();
|
|
3320
3317
|
}
|
|
3321
|
-
}, [f]), /* @__PURE__ */ e.createElement("div", { className:
|
|
3318
|
+
}, [f]), /* @__PURE__ */ e.createElement("div", { className: y }, /* @__PURE__ */ e.createElement(
|
|
3322
3319
|
"div",
|
|
3323
3320
|
{
|
|
3324
3321
|
className: u(
|
|
3325
3322
|
H[`${z}__label-wrapper`],
|
|
3326
3323
|
s && H[`${z}__label-wrapper--fading`],
|
|
3327
|
-
|
|
3324
|
+
v && H[`${z}__label-wrapper--hide`],
|
|
3328
3325
|
d && H[`${z}__label-wrapper--open`]
|
|
3329
3326
|
),
|
|
3330
3327
|
"aria-expanded": d,
|
|
3331
|
-
"aria-hidden":
|
|
3328
|
+
"aria-hidden": v,
|
|
3332
3329
|
"data-testid": "details-card-label",
|
|
3333
3330
|
onClick: w
|
|
3334
3331
|
},
|
|
@@ -3341,7 +3338,7 @@ const li = (t) => {
|
|
|
3341
3338
|
)
|
|
3342
3339
|
},
|
|
3343
3340
|
r && /* @__PURE__ */ e.createElement("div", { className: H[`${z}__label__left-node`] }, r),
|
|
3344
|
-
|
|
3341
|
+
b ? /* @__PURE__ */ e.createElement(
|
|
3345
3342
|
_e,
|
|
3346
3343
|
{
|
|
3347
3344
|
size: "xs",
|
|
@@ -3371,7 +3368,7 @@ const li = (t) => {
|
|
|
3371
3368
|
d && H[`${z}__button--open`],
|
|
3372
3369
|
s && H[`${z}__button--fading`]
|
|
3373
3370
|
),
|
|
3374
|
-
onClick:
|
|
3371
|
+
onClick: E,
|
|
3375
3372
|
"aria-expanded": d
|
|
3376
3373
|
}
|
|
3377
3374
|
), /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
@@ -3471,7 +3468,7 @@ const li = (t) => {
|
|
|
3471
3468
|
"formFooter"
|
|
3472
3469
|
]);
|
|
3473
3470
|
return /* @__PURE__ */ e.createElement("form", k({ className: u(Kt[Yt], t) }, l), (r || _) && /* @__PURE__ */ e.createElement("div", { className: Kt[`${Yt}__header`] }, r && /* @__PURE__ */ e.createElement(_e, { size: "sm", className: Kt[`${Yt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(x, { as: "p", size: "sm", className: Kt[`${Yt}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: Kt[`${Yt}__footer`] }, o));
|
|
3474
|
-
},
|
|
3471
|
+
}, X = {
|
|
3475
3472
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
3476
3473
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
3477
3474
|
"form-field__wrapper--inline": "lc-FormField-module__form-field__wrapper--inline___Ubvrn",
|
|
@@ -3488,7 +3485,7 @@ const li = (t) => {
|
|
|
3488
3485
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___DCBjC",
|
|
3489
3486
|
"form-field__content": "lc-FormField-module__form-field__content___XaOx3",
|
|
3490
3487
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___NpVw4"
|
|
3491
|
-
},
|
|
3488
|
+
}, J = "form-field", di = ({
|
|
3492
3489
|
inline: t,
|
|
3493
3490
|
error: a,
|
|
3494
3491
|
description: r,
|
|
@@ -3500,9 +3497,9 @@ const li = (t) => {
|
|
|
3500
3497
|
labelRightNode: s
|
|
3501
3498
|
}) => {
|
|
3502
3499
|
const i = e.useRef(null), [d, p] = e.useState("auto"), m = u(
|
|
3503
|
-
|
|
3500
|
+
X[J],
|
|
3504
3501
|
{
|
|
3505
|
-
[
|
|
3502
|
+
[X[`${J}--inline`]]: t
|
|
3506
3503
|
},
|
|
3507
3504
|
l
|
|
3508
3505
|
);
|
|
@@ -3515,34 +3512,34 @@ const li = (t) => {
|
|
|
3515
3512
|
as: "div",
|
|
3516
3513
|
size: "sm",
|
|
3517
3514
|
className: u(
|
|
3518
|
-
|
|
3519
|
-
|
|
3515
|
+
X[`${J}__label-right-node`],
|
|
3516
|
+
X[`${J}__label-right-node--inline`]
|
|
3520
3517
|
)
|
|
3521
3518
|
},
|
|
3522
3519
|
s
|
|
3523
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
3520
|
+
), /* @__PURE__ */ e.createElement("div", { className: X[`${J}__row-break`] })), /* @__PURE__ */ e.createElement(
|
|
3524
3521
|
"div",
|
|
3525
3522
|
{
|
|
3526
3523
|
className: u(
|
|
3527
|
-
|
|
3528
|
-
t &&
|
|
3524
|
+
X[`${J}__wrapper`],
|
|
3525
|
+
t && X[`${J}__wrapper--inline`]
|
|
3529
3526
|
)
|
|
3530
3527
|
},
|
|
3531
3528
|
(_ || s) && /* @__PURE__ */ e.createElement(
|
|
3532
3529
|
"div",
|
|
3533
3530
|
{
|
|
3534
3531
|
className: u(
|
|
3535
|
-
|
|
3536
|
-
t &&
|
|
3537
|
-
!_ &&
|
|
3532
|
+
X[`${J}__label`],
|
|
3533
|
+
t && X[`${J}__label--inline`],
|
|
3534
|
+
!_ && X[`${J}__label--no-text`]
|
|
3538
3535
|
)
|
|
3539
3536
|
},
|
|
3540
3537
|
_ && /* @__PURE__ */ e.createElement(
|
|
3541
3538
|
"div",
|
|
3542
3539
|
{
|
|
3543
3540
|
className: u(
|
|
3544
|
-
|
|
3545
|
-
t &&
|
|
3541
|
+
X[`${J}__label-wrapper`],
|
|
3542
|
+
t && X[`${J}__label-wrapper--inline`]
|
|
3546
3543
|
),
|
|
3547
3544
|
style: {
|
|
3548
3545
|
height: d
|
|
@@ -3551,7 +3548,7 @@ const li = (t) => {
|
|
|
3551
3548
|
/* @__PURE__ */ e.createElement(
|
|
3552
3549
|
"label",
|
|
3553
3550
|
{
|
|
3554
|
-
className:
|
|
3551
|
+
className: X[`${J}__label-left-node`],
|
|
3555
3552
|
htmlFor: n
|
|
3556
3553
|
},
|
|
3557
3554
|
/* @__PURE__ */ e.createElement(x, { as: "span", size: "sm" }, _)
|
|
@@ -3562,8 +3559,8 @@ const li = (t) => {
|
|
|
3562
3559
|
as: "div",
|
|
3563
3560
|
size: "sm",
|
|
3564
3561
|
className: u(
|
|
3565
|
-
|
|
3566
|
-
t &&
|
|
3562
|
+
X[`${J}__label-adornment`],
|
|
3563
|
+
t && X[`${J}__label-adornment--inline`]
|
|
3567
3564
|
)
|
|
3568
3565
|
},
|
|
3569
3566
|
o
|
|
@@ -3574,15 +3571,15 @@ const li = (t) => {
|
|
|
3574
3571
|
{
|
|
3575
3572
|
as: "div",
|
|
3576
3573
|
size: "sm",
|
|
3577
|
-
className: u(
|
|
3574
|
+
className: u(X[`${J}__label-right-node`])
|
|
3578
3575
|
},
|
|
3579
3576
|
s
|
|
3580
3577
|
)
|
|
3581
3578
|
),
|
|
3582
|
-
/* @__PURE__ */ e.createElement("div", { className: u(
|
|
3579
|
+
/* @__PURE__ */ e.createElement("div", { className: u(X[`${J}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: i }, c), a && /* @__PURE__ */ e.createElement(Nr, null, a), !a && r && /* @__PURE__ */ e.createElement(
|
|
3583
3580
|
Wa,
|
|
3584
3581
|
{
|
|
3585
|
-
className: u(
|
|
3582
|
+
className: u(X[`${J}__content__description`])
|
|
3586
3583
|
},
|
|
3587
3584
|
r
|
|
3588
3585
|
))
|
|
@@ -3666,7 +3663,7 @@ const li = (t) => {
|
|
|
3666
3663
|
]);
|
|
3667
3664
|
const d = e.useRef(null);
|
|
3668
3665
|
e.useImperativeHandle(c, () => d.current, []);
|
|
3669
|
-
const [p, m] = e.useState(!1), [g, f] = e.useState(!1), { type:
|
|
3666
|
+
const [p, m] = e.useState(!1), [g, f] = e.useState(!1), { type: y, onFocus: v, onBlur: b } = n, E = u(
|
|
3670
3667
|
o,
|
|
3671
3668
|
Le[Oe],
|
|
3672
3669
|
Le[`${Oe}--${t}`],
|
|
@@ -3677,7 +3674,7 @@ const li = (t) => {
|
|
|
3677
3674
|
[Le[`${Oe}--crop`]]: l,
|
|
3678
3675
|
[Le[`${Oe}--read-only`]]: n.readOnly
|
|
3679
3676
|
}
|
|
3680
|
-
), w = r ? "var(--content-disabled)" : "var(--content-default)", C = g ? F_ : R_, $ = _ && _.place === "left", h = _ &&
|
|
3677
|
+
), w = r ? "var(--content-disabled)" : "var(--content-default)", C = g ? F_ : R_, $ = _ && _.place === "left", h = _ && y !== "password" && _.place === "right", N = () => {
|
|
3681
3678
|
var I;
|
|
3682
3679
|
(I = d.current) == null || I.focus();
|
|
3683
3680
|
};
|
|
@@ -3685,7 +3682,7 @@ const li = (t) => {
|
|
|
3685
3682
|
x,
|
|
3686
3683
|
{
|
|
3687
3684
|
as: "div",
|
|
3688
|
-
className:
|
|
3685
|
+
className: E,
|
|
3689
3686
|
"aria-disabled": r,
|
|
3690
3687
|
"tab-index": "0",
|
|
3691
3688
|
onClick: N
|
|
@@ -3696,17 +3693,17 @@ const li = (t) => {
|
|
|
3696
3693
|
B(k({}, n), {
|
|
3697
3694
|
ref: d,
|
|
3698
3695
|
onFocus: (I) => {
|
|
3699
|
-
m(!0),
|
|
3696
|
+
m(!0), v == null || v(I);
|
|
3700
3697
|
},
|
|
3701
3698
|
onBlur: (I) => {
|
|
3702
|
-
m(!1),
|
|
3699
|
+
m(!1), b == null || b(I);
|
|
3703
3700
|
},
|
|
3704
3701
|
disabled: r,
|
|
3705
|
-
type:
|
|
3702
|
+
type: y && !g ? y : "text"
|
|
3706
3703
|
})
|
|
3707
3704
|
),
|
|
3708
3705
|
h && Kr(_, r),
|
|
3709
|
-
|
|
3706
|
+
y === "password" && /* @__PURE__ */ e.createElement(
|
|
3710
3707
|
W,
|
|
3711
3708
|
{
|
|
3712
3709
|
disabled: r,
|
|
@@ -4016,12 +4013,12 @@ const li = (t) => {
|
|
|
4016
4013
|
[Tt[`${Dt}--disabled`]]: l
|
|
4017
4014
|
},
|
|
4018
4015
|
t
|
|
4019
|
-
), f = (h) => s(String(h)),
|
|
4016
|
+
), f = (h) => s(String(h)), y = (h) => _ !== void 0 && h > _ ? _ : o !== void 0 && h < o ? o : h, v = (h) => {
|
|
4020
4017
|
const N = parseInt(r, 10) + h;
|
|
4021
|
-
return f(
|
|
4022
|
-
},
|
|
4023
|
-
h.key === se.arrowDown && (h.preventDefault(),
|
|
4024
|
-
},
|
|
4018
|
+
return f(y(N));
|
|
4019
|
+
}, b = (h) => {
|
|
4020
|
+
h.key === se.arrowDown && (h.preventDefault(), v(-1)), h.key === se.arrowUp && (h.preventDefault(), v(1));
|
|
4021
|
+
}, E = (h, N) => N !== void 0 && parseInt(h, 10) === N, w = (h) => {
|
|
4025
4022
|
h.preventDefault(), h.stopPropagation();
|
|
4026
4023
|
const N = h.currentTarget.value.replace(
|
|
4027
4024
|
/((?!([-]|([-]?\d+))).)/,
|
|
@@ -4030,13 +4027,13 @@ const li = (t) => {
|
|
|
4030
4027
|
if (N === "" || N === "-")
|
|
4031
4028
|
return f(N);
|
|
4032
4029
|
const I = parseInt(N, 10);
|
|
4033
|
-
return f(
|
|
4030
|
+
return f(y(I));
|
|
4034
4031
|
}, C = () => {
|
|
4035
4032
|
var h;
|
|
4036
|
-
return (h = m.current) == null || h.focus(),
|
|
4033
|
+
return (h = m.current) == null || h.focus(), v(1);
|
|
4037
4034
|
}, $ = () => {
|
|
4038
4035
|
var h;
|
|
4039
|
-
return (h = m.current) == null || h.focus(),
|
|
4036
|
+
return (h = m.current) == null || h.focus(), v(-1);
|
|
4040
4037
|
};
|
|
4041
4038
|
return /* @__PURE__ */ e.createElement("div", { className: g, style: c }, /* @__PURE__ */ e.createElement(
|
|
4042
4039
|
"input",
|
|
@@ -4047,7 +4044,7 @@ const li = (t) => {
|
|
|
4047
4044
|
value: r,
|
|
4048
4045
|
disabled: l,
|
|
4049
4046
|
onChange: w,
|
|
4050
|
-
onKeyDown:
|
|
4047
|
+
onKeyDown: b,
|
|
4051
4048
|
min: o,
|
|
4052
4049
|
max: _
|
|
4053
4050
|
})
|
|
@@ -4055,7 +4052,7 @@ const li = (t) => {
|
|
|
4055
4052
|
"button",
|
|
4056
4053
|
{
|
|
4057
4054
|
tabIndex: -1,
|
|
4058
|
-
disabled: l ||
|
|
4055
|
+
disabled: l || E(r, _),
|
|
4059
4056
|
onClick: C,
|
|
4060
4057
|
"aria-label": "Increment value",
|
|
4061
4058
|
className: Tt[`${Dt}__increment`],
|
|
@@ -4065,7 +4062,7 @@ const li = (t) => {
|
|
|
4065
4062
|
S,
|
|
4066
4063
|
{
|
|
4067
4064
|
source: Ga,
|
|
4068
|
-
disabled: l ||
|
|
4065
|
+
disabled: l || E(r, _),
|
|
4069
4066
|
kind: "primary"
|
|
4070
4067
|
}
|
|
4071
4068
|
)
|
|
@@ -4073,7 +4070,7 @@ const li = (t) => {
|
|
|
4073
4070
|
"button",
|
|
4074
4071
|
{
|
|
4075
4072
|
tabIndex: -1,
|
|
4076
|
-
disabled: l ||
|
|
4073
|
+
disabled: l || E(r, o),
|
|
4077
4074
|
"aria-label": "Decrement value",
|
|
4078
4075
|
className: Tt[`${Dt}__decrement`],
|
|
4079
4076
|
onClick: $,
|
|
@@ -4084,7 +4081,7 @@ const li = (t) => {
|
|
|
4084
4081
|
{
|
|
4085
4082
|
source: Ot,
|
|
4086
4083
|
kind: "primary",
|
|
4087
|
-
disabled: l ||
|
|
4084
|
+
disabled: l || E(r, o)
|
|
4088
4085
|
}
|
|
4089
4086
|
)
|
|
4090
4087
|
)));
|
|
@@ -4120,12 +4117,12 @@ const li = (t) => {
|
|
|
4120
4117
|
}, [a]), e.useEffect(() => {
|
|
4121
4118
|
const g = !!window.ResizeObserver;
|
|
4122
4119
|
if (i.current && g) {
|
|
4123
|
-
const f = new ResizeObserver((
|
|
4124
|
-
const
|
|
4125
|
-
if (!
|
|
4120
|
+
const f = new ResizeObserver((y) => {
|
|
4121
|
+
const v = y[0];
|
|
4122
|
+
if (!v)
|
|
4126
4123
|
return;
|
|
4127
|
-
const
|
|
4128
|
-
m.current !==
|
|
4124
|
+
const b = v.contentRect.height + en;
|
|
4125
|
+
m.current !== b && (p(b), m.current = b);
|
|
4129
4126
|
});
|
|
4130
4127
|
return f.observe(i.current), () => f.disconnect();
|
|
4131
4128
|
}
|
|
@@ -4190,7 +4187,7 @@ const li = (t) => {
|
|
|
4190
4187
|
!a && /* @__PURE__ */ e.createElement("div", { className: le[`${ne}__chevron`] }, /* @__PURE__ */ e.createElement(S, { source: Oa }))
|
|
4191
4188
|
)
|
|
4192
4189
|
);
|
|
4193
|
-
},
|
|
4190
|
+
}, j = {
|
|
4194
4191
|
"onboarding-checklist": "lc-OnboardingChecklist-module__onboarding-checklist___xwJSs",
|
|
4195
4192
|
"onboarding-checklist--complete": "lc-OnboardingChecklist-module__onboarding-checklist--complete___7guKi",
|
|
4196
4193
|
"onboarding-checklist__complete": "lc-OnboardingChecklist-module__onboarding-checklist__complete___MWabe",
|
|
@@ -4207,7 +4204,7 @@ const li = (t) => {
|
|
|
4207
4204
|
"onboarding-checklist__button": "lc-OnboardingChecklist-module__onboarding-checklist__button___Gnl9l",
|
|
4208
4205
|
"onboarding-checklist__button__icon": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon___oW59S",
|
|
4209
4206
|
"onboarding-checklist__button__icon--open": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon--open___HrIjs"
|
|
4210
|
-
},
|
|
4207
|
+
}, Q = "onboarding-checklist", ki = ({
|
|
4211
4208
|
activeItemId: t,
|
|
4212
4209
|
completedItemsIds: a,
|
|
4213
4210
|
title: r,
|
|
@@ -4220,14 +4217,14 @@ const li = (t) => {
|
|
|
4220
4217
|
className: i
|
|
4221
4218
|
}) => {
|
|
4222
4219
|
var w;
|
|
4223
|
-
const [d, p] = e.useState(c), [m, g] = e.useState(!c), [f,
|
|
4220
|
+
const [d, p] = e.useState(c), [m, g] = e.useState(!c), [f, y] = e.useState(void 0), v = e.useRef(null), b = s.height || 96, E = () => {
|
|
4224
4221
|
g((C) => !C);
|
|
4225
4222
|
};
|
|
4226
4223
|
return e.useEffect(() => {
|
|
4227
|
-
const C = s.delay || 1500, $ =
|
|
4224
|
+
const C = s.delay || 1500, $ = v.current;
|
|
4228
4225
|
if (c && $) {
|
|
4229
4226
|
const h = $.offsetHeight;
|
|
4230
|
-
|
|
4227
|
+
y(h);
|
|
4231
4228
|
const N = setTimeout(() => {
|
|
4232
4229
|
p(!0), g(!1);
|
|
4233
4230
|
}, C);
|
|
@@ -4238,33 +4235,33 @@ const li = (t) => {
|
|
|
4238
4235
|
}, [c]), /* @__PURE__ */ e.createElement(
|
|
4239
4236
|
"div",
|
|
4240
4237
|
{
|
|
4241
|
-
ref:
|
|
4238
|
+
ref: v,
|
|
4242
4239
|
className: u(
|
|
4243
|
-
|
|
4240
|
+
j[Q],
|
|
4244
4241
|
{
|
|
4245
|
-
[
|
|
4242
|
+
[j[`${Q}--complete`]]: d && !m
|
|
4246
4243
|
},
|
|
4247
4244
|
i
|
|
4248
4245
|
),
|
|
4249
4246
|
style: {
|
|
4250
|
-
height: !d || m ? f :
|
|
4247
|
+
height: !d || m ? f : b
|
|
4251
4248
|
}
|
|
4252
4249
|
},
|
|
4253
|
-
m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className:
|
|
4250
|
+
m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: j[`${Q}__column`] }, /* @__PURE__ */ e.createElement("div", { className: j[`${Q}__header`] }, _ && /* @__PURE__ */ e.createElement(
|
|
4254
4251
|
x,
|
|
4255
4252
|
{
|
|
4256
4253
|
size: "lg",
|
|
4257
|
-
className:
|
|
4254
|
+
className: j[`${Q}__header__label`]
|
|
4258
4255
|
},
|
|
4259
4256
|
_
|
|
4260
4257
|
), /* @__PURE__ */ e.createElement(
|
|
4261
4258
|
_e,
|
|
4262
4259
|
{
|
|
4263
4260
|
size: "lg",
|
|
4264
|
-
className:
|
|
4261
|
+
className: j[`${Q}__header__title`]
|
|
4265
4262
|
},
|
|
4266
4263
|
r
|
|
4267
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
4264
|
+
)), /* @__PURE__ */ e.createElement("div", { className: j[`${Q}__checklist`] }, o.map((C, $) => /* @__PURE__ */ e.createElement(
|
|
4268
4265
|
tn,
|
|
4269
4266
|
{
|
|
4270
4267
|
key: $,
|
|
@@ -4281,33 +4278,33 @@ const li = (t) => {
|
|
|
4281
4278
|
"div",
|
|
4282
4279
|
{
|
|
4283
4280
|
className: u(
|
|
4284
|
-
|
|
4285
|
-
|
|
4281
|
+
j[`${Q}__column`],
|
|
4282
|
+
j[`${Q}__column--right`],
|
|
4286
4283
|
n
|
|
4287
4284
|
)
|
|
4288
4285
|
},
|
|
4289
|
-
!c && /* @__PURE__ */ e.createElement("div", { className:
|
|
4290
|
-
c && /* @__PURE__ */ e.createElement("div", { className:
|
|
4286
|
+
!c && /* @__PURE__ */ e.createElement("div", { className: j[`${Q}__placeholder`] }, (w = o.find((C) => C.id === t)) == null ? void 0 : w.placeholder),
|
|
4287
|
+
c && /* @__PURE__ */ e.createElement("div", { className: j[`${Q}__placeholder`] }, s.placeholder)
|
|
4291
4288
|
)),
|
|
4292
|
-
!m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className:
|
|
4289
|
+
!m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: j[`${Q}__complete`] }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
4293
4290
|
S,
|
|
4294
4291
|
{
|
|
4295
4292
|
size: "large",
|
|
4296
|
-
className:
|
|
4293
|
+
className: j[`${Q}__complete__icon`],
|
|
4297
4294
|
source: vr
|
|
4298
4295
|
}
|
|
4299
4296
|
)), /* @__PURE__ */ e.createElement("div", null, (s == null ? void 0 : s.greetingText) && /* @__PURE__ */ e.createElement(
|
|
4300
4297
|
x,
|
|
4301
4298
|
{
|
|
4302
4299
|
size: "lg",
|
|
4303
|
-
className:
|
|
4300
|
+
className: j[`${Q}__complete__label`]
|
|
4304
4301
|
},
|
|
4305
4302
|
s.greetingText
|
|
4306
4303
|
), /* @__PURE__ */ e.createElement(
|
|
4307
4304
|
_e,
|
|
4308
4305
|
{
|
|
4309
4306
|
size: "sm",
|
|
4310
|
-
className:
|
|
4307
|
+
className: j[`${Q}__complete__title`]
|
|
4311
4308
|
},
|
|
4312
4309
|
s.title
|
|
4313
4310
|
)))),
|
|
@@ -4320,13 +4317,13 @@ const li = (t) => {
|
|
|
4320
4317
|
{
|
|
4321
4318
|
source: Ot,
|
|
4322
4319
|
className: u(
|
|
4323
|
-
|
|
4324
|
-
m &&
|
|
4320
|
+
j[`${Q}__button__icon`],
|
|
4321
|
+
m && j[`${Q}__button__icon--open`]
|
|
4325
4322
|
)
|
|
4326
4323
|
}
|
|
4327
4324
|
),
|
|
4328
|
-
className:
|
|
4329
|
-
onClick:
|
|
4325
|
+
className: j[`${Q}__button`],
|
|
4326
|
+
onClick: E,
|
|
4330
4327
|
"aria-expanded": m
|
|
4331
4328
|
}
|
|
4332
4329
|
)
|
|
@@ -4478,13 +4475,13 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4478
4475
|
emptyStateText: m = "No results found",
|
|
4479
4476
|
pickerType: g = "single",
|
|
4480
4477
|
listClassName: f,
|
|
4481
|
-
virtuosoProps:
|
|
4478
|
+
virtuosoProps: y
|
|
4482
4479
|
}) => {
|
|
4483
|
-
const [
|
|
4480
|
+
const [v, b] = e.useState(0), E = o.length, w = e.useCallback(
|
|
4484
4481
|
($) => {
|
|
4485
|
-
$ !==
|
|
4482
|
+
$ !== v && ($ < _ ? b($ + (E - 1) * an) : b(_));
|
|
4486
4483
|
},
|
|
4487
|
-
[
|
|
4484
|
+
[E]
|
|
4488
4485
|
);
|
|
4489
4486
|
if (At(() => {
|
|
4490
4487
|
c.current = new Array(o.length);
|
|
@@ -4532,11 +4529,11 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4532
4529
|
oo,
|
|
4533
4530
|
B(k({
|
|
4534
4531
|
totalListHeightChanged: w,
|
|
4535
|
-
style: { height: `${
|
|
4532
|
+
style: { height: `${v}px`, maxHeight: _ },
|
|
4536
4533
|
totalCount: o.length,
|
|
4537
4534
|
data: o,
|
|
4538
4535
|
increaseViewportBy: 200
|
|
4539
|
-
},
|
|
4536
|
+
}, y), {
|
|
4540
4537
|
itemContent: ($, h) => /* @__PURE__ */ e.createElement(
|
|
4541
4538
|
ln,
|
|
4542
4539
|
{
|
|
@@ -4547,7 +4544,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4547
4544
|
isSelected: C(h.key),
|
|
4548
4545
|
onSelect: i,
|
|
4549
4546
|
item: h,
|
|
4550
|
-
numberOfItems:
|
|
4547
|
+
numberOfItems: E
|
|
4551
4548
|
}
|
|
4552
4549
|
)
|
|
4553
4550
|
})
|
|
@@ -4596,8 +4593,8 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4596
4593
|
c && fe[`${ce}--disabled`],
|
|
4597
4594
|
i && fe[`${ce}--focused`],
|
|
4598
4595
|
d && fe[`${ce}--error`]
|
|
4599
|
-
),
|
|
4600
|
-
|
|
4596
|
+
), y = !n && l && !c && !s, v = (b) => {
|
|
4597
|
+
b.stopPropagation(), p();
|
|
4601
4598
|
};
|
|
4602
4599
|
return e.useEffect(() => {
|
|
4603
4600
|
i || g(!1);
|
|
@@ -4635,12 +4632,12 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4635
4632
|
fe[`${ce}__controls--${_}`]
|
|
4636
4633
|
)
|
|
4637
4634
|
},
|
|
4638
|
-
|
|
4635
|
+
y && /* @__PURE__ */ e.createElement(
|
|
4639
4636
|
"div",
|
|
4640
4637
|
{
|
|
4641
4638
|
"data-testid": `${ce}__clear-icon`,
|
|
4642
4639
|
className: fe[`${ce}__clear-icon`],
|
|
4643
|
-
onClick:
|
|
4640
|
+
onClick: v
|
|
4644
4641
|
},
|
|
4645
4642
|
/* @__PURE__ */ e.createElement(S, { kind: "primary", size: "small", source: Be })
|
|
4646
4643
|
),
|
|
@@ -4689,8 +4686,8 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4689
4686
|
"tag__remove--hover": "lc-Tag-module__tag__remove--hover___2ROEU",
|
|
4690
4687
|
tag__node: mn,
|
|
4691
4688
|
tag__content: pn
|
|
4692
|
-
}, Ce = "tag", gn = (t) => t ? yr(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", h_ = (
|
|
4693
|
-
var
|
|
4689
|
+
}, Ce = "tag", gn = (t) => t ? yr(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", h_ = (y) => {
|
|
4690
|
+
var v = y, {
|
|
4694
4691
|
className: t = "",
|
|
4695
4692
|
children: a,
|
|
4696
4693
|
dismissible: r = !1,
|
|
@@ -4705,7 +4702,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4705
4702
|
customColor: p,
|
|
4706
4703
|
iconOnly: m = !1,
|
|
4707
4704
|
value: g
|
|
4708
|
-
} =
|
|
4705
|
+
} = v, f = D(v, [
|
|
4709
4706
|
"className",
|
|
4710
4707
|
"children",
|
|
4711
4708
|
"dismissible",
|
|
@@ -4721,7 +4718,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4721
4718
|
"iconOnly",
|
|
4722
4719
|
"value"
|
|
4723
4720
|
]);
|
|
4724
|
-
const
|
|
4721
|
+
const b = _ || c && m, E = u(
|
|
4725
4722
|
ye[Ce],
|
|
4726
4723
|
t,
|
|
4727
4724
|
ye[`${Ce}--${l}`],
|
|
@@ -4730,7 +4727,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4730
4727
|
[ye[`${Ce}--outline`]]: s,
|
|
4731
4728
|
[ye[`${Ce}--${gn(p)}`]]: !!p,
|
|
4732
4729
|
[ye[`${Ce}--icon-only`]]: m,
|
|
4733
|
-
[ye[`${Ce}--dismissible-on-hover`]]:
|
|
4730
|
+
[ye[`${Ce}--dismissible-on-hover`]]: b
|
|
4734
4731
|
}
|
|
4735
4732
|
), w = l === "small" ? "small" : "medium", C = l === "small" ? "sm" : "md", $ = () => p ? s ? {
|
|
4736
4733
|
style: {
|
|
@@ -4745,7 +4742,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4745
4742
|
return /* @__PURE__ */ e.createElement(
|
|
4746
4743
|
x,
|
|
4747
4744
|
B(k(k({
|
|
4748
|
-
className:
|
|
4745
|
+
className: E
|
|
4749
4746
|
}, f), $()), {
|
|
4750
4747
|
as: "div",
|
|
4751
4748
|
size: C
|
|
@@ -4776,7 +4773,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4776
4773
|
role: "button",
|
|
4777
4774
|
"aria-label": "Remove tag",
|
|
4778
4775
|
className: u(ye[`${Ce}__remove`], {
|
|
4779
|
-
[ye[`${Ce}__remove--hover`]]:
|
|
4776
|
+
[ye[`${Ce}__remove--hover`]]: b
|
|
4780
4777
|
})
|
|
4781
4778
|
},
|
|
4782
4779
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4825,15 +4822,15 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4825
4822
|
virtualItemRef: g,
|
|
4826
4823
|
isTriggerFocused: f
|
|
4827
4824
|
}) => {
|
|
4828
|
-
const
|
|
4825
|
+
const y = t && !a, v = e.useRef(null);
|
|
4829
4826
|
e.useEffect(() => {
|
|
4830
|
-
n && (d(""),
|
|
4827
|
+
n && (d(""), v.current && (v.current.value = "", v.current.focus()));
|
|
4831
4828
|
}, [o, n]);
|
|
4832
|
-
const
|
|
4829
|
+
const b = (h) => {
|
|
4833
4830
|
h.key === "Backspace" && o && o.length > 0 && (h.preventDefault(), l === "multi" ? s(o[o.length - 1].key) : p()), h.key === "Delete" && (h.preventDefault(), p());
|
|
4834
4831
|
};
|
|
4835
|
-
e.useEffect(() => (!t && f ? document.addEventListener("keydown",
|
|
4836
|
-
const
|
|
4832
|
+
e.useEffect(() => (!t && f ? document.addEventListener("keydown", b) : document.removeEventListener("keydown", b), () => document.removeEventListener("keydown", b)), [t, o, f]);
|
|
4833
|
+
const E = (h) => l === "single" && t && !a ? null : h != null && h.customElement ? /* @__PURE__ */ e.createElement("div", { className: be[`${he}__item`] }, h.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: be[`${he}__item`] }, h.icon && /* @__PURE__ */ e.createElement(
|
|
4837
4834
|
S,
|
|
4838
4835
|
{
|
|
4839
4836
|
source: h.icon,
|
|
@@ -4852,7 +4849,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4852
4849
|
}, $ = () => /* @__PURE__ */ e.createElement(
|
|
4853
4850
|
"input",
|
|
4854
4851
|
{
|
|
4855
|
-
ref:
|
|
4852
|
+
ref: v,
|
|
4856
4853
|
className: u(
|
|
4857
4854
|
be[`${he}__input`],
|
|
4858
4855
|
be[`${he}__input--${c}`]
|
|
@@ -4864,7 +4861,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4864
4861
|
value: m
|
|
4865
4862
|
}
|
|
4866
4863
|
);
|
|
4867
|
-
return !o || o.length === 0 ?
|
|
4864
|
+
return !o || o.length === 0 ? y ? $() : /* @__PURE__ */ e.createElement(
|
|
4868
4865
|
"div",
|
|
4869
4866
|
{
|
|
4870
4867
|
className: u({
|
|
@@ -4880,7 +4877,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4880
4877
|
[be[`${he}--single`]]: l === "single"
|
|
4881
4878
|
})
|
|
4882
4879
|
},
|
|
4883
|
-
/* @__PURE__ */ e.createElement("div", { className: be[`${he}__item-container`] }, l === "single" ?
|
|
4880
|
+
/* @__PURE__ */ e.createElement("div", { className: be[`${he}__item-container`] }, l === "single" ? E(o[0]) : o.map((h) => /* @__PURE__ */ e.createElement(
|
|
4884
4881
|
h_,
|
|
4885
4882
|
{
|
|
4886
4883
|
key: h.key,
|
|
@@ -4893,9 +4890,9 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4893
4890
|
N.stopPropagation(), s(h.key);
|
|
4894
4891
|
}
|
|
4895
4892
|
},
|
|
4896
|
-
|
|
4893
|
+
E(h)
|
|
4897
4894
|
))),
|
|
4898
|
-
|
|
4895
|
+
y && $()
|
|
4899
4896
|
);
|
|
4900
4897
|
}, bn = 10, hn = ({
|
|
4901
4898
|
disabled: t,
|
|
@@ -4910,9 +4907,9 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4910
4907
|
onVisibilityChange: i,
|
|
4911
4908
|
searchPhrase: d
|
|
4912
4909
|
}) => {
|
|
4913
|
-
const p = sa(), [m, g] = e.useState(!1), [f,
|
|
4910
|
+
const p = sa(), [m, g] = e.useState(!1), [f, y] = e.useState(null), [v, b] = e.useState(o), E = e.useRef([]), w = e.useRef(null);
|
|
4914
4911
|
e.useEffect(() => {
|
|
4915
|
-
w.current = null,
|
|
4912
|
+
w.current = null, y(null);
|
|
4916
4913
|
}, [d]);
|
|
4917
4914
|
const { refs: C, floatingStyles: $, context: h, isPositioned: N } = da({
|
|
4918
4915
|
nodeId: p,
|
|
@@ -4926,11 +4923,11 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4926
4923
|
Ha({ padding: 10 }),
|
|
4927
4924
|
Er(),
|
|
4928
4925
|
r_({
|
|
4929
|
-
apply({ availableHeight:
|
|
4926
|
+
apply({ availableHeight: U, rects: de, elements: we }) {
|
|
4930
4927
|
o_.flushSync(() => {
|
|
4931
|
-
|
|
4928
|
+
b(
|
|
4932
4929
|
Math.max(
|
|
4933
|
-
Math.min(o,
|
|
4930
|
+
Math.min(o, U),
|
|
4934
4931
|
_
|
|
4935
4932
|
)
|
|
4936
4933
|
);
|
|
@@ -4945,24 +4942,24 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4945
4942
|
enabled: !t,
|
|
4946
4943
|
keyboardHandlers: !1,
|
|
4947
4944
|
toggle: !1
|
|
4948
|
-
}, c)),
|
|
4945
|
+
}, c)), O = fa(h, { role: "listbox" }), G = ga(h, n), T = ao(h, {
|
|
4949
4946
|
enabled: a.length > 0 && !t,
|
|
4950
|
-
listRef:
|
|
4947
|
+
listRef: E,
|
|
4951
4948
|
activeIndex: f,
|
|
4952
|
-
onNavigate:
|
|
4949
|
+
onNavigate: y,
|
|
4953
4950
|
virtual: !0,
|
|
4954
4951
|
virtualItemRef: w,
|
|
4955
4952
|
disabledIndices: on(
|
|
4956
4953
|
a,
|
|
4957
|
-
(
|
|
4954
|
+
(U) => !!U.disabled || !!U.groupHeader
|
|
4958
4955
|
)
|
|
4959
|
-
}), { getReferenceProps:
|
|
4960
|
-
[I, G,
|
|
4956
|
+
}), { getReferenceProps: L, getFloatingProps: V, getItemProps: M } = ba(
|
|
4957
|
+
[I, G, O, T]
|
|
4961
4958
|
);
|
|
4962
4959
|
return !s && m && g(!1), {
|
|
4963
|
-
getReferenceProps:
|
|
4964
|
-
getFloatingProps:
|
|
4965
|
-
getItemProps:
|
|
4960
|
+
getReferenceProps: L,
|
|
4961
|
+
getFloatingProps: V,
|
|
4962
|
+
getItemProps: M,
|
|
4966
4963
|
setReference: C.setReference,
|
|
4967
4964
|
floatingStyles: $,
|
|
4968
4965
|
isPositioned: N,
|
|
@@ -4970,9 +4967,9 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4970
4967
|
nodeId: p,
|
|
4971
4968
|
setFloating: C.setFloating,
|
|
4972
4969
|
activeIndex: f,
|
|
4973
|
-
listElementsRef:
|
|
4970
|
+
listElementsRef: E,
|
|
4974
4971
|
virtualItemRef: w,
|
|
4975
|
-
maxHeight:
|
|
4972
|
+
maxHeight: v,
|
|
4976
4973
|
pointer: m,
|
|
4977
4974
|
setPointer: g
|
|
4978
4975
|
};
|
|
@@ -4987,37 +4984,37 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
4987
4984
|
const [n, c] = e.useState(
|
|
4988
4985
|
() => (t == null ? void 0 : t.map(lr)) || []
|
|
4989
4986
|
), s = t !== void 0, i = s ? (t == null ? void 0 : t.map(lr)) || [] : n, [d, p] = e.useState(""), m = e.useMemo(() => {
|
|
4990
|
-
const
|
|
4991
|
-
let
|
|
4992
|
-
return d && (
|
|
4987
|
+
const b = r === "multi" && _;
|
|
4988
|
+
let E = a;
|
|
4989
|
+
return d && (E = E.filter((w) => {
|
|
4993
4990
|
var N;
|
|
4994
4991
|
if (w.groupHeader)
|
|
4995
4992
|
return !1;
|
|
4996
4993
|
const C = d.toLowerCase(), $ = w.name.toLowerCase(), h = (N = w.secondaryText) == null ? void 0 : N.toLowerCase();
|
|
4997
4994
|
return $.includes(C) || (h == null ? void 0 : h.includes(C));
|
|
4998
|
-
})),
|
|
4995
|
+
})), b && E.length > 1 && (E = [
|
|
4999
4996
|
{
|
|
5000
4997
|
key: Mt,
|
|
5001
4998
|
name: _
|
|
5002
4999
|
},
|
|
5003
|
-
...
|
|
5004
|
-
]),
|
|
5005
|
-
}, [d, a, r, _]), g = (
|
|
5006
|
-
const
|
|
5007
|
-
if (!((!
|
|
5000
|
+
...E
|
|
5001
|
+
]), E;
|
|
5002
|
+
}, [d, a, r, _]), g = (b) => {
|
|
5003
|
+
const E = a.find((w) => w.key === b);
|
|
5004
|
+
if (!((!E || E.disabled) && b !== Mt))
|
|
5008
5005
|
if (r === "single")
|
|
5009
|
-
c(() => (
|
|
5010
|
-
else if (
|
|
5006
|
+
c(() => (E && o([E]), [b])), l(!1);
|
|
5007
|
+
else if (b === Mt)
|
|
5011
5008
|
i.length === br(a).length ? c(() => (o(null), [])) : c(() => {
|
|
5012
5009
|
const w = br(a);
|
|
5013
5010
|
return o(w), w.map(({ key: C }) => C);
|
|
5014
5011
|
});
|
|
5015
5012
|
else if (s) {
|
|
5016
|
-
const w = (t == null ? void 0 : t.map(lr)) || [], C = Xr(w,
|
|
5013
|
+
const w = (t == null ? void 0 : t.map(lr)) || [], C = Xr(w, b);
|
|
5017
5014
|
o(a.filter(({ key: $ }) => C.includes($)));
|
|
5018
5015
|
} else
|
|
5019
5016
|
c((w) => {
|
|
5020
|
-
const C = Xr(w,
|
|
5017
|
+
const C = Xr(w, b);
|
|
5021
5018
|
return o(a.filter(({ key: $ }) => C.includes($))), C;
|
|
5022
5019
|
});
|
|
5023
5020
|
};
|
|
@@ -5026,16 +5023,16 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5026
5023
|
items: m,
|
|
5027
5024
|
searchPhrase: d,
|
|
5028
5025
|
handleSelect: g,
|
|
5029
|
-
handleOnFilter: (
|
|
5030
|
-
handleItemRemove: (
|
|
5026
|
+
handleOnFilter: (b) => p(b),
|
|
5027
|
+
handleItemRemove: (b) => g(b),
|
|
5031
5028
|
handleClear: () => {
|
|
5032
5029
|
!s && c([]), o(null), p(""), l(!1);
|
|
5033
5030
|
}
|
|
5034
5031
|
};
|
|
5035
5032
|
}, kn = {
|
|
5036
5033
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___2EDne"
|
|
5037
|
-
}, Ei = (
|
|
5038
|
-
var
|
|
5034
|
+
}, Ei = (V) => {
|
|
5035
|
+
var M = V, {
|
|
5039
5036
|
id: t,
|
|
5040
5037
|
className: a,
|
|
5041
5038
|
listClassName: r,
|
|
@@ -5051,20 +5048,20 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5051
5048
|
noSearchResultText: m = "No results found",
|
|
5052
5049
|
selectAllOptionText: g,
|
|
5053
5050
|
type: f = "single",
|
|
5054
|
-
searchDisabled:
|
|
5055
|
-
hideClearButton:
|
|
5056
|
-
isVisible:
|
|
5057
|
-
onOpen:
|
|
5051
|
+
searchDisabled: y = !1,
|
|
5052
|
+
hideClearButton: v,
|
|
5053
|
+
isVisible: b,
|
|
5054
|
+
onOpen: E,
|
|
5058
5055
|
onClose: w,
|
|
5059
5056
|
openedOnInit: C = !1,
|
|
5060
5057
|
clearSearchAfterSelection: $ = !0,
|
|
5061
5058
|
onSelect: h,
|
|
5062
5059
|
placement: N,
|
|
5063
5060
|
floatingStrategy: I,
|
|
5064
|
-
useDismissHookProps:
|
|
5061
|
+
useDismissHookProps: O,
|
|
5065
5062
|
useClickHookProps: G,
|
|
5066
5063
|
virtuosoProps: T
|
|
5067
|
-
} =
|
|
5064
|
+
} = M, L = D(M, [
|
|
5068
5065
|
"id",
|
|
5069
5066
|
"className",
|
|
5070
5067
|
"listClassName",
|
|
@@ -5094,8 +5091,8 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5094
5091
|
"useClickHookProps",
|
|
5095
5092
|
"virtuosoProps"
|
|
5096
5093
|
]);
|
|
5097
|
-
const [
|
|
5098
|
-
va ? !$e && (
|
|
5094
|
+
const [U, de] = e.useState(C), [we, Ke] = e.useState(!1), Ue = b !== void 0, $e = Ue ? b : U, Ct = (va, Gt) => {
|
|
5095
|
+
va ? !$e && (E == null || E(Gt)) : $e && (w == null || w(Gt)), !Ue && de(va);
|
|
5099
5096
|
}, {
|
|
5100
5097
|
selectedKeys: pt,
|
|
5101
5098
|
items: wt,
|
|
@@ -5113,7 +5110,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5113
5110
|
setOpen: Ct
|
|
5114
5111
|
}), {
|
|
5115
5112
|
context: A,
|
|
5116
|
-
nodeId:
|
|
5113
|
+
nodeId: K,
|
|
5117
5114
|
getReferenceProps: ue,
|
|
5118
5115
|
setReference: Ye,
|
|
5119
5116
|
getFloatingProps: qe,
|
|
@@ -5134,7 +5131,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5134
5131
|
maxListHeight: o,
|
|
5135
5132
|
floatingStrategy: I,
|
|
5136
5133
|
useClickHookProps: G,
|
|
5137
|
-
useDismissHookProps:
|
|
5134
|
+
useDismissHookProps: O,
|
|
5138
5135
|
isOpen: $e,
|
|
5139
5136
|
onVisibilityChange: Ct,
|
|
5140
5137
|
searchPhrase: gt
|
|
@@ -5144,11 +5141,11 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5144
5141
|
{
|
|
5145
5142
|
getReferenceProps: ue,
|
|
5146
5143
|
setReference: Ye,
|
|
5147
|
-
testId:
|
|
5144
|
+
testId: L["data-testid"],
|
|
5148
5145
|
isItemSelected: pt.length > 0,
|
|
5149
5146
|
isOpen: $e,
|
|
5150
5147
|
onClear: ft,
|
|
5151
|
-
hideClearButton:
|
|
5148
|
+
hideClearButton: v,
|
|
5152
5149
|
isDisabled: l,
|
|
5153
5150
|
isError: n,
|
|
5154
5151
|
isRequired: p,
|
|
@@ -5160,7 +5157,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5160
5157
|
fn,
|
|
5161
5158
|
{
|
|
5162
5159
|
isOpen: $e,
|
|
5163
|
-
isSearchDisabled:
|
|
5160
|
+
isSearchDisabled: y,
|
|
5164
5161
|
isDisabled: l,
|
|
5165
5162
|
placeholder: d,
|
|
5166
5163
|
selectedItems: s,
|
|
@@ -5176,7 +5173,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5176
5173
|
isTriggerFocused: we
|
|
5177
5174
|
}
|
|
5178
5175
|
)
|
|
5179
|
-
), /* @__PURE__ */ e.createElement(ha, { id:
|
|
5176
|
+
), /* @__PURE__ */ e.createElement(ha, { id: K }, $e && /* @__PURE__ */ e.createElement(__, null, /* @__PURE__ */ e.createElement(
|
|
5180
5177
|
cn,
|
|
5181
5178
|
{
|
|
5182
5179
|
pickerType: f,
|
|
@@ -5216,41 +5213,41 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5216
5213
|
useClickHookProps: g,
|
|
5217
5214
|
floatingStrategy: f
|
|
5218
5215
|
}) => {
|
|
5219
|
-
const [
|
|
5220
|
-
Ke ? r == null || r(Ue) : a == null || a(Ue), !w &&
|
|
5221
|
-
}, { refs: I, context:
|
|
5222
|
-
nodeId:
|
|
5216
|
+
const [y, v] = e.useState(d), b = Ua(), E = sa(), w = i !== void 0, C = w ? i : y, $ = typeof _ == "string", h = typeof t == "function", N = (Ke, Ue) => {
|
|
5217
|
+
Ke ? r == null || r(Ue) : a == null || a(Ue), !w && v(Ke);
|
|
5218
|
+
}, { refs: I, context: O, floatingStyles: G } = da({
|
|
5219
|
+
nodeId: E,
|
|
5223
5220
|
open: C,
|
|
5224
5221
|
onOpenChange: N,
|
|
5225
5222
|
middleware: [ua(s), Ha(c), Er()],
|
|
5226
5223
|
placement: n,
|
|
5227
5224
|
strategy: f,
|
|
5228
5225
|
whileElementsMounted: ma
|
|
5229
|
-
}), T = pa(
|
|
5226
|
+
}), T = pa(O, g), L = ga(O, k({
|
|
5230
5227
|
escapeKey: p
|
|
5231
|
-
}, m)),
|
|
5228
|
+
}, m)), V = fa(O), { getReferenceProps: M, getFloatingProps: U } = ba([
|
|
5232
5229
|
T,
|
|
5233
|
-
|
|
5234
|
-
|
|
5230
|
+
L,
|
|
5231
|
+
V
|
|
5235
5232
|
]), de = u(yn.popover, o), we = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
5236
5233
|
"div",
|
|
5237
5234
|
B(k({
|
|
5238
5235
|
"data-testid": "popover-trigger-button",
|
|
5239
5236
|
ref: I.setReference
|
|
5240
|
-
},
|
|
5237
|
+
}, M()), {
|
|
5241
5238
|
className: l
|
|
5242
5239
|
}),
|
|
5243
5240
|
h ? t() : t
|
|
5244
|
-
), /* @__PURE__ */ e.createElement(ha, { id:
|
|
5241
|
+
), /* @__PURE__ */ e.createElement(ha, { id: E }, C && /* @__PURE__ */ e.createElement(mr, { context: O, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
5245
5242
|
"div",
|
|
5246
5243
|
k({
|
|
5247
5244
|
className: de,
|
|
5248
5245
|
ref: I.setFloating,
|
|
5249
5246
|
style: G
|
|
5250
|
-
},
|
|
5247
|
+
}, U()),
|
|
5251
5248
|
$ ? /* @__PURE__ */ e.createElement(x, { as: "div" }, _) : _
|
|
5252
5249
|
))));
|
|
5253
|
-
return
|
|
5250
|
+
return b === null ? /* @__PURE__ */ e.createElement(za, null, we) : we;
|
|
5254
5251
|
}, xe = {
|
|
5255
5252
|
"outer-border": "lc-ProductTile-module__outer-border___NLJhh",
|
|
5256
5253
|
"product-tile-wrapper": "lc-ProductTile-module__product-tile-wrapper___CtMW1",
|
|
@@ -5411,23 +5408,24 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5411
5408
|
openedOnInit: r = !1,
|
|
5412
5409
|
isVisible: _,
|
|
5413
5410
|
onOpen: o,
|
|
5414
|
-
onClose: l
|
|
5411
|
+
onClose: l,
|
|
5412
|
+
onSelect: n
|
|
5415
5413
|
}) => {
|
|
5416
|
-
const [
|
|
5414
|
+
const [c, s] = e.useState(r), [i, d] = I_(
|
|
5417
5415
|
!1
|
|
5418
|
-
),
|
|
5419
|
-
|
|
5420
|
-
}, { refs:
|
|
5421
|
-
nodeId:
|
|
5416
|
+
), p = Ua(), m = sa(), g = _ !== void 0, f = g ? _ : c, y = (M, U) => {
|
|
5417
|
+
M ? o == null || o(U) : l == null || l(U), !g && s(M);
|
|
5418
|
+
}, { refs: v, context: b, floatingStyles: E } = da({
|
|
5419
|
+
nodeId: m,
|
|
5422
5420
|
strategy: "fixed",
|
|
5423
5421
|
placement: "right-start",
|
|
5424
|
-
open:
|
|
5425
|
-
onOpenChange: (
|
|
5426
|
-
|
|
5422
|
+
open: f,
|
|
5423
|
+
onOpenChange: (M, U) => {
|
|
5424
|
+
d(!1), y(M, U);
|
|
5427
5425
|
},
|
|
5428
5426
|
middleware: [ua({ mainAxis: 5 })],
|
|
5429
5427
|
whileElementsMounted: ma
|
|
5430
|
-
}),
|
|
5428
|
+
}), w = pa(b), C = fa(b), $ = ga(b), { isMounted: h, styles: N } = kr(b, {
|
|
5431
5429
|
duration: 200,
|
|
5432
5430
|
common: {
|
|
5433
5431
|
transformOrigin: "left top"
|
|
@@ -5436,26 +5434,26 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5436
5434
|
opacity: 0,
|
|
5437
5435
|
transform: "scale(0.84) translateX(-22px)"
|
|
5438
5436
|
}
|
|
5439
|
-
}), { getReferenceProps:
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
]),
|
|
5444
|
-
(
|
|
5437
|
+
}), { getReferenceProps: I, getFloatingProps: O } = ba([
|
|
5438
|
+
w,
|
|
5439
|
+
$,
|
|
5440
|
+
C
|
|
5441
|
+
]), G = t.find(
|
|
5442
|
+
(M) => M.id === a
|
|
5445
5443
|
);
|
|
5446
|
-
if (!
|
|
5444
|
+
if (!G)
|
|
5447
5445
|
return null;
|
|
5448
|
-
const
|
|
5449
|
-
U === a &&
|
|
5450
|
-
},
|
|
5451
|
-
(
|
|
5446
|
+
const T = (M, U) => {
|
|
5447
|
+
U === a && M.preventDefault(), s(!1), n == null || n(U);
|
|
5448
|
+
}, L = t.reduce(
|
|
5449
|
+
(M, U) => M + (U.notificationCount || 0),
|
|
5452
5450
|
0
|
|
5453
|
-
),
|
|
5451
|
+
), V = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", k({ ref: v.setReference }, I()), /* @__PURE__ */ e.createElement(
|
|
5454
5452
|
Lt,
|
|
5455
5453
|
{
|
|
5456
|
-
isVisible:
|
|
5457
|
-
onOpen: () =>
|
|
5458
|
-
onClose: () =>
|
|
5454
|
+
isVisible: i,
|
|
5455
|
+
onOpen: () => d(!0),
|
|
5456
|
+
onClose: () => d(!1),
|
|
5459
5457
|
offsetCrossAxis: 2,
|
|
5460
5458
|
arrowOffsetY: 2,
|
|
5461
5459
|
offsetMainAxis: 10,
|
|
@@ -5466,27 +5464,27 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5466
5464
|
v_,
|
|
5467
5465
|
{
|
|
5468
5466
|
isMainProduct: !0,
|
|
5469
|
-
icon:
|
|
5470
|
-
iconColor:
|
|
5471
|
-
backgroundColors:
|
|
5472
|
-
notificationCount:
|
|
5467
|
+
icon: G.icon,
|
|
5468
|
+
iconColor: G.iconColor,
|
|
5469
|
+
backgroundColors: G.backgroundColors,
|
|
5470
|
+
notificationCount: L
|
|
5473
5471
|
}
|
|
5474
5472
|
)
|
|
5475
5473
|
},
|
|
5476
5474
|
"Switch product"
|
|
5477
|
-
)), /* @__PURE__ */ e.createElement(ha, { id:
|
|
5475
|
+
)), /* @__PURE__ */ e.createElement(ha, { id: m }, /* @__PURE__ */ e.createElement(
|
|
5478
5476
|
"div",
|
|
5479
5477
|
k({
|
|
5480
|
-
ref:
|
|
5481
|
-
style:
|
|
5482
|
-
},
|
|
5483
|
-
|
|
5478
|
+
ref: v.setFloating,
|
|
5479
|
+
style: E
|
|
5480
|
+
}, O()),
|
|
5481
|
+
h && /* @__PURE__ */ e.createElement("div", { className: ea[ta], style: N }, /* @__PURE__ */ e.createElement("div", { className: ea[`${ta}__content`] }, t.map((M) => /* @__PURE__ */ e.createElement(
|
|
5484
5482
|
Cn,
|
|
5485
5483
|
{
|
|
5486
|
-
key:
|
|
5487
|
-
isActive:
|
|
5488
|
-
product:
|
|
5489
|
-
onClick:
|
|
5484
|
+
key: M.id,
|
|
5485
|
+
isActive: M.id === a,
|
|
5486
|
+
product: M,
|
|
5487
|
+
onClick: T
|
|
5490
5488
|
}
|
|
5491
5489
|
))), /* @__PURE__ */ e.createElement("div", { className: ea[`${ta}__footer`] }, /* @__PURE__ */ e.createElement(
|
|
5492
5490
|
"a",
|
|
@@ -5506,11 +5504,11 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5506
5504
|
)
|
|
5507
5505
|
)))
|
|
5508
5506
|
)));
|
|
5509
|
-
return
|
|
5507
|
+
return p === null ? /* @__PURE__ */ e.createElement(za, null, V) : V;
|
|
5510
5508
|
}, wn = 'data:image/svg+xml,%3Csvg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cg clip-path="url(%23clip0_24854_8994)"%3E%3Crect width="40" height="40" fill="%230066FF"/%3E%3Cg filter="url(%23filter0_f_24854_8994)"%3E%3Cpath d="M32.6382 31.0816C41.9891 31.0816 49.5694 23.5012 49.5694 14.1504C49.5694 4.79953 41.9891 -2.78082 32.6382 -2.78082C23.2874 -2.78082 15.707 4.79953 15.707 14.1504C15.707 23.5012 23.2874 31.0816 32.6382 31.0816Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter1_f_24854_8994)"%3E%3Cpath d="M10.417 50.1292C19.7679 50.1292 27.3482 42.5488 27.3482 33.198C27.3482 23.8471 19.7679 16.2668 10.417 16.2668C1.0662 16.2668 -6.51416 23.8471 -6.51416 33.198C-6.51416 42.5488 1.0662 50.1292 10.417 50.1292Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter2_f_24854_8994)"%3E%3Cpath d="M9.35788 16.2667C15.2022 16.2667 19.9399 11.529 19.9399 5.68472C19.9399 -0.159555 15.2022 -4.89728 9.35788 -4.89728C3.5136 -4.89728 -1.22412 -0.159555 -1.22412 5.68472C-1.22412 11.529 3.5136 16.2667 9.35788 16.2667Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter3_f_24854_8994)"%3E%3Cpath d="M7.24274 18.3831C13.6714 18.3831 18.8829 13.1716 18.8829 6.74292C18.8829 0.314217 13.6714 -4.89728 7.24274 -4.89728C0.814034 -4.89728 -4.39746 0.314217 -4.39746 6.74292C-4.39746 13.1716 0.814034 18.3831 7.24274 18.3831Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter4_f_24854_8994)"%3E%3Cpath d="M8.29938 21.5577C14.7281 21.5577 19.9396 16.3462 19.9396 9.91748C19.9396 3.48878 14.7281 -1.72272 8.29938 -1.72272C1.87068 -1.72272 -3.34082 3.48878 -3.34082 9.91748C-3.34082 16.3462 1.87068 21.5577 8.29938 21.5577Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter5_f_24854_8994)"%3E%3Cpath d="M33.6973 45.8964C40.126 45.8964 45.3375 40.6849 45.3375 34.2562C45.3375 27.8275 40.126 22.616 33.6973 22.616C27.2686 22.616 22.0571 27.8275 22.0571 34.2562C22.0571 40.6849 27.2686 45.8964 33.6973 45.8964Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter6_f_24854_8994)"%3E%3Cpath d="M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter7_f_24854_8994)"%3E%3Cpath d="M29.4639 48.0128C35.8926 48.0128 41.1041 42.8013 41.1041 36.3726C41.1041 29.9439 35.8926 24.7324 29.4639 24.7324C23.0352 24.7324 17.8237 29.9439 17.8237 36.3726C17.8237 42.8013 23.0352 48.0128 29.4639 48.0128Z" fill="%23FFD001"/%3E%3C/g%3E%3Cg filter="url(%23filter8_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter9_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter10_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter11_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter12_f_24854_8994)"%3E%3Cpath d="M6.18299 39.5472C11.4428 39.5472 15.7068 35.2832 15.7068 30.0234C15.7068 24.7635 11.4428 20.4996 6.18299 20.4996C0.923135 20.4996 -3.34082 24.7635 -3.34082 30.0234C-3.34082 35.2832 0.923135 39.5472 6.18299 39.5472Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter13_f_24854_8994)"%3E%3Cpath d="M9.35898 38.489C12.8655 38.489 15.7082 35.6463 15.7082 32.1398C15.7082 28.6332 12.8655 25.7906 9.35898 25.7906C5.8524 25.7906 3.00977 28.6332 3.00977 32.1398C3.00977 35.6463 5.8524 38.489 9.35898 38.489Z" fill="%2373CE3B"/%3E%3C/g%3E%3Cg filter="url(%23filter14_f_24854_8994)"%3E%3Cpath d="M38.9871 31.0816C46.5846 31.0816 52.7437 24.9225 52.7437 17.325C52.7437 9.7274 46.5846 3.56836 38.9871 3.56836C31.3895 3.56836 25.2305 9.7274 25.2305 17.325C25.2305 24.9225 31.3895 31.0816 38.9871 31.0816Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter15_f_24854_8994)"%3E%3Cpath d="M38.9879 25.7905C45.4166 25.7905 50.6281 20.579 50.6281 14.1503C50.6281 7.72157 45.4166 2.51007 38.9879 2.51007C32.5592 2.51007 27.3477 7.72157 27.3477 14.1503C27.3477 20.579 32.5592 25.7905 38.9879 25.7905Z" fill="%23FF4205"/%3E%3C/g%3E%3Cg filter="url(%23filter16_f_24854_8994)"%3E%3Cpath d="M9.35868 21.5578C14.0341 21.5578 17.8243 17.7676 17.8243 13.0922C17.8243 8.41674 14.0341 4.62656 9.35868 4.62656C4.68325 4.62656 0.893066 8.41674 0.893066 13.0922C0.893066 17.7676 4.68325 21.5578 9.35868 21.5578Z" fill="%233750FF"/%3E%3C/g%3E%3Cg filter="url(%23filter17_f_24854_8994)"%3E%3Cpath d="M31.5797 18.3831C35.0862 18.3831 37.9289 15.5404 37.9289 12.0339C37.9289 8.5273 35.0862 5.68466 31.5797 5.68466C28.0731 5.68466 25.2305 8.5273 25.2305 12.0339C25.2305 15.5404 28.0731 18.3831 31.5797 18.3831Z" fill="%23FF2E00"/%3E%3C/g%3E%3Cg filter="url(%23filter18_f_24854_8994)"%3E%3Cpath d="M12.5312 14.1503C18.3755 14.1503 23.1132 9.41257 23.1132 3.5683C23.1132 -2.27598 18.3755 -7.0137 12.5312 -7.0137C6.68694 -7.0137 1.94922 -2.27598 1.94922 3.5683C1.94922 9.41257 6.68694 14.1503 12.5312 14.1503Z" fill="%233851FF"/%3E%3C/g%3E%3Cg filter="url(%23filter19_f_24854_8994)"%3E%3Cpath d="M28.4057 13.0921C34.25 13.0921 38.9877 8.35441 38.9877 2.51013C38.9877 -3.33415 34.25 -8.07187 28.4057 -8.07187C22.5615 -8.07187 17.8237 -3.33415 17.8237 2.51013C17.8237 8.35441 22.5615 13.0921 28.4057 13.0921Z" fill="%23F3354D"/%3E%3C/g%3E%3Cg filter="url(%23filter20_f_24854_8994)"%3E%3Cpath d="M33.6958 48.0128C39.54 48.0128 44.2778 43.275 44.2778 37.4308C44.2778 31.5865 39.54 26.8488 33.6958 26.8488C27.8515 26.8488 23.1138 31.5865 23.1138 37.4308C23.1138 43.275 27.8515 48.0128 33.6958 48.0128Z" fill="%23FFD101"/%3E%3C/g%3E%3Cg filter="url(%23filter21_f_24854_8994)"%3E%3Cpath d="M8.30173 43.78C14.146 43.78 18.8837 39.0422 18.8837 33.198C18.8837 27.3537 14.146 22.616 8.30173 22.616C2.45745 22.616 -2.28027 27.3537 -2.28027 33.198C-2.28027 39.0422 2.45745 43.78 8.30173 43.78Z" fill="%237FCF35"/%3E%3C/g%3E%3Cg filter="url(%23filter22_f_24854_8994)"%3E%3Cpath d="M6.18454 34.2562C12.0288 34.2562 16.7665 29.5184 16.7665 23.6742C16.7665 17.8299 12.0288 13.0922 6.18454 13.0922C0.340261 13.0922 -4.39746 17.8299 -4.39746 23.6742C-4.39746 29.5184 0.340261 34.2562 6.18454 34.2562Z" fill="%231D7DD0"/%3E%3C/g%3E%3C/g%3E%3Cdefs%3E%3Cfilter id="filter0_f_24854_8994" x="-8.29297" y="-26.7808" width="81.8623" height="81.8624" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter1_f_24854_8994" x="-30.5142" y="-7.73322" width="81.8623" height="81.8624" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter2_f_24854_8994" x="-25.2241" y="-28.8973" width="69.1641" height="69.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter3_f_24854_8994" x="-28.3975" y="-28.8973" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter4_f_24854_8994" x="-27.3408" y="-25.7227" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter5_f_24854_8994" x="-1.94287" y="-1.38403" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter6_f_24854_8994" x="-6.17627" y="0.732361" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter7_f_24854_8994" x="-6.17627" y="0.732361" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter8_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter9_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter10_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter11_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter12_f_24854_8994" x="-27.3408" y="-3.50043" width="67.0479" height="67.0476" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter13_f_24854_8994" x="-20.9902" y="1.79056" width="60.6982" height="60.6984" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter14_f_24854_8994" x="1.23047" y="-20.4316" width="75.5132" height="75.5132" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter15_f_24854_8994" x="3.34766" y="-21.4899" width="71.2803" height="71.2804" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter16_f_24854_8994" x="-23.1069" y="-19.3734" width="64.9312" height="64.9312" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter17_f_24854_8994" x="1.23047" y="-18.3153" width="60.6982" height="60.6984" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="12" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter18_f_24854_8994" x="-9.05078" y="-18.0137" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter19_f_24854_8994" x="6.82373" y="-19.0719" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter20_f_24854_8994" x="12.1138" y="15.8488" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter21_f_24854_8994" x="-13.2803" y="11.616" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3Cfilter id="filter22_f_24854_8994" x="-15.3975" y="2.09216" width="43.1641" height="43.164" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB"%3E%3CfeFlood flood-opacity="0" result="BackgroundImageFix"/%3E%3CfeBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/%3E%3CfeGaussianBlur stdDeviation="5.5" result="effect1_foregroundBlur_24854_8994"/%3E%3C/filter%3E%3CclipPath id="clip0_24854_8994"%3E%3Crect width="40" height="40" fill="white"/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A', $n = [
|
|
5511
5509
|
{
|
|
5512
5510
|
id: "livechat",
|
|
5513
|
-
name: "
|
|
5511
|
+
name: "LiveChat",
|
|
5514
5512
|
icon: L_,
|
|
5515
5513
|
backgroundColors: {
|
|
5516
5514
|
main: "var(--products-livechat)",
|
|
@@ -5521,7 +5519,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5521
5519
|
},
|
|
5522
5520
|
{
|
|
5523
5521
|
id: "chatbot",
|
|
5524
|
-
name: "
|
|
5522
|
+
name: "ChatBot",
|
|
5525
5523
|
icon: O_,
|
|
5526
5524
|
backgroundColors: {
|
|
5527
5525
|
main: "var(--products-chatbot)",
|
|
@@ -5532,7 +5530,7 @@ const Mt = "select-all", on = (t, a) => {
|
|
|
5532
5530
|
},
|
|
5533
5531
|
{
|
|
5534
5532
|
id: "helpdesk",
|
|
5535
|
-
name: "
|
|
5533
|
+
name: "HelpDesk",
|
|
5536
5534
|
icon: G_,
|
|
5537
5535
|
backgroundColors: {
|
|
5538
5536
|
main: "var(--products-helpdesk)",
|
|
@@ -5922,12 +5920,12 @@ const aa = {
|
|
|
5922
5920
|
t
|
|
5923
5921
|
);
|
|
5924
5922
|
e.useEffect(() => {
|
|
5925
|
-
const
|
|
5926
|
-
|
|
5923
|
+
const y = () => d.current && d.current.offsetWidth <= On ? m("small") : d.current && d.current.offsetWidth >= Gn ? m("large") : m("medium"), v = l_(
|
|
5924
|
+
y,
|
|
5927
5925
|
Un
|
|
5928
5926
|
);
|
|
5929
|
-
return window.addEventListener("resize",
|
|
5930
|
-
|
|
5927
|
+
return window.addEventListener("resize", v), y(), () => {
|
|
5928
|
+
v.cancel(), window.removeEventListener("resize", v);
|
|
5931
5929
|
};
|
|
5932
5930
|
}, []);
|
|
5933
5931
|
const f = /* @__PURE__ */ e.createElement("div", { className: Pe[`${Fe}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
@@ -6078,7 +6076,7 @@ const aa = {
|
|
|
6078
6076
|
cropOnBlur: c = !0,
|
|
6079
6077
|
onChange: s
|
|
6080
6078
|
}) => {
|
|
6081
|
-
const [i, d] = e.useState(!0), [p, m] = e.useState(!1), g = e.useRef(null), f = !!l && !a && !r,
|
|
6079
|
+
const [i, d] = e.useState(!0), [p, m] = e.useState(!1), g = e.useRef(null), f = !!l && !a && !r, y = t && !i && "true", v = u(
|
|
6082
6080
|
n,
|
|
6083
6081
|
Re[We],
|
|
6084
6082
|
Re[`${We}--${o}`],
|
|
@@ -6090,10 +6088,10 @@ const aa = {
|
|
|
6090
6088
|
e.useEffect(() => {
|
|
6091
6089
|
t && l && d(!1);
|
|
6092
6090
|
}, [t]);
|
|
6093
|
-
const
|
|
6091
|
+
const b = (N) => {
|
|
6094
6092
|
const I = N.currentTarget.value;
|
|
6095
6093
|
s(I);
|
|
6096
|
-
},
|
|
6094
|
+
}, E = () => {
|
|
6097
6095
|
s("");
|
|
6098
6096
|
}, w = () => {
|
|
6099
6097
|
var N;
|
|
@@ -6108,9 +6106,9 @@ const aa = {
|
|
|
6108
6106
|
return /* @__PURE__ */ e.createElement(
|
|
6109
6107
|
"div",
|
|
6110
6108
|
{
|
|
6111
|
-
"aria-expanded":
|
|
6109
|
+
"aria-expanded": y,
|
|
6112
6110
|
role: "search",
|
|
6113
|
-
className:
|
|
6111
|
+
className: v,
|
|
6114
6112
|
onClick: w
|
|
6115
6113
|
},
|
|
6116
6114
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6139,7 +6137,7 @@ const aa = {
|
|
|
6139
6137
|
type: "text",
|
|
6140
6138
|
value: l,
|
|
6141
6139
|
placeholder: _,
|
|
6142
|
-
onChange:
|
|
6140
|
+
onChange: b,
|
|
6143
6141
|
onBlur: $,
|
|
6144
6142
|
onFocus: C,
|
|
6145
6143
|
onKeyDown: h,
|
|
@@ -6153,7 +6151,7 @@ const aa = {
|
|
|
6153
6151
|
"aria-label": "Clear search",
|
|
6154
6152
|
title: "Clear search",
|
|
6155
6153
|
className: Re[`${We}__clear-icon`],
|
|
6156
|
-
onClick:
|
|
6154
|
+
onClick: E,
|
|
6157
6155
|
icon: /* @__PURE__ */ e.createElement(S, { source: Be, kind: "primary" }),
|
|
6158
6156
|
kind: "text",
|
|
6159
6157
|
size: "compact"
|
|
@@ -6254,7 +6252,7 @@ const aa = {
|
|
|
6254
6252
|
t
|
|
6255
6253
|
);
|
|
6256
6254
|
return /* @__PURE__ */ e.createElement("span", k({ className: n }, _));
|
|
6257
|
-
}, zn = "lc-Switch-module__switch__input___NiiOR", Wn = "lc-Switch-module__switch__container___79F7W", Vn = "lc-Switch-module__switch__track___2wr2M", Kn = "lc-Switch-module__switch__slider___WHd--", Yn = "lc-Switch-module__switch__loader___FE-fA", qn = "lc-Switch-module__switch__icon___-O1qY",
|
|
6255
|
+
}, zn = "lc-Switch-module__switch__input___NiiOR", Wn = "lc-Switch-module__switch__container___79F7W", Vn = "lc-Switch-module__switch__track___2wr2M", Kn = "lc-Switch-module__switch__slider___WHd--", Yn = "lc-Switch-module__switch__loader___FE-fA", qn = "lc-Switch-module__switch__icon___-O1qY", te = {
|
|
6258
6256
|
switch: "lc-Switch-module__switch___AaA2k",
|
|
6259
6257
|
"switch__track--enabled": "lc-Switch-module__switch__track--enabled___sy4Xl",
|
|
6260
6258
|
"switch__track--on": "lc-Switch-module__switch__track--on___aOMWe",
|
|
@@ -6285,12 +6283,12 @@ const aa = {
|
|
|
6285
6283
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___2zi05",
|
|
6286
6284
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
|
|
6287
6285
|
switch__icon: qn
|
|
6288
|
-
},
|
|
6286
|
+
}, ee = "switch", Ai = (p) => {
|
|
6289
6287
|
var m = p, {
|
|
6290
6288
|
className: t = "",
|
|
6291
6289
|
defaultOn: a = !1,
|
|
6292
6290
|
disabled: r = !1,
|
|
6293
|
-
name: _ =
|
|
6291
|
+
name: _ = ee,
|
|
6294
6292
|
on: o,
|
|
6295
6293
|
onChange: l,
|
|
6296
6294
|
size: n = "large",
|
|
@@ -6309,50 +6307,50 @@ const aa = {
|
|
|
6309
6307
|
"innerRef",
|
|
6310
6308
|
"ariaLabel"
|
|
6311
6309
|
]);
|
|
6312
|
-
const g = o !== void 0, [f,
|
|
6310
|
+
const g = o !== void 0, [f, y] = e.useState(
|
|
6313
6311
|
() => g ? o : a
|
|
6314
|
-
), [
|
|
6315
|
-
ee
|
|
6316
|
-
|
|
6312
|
+
), [v, b] = e.useState(!1), E = g ? o : f, w = c === "loading", C = c === "locked", $ = n === "large" ? "small" : "xsmall", h = E ? "on" : "off", N = r || w || C, I = N ? "disabled" : "enabled", O = u(
|
|
6313
|
+
te[ee],
|
|
6314
|
+
te[`${ee}--${n}`],
|
|
6317
6315
|
{
|
|
6318
|
-
[
|
|
6316
|
+
[te[`${ee}--focused`]]: v
|
|
6319
6317
|
},
|
|
6320
6318
|
t
|
|
6321
6319
|
), G = (T) => {
|
|
6322
|
-
l == null || l(T, !
|
|
6320
|
+
l == null || l(T, !E), g || (T.stopPropagation(), y((L) => !L));
|
|
6323
6321
|
};
|
|
6324
|
-
return /* @__PURE__ */ e.createElement("span", { className:
|
|
6322
|
+
return /* @__PURE__ */ e.createElement("span", { className: O }, /* @__PURE__ */ e.createElement(
|
|
6325
6323
|
"input",
|
|
6326
6324
|
B(k({
|
|
6327
6325
|
type: "checkbox",
|
|
6328
6326
|
className: u(
|
|
6329
|
-
|
|
6330
|
-
|
|
6327
|
+
te[`${ee}__input`],
|
|
6328
|
+
te[`${ee}__input--${I}`]
|
|
6331
6329
|
),
|
|
6332
6330
|
onChange: G,
|
|
6333
|
-
checked:
|
|
6331
|
+
checked: E,
|
|
6334
6332
|
name: _,
|
|
6335
6333
|
ref: s,
|
|
6336
6334
|
disabled: N,
|
|
6337
6335
|
"aria-label": i
|
|
6338
6336
|
}, d), {
|
|
6339
|
-
onFocus: () =>
|
|
6340
|
-
onBlur: () =>
|
|
6337
|
+
onFocus: () => b(!0),
|
|
6338
|
+
onBlur: () => b(!1)
|
|
6341
6339
|
})
|
|
6342
6340
|
), /* @__PURE__ */ e.createElement(
|
|
6343
6341
|
"span",
|
|
6344
6342
|
{
|
|
6345
|
-
className: u(
|
|
6346
|
-
[
|
|
6343
|
+
className: u(te[`${ee}__container`], {
|
|
6344
|
+
[te[`${ee}__container--focused`]]: v
|
|
6347
6345
|
})
|
|
6348
6346
|
},
|
|
6349
6347
|
/* @__PURE__ */ e.createElement(
|
|
6350
6348
|
"span",
|
|
6351
6349
|
{
|
|
6352
6350
|
className: u(
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6351
|
+
te[`${ee}__track`],
|
|
6352
|
+
te[`${ee}__track--${h}`],
|
|
6353
|
+
te[`${ee}__track--${I}`]
|
|
6356
6354
|
)
|
|
6357
6355
|
}
|
|
6358
6356
|
),
|
|
@@ -6360,10 +6358,10 @@ const aa = {
|
|
|
6360
6358
|
"span",
|
|
6361
6359
|
{
|
|
6362
6360
|
className: u(
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6361
|
+
te[`${ee}__slider`],
|
|
6362
|
+
te[`${ee}__slider--${I}`],
|
|
6363
|
+
te[`${ee}__slider--${n}`],
|
|
6364
|
+
te[`${ee}__slider--${n}--${h}`]
|
|
6367
6365
|
)
|
|
6368
6366
|
},
|
|
6369
6367
|
w && /* @__PURE__ */ e.createElement(
|
|
@@ -6371,15 +6369,15 @@ const aa = {
|
|
|
6371
6369
|
{
|
|
6372
6370
|
"data-testid": "switch-loader",
|
|
6373
6371
|
className: u(
|
|
6374
|
-
|
|
6375
|
-
|
|
6372
|
+
te[`${ee}__loader`],
|
|
6373
|
+
te[`${ee}__loader--${n}`]
|
|
6376
6374
|
)
|
|
6377
6375
|
}
|
|
6378
6376
|
),
|
|
6379
6377
|
C && /* @__PURE__ */ e.createElement(
|
|
6380
6378
|
S,
|
|
6381
6379
|
{
|
|
6382
|
-
className:
|
|
6380
|
+
className: te[`${ee}__icon`],
|
|
6383
6381
|
"data-testid": "lock-icon",
|
|
6384
6382
|
size: $,
|
|
6385
6383
|
source: K_,
|
|
@@ -6491,8 +6489,8 @@ const aa = {
|
|
|
6491
6489
|
}
|
|
6492
6490
|
}, g = (f) => {
|
|
6493
6491
|
f.preventDefault();
|
|
6494
|
-
const
|
|
6495
|
-
document.execCommand("insertHTML", !1, Tr(
|
|
6492
|
+
const y = f.clipboardData.getData("text/plain");
|
|
6493
|
+
document.execCommand("insertHTML", !1, Tr(y));
|
|
6496
6494
|
};
|
|
6497
6495
|
return /* @__PURE__ */ e.createElement(
|
|
6498
6496
|
"div",
|
|
@@ -6567,45 +6565,45 @@ const aa = {
|
|
|
6567
6565
|
[la[`${Aa}--error`]]: o
|
|
6568
6566
|
},
|
|
6569
6567
|
c
|
|
6570
|
-
),
|
|
6568
|
+
), y = u(
|
|
6571
6569
|
s,
|
|
6572
6570
|
la[`${Aa}__input`],
|
|
6573
6571
|
la[`${Aa}__input--${n}`]
|
|
6574
|
-
), [
|
|
6575
|
-
T.trim() !== "" && (r([...a || [], T]),
|
|
6572
|
+
), [v, b] = e.useState(""), E = e.useRef(null), w = (T) => {
|
|
6573
|
+
T.trim() !== "" && (r([...a || [], T]), b(""));
|
|
6576
6574
|
}, C = (T) => {
|
|
6577
|
-
const
|
|
6578
|
-
|
|
6579
|
-
}, $ = (T) =>
|
|
6575
|
+
const L = [...a || []];
|
|
6576
|
+
L.splice(T, 1), r(L);
|
|
6577
|
+
}, $ = (T) => b(T.target.value), h = (T) => {
|
|
6580
6578
|
if (rc.includes(T.key)) {
|
|
6581
|
-
if (T.preventDefault(),
|
|
6579
|
+
if (T.preventDefault(), v === "")
|
|
6582
6580
|
return;
|
|
6583
|
-
w(
|
|
6581
|
+
w(v);
|
|
6584
6582
|
} else if (_c.includes(T.key)) {
|
|
6585
|
-
if (
|
|
6583
|
+
if (v !== "" || !(a != null && a.length))
|
|
6586
6584
|
return;
|
|
6587
6585
|
C(a.length - 1);
|
|
6588
6586
|
}
|
|
6589
6587
|
}, N = (T) => {
|
|
6590
|
-
d && w(
|
|
6591
|
-
}, I = (T,
|
|
6592
|
-
const
|
|
6593
|
-
|
|
6594
|
-
(
|
|
6588
|
+
d && w(v), i == null || i(T);
|
|
6589
|
+
}, I = (T, L) => {
|
|
6590
|
+
const V = [...a || []];
|
|
6591
|
+
V.reduce(
|
|
6592
|
+
(U, de, we) => U + (de === L && we !== T ? 1 : 0),
|
|
6595
6593
|
0
|
|
6596
|
-
) > 0 ?
|
|
6597
|
-
},
|
|
6594
|
+
) > 0 ? V.splice(T, 1) : V[T] = L, r(V);
|
|
6595
|
+
}, O = (T) => {
|
|
6598
6596
|
T.preventDefault();
|
|
6599
|
-
const
|
|
6600
|
-
r([...a || [], ...
|
|
6601
|
-
}, G = (T,
|
|
6597
|
+
const V = T.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
6598
|
+
r([...a || [], ...V]);
|
|
6599
|
+
}, G = (T, L) => typeof T == "string" ? /* @__PURE__ */ e.createElement(
|
|
6602
6600
|
e_,
|
|
6603
6601
|
{
|
|
6604
|
-
index:
|
|
6605
|
-
key: `${
|
|
6602
|
+
index: L,
|
|
6603
|
+
key: `${L}${T}`,
|
|
6606
6604
|
update: I,
|
|
6607
6605
|
remove: C,
|
|
6608
|
-
inputRef:
|
|
6606
|
+
inputRef: E,
|
|
6609
6607
|
validator: _,
|
|
6610
6608
|
size: n
|
|
6611
6609
|
},
|
|
@@ -6613,11 +6611,11 @@ const aa = {
|
|
|
6613
6611
|
) : /* @__PURE__ */ e.createElement(
|
|
6614
6612
|
e_,
|
|
6615
6613
|
{
|
|
6616
|
-
index:
|
|
6617
|
-
key: `${
|
|
6614
|
+
index: L,
|
|
6615
|
+
key: `${L}${T.children}`,
|
|
6618
6616
|
update: I,
|
|
6619
6617
|
remove: C,
|
|
6620
|
-
inputRef:
|
|
6618
|
+
inputRef: E,
|
|
6621
6619
|
validator: _,
|
|
6622
6620
|
size: n,
|
|
6623
6621
|
tagProps: T
|
|
@@ -6628,13 +6626,13 @@ const aa = {
|
|
|
6628
6626
|
"input",
|
|
6629
6627
|
B(k({}, p), {
|
|
6630
6628
|
id: t,
|
|
6631
|
-
ref:
|
|
6632
|
-
className:
|
|
6629
|
+
ref: E,
|
|
6630
|
+
className: y,
|
|
6633
6631
|
placeholder: l,
|
|
6634
|
-
value:
|
|
6632
|
+
value: v,
|
|
6635
6633
|
onChange: $,
|
|
6636
6634
|
onKeyDown: h,
|
|
6637
|
-
onPaste:
|
|
6635
|
+
onPaste: O,
|
|
6638
6636
|
onBlur: N
|
|
6639
6637
|
})
|
|
6640
6638
|
)), o && /* @__PURE__ */ e.createElement(Nr, null, o));
|
|
@@ -6645,7 +6643,7 @@ const aa = {
|
|
|
6645
6643
|
"placeholder"
|
|
6646
6644
|
]);
|
|
6647
6645
|
return /* @__PURE__ */ e.createElement(oc, B(k({}, a), { placeholder: t, validator: cc }));
|
|
6648
|
-
}, ic = "lc-Toast-module__toast___j5Amn", sc = "lc-Toast-module__toast__content___HjaNw", dc = "lc-Toast-module__toast__actions___JWu-1", uc = "lc-Toast-module__toast__actions__button___Iblrl",
|
|
6646
|
+
}, ic = "lc-Toast-module__toast___j5Amn", sc = "lc-Toast-module__toast__content___HjaNw", dc = "lc-Toast-module__toast__actions___JWu-1", uc = "lc-Toast-module__toast__actions__button___Iblrl", ae = {
|
|
6649
6647
|
toast: ic,
|
|
6650
6648
|
toast__content: sc,
|
|
6651
6649
|
toast__actions: dc,
|
|
@@ -6705,14 +6703,14 @@ const aa = {
|
|
|
6705
6703
|
"onClose"
|
|
6706
6704
|
]);
|
|
6707
6705
|
const i = u(
|
|
6708
|
-
|
|
6709
|
-
|
|
6706
|
+
ae[mt],
|
|
6707
|
+
ae[`${mt}--${o}`],
|
|
6710
6708
|
a
|
|
6711
6709
|
), d = typeof r == "string", p = (m) => m && m.closesOnClick && l ? (m.onClick(), l()) : m.onClick();
|
|
6712
|
-
return /* @__PURE__ */ e.createElement("div", k({ className: i }, n), /* @__PURE__ */ e.createElement("div", { className:
|
|
6710
|
+
return /* @__PURE__ */ e.createElement("div", k({ className: i }, n), /* @__PURE__ */ e.createElement("div", { className: ae[`${mt}__icon`] }, /* @__PURE__ */ e.createElement(S, B(k({}, mc[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: ae[`${mt}__content`] }, d ? /* @__PURE__ */ e.createElement(x, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: ae[`${mt}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
6713
6711
|
W,
|
|
6714
6712
|
{
|
|
6715
|
-
className:
|
|
6713
|
+
className: ae[`${mt}__actions--custom`],
|
|
6716
6714
|
kind: "text",
|
|
6717
6715
|
size: "compact",
|
|
6718
6716
|
onClick: () => p(t)
|
|
@@ -6722,8 +6720,8 @@ const aa = {
|
|
|
6722
6720
|
"button",
|
|
6723
6721
|
{
|
|
6724
6722
|
className: u(
|
|
6725
|
-
|
|
6726
|
-
|
|
6723
|
+
ae[`${mt}__actions__button`],
|
|
6724
|
+
ae[`${mt}__actions__button--${o}`]
|
|
6727
6725
|
),
|
|
6728
6726
|
"aria-label": "Close toast",
|
|
6729
6727
|
onClick: l
|
|
@@ -6740,12 +6738,12 @@ const aa = {
|
|
|
6740
6738
|
horizontalPosition: n = "center"
|
|
6741
6739
|
}) => {
|
|
6742
6740
|
const c = u(
|
|
6743
|
-
|
|
6741
|
+
ae[_a],
|
|
6744
6742
|
{
|
|
6745
|
-
[
|
|
6746
|
-
[
|
|
6747
|
-
[
|
|
6748
|
-
[
|
|
6743
|
+
[ae[`${_a}--fixed`]]: r,
|
|
6744
|
+
[ae[`${_a}--block`]]: !r && _,
|
|
6745
|
+
[ae[`${_a}--horizontal-${n}`]]: n,
|
|
6746
|
+
[ae[`${_a}--vertical-${l}`]]: l
|
|
6749
6747
|
},
|
|
6750
6748
|
t
|
|
6751
6749
|
);
|
|
@@ -6754,10 +6752,10 @@ const aa = {
|
|
|
6754
6752
|
{
|
|
6755
6753
|
key: s,
|
|
6756
6754
|
classNames: {
|
|
6757
|
-
enter:
|
|
6758
|
-
enterActive:
|
|
6759
|
-
exit:
|
|
6760
|
-
exitActive:
|
|
6755
|
+
enter: ae[`toast-appear--${o}`],
|
|
6756
|
+
enterActive: ae[`toast-appear-active--${o}`],
|
|
6757
|
+
exit: ae[`toast-exit--${o}`],
|
|
6758
|
+
exitActive: ae[`toast-exit-active--${o}`]
|
|
6761
6759
|
},
|
|
6762
6760
|
timeout: gc
|
|
6763
6761
|
},
|
|
@@ -6895,7 +6893,7 @@ const aa = {
|
|
|
6895
6893
|
}
|
|
6896
6894
|
)
|
|
6897
6895
|
))
|
|
6898
|
-
),
|
|
6896
|
+
), Y = {
|
|
6899
6897
|
"upload-bar": "lc-UploadBar-module__upload-bar___6Or8h",
|
|
6900
6898
|
"upload-bar__loader-test": "lc-UploadBar-module__upload-bar__loader-test___aZb2J",
|
|
6901
6899
|
"upload-bar--error": "lc-UploadBar-module__upload-bar--error___MzvhT",
|
|
@@ -6920,20 +6918,20 @@ const aa = {
|
|
|
6920
6918
|
"div",
|
|
6921
6919
|
{
|
|
6922
6920
|
"data-testid": "success-icon",
|
|
6923
|
-
className:
|
|
6921
|
+
className: Y[`${rt}__success-icon`]
|
|
6924
6922
|
},
|
|
6925
6923
|
/* @__PURE__ */ e.createElement(S, { source: ia })
|
|
6926
6924
|
) : t === "error" ? /* @__PURE__ */ e.createElement(
|
|
6927
6925
|
"div",
|
|
6928
6926
|
{
|
|
6929
6927
|
"data-testid": "error-icon",
|
|
6930
|
-
className:
|
|
6928
|
+
className: Y[`${rt}__error-icon`]
|
|
6931
6929
|
},
|
|
6932
6930
|
/* @__PURE__ */ e.createElement(S, { source: q_ })
|
|
6933
6931
|
) : /* @__PURE__ */ e.createElement(
|
|
6934
6932
|
Mn,
|
|
6935
6933
|
{
|
|
6936
|
-
className:
|
|
6934
|
+
className: Y[`${rt}__loader`],
|
|
6937
6935
|
status: t,
|
|
6938
6936
|
progressValue: a
|
|
6939
6937
|
}
|
|
@@ -6951,11 +6949,11 @@ const aa = {
|
|
|
6951
6949
|
onCloseButtonClick: d,
|
|
6952
6950
|
onRetryButtonClick: p
|
|
6953
6951
|
}) => {
|
|
6954
|
-
const [m, g] = e.useState(o || !1), f = n === "error",
|
|
6955
|
-
[
|
|
6956
|
-
[
|
|
6957
|
-
}),
|
|
6958
|
-
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className:
|
|
6952
|
+
const [m, g] = e.useState(o || !1), f = n === "error", y = n === "success", v = u(Y[ve], a, {
|
|
6953
|
+
[Y[`${ve}--error`]]: f,
|
|
6954
|
+
[Y[`${ve}--success`]]: y
|
|
6955
|
+
}), b = !(f && (p || d)), E = () => g(!m);
|
|
6956
|
+
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement("div", { className: Y[`${ve}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: Y[`${rt}`] }, /* @__PURE__ */ e.createElement(
|
|
6959
6957
|
vc,
|
|
6960
6958
|
{
|
|
6961
6959
|
title: f && l || _,
|
|
@@ -6971,22 +6969,22 @@ const aa = {
|
|
|
6971
6969
|
onCloseButtonClick: d,
|
|
6972
6970
|
onRetryButtonClick: p
|
|
6973
6971
|
}
|
|
6974
|
-
))) : /* @__PURE__ */ e.createElement("div", { className:
|
|
6972
|
+
))) : /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement(
|
|
6975
6973
|
"div",
|
|
6976
6974
|
{
|
|
6977
|
-
className:
|
|
6978
|
-
onClick:
|
|
6975
|
+
className: Y[`${ve}__wrapper`],
|
|
6976
|
+
onClick: E
|
|
6979
6977
|
},
|
|
6980
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
6978
|
+
/* @__PURE__ */ e.createElement("div", { className: Y[`${rt}`] }, /* @__PURE__ */ e.createElement("div", { className: Y[`${rt}__icon`] }, Ec(n, r)), /* @__PURE__ */ e.createElement("div", { className: Y[`${rt}__title`] }, /* @__PURE__ */ e.createElement(x, { size: "sm", as: "div" }, f ? l : _)), b && /* @__PURE__ */ e.createElement(
|
|
6981
6979
|
"button",
|
|
6982
6980
|
{
|
|
6983
|
-
className:
|
|
6981
|
+
className: Y[`${rt}__collapse-button`],
|
|
6984
6982
|
type: "button",
|
|
6985
6983
|
"aria-label": "Collapse button",
|
|
6986
|
-
onClick:
|
|
6984
|
+
onClick: E
|
|
6987
6985
|
},
|
|
6988
6986
|
m ? /* @__PURE__ */ e.createElement(S, { source: Ga }) : /* @__PURE__ */ e.createElement(S, { source: Ot })
|
|
6989
|
-
), n === "error" && /* @__PURE__ */ e.createElement("div", { className:
|
|
6987
|
+
), n === "error" && /* @__PURE__ */ e.createElement("div", { className: Y[`${rt}__actions-container`] }, /* @__PURE__ */ e.createElement(
|
|
6990
6988
|
hr,
|
|
6991
6989
|
{
|
|
6992
6990
|
status: n,
|
|
@@ -6999,14 +6997,14 @@ const aa = {
|
|
|
6999
6997
|
{
|
|
7000
6998
|
timeout: kc,
|
|
7001
6999
|
classNames: {
|
|
7002
|
-
enter:
|
|
7003
|
-
enterActive:
|
|
7004
|
-
exit:
|
|
7005
|
-
exitActive:
|
|
7006
|
-
exitDone:
|
|
7000
|
+
enter: Y[`${ve}__files--enter`],
|
|
7001
|
+
enterActive: Y[`${ve}__files--enter-active`],
|
|
7002
|
+
exit: Y[`${ve}__files--exit`],
|
|
7003
|
+
exitActive: Y[`${ve}__files--exit-active`],
|
|
7004
|
+
exitDone: Y[`${ve}__files--exit-done`]
|
|
7007
7005
|
}
|
|
7008
7006
|
},
|
|
7009
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
7007
|
+
/* @__PURE__ */ e.createElement("div", { className: Y[`${ve}__files`] }, /* @__PURE__ */ e.createElement("div", { className: Y[`${ve}__files-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: Y[`${ve}__files__list`] }, t)))
|
|
7010
7008
|
)));
|
|
7011
7009
|
};
|
|
7012
7010
|
export {
|