@tesouro/embedded-components-react 0.5.112 → 0.5.114

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