@tesouro/embedded-components-react 0.11.9 → 0.11.11

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.
Files changed (51) hide show
  1. package/dist/index.css +12 -49
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index3.js +8 -6
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +99 -94
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +3 -4
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index36.js +2 -1
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +110 -100
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/ui/dist/index4.js +45 -40
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +259 -210
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +190 -165
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +7 -1
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +151 -143
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +19 -17
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +13 -2
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +52 -2
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +2 -40
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +3 -2
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +39 -9
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +2 -77
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +10 -0
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +77 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +25 -26
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +3 -2
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +28 -5
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +2 -33
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +6 -2
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +33 -0
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +2 -0
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index6.js +9 -30
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index8.js +29 -11
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index9.js +1 -53
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +2 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/groupCollapse.js +22 -0
  48. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  49. package/dist/packages/shared-ui-shadcn/dist/index.js +1637 -1507
  50. package/package.json +1 -1
  51. 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-120 {
1419
- min-width: calc(var(--ttw-spacing) * 120);
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 e = {
3
- possibleDuplicateTitle: ({ otherCount: e, vendorLabel: t, invoiceNumberLabel: n }) => {
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 { e as DUPLICATE_BILLS_LABELS_EN };
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 u } from "../../../../shared/document-status/util/dist/lib/derivePayableStatus.js";
18
- import { useApplyDuplicateVerdictsMutation as d } from "../../../data-access/dist/lib/useApplyDuplicateVerdictsMutation.js";
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 f } from "../../data-access/dist/index22.js";
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 p } from "./index3.js";
23
- import { useCallback as m, useMemo as h, useState as g } from "react";
24
- import { FileCheckIcon as _ } from "lucide-react";
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 v = 5;
27
- function y(e, t) {
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 b({ payable: o, canManage: b = !0, onRemoved: x, onOpenPayable: S, labels: C }) {
31
- let w = h(() => ({
32
- ...p,
33
- ...C
34
- }), [C]), T = i(o), [E] = T, D = o?.id, O = h(() => [...new Set(T.map((e) => e.matched_payable_id))], [T]), k = f(O, { enabled: !!(E && D) }), A = d(), [j, M] = g(!1), [N, P] = g(), F = c(o?.status), I = m(async (t, n, r, i, o) => {
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 A.mutateAsync({
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(w.verdictFailedToast);
48
+ e.error(T.verdictFailedToast);
48
49
  }
49
- }, [A, w]), L = m((e, t, n) => I(o, e, t, n), [I, o]), R = F === "delete" ? {
50
- button: w.deleteBillButton,
51
- title: w.deleteConfirmTitle,
52
- description: w.deleteConfirmDescription,
53
- confirmButton: w.deleteConfirmButton,
54
- backButton: w.deleteConfirmBackButton,
55
- toast: w.deletedToast
56
- } : F === "confirm" ? {
57
- button: w.confirmBillButton,
58
- title: w.confirmDuplicateTitle,
59
- description: w.confirmDuplicateDescription,
60
- confirmButton: w.confirmBillButton,
61
- backButton: w.cancelConfirmBackButton,
62
- toast: w.confirmedToast
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: w.cancelBillButton,
65
- title: w.cancelConfirmTitle,
66
- description: w.cancelConfirmDescription,
67
- confirmButton: w.cancelConfirmButton,
68
- backButton: w.cancelConfirmBackButton,
69
- toast: w.cancelledToast
70
- }, z = F !== "confirm", B = m(async () => {
71
- await L(r.Remove, R.toast, x), M(!1);
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
- L,
74
- x,
75
- R.toast
76
- ]), V = m(async () => {
77
- N && (await I(N.payable, r.Keep, w.dismissedToast, void 0, N.originalPayableId), P(void 0));
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
- I,
80
- w.dismissedToast,
81
- N
82
- ]), H = b && !!(E && D), U = H && !!F, W = h(() => {
83
- let e = new Map(k.flatMap((e) => e.data ? [[e.data.id, e.data]] : []));
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 = y([...e.values()], D);
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 === D), ...r.filter((e) => e.id !== D)].map((e) => {
92
- let n = e.status ? u({
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 === D, a = t(e.created_at?.slice(0, 10));
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 ? [w.currentBillBadge] : [],
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 && S ? () => S(e.id, s(e.status ?? void 0)) : void 0,
107
- openLabel: w.openRow({
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
- k,
116
- w,
117
- S,
116
+ A,
117
+ T,
118
+ C,
118
119
  o,
119
- D
120
- ]), G = l(o), K = o?.document_id ?? "", q = W.length > 1 ? w.possibleDuplicateTitle({
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: !!E,
127
- onNotADuplicate: H ? () => P({ payable: o }) : void 0,
128
- onRemoveBill: U ? () => M(!0) : void 0,
129
- removeBillLabel: U ? R.button : void 0,
130
- isRemoveBillDestructive: z,
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: j,
129
+ open: M,
133
130
  copy: {
134
- title: R.title,
135
- description: R.description,
136
- confirmButton: R.confirmButton,
137
- ...z ? { presentation: { tone: "destructive" } } : {}
131
+ title: z.title,
132
+ description: z.description,
133
+ confirmButton: z.confirmButton,
134
+ ...B ? { presentation: { tone: "destructive" } } : {}
138
135
  },
139
- onConfirm: () => void B(),
140
- onCancel: () => M(!1),
141
- isPending: A.isPending,
142
- cancelButtonLabel: R.backButton
136
+ onConfirm: () => void V(),
137
+ onCancel: () => N(!1),
138
+ isPending: j.isPending,
139
+ cancelButtonLabel: z.backButton
143
140
  },
144
141
  keepRowConfirmation: {
145
- open: !!N,
142
+ open: !!P,
146
143
  copy: {
147
- title: w.notDuplicateConfirmTitle,
148
- description: w.notDuplicateConfirmDescription,
149
- confirmButton: w.notDuplicateConfirmButton,
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 V(),
157
- onCancel: () => P(void 0),
158
- isPending: A.isPending,
159
- cancelButtonLabel: w.notDuplicateConfirmBackButton
153
+ onConfirm: () => void H(),
154
+ onCancel: () => F(void 0),
155
+ isPending: j.isPending,
156
+ cancelButtonLabel: T.notDuplicateConfirmBackButton
160
157
  },
161
- isBusy: A.isPending,
162
- message: q,
163
- rows: W,
164
- isLoadingRows: W.length === 0 && k.some((e) => e.isLoading),
165
- loadingRowCount: Math.min(O.length + 1, v),
166
- collapsedRowCount: v,
167
- showMoreLabel: W.length > v ? w.showMoreRows(W.length - v) : void 0
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 { b as usePayableDuplicateReview };
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
- message: $.message,
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
- collapsedRowCount: $.collapsedRowCount,
350
- showMoreLabel: $.showMoreLabel,
349
+ collapse: $.collapse,
351
350
  labels: $.removeBillLabel ? { removeBillButton: $.removeBillLabel } : void 0,
352
351
  testId: i.duplicateNotice
353
352
  }) : null,
@@ -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/index19.js";
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 = {
@@ -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/index20.js";
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";
@@ -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/index8.js";
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";
@@ -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/index19.js";
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";
@@ -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/index9.js";
12
- import { DueDateValue as v } from "../../../ui/dist/index20.js";
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";
@@ -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
- createdOnColumn: "Created on",
4
+ titleAnnouncement: "Possible duplicate.",
5
+ createdOnColumn: "Created",
5
6
  dueDateColumn: "Due date",
6
7
  amountColumn: "Amount",
7
8
  statusColumn: "Status",