@tesouro/embedded-components-react 0.11.4 → 0.11.7

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 (18) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +2 -2
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +17 -14
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +14 -28
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +18 -18
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +186 -180
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +144 -140
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +26 -127
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +130 -7
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +7 -6
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +7 -81
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +80 -16
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index9.js +18 -20
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +3 -3
  17. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  18. package/package.json +1 -1
@@ -23,25 +23,25 @@ import { useApplyDuplicateVerdictsMutation as p } from "../../../data-access/dis
23
23
  import "../../../data-access/dist/index.js";
24
24
  import { BillColumn as m } from "../../ui/dist/index19.js";
25
25
  import "../../ui/dist/index.js";
26
- import { BillQueue as h, DEFAULT_BILL_QUEUE as g, billQueueColumns as _, billQueueHasScheduledPayment as re, billQueueOffersAddPanel as ie, billQueueStatuses as ae, billSortColumnId as oe, billSortField as se } from "./index4.js";
27
- import { duplicateRemovalPrompt as ce } from "./index10.js";
28
- import { useBillsFilters as le } from "./index14.js";
29
- import { BillVendorLookup as ue, useBillVendorNames as de } from "./index15.js";
30
- import { useFirstPayablesPagesQuery as fe } from "../../data-access/dist/index2.js";
31
- import { usePayablesQuery as pe } from "../../data-access/dist/index4.js";
32
- import { usePayablesTotalCountQuery as me } from "../../data-access/dist/index5.js";
26
+ import { BillQueue as h, DEFAULT_BILL_QUEUE as g, billQueueColumns as _, billQueueFilters as re, billQueueOffersAddPanel as ie, billSortColumnId as ae, billSortField as oe } from "./index5.js";
27
+ import { duplicateRemovalPrompt as se } from "./index11.js";
28
+ import { useBillsFilters as ce } from "./index14.js";
29
+ import { BillVendorLookup as v, useBillVendorNames as le } from "./index15.js";
30
+ import { useFirstPayablesPagesQuery as ue } from "../../data-access/dist/index2.js";
31
+ import { usePayablesQuery as de } from "../../data-access/dist/index4.js";
32
+ import { usePayablesTotalCountQuery as fe } from "../../data-access/dist/index5.js";
33
33
  import "../../data-access/dist/index.js";
