@tesouro/embedded-components-react 0.5.158 → 0.5.160
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 +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index8.js +106 -105
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +252 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +334 -333
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +68 -56
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartDetails.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
package/dist/index.css
CHANGED
|
@@ -1899,6 +1899,9 @@
|
|
|
1899
1899
|
margin-block-start: calc(calc(var(--ttw-spacing) * 8) * var(--tw-space-y-reverse));
|
|
1900
1900
|
margin-block-end: calc(calc(var(--ttw-spacing) * 8) * calc(1 - var(--tw-space-y-reverse)));
|
|
1901
1901
|
}
|
|
1902
|
+
.ttw\:gap-x-1\.5 {
|
|
1903
|
+
column-gap: calc(var(--ttw-spacing) * 1.5);
|
|
1904
|
+
}
|
|
1902
1905
|
.ttw\:gap-x-2 {
|
|
1903
1906
|
column-gap: calc(var(--ttw-spacing) * 2);
|
|
1904
1907
|
}
|
|
@@ -7,8 +7,8 @@ import "../../../../shared/ui/dist/index.js";
|
|
|
7
7
|
import { useAnalyticsTrack as t } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
8
8
|
import { useWidgetConfig as n, useWidgetError as r, useWidgetLoading as ee } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
9
9
|
import "../../../../shared/feature/dist/index.js";
|
|
10
|
-
import { AccountDetailsWidgetAnalyticsEvent as
|
|
11
|
-
import { formatDateParam as
|
|
10
|
+
import { AccountDetailsWidgetAnalyticsEvent as i } from "./index2.js";
|
|
11
|
+
import { formatDateParam as te, getDefaultExportDateRange as ne, isExportRangeValid as a, startOfLocalDay as o, triggerCsvDownload as re, yesterdayLocal as s } from "./index3.js";
|
|
12
12
|
import { copyTextToClipboard as ie, formatAmountLabel as c, formatSignedTransactionAmountLabel as ae, formatStatementPeriodLabel as oe, formatTransactionDateLabel as se, maskAccountNumber as ce } from "./index4.js";
|
|
13
13
|
import { DEFAULT_FEATURE_LABELS as le } from "./index5.js";
|
|
14
14
|
import { getBankAccountsPermissions as ue } from "./index6.js";
|
|
@@ -38,53 +38,53 @@ function p({ accountId: p, onBack: De, labels: Oe, featureLabels: ke, isBankingT
|
|
|
38
38
|
}, h = {
|
|
39
39
|
...le,
|
|
40
40
|
...ke
|
|
41
|
-
}, g = t(), { organizationId: Fe, widgetToken: Ie, initResponse: _ } = n(), Le = ee(), v = !!r(), y = !!(Fe && Ie), b = d(() => ue(_?.scopes), [_?.scopes]), x = b.canRead && !!_, S = y && x,
|
|
41
|
+
}, g = t(), { organizationId: Fe, widgetToken: Ie, initResponse: _ } = n(), Le = ee(), v = !!r(), y = !!(Fe && Ie), b = d(() => ue(_?.scopes), [_?.scopes]), x = b.canRead && !!_, S = y && x, C = x && !y, [w, Re] = f("transactions"), [ze, T] = f(!1), [E, D] = f(Ee), [Be, Ve] = f(!1), [He, Ue] = f(!1), [We, Ge] = f(!1), [Ke, qe] = f(!1), [Je, Ye] = f(!1), [O, k] = f(), [A, j] = f(), [M, Xe] = f(we), [N, P] = f(() => ({
|
|
42
42
|
accountId: p,
|
|
43
43
|
token: void 0
|
|
44
44
|
}));
|
|
45
|
-
|
|
45
|
+
N.accountId !== p && P({
|
|
46
46
|
accountId: p,
|
|
47
47
|
token: void 0
|
|
48
48
|
});
|
|
49
|
-
let
|
|
50
|
-
|
|
49
|
+
let Ze = N.accountId === p ? N.token : void 0, F = u((e) => {
|
|
50
|
+
P((t) => ({
|
|
51
51
|
...t,
|
|
52
52
|
token: e
|
|
53
53
|
}));
|
|
54
|
-
}, []), [
|
|
54
|
+
}, []), [I, L] = f(() => /* @__PURE__ */ new Set());
|
|
55
55
|
ye(() => {
|
|
56
|
-
g(
|
|
56
|
+
g(i.Mounted);
|
|
57
57
|
}, [g]);
|
|
58
|
-
let
|
|
58
|
+
let R = de({
|
|
59
59
|
id: p,
|
|
60
60
|
enabled: S
|
|
61
|
-
}),
|
|
61
|
+
}), z = pe({
|
|
62
62
|
id: p,
|
|
63
|
-
enabled: S &&
|
|
63
|
+
enabled: S && w === "transactions",
|
|
64
64
|
limit: 25,
|
|
65
65
|
sortBy: "DATE",
|
|
66
66
|
sortOrder: "DESC"
|
|
67
|
-
}),
|
|
67
|
+
}), B = fe({
|
|
68
68
|
id: p,
|
|
69
|
-
enabled: S &&
|
|
70
|
-
limit:
|
|
71
|
-
pagination_token:
|
|
69
|
+
enabled: S && w === "statements",
|
|
70
|
+
limit: M,
|
|
71
|
+
pagination_token: Ze,
|
|
72
72
|
category: "STATEMENTS"
|
|
73
|
-
}),
|
|
73
|
+
}), Qe = ge(), $e = me(), et = he(), { mutate: tt, isPending: nt, isError: V, reset: H } = Qe, { mutateAsync: U, isPending: rt } = $e, { mutateAsync: W } = et, G = x ? R.data : void 0, K = _?.bankName?.trim() ?? "", q = Ne?.trim() || void 0, J = { bankName: K }, it = d(() => l(m.domesticWireIntro, J), [m.domesticWireIntro, K]), at = d(() => l(m.domesticWireNote, J), [m.domesticWireNote, K]), ot = d(() => l(m.thingsToKnowBody, J), [m.thingsToKnowBody, K]), st = G?.nickname?.trim() || h.accountFallback, ct = c(G?.balance), Y = d(() => (z.data?.data ?? []).map((e, t) => ({
|
|
74
74
|
key: `${e.date}-${t}`,
|
|
75
75
|
descriptionLabel: e.description,
|
|
76
76
|
dateLabel: se(e.date),
|
|
77
77
|
amountLabel: ae(e.amount, e.direction),
|
|
78
78
|
amountVariant: e.direction === "CREDIT" ? "positive" : "default",
|
|
79
79
|
balanceLabel: c(e.runningBalance)
|
|
80
|
-
})), [
|
|
80
|
+
})), [z.data?.data]), lt = b.canRead && Y.length > 0, X = u((t) => {
|
|
81
81
|
if (!y || !b.canRead) return;
|
|
82
82
|
let n = window.open("", "_blank");
|
|
83
83
|
if (!n) {
|
|
84
84
|
e.error(h.viewStatementErrorToast);
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
87
|
-
n.opener = null,
|
|
87
|
+
n.opener = null, L((e) => new Set(e).add(t)), W({
|
|
88
88
|
id: p,
|
|
89
89
|
statementId: t
|
|
90
90
|
}).then((e) => {
|
|
@@ -93,7 +93,7 @@ function p({ accountId: p, onBack: De, labels: Oe, featureLabels: ke, isBankingT
|
|
|
93
93
|
}).catch(() => {
|
|
94
94
|
n.close(), e.error(h.viewStatementErrorToast);
|
|
95
95
|
}).finally(() => {
|
|
96
|
-
|
|
96
|
+
L((e) => {
|
|
97
97
|
if (!e.has(t)) return e;
|
|
98
98
|
let n = new Set(e);
|
|
99
99
|
return n.delete(t), n;
|
|
@@ -104,50 +104,50 @@ function p({ accountId: p, onBack: De, labels: Oe, featureLabels: ke, isBankingT
|
|
|
104
104
|
h.viewStatementErrorToast,
|
|
105
105
|
y,
|
|
106
106
|
b.canRead,
|
|
107
|
-
|
|
108
|
-
]),
|
|
107
|
+
W
|
|
108
|
+
]), ut = d(() => (B.data?.data ?? []).map((e) => {
|
|
109
109
|
let t = oe(e.statementDate);
|
|
110
110
|
return {
|
|
111
111
|
key: e.statementId,
|
|
112
112
|
label: t,
|
|
113
113
|
viewButtonAriaLabel: l(m.viewStatementButtonAriaLabel, { date: t }),
|
|
114
|
-
isViewDisabled:
|
|
115
|
-
onView: () =>
|
|
114
|
+
isViewDisabled: I.has(e.statementId),
|
|
115
|
+
onView: () => X(e.statementId)
|
|
116
116
|
};
|
|
117
117
|
}), [
|
|
118
|
-
|
|
118
|
+
B.data?.data,
|
|
119
119
|
m.viewStatementButtonAriaLabel,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
]), Z =
|
|
123
|
-
|
|
124
|
-
}, [
|
|
125
|
-
|
|
126
|
-
}, []),
|
|
127
|
-
|
|
128
|
-
}, [Q]),
|
|
129
|
-
|
|
130
|
-
}, [Z]),
|
|
120
|
+
I,
|
|
121
|
+
X
|
|
122
|
+
]), Z = B.data?.nextPaginationToken ?? void 0, Q = B.data?.prevPaginationToken ?? void 0, dt = S && w === "statements" && !!B.data && !B.isError, ft = S && w === "statements" && B.isLoading, pt = S && w === "statements" && B.isError, mt = u(() => {
|
|
123
|
+
B.refetch();
|
|
124
|
+
}, [B.refetch]), ht = u((e) => {
|
|
125
|
+
Xe(e), F(void 0);
|
|
126
|
+
}, []), gt = u(() => {
|
|
127
|
+
F(Q);
|
|
128
|
+
}, [Q]), _t = u(() => {
|
|
129
|
+
F(Z);
|
|
130
|
+
}, [Z]), vt = C || !a(O, A), yt = d(() => {
|
|
131
131
|
let e = [{ after: s() }];
|
|
132
|
-
return
|
|
133
|
-
}, [
|
|
132
|
+
return A && e.push({ after: o(A) }), e;
|
|
133
|
+
}, [A]), bt = d(() => {
|
|
134
134
|
let e = [{ after: s() }];
|
|
135
|
-
return
|
|
136
|
-
}, [
|
|
135
|
+
return O && e.push({ before: o(O) }), e;
|
|
136
|
+
}, [O]), xt = u((e) => {
|
|
137
137
|
if (e) {
|
|
138
138
|
let { startDate: e, endDate: t } = ne();
|
|
139
|
-
|
|
139
|
+
k(e), j(t);
|
|
140
140
|
}
|
|
141
|
-
|
|
142
|
-
}, []),
|
|
143
|
-
if (!y || !b.canRead || !
|
|
144
|
-
|
|
141
|
+
Ye(e);
|
|
142
|
+
}, []), St = u(async () => {
|
|
143
|
+
if (!y || !b.canRead || !O || !A || !a(O, A)) return;
|
|
144
|
+
Ye(!1);
|
|
145
145
|
let t = e.loading(h.exportLoadingToast);
|
|
146
146
|
try {
|
|
147
|
-
let n = await
|
|
147
|
+
let n = await U({
|
|
148
148
|
id: p,
|
|
149
|
-
startDate:
|
|
150
|
-
endDate:
|
|
149
|
+
startDate: te(O),
|
|
150
|
+
endDate: te(A)
|
|
151
151
|
});
|
|
152
152
|
re(n.csv, n.filename), e.success(h.exportSuccessToast, {
|
|
153
153
|
id: t,
|
|
@@ -161,9 +161,9 @@ function p({ accountId: p, onBack: De, labels: Oe, featureLabels: ke, isBankingT
|
|
|
161
161
|
}
|
|
162
162
|
}, [
|
|
163
163
|
p,
|
|
164
|
-
|
|
165
|
-
M,
|
|
164
|
+
U,
|
|
166
165
|
A,
|
|
166
|
+
O,
|
|
167
167
|
h.exportErrorToast,
|
|
168
168
|
h.exportLoadingToast,
|
|
169
169
|
h.exportSuccessToast,
|
|
@@ -178,104 +178,105 @@ function p({ accountId: p, onBack: De, labels: Oe, featureLabels: ke, isBankingT
|
|
|
178
178
|
bankAddress: h.copyBankAddressToast
|
|
179
179
|
};
|
|
180
180
|
if (e.success(r[n]), n === "account") {
|
|
181
|
-
|
|
181
|
+
Ue(!0), window.setTimeout(() => Ue(!1), 2e3);
|
|
182
182
|
return;
|
|
183
183
|
}
|
|
184
|
-
n === "routing" && (
|
|
184
|
+
n === "routing" && (Ge(!0), window.setTimeout(() => Ge(!1), 2e3));
|
|
185
185
|
}, [
|
|
186
186
|
h.copyAccountNumberToast,
|
|
187
187
|
h.copyBankAddressToast,
|
|
188
188
|
h.copyBankNameToast,
|
|
189
189
|
h.copyRoutingNumberToast
|
|
190
|
-
]),
|
|
191
|
-
e && (
|
|
190
|
+
]), Ct = (e) => {
|
|
191
|
+
e && (D({ nickname: G?.nickname?.trim() ?? "" }), H()), T(e);
|
|
192
192
|
};
|
|
193
193
|
return /* @__PURE__ */ be(ve, {
|
|
194
194
|
labels: m,
|
|
195
|
-
title:
|
|
196
|
-
bankDisplayName:
|
|
195
|
+
title: st,
|
|
196
|
+
bankDisplayName: K,
|
|
197
197
|
bankLogoSrc: je,
|
|
198
198
|
bankLogoAlt: Me,
|
|
199
|
-
balanceLabel:
|
|
199
|
+
balanceLabel: ct,
|
|
200
200
|
balanceTestId: "bank-accounts-widget-detail-balance",
|
|
201
201
|
isBankingTaglineVisible: Ae,
|
|
202
|
-
activeTab:
|
|
203
|
-
transactionRows:
|
|
204
|
-
statementRows:
|
|
205
|
-
isStatementsLoading:
|
|
206
|
-
isStatementsError:
|
|
207
|
-
onStatementsRetry:
|
|
208
|
-
isStatementsPaginationVisible:
|
|
209
|
-
statementsPageSize:
|
|
202
|
+
activeTab: w,
|
|
203
|
+
transactionRows: Y,
|
|
204
|
+
statementRows: ut,
|
|
205
|
+
isStatementsLoading: ft,
|
|
206
|
+
isStatementsError: pt,
|
|
207
|
+
onStatementsRetry: mt,
|
|
208
|
+
isStatementsPaginationVisible: dt,
|
|
209
|
+
statementsPageSize: M,
|
|
210
210
|
statementsPageSizeOptions: Ce,
|
|
211
211
|
isStatementsPreviousPageDisabled: !Q,
|
|
212
212
|
isStatementsNextPageDisabled: !Z,
|
|
213
|
-
onStatementsPageSizeChange:
|
|
214
|
-
onStatementsPreviousPageClick:
|
|
215
|
-
onStatementsNextPageClick:
|
|
216
|
-
showExport:
|
|
217
|
-
isExportOpen:
|
|
218
|
-
exportStartDate:
|
|
219
|
-
exportEndDate:
|
|
220
|
-
isExportDownloading:
|
|
221
|
-
isExportDownloadDisabled:
|
|
222
|
-
disabledExportStartDates:
|
|
223
|
-
disabledExportEndDates:
|
|
224
|
-
accountNumberLabel:
|
|
225
|
-
maskedAccountNumberLabel: ce(
|
|
213
|
+
onStatementsPageSizeChange: ht,
|
|
214
|
+
onStatementsPreviousPageClick: gt,
|
|
215
|
+
onStatementsNextPageClick: _t,
|
|
216
|
+
showExport: lt,
|
|
217
|
+
isExportOpen: Je,
|
|
218
|
+
exportStartDate: O,
|
|
219
|
+
exportEndDate: A,
|
|
220
|
+
isExportDownloading: rt,
|
|
221
|
+
isExportDownloadDisabled: vt,
|
|
222
|
+
disabledExportStartDates: yt,
|
|
223
|
+
disabledExportEndDates: bt,
|
|
224
|
+
accountNumberLabel: G?.accountNumber ?? "",
|
|
225
|
+
maskedAccountNumberLabel: ce(G?.accountNumber ?? ""),
|
|
226
226
|
accountNumberTestId: "bank-accounts-widget-detail-account-number",
|
|
227
|
-
wireAccountNumberLabel:
|
|
228
|
-
routingNumberLabel:
|
|
229
|
-
bankAddressLabel:
|
|
230
|
-
domesticWireIntroLabel:
|
|
231
|
-
domesticWireNoteLabel:
|
|
232
|
-
thingsToKnowBodyLabel:
|
|
227
|
+
wireAccountNumberLabel: G?.accountNumber ?? "",
|
|
228
|
+
routingNumberLabel: G?.routingNumber ?? "",
|
|
229
|
+
bankAddressLabel: q,
|
|
230
|
+
domesticWireIntroLabel: it,
|
|
231
|
+
domesticWireNoteLabel: at,
|
|
232
|
+
thingsToKnowBodyLabel: ot,
|
|
233
233
|
supportTeamHref: Pe,
|
|
234
234
|
isAccountNumberVisible: Be,
|
|
235
235
|
isAccountNumberCopied: He,
|
|
236
|
-
isRoutingNumberCopied:
|
|
237
|
-
isDomesticWireExpanded:
|
|
238
|
-
isLoading: !v && (!y && !
|
|
239
|
-
isError: v || S && (
|
|
236
|
+
isRoutingNumberCopied: We,
|
|
237
|
+
isDomesticWireExpanded: Ke,
|
|
238
|
+
isLoading: !v && (!y && !G || Le && !_ || S && (R.isLoading || w === "transactions" && z.isLoading)),
|
|
239
|
+
isError: v || S && (R.isError || w === "transactions" && z.isError),
|
|
240
240
|
isEditOpen: ze,
|
|
241
241
|
isEditDisabled: !b.canWrite,
|
|
242
|
-
isEditError:
|
|
243
|
-
isSubmitting:
|
|
244
|
-
|
|
242
|
+
isEditError: V,
|
|
243
|
+
isSubmitting: nt,
|
|
244
|
+
isEditSaveDisabled: C,
|
|
245
|
+
editForm: E,
|
|
245
246
|
canEdit: b.canWrite,
|
|
246
247
|
onBack: De,
|
|
247
248
|
onTabChange: Re,
|
|
248
249
|
onToggleAccountNumberVisibility: () => Ve((e) => !e),
|
|
249
|
-
onCopyAccountNumber: () => void $(
|
|
250
|
-
onCopyRoutingNumber: () => void $(
|
|
251
|
-
onCopyBankName: () => void $(
|
|
252
|
-
onCopyBankAddress: () => void $(
|
|
253
|
-
onDomesticWireExpandedChange:
|
|
254
|
-
onEditOpenChange:
|
|
250
|
+
onCopyAccountNumber: () => void $(G?.accountNumber ?? "", "account"),
|
|
251
|
+
onCopyRoutingNumber: () => void $(G?.routingNumber ?? "", "routing"),
|
|
252
|
+
onCopyBankName: () => void $(K, "bankName"),
|
|
253
|
+
onCopyBankAddress: () => void $(q ?? "", "bankAddress"),
|
|
254
|
+
onDomesticWireExpandedChange: qe,
|
|
255
|
+
onEditOpenChange: Ct,
|
|
255
256
|
onEditFormChange: (e) => {
|
|
256
|
-
|
|
257
|
+
V && H(), D(e);
|
|
257
258
|
},
|
|
258
259
|
onEditSubmit: () => {
|
|
259
260
|
if (!y || !b.canWrite) return;
|
|
260
|
-
let t =
|
|
261
|
-
t &&
|
|
261
|
+
let t = E.nickname.trim();
|
|
262
|
+
t && tt({
|
|
262
263
|
path: { id: p },
|
|
263
264
|
body: { nickname: t }
|
|
264
265
|
}, {
|
|
265
266
|
onSuccess: () => {
|
|
266
|
-
g(
|
|
267
|
+
g(i.AccountUpdated, { accountId: p }), e.success(h.editSuccessToast), T(!1);
|
|
267
268
|
},
|
|
268
269
|
onError: () => {
|
|
269
270
|
e.error(h.editErrorToast);
|
|
270
271
|
}
|
|
271
272
|
});
|
|
272
273
|
},
|
|
273
|
-
onEditNicknameClick: () =>
|
|
274
|
-
onExportOpenChange:
|
|
275
|
-
onExportStartDateChange:
|
|
276
|
-
onExportEndDateChange:
|
|
274
|
+
onEditNicknameClick: () => Ct(!0),
|
|
275
|
+
onExportOpenChange: xt,
|
|
276
|
+
onExportStartDateChange: k,
|
|
277
|
+
onExportEndDateChange: j,
|
|
277
278
|
onExportDownload: () => {
|
|
278
|
-
|
|
279
|
+
St();
|
|
279
280
|
}
|
|
280
281
|
});
|
|
281
282
|
}
|
|
@@ -8,10 +8,10 @@ import "../../../../shared/ui/dist/index.js";
|
|
|
8
8
|
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
9
9
|
import { MoreVerticalIcon as h, XIcon as g } from "lucide-react";
|
|
10
10
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js
|
|
11
|
-
function _({ labels: o, open: s, form: c, isSubmitting: l,
|
|
11
|
+
function _({ labels: o, open: s, form: c, isSubmitting: l, isSaveDisabled: h = !1, isError: _, onOpenChange: v, onFormChange: y, onSubmit: b }) {
|
|
12
12
|
return /* @__PURE__ */ p(t, {
|
|
13
13
|
open: s,
|
|
14
|
-
onOpenChange:
|
|
14
|
+
onOpenChange: v,
|
|
15
15
|
children: /* @__PURE__ */ m(n, {
|
|
16
16
|
className: "ttw:max-w-[400px] ttw:gap-0 ttw:p-0",
|
|
17
17
|
children: [
|
|
@@ -27,7 +27,7 @@ function _({ labels: o, open: s, form: c, isSubmitting: l, isError: h, onOpenCha
|
|
|
27
27
|
className: "ttw:absolute ttw:top-4 ttw:right-4",
|
|
28
28
|
"aria-label": o.editDialogCloseAriaLabel,
|
|
29
29
|
disabled: l,
|
|
30
|
-
onClick: () =>
|
|
30
|
+
onClick: () => v(!1),
|
|
31
31
|
children: /* @__PURE__ */ p(g, { className: "ttw:size-4" })
|
|
32
32
|
})]
|
|
33
33
|
}),
|
|
@@ -45,9 +45,9 @@ function _({ labels: o, open: s, form: c, isSubmitting: l, isError: h, onOpenCha
|
|
|
45
45
|
id: "edit-account-nickname",
|
|
46
46
|
value: c.nickname,
|
|
47
47
|
disabled: l,
|
|
48
|
-
onChange: (e) =>
|
|
48
|
+
onChange: (e) => y({ nickname: e.target.value })
|
|
49
49
|
})]
|
|
50
|
-
}),
|
|
50
|
+
}), _ ? /* @__PURE__ */ p(f, {
|
|
51
51
|
className: "ttw:mt-4",
|
|
52
52
|
children: o.editErrorTitle
|
|
53
53
|
}) : null]
|
|
@@ -58,12 +58,12 @@ function _({ labels: o, open: s, form: c, isSubmitting: l, isError: h, onOpenCha
|
|
|
58
58
|
type: "button",
|
|
59
59
|
variant: "outline",
|
|
60
60
|
disabled: l,
|
|
61
|
-
onClick: () =>
|
|
61
|
+
onClick: () => v(!1),
|
|
62
62
|
children: o.editCancelButton
|
|
63
63
|
}), /* @__PURE__ */ p(e, {
|
|
64
64
|
type: "button",
|
|
65
|
-
disabled: l,
|
|
66
|
-
onClick:
|
|
65
|
+
disabled: l || h,
|
|
66
|
+
onClick: b,
|
|
67
67
|
children: o.editSaveButton
|
|
68
68
|
})]
|
|
69
69
|
})
|
|
@@ -14,15 +14,15 @@ import { TransactionsTable as se } from "./index6.js";
|
|
|
14
14
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
15
15
|
import { ChevronLeftIcon as m, HelpCircleIcon as h } from "lucide-react";
|
|
16
16
|
//#region ../../libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js
|
|
17
|
-
function g({ labels: g, title: _, bankDisplayName: v, bankLogoSrc: y, bankLogoAlt: b, balanceLabel: x, balanceTestId: S, isBankingTaglineVisible: C, activeTab: w, transactionRows: T, statementRows: E, isStatementsLoading: D, isStatementsError: O, onStatementsRetry: k, isStatementsPaginationVisible: A, statementsPageSize: j, statementsPageSizeOptions: M, statementsRangeLabel: N = "", isStatementsPreviousPageDisabled: P, isStatementsNextPageDisabled: F, onStatementsPageSizeChange: I, onStatementsPreviousPageClick: L, onStatementsNextPageClick: R, showExport: z, isExportOpen: B, exportStartDate: V, exportEndDate: H, isExportDownloading: U, isExportDownloadDisabled: W, disabledExportStartDates: G, disabledExportEndDates: K, accountNumberLabel: ce, maskedAccountNumberLabel: le, accountNumberTestId: ue, routingNumberLabel: de, bankAddressLabel: fe, wireAccountNumberLabel: pe, domesticWireIntroLabel: me, domesticWireNoteLabel: he, thingsToKnowBodyLabel: ge, supportTeamHref: _e, isAccountNumberVisible: q, isAccountNumberCopied: ve, isRoutingNumberCopied: ye, isDomesticWireExpanded: be, isLoading: J, isError: Y, isEditOpen: xe, isEditDisabled: Se, isEditError: Ce, isSubmitting: we,
|
|
17
|
+
function g({ labels: g, title: _, bankDisplayName: v, bankLogoSrc: y, bankLogoAlt: b, balanceLabel: x, balanceTestId: S, isBankingTaglineVisible: C, activeTab: w, transactionRows: T, statementRows: E, isStatementsLoading: D, isStatementsError: O, onStatementsRetry: k, isStatementsPaginationVisible: A, statementsPageSize: j, statementsPageSizeOptions: M, statementsRangeLabel: N = "", isStatementsPreviousPageDisabled: P, isStatementsNextPageDisabled: F, onStatementsPageSizeChange: I, onStatementsPreviousPageClick: L, onStatementsNextPageClick: R, showExport: z, isExportOpen: B, exportStartDate: V, exportEndDate: H, isExportDownloading: U, isExportDownloadDisabled: W, disabledExportStartDates: G, disabledExportEndDates: K, accountNumberLabel: ce, maskedAccountNumberLabel: le, accountNumberTestId: ue, routingNumberLabel: de, bankAddressLabel: fe, wireAccountNumberLabel: pe, domesticWireIntroLabel: me, domesticWireNoteLabel: he, thingsToKnowBodyLabel: ge, supportTeamHref: _e, isAccountNumberVisible: q, isAccountNumberCopied: ve, isRoutingNumberCopied: ye, isDomesticWireExpanded: be, isLoading: J, isError: Y, isEditOpen: xe, isEditDisabled: Se, isEditError: Ce, isSubmitting: we, isEditSaveDisabled: Te, editForm: Ee, canEdit: De, onBack: Oe, onTabChange: ke, onToggleAccountNumberVisibility: Ae, onCopyAccountNumber: X, onCopyRoutingNumber: Z, onCopyBankName: je, onCopyBankAddress: Me, onDomesticWireExpandedChange: Ne, onEditOpenChange: Pe, onEditFormChange: Fe, onEditSubmit: Ie, onEditNicknameClick: Le, onExportOpenChange: Q, onExportStartDateChange: Re, onExportEndDateChange: ze, onExportDownload: Be }) {
|
|
18
18
|
let $ = {
|
|
19
19
|
...te,
|
|
20
20
|
...g
|
|
21
|
-
},
|
|
21
|
+
}, Ve = /* @__PURE__ */ p(e, {
|
|
22
22
|
type: "button",
|
|
23
23
|
variant: "ghost",
|
|
24
24
|
className: "ttw:h-auto ttw:justify-start ttw:gap-1 ttw:px-0 ttw:py-1 ttw:has-[>svg]:px-0 ttw:text-sm ttw:font-medium ttw:leading-5 ttw:text-primary ttw:hover:bg-transparent",
|
|
25
|
-
onClick:
|
|
25
|
+
onClick: Oe,
|
|
26
26
|
children: [/* @__PURE__ */ f(m, { className: "ttw:size-4" }), $.backToAccounts]
|
|
27
27
|
});
|
|
28
28
|
return /* @__PURE__ */ p("section", {
|
|
@@ -31,12 +31,13 @@ function g({ labels: g, title: _, bankDisplayName: v, bankLogoSrc: y, bankLogoAl
|
|
|
31
31
|
!J && !Y ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(ie, {
|
|
32
32
|
labels: $,
|
|
33
33
|
open: xe,
|
|
34
|
-
form:
|
|
34
|
+
form: Ee,
|
|
35
35
|
isSubmitting: we,
|
|
36
|
+
isSaveDisabled: Te,
|
|
36
37
|
isError: Ce,
|
|
37
|
-
onOpenChange:
|
|
38
|
-
onFormChange:
|
|
39
|
-
onSubmit:
|
|
38
|
+
onOpenChange: Pe,
|
|
39
|
+
onFormChange: Fe,
|
|
40
|
+
onSubmit: Ie
|
|
40
41
|
}), /* @__PURE__ */ f(ae, {
|
|
41
42
|
labels: $,
|
|
42
43
|
open: B,
|
|
@@ -47,16 +48,16 @@ function g({ labels: g, title: _, bankDisplayName: v, bankLogoSrc: y, bankLogoAl
|
|
|
47
48
|
disabledStartDates: G,
|
|
48
49
|
disabledEndDates: K,
|
|
49
50
|
onOpenChange: Q,
|
|
50
|
-
onStartDateChange:
|
|
51
|
-
onEndDateChange:
|
|
52
|
-
onDownload:
|
|
51
|
+
onStartDateChange: Re,
|
|
52
|
+
onEndDateChange: ze,
|
|
53
|
+
onDownload: Be
|
|
53
54
|
})] }) : null,
|
|
54
55
|
/* @__PURE__ */ p("div", {
|
|
55
56
|
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-4",
|
|
56
|
-
children: [
|
|
57
|
+
children: [Ve, !J && !Y ? /* @__PURE__ */ f(re, {
|
|
57
58
|
labels: $,
|
|
58
|
-
canEdit:
|
|
59
|
-
onEditNickname:
|
|
59
|
+
canEdit: De,
|
|
60
|
+
onEditNickname: Le
|
|
60
61
|
}) : null]
|
|
61
62
|
}),
|
|
62
63
|
J ? /* @__PURE__ */ p("div", {
|
|
@@ -109,7 +110,7 @@ function g({ labels: g, title: _, bankDisplayName: v, bankLogoSrc: y, bankLogoAl
|
|
|
109
110
|
})]
|
|
110
111
|
}), /* @__PURE__ */ p(ee, {
|
|
111
112
|
value: w,
|
|
112
|
-
onValueChange: (e) =>
|
|
113
|
+
onValueChange: (e) => ke(e),
|
|
113
114
|
className: "ttw:gap-4",
|
|
114
115
|
children: [
|
|
115
116
|
/* @__PURE__ */ p(r, { children: [
|
|
@@ -172,14 +173,14 @@ function g({ labels: g, title: _, bankDisplayName: v, bankLogoSrc: y, bankLogoAl
|
|
|
172
173
|
isAccountNumberCopied: ve,
|
|
173
174
|
isRoutingNumberCopied: ye,
|
|
174
175
|
isDomesticWireExpanded: be,
|
|
175
|
-
onDomesticWireExpandedChange:
|
|
176
|
-
onToggleAccountNumberVisibility:
|
|
176
|
+
onDomesticWireExpandedChange: Ne,
|
|
177
|
+
onToggleAccountNumberVisibility: Ae,
|
|
177
178
|
onCopyAccountNumber: X,
|
|
178
179
|
onCopyRoutingNumber: Z,
|
|
179
180
|
onCopyWireAccountNumber: X,
|
|
180
181
|
onCopyWireRoutingNumber: Z,
|
|
181
|
-
onCopyBankName:
|
|
182
|
-
onCopyBankAddress:
|
|
182
|
+
onCopyBankName: je,
|
|
183
|
+
onCopyBankAddress: Me
|
|
183
184
|
})
|
|
184
185
|
})
|
|
185
186
|
]
|