@tesouro/embedded-components-react 0.11.170 → 0.11.175

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 (43) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/dist/lib/ReceivablesWidget.d.ts +6 -0
  3. package/dist/lib/WidgetSuite.d.ts +6 -0
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index26.js +75 -66
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +62 -53
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +44 -38
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +331 -326
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +10 -8
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +190 -187
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +12 -19
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +25 -23
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +4 -7
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +23 -24
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index5.js +5 -5
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +196 -187
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +6 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +20 -17
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +11 -14
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +157 -161
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +4 -8
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +5 -27
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +32 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -29
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/index.js +7 -6
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/util/dist/lib/resolveBillDueDate.js +22 -0
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +116 -98
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +99 -92
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +7 -1
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +15 -24
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +59 -69
  33. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +7 -5
  35. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DateDisclosure/DateDisclosure.js +28 -0
  36. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/DueDateText/DueDateText.js +19 -0
  37. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/index.js +28 -27
  38. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/dueDateDisplay.js +23 -0
  39. package/package.json +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +0 -2
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +0 -6
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +0 -33
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +0 -2
@@ -1,95 +1,91 @@
1
1
  import { Button as e, ContextMenuItem as t, DataTable as n, DataTableSortableHeader as r, Input as i, Separator as a, Skeleton as ee, Tabs as o, TabsContent as s, TabsList as c, TabsTrigger as te, Tooltip as ne, TooltipContent as re, TooltipProvider as ie, TooltipTrigger as ae } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
2
  import { EmptyState as l } from "../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
3
  import { ErrorState as oe } from "../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
+ import { DateDisclosure as se } from "../../../../shared/ui/dist/lib/DateDisclosure/DateDisclosure.js";
5
+ import { DueDateText as ce } from "../../../../shared/ui/dist/lib/DueDateText/DueDateText.js";
4
6
  import "../../../../shared/ui/dist/index.js";
5
- import { BillStatusBadge as se } from "../../../../shared/document-status/ui/dist/index4.js";
7
+ import { BillStatusBadge as le } from "../../../../shared/document-status/ui/dist/index4.js";
6
8
  import "../../../../shared/document-status/ui/dist/index.js";
7
- import { BillDuplicateIcon as u } from "../../../ui/dist/index6.js";
8
- import { BillDuplicateWarning as ce } from "../../../ui/dist/index8.js";
9
- import { BillOverflowMenu as le } from "../../../ui/dist/index11.js";
10
- import { getAcceptedBillUploadFiles as ue } from "../../../ui/dist/index17.js";
11
- import { DateDisclosure as de } from "../../../ui/dist/index20.js";
12
- import { DueDateValue as fe } from "../../../ui/dist/index22.js";
9
+ import { BillDuplicateIcon as ue } from "../../../ui/dist/index6.js";
10
+ import { BillDuplicateWarning as de } from "../../../ui/dist/index8.js";
11
+ import { BillOverflowMenu as fe } from "../../../ui/dist/index11.js";
12
+ import { getAcceptedBillUploadFiles as pe } from "../../../ui/dist/index17.js";
13
13
  import "../../../ui/dist/index.js";
14
- import { AddBillPanel as d } from "./index3.js";
14
+ import { AddBillPanel as u } from "./index3.js";
15
15
  import "./index4.js";
16
- import { BillsFilterBar as pe } from "./index10.js";
16
+ import { BillsFilterBar as me } from "./index10.js";
17
17
  import "./index11.js";
18
- import { MissingValue as f } from "./index13.js";
18
+ import { MissingValue as d } from "./index13.js";
19
19
  import "./index14.js";
20
- import { NoValue as p } from "./index16.js";
20
+ import { NoValue as f } from "./index16.js";
21
21
  import "./index17.js";
