@tesouro/embedded-components-react 0.11.183 → 0.11.187
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.css +8 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index6.js +31 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index7.js +5 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +143 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +33 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +15 -48
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +76 -254
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +48 -34
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +241 -438
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +29 -298
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +460 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +327 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +3 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +30 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index10.js +2 -200
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +38 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index12.js +10 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index13.js +196 -11
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index14.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +9 -15
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +2 -54
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index19.js +20 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +2 -460
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +54 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js +17 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +463 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index24.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index8.js +5 -36
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index9.js +28 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/queryKeys.js +8 -5
- 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/mocks/billPay.js +11 -9
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +7 -8
- package/dist/packages/shared-ui-shadcn/dist/index.js +3623 -3539
- package/package.json +1 -1
|
@@ -1,5 +1,328 @@
|
|
|
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 te, useWidgetInitStaleForToken as ne } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
12
|
+
import "../../../../shared/feature/dist/index.js";
|
|
13
|
+
import { BILL_STATUS_BADGE_LABELS_EN as r } from "../../../../shared/document-status/ui/dist/index2.js";
|
|
14
|
+
import "../../../../shared/document-status/ui/dist/index.js";
|
|
15
|
+
import { BillDecisionDialog as i } from "../../../ui/dist/index4.js";
|
|
16
|
+
import { BillDuplicateIcon as a } from "../../../ui/dist/index6.js";
|
|
17
|
+
import "../../../ui/dist/index.js";
|
|
18
|
+
import { AddBillDialog as re } from "../../ui/dist/index6.js";
|
|
19
|
+
import { BillsScreen as ie } from "../../ui/dist/index23.js";
|
|
20
|
+
import "../../ui/dist/index.js";
|
|
21
|
+
import { BILL_QUEUE_ORDER as o, BillQueue as s } from "./index5.js";
|
|
22
|
+
import { BILLS_TAB_LABELS_EN as c } from "./index7.js";
|
|
23
|
+
import { BillDuplicateView as l, useBillsTable as u } from "./index17.js";
|
|
24
|
+
import { useDuplicateBillsCount as d } from "./index2.js";
|
|
25
|
+
import { formatBillQueueBadge as ae } from "./index3.js";
|
|
26
|
+
import { copyTextToClipboard as oe } from "./index6.js";
|
|
27
|
+
import { billsTableCellTestIds as se } from "./index8.js";
|
|
28
|
+
import { useBillQueueCounts as ce } from "./index9.js";
|
|
29
|
+
import { useBillSummaryCards as le } from "./index11.js";
|
|
30
|
+
import { useCallback as f, useImperativeHandle as ue, useMemo as p, useState as m } from "react";
|
|
31
|
+
import { Fragment as de, jsx as h, jsxs as fe } from "react/jsx-runtime";
|
|
3
32
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js
|
|
4
|
-
var
|
|
5
|
-
|
|
33
|
+
var pe = () => void 0;
|
|
34
|
+
function g({ labels: g, onOpenBill: _, onEnterManually: v, onFilesSelected: y, maxFiles: b, headerActionContainer: me, ref: he }) {
|
|
35
|
+
let x = p(() => ({
|
|
36
|
+
...c,
|
|
37
|
+
...g,
|
|
38
|
+
queues: {
|
|
39
|
+
...c.queues,
|
|
40
|
+
...g?.queues
|
|
41
|
+
},
|
|
42
|
+
summaryCards: {
|
|
43
|
+
...c.summaryCards,
|
|
44
|
+
...g?.summaryCards,
|
|
45
|
+
statusCount: {
|
|
46
|
+
...c.summaryCards.statusCount,
|
|
47
|
+
...g?.summaryCards?.statusCount
|
|
48
|
+
},
|
|
49
|
+
stageCount: {
|
|
50
|
+
...c.summaryCards.stageCount,
|
|
51
|
+
...g?.summaryCards?.stageCount
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
scheduledRelativeDay: {
|
|
55
|
+
...c.scheduledRelativeDay,
|
|
56
|
+
...g?.scheduledRelativeDay
|
|
57
|
+
},
|
|
58
|
+
dueDate: {
|
|
59
|
+
...c.dueDate,
|
|
60
|
+
...g?.dueDate
|
|
61
|
+
},
|
|
62
|
+
filters: {
|
|
63
|
+
...c.filters,
|
|
64
|
+
...g?.filters,
|
|
65
|
+
presets: {
|
|
66
|
+
...c.filters.presets,
|
|
67
|
+
...g?.filters?.presets
|
|
68
|
+
},
|
|
69
|
+
statuses: {
|
|
70
|
+
...c.filters.statuses,
|
|
71
|
+
...g?.filters?.statuses
|
|
72
|
+
},
|
|
73
|
+
dateFieldNames: {
|
|
74
|
+
...c.filters.dateFieldNames,
|
|
75
|
+
...g?.filters?.dateFieldNames
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
filterBar: {
|
|
79
|
+
...c.filterBar,
|
|
80
|
+
...g?.filterBar
|
|
81
|
+
},
|
|
82
|
+
duplicatesEmptyState: {
|
|
83
|
+
...c.duplicatesEmptyState,
|
|
84
|
+
...g?.duplicatesEmptyState
|
|
85
|
+
},
|
|
86
|
+
queueEmptyStates: o.reduce((e, t) => ({
|
|
87
|
+
...e,
|
|
88
|
+
[t]: {
|
|
89
|
+
...c.queueEmptyStates[t],
|
|
90
|
+
...g?.queueEmptyStates?.[t]
|
|
91
|
+
}
|
|
92
|
+
}), {})
|
|
93
|
+
}), [g]), [ge, S] = m(!1), [C, w] = m(l.AllBills), { initResponse: T } = te(), E = ne(), 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]), N = g?.screen?.statusBadge, P = p(() => ({
|
|
94
|
+
...r,
|
|
95
|
+
...N
|
|
96
|
+
}), [N]), F = p(() => ({
|
|
97
|
+
menuTrigger: x.duplicateMenuTrigger,
|
|
98
|
+
notDuplicateAction: x.duplicateNotDuplicateAction,
|
|
99
|
+
notDuplicateConfirmTitle: x.duplicateNotDuplicateConfirmTitle,
|
|
100
|
+
notDuplicateConfirmDescription: x.duplicateNotDuplicateConfirmDescription,
|
|
101
|
+
notDuplicateConfirmButton: x.duplicateNotDuplicateConfirmButton,
|
|
102
|
+
notDuplicateConfirmBackButton: x.duplicateNotDuplicateConfirmBackButton,
|
|
103
|
+
deleteAction: x.duplicateDeleteAction,
|
|
104
|
+
deleteConfirmTitle: x.duplicateDeleteConfirmTitle,
|
|
105
|
+
deleteConfirmDescription: x.duplicateDeleteConfirmDescription,
|
|
106
|
+
deleteConfirmButton: x.duplicateDeleteConfirmButton,
|
|
107
|
+
deletedToast: x.duplicateDeletedToast,
|
|
108
|
+
confirmAction: x.duplicateConfirmAction,
|
|
109
|
+
confirmDuplicateTitle: x.duplicateConfirmDuplicateTitle,
|
|
110
|
+
confirmDuplicateDescription: x.duplicateConfirmDuplicateDescription,
|
|
111
|
+
confirmDuplicateButton: x.duplicateConfirmDuplicateButton,
|
|
112
|
+
confirmedToast: x.duplicateConfirmedToast,
|
|
113
|
+
cancelAction: x.duplicateCancelAction,
|
|
114
|
+
cancelConfirmTitle: x.duplicateCancelConfirmTitle,
|
|
115
|
+
cancelConfirmDescription: x.duplicateCancelConfirmDescription,
|
|
116
|
+
cancelConfirmButton: x.duplicateCancelConfirmButton,
|
|
117
|
+
cancelConfirmBackButton: x.duplicateCancelConfirmBackButton,
|
|
118
|
+
dismissedToast: x.duplicateDismissedToast,
|
|
119
|
+
cancelledToast: x.duplicateCancelledToast,
|
|
120
|
+
actionFailedToast: x.duplicateActionFailedToast,
|
|
121
|
+
groupHeader: x.duplicateGroupHeader,
|
|
122
|
+
groupInvoice: x.duplicateGroupInvoice,
|
|
123
|
+
showMore: x.duplicateShowMore,
|
|
124
|
+
showLess: x.duplicateShowLess,
|
|
125
|
+
statusSummary: x.duplicateStatusSummary,
|
|
126
|
+
statusLabels: P,
|
|
127
|
+
pageInfo: x.duplicatePageInfo
|
|
128
|
+
}), [
|
|
129
|
+
x.duplicateMenuTrigger,
|
|
130
|
+
x.duplicateNotDuplicateAction,
|
|
131
|
+
x.duplicateNotDuplicateConfirmTitle,
|
|
132
|
+
x.duplicateNotDuplicateConfirmDescription,
|
|
133
|
+
x.duplicateNotDuplicateConfirmButton,
|
|
134
|
+
x.duplicateNotDuplicateConfirmBackButton,
|
|
135
|
+
x.duplicateDeleteAction,
|
|
136
|
+
x.duplicateDeleteConfirmTitle,
|
|
137
|
+
x.duplicateDeleteConfirmDescription,
|
|
138
|
+
x.duplicateDeleteConfirmButton,
|
|
139
|
+
x.duplicateDeletedToast,
|
|
140
|
+
x.duplicateConfirmAction,
|
|
141
|
+
x.duplicateConfirmDuplicateTitle,
|
|
142
|
+
x.duplicateConfirmDuplicateDescription,
|
|
143
|
+
x.duplicateConfirmDuplicateButton,
|
|
144
|
+
x.duplicateConfirmedToast,
|
|
145
|
+
x.duplicateCancelAction,
|
|
146
|
+
x.duplicateCancelConfirmTitle,
|
|
147
|
+
x.duplicateCancelConfirmDescription,
|
|
148
|
+
x.duplicateCancelConfirmButton,
|
|
149
|
+
x.duplicateCancelConfirmBackButton,
|
|
150
|
+
x.duplicateDismissedToast,
|
|
151
|
+
x.duplicateCancelledToast,
|
|
152
|
+
x.duplicateActionFailedToast,
|
|
153
|
+
x.duplicateGroupHeader,
|
|
154
|
+
x.duplicateGroupInvoice,
|
|
155
|
+
x.duplicateShowMore,
|
|
156
|
+
x.duplicateShowLess,
|
|
157
|
+
x.duplicateStatusSummary,
|
|
158
|
+
P,
|
|
159
|
+
x.duplicatePageInfo
|
|
160
|
+
]), I = t(T?.scopes, [n.MailboxReadOrg]), { mailboxAddress: L } = ee({
|
|
161
|
+
relatedObjectType: "payable",
|
|
162
|
+
enabled: I && !E
|
|
163
|
+
}), R = I ? L : void 0, z = u({
|
|
164
|
+
enabled: k,
|
|
165
|
+
canPay: j,
|
|
166
|
+
canReadVendors: M,
|
|
167
|
+
isVendorFilterPaused: E,
|
|
168
|
+
filterLabels: x.filters,
|
|
169
|
+
onOpenBill: _ ?? pe,
|
|
170
|
+
duplicateRowNote: x.duplicateRowNote,
|
|
171
|
+
attachmentLabel: x.attachmentIndicator,
|
|
172
|
+
duplicateGroupLabels: F,
|
|
173
|
+
canManageDuplicates: A,
|
|
174
|
+
duplicateView: C,
|
|
175
|
+
scheduledRelativeDayLabels: x.scheduledRelativeDay,
|
|
176
|
+
dueDateLabels: x.dueDate
|
|
177
|
+
}), B = d({ enabled: k }), V = C === l.PossibleDuplicates, H = ce({
|
|
178
|
+
enabled: k,
|
|
179
|
+
canPay: j
|
|
180
|
+
}), U = le({
|
|
181
|
+
enabled: k,
|
|
182
|
+
labels: x.summaryCards
|
|
183
|
+
}), _e = p(() => o.map((e) => ({
|
|
184
|
+
id: e,
|
|
185
|
+
label: x.queues[e],
|
|
186
|
+
badge: ae(H[e])
|
|
187
|
+
})), [x.queues, H]), { clearQueryConstraints: W, onFilterTabChange: G } = z, ve = f(() => {
|
|
188
|
+
W(), w(l.PossibleDuplicates);
|
|
189
|
+
}, [W]), K = f(() => {
|
|
190
|
+
w(l.AllBills), G(s.All);
|
|
191
|
+
}, [G]), ye = f((e) => {
|
|
192
|
+
w(l.AllBills), G(e);
|
|
193
|
+
}, [G]), be = !B.isError && B.groupCount > 0, xe = A && be, Se = !B.isLoading && !B.isError && B.count === 0;
|
|
194
|
+
V && Se && K();
|
|
195
|
+
let Ce = xe ? [{
|
|
196
|
+
id: "duplicates",
|
|
197
|
+
label: x.attentionDuplicates(B.groupCount, B.isCapped),
|
|
198
|
+
tone: "warning",
|
|
199
|
+
icon: /* @__PURE__ */ h(a, {}),
|
|
200
|
+
pressed: V,
|
|
201
|
+
onToggle: V ? K : ve
|
|
202
|
+
}] : [], q = g?.screen, we = p(() => ({
|
|
203
|
+
...q,
|
|
204
|
+
createButton: x.createButton,
|
|
205
|
+
addBill: {
|
|
206
|
+
...q?.addBill,
|
|
207
|
+
heading: x.nonEmptyHeading
|
|
208
|
+
},
|
|
209
|
+
...V ? {
|
|
210
|
+
columnAddedOn: x.duplicateColumnCreated,
|
|
211
|
+
columnAmountDue: x.duplicateColumnAmount
|
|
212
|
+
} : {}
|
|
213
|
+
}), [
|
|
214
|
+
V,
|
|
215
|
+
x.duplicateColumnCreated,
|
|
216
|
+
x.duplicateColumnAmount,
|
|
217
|
+
q,
|
|
218
|
+
x.createButton,
|
|
219
|
+
x.nonEmptyHeading
|
|
220
|
+
]), Te = p(() => ({
|
|
221
|
+
...z.filterBarProps,
|
|
222
|
+
labels: x.filterBar
|
|
223
|
+
}), [z.filterBarProps, x.filterBar]), J = () => {
|
|
224
|
+
S(!1), v?.();
|
|
225
|
+
}, Y = (e) => {
|
|
226
|
+
S(!1), y?.(e);
|
|
227
|
+
}, X = R ? {
|
|
228
|
+
emailAddress: R,
|
|
229
|
+
onCopyEmail: async () => {
|
|
230
|
+
R && (await oe(R) ? e.success(x.emailCopiedToast) : e.error(x.emailCopyFailedToast));
|
|
231
|
+
}
|
|
232
|
+
} : {
|
|
233
|
+
emailAddress: void 0,
|
|
234
|
+
onCopyEmail: void 0
|
|
235
|
+
}, { showVendorBills: Z } = z, Q = f((e) => {
|
|
236
|
+
w(l.AllBills), Z(e);
|
|
237
|
+
}, [Z]), $ = f(() => S(!0), []);
|
|
238
|
+
return ue(he, () => ({
|
|
239
|
+
showVendorBills: Q,
|
|
240
|
+
openAddBill: $
|
|
241
|
+
}), [Q, $]), /* @__PURE__ */ fe(de, { children: [
|
|
242
|
+
/* @__PURE__ */ h(ie, {
|
|
243
|
+
rows: z.rows,
|
|
244
|
+
isLoading: z.isLoading || !T,
|
|
245
|
+
isError: z.isError,
|
|
246
|
+
onRetry: z.onRetry,
|
|
247
|
+
sorting: z.sorting,
|
|
248
|
+
onSortingChange: z.onSortingChange,
|
|
249
|
+
pageSize: z.pageSize,
|
|
250
|
+
onPageSizeChange: z.onPageSizeChange,
|
|
251
|
+
pageSizeOptions: z.pageSizeOptions,
|
|
252
|
+
hasNextPage: z.hasNextPage,
|
|
253
|
+
hasPrevPage: z.hasPrevPage,
|
|
254
|
+
onNextPage: z.onNextPage,
|
|
255
|
+
onPrevPage: z.onPrevPage,
|
|
256
|
+
filterTabs: _e,
|
|
257
|
+
selectedFilterTabId: z.selectedFilterTabId,
|
|
258
|
+
onFilterTabChange: ye,
|
|
259
|
+
searchValue: z.searchValue,
|
|
260
|
+
onSearchChange: z.onSearchChange,
|
|
261
|
+
filters: Te,
|
|
262
|
+
visibleColumns: z.visibleColumns,
|
|
263
|
+
keepsColumnOrder: z.keepsColumnOrder,
|
|
264
|
+
isSortable: z.isSortable,
|
|
265
|
+
pageInfo: z.pageInfo,
|
|
266
|
+
cellTestIds: se,
|
|
267
|
+
isSearchActive: z.isSearchActive,
|
|
268
|
+
showAddPanelWhenEmpty: z.showAddPanelWhenEmpty,
|
|
269
|
+
emptyState: V ? x.duplicatesEmptyState : x.queueEmptyStates[z.selectedFilterTabId],
|
|
270
|
+
onCreateClick: A ? () => S(!0) : void 0,
|
|
271
|
+
headerActionContainer: me,
|
|
272
|
+
onEnterManually: A ? J : void 0,
|
|
273
|
+
onFilesSelected: A ? Y : void 0,
|
|
274
|
+
maxFiles: b,
|
|
275
|
+
...X,
|
|
276
|
+
summaryCards: U ? {
|
|
277
|
+
view: U,
|
|
278
|
+
labels: {
|
|
279
|
+
group: x.summaryCards.group,
|
|
280
|
+
loading: x.summaryCards.loading,
|
|
281
|
+
info: x.summaryCards.info
|
|
282
|
+
}
|
|
283
|
+
} : void 0,
|
|
284
|
+
attentionStrip: {
|
|
285
|
+
label: x.attentionStripLabel,
|
|
286
|
+
items: Ce
|
|
287
|
+
},
|
|
288
|
+
attentionView: V ? {
|
|
289
|
+
backLabel: x.queues[s.All],
|
|
290
|
+
backAccessibleLabel: x.attentionBackAccessible,
|
|
291
|
+
title: x.duplicatesViewTitle,
|
|
292
|
+
tone: "warning",
|
|
293
|
+
onBack: K
|
|
294
|
+
} : void 0,
|
|
295
|
+
labels: we
|
|
296
|
+
}),
|
|
297
|
+
/* @__PURE__ */ h(i, {
|
|
298
|
+
open: z.cancelConfirmation.open,
|
|
299
|
+
copy: z.cancelConfirmation.copy,
|
|
300
|
+
onConfirm: z.cancelConfirmation.onConfirm,
|
|
301
|
+
onCancel: z.cancelConfirmation.onCancel,
|
|
302
|
+
isPending: z.cancelConfirmation.isPending,
|
|
303
|
+
labels: { cancelButton: z.cancelConfirmation.cancelButtonLabel }
|
|
304
|
+
}),
|
|
305
|
+
/* @__PURE__ */ h(i, {
|
|
306
|
+
open: z.keepConfirmation.open,
|
|
307
|
+
copy: z.keepConfirmation.copy,
|
|
308
|
+
onConfirm: z.keepConfirmation.onConfirm,
|
|
309
|
+
onCancel: z.keepConfirmation.onCancel,
|
|
310
|
+
isPending: z.keepConfirmation.isPending,
|
|
311
|
+
labels: { cancelButton: z.keepConfirmation.cancelButtonLabel }
|
|
312
|
+
}),
|
|
313
|
+
A ? /* @__PURE__ */ h(re, {
|
|
314
|
+
open: ge,
|
|
315
|
+
onOpenChange: S,
|
|
316
|
+
onFilesSelected: Y,
|
|
317
|
+
maxFiles: b,
|
|
318
|
+
onEnterManually: J,
|
|
319
|
+
...X,
|
|
320
|
+
dialogLabels: g?.addBillDialog?.dialog,
|
|
321
|
+
labels: {
|
|
322
|
+
...g?.addBillDialog?.panel,
|
|
323
|
+
heading: z.hasAnyBills ? x.nonEmptyHeading : x.emptyHeading
|
|
324
|
+
}
|
|
325
|
+
}) : null
|
|
326
|
+
] });
|
|
327
|
+
}
|
|
328
|
+
export { g as BillsList, g as default };
|
|
@@ -1,38 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 "./index16.js";
|
|
1
|
+
import "./index5.js";
|
|
2
|
+
import "./index7.js";
|
|
9
3
|
import "./index17.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/index19.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 };
|
|
4
|
+
import "./index18.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/index20.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 "./index18.js";
|
|
9
|
+
import "./index19.js";
|
|
10
|
+
import { BillsListWidgetAnalyticsEvent as r, WIDGET_NAME as i } from "./index20.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/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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./index21.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BillStatusFilter as e, billStatusFilterApiValues as t } from "./index4.js";
|
|
2
|
-
import { BillColumn as n } from "../../ui/dist/
|
|
2
|
+
import { BillColumn as n } from "../../ui/dist/index22.js";
|
|
3
3
|
import "../../ui/dist/index.js";
|
|
4
4
|
// ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js
|
|
5
5
|
var r = {
|
|
@@ -29,7 +29,35 @@ var n = {
|
|
|
29
29
|
title: "No bills",
|
|
30
30
|
description: "Bills appear here as soon as they are added."
|
|
31
31
|
}
|
|
32
|
-
}, i = {
|
|
32
|
+
}, i = (e, t, n) => `${e} ${e === 1 ? t : n}`, a = (e) => e.length > 2 ? `${e.slice(0, -1).join(", ")}, and ${e[e.length - 1]}` : e.join(" and "), o = {
|
|
33
|
+
group: "Bill totals",
|
|
34
|
+
loading: "Loading bill totals",
|
|
35
|
+
info: "About {label}",
|
|
36
|
+
totalUnpaid: "Total unpaid",
|
|
37
|
+
overdue: "Overdue",
|
|
38
|
+
scheduled: "Scheduled",
|
|
39
|
+
notSubmitted: "Not submitted",
|
|
40
|
+
unavailable: "—",
|
|
41
|
+
billCount: (e) => i(e, "bill", "bills"),
|
|
42
|
+
statusCount: {
|
|
43
|
+
scheduled: (e) => `${e} scheduled`,
|
|
44
|
+
ready_to_pay: (e) => `${e} ready to pay`,
|
|
45
|
+
ready_to_submit: (e) => `${e} ready to submit`,
|
|
46
|
+
pending_approval: (e) => `${e} pending review`,
|
|
47
|
+
rejected: (e) => `${e} rejected`,
|
|
48
|
+
draft: (e) => i(e, "draft", "drafts")
|
|
49
|
+
},
|
|
50
|
+
stageCount: {
|
|
51
|
+
notSubmitted: (e) => `${e} not submitted`,
|
|
52
|
+
inApproval: (e) => `${e} in approval`,
|
|
53
|
+
readyToPay: (e) => `${e} ready to pay`,
|
|
54
|
+
scheduled: (e) => `${e} scheduled`
|
|
55
|
+
},
|
|
56
|
+
totalUnpaidDescription: ({ billCount: e, stages: t, overdueCount: n }) => `${e}: ${t.join(", ")}.${n ? ` ${n} of them ${n === 1 ? "is" : "are"} overdue.` : ""}`,
|
|
57
|
+
statusBreakdown: ({ billCount: e, statuses: t }) => `${e}, including ${a(t)}.`,
|
|
58
|
+
scheduledDescription: (e) => `${e} with payments scheduled`
|
|
59
|
+
}, s = {
|
|
60
|
+
summaryCards: o,
|
|
33
61
|
attentionStripLabel: "Needs attention",
|
|
34
62
|
attentionDuplicates: (e, t) => `${e}${t ? "+" : ""} possible ${e === 1 && !t ? "duplicate" : "duplicates"}`,
|
|
35
63
|
attentionBackAccessible: "Back to all bills",
|
|
@@ -87,4 +115,4 @@ var n = {
|
|
|
87
115
|
filters: {},
|
|
88
116
|
filterBar: {}
|
|
89
117
|
};
|
|
90
|
-
export {
|
|
118
|
+
export { s as BILLS_TAB_LABELS_EN, r as BILL_QUEUE_EMPTY_STATES_EN, n as BILL_QUEUE_LABELS_EN, o as BILL_SUMMARY_CARD_LABELS_EN };
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js
CHANGED
|
@@ -5,17 +5,20 @@ import "./index5.js";
|
|
|
5
5
|
import { AddBillDialog as e } from "./index6.js";
|
|
6
6
|
import "./index7.js";
|
|
7
7
|
import "./index8.js";
|
|
8
|
-
import
|
|
8
|
+
import "./index9.js";
|
|
9
9
|
import "./index10.js";
|
|
10
10
|
import "./index11.js";
|
|
11
|
-
import "./index12.js";
|
|
11
|
+
import { BillsFilterField as t } from "./index12.js";
|
|
12
12
|
import "./index13.js";
|
|
13
13
|
import "./index14.js";
|
|
14
14
|
import "./index15.js";
|
|
15
15
|
import "./index16.js";
|
|
16
16
|
import "./index17.js";
|
|
17
17
|
import "./index18.js";
|
|
18
|
-
import
|
|
19
|
-
import
|
|
18
|
+
import "./index19.js";
|
|
19
|
+
import "./index20.js";
|
|
20
20
|
import "./index21.js";
|
|
21
|
+
import { BillColumn as n } from "./index22.js";
|
|
22
|
+
import { BillsScreen as r } from "./index23.js";
|
|
23
|
+
import "./index24.js";
|
|
21
24
|
export { e as AddBillDialog, n as BillColumn, t as BillsFilterField, r as BillsScreen };
|