@livechat/design-system-react-components 2.15.0 → 2.15.2
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.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var x_ = Object.defineProperty,
|
|
2
|
-
var
|
|
1
|
+
var x_ = Object.defineProperty, E_ = Object.defineProperties;
|
|
2
|
+
var I_ = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var qa = Object.getOwnPropertySymbols;
|
|
4
4
|
var go = Object.prototype.hasOwnProperty, ho = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var Rr = (e, t, r) => t in e ? x_(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, v = (e, t) => {
|
|
@@ -9,7 +9,7 @@ var Rr = (e, t, r) => t in e ? x_(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
9
9
|
for (var r of qa(t))
|
|
10
10
|
ho.call(t, r) && Rr(e, r, t[r]);
|
|
11
11
|
return e;
|
|
12
|
-
}, B = (e, t) =>
|
|
12
|
+
}, B = (e, t) => E_(e, I_(t));
|
|
13
13
|
var R = (e, t) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var _ in e)
|
|
@@ -19,25 +19,24 @@ var R = (e, t) => {
|
|
|
19
19
|
t.indexOf(_) < 0 && ho.call(e, _) && (r[_] = e[_]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
var
|
|
23
|
-
import { jsx as a, jsxs as h, Fragment as
|
|
22
|
+
var Or = (e, t, r) => Rr(e, typeof t != "symbol" ? t + "" : t, r);
|
|
23
|
+
import { jsx as a, jsxs as h, Fragment as J } from "react/jsx-runtime";
|
|
24
24
|
import * as p from "react";
|
|
25
25
|
import { createContext as B_, useContext as T_, useState as Ft, useEffect as Ue, useMemo as Da, useCallback as Nt, useLayoutEffect as A_, useRef as br, useReducer as D_, memo as P_ } from "react";
|
|
26
|
-
import { ChevronDown as Kt, Check as Ga, Close as Qe, Info as
|
|
26
|
+
import { ChevronDown as Kt, Check as Ga, Close as Qe, Info as Oa, Warning as Ko, CheckCircle as _o, Block as Yo, ChevronRight as vr, VisibilityOn as F_, VisibilityOff as R_, ChevronUp as kr, Person as O_, DoubleArrowLeft as M_, ChevronLeft as L_, DoubleArrowRight as G_, People as H_, Bot as U_, Add as z_, ChatBotColored as V_, PersonAdd as W_, TextLogoFull as K_, LiveChatMono as Y_, ChatBotMono as X_, HelpDeskMono as Z_, KnowledgeBaseMono as q_, OpenWidgetMono as j_, HelloMono as Q_, TextLogo as J_, Search as en, LockBlack as tn, ArrowDownward as an, ArrowUpward as rn, ArrowsSort as on, Call as _n, Refresh as nn, Error as ln } from "@livechat/design-system-icons";
|
|
27
27
|
import u from "clsx";
|
|
28
28
|
import no from "lodash.debounce";
|
|
29
|
-
import { useFloatingParentNodeId as Cr, useFloatingNodeId as Ha, useFloating as Ua, offset as za, flip as wr, size as
|
|
29
|
+
import { useFloatingParentNodeId as Cr, useFloatingNodeId as Ha, useFloating as Ua, offset as za, flip as wr, size as Xo, autoUpdate as Va, useClick as Wa, useDismiss as Ka, useRole as Ya, useInteractions as Xa, useTransitionStyles as yr, FloatingNode as oa, FloatingTree as $r, shift as lo, arrow as cn, hide as sn, useHover as dn, safePolygon as un, useFocus as mn, useTransitionStatus as pn, FloatingArrow as gn, FloatingPortal as aa, FloatingFocusManager as eo, useListNavigation as hn, FloatingOverlay as fn } from "@floating-ui/react";
|
|
30
30
|
import * as bn from "react-dom";
|
|
31
31
|
import { flushSync as vn, createPortal as kn } from "react-dom";
|
|
32
32
|
import { Virtuoso as Cn } from "react-virtuoso";
|
|
33
33
|
import { getContrast as co } from "polished";
|
|
34
34
|
import { DayPicker as wn } from "react-day-picker";
|
|
35
|
-
import { isSameMonth as Pa, subMonths as Fa, differenceInCalendarMonths as fo, addMonths as bo, isSameDay as to, isAfter as ao, differenceInCalendarDays as Zo,
|
|
35
|
+
import { isSameMonth as Pa, subMonths as Fa, differenceInCalendarMonths as fo, addMonths as bo, isSameDay as to, isAfter as ao, differenceInCalendarDays as Zo, isBefore as yn, isPast as $n } from "date-fns";
|
|
36
36
|
import "react-day-picker/style.css";
|
|
37
|
-
import $n from "chromatic/isChromatic";
|
|
38
37
|
import vo from "lodash.escape";
|
|
39
38
|
import { TransitionGroup as qo, CSSTransition as jo } from "react-transition-group";
|
|
40
|
-
const
|
|
39
|
+
const ed = {
|
|
41
40
|
/** @deprecated */
|
|
42
41
|
Background: "--background",
|
|
43
42
|
Background01: "--background-01",
|
|
@@ -411,7 +410,7 @@ const ad = {
|
|
|
411
410
|
ContentBasicPlaceholder: "--content-basic-placeholder",
|
|
412
411
|
InputPromoBorderDefault: "--input-promo-border-default",
|
|
413
412
|
InputPromoBorderHover: "--input-promo-border-hover"
|
|
414
|
-
},
|
|
413
|
+
}, td = {
|
|
415
414
|
Spacing0: "--spacing-0",
|
|
416
415
|
Spacing05: "--spacing-05",
|
|
417
416
|
Spacing1: "--spacing-1",
|
|
@@ -431,7 +430,7 @@ const ad = {
|
|
|
431
430
|
Spacing18: "--spacing-18",
|
|
432
431
|
Spacing20: "--spacing-20",
|
|
433
432
|
Spacing24: "--spacing-24"
|
|
434
|
-
},
|
|
433
|
+
}, ad = {
|
|
435
434
|
Float: "--shadow-float",
|
|
436
435
|
PopOver: "--shadow-pop-over",
|
|
437
436
|
Modal: "--shadow-modal",
|
|
@@ -455,7 +454,7 @@ const ad = {
|
|
|
455
454
|
FixedLeft: "--shadow-fixed-left",
|
|
456
455
|
FixedTop: "--shadow-fixed-top",
|
|
457
456
|
FixedBottom: "--shadow-fixed-bottom"
|
|
458
|
-
},
|
|
457
|
+
}, rd = {
|
|
459
458
|
Radius0: "--radius-0",
|
|
460
459
|
Radius1: "--radius-1",
|
|
461
460
|
Radius2: "--radius-2",
|
|
@@ -471,25 +470,25 @@ const ad = {
|
|
|
471
470
|
// deprecated
|
|
472
471
|
4: "--radius-4"
|
|
473
472
|
// deprecated
|
|
474
|
-
},
|
|
473
|
+
}, od = {
|
|
475
474
|
Fast1: "--transition-duration-fast-1",
|
|
476
475
|
Fast2: "--transition-duration-fast-2",
|
|
477
476
|
Moderate1: "--transition-duration-moderate-1"
|
|
478
|
-
},
|
|
477
|
+
}, _d = {
|
|
479
478
|
EaseIn: "--transition-timing-ease-in",
|
|
480
479
|
EaseOut: "--transition-timing-ease-out"
|
|
481
|
-
},
|
|
480
|
+
}, nd = {
|
|
482
481
|
Instant: "--delay-instant",
|
|
483
482
|
Moderate: "--delay-moderate",
|
|
484
483
|
Slow: "--delay-slow"
|
|
485
484
|
};
|
|
486
485
|
var Rt = /* @__PURE__ */ ((e) => (e.Dark = "lc-dark-theme", e.Light = "lc-light-theme", e))(Rt || {});
|
|
487
|
-
const
|
|
486
|
+
const ld = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), cd = () => {
|
|
488
487
|
const e = T_(Qo);
|
|
489
488
|
if (!e)
|
|
490
489
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
491
490
|
return e;
|
|
492
|
-
},
|
|
491
|
+
}, id = ({
|
|
493
492
|
children: e,
|
|
494
493
|
initialTheme: t = "light",
|
|
495
494
|
customVariables: r = {}
|
|
@@ -539,7 +538,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
539
538
|
]
|
|
540
539
|
);
|
|
541
540
|
return /* @__PURE__ */ a(Jo.Provider, { value: c, children: e });
|
|
542
|
-
},
|
|
541
|
+
}, sd = (e, t) => `color-mix(in srgb, var(${e}) ${t}, transparent)`, Sn = (e, t) => {
|
|
543
542
|
p.useEffect(() => {
|
|
544
543
|
const r = () => {
|
|
545
544
|
document.visibilityState === "visible" && e();
|
|
@@ -595,13 +594,13 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
595
594
|
e && o && (e.unobserve(o), t.delete(o), t.size === 0 && (e.disconnect(), e = null));
|
|
596
595
|
}
|
|
597
596
|
};
|
|
598
|
-
})(),
|
|
597
|
+
})(), Ma = (e, t) => {
|
|
599
598
|
window.ResizeObserver && (e !== null ? ko.observe(e, (_) => {
|
|
600
599
|
t(_);
|
|
601
600
|
}) : ko.unobserve(e));
|
|
602
601
|
}, e_ = () => {
|
|
603
602
|
const [e, t] = p.useState(0), r = p.useCallback(
|
|
604
|
-
(_) =>
|
|
603
|
+
(_) => Ma(
|
|
605
604
|
_,
|
|
606
605
|
(o) => t(o.height)
|
|
607
606
|
),
|
|
@@ -615,7 +614,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
615
614
|
mobileBreakpoint: e
|
|
616
615
|
}) => {
|
|
617
616
|
const [t, r] = p.useState(!1), _ = p.useCallback(
|
|
618
|
-
(o) =>
|
|
617
|
+
(o) => Ma(
|
|
619
618
|
o,
|
|
620
619
|
(n) => r(n.width <= e)
|
|
621
620
|
),
|
|
@@ -625,7 +624,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
625
624
|
isMobile: t,
|
|
626
625
|
handleResizeRef: _
|
|
627
626
|
};
|
|
628
|
-
},
|
|
627
|
+
}, En = ["input", "button", "select", "textarea", "a"], In = ({
|
|
629
628
|
onClick: e
|
|
630
629
|
}) => ({
|
|
631
630
|
handleInteractiveClick: p.useCallback(
|
|
@@ -633,7 +632,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
633
632
|
const _ = r.target;
|
|
634
633
|
if (!(_ instanceof HTMLElement)) return;
|
|
635
634
|
const o = _.tagName.toLowerCase();
|
|
636
|
-
|
|
635
|
+
En.includes(o) || e(r);
|
|
637
636
|
},
|
|
638
637
|
[e]
|
|
639
638
|
)
|
|
@@ -656,10 +655,10 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
656
655
|
return A_(() => {
|
|
657
656
|
_();
|
|
658
657
|
const n = e.current;
|
|
659
|
-
return n &&
|
|
658
|
+
return n && Ma(n, () => {
|
|
660
659
|
o();
|
|
661
660
|
}), () => {
|
|
662
|
-
|
|
661
|
+
Ma(null, () => {
|
|
663
662
|
});
|
|
664
663
|
};
|
|
665
664
|
}, [e, o, _]), Ue(() => () => {
|
|
@@ -866,7 +865,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
866
865
|
}, f),
|
|
867
866
|
d
|
|
868
867
|
);
|
|
869
|
-
},
|
|
868
|
+
}, dd = (d) => {
|
|
870
869
|
var s = d, {
|
|
871
870
|
as: e = "div",
|
|
872
871
|
size: t = "md",
|
|
@@ -970,8 +969,8 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
970
969
|
]
|
|
971
970
|
}
|
|
972
971
|
);
|
|
973
|
-
},
|
|
974
|
-
if (
|
|
972
|
+
}, On = (e) => e.open !== void 0 && e.closed !== void 0, Mn = (e, t) => {
|
|
973
|
+
if (On(e)) {
|
|
975
974
|
const r = {
|
|
976
975
|
open: e.open,
|
|
977
976
|
closed: e.closed,
|
|
@@ -1045,14 +1044,14 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1045
1044
|
const b = l !== void 0, x = b ? l : n, S = p.useRef(null), {
|
|
1046
1045
|
isOpen: k,
|
|
1047
1046
|
isMounted: y,
|
|
1048
|
-
setShouldBeVisible:
|
|
1047
|
+
setShouldBeVisible: E
|
|
1049
1048
|
} = Wt({
|
|
1050
1049
|
isVisible: x,
|
|
1051
1050
|
elementRef: S
|
|
1052
|
-
}), { size: C, handleResizeRef:
|
|
1051
|
+
}), { size: C, handleResizeRef: I } = e_(), { handleExpandChange: w, handleKeyDown: $ } = Ln({
|
|
1053
1052
|
isControlled: b,
|
|
1054
1053
|
isExpanded: k,
|
|
1055
|
-
setShouldBeVisible:
|
|
1054
|
+
setShouldBeVisible: E,
|
|
1056
1055
|
onOpen: i,
|
|
1057
1056
|
onClose: s
|
|
1058
1057
|
}), T = u(
|
|
@@ -1061,17 +1060,17 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1061
1060
|
[he[`${fe}--open`]]: k
|
|
1062
1061
|
},
|
|
1063
1062
|
e
|
|
1064
|
-
), P = (
|
|
1065
|
-
const N =
|
|
1063
|
+
), P = (O) => {
|
|
1064
|
+
const N = O ? se : D, A = v({
|
|
1066
1065
|
"aria-expanded": k,
|
|
1067
1066
|
as: "div",
|
|
1068
1067
|
className: u(he[`${fe}__label`], {
|
|
1069
|
-
[he[`${fe}__label--promo`]]:
|
|
1068
|
+
[he[`${fe}__label--promo`]]: O
|
|
1070
1069
|
}),
|
|
1071
1070
|
onClick: () => w(k),
|
|
1072
|
-
bold:
|
|
1073
|
-
},
|
|
1074
|
-
return /* @__PURE__ */ a(N, B(v({}, A), { children:
|
|
1071
|
+
bold: O ? void 0 : !0
|
|
1072
|
+
}, O ? { size: "xs" } : {});
|
|
1073
|
+
return /* @__PURE__ */ a(N, B(v({}, A), { children: Mn(_, k) }));
|
|
1075
1074
|
};
|
|
1076
1075
|
return /* @__PURE__ */ h(
|
|
1077
1076
|
"div",
|
|
@@ -1100,7 +1099,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1100
1099
|
className: he[`${fe}__content`],
|
|
1101
1100
|
style: { maxHeight: k ? C : 0 },
|
|
1102
1101
|
ref: S,
|
|
1103
|
-
children: /* @__PURE__ */ a("div", { ref:
|
|
1102
|
+
children: /* @__PURE__ */ a("div", { ref: I, children: y && /* @__PURE__ */ h(J, { children: [
|
|
1104
1103
|
/* @__PURE__ */ a(
|
|
1105
1104
|
D,
|
|
1106
1105
|
{
|
|
@@ -1130,11 +1129,11 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1130
1129
|
]
|
|
1131
1130
|
})
|
|
1132
1131
|
);
|
|
1133
|
-
}, fe = "accordion",
|
|
1132
|
+
}, fe = "accordion", ud = (r) => {
|
|
1134
1133
|
var _ = r, { kind: e } = _, t = R(_, ["kind"]);
|
|
1135
1134
|
const o = u(he[fe], he[`${fe}--${e}`]);
|
|
1136
1135
|
return /* @__PURE__ */ a(t_, v({ mainClassName: o }, t));
|
|
1137
|
-
}, Kn = `${fe}--promo`,
|
|
1136
|
+
}, Kn = `${fe}--promo`, md = (e) => {
|
|
1138
1137
|
const t = u(he[fe], he[Kn]);
|
|
1139
1138
|
return /* @__PURE__ */ a(t_, v({ mainClassName: t, isPromo: !0 }, e));
|
|
1140
1139
|
}, we = {
|
|
@@ -1192,27 +1191,27 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1192
1191
|
"selectedOptions",
|
|
1193
1192
|
"footer"
|
|
1194
1193
|
]);
|
|
1195
|
-
const k = d !== void 0, [y,
|
|
1196
|
-
|
|
1197
|
-
}, { x: A, y:
|
|
1194
|
+
const k = d !== void 0, [y, E] = p.useState(n), [C, I] = p.useState(null), w = p.useRef(-1), $ = Cr(), T = Ha(), P = p.useRef(null), O = k ? d : y, N = () => {
|
|
1195
|
+
O ? (s == null || s(), !k && E(!1)) : (i == null || i(), !k && E(!0));
|
|
1196
|
+
}, { x: A, y: M, strategy: z, refs: U, context: H } = Ua({
|
|
1198
1197
|
nodeId: T,
|
|
1199
1198
|
middleware: [
|
|
1200
1199
|
za(4),
|
|
1201
1200
|
wr(c),
|
|
1202
|
-
|
|
1201
|
+
Xo({
|
|
1203
1202
|
apply({ availableHeight: L }) {
|
|
1204
|
-
vn(() =>
|
|
1203
|
+
vn(() => I(L));
|
|
1205
1204
|
}
|
|
1206
1205
|
})
|
|
1207
1206
|
],
|
|
1208
1207
|
placement: o,
|
|
1209
|
-
open:
|
|
1208
|
+
open: O,
|
|
1210
1209
|
strategy: m,
|
|
1211
1210
|
onOpenChange: N,
|
|
1212
1211
|
whileElementsMounted: Va
|
|
1213
1212
|
}), W = Wa(H), Ae = Ka(H, {
|
|
1214
|
-
enabled:
|
|
1215
|
-
}), Je =
|
|
1213
|
+
enabled: O
|
|
1214
|
+
}), Je = Ya(H), { getReferenceProps: ze, getFloatingProps: ye } = Xa([
|
|
1216
1215
|
W,
|
|
1217
1216
|
Ae,
|
|
1218
1217
|
Je
|
|
@@ -1229,31 +1228,31 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1229
1228
|
marginLeft: -10
|
|
1230
1229
|
})
|
|
1231
1230
|
}), be = (L) => {
|
|
1232
|
-
var V,
|
|
1233
|
-
const
|
|
1234
|
-
let le =
|
|
1235
|
-
for (; (V = r[le]) != null && V.disabled || (
|
|
1231
|
+
var V, Z;
|
|
1232
|
+
const te = w.current;
|
|
1233
|
+
let le = te + L;
|
|
1234
|
+
for (; (V = r[le]) != null && V.disabled || (Z = r[le]) != null && Z.groupHeader; )
|
|
1236
1235
|
if (le += L, le === -1) {
|
|
1237
|
-
le =
|
|
1236
|
+
le = te;
|
|
1238
1237
|
break;
|
|
1239
1238
|
}
|
|
1240
1239
|
return le;
|
|
1241
1240
|
}, et = (L) => {
|
|
1242
|
-
var V,
|
|
1241
|
+
var V, Z;
|
|
1243
1242
|
w.current = be(L);
|
|
1244
|
-
const
|
|
1243
|
+
const te = (V = P.current) == null ? void 0 : V.children, le = te && ((Z = te[w.current]) == null ? void 0 : Z.children[0]);
|
|
1245
1244
|
return le == null ? void 0 : le.focus();
|
|
1246
1245
|
}, tt = (L) => {
|
|
1247
1246
|
L.key === we.arrowUp && w.current > 0 && (L.preventDefault(), et(-1)), L.key === we.arrowDown && w.current + 1 < r.length && (L.preventDefault(), et(1));
|
|
1248
1247
|
};
|
|
1249
1248
|
p.useEffect(() => {
|
|
1250
|
-
if (
|
|
1249
|
+
if (O)
|
|
1251
1250
|
return document.addEventListener("keydown", tt), () => document.removeEventListener("keydown", tt);
|
|
1252
1251
|
w.current = -1;
|
|
1253
|
-
}, [
|
|
1254
|
-
const St = (L,
|
|
1255
|
-
w.current = L,
|
|
1256
|
-
}, xt = (L,
|
|
1252
|
+
}, [O, tt]);
|
|
1253
|
+
const St = (L, te) => {
|
|
1254
|
+
w.current = L, te == null || te(), !k && !l && (E(!1), s == null || s());
|
|
1255
|
+
}, xt = (L, te) => L.groupHeader ? /* @__PURE__ */ a(
|
|
1257
1256
|
"li",
|
|
1258
1257
|
{
|
|
1259
1258
|
role: "none",
|
|
@@ -1267,7 +1266,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1267
1266
|
"data-testid": L.key,
|
|
1268
1267
|
tabIndex: -1,
|
|
1269
1268
|
disabled: L.disabled,
|
|
1270
|
-
onClick: () => St(
|
|
1269
|
+
onClick: () => St(te, L.onClick),
|
|
1271
1270
|
role: "menuitem",
|
|
1272
1271
|
className: u(ut[`${mt}__list__item`], {
|
|
1273
1272
|
[ut[`${mt}__list__item--disabled`]]: L.disabled,
|
|
@@ -1287,7 +1286,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1287
1286
|
]
|
|
1288
1287
|
},
|
|
1289
1288
|
L.key
|
|
1290
|
-
) }, L.key), dt = /* @__PURE__ */ h(
|
|
1289
|
+
) }, L.key), dt = /* @__PURE__ */ h(J, { children: [
|
|
1291
1290
|
/* @__PURE__ */ a(
|
|
1292
1291
|
"div",
|
|
1293
1292
|
B(v({
|
|
@@ -1299,14 +1298,14 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1299
1298
|
children: _
|
|
1300
1299
|
})
|
|
1301
1300
|
),
|
|
1302
|
-
/* @__PURE__ */ a(oa, { id: T, children:
|
|
1301
|
+
/* @__PURE__ */ a(oa, { id: T, children: O && /* @__PURE__ */ h(
|
|
1303
1302
|
"div",
|
|
1304
1303
|
B(v({
|
|
1305
1304
|
ref: U.setFloating,
|
|
1306
1305
|
className: ut[mt],
|
|
1307
1306
|
style: v(v({
|
|
1308
1307
|
position: z,
|
|
1309
|
-
top:
|
|
1308
|
+
top: M != null ? M : "",
|
|
1310
1309
|
left: A != null ? A : ""
|
|
1311
1310
|
}, !!C && { maxHeight: C }), K)
|
|
1312
1311
|
}, ye()), {
|
|
@@ -1340,9 +1339,9 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1340
1339
|
) })
|
|
1341
1340
|
] });
|
|
1342
1341
|
return $ === null ? /* @__PURE__ */ a($r, { children: dt }) : dt;
|
|
1343
|
-
},
|
|
1344
|
-
loader:
|
|
1345
|
-
loader__spinner:
|
|
1342
|
+
}, Yn = "lc-Loader-module__loader___Ukoov", Xn = "lc-Loader-module__loader__spinner___cp5N7", Zn = "lc-Loader-module__rotate___p-j1x", qn = "lc-Loader-module__loader__label___CF5-C", la = {
|
|
1343
|
+
loader: Yn,
|
|
1344
|
+
loader__spinner: Xn,
|
|
1346
1345
|
"loader__spinner--small": "lc-Loader-module__loader__spinner--small___9XXkz",
|
|
1347
1346
|
"loader__spinner--medium": "lc-Loader-module__loader__spinner--medium___oTzt2",
|
|
1348
1347
|
"loader__spinner--large": "lc-Loader-module__loader__spinner--large___vDCTc",
|
|
@@ -1438,7 +1437,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1438
1437
|
"btn--animated-label": "lc-Button-module__btn--animated-label___8uZTa",
|
|
1439
1438
|
btn__content: rl,
|
|
1440
1439
|
"btn--animated-label--expanded": "lc-Button-module__btn--animated-label--expanded___dTfmD"
|
|
1441
|
-
}, ue = "btn",
|
|
1440
|
+
}, ue = "btn", Y = p.forwardRef(
|
|
1442
1441
|
(S, x) => {
|
|
1443
1442
|
var k = S, {
|
|
1444
1443
|
loading: e = !1,
|
|
@@ -1471,7 +1470,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1471
1470
|
"onClick",
|
|
1472
1471
|
"animatedLabel"
|
|
1473
1472
|
]);
|
|
1474
|
-
const [y,
|
|
1473
|
+
const [y, E] = p.useState(0), [C, I] = p.useState(!1), w = e || t, $ = !i && l, T = f && i && l, P = ["text", "link", "link-light"].includes(o), O = m ? "a" : "button", N = u(
|
|
1475
1474
|
de[ue],
|
|
1476
1475
|
de[`${ue}--${o}`],
|
|
1477
1476
|
de[`${ue}--${n}`],
|
|
@@ -1488,7 +1487,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1488
1487
|
s
|
|
1489
1488
|
);
|
|
1490
1489
|
return /* @__PURE__ */ h(
|
|
1491
|
-
|
|
1490
|
+
O,
|
|
1492
1491
|
B(v(v(v({
|
|
1493
1492
|
ref: x,
|
|
1494
1493
|
className: N,
|
|
@@ -1498,22 +1497,22 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1498
1497
|
}, !w && { href: m, onClick: g }), b), T && {
|
|
1499
1498
|
onMouseEnter: (A) => So(
|
|
1500
1499
|
A,
|
|
1501
|
-
() =>
|
|
1500
|
+
() => I(!0),
|
|
1502
1501
|
b == null ? void 0 : b.onMouseEnter
|
|
1503
1502
|
),
|
|
1504
1503
|
onMouseLeave: (A) => So(
|
|
1505
1504
|
A,
|
|
1506
|
-
() =>
|
|
1505
|
+
() => I(!1),
|
|
1507
1506
|
b == null ? void 0 : b.onMouseLeave
|
|
1508
1507
|
),
|
|
1509
1508
|
onBlur: (A) => Qn(
|
|
1510
1509
|
A,
|
|
1511
|
-
() =>
|
|
1510
|
+
() => I(!1),
|
|
1512
1511
|
b == null ? void 0 : b.onBlur
|
|
1513
1512
|
),
|
|
1514
1513
|
onKeyUp: (A) => {
|
|
1515
|
-
var
|
|
1516
|
-
(A.key === "Enter" || A.key === " ") &&
|
|
1514
|
+
var M;
|
|
1515
|
+
(A.key === "Enter" || A.key === " ") && I(!0), A.key === "Escape" && I(!1), (M = b == null ? void 0 : b.onKeyUp) == null || M.call(b, A);
|
|
1517
1516
|
}
|
|
1518
1517
|
}), {
|
|
1519
1518
|
children: [
|
|
@@ -1544,7 +1543,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1544
1543
|
{
|
|
1545
1544
|
className: de[`${ue}__content`],
|
|
1546
1545
|
style: T ? { maxWidth: C ? y : 0 } : void 0,
|
|
1547
|
-
children: T ? /* @__PURE__ */ a("span", { ref: (A) => Jn(A,
|
|
1546
|
+
children: T ? /* @__PURE__ */ a("span", { ref: (A) => Jn(A, E), children: i }) : i
|
|
1548
1547
|
}
|
|
1549
1548
|
)
|
|
1550
1549
|
]
|
|
@@ -1574,7 +1573,7 @@ const id = (e) => e === "dark" ? Rt.Dark : Rt.Light, Qo = B_(void 0), sd = () =>
|
|
|
1574
1573
|
t && /* @__PURE__ */ a("div", { className: ca[`${ia}__right-node`], children: t })
|
|
1575
1574
|
]
|
|
1576
1575
|
}
|
|
1577
|
-
),
|
|
1576
|
+
), pd = (e) => (Ue(() => {
|
|
1578
1577
|
console.warn("`ActionMenuItem` is deprecated. Use `ListItem` instead.");
|
|
1579
1578
|
}, []), /* @__PURE__ */ a(mr, v({}, e)));
|
|
1580
1579
|
function o_(e) {
|
|
@@ -1644,7 +1643,7 @@ const _l = (e) => {
|
|
|
1644
1643
|
"reports-tooltip__heading__title": "lc-Tooltip-module__reports-tooltip__heading__title___0foO-",
|
|
1645
1644
|
"reports-tooltip__heading__description": "lc-Tooltip-module__reports-tooltip__heading__description___E6Gb3",
|
|
1646
1645
|
"reports-tooltip__content": "lc-Tooltip-module__reports-tooltip__content___yfOcf"
|
|
1647
|
-
}, ja = "tooltip",
|
|
1646
|
+
}, ja = "tooltip", Ot = ({
|
|
1648
1647
|
children: e,
|
|
1649
1648
|
className: t,
|
|
1650
1649
|
triggerClassName: r,
|
|
@@ -1664,17 +1663,17 @@ const _l = (e) => {
|
|
|
1664
1663
|
hoverOnDelay: S,
|
|
1665
1664
|
hoverOffDelay: k,
|
|
1666
1665
|
triggerOnClick: y = !1,
|
|
1667
|
-
triggerOnHover:
|
|
1666
|
+
triggerOnHover: E = !0,
|
|
1668
1667
|
offsetMainAxis: C = 8,
|
|
1669
|
-
offsetCrossAxis:
|
|
1668
|
+
offsetCrossAxis: I = 0,
|
|
1670
1669
|
referenceElement: w,
|
|
1671
1670
|
activationThreshold: $ = 0,
|
|
1672
1671
|
useDismissHookProps: T,
|
|
1673
1672
|
useClickHookProps: P,
|
|
1674
|
-
hoverOutDelayTimeout:
|
|
1673
|
+
hoverOutDelayTimeout: O = 100,
|
|
1675
1674
|
arrowOffsetY: N,
|
|
1676
1675
|
arrowOffsetX: A,
|
|
1677
|
-
closeOnTriggerBlur:
|
|
1676
|
+
closeOnTriggerBlur: M = !1,
|
|
1678
1677
|
floatingStrategy: z,
|
|
1679
1678
|
portal: U,
|
|
1680
1679
|
portalProps: H,
|
|
@@ -1687,15 +1686,15 @@ const _l = (e) => {
|
|
|
1687
1686
|
d && G[`${ja}--full-space`]
|
|
1688
1687
|
), xt = typeof _ == "function", dt = (at) => {
|
|
1689
1688
|
at !== K && (at ? i == null || i() : s == null || s(), !Ae && ze(at));
|
|
1690
|
-
}, L = (at) => m ? at != null ? at : g : 0,
|
|
1689
|
+
}, L = (at) => m ? at != null ? at : g : 0, te = (at) => at != null ? at : x, {
|
|
1691
1690
|
floatingStyles: le,
|
|
1692
1691
|
refs: V,
|
|
1693
|
-
context:
|
|
1694
|
-
middlewareData: { arrow: { x: gt, y:
|
|
1692
|
+
context: Z,
|
|
1693
|
+
middlewareData: { arrow: { x: gt, y: Yt } = {}, hide: Et }
|
|
1695
1694
|
} = Ua({
|
|
1696
1695
|
nodeId: tt,
|
|
1697
1696
|
middleware: [
|
|
1698
|
-
za({ mainAxis: C, crossAxis:
|
|
1697
|
+
za({ mainAxis: C, crossAxis: I }),
|
|
1699
1698
|
lo(),
|
|
1700
1699
|
wr(),
|
|
1701
1700
|
cn({ element: ye, padding: 8 }),
|
|
@@ -1706,38 +1705,38 @@ const _l = (e) => {
|
|
|
1706
1705
|
strategy: z,
|
|
1707
1706
|
onOpenChange: dt,
|
|
1708
1707
|
whileElementsMounted: Va
|
|
1709
|
-
}), xr = dn(
|
|
1708
|
+
}), xr = dn(Z, {
|
|
1710
1709
|
move: !1,
|
|
1711
1710
|
restMs: $,
|
|
1712
1711
|
delay: {
|
|
1713
|
-
open:
|
|
1714
|
-
close:
|
|
1712
|
+
open: te(S),
|
|
1713
|
+
close: te(k || O)
|
|
1715
1714
|
},
|
|
1716
|
-
enabled:
|
|
1717
|
-
handleClose:
|
|
1718
|
-
}),
|
|
1715
|
+
enabled: E,
|
|
1716
|
+
handleClose: M ? null : un()
|
|
1717
|
+
}), Er = mn(Z), Ir = Ka(Z, T), Br = Ya(Z, { role: "tooltip" }), Tr = Wa(Z, v({
|
|
1719
1718
|
enabled: y
|
|
1720
|
-
}, P)), { isMounted: Ar, styles: Dr } = yr(
|
|
1719
|
+
}, P)), { isMounted: Ar, styles: Dr } = yr(Z, {
|
|
1721
1720
|
duration: {
|
|
1722
1721
|
open: L(f),
|
|
1723
1722
|
close: L(b)
|
|
1724
1723
|
}
|
|
1725
|
-
}), { status: Pr } = pn(
|
|
1724
|
+
}), { status: Pr } = pn(Z), { getReferenceProps: Fr, getFloatingProps: Za } = Xa([
|
|
1726
1725
|
xr,
|
|
1727
|
-
Ir,
|
|
1728
1726
|
Er,
|
|
1727
|
+
Ir,
|
|
1729
1728
|
Br,
|
|
1730
1729
|
Tr
|
|
1731
1730
|
]);
|
|
1732
1731
|
p.useEffect(() => {
|
|
1733
1732
|
w && V.setReference(w);
|
|
1734
1733
|
}, [V.setReference, w]);
|
|
1735
|
-
const
|
|
1734
|
+
const Mt = /* @__PURE__ */ a(oa, { id: tt, children: Ar && /* @__PURE__ */ h(
|
|
1736
1735
|
"div",
|
|
1737
1736
|
B(v({
|
|
1738
1737
|
ref: V.setFloating,
|
|
1739
1738
|
style: B(v(v({}, le), Dr), {
|
|
1740
|
-
visibility:
|
|
1739
|
+
visibility: Et != null && Et.referenceHidden ? "hidden" : "visible"
|
|
1741
1740
|
}),
|
|
1742
1741
|
className: St
|
|
1743
1742
|
}, Za()), {
|
|
@@ -1748,22 +1747,22 @@ const _l = (e) => {
|
|
|
1748
1747
|
gn,
|
|
1749
1748
|
v({
|
|
1750
1749
|
ref: ye,
|
|
1751
|
-
context:
|
|
1750
|
+
context: Z,
|
|
1752
1751
|
strokeWidth: 1,
|
|
1753
1752
|
width: 10,
|
|
1754
1753
|
height: 5,
|
|
1755
1754
|
style: v({}, ol(
|
|
1756
1755
|
N,
|
|
1757
1756
|
A,
|
|
1758
|
-
|
|
1757
|
+
Yt,
|
|
1759
1758
|
gt
|
|
1760
1759
|
))
|
|
1761
1760
|
}, _l(be))
|
|
1762
1761
|
)
|
|
1763
1762
|
]
|
|
1764
1763
|
})
|
|
1765
|
-
) }), S_ = () => et === null ? /* @__PURE__ */ a($r, { children: U ? /* @__PURE__ */ a(aa, B(v({}, H), { children:
|
|
1766
|
-
return /* @__PURE__ */ h(
|
|
1764
|
+
) }), S_ = () => et === null ? /* @__PURE__ */ a($r, { children: U ? /* @__PURE__ */ a(aa, B(v({}, H), { children: Mt })) : Mt }) : U ? /* @__PURE__ */ a(aa, B(v({}, H), { children: Mt })) : Mt;
|
|
1765
|
+
return /* @__PURE__ */ h(J, { children: [
|
|
1767
1766
|
/* @__PURE__ */ a(
|
|
1768
1767
|
"div",
|
|
1769
1768
|
B(v({
|
|
@@ -1776,7 +1775,7 @@ const _l = (e) => {
|
|
|
1776
1775
|
),
|
|
1777
1776
|
S_()
|
|
1778
1777
|
] });
|
|
1779
|
-
},
|
|
1778
|
+
}, gd = ({ text: e }) => /* @__PURE__ */ a("div", { children: e }), sa = "tooltip", hd = ({
|
|
1780
1779
|
className: e,
|
|
1781
1780
|
header: t,
|
|
1782
1781
|
text: r,
|
|
@@ -1816,7 +1815,7 @@ const _l = (e) => {
|
|
|
1816
1815
|
children: r
|
|
1817
1816
|
}
|
|
1818
1817
|
)
|
|
1819
|
-
] }),
|
|
1818
|
+
] }), It = "tooltip", sl = ({
|
|
1820
1819
|
header: e,
|
|
1821
1820
|
text: t,
|
|
1822
1821
|
image: r,
|
|
@@ -1832,7 +1831,7 @@ const _l = (e) => {
|
|
|
1832
1831
|
return m;
|
|
1833
1832
|
const f = m, b = g ? f.kind || d(o) : f.kind || s(o);
|
|
1834
1833
|
return /* @__PURE__ */ a(
|
|
1835
|
-
|
|
1834
|
+
Y,
|
|
1836
1835
|
B(v({}, f), {
|
|
1837
1836
|
kind: b,
|
|
1838
1837
|
onClick: f.handleClick,
|
|
@@ -1840,33 +1839,33 @@ const _l = (e) => {
|
|
|
1840
1839
|
})
|
|
1841
1840
|
);
|
|
1842
1841
|
};
|
|
1843
|
-
return /* @__PURE__ */ h("div", { className: G[`${
|
|
1842
|
+
return /* @__PURE__ */ h("div", { className: G[`${It}__interactive`], children: [
|
|
1844
1843
|
(_ || n) && /* @__PURE__ */ a(
|
|
1845
1844
|
"button",
|
|
1846
1845
|
{
|
|
1847
1846
|
type: "button",
|
|
1848
1847
|
"aria-label": "Close tooltip",
|
|
1849
|
-
className: G[`${
|
|
1848
|
+
className: G[`${It}-close`],
|
|
1850
1849
|
onClick: n,
|
|
1851
1850
|
children: /* @__PURE__ */ a(F, { source: Qe, kind: o ? o_(o) : "primary" })
|
|
1852
1851
|
}
|
|
1853
1852
|
),
|
|
1854
|
-
r && /* @__PURE__ */ a("div", { className: G[`${
|
|
1853
|
+
r && /* @__PURE__ */ a("div", { className: G[`${It}-image-container`], children: /* @__PURE__ */ a(
|
|
1855
1854
|
"img",
|
|
1856
1855
|
{
|
|
1857
|
-
className: G[`${
|
|
1856
|
+
className: G[`${It}-image`],
|
|
1858
1857
|
src: r.src,
|
|
1859
1858
|
alt: r.alt
|
|
1860
1859
|
}
|
|
1861
1860
|
) }),
|
|
1862
|
-
e && /* @__PURE__ */ a(se, { as: "div", size: "xs", className: G[`${
|
|
1863
|
-
/* @__PURE__ */ a("div", { className: G[`${
|
|
1861
|
+
e && /* @__PURE__ */ a(se, { as: "div", size: "xs", className: G[`${It}-header`], children: e }),
|
|
1862
|
+
/* @__PURE__ */ a("div", { className: G[`${It}-text`], children: t }),
|
|
1864
1863
|
/* @__PURE__ */ h(
|
|
1865
1864
|
"div",
|
|
1866
1865
|
{
|
|
1867
1866
|
className: u(
|
|
1868
|
-
G[`${
|
|
1869
|
-
G[`${
|
|
1867
|
+
G[`${It}-footer`],
|
|
1868
|
+
G[`${It}-footer--interactive`]
|
|
1870
1869
|
),
|
|
1871
1870
|
children: [
|
|
1872
1871
|
i(l, !0),
|
|
@@ -1909,7 +1908,7 @@ const _l = (e) => {
|
|
|
1909
1908
|
height: `${e.height}px`,
|
|
1910
1909
|
backgroundColor: "transparent"
|
|
1911
1910
|
};
|
|
1912
|
-
return /* @__PURE__ */ h(
|
|
1911
|
+
return /* @__PURE__ */ h(J, { children: [
|
|
1913
1912
|
/* @__PURE__ */ a(
|
|
1914
1913
|
"div",
|
|
1915
1914
|
{
|
|
@@ -1969,8 +1968,8 @@ const _l = (e) => {
|
|
|
1969
1968
|
};
|
|
1970
1969
|
class ul {
|
|
1971
1970
|
constructor(t, r) {
|
|
1972
|
-
|
|
1973
|
-
|
|
1971
|
+
Or(this, "element");
|
|
1972
|
+
Or(this, "padding");
|
|
1974
1973
|
this.element = t, this.padding = r;
|
|
1975
1974
|
}
|
|
1976
1975
|
addPadding(t) {
|
|
@@ -1996,7 +1995,7 @@ class ul {
|
|
|
1996
1995
|
return this.getBoundingClientRect().height;
|
|
1997
1996
|
}
|
|
1998
1997
|
}
|
|
1999
|
-
const xo = 8,
|
|
1998
|
+
const xo = 8, Eo = "guide-tooltip", Io = (e, t) => new ul(e, t), fd = (e) => {
|
|
2000
1999
|
const {
|
|
2001
2000
|
className: t,
|
|
2002
2001
|
parentElementName: r,
|
|
@@ -2006,7 +2005,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2006
2005
|
null
|
|
2007
2006
|
), [c, d] = p.useState(null), [s, i] = p.useState(o), m = () => {
|
|
2008
2007
|
n && (d(
|
|
2009
|
-
|
|
2008
|
+
Io(
|
|
2010
2009
|
n,
|
|
2011
2010
|
xo
|
|
2012
2011
|
).getBoundingClientRect()
|
|
@@ -2024,7 +2023,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2024
2023
|
}
|
|
2025
2024
|
}, [r]), p.useEffect(() => {
|
|
2026
2025
|
n && d(
|
|
2027
|
-
|
|
2026
|
+
Io(
|
|
2028
2027
|
n,
|
|
2029
2028
|
xo
|
|
2030
2029
|
).getBoundingClientRect()
|
|
@@ -2040,23 +2039,23 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2040
2039
|
}
|
|
2041
2040
|
),
|
|
2042
2041
|
/* @__PURE__ */ a(
|
|
2043
|
-
|
|
2042
|
+
Ot,
|
|
2044
2043
|
B(v({}, e), {
|
|
2045
|
-
triggerRenderer: /* @__PURE__ */ a(
|
|
2044
|
+
triggerRenderer: /* @__PURE__ */ a(J, {}),
|
|
2046
2045
|
referenceElement: {
|
|
2047
2046
|
getBoundingClientRect: () => c,
|
|
2048
2047
|
contextElement: n
|
|
2049
2048
|
},
|
|
2050
2049
|
className: u({
|
|
2051
|
-
[G[
|
|
2052
|
-
[G[`${
|
|
2050
|
+
[G[Eo]]: !0,
|
|
2051
|
+
[G[`${Eo}--slide`]]: s,
|
|
2053
2052
|
className: t
|
|
2054
2053
|
}),
|
|
2055
2054
|
children: e.children
|
|
2056
2055
|
})
|
|
2057
2056
|
)
|
|
2058
2057
|
] }) : null;
|
|
2059
|
-
}, da = "reports-tooltip",
|
|
2058
|
+
}, da = "reports-tooltip", bd = ({
|
|
2060
2059
|
title: e,
|
|
2061
2060
|
description: t,
|
|
2062
2061
|
children: r
|
|
@@ -2074,7 +2073,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2074
2073
|
)
|
|
2075
2074
|
] }),
|
|
2076
2075
|
/* @__PURE__ */ a("div", { className: G[`${da}__content`], children: /* @__PURE__ */ a(D, { as: "div", children: r }) })
|
|
2077
|
-
] }),
|
|
2076
|
+
] }), ee = {
|
|
2078
2077
|
"action-bar": "lc-ActionBar-module__action-bar___yfLdO",
|
|
2079
2078
|
"action-bar__items": "lc-ActionBar-module__action-bar__items___E8fX6",
|
|
2080
2079
|
"action-bar__items--scroll": "lc-ActionBar-module__action-bar__items--scroll___izP27",
|
|
@@ -2100,25 +2099,25 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2100
2099
|
"action-bar__items--with-menu": "lc-ActionBar-module__action-bar__items--with-menu___OfqL0",
|
|
2101
2100
|
"action-bar__items__button": "lc-ActionBar-module__action-bar__items__button___N1Qtp",
|
|
2102
2101
|
"action-bar__items__button--active": "lc-ActionBar-module__action-bar__items__button--active___adIVs"
|
|
2103
|
-
}, __ = "action-bar__items",
|
|
2102
|
+
}, __ = "action-bar__items", Xt = `${__}__button-wrapper`, ml = ({
|
|
2104
2103
|
option: e,
|
|
2105
2104
|
isActive: t,
|
|
2106
2105
|
vertical: r
|
|
2107
2106
|
}) => {
|
|
2108
|
-
const _ = u(
|
|
2109
|
-
[
|
|
2110
|
-
[
|
|
2107
|
+
const _ = u(ee[Xt], {
|
|
2108
|
+
[ee[`${Xt}--active`]]: t,
|
|
2109
|
+
[ee[`${Xt}--vertical`]]: r
|
|
2111
2110
|
}), o = /* @__PURE__ */ a(
|
|
2112
|
-
|
|
2111
|
+
Y,
|
|
2113
2112
|
{
|
|
2114
2113
|
id: e.key,
|
|
2115
2114
|
title: e != null && e.showTooltip ? void 0 : e.label,
|
|
2116
2115
|
kind: "plain",
|
|
2117
2116
|
onClick: e.onClick,
|
|
2118
2117
|
icon: e.element,
|
|
2119
|
-
className: u(
|
|
2120
|
-
[
|
|
2121
|
-
[
|
|
2118
|
+
className: u(ee[`${Xt}__button`], {
|
|
2119
|
+
[ee[`${Xt}__button--with-vertical-divider`]]: r && e.withDivider,
|
|
2120
|
+
[ee[`${Xt}__button--with-divider`]]: !r && e.withDivider
|
|
2122
2121
|
})
|
|
2123
2122
|
},
|
|
2124
2123
|
e.key
|
|
@@ -2129,11 +2128,11 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2129
2128
|
"data-testid": e.key,
|
|
2130
2129
|
className: _,
|
|
2131
2130
|
children: /* @__PURE__ */ a(
|
|
2132
|
-
|
|
2131
|
+
Ot,
|
|
2133
2132
|
{
|
|
2134
2133
|
kind: "invert",
|
|
2135
2134
|
placement: r ? "left" : "bottom",
|
|
2136
|
-
triggerClassName:
|
|
2135
|
+
triggerClassName: ee[`${__}__tooltip`],
|
|
2137
2136
|
triggerRenderer: () => o,
|
|
2138
2137
|
floatingStrategy: "fixed",
|
|
2139
2138
|
useClickHookProps: {
|
|
@@ -2147,7 +2146,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2147
2146
|
},
|
|
2148
2147
|
e.key
|
|
2149
2148
|
) : /* @__PURE__ */ a("div", { "data-testid": e.key, className: _, children: o });
|
|
2150
|
-
}, Qa = "action-bar", ht = "action-bar__menu-wrapper", pl = 44,
|
|
2149
|
+
}, Qa = "action-bar", ht = "action-bar__menu-wrapper", pl = 44, vd = ({
|
|
2151
2150
|
className: e,
|
|
2152
2151
|
id: t = "action-bar-area",
|
|
2153
2152
|
type: r = "menu",
|
|
@@ -2159,32 +2158,32 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2159
2158
|
const [c, d] = p.useState(
|
|
2160
2159
|
_.length
|
|
2161
2160
|
), [s, i] = p.useState([]), [m, g] = p.useState(!1), f = r === "scroll", b = u(
|
|
2162
|
-
|
|
2161
|
+
ee[Qa],
|
|
2163
2162
|
e,
|
|
2164
|
-
n &&
|
|
2163
|
+
n && ee[`${Qa}--vertical`]
|
|
2165
2164
|
), x = !f && s.length !== 0;
|
|
2166
2165
|
p.useEffect(() => {
|
|
2167
2166
|
f || (_.length > c ? i(_.slice(c, _.length)) : i([]));
|
|
2168
2167
|
}, [_, c]), p.useEffect(() => {
|
|
2169
2168
|
const y = !!window.ResizeObserver;
|
|
2170
2169
|
if (!f && y) {
|
|
2171
|
-
const
|
|
2172
|
-
const { width:
|
|
2170
|
+
const E = new ResizeObserver((C) => {
|
|
2171
|
+
const { width: I, height: w } = C[0].contentRect, $ = n ? w : I, T = s.length > 0 ? 60 : 0, P = Math.floor(
|
|
2173
2172
|
($ - T) / pl
|
|
2174
2173
|
);
|
|
2175
2174
|
P >= 0 && P !== c && d(P);
|
|
2176
2175
|
});
|
|
2177
|
-
return
|
|
2176
|
+
return E.observe(document.querySelector(`#${t}`)), () => E.disconnect();
|
|
2178
2177
|
}
|
|
2179
2178
|
}, [s, f, c]);
|
|
2180
2179
|
const S = p.useCallback(() => s.reduce(
|
|
2181
|
-
(y,
|
|
2182
|
-
if (!
|
|
2180
|
+
(y, E) => {
|
|
2181
|
+
if (!E.hideInMenu) {
|
|
2183
2182
|
const C = {
|
|
2184
|
-
key:
|
|
2185
|
-
element: /* @__PURE__ */ a(mr, { leftNode:
|
|
2186
|
-
withDivider:
|
|
2187
|
-
onClick:
|
|
2183
|
+
key: E.key,
|
|
2184
|
+
element: /* @__PURE__ */ a(mr, { leftNode: E.element, children: E.label }),
|
|
2185
|
+
withDivider: E.withDivider,
|
|
2186
|
+
onClick: E.onClick
|
|
2188
2187
|
};
|
|
2189
2188
|
y.push(C);
|
|
2190
2189
|
}
|
|
@@ -2196,8 +2195,8 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2196
2195
|
/* @__PURE__ */ a(
|
|
2197
2196
|
"div",
|
|
2198
2197
|
{
|
|
2199
|
-
className: u(
|
|
2200
|
-
[
|
|
2198
|
+
className: u(ee[`${Qa}__items`], {
|
|
2199
|
+
[ee[`${Qa}__items--scroll`]]: f
|
|
2201
2200
|
}),
|
|
2202
2201
|
children: _.slice(0, c).map((y) => /* @__PURE__ */ a(
|
|
2203
2202
|
ml,
|
|
@@ -2213,9 +2212,9 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2213
2212
|
"div",
|
|
2214
2213
|
{
|
|
2215
2214
|
className: u(
|
|
2216
|
-
|
|
2217
|
-
k &&
|
|
2218
|
-
n &&
|
|
2215
|
+
ee[ht],
|
|
2216
|
+
k && ee[`${ht}--active`],
|
|
2217
|
+
n && ee[`${ht}--vertical`]
|
|
2219
2218
|
),
|
|
2220
2219
|
children: /* @__PURE__ */ a(
|
|
2221
2220
|
a_,
|
|
@@ -2227,14 +2226,14 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2227
2226
|
placement: n ? "left-start" : "bottom-end",
|
|
2228
2227
|
options: S(),
|
|
2229
2228
|
triggerClassName: u(
|
|
2230
|
-
n &&
|
|
2229
|
+
n && ee[`${ht}__trigger-vertical`]
|
|
2231
2230
|
),
|
|
2232
2231
|
triggerRenderer: /* @__PURE__ */ a(
|
|
2233
|
-
|
|
2232
|
+
Y,
|
|
2234
2233
|
{
|
|
2235
2234
|
className: u(
|
|
2236
|
-
|
|
2237
|
-
k &&
|
|
2235
|
+
ee[`${ht}__button`],
|
|
2236
|
+
k && ee[`${ht}__button--active`]
|
|
2238
2237
|
),
|
|
2239
2238
|
kind: "plain",
|
|
2240
2239
|
icon: /* @__PURE__ */ a(
|
|
@@ -2243,8 +2242,8 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2243
2242
|
source: Kt,
|
|
2244
2243
|
kind: "primary",
|
|
2245
2244
|
className: u(
|
|
2246
|
-
|
|
2247
|
-
m &&
|
|
2245
|
+
ee[`${ht}__button__icon`],
|
|
2246
|
+
m && ee[`${ht}__button__icon--open`]
|
|
2248
2247
|
)
|
|
2249
2248
|
}
|
|
2250
2249
|
),
|
|
@@ -2253,7 +2252,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2253
2252
|
"div",
|
|
2254
2253
|
{
|
|
2255
2254
|
className: u(
|
|
2256
|
-
|
|
2255
|
+
ee[`${ht}__button__with-item`]
|
|
2257
2256
|
),
|
|
2258
2257
|
children: k.element
|
|
2259
2258
|
}
|
|
@@ -2272,7 +2271,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2272
2271
|
"action-card__column": "lc-ActionCard-module__action-card__column___KgMRx",
|
|
2273
2272
|
"action-card__column--first": "lc-ActionCard-module__action-card__column--first___BWQwi",
|
|
2274
2273
|
"action-card__column--second": "lc-ActionCard-module__action-card__column--second___-X-gO"
|
|
2275
|
-
}, Lt = "action-card",
|
|
2274
|
+
}, Lt = "action-card", kd = ({
|
|
2276
2275
|
className: e,
|
|
2277
2276
|
children: t,
|
|
2278
2277
|
secondColumn: r,
|
|
@@ -2340,7 +2339,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2340
2339
|
"alert--error": "lc-Alert-module__alert--error___EK-vJ"
|
|
2341
2340
|
}, wl = {
|
|
2342
2341
|
info: {
|
|
2343
|
-
source:
|
|
2342
|
+
source: Oa,
|
|
2344
2343
|
kind: "link"
|
|
2345
2344
|
},
|
|
2346
2345
|
warning: {
|
|
@@ -2352,10 +2351,10 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2352
2351
|
kind: "success"
|
|
2353
2352
|
},
|
|
2354
2353
|
error: {
|
|
2355
|
-
source:
|
|
2354
|
+
source: Yo,
|
|
2356
2355
|
kind: "error"
|
|
2357
2356
|
}
|
|
2358
|
-
}, We = "alert",
|
|
2357
|
+
}, We = "alert", Cd = (c) => {
|
|
2359
2358
|
var d = c, {
|
|
2360
2359
|
children: e,
|
|
2361
2360
|
className: t,
|
|
@@ -2405,7 +2404,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2405
2404
|
] }),
|
|
2406
2405
|
(r || _) && /* @__PURE__ */ h("div", { className: Ve[`${We}__content__wrapper__cta`], children: [
|
|
2407
2406
|
r && /* @__PURE__ */ a(
|
|
2408
|
-
|
|
2407
|
+
Y,
|
|
2409
2408
|
B(v({
|
|
2410
2409
|
kind: "high-contrast",
|
|
2411
2410
|
onClick: r.handleClick
|
|
@@ -2414,7 +2413,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2414
2413
|
})
|
|
2415
2414
|
),
|
|
2416
2415
|
_ && /* @__PURE__ */ a(
|
|
2417
|
-
|
|
2416
|
+
Y,
|
|
2418
2417
|
B(v({
|
|
2419
2418
|
className: u(
|
|
2420
2419
|
Ve[`${We}__content__wrapper__cta__link`],
|
|
@@ -2429,7 +2428,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2429
2428
|
] })
|
|
2430
2429
|
] }),
|
|
2431
2430
|
n && /* @__PURE__ */ a(
|
|
2432
|
-
|
|
2431
|
+
Y,
|
|
2433
2432
|
{
|
|
2434
2433
|
"aria-label": "Close alert",
|
|
2435
2434
|
className: Ve[`${We}__close-icon`],
|
|
@@ -2548,7 +2547,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2548
2547
|
}
|
|
2549
2548
|
)
|
|
2550
2549
|
] });
|
|
2551
|
-
},
|
|
2550
|
+
}, wd = (e) => {
|
|
2552
2551
|
const _ = e, { isSideNavigationVisible: t } = _, r = R(_, ["isSideNavigationVisible"]);
|
|
2553
2552
|
return /* @__PURE__ */ a(Nn, { isSideNavigationVisible: t, children: /* @__PURE__ */ a(Nl, v({}, r)) });
|
|
2554
2553
|
}, qt = {
|
|
@@ -2558,7 +2557,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2558
2557
|
"side-navigation__footer": "lc-SideNavigation-module__side-navigation__footer___9LLon",
|
|
2559
2558
|
"side-navigation__nav-wrapper": "lc-SideNavigation-module__side-navigation__nav-wrapper___8Opuh",
|
|
2560
2559
|
"side-navigation__nav-wrapper--no-gaps": "lc-SideNavigation-module__side-navigation__nav-wrapper--no-gaps___1ApnT"
|
|
2561
|
-
}, jt = "side-navigation",
|
|
2560
|
+
}, jt = "side-navigation", yd = ({
|
|
2562
2561
|
children: e,
|
|
2563
2562
|
className: t,
|
|
2564
2563
|
title: r,
|
|
@@ -2594,7 +2593,7 @@ const xo = 8, Io = "guide-tooltip", Eo = (e, t) => new ul(e, t), vd = (e) => {
|
|
|
2594
2593
|
};
|
|
2595
2594
|
function La() {
|
|
2596
2595
|
}
|
|
2597
|
-
const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-test-id",
|
|
2596
|
+
const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-test-id", El = "side-navigation-parent-icon", Ye = {
|
|
2598
2597
|
"side-navigation-item": "lc-SideNavigationItem-module__side-navigation-item___QCTSQ",
|
|
2599
2598
|
"side-navigation-item__anchor": "lc-SideNavigationItem-module__side-navigation-item__anchor___PI--g",
|
|
2600
2599
|
"side-navigation-item__custom-label": "lc-SideNavigationItem-module__side-navigation-item__custom-label___ATpTF",
|
|
@@ -2607,7 +2606,7 @@ const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-tes
|
|
|
2607
2606
|
"side-navigation-item__label": "lc-SideNavigationItem-module__side-navigation-item__label___dpMyX",
|
|
2608
2607
|
"side-navigation-item__label--active": "lc-SideNavigationItem-module__side-navigation-item__label--active___4vImp",
|
|
2609
2608
|
"side-navigation-item__custom-label--active": "lc-SideNavigationItem-module__side-navigation-item__custom-label--active___UWDu9"
|
|
2610
|
-
},
|
|
2609
|
+
}, Xe = "side-navigation-item", Il = (g) => {
|
|
2611
2610
|
var f = g, {
|
|
2612
2611
|
leftNode: e,
|
|
2613
2612
|
shouldKeepIconSpace: t = !0,
|
|
@@ -2641,7 +2640,7 @@ const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-tes
|
|
|
2641
2640
|
return /* @__PURE__ */ a(
|
|
2642
2641
|
"li",
|
|
2643
2642
|
B(v({
|
|
2644
|
-
className: u([Xe
|
|
2643
|
+
className: u([Ye[Xe], o]),
|
|
2645
2644
|
"data-testid": c ? xl : Sl,
|
|
2646
2645
|
"data-active": c
|
|
2647
2646
|
}, m), {
|
|
@@ -2649,10 +2648,10 @@ const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-tes
|
|
|
2649
2648
|
"a",
|
|
2650
2649
|
{
|
|
2651
2650
|
tabIndex: 0,
|
|
2652
|
-
className: u(
|
|
2653
|
-
[
|
|
2654
|
-
[
|
|
2655
|
-
[
|
|
2651
|
+
className: u(Ye[`${Xe}__anchor`], {
|
|
2652
|
+
[Ye[`${Xe}__anchor--active`]]: c,
|
|
2653
|
+
[Ye[`${Xe}__anchor--main-entry`]]: d,
|
|
2654
|
+
[Ye[`${Xe}__anchor--icon-hidden`]]: i
|
|
2656
2655
|
}),
|
|
2657
2656
|
href: r,
|
|
2658
2657
|
onClick: x,
|
|
@@ -2663,10 +2662,10 @@ const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-tes
|
|
|
2663
2662
|
t && /* @__PURE__ */ a(
|
|
2664
2663
|
"span",
|
|
2665
2664
|
{
|
|
2666
|
-
className: u(
|
|
2667
|
-
[
|
|
2665
|
+
className: u(Ye[`${Xe}__left-node`], {
|
|
2666
|
+
[Ye[`${Xe}__left-node--active`]]: c || d
|
|
2668
2667
|
}),
|
|
2669
|
-
"data-testid":
|
|
2668
|
+
"data-testid": El,
|
|
2670
2669
|
children: e
|
|
2671
2670
|
}
|
|
2672
2671
|
),
|
|
@@ -2674,21 +2673,21 @@ const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-tes
|
|
|
2674
2673
|
D,
|
|
2675
2674
|
{
|
|
2676
2675
|
bold: c || d,
|
|
2677
|
-
className: u(
|
|
2678
|
-
[
|
|
2676
|
+
className: u(Ye[`${Xe}__label`], {
|
|
2677
|
+
[Ye[`${Xe}__label--active`]]: c || d
|
|
2679
2678
|
}),
|
|
2680
2679
|
children: _
|
|
2681
2680
|
}
|
|
2682
2681
|
) : /* @__PURE__ */ a(
|
|
2683
2682
|
"span",
|
|
2684
2683
|
{
|
|
2685
|
-
className: u(
|
|
2686
|
-
[
|
|
2684
|
+
className: u(Ye[`${Xe}__custom-label`], {
|
|
2685
|
+
[Ye[`${Xe}__custom-label--active`]]: c || d
|
|
2687
2686
|
}),
|
|
2688
2687
|
children: _
|
|
2689
2688
|
}
|
|
2690
2689
|
),
|
|
2691
|
-
n && /* @__PURE__ */ a("span", { className:
|
|
2690
|
+
n && /* @__PURE__ */ a("span", { className: Ye[`${Xe}__right-node`], children: n })
|
|
2692
2691
|
]
|
|
2693
2692
|
}
|
|
2694
2693
|
)
|
|
@@ -2703,7 +2702,7 @@ const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-tes
|
|
|
2703
2702
|
"side-navigation-group__list-wrapper": "lc-SideNavigationGroup-module__side-navigation-group__list-wrapper___moivM",
|
|
2704
2703
|
"side-navigation-group__list-wrapper--expanded": "lc-SideNavigationGroup-module__side-navigation-group__list-wrapper--expanded___cwPUQ",
|
|
2705
2704
|
"side-navigation-group__list": "lc-SideNavigationGroup-module__side-navigation-group__list___Srb-J"
|
|
2706
|
-
}, Tt = "side-navigation-group", Bl = 34,
|
|
2705
|
+
}, Tt = "side-navigation-group", Bl = 34, $d = ({
|
|
2707
2706
|
label: e,
|
|
2708
2707
|
rightNode: t,
|
|
2709
2708
|
className: r,
|
|
@@ -2715,26 +2714,26 @@ const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-tes
|
|
|
2715
2714
|
const [c, d] = p.useState(!1), [s, i] = p.useState(0), m = p.useRef(!1), g = p.useRef(null), { isOpen: f, isMounted: b, setShouldBeVisible: x } = Wt({
|
|
2716
2715
|
isVisible: !o || l,
|
|
2717
2716
|
elementRef: g
|
|
2718
|
-
}), S = typeof t == "function" ? t(f) : t, k = typeof e == "function" ? e(f) : e, y = () => x(!0),
|
|
2717
|
+
}), S = typeof t == "function" ? t(f) : t, k = typeof e == "function" ? e(f) : e, y = () => x(!0), E = () => {
|
|
2719
2718
|
o && x((C) => !C);
|
|
2720
2719
|
};
|
|
2721
2720
|
return p.useEffect(() => {
|
|
2722
2721
|
if (!_ || !o)
|
|
2723
2722
|
return;
|
|
2724
|
-
const C = _,
|
|
2723
|
+
const C = _, I = !!(C != null && C.some(
|
|
2725
2724
|
($) => {
|
|
2726
2725
|
var T;
|
|
2727
2726
|
return (T = $.props) == null ? void 0 : T.isActive;
|
|
2728
2727
|
}
|
|
2729
2728
|
));
|
|
2730
|
-
d(
|
|
2729
|
+
d(I);
|
|
2731
2730
|
const w = ((C == null ? void 0 : C.length) || 0) * Bl;
|
|
2732
2731
|
i(w);
|
|
2733
2732
|
}, [_]), p.useEffect(() => {
|
|
2734
2733
|
!m.current && c && y(), m.current = c;
|
|
2735
2734
|
}, [c, m.current, l]), /* @__PURE__ */ h("div", { "data-testid": "side-navigation-group", className: Bt[Tt], children: [
|
|
2736
2735
|
o ? /* @__PURE__ */ a(
|
|
2737
|
-
|
|
2736
|
+
Il,
|
|
2738
2737
|
{
|
|
2739
2738
|
leftNode: /* @__PURE__ */ a(
|
|
2740
2739
|
"div",
|
|
@@ -2747,7 +2746,7 @@ const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-tes
|
|
|
2747
2746
|
),
|
|
2748
2747
|
label: /* @__PURE__ */ a(D, { className: Bt[`${Tt}__label`], bold: !0, children: k }),
|
|
2749
2748
|
isMainEntry: !0,
|
|
2750
|
-
onClick:
|
|
2749
|
+
onClick: E,
|
|
2751
2750
|
onItemHover: n,
|
|
2752
2751
|
rightNode: S
|
|
2753
2752
|
}
|
|
@@ -2778,7 +2777,7 @@ const Sl = "side-navigation-item-test-id", xl = "side-navigation-active-item-tes
|
|
|
2778
2777
|
}, Bo = {
|
|
2779
2778
|
"navigation-group": "lc-NavigationGroup-module__navigation-group___61JTX",
|
|
2780
2779
|
"navigation-group--scrollable": "lc-NavigationGroup-module__navigation-group--scrollable___BL8-e"
|
|
2781
|
-
}, To = "navigation-group",
|
|
2780
|
+
}, To = "navigation-group", Nd = (o) => {
|
|
2782
2781
|
var n = o, {
|
|
2783
2782
|
children: e,
|
|
2784
2783
|
className: t,
|
|
@@ -2867,7 +2866,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
2867
2866
|
size: "compact",
|
|
2868
2867
|
type: e
|
|
2869
2868
|
}
|
|
2870
|
-
),
|
|
2869
|
+
), Sd = (m) => {
|
|
2871
2870
|
var g = m, {
|
|
2872
2871
|
id: e,
|
|
2873
2872
|
label: t,
|
|
@@ -2903,7 +2902,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
2903
2902
|
s
|
|
2904
2903
|
),
|
|
2905
2904
|
children: /* @__PURE__ */ a(
|
|
2906
|
-
|
|
2905
|
+
Ot,
|
|
2907
2906
|
{
|
|
2908
2907
|
floatingStrategy: "fixed",
|
|
2909
2908
|
placement: "right",
|
|
@@ -2916,7 +2915,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
2916
2915
|
referencePress: !0,
|
|
2917
2916
|
referencePressEvent: "click"
|
|
2918
2917
|
},
|
|
2919
|
-
triggerRenderer: /* @__PURE__ */ h(
|
|
2918
|
+
triggerRenderer: /* @__PURE__ */ h(J, { children: [
|
|
2920
2919
|
/* @__PURE__ */ h(
|
|
2921
2920
|
"a",
|
|
2922
2921
|
B(v({
|
|
@@ -2951,7 +2950,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
2951
2950
|
);
|
|
2952
2951
|
}, Fl = "lc-Navigation-module__navigation___oNBOL", Rl = {
|
|
2953
2952
|
navigation: Fl
|
|
2954
|
-
},
|
|
2953
|
+
}, Ol = "navigation", xd = (_) => {
|
|
2955
2954
|
var o = _, {
|
|
2956
2955
|
children: e,
|
|
2957
2956
|
className: t
|
|
@@ -2959,7 +2958,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
2959
2958
|
"children",
|
|
2960
2959
|
"className"
|
|
2961
2960
|
]);
|
|
2962
|
-
return /* @__PURE__ */ a("nav", B(v({ className: u(Rl[
|
|
2961
|
+
return /* @__PURE__ */ a("nav", B(v({ className: u(Rl[Ol], t) }, r), { children: e }));
|
|
2963
2962
|
}, st = {
|
|
2964
2963
|
"navigation-top-bar": "lc-NavigationTopBar-module__navigation-top-bar___WJzyv",
|
|
2965
2964
|
"navigation-top-bar__title": "lc-NavigationTopBar-module__navigation-top-bar__title___ROYDp",
|
|
@@ -2985,7 +2984,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
2985
2984
|
/* @__PURE__ */ a("div", { className: st[`${gr}__alerts-wrapper`], children: e }),
|
|
2986
2985
|
!_ && r
|
|
2987
2986
|
] });
|
|
2988
|
-
},
|
|
2987
|
+
}, Ml = ({
|
|
2989
2988
|
children: e,
|
|
2990
2989
|
className: t,
|
|
2991
2990
|
"data-testid": r
|
|
@@ -3010,14 +3009,14 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
3010
3009
|
elementRef: s,
|
|
3011
3010
|
includeSleepWakeScenario: !0
|
|
3012
3011
|
}), g = p.useCallback(
|
|
3013
|
-
(
|
|
3014
|
-
|
|
3012
|
+
(E) => Ma(
|
|
3013
|
+
E,
|
|
3015
3014
|
(C) => d(C.width < $l)
|
|
3016
3015
|
),
|
|
3017
3016
|
[]
|
|
3018
3017
|
), f = t === "warning" ? "link-inverted" : "text", b = t === "warning" ? "secondary" : "high-contrast", x = o == null ? void 0 : o.kind, S = n == null ? void 0 : n.kind, k = o || n ? /* @__PURE__ */ h("div", { className: st[`${At}__cta-wrapper`], children: [
|
|
3019
3018
|
o && /* @__PURE__ */ a(
|
|
3020
|
-
|
|
3019
|
+
Y,
|
|
3021
3020
|
B(v({
|
|
3022
3021
|
size: "compact"
|
|
3023
3022
|
}, o), {
|
|
@@ -3026,7 +3025,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
3026
3025
|
})
|
|
3027
3026
|
),
|
|
3028
3027
|
n && /* @__PURE__ */ a(
|
|
3029
|
-
|
|
3028
|
+
Y,
|
|
3030
3029
|
B(v({
|
|
3031
3030
|
size: "compact"
|
|
3032
3031
|
}, n), {
|
|
@@ -3034,7 +3033,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
3034
3033
|
children: n.label
|
|
3035
3034
|
})
|
|
3036
3035
|
)
|
|
3037
|
-
] }) : null, y = /* @__PURE__ */ h(
|
|
3036
|
+
] }) : null, y = /* @__PURE__ */ h(J, { children: [
|
|
3038
3037
|
/* @__PURE__ */ h("div", { className: st[`${At}__children-wrapper`], children: [
|
|
3039
3038
|
_,
|
|
3040
3039
|
k
|
|
@@ -3048,7 +3047,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
3048
3047
|
})
|
|
3049
3048
|
)
|
|
3050
3049
|
] });
|
|
3051
|
-
return /* @__PURE__ */ a(
|
|
3050
|
+
return /* @__PURE__ */ a(J, { children: i && /* @__PURE__ */ a("div", { ref: g, children: /* @__PURE__ */ a(
|
|
3052
3051
|
"div",
|
|
3053
3052
|
{
|
|
3054
3053
|
className: u(
|
|
@@ -3080,7 +3079,7 @@ const Al = "lc-Badge-module__badge___ZbEBU", Dl = "lc-Badge-module__badge__dot__
|
|
|
3080
3079
|
) }) });
|
|
3081
3080
|
};
|
|
3082
3081
|
l_.Alert = Ll;
|
|
3083
|
-
l_.Title =
|
|
3082
|
+
l_.Title = Ml;
|
|
3084
3083
|
function hr(e, t, r, _) {
|
|
3085
3084
|
return e === 1 ? t : r;
|
|
3086
3085
|
}
|
|
@@ -3089,7 +3088,7 @@ const tr = {
|
|
|
3089
3088
|
"expiration-counter__button": "lc-ExpirationCounter-module__expiration-counter__button___Xv5Nx",
|
|
3090
3089
|
"expiration-counter__button__number": "lc-ExpirationCounter-module__expiration-counter__button__number___9hZV4",
|
|
3091
3090
|
"expiration-counter__button__label": "lc-ExpirationCounter-module__expiration-counter__button__label___nJAOv"
|
|
3092
|
-
}, ar = "expiration-counter",
|
|
3091
|
+
}, ar = "expiration-counter", Ed = (l) => {
|
|
3093
3092
|
var c = l, {
|
|
3094
3093
|
id: e,
|
|
3095
3094
|
daysLeft: t,
|
|
@@ -3119,7 +3118,7 @@ const tr = {
|
|
|
3119
3118
|
) }, e);
|
|
3120
3119
|
}, Gl = {
|
|
3121
3120
|
"mobile-navigation": "lc-MobileNavigation-module__mobile-navigation___a--p5"
|
|
3122
|
-
}, Hl = "mobile-navigation",
|
|
3121
|
+
}, Hl = "mobile-navigation", Id = (_) => {
|
|
3123
3122
|
var o = _, {
|
|
3124
3123
|
children: e,
|
|
3125
3124
|
className: t
|
|
@@ -3174,7 +3173,7 @@ const tr = {
|
|
|
3174
3173
|
]);
|
|
3175
3174
|
const m = p.useRef(null);
|
|
3176
3175
|
p.useImperativeHandle(d, () => m.current, []);
|
|
3177
|
-
const [g, f] = p.useState(!1), [b, x] = p.useState(!1), { type: S, onFocus: k, onBlur: y } = c,
|
|
3176
|
+
const [g, f] = p.useState(!1), [b, x] = p.useState(!1), { type: S, onFocus: k, onBlur: y } = c, E = u(
|
|
3178
3177
|
o,
|
|
3179
3178
|
{
|
|
3180
3179
|
[Ge[`${He}--disabled`]]: t,
|
|
@@ -3184,13 +3183,13 @@ const tr = {
|
|
|
3184
3183
|
[Ge[`${He}--read-only`]]: c.readOnly
|
|
3185
3184
|
},
|
|
3186
3185
|
_
|
|
3187
|
-
), C = t ? "var(--content-disabled)" : "var(--content-default)",
|
|
3186
|
+
), C = t ? "var(--content-disabled)" : "var(--content-default)", I = b ? F_ : R_, w = r && r.place === "left", $ = r && S !== "password" && r.place === "right";
|
|
3188
3187
|
return /* @__PURE__ */ h(
|
|
3189
3188
|
D,
|
|
3190
3189
|
{
|
|
3191
3190
|
as: "div",
|
|
3192
3191
|
size: n ? "lg" : "md",
|
|
3193
|
-
className:
|
|
3192
|
+
className: E,
|
|
3194
3193
|
"aria-disabled": t,
|
|
3195
3194
|
"tab-index": "0",
|
|
3196
3195
|
onClick: () => {
|
|
@@ -3215,12 +3214,12 @@ const tr = {
|
|
|
3215
3214
|
),
|
|
3216
3215
|
$ && Ao(r, t),
|
|
3217
3216
|
S === "password" && /* @__PURE__ */ a(
|
|
3218
|
-
|
|
3217
|
+
Y,
|
|
3219
3218
|
{
|
|
3220
3219
|
disabled: t,
|
|
3221
3220
|
kind: "text",
|
|
3222
3221
|
size: "compact",
|
|
3223
|
-
icon: /* @__PURE__ */ a(F, { customColor: C, source:
|
|
3222
|
+
icon: /* @__PURE__ */ a(F, { customColor: C, source: I }),
|
|
3224
3223
|
onClick: () => x((P) => !P),
|
|
3225
3224
|
className: Ge[`${He}__visibility-button`]
|
|
3226
3225
|
}
|
|
@@ -3238,7 +3237,7 @@ const tr = {
|
|
|
3238
3237
|
);
|
|
3239
3238
|
return /* @__PURE__ */ a(c_, B(v({ mainClassName: n }, t), { ref: r }));
|
|
3240
3239
|
}
|
|
3241
|
-
), Vl = `${He}--promo`,
|
|
3240
|
+
), Vl = `${He}--promo`, Bd = p.forwardRef(
|
|
3242
3241
|
(e, t) => {
|
|
3243
3242
|
const r = u(Ge[He], Ge[Vl]);
|
|
3244
3243
|
return /* @__PURE__ */ a(
|
|
@@ -3266,11 +3265,11 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3266
3265
|
}), r;
|
|
3267
3266
|
}, ro = (e) => e.filter(
|
|
3268
3267
|
({ key: t, disabled: r, groupHeader: _ }) => !(t === ta || r || _)
|
|
3269
|
-
), Do = ({ key: e }) => e,
|
|
3268
|
+
), Do = ({ key: e }) => e, Yl = (e, t) => e.includes(t) ? e.filter((r) => r !== t) : [...e, t], Xl = {
|
|
3270
3269
|
"field-description": "lc-FieldDescription-module__field-description___x5rXY"
|
|
3271
3270
|
}, Zl = "field-description", Nr = (_) => {
|
|
3272
3271
|
var o = _, { children: e, className: t = "" } = o, r = R(o, ["children", "className"]);
|
|
3273
|
-
const n = u(
|
|
3272
|
+
const n = u(Xl[Zl], t);
|
|
3274
3273
|
return /* @__PURE__ */ a(D, B(v({ as: "span", size: "sm" }, r), { className: n, children: e }));
|
|
3275
3274
|
}, ql = "lc-Checkbox-module__checkbox___D0D4S", jl = "lc-Checkbox-module__checkbox__label___I472A", Ql = "lc-Checkbox-module__checkbox__text___Ex7K1", Jl = "lc-Checkbox-module__checkbox__input___3krUF", ec = "lc-Checkbox-module__checkbox__checkmark___eZIG1", tc = "lc-Checkbox-module__checkbox__square___yjtrH", ac = "lc-Checkbox-module__checkbox__helper___hwxAV", Gt = {
|
|
3276
3275
|
checkbox: ql,
|
|
@@ -3338,7 +3337,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3338
3337
|
}) => {
|
|
3339
3338
|
const d = (i) => {
|
|
3340
3339
|
var m;
|
|
3341
|
-
return (m = i == null ? void 0 : i.customElement) != null && m.listItemBody ? /* @__PURE__ */ a("div", { className: $e[`${ot}__custom`], children: i.customElement.listItemBody }) : /* @__PURE__ */ h(
|
|
3340
|
+
return (m = i == null ? void 0 : i.customElement) != null && m.listItemBody ? /* @__PURE__ */ a("div", { className: $e[`${ot}__custom`], children: i.customElement.listItemBody }) : /* @__PURE__ */ h(J, { children: [
|
|
3342
3341
|
i.showCheckbox && /* @__PURE__ */ a(
|
|
3343
3342
|
Sr,
|
|
3344
3343
|
{
|
|
@@ -3461,11 +3460,11 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3461
3460
|
hideWhenEmpty: S = !1,
|
|
3462
3461
|
pickerType: k = "single",
|
|
3463
3462
|
listClassName: y,
|
|
3464
|
-
virtuosoProps:
|
|
3463
|
+
virtuosoProps: E
|
|
3465
3464
|
}) => {
|
|
3466
|
-
const [C,
|
|
3465
|
+
const [C, I] = p.useState(0), w = br(null), $ = o.length, T = p.useCallback(
|
|
3467
3466
|
(N) => {
|
|
3468
|
-
N !== C && (N < _ ?
|
|
3467
|
+
N !== C && (N < _ ? I(N + ($ - 1) * Wl) : I(_));
|
|
3469
3468
|
},
|
|
3470
3469
|
[$]
|
|
3471
3470
|
);
|
|
@@ -3485,7 +3484,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3485
3484
|
children: /* @__PURE__ */ a("div", { className: ua["no-results-text"], children: x })
|
|
3486
3485
|
}
|
|
3487
3486
|
) });
|
|
3488
|
-
const P = (N) => l.includes(N) || N === ta && l.length === ro(o).length,
|
|
3487
|
+
const P = (N) => l.includes(N) || N === ta && l.length === ro(o).length, O = () => {
|
|
3489
3488
|
k === "multi" && i(l[l.length - 1]);
|
|
3490
3489
|
};
|
|
3491
3490
|
return /* @__PURE__ */ a(eo, { context: e, modal: !1, initialFocus: -1, children: /* @__PURE__ */ a(
|
|
@@ -3507,7 +3506,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3507
3506
|
className: ua["listbox-wrapper"]
|
|
3508
3507
|
}, f({
|
|
3509
3508
|
onKeyDown(N) {
|
|
3510
|
-
m(!1), N.key === "Enter" && n !== null && g(o[n].key), (N.key === "Backspace" || N.key === "Delete") &&
|
|
3509
|
+
m(!1), N.key === "Enter" && n !== null && g(o[n].key), (N.key === "Backspace" || N.key === "Delete") && O(), N.key === " " && N.preventDefault();
|
|
3511
3510
|
},
|
|
3512
3511
|
onKeyUp(N) {
|
|
3513
3512
|
N.key === " " && n !== null && g(o[n].key);
|
|
@@ -3524,7 +3523,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3524
3523
|
totalCount: o.length,
|
|
3525
3524
|
data: o,
|
|
3526
3525
|
increaseViewportBy: 200
|
|
3527
|
-
},
|
|
3526
|
+
}, E), {
|
|
3528
3527
|
itemContent: (N, A) => /* @__PURE__ */ a(
|
|
3529
3528
|
rc,
|
|
3530
3529
|
{
|
|
@@ -3724,13 +3723,13 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3724
3723
|
[De[`${Pe}--icon-only`]]: m,
|
|
3725
3724
|
[De[`${Pe}--dismissible-on-hover`]]: S
|
|
3726
3725
|
}
|
|
3727
|
-
), y = o === "small" ? "small" : "medium",
|
|
3726
|
+
), y = o === "small" ? "small" : "medium", E = o === "small" ? "sm" : "md", C = () => i ? c ? {
|
|
3728
3727
|
style: {
|
|
3729
3728
|
backgroundColor: "transparent",
|
|
3730
3729
|
color: i,
|
|
3731
3730
|
borderColor: i
|
|
3732
3731
|
}
|
|
3733
|
-
} : { style: { backgroundColor: i } } : {},
|
|
3732
|
+
} : { style: { backgroundColor: i } } : {}, I = () => {
|
|
3734
3733
|
if (i)
|
|
3735
3734
|
return c ? i : co(i, "#FFFFFF") > 4.5 ? "#FFFFFF" : "#000000";
|
|
3736
3735
|
};
|
|
@@ -3740,7 +3739,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3740
3739
|
className: k
|
|
3741
3740
|
}, f), C()), {
|
|
3742
3741
|
as: "div",
|
|
3743
|
-
size:
|
|
3742
|
+
size: E,
|
|
3744
3743
|
children: [
|
|
3745
3744
|
/* @__PURE__ */ h("div", { className: De[`${Pe}__content-wrapper`], children: [
|
|
3746
3745
|
d && !m && /* @__PURE__ */ a(
|
|
@@ -3748,7 +3747,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3748
3747
|
{
|
|
3749
3748
|
"data-testid": "lc-tag-left-node",
|
|
3750
3749
|
className: De[`${Pe}__node`],
|
|
3751
|
-
style: { color:
|
|
3750
|
+
style: { color: I() },
|
|
3752
3751
|
children: d
|
|
3753
3752
|
}
|
|
3754
3753
|
),
|
|
@@ -3758,7 +3757,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3758
3757
|
{
|
|
3759
3758
|
"data-testid": "lc-tag-right-node",
|
|
3760
3759
|
className: De[`${Pe}__node`],
|
|
3761
|
-
style: { color:
|
|
3760
|
+
style: { color: I() },
|
|
3762
3761
|
children: s
|
|
3763
3762
|
}
|
|
3764
3763
|
)
|
|
@@ -3780,7 +3779,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3780
3779
|
"data-dismiss-icon": !0,
|
|
3781
3780
|
source: Qe,
|
|
3782
3781
|
size: y,
|
|
3783
|
-
customColor:
|
|
3782
|
+
customColor: I()
|
|
3784
3783
|
}
|
|
3785
3784
|
)
|
|
3786
3785
|
}
|
|
@@ -3833,7 +3832,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3833
3832
|
$.key === "Backspace" && o && o.length > 0 && ($.preventDefault(), n === "multi" ? d(o[o.length - 1].key) : m()), $.key === "Delete" && ($.preventDefault(), m());
|
|
3834
3833
|
};
|
|
3835
3834
|
p.useEffect(() => (!e && b ? document.addEventListener("keydown", y) : document.removeEventListener("keydown", y), () => document.removeEventListener("keydown", y)), [e, o, b]);
|
|
3836
|
-
const
|
|
3835
|
+
const E = ($) => {
|
|
3837
3836
|
var T;
|
|
3838
3837
|
return n === "single" && e && !t ? null : (T = $ == null ? void 0 : $.customElement) != null && T.selectedItemBody ? /* @__PURE__ */ a("div", { className: Se[`${xe}__item`], children: $.customElement.selectedItemBody }) : /* @__PURE__ */ h("div", { className: Se[`${xe}__item`], children: [
|
|
3839
3838
|
$.icon && /* @__PURE__ */ a(
|
|
@@ -3853,7 +3852,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3853
3852
|
),
|
|
3854
3853
|
/* @__PURE__ */ a("div", { className: Se[`${xe}__item__content`], children: $.name })
|
|
3855
3854
|
] });
|
|
3856
|
-
}, C = ($) => i($.target.value),
|
|
3855
|
+
}, C = ($) => i($.target.value), I = ($) => {
|
|
3857
3856
|
var T, P;
|
|
3858
3857
|
(T = f.current) != null && T.id && $.key === "Enter" && s((P = f.current) == null ? void 0 : P.id), n === "multi" && ($.key === "Backspace" || $.key === "Delete") && !g && o && (o == null ? void 0 : o.length) > 0 && d(o[o.length - 1].key);
|
|
3859
3858
|
}, w = () => /* @__PURE__ */ a(
|
|
@@ -3866,7 +3865,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3866
3865
|
),
|
|
3867
3866
|
placeholder: _,
|
|
3868
3867
|
onChange: C,
|
|
3869
|
-
onKeyDown:
|
|
3868
|
+
onKeyDown: I,
|
|
3870
3869
|
autoFocus: !0,
|
|
3871
3870
|
value: g
|
|
3872
3871
|
})
|
|
@@ -3887,7 +3886,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3887
3886
|
[Se[`${xe}--single`]]: n === "single"
|
|
3888
3887
|
}),
|
|
3889
3888
|
children: [
|
|
3890
|
-
/* @__PURE__ */ a("div", { className: Se[`${xe}__item-container`], children: n === "single" ?
|
|
3889
|
+
/* @__PURE__ */ a("div", { className: Se[`${xe}__item-container`], children: n === "single" ? E(o[0]) : o.map(($) => /* @__PURE__ */ a(
|
|
3891
3890
|
u_,
|
|
3892
3891
|
B(v({
|
|
3893
3892
|
className: u(
|
|
@@ -3899,7 +3898,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3899
3898
|
T.stopPropagation(), d($.key);
|
|
3900
3899
|
}
|
|
3901
3900
|
}, $.selectedTagOptions), {
|
|
3902
|
-
children:
|
|
3901
|
+
children: E($)
|
|
3903
3902
|
}),
|
|
3904
3903
|
$.key
|
|
3905
3904
|
)) }),
|
|
@@ -3920,11 +3919,11 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3920
3919
|
onVisibilityChange: s,
|
|
3921
3920
|
searchPhrase: i
|
|
3922
3921
|
}) => {
|
|
3923
|
-
const m = Ha(), [g, f] = p.useState(!1), [b, x] = p.useState(null), [S, k] = p.useState(o), y = p.useRef([]),
|
|
3922
|
+
const m = Ha(), [g, f] = p.useState(!1), [b, x] = p.useState(null), [S, k] = p.useState(o), y = p.useRef([]), E = p.useRef(null);
|
|
3924
3923
|
p.useEffect(() => {
|
|
3925
|
-
|
|
3924
|
+
E.current = null, x(null);
|
|
3926
3925
|
}, [i]);
|
|
3927
|
-
const { refs: C, floatingStyles:
|
|
3926
|
+
const { refs: C, floatingStyles: I, context: w, isPositioned: $ } = Ua({
|
|
3928
3927
|
nodeId: m,
|
|
3929
3928
|
open: d,
|
|
3930
3929
|
strategy: n,
|
|
@@ -3935,7 +3934,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3935
3934
|
za(4),
|
|
3936
3935
|
wr({ padding: 10 }),
|
|
3937
3936
|
lo(),
|
|
3938
|
-
|
|
3937
|
+
Xo({
|
|
3939
3938
|
apply({ availableHeight: U, rects: H, elements: W }) {
|
|
3940
3939
|
bn.flushSync(() => {
|
|
3941
3940
|
k(
|
|
@@ -3955,33 +3954,33 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3955
3954
|
enabled: !e,
|
|
3956
3955
|
keyboardHandlers: !1,
|
|
3957
3956
|
toggle: !1
|
|
3958
|
-
}, c)), P =
|
|
3957
|
+
}, c)), P = Ya(w, { role: "listbox" }), O = Ka(w, l), N = hn(w, {
|
|
3959
3958
|
enabled: t.length > 0 && !e,
|
|
3960
3959
|
listRef: y,
|
|
3961
3960
|
activeIndex: b,
|
|
3962
3961
|
onNavigate: x,
|
|
3963
3962
|
virtual: !0,
|
|
3964
|
-
virtualItemRef:
|
|
3963
|
+
virtualItemRef: E,
|
|
3965
3964
|
disabledIndices: Kl(
|
|
3966
3965
|
t,
|
|
3967
3966
|
(U) => !!U.disabled || !!U.groupHeader
|
|
3968
3967
|
)
|
|
3969
|
-
}), { getReferenceProps: A, getFloatingProps:
|
|
3970
|
-
[T,
|
|
3968
|
+
}), { getReferenceProps: A, getFloatingProps: M, getItemProps: z } = Xa(
|
|
3969
|
+
[T, O, P, N]
|
|
3971
3970
|
);
|
|
3972
3971
|
return !d && g && f(!1), {
|
|
3973
3972
|
getReferenceProps: A,
|
|
3974
|
-
getFloatingProps:
|
|
3973
|
+
getFloatingProps: M,
|
|
3975
3974
|
getItemProps: z,
|
|
3976
3975
|
setReference: C.setReference,
|
|
3977
|
-
floatingStyles:
|
|
3976
|
+
floatingStyles: I,
|
|
3978
3977
|
isPositioned: $,
|
|
3979
3978
|
context: w,
|
|
3980
3979
|
nodeId: m,
|
|
3981
3980
|
setFloating: C.setFloating,
|
|
3982
3981
|
activeIndex: b,
|
|
3983
3982
|
listElementsRef: y,
|
|
3984
|
-
virtualItemRef:
|
|
3983
|
+
virtualItemRef: E,
|
|
3985
3984
|
maxHeight: S,
|
|
3986
3985
|
pointer: g,
|
|
3987
3986
|
setPointer: f
|
|
@@ -3999,41 +3998,41 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
3999
3998
|
const [d, s] = p.useState(
|
|
4000
3999
|
() => (e == null ? void 0 : e.map(Do)) || []
|
|
4001
4000
|
), i = e !== void 0, m = i ? (e == null ? void 0 : e.map(Do)) || [] : d, [g, f] = p.useState(""), b = (C) => f(C), x = (C) => {
|
|
4002
|
-
r === "single" ?
|
|
4001
|
+
r === "single" ? E(C) : (s(m.filter((I) => I !== C)), o((e == null ? void 0 : e.filter(({ key: I }) => I !== C)) || null));
|
|
4003
4002
|
}, S = () => {
|
|
4004
4003
|
!i && s([]), o(null), f(""), n(!1);
|
|
4005
4004
|
}, k = () => {
|
|
4006
4005
|
b(""), c.current && (c.current.value = "");
|
|
4007
4006
|
}, y = p.useMemo(() => {
|
|
4008
4007
|
const C = r === "multi" && _;
|
|
4009
|
-
let
|
|
4010
|
-
return g && (
|
|
4011
|
-
var
|
|
4008
|
+
let I = t;
|
|
4009
|
+
return g && (I = I.filter((w) => {
|
|
4010
|
+
var O;
|
|
4012
4011
|
if (w.groupHeader)
|
|
4013
4012
|
return !0;
|
|
4014
|
-
const $ = g.toLowerCase(), T = w.name.toLowerCase(), P = (
|
|
4013
|
+
const $ = g.toLowerCase(), T = w.name.toLowerCase(), P = (O = w.secondaryText) == null ? void 0 : O.toLowerCase();
|
|
4015
4014
|
return T.includes($) || (P == null ? void 0 : P.includes($));
|
|
4016
4015
|
}).filter(
|
|
4017
4016
|
(w, $, T) => {
|
|
4018
4017
|
var P;
|
|
4019
4018
|
return !(w.groupHeader && ((P = T[$ + 1]) != null && P.groupHeader || $ === T.length - 1));
|
|
4020
4019
|
}
|
|
4021
|
-
)), C &&
|
|
4020
|
+
)), C && I.length > 1 && (I = [
|
|
4022
4021
|
{
|
|
4023
4022
|
key: ta,
|
|
4024
4023
|
name: _
|
|
4025
4024
|
},
|
|
4026
|
-
...
|
|
4027
|
-
]),
|
|
4028
|
-
}, [g, t, r, _]),
|
|
4029
|
-
const
|
|
4030
|
-
(!
|
|
4025
|
+
...I
|
|
4026
|
+
]), I;
|
|
4027
|
+
}, [g, t, r, _]), E = (C) => {
|
|
4028
|
+
const I = t.find((w) => w.key === C);
|
|
4029
|
+
(!I || I.disabled) && C !== ta || (r === "single" ? (s(() => (I && o([I]), [C])), n(!1)) : C === ta ? m.length === ro(t).length ? s(() => (o(null), [])) : s(() => {
|
|
4031
4030
|
const w = ro(t);
|
|
4032
4031
|
return o(w), w.map(({ key: $ }) => $);
|
|
4033
4032
|
}) : (i ? m.includes(C) ? (o(
|
|
4034
4033
|
(e == null ? void 0 : e.filter(({ key: w }) => w !== C)) || null
|
|
4035
|
-
), s((w) => w.filter(($) => $ !== C))) : (o([...e || [],
|
|
4036
|
-
const $ =
|
|
4034
|
+
), s((w) => w.filter(($) => $ !== C))) : (o([...e || [], I]), s((w) => [...w, C])) : s((w) => {
|
|
4035
|
+
const $ = Yl(w, C);
|
|
4037
4036
|
return o(t.filter(({ key: T }) => $.includes(T))), $;
|
|
4038
4037
|
}), l && k()));
|
|
4039
4038
|
};
|
|
@@ -4041,14 +4040,14 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4041
4040
|
selectedKeys: m,
|
|
4042
4041
|
items: y,
|
|
4043
4042
|
searchPhrase: g,
|
|
4044
|
-
handleSelect:
|
|
4043
|
+
handleSelect: E,
|
|
4045
4044
|
handleOnFilter: b,
|
|
4046
4045
|
handleItemRemove: x,
|
|
4047
4046
|
handleClear: S
|
|
4048
4047
|
};
|
|
4049
4048
|
}, mc = {
|
|
4050
4049
|
"picker-wrapper": "lc-Picker-module__picker-wrapper___uaLHq"
|
|
4051
|
-
},
|
|
4050
|
+
}, Td = (U) => {
|
|
4052
4051
|
var H = U, {
|
|
4053
4052
|
id: e,
|
|
4054
4053
|
className: t,
|
|
@@ -4069,17 +4068,17 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4069
4068
|
hideClearButton: S,
|
|
4070
4069
|
isVisible: k,
|
|
4071
4070
|
onOpen: y,
|
|
4072
|
-
onClose:
|
|
4071
|
+
onClose: E,
|
|
4073
4072
|
openedOnInit: C = !1,
|
|
4074
|
-
clearSearchAfterSelection:
|
|
4073
|
+
clearSearchAfterSelection: I = !0,
|
|
4075
4074
|
onSelect: w,
|
|
4076
4075
|
placement: $,
|
|
4077
4076
|
floatingStrategy: T,
|
|
4078
4077
|
root: P,
|
|
4079
|
-
useDismissHookProps:
|
|
4078
|
+
useDismissHookProps: O,
|
|
4080
4079
|
useClickHookProps: N,
|
|
4081
4080
|
virtuosoProps: A,
|
|
4082
|
-
inputProps:
|
|
4081
|
+
inputProps: M
|
|
4083
4082
|
} = H, z = R(H, [
|
|
4084
4083
|
"id",
|
|
4085
4084
|
"className",
|
|
@@ -4112,15 +4111,15 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4112
4111
|
"virtuosoProps",
|
|
4113
4112
|
"inputProps"
|
|
4114
4113
|
]);
|
|
4115
|
-
const [W, Ae] = p.useState(C), [Je, ze] = p.useState(!1), ye = k !== void 0, K = ye ? k : W, be = p.useRef(null), et = (Za,
|
|
4116
|
-
Za ? !K && (y == null || y(
|
|
4114
|
+
const [W, Ae] = p.useState(C), [Je, ze] = p.useState(!1), ye = k !== void 0, K = ye ? k : W, be = p.useRef(null), et = (Za, Mt) => {
|
|
4115
|
+
Za ? !K && (y == null || y(Mt)) : K && (E == null || E(Mt)), !ye && Ae(Za);
|
|
4117
4116
|
}, {
|
|
4118
4117
|
selectedKeys: tt,
|
|
4119
4118
|
items: St,
|
|
4120
4119
|
searchPhrase: xt,
|
|
4121
4120
|
handleSelect: dt,
|
|
4122
4121
|
handleOnFilter: L,
|
|
4123
|
-
handleItemRemove:
|
|
4122
|
+
handleItemRemove: te,
|
|
4124
4123
|
handleClear: le
|
|
4125
4124
|
} = p_({
|
|
4126
4125
|
selected: d,
|
|
@@ -4129,17 +4128,17 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4129
4128
|
selectAllOptionText: f,
|
|
4130
4129
|
onSelect: w,
|
|
4131
4130
|
setOpen: et,
|
|
4132
|
-
clearSearchAfterSelection:
|
|
4131
|
+
clearSearchAfterSelection: I,
|
|
4133
4132
|
inputRef: be
|
|
4134
4133
|
}), {
|
|
4135
4134
|
context: V,
|
|
4136
|
-
nodeId:
|
|
4135
|
+
nodeId: Z,
|
|
4137
4136
|
getReferenceProps: gt,
|
|
4138
|
-
setReference:
|
|
4139
|
-
getFloatingProps:
|
|
4137
|
+
setReference: Yt,
|
|
4138
|
+
getFloatingProps: Et,
|
|
4140
4139
|
getItemProps: xr,
|
|
4141
|
-
setFloating:
|
|
4142
|
-
floatingStyles:
|
|
4140
|
+
setFloating: Er,
|
|
4141
|
+
floatingStyles: Ir,
|
|
4143
4142
|
listElementsRef: Br,
|
|
4144
4143
|
virtualItemRef: Tr,
|
|
4145
4144
|
activeIndex: Ar,
|
|
@@ -4155,7 +4154,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4155
4154
|
maxListHeight: o,
|
|
4156
4155
|
floatingStrategy: T,
|
|
4157
4156
|
useClickHookProps: N,
|
|
4158
|
-
useDismissHookProps:
|
|
4157
|
+
useDismissHookProps: O,
|
|
4159
4158
|
isOpen: K,
|
|
4160
4159
|
onVisibilityChange: et,
|
|
4161
4160
|
searchPhrase: xt
|
|
@@ -4165,7 +4164,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4165
4164
|
_c,
|
|
4166
4165
|
{
|
|
4167
4166
|
getReferenceProps: gt,
|
|
4168
|
-
setReference:
|
|
4167
|
+
setReference: Yt,
|
|
4169
4168
|
testId: z["data-testid"],
|
|
4170
4169
|
isItemSelected: tt.length > 0,
|
|
4171
4170
|
isOpen: K,
|
|
@@ -4187,39 +4186,39 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4187
4186
|
selectedItems: d,
|
|
4188
4187
|
type: b,
|
|
4189
4188
|
size: s,
|
|
4190
|
-
clearSearchAfterSelection:
|
|
4189
|
+
clearSearchAfterSelection: I,
|
|
4191
4190
|
inputRef: be,
|
|
4192
|
-
onItemRemove:
|
|
4191
|
+
onItemRemove: te,
|
|
4193
4192
|
onSelect: dt,
|
|
4194
4193
|
onFilter: L,
|
|
4195
4194
|
onClear: le,
|
|
4196
4195
|
searchPhrase: xt,
|
|
4197
4196
|
virtualItemRef: Tr,
|
|
4198
4197
|
isTriggerFocused: Je,
|
|
4199
|
-
inputProps:
|
|
4198
|
+
inputProps: M
|
|
4200
4199
|
}
|
|
4201
4200
|
)
|
|
4202
4201
|
}
|
|
4203
4202
|
),
|
|
4204
|
-
/* @__PURE__ */ a(oa, { id:
|
|
4203
|
+
/* @__PURE__ */ a(oa, { id: Z, children: K && /* @__PURE__ */ a(aa, { root: P, children: /* @__PURE__ */ a(
|
|
4205
4204
|
d_,
|
|
4206
4205
|
{
|
|
4207
4206
|
pickerType: b,
|
|
4208
4207
|
options: St,
|
|
4209
4208
|
listClassName: r,
|
|
4210
4209
|
context: V,
|
|
4211
|
-
setFloating:
|
|
4212
|
-
floatingStyles:
|
|
4210
|
+
setFloating: Er,
|
|
4211
|
+
floatingStyles: Ir,
|
|
4213
4212
|
maxHeight: Dr,
|
|
4214
4213
|
activeIndex: Ar,
|
|
4215
4214
|
selectedKeys: tt,
|
|
4216
4215
|
listElementsRef: Br,
|
|
4217
4216
|
searchDisabled: x,
|
|
4218
4217
|
isPositioned: Fr,
|
|
4219
|
-
onItemRemove:
|
|
4218
|
+
onItemRemove: te,
|
|
4220
4219
|
setPointer: Pr,
|
|
4221
4220
|
onSelect: dt,
|
|
4222
|
-
getFloatingProps:
|
|
4221
|
+
getFloatingProps: Et,
|
|
4223
4222
|
getItemProps: xr,
|
|
4224
4223
|
emptyStateText: g,
|
|
4225
4224
|
virtuosoProps: A
|
|
@@ -4234,13 +4233,13 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4234
4233
|
}, t && {
|
|
4235
4234
|
customElement: {
|
|
4236
4235
|
listItemBody: t,
|
|
4237
|
-
selectedItemBody: /* @__PURE__ */ a(
|
|
4236
|
+
selectedItemBody: /* @__PURE__ */ a(J, {})
|
|
4238
4237
|
}
|
|
4239
4238
|
}), _);
|
|
4240
4239
|
}), fc = (e, t, r, _) => {
|
|
4241
4240
|
const o = e.length === 1 && e[0].name === _, n = t ? e.slice(0, 1) : e;
|
|
4242
4241
|
return r && o ? [] : n;
|
|
4243
|
-
},
|
|
4242
|
+
}, Ad = p.forwardRef(
|
|
4244
4243
|
(f, g) => {
|
|
4245
4244
|
var b = f, {
|
|
4246
4245
|
disabled: e,
|
|
@@ -4269,41 +4268,41 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4269
4268
|
]);
|
|
4270
4269
|
const x = p.useRef(null);
|
|
4271
4270
|
p.useImperativeHandle(g, () => x.current, []);
|
|
4272
|
-
const [S, k] = p.useState(""),
|
|
4271
|
+
const [S, k] = p.useState(""), E = m.value !== void 0 ? m.value : S, [C, I] = p.useState(
|
|
4273
4272
|
_
|
|
4274
4273
|
), w = (V) => {
|
|
4275
|
-
|
|
4274
|
+
I(V);
|
|
4276
4275
|
}, $ = (V) => {
|
|
4277
4276
|
z(V);
|
|
4278
4277
|
}, T = (V) => {
|
|
4279
|
-
var
|
|
4280
|
-
(
|
|
4278
|
+
var Z, gt;
|
|
4279
|
+
(Z = m.onChange) == null || Z.call(m, V), k(V.target.value), s || $(V.target.value), (gt = x.current) == null || gt.focus();
|
|
4281
4280
|
}, P = (V) => {
|
|
4282
|
-
var gt,
|
|
4283
|
-
const
|
|
4284
|
-
(gt = dt.current) != null && gt.id &&
|
|
4285
|
-
},
|
|
4281
|
+
var gt, Yt, Et;
|
|
4282
|
+
const Z = V.key === "Enter";
|
|
4283
|
+
(gt = dt.current) != null && gt.id && Z && (O([{ key: (Yt = dt.current) == null ? void 0 : Yt.id }]), V.preventDefault()), Z || w(!0), (Et = m.onKeyDown) == null || Et.call(m, V);
|
|
4284
|
+
}, O = (V) => {
|
|
4286
4285
|
if (V) {
|
|
4287
|
-
const
|
|
4286
|
+
const Z = V[0].key;
|
|
4288
4287
|
T({
|
|
4289
|
-
target: { value:
|
|
4288
|
+
target: { value: Z }
|
|
4290
4289
|
}), setTimeout(() => {
|
|
4291
4290
|
w(!1);
|
|
4292
4291
|
}, 0);
|
|
4293
4292
|
}
|
|
4294
|
-
}, N = p.useMemo(() => n ? pc(n) ? gc(n) : hc(n) : [], [n]), { items: A, searchPhrase:
|
|
4293
|
+
}, N = p.useMemo(() => n ? pc(n) ? gc(n) : hc(n) : [], [n]), { items: A, searchPhrase: M, handleOnFilter: z, handleSelect: U, selectedKeys: H } = p_({
|
|
4295
4294
|
selected: [],
|
|
4296
4295
|
options: N,
|
|
4297
4296
|
type: "single",
|
|
4298
|
-
onSelect:
|
|
4299
|
-
setOpen:
|
|
4297
|
+
onSelect: O,
|
|
4298
|
+
setOpen: I,
|
|
4300
4299
|
clearSearchAfterSelection: !0,
|
|
4301
4300
|
inputRef: x
|
|
4302
4301
|
}), W = fc(
|
|
4303
4302
|
A,
|
|
4304
4303
|
d || !1,
|
|
4305
4304
|
i || !1,
|
|
4306
|
-
(
|
|
4305
|
+
(E == null ? void 0 : E.toString()) || ""
|
|
4307
4306
|
), {
|
|
4308
4307
|
nodeId: Ae,
|
|
4309
4308
|
context: Je,
|
|
@@ -4317,13 +4316,13 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4317
4316
|
setReference: xt,
|
|
4318
4317
|
virtualItemRef: dt,
|
|
4319
4318
|
listElementsRef: L,
|
|
4320
|
-
activeIndex:
|
|
4319
|
+
activeIndex: te,
|
|
4321
4320
|
isPositioned: le
|
|
4322
4321
|
} = m_({
|
|
4323
4322
|
openedOnInit: _,
|
|
4324
4323
|
disabled: e || l,
|
|
4325
4324
|
items: A,
|
|
4326
|
-
searchPhrase: s ? "" :
|
|
4325
|
+
searchPhrase: s ? "" : M,
|
|
4327
4326
|
isOpen: C,
|
|
4328
4327
|
onVisibilityChange: w,
|
|
4329
4328
|
minListHeight: t,
|
|
@@ -4338,7 +4337,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4338
4337
|
ref: x,
|
|
4339
4338
|
onChange: T,
|
|
4340
4339
|
onKeyDown: P,
|
|
4341
|
-
value:
|
|
4340
|
+
value: E,
|
|
4342
4341
|
disabled: e,
|
|
4343
4342
|
readOnly: l,
|
|
4344
4343
|
type: "text"
|
|
@@ -4354,7 +4353,7 @@ const ta = "select-all", Kl = (e, t) => {
|
|
|
4354
4353
|
floatingStyles: et,
|
|
4355
4354
|
maxHeight: tt,
|
|
4356
4355
|
listElementsRef: L,
|
|
4357
|
-
activeIndex:
|
|
4356
|
+
activeIndex: te,
|
|
4358
4357
|
selectedKeys: H,
|
|
4359
4358
|
setPointer: St,
|
|
4360
4359
|
hideWhenEmpty: !0,
|
|
@@ -4469,12 +4468,12 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4469
4468
|
"withRim",
|
|
4470
4469
|
"style"
|
|
4471
4470
|
]);
|
|
4472
|
-
const b = d === "image" && !n, [x, S] = p.useState(b), k = d === "image" && !!n && !x, y = d === "text",
|
|
4471
|
+
const b = d === "image" && !n, [x, S] = p.useState(b), k = d === "image" && !!n && !x, y = d === "text", E = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, C = vc(c, E), I = ["xxxsmall", "xxsmall", "xsmall", "small"].includes(o), w = r || bc(c), $ = w ? kc(w) : void 0, T = y ? { backgroundColor: w } : {}, P = u(v({
|
|
4473
4472
|
[Fe[me]]: !0,
|
|
4474
4473
|
[Fe[`${me}--${_}`]]: !0,
|
|
4475
4474
|
[Fe[`${me}--${o}`]]: !0,
|
|
4476
4475
|
[Fe[`${me}--with-rim`]]: s
|
|
4477
|
-
}, t ? { [`${t}`]: t } : {})),
|
|
4476
|
+
}, t ? { [`${t}`]: t } : {})), O = u(
|
|
4478
4477
|
Fe[`${me}__status`],
|
|
4479
4478
|
Fe[`${me}__status--${_}`],
|
|
4480
4479
|
Fe[`${me}__status--${o}`],
|
|
@@ -4485,7 +4484,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4485
4484
|
), A = u(
|
|
4486
4485
|
Fe[`${me}__rim`],
|
|
4487
4486
|
Fe[`${me}__rim--${o}`]
|
|
4488
|
-
),
|
|
4487
|
+
), M = (U) => I ? "2xs" : ["medium"].includes(U) ? "xs" : ["large", "xlarge"].includes(U) ? "sm" : ["xxlarge"].includes(U) ? "lg" : "xl", z = p.useCallback(() => S(!0), []);
|
|
4489
4488
|
return p.useEffect(() => {
|
|
4490
4489
|
S(b);
|
|
4491
4490
|
}, [b]), /* @__PURE__ */ h(
|
|
@@ -4506,7 +4505,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4506
4505
|
"div",
|
|
4507
4506
|
{
|
|
4508
4507
|
"data-testid": `${me}__status`,
|
|
4509
|
-
className:
|
|
4508
|
+
className: O
|
|
4510
4509
|
}
|
|
4511
4510
|
),
|
|
4512
4511
|
k && /* @__PURE__ */ a(
|
|
@@ -4522,10 +4521,10 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4522
4521
|
se,
|
|
4523
4522
|
{
|
|
4524
4523
|
as: "span",
|
|
4525
|
-
size:
|
|
4524
|
+
size: M(o),
|
|
4526
4525
|
style: { color: $ },
|
|
4527
|
-
bold:
|
|
4528
|
-
uppercase:
|
|
4526
|
+
bold: I,
|
|
4527
|
+
uppercase: I,
|
|
4529
4528
|
children: C
|
|
4530
4529
|
}
|
|
4531
4530
|
),
|
|
@@ -4534,7 +4533,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4534
4533
|
{
|
|
4535
4534
|
"data-testid": `${me}__icon`,
|
|
4536
4535
|
className: N,
|
|
4537
|
-
source:
|
|
4536
|
+
source: O_
|
|
4538
4537
|
}
|
|
4539
4538
|
)
|
|
4540
4539
|
]
|
|
@@ -4547,7 +4546,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4547
4546
|
"btn--compact": "lc-SegmentedControl-module__btn--compact___grlBl",
|
|
4548
4547
|
"btn--medium": "lc-SegmentedControl-module__btn--medium___YGzgQ",
|
|
4549
4548
|
"btn--large": "lc-SegmentedControl-module__btn--large___DCJ-p"
|
|
4550
|
-
}, Sc = "segmented-control",
|
|
4549
|
+
}, Sc = "segmented-control", Dd = ({
|
|
4551
4550
|
size: e = "medium",
|
|
4552
4551
|
buttons: t,
|
|
4553
4552
|
className: r,
|
|
@@ -4563,9 +4562,9 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4563
4562
|
const m = (f, b) => {
|
|
4564
4563
|
i || s(f), l(f, b);
|
|
4565
4564
|
}, g = t.map(({ id: f, label: b, loading: x, disabled: S, icon: k }) => {
|
|
4566
|
-
const y = f === d,
|
|
4565
|
+
const y = f === d, E = y ? rr["btn--active"] : "";
|
|
4567
4566
|
return /* @__PURE__ */ a(
|
|
4568
|
-
|
|
4567
|
+
Y,
|
|
4569
4568
|
{
|
|
4570
4569
|
fullWidth: n,
|
|
4571
4570
|
loading: y ? !1 : x,
|
|
@@ -4573,9 +4572,9 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4573
4572
|
"aria-pressed": y,
|
|
4574
4573
|
kind: "secondary",
|
|
4575
4574
|
icon: k,
|
|
4576
|
-
className: u(rr.btn, rr[`btn--${e}`],
|
|
4577
|
-
onClick: (
|
|
4578
|
-
m(f,
|
|
4575
|
+
className: u(rr.btn, rr[`btn--${e}`], E),
|
|
4576
|
+
onClick: (I) => {
|
|
4577
|
+
m(f, I);
|
|
4579
4578
|
},
|
|
4580
4579
|
children: b
|
|
4581
4580
|
},
|
|
@@ -4583,10 +4582,10 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4583
4582
|
);
|
|
4584
4583
|
});
|
|
4585
4584
|
return /* @__PURE__ */ a("div", { role: "group", className: c, children: g });
|
|
4586
|
-
}, xc = "lc-Card-module__card___LzN-3",
|
|
4585
|
+
}, xc = "lc-Card-module__card___LzN-3", Ec = "lc-Card-module__card__header___SRONR", Ic = "lc-Card-module__card__header__image___93pD4", Bc = "lc-Card-module__card__header__heading___jK55U", Tc = "lc-Card-module__card__header__heading__title___5090w", Ac = "lc-Card-module__card__header__heading__description___iVYoq", Dc = "lc-Card-module__card__content___9G1YM", Pc = "lc-Card-module__card__actions___gp-xf", Fc = "lc-Card-module__card__actions__line___C6TI0", Rc = "lc-Card-module__card__actions__buttons___XJlFJ", Re = {
|
|
4587
4586
|
card: xc,
|
|
4588
|
-
card__header:
|
|
4589
|
-
card__header__image:
|
|
4587
|
+
card__header: Ec,
|
|
4588
|
+
card__header__image: Ic,
|
|
4590
4589
|
card__header__heading: Bc,
|
|
4591
4590
|
card__header__heading__title: Tc,
|
|
4592
4591
|
card__header__heading__description: Ac,
|
|
@@ -4597,7 +4596,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4597
4596
|
card__actions__line: Fc,
|
|
4598
4597
|
card__actions__buttons: Rc,
|
|
4599
4598
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___I--MQ"
|
|
4600
|
-
}, Ra = "card", fr = `${Ra}__header`,
|
|
4599
|
+
}, Ra = "card", fr = `${Ra}__header`, Mr = `${fr}__heading`, or = `${Ra}__actions`, Oc = `${fr}__no-image`, Pd = (s) => {
|
|
4601
4600
|
var i = s, {
|
|
4602
4601
|
alt: e,
|
|
4603
4602
|
buttonsOptions: t = [],
|
|
@@ -4617,10 +4616,10 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4617
4616
|
"src",
|
|
4618
4617
|
"title"
|
|
4619
4618
|
]);
|
|
4620
|
-
const [m, g] = p.useState(!1), f = m ? kr : Kt, b = m ? "Hide" : "Show more", x = (t == null ? void 0 : t.length) > 0, S = !!n, k = x || S, y = c,
|
|
4619
|
+
const [m, g] = p.useState(!1), f = m ? kr : Kt, b = m ? "Hide" : "Show more", x = (t == null ? void 0 : t.length) > 0, S = !!n, k = x || S, y = c, E = l, C = E ? "" : Re[Oc];
|
|
4621
4620
|
return /* @__PURE__ */ h("div", B(v({ className: u(Re[Ra], _) }, d), { children: [
|
|
4622
4621
|
y && /* @__PURE__ */ h("div", { className: u(Re[fr], C), children: [
|
|
4623
|
-
|
|
4622
|
+
E && /* @__PURE__ */ a(
|
|
4624
4623
|
"img",
|
|
4625
4624
|
{
|
|
4626
4625
|
alt: e,
|
|
@@ -4628,13 +4627,13 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4628
4627
|
src: l
|
|
4629
4628
|
}
|
|
4630
4629
|
),
|
|
4631
|
-
/* @__PURE__ */ h("div", { className: Re[
|
|
4632
|
-
/* @__PURE__ */ a(se, { size: "xs", className: Re[`${
|
|
4630
|
+
/* @__PURE__ */ h("div", { className: Re[Mr], children: [
|
|
4631
|
+
/* @__PURE__ */ a(se, { size: "xs", className: Re[`${Mr}__title`], children: c }),
|
|
4633
4632
|
o && /* @__PURE__ */ a(
|
|
4634
4633
|
D,
|
|
4635
4634
|
{
|
|
4636
4635
|
size: "sm",
|
|
4637
|
-
className: Re[`${
|
|
4636
|
+
className: Re[`${Mr}__description`],
|
|
4638
4637
|
children: o
|
|
4639
4638
|
}
|
|
4640
4639
|
)
|
|
@@ -4654,11 +4653,11 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4654
4653
|
/* @__PURE__ */ a("div", { className: Re[`${or}__line`] }),
|
|
4655
4654
|
/* @__PURE__ */ h("div", { className: Re[`${or}__buttons`], children: [
|
|
4656
4655
|
x && t.map(
|
|
4657
|
-
({ kind:
|
|
4658
|
-
|
|
4656
|
+
({ kind: I, onClick: w, children: $ }, T) => /* @__PURE__ */ a(
|
|
4657
|
+
Y,
|
|
4659
4658
|
{
|
|
4660
4659
|
size: "compact",
|
|
4661
|
-
kind:
|
|
4660
|
+
kind: I,
|
|
4662
4661
|
onClick: w,
|
|
4663
4662
|
children: $
|
|
4664
4663
|
},
|
|
@@ -4666,7 +4665,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4666
4665
|
)
|
|
4667
4666
|
),
|
|
4668
4667
|
S && /* @__PURE__ */ a(
|
|
4669
|
-
|
|
4668
|
+
Y,
|
|
4670
4669
|
{
|
|
4671
4670
|
className: Re[`${or}__buttons-expander`],
|
|
4672
4671
|
kind: "link",
|
|
@@ -4681,7 +4680,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4681
4680
|
] }));
|
|
4682
4681
|
}, Lr = {
|
|
4683
4682
|
"date-picker-custom-navigation": "lc-DatePickerCustomNavigation-module__date-picker-custom-navigation___B7uEJ"
|
|
4684
|
-
}, Gr = "date-picker-custom-navigation",
|
|
4683
|
+
}, Gr = "date-picker-custom-navigation", Mc = ({ currentMonth: e, setMonth: t, startMonth: r, endMonth: _, numberOfMonths: o }) => {
|
|
4685
4684
|
const n = r && Pa(e, r), l = _ && Pa(e, _), c = () => {
|
|
4686
4685
|
const m = new Date(e);
|
|
4687
4686
|
m.setMonth(e.getMonth() - 1), t(m);
|
|
@@ -4712,18 +4711,18 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4712
4711
|
return /* @__PURE__ */ h("div", { className: Lr[Gr], children: [
|
|
4713
4712
|
/* @__PURE__ */ h("div", { className: Lr[`${Gr}__nav-wrapper`], children: [
|
|
4714
4713
|
/* @__PURE__ */ a(
|
|
4715
|
-
|
|
4714
|
+
Y,
|
|
4716
4715
|
{
|
|
4717
4716
|
"data-testid": "date-picker-prev-year-button",
|
|
4718
4717
|
kind: "plain",
|
|
4719
4718
|
size: "xcompact",
|
|
4720
|
-
icon: /* @__PURE__ */ a(F, { source:
|
|
4719
|
+
icon: /* @__PURE__ */ a(F, { source: M_ }),
|
|
4721
4720
|
onClick: s,
|
|
4722
4721
|
disabled: n
|
|
4723
4722
|
}
|
|
4724
4723
|
),
|
|
4725
4724
|
/* @__PURE__ */ a(
|
|
4726
|
-
|
|
4725
|
+
Y,
|
|
4727
4726
|
{
|
|
4728
4727
|
"data-testid": "date-picker-prev-month-button",
|
|
4729
4728
|
kind: "plain",
|
|
@@ -4736,7 +4735,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4736
4735
|
] }),
|
|
4737
4736
|
/* @__PURE__ */ h("div", { className: Lr[`${Gr}__nav-wrapper`], children: [
|
|
4738
4737
|
/* @__PURE__ */ a(
|
|
4739
|
-
|
|
4738
|
+
Y,
|
|
4740
4739
|
{
|
|
4741
4740
|
"data-testid": "date-picker-next-month-button",
|
|
4742
4741
|
kind: "plain",
|
|
@@ -4747,7 +4746,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4747
4746
|
}
|
|
4748
4747
|
),
|
|
4749
4748
|
/* @__PURE__ */ a(
|
|
4750
|
-
|
|
4749
|
+
Y,
|
|
4751
4750
|
{
|
|
4752
4751
|
"data-testid": "date-picker-next-year-button",
|
|
4753
4752
|
kind: "plain",
|
|
@@ -4774,7 +4773,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4774
4773
|
e.options
|
|
4775
4774
|
);
|
|
4776
4775
|
return r ? (t.selectedItem = e.initialSelectedItemKey, r.isManual && (e.initialFromDate && (t.from = e.initialFromDate), e.initialToDate && (t.to = e.initialToDate, t.temporaryTo = e.initialToDate)), t) : {};
|
|
4777
|
-
},
|
|
4776
|
+
}, Ie = {
|
|
4778
4777
|
"date-picker": "lc-DatePicker-module__date-picker___MOZFY",
|
|
4779
4778
|
"date-picker__wrapper": "lc-DatePicker-module__date-picker__wrapper___aOFS3",
|
|
4780
4779
|
"date-picker__weekday": "lc-DatePicker-module__date-picker__weekday___bdNjp",
|
|
@@ -4787,7 +4786,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4787
4786
|
"date-picker__range-middle": "lc-DatePicker-module__date-picker__range-middle___Xvj7k",
|
|
4788
4787
|
"date-picker__range-end": "lc-DatePicker-module__date-picker__range-end___ux1xQ",
|
|
4789
4788
|
"date-picker__disabled": "lc-DatePicker-module__date-picker__disabled___A8sSm"
|
|
4790
|
-
},
|
|
4789
|
+
}, Oe = "date-picker", Fd = (d) => {
|
|
4791
4790
|
var s = d, {
|
|
4792
4791
|
month: e,
|
|
4793
4792
|
weekStartsOn: t = 1,
|
|
@@ -4821,30 +4820,30 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4821
4820
|
},
|
|
4822
4821
|
[e, l]
|
|
4823
4822
|
);
|
|
4824
|
-
return /* @__PURE__ */ a("div", { className:
|
|
4823
|
+
return /* @__PURE__ */ a("div", { className: Ie[`${Oe}`], children: /* @__PURE__ */ a(
|
|
4825
4824
|
wn,
|
|
4826
4825
|
v({
|
|
4827
4826
|
classNames: {
|
|
4828
4827
|
weekday: u(
|
|
4829
|
-
|
|
4830
|
-
|
|
4828
|
+
Ie[`${Oe}__wrapper`],
|
|
4829
|
+
Ie[`${Oe}__weekday`]
|
|
4831
4830
|
),
|
|
4832
|
-
day: u(
|
|
4833
|
-
day_button: u(
|
|
4834
|
-
today: u(
|
|
4835
|
-
selected: u(
|
|
4836
|
-
month_caption: u(
|
|
4837
|
-
range_start: u(
|
|
4838
|
-
range_middle: u(
|
|
4839
|
-
range_end: u(
|
|
4840
|
-
disabled: u(
|
|
4831
|
+
day: u(Ie[`${Oe}__wrapper`], Ie[`${Oe}__day`]),
|
|
4832
|
+
day_button: u(Ie[`${Oe}__day-button`]),
|
|
4833
|
+
today: u(Ie[`${Oe}__today`]),
|
|
4834
|
+
selected: u(Ie[`${Oe}__selected`]),
|
|
4835
|
+
month_caption: u(Ie[`${Oe}__month-caption`]),
|
|
4836
|
+
range_start: u(Ie[`${Oe}__range-start`]),
|
|
4837
|
+
range_middle: u(Ie[`${Oe}__range-middle`]),
|
|
4838
|
+
range_end: u(Ie[`${Oe}__range-end`]),
|
|
4839
|
+
disabled: u(Ie[`${Oe}__disabled`])
|
|
4841
4840
|
},
|
|
4842
4841
|
onMonthChange: g,
|
|
4843
4842
|
month: i,
|
|
4844
4843
|
components: {
|
|
4845
4844
|
CaptionLabel: ({ children: f }) => /* @__PURE__ */ a(D, { as: "span", bold: !0, children: f }),
|
|
4846
4845
|
Nav: () => /* @__PURE__ */ a(
|
|
4847
|
-
|
|
4846
|
+
Mc,
|
|
4848
4847
|
{
|
|
4849
4848
|
currentMonth: i,
|
|
4850
4849
|
setMonth: g,
|
|
@@ -4859,7 +4858,7 @@ const Cc = "lc-Avatar-module__avatar___5-kP8", wc = "lc-Avatar-module__avatar__s
|
|
|
4859
4858
|
}, c)
|
|
4860
4859
|
) });
|
|
4861
4860
|
};
|
|
4862
|
-
var
|
|
4861
|
+
var X = /* @__PURE__ */ ((e) => (e.NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM", e.NEW_TEMPORARY_FROM_VALUE = "NEW_TEMPORARY_FROM_VALUE", e.NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE", e.CLEAR = "CLEAR", e.SET_FROM = "SET_FROM", e.SET_TO = "SET_TO", e.SELECT_FIRST_DAY = "SELECT_FIRST_DAY", e.SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM", e.SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO", e.CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE", e))(X || {});
|
|
4863
4862
|
const Gc = (e) => {
|
|
4864
4863
|
const t = f_(
|
|
4865
4864
|
e.initialFromDate,
|
|
@@ -4874,7 +4873,7 @@ const Gc = (e) => {
|
|
|
4874
4873
|
}), Lc(e));
|
|
4875
4874
|
function o(n, l) {
|
|
4876
4875
|
switch (l.type) {
|
|
4877
|
-
case
|
|
4876
|
+
case X.NEW_SELECTED_ITEM:
|
|
4878
4877
|
return {
|
|
4879
4878
|
selectedItem: l.payload.selectedItem,
|
|
4880
4879
|
from: void 0,
|
|
@@ -4882,36 +4881,40 @@ const Gc = (e) => {
|
|
|
4882
4881
|
temporaryTo: void 0,
|
|
4883
4882
|
currentMonth: t
|
|
4884
4883
|
};
|
|
4885
|
-
case
|
|
4884
|
+
case X.NEW_TEMPORARY_FROM_VALUE:
|
|
4885
|
+
return B(v({}, n), {
|
|
4886
|
+
temporaryFrom: l.payload.date
|
|
4887
|
+
});
|
|
4888
|
+
case X.NEW_TEMPORARY_TO_VALUE:
|
|
4886
4889
|
return B(v({}, n), {
|
|
4887
4890
|
temporaryTo: l.payload.date
|
|
4888
4891
|
});
|
|
4889
|
-
case
|
|
4892
|
+
case X.SELECT_FIRST_DAY:
|
|
4890
4893
|
return B(v({}, n), {
|
|
4891
4894
|
from: l.payload.date,
|
|
4892
4895
|
to: void 0,
|
|
4893
4896
|
temporaryTo: void 0
|
|
4894
4897
|
});
|
|
4895
|
-
case
|
|
4898
|
+
case X.SELECT_SECOND_DAY_AS_FROM:
|
|
4896
4899
|
return B(v({}, n), {
|
|
4897
4900
|
from: l.payload.date,
|
|
4898
4901
|
to: n.from,
|
|
4899
4902
|
temporaryTo: n.from
|
|
4900
4903
|
});
|
|
4901
|
-
case
|
|
4904
|
+
case X.SELECT_SECOND_DAY_AS_TO:
|
|
4902
4905
|
return B(v({}, n), {
|
|
4903
4906
|
to: l.payload.date,
|
|
4904
4907
|
temporaryTo: l.payload.date
|
|
4905
4908
|
});
|
|
4906
|
-
case
|
|
4909
|
+
case X.CURRENT_MONTH_CHANGE:
|
|
4907
4910
|
return B(v({}, n), {
|
|
4908
4911
|
currentMonth: l.payload.date
|
|
4909
4912
|
});
|
|
4910
|
-
case
|
|
4913
|
+
case X.SET_FROM:
|
|
4911
4914
|
return B(v({}, n), {
|
|
4912
4915
|
from: l.payload.date
|
|
4913
4916
|
});
|
|
4914
|
-
case
|
|
4917
|
+
case X.SET_TO:
|
|
4915
4918
|
return B(v({}, n), {
|
|
4916
4919
|
to: l.payload.date
|
|
4917
4920
|
});
|
|
@@ -4943,12 +4946,12 @@ const Gc = (e) => {
|
|
|
4943
4946
|
});
|
|
4944
4947
|
Ue(() => {
|
|
4945
4948
|
i({
|
|
4946
|
-
type:
|
|
4949
|
+
type: X.SET_FROM,
|
|
4947
4950
|
payload: { date: r }
|
|
4948
4951
|
});
|
|
4949
4952
|
}, [r]), Ue(() => {
|
|
4950
4953
|
i({
|
|
4951
|
-
type:
|
|
4954
|
+
type: X.SET_TO,
|
|
4952
4955
|
payload: { date: _ }
|
|
4953
4956
|
});
|
|
4954
4957
|
}, [_]), Ue(() => {
|
|
@@ -4958,18 +4961,18 @@ const Gc = (e) => {
|
|
|
4958
4961
|
o
|
|
4959
4962
|
);
|
|
4960
4963
|
i({
|
|
4961
|
-
type:
|
|
4964
|
+
type: X.CURRENT_MONTH_CHANGE,
|
|
4962
4965
|
payload: { date: k }
|
|
4963
4966
|
});
|
|
4964
4967
|
}, [o, r, _]), Ue(() => {
|
|
4965
|
-
const { from: k, selectedItem: y, to:
|
|
4966
|
-
if (!(k &&
|
|
4968
|
+
const { from: k, selectedItem: y, to: E } = s;
|
|
4969
|
+
if (!(k && E))
|
|
4967
4970
|
return;
|
|
4968
4971
|
const C = Ba(y, e);
|
|
4969
4972
|
C && (n == null || n(B(v({}, C), {
|
|
4970
4973
|
value: {
|
|
4971
4974
|
from: k,
|
|
4972
|
-
to:
|
|
4975
|
+
to: E
|
|
4973
4976
|
}
|
|
4974
4977
|
})));
|
|
4975
4978
|
}, [s.from, s.to, s.selectedItem, e, n]), Ue(() => {
|
|
@@ -4982,11 +4985,11 @@ const Gc = (e) => {
|
|
|
4982
4985
|
}
|
|
4983
4986
|
if (!Ba(k, e))
|
|
4984
4987
|
return;
|
|
4985
|
-
const
|
|
4986
|
-
(C,
|
|
4988
|
+
const E = e.reduce(
|
|
4989
|
+
(C, I) => B(v({}, C), { [I.id]: I }),
|
|
4987
4990
|
{}
|
|
4988
4991
|
);
|
|
4989
|
-
n(
|
|
4992
|
+
n(E[k]);
|
|
4990
4993
|
}, [n, s.selectedItem, e]);
|
|
4991
4994
|
const m = Nt(() => {
|
|
4992
4995
|
const { from: k, to: y } = s;
|
|
@@ -4996,24 +4999,39 @@ const Gc = (e) => {
|
|
|
4996
4999
|
});
|
|
4997
5000
|
}, [l]), g = Nt(
|
|
4998
5001
|
(k) => {
|
|
4999
|
-
const y = o ? Zo(o, k) >= 0 : !0;
|
|
5000
|
-
!Fo(
|
|
5001
|
-
type:
|
|
5002
|
+
const { from: y, to: E } = s, C = o ? Zo(o, k) >= 0 : !0;
|
|
5003
|
+
y && !Fo(y, E) && C && (yn(k, y) ? (i({
|
|
5004
|
+
type: X.NEW_TEMPORARY_FROM_VALUE,
|
|
5002
5005
|
payload: { date: k }
|
|
5003
|
-
})
|
|
5006
|
+
}), i({
|
|
5007
|
+
type: X.NEW_TEMPORARY_TO_VALUE,
|
|
5008
|
+
payload: { date: y }
|
|
5009
|
+
})) : (i({
|
|
5010
|
+
type: X.NEW_TEMPORARY_TO_VALUE,
|
|
5011
|
+
payload: { date: k }
|
|
5012
|
+
}), i({
|
|
5013
|
+
type: X.NEW_TEMPORARY_FROM_VALUE,
|
|
5014
|
+
payload: { date: y }
|
|
5015
|
+
})));
|
|
5004
5016
|
},
|
|
5005
5017
|
[o, s.from, s.to]
|
|
5006
5018
|
), f = Nt(
|
|
5007
5019
|
(k) => {
|
|
5008
|
-
const { from: y, to:
|
|
5009
|
-
h_(k, { to: o }) && (Fo(y,
|
|
5010
|
-
type:
|
|
5020
|
+
const { from: y, to: E } = s;
|
|
5021
|
+
h_(k, { to: o }) && (Fo(y, E) ? (i({
|
|
5022
|
+
type: X.SELECT_FIRST_DAY,
|
|
5011
5023
|
payload: { date: k }
|
|
5012
|
-
})
|
|
5013
|
-
type:
|
|
5024
|
+
}), i({
|
|
5025
|
+
type: X.NEW_TEMPORARY_FROM_VALUE,
|
|
5026
|
+
payload: { date: k }
|
|
5027
|
+
}), i({
|
|
5028
|
+
type: X.NEW_TEMPORARY_TO_VALUE,
|
|
5029
|
+
payload: { date: k }
|
|
5030
|
+
})) : y && to(k, y) || y && ao(k, y) ? i({
|
|
5031
|
+
type: X.SELECT_SECOND_DAY_AS_TO,
|
|
5014
5032
|
payload: { date: k }
|
|
5015
5033
|
}) : i({
|
|
5016
|
-
type:
|
|
5034
|
+
type: X.SELECT_SECOND_DAY_AS_FROM,
|
|
5017
5035
|
payload: { date: k }
|
|
5018
5036
|
}));
|
|
5019
5037
|
},
|
|
@@ -5022,47 +5040,47 @@ const Gc = (e) => {
|
|
|
5022
5040
|
(k) => {
|
|
5023
5041
|
if (k === null) {
|
|
5024
5042
|
i({
|
|
5025
|
-
type:
|
|
5043
|
+
type: X.NEW_SELECTED_ITEM,
|
|
5026
5044
|
payload: { selectedItem: null }
|
|
5027
5045
|
});
|
|
5028
5046
|
return;
|
|
5029
5047
|
}
|
|
5030
5048
|
Ba(k, e) && i({
|
|
5031
|
-
type:
|
|
5049
|
+
type: X.NEW_SELECTED_ITEM,
|
|
5032
5050
|
payload: { selectedItem: k }
|
|
5033
5051
|
});
|
|
5034
5052
|
},
|
|
5035
5053
|
[e]
|
|
5036
5054
|
), x = Nt((k) => {
|
|
5037
5055
|
i({
|
|
5038
|
-
type:
|
|
5056
|
+
type: X.CURRENT_MONTH_CHANGE,
|
|
5039
5057
|
payload: { date: k }
|
|
5040
5058
|
});
|
|
5041
5059
|
}, []);
|
|
5042
5060
|
return c((() => {
|
|
5043
|
-
const { currentMonth: k, from: y, selectedItem:
|
|
5061
|
+
const { currentMonth: k, from: y, selectedItem: E, temporaryFrom: C, temporaryTo: I, to: w } = s, $ = Da(() => Ba(E, e), [e, E]), T = Da(() => ({ from: C || y, to: I }), [y, C, I]), P = Da(() => o ? { after: o } : void 0, [o]);
|
|
5044
5062
|
return {
|
|
5045
5063
|
select: {
|
|
5046
5064
|
onItemSelect: b,
|
|
5047
|
-
selected:
|
|
5065
|
+
selected: E || ""
|
|
5048
5066
|
},
|
|
5049
5067
|
inputs: {
|
|
5050
5068
|
fromDate: y,
|
|
5051
|
-
toDate:
|
|
5069
|
+
toDate: w
|
|
5052
5070
|
},
|
|
5053
5071
|
datepicker: {
|
|
5054
5072
|
mode: "range",
|
|
5055
5073
|
month: k,
|
|
5056
5074
|
numberOfMonths: 2,
|
|
5057
5075
|
onDayClick: f,
|
|
5058
|
-
selected:
|
|
5076
|
+
selected: T,
|
|
5059
5077
|
endMonth: o,
|
|
5060
|
-
disabled:
|
|
5078
|
+
disabled: P,
|
|
5061
5079
|
onDayMouseEnter: g,
|
|
5062
5080
|
onMonthChange: x,
|
|
5063
5081
|
onSelect: m
|
|
5064
5082
|
},
|
|
5065
|
-
selectedOption:
|
|
5083
|
+
selectedOption: $
|
|
5066
5084
|
};
|
|
5067
5085
|
})());
|
|
5068
5086
|
};
|
|
@@ -5079,13 +5097,13 @@ Hc.defaultProps = {
|
|
|
5079
5097
|
}
|
|
5080
5098
|
]
|
|
5081
5099
|
};
|
|
5082
|
-
const
|
|
5100
|
+
const Rd = (e) => {
|
|
5083
5101
|
const n = e, { className: t, children: r } = n, _ = R(n, ["className", "children"]), o = u(
|
|
5084
5102
|
t,
|
|
5085
|
-
|
|
5103
|
+
Ie["date-picker--range__calendars-wrapper"]
|
|
5086
5104
|
);
|
|
5087
5105
|
return /* @__PURE__ */ a("div", B(v({}, _), { className: o, children: r }));
|
|
5088
|
-
},
|
|
5106
|
+
}, q = {
|
|
5089
5107
|
"details-card": "lc-DetailsCard-module__details-card___v-Avc",
|
|
5090
5108
|
"details-card__button--fading": "lc-DetailsCard-module__details-card__button--fading___LlMMo",
|
|
5091
5109
|
"details-card--with-divider": "lc-DetailsCard-module__details-card--with-divider___AhDnH",
|
|
@@ -5106,7 +5124,7 @@ const Od = (e) => {
|
|
|
5106
5124
|
"details-card__content": "lc-DetailsCard-module__details-card__content___aJux3",
|
|
5107
5125
|
"details-card__content--spacing": "lc-DetailsCard-module__details-card__content--spacing___F17pU",
|
|
5108
5126
|
"details-card__content--full-space": "lc-DetailsCard-module__details-card__content--full-space___8CLFw"
|
|
5109
|
-
},
|
|
5127
|
+
}, j = "details-card", Uc = ["input", "button", "select", "textarea", "a"], Od = ({
|
|
5110
5128
|
children: e,
|
|
5111
5129
|
className: t,
|
|
5112
5130
|
leftNode: r,
|
|
@@ -5119,62 +5137,62 @@ const Od = (e) => {
|
|
|
5119
5137
|
onClick: s
|
|
5120
5138
|
}) => {
|
|
5121
5139
|
const [i, m] = p.useState(c), [g, f] = p.useState(0), b = p.useRef(null), x = u(
|
|
5122
|
-
|
|
5123
|
-
n &&
|
|
5140
|
+
q[j],
|
|
5141
|
+
n && q[`${j}--with-divider`],
|
|
5124
5142
|
t
|
|
5125
5143
|
), S = d && i, k = typeof o == "string", y = (C) => {
|
|
5126
|
-
m((
|
|
5127
|
-
},
|
|
5144
|
+
m((I) => !I), C.currentTarget.blur(), s == null || s(C);
|
|
5145
|
+
}, E = (C) => {
|
|
5128
5146
|
const w = C.target.tagName.toLowerCase();
|
|
5129
5147
|
Uc.includes(w) || (m(($) => !$), s == null || s(C));
|
|
5130
5148
|
};
|
|
5131
5149
|
return p.useEffect(() => {
|
|
5132
5150
|
const C = !!window.IntersectionObserver;
|
|
5133
5151
|
if (b.current && C) {
|
|
5134
|
-
const
|
|
5152
|
+
const I = new ResizeObserver(() => {
|
|
5135
5153
|
b.current && g !== b.current.offsetHeight && f(b.current.offsetHeight);
|
|
5136
5154
|
});
|
|
5137
|
-
return
|
|
5155
|
+
return I.observe(b.current), () => I.disconnect();
|
|
5138
5156
|
}
|
|
5139
5157
|
}, [b]), /* @__PURE__ */ h("div", { className: x, children: [
|
|
5140
5158
|
/* @__PURE__ */ a(
|
|
5141
5159
|
"div",
|
|
5142
5160
|
{
|
|
5143
5161
|
className: u(
|
|
5144
|
-
|
|
5145
|
-
d &&
|
|
5146
|
-
S &&
|
|
5147
|
-
i &&
|
|
5162
|
+
q[`${j}__label-wrapper`],
|
|
5163
|
+
d && q[`${j}__label-wrapper--fading`],
|
|
5164
|
+
S && q[`${j}__label-wrapper--hide`],
|
|
5165
|
+
i && q[`${j}__label-wrapper--open`]
|
|
5148
5166
|
),
|
|
5149
5167
|
"aria-expanded": i,
|
|
5150
5168
|
"aria-hidden": S,
|
|
5151
5169
|
"data-testid": "details-card-label",
|
|
5152
|
-
onClick:
|
|
5170
|
+
onClick: E,
|
|
5153
5171
|
children: /* @__PURE__ */ h(
|
|
5154
5172
|
"div",
|
|
5155
5173
|
{
|
|
5156
5174
|
className: u(
|
|
5157
|
-
|
|
5158
|
-
d &&
|
|
5175
|
+
q[`${j}__label`],
|
|
5176
|
+
d && q[`${j}__label--with-margin`]
|
|
5159
5177
|
),
|
|
5160
5178
|
children: [
|
|
5161
|
-
r && /* @__PURE__ */ a("div", { className:
|
|
5179
|
+
r && /* @__PURE__ */ a("div", { className: q[`${j}__label__left-node`], children: r }),
|
|
5162
5180
|
k ? /* @__PURE__ */ a(
|
|
5163
5181
|
se,
|
|
5164
5182
|
{
|
|
5165
5183
|
size: "xs",
|
|
5166
|
-
className:
|
|
5184
|
+
className: q[`${j}__label__content`],
|
|
5167
5185
|
children: o
|
|
5168
5186
|
}
|
|
5169
|
-
) : /* @__PURE__ */ a("div", { className:
|
|
5170
|
-
_ && /* @__PURE__ */ a("div", { className:
|
|
5187
|
+
) : /* @__PURE__ */ a("div", { className: q[`${j}__label__content`], children: o }),
|
|
5188
|
+
_ && /* @__PURE__ */ a("div", { className: q[`${j}__label__right-node`], children: _ })
|
|
5171
5189
|
]
|
|
5172
5190
|
}
|
|
5173
5191
|
)
|
|
5174
5192
|
}
|
|
5175
5193
|
),
|
|
5176
5194
|
/* @__PURE__ */ a(
|
|
5177
|
-
|
|
5195
|
+
Y,
|
|
5178
5196
|
{
|
|
5179
5197
|
kind: i && d ? "float" : "text",
|
|
5180
5198
|
icon: /* @__PURE__ */ a(
|
|
@@ -5182,16 +5200,16 @@ const Od = (e) => {
|
|
|
5182
5200
|
{
|
|
5183
5201
|
source: vr,
|
|
5184
5202
|
className: u(
|
|
5185
|
-
|
|
5186
|
-
i &&
|
|
5203
|
+
q[`${j}__button__icon`],
|
|
5204
|
+
i && q[`${j}__button__icon--open`]
|
|
5187
5205
|
)
|
|
5188
5206
|
}
|
|
5189
5207
|
),
|
|
5190
5208
|
className: u(
|
|
5191
|
-
|
|
5192
|
-
!i &&
|
|
5193
|
-
i &&
|
|
5194
|
-
d &&
|
|
5209
|
+
q[`${j}__button`],
|
|
5210
|
+
!i && q[`${j}__button--closed`],
|
|
5211
|
+
i && q[`${j}__button--open`],
|
|
5212
|
+
d && q[`${j}__button--fading`]
|
|
5195
5213
|
),
|
|
5196
5214
|
onClick: y,
|
|
5197
5215
|
"aria-expanded": i
|
|
@@ -5201,8 +5219,8 @@ const Od = (e) => {
|
|
|
5201
5219
|
"div",
|
|
5202
5220
|
{
|
|
5203
5221
|
className: u(
|
|
5204
|
-
|
|
5205
|
-
i &&
|
|
5222
|
+
q[`${j}__content-wrapper`],
|
|
5223
|
+
i && q[`${j}__content-wrapper--open`]
|
|
5206
5224
|
),
|
|
5207
5225
|
style: {
|
|
5208
5226
|
maxHeight: i ? g : 0
|
|
@@ -5212,9 +5230,9 @@ const Od = (e) => {
|
|
|
5212
5230
|
{
|
|
5213
5231
|
ref: b,
|
|
5214
5232
|
className: u(
|
|
5215
|
-
|
|
5216
|
-
l &&
|
|
5217
|
-
d &&
|
|
5233
|
+
q[`${j}__content`],
|
|
5234
|
+
l && q[`${j}__content--full-space`],
|
|
5235
|
+
d && q[`${j}__content--spacing`]
|
|
5218
5236
|
),
|
|
5219
5237
|
children: e
|
|
5220
5238
|
}
|
|
@@ -5226,13 +5244,13 @@ const Od = (e) => {
|
|
|
5226
5244
|
"details-card-info": "lc-DetailsCardInfo-module__details-card-info___22mOK",
|
|
5227
5245
|
"details-card-info__label": "lc-DetailsCardInfo-module__details-card-info__label___LXTXh",
|
|
5228
5246
|
"details-card-info__content": "lc-DetailsCardInfo-module__details-card-info__content___03cfr"
|
|
5229
|
-
}, Ur = "details-card-info",
|
|
5247
|
+
}, Ur = "details-card-info", Md = ({ children: e, label: t }) => /* @__PURE__ */ h("div", { className: Hr[Ur], children: [
|
|
5230
5248
|
/* @__PURE__ */ a("div", { className: Hr[`${Ur}__label`], children: t }),
|
|
5231
5249
|
/* @__PURE__ */ a("div", { className: Hr[`${Ur}__content`], children: e })
|
|
5232
5250
|
] }), Ro = {
|
|
5233
5251
|
"field-error": "lc-FieldError-module__field-error___-rtI3",
|
|
5234
5252
|
"field-error__icon": "lc-FieldError-module__field-error__icon___4KpOc"
|
|
5235
|
-
},
|
|
5253
|
+
}, Oo = "field-error", uo = (_) => {
|
|
5236
5254
|
var o = _, {
|
|
5237
5255
|
children: e,
|
|
5238
5256
|
className: t = ""
|
|
@@ -5240,13 +5258,13 @@ const Od = (e) => {
|
|
|
5240
5258
|
"children",
|
|
5241
5259
|
"className"
|
|
5242
5260
|
]);
|
|
5243
|
-
const n = u(Ro[
|
|
5261
|
+
const n = u(Ro[Oo], t);
|
|
5244
5262
|
return /* @__PURE__ */ h(D, B(v({ as: "span", size: "sm" }, r), { className: n, children: [
|
|
5245
5263
|
/* @__PURE__ */ a(
|
|
5246
5264
|
F,
|
|
5247
5265
|
{
|
|
5248
|
-
source:
|
|
5249
|
-
className: Ro[`${
|
|
5266
|
+
source: Oa,
|
|
5267
|
+
className: Ro[`${Oo}__icon`],
|
|
5250
5268
|
size: "small"
|
|
5251
5269
|
}
|
|
5252
5270
|
),
|
|
@@ -5256,7 +5274,7 @@ const Od = (e) => {
|
|
|
5256
5274
|
"field-group": "lc-FieldGroup-module__field-group___--i2x",
|
|
5257
5275
|
"field-group--inline": "lc-FieldGroup-module__field-group--inline___iSg4S",
|
|
5258
5276
|
"field-group--stretched": "lc-FieldGroup-module__field-group--stretched___4Evlw"
|
|
5259
|
-
}, Vr = "field-group",
|
|
5277
|
+
}, Vr = "field-group", Ld = (c) => {
|
|
5260
5278
|
var d = c, {
|
|
5261
5279
|
className: e = "",
|
|
5262
5280
|
children: t,
|
|
@@ -5281,13 +5299,13 @@ const Od = (e) => {
|
|
|
5281
5299
|
_ && /* @__PURE__ */ a(uo, { children: _ }),
|
|
5282
5300
|
r && /* @__PURE__ */ a(Nr, { children: r })
|
|
5283
5301
|
] }));
|
|
5284
|
-
}, zc = "lc-Form-module__form___ddwfw", Vc = "lc-Form-module__form__header___mr4AX", Wc = "lc-Form-module__form__footer___NJUBH", Kc = "lc-Form-module__form__label___2hAXA",
|
|
5302
|
+
}, zc = "lc-Form-module__form___ddwfw", Vc = "lc-Form-module__form__header___mr4AX", Wc = "lc-Form-module__form__footer___NJUBH", Kc = "lc-Form-module__form__label___2hAXA", Yc = "lc-Form-module__form__helper___r1lJG", ma = {
|
|
5285
5303
|
form: zc,
|
|
5286
5304
|
form__header: Vc,
|
|
5287
5305
|
form__footer: Wc,
|
|
5288
5306
|
form__label: Kc,
|
|
5289
|
-
form__helper:
|
|
5290
|
-
}, pa = "form",
|
|
5307
|
+
form__helper: Yc
|
|
5308
|
+
}, pa = "form", Gd = (l) => {
|
|
5291
5309
|
var c = l, {
|
|
5292
5310
|
className: e,
|
|
5293
5311
|
children: t,
|
|
@@ -5326,7 +5344,7 @@ const Od = (e) => {
|
|
|
5326
5344
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___ibOb7",
|
|
5327
5345
|
"form-field__content": "lc-FormField-module__form-field__content___7Cnwe",
|
|
5328
5346
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___qdMlU"
|
|
5329
|
-
}, _e = "form-field",
|
|
5347
|
+
}, _e = "form-field", Hd = ({
|
|
5330
5348
|
inline: e,
|
|
5331
5349
|
error: t,
|
|
5332
5350
|
description: r,
|
|
@@ -5446,7 +5464,7 @@ const Od = (e) => {
|
|
|
5446
5464
|
"form-group__header": "lc-FormGroup-module__form-group__header___U4FrR",
|
|
5447
5465
|
"form-group__label": "lc-FormGroup-module__form-group__label___9AcBX",
|
|
5448
5466
|
"form-group__helper": "lc-FormGroup-module__form-group__helper___2XQcm"
|
|
5449
|
-
}, nr = "form-group",
|
|
5467
|
+
}, nr = "form-group", Ud = (n) => {
|
|
5450
5468
|
var l = n, {
|
|
5451
5469
|
className: e = "",
|
|
5452
5470
|
children: t,
|
|
@@ -5482,9 +5500,9 @@ const Od = (e) => {
|
|
|
5482
5500
|
]
|
|
5483
5501
|
})
|
|
5484
5502
|
);
|
|
5485
|
-
},
|
|
5503
|
+
}, Xc = "lc-AnimatedButton-module__icon___x-2D0", Zc = "lc-AnimatedButton-module__text___JEZ-a", qc = "lc-AnimatedButton-module__expanded___oXA4t", lr = {
|
|
5486
5504
|
"animated-button": "lc-AnimatedButton-module__animated-button___d1ume",
|
|
5487
|
-
icon:
|
|
5505
|
+
icon: Xc,
|
|
5488
5506
|
text: Zc,
|
|
5489
5507
|
expanded: qc
|
|
5490
5508
|
}, jc = ({
|
|
@@ -5519,11 +5537,11 @@ const Od = (e) => {
|
|
|
5519
5537
|
]
|
|
5520
5538
|
}
|
|
5521
5539
|
);
|
|
5522
|
-
},
|
|
5540
|
+
}, Mo = {
|
|
5523
5541
|
available: 1,
|
|
5524
5542
|
unavailable: 2,
|
|
5525
5543
|
unknown: 3
|
|
5526
|
-
}, Qc = (e) => [...e].sort((t, r) =>
|
|
5544
|
+
}, Qc = (e) => [...e].sort((t, r) => Mo[t.status] - Mo[r.status]), Me = {
|
|
5527
5545
|
"invite-agents": "lc-InviteAgents-module__invite-agents___XHov-",
|
|
5528
5546
|
"invite-agents--empty": "lc-InviteAgents-module__invite-agents--empty___-uyZv",
|
|
5529
5547
|
"invite-agents--only-unavailable": "lc-InviteAgents-module__invite-agents--only-unavailable___rwGmo",
|
|
@@ -5561,23 +5579,23 @@ const Od = (e) => {
|
|
|
5561
5579
|
visibleAgents: S,
|
|
5562
5580
|
hasOnlyUnavailableAgents: k,
|
|
5563
5581
|
onlyAgentsNumber: y,
|
|
5564
|
-
onlyBotsNumber:
|
|
5582
|
+
onlyBotsNumber: E
|
|
5565
5583
|
} = Da(() => {
|
|
5566
5584
|
const T = e.filter(
|
|
5567
5585
|
(U) => U.status === "available"
|
|
5568
|
-
), P = Qc(T),
|
|
5586
|
+
), P = Qc(T), O = T.length, N = P.length > 4 ? P.slice(0, 3) : P, A = e.length > 0 && O === 0, M = T.filter(
|
|
5569
5587
|
(U) => !U.isBot
|
|
5570
|
-
).length, z =
|
|
5588
|
+
).length, z = O - M;
|
|
5571
5589
|
return {
|
|
5572
|
-
availableAgentsNumber:
|
|
5590
|
+
availableAgentsNumber: O,
|
|
5573
5591
|
visibleAgents: N,
|
|
5574
5592
|
hasOnlyUnavailableAgents: A,
|
|
5575
|
-
onlyAgentsNumber:
|
|
5593
|
+
onlyAgentsNumber: M,
|
|
5576
5594
|
onlyBotsNumber: z
|
|
5577
5595
|
};
|
|
5578
5596
|
}, [e]), C = () => {
|
|
5579
5597
|
t(), g(!1), b(!1);
|
|
5580
|
-
},
|
|
5598
|
+
}, I = () => {
|
|
5581
5599
|
r(), g(!1), b(!1);
|
|
5582
5600
|
}, w = () => {
|
|
5583
5601
|
l(), g(!1), b(!1);
|
|
@@ -5590,7 +5608,7 @@ const Od = (e) => {
|
|
|
5590
5608
|
{
|
|
5591
5609
|
key: "teammate",
|
|
5592
5610
|
element: /* @__PURE__ */ a(mr, { leftNode: /* @__PURE__ */ a(F, { source: W_ }), children: "Invite teammate" }),
|
|
5593
|
-
onClick:
|
|
5611
|
+
onClick: I
|
|
5594
5612
|
}
|
|
5595
5613
|
];
|
|
5596
5614
|
return /* @__PURE__ */ h(
|
|
@@ -5598,16 +5616,16 @@ const Od = (e) => {
|
|
|
5598
5616
|
B(v({}, d), {
|
|
5599
5617
|
className: u(
|
|
5600
5618
|
Rt.Dark,
|
|
5601
|
-
|
|
5619
|
+
Me[Le],
|
|
5602
5620
|
{
|
|
5603
|
-
[
|
|
5604
|
-
[
|
|
5621
|
+
[Me[`${Le}--empty`]]: e.length === 0,
|
|
5622
|
+
[Me[`${Le}--only-unavailable`]]: k
|
|
5605
5623
|
},
|
|
5606
5624
|
_
|
|
5607
5625
|
),
|
|
5608
5626
|
children: [
|
|
5609
5627
|
e.length > 0 && /* @__PURE__ */ a(
|
|
5610
|
-
|
|
5628
|
+
Ot,
|
|
5611
5629
|
{
|
|
5612
5630
|
isVisible: f && !m,
|
|
5613
5631
|
offsetMainAxis: n,
|
|
@@ -5615,18 +5633,18 @@ const Od = (e) => {
|
|
|
5615
5633
|
hoverOnDelay: Jc,
|
|
5616
5634
|
onOpen: () => b(!0),
|
|
5617
5635
|
onClose: () => b(!1),
|
|
5618
|
-
className: u(Rt.Dark,
|
|
5636
|
+
className: u(Rt.Dark, Me[`${Le}__tooltip`]),
|
|
5619
5637
|
triggerRenderer: k ? /* @__PURE__ */ h(
|
|
5620
5638
|
"div",
|
|
5621
5639
|
{
|
|
5622
|
-
className:
|
|
5640
|
+
className: Me[`${Le}__not-accepting`],
|
|
5623
5641
|
onClick: w,
|
|
5624
5642
|
children: [
|
|
5625
5643
|
/* @__PURE__ */ a(
|
|
5626
5644
|
"div",
|
|
5627
5645
|
{
|
|
5628
5646
|
className: u(
|
|
5629
|
-
|
|
5647
|
+
Me[`${Le}__not-accepting-status-dot`]
|
|
5630
5648
|
)
|
|
5631
5649
|
}
|
|
5632
5650
|
),
|
|
@@ -5636,14 +5654,14 @@ const Od = (e) => {
|
|
|
5636
5654
|
) : /* @__PURE__ */ h(
|
|
5637
5655
|
"div",
|
|
5638
5656
|
{
|
|
5639
|
-
className:
|
|
5657
|
+
className: Me[`${Le}__tooltip-trigger`],
|
|
5640
5658
|
onClick: w,
|
|
5641
5659
|
children: [
|
|
5642
|
-
/* @__PURE__ */ a("div", { className:
|
|
5660
|
+
/* @__PURE__ */ a("div", { className: Me[`${Le}__avatar-container`], children: S.map((T, P) => /* @__PURE__ */ a(
|
|
5643
5661
|
g_,
|
|
5644
5662
|
{
|
|
5645
5663
|
text: T.name,
|
|
5646
|
-
className:
|
|
5664
|
+
className: Me[`${Le}__avatar`],
|
|
5647
5665
|
type: T.avatar ? "image" : "text",
|
|
5648
5666
|
size: "xsmall",
|
|
5649
5667
|
status: T.status,
|
|
@@ -5655,7 +5673,7 @@ const Od = (e) => {
|
|
|
5655
5673
|
x > 0 && /* @__PURE__ */ a(
|
|
5656
5674
|
D,
|
|
5657
5675
|
{
|
|
5658
|
-
className:
|
|
5676
|
+
className: Me[`${Le}__available-agents-number`],
|
|
5659
5677
|
children: x
|
|
5660
5678
|
}
|
|
5661
5679
|
)
|
|
@@ -5678,14 +5696,14 @@ const Od = (e) => {
|
|
|
5678
5696
|
as: "div",
|
|
5679
5697
|
noMargin: !0,
|
|
5680
5698
|
size: "md",
|
|
5681
|
-
className:
|
|
5699
|
+
className: Me[`${Le}__accepting-agents`],
|
|
5682
5700
|
children: [
|
|
5683
5701
|
/* @__PURE__ */ a(D, { bold: !0, noMargin: !0, children: "Accepting chats:" }),
|
|
5684
5702
|
/* @__PURE__ */ h(
|
|
5685
5703
|
D,
|
|
5686
5704
|
{
|
|
5687
5705
|
noMargin: !0,
|
|
5688
|
-
className:
|
|
5706
|
+
className: Me[`${Le}__accepting-agents-row`],
|
|
5689
5707
|
children: [
|
|
5690
5708
|
/* @__PURE__ */ a(F, { source: H_ }),
|
|
5691
5709
|
hr(
|
|
@@ -5700,10 +5718,10 @@ const Od = (e) => {
|
|
|
5700
5718
|
D,
|
|
5701
5719
|
{
|
|
5702
5720
|
noMargin: !0,
|
|
5703
|
-
className:
|
|
5721
|
+
className: Me[`${Le}__accepting-agents-row`],
|
|
5704
5722
|
children: [
|
|
5705
5723
|
/* @__PURE__ */ a(F, { source: U_ }),
|
|
5706
|
-
hr(
|
|
5724
|
+
hr(E, "1 bot", `${E} bots`)
|
|
5707
5725
|
]
|
|
5708
5726
|
}
|
|
5709
5727
|
)
|
|
@@ -5734,10 +5752,10 @@ const Od = (e) => {
|
|
|
5734
5752
|
]
|
|
5735
5753
|
})
|
|
5736
5754
|
);
|
|
5737
|
-
},
|
|
5755
|
+
}, zd = P_(ei), ti = "lc-Link-module__link___35Vo1", Lo = {
|
|
5738
5756
|
link: ti,
|
|
5739
5757
|
"link--bold": "lc-Link-module__link--bold___9Uq3Z"
|
|
5740
|
-
}, Go = "link",
|
|
5758
|
+
}, Go = "link", Vd = (_) => {
|
|
5741
5759
|
var o = _, {
|
|
5742
5760
|
bold: e = !1,
|
|
5743
5761
|
className: t = ""
|
|
@@ -5830,7 +5848,7 @@ const Od = (e) => {
|
|
|
5830
5848
|
customColor: t,
|
|
5831
5849
|
onClick: r
|
|
5832
5850
|
}) => /* @__PURE__ */ a(
|
|
5833
|
-
|
|
5851
|
+
Y,
|
|
5834
5852
|
{
|
|
5835
5853
|
type: "button",
|
|
5836
5854
|
kind: "plain",
|
|
@@ -5843,7 +5861,7 @@ const Od = (e) => {
|
|
|
5843
5861
|
onClick: r,
|
|
5844
5862
|
icon: /* @__PURE__ */ a(F, { source: Qe, size: "medium", customColor: t })
|
|
5845
5863
|
}
|
|
5846
|
-
), Dt = "modal",
|
|
5864
|
+
), Dt = "modal", Wd = (s) => {
|
|
5847
5865
|
var i = s, {
|
|
5848
5866
|
children: e,
|
|
5849
5867
|
className: t = "",
|
|
@@ -5926,7 +5944,7 @@ const Od = (e) => {
|
|
|
5926
5944
|
]
|
|
5927
5945
|
})
|
|
5928
5946
|
);
|
|
5929
|
-
},
|
|
5947
|
+
}, Kd = ({
|
|
5930
5948
|
children: e,
|
|
5931
5949
|
className: t = "",
|
|
5932
5950
|
parentElementName: r = "body",
|
|
@@ -5941,13 +5959,13 @@ const Od = (e) => {
|
|
|
5941
5959
|
}, [r]), Ue(() => {
|
|
5942
5960
|
const n = o.current;
|
|
5943
5961
|
t && (n.className = t), _ && (n.style.zIndex = `${_}`);
|
|
5944
|
-
}, [t, _]), kn(/* @__PURE__ */ a(
|
|
5962
|
+
}, [t, _]), kn(/* @__PURE__ */ a(J, { children: e }), o.current);
|
|
5945
5963
|
}, ha = {
|
|
5946
5964
|
"modal-header": "lc-ModalHeader-module__modal-header___YwkiN",
|
|
5947
5965
|
"modal-header__heading-left-node": "lc-ModalHeader-module__modal-header__heading-left-node___SZBRX",
|
|
5948
5966
|
"modal-header__heading-body": "lc-ModalHeader-module__modal-header__heading-body___aBgMz",
|
|
5949
5967
|
"modal-header__heading-description": "lc-ModalHeader-module__modal-header__heading-description___dpbWK"
|
|
5950
|
-
}, fa = "modal-header",
|
|
5968
|
+
}, fa = "modal-header", Yd = ({ title: e, iconProps: t, avatarProps: r, children: _, className: o = "" }) => {
|
|
5951
5969
|
const n = u(ha[fa], o);
|
|
5952
5970
|
return /* @__PURE__ */ h("div", { className: n, children: [
|
|
5953
5971
|
t && /* @__PURE__ */ a(
|
|
@@ -5980,7 +5998,7 @@ const Od = (e) => {
|
|
|
5980
5998
|
"action-modal-content__heading": "lc-ActionModalContent-module__action-modal-content__heading___gGgOD",
|
|
5981
5999
|
"action-modal-content__content": "lc-ActionModalContent-module__action-modal-content__content___K4e5r",
|
|
5982
6000
|
"action-modal-content__actions": "lc-ActionModalContent-module__action-modal-content__actions___bgnDV"
|
|
5983
|
-
}, va = "action-modal-content",
|
|
6001
|
+
}, va = "action-modal-content", Xd = ({
|
|
5984
6002
|
children: e,
|
|
5985
6003
|
className: t,
|
|
5986
6004
|
icon: r,
|
|
@@ -6016,7 +6034,7 @@ const Od = (e) => {
|
|
|
6016
6034
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___s2O8w",
|
|
6017
6035
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___nO8zN",
|
|
6018
6036
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___y9v6f"
|
|
6019
|
-
}, Jt = "numeric-input",
|
|
6037
|
+
}, Jt = "numeric-input", Zd = (i) => {
|
|
6020
6038
|
var m = i, {
|
|
6021
6039
|
className: e,
|
|
6022
6040
|
error: t,
|
|
@@ -6051,7 +6069,7 @@ const Od = (e) => {
|
|
|
6051
6069
|
return b(x($));
|
|
6052
6070
|
}, k = (w) => {
|
|
6053
6071
|
w.key === we.arrowDown && (w.preventDefault(), S(-1)), w.key === we.arrowUp && (w.preventDefault(), S(1));
|
|
6054
|
-
}, y = (w, $) => $ !== void 0 && parseInt(w, 10) === $,
|
|
6072
|
+
}, y = (w, $) => $ !== void 0 && parseInt(w, 10) === $, E = (w) => {
|
|
6055
6073
|
w.preventDefault(), w.stopPropagation();
|
|
6056
6074
|
const $ = w.currentTarget.value.replace(
|
|
6057
6075
|
/((?!([-]|([-]?\d+))).)/,
|
|
@@ -6064,7 +6082,7 @@ const Od = (e) => {
|
|
|
6064
6082
|
}, C = () => {
|
|
6065
6083
|
var w;
|
|
6066
6084
|
return (w = g.current) == null || w.focus(), S(1);
|
|
6067
|
-
},
|
|
6085
|
+
}, I = () => {
|
|
6068
6086
|
var w;
|
|
6069
6087
|
return (w = g.current) == null || w.focus(), S(-1);
|
|
6070
6088
|
};
|
|
@@ -6077,13 +6095,13 @@ const Od = (e) => {
|
|
|
6077
6095
|
}, s), {
|
|
6078
6096
|
value: r,
|
|
6079
6097
|
disabled: n,
|
|
6080
|
-
onChange:
|
|
6098
|
+
onChange: E,
|
|
6081
6099
|
onKeyDown: k,
|
|
6082
6100
|
min: o,
|
|
6083
6101
|
max: _
|
|
6084
6102
|
})
|
|
6085
6103
|
),
|
|
6086
|
-
!l && /* @__PURE__ */ h(
|
|
6104
|
+
!l && /* @__PURE__ */ h(J, { children: [
|
|
6087
6105
|
/* @__PURE__ */ a(
|
|
6088
6106
|
"button",
|
|
6089
6107
|
{
|
|
@@ -6110,7 +6128,7 @@ const Od = (e) => {
|
|
|
6110
6128
|
disabled: n || y(r, o),
|
|
6111
6129
|
"aria-label": "Decrement value",
|
|
6112
6130
|
className: Qt[`${Jt}__decrement`],
|
|
6113
|
-
onClick:
|
|
6131
|
+
onClick: I,
|
|
6114
6132
|
type: "button",
|
|
6115
6133
|
children: /* @__PURE__ */ a(
|
|
6116
6134
|
F,
|
|
@@ -6253,7 +6271,7 @@ const Od = (e) => {
|
|
|
6253
6271
|
]
|
|
6254
6272
|
}
|
|
6255
6273
|
);
|
|
6256
|
-
},
|
|
6274
|
+
}, ae = {
|
|
6257
6275
|
"onboarding-checklist": "lc-OnboardingChecklist-module__onboarding-checklist___98RSw",
|
|
6258
6276
|
"onboarding-checklist--complete": "lc-OnboardingChecklist-module__onboarding-checklist--complete___Cmld9",
|
|
6259
6277
|
"onboarding-checklist__complete": "lc-OnboardingChecklist-module__onboarding-checklist__complete___ihqN7",
|
|
@@ -6271,7 +6289,7 @@ const Od = (e) => {
|
|
|
6271
6289
|
"onboarding-checklist__button": "lc-OnboardingChecklist-module__onboarding-checklist__button___ZmZ2j",
|
|
6272
6290
|
"onboarding-checklist__button__icon": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon___ta8M6",
|
|
6273
6291
|
"onboarding-checklist__button__icon--open": "lc-OnboardingChecklist-module__onboarding-checklist__button__icon--open___Jnrn8"
|
|
6274
|
-
},
|
|
6292
|
+
}, re = "onboarding-checklist", qd = ({
|
|
6275
6293
|
activeItemId: e,
|
|
6276
6294
|
completedItemsIds: t,
|
|
6277
6295
|
title: r,
|
|
@@ -6283,14 +6301,14 @@ const Od = (e) => {
|
|
|
6283
6301
|
completionMessageData: d,
|
|
6284
6302
|
className: s
|
|
6285
6303
|
}) => {
|
|
6286
|
-
var
|
|
6304
|
+
var E;
|
|
6287
6305
|
const [i, m] = p.useState(c), [g, f] = p.useState(!c), [b, x] = p.useState(void 0), S = p.useRef(null), k = d.height || 96, y = () => {
|
|
6288
6306
|
f((C) => !C);
|
|
6289
6307
|
};
|
|
6290
6308
|
return p.useEffect(() => {
|
|
6291
|
-
const C = d.delay || 1500,
|
|
6292
|
-
if (c &&
|
|
6293
|
-
const w =
|
|
6309
|
+
const C = d.delay || 1500, I = S.current;
|
|
6310
|
+
if (c && I) {
|
|
6311
|
+
const w = I.offsetHeight;
|
|
6294
6312
|
x(w);
|
|
6295
6313
|
const $ = setTimeout(() => {
|
|
6296
6314
|
m(!0), f(!1);
|
|
@@ -6304,9 +6322,9 @@ const Od = (e) => {
|
|
|
6304
6322
|
{
|
|
6305
6323
|
ref: S,
|
|
6306
6324
|
className: u(
|
|
6307
|
-
|
|
6325
|
+
ae[re],
|
|
6308
6326
|
{
|
|
6309
|
-
[
|
|
6327
|
+
[ae[`${re}--complete`]]: i && !g
|
|
6310
6328
|
},
|
|
6311
6329
|
s
|
|
6312
6330
|
),
|
|
@@ -6314,14 +6332,14 @@ const Od = (e) => {
|
|
|
6314
6332
|
height: !i || g ? b : k
|
|
6315
6333
|
},
|
|
6316
6334
|
children: [
|
|
6317
|
-
g && /* @__PURE__ */ h(
|
|
6318
|
-
/* @__PURE__ */ h("div", { className:
|
|
6319
|
-
/* @__PURE__ */ h("div", { className:
|
|
6335
|
+
g && /* @__PURE__ */ h(J, { children: [
|
|
6336
|
+
/* @__PURE__ */ h("div", { className: ae[`${re}__column`], children: [
|
|
6337
|
+
/* @__PURE__ */ h("div", { className: ae[`${re}__header`], children: [
|
|
6320
6338
|
_ && /* @__PURE__ */ a(
|
|
6321
6339
|
D,
|
|
6322
6340
|
{
|
|
6323
6341
|
size: "lg",
|
|
6324
|
-
className:
|
|
6342
|
+
className: ae[`${re}__header__label`],
|
|
6325
6343
|
children: _
|
|
6326
6344
|
}
|
|
6327
6345
|
),
|
|
@@ -6329,12 +6347,12 @@ const Od = (e) => {
|
|
|
6329
6347
|
se,
|
|
6330
6348
|
{
|
|
6331
6349
|
size: "lg",
|
|
6332
|
-
className:
|
|
6350
|
+
className: ae[`${re}__header__title`],
|
|
6333
6351
|
children: r
|
|
6334
6352
|
}
|
|
6335
6353
|
)
|
|
6336
6354
|
] }),
|
|
6337
|
-
/* @__PURE__ */ a("div", { className:
|
|
6355
|
+
/* @__PURE__ */ a("div", { className: ae[`${re}__checklist`], children: o.map((C, I) => /* @__PURE__ */ a(
|
|
6338
6356
|
ci,
|
|
6339
6357
|
{
|
|
6340
6358
|
id: C.id,
|
|
@@ -6343,37 +6361,37 @@ const Od = (e) => {
|
|
|
6343
6361
|
titleHint: C.titleHint,
|
|
6344
6362
|
isActive: C.id === e,
|
|
6345
6363
|
isChecked: t.includes(C.id),
|
|
6346
|
-
isLastElement:
|
|
6364
|
+
isLastElement: I === o.length - 1,
|
|
6347
6365
|
onClick: n,
|
|
6348
6366
|
cta: C.cta
|
|
6349
6367
|
},
|
|
6350
|
-
|
|
6368
|
+
I
|
|
6351
6369
|
)) })
|
|
6352
6370
|
] }),
|
|
6353
6371
|
/* @__PURE__ */ h(
|
|
6354
6372
|
"div",
|
|
6355
6373
|
{
|
|
6356
6374
|
className: u(
|
|
6357
|
-
|
|
6358
|
-
|
|
6375
|
+
ae[`${re}__column`],
|
|
6376
|
+
ae[`${re}__column--right`],
|
|
6359
6377
|
{
|
|
6360
|
-
[
|
|
6378
|
+
[ae[`${re}__column--right--completed`]]: c
|
|
6361
6379
|
},
|
|
6362
6380
|
l
|
|
6363
6381
|
),
|
|
6364
6382
|
children: [
|
|
6365
|
-
!c && /* @__PURE__ */ a("div", { className:
|
|
6366
|
-
c && /* @__PURE__ */ a("div", { className:
|
|
6383
|
+
!c && /* @__PURE__ */ a("div", { className: ae[`${re}__placeholder`], children: (E = o.find((C) => C.id === e)) == null ? void 0 : E.placeholder }),
|
|
6384
|
+
c && /* @__PURE__ */ a("div", { className: ae[`${re}__placeholder`], children: d.placeholder })
|
|
6367
6385
|
]
|
|
6368
6386
|
}
|
|
6369
6387
|
)
|
|
6370
6388
|
] }),
|
|
6371
|
-
!g && /* @__PURE__ */ a(
|
|
6389
|
+
!g && /* @__PURE__ */ a(J, { children: /* @__PURE__ */ h("div", { className: ae[`${re}__complete`], children: [
|
|
6372
6390
|
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
6373
6391
|
F,
|
|
6374
6392
|
{
|
|
6375
6393
|
size: "large",
|
|
6376
|
-
className:
|
|
6394
|
+
className: ae[`${re}__complete__icon`],
|
|
6377
6395
|
source: _o
|
|
6378
6396
|
}
|
|
6379
6397
|
) }),
|
|
@@ -6382,7 +6400,7 @@ const Od = (e) => {
|
|
|
6382
6400
|
D,
|
|
6383
6401
|
{
|
|
6384
6402
|
size: "lg",
|
|
6385
|
-
className:
|
|
6403
|
+
className: ae[`${re}__complete__label`],
|
|
6386
6404
|
children: d.greetingText
|
|
6387
6405
|
}
|
|
6388
6406
|
),
|
|
@@ -6390,14 +6408,14 @@ const Od = (e) => {
|
|
|
6390
6408
|
se,
|
|
6391
6409
|
{
|
|
6392
6410
|
size: "sm",
|
|
6393
|
-
className:
|
|
6411
|
+
className: ae[`${re}__complete__title`],
|
|
6394
6412
|
children: d.title
|
|
6395
6413
|
}
|
|
6396
6414
|
)
|
|
6397
6415
|
] })
|
|
6398
6416
|
] }) }),
|
|
6399
6417
|
i && /* @__PURE__ */ a(
|
|
6400
|
-
|
|
6418
|
+
Y,
|
|
6401
6419
|
{
|
|
6402
6420
|
kind: g ? "float" : "text",
|
|
6403
6421
|
icon: /* @__PURE__ */ a(
|
|
@@ -6405,12 +6423,12 @@ const Od = (e) => {
|
|
|
6405
6423
|
{
|
|
6406
6424
|
source: Kt,
|
|
6407
6425
|
className: u(
|
|
6408
|
-
|
|
6409
|
-
g &&
|
|
6426
|
+
ae[`${re}__button__icon`],
|
|
6427
|
+
g && ae[`${re}__button__icon--open`]
|
|
6410
6428
|
)
|
|
6411
6429
|
}
|
|
6412
6430
|
),
|
|
6413
|
-
className:
|
|
6431
|
+
className: ae[`${re}__button`],
|
|
6414
6432
|
onClick: y,
|
|
6415
6433
|
"aria-expanded": g
|
|
6416
6434
|
}
|
|
@@ -6421,7 +6439,7 @@ const Od = (e) => {
|
|
|
6421
6439
|
}, ii = "lc-OverflowTooltipText-module__tooltipContent___M9T9h", si = "lc-OverflowTooltipText-module__text___JcdMZ", Uo = {
|
|
6422
6440
|
tooltipContent: ii,
|
|
6423
6441
|
text: si
|
|
6424
|
-
},
|
|
6442
|
+
}, jd = ({ text: e }) => {
|
|
6425
6443
|
const t = br(null), r = Tn(t), { isHovered: _, handleMouseOut: o, handleMouseOver: n } = Bn(r), l = /* @__PURE__ */ a(
|
|
6426
6444
|
"div",
|
|
6427
6445
|
{
|
|
@@ -6433,7 +6451,7 @@ const Od = (e) => {
|
|
|
6433
6451
|
}
|
|
6434
6452
|
);
|
|
6435
6453
|
return /* @__PURE__ */ a(
|
|
6436
|
-
|
|
6454
|
+
Ot,
|
|
6437
6455
|
{
|
|
6438
6456
|
kind: "invert",
|
|
6439
6457
|
isVisible: r && _,
|
|
@@ -6443,7 +6461,7 @@ const Od = (e) => {
|
|
|
6443
6461
|
);
|
|
6444
6462
|
}, di = "lc-Popover-module__popover___rvS3X", ui = {
|
|
6445
6463
|
popover: di
|
|
6446
|
-
},
|
|
6464
|
+
}, Qd = ({
|
|
6447
6465
|
triggerRenderer: e,
|
|
6448
6466
|
onClose: t,
|
|
6449
6467
|
onOpen: r,
|
|
@@ -6461,21 +6479,21 @@ const Od = (e) => {
|
|
|
6461
6479
|
floatingStrategy: b,
|
|
6462
6480
|
transitionOptions: x
|
|
6463
6481
|
}) => {
|
|
6464
|
-
const [S, k] = p.useState(i), y = Cr(),
|
|
6482
|
+
const [S, k] = p.useState(i), y = Cr(), E = Ha(), C = s !== void 0, I = C ? s : S, w = typeof _ == "string", $ = typeof e == "function", T = (K, be) => {
|
|
6465
6483
|
K ? r == null || r(be) : t == null || t(be), !C && k(K);
|
|
6466
|
-
}, { refs: P, context:
|
|
6467
|
-
nodeId:
|
|
6468
|
-
open:
|
|
6484
|
+
}, { refs: P, context: O, floatingStyles: N } = Ua({
|
|
6485
|
+
nodeId: E,
|
|
6486
|
+
open: I,
|
|
6469
6487
|
onOpenChange: T,
|
|
6470
6488
|
middleware: [za(d), wr(c), lo()],
|
|
6471
6489
|
placement: l,
|
|
6472
6490
|
strategy: b,
|
|
6473
6491
|
whileElementsMounted: Va
|
|
6474
|
-
}), A = Wa(
|
|
6492
|
+
}), A = Wa(O, f), M = Ka(O, v({
|
|
6475
6493
|
escapeKey: m
|
|
6476
|
-
}, g)), z =
|
|
6494
|
+
}, g)), z = Ya(O), { getReferenceProps: U, getFloatingProps: H } = Xa([
|
|
6477
6495
|
A,
|
|
6478
|
-
|
|
6496
|
+
M,
|
|
6479
6497
|
z
|
|
6480
6498
|
]), W = {
|
|
6481
6499
|
initial: ({ side: K }) => v({
|
|
@@ -6490,9 +6508,9 @@ const Od = (e) => {
|
|
|
6490
6508
|
marginLeft: -10
|
|
6491
6509
|
})
|
|
6492
6510
|
}, { isMounted: Ae, styles: Je } = yr(
|
|
6493
|
-
|
|
6511
|
+
O,
|
|
6494
6512
|
x || W
|
|
6495
|
-
), ze = u(ui.popover, o), ye = /* @__PURE__ */ h(
|
|
6513
|
+
), ze = u(ui.popover, o), ye = /* @__PURE__ */ h(J, { children: [
|
|
6496
6514
|
/* @__PURE__ */ a(
|
|
6497
6515
|
"div",
|
|
6498
6516
|
B(v({
|
|
@@ -6503,7 +6521,7 @@ const Od = (e) => {
|
|
|
6503
6521
|
children: $ ? e() : e
|
|
6504
6522
|
})
|
|
6505
6523
|
),
|
|
6506
|
-
/* @__PURE__ */ a(oa, { id:
|
|
6524
|
+
/* @__PURE__ */ a(oa, { id: E, children: Ae && /* @__PURE__ */ a(eo, { context: O, modal: !1, children: /* @__PURE__ */ a(
|
|
6507
6525
|
"div",
|
|
6508
6526
|
B(v({
|
|
6509
6527
|
className: ze,
|
|
@@ -6545,7 +6563,7 @@ const Od = (e) => {
|
|
|
6545
6563
|
[Ze["product-tile-wrapper__animated"]]: c
|
|
6546
6564
|
}),
|
|
6547
6565
|
children: [
|
|
6548
|
-
c && /* @__PURE__ */ h(
|
|
6566
|
+
c && /* @__PURE__ */ h(J, { children: [
|
|
6549
6567
|
/* @__PURE__ */ a(
|
|
6550
6568
|
"div",
|
|
6551
6569
|
{
|
|
@@ -6627,7 +6645,7 @@ const Od = (e) => {
|
|
|
6627
6645
|
onClick: f,
|
|
6628
6646
|
isActive: b = !1,
|
|
6629
6647
|
isDarkMode: x
|
|
6630
|
-
}) => /* @__PURE__ */ h(
|
|
6648
|
+
}) => /* @__PURE__ */ h(J, { children: [
|
|
6631
6649
|
d && /* @__PURE__ */ a("div", { className: _t[`${nt}__divider`] }),
|
|
6632
6650
|
/* @__PURE__ */ h(
|
|
6633
6651
|
"a",
|
|
@@ -6656,7 +6674,7 @@ const Od = (e) => {
|
|
|
6656
6674
|
/* @__PURE__ */ h(D, { as: "div", bold: !0, className: _t[`${nt}__name`], children: [
|
|
6657
6675
|
l,
|
|
6658
6676
|
i && /* @__PURE__ */ a(
|
|
6659
|
-
|
|
6677
|
+
Ot,
|
|
6660
6678
|
{
|
|
6661
6679
|
className: u({
|
|
6662
6680
|
[_t[`${nt}__tooltip-dark-shadow`]]: x
|
|
@@ -6664,7 +6682,7 @@ const Od = (e) => {
|
|
|
6664
6682
|
triggerRenderer: /* @__PURE__ */ a(
|
|
6665
6683
|
F,
|
|
6666
6684
|
{
|
|
6667
|
-
source:
|
|
6685
|
+
source: Oa,
|
|
6668
6686
|
className: _t[`${nt}__tooltip-icon`]
|
|
6669
6687
|
}
|
|
6670
6688
|
),
|
|
@@ -6673,7 +6691,7 @@ const Od = (e) => {
|
|
|
6673
6691
|
}
|
|
6674
6692
|
),
|
|
6675
6693
|
typeof m != "undefined" && /* @__PURE__ */ h(
|
|
6676
|
-
|
|
6694
|
+
Ot,
|
|
6677
6695
|
{
|
|
6678
6696
|
className: u(_t[`${nt}__trial-tooltip`], {
|
|
6679
6697
|
[_t[`${nt}__tooltip-dark-shadow`]]: x
|
|
@@ -6681,7 +6699,7 @@ const Od = (e) => {
|
|
|
6681
6699
|
triggerRenderer: /* @__PURE__ */ a(
|
|
6682
6700
|
F,
|
|
6683
6701
|
{
|
|
6684
|
-
source:
|
|
6702
|
+
source: Oa,
|
|
6685
6703
|
className: _t[`${nt}__tooltip-icon`]
|
|
6686
6704
|
}
|
|
6687
6705
|
),
|
|
@@ -6710,7 +6728,7 @@ const Od = (e) => {
|
|
|
6710
6728
|
"product-switcher__footer": "lc-ProductSwitcher-module__product-switcher__footer___YRPN9",
|
|
6711
6729
|
"product-switcher__footer-link": "lc-ProductSwitcher-module__product-switcher__footer-link___X0VOn",
|
|
6712
6730
|
"product-switcher__tooltip": "lc-ProductSwitcher-module__product-switcher__tooltip___kcVyp"
|
|
6713
|
-
}, Ca = "product-switcher",
|
|
6731
|
+
}, Ca = "product-switcher", Jd = ({
|
|
6714
6732
|
productOptions: e,
|
|
6715
6733
|
mainProductId: t,
|
|
6716
6734
|
openedOnInit: r = !1,
|
|
@@ -6725,7 +6743,7 @@ const Od = (e) => {
|
|
|
6725
6743
|
!1
|
|
6726
6744
|
), f = Cr(), b = Ha(), x = _ !== void 0, S = x ? _ : s, k = (H, W) => {
|
|
6727
6745
|
H ? n == null || n(W) : l == null || l(W), !x && i(H);
|
|
6728
|
-
}, { refs: y, context:
|
|
6746
|
+
}, { refs: y, context: E, floatingStyles: C } = Ua({
|
|
6729
6747
|
nodeId: b,
|
|
6730
6748
|
strategy: "fixed",
|
|
6731
6749
|
placement: "right-start",
|
|
@@ -6735,7 +6753,7 @@ const Od = (e) => {
|
|
|
6735
6753
|
},
|
|
6736
6754
|
middleware: [za({ mainAxis: 5 })],
|
|
6737
6755
|
whileElementsMounted: Va
|
|
6738
|
-
}),
|
|
6756
|
+
}), I = Wa(E), w = Ya(E), $ = Ka(E), { isMounted: T, styles: P } = yr(E, {
|
|
6739
6757
|
duration: 200,
|
|
6740
6758
|
common: {
|
|
6741
6759
|
transformOrigin: "left top"
|
|
@@ -6744,8 +6762,8 @@ const Od = (e) => {
|
|
|
6744
6762
|
opacity: 0,
|
|
6745
6763
|
transform: "scale(0.84) translateX(-22px)"
|
|
6746
6764
|
}
|
|
6747
|
-
}), { getReferenceProps:
|
|
6748
|
-
|
|
6765
|
+
}), { getReferenceProps: O, getFloatingProps: N } = Xa([
|
|
6766
|
+
I,
|
|
6749
6767
|
$,
|
|
6750
6768
|
w
|
|
6751
6769
|
]), A = e.find(
|
|
@@ -6753,14 +6771,14 @@ const Od = (e) => {
|
|
|
6753
6771
|
);
|
|
6754
6772
|
if (!A)
|
|
6755
6773
|
return null;
|
|
6756
|
-
const
|
|
6774
|
+
const M = (H, W) => {
|
|
6757
6775
|
W === t && H.preventDefault(), i(!1), c == null || c(W);
|
|
6758
6776
|
}, z = e.reduce(
|
|
6759
6777
|
(H, W) => H + (W.notificationCount || 0),
|
|
6760
6778
|
0
|
|
6761
|
-
), U = /* @__PURE__ */ h(
|
|
6762
|
-
/* @__PURE__ */ a("div", B(v({ ref: y.setReference },
|
|
6763
|
-
|
|
6779
|
+
), U = /* @__PURE__ */ h(J, { children: [
|
|
6780
|
+
/* @__PURE__ */ a("div", B(v({ ref: y.setReference }, O()), { children: /* @__PURE__ */ a(
|
|
6781
|
+
Ot,
|
|
6764
6782
|
{
|
|
6765
6783
|
isVisible: m,
|
|
6766
6784
|
onOpen: () => g(!0),
|
|
@@ -6808,7 +6826,7 @@ const Od = (e) => {
|
|
|
6808
6826
|
isDarkMode: o,
|
|
6809
6827
|
isActive: H.id === t,
|
|
6810
6828
|
product: H,
|
|
6811
|
-
onClick:
|
|
6829
|
+
onClick: M
|
|
6812
6830
|
},
|
|
6813
6831
|
H.id
|
|
6814
6832
|
)) }),
|
|
@@ -6843,7 +6861,7 @@ const Od = (e) => {
|
|
|
6843
6861
|
{
|
|
6844
6862
|
id: "livechat",
|
|
6845
6863
|
name: "LiveChat",
|
|
6846
|
-
icon:
|
|
6864
|
+
icon: Y_,
|
|
6847
6865
|
backgroundColors: {
|
|
6848
6866
|
main: "var(--products-livechat)",
|
|
6849
6867
|
second: "var(--products-helpdesk)",
|
|
@@ -6854,7 +6872,7 @@ const Od = (e) => {
|
|
|
6854
6872
|
{
|
|
6855
6873
|
id: "chatbot",
|
|
6856
6874
|
name: "ChatBot",
|
|
6857
|
-
icon:
|
|
6875
|
+
icon: X_,
|
|
6858
6876
|
backgroundColors: {
|
|
6859
6877
|
main: "var(--products-chatbot)",
|
|
6860
6878
|
second: "var(--products-livechat)",
|
|
@@ -7052,7 +7070,7 @@ const Od = (e) => {
|
|
|
7052
7070
|
return l ? `${c}&utm_source=${l}&utm_medium=referral&utm_campaign=productswitcher` : c;
|
|
7053
7071
|
}, ki = (e) => {
|
|
7054
7072
|
const t = new Date(e), r = /* @__PURE__ */ new Date();
|
|
7055
|
-
return
|
|
7073
|
+
return $n(t) ? 0 : Zo(t, r);
|
|
7056
7074
|
}, Ci = (e, t) => bi.includes(e) || t.some(
|
|
7057
7075
|
(r) => r.product === mo[e]
|
|
7058
7076
|
), wi = (e, t, r, _, o, n) => {
|
|
@@ -7089,7 +7107,7 @@ const Od = (e) => {
|
|
|
7089
7107
|
(o) => o.product === mo[t]
|
|
7090
7108
|
);
|
|
7091
7109
|
return _ == null ? void 0 : _.redirectUri.replace("https://", "");
|
|
7092
|
-
},
|
|
7110
|
+
}, eu = ({
|
|
7093
7111
|
env: e = "prod",
|
|
7094
7112
|
installedProducts: t,
|
|
7095
7113
|
subscriptions: r,
|
|
@@ -7206,7 +7224,7 @@ const wa = {
|
|
|
7206
7224
|
"progress-bar--normal": "lc-ProgressBar-module__progress-bar--normal___WboRI",
|
|
7207
7225
|
"progress-bar__indicator--success": "lc-ProgressBar-module__progress-bar__indicator--success___MHAlN",
|
|
7208
7226
|
"progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___sjEAI"
|
|
7209
|
-
}, ir = "progress-bar",
|
|
7227
|
+
}, ir = "progress-bar", Ei = p.forwardRef(
|
|
7210
7228
|
(l, n) => {
|
|
7211
7229
|
var c = l, {
|
|
7212
7230
|
status: e = "normal",
|
|
@@ -7256,7 +7274,7 @@ const wa = {
|
|
|
7256
7274
|
"promo-banner--small": "lc-PromoBanner-module__promo-banner--small___8dqnJ",
|
|
7257
7275
|
"promo-banner--large": "lc-PromoBanner-module__promo-banner--large___GDbja",
|
|
7258
7276
|
"promo-banner__close-icon": "lc-PromoBanner-module__promo-banner__close-icon___rt1kN"
|
|
7259
|
-
},
|
|
7277
|
+
}, Ii = 400, Bi = 800, Ti = 500, ct = "promo-banner", tu = ({
|
|
7260
7278
|
className: e,
|
|
7261
7279
|
buttonText: t,
|
|
7262
7280
|
children: r,
|
|
@@ -7278,7 +7296,7 @@ const wa = {
|
|
|
7278
7296
|
e
|
|
7279
7297
|
);
|
|
7280
7298
|
p.useEffect(() => {
|
|
7281
|
-
const x = () => i.current && i.current.offsetWidth <=
|
|
7299
|
+
const x = () => i.current && i.current.offsetWidth <= Ii ? g("small") : i.current && i.current.offsetWidth >= Bi ? g("large") : g("medium"), S = no(
|
|
7282
7300
|
x,
|
|
7283
7301
|
Ti
|
|
7284
7302
|
);
|
|
@@ -7288,7 +7306,7 @@ const wa = {
|
|
|
7288
7306
|
}, []);
|
|
7289
7307
|
const b = /* @__PURE__ */ h("div", { className: lt[`${ct}__footer`], children: [
|
|
7290
7308
|
t && /* @__PURE__ */ a(
|
|
7291
|
-
|
|
7309
|
+
Y,
|
|
7292
7310
|
{
|
|
7293
7311
|
kind: "primary",
|
|
7294
7312
|
size: "compact",
|
|
@@ -7297,7 +7315,7 @@ const wa = {
|
|
|
7297
7315
|
children: t
|
|
7298
7316
|
}
|
|
7299
7317
|
),
|
|
7300
|
-
l && /* @__PURE__ */ a(
|
|
7318
|
+
l && /* @__PURE__ */ a(Y, { size: "compact", kind: "text", onClick: s, children: l })
|
|
7301
7319
|
] });
|
|
7302
7320
|
return /* @__PURE__ */ h("div", { ref: i, className: f, children: [
|
|
7303
7321
|
/* @__PURE__ */ h("div", { className: lt[`${ct}__content`], children: [
|
|
@@ -7330,7 +7348,7 @@ const wa = {
|
|
|
7330
7348
|
"promo-banner-v2__close__btn": "lc-PromoBannerV2-module__promo-banner-v2__close__btn___23Qui",
|
|
7331
7349
|
"promo-banner-v2--dark": "lc-PromoBannerV2-module__promo-banner-v2--dark___pmXpS",
|
|
7332
7350
|
"promo-banner-v2--vertical": "lc-PromoBannerV2-module__promo-banner-v2--vertical___hXlPD"
|
|
7333
|
-
}, bt = "promo-banner-v2",
|
|
7351
|
+
}, bt = "promo-banner-v2", au = ({
|
|
7334
7352
|
children: e,
|
|
7335
7353
|
className: t,
|
|
7336
7354
|
additionalContent: r,
|
|
@@ -7365,7 +7383,7 @@ const wa = {
|
|
|
7365
7383
|
e,
|
|
7366
7384
|
(_ || o) && /* @__PURE__ */ h("div", { className: pt[`${bt}__content__cta`], children: [
|
|
7367
7385
|
_ && /* @__PURE__ */ a(
|
|
7368
|
-
|
|
7386
|
+
Y,
|
|
7369
7387
|
B(v({}, _), {
|
|
7370
7388
|
kind: (_ == null ? void 0 : _.kind) || "high-contrast",
|
|
7371
7389
|
onClick: _.handleClick,
|
|
@@ -7373,7 +7391,7 @@ const wa = {
|
|
|
7373
7391
|
})
|
|
7374
7392
|
),
|
|
7375
7393
|
o && /* @__PURE__ */ a(
|
|
7376
|
-
|
|
7394
|
+
Y,
|
|
7377
7395
|
B(v({}, o), {
|
|
7378
7396
|
kind: (o == null ? void 0 : o.kind) || "text",
|
|
7379
7397
|
onClick: o.handleClick,
|
|
@@ -7400,7 +7418,7 @@ const wa = {
|
|
|
7400
7418
|
}
|
|
7401
7419
|
),
|
|
7402
7420
|
d && /* @__PURE__ */ a("div", { className: pt[`${bt}__close`], children: /* @__PURE__ */ a(
|
|
7403
|
-
|
|
7421
|
+
Y,
|
|
7404
7422
|
{
|
|
7405
7423
|
className: pt[`${bt}__close__btn`],
|
|
7406
7424
|
onClick: d,
|
|
@@ -7449,7 +7467,7 @@ const wa = {
|
|
|
7449
7467
|
r && /* @__PURE__ */ a(Nr, { className: vt[`${kt}__helper`], children: r })
|
|
7450
7468
|
] });
|
|
7451
7469
|
}
|
|
7452
|
-
),
|
|
7470
|
+
), Ee = {
|
|
7453
7471
|
"search-input": "lc-SearchInput-module__search-input___3J4w9",
|
|
7454
7472
|
"search-input--compact": "lc-SearchInput-module__search-input--compact___4hBLm",
|
|
7455
7473
|
"search-input--medium": "lc-SearchInput-module__search-input--medium___c3OEc",
|
|
@@ -7497,20 +7515,20 @@ const wa = {
|
|
|
7497
7515
|
]);
|
|
7498
7516
|
const f = p.useRef(null);
|
|
7499
7517
|
p.useImperativeHandle(i, () => f.current, [i]);
|
|
7500
|
-
const [b, x] = p.useState(!0), [S, k] = p.useState(!1), y = !!n && !t && !r,
|
|
7518
|
+
const [b, x] = p.useState(!0), [S, k] = p.useState(!1), y = !!n && !t && !r, E = e && !b && "true", C = u(
|
|
7501
7519
|
l,
|
|
7502
|
-
|
|
7503
|
-
|
|
7504
|
-
S &&
|
|
7505
|
-
t &&
|
|
7506
|
-
e &&
|
|
7507
|
-
e &&
|
|
7508
|
-
!b &&
|
|
7520
|
+
Ee[qe],
|
|
7521
|
+
Ee[`${qe}--${o}`],
|
|
7522
|
+
S && Ee[`${qe}--focused`],
|
|
7523
|
+
t && Ee[`${qe}--disabled`],
|
|
7524
|
+
e && Ee[`${qe}--collapsable`],
|
|
7525
|
+
e && Ee[`${qe}--collapsable--${o}`],
|
|
7526
|
+
!b && Ee[`${qe}--collapsable--open`]
|
|
7509
7527
|
);
|
|
7510
7528
|
p.useEffect(() => {
|
|
7511
7529
|
e && n && x(!1);
|
|
7512
7530
|
}, [e, n]);
|
|
7513
|
-
const
|
|
7531
|
+
const I = (N) => {
|
|
7514
7532
|
const A = N.currentTarget.value;
|
|
7515
7533
|
d(A);
|
|
7516
7534
|
}, w = () => {
|
|
@@ -7521,13 +7539,13 @@ const wa = {
|
|
|
7521
7539
|
e && x(!1), k(!0);
|
|
7522
7540
|
}, P = () => {
|
|
7523
7541
|
e && !n && x(!0), k(!1);
|
|
7524
|
-
},
|
|
7542
|
+
}, O = (N) => {
|
|
7525
7543
|
N.key === we.enter && (N.preventDefault(), d(n));
|
|
7526
7544
|
};
|
|
7527
7545
|
return /* @__PURE__ */ h(
|
|
7528
7546
|
"div",
|
|
7529
7547
|
{
|
|
7530
|
-
"aria-expanded":
|
|
7548
|
+
"aria-expanded": E,
|
|
7531
7549
|
role: "search",
|
|
7532
7550
|
className: C,
|
|
7533
7551
|
onClick: $,
|
|
@@ -7536,8 +7554,8 @@ const wa = {
|
|
|
7536
7554
|
F,
|
|
7537
7555
|
{
|
|
7538
7556
|
className: u(
|
|
7539
|
-
|
|
7540
|
-
|
|
7557
|
+
Ee[`${qe}__search-icon`],
|
|
7558
|
+
Ee[`${qe}__search-icon--${o}`]
|
|
7541
7559
|
),
|
|
7542
7560
|
source: en,
|
|
7543
7561
|
disabled: t,
|
|
@@ -7549,9 +7567,9 @@ const wa = {
|
|
|
7549
7567
|
{
|
|
7550
7568
|
as: "div",
|
|
7551
7569
|
className: u(
|
|
7552
|
-
|
|
7553
|
-
|
|
7554
|
-
c &&
|
|
7570
|
+
Ee[Wr],
|
|
7571
|
+
Ee[`${Wr}--${o}`],
|
|
7572
|
+
c && Ee[`${Wr}--crop`]
|
|
7555
7573
|
),
|
|
7556
7574
|
children: /* @__PURE__ */ a(
|
|
7557
7575
|
"input",
|
|
@@ -7561,28 +7579,28 @@ const wa = {
|
|
|
7561
7579
|
type: "text",
|
|
7562
7580
|
value: n,
|
|
7563
7581
|
placeholder: _,
|
|
7564
|
-
onChange:
|
|
7582
|
+
onChange: I,
|
|
7565
7583
|
onBlur: P,
|
|
7566
7584
|
onFocus: T,
|
|
7567
|
-
onKeyDown:
|
|
7585
|
+
onKeyDown: O,
|
|
7568
7586
|
disabled: t
|
|
7569
7587
|
}, s)
|
|
7570
7588
|
)
|
|
7571
7589
|
}
|
|
7572
7590
|
),
|
|
7573
7591
|
y && /* @__PURE__ */ a(
|
|
7574
|
-
|
|
7592
|
+
Y,
|
|
7575
7593
|
{
|
|
7576
7594
|
"aria-label": "Clear search",
|
|
7577
7595
|
title: "Clear search",
|
|
7578
|
-
className:
|
|
7596
|
+
className: Ee[`${qe}__clear-icon`],
|
|
7579
7597
|
onClick: w,
|
|
7580
7598
|
icon: /* @__PURE__ */ a(F, { source: Qe, kind: "primary" }),
|
|
7581
7599
|
kind: "text",
|
|
7582
7600
|
size: "compact"
|
|
7583
7601
|
}
|
|
7584
7602
|
),
|
|
7585
|
-
r && /* @__PURE__ */ a("div", { className:
|
|
7603
|
+
r && /* @__PURE__ */ a("div", { className: Ee[`${qe}__loader`], children: /* @__PURE__ */ a(so, { size: "small" }) })
|
|
7586
7604
|
]
|
|
7587
7605
|
}
|
|
7588
7606
|
);
|
|
@@ -7622,7 +7640,7 @@ const $a = {
|
|
|
7622
7640
|
[$a[`${Na}--selected`]]: o
|
|
7623
7641
|
},
|
|
7624
7642
|
t
|
|
7625
|
-
), { handleInteractiveClick: m } =
|
|
7643
|
+
), { handleInteractiveClick: m } = In({ onClick: n });
|
|
7626
7644
|
return /* @__PURE__ */ h(
|
|
7627
7645
|
"div",
|
|
7628
7646
|
B(v({
|
|
@@ -7656,7 +7674,7 @@ const $a = {
|
|
|
7656
7674
|
"thumbnail-selectable-card__icon": "lc-ThumbnailSelectableCard-module__thumbnail-selectable-card__icon___GRN1c",
|
|
7657
7675
|
"thumbnail-selectable-card__content": "lc-ThumbnailSelectableCard-module__thumbnail-selectable-card__content___-O6lf",
|
|
7658
7676
|
"thumbnail-selectable-card__content__description": "lc-ThumbnailSelectableCard-module__thumbnail-selectable-card__content__description___b7-vQ"
|
|
7659
|
-
}, xa = "thumbnail-selectable-card",
|
|
7677
|
+
}, xa = "thumbnail-selectable-card", ru = (l) => {
|
|
7660
7678
|
var c = l, {
|
|
7661
7679
|
label: e,
|
|
7662
7680
|
description: t,
|
|
@@ -7676,7 +7694,7 @@ const $a = {
|
|
|
7676
7694
|
role: "presentation",
|
|
7677
7695
|
className: u(Sa[xa], o),
|
|
7678
7696
|
children: [
|
|
7679
|
-
!_ && /* @__PURE__ */ h(
|
|
7697
|
+
!_ && /* @__PURE__ */ h(J, { children: [
|
|
7680
7698
|
r && /* @__PURE__ */ a("div", { className: Sa[`${xa}__icon`], children: r }),
|
|
7681
7699
|
/* @__PURE__ */ h("div", { className: Sa[`${xa}__content`], children: [
|
|
7682
7700
|
/* @__PURE__ */ a(D, { as: "span", className: Sa[`${xa}__content__label`], children: e }),
|
|
@@ -7699,7 +7717,7 @@ const $a = {
|
|
|
7699
7717
|
"gallery-selectable-card": "lc-GallerySelectableCard-module__gallery-selectable-card___z-d6f",
|
|
7700
7718
|
"gallery-selectable-card--with-label": "lc-GallerySelectableCard-module__gallery-selectable-card--with-label___cXRfx",
|
|
7701
7719
|
"gallery-selectable-card__label": "lc-GallerySelectableCard-module__gallery-selectable-card__label___XTehc"
|
|
7702
|
-
},
|
|
7720
|
+
}, Yr = "gallery-selectable-card", ou = (l) => {
|
|
7703
7721
|
var c = l, {
|
|
7704
7722
|
label: e,
|
|
7705
7723
|
icon: t,
|
|
@@ -7717,18 +7735,18 @@ const $a = {
|
|
|
7717
7735
|
po,
|
|
7718
7736
|
B(v({}, n), {
|
|
7719
7737
|
className: u(o, {
|
|
7720
|
-
[Kr[`${
|
|
7738
|
+
[Kr[`${Yr}--with-label`]]: e
|
|
7721
7739
|
}),
|
|
7722
7740
|
kind: "gallery",
|
|
7723
7741
|
children: /* @__PURE__ */ h(
|
|
7724
7742
|
"div",
|
|
7725
7743
|
{
|
|
7726
7744
|
role: "presentation",
|
|
7727
|
-
className: u(Kr[
|
|
7745
|
+
className: u(Kr[Yr], _),
|
|
7728
7746
|
children: [
|
|
7729
7747
|
t && !r && t,
|
|
7730
7748
|
r,
|
|
7731
|
-
e && /* @__PURE__ */ a(D, { as: "span", className: Kr[`${
|
|
7749
|
+
e && /* @__PURE__ */ a(D, { as: "span", className: Kr[`${Yr}__label`], children: e })
|
|
7732
7750
|
]
|
|
7733
7751
|
}
|
|
7734
7752
|
)
|
|
@@ -7737,7 +7755,7 @@ const $a = {
|
|
|
7737
7755
|
}, Pi = {
|
|
7738
7756
|
"gallery-selectable-card": "lc-InteractiveSelectableCard-module__gallery-selectable-card___FkMyM",
|
|
7739
7757
|
"gallery-selectable-card__label": "lc-InteractiveSelectableCard-module__gallery-selectable-card__label___2fKRM"
|
|
7740
|
-
}, Fi = "interactive-selectable-card",
|
|
7758
|
+
}, Fi = "interactive-selectable-card", _u = (_) => {
|
|
7741
7759
|
var o = _, {
|
|
7742
7760
|
children: e,
|
|
7743
7761
|
contentClassName: t
|
|
@@ -7757,19 +7775,19 @@ const $a = {
|
|
|
7757
7775
|
"grid-wrapper": "lc-InteractiveGrid-module__grid-wrapper___FnLIP",
|
|
7758
7776
|
"grid-row": "lc-InteractiveGrid-module__grid-row___YsMbS",
|
|
7759
7777
|
"grid-col": "lc-InteractiveGrid-module__grid-col___jDoA6"
|
|
7760
|
-
}, Ri = "grid-wrapper",
|
|
7778
|
+
}, Ri = "grid-wrapper", nu = ({
|
|
7761
7779
|
children: e,
|
|
7762
7780
|
className: t
|
|
7763
|
-
}) => /* @__PURE__ */ a("div", { className: `${w_[Ri]} ${t || ""}`, children: e }), y_ = ({ children: e, className: t, baseClass: r, role: _ = "presentation" }) => /* @__PURE__ */ a("div", { role: _, className: `${w_[r]} ${t || ""}`, children: e }),
|
|
7781
|
+
}) => /* @__PURE__ */ a("div", { className: `${w_[Ri]} ${t || ""}`, children: e }), y_ = ({ children: e, className: t, baseClass: r, role: _ = "presentation" }) => /* @__PURE__ */ a("div", { role: _, className: `${w_[r]} ${t || ""}`, children: e }), lu = (e) => /* @__PURE__ */ a(y_, B(v({}, e), { baseClass: "grid-row" })), cu = (e) => /* @__PURE__ */ a(y_, B(v({}, e), { baseClass: "grid-col" })), Oi = "lc-Skeleton-module__loading___fc1WK", Vt = {
|
|
7764
7782
|
"skeleton-wrapper": "lc-Skeleton-module__skeleton-wrapper___5N-1n",
|
|
7765
7783
|
"skeleton-wrapper--vertical": "lc-Skeleton-module__skeleton-wrapper--vertical___0sU7e",
|
|
7766
7784
|
"skeleton-avatar": "lc-Skeleton-module__skeleton-avatar___7-CDQ",
|
|
7767
7785
|
"skeleton-avatar--square": "lc-Skeleton-module__skeleton-avatar--square___NlK0K",
|
|
7768
7786
|
"skeleton-avatar--animated": "lc-Skeleton-module__skeleton-avatar--animated___iFXkb",
|
|
7769
|
-
loading:
|
|
7787
|
+
loading: Oi,
|
|
7770
7788
|
"skeleton-text": "lc-Skeleton-module__skeleton-text___WnwUw",
|
|
7771
7789
|
"skeleton-text--animated": "lc-Skeleton-module__skeleton-text--animated___Bnr3Z"
|
|
7772
|
-
}, zo = "skeleton-wrapper",
|
|
7790
|
+
}, zo = "skeleton-wrapper", iu = (o) => {
|
|
7773
7791
|
var n = o, { children: e, vertical: t, animated: r } = n, _ = R(n, ["children", "vertical", "animated"]);
|
|
7774
7792
|
const l = p.Children.map(e, (c) => p.isValidElement(c) ? p.cloneElement(c, {
|
|
7775
7793
|
animated: r
|
|
@@ -7784,23 +7802,23 @@ const $a = {
|
|
|
7784
7802
|
children: l
|
|
7785
7803
|
})
|
|
7786
7804
|
);
|
|
7787
|
-
},
|
|
7805
|
+
}, Xr = "skeleton-avatar", su = ({
|
|
7788
7806
|
square: e = !1,
|
|
7789
7807
|
size: t = 16,
|
|
7790
7808
|
animated: r
|
|
7791
7809
|
}) => /* @__PURE__ */ a(
|
|
7792
7810
|
"div",
|
|
7793
7811
|
{
|
|
7794
|
-
className: u(Vt[`${
|
|
7795
|
-
[Vt[`${
|
|
7796
|
-
[Vt[`${
|
|
7812
|
+
className: u(Vt[`${Xr}`], {
|
|
7813
|
+
[Vt[`${Xr}--square`]]: e,
|
|
7814
|
+
[Vt[`${Xr}--animated`]]: r
|
|
7797
7815
|
}),
|
|
7798
7816
|
style: {
|
|
7799
7817
|
width: t,
|
|
7800
7818
|
height: t
|
|
7801
7819
|
}
|
|
7802
7820
|
}
|
|
7803
|
-
), Vo = "skeleton-text",
|
|
7821
|
+
), Vo = "skeleton-text", du = ({
|
|
7804
7822
|
height: e = 13,
|
|
7805
7823
|
width: t,
|
|
7806
7824
|
animated: r
|
|
@@ -7829,7 +7847,7 @@ const $a = {
|
|
|
7829
7847
|
"status-badge--offline": "lc-StatusBadge-module__status-badge--offline___90IJN",
|
|
7830
7848
|
"status-badge--accept": "lc-StatusBadge-module__status-badge--accept___UvRWg",
|
|
7831
7849
|
"status-badge--not-accept": "lc-StatusBadge-module__status-badge--not-accept___bhNkL"
|
|
7832
|
-
}, qr = "status-badge",
|
|
7850
|
+
}, qr = "status-badge", uu = (o) => {
|
|
7833
7851
|
var n = o, {
|
|
7834
7852
|
className: e,
|
|
7835
7853
|
kind: t = "offline",
|
|
@@ -7846,7 +7864,7 @@ const $a = {
|
|
|
7846
7864
|
e
|
|
7847
7865
|
);
|
|
7848
7866
|
return /* @__PURE__ */ a("span", v({ className: l }, _));
|
|
7849
|
-
},
|
|
7867
|
+
}, Mi = "lc-Switch-module__switch__input___-bYMW", Li = "lc-Switch-module__switch__container___dYb8a", Gi = "lc-Switch-module__switch__track___3lNXx", Hi = "lc-Switch-module__switch__slider___NmDHK", Ui = "lc-Switch-module__switch__loader___Pbo1Q", zi = "lc-Switch-module__switch__icon___tCZTq", ce = {
|
|
7850
7868
|
switch: "lc-Switch-module__switch___PKzsW",
|
|
7851
7869
|
"switch__track--enabled": "lc-Switch-module__switch__track--enabled___Dwbmx",
|
|
7852
7870
|
"switch__track--on": "lc-Switch-module__switch__track--on___7vdEj",
|
|
@@ -7855,7 +7873,7 @@ const $a = {
|
|
|
7855
7873
|
"switch--compact": "lc-Switch-module__switch--compact___T4bhh",
|
|
7856
7874
|
"switch--medium": "lc-Switch-module__switch--medium___uruMu",
|
|
7857
7875
|
"switch--focused": "lc-Switch-module__switch--focused___XADLL",
|
|
7858
|
-
switch__input:
|
|
7876
|
+
switch__input: Mi,
|
|
7859
7877
|
"switch__input--disabled": "lc-Switch-module__switch__input--disabled___c1vVD",
|
|
7860
7878
|
switch__container: Li,
|
|
7861
7879
|
switch__track: Gi,
|
|
@@ -7877,7 +7895,7 @@ const $a = {
|
|
|
7877
7895
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___XpfaO",
|
|
7878
7896
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___NDgeg",
|
|
7879
7897
|
switch__icon: zi
|
|
7880
|
-
}, ne = "switch",
|
|
7898
|
+
}, ne = "switch", mu = (m) => {
|
|
7881
7899
|
var g = m, {
|
|
7882
7900
|
className: e = "",
|
|
7883
7901
|
defaultOn: t = !1,
|
|
@@ -7903,14 +7921,14 @@ const $a = {
|
|
|
7903
7921
|
]);
|
|
7904
7922
|
const f = o !== void 0, [b, x] = p.useState(
|
|
7905
7923
|
() => f ? o : t
|
|
7906
|
-
), [S, k] = p.useState(!1), y = f ? o : b,
|
|
7924
|
+
), [S, k] = p.useState(!1), y = f ? o : b, E = c === "loading", C = c === "locked", I = l === "large" ? "small" : "xsmall", w = y ? "on" : "off", $ = r || E || C, T = $ ? "disabled" : "enabled", P = u(
|
|
7907
7925
|
ce[ne],
|
|
7908
7926
|
ce[`${ne}--${l}`],
|
|
7909
7927
|
{
|
|
7910
7928
|
[ce[`${ne}--focused`]]: S
|
|
7911
7929
|
},
|
|
7912
7930
|
e
|
|
7913
|
-
),
|
|
7931
|
+
), O = (N) => {
|
|
7914
7932
|
n == null || n(N, !y), f || (N.stopPropagation(), x((A) => !A));
|
|
7915
7933
|
};
|
|
7916
7934
|
return /* @__PURE__ */ h("span", { className: P, children: [
|
|
@@ -7922,7 +7940,7 @@ const $a = {
|
|
|
7922
7940
|
ce[`${ne}__input`],
|
|
7923
7941
|
ce[`${ne}__input--${T}`]
|
|
7924
7942
|
),
|
|
7925
|
-
onChange:
|
|
7943
|
+
onChange: O,
|
|
7926
7944
|
checked: y,
|
|
7927
7945
|
name: _,
|
|
7928
7946
|
ref: d,
|
|
@@ -7960,7 +7978,7 @@ const $a = {
|
|
|
7960
7978
|
ce[`${ne}__slider--${l}--${w}`]
|
|
7961
7979
|
),
|
|
7962
7980
|
children: [
|
|
7963
|
-
|
|
7981
|
+
E && /* @__PURE__ */ a(
|
|
7964
7982
|
so,
|
|
7965
7983
|
{
|
|
7966
7984
|
"data-testid": "switch-loader",
|
|
@@ -7975,7 +7993,7 @@ const $a = {
|
|
|
7975
7993
|
{
|
|
7976
7994
|
className: ce[`${ne}__icon`],
|
|
7977
7995
|
"data-testid": "lock-icon",
|
|
7978
|
-
size:
|
|
7996
|
+
size: I,
|
|
7979
7997
|
source: tn,
|
|
7980
7998
|
kind: "primary"
|
|
7981
7999
|
}
|
|
@@ -7987,17 +8005,17 @@ const $a = {
|
|
|
7987
8005
|
}
|
|
7988
8006
|
)
|
|
7989
8007
|
] });
|
|
7990
|
-
}, Vi = "lc-Tab-module__tab___ShyYn", Wi = "lc-Tab-module__tab__count___7QKoz", Ki = "lc-Tab-module__tab__icon___eCD-d",
|
|
8008
|
+
}, Vi = "lc-Tab-module__tab___ShyYn", Wi = "lc-Tab-module__tab__count___7QKoz", Ki = "lc-Tab-module__tab__icon___eCD-d", Yi = "lc-Tab-module__tab__badge___nwfVJ", Ut = {
|
|
7991
8009
|
tab: Vi,
|
|
7992
8010
|
tab__count: Wi,
|
|
7993
8011
|
"tab--compact": "lc-Tab-module__tab--compact___yetP5",
|
|
7994
8012
|
"tab--medium": "lc-Tab-module__tab--medium___KhPsI",
|
|
7995
8013
|
"tab--large": "lc-Tab-module__tab--large___3GE8k",
|
|
7996
8014
|
tab__icon: Ki,
|
|
7997
|
-
tab__badge:
|
|
8015
|
+
tab__badge: Yi,
|
|
7998
8016
|
"tab--selected": "lc-Tab-module__tab--selected___vsPhT",
|
|
7999
8017
|
"tab--disabled": "lc-Tab-module__tab--disabled___JPMHC"
|
|
8000
|
-
}, zt = "tab",
|
|
8018
|
+
}, zt = "tab", pu = (d) => {
|
|
8001
8019
|
var s = d, {
|
|
8002
8020
|
children: e,
|
|
8003
8021
|
className: t,
|
|
@@ -8050,10 +8068,10 @@ const $a = {
|
|
|
8050
8068
|
]
|
|
8051
8069
|
})
|
|
8052
8070
|
);
|
|
8053
|
-
},
|
|
8054
|
-
tabs:
|
|
8071
|
+
}, Xi = "lc-TabsWrapper-module__tabs___rJby-", Zi = "lc-TabsWrapper-module__tabs__list___ylJuP", $_ = {
|
|
8072
|
+
tabs: Xi,
|
|
8055
8073
|
tabs__list: Zi
|
|
8056
|
-
}, N_ = "tabs",
|
|
8074
|
+
}, N_ = "tabs", gu = ({ className: e, children: t }) => /* @__PURE__ */ a("div", { className: u($_[N_], e), children: t }), hu = ({ className: e, children: t }) => /* @__PURE__ */ a("div", { role: "tablist", className: u($_[`${N_}__list`], e), children: t }), qi = ({
|
|
8057
8075
|
data: e,
|
|
8058
8076
|
getRowId: t,
|
|
8059
8077
|
selectedRows: r,
|
|
@@ -8078,10 +8096,10 @@ const $a = {
|
|
|
8078
8096
|
toggleSelectAll: l,
|
|
8079
8097
|
selectedCount: r == null ? void 0 : r.size
|
|
8080
8098
|
};
|
|
8081
|
-
}, ji =
|
|
8082
|
-
row:
|
|
8083
|
-
table__header:
|
|
8084
|
-
},
|
|
8099
|
+
}, ji = "lc-TableRow-module__row___NrIRP", Qi = "lc-TableRow-module__table__header___eVCSg", Ji = {
|
|
8100
|
+
row: ji,
|
|
8101
|
+
table__header: Qi
|
|
8102
|
+
}, es = "row", ts = ({
|
|
8085
8103
|
row: e,
|
|
8086
8104
|
columns: t,
|
|
8087
8105
|
columnWidths: r,
|
|
@@ -8089,7 +8107,7 @@ const $a = {
|
|
|
8089
8107
|
isSelected: o,
|
|
8090
8108
|
toggleRowSelection: n,
|
|
8091
8109
|
rowId: l
|
|
8092
|
-
}) => /* @__PURE__ */ h("tr", { className: es
|
|
8110
|
+
}) => /* @__PURE__ */ h("tr", { className: Ji[es], children: [
|
|
8093
8111
|
_ && /* @__PURE__ */ a("td", { role: "cell", "aria-selected": o(l), children: /* @__PURE__ */ a(
|
|
8094
8112
|
Sr,
|
|
8095
8113
|
{
|
|
@@ -8101,10 +8119,7 @@ const $a = {
|
|
|
8101
8119
|
"td",
|
|
8102
8120
|
{
|
|
8103
8121
|
style: {
|
|
8104
|
-
width:
|
|
8105
|
-
"100px",
|
|
8106
|
-
r[d] ? `${r[d]}px` : "auto"
|
|
8107
|
-
)
|
|
8122
|
+
width: r[d] ? `${r[d]}px` : "auto"
|
|
8108
8123
|
},
|
|
8109
8124
|
role: "cell",
|
|
8110
8125
|
"data-column": String(c.key),
|
|
@@ -8112,7 +8127,7 @@ const $a = {
|
|
|
8112
8127
|
},
|
|
8113
8128
|
String(c.key)
|
|
8114
8129
|
))
|
|
8115
|
-
] }),
|
|
8130
|
+
] }), as = ({
|
|
8116
8131
|
data: e,
|
|
8117
8132
|
columns: t,
|
|
8118
8133
|
getRowId: r,
|
|
@@ -8123,7 +8138,7 @@ const $a = {
|
|
|
8123
8138
|
}) => /* @__PURE__ */ a("tbody", { role: "rowgroup", children: e.map((c) => {
|
|
8124
8139
|
const d = r(c);
|
|
8125
8140
|
return /* @__PURE__ */ a(
|
|
8126
|
-
|
|
8141
|
+
ts,
|
|
8127
8142
|
{
|
|
8128
8143
|
row: c,
|
|
8129
8144
|
columns: t,
|
|
@@ -8137,25 +8152,25 @@ const $a = {
|
|
|
8137
8152
|
);
|
|
8138
8153
|
}) });
|
|
8139
8154
|
var Te = /* @__PURE__ */ ((e) => (e.Ascending = "asc", e.Descending = "desc", e.None = "none", e))(Te || {});
|
|
8140
|
-
const
|
|
8141
|
-
header:
|
|
8142
|
-
header__cell:
|
|
8155
|
+
const rs = "lc-TableHeader-module__header___JDLIB", os = "lc-TableHeader-module__header__cell___aYvzx", _s = "lc-TableHeader-module__header__hiddenIcon___NNtMw", ns = "lc-TableHeader-module__header__resizer___h-Al0", ls = "lc-TableHeader-module__header__content___LRMNn", ea = {
|
|
8156
|
+
header: rs,
|
|
8157
|
+
header__cell: os,
|
|
8143
8158
|
"header__cell--hoverDisabled": "lc-TableHeader-module__header__cell--hoverDisabled___PaQRH",
|
|
8144
|
-
header__hiddenIcon:
|
|
8145
|
-
header__resizer:
|
|
8146
|
-
header__content:
|
|
8159
|
+
header__hiddenIcon: _s,
|
|
8160
|
+
header__resizer: ns,
|
|
8161
|
+
header__content: ls,
|
|
8147
8162
|
"header--selectable": "lc-TableHeader-module__header--selectable___yPgDs"
|
|
8148
|
-
}, ra = "header",
|
|
8149
|
-
function
|
|
8163
|
+
}, ra = "header", cs = `${ra}__cell`, is = `${ra}__resizer`, ss = `${ra}__content`, ds = `${ra}__hiddenIcon`;
|
|
8164
|
+
function us(e, t, r, _) {
|
|
8150
8165
|
return e.key === t && e.direction !== Te.None && r ? /* @__PURE__ */ a(
|
|
8151
8166
|
F,
|
|
8152
8167
|
{
|
|
8153
8168
|
source: e.direction === Te.Ascending ? an : rn,
|
|
8154
8169
|
kind: "primary"
|
|
8155
8170
|
}
|
|
8156
|
-
) : _ && r ? /* @__PURE__ */ a(F, { source: on, kind: "subtle" }) : /* @__PURE__ */ a(F, { source: _n, className: ea[
|
|
8171
|
+
) : _ && r ? /* @__PURE__ */ a(F, { source: on, kind: "subtle" }) : /* @__PURE__ */ a(F, { source: _n, className: ea[ds] });
|
|
8157
8172
|
}
|
|
8158
|
-
const
|
|
8173
|
+
const ms = ({
|
|
8159
8174
|
columns: e,
|
|
8160
8175
|
sortConfig: t,
|
|
8161
8176
|
handleSort: r,
|
|
@@ -8182,7 +8197,7 @@ const ps = ({
|
|
|
8182
8197
|
n.current && (n.current[i] = g);
|
|
8183
8198
|
},
|
|
8184
8199
|
className: u({
|
|
8185
|
-
[ea[`${
|
|
8200
|
+
[ea[`${cs}--hoverDisabled`]]: !s.sortable
|
|
8186
8201
|
}),
|
|
8187
8202
|
onMouseEnter: () => d(i),
|
|
8188
8203
|
onMouseLeave: () => d(null),
|
|
@@ -8193,10 +8208,10 @@ const ps = ({
|
|
|
8193
8208
|
onClick: () => {
|
|
8194
8209
|
s.sortable && r(s.key);
|
|
8195
8210
|
},
|
|
8196
|
-
className: ea[
|
|
8211
|
+
className: ea[ss],
|
|
8197
8212
|
children: [
|
|
8198
8213
|
/* @__PURE__ */ a(D, { size: "sm", bold: !0, noMargin: !0, children: s.header }),
|
|
8199
|
-
|
|
8214
|
+
us(
|
|
8200
8215
|
t,
|
|
8201
8216
|
s.key,
|
|
8202
8217
|
(m = s.sortable) != null ? m : !1,
|
|
@@ -8205,7 +8220,7 @@ const ps = ({
|
|
|
8205
8220
|
_ && /* @__PURE__ */ a(
|
|
8206
8221
|
"span",
|
|
8207
8222
|
{
|
|
8208
|
-
className: ea[
|
|
8223
|
+
className: ea[is],
|
|
8209
8224
|
onMouseDown: (g) => o(i, g),
|
|
8210
8225
|
role: "button",
|
|
8211
8226
|
"aria-label": "resize"
|
|
@@ -8220,20 +8235,20 @@ const ps = ({
|
|
|
8220
8235
|
})
|
|
8221
8236
|
]
|
|
8222
8237
|
}
|
|
8223
|
-
) }),
|
|
8224
|
-
table:
|
|
8238
|
+
) }), ps = "lc-Table-module__table___-ZPCW", gs = "lc-Table-module__table__cell___8rtqj", hs = "lc-Table-module__table__selected___f9beX", Ea = {
|
|
8239
|
+
table: ps,
|
|
8225
8240
|
"table--small": "lc-Table-module__table--small___DuQa-",
|
|
8226
8241
|
"table--medium": "lc-Table-module__table--medium___pe9rZ",
|
|
8227
8242
|
"table--large": "lc-Table-module__table--large___8PMkf",
|
|
8228
8243
|
"table--pinned_header": "lc-Table-module__table--pinned_header___5SrTn",
|
|
8229
8244
|
"table--pinned_leftColumn": "lc-Table-module__table--pinned_leftColumn___GWfss",
|
|
8230
|
-
table__cell:
|
|
8231
|
-
table__selected:
|
|
8245
|
+
table__cell: gs,
|
|
8246
|
+
table__selected: hs,
|
|
8232
8247
|
"table--stripped_rows": "lc-Table-module__table--stripped_rows___ALUEi",
|
|
8233
8248
|
"table--stripped_columns": "lc-Table-module__table--stripped_columns___JQlQW",
|
|
8234
8249
|
"action-bar": "lc-Table-module__action-bar___8ZB83",
|
|
8235
8250
|
"action-bar__divider": "lc-Table-module__action-bar__divider___kt6ih"
|
|
8236
|
-
}, Ta = "table",
|
|
8251
|
+
}, Ta = "table", fs = `${Ta}__selected`, fu = ({
|
|
8237
8252
|
data: e,
|
|
8238
8253
|
columns: t,
|
|
8239
8254
|
stripped: r,
|
|
@@ -8248,18 +8263,18 @@ const ps = ({
|
|
|
8248
8263
|
rowActions: m,
|
|
8249
8264
|
testId: g
|
|
8250
8265
|
}) => {
|
|
8251
|
-
const f = p.useRef([]), [b, x] = p.useState(null), { isSelected: S, toggleRowSelection: k, toggleSelectAll: y, selectedCount:
|
|
8266
|
+
const f = p.useRef([]), [b, x] = p.useState(null), { isSelected: S, toggleRowSelection: k, toggleSelectAll: y, selectedCount: E } = qi({
|
|
8252
8267
|
data: e,
|
|
8253
8268
|
getRowId: l,
|
|
8254
8269
|
selectedRows: d,
|
|
8255
8270
|
onSelectionChange: s
|
|
8256
|
-
}), [C,
|
|
8271
|
+
}), [C, I] = p.useState({
|
|
8257
8272
|
key: null,
|
|
8258
8273
|
direction: Te.None
|
|
8259
8274
|
}), [w, $] = p.useState(Array(t.length).fill(void 0)), T = (N, A) => {
|
|
8260
8275
|
A.preventDefault();
|
|
8261
|
-
const
|
|
8262
|
-
const ze = (Je.clientX -
|
|
8276
|
+
const M = A.clientX, z = w[N] || A.currentTarget.offsetWidth, U = w[N + 1] || 0, H = 1.05, W = (Je) => {
|
|
8277
|
+
const ze = (Je.clientX - M) * H;
|
|
8263
8278
|
$((ye) => {
|
|
8264
8279
|
const K = [...ye], be = Math.max(50, z + ze), et = Math.max(50, U - ze);
|
|
8265
8280
|
return K[N] = be, N + 1 < K.length && (K[N + 1] = et), K;
|
|
@@ -8269,11 +8284,11 @@ const ps = ({
|
|
|
8269
8284
|
};
|
|
8270
8285
|
document.addEventListener("mousemove", W), document.addEventListener("mouseup", Ae);
|
|
8271
8286
|
}, P = (N) => {
|
|
8272
|
-
const A = t.find((
|
|
8273
|
-
!A || A.sortable === !1 ||
|
|
8274
|
-
if (
|
|
8287
|
+
const A = t.find((M) => M.key === N);
|
|
8288
|
+
!A || A.sortable === !1 || I((M) => {
|
|
8289
|
+
if (M.key === N) {
|
|
8275
8290
|
let z;
|
|
8276
|
-
switch (
|
|
8291
|
+
switch (M.direction) {
|
|
8277
8292
|
case Te.None:
|
|
8278
8293
|
z = Te.Ascending;
|
|
8279
8294
|
break;
|
|
@@ -8290,12 +8305,12 @@ const ps = ({
|
|
|
8290
8305
|
} else
|
|
8291
8306
|
return { key: N, direction: Te.Ascending };
|
|
8292
8307
|
});
|
|
8293
|
-
},
|
|
8308
|
+
}, O = p.useMemo(() => {
|
|
8294
8309
|
if (!C.key || C.direction === Te.None)
|
|
8295
8310
|
return e;
|
|
8296
8311
|
const N = t.find((A) => A.key === C.key);
|
|
8297
|
-
return N ? [...e].sort((A,
|
|
8298
|
-
const z = N.sortValue ? N.sortValue(A) : A[C.key], U = N.sortValue ? N.sortValue(
|
|
8312
|
+
return N ? [...e].sort((A, M) => {
|
|
8313
|
+
const z = N.sortValue ? N.sortValue(A) : A[C.key], U = N.sortValue ? N.sortValue(M) : M[C.key];
|
|
8299
8314
|
return z < U ? C.direction === Te.Ascending ? -1 : 1 : z > U ? C.direction === Te.Ascending ? 1 : -1 : 0;
|
|
8300
8315
|
}) : e;
|
|
8301
8316
|
}, [e, C, t]);
|
|
@@ -8310,17 +8325,17 @@ const ps = ({
|
|
|
8310
8325
|
);
|
|
8311
8326
|
if (t.find((N) => N.sortable && !N.sortValue))
|
|
8312
8327
|
throw new Error("`sortValue` is required when sortable is true");
|
|
8313
|
-
return /* @__PURE__ */ h(
|
|
8314
|
-
n && /* @__PURE__ */ h("div", { className:
|
|
8328
|
+
return /* @__PURE__ */ h(J, { children: [
|
|
8329
|
+
n && /* @__PURE__ */ h("div", { className: Ea[`${fs}`], children: [
|
|
8315
8330
|
/* @__PURE__ */ a(
|
|
8316
8331
|
Sr,
|
|
8317
8332
|
{
|
|
8318
|
-
checked:
|
|
8333
|
+
checked: E === e.length,
|
|
8319
8334
|
onChange: y
|
|
8320
8335
|
}
|
|
8321
8336
|
),
|
|
8322
8337
|
i || /* @__PURE__ */ h(D, { size: "md", children: [
|
|
8323
|
-
|
|
8338
|
+
E,
|
|
8324
8339
|
" selected items"
|
|
8325
8340
|
] }),
|
|
8326
8341
|
m
|
|
@@ -8329,15 +8344,15 @@ const ps = ({
|
|
|
8329
8344
|
"table",
|
|
8330
8345
|
{
|
|
8331
8346
|
className: u(
|
|
8332
|
-
|
|
8333
|
-
|
|
8334
|
-
|
|
8335
|
-
|
|
8347
|
+
Ea[`${Ta}`],
|
|
8348
|
+
Ea[`${Ta}--${_}`],
|
|
8349
|
+
Ea[`${Ta}--pinned_${o}`],
|
|
8350
|
+
Ea[`${Ta}--stripped_${r}`]
|
|
8336
8351
|
),
|
|
8337
8352
|
"data-testid": g,
|
|
8338
8353
|
children: [
|
|
8339
8354
|
/* @__PURE__ */ a(
|
|
8340
|
-
|
|
8355
|
+
ms,
|
|
8341
8356
|
{
|
|
8342
8357
|
columns: t,
|
|
8343
8358
|
sortConfig: C,
|
|
@@ -8351,9 +8366,9 @@ const ps = ({
|
|
|
8351
8366
|
}
|
|
8352
8367
|
),
|
|
8353
8368
|
/* @__PURE__ */ a(
|
|
8354
|
-
|
|
8369
|
+
as,
|
|
8355
8370
|
{
|
|
8356
|
-
data:
|
|
8371
|
+
data: O,
|
|
8357
8372
|
columns: t,
|
|
8358
8373
|
getRowId: l,
|
|
8359
8374
|
columnWidths: w,
|
|
@@ -8373,7 +8388,7 @@ const ps = ({
|
|
|
8373
8388
|
"tag-input__input--medium": "lc-TagInput-module__tag-input__input--medium___9ifYO",
|
|
8374
8389
|
"tag-input__input--large": "lc-TagInput-module__tag-input__input--large___0xBUb",
|
|
8375
8390
|
"tag-input__tag__content": "lc-TagInput-module__tag-input__tag__content___glcu0"
|
|
8376
|
-
},
|
|
8391
|
+
}, bs = ({
|
|
8377
8392
|
className: e = "",
|
|
8378
8393
|
innerEditableRef: t,
|
|
8379
8394
|
inputRef: r,
|
|
@@ -8418,7 +8433,7 @@ const ps = ({
|
|
|
8418
8433
|
dangerouslySetInnerHTML: { __html: vo(n) }
|
|
8419
8434
|
}
|
|
8420
8435
|
);
|
|
8421
|
-
},
|
|
8436
|
+
}, vs = "tag-input__tag", Wo = ({
|
|
8422
8437
|
children: e,
|
|
8423
8438
|
index: t,
|
|
8424
8439
|
remove: r,
|
|
@@ -8430,24 +8445,24 @@ const ps = ({
|
|
|
8430
8445
|
}) => {
|
|
8431
8446
|
const d = p.useMemo(() => _ !== void 0 ? _(e) : !0, [e, _]), s = p.useRef(null), i = () => r(t), m = () => d ? c ? c.kind : "default" : "error";
|
|
8432
8447
|
return /* @__PURE__ */ a(u_, B(v({ size: l }, c), { kind: m(), onRemove: i, children: /* @__PURE__ */ a(
|
|
8433
|
-
|
|
8448
|
+
bs,
|
|
8434
8449
|
{
|
|
8435
8450
|
value: e,
|
|
8436
8451
|
inputRef: o,
|
|
8437
8452
|
innerEditableRef: s,
|
|
8438
|
-
className: Aa[`${
|
|
8453
|
+
className: Aa[`${vs}__content`],
|
|
8439
8454
|
change: (g) => n(t, g),
|
|
8440
8455
|
remove: i,
|
|
8441
8456
|
validator: _
|
|
8442
8457
|
}
|
|
8443
8458
|
) }));
|
|
8444
|
-
}, sr = "tag-input",
|
|
8459
|
+
}, sr = "tag-input", ks = [
|
|
8445
8460
|
we.enter,
|
|
8446
8461
|
we.spacebar,
|
|
8447
8462
|
we.tab,
|
|
8448
8463
|
we.semicolon,
|
|
8449
8464
|
we.comma
|
|
8450
|
-
],
|
|
8465
|
+
], Cs = [we.backspace, we.delete], ws = (g) => {
|
|
8451
8466
|
var f = g, {
|
|
8452
8467
|
id: e,
|
|
8453
8468
|
tags: t,
|
|
@@ -8483,34 +8498,34 @@ const ps = ({
|
|
|
8483
8498
|
d,
|
|
8484
8499
|
Aa[`${sr}__input`],
|
|
8485
8500
|
Aa[`${sr}__input--${l}`]
|
|
8486
|
-
), [S, k] = p.useState(""), y = p.useRef(null),
|
|
8501
|
+
), [S, k] = p.useState(""), y = p.useRef(null), E = (N) => {
|
|
8487
8502
|
N.trim() !== "" && (r([...t || [], N]), k(""));
|
|
8488
8503
|
}, C = (N) => {
|
|
8489
8504
|
const A = [...t || []];
|
|
8490
8505
|
A.splice(N, 1), r(A);
|
|
8491
|
-
},
|
|
8492
|
-
if (
|
|
8506
|
+
}, I = (N) => k(N.target.value), w = (N) => {
|
|
8507
|
+
if (ks.includes(N.key)) {
|
|
8493
8508
|
if (N.preventDefault(), S === "")
|
|
8494
8509
|
return;
|
|
8495
|
-
|
|
8496
|
-
} else if (
|
|
8510
|
+
E(S);
|
|
8511
|
+
} else if (Cs.includes(N.key)) {
|
|
8497
8512
|
if (S !== "" || !(t != null && t.length))
|
|
8498
8513
|
return;
|
|
8499
8514
|
C(t.length - 1);
|
|
8500
8515
|
}
|
|
8501
8516
|
}, $ = (N) => {
|
|
8502
|
-
i &&
|
|
8517
|
+
i && E(S), s == null || s(N);
|
|
8503
8518
|
}, T = (N, A) => {
|
|
8504
|
-
const
|
|
8505
|
-
|
|
8519
|
+
const M = [...t || []];
|
|
8520
|
+
M.reduce(
|
|
8506
8521
|
(U, H, W) => U + (H === A && W !== N ? 1 : 0),
|
|
8507
8522
|
0
|
|
8508
|
-
) > 0 ?
|
|
8523
|
+
) > 0 ? M.splice(N, 1) : M[N] = A, r(M);
|
|
8509
8524
|
}, P = (N) => {
|
|
8510
8525
|
N.preventDefault();
|
|
8511
|
-
const
|
|
8512
|
-
r([...t || [], ...
|
|
8513
|
-
},
|
|
8526
|
+
const M = N.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
8527
|
+
r([...t || [], ...M]);
|
|
8528
|
+
}, O = (N, A) => typeof N == "string" ? /* @__PURE__ */ a(
|
|
8514
8529
|
Wo,
|
|
8515
8530
|
{
|
|
8516
8531
|
index: A,
|
|
@@ -8536,9 +8551,9 @@ const ps = ({
|
|
|
8536
8551
|
},
|
|
8537
8552
|
`${A}${N.children}`
|
|
8538
8553
|
);
|
|
8539
|
-
return /* @__PURE__ */ h(
|
|
8554
|
+
return /* @__PURE__ */ h(J, { children: [
|
|
8540
8555
|
/* @__PURE__ */ h(D, { as: "div", className: b, children: [
|
|
8541
|
-
t == null ? void 0 : t.map(
|
|
8556
|
+
t == null ? void 0 : t.map(O),
|
|
8542
8557
|
/* @__PURE__ */ a(
|
|
8543
8558
|
"input",
|
|
8544
8559
|
B(v({}, m), {
|
|
@@ -8547,7 +8562,7 @@ const ps = ({
|
|
|
8547
8562
|
className: x,
|
|
8548
8563
|
placeholder: n,
|
|
8549
8564
|
value: S,
|
|
8550
|
-
onChange:
|
|
8565
|
+
onChange: I,
|
|
8551
8566
|
onKeyDown: w,
|
|
8552
8567
|
onPaste: P,
|
|
8553
8568
|
onBlur: $
|
|
@@ -8556,18 +8571,18 @@ const ps = ({
|
|
|
8556
8571
|
] }),
|
|
8557
8572
|
o && /* @__PURE__ */ a(uo, { children: o })
|
|
8558
8573
|
] });
|
|
8559
|
-
},
|
|
8574
|
+
}, ys = /^(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)])$/i, $s = "name@company.com", Ns = (e) => ys.test(e), bu = (r) => {
|
|
8560
8575
|
var _ = r, {
|
|
8561
|
-
placeholder: e =
|
|
8576
|
+
placeholder: e = $s
|
|
8562
8577
|
} = _, t = R(_, [
|
|
8563
8578
|
"placeholder"
|
|
8564
8579
|
]);
|
|
8565
|
-
return /* @__PURE__ */ a(
|
|
8566
|
-
},
|
|
8567
|
-
toast:
|
|
8568
|
-
toast__content:
|
|
8580
|
+
return /* @__PURE__ */ a(ws, B(v({}, t), { placeholder: e, validator: Ns }));
|
|
8581
|
+
}, Ss = "lc-Toast-module__toast___ngbBR", xs = "lc-Toast-module__toast__content___XGt2m", Es = "lc-Toast-module__toast__actions___iFshW", Is = "lc-Toast-module__toast__actions__button___sQIbQ", ie = {
|
|
8582
|
+
toast: Ss,
|
|
8583
|
+
toast__content: xs,
|
|
8569
8584
|
toast__actions: Es,
|
|
8570
|
-
toast__actions__button:
|
|
8585
|
+
toast__actions__button: Is,
|
|
8571
8586
|
"toast__actions__button--success": "lc-Toast-module__toast__actions__button--success___p53MR",
|
|
8572
8587
|
"toast__actions__button--warning": "lc-Toast-module__toast__actions__button--warning___fCMO5",
|
|
8573
8588
|
"toast__actions__button--error": "lc-Toast-module__toast__actions__button--error___hct1w",
|
|
@@ -8593,7 +8608,7 @@ const ps = ({
|
|
|
8593
8608
|
"toast-appear-active--fade": "lc-Toast-module__toast-appear-active--fade___Z39eu",
|
|
8594
8609
|
"toast-exit--fade": "lc-Toast-module__toast-exit--fade___1t0Qp",
|
|
8595
8610
|
"toast-exit-active--fade": "lc-Toast-module__toast-exit-active--fade___UK5Kw"
|
|
8596
|
-
},
|
|
8611
|
+
}, Bs = {
|
|
8597
8612
|
success: {
|
|
8598
8613
|
source: _o
|
|
8599
8614
|
},
|
|
@@ -8601,12 +8616,12 @@ const ps = ({
|
|
|
8601
8616
|
source: Ko
|
|
8602
8617
|
},
|
|
8603
8618
|
error: {
|
|
8604
|
-
source:
|
|
8619
|
+
source: Yo
|
|
8605
8620
|
},
|
|
8606
8621
|
info: {
|
|
8607
|
-
source:
|
|
8622
|
+
source: Oa
|
|
8608
8623
|
}
|
|
8609
|
-
}, Pt = "toast",
|
|
8624
|
+
}, Pt = "toast", Ts = (c) => {
|
|
8610
8625
|
var d = c, {
|
|
8611
8626
|
action: e,
|
|
8612
8627
|
className: t,
|
|
@@ -8628,11 +8643,11 @@ const ps = ({
|
|
|
8628
8643
|
t
|
|
8629
8644
|
), i = typeof r == "string", m = (g) => g && g.closesOnClick && n ? (g.onClick(), n()) : g.onClick();
|
|
8630
8645
|
return /* @__PURE__ */ h("div", B(v({ className: s }, l), { children: [
|
|
8631
|
-
/* @__PURE__ */ a("div", { className: ie[`${Pt}__icon`], children: /* @__PURE__ */ a(F, B(v({},
|
|
8646
|
+
/* @__PURE__ */ a("div", { className: ie[`${Pt}__icon`], children: /* @__PURE__ */ a(F, B(v({}, Bs[o]), { size: "medium" })) }),
|
|
8632
8647
|
/* @__PURE__ */ a("div", { className: ie[`${Pt}__content`], children: i ? /* @__PURE__ */ a(D, { as: "div", children: r }) : r }),
|
|
8633
8648
|
(e || _) && /* @__PURE__ */ h("div", { className: ie[`${Pt}__actions`], children: [
|
|
8634
8649
|
e && /* @__PURE__ */ a(
|
|
8635
|
-
|
|
8650
|
+
Y,
|
|
8636
8651
|
{
|
|
8637
8652
|
className: ie[`${Pt}__actions--custom`],
|
|
8638
8653
|
kind: "text",
|
|
@@ -8655,7 +8670,7 @@ const ps = ({
|
|
|
8655
8670
|
)
|
|
8656
8671
|
] })
|
|
8657
8672
|
] }));
|
|
8658
|
-
},
|
|
8673
|
+
}, As = 200, Ia = "toast-wrapper", vu = ({
|
|
8659
8674
|
className: e,
|
|
8660
8675
|
toasts: t = [],
|
|
8661
8676
|
fixed: r = !0,
|
|
@@ -8665,12 +8680,12 @@ const ps = ({
|
|
|
8665
8680
|
horizontalPosition: l = "center"
|
|
8666
8681
|
}) => {
|
|
8667
8682
|
const c = u(
|
|
8668
|
-
ie[
|
|
8683
|
+
ie[Ia],
|
|
8669
8684
|
{
|
|
8670
|
-
[ie[`${
|
|
8671
|
-
[ie[`${
|
|
8672
|
-
[ie[`${
|
|
8673
|
-
[ie[`${
|
|
8685
|
+
[ie[`${Ia}--fixed`]]: r,
|
|
8686
|
+
[ie[`${Ia}--block`]]: !r && _,
|
|
8687
|
+
[ie[`${Ia}--horizontal-${l}`]]: l,
|
|
8688
|
+
[ie[`${Ia}--vertical-${n}`]]: n
|
|
8674
8689
|
},
|
|
8675
8690
|
e
|
|
8676
8691
|
);
|
|
@@ -8683,9 +8698,9 @@ const ps = ({
|
|
|
8683
8698
|
exit: ie[`toast-exit--${o}`],
|
|
8684
8699
|
exitActive: ie[`toast-exit-active--${o}`]
|
|
8685
8700
|
},
|
|
8686
|
-
timeout:
|
|
8701
|
+
timeout: As,
|
|
8687
8702
|
children: /* @__PURE__ */ a(
|
|
8688
|
-
|
|
8703
|
+
Ts,
|
|
8689
8704
|
{
|
|
8690
8705
|
kind: s,
|
|
8691
8706
|
onClose: f,
|
|
@@ -8697,12 +8712,12 @@ const ps = ({
|
|
|
8697
8712
|
},
|
|
8698
8713
|
d
|
|
8699
8714
|
)) }) });
|
|
8700
|
-
},
|
|
8701
|
-
textarea:
|
|
8715
|
+
}, Ds = "lc-Textarea-module__textarea___yE6jp", dr = {
|
|
8716
|
+
textarea: Ds,
|
|
8702
8717
|
"textarea--focused": "lc-Textarea-module__textarea--focused___YnB5S",
|
|
8703
8718
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___zZJAq",
|
|
8704
8719
|
"textarea--error": "lc-Textarea-module__textarea--error___n-fD5"
|
|
8705
|
-
}, ur = "textarea",
|
|
8720
|
+
}, ur = "textarea", ku = p.forwardRef(
|
|
8706
8721
|
(o, _) => {
|
|
8707
8722
|
var n = o, { className: e, error: t } = n, r = R(n, ["className", "error"]);
|
|
8708
8723
|
const { disabled: l, onBlur: c, onFocus: d } = r, [s, i] = p.useState(!1), m = u(e, dr[ur], {
|
|
@@ -8723,9 +8738,9 @@ const ps = ({
|
|
|
8723
8738
|
})
|
|
8724
8739
|
) });
|
|
8725
8740
|
}
|
|
8726
|
-
),
|
|
8741
|
+
), Ps = {
|
|
8727
8742
|
"update-badge": "lc-UpdateBadge-module__update-badge___heZyU"
|
|
8728
|
-
},
|
|
8743
|
+
}, Fs = "update-badge", Cu = () => /* @__PURE__ */ a("span", { className: Ps[Fs] }), jr = {
|
|
8729
8744
|
"file-upload-progress-actions": "lc-FileUploadProgressActions-module__file-upload-progress-actions___XINkF",
|
|
8730
8745
|
"file-upload-progress-actions__close-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__close-button___BHRcO",
|
|
8731
8746
|
"file-upload-progress-actions__retry-button": "lc-FileUploadProgressActions-module__file-upload-progress-actions__retry-button___2Xd72"
|
|
@@ -8761,7 +8776,7 @@ const ps = ({
|
|
|
8761
8776
|
"file-upload-progress__wrapper__header__title": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title___EYxE3",
|
|
8762
8777
|
"file-upload-progress__wrapper__header__title--success": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--success___P0XSe",
|
|
8763
8778
|
"file-upload-progress__wrapper__header__title--error": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--error___la8oa"
|
|
8764
|
-
}, Ct = "file-upload-progress", Jr = `${Ct}__wrapper__header__title`,
|
|
8779
|
+
}, Ct = "file-upload-progress", Jr = `${Ct}__wrapper__header__title`, Rs = p.forwardRef(
|
|
8765
8780
|
({
|
|
8766
8781
|
actionsVisibility: e = "hidden",
|
|
8767
8782
|
className: t,
|
|
@@ -8820,7 +8835,7 @@ const ps = ({
|
|
|
8820
8835
|
)
|
|
8821
8836
|
] }),
|
|
8822
8837
|
l !== "success" && /* @__PURE__ */ a(
|
|
8823
|
-
|
|
8838
|
+
Ei,
|
|
8824
8839
|
{
|
|
8825
8840
|
className: t,
|
|
8826
8841
|
percent: o,
|
|
@@ -8832,7 +8847,7 @@ const ps = ({
|
|
|
8832
8847
|
}
|
|
8833
8848
|
)
|
|
8834
8849
|
] })
|
|
8835
|
-
),
|
|
8850
|
+
), Q = {
|
|
8836
8851
|
"upload-bar": "lc-UploadBar-module__upload-bar___0ZOP3",
|
|
8837
8852
|
"upload-bar__loader-test": "lc-UploadBar-module__upload-bar__loader-test___4QKID",
|
|
8838
8853
|
"upload-bar--error": "lc-UploadBar-module__upload-bar--error___83It3",
|
|
@@ -8853,28 +8868,28 @@ const ps = ({
|
|
|
8853
8868
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___-N5nJ",
|
|
8854
8869
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___C3au9",
|
|
8855
8870
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___95G7b"
|
|
8856
|
-
}, Be = "upload-bar", $t = `${Be}__wrapper__header`, Os = 300,
|
|
8871
|
+
}, Be = "upload-bar", $t = `${Be}__wrapper__header`, Os = 300, Ms = (e, t) => e === "success" ? /* @__PURE__ */ a(
|
|
8857
8872
|
"div",
|
|
8858
8873
|
{
|
|
8859
8874
|
"data-testid": "success-icon",
|
|
8860
|
-
className:
|
|
8875
|
+
className: Q[`${$t}__success-icon`],
|
|
8861
8876
|
children: /* @__PURE__ */ a(F, { source: Ga })
|
|
8862
8877
|
}
|
|
8863
8878
|
) : e === "error" ? /* @__PURE__ */ a(
|
|
8864
8879
|
"div",
|
|
8865
8880
|
{
|
|
8866
8881
|
"data-testid": "error-icon",
|
|
8867
|
-
className:
|
|
8882
|
+
className: Q[`${$t}__error-icon`],
|
|
8868
8883
|
children: /* @__PURE__ */ a(F, { source: ln })
|
|
8869
8884
|
}
|
|
8870
8885
|
) : /* @__PURE__ */ a(
|
|
8871
8886
|
xi,
|
|
8872
8887
|
{
|
|
8873
|
-
className:
|
|
8888
|
+
className: Q[`${$t}__loader`],
|
|
8874
8889
|
status: e,
|
|
8875
8890
|
progressValue: t
|
|
8876
8891
|
}
|
|
8877
|
-
),
|
|
8892
|
+
), wu = ({
|
|
8878
8893
|
children: e,
|
|
8879
8894
|
className: t,
|
|
8880
8895
|
progressValue: r,
|
|
@@ -8888,13 +8903,13 @@ const ps = ({
|
|
|
8888
8903
|
onCloseButtonClick: i,
|
|
8889
8904
|
onRetryButtonClick: m
|
|
8890
8905
|
}) => {
|
|
8891
|
-
const [g, f] = p.useState(o || !1), b = l === "error", x = l === "success", S = u(
|
|
8892
|
-
[
|
|
8893
|
-
[
|
|
8906
|
+
const [g, f] = p.useState(o || !1), b = l === "error", x = l === "success", S = u(Q[Be], t, {
|
|
8907
|
+
[Q[`${Be}--error`]]: b,
|
|
8908
|
+
[Q[`${Be}--success`]]: x
|
|
8894
8909
|
}), k = !(b && (m || i)), y = () => f(!g);
|
|
8895
|
-
return s === "single" ? /* @__PURE__ */ a("div", { className: S, children: /* @__PURE__ */ h("div", { className:
|
|
8896
|
-
/* @__PURE__ */ a("div", { className:
|
|
8897
|
-
|
|
8910
|
+
return s === "single" ? /* @__PURE__ */ a("div", { className: S, children: /* @__PURE__ */ h("div", { className: Q[`${Be}__wrapper`], children: [
|
|
8911
|
+
/* @__PURE__ */ a("div", { className: Q[`${$t}`], children: /* @__PURE__ */ a(
|
|
8912
|
+
Rs,
|
|
8898
8913
|
{
|
|
8899
8914
|
title: b && n || _,
|
|
8900
8915
|
progressValue: r,
|
|
@@ -8915,22 +8930,22 @@ const ps = ({
|
|
|
8915
8930
|
/* @__PURE__ */ a(
|
|
8916
8931
|
"div",
|
|
8917
8932
|
{
|
|
8918
|
-
className:
|
|
8933
|
+
className: Q[`${Be}__wrapper`],
|
|
8919
8934
|
onClick: y,
|
|
8920
|
-
children: /* @__PURE__ */ h("div", { className:
|
|
8921
|
-
/* @__PURE__ */ a("div", { className:
|
|
8922
|
-
/* @__PURE__ */ a("div", { className:
|
|
8935
|
+
children: /* @__PURE__ */ h("div", { className: Q[`${$t}`], children: [
|
|
8936
|
+
/* @__PURE__ */ a("div", { className: Q[`${$t}__icon`], children: Ms(l, r) }),
|
|
8937
|
+
/* @__PURE__ */ a("div", { className: Q[`${$t}__title`], children: /* @__PURE__ */ a(D, { size: "sm", as: "div", children: b ? n : _ }) }),
|
|
8923
8938
|
k && /* @__PURE__ */ a(
|
|
8924
8939
|
"button",
|
|
8925
8940
|
{
|
|
8926
|
-
className:
|
|
8941
|
+
className: Q[`${$t}__collapse-button`],
|
|
8927
8942
|
type: "button",
|
|
8928
8943
|
"aria-label": "Collapse button",
|
|
8929
8944
|
onClick: y,
|
|
8930
8945
|
children: g ? /* @__PURE__ */ a(F, { source: kr }) : /* @__PURE__ */ a(F, { source: Kt })
|
|
8931
8946
|
}
|
|
8932
8947
|
),
|
|
8933
|
-
l === "error" && /* @__PURE__ */ a("div", { className:
|
|
8948
|
+
l === "error" && /* @__PURE__ */ a("div", { className: Q[`${$t}__actions-container`], children: /* @__PURE__ */ a(
|
|
8934
8949
|
oo,
|
|
8935
8950
|
{
|
|
8936
8951
|
status: l,
|
|
@@ -8946,143 +8961,143 @@ const ps = ({
|
|
|
8946
8961
|
{
|
|
8947
8962
|
timeout: Os,
|
|
8948
8963
|
classNames: {
|
|
8949
|
-
enter:
|
|
8950
|
-
enterActive:
|
|
8951
|
-
exit:
|
|
8952
|
-
exitActive:
|
|
8953
|
-
exitDone:
|
|
8964
|
+
enter: Q[`${Be}__files--enter`],
|
|
8965
|
+
enterActive: Q[`${Be}__files--enter-active`],
|
|
8966
|
+
exit: Q[`${Be}__files--exit`],
|
|
8967
|
+
exitActive: Q[`${Be}__files--exit-active`],
|
|
8968
|
+
exitDone: Q[`${Be}__files--exit-done`]
|
|
8954
8969
|
},
|
|
8955
|
-
children: /* @__PURE__ */ a("div", { className:
|
|
8970
|
+
children: /* @__PURE__ */ a("div", { className: Q[`${Be}__files`], children: /* @__PURE__ */ a("div", { className: Q[`${Be}__files-wrapper`], children: /* @__PURE__ */ a("div", { className: Q[`${Be}__files__list`], children: e }) }) })
|
|
8956
8971
|
}
|
|
8957
8972
|
) })
|
|
8958
8973
|
] });
|
|
8959
|
-
},
|
|
8974
|
+
}, yu = ({
|
|
8960
8975
|
children: e,
|
|
8961
8976
|
id: t,
|
|
8962
8977
|
root: r,
|
|
8963
8978
|
preserveTabOrder: _
|
|
8964
8979
|
}) => /* @__PURE__ */ a(aa, { id: t, root: r, preserveTabOrder: _, children: e });
|
|
8965
8980
|
export {
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8981
|
+
As as ANIMATION_TIME,
|
|
8982
|
+
ud as Accordion,
|
|
8983
|
+
md as AccordionPromo,
|
|
8984
|
+
vd as ActionBar,
|
|
8985
|
+
kd as ActionCard,
|
|
8971
8986
|
a_ as ActionMenu,
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8987
|
+
pd as ActionMenuItem,
|
|
8988
|
+
Xd as ActionModalContent,
|
|
8989
|
+
Cd as Alert,
|
|
8990
|
+
wd as AppFrame,
|
|
8976
8991
|
Nn as AppFrameProvider,
|
|
8977
|
-
|
|
8992
|
+
Ad as AutoComplete,
|
|
8978
8993
|
g_ as Avatar,
|
|
8979
8994
|
pr as Badge,
|
|
8980
|
-
|
|
8981
|
-
|
|
8995
|
+
Y as Button,
|
|
8996
|
+
Pd as Card,
|
|
8982
8997
|
Sr as Checkbox,
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8998
|
+
Fd as DatePicker,
|
|
8999
|
+
Rd as DatePickerRangeCalendarsWrapper,
|
|
9000
|
+
ed as DesignToken,
|
|
9001
|
+
Od as DetailsCard,
|
|
9002
|
+
Md as DetailsCardInfo,
|
|
9003
|
+
dd as Display,
|
|
9004
|
+
bu as EmailTagInput,
|
|
9005
|
+
Ed as ExpirationCounter,
|
|
8991
9006
|
Nr as FieldDescription,
|
|
8992
9007
|
uo as FieldError,
|
|
8993
|
-
|
|
8994
|
-
|
|
9008
|
+
Ld as FieldGroup,
|
|
9009
|
+
Rs as FileUploadProgress,
|
|
8995
9010
|
oo as FileUploadProgressActions,
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9011
|
+
yu as FloatingPortal,
|
|
9012
|
+
Gd as Form,
|
|
9013
|
+
Hd as FormField,
|
|
9014
|
+
Ud as FormGroup,
|
|
9015
|
+
ou as GallerySelectableCard,
|
|
9016
|
+
cu as GridCol,
|
|
9017
|
+
lu as GridRow,
|
|
9018
|
+
nu as GridWrapper,
|
|
9004
9019
|
se as Heading,
|
|
9005
9020
|
F as Icon,
|
|
9006
|
-
|
|
9021
|
+
hd as Info,
|
|
9007
9022
|
zl as Input,
|
|
9008
9023
|
c_ as InputComponent,
|
|
9009
|
-
|
|
9024
|
+
Bd as InputPromo,
|
|
9010
9025
|
sl as Interactive,
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9026
|
+
_u as InteractiveSelectableCard,
|
|
9027
|
+
zd as InviteAgents,
|
|
9028
|
+
Vd as Link,
|
|
9014
9029
|
mr as ListItem,
|
|
9015
9030
|
so as Loader,
|
|
9016
|
-
|
|
9017
|
-
|
|
9031
|
+
Id as MobileNavigation,
|
|
9032
|
+
Wd as Modal,
|
|
9018
9033
|
ni as ModalBase,
|
|
9019
9034
|
Ho as ModalCloseButton,
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
|
|
9035
|
+
Yd as ModalHeader,
|
|
9036
|
+
Kd as ModalPortal,
|
|
9037
|
+
xd as Navigation,
|
|
9038
|
+
Nd as NavigationGroup,
|
|
9039
|
+
Sd as NavigationItem,
|
|
9025
9040
|
l_ as NavigationTopBar,
|
|
9026
9041
|
Ll as NavigationTopBarAlert,
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9042
|
+
Ml as NavigationTopBarTitle,
|
|
9043
|
+
Zd as NumericInput,
|
|
9044
|
+
qd as OnboardingChecklist,
|
|
9045
|
+
jd as OverflowTooltipText,
|
|
9046
|
+
Td as Picker,
|
|
9032
9047
|
d_ as PickerList,
|
|
9033
|
-
|
|
9034
|
-
|
|
9048
|
+
Qd as Popover,
|
|
9049
|
+
Jd as ProductSwitcher,
|
|
9035
9050
|
gi as ProductSwitcherProducts,
|
|
9036
|
-
|
|
9051
|
+
Ei as ProgressBar,
|
|
9037
9052
|
xi as ProgressCircle,
|
|
9038
|
-
|
|
9039
|
-
|
|
9053
|
+
tu as PromoBanner,
|
|
9054
|
+
au as PromoBannerV2,
|
|
9040
9055
|
Ai as RadioButton,
|
|
9041
|
-
|
|
9056
|
+
rd as RadiusToken,
|
|
9042
9057
|
Hc as RangeDatePicker,
|
|
9043
|
-
|
|
9058
|
+
bd as Reports,
|
|
9044
9059
|
xl as SIDE_NAVIGATION_ACTIVE_ITEM_TEST_ID,
|
|
9045
9060
|
Sl as SIDE_NAVIGATION_ITEM_TEST_ID,
|
|
9046
|
-
|
|
9061
|
+
El as SIDE_NAVIGATION_PARENT_ICON_TEST_ID,
|
|
9047
9062
|
Di as SearchInput,
|
|
9048
|
-
|
|
9063
|
+
Dd as SegmentedControl,
|
|
9049
9064
|
po as SelectableCard,
|
|
9050
|
-
|
|
9051
|
-
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
+
ad as ShadowToken,
|
|
9066
|
+
yd as SideNavigation,
|
|
9067
|
+
$d as SideNavigationGroup,
|
|
9068
|
+
Il as SideNavigationItem,
|
|
9069
|
+
gd as Simple,
|
|
9070
|
+
su as SkeletonAvatar,
|
|
9071
|
+
du as SkeletonText,
|
|
9072
|
+
iu as SkeletonWrapper,
|
|
9073
|
+
td as SpacingToken,
|
|
9074
|
+
uu as StatusBadge,
|
|
9075
|
+
mu as Switch,
|
|
9076
|
+
pu as Tab,
|
|
9077
|
+
fu as Table,
|
|
9078
|
+
hu as TabsList,
|
|
9079
|
+
gu as TabsWrapper,
|
|
9065
9080
|
u_ as Tag,
|
|
9066
|
-
|
|
9081
|
+
ws as TagInput,
|
|
9067
9082
|
D as Text,
|
|
9068
|
-
|
|
9083
|
+
ku as Textarea,
|
|
9069
9084
|
Rt as ThemeClassName,
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9078
|
-
|
|
9079
|
-
|
|
9080
|
-
|
|
9085
|
+
id as ThemeProvider,
|
|
9086
|
+
ru as ThumbnailSelectableCard,
|
|
9087
|
+
Ts as Toast,
|
|
9088
|
+
vu as ToastWrapper,
|
|
9089
|
+
Ot as Tooltip,
|
|
9090
|
+
nd as TransitionDelayToken,
|
|
9091
|
+
od as TransitionDurationToken,
|
|
9092
|
+
_d as TransitionTimingToken,
|
|
9093
|
+
Cu as UpdateBadge,
|
|
9094
|
+
wu as UploadBar,
|
|
9095
|
+
fd as UserGuide,
|
|
9081
9096
|
bc as generateAvatarColor,
|
|
9082
|
-
|
|
9083
|
-
|
|
9097
|
+
sd as getDesignTokenWithOpacity,
|
|
9098
|
+
ld as getThemeClassName,
|
|
9084
9099
|
io as useAppFrame,
|
|
9085
|
-
|
|
9100
|
+
eu as useProductSwitcher,
|
|
9086
9101
|
qi as useTable,
|
|
9087
|
-
|
|
9102
|
+
cd as useTheme
|
|
9088
9103
|
};
|