22
- import { BILLS_SCREEN_LABELS_EN as m, BILLS_SCREEN_UPLOAD_ACCEPT as h } from "./index18.js";
23
- import { BillColumn as g } from "./index19.js";
24
- import { Fragment as me, useMemo as _, useState as he } from "react";
25
- import { createPortal as ge } from "react-dom";
26
- import { Fragment as _e, jsx as v, jsxs as y } from "react/jsx-runtime";
27
- import { PaperclipIcon as ve, SearchIcon as ye, UploadIcon as be } from "lucide-react";
22
+ import { BILLS_SCREEN_LABELS_EN as p, BILLS_SCREEN_UPLOAD_ACCEPT as m } from "./index18.js";
23
+ import { BillColumn as h } from "./index19.js";
24
+ import { Fragment as he, useMemo as g, useState as ge } from "react";
25
+ import { createPortal as _e } from "react-dom";
26
+ import { Fragment as ve, jsx as _, jsxs as v } from "react/jsx-runtime";
27
+ import { PaperclipIcon as ye, SearchIcon as be, UploadIcon as xe } from "lucide-react";
28
28
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js
29
- var xe = [
29
+ var Se = [
30
30
  10,
31
31
  25,
32
32
  50,
33
33
  100
34
- ], Se = 240;
35
- function Ce(e, t) {
34
+ ], Ce = 240;
35
+ function we(e, t) {
36
36
  return e === "resolving" ? t.vendorResolving : e === "unavailable" ? t.vendorUnavailable : t.missingValue.missing;
37
37
  }
38
- var b = 40, we = 56, Te = [
39
- g.Vendor,
40
- g.InvoiceNumber,
41
- g.Attachment,
42
- g.IssueDate,
43
- g.DueDate,
44
- g.ScheduledDate,
45
- g.PaidDate,
46
- g.Status,
47
- g.AmountDue,
48
- g.AmountScheduled,
49
- g.AmountPaid,
50
- g.TotalAmount,
51
- g.AddedOn
52
- ], x = [
53
- g.Vendor,
54
- g.Attachment,
55
- g.DueDate,
56
- g.Status,
57
- g.AmountDue,
58
- g.AddedOn
38
+ var y = 40, Te = 56, Ee = [
39
+ h.Vendor,
40
+ h.InvoiceNumber,
41
+ h.Attachment,
42
+ h.IssueDate,
43
+ h.DueDate,
44
+ h.ScheduledDate,
45
+ h.PaidDate,
46
+ h.Status,
47
+ h.AmountDue,
48
+ h.AmountScheduled,
49
+ h.AmountPaid,
50
+ h.TotalAmount,
51
+ h.AddedOn
52
+ ], b = [
53
+ h.Vendor,
54
+ h.Attachment,
55
+ h.DueDate,
56
+ h.Status,
57
+ h.AmountDue,
58
+ h.AddedOn
59
59
  ];
60
- function S({ rows: S, isLoading: Ee, isError: De, sorting: Oe, onSortingChange: ke, pageSize: Ae, onPageSizeChange: je, pageSizeOptions: C = xe, pageInfo: Me, hasNextPage: w, hasPrevPage: T, onNextPage: Ne, onPrevPage: Pe, filterTabs: E, selectedFilterTabId: D, onFilterTabChange: Fe, searchValue: Ie, onSearchChange: Le, filters: O, visibleColumns: k = x, keepsColumnOrder: A = !1, isSortable: j = !0, cellTestIds: M, isSearchActive: N, showAddPanelWhenEmpty: Re, emptyState: P, onCreateClick: F, headerActionContainer: I, onRetry: L, onFilesSelected: R, maxFiles: z, onEnterManually: B, uploadStatus: V, uploadErrorMessage: H, emailAddress: U, onCopyEmail: W, labels: G, duplicateWarning: K, duplicateReviewControl: q }) {
61
- let J = _(() => ({
62
- ...m,
60
+ function x({ rows: x, isLoading: S, isError: De, sorting: Oe, onSortingChange: ke, pageSize: Ae, onPageSizeChange: je, pageSizeOptions: C = Se, pageInfo: Me, hasNextPage: w, hasPrevPage: T, onNextPage: Ne, onPrevPage: Pe, filterTabs: E, selectedFilterTabId: D, onFilterTabChange: Fe, searchValue: Ie, onSearchChange: Le, filters: O, visibleColumns: k = b, keepsColumnOrder: A = !1, isSortable: j = !0, cellTestIds: M, isSearchActive: N, showAddPanelWhenEmpty: Re, emptyState: P, onCreateClick: F, headerActionContainer: I, onRetry: L, onFilesSelected: R, maxFiles: z, onEnterManually: B, uploadStatus: V, uploadErrorMessage: H, emailAddress: U, onCopyEmail: W, labels: G, duplicateWarning: K, duplicateReviewControl: q }) {
61
+ let J = g(() => ({
62
+ ...p,
63
63
  ...G,
64
64
  statusBadge: {
65
- ...m.statusBadge,
65
+ ...p.statusBadge,
66
66
  ...G?.statusBadge
67
67
  },
68
68
  addBill: {
69
- ...m.addBill,
69
+ ...p.addBill,
70
70
  ...G?.addBill,
71
71
  dropzone: {
72
- ...m.addBill.dropzone,
72
+ ...p.addBill.dropzone,
73
73
  ...G?.addBill?.dropzone
74
74
  }
75
75
  },
76
76
  sortableHeader: {
77
- ...m.sortableHeader,
77
+ ...p.sortableHeader,
78
78
  ...G?.sortableHeader
79
79
  },
80
80
  missingValue: {
81
- ...m.missingValue,
81
+ ...p.missingValue,
82
82
  ...G?.missingValue
83
83
  },
84
84
  noValue: {
85
- ...m.noValue,
85
+ ...p.noValue,
86
86
  ...G?.noValue
87
- },
88
- dueDate: {
89
- ...m.dueDate,
90
- ...G?.dueDate
91
87
  }
92
- }), [G]), Y = S.some((e) => e.menu?.items.length), [ze, X] = he(!1), Z = !!R, Be = (e) => Array.from(e.dataTransfer.types).includes("Files"), Ve = (e) => {
88
+ }), [G]), Y = x.some((e) => e.menu?.items.length), [ze, X] = ge(!1), Z = !!R, Be = (e) => Array.from(e.dataTransfer.types).includes("Files"), Ve = (e) => {
93
89
  Z && Be(e) && (e.preventDefault(), X(!0));
94
90
  }, He = (e) => {
95
91
  Z && Be(e) && (e.preventDefault(), e.dataTransfer.dropEffect = "copy", X(!0));
@@ -98,195 +94,195 @@ function S({ rows: S, isLoading: Ee, isError: De, sorting: Oe, onSortingChange:
98
94
  }, We = (e) => {
99
95
  if (!Z) return;
100
96
  e.preventDefault(), X(!1);
101
- let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = ue(t, h, z !== 1);
97
+ let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = pe(t, m, z !== 1);
102
98
  n.length && R?.(n);
103
- }, Ge = _(() => {
99
+ }, Ge = g(() => {
104
100
  let e = (e) => j ? function({ column: t }) {
105
- return /* @__PURE__ */ v(r, {
101
+ return /* @__PURE__ */ _(r, {
106
102
  column: t,
107
103
  title: e,
108
104
  labels: J.sortableHeader
109
105
  });
110
- } : e, t = (e, t, n = /* @__PURE__ */ v(f, { labels: J.missingValue }), r) => function({ row: i }) {
111
- let a = r && i.original[r] ? /* @__PURE__ */ v(f, { labels: J.missingValue }) : n;
112
- return /* @__PURE__ */ v("span", {
106
+ } : e, t = (e, t, n = /* @__PURE__ */ _(d, { labels: J.missingValue }), r) => function({ row: i }) {
107
+ let a = r && i.original[r] ? /* @__PURE__ */ _(d, { labels: J.missingValue }) : n;
108
+ return /* @__PURE__ */ _("span", {
113
109
  className: "ttw:whitespace-nowrap",
114
110
  "data-testid": M?.[t],
115
111
  children: i.original[e] || a
116
112
  });
117
- }, n = t("invoiceNumberLabel", g.InvoiceNumber), i = function({ row: e }) {
118
- return /* @__PURE__ */ v("span", {
113
+ }, n = t("invoiceNumberLabel", h.InvoiceNumber), i = function({ row: e }) {
114
+ return /* @__PURE__ */ _("span", {
119
115
  className: "ttw:whitespace-nowrap",
120
- "data-testid": M?.[g.DueDate],
121
- children: /* @__PURE__ */ v(fe, {
122
- value: e.original.dueDateLabel || /* @__PURE__ */ v(f, { labels: J.missingValue }),
123
- tone: e.original.dueDateTone,
124
- labels: J.dueDate
116
+ "data-testid": M?.[h.DueDate],
117
+ children: /* @__PURE__ */ _(ce, {
118
+ label: e.original.dueDateLabel || /* @__PURE__ */ _(d, { labels: J.missingValue }),
119
+ overdueLabel: e.original.dueDateOverdueLabel,
120
+ accessibleLabel: e.original.dueDateAccessibleLabel
125
121
  })
126
122
  });
127
- }, a = (e, t, n = /* @__PURE__ */ v(f, { labels: J.missingValue }), r) => function({ row: i }) {
128
- let a = r && i.original[r] ? /* @__PURE__ */ v(f, { labels: J.missingValue }) : n;
129
- return /* @__PURE__ */ v("div", {
123
+ }, a = (e, t, n = /* @__PURE__ */ _(d, { labels: J.missingValue }), r) => function({ row: i }) {
124
+ let a = r && i.original[r] ? /* @__PURE__ */ _(d, { labels: J.missingValue }) : n;
125
+ return /* @__PURE__ */ _("div", {
130
126
  className: "ttw:text-right ttw:whitespace-nowrap",
131
127
  "data-testid": M?.[t],
132
128
  children: i.original[e] || a
133
129
  });
134
- }, o = /* @__PURE__ */ v(p, { labels: J.noValue });
130
+ }, o = /* @__PURE__ */ _(f, { labels: J.noValue });
135
131
  function s({ row: e }) {
136
- let t = e.original.scheduledDateIsGap ? /* @__PURE__ */ v(f, { labels: J.missingValue }) : o, n = e.original.scheduledDateLabel, r = e.original.scheduledDateExact;
137
- return /* @__PURE__ */ v("span", {
132
+ let t = e.original.scheduledDateIsGap ? /* @__PURE__ */ _(d, { labels: J.missingValue }) : o, n = e.original.scheduledDateLabel, r = e.original.scheduledDateExact;
133
+ return /* @__PURE__ */ _("span", {
138
134
  className: "ttw:whitespace-nowrap",
139
- "data-testid": M?.[g.ScheduledDate],
140
- children: n && r ? /* @__PURE__ */ v(de, {
135
+ "data-testid": M?.[h.ScheduledDate],
136
+ children: n && r ? /* @__PURE__ */ _(se, {
141
137
  date: r,
142
138
  children: n
143
139
  }) : n || t
144
140
  });
145
141
  }
146
142
  let c = (e) => function() {
147
- return /* @__PURE__ */ v("div", {
143
+ return /* @__PURE__ */ _("div", {
148
144
  className: "ttw:text-right",
149
145
  children: e
150
146
  });
151
147
  };
152
148
  return {
153
- [g.Vendor]: {
149
+ [h.Vendor]: {
154
150
  accessorKey: "vendorLabel",
155
151
  enableSorting: j,
156
- minSize: Se,
152
+ minSize: Ce,
157
153
  header: e(J.columnVendor),
158
154
  cell: ({ row: e }) => {
159
- let t = e.original.rowNote ? /* @__PURE__ */ v("span", {
155
+ let t = e.original.rowNote ? /* @__PURE__ */ _("span", {
160
156
  className: "ttw:sr-only",
161
157
  children: ` ${e.original.rowNote}`
162
158
  }) : null;
163
- return !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ y("div", {
164
- "data-testid": M?.[g.Vendor],
165
- children: [/* @__PURE__ */ v(ee, {
159
+ return !e.original.vendorLabel && e.original.vendorLookup === "resolving" ? /* @__PURE__ */ v("div", {
160
+ "data-testid": M?.[h.Vendor],
161
+ children: [/* @__PURE__ */ _(ee, {
166
162
  className: "ttw:h-4 ttw:w-32",
167
163
  "aria-hidden": !0
168
164
  }), t]
169
- }) : /* @__PURE__ */ y("span", {
165
+ }) : /* @__PURE__ */ v("span", {
170
166
  className: "ttw:inline-flex ttw:items-center ttw:gap-2",
171
- "data-testid": M?.[g.Vendor],
172
- children: [e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ v(p, { labels: { none: J.vendorUnavailable } }) : /* @__PURE__ */ v(f, { labels: J.missingValue })), t]
167
+ "data-testid": M?.[h.Vendor],
168
+ children: [e.original.vendorLabel || (e.original.vendorLookup === "unavailable" ? /* @__PURE__ */ _(f, { labels: { none: J.vendorUnavailable } }) : /* @__PURE__ */ _(d, { labels: J.missingValue })), t]
173
169
  });
174
170
  }
175
171
  },
176
- [g.InvoiceNumber]: {
172
+ [h.InvoiceNumber]: {
177
173
  accessorKey: "invoiceNumberLabel",
178
174
  enableSorting: !1,
179
175
  header: () => J.columnInvoiceNumber,
180
- cell: (e) => e.row.original.marker === "duplicate" ? /* @__PURE__ */ y("span", {
176
+ cell: (e) => e.row.original.marker === "duplicate" ? /* @__PURE__ */ v("span", {
181
177
  className: "ttw:relative",
182
- children: [/* @__PURE__ */ v(u, { className: "ttw:absolute ttw:top-1/2 ttw:right-full ttw:mr-1 ttw:-translate-y-1/2 ttw:text-warning" }), n(e)]
178
+ children: [/* @__PURE__ */ _(ue, { className: "ttw:absolute ttw:top-1/2 ttw:right-full ttw:mr-1 ttw:-translate-y-1/2 ttw:text-warning" }), n(e)]
183
179
  }) : n(e)
184
180
  },
185
- [g.Attachment]: {
181
+ [h.Attachment]: {
186
182
  accessorKey: "attachment",
187
183
  enableSorting: !1,
188
- size: b,
189
- minSize: b,
190
- header: () => /* @__PURE__ */ v("span", {
184
+ size: y,
185
+ minSize: y,
186
+ header: () => /* @__PURE__ */ _("span", {
191
187
  className: "ttw:sr-only",
192
188
  children: J.columnAttachment
193
189
  }),
194
- cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ v("div", {
190
+ cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ _("div", {
195
191
  className: "ttw:flex ttw:justify-center",
196
- "data-testid": M?.[g.Attachment],
197
- children: /* @__PURE__ */ v(ie, { children: /* @__PURE__ */ y(ne, { children: [/* @__PURE__ */ v(ae, {
192
+ "data-testid": M?.[h.Attachment],
193
+ children: /* @__PURE__ */ _(ie, { children: /* @__PURE__ */ v(ne, { children: [/* @__PURE__ */ _(ae, {
198
194
  type: "button",
199
195
  className: "ttw:inline-flex ttw:cursor-default",
200
196
  "aria-label": e.original.attachment.label,
201
197
  onClick: (e) => e.stopPropagation(),
202
- children: /* @__PURE__ */ v(ve, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
203
- }), /* @__PURE__ */ v(re, { children: e.original.attachment.label })] }) })
198
+ children: /* @__PURE__ */ _(ye, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
199
+ }), /* @__PURE__ */ _(re, { children: e.original.attachment.label })] }) })
204
200
  }) : null
205
201
  },
206
- [g.IssueDate]: {
202
+ [h.IssueDate]: {
207
203
  accessorKey: "issueDateLabel",
208
204
  enableSorting: j,
209
205
  header: e(J.columnIssueDate),
210
- cell: t("issueDateLabel", g.IssueDate)
206
+ cell: t("issueDateLabel", h.IssueDate)
211
207
  },
212
- [g.DueDate]: {
208
+ [h.DueDate]: {
213
209
  accessorKey: "dueDateLabel",
214
210
  enableSorting: j,
215
211
  header: e(J.columnDueDate),
216
212
  cell: i
217
213
  },
218
- [g.ScheduledDate]: {
214
+ [h.ScheduledDate]: {
219
215
  accessorKey: "scheduledDateLabel",
220
216
  enableSorting: j,
221
217
  header: e(J.columnScheduledDate),
222
218
  cell: s
223
219
  },
224
- [g.PaidDate]: {
220
+ [h.PaidDate]: {
225
221
  accessorKey: "paidDateLabel",
226
222
  enableSorting: !1,
227
223
  header: J.columnPaidDate,
228
- cell: t("paidDateLabel", g.PaidDate)
224
+ cell: t("paidDateLabel", h.PaidDate)
229
225
  },
230
- [g.Status]: {
226
+ [h.Status]: {
231
227
  accessorKey: "status",
232
228
  enableSorting: !1,
233
229
  header: J.columnStatus,
234
- cell: ({ row: e }) => /* @__PURE__ */ v("div", {
230
+ cell: ({ row: e }) => /* @__PURE__ */ _("div", {
235
231
  className: "ttw:flex ttw:items-center ttw:gap-1",
236
- "data-testid": M?.[g.Status],
237
- children: /* @__PURE__ */ v(se, {
232
+ "data-testid": M?.[h.Status],
233
+ children: /* @__PURE__ */ _(le, {
238
234
  status: e.original.status,
239
235
  tone: e.original.statusTone,
240
236
  labels: J.statusBadge
241
237
  })
242
238
  })
243
239
  },
244
- [g.AmountDue]: {
240
+ [h.AmountDue]: {
245
241
  accessorKey: "amountDueLabel",
246
242
  enableSorting: !1,
247
243
  header: c(J.columnAmountDue),
248
- cell: a("amountDueLabel", g.AmountDue)
244
+ cell: a("amountDueLabel", h.AmountDue)
249
245
  },
250
- [g.AmountScheduled]: {
246
+ [h.AmountScheduled]: {
251
247
  accessorKey: "amountScheduledLabel",
252
248
  enableSorting: !1,
253
249
  header: c(J.columnAmountScheduled),
254
- cell: a("amountScheduledLabel", g.AmountScheduled)
250
+ cell: a("amountScheduledLabel", h.AmountScheduled)
255
251
  },
256
- [g.AmountPaid]: {
252
+ [h.AmountPaid]: {
257
253
  accessorKey: "amountPaidLabel",
258
254
  enableSorting: !1,
259
255
  header: c(J.columnAmountPaid),
260
- cell: a("amountPaidLabel", g.AmountPaid, o, "amountPaidIsGap")
256
+ cell: a("amountPaidLabel", h.AmountPaid, o, "amountPaidIsGap")
261
257
  },
262
- [g.TotalAmount]: {
258
+ [h.TotalAmount]: {
263
259
  accessorKey: "totalAmountLabel",
264
260
  enableSorting: !1,
265
261
  header: c(J.columnTotalAmount),
266
- cell: a("totalAmountLabel", g.TotalAmount)
262
+ cell: a("totalAmountLabel", h.TotalAmount)
267
263
  },
268
- [g.AddedOn]: {
264
+ [h.AddedOn]: {
269
265
  accessorKey: "addedOnLabel",
270
266
  enableSorting: j,
271
267
  header: e(J.columnAddedOn),
272
- cell: t("addedOnLabel", g.AddedOn)
268
+ cell: t("addedOnLabel", h.AddedOn)
273
269
  }
274
270
  };
275
271
  }, [
276
272
  J,
277
273
  M,
278
274
  j
279
- ]), Ke = _(() => [...(A ? k : Te.filter((e) => k.includes(e))).map((e) => Ge[e]), ...Y ? [{
275
+ ]), Ke = g(() => [...(A ? k : Ee.filter((e) => k.includes(e))).map((e) => Ge[e]), ...Y ? [{
280
276
  id: "actions",
281
277
  enableSorting: !1,
282
- size: we,
283
- header: () => /* @__PURE__ */ v("span", {
278
+ size: Te,
279
+ header: () => /* @__PURE__ */ _("span", {
284
280
  className: "ttw:sr-only",
285
281
  children: J.columnActions
286
282
  }),
287
- cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ v("div", {
283
+ cell: ({ row: e }) => e.original.menu?.items.length ? /* @__PURE__ */ _("div", {
288
284
  className: "ttw:flex ttw:justify-end",
289
- children: /* @__PURE__ */ v(le, {
285
+ children: /* @__PURE__ */ _(fe, {
290
286
  actions: e.original.menu.items.map((e) => ({
291
287
  ...e,
292
288
  variant: "ghost"
@@ -301,12 +297,12 @@ function S({ rows: S, isLoading: Ee, isError: De, sorting: Oe, onSortingChange:
301
297
  A,
302
298
  J,
303
299
  k
304
- ]), qe = !!(F && R) && !Ee && !De && !N && S.length === 0 && Re === !0, Q = F ? /* @__PURE__ */ v(e, {
300
+ ]), qe = !!(F && R) && !S && !De && !N && x.length === 0 && Re === !0, Q = F ? /* @__PURE__ */ _(e, {
305
301
  onClick: F,
306
302
  children: J.createButton
307
- }) : null, $ = /* @__PURE__ */ y("div", {
303
+ }) : null, $ = /* @__PURE__ */ v("div", {
308
304
  className: "ttw:relative ttw:w-80",
309
- children: [/* @__PURE__ */ v(ye, { 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__ */ v(i, {
305
+ children: [/* @__PURE__ */ _(be, { 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__ */ _(i, {
310
306
  className: "ttw:pl-9",
311
307
  type: "search",
312
308
  "aria-label": J.searchLabel,
@@ -314,20 +310,20 @@ function S({ rows: S, isLoading: Ee, isError: De, sorting: Oe, onSortingChange:
314
310
  value: Ie,
315
311
  onChange: (e) => Le(e.target.value)
316
312
  })]
317
- }), Je = O ? /* @__PURE__ */ v(pe, {
313
+ }), Je = O ? /* @__PURE__ */ _(me, {
318
314
  ...O,
319
315
  className: "ttw:px-4",
320
316
  searchSlot: $
321
- }) : /* @__PURE__ */ v("div", {
317
+ }) : /* @__PURE__ */ _("div", {
322
318
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
323
319
  children: $
324
320
  });
325
- return /* @__PURE__ */ y("div", {
321
+ return /* @__PURE__ */ v("div", {
326
322
  className: "ttw:flex ttw:flex-col ttw:gap-3",
327
323
  children: [
328
- K ? /* @__PURE__ */ v(ce, {
324
+ K ? /* @__PURE__ */ _(de, {
329
325
  message: K,
330
- children: q ? /* @__PURE__ */ v(e, {
326
+ children: q ? /* @__PURE__ */ _(e, {
331
327
  type: "button",
332
328
  variant: "outline",
333
329
  size: "sm",
@@ -336,68 +332,68 @@ function S({ rows: S, isLoading: Ee, isError: De, sorting: Oe, onSortingChange:
336
332
  children: q.reviewLabel
337
333
  }) : null
338
334
  }) : null,
339
- /* @__PURE__ */ y(o, {
335
+ /* @__PURE__ */ v(o, {
340
336
  value: D,
341
337
  onValueChange: Fe,
342
338
  className: "ttw:flex ttw:flex-col ttw:gap-4",
343
- children: [/* @__PURE__ */ y("div", {
339
+ children: [/* @__PURE__ */ v("div", {
344
340
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
345
- children: [/* @__PURE__ */ v(c, {
341
+ children: [/* @__PURE__ */ _(c, {
346
342
  variant: "pills",
347
343
  "aria-label": J.filterTabsLabel,
348
- children: E.map((e) => /* @__PURE__ */ y(me, { children: [e.startsGroup ? /* @__PURE__ */ v(a, {
344
+ children: E.map((e) => /* @__PURE__ */ v(he, { children: [e.startsGroup ? /* @__PURE__ */ _(a, {
349
345
  orientation: "vertical",
350
346
  className: "ttw:mx-1 ttw:data-[orientation=vertical]:h-4"
351
- }) : null, /* @__PURE__ */ v(te, {
347
+ }) : null, /* @__PURE__ */ _(te, {
352
348
  value: e.id,
353
349
  count: e.badge,
354
350
  countTone: e.tone,
355
351
  className: "ttw:min-w-28",
356
- children: /* @__PURE__ */ v("span", {
352
+ children: /* @__PURE__ */ _("span", {
357
353
  className: e.tone === "warning" ? "ttw:text-warning-foreground" : void 0,
358
354
  children: e.label
359
355
  })
360
356
  })] }, e.id))
361
357
  }), I === void 0 ? Q : null]
362
358
  }), (() => {
363
- let e = De ? /* @__PURE__ */ v(oe, {
359
+ let e = De ? /* @__PURE__ */ _(oe, {
364
360
  title: J.errorTitle,
365
361
  description: J.errorDescription,
366
362
  retryLabel: L ? J.errorRetry : void 0,
367
363
  onRetry: L
368
- }) : qe && F && R ? /* @__PURE__ */ v("div", {
364
+ }) : qe && F && R ? /* @__PURE__ */ _("div", {
369
365
  className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
370
- children: U && W ? /* @__PURE__ */ v(d, {
366
+ children: U && W ? /* @__PURE__ */ _(u, {
371
367
  emailAddress: U,
372
368
  onCopyEmail: W,
373
369
  onFilesSelected: R,
374
- accept: h,
370
+ accept: m,
375
371
  maxFiles: z,
376
372
  uploadStatus: V,
377
373
  uploadErrorMessage: H,
378
374
  onEnterManually: B ?? F,
379
375
  labels: J.addBill
380
- }) : /* @__PURE__ */ v(d, {
376
+ }) : /* @__PURE__ */ _(u, {
381
377
  onFilesSelected: R,
382
- accept: h,
378
+ accept: m,
383
379
  maxFiles: z,
384
380
  uploadStatus: V,
385
381
  uploadErrorMessage: H,
386
382
  onEnterManually: B ?? F,
387
383
  labels: J.addBill
388
384
  })
389
- }) : /* @__PURE__ */ y("div", {
385
+ }) : /* @__PURE__ */ v("div", {
390
386
  className: "ttw:relative",
391
387
  onDragEnter: Ve,
392
388
  onDragOver: He,
393
389
  onDragLeave: Ue,
394
390
  onDrop: We,
395
- children: [/* @__PURE__ */ v(n, {
391
+ children: [/* @__PURE__ */ _(n, {
396
392
  columns: Ke,
397
- data: S,
393
+ data: x,
398
394
  getRowId: (e) => e.rowKey,
399
395
  animatesNewRows: !0,
400
- isLoading: Ee,
396
+ isLoading: S,
401
397
  sorting: Oe,
402
398
  onSortingChange: ke,
403
399
  pageSize: Ae,
@@ -410,54 +406,54 @@ function S({ rows: S, isLoading: Ee, isError: De, sorting: Oe, onSortingChange:
410
406
  onNextPage: Ne,
411
407
  onPrevPage: Pe,
412
408
  onRowClick: (e) => e.onOpen(),
413
- rowAriaLabel: (e) => J.openRow(e.vendorLabel || Ce(e.vendorLookup, J)),
409
+ rowAriaLabel: (e) => J.openRow(e.vendorLabel || we(e.vendorLookup, J)),
414
410
  rowGroup: (e) => e.group ? {
415
411
  key: e.group.key,
416
412
  label: e.group.label,
417
413
  tone: "warning",
418
- icon: /* @__PURE__ */ v(u, {}),
414
+ icon: /* @__PURE__ */ _(ue, {}),
419
415
  title: e.group.title,
420
416
  meta: e.group.meta,
421
417
  collapse: e.group.collapse
422
418
  } : void 0,
423
- rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ v(_e, { children: e.menu.items.map((e) => {
419
+ rowContextMenu: (e) => e.menu?.items.length ? /* @__PURE__ */ _(ve, { children: e.menu.items.map((e) => {
424
420
  let n = e.icon;
425
- return /* @__PURE__ */ y(t, {
421
+ return /* @__PURE__ */ v(t, {
426
422
  disabled: e.disabled,
427
423
  onClick: e.onSelect,
428
- children: [n ? /* @__PURE__ */ v(n, { className: "ttw:size-4" }) : null, e.label]
424
+ children: [n ? /* @__PURE__ */ _(n, { className: "ttw:size-4" }) : null, e.label]
429
425
  }, e.id);
430
426
  }) }) : void 0,
431
427
  filterComponent: Je,
432
- children: N ? /* @__PURE__ */ v(l, {
428
+ children: N ? /* @__PURE__ */ _(l, {
433
429
  title: J.filteredEmptyTitle,
434
430
  description: J.filteredEmptyDescription
435
- }) : P ? /* @__PURE__ */ v(l, {
431
+ }) : P ? /* @__PURE__ */ _(l, {
436
432
  title: P.title,
437
433
  description: P.description
438
434
  }) : void 0
439
- }), ze ? /* @__PURE__ */ v("div", {
435
+ }), ze ? /* @__PURE__ */ _("div", {
440
436
  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]",
441
- children: /* @__PURE__ */ y("div", {
437
+ children: /* @__PURE__ */ v("div", {
442
438
  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",
443
- children: [/* @__PURE__ */ v(be, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
439
+ children: [/* @__PURE__ */ _(xe, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
444
440
  className: "ttw:text-sm ttw:font-medium",
445
441
  children: J.tableDropzoneTitle
446
- }), /* @__PURE__ */ v("p", {
442
+ }), /* @__PURE__ */ _("p", {
447
443
  className: "ttw:text-xs ttw:text-muted-foreground",
448
444
  children: z === void 0 ? J.addBill.dropzone.fileTypesHint : `${J.addBill.dropzone.fileTypesHint} · ${J.addBill.dropzone.fileCountHint(z)}`
449
445
  })] })]
450
446
  })
451
447
  }) : null]
452
448
  });
453
- return E.map((t) => /* @__PURE__ */ v(s, {
449
+ return E.map((t) => /* @__PURE__ */ _(s, {
454
450
  value: t.id,
455
451
  children: t.id === D ? e : null
456
452
  }, t.id));
457
453
  })()]
458
454
  }),
459
- I && Q ? ge(Q, I) : null
455
+ I && Q ? _e(Q, I) : null
460
456
  ]
461
457
  });
462
458
  }
463
- export { S as BillsScreen, S as default, x as DEFAULT_BILL_COLUMNS };
459
+ export { x as BillsScreen, x as default, b as DEFAULT_BILL_COLUMNS };
@@ -1,4 +1,4 @@
1
- import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/index24.js";
1
+ import { REVEALABLE_FIELD_LABELS_EN as e } from "../../../ui/dist/index20.js";
2
2
  import "../../../ui/dist/index.js";
3
3
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js
4
4
  var t = {
@@ -1,5 +1,5 @@
1
1
  import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, cn as s } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RevealableField as c } from "../../../ui/dist/index25.js";
2
+ import { RevealableField as c } from "../../../ui/dist/index21.js";
3
3
  import "../../../ui/dist/index.js";
4
4
  import { REVIEW_TRANSACTION_DIALOG_LABELS_EN as l } from "./index5.js";
5
5
  import { jsx as u, jsxs as d } from "react/jsx-runtime";
@@ -15,11 +15,7 @@ import "./index15.js";
15
15
  import { BILL_UPLOAD_DROPZONE_LABELS_EN as c } from "./index16.js";
16
16
  import { BillUploadDropzone as l, getAcceptedBillUploadFiles as u } from "./index17.js";
17
17
  import "./index19.js";
18
- import { DateDisclosure as d } from "./index20.js";
19
- import { DUE_DATE_VALUE_LABELS_EN as f } from "./index21.js";
20
- import { DueDateValue as p } from "./index22.js";
21
- import "./index23.js";
22
- import { REVEALABLE_FIELD_LABELS_EN as m } from "./index24.js";
23
- import { RevealableField as h } from "./index25.js";
24
- import "./index26.js";
25
- export { c as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, r as BillDuplicateIcon, i as BillDuplicateWarning, o as BillOverflowMenu, s as BillPayWidgetUi, l as BillUploadDropzone, f as DUE_DATE_VALUE_LABELS_EN, d as DateDisclosure, p as DueDateValue, t as NO_BILL_ACTIONS, m as REVEALABLE_FIELD_LABELS_EN, h as RevealableField, u as getAcceptedBillUploadFiles, a as groupBySectionHeading };
18
+ import { REVEALABLE_FIELD_LABELS_EN as d } from "./index20.js";
19
+ import { RevealableField as f } from "./index21.js";
20
+ import "./index22.js";
21
+ export { c as BILL_UPLOAD_DROPZONE_LABELS_EN, e as BillActionButtons, n as BillDecisionDialog, r as BillDuplicateIcon, i as BillDuplicateWarning, o as BillOverflowMenu, s as BillPayWidgetUi, l as BillUploadDropzone, t as NO_BILL_ACTIONS, d as REVEALABLE_FIELD_LABELS_EN, f as RevealableField, u as getAcceptedBillUploadFiles, a as groupBySectionHeading };