@tesouro/embedded-components-react 0.2.307 → 0.2.309

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.
@@ -43,73 +43,73 @@ var S = {
43
43
  [d.Expense]: [t.ApprovalPolicyWriteOrg, t.ExpenseWriteOrg],
44
44
  [d.Help]: []
45
45
  };
46
- function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContactUrl: C, profileContactUrl: w, selectedSection: T, onSelectedSectionChange: E, additionalSections: D, profileContent: O, teamContent: k, billPayContent: A, helpContent: j, expenseContent: M, accountingContent: N, tagsContent: P, invoiceContent: F }) {
47
- let I = {
46
+ function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContactUrl: C, profileContactUrl: w, selectedSection: T, defaultSelectedSection: E, onSelectedSectionChange: D, additionalSections: O, profileContent: k, teamContent: A, billPayContent: j, helpContent: M, expenseContent: N, accountingContent: P, tagsContent: F, invoiceContent: I }) {
47
+ let L = {
48
48
  ...u,
49
49
  ...o
50
- }, L = n();
50
+ }, R = n();
51
51
  y(() => {
52
- L(p.Mounted);
53
- }, [L]);
54
- let { initResponse: R } = r(), z = R?.scopes, B = [
52
+ R(p.Mounted);
53
+ }, [R]);
54
+ let { initResponse: z } = r(), B = z?.scopes, V = [
55
55
  {
56
56
  id: d.Profile,
57
- label: I.profileSection,
58
- content: O ?? /* @__PURE__ */ b(l, { contactUrl: w })
57
+ label: L.profileSection,
58
+ content: k ?? /* @__PURE__ */ b(l, { contactUrl: w })
59
59
  },
60
60
  {
61
61
  id: d.Team,
62
- label: I.teamSection,
63
- content: k ?? /* @__PURE__ */ b(_, {
64
- title: I.teamSection,
62
+ label: L.teamSection,
63
+ content: A ?? /* @__PURE__ */ b(_, {
64
+ title: L.teamSection,
65
65
  acceptInviteRedirectUri: m
66
66
  })
67
67
  },
68
68
  {
69
69
  id: d.Invoice,
70
- label: I.invoiceSection,
71
- content: F ?? /* @__PURE__ */ b(a, {})
70
+ label: L.invoiceSection,
71
+ content: I ?? /* @__PURE__ */ b(a, {})
72
72
  },
73
73
  {
74
74
  id: d.Expense,
75
- label: I.expenseSection,
76
- content: M ?? /* @__PURE__ */ b(h, {
77
- sectionTitle: I.expenseSection,
78
- approvalsLabel: I.expenseApprovalsTab,
79
- requirementsLabel: I.expenseRequirementsTab
75
+ label: L.expenseSection,
76
+ content: N ?? /* @__PURE__ */ b(h, {
77
+ sectionTitle: L.expenseSection,
78
+ approvalsLabel: L.expenseApprovalsTab,
79
+ requirementsLabel: L.expenseRequirementsTab
80
80
  })
81
81
  },
82
82
  {
83
83
  id: d.BillPay,
84
- label: I.billPaySection,
85
- content: A ?? /* @__PURE__ */ b(i, {})
84
+ label: L.billPaySection,
85
+ content: j ?? /* @__PURE__ */ b(i, {})
86
86
  },
87
87
  {
88
88
  id: d.Accounting,
89
- label: I.accountingSection,
90
- content: N ?? /* @__PURE__ */ b(s, { title: I.accountingSection })
89
+ label: L.accountingSection,
90
+ content: P ?? /* @__PURE__ */ b(s, { title: L.accountingSection })
91
91
  },
92
92
  {
93
93
  id: d.Tags,
94
- label: I.tagsSection,
95
- content: P ?? /* @__PURE__ */ b(g, {})
94
+ label: L.tagsSection,
95
+ content: F ?? /* @__PURE__ */ b(g, {})
96
96
  },
97
97
  {
98
98
  id: d.Help,
99
- label: I.helpSection,
100
- content: j ?? /* @__PURE__ */ b(c, { contactUrl: C })
99
+ label: L.helpSection,
100
+ content: M ?? /* @__PURE__ */ b(c, { contactUrl: C })
101
101
  }
102
- ], V = f(B.filter((t) => S[t.id].every((t) => e(z, [t]))), D ?? []), H = V[0]?.id ?? "", [U, W] = x({
102
+ ], H = f(V.filter((t) => S[t.id].every((t) => e(B, [t]))), O ?? []), U = H[0]?.id ?? "", [W, G] = x({
103
103
  prop: T,
104
- defaultProp: H,
105
- onChange: E,
104
+ defaultProp: E ?? U,
105
+ onChange: D,
106
106
  caller: "SettingsWidget"
107
- }), G = V.some((e) => e.id === U) ? U : H;
107
+ }), K = H.some((e) => e.id === W) ? W : U;
108
108
  return /* @__PURE__ */ b(v, {
109
109
  labels: t,
110
- sections: V,
111
- selectedSectionId: G,
112
- onSectionChange: W
110
+ sections: H,
111
+ selectedSectionId: K,
112
+ onSectionChange: G
113
113
  });
114
114
  }
115
115
  function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, disclosuresAcceptance: p, ...h }) {
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.2.307", n = "e6190e49468ca4e80ee98046dc93a991cb03537c", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.2.309", n = "e9a1adea1040e9c1a91acd86aa3e25dcd18a3ebf", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -12,12 +12,13 @@ import { TRANSFERS_ANALYTICS_EVENTS as s } from "./index2.js";
12
12
  import { useCreateBookTransferMutation as c } from "../../data-access/dist/index7.js";
13
13
  import { useCreateAchMoneyMovementMutation as l } from "../../data-access/dist/index8.js";
14
14
  import "../../data-access/dist/index.js";
15
- import { useCallback as u, useMemo as d, useState as f } from "react";
15
+ import { useCallback as u, useEffect as d, useMemo as f, useState as p } from "react";
16
+ import { useControllableState as m } from "@radix-ui/react-use-controllable-state";
16
17
  //#region ../../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index4.js
17
- function p(e) {
18
+ function h(e) {
18
19
  return e.slice(-4);
19
20
  }
20
- function m(e, t) {
21
+ function g(e, t) {
21
22
  let r = e.balance;
22
23
  if (!r || r.value === void 0 || r.value === null) return;
23
24
  let i = r.currencyCode ?? t, o = n({
@@ -29,14 +30,14 @@ function m(e, t) {
29
30
  includeSpaceAfterCurrencySymbol: !1
30
31
  });
31
32
  }
32
- function h(e, t, n, r) {
33
+ function _(e, t, n, r) {
33
34
  let i = n.find((t) => t.id === e);
34
35
  if (i?.balance?.currencyCode) return i.balance.currencyCode;
35
36
  let a = n.find((e) => e.id === t);
36
37
  return a?.balance?.currencyCode ? a.balance.currencyCode : r;
37
38
  }
38
- function g(e, t, n) {
39
- let r = p(e.accountNumber), i = e.nickname?.trim() || t.accountFallbackName, a = m(e, n.defaultCurrencyCode);
39
+ function v(e, t, n) {
40
+ let r = h(e.accountNumber), i = e.nickname?.trim() || t.accountFallbackName, a = g(e, n.defaultCurrencyCode);
40
41
  return {
41
42
  optionValue: e.id,
42
43
  primaryLabel: i,
@@ -44,15 +45,15 @@ function g(e, t, n) {
44
45
  balanceLabel: a
45
46
  };
46
47
  }
47
- function _(e, t) {
48
- let n = p(e.accountNumber), r = e.nickname?.trim() || e.nameOnAccount;
48
+ function y(e, t) {
49
+ let n = h(e.accountNumber), r = e.nickname?.trim() || e.nameOnAccount;
49
50
  return {
50
51
  optionValue: e.id,
51
52
  primaryLabel: r,
52
53
  secondaryLabel: `${t.embeddedAccountMaskPrefix}${n}`
53
54
  };
54
55
  }
55
- function v(e, t, n, r, i) {
56
+ function b(e, t, n, r, i) {
56
57
  return {
57
58
  primaryLabel: e?.primaryLabel ?? "",
58
59
  accountDetailLabel: t ? `${i} ${t}` : e?.secondaryLabel ?? "",
@@ -61,238 +62,247 @@ function v(e, t, n, r, i) {
61
62
  showInstitutionIcon: n
62
63
  };
63
64
  }
64
- function y({ labels: n, featureLabels: p, embeddedBankAccounts: m, verifiedExternalBankAccounts: y, track: b }) {
65
- let x = c(), S = l(), C = d(() => new Set(m.map((e) => e.id)), [m]), w = d(() => m.map((e) => g(e, n, p)), [
66
- m,
67
- p,
65
+ function x({ labels: n, featureLabels: h, embeddedBankAccounts: g, verifiedExternalBankAccounts: x, track: S, isTransferMoneyOpen: C, defaultIsTransferMoneyOpen: ee, onTransferMoneyOpenChange: w }) {
66
+ let T = c(), E = l(), D = f(() => new Set(g.map((e) => e.id)), [g]), O = f(() => g.map((e) => v(e, n, h)), [
67
+ g,
68
+ h,
68
69
  n.accountFallbackName,
69
70
  n.embeddedAccountMaskPrefix
70
- ]), T = d(() => y.map((e) => _(e, n)), [n.embeddedAccountMaskPrefix, y]), E = d(() => [...w, ...T], [w, T]), [D, O] = f(!1), [k, A] = f("accounts"), [j, M] = f(""), [N, P] = f(""), [F, I] = f(""), [L, R] = f(null), [z, B] = f(!1), V = u(() => {
71
- A("accounts"), M(""), P(""), I(""), R(null), B(!1);
72
- }, []), H = u(() => {
73
- V(), O(!0), b(s.TransferMoneyOpened);
74
- }, [V, b]), U = C.has(j), W = C.has(N), G = d(() => h(j, N, m, p.defaultCurrencyCode), [
75
- m,
76
- p.defaultCurrencyCode,
77
- j,
78
- N
79
- ]), K = d(() => i(G), [G]), q = d(() => N ? W ? E.filter((e) => e.optionValue !== N) : w.filter((e) => e.optionValue !== N) : E, [
80
- E,
81
- w,
82
- N,
83
- W
84
- ]), J = d(() => j ? U ? E.filter((e) => e.optionValue !== j) : w.filter((e) => e.optionValue !== j) : E, [
85
- E,
86
- w,
87
- j,
88
- U
89
- ]), Y = !!(j && N && j !== N), X = d(() => o(F, G) !== null, [F, G]), Z = u((e, r, i) => {
71
+ ]), k = f(() => x.map((e) => y(e, n)), [n.embeddedAccountMaskPrefix, x]), A = f(() => [...O, ...k], [O, k]), [j, M] = m({
72
+ prop: C,
73
+ defaultProp: ee ?? !1,
74
+ onChange: w,
75
+ caller: "TransfersWidget"
76
+ }), [N, P] = p("accounts"), [F, I] = p(""), [L, R] = p(""), [z, B] = p(""), [te, V] = p(null), [ne, H] = p(!1), U = u(() => {
77
+ P("accounts"), I(""), R(""), B(""), V(null), H(!1);
78
+ }, []), [W, G] = p(j);
79
+ j !== W && (G(j), j && U()), d(() => {
80
+ j && S(s.TransferMoneyOpened);
81
+ }, [j, S]);
82
+ let K = u((e) => {
83
+ M(e);
84
+ }, [M]), q = u(() => {
85
+ M(!0);
86
+ }, [M]), J = D.has(F), Y = D.has(L), X = f(() => _(F, L, g, h.defaultCurrencyCode), [
87
+ g,
88
+ h.defaultCurrencyCode,
89
+ F,
90
+ L
91
+ ]), re = f(() => i(X), [X]), ie = f(() => L ? Y ? A.filter((e) => e.optionValue !== L) : O.filter((e) => e.optionValue !== L) : A, [
92
+ A,
93
+ O,
94
+ L,
95
+ Y
96
+ ]), ae = f(() => F ? J ? A.filter((e) => e.optionValue !== F) : O.filter((e) => e.optionValue !== F) : A, [
97
+ A,
98
+ O,
99
+ F,
100
+ J
101
+ ]), Z = !!(F && L && F !== L), oe = f(() => o(z, X) !== null, [z, X]), Q = u((e, r, i) => {
90
102
  let a = o(r, i);
91
103
  if (a === null) {
92
- R(null);
104
+ V(null);
93
105
  return;
94
106
  }
95
- if (!C.has(e)) {
96
- R(null);
107
+ if (!D.has(e)) {
108
+ V(null);
97
109
  return;
98
110
  }
99
- let s = m.find((t) => t.id === e);
111
+ let s = g.find((t) => t.id === e);
100
112
  if (!s) {
101
- R(null);
113
+ V(null);
102
114
  return;
103
115
  }
104
116
  let c = t(s.balance?.value);
105
- R(a > c ? n.modalInsufficientFundsError : null);
117
+ V(a > c ? n.modalInsufficientFundsError : null);
106
118
  }, [
107
- m,
108
- C,
119
+ g,
120
+ D,
109
121
  n.modalInsufficientFundsError
110
- ]), Q = u((e) => {
111
- M(e);
112
- let t = h(e, N, m, p.defaultCurrencyCode);
113
- Z(e, F, t);
122
+ ]), se = u((e) => {
123
+ I(e);
124
+ let t = _(e, L, g, h.defaultCurrencyCode);
125
+ Q(e, z, t);
126
+ }, [
127
+ z,
128
+ g,
129
+ h.defaultCurrencyCode,
130
+ Q,
131
+ L
132
+ ]), ce = u((e) => {
133
+ R(e);
134
+ let t = _(F, e, g, h.defaultCurrencyCode);
135
+ Q(F, z, t);
114
136
  }, [
137
+ z,
138
+ g,
139
+ h.defaultCurrencyCode,
115
140
  F,
116
- m,
117
- p.defaultCurrencyCode,
118
- Z,
119
- N
141
+ Q
120
142
  ]), $ = u((e) => {
121
- P(e);
122
- let t = h(j, e, m, p.defaultCurrencyCode);
123
- Z(j, F, t);
143
+ B(e), Q(F, e, X);
124
144
  }, [
125
145
  F,
126
- m,
127
- p.defaultCurrencyCode,
128
- j,
129
- Z
130
- ]), ee = u((e) => {
131
- I(e), Z(j, e, G);
132
- }, [
133
- j,
134
- Z,
135
- G
136
- ]), te = u(() => {
137
- M(""), P(""), I(""), R(null);
138
- }, []), ne = d(() => {
139
- let e = o(F, G);
146
+ Q,
147
+ X
148
+ ]), le = u(() => {
149
+ I(""), R(""), B(""), V(null);
150
+ }, []), ue = f(() => {
151
+ let e = o(z, X);
140
152
  if (e === null) return "";
141
- let t = r(G);
153
+ let t = r(X);
142
154
  return a(e / 10 ** t, {
143
- currencyCode: G,
155
+ currencyCode: X,
144
156
  includeSpaceAfterCurrencySymbol: !1
145
157
  });
146
- }, [F, G]), re = d(() => {
147
- let e = E.find((e) => e.optionValue === j), t = m.find((e) => e.id === j), r = y.find((e) => e.id === j);
148
- return v(e, t?.accountNumber ?? r?.accountNumber, !!r, n.modalAvailableBalanceCaption, n.modalReviewAccountNumberPrefix);
158
+ }, [z, X]), de = f(() => {
159
+ let e = A.find((e) => e.optionValue === F), t = g.find((e) => e.id === F), r = x.find((e) => e.id === F);
160
+ return b(e, t?.accountNumber ?? r?.accountNumber, !!r, n.modalAvailableBalanceCaption, n.modalReviewAccountNumberPrefix);
149
161
  }, [
150
- E,
151
- m,
152
- j,
162
+ A,
163
+ g,
164
+ F,
153
165
  n.modalAvailableBalanceCaption,
154
166
  n.modalReviewAccountNumberPrefix,
155
- y
156
- ]), ie = d(() => {
157
- let e = E.find((e) => e.optionValue === N), t = m.find((e) => e.id === N), r = y.find((e) => e.id === N);
158
- return v(e, t?.accountNumber ?? r?.accountNumber, !!r, n.modalAvailableBalanceCaption, n.modalReviewAccountNumberPrefix);
167
+ x
168
+ ]), fe = f(() => {
169
+ let e = A.find((e) => e.optionValue === L), t = g.find((e) => e.id === L), r = x.find((e) => e.id === L);
170
+ return b(e, t?.accountNumber ?? r?.accountNumber, !!r, n.modalAvailableBalanceCaption, n.modalReviewAccountNumberPrefix);
159
171
  }, [
160
- E,
161
- m,
172
+ A,
173
+ g,
162
174
  n.modalAvailableBalanceCaption,
163
175
  n.modalReviewAccountNumberPrefix,
164
- N,
165
- y
166
- ]), ae = u(() => {
167
- if (!Y) return;
168
- let e = o(F, G);
176
+ L,
177
+ x
178
+ ]), pe = u(() => {
179
+ if (!Z) return;
180
+ let e = o(z, X);
169
181
  if (e === null) {
170
- R(n.modalAmountInvalidError);
182
+ V(n.modalAmountInvalidError);
171
183
  return;
172
184
  }
173
- if (U) {
174
- let r = m.find((e) => e.id === j);
185
+ if (J) {
186
+ let r = g.find((e) => e.id === F);
175
187
  if (r && e > t(r.balance?.value)) {
176
- R(n.modalInsufficientFundsError);
188
+ V(n.modalInsufficientFundsError);
177
189
  return;
178
190
  }
179
191
  }
180
- R(null), A("review");
192
+ V(null), P("review");
181
193
  }, [
194
+ z,
195
+ Z,
196
+ g,
197
+ J,
182
198
  F,
183
- Y,
184
- m,
185
- U,
186
- j,
187
199
  n.modalAmountInvalidError,
188
200
  n.modalInsufficientFundsError,
189
- G
190
- ]), oe = u(() => {
191
- let e = o(F, G);
201
+ X
202
+ ]), me = u(() => {
203
+ let e = o(z, X);
192
204
  if (e === null) {
193
- R(n.modalAmountInvalidError);
205
+ V(n.modalAmountInvalidError);
194
206
  return;
195
207
  }
196
- if (U) {
197
- let r = m.find((e) => e.id === j);
208
+ if (J) {
209
+ let r = g.find((e) => e.id === F);
198
210
  if (r && e > t(r.balance?.value)) {
199
- R(n.modalInsufficientFundsError);
211
+ V(n.modalInsufficientFundsError);
200
212
  return;
201
213
  }
202
214
  }
203
- R(null), A("review");
215
+ V(null), P("review");
204
216
  }, [
217
+ z,
218
+ g,
219
+ J,
205
220
  F,
206
- m,
207
- U,
208
- j,
209
221
  n.modalAmountInvalidError,
210
222
  n.modalInsufficientFundsError,
211
- G
212
- ]), se = u(() => {
213
- if (k === "amount") {
214
- A("accounts");
223
+ X
224
+ ]), he = u(() => {
225
+ if (N === "amount") {
226
+ P("accounts");
215
227
  return;
216
228
  }
217
- k === "review" && A("accounts");
218
- }, [k]), ce = u(async () => {
219
- let t = o(F, G);
229
+ N === "review" && P("accounts");
230
+ }, [N]), ge = u(async () => {
231
+ let t = o(z, X);
220
232
  if (t === null) {
221
- R(n.modalAmountInvalidError);
233
+ V(n.modalAmountInvalidError);
222
234
  return;
223
235
  }
224
- if (!U && !W) {
236
+ if (!J && !Y) {
225
237
  e.error(n.modalUnsupportedPairError);
226
238
  return;
227
239
  }
228
240
  let r;
229
- r = U && W ? "INTERNAL_TO_INTERNAL" : U && !W ? "INTERNAL_TO_EXTERNAL" : "EXTERNAL_TO_INTERNAL";
241
+ r = J && Y ? "INTERNAL_TO_INTERNAL" : J && !Y ? "INTERNAL_TO_EXTERNAL" : "EXTERNAL_TO_INTERNAL";
230
242
  try {
231
- r === "INTERNAL_TO_INTERNAL" ? await x.mutateAsync({ body: {
232
- fromBankAccountId: j,
233
- toBankAccountId: N,
243
+ r === "INTERNAL_TO_INTERNAL" ? await T.mutateAsync({ body: {
244
+ fromBankAccountId: F,
245
+ toBankAccountId: L,
234
246
  amount: t,
235
- currencyCode: G
236
- } }) : await S.mutateAsync({ body: {
237
- fromBankAccountId: j,
238
- toBankAccountId: N,
247
+ currencyCode: X
248
+ } }) : await E.mutateAsync({ body: {
249
+ fromBankAccountId: F,
250
+ toBankAccountId: L,
239
251
  amount: t,
240
- currencyCode: G,
252
+ currencyCode: X,
241
253
  type: r,
242
- secCode: p.defaultSecCode
243
- } }), B(!0), A("result"), b(s.TransferSubmitted, { transferType: r });
254
+ secCode: h.defaultSecCode
255
+ } }), H(!0), P("result"), S(s.TransferSubmitted, { transferType: r });
244
256
  } catch {
245
257
  e.error(n.modalSubmitFailedError);
246
258
  }
247
259
  }, [
260
+ z,
261
+ E,
262
+ T,
263
+ J,
248
264
  F,
249
- S,
250
- x,
251
- U,
252
- j,
253
265
  n.modalSubmitFailedError,
254
266
  n.modalUnsupportedPairError,
255
267
  n.modalAmountInvalidError,
256
- W,
257
- N,
258
- b,
259
- G,
260
- p.defaultSecCode
268
+ Y,
269
+ L,
270
+ S,
271
+ X,
272
+ h.defaultSecCode
261
273
  ]);
262
274
  return {
263
275
  modalProps: {
264
- open: D,
265
- onOpenChange: (e) => {
266
- O(e), e || V();
267
- },
268
- step: k,
269
- fromOptions: q,
270
- toOptions: J,
271
- fromValue: j,
272
- toValue: N,
273
- onFromValueChange: Q,
274
- onToValueChange: $,
275
- amountValue: F,
276
- onAmountValueChange: ee,
277
- amountError: L,
278
- amountInputPrefix: K,
279
- reviewFromAccount: re,
280
- reviewToAccount: ie,
281
- reviewAmountLabel: ne,
282
- isSubmitting: x.isPending || S.isPending,
283
- isSuccess: z,
284
- canContinueFromAccounts: Y,
285
- canContinueFromAmount: X,
286
- onContinueFromAccounts: ae,
287
- onContinueFromAmount: oe,
288
- onBack: se,
289
- onSubmit: () => void ce(),
290
- onClearSelections: te
276
+ open: j,
277
+ onOpenChange: K,
278
+ step: N,
279
+ fromOptions: ie,
280
+ toOptions: ae,
281
+ fromValue: F,
282
+ toValue: L,
283
+ onFromValueChange: se,
284
+ onToValueChange: ce,
285
+ amountValue: z,
286
+ onAmountValueChange: $,
287
+ amountError: te,
288
+ amountInputPrefix: re,
289
+ reviewFromAccount: de,
290
+ reviewToAccount: fe,
291
+ reviewAmountLabel: ue,
292
+ isSubmitting: T.isPending || E.isPending,
293
+ isSuccess: ne,
294
+ canContinueFromAccounts: Z,
295
+ canContinueFromAmount: oe,
296
+ onContinueFromAccounts: pe,
297
+ onContinueFromAmount: me,
298
+ onBack: he,
299
+ onSubmit: () => void ge(),
300
+ onClearSelections: le
291
301
  },
292
- openModal: H
302
+ openModal: q
293
303
  };
294
304
  }
295
- function b(e, t, r, i) {
305
+ function S(e, t, r, i) {
296
306
  let o = t.get(e.fromAccount.id) ?? e.fromAccount.nickname ?? r.accountFallbackName, s = t.get(e.toAccount.id) ?? e.toAccount.nickname ?? r.accountFallbackName, c = new Date(e.date), l = Number.isNaN(c.getTime()) ? i.unavailableLabel : new Intl.DateTimeFormat(void 0, { dateStyle: "medium" }).format(c), u = e.amount?.value, d = u == null || !Number.isFinite(Number(u)) ? i.unavailableLabel : a(n(e.amount), {
297
307
  currencyCode: e.amount.currencyCode,
298
308
  includeSpaceAfterCurrencySymbol: !1
@@ -306,4 +316,4 @@ function b(e, t, r, i) {
306
316
  };
307
317
  }
308
318
  //#endregion
309
- export { b as mapTransferToRowView, y as useTransferMoneyModalController };
319
+ export { S as mapTransferToRowView, x as useTransferMoneyModalController };