@tesouro/embedded-components-react 0.11.226 → 0.11.230

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 (56) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/BillPayWidget.js +1 -1
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +3 -1
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index8.js +55 -0
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index9.js +36 -0
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +5 -5
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +19 -185
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +10 -30
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +186 -12
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +35 -83
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +15 -51
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +76 -294
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +51 -34
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +277 -456
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +29 -326
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +524 -5
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +359 -4
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +4 -37
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js +5 -1
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index23.js +38 -0
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index24.js +1 -0
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +8 -0
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +3 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +2 -0
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +3 -1
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +221 -200
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +2 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -1
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +14 -12
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +10 -11
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +1 -53
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -2
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +52 -2
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -74
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +3 -2
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +73 -9
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -77
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +77 -2
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -31
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +6 -2
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +31 -0
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
  54. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  55. package/package.json +1 -1
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +0 -6
@@ -3,29 +3,29 @@ import { EmptyState as s } from "../../../../shared/ui/dist/lib/EmptyState/Empty
3
3
  import { ErrorState as ie } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
4
  import { HintDisclosure as ae } from "../../../../shared/ui/dist/lib/HintDisclosure/HintDisclosure.js";
5
5
  import { EmptyValue as c } from "../../../../shared/ui/dist/lib/EmptyValue/EmptyValue.js";
6
- import { RowStatusIcon as oe } from "../../../../shared/ui/dist/lib/RowStatusIcon/RowStatusIcon.js";
7
- import { DueDateText as se } from "../../../../shared/ui/dist/lib/DueDateText/DueDateText.js";
8
- import { AttentionStrip as ce } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionStrip.js";
9
- import { AttentionViewBar as le } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionViewBar.js";
6
+ import { RowStatusIcon as l } from "../../../../shared/ui/dist/lib/RowStatusIcon/RowStatusIcon.js";
7
+ import { DueDateText as oe } from "../../../../shared/ui/dist/lib/DueDateText/DueDateText.js";
8
+ import { AttentionStrip as se } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionStrip.js";
9
+ import { AttentionViewBar as ce } from "../../../../shared/ui/dist/lib/AttentionStrip/AttentionViewBar.js";
10
10
  import "../../../../shared/ui/dist/index.js";
11
- import { BillDuplicateIcon as ue } from "../../../ui/dist/index6.js";
12
- import { BillOverflowMenu as de } from "../../../ui/dist/index11.js";
13
- import { getAcceptedBillUploadFiles as fe } from "../../../ui/dist/index17.js";
11
+ import { BillDuplicateIcon as le } from "../../../ui/dist/index6.js";
12
+ import { BillOverflowMenu as ue } from "../../../ui/dist/index13.js";
13
+ import { getAcceptedBillUploadFiles as de } from "../../../ui/dist/index19.js";
14
14
  import "../../../ui/dist/index.js";
15
- import { AddBillPanel as l } from "./index3.js";
15
+ import { AddBillPanel as u } from "./index3.js";
16
16
  import "./index4.js";
17
- import { BillSummaryCards as pe } from "./index9.js";
17
+ import { BillSummaryCards as fe } from "./index9.js";
18
18
  import "./index10.js";
19
- import { BillsFilterBar as me } from "./index13.js";
19
+ import { BillsFilterBar as pe } from "./index13.js";
20
20
  import "./index14.js";
21
- import { BillStatusBadge as he } from "../../../../shared/document-status/ui/dist/index4.js";
21
+ import { BillStatusBadge as me } from "../../../../shared/document-status/ui/dist/index4.js";
22
22
  import "../../../../shared/document-status/ui/dist/index.js";
