@tesouro/embedded-components-react 0.11.8 → 0.11.10

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