@tesouro/embedded-components-react 0.7.73 → 0.8.0
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/README.md +14 -17
- package/dist/index.css +18 -17
- package/dist/index.d.ts +178 -49
- package/dist/index.js +51 -50
- package/dist/lib/BankAccountOnboardingWidget.d.ts +178 -49
- package/dist/lib/BankAccountOnboardingWidget.js +8 -7
- package/dist/lib/WidgetSuite.d.ts +177 -48
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +131 -96
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +509 -496
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +47 -78
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +47 -49
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/ReviewStep.js +103 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/TermsStep.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +49 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/apiMapping.js +35 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/buildOnboardingPrefill.js +4 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/formatPhoneNumberInput.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldInput/maxBirthDate.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +22 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +8 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +59 -60
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/testIds.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +344 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +59 -58
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +40 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +7 -40
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +57 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +30 -93
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +40 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +36 -269
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +93 -25
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js +61 -78
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +270 -61
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +25 -338
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +23 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +53 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +342 -66
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -82
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +27 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +56 -54
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +123 -9
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +5 -62
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +82 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +256 -311
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +81 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +83 -53
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +2 -147
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +69 -46
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +5 -35
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/labels.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +127 -141
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/validatePolicyDraft.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +122 -165
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShellOverlayPortal.js +12 -27
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuite.js +0 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +81 -23
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js
CHANGED
|
@@ -1,55 +1,85 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Button as e, Separator as t, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { CircleUserRoundIcon as a, Trash2Icon as o } from "lucide-react";
|
|
2
4
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
5
|
+
function s({ ownerName: s, shareDisplay: c, review: l, isDisabled: u, labels: d, onDelete: f, testIds: p }) {
|
|
6
|
+
return /* @__PURE__ */ i("section", {
|
|
7
|
+
"aria-labelledby": "additional-owner-review-title",
|
|
8
|
+
"data-testid": p?.root,
|
|
9
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:rounded-md ttw:border ttw:border-primary ttw:bg-background ttw:p-4",
|
|
10
|
+
children: [
|
|
11
|
+
/* @__PURE__ */ i("div", {
|
|
12
|
+
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
13
|
+
children: [/* @__PURE__ */ r(a, {
|
|
14
|
+
className: "ttw:size-5 ttw:shrink-0 ttw:text-muted-foreground",
|
|
15
|
+
"aria-hidden": !0
|
|
16
|
+
}), /* @__PURE__ */ i("div", {
|
|
17
|
+
className: "ttw:grid ttw:flex-1 ttw:grid-cols-2 ttw:gap-x-6",
|
|
18
|
+
children: [/* @__PURE__ */ r(n, {
|
|
19
|
+
component: "h4",
|
|
20
|
+
variant: "h6",
|
|
21
|
+
id: "additional-owner-review-title",
|
|
22
|
+
tabIndex: -1,
|
|
23
|
+
"data-owner-panel-heading": "",
|
|
24
|
+
"data-needs-attention": "",
|
|
25
|
+
className: "ttw:font-semibold ttw:text-foreground",
|
|
26
|
+
children: s
|
|
27
|
+
}), /* @__PURE__ */ r(n, {
|
|
28
|
+
variant: "body1",
|
|
29
|
+
className: "ttw:text-foreground",
|
|
30
|
+
children: c
|
|
31
|
+
})]
|
|
32
|
+
})]
|
|
33
|
+
}),
|
|
34
|
+
/* @__PURE__ */ i("div", {
|
|
35
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:pl-8",
|
|
36
|
+
children: [/* @__PURE__ */ r(t, {}), /* @__PURE__ */ r("dl", {
|
|
37
|
+
className: "ttw:grid ttw:grid-cols-2 ttw:gap-x-6 ttw:gap-y-3",
|
|
38
|
+
children: l.rows.map((e) => /* @__PURE__ */ i("div", {
|
|
39
|
+
className: "ttw:contents",
|
|
40
|
+
children: [/* @__PURE__ */ r("dt", {
|
|
41
|
+
className: "ttw:text-muted-foreground",
|
|
42
|
+
children: e.label
|
|
43
|
+
}), /* @__PURE__ */ r("dd", {
|
|
44
|
+
className: "ttw:whitespace-pre-line ttw:text-foreground",
|
|
45
|
+
children: e.value
|
|
46
|
+
})]
|
|
47
|
+
}, e.label))
|
|
48
|
+
})]
|
|
49
|
+
}),
|
|
50
|
+
/* @__PURE__ */ i("div", {
|
|
51
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:justify-between ttw:gap-3 ttw:pl-8",
|
|
52
|
+
children: [/* @__PURE__ */ i(e, {
|
|
53
|
+
type: "button",
|
|
54
|
+
variant: "ghost",
|
|
55
|
+
onClick: f,
|
|
56
|
+
disabled: u,
|
|
57
|
+
"data-owner-delete-trigger": "",
|
|
58
|
+
className: "ttw:gap-1.5 ttw:text-foreground ttw:hover:text-foreground",
|
|
59
|
+
children: [/* @__PURE__ */ r(o, {
|
|
60
|
+
className: "ttw:size-4",
|
|
61
|
+
"aria-hidden": !0
|
|
62
|
+
}), d.deleteOwner]
|
|
63
|
+
}), /* @__PURE__ */ i("div", {
|
|
64
|
+
className: "ttw:flex ttw:flex-wrap ttw:gap-3",
|
|
65
|
+
children: [/* @__PURE__ */ r(e, {
|
|
66
|
+
type: "button",
|
|
67
|
+
variant: "secondary",
|
|
68
|
+
onClick: l.onEdit,
|
|
69
|
+
disabled: u,
|
|
70
|
+
"data-testid": p?.editButton,
|
|
71
|
+
children: d.editOwner
|
|
72
|
+
}), /* @__PURE__ */ r(e, {
|
|
73
|
+
type: "button",
|
|
74
|
+
onClick: l.onConfirm,
|
|
75
|
+
disabled: u,
|
|
76
|
+
"data-testid": p?.confirmButton,
|
|
77
|
+
children: d.confirmDetails
|
|
78
|
+
})]
|
|
79
|
+
})]
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
});
|
|
83
|
+
}
|
|
54
84
|
//#endregion
|
|
55
|
-
export {
|
|
85
|
+
export { s as AdditionalOwnerReviewPanel };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js
CHANGED
|
@@ -1,149 +1,4 @@
|
|
|
1
|
-
import { Alert as e, AlertDescription as t, Button as n, Table as r, TableBody as i, TableCell as a, TableHead as o, TableHeader as s, TableRow as c, cn as l } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as u } from "./index6.js";
|
|
3
|
-
import { AdditionalOwnerDeleteOverlay as d } from "./index2.js";
|
|
4
|
-
import { FieldError as f, fieldErrorAria as p } from "./index3.js";
|
|
5
|
-
import { AdditionalOwnerFormOverlay as m } from "./index4.js";
|
|
6
|
-
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
7
|
-
import { PencilIcon as _, PlusIcon as v, Trash2Icon as y } from "lucide-react";
|
|
8
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js
|
|
9
|
-
|
|
10
|
-
let I = {
|
|
11
|
-
...u,
|
|
12
|
-
...P
|
|
13
|
-
}, L = M !== null || k !== null;
|
|
14
|
-
return /* @__PURE__ */ g("div", {
|
|
15
|
-
className: "ttw:relative ttw:flex ttw:flex-col ttw:gap-6",
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ g("div", {
|
|
18
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
19
|
-
children: [/* @__PURE__ */ h("div", {
|
|
20
|
-
className: "ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-border",
|
|
21
|
-
children: /* @__PURE__ */ g(r, { children: [/* @__PURE__ */ h(s, { children: /* @__PURE__ */ g(c, {
|
|
22
|
-
className: "ttw:border-border ttw:bg-muted ttw:hover:bg-muted",
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ h(o, {
|
|
25
|
-
className: "ttw:px-4 ttw:py-3",
|
|
26
|
-
children: I.ownerNameColumn
|
|
27
|
-
}),
|
|
28
|
-
/* @__PURE__ */ h(o, {
|
|
29
|
-
className: "ttw:px-4 ttw:py-3",
|
|
30
|
-
children: I.ownerShareColumn
|
|
31
|
-
}),
|
|
32
|
-
/* @__PURE__ */ h(o, {
|
|
33
|
-
className: "ttw:px-4 ttw:py-3 ttw:text-right",
|
|
34
|
-
children: I.ownerActionsColumn
|
|
35
|
-
})
|
|
36
|
-
]
|
|
37
|
-
}) }), /* @__PURE__ */ g(i, { children: [
|
|
38
|
-
C ? /* @__PURE__ */ g(c, {
|
|
39
|
-
className: "ttw:hover:bg-transparent",
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ h(a, {
|
|
42
|
-
className: "ttw:px-4",
|
|
43
|
-
children: x
|
|
44
|
-
}),
|
|
45
|
-
/* @__PURE__ */ h(a, {
|
|
46
|
-
className: "ttw:px-4",
|
|
47
|
-
children: S
|
|
48
|
-
}),
|
|
49
|
-
/* @__PURE__ */ h(a, { className: "ttw:px-4" })
|
|
50
|
-
]
|
|
51
|
-
}) : null,
|
|
52
|
-
b.map((e, t) => {
|
|
53
|
-
let r = `additional-owner-${t}`;
|
|
54
|
-
return /* @__PURE__ */ g(c, {
|
|
55
|
-
className: l(e.error ? "ttw:bg-destructive/5 ttw:hover:bg-destructive/5" : "ttw:hover:bg-transparent"),
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ g(a, {
|
|
58
|
-
className: "ttw:px-4 ttw:whitespace-normal",
|
|
59
|
-
children: [e.name, /* @__PURE__ */ h(f, {
|
|
60
|
-
fieldId: r,
|
|
61
|
-
error: e.error
|
|
62
|
-
})]
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ h(a, {
|
|
65
|
-
className: l("ttw:px-4", e.error && "ttw:text-destructive"),
|
|
66
|
-
children: e.shareDisplay
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ h(a, {
|
|
69
|
-
className: "ttw:px-4 ttw:text-right",
|
|
70
|
-
children: /* @__PURE__ */ g("div", {
|
|
71
|
-
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
72
|
-
children: [/* @__PURE__ */ h(n, {
|
|
73
|
-
type: "button",
|
|
74
|
-
variant: "ghost",
|
|
75
|
-
size: "icon-sm",
|
|
76
|
-
"aria-label": I.edit,
|
|
77
|
-
"aria-describedby": p(r, e.error)["aria-describedby"],
|
|
78
|
-
onClick: () => D(t),
|
|
79
|
-
disabled: N || L,
|
|
80
|
-
children: /* @__PURE__ */ h(_, { className: "ttw:size-4" })
|
|
81
|
-
}), /* @__PURE__ */ h(n, {
|
|
82
|
-
type: "button",
|
|
83
|
-
variant: "ghost",
|
|
84
|
-
size: "icon-sm",
|
|
85
|
-
"aria-label": I.remove,
|
|
86
|
-
onClick: () => O(t),
|
|
87
|
-
disabled: N || L,
|
|
88
|
-
children: /* @__PURE__ */ h(y, { className: "ttw:size-4" })
|
|
89
|
-
})]
|
|
90
|
-
})
|
|
91
|
-
})
|
|
92
|
-
]
|
|
93
|
-
}, t);
|
|
94
|
-
}),
|
|
95
|
-
!C && b.length === 0 ? /* @__PURE__ */ h(c, {
|
|
96
|
-
className: "ttw:hover:bg-transparent",
|
|
97
|
-
children: /* @__PURE__ */ h(a, {
|
|
98
|
-
colSpan: 3,
|
|
99
|
-
className: "ttw:px-4 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
|
|
100
|
-
children: I.emptyOwnersText
|
|
101
|
-
})
|
|
102
|
-
}) : null
|
|
103
|
-
] })] })
|
|
104
|
-
}), L ? null : /* @__PURE__ */ g(n, {
|
|
105
|
-
type: "button",
|
|
106
|
-
variant: "ghost",
|
|
107
|
-
onClick: E,
|
|
108
|
-
disabled: T || N,
|
|
109
|
-
"data-testid": F?.addOwnerButton,
|
|
110
|
-
className: "ttw:h-auto ttw:w-fit ttw:justify-start ttw:gap-1.5 ttw:px-0 ttw:has-[>svg]:px-0 ttw:pl-4 ttw:font-normal ttw:text-primary ttw:hover:bg-transparent ttw:hover:text-primary/90",
|
|
111
|
-
children: [/* @__PURE__ */ h(v, { className: "ttw:size-4" }), I.addOwner]
|
|
112
|
-
})]
|
|
113
|
-
}),
|
|
114
|
-
w ? /* @__PURE__ */ h(e, {
|
|
115
|
-
variant: "destructive",
|
|
116
|
-
children: /* @__PURE__ */ h(t, { children: w })
|
|
117
|
-
}) : null,
|
|
118
|
-
M ? /* @__PURE__ */ h(m, {
|
|
119
|
-
fields: M.fields,
|
|
120
|
-
display: M.display,
|
|
121
|
-
isExisting: M.isExisting,
|
|
122
|
-
isValid: M.isValid,
|
|
123
|
-
isDisabled: N,
|
|
124
|
-
labels: I,
|
|
125
|
-
onCancel: M.onCancel,
|
|
126
|
-
onSubmit: M.onSubmit,
|
|
127
|
-
onClose: M.onCancel,
|
|
128
|
-
ssnRevealed: M.ssnRevealed,
|
|
129
|
-
ssnToggleAriaLabel: M.ssnToggleAriaLabel,
|
|
130
|
-
onToggleSsnVisibility: M.onToggleSsnVisibility,
|
|
131
|
-
testIds: { overlay: F?.overlay }
|
|
132
|
-
}) : null,
|
|
133
|
-
k ? /* @__PURE__ */ h(d, {
|
|
134
|
-
ownerName: k,
|
|
135
|
-
labels: I,
|
|
136
|
-
isDisabled: N,
|
|
137
|
-
onCancel: j,
|
|
138
|
-
onConfirm: A,
|
|
139
|
-
onClose: j,
|
|
140
|
-
testIds: {
|
|
141
|
-
...F?.deleteOverlay,
|
|
142
|
-
overlay: F?.overlay
|
|
143
|
-
}
|
|
144
|
-
}) : null
|
|
145
|
-
]
|
|
146
|
-
});
|
|
147
|
-
}
|
|
2
|
+
var e = (e) => `Ending in ${e}. Leave blank to keep it, or enter it again to change it.`;
|
|
148
3
|
//#endregion
|
|
149
|
-
export {
|
|
4
|
+
export { e as IDENTIFIER_ON_FILE_TEMPLATE_EN };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js
CHANGED
|
@@ -1,56 +1,79 @@
|
|
|
1
|
-
import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./
|
|
1
|
+
import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index7.js";
|
|
2
2
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
var t = {
|
|
4
|
+
heading: "Who are the beneficial owners?",
|
|
5
|
+
subheading: "Review each owner's details before continuing.",
|
|
6
|
+
emptySubheading: "Federal regulations require us to collect details for each person who owns 25% or more of the business. If no one does, you can continue without adding anyone.",
|
|
7
|
+
reviewSectionTitle: "Beneficial owners",
|
|
8
|
+
primaryOwnerShareLabel: "Ownership share",
|
|
9
|
+
emptyOwnersText: "No beneficial owners added yet",
|
|
10
|
+
emptyOwnersAddOwner: "Add beneficial owner",
|
|
11
|
+
addOwner: "Add owner",
|
|
12
|
+
edit: "Edit",
|
|
13
|
+
completeDetails: "Complete details",
|
|
14
|
+
remove: "Remove",
|
|
15
|
+
removePrimaryOwnerDisabled: "Remove yourself as an owner from your personal details",
|
|
16
|
+
editPrimaryOwnerDisabled: "Edit your ownership from your personal details",
|
|
17
|
+
editPrimaryOwnerTooltip: "Your details and ownership come from the Personal details step. Go back to that step to edit them.",
|
|
18
|
+
removePrimaryOwnerTooltip: "You can't remove yourself because you're the applicant. To change your ownership, go back to the Personal details step.",
|
|
19
|
+
startReview: "Start review",
|
|
20
|
+
deleteOwner: "Delete owner",
|
|
21
|
+
editOwner: "Edit owner",
|
|
22
|
+
confirmDetails: "I confirm these details are correct",
|
|
23
|
+
statusComplete: "Details complete",
|
|
24
|
+
statusMissing: "Details missing",
|
|
25
|
+
statusUnreviewed: "Needs review",
|
|
26
|
+
inlineEditHeadingTemplate: (e) => `Editing ${e}`,
|
|
27
|
+
missingFieldsAlert: "Complete the missing fields",
|
|
28
|
+
allFieldsRequiredNote: "Required fields are marked with an asterisk *",
|
|
29
|
+
reviewDateOfBirth: "Date of birth",
|
|
30
|
+
reviewSsn: "SSN",
|
|
31
|
+
reviewPhone: "Phone",
|
|
32
|
+
reviewHomeAddress: "Home address",
|
|
33
|
+
cancel: "Cancel",
|
|
34
|
+
save: "Save owner",
|
|
35
|
+
close: "Close",
|
|
36
|
+
addOwnerSubmit: "Add owner",
|
|
37
|
+
saveOwnerSubmit: "Save owner",
|
|
38
|
+
ownerNameColumn: "Name",
|
|
39
|
+
ownerShareColumn: "Ownership %",
|
|
40
|
+
ownerActionsColumn: "Actions",
|
|
41
|
+
formHeadingAdd: "Add additional owner",
|
|
42
|
+
formHeadingEdit: "Edit additional owner",
|
|
43
|
+
firstName: "First name",
|
|
44
|
+
lastName: "Last name",
|
|
45
|
+
dateOfBirth: "Date of birth",
|
|
46
|
+
dateOfBirthPlaceholder: "MM/DD/YYYY",
|
|
47
|
+
dateOfBirthHint: "For example, 04/23/1985",
|
|
48
|
+
dateOfBirthInvalidError: "Enter a valid date of birth",
|
|
49
|
+
ssn: "SSN",
|
|
50
|
+
ssnOnFileTemplate: e,
|
|
51
|
+
ssnInvalid: "SSN must be 9 digits",
|
|
52
|
+
ssnShow: "Show SSN",
|
|
53
|
+
ssnHide: "Hide SSN",
|
|
54
|
+
homeAddress: "Home address",
|
|
12
55
|
city: "City",
|
|
13
56
|
state: "State",
|
|
14
57
|
statePlaceholder: "Select state",
|
|
15
58
|
zipCode: "Postal code",
|
|
16
59
|
zipCodeInvalid: "Postal code must be 5 digits",
|
|
17
|
-
|
|
18
|
-
|
|
60
|
+
mobilePhoneNumber: "Phone",
|
|
61
|
+
mobilePhoneNumberInvalid: "Phone must be 10 digits",
|
|
62
|
+
ownershipPercentage: "What percentage of business do you own? (minimum 25%)",
|
|
63
|
+
ownershipPercentagePlaceholder: "e.g., 25",
|
|
64
|
+
ownershipPercentageMinError: "Owners must have 25% ownership or more",
|
|
65
|
+
ownershipPercentageMaxError: "Ownership can't exceed 100%",
|
|
19
66
|
requiredFieldError: "This field is required",
|
|
20
67
|
invalidFieldError: "Enter a valid value",
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
isAuthorizedQuestion: "I am legally authorized to view and manage financial accounts for my company.",
|
|
31
|
-
isAuthorizedYes: "Yes",
|
|
32
|
-
isAuthorizedNo: "No",
|
|
33
|
-
acceptDisclosuresPrefix: "I agree to {bankName}'s ",
|
|
34
|
-
termsOfUse: "Terms of Use",
|
|
35
|
-
privacyPolicy: "Privacy Policy",
|
|
36
|
-
acceptDisclosuresTermsPrivacyJoin: " and ",
|
|
37
|
-
acceptDisclosuresAfterPrivacy: ", and to receive electronic communication about my accounts and services per {bankName}'s ",
|
|
38
|
-
electronicCommunication: "Electronic Communications Agreement",
|
|
39
|
-
acceptDisclosuresAfterElectronic: ", and acknowledge receipt of {bankName}'s ",
|
|
40
|
-
patriotAct: "USA PATRIOT Act disclosure.",
|
|
41
|
-
companyStructureOptions: {
|
|
42
|
-
CORPORATION_PUBLIC: "Public corporation",
|
|
43
|
-
CORPORATION_PRIVATE: "Private corporation",
|
|
44
|
-
CORPORATION_NOT_FOR_PROFIT: "Not-for-profit corporation",
|
|
45
|
-
LLC: "Limited liability company (LLC)",
|
|
46
|
-
LLP: "Limited liability partnership (LLP)",
|
|
47
|
-
PARTNERSHIP: "Partnership",
|
|
48
|
-
SOLE_PROPRIETORSHIP: "Sole proprietorship",
|
|
49
|
-
GOVERNMENT: "Government",
|
|
50
|
-
COOPERATIVE: "Cooperative",
|
|
51
|
-
ASSOCIATION: "Association",
|
|
52
|
-
OTHER: "Other"
|
|
53
|
-
}
|
|
68
|
+
ownerIncompleteError: "Some details are missing or invalid.",
|
|
69
|
+
ownerEditorOpenError: "Add or save the owner you are editing, or cancel it, before continuing.",
|
|
70
|
+
requiredFieldMarker: " *",
|
|
71
|
+
percentSuffix: "%",
|
|
72
|
+
deleteOwnerHeading: "Delete owner profile?",
|
|
73
|
+
deleteOwnerPromptBeforeName: "Are you sure you want to delete profile",
|
|
74
|
+
deleteOwnerPromptAfterName: "as a business owner?",
|
|
75
|
+
deleteOwnerConfirm: "Delete",
|
|
76
|
+
totalOwnershipExceedsTemplate: (e) => `Total ownership exceeds 100%. Current total: ${e}%`
|
|
54
77
|
};
|
|
55
78
|
//#endregion
|
|
56
|
-
export {
|
|
79
|
+
export { t as ADDITIONAL_OWNERS_LABELS_EN };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js
CHANGED
|
@@ -1,38 +1,8 @@
|
|
|
1
|
-
import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index5.js";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
lastName: "Last name",
|
|
8
|
-
dateOfBirth: "Date of birth",
|
|
9
|
-
dateOfBirthPlaceholder: "Pick a date",
|
|
10
|
-
dateOfBirthMinAgeError: "Must be at least 18 years old",
|
|
11
|
-
ssn: "SSN",
|
|
12
|
-
ssnOnFileTemplate: e,
|
|
13
|
-
ssnInvalid: "SSN must be 9 digits",
|
|
14
|
-
ssnShow: "Show",
|
|
15
|
-
ssnHide: "Hide",
|
|
16
|
-
homeAddress: "Home address",
|
|
17
|
-
city: "City",
|
|
18
|
-
state: "State",
|
|
19
|
-
statePlaceholder: "Select state",
|
|
20
|
-
zipCode: "ZIP code",
|
|
21
|
-
zipCodeInvalid: "ZIP code must be 5 digits",
|
|
22
|
-
mobilePhoneNumber: "Mobile phone number",
|
|
23
|
-
mobilePhoneNumberInvalid: "Phone must be 10 digits",
|
|
24
|
-
workEmail: "Work email",
|
|
25
|
-
workEmailInvalid: "Enter a valid email address",
|
|
26
|
-
requiredFieldError: "This field is required",
|
|
27
|
-
invalidFieldError: "Enter a valid value",
|
|
28
|
-
ownsOver25Question: "Do you own 25% or more of the business?",
|
|
29
|
-
ownsOver25SummaryLabel: "Owns 25% or more of the business",
|
|
30
|
-
ownsOver25Yes: "Yes",
|
|
31
|
-
ownsOver25No: "No",
|
|
32
|
-
ownershipPercentage: "Ownership share (minimum 25%)",
|
|
33
|
-
ownershipPercentagePlaceholder: "e.g., 25",
|
|
34
|
-
ownershipPercentageRangeError: "Ownership share must be between 25 and 100 when you own 25% or more",
|
|
35
|
-
percentSuffix: "%"
|
|
2
|
+
var e = {
|
|
3
|
+
Complete: "complete",
|
|
4
|
+
Missing: "missing",
|
|
5
|
+
Unreviewed: "unreviewed"
|
|
36
6
|
};
|
|
37
7
|
//#endregion
|
|
38
|
-
export {
|
|
8
|
+
export { e as AdditionalOwnerRowStatus };
|
|
@@ -16,10 +16,9 @@ var e = {
|
|
|
16
16
|
amountOverlap: "Overlaps another rule",
|
|
17
17
|
amountOverlapUnlisted: "Overlaps a rule that isn’t shown above",
|
|
18
18
|
approverGroupEmpty: "Choose at least one approver",
|
|
19
|
-
approverDuplicate: "This approver is already required by another
|
|
19
|
+
approverDuplicate: "This approver is already required by another step",
|
|
20
20
|
approverRolesLocked: "Remove the selected people to require a role instead.",
|
|
21
21
|
approverTeamMembersLocked: "Remove the selected role to require specific people instead.",
|
|
22
|
-
approverUsedByOtherRule: "Already required by another rule.",
|
|
23
22
|
approverUsedByOtherStep: "Already required by another step in this rule.",
|
|
24
23
|
unlistedPoliciesHeadingOne: "1 existing rule isn’t shown here",
|
|
25
24
|
unlistedPoliciesHeadingMany: "{count} existing rules aren’t shown here",
|
|
@@ -57,22 +57,21 @@ function m(e) {
|
|
|
57
57
|
upper: e.max === void 0 ? "" : r(e.max)
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
|
-
function h(e, { lookup: t, labels: n,
|
|
61
|
-
let
|
|
60
|
+
function h(e, { lookup: t, labels: n, usedByOtherSteps: r }) {
|
|
61
|
+
let i = !1, a = !1;
|
|
62
62
|
for (let n of e.selectedItems) {
|
|
63
63
|
let e = t.get(n.id)?.kind;
|
|
64
|
-
e === "role" ?
|
|
64
|
+
e === "role" ? i = !0 : e === "user" && (a = !0);
|
|
65
65
|
}
|
|
66
|
-
let
|
|
67
|
-
for (let e of r ?? [])
|
|
68
|
-
for (let e of i ?? []) s[e] ??= n.approverUsedByOtherStep;
|
|
66
|
+
let o = {};
|
|
67
|
+
for (let e of r ?? []) o[e] = n.approverUsedByOtherStep;
|
|
69
68
|
return {
|
|
70
69
|
...e,
|
|
71
70
|
lockedSections: {
|
|
72
|
-
roles:
|
|
73
|
-
teamMembers:
|
|
71
|
+
roles: a ? n.approverRolesLocked : void 0,
|
|
72
|
+
teamMembers: i ? n.approverTeamMembersLocked : void 0
|
|
74
73
|
},
|
|
75
|
-
lockedOptions:
|
|
74
|
+
lockedOptions: o
|
|
76
75
|
};
|
|
77
76
|
}
|
|
78
77
|
function g(e, t) {
|