23
- import { BILLS_SCREEN_LABELS_EN as u, BILLS_SCREEN_UPLOAD_ACCEPT as d } from "./index15.js";
24
- import { BillColumn as f } from "./index16.js";
25
- import { Fragment as ge, useMemo as p, useState as _e } from "react";
26
- import { createPortal as ve } from "react-dom";
27
- import { Fragment as ye, jsx as m, jsxs as h } from "react/jsx-runtime";
28
- import { FileQuestionIcon as be, SearchIcon as xe, UploadIcon as Se } from "lucide-react";
23
+ import { BILLS_SCREEN_LABELS_EN as d, BILLS_SCREEN_UPLOAD_ACCEPT as f } from "./index15.js";
24
+ import { BillColumn as p } from "./index16.js";
25
+ import { Fragment as he, useMemo as m, useState as ge } from "react";
26
+ import { createPortal as _e } from "react-dom";
27
+ import { Fragment as ve, jsx as h, jsxs as g } from "react/jsx-runtime";
28
+ import { CircleAlertIcon as ye, FileQuestionIcon as be, SearchIcon as xe, UploadIcon as Se } from "lucide-react";
29
29
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js
30
30
  var Ce = [
31
31
  10,
@@ -36,178 +36,199 @@ var Ce = [
36
36
  function Te(e, t) {
37
37
  return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.emptyValue.notEntered;
38
38
  }
39
- var Ee = 56, g = [
40
- f.Vendor,
41
- f.InvoiceNumber,
42
- f.TotalAmount,
43
- f.AmountDue,
44
- f.Status,
45
- f.DueDate,
46
- f.AddedOn
39
+ var Ee = 56, _ = [
40
+ p.Vendor,
41
+ p.InvoiceNumber,
42
+ p.TotalAmount,
43
+ p.AmountDue,
44
+ p.Status,
45
+ p.DueDate,
46
+ p.AddedOn
47
47
  ];
48
- function _({ rows: _, isLoading: v, isError: y, sorting: De, onSortingChange: Oe, pageSize: ke, onPageSizeChange: Ae, pageSizeOptions: b = Ce, pageInfo: je, hasNextPage: x, hasPrevPage: S, onNextPage: Me, onPrevPage: Ne, filterTabs: C, selectedFilterTabId: w, onFilterTabChange: Pe, searchValue: Fe, onSearchChange: Ie, filters: T, visibleColumns: E = g, keepsColumnOrder: D = !1, isSortable: O = !0, cellTestIds: k, isSearchActive: A, showAddPanelWhenEmpty: Le, emptyState: j, onCreateClick: M, headerActionContainer: N, onRetry: P, onFilesSelected: F, maxFiles: I, onEnterManually: L, uploadStatus: R, uploadErrorMessage: z, emailAddress: B, onCopyEmail: V, labels: H, summaryCards: U, attentionStrip: W, attentionView: G }) {
49
- let K = p(() => ({
50
- ...u,
51
- ...H,
48
+ function v({ rows: v, isLoading: y, isError: b, sorting: De, onSortingChange: Oe, pageSize: ke, onPageSizeChange: Ae, pageSizeOptions: x = Ce, pageInfo: je, hasNextPage: S, hasPrevPage: C, onNextPage: Me, onPrevPage: Ne, filterTabs: w, selectedFilterTabId: T, onFilterTabChange: Pe, searchValue: Fe, onSearchChange: Ie, filters: E, visibleColumns: D = _, keepsColumnOrder: O = !1, isSortable: k = !0, cellTestIds: A, isSearchActive: j, showAddPanelWhenEmpty: Le, emptyState: M, onCreateClick: N, headerActionContainer: P, onRetry: F, onFilesSelected: I, maxFiles: L, onEnterManually: R, uploadStatus: z, uploadErrorMessage: B, emailAddress: V, onCopyEmail: H, labels: U, summaryCards: W, attentionStrip: G, attentionView: K }) {
49
+ let q = m(() => ({
50
+ ...d,
51
+ ...U,
52
52
  statusBadge: {
53
- ...u.statusBadge,
54
- ...H?.statusBadge
53
+ ...d.statusBadge,
54
+ ...U?.statusBadge
55
55
  },
56
56
  addBill: {
57
- ...u.addBill,
58
- ...H?.addBill,
57
+ ...d.addBill,
58
+ ...U?.addBill,
59
59
  dropzone: {
60
- ...u.addBill.dropzone,
61
- ...H?.addBill?.dropzone
60
+ ...d.addBill.dropzone,
61
+ ...U?.addBill?.dropzone
62
62
  }
63
63
  },
64
64
  sortableHeader: {
65
- ...u.sortableHeader,
66
- ...H?.sortableHeader
65
+ ...d.sortableHeader,
66
+ ...U?.sortableHeader
67
67
  },
68
68
  emptyValue: {
69
- ...u.emptyValue,
70
- ...H?.emptyValue
69
+ ...d.emptyValue,
70
+ ...U?.emptyValue
71
71
  }
72
- }), [H]), q = _.some((e) => e.menu?.items.length), [Re, J] = _e(!1), Y = !!F, X = (e) => Array.from(e.dataTransfer.types).includes("Files"), ze = (e) => {
73
- Y && X(e) && (e.preventDefault(), J(!0));
74
- }, Be = (e) => {
75
- Y && X(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", J(!0));
72
+ }), [U]), J = v.some((e) => e.menu?.items.length), [Re, Y] = ge(!1), X = !!I, ze = (e) => Array.from(e.dataTransfer.types).includes("Files"), Be = (e) => {
73
+ X && ze(e) && (e.preventDefault(), Y(!0));
76
74
  }, Ve = (e) => {
77
- !e.currentTarget.contains(e.relatedTarget) && Y && J(!1);
75
+ X && ze(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Y(!0));
78
76
  }, He = (e) => {
79
- if (!Y) return;
80
- e.preventDefault(), J(!1);
81
- let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = fe(t, d, I !== 1);
82
- n.length && F?.(n);
83
- }, Z = p(() => {
84
- let e = (e) => O ? function({ column: t }) {
85
- return /* @__PURE__ */ m(r, {
77
+ !e.currentTarget.contains(e.relatedTarget) && X && Y(!1);
78
+ }, Ue = (e) => {
79
+ if (!X) return;
80
+ e.preventDefault(), Y(!1);
81
+ let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = de(t, f, L !== 1);
82
+ n.length && I?.(n);
83
+ }, Z = m(() => {
84
+ let e = (e) => k ? function({ column: t }) {
85
+ return /* @__PURE__ */ h(r, {
86
86
  column: t,
87
87
  title: e,
88
- labels: K.sortableHeader
88
+ labels: q.sortableHeader
89
89
  });
90
- } : e, t = /* @__PURE__ */ m(c, { labels: K.emptyValue }), n = (e, n) => function({ row: r }) {
91
- return /* @__PURE__ */ m("span", {
90
+ } : e, t = /* @__PURE__ */ h(c, { labels: q.emptyValue }), n = (e, n) => function({ row: r }) {
91
+ return /* @__PURE__ */ h("span", {
92
92
  className: "ttw:whitespace-nowrap",
93
- "data-testid": k?.[n],
93
+ "data-testid": A?.[n],
94
94
  children: r.original[e] || t
95
95
  });
96
96
  }, i = function({ row: e }) {
97
- return /* @__PURE__ */ m("span", {
97
+ return /* @__PURE__ */ h("span", {
98
98
  className: "ttw:whitespace-nowrap",
99
- "data-testid": k?.[f.DueDate],
100
- children: /* @__PURE__ */ m(se, {
99
+ "data-testid": A?.[p.DueDate],
100
+ children: /* @__PURE__ */ h(oe, {
101
101
  label: e.original.dueDateLabel || t,
102
102
  overdueLabel: e.original.dueDateOverdueLabel,
103
103
  accessibleLabel: e.original.dueDateAccessibleLabel
104
104
  })
105
105
  });
106
106
  }, a = (e, n) => function({ row: r }) {
107
- return /* @__PURE__ */ m("div", {
108
- className: "ttw:text-right ttw:whitespace-nowrap",
109
- "data-testid": k?.[n],
107
+ return /* @__PURE__ */ h("div", {
108
+ className: "ttw:text-right ttw:whitespace-nowrap ttw:tabular-nums",
109
+ "data-testid": A?.[n],
110
110
  children: r.original[e] || t
111
111
  });
112
112
  }, o = (e) => function() {
113
- return /* @__PURE__ */ m("div", {
113
+ return /* @__PURE__ */ h("div", {
114
114
  className: "ttw:text-right",
115
115
  children: e
116
116
  });
117
117
  };
118
118
  return {
119
- [f.Vendor]: {
119
+ [p.Vendor]: {
120
120
  accessorKey: "vendorLabel",
121
- enableSorting: O,
121
+ enableSorting: k,
122
122
  minSize: we,
123
- header: e(K.columnVendor),
124
- cell: ({ row: e }) => !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ m("div", {
125
- "data-testid": k?.[f.Vendor],
126
- children: /* @__PURE__ */ m(ee, {
123
+ header: e(q.columnVendor),
124
+ cell: ({ row: e }) => !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ h("div", {
125
+ "data-testid": A?.[p.Vendor],
126
+ children: /* @__PURE__ */ h(ee, {
127
127
  className: "ttw:h-4 ttw:w-32",
128
128
  "aria-hidden": !0
129
129
  })
130
- }) : /* @__PURE__ */ m("span", {
130
+ }) : /* @__PURE__ */ h("span", {
131
131
  className: "ttw:whitespace-nowrap",
132
- "data-testid": k?.[f.Vendor],
133
- children: e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ m(c, { labels: { notEntered: K.vendorUnavailable } }) : t)
132
+ "data-testid": A?.[p.Vendor],
133
+ children: e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ h(c, { labels: { notEntered: q.vendorUnavailable } }) : t)
134
134
  })
135
135
  },
136
- [f.InvoiceNumber]: {
136
+ [p.InvoiceNumber]: {
137
137
  accessorKey: "invoiceNumberLabel",
138
138
  enableSorting: !1,
139
- header: () => K.columnInvoiceNumber,
140
- cell: ({ row: e }) => /* @__PURE__ */ h("span", {
139
+ header: () => q.columnInvoiceNumber,
140
+ cell: ({ row: e }) => /* @__PURE__ */ g("span", {
141
141
  className: "ttw:inline-flex ttw:items-center ttw:gap-1.5 ttw:whitespace-nowrap",
142
- "data-testid": k?.[f.InvoiceNumber],
143
- children: [e.original.invoiceNumberLabel || t, e.original.duplicateFlag ? /* @__PURE__ */ m(oe, {
142
+ "data-testid": A?.[p.InvoiceNumber],
143
+ children: [e.original.invoiceNumberLabel || t, e.original.duplicateFlag ? /* @__PURE__ */ h(l, {
144
144
  icon: be,
145
145
  tone: "warning",
146
146
  label: e.original.duplicateFlag.label
147
147
  }) : null]
148
148
  })
149
149
  },
150
- [f.TotalAmount]: {
150
+ [p.TotalAmount]: {
151
151
  accessorKey: "totalAmountLabel",
152
152
  enableSorting: !1,
153
- header: o(K.columnTotalAmount),
154
- cell: a("totalAmountLabel", f.TotalAmount)
153
+ header: o(q.columnTotalAmount),
154
+ cell: a("totalAmountLabel", p.TotalAmount)
155
155
  },
156
- [f.AmountDue]: {
156
+ [p.AmountDue]: {
157
157
  accessorKey: "amountDueLabel",
158
158
  enableSorting: !1,
159
- header: o(K.columnAmountDue),
160
- cell: a("amountDueLabel", f.AmountDue)
159
+ header: o(q.columnAmountDue),
160
+ cell: a("amountDueLabel", p.AmountDue)
161
161
  },
162
- [f.Status]: {
162
+ [p.Status]: {
163
163
  accessorKey: "status",
164
164
  enableSorting: !1,
165
- header: K.columnStatus,
165
+ header: q.columnStatus,
166
166
  cell: ({ row: e }) => {
167
- let t = /* @__PURE__ */ m(he, {
167
+ let t = /* @__PURE__ */ h(me, {
168
168
  status: e.original.status,
169
169
  tone: e.original.statusTone,
170
- labels: K.statusBadge
170
+ labels: q.statusBadge
171
171
  }), n = e.original.statusHint;
172
- return /* @__PURE__ */ m("div", {
173
- className: "ttw:flex ttw:items-center ttw:gap-1",
174
- "data-testid": k?.[f.Status],
175
- children: n ? /* @__PURE__ */ m(ae, {
172
+ return /* @__PURE__ */ g("div", {
173
+ className: "ttw:flex ttw:items-center ttw:gap-1.5",
174
+ "data-testid": A?.[p.Status],
175
+ children: [n ? /* @__PURE__ */ h(ae, {
176
176
  hint: n.label,
177
177
  accessibleLabel: n.accessibleLabel,
178
178
  children: t
179
- }) : t
179
+ }) : t, e.original.failedPayment ? /* @__PURE__ */ h(l, {
180
+ icon: ye,
181
+ tone: "destructive",
182
+ label: e.original.failedPayment.label
183
+ }) : null]
180
184
  });
181
185
  }
182
186
  },
183
- [f.DueDate]: {
187
+ [p.DueDate]: {
184
188
  accessorKey: "dueDateLabel",
185
- enableSorting: O,
186
- header: e(K.columnDueDate),
189
+ enableSorting: k,
190
+ header: e(q.columnDueDate),
187
191
  cell: i
188
192
  },
189
- [f.AddedOn]: {
193
+ [p.FailedReason]: {
194
+ accessorKey: "failedReasonLabel",
195
+ enableSorting: !1,
196
+ header: q.columnFailedReason,
197
+ cell: ({ row: e }) => /* @__PURE__ */ h("span", {
198
+ className: "ttw:block ttw:max-w-50 ttw:truncate ttw:text-destructive",
199
+ title: e.original.failedReasonLabel || void 0,
200
+ "data-testid": A?.[p.FailedReason],
201
+ children: e.original.failedReasonLabel || t
202
+ })
203
+ },
204
+ [p.PaymentAmount]: {
205
+ accessorKey: "paymentAmountLabel",
206
+ enableSorting: !1,
207
+ header: o(q.columnPaymentAmount),
208
+ cell: a("paymentAmountLabel", p.PaymentAmount)
209
+ },
210
+ [p.AddedOn]: {
190
211
  accessorKey: "addedOnLabel",
191
- enableSorting: O,
192
- header: e(K.columnAddedOn),
193
- cell: n("addedOnLabel", f.AddedOn)
212
+ enableSorting: k,
213
+ header: e(q.columnAddedOn),
214
+ cell: n("addedOnLabel", p.AddedOn)
194
215
  }
195
216
  };
196
217
  }, [
197
- K,
198
- k,
199
- O
200
- ]), Ue = p(() => [...(D ? E : g.filter((e) => E.includes(e))).map((e) => Z[e]), ...q ? [{
218
+ q,
219
+ A,
220
+ k
221
+ ]), We = m(() => [...(O ? D : _.filter((e) => D.includes(e))).map((e) => Z[e]), ...J ? [{
201
222
  id: "actions",
202
223
  enableSorting: !1,
203
224
  size: Ee,
204
- header: () => /* @__PURE__ */ m("span", {
225
+ header: () => /* @__PURE__ */ h("span", {
205
226
  className: "ttw:sr-only",
206
- children: K.columnActions
227
+ children: q.columnActions
207
228
  }),
208
- cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ m("div", {
229
+ cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ h("div", {
209
230
  className: "ttw:flex ttw:justify-end",
210
- children: /* @__PURE__ */ m(de, {
231
+ children: /* @__PURE__ */ h(ue, {
211
232
  actions: e.original.menu.items.map((e) => ({
212
233
  ...e,
213
234
  variant: "ghost"
@@ -218,173 +239,173 @@ function _({ rows: _, isLoading: v, isError: y, sorting: De, onSortingChange: Oe
218
239
  }) : null
219
240
  }] : []], [
220
241
  Z,
242
+ J,
243
+ O,
221
244
  q,
222
- D,
223
- K,
224
- E
225
- ]), Q = !!(M && F) && !v && !y && !A && _.length === 0 && Le === !0, $ = M ? /* @__PURE__ */ m(e, {
226
- onClick: M,
227
- children: K.createButton
228
- }) : null, We = /* @__PURE__ */ h("div", {
245
+ D
246
+ ]), Ge = !!(N && I) && !y && !b && !j && v.length === 0 && Le === !0, Q = N ? /* @__PURE__ */ h(e, {
247
+ onClick: N,
248
+ children: q.createButton
249
+ }) : null, Ke = /* @__PURE__ */ g("div", {
229
250
  className: "ttw:relative ttw:w-80",
230
- children: [/* @__PURE__ */ m(xe, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ m(i, {
251
+ children: [/* @__PURE__ */ h(xe, { className: "ttw:pointer-events-none ttw:absolute ttw:left-3 ttw:top-1/2 ttw:size-4 ttw:-translate-y-1/2 ttw:text-muted-foreground" }), /* @__PURE__ */ h(i, {
231
252
  className: "ttw:pl-9",
232
253
  type: "search",
233
- "aria-label": K.searchLabel,
234
- placeholder: K.searchPlaceholder,
254
+ "aria-label": q.searchLabel,
255
+ placeholder: q.searchPlaceholder,
235
256
  value: Fe,
236
257
  onChange: (e) => Ie(e.target.value)
237
258
  })]
238
- }), Ge = /* @__PURE__ */ m(ne, {
259
+ }), qe = /* @__PURE__ */ h(ne, {
239
260
  variant: "pills",
240
- "aria-label": K.filterTabsLabel,
241
- children: C.map((e) => /* @__PURE__ */ h(ge, { children: [e.startsGroup ? /* @__PURE__ */ m(a, {
261
+ "aria-label": q.filterTabsLabel,
262
+ children: w.map((e) => /* @__PURE__ */ g(he, { children: [e.startsGroup ? /* @__PURE__ */ h(a, {
242
263
  orientation: "vertical",
243
264
  className: "ttw:mx-1 ttw:data-[orientation=vertical]:h-4"
244
- }) : null, /* @__PURE__ */ m(re, {
265
+ }) : null, /* @__PURE__ */ h(re, {
245
266
  value: e.id,
246
267
  count: e.badge,
247
268
  countTone: e.tone,
248
269
  className: "ttw:min-w-28",
249
- children: /* @__PURE__ */ m("span", {
270
+ children: /* @__PURE__ */ h("span", {
250
271
  className: e.tone === "warning" ? "ttw:text-warning-foreground" : void 0,
251
272
  children: e.label
252
273
  })
253
274
  })] }, e.id))
254
- }), Ke = G ? /* @__PURE__ */ m(le, { ...G }) : Ge, qe = T ? /* @__PURE__ */ m(me, {
255
- ...T,
275
+ }), Je = K ? /* @__PURE__ */ h(ce, { ...K }) : qe, Ye = E ? /* @__PURE__ */ h(pe, {
276
+ ...E,
256
277
  className: "ttw:px-4",
257
- leadingSlot: Ke,
258
- searchSlot: We
259
- }) : /* @__PURE__ */ h("div", {
278
+ leadingSlot: Je,
279
+ searchSlot: Ke
280
+ }) : /* @__PURE__ */ g("div", {
260
281
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
261
- children: [Ke, /* @__PURE__ */ m("div", {
282
+ children: [Je, /* @__PURE__ */ h("div", {
262
283
  className: "ttw:ml-auto",
263
- children: We
284
+ children: Ke
264
285
  })]
265
- }), Je = !y && !Q, Ye = y ? /* @__PURE__ */ m(ie, {
266
- title: K.errorTitle,
267
- description: K.errorDescription,
268
- retryLabel: P ? K.errorRetry : void 0,
269
- onRetry: P
270
- }) : Q && M && F ? /* @__PURE__ */ m("div", {
286
+ }), Xe = !b && !Ge, $ = b ? /* @__PURE__ */ h(ie, {
287
+ title: q.errorTitle,
288
+ description: q.errorDescription,
289
+ retryLabel: F ? q.errorRetry : void 0,
290
+ onRetry: F
291
+ }) : Ge && N && I ? /* @__PURE__ */ h("div", {
271
292
  className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
272
- children: B && V ? /* @__PURE__ */ m(l, {
273
- emailAddress: B,
274
- onCopyEmail: V,
275
- onFilesSelected: F,
276
- accept: d,
277
- maxFiles: I,
278
- uploadStatus: R,
279
- uploadErrorMessage: z,
280
- onEnterManually: L ?? M,
281
- labels: K.addBill
282
- }) : /* @__PURE__ */ m(l, {
283
- onFilesSelected: F,
284
- accept: d,
285
- maxFiles: I,
286
- uploadStatus: R,
287
- uploadErrorMessage: z,
288
- onEnterManually: L ?? M,
289
- labels: K.addBill
293
+ children: V && H ? /* @__PURE__ */ h(u, {
294
+ emailAddress: V,
295
+ onCopyEmail: H,
296
+ onFilesSelected: I,
297
+ accept: f,
298
+ maxFiles: L,
299
+ uploadStatus: z,
300
+ uploadErrorMessage: B,
301
+ onEnterManually: R ?? N,
302
+ labels: q.addBill
303
+ }) : /* @__PURE__ */ h(u, {
304
+ onFilesSelected: I,
305
+ accept: f,
306
+ maxFiles: L,
307
+ uploadStatus: z,
308
+ uploadErrorMessage: B,
309
+ onEnterManually: R ?? N,
310
+ labels: q.addBill
290
311
  })
291
- }) : /* @__PURE__ */ h("div", {
312
+ }) : /* @__PURE__ */ g("div", {
292
313
  className: "ttw:relative",
293
- onDragEnter: ze,
294
- onDragOver: Be,
295
- onDragLeave: Ve,
296
- onDrop: He,
297
- children: [/* @__PURE__ */ m(n, {
298
- columns: Ue,
299
- data: _,
314
+ onDragEnter: Be,
315
+ onDragOver: Ve,
316
+ onDragLeave: He,
317
+ onDrop: Ue,
318
+ children: [/* @__PURE__ */ h(n, {
319
+ columns: We,
320
+ data: v,
300
321
  getRowId: (e) => e.rowKey,
301
322
  animatesNewRows: !0,
302
- isLoading: v,
323
+ isLoading: y,
303
324
  sorting: De,
304
325
  onSortingChange: Oe,
305
326
  pageSize: ke,
306
327
  onPageSizeChange: Ae,
307
- pageSizeOptions: b,
308
- showPagination: b.length > 1 || x || S,
328
+ pageSizeOptions: x,
329
+ showPagination: x.length > 1 || S || C,
309
330
  pageInfo: je,
310
- hasNextPage: x,
311
- hasPrevPage: S,
331
+ hasNextPage: S,
332
+ hasPrevPage: C,
312
333
  onNextPage: Me,
313
334
  onPrevPage: Ne,
314
335
  onRowClick: (e) => e.onOpen(),
315
- rowAriaLabel: (e) => K.openRow(e.vendorLabel || Te(e.vendorLookup, K)),
336
+ rowAriaLabel: (e) => q.openRow(e.vendorLabel || Te(e.vendorLookup, q)),
316
337
  rowGroup: (e) => e.group ? {
317
338
  key: e.group.key,
318
339
  label: e.group.label,
319
340
  tone: "warning",
320
- icon: /* @__PURE__ */ m(ue, {}),
341
+ icon: /* @__PURE__ */ h(le, {}),
321
342
  title: e.group.title,
322
343
  meta: e.group.meta,
323
344
  collapse: e.group.collapse
324
345
  } : void 0,
325
- rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ m(ye, { children: e.menu.items.map((e) => {
346
+ rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ h(ve, { children: e.menu.items.map((e) => {
326
347
  let n = e.icon;
327
- return /* @__PURE__ */ h(t, {
348
+ return /* @__PURE__ */ g(t, {
328
349
  disabled: e.disabled,
329
350
  onClick: e.onSelect,
330
- children: [n ? /* @__PURE__ */ m(n, { className: "ttw:size-4" }) : null, e.label]
351
+ children: [n ? /* @__PURE__ */ h(n, { className: "ttw:size-4" }) : null, e.label]
331
352
  }, e.id);
332
353
  }) }) : void 0,
333
- filterComponent: qe,
334
- children: A ? /* @__PURE__ */ m(s, {
335
- title: K.filteredEmptyTitle,
336
- description: K.filteredEmptyDescription
337
- }) : j ? /* @__PURE__ */ m(s, {
338
- title: j.title,
339
- description: j.description
354
+ filterComponent: Ye,
355
+ children: j ? /* @__PURE__ */ h(s, {
356
+ title: q.filteredEmptyTitle,
357
+ description: q.filteredEmptyDescription
358
+ }) : M ? /* @__PURE__ */ h(s, {
359
+ title: M.title,
360
+ description: M.description
340
361
  }) : void 0
341
- }), Re ? /* @__PURE__ */ m("div", {
362
+ }), Re ? /* @__PURE__ */ h("div", {
342
363
  className: "ttw:pointer-events-none ttw:absolute ttw:inset-0 ttw:z-20 ttw:flex ttw:items-center ttw:justify-center ttw:rounded-xl ttw:border-2 ttw:border-dashed ttw:border-primary ttw:bg-background/85 ttw:backdrop-blur-[1px]",
343
- children: /* @__PURE__ */ h("div", {
364
+ children: /* @__PURE__ */ g("div", {
344
365
  className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-lg ttw:border ttw:bg-card ttw:px-4 ttw:py-3 ttw:shadow-sm",
345
- children: [/* @__PURE__ */ m(Se, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("p", {
366
+ children: [/* @__PURE__ */ h(Se, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
346
367
  className: "ttw:text-sm ttw:font-medium",
347
- children: K.tableDropzoneTitle
348
- }), /* @__PURE__ */ m("p", {
368
+ children: q.tableDropzoneTitle
369
+ }), /* @__PURE__ */ h("p", {
349
370
  className: "ttw:text-xs ttw:text-muted-foreground",
350
- children: I === void 0 ? K.addBill.dropzone.fileTypesHint : `${K.addBill.dropzone.fileTypesHint} · ${K.addBill.dropzone.fileCountHint(I)}`
371
+ children: L === void 0 ? q.addBill.dropzone.fileTypesHint : `${q.addBill.dropzone.fileTypesHint} · ${q.addBill.dropzone.fileCountHint(L)}`
351
372
  })] })]
352
373
  })
353
374
  }) : null]
354
375
  });
355
- return /* @__PURE__ */ h("div", {
376
+ return /* @__PURE__ */ g("div", {
356
377
  role: "presentation",
357
378
  className: "ttw:flex ttw:flex-col ttw:gap-3",
358
379
  onKeyDown: (e) => {
359
- G && e.key === "Escape" && !e.defaultPrevented && (e.target.closest("[role=\"menu\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"listbox\"], input, textarea, select") || G.onBack());
380
+ K && e.key === "Escape" && !e.defaultPrevented && (e.target.closest("[role=\"menu\"], [role=\"dialog\"], [role=\"alertdialog\"], [role=\"listbox\"], input, textarea, select") || K.onBack());
360
381
  },
361
382
  children: [
362
- U ? /* @__PURE__ */ m(pe, { ...U }) : null,
363
- W ? /* @__PURE__ */ m(ce, { ...W }) : null,
364
- G ? /* @__PURE__ */ h("div", {
383
+ W ? /* @__PURE__ */ h(fe, { ...W }) : null,
384
+ G ? /* @__PURE__ */ h(se, { ...G }) : null,
385
+ K ? /* @__PURE__ */ g("div", {
365
386
  className: "ttw:flex ttw:flex-col ttw:gap-4",
366
- children: [N === void 0 && $ ? /* @__PURE__ */ m("div", {
387
+ children: [P === void 0 && Q ? /* @__PURE__ */ h("div", {
367
388
  className: "ttw:flex ttw:justify-end",
368
- children: $
369
- }) : null, Ye]
370
- }) : /* @__PURE__ */ h(o, {
371
- value: w,
389
+ children: Q
390
+ }) : null, $]
391
+ }) : /* @__PURE__ */ g(o, {
392
+ value: T,
372
393
  onValueChange: Pe,
373
394
  className: "ttw:flex ttw:flex-col ttw:gap-4",
374
395
  children: [
375
- N === void 0 && $ ? /* @__PURE__ */ m("div", {
396
+ P === void 0 && Q ? /* @__PURE__ */ h("div", {
376
397
  className: "ttw:flex ttw:justify-end",
377
- children: $
398
+ children: Q
378
399
  }) : null,
379
- Je ? null : Ge,
380
- C.map((e) => /* @__PURE__ */ m(te, {
400
+ Xe ? null : qe,
401
+ w.map((e) => /* @__PURE__ */ h(te, {
381
402
  value: e.id,
382
- children: e.id === w ? Ye : null
403
+ children: e.id === T ? $ : null
383
404
  }, e.id))
384
405
  ]
385
406
  }),
386
- N && $ ? ve($, N) : null
407
+ P && Q ? _e(Q, P) : null
387
408
  ]
388
409
  });
389
410
  }
390
- export { _ as BillsScreen, _ as default, g as DEFAULT_BILL_COLUMNS };
411
+ export { v as BillsScreen, v as default, _ as DEFAULT_BILL_COLUMNS };
@@ -1,4 +1,4 @@
1
- import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index16.js";
1
+ import { BILL_UPLOAD_DROPZONE_LABELS_EN as e } from "../../../ui/dist/index18.js";
2
2
  import "../../../ui/dist/index.js";
3
3
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js
4
4
  var t = {
@@ -1,5 +1,5 @@
1
1
  import { Button as e, Typography as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BillUploadDropzone as n } from "../../../ui/dist/index17.js";
2
+ import { BillUploadDropzone as n } from "../../../ui/dist/index19.js";
3
3
  import "../../../ui/dist/index.js";
4
4
  import { ADD_BILL_PANEL_LABELS_EN as r } from "./index2.js";
5
5
  import { Fragment as i, jsx as a, jsxs as o } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import { BillQueue as e } from "../../bills-list/feature/dist/index5.js";
2
- import { BillSummaryCard as t } from "../../bills-list/feature/dist/index10.js";
2
+ import { BillSummaryCard as t } from "../../bills-list/feature/dist/index12.js";
3
3
  import { BillPayWidget as n } from "./lib/BillPayWidget/BillPayWidget.js";
4
4
  import "./lib/BillPayWidget/index.js";
5
5
  export { n as BillPayWidget, t as BillSummaryCard, e as BillsView };
@@ -15,8 +15,8 @@ import { useWidgetConfig as o, useWidgetInitStaleForToken as s } from "../../../
15
15
  import "../../../../../shared/feature/dist/index.js";
16
16
  import { BillPayWidgetAnalyticsEvent as c, WIDGET_NAME as l } from "../analytics/events.js";
17
17
  import { BillQueue as u } from "../../../../bills-list/feature/dist/index5.js";
18
- import { BillSummaryCard as d } from "../../../../bills-list/feature/dist/index10.js";
19
- import { BillPayWidgetHeaderUi as f, BillPayWidgetUi as p } from "../../../../ui/dist/index14.js";
18
+ import { BillSummaryCard as d } from "../../../../bills-list/feature/dist/index12.js";
19
+ import { BillPayWidgetHeaderUi as f, BillPayWidgetUi as p } from "../../../../ui/dist/index16.js";
20
20
  import "../../../../ui/dist/index.js";
21
21
  import "../../../../bills-list/feature/dist/index.js";
22
22
  import { BillUploadWidget as m } from "../../../../bill-upload/feature/dist/index8.js";