@tesouro/embedded-components-react 0.4.16 → 0.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +39 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +62 -42
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index4.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +10 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +41 -23
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js +14 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js +43 -45
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +28 -23
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
--ttw-color-orange-200: oklch(90.1% 0.076 70.697);
|
|
19
19
|
--ttw-color-orange-300: oklch(83.7% 0.128 66.29);
|
|
20
20
|
--ttw-color-orange-400: oklch(75% 0.183 55.934);
|
|
21
|
+
--ttw-color-orange-600: oklch(64.6% 0.222 41.116);
|
|
21
22
|
--ttw-color-orange-700: oklch(55.3% 0.195 38.402);
|
|
22
23
|
--ttw-color-orange-950: oklch(26.6% 0.079 36.259);
|
|
23
24
|
--ttw-color-amber-50: oklch(98.7% 0.022 95.277);
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
--ttw-color-indigo-600: oklch(51.1% 0.262 276.966);
|
|
68
69
|
--ttw-color-indigo-700: oklch(45.7% 0.24 277.023);
|
|
69
70
|
--ttw-color-violet-50: oklch(96.9% 0.016 293.756);
|
|
71
|
+
--ttw-color-violet-100: oklch(94.3% 0.029 294.588);
|
|
70
72
|
--ttw-color-violet-200: oklch(89.4% 0.057 293.283);
|
|
71
73
|
--ttw-color-violet-400: oklch(70.2% 0.183 293.541);
|
|
72
74
|
--ttw-color-violet-700: oklch(49.1% 0.27 292.581);
|
|
@@ -2175,6 +2177,9 @@
|
|
|
2175
2177
|
.ttw\:border-\[\#EAECF0\] {
|
|
2176
2178
|
border-color: #EAECF0;
|
|
2177
2179
|
}
|
|
2180
|
+
.ttw\:border-amber-100 {
|
|
2181
|
+
border-color: var(--ttw-color-amber-100);
|
|
2182
|
+
}
|
|
2178
2183
|
.ttw\:border-amber-200 {
|
|
2179
2184
|
border-color: var(--ttw-color-amber-200);
|
|
2180
2185
|
}
|
|
@@ -2184,6 +2189,9 @@
|
|
|
2184
2189
|
.ttw\:border-background {
|
|
2185
2190
|
border-color: var(--ttw-background);
|
|
2186
2191
|
}
|
|
2192
|
+
.ttw\:border-blue-100 {
|
|
2193
|
+
border-color: var(--ttw-color-blue-100);
|
|
2194
|
+
}
|
|
2187
2195
|
.ttw\:border-blue-200 {
|
|
2188
2196
|
border-color: var(--ttw-color-blue-200);
|
|
2189
2197
|
}
|
|
@@ -2283,6 +2291,9 @@
|
|
|
2283
2291
|
.ttw\:border-transparent\! {
|
|
2284
2292
|
border-color: transparent !important;
|
|
2285
2293
|
}
|
|
2294
|
+
.ttw\:border-violet-100 {
|
|
2295
|
+
border-color: var(--ttw-color-violet-100);
|
|
2296
|
+
}
|
|
2286
2297
|
.ttw\:border-violet-200 {
|
|
2287
2298
|
border-color: var(--ttw-color-violet-200);
|
|
2288
2299
|
}
|
|
@@ -2640,6 +2651,9 @@
|
|
|
2640
2651
|
.ttw\:bg-violet-50 {
|
|
2641
2652
|
background-color: var(--ttw-color-violet-50);
|
|
2642
2653
|
}
|
|
2654
|
+
.ttw\:bg-violet-100 {
|
|
2655
|
+
background-color: var(--ttw-color-violet-100);
|
|
2656
|
+
}
|
|
2643
2657
|
.ttw\:bg-white {
|
|
2644
2658
|
background-color: var(--ttw-color-white);
|
|
2645
2659
|
}
|
|
@@ -3468,6 +3482,9 @@
|
|
|
3468
3482
|
.ttw\:text-neutral-700 {
|
|
3469
3483
|
color: var(--ttw-color-neutral-700);
|
|
3470
3484
|
}
|
|
3485
|
+
.ttw\:text-orange-600 {
|
|
3486
|
+
color: var(--ttw-color-orange-600);
|
|
3487
|
+
}
|
|
3471
3488
|
.ttw\:text-orange-700 {
|
|
3472
3489
|
color: var(--ttw-color-orange-700);
|
|
3473
3490
|
}
|
|
@@ -4331,12 +4348,21 @@
|
|
|
4331
4348
|
.ttw\:hover\:bg-amber-50:hover {
|
|
4332
4349
|
background-color: var(--ttw-color-amber-50);
|
|
4333
4350
|
}
|
|
4351
|
+
.ttw\:hover\:bg-amber-100:hover {
|
|
4352
|
+
background-color: var(--ttw-color-amber-100);
|
|
4353
|
+
}
|
|
4354
|
+
.ttw\:hover\:bg-background:hover {
|
|
4355
|
+
background-color: var(--ttw-background);
|
|
4356
|
+
}
|
|
4334
4357
|
.ttw\:hover\:bg-black:hover {
|
|
4335
4358
|
background-color: var(--ttw-color-black);
|
|
4336
4359
|
}
|
|
4337
4360
|
.ttw\:hover\:bg-blue-50:hover {
|
|
4338
4361
|
background-color: var(--ttw-color-blue-50);
|
|
4339
4362
|
}
|
|
4363
|
+
.ttw\:hover\:bg-blue-100:hover {
|
|
4364
|
+
background-color: var(--ttw-color-blue-100);
|
|
4365
|
+
}
|
|
4340
4366
|
.ttw\:hover\:bg-blue-700:hover {
|
|
4341
4367
|
background-color: var(--ttw-color-blue-700);
|
|
4342
4368
|
}
|
|
@@ -4351,6 +4377,14 @@
|
|
|
4351
4377
|
background-color: color-mix(in oklab, var(--ttw-destructive) 10%, transparent);
|
|
4352
4378
|
}
|
|
4353
4379
|
}
|
|
4380
|
+
.ttw\:hover\:bg-destructive\/20:hover {
|
|
4381
|
+
background-color: var(--ttw-destructive);
|
|
4382
|
+
}
|
|
4383
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
4384
|
+
.ttw\:hover\:bg-destructive\/20:hover {
|
|
4385
|
+
background-color: color-mix(in oklab, var(--ttw-destructive) 20%, transparent);
|
|
4386
|
+
}
|
|
4387
|
+
}
|
|
4354
4388
|
.ttw\:hover\:bg-destructive\/90:hover {
|
|
4355
4389
|
background-color: var(--ttw-destructive);
|
|
4356
4390
|
}
|
|
@@ -4365,6 +4399,9 @@
|
|
|
4365
4399
|
.ttw\:hover\:bg-emerald-100:hover {
|
|
4366
4400
|
background-color: var(--ttw-color-emerald-100);
|
|
4367
4401
|
}
|
|
4402
|
+
.ttw\:hover\:bg-green-100:hover {
|
|
4403
|
+
background-color: var(--ttw-color-green-100);
|
|
4404
|
+
}
|
|
4368
4405
|
.ttw\:hover\:bg-indigo-100\/60:hover {
|
|
4369
4406
|
background-color: var(--ttw-color-indigo-100);
|
|
4370
4407
|
}
|
|
@@ -4461,8 +4498,8 @@
|
|
|
4461
4498
|
.ttw\:hover\:bg-transparent:hover {
|
|
4462
4499
|
background-color: transparent;
|
|
4463
4500
|
}
|
|
4464
|
-
.ttw\:hover\:bg-violet-
|
|
4465
|
-
background-color: var(--ttw-color-violet-
|
|
4501
|
+
.ttw\:hover\:bg-violet-100:hover {
|
|
4502
|
+
background-color: var(--ttw-color-violet-100);
|
|
4466
4503
|
}
|
|
4467
4504
|
.ttw\:hover\:bg-white\/10:hover {
|
|
4468
4505
|
background-color: var(--ttw-color-white);
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js
CHANGED
|
@@ -6,25 +6,27 @@ import { useEmbedApi as e } from "../../../shared/data-access/dist/lib/EmbedApiC
|
|
|
6
6
|
import { withAuthEpoch as t } from "../../../shared/data-access/dist/lib/withAuthEpoch.js";
|
|
7
7
|
import "../../../shared/data-access/dist/index.js";
|
|
8
8
|
import { payableOcrQueryOptions as n } from "./index4.js";
|
|
9
|
-
import {
|
|
9
|
+
import { suspectedPayableDuplicates as r } from "./index7.js";
|
|
10
|
+
import { useQueries as i } from "@tanstack/react-query";
|
|
10
11
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index15.js
|
|
11
|
-
function
|
|
12
|
-
let { client:
|
|
13
|
-
return
|
|
14
|
-
queries:
|
|
12
|
+
function a({ payableIds: a, enabled: o }) {
|
|
13
|
+
let { client: s, organizationId: c, widgetToken: l, authEpoch: u } = e(), d = !!(c && l) && (o === !0 || o === void 0);
|
|
14
|
+
return i({
|
|
15
|
+
queries: a.map((e) => ({
|
|
15
16
|
...t(n({
|
|
16
|
-
client:
|
|
17
|
-
organizationId:
|
|
17
|
+
client: s,
|
|
18
|
+
organizationId: c,
|
|
18
19
|
payableId: e
|
|
19
|
-
}),
|
|
20
|
-
enabled:
|
|
20
|
+
}), u),
|
|
21
|
+
enabled: d && !!e
|
|
21
22
|
})),
|
|
22
23
|
combine: (e) => e.map((e, t) => ({
|
|
23
|
-
payableId:
|
|
24
|
+
payableId: a[t],
|
|
24
25
|
ocrStatus: e.data?.ocr_status,
|
|
25
|
-
isError: e.isError
|
|
26
|
+
isError: e.isError,
|
|
27
|
+
suspectedDuplicateOf: r(e.data).map((e) => e.matched_payable_id)
|
|
26
28
|
}))
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
31
|
//#endregion
|
|
30
|
-
export {
|
|
32
|
+
export { a as usePayableOcrQueries };
|
|
@@ -11,18 +11,38 @@ import { useDuplicateBills as i } from "./index9.js";
|
|
|
11
11
|
import { useDuplicateBillsSelection as a } from "./index10.js";
|
|
12
12
|
import { DuplicateBillsDialog as o } from "../../ui/dist/index80.js";
|
|
13
13
|
import "../../ui/dist/index.js";
|
|
14
|
-
import {
|
|
15
|
-
import { jsx as
|
|
14
|
+
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
15
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
16
16
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
var d = "";
|
|
18
|
+
function f({ open: f, onOpenChange: p, enabled: m = !0, canManageDuplicates: h = !0, onOpenBill: g, labels: _, dialogLabels: v }) {
|
|
19
|
+
let y = c(() => ({
|
|
19
20
|
...t,
|
|
20
|
-
...
|
|
21
|
-
}), [
|
|
22
|
-
let [e] =
|
|
23
|
-
if (e)
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
..._
|
|
22
|
+
}), [_]), b = _?.allResolvedToast ?? t.allResolvedToast, x = i({ enabled: m }), S = c(() => x.groups.flatMap((e) => e.bills.map((e) => e.id)), [x.groups]), C = a({ reviewIds: S }), w = r(), [T, E] = l(), [D, O] = l(!1), [k, A] = l(), j = c(() => {
|
|
23
|
+
let [e] = x.groups;
|
|
24
|
+
if (e) {
|
|
25
|
+
if (!k) return e.id;
|
|
26
|
+
if (k.id !== d) return x.groups.some((e) => e.id === k.id) ? k.id : (x.groups[k.index] ?? x.groups[x.groups.length - 1]).id;
|
|
27
|
+
}
|
|
28
|
+
}, [k, x.groups]);
|
|
29
|
+
s(() => {
|
|
30
|
+
if (!f) {
|
|
31
|
+
O(!1);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
!D || x.isLoading || x.isError || x.groups.length > 0 || (e.success(b), p(!1));
|
|
35
|
+
}, [
|
|
36
|
+
b,
|
|
37
|
+
D,
|
|
38
|
+
p,
|
|
39
|
+
f,
|
|
40
|
+
x.groups.length,
|
|
41
|
+
x.isError,
|
|
42
|
+
x.isLoading
|
|
43
|
+
]);
|
|
44
|
+
let M = (e) => e.bills.filter((e) => C.isSelected(e.id)), N = async (t, n, r, i) => {
|
|
45
|
+
let a = M(t);
|
|
26
46
|
if (a.length === 0) throw Error("Duplicate review action taken with no bills selected — keeping and removing both need a subject.");
|
|
27
47
|
let o = a.flatMap((e) => e.matches.map((t) => ({
|
|
28
48
|
payableId: e.id,
|
|
@@ -30,22 +50,22 @@ function u({ open: u, onOpenChange: d, enabled: f = !0, canManageDuplicates: p =
|
|
|
30
50
|
matchedPayableId: t.matchedPayableId,
|
|
31
51
|
removeBy: e.removeBy
|
|
32
52
|
})));
|
|
33
|
-
|
|
53
|
+
E({
|
|
34
54
|
groupId: t.id,
|
|
35
55
|
action: r
|
|
36
56
|
});
|
|
37
57
|
try {
|
|
38
|
-
await
|
|
58
|
+
await w.mutateAsync({
|
|
39
59
|
verdict: n,
|
|
40
60
|
targets: o
|
|
41
|
-
}), e.success(i),
|
|
61
|
+
}), e.success(i), O(!0), C.deselect(a.map((e) => e.id));
|
|
42
62
|
} catch {
|
|
43
|
-
e.error(
|
|
63
|
+
e.error(y.verdictFailedToast);
|
|
44
64
|
} finally {
|
|
45
|
-
|
|
65
|
+
E(void 0);
|
|
46
66
|
}
|
|
47
|
-
},
|
|
48
|
-
let t = e.bills.map((e) => e.id), r =
|
|
67
|
+
}, P = x.groups.map((e) => {
|
|
68
|
+
let t = e.bills.map((e) => e.id), r = M(e), i = {
|
|
49
69
|
vendorLabel: e.vendorLabel,
|
|
50
70
|
count: e.bills.length
|
|
51
71
|
};
|
|
@@ -53,10 +73,10 @@ function u({ open: u, onOpenChange: d, enabled: f = !0, canManageDuplicates: p =
|
|
|
53
73
|
id: e.id,
|
|
54
74
|
titleLabel: e.vendorLabel,
|
|
55
75
|
countLabel: String(e.bills.length),
|
|
56
|
-
accessibleLabel:
|
|
57
|
-
selectAllLabel:
|
|
58
|
-
selectAllChecked:
|
|
59
|
-
onToggleAllRows: () =>
|
|
76
|
+
accessibleLabel: y.reviewGroup(i),
|
|
77
|
+
selectAllLabel: y.selectGroup(i),
|
|
78
|
+
selectAllChecked: C.checkedState(t),
|
|
79
|
+
onToggleAllRows: () => C.toggleAll(t),
|
|
60
80
|
rows: e.bills.map((e) => ({
|
|
61
81
|
id: e.id,
|
|
62
82
|
status: e.status,
|
|
@@ -64,35 +84,35 @@ function u({ open: u, onOpenChange: d, enabled: f = !0, canManageDuplicates: p =
|
|
|
64
84
|
removalOutcome: e.removeBy === "delete" || e.removeBy === "cancel" ? e.removeBy : void 0,
|
|
65
85
|
invoiceNumberLabel: e.invoiceNumberLabel,
|
|
66
86
|
amountLabel: e.amountLabel,
|
|
67
|
-
|
|
87
|
+
dueDateLabel: e.dueDateLabel,
|
|
68
88
|
addedOnLabel: e.addedOnLabel,
|
|
69
|
-
selectLabel:
|
|
70
|
-
openLabel:
|
|
71
|
-
isSelected:
|
|
72
|
-
onToggleSelected: () =>
|
|
73
|
-
onOpen: () =>
|
|
89
|
+
selectLabel: y.selectRow(e),
|
|
90
|
+
openLabel: y.openRow(e),
|
|
91
|
+
isSelected: C.isSelected(e.id),
|
|
92
|
+
onToggleSelected: () => C.toggle(e.id),
|
|
93
|
+
onOpen: () => g?.(e.id)
|
|
74
94
|
})),
|
|
75
|
-
onKeepSelected:
|
|
76
|
-
onRemoveDuplicates:
|
|
95
|
+
onKeepSelected: h ? () => void N(e, n.Keep, "keep", y.dismissedToast) : void 0,
|
|
96
|
+
onRemoveDuplicates: h ? () => void N(e, n.Remove, "remove", y.removedToast) : void 0,
|
|
77
97
|
isActionDisabled: r.length === 0,
|
|
78
98
|
isRemoveUnavailable: r.some((e) => !e.removeBy),
|
|
79
|
-
pendingAction:
|
|
99
|
+
pendingAction: T?.groupId === e.id ? T.action : void 0
|
|
80
100
|
};
|
|
81
101
|
});
|
|
82
|
-
return /* @__PURE__ */
|
|
83
|
-
open:
|
|
84
|
-
onOpenChange:
|
|
85
|
-
groups:
|
|
86
|
-
isLoading:
|
|
87
|
-
isError:
|
|
88
|
-
expandedGroupId:
|
|
89
|
-
onExpandedGroupChange: (e) =>
|
|
102
|
+
return /* @__PURE__ */ u(o, {
|
|
103
|
+
open: f,
|
|
104
|
+
onOpenChange: p,
|
|
105
|
+
groups: P,
|
|
106
|
+
isLoading: x.isLoading,
|
|
107
|
+
isError: x.isError,
|
|
108
|
+
expandedGroupId: j,
|
|
109
|
+
onExpandedGroupChange: (e) => A({
|
|
90
110
|
id: e,
|
|
91
|
-
index:
|
|
111
|
+
index: x.groups.findIndex((t) => t.id === e)
|
|
92
112
|
}),
|
|
93
|
-
isBusy: !!
|
|
94
|
-
labels:
|
|
113
|
+
isBusy: !!T,
|
|
114
|
+
labels: v
|
|
95
115
|
});
|
|
96
116
|
}
|
|
97
117
|
//#endregion
|
|
98
|
-
export {
|
|
118
|
+
export { f as DuplicateBillsContainer, f as default };
|
|
@@ -20,7 +20,8 @@ var e = {
|
|
|
20
20
|
confirmedToast: "Duplicate confirmed",
|
|
21
21
|
dismissedToast: "Marked as “not a duplicate”.",
|
|
22
22
|
removedToast: "Duplicate removed",
|
|
23
|
-
verdictFailedToast: "Couldn't update this duplicate. Try again."
|
|
23
|
+
verdictFailedToast: "Couldn't update this duplicate. Try again.",
|
|
24
|
+
allResolvedToast: "All possible duplicates resolved"
|
|
24
25
|
};
|
|
25
26
|
//#endregion
|
|
26
27
|
export { e as DUPLICATE_BILLS_LABELS_EN };
|
|
@@ -20,20 +20,24 @@ function r({ apiStatus: t, dueDate: r, scheduledPaymentDate: i, hasScheduledPaym
|
|
|
20
20
|
};
|
|
21
21
|
let s = !!(e.has(t) && r && n(r, o));
|
|
22
22
|
switch (t) {
|
|
23
|
-
case "draft":
|
|
24
|
-
case "new": return {
|
|
23
|
+
case "draft": return {
|
|
25
24
|
status: "draft",
|
|
26
25
|
tone: "neutral",
|
|
27
26
|
isOverdue: s
|
|
28
27
|
};
|
|
28
|
+
case "new": return {
|
|
29
|
+
status: "new",
|
|
30
|
+
tone: "accent",
|
|
31
|
+
isOverdue: s
|
|
32
|
+
};
|
|
29
33
|
case "approve_in_progress": return {
|
|
30
34
|
status: "pending_approval",
|
|
31
|
-
tone: "
|
|
35
|
+
tone: "info",
|
|
32
36
|
isOverdue: s
|
|
33
37
|
};
|
|
34
38
|
case "waiting_to_be_paid": return {
|
|
35
39
|
status: "ready_to_pay",
|
|
36
|
-
tone: "
|
|
40
|
+
tone: "success",
|
|
37
41
|
isOverdue: s
|
|
38
42
|
};
|
|
39
43
|
case "partially_paid": return {
|
|
@@ -43,12 +47,12 @@ function r({ apiStatus: t, dueDate: r, scheduledPaymentDate: i, hasScheduledPaym
|
|
|
43
47
|
};
|
|
44
48
|
case "paid": return {
|
|
45
49
|
status: "paid",
|
|
46
|
-
tone: "
|
|
50
|
+
tone: "complete",
|
|
47
51
|
isOverdue: s
|
|
48
52
|
};
|
|
49
53
|
case "canceled": return {
|
|
50
54
|
status: "canceled",
|
|
51
|
-
tone: "
|
|
55
|
+
tone: "neutral",
|
|
52
56
|
isOverdue: s
|
|
53
57
|
};
|
|
54
58
|
case "rejected": return {
|
|
@@ -3,6 +3,7 @@ var e = {
|
|
|
3
3
|
uploadingSummary: (e) => `Uploading and scanning ${e} ${e === 1 ? "file" : "files"}`,
|
|
4
4
|
completeSummary: (e) => `${e} ${e === 1 ? "upload" : "uploads"} complete`,
|
|
5
5
|
readyCaption: (e) => `${e} new ${e === 1 ? "bill" : "bills"} ready`,
|
|
6
|
+
duplicateCaption: (e) => `${e} possible ${e === 1 ? "duplicate" : "duplicates"}`,
|
|
6
7
|
failedCaption: (e) => `${e} failed to upload`,
|
|
7
8
|
tooManyFilesError: (e) => `You can only upload up to ${e} files at a time`,
|
|
8
9
|
remainingCapacityError: (e) => e === 0 ? "Wait for the current uploads to finish before adding more files" : `You can upload ${e} more ${e === 1 ? "file" : "files"} right now`
|
|
@@ -28,7 +28,9 @@ function f({ onOpenBill: f, labels: p } = {}) {
|
|
|
28
28
|
...n,
|
|
29
29
|
...t
|
|
30
30
|
} : n));
|
|
31
|
-
}, [v, y]), T = o((
|
|
31
|
+
}, [v, y]), T = o((e) => {
|
|
32
|
+
v.setQueryData(y, (t) => (t ?? []).filter((t) => t.localId !== e));
|
|
33
|
+
}, [v, y]), E = o((t) => {
|
|
32
34
|
let n = (v.getQueryData(y) ?? []).filter((e) => e.status === "uploading").length;
|
|
33
35
|
if (t.length + n > 10) {
|
|
34
36
|
e.error(n > 0 ? g(10 - n) : h(10));
|
|
@@ -50,43 +52,59 @@ function f({ onOpenBill: f, labels: p } = {}) {
|
|
|
50
52
|
g,
|
|
51
53
|
h,
|
|
52
54
|
b
|
|
53
|
-
]),
|
|
55
|
+
]), D = r({ payableIds: C.filter((e) => e.status === "uploading" && e.payableId).map((e) => e.payableId) });
|
|
54
56
|
s(() => {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
let e = /* @__PURE__ */ new Set();
|
|
58
|
+
for (let t of D) if (t.suspectedDuplicateOf.length !== 0) {
|
|
59
|
+
e.add(t.payableId);
|
|
60
|
+
for (let n of t.suspectedDuplicateOf) e.add(n);
|
|
58
61
|
}
|
|
62
|
+
for (let { payableId: t, ocrStatus: n, isError: r } of D) {
|
|
63
|
+
let i = C.find((e) => e.payableId === t && e.status === "uploading");
|
|
64
|
+
i && (n === "success" ? w(i.localId, { status: e.has(t) ? "duplicate" : "ready" }) : (r || n === "error" || n === "canceled") && w(i.localId, { status: "failed" }));
|
|
65
|
+
}
|
|
66
|
+
for (let t of C) t.status === "ready" && t.payableId && e.has(t.payableId) && w(t.localId, { status: "duplicate" });
|
|
59
67
|
}, [
|
|
60
68
|
C,
|
|
61
|
-
|
|
69
|
+
D,
|
|
62
70
|
w
|
|
63
71
|
]);
|
|
64
|
-
let
|
|
72
|
+
let O = C.filter((e) => e.status === "uploading"), k = C.filter((e) => e.status === "ready"), A = C.filter((e) => e.status === "duplicate"), j = C.filter((e) => e.status === "failed"), M = (e) => ({
|
|
65
73
|
id: e.localId,
|
|
66
74
|
fileName: e.fileName,
|
|
67
75
|
status: e.status,
|
|
68
|
-
onOpen: e.status === "ready" && e.payableId && f ? () =>
|
|
69
|
-
|
|
76
|
+
onOpen: (e.status === "ready" || e.status === "duplicate") && e.payableId && f ? () => {
|
|
77
|
+
f(e.payableId), T(e.localId);
|
|
78
|
+
} : void 0
|
|
79
|
+
}), N = O.length ? [{
|
|
70
80
|
id: "in-progress",
|
|
71
|
-
items: C.map(
|
|
72
|
-
}] : [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
+
items: C.map(M)
|
|
82
|
+
}] : [
|
|
83
|
+
...k.length ? [{
|
|
84
|
+
id: "ready",
|
|
85
|
+
caption: m.readyCaption(k.length),
|
|
86
|
+
items: k.map(M)
|
|
87
|
+
}] : [],
|
|
88
|
+
...A.length ? [{
|
|
89
|
+
id: "duplicate",
|
|
90
|
+
caption: m.duplicateCaption(A.length),
|
|
91
|
+
items: A.map(M)
|
|
92
|
+
}] : [],
|
|
93
|
+
...j.length ? [{
|
|
94
|
+
id: "failed",
|
|
95
|
+
caption: m.failedCaption(j.length),
|
|
96
|
+
items: j.map(M)
|
|
97
|
+
}] : []
|
|
98
|
+
], P = k.length + A.length, F = O.length ? m.uploadingSummary(C.length) : P ? m.completeSummary(P) : m.failedCaption(j.length), I = o(() => {
|
|
81
99
|
v.setQueryData(y, []);
|
|
82
100
|
}, [v, y]);
|
|
83
101
|
return {
|
|
84
|
-
enqueue:
|
|
85
|
-
sections:
|
|
86
|
-
summaryLabel:
|
|
102
|
+
enqueue: E,
|
|
103
|
+
sections: N,
|
|
104
|
+
summaryLabel: F,
|
|
87
105
|
collapsed: x,
|
|
88
106
|
onToggleCollapsed: o(() => S((e) => !e), []),
|
|
89
|
-
onClose:
|
|
107
|
+
onClose: I,
|
|
90
108
|
isVisible: C.length > 0
|
|
91
109
|
};
|
|
92
110
|
}
|
|
@@ -37,7 +37,7 @@ function f(t) {
|
|
|
37
37
|
vendorLabel: c(t),
|
|
38
38
|
invoiceNumberLabel: t.document_id ?? "",
|
|
39
39
|
amountLabel: d(t.total_amount ?? t.amount_due, t.currency),
|
|
40
|
-
|
|
40
|
+
dueDateLabel: e(t.due_date),
|
|
41
41
|
addedOnLabel: e(t.created_at?.slice(0, 10))
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js
|
|
2
2
|
var e = {
|
|
3
|
-
accent: "ttw:border-violet-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
neutral: "ttw:border-
|
|
8
|
-
success: "ttw:border-
|
|
9
|
-
warning: "ttw:border-amber-
|
|
3
|
+
accent: "ttw:border-violet-100 ttw:bg-violet-100 ttw:text-violet-700 ttw:hover:bg-violet-100",
|
|
4
|
+
complete: "ttw:border-background ttw:bg-background ttw:text-green-900 ttw:hover:bg-background",
|
|
5
|
+
danger: "ttw:border-destructive/20 ttw:bg-destructive/20 ttw:text-destructive ttw:hover:bg-destructive/20",
|
|
6
|
+
info: "ttw:border-blue-100 ttw:bg-blue-100 ttw:text-blue-700 ttw:hover:bg-blue-100",
|
|
7
|
+
neutral: "ttw:border-muted ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
|
|
8
|
+
success: "ttw:border-green-100 ttw:bg-green-100 ttw:text-green-700 ttw:hover:bg-green-100",
|
|
9
|
+
warning: "ttw:border-amber-100 ttw:bg-amber-100 ttw:text-amber-700 ttw:hover:bg-amber-100"
|
|
10
10
|
};
|
|
11
11
|
//#endregion
|
|
12
12
|
export { e as BADGE_TONE_CLASS_NAME };
|
|
@@ -3,7 +3,7 @@ var e = {
|
|
|
3
3
|
collapse: "Collapse upload status",
|
|
4
4
|
expand: "Expand upload status",
|
|
5
5
|
close: "Close upload status",
|
|
6
|
-
statusLabel: (e) => e === "uploading" ? "Uploading" : e === "ready" ? "Ready" : "Failed",
|
|
6
|
+
statusLabel: (e) => e === "uploading" ? "Uploading" : e === "ready" ? "Ready" : e === "duplicate" ? "Possible duplicate" : "Failed",
|
|
7
7
|
openItem: (e) => `Open ${e}`
|
|
8
8
|
};
|
|
9
9
|
//#endregion
|
|
@@ -3,21 +3,21 @@ import { BILL_UPLOAD_STATUS_TRAY_LABELS_EN as t } from "./index73.js";
|
|
|
3
3
|
import { UPLOAD_ITEM_ICON_TONE as n } from "./index74.js";
|
|
4
4
|
import { useId as r } from "react";
|
|
5
5
|
import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
-
import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u,
|
|
6
|
+
import { CheckCircle2 as s, ChevronDown as c, ChevronRight as l, ChevronUp as u, CopyX as d, Loader2 as f, X as p, XCircle as m } from "lucide-react";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index75.js
|
|
8
|
-
function
|
|
8
|
+
function h({ status: t }) {
|
|
9
9
|
let r = e("ttw:size-4", n[t]);
|
|
10
|
-
return t === "uploading" ? /* @__PURE__ */ a(
|
|
10
|
+
return t === "uploading" ? /* @__PURE__ */ a(f, {
|
|
11
11
|
"aria-hidden": !0,
|
|
12
12
|
className: e(r, "ttw:animate-spin")
|
|
13
|
-
}) : a(t === "ready" ? s :
|
|
13
|
+
}) : a(t === "ready" ? s : t === "duplicate" ? d : m, {
|
|
14
14
|
"aria-hidden": !0,
|
|
15
15
|
className: r
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function g({ item: t, labels: n }) {
|
|
19
19
|
let s = r(), c = /* @__PURE__ */ o(i, { children: [
|
|
20
|
-
/* @__PURE__ */ a(
|
|
20
|
+
/* @__PURE__ */ a(h, { status: t.status }),
|
|
21
21
|
/* @__PURE__ */ a("span", {
|
|
22
22
|
id: s,
|
|
23
23
|
className: "ttw:sr-only",
|
|
@@ -45,8 +45,8 @@ function h({ item: t, labels: n }) {
|
|
|
45
45
|
children: c
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
-
function
|
|
49
|
-
let
|
|
48
|
+
function _({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, onClose: s, testId: l, labels: d }) {
|
|
49
|
+
let f = {
|
|
50
50
|
...t,
|
|
51
51
|
...d
|
|
52
52
|
};
|
|
@@ -64,7 +64,7 @@ function g({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, o
|
|
|
64
64
|
/* @__PURE__ */ a("button", {
|
|
65
65
|
type: "button",
|
|
66
66
|
onClick: i,
|
|
67
|
-
"aria-label": r ?
|
|
67
|
+
"aria-label": r ? f.expand : f.collapse,
|
|
68
68
|
"aria-expanded": !r,
|
|
69
69
|
className: "ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
70
70
|
children: a(r ? u : c, { className: "ttw:size-4" })
|
|
@@ -72,9 +72,9 @@ function g({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, o
|
|
|
72
72
|
/* @__PURE__ */ a("button", {
|
|
73
73
|
type: "button",
|
|
74
74
|
onClick: s,
|
|
75
|
-
"aria-label":
|
|
75
|
+
"aria-label": f.close,
|
|
76
76
|
className: "ttw:text-muted-foreground ttw:hover:text-foreground",
|
|
77
|
-
children: /* @__PURE__ */ a(
|
|
77
|
+
children: /* @__PURE__ */ a(p, { className: "ttw:size-4" })
|
|
78
78
|
})
|
|
79
79
|
]
|
|
80
80
|
}), r ? null : /* @__PURE__ */ a("div", {
|
|
@@ -82,12 +82,12 @@ function g({ sections: e, summaryLabel: n, collapsed: r, onToggleCollapsed: i, o
|
|
|
82
82
|
children: e.map((e) => /* @__PURE__ */ o("div", { children: [e.caption ? /* @__PURE__ */ a("p", {
|
|
83
83
|
className: "ttw:px-4 ttw:pt-3 ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
|
|
84
84
|
children: e.caption
|
|
85
|
-
}) : null, e.items.map((e) => /* @__PURE__ */ a(
|
|
85
|
+
}) : null, e.items.map((e) => /* @__PURE__ */ a(g, {
|
|
86
86
|
item: e,
|
|
87
|
-
labels:
|
|
87
|
+
labels: f
|
|
88
88
|
}, e.id))] }, e.id))
|
|
89
89
|
})]
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
//#endregion
|
|
93
|
-
export {
|
|
93
|
+
export { _ as BillUploadStatusTray, _ as default };
|
|
@@ -4,52 +4,50 @@ import "./index19.js";
|
|
|
4
4
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
5
|
import { Ban as d, ChevronRightIcon as f } from "lucide-react";
|
|
6
6
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index78.js
|
|
7
|
-
var p = "ttw:border-b ttw:border-border", m = `${p} ttw:whitespace-nowrap`, h = "ttw:
|
|
8
|
-
function
|
|
9
|
-
let
|
|
7
|
+
var p = "ttw:border-b ttw:border-border", m = `${p} ttw:whitespace-nowrap`, h = "ttw:gap-4", g = "ttw:gap-2.5";
|
|
8
|
+
function _({ group: _, isBusy: v, labels: y }) {
|
|
9
|
+
let b = _.isActionDisabled || v || _.isRemoveUnavailable, x = !!(_.onKeepSelected || _.onRemoveDuplicates);
|
|
10
10
|
return /* @__PURE__ */ u("div", {
|
|
11
|
-
className: `ttw:flex ttw:flex-col ${
|
|
11
|
+
className: `ttw:flex ttw:flex-col ${h}`,
|
|
12
12
|
children: [/* @__PURE__ */ u(n, { children: [/* @__PURE__ */ l(o, { children: /* @__PURE__ */ u(s, { children: [
|
|
13
|
-
|
|
13
|
+
x ? /* @__PURE__ */ l(a, {
|
|
14
14
|
className: "ttw:w-11",
|
|
15
15
|
children: /* @__PURE__ */ l(t, {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
onCheckedChange: v.onToggleAllRows
|
|
16
|
+
"aria-label": _.selectAllLabel,
|
|
17
|
+
checked: _.selectAllChecked ?? !1,
|
|
18
|
+
disabled: v,
|
|
19
|
+
onCheckedChange: _.onToggleAllRows
|
|
21
20
|
})
|
|
22
21
|
}) : null,
|
|
23
|
-
/* @__PURE__ */ l(a, { children:
|
|
24
|
-
/* @__PURE__ */ l(a, { children:
|
|
25
|
-
/* @__PURE__ */ l(a, { children:
|
|
26
|
-
/* @__PURE__ */ l(a, { children:
|
|
27
|
-
/* @__PURE__ */ l(a, { children:
|
|
22
|
+
/* @__PURE__ */ l(a, { children: y.columnInvoiceNumber }),
|
|
23
|
+
/* @__PURE__ */ l(a, { children: y.columnAmount }),
|
|
24
|
+
/* @__PURE__ */ l(a, { children: y.columnStatus }),
|
|
25
|
+
/* @__PURE__ */ l(a, { children: y.columnDueDate }),
|
|
26
|
+
/* @__PURE__ */ l(a, { children: y.columnAddedOn }),
|
|
28
27
|
/* @__PURE__ */ l(a, {
|
|
29
28
|
className: "ttw:w-14",
|
|
30
29
|
children: /* @__PURE__ */ l("span", {
|
|
31
30
|
className: "ttw:sr-only",
|
|
32
|
-
children:
|
|
31
|
+
children: y.columnActions
|
|
33
32
|
})
|
|
34
33
|
})
|
|
35
|
-
] }) }), /* @__PURE__ */ l(r, { children:
|
|
36
|
-
|
|
34
|
+
] }) }), /* @__PURE__ */ l(r, { children: _.rows.map((n) => /* @__PURE__ */ u(s, { children: [
|
|
35
|
+
x ? /* @__PURE__ */ l(i, {
|
|
37
36
|
className: p,
|
|
38
37
|
children: /* @__PURE__ */ l(t, {
|
|
39
|
-
className: h,
|
|
40
38
|
"aria-label": n.selectLabel,
|
|
41
39
|
checked: n.isSelected ?? !1,
|
|
42
|
-
disabled:
|
|
40
|
+
disabled: v,
|
|
43
41
|
onCheckedChange: n.onToggleSelected
|
|
44
42
|
})
|
|
45
43
|
}) : null,
|
|
46
44
|
/* @__PURE__ */ l(i, {
|
|
47
45
|
className: m,
|
|
48
|
-
children: n.
|
|
46
|
+
children: n.invoiceNumberLabel
|
|
49
47
|
}),
|
|
50
48
|
/* @__PURE__ */ l(i, {
|
|
51
49
|
className: m,
|
|
52
|
-
children: n.
|
|
50
|
+
children: n.amountLabel
|
|
53
51
|
}),
|
|
54
52
|
/* @__PURE__ */ l(i, {
|
|
55
53
|
className: m,
|
|
@@ -58,20 +56,20 @@ function v({ group: v, isBusy: y, labels: b }) {
|
|
|
58
56
|
children: [n.status && n.statusTone ? /* @__PURE__ */ l(c, {
|
|
59
57
|
status: n.status,
|
|
60
58
|
tone: n.statusTone,
|
|
61
|
-
labels:
|
|
59
|
+
labels: y.statusBadge
|
|
62
60
|
}) : null, n.removalOutcome ? /* @__PURE__ */ l("span", {
|
|
63
61
|
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
64
|
-
children: n.removalOutcome === "delete" ?
|
|
62
|
+
children: n.removalOutcome === "delete" ? y.removalOutcomeDelete : y.removalOutcomeCancel
|
|
65
63
|
}) : null]
|
|
66
64
|
})
|
|
67
65
|
}),
|
|
68
66
|
/* @__PURE__ */ l(i, {
|
|
69
67
|
className: m,
|
|
70
|
-
children: n.
|
|
68
|
+
children: n.dueDateLabel
|
|
71
69
|
}),
|
|
72
70
|
/* @__PURE__ */ l(i, {
|
|
73
71
|
className: m,
|
|
74
|
-
children: n.
|
|
72
|
+
children: n.addedOnLabel
|
|
75
73
|
}),
|
|
76
74
|
/* @__PURE__ */ l(i, {
|
|
77
75
|
className: p,
|
|
@@ -81,7 +79,7 @@ function v({ group: v, isBusy: y, labels: b }) {
|
|
|
81
79
|
variant: "ghost",
|
|
82
80
|
size: "icon",
|
|
83
81
|
"aria-label": n.openLabel,
|
|
84
|
-
disabled:
|
|
82
|
+
disabled: v,
|
|
85
83
|
onClick: n.onOpen,
|
|
86
84
|
children: /* @__PURE__ */ l(f, { className: "ttw:size-4" })
|
|
87
85
|
})
|
|
@@ -92,36 +90,36 @@ function v({ group: v, isBusy: y, labels: b }) {
|
|
|
92
90
|
children: [/* @__PURE__ */ u("p", {
|
|
93
91
|
className: "ttw:text-right ttw:text-sm ttw:text-muted-foreground",
|
|
94
92
|
children: [
|
|
95
|
-
|
|
93
|
+
y.removalHelperBeforeUnsubmitted,
|
|
96
94
|
/* @__PURE__ */ l("span", {
|
|
97
95
|
className: "ttw:font-semibold",
|
|
98
|
-
children:
|
|
96
|
+
children: y.removalHelperUnsubmitted
|
|
99
97
|
}),
|
|
100
|
-
|
|
98
|
+
y.removalHelperBetween,
|
|
101
99
|
/* @__PURE__ */ l("span", {
|
|
102
100
|
className: "ttw:font-semibold",
|
|
103
|
-
children:
|
|
101
|
+
children: y.removalHelperSubmitted
|
|
104
102
|
}),
|
|
105
|
-
|
|
103
|
+
y.removalHelperAfterSubmitted
|
|
106
104
|
]
|
|
107
|
-
}),
|
|
108
|
-
className: `ttw:flex ttw:flex-wrap ttw:justify-end ${
|
|
109
|
-
children: [
|
|
105
|
+
}), x ? /* @__PURE__ */ u("div", {
|
|
106
|
+
className: `ttw:flex ttw:flex-wrap ttw:justify-end ${g}`,
|
|
107
|
+
children: [_.onKeepSelected ? /* @__PURE__ */ l(e, {
|
|
110
108
|
variant: "outline",
|
|
111
|
-
disabled:
|
|
112
|
-
loading:
|
|
113
|
-
onClick:
|
|
114
|
-
children:
|
|
115
|
-
}) : null,
|
|
109
|
+
disabled: _.isActionDisabled || v,
|
|
110
|
+
loading: _.pendingAction === "keep",
|
|
111
|
+
onClick: _.onKeepSelected,
|
|
112
|
+
children: y.keepSelectedButton
|
|
113
|
+
}) : null, _.onRemoveDuplicates ? /* @__PURE__ */ u(e, {
|
|
116
114
|
variant: "destructive",
|
|
117
|
-
disabled:
|
|
118
|
-
loading:
|
|
119
|
-
onClick:
|
|
120
|
-
children: [
|
|
115
|
+
disabled: b,
|
|
116
|
+
loading: _.pendingAction === "remove",
|
|
117
|
+
onClick: _.onRemoveDuplicates,
|
|
118
|
+
children: [_.pendingAction === "remove" ? null : /* @__PURE__ */ l(d, {}), y.removeDuplicatesButton]
|
|
121
119
|
}) : null]
|
|
122
120
|
}) : null]
|
|
123
121
|
})]
|
|
124
122
|
});
|
|
125
123
|
}
|
|
126
124
|
//#endregion
|
|
127
|
-
export {
|
|
125
|
+
export { _ as DuplicateBillsGroupPanel, _ as default };
|
|
@@ -5,11 +5,11 @@ var t = {
|
|
|
5
5
|
title: "Possible duplicate files",
|
|
6
6
|
descriptionFirstLine: "The following bills may be duplicates of each other.",
|
|
7
7
|
descriptionSecondLine: "You can keep or remove duplicates, or view them for more detail before making a decision.",
|
|
8
|
-
columnAddedOn: "Added on",
|
|
9
|
-
columnInvoiceDate: "Invoice date",
|
|
10
|
-
columnStatus: "Status",
|
|
11
8
|
columnInvoiceNumber: "Invoice number",
|
|
12
9
|
columnAmount: "Amount",
|
|
10
|
+
columnStatus: "Status",
|
|
11
|
+
columnDueDate: "Due date",
|
|
12
|
+
columnAddedOn: "Added on",
|
|
13
13
|
columnActions: "Actions",
|
|
14
14
|
statusBadge: e,
|
|
15
15
|
removalHelperBeforeUnsubmitted: "Removing duplicates deletes ",
|
|
@@ -54,32 +54,37 @@ function g({ open: g, onOpenChange: _, groups: v, isLoading: y, isError: b, expa
|
|
|
54
54
|
children: T.emptyState
|
|
55
55
|
}) : /* @__PURE__ */ p(e, {
|
|
56
56
|
type: "single",
|
|
57
|
+
collapsible: !0,
|
|
57
58
|
value: x ?? "",
|
|
58
59
|
onValueChange: S,
|
|
59
60
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
60
|
-
children: v.map((e) =>
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
className: "ttw:
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
61
|
+
children: v.map((e) => {
|
|
62
|
+
let i = e.id === x;
|
|
63
|
+
return /* @__PURE__ */ m(n, {
|
|
64
|
+
value: e.id,
|
|
65
|
+
className: `ttw:rounded-md ttw:border-b-transparent ttw:px-4 ${i ? "ttw:bg-white" : "ttw:bg-muted"}`,
|
|
66
|
+
children: [/* @__PURE__ */ p(r, {
|
|
67
|
+
"aria-label": e.accessibleLabel,
|
|
68
|
+
disabled: C,
|
|
69
|
+
className: "ttw:hover:no-underline!",
|
|
70
|
+
iconClassName: "ttw:size-5",
|
|
71
|
+
children: /* @__PURE__ */ m("span", {
|
|
72
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
73
|
+
children: [/* @__PURE__ */ p("span", {
|
|
74
|
+
className: "ttw:text-base ttw:font-medium",
|
|
75
|
+
children: e.titleLabel
|
|
76
|
+
}), /* @__PURE__ */ p("span", {
|
|
77
|
+
className: `ttw:inline-flex ttw:size-5 ttw:items-center ttw:justify-center ttw:rounded-full ttw:text-xs ttw:font-medium ${i ? "ttw:bg-muted" : "ttw:bg-white"}`,
|
|
78
|
+
children: e.countLabel
|
|
79
|
+
})]
|
|
80
|
+
})
|
|
81
|
+
}), /* @__PURE__ */ p(t, { children: /* @__PURE__ */ p(d, {
|
|
82
|
+
group: e,
|
|
83
|
+
isBusy: C,
|
|
84
|
+
labels: T
|
|
85
|
+
}) })]
|
|
86
|
+
}, e.id);
|
|
87
|
+
})
|
|
83
88
|
})
|
|
84
89
|
})]
|
|
85
90
|
})
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.4.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.4.17", n = "77f1297ee63eab83488f750e34a020bf23ae2e63", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|