@livechat/design-system-react-components 1.34.0 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +183 -176
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -22,7 +22,7 @@ var D = (t, a) => {
|
|
|
22
22
|
var er = (t, a, r) => (Qa(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
24
|
import { useReducer as B_, useRef as I_, useEffect as Ft, useCallback as ka, useMemo as Ea, useState as T_ } from "react";
|
|
25
|
-
import { Check as ia, Close as Ie, ChevronDown as Ot, Info as ca, Warning as r_, CheckCircle as vr, Block as __, ChevronRight as La, Person as D_, ChevronUp as Oa, DoubleArrowLeft as
|
|
25
|
+
import { Check as ia, Close as Ie, ChevronDown as Ot, Info as ca, Warning as r_, CheckCircle as vr, Block as __, ChevronRight as La, Person as D_, ChevronUp as Oa, DoubleArrowLeft as A_, ChevronLeft as P_, DoubleArrowRight as F_, VisibilityOn as R_, VisibilityOff as M_, TextLogoFull as L_, LiveChatMono as O_, ChatBotMono as G_, HelpDeskMono as U_, KnowledgeBaseMono as H_, OpenWidgetMono as z_, HelloMono as W_, TextAccounts as V_, Search as K_, LockBlack as Y_, Refresh as q_, Error as Z_ } from "@livechat/design-system-icons";
|
|
26
26
|
import u from "clsx";
|
|
27
27
|
import { useFloatingParentNodeId as Ga, useFloatingNodeId as sa, useFloating as da, offset as ua, flip as Ua, size as o_, autoUpdate as ma, useClick as pa, useDismiss as ga, useRole as fa, useInteractions as ba, useTransitionStyles as kr, FloatingNode as ha, FloatingTree as Ha, shift as Er, arrow as X_, useHover as J_, safePolygon as j_, useFocus as Q_, useTransitionStatus as eo, FloatingArrow as to, FloatingPortal as l_, FloatingOverlay as ao, FloatingFocusManager as mr, useListNavigation as ro } from "@floating-ui/react";
|
|
28
28
|
import * as n_ from "react-dom";
|
|
@@ -32,7 +32,7 @@ import { getContrast as yr } from "polished";
|
|
|
32
32
|
import oo from "react-day-picker";
|
|
33
33
|
import { subMonths as Rt, differenceInCalendarMonths as Tr, addMonths as Dr, isSameMonth as pr, isSameDay as gr, isAfter as fr, differenceInCalendarDays as wr, isPast as lo } from "date-fns";
|
|
34
34
|
import { Virtuoso as no } from "react-virtuoso";
|
|
35
|
-
import
|
|
35
|
+
import Ar from "lodash.escape";
|
|
36
36
|
import { TransitionGroup as i_, CSSTransition as s_ } from "react-transition-group";
|
|
37
37
|
const Lc = {
|
|
38
38
|
/** @deprecated */
|
|
@@ -505,7 +505,7 @@ const Lc = {
|
|
|
505
505
|
comma: ",",
|
|
506
506
|
arrowUp: "ArrowUp",
|
|
507
507
|
arrowDown: "ArrowDown"
|
|
508
|
-
}, so = "lc-Icon-module__icon___tw31R",
|
|
508
|
+
}, so = "lc-Icon-module__icon___tw31R", Pr = {
|
|
509
509
|
icon: so,
|
|
510
510
|
"icon--primary": "lc-Icon-module__icon--primary___JJnBV",
|
|
511
511
|
"icon--subtle": "lc-Icon-module__icon--subtle___sZIzL",
|
|
@@ -586,8 +586,8 @@ const Lc = {
|
|
|
586
586
|
"customColor"
|
|
587
587
|
]), d = e.createElement(a, k(k({}, uo[r]), n ? { color: n } : {})), i = u(
|
|
588
588
|
l,
|
|
589
|
-
|
|
590
|
-
_ &&
|
|
589
|
+
Pr[Fr],
|
|
590
|
+
_ && Pr[`${Fr}--${o ? "disabled--" : ""}${_}`]
|
|
591
591
|
);
|
|
592
592
|
return /* @__PURE__ */ e.createElement("span", T(k({}, c), { className: i }), d);
|
|
593
593
|
}, Ge = {
|
|
@@ -786,8 +786,8 @@ const Lc = {
|
|
|
786
786
|
ua(4),
|
|
787
787
|
Ua(c),
|
|
788
788
|
o_({
|
|
789
|
-
apply({ availableHeight:
|
|
790
|
-
_o(() => C(
|
|
789
|
+
apply({ availableHeight: A }) {
|
|
790
|
+
_o(() => C(A));
|
|
791
791
|
}
|
|
792
792
|
})
|
|
793
793
|
],
|
|
@@ -803,70 +803,70 @@ const Lc = {
|
|
|
803
803
|
Ke,
|
|
804
804
|
Ue
|
|
805
805
|
]), { styles: ft } = kr(U, {
|
|
806
|
-
initial: ({ side:
|
|
806
|
+
initial: ({ side: A }) => k({
|
|
807
807
|
opacity: 0
|
|
808
|
-
},
|
|
808
|
+
}, A === "bottom" && {
|
|
809
809
|
marginTop: -10
|
|
810
|
-
} ||
|
|
810
|
+
} || A === "top" && {
|
|
811
811
|
marginTop: 10
|
|
812
|
-
} ||
|
|
812
|
+
} || A === "left" && {
|
|
813
813
|
marginLeft: 10
|
|
814
|
-
} ||
|
|
814
|
+
} || A === "right" && {
|
|
815
815
|
marginLeft: -10
|
|
816
816
|
})
|
|
817
|
-
}), Nt = (
|
|
817
|
+
}), Nt = (A) => {
|
|
818
818
|
var Ye, qe;
|
|
819
819
|
const V = g.current;
|
|
820
|
-
let ue = V +
|
|
820
|
+
let ue = V + A;
|
|
821
821
|
for (; (Ye = r[ue]) != null && Ye.disabled || (qe = r[ue]) != null && qe.groupHeader; )
|
|
822
|
-
if (ue +=
|
|
822
|
+
if (ue += A, ue === -1) {
|
|
823
823
|
ue = V;
|
|
824
824
|
break;
|
|
825
825
|
}
|
|
826
826
|
return ue;
|
|
827
|
-
}, bt = (
|
|
827
|
+
}, bt = (A) => {
|
|
828
828
|
var Ye, qe;
|
|
829
|
-
g.current = Nt(
|
|
829
|
+
g.current = Nt(A);
|
|
830
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
|
-
}, lt = (
|
|
833
|
-
|
|
832
|
+
}, lt = (A) => {
|
|
833
|
+
A.key === de.arrowUp && g.current > 0 && (A.preventDefault(), bt(-1)), A.key === de.arrowDown && g.current + 1 < r.length && (A.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
|
-
const ht = (
|
|
841
|
-
g.current =
|
|
842
|
-
}, St = (
|
|
840
|
+
const ht = (A, V) => {
|
|
841
|
+
g.current = A, V == null || V(), !y && !n && ($(!1), i == null || i());
|
|
842
|
+
}, St = (A, V) => A.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
843
843
|
"li",
|
|
844
844
|
{
|
|
845
|
-
key:
|
|
845
|
+
key: A.key,
|
|
846
846
|
role: "none",
|
|
847
847
|
className: He[`${ze}__list__group-header`]
|
|
848
848
|
},
|
|
849
|
-
|
|
850
|
-
) : /* @__PURE__ */ e.createElement("li", { key:
|
|
849
|
+
A.element
|
|
850
|
+
) : /* @__PURE__ */ e.createElement("li", { key: A.key, role: "none" }, /* @__PURE__ */ e.createElement(
|
|
851
851
|
"button",
|
|
852
852
|
{
|
|
853
|
-
"data-testid":
|
|
853
|
+
"data-testid": A.key,
|
|
854
854
|
tabIndex: -1,
|
|
855
|
-
key:
|
|
856
|
-
disabled:
|
|
857
|
-
onClick: () => ht(V,
|
|
855
|
+
key: A.key,
|
|
856
|
+
disabled: A.disabled,
|
|
857
|
+
onClick: () => ht(V, A.onClick),
|
|
858
858
|
role: "menuitem",
|
|
859
859
|
className: u(He[`${ze}__list__item`], {
|
|
860
|
-
[He[`${ze}__list__item--disabled`]]:
|
|
861
|
-
[He[`${ze}__list__item--with-divider`]]:
|
|
862
|
-
[He[`${ze}__list__item--selected`]]: m == null ? void 0 : m.includes(
|
|
860
|
+
[He[`${ze}__list__item--disabled`]]: A.disabled,
|
|
861
|
+
[He[`${ze}__list__item--with-divider`]]: A.withDivider,
|
|
862
|
+
[He[`${ze}__list__item--selected`]]: m == null ? void 0 : m.includes(A.key)
|
|
863
863
|
})
|
|
864
864
|
},
|
|
865
|
-
|
|
866
|
-
(m == null ? void 0 : m.includes(
|
|
865
|
+
A.element,
|
|
866
|
+
(m == null ? void 0 : m.includes(A.key)) && /* @__PURE__ */ e.createElement(
|
|
867
867
|
"div",
|
|
868
868
|
{
|
|
869
|
-
"data-testid": `${
|
|
869
|
+
"data-testid": `${A.key}-selected-icon`,
|
|
870
870
|
className: He[`${ze}__list__item__icon`]
|
|
871
871
|
},
|
|
872
872
|
/* @__PURE__ */ e.createElement(x, { source: ia, kind: "action-primary" })
|
|
@@ -1136,7 +1136,7 @@ const $o = (t) => {
|
|
|
1136
1136
|
fill: "var(--tooltip-background-basic)"
|
|
1137
1137
|
};
|
|
1138
1138
|
}
|
|
1139
|
-
}, No = "lc-Tooltip-module__tooltip___QOOAr", So = "lc-Tooltip-module__tooltip__content___RuamE", xo = "lc-Tooltip-module__tooltip__arrow___Ov1YW", Bo = "lc-Tooltip-module__tooltip__interactive___0JawB",
|
|
1139
|
+
}, No = "lc-Tooltip-module__tooltip___QOOAr", So = "lc-Tooltip-module__tooltip__content___RuamE", xo = "lc-Tooltip-module__tooltip__arrow___Ov1YW", Bo = "lc-Tooltip-module__tooltip__interactive___0JawB", P = {
|
|
1140
1140
|
tooltip: No,
|
|
1141
1141
|
tooltip__content: So,
|
|
1142
1142
|
"tooltip--invert": "lc-Tooltip-module__tooltip--invert___PVjhE",
|
|
@@ -1200,15 +1200,15 @@ const $o = (t) => {
|
|
|
1200
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
|
+
P[ya],
|
|
1204
1204
|
a,
|
|
1205
|
-
Ne &&
|
|
1206
|
-
d &&
|
|
1205
|
+
Ne && P[`${ya}--${Ne}`],
|
|
1206
|
+
d && P[`${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
1209
|
}, ht = (me) => p ? me != null ? me : m : 0, St = (me) => me != null ? me : v, {
|
|
1210
1210
|
floatingStyles: xt,
|
|
1211
|
-
refs:
|
|
1211
|
+
refs: A,
|
|
1212
1212
|
context: V,
|
|
1213
1213
|
middlewareData: { arrow: { x: ue, y: Ye } = {} }
|
|
1214
1214
|
} = da({
|
|
@@ -1248,13 +1248,13 @@ const $o = (t) => {
|
|
|
1248
1248
|
Ya
|
|
1249
1249
|
]);
|
|
1250
1250
|
e.useEffect(() => {
|
|
1251
|
-
g &&
|
|
1252
|
-
}, [
|
|
1251
|
+
g && A.setReference(g);
|
|
1252
|
+
}, [A.setReference, g]);
|
|
1253
1253
|
const Gt = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
1254
1254
|
"div",
|
|
1255
1255
|
T(k({
|
|
1256
1256
|
"data-testid": "tooltip-trigger",
|
|
1257
|
-
ref:
|
|
1257
|
+
ref: A.setReference
|
|
1258
1258
|
}, Ja()), {
|
|
1259
1259
|
className: r
|
|
1260
1260
|
}),
|
|
@@ -1262,13 +1262,13 @@ const $o = (t) => {
|
|
|
1262
1262
|
), /* @__PURE__ */ e.createElement(ha, { id: ft }, qa && /* @__PURE__ */ e.createElement(
|
|
1263
1263
|
"div",
|
|
1264
1264
|
T(k({
|
|
1265
|
-
ref:
|
|
1265
|
+
ref: A.setFloating,
|
|
1266
1266
|
style: k(k({}, xt), Za),
|
|
1267
1267
|
className: Nt
|
|
1268
1268
|
}, ja()), {
|
|
1269
1269
|
"data-status": Xa
|
|
1270
1270
|
}),
|
|
1271
|
-
/* @__PURE__ */ e.createElement(B, { as: "div", className:
|
|
1271
|
+
/* @__PURE__ */ e.createElement(B, { as: "div", className: P[`${ya}__content`] }, t),
|
|
1272
1272
|
/* @__PURE__ */ e.createElement(
|
|
1273
1273
|
to,
|
|
1274
1274
|
k({
|
|
@@ -1299,7 +1299,7 @@ const $o = (t) => {
|
|
|
1299
1299
|
{
|
|
1300
1300
|
type: "button",
|
|
1301
1301
|
"aria-label": "Close tooltip",
|
|
1302
|
-
className:
|
|
1302
|
+
className: P[`${Wt}-close`],
|
|
1303
1303
|
onClick: l
|
|
1304
1304
|
},
|
|
1305
1305
|
/* @__PURE__ */ e.createElement(x, { source: Ie, kind: o ? m_(o) : "primary" })
|
|
@@ -1308,8 +1308,8 @@ const $o = (t) => {
|
|
|
1308
1308
|
{
|
|
1309
1309
|
as: "div",
|
|
1310
1310
|
size: "xs",
|
|
1311
|
-
className: u(
|
|
1312
|
-
[
|
|
1311
|
+
className: u(P[`${Wt}-header`], {
|
|
1312
|
+
[P[`${Wt}-header--info`]]: _
|
|
1313
1313
|
})
|
|
1314
1314
|
},
|
|
1315
1315
|
a
|
|
@@ -1318,8 +1318,8 @@ const $o = (t) => {
|
|
|
1318
1318
|
{
|
|
1319
1319
|
as: "div",
|
|
1320
1320
|
className: u({
|
|
1321
|
-
[
|
|
1322
|
-
[
|
|
1321
|
+
[P[`${Wt}-text`]]: _,
|
|
1322
|
+
[P[`${Wt}-text--info`]]: _
|
|
1323
1323
|
})
|
|
1324
1324
|
},
|
|
1325
1325
|
r
|
|
@@ -1334,28 +1334,28 @@ const $o = (t) => {
|
|
|
1334
1334
|
secondaryButton: c
|
|
1335
1335
|
}) => {
|
|
1336
1336
|
const d = (s) => s === "invert" ? "secondary" : s === "important" ? "plain-lock-black" : "high-contrast", i = (s) => s === "invert" ? "link-inverted" : s === "important" ? "text-lock-black" : "text";
|
|
1337
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
1337
|
+
return /* @__PURE__ */ e.createElement("div", { className: P[`${Ze}__interactive`] }, _ && /* @__PURE__ */ e.createElement(
|
|
1338
1338
|
"button",
|
|
1339
1339
|
{
|
|
1340
1340
|
type: "button",
|
|
1341
1341
|
"aria-label": "Close tooltip",
|
|
1342
|
-
className:
|
|
1342
|
+
className: P[`${Ze}-close`],
|
|
1343
1343
|
onClick: l
|
|
1344
1344
|
},
|
|
1345
1345
|
/* @__PURE__ */ e.createElement(x, { source: Ie, kind: o ? m_(o) : "primary" })
|
|
1346
|
-
), r && /* @__PURE__ */ e.createElement("div", { className:
|
|
1346
|
+
), r && /* @__PURE__ */ e.createElement("div", { className: P[`${Ze}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1347
1347
|
"img",
|
|
1348
1348
|
{
|
|
1349
|
-
className:
|
|
1349
|
+
className: P[`${Ze}-image`],
|
|
1350
1350
|
src: r.src,
|
|
1351
1351
|
alt: r.alt
|
|
1352
1352
|
}
|
|
1353
|
-
)), t && /* @__PURE__ */ e.createElement(ne, { as: "div", size: "xs", className:
|
|
1353
|
+
)), t && /* @__PURE__ */ e.createElement(ne, { as: "div", size: "xs", className: P[`${Ze}-header`] }, t), /* @__PURE__ */ e.createElement("div", { className: P[`${Ze}-text`] }, a), /* @__PURE__ */ e.createElement(
|
|
1354
1354
|
"div",
|
|
1355
1355
|
{
|
|
1356
1356
|
className: u(
|
|
1357
|
-
|
|
1358
|
-
|
|
1357
|
+
P[`${Ze}-footer`],
|
|
1358
|
+
P[`${Ze}-footer--interactive`]
|
|
1359
1359
|
)
|
|
1360
1360
|
},
|
|
1361
1361
|
/* @__PURE__ */ e.createElement(
|
|
@@ -1370,7 +1370,7 @@ const $o = (t) => {
|
|
|
1370
1370
|
W,
|
|
1371
1371
|
T(k({}, c), {
|
|
1372
1372
|
className: u(
|
|
1373
|
-
|
|
1373
|
+
P[`${Ze}-footer-secondary`],
|
|
1374
1374
|
c.className
|
|
1375
1375
|
),
|
|
1376
1376
|
kind: c.kind || i(o),
|
|
@@ -1418,9 +1418,9 @@ const $o = (t) => {
|
|
|
1418
1418
|
"div",
|
|
1419
1419
|
{
|
|
1420
1420
|
className: u({
|
|
1421
|
-
[
|
|
1422
|
-
[
|
|
1423
|
-
[
|
|
1421
|
+
[P[`${ce}__overlay`]]: !0,
|
|
1422
|
+
[P[`${ce}__overlay--visible`]]: a,
|
|
1423
|
+
[P[`${ce}__overlay--slide`]]: r
|
|
1424
1424
|
}),
|
|
1425
1425
|
style: o
|
|
1426
1426
|
}
|
|
@@ -1428,9 +1428,9 @@ const $o = (t) => {
|
|
|
1428
1428
|
"div",
|
|
1429
1429
|
{
|
|
1430
1430
|
className: u({
|
|
1431
|
-
[
|
|
1432
|
-
[
|
|
1433
|
-
[
|
|
1431
|
+
[P[`${ce}__overlay`]]: !0,
|
|
1432
|
+
[P[`${ce}__overlay--visible`]]: a,
|
|
1433
|
+
[P[`${ce}__overlay--slide`]]: r
|
|
1434
1434
|
}),
|
|
1435
1435
|
style: n
|
|
1436
1436
|
}
|
|
@@ -1438,9 +1438,9 @@ const $o = (t) => {
|
|
|
1438
1438
|
"div",
|
|
1439
1439
|
{
|
|
1440
1440
|
className: u({
|
|
1441
|
-
[
|
|
1442
|
-
[
|
|
1443
|
-
[
|
|
1441
|
+
[P[`${ce}__overlay`]]: !0,
|
|
1442
|
+
[P[`${ce}__overlay--visible`]]: a,
|
|
1443
|
+
[P[`${ce}__overlay--slide`]]: r
|
|
1444
1444
|
}),
|
|
1445
1445
|
style: l
|
|
1446
1446
|
}
|
|
@@ -1448,9 +1448,9 @@ const $o = (t) => {
|
|
|
1448
1448
|
"div",
|
|
1449
1449
|
{
|
|
1450
1450
|
className: u({
|
|
1451
|
-
[
|
|
1452
|
-
[
|
|
1453
|
-
[
|
|
1451
|
+
[P[`${ce}__overlay`]]: !0,
|
|
1452
|
+
[P[`${ce}__overlay--visible`]]: a,
|
|
1453
|
+
[P[`${ce}__overlay--slide`]]: r
|
|
1454
1454
|
}),
|
|
1455
1455
|
style: c
|
|
1456
1456
|
}
|
|
@@ -1458,9 +1458,9 @@ const $o = (t) => {
|
|
|
1458
1458
|
"div",
|
|
1459
1459
|
{
|
|
1460
1460
|
className: u({
|
|
1461
|
-
[
|
|
1462
|
-
[
|
|
1463
|
-
[
|
|
1461
|
+
[P[`${ce}__overlay`]]: !0,
|
|
1462
|
+
[P[`${ce}__overlay--visible`]]: a,
|
|
1463
|
+
[P[`${ce}__overlay--slide`]]: r
|
|
1464
1464
|
}),
|
|
1465
1465
|
style: d
|
|
1466
1466
|
}
|
|
@@ -1545,8 +1545,8 @@ const Mr = 8, Lr = "guide-tooltip", Or = (t, a) => new To(t, a), Xc = (t) => {
|
|
|
1545
1545
|
contextElement: l
|
|
1546
1546
|
},
|
|
1547
1547
|
className: u({
|
|
1548
|
-
[
|
|
1549
|
-
[
|
|
1548
|
+
[P[Lr]]: !0,
|
|
1549
|
+
[P[`${Lr}--slide`]]: i,
|
|
1550
1550
|
className: a
|
|
1551
1551
|
})
|
|
1552
1552
|
}),
|
|
@@ -1556,15 +1556,15 @@ const Mr = 8, Lr = "guide-tooltip", Or = (t, a) => new To(t, a), Xc = (t) => {
|
|
|
1556
1556
|
title: t,
|
|
1557
1557
|
description: a,
|
|
1558
1558
|
children: r
|
|
1559
|
-
}) => /* @__PURE__ */ e.createElement("div", { className:
|
|
1559
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: P[Vt] }, /* @__PURE__ */ e.createElement("div", { className: P[`${Vt}__heading`] }, /* @__PURE__ */ e.createElement(B, { as: "div", className: P[`${Vt}__heading__title`] }, t), /* @__PURE__ */ e.createElement(
|
|
1560
1560
|
B,
|
|
1561
1561
|
{
|
|
1562
1562
|
as: "div",
|
|
1563
1563
|
size: "xs",
|
|
1564
|
-
className:
|
|
1564
|
+
className: P[`${Vt}__heading__description`]
|
|
1565
1565
|
},
|
|
1566
1566
|
a
|
|
1567
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
1567
|
+
)), /* @__PURE__ */ e.createElement("div", { className: P[`${Vt}__content`] }, /* @__PURE__ */ e.createElement(B, { as: "div" }, r))), q = {
|
|
1568
1568
|
"action-bar": "lc-ActionBar-module__action-bar___TJitF",
|
|
1569
1569
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___uhoQA",
|
|
1570
1570
|
"action-bar__items--scroll": "lc-ActionBar-module__action-bar__items--scroll___f--dN",
|
|
@@ -1637,7 +1637,7 @@ const Mr = 8, Lr = "guide-tooltip", Or = (t, a) => new To(t, a), Xc = (t) => {
|
|
|
1637
1637
|
/* @__PURE__ */ e.createElement("div", null, t.label)
|
|
1638
1638
|
)
|
|
1639
1639
|
) : /* @__PURE__ */ e.createElement("div", { "data-testid": t.key, className: _ }, o);
|
|
1640
|
-
}, wa = "action-bar", Xe = "action-bar__menu-wrapper",
|
|
1640
|
+
}, wa = "action-bar", Xe = "action-bar__menu-wrapper", Ao = 44, jc = ({
|
|
1641
1641
|
className: t,
|
|
1642
1642
|
id: a = "action-bar-area",
|
|
1643
1643
|
type: r = "menu",
|
|
@@ -1660,7 +1660,7 @@ const Mr = 8, Lr = "guide-tooltip", Or = (t, a) => new To(t, a), Xc = (t) => {
|
|
|
1660
1660
|
if (!f && E) {
|
|
1661
1661
|
const $ = new ResizeObserver((w) => {
|
|
1662
1662
|
const { width: C, height: g } = w[0].contentRect, N = l ? g : C, S = i.length > 0 ? 60 : 0, M = Math.floor(
|
|
1663
|
-
(N - S) /
|
|
1663
|
+
(N - S) / Ao
|
|
1664
1664
|
);
|
|
1665
1665
|
M >= 0 && M !== c && d(M);
|
|
1666
1666
|
});
|
|
@@ -1807,8 +1807,8 @@ const Mr = 8, Lr = "guide-tooltip", Or = (t, a) => new To(t, a), Xc = (t) => {
|
|
|
1807
1807
|
r
|
|
1808
1808
|
)
|
|
1809
1809
|
));
|
|
1810
|
-
},
|
|
1811
|
-
alert:
|
|
1810
|
+
}, Po = "lc-Alert-module__alert___HBTns", Fo = "lc-Alert-module__alert__icon___8TaAH", Ro = "lc-Alert-module__alert__content___9nZdf", Mo = "lc-Alert-module__alert__content__wrapper___aLBkP", Lo = "lc-Alert-module__alert__content__wrapper__text___HDMbR", Oo = "lc-Alert-module__alert__content__wrapper__cta___9L-oE", Go = "lc-Alert-module__alert__content__wrapper__cta__link___D9Igz", Se = {
|
|
1811
|
+
alert: Po,
|
|
1812
1812
|
alert__icon: Fo,
|
|
1813
1813
|
alert__content: Ro,
|
|
1814
1814
|
alert__content__wrapper: Mo,
|
|
@@ -2781,7 +2781,7 @@ const ll = "lc-Avatar-module__avatar___1zTCE", nl = "lc-Avatar-module__avatar__s
|
|
|
2781
2781
|
checkbox__square: Tl,
|
|
2782
2782
|
"checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___-lAqW",
|
|
2783
2783
|
checkbox__helper: Dl
|
|
2784
|
-
}, Et = "checkbox",
|
|
2784
|
+
}, Et = "checkbox", Al = e.forwardRef(
|
|
2785
2785
|
(c, n) => {
|
|
2786
2786
|
var d = c, { checked: t, disabled: a, children: r, description: _, className: o } = d, l = D(d, ["checked", "disabled", "children", "description", "className"]);
|
|
2787
2787
|
return /* @__PURE__ */ e.createElement(
|
|
@@ -2840,7 +2840,7 @@ const ll = "lc-Avatar-module__avatar___1zTCE", nl = "lc-Avatar-module__avatar__s
|
|
|
2840
2840
|
"date-picker--range__select-input": "lc-DatePicker-module__date-picker--range__select-input___6pyj3",
|
|
2841
2841
|
"date-picker--range__calendars-wrapper": "lc-DatePicker-module__date-picker--range__calendars-wrapper___8nWaW",
|
|
2842
2842
|
"date-picker__navbar-buttons-wrapper": "lc-DatePicker-module__date-picker__navbar-buttons-wrapper___Hnksb"
|
|
2843
|
-
}, zr = "date-picker",
|
|
2843
|
+
}, zr = "date-picker", Pl = (t) => {
|
|
2844
2844
|
const {
|
|
2845
2845
|
onPreviousClick: a,
|
|
2846
2846
|
onMonthChange: r,
|
|
@@ -2888,7 +2888,7 @@ const ll = "lc-Avatar-module__avatar___1zTCE", nl = "lc-Avatar-module__avatar__s
|
|
|
2888
2888
|
}),
|
|
2889
2889
|
onClick: b
|
|
2890
2890
|
},
|
|
2891
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
2891
|
+
/* @__PURE__ */ e.createElement(x, { source: A_, kind: "subtle" })
|
|
2892
2892
|
), /* @__PURE__ */ e.createElement(
|
|
2893
2893
|
"button",
|
|
2894
2894
|
{
|
|
@@ -2899,7 +2899,7 @@ const ll = "lc-Avatar-module__avatar___1zTCE", nl = "lc-Avatar-module__avatar__s
|
|
|
2899
2899
|
}),
|
|
2900
2900
|
onClick: m
|
|
2901
2901
|
},
|
|
2902
|
-
/* @__PURE__ */ e.createElement(x, { source:
|
|
2902
|
+
/* @__PURE__ */ e.createElement(x, { source: P_, kind: "subtle" })
|
|
2903
2903
|
)), /* @__PURE__ */ e.createElement("div", { className: F[`${zr}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
2904
2904
|
"button",
|
|
2905
2905
|
{
|
|
@@ -3040,7 +3040,7 @@ const ll = "lc-Avatar-module__avatar___1zTCE", nl = "lc-Avatar-module__avatar__s
|
|
|
3040
3040
|
oo,
|
|
3041
3041
|
k({
|
|
3042
3042
|
navbarElement: d || /* @__PURE__ */ e.createElement(
|
|
3043
|
-
|
|
3043
|
+
Pl,
|
|
3044
3044
|
{
|
|
3045
3045
|
month: m,
|
|
3046
3046
|
classNames: h,
|
|
@@ -3999,14 +3999,14 @@ const ii = (t) => {
|
|
|
3999
3999
|
},
|
|
4000
4000
|
t
|
|
4001
4001
|
), o && /* @__PURE__ */ e.createElement("div", { className: Jt[`${jt}__actions`] }, o));
|
|
4002
|
-
},
|
|
4002
|
+
}, At = {
|
|
4003
4003
|
"numeric-input": "lc-NumericInput-module__numeric-input___j1esc",
|
|
4004
4004
|
"numeric-input__increment": "lc-NumericInput-module__numeric-input__increment___i3Tys",
|
|
4005
4005
|
"numeric-input__decrement": "lc-NumericInput-module__numeric-input__decrement___3qgn0",
|
|
4006
4006
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___yaRvQ",
|
|
4007
4007
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___D90rG",
|
|
4008
4008
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___TMxRx"
|
|
4009
|
-
},
|
|
4009
|
+
}, Pt = "numeric-input", yi = (s) => {
|
|
4010
4010
|
var p = s, {
|
|
4011
4011
|
className: t,
|
|
4012
4012
|
error: a,
|
|
@@ -4029,11 +4029,11 @@ const ii = (t) => {
|
|
|
4029
4029
|
"onChange"
|
|
4030
4030
|
]);
|
|
4031
4031
|
const m = e.useRef(null), f = u(
|
|
4032
|
-
Pt
|
|
4032
|
+
At[Pt],
|
|
4033
4033
|
{
|
|
4034
|
-
[
|
|
4035
|
-
[
|
|
4036
|
-
[
|
|
4034
|
+
[At[`${Pt}--error`]]: a,
|
|
4035
|
+
[At[`${Pt}--no-controls`]]: n,
|
|
4036
|
+
[At[`${Pt}--disabled`]]: l
|
|
4037
4037
|
},
|
|
4038
4038
|
t
|
|
4039
4039
|
), b = (g) => d(String(g)), v = (g) => _ !== void 0 && g > _ ? _ : o !== void 0 && g < o ? o : g, h = (g) => {
|
|
@@ -4078,7 +4078,7 @@ const ii = (t) => {
|
|
|
4078
4078
|
disabled: l || E(r, _),
|
|
4079
4079
|
onClick: w,
|
|
4080
4080
|
"aria-label": "Increment value",
|
|
4081
|
-
className:
|
|
4081
|
+
className: At[`${Pt}__increment`],
|
|
4082
4082
|
type: "button"
|
|
4083
4083
|
},
|
|
4084
4084
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4095,7 +4095,7 @@ const ii = (t) => {
|
|
|
4095
4095
|
tabIndex: -1,
|
|
4096
4096
|
disabled: l || E(r, o),
|
|
4097
4097
|
"aria-label": "Decrement value",
|
|
4098
|
-
className:
|
|
4098
|
+
className: At[`${Pt}__decrement`],
|
|
4099
4099
|
onClick: C,
|
|
4100
4100
|
type: "button"
|
|
4101
4101
|
},
|
|
@@ -4398,7 +4398,7 @@ const Mt = "select-all", nn = (t, a) => {
|
|
|
4398
4398
|
"picker-list__item__label": "lc-PickerListItem-module__picker-list__item__label___e0uwB",
|
|
4399
4399
|
"picker-list__item__main-label": "lc-PickerListItem-module__picker-list__item__main-label___YfUhr",
|
|
4400
4400
|
"picker-list__item__secondary-label": "lc-PickerListItem-module__picker-list__item__secondary-label___6xcMD"
|
|
4401
|
-
},
|
|
4401
|
+
}, Ae = "picker-list__item", cn = ({
|
|
4402
4402
|
index: t,
|
|
4403
4403
|
isActive: a,
|
|
4404
4404
|
isSelected: r,
|
|
@@ -4408,37 +4408,37 @@ const Mt = "select-all", nn = (t, a) => {
|
|
|
4408
4408
|
item: n,
|
|
4409
4409
|
numberOfItems: c
|
|
4410
4410
|
}) => {
|
|
4411
|
-
const d = (s) => s != null && s.customElement ? /* @__PURE__ */ e.createElement("div", { className: fe[`${
|
|
4412
|
-
|
|
4411
|
+
const d = (s) => s != null && s.customElement ? /* @__PURE__ */ e.createElement("div", { className: fe[`${Ae}__custom`] }, s.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, s.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
4412
|
+
Al,
|
|
4413
4413
|
{
|
|
4414
|
-
className: fe[`${
|
|
4414
|
+
className: fe[`${Ae}__checkbox`],
|
|
4415
4415
|
checked: r
|
|
4416
4416
|
}
|
|
4417
4417
|
), s.icon && /* @__PURE__ */ e.createElement(
|
|
4418
4418
|
x,
|
|
4419
4419
|
{
|
|
4420
|
-
className: fe[`${
|
|
4420
|
+
className: fe[`${Ae}__icon`],
|
|
4421
4421
|
kind: "link",
|
|
4422
4422
|
source: s.icon
|
|
4423
4423
|
}
|
|
4424
4424
|
), s.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
4425
4425
|
"img",
|
|
4426
4426
|
{
|
|
4427
|
-
className: u(fe[`${
|
|
4427
|
+
className: u(fe[`${Ae}__avatar`]),
|
|
4428
4428
|
src: s.avatarSrc,
|
|
4429
4429
|
alt: s.name
|
|
4430
4430
|
}
|
|
4431
|
-
), /* @__PURE__ */ e.createElement("div", { className: fe[`${
|
|
4431
|
+
), /* @__PURE__ */ e.createElement("div", { className: fe[`${Ae}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
4432
4432
|
B,
|
|
4433
4433
|
{
|
|
4434
4434
|
as: "span",
|
|
4435
|
-
className: u([fe[`${
|
|
4436
|
-
[fe[`${
|
|
4435
|
+
className: u([fe[`${Ae}__label`]], {
|
|
4436
|
+
[fe[`${Ae}__main-label`]]: s.secondaryText
|
|
4437
4437
|
}),
|
|
4438
4438
|
"aria-disabled": s.disabled
|
|
4439
4439
|
},
|
|
4440
4440
|
s.name
|
|
4441
|
-
), s.secondaryText && /* @__PURE__ */ e.createElement("span", { className: fe[`${
|
|
4441
|
+
), s.secondaryText && /* @__PURE__ */ e.createElement("span", { className: fe[`${Ae}__secondary-label`] }, s.secondaryText)));
|
|
4442
4442
|
if (n.groupHeader)
|
|
4443
4443
|
return /* @__PURE__ */ e.createElement(
|
|
4444
4444
|
"div",
|
|
@@ -4446,7 +4446,7 @@ const Mt = "select-all", nn = (t, a) => {
|
|
|
4446
4446
|
id: `item-${t}`,
|
|
4447
4447
|
key: n.key,
|
|
4448
4448
|
role: "group",
|
|
4449
|
-
className: fe[`${
|
|
4449
|
+
className: fe[`${Ae}__header`]
|
|
4450
4450
|
}, l()),
|
|
4451
4451
|
/* @__PURE__ */ e.createElement(ne, { size: "2xs", uppercase: !0, bold: !0, as: "div" }, n.name)
|
|
4452
4452
|
);
|
|
@@ -4479,8 +4479,8 @@ const Mt = "select-all", nn = (t, a) => {
|
|
|
4479
4479
|
"aria-selected": r,
|
|
4480
4480
|
"aria-disabled": n.disabled,
|
|
4481
4481
|
"aria-current": a && !n.disabled,
|
|
4482
|
-
className: u(fe[
|
|
4483
|
-
[fe[`${
|
|
4482
|
+
className: u(fe[Ae], {
|
|
4483
|
+
[fe[`${Ae}--select-all`]]: n.key === Mt
|
|
4484
4484
|
})
|
|
4485
4485
|
},
|
|
4486
4486
|
d(n),
|
|
@@ -5148,7 +5148,7 @@ const Mt = "select-all", nn = (t, a) => {
|
|
|
5148
5148
|
handleSelect: ht,
|
|
5149
5149
|
handleOnFilter: St,
|
|
5150
5150
|
handleItemRemove: xt,
|
|
5151
|
-
handleClear:
|
|
5151
|
+
handleClear: A
|
|
5152
5152
|
} = En({
|
|
5153
5153
|
selected: d,
|
|
5154
5154
|
options: c,
|
|
@@ -5194,7 +5194,7 @@ const Mt = "select-all", nn = (t, a) => {
|
|
|
5194
5194
|
testId: O["data-testid"],
|
|
5195
5195
|
isItemSelected: Nt.length > 0,
|
|
5196
5196
|
isOpen: Ne,
|
|
5197
|
-
onClear:
|
|
5197
|
+
onClear: A,
|
|
5198
5198
|
hideClearButton: h,
|
|
5199
5199
|
isDisabled: l,
|
|
5200
5200
|
isError: n,
|
|
@@ -5218,7 +5218,7 @@ const Mt = "select-all", nn = (t, a) => {
|
|
|
5218
5218
|
onItemRemove: xt,
|
|
5219
5219
|
onSelect: ht,
|
|
5220
5220
|
onFilter: St,
|
|
5221
|
-
onClear:
|
|
5221
|
+
onClear: A,
|
|
5222
5222
|
searchPhrase: lt,
|
|
5223
5223
|
virtualItemRef: Za,
|
|
5224
5224
|
isTriggerFocused: $e
|
|
@@ -5324,59 +5324,66 @@ const Be = {
|
|
|
5324
5324
|
notificationCount: o,
|
|
5325
5325
|
withBorder: l = !1,
|
|
5326
5326
|
isMainProduct: n = !1
|
|
5327
|
-
}) => /* @__PURE__ */ e.createElement(
|
|
5327
|
+
}) => /* @__PURE__ */ e.createElement(
|
|
5328
5328
|
"div",
|
|
5329
5329
|
{
|
|
5330
|
-
className: u(Be["
|
|
5331
|
-
|
|
5332
|
-
})
|
|
5330
|
+
className: u({ [Be["outer-border"]]: l }),
|
|
5331
|
+
tabIndex: n ? 0 : -1
|
|
5333
5332
|
},
|
|
5334
|
-
n && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
5335
|
-
"div",
|
|
5336
|
-
{
|
|
5337
|
-
className: Be[`${je}__third-layer`],
|
|
5338
|
-
style: { background: _.third }
|
|
5339
|
-
}
|
|
5340
|
-
), /* @__PURE__ */ e.createElement(
|
|
5341
|
-
"div",
|
|
5342
|
-
{
|
|
5343
|
-
className: Be[`${je}__second-layer`],
|
|
5344
|
-
style: { background: _.second }
|
|
5345
|
-
}
|
|
5346
|
-
)),
|
|
5347
5333
|
/* @__PURE__ */ e.createElement(
|
|
5348
5334
|
"div",
|
|
5349
5335
|
{
|
|
5350
|
-
className: u(Be[
|
|
5351
|
-
[Be[
|
|
5352
|
-
})
|
|
5353
|
-
style: {
|
|
5354
|
-
background: r ? "var(--surface-moderate-default)" : _.main
|
|
5355
|
-
}
|
|
5336
|
+
className: u(Be["product-tile-wrapper"], {
|
|
5337
|
+
[Be["product-tile-wrapper__animated"]]: n
|
|
5338
|
+
})
|
|
5356
5339
|
},
|
|
5357
|
-
|
|
5358
|
-
|
|
5340
|
+
n && /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
5341
|
+
"div",
|
|
5359
5342
|
{
|
|
5360
|
-
|
|
5361
|
-
|
|
5362
|
-
className: u(Be[`${je}__badge`], {
|
|
5363
|
-
[Be[`${je}__badge--bordered`]]: n
|
|
5364
|
-
})
|
|
5343
|
+
className: Be[`${je}__third-layer`],
|
|
5344
|
+
style: { background: _.third }
|
|
5365
5345
|
}
|
|
5366
|
-
)
|
|
5346
|
+
), /* @__PURE__ */ e.createElement(
|
|
5347
|
+
"div",
|
|
5348
|
+
{
|
|
5349
|
+
className: Be[`${je}__second-layer`],
|
|
5350
|
+
style: { background: _.second }
|
|
5351
|
+
}
|
|
5352
|
+
)),
|
|
5367
5353
|
/* @__PURE__ */ e.createElement(
|
|
5368
|
-
|
|
5354
|
+
"div",
|
|
5369
5355
|
{
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
[Be[`${je}__icon--large`]]: n,
|
|
5373
|
-
[Be[`${je}__icon--expired`]]: r
|
|
5356
|
+
className: u(Be[je], {
|
|
5357
|
+
[Be[`${je}__main-product`]]: n
|
|
5374
5358
|
}),
|
|
5375
|
-
|
|
5376
|
-
|
|
5359
|
+
style: {
|
|
5360
|
+
background: r ? "var(--surface-moderate-default)" : _.main
|
|
5361
|
+
}
|
|
5362
|
+
},
|
|
5363
|
+
o && !r ? /* @__PURE__ */ e.createElement(
|
|
5364
|
+
Ra,
|
|
5365
|
+
{
|
|
5366
|
+
size: "compact",
|
|
5367
|
+
count: o,
|
|
5368
|
+
className: u(Be[`${je}__badge`], {
|
|
5369
|
+
[Be[`${je}__badge--bordered`]]: n
|
|
5370
|
+
})
|
|
5371
|
+
}
|
|
5372
|
+
) : null,
|
|
5373
|
+
/* @__PURE__ */ e.createElement(
|
|
5374
|
+
x,
|
|
5375
|
+
{
|
|
5376
|
+
source: t,
|
|
5377
|
+
className: u(Be[`${je}__icon`], {
|
|
5378
|
+
[Be[`${je}__icon--large`]]: n,
|
|
5379
|
+
[Be[`${je}__icon--expired`]]: r
|
|
5380
|
+
}),
|
|
5381
|
+
customColor: a
|
|
5382
|
+
}
|
|
5383
|
+
)
|
|
5377
5384
|
)
|
|
5378
5385
|
)
|
|
5379
|
-
)
|
|
5386
|
+
), Qe = {
|
|
5380
5387
|
"product-row": "lc-ProductRow-module__product-row___NgyzG",
|
|
5381
5388
|
"product-row--expired": "lc-ProductRow-module__product-row--expired___I9IPB",
|
|
5382
5389
|
"product-row__divider": "lc-ProductRow-module__product-row__divider___Blym6",
|
|
@@ -5777,10 +5784,10 @@ const Be = {
|
|
|
5777
5784
|
a
|
|
5778
5785
|
)}&response_type=token&organization_id=${r}`;
|
|
5779
5786
|
return n ? `${c}&utm_source=${n}&utm_medium=referral&utm_campaign=productswitcher` : c;
|
|
5780
|
-
},
|
|
5787
|
+
}, An = (t) => {
|
|
5781
5788
|
const a = new Date(t), r = /* @__PURE__ */ new Date();
|
|
5782
5789
|
return lo(a) ? 0 : wr(a, r);
|
|
5783
|
-
},
|
|
5790
|
+
}, Pn = (t, a) => Tn.includes(t) || a.some(
|
|
5784
5791
|
(r) => r.product === xr[t]
|
|
5785
5792
|
), Fn = (t, a, r, _, o, l) => {
|
|
5786
5793
|
var c, d, i, s, p;
|
|
@@ -5790,7 +5797,7 @@ const Be = {
|
|
|
5790
5797
|
if (!n)
|
|
5791
5798
|
throw new Error(`Product data for ${t.id} not found`);
|
|
5792
5799
|
return T(k({}, t), {
|
|
5793
|
-
trialDaysLeft: r[t.id] && ((c = r[t.id]) == null ? void 0 : c.status) === "trial" && ((d = r[t.id]) != null && d.next_charge_at) ?
|
|
5800
|
+
trialDaysLeft: r[t.id] && ((c = r[t.id]) == null ? void 0 : c.status) === "trial" && ((d = r[t.id]) != null && d.next_charge_at) ? An((s = (i = r[t.id]) == null ? void 0 : i.next_charge_at) != null ? s : "") : void 0,
|
|
5794
5801
|
expired: ((p = r[t.id]) == null ? void 0 : p.status) === "expired",
|
|
5795
5802
|
url: Dn(
|
|
5796
5803
|
n.clientId,
|
|
@@ -5828,7 +5835,7 @@ const Be = {
|
|
|
5828
5835
|
const l = t ? y_(t) : E_;
|
|
5829
5836
|
return {
|
|
5830
5837
|
products: xn.reduce(
|
|
5831
|
-
(n, c) => (
|
|
5838
|
+
(n, c) => (Pn(c.id, a) && n.push(
|
|
5832
5839
|
Fn(
|
|
5833
5840
|
c,
|
|
5834
5841
|
l,
|
|
@@ -5967,7 +5974,7 @@ const aa = {
|
|
|
5967
5974
|
)
|
|
5968
5975
|
);
|
|
5969
5976
|
}
|
|
5970
|
-
),
|
|
5977
|
+
), Pe = {
|
|
5971
5978
|
"promo-banner": "lc-PromoBanner-module__promo-banner___-mGpq",
|
|
5972
5979
|
"promo-banner__content": "lc-PromoBanner-module__promo-banner__content___kRWar",
|
|
5973
5980
|
"promo-banner__wrapper": "lc-PromoBanner-module__promo-banner__wrapper___I-8cl",
|
|
@@ -5992,11 +5999,11 @@ const aa = {
|
|
|
5992
5999
|
onLinkClick: i
|
|
5993
6000
|
}) => {
|
|
5994
6001
|
const s = e.useRef(null), [p, m] = e.useState("medium"), f = u(
|
|
5995
|
-
|
|
6002
|
+
Pe[Fe],
|
|
5996
6003
|
{
|
|
5997
|
-
[
|
|
5998
|
-
[
|
|
5999
|
-
[
|
|
6004
|
+
[Pe[`${Fe}--light`]]: l,
|
|
6005
|
+
[Pe[`${Fe}--small`]]: p === "small",
|
|
6006
|
+
[Pe[`${Fe}--large`]]: p === "large"
|
|
6000
6007
|
},
|
|
6001
6008
|
t
|
|
6002
6009
|
);
|
|
@@ -6009,21 +6016,21 @@ const aa = {
|
|
|
6009
6016
|
h.cancel(), window.removeEventListener("resize", h);
|
|
6010
6017
|
};
|
|
6011
6018
|
}, []);
|
|
6012
|
-
const b = /* @__PURE__ */ e.createElement("div", { className:
|
|
6019
|
+
const b = /* @__PURE__ */ e.createElement("div", { className: Pe[`${Fe}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
6013
6020
|
W,
|
|
6014
6021
|
{
|
|
6015
6022
|
kind: "primary",
|
|
6016
6023
|
size: "compact",
|
|
6017
6024
|
onClick: c,
|
|
6018
|
-
className:
|
|
6025
|
+
className: Pe[`${Fe}__button-text`]
|
|
6019
6026
|
},
|
|
6020
6027
|
a
|
|
6021
6028
|
), n && /* @__PURE__ */ e.createElement(W, { size: "compact", kind: "text", onClick: i }, n));
|
|
6022
|
-
return /* @__PURE__ */ e.createElement("div", { ref: s, className: f }, /* @__PURE__ */ e.createElement("div", { className:
|
|
6029
|
+
return /* @__PURE__ */ e.createElement("div", { ref: s, className: f }, /* @__PURE__ */ e.createElement("div", { className: Pe[`${Fe}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: Pe[`${Fe}__img`] }), /* @__PURE__ */ e.createElement("div", { className: Pe[`${Fe}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: Pe[`${Fe}__header`] }, _), /* @__PURE__ */ e.createElement(B, { as: "div" }, r), p !== "large" && b), p === "large" && b), d && /* @__PURE__ */ e.createElement(
|
|
6023
6030
|
"button",
|
|
6024
6031
|
{
|
|
6025
6032
|
type: "button",
|
|
6026
|
-
className:
|
|
6033
|
+
className: Pe[`${Fe}__close-icon`],
|
|
6027
6034
|
onClick: d
|
|
6028
6035
|
},
|
|
6029
6036
|
/* @__PURE__ */ e.createElement(x, { source: Ie, size: "large", kind: "primary" })
|
|
@@ -6271,7 +6278,7 @@ const aa = {
|
|
|
6271
6278
|
}, _),
|
|
6272
6279
|
n
|
|
6273
6280
|
);
|
|
6274
|
-
}, nr = "skeleton-avatar",
|
|
6281
|
+
}, nr = "skeleton-avatar", Ai = ({
|
|
6275
6282
|
square: t = !1,
|
|
6276
6283
|
size: a = 16,
|
|
6277
6284
|
animated: r
|
|
@@ -6287,7 +6294,7 @@ const aa = {
|
|
|
6287
6294
|
height: a
|
|
6288
6295
|
}
|
|
6289
6296
|
}
|
|
6290
|
-
), t_ = "skeleton-text",
|
|
6297
|
+
), t_ = "skeleton-text", Pi = ({
|
|
6291
6298
|
height: t = 13,
|
|
6292
6299
|
width: a,
|
|
6293
6300
|
animated: r
|
|
@@ -6571,7 +6578,7 @@ const aa = {
|
|
|
6571
6578
|
}, f = (b) => {
|
|
6572
6579
|
b.preventDefault();
|
|
6573
6580
|
const v = b.clipboardData.getData("text/plain");
|
|
6574
|
-
document.execCommand("insertHTML", !1,
|
|
6581
|
+
document.execCommand("insertHTML", !1, Ar(v));
|
|
6575
6582
|
};
|
|
6576
6583
|
return /* @__PURE__ */ e.createElement(
|
|
6577
6584
|
"div",
|
|
@@ -6582,7 +6589,7 @@ const aa = {
|
|
|
6582
6589
|
onPaste: f,
|
|
6583
6590
|
onBlur: m,
|
|
6584
6591
|
onKeyDown: p,
|
|
6585
|
-
dangerouslySetInnerHTML: { __html:
|
|
6592
|
+
dangerouslySetInnerHTML: { __html: Ar(l) }
|
|
6586
6593
|
}
|
|
6587
6594
|
);
|
|
6588
6595
|
}, oc = "tag-input__tag", a_ = ({
|
|
@@ -6851,18 +6858,18 @@ const aa = {
|
|
|
6851
6858
|
s
|
|
6852
6859
|
)
|
|
6853
6860
|
))));
|
|
6854
|
-
}, vc = "lc-Textarea-module__textarea___g6U8F",
|
|
6861
|
+
}, vc = "lc-Textarea-module__textarea___g6U8F", Aa = {
|
|
6855
6862
|
textarea: vc,
|
|
6856
6863
|
"textarea--focused": "lc-Textarea-module__textarea--focused___1vtEx",
|
|
6857
6864
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___xXaGv",
|
|
6858
6865
|
"textarea--error": "lc-Textarea-module__textarea--error___0EGuq"
|
|
6859
|
-
},
|
|
6866
|
+
}, Pa = "textarea", Hi = e.forwardRef(
|
|
6860
6867
|
(o, _) => {
|
|
6861
6868
|
var l = o, { className: t, error: a } = l, r = D(l, ["className", "error"]);
|
|
6862
|
-
const { disabled: n, onBlur: c, onFocus: d } = r, [i, s] = e.useState(!1), p = u(t, Pa
|
|
6863
|
-
[
|
|
6864
|
-
[
|
|
6865
|
-
[
|
|
6869
|
+
const { disabled: n, onBlur: c, onFocus: d } = r, [i, s] = e.useState(!1), p = u(t, Aa[Pa], {
|
|
6870
|
+
[Aa[`${Pa}--disabled`]]: n,
|
|
6871
|
+
[Aa[`${Pa}--focused`]]: i,
|
|
6872
|
+
[Aa[`${Pa}--error`]]: a
|
|
6866
6873
|
}), m = (b) => {
|
|
6867
6874
|
s(!1), c == null || c(b);
|
|
6868
6875
|
}, f = (b) => {
|
|
@@ -7102,7 +7109,7 @@ export {
|
|
|
7102
7109
|
Ra as Badge,
|
|
7103
7110
|
W as Button,
|
|
7104
7111
|
ci as Card,
|
|
7105
|
-
|
|
7112
|
+
Al as Checkbox,
|
|
7106
7113
|
Gl as DatePicker,
|
|
7107
7114
|
ii as DatePickerRangeCalendarsWrapper,
|
|
7108
7115
|
Lc as DesignToken,
|
|
@@ -7161,8 +7168,8 @@ export {
|
|
|
7161
7168
|
ri as SideNavigationGroup,
|
|
7162
7169
|
Ko as SideNavigationItem,
|
|
7163
7170
|
Yc as Simple,
|
|
7164
|
-
|
|
7165
|
-
|
|
7171
|
+
Ai as SkeletonAvatar,
|
|
7172
|
+
Pi as SkeletonText,
|
|
7166
7173
|
Di as SkeletonWrapper,
|
|
7167
7174
|
Oc as SpacingToken,
|
|
7168
7175
|
Fi as StatusBadge,
|