@tesouro/embedded-components-react 0.11.0 → 0.11.1

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.
Files changed (56) hide show
  1. package/dist/experimental/QuickViewWidget.d.ts +11 -0
  2. package/dist/experimental/RemoteCheckCapture.d.ts +11 -0
  3. package/dist/experimental/index.d.ts +11 -0
  4. package/dist/index.css +15 -50
  5. package/dist/index.d.ts +54 -13
  6. package/dist/lib/AcceptDisclosuresWidget.d.ts +11 -0
  7. package/dist/lib/BalancesWidget.d.ts +11 -0
  8. package/dist/lib/BankAccountOnboardingWidget.d.ts +11 -0
  9. package/dist/lib/BankAccountsWidget.d.ts +11 -0
  10. package/dist/lib/BankingComplianceBannerWidget.d.ts +11 -0
  11. package/dist/lib/BillPayWidget.d.ts +11 -0
  12. package/dist/lib/CardDetailsWidget.d.ts +11 -0
  13. package/dist/lib/CounterpartsWidget.d.ts +11 -0
  14. package/dist/lib/CounterpartsWidgetPublic.d.ts +11 -0
  15. package/dist/lib/CreditCardsWidget.d.ts +11 -0
  16. package/dist/lib/CustomersWidget.d.ts +11 -0
  17. package/dist/lib/DebitCardsWidget.d.ts +11 -0
  18. package/dist/lib/ExpenseManagementWidget.d.ts +11 -0
  19. package/dist/lib/InsightsWidget.d.ts +11 -0
  20. package/dist/lib/LinkedAccountsWidget.d.ts +11 -0
  21. package/dist/lib/OfferWidget.d.ts +11 -0
  22. package/dist/lib/ProductsWidget.d.ts +11 -0
  23. package/dist/lib/ReceivablesWidget.d.ts +11 -0
  24. package/dist/lib/SettingsWidget.d.ts +11 -0
  25. package/dist/lib/TransfersWidget.d.ts +54 -13
  26. package/dist/lib/WidgetProvider.d.ts +11 -0
  27. package/dist/lib/WidgetProviderPublic.d.ts +11 -0
  28. package/dist/lib/WidgetSuite.d.ts +54 -13
  29. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +15 -12
  31. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AmountInput/AmountInput.js +30 -0
  32. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/LoadingRegion/LoadingRegion.js +14 -1
  33. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/MaskedAccountNumber.js +57 -0
  34. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/MaskedAccountNumber/labels.js +7 -0
  35. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +4 -2
  36. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/testIds.js +2 -2
  37. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +10 -17
  38. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +159 -218
  39. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/mocks/labels.js +1 -1
  40. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/ReviewTransferStep.js +37 -88
  41. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js +184 -245
  42. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferResultStep.js +43 -58
  43. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/reviewTransferStepLabels.js +6 -5
  44. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/transferResultStepLabels.js +7 -6
  45. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/useFocusFirstInvalidField.js +9 -0
  46. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountValue.js +32 -0
  47. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferDetailSheet.js +68 -101
  48. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js +155 -153
  49. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js +20 -11
  50. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/maskLabels.js +7 -0
  51. package/dist/packages/shared-ui-shadcn/dist/index.js +1846 -1603
  52. package/package.json +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModalHeader.js +0 -29
  54. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferReviewAccountCard.js +0 -64
  55. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferAccountTile.js +0 -14
  56. package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransferStatusBadge.js +0 -17
@@ -1,197 +1,199 @@
1
- import { Badge as e, Button as t, DataTable as n, Skeleton as r, Typography as i, cn as a } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { PaginationFooter as o } from "../../../../../shared/ui/dist/lib/PaginationFooter/PaginationFooter.js";
3
- import { WidgetTitleWithIconAndChildren as s } from "../../../../../shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js";
1
+ import { Badge as e, Button as t, DataTable as n, DescriptionList as r, Skeleton as i, cn as a } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { WidgetFrame as o } from "../../../../../shared/ui/dist/lib/WidgetFrame/WidgetFrame.js";
3
+ import { EmptyState as s } from "../../../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
4
+ import { ErrorState as c } from "../../../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
5
+ import { LoadingRegion as l } from "../../../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
6
+ import { PaginationFooter as u } from "../../../../../shared/ui/dist/lib/PaginationFooter/PaginationFooter.js";
4
7
  import "../../../../../shared/ui/dist/index.js";
