@livechat/design-system-react-components 1.10.0 → 1.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/DatePicker/index.d.ts +1 -0
- package/dist/components/Tooltip/types.d.ts +6 -1
- package/dist/dsrc.cjs.js +1 -1
- package/dist/dsrc.es.js +853 -845
- package/dist/preview-stats.json +590 -572
- package/package.json +2 -2
package/dist/dsrc.es.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var kr = Object.defineProperty, yr = Object.defineProperties;
|
|
2
|
+
var Er = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var $t = Object.getOwnPropertySymbols;
|
|
4
4
|
var va = Object.prototype.hasOwnProperty, ha = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Ut = (t, a, r) => a in t ?
|
|
5
|
+
var Ut = (t, a, r) => a in t ? kr(t, a, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[a] = r, y = (t, a) => {
|
|
6
6
|
for (var r in a || (a = {}))
|
|
7
7
|
va.call(a, r) && Ut(t, r, a[r]);
|
|
8
8
|
if ($t)
|
|
9
9
|
for (var r of $t(a))
|
|
10
10
|
ha.call(a, r) && Ut(t, r, a[r]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
12
|
+
}, T = (t, a) => yr(t, Er(a));
|
|
13
|
+
var I = (t, a) => {
|
|
14
14
|
var r = {};
|
|
15
15
|
for (var _ in t)
|
|
16
16
|
va.call(t, _) && a.indexOf(_) < 0 && (r[_] = t[_]);
|
|
@@ -21,19 +21,19 @@ var P = (t, a) => {
|
|
|
21
21
|
};
|
|
22
22
|
var Wt = (t, a, r) => (Ut(t, typeof a != "symbol" ? a + "" : a, r), r);
|
|
23
23
|
import * as e from "react";
|
|
24
|
-
import { useReducer as
|
|
25
|
-
import { Close as
|
|
24
|
+
import { useReducer as $r, useRef as wr, useEffect as nt, useCallback as wt, useMemo as Ct } from "react";
|
|
25
|
+
import { Close as Ce, ChevronLeft as Ga, ChevronDown as Et, Info as oa, Warning as Ua, CheckCircle as Wa, Block as Va, Person as Cr, ChevronUp as zt, DoubleArrowLeft as Nr, ChevronRight as Xt, DoubleArrowRight as xr, VisibilityOn as Sr, VisibilityOff as Dr, Check as ca, Search as Tr, LockBlackFilled as Br, Refresh as Ar, Error as Ir } from "@livechat/design-system-icons";
|
|
26
26
|
import m from "clsx";
|
|
27
|
-
import { useFloating as la, offset as na, flip as sa, autoUpdate as ia, useClick as da, useDismiss as ua, useRole as ma, useInteractions as pa, useTransitionStyles as Ya, shift as qa, arrow as
|
|
27
|
+
import { useFloating as la, offset as na, flip as sa, autoUpdate as ia, useClick as da, useDismiss as ua, useRole as ma, useInteractions as pa, useTransitionStyles as Ya, shift as qa, arrow as Pr, useHover as Fr, safePolygon as Rr, useFocus as Mr, useTransitionStatus as Lr, FloatingArrow as Or, FloatingFocusManager as Hr } from "@floating-ui/react";
|
|
28
28
|
import Ka from "lodash.debounce";
|
|
29
29
|
import { getContrast as ga } from "polished";
|
|
30
|
-
import
|
|
30
|
+
import zr from "react-day-picker";
|
|
31
31
|
import { subMonths as lt, differenceInCalendarMonths as ka, addMonths as ya, isSameMonth as ea, isSameDay as ta, isAfter as aa, differenceInCalendarDays as Ja } from "date-fns";
|
|
32
|
-
import * as
|
|
33
|
-
import { cx as
|
|
32
|
+
import * as Gr from "react-dom";
|
|
33
|
+
import { cx as Ur } from "@emotion/css";
|
|
34
34
|
import Ea from "lodash.escape";
|
|
35
35
|
import { TransitionGroup as ja, CSSTransition as Qa } from "react-transition-group";
|
|
36
|
-
const
|
|
36
|
+
const Rc = {
|
|
37
37
|
Background: "--background",
|
|
38
38
|
Background01: "--background-01",
|
|
39
39
|
Background02: "--background-02",
|
|
@@ -309,7 +309,7 @@ const Fc = {
|
|
|
309
309
|
SurfaceAvatar9: "--surface-avatar-9",
|
|
310
310
|
SurfaceAvatar10: "--surface-avatar-10",
|
|
311
311
|
NavbarBackground: "--navbar-background"
|
|
312
|
-
},
|
|
312
|
+
}, Mc = {
|
|
313
313
|
Spacing0: "--spacing-0",
|
|
314
314
|
Spacing05: "--spacing-05",
|
|
315
315
|
Spacing1: "--spacing-1",
|
|
@@ -326,7 +326,7 @@ const Fc = {
|
|
|
326
326
|
Spacing18: "--spacing-18",
|
|
327
327
|
Spacing20: "--spacing-20",
|
|
328
328
|
Spacing24: "--spacing-24"
|
|
329
|
-
},
|
|
329
|
+
}, Lc = {
|
|
330
330
|
Float: "--shadow-float",
|
|
331
331
|
PopOver: "--shadow-pop-over",
|
|
332
332
|
Modal: "--shadow-modal",
|
|
@@ -343,20 +343,20 @@ const Fc = {
|
|
|
343
343
|
DividerTopRight: "--shadow-divider-top-right",
|
|
344
344
|
DividerBottomRight: "--shadow-divider-bottom-right",
|
|
345
345
|
MessageBox: "--shadow-message-box"
|
|
346
|
-
},
|
|
346
|
+
}, Oc = {
|
|
347
347
|
0: "--radius-0",
|
|
348
348
|
1: "--radius-1",
|
|
349
349
|
2: "--radius-2",
|
|
350
350
|
3: "--radius-3",
|
|
351
351
|
4: "--radius-4"
|
|
352
|
-
},
|
|
352
|
+
}, Hc = {
|
|
353
353
|
Fast1: "--transition-duration-fast-1",
|
|
354
354
|
Fast2: "--transition-duration-fast-2",
|
|
355
355
|
Moderate1: "--transition-duration-moderate-1"
|
|
356
|
-
},
|
|
356
|
+
}, zc = {
|
|
357
357
|
EaseIn: "--transition-timing-ease-in",
|
|
358
358
|
EaseOut: "--transition-timing-ease-out"
|
|
359
|
-
},
|
|
359
|
+
}, Gc = (t, a) => `color-mix(in srgb, var(${t}) ${a}, transparent)`, z = {
|
|
360
360
|
esc: "Escape",
|
|
361
361
|
enter: "Enter",
|
|
362
362
|
backspace: "Backspace",
|
|
@@ -375,7 +375,7 @@ const Fc = {
|
|
|
375
375
|
"action-menu__list__item": "lc-ActionMenu-module__action-menu__list__item___n-OgH",
|
|
376
376
|
"action-menu__list__item--with-divider": "lc-ActionMenu-module__action-menu__list__item--with-divider___2H3Vm",
|
|
377
377
|
"action-menu__list__item--disabled": "lc-ActionMenu-module__action-menu__list__item--disabled___MgaX8"
|
|
378
|
-
}, Qe = "action-menu",
|
|
378
|
+
}, Qe = "action-menu", Wr = (h) => {
|
|
379
379
|
var v = h, {
|
|
380
380
|
className: t,
|
|
381
381
|
triggerClassName: a,
|
|
@@ -389,7 +389,7 @@ const Fc = {
|
|
|
389
389
|
onClose: i,
|
|
390
390
|
onOpen: d,
|
|
391
391
|
floatingStrategy: p
|
|
392
|
-
} = v, u =
|
|
392
|
+
} = v, u = I(v, [
|
|
393
393
|
"className",
|
|
394
394
|
"triggerClassName",
|
|
395
395
|
"options",
|
|
@@ -405,20 +405,20 @@ const Fc = {
|
|
|
405
405
|
]);
|
|
406
406
|
const g = s !== void 0, [b, k] = e.useState(c), f = e.useRef(-1), $ = e.useRef(null), w = g ? s : b, F = () => {
|
|
407
407
|
w ? (i == null || i(), !g && k(!1)) : (d == null || d(), !g && k(!0));
|
|
408
|
-
}, { x: E, y:
|
|
408
|
+
}, { x: E, y: B, strategy: D, refs: se, context: A } = la({
|
|
409
409
|
middleware: [na(4), sa(n)],
|
|
410
410
|
placement: o,
|
|
411
411
|
open: w,
|
|
412
412
|
strategy: p,
|
|
413
413
|
onOpenChange: F,
|
|
414
414
|
whileElementsMounted: ia
|
|
415
|
-
}),
|
|
415
|
+
}), q = da(A), re = ua(A, {
|
|
416
416
|
enabled: w
|
|
417
|
-
}),
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
]), { styles:
|
|
417
|
+
}), Ae = ma(A), { getReferenceProps: Ie, getFloatingProps: Ne } = pa([
|
|
418
|
+
q,
|
|
419
|
+
re,
|
|
420
|
+
Ae
|
|
421
|
+
]), { styles: He } = Ya(A, {
|
|
422
422
|
initial: ({ side: N }) => y({
|
|
423
423
|
opacity: 0
|
|
424
424
|
}, N === "bottom" && {
|
|
@@ -430,32 +430,32 @@ const Fc = {
|
|
|
430
430
|
} || N === "right" && {
|
|
431
431
|
marginLeft: -10
|
|
432
432
|
})
|
|
433
|
-
}),
|
|
434
|
-
var
|
|
435
|
-
const
|
|
436
|
-
let
|
|
437
|
-
for (; (
|
|
438
|
-
if (
|
|
439
|
-
|
|
433
|
+
}), We = (N) => {
|
|
434
|
+
var xe, _e;
|
|
435
|
+
const Q = f.current;
|
|
436
|
+
let Z = Q + N;
|
|
437
|
+
for (; (xe = r[Z]) != null && xe.disabled || (_e = r[Z]) != null && _e.groupHeader; )
|
|
438
|
+
if (Z += N, Z === -1) {
|
|
439
|
+
Z = Q;
|
|
440
440
|
break;
|
|
441
441
|
}
|
|
442
|
-
return
|
|
443
|
-
},
|
|
444
|
-
var
|
|
445
|
-
f.current =
|
|
446
|
-
const
|
|
447
|
-
return
|
|
442
|
+
return Z;
|
|
443
|
+
}, ze = (N) => {
|
|
444
|
+
var xe, _e;
|
|
445
|
+
f.current = We(N);
|
|
446
|
+
const Q = (xe = $.current) == null ? void 0 : xe.children, Z = Q && ((_e = Q[f.current]) == null ? void 0 : _e.children[0]);
|
|
447
|
+
return Z == null ? void 0 : Z.focus();
|
|
448
448
|
}, R = (N) => {
|
|
449
|
-
N.key === z.arrowUp && f.current > 0 && (N.preventDefault(),
|
|
449
|
+
N.key === z.arrowUp && f.current > 0 && (N.preventDefault(), ze(-1)), N.key === z.arrowDown && f.current + 1 < r.length && (N.preventDefault(), ze(1));
|
|
450
450
|
};
|
|
451
451
|
e.useEffect(() => {
|
|
452
452
|
if (w)
|
|
453
453
|
return document.addEventListener("keydown", R), () => document.removeEventListener("keydown", R);
|
|
454
454
|
f.current = -1;
|
|
455
455
|
}, [w, R]);
|
|
456
|
-
const U = (N,
|
|
457
|
-
f.current = N,
|
|
458
|
-
},
|
|
456
|
+
const U = (N, Q) => {
|
|
457
|
+
f.current = N, Q == null || Q(), !g && !l && (k(!1), i == null || i());
|
|
458
|
+
}, K = (N, Q) => N.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
459
459
|
"li",
|
|
460
460
|
{
|
|
461
461
|
key: N.key,
|
|
@@ -470,7 +470,7 @@ const Fc = {
|
|
|
470
470
|
tabIndex: -1,
|
|
471
471
|
key: N.key,
|
|
472
472
|
disabled: N.disabled,
|
|
473
|
-
onClick: () => U(
|
|
473
|
+
onClick: () => U(Q, N.onClick),
|
|
474
474
|
role: "menuitem",
|
|
475
475
|
className: m(je[`${Qe}__list__item`], {
|
|
476
476
|
[je[`${Qe}__list__item--disabled`]]: N.disabled,
|
|
@@ -481,10 +481,10 @@ const Fc = {
|
|
|
481
481
|
));
|
|
482
482
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
483
483
|
"div",
|
|
484
|
-
|
|
484
|
+
T(y({
|
|
485
485
|
"data-testid": "action-menu-trigger-button",
|
|
486
486
|
ref: se.setReference
|
|
487
|
-
},
|
|
487
|
+
}, Ie()), {
|
|
488
488
|
className: a
|
|
489
489
|
}),
|
|
490
490
|
_
|
|
@@ -494,28 +494,28 @@ const Fc = {
|
|
|
494
494
|
ref: se.setFloating,
|
|
495
495
|
className: je[Qe],
|
|
496
496
|
style: y({
|
|
497
|
-
position:
|
|
498
|
-
top:
|
|
497
|
+
position: D,
|
|
498
|
+
top: B != null ? B : "",
|
|
499
499
|
left: E != null ? E : ""
|
|
500
|
-
},
|
|
501
|
-
},
|
|
500
|
+
}, He)
|
|
501
|
+
}, Ne()),
|
|
502
502
|
/* @__PURE__ */ e.createElement(
|
|
503
503
|
"ul",
|
|
504
|
-
|
|
504
|
+
T(y({}, u), {
|
|
505
505
|
className: m(je[`${Qe}__list`], t),
|
|
506
506
|
role: "menu",
|
|
507
507
|
ref: $
|
|
508
508
|
}),
|
|
509
|
-
r.map(
|
|
509
|
+
r.map(K)
|
|
510
510
|
)
|
|
511
511
|
));
|
|
512
|
-
},
|
|
512
|
+
}, Vr = "lc-Typography-module__caps___c3eNJ", ct = {
|
|
513
513
|
"heading-xl": "lc-Typography-module__heading-xl___nhr-6",
|
|
514
514
|
"heading-lg": "lc-Typography-module__heading-lg___XYF7l",
|
|
515
515
|
"heading-md": "lc-Typography-module__heading-md___wHOIs",
|
|
516
516
|
"heading-sm": "lc-Typography-module__heading-sm___nBmTV",
|
|
517
517
|
"heading-xs": "lc-Typography-module__heading-xs___VcZBs",
|
|
518
|
-
caps:
|
|
518
|
+
caps: Vr,
|
|
519
519
|
"caps--bold": "lc-Typography-module__caps--bold___OZovw",
|
|
520
520
|
"paragraph-md": "lc-Typography-module__paragraph-md___UGoqq",
|
|
521
521
|
"paragraph-md--bold": "lc-Typography-module__paragraph-md--bold___mWcMG",
|
|
@@ -527,7 +527,7 @@ const Fc = {
|
|
|
527
527
|
"paragraph-xs--bold": "lc-Typography-module__paragraph-xs--bold___z7om7",
|
|
528
528
|
"display-md": "lc-Typography-module__display-md___7eFCF",
|
|
529
529
|
"display-sm": "lc-Typography-module__display-sm___kfNES"
|
|
530
|
-
},
|
|
530
|
+
}, Yr = {
|
|
531
531
|
xl: "h1",
|
|
532
532
|
lg: "h2",
|
|
533
533
|
md: "h3",
|
|
@@ -539,14 +539,14 @@ const Fc = {
|
|
|
539
539
|
size: a = "md",
|
|
540
540
|
children: r,
|
|
541
541
|
className: _
|
|
542
|
-
} = l, o =
|
|
542
|
+
} = l, o = I(l, [
|
|
543
543
|
"as",
|
|
544
544
|
"size",
|
|
545
545
|
"children",
|
|
546
546
|
"className"
|
|
547
547
|
]);
|
|
548
548
|
return e.createElement(
|
|
549
|
-
t ||
|
|
549
|
+
t || Yr[a],
|
|
550
550
|
y({ className: m(ct[`heading-${a}`], _) }, o),
|
|
551
551
|
r
|
|
552
552
|
);
|
|
@@ -560,7 +560,7 @@ const Fc = {
|
|
|
560
560
|
strike: c = !1,
|
|
561
561
|
children: l,
|
|
562
562
|
className: n
|
|
563
|
-
} = d, s =
|
|
563
|
+
} = d, s = I(d, [
|
|
564
564
|
"as",
|
|
565
565
|
"size",
|
|
566
566
|
"caps",
|
|
@@ -586,13 +586,13 @@ const Fc = {
|
|
|
586
586
|
}, s),
|
|
587
587
|
l
|
|
588
588
|
);
|
|
589
|
-
},
|
|
589
|
+
}, Uc = (c) => {
|
|
590
590
|
var l = c, {
|
|
591
591
|
as: t = "div",
|
|
592
592
|
size: a = "md",
|
|
593
593
|
children: r,
|
|
594
594
|
className: _
|
|
595
|
-
} = l, o =
|
|
595
|
+
} = l, o = I(l, [
|
|
596
596
|
"as",
|
|
597
597
|
"size",
|
|
598
598
|
"children",
|
|
@@ -609,7 +609,7 @@ const Fc = {
|
|
|
609
609
|
"action-menu-item__right-node": "lc-ActionMenuItem-module__action-menu-item__right-node___uq0Ym",
|
|
610
610
|
"action-menu-item__label": "lc-ActionMenuItem-module__action-menu-item__label___OgJ80",
|
|
611
611
|
"action-menu-item--warning": "lc-ActionMenuItem-module__action-menu-item--warning___DgeYg"
|
|
612
|
-
}, it = "action-menu-item",
|
|
612
|
+
}, it = "action-menu-item", qr = ({ leftNode: t, rightNode: a, children: r, kind: _ }) => /* @__PURE__ */ e.createElement(
|
|
613
613
|
"div",
|
|
614
614
|
{
|
|
615
615
|
className: m(st[it], {
|
|
@@ -619,15 +619,15 @@ const Fc = {
|
|
|
619
619
|
t && /* @__PURE__ */ e.createElement("div", { className: st[`${it}__left-node`] }, t),
|
|
620
620
|
/* @__PURE__ */ e.createElement(M, { as: "div", className: st[`${it}__label`] }, r),
|
|
621
621
|
a && /* @__PURE__ */ e.createElement("div", { className: st[`${it}__right-node`] }, a)
|
|
622
|
-
),
|
|
623
|
-
loader:
|
|
624
|
-
loader__spinner:
|
|
622
|
+
), Kr = "lc-Loader-module__loader___LRflD", Jr = "lc-Loader-module__loader__spinner___l3C1g", jr = "lc-Loader-module__rotate___Tlni-", Qr = "lc-Loader-module__loader__label___R74f6", dt = {
|
|
623
|
+
loader: Kr,
|
|
624
|
+
loader__spinner: Jr,
|
|
625
625
|
"loader__spinner--small": "lc-Loader-module__loader__spinner--small___dGFFt",
|
|
626
626
|
"loader__spinner--medium": "lc-Loader-module__loader__spinner--medium___J-ki0",
|
|
627
627
|
"loader__spinner--large": "lc-Loader-module__loader__spinner--large___Poqq7",
|
|
628
628
|
"loader__spinner-circle": "lc-Loader-module__loader__spinner-circle___ApBUO",
|
|
629
|
-
rotate:
|
|
630
|
-
loader__label:
|
|
629
|
+
rotate: jr,
|
|
630
|
+
loader__label: Qr
|
|
631
631
|
}, Za = "loader", $a = `${Za}__spinner`, ba = ({
|
|
632
632
|
primaryColor: t,
|
|
633
633
|
secondaryColor: a,
|
|
@@ -650,7 +650,7 @@ const Fc = {
|
|
|
650
650
|
}
|
|
651
651
|
}
|
|
652
652
|
)
|
|
653
|
-
), r && /* @__PURE__ */ e.createElement(M, { as: "div", size: "md", className: dt.loader__label }, r)),
|
|
653
|
+
), r && /* @__PURE__ */ e.createElement(M, { as: "div", size: "md", className: dt.loader__label }, r)), Zr = (t) => {
|
|
654
654
|
if (t === "primary" || t === "destructive")
|
|
655
655
|
return {
|
|
656
656
|
primaryColor: "var(--action-primary-default)",
|
|
@@ -661,8 +661,8 @@ const Fc = {
|
|
|
661
661
|
primaryColor: "var(--content-invert-primary)",
|
|
662
662
|
secondaryColor: "var(--surface-invert-secondary)"
|
|
663
663
|
};
|
|
664
|
-
},
|
|
665
|
-
btn:
|
|
664
|
+
}, Xr = "lc-Button-module__btn___aijZJ", e_ = "lc-Button-module__btn__loader___c8zZz", t_ = "lc-Button-module__btn__icon___GVExB", me = {
|
|
665
|
+
btn: Xr,
|
|
666
666
|
"btn--disabled": "lc-Button-module__btn--disabled___lXBav",
|
|
667
667
|
"btn--full-width": "lc-Button-module__btn--full-width___kdbAr",
|
|
668
668
|
"btn--compact": "lc-Button-module__btn--compact___4eptQ",
|
|
@@ -682,8 +682,8 @@ const Fc = {
|
|
|
682
682
|
"btn--dotted": "lc-Button-module__btn--dotted___y1EEP",
|
|
683
683
|
"btn--high-contrast": "lc-Button-module__btn--high-contrast___zHSVM",
|
|
684
684
|
"btn--loading": "lc-Button-module__btn--loading___ZAgjv",
|
|
685
|
-
btn__loader:
|
|
686
|
-
btn__icon:
|
|
685
|
+
btn__loader: e_,
|
|
686
|
+
btn__icon: t_,
|
|
687
687
|
"btn__icon--left": "lc-Button-module__btn__icon--left___H68zu",
|
|
688
688
|
"btn__icon--right": "lc-Button-module__btn__icon--right___fHr3D",
|
|
689
689
|
"btn--icon-only--bg": "lc-Button-module__btn--icon-only--bg___X-4V2"
|
|
@@ -703,7 +703,7 @@ const Fc = {
|
|
|
703
703
|
children: d,
|
|
704
704
|
href: p,
|
|
705
705
|
onClick: u
|
|
706
|
-
} = b, h =
|
|
706
|
+
} = b, h = I(b, [
|
|
707
707
|
"loading",
|
|
708
708
|
"disabled",
|
|
709
709
|
"type",
|
|
@@ -746,7 +746,7 @@ const Fc = {
|
|
|
746
746
|
size: "small",
|
|
747
747
|
label: s,
|
|
748
748
|
className: me[`${pe}__loader`]
|
|
749
|
-
},
|
|
749
|
+
}, Zr(o))
|
|
750
750
|
),
|
|
751
751
|
l && e.cloneElement(l, {
|
|
752
752
|
className: m(
|
|
@@ -759,8 +759,8 @@ const Fc = {
|
|
|
759
759
|
/* @__PURE__ */ e.createElement("div", { className: me[`${pe}__content`] }, d)
|
|
760
760
|
);
|
|
761
761
|
}
|
|
762
|
-
),
|
|
763
|
-
icon:
|
|
762
|
+
), a_ = "lc-Icon-module__icon___tw31R", wa = {
|
|
763
|
+
icon: a_,
|
|
764
764
|
"icon--primary": "lc-Icon-module__icon--primary___JJnBV",
|
|
765
765
|
"icon--subtle": "lc-Icon-module__icon--subtle___sZIzL",
|
|
766
766
|
"icon--inverted": "lc-Icon-module__icon--inverted___zA9QC",
|
|
@@ -793,7 +793,7 @@ const Fc = {
|
|
|
793
793
|
"icon--disabled--action-positive": "lc-Icon-module__icon--disabled--action-positive___zaLja",
|
|
794
794
|
"icon--disabled--action-warning": "lc-Icon-module__icon--disabled--action-warning___5VvCf",
|
|
795
795
|
"icon--disabled--action-neutral": "lc-Icon-module__icon--disabled--action-neutral___SxlyC"
|
|
796
|
-
},
|
|
796
|
+
}, r_ = {
|
|
797
797
|
xsmall: {
|
|
798
798
|
width: 12,
|
|
799
799
|
height: 12
|
|
@@ -814,7 +814,7 @@ const Fc = {
|
|
|
814
814
|
width: 32,
|
|
815
815
|
height: 32
|
|
816
816
|
}
|
|
817
|
-
}, Ca = "icon",
|
|
817
|
+
}, Ca = "icon", S = (t) => {
|
|
818
818
|
const d = t, {
|
|
819
819
|
source: a,
|
|
820
820
|
size: r = "medium",
|
|
@@ -822,21 +822,21 @@ const Fc = {
|
|
|
822
822
|
disabled: o,
|
|
823
823
|
className: c,
|
|
824
824
|
customColor: l
|
|
825
|
-
} = d, n =
|
|
825
|
+
} = d, n = I(d, [
|
|
826
826
|
"source",
|
|
827
827
|
"size",
|
|
828
828
|
"kind",
|
|
829
829
|
"disabled",
|
|
830
830
|
"className",
|
|
831
831
|
"customColor"
|
|
832
|
-
]), s = e.createElement(a,
|
|
832
|
+
]), s = e.createElement(a, T(y({}, r_[r]), {
|
|
833
833
|
color: l
|
|
834
834
|
})), i = m(
|
|
835
835
|
c,
|
|
836
836
|
wa[Ca],
|
|
837
837
|
_ && wa[`${Ca}--${o ? "disabled--" : ""}${_}`]
|
|
838
838
|
);
|
|
839
|
-
return /* @__PURE__ */ e.createElement("span",
|
|
839
|
+
return /* @__PURE__ */ e.createElement("span", T(y({}, n), { className: i }), s);
|
|
840
840
|
};
|
|
841
841
|
function Xa(t) {
|
|
842
842
|
switch (t) {
|
|
@@ -846,7 +846,7 @@ function Xa(t) {
|
|
|
846
846
|
return "primary";
|
|
847
847
|
}
|
|
848
848
|
}
|
|
849
|
-
function
|
|
849
|
+
function __(t, a, r, _) {
|
|
850
850
|
if (t && r)
|
|
851
851
|
return {
|
|
852
852
|
top: r + t
|
|
@@ -856,12 +856,12 @@ function r_(t, a, r, _) {
|
|
|
856
856
|
left: _ + a
|
|
857
857
|
};
|
|
858
858
|
}
|
|
859
|
-
const
|
|
860
|
-
tooltip:
|
|
861
|
-
tooltip__arrow:
|
|
859
|
+
const o_ = "lc-Tooltip-module__tooltip___QOOAr", c_ = "lc-Tooltip-module__tooltip__arrow___Ov1YW", l_ = "lc-Tooltip-module__tooltip__interactive___0JawB", C = {
|
|
860
|
+
tooltip: o_,
|
|
861
|
+
tooltip__arrow: c_,
|
|
862
862
|
"tooltip--invert": "lc-Tooltip-module__tooltip--invert___PVjhE",
|
|
863
863
|
"tooltip--important": "lc-Tooltip-module__tooltip--important___X-IMK",
|
|
864
|
-
tooltip__interactive:
|
|
864
|
+
tooltip__interactive: l_,
|
|
865
865
|
"tooltip__user-guide-step": "lc-Tooltip-module__tooltip__user-guide-step___evexI",
|
|
866
866
|
"tooltip--full-space": "lc-Tooltip-module__tooltip--full-space___wmbaw",
|
|
867
867
|
"tooltip-header": "lc-Tooltip-module__tooltip-header___QV0Vd",
|
|
@@ -910,94 +910,95 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
910
910
|
referenceElement: w,
|
|
911
911
|
activationThreshold: F = 0,
|
|
912
912
|
useDismissHookProps: E,
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
913
|
+
useClickHookProps: B,
|
|
914
|
+
hoverOutDelayTimeout: D = 100,
|
|
915
|
+
arrowOffsetY: se,
|
|
916
|
+
arrowOffsetX: A,
|
|
917
|
+
closeOnTriggerBlur: q = !1,
|
|
918
|
+
floatingStrategy: re
|
|
918
919
|
}) => {
|
|
919
|
-
const
|
|
920
|
+
const Ae = n !== void 0, [Ie, Ne] = e.useState(!1), He = e.useRef(null), We = Ae ? n : Ie, ze = c || o, R = m(
|
|
920
921
|
C[Nt],
|
|
921
922
|
a,
|
|
922
|
-
|
|
923
|
+
ze && C[`${Nt}--${ze}`],
|
|
923
924
|
s && C[`${Nt}--full-space`]
|
|
924
|
-
),
|
|
925
|
-
|
|
926
|
-
},
|
|
927
|
-
floatingStyles:
|
|
928
|
-
refs:
|
|
925
|
+
), U = typeof _ == "function", K = (fe) => {
|
|
926
|
+
fe !== We && (fe ? d == null || d() : i == null || i(), !Ae && Ne(fe));
|
|
927
|
+
}, N = (fe) => p ? fe != null ? fe : u : 0, Q = (fe) => fe != null ? fe : g, {
|
|
928
|
+
floatingStyles: Z,
|
|
929
|
+
refs: xe,
|
|
929
930
|
context: _e,
|
|
930
|
-
middlewareData: { arrow: { x:
|
|
931
|
+
middlewareData: { arrow: { x: nr, y: sr } = {} }
|
|
931
932
|
} = la({
|
|
932
933
|
middleware: [
|
|
933
934
|
na({ mainAxis: $ }),
|
|
934
935
|
qa(),
|
|
935
936
|
sa(),
|
|
936
|
-
|
|
937
|
+
Pr({ element: He })
|
|
937
938
|
],
|
|
938
939
|
placement: l,
|
|
939
|
-
open:
|
|
940
|
-
strategy:
|
|
941
|
-
onOpenChange:
|
|
940
|
+
open: We,
|
|
941
|
+
strategy: re,
|
|
942
|
+
onOpenChange: K,
|
|
942
943
|
whileElementsMounted: ia
|
|
943
|
-
}),
|
|
944
|
+
}), ir = Fr(_e, {
|
|
944
945
|
move: !1,
|
|
945
946
|
restMs: F,
|
|
946
947
|
delay: {
|
|
947
|
-
open:
|
|
948
|
-
close:
|
|
948
|
+
open: Q(b),
|
|
949
|
+
close: Q(k || D)
|
|
949
950
|
},
|
|
950
951
|
enabled: !f,
|
|
951
|
-
handleClose:
|
|
952
|
-
}),
|
|
952
|
+
handleClose: q ? null : Rr()
|
|
953
|
+
}), dr = Mr(_e), ur = ua(_e, E), mr = ma(_e, { role: "tooltip" }), pr = da(_e, B), { isMounted: gr, styles: br } = Ya(_e, {
|
|
953
954
|
duration: {
|
|
954
|
-
open:
|
|
955
|
-
close:
|
|
955
|
+
open: N(h),
|
|
956
|
+
close: N(v)
|
|
956
957
|
}
|
|
957
|
-
}), { status:
|
|
958
|
-
sr,
|
|
958
|
+
}), { status: fr } = Lr(_e), { getReferenceProps: vr, getFloatingProps: hr } = pa([
|
|
959
959
|
ir,
|
|
960
960
|
dr,
|
|
961
961
|
ur,
|
|
962
|
-
mr
|
|
962
|
+
mr,
|
|
963
|
+
pr
|
|
963
964
|
]);
|
|
964
965
|
return e.useEffect(() => {
|
|
965
|
-
w &&
|
|
966
|
-
}, [
|
|
966
|
+
w && xe.setReference(w);
|
|
967
|
+
}, [xe.setReference, w]), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
967
968
|
"div",
|
|
968
|
-
|
|
969
|
-
ref:
|
|
970
|
-
},
|
|
969
|
+
T(y({
|
|
970
|
+
ref: xe.setReference
|
|
971
|
+
}, vr()), {
|
|
971
972
|
className: r
|
|
972
973
|
}),
|
|
973
|
-
|
|
974
|
-
),
|
|
974
|
+
U ? _() : _
|
|
975
|
+
), gr && /* @__PURE__ */ e.createElement(
|
|
975
976
|
"div",
|
|
976
|
-
|
|
977
|
-
ref:
|
|
978
|
-
style: y(y({},
|
|
979
|
-
className:
|
|
980
|
-
},
|
|
981
|
-
"data-status":
|
|
977
|
+
T(y({
|
|
978
|
+
ref: xe.setFloating,
|
|
979
|
+
style: y(y({}, Z), br),
|
|
980
|
+
className: R
|
|
981
|
+
}, hr()), {
|
|
982
|
+
"data-status": fr
|
|
982
983
|
}),
|
|
983
984
|
t,
|
|
984
985
|
/* @__PURE__ */ e.createElement(
|
|
985
|
-
|
|
986
|
+
Or,
|
|
986
987
|
{
|
|
987
988
|
className: C[`${Nt}__arrow`],
|
|
988
|
-
ref:
|
|
989
|
+
ref: He,
|
|
989
990
|
context: _e,
|
|
990
|
-
style:
|
|
991
|
+
style: __(se, A, sr, nr)
|
|
991
992
|
}
|
|
992
993
|
)
|
|
993
994
|
));
|
|
994
|
-
},
|
|
995
|
+
}, Wc = ({ text: t }) => /* @__PURE__ */ e.createElement("div", null, t), ut = "tooltip", Vc = ({ className: t, header: a, text: r, closeWithX: _, theme: o, handleCloseAction: c }) => /* @__PURE__ */ e.createElement("div", { className: t }, _ && /* @__PURE__ */ e.createElement(
|
|
995
996
|
"button",
|
|
996
997
|
{
|
|
997
998
|
className: C[`${ut}-close`],
|
|
998
999
|
onClick: c
|
|
999
1000
|
},
|
|
1000
|
-
/* @__PURE__ */ e.createElement(
|
|
1001
|
+
/* @__PURE__ */ e.createElement(S, { source: Ce, kind: o ? Xa(o) : "primary" })
|
|
1001
1002
|
), a && /* @__PURE__ */ e.createElement(
|
|
1002
1003
|
"div",
|
|
1003
1004
|
{
|
|
@@ -1016,7 +1017,7 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
1016
1017
|
)
|
|
1017
1018
|
},
|
|
1018
1019
|
r
|
|
1019
|
-
)),
|
|
1020
|
+
)), Se = "tooltip", Yc = ({
|
|
1020
1021
|
header: t,
|
|
1021
1022
|
text: a,
|
|
1022
1023
|
image: r,
|
|
@@ -1027,26 +1028,26 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
1027
1028
|
secondaryButton: n
|
|
1028
1029
|
}) => {
|
|
1029
1030
|
const s = (i) => i === "invert" ? "secondary" : "high-contrast";
|
|
1030
|
-
return /* @__PURE__ */ e.createElement("div", { className: C[`${
|
|
1031
|
+
return /* @__PURE__ */ e.createElement("div", { className: C[`${Se}__interactive`] }, _ && /* @__PURE__ */ e.createElement(
|
|
1031
1032
|
"button",
|
|
1032
1033
|
{
|
|
1033
|
-
className: C[`${
|
|
1034
|
+
className: C[`${Se}-close`],
|
|
1034
1035
|
onClick: c
|
|
1035
1036
|
},
|
|
1036
|
-
/* @__PURE__ */ e.createElement(
|
|
1037
|
-
), r && /* @__PURE__ */ e.createElement("div", { className: C[`${
|
|
1037
|
+
/* @__PURE__ */ e.createElement(S, { source: Ce, kind: o ? Xa(o) : "primary" })
|
|
1038
|
+
), r && /* @__PURE__ */ e.createElement("div", { className: C[`${Se}-image-container`] }, /* @__PURE__ */ e.createElement(
|
|
1038
1039
|
"img",
|
|
1039
1040
|
{
|
|
1040
|
-
className: C[`${
|
|
1041
|
+
className: C[`${Se}-image`],
|
|
1041
1042
|
src: r.src,
|
|
1042
1043
|
alt: r.alt
|
|
1043
1044
|
}
|
|
1044
|
-
)), t && /* @__PURE__ */ e.createElement("div", { className: C[`${
|
|
1045
|
+
)), t && /* @__PURE__ */ e.createElement("div", { className: C[`${Se}-header`] }, t), /* @__PURE__ */ e.createElement("div", { className: C[`${Se}-text`] }, a), /* @__PURE__ */ e.createElement(
|
|
1045
1046
|
"div",
|
|
1046
1047
|
{
|
|
1047
1048
|
className: m(
|
|
1048
|
-
C[`${
|
|
1049
|
-
C[`${
|
|
1049
|
+
C[`${Se}-footer`],
|
|
1050
|
+
C[`${Se}-footer--interactive`]
|
|
1050
1051
|
)
|
|
1051
1052
|
},
|
|
1052
1053
|
/* @__PURE__ */ e.createElement(
|
|
@@ -1060,8 +1061,8 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
1060
1061
|
/* @__PURE__ */ e.createElement(
|
|
1061
1062
|
G,
|
|
1062
1063
|
{
|
|
1063
|
-
className: m(C[`${
|
|
1064
|
-
[C[`${
|
|
1064
|
+
className: m(C[`${Se}-footer-secondary`], {
|
|
1065
|
+
[C[`${Se}-footer-secondary-invert`]]: o === "invert"
|
|
1065
1066
|
}),
|
|
1066
1067
|
kind: n.kind || "text",
|
|
1067
1068
|
onClick: n.handleClick
|
|
@@ -1069,7 +1070,7 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
1069
1070
|
n.label
|
|
1070
1071
|
)
|
|
1071
1072
|
));
|
|
1072
|
-
},
|
|
1073
|
+
}, ee = "guide-tooltip", n_ = ({
|
|
1073
1074
|
gap: t,
|
|
1074
1075
|
isVisible: a,
|
|
1075
1076
|
slide: r,
|
|
@@ -1108,9 +1109,9 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
1108
1109
|
"div",
|
|
1109
1110
|
{
|
|
1110
1111
|
className: m({
|
|
1111
|
-
[C[`${
|
|
1112
|
-
[C[`${
|
|
1113
|
-
[C[`${
|
|
1112
|
+
[C[`${ee}__overlay`]]: !0,
|
|
1113
|
+
[C[`${ee}__overlay--visible`]]: a,
|
|
1114
|
+
[C[`${ee}__overlay--slide`]]: r
|
|
1114
1115
|
}),
|
|
1115
1116
|
style: o
|
|
1116
1117
|
}
|
|
@@ -1118,9 +1119,9 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
1118
1119
|
"div",
|
|
1119
1120
|
{
|
|
1120
1121
|
className: m({
|
|
1121
|
-
[C[`${
|
|
1122
|
-
[C[`${
|
|
1123
|
-
[C[`${
|
|
1122
|
+
[C[`${ee}__overlay`]]: !0,
|
|
1123
|
+
[C[`${ee}__overlay--visible`]]: a,
|
|
1124
|
+
[C[`${ee}__overlay--slide`]]: r
|
|
1124
1125
|
}),
|
|
1125
1126
|
style: l
|
|
1126
1127
|
}
|
|
@@ -1128,9 +1129,9 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
1128
1129
|
"div",
|
|
1129
1130
|
{
|
|
1130
1131
|
className: m({
|
|
1131
|
-
[C[`${
|
|
1132
|
-
[C[`${
|
|
1133
|
-
[C[`${
|
|
1132
|
+
[C[`${ee}__overlay`]]: !0,
|
|
1133
|
+
[C[`${ee}__overlay--visible`]]: a,
|
|
1134
|
+
[C[`${ee}__overlay--slide`]]: r
|
|
1134
1135
|
}),
|
|
1135
1136
|
style: c
|
|
1136
1137
|
}
|
|
@@ -1138,9 +1139,9 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
1138
1139
|
"div",
|
|
1139
1140
|
{
|
|
1140
1141
|
className: m({
|
|
1141
|
-
[C[`${
|
|
1142
|
-
[C[`${
|
|
1143
|
-
[C[`${
|
|
1142
|
+
[C[`${ee}__overlay`]]: !0,
|
|
1143
|
+
[C[`${ee}__overlay--visible`]]: a,
|
|
1144
|
+
[C[`${ee}__overlay--slide`]]: r
|
|
1144
1145
|
}),
|
|
1145
1146
|
style: n
|
|
1146
1147
|
}
|
|
@@ -1148,15 +1149,15 @@ const __ = "lc-Tooltip-module__tooltip___QOOAr", o_ = "lc-Tooltip-module__toolti
|
|
|
1148
1149
|
"div",
|
|
1149
1150
|
{
|
|
1150
1151
|
className: m({
|
|
1151
|
-
[C[`${
|
|
1152
|
-
[C[`${
|
|
1153
|
-
[C[`${
|
|
1152
|
+
[C[`${ee}__overlay`]]: !0,
|
|
1153
|
+
[C[`${ee}__overlay--visible`]]: a,
|
|
1154
|
+
[C[`${ee}__overlay--slide`]]: r
|
|
1154
1155
|
}),
|
|
1155
1156
|
style: s
|
|
1156
1157
|
}
|
|
1157
1158
|
));
|
|
1158
1159
|
};
|
|
1159
|
-
class
|
|
1160
|
+
class s_ {
|
|
1160
1161
|
constructor(a, r) {
|
|
1161
1162
|
Wt(this, "element");
|
|
1162
1163
|
Wt(this, "padding");
|
|
@@ -1185,7 +1186,7 @@ class n_ {
|
|
|
1185
1186
|
return this.getBoundingClientRect().height;
|
|
1186
1187
|
}
|
|
1187
1188
|
}
|
|
1188
|
-
const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new
|
|
1189
|
+
const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new s_(t, a), qc = (t) => {
|
|
1189
1190
|
const {
|
|
1190
1191
|
className: a,
|
|
1191
1192
|
parentElementName: r,
|
|
@@ -1219,7 +1220,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1219
1220
|
).getBoundingClientRect()
|
|
1220
1221
|
), d(!0);
|
|
1221
1222
|
}, [c]), c && _ ? /* @__PURE__ */ e.createElement("div", null, /* @__PURE__ */ e.createElement(
|
|
1222
|
-
|
|
1223
|
+
n_,
|
|
1223
1224
|
{
|
|
1224
1225
|
gap: n,
|
|
1225
1226
|
isVisible: _,
|
|
@@ -1228,7 +1229,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1228
1229
|
}
|
|
1229
1230
|
), /* @__PURE__ */ e.createElement(
|
|
1230
1231
|
er,
|
|
1231
|
-
|
|
1232
|
+
T(y({}, t), {
|
|
1232
1233
|
referenceElement: {
|
|
1233
1234
|
getBoundingClientRect: () => n,
|
|
1234
1235
|
contextElement: c
|
|
@@ -1242,7 +1243,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1242
1243
|
}),
|
|
1243
1244
|
t.children
|
|
1244
1245
|
)) : null;
|
|
1245
|
-
}, mt = "reports-tooltip",
|
|
1246
|
+
}, mt = "reports-tooltip", Kc = ({
|
|
1246
1247
|
title: t,
|
|
1247
1248
|
description: a,
|
|
1248
1249
|
children: r
|
|
@@ -1269,7 +1270,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1269
1270
|
"action-bar__menu-wrapper__button--active": "lc-ActionBar-module__action-bar__menu-wrapper__button--active___Hlzoc",
|
|
1270
1271
|
"action-bar__menu-wrapper__trigger-vertical": "lc-ActionBar-module__action-bar__menu-wrapper__trigger-vertical___84WL1",
|
|
1271
1272
|
"action-bar--vertical": "lc-ActionBar-module__action-bar--vertical___tMzLJ"
|
|
1272
|
-
}, xt = "action-bar__items",
|
|
1273
|
+
}, xt = "action-bar__items", i_ = ({
|
|
1273
1274
|
option: t,
|
|
1274
1275
|
menuItemsKeys: a,
|
|
1275
1276
|
activeOptionKey: r,
|
|
@@ -1319,7 +1320,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1319
1320
|
icon: t.element
|
|
1320
1321
|
}
|
|
1321
1322
|
);
|
|
1322
|
-
}, Ze = "action-bar",
|
|
1323
|
+
}, Ze = "action-bar", Jc = ({
|
|
1323
1324
|
className: t,
|
|
1324
1325
|
id: a = "action-bar-area",
|
|
1325
1326
|
type: r = "menu",
|
|
@@ -1363,7 +1364,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1363
1364
|
(f) => b.find(($) => $ === f.key)
|
|
1364
1365
|
).map((f) => ({
|
|
1365
1366
|
key: f.key,
|
|
1366
|
-
element: /* @__PURE__ */ e.createElement(
|
|
1367
|
+
element: /* @__PURE__ */ e.createElement(qr, { leftNode: f.element }, f.label),
|
|
1367
1368
|
onClick: f.onClick
|
|
1368
1369
|
})), g = _.filter((b) => l.find((k) => k === b.key)).find((b) => b.key === o);
|
|
1369
1370
|
return /* @__PURE__ */ e.createElement("div", { id: a, className: i }, /* @__PURE__ */ e.createElement(
|
|
@@ -1374,7 +1375,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1374
1375
|
})
|
|
1375
1376
|
},
|
|
1376
1377
|
_.map((b) => /* @__PURE__ */ e.createElement(
|
|
1377
|
-
|
|
1378
|
+
i_,
|
|
1378
1379
|
{
|
|
1379
1380
|
option: b,
|
|
1380
1381
|
menuItemsKeys: l,
|
|
@@ -1383,7 +1384,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1383
1384
|
}
|
|
1384
1385
|
))
|
|
1385
1386
|
), u && /* @__PURE__ */ e.createElement("div", { className: ne[d] }, /* @__PURE__ */ e.createElement(
|
|
1386
|
-
|
|
1387
|
+
Wr,
|
|
1387
1388
|
{
|
|
1388
1389
|
placement: c ? "left-end" : "bottom-end",
|
|
1389
1390
|
options: v(l),
|
|
@@ -1399,7 +1400,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1399
1400
|
),
|
|
1400
1401
|
kind: "plain",
|
|
1401
1402
|
icon: /* @__PURE__ */ e.createElement(
|
|
1402
|
-
|
|
1403
|
+
S,
|
|
1403
1404
|
{
|
|
1404
1405
|
source: c ? Ga : Et,
|
|
1405
1406
|
kind: "primary"
|
|
@@ -1419,14 +1420,14 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1419
1420
|
)
|
|
1420
1421
|
}
|
|
1421
1422
|
)));
|
|
1422
|
-
},
|
|
1423
|
-
alert:
|
|
1424
|
-
alert__icon:
|
|
1425
|
-
alert__content:
|
|
1426
|
-
alert__content__wrapper:
|
|
1427
|
-
alert__content__wrapper__text:
|
|
1428
|
-
alert__content__wrapper__cta:
|
|
1429
|
-
alert__content__wrapper__cta__link:
|
|
1423
|
+
}, d_ = "lc-Alert-module__alert___HBTns", u_ = "lc-Alert-module__alert__icon___8TaAH", m_ = "lc-Alert-module__alert__content___9nZdf", p_ = "lc-Alert-module__alert__content__wrapper___aLBkP", g_ = "lc-Alert-module__alert__content__wrapper__text___HDMbR", b_ = "lc-Alert-module__alert__content__wrapper__cta___9L-oE", f_ = "lc-Alert-module__alert__content__wrapper__cta__link___D9Igz", ve = {
|
|
1424
|
+
alert: d_,
|
|
1425
|
+
alert__icon: u_,
|
|
1426
|
+
alert__content: m_,
|
|
1427
|
+
alert__content__wrapper: p_,
|
|
1428
|
+
alert__content__wrapper__text: g_,
|
|
1429
|
+
alert__content__wrapper__cta: b_,
|
|
1430
|
+
alert__content__wrapper__cta__link: f_,
|
|
1430
1431
|
"alert__close-icon": "lc-Alert-module__alert__close-icon___rYxVy",
|
|
1431
1432
|
"alert--small": "lc-Alert-module__alert--small___Fyk-v",
|
|
1432
1433
|
"alert--medium": "lc-Alert-module__alert--medium___ItZWT",
|
|
@@ -1434,7 +1435,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1434
1435
|
"alert--warning": "lc-Alert-module__alert--warning___MubhD",
|
|
1435
1436
|
"alert--success": "lc-Alert-module__alert--success___fPtlZ",
|
|
1436
1437
|
"alert--error": "lc-Alert-module__alert--error___DKPo0"
|
|
1437
|
-
},
|
|
1438
|
+
}, v_ = {
|
|
1438
1439
|
info: {
|
|
1439
1440
|
source: oa,
|
|
1440
1441
|
kind: "link"
|
|
@@ -1451,7 +1452,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1451
1452
|
source: Va,
|
|
1452
1453
|
kind: "error"
|
|
1453
1454
|
}
|
|
1454
|
-
},
|
|
1455
|
+
}, he = "alert", jc = (n) => {
|
|
1455
1456
|
var s = n, {
|
|
1456
1457
|
children: t,
|
|
1457
1458
|
className: a,
|
|
@@ -1459,7 +1460,7 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1459
1460
|
secondaryButton: _,
|
|
1460
1461
|
kind: o = "info",
|
|
1461
1462
|
onClose: c
|
|
1462
|
-
} = s, l =
|
|
1463
|
+
} = s, l = I(s, [
|
|
1463
1464
|
"children",
|
|
1464
1465
|
"className",
|
|
1465
1466
|
"primaryButton",
|
|
@@ -1468,10 +1469,10 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1468
1469
|
"onClose"
|
|
1469
1470
|
]);
|
|
1470
1471
|
const i = e.useRef(null), [d, p] = e.useState(null), u = m(
|
|
1471
|
-
he
|
|
1472
|
-
|
|
1473
|
-
d === "medium" &&
|
|
1474
|
-
d === "small" &&
|
|
1472
|
+
ve[he],
|
|
1473
|
+
ve[`${he}--${o}`],
|
|
1474
|
+
d === "medium" && ve[`${he}--medium`],
|
|
1475
|
+
d === "small" && ve[`${he}--small`],
|
|
1475
1476
|
a
|
|
1476
1477
|
);
|
|
1477
1478
|
return e.useEffect(() => {
|
|
@@ -1479,23 +1480,23 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1479
1480
|
h();
|
|
1480
1481
|
}, 500);
|
|
1481
1482
|
return window.addEventListener("resize", v), h(), () => window.removeEventListener("resize", v);
|
|
1482
|
-
}), /* @__PURE__ */ e.createElement("div", y({ ref: i, className: u }, l), /* @__PURE__ */ e.createElement("div", { className:
|
|
1483
|
-
|
|
1484
|
-
|
|
1483
|
+
}), /* @__PURE__ */ e.createElement("div", y({ ref: i, className: u }, l), /* @__PURE__ */ e.createElement("div", { className: ve[`${he}__content`] }, /* @__PURE__ */ e.createElement("div", { className: ve[`${he}__content__wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1484
|
+
S,
|
|
1485
|
+
T(y({}, v_[o]), {
|
|
1485
1486
|
size: "large",
|
|
1486
|
-
className:
|
|
1487
|
+
className: ve[`${he}__icon`]
|
|
1487
1488
|
})
|
|
1488
1489
|
), /* @__PURE__ */ e.createElement(
|
|
1489
1490
|
M,
|
|
1490
1491
|
{
|
|
1491
1492
|
as: "div",
|
|
1492
|
-
className:
|
|
1493
|
+
className: ve[`${he}__content__wrapper__text`]
|
|
1493
1494
|
},
|
|
1494
1495
|
t
|
|
1495
|
-
)), (r || _) && /* @__PURE__ */ e.createElement("div", { className:
|
|
1496
|
+
)), (r || _) && /* @__PURE__ */ e.createElement("div", { className: ve[`${he}__content__wrapper__cta`] }, r && /* @__PURE__ */ e.createElement(G, { kind: "high-contrast", onClick: r.handleClick }, r.label), _ && /* @__PURE__ */ e.createElement(
|
|
1496
1497
|
G,
|
|
1497
1498
|
{
|
|
1498
|
-
className:
|
|
1499
|
+
className: ve[`${he}__content__wrapper__cta__link`],
|
|
1499
1500
|
kind: "text",
|
|
1500
1501
|
onClick: _.handleClick
|
|
1501
1502
|
},
|
|
@@ -1504,10 +1505,10 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1504
1505
|
G,
|
|
1505
1506
|
{
|
|
1506
1507
|
type: "button",
|
|
1507
|
-
className:
|
|
1508
|
+
className: ve[`${he}__close-icon`],
|
|
1508
1509
|
size: "compact",
|
|
1509
1510
|
kind: "plain",
|
|
1510
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
1511
|
+
icon: /* @__PURE__ */ e.createElement(S, { source: Ce }),
|
|
1511
1512
|
onClick: c
|
|
1512
1513
|
}
|
|
1513
1514
|
));
|
|
@@ -1515,13 +1516,13 @@ const Na = 8, xa = "guide-tooltip", Sa = (t, a) => new n_(t, a), Yc = (t) => {
|
|
|
1515
1516
|
{ length: 10 },
|
|
1516
1517
|
(t, a) => `--surface-avatar-${a + 1}`
|
|
1517
1518
|
);
|
|
1518
|
-
function
|
|
1519
|
+
function h_(t) {
|
|
1519
1520
|
if (!t)
|
|
1520
1521
|
return;
|
|
1521
1522
|
const a = t.split("").reduce((r, _) => r + _.charCodeAt(0), 0);
|
|
1522
1523
|
return `var(${Da[a % Da.length]})`;
|
|
1523
1524
|
}
|
|
1524
|
-
function
|
|
1525
|
+
function k_(t = "", a = 2) {
|
|
1525
1526
|
const r = t.split(/\s+/);
|
|
1526
1527
|
if (a < 1)
|
|
1527
1528
|
return "";
|
|
@@ -1532,7 +1533,7 @@ function h_(t = "", a = 2) {
|
|
|
1532
1533
|
_.push(r[o].charAt(0));
|
|
1533
1534
|
return _.join("").toUpperCase();
|
|
1534
1535
|
}
|
|
1535
|
-
function
|
|
1536
|
+
function y_(t) {
|
|
1536
1537
|
let a = t;
|
|
1537
1538
|
if (t.startsWith("var(--") && t.endsWith(")")) {
|
|
1538
1539
|
const r = t.slice(4, -1);
|
|
@@ -1540,9 +1541,9 @@ function k_(t) {
|
|
|
1540
1541
|
}
|
|
1541
1542
|
return a && ga(a, "#FFFFFF") > 3 ? "var(--color-white)" : "var(--color-black)";
|
|
1542
1543
|
}
|
|
1543
|
-
const
|
|
1544
|
-
avatar:
|
|
1545
|
-
avatar__status:
|
|
1544
|
+
const E_ = "lc-Avatar-module__avatar___1zTCE", $_ = "lc-Avatar-module__avatar__status___nX2Ls", w_ = "lc-Avatar-module__avatar__rim___RCQ8Q", C_ = "lc-Avatar-module__avatar__image___YqfqE", ie = {
|
|
1545
|
+
avatar: E_,
|
|
1546
|
+
avatar__status: $_,
|
|
1546
1547
|
"avatar__status--available": "lc-Avatar-module__avatar__status--available___tcpFg",
|
|
1547
1548
|
"avatar__status--unavailable": "lc-Avatar-module__avatar__status--unavailable___ciauF",
|
|
1548
1549
|
"avatar__status--unknown": "lc-Avatar-module__avatar__status--unknown___MBaGB",
|
|
@@ -1557,7 +1558,7 @@ const y_ = "lc-Avatar-module__avatar___1zTCE", E_ = "lc-Avatar-module__avatar__s
|
|
|
1557
1558
|
"avatar__status--xxlarge": "lc-Avatar-module__avatar__status--xxlarge___crG9D",
|
|
1558
1559
|
"avatar__status--xxxlarge": "lc-Avatar-module__avatar__status--xxxlarge___Iv61X",
|
|
1559
1560
|
"avatar__status--rounded-square": "lc-Avatar-module__avatar__status--rounded-square___-My1P",
|
|
1560
|
-
avatar__rim:
|
|
1561
|
+
avatar__rim: w_,
|
|
1561
1562
|
"avatar__rim--xxxsmall": "lc-Avatar-module__avatar__rim--xxxsmall___0CH9D",
|
|
1562
1563
|
"avatar__rim--xxsmall": "lc-Avatar-module__avatar__rim--xxsmall___Mde0K",
|
|
1563
1564
|
"avatar__rim--xsmall": "lc-Avatar-module__avatar__rim--xsmall___LAN-b",
|
|
@@ -1567,7 +1568,7 @@ const y_ = "lc-Avatar-module__avatar___1zTCE", E_ = "lc-Avatar-module__avatar__s
|
|
|
1567
1568
|
"avatar__rim--xlarge": "lc-Avatar-module__avatar__rim--xlarge___CY0kN",
|
|
1568
1569
|
"avatar__rim--xxlarge": "lc-Avatar-module__avatar__rim--xxlarge___tE053",
|
|
1569
1570
|
"avatar__rim--xxxlarge": "lc-Avatar-module__avatar__rim--xxxlarge___amlGP",
|
|
1570
|
-
avatar__image:
|
|
1571
|
+
avatar__image: C_,
|
|
1571
1572
|
"avatar__icon--xxxsmall": "lc-Avatar-module__avatar__icon--xxxsmall___KaoMa",
|
|
1572
1573
|
"avatar__icon--xxsmall": "lc-Avatar-module__avatar__icon--xxsmall___NJJNV",
|
|
1573
1574
|
"avatar__icon--xsmall": "lc-Avatar-module__avatar__icon--xsmall___yHEZK",
|
|
@@ -1588,7 +1589,7 @@ const y_ = "lc-Avatar-module__avatar___1zTCE", E_ = "lc-Avatar-module__avatar__s
|
|
|
1588
1589
|
"avatar--xlarge": "lc-Avatar-module__avatar--xlarge___zwgeW",
|
|
1589
1590
|
"avatar--xxlarge": "lc-Avatar-module__avatar--xxlarge___Ur0ul",
|
|
1590
1591
|
"avatar--xxxlarge": "lc-Avatar-module__avatar--xxxlarge___Z-54U"
|
|
1591
|
-
},
|
|
1592
|
+
}, X = "avatar", N_ = ({
|
|
1592
1593
|
alt: t,
|
|
1593
1594
|
className: a,
|
|
1594
1595
|
color: r,
|
|
@@ -1600,67 +1601,67 @@ const y_ = "lc-Avatar-module__avatar___1zTCE", E_ = "lc-Avatar-module__avatar__s
|
|
|
1600
1601
|
type: s,
|
|
1601
1602
|
withRim: i = !1
|
|
1602
1603
|
}) => {
|
|
1603
|
-
const d = s === "image" && !c, [p, u] = e.useState(d), h = s === "image" && !!c && !p, v = s === "text", g = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, b =
|
|
1604
|
-
[ie[
|
|
1605
|
-
[ie[`${
|
|
1606
|
-
[ie[`${
|
|
1607
|
-
[ie[`${
|
|
1604
|
+
const d = s === "image" && !c, [p, u] = e.useState(d), h = s === "image" && !!c && !p, v = s === "text", g = ["xxxsmall", "xxsmall", "xsmall"].includes(o) ? 1 : 2, b = k_(n, g), k = r || h_(n), f = k ? y_(k) : void 0, $ = v ? { backgroundColor: k } : {}, w = m(y({
|
|
1605
|
+
[ie[X]]: !0,
|
|
1606
|
+
[ie[`${X}--${_}`]]: !0,
|
|
1607
|
+
[ie[`${X}--${o}`]]: !0,
|
|
1608
|
+
[ie[`${X}--with-rim`]]: i
|
|
1608
1609
|
}, a ? { [`${a}`]: a } : {})), F = m(
|
|
1609
|
-
ie[`${
|
|
1610
|
-
ie[`${
|
|
1611
|
-
ie[`${
|
|
1612
|
-
...l ? [ie[`${
|
|
1610
|
+
ie[`${X}__status`],
|
|
1611
|
+
ie[`${X}__status--${_}`],
|
|
1612
|
+
ie[`${X}__status--${o}`],
|
|
1613
|
+
...l ? [ie[`${X}__status--${l}`]] : []
|
|
1613
1614
|
), E = m(
|
|
1614
|
-
ie[`${
|
|
1615
|
-
ie[`${
|
|
1616
|
-
),
|
|
1617
|
-
ie[`${
|
|
1618
|
-
ie[`${
|
|
1619
|
-
),
|
|
1615
|
+
ie[`${X}__icon`],
|
|
1616
|
+
ie[`${X}__icon--${o}`]
|
|
1617
|
+
), B = m(
|
|
1618
|
+
ie[`${X}__rim`],
|
|
1619
|
+
ie[`${X}__rim--${o}`]
|
|
1620
|
+
), D = e.useCallback(() => u(!0), []);
|
|
1620
1621
|
return e.useEffect(() => {
|
|
1621
1622
|
u(d);
|
|
1622
1623
|
}, [d]), /* @__PURE__ */ e.createElement("div", { className: w, style: $ }, i && /* @__PURE__ */ e.createElement(
|
|
1623
1624
|
"div",
|
|
1624
1625
|
{
|
|
1625
|
-
"data-testid": `${
|
|
1626
|
-
className:
|
|
1626
|
+
"data-testid": `${X}__rim`,
|
|
1627
|
+
className: B
|
|
1627
1628
|
}
|
|
1628
1629
|
), l && /* @__PURE__ */ e.createElement(
|
|
1629
1630
|
"div",
|
|
1630
1631
|
{
|
|
1631
|
-
"data-testid": `${
|
|
1632
|
+
"data-testid": `${X}__status`,
|
|
1632
1633
|
className: F
|
|
1633
1634
|
}
|
|
1634
1635
|
), h && /* @__PURE__ */ e.createElement(
|
|
1635
1636
|
"img",
|
|
1636
1637
|
{
|
|
1637
|
-
className: ie[`${
|
|
1638
|
+
className: ie[`${X}__image`],
|
|
1638
1639
|
src: c,
|
|
1639
1640
|
alt: t,
|
|
1640
|
-
onError:
|
|
1641
|
+
onError: D
|
|
1641
1642
|
}
|
|
1642
1643
|
), v && /* @__PURE__ */ e.createElement("span", { style: { color: f } }, b), p && /* @__PURE__ */ e.createElement(
|
|
1643
|
-
|
|
1644
|
+
S,
|
|
1644
1645
|
{
|
|
1645
|
-
"data-testid": `${
|
|
1646
|
+
"data-testid": `${X}__icon`,
|
|
1646
1647
|
className: E,
|
|
1647
|
-
source:
|
|
1648
|
+
source: Cr
|
|
1648
1649
|
}
|
|
1649
1650
|
));
|
|
1650
1651
|
};
|
|
1651
|
-
function
|
|
1652
|
+
function x_(t, a) {
|
|
1652
1653
|
return t > a ? `${a}+` : `${t}`;
|
|
1653
1654
|
}
|
|
1654
|
-
const
|
|
1655
|
-
badge:
|
|
1656
|
-
badge__dot:
|
|
1655
|
+
const S_ = "lc-Badge-module__badge___GhLnu", D_ = "lc-Badge-module__badge__dot___z6RO6", St = {
|
|
1656
|
+
badge: S_,
|
|
1657
|
+
badge__dot: D_,
|
|
1657
1658
|
"badge--large": "lc-Badge-module__badge--large___B131q",
|
|
1658
1659
|
"badge--medium": "lc-Badge-module__badge--medium___TDU8a",
|
|
1659
1660
|
"badge--compact": "lc-Badge-module__badge--compact___9xJ4y",
|
|
1660
1661
|
"badge--primary": "lc-Badge-module__badge--primary___8LRpp",
|
|
1661
1662
|
"badge--secondary": "lc-Badge-module__badge--secondary___JjNIJ",
|
|
1662
1663
|
"badge--tertiary": "lc-Badge-module__badge--tertiary___e83wV"
|
|
1663
|
-
}, Dt = "badge",
|
|
1664
|
+
}, Dt = "badge", T_ = (n) => {
|
|
1664
1665
|
var s = n, {
|
|
1665
1666
|
className: t,
|
|
1666
1667
|
count: a = 0,
|
|
@@ -1668,7 +1669,7 @@ const x_ = "lc-Badge-module__badge___GhLnu", S_ = "lc-Badge-module__badge__dot__
|
|
|
1668
1669
|
kind: _ = "primary",
|
|
1669
1670
|
size: o = "medium",
|
|
1670
1671
|
type: c = "counter"
|
|
1671
|
-
} = s, l =
|
|
1672
|
+
} = s, l = I(s, [
|
|
1672
1673
|
"className",
|
|
1673
1674
|
"count",
|
|
1674
1675
|
"max",
|
|
@@ -1682,31 +1683,31 @@ const x_ = "lc-Badge-module__badge___GhLnu", S_ = "lc-Badge-module__badge__dot__
|
|
|
1682
1683
|
St[`${Dt}--${_}`],
|
|
1683
1684
|
St[`${Dt}--${o}`]
|
|
1684
1685
|
), d = {
|
|
1685
|
-
counter:
|
|
1686
|
+
counter: x_(a, r),
|
|
1686
1687
|
alert: "!",
|
|
1687
1688
|
dot: /* @__PURE__ */ e.createElement("span", { className: St[`${Dt}__dot`] })
|
|
1688
1689
|
}[c];
|
|
1689
1690
|
return /* @__PURE__ */ e.createElement("span", y({ className: i }, l), d);
|
|
1690
1691
|
};
|
|
1691
|
-
function
|
|
1692
|
+
function B_() {
|
|
1692
1693
|
}
|
|
1693
|
-
const
|
|
1694
|
+
const A_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
1694
1695
|
"segmented-control": "lc-SegmentedControl-module__segmented-control___LHWSk",
|
|
1695
|
-
btn:
|
|
1696
|
+
btn: A_,
|
|
1696
1697
|
"btn--active": "lc-SegmentedControl-module__btn--active___Za-th",
|
|
1697
1698
|
"btn--compact": "lc-SegmentedControl-module__btn--compact___gcSwq",
|
|
1698
1699
|
"btn--medium": "lc-SegmentedControl-module__btn--medium___w3UzC",
|
|
1699
1700
|
"btn--large": "lc-SegmentedControl-module__btn--large___yHPw4"
|
|
1700
|
-
},
|
|
1701
|
+
}, I_ = "segmented-control", Qc = ({
|
|
1701
1702
|
size: t = "medium",
|
|
1702
1703
|
buttons: a,
|
|
1703
1704
|
className: r,
|
|
1704
1705
|
initialId: _,
|
|
1705
1706
|
currentId: o,
|
|
1706
1707
|
fullWidth: c = !1,
|
|
1707
|
-
onButtonClick: l =
|
|
1708
|
+
onButtonClick: l = B_
|
|
1708
1709
|
}) => {
|
|
1709
|
-
const n = m(Tt[
|
|
1710
|
+
const n = m(Tt[I_], r), [s, i] = e.useState(() => _), d = typeof o == "string";
|
|
1710
1711
|
e.useEffect(() => {
|
|
1711
1712
|
d && i(o);
|
|
1712
1713
|
}, [o]);
|
|
@@ -1733,21 +1734,21 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1733
1734
|
);
|
|
1734
1735
|
});
|
|
1735
1736
|
return /* @__PURE__ */ e.createElement("div", { role: "group", className: n }, u);
|
|
1736
|
-
},
|
|
1737
|
-
card:
|
|
1738
|
-
card__header:
|
|
1739
|
-
card__header__image:
|
|
1740
|
-
card__header__heading:
|
|
1741
|
-
card__header__heading__title:
|
|
1742
|
-
card__header__heading__description:
|
|
1737
|
+
}, P_ = "lc-Card-module__card___GqMm2", F_ = "lc-Card-module__card__header___0ptfD", R_ = "lc-Card-module__card__header__image___QMwSu", M_ = "lc-Card-module__card__header__heading___Wkikx", L_ = "lc-Card-module__card__header__heading__title___Uxi8s", O_ = "lc-Card-module__card__header__heading__description___6LnOK", H_ = "lc-Card-module__card__content___KuDcc", z_ = "lc-Card-module__card__actions___q9sAo", G_ = "lc-Card-module__card__actions__line___TF1bt", U_ = "lc-Card-module__card__actions__buttons___PDMMR", de = {
|
|
1738
|
+
card: P_,
|
|
1739
|
+
card__header: F_,
|
|
1740
|
+
card__header__image: R_,
|
|
1741
|
+
card__header__heading: M_,
|
|
1742
|
+
card__header__heading__title: L_,
|
|
1743
|
+
card__header__heading__description: O_,
|
|
1743
1744
|
"card__header__no-image": "lc-Card-module__card__header__no-image___UcnNY",
|
|
1744
|
-
card__content:
|
|
1745
|
+
card__content: H_,
|
|
1745
1746
|
"card__expanded-content": "lc-Card-module__card__expanded-content___yB-QL",
|
|
1746
|
-
card__actions:
|
|
1747
|
-
card__actions__line:
|
|
1748
|
-
card__actions__buttons:
|
|
1747
|
+
card__actions: z_,
|
|
1748
|
+
card__actions__line: G_,
|
|
1749
|
+
card__actions__buttons: U_,
|
|
1749
1750
|
"card__actions__buttons-expander": "lc-Card-module__card__actions__buttons-expander___lz4h-"
|
|
1750
|
-
}, yt = "card", Ht = `${yt}__header`, Vt = `${Ht}__heading`, Bt = `${yt}__actions`,
|
|
1751
|
+
}, yt = "card", Ht = `${yt}__header`, Vt = `${Ht}__heading`, Bt = `${yt}__actions`, W_ = `${Ht}__no-image`, Zc = (i) => {
|
|
1751
1752
|
var d = i, {
|
|
1752
1753
|
alt: t,
|
|
1753
1754
|
buttonsOptions: a = [],
|
|
@@ -1757,7 +1758,7 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1757
1758
|
expandableContent: c,
|
|
1758
1759
|
src: l,
|
|
1759
1760
|
title: n
|
|
1760
|
-
} = d, s =
|
|
1761
|
+
} = d, s = I(d, [
|
|
1761
1762
|
"alt",
|
|
1762
1763
|
"buttonsOptions",
|
|
1763
1764
|
"children",
|
|
@@ -1767,7 +1768,7 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1767
1768
|
"src",
|
|
1768
1769
|
"title"
|
|
1769
1770
|
]);
|
|
1770
|
-
const [p, u] = e.useState(!1), h = p ? zt : Et, v = p ? "Hide" : "Show more", g = (a == null ? void 0 : a.length) > 0, b = !!c, k = g || b, f = n, $ = l, w = $ ? "" : de[
|
|
1771
|
+
const [p, u] = e.useState(!1), h = p ? zt : Et, v = p ? "Hide" : "Show more", g = (a == null ? void 0 : a.length) > 0, b = !!c, k = g || b, f = n, $ = l, w = $ ? "" : de[W_];
|
|
1771
1772
|
return /* @__PURE__ */ e.createElement("div", y({ className: m(de[yt], _) }, s), f && /* @__PURE__ */ e.createElement("div", { className: m(de[Ht], w) }, $ && /* @__PURE__ */ e.createElement(
|
|
1772
1773
|
"img",
|
|
1773
1774
|
{
|
|
@@ -1784,43 +1785,43 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1784
1785
|
},
|
|
1785
1786
|
c
|
|
1786
1787
|
), k && /* @__PURE__ */ e.createElement("div", { className: de[Bt] }, /* @__PURE__ */ e.createElement("div", { className: de[`${Bt}__line`] }), /* @__PURE__ */ e.createElement("div", { className: de[`${Bt}__buttons`] }, g && a.map(
|
|
1787
|
-
({ kind: F, onClick: E, children:
|
|
1788
|
+
({ kind: F, onClick: E, children: B }) => /* @__PURE__ */ e.createElement(G, { size: "compact", kind: F, onClick: E }, B)
|
|
1788
1789
|
), b && /* @__PURE__ */ e.createElement(
|
|
1789
1790
|
G,
|
|
1790
1791
|
{
|
|
1791
1792
|
className: de[`${Bt}__buttons-expander`],
|
|
1792
1793
|
kind: "link",
|
|
1793
1794
|
iconPosition: "right",
|
|
1794
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
1795
|
+
icon: /* @__PURE__ */ e.createElement(S, { source: h }),
|
|
1795
1796
|
onClick: () => u(!p)
|
|
1796
1797
|
},
|
|
1797
1798
|
v
|
|
1798
1799
|
))));
|
|
1799
|
-
},
|
|
1800
|
+
}, V_ = {
|
|
1800
1801
|
"field-description": "lc-FieldDescription-module__field-description___IcRDH"
|
|
1801
|
-
},
|
|
1802
|
+
}, Y_ = "field-description", Gt = (_) => {
|
|
1802
1803
|
var o = _, {
|
|
1803
1804
|
children: t,
|
|
1804
1805
|
className: a = ""
|
|
1805
|
-
} = o, r =
|
|
1806
|
+
} = o, r = I(o, [
|
|
1806
1807
|
"children",
|
|
1807
1808
|
"className"
|
|
1808
1809
|
]);
|
|
1809
|
-
const c = m(
|
|
1810
|
-
return /* @__PURE__ */ e.createElement(M,
|
|
1811
|
-
},
|
|
1812
|
-
checkbox:
|
|
1813
|
-
checkbox__label:
|
|
1814
|
-
checkbox__text:
|
|
1815
|
-
checkbox__input:
|
|
1816
|
-
checkbox__checkmark:
|
|
1810
|
+
const c = m(V_[Y_], a);
|
|
1811
|
+
return /* @__PURE__ */ e.createElement(M, T(y({ as: "span", size: "sm" }, r), { className: c }), t);
|
|
1812
|
+
}, q_ = "lc-Checkbox-module__checkbox___G7nTf", K_ = "lc-Checkbox-module__checkbox__label___-o01x", J_ = "lc-Checkbox-module__checkbox__text___P2SIq", j_ = "lc-Checkbox-module__checkbox__input___YLbVF", Q_ = "lc-Checkbox-module__checkbox__checkmark___16pfY", Z_ = "lc-Checkbox-module__checkbox__square___MHUyd", X_ = "lc-Checkbox-module__checkbox__helper___YSJ-n", Ve = {
|
|
1813
|
+
checkbox: q_,
|
|
1814
|
+
checkbox__label: K_,
|
|
1815
|
+
checkbox__text: J_,
|
|
1816
|
+
checkbox__input: j_,
|
|
1817
|
+
checkbox__checkmark: Q_,
|
|
1817
1818
|
"checkbox--selected": "lc-Checkbox-module__checkbox--selected___S2vqY",
|
|
1818
|
-
checkbox__square:
|
|
1819
|
+
checkbox__square: Z_,
|
|
1819
1820
|
"checkbox--disabled": "lc-Checkbox-module__checkbox--disabled___-lAqW",
|
|
1820
|
-
checkbox__helper:
|
|
1821
|
-
}, Ye = "checkbox",
|
|
1821
|
+
checkbox__helper: X_
|
|
1822
|
+
}, Ye = "checkbox", Xc = e.forwardRef(
|
|
1822
1823
|
(n, l) => {
|
|
1823
|
-
var s = n, { checked: t, disabled: a, children: r, description: _, className: o } = s, c =
|
|
1824
|
+
var s = n, { checked: t, disabled: a, children: r, description: _, className: o } = s, c = I(s, ["checked", "disabled", "children", "description", "className"]);
|
|
1824
1825
|
return /* @__PURE__ */ e.createElement(
|
|
1825
1826
|
"div",
|
|
1826
1827
|
{
|
|
@@ -1831,7 +1832,7 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1831
1832
|
},
|
|
1832
1833
|
/* @__PURE__ */ e.createElement("label", { className: Ve[`${Ye}__label`] }, /* @__PURE__ */ e.createElement(
|
|
1833
1834
|
"input",
|
|
1834
|
-
|
|
1835
|
+
T(y({}, c), {
|
|
1835
1836
|
ref: l,
|
|
1836
1837
|
checked: t,
|
|
1837
1838
|
disabled: a,
|
|
@@ -1842,7 +1843,7 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1842
1843
|
_ && /* @__PURE__ */ e.createElement(Gt, { className: Ve[`${Ye}__helper`] }, _)
|
|
1843
1844
|
);
|
|
1844
1845
|
}
|
|
1845
|
-
),
|
|
1846
|
+
), x = {
|
|
1846
1847
|
"date-picker": "lc-DatePicker-module__date-picker___9AqJ2",
|
|
1847
1848
|
"date-picker--interaction-disabled": "lc-DatePicker-module__date-picker--interaction-disabled___-zn8o",
|
|
1848
1849
|
"date-picker__day": "lc-DatePicker-module__date-picker__day___ZTSw9",
|
|
@@ -1877,7 +1878,7 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1877
1878
|
"date-picker--range__select-input": "lc-DatePicker-module__date-picker--range__select-input___6pyj3",
|
|
1878
1879
|
"date-picker--range__calendars-wrapper": "lc-DatePicker-module__date-picker--range__calendars-wrapper___8nWaW",
|
|
1879
1880
|
"date-picker__navbar-buttons-wrapper": "lc-DatePicker-module__date-picker__navbar-buttons-wrapper___Hnksb"
|
|
1880
|
-
}, Ta = "date-picker",
|
|
1881
|
+
}, Ta = "date-picker", eo = (t) => {
|
|
1881
1882
|
const {
|
|
1882
1883
|
onPreviousClick: a,
|
|
1883
1884
|
onMonthChange: r,
|
|
@@ -1915,7 +1916,7 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1915
1916
|
);
|
|
1916
1917
|
return s === 2 && ea(k, p) ? r(lt(k, 1)) : r(k);
|
|
1917
1918
|
};
|
|
1918
|
-
return /* @__PURE__ */ e.createElement("div", { className: l }, /* @__PURE__ */ e.createElement("div", { className:
|
|
1919
|
+
return /* @__PURE__ */ e.createElement("div", { className: l }, /* @__PURE__ */ e.createElement("div", { className: x[`${Ta}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1919
1920
|
"button",
|
|
1920
1921
|
{
|
|
1921
1922
|
"data-testid": "date-picker-prev-year-button",
|
|
@@ -1925,7 +1926,7 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1925
1926
|
}),
|
|
1926
1927
|
onClick: v
|
|
1927
1928
|
},
|
|
1928
|
-
/* @__PURE__ */ e.createElement(
|
|
1929
|
+
/* @__PURE__ */ e.createElement(S, { source: Nr, kind: "subtle" })
|
|
1929
1930
|
), /* @__PURE__ */ e.createElement(
|
|
1930
1931
|
"button",
|
|
1931
1932
|
{
|
|
@@ -1936,8 +1937,8 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1936
1937
|
}),
|
|
1937
1938
|
onClick: u
|
|
1938
1939
|
},
|
|
1939
|
-
/* @__PURE__ */ e.createElement(
|
|
1940
|
-
)), /* @__PURE__ */ e.createElement("div", { className:
|
|
1940
|
+
/* @__PURE__ */ e.createElement(S, { source: Ga, kind: "subtle" })
|
|
1941
|
+
)), /* @__PURE__ */ e.createElement("div", { className: x[`${Ta}__navbar-buttons-wrapper`] }, /* @__PURE__ */ e.createElement(
|
|
1941
1942
|
"button",
|
|
1942
1943
|
{
|
|
1943
1944
|
"data-testid": "date-picker-next-month-button",
|
|
@@ -1947,7 +1948,7 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1947
1948
|
}),
|
|
1948
1949
|
onClick: h
|
|
1949
1950
|
},
|
|
1950
|
-
/* @__PURE__ */ e.createElement(
|
|
1951
|
+
/* @__PURE__ */ e.createElement(S, { source: Xt, kind: "subtle" })
|
|
1951
1952
|
), /* @__PURE__ */ e.createElement(
|
|
1952
1953
|
"button",
|
|
1953
1954
|
{
|
|
@@ -1958,30 +1959,30 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1958
1959
|
}),
|
|
1959
1960
|
onClick: g
|
|
1960
1961
|
},
|
|
1961
|
-
/* @__PURE__ */ e.createElement(
|
|
1962
|
+
/* @__PURE__ */ e.createElement(S, { source: xr, kind: "subtle" })
|
|
1962
1963
|
)));
|
|
1963
|
-
},
|
|
1964
|
+
}, P = "date-picker", tr = (t, a) => {
|
|
1964
1965
|
const { from: r, to: _ } = a;
|
|
1965
1966
|
return !(_ && !ta(t, _) && aa(t, _) || r && !ta(t, r) && !aa(t, r));
|
|
1966
|
-
}, ar = (t, a, r) => a ? t && !ea(t, a) || r && ea(a, r) ? lt(a, 1) : a : lt(r || /* @__PURE__ */ new Date(), 1),
|
|
1967
|
+
}, ar = (t, a, r) => a ? t && !ea(t, a) || r && ea(a, r) ? lt(a, 1) : a : lt(r || /* @__PURE__ */ new Date(), 1), to = (t, a) => {
|
|
1967
1968
|
const r = {
|
|
1968
|
-
[
|
|
1969
|
-
[
|
|
1970
|
-
[
|
|
1971
|
-
[
|
|
1969
|
+
[x[`${P}__day--monday`]]: { daysOfWeek: [1] },
|
|
1970
|
+
[x[`${P}__day--sunday`]]: { daysOfWeek: [0] },
|
|
1971
|
+
[x[`${P}__day--start`]]: t,
|
|
1972
|
+
[x[`${P}__day--end`]]: t
|
|
1972
1973
|
};
|
|
1973
1974
|
if (!a || !t)
|
|
1974
1975
|
return r;
|
|
1975
1976
|
const _ = Ja(a, t);
|
|
1976
|
-
return _ > 0 ?
|
|
1977
|
-
[
|
|
1978
|
-
}) : _ < 0 ?
|
|
1979
|
-
[
|
|
1977
|
+
return _ > 0 ? T(y({}, r), {
|
|
1978
|
+
[x[`${P}__day--end`]]: a
|
|
1979
|
+
}) : _ < 0 ? T(y({}, r), {
|
|
1980
|
+
[x[`${P}__day--start`]]: a
|
|
1980
1981
|
}) : r;
|
|
1981
1982
|
}, ht = (t, a) => {
|
|
1982
1983
|
const r = a.find((_) => _.id === t);
|
|
1983
1984
|
return r || void 0;
|
|
1984
|
-
}, Ba = (t, a) => !!(!t || t && a),
|
|
1985
|
+
}, Ba = (t, a) => !!(!t || t && a), ao = (t) => {
|
|
1985
1986
|
const a = {};
|
|
1986
1987
|
if (!t.initialSelectedItemKey)
|
|
1987
1988
|
return a;
|
|
@@ -1990,45 +1991,45 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
1990
1991
|
t.options
|
|
1991
1992
|
);
|
|
1992
1993
|
return r ? (a.selectedItem = t.initialSelectedItemKey, r.isManual && (t.initialFromDate && (a.from = t.initialFromDate), t.initialToDate && (a.to = t.initialToDate, a.temporaryTo = t.initialToDate)), a) : {};
|
|
1993
|
-
},
|
|
1994
|
+
}, ro = (t, a) => y({
|
|
1994
1995
|
container: m({
|
|
1995
|
-
[
|
|
1996
|
-
[
|
|
1996
|
+
[x[`${P}`]]: !0,
|
|
1997
|
+
[x[`${P}--range`]]: t
|
|
1997
1998
|
}),
|
|
1998
|
-
wrapper:
|
|
1999
|
-
interactionDisabled:
|
|
2000
|
-
months:
|
|
2001
|
-
month:
|
|
2002
|
-
navBar:
|
|
1999
|
+
wrapper: x[`${P}__wrapper`],
|
|
2000
|
+
interactionDisabled: x[`${P}--interaction-disabled`],
|
|
2001
|
+
months: x[`${P}__months`],
|
|
2002
|
+
month: x[`${P}__month`],
|
|
2003
|
+
navBar: x[`${P}__nav-bar`],
|
|
2003
2004
|
navButtonPrev: m(
|
|
2004
|
-
|
|
2005
|
-
|
|
2005
|
+
x[`${P}__nav-button`],
|
|
2006
|
+
x[`${P}__nav-button--prev`]
|
|
2006
2007
|
),
|
|
2007
2008
|
navButtonNext: m(
|
|
2008
|
-
|
|
2009
|
-
|
|
2009
|
+
x[`${P}__nav-button`],
|
|
2010
|
+
x[`${P}__nav-button--next`]
|
|
2010
2011
|
),
|
|
2011
|
-
navButtonInteractionDisabled:
|
|
2012
|
-
caption:
|
|
2013
|
-
weekdays:
|
|
2014
|
-
weekdaysRow:
|
|
2015
|
-
weekday:
|
|
2016
|
-
body:
|
|
2017
|
-
week:
|
|
2018
|
-
weekNumber:
|
|
2019
|
-
day:
|
|
2020
|
-
footer:
|
|
2021
|
-
todayButton:
|
|
2022
|
-
today:
|
|
2023
|
-
selected:
|
|
2024
|
-
disabled:
|
|
2025
|
-
outside:
|
|
2026
|
-
start:
|
|
2027
|
-
end:
|
|
2028
|
-
}, a), Aa = "date-picker",
|
|
2012
|
+
navButtonInteractionDisabled: x[`${P}__nav-button--interaction-disabled`],
|
|
2013
|
+
caption: x[`${P}__caption`],
|
|
2014
|
+
weekdays: x[`${P}__weekdays`],
|
|
2015
|
+
weekdaysRow: x[`${P}__weekdays-row`],
|
|
2016
|
+
weekday: x[`${P}__weekday`],
|
|
2017
|
+
body: x[`${P}__body`],
|
|
2018
|
+
week: x[`${P}__week`],
|
|
2019
|
+
weekNumber: x[`${P}__week-number`],
|
|
2020
|
+
day: x[`${P}__day`],
|
|
2021
|
+
footer: x[`${P}__footer`],
|
|
2022
|
+
todayButton: x[`${P}__today-button`],
|
|
2023
|
+
today: x[`${P}__day--today`],
|
|
2024
|
+
selected: x[`${P}__day--selected`],
|
|
2025
|
+
disabled: x[`${P}__day--disabled`],
|
|
2026
|
+
outside: x[`${P}__day--outside`],
|
|
2027
|
+
start: x[`${P}__day--start`],
|
|
2028
|
+
end: x[`${P}__day--end`]
|
|
2029
|
+
}, a), Aa = "date-picker", _o = (t) => {
|
|
2029
2030
|
const a = t.getDate();
|
|
2030
|
-
return /* @__PURE__ */ e.createElement("div", { className:
|
|
2031
|
-
},
|
|
2031
|
+
return /* @__PURE__ */ e.createElement("div", { className: x[`${Aa}__day-wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: x[`${Aa}__day-content`] }, a));
|
|
2032
|
+
}, oo = (t) => {
|
|
2032
2033
|
const k = t, {
|
|
2033
2034
|
classNames: a,
|
|
2034
2035
|
range: r,
|
|
@@ -2040,7 +2041,7 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
2040
2041
|
navbarElement: s,
|
|
2041
2042
|
renderDay: i,
|
|
2042
2043
|
innerRef: d
|
|
2043
|
-
} = k, p =
|
|
2044
|
+
} = k, p = I(k, [
|
|
2044
2045
|
"classNames",
|
|
2045
2046
|
"range",
|
|
2046
2047
|
"toMonth",
|
|
@@ -2070,14 +2071,14 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
2070
2071
|
let g = 1;
|
|
2071
2072
|
(l === 0 || l && l < 7) && (g = l);
|
|
2072
2073
|
const b = e.useMemo(
|
|
2073
|
-
() =>
|
|
2074
|
+
() => ro(r, a),
|
|
2074
2075
|
[r, a]
|
|
2075
2076
|
);
|
|
2076
2077
|
return /* @__PURE__ */ e.createElement(
|
|
2077
|
-
|
|
2078
|
+
zr,
|
|
2078
2079
|
y({
|
|
2079
2080
|
navbarElement: s || /* @__PURE__ */ e.createElement(
|
|
2080
|
-
|
|
2081
|
+
eo,
|
|
2081
2082
|
{
|
|
2082
2083
|
month: u,
|
|
2083
2084
|
classNames: b,
|
|
@@ -2094,15 +2095,15 @@ const B_ = "lc-SegmentedControl-module__btn___tfsvL", Tt = {
|
|
|
2094
2095
|
fromMonth: c,
|
|
2095
2096
|
firstDayOfWeek: g,
|
|
2096
2097
|
month: u,
|
|
2097
|
-
renderDay: i ||
|
|
2098
|
+
renderDay: i || _o
|
|
2098
2099
|
}, p)
|
|
2099
2100
|
);
|
|
2100
|
-
},
|
|
2101
|
-
(t, a) => /* @__PURE__ */ e.createElement(
|
|
2101
|
+
}, co = e.forwardRef(
|
|
2102
|
+
(t, a) => /* @__PURE__ */ e.createElement(oo, y({ innerRef: a }, t))
|
|
2102
2103
|
);
|
|
2103
|
-
|
|
2104
|
-
var
|
|
2105
|
-
const
|
|
2104
|
+
co.displayName = "DatePicker";
|
|
2105
|
+
var W = /* @__PURE__ */ ((t) => (t.NEW_SELECTED_ITEM = "NEW_SELECTED_ITEM", t.NEW_TEMPORARY_TO_VALUE = "NEW_TEMPORARY_TO_VALUE", t.CLEAR = "CLEAR", t.SET_FROM = "SET_FROM", t.SET_TO = "SET_TO", t.SELECT_FIRST_DAY = "SELECT_FIRST_DAY", t.SELECT_SECOND_DAY_AS_FROM = "SELECT_SECOND_DAY_AS_FROM", t.SELECT_SECOND_DAY_AS_TO = "SELECT_SECOND_DAY_AS_TO", t.CURRENT_MONTH_CHANGE = "CURRENT_MONTH_CHANGE", t))(W || {});
|
|
2106
|
+
const lo = (t) => {
|
|
2106
2107
|
const a = ar(
|
|
2107
2108
|
t.initialFromDate,
|
|
2108
2109
|
t.initialToDate,
|
|
@@ -2113,10 +2114,10 @@ const co = (t) => {
|
|
|
2113
2114
|
to: void 0,
|
|
2114
2115
|
temporaryTo: void 0,
|
|
2115
2116
|
currentMonth: a
|
|
2116
|
-
}),
|
|
2117
|
+
}), ao(t));
|
|
2117
2118
|
function o(c, l) {
|
|
2118
2119
|
switch (l.type) {
|
|
2119
|
-
case
|
|
2120
|
+
case W.NEW_SELECTED_ITEM:
|
|
2120
2121
|
return {
|
|
2121
2122
|
selectedItem: l.payload.selectedItem,
|
|
2122
2123
|
from: void 0,
|
|
@@ -2124,45 +2125,45 @@ const co = (t) => {
|
|
|
2124
2125
|
temporaryTo: void 0,
|
|
2125
2126
|
currentMonth: a
|
|
2126
2127
|
};
|
|
2127
|
-
case
|
|
2128
|
-
return
|
|
2128
|
+
case W.NEW_TEMPORARY_TO_VALUE:
|
|
2129
|
+
return T(y({}, c), {
|
|
2129
2130
|
temporaryTo: l.payload.date
|
|
2130
2131
|
});
|
|
2131
|
-
case
|
|
2132
|
-
return
|
|
2132
|
+
case W.SELECT_FIRST_DAY:
|
|
2133
|
+
return T(y({}, c), {
|
|
2133
2134
|
from: l.payload.date,
|
|
2134
2135
|
to: void 0,
|
|
2135
2136
|
temporaryTo: void 0
|
|
2136
2137
|
});
|
|
2137
|
-
case
|
|
2138
|
-
return
|
|
2138
|
+
case W.SELECT_SECOND_DAY_AS_FROM:
|
|
2139
|
+
return T(y({}, c), {
|
|
2139
2140
|
from: l.payload.date,
|
|
2140
2141
|
to: c.from,
|
|
2141
2142
|
temporaryTo: c.from
|
|
2142
2143
|
});
|
|
2143
|
-
case
|
|
2144
|
-
return
|
|
2144
|
+
case W.SELECT_SECOND_DAY_AS_TO:
|
|
2145
|
+
return T(y({}, c), {
|
|
2145
2146
|
to: l.payload.date,
|
|
2146
2147
|
temporaryTo: l.payload.date
|
|
2147
2148
|
});
|
|
2148
|
-
case
|
|
2149
|
-
return
|
|
2149
|
+
case W.CURRENT_MONTH_CHANGE:
|
|
2150
|
+
return T(y({}, c), {
|
|
2150
2151
|
currentMonth: l.payload.date
|
|
2151
2152
|
});
|
|
2152
|
-
case
|
|
2153
|
-
return
|
|
2153
|
+
case W.SET_FROM:
|
|
2154
|
+
return T(y({}, c), {
|
|
2154
2155
|
from: l.payload.date
|
|
2155
2156
|
});
|
|
2156
|
-
case
|
|
2157
|
-
return
|
|
2157
|
+
case W.SET_TO:
|
|
2158
|
+
return T(y({}, c), {
|
|
2158
2159
|
to: l.payload.date
|
|
2159
2160
|
});
|
|
2160
2161
|
default:
|
|
2161
2162
|
return c;
|
|
2162
2163
|
}
|
|
2163
2164
|
}
|
|
2164
|
-
return
|
|
2165
|
-
},
|
|
2165
|
+
return $r(o, _);
|
|
2166
|
+
}, no = ({
|
|
2166
2167
|
options: t,
|
|
2167
2168
|
initialSelectedItemKey: a,
|
|
2168
2169
|
initialFromDate: r,
|
|
@@ -2171,9 +2172,9 @@ const co = (t) => {
|
|
|
2171
2172
|
onChange: c,
|
|
2172
2173
|
children: l
|
|
2173
2174
|
}) => {
|
|
2174
|
-
const n =
|
|
2175
|
+
const n = wr(
|
|
2175
2176
|
a || null
|
|
2176
|
-
), [s, i] =
|
|
2177
|
+
), [s, i] = lo({
|
|
2177
2178
|
options: t,
|
|
2178
2179
|
initialSelectedItemKey: a,
|
|
2179
2180
|
initialFromDate: r,
|
|
@@ -2184,12 +2185,12 @@ const co = (t) => {
|
|
|
2184
2185
|
});
|
|
2185
2186
|
nt(() => {
|
|
2186
2187
|
i({
|
|
2187
|
-
type:
|
|
2188
|
+
type: W.SET_FROM,
|
|
2188
2189
|
payload: { date: r }
|
|
2189
2190
|
});
|
|
2190
2191
|
}, [r]), nt(() => {
|
|
2191
2192
|
i({
|
|
2192
|
-
type:
|
|
2193
|
+
type: W.SET_TO,
|
|
2193
2194
|
payload: { date: _ }
|
|
2194
2195
|
});
|
|
2195
2196
|
}, [_]), nt(() => {
|
|
@@ -2199,7 +2200,7 @@ const co = (t) => {
|
|
|
2199
2200
|
o
|
|
2200
2201
|
);
|
|
2201
2202
|
i({
|
|
2202
|
-
type:
|
|
2203
|
+
type: W.CURRENT_MONTH_CHANGE,
|
|
2203
2204
|
payload: { date: g }
|
|
2204
2205
|
});
|
|
2205
2206
|
}, [o, r, _]), nt(() => {
|
|
@@ -2207,7 +2208,7 @@ const co = (t) => {
|
|
|
2207
2208
|
if (!(g && k))
|
|
2208
2209
|
return;
|
|
2209
2210
|
const f = ht(b, t);
|
|
2210
|
-
f && (c == null || c(
|
|
2211
|
+
f && (c == null || c(T(y({}, f), {
|
|
2211
2212
|
value: {
|
|
2212
2213
|
from: g,
|
|
2213
2214
|
to: k
|
|
@@ -2224,7 +2225,7 @@ const co = (t) => {
|
|
|
2224
2225
|
if (!ht(g, t))
|
|
2225
2226
|
return;
|
|
2226
2227
|
const k = t.reduce(
|
|
2227
|
-
(f, $) =>
|
|
2228
|
+
(f, $) => T(y({}, f), { [$.id]: $ }),
|
|
2228
2229
|
{}
|
|
2229
2230
|
);
|
|
2230
2231
|
c(k[g]);
|
|
@@ -2233,7 +2234,7 @@ const co = (t) => {
|
|
|
2233
2234
|
(g) => {
|
|
2234
2235
|
const b = o ? Ja(o, g) >= 0 : !0;
|
|
2235
2236
|
!Ba(s.from, s.to) && b && i({
|
|
2236
|
-
type:
|
|
2237
|
+
type: W.NEW_TEMPORARY_TO_VALUE,
|
|
2237
2238
|
payload: { date: g }
|
|
2238
2239
|
});
|
|
2239
2240
|
},
|
|
@@ -2242,13 +2243,13 @@ const co = (t) => {
|
|
|
2242
2243
|
(g) => {
|
|
2243
2244
|
const { from: b, to: k } = s;
|
|
2244
2245
|
tr(g, { to: o }) && (Ba(b, k) ? i({
|
|
2245
|
-
type:
|
|
2246
|
+
type: W.SELECT_FIRST_DAY,
|
|
2246
2247
|
payload: { date: g }
|
|
2247
2248
|
}) : b && ta(g, b) || b && aa(g, b) ? i({
|
|
2248
|
-
type:
|
|
2249
|
+
type: W.SELECT_SECOND_DAY_AS_TO,
|
|
2249
2250
|
payload: { date: g }
|
|
2250
2251
|
}) : i({
|
|
2251
|
-
type:
|
|
2252
|
+
type: W.SELECT_SECOND_DAY_AS_FROM,
|
|
2252
2253
|
payload: { date: g }
|
|
2253
2254
|
}));
|
|
2254
2255
|
},
|
|
@@ -2257,28 +2258,28 @@ const co = (t) => {
|
|
|
2257
2258
|
(g) => {
|
|
2258
2259
|
if (g === null) {
|
|
2259
2260
|
i({
|
|
2260
|
-
type:
|
|
2261
|
+
type: W.NEW_SELECTED_ITEM,
|
|
2261
2262
|
payload: { selectedItem: null }
|
|
2262
2263
|
});
|
|
2263
2264
|
return;
|
|
2264
2265
|
}
|
|
2265
2266
|
ht(g, t) && i({
|
|
2266
|
-
type:
|
|
2267
|
+
type: W.NEW_SELECTED_ITEM,
|
|
2267
2268
|
payload: { selectedItem: g }
|
|
2268
2269
|
});
|
|
2269
2270
|
},
|
|
2270
2271
|
[t]
|
|
2271
2272
|
), h = wt((g) => {
|
|
2272
2273
|
i({
|
|
2273
|
-
type:
|
|
2274
|
+
type: W.CURRENT_MONTH_CHANGE,
|
|
2274
2275
|
payload: { date: g }
|
|
2275
2276
|
});
|
|
2276
2277
|
}, []);
|
|
2277
2278
|
return l((() => {
|
|
2278
2279
|
const { currentMonth: g, from: b, selectedItem: k, temporaryTo: f, to: $ } = s, w = Ct(
|
|
2279
|
-
() =>
|
|
2280
|
+
() => to(b, f),
|
|
2280
2281
|
[b, f]
|
|
2281
|
-
), F = Ct(() => ht(k, t), [t, k]), E = Ct(() => [b, { from: b, to: f }], [b, f]),
|
|
2282
|
+
), F = Ct(() => ht(k, t), [t, k]), E = Ct(() => [b, { from: b, to: f }], [b, f]), B = Ct(() => o ? { after: o } : void 0, [o]);
|
|
2282
2283
|
return {
|
|
2283
2284
|
select: {
|
|
2284
2285
|
onItemSelect: u,
|
|
@@ -2297,7 +2298,7 @@ const co = (t) => {
|
|
|
2297
2298
|
modifiers: w,
|
|
2298
2299
|
initialMonth: o && lt(o, 1),
|
|
2299
2300
|
toMonth: o,
|
|
2300
|
-
disabledDays:
|
|
2301
|
+
disabledDays: B,
|
|
2301
2302
|
onDayMouseEnter: d,
|
|
2302
2303
|
onMonthChange: h
|
|
2303
2304
|
},
|
|
@@ -2305,7 +2306,7 @@ const co = (t) => {
|
|
|
2305
2306
|
};
|
|
2306
2307
|
})());
|
|
2307
2308
|
};
|
|
2308
|
-
|
|
2309
|
+
no.defaultProps = {
|
|
2309
2310
|
options: [
|
|
2310
2311
|
{
|
|
2311
2312
|
id: "default",
|
|
@@ -2318,7 +2319,13 @@ lo.defaultProps = {
|
|
|
2318
2319
|
}
|
|
2319
2320
|
]
|
|
2320
2321
|
};
|
|
2321
|
-
const
|
|
2322
|
+
const el = (t) => {
|
|
2323
|
+
const c = t, { className: a, children: r } = c, _ = I(c, ["className", "children"]), o = m(
|
|
2324
|
+
a,
|
|
2325
|
+
x["date-picker--range__calendars-wrapper"]
|
|
2326
|
+
);
|
|
2327
|
+
return /* @__PURE__ */ e.createElement("div", T(y({}, _), { className: o }), r);
|
|
2328
|
+
}, L = {
|
|
2322
2329
|
"details-card": "lc-DetailsCard-module__details-card___cVoS7",
|
|
2323
2330
|
"details-card__float-button--open": "lc-DetailsCard-module__details-card__float-button--open___u9Kx2",
|
|
2324
2331
|
"details-card--with-divider": "lc-DetailsCard-module__details-card--with-divider___xyXvc",
|
|
@@ -2341,7 +2348,7 @@ const L = {
|
|
|
2341
2348
|
"details-card__content": "lc-DetailsCard-module__details-card__content___RNVd2",
|
|
2342
2349
|
"details-card__content--spacing": "lc-DetailsCard-module__details-card__content--spacing___QecUa",
|
|
2343
2350
|
"details-card__content--full-space": "lc-DetailsCard-module__details-card__content--full-space___2ms8I"
|
|
2344
|
-
}, O = "details-card",
|
|
2351
|
+
}, O = "details-card", tl = ({
|
|
2345
2352
|
children: t,
|
|
2346
2353
|
className: a,
|
|
2347
2354
|
leftNode: r,
|
|
@@ -2394,7 +2401,7 @@ const L = {
|
|
|
2394
2401
|
_ && /* @__PURE__ */ e.createElement("div", { className: L[`${O}__label__right-node`] }, _)
|
|
2395
2402
|
),
|
|
2396
2403
|
!s && /* @__PURE__ */ e.createElement(
|
|
2397
|
-
|
|
2404
|
+
S,
|
|
2398
2405
|
{
|
|
2399
2406
|
className: m(
|
|
2400
2407
|
L[`${O}__button__icon`],
|
|
@@ -2408,7 +2415,7 @@ const L = {
|
|
|
2408
2415
|
{
|
|
2409
2416
|
kind: d ? "float" : "text",
|
|
2410
2417
|
icon: /* @__PURE__ */ e.createElement(
|
|
2411
|
-
|
|
2418
|
+
S,
|
|
2412
2419
|
{
|
|
2413
2420
|
source: Xt,
|
|
2414
2421
|
className: m(
|
|
@@ -2454,7 +2461,7 @@ const L = {
|
|
|
2454
2461
|
"details-card-info": "lc-DetailsCardInfo-module__details-card-info___D4VRk",
|
|
2455
2462
|
"details-card-info__label": "lc-DetailsCardInfo-module__details-card-info__label___U-KsO",
|
|
2456
2463
|
"details-card-info__content": "lc-DetailsCardInfo-module__details-card-info__content___TFEXS"
|
|
2457
|
-
}, qt = "details-card-info",
|
|
2464
|
+
}, qt = "details-card-info", al = ({
|
|
2458
2465
|
children: t,
|
|
2459
2466
|
label: a
|
|
2460
2467
|
}) => /* @__PURE__ */ e.createElement("div", { className: Yt[qt] }, /* @__PURE__ */ e.createElement("div", { className: Yt[`${qt}__label`] }, a), /* @__PURE__ */ e.createElement("div", { className: Yt[`${qt}__content`] }, t)), Ia = {
|
|
@@ -2464,13 +2471,13 @@ const L = {
|
|
|
2464
2471
|
var o = _, {
|
|
2465
2472
|
children: t,
|
|
2466
2473
|
className: a = ""
|
|
2467
|
-
} = o, r =
|
|
2474
|
+
} = o, r = I(o, [
|
|
2468
2475
|
"children",
|
|
2469
2476
|
"className"
|
|
2470
2477
|
]);
|
|
2471
2478
|
const c = m(Ia[Pa], a);
|
|
2472
|
-
return /* @__PURE__ */ e.createElement(M,
|
|
2473
|
-
|
|
2479
|
+
return /* @__PURE__ */ e.createElement(M, T(y({ as: "span", size: "sm" }, r), { className: c }), /* @__PURE__ */ e.createElement(
|
|
2480
|
+
S,
|
|
2474
2481
|
{
|
|
2475
2482
|
source: oa,
|
|
2476
2483
|
className: Ia[`${Pa}__icon`],
|
|
@@ -2481,7 +2488,7 @@ const L = {
|
|
|
2481
2488
|
"field-group": "lc-FieldGroup-module__field-group___gy8lp",
|
|
2482
2489
|
"field-group--inline": "lc-FieldGroup-module__field-group--inline___or4qf",
|
|
2483
2490
|
"field-group--stretched": "lc-FieldGroup-module__field-group--stretched___6rkuO"
|
|
2484
|
-
}, Jt = "field-group",
|
|
2491
|
+
}, Jt = "field-group", rl = (n) => {
|
|
2485
2492
|
var s = n, {
|
|
2486
2493
|
className: t = "",
|
|
2487
2494
|
children: a,
|
|
@@ -2489,7 +2496,7 @@ const L = {
|
|
|
2489
2496
|
error: _,
|
|
2490
2497
|
inline: o,
|
|
2491
2498
|
stretch: c
|
|
2492
|
-
} = s, l =
|
|
2499
|
+
} = s, l = I(s, [
|
|
2493
2500
|
"className",
|
|
2494
2501
|
"children",
|
|
2495
2502
|
"description",
|
|
@@ -2501,21 +2508,21 @@ const L = {
|
|
|
2501
2508
|
[Kt[`${Jt}--inline`]]: o,
|
|
2502
2509
|
[Kt[`${Jt}--stretched`]]: c
|
|
2503
2510
|
});
|
|
2504
|
-
return /* @__PURE__ */ e.createElement("div",
|
|
2505
|
-
},
|
|
2506
|
-
form:
|
|
2507
|
-
form__header:
|
|
2508
|
-
form__footer:
|
|
2509
|
-
form__label:
|
|
2510
|
-
form__helper:
|
|
2511
|
-
}, gt = "form",
|
|
2511
|
+
return /* @__PURE__ */ e.createElement("div", T(y({}, l), { className: i }), a, _ && /* @__PURE__ */ e.createElement(fa, null, _), r && /* @__PURE__ */ e.createElement(Gt, null, r));
|
|
2512
|
+
}, so = "lc-Form-module__form___1nOYF", io = "lc-Form-module__form__header___U4B7t", uo = "lc-Form-module__form__footer___1-sUX", mo = "lc-Form-module__form__label___spg-J", po = "lc-Form-module__form__helper___bhfwS", pt = {
|
|
2513
|
+
form: so,
|
|
2514
|
+
form__header: io,
|
|
2515
|
+
form__footer: uo,
|
|
2516
|
+
form__label: mo,
|
|
2517
|
+
form__helper: po
|
|
2518
|
+
}, gt = "form", _l = (l) => {
|
|
2512
2519
|
var n = l, {
|
|
2513
2520
|
className: t,
|
|
2514
2521
|
children: a,
|
|
2515
2522
|
labelText: r,
|
|
2516
2523
|
helperText: _,
|
|
2517
2524
|
formFooter: o
|
|
2518
|
-
} = n, c =
|
|
2525
|
+
} = n, c = I(n, [
|
|
2519
2526
|
"className",
|
|
2520
2527
|
"children",
|
|
2521
2528
|
"labelText",
|
|
@@ -2523,7 +2530,7 @@ const L = {
|
|
|
2523
2530
|
"formFooter"
|
|
2524
2531
|
]);
|
|
2525
2532
|
return /* @__PURE__ */ e.createElement("form", y({ className: m(pt[gt], t) }, c), (r || _) && /* @__PURE__ */ e.createElement("div", { className: pt[`${gt}__header`] }, r && /* @__PURE__ */ e.createElement(Je, { size: "sm", className: pt[`${gt}__label`] }, r), _ && /* @__PURE__ */ e.createElement(M, { as: "p", size: "sm", className: pt[`${gt}__helper`] }, _)), a, o && /* @__PURE__ */ e.createElement("div", { className: pt[`${gt}__footer`] }, o));
|
|
2526
|
-
},
|
|
2533
|
+
}, V = {
|
|
2527
2534
|
"form-field": "lc-FormField-module__form-field___JqnX6",
|
|
2528
2535
|
"form-field--inline": "lc-FormField-module__form-field--inline___4DgIq",
|
|
2529
2536
|
"form-field__wrapper--inline": "lc-FormField-module__form-field__wrapper--inline___Ubvrn",
|
|
@@ -2540,7 +2547,7 @@ const L = {
|
|
|
2540
2547
|
"form-field__row-break": "lc-FormField-module__form-field__row-break___DCBjC",
|
|
2541
2548
|
"form-field__content": "lc-FormField-module__form-field__content___XaOx3",
|
|
2542
2549
|
"form-field__content__description": "lc-FormField-module__form-field__content__description___NpVw4"
|
|
2543
|
-
},
|
|
2550
|
+
}, Y = "form-field", ol = ({
|
|
2544
2551
|
inline: t,
|
|
2545
2552
|
error: a,
|
|
2546
2553
|
description: r,
|
|
@@ -2552,9 +2559,9 @@ const L = {
|
|
|
2552
2559
|
labelRightNode: s
|
|
2553
2560
|
}) => {
|
|
2554
2561
|
const i = e.useRef(null), [d, p] = e.useState("auto"), u = m(
|
|
2555
|
-
|
|
2562
|
+
V[Y],
|
|
2556
2563
|
{
|
|
2557
|
-
[
|
|
2564
|
+
[V[`${Y}--inline`]]: t
|
|
2558
2565
|
},
|
|
2559
2566
|
c
|
|
2560
2567
|
);
|
|
@@ -2565,34 +2572,34 @@ const L = {
|
|
|
2565
2572
|
"div",
|
|
2566
2573
|
{
|
|
2567
2574
|
className: m(
|
|
2568
|
-
|
|
2569
|
-
|
|
2575
|
+
V[`${Y}__label-right-node`],
|
|
2576
|
+
V[`${Y}__label-right-node--inline`]
|
|
2570
2577
|
)
|
|
2571
2578
|
},
|
|
2572
2579
|
s
|
|
2573
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
2580
|
+
), /* @__PURE__ */ e.createElement("div", { className: V[`${Y}__row-break`] })), /* @__PURE__ */ e.createElement(
|
|
2574
2581
|
"div",
|
|
2575
2582
|
{
|
|
2576
2583
|
className: m(
|
|
2577
|
-
|
|
2578
|
-
t &&
|
|
2584
|
+
V[`${Y}__wrapper`],
|
|
2585
|
+
t && V[`${Y}__wrapper--inline`]
|
|
2579
2586
|
)
|
|
2580
2587
|
},
|
|
2581
2588
|
(_ || s) && /* @__PURE__ */ e.createElement(
|
|
2582
2589
|
"div",
|
|
2583
2590
|
{
|
|
2584
2591
|
className: m(
|
|
2585
|
-
|
|
2586
|
-
t &&
|
|
2587
|
-
!_ &&
|
|
2592
|
+
V[`${Y}__label`],
|
|
2593
|
+
t && V[`${Y}__label--inline`],
|
|
2594
|
+
!_ && V[`${Y}__label--no-text`]
|
|
2588
2595
|
)
|
|
2589
2596
|
},
|
|
2590
2597
|
_ && /* @__PURE__ */ e.createElement(
|
|
2591
2598
|
"div",
|
|
2592
2599
|
{
|
|
2593
2600
|
className: m(
|
|
2594
|
-
|
|
2595
|
-
t &&
|
|
2601
|
+
V[`${Y}__label-wrapper`],
|
|
2602
|
+
t && V[`${Y}__label-wrapper--inline`]
|
|
2596
2603
|
),
|
|
2597
2604
|
style: {
|
|
2598
2605
|
height: d
|
|
@@ -2601,7 +2608,7 @@ const L = {
|
|
|
2601
2608
|
/* @__PURE__ */ e.createElement(
|
|
2602
2609
|
"label",
|
|
2603
2610
|
{
|
|
2604
|
-
className:
|
|
2611
|
+
className: V[`${Y}__label-left-node`],
|
|
2605
2612
|
htmlFor: l
|
|
2606
2613
|
},
|
|
2607
2614
|
/* @__PURE__ */ e.createElement(M, { as: "span", size: "sm" }, _)
|
|
@@ -2610,19 +2617,19 @@ const L = {
|
|
|
2610
2617
|
"div",
|
|
2611
2618
|
{
|
|
2612
2619
|
className: m(
|
|
2613
|
-
|
|
2614
|
-
t &&
|
|
2620
|
+
V[`${Y}__label-adornment`],
|
|
2621
|
+
t && V[`${Y}__label-adornment--inline`]
|
|
2615
2622
|
)
|
|
2616
2623
|
},
|
|
2617
2624
|
o
|
|
2618
2625
|
)
|
|
2619
2626
|
),
|
|
2620
|
-
s && !t && /* @__PURE__ */ e.createElement("div", { className: m(
|
|
2627
|
+
s && !t && /* @__PURE__ */ e.createElement("div", { className: m(V[`${Y}__label-right-node`]) }, s)
|
|
2621
2628
|
),
|
|
2622
|
-
/* @__PURE__ */ e.createElement("div", { className: m(
|
|
2629
|
+
/* @__PURE__ */ e.createElement("div", { className: m(V[`${Y}__content`]) }, /* @__PURE__ */ e.createElement("div", { ref: i }, n), a && /* @__PURE__ */ e.createElement(fa, null, a), !a && r && /* @__PURE__ */ e.createElement(
|
|
2623
2630
|
Gt,
|
|
2624
2631
|
{
|
|
2625
|
-
className: m(
|
|
2632
|
+
className: m(V[`${Y}__content__description`])
|
|
2626
2633
|
},
|
|
2627
2634
|
r
|
|
2628
2635
|
))
|
|
@@ -2632,13 +2639,13 @@ const L = {
|
|
|
2632
2639
|
"form-group__header": "lc-FormGroup-module__form-group__header___DgGmR",
|
|
2633
2640
|
"form-group__label": "lc-FormGroup-module__form-group__label___NC-JW",
|
|
2634
2641
|
"form-group__helper": "lc-FormGroup-module__form-group__helper___SRuxe"
|
|
2635
|
-
}, It = "form-group",
|
|
2642
|
+
}, It = "form-group", cl = (c) => {
|
|
2636
2643
|
var l = c, {
|
|
2637
2644
|
className: t = "",
|
|
2638
2645
|
children: a,
|
|
2639
2646
|
labelText: r,
|
|
2640
2647
|
helperText: _
|
|
2641
|
-
} = l, o =
|
|
2648
|
+
} = l, o = I(l, [
|
|
2642
2649
|
"className",
|
|
2643
2650
|
"children",
|
|
2644
2651
|
"labelText",
|
|
@@ -2647,7 +2654,7 @@ const L = {
|
|
|
2647
2654
|
const n = m(At[It], t);
|
|
2648
2655
|
return /* @__PURE__ */ e.createElement(
|
|
2649
2656
|
"div",
|
|
2650
|
-
|
|
2657
|
+
T(y(T(y({}, o), {
|
|
2651
2658
|
role: "group"
|
|
2652
2659
|
}), r && { "aria-label": r }), {
|
|
2653
2660
|
className: n
|
|
@@ -2655,8 +2662,8 @@ const L = {
|
|
|
2655
2662
|
/* @__PURE__ */ e.createElement("div", { className: At[`${It}__header`] }, /* @__PURE__ */ e.createElement(Je, { as: "div", size: "sm", className: At[`${It}__label`] }, r), _ && /* @__PURE__ */ e.createElement(M, { as: "div", size: "sm", className: At[`${It}__helper`] }, _)),
|
|
2656
2663
|
a
|
|
2657
2664
|
);
|
|
2658
|
-
},
|
|
2659
|
-
input:
|
|
2665
|
+
}, go = "lc-Input-module__input___qeMAQ", Te = {
|
|
2666
|
+
input: go,
|
|
2660
2667
|
"input--focused": "lc-Input-module__input--focused___wQH5-",
|
|
2661
2668
|
"input--disabled": "lc-Input-module__input--disabled___HidXX",
|
|
2662
2669
|
"input--crop": "lc-Input-module__input--crop___uzJS8",
|
|
@@ -2669,16 +2676,16 @@ const L = {
|
|
|
2669
2676
|
"input__icon--left": "lc-Input-module__input__icon--left___BcySs",
|
|
2670
2677
|
"input__icon--right": "lc-Input-module__input__icon--right___VefSK",
|
|
2671
2678
|
"input__visibility-button": "lc-Input-module__input__visibility-button___eWrVe"
|
|
2672
|
-
},
|
|
2679
|
+
}, Be = "input", Fa = (t, a) => e.cloneElement(t.source, {
|
|
2673
2680
|
"data-testid": `input-icon-${t.place}`,
|
|
2674
2681
|
className: m(
|
|
2675
|
-
|
|
2676
|
-
|
|
2682
|
+
Te[`${Be}__icon`],
|
|
2683
|
+
Te[`${Be}__icon--${t.place}`],
|
|
2677
2684
|
{
|
|
2678
|
-
[
|
|
2685
|
+
[Te[`${Be}__icon--disabled`]]: a
|
|
2679
2686
|
}
|
|
2680
2687
|
)
|
|
2681
|
-
}),
|
|
2688
|
+
}), ll = e.forwardRef(
|
|
2682
2689
|
(s, n) => {
|
|
2683
2690
|
var i = s, {
|
|
2684
2691
|
inputSize: t = "medium",
|
|
@@ -2687,7 +2694,7 @@ const L = {
|
|
|
2687
2694
|
icon: _ = null,
|
|
2688
2695
|
className: o,
|
|
2689
2696
|
cropOnBlur: c = !0
|
|
2690
|
-
} = i, l =
|
|
2697
|
+
} = i, l = I(i, [
|
|
2691
2698
|
"inputSize",
|
|
2692
2699
|
"error",
|
|
2693
2700
|
"disabled",
|
|
@@ -2697,18 +2704,18 @@ const L = {
|
|
|
2697
2704
|
]);
|
|
2698
2705
|
const [d, p] = e.useState(!1), [u, h] = e.useState(!1), { type: v, onFocus: g, onBlur: b } = l, k = m(
|
|
2699
2706
|
o,
|
|
2700
|
-
|
|
2701
|
-
|
|
2707
|
+
Te[Be],
|
|
2708
|
+
Te[`${Be}--${t}`],
|
|
2702
2709
|
{
|
|
2703
|
-
[
|
|
2704
|
-
[
|
|
2705
|
-
[
|
|
2706
|
-
[
|
|
2710
|
+
[Te[`${Be}--disabled`]]: r,
|
|
2711
|
+
[Te[`${Be}--focused`]]: d,
|
|
2712
|
+
[Te[`${Be}--error`]]: a,
|
|
2713
|
+
[Te[`${Be}--crop`]]: c
|
|
2707
2714
|
}
|
|
2708
|
-
), f = r ? "var(--content-disabled)" : "var(--content-default)", $ = u ?
|
|
2715
|
+
), f = r ? "var(--content-disabled)" : "var(--content-default)", $ = u ? Sr : Dr, w = _ && _.place === "left", F = _ && v !== "password" && _.place === "right";
|
|
2709
2716
|
return /* @__PURE__ */ e.createElement("div", { className: k, "aria-disabled": r, "tab-index": "0" }, w && Fa(_, r), /* @__PURE__ */ e.createElement(
|
|
2710
2717
|
"input",
|
|
2711
|
-
|
|
2718
|
+
T(y({}, l), {
|
|
2712
2719
|
ref: n,
|
|
2713
2720
|
onFocus: (E) => {
|
|
2714
2721
|
p(!0), g == null || g(E);
|
|
@@ -2725,20 +2732,20 @@ const L = {
|
|
|
2725
2732
|
disabled: r,
|
|
2726
2733
|
kind: "text",
|
|
2727
2734
|
size: "compact",
|
|
2728
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
2735
|
+
icon: /* @__PURE__ */ e.createElement(S, { customColor: f, source: $ }),
|
|
2729
2736
|
onClick: () => h((E) => !E),
|
|
2730
|
-
className:
|
|
2737
|
+
className: Te[`${Be}__visibility-button`]
|
|
2731
2738
|
}
|
|
2732
2739
|
));
|
|
2733
2740
|
}
|
|
2734
|
-
),
|
|
2735
|
-
link:
|
|
2741
|
+
), bo = "lc-Link-module__link___kqx52", Ra = {
|
|
2742
|
+
link: bo,
|
|
2736
2743
|
"link--bold": "lc-Link-module__link--bold___1rGdO"
|
|
2737
|
-
}, Ma = "link",
|
|
2744
|
+
}, Ma = "link", nl = (_) => {
|
|
2738
2745
|
var o = _, {
|
|
2739
2746
|
bold: t = !1,
|
|
2740
2747
|
className: a = ""
|
|
2741
|
-
} = o, r =
|
|
2748
|
+
} = o, r = I(o, [
|
|
2742
2749
|
"bold",
|
|
2743
2750
|
"className"
|
|
2744
2751
|
]);
|
|
@@ -2752,20 +2759,20 @@ const L = {
|
|
|
2752
2759
|
)
|
|
2753
2760
|
}, r)
|
|
2754
2761
|
);
|
|
2755
|
-
},
|
|
2762
|
+
}, fo = "lc-Modal-module__modal__body___M-jmN", vo = "lc-Modal-module__modal__header___Fp5VE", ho = "lc-Modal-module__modal__heading___G9KVK", ko = "lc-Modal-module__modal__footer___2LYdc", ue = {
|
|
2756
2763
|
"modal-base": "lc-Modal-module__modal-base___hbL1U",
|
|
2757
2764
|
"modal-base--full-space": "lc-Modal-module__modal-base--full-space___KcGFL",
|
|
2758
2765
|
"modal-base__overlay": "lc-Modal-module__modal-base__overlay___kCQ8t",
|
|
2759
2766
|
"modal-base__overlay--visible": "lc-Modal-module__modal-base__overlay--visible___zUNJL",
|
|
2760
2767
|
"modal-base__close": "lc-Modal-module__modal-base__close___gJlgr",
|
|
2761
2768
|
"modal-base__close--label-type": "lc-Modal-module__modal-base__close--label-type___Om0Vb",
|
|
2762
|
-
modal__body:
|
|
2763
|
-
modal__header:
|
|
2769
|
+
modal__body: fo,
|
|
2770
|
+
modal__header: vo,
|
|
2764
2771
|
"modal__label-header": "lc-Modal-module__modal__label-header___ZPtEy",
|
|
2765
|
-
modal__heading:
|
|
2772
|
+
modal__heading: ho,
|
|
2766
2773
|
"modal__label-heading": "lc-Modal-module__modal__label-heading___WnYcF",
|
|
2767
|
-
modal__footer:
|
|
2768
|
-
}, Pt = "modal-base",
|
|
2774
|
+
modal__footer: ko
|
|
2775
|
+
}, Pt = "modal-base", yo = (n) => {
|
|
2769
2776
|
var s = n, {
|
|
2770
2777
|
children: t,
|
|
2771
2778
|
className: a = "",
|
|
@@ -2773,7 +2780,7 @@ const L = {
|
|
|
2773
2780
|
closeOnEscPress: _ = !0,
|
|
2774
2781
|
closeOnOverlayPress: o = !0,
|
|
2775
2782
|
fullSpaceContent: c
|
|
2776
|
-
} = s, l =
|
|
2783
|
+
} = s, l = I(s, [
|
|
2777
2784
|
"children",
|
|
2778
2785
|
"className",
|
|
2779
2786
|
"onClose",
|
|
@@ -2831,9 +2838,9 @@ const L = {
|
|
|
2831
2838
|
t && ue["modal-base__close--label-type"]
|
|
2832
2839
|
),
|
|
2833
2840
|
onClick: r,
|
|
2834
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
2841
|
+
icon: /* @__PURE__ */ e.createElement(S, { source: Ce, size: "medium", customColor: a })
|
|
2835
2842
|
}
|
|
2836
|
-
), qe = "modal",
|
|
2843
|
+
), qe = "modal", sl = (i) => {
|
|
2837
2844
|
var d = i, {
|
|
2838
2845
|
children: t,
|
|
2839
2846
|
className: a = "",
|
|
@@ -2843,7 +2850,7 @@ const L = {
|
|
|
2843
2850
|
footer: c,
|
|
2844
2851
|
onClose: l,
|
|
2845
2852
|
contentClassName: n
|
|
2846
|
-
} = d, s =
|
|
2853
|
+
} = d, s = I(d, [
|
|
2847
2854
|
"children",
|
|
2848
2855
|
"className",
|
|
2849
2856
|
"heading",
|
|
@@ -2857,7 +2864,7 @@ const L = {
|
|
|
2857
2864
|
v.preventDefault(), v.stopPropagation(), l();
|
|
2858
2865
|
};
|
|
2859
2866
|
return /* @__PURE__ */ e.createElement(
|
|
2860
|
-
|
|
2867
|
+
yo,
|
|
2861
2868
|
y({
|
|
2862
2869
|
className: p,
|
|
2863
2870
|
fullSpaceContent: o,
|
|
@@ -2898,7 +2905,7 @@ const L = {
|
|
|
2898
2905
|
),
|
|
2899
2906
|
c && /* @__PURE__ */ e.createElement("div", { className: ue[`${qe}__footer`] }, c)
|
|
2900
2907
|
);
|
|
2901
|
-
},
|
|
2908
|
+
}, il = ({
|
|
2902
2909
|
children: t,
|
|
2903
2910
|
className: a = "",
|
|
2904
2911
|
parentElementName: r = "body",
|
|
@@ -2911,28 +2918,28 @@ const L = {
|
|
|
2911
2918
|
var l;
|
|
2912
2919
|
(l = document.querySelector(r)) == null || l.removeChild(o);
|
|
2913
2920
|
};
|
|
2914
|
-
}, [r]), /* @__PURE__ */ e.createElement(e.Fragment, null,
|
|
2921
|
+
}, [r]), /* @__PURE__ */ e.createElement(e.Fragment, null, Gr.createPortal(t, o));
|
|
2915
2922
|
}, Xe = {
|
|
2916
2923
|
"modal-header": "lc-ModalHeader-module__modal-header___xk3bd",
|
|
2917
2924
|
"modal-header__heading-left-node": "lc-ModalHeader-module__modal-header__heading-left-node___1--G5",
|
|
2918
2925
|
"modal-header__heading-body": "lc-ModalHeader-module__modal-header__heading-body___HHEF-",
|
|
2919
2926
|
"modal-header__heading-title": "lc-ModalHeader-module__modal-header__heading-title___2R9pm",
|
|
2920
2927
|
"modal-header__heading-description": "lc-ModalHeader-module__modal-header__heading-description___54Xvf"
|
|
2921
|
-
}, et = "modal-header",
|
|
2928
|
+
}, et = "modal-header", dl = ({
|
|
2922
2929
|
title: t,
|
|
2923
2930
|
iconProps: a,
|
|
2924
2931
|
avatarProps: r,
|
|
2925
2932
|
children: _,
|
|
2926
2933
|
className: o = ""
|
|
2927
2934
|
}) => {
|
|
2928
|
-
const c =
|
|
2935
|
+
const c = Ur(Xe[et], o);
|
|
2929
2936
|
return /* @__PURE__ */ e.createElement("div", { className: c }, a && /* @__PURE__ */ e.createElement(
|
|
2930
|
-
|
|
2937
|
+
S,
|
|
2931
2938
|
y({
|
|
2932
2939
|
className: Xe[`${et}__heading-left-node`]
|
|
2933
2940
|
}, a)
|
|
2934
2941
|
), r && /* @__PURE__ */ e.createElement(
|
|
2935
|
-
|
|
2942
|
+
N_,
|
|
2936
2943
|
y({
|
|
2937
2944
|
className: Xe[`${et}__heading-left-node`]
|
|
2938
2945
|
}, r)
|
|
@@ -2959,7 +2966,7 @@ const L = {
|
|
|
2959
2966
|
"numeric-input--disabled": "lc-NumericInput-module__numeric-input--disabled___yaRvQ",
|
|
2960
2967
|
"numeric-input--no-controls": "lc-NumericInput-module__numeric-input--no-controls___D90rG",
|
|
2961
2968
|
"numeric-input--error": "lc-NumericInput-module__numeric-input--error___TMxRx"
|
|
2962
|
-
}, at = "numeric-input",
|
|
2969
|
+
}, at = "numeric-input", ul = (d) => {
|
|
2963
2970
|
var p = d, {
|
|
2964
2971
|
className: t,
|
|
2965
2972
|
error: a,
|
|
@@ -2970,7 +2977,7 @@ const L = {
|
|
|
2970
2977
|
noControls: l,
|
|
2971
2978
|
style: n,
|
|
2972
2979
|
onChange: s
|
|
2973
|
-
} = p, i =
|
|
2980
|
+
} = p, i = I(p, [
|
|
2974
2981
|
"className",
|
|
2975
2982
|
"error",
|
|
2976
2983
|
"value",
|
|
@@ -2990,20 +2997,20 @@ const L = {
|
|
|
2990
2997
|
},
|
|
2991
2998
|
t
|
|
2992
2999
|
), v = (E) => s(String(E)), g = (E) => _ !== void 0 && E > _ ? _ : o !== void 0 && E < o ? o : E, b = (E) => {
|
|
2993
|
-
const
|
|
2994
|
-
return v(g(
|
|
3000
|
+
const B = parseInt(r, 10) + E;
|
|
3001
|
+
return v(g(B));
|
|
2995
3002
|
}, k = (E) => {
|
|
2996
3003
|
E.key === z.arrowDown && (E.preventDefault(), b(-1)), E.key === z.arrowUp && (E.preventDefault(), b(1));
|
|
2997
|
-
}, f = (E,
|
|
3004
|
+
}, f = (E, B) => B !== void 0 && parseInt(E, 10) === B, $ = (E) => {
|
|
2998
3005
|
E.preventDefault(), E.stopPropagation();
|
|
2999
|
-
const
|
|
3006
|
+
const B = E.currentTarget.value.replace(
|
|
3000
3007
|
/((?!([-]|([-]?\d+))).)/,
|
|
3001
3008
|
""
|
|
3002
3009
|
);
|
|
3003
|
-
if (
|
|
3004
|
-
return v(
|
|
3005
|
-
const
|
|
3006
|
-
return v(g(
|
|
3010
|
+
if (B === "" || B === "-")
|
|
3011
|
+
return v(B);
|
|
3012
|
+
const D = parseInt(B, 10);
|
|
3013
|
+
return v(g(D));
|
|
3007
3014
|
}, w = () => {
|
|
3008
3015
|
var E;
|
|
3009
3016
|
return (E = u.current) == null || E.focus(), b(1);
|
|
@@ -3013,7 +3020,7 @@ const L = {
|
|
|
3013
3020
|
};
|
|
3014
3021
|
return /* @__PURE__ */ e.createElement("div", { className: h, style: n }, /* @__PURE__ */ e.createElement(
|
|
3015
3022
|
"input",
|
|
3016
|
-
|
|
3023
|
+
T(y({
|
|
3017
3024
|
type: "text",
|
|
3018
3025
|
ref: u
|
|
3019
3026
|
}, i), {
|
|
@@ -3035,7 +3042,7 @@ const L = {
|
|
|
3035
3042
|
type: "button"
|
|
3036
3043
|
},
|
|
3037
3044
|
/* @__PURE__ */ e.createElement(
|
|
3038
|
-
|
|
3045
|
+
S,
|
|
3039
3046
|
{
|
|
3040
3047
|
source: zt,
|
|
3041
3048
|
disabled: c || f(r, _),
|
|
@@ -3053,7 +3060,7 @@ const L = {
|
|
|
3053
3060
|
type: "button"
|
|
3054
3061
|
},
|
|
3055
3062
|
/* @__PURE__ */ e.createElement(
|
|
3056
|
-
|
|
3063
|
+
S,
|
|
3057
3064
|
{
|
|
3058
3065
|
source: Et,
|
|
3059
3066
|
kind: "primary",
|
|
@@ -3062,7 +3069,7 @@ const L = {
|
|
|
3062
3069
|
)
|
|
3063
3070
|
)));
|
|
3064
3071
|
}, ot = "select-all";
|
|
3065
|
-
function
|
|
3072
|
+
function Eo(t, a) {
|
|
3066
3073
|
const r = {};
|
|
3067
3074
|
if (a && a.length > 1) {
|
|
3068
3075
|
const _ = t.map((o) => o.key).filter((o) => a.includes(o));
|
|
@@ -3077,7 +3084,7 @@ function yo(t, a) {
|
|
|
3077
3084
|
}
|
|
3078
3085
|
return r;
|
|
3079
3086
|
}
|
|
3080
|
-
const
|
|
3087
|
+
const J = {
|
|
3081
3088
|
"list-wrapper": "lc-PickerList-module__list-wrapper___ZJjPY",
|
|
3082
3089
|
"picker-list": "lc-PickerList-module__picker-list___FqdgZ",
|
|
3083
3090
|
"picker-list__no-results": "lc-PickerList-module__picker-list__no-results___tX172",
|
|
@@ -3092,43 +3099,43 @@ const j = {
|
|
|
3092
3099
|
"picker-list__item__label-container": "lc-PickerList-module__picker-list__item__label-container___yZXW5",
|
|
3093
3100
|
"picker-list__item__main-label": "lc-PickerList-module__picker-list__item__main-label___uRgQw",
|
|
3094
3101
|
"picker-list__item__secondary-label": "lc-PickerList-module__picker-list__item__secondary-label___lpkFW"
|
|
3095
|
-
},
|
|
3102
|
+
}, ke = "picker-list__item", $o = ({
|
|
3096
3103
|
item: t,
|
|
3097
3104
|
isItemSelected: a,
|
|
3098
3105
|
currentItemKey: r,
|
|
3099
3106
|
isAdjacentStyleApplied: _,
|
|
3100
3107
|
onSelect: o
|
|
3101
3108
|
}) => {
|
|
3102
|
-
const c = (n) => n != null && n.customElement ? /* @__PURE__ */ e.createElement("div", { className:
|
|
3109
|
+
const c = (n) => n != null && n.customElement ? /* @__PURE__ */ e.createElement("div", { className: J[`${ke}__custom`] }, n.customElement.listItemBody) : /* @__PURE__ */ e.createElement(e.Fragment, null, n.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3103
3110
|
"input",
|
|
3104
3111
|
{
|
|
3105
3112
|
type: "checkbox",
|
|
3106
|
-
className:
|
|
3113
|
+
className: J[`${ke}__checkbox`],
|
|
3107
3114
|
checked: a
|
|
3108
3115
|
}
|
|
3109
3116
|
), n.icon && /* @__PURE__ */ e.createElement(
|
|
3110
|
-
|
|
3117
|
+
S,
|
|
3111
3118
|
{
|
|
3112
|
-
className:
|
|
3119
|
+
className: J[`${ke}__icon`],
|
|
3113
3120
|
kind: "link",
|
|
3114
3121
|
source: n.icon
|
|
3115
3122
|
}
|
|
3116
3123
|
), n.avatarSrc && /* @__PURE__ */ e.createElement(
|
|
3117
3124
|
"img",
|
|
3118
3125
|
{
|
|
3119
|
-
className: m(
|
|
3126
|
+
className: m(J[`${ke}__avatar`]),
|
|
3120
3127
|
src: n.avatarSrc,
|
|
3121
3128
|
alt: n.name
|
|
3122
3129
|
}
|
|
3123
|
-
), /* @__PURE__ */ e.createElement("div", { className:
|
|
3130
|
+
), /* @__PURE__ */ e.createElement("div", { className: J[`${ke}__label-container`] }, /* @__PURE__ */ e.createElement(
|
|
3124
3131
|
"span",
|
|
3125
3132
|
{
|
|
3126
3133
|
className: m({
|
|
3127
|
-
[
|
|
3134
|
+
[J[`${ke}__main-label`]]: n.secondaryText
|
|
3128
3135
|
})
|
|
3129
3136
|
},
|
|
3130
3137
|
n.name
|
|
3131
|
-
), n.secondaryText && /* @__PURE__ */ e.createElement("span", { className:
|
|
3138
|
+
), n.secondaryText && /* @__PURE__ */ e.createElement("span", { className: J[`${ke}__secondary-label`] }, n.secondaryText))), l = (n) => {
|
|
3132
3139
|
!n.disabled && o(n);
|
|
3133
3140
|
};
|
|
3134
3141
|
return t.groupHeader ? /* @__PURE__ */ e.createElement(
|
|
@@ -3136,7 +3143,7 @@ const j = {
|
|
|
3136
3143
|
{
|
|
3137
3144
|
role: "option",
|
|
3138
3145
|
key: t.key,
|
|
3139
|
-
className:
|
|
3146
|
+
className: J[`${ke}__header`]
|
|
3140
3147
|
},
|
|
3141
3148
|
t.name
|
|
3142
3149
|
) : /* @__PURE__ */ e.createElement(
|
|
@@ -3153,14 +3160,14 @@ const j = {
|
|
|
3153
3160
|
id: t.key,
|
|
3154
3161
|
key: t.key,
|
|
3155
3162
|
"data-adjacent": _,
|
|
3156
|
-
className: m(
|
|
3157
|
-
[
|
|
3163
|
+
className: m(J[ke], {
|
|
3164
|
+
[J[`${ke}__custom`]]: t == null ? void 0 : t.customElement
|
|
3158
3165
|
}),
|
|
3159
3166
|
onClick: () => l(t)
|
|
3160
3167
|
},
|
|
3161
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
3168
|
+
/* @__PURE__ */ e.createElement("div", { className: J[`${ke}__content`] }, c(t)),
|
|
3162
3169
|
a && !t.showCheckbox && /* @__PURE__ */ e.createElement(
|
|
3163
|
-
|
|
3170
|
+
S,
|
|
3164
3171
|
{
|
|
3165
3172
|
kind: "link",
|
|
3166
3173
|
source: ca,
|
|
@@ -3168,7 +3175,7 @@ const j = {
|
|
|
3168
3175
|
}
|
|
3169
3176
|
)
|
|
3170
3177
|
);
|
|
3171
|
-
}, ra = "picker-list", Oa = `${ra}__item`,
|
|
3178
|
+
}, ra = "picker-list", Oa = `${ra}__item`, wo = ({
|
|
3172
3179
|
isOpen: t,
|
|
3173
3180
|
items: a,
|
|
3174
3181
|
selectedItemsKeys: r,
|
|
@@ -3179,13 +3186,13 @@ const j = {
|
|
|
3179
3186
|
onSelect: n,
|
|
3180
3187
|
onSelectAll: s
|
|
3181
3188
|
}) => {
|
|
3182
|
-
const i = m(
|
|
3183
|
-
[
|
|
3189
|
+
const i = m(J[ra], {
|
|
3190
|
+
[J[`${ra}__no-results`]]: a.length === 0
|
|
3184
3191
|
}), [d, p] = e.useState(
|
|
3185
3192
|
null
|
|
3186
|
-
), u = e.useRef(-1), h = e.useRef(0), v = e.useRef(null), [g, b] = e.useState({}), k = (
|
|
3187
|
-
if (
|
|
3188
|
-
if (
|
|
3193
|
+
), u = e.useRef(-1), h = e.useRef(0), v = e.useRef(null), [g, b] = e.useState({}), k = (D) => {
|
|
3194
|
+
if (D.key === z.esc && (D.preventDefault(), l()), D.key === z.arrowUp && u.current > 0 && (D.preventDefault(), u.current = $(), p(a[u.current].key)), D.key === z.arrowDown && u.current + 1 < a.length && (D.preventDefault(), u.current = w(), p(a[u.current].key)), D.key === z.enter && a[u.current] && !a[u.current].disabled) {
|
|
3195
|
+
if (D.preventDefault(), a[u.current].key === ot)
|
|
3189
3196
|
return s();
|
|
3190
3197
|
n(a[u.current]);
|
|
3191
3198
|
}
|
|
@@ -3195,9 +3202,9 @@ const j = {
|
|
|
3195
3202
|
return document.addEventListener("keydown", k), () => document.removeEventListener("keydown", k);
|
|
3196
3203
|
u.current = -1, h.current = 0, p(null);
|
|
3197
3204
|
}, [a, t, k]), e.useEffect(() => {
|
|
3198
|
-
b(
|
|
3205
|
+
b(Eo(a, r));
|
|
3199
3206
|
}, [r, a]);
|
|
3200
|
-
const f = (
|
|
3207
|
+
const f = (D) => !!a[D] && (a[D].disabled || a[D].groupHeader), $ = () => {
|
|
3201
3208
|
for (u.current = u.current - 1; f(u.current) && (u.current = u.current - 1, !!f(u.current)); )
|
|
3202
3209
|
;
|
|
3203
3210
|
return h.current = u.current, u.current;
|
|
@@ -3211,25 +3218,25 @@ const j = {
|
|
|
3211
3218
|
break;
|
|
3212
3219
|
}
|
|
3213
3220
|
return h.current = u.current, u.current;
|
|
3214
|
-
}, F = () => s(), E = (
|
|
3221
|
+
}, F = () => s(), E = (D) => r ? r.includes(D) : !1, B = () => !c || c && !o ? null : /* @__PURE__ */ e.createElement(
|
|
3215
3222
|
"li",
|
|
3216
3223
|
{
|
|
3217
|
-
ref: (
|
|
3218
|
-
d === ot && (
|
|
3224
|
+
ref: (D) => {
|
|
3225
|
+
d === ot && (D == null || D.scrollIntoView({ block: "nearest" }));
|
|
3219
3226
|
},
|
|
3220
3227
|
role: "option",
|
|
3221
3228
|
"aria-current": d === ot,
|
|
3222
3229
|
id: ot,
|
|
3223
3230
|
key: ot,
|
|
3224
3231
|
className: m(
|
|
3225
|
-
|
|
3226
|
-
|
|
3232
|
+
J[Oa],
|
|
3233
|
+
J[`${Oa}--select-all`]
|
|
3227
3234
|
),
|
|
3228
3235
|
onClick: F
|
|
3229
3236
|
},
|
|
3230
3237
|
o
|
|
3231
3238
|
);
|
|
3232
|
-
return t ? a.length === 0 ? /* @__PURE__ */ e.createElement("div", { className:
|
|
3239
|
+
return t ? a.length === 0 ? /* @__PURE__ */ e.createElement("div", { className: J["list-wrapper"] }, /* @__PURE__ */ e.createElement("div", { className: i }, _)) : /* @__PURE__ */ e.createElement("div", { className: J["list-wrapper"] }, /* @__PURE__ */ e.createElement(
|
|
3233
3240
|
"ul",
|
|
3234
3241
|
{
|
|
3235
3242
|
ref: v,
|
|
@@ -3237,13 +3244,13 @@ const j = {
|
|
|
3237
3244
|
role: "listbox",
|
|
3238
3245
|
tabIndex: -1
|
|
3239
3246
|
},
|
|
3240
|
-
|
|
3241
|
-
a.map((
|
|
3242
|
-
|
|
3247
|
+
B(),
|
|
3248
|
+
a.map((D) => /* @__PURE__ */ e.createElement(
|
|
3249
|
+
$o,
|
|
3243
3250
|
{
|
|
3244
|
-
item:
|
|
3245
|
-
isItemSelected: E(
|
|
3246
|
-
isAdjacentStyleApplied: g[
|
|
3251
|
+
item: D,
|
|
3252
|
+
isItemSelected: E(D.key),
|
|
3253
|
+
isAdjacentStyleApplied: g[D.key],
|
|
3247
3254
|
currentItemKey: d,
|
|
3248
3255
|
onSelect: n
|
|
3249
3256
|
}
|
|
@@ -3266,7 +3273,7 @@ const j = {
|
|
|
3266
3273
|
"picker-trigger--disabled": "lc-Trigger-module__picker-trigger--disabled___7H4tD",
|
|
3267
3274
|
"picker-trigger--focused": "lc-Trigger-module__picker-trigger--focused___vTr39",
|
|
3268
3275
|
"picker-trigger--error": "lc-Trigger-module__picker-trigger--error___Rh8Qd"
|
|
3269
|
-
},
|
|
3276
|
+
}, te = "picker-trigger", Co = ({
|
|
3270
3277
|
children: t,
|
|
3271
3278
|
isSearchDisabled: a,
|
|
3272
3279
|
isDisabled: r,
|
|
@@ -3282,13 +3289,13 @@ const j = {
|
|
|
3282
3289
|
testId: u
|
|
3283
3290
|
}) => {
|
|
3284
3291
|
const h = e.useRef(null), v = m(
|
|
3285
|
-
oe[
|
|
3286
|
-
oe[`${
|
|
3287
|
-
n && oe[`${
|
|
3288
|
-
n && o && oe[`${
|
|
3289
|
-
r && oe[`${
|
|
3290
|
-
c && oe[`${
|
|
3291
|
-
_ && oe[`${
|
|
3292
|
+
oe[te],
|
|
3293
|
+
oe[`${te}--${s}`],
|
|
3294
|
+
n && oe[`${te}--multi-select`],
|
|
3295
|
+
n && o && oe[`${te}--multi-select--with-items`],
|
|
3296
|
+
r && oe[`${te}--disabled`],
|
|
3297
|
+
c && oe[`${te}--focused`],
|
|
3298
|
+
_ && oe[`${te}--error`]
|
|
3292
3299
|
);
|
|
3293
3300
|
e.useEffect(() => {
|
|
3294
3301
|
const f = ($) => {
|
|
@@ -3316,9 +3323,9 @@ const j = {
|
|
|
3316
3323
|
"div",
|
|
3317
3324
|
{
|
|
3318
3325
|
className: m(
|
|
3319
|
-
oe[`${
|
|
3320
|
-
oe[`${
|
|
3321
|
-
n && o && oe[`${
|
|
3326
|
+
oe[`${te}__content`],
|
|
3327
|
+
oe[`${te}__content--${s}`],
|
|
3328
|
+
n && o && oe[`${te}__content--with-items`]
|
|
3322
3329
|
)
|
|
3323
3330
|
},
|
|
3324
3331
|
t
|
|
@@ -3327,23 +3334,23 @@ const j = {
|
|
|
3327
3334
|
"div",
|
|
3328
3335
|
{
|
|
3329
3336
|
className: m(
|
|
3330
|
-
oe[`${
|
|
3331
|
-
oe[`${
|
|
3337
|
+
oe[`${te}__controls`],
|
|
3338
|
+
oe[`${te}__controls--${s}`]
|
|
3332
3339
|
)
|
|
3333
3340
|
},
|
|
3334
3341
|
k && /* @__PURE__ */ e.createElement(
|
|
3335
3342
|
"div",
|
|
3336
3343
|
{
|
|
3337
|
-
"data-testid": `${
|
|
3338
|
-
className: oe[`${
|
|
3344
|
+
"data-testid": `${te}__clear-icon`,
|
|
3345
|
+
className: oe[`${te}__clear-icon`],
|
|
3339
3346
|
onClick: b
|
|
3340
3347
|
},
|
|
3341
|
-
/* @__PURE__ */ e.createElement(
|
|
3348
|
+
/* @__PURE__ */ e.createElement(S, { kind: "primary", size: "small", source: Ce })
|
|
3342
3349
|
),
|
|
3343
3350
|
/* @__PURE__ */ e.createElement(
|
|
3344
|
-
|
|
3351
|
+
S,
|
|
3345
3352
|
{
|
|
3346
|
-
className: oe[`${
|
|
3353
|
+
className: oe[`${te}__chevron-icon`],
|
|
3347
3354
|
source: c ? zt : Et,
|
|
3348
3355
|
size: "medium",
|
|
3349
3356
|
disabled: r
|
|
@@ -3351,10 +3358,10 @@ const j = {
|
|
|
3351
3358
|
)
|
|
3352
3359
|
)
|
|
3353
3360
|
);
|
|
3354
|
-
},
|
|
3355
|
-
tag:
|
|
3361
|
+
}, No = "lc-Tag-module__tag___1QRVY", xo = "lc-Tag-module__tag__remove___UmtrW", So = "lc-Tag-module__icon___2Z-35", Do = "lc-Tag-module__tag__node___rZTzB", To = "lc-Tag-module__tag__content___q6vKK", Pe = {
|
|
3362
|
+
tag: No,
|
|
3356
3363
|
"tag--success": "lc-Tag-module__tag--success___P2hXQ",
|
|
3357
|
-
tag__remove:
|
|
3364
|
+
tag__remove: xo,
|
|
3358
3365
|
"tag--error": "lc-Tag-module__tag--error___1cjsm",
|
|
3359
3366
|
"tag--warning": "lc-Tag-module__tag--warning___PstMG",
|
|
3360
3367
|
"tag--info": "lc-Tag-module__tag--info___RTH0C",
|
|
@@ -3365,13 +3372,13 @@ const j = {
|
|
|
3365
3372
|
"tag--medium": "lc-Tag-module__tag--medium___l5-KI",
|
|
3366
3373
|
"tag--large": "lc-Tag-module__tag--large___ytC6Y",
|
|
3367
3374
|
"tag--xlarge": "lc-Tag-module__tag--xlarge___2jj1d",
|
|
3368
|
-
icon:
|
|
3375
|
+
icon: So,
|
|
3369
3376
|
"tag--text-white": "lc-Tag-module__tag--text-white___x0fnD",
|
|
3370
3377
|
"tag--text-black": "lc-Tag-module__tag--text-black___dUvmD",
|
|
3371
3378
|
"tag--dismissible": "lc-Tag-module__tag--dismissible___Qobyr",
|
|
3372
|
-
tag__node:
|
|
3373
|
-
tag__content:
|
|
3374
|
-
},
|
|
3379
|
+
tag__node: Do,
|
|
3380
|
+
tag__content: To
|
|
3381
|
+
}, Fe = "tag", Bo = (t) => t ? ga(t, "#FFFFFF") > 4.5 ? "text-white" : "text-black" : "", rr = (p) => {
|
|
3375
3382
|
var u = p, {
|
|
3376
3383
|
className: t = "",
|
|
3377
3384
|
children: a,
|
|
@@ -3383,7 +3390,7 @@ const j = {
|
|
|
3383
3390
|
leftNode: n,
|
|
3384
3391
|
rightNode: s,
|
|
3385
3392
|
customColor: i
|
|
3386
|
-
} = u, d =
|
|
3393
|
+
} = u, d = I(u, [
|
|
3387
3394
|
"className",
|
|
3388
3395
|
"children",
|
|
3389
3396
|
"dismissible",
|
|
@@ -3396,14 +3403,14 @@ const j = {
|
|
|
3396
3403
|
"customColor"
|
|
3397
3404
|
]);
|
|
3398
3405
|
const h = m(
|
|
3399
|
-
|
|
3406
|
+
Pe[Fe],
|
|
3400
3407
|
t,
|
|
3401
|
-
|
|
3402
|
-
|
|
3408
|
+
Pe[`${Fe}--${_}`],
|
|
3409
|
+
Pe[`${Fe}--${o}`],
|
|
3403
3410
|
{
|
|
3404
|
-
[
|
|
3405
|
-
[
|
|
3406
|
-
[
|
|
3411
|
+
[Pe[`${Fe}--dismissible`]]: r,
|
|
3412
|
+
[Pe[`${Fe}--outline`]]: l,
|
|
3413
|
+
[Pe[`${Fe}--${Bo(i)}`]]: !!i
|
|
3407
3414
|
}
|
|
3408
3415
|
), v = _ === "small" ? "small" : "medium", g = () => i ? l ? {
|
|
3409
3416
|
style: {
|
|
@@ -3417,7 +3424,7 @@ const j = {
|
|
|
3417
3424
|
};
|
|
3418
3425
|
return /* @__PURE__ */ e.createElement(
|
|
3419
3426
|
M,
|
|
3420
|
-
|
|
3427
|
+
T(y(y({
|
|
3421
3428
|
className: h
|
|
3422
3429
|
}, d), g()), {
|
|
3423
3430
|
as: "div",
|
|
@@ -3427,12 +3434,12 @@ const j = {
|
|
|
3427
3434
|
"div",
|
|
3428
3435
|
{
|
|
3429
3436
|
"data-testid": "lc-tag-left-node",
|
|
3430
|
-
className:
|
|
3437
|
+
className: Pe[`${Fe}__node`],
|
|
3431
3438
|
style: { color: b() }
|
|
3432
3439
|
},
|
|
3433
3440
|
n
|
|
3434
3441
|
),
|
|
3435
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
3442
|
+
/* @__PURE__ */ e.createElement("div", { className: Pe[`${Fe}__content`] }, a),
|
|
3436
3443
|
s && /* @__PURE__ */ e.createElement(
|
|
3437
3444
|
"div",
|
|
3438
3445
|
{
|
|
@@ -3447,13 +3454,13 @@ const j = {
|
|
|
3447
3454
|
title: "Remove",
|
|
3448
3455
|
onClick: c,
|
|
3449
3456
|
type: "button",
|
|
3450
|
-
className:
|
|
3457
|
+
className: Pe[`${Fe}__remove`]
|
|
3451
3458
|
},
|
|
3452
3459
|
/* @__PURE__ */ e.createElement(
|
|
3453
|
-
|
|
3460
|
+
S,
|
|
3454
3461
|
{
|
|
3455
3462
|
"data-dismiss-icon": !0,
|
|
3456
|
-
source:
|
|
3463
|
+
source: Ce,
|
|
3457
3464
|
size: v,
|
|
3458
3465
|
customColor: b()
|
|
3459
3466
|
}
|
|
@@ -3476,7 +3483,7 @@ const j = {
|
|
|
3476
3483
|
"picker-trigger-body__tag--compact": "lc-TriggerBody-module__picker-trigger-body__tag--compact___X-oAF",
|
|
3477
3484
|
"picker-trigger-body__tag--medium": "lc-TriggerBody-module__picker-trigger-body__tag--medium___Ptkd5",
|
|
3478
3485
|
"picker-trigger-body__tag--large": "lc-TriggerBody-module__picker-trigger-body__tag--large___Saoy1"
|
|
3479
|
-
}, be = "picker-trigger-body",
|
|
3486
|
+
}, be = "picker-trigger-body", Ao = ({
|
|
3480
3487
|
isOpen: t,
|
|
3481
3488
|
isSearchDisabled: a,
|
|
3482
3489
|
isDisabled: r,
|
|
@@ -3493,7 +3500,7 @@ const j = {
|
|
|
3493
3500
|
l && (i(""), p.current && (p.current.value = "", p.current.focus()));
|
|
3494
3501
|
}, [o, l]);
|
|
3495
3502
|
const u = (g) => c === "single" && t && !a ? null : g != null && g.customElement ? /* @__PURE__ */ e.createElement("div", { className: ge[`${be}__item`] }, g.customElement.selectedItemBody) : /* @__PURE__ */ e.createElement("div", { className: ge[`${be}__item`] }, g.icon && /* @__PURE__ */ e.createElement(
|
|
3496
|
-
|
|
3503
|
+
S,
|
|
3497
3504
|
{
|
|
3498
3505
|
source: g.icon,
|
|
3499
3506
|
className: ge[`${be}__item__icon`]
|
|
@@ -3542,10 +3549,10 @@ const j = {
|
|
|
3542
3549
|
))),
|
|
3543
3550
|
d && v()
|
|
3544
3551
|
);
|
|
3545
|
-
},
|
|
3546
|
-
picker:
|
|
3547
|
-
picker__container:
|
|
3548
|
-
}, za = "picker",
|
|
3552
|
+
}, Io = "lc-Picker-module__picker___GRj9W", Po = "lc-Picker-module__picker__container___s0PUc", Ha = {
|
|
3553
|
+
picker: Io,
|
|
3554
|
+
picker__container: Po
|
|
3555
|
+
}, za = "picker", ml = (k) => {
|
|
3549
3556
|
var f = k, {
|
|
3550
3557
|
className: t,
|
|
3551
3558
|
disabled: a,
|
|
@@ -3563,7 +3570,7 @@ const j = {
|
|
|
3563
3570
|
openedOnInit: h = !1,
|
|
3564
3571
|
clearSearchAfterSelection: v,
|
|
3565
3572
|
onSelect: g
|
|
3566
|
-
} = f, b =
|
|
3573
|
+
} = f, b = I(f, [
|
|
3567
3574
|
"className",
|
|
3568
3575
|
"disabled",
|
|
3569
3576
|
"error",
|
|
@@ -3581,14 +3588,14 @@ const j = {
|
|
|
3581
3588
|
"clearSearchAfterSelection",
|
|
3582
3589
|
"onSelect"
|
|
3583
3590
|
]);
|
|
3584
|
-
const [$, w] = e.useState(h), [F, E] = e.useState(null),
|
|
3591
|
+
const [$, w] = e.useState(h), [F, E] = e.useState(null), B = e.useRef(null), D = m(Ha[za], t);
|
|
3585
3592
|
e.useEffect(() => {
|
|
3586
3593
|
if ($) {
|
|
3587
|
-
const R = (
|
|
3594
|
+
const R = (K) => {
|
|
3588
3595
|
var N;
|
|
3589
|
-
(N =
|
|
3590
|
-
}, U = (
|
|
3591
|
-
|
|
3596
|
+
(N = B.current) != null && N.contains(K.target) || w(!1);
|
|
3597
|
+
}, U = (K) => {
|
|
3598
|
+
K.key === z.tab && w(!1);
|
|
3592
3599
|
};
|
|
3593
3600
|
return document.addEventListener("mousedown", R), document.addEventListener("keydown", U), () => {
|
|
3594
3601
|
document.removeEventListener("mousedown", R), document.addEventListener("keydown", U);
|
|
@@ -3598,43 +3605,43 @@ const j = {
|
|
|
3598
3605
|
}, [$]);
|
|
3599
3606
|
const se = (R) => {
|
|
3600
3607
|
const U = R.target;
|
|
3601
|
-
a || U.getAttribute("data-dismiss-icon") || w((
|
|
3608
|
+
a || U.getAttribute("data-dismiss-icon") || w((K) => !K);
|
|
3602
3609
|
}, A = () => {
|
|
3603
3610
|
w(!1);
|
|
3604
|
-
},
|
|
3611
|
+
}, q = (R) => {
|
|
3605
3612
|
if (d === "single")
|
|
3606
3613
|
return w(!1), g([R]);
|
|
3607
|
-
const U = R.key,
|
|
3608
|
-
if (!
|
|
3614
|
+
const U = R.key, K = ze;
|
|
3615
|
+
if (!K)
|
|
3609
3616
|
return g([R]);
|
|
3610
|
-
const N =
|
|
3617
|
+
const N = K.includes(
|
|
3611
3618
|
U
|
|
3612
|
-
) ?
|
|
3619
|
+
) ? K.filter((Z) => Z !== U) : K.concat(U);
|
|
3613
3620
|
if ((N == null ? void 0 : N.length) === 0)
|
|
3614
3621
|
return g(null);
|
|
3615
|
-
const
|
|
3616
|
-
(
|
|
3622
|
+
const Q = _.filter(
|
|
3623
|
+
(Z) => N.includes(Z.key)
|
|
3617
3624
|
);
|
|
3618
|
-
g(
|
|
3619
|
-
},
|
|
3625
|
+
g(Q);
|
|
3626
|
+
}, re = (R) => !R.disabled && !R.groupHeader && R.key !== ot, Ae = () => {
|
|
3620
3627
|
w(!1);
|
|
3621
|
-
const R =
|
|
3628
|
+
const R = We.filter(re);
|
|
3622
3629
|
g(R);
|
|
3623
|
-
},
|
|
3630
|
+
}, Ie = () => {
|
|
3624
3631
|
w(!1), g(null);
|
|
3625
|
-
},
|
|
3626
|
-
const U = o ? o.filter((
|
|
3632
|
+
}, Ne = (R) => E(R), He = (R) => {
|
|
3633
|
+
const U = o ? o.filter((K) => K !== R) : null;
|
|
3627
3634
|
if ((U == null ? void 0 : U.length) === 0)
|
|
3628
3635
|
return g(null);
|
|
3629
3636
|
g(U);
|
|
3630
|
-
},
|
|
3637
|
+
}, We = e.useMemo(() => F ? _.filter((R) => {
|
|
3631
3638
|
if (R.groupHeader)
|
|
3632
3639
|
return !1;
|
|
3633
3640
|
const U = F.toLowerCase();
|
|
3634
3641
|
return R.name.toLowerCase().includes(U);
|
|
3635
|
-
}) : _, [F, _]),
|
|
3636
|
-
return /* @__PURE__ */ e.createElement("div", { ref:
|
|
3637
|
-
|
|
3642
|
+
}) : _, [F, _]), ze = e.useMemo(() => o ? o.map((R) => R.key) : null, [o]);
|
|
3643
|
+
return /* @__PURE__ */ e.createElement("div", { ref: B, className: D, id: b.id }, /* @__PURE__ */ e.createElement("div", { className: Ha[`${za}__container`] }, /* @__PURE__ */ e.createElement(
|
|
3644
|
+
Co,
|
|
3638
3645
|
{
|
|
3639
3646
|
testId: b["data-testid"],
|
|
3640
3647
|
isSearchDisabled: p,
|
|
@@ -3647,10 +3654,10 @@ const j = {
|
|
|
3647
3654
|
size: c,
|
|
3648
3655
|
hideClearButton: u,
|
|
3649
3656
|
onTrigger: se,
|
|
3650
|
-
onClear:
|
|
3657
|
+
onClear: Ie
|
|
3651
3658
|
},
|
|
3652
3659
|
/* @__PURE__ */ e.createElement(
|
|
3653
|
-
|
|
3660
|
+
Ao,
|
|
3654
3661
|
{
|
|
3655
3662
|
isOpen: $,
|
|
3656
3663
|
isSearchDisabled: p,
|
|
@@ -3660,27 +3667,27 @@ const j = {
|
|
|
3660
3667
|
type: d,
|
|
3661
3668
|
size: c,
|
|
3662
3669
|
clearSearchAfterSelection: v,
|
|
3663
|
-
onItemRemove:
|
|
3664
|
-
onFilter:
|
|
3670
|
+
onItemRemove: He,
|
|
3671
|
+
onFilter: Ne
|
|
3665
3672
|
}
|
|
3666
3673
|
)
|
|
3667
3674
|
), /* @__PURE__ */ e.createElement(
|
|
3668
|
-
|
|
3675
|
+
wo,
|
|
3669
3676
|
{
|
|
3670
|
-
selectedItemsKeys:
|
|
3671
|
-
items:
|
|
3677
|
+
selectedItemsKeys: ze,
|
|
3678
|
+
items: We,
|
|
3672
3679
|
isOpen: $,
|
|
3673
3680
|
isMultiSelect: d === "multi",
|
|
3674
3681
|
emptyStateText: s,
|
|
3675
3682
|
selectAllOptionText: i,
|
|
3676
3683
|
onClose: A,
|
|
3677
|
-
onSelect:
|
|
3678
|
-
onSelectAll:
|
|
3684
|
+
onSelect: q,
|
|
3685
|
+
onSelectAll: Ae
|
|
3679
3686
|
}
|
|
3680
3687
|
)));
|
|
3681
|
-
},
|
|
3682
|
-
popover:
|
|
3683
|
-
},
|
|
3688
|
+
}, Fo = "lc-Popover-module__popover___8X1b2", Ro = {
|
|
3689
|
+
popover: Fo
|
|
3690
|
+
}, pl = ({
|
|
3684
3691
|
triggerRenderer: t,
|
|
3685
3692
|
onClose: a,
|
|
3686
3693
|
onOpen: r,
|
|
@@ -3697,50 +3704,50 @@ const j = {
|
|
|
3697
3704
|
useClickHookProps: h,
|
|
3698
3705
|
floatingStrategy: v
|
|
3699
3706
|
}) => {
|
|
3700
|
-
const [g, b] = e.useState(d), k = i !== void 0, f = k ? i : g, $ = typeof _ == "string", w = typeof t == "function", F = (
|
|
3701
|
-
|
|
3702
|
-
}, { refs: E, context:
|
|
3707
|
+
const [g, b] = e.useState(d), k = i !== void 0, f = k ? i : g, $ = typeof _ == "string", w = typeof t == "function", F = (Ne) => {
|
|
3708
|
+
Ne ? r == null || r() : a == null || a(), !k && b(Ne);
|
|
3709
|
+
}, { refs: E, context: B, floatingStyles: D } = la({
|
|
3703
3710
|
open: f,
|
|
3704
3711
|
onOpenChange: F,
|
|
3705
3712
|
middleware: [na(s), sa(n), qa()],
|
|
3706
3713
|
placement: l,
|
|
3707
3714
|
strategy: v,
|
|
3708
3715
|
whileElementsMounted: ia
|
|
3709
|
-
}), se = da(
|
|
3716
|
+
}), se = da(B, h), A = ua(B, y({
|
|
3710
3717
|
escapeKey: p
|
|
3711
|
-
}, u)),
|
|
3718
|
+
}, u)), q = ma(B), { getReferenceProps: re, getFloatingProps: Ae } = pa([
|
|
3712
3719
|
se,
|
|
3713
3720
|
A,
|
|
3714
|
-
|
|
3715
|
-
]),
|
|
3721
|
+
q
|
|
3722
|
+
]), Ie = m(Ro.popover, o);
|
|
3716
3723
|
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
3717
3724
|
"div",
|
|
3718
|
-
|
|
3725
|
+
T(y({
|
|
3719
3726
|
"data-testid": "popover-trigger-button",
|
|
3720
3727
|
ref: E.setReference
|
|
3721
|
-
},
|
|
3728
|
+
}, re()), {
|
|
3722
3729
|
className: c
|
|
3723
3730
|
}),
|
|
3724
3731
|
w ? t() : t
|
|
3725
|
-
), f && /* @__PURE__ */ e.createElement(
|
|
3732
|
+
), f && /* @__PURE__ */ e.createElement(Hr, { context: B, modal: !1 }, /* @__PURE__ */ e.createElement(
|
|
3726
3733
|
"div",
|
|
3727
3734
|
y({
|
|
3728
|
-
className:
|
|
3735
|
+
className: Ie,
|
|
3729
3736
|
ref: E.setFloating,
|
|
3730
|
-
style:
|
|
3731
|
-
},
|
|
3737
|
+
style: D
|
|
3738
|
+
}, Ae()),
|
|
3732
3739
|
$ ? /* @__PURE__ */ e.createElement(M, { as: "div" }, _) : _
|
|
3733
3740
|
)));
|
|
3734
|
-
},
|
|
3741
|
+
}, Mo = [
|
|
3735
3742
|
"normal",
|
|
3736
3743
|
"error",
|
|
3737
3744
|
"success"
|
|
3738
|
-
],
|
|
3745
|
+
], Lo = (t) => Math.min(Math.max(t, 0), 100);
|
|
3739
3746
|
function _r(t, a = 0) {
|
|
3740
|
-
return t === "error" ? 0 :
|
|
3747
|
+
return t === "error" ? 0 : Lo(parseInt(a.toString(), 10));
|
|
3741
3748
|
}
|
|
3742
3749
|
function or(t, a) {
|
|
3743
|
-
return !
|
|
3750
|
+
return !Mo.includes(t) && a >= 100 ? "normal" : t || "normal";
|
|
3744
3751
|
}
|
|
3745
3752
|
const bt = {
|
|
3746
3753
|
"progress-circle": "lc-ProgressCircle-module__progress-circle___NRHCi",
|
|
@@ -3753,28 +3760,28 @@ const bt = {
|
|
|
3753
3760
|
"progress-circle__indicator--normal": "lc-ProgressCircle-module__progress-circle__indicator--normal___0SdkX",
|
|
3754
3761
|
"progress-circle__indicator--success": "lc-ProgressCircle-module__progress-circle__indicator--success___fLwRR",
|
|
3755
3762
|
"progress-circle__indicator--error": "lc-ProgressCircle-module__progress-circle__indicator--error___nwJS9"
|
|
3756
|
-
},
|
|
3763
|
+
}, Oo = {
|
|
3757
3764
|
small: 2,
|
|
3758
3765
|
medium: 3,
|
|
3759
3766
|
large: 4
|
|
3760
|
-
},
|
|
3767
|
+
}, Ho = {
|
|
3761
3768
|
small: 15,
|
|
3762
3769
|
medium: 36,
|
|
3763
3770
|
large: 56
|
|
3764
|
-
}, ft = "progress-circle",
|
|
3771
|
+
}, ft = "progress-circle", zo = e.forwardRef(
|
|
3765
3772
|
(l, c) => {
|
|
3766
3773
|
var n = l, {
|
|
3767
3774
|
status: t = "normal",
|
|
3768
3775
|
progressValue: a,
|
|
3769
3776
|
className: r,
|
|
3770
3777
|
size: _ = "medium"
|
|
3771
|
-
} = n, o =
|
|
3778
|
+
} = n, o = I(n, [
|
|
3772
3779
|
"status",
|
|
3773
3780
|
"progressValue",
|
|
3774
3781
|
"className",
|
|
3775
3782
|
"size"
|
|
3776
3783
|
]);
|
|
3777
|
-
const s = or(t, a), i = _r(s, a), d =
|
|
3784
|
+
const s = or(t, a), i = _r(s, a), d = Oo[_], p = Ho[_], u = m(
|
|
3778
3785
|
bt[ft],
|
|
3779
3786
|
{
|
|
3780
3787
|
[bt[`${ft}--${_}`]]: _,
|
|
@@ -3826,14 +3833,14 @@ const bt = {
|
|
|
3826
3833
|
"progress-bar--normal": "lc-ProgressBar-module__progress-bar--normal___ZwCb-",
|
|
3827
3834
|
"progress-bar__indicator--success": "lc-ProgressBar-module__progress-bar__indicator--success___wRjR3",
|
|
3828
3835
|
"progress-bar__indicator--normal": "lc-ProgressBar-module__progress-bar__indicator--normal___0Uhle"
|
|
3829
|
-
}, Rt = "progress-bar",
|
|
3836
|
+
}, Rt = "progress-bar", Go = e.forwardRef(
|
|
3830
3837
|
(l, c) => {
|
|
3831
3838
|
var n = l, {
|
|
3832
3839
|
status: t = "normal",
|
|
3833
3840
|
percent: a,
|
|
3834
3841
|
size: r = "medium",
|
|
3835
3842
|
className: _ = ""
|
|
3836
|
-
} = n, o =
|
|
3843
|
+
} = n, o = I(n, [
|
|
3837
3844
|
"status",
|
|
3838
3845
|
"percent",
|
|
3839
3846
|
"size",
|
|
@@ -3849,7 +3856,7 @@ const bt = {
|
|
|
3849
3856
|
);
|
|
3850
3857
|
return /* @__PURE__ */ e.createElement(
|
|
3851
3858
|
"div",
|
|
3852
|
-
|
|
3859
|
+
T(y({}, o), {
|
|
3853
3860
|
className: d,
|
|
3854
3861
|
ref: c,
|
|
3855
3862
|
role: "progressbar"
|
|
@@ -3863,7 +3870,7 @@ const bt = {
|
|
|
3863
3870
|
)
|
|
3864
3871
|
);
|
|
3865
3872
|
}
|
|
3866
|
-
),
|
|
3873
|
+
), ye = {
|
|
3867
3874
|
"promo-banner": "lc-PromoBanner-module__promo-banner___-mGpq",
|
|
3868
3875
|
"promo-banner__content": "lc-PromoBanner-module__promo-banner__content___kRWar",
|
|
3869
3876
|
"promo-banner__wrapper": "lc-PromoBanner-module__promo-banner__wrapper___I-8cl",
|
|
@@ -3875,7 +3882,7 @@ const bt = {
|
|
|
3875
3882
|
"promo-banner--small": "lc-PromoBanner-module__promo-banner--small___7sWLV",
|
|
3876
3883
|
"promo-banner--large": "lc-PromoBanner-module__promo-banner--large___pMiCU",
|
|
3877
3884
|
"promo-banner__close-icon": "lc-PromoBanner-module__promo-banner__close-icon___GowBL"
|
|
3878
|
-
},
|
|
3885
|
+
}, Uo = 400, Wo = 800, Vo = 500, Ee = "promo-banner", gl = ({
|
|
3879
3886
|
className: t,
|
|
3880
3887
|
buttonText: a,
|
|
3881
3888
|
children: r,
|
|
@@ -3888,43 +3895,43 @@ const bt = {
|
|
|
3888
3895
|
onLinkClick: i
|
|
3889
3896
|
}) => {
|
|
3890
3897
|
const d = e.useRef(null), [p, u] = e.useState("medium"), h = m(
|
|
3891
|
-
Ee
|
|
3898
|
+
ye[Ee],
|
|
3892
3899
|
{
|
|
3893
|
-
[
|
|
3894
|
-
[
|
|
3895
|
-
[
|
|
3900
|
+
[ye[`${Ee}--light`]]: c,
|
|
3901
|
+
[ye[`${Ee}--small`]]: p === "small",
|
|
3902
|
+
[ye[`${Ee}--large`]]: p === "large"
|
|
3896
3903
|
},
|
|
3897
3904
|
t
|
|
3898
3905
|
);
|
|
3899
3906
|
e.useEffect(() => {
|
|
3900
|
-
const g = () => d.current && d.current.offsetWidth <=
|
|
3907
|
+
const g = () => d.current && d.current.offsetWidth <= Uo ? u("small") : d.current && d.current.offsetWidth >= Wo ? u("large") : u("medium"), b = Ka(
|
|
3901
3908
|
g,
|
|
3902
|
-
|
|
3909
|
+
Vo
|
|
3903
3910
|
);
|
|
3904
3911
|
return window.addEventListener("resize", b), g(), () => {
|
|
3905
3912
|
b.cancel(), window.removeEventListener("resize", g);
|
|
3906
3913
|
};
|
|
3907
3914
|
}, []);
|
|
3908
|
-
const v = /* @__PURE__ */ e.createElement("div", { className:
|
|
3915
|
+
const v = /* @__PURE__ */ e.createElement("div", { className: ye[`${Ee}__footer`] }, a && /* @__PURE__ */ e.createElement(
|
|
3909
3916
|
G,
|
|
3910
3917
|
{
|
|
3911
3918
|
kind: "primary",
|
|
3912
3919
|
size: "compact",
|
|
3913
3920
|
onClick: n,
|
|
3914
|
-
className:
|
|
3921
|
+
className: ye[`${Ee}__button-text`]
|
|
3915
3922
|
},
|
|
3916
3923
|
a
|
|
3917
3924
|
), l && /* @__PURE__ */ e.createElement(G, { size: "compact", kind: "text", onClick: i }, l));
|
|
3918
|
-
return /* @__PURE__ */ e.createElement("div", { ref: d, className: h }, /* @__PURE__ */ e.createElement("div", { className:
|
|
3925
|
+
return /* @__PURE__ */ e.createElement("div", { ref: d, className: h }, /* @__PURE__ */ e.createElement("div", { className: ye[`${Ee}__content`] }, o && /* @__PURE__ */ e.createElement("img", { src: o, className: ye[`${Ee}__img`] }), /* @__PURE__ */ e.createElement("div", { className: ye[`${Ee}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: ye[`${Ee}__header`] }, _), /* @__PURE__ */ e.createElement(M, { as: "div" }, r), p !== "large" && v), p === "large" && v), s && /* @__PURE__ */ e.createElement(
|
|
3919
3926
|
"button",
|
|
3920
3927
|
{
|
|
3921
3928
|
type: "button",
|
|
3922
|
-
className:
|
|
3929
|
+
className: ye[`${Ee}__close-icon`],
|
|
3923
3930
|
onClick: s
|
|
3924
3931
|
},
|
|
3925
|
-
/* @__PURE__ */ e.createElement(
|
|
3932
|
+
/* @__PURE__ */ e.createElement(S, { source: Ce, size: "large", kind: "primary" })
|
|
3926
3933
|
));
|
|
3927
|
-
},
|
|
3934
|
+
}, Ge = {
|
|
3928
3935
|
"main-wrapper": "lc-PromoBannerV2-module__main-wrapper___U-dPS",
|
|
3929
3936
|
"promo-banner-v2": "lc-PromoBannerV2-module__promo-banner-v2___HkNxR",
|
|
3930
3937
|
"promo-banner-v2__content": "lc-PromoBannerV2-module__promo-banner-v2__content___65vEP",
|
|
@@ -3933,7 +3940,7 @@ const bt = {
|
|
|
3933
3940
|
"promo-banner-v2__additional-content": "lc-PromoBannerV2-module__promo-banner-v2__additional-content___LpU9B",
|
|
3934
3941
|
"promo-banner-v2__close": "lc-PromoBannerV2-module__promo-banner-v2__close___rOh-U",
|
|
3935
3942
|
"promo-banner-v2__close__btn": "lc-PromoBannerV2-module__promo-banner-v2__close__btn___5AZQC"
|
|
3936
|
-
}, Ke = "promo-banner-v2",
|
|
3943
|
+
}, Ke = "promo-banner-v2", bl = ({
|
|
3937
3944
|
children: t,
|
|
3938
3945
|
className: a,
|
|
3939
3946
|
additionalContent: r,
|
|
@@ -3941,8 +3948,8 @@ const bt = {
|
|
|
3941
3948
|
secondaryButton: o,
|
|
3942
3949
|
onClose: c
|
|
3943
3950
|
}) => {
|
|
3944
|
-
const l = m(
|
|
3945
|
-
return /* @__PURE__ */ e.createElement("div", { role: "banner", className: l }, /* @__PURE__ */ e.createElement("div", { className:
|
|
3951
|
+
const l = m(Ge["main-wrapper"], a);
|
|
3952
|
+
return /* @__PURE__ */ e.createElement("div", { role: "banner", className: l }, /* @__PURE__ */ e.createElement("div", { className: Ge[Ke] }, /* @__PURE__ */ e.createElement("div", { className: Ge[`${Ke}__content`] }, t, (_ || o) && /* @__PURE__ */ e.createElement("div", { className: Ge[`${Ke}__content__cta`] }, _ && /* @__PURE__ */ e.createElement(
|
|
3946
3953
|
G,
|
|
3947
3954
|
{
|
|
3948
3955
|
kind: (_ == null ? void 0 : _.kind) || "high-contrast",
|
|
@@ -3954,20 +3961,20 @@ const bt = {
|
|
|
3954
3961
|
{
|
|
3955
3962
|
kind: (o == null ? void 0 : o.kind) || "text",
|
|
3956
3963
|
onClick: o.handleClick,
|
|
3957
|
-
className:
|
|
3964
|
+
className: Ge[`${Ke}__content__cta__secondary`]
|
|
3958
3965
|
},
|
|
3959
3966
|
o.label
|
|
3960
|
-
))), r && /* @__PURE__ */ e.createElement("div", { className:
|
|
3967
|
+
))), r && /* @__PURE__ */ e.createElement("div", { className: Ge[`${Ke}__additional-content`] }, r), c && /* @__PURE__ */ e.createElement("div", { className: Ge[`${Ke}__close`] }, /* @__PURE__ */ e.createElement(
|
|
3961
3968
|
G,
|
|
3962
3969
|
{
|
|
3963
|
-
className:
|
|
3970
|
+
className: Ge[`${Ke}__close__btn`],
|
|
3964
3971
|
onClick: c,
|
|
3965
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
3972
|
+
icon: /* @__PURE__ */ e.createElement(S, { source: Ce, kind: "primary" }),
|
|
3966
3973
|
kind: "plain",
|
|
3967
3974
|
size: "compact"
|
|
3968
3975
|
}
|
|
3969
3976
|
))));
|
|
3970
|
-
},
|
|
3977
|
+
}, Re = {
|
|
3971
3978
|
"radio-button": "lc-RadioButton-module__radio-button___WaToM",
|
|
3972
3979
|
"radio-button__circle": "lc-RadioButton-module__radio-button__circle___wimWA",
|
|
3973
3980
|
"radio-button__label": "lc-RadioButton-module__radio-button__label___i7ygg",
|
|
@@ -3977,25 +3984,25 @@ const bt = {
|
|
|
3977
3984
|
"radio-button__helper": "lc-RadioButton-module__radio-button__helper___r8gJJ",
|
|
3978
3985
|
"radio-button--selected": "lc-RadioButton-module__radio-button--selected___s9lqj",
|
|
3979
3986
|
"radio-button--disabled": "lc-RadioButton-module__radio-button--disabled___wHSA7"
|
|
3980
|
-
},
|
|
3987
|
+
}, Me = "radio-button", fl = e.forwardRef(
|
|
3981
3988
|
(n, l) => {
|
|
3982
|
-
var s = n, { children: t, className: a = "", description: r, checked: _, disabled: o } = s, c =
|
|
3983
|
-
const i = m(
|
|
3984
|
-
[
|
|
3985
|
-
[
|
|
3989
|
+
var s = n, { children: t, className: a = "", description: r, checked: _, disabled: o } = s, c = I(s, ["children", "className", "description", "checked", "disabled"]);
|
|
3990
|
+
const i = m(Re[Me], a, {
|
|
3991
|
+
[Re[`${Me}--selected`]]: _,
|
|
3992
|
+
[Re[`${Me}--disabled`]]: o
|
|
3986
3993
|
});
|
|
3987
|
-
return /* @__PURE__ */ e.createElement("div", { className: i }, /* @__PURE__ */ e.createElement("label", { className:
|
|
3994
|
+
return /* @__PURE__ */ e.createElement("div", { className: i }, /* @__PURE__ */ e.createElement("label", { className: Re[`${Me}__label`] }, /* @__PURE__ */ e.createElement("div", { className: Re[`${Me}__circle`] }, /* @__PURE__ */ e.createElement("span", { className: Re[`${Me}__inner-circle`] }), /* @__PURE__ */ e.createElement(
|
|
3988
3995
|
"input",
|
|
3989
|
-
|
|
3990
|
-
className:
|
|
3996
|
+
T(y({}, c), {
|
|
3997
|
+
className: Re[`${Me}__input`],
|
|
3991
3998
|
ref: l,
|
|
3992
3999
|
type: "radio",
|
|
3993
4000
|
checked: _,
|
|
3994
4001
|
disabled: o
|
|
3995
4002
|
})
|
|
3996
|
-
)), t && /* @__PURE__ */ e.createElement(M, { as: "div", size: "md", className:
|
|
4003
|
+
)), t && /* @__PURE__ */ e.createElement(M, { as: "div", size: "md", className: Re[`${Me}__text`] }, t)), r && /* @__PURE__ */ e.createElement(Gt, { className: Re[`${Me}__helper`] }, r));
|
|
3997
4004
|
}
|
|
3998
|
-
),
|
|
4005
|
+
), De = {
|
|
3999
4006
|
"search-input": "lc-Search-module__search-input___FsbCk",
|
|
4000
4007
|
"search-input--compact": "lc-Search-module__search-input--compact___498To",
|
|
4001
4008
|
"search-input--medium": "lc-Search-module__search-input--medium___Hwteg",
|
|
@@ -4008,7 +4015,7 @@ const bt = {
|
|
|
4008
4015
|
"search-input__clear-icon": "lc-Search-module__search-input__clear-icon___LoNkc",
|
|
4009
4016
|
"search-input__loader": "lc-Search-module__search-input__loader___pkpIG",
|
|
4010
4017
|
"search-input__input": "lc-Search-module__search-input__input___OhyTr"
|
|
4011
|
-
},
|
|
4018
|
+
}, we = "search-input", Yo = `${we}__input`, vl = ({
|
|
4012
4019
|
isCollapsable: t,
|
|
4013
4020
|
isDisabled: a,
|
|
4014
4021
|
isLoading: r,
|
|
@@ -4020,19 +4027,19 @@ const bt = {
|
|
|
4020
4027
|
}) => {
|
|
4021
4028
|
const [s, i] = e.useState(!0), [d, p] = e.useState(!1), u = e.useRef(null), h = !!c && !a && !r, v = t && !s && "true", g = m(
|
|
4022
4029
|
l,
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
d &&
|
|
4026
|
-
a &&
|
|
4027
|
-
t &&
|
|
4028
|
-
!s &&
|
|
4030
|
+
De[we],
|
|
4031
|
+
De[`${we}--${o}`],
|
|
4032
|
+
d && De[`${we}--focused`],
|
|
4033
|
+
a && De[`${we}--disabled`],
|
|
4034
|
+
t && De[`${we}--collapsable`],
|
|
4035
|
+
!s && De[`${we}--collapsable--open`]
|
|
4029
4036
|
);
|
|
4030
4037
|
e.useEffect(() => {
|
|
4031
4038
|
t && c && i(!1);
|
|
4032
4039
|
}, [t]);
|
|
4033
4040
|
const b = (E) => {
|
|
4034
|
-
const
|
|
4035
|
-
n(
|
|
4041
|
+
const B = E.currentTarget.value;
|
|
4042
|
+
n(B);
|
|
4036
4043
|
}, k = () => {
|
|
4037
4044
|
n("");
|
|
4038
4045
|
}, f = () => {
|
|
@@ -4054,10 +4061,10 @@ const bt = {
|
|
|
4054
4061
|
onClick: f
|
|
4055
4062
|
},
|
|
4056
4063
|
/* @__PURE__ */ e.createElement(
|
|
4057
|
-
|
|
4064
|
+
S,
|
|
4058
4065
|
{
|
|
4059
|
-
className:
|
|
4060
|
-
source:
|
|
4066
|
+
className: De[`${we}__search-icon`],
|
|
4067
|
+
source: Tr,
|
|
4061
4068
|
disabled: a,
|
|
4062
4069
|
kind: "primary"
|
|
4063
4070
|
}
|
|
@@ -4067,7 +4074,7 @@ const bt = {
|
|
|
4067
4074
|
{
|
|
4068
4075
|
role: "searchbox",
|
|
4069
4076
|
ref: u,
|
|
4070
|
-
className:
|
|
4077
|
+
className: De[Yo],
|
|
4071
4078
|
type: "text",
|
|
4072
4079
|
value: c,
|
|
4073
4080
|
placeholder: _,
|
|
@@ -4083,9 +4090,9 @@ const bt = {
|
|
|
4083
4090
|
{
|
|
4084
4091
|
"aria-label": "Clear search",
|
|
4085
4092
|
title: "Clear search",
|
|
4086
|
-
className:
|
|
4093
|
+
className: De[`${we}__clear-icon`],
|
|
4087
4094
|
onClick: k,
|
|
4088
|
-
icon: /* @__PURE__ */ e.createElement(
|
|
4095
|
+
icon: /* @__PURE__ */ e.createElement(S, { source: Ce, kind: "primary" }),
|
|
4089
4096
|
kind: "text",
|
|
4090
4097
|
size: "compact"
|
|
4091
4098
|
}
|
|
@@ -4093,13 +4100,13 @@ const bt = {
|
|
|
4093
4100
|
r && /* @__PURE__ */ e.createElement(
|
|
4094
4101
|
"div",
|
|
4095
4102
|
{
|
|
4096
|
-
"data-testid": `${
|
|
4097
|
-
className:
|
|
4103
|
+
"data-testid": `${we}-loader`,
|
|
4104
|
+
className: De[`${we}__loader`]
|
|
4098
4105
|
},
|
|
4099
4106
|
/* @__PURE__ */ e.createElement(ba, { size: "small" })
|
|
4100
4107
|
)
|
|
4101
4108
|
);
|
|
4102
|
-
},
|
|
4109
|
+
}, qo = "lc-Switch-module__switch__input___NiiOR", Ko = "lc-Switch-module__switch__container___79F7W", Jo = "lc-Switch-module__switch__track___2wr2M", jo = "lc-Switch-module__switch__slider___WHd--", Qo = "lc-Switch-module__switch__loader___FE-fA", Zo = "lc-Switch-module__switch__icon___-O1qY", ce = {
|
|
4103
4110
|
switch: "lc-Switch-module__switch___AaA2k",
|
|
4104
4111
|
"switch__track--enabled": "lc-Switch-module__switch__track--enabled___sy4Xl",
|
|
4105
4112
|
"switch__track--on": "lc-Switch-module__switch__track--on___aOMWe",
|
|
@@ -4107,12 +4114,12 @@ const bt = {
|
|
|
4107
4114
|
"switch--large": "lc-Switch-module__switch--large___pSoJ7",
|
|
4108
4115
|
"switch--compact": "lc-Switch-module__switch--compact___OGFIX",
|
|
4109
4116
|
"switch--medium": "lc-Switch-module__switch--medium___EcZwT",
|
|
4110
|
-
switch__input:
|
|
4117
|
+
switch__input: qo,
|
|
4111
4118
|
"switch__input--disabled": "lc-Switch-module__switch__input--disabled___Po8gh",
|
|
4112
|
-
switch__container:
|
|
4113
|
-
switch__track:
|
|
4119
|
+
switch__container: Ko,
|
|
4120
|
+
switch__track: Jo,
|
|
4114
4121
|
"switch__track--disabled": "lc-Switch-module__switch__track--disabled___HkDhl",
|
|
4115
|
-
switch__slider:
|
|
4122
|
+
switch__slider: jo,
|
|
4116
4123
|
"switch__slider--large": "lc-Switch-module__switch__slider--large___WoEgi",
|
|
4117
4124
|
"switch__slider--large--on": "lc-Switch-module__switch__slider--large--on___7Qp3G",
|
|
4118
4125
|
"switch__slider--large--off": "lc-Switch-module__switch__slider--large--off___iRMmD",
|
|
@@ -4122,24 +4129,24 @@ const bt = {
|
|
|
4122
4129
|
"switch__slider--medium": "lc-Switch-module__switch__slider--medium___uhptz",
|
|
4123
4130
|
"switch__slider--medium--on": "lc-Switch-module__switch__slider--medium--on___SfeAV",
|
|
4124
4131
|
"switch__slider--medium--off": "lc-Switch-module__switch__slider--medium--off___eXJJz",
|
|
4125
|
-
switch__loader:
|
|
4132
|
+
switch__loader: Qo,
|
|
4126
4133
|
"switch__loader--compact": "lc-Switch-module__switch__loader--compact___3imUh",
|
|
4127
4134
|
"switch__loader--medium": "lc-Switch-module__switch__loader--medium___2zi05",
|
|
4128
4135
|
"switch__loader--large": "lc-Switch-module__switch__loader--large___vLRFa",
|
|
4129
|
-
switch__icon:
|
|
4130
|
-
},
|
|
4136
|
+
switch__icon: Zo
|
|
4137
|
+
}, ae = "switch", hl = (p) => {
|
|
4131
4138
|
var u = p, {
|
|
4132
4139
|
className: t = "",
|
|
4133
4140
|
defaultOn: a = !1,
|
|
4134
4141
|
disabled: r = !1,
|
|
4135
|
-
name: _ =
|
|
4142
|
+
name: _ = ae,
|
|
4136
4143
|
on: o,
|
|
4137
4144
|
onChange: c,
|
|
4138
4145
|
size: l = "large",
|
|
4139
4146
|
state: n = "regular",
|
|
4140
4147
|
innerRef: s,
|
|
4141
4148
|
ariaLabel: i
|
|
4142
|
-
} = u, d =
|
|
4149
|
+
} = u, d = I(u, [
|
|
4143
4150
|
"className",
|
|
4144
4151
|
"defaultOn",
|
|
4145
4152
|
"disabled",
|
|
@@ -4153,76 +4160,76 @@ const bt = {
|
|
|
4153
4160
|
]);
|
|
4154
4161
|
const h = o !== void 0, [v, g] = e.useState(
|
|
4155
4162
|
() => h ? o : a
|
|
4156
|
-
), b = h ? o : v, k = n === "loading", f = n === "locked", $ = l === "large" ? "small" : "xsmall", w = b ? "on" : "off", F = r || k || f, E = F ? "disabled" : "enabled",
|
|
4157
|
-
ce[
|
|
4158
|
-
ce[`${
|
|
4163
|
+
), b = h ? o : v, k = n === "loading", f = n === "locked", $ = l === "large" ? "small" : "xsmall", w = b ? "on" : "off", F = r || k || f, E = F ? "disabled" : "enabled", B = m(
|
|
4164
|
+
ce[ae],
|
|
4165
|
+
ce[`${ae}--${l}`],
|
|
4159
4166
|
t
|
|
4160
|
-
),
|
|
4167
|
+
), D = (se) => {
|
|
4161
4168
|
c == null || c(se, !b), h || (se.stopPropagation(), g((A) => !A));
|
|
4162
4169
|
};
|
|
4163
|
-
return /* @__PURE__ */ e.createElement("span", { className:
|
|
4170
|
+
return /* @__PURE__ */ e.createElement("span", { className: B }, /* @__PURE__ */ e.createElement(
|
|
4164
4171
|
"input",
|
|
4165
4172
|
y({
|
|
4166
4173
|
type: "checkbox",
|
|
4167
4174
|
className: m(
|
|
4168
|
-
ce[`${
|
|
4169
|
-
ce[`${
|
|
4175
|
+
ce[`${ae}__input`],
|
|
4176
|
+
ce[`${ae}__input--${E}`]
|
|
4170
4177
|
),
|
|
4171
|
-
onChange:
|
|
4178
|
+
onChange: D,
|
|
4172
4179
|
checked: b,
|
|
4173
4180
|
name: _,
|
|
4174
4181
|
ref: s,
|
|
4175
4182
|
disabled: F,
|
|
4176
4183
|
"aria-label": i
|
|
4177
4184
|
}, d)
|
|
4178
|
-
), /* @__PURE__ */ e.createElement("span", { className: ce[`${
|
|
4185
|
+
), /* @__PURE__ */ e.createElement("span", { className: ce[`${ae}__container`] }, /* @__PURE__ */ e.createElement(
|
|
4179
4186
|
"span",
|
|
4180
4187
|
{
|
|
4181
4188
|
className: m(
|
|
4182
|
-
ce[`${
|
|
4183
|
-
ce[`${
|
|
4184
|
-
ce[`${
|
|
4189
|
+
ce[`${ae}__track`],
|
|
4190
|
+
ce[`${ae}__track--${w}`],
|
|
4191
|
+
ce[`${ae}__track--${E}`]
|
|
4185
4192
|
)
|
|
4186
4193
|
}
|
|
4187
4194
|
), /* @__PURE__ */ e.createElement(
|
|
4188
4195
|
"span",
|
|
4189
4196
|
{
|
|
4190
4197
|
className: m(
|
|
4191
|
-
ce[`${
|
|
4192
|
-
ce[`${
|
|
4193
|
-
ce[`${
|
|
4198
|
+
ce[`${ae}__slider`],
|
|
4199
|
+
ce[`${ae}__slider--${l}`],
|
|
4200
|
+
ce[`${ae}__slider--${l}--${w}`]
|
|
4194
4201
|
)
|
|
4195
4202
|
},
|
|
4196
4203
|
k && /* @__PURE__ */ e.createElement(
|
|
4197
4204
|
ba,
|
|
4198
4205
|
{
|
|
4199
4206
|
className: m(
|
|
4200
|
-
ce[`${
|
|
4201
|
-
ce[`${
|
|
4207
|
+
ce[`${ae}__loader`],
|
|
4208
|
+
ce[`${ae}__loader--${l}`]
|
|
4202
4209
|
)
|
|
4203
4210
|
}
|
|
4204
4211
|
),
|
|
4205
4212
|
f && /* @__PURE__ */ e.createElement(
|
|
4206
|
-
|
|
4213
|
+
S,
|
|
4207
4214
|
{
|
|
4208
|
-
className: ce[`${
|
|
4215
|
+
className: ce[`${ae}__icon`],
|
|
4209
4216
|
"data-testid": "lock-icon",
|
|
4210
4217
|
size: $,
|
|
4211
|
-
source:
|
|
4218
|
+
source: Br,
|
|
4212
4219
|
kind: "primary"
|
|
4213
4220
|
}
|
|
4214
4221
|
)
|
|
4215
4222
|
)));
|
|
4216
|
-
},
|
|
4217
|
-
tab:
|
|
4218
|
-
tab__count:
|
|
4223
|
+
}, Xo = "lc-Tab-module__tab___fME7u", ec = "lc-Tab-module__tab__count___gc8tA", tc = "lc-Tab-module__tab__badge___W9c-T", rt = {
|
|
4224
|
+
tab: Xo,
|
|
4225
|
+
tab__count: ec,
|
|
4219
4226
|
"tab--compact": "lc-Tab-module__tab--compact___4qead",
|
|
4220
4227
|
"tab--medium": "lc-Tab-module__tab--medium___bHnGV",
|
|
4221
4228
|
"tab--large": "lc-Tab-module__tab--large___JL30g",
|
|
4222
|
-
tab__badge:
|
|
4229
|
+
tab__badge: tc,
|
|
4223
4230
|
"tab--selected": "lc-Tab-module__tab--selected___c0EkL",
|
|
4224
4231
|
"tab--disabled": "lc-Tab-module__tab--disabled___URdTh"
|
|
4225
|
-
}, _t = "tab",
|
|
4232
|
+
}, _t = "tab", kl = (n) => {
|
|
4226
4233
|
var s = n, {
|
|
4227
4234
|
children: t,
|
|
4228
4235
|
className: a,
|
|
@@ -4230,7 +4237,7 @@ const bt = {
|
|
|
4230
4237
|
isSelected: _,
|
|
4231
4238
|
asBadge: o,
|
|
4232
4239
|
size: c = "medium"
|
|
4233
|
-
} = s, l =
|
|
4240
|
+
} = s, l = I(s, [
|
|
4234
4241
|
"children",
|
|
4235
4242
|
"className",
|
|
4236
4243
|
"count",
|
|
@@ -4241,7 +4248,7 @@ const bt = {
|
|
|
4241
4248
|
const { disabled: i } = l, d = r !== void 0 && !o, p = r !== void 0 && o;
|
|
4242
4249
|
return /* @__PURE__ */ e.createElement(
|
|
4243
4250
|
M,
|
|
4244
|
-
|
|
4251
|
+
T(y({}, l), {
|
|
4245
4252
|
as: l.href ? "a" : "button",
|
|
4246
4253
|
size: "md",
|
|
4247
4254
|
bold: _,
|
|
@@ -4256,7 +4263,7 @@ const bt = {
|
|
|
4256
4263
|
t,
|
|
4257
4264
|
d && /* @__PURE__ */ e.createElement(M, { as: "span", size: "md", className: rt[`${_t}__count`] }, "(", r, ")"),
|
|
4258
4265
|
p && /* @__PURE__ */ e.createElement(
|
|
4259
|
-
|
|
4266
|
+
T_,
|
|
4260
4267
|
{
|
|
4261
4268
|
"data-testid": "tab-badge",
|
|
4262
4269
|
count: r,
|
|
@@ -4265,16 +4272,16 @@ const bt = {
|
|
|
4265
4272
|
}
|
|
4266
4273
|
)
|
|
4267
4274
|
);
|
|
4268
|
-
},
|
|
4269
|
-
tabs:
|
|
4270
|
-
tabs__list:
|
|
4271
|
-
}, lr = "tabs",
|
|
4275
|
+
}, ac = "lc-TabsWrapper-module__tabs___Y2xyD", rc = "lc-TabsWrapper-module__tabs__list___i6tVO", cr = {
|
|
4276
|
+
tabs: ac,
|
|
4277
|
+
tabs__list: rc
|
|
4278
|
+
}, lr = "tabs", yl = ({
|
|
4272
4279
|
className: t,
|
|
4273
4280
|
children: a
|
|
4274
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: m(cr[lr], t) }, a),
|
|
4281
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: m(cr[lr], t) }, a), El = ({
|
|
4275
4282
|
className: t,
|
|
4276
4283
|
children: a
|
|
4277
|
-
}) => /* @__PURE__ */ e.createElement("div", { className: m(cr[`${lr}__list`], t) }, a),
|
|
4284
|
+
}) => /* @__PURE__ */ e.createElement("div", { className: m(cr[`${lr}__list`], t) }, a), _c = ({
|
|
4278
4285
|
className: t = "",
|
|
4279
4286
|
innerEditableRef: a,
|
|
4280
4287
|
inputRef: r,
|
|
@@ -4326,7 +4333,7 @@ const bt = {
|
|
|
4326
4333
|
"tag-input__input--medium": "lc-TagInput-module__tag-input__input--medium___DYF7X",
|
|
4327
4334
|
"tag-input__input--large": "lc-TagInput-module__tag-input__input--large___G6iEO",
|
|
4328
4335
|
"tag-input__tag__content": "lc-TagInput-module__tag-input__tag__content___x95-M"
|
|
4329
|
-
},
|
|
4336
|
+
}, oc = "tag-input__tag", cc = ({
|
|
4330
4337
|
children: t,
|
|
4331
4338
|
index: a,
|
|
4332
4339
|
remove: r,
|
|
@@ -4345,25 +4352,25 @@ const bt = {
|
|
|
4345
4352
|
onRemove: i
|
|
4346
4353
|
},
|
|
4347
4354
|
/* @__PURE__ */ e.createElement(
|
|
4348
|
-
|
|
4355
|
+
_c,
|
|
4349
4356
|
{
|
|
4350
4357
|
value: t,
|
|
4351
4358
|
inputRef: o,
|
|
4352
4359
|
innerEditableRef: s,
|
|
4353
|
-
className: kt[`${
|
|
4360
|
+
className: kt[`${oc}__content`],
|
|
4354
4361
|
change: (d) => c(a, d),
|
|
4355
4362
|
remove: i,
|
|
4356
4363
|
validator: _
|
|
4357
4364
|
}
|
|
4358
4365
|
)
|
|
4359
4366
|
);
|
|
4360
|
-
}, Mt = "tag-input",
|
|
4367
|
+
}, Mt = "tag-input", lc = [
|
|
4361
4368
|
z.enter,
|
|
4362
4369
|
z.spacebar,
|
|
4363
4370
|
z.tab,
|
|
4364
4371
|
z.semicolon,
|
|
4365
4372
|
z.comma
|
|
4366
|
-
],
|
|
4373
|
+
], nc = [z.backspace, z.delete], sc = (u) => {
|
|
4367
4374
|
var h = u, {
|
|
4368
4375
|
id: t,
|
|
4369
4376
|
tags: a,
|
|
@@ -4376,7 +4383,7 @@ const bt = {
|
|
|
4376
4383
|
inputClassName: s,
|
|
4377
4384
|
onBlur: i,
|
|
4378
4385
|
addOnBlur: d = !0
|
|
4379
|
-
} = h, p =
|
|
4386
|
+
} = h, p = I(h, [
|
|
4380
4387
|
"id",
|
|
4381
4388
|
"tags",
|
|
4382
4389
|
"onChange",
|
|
@@ -4402,37 +4409,37 @@ const bt = {
|
|
|
4402
4409
|
), [b, k] = e.useState(""), f = e.useRef(null), $ = (A) => {
|
|
4403
4410
|
r([...a || [], A]), k("");
|
|
4404
4411
|
}, w = (A) => {
|
|
4405
|
-
const
|
|
4406
|
-
|
|
4412
|
+
const q = [...a || []];
|
|
4413
|
+
q.splice(A, 1), r(q);
|
|
4407
4414
|
}, F = (A) => k(A.target.value), E = (A) => {
|
|
4408
|
-
if (
|
|
4415
|
+
if (lc.includes(A.key)) {
|
|
4409
4416
|
if (A.preventDefault(), b === "")
|
|
4410
4417
|
return;
|
|
4411
4418
|
$(b);
|
|
4412
|
-
} else if (
|
|
4419
|
+
} else if (nc.includes(A.key)) {
|
|
4413
4420
|
if (b !== "" || !(a != null && a.length))
|
|
4414
4421
|
return;
|
|
4415
4422
|
w(a.length - 1);
|
|
4416
4423
|
}
|
|
4417
|
-
},
|
|
4424
|
+
}, B = (A) => {
|
|
4418
4425
|
d && $(b), i == null || i(A);
|
|
4419
|
-
},
|
|
4420
|
-
const
|
|
4421
|
-
|
|
4422
|
-
(
|
|
4426
|
+
}, D = (A, q) => {
|
|
4427
|
+
const re = [...a || []];
|
|
4428
|
+
re.reduce(
|
|
4429
|
+
(Ie, Ne, He) => Ie + (Ne === q && He !== A ? 1 : 0),
|
|
4423
4430
|
0
|
|
4424
|
-
) > 0 ?
|
|
4431
|
+
) > 0 ? re.splice(A, 1) : re[A] = q, r(re);
|
|
4425
4432
|
}, se = (A) => {
|
|
4426
4433
|
A.preventDefault();
|
|
4427
|
-
const
|
|
4428
|
-
r([...a || [], ...
|
|
4434
|
+
const re = A.clipboardData.getData("text/plain").split(/[\s,;\n]+/);
|
|
4435
|
+
r([...a || [], ...re]);
|
|
4429
4436
|
};
|
|
4430
|
-
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: v }, a == null ? void 0 : a.map((A,
|
|
4431
|
-
|
|
4437
|
+
return /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("div", { className: v }, a == null ? void 0 : a.map((A, q) => /* @__PURE__ */ e.createElement(
|
|
4438
|
+
cc,
|
|
4432
4439
|
{
|
|
4433
|
-
index:
|
|
4434
|
-
key: `${
|
|
4435
|
-
update:
|
|
4440
|
+
index: q,
|
|
4441
|
+
key: `${q}${A}`,
|
|
4442
|
+
update: D,
|
|
4436
4443
|
remove: w,
|
|
4437
4444
|
inputRef: f,
|
|
4438
4445
|
validator: _,
|
|
@@ -4441,7 +4448,7 @@ const bt = {
|
|
|
4441
4448
|
A
|
|
4442
4449
|
)), /* @__PURE__ */ e.createElement(
|
|
4443
4450
|
"input",
|
|
4444
|
-
|
|
4451
|
+
T(y({}, p), {
|
|
4445
4452
|
id: t,
|
|
4446
4453
|
ref: f,
|
|
4447
4454
|
className: g,
|
|
@@ -4450,18 +4457,18 @@ const bt = {
|
|
|
4450
4457
|
onChange: F,
|
|
4451
4458
|
onKeyDown: E,
|
|
4452
4459
|
onPaste: se,
|
|
4453
|
-
onBlur:
|
|
4460
|
+
onBlur: B
|
|
4454
4461
|
})
|
|
4455
4462
|
)), o && /* @__PURE__ */ e.createElement(fa, null, o));
|
|
4456
|
-
},
|
|
4463
|
+
}, ic = /^(?:[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, dc = "name@company.com", uc = (t) => ic.test(t), $l = (n) => {
|
|
4457
4464
|
var s = n, {
|
|
4458
4465
|
id: t,
|
|
4459
4466
|
tags: a,
|
|
4460
4467
|
onChange: r,
|
|
4461
4468
|
error: _,
|
|
4462
|
-
placeholder: o =
|
|
4469
|
+
placeholder: o = dc,
|
|
4463
4470
|
size: c
|
|
4464
|
-
} = s, l =
|
|
4471
|
+
} = s, l = I(s, [
|
|
4465
4472
|
"id",
|
|
4466
4473
|
"tags",
|
|
4467
4474
|
"onChange",
|
|
@@ -4470,22 +4477,22 @@ const bt = {
|
|
|
4470
4477
|
"size"
|
|
4471
4478
|
]);
|
|
4472
4479
|
return /* @__PURE__ */ e.createElement(
|
|
4473
|
-
|
|
4474
|
-
|
|
4480
|
+
sc,
|
|
4481
|
+
T(y({}, l), {
|
|
4475
4482
|
id: t,
|
|
4476
4483
|
tags: a,
|
|
4477
4484
|
error: _,
|
|
4478
4485
|
onChange: r,
|
|
4479
4486
|
placeholder: o,
|
|
4480
|
-
validator:
|
|
4487
|
+
validator: uc,
|
|
4481
4488
|
size: c
|
|
4482
4489
|
})
|
|
4483
4490
|
);
|
|
4484
|
-
},
|
|
4485
|
-
toast:
|
|
4486
|
-
toast__content:
|
|
4487
|
-
toast__actions:
|
|
4488
|
-
toast__actions__button:
|
|
4491
|
+
}, mc = "lc-Toast-module__toast___j5Amn", pc = "lc-Toast-module__toast__content___HjaNw", gc = "lc-Toast-module__toast__actions___JWu-1", bc = "lc-Toast-module__toast__actions__button___Iblrl", j = {
|
|
4492
|
+
toast: mc,
|
|
4493
|
+
toast__content: pc,
|
|
4494
|
+
toast__actions: gc,
|
|
4495
|
+
toast__actions__button: bc,
|
|
4489
4496
|
"toast__actions__button--success": "lc-Toast-module__toast__actions__button--success___5JmFw",
|
|
4490
4497
|
"toast__actions__button--warning": "lc-Toast-module__toast__actions__button--warning___zGQ-Q",
|
|
4491
4498
|
"toast__actions__button--error": "lc-Toast-module__toast__actions__button--error___PuTv3",
|
|
@@ -4511,7 +4518,7 @@ const bt = {
|
|
|
4511
4518
|
"toast-appear-active--fade": "lc-Toast-module__toast-appear-active--fade___D3--J",
|
|
4512
4519
|
"toast-exit--fade": "lc-Toast-module__toast-exit--fade___iDA1p",
|
|
4513
4520
|
"toast-exit-active--fade": "lc-Toast-module__toast-exit-active--fade___tL7sb"
|
|
4514
|
-
},
|
|
4521
|
+
}, fc = {
|
|
4515
4522
|
success: {
|
|
4516
4523
|
source: Wa
|
|
4517
4524
|
},
|
|
@@ -4524,7 +4531,7 @@ const bt = {
|
|
|
4524
4531
|
info: {
|
|
4525
4532
|
source: oa
|
|
4526
4533
|
}
|
|
4527
|
-
},
|
|
4534
|
+
}, Ue = "toast", vc = (n) => {
|
|
4528
4535
|
var s = n, {
|
|
4529
4536
|
action: t,
|
|
4530
4537
|
className: a,
|
|
@@ -4532,7 +4539,7 @@ const bt = {
|
|
|
4532
4539
|
removable: _,
|
|
4533
4540
|
kind: o = "info",
|
|
4534
4541
|
onClose: c
|
|
4535
|
-
} = s, l =
|
|
4542
|
+
} = s, l = I(s, [
|
|
4536
4543
|
"action",
|
|
4537
4544
|
"className",
|
|
4538
4545
|
"children",
|
|
@@ -4541,14 +4548,14 @@ const bt = {
|
|
|
4541
4548
|
"onClose"
|
|
4542
4549
|
]);
|
|
4543
4550
|
const i = m(
|
|
4544
|
-
|
|
4545
|
-
|
|
4551
|
+
j[Ue],
|
|
4552
|
+
j[`${Ue}--${o}`],
|
|
4546
4553
|
a
|
|
4547
4554
|
), d = typeof r == "string", p = (u) => u && u.closesOnClick && c ? (u.onClick(), c()) : u.onClick();
|
|
4548
|
-
return /* @__PURE__ */ e.createElement("div", y({ className: i }, l), /* @__PURE__ */ e.createElement("div", { className:
|
|
4555
|
+
return /* @__PURE__ */ e.createElement("div", y({ className: i }, l), /* @__PURE__ */ e.createElement("div", { className: j[`${Ue}__icon`] }, /* @__PURE__ */ e.createElement(S, T(y({}, fc[o]), { size: "medium" }))), /* @__PURE__ */ e.createElement("div", { className: j[`${Ue}__content`] }, d ? /* @__PURE__ */ e.createElement(M, { as: "div" }, r) : r), (t || _) && /* @__PURE__ */ e.createElement("div", { className: j[`${Ue}__actions`] }, t && /* @__PURE__ */ e.createElement(
|
|
4549
4556
|
G,
|
|
4550
4557
|
{
|
|
4551
|
-
className:
|
|
4558
|
+
className: j[`${Ue}__actions--custom`],
|
|
4552
4559
|
kind: "text",
|
|
4553
4560
|
size: "compact",
|
|
4554
4561
|
onClick: () => p(t)
|
|
@@ -4558,15 +4565,15 @@ const bt = {
|
|
|
4558
4565
|
"button",
|
|
4559
4566
|
{
|
|
4560
4567
|
className: m(
|
|
4561
|
-
|
|
4562
|
-
|
|
4568
|
+
j[`${Ue}__actions__button`],
|
|
4569
|
+
j[`${Ue}__actions__button--${o}`]
|
|
4563
4570
|
),
|
|
4564
4571
|
"aria-label": "Close toast",
|
|
4565
4572
|
onClick: c
|
|
4566
4573
|
},
|
|
4567
|
-
/* @__PURE__ */ e.createElement(
|
|
4574
|
+
/* @__PURE__ */ e.createElement(S, { source: Ce, size: "medium" })
|
|
4568
4575
|
)));
|
|
4569
|
-
},
|
|
4576
|
+
}, hc = 200, vt = "toast-wrapper", wl = ({
|
|
4570
4577
|
className: t,
|
|
4571
4578
|
toasts: a = [],
|
|
4572
4579
|
fixed: r = !0,
|
|
@@ -4576,12 +4583,12 @@ const bt = {
|
|
|
4576
4583
|
horizontalPosition: l = "center"
|
|
4577
4584
|
}) => {
|
|
4578
4585
|
const n = m(
|
|
4579
|
-
|
|
4586
|
+
j[vt],
|
|
4580
4587
|
{
|
|
4581
|
-
[
|
|
4582
|
-
[
|
|
4583
|
-
[
|
|
4584
|
-
[
|
|
4588
|
+
[j[`${vt}--fixed`]]: r,
|
|
4589
|
+
[j[`${vt}--block`]]: !r && _,
|
|
4590
|
+
[j[`${vt}--horizontal-${l}`]]: l,
|
|
4591
|
+
[j[`${vt}--vertical-${c}`]]: c
|
|
4585
4592
|
},
|
|
4586
4593
|
t
|
|
4587
4594
|
);
|
|
@@ -4590,15 +4597,15 @@ const bt = {
|
|
|
4590
4597
|
{
|
|
4591
4598
|
key: s,
|
|
4592
4599
|
classNames: {
|
|
4593
|
-
enter:
|
|
4594
|
-
enterActive:
|
|
4595
|
-
exit:
|
|
4596
|
-
exitActive:
|
|
4600
|
+
enter: j[`toast-appear--${o}`],
|
|
4601
|
+
enterActive: j[`toast-appear-active--${o}`],
|
|
4602
|
+
exit: j[`toast-exit--${o}`],
|
|
4603
|
+
exitActive: j[`toast-exit-active--${o}`]
|
|
4597
4604
|
},
|
|
4598
|
-
timeout:
|
|
4605
|
+
timeout: hc
|
|
4599
4606
|
},
|
|
4600
4607
|
/* @__PURE__ */ e.createElement(
|
|
4601
|
-
|
|
4608
|
+
vc,
|
|
4602
4609
|
{
|
|
4603
4610
|
kind: i,
|
|
4604
4611
|
onClose: h,
|
|
@@ -4608,14 +4615,14 @@ const bt = {
|
|
|
4608
4615
|
d
|
|
4609
4616
|
)
|
|
4610
4617
|
))));
|
|
4611
|
-
},
|
|
4612
|
-
textarea:
|
|
4618
|
+
}, kc = "lc-Textarea-module__textarea___g6U8F", Lt = {
|
|
4619
|
+
textarea: kc,
|
|
4613
4620
|
"textarea--focused": "lc-Textarea-module__textarea--focused___1vtEx",
|
|
4614
4621
|
"textarea--disabled": "lc-Textarea-module__textarea--disabled___xXaGv",
|
|
4615
4622
|
"textarea--error": "lc-Textarea-module__textarea--error___0EGuq"
|
|
4616
|
-
}, Ot = "textarea",
|
|
4623
|
+
}, Ot = "textarea", Cl = e.forwardRef(
|
|
4617
4624
|
(o, _) => {
|
|
4618
|
-
var c = o, { className: t, error: a } = c, r =
|
|
4625
|
+
var c = o, { className: t, error: a } = c, r = I(c, ["className", "error"]);
|
|
4619
4626
|
const { disabled: l, onBlur: n, onFocus: s } = r, [i, d] = e.useState(!1), p = m(t, Lt[Ot], {
|
|
4620
4627
|
[Lt[`${Ot}--disabled`]]: l,
|
|
4621
4628
|
[Lt[`${Ot}--focused`]]: i,
|
|
@@ -4627,7 +4634,7 @@ const bt = {
|
|
|
4627
4634
|
};
|
|
4628
4635
|
return /* @__PURE__ */ e.createElement("div", { className: p }, /* @__PURE__ */ e.createElement(
|
|
4629
4636
|
"textarea",
|
|
4630
|
-
|
|
4637
|
+
T(y({}, r), {
|
|
4631
4638
|
ref: _,
|
|
4632
4639
|
onFocus: h,
|
|
4633
4640
|
onBlur: u
|
|
@@ -4646,7 +4653,7 @@ const bt = {
|
|
|
4646
4653
|
"aria-label": "Retry",
|
|
4647
4654
|
onClick: r
|
|
4648
4655
|
},
|
|
4649
|
-
/* @__PURE__ */ e.createElement(
|
|
4656
|
+
/* @__PURE__ */ e.createElement(S, { size: "small", source: Ar })
|
|
4650
4657
|
), a && t !== "success" && /* @__PURE__ */ e.createElement(
|
|
4651
4658
|
"button",
|
|
4652
4659
|
{
|
|
@@ -4655,8 +4662,8 @@ const bt = {
|
|
|
4655
4662
|
"aria-label": "Close",
|
|
4656
4663
|
onClick: a
|
|
4657
4664
|
},
|
|
4658
|
-
/* @__PURE__ */ e.createElement(
|
|
4659
|
-
)),
|
|
4665
|
+
/* @__PURE__ */ e.createElement(S, { size: "small", source: Ce })
|
|
4666
|
+
)), $e = {
|
|
4660
4667
|
"file-upload-progress": "lc-FileUploadProgress-module__file-upload-progress___xw8h8",
|
|
4661
4668
|
"file-upload-progress__icon": "lc-FileUploadProgress-module__file-upload-progress__icon___p8Rfz",
|
|
4662
4669
|
"file-upload-progress__icon--success": "lc-FileUploadProgress-module__file-upload-progress__icon--success___X40uH",
|
|
@@ -4667,7 +4674,7 @@ const bt = {
|
|
|
4667
4674
|
"file-upload-progress__wrapper__header__title": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title___2IVuv",
|
|
4668
4675
|
"file-upload-progress__wrapper__header__title--success": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--success___E6DQl",
|
|
4669
4676
|
"file-upload-progress__wrapper__header__title--error": "lc-FileUploadProgress-module__file-upload-progress__wrapper__header__title--error___5BPpI"
|
|
4670
|
-
},
|
|
4677
|
+
}, Le = "file-upload-progress", Zt = `${Le}__wrapper__header__title`, yc = e.forwardRef(
|
|
4671
4678
|
({
|
|
4672
4679
|
actionsVisibility: t = "hidden",
|
|
4673
4680
|
className: a,
|
|
@@ -4678,28 +4685,28 @@ const bt = {
|
|
|
4678
4685
|
status: l = "normal",
|
|
4679
4686
|
onCloseButtonClick: n,
|
|
4680
4687
|
onRetryButtonClick: s
|
|
4681
|
-
}, i) => /* @__PURE__ */ e.createElement("div", { className:
|
|
4688
|
+
}, i) => /* @__PURE__ */ e.createElement("div", { className: $e[Le], ref: i }, r && l !== "success" && /* @__PURE__ */ e.createElement("div", { className: $e[`${Le}__icon`] }, r), l === "success" && /* @__PURE__ */ e.createElement(
|
|
4682
4689
|
"div",
|
|
4683
4690
|
{
|
|
4684
4691
|
className: m(
|
|
4685
|
-
|
|
4686
|
-
|
|
4692
|
+
$e[`${Le}__icon`],
|
|
4693
|
+
$e[`${Le}__icon--success`]
|
|
4687
4694
|
)
|
|
4688
4695
|
},
|
|
4689
|
-
/* @__PURE__ */ e.createElement(
|
|
4696
|
+
/* @__PURE__ */ e.createElement(S, { source: ca })
|
|
4690
4697
|
), /* @__PURE__ */ e.createElement(
|
|
4691
4698
|
"div",
|
|
4692
4699
|
{
|
|
4693
|
-
className: m(
|
|
4694
|
-
[
|
|
4700
|
+
className: m($e[`${Le}__wrapper`], {
|
|
4701
|
+
[$e[`${Le}__wrapper--with-icon`]]: r
|
|
4695
4702
|
})
|
|
4696
4703
|
},
|
|
4697
|
-
/* @__PURE__ */ e.createElement("div", { className:
|
|
4704
|
+
/* @__PURE__ */ e.createElement("div", { className: $e[`${Le}__wrapper__header`] }, _ && /* @__PURE__ */ e.createElement(
|
|
4698
4705
|
"div",
|
|
4699
4706
|
{
|
|
4700
|
-
className: m(
|
|
4701
|
-
[
|
|
4702
|
-
[
|
|
4707
|
+
className: m($e[Zt], {
|
|
4708
|
+
[$e[`${Zt}--success`]]: l === "success",
|
|
4709
|
+
[$e[`${Zt}--error`]]: l === "error"
|
|
4703
4710
|
})
|
|
4704
4711
|
},
|
|
4705
4712
|
/* @__PURE__ */ e.createElement(M, { size: "sm", as: "div" }, _),
|
|
@@ -4709,7 +4716,7 @@ const bt = {
|
|
|
4709
4716
|
"div",
|
|
4710
4717
|
{
|
|
4711
4718
|
className: m({
|
|
4712
|
-
[
|
|
4719
|
+
[$e[`${Le}__wrapper__header__actions`]]: t === "hover"
|
|
4713
4720
|
})
|
|
4714
4721
|
},
|
|
4715
4722
|
/* @__PURE__ */ e.createElement(
|
|
@@ -4722,7 +4729,7 @@ const bt = {
|
|
|
4722
4729
|
)
|
|
4723
4730
|
)),
|
|
4724
4731
|
l !== "success" && /* @__PURE__ */ e.createElement(
|
|
4725
|
-
|
|
4732
|
+
Go,
|
|
4726
4733
|
{
|
|
4727
4734
|
className: a,
|
|
4728
4735
|
percent: o,
|
|
@@ -4752,14 +4759,14 @@ const bt = {
|
|
|
4752
4759
|
"upload-bar__files--exit-done": "lc-UploadBar-module__upload-bar__files--exit-done___2I72G",
|
|
4753
4760
|
"upload-bar__files-wrapper": "lc-UploadBar-module__upload-bar__files-wrapper___93bs8",
|
|
4754
4761
|
"upload-bar__files__list": "lc-UploadBar-module__upload-bar__files__list___QJFEq"
|
|
4755
|
-
}, le = "upload-bar",
|
|
4756
|
-
|
|
4762
|
+
}, le = "upload-bar", Oe = `${le}__wrapper__header`, Ec = 300, $c = (t, a) => t === "success" ? /* @__PURE__ */ e.createElement("div", { className: H[`${Oe}__success-icon`] }, /* @__PURE__ */ e.createElement(S, { source: ca })) : t === "error" ? /* @__PURE__ */ e.createElement("div", { className: H[`${Oe}__error-icon`] }, /* @__PURE__ */ e.createElement(S, { source: Ir })) : /* @__PURE__ */ e.createElement(
|
|
4763
|
+
zo,
|
|
4757
4764
|
{
|
|
4758
|
-
className: H[`${
|
|
4765
|
+
className: H[`${Oe}__loader`],
|
|
4759
4766
|
status: t,
|
|
4760
4767
|
progressValue: a
|
|
4761
4768
|
}
|
|
4762
|
-
),
|
|
4769
|
+
), Nl = ({
|
|
4763
4770
|
children: t,
|
|
4764
4771
|
className: a,
|
|
4765
4772
|
progressValue: r,
|
|
@@ -4777,8 +4784,8 @@ const bt = {
|
|
|
4777
4784
|
[H[`${le}--error`]]: v,
|
|
4778
4785
|
[H[`${le}--success`]]: g
|
|
4779
4786
|
}), k = !(v && (p || d)), f = () => h(!u);
|
|
4780
|
-
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: b }, /* @__PURE__ */ e.createElement("div", { className: H[`${le}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: H[`${
|
|
4781
|
-
|
|
4787
|
+
return i === "single" ? /* @__PURE__ */ e.createElement("div", { className: b }, /* @__PURE__ */ e.createElement("div", { className: H[`${le}__wrapper`] }, /* @__PURE__ */ e.createElement("div", { className: H[`${Oe}`] }, /* @__PURE__ */ e.createElement(
|
|
4788
|
+
yc,
|
|
4782
4789
|
{
|
|
4783
4790
|
title: v && c || _,
|
|
4784
4791
|
progressValue: r,
|
|
@@ -4799,15 +4806,15 @@ const bt = {
|
|
|
4799
4806
|
className: H[`${le}__wrapper`],
|
|
4800
4807
|
onClick: f
|
|
4801
4808
|
},
|
|
4802
|
-
/* @__PURE__ */ e.createElement("div", { className: H[`${
|
|
4809
|
+
/* @__PURE__ */ e.createElement("div", { className: H[`${Oe}`] }, /* @__PURE__ */ e.createElement("div", { className: H[`${Oe}__icon`] }, $c(l, r)), /* @__PURE__ */ e.createElement("div", { className: H[`${Oe}__title`] }, /* @__PURE__ */ e.createElement(M, { size: "sm", as: "div" }, v ? c : _)), k && /* @__PURE__ */ e.createElement(
|
|
4803
4810
|
"button",
|
|
4804
4811
|
{
|
|
4805
|
-
className: H[`${
|
|
4812
|
+
className: H[`${Oe}__collapse-button`],
|
|
4806
4813
|
type: "button",
|
|
4807
4814
|
onClick: f
|
|
4808
4815
|
},
|
|
4809
|
-
u ? /* @__PURE__ */ e.createElement(
|
|
4810
|
-
), l === "error" && /* @__PURE__ */ e.createElement("div", { className: H[`${
|
|
4816
|
+
u ? /* @__PURE__ */ e.createElement(S, { source: zt }) : /* @__PURE__ */ e.createElement(S, { source: Et })
|
|
4817
|
+
), l === "error" && /* @__PURE__ */ e.createElement("div", { className: H[`${Oe}__actions-container`] }, /* @__PURE__ */ e.createElement(
|
|
4811
4818
|
_a,
|
|
4812
4819
|
{
|
|
4813
4820
|
status: l,
|
|
@@ -4818,7 +4825,7 @@ const bt = {
|
|
|
4818
4825
|
), /* @__PURE__ */ e.createElement(ja, { component: null }, u && /* @__PURE__ */ e.createElement(
|
|
4819
4826
|
Qa,
|
|
4820
4827
|
{
|
|
4821
|
-
timeout:
|
|
4828
|
+
timeout: Ec,
|
|
4822
4829
|
classNames: {
|
|
4823
4830
|
enter: H[`${le}__files--enter`],
|
|
4824
4831
|
enterActive: H[`${le}__files--enter-active`],
|
|
@@ -4831,74 +4838,75 @@ const bt = {
|
|
|
4831
4838
|
)));
|
|
4832
4839
|
};
|
|
4833
4840
|
export {
|
|
4834
|
-
|
|
4835
|
-
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4840
|
-
|
|
4841
|
+
hc as ANIMATION_TIME,
|
|
4842
|
+
Jc as ActionBar,
|
|
4843
|
+
Wr as ActionMenu,
|
|
4844
|
+
qr as ActionMenuItem,
|
|
4845
|
+
jc as Alert,
|
|
4846
|
+
N_ as Avatar,
|
|
4847
|
+
T_ as Badge,
|
|
4841
4848
|
G as Button,
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
|
|
4847
|
-
|
|
4848
|
-
|
|
4849
|
-
|
|
4849
|
+
Zc as Card,
|
|
4850
|
+
Xc as Checkbox,
|
|
4851
|
+
co as DatePicker,
|
|
4852
|
+
el as DatePickerRangeCalendarsWrapper,
|
|
4853
|
+
Rc as DesignToken,
|
|
4854
|
+
tl as DetailsCard,
|
|
4855
|
+
al as DetailsCardInfo,
|
|
4856
|
+
Uc as Display,
|
|
4857
|
+
$l as EmailTagInput,
|
|
4850
4858
|
Gt as FieldDescription,
|
|
4851
4859
|
fa as FieldError,
|
|
4852
|
-
|
|
4853
|
-
|
|
4860
|
+
rl as FieldGroup,
|
|
4861
|
+
yc as FileUploadProgress,
|
|
4854
4862
|
_a as FileUploadProgressActions,
|
|
4855
|
-
|
|
4856
|
-
|
|
4857
|
-
|
|
4863
|
+
_l as Form,
|
|
4864
|
+
ol as FormField,
|
|
4865
|
+
cl as FormGroup,
|
|
4858
4866
|
Je as Heading,
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
|
|
4863
|
-
|
|
4867
|
+
S as Icon,
|
|
4868
|
+
Vc as Info,
|
|
4869
|
+
ll as Input,
|
|
4870
|
+
Yc as Interactive,
|
|
4871
|
+
nl as Link,
|
|
4864
4872
|
ba as Loader,
|
|
4865
|
-
|
|
4866
|
-
|
|
4873
|
+
sl as Modal,
|
|
4874
|
+
yo as ModalBase,
|
|
4867
4875
|
La as ModalCloseButton,
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
|
|
4879
|
-
|
|
4880
|
-
|
|
4881
|
-
|
|
4882
|
-
|
|
4883
|
-
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4890
|
-
|
|
4876
|
+
dl as ModalHeader,
|
|
4877
|
+
il as ModalPortal,
|
|
4878
|
+
ul as NumericInput,
|
|
4879
|
+
ml as Picker,
|
|
4880
|
+
wo as PickerList,
|
|
4881
|
+
pl as Popover,
|
|
4882
|
+
Go as ProgressBar,
|
|
4883
|
+
zo as ProgressCircle,
|
|
4884
|
+
gl as PromoBanner,
|
|
4885
|
+
bl as PromoBannerV2,
|
|
4886
|
+
fl as RadioButton,
|
|
4887
|
+
Oc as RadiusToken,
|
|
4888
|
+
no as RangeDatePicker,
|
|
4889
|
+
Kc as Reports,
|
|
4890
|
+
vl as SearchInput,
|
|
4891
|
+
Qc as SegmentedControl,
|
|
4892
|
+
Lc as ShadowToken,
|
|
4893
|
+
Wc as Simple,
|
|
4894
|
+
Mc as SpacingToken,
|
|
4895
|
+
hl as Switch,
|
|
4896
|
+
kl as Tab,
|
|
4897
|
+
El as TabsList,
|
|
4898
|
+
yl as TabsWrapper,
|
|
4891
4899
|
rr as Tag,
|
|
4892
|
-
|
|
4900
|
+
sc as TagInput,
|
|
4893
4901
|
M as Text,
|
|
4894
|
-
|
|
4895
|
-
|
|
4896
|
-
|
|
4902
|
+
Cl as Textarea,
|
|
4903
|
+
vc as Toast,
|
|
4904
|
+
wl as ToastWrapper,
|
|
4897
4905
|
er as Tooltip,
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
|
|
4901
|
-
|
|
4902
|
-
|
|
4903
|
-
|
|
4906
|
+
Hc as TransitionDurationToken,
|
|
4907
|
+
zc as TransitionTimingToken,
|
|
4908
|
+
Nl as UploadBar,
|
|
4909
|
+
qc as UserGuide,
|
|
4910
|
+
h_ as generateAvatarColor,
|
|
4911
|
+
Gc as getDesignTokenWithOpacity
|
|
4904
4912
|
};
|