@tesouro/embedded-components-react 0.5.46 → 0.5.48

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 (58) hide show
  1. package/dist/index.css +56 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/BillPayWidget.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +8 -8
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +3 -3
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +7 -49
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +46 -36
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +34 -184
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +163 -75
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +75 -21
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +22 -93
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +88 -317
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +322 -12
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -64
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +57 -50
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +52 -214
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +215 -35
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +35 -234
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +240 -21
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +21 -532
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +536 -4
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -42
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +38 -230
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +234 -3
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -4
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +2 -44
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +46 -1
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -8
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +6 -11
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +11 -127
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +129 -3
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -127
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +124 -8
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +8 -7
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -47
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +44 -18
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +20 -28
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +27 -82
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +83 -47
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +47 -250
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +241 -122
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +125 -211
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +219 -3
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +4 -7
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +5 -98
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +100 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +0 -26
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +27 -0
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +28 -28
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +12 -8
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -0
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +242 -210
  53. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +4 -4
  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/user/useOrganizationUserNames.js +13 -1
  56. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/auditHistory/buildPayableAuditHistory.js +137 -0
  57. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +1 -1
  58. package/package.json +1 -1
@@ -2,375 +2,407 @@ import { Alert as e, AlertTitle as t, Button as n, DataTable as r, DataTableSort
2
2
  import { EmptyState as d } 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
+ import { getAcceptedBillUploadFiles as ie } from "./index3.js";
6
+ import "./index5.js";
5
7
  import { AddBillPanel as f } from "./index7.js";
6
8
  import "./index8.js";
7
- import { BillStatusBadge as ie } from "./index19.js";
9
+ import { BillStatusBadge as ae } from "./index19.js";
8
10
  import "./index20.js";
9
- import { DueDateValue as ae } from "./index22.js";
11
+ import { DueDateValue as p } from "./index22.js";
10
12
  import "./index23.js";
11
- import { MissingValue as p } from "./index59.js";
13
+ import { MissingValue as m } from "./index59.js";
12
14
  import "./index60.js";
13
15
  import { NoValue as oe } from "./index62.js";
14
16
  import "./index63.js";
15
- import { BILLS_SCREEN_LABELS_EN as m, BILLS_SCREEN_UPLOAD_ACCEPT as h } from "./index64.js";
17
+ import { BILLS_SCREEN_LABELS_EN as h, BILLS_SCREEN_UPLOAD_ACCEPT as g } from "./index64.js";
16
18
  import { BillsFilterBar as se } from "./index79.js";
17
19
  import "./index80.js";
18
- import { BillColumn as g } from "./index81.js";
19
- import { useMemo as _ } from "react";
20
- import { jsx as v, jsxs as y } from "react/jsx-runtime";
21
- import { ChevronRightIcon as b, PaperclipIcon as x, PlusIcon as ce, SearchIcon as le, SettingsIcon as ue } from "lucide-react";
20
+ import { BillColumn as _ } from "./index81.js";
21
+ import { useMemo as v, useState as ce } from "react";
22
+ import { jsx as y, jsxs as b } from "react/jsx-runtime";
23
+ import { ChevronRightIcon as le, PaperclipIcon as ue, PlusIcon as de, SearchIcon as fe, SettingsIcon as pe, UploadIcon as me } from "lucide-react";
22
24
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js
23
- var de = [
25
+ var he = [
24
26
  10,
25
27
  25,
26
28
  50,
27
29
  100
28
- ], fe = 240, pe = {
30
+ ], ge = 240, _e = {
29
31
  default: "",
30
32
  warning: "ttw:bg-amber-50 ttw:hover:bg-amber-100 ttw:border-l-4! ttw:border-l-amber-600!"
31
- }, me = {
33
+ }, ve = {
32
34
  default: "",
33
35
  warning: "ttw:-ml-1 ttw:font-semibold ttw:text-amber-800"
34
- }, S = 40, he = [
35
- g.Vendor,
36
- g.Attachment,
37
- g.IssueDate,
38
- g.DueDate,
39
- g.ScheduledDate,
40
- g.PaidDate,
41
- g.Status,
42
- g.AmountDue,
43
- g.AmountScheduled,
44
- g.AmountPaid,
45
- g.TotalAmount,
46
- g.AddedOn
47
- ], C = [
48
- g.Vendor,
49
- g.Attachment,
50
- g.DueDate,
51
- g.Status,
52
- g.AmountDue,
53
- g.AddedOn
36
+ }, x = 40, ye = [
37
+ _.Vendor,
38
+ _.Attachment,
39
+ _.IssueDate,
40
+ _.DueDate,
41
+ _.ScheduledDate,
42
+ _.PaidDate,
43
+ _.Status,
44
+ _.AmountDue,
45
+ _.AmountScheduled,
46
+ _.AmountPaid,
47
+ _.TotalAmount,
48
+ _.AddedOn
49
+ ], S = [
50
+ _.Vendor,
51
+ _.Attachment,
52
+ _.DueDate,
53
+ _.Status,
54
+ _.AmountDue,
55
+ _.AddedOn
54
56
  ];
55
- function w({ rows: w, isLoading: T, isError: E, sorting: ge, onSortingChange: _e, pageSize: ve, onPageSizeChange: ye, pageSizeOptions: be = de, pageInfo: xe, hasNextPage: D, hasPrevPage: O, onNextPage: k, onPrevPage: A, filterTabs: j, selectedFilterTabId: M, onFilterTabChange: Se, searchValue: Ce, onSearchChange: we, filters: N, visibleColumns: P = C, cellTestIds: F, isSearchActive: I, showAddPanelWhenEmpty: Te, 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: Y, onReviewDuplicates: X }) {
56
- let Z = _(() => ({
57
- ...m,
58
- ...J,
57
+ function C({ rows: C, isLoading: w, isError: T, sorting: be, onSortingChange: xe, pageSize: Se, onPageSizeChange: Ce, pageSizeOptions: we = he, pageInfo: Te, hasNextPage: Ee, hasPrevPage: E, onNextPage: D, onPrevPage: De, filterTabs: O, selectedFilterTabId: k, onFilterTabChange: Oe, searchValue: ke, onSearchChange: Ae, filters: A, visibleColumns: j = S, cellTestIds: M, isSearchActive: N, showAddPanelWhenEmpty: je, emptyState: P, onCreateClick: F, onSettingsClick: I, onRetry: L, onFilesSelected: R, maxFiles: z, onEnterManually: B, uploadStatus: V, uploadErrorMessage: H, emailAddress: U, onCopyEmail: W, labels: G, duplicateWarning: K, onReviewDuplicates: q }) {
58
+ let J = v(() => ({
59
+ ...h,
60
+ ...G,
59
61
  statusBadge: {
60
- ...m.statusBadge,
61
- ...J?.statusBadge
62
+ ...h.statusBadge,
63
+ ...G?.statusBadge
62
64
  },
63
65
  addBill: {
64
- ...m.addBill,
65
- ...J?.addBill,
66
+ ...h.addBill,
67
+ ...G?.addBill,
66
68
  dropzone: {
67
- ...m.addBill.dropzone,
68
- ...J?.addBill?.dropzone
69
+ ...h.addBill.dropzone,
70
+ ...G?.addBill?.dropzone
69
71
  }
70
72
  },
71
73
  sortableHeader: {
72
- ...m.sortableHeader,
73
- ...J?.sortableHeader
74
+ ...h.sortableHeader,
75
+ ...G?.sortableHeader
74
76
  },
75
77
  missingValue: {
76
- ...m.missingValue,
77
- ...J?.missingValue
78
+ ...h.missingValue,
79
+ ...G?.missingValue
78
80
  },
79
81
  noValue: {
80
- ...m.noValue,
81
- ...J?.noValue
82
+ ...h.noValue,
83
+ ...G?.noValue
82
84
  },
83
85
  dueDate: {
84
- ...m.dueDate,
85
- ...J?.dueDate
86
+ ...h.dueDate,
87
+ ...G?.dueDate
86
88
  }
87
- }), [J]), Q = _(() => {
89
+ }), [G]), [Me, Y] = ce(!1), X = !!R, Z = (e) => Array.from(e.dataTransfer.types).includes("Files"), Ne = (e) => {
90
+ !X || !Z(e) || (e.preventDefault(), Y(!0));
91
+ }, Pe = (e) => {
92
+ !X || !Z(e) || (e.preventDefault(), e.dataTransfer.dropEffect = "copy", Y(!0));
93
+ }, Fe = (e) => {
94
+ e.currentTarget.contains(e.relatedTarget) || !X || Y(!1);
95
+ }, Ie = (e) => {
96
+ if (!X) return;
97
+ e.preventDefault(), Y(!1);
98
+ let t = e.dataTransfer.files ? Array.from(e.dataTransfer.files) : [], n = ie(t, g, z !== 1).slice(0, z);
99
+ n.length && R?.(n);
100
+ }, Q = v(() => {
88
101
  let e = (e) => function({ column: t }) {
89
- return /* @__PURE__ */ v(i, {
102
+ return /* @__PURE__ */ y(i, {
90
103
  column: t,
91
104
  title: e,
92
- labels: Z.sortableHeader
105
+ labels: J.sortableHeader
93
106
  });
94
- }, t = (e, t, n = /* @__PURE__ */ v(p, { labels: Z.missingValue }), r) => function({ row: i }) {
95
- let a = r && i.original[r] ? /* @__PURE__ */ v(p, { labels: Z.missingValue }) : n;
96
- return /* @__PURE__ */ v("span", {
107
+ }, t = (e, t, n = /* @__PURE__ */ y(m, { labels: J.missingValue }), r) => function({ row: i }) {
108
+ let a = r && i.original[r] ? /* @__PURE__ */ y(m, { labels: J.missingValue }) : n;
109
+ return /* @__PURE__ */ y("span", {
97
110
  className: "ttw:whitespace-nowrap",
98
- "data-testid": F?.[t],
111
+ "data-testid": M?.[t],
99
112
  children: i.original[e] || a
100
113
  });
101
114
  }, n = function({ row: e }) {
102
- return /* @__PURE__ */ v("span", {
115
+ return /* @__PURE__ */ y("span", {
103
116
  className: "ttw:whitespace-nowrap",
104
- "data-testid": F?.[g.DueDate],
105
- children: /* @__PURE__ */ v(ae, {
106
- value: e.original.dueDateLabel || /* @__PURE__ */ v(p, { labels: Z.missingValue }),
117
+ "data-testid": M?.[_.DueDate],
118
+ children: /* @__PURE__ */ y(p, {
119
+ value: e.original.dueDateLabel || /* @__PURE__ */ y(m, { labels: J.missingValue }),
107
120
  tone: e.original.dueDateTone,
108
- labels: Z.dueDate
121
+ labels: J.dueDate
109
122
  })
110
123
  });
111
- }, r = (e, t, n = /* @__PURE__ */ v(p, { labels: Z.missingValue }), r) => function({ row: i }) {
112
- let a = r && i.original[r] ? /* @__PURE__ */ v(p, { labels: Z.missingValue }) : n;
113
- return /* @__PURE__ */ v("div", {
124
+ }, r = (e, t, n = /* @__PURE__ */ y(m, { labels: J.missingValue }), r) => function({ row: i }) {
125
+ let a = r && i.original[r] ? /* @__PURE__ */ y(m, { labels: J.missingValue }) : n;
126
+ return /* @__PURE__ */ y("div", {
114
127
  className: "ttw:text-right ttw:whitespace-nowrap",
115
- "data-testid": F?.[t],
128
+ "data-testid": M?.[t],
116
129
  children: i.original[e] || a
117
130
  });
118
- }, a = /* @__PURE__ */ v(oe, { labels: Z.noValue }), o = (e) => function() {
119
- return /* @__PURE__ */ v("div", {
131
+ }, a = /* @__PURE__ */ y(oe, { labels: J.noValue }), o = (e) => function() {
132
+ return /* @__PURE__ */ y("div", {
120
133
  className: "ttw:text-right",
121
134
  children: e
122
135
  });
123
136
  };
124
137
  return {
125
- [g.Vendor]: {
138
+ [_.Vendor]: {
126
139
  accessorKey: "vendorLabel",
127
140
  enableSorting: !0,
128
- minSize: fe,
129
- header: e(Z.columnVendor),
130
- cell: ({ row: e }) => /* @__PURE__ */ y("span", {
131
- className: me[e.original.rowTone ?? "default"],
132
- "data-testid": F?.[g.Vendor],
133
- children: [e.original.vendorLabel || /* @__PURE__ */ v(p, { labels: Z.missingValue }), e.original.rowNote ? /* @__PURE__ */ v("span", {
141
+ minSize: ge,
142
+ header: e(J.columnVendor),
143
+ cell: ({ row: e }) => /* @__PURE__ */ b("span", {
144
+ className: ve[e.original.rowTone ?? "default"],
145
+ "data-testid": M?.[_.Vendor],
146
+ children: [e.original.vendorLabel || /* @__PURE__ */ y(m, { labels: J.missingValue }), e.original.rowNote ? /* @__PURE__ */ y("span", {
134
147
  className: "ttw:sr-only",
135
148
  children: ` ${e.original.rowNote}`
136
149
  }) : null]
137
150
  })
138
151
  },
139
- [g.Attachment]: {
152
+ [_.Attachment]: {
140
153
  accessorKey: "attachment",
141
154
  enableSorting: !1,
142
- size: S,
143
- minSize: S,
144
- header: () => /* @__PURE__ */ v("span", {
155
+ size: x,
156
+ minSize: x,
157
+ header: () => /* @__PURE__ */ y("span", {
145
158
  className: "ttw:sr-only",
146
- children: Z.columnAttachment
159
+ children: J.columnAttachment
147
160
  }),
148
- cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ v("div", {
161
+ cell: ({ row: e }) => e.original.attachment ? /* @__PURE__ */ y("div", {
149
162
  className: "ttw:flex ttw:justify-center",
150
- "data-testid": F?.[g.Attachment],
151
- children: /* @__PURE__ */ v(l, { children: /* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(u, {
163
+ "data-testid": M?.[_.Attachment],
164
+ children: /* @__PURE__ */ y(l, { children: /* @__PURE__ */ b(s, { children: [/* @__PURE__ */ y(u, {
152
165
  type: "button",
153
166
  className: "ttw:inline-flex ttw:cursor-default",
154
167
  "aria-label": e.original.attachment.label,
155
168
  onClick: (e) => e.stopPropagation(),
156
- children: /* @__PURE__ */ v(x, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
157
- }), /* @__PURE__ */ v(c, { children: e.original.attachment.label })] }) })
169
+ children: /* @__PURE__ */ y(ue, { className: "ttw:size-3.5 ttw:shrink-0 ttw:text-muted-foreground" })
170
+ }), /* @__PURE__ */ y(c, { children: e.original.attachment.label })] }) })
158
171
  }) : null
159
172
  },
160
- [g.IssueDate]: {
173
+ [_.IssueDate]: {
161
174
  accessorKey: "issueDateLabel",
162
175
  enableSorting: !0,
163
- header: e(Z.columnIssueDate),
164
- cell: t("issueDateLabel", g.IssueDate)
176
+ header: e(J.columnIssueDate),
177
+ cell: t("issueDateLabel", _.IssueDate)
165
178
  },
166
- [g.DueDate]: {
179
+ [_.DueDate]: {
167
180
  accessorKey: "dueDateLabel",
168
181
  enableSorting: !0,
169
- header: e(Z.columnDueDate),
182
+ header: e(J.columnDueDate),
170
183
  cell: n
171
184
  },
172
- [g.ScheduledDate]: {
185
+ [_.ScheduledDate]: {
173
186
  accessorKey: "scheduledDateLabel",
174
187
  enableSorting: !0,
175
- header: e(Z.columnScheduledDate),
176
- cell: t("scheduledDateLabel", g.ScheduledDate, a, "scheduledDateIsGap")
188
+ header: e(J.columnScheduledDate),
189
+ cell: t("scheduledDateLabel", _.ScheduledDate, a, "scheduledDateIsGap")
177
190
  },
178
- [g.PaidDate]: {
191
+ [_.PaidDate]: {
179
192
  accessorKey: "paidDateLabel",
180
193
  enableSorting: !1,
181
- header: Z.columnPaidDate,
182
- cell: t("paidDateLabel", g.PaidDate)
194
+ header: J.columnPaidDate,
195
+ cell: t("paidDateLabel", _.PaidDate)
183
196
  },
184
- [g.Status]: {
197
+ [_.Status]: {
185
198
  accessorKey: "status",
186
199
  enableSorting: !1,
187
- header: Z.columnStatus,
188
- cell: ({ row: e }) => /* @__PURE__ */ v("div", {
200
+ header: J.columnStatus,
201
+ cell: ({ row: e }) => /* @__PURE__ */ y("div", {
189
202
  className: "ttw:flex ttw:items-center ttw:gap-1",
190
- "data-testid": F?.[g.Status],
191
- children: /* @__PURE__ */ v(ie, {
203
+ "data-testid": M?.[_.Status],
204
+ children: /* @__PURE__ */ y(ae, {
192
205
  status: e.original.status,
193
206
  tone: e.original.statusTone,
194
- labels: Z.statusBadge
207
+ labels: J.statusBadge
195
208
  })
196
209
  })
197
210
  },
198
- [g.AmountDue]: {
211
+ [_.AmountDue]: {
199
212
  accessorKey: "amountDueLabel",
200
213
  enableSorting: !1,
201
- header: o(Z.columnAmountDue),
202
- cell: r("amountDueLabel", g.AmountDue)
214
+ header: o(J.columnAmountDue),
215
+ cell: r("amountDueLabel", _.AmountDue)
203
216
  },
204
- [g.AmountScheduled]: {
217
+ [_.AmountScheduled]: {
205
218
  accessorKey: "amountScheduledLabel",
206
219
  enableSorting: !1,
207
- header: o(Z.columnAmountScheduled),
208
- cell: r("amountScheduledLabel", g.AmountScheduled)
220
+ header: o(J.columnAmountScheduled),
221
+ cell: r("amountScheduledLabel", _.AmountScheduled)
209
222
  },
210
- [g.AmountPaid]: {
223
+ [_.AmountPaid]: {
211
224
  accessorKey: "amountPaidLabel",
212
225
  enableSorting: !1,
213
- header: o(Z.columnAmountPaid),
214
- cell: r("amountPaidLabel", g.AmountPaid, a, "amountPaidIsGap")
226
+ header: o(J.columnAmountPaid),
227
+ cell: r("amountPaidLabel", _.AmountPaid, a, "amountPaidIsGap")
215
228
  },
216
- [g.TotalAmount]: {
229
+ [_.TotalAmount]: {
217
230
  accessorKey: "totalAmountLabel",
218
231
  enableSorting: !1,
219
- header: o(Z.columnTotalAmount),
220
- cell: r("totalAmountLabel", g.TotalAmount)
232
+ header: o(J.columnTotalAmount),
233
+ cell: r("totalAmountLabel", _.TotalAmount)
221
234
  },
222
- [g.AddedOn]: {
235
+ [_.AddedOn]: {
223
236
  accessorKey: "addedOnLabel",
224
237
  enableSorting: !0,
225
- header: e(Z.columnAddedOn),
226
- cell: t("addedOnLabel", g.AddedOn)
238
+ header: e(J.columnAddedOn),
239
+ cell: t("addedOnLabel", _.AddedOn)
227
240
  }
228
241
  };
229
- }, [Z, F]), Ee = _(() => [...he.filter((e) => P.includes(e)).map((e) => Q[e]), {
242
+ }, [J, M]), Le = v(() => [...ye.filter((e) => j.includes(e)).map((e) => Q[e]), {
230
243
  id: "actions",
231
244
  enableSorting: !1,
232
- header: () => /* @__PURE__ */ v("span", {
245
+ header: () => /* @__PURE__ */ y("span", {
233
246
  className: "ttw:sr-only",
234
- children: Z.columnActions
247
+ children: J.columnActions
235
248
  }),
236
- cell: ({ row: e }) => /* @__PURE__ */ v("div", {
249
+ cell: ({ row: e }) => /* @__PURE__ */ y("div", {
237
250
  className: "ttw:flex ttw:justify-end",
238
- children: /* @__PURE__ */ v(n, {
251
+ children: /* @__PURE__ */ y(n, {
239
252
  variant: "ghost",
240
253
  size: "icon",
241
- "aria-label": Z.openRow(e.original.vendorLabel || Z.missingValue.missing),
254
+ "aria-label": J.openRow(e.original.vendorLabel || J.missingValue.missing),
242
255
  onClick: (t) => {
243
256
  t.stopPropagation(), e.original.onOpen();
244
257
  },
245
- children: /* @__PURE__ */ v(b, { className: "ttw:size-4" })
258
+ children: /* @__PURE__ */ y(le, { className: "ttw:size-4" })
246
259
  })
247
260
  })
248
261
  }], [
249
262
  Q,
250
- Z,
251
- P
252
- ]), De = !!(R && V) && !T && !E && !I && w.length === 0 && Te === !0, $ = /* @__PURE__ */ y("div", {
263
+ J,
264
+ j
265
+ ]), Re = !!(F && R) && !w && !T && !N && C.length === 0 && je === !0, $ = /* @__PURE__ */ b("div", {
253
266
  className: "ttw:relative ttw:w-80",
254
- children: [/* @__PURE__ */ v(le, { 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(a, {
267
+ children: [/* @__PURE__ */ y(fe, { 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__ */ y(a, {
255
268
  className: "ttw:pl-9",
256
269
  type: "search",
257
- "aria-label": Z.searchLabel,
258
- placeholder: Z.searchPlaceholder,
259
- value: Ce,
260
- onChange: (e) => we(e.target.value)
270
+ "aria-label": J.searchLabel,
271
+ placeholder: J.searchPlaceholder,
272
+ value: ke,
273
+ onChange: (e) => Ae(e.target.value)
261
274
  })]
262
- }), Oe = N ? /* @__PURE__ */ v(se, {
263
- ...N,
275
+ }), ze = A ? /* @__PURE__ */ y(se, {
276
+ ...A,
264
277
  className: "ttw:px-4",
265
278
  searchSlot: $
266
- }) : /* @__PURE__ */ v("div", {
279
+ }) : /* @__PURE__ */ y("div", {
267
280
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2 ttw:px-4",
268
281
  children: $
269
282
  });
270
- return /* @__PURE__ */ y("div", {
283
+ return /* @__PURE__ */ b("div", {
271
284
  className: "ttw:flex ttw:flex-col ttw:gap-3",
272
- children: [Y ? /* @__PURE__ */ y(e, {
285
+ children: [K ? /* @__PURE__ */ b(e, {
273
286
  className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-none ttw:border-0 ttw:border-l-4 ttw:border-l-amber-600 ttw:bg-amber-50 ttw:py-2 ttw:text-amber-700",
274
- children: [/* @__PURE__ */ v(t, {
287
+ children: [/* @__PURE__ */ y(t, {
275
288
  className: "ttw:flex-1 ttw:font-semibold",
276
- children: Y
277
- }), X ? /* @__PURE__ */ v(n, {
289
+ children: K
290
+ }), q ? /* @__PURE__ */ y(n, {
278
291
  type: "button",
279
292
  variant: "outline",
280
293
  className: "ttw:text-foreground",
281
- onClick: X,
282
- children: Z.duplicateBillsReviewButton
294
+ onClick: q,
295
+ children: J.duplicateBillsReviewButton
283
296
  }) : null]
284
- }) : null, /* @__PURE__ */ y(o, {
285
- value: M,
286
- onValueChange: Se,
297
+ }) : null, /* @__PURE__ */ b(o, {
298
+ value: k,
299
+ onValueChange: Oe,
287
300
  className: "ttw:flex ttw:flex-col ttw:gap-4",
288
- children: [/* @__PURE__ */ y("div", {
301
+ children: [/* @__PURE__ */ b("div", {
289
302
  className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3",
290
- children: [/* @__PURE__ */ v(te, {
291
- "aria-label": Z.filterTabsLabel,
292
- children: j.map((e) => /* @__PURE__ */ y(ne, {
303
+ children: [/* @__PURE__ */ y(te, {
304
+ "aria-label": J.filterTabsLabel,
305
+ children: O.map((e) => /* @__PURE__ */ b(ne, {
293
306
  value: e.id,
294
307
  className: "ttw:min-w-28",
295
308
  children: [e.icon, e.label]
296
309
  }, e.id))
297
- }), /* @__PURE__ */ y("div", {
310
+ }), /* @__PURE__ */ b("div", {
298
311
  className: "ttw:flex ttw:items-center ttw:gap-2",
299
- children: [z ? /* @__PURE__ */ v(l, { children: /* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(u, {
312
+ children: [I ? /* @__PURE__ */ y(l, { children: /* @__PURE__ */ b(s, { children: [/* @__PURE__ */ y(u, {
300
313
  asChild: !0,
301
- children: /* @__PURE__ */ v(n, {
314
+ children: /* @__PURE__ */ y(n, {
302
315
  variant: "outline",
303
316
  size: "icon",
304
- "aria-label": Z.settingsButton,
305
- onClick: z,
306
- children: /* @__PURE__ */ v(ue, { className: "ttw:size-4" })
317
+ "aria-label": J.settingsButton,
318
+ onClick: I,
319
+ children: /* @__PURE__ */ y(pe, { className: "ttw:size-4" })
307
320
  })
308
- }), /* @__PURE__ */ v(c, { children: Z.settingsButton })] }) }) : null, R ? /* @__PURE__ */ y(n, {
309
- onClick: R,
310
- children: [/* @__PURE__ */ v(ce, { className: "ttw:size-4" }), Z.createButton]
321
+ }), /* @__PURE__ */ y(c, { children: J.settingsButton })] }) }) : null, F ? /* @__PURE__ */ b(n, {
322
+ onClick: F,
323
+ children: [/* @__PURE__ */ y(de, { className: "ttw:size-4" }), J.createButton]
311
324
  }) : null]
312
325
  })]
313
326
  }), (() => {
314
- let e = E ? /* @__PURE__ */ v(re, {
315
- title: Z.errorTitle,
316
- description: Z.errorDescription,
317
- retryLabel: B ? Z.errorRetry : void 0,
318
- onRetry: B
319
- }) : De && R && V ? /* @__PURE__ */ v("div", {
327
+ let e = T ? /* @__PURE__ */ y(re, {
328
+ title: J.errorTitle,
329
+ description: J.errorDescription,
330
+ retryLabel: L ? J.errorRetry : void 0,
331
+ onRetry: L
332
+ }) : Re && F && R ? /* @__PURE__ */ y("div", {
320
333
  className: "ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card",
321
- children: K && q ? /* @__PURE__ */ v(f, {
322
- emailAddress: K,
323
- onCopyEmail: q,
324
- onFilesSelected: V,
325
- accept: h,
326
- maxFiles: H,
327
- uploadStatus: W,
328
- uploadErrorMessage: G,
329
- onEnterManually: U ?? R,
330
- labels: Z.addBill
331
- }) : /* @__PURE__ */ v(f, {
332
- onFilesSelected: V,
333
- accept: h,
334
- maxFiles: H,
335
- uploadStatus: W,
336
- uploadErrorMessage: G,
337
- onEnterManually: U ?? R,
338
- labels: Z.addBill
334
+ children: U && W ? /* @__PURE__ */ y(f, {
335
+ emailAddress: U,
336
+ onCopyEmail: W,
337
+ onFilesSelected: R,
338
+ accept: g,
339
+ maxFiles: z,
340
+ uploadStatus: V,
341
+ uploadErrorMessage: H,
342
+ onEnterManually: B ?? F,
343
+ labels: J.addBill
344
+ }) : /* @__PURE__ */ y(f, {
345
+ onFilesSelected: R,
346
+ accept: g,
347
+ maxFiles: z,
348
+ uploadStatus: V,
349
+ uploadErrorMessage: H,
350
+ onEnterManually: B ?? F,
351
+ labels: J.addBill
339
352
  })
340
- }) : /* @__PURE__ */ v(r, {
341
- columns: Ee,
342
- data: w,
343
- getRowId: (e) => e.rowKey,
344
- animatesNewRows: !0,
345
- isLoading: T,
346
- sorting: ge,
347
- onSortingChange: _e,
348
- pageSize: ve,
349
- onPageSizeChange: ye,
350
- pageSizeOptions: be,
351
- pageInfo: xe,
352
- hasNextPage: D,
353
- hasPrevPage: O,
354
- onNextPage: k,
355
- onPrevPage: A,
356
- onRowClick: (e) => e.onOpen(),
357
- rowClassName: (e) => pe[e.rowTone ?? "default"],
358
- filterComponent: Oe,
359
- children: I ? /* @__PURE__ */ v(d, {
360
- title: Z.filteredEmptyTitle,
361
- description: Z.filteredEmptyDescription
362
- }) : L ? /* @__PURE__ */ v(d, {
363
- title: L.title,
364
- description: L.description
365
- }) : void 0
353
+ }) : /* @__PURE__ */ b("div", {
354
+ className: "ttw:relative",
355
+ onDragEnter: Ne,
356
+ onDragOver: Pe,
357
+ onDragLeave: Fe,
358
+ onDrop: Ie,
359
+ children: [/* @__PURE__ */ y(r, {
360
+ columns: Le,
361
+ data: C,
362
+ getRowId: (e) => e.rowKey,
363
+ animatesNewRows: !0,
364
+ isLoading: w,
365
+ sorting: be,
366
+ onSortingChange: xe,
367
+ pageSize: Se,
368
+ onPageSizeChange: Ce,
369
+ pageSizeOptions: we,
370
+ pageInfo: Te,
371
+ hasNextPage: Ee,
372
+ hasPrevPage: E,
373
+ onNextPage: D,
374
+ onPrevPage: De,
375
+ onRowClick: (e) => e.onOpen(),
376
+ rowClassName: (e) => _e[e.rowTone ?? "default"],
377
+ filterComponent: ze,
378
+ children: N ? /* @__PURE__ */ y(d, {
379
+ title: J.filteredEmptyTitle,
380
+ description: J.filteredEmptyDescription
381
+ }) : P ? /* @__PURE__ */ y(d, {
382
+ title: P.title,
383
+ description: P.description
384
+ }) : void 0
385
+ }), Me ? /* @__PURE__ */ y("div", {
386
+ 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]",
387
+ children: /* @__PURE__ */ b("div", {
388
+ 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",
389
+ children: [/* @__PURE__ */ y(me, { className: "ttw:size-5 ttw:text-muted-foreground" }), /* @__PURE__ */ b("div", { children: [/* @__PURE__ */ y("p", {
390
+ className: "ttw:text-sm ttw:font-medium",
391
+ children: J.tableDropzoneTitle
392
+ }), /* @__PURE__ */ y("p", {
393
+ className: "ttw:text-xs ttw:text-muted-foreground",
394
+ children: z === void 0 ? J.addBill.dropzone.fileTypesHint : `${J.addBill.dropzone.fileTypesHint} · ${J.addBill.dropzone.fileCountHint(z)}`
395
+ })] })]
396
+ })
397
+ }) : null]
366
398
  });
367
- return j.map((t) => /* @__PURE__ */ v(ee, {
399
+ return O.map((t) => /* @__PURE__ */ y(ee, {
368
400
  value: t.id,
369
- children: t.id === M ? e : null
401
+ children: t.id === k ? e : null
370
402
  }, t.id));
371
403
  })()]
372
404
  })]
373
405
  });
374
406
  }
375
407
  //#endregion
376
- export { w as BillsScreen, w as default, C as DEFAULT_BILL_COLUMNS };
408
+ export { C as BillsScreen, C as default, S as DEFAULT_BILL_COLUMNS };
@@ -14,8 +14,8 @@ import { RefreshingRootWidgetProvider as m } from "./lib/WidgetProvider/Refreshi
14
14
  import { useDisclosuresAcceptanceSurface as h, useOwnWidgetConfig as g, useRefetchWidget as _, useWidgetConfig as v, useWidgetError as y, useWidgetInitStaleForToken as b, useWidgetLoading as x } from "./lib/WidgetProvider/hooks.js";
15
15
  import "./lib/WidgetProvider/index.js";
16
16
  import { getNaicsOptions as S } from "./lib/naicsCodeMap.js";
17
- import "./lib/user/useOrganizationUserNames.js";
18
- import { CardProgram as C } from "./lib/card/cardProgram.js";
19
- import { CARD_STATUS_LABELS_EN as w, CARD_STATUS_TONE as T, CARD_TYPE_LABELS_EN as E } from "./lib/card/cardPresentation.js";
17
+ import { useOrganizationUserNames as C } from "./lib/user/useOrganizationUserNames.js";
18
+ import { CardProgram as w } from "./lib/card/cardProgram.js";
19
+ import { CARD_STATUS_LABELS_EN as T, CARD_STATUS_TONE as E, CARD_TYPE_LABELS_EN as D } from "./lib/card/cardPresentation.js";
20
20
  import "./lib/analytics/index.js";
21
- export { w as CARD_STATUS_LABELS_EN, T as CARD_STATUS_TONE, E as CARD_TYPE_LABELS_EN, C as CardProgram, t as Implementation, m as RefreshingRootWidgetProvider, s as RootWidgetProvider, u as WidgetProvider, d as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, S as getNaicsOptions, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, c as useAnalyticsCaptureException, l as useAnalyticsTrack, h as useDisclosuresAcceptanceSurface, f as useOptionalWidgetToken, g as useOwnWidgetConfig, _ as useRefetchWidget, v as useWidgetConfig, y as useWidgetError, b as useWidgetInitStaleForToken, x as useWidgetLoading, p as useWidgetToken };
21
+ export { T as CARD_STATUS_LABELS_EN, E as CARD_STATUS_TONE, D as CARD_TYPE_LABELS_EN, w as CardProgram, t as Implementation, m as RefreshingRootWidgetProvider, s as RootWidgetProvider, u as WidgetProvider, d as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, S as getNaicsOptions, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, c as useAnalyticsCaptureException, l as useAnalyticsTrack, h as useDisclosuresAcceptanceSurface, f as useOptionalWidgetToken, C as useOrganizationUserNames, g as useOwnWidgetConfig, _ as useRefetchWidget, v as useWidgetConfig, y as useWidgetError, b as useWidgetInitStaleForToken, x as useWidgetLoading, p as useWidgetToken };
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.46", n = "7ed62f1c9c42f46a440e931eb21935bfda9f5e66", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.48", n = "28707329ff4897ede068ba34d07f758cd7a15480", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n