@tesouro/embedded-components-react 0.11.9 → 0.11.10
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 +12 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +8 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +99 -94
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +110 -100
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +45 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +259 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +190 -165
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +151 -143
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -17
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -40
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +39 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +77 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +25 -26
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +28 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +9 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +29 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +1 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupCollapse.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1637 -1507
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -28
package/dist/index.css
CHANGED
|
@@ -261,6 +261,9 @@
|
|
|
261
261
|
.ttw\:right-9 {
|
|
262
262
|
right: calc(var(--ttw-spacing) * 9);
|
|
263
263
|
}
|
|
264
|
+
.ttw\:right-full {
|
|
265
|
+
right: 100%;
|
|
266
|
+
}
|
|
264
267
|
.ttw\:bottom-0 {
|
|
265
268
|
bottom: 0px;
|
|
266
269
|
}
|
|
@@ -447,9 +450,6 @@
|
|
|
447
450
|
.ttw\:mb-8 {
|
|
448
451
|
margin-bottom: calc(var(--ttw-spacing) * 8);
|
|
449
452
|
}
|
|
450
|
-
.ttw\:-ml-1 {
|
|
451
|
-
margin-left: calc(var(--ttw-spacing) * -1);
|
|
452
|
-
}
|
|
453
453
|
.ttw\:-ml-2 {
|
|
454
454
|
margin-left: calc(var(--ttw-spacing) * -2);
|
|
455
455
|
}
|
|
@@ -1415,8 +1415,8 @@
|
|
|
1415
1415
|
.ttw\:min-w-80 {
|
|
1416
1416
|
min-width: calc(var(--ttw-spacing) * 80);
|
|
1417
1417
|
}
|
|
1418
|
-
.ttw\:min-w-
|
|
1419
|
-
min-width: calc(var(--ttw-spacing) *
|
|
1418
|
+
.ttw\:min-w-100 {
|
|
1419
|
+
min-width: calc(var(--ttw-spacing) * 100);
|
|
1420
1420
|
}
|
|
1421
1421
|
.ttw\:min-w-138 {
|
|
1422
1422
|
min-width: calc(var(--ttw-spacing) * 138);
|
|
@@ -1951,9 +1951,6 @@
|
|
|
1951
1951
|
.ttw\:rounded-tl-sm {
|
|
1952
1952
|
border-top-left-radius: calc(var(--ttw-radius) - 4px);
|
|
1953
1953
|
}
|
|
1954
|
-
.ttw\:rounded-tl-xl {
|
|
1955
|
-
border-top-left-radius: calc(var(--ttw-radius) + 4px);
|
|
1956
|
-
}
|
|
1957
1954
|
.ttw\:rounded-r-md {
|
|
1958
1955
|
border-top-right-radius: calc(var(--ttw-radius) - 2px);
|
|
1959
1956
|
border-bottom-right-radius: calc(var(--ttw-radius) - 2px);
|
|
@@ -1965,9 +1962,6 @@
|
|
|
1965
1962
|
.ttw\:rounded-tr-\[14px\] {
|
|
1966
1963
|
border-top-right-radius: 14px;
|
|
1967
1964
|
}
|
|
1968
|
-
.ttw\:rounded-tr-xl {
|
|
1969
|
-
border-top-right-radius: calc(var(--ttw-radius) + 4px);
|
|
1970
|
-
}
|
|
1971
1965
|
.ttw\:rounded-b-xl {
|
|
1972
1966
|
border-bottom-right-radius: calc(var(--ttw-radius) + 4px);
|
|
1973
1967
|
border-bottom-left-radius: calc(var(--ttw-radius) + 4px);
|
|
@@ -1975,15 +1969,9 @@
|
|
|
1975
1969
|
.ttw\:rounded-br-\[14px\] {
|
|
1976
1970
|
border-bottom-right-radius: 14px;
|
|
1977
1971
|
}
|
|
1978
|
-
.ttw\:rounded-br-xl {
|
|
1979
|
-
border-bottom-right-radius: calc(var(--ttw-radius) + 4px);
|
|
1980
|
-
}
|
|
1981
1972
|
.ttw\:rounded-bl-\[14px\] {
|
|
1982
1973
|
border-bottom-left-radius: 14px;
|
|
1983
1974
|
}
|
|
1984
|
-
.ttw\:rounded-bl-xl {
|
|
1985
|
-
border-bottom-left-radius: calc(var(--ttw-radius) + 4px);
|
|
1986
|
-
}
|
|
1987
1975
|
.ttw\:border {
|
|
1988
1976
|
border-style: var(--tw-border-style);
|
|
1989
1977
|
border-width: 1px;
|
|
@@ -2012,6 +2000,10 @@
|
|
|
2012
2000
|
border-top-style: var(--tw-border-style);
|
|
2013
2001
|
border-top-width: 1px;
|
|
2014
2002
|
}
|
|
2003
|
+
.ttw\:border-t-0 {
|
|
2004
|
+
border-top-style: var(--tw-border-style);
|
|
2005
|
+
border-top-width: 0px;
|
|
2006
|
+
}
|
|
2015
2007
|
.ttw\:border-t-2 {
|
|
2016
2008
|
border-top-style: var(--tw-border-style);
|
|
2017
2009
|
border-top-width: 2px;
|
|
@@ -2048,10 +2040,6 @@
|
|
|
2048
2040
|
border-left-style: var(--tw-border-style);
|
|
2049
2041
|
border-left-width: 2px;
|
|
2050
2042
|
}
|
|
2051
|
-
.ttw\:border-l-4\! {
|
|
2052
|
-
border-left-style: var(--tw-border-style) !important;
|
|
2053
|
-
border-left-width: 4px !important;
|
|
2054
|
-
}
|
|
2055
2043
|
.ttw\:border-dashed {
|
|
2056
2044
|
--tw-border-style: dashed;
|
|
2057
2045
|
border-style: dashed;
|
|
@@ -2217,9 +2205,6 @@
|
|
|
2217
2205
|
.ttw\:border-b-\[\#EAECF0\] {
|
|
2218
2206
|
border-bottom-color: #EAECF0;
|
|
2219
2207
|
}
|
|
2220
|
-
.ttw\:border-l-warning\! {
|
|
2221
|
-
border-left-color: var(--ttw-warning) !important;
|
|
2222
|
-
}
|
|
2223
2208
|
.ttw\:bg-\[\#2DD4BF\] {
|
|
2224
2209
|
background-color: #2DD4BF;
|
|
2225
2210
|
}
|
|
@@ -3741,12 +3726,6 @@
|
|
|
3741
3726
|
) 30%, transparent);
|
|
3742
3727
|
}
|
|
3743
3728
|
}
|
|
3744
|
-
.ttw\:bg-warning\/10 {
|
|
3745
|
-
background-color: var(--ttw-warning);
|
|
3746
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
3747
|
-
background-color: color-mix(in oklab, var(--ttw-warning) 10%, transparent);
|
|
3748
|
-
}
|
|
3749
|
-
}
|
|
3750
3729
|
.ttw\:bg-white {
|
|
3751
3730
|
background-color: var(--ttw-color-white);
|
|
3752
3731
|
}
|
|
@@ -5117,14 +5096,6 @@
|
|
|
5117
5096
|
.ttw\:group-hover\/menu-item\:opacity-100:is(:where(.ttw\:group\/menu-item):hover *) {
|
|
5118
5097
|
opacity: 100%;
|
|
5119
5098
|
}
|
|
5120
|
-
.ttw\:group-hover\/row\:bg-muted\/50:is(:where(.ttw\:group\/row):hover *) {
|
|
5121
|
-
background-color: var(--ttw-muted);
|
|
5122
|
-
}
|
|
5123
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
5124
|
-
.ttw\:group-hover\/row\:bg-muted\/50:is(:where(.ttw\:group\/row):hover *) {
|
|
5125
|
-
background-color: color-mix(in oklab, var(--ttw-muted) 50%, transparent);
|
|
5126
|
-
}
|
|
5127
|
-
}
|
|
5128
5099
|
}
|
|
5129
5100
|
.ttw\:group-has-data-\[sidebar\=menu-action\]\/menu-item\:pr-8:is(:where(.ttw\:group\/menu-item):has([data-sidebar="menu-action"]) *) {
|
|
5130
5101
|
padding-right: calc(var(--ttw-spacing) * 8);
|
|
@@ -5737,20 +5708,9 @@
|
|
|
5737
5708
|
.ttw\:hover\:bg-transparent:hover {
|
|
5738
5709
|
background-color: transparent;
|
|
5739
5710
|
}
|
|
5740
|
-
.ttw\:hover\:bg-transparent\!:hover {
|
|
5741
|
-
background-color: transparent !important;
|
|
5742
|
-
}
|
|
5743
5711
|
.ttw\:hover\:bg-violet-100:hover {
|
|
5744
5712
|
background-color: var(--ttw-color-violet-100);
|
|
5745
5713
|
}
|
|
5746
|
-
.ttw\:hover\:bg-warning\/20:hover {
|
|
5747
|
-
background-color: var(--ttw-warning);
|
|
5748
|
-
}
|
|
5749
|
-
@supports (color: color-mix(in lab, red, red)) {
|
|
5750
|
-
.ttw\:hover\:bg-warning\/20:hover {
|
|
5751
|
-
background-color: color-mix(in oklab, var(--ttw-warning) 20%, transparent);
|
|
5752
|
-
}
|
|
5753
|
-
}
|
|
5754
5714
|
.ttw\:hover\:bg-white\/10:hover {
|
|
5755
5715
|
background-color: var(--ttw-color-white);
|
|
5756
5716
|
}
|
|
@@ -6786,6 +6746,9 @@
|
|
|
6786
6746
|
.ttw\:\@xl\:block {
|
|
6787
6747
|
display: block;
|
|
6788
6748
|
}
|
|
6749
|
+
.ttw\:\@xl\:flex {
|
|
6750
|
+
display: flex;
|
|
6751
|
+
}
|
|
6789
6752
|
.ttw\:\@xl\:hidden {
|
|
6790
6753
|
display: none;
|
|
6791
6754
|
}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
+
import { BILL_STATUS_BADGE_LABELS_EN as e } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
2
|
+
import "../../../../shared/document-status/ui/dist/index.js";
|
|
1
3
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
let r = e === 1 ? "1 other" : `${e} others`, i = t ? ` from ${t}` : "";
|
|
5
|
-
return n ? `Possible duplicate. This bill and ${r}${i} have invoice number ${n}.` : `Possible duplicate. This bill and ${r}${i} look the same.`;
|
|
6
|
-
},
|
|
4
|
+
var t = {
|
|
5
|
+
duplicateCardInvoice: (e) => `Invoice ${e}`,
|
|
7
6
|
openRow: ({ vendorLabel: e, invoiceNumberLabel: t, addedOnLabel: n }) => `View bill — ${e}, invoice number ${t}, created ${n}`,
|
|
8
7
|
deleteBillButton: "Delete this bill",
|
|
9
8
|
deleteConfirmTitle: "Delete duplicate bill?",
|
|
@@ -25,6 +24,9 @@ var e = {
|
|
|
25
24
|
notDuplicateConfirmBackButton: "Back",
|
|
26
25
|
currentBillBadge: "This bill",
|
|
27
26
|
showMoreRows: (e) => `Show ${e} more`,
|
|
27
|
+
showLessRows: "Show less",
|
|
28
|
+
statusSummary: (e) => e.join(", "),
|
|
29
|
+
statusLabels: e,
|
|
28
30
|
deletedToast: "Duplicate deleted",
|
|
29
31
|
cancelledToast: "Duplicate cancelled",
|
|
30
32
|
confirmedToast: "Duplicate confirmed",
|
|
@@ -33,4 +35,4 @@ var e = {
|
|
|
33
35
|
verdictFailedToast: "Couldn't update this duplicate. Try again.",
|
|
34
36
|
allResolvedToast: "All possible duplicates resolved"
|
|
35
37
|
};
|
|
36
|
-
export {
|
|
38
|
+
export { t as DUPLICATE_BILLS_LABELS_EN };
|
|
@@ -13,28 +13,29 @@ import { duplicateVerdictMatches as a, groupSuspectedDuplicates as o } from "../
|
|
|
13
13
|
import { isEditablePayableStatus as s } from "../../../util/dist/lib/isEditablePayableStatus.js";
|
|
14
14
|
import { payableRemoval as c } from "../../../util/dist/lib/payableRemoval.js";
|
|
15
15
|
import { resolveVendorName as l } from "../../../util/dist/lib/resolveVendor.js";
|
|
16
|
+
import { buildGroupCollapse as u } from "../../../util/dist/lib/groupCollapse.js";
|
|
16
17
|
import "../../../util/dist/index.js";
|
|
17
|
-
import { derivePayableStatus as
|
|
18
|
-
import { useApplyDuplicateVerdictsMutation as
|
|
18
|
+
import { derivePayableStatus as d } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
|
|
19
|
+
import { useApplyDuplicateVerdictsMutation as f } from "../../../data-access/dist/lib/useApplyDuplicateVerdictsMutation.js";
|
|
19
20
|
import "../../../data-access/dist/index.js";
|
|
20
|
-
import { usePayablesByIdsQueries as
|
|
21
|
+
import { usePayablesByIdsQueries as p } from "../../data-access/dist/index22.js";
|
|
21
22
|
import "../../data-access/dist/index.js";
|
|
22
|
-
import { DUPLICATE_BILLS_LABELS_EN as
|
|
23
|
-
import { useCallback as
|
|
24
|
-
import { FileCheckIcon as
|
|
23
|
+
import { DUPLICATE_BILLS_LABELS_EN as m } from "./index3.js";
|
|
24
|
+
import { useCallback as h, useMemo as g, useState as _ } from "react";
|
|
25
|
+
import { FileCheckIcon as v } from "lucide-react";
|
|
25
26
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js
|
|
26
|
-
var
|
|
27
|
-
function
|
|
27
|
+
var y = 5;
|
|
28
|
+
function b(e, t) {
|
|
28
29
|
return t ? o(e).map(({ members: e }) => e).find((e) => e.some((e) => e.id === t)) ?? [] : [];
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
let
|
|
32
|
-
...
|
|
33
|
-
...
|
|
34
|
-
}), [
|
|
31
|
+
function x({ payable: o, canManage: x = !0, onRemoved: S, onOpenPayable: C, labels: w }) {
|
|
32
|
+
let T = g(() => ({
|
|
33
|
+
...m,
|
|
34
|
+
...w
|
|
35
|
+
}), [w]), E = i(o), [D] = E, O = o?.id, k = g(() => [...new Set(E.map((e) => e.matched_payable_id))], [E]), A = p(k, { enabled: !!(D && O) }), j = f(), [M, N] = _(!1), [P, F] = _(), I = c(o?.status), L = h(async (t, n, r, i, o) => {
|
|
35
36
|
let s = a(t, n, o);
|
|
36
37
|
if (s.length && t?.id) try {
|
|
37
|
-
await
|
|
38
|
+
await j.mutateAsync({
|
|
38
39
|
verdict: n,
|
|
39
40
|
targets: s.map((e) => ({
|
|
40
41
|
payableId: t.id,
|
|
@@ -44,67 +45,67 @@ function b({ payable: o, canManage: b = !0, onRemoved: x, onOpenPayable: S, labe
|
|
|
44
45
|
}))
|
|
45
46
|
}), e.success(r), i?.();
|
|
46
47
|
} catch {
|
|
47
|
-
e.error(
|
|
48
|
+
e.error(T.verdictFailedToast);
|
|
48
49
|
}
|
|
49
|
-
}, [
|
|
50
|
-
button:
|
|
51
|
-
title:
|
|
52
|
-
description:
|
|
53
|
-
confirmButton:
|
|
54
|
-
backButton:
|
|
55
|
-
toast:
|
|
56
|
-
} :
|
|
57
|
-
button:
|
|
58
|
-
title:
|
|
59
|
-
description:
|
|
60
|
-
confirmButton:
|
|
61
|
-
backButton:
|
|
62
|
-
toast:
|
|
50
|
+
}, [j, T]), R = h((e, t, n) => L(o, e, t, n), [L, o]), z = I === "delete" ? {
|
|
51
|
+
button: T.deleteBillButton,
|
|
52
|
+
title: T.deleteConfirmTitle,
|
|
53
|
+
description: T.deleteConfirmDescription,
|
|
54
|
+
confirmButton: T.deleteConfirmButton,
|
|
55
|
+
backButton: T.deleteConfirmBackButton,
|
|
56
|
+
toast: T.deletedToast
|
|
57
|
+
} : I === "confirm" ? {
|
|
58
|
+
button: T.confirmBillButton,
|
|
59
|
+
title: T.confirmDuplicateTitle,
|
|
60
|
+
description: T.confirmDuplicateDescription,
|
|
61
|
+
confirmButton: T.confirmBillButton,
|
|
62
|
+
backButton: T.cancelConfirmBackButton,
|
|
63
|
+
toast: T.confirmedToast
|
|
63
64
|
} : {
|
|
64
|
-
button:
|
|
65
|
-
title:
|
|
66
|
-
description:
|
|
67
|
-
confirmButton:
|
|
68
|
-
backButton:
|
|
69
|
-
toast:
|
|
70
|
-
},
|
|
71
|
-
await
|
|
65
|
+
button: T.cancelBillButton,
|
|
66
|
+
title: T.cancelConfirmTitle,
|
|
67
|
+
description: T.cancelConfirmDescription,
|
|
68
|
+
confirmButton: T.cancelConfirmButton,
|
|
69
|
+
backButton: T.cancelConfirmBackButton,
|
|
70
|
+
toast: T.cancelledToast
|
|
71
|
+
}, B = I !== "confirm", V = h(async () => {
|
|
72
|
+
await R(r.Remove, z.toast, S), N(!1);
|
|
72
73
|
}, [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
]),
|
|
77
|
-
|
|
74
|
+
R,
|
|
75
|
+
S,
|
|
76
|
+
z.toast
|
|
77
|
+
]), H = h(async () => {
|
|
78
|
+
P && (await L(P.payable, r.Keep, T.dismissedToast, void 0, P.originalPayableId), F(void 0));
|
|
78
79
|
}, [
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
]),
|
|
83
|
-
let e = new Map(
|
|
80
|
+
L,
|
|
81
|
+
T.dismissedToast,
|
|
82
|
+
P
|
|
83
|
+
]), U = x && !!(D && O), W = U && !!I, G = g(() => {
|
|
84
|
+
let e = new Map(A.flatMap((e) => e.data ? [[e.data.id, e.data]] : []));
|
|
84
85
|
o?.id && e.set(o.id, o);
|
|
85
|
-
let r =
|
|
86
|
+
let r = b([...e.values()], O);
|
|
86
87
|
if (r.length < 2) return [];
|
|
87
88
|
let i = (e) => {
|
|
88
89
|
let t = e.total_amount ?? e.amount_due;
|
|
89
90
|
return t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" });
|
|
90
91
|
};
|
|
91
|
-
return [...r.filter((e) => e.id ===
|
|
92
|
-
let n = e.status ?
|
|
92
|
+
return [...r.filter((e) => e.id === O), ...r.filter((e) => e.id !== O)].map((e) => {
|
|
93
|
+
let n = e.status ? d({
|
|
93
94
|
apiStatus: e.status,
|
|
94
95
|
dueDate: e.due_date,
|
|
95
96
|
scheduledPaymentDate: e.scheduled_payment_date
|
|
96
|
-
}) : void 0, r = e.id ===
|
|
97
|
+
}) : void 0, r = e.id === O, a = t(e.created_at?.slice(0, 10));
|
|
97
98
|
return {
|
|
98
99
|
id: e.id,
|
|
99
100
|
isCurrent: r,
|
|
100
|
-
badges: r ? [
|
|
101
|
+
badges: r ? [T.currentBillBadge] : [],
|
|
101
102
|
createdOnLabel: a,
|
|
102
103
|
dueDateLabel: t(e.due_date),
|
|
103
104
|
amountLabel: i(e),
|
|
104
105
|
status: n?.status,
|
|
105
106
|
statusTone: n?.tone,
|
|
106
|
-
onOpen: !r &&
|
|
107
|
-
openLabel:
|
|
107
|
+
onOpen: !r && C ? () => C(e.id, s(e.status ?? void 0)) : void 0,
|
|
108
|
+
openLabel: T.openRow({
|
|
108
109
|
vendorLabel: l(e),
|
|
109
110
|
invoiceNumberLabel: e.document_id ?? "",
|
|
110
111
|
addedOnLabel: a
|
|
@@ -112,59 +113,63 @@ function b({ payable: o, canManage: b = !0, onRemoved: x, onOpenPayable: S, labe
|
|
|
112
113
|
};
|
|
113
114
|
});
|
|
114
115
|
}, [
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
A,
|
|
117
|
+
T,
|
|
118
|
+
C,
|
|
118
119
|
o,
|
|
119
|
-
|
|
120
|
-
]),
|
|
121
|
-
otherCount: W.length - 1,
|
|
122
|
-
vendorLabel: G,
|
|
123
|
-
invoiceNumberLabel: K
|
|
124
|
-
}) : void 0;
|
|
120
|
+
O
|
|
121
|
+
]), K = l(o), q = o?.document_id ?? "", J = G.length > 1, Y = J && K ? K : void 0, X = J && q ? T.duplicateCardInvoice(q) : void 0;
|
|
125
122
|
return {
|
|
126
|
-
isPossibleDuplicate: !!
|
|
127
|
-
onNotADuplicate:
|
|
128
|
-
onRemoveBill:
|
|
129
|
-
removeBillLabel:
|
|
130
|
-
isRemoveBillDestructive:
|
|
123
|
+
isPossibleDuplicate: !!D,
|
|
124
|
+
onNotADuplicate: U ? () => F({ payable: o }) : void 0,
|
|
125
|
+
onRemoveBill: W ? () => N(!0) : void 0,
|
|
126
|
+
removeBillLabel: W ? z.button : void 0,
|
|
127
|
+
isRemoveBillDestructive: B,
|
|
131
128
|
removeConfirmation: {
|
|
132
|
-
open:
|
|
129
|
+
open: M,
|
|
133
130
|
copy: {
|
|
134
|
-
title:
|
|
135
|
-
description:
|
|
136
|
-
confirmButton:
|
|
137
|
-
...
|
|
131
|
+
title: z.title,
|
|
132
|
+
description: z.description,
|
|
133
|
+
confirmButton: z.confirmButton,
|
|
134
|
+
...B ? { presentation: { tone: "destructive" } } : {}
|
|
138
135
|
},
|
|
139
|
-
onConfirm: () => void
|
|
140
|
-
onCancel: () =>
|
|
141
|
-
isPending:
|
|
142
|
-
cancelButtonLabel:
|
|
136
|
+
onConfirm: () => void V(),
|
|
137
|
+
onCancel: () => N(!1),
|
|
138
|
+
isPending: j.isPending,
|
|
139
|
+
cancelButtonLabel: z.backButton
|
|
143
140
|
},
|
|
144
141
|
keepRowConfirmation: {
|
|
145
|
-
open: !!
|
|
142
|
+
open: !!P,
|
|
146
143
|
copy: {
|
|
147
|
-
title:
|
|
148
|
-
description:
|
|
149
|
-
confirmButton:
|
|
144
|
+
title: T.notDuplicateConfirmTitle,
|
|
145
|
+
description: T.notDuplicateConfirmDescription,
|
|
146
|
+
confirmButton: T.notDuplicateConfirmButton,
|
|
150
147
|
presentation: {
|
|
151
148
|
alignment: "center",
|
|
152
|
-
icon:
|
|
149
|
+
icon: v,
|
|
153
150
|
actionWidth: "equal"
|
|
154
151
|
}
|
|
155
152
|
},
|
|
156
|
-
onConfirm: () => void
|
|
157
|
-
onCancel: () =>
|
|
158
|
-
isPending:
|
|
159
|
-
cancelButtonLabel:
|
|
153
|
+
onConfirm: () => void H(),
|
|
154
|
+
onCancel: () => F(void 0),
|
|
155
|
+
isPending: j.isPending,
|
|
156
|
+
cancelButtonLabel: T.notDuplicateConfirmBackButton
|
|
160
157
|
},
|
|
161
|
-
isBusy:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
158
|
+
isBusy: j.isPending,
|
|
159
|
+
title: Y,
|
|
160
|
+
meta: X,
|
|
161
|
+
rows: G,
|
|
162
|
+
isLoadingRows: G.length === 0 && A.some((e) => e.isLoading),
|
|
163
|
+
loadingRowCount: Math.min(k.length + 1, y),
|
|
164
|
+
collapse: u({
|
|
165
|
+
statuses: G.map((e) => e.status),
|
|
166
|
+
statusLabels: T.statusLabels,
|
|
167
|
+
labels: {
|
|
168
|
+
showMore: T.showMoreRows,
|
|
169
|
+
showLess: T.showLessRows,
|
|
170
|
+
statusSummary: T.statusSummary
|
|
171
|
+
}
|
|
172
|
+
})
|
|
168
173
|
};
|
|
169
174
|
}
|
|
170
|
-
export {
|
|
175
|
+
export { x as usePayableDuplicateReview };
|
|
@@ -338,16 +338,15 @@ function l({ open: l, onOpenChange: u, payableId: d, initialCounterpartId: Ge, r
|
|
|
338
338
|
labels: g.rejectedBanner
|
|
339
339
|
}) : null,
|
|
340
340
|
sn ? /* @__PURE__ */ c(le, {
|
|
341
|
-
|
|
341
|
+
title: $.title,
|
|
342
|
+
meta: $.meta,
|
|
342
343
|
onNotADuplicate: $.onNotADuplicate,
|
|
343
344
|
onRemoveBill: $.onRemoveBill,
|
|
344
|
-
isRemoveBillDestructive: $.isRemoveBillDestructive,
|
|
345
345
|
isActionDisabled: $.isBusy,
|
|
346
346
|
rows: $.rows,
|
|
347
347
|
isLoading: $.isLoadingRows,
|
|
348
348
|
loadingRowCount: $.loadingRowCount,
|
|
349
|
-
|
|
350
|
-
showMoreLabel: $.showMoreLabel,
|
|
349
|
+
collapse: $.collapse,
|
|
351
350
|
labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
|
|
352
351
|
testId: i.duplicateNotice
|
|
353
352
|
}) : null,
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js
CHANGED
|
@@ -5,7 +5,7 @@ import { VENDOR_SUMMARY_CARD_LABELS_EN as i } from "./index11.js";
|
|
|
5
5
|
import "./index13.js";
|
|
6
6
|
import { BILL_STATUS_BADGE_LABELS_EN as a } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
7
7
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
8
|
-
import { DUE_DATE_VALUE_LABELS_EN as o } from "../../../ui/dist/
|
|
8
|
+
import { DUE_DATE_VALUE_LABELS_EN as o } from "../../../ui/dist/index21.js";
|
|
9
9
|
import "../../../ui/dist/index.js";
|
|
10
10
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js
|
|
11
11
|
var s = {
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js
CHANGED
|
@@ -12,7 +12,7 @@ import "./index13.js";
|
|
|
12
12
|
import { BillStatusBadge as f } from "../../../../shared/document-status/ui/dist/index4.js";
|
|
13
13
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
14
14
|
import { BillActionButtons as p, NO_BILL_ACTIONS as m } from "../../../ui/dist/index2.js";
|
|
15
|
-
import { DueDateValue as h } from "../../../ui/dist/
|
|
15
|
+
import { DueDateValue as h } from "../../../ui/dist/index22.js";
|
|
16
16
|
import "../../../ui/dist/index.js";
|
|
17
17
|
import { mergeBillDetailBodyLabels as g } from "./index14.js";
|
|
18
18
|
import { ScheduledSummaryBadge as _ } from "./index5.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogHeader as i, DialogTitle as a, DropdownMenu as o, DropdownMenuContent as s, DropdownMenuGroup as c, DropdownMenuItem as l, DropdownMenuLabel as ee, DropdownMenuSeparator as u, DropdownMenuTrigger as d, RequiredFieldsLegend as f } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
2
|
import { InlineErrorAlert as te } from "../../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
|
|
3
3
|
import "../../../../shared/ui/dist/index.js";
|
|
4
|
-
import { groupBySectionHeading as p } from "../../../ui/dist/
|
|
4
|
+
import { groupBySectionHeading as p } from "../../../ui/dist/index10.js";
|
|
5
5
|
import "../../../ui/dist/index.js";
|
|
6
6
|
import { BillDetailBody as m } from "./index15.js";
|
|
7
7
|
import "./index16.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js
CHANGED
|
@@ -2,7 +2,7 @@ import { APPROVAL_POLICY_CARD_LABELS_EN as e } from "./index2.js";
|
|
|
2
2
|
import "./index4.js";
|
|
3
3
|
import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
4
4
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
5
|
-
import { DUE_DATE_VALUE_LABELS_EN as n } from "../../../ui/dist/
|
|
5
|
+
import { DUE_DATE_VALUE_LABELS_EN as n } from "../../../ui/dist/index21.js";
|
|
6
6
|
import "../../../ui/dist/index.js";
|
|
7
7
|
import { BILL_AUDIT_HISTORY_SECTION_LABELS_EN as r } from "./index14.js";
|
|
8
8
|
import "./index16.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js
CHANGED
|
@@ -8,8 +8,8 @@ import "./index9.js";
|
|
|
8
8
|
import { BillStatusBadge as m } from "../../../../shared/document-status/ui/dist/index4.js";
|
|
9
9
|
import "../../../../shared/document-status/ui/dist/index.js";
|
|
10
10
|
import { BillActionButtons as h, NO_BILL_ACTIONS as g } from "../../../ui/dist/index2.js";
|
|
11
|
-
import { BillOverflowMenu as _ } from "../../../ui/dist/
|
|
12
|
-
import { DueDateValue as v } from "../../../ui/dist/
|
|
11
|
+
import { BillOverflowMenu as _ } from "../../../ui/dist/index11.js";
|
|
12
|
+
import { DueDateValue as v } from "../../../ui/dist/index22.js";
|
|
13
13
|
import "../../../ui/dist/index.js";
|
|
14
14
|
import { ScheduledSummaryBadge as y } from "./index5.js";
|
|
15
15
|
import { BILL_DETAILS_SHEET_LABELS_EN as b } from "./index33.js";
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js
|
|
2
2
|
var e = {
|
|
3
3
|
message: "This bill is a possible duplicate.",
|
|
4
|
-
|
|
4
|
+
titleAnnouncement: "Possible duplicate.",
|
|
5
|
+
createdOnColumn: "Created",
|
|
5
6
|
dueDateColumn: "Due date",
|
|
6
7
|
amountColumn: "Amount",
|
|
7
8
|
statusColumn: "Status",
|