@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 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 te } from "./index2.js";
11
- import { formatDateParam as i, getDefaultExportDateRange as ne, isExportRangeValid as a, startOfLocalDay as o, triggerCsvDownload as re, yesterdayLocal as s } from "./index3.js";
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, [C, Re] = f("transactions"), [ze, w] = f(!1), [T, E] = f(Ee), [Be, Ve] = f(!1), [He, D] = f(!1), [Ue, O] = f(!1), [We, Ge] = f(!1), [Ke, k] = f(!1), [A, j] = f(), [M, N] = f(), [P, qe] = f(we), [F, I] = f(() => ({
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
- F.accountId !== p && I({
45
+ N.accountId !== p && P({
46
46
  accountId: p,
47
47
  token: void 0
48
48
  });
49
- let Je = F.accountId === p ? F.token : void 0, L = u((e) => {
50
- I((t) => ({
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
- }, []), [R, z] = f(() => /* @__PURE__ */ new Set());
54
+ }, []), [I, L] = f(() => /* @__PURE__ */ new Set());
55
55
  ye(() => {
56
- g(te.Mounted);
56
+ g(i.Mounted);
57
57
  }, [g]);
58
- let B = de({
58
+ let R = de({
59
59
  id: p,
60
60
  enabled: S
61
- }), V = pe({
61
+ }), z = pe({
62
62
  id: p,
63
- enabled: S && C === "transactions",
63
+ enabled: S && w === "transactions",
64
64
  limit: 25,
65
65
  sortBy: "DATE",
66
66
  sortOrder: "DESC"
67
- }), H = fe({
67
+ }), B = fe({
68
68
  id: p,
69
- enabled: S && C === "statements",
70
- limit: P,
71
- pagination_token: Je,
69
+ enabled: S && w === "statements",
70
+ limit: M,
71
+ pagination_token: Ze,
72
72
  category: "STATEMENTS"
73
- }), Ye = ge(), Xe = me(), Ze = he(), { mutate: Qe, isPending: $e, isError: U, reset: W } = Ye, { mutateAsync: G, isPending: et } = Xe, { mutateAsync: K } = Ze, q = x ? B.data : void 0, J = _?.bankName?.trim() ?? "", Y = Ne?.trim() || void 0, X = { bankName: J }, tt = d(() => l(m.domesticWireIntro, X), [m.domesticWireIntro, J]), nt = d(() => l(m.domesticWireNote, X), [m.domesticWireNote, J]), rt = d(() => l(m.thingsToKnowBody, X), [m.thingsToKnowBody, J]), it = q?.nickname?.trim() || h.accountFallback, at = c(q?.balance), ot = d(() => (V.data?.data ?? []).map((e, t) => ({
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
- })), [V.data?.data]), st = b.canRead && ot.length > 0, ct = u((t) => {
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, z((e) => new Set(e).add(t)), K({
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
- z((e) => {
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
- K
108
- ]), lt = d(() => (H.data?.data ?? []).map((e) => {
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: R.has(e.statementId),
115
- onView: () => ct(e.statementId)
114
+ isViewDisabled: I.has(e.statementId),
115
+ onView: () => X(e.statementId)
116
116
  };
117
117
  }), [
118
- H.data?.data,
118
+ B.data?.data,
119
119
  m.viewStatementButtonAriaLabel,
120
- R,
121
- ct
122
- ]), Z = H.data?.nextPaginationToken ?? void 0, Q = H.data?.prevPaginationToken ?? void 0, ut = S && C === "statements" && !!H.data && !H.isError, dt = S && C === "statements" && H.isLoading, ft = S && C === "statements" && H.isError, pt = u(() => {
123
- H.refetch();
124
- }, [H.refetch]), mt = u((e) => {
125
- qe(e), L(void 0);
126
- }, []), ht = u(() => {
127
- L(Q);
128
- }, [Q]), gt = u(() => {
129
- L(Z);
130
- }, [Z]), _t = !a(A, M), vt = d(() => {
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 M && e.push({ after: o(M) }), e;
133
- }, [M]), yt = d(() => {
132
+ return A && e.push({ after: o(A) }), e;
133
+ }, [A]), bt = d(() => {
134
134
  let e = [{ after: s() }];
135
- return A && e.push({ before: o(A) }), e;
136
- }, [A]), bt = u((e) => {
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
- j(e), N(t);
139
+ k(e), j(t);
140
140
  }
141
- k(e);
142
- }, []), xt = u(async () => {
143
- if (!y || !b.canRead || !A || !M || !a(A, M)) return;
144
- k(!1);
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 G({
147
+ let n = await U({
148
148
  id: p,
149
- startDate: i(A),
150
- endDate: i(M)
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
- G,
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
- D(!0), window.setTimeout(() => D(!1), 2e3);
181
+ Ue(!0), window.setTimeout(() => Ue(!1), 2e3);
182
182
  return;
183
183
  }
184
- n === "routing" && (O(!0), window.setTimeout(() => O(!1), 2e3));
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
- ]), St = (e) => {
191
- e && (E({ nickname: q?.nickname?.trim() ?? "" }), W()), w(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: it,
196
- bankDisplayName: J,
195
+ title: st,
196
+ bankDisplayName: K,
197
197
  bankLogoSrc: je,
198
198
  bankLogoAlt: Me,
199
- balanceLabel: at,
199
+ balanceLabel: ct,
200
200
  balanceTestId: "bank-accounts-widget-detail-balance",
201
201
  isBankingTaglineVisible: Ae,
202
- activeTab: C,
203
- transactionRows: ot,
204
- statementRows: lt,
205
- isStatementsLoading: dt,
206
- isStatementsError: ft,
207
- onStatementsRetry: pt,
208
- isStatementsPaginationVisible: ut,
209
- statementsPageSize: P,
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: mt,
214
- onStatementsPreviousPageClick: ht,
215
- onStatementsNextPageClick: gt,
216
- showExport: st,
217
- isExportOpen: Ke,
218
- exportStartDate: A,
219
- exportEndDate: M,
220
- isExportDownloading: et,
221
- isExportDownloadDisabled: _t,
222
- disabledExportStartDates: vt,
223
- disabledExportEndDates: yt,
224
- accountNumberLabel: q?.accountNumber ?? "",
225
- maskedAccountNumberLabel: ce(q?.accountNumber ?? ""),
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: q?.accountNumber ?? "",
228
- routingNumberLabel: q?.routingNumber ?? "",
229
- bankAddressLabel: Y,
230
- domesticWireIntroLabel: tt,
231
- domesticWireNoteLabel: nt,
232
- thingsToKnowBodyLabel: rt,
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: Ue,
237
- isDomesticWireExpanded: We,
238
- isLoading: !v && (!y && !(_ && q) || Le && !_ || S && (B.isLoading || C === "transactions" && V.isLoading)),
239
- isError: v || S && (B.isError || C === "transactions" && V.isError),
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: U,
243
- isSubmitting: $e,
244
- editForm: T,
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 $(q?.accountNumber ?? "", "account"),
250
- onCopyRoutingNumber: () => void $(q?.routingNumber ?? "", "routing"),
251
- onCopyBankName: () => void $(J, "bankName"),
252
- onCopyBankAddress: () => void $(Y ?? "", "bankAddress"),
253
- onDomesticWireExpandedChange: Ge,
254
- onEditOpenChange: St,
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
- U && W(), E(e);
257
+ V && H(), D(e);
257
258
  },
258
259
  onEditSubmit: () => {
259
260
  if (!y || !b.canWrite) return;
260
- let t = T.nickname.trim();
261
- t && Qe({
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(te.AccountUpdated, { accountId: p }), e.success(h.editSuccessToast), w(!1);
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: () => St(!0),
274
- onExportOpenChange: bt,
275
- onExportStartDateChange: j,
276
- onExportEndDateChange: N,
274
+ onEditNicknameClick: () => Ct(!0),
275
+ onExportOpenChange: xt,
276
+ onExportStartDateChange: k,
277
+ onExportEndDateChange: j,
277
278
  onExportDownload: () => {
278
- xt();
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, isError: h, onOpenChange: _, onFormChange: v, onSubmit: y }) {
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: () => _(!1),
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) => v({ nickname: e.target.value })
48
+ onChange: (e) => y({ nickname: e.target.value })
49
49
  })]
50
- }), h ? /* @__PURE__ */ p(f, {
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: () => _(!1),
61
+ onClick: () => v(!1),
62
62
  children: o.editCancelButton
63
63
  }), /* @__PURE__ */ p(e, {
64
64
  type: "button",
65
- disabled: l,
66
- onClick: y,
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, editForm: Te, canEdit: Ee, onBack: De, onTabChange: Oe, onToggleAccountNumberVisibility: ke, onCopyAccountNumber: X, onCopyRoutingNumber: Z, onCopyBankName: Ae, onCopyBankAddress: je, onDomesticWireExpandedChange: Me, onEditOpenChange: Ne, onEditFormChange: Pe, onEditSubmit: Fe, onEditNicknameClick: Ie, onExportOpenChange: Q, onExportStartDateChange: Le, onExportEndDateChange: Re, onExportDownload: ze }) {
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
- }, Be = /* @__PURE__ */ p(e, {
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: De,
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: Te,
34
+ form: Ee,
35
35
  isSubmitting: we,
36
+ isSaveDisabled: Te,
36
37
  isError: Ce,
37
- onOpenChange: Ne,
38
- onFormChange: Pe,
39
- onSubmit: Fe
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: Le,
51
- onEndDateChange: Re,
52
- onDownload: ze
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: [Be, !J && !Y ? /* @__PURE__ */ f(re, {
57
+ children: [Ve, !J && !Y ? /* @__PURE__ */ f(re, {
57
58
  labels: $,
58
- canEdit: Ee,
59
- onEditNickname: Ie
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) => Oe(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: Me,
176
- onToggleAccountNumberVisibility: ke,
176
+ onDomesticWireExpandedChange: Ne,
177
+ onToggleAccountNumberVisibility: Ae,
177
178
  onCopyAccountNumber: X,
178
179
  onCopyRoutingNumber: Z,
179
180
  onCopyWireAccountNumber: X,
180
181
  onCopyWireRoutingNumber: Z,
181
- onCopyBankName: Ae,
182
- onCopyBankAddress: je
182
+ onCopyBankName: je,
183
+ onCopyBankAddress: Me
183
184
  })
184
185
  })
185
186
  ]