@tesouro/embedded-components-react 0.11.60 → 0.11.62

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 (65) hide show
  1. package/README.md +21 -21
  2. package/dist/index.css +37 -160
  3. package/dist/index.d.ts +50 -17
  4. package/dist/lib/BankAccountsWidget.d.ts +20 -7
  5. package/dist/lib/LinkedAccountsWidget.d.ts +30 -10
  6. package/dist/lib/WidgetSuite.d.ts +50 -17
  7. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index.js +5 -5
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +21 -26
  9. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +18 -16
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index5.js +22 -35
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index6.js +29 -14
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index7.js +20 -24
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index8.js +31 -0
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index.js +2 -2
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +296 -0
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index12.js +1 -0
  17. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index5.js +5 -10
  18. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +42 -281
  19. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index.js +5 -3
  20. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +180 -0
  21. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +16 -184
  22. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +9 -93
  23. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +136 -81
  24. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index5.js +64 -101
  25. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index6.js +54 -81
  26. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index7.js +90 -65
  27. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index8.js +108 -183
  28. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +76 -0
  29. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/BankAccountsWidget/BankAccountsWidget.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js +6 -8
  31. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +137 -120
  32. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/mocks/labels.js +5 -5
  33. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +47 -60
  34. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankAccountsWidgetUi.js +71 -72
  35. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/BankingHeader.js +22 -37
  36. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/CreateAccountDialog.js +119 -133
  37. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +12 -8
  38. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/LinkedAccountsWidget.js +1 -1
  39. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/labels.js +9 -7
  40. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/rows.js +46 -27
  41. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useAdminEligibleUserIds.js +3 -2
  42. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +248 -224
  43. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/mocks/labels.js +5 -5
  44. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js +22 -36
  46. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +23 -70
  47. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js +91 -27
  48. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +80 -63
  49. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +145 -125
  50. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index2.js +61 -9
  51. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index3.js +77 -50
  52. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index4.js +180 -65
  53. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index5.js +22 -178
  54. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index6.js +6 -75
  55. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index7.js +48 -11
  56. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index8.js +45 -7
  57. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +8 -82
  58. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +15 -14
  60. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/AddTile/AddTile.js +17 -0
  61. package/dist/packages/shared-ui-shadcn/dist/index.js +3603 -3518
  62. package/package.json +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index11.js +0 -1
  64. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +0 -67
  65. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index16.js +0 -138
