@livechat/design-system-react-components 1.33.5 → 1.33.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +478 -476
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -655,8 +655,8 @@ const Mc = {
|
|
|
655
655
|
}, d),
|
|
656
656
|
r
|
|
657
657
|
);
|
|
658
|
-
}, B = (
|
|
659
|
-
var
|
|
658
|
+
}, B = (f) => {
|
|
659
|
+
var b = f, {
|
|
660
660
|
as: t = "p",
|
|
661
661
|
size: a = "md",
|
|
662
662
|
caps: r = !1,
|
|
@@ -669,7 +669,7 @@ const Mc = {
|
|
|
669
669
|
customColor: i,
|
|
670
670
|
textAlign: s,
|
|
671
671
|
noMargin: p
|
|
672
|
-
} =
|
|
672
|
+
} = b, m = D(b, [
|
|
673
673
|
"as",
|
|
674
674
|
"size",
|
|
675
675
|
"caps",
|
|
@@ -683,18 +683,18 @@ const Mc = {
|
|
|
683
683
|
"textAlign",
|
|
684
684
|
"noMargin"
|
|
685
685
|
]);
|
|
686
|
-
const
|
|
686
|
+
const v = "paragraph";
|
|
687
687
|
return e.createElement(
|
|
688
688
|
t,
|
|
689
689
|
k({
|
|
690
690
|
className: u(
|
|
691
691
|
{
|
|
692
|
-
[Ge[`${
|
|
693
|
-
[Ge[`${
|
|
694
|
-
[Ge[`${
|
|
695
|
-
[Ge[`${
|
|
696
|
-
[Ge[`${
|
|
697
|
-
[Ge[`${
|
|
692
|
+
[Ge[`${v}-${a}`]]: !0,
|
|
693
|
+
[Ge[`${v}--bold`]]: o,
|
|
694
|
+
[Ge[`${v}--strike`]]: n,
|
|
695
|
+
[Ge[`${v}--underline`]]: l,
|
|
696
|
+
[Ge[`${v}--uppercase`]]: _ || r,
|
|
697
|
+
[Ge[`${v}--no-margin`]]: p
|
|
698
698
|
},
|
|
699
699
|
d
|
|
700
700
|
),
|
|
@@ -746,8 +746,8 @@ const Mc = {
|
|
|
746
746
|
"action-menu__list__item__icon": "lc-ActionMenu-module__action-menu__list__item__icon___o3ePo",
|
|
747
747
|
"action-menu__list--with-footer": "lc-ActionMenu-module__action-menu__list--with-footer___ghTxL",
|
|
748
748
|
"action-menu__footer": "lc-ActionMenu-module__action-menu__footer___HxoOe"
|
|
749
|
-
}, ze = "action-menu", mo = (
|
|
750
|
-
var
|
|
749
|
+
}, ze = "action-menu", mo = (v) => {
|
|
750
|
+
var h = v, {
|
|
751
751
|
className: t,
|
|
752
752
|
triggerClassName: a,
|
|
753
753
|
options: r,
|
|
@@ -761,8 +761,8 @@ const Mc = {
|
|
|
761
761
|
onOpen: s,
|
|
762
762
|
floatingStrategy: p,
|
|
763
763
|
selectedOptions: m,
|
|
764
|
-
footer:
|
|
765
|
-
} =
|
|
764
|
+
footer: f
|
|
765
|
+
} = h, b = D(h, [
|
|
766
766
|
"className",
|
|
767
767
|
"triggerClassName",
|
|
768
768
|
"options",
|
|
@@ -778,9 +778,9 @@ const Mc = {
|
|
|
778
778
|
"selectedOptions",
|
|
779
779
|
"footer"
|
|
780
780
|
]);
|
|
781
|
-
const y = d !== void 0, [E, $] = e.useState(l), [w, C] = e.useState(null),
|
|
781
|
+
const y = d !== void 0, [E, $] = e.useState(l), [w, C] = e.useState(null), g = e.useRef(-1), N = Ga(), S = sa(), M = e.useRef(null), G = y ? d : E, I = () => {
|
|
782
782
|
G ? (i == null || i(), !y && $(!1)) : (s == null || s(), !y && $(!0));
|
|
783
|
-
}, { x: O, y: Y, strategy:
|
|
783
|
+
}, { x: O, y: Y, strategy: j, refs: L, context: U } = da({
|
|
784
784
|
nodeId: S,
|
|
785
785
|
middleware: [
|
|
786
786
|
ua(4),
|
|
@@ -816,7 +816,7 @@ const Mc = {
|
|
|
816
816
|
})
|
|
817
817
|
}), Nt = (P) => {
|
|
818
818
|
var Ye, qe;
|
|
819
|
-
const V =
|
|
819
|
+
const V = g.current;
|
|
820
820
|
let ue = V + P;
|
|
821
821
|
for (; (Ye = r[ue]) != null && Ye.disabled || (qe = r[ue]) != null && qe.groupHeader; )
|
|
822
822
|
if (ue += P, ue === -1) {
|
|
@@ -826,19 +826,19 @@ const Mc = {
|
|
|
826
826
|
return ue;
|
|
827
827
|
}, bt = (P) => {
|
|
828
828
|
var Ye, qe;
|
|
829
|
-
|
|
830
|
-
const V = (Ye = M.current) == null ? void 0 : Ye.children, ue = V && ((qe = V[
|
|
829
|
+
g.current = Nt(P);
|
|
830
|
+
const V = (Ye = M.current) == null ? void 0 : Ye.children, ue = V && ((qe = V[g.current]) == null ? void 0 : qe.children[0]);
|
|
831
831
|
return ue == null ? void 0 : ue.focus();
|
|
832
832
|
}, lt = (P) => {
|
|
833
|
-
P.key === de.arrowUp &&
|
|
833
|
+
P.key === de.arrowUp && g.current > 0 && (P.preventDefault(), bt(-1)), P.key === de.arrowDown && g.current + 1 < r.length && (P.preventDefault(), bt(1));
|
|
834
834
|
};
|
|
835
835
|
e.useEffect(() => {
|
|
836
836
|
if (G)
|
|
837
837
|
return document.addEventListener("keydown", lt), () => document.removeEventListener("keydown", lt);
|
|
838
|
-
|
|
838
|
+
g.current = -1;
|
|
839
839
|
}, [G, lt]);
|
|
840
840
|
const ht = (P, V) => {
|
|
841
|
-
|
|
841
|
+
g.current = P, V == null || V(), !y && !n && ($(!1), i == null || i());
|
|
842
842
|
}, St = (P, V) => P.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
843
843
|
"li",
|
|
844
844
|
{
|
|
@@ -887,18 +887,18 @@ const Mc = {
|
|
|
887
887
|
ref: L.setFloating,
|
|
888
888
|
className: He[ze],
|
|
889
889
|
style: k(k({
|
|
890
|
-
position:
|
|
890
|
+
position: j,
|
|
891
891
|
top: Y != null ? Y : "",
|
|
892
892
|
left: O != null ? O : ""
|
|
893
893
|
}, !!w && { maxHeight: w }), ft)
|
|
894
894
|
}, $t()),
|
|
895
895
|
r.length > 0 && /* @__PURE__ */ e.createElement(
|
|
896
896
|
"ul",
|
|
897
|
-
T(k({},
|
|
897
|
+
T(k({}, b), {
|
|
898
898
|
className: u(
|
|
899
899
|
He[`${ze}__list`],
|
|
900
900
|
{
|
|
901
|
-
[He[`${ze}__list--with-footer`]]:
|
|
901
|
+
[He[`${ze}__list--with-footer`]]: f
|
|
902
902
|
},
|
|
903
903
|
t
|
|
904
904
|
),
|
|
@@ -907,14 +907,14 @@ const Mc = {
|
|
|
907
907
|
}),
|
|
908
908
|
r.map(St)
|
|
909
909
|
),
|
|
910
|
-
|
|
910
|
+
f && /* @__PURE__ */ e.createElement(
|
|
911
911
|
B,
|
|
912
912
|
{
|
|
913
913
|
size: "sm",
|
|
914
914
|
as: "div",
|
|
915
915
|
className: He[`${ze}__footer`]
|
|
916
916
|
},
|
|
917
|
-
|
|
917
|
+
f
|
|
918
918
|
)
|
|
919
919
|
)));
|
|
920
920
|
return N === null ? /* @__PURE__ */ e.createElement(Ha, null, xt) : xt;
|
|
@@ -1020,8 +1020,8 @@ const Mc = {
|
|
|
1020
1020
|
"btn--plain-lock-black": "lc-Button-module__btn--plain-lock-black___aL-wC",
|
|
1021
1021
|
"btn--text-lock-black": "lc-Button-module__btn--text-lock-black___fy3zb"
|
|
1022
1022
|
}, ge = "btn", W = e.forwardRef(
|
|
1023
|
-
(
|
|
1024
|
-
var
|
|
1023
|
+
(v, b) => {
|
|
1024
|
+
var h = v, {
|
|
1025
1025
|
loading: t = !1,
|
|
1026
1026
|
disabled: a = !1,
|
|
1027
1027
|
type: r = "button",
|
|
@@ -1035,7 +1035,7 @@ const Mc = {
|
|
|
1035
1035
|
children: s,
|
|
1036
1036
|
href: p,
|
|
1037
1037
|
onClick: m
|
|
1038
|
-
} =
|
|
1038
|
+
} = h, f = D(h, [
|
|
1039
1039
|
"loading",
|
|
1040
1040
|
"disabled",
|
|
1041
1041
|
"type",
|
|
@@ -1067,12 +1067,12 @@ const Mc = {
|
|
|
1067
1067
|
return /* @__PURE__ */ e.createElement(
|
|
1068
1068
|
w,
|
|
1069
1069
|
k(k({
|
|
1070
|
-
ref:
|
|
1070
|
+
ref: b,
|
|
1071
1071
|
className: C,
|
|
1072
1072
|
"aria-disabled": y,
|
|
1073
1073
|
type: r,
|
|
1074
1074
|
disabled: y
|
|
1075
|
-
}, !y && { href: p, onClick: m }),
|
|
1075
|
+
}, !y && { href: p, onClick: m }), f),
|
|
1076
1076
|
t && /* @__PURE__ */ e.createElement(
|
|
1077
1077
|
Cr,
|
|
1078
1078
|
k({
|
|
@@ -1180,16 +1180,16 @@ const Co = (t) => {
|
|
|
1180
1180
|
onOpen: s,
|
|
1181
1181
|
withFadeAnimation: p = !0,
|
|
1182
1182
|
transitionDuration: m = 200,
|
|
1183
|
-
hoverOnDuration:
|
|
1184
|
-
hoverOffDuration:
|
|
1185
|
-
transitionDelay:
|
|
1186
|
-
hoverOnDelay:
|
|
1183
|
+
hoverOnDuration: f,
|
|
1184
|
+
hoverOffDuration: b,
|
|
1185
|
+
transitionDelay: v = 0,
|
|
1186
|
+
hoverOnDelay: h,
|
|
1187
1187
|
hoverOffDelay: y,
|
|
1188
1188
|
triggerOnClick: E = !1,
|
|
1189
1189
|
triggerOnHover: $ = !0,
|
|
1190
1190
|
offsetMainAxis: w = 8,
|
|
1191
1191
|
offsetCrossAxis: C = 0,
|
|
1192
|
-
referenceElement:
|
|
1192
|
+
referenceElement: g,
|
|
1193
1193
|
activationThreshold: N = 0,
|
|
1194
1194
|
useDismissHookProps: S,
|
|
1195
1195
|
useClickHookProps: M,
|
|
@@ -1197,7 +1197,7 @@ const Co = (t) => {
|
|
|
1197
1197
|
arrowOffsetY: I,
|
|
1198
1198
|
arrowOffsetX: O,
|
|
1199
1199
|
closeOnTriggerBlur: Y = !1,
|
|
1200
|
-
floatingStrategy:
|
|
1200
|
+
floatingStrategy: j
|
|
1201
1201
|
}) => {
|
|
1202
1202
|
const L = c !== void 0, [U, $e] = e.useState(!1), Ke = e.useRef(null), Ue = L ? c : U, Ne = l || o, $t = Ga(), ft = sa(), Nt = u(
|
|
1203
1203
|
A[ya],
|
|
@@ -1206,7 +1206,7 @@ const Co = (t) => {
|
|
|
1206
1206
|
d && A[`${ya}--full-space`]
|
|
1207
1207
|
), bt = typeof _ == "function", lt = (me) => {
|
|
1208
1208
|
me !== Ue && (me ? s == null || s() : i == null || i(), !L && $e(me));
|
|
1209
|
-
}, ht = (me) => p ? me != null ? me : m : 0, St = (me) => me != null ? me :
|
|
1209
|
+
}, ht = (me) => p ? me != null ? me : m : 0, St = (me) => me != null ? me : v, {
|
|
1210
1210
|
floatingStyles: xt,
|
|
1211
1211
|
refs: P,
|
|
1212
1212
|
context: V,
|
|
@@ -1221,14 +1221,14 @@ const Co = (t) => {
|
|
|
1221
1221
|
],
|
|
1222
1222
|
placement: n,
|
|
1223
1223
|
open: Ue,
|
|
1224
|
-
strategy:
|
|
1224
|
+
strategy: j,
|
|
1225
1225
|
onOpenChange: lt,
|
|
1226
1226
|
whileElementsMounted: ma
|
|
1227
1227
|
}), qe = X_(V, {
|
|
1228
1228
|
move: !1,
|
|
1229
1229
|
restMs: N,
|
|
1230
1230
|
delay: {
|
|
1231
|
-
open: St(
|
|
1231
|
+
open: St(h),
|
|
1232
1232
|
close: St(y || G)
|
|
1233
1233
|
},
|
|
1234
1234
|
enabled: $,
|
|
@@ -1237,8 +1237,8 @@ const Co = (t) => {
|
|
|
1237
1237
|
enabled: E
|
|
1238
1238
|
}, M)), { isMounted: qa, styles: Za } = kr(V, {
|
|
1239
1239
|
duration: {
|
|
1240
|
-
open: ht(
|
|
1241
|
-
close: ht(
|
|
1240
|
+
open: ht(f),
|
|
1241
|
+
close: ht(b)
|
|
1242
1242
|
}
|
|
1243
1243
|
}), { status: Xa } = Q_(V), { getReferenceProps: Ja, getFloatingProps: ja } = ba([
|
|
1244
1244
|
qe,
|
|
@@ -1248,8 +1248,8 @@ const Co = (t) => {
|
|
|
1248
1248
|
Ya
|
|
1249
1249
|
]);
|
|
1250
1250
|
e.useEffect(() => {
|
|
1251
|
-
|
|
1252
|
-
}, [P.setReference,
|
|
1251
|
+
g && P.setReference(g);
|
|
1252
|
+
}, [P.setReference, g]);
|
|
1253
1253
|
const Gt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1254
1254
|
"div",
|
|
1255
1255
|
T(k({
|
|
@@ -1648,26 +1648,26 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1648
1648
|
}) => {
|
|
1649
1649
|
const [c, d] = e.useState(
|
|
1650
1650
|
_.length
|
|
1651
|
-
), [i, s] = e.useState([]), [p, m] = e.useState(!1),
|
|
1651
|
+
), [i, s] = e.useState([]), [p, m] = e.useState(!1), f = r === "scroll", b = u(
|
|
1652
1652
|
q[wa],
|
|
1653
1653
|
t,
|
|
1654
1654
|
l && q[`${wa}--vertical`]
|
|
1655
|
-
),
|
|
1655
|
+
), v = !f && i.length !== 0;
|
|
1656
1656
|
e.useEffect(() => {
|
|
1657
|
-
|
|
1657
|
+
f || (_.length > c ? s(_.slice(c, _.length)) : s([]));
|
|
1658
1658
|
}, [_, c]), e.useEffect(() => {
|
|
1659
1659
|
const E = !!window.ResizeObserver;
|
|
1660
|
-
if (!
|
|
1660
|
+
if (!f && E) {
|
|
1661
1661
|
const $ = new ResizeObserver((w) => {
|
|
1662
|
-
const { width: C, height:
|
|
1662
|
+
const { width: C, height: g } = w[0].contentRect, N = l ? g : C, S = i.length > 0 ? 60 : 0, M = Math.floor(
|
|
1663
1663
|
(N - S) / Do
|
|
1664
1664
|
);
|
|
1665
1665
|
M >= 0 && M !== c && d(M);
|
|
1666
1666
|
});
|
|
1667
1667
|
return $.observe(document.querySelector(`#${a}`)), () => $.disconnect();
|
|
1668
1668
|
}
|
|
1669
|
-
}, [i,
|
|
1670
|
-
const
|
|
1669
|
+
}, [i, f, c]);
|
|
1670
|
+
const h = e.useCallback(() => i.reduce(
|
|
1671
1671
|
(E, $) => {
|
|
1672
1672
|
if (!$.hideInMenu) {
|
|
1673
1673
|
const w = {
|
|
@@ -1682,11 +1682,11 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1682
1682
|
},
|
|
1683
1683
|
[]
|
|
1684
1684
|
), [i]), y = i.find((E) => E.key === o);
|
|
1685
|
-
return /* @__PURE__ */ e.createElement("div", { id: a, className:
|
|
1685
|
+
return /* @__PURE__ */ e.createElement("div", { id: a, className: b }, /* @__PURE__ */ e.createElement(
|
|
1686
1686
|
"div",
|
|
1687
1687
|
{
|
|
1688
1688
|
className: u(q[`${wa}__items`], {
|
|
1689
|
-
[q[`${wa}__items--scroll`]]:
|
|
1689
|
+
[q[`${wa}__items--scroll`]]: f
|
|
1690
1690
|
})
|
|
1691
1691
|
},
|
|
1692
1692
|
_.slice(0, c).map((E) => /* @__PURE__ */ e.createElement(
|
|
@@ -1697,7 +1697,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1697
1697
|
vertical: l
|
|
1698
1698
|
}
|
|
1699
1699
|
))
|
|
1700
|
-
),
|
|
1700
|
+
), v && /* @__PURE__ */ e.createElement(
|
|
1701
1701
|
"div",
|
|
1702
1702
|
{
|
|
1703
1703
|
className: u(
|
|
@@ -1714,7 +1714,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1714
1714
|
onClose: () => m(!1),
|
|
1715
1715
|
floatingStrategy: "fixed",
|
|
1716
1716
|
placement: l ? "left-start" : "bottom-end",
|
|
1717
|
-
options:
|
|
1717
|
+
options: h(),
|
|
1718
1718
|
triggerClassName: u(
|
|
1719
1719
|
l && q[`${Xe}__trigger-vertical`]
|
|
1720
1720
|
),
|
|
@@ -1865,10 +1865,10 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1865
1865
|
a
|
|
1866
1866
|
);
|
|
1867
1867
|
return e.useEffect(() => {
|
|
1868
|
-
const
|
|
1869
|
-
|
|
1868
|
+
const f = () => i.current && i.current.offsetWidth <= 400 ? p("small") : i.current && i.current.offsetWidth > 400 && i.current.offsetWidth <= 800 ? p("medium") : p("large"), b = n_(() => {
|
|
1869
|
+
f();
|
|
1870
1870
|
}, 500);
|
|
1871
|
-
return window.addEventListener("resize",
|
|
1871
|
+
return window.addEventListener("resize", b), f(), () => window.removeEventListener("resize", b);
|
|
1872
1872
|
}), /* @__PURE__ */ e.createElement("div", k({ ref: i, className: m }, n), /* @__PURE__ */ e.createElement("div", { className: Se[`${xe}__content`] }, /* @__PURE__ */ e.createElement("div", { className: Se[`${xe}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1873
1873
|
x,
|
|
1874
1874
|
T(k({}, Go[o]), {
|
|
@@ -1952,7 +1952,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1952
1952
|
topBarClassName: n,
|
|
1953
1953
|
sideNavigationContainerClassName: c,
|
|
1954
1954
|
contentClassName: d
|
|
1955
|
-
} = t, i = u(Je[p_], r), { isSideNavigationVisible: s } = no(), p = e.useRef(null), { isOpen: m, isMounted:
|
|
1955
|
+
} = t, i = u(Je[p_], r), { isSideNavigationVisible: s } = no(), p = e.useRef(null), { isOpen: m, isMounted: f } = $r({
|
|
1956
1956
|
isVisible: s,
|
|
1957
1957
|
elementRef: p
|
|
1958
1958
|
});
|
|
@@ -1989,7 +1989,7 @@ const Rr = 8, Mr = "guide-tooltip", Lr = (t, a) => new Io(t, a), Zc = (t) => {
|
|
|
1989
1989
|
}
|
|
1990
1990
|
)
|
|
1991
1991
|
},
|
|
1992
|
-
|
|
1992
|
+
f && o
|
|
1993
1993
|
),
|
|
1994
1994
|
/* @__PURE__ */ e.createElement(
|
|
1995
1995
|
"div",
|
|
@@ -2053,7 +2053,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2053
2053
|
"side-navigation-item__label--active": "lc-SideNavigationItem-module__side-navigation-item__label--active___lHzUo",
|
|
2054
2054
|
"side-navigation-item__custom-label--active": "lc-SideNavigationItem-module__side-navigation-item__custom-label--active___js4w6"
|
|
2055
2055
|
}, De = "side-navigation-item", Vo = (m) => {
|
|
2056
|
-
var
|
|
2056
|
+
var f = m, {
|
|
2057
2057
|
leftNode: t,
|
|
2058
2058
|
shouldKeepIconSpace: a = !0,
|
|
2059
2059
|
url: r,
|
|
@@ -2065,7 +2065,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2065
2065
|
isMainEntry: d,
|
|
2066
2066
|
onItemHover: i,
|
|
2067
2067
|
isIconHidden: s
|
|
2068
|
-
} =
|
|
2068
|
+
} = f, p = D(f, [
|
|
2069
2069
|
"leftNode",
|
|
2070
2070
|
"shouldKeepIconSpace",
|
|
2071
2071
|
"url",
|
|
@@ -2078,9 +2078,9 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2078
2078
|
"onItemHover",
|
|
2079
2079
|
"isIconHidden"
|
|
2080
2080
|
]);
|
|
2081
|
-
const
|
|
2081
|
+
const b = typeof _ == "string", v = (y) => {
|
|
2082
2082
|
y.preventDefault(), n == null || n();
|
|
2083
|
-
},
|
|
2083
|
+
}, h = (y) => {
|
|
2084
2084
|
y.key === "Enter" && (y.preventDefault(), n == null || n());
|
|
2085
2085
|
};
|
|
2086
2086
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2100,8 +2100,8 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2100
2100
|
[Te[`${De}__anchor--icon-hidden`]]: s
|
|
2101
2101
|
}),
|
|
2102
2102
|
href: r,
|
|
2103
|
-
onClick:
|
|
2104
|
-
onKeyDown:
|
|
2103
|
+
onClick: v,
|
|
2104
|
+
onKeyDown: h,
|
|
2105
2105
|
onMouseEnter: i || Fa,
|
|
2106
2106
|
onFocus: i || Fa
|
|
2107
2107
|
},
|
|
@@ -2115,7 +2115,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2115
2115
|
},
|
|
2116
2116
|
t
|
|
2117
2117
|
),
|
|
2118
|
-
|
|
2118
|
+
b ? /* @__PURE__ */ e.createElement(
|
|
2119
2119
|
B,
|
|
2120
2120
|
{
|
|
2121
2121
|
bold: c || d,
|
|
@@ -2155,13 +2155,13 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2155
2155
|
shouldOpenOnInit: n = !1,
|
|
2156
2156
|
shouldOpenOnActive: c = !1
|
|
2157
2157
|
}) => {
|
|
2158
|
-
const [d, i] = e.useState(!1), [s, p] = e.useState(0), m = e.useRef(!1),
|
|
2158
|
+
const [d, i] = e.useState(!1), [s, p] = e.useState(0), m = e.useRef(!1), f = e.useRef(null), { isOpen: b, isMounted: v, setIsOpen: h } = $r({
|
|
2159
2159
|
isVisible: !o || n,
|
|
2160
|
-
elementRef:
|
|
2161
|
-
}), y = typeof a == "function" ? a(
|
|
2162
|
-
o &&
|
|
2163
|
-
}, C = (
|
|
2164
|
-
const N =
|
|
2160
|
+
elementRef: f
|
|
2161
|
+
}), y = typeof a == "function" ? a(b) : a, E = typeof t == "function" ? t(b) : t, $ = () => h(!0), w = () => {
|
|
2162
|
+
o && h((g) => !g);
|
|
2163
|
+
}, C = (g) => {
|
|
2164
|
+
const N = g == null ? void 0 : g.getElementsByTagName("li"), S = N != null && N.length ? [...N].some(
|
|
2165
2165
|
(G) => G.getAttribute("data-active") === "true"
|
|
2166
2166
|
) : !1;
|
|
2167
2167
|
i(S);
|
|
@@ -2177,7 +2177,7 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2177
2177
|
"div",
|
|
2178
2178
|
{
|
|
2179
2179
|
className: u(ct[`${it}__chevron`], {
|
|
2180
|
-
[ct[`${it}__chevron--active`]]:
|
|
2180
|
+
[ct[`${it}__chevron--active`]]: b
|
|
2181
2181
|
})
|
|
2182
2182
|
},
|
|
2183
2183
|
/* @__PURE__ */ e.createElement(x, { source: La, size: "small" })
|
|
@@ -2199,16 +2199,16 @@ const Ho = "side-navigation-item-test-id", zo = "side-navigation-active-item-tes
|
|
|
2199
2199
|
), /* @__PURE__ */ e.createElement(
|
|
2200
2200
|
"div",
|
|
2201
2201
|
{
|
|
2202
|
-
ref:
|
|
2202
|
+
ref: f,
|
|
2203
2203
|
className: u([
|
|
2204
2204
|
ct[`${it}__list-wrapper`],
|
|
2205
2205
|
{
|
|
2206
|
-
[ct[`${it}__list-wrapper--expanded`]]:
|
|
2206
|
+
[ct[`${it}__list-wrapper--expanded`]]: b
|
|
2207
2207
|
}
|
|
2208
2208
|
]),
|
|
2209
|
-
style: { maxHeight:
|
|
2209
|
+
style: { maxHeight: b ? s : 0 }
|
|
2210
2210
|
},
|
|
2211
|
-
|
|
2211
|
+
v && /* @__PURE__ */ e.createElement(
|
|
2212
2212
|
"ul",
|
|
2213
2213
|
{
|
|
2214
2214
|
className: u(ct[`${it}__list`], r),
|
|
@@ -2371,7 +2371,7 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2371
2371
|
},
|
|
2372
2372
|
"lc-dark-theme"
|
|
2373
2373
|
),
|
|
2374
|
-
onClick: (
|
|
2374
|
+
onClick: (f) => !l && d(f, t),
|
|
2375
2375
|
href: _
|
|
2376
2376
|
}, s),
|
|
2377
2377
|
r
|
|
@@ -2432,14 +2432,14 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2432
2432
|
const c = e.useRef(null), { isMounted: d, isOpen: i } = $r({
|
|
2433
2433
|
isVisible: n,
|
|
2434
2434
|
elementRef: c
|
|
2435
|
-
}), s = window.matchMedia("(max-width: 768px)").matches, p = a === "warning" ? "link-inverted" : "text", m = a === "warning" ? "secondary" : "high-contrast",
|
|
2435
|
+
}), s = window.matchMedia("(max-width: 768px)").matches, p = a === "warning" ? "link-inverted" : "text", m = a === "warning" ? "secondary" : "high-contrast", f = o || l ? /* @__PURE__ */ e.createElement("div", { className: Ve[`${st}__cta-wrapper`] }, o && /* @__PURE__ */ e.createElement(
|
|
2436
2436
|
W,
|
|
2437
2437
|
k({
|
|
2438
2438
|
size: "compact",
|
|
2439
2439
|
kind: s ? p : m
|
|
2440
2440
|
}, o),
|
|
2441
2441
|
o.label
|
|
2442
|
-
), l && /* @__PURE__ */ e.createElement(W, k({ size: "compact", kind: p }, l), l.label)) : null,
|
|
2442
|
+
), l && /* @__PURE__ */ e.createElement(W, k({ size: "compact", kind: p }, l), l.label)) : null, b = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Ve[`${st}__children-wrapper`] }, _, f), r && /* @__PURE__ */ e.createElement(
|
|
2443
2443
|
"button",
|
|
2444
2444
|
k({
|
|
2445
2445
|
className: Ve[`${st}__close-button`]
|
|
@@ -2473,7 +2473,7 @@ const qo = "lc-Badge-module__badge___GhLnu", Zo = "lc-Badge-module__badge__dot__
|
|
|
2473
2473
|
t
|
|
2474
2474
|
)
|
|
2475
2475
|
},
|
|
2476
|
-
|
|
2476
|
+
b
|
|
2477
2477
|
)
|
|
2478
2478
|
));
|
|
2479
2479
|
};
|
|
@@ -2580,7 +2580,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2580
2580
|
"type",
|
|
2581
2581
|
"withRim"
|
|
2582
2582
|
]);
|
|
2583
|
-
const
|
|
2583
|
+
const f = d === "image" && !l, [b, v] = e.useState(f), h = d === "image" && !!l && !b, y = d === "text", E = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, $ = rl(c, E), w = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), C = r || al(c), g = C ? _l(C) : void 0, N = y ? { backgroundColor: C } : {}, S = u(k({
|
|
2584
2584
|
[Ee[_e]]: !0,
|
|
2585
2585
|
[Ee[`${_e}--${_}`]]: !0,
|
|
2586
2586
|
[Ee[`${_e}--${o}`]]: !0,
|
|
@@ -2596,10 +2596,10 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2596
2596
|
), I = u(
|
|
2597
2597
|
Ee[`${_e}__rim`],
|
|
2598
2598
|
Ee[`${_e}__rim--${o}`]
|
|
2599
|
-
), O = (
|
|
2599
|
+
), O = (j) => w ? "2xs" : ["medium"].includes(j) ? "xs" : ["large", "xlarge"].includes(j) ? "sm" : ["xxlarge"].includes(j) ? "lg" : "xl", Y = e.useCallback(() => v(!0), []);
|
|
2600
2600
|
return e.useEffect(() => {
|
|
2601
|
-
|
|
2602
|
-
}, [
|
|
2601
|
+
v(f);
|
|
2602
|
+
}, [f]), /* @__PURE__ */ e.createElement("div", k({ className: S, style: N }, s), i && /* @__PURE__ */ e.createElement(
|
|
2603
2603
|
"div",
|
|
2604
2604
|
{
|
|
2605
2605
|
"data-testid": `${_e}__rim`,
|
|
@@ -2611,7 +2611,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2611
2611
|
"data-testid": `${_e}__status`,
|
|
2612
2612
|
className: M
|
|
2613
2613
|
}
|
|
2614
|
-
),
|
|
2614
|
+
), h && /* @__PURE__ */ e.createElement(
|
|
2615
2615
|
"img",
|
|
2616
2616
|
{
|
|
2617
2617
|
className: Ee[`${_e}__image`],
|
|
@@ -2624,12 +2624,12 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2624
2624
|
{
|
|
2625
2625
|
as: "span",
|
|
2626
2626
|
size: O(o),
|
|
2627
|
-
style: { color:
|
|
2627
|
+
style: { color: g },
|
|
2628
2628
|
bold: w,
|
|
2629
2629
|
uppercase: w
|
|
2630
2630
|
},
|
|
2631
2631
|
$
|
|
2632
|
-
),
|
|
2632
|
+
), b && /* @__PURE__ */ e.createElement(
|
|
2633
2633
|
x,
|
|
2634
2634
|
{
|
|
2635
2635
|
"data-testid": `${_e}__icon`,
|
|
@@ -2657,26 +2657,26 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2657
2657
|
e.useEffect(() => {
|
|
2658
2658
|
s && i(o);
|
|
2659
2659
|
}, [o]);
|
|
2660
|
-
const p = (
|
|
2661
|
-
s || i(
|
|
2662
|
-
}, m = a.map(({ id:
|
|
2663
|
-
const E =
|
|
2660
|
+
const p = (f, b) => {
|
|
2661
|
+
s || i(f), n(f, b);
|
|
2662
|
+
}, m = a.map(({ id: f, label: b, loading: v, disabled: h, icon: y }) => {
|
|
2663
|
+
const E = f === d, $ = E ? Na["btn--active"] : "", w = E ? !1 : v;
|
|
2664
2664
|
return /* @__PURE__ */ e.createElement(
|
|
2665
2665
|
W,
|
|
2666
2666
|
{
|
|
2667
|
-
key:
|
|
2667
|
+
key: f,
|
|
2668
2668
|
fullWidth: l,
|
|
2669
2669
|
loading: w,
|
|
2670
|
-
disabled:
|
|
2670
|
+
disabled: h,
|
|
2671
2671
|
"aria-pressed": E,
|
|
2672
2672
|
kind: "secondary",
|
|
2673
2673
|
icon: y,
|
|
2674
2674
|
className: u(Na.btn, Na[`btn--${t}`], $),
|
|
2675
2675
|
onClick: (C) => {
|
|
2676
|
-
p(
|
|
2676
|
+
p(f, C);
|
|
2677
2677
|
}
|
|
2678
2678
|
},
|
|
2679
|
-
|
|
2679
|
+
b
|
|
2680
2680
|
);
|
|
2681
2681
|
});
|
|
2682
2682
|
return /* @__PURE__ */ e.createElement("div", { role: "group", className: c }, m);
|
|
@@ -2714,7 +2714,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2714
2714
|
"src",
|
|
2715
2715
|
"title"
|
|
2716
2716
|
]);
|
|
2717
|
-
const [p, m] = e.useState(!1),
|
|
2717
|
+
const [p, m] = e.useState(!1), f = p ? Oa : Ot, b = p ? "Hide" : "Show more", v = (a == null ? void 0 : a.length) > 0, h = !!l, y = v || h, E = c, $ = n, w = $ ? "" : ye[yl];
|
|
2718
2718
|
return /* @__PURE__ */ e.createElement("div", k({ className: u(ye[na], _) }, d), E && /* @__PURE__ */ e.createElement("div", { className: u(ye[Ma], w) }, $ && /* @__PURE__ */ e.createElement(
|
|
2719
2719
|
"img",
|
|
2720
2720
|
{
|
|
@@ -2737,27 +2737,27 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2737
2737
|
className: ye[`${na}__expanded-content`]
|
|
2738
2738
|
},
|
|
2739
2739
|
l
|
|
2740
|
-
), y && /* @__PURE__ */ e.createElement("div", { className: ye[Sa] }, /* @__PURE__ */ e.createElement("div", { className: ye[`${Sa}__line`] }), /* @__PURE__ */ e.createElement("div", { className: ye[`${Sa}__buttons`] },
|
|
2741
|
-
({ kind: C, onClick:
|
|
2740
|
+
), y && /* @__PURE__ */ e.createElement("div", { className: ye[Sa] }, /* @__PURE__ */ e.createElement("div", { className: ye[`${Sa}__line`] }), /* @__PURE__ */ e.createElement("div", { className: ye[`${Sa}__buttons`] }, v && a.map(
|
|
2741
|
+
({ kind: C, onClick: g, children: N }, S) => /* @__PURE__ */ e.createElement(
|
|
2742
2742
|
W,
|
|
2743
2743
|
{
|
|
2744
2744
|
key: S,
|
|
2745
2745
|
size: "compact",
|
|
2746
2746
|
kind: C,
|
|
2747
|
-
onClick:
|
|
2747
|
+
onClick: g
|
|
2748
2748
|
},
|
|
2749
2749
|
N
|
|
2750
2750
|
)
|
|
2751
|
-
),
|
|
2751
|
+
), h && /* @__PURE__ */ e.createElement(
|
|
2752
2752
|
W,
|
|
2753
2753
|
{
|
|
2754
2754
|
className: ye[`${Sa}__buttons-expander`],
|
|
2755
2755
|
kind: "link",
|
|
2756
2756
|
iconPosition: "right",
|
|
2757
|
-
icon: /* @__PURE__ */ e.createElement(x, { source:
|
|
2757
|
+
icon: /* @__PURE__ */ e.createElement(x, { source: f }),
|
|
2758
2758
|
onClick: () => m(!p)
|
|
2759
2759
|
},
|
|
2760
|
-
|
|
2760
|
+
b
|
|
2761
2761
|
))));
|
|
2762
2762
|
}, wl = {
|
|
2763
2763
|
"field-description": "lc-FieldDescription-module__field-description___IcRDH"
|
|
@@ -2855,26 +2855,26 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2855
2855
|
toMonth: p
|
|
2856
2856
|
} = t, m = () => {
|
|
2857
2857
|
typeof a == "function" && a();
|
|
2858
|
-
},
|
|
2858
|
+
}, f = () => {
|
|
2859
2859
|
typeof _ == "function" && _();
|
|
2860
|
-
},
|
|
2860
|
+
}, b = () => {
|
|
2861
2861
|
if (!s) {
|
|
2862
2862
|
const E = Rt(i, 12);
|
|
2863
2863
|
return r(E);
|
|
2864
2864
|
}
|
|
2865
|
-
const
|
|
2865
|
+
const h = Math.abs(Ir(i, s)), y = Rt(
|
|
2866
2866
|
i,
|
|
2867
|
-
!Number.isNaN(
|
|
2867
|
+
!Number.isNaN(h) && h > 12 ? 12 : h
|
|
2868
2868
|
);
|
|
2869
2869
|
return r(y);
|
|
2870
|
-
},
|
|
2870
|
+
}, v = () => {
|
|
2871
2871
|
if (!p) {
|
|
2872
2872
|
const E = Tr(i, 12);
|
|
2873
2873
|
return r(E);
|
|
2874
2874
|
}
|
|
2875
|
-
const
|
|
2875
|
+
const h = Math.abs(Ir(p, i)), y = Tr(
|
|
2876
2876
|
i,
|
|
2877
|
-
!Number.isNaN(
|
|
2877
|
+
!Number.isNaN(h) && h > 12 ? 12 : h
|
|
2878
2878
|
);
|
|
2879
2879
|
return d === 2 && pr(y, p) ? r(Rt(y, 1)) : r(y);
|
|
2880
2880
|
};
|
|
@@ -2886,7 +2886,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2886
2886
|
[c.navButtonPrev]: !0,
|
|
2887
2887
|
[c.navButtonInteractionDisabled]: !l
|
|
2888
2888
|
}),
|
|
2889
|
-
onClick:
|
|
2889
|
+
onClick: b
|
|
2890
2890
|
},
|
|
2891
2891
|
/* @__PURE__ */ e.createElement(x, { source: D_, kind: "subtle" })
|
|
2892
2892
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -2908,7 +2908,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2908
2908
|
[c.navButtonNext]: !0,
|
|
2909
2909
|
[c.navButtonInteractionDisabled]: !o
|
|
2910
2910
|
}),
|
|
2911
|
-
onClick:
|
|
2911
|
+
onClick: f
|
|
2912
2912
|
},
|
|
2913
2913
|
/* @__PURE__ */ e.createElement(x, { source: La, kind: "subtle" })
|
|
2914
2914
|
), /* @__PURE__ */ e.createElement(
|
|
@@ -2919,7 +2919,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
2919
2919
|
[c.navButtonNext]: !0,
|
|
2920
2920
|
[c.navButtonInteractionDisabled]: !o
|
|
2921
2921
|
}),
|
|
2922
|
-
onClick:
|
|
2922
|
+
onClick: v
|
|
2923
2923
|
},
|
|
2924
2924
|
/* @__PURE__ */ e.createElement(x, { source: A_, kind: "subtle" })
|
|
2925
2925
|
)));
|
|
@@ -3014,25 +3014,25 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
3014
3014
|
"navbarElement",
|
|
3015
3015
|
"renderDay",
|
|
3016
3016
|
"innerRef"
|
|
3017
|
-
]), [m,
|
|
3017
|
+
]), [m, f] = e.useState(o || /* @__PURE__ */ new Date());
|
|
3018
3018
|
e.useEffect(() => {
|
|
3019
|
-
o && o !== m &&
|
|
3019
|
+
o && o !== m && f(o);
|
|
3020
3020
|
}, [o, m]), e.useEffect(() => {
|
|
3021
|
-
_ && o !== m && (f_(m, { from: l, to: _ }) ||
|
|
3021
|
+
_ && o !== m && (f_(m, { from: l, to: _ }) || f(_));
|
|
3022
3022
|
}, [o, m, _, l]);
|
|
3023
|
-
const
|
|
3023
|
+
const b = e.useCallback(
|
|
3024
3024
|
(E) => {
|
|
3025
3025
|
if (t.onMonthChange && E) {
|
|
3026
3026
|
t.onMonthChange(E);
|
|
3027
3027
|
return;
|
|
3028
3028
|
}
|
|
3029
|
-
|
|
3029
|
+
f(E);
|
|
3030
3030
|
},
|
|
3031
3031
|
[o, t.onMonthChange]
|
|
3032
3032
|
);
|
|
3033
|
-
let
|
|
3034
|
-
(n === 0 || n && n < 7) && (
|
|
3035
|
-
const
|
|
3033
|
+
let v = 1;
|
|
3034
|
+
(n === 0 || n && n < 7) && (v = n);
|
|
3035
|
+
const h = e.useMemo(
|
|
3036
3036
|
() => Rl(r, a),
|
|
3037
3037
|
[r, a]
|
|
3038
3038
|
);
|
|
@@ -3043,19 +3043,19 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
3043
3043
|
Pl,
|
|
3044
3044
|
{
|
|
3045
3045
|
month: m,
|
|
3046
|
-
classNames:
|
|
3046
|
+
classNames: h,
|
|
3047
3047
|
numberOfMonths: c,
|
|
3048
|
-
onMonthChange:
|
|
3048
|
+
onMonthChange: b,
|
|
3049
3049
|
toMonth: _,
|
|
3050
3050
|
fromMonth: l
|
|
3051
3051
|
}
|
|
3052
3052
|
),
|
|
3053
3053
|
ref: s,
|
|
3054
|
-
classNames:
|
|
3054
|
+
classNames: h,
|
|
3055
3055
|
numberOfMonths: c,
|
|
3056
3056
|
toMonth: _,
|
|
3057
3057
|
fromMonth: l,
|
|
3058
|
-
firstDayOfWeek:
|
|
3058
|
+
firstDayOfWeek: v,
|
|
3059
3059
|
month: m,
|
|
3060
3060
|
renderDay: i || Ml
|
|
3061
3061
|
}, p)
|
|
@@ -3064,7 +3064,7 @@ const ol = "lc-Avatar-module__avatar___1zTCE", ll = "lc-Avatar-module__avatar__s
|
|
|
3064
3064
|
(t, a) => /* @__PURE__ */ e.createElement(Ll, k({ innerRef: a }, t))
|
|
3065
3065
|
);
|
|
3066
3066
|
Ol.displayName = "DatePicker";
|
|
3067
|
-
var
|
|
3067
|
+
var J = /* @__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))(J || {});
|
|
3068
3068
|
const Gl = (t) => {
|
|
3069
3069
|
const a = b_(
|
|
3070
3070
|
t.initialFromDate,
|
|
@@ -3079,7 +3079,7 @@ const Gl = (t) => {
|
|
|
3079
3079
|
}), Fl(t));
|
|
3080
3080
|
function o(l, n) {
|
|
3081
3081
|
switch (n.type) {
|
|
3082
|
-
case
|
|
3082
|
+
case J.NEW_SELECTED_ITEM:
|
|
3083
3083
|
return {
|
|
3084
3084
|
selectedItem: n.payload.selectedItem,
|
|
3085
3085
|
from: void 0,
|
|
@@ -3087,36 +3087,36 @@ const Gl = (t) => {
|
|
|
3087
3087
|
temporaryTo: void 0,
|
|
3088
3088
|
currentMonth: a
|
|
3089
3089
|
};
|
|
3090
|
-
case
|
|
3090
|
+
case J.NEW_TEMPORARY_TO_VALUE:
|
|
3091
3091
|
return T(k({}, l), {
|
|
3092
3092
|
temporaryTo: n.payload.date
|
|
3093
3093
|
});
|
|
3094
|
-
case
|
|
3094
|
+
case J.SELECT_FIRST_DAY:
|
|
3095
3095
|
return T(k({}, l), {
|
|
3096
3096
|
from: n.payload.date,
|
|
3097
3097
|
to: void 0,
|
|
3098
3098
|
temporaryTo: void 0
|
|
3099
3099
|
});
|
|
3100
|
-
case
|
|
3100
|
+
case J.SELECT_SECOND_DAY_AS_FROM:
|
|
3101
3101
|
return T(k({}, l), {
|
|
3102
3102
|
from: n.payload.date,
|
|
3103
3103
|
to: l.from,
|
|
3104
3104
|
temporaryTo: l.from
|
|
3105
3105
|
});
|
|
3106
|
-
case
|
|
3106
|
+
case J.SELECT_SECOND_DAY_AS_TO:
|
|
3107
3107
|
return T(k({}, l), {
|
|
3108
3108
|
to: n.payload.date,
|
|
3109
3109
|
temporaryTo: n.payload.date
|
|
3110
3110
|
});
|
|
3111
|
-
case
|
|
3111
|
+
case J.CURRENT_MONTH_CHANGE:
|
|
3112
3112
|
return T(k({}, l), {
|
|
3113
3113
|
currentMonth: n.payload.date
|
|
3114
3114
|
});
|
|
3115
|
-
case
|
|
3115
|
+
case J.SET_FROM:
|
|
3116
3116
|
return T(k({}, l), {
|
|
3117
3117
|
from: n.payload.date
|
|
3118
3118
|
});
|
|
3119
|
-
case
|
|
3119
|
+
case J.SET_TO:
|
|
3120
3120
|
return T(k({}, l), {
|
|
3121
3121
|
to: n.payload.date
|
|
3122
3122
|
});
|
|
@@ -3147,122 +3147,122 @@ const Gl = (t) => {
|
|
|
3147
3147
|
});
|
|
3148
3148
|
Ft(() => {
|
|
3149
3149
|
i({
|
|
3150
|
-
type:
|
|
3150
|
+
type: J.SET_FROM,
|
|
3151
3151
|
payload: { date: r }
|
|
3152
3152
|
});
|
|
3153
3153
|
}, [r]), Ft(() => {
|
|
3154
3154
|
i({
|
|
3155
|
-
type:
|
|
3155
|
+
type: J.SET_TO,
|
|
3156
3156
|
payload: { date: _ }
|
|
3157
3157
|
});
|
|
3158
3158
|
}, [_]), Ft(() => {
|
|
3159
|
-
const
|
|
3159
|
+
const v = b_(
|
|
3160
3160
|
r,
|
|
3161
3161
|
_,
|
|
3162
3162
|
o
|
|
3163
3163
|
);
|
|
3164
3164
|
i({
|
|
3165
|
-
type:
|
|
3166
|
-
payload: { date:
|
|
3165
|
+
type: J.CURRENT_MONTH_CHANGE,
|
|
3166
|
+
payload: { date: v }
|
|
3167
3167
|
});
|
|
3168
3168
|
}, [o, r, _]), Ft(() => {
|
|
3169
|
-
const { from:
|
|
3170
|
-
if (!(
|
|
3169
|
+
const { from: v, selectedItem: h, to: y } = d;
|
|
3170
|
+
if (!(v && y))
|
|
3171
3171
|
return;
|
|
3172
|
-
const E = oa(
|
|
3172
|
+
const E = oa(h, t);
|
|
3173
3173
|
E && (l == null || l(T(k({}, E), {
|
|
3174
3174
|
value: {
|
|
3175
|
-
from:
|
|
3175
|
+
from: v,
|
|
3176
3176
|
to: y
|
|
3177
3177
|
}
|
|
3178
3178
|
})));
|
|
3179
3179
|
}, [d.from, d.to, d.selectedItem, t, l]), Ft(() => {
|
|
3180
|
-
const { selectedItem:
|
|
3181
|
-
if (
|
|
3180
|
+
const { selectedItem: v } = d;
|
|
3181
|
+
if (v === c.current)
|
|
3182
3182
|
return;
|
|
3183
|
-
if (!
|
|
3183
|
+
if (!v) {
|
|
3184
3184
|
l(null);
|
|
3185
3185
|
return;
|
|
3186
3186
|
}
|
|
3187
|
-
if (!oa(
|
|
3187
|
+
if (!oa(v, t))
|
|
3188
3188
|
return;
|
|
3189
3189
|
const y = t.reduce(
|
|
3190
3190
|
(E, $) => T(k({}, E), { [$.id]: $ }),
|
|
3191
3191
|
{}
|
|
3192
3192
|
);
|
|
3193
|
-
l(y[
|
|
3193
|
+
l(y[v]);
|
|
3194
3194
|
}, [l, d.selectedItem, t]);
|
|
3195
3195
|
const s = ka(
|
|
3196
|
-
(
|
|
3197
|
-
const
|
|
3198
|
-
!zr(d.from, d.to) &&
|
|
3199
|
-
type:
|
|
3200
|
-
payload: { date:
|
|
3196
|
+
(v) => {
|
|
3197
|
+
const h = o ? wr(o, v) >= 0 : !0;
|
|
3198
|
+
!zr(d.from, d.to) && h && i({
|
|
3199
|
+
type: J.NEW_TEMPORARY_TO_VALUE,
|
|
3200
|
+
payload: { date: v }
|
|
3201
3201
|
});
|
|
3202
3202
|
},
|
|
3203
3203
|
[o, d.from, d.to]
|
|
3204
3204
|
), p = ka(
|
|
3205
|
-
(
|
|
3206
|
-
const { from:
|
|
3207
|
-
f_(
|
|
3208
|
-
type:
|
|
3209
|
-
payload: { date:
|
|
3210
|
-
}) :
|
|
3211
|
-
type:
|
|
3212
|
-
payload: { date:
|
|
3205
|
+
(v) => {
|
|
3206
|
+
const { from: h, to: y } = d;
|
|
3207
|
+
f_(v, { to: o }) && (zr(h, y) ? i({
|
|
3208
|
+
type: J.SELECT_FIRST_DAY,
|
|
3209
|
+
payload: { date: v }
|
|
3210
|
+
}) : h && gr(v, h) || h && fr(v, h) ? i({
|
|
3211
|
+
type: J.SELECT_SECOND_DAY_AS_TO,
|
|
3212
|
+
payload: { date: v }
|
|
3213
3213
|
}) : i({
|
|
3214
|
-
type:
|
|
3215
|
-
payload: { date:
|
|
3214
|
+
type: J.SELECT_SECOND_DAY_AS_FROM,
|
|
3215
|
+
payload: { date: v }
|
|
3216
3216
|
}));
|
|
3217
3217
|
},
|
|
3218
3218
|
[o, d.from, d.to]
|
|
3219
3219
|
), m = ka(
|
|
3220
|
-
(
|
|
3221
|
-
if (
|
|
3220
|
+
(v) => {
|
|
3221
|
+
if (v === null) {
|
|
3222
3222
|
i({
|
|
3223
|
-
type:
|
|
3223
|
+
type: J.NEW_SELECTED_ITEM,
|
|
3224
3224
|
payload: { selectedItem: null }
|
|
3225
3225
|
});
|
|
3226
3226
|
return;
|
|
3227
3227
|
}
|
|
3228
|
-
oa(
|
|
3229
|
-
type:
|
|
3230
|
-
payload: { selectedItem:
|
|
3228
|
+
oa(v, t) && i({
|
|
3229
|
+
type: J.NEW_SELECTED_ITEM,
|
|
3230
|
+
payload: { selectedItem: v }
|
|
3231
3231
|
});
|
|
3232
3232
|
},
|
|
3233
3233
|
[t]
|
|
3234
|
-
),
|
|
3234
|
+
), f = ka((v) => {
|
|
3235
3235
|
i({
|
|
3236
|
-
type:
|
|
3237
|
-
payload: { date:
|
|
3236
|
+
type: J.CURRENT_MONTH_CHANGE,
|
|
3237
|
+
payload: { date: v }
|
|
3238
3238
|
});
|
|
3239
3239
|
}, []);
|
|
3240
3240
|
return n((() => {
|
|
3241
|
-
const { currentMonth:
|
|
3242
|
-
() => Al(
|
|
3243
|
-
[
|
|
3244
|
-
), C = Ea(() => oa(y, t), [t, y]),
|
|
3241
|
+
const { currentMonth: v, from: h, selectedItem: y, temporaryTo: E, to: $ } = d, w = Ea(
|
|
3242
|
+
() => Al(h, E),
|
|
3243
|
+
[h, E]
|
|
3244
|
+
), C = Ea(() => oa(y, t), [t, y]), g = Ea(() => [h, { from: h, to: E }], [h, E]), N = Ea(() => o ? { after: o } : void 0, [o]);
|
|
3245
3245
|
return {
|
|
3246
3246
|
select: {
|
|
3247
3247
|
onItemSelect: m,
|
|
3248
3248
|
selected: y || ""
|
|
3249
3249
|
},
|
|
3250
3250
|
inputs: {
|
|
3251
|
-
fromDate:
|
|
3251
|
+
fromDate: h,
|
|
3252
3252
|
toDate: $
|
|
3253
3253
|
},
|
|
3254
3254
|
datepicker: {
|
|
3255
3255
|
range: !0,
|
|
3256
|
-
month:
|
|
3256
|
+
month: v,
|
|
3257
3257
|
numberOfMonths: 2,
|
|
3258
3258
|
onDayClick: p,
|
|
3259
|
-
selectedDays:
|
|
3259
|
+
selectedDays: g,
|
|
3260
3260
|
modifiers: w,
|
|
3261
3261
|
initialMonth: o && Rt(o, 1),
|
|
3262
3262
|
toMonth: o,
|
|
3263
3263
|
disabledDays: N,
|
|
3264
3264
|
onDayMouseEnter: s,
|
|
3265
|
-
onMonthChange:
|
|
3265
|
+
onMonthChange: f
|
|
3266
3266
|
},
|
|
3267
3267
|
selectedOption: C
|
|
3268
3268
|
};
|
|
@@ -3320,35 +3320,35 @@ const ci = (t) => {
|
|
|
3320
3320
|
hideLabelOnOpen: d,
|
|
3321
3321
|
onClick: i
|
|
3322
3322
|
}) => {
|
|
3323
|
-
const [s, p] = e.useState(c), [m,
|
|
3323
|
+
const [s, p] = e.useState(c), [m, f] = e.useState(0), b = e.useRef(null), v = u(
|
|
3324
3324
|
H[z],
|
|
3325
3325
|
l && H[`${z}--with-divider`],
|
|
3326
3326
|
a
|
|
3327
|
-
),
|
|
3327
|
+
), h = d && s, y = typeof o == "string", E = (w) => {
|
|
3328
3328
|
p((C) => !C), w.currentTarget.blur(), i == null || i(w);
|
|
3329
3329
|
}, $ = (w) => {
|
|
3330
|
-
const
|
|
3331
|
-
Hl.includes(
|
|
3330
|
+
const g = w.target.tagName.toLowerCase();
|
|
3331
|
+
Hl.includes(g) || (p((N) => !N), i == null || i(w));
|
|
3332
3332
|
};
|
|
3333
3333
|
return e.useEffect(() => {
|
|
3334
3334
|
const w = !!window.IntersectionObserver;
|
|
3335
|
-
if (
|
|
3335
|
+
if (b.current && w) {
|
|
3336
3336
|
const C = new ResizeObserver(() => {
|
|
3337
|
-
|
|
3337
|
+
b.current && m !== b.current.offsetHeight && f(b.current.offsetHeight);
|
|
3338
3338
|
});
|
|
3339
|
-
return C.observe(
|
|
3339
|
+
return C.observe(b.current), () => C.disconnect();
|
|
3340
3340
|
}
|
|
3341
|
-
}, [
|
|
3341
|
+
}, [b]), /* @__PURE__ */ e.createElement("div", { className: v }, /* @__PURE__ */ e.createElement(
|
|
3342
3342
|
"div",
|
|
3343
3343
|
{
|
|
3344
3344
|
className: u(
|
|
3345
3345
|
H[`${z}__label-wrapper`],
|
|
3346
3346
|
d && H[`${z}__label-wrapper--fading`],
|
|
3347
|
-
|
|
3347
|
+
h && H[`${z}__label-wrapper--hide`],
|
|
3348
3348
|
s && H[`${z}__label-wrapper--open`]
|
|
3349
3349
|
),
|
|
3350
3350
|
"aria-expanded": s,
|
|
3351
|
-
"aria-hidden":
|
|
3351
|
+
"aria-hidden": h,
|
|
3352
3352
|
"data-testid": "details-card-label",
|
|
3353
3353
|
onClick: $
|
|
3354
3354
|
},
|
|
@@ -3408,7 +3408,7 @@ const ci = (t) => {
|
|
|
3408
3408
|
/* @__PURE__ */ e.createElement(
|
|
3409
3409
|
"div",
|
|
3410
3410
|
{
|
|
3411
|
-
ref:
|
|
3411
|
+
ref: b,
|
|
3412
3412
|
className: u(
|
|
3413
3413
|
H[`${z}__content`],
|
|
3414
3414
|
n && H[`${z}__content--full-space`],
|
|
@@ -3491,7 +3491,7 @@ const ci = (t) => {
|
|
|
3491
3491
|
"formFooter"
|
|
3492
3492
|
]);
|
|
3493
3493
|
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(ne, { size: "sm", className: Kt[`${Yt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(B, { as: "p", size: "sm", className: Kt[`${Yt}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: Kt[`${Yt}__footer`] }, o));
|
|
3494
|
-
},
|
|
3494
|
+
}, Q = {
|
|
3495
3495
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
3496
3496
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
3497
3497
|
"form-field__wrapper--inline": "lc-FormField-module__form-field__wrapper--inline___Ubvrn",
|
|
@@ -3508,7 +3508,7 @@ const ci = (t) => {
|
|
|
3508
3508
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___DCBjC",
|
|
3509
3509
|
"form-field__content": "lc-FormField-module__form-field__content___XaOx3",
|
|
3510
3510
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___NpVw4"
|
|
3511
|
-
},
|
|
3511
|
+
}, ee = "form-field", mi = ({
|
|
3512
3512
|
inline: t,
|
|
3513
3513
|
error: a,
|
|
3514
3514
|
description: r,
|
|
@@ -3520,49 +3520,49 @@ const ci = (t) => {
|
|
|
3520
3520
|
labelRightNode: d
|
|
3521
3521
|
}) => {
|
|
3522
3522
|
const i = e.useRef(null), [s, p] = e.useState("auto"), m = u(
|
|
3523
|
-
|
|
3523
|
+
Q[ee],
|
|
3524
3524
|
{
|
|
3525
|
-
[
|
|
3525
|
+
[Q[`${ee}--inline`]]: t
|
|
3526
3526
|
},
|
|
3527
3527
|
l
|
|
3528
3528
|
);
|
|
3529
3529
|
return e.useEffect(() => {
|
|
3530
|
-
const
|
|
3531
|
-
return t &&
|
|
3530
|
+
const f = i;
|
|
3531
|
+
return t && f.current ? p(`${f.current.clientHeight}px`) : p("auto");
|
|
3532
3532
|
}), /* @__PURE__ */ e.createElement("div", { className: m }, d && t && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3533
3533
|
B,
|
|
3534
3534
|
{
|
|
3535
3535
|
as: "div",
|
|
3536
3536
|
size: "sm",
|
|
3537
3537
|
className: u(
|
|
3538
|
-
|
|
3539
|
-
|
|
3538
|
+
Q[`${ee}__label-right-node`],
|
|
3539
|
+
Q[`${ee}__label-right-node--inline`]
|
|
3540
3540
|
)
|
|
3541
3541
|
},
|
|
3542
3542
|
d
|
|
3543
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
3543
|
+
), /* @__PURE__ */ e.createElement("div", { className: Q[`${ee}__row-break`] })), /* @__PURE__ */ e.createElement(
|
|
3544
3544
|
"div",
|
|
3545
3545
|
{
|
|
3546
3546
|
className: u(
|
|
3547
|
-
|
|
3548
|
-
t &&
|
|
3547
|
+
Q[`${ee}__wrapper`],
|
|
3548
|
+
t && Q[`${ee}__wrapper--inline`]
|
|
3549
3549
|
)
|
|
3550
3550
|
},
|
|
3551
3551
|
(_ || d) && /* @__PURE__ */ e.createElement(
|
|
3552
3552
|
"div",
|
|
3553
3553
|
{
|
|
3554
3554
|
className: u(
|
|
3555
|
-
|
|
3556
|
-
t &&
|
|
3557
|
-
!_ &&
|
|
3555
|
+
Q[`${ee}__label`],
|
|
3556
|
+
t && Q[`${ee}__label--inline`],
|
|
3557
|
+
!_ && Q[`${ee}__label--no-text`]
|
|
3558
3558
|
)
|
|
3559
3559
|
},
|
|
3560
3560
|
_ && /* @__PURE__ */ e.createElement(
|
|
3561
3561
|
"div",
|
|
3562
3562
|
{
|
|
3563
3563
|
className: u(
|
|
3564
|
-
|
|
3565
|
-
t &&
|
|
3564
|
+
Q[`${ee}__label-wrapper`],
|
|
3565
|
+
t && Q[`${ee}__label-wrapper--inline`]
|
|
3566
3566
|
),
|
|
3567
3567
|
style: {
|
|
3568
3568
|
height: s
|
|
@@ -3571,7 +3571,7 @@ const ci = (t) => {
|
|
|
3571
3571
|
/* @__PURE__ */ e.createElement(
|
|
3572
3572
|
"label",
|
|
3573
3573
|
{
|
|
3574
|
-
className:
|
|
3574
|
+
className: Q[`${ee}__label-left-node`],
|
|
3575
3575
|
htmlFor: n
|
|
3576
3576
|
},
|
|
3577
3577
|
/* @__PURE__ */ e.createElement(B, { as: "span", size: "sm" }, _)
|
|
@@ -3582,8 +3582,8 @@ const ci = (t) => {
|
|
|
3582
3582
|
as: "div",
|
|
3583
3583
|
size: "sm",
|
|
3584
3584
|
className: u(
|
|
3585
|
-
|
|
3586
|
-
t &&
|
|
3585
|
+
Q[`${ee}__label-adornment`],
|
|
3586
|
+
t && Q[`${ee}__label-adornment--inline`]
|
|
3587
3587
|
)
|
|
3588
3588
|
},
|
|
3589
3589
|
o
|
|
@@ -3594,15 +3594,15 @@ const ci = (t) => {
|
|
|
3594
3594
|
{
|
|
3595
3595
|
as: "div",
|
|
3596
3596
|
size: "sm",
|
|
3597
|
-
className: u(
|
|
3597
|
+
className: u(Q[`${ee}__label-right-node`])
|
|
3598
3598
|
},
|
|
3599
3599
|
d
|
|
3600
3600
|
)
|
|
3601
3601
|
),
|
|
3602
|
-
/* @__PURE__ */ e.createElement("div", { className: u(
|
|
3602
|
+
/* @__PURE__ */ e.createElement("div", { className: u(Q[`${ee}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: i }, c), a && /* @__PURE__ */ e.createElement(Sr, null, a), !a && r && /* @__PURE__ */ e.createElement(
|
|
3603
3603
|
za,
|
|
3604
3604
|
{
|
|
3605
|
-
className: u(
|
|
3605
|
+
className: u(Q[`${ee}__content__description`])
|
|
3606
3606
|
},
|
|
3607
3607
|
r
|
|
3608
3608
|
))
|
|
@@ -3686,7 +3686,7 @@ const ci = (t) => {
|
|
|
3686
3686
|
]);
|
|
3687
3687
|
const s = e.useRef(null);
|
|
3688
3688
|
e.useImperativeHandle(c, () => s.current, []);
|
|
3689
|
-
const [p, m] = e.useState(!1), [
|
|
3689
|
+
const [p, m] = e.useState(!1), [f, b] = e.useState(!1), { type: v, onFocus: h, onBlur: y } = n, E = u(
|
|
3690
3690
|
o,
|
|
3691
3691
|
Le[Oe],
|
|
3692
3692
|
Le[`${Oe}--${t}`],
|
|
@@ -3697,7 +3697,7 @@ const ci = (t) => {
|
|
|
3697
3697
|
[Le[`${Oe}--crop`]]: l,
|
|
3698
3698
|
[Le[`${Oe}--read-only`]]: n.readOnly
|
|
3699
3699
|
}
|
|
3700
|
-
), $ = r ? "var(--content-disabled)" : "var(--content-default)", w =
|
|
3700
|
+
), $ = r ? "var(--content-disabled)" : "var(--content-default)", w = f ? F_ : R_, C = _ && _.place === "left", g = _ && v !== "password" && _.place === "right", N = () => {
|
|
3701
3701
|
var S;
|
|
3702
3702
|
(S = s.current) == null || S.focus();
|
|
3703
3703
|
};
|
|
@@ -3716,24 +3716,24 @@ const ci = (t) => {
|
|
|
3716
3716
|
T(k({}, n), {
|
|
3717
3717
|
ref: s,
|
|
3718
3718
|
onFocus: (S) => {
|
|
3719
|
-
m(!0),
|
|
3719
|
+
m(!0), h == null || h(S);
|
|
3720
3720
|
},
|
|
3721
3721
|
onBlur: (S) => {
|
|
3722
3722
|
m(!1), y == null || y(S);
|
|
3723
3723
|
},
|
|
3724
3724
|
disabled: r,
|
|
3725
|
-
type:
|
|
3725
|
+
type: v && !f ? v : "text"
|
|
3726
3726
|
})
|
|
3727
3727
|
),
|
|
3728
|
-
|
|
3729
|
-
|
|
3728
|
+
g && Yr(_, r),
|
|
3729
|
+
v === "password" && /* @__PURE__ */ e.createElement(
|
|
3730
3730
|
W,
|
|
3731
3731
|
{
|
|
3732
3732
|
disabled: r,
|
|
3733
3733
|
kind: "text",
|
|
3734
3734
|
size: "compact",
|
|
3735
3735
|
icon: /* @__PURE__ */ e.createElement(x, { customColor: $, source: w }),
|
|
3736
|
-
onClick: () =>
|
|
3736
|
+
onClick: () => b((S) => !S),
|
|
3737
3737
|
className: Le[`${Oe}__visibility-button`]
|
|
3738
3738
|
}
|
|
3739
3739
|
)
|
|
@@ -3802,8 +3802,8 @@ const ci = (t) => {
|
|
|
3802
3802
|
e.useEffect(() => {
|
|
3803
3803
|
if (!_)
|
|
3804
3804
|
return;
|
|
3805
|
-
const m = (
|
|
3806
|
-
|
|
3805
|
+
const m = (f) => {
|
|
3806
|
+
f.key === de.esc && r();
|
|
3807
3807
|
};
|
|
3808
3808
|
return document.addEventListener("keyup", m, !0), () => document.removeEventListener("keyup", m, !0);
|
|
3809
3809
|
}, [_]);
|
|
@@ -3869,8 +3869,8 @@ const ci = (t) => {
|
|
|
3869
3869
|
"onClose",
|
|
3870
3870
|
"contentClassName"
|
|
3871
3871
|
]);
|
|
3872
|
-
const p = u(se[dt], a), m = typeof t == "string",
|
|
3873
|
-
|
|
3872
|
+
const p = u(se[dt], a), m = typeof t == "string", f = (b) => {
|
|
3873
|
+
b.preventDefault(), b.stopPropagation(), n();
|
|
3874
3874
|
};
|
|
3875
3875
|
return /* @__PURE__ */ e.createElement(
|
|
3876
3876
|
en,
|
|
@@ -3893,7 +3893,7 @@ const ci = (t) => {
|
|
|
3893
3893
|
{
|
|
3894
3894
|
labelType: !!_,
|
|
3895
3895
|
customColor: "var(--color-white)",
|
|
3896
|
-
onClick:
|
|
3896
|
+
onClick: f
|
|
3897
3897
|
}
|
|
3898
3898
|
)),
|
|
3899
3899
|
!_ && /* @__PURE__ */ e.createElement(
|
|
@@ -3912,7 +3912,7 @@ const ci = (t) => {
|
|
|
3912
3912
|
},
|
|
3913
3913
|
r
|
|
3914
3914
|
),
|
|
3915
|
-
/* @__PURE__ */ e.createElement(Xr, { onClick:
|
|
3915
|
+
/* @__PURE__ */ e.createElement(Xr, { onClick: f })
|
|
3916
3916
|
),
|
|
3917
3917
|
/* @__PURE__ */ e.createElement(
|
|
3918
3918
|
"div",
|
|
@@ -4028,7 +4028,7 @@ const ci = (t) => {
|
|
|
4028
4028
|
"style",
|
|
4029
4029
|
"onChange"
|
|
4030
4030
|
]);
|
|
4031
|
-
const m = e.useRef(null),
|
|
4031
|
+
const m = e.useRef(null), f = u(
|
|
4032
4032
|
Pt[At],
|
|
4033
4033
|
{
|
|
4034
4034
|
[Pt[`${At}--error`]]: a,
|
|
@@ -4036,29 +4036,29 @@ const ci = (t) => {
|
|
|
4036
4036
|
[Pt[`${At}--disabled`]]: l
|
|
4037
4037
|
},
|
|
4038
4038
|
t
|
|
4039
|
-
),
|
|
4040
|
-
const N = parseInt(r, 10) +
|
|
4041
|
-
return
|
|
4042
|
-
}, y = (
|
|
4043
|
-
|
|
4044
|
-
}, E = (
|
|
4045
|
-
|
|
4046
|
-
const N =
|
|
4039
|
+
), b = (g) => d(String(g)), v = (g) => _ !== void 0 && g > _ ? _ : o !== void 0 && g < o ? o : g, h = (g) => {
|
|
4040
|
+
const N = parseInt(r, 10) + g;
|
|
4041
|
+
return b(v(N));
|
|
4042
|
+
}, y = (g) => {
|
|
4043
|
+
g.key === de.arrowDown && (g.preventDefault(), h(-1)), g.key === de.arrowUp && (g.preventDefault(), h(1));
|
|
4044
|
+
}, E = (g, N) => N !== void 0 && parseInt(g, 10) === N, $ = (g) => {
|
|
4045
|
+
g.preventDefault(), g.stopPropagation();
|
|
4046
|
+
const N = g.currentTarget.value.replace(
|
|
4047
4047
|
/((?!([-]|([-]?\d+))).)/,
|
|
4048
4048
|
""
|
|
4049
4049
|
);
|
|
4050
4050
|
if (N === "" || N === "-")
|
|
4051
|
-
return
|
|
4051
|
+
return b(N);
|
|
4052
4052
|
const S = parseInt(N, 10);
|
|
4053
|
-
return
|
|
4053
|
+
return b(v(S));
|
|
4054
4054
|
}, w = () => {
|
|
4055
|
-
var
|
|
4056
|
-
return (
|
|
4055
|
+
var g;
|
|
4056
|
+
return (g = m.current) == null || g.focus(), h(1);
|
|
4057
4057
|
}, C = () => {
|
|
4058
|
-
var
|
|
4059
|
-
return (
|
|
4058
|
+
var g;
|
|
4059
|
+
return (g = m.current) == null || g.focus(), h(-1);
|
|
4060
4060
|
};
|
|
4061
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
4061
|
+
return /* @__PURE__ */ e.createElement("div", { className: f, style: c }, /* @__PURE__ */ e.createElement(
|
|
4062
4062
|
"input",
|
|
4063
4063
|
T(k({
|
|
4064
4064
|
type: "text",
|
|
@@ -4119,6 +4119,7 @@ const ci = (t) => {
|
|
|
4119
4119
|
"checklist-item__content__label": "lc-CheckListItem-module__checklist-item__content__label___79MZg",
|
|
4120
4120
|
"checklist-item__content__label--open": "lc-CheckListItem-module__checklist-item__content__label--open___go30G",
|
|
4121
4121
|
"checklist-item__content__label--checked": "lc-CheckListItem-module__checklist-item__content__label--checked___-P-5P",
|
|
4122
|
+
"checklist-item__content__hint": "lc-CheckListItem-module__checklist-item__content__hint___s2ISh",
|
|
4122
4123
|
"checklist-item__content__inner": "lc-CheckListItem-module__checklist-item__content__inner___idZ9Y",
|
|
4123
4124
|
"checklist-item__content__inner--open": "lc-CheckListItem-module__checklist-item__content__inner--open___hwIrI",
|
|
4124
4125
|
"checklist-item__content__inner__description": "lc-CheckListItem-module__checklist-item__content__inner__description___FBp5h",
|
|
@@ -4135,20 +4136,20 @@ const ci = (t) => {
|
|
|
4135
4136
|
onClick: c,
|
|
4136
4137
|
cta: d
|
|
4137
4138
|
}) => {
|
|
4138
|
-
const i = e.useRef(null), s = e.useRef(null), [p, m] = e.useState(0),
|
|
4139
|
+
const i = e.useRef(null), s = e.useRef(null), [p, m] = e.useState(0), f = e.useRef(p);
|
|
4139
4140
|
return e.useEffect(() => {
|
|
4140
4141
|
a && i.current && i.current.focus();
|
|
4141
4142
|
}, [a]), e.useEffect(() => {
|
|
4142
|
-
const
|
|
4143
|
-
if (s.current &&
|
|
4144
|
-
const
|
|
4145
|
-
const y =
|
|
4143
|
+
const b = !!window.ResizeObserver;
|
|
4144
|
+
if (s.current && b) {
|
|
4145
|
+
const v = new ResizeObserver((h) => {
|
|
4146
|
+
const y = h[0];
|
|
4146
4147
|
if (!y)
|
|
4147
4148
|
return;
|
|
4148
4149
|
const E = y.contentRect.height + tn;
|
|
4149
|
-
|
|
4150
|
+
f.current !== E && (m(E), f.current = E);
|
|
4150
4151
|
});
|
|
4151
|
-
return
|
|
4152
|
+
return v.observe(s.current), () => v.disconnect();
|
|
4152
4153
|
}
|
|
4153
4154
|
}, [s]), /* @__PURE__ */ e.createElement(
|
|
4154
4155
|
"div",
|
|
@@ -4180,7 +4181,7 @@ const ci = (t) => {
|
|
|
4180
4181
|
[oe[`${le}__content--open`]]: a
|
|
4181
4182
|
})
|
|
4182
4183
|
},
|
|
4183
|
-
/* @__PURE__ */ e.createElement(
|
|
4184
|
+
/* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
4184
4185
|
ne,
|
|
4185
4186
|
{
|
|
4186
4187
|
size: "xs",
|
|
@@ -4200,8 +4201,7 @@ const ci = (t) => {
|
|
|
4200
4201
|
},
|
|
4201
4202
|
l
|
|
4202
4203
|
)
|
|
4203
|
-
),
|
|
4204
|
-
/* @__PURE__ */ e.createElement(
|
|
4204
|
+
), /* @__PURE__ */ e.createElement(
|
|
4205
4205
|
"div",
|
|
4206
4206
|
{
|
|
4207
4207
|
className: u(oe[`${le}__content__inner`], {
|
|
@@ -4217,11 +4217,11 @@ const ci = (t) => {
|
|
|
4217
4217
|
},
|
|
4218
4218
|
n
|
|
4219
4219
|
), /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__content__inner__cta`] }, d))
|
|
4220
|
-
),
|
|
4220
|
+
)),
|
|
4221
4221
|
!a && /* @__PURE__ */ e.createElement("div", { className: oe[`${le}__chevron`] }, /* @__PURE__ */ e.createElement(x, { source: La }))
|
|
4222
4222
|
)
|
|
4223
4223
|
);
|
|
4224
|
-
},
|
|
4224
|
+
}, Z = {
|
|
4225
4225
|
"onboarding-checklist": "lc-OnboardingChecklist-module__onboarding-checklist___xwJSs",
|
|
4226
4226
|
"onboarding-checklist--complete": "lc-OnboardingChecklist-module__onboarding-checklist--complete___7guKi",
|
|
4227
4227
|
"onboarding-checklist__complete": "lc-OnboardingChecklist-module__onboarding-checklist__complete___MWabe",
|
|
@@ -4230,6 +4230,7 @@ const ci = (t) => {
|
|
|
4230
4230
|
"onboarding-checklist__complete__title": "lc-OnboardingChecklist-module__onboarding-checklist__complete__title___Fenvu",
|
|
4231
4231
|
"onboarding-checklist__column": "lc-OnboardingChecklist-module__onboarding-checklist__column___Uzq7i",
|
|
4232
4232
|
"onboarding-checklist__column--right": "lc-OnboardingChecklist-module__onboarding-checklist__column--right___CZCfy",
|
|
4233
|
+
"onboarding-checklist__column--right--completed": "lc-OnboardingChecklist-module__onboarding-checklist__column--right--completed___8LSA8",
|
|
4233
4234
|
"onboarding-checklist__header": "lc-OnboardingChecklist-module__onboarding-checklist__header___GlTPZ",
|
|
4234
4235
|
"onboarding-checklist__header__label": "lc-OnboardingChecklist-module__onboarding-checklist__header__label___YpUEt",
|
|
4235
4236
|
"onboarding-checklist__header__title": "lc-OnboardingChecklist-module__onboarding-checklist__header__title___23C6-",
|
|
@@ -4238,7 +4239,7 @@ const ci = (t) => {
|
|
|
4238
4239
|
"onboarding-checklist__button": "lc-OnboardingChecklist-module__onboarding-checklist__button___Gnl9l",
|
|
4239
4240
|
"onboarding-checklist__button__icon": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon___oW59S",
|
|
4240
4241
|
"onboarding-checklist__button__icon--open": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon--open___HrIjs"
|
|
4241
|
-
},
|
|
4242
|
+
}, X = "onboarding-checklist", yi = ({
|
|
4242
4243
|
activeItemId: t,
|
|
4243
4244
|
completedItemsIds: a,
|
|
4244
4245
|
title: r,
|
|
@@ -4251,16 +4252,16 @@ const ci = (t) => {
|
|
|
4251
4252
|
className: i
|
|
4252
4253
|
}) => {
|
|
4253
4254
|
var $;
|
|
4254
|
-
const [s, p] = e.useState(c), [m,
|
|
4255
|
-
|
|
4255
|
+
const [s, p] = e.useState(c), [m, f] = e.useState(!c), [b, v] = e.useState(void 0), h = e.useRef(null), y = d.height || 96, E = () => {
|
|
4256
|
+
f((w) => !w);
|
|
4256
4257
|
};
|
|
4257
4258
|
return e.useEffect(() => {
|
|
4258
|
-
const w = d.delay || 1500, C =
|
|
4259
|
+
const w = d.delay || 1500, C = h.current;
|
|
4259
4260
|
if (c && C) {
|
|
4260
|
-
const
|
|
4261
|
-
|
|
4261
|
+
const g = C.offsetHeight;
|
|
4262
|
+
v(g);
|
|
4262
4263
|
const N = setTimeout(() => {
|
|
4263
|
-
p(!0),
|
|
4264
|
+
p(!0), f(!1);
|
|
4264
4265
|
}, w);
|
|
4265
4266
|
return () => {
|
|
4266
4267
|
clearTimeout(N);
|
|
@@ -4269,33 +4270,33 @@ const ci = (t) => {
|
|
|
4269
4270
|
}, [c]), /* @__PURE__ */ e.createElement(
|
|
4270
4271
|
"div",
|
|
4271
4272
|
{
|
|
4272
|
-
ref:
|
|
4273
|
+
ref: h,
|
|
4273
4274
|
className: u(
|
|
4274
|
-
|
|
4275
|
+
Z[X],
|
|
4275
4276
|
{
|
|
4276
|
-
[
|
|
4277
|
+
[Z[`${X}--complete`]]: s && !m
|
|
4277
4278
|
},
|
|
4278
4279
|
i
|
|
4279
4280
|
),
|
|
4280
4281
|
style: {
|
|
4281
|
-
height: !s || m ?
|
|
4282
|
+
height: !s || m ? b : y
|
|
4282
4283
|
}
|
|
4283
4284
|
},
|
|
4284
|
-
m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className:
|
|
4285
|
+
m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Z[`${X}__column`] }, /* @__PURE__ */ e.createElement("div", { className: Z[`${X}__header`] }, _ && /* @__PURE__ */ e.createElement(
|
|
4285
4286
|
B,
|
|
4286
4287
|
{
|
|
4287
4288
|
size: "lg",
|
|
4288
|
-
className:
|
|
4289
|
+
className: Z[`${X}__header__label`]
|
|
4289
4290
|
},
|
|
4290
4291
|
_
|
|
4291
4292
|
), /* @__PURE__ */ e.createElement(
|
|
4292
4293
|
ne,
|
|
4293
4294
|
{
|
|
4294
4295
|
size: "lg",
|
|
4295
|
-
className:
|
|
4296
|
+
className: Z[`${X}__header__title`]
|
|
4296
4297
|
},
|
|
4297
4298
|
r
|
|
4298
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
4299
|
+
)), /* @__PURE__ */ e.createElement("div", { className: Z[`${X}__checklist`] }, o.map((w, C) => /* @__PURE__ */ e.createElement(
|
|
4299
4300
|
an,
|
|
4300
4301
|
{
|
|
4301
4302
|
key: C,
|
|
@@ -4313,33 +4314,36 @@ const ci = (t) => {
|
|
|
4313
4314
|
"div",
|
|
4314
4315
|
{
|
|
4315
4316
|
className: u(
|
|
4316
|
-
|
|
4317
|
-
|
|
4317
|
+
Z[`${X}__column`],
|
|
4318
|
+
Z[`${X}__column--right`],
|
|
4319
|
+
{
|
|
4320
|
+
[Z[`${X}__column--right--completed`]]: c
|
|
4321
|
+
},
|
|
4318
4322
|
n
|
|
4319
4323
|
)
|
|
4320
4324
|
},
|
|
4321
|
-
!c && /* @__PURE__ */ e.createElement("div", { className:
|
|
4322
|
-
c && /* @__PURE__ */ e.createElement("div", { className:
|
|
4325
|
+
!c && /* @__PURE__ */ e.createElement("div", { className: Z[`${X}__placeholder`] }, ($ = o.find((w) => w.id === t)) == null ? void 0 : $.placeholder),
|
|
4326
|
+
c && /* @__PURE__ */ e.createElement("div", { className: Z[`${X}__placeholder`] }, d.placeholder)
|
|
4323
4327
|
)),
|
|
4324
|
-
!m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className:
|
|
4328
|
+
!m && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: Z[`${X}__complete`] }, /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
4325
4329
|
x,
|
|
4326
4330
|
{
|
|
4327
4331
|
size: "large",
|
|
4328
|
-
className:
|
|
4332
|
+
className: Z[`${X}__complete__icon`],
|
|
4329
4333
|
source: vr
|
|
4330
4334
|
}
|
|
4331
4335
|
)), /* @__PURE__ */ e.createElement("div", null, (d == null ? void 0 : d.greetingText) && /* @__PURE__ */ e.createElement(
|
|
4332
4336
|
B,
|
|
4333
4337
|
{
|
|
4334
4338
|
size: "lg",
|
|
4335
|
-
className:
|
|
4339
|
+
className: Z[`${X}__complete__label`]
|
|
4336
4340
|
},
|
|
4337
4341
|
d.greetingText
|
|
4338
4342
|
), /* @__PURE__ */ e.createElement(
|
|
4339
4343
|
ne,
|
|
4340
4344
|
{
|
|
4341
4345
|
size: "sm",
|
|
4342
|
-
className:
|
|
4346
|
+
className: Z[`${X}__complete__title`]
|
|
4343
4347
|
},
|
|
4344
4348
|
d.title
|
|
4345
4349
|
)))),
|
|
@@ -4352,12 +4356,12 @@ const ci = (t) => {
|
|
|
4352
4356
|
{
|
|
4353
4357
|
source: Ot,
|
|
4354
4358
|
className: u(
|
|
4355
|
-
|
|
4356
|
-
m &&
|
|
4359
|
+
Z[`${X}__button__icon`],
|
|
4360
|
+
m && Z[`${X}__button__icon--open`]
|
|
4357
4361
|
)
|
|
4358
4362
|
}
|
|
4359
4363
|
),
|
|
4360
|
-
className:
|
|
4364
|
+
className: Z[`${X}__button`],
|
|
4361
4365
|
onClick: E,
|
|
4362
4366
|
"aria-expanded": m
|
|
4363
4367
|
}
|
|
@@ -4508,13 +4512,13 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4508
4512
|
getFloatingProps: s,
|
|
4509
4513
|
getItemProps: p,
|
|
4510
4514
|
emptyStateText: m = "No results found",
|
|
4511
|
-
pickerType:
|
|
4512
|
-
listClassName:
|
|
4513
|
-
virtuosoProps:
|
|
4515
|
+
pickerType: f = "single",
|
|
4516
|
+
listClassName: b,
|
|
4517
|
+
virtuosoProps: v
|
|
4514
4518
|
}) => {
|
|
4515
|
-
const [
|
|
4519
|
+
const [h, y] = e.useState(0), E = o.length, $ = e.useCallback(
|
|
4516
4520
|
(C) => {
|
|
4517
|
-
C !==
|
|
4521
|
+
C !== h && (C < _ ? y(C + (E - 1) * rn) : y(_));
|
|
4518
4522
|
},
|
|
4519
4523
|
[E]
|
|
4520
4524
|
);
|
|
@@ -4538,7 +4542,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4538
4542
|
"data-testid": "picker-list",
|
|
4539
4543
|
ref: a,
|
|
4540
4544
|
tabIndex: -1,
|
|
4541
|
-
className: u(Qt.listbox,
|
|
4545
|
+
className: u(Qt.listbox, b),
|
|
4542
4546
|
style: T(k({}, r), {
|
|
4543
4547
|
maxHeight: _
|
|
4544
4548
|
})
|
|
@@ -4547,7 +4551,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4547
4551
|
"div",
|
|
4548
4552
|
k({
|
|
4549
4553
|
tabIndex: 0,
|
|
4550
|
-
"aria-multiselectable":
|
|
4554
|
+
"aria-multiselectable": f === "multi",
|
|
4551
4555
|
className: Qt["listbox-wrapper"]
|
|
4552
4556
|
}, s({
|
|
4553
4557
|
onKeyDown(C) {
|
|
@@ -4564,21 +4568,21 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4564
4568
|
lo,
|
|
4565
4569
|
T(k({
|
|
4566
4570
|
totalListHeightChanged: $,
|
|
4567
|
-
style: { height: `${
|
|
4571
|
+
style: { height: `${h}px`, maxHeight: _ },
|
|
4568
4572
|
totalCount: o.length,
|
|
4569
4573
|
data: o,
|
|
4570
4574
|
increaseViewportBy: 200
|
|
4571
|
-
},
|
|
4572
|
-
itemContent: (C,
|
|
4575
|
+
}, v), {
|
|
4576
|
+
itemContent: (C, g) => /* @__PURE__ */ e.createElement(
|
|
4573
4577
|
nn,
|
|
4574
4578
|
{
|
|
4575
4579
|
index: C,
|
|
4576
4580
|
getItemProps: p,
|
|
4577
4581
|
listElementsRef: c,
|
|
4578
4582
|
isActive: l === C,
|
|
4579
|
-
isSelected: w(
|
|
4583
|
+
isSelected: w(g.key),
|
|
4580
4584
|
onSelect: i,
|
|
4581
|
-
item:
|
|
4585
|
+
item: g,
|
|
4582
4586
|
numberOfItems: E
|
|
4583
4587
|
}
|
|
4584
4588
|
)
|
|
@@ -4618,9 +4622,9 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4618
4622
|
isError: s,
|
|
4619
4623
|
onClear: p,
|
|
4620
4624
|
children: m,
|
|
4621
|
-
setTriggerFocus:
|
|
4625
|
+
setTriggerFocus: f
|
|
4622
4626
|
}) => {
|
|
4623
|
-
const
|
|
4627
|
+
const b = u(
|
|
4624
4628
|
be[ie],
|
|
4625
4629
|
be[`${ie}--${_}`],
|
|
4626
4630
|
o && be[`${ie}--multi-select`],
|
|
@@ -4628,24 +4632,24 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4628
4632
|
c && be[`${ie}--disabled`],
|
|
4629
4633
|
i && be[`${ie}--focused`],
|
|
4630
4634
|
s && be[`${ie}--error`]
|
|
4631
|
-
),
|
|
4635
|
+
), v = !n && l && !c && !d, h = (y) => {
|
|
4632
4636
|
y.stopPropagation(), p();
|
|
4633
4637
|
};
|
|
4634
4638
|
return e.useEffect(() => {
|
|
4635
|
-
i ||
|
|
4639
|
+
i || f(!1);
|
|
4636
4640
|
}, [i]), /* @__PURE__ */ e.createElement(
|
|
4637
4641
|
"button",
|
|
4638
4642
|
T(k({
|
|
4639
4643
|
tabIndex: c ? -1 : 0,
|
|
4640
4644
|
"aria-disabled": c,
|
|
4641
4645
|
disabled: c,
|
|
4642
|
-
className:
|
|
4646
|
+
className: b,
|
|
4643
4647
|
"data-testid": r,
|
|
4644
4648
|
ref: t,
|
|
4645
4649
|
type: "button"
|
|
4646
4650
|
}, a()), {
|
|
4647
|
-
onFocus: () =>
|
|
4648
|
-
onBlur: () =>
|
|
4651
|
+
onFocus: () => f(!0),
|
|
4652
|
+
onBlur: () => f(!1)
|
|
4649
4653
|
}),
|
|
4650
4654
|
/* @__PURE__ */ e.createElement(
|
|
4651
4655
|
B,
|
|
@@ -4667,12 +4671,12 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4667
4671
|
be[`${ie}__controls--${_}`]
|
|
4668
4672
|
)
|
|
4669
4673
|
},
|
|
4670
|
-
|
|
4674
|
+
v && /* @__PURE__ */ e.createElement(
|
|
4671
4675
|
"div",
|
|
4672
4676
|
{
|
|
4673
4677
|
"data-testid": `${ie}__clear-icon`,
|
|
4674
4678
|
className: be[`${ie}__clear-icon`],
|
|
4675
|
-
onClick:
|
|
4679
|
+
onClick: h
|
|
4676
4680
|
},
|
|
4677
4681
|
/* @__PURE__ */ e.createElement(x, { kind: "primary", size: "small", source: Ie })
|
|
4678
4682
|
),
|
|
@@ -4721,8 +4725,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4721
4725
|
"tag__remove--hover": "lc-Tag-module__tag__remove--hover___2ROEU",
|
|
4722
4726
|
tag__node: pn,
|
|
4723
4727
|
tag__content: gn
|
|
4724
|
-
}, Ce = "tag", fn = (t) => t ? yr(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", h_ = (
|
|
4725
|
-
var
|
|
4728
|
+
}, Ce = "tag", fn = (t) => t ? yr(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", h_ = (v) => {
|
|
4729
|
+
var h = v, {
|
|
4726
4730
|
className: t = "",
|
|
4727
4731
|
children: a,
|
|
4728
4732
|
dismissible: r = !1,
|
|
@@ -4736,8 +4740,8 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4736
4740
|
rightNode: s,
|
|
4737
4741
|
customColor: p,
|
|
4738
4742
|
iconOnly: m = !1,
|
|
4739
|
-
value:
|
|
4740
|
-
} =
|
|
4743
|
+
value: f
|
|
4744
|
+
} = h, b = D(h, [
|
|
4741
4745
|
"className",
|
|
4742
4746
|
"children",
|
|
4743
4747
|
"dismissible",
|
|
@@ -4770,7 +4774,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4770
4774
|
color: p,
|
|
4771
4775
|
borderColor: p
|
|
4772
4776
|
}
|
|
4773
|
-
} : { style: { backgroundColor: p } } : {},
|
|
4777
|
+
} : { style: { backgroundColor: p } } : {}, g = () => {
|
|
4774
4778
|
if (p)
|
|
4775
4779
|
return d ? p : yr(p, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
4776
4780
|
};
|
|
@@ -4778,7 +4782,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4778
4782
|
B,
|
|
4779
4783
|
T(k(k({
|
|
4780
4784
|
className: E
|
|
4781
|
-
},
|
|
4785
|
+
}, b), C()), {
|
|
4782
4786
|
as: "div",
|
|
4783
4787
|
size: w
|
|
4784
4788
|
}),
|
|
@@ -4787,15 +4791,15 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4787
4791
|
{
|
|
4788
4792
|
"data-testid": "lc-tag-left-node",
|
|
4789
4793
|
className: we[`${Ce}__node`],
|
|
4790
|
-
style: { color:
|
|
4794
|
+
style: { color: g() }
|
|
4791
4795
|
},
|
|
4792
4796
|
i
|
|
4793
|
-
), /* @__PURE__ */ e.createElement("div", { className: we[`${Ce}__content`] },
|
|
4797
|
+
), /* @__PURE__ */ e.createElement("div", { className: we[`${Ce}__content`] }, f || a), s && !m && /* @__PURE__ */ e.createElement(
|
|
4794
4798
|
"div",
|
|
4795
4799
|
{
|
|
4796
4800
|
"data-testid": "lc-tag-right-node",
|
|
4797
4801
|
className: we[`${Ce}__node`],
|
|
4798
|
-
style: { color:
|
|
4802
|
+
style: { color: g() }
|
|
4799
4803
|
},
|
|
4800
4804
|
s
|
|
4801
4805
|
)),
|
|
@@ -4817,7 +4821,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4817
4821
|
"data-dismiss-icon": !0,
|
|
4818
4822
|
source: Ie,
|
|
4819
4823
|
size: $,
|
|
4820
|
-
customColor:
|
|
4824
|
+
customColor: g()
|
|
4821
4825
|
}
|
|
4822
4826
|
)
|
|
4823
4827
|
)
|
|
@@ -4854,38 +4858,38 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4854
4858
|
onFilter: s,
|
|
4855
4859
|
onClear: p,
|
|
4856
4860
|
searchPhrase: m,
|
|
4857
|
-
virtualItemRef:
|
|
4858
|
-
isTriggerFocused:
|
|
4859
|
-
inputRef:
|
|
4861
|
+
virtualItemRef: f,
|
|
4862
|
+
isTriggerFocused: b,
|
|
4863
|
+
inputRef: v
|
|
4860
4864
|
}) => {
|
|
4861
|
-
const
|
|
4865
|
+
const h = t && !a;
|
|
4862
4866
|
e.useEffect(() => {
|
|
4863
|
-
n &&
|
|
4867
|
+
n && v != null && v.current && v.current.focus();
|
|
4864
4868
|
}, [o, n]);
|
|
4865
|
-
const y = (
|
|
4866
|
-
|
|
4869
|
+
const y = (g) => {
|
|
4870
|
+
g.key === "Backspace" && o && o.length > 0 && (g.preventDefault(), l === "multi" ? d(o[o.length - 1].key) : p()), g.key === "Delete" && (g.preventDefault(), p());
|
|
4867
4871
|
};
|
|
4868
|
-
e.useEffect(() => (!t &&
|
|
4869
|
-
const E = (
|
|
4872
|
+
e.useEffect(() => (!t && b ? document.addEventListener("keydown", y) : document.removeEventListener("keydown", y), () => document.removeEventListener("keydown", y)), [t, o, b]);
|
|
4873
|
+
const E = (g) => l === "single" && t && !a ? null : g != null && g.customElement ? /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item`] }, g.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item`] }, g.icon && /* @__PURE__ */ e.createElement(
|
|
4870
4874
|
x,
|
|
4871
4875
|
{
|
|
4872
|
-
source:
|
|
4876
|
+
source: g.icon,
|
|
4873
4877
|
className: he[`${ve}__item__icon`]
|
|
4874
4878
|
}
|
|
4875
|
-
),
|
|
4879
|
+
), g.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
4876
4880
|
"img",
|
|
4877
4881
|
{
|
|
4878
|
-
src:
|
|
4882
|
+
src: g.avatarSrc,
|
|
4879
4883
|
alt: "",
|
|
4880
4884
|
className: he[`${ve}__item__avatar`]
|
|
4881
4885
|
}
|
|
4882
|
-
), /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item__content`] },
|
|
4886
|
+
), /* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item__content`] }, g.name)), $ = (g) => s(g.target.value), w = (g) => {
|
|
4883
4887
|
var N, S;
|
|
4884
|
-
(N =
|
|
4888
|
+
(N = f.current) != null && N.id && g.key === "Enter" && i((S = f.current) == null ? void 0 : S.id), l === "multi" && (g.key === "Backspace" || g.key === "Delete") && !m && o && (o == null ? void 0 : o.length) > 0 && d(o[o.length - 1].key);
|
|
4885
4889
|
}, C = () => /* @__PURE__ */ e.createElement(
|
|
4886
4890
|
"input",
|
|
4887
4891
|
{
|
|
4888
|
-
ref:
|
|
4892
|
+
ref: v,
|
|
4889
4893
|
className: u(
|
|
4890
4894
|
he[`${ve}__input`],
|
|
4891
4895
|
he[`${ve}__input--${c}`]
|
|
@@ -4897,7 +4901,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4897
4901
|
value: m
|
|
4898
4902
|
}
|
|
4899
4903
|
);
|
|
4900
|
-
return !o || o.length === 0 ?
|
|
4904
|
+
return !o || o.length === 0 ? h ? C() : /* @__PURE__ */ e.createElement(
|
|
4901
4905
|
"div",
|
|
4902
4906
|
{
|
|
4903
4907
|
className: u({
|
|
@@ -4913,22 +4917,22 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4913
4917
|
[he[`${ve}--single`]]: l === "single"
|
|
4914
4918
|
})
|
|
4915
4919
|
},
|
|
4916
|
-
/* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item-container`] }, l === "single" ? E(o[0]) : o.map((
|
|
4920
|
+
/* @__PURE__ */ e.createElement("div", { className: he[`${ve}__item-container`] }, l === "single" ? E(o[0]) : o.map((g) => /* @__PURE__ */ e.createElement(
|
|
4917
4921
|
h_,
|
|
4918
4922
|
{
|
|
4919
|
-
key:
|
|
4923
|
+
key: g.key,
|
|
4920
4924
|
className: u(
|
|
4921
4925
|
he[`${ve}__tag`],
|
|
4922
4926
|
he[`${ve}__tag--${c}`]
|
|
4923
4927
|
),
|
|
4924
4928
|
disabled: r,
|
|
4925
4929
|
onRemove: (N) => {
|
|
4926
|
-
N.stopPropagation(), d(
|
|
4930
|
+
N.stopPropagation(), d(g.key);
|
|
4927
4931
|
}
|
|
4928
4932
|
},
|
|
4929
|
-
E(
|
|
4933
|
+
E(g)
|
|
4930
4934
|
))),
|
|
4931
|
-
|
|
4935
|
+
h && C()
|
|
4932
4936
|
);
|
|
4933
4937
|
}, hn = 10, vn = ({
|
|
4934
4938
|
disabled: t,
|
|
@@ -4943,11 +4947,11 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4943
4947
|
onVisibilityChange: i,
|
|
4944
4948
|
searchPhrase: s
|
|
4945
4949
|
}) => {
|
|
4946
|
-
const p = sa(), [m,
|
|
4950
|
+
const p = sa(), [m, f] = e.useState(!1), [b, v] = e.useState(null), [h, y] = e.useState(o), E = e.useRef([]), $ = e.useRef(null);
|
|
4947
4951
|
e.useEffect(() => {
|
|
4948
|
-
$.current = null,
|
|
4952
|
+
$.current = null, v(null);
|
|
4949
4953
|
}, [s]);
|
|
4950
|
-
const { refs: w, floatingStyles: C, context:
|
|
4954
|
+
const { refs: w, floatingStyles: C, context: g, isPositioned: N } = da({
|
|
4951
4955
|
nodeId: p,
|
|
4952
4956
|
open: d,
|
|
4953
4957
|
strategy: l,
|
|
@@ -4974,40 +4978,40 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
4974
4978
|
padding: hn
|
|
4975
4979
|
})
|
|
4976
4980
|
]
|
|
4977
|
-
}), S = pa(
|
|
4981
|
+
}), S = pa(g, k({
|
|
4978
4982
|
enabled: !t,
|
|
4979
4983
|
keyboardHandlers: !1,
|
|
4980
4984
|
toggle: !1
|
|
4981
|
-
}, c)), M = fa(
|
|
4985
|
+
}, c)), M = fa(g, { role: "listbox" }), G = ga(g, n), I = ao(g, {
|
|
4982
4986
|
enabled: a.length > 0 && !t,
|
|
4983
4987
|
listRef: E,
|
|
4984
|
-
activeIndex:
|
|
4985
|
-
onNavigate:
|
|
4988
|
+
activeIndex: b,
|
|
4989
|
+
onNavigate: v,
|
|
4986
4990
|
virtual: !0,
|
|
4987
4991
|
virtualItemRef: $,
|
|
4988
4992
|
disabledIndices: ln(
|
|
4989
4993
|
a,
|
|
4990
4994
|
(L) => !!L.disabled || !!L.groupHeader
|
|
4991
4995
|
)
|
|
4992
|
-
}), { getReferenceProps: O, getFloatingProps: Y, getItemProps:
|
|
4996
|
+
}), { getReferenceProps: O, getFloatingProps: Y, getItemProps: j } = ba(
|
|
4993
4997
|
[S, G, M, I]
|
|
4994
4998
|
);
|
|
4995
|
-
return !d && m &&
|
|
4999
|
+
return !d && m && f(!1), {
|
|
4996
5000
|
getReferenceProps: O,
|
|
4997
5001
|
getFloatingProps: Y,
|
|
4998
|
-
getItemProps:
|
|
5002
|
+
getItemProps: j,
|
|
4999
5003
|
setReference: w.setReference,
|
|
5000
5004
|
floatingStyles: C,
|
|
5001
5005
|
isPositioned: N,
|
|
5002
|
-
context:
|
|
5006
|
+
context: g,
|
|
5003
5007
|
nodeId: p,
|
|
5004
5008
|
setFloating: w.setFloating,
|
|
5005
|
-
activeIndex:
|
|
5009
|
+
activeIndex: b,
|
|
5006
5010
|
listElementsRef: E,
|
|
5007
5011
|
virtualItemRef: $,
|
|
5008
|
-
maxHeight:
|
|
5012
|
+
maxHeight: h,
|
|
5009
5013
|
pointer: m,
|
|
5010
|
-
setPointer:
|
|
5014
|
+
setPointer: f
|
|
5011
5015
|
};
|
|
5012
5016
|
}, kn = ({
|
|
5013
5017
|
selected: t,
|
|
@@ -5021,18 +5025,18 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5021
5025
|
}) => {
|
|
5022
5026
|
const [d, i] = e.useState(
|
|
5023
5027
|
() => (t == null ? void 0 : t.map(lr)) || []
|
|
5024
|
-
), s = t !== void 0, p = s ? (t == null ? void 0 : t.map(lr)) || [] : d, [m,
|
|
5025
|
-
!s && i([]), o(null),
|
|
5028
|
+
), s = t !== void 0, p = s ? (t == null ? void 0 : t.map(lr)) || [] : d, [m, f] = e.useState(""), b = (w) => f(w), v = (w) => $(w), h = () => {
|
|
5029
|
+
!s && i([]), o(null), f(""), l(!1);
|
|
5026
5030
|
}, y = () => {
|
|
5027
|
-
|
|
5031
|
+
b(""), c.current && (c.current.value = "");
|
|
5028
5032
|
}, E = e.useMemo(() => {
|
|
5029
5033
|
const w = r === "multi" && _;
|
|
5030
5034
|
let C = a;
|
|
5031
|
-
return m && (C = C.filter((
|
|
5035
|
+
return m && (C = C.filter((g) => {
|
|
5032
5036
|
var G;
|
|
5033
|
-
if (
|
|
5037
|
+
if (g.groupHeader)
|
|
5034
5038
|
return !1;
|
|
5035
|
-
const N = m.toLowerCase(), S =
|
|
5039
|
+
const N = m.toLowerCase(), S = g.name.toLowerCase(), M = (G = g.secondaryText) == null ? void 0 : G.toLowerCase();
|
|
5036
5040
|
return S.includes(N) || (M == null ? void 0 : M.includes(N));
|
|
5037
5041
|
})), w && C.length > 1 && (C = [
|
|
5038
5042
|
{
|
|
@@ -5042,22 +5046,22 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5042
5046
|
...C
|
|
5043
5047
|
]), C;
|
|
5044
5048
|
}, [m, a, r, _]), $ = (w) => {
|
|
5045
|
-
const C = a.find((
|
|
5049
|
+
const C = a.find((g) => g.key === w);
|
|
5046
5050
|
if (!((!C || C.disabled) && w !== Mt))
|
|
5047
5051
|
if (r === "single")
|
|
5048
5052
|
i(() => (C && o([C]), [w])), l(!1);
|
|
5049
5053
|
else if (w === Mt)
|
|
5050
5054
|
p.length === br(a).length ? i(() => (o(null), [])) : i(() => {
|
|
5051
|
-
const
|
|
5052
|
-
return o(
|
|
5055
|
+
const g = br(a);
|
|
5056
|
+
return o(g), g.map(({ key: N }) => N);
|
|
5053
5057
|
});
|
|
5054
5058
|
else {
|
|
5055
5059
|
if (s) {
|
|
5056
|
-
const
|
|
5060
|
+
const g = (t == null ? void 0 : t.map(lr)) || [], N = Jr(g, w);
|
|
5057
5061
|
o(a.filter(({ key: S }) => N.includes(S)));
|
|
5058
5062
|
} else
|
|
5059
|
-
i((
|
|
5060
|
-
const N = Jr(
|
|
5063
|
+
i((g) => {
|
|
5064
|
+
const N = Jr(g, w);
|
|
5061
5065
|
return o(a.filter(({ key: S }) => N.includes(S))), N;
|
|
5062
5066
|
});
|
|
5063
5067
|
n && y();
|
|
@@ -5068,14 +5072,14 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5068
5072
|
items: E,
|
|
5069
5073
|
searchPhrase: m,
|
|
5070
5074
|
handleSelect: $,
|
|
5071
|
-
handleOnFilter:
|
|
5072
|
-
handleItemRemove:
|
|
5073
|
-
handleClear:
|
|
5075
|
+
handleOnFilter: b,
|
|
5076
|
+
handleItemRemove: v,
|
|
5077
|
+
handleClear: h
|
|
5074
5078
|
};
|
|
5075
5079
|
}, En = {
|
|
5076
5080
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___2EDne"
|
|
5077
5081
|
}, wi = (Y) => {
|
|
5078
|
-
var
|
|
5082
|
+
var j = Y, {
|
|
5079
5083
|
id: t,
|
|
5080
5084
|
className: a,
|
|
5081
5085
|
listClassName: r,
|
|
@@ -5089,22 +5093,22 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5089
5093
|
placeholder: s = "Select option",
|
|
5090
5094
|
isRequired: p,
|
|
5091
5095
|
noSearchResultText: m = "No results found",
|
|
5092
|
-
selectAllOptionText:
|
|
5093
|
-
type:
|
|
5094
|
-
searchDisabled:
|
|
5095
|
-
hideClearButton:
|
|
5096
|
+
selectAllOptionText: f,
|
|
5097
|
+
type: b = "single",
|
|
5098
|
+
searchDisabled: v = !1,
|
|
5099
|
+
hideClearButton: h,
|
|
5096
5100
|
isVisible: y,
|
|
5097
5101
|
onOpen: E,
|
|
5098
5102
|
onClose: $,
|
|
5099
5103
|
openedOnInit: w = !1,
|
|
5100
5104
|
clearSearchAfterSelection: C = !0,
|
|
5101
|
-
onSelect:
|
|
5105
|
+
onSelect: g,
|
|
5102
5106
|
placement: N,
|
|
5103
5107
|
floatingStrategy: S,
|
|
5104
5108
|
useDismissHookProps: M,
|
|
5105
5109
|
useClickHookProps: G,
|
|
5106
5110
|
virtuosoProps: I
|
|
5107
|
-
} =
|
|
5111
|
+
} = j, O = D(j, [
|
|
5108
5112
|
"id",
|
|
5109
5113
|
"className",
|
|
5110
5114
|
"listClassName",
|
|
@@ -5147,9 +5151,9 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5147
5151
|
} = kn({
|
|
5148
5152
|
selected: d,
|
|
5149
5153
|
options: c,
|
|
5150
|
-
type:
|
|
5151
|
-
selectAllOptionText:
|
|
5152
|
-
onSelect:
|
|
5154
|
+
type: b,
|
|
5155
|
+
selectAllOptionText: f,
|
|
5156
|
+
onSelect: g,
|
|
5153
5157
|
setOpen: ft,
|
|
5154
5158
|
clearSearchAfterSelection: C,
|
|
5155
5159
|
inputRef: $t
|
|
@@ -5190,11 +5194,11 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5190
5194
|
isItemSelected: Nt.length > 0,
|
|
5191
5195
|
isOpen: Ne,
|
|
5192
5196
|
onClear: P,
|
|
5193
|
-
hideClearButton:
|
|
5197
|
+
hideClearButton: h,
|
|
5194
5198
|
isDisabled: l,
|
|
5195
5199
|
isError: n,
|
|
5196
5200
|
isRequired: p,
|
|
5197
|
-
isMultiSelect:
|
|
5201
|
+
isMultiSelect: b === "multi",
|
|
5198
5202
|
size: i,
|
|
5199
5203
|
setTriggerFocus: Ke
|
|
5200
5204
|
},
|
|
@@ -5202,11 +5206,11 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5202
5206
|
bn,
|
|
5203
5207
|
{
|
|
5204
5208
|
isOpen: Ne,
|
|
5205
|
-
isSearchDisabled:
|
|
5209
|
+
isSearchDisabled: v,
|
|
5206
5210
|
isDisabled: l,
|
|
5207
5211
|
placeholder: s,
|
|
5208
5212
|
selectedItems: d,
|
|
5209
|
-
type:
|
|
5213
|
+
type: b,
|
|
5210
5214
|
size: i,
|
|
5211
5215
|
clearSearchAfterSelection: C,
|
|
5212
5216
|
inputRef: $t,
|
|
@@ -5222,7 +5226,7 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5222
5226
|
), /* @__PURE__ */ e.createElement(ha, { id: ue }, Ne && /* @__PURE__ */ e.createElement(o_, null, /* @__PURE__ */ e.createElement(
|
|
5223
5227
|
sn,
|
|
5224
5228
|
{
|
|
5225
|
-
pickerType:
|
|
5229
|
+
pickerType: b,
|
|
5226
5230
|
options: bt,
|
|
5227
5231
|
listClassName: r,
|
|
5228
5232
|
context: V,
|
|
@@ -5256,22 +5260,22 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5256
5260
|
openedOnInit: s,
|
|
5257
5261
|
closeOnEsc: p = !0,
|
|
5258
5262
|
useDismissHookProps: m,
|
|
5259
|
-
useClickHookProps:
|
|
5260
|
-
floatingStrategy:
|
|
5263
|
+
useClickHookProps: f,
|
|
5264
|
+
floatingStrategy: b
|
|
5261
5265
|
}) => {
|
|
5262
|
-
const [
|
|
5263
|
-
Ke ? r == null || r(Ue) : a == null || a(Ue), !$ &&
|
|
5266
|
+
const [v, h] = e.useState(s), y = Ga(), E = sa(), $ = i !== void 0, w = $ ? i : v, C = typeof _ == "string", g = typeof t == "function", N = (Ke, Ue) => {
|
|
5267
|
+
Ke ? r == null || r(Ue) : a == null || a(Ue), !$ && h(Ke);
|
|
5264
5268
|
}, { refs: S, context: M, floatingStyles: G } = da({
|
|
5265
5269
|
nodeId: E,
|
|
5266
5270
|
open: w,
|
|
5267
5271
|
onOpenChange: N,
|
|
5268
5272
|
middleware: [ua(d), Ua(c), Er()],
|
|
5269
5273
|
placement: n,
|
|
5270
|
-
strategy:
|
|
5274
|
+
strategy: b,
|
|
5271
5275
|
whileElementsMounted: ma
|
|
5272
|
-
}), I = pa(M,
|
|
5276
|
+
}), I = pa(M, f), O = ga(M, k({
|
|
5273
5277
|
escapeKey: p
|
|
5274
|
-
}, m)), Y = fa(M), { getReferenceProps:
|
|
5278
|
+
}, m)), Y = fa(M), { getReferenceProps: j, getFloatingProps: L } = ba([
|
|
5275
5279
|
I,
|
|
5276
5280
|
O,
|
|
5277
5281
|
Y
|
|
@@ -5280,10 +5284,10 @@ const Mt = "select-all", ln = (t, a) => {
|
|
|
5280
5284
|
T(k({
|
|
5281
5285
|
"data-testid": "popover-trigger-button",
|
|
5282
5286
|
ref: S.setReference
|
|
5283
|
-
},
|
|
5287
|
+
}, j()), {
|
|
5284
5288
|
className: l
|
|
5285
5289
|
}),
|
|
5286
|
-
|
|
5290
|
+
g ? t() : t
|
|
5287
5291
|
), /* @__PURE__ */ e.createElement(ha, { id: E }, w && /* @__PURE__ */ e.createElement(mr, { context: M, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
5288
5292
|
"div",
|
|
5289
5293
|
k({
|
|
@@ -5396,17 +5400,14 @@ const Be = {
|
|
|
5396
5400
|
nameAdornment: p
|
|
5397
5401
|
},
|
|
5398
5402
|
onClick: m,
|
|
5399
|
-
isActive:
|
|
5403
|
+
isActive: f = !1
|
|
5400
5404
|
}) => /* @__PURE__ */ e.createElement(e.Fragment, null, c && /* @__PURE__ */ e.createElement("div", { className: Qe[`${et}__divider`] }), /* @__PURE__ */ e.createElement(
|
|
5401
5405
|
"a",
|
|
5402
5406
|
{
|
|
5403
5407
|
href: n,
|
|
5404
5408
|
target: "_blank",
|
|
5405
5409
|
"aria-label": `Go to ${l} product`,
|
|
5406
|
-
onClick: (
|
|
5407
|
-
var h;
|
|
5408
|
-
g.preventDefault(), m(g, t), (h = window.open(n, "_blank")) == null || h.focus();
|
|
5409
|
-
},
|
|
5410
|
+
onClick: (b) => m(b, t),
|
|
5410
5411
|
className: u(Qe[et], {
|
|
5411
5412
|
[Qe[`${et}--expired`]]: i
|
|
5412
5413
|
})
|
|
@@ -5419,7 +5420,7 @@ const Be = {
|
|
|
5419
5420
|
expired: i,
|
|
5420
5421
|
backgroundColors: _,
|
|
5421
5422
|
notificationCount: o,
|
|
5422
|
-
withBorder:
|
|
5423
|
+
withBorder: f
|
|
5423
5424
|
}
|
|
5424
5425
|
), /* @__PURE__ */ e.createElement(B, { as: "div", bold: !0, className: Qe[`${et}__name`] }, l, i && /* @__PURE__ */ e.createElement(
|
|
5425
5426
|
Lt,
|
|
@@ -5472,19 +5473,19 @@ const Be = {
|
|
|
5472
5473
|
}) => {
|
|
5473
5474
|
const [d, i] = e.useState(r), [s, p] = I_(
|
|
5474
5475
|
!1
|
|
5475
|
-
), m = Ga(),
|
|
5476
|
-
L ? o == null || o(U) : l == null || l(U), !
|
|
5476
|
+
), m = Ga(), f = sa(), b = _ !== void 0, v = b ? _ : d, h = (L, U) => {
|
|
5477
|
+
L ? o == null || o(U) : l == null || l(U), !b && i(L);
|
|
5477
5478
|
}, { refs: y, context: E, floatingStyles: $ } = da({
|
|
5478
|
-
nodeId:
|
|
5479
|
+
nodeId: f,
|
|
5479
5480
|
strategy: "fixed",
|
|
5480
5481
|
placement: "right-start",
|
|
5481
|
-
open:
|
|
5482
|
+
open: v,
|
|
5482
5483
|
onOpenChange: (L, U) => {
|
|
5483
|
-
p(!1),
|
|
5484
|
+
p(!1), h(L, U);
|
|
5484
5485
|
},
|
|
5485
5486
|
middleware: [ua({ mainAxis: 5 })],
|
|
5486
5487
|
whileElementsMounted: ma
|
|
5487
|
-
}), w = pa(E), C = fa(E),
|
|
5488
|
+
}), w = pa(E), C = fa(E), g = ga(E), { isMounted: N, styles: S } = kr(E, {
|
|
5488
5489
|
duration: 200,
|
|
5489
5490
|
common: {
|
|
5490
5491
|
transformOrigin: "left top"
|
|
@@ -5495,7 +5496,7 @@ const Be = {
|
|
|
5495
5496
|
}
|
|
5496
5497
|
}), { getReferenceProps: M, getFloatingProps: G } = ba([
|
|
5497
5498
|
w,
|
|
5498
|
-
|
|
5499
|
+
g,
|
|
5499
5500
|
C
|
|
5500
5501
|
]), I = t.find(
|
|
5501
5502
|
(L) => L.id === a
|
|
@@ -5507,7 +5508,7 @@ const Be = {
|
|
|
5507
5508
|
}, Y = t.reduce(
|
|
5508
5509
|
(L, U) => L + (U.notificationCount || 0),
|
|
5509
5510
|
0
|
|
5510
|
-
),
|
|
5511
|
+
), j = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", k({ ref: y.setReference }, M()), /* @__PURE__ */ e.createElement(
|
|
5511
5512
|
Lt,
|
|
5512
5513
|
{
|
|
5513
5514
|
isVisible: s,
|
|
@@ -5516,9 +5517,10 @@ const Be = {
|
|
|
5516
5517
|
offsetCrossAxis: 2,
|
|
5517
5518
|
arrowOffsetY: 2,
|
|
5518
5519
|
offsetMainAxis: 10,
|
|
5519
|
-
className:
|
|
5520
|
+
className: ea[`${ta}__tooltip`],
|
|
5520
5521
|
placement: "right",
|
|
5521
5522
|
floatingStrategy: "fixed",
|
|
5523
|
+
kind: "invert",
|
|
5522
5524
|
triggerRenderer: /* @__PURE__ */ e.createElement(
|
|
5523
5525
|
v_,
|
|
5524
5526
|
{
|
|
@@ -5531,7 +5533,7 @@ const Be = {
|
|
|
5531
5533
|
)
|
|
5532
5534
|
},
|
|
5533
5535
|
"Switch product"
|
|
5534
|
-
)), /* @__PURE__ */ e.createElement(ha, { id:
|
|
5536
|
+
)), /* @__PURE__ */ e.createElement(ha, { id: f }, /* @__PURE__ */ e.createElement(
|
|
5535
5537
|
"div",
|
|
5536
5538
|
k({
|
|
5537
5539
|
ref: y.setFloating,
|
|
@@ -5558,7 +5560,7 @@ const Be = {
|
|
|
5558
5560
|
href: c,
|
|
5559
5561
|
target: "_blank",
|
|
5560
5562
|
className: ea[`${ta}__footer-link`],
|
|
5561
|
-
onClick: () =>
|
|
5563
|
+
onClick: () => h(!1)
|
|
5562
5564
|
},
|
|
5563
5565
|
/* @__PURE__ */ e.createElement(B, { noMargin: !0 }, "powered by"),
|
|
5564
5566
|
/* @__PURE__ */ e.createElement(
|
|
@@ -5572,7 +5574,7 @@ const Be = {
|
|
|
5572
5574
|
))
|
|
5573
5575
|
)
|
|
5574
5576
|
)));
|
|
5575
|
-
return m === null ? /* @__PURE__ */ e.createElement(Ha, null,
|
|
5577
|
+
return m === null ? /* @__PURE__ */ e.createElement(Ha, null, j) : j;
|
|
5576
5578
|
}, Nn = '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', Sn = [
|
|
5577
5579
|
{
|
|
5578
5580
|
id: "livechat",
|
|
@@ -5871,10 +5873,10 @@ const aa = {
|
|
|
5871
5873
|
[aa[`${ra}--${t}`]]: t
|
|
5872
5874
|
},
|
|
5873
5875
|
r
|
|
5874
|
-
), m = 2 * Math.PI * ((s - i) / 2),
|
|
5876
|
+
), m = 2 * Math.PI * ((s - i) / 2), f = {
|
|
5875
5877
|
strokeDasharray: m.toFixed(3),
|
|
5876
5878
|
strokeDashoffset: `${((100 - d) / 100 * m).toFixed(3)}px`
|
|
5877
|
-
},
|
|
5879
|
+
}, b = `${s / 2} ${s / 2} ${s} ${s}`;
|
|
5878
5880
|
return /* @__PURE__ */ e.createElement(
|
|
5879
5881
|
"div",
|
|
5880
5882
|
k({
|
|
@@ -5882,7 +5884,7 @@ const aa = {
|
|
|
5882
5884
|
ref: l,
|
|
5883
5885
|
role: "progressbar"
|
|
5884
5886
|
}, o),
|
|
5885
|
-
/* @__PURE__ */ e.createElement("svg", { viewBox:
|
|
5887
|
+
/* @__PURE__ */ e.createElement("svg", { viewBox: b }, /* @__PURE__ */ e.createElement(
|
|
5886
5888
|
"circle",
|
|
5887
5889
|
{
|
|
5888
5890
|
className: aa[`${ra}__bg-line--${t}`],
|
|
@@ -5896,7 +5898,7 @@ const aa = {
|
|
|
5896
5898
|
"circle",
|
|
5897
5899
|
{
|
|
5898
5900
|
className: aa[`${ra}__indicator--${t}`],
|
|
5899
|
-
style:
|
|
5901
|
+
style: f,
|
|
5900
5902
|
cx: s,
|
|
5901
5903
|
cy: s,
|
|
5902
5904
|
r: (s - i) / 2,
|
|
@@ -5978,7 +5980,7 @@ const aa = {
|
|
|
5978
5980
|
onClose: d,
|
|
5979
5981
|
onLinkClick: i
|
|
5980
5982
|
}) => {
|
|
5981
|
-
const s = e.useRef(null), [p, m] = e.useState("medium"),
|
|
5983
|
+
const s = e.useRef(null), [p, m] = e.useState("medium"), f = u(
|
|
5982
5984
|
Ae[Fe],
|
|
5983
5985
|
{
|
|
5984
5986
|
[Ae[`${Fe}--light`]]: l,
|
|
@@ -5988,15 +5990,15 @@ const aa = {
|
|
|
5988
5990
|
t
|
|
5989
5991
|
);
|
|
5990
5992
|
e.useEffect(() => {
|
|
5991
|
-
const
|
|
5992
|
-
|
|
5993
|
+
const v = () => s.current && s.current.offsetWidth <= Un ? m("small") : s.current && s.current.offsetWidth >= Hn ? m("large") : m("medium"), h = n_(
|
|
5994
|
+
v,
|
|
5993
5995
|
zn
|
|
5994
5996
|
);
|
|
5995
|
-
return window.addEventListener("resize",
|
|
5996
|
-
|
|
5997
|
+
return window.addEventListener("resize", h), v(), () => {
|
|
5998
|
+
h.cancel(), window.removeEventListener("resize", h);
|
|
5997
5999
|
};
|
|
5998
6000
|
}, []);
|
|
5999
|
-
const
|
|
6001
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
6000
6002
|
W,
|
|
6001
6003
|
{
|
|
6002
6004
|
kind: "primary",
|
|
@@ -6006,7 +6008,7 @@ const aa = {
|
|
|
6006
6008
|
},
|
|
6007
6009
|
a
|
|
6008
6010
|
), n && /* @__PURE__ */ e.createElement(W, { size: "compact", kind: "text", onClick: i }, n));
|
|
6009
|
-
return /* @__PURE__ */ e.createElement("div", { ref: s, className:
|
|
6011
|
+
return /* @__PURE__ */ e.createElement("div", { ref: s, className: f }, /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: Ae[`${Fe}__img`] }), /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: Ae[`${Fe}__header`] }, _), /* @__PURE__ */ e.createElement(B, { as: "div" }, r), p !== "large" && b), p === "large" && b), d && /* @__PURE__ */ e.createElement(
|
|
6010
6012
|
"button",
|
|
6011
6013
|
{
|
|
6012
6014
|
type: "button",
|
|
@@ -6144,7 +6146,7 @@ const aa = {
|
|
|
6144
6146
|
cropOnBlur: c = !0,
|
|
6145
6147
|
onChange: d
|
|
6146
6148
|
}) => {
|
|
6147
|
-
const [i, s] = e.useState(!0), [p, m] = e.useState(!1),
|
|
6149
|
+
const [i, s] = e.useState(!0), [p, m] = e.useState(!1), f = e.useRef(null), b = !!l && !a && !r, v = t && !i && "true", h = u(
|
|
6148
6150
|
n,
|
|
6149
6151
|
Re[We],
|
|
6150
6152
|
Re[`${We}--${o}`],
|
|
@@ -6163,20 +6165,20 @@ const aa = {
|
|
|
6163
6165
|
d("");
|
|
6164
6166
|
}, $ = () => {
|
|
6165
6167
|
var N;
|
|
6166
|
-
(N =
|
|
6168
|
+
(N = f.current) == null || N.focus();
|
|
6167
6169
|
}, w = () => {
|
|
6168
6170
|
t && s(!1), m(!0);
|
|
6169
6171
|
}, C = () => {
|
|
6170
6172
|
t && !l && s(!0), m(!1);
|
|
6171
|
-
},
|
|
6173
|
+
}, g = (N) => {
|
|
6172
6174
|
N.key === de.enter && (N.preventDefault(), d(l));
|
|
6173
6175
|
};
|
|
6174
6176
|
return /* @__PURE__ */ e.createElement(
|
|
6175
6177
|
"div",
|
|
6176
6178
|
{
|
|
6177
|
-
"aria-expanded":
|
|
6179
|
+
"aria-expanded": v,
|
|
6178
6180
|
role: "search",
|
|
6179
|
-
className:
|
|
6181
|
+
className: h,
|
|
6180
6182
|
onClick: $
|
|
6181
6183
|
},
|
|
6182
6184
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6201,19 +6203,19 @@ const aa = {
|
|
|
6201
6203
|
"input",
|
|
6202
6204
|
{
|
|
6203
6205
|
role: "searchbox",
|
|
6204
|
-
ref:
|
|
6206
|
+
ref: f,
|
|
6205
6207
|
type: "text",
|
|
6206
6208
|
value: l,
|
|
6207
6209
|
placeholder: _,
|
|
6208
6210
|
onChange: y,
|
|
6209
6211
|
onBlur: C,
|
|
6210
6212
|
onFocus: w,
|
|
6211
|
-
onKeyDown:
|
|
6213
|
+
onKeyDown: g,
|
|
6212
6214
|
disabled: a
|
|
6213
6215
|
}
|
|
6214
6216
|
)
|
|
6215
6217
|
),
|
|
6216
|
-
|
|
6218
|
+
b && /* @__PURE__ */ e.createElement(
|
|
6217
6219
|
W,
|
|
6218
6220
|
{
|
|
6219
6221
|
"aria-label": "Clear search",
|
|
@@ -6375,17 +6377,17 @@ const aa = {
|
|
|
6375
6377
|
"innerRef",
|
|
6376
6378
|
"ariaLabel"
|
|
6377
6379
|
]);
|
|
6378
|
-
const
|
|
6379
|
-
() =>
|
|
6380
|
-
), [
|
|
6380
|
+
const f = o !== void 0, [b, v] = e.useState(
|
|
6381
|
+
() => f ? o : a
|
|
6382
|
+
), [h, y] = e.useState(!1), E = f ? o : b, $ = c === "loading", w = c === "locked", C = n === "large" ? "small" : "xsmall", g = E ? "on" : "off", N = r || $ || w, S = N ? "disabled" : "enabled", M = u(
|
|
6381
6383
|
ae[te],
|
|
6382
6384
|
ae[`${te}--${n}`],
|
|
6383
6385
|
{
|
|
6384
|
-
[ae[`${te}--focused`]]:
|
|
6386
|
+
[ae[`${te}--focused`]]: h
|
|
6385
6387
|
},
|
|
6386
6388
|
t
|
|
6387
6389
|
), G = (I) => {
|
|
6388
|
-
l == null || l(I, !E),
|
|
6390
|
+
l == null || l(I, !E), f || (I.stopPropagation(), v((O) => !O));
|
|
6389
6391
|
};
|
|
6390
6392
|
return /* @__PURE__ */ e.createElement("span", { className: M }, /* @__PURE__ */ e.createElement(
|
|
6391
6393
|
"input",
|
|
@@ -6409,7 +6411,7 @@ const aa = {
|
|
|
6409
6411
|
"span",
|
|
6410
6412
|
{
|
|
6411
6413
|
className: u(ae[`${te}__container`], {
|
|
6412
|
-
[ae[`${te}__container--focused`]]:
|
|
6414
|
+
[ae[`${te}__container--focused`]]: h
|
|
6413
6415
|
})
|
|
6414
6416
|
},
|
|
6415
6417
|
/* @__PURE__ */ e.createElement(
|
|
@@ -6417,7 +6419,7 @@ const aa = {
|
|
|
6417
6419
|
{
|
|
6418
6420
|
className: u(
|
|
6419
6421
|
ae[`${te}__track`],
|
|
6420
|
-
ae[`${te}__track--${
|
|
6422
|
+
ae[`${te}__track--${g}`],
|
|
6421
6423
|
ae[`${te}__track--${S}`]
|
|
6422
6424
|
)
|
|
6423
6425
|
}
|
|
@@ -6429,7 +6431,7 @@ const aa = {
|
|
|
6429
6431
|
ae[`${te}__slider`],
|
|
6430
6432
|
ae[`${te}__slider--${S}`],
|
|
6431
6433
|
ae[`${te}__slider--${n}`],
|
|
6432
|
-
ae[`${te}__slider--${n}--${
|
|
6434
|
+
ae[`${te}__slider--${n}--${g}`]
|
|
6433
6435
|
)
|
|
6434
6436
|
},
|
|
6435
6437
|
$ && /* @__PURE__ */ e.createElement(
|
|
@@ -6536,29 +6538,29 @@ const aa = {
|
|
|
6536
6538
|
value: l
|
|
6537
6539
|
}) => {
|
|
6538
6540
|
const [n, c] = e.useState(!1), d = () => a.current, i = () => {
|
|
6539
|
-
const
|
|
6540
|
-
return
|
|
6541
|
+
const b = d();
|
|
6542
|
+
return b ? b.innerText : "";
|
|
6541
6543
|
}, s = () => {
|
|
6542
6544
|
r && r.current && r.current.focus();
|
|
6543
|
-
}, p = (
|
|
6544
|
-
if (
|
|
6545
|
-
|
|
6545
|
+
}, p = (b) => {
|
|
6546
|
+
if (b.key === de.enter) {
|
|
6547
|
+
b.preventDefault(), s();
|
|
6546
6548
|
return;
|
|
6547
6549
|
}
|
|
6548
|
-
|
|
6550
|
+
b.key === de.backspace && i() === "" && (c(!0), o(), s());
|
|
6549
6551
|
}, m = () => {
|
|
6550
|
-
const
|
|
6551
|
-
if (!(n || !
|
|
6552
|
-
if (
|
|
6552
|
+
const b = d();
|
|
6553
|
+
if (!(n || !b)) {
|
|
6554
|
+
if (b.innerText === "") {
|
|
6553
6555
|
o();
|
|
6554
6556
|
return;
|
|
6555
6557
|
}
|
|
6556
|
-
_(
|
|
6558
|
+
_(b.innerText);
|
|
6557
6559
|
}
|
|
6558
|
-
},
|
|
6559
|
-
|
|
6560
|
-
const
|
|
6561
|
-
document.execCommand("insertHTML", !1, Dr(
|
|
6560
|
+
}, f = (b) => {
|
|
6561
|
+
b.preventDefault();
|
|
6562
|
+
const v = b.clipboardData.getData("text/plain");
|
|
6563
|
+
document.execCommand("insertHTML", !1, Dr(v));
|
|
6562
6564
|
};
|
|
6563
6565
|
return /* @__PURE__ */ e.createElement(
|
|
6564
6566
|
"div",
|
|
@@ -6566,7 +6568,7 @@ const aa = {
|
|
|
6566
6568
|
ref: a,
|
|
6567
6569
|
className: t,
|
|
6568
6570
|
contentEditable: !0,
|
|
6569
|
-
onPaste:
|
|
6571
|
+
onPaste: f,
|
|
6570
6572
|
onBlur: m,
|
|
6571
6573
|
onKeyDown: p,
|
|
6572
6574
|
dangerouslySetInnerHTML: { __html: Dr(l) }
|
|
@@ -6602,7 +6604,7 @@ const aa = {
|
|
|
6602
6604
|
de.semicolon,
|
|
6603
6605
|
de.comma
|
|
6604
6606
|
], lc = [de.backspace, de.delete], nc = (m) => {
|
|
6605
|
-
var
|
|
6607
|
+
var f = m, {
|
|
6606
6608
|
id: t,
|
|
6607
6609
|
tags: a,
|
|
6608
6610
|
onChange: r,
|
|
@@ -6614,7 +6616,7 @@ const aa = {
|
|
|
6614
6616
|
inputClassName: d,
|
|
6615
6617
|
onBlur: i,
|
|
6616
6618
|
addOnBlur: s = !0
|
|
6617
|
-
} =
|
|
6619
|
+
} = f, p = D(f, [
|
|
6618
6620
|
"id",
|
|
6619
6621
|
"tags",
|
|
6620
6622
|
"onChange",
|
|
@@ -6627,33 +6629,33 @@ const aa = {
|
|
|
6627
6629
|
"onBlur",
|
|
6628
6630
|
"addOnBlur"
|
|
6629
6631
|
]);
|
|
6630
|
-
const
|
|
6632
|
+
const b = u(
|
|
6631
6633
|
la[Da],
|
|
6632
6634
|
{
|
|
6633
6635
|
[la[`${Da}--error`]]: o
|
|
6634
6636
|
},
|
|
6635
6637
|
c
|
|
6636
|
-
),
|
|
6638
|
+
), v = u(
|
|
6637
6639
|
d,
|
|
6638
6640
|
la[`${Da}__input`],
|
|
6639
6641
|
la[`${Da}__input--${n}`]
|
|
6640
|
-
), [
|
|
6642
|
+
), [h, y] = e.useState(""), E = e.useRef(null), $ = (I) => {
|
|
6641
6643
|
I.trim() !== "" && (r([...a || [], I]), y(""));
|
|
6642
6644
|
}, w = (I) => {
|
|
6643
6645
|
const O = [...a || []];
|
|
6644
6646
|
O.splice(I, 1), r(O);
|
|
6645
|
-
}, C = (I) => y(I.target.value),
|
|
6647
|
+
}, C = (I) => y(I.target.value), g = (I) => {
|
|
6646
6648
|
if (oc.includes(I.key)) {
|
|
6647
|
-
if (I.preventDefault(),
|
|
6649
|
+
if (I.preventDefault(), h === "")
|
|
6648
6650
|
return;
|
|
6649
|
-
$(
|
|
6651
|
+
$(h);
|
|
6650
6652
|
} else if (lc.includes(I.key)) {
|
|
6651
|
-
if (
|
|
6653
|
+
if (h !== "" || !(a != null && a.length))
|
|
6652
6654
|
return;
|
|
6653
6655
|
w(a.length - 1);
|
|
6654
6656
|
}
|
|
6655
6657
|
}, N = (I) => {
|
|
6656
|
-
s && $(
|
|
6658
|
+
s && $(h), i == null || i(I);
|
|
6657
6659
|
}, S = (I, O) => {
|
|
6658
6660
|
const Y = [...a || []];
|
|
6659
6661
|
Y.reduce(
|
|
@@ -6690,16 +6692,16 @@ const aa = {
|
|
|
6690
6692
|
},
|
|
6691
6693
|
I.value || I.children
|
|
6692
6694
|
);
|
|
6693
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(B, { as: "div", className:
|
|
6695
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(B, { as: "div", className: b }, a == null ? void 0 : a.map(G), /* @__PURE__ */ e.createElement(
|
|
6694
6696
|
"input",
|
|
6695
6697
|
T(k({}, p), {
|
|
6696
6698
|
id: t,
|
|
6697
6699
|
ref: E,
|
|
6698
|
-
className:
|
|
6700
|
+
className: v,
|
|
6699
6701
|
placeholder: l,
|
|
6700
|
-
value:
|
|
6702
|
+
value: h,
|
|
6701
6703
|
onChange: C,
|
|
6702
|
-
onKeyDown:
|
|
6704
|
+
onKeyDown: g,
|
|
6703
6705
|
onPaste: M,
|
|
6704
6706
|
onBlur: N
|
|
6705
6707
|
})
|
|
@@ -6815,7 +6817,7 @@ const aa = {
|
|
|
6815
6817
|
},
|
|
6816
6818
|
t
|
|
6817
6819
|
);
|
|
6818
|
-
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement(c_, { component: null }, a.map(({ id: d, kind: i, content: s, removable: p, action: m, onClose:
|
|
6820
|
+
return /* @__PURE__ */ e.createElement("div", { className: c }, /* @__PURE__ */ e.createElement(c_, { component: null }, a.map(({ id: d, kind: i, content: s, removable: p, action: m, onClose: f }) => /* @__PURE__ */ e.createElement(
|
|
6819
6821
|
i_,
|
|
6820
6822
|
{
|
|
6821
6823
|
key: d,
|
|
@@ -6831,7 +6833,7 @@ const aa = {
|
|
|
6831
6833
|
fc,
|
|
6832
6834
|
{
|
|
6833
6835
|
kind: i,
|
|
6834
|
-
onClose:
|
|
6836
|
+
onClose: f,
|
|
6835
6837
|
removable: p,
|
|
6836
6838
|
action: m
|
|
6837
6839
|
},
|
|
@@ -6850,16 +6852,16 @@ const aa = {
|
|
|
6850
6852
|
[Pa[`${Aa}--disabled`]]: n,
|
|
6851
6853
|
[Pa[`${Aa}--focused`]]: i,
|
|
6852
6854
|
[Pa[`${Aa}--error`]]: a
|
|
6853
|
-
}), m = (
|
|
6854
|
-
s(!1), c == null || c(
|
|
6855
|
-
},
|
|
6856
|
-
s(!0), d == null || d(
|
|
6855
|
+
}), m = (b) => {
|
|
6856
|
+
s(!1), c == null || c(b);
|
|
6857
|
+
}, f = (b) => {
|
|
6858
|
+
s(!0), d == null || d(b);
|
|
6857
6859
|
};
|
|
6858
6860
|
return /* @__PURE__ */ e.createElement(B, { as: "div", className: p }, /* @__PURE__ */ e.createElement(
|
|
6859
6861
|
"textarea",
|
|
6860
6862
|
T(k({}, r), {
|
|
6861
6863
|
ref: _,
|
|
6862
|
-
onFocus:
|
|
6864
|
+
onFocus: f,
|
|
6863
6865
|
onBlur: m
|
|
6864
6866
|
})
|
|
6865
6867
|
));
|
|
@@ -7017,14 +7019,14 @@ const aa = {
|
|
|
7017
7019
|
onCloseButtonClick: s,
|
|
7018
7020
|
onRetryButtonClick: p
|
|
7019
7021
|
}) => {
|
|
7020
|
-
const [m,
|
|
7021
|
-
[K[`${ke}--error`]]:
|
|
7022
|
-
[K[`${ke}--success`]]:
|
|
7023
|
-
}), y = !(
|
|
7024
|
-
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className:
|
|
7022
|
+
const [m, f] = e.useState(o || !1), b = n === "error", v = n === "success", h = u(K[ke], a, {
|
|
7023
|
+
[K[`${ke}--error`]]: b,
|
|
7024
|
+
[K[`${ke}--success`]]: v
|
|
7025
|
+
}), y = !(b && (p || s)), E = () => f(!m);
|
|
7026
|
+
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: h }, /* @__PURE__ */ e.createElement("div", { className: K[`${ke}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ot}`] }, /* @__PURE__ */ e.createElement(
|
|
7025
7027
|
Ec,
|
|
7026
7028
|
{
|
|
7027
|
-
title:
|
|
7029
|
+
title: b && l || _,
|
|
7028
7030
|
progressValue: r,
|
|
7029
7031
|
status: n,
|
|
7030
7032
|
icon: c,
|
|
@@ -7037,13 +7039,13 @@ const aa = {
|
|
|
7037
7039
|
onCloseButtonClick: s,
|
|
7038
7040
|
onRetryButtonClick: p
|
|
7039
7041
|
}
|
|
7040
|
-
))) : /* @__PURE__ */ e.createElement("div", { className:
|
|
7042
|
+
))) : /* @__PURE__ */ e.createElement("div", { className: h }, /* @__PURE__ */ e.createElement(
|
|
7041
7043
|
"div",
|
|
7042
7044
|
{
|
|
7043
7045
|
className: K[`${ke}__wrapper`],
|
|
7044
7046
|
onClick: E
|
|
7045
7047
|
},
|
|
7046
|
-
/* @__PURE__ */ e.createElement("div", { className: K[`${ot}`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ot}__icon`] }, wc(n, r)), /* @__PURE__ */ e.createElement("div", { className: K[`${ot}__title`] }, /* @__PURE__ */ e.createElement(B, { size: "sm", as: "div" },
|
|
7048
|
+
/* @__PURE__ */ e.createElement("div", { className: K[`${ot}`] }, /* @__PURE__ */ e.createElement("div", { className: K[`${ot}__icon`] }, wc(n, r)), /* @__PURE__ */ e.createElement("div", { className: K[`${ot}__title`] }, /* @__PURE__ */ e.createElement(B, { size: "sm", as: "div" }, b ? l : _)), y && /* @__PURE__ */ e.createElement(
|
|
7047
7049
|
"button",
|
|
7048
7050
|
{
|
|
7049
7051
|
className: K[`${ot}__collapse-button`],
|