34
- import { useCallback as v, useEffect as y, useMemo as b, useState as x } from "react";
35
- import { BanIcon as he, FileCheckIcon as ge, Trash2Icon as _e } from "lucide-react";
34
+ import { useCallback as y, useEffect as pe, useMemo as b, useState as x } from "react";
35
+ import { BanIcon as me, FileCheckIcon as he, Trash2Icon as ge } from "lucide-react";
36
36
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js
37
- var ve = 10, S = 100, ye = 3, be = [{
37
+ var _e = 10, S = 100, ve = 3, ye = [{
38
38
  id: "addedOnLabel",
39
39
  desc: !0
40
40
  }], C = {
41
41
  AllBills: "allBills",
42
42
  PossibleDuplicates: "possibleDuplicates"
43
43
  };
44
- function xe(e, t) {
44
+ function be(e, t) {
45
45
  let n = new Map(e.map((e) => [e.id, e])), r = /* @__PURE__ */ new Map(), i = (e) => {
46
46
  r.has(e) || r.set(e, /* @__PURE__ */ new Set());
47
47
  }, a = (e, t) => {
@@ -76,65 +76,71 @@ function xe(e, t) {
76
76
  }
77
77
  return o;
78
78
  }
79
- function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d = !1, filterLabels: ue, onOpenBill: w, duplicateRowNote: we, attachmentLabel: Te, duplicateGroupLabels: T, canManageDuplicates: Ee = !1, duplicateView: E = C.AllBills, scheduledRelativeDayLabels: De }) {
80
- let Oe = i(), [D, ke] = x(g), [Ae, je] = x(be), [O, Me] = x(ve), [Ne, k] = x(), [Pe, A] = x(0), [j, M] = x(""), [N, Fe] = x(""), [P, F] = x(), [I, L] = x(), R = v(() => {
81
- k(void 0), A(0);
79
+ function xe({ enabled: c = !0, canPay: l, canReadVendors: d = !0, isVendorFilterPaused: v = !1, filterLabels: xe, onOpenBill: we, duplicateRowNote: Te, attachmentLabel: Ee, duplicateGroupLabels: w, canManageDuplicates: De = !1, duplicateView: T = C.AllBills, scheduledRelativeDayLabels: Oe }) {
80
+ let ke = i(), [E, Ae] = x(g), [je, Me] = x(ye), [D, Ne] = x(_e), [Pe, O] = x(), [Fe, Ie] = x(l);
81
+ l !== void 0 && Fe !== l && (Ie(l), O(void 0));
82
+ let k = l ?? Fe, [Le, A] = x(0), [j, M] = x(""), [N, Re] = x(""), [P, F] = x(), [I, L] = x(), R = y(() => {
83
+ O(void 0), A(0);
82
84
  }, []);
83
- y(() => {
85
+ pe(() => {
84
86
  if (j === N) return;
85
87
  let e = setTimeout(() => {
86
- Fe(j), R();
88
+ Re(j), R();
87
89
  }, 300);
88
90
  return () => clearTimeout(e);
89
91
  }, [
90
92
  j,
91
93
  N,
92
94
  R
93
- ]), y(() => {
95
+ ]), pe(() => {
94
96
  R();
95
- }, [E, R]);
96
- let z = E === C.PossibleDuplicates, B = le({
97
- offersStatusFilter: D === h.All && !z,
98
- offersVendorFilter: l,
99
- isVendorFilterPaused: d,
100
- labels: ue,
97
+ }, [T, R]);
98
+ let z = T === C.PossibleDuplicates, B = ce({
99
+ offersStatusFilter: E === h.All && !z,
100
+ offersVendorFilter: d,
101
+ isVendorFilterPaused: v,
102
+ labels: xe,
101
103
  onFiltersChange: R
102
- }), { clearAll: Ie, filterByVendor: Le } = B, Re = Ae[0], V = se(Re?.id), ze = V ? Re?.desc ? "desc" : "asc" : void 0, H = z ? h.All : D, U = b(() => ({
103
- ...B.query,
104
- limit: z ? S : O,
105
- pagination_token: z ? void 0 : Ne,
106
- status__in: z ? void 0 : ae(H) ?? B.query.status__in,
107
- has_scheduled_payment: z ? void 0 : re(H),
108
- duplicate_match_status: z ? "suspected" : void 0,
109
- counterpart_name__icontains: N || void 0,
110
- sort: V,
111
- order: ze
112
- }), [
104
+ }), { clearAll: ze, filterByVendor: Be } = B, Ve = je[0], He = oe(Ve?.id), Ue = He ? Ve?.desc ? "desc" : "asc" : void 0, V = z ? h.All : E, We = b(() => {
105
+ let e = re(V, k ?? !1);
106
+ return {
107
+ ...B.query,
108
+ ...e,
109
+ limit: z ? S : D,
110
+ pagination_token: z ? void 0 : Pe,
111
+ status__in: z ? void 0 : e.status__in ?? B.query.status__in,
112
+ duplicate_match_status: z ? "suspected" : void 0,
113
+ counterpart_name__icontains: N || void 0,
114
+ sort: He,
115
+ order: Ue
116
+ };
117
+ }, [
113
118
  B.query,
114
- O,
115
- Ne,
119
+ D,
120
+ Pe,
116
121
  z,
117
- H,
118
- N,
119
122
  V,
120
- ze
121
- ]), { organizationId: Be } = r(), W = JSON.stringify([Be, U]), G = pe({
122
- ...U,
123
- enabled: c && !z,
123
+ k,
124
+ N,
125
+ He,
126
+ Ue
127
+ ]), { organizationId: Ge } = r(), H = JSON.stringify([Ge, We]), U = de({
128
+ ...We,
129
+ enabled: c && l !== void 0 && !z,
124
130
  pollWhileOcrProcessing: !0
125
- }), K = fe({
126
- ...U,
131
+ }), W = ue({
132
+ ...We,
127
133
  enabled: c && z,
128
- maxPages: ye
129
- }), q = z ? {
130
- ...K,
131
- data: { data: K.payables },
132
- isLoading: K.isResolving,
133
- isFetching: K.isFetching || K.isResolving
134
- } : G, J = (q.data?.data ?? []).filter((e) => e.ocr_status !== "processing"), Y = p(), X = v(async (t, n, r, i) => {
134
+ maxPages: ve
135
+ }), G = z ? {
136
+ ...W,
137
+ data: { data: W.payables },
138
+ isLoading: W.isResolving,
139
+ isFetching: W.isFetching || W.isResolving
140
+ } : U, K = (G.data?.data ?? []).filter((e) => e.ocr_status !== "processing"), q = p(), J = y(async (t, n, r, i) => {
135
141
  let a = u(t, n, i);
136
142
  if (a.length) try {
137
- await Y.mutateAsync({
143
+ await q.mutateAsync({
138
144
  verdict: n,
139
145
  targets: a.map((e) => ({
140
146
  payableId: t.id,
@@ -144,61 +150,61 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
144
150
  }))
145
151
  }), e.success(r);
146
152
  } catch {
147
- e.error(T.actionFailedToast);
153
+ e.error(w.actionFailedToast);
148
154
  }
149
- }, [Y, T.actionFailedToast]), Z = b(() => ({
155
+ }, [q, w.actionFailedToast]), Y = b(() => ({
150
156
  delete: {
151
- action: T.deleteAction,
152
- title: T.deleteConfirmTitle,
153
- description: T.deleteConfirmDescription,
154
- confirmButton: T.deleteConfirmButton,
155
- backButton: T.cancelConfirmBackButton,
156
- toast: T.deletedToast
157
+ action: w.deleteAction,
158
+ title: w.deleteConfirmTitle,
159
+ description: w.deleteConfirmDescription,
160
+ confirmButton: w.deleteConfirmButton,
161
+ backButton: w.cancelConfirmBackButton,
162
+ toast: w.deletedToast
157
163
  },
158
164
  cancel: {
159
- action: T.cancelAction,
160
- title: T.cancelConfirmTitle,
161
- description: T.cancelConfirmDescription,
162
- confirmButton: T.cancelConfirmButton,
163
- backButton: T.cancelConfirmBackButton,
164
- toast: T.cancelledToast
165
+ action: w.cancelAction,
166
+ title: w.cancelConfirmTitle,
167
+ description: w.cancelConfirmDescription,
168
+ confirmButton: w.cancelConfirmButton,
169
+ backButton: w.cancelConfirmBackButton,
170
+ toast: w.cancelledToast
165
171
  },
166
172
  confirm: {
167
- action: T.confirmAction,
168
- title: T.confirmDuplicateTitle,
169
- description: T.confirmDuplicateDescription,
170
- confirmButton: T.confirmDuplicateButton,
171
- backButton: T.cancelConfirmBackButton,
172
- toast: T.confirmedToast
173
+ action: w.confirmAction,
174
+ title: w.confirmDuplicateTitle,
175
+ description: w.confirmDuplicateDescription,
176
+ confirmButton: w.confirmDuplicateButton,
177
+ backButton: w.cancelConfirmBackButton,
178
+ toast: w.confirmedToast
173
179
  }
174
- }), [T]), Ve = P?.removeBy ?? "cancel", He = v(async () => {
175
- P && (await X(P.payable, a.Remove, Z[P.removeBy].toast), F(void 0));
180
+ }), [w]), Ke = P?.removeBy ?? "cancel", qe = y(async () => {
181
+ P && (await J(P.payable, a.Remove, Y[P.removeBy].toast), F(void 0));
176
182
  }, [
177
- X,
183
+ J,
178
184
  P,
179
- Z
180
- ]), Ue = v(async () => {
181
- I && (await X(I.payable, a.Keep, T.dismissedToast, I.originalPayableId), L(void 0));
185
+ Y
186
+ ]), Je = y(async () => {
187
+ I && (await J(I.payable, a.Keep, w.dismissedToast, I.originalPayableId), L(void 0));
182
188
  }, [
183
- X,
184
- T.dismissedToast,
185
- I
186
- ]), [We, Ge] = x(W);
187
- y(() => {
188
- q.isFetching || Ge(W);
189
- }, [q.isFetching, W]);
190
- let Ke = q.data?.data.length, qe = Ke === 0, Je = me({ enabled: c && qe }), Ye = !qe || (Je.data?.count ?? 1) > 0, Q = b(() => E === C.PossibleDuplicates ? xe(J, T) : /* @__PURE__ */ new Map(), [
191
- E,
192
189
  J,
193
- T
194
- ]), Xe = b(() => {
195
- if (Q.size === 0) return J;
190
+ w.dismissedToast,
191
+ I
192
+ ]), [Ye, Xe] = x(H);
193
+ pe(() => {
194
+ G.isFetching || Xe(H);
195
+ }, [G.isFetching, H]);
196
+ let Ze = G.data?.data.length, Qe = Ze === 0, $e = fe({ enabled: c && Qe }), et = !Qe || ($e.data?.count ?? 1) > 0, X = b(() => T === C.PossibleDuplicates ? be(K, w) : /* @__PURE__ */ new Map(), [
197
+ T,
198
+ K,
199
+ w
200
+ ]), tt = b(() => {
201
+ if (X.size === 0) return K;
196
202
  let e = /* @__PURE__ */ new Map();
197
- return J.forEach((t, n) => {
198
- let r = Q.get(t.id)?.key;
203
+ return K.forEach((t, n) => {
204
+ let r = X.get(t.id)?.key;
199
205
  r !== void 0 && !e.has(r) && e.set(r, n);
200
- }), J.map((t, n) => {
201
- let r = Q.get(t.id);
206
+ }), K.map((t, n) => {
207
+ let r = X.get(t.id);
202
208
  return {
203
209
  payable: t,
204
210
  index: n,
@@ -206,35 +212,35 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
206
212
  leads: r?.originalPayableId === t.id ? 0 : 1
207
213
  };
208
214
  }).sort((e, t) => e.order - t.order || e.leads - t.leads || e.index - t.index).map(({ payable: e }) => e);
209
- }, [J, Q]), { vendorNames: Ze, lookup: Qe } = de({
210
- payables: q.data?.data,
215
+ }, [K, X]), { vendorNames: nt, lookup: rt } = le({
216
+ payables: G.data?.data,
211
217
  enabled: c,
212
- canReadVendors: l,
213
- isPaused: d
214
- }), $e = b(() => Xe.map((e) => {
218
+ canReadVendors: d,
219
+ isPaused: v
220
+ }), Z = b(() => tt.map((e) => {
215
221
  let r = ne({
216
222
  apiStatus: e.status,
217
223
  dueDate: e.due_date,
218
224
  scheduledPaymentDate: e.scheduled_payment_date
219
- }), i = e.amount_due ?? e.total_amount, a = e.status === "partially_paid" || e.status === "paid", c = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" }), l = o(e.scheduled_payment_date, De, Oe), u = Q.get(e.id), d = s(e), p = te(e) || (e.counterpart_id ? Ze.get(e.counterpart_id) ?? "" : ""), m = e.document_id ?? "", g = f(e.status), _ = u?.originalPayableId !== void 0 && u.originalPayableId === e.id, re = z && d && Ee && u ? {
220
- triggerLabel: T.menuTrigger({
225
+ }), i = e.amount_due ?? e.total_amount, a = e.status === "partially_paid" || e.status === "paid", c = (t) => t == null ? "" : n(t / 100, { currencyCode: e.currency ?? "USD" }), l = o(e.scheduled_payment_date, Oe, ke), u = X.get(e.id), d = s(e), p = te(e) || (e.counterpart_id ? nt.get(e.counterpart_id) ?? "" : ""), m = e.document_id ?? "", g = f(e.status), _ = u?.originalPayableId !== void 0 && u.originalPayableId === e.id, re = z && d && De && u ? {
226
+ triggerLabel: w.menuTrigger({
221
227
  vendorLabel: p,
222
228
  invoiceNumberLabel: m
223
229
  }),
224
230
  items: [{
225
231
  id: "not-duplicate",
226
- label: T.notDuplicateAction,
227
- icon: ge,
228
- disabled: Y.isPending,
232
+ label: w.notDuplicateAction,
233
+ icon: he,
234
+ disabled: q.isPending,
229
235
  onSelect: () => L({
230
236
  payable: e,
231
237
  originalPayableId: _ ? void 0 : u.originalPayableId
232
238
  })
233
239
  }, ...g ? [{
234
240
  id: "cancel-duplicate",
235
- label: Z[g].action,
236
- icon: g === "delete" ? _e : he,
237
- disabled: Y.isPending,
241
+ label: Y[g].action,
242
+ icon: g === "delete" ? ge : me,
243
+ disabled: q.isPending,
238
244
  onSelect: () => F({
239
245
  payable: e,
240
246
  removeBy: g
@@ -244,21 +250,21 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
244
250
  return {
245
251
  rowKey: e.id,
246
252
  vendorLabel: p,
247
- vendorLookup: p || !e.counterpart_id ? void 0 : Ce(Qe),
253
+ vendorLookup: p || !e.counterpart_id ? void 0 : Ce(rt),
248
254
  invoiceNumberLabel: m,
249
255
  issueDateLabel: t(e.issued_at),
250
256
  dueDateLabel: t(e.due_date),
251
257
  dueDateTone: r.isOverdue ? "danger" : "default",
252
258
  scheduledDateLabel: l.label,
253
259
  scheduledDateExact: l.absoluteLabel,
254
- scheduledDateIsGap: H === h.Scheduled,
260
+ scheduledDateIsGap: V === h.Scheduled,
255
261
  paidDateLabel: t(e.paid_at?.slice(0, 10)),
256
262
  amountDueLabel: c(i),
257
263
  amountPaidLabel: a ? c(e.amount_paid) : "",
258
- amountPaidIsGap: H === h.Paid,
264
+ amountPaidIsGap: V === h.Paid,
259
265
  amountScheduledLabel: c(e.amount_to_pay ?? i),
260
266
  totalAmountLabel: c(e.total_amount),
261
- attachment: e.file_id ? { label: Te } : void 0,
267
+ attachment: e.file_id ? { label: Ee } : void 0,
262
268
  status: r.status,
263
269
  statusTone: r.tone,
264
270
  addedOnLabel: t(e.created_at?.slice(0, 10)),
@@ -269,73 +275,73 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
269
275
  },
270
276
  ...u.originalPayableId !== void 0 && !_ ? {
271
277
  isNested: !0,
272
- groupedRowLabel: T.copyRow
278
+ groupedRowLabel: w.copyRow
273
279
  } : {}
274
280
  } : {},
275
281
  ...re ? { menu: re } : {},
276
282
  ...!z && !u && d ? {
277
283
  rowTone: "warning",
278
- rowNote: we
284
+ rowNote: Te
279
285
  } : {},
280
- onOpen: () => w(e.id, ee(e.status))
286
+ onOpen: () => we(e.id, ee(e.status))
281
287
  };
282
288
  }), [
283
- Xe,
284
- Q,
285
- T,
286
- Z,
287
- Y.isPending,
288
- Ee,
289
+ tt,
290
+ X,
291
+ w,
292
+ Y,
293
+ q.isPending,
294
+ De,
289
295
  z,
290
- we,
291
296
  Te,
292
- De,
297
+ Ee,
293
298
  Oe,
294
- w,
295
- H,
296
- Ze,
297
- Qe
298
- ]), et = b(() => z ? Se($e, S) : [], [$e, z]), $ = Math.min(Pe, Math.max(0, et.length - 1)), tt = z ? et[$] ?? [] : $e, nt = v((e) => {
299
+ ke,
300
+ we,
301
+ V,
302
+ nt,
303
+ rt
304
+ ]), it = b(() => z ? Se(Z, S) : [], [Z, z]), Q = Math.min(Le, Math.max(0, it.length - 1)), at = z ? it[Q] ?? [] : Z, $ = y((e) => {
299
305
  let t = e;
300
- ke(t), je((e) => {
306
+ Ae(t), Me((e) => {
301
307
  let n = e[0]?.id;
302
- return n ? _(t).some((e) => oe(e) === n) ? e : be : e;
308
+ return n ? _(t).some((e) => ae(e) === n) ? e : ye : e;
303
309
  }), R();
304
- }, [R]), rt = v((e) => {
305
- nt(h.All), M(""), Le(e);
306
- }, [Le, nt]), it = v(() => {
307
- M(""), Fe(""), Ie(), R();
308
- }, [Ie, R]), at = v((e) => {
309
- je((t) => typeof e == "function" ? e(t) : e), R();
310
- }, [R]), ot = v((e) => {
311
- Me(e), R();
312
- }, [R]), st = v(() => {
313
- z ? A($ + 1) : k(G.data?.next_pagination_token ?? void 0);
310
+ }, [R]), ot = y((e) => {
311
+ $(h.All), M(""), Be(e);
312
+ }, [Be, $]), st = y(() => {
313
+ M(""), Re(""), ze(), R();
314
+ }, [ze, R]), ct = y((e) => {
315
+ Me((t) => typeof e == "function" ? e(t) : e), R();
316
+ }, [R]), lt = y((e) => {
317
+ Ne(e), R();
318
+ }, [R]), ut = y(() => {
319
+ z ? A(Q + 1) : O(U.data?.next_pagination_token ?? void 0);
314
320
  }, [
315
- $,
321
+ Q,
316
322
  z,
317
- G.data?.next_pagination_token
318
- ]), ct = v(() => {
319
- z ? A(Math.max(0, $ - 1)) : k(G.data?.prev_pagination_token ?? void 0);
323
+ U.data?.next_pagination_token
324
+ ]), dt = y(() => {
325
+ z ? A(Math.max(0, Q - 1)) : O(U.data?.prev_pagination_token ?? void 0);
320
326
  }, [
321
- $,
327
+ Q,
322
328
  z,
323
- G.data?.prev_pagination_token
324
- ]), lt = v(() => {
325
- q.refetch();
326
- }, [q.refetch]);
329
+ U.data?.prev_pagination_token
330
+ ]), ft = y(() => {
331
+ G.refetch();
332
+ }, [G.refetch]);
327
333
  return {
328
- rows: tt,
329
- isLoading: q.isLoading || W !== We || qe && Je.isLoading || (Ke ?? 0) > 0 && tt.length === 0,
330
- isError: q.isError,
331
- onRetry: lt,
332
- selectedFilterTabId: D,
333
- onFilterTabChange: nt,
334
- showVendorBills: rt,
335
- clearQueryConstraints: it,
334
+ rows: at,
335
+ isLoading: G.isLoading || !z && k === void 0 || H !== Ye || Qe && $e.isLoading || (Ze ?? 0) > 0 && at.length === 0,
336
+ isError: G.isError,
337
+ onRetry: ft,
338
+ selectedFilterTabId: E,
339
+ onFilterTabChange: $,
340
+ showVendorBills: ot,
341
+ clearQueryConstraints: st,
336
342
  searchValue: j,
337
343
  onSearchChange: M,
338
- hasAnyBills: Ye,
344
+ hasAnyBills: et,
339
345
  isSearchActive: N.length > 0 || B.isFilterActive,
340
346
  filterBarProps: B.filterBarProps,
341
347
  visibleColumns: z ? [
@@ -345,41 +351,41 @@ function w({ enabled: c = !0, canReadVendors: l = !0, isVendorFilterPaused: d =
345
351
  m.DueDate,
346
352
  m.AddedOn,
347
353
  m.Status
348
- ] : _(D),
349
- showAddPanelWhenEmpty: !z && ie(D),
350
- sorting: Ae,
351
- onSortingChange: at,
352
- pageSize: z ? S : O,
354
+ ] : _(E),
355
+ showAddPanelWhenEmpty: !z && ie(E),
356
+ sorting: je,
357
+ onSortingChange: ct,
358
+ pageSize: z ? S : D,
353
359
  pageSizeOptions: z ? [S] : void 0,
354
- onPageSizeChange: ot,
355
- hasNextPage: z ? $ < et.length - 1 : !!G.data?.next_pagination_token,
356
- hasPrevPage: z ? $ > 0 : !!G.data?.prev_pagination_token,
357
- onNextPage: st,
358
- onPrevPage: ct,
360
+ onPageSizeChange: lt,
361
+ hasNextPage: z ? Q < it.length - 1 : !!U.data?.next_pagination_token,
362
+ hasPrevPage: z ? Q > 0 : !!U.data?.prev_pagination_token,
363
+ onNextPage: ut,
364
+ onPrevPage: dt,
359
365
  cancelConfirmation: {
360
366
  open: !!P,
361
- copy: ce(Z[Ve], Ve),
362
- onConfirm: () => void He(),
367
+ copy: se(Y[Ke], Ke),
368
+ onConfirm: () => void qe(),
363
369
  onCancel: () => F(void 0),
364
- isPending: Y.isPending,
365
- cancelButtonLabel: Z[Ve].backButton
370
+ isPending: q.isPending,
371
+ cancelButtonLabel: Y[Ke].backButton
366
372
  },
367
373
  keepConfirmation: {
368
374
  open: !!I,
369
375
  copy: {
370
- title: T.notDuplicateConfirmTitle,
371
- description: T.notDuplicateConfirmDescription,
372
- confirmButton: T.notDuplicateConfirmButton,
376
+ title: w.notDuplicateConfirmTitle,
377
+ description: w.notDuplicateConfirmDescription,
378
+ confirmButton: w.notDuplicateConfirmButton,
373
379
  presentation: {
374
380
  alignment: "center",
375
- icon: ge,
381
+ icon: he,
376
382
  actionWidth: "equal"
377
383
  }
378
384
  },
379
- onConfirm: () => void Ue(),
385
+ onConfirm: () => void Je(),
380
386
  onCancel: () => L(void 0),
381
- isPending: Y.isPending,
382
- cancelButtonLabel: T.notDuplicateConfirmBackButton
387
+ isPending: q.isPending,
388
+ cancelButtonLabel: w.notDuplicateConfirmBackButton
383
389
  }
384
390
  };
385
391
  }
@@ -391,6 +397,6 @@ function Se(e, t) {
391
397
  }), r.length && n.push(r), n;
392
398
  }
393
399
  function Ce(e) {
394
- return e === ue.Settled ? void 0 : e;
400
+ return e === v.Settled ? void 0 : e;
395
401
  }
396
- export { C as BillDuplicateView, w as useBillsTable };
402
+ export { C as BillDuplicateView, xe as useBillsTable };