@tesouro/embedded-components-react 0.11.226 → 0.11.228
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/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index48.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index49.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index8.js +55 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index9.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +19 -185
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +10 -30
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +186 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +35 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +15 -51
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +76 -294
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +51 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +277 -456
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +29 -326
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +524 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +359 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +4 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index23.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index17.js +221 -200
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +14 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index10.js +10 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index11.js +1 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +13 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +52 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index14.js +2 -74
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +73 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +2 -77
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +77 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index24.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +0 -6
|
@@ -1,5 +1,360 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
|
|
6
|
+
import { hasAnyScope as t } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
|
|
7
|
+
import { useMailboxAddress as ee } from "../../../../shared/data-access/dist/lib/useMailboxAddress.js";
|
|
8
|
+
import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import "../../../../shared/ui/dist/index.js";
|
|
11
|
+
import { useWidgetConfig as r, useWidgetInitStaleForToken as i } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
|
+
import "../../../../shared/feature/dist/index.js";
|
|
13
|
+
import { BILL_QUEUE_ORDER as a, BillQueue as o } from "./index5.js";
|
|
14
|
+
import { BILLS_TAB_LABELS_EN as s } from "./index7.js";
|
|
15
|
+
import { BillDecisionDialog as c } from "../../../ui/dist/index4.js";
|
|
16
|
+
import { BillDuplicateIcon as te } from "../../../ui/dist/index6.js";
|
|
17
|
+
import { BillFailedPaymentIcon as ne } from "../../../ui/dist/index10.js";
|
|
18
|
+
import "../../../ui/dist/index.js";
|
|
19
|
+
import { AddBillDialog as l } from "../../ui/dist/index6.js";
|
|
20
|
+
import { BillsScreen as u } from "../../ui/dist/index17.js";
|
|
21
|
+
import "../../ui/dist/index.js";
|
|
22
|
+
import { BillAttentionView as d, useBillsTable as f } from "./index19.js";
|
|
23
|
+
import { useDuplicateBillsCount as p } from "./index2.js";
|
|
24
|
+
import { formatBillQueueBadge as re } from "./index3.js";
|
|
25
|
+
import { copyTextToClipboard as ie } from "./index6.js";
|
|
26
|
+
import { billsTableCellTestIds as ae } from "./index8.js";
|
|
27
|
+
import { useAssignedToMeCount as oe } from "./index9.js";
|
|
28
|
+
import { useFailedPaymentsCount as se } from "./index11.js";
|
|
29
|
+
import { useBillSummaryCards as ce } from "./index13.js";
|
|
30
|
+
import { useCallback as m, useImperativeHandle as le, useMemo as h, useState as g } from "react";
|
|
31
|
+
import { Fragment as _, jsx as v, jsxs as ue } from "react/jsx-runtime";
|
|
3
32
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js
|
|
4
|
-
var
|
|
5
|
-
|
|
33
|
+
var de = () => void 0;
|
|
34
|
+
function y({ labels: y, onOpenBill: fe, onEnterManually: pe, onFilesSelected: me, maxFiles: b, headerActionContainer: he, selectedSummaryCard: ge, onSummaryCardChange: _e, selectedQueue: ve, onQueueChange: ye, ref: be }) {
|
|
35
|
+
let x = h(() => ({
|
|
36
|
+
...s,
|
|
37
|
+
...y,
|
|
38
|
+
queues: {
|
|
39
|
+
...s.queues,
|
|
40
|
+
...y?.queues
|
|
41
|
+
},
|
|
42
|
+
summaryCards: {
|
|
43
|
+
...s.summaryCards,
|
|
44
|
+
...y?.summaryCards,
|
|
45
|
+
statusCount: {
|
|
46
|
+
...s.summaryCards.statusCount,
|
|
47
|
+
...y?.summaryCards?.statusCount
|
|
48
|
+
},
|
|
49
|
+
stageCount: {
|
|
50
|
+
...s.summaryCards.stageCount,
|
|
51
|
+
...y?.summaryCards?.stageCount
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
scheduledStatus: {
|
|
55
|
+
...s.scheduledStatus,
|
|
56
|
+
...y?.scheduledStatus
|
|
57
|
+
},
|
|
58
|
+
dueDate: {
|
|
59
|
+
...s.dueDate,
|
|
60
|
+
...y?.dueDate
|
|
61
|
+
},
|
|
62
|
+
filters: {
|
|
63
|
+
...s.filters,
|
|
64
|
+
...y?.filters,
|
|
65
|
+
presets: {
|
|
66
|
+
...s.filters.presets,
|
|
67
|
+
...y?.filters?.presets
|
|
68
|
+
},
|
|
69
|
+
statuses: {
|
|
70
|
+
...s.filters.statuses,
|
|
71
|
+
...y?.filters?.statuses
|
|
72
|
+
},
|
|
73
|
+
dateFieldNames: {
|
|
74
|
+
...s.filters.dateFieldNames,
|
|
75
|
+
...y?.filters?.dateFieldNames
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
filterBar: {
|
|
79
|
+
...s.filterBar,
|
|
80
|
+
...y?.filterBar
|
|
81
|
+
},
|
|
82
|
+
duplicatesEmptyState: {
|
|
83
|
+
...s.duplicatesEmptyState,
|
|
84
|
+
...y?.duplicatesEmptyState
|
|
85
|
+
},
|
|
86
|
+
failedPaymentsEmptyState: {
|
|
87
|
+
...s.failedPaymentsEmptyState,
|
|
88
|
+
...y?.failedPaymentsEmptyState
|
|
89
|
+
},
|
|
90
|
+
duplicateStatusCount: {
|
|
91
|
+
...s.duplicateStatusCount,
|
|
92
|
+
...y?.duplicateStatusCount
|
|
93
|
+
},
|
|
94
|
+
queueEmptyStates: a.reduce((e, t) => ({
|
|
95
|
+
...e,
|
|
96
|
+
[t]: {
|
|
97
|
+
...s.queueEmptyStates[t],
|
|
98
|
+
...y?.queueEmptyStates?.[t]
|
|
99
|
+
}
|
|
100
|
+
}), {})
|
|
101
|
+
}), [y]), [xe, S] = g(!1), [C, w] = g(d.AllBills), { initResponse: T } = r(), E = i(), D = t(T?.scopes, [n.PayableReadOrg]), O = t(T?.scopes, [n.PayableWriteOrg]), k = !T || D, A = !T || O, j = T && !E ? t(T.scopes, [n.PayablePayOrg]) : void 0, M = t(T?.scopes, [n.CounterpartReadOrg]), Se = !E && t(T?.scopes, [n.PaymentRecordReadOrg]), Ce = h(() => ({
|
|
102
|
+
menuTrigger: x.duplicateMenuTrigger,
|
|
103
|
+
notDuplicateAction: x.duplicateNotDuplicateAction,
|
|
104
|
+
notDuplicateConfirmTitle: x.duplicateNotDuplicateConfirmTitle,
|
|
105
|
+
notDuplicateConfirmDescription: x.duplicateNotDuplicateConfirmDescription,
|
|
106
|
+
notDuplicateConfirmButton: x.duplicateNotDuplicateConfirmButton,
|
|
107
|
+
notDuplicateConfirmBackButton: x.duplicateNotDuplicateConfirmBackButton,
|
|
108
|
+
deleteAction: x.duplicateDeleteAction,
|
|
109
|
+
deleteConfirmTitle: x.duplicateDeleteConfirmTitle,
|
|
110
|
+
deleteConfirmDescription: x.duplicateDeleteConfirmDescription,
|
|
111
|
+
deleteConfirmButton: x.duplicateDeleteConfirmButton,
|
|
112
|
+
deletedToast: x.duplicateDeletedToast,
|
|
113
|
+
confirmAction: x.duplicateConfirmAction,
|
|
114
|
+
confirmDuplicateTitle: x.duplicateConfirmDuplicateTitle,
|
|
115
|
+
confirmDuplicateDescription: x.duplicateConfirmDuplicateDescription,
|
|
116
|
+
confirmDuplicateButton: x.duplicateConfirmDuplicateButton,
|
|
117
|
+
confirmedToast: x.duplicateConfirmedToast,
|
|
118
|
+
cancelAction: x.duplicateCancelAction,
|
|
119
|
+
cancelConfirmTitle: x.duplicateCancelConfirmTitle,
|
|
120
|
+
cancelConfirmDescription: x.duplicateCancelConfirmDescription,
|
|
121
|
+
cancelConfirmButton: x.duplicateCancelConfirmButton,
|
|
122
|
+
cancelConfirmBackButton: x.duplicateCancelConfirmBackButton,
|
|
123
|
+
dismissedToast: x.duplicateDismissedToast,
|
|
124
|
+
cancelledToast: x.duplicateCancelledToast,
|
|
125
|
+
actionFailedToast: x.duplicateActionFailedToast,
|
|
126
|
+
groupHeader: x.duplicateGroupHeader,
|
|
127
|
+
groupInvoice: x.duplicateGroupInvoice,
|
|
128
|
+
showMore: x.duplicateShowMore,
|
|
129
|
+
showLess: x.duplicateShowLess,
|
|
130
|
+
statusSummary: x.duplicateStatusSummary,
|
|
131
|
+
statusCount: x.duplicateStatusCount,
|
|
132
|
+
pageInfo: x.duplicatePageInfo
|
|
133
|
+
}), [
|
|
134
|
+
x.duplicateMenuTrigger,
|
|
135
|
+
x.duplicateNotDuplicateAction,
|
|
136
|
+
x.duplicateNotDuplicateConfirmTitle,
|
|
137
|
+
x.duplicateNotDuplicateConfirmDescription,
|
|
138
|
+
x.duplicateNotDuplicateConfirmButton,
|
|
139
|
+
x.duplicateNotDuplicateConfirmBackButton,
|
|
140
|
+
x.duplicateDeleteAction,
|
|
141
|
+
x.duplicateDeleteConfirmTitle,
|
|
142
|
+
x.duplicateDeleteConfirmDescription,
|
|
143
|
+
x.duplicateDeleteConfirmButton,
|
|
144
|
+
x.duplicateDeletedToast,
|
|
145
|
+
x.duplicateConfirmAction,
|
|
146
|
+
x.duplicateConfirmDuplicateTitle,
|
|
147
|
+
x.duplicateConfirmDuplicateDescription,
|
|
148
|
+
x.duplicateConfirmDuplicateButton,
|
|
149
|
+
x.duplicateConfirmedToast,
|
|
150
|
+
x.duplicateCancelAction,
|
|
151
|
+
x.duplicateCancelConfirmTitle,
|
|
152
|
+
x.duplicateCancelConfirmDescription,
|
|
153
|
+
x.duplicateCancelConfirmButton,
|
|
154
|
+
x.duplicateCancelConfirmBackButton,
|
|
155
|
+
x.duplicateDismissedToast,
|
|
156
|
+
x.duplicateCancelledToast,
|
|
157
|
+
x.duplicateActionFailedToast,
|
|
158
|
+
x.duplicateGroupHeader,
|
|
159
|
+
x.duplicateGroupInvoice,
|
|
160
|
+
x.duplicateShowMore,
|
|
161
|
+
x.duplicateShowLess,
|
|
162
|
+
x.duplicateStatusSummary,
|
|
163
|
+
x.duplicateStatusCount,
|
|
164
|
+
x.duplicatePageInfo
|
|
165
|
+
]), N = t(T?.scopes, [n.MailboxReadOrg]), { mailboxAddress: P } = ee({
|
|
166
|
+
relatedObjectType: "payable",
|
|
167
|
+
enabled: N && !E
|
|
168
|
+
}), F = N ? P : void 0, I = f({
|
|
169
|
+
enabled: k,
|
|
170
|
+
canPay: j,
|
|
171
|
+
canReadVendors: M,
|
|
172
|
+
isVendorFilterPaused: E,
|
|
173
|
+
filterLabels: x.filters,
|
|
174
|
+
onOpenBill: fe ?? de,
|
|
175
|
+
duplicateFlagLabel: x.duplicateFlag,
|
|
176
|
+
duplicateGroupLabels: Ce,
|
|
177
|
+
canManageDuplicates: A,
|
|
178
|
+
attentionView: C,
|
|
179
|
+
canReadPaymentRecords: Se,
|
|
180
|
+
failedPaymentLabel: x.failedPaymentRowLabel,
|
|
181
|
+
scheduledStatusLabels: x.scheduledStatus,
|
|
182
|
+
dueDateLabels: x.dueDate,
|
|
183
|
+
selectedSummaryCard: ge,
|
|
184
|
+
onSummaryCardChange: _e,
|
|
185
|
+
selectedQueue: ve,
|
|
186
|
+
onQueueChange: ye
|
|
187
|
+
}), L = p({ enabled: k }), R = C === d.PossibleDuplicates, z = C === d.FailedPayments, B = se({ enabled: k && j === !0 }), V = oe({
|
|
188
|
+
enabled: k,
|
|
189
|
+
canPay: j
|
|
190
|
+
}), H = ce({
|
|
191
|
+
enabled: k,
|
|
192
|
+
labels: x.summaryCards,
|
|
193
|
+
selectedCard: I.summaryCard
|
|
194
|
+
}), we = h(() => a.map((e) => ({
|
|
195
|
+
id: e,
|
|
196
|
+
label: x.queues[e],
|
|
197
|
+
badge: e === o.AssignedToMe ? re(V) : void 0
|
|
198
|
+
})), [x.queues, V]), { clearQueryConstraints: U, onFilterTabChange: W } = I, Te = m(() => {
|
|
199
|
+
U(), w(d.PossibleDuplicates);
|
|
200
|
+
}, [U]), Ee = m(() => {
|
|
201
|
+
U(), w(d.FailedPayments);
|
|
202
|
+
}, [U]), G = m(() => {
|
|
203
|
+
w(d.AllBills), W(o.All);
|
|
204
|
+
}, [W]), De = m((e) => {
|
|
205
|
+
w(d.AllBills), W(e);
|
|
206
|
+
}, [W]), Oe = !L.isError && L.groupCount > 0, ke = A && Oe, Ae = !L.isLoading && !L.isError && L.count === 0;
|
|
207
|
+
R && (Ae || I.summaryCard) && G();
|
|
208
|
+
let K = B.count ?? 0, je = j === !1 || j === !0 && B.count === 0;
|
|
209
|
+
z && (je || I.summaryCard) && G();
|
|
210
|
+
let Me = [...j === !0 && K > 0 && !I.isFailedPaymentCheckError ? [{
|
|
211
|
+
id: "failedPayments",
|
|
212
|
+
label: x.attentionFailedPayments(K),
|
|
213
|
+
tone: "destructive",
|
|
214
|
+
icon: /* @__PURE__ */ v(ne, {}),
|
|
215
|
+
pressed: z,
|
|
216
|
+
onToggle: z ? G : Ee
|
|
217
|
+
}] : [], ...ke ? [{
|
|
218
|
+
id: "duplicates",
|
|
219
|
+
label: x.attentionDuplicates(L.groupCount, L.isCapped),
|
|
220
|
+
tone: "warning",
|
|
221
|
+
icon: /* @__PURE__ */ v(te, {}),
|
|
222
|
+
pressed: R,
|
|
223
|
+
onToggle: R ? G : Te
|
|
224
|
+
}] : []], q = y?.screen, Ne = h(() => ({
|
|
225
|
+
...q,
|
|
226
|
+
createButton: x.createButton,
|
|
227
|
+
addBill: {
|
|
228
|
+
...q?.addBill,
|
|
229
|
+
heading: x.nonEmptyHeading
|
|
230
|
+
},
|
|
231
|
+
...R ? {
|
|
232
|
+
columnAddedOn: x.duplicateColumnCreated,
|
|
233
|
+
columnAmountDue: x.duplicateColumnAmount
|
|
234
|
+
} : {}
|
|
235
|
+
}), [
|
|
236
|
+
R,
|
|
237
|
+
x.duplicateColumnCreated,
|
|
238
|
+
x.duplicateColumnAmount,
|
|
239
|
+
q,
|
|
240
|
+
x.createButton,
|
|
241
|
+
x.nonEmptyHeading
|
|
242
|
+
]), Pe = h(() => ({
|
|
243
|
+
...I.filterBarProps,
|
|
244
|
+
labels: x.filterBar
|
|
245
|
+
}), [I.filterBarProps, x.filterBar]), J = () => {
|
|
246
|
+
S(!1), pe?.();
|
|
247
|
+
}, Y = (e) => {
|
|
248
|
+
S(!1), me?.(e);
|
|
249
|
+
}, X = F ? {
|
|
250
|
+
emailAddress: F,
|
|
251
|
+
onCopyEmail: async () => {
|
|
252
|
+
F && (await ie(F) ? e.success(x.emailCopiedToast) : e.error(x.emailCopyFailedToast));
|
|
253
|
+
}
|
|
254
|
+
} : {
|
|
255
|
+
emailAddress: void 0,
|
|
256
|
+
onCopyEmail: void 0
|
|
257
|
+
}, { showVendorBills: Z } = I, Q = m((e) => {
|
|
258
|
+
w(d.AllBills), Z(e);
|
|
259
|
+
}, [Z]), $ = m(() => S(!0), []);
|
|
260
|
+
return le(be, () => ({
|
|
261
|
+
showVendorBills: Q,
|
|
262
|
+
openAddBill: $
|
|
263
|
+
}), [Q, $]), /* @__PURE__ */ ue(_, { children: [
|
|
264
|
+
/* @__PURE__ */ v(u, {
|
|
265
|
+
rows: I.rows,
|
|
266
|
+
isLoading: I.isLoading || !T,
|
|
267
|
+
isError: I.isError,
|
|
268
|
+
onRetry: I.onRetry,
|
|
269
|
+
sorting: I.sorting,
|
|
270
|
+
onSortingChange: I.onSortingChange,
|
|
271
|
+
pageSize: I.pageSize,
|
|
272
|
+
onPageSizeChange: I.onPageSizeChange,
|
|
273
|
+
pageSizeOptions: I.pageSizeOptions,
|
|
274
|
+
hasNextPage: I.hasNextPage,
|
|
275
|
+
hasPrevPage: I.hasPrevPage,
|
|
276
|
+
onNextPage: I.onNextPage,
|
|
277
|
+
onPrevPage: I.onPrevPage,
|
|
278
|
+
filterTabs: we,
|
|
279
|
+
selectedFilterTabId: I.selectedFilterTabId,
|
|
280
|
+
onFilterTabChange: De,
|
|
281
|
+
searchValue: I.searchValue,
|
|
282
|
+
onSearchChange: I.onSearchChange,
|
|
283
|
+
filters: Pe,
|
|
284
|
+
visibleColumns: I.visibleColumns,
|
|
285
|
+
keepsColumnOrder: I.keepsColumnOrder,
|
|
286
|
+
isSortable: I.isSortable,
|
|
287
|
+
pageInfo: z && B.count !== void 0 ? x.failedPaymentsPageInfo({
|
|
288
|
+
shown: I.rows.length,
|
|
289
|
+
total: B.count
|
|
290
|
+
}) : I.pageInfo,
|
|
291
|
+
cellTestIds: ae,
|
|
292
|
+
isSearchActive: I.isSearchActive,
|
|
293
|
+
showAddPanelWhenEmpty: I.showAddPanelWhenEmpty,
|
|
294
|
+
emptyState: R ? x.duplicatesEmptyState : z ? x.failedPaymentsEmptyState : x.queueEmptyStates[I.selectedFilterTabId],
|
|
295
|
+
onCreateClick: A ? () => S(!0) : void 0,
|
|
296
|
+
headerActionContainer: he,
|
|
297
|
+
onEnterManually: A ? J : void 0,
|
|
298
|
+
onFilesSelected: A ? Y : void 0,
|
|
299
|
+
maxFiles: b,
|
|
300
|
+
...X,
|
|
301
|
+
summaryCards: H ? {
|
|
302
|
+
view: H,
|
|
303
|
+
labels: {
|
|
304
|
+
group: x.summaryCards.group,
|
|
305
|
+
loading: x.summaryCards.loading,
|
|
306
|
+
info: x.summaryCards.info
|
|
307
|
+
},
|
|
308
|
+
onSelect: I.onSummaryCardSelect
|
|
309
|
+
} : void 0,
|
|
310
|
+
attentionStrip: {
|
|
311
|
+
label: x.attentionStripLabel,
|
|
312
|
+
items: Me
|
|
313
|
+
},
|
|
314
|
+
attentionView: R ? {
|
|
315
|
+
backLabel: x.queues[o.All],
|
|
316
|
+
backAccessibleLabel: x.attentionBackAccessible,
|
|
317
|
+
title: x.duplicatesViewTitle,
|
|
318
|
+
tone: "warning",
|
|
319
|
+
onBack: G
|
|
320
|
+
} : z ? {
|
|
321
|
+
backLabel: x.queues[o.All],
|
|
322
|
+
backAccessibleLabel: x.attentionBackAccessible,
|
|
323
|
+
title: x.failedPaymentsViewTitle,
|
|
324
|
+
tone: "destructive",
|
|
325
|
+
onBack: G
|
|
326
|
+
} : void 0,
|
|
327
|
+
labels: Ne
|
|
328
|
+
}),
|
|
329
|
+
/* @__PURE__ */ v(c, {
|
|
330
|
+
open: I.cancelConfirmation.open,
|
|
331
|
+
copy: I.cancelConfirmation.copy,
|
|
332
|
+
onConfirm: I.cancelConfirmation.onConfirm,
|
|
333
|
+
onCancel: I.cancelConfirmation.onCancel,
|
|
334
|
+
isPending: I.cancelConfirmation.isPending,
|
|
335
|
+
labels: { cancelButton: I.cancelConfirmation.cancelButtonLabel }
|
|
336
|
+
}),
|
|
337
|
+
/* @__PURE__ */ v(c, {
|
|
338
|
+
open: I.keepConfirmation.open,
|
|
339
|
+
copy: I.keepConfirmation.copy,
|
|
340
|
+
onConfirm: I.keepConfirmation.onConfirm,
|
|
341
|
+
onCancel: I.keepConfirmation.onCancel,
|
|
342
|
+
isPending: I.keepConfirmation.isPending,
|
|
343
|
+
labels: { cancelButton: I.keepConfirmation.cancelButtonLabel }
|
|
344
|
+
}),
|
|
345
|
+
A ? /* @__PURE__ */ v(l, {
|
|
346
|
+
open: xe,
|
|
347
|
+
onOpenChange: S,
|
|
348
|
+
onFilesSelected: Y,
|
|
349
|
+
maxFiles: b,
|
|
350
|
+
onEnterManually: J,
|
|
351
|
+
...X,
|
|
352
|
+
dialogLabels: y?.addBillDialog?.dialog,
|
|
353
|
+
labels: {
|
|
354
|
+
...y?.addBillDialog?.panel,
|
|
355
|
+
heading: I.hasAnyBills ? x.nonEmptyHeading : x.emptyHeading
|
|
356
|
+
}
|
|
357
|
+
}) : null
|
|
358
|
+
] });
|
|
359
|
+
}
|
|
360
|
+
export { y as BillsList, y as default };
|
|
@@ -1,38 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
"use client";
|
|
5
|
-
import { useAnalyticsTrack as e } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
-
import { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
7
|
-
import "../../../../shared/feature/dist/index.js";
|
|
8
|
-
import { BillsList as n } from "./index18.js";
|
|
1
|
+
import "./index5.js";
|
|
2
|
+
import "./index7.js";
|
|
3
|
+
import "./index12.js";
|
|
9
4
|
import "./index19.js";
|
|
10
|
-
import
|
|
11
|
-
import { useEffect as a } from "react";
|
|
12
|
-
import { jsx as o } from "react/jsx-runtime";
|
|
13
|
-
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js
|
|
14
|
-
function s(t) {
|
|
15
|
-
let i = e();
|
|
16
|
-
return a(() => {
|
|
17
|
-
i(r.Mounted);
|
|
18
|
-
}, [i]), /* @__PURE__ */ o(n, { ...t });
|
|
19
|
-
}
|
|
20
|
-
function c({ baseUrl: e, widgetToken: n, organizationId: r, configClient: a, gatewayRouting: c, linkComponent: l, uiFramework: u, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
21
|
-
return /* @__PURE__ */ o(t, {
|
|
22
|
-
widgetName: i,
|
|
23
|
-
baseUrl: e,
|
|
24
|
-
widgetToken: n,
|
|
25
|
-
organizationId: r,
|
|
26
|
-
configClient: a,
|
|
27
|
-
gatewayRouting: c,
|
|
28
|
-
linkComponent: l,
|
|
29
|
-
uiFramework: u,
|
|
30
|
-
errorFallback: d,
|
|
31
|
-
onError: f,
|
|
32
|
-
analytics: p,
|
|
33
|
-
disclosuresAcceptance: m,
|
|
34
|
-
providerLabels: h,
|
|
35
|
-
children: /* @__PURE__ */ o(s, { ...g })
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
export { c as BillsListWidget };
|
|
5
|
+
import "./index20.js";
|
|
@@ -1 +1,5 @@
|
|
|
1
|
-
import "
|
|
1
|
+
import { BILL_PAY_WIDGET_NAME as e } from "../../../util/dist/lib/widgetName.js";
|
|
2
|
+
import "../../../util/dist/index.js";
|
|
3
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js
|
|
4
|
+
var t = `${e}.bills_list`, n = { Mounted: `${t}.mounted` };
|
|
5
|
+
export { n as BillsListWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { useAnalyticsTrack as e } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
6
|
+
import { WidgetProvider as t } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
7
|
+
import "../../../../shared/feature/dist/index.js";
|
|
8
|
+
import { BillsList as n } from "./index20.js";
|
|
9
|
+
import "./index21.js";
|
|
10
|
+
import { BillsListWidgetAnalyticsEvent as r, WIDGET_NAME as i } from "./index22.js";
|
|
11
|
+
import { useEffect as a } from "react";
|
|
12
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
13
|
+
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index23.js
|
|
14
|
+
function s(t) {
|
|
15
|
+
let i = e();
|
|
16
|
+
return a(() => {
|
|
17
|
+
i(r.Mounted);
|
|
18
|
+
}, [i]), /* @__PURE__ */ o(n, { ...t });
|
|
19
|
+
}
|
|
20
|
+
function c({ baseUrl: e, widgetToken: n, organizationId: r, configClient: a, gatewayRouting: c, linkComponent: l, uiFramework: u, errorFallback: d, onError: f, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
|
|
21
|
+
return /* @__PURE__ */ o(t, {
|
|
22
|
+
widgetName: i,
|
|
23
|
+
baseUrl: e,
|
|
24
|
+
widgetToken: n,
|
|
25
|
+
organizationId: r,
|
|
26
|
+
configClient: a,
|
|
27
|
+
gatewayRouting: c,
|
|
28
|
+
linkComponent: l,
|
|
29
|
+
uiFramework: u,
|
|
30
|
+
errorFallback: d,
|
|
31
|
+
onError: f,
|
|
32
|
+
analytics: p,
|
|
33
|
+
disclosuresAcceptance: m,
|
|
34
|
+
providerLabels: h,
|
|
35
|
+
children: /* @__PURE__ */ o(s, { ...g })
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
export { c as BillsListWidget };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index23.js";
|
|
@@ -45,7 +45,15 @@ var n = {
|
|
|
45
45
|
summaryCards: o,
|
|
46
46
|
attentionStripLabel: "Needs attention",
|
|
47
47
|
attentionDuplicates: (e, t) => `${e}${t ? "+" : ""} possible ${e === 1 && !t ? "duplicate" : "duplicates"}`,
|
|
48
|
+
attentionFailedPayments: (e) => i(e, "failed payment", "failed payments"),
|
|
48
49
|
attentionBackAccessible: "Back to all bills",
|
|
50
|
+
failedPaymentsViewTitle: "Failed payments",
|
|
51
|
+
failedPaymentsEmptyState: {
|
|
52
|
+
title: "No failed payments",
|
|
53
|
+
description: "There are no bills with failed payments."
|
|
54
|
+
},
|
|
55
|
+
failedPaymentsPageInfo: ({ shown: e, total: t }) => `${e} of ${i(t, "bill", "bills")} shown`,
|
|
56
|
+
failedPaymentRowLabel: (e) => e ? `Payment failed: ${e}` : "Payment failed",
|
|
49
57
|
duplicatesViewTitle: "Possible duplicates",
|
|
50
58
|
duplicateFlag: "Possible duplicate",
|
|
51
59
|
duplicatesEmptyState: {
|
|
@@ -8,6 +8,8 @@ var t = {
|
|
|
8
8
|
[e.Status]: "bill-pay-bills-cell-status",
|
|
9
9
|
[e.AmountDue]: "bill-pay-bills-cell-amount-due",
|
|
10
10
|
[e.TotalAmount]: "bill-pay-bills-cell-total-amount",
|
|
11
|
-
[e.AddedOn]: "bill-pay-bills-cell-added-on"
|
|
11
|
+
[e.AddedOn]: "bill-pay-bills-cell-added-on",
|
|
12
|
+
[e.FailedReason]: "bill-pay-bills-cell-failed-reason",
|
|
13
|
+
[e.PaymentAmount]: "bill-pay-bills-cell-payment-amount"
|
|
12
14
|
};
|
|
13
15
|
export { t as billsTableCellTestIds };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js
CHANGED
|
@@ -21,6 +21,8 @@ var i = ".pdf,.png,.jpg,.jpeg,.doc,.docx", a = {
|
|
|
21
21
|
columnTotalAmount: "Amount",
|
|
22
22
|
columnStatus: "Status",
|
|
23
23
|
columnAddedOn: "Created",
|
|
24
|
+
columnFailedReason: "Failed reason",
|
|
25
|
+
columnPaymentAmount: "Payment amount",
|
|
24
26
|
columnActions: "Actions",
|
|
25
27
|
openRow: (e) => `View bill — ${e}`,
|
|
26
28
|
vendorResolving: "Loading vendor",
|