@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.
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +17 -14
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +14 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +186 -180
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +144 -140
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index4.js +26 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +130 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index6.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +7 -81
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +80 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index9.js +18 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/labels.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- 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 "./
|
|
19
|
-
import { BILLS_TAB_LABELS_EN as s } from "./
|
|
20
|
-
import { BillDuplicateView as c, useBillsTable as
|
|
21
|
-
import { useDuplicateBillsCount as
|
|
22
|
-
import { formatBillQueueBadge as
|
|
23
|
-
import { copyTextToClipboard as
|
|
24
|
-
import { resolveDuplicateWarning as
|
|
25
|
-
import { billsTableCellTestIds as
|
|
26
|
-
import { useBillQueueCounts as
|
|
27
|
-
import { useCallback as
|
|
28
|
-
import { Fragment as
|
|
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
|
|
31
|
-
function
|
|
32
|
-
let
|
|
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
|
-
...
|
|
34
|
+
...y,
|
|
35
35
|
queues: {
|
|
36
36
|
...s.queues,
|
|
37
|
-
...
|
|
37
|
+
...y?.queues
|
|
38
38
|
},
|
|
39
39
|
scheduledRelativeDay: {
|
|
40
40
|
...s.scheduledRelativeDay,
|
|
41
|
-
...
|
|
41
|
+
...y?.scheduledRelativeDay
|
|
42
42
|
},
|
|
43
43
|
filters: {
|
|
44
44
|
...s.filters,
|
|
45
|
-
...
|
|
45
|
+
...y?.filters,
|
|
46
46
|
presets: {
|
|
47
47
|
...s.filters.presets,
|
|
48
|
-
...
|
|
48
|
+
...y?.filters?.presets
|
|
49
49
|
},
|
|
50
50
|
statuses: {
|
|
51
51
|
...s.filters.statuses,
|
|
52
|
-
...
|
|
52
|
+
...y?.filters?.statuses
|
|
53
53
|
},
|
|
54
54
|
dateFieldNames: {
|
|
55
55
|
...s.filters.dateFieldNames,
|
|
56
|
-
...
|
|
56
|
+
...y?.filters?.dateFieldNames
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
59
|
filterBar: {
|
|
60
60
|
...s.filterBar,
|
|
61
|
-
...
|
|
61
|
+
...y?.filterBar
|
|
62
62
|
},
|
|
63
63
|
duplicatesEmptyState: {
|
|
64
64
|
...s.duplicatesEmptyState,
|
|
65
|
-
...
|
|
65
|
+
...y?.duplicatesEmptyState
|
|
66
66
|
},
|
|
67
67
|
queueEmptyStates: a.reduce((e, t) => ({
|
|
68
68
|
...e,
|
|
69
69
|
[t]: {
|
|
70
70
|
...s.queueEmptyStates[t],
|
|
71
|
-
...
|
|
71
|
+
...y?.queueEmptyStates?.[t]
|
|
72
72
|
}
|
|
73
73
|
}), {})
|
|
74
|
-
}), [
|
|
75
|
-
copyRow:
|
|
76
|
-
menuTrigger:
|
|
77
|
-
notDuplicateAction:
|
|
78
|
-
notDuplicateConfirmTitle:
|
|
79
|
-
notDuplicateConfirmDescription:
|
|
80
|
-
notDuplicateConfirmButton:
|
|
81
|
-
notDuplicateConfirmBackButton:
|
|
82
|
-
deleteAction:
|
|
83
|
-
deleteConfirmTitle:
|
|
84
|
-
deleteConfirmDescription:
|
|
85
|
-
deleteConfirmButton:
|
|
86
|
-
deletedToast:
|
|
87
|
-
confirmAction:
|
|
88
|
-
confirmDuplicateTitle:
|
|
89
|
-
confirmDuplicateDescription:
|
|
90
|
-
confirmDuplicateButton:
|
|
91
|
-
confirmedToast:
|
|
92
|
-
cancelAction:
|
|
93
|
-
cancelConfirmTitle:
|
|
94
|
-
cancelConfirmDescription:
|
|
95
|
-
cancelConfirmButton:
|
|
96
|
-
cancelConfirmBackButton:
|
|
97
|
-
dismissedToast:
|
|
98
|
-
cancelledToast:
|
|
99
|
-
actionFailedToast:
|
|
100
|
-
groupHeader:
|
|
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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
]), I = t(
|
|
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 && !
|
|
131
|
-
}), R = I ? L : void 0, z =
|
|
132
|
-
enabled:
|
|
130
|
+
enabled: I && !O
|
|
131
|
+
}), R = I ? L : void 0, z = ie({
|
|
132
|
+
enabled: j,
|
|
133
|
+
canPay: N,
|
|
133
134
|
canReadVendors: P,
|
|
134
|
-
isVendorFilterPaused:
|
|
135
|
-
filterLabels:
|
|
136
|
-
onOpenBill:
|
|
137
|
-
duplicateRowNote:
|
|
138
|
-
attachmentLabel:
|
|
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:
|
|
141
|
-
duplicateView:
|
|
142
|
-
scheduledRelativeDayLabels:
|
|
143
|
-
}), B =
|
|
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:
|
|
146
|
-
badge:
|
|
149
|
+
label: C.queues[e],
|
|
150
|
+
badge: l(H[e])
|
|
147
151
|
})), {
|
|
148
152
|
id: o,
|
|
149
|
-
label:
|
|
150
|
-
badge: B.isError ? void 0 :
|
|
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
|
-
|
|
155
|
-
|
|
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 =
|
|
161
|
-
W(),
|
|
162
|
-
}, [W]),
|
|
163
|
-
e === "duplicates" ? K() : (
|
|
164
|
-
}, [G, K]), q =
|
|
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:
|
|
167
|
-
settingsButton:
|
|
170
|
+
createButton: C.createButton,
|
|
171
|
+
settingsButton: C.settingsButton,
|
|
168
172
|
addBill: {
|
|
169
173
|
...q?.addBill,
|
|
170
|
-
heading:
|
|
174
|
+
heading: C.nonEmptyHeading
|
|
171
175
|
}
|
|
172
176
|
}), [
|
|
173
177
|
q,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
]), J =
|
|
178
|
+
C.createButton,
|
|
179
|
+
C.settingsButton,
|
|
180
|
+
C.nonEmptyHeading
|
|
181
|
+
]), J = h(() => ({
|
|
178
182
|
...z.filterBarProps,
|
|
179
|
-
labels:
|
|
180
|
-
}), [z.filterBarProps,
|
|
181
|
-
|
|
183
|
+
labels: C.filterBar
|
|
184
|
+
}), [z.filterBarProps, C.filterBar]), Y = () => {
|
|
185
|
+
w(!1), x?.();
|
|
182
186
|
}, X = (e) => {
|
|
183
|
-
|
|
187
|
+
w(!1), le?.(e);
|
|
184
188
|
}, Z = R ? {
|
|
185
189
|
emailAddress: R,
|
|
186
190
|
onCopyEmail: async () => {
|
|
187
|
-
R && (await
|
|
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, $ =
|
|
193
|
-
|
|
196
|
+
}, { showVendorBills: Q } = z, $ = m((e) => {
|
|
197
|
+
E(c.AllBills), Q(e);
|
|
194
198
|
}, [Q]);
|
|
195
|
-
return
|
|
196
|
-
/* @__PURE__ */
|
|
199
|
+
return oe(de, () => ({ showVendorBills: $ }), [$]), /* @__PURE__ */ se(_, { children: [
|
|
200
|
+
/* @__PURE__ */ v(i, {
|
|
197
201
|
rows: z.rows,
|
|
198
|
-
isLoading: z.isLoading || !
|
|
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:
|
|
214
|
+
filterTabs: me,
|
|
211
215
|
selectedFilterTabId: V ? o : z.selectedFilterTabId,
|
|
212
|
-
onFilterTabChange:
|
|
216
|
+
onFilterTabChange: he,
|
|
213
217
|
searchValue: z.searchValue,
|
|
214
218
|
onSearchChange: z.onSearchChange,
|
|
215
219
|
filters: J,
|
|
216
220
|
visibleColumns: z.visibleColumns,
|
|
217
|
-
cellTestIds:
|
|
221
|
+
cellTestIds: f,
|
|
218
222
|
isSearchActive: z.isSearchActive,
|
|
219
223
|
showAddPanelWhenEmpty: z.showAddPanelWhenEmpty,
|
|
220
|
-
emptyState: V ?
|
|
221
|
-
onCreateClick:
|
|
222
|
-
onSettingsClick:
|
|
223
|
-
onEnterManually:
|
|
224
|
-
onFilesSelected:
|
|
225
|
-
maxFiles:
|
|
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:
|
|
231
|
+
duplicateWarning: pe,
|
|
228
232
|
duplicateReviewControl: V ? void 0 : {
|
|
229
|
-
reviewLabel:
|
|
233
|
+
reviewLabel: C.duplicateReviewButton,
|
|
230
234
|
onReview: K
|
|
231
235
|
},
|
|
232
|
-
labels:
|
|
236
|
+
labels: ge
|
|
233
237
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
-
|
|
251
|
-
open:
|
|
252
|
-
onOpenChange:
|
|
254
|
+
M ? /* @__PURE__ */ v(re, {
|
|
255
|
+
open: fe,
|
|
256
|
+
onOpenChange: w,
|
|
253
257
|
onFilesSelected: X,
|
|
254
|
-
maxFiles:
|
|
258
|
+
maxFiles: S,
|
|
255
259
|
onEnterManually: Y,
|
|
256
260
|
...Z,
|
|
257
|
-
dialogLabels:
|
|
261
|
+
dialogLabels: y?.addBillDialog?.dialog,
|
|
258
262
|
labels: {
|
|
259
|
-
...
|
|
260
|
-
heading: z.hasAnyBills ?
|
|
263
|
+
...y?.addBillDialog?.panel,
|
|
264
|
+
heading: z.hasAnyBills ? C.nonEmptyHeading : C.emptyHeading
|
|
261
265
|
}
|
|
262
266
|
}) : null
|
|
263
267
|
] });
|
|
264
268
|
}
|
|
265
|
-
export {
|
|
269
|
+
export { y as BillsList, y as default };
|
|
@@ -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
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
],
|
|
23
|
-
[
|
|
24
|
-
[
|
|
25
|
-
|
|
26
|
-
[
|
|
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
|
|
33
|
-
return e
|
|
27
|
+
function r(e) {
|
|
28
|
+
return e.flatMap((e) => n[e] ?? [e]);
|
|
34
29
|
}
|
|
35
|
-
|
|
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 };
|