@@ -1,39 +1,25 @@
1
- import { Input as e, Label as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
1
+ import { ConfirmDialog as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { AccountTemplate as t } from "./index9.js";
3
+ import { jsx as n } from "react/jsx-runtime";
3
4
  // ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index10.js
4
- function i({ id: i, label: a, value: o, disabled: s = !1, readOnly: c = !1, required: l = !1, error: u = !1, errorMessage: d, maxLength: f, inputMode: p, onChange: m }) {
5
- let h = d ? `${i}-error` : void 0;
6
- return /* @__PURE__ */ r("div", {
7
- className: "ttw:space-y-1",
8
- children: [/* @__PURE__ */ r("div", {
9
- className: "ttw:relative",
10
- children: [/* @__PURE__ */ n(e, {
11
- id: i,
12
- placeholder: " ",
13
- disabled: s,
14
- readOnly: c,
15
- required: l,
16
- "aria-invalid": u || void 0,
17
- "aria-describedby": u ? h : void 0,
18
- value: o,
19
- maxLength: f,
20
- inputMode: p,
21
- onChange: (e) => m?.(e.target.value),
22
- className: "ttw:peer ttw:h-auto ttw:min-h-12 ttw:rounded-xl ttw:px-3 ttw:pt-5 ttw:pb-1 ttw:text-base ttw:leading-6 ttw:placeholder:text-transparent"
23
- }), /* @__PURE__ */ r(t, {
24
- htmlFor: i,
25
- className: `ttw:pointer-events-none ttw:absolute ttw:top-1.5 ttw:left-3 ttw:gap-0.5 ttw:font-normal ttw:text-xs ttw:transition-all ttw:peer-placeholder-shown:top-1/2 ttw:peer-placeholder-shown:-translate-y-1/2 ttw:peer-placeholder-shown:text-base ttw:peer-focus:top-1.5 ttw:peer-focus:translate-y-0 ttw:peer-focus:text-xs ${u ? "ttw:text-destructive" : "ttw:text-muted-foreground"}`,
26
- children: [a, l && /* @__PURE__ */ n("span", {
27
- className: "ttw:text-destructive",
28
- "aria-hidden": "true",
29
- children: "*"
30
- })]
31
- })]
32
- }), u && d && /* @__PURE__ */ n("p", {
33
- id: h,
34
- className: "ttw:text-xs ttw:text-destructive",
35
- children: d
36
- })]
5
+ function r({ open: r, labels: i, accountNumber: a, isSubmitting: o, isAuthPending: s = !1, isError: c, onOpenChange: l, onConfirm: u }) {
6
+ return /* @__PURE__ */ n(e, {
7
+ submitError: c ? i.sendDepositsErrorTitle : void 0,
8
+ open: r,
9
+ onOpenChange: l,
10
+ title: i.sendDepositsTitle,
11
+ description: /* @__PURE__ */ n(t, {
12
+ template: i.sendDepositsDescription,
13
+ accountNumber: a
14
+ }),
15
+ loading: o,
16
+ confirmDisabled: s,
17
+ onConfirm: u,
18
+ labels: {
19
+ confirm: i.sendDepositsConfirmButton,
20
+ cancel: i.cancelButton,
21
+ close: i.closeButton
22
+ }
37
23
  });
38
24
  }
39
- export { i as TextInput };
25
+ export { r as SendDepositsDialog };
@@ -1,73 +1,26 @@
1
- import { Button as e, Dialog as t, DialogContent as n, DialogFooter as r, DialogHeader as i, DialogTitle as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { InlineErrorAlert as o } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { TextInput as s } from "./index10.js";
5
- import { jsx as c, jsxs as l } from "react/jsx-runtime";
1
+ import { ConfirmDialog as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { AccountTemplate as t } from "./index9.js";
3
+ import { jsx as n } from "react/jsx-runtime";
6
4
  // ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js
7
- function u({ open: u, labels: d, editForm: f, isSubmitting: p, isActionDisabled: m, isEditError: h, onOpenChange: g, onEditFormChange: _, onEditSubmit: v }) {
8
- return /* @__PURE__ */ c(t, {
9
- open: u,
10
- onOpenChange: g,
11
- children: /* @__PURE__ */ l(n, {
12
- showCloseButton: !0,
13
- labels: { close: d.closeButton },
14
- className: "ttw:gap-0 ttw:rounded-xl ttw:p-0",
15
- children: [
16
- /* @__PURE__ */ c(i, {
17
- className: "ttw:px-6 ttw:pb-4 ttw:pt-6 ttw:text-left",
18
- children: /* @__PURE__ */ c(a, {
19
- className: "ttw:text-xl",
20
- children: d.editTitle
21
- })
22
- }),
23
- /* @__PURE__ */ l("div", {
24
- className: "ttw:space-y-4 ttw:border-y ttw:border-border ttw:p-6",
25
- children: [
26
- /* @__PURE__ */ c(s, {
27
- id: "linked-account-edit-nickname",
28
- label: d.nicknameLabel,
29
- value: f.nickname,
30
- disabled: m,
31
- required: !0,
32
- onChange: (e) => _({
33
- ...f,
34
- nickname: e
35
- })
36
- }),
37
- /* @__PURE__ */ c(s, {
38
- id: "linked-account-edit-account-number",
39
- label: d.accountNumberLabel,
40
- value: f.accountNumber,
41
- readOnly: !0,
42
- disabled: !0
43
- }),
44
- /* @__PURE__ */ c(s, {
45
- id: "linked-account-edit-routing-number",
46
- label: d.routingNumberLabel,
47
- value: f.routingNumber,
48
- readOnly: !0,
49
- disabled: !0
50
- }),
51
- h && /* @__PURE__ */ c(o, { children: d.actionErrorTitle })
52
- ]
53
- }),
54
- /* @__PURE__ */ l(r, {
55
- className: "ttw:px-6 ttw:pb-6 ttw:pt-4",
56
- children: [/* @__PURE__ */ c(e, {
57
- type: "button",
58
- variant: "outline",
59
- onClick: () => g(!1),
60
- children: d.cancelButton
61
- }), /* @__PURE__ */ c(e, {
62
- type: "button",
63
- loading: p,
64
- disabled: m,
65
- onClick: v,
66
- children: d.saveButton
67
- })]
68
- })
69
- ]
70
- })
5
+ function r({ open: r, labels: i, accountNumber: a, isSubmitting: o, isAuthPending: s = !1, isError: c, onOpenChange: l, onUnlinkConfirm: u }) {
6
+ return /* @__PURE__ */ n(e, {
7
+ submitError: c ? i.unlinkErrorTitle : void 0,
8
+ open: r,
9
+ onOpenChange: l,
10
+ title: i.unlinkTitle,
11
+ description: /* @__PURE__ */ n(t, {
12
+ template: i.unlinkDescription,
13
+ accountNumber: a
14
+ }),
15
+ destructive: !0,
16
+ loading: o,
17
+ confirmDisabled: s,
18
+ onConfirm: u,
19
+ labels: {
20
+ confirm: i.unlinkConfirmButton,
21
+ cancel: i.cancelButton,
22
+ close: i.closeButton
23
+ }
71
24
  });
72
25
  }
73
- export { u as EditAccountDialog };
26
+ export { r as UnlinkAccountDialog };
@@ -1,33 +1,97 @@
1
- import { Link as e } from "../../../shared/ui/dist/lib/Link/Link.js";
2
- import "../../../shared/ui/dist/index.js";
3
- import { FeaturedIcon as t } from "./index2.js";
4
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
- import { ArrowLeftRight as i, ExternalLink as a } from "lucide-react";
1
+ import { DescriptionList as e, FieldRequirement as t, FormDialog as n, Input as r, Label as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
3
  // ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index12.js
7
- function o({ labels: o, learnMoreUrl: s, testId: c }) {
8
- return /* @__PURE__ */ r("div", {
9
- "data-testid": c,
10
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-3 ttw:p-8 ttw:text-center",
4
+ function s({ id: e, label: n, value: s, disabled: c, error: l, onChange: u }) {
5
+ let d = `${e}-error`;
6
+ return /* @__PURE__ */ o("div", {
7
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
11
8
  children: [
12
- /* @__PURE__ */ n(t, { children: /* @__PURE__ */ n(i, { className: "ttw:size-5 ttw:text-foreground" }) }),
13
- /* @__PURE__ */ r("div", {
14
- className: "ttw:flex ttw:max-w-150 ttw:flex-col ttw:items-center ttw:gap-1.5",
15
- children: [/* @__PURE__ */ n("p", {
16
- className: "ttw:text-lg ttw:font-semibold ttw:text-foreground",
17
- children: o.emptyTitle
18
- }), /* @__PURE__ */ n("p", {
19
- className: "ttw:text-sm ttw:text-muted-foreground",
20
- children: o.emptyDescription
21
- })]
9
+ /* @__PURE__ */ a(i, {
10
+ htmlFor: e,
11
+ requirement: t.Required,
12
+ children: n
13
+ }),
14
+ /* @__PURE__ */ a(r, {
15
+ id: e,
16
+ value: s,
17
+ required: !0,
18
+ inputMode: "decimal",
19
+ disabled: c,
20
+ "aria-invalid": l ? !0 : void 0,
21
+ "aria-describedby": l ? d : void 0,
22
+ onChange: (e) => u(e.target.value)
22
23
  }),
23
- s && /* @__PURE__ */ r(e, {
24
- href: s,
25
- target: "_blank",
26
- rel: "noopener noreferrer",
27
- className: "ttw:inline-flex ttw:items-center ttw:gap-1.5 ttw:text-sm ttw:font-medium ttw:text-foreground ttw:hover:underline ttw:hover:underline-offset-2 ttw:[&_svg]:size-4",
28
- children: [o.learnMoreButton, /* @__PURE__ */ n(a, {})]
29
- })
24
+ l ? /* @__PURE__ */ a("p", {
25
+ id: d,
26
+ className: "ttw:text-sm ttw:text-destructive",
27
+ children: l
28
+ }) : null
30
29
  ]
31
30
  });
32
31
  }
33
- export { o as EmptyState };
32
+ function c({ open: t, labels: r, verifyForm: i, accountName: c, accountNumber: l, isSubmitting: u, isAuthPending: d = !1, isActionDisabled: f, isVerifyFirstAmountInvalid: p, isVerifySecondAmountInvalid: m, isRequiredErrorVisible: h, isVerifyError: g, onOpenChange: _, onVerifyFormChange: v, onVerifySubmit: y }) {
33
+ let b = (e, t, n) => {
34
+ if (t) return r.verifyAmountError;
35
+ if (h && e.trim() === "") return n;
36
+ };
37
+ return /* @__PURE__ */ a(n, {
38
+ submitError: g ? r.verifyErrorTitle : void 0,
39
+ open: t,
40
+ onOpenChange: _,
41
+ title: r.verifyTitle,
42
+ description: r.verifyDescription,
43
+ submitting: u || d,
44
+ onSubmit: y,
45
+ labels: {
46
+ submit: r.verifySubmitButton,
47
+ cancel: r.cancelButton,
48
+ close: r.closeButton
49
+ },
50
+ children: /* @__PURE__ */ o("div", {
51
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
52
+ children: [
53
+ /* @__PURE__ */ a(e, { items: [{
54
+ label: r.nicknameLabel,
55
+ value: c ?? ""
56
+ }, {
57
+ label: r.accountNumberLabel,
58
+ value: l ?? ""
59
+ }] }),
60
+ /* @__PURE__ */ o("p", {
61
+ className: "ttw:text-sm ttw:text-muted-foreground",
62
+ children: [
63
+ /* @__PURE__ */ a("span", {
64
+ className: "ttw:font-semibold ttw:text-foreground",
65
+ children: r.verifyExampleLabel
66
+ }),
67
+ " ",
68
+ r.verifyExampleText
69
+ ]
70
+ }),
71
+ /* @__PURE__ */ a(s, {
72
+ id: "linked-account-first-amount",
73
+ label: r.firstAmountLabel,
74
+ value: i.firstAmount,
75
+ disabled: f,
76
+ error: b(i.firstAmount, p, r.firstAmountRequiredError),
77
+ onChange: (e) => v({
78
+ ...i,
79
+ firstAmount: e
80
+ })
81
+ }),
82
+ /* @__PURE__ */ a(s, {
83
+ id: "linked-account-second-amount",
84
+ label: r.secondAmountLabel,
85
+ value: i.secondAmount,
86
+ disabled: f,
87
+ error: b(i.secondAmount, m, r.secondAmountRequiredError),
88
+ onChange: (e) => v({
89
+ ...i,
90
+ secondAmount: e
91
+ })
92
+ })
93
+ ]
94
+ })
95
+ });
96
+ }
97
+ export { c as VerifyAccountDialog };
@@ -1,64 +1,81 @@
1
- import { AlertDialog as e, AlertDialogAction as t, AlertDialogCancel as n, AlertDialogContent as r, AlertDialogDescription as i, AlertDialogFooter as a, AlertDialogHeader as o, AlertDialogTitle as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { InlineErrorAlert as c } from "../../../shared/ui/dist/lib/InlineErrorAlert/InlineErrorAlert.js";
3
- import "../../../shared/ui/dist/index.js";
4
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
5
- import { Trash2Icon as f, XIcon as p } from "lucide-react";
6
1
  // ../../libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js
7
- function m({ open: m, labels: h, accountNumber: g, isSubmitting: _, isActionDisabled: v, isActionError: y, onOpenChange: b, onUnlinkConfirm: x }) {
8
- let [S, C] = h.unlinkDescription.split("{account}");
9
- return /* @__PURE__ */ u(e, {
10
- open: m,
11
- onOpenChange: b,
12
- children: /* @__PURE__ */ d(r, {
13
- showCloseButton: !1,
14
- className: "ttw:gap-0 ttw:rounded-xl ttw:p-0",
15
- children: [
16
- /* @__PURE__ */ d(o, {
17
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-3 ttw:px-6 ttw:pb-4 ttw:pt-6 ttw:text-center",
18
- children: [/* @__PURE__ */ u("span", {
19
- className: "ttw:flex ttw:size-11 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive ttw:text-destructive-foreground ttw:ring-8 ttw:ring-destructive/20",
20
- children: /* @__PURE__ */ u(f, { className: "ttw:size-5" })
21
- }), /* @__PURE__ */ d("div", {
22
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-1",
23
- children: [/* @__PURE__ */ u(s, {
24
- className: "ttw:text-xl",
25
- children: h.unlinkTitle
26
- }), /* @__PURE__ */ d(i, { children: [S, C !== void 0 && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ u("span", {
27
- className: "ttw:font-medium ttw:text-foreground",
28
- children: g
29
- }), C] })] })]
30
- })]
31
- }),
32
- /* @__PURE__ */ d(n, {
33
- disabled: _,
34
- className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:mt-0 ttw:size-4 ttw:rounded-sm ttw:border-0 ttw:bg-transparent ttw:p-0 ttw:opacity-50 ttw:shadow-none ttw:hover:bg-transparent ttw:hover:opacity-100",
35
- children: [/* @__PURE__ */ u(p, { className: "ttw:size-4" }), /* @__PURE__ */ u("span", {
36
- className: "ttw:sr-only",
37
- children: h.cancelButton
38
- })]
39
- }),
40
- y && /* @__PURE__ */ u("div", {
41
- className: "ttw:px-6",
42
- children: /* @__PURE__ */ u(c, { children: h.actionErrorTitle })
43
- }),
44
- /* @__PURE__ */ d(a, {
45
- className: "ttw:flex-row ttw:gap-3 ttw:px-6 ttw:pb-6 ttw:pt-4",
46
- children: [/* @__PURE__ */ u(n, {
47
- disabled: _,
48
- className: "ttw:flex-1",
49
- children: h.cancelButton
50
- }), /* @__PURE__ */ u(t, {
51
- variant: "destructive",
52
- className: "ttw:flex-1",
53
- disabled: v || _,
54
- onClick: (e) => {
55
- e.preventDefault(), x();
56
- },
57
- children: h.unlinkConfirmButton
58
- })]
59
- })
60
- ]
61
- })
62
- });
63
- }
64
- export { m as UnlinkAccountDialog };
2
+ var e = {
3
+ title: "Linked accounts",
4
+ connectButton: "Link account",
5
+ learnMoreButton: "Learn more about linked accounts",
6
+ connectTitle: "Link account",
7
+ nicknameLabel: "Account nickname",
8
+ nameOnAccountLabel: "Legal name on account",
9
+ accountNumberLabel: "Account number",
10
+ routingNumberLabel: "Routing number",
11
+ routingNumberError: "Enter a 9-digit routing number.",
12
+ requiredFieldError: "This field is required.",
13
+ holderTypeRequiredError: "Choose who owns the account.",
14
+ accountTypeRequiredError: "Choose an account type.",
15
+ legalNameRequiredError: "Enter the legal name.",
16
+ nicknameRequiredError: "Enter a nickname.",
17
+ routingNumberRequiredError: "Enter the routing number.",
18
+ accountNumberRequiredError: "Enter the account number.",
19
+ firstAmountRequiredError: "Enter the first deposit amount.",
20
+ secondAmountRequiredError: "Enter the second deposit amount.",
21
+ connectErrorTitle: "Couldn't link account. Try again.",
22
+ unlinkErrorTitle: "Couldn't unlink account. Try again.",
23
+ nicknamePlaceholder: "e.g. Operating account",
24
+ holderTypeLabel: "Who owns this account?",
25
+ personalOption: "Personal",
26
+ personalOptionDescription: "Owned by an individual",
27
+ businessOption: "Business",
28
+ businessOptionDescription: "Owned by a company or organization",
29
+ typeLabel: "Account type",
30
+ checkingOption: "Checking",
31
+ savingsOption: "Savings",
32
+ cancelButton: "Cancel",
33
+ closeButton: "Close",
34
+ nextButton: "Next",
35
+ backButton: "Back",
36
+ stepIndicator: "Step {current} of {total}",
37
+ connectStep1Heading: "Enter your bank details",
38
+ connectStep1Description: "Tell us about the account you're linking, then enter its routing and account numbers.",
39
+ connectStep2Heading: "Set team member access",
40
+ connectStep2Description: "Who from your team should have access to manage/view this external account?",
41
+ teamMemberAccessTooltip: "Members with access can view and manage this external account.",
42
+ teamMembersLoadingLabel: "Loading team members",
43
+ teamMembersErrorTitle: "Couldn't load team members",
44
+ teamMembersEmptyLabel: "No additional team members to add.",
45
+ summaryTitle: "Verification deposits sent",
46
+ summaryAccountAddedTitle: "Account added",
47
+ summaryAccountPrefix: "Account",
48
+ doneButton: "Done",
49
+ saveButton: "Save account",
50
+ editButton: "Edit",
51
+ verifyButton: "Verify",
52
+ unlinkButton: "Unlink",
53
+ moreActionsLabel: "More actions",
54
+ unverifiedStatus: "Unverified",
55
+ pendingStatus: "Pending",
56
+ failedStatus: "Failed",
57
+ editTitle: "Edit nickname",
58
+ verifyTitle: "Enter deposit amounts",
59
+ verifyDescription: "To verify this account, enter the two deposit amounts seen in your bank account.",
60
+ verifyExampleLabel: "Example:",
61
+ verifyExampleText: "If you received $0.12 and $0.34, enter \"0.12\" and \"0.34\".",
62
+ verifySubmitButton: "Verify account",
63
+ sendDepositsTitle: "Send verification deposits?",
64
+ sendDepositsDescription: "We will send two small deposits to account {account}. When they arrive, choose Verify on this account and enter both amounts.",
65
+ sendDepositsConfirmButton: "Send deposits",
66
+ sendDepositsErrorTitle: "Couldn't send deposits. Try again.",
67
+ unlinkTitle: "Unlink account",
68
+ unlinkDescription: "By unlinking account {account}, transfers already in process will complete, but no future transfers can use this account.",
69
+ unlinkConfirmButton: "Unlink account",
70
+ firstAmountLabel: "Deposit 1",
71
+ secondAmountLabel: "Deposit 2",
72
+ verifyAmountError: "Enter an amount between $0.01 and $0.99.",
73
+ loadingLabel: "Loading linked accounts",
74
+ errorTitle: "Couldn't load linked accounts",
75
+ retryButton: "Try again",
76
+ actionErrorTitle: "Couldn't save account. Try again.",
77
+ verifyErrorTitle: "Couldn't verify account. Check the amounts and try again.",
78
+ emptyTitle: "No linked accounts yet",
79
+ emptyDescription: "No external accounts have been linked yet."
80
+ };
81
+ export { e as DEFAULT_LABELS };