@tesouro/embedded-components-react 0.11.2 → 0.11.5

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
@@ -15,187 +15,191 @@ import "../../../ui/dist/index.js";
15
15
  import { AddBillDialog as re } from "../../ui/dist/index6.js";
16
16
  import { BillsScreen as i } from "../../ui/dist/index20.js";
17
17
  import "../../ui/dist/index.js";
18
- import { BILL_QUEUE_ORDER as a, DUPLICATES_TAB_ID as o } from "./index4.js";
19
- import { BILLS_TAB_LABELS_EN as s } from "./index7.js";
20
- import { BillDuplicateView as c, useBillsTable as l } from "./index16.js";
21
- import { useDuplicateBillsCount as u } from "./index2.js";
22
- import { formatBillQueueBadge as d } from "./index3.js";
23
- import { copyTextToClipboard as f } from "./index5.js";
24
- import { resolveDuplicateWarning as p } from "./index6.js";
25
- import { billsTableCellTestIds as m } from "./index8.js";
26
- import { useBillQueueCounts as h } from "./index9.js";
27
- import { useCallback as g, useImperativeHandle as ie, useMemo as _, useState as v } from "react";
28
- import { Fragment as ae, jsx as y, jsxs as oe } from "react/jsx-runtime";
18
+ import { BILL_QUEUE_ORDER as a, DUPLICATES_TAB_ID as o } from "./index5.js";
19
+ import { BILLS_TAB_LABELS_EN as s } from "./index8.js";
20
+ import { BillDuplicateView as c, useBillsTable as ie } from "./index16.js";
21
+ import { useDuplicateBillsCount as ae } from "./index2.js";
22
+ import { formatBillQueueBadge as l } from "./index3.js";
23
+ import { copyTextToClipboard as u } from "./index6.js";
24
+ import { resolveDuplicateWarning as d } from "./index7.js";
25
+ import { billsTableCellTestIds as f } from "./index9.js";
26
+ import { useBillQueueCounts as p } from "./index10.js";
27
+ import { useCallback as m, useImperativeHandle as oe, useMemo as h, useState as g } from "react";
28
+ import { Fragment as _, jsx as v, jsxs as se } from "react/jsx-runtime";
29
29
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js
30
- var b = () => void 0;
31
- function x({ labels: x, onOpenBill: S, onEnterManually: se, onFilesSelected: ce, maxFiles: C, onSettingsClick: le, ref: ue }) {
32
- let w = _(() => ({
30
+ var ce = () => void 0;
31
+ function y({ labels: y, onOpenBill: b, onEnterManually: x, onFilesSelected: le, maxFiles: S, onSettingsClick: ue, ref: de }) {
32
+ let C = h(() => ({
33
33
  ...s,
34
- ...x,
34
+ ...y,
35
35
  queues: {
36
36
  ...s.queues,
37
- ...x?.queues
37
+ ...y?.queues
38
38
  },
39
39
  scheduledRelativeDay: {
40
40
  ...s.scheduledRelativeDay,
41
- ...x?.scheduledRelativeDay
41
+ ...y?.scheduledRelativeDay
42
42
  },
43
43
  filters: {
44
44
  ...s.filters,
45
- ...x?.filters,
45
+ ...y?.filters,
46
46
  presets: {
47
47
  ...s.filters.presets,
48
- ...x?.filters?.presets
48
+ ...y?.filters?.presets
49
49
  },
50
50
  statuses: {
51
51
  ...s.filters.statuses,
52
- ...x?.filters?.statuses
52
+ ...y?.filters?.statuses
53
53
  },
54
54
  dateFieldNames: {
55
55
  ...s.filters.dateFieldNames,
56
- ...x?.filters?.dateFieldNames
56
+ ...y?.filters?.dateFieldNames
57
57
  }
58
58
  },
59
59
  filterBar: {
60
60
  ...s.filterBar,
61
- ...x?.filterBar
61
+ ...y?.filterBar
62
62
  },
63
63
  duplicatesEmptyState: {
64
64
  ...s.duplicatesEmptyState,
65
- ...x?.duplicatesEmptyState
65
+ ...y?.duplicatesEmptyState
66
66
  },
67
67
  queueEmptyStates: a.reduce((e, t) => ({
68
68
  ...e,
69
69
  [t]: {
70
70
  ...s.queueEmptyStates[t],
71
- ...x?.queueEmptyStates?.[t]
71
+ ...y?.queueEmptyStates?.[t]
72
72
  }
73
73
  }), {})
74
- }), [x]), [de, T] = v(!1), [E, D] = v(c.AllBills), { initResponse: O } = te(), k = ne(), A = t(O?.scopes, [n.PayableReadOrg]), j = t(O?.scopes, [n.PayableWriteOrg]), M = !O || A, N = !O || j, P = t(O?.scopes, [n.CounterpartReadOrg]), F = _(() => ({
75
- copyRow: w.duplicateCopyRowLabel,
76
- menuTrigger: w.duplicateMenuTrigger,
77
- notDuplicateAction: w.duplicateNotDuplicateAction,
78
- notDuplicateConfirmTitle: w.duplicateNotDuplicateConfirmTitle,
79
- notDuplicateConfirmDescription: w.duplicateNotDuplicateConfirmDescription,
80
- notDuplicateConfirmButton: w.duplicateNotDuplicateConfirmButton,
81
- notDuplicateConfirmBackButton: w.duplicateNotDuplicateConfirmBackButton,
82
- deleteAction: w.duplicateDeleteAction,
83
- deleteConfirmTitle: w.duplicateDeleteConfirmTitle,
84
- deleteConfirmDescription: w.duplicateDeleteConfirmDescription,
85
- deleteConfirmButton: w.duplicateDeleteConfirmButton,
86
- deletedToast: w.duplicateDeletedToast,
87
- confirmAction: w.duplicateConfirmAction,
88
- confirmDuplicateTitle: w.duplicateConfirmDuplicateTitle,
89
- confirmDuplicateDescription: w.duplicateConfirmDuplicateDescription,
90
- confirmDuplicateButton: w.duplicateConfirmDuplicateButton,
91
- confirmedToast: w.duplicateConfirmedToast,
92
- cancelAction: w.duplicateCancelAction,
93
- cancelConfirmTitle: w.duplicateCancelConfirmTitle,
94
- cancelConfirmDescription: w.duplicateCancelConfirmDescription,
95
- cancelConfirmButton: w.duplicateCancelConfirmButton,
96
- cancelConfirmBackButton: w.duplicateCancelConfirmBackButton,
97
- dismissedToast: w.duplicateDismissedToast,
98
- cancelledToast: w.duplicateCancelledToast,
99
- actionFailedToast: w.duplicateActionFailedToast,
100
- groupHeader: w.duplicateGroupHeader
74
+ }), [y]), [fe, w] = g(!1), [T, E] = g(c.AllBills), { initResponse: D } = te(), O = ne(), k = t(D?.scopes, [n.PayableReadOrg]), A = t(D?.scopes, [n.PayableWriteOrg]), j = !D || k, M = !D || A, N = D && !O ? t(D.scopes, [n.PayablePayOrg]) : void 0, P = t(D?.scopes, [n.CounterpartReadOrg]), F = h(() => ({
75
+ copyRow: C.duplicateCopyRowLabel,
76
+ menuTrigger: C.duplicateMenuTrigger,
77
+ notDuplicateAction: C.duplicateNotDuplicateAction,
78
+ notDuplicateConfirmTitle: C.duplicateNotDuplicateConfirmTitle,
79
+ notDuplicateConfirmDescription: C.duplicateNotDuplicateConfirmDescription,
80
+ notDuplicateConfirmButton: C.duplicateNotDuplicateConfirmButton,
81
+ notDuplicateConfirmBackButton: C.duplicateNotDuplicateConfirmBackButton,
82
+ deleteAction: C.duplicateDeleteAction,
83
+ deleteConfirmTitle: C.duplicateDeleteConfirmTitle,
84
+ deleteConfirmDescription: C.duplicateDeleteConfirmDescription,
85
+ deleteConfirmButton: C.duplicateDeleteConfirmButton,
86
+ deletedToast: C.duplicateDeletedToast,
87
+ confirmAction: C.duplicateConfirmAction,
88
+ confirmDuplicateTitle: C.duplicateConfirmDuplicateTitle,
89
+ confirmDuplicateDescription: C.duplicateConfirmDuplicateDescription,
90
+ confirmDuplicateButton: C.duplicateConfirmDuplicateButton,
91
+ confirmedToast: C.duplicateConfirmedToast,
92
+ cancelAction: C.duplicateCancelAction,
93
+ cancelConfirmTitle: C.duplicateCancelConfirmTitle,
94
+ cancelConfirmDescription: C.duplicateCancelConfirmDescription,
95
+ cancelConfirmButton: C.duplicateCancelConfirmButton,
96
+ cancelConfirmBackButton: C.duplicateCancelConfirmBackButton,
97
+ dismissedToast: C.duplicateDismissedToast,
98
+ cancelledToast: C.duplicateCancelledToast,
99
+ actionFailedToast: C.duplicateActionFailedToast,
100
+ groupHeader: C.duplicateGroupHeader
101
101
  }), [
102
- w.duplicateCopyRowLabel,
103
- w.duplicateMenuTrigger,
104
- w.duplicateNotDuplicateAction,
105
- w.duplicateNotDuplicateConfirmTitle,
106
- w.duplicateNotDuplicateConfirmDescription,
107
- w.duplicateNotDuplicateConfirmButton,
108
- w.duplicateNotDuplicateConfirmBackButton,
109
- w.duplicateDeleteAction,
110
- w.duplicateDeleteConfirmTitle,
111
- w.duplicateDeleteConfirmDescription,
112
- w.duplicateDeleteConfirmButton,
113
- w.duplicateDeletedToast,
114
- w.duplicateConfirmAction,
115
- w.duplicateConfirmDuplicateTitle,
116
- w.duplicateConfirmDuplicateDescription,
117
- w.duplicateConfirmDuplicateButton,
118
- w.duplicateConfirmedToast,
119
- w.duplicateCancelAction,
120
- w.duplicateCancelConfirmTitle,
121
- w.duplicateCancelConfirmDescription,
122
- w.duplicateCancelConfirmButton,
123
- w.duplicateCancelConfirmBackButton,
124
- w.duplicateDismissedToast,
125
- w.duplicateCancelledToast,
126
- w.duplicateActionFailedToast,
127
- w.duplicateGroupHeader
128
- ]), I = t(O?.scopes, [n.MailboxReadOrg]), { mailboxAddress: L } = ee({
102
+ C.duplicateCopyRowLabel,
103
+ C.duplicateMenuTrigger,
104
+ C.duplicateNotDuplicateAction,
105
+ C.duplicateNotDuplicateConfirmTitle,
106
+ C.duplicateNotDuplicateConfirmDescription,
107
+ C.duplicateNotDuplicateConfirmButton,
108
+ C.duplicateNotDuplicateConfirmBackButton,
109
+ C.duplicateDeleteAction,
110
+ C.duplicateDeleteConfirmTitle,
111
+ C.duplicateDeleteConfirmDescription,
112
+ C.duplicateDeleteConfirmButton,
113
+ C.duplicateDeletedToast,
114
+ C.duplicateConfirmAction,
115
+ C.duplicateConfirmDuplicateTitle,
116
+ C.duplicateConfirmDuplicateDescription,
117
+ C.duplicateConfirmDuplicateButton,
118
+ C.duplicateConfirmedToast,
119
+ C.duplicateCancelAction,
120
+ C.duplicateCancelConfirmTitle,
121
+ C.duplicateCancelConfirmDescription,
122
+ C.duplicateCancelConfirmButton,
123
+ C.duplicateCancelConfirmBackButton,
124
+ C.duplicateDismissedToast,
125
+ C.duplicateCancelledToast,
126
+ C.duplicateActionFailedToast,
127
+ C.duplicateGroupHeader
128
+ ]), I = t(D?.scopes, [n.MailboxReadOrg]), { mailboxAddress: L } = ee({
129
129
  relatedObjectType: "payable",
130
- enabled: I && !k
131
- }), R = I ? L : void 0, z = l({
132
- enabled: M,
130
+ enabled: I && !O
131
+ }), R = I ? L : void 0, z = ie({
132
+ enabled: j,
133
+ canPay: N,
133
134
  canReadVendors: P,
134
- isVendorFilterPaused: k,
135
- filterLabels: w.filters,
136
- onOpenBill: S ?? b,
137
- duplicateRowNote: w.duplicateRowNote,
138
- attachmentLabel: w.attachmentIndicator,
135
+ isVendorFilterPaused: O,
136
+ filterLabels: C.filters,
137
+ onOpenBill: b ?? ce,
138
+ duplicateRowNote: C.duplicateRowNote,
139
+ attachmentLabel: C.attachmentIndicator,
139
140
  duplicateGroupLabels: F,
140
- canManageDuplicates: N,
141
- duplicateView: E,
142
- scheduledRelativeDayLabels: w.scheduledRelativeDay
143
- }), B = u({ enabled: M }), V = E === c.PossibleDuplicates, fe = p(B, w), H = h({ enabled: M }), U = !B.isError && B.count > 0, pe = _(() => [...a.map((e) => ({
141
+ canManageDuplicates: M,
142
+ duplicateView: T,
143
+ scheduledRelativeDayLabels: C.scheduledRelativeDay
144
+ }), B = ae({ enabled: j }), V = T === c.PossibleDuplicates, pe = d(B, C), H = p({
145
+ enabled: j,
146
+ canPay: N
147
+ }), U = !B.isError && B.count > 0, me = h(() => [...a.map((e) => ({
144
148
  id: e,
145
- label: w.queues[e],
146
- badge: d(H[e])
149
+ label: C.queues[e],
150
+ badge: l(H[e])
147
151
  })), {
148
152
  id: o,
149
- label: w.duplicatesTab,
150
- badge: B.isError ? void 0 : d(B.count),
153
+ label: C.duplicatesTab,
154
+ badge: B.isError ? void 0 : l(B.count),
151
155
  tone: U ? "warning" : void 0,
152
156
  startsGroup: !0
153
157
  }], [
154
- w.queues,
155
- w.duplicatesTab,
158
+ C.queues,
159
+ C.duplicatesTab,
156
160
  H,
157
161
  B.isError,
158
162
  B.count,
159
163
  U
160
- ]), { clearQueryConstraints: W, onFilterTabChange: G } = z, K = g(() => {
161
- W(), D(c.PossibleDuplicates);
162
- }, [W]), me = g((e) => {
163
- e === "duplicates" ? K() : (D(c.AllBills), G(e));
164
- }, [G, K]), q = x?.screen, he = _(() => ({
164
+ ]), { clearQueryConstraints: W, onFilterTabChange: G } = z, K = m(() => {
165
+ W(), E(c.PossibleDuplicates);
166
+ }, [W]), he = m((e) => {
167
+ e === "duplicates" ? K() : (E(c.AllBills), G(e));
168
+ }, [G, K]), q = y?.screen, ge = h(() => ({
165
169
  ...q,
166
- createButton: w.createButton,
167
- settingsButton: w.settingsButton,
170
+ createButton: C.createButton,
171
+ settingsButton: C.settingsButton,
168
172
  addBill: {
169
173
  ...q?.addBill,
170
- heading: w.nonEmptyHeading
174
+ heading: C.nonEmptyHeading
171
175
  }
172
176
  }), [
173
177
  q,
174
- w.createButton,
175
- w.settingsButton,
176
- w.nonEmptyHeading
177
- ]), J = _(() => ({
178
+ C.createButton,
179
+ C.settingsButton,
180
+ C.nonEmptyHeading
181
+ ]), J = h(() => ({
178
182
  ...z.filterBarProps,
179
- labels: w.filterBar
180
- }), [z.filterBarProps, w.filterBar]), Y = () => {
181
- T(!1), se?.();
183
+ labels: C.filterBar
184
+ }), [z.filterBarProps, C.filterBar]), Y = () => {
185
+ w(!1), x?.();
182
186
  }, X = (e) => {
183
- T(!1), ce?.(e);
187
+ w(!1), le?.(e);
184
188
  }, Z = R ? {
185
189
  emailAddress: R,
186
190
  onCopyEmail: async () => {
187
- R && (await f(R) ? e.success(w.emailCopiedToast) : e.error(w.emailCopyFailedToast));
191
+ R && (await u(R) ? e.success(C.emailCopiedToast) : e.error(C.emailCopyFailedToast));
188
192
  }
189
193
  } : {
190
194
  emailAddress: void 0,
191
195
  onCopyEmail: void 0
192
- }, { showVendorBills: Q } = z, $ = g((e) => {
193
- D(c.AllBills), Q(e);
196
+ }, { showVendorBills: Q } = z, $ = m((e) => {
197
+ E(c.AllBills), Q(e);
194
198
  }, [Q]);
195
- return ie(ue, () => ({ showVendorBills: $ }), [$]), /* @__PURE__ */ oe(ae, { children: [
196
- /* @__PURE__ */ y(i, {
199
+ return oe(de, () => ({ showVendorBills: $ }), [$]), /* @__PURE__ */ se(_, { children: [
200
+ /* @__PURE__ */ v(i, {
197
201
  rows: z.rows,
198
- isLoading: z.isLoading || !O,
202
+ isLoading: z.isLoading || !D,
199
203
  isError: z.isError,
200
204
  onRetry: z.onRetry,
201
205
  sorting: z.sorting,
@@ -207,31 +211,31 @@ function x({ labels: x, onOpenBill: S, onEnterManually: se, onFilesSelected: ce,
207
211
  hasPrevPage: z.hasPrevPage,
208
212
  onNextPage: z.onNextPage,
209
213
  onPrevPage: z.onPrevPage,
210
- filterTabs: pe,
214
+ filterTabs: me,
211
215
  selectedFilterTabId: V ? o : z.selectedFilterTabId,
212
- onFilterTabChange: me,
216
+ onFilterTabChange: he,
213
217
  searchValue: z.searchValue,
214
218
  onSearchChange: z.onSearchChange,
215
219
  filters: J,
216
220
  visibleColumns: z.visibleColumns,
217
- cellTestIds: m,
221
+ cellTestIds: f,
218
222
  isSearchActive: z.isSearchActive,
219
223
  showAddPanelWhenEmpty: z.showAddPanelWhenEmpty,
220
- emptyState: V ? w.duplicatesEmptyState : w.queueEmptyStates[z.selectedFilterTabId],
221
- onCreateClick: N ? () => T(!0) : void 0,
222
- onSettingsClick: le,
223
- onEnterManually: N ? Y : void 0,
224
- onFilesSelected: N ? X : void 0,
225
- maxFiles: C,
224
+ emptyState: V ? C.duplicatesEmptyState : C.queueEmptyStates[z.selectedFilterTabId],
225
+ onCreateClick: M ? () => w(!0) : void 0,
226
+ onSettingsClick: ue,
227
+ onEnterManually: M ? Y : void 0,
228
+ onFilesSelected: M ? X : void 0,
229
+ maxFiles: S,
226
230
  ...Z,
227
- duplicateWarning: fe,
231
+ duplicateWarning: pe,
228
232
  duplicateReviewControl: V ? void 0 : {
229
- reviewLabel: w.duplicateReviewButton,
233
+ reviewLabel: C.duplicateReviewButton,
230
234
  onReview: K
231
235
  },
232
- labels: he
236
+ labels: ge
233
237
  }),
234
- /* @__PURE__ */ y(r, {
238
+ /* @__PURE__ */ v(r, {
235
239
  open: z.cancelConfirmation.open,
236
240
  copy: z.cancelConfirmation.copy,
237
241
  onConfirm: z.cancelConfirmation.onConfirm,
@@ -239,7 +243,7 @@ function x({ labels: x, onOpenBill: S, onEnterManually: se, onFilesSelected: ce,
239
243
  isPending: z.cancelConfirmation.isPending,
240
244
  labels: { cancelButton: z.cancelConfirmation.cancelButtonLabel }
241
245
  }),
242
- /* @__PURE__ */ y(r, {
246
+ /* @__PURE__ */ v(r, {
243
247
  open: z.keepConfirmation.open,
244
248
  copy: z.keepConfirmation.copy,
245
249
  onConfirm: z.keepConfirmation.onConfirm,
@@ -247,19 +251,19 @@ function x({ labels: x, onOpenBill: S, onEnterManually: se, onFilesSelected: ce,
247
251
  isPending: z.keepConfirmation.isPending,
248
252
  labels: { cancelButton: z.keepConfirmation.cancelButtonLabel }
249
253
  }),
250
- N ? /* @__PURE__ */ y(re, {
251
- open: de,
252
- onOpenChange: T,
254
+ M ? /* @__PURE__ */ v(re, {
255
+ open: fe,
256
+ onOpenChange: w,
253
257
  onFilesSelected: X,
254
- maxFiles: C,
258
+ maxFiles: S,
255
259
  onEnterManually: Y,
256
260
  ...Z,
257
- dialogLabels: x?.addBillDialog?.dialog,
261
+ dialogLabels: y?.addBillDialog?.dialog,
258
262
  labels: {
259
- ...x?.addBillDialog?.panel,
260
- heading: z.hasAnyBills ? w.nonEmptyHeading : w.emptyHeading
263
+ ...y?.addBillDialog?.panel,
264
+ heading: z.hasAnyBills ? C.nonEmptyHeading : C.emptyHeading
261
265
  }
262
266
  }) : null
263
267
  ] });
264
268
  }
265
- export { x as BillsList, x as default };
269
+ export { y as BillsList, y as default };
@@ -1,4 +1,4 @@
1
- import "./index4.js";
2
- import "./index7.js";
1
+ import "./index5.js";
2
+ import "./index8.js";
3
3
  import "./index16.js";
4
4
  import "./index17.js";
@@ -1,131 +1,30 @@
1
- import { BillColumn as e } from "../../ui/dist/index19.js";
2
- import "../../ui/dist/index.js";
3
1
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js
4
- var t = {
5
- Drafts: "drafts",
6
- Pending: "pending",
7
- Scheduled: "scheduled",
2
+ var e = {
3
+ Draft: "draft",
4
+ ReadyToSubmit: "ready_to_submit",
5
+ PendingApproval: "pending_approval",
6
+ ReadyToPay: "ready_to_pay",
8
7
  Paid: "paid",
9
- All: "all"
10
- }, n = {
11
- [t.Drafts]: ["draft", "new"],
12
- [t.Pending]: [
13
- "approve_in_progress",
14
- "waiting_to_be_paid",
15
- "partially_paid"
16
- ],
17
- [t.Scheduled]: [
18
- "new",
19
- "approve_in_progress",
20
- "waiting_to_be_paid",
21
- "partially_paid"
22
- ],
23
- [t.Paid]: ["paid"],
24
- [t.All]: void 0
25
- }, r = {
26
- [t.Drafts]: void 0,
27
- [t.Pending]: !1,
28
- [t.Scheduled]: !0,
29
- [t.Paid]: void 0,
30
- [t.All]: void 0
8
+ Canceled: "canceled",
9
+ Rejected: "rejected"
10
+ }, t = [
11
+ e.Draft,
12
+ e.ReadyToSubmit,
13
+ e.PendingApproval,
14
+ e.ReadyToPay,
15
+ e.Paid,
16
+ e.Canceled,
17
+ e.Rejected
18
+ ], n = {
19
+ [e.Draft]: ["draft"],
20
+ [e.ReadyToSubmit]: ["new"],
21
+ [e.PendingApproval]: ["approve_in_progress"],
22
+ [e.ReadyToPay]: ["waiting_to_be_paid", "partially_paid"],
23
+ [e.Paid]: ["paid"],
24
+ [e.Canceled]: ["canceled"],
25
+ [e.Rejected]: ["rejected"]
31
26
  };
32
- function i(e) {
33
- return e === t.Pending || e === t.Drafts;
27
+ function r(e) {
28
+ return e.flatMap((e) => n[e] ?? [e]);
34
29
  }
35
- var a = "duplicates", o = t.Drafts, s = [
36
- t.Drafts,
37
- t.Pending,
38
- t.Scheduled,
39
- t.Paid,
40
- t.All
41
- ], c = {
42
- [t.Drafts]: [
43
- e.Vendor,
44
- e.InvoiceNumber,
45
- e.Attachment,
46
- e.IssueDate,
47
- e.DueDate,
48
- e.Status,
49
- e.AmountDue,
50
- e.TotalAmount,
51
- e.AddedOn
52
- ],
53
- [t.Pending]: [
54
- e.Vendor,
55
- e.InvoiceNumber,
56
- e.Attachment,
57
- e.IssueDate,
58
- e.DueDate,
59
- e.Status,
60
- e.AmountDue,
61
- e.TotalAmount,
62
- e.AddedOn
63
- ],
64
- [t.Scheduled]: [
65
- e.Vendor,
66
- e.InvoiceNumber,
67
- e.Attachment,
68
- e.IssueDate,
69
- e.DueDate,
70
- e.ScheduledDate,
71
- e.Status,
72
- e.AmountScheduled,
73
- e.TotalAmount,
74
- e.AddedOn
75
- ],
76
- [t.Paid]: [
77
- e.Vendor,
78
- e.InvoiceNumber,
79
- e.Attachment,
80
- e.IssueDate,
81
- e.DueDate,
82
- e.PaidDate,
83
- e.Status,
84
- e.AmountPaid,
85
- e.TotalAmount,
86
- e.AddedOn
87
- ],
88
- [t.All]: [
89
- e.Vendor,
90
- e.InvoiceNumber,
91
- e.Attachment,
92
- e.IssueDate,
93
- e.DueDate,
94
- e.ScheduledDate,
95
- e.Status,
96
- e.AmountDue,
97
- e.AmountPaid,
98
- e.TotalAmount,
99
- e.AddedOn
100
- ]
101
- };
102
- function l(e) {
103
- return c[e];
104
- }
105
- function u(e) {
106
- let t = n[e];
107
- return t ? [...t] : void 0;
108
- }
109
- function d(e) {
110
- return r[e];
111
- }
112
- var f = {
113
- vendorLabel: "counterpart_name",
114
- issueDateLabel: "issued_at",
115
- dueDateLabel: "due_date",
116
- scheduledDateLabel: "scheduled_payment_date",
117
- addedOnLabel: "created_at"
118
- }, p = {
119
- [e.Vendor]: "vendorLabel",
120
- [e.IssueDate]: "issueDateLabel",
121
- [e.DueDate]: "dueDateLabel",
122
- [e.ScheduledDate]: "scheduledDateLabel",
123
- [e.AddedOn]: "addedOnLabel"
124
- };
125
- function m(e) {
126
- return p[e];
127
- }
128
- function h(e) {
129
- if (e) return f[e];
130
- }
131
- export { c as BILL_QUEUE_COLUMNS, r as BILL_QUEUE_HAS_SCHEDULED_PAYMENT, s as BILL_QUEUE_ORDER, n as BILL_QUEUE_STATUSES, f as BILL_SORT_FIELDS, t as BillQueue, o as DEFAULT_BILL_QUEUE, a as DUPLICATES_TAB_ID, l as billQueueColumns, d as billQueueHasScheduledPayment, i as billQueueOffersAddPanel, u as billQueueStatuses, m as billSortColumnId, h as billSortField };
30
+ export { t as BILL_STATUS_FILTER_ORDER, e as BillStatusFilter, r as billStatusFilterApiValues };