@tesouro/embedded-components-react 0.5.44 → 0.5.46
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/README.md +7 -5
- package/dist/index.d.ts +54 -24
- package/dist/lib/BankAccountOnboardingWidget.d.ts +15 -1
- package/dist/lib/BillPayWidget.d.ts +16 -1
- package/dist/lib/SettingsWidget.d.ts +1 -0
- package/dist/lib/WidgetSuite.d.ts +1 -0
- package/dist/lib/monite-sdk.d.ts +2 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +12 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +233 -211
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +7 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +387 -387
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +119 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +55 -70
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +9 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +163 -151
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +77 -77
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/ExpenseApprovalsPage.js +17 -10
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseApprovalPoliciesWidget/lib/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index382.js +10 -4
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index394.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index616.js +23 -23
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +13 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/help/ui/shadcn/dist/index3.js +27 -29
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/ApprovalPoliciesSettings.js +29 -28
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index11.js +13 -13
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +1933 -1906
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/scopes.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -37,6 +37,7 @@ var t = {
|
|
|
37
37
|
emptyHeading: "Add your first bill",
|
|
38
38
|
nonEmptyHeading: "Add a bill",
|
|
39
39
|
createButton: "Add bill",
|
|
40
|
+
settingsButton: "Bill pay settings",
|
|
40
41
|
emailCopiedToast: "Email address copied to clipboard",
|
|
41
42
|
emailCopyFailedToast: "Could not copy the email address",
|
|
42
43
|
queues: t,
|
|
@@ -17,124 +17,129 @@ import { DuplicateBillsContainer as te } from "./index12.js";
|
|
|
17
17
|
import "./index14.js";
|
|
18
18
|
import { BillCreateDialog as s } from "./index60.js";
|
|
19
19
|
import "./index61.js";
|
|
20
|
-
import { BillDetailsContainer as
|
|
20
|
+
import { BillDetailsContainer as c } from "./index63.js";
|
|
21
21
|
import "./index64.js";
|
|
22
22
|
import "./index70.js";
|
|
23
23
|
import "./index71.js";
|
|
24
|
-
import { BILL_QUEUE_ORDER as
|
|
25
|
-
import { BILLS_TAB_LABELS_EN as
|
|
26
|
-
import { useBillsTable as
|
|
27
|
-
import { copyTextToClipboard as
|
|
28
|
-
import { resolveDuplicateWarning as
|
|
29
|
-
import { billsTabTestIds as
|
|
30
|
-
import { useCallback as
|
|
31
|
-
import { jsx as
|
|
32
|
-
import { CalendarClockIcon as
|
|
24
|
+
import { BILL_QUEUE_ORDER as l, BillQueue as u } from "./index72.js";
|
|
25
|
+
import { BILLS_TAB_LABELS_EN as d } from "./index75.js";
|
|
26
|
+
import { useBillsTable as f } from "./index81.js";
|
|
27
|
+
import { copyTextToClipboard as p } from "./index73.js";
|
|
28
|
+
import { resolveDuplicateWarning as m } from "./index74.js";
|
|
29
|
+
import { billsTabTestIds as h, billsTableCellTestIds as ne } from "./index76.js";
|
|
30
|
+
import { useCallback as re, useEffect as ie, useMemo as g, useState as _ } from "react";
|
|
31
|
+
import { jsx as v, jsxs as y } from "react/jsx-runtime";
|
|
32
|
+
import { CalendarClockIcon as b, CheckIcon as x, FilePenIcon as S, ListIcon as C, LoaderCircleIcon as w } from "lucide-react";
|
|
33
33
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js
|
|
34
|
-
var
|
|
35
|
-
[
|
|
34
|
+
var T = "bills@business-banking.app", E = {
|
|
35
|
+
[u.Drafts]: /* @__PURE__ */ v(S, {
|
|
36
36
|
className: "ttw:size-4",
|
|
37
37
|
"aria-hidden": !0
|
|
38
38
|
}),
|
|
39
|
-
[
|
|
39
|
+
[u.Pending]: /* @__PURE__ */ v(w, {
|
|
40
40
|
className: "ttw:size-4",
|
|
41
41
|
"aria-hidden": !0
|
|
42
42
|
}),
|
|
43
|
-
[
|
|
43
|
+
[u.Scheduled]: /* @__PURE__ */ v(b, {
|
|
44
44
|
className: "ttw:size-4",
|
|
45
45
|
"aria-hidden": !0
|
|
46
46
|
}),
|
|
47
|
-
[
|
|
47
|
+
[u.Paid]: /* @__PURE__ */ v(x, {
|
|
48
48
|
className: "ttw:size-4",
|
|
49
49
|
"aria-hidden": !0
|
|
50
50
|
}),
|
|
51
|
-
[
|
|
51
|
+
[u.All]: /* @__PURE__ */ v(C, {
|
|
52
52
|
className: "ttw:size-4",
|
|
53
53
|
"aria-hidden": !0
|
|
54
54
|
})
|
|
55
55
|
};
|
|
56
|
-
function
|
|
57
|
-
let
|
|
56
|
+
function D({ labels: u, onEnqueueFiles: b, openPayableId: x, onOpenPayableHandled: S, poweredByBankName: C, onSettingsClick: w }) {
|
|
57
|
+
let D = g(() => ({
|
|
58
|
+
...d,
|
|
58
59
|
...u,
|
|
59
|
-
...l,
|
|
60
60
|
queues: {
|
|
61
|
-
...
|
|
62
|
-
...
|
|
61
|
+
...d.queues,
|
|
62
|
+
...u?.queues
|
|
63
63
|
},
|
|
64
64
|
filters: {
|
|
65
|
-
...
|
|
66
|
-
...
|
|
65
|
+
...d.filters,
|
|
66
|
+
...u?.filters,
|
|
67
67
|
presets: {
|
|
68
|
-
...
|
|
69
|
-
...
|
|
68
|
+
...d.filters.presets,
|
|
69
|
+
...u?.filters?.presets
|
|
70
70
|
},
|
|
71
71
|
statuses: {
|
|
72
|
-
...
|
|
73
|
-
...
|
|
72
|
+
...d.filters.statuses,
|
|
73
|
+
...u?.filters?.statuses
|
|
74
74
|
},
|
|
75
75
|
dateFieldNames: {
|
|
76
|
-
...
|
|
77
|
-
...
|
|
76
|
+
...d.filters.dateFieldNames,
|
|
77
|
+
...u?.filters?.dateFieldNames
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
filterBar: {
|
|
81
|
-
...
|
|
82
|
-
...
|
|
81
|
+
...d.filterBar,
|
|
82
|
+
...u?.filterBar
|
|
83
83
|
},
|
|
84
|
-
queueEmptyStates:
|
|
84
|
+
queueEmptyStates: l.reduce((e, t) => ({
|
|
85
85
|
...e,
|
|
86
86
|
[t]: {
|
|
87
|
-
...
|
|
88
|
-
...
|
|
87
|
+
...d.queueEmptyStates[t],
|
|
88
|
+
...u?.queueEmptyStates?.[t]
|
|
89
89
|
}
|
|
90
90
|
}), {})
|
|
91
|
-
}), [
|
|
92
|
-
if (t &&
|
|
93
|
-
|
|
91
|
+
}), [u]), [ae, O] = _(!1), [oe, k] = _(), [A, j] = _(!1), [M, N] = _(), [P, F] = _(!1), [I, L] = _(!1), [R, z] = _(!1), { initResponse: B } = ee(), V = r(), H = t(B?.scopes, [n.PayableReadOrg]), U = t(B?.scopes, [n.PayableWriteOrg]), W = !B || H, G = !B || U, K = re((e, t) => {
|
|
92
|
+
if (t && G) {
|
|
93
|
+
k(e), j(!0);
|
|
94
94
|
return;
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
}, [
|
|
98
|
-
enabled:
|
|
99
|
-
canReadVendors:
|
|
100
|
-
isVendorFilterPaused:
|
|
101
|
-
filterLabels:
|
|
102
|
-
onOpenBill:
|
|
103
|
-
duplicateRowNote:
|
|
104
|
-
attachmentLabel:
|
|
105
|
-
}), J = i({ enabled:
|
|
96
|
+
N(e), F(!0);
|
|
97
|
+
}, [G]), se = t(B?.scopes, [n.CounterpartReadOrg]), q = f({
|
|
98
|
+
enabled: W,
|
|
99
|
+
canReadVendors: se,
|
|
100
|
+
isVendorFilterPaused: V,
|
|
101
|
+
filterLabels: D.filters,
|
|
102
|
+
onOpenBill: K,
|
|
103
|
+
duplicateRowNote: D.duplicateRowNote,
|
|
104
|
+
attachmentLabel: D.attachmentIndicator
|
|
105
|
+
}), J = i({ enabled: W }), ce = m(J, D), le = g(() => l.map((e) => ({
|
|
106
106
|
id: e,
|
|
107
|
-
label:
|
|
108
|
-
icon:
|
|
109
|
-
})), [
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
|
|
107
|
+
label: D.queues[e],
|
|
108
|
+
icon: E[e]
|
|
109
|
+
})), [D.queues]), ue = (e) => {
|
|
110
|
+
z(!1), N(e), F(!0);
|
|
111
|
+
}, de = () => {
|
|
112
|
+
F(!1), L(!0);
|
|
113
|
+
}, fe = () => {
|
|
114
|
+
L(!1), F(!0);
|
|
113
115
|
}, Y = () => {
|
|
114
|
-
|
|
115
|
-
}, X = () => {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
116
|
+
F(!1), L(!1), k(M), j(!0);
|
|
117
|
+
}, X = g(() => ({
|
|
118
|
+
createButton: D.createButton,
|
|
119
|
+
settingsButton: D.settingsButton,
|
|
120
|
+
addBill: { heading: D.nonEmptyHeading }
|
|
121
|
+
}), [
|
|
122
|
+
D.createButton,
|
|
123
|
+
D.settingsButton,
|
|
124
|
+
D.nonEmptyHeading
|
|
125
|
+
]), pe = g(() => ({
|
|
121
126
|
...q.filterBarProps,
|
|
122
|
-
labels:
|
|
123
|
-
}), [q.filterBarProps,
|
|
124
|
-
|
|
127
|
+
labels: D.filterBar
|
|
128
|
+
}), [q.filterBarProps, D.filterBar]), Z = () => {
|
|
129
|
+
O(!1), k(void 0), j(!0);
|
|
125
130
|
}, Q = (e) => {
|
|
126
|
-
|
|
131
|
+
O(!1), b?.(e);
|
|
127
132
|
}, $ = async () => {
|
|
128
|
-
await
|
|
133
|
+
await p(T) ? e.success(D.emailCopiedToast) : e.error(D.emailCopyFailedToast);
|
|
129
134
|
};
|
|
130
|
-
return
|
|
131
|
-
|
|
132
|
-
}, [
|
|
133
|
-
"data-testid":
|
|
135
|
+
return ie(() => {
|
|
136
|
+
x && (k(x), j(!0), S?.());
|
|
137
|
+
}, [S, x]), /* @__PURE__ */ y("div", {
|
|
138
|
+
"data-testid": h.root,
|
|
134
139
|
children: [
|
|
135
|
-
/* @__PURE__ */
|
|
140
|
+
/* @__PURE__ */ v(o, {
|
|
136
141
|
rows: q.rows,
|
|
137
|
-
isLoading: q.isLoading || !
|
|
142
|
+
isLoading: q.isLoading || !B,
|
|
138
143
|
isError: q.isError,
|
|
139
144
|
onRetry: q.onRetry,
|
|
140
145
|
sorting: q.sorting,
|
|
@@ -145,70 +150,71 @@ function E({ labels: l, onEnqueueFiles: y, openPayableId: b, onOpenPayableHandle
|
|
|
145
150
|
hasPrevPage: q.hasPrevPage,
|
|
146
151
|
onNextPage: q.onNextPage,
|
|
147
152
|
onPrevPage: q.onPrevPage,
|
|
148
|
-
filterTabs:
|
|
153
|
+
filterTabs: le,
|
|
149
154
|
selectedFilterTabId: q.selectedFilterTabId,
|
|
150
155
|
onFilterTabChange: q.onFilterTabChange,
|
|
151
156
|
searchValue: q.searchValue,
|
|
152
157
|
onSearchChange: q.onSearchChange,
|
|
153
|
-
filters:
|
|
158
|
+
filters: pe,
|
|
154
159
|
visibleColumns: q.visibleColumns,
|
|
155
|
-
cellTestIds:
|
|
160
|
+
cellTestIds: ne,
|
|
156
161
|
isSearchActive: q.isSearchActive,
|
|
157
162
|
showAddPanelWhenEmpty: q.showAddPanelWhenEmpty,
|
|
158
|
-
emptyState:
|
|
159
|
-
onCreateClick:
|
|
160
|
-
|
|
161
|
-
|
|
163
|
+
emptyState: D.queueEmptyStates[q.selectedFilterTabId],
|
|
164
|
+
onCreateClick: G ? () => O(!0) : void 0,
|
|
165
|
+
onSettingsClick: w,
|
|
166
|
+
onEnterManually: G ? Z : void 0,
|
|
167
|
+
onFilesSelected: G ? Q : void 0,
|
|
162
168
|
maxFiles: 10,
|
|
163
|
-
emailAddress:
|
|
169
|
+
emailAddress: T,
|
|
164
170
|
onCopyEmail: $,
|
|
165
|
-
duplicateWarning:
|
|
166
|
-
onReviewDuplicates: J.isError ? void 0 : () =>
|
|
167
|
-
labels:
|
|
171
|
+
duplicateWarning: ce,
|
|
172
|
+
onReviewDuplicates: J.isError ? void 0 : () => z(!0),
|
|
173
|
+
labels: X
|
|
168
174
|
}),
|
|
169
|
-
|
|
170
|
-
open:
|
|
171
|
-
onOpenChange:
|
|
172
|
-
enabled:
|
|
173
|
-
canManageDuplicates:
|
|
174
|
-
onOpenBill:
|
|
175
|
+
R ? /* @__PURE__ */ v(te, {
|
|
176
|
+
open: R,
|
|
177
|
+
onOpenChange: z,
|
|
178
|
+
enabled: W,
|
|
179
|
+
canManageDuplicates: G,
|
|
180
|
+
onOpenBill: ue
|
|
175
181
|
}) : null,
|
|
176
|
-
|
|
177
|
-
open:
|
|
178
|
-
onOpenChange:
|
|
182
|
+
G ? /* @__PURE__ */ v(a, {
|
|
183
|
+
open: ae,
|
|
184
|
+
onOpenChange: O,
|
|
179
185
|
onFilesSelected: Q,
|
|
180
186
|
maxFiles: 10,
|
|
181
187
|
onEnterManually: Z,
|
|
182
|
-
emailAddress:
|
|
188
|
+
emailAddress: T,
|
|
183
189
|
onCopyEmail: $,
|
|
184
|
-
labels: { heading: q.hasAnyBills ?
|
|
190
|
+
labels: { heading: q.hasAnyBills ? D.nonEmptyHeading : D.emptyHeading }
|
|
185
191
|
}) : null,
|
|
186
|
-
|
|
187
|
-
open:
|
|
188
|
-
onOpenChange:
|
|
192
|
+
A ? /* @__PURE__ */ v(s, {
|
|
193
|
+
open: A,
|
|
194
|
+
onOpenChange: j,
|
|
189
195
|
payableId: oe
|
|
190
196
|
}) : null,
|
|
191
|
-
|
|
192
|
-
open:
|
|
193
|
-
onOpenChange:
|
|
194
|
-
payableId:
|
|
195
|
-
onClose: () =>
|
|
196
|
-
onExpand:
|
|
197
|
-
onEdit:
|
|
198
|
-
testId:
|
|
199
|
-
poweredByBankName:
|
|
197
|
+
P ? /* @__PURE__ */ v(c, {
|
|
198
|
+
open: P,
|
|
199
|
+
onOpenChange: F,
|
|
200
|
+
payableId: M,
|
|
201
|
+
onClose: () => F(!1),
|
|
202
|
+
onExpand: de,
|
|
203
|
+
onEdit: Y,
|
|
204
|
+
testId: h.detailsSheet,
|
|
205
|
+
poweredByBankName: C
|
|
200
206
|
}) : null,
|
|
201
|
-
|
|
202
|
-
open:
|
|
203
|
-
onOpenChange:
|
|
204
|
-
payableId:
|
|
207
|
+
I ? /* @__PURE__ */ v(s, {
|
|
208
|
+
open: I,
|
|
209
|
+
onOpenChange: L,
|
|
210
|
+
payableId: M,
|
|
205
211
|
readOnly: !0,
|
|
206
|
-
onCollapse:
|
|
207
|
-
onEdit:
|
|
208
|
-
poweredByBankName:
|
|
212
|
+
onCollapse: fe,
|
|
213
|
+
onEdit: Y,
|
|
214
|
+
poweredByBankName: C
|
|
209
215
|
}) : null
|
|
210
216
|
]
|
|
211
217
|
});
|
|
212
218
|
}
|
|
213
219
|
//#endregion
|
|
214
|
-
export {
|
|
220
|
+
export { D as BillsTab, D as default };
|
|
@@ -14,87 +14,72 @@ import "../../../shared/feature/dist/index.js";
|
|
|
14
14
|
import { BillPayWidgetUi as o } from "../../ui/dist/index53.js";
|
|
15
15
|
import { BillUploadStatusTray as s } from "../../ui/dist/index85.js";
|
|
16
16
|
import "../../ui/dist/index.js";
|
|
17
|
-
import {
|
|
18
|
-
import "../../../shared/approval-policy/feature/dist/index.js";
|
|
19
|
-
import { useBillUploadQueue as l } from "./index70.js";
|
|
17
|
+
import { useBillUploadQueue as c } from "./index70.js";
|
|
20
18
|
import "./index71.js";
|
|
21
|
-
import { billsTabTestIds as
|
|
22
|
-
import { BillsTab as
|
|
19
|
+
import { billsTabTestIds as l } from "./index76.js";
|
|
20
|
+
import { BillsTab as u } from "./index82.js";
|
|
23
21
|
import "./index83.js";
|
|
24
|
-
import { BillPayWidgetAnalyticsEvent as
|
|
25
|
-
import { DEFAULT_TABS_LABELS as
|
|
26
|
-
import { CounterpartsWidget as
|
|
22
|
+
import { BillPayWidgetAnalyticsEvent as d, WIDGET_NAME as f } from "./index65.js";
|
|
23
|
+
import { DEFAULT_TABS_LABELS as p } from "./index84.js";
|
|
24
|
+
import { CounterpartsWidget as m } from "../../../counterparts-widget/feature/dist/index8.js";
|
|
27
25
|
import "../../../counterparts-widget/feature/dist/index.js";
|
|
28
|
-
import { useCallback as
|
|
29
|
-
import { Fragment as
|
|
26
|
+
import { useCallback as h, useEffect as g, useState as _ } from "react";
|
|
27
|
+
import { Fragment as v, jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
30
28
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js
|
|
31
|
-
var
|
|
29
|
+
var x = {
|
|
32
30
|
Bills: "bills",
|
|
33
|
-
Vendors: "vendors"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
];
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
onEnqueueFiles: R.enqueue,
|
|
55
|
-
openPayableId: F,
|
|
56
|
-
onOpenPayableHandled: () => I(void 0),
|
|
57
|
-
poweredByBankName: D
|
|
31
|
+
Vendors: "vendors"
|
|
32
|
+
}, S = [x.Bills, x.Vendors];
|
|
33
|
+
function C({ labels: i, initialTab: f = x.Bills, tabsLabels: C, vendorLabels: w, poweredByBankName: T, onSettingsClick: E }) {
|
|
34
|
+
let D = r();
|
|
35
|
+
g(() => {
|
|
36
|
+
D(d.Mounted);
|
|
37
|
+
}, [D]);
|
|
38
|
+
let O = {
|
|
39
|
+
...p,
|
|
40
|
+
...C
|
|
41
|
+
}, { initResponse: k } = a(), A = e(k?.scopes, [t.ApprovalPolicyWriteOrg]) && e(k?.scopes, [t.PayableWriteOrg]) && e(k?.scopes, [t.RoleReadOrg]) && e(k?.scopes, [t.UserReadOrg]), [j, M] = _(f), [N, P] = _(), F = h((e) => {
|
|
42
|
+
M(x.Bills), P(e);
|
|
43
|
+
}, []), I = c({ onOpenBill: F }), L = [{
|
|
44
|
+
id: x.Bills,
|
|
45
|
+
label: O.bills,
|
|
46
|
+
content: /* @__PURE__ */ y(u, {
|
|
47
|
+
onEnqueueFiles: I.enqueue,
|
|
48
|
+
openPayableId: N,
|
|
49
|
+
onOpenPayableHandled: () => P(void 0),
|
|
50
|
+
poweredByBankName: T,
|
|
51
|
+
onSettingsClick: E && A ? E : void 0
|
|
58
52
|
})
|
|
59
53
|
}, {
|
|
60
|
-
id:
|
|
61
|
-
label:
|
|
62
|
-
content: /* @__PURE__ */
|
|
63
|
-
...
|
|
54
|
+
id: x.Vendors,
|
|
55
|
+
label: O.vendors,
|
|
56
|
+
content: /* @__PURE__ */ y(m, {
|
|
57
|
+
...w,
|
|
64
58
|
counterpartType: "vendor",
|
|
65
|
-
onViewAllDocuments: () =>
|
|
59
|
+
onViewAllDocuments: () => M(x.Bills)
|
|
66
60
|
})
|
|
67
|
-
}];
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
content: /* @__PURE__ */ b(c, {
|
|
72
|
-
labels: w,
|
|
73
|
-
componentLabels: T
|
|
74
|
-
})
|
|
75
|
-
});
|
|
76
|
-
let B = z.some((e) => e.id === N) ? N : C.find((e) => z.some((t) => t.id === e)) ?? z[0]?.id ?? "";
|
|
77
|
-
return /* @__PURE__ */ x(y, { children: [
|
|
78
|
-
/* @__PURE__ */ b(n, {}),
|
|
79
|
-
/* @__PURE__ */ b(o, {
|
|
61
|
+
}], R = L.some((e) => e.id === j) ? j : S.find((e) => L.some((t) => t.id === e)) ?? L[0]?.id ?? "";
|
|
62
|
+
return /* @__PURE__ */ b(v, { children: [
|
|
63
|
+
/* @__PURE__ */ y(n, {}),
|
|
64
|
+
/* @__PURE__ */ y(o, {
|
|
80
65
|
labels: i,
|
|
81
|
-
tabs:
|
|
82
|
-
selectedTabId:
|
|
83
|
-
onTabChange:
|
|
66
|
+
tabs: L,
|
|
67
|
+
selectedTabId: R,
|
|
68
|
+
onTabChange: M
|
|
84
69
|
}),
|
|
85
|
-
|
|
86
|
-
sections:
|
|
87
|
-
summaryLabel:
|
|
88
|
-
collapsed:
|
|
89
|
-
onToggleCollapsed:
|
|
90
|
-
onClose:
|
|
91
|
-
testId:
|
|
70
|
+
I.isVisible ? /* @__PURE__ */ y(s, {
|
|
71
|
+
sections: I.sections,
|
|
72
|
+
summaryLabel: I.summaryLabel,
|
|
73
|
+
collapsed: I.collapsed,
|
|
74
|
+
onToggleCollapsed: I.onToggleCollapsed,
|
|
75
|
+
onClose: I.onClose,
|
|
76
|
+
testId: l.uploadTray
|
|
92
77
|
}) : null
|
|
93
78
|
] });
|
|
94
79
|
}
|
|
95
|
-
function
|
|
96
|
-
return /* @__PURE__ */
|
|
97
|
-
widgetName:
|
|
80
|
+
function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: p, providerLabels: m, ...h }) {
|
|
81
|
+
return /* @__PURE__ */ y(i, {
|
|
82
|
+
widgetName: f,
|
|
98
83
|
baseUrl: e,
|
|
99
84
|
widgetToken: t,
|
|
100
85
|
organizationId: n,
|
|
@@ -106,10 +91,10 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
106
91
|
errorFallback: l,
|
|
107
92
|
onError: u,
|
|
108
93
|
analytics: d,
|
|
109
|
-
disclosuresAcceptance:
|
|
94
|
+
disclosuresAcceptance: p,
|
|
110
95
|
providerLabels: m,
|
|
111
|
-
children: /* @__PURE__ */
|
|
96
|
+
children: /* @__PURE__ */ y(C, { ...h })
|
|
112
97
|
});
|
|
113
98
|
}
|
|
114
99
|
//#endregion
|
|
115
|
-
export {
|
|
100
|
+
export { w as BillPayWidgetNative, w as default };
|
|
@@ -11,14 +11,16 @@ import { BillPayWidgetNative as r } from "./index85.js";
|
|
|
11
11
|
import "./index86.js";
|
|
12
12
|
import { jsx as i } from "react/jsx-runtime";
|
|
13
13
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js
|
|
14
|
-
function a({ implementation: a,
|
|
15
|
-
let
|
|
16
|
-
return
|
|
17
|
-
implementation:
|
|
18
|
-
|
|
14
|
+
function a({ implementation: a, initialTab: o, onSettingsClick: s, ...c }) {
|
|
15
|
+
let l = t().implementation, u = a ?? l ?? e.Monite;
|
|
16
|
+
return u === e.Native ? /* @__PURE__ */ i(r, {
|
|
17
|
+
implementation: u,
|
|
18
|
+
initialTab: o,
|
|
19
|
+
onSettingsClick: s,
|
|
20
|
+
...c
|
|
19
21
|
}) : /* @__PURE__ */ i(n, {
|
|
20
|
-
implementation:
|
|
21
|
-
...
|
|
22
|
+
implementation: u,
|
|
23
|
+
...c
|
|
22
24
|
});
|
|
23
25
|
}
|
|
24
26
|
//#endregion
|
|
@@ -13,13 +13,13 @@ function s({ labels: s, tabs: c, selectedTabId: l, onTabChange: u }) {
|
|
|
13
13
|
};
|
|
14
14
|
return /* @__PURE__ */ o("section", {
|
|
15
15
|
className: "ttw:w-full ttw:space-y-5",
|
|
16
|
-
children: [/* @__PURE__ */ a("div", {
|
|
16
|
+
children: [d.description ? /* @__PURE__ */ a("div", {
|
|
17
17
|
className: "ttw:min-w-0",
|
|
18
18
|
children: /* @__PURE__ */ a("p", {
|
|
19
19
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
20
20
|
children: d.description
|
|
21
21
|
})
|
|
22
|
-
}), /* @__PURE__ */ o(e, {
|
|
22
|
+
}) : null, /* @__PURE__ */ o(e, {
|
|
23
23
|
value: l,
|
|
24
24
|
onValueChange: u,
|
|
25
25
|
className: "ttw:w-full",
|