5
- import { TRANSFERS_WIDGET_LABELS_EN as c } from "./labels.js";
6
- import { TransferMoneyModal as l } from "../TransferMoneyModal/TransferMoneyModal.js";
7
- import { TransferStatusBadge as u } from "./TransferStatusBadge.js";
8
- import { TransferDetailSheet as d } from "./TransferDetailSheet.js";
9
- import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
10
- import { ArrowDownToLine as h, ArrowDownUp as g } from "lucide-react";
8
+ import { TRANSFERS_WIDGET_LABELS_EN as d } from "./labels.js";
9
+ import { maskLabels as f } from "./maskLabels.js";
10
+ import { TransferAccountValue as p } from "./TransferAccountValue.js";
11
+ import { TransferMoneyModal as m } from "../TransferMoneyModal/TransferMoneyModal.js";
12
+ import { TransferDetailSheet as h } from "./TransferDetailSheet.js";
13
+ import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
14
+ import { ArrowDownUp as y } from "lucide-react";
11
15
  // ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/TransfersWidget.js
12
- var _ = [], v = () => void 0;
13
- function y({ transferRows: e, isLoading: y, isError: x, onRetry: S, showTransferMoneyCta: C, isTransferMoneyCtaDisabled: w = !1, onTransferMoneyClick: T, transferMoneyModal: E, pagination: D, selectedRowKey: O, onRowClick: k, transferDetail: A, onTransferDetailClose: j, onLinkAccountClick: M, labels: N, testIds: P }) {
14
- let F = {
15
- ...c,
16
- ...N
17
- }, I = [
16
+ var b = [], x = () => void 0;
17
+ function S({ transferRows: e, isLoading: r, isError: a, onRetry: f, showTransferMoneyCta: p, isTransferMoneyCtaDisabled: S = !1, onTransferMoneyClick: D, transferMoneyModal: O, pagination: k, selectedRowKey: A, onRowClick: j, transferDetail: M, onTransferDetailClose: N, onLinkAccountClick: P, labels: F, testIds: I }) {
18
+ let L = {
19
+ ...d,
20
+ ...F
21
+ }, R = [
18
22
  {
19
23
  id: "date",
20
- header: F.tableHeaderDate,
21
- cell: ({ row: e }) => /* @__PURE__ */ p("span", {
22
- className: "ttw:font-normal ttw:text-muted-foreground",
24
+ meta: { fitContent: !0 },
25
+ header: L.tableHeaderDate,
26
+ cell: ({ row: e }) => /* @__PURE__ */ _("span", {
27
+ className: "ttw:font-normal ttw:whitespace-nowrap ttw:text-muted-foreground",
23
28
  children: e.original.dateLabel
24
29
  })
25
30
  },
26
31
  {
27
32
  id: "from",
28
- header: F.transferFromLabel,
29
- cell: ({ row: e }) => /* @__PURE__ */ p(b, { account: e.original.from })
33
+ header: L.transferFromLabel,
34
+ cell: ({ row: e }) => /* @__PURE__ */ _(C, {
35
+ account: e.original.from,
36
+ labels: L
37
+ })
30
38
  },
31
39
  {
32
40
  id: "to",
33
- header: F.transferToLabel,
34
- cell: ({ row: e }) => /* @__PURE__ */ p(b, { account: e.original.to })
41
+ header: L.transferToLabel,
42
+ cell: ({ row: e }) => /* @__PURE__ */ _(C, {
43
+ account: e.original.to,
44
+ labels: L
45
+ })
35
46
  },
36
47
  {
37
48
  id: "status",
38
- header: F.tableHeaderStatus,
39
- cell: ({ row: e }) => /* @__PURE__ */ m("div", {
40
- className: "ttw:flex ttw:flex-col ttw:items-start ttw:gap-1",
41
- children: [/* @__PURE__ */ p(u, {
42
- label: e.original.statusLabel,
43
- tone: e.original.statusTone
44
- }), e.original.statusReasonLabel ? /* @__PURE__ */ p("span", {
45
- className: "ttw:text-xs ttw:font-normal ttw:text-muted-foreground",
46
- children: e.original.statusReasonLabel
47
- }) : null]
48
- })
49
+ meta: { fitContent: !0 },
50
+ header: L.tableHeaderStatus,
51
+ cell: ({ row: e }) => /* @__PURE__ */ _(w, { row: e.original })
49
52
  },
50
53
  {
51
54
  id: "amount",
52
- header: () => /* @__PURE__ */ p("span", {
55
+ meta: { fitContent: !0 },
56
+ header: () => /* @__PURE__ */ _("span", {
53
57
  className: "ttw:block ttw:text-right",
54
- children: F.tableHeaderAmount
58
+ children: L.tableHeaderAmount
55
59
  }),
56
- cell: ({ row: e }) => /* @__PURE__ */ p("span", {
57
- className: a("ttw:block ttw:text-right ttw:font-semibold ttw:tabular-nums", e.original.isAmountStruckThrough && "ttw:line-through"),
58
- children: e.original.amountLabel
59
- })
60
+ cell: ({ row: e }) => /* @__PURE__ */ _(T, { row: e.original })
60
61
  }
61
- ], L = k ? {
62
- onRowClick: (e) => k(e.rowKey),
62
+ ], z = j ? {
63
+ onRowClick: (e) => j(e.rowKey),
63
64
  rowAriaLabel: (e) => e.ariaLabel
64
- } : {}, R = D ? /* @__PURE__ */ p(o, {
65
- ...D,
65
+ } : {}, B = k ? /* @__PURE__ */ _(u, {
66
+ ...k,
66
67
  labels: {
67
- rowsPerPageLabel: F.paginationRowsPerPage,
68
- previousPageButton: F.paginationPreviousPage,
69
- nextPageButton: F.paginationNextPage
68
+ rowsPerPageLabel: L.paginationRowsPerPage,
69
+ previousPageButton: L.paginationPreviousPage,
70
+ nextPageButton: L.paginationNextPage
70
71
  }
71
- }) : null, z = C && !y ? /* @__PURE__ */ p("span", {
72
+ }) : null, V = p && !r ? /* @__PURE__ */ _("span", {
72
73
  className: "ttw:inline-flex ttw:shrink-0",
73
- title: w ? F.transferMoneyCtaDisabledTooltip : void 0,
74
- children: /* @__PURE__ */ m(t, {
74
+ title: S ? L.transferMoneyCtaDisabledTooltip : void 0,
75
+ children: /* @__PURE__ */ _(t, {
75
76
  type: "button",
76
77
  size: "sm",
77
- variant: "default",
78
- className: "ttw:inline-flex ttw:shrink-0 ttw:gap-2 ttw:whitespace-nowrap",
79
- disabled: w,
80
- onClick: w ? void 0 : T,
81
- "data-testid": P?.transferMoneyButton,
82
- children: [/* @__PURE__ */ p(h, {
83
- className: "ttw:size-4",
84
- "aria-hidden": !0
85
- }), F.transferMoneyCta]
78
+ className: "ttw:whitespace-nowrap",
79
+ disabled: S,
80
+ onClick: S ? void 0 : D,
81
+ "data-testid": I?.transferMoneyButton,
82
+ children: L.transferMoneyCta
86
83
  })
87
- }) : void 0;
88
- return /* @__PURE__ */ m(f, { children: [
89
- /* @__PURE__ */ p(s, {
90
- icon: /* @__PURE__ */ p(g, {
91
- className: "ttw:size-[18px] ttw:shrink-0 ttw:text-primary",
92
- "aria-hidden": !0
93
- }),
94
- title: F.widgetTitle,
95
- headerActions: z,
96
- children: y ? /* @__PURE__ */ p(r, {
97
- "data-testid": P?.skeleton,
98
- height: 120,
99
- width: "100%",
100
- className: "ttw:rounded-md"
101
- }) : x ? /* @__PURE__ */ m("div", {
102
- className: "ttw:flex ttw:flex-col ttw:gap-3",
103
- "data-testid": P?.error,
104
- children: [
105
- /* @__PURE__ */ p(i, {
106
- component: "p",
107
- variant: "body1",
108
- className: "ttw:font-semibold",
109
- children: F.loadErrorTitle
110
- }),
111
- /* @__PURE__ */ p(i, {
112
- component: "p",
113
- variant: "body2",
114
- color: "muted",
115
- children: F.loadErrorDescription
116
- }),
117
- S ? /* @__PURE__ */ p(t, {
118
- type: "button",
119
- variant: "outline",
120
- size: "sm",
121
- className: "ttw:self-start ttw:cursor-pointer",
122
- onClick: S,
123
- "data-testid": P?.retry,
124
- children: F.loadErrorRetry
125
- }) : null
126
- ]
127
- }) : e.length === 0 ? /* @__PURE__ */ m("div", {
128
- className: "ttw:flex ttw:flex-col ttw:gap-2",
129
- "data-testid": P?.empty,
130
- children: [
131
- /* @__PURE__ */ p(i, {
132
- variant: "body1",
133
- className: "ttw:font-semibold",
134
- children: F.emptyTitle
135
- }),
136
- /* @__PURE__ */ p(i, {
137
- variant: "body2",
138
- color: "muted",
139
- component: "p",
140
- children: F.emptyDescription
141
- }),
142
- D && !D.isPreviousDisabled ? R : null
143
- ]
144
- }) : /* @__PURE__ */ m("div", {
84
+ }) : void 0, H = !r && !a && e.length > 0;
85
+ return /* @__PURE__ */ v(g, { children: [
86
+ /* @__PURE__ */ _(o, {
87
+ icon: /* @__PURE__ */ _(y, {}),
88
+ title: L.widgetTitle,
89
+ action: V,
90
+ bodyClassName: H ? "ttw:p-0" : void 0,
91
+ children: r ? /* @__PURE__ */ _(l, {
92
+ isLoading: !0,
93
+ loadingLabel: L.loadingLabel,
94
+ children: /* @__PURE__ */ _(i, {
95
+ "data-testid": I?.skeleton,
96
+ height: 120,
97
+ width: "100%",
98
+ className: "ttw:rounded-md"
99
+ })
100
+ }) : a ? /* @__PURE__ */ _(c, {
101
+ title: L.loadErrorTitle,
102
+ description: L.loadErrorDescription,
103
+ retryLabel: L.loadErrorRetry,
104
+ onRetry: f,
105
+ testId: I?.error
106
+ }) : e.length === 0 ? /* @__PURE__ */ v("div", {
107
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
108
+ children: [/* @__PURE__ */ _(s, {
109
+ title: L.emptyTitle,
110
+ description: L.emptyDescription,
111
+ testId: I?.empty
112
+ }), k && !k.isPreviousDisabled ? B : null]
113
+ }) : /* @__PURE__ */ v("div", {
145
114
  className: "ttw:flex ttw:flex-col",
146
- children: [/* @__PURE__ */ p(n, {
147
- columns: I,
115
+ children: [/* @__PURE__ */ _(n, {
116
+ framed: !1,
117
+ columns: R,
148
118
  data: e,
149
119
  getRowId: (e) => e.rowKey,
150
- rowTestId: P?.transferRow,
151
- rowClassName: (e) => e.rowKey === O ? "ttw:bg-muted ttw:shadow-[inset_3px_0_0_var(--color-primary)]" : void 0,
152
- ...L,
120
+ rowTestId: I?.transferRow,
121
+ rowClassName: (e) => e.rowKey === A ? "ttw:bg-muted" : void 0,
122
+ ...z,
123
+ renderCard: (e) => /* @__PURE__ */ _(E, {
124
+ row: e,
125
+ labels: L
126
+ }),
153
127
  showPagination: !1,
154
- sorting: _,
155
- onSortingChange: v,
128
+ sorting: b,
129
+ onSortingChange: x,
156
130
  pageSize: e.length,
157
- pageSizeOptions: D?.pageSizeOptions ?? [],
158
- onPageSizeChange: v,
159
- onNextPage: v,
160
- onPrevPage: v
161
- }), R]
131
+ pageSizeOptions: k?.pageSizeOptions ?? [],
132
+ onPageSizeChange: x,
133
+ onNextPage: x,
134
+ onPrevPage: x
135
+ }), B]
162
136
  })
163
137
  }),
164
- /* @__PURE__ */ p(l, {
165
- ...E,
166
- labels: F
138
+ /* @__PURE__ */ _(m, {
139
+ ...O,
140
+ labels: L
167
141
  }),
168
- /* @__PURE__ */ p(d, {
169
- detail: A,
170
- onClose: j,
171
- onLinkAccountClick: M,
172
- labels: F,
173
- testIds: P?.transferDetail
142
+ /* @__PURE__ */ _(h, {
143
+ detail: M,
144
+ onClose: N,
145
+ onLinkAccountClick: P,
146
+ labels: L,
147
+ testIds: I?.transferDetail
174
148
  })
175
149
  ] });
176
150
  }
177
- function b({ account: t }) {
178
- return /* @__PURE__ */ m("div", {
179
- title: t.kindLabel,
180
- className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:gap-2",
151
+ function C({ account: e, labels: t }) {
152
+ return /* @__PURE__ */ _(p, {
153
+ singleLine: !0,
154
+ numberLabels: f(t),
155
+ name: e.name,
156
+ number: e.number
157
+ });
158
+ }
159
+ function w({ row: t }) {
160
+ return /* @__PURE__ */ _(e, {
161
+ tone: t.statusTone,
162
+ children: t.statusLabel
163
+ });
164
+ }
165
+ function T({ row: e }) {
166
+ return /* @__PURE__ */ _("span", {
167
+ className: a("ttw:block ttw:text-right ttw:font-semibold ttw:whitespace-nowrap ttw:tabular-nums", e.isAmountStruckThrough && "ttw:line-through"),
168
+ children: e.amountLabel
169
+ });
170
+ }
171
+ function E({ row: e, labels: t }) {
172
+ return /* @__PURE__ */ v("div", {
173
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
181
174
  children: [
182
- /* @__PURE__ */ p("span", {
183
- className: "ttw:truncate",
184
- children: t.name
175
+ /* @__PURE__ */ v("div", {
176
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-2",
177
+ children: [/* @__PURE__ */ _("span", {
178
+ className: "ttw:text-muted-foreground",
179
+ children: e.dateLabel
180
+ }), /* @__PURE__ */ _(T, { row: e })]
185
181
  }),
186
- t.maskLabel ? /* @__PURE__ */ p("span", {
187
- className: "ttw:shrink-0 ttw:font-normal ttw:text-muted-foreground",
188
- children: t.maskLabel
189
- }) : null,
190
- t.badgeLabel ? /* @__PURE__ */ p(e, {
191
- variant: "secondary",
192
- children: t.badgeLabel
193
- }) : null
182
+ /* @__PURE__ */ _(r, { items: [{
183
+ label: t.transferFromLabel,
184
+ value: /* @__PURE__ */ _(C, {
185
+ account: e.from,
186
+ labels: t
187
+ })
188
+ }, {
189
+ label: t.transferToLabel,
190
+ value: /* @__PURE__ */ _(C, {
191
+ account: e.to,
192
+ labels: t
193
+ })
194
+ }] }),
195
+ /* @__PURE__ */ _(w, { row: e })
194
196
  ]
195
197
  });
196
198
  }
197
- export { c as TRANSFERS_WIDGET_LABELS_EN, y as TransfersWidget };
199
+ export { d as TRANSFERS_WIDGET_LABELS_EN, S as TransfersWidget };
@@ -1,6 +1,6 @@
1
1
  // ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/labels.js
2
2
  var e = {
3
- widgetTitle: "Transfer money",
3
+ widgetTitle: "Transfers",
4
4
  transferMoneyCta: "Transfer money",
5
5
  transferMoneyCtaDisabledTooltip: "You must have access to at least two accounts to transfer money",
6
6
  accountFallbackName: "Account",
@@ -16,16 +16,19 @@ var e = {
16
16
  accountKindInternal: "Bank account",
17
17
  accountKindExternal: "External account",
18
18
  externalAccountBadge: "External",
19
+ returnShortReasonAccountClosed: "Account closed",
20
+ returnShortReasonInvalidAccountDetails: "Account details don't match",
21
+ returnShortReasonAccountCannotReceive: "Account can't receive transfers",
22
+ returnShortReasonRefusedByReceiver: "Declined by recipient",
19
23
  externalAccountFallbackName: "External account",
20
24
  accountMaskTemplate: "- {last4}",
25
+ accountNumberEndingIn: "ending in {last4}",
26
+ showAccountNumber: "Show number",
27
+ hideAccountNumber: "Hide number",
21
28
  detailTitle: "Transfer details",
22
29
  detailClose: "Close",
23
30
  detailInitiatedByLabel: "Initiated by",
24
31
  detailInitiatedOnLabel: "Initiated on",
25
- returnShortReasonAccountClosed: "Account closed",
26
- returnShortReasonInvalidAccountDetails: "Account details don't match",
27
- returnShortReasonAccountCannotReceive: "Account can't receive transfers",
28
- returnShortReasonRefusedByReceiver: "Declined by recipient",
29
32
  returnedTitleAccountClosed: "Returned: account closed",
30
33
  returnedTitleInvalidAccountDetails: "Returned: account details don't match",
31
34
  returnedTitleAccountCannotReceive: "Returned: account can't receive transfers",
@@ -39,16 +42,18 @@ var e = {
39
42
  returnedRefundSentence: "{amount} has been refunded to {account}.",
40
43
  returnedPausedSentence: "Transfers to {account} are paused. To keep sending money here, link the account again.",
41
44
  returnedLinkAccountCta: "Link a new account",
42
- loadErrorTitle: "We could not load transfers",
43
- loadErrorDescription: "Check your connection and try again. If the problem continues, contact support.",
45
+ loadingLabel: "Loading transfers",
46
+ loadErrorTitle: "Couldn't load transfers",
47
+ loadErrorDescription: "Check your connection, then try again.",
44
48
  loadErrorRetry: "Try again",
45
49
  emptyTitle: "No transfers yet",
46
50
  emptyDescription: "When you move money between accounts, your transfers will show up here.",
47
51
  paginationRowsPerPage: "Rows per page",
48
52
  paginationPreviousPage: "Previous page",
49
53
  paginationNextPage: "Next page",
50
- modalTitle: "Transfer Money",
54
+ modalTitle: "Transfer money",
51
55
  modalAccountsSubtitle: "ACH transfers take 1–2 business days to settle.",
56
+ modalStepLabel: "Step {current} of {total}",
52
57
  modalFromAccountPlaceholder: "From Account",
53
58
  modalToAccountPlaceholder: "To Account",
54
59
  modalAccountsConfirm: "Confirm",
@@ -60,11 +65,13 @@ var e = {
60
65
  modalToLabel: "To",
61
66
  modalAmountLabel: "Amount",
62
67
  modalAmountPlaceholder: "0.00",
68
+ modalFromRequiredError: "Choose an account to send from.",
69
+ modalToRequiredError: "Choose an account to send to.",
63
70
  modalContinue: "Continue",
64
71
  modalBack: "Back",
65
72
  modalSubmit: "Submit transfer",
66
73
  modalClose: "Close",
67
- modalReviewHeading: "Review Transfer",
74
+ modalReviewHeading: "Review transfer",
68
75
  modalReviewFromAccountLabel: "From Account",
69
76
  modalReviewToAccountLabel: "To Account",
70
77
  modalAvailableBalanceCaption: "Available balance",
@@ -72,7 +79,9 @@ var e = {
72
79
  modalGoBack: "Go back",
73
80
  modalSuccessTitle: "Transfer submitted",
74
81
  modalSuccessDescription: "Your transfer request was submitted successfully. It may take a short time to appear in your transfer list.",
75
- modalResultSuccessTitle: "Success!",
82
+ modalResultSuccessTitle: "Transfer submitted",
83
+ modalResultDescription: "It can take 1–2 business days to arrive.",
84
+ modalDone: "Done",
76
85
  modalResultErrorTitle: "Error",
77
86
  modalResultTransferMessagePrefix: "Your transfer of ",
78
87
  modalResultSuccessMessageSuffix: "was sent!",
@@ -90,6 +99,6 @@ var e = {
90
99
  modalInsufficientFundsError: "Insufficient funds for transfer",
91
100
  modalClearSelections: "Clear selections",
92
101
  modalUnsupportedPairError: "Transfers between external accounts are not supported.",
93
- modalSubmitFailedError: "We could not submit your transfer. Please try again."
102
+ modalSubmitFailedError: "Couldn't submit your transfer. Try again."
94
103
  };
95
104
  export { e as TRANSFERS_WIDGET_LABELS_EN };
@@ -0,0 +1,7 @@
1
+ // ../../libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransfersWidget/maskLabels.js
2
+ var e = (e) => ({
3
+ endingIn: e.accountNumberEndingIn,
4
+ showNumber: e.showAccountNumber,
5
+ hideNumber: e.hideAccountNumber
6
+ });
7
+ export { e as maskLabels };