@tesouro/embedded-components-react 0.7.74 → 0.8.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.
- 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/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +2 -2
- 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
|
@@ -1,9 +1,347 @@
|
|
|
1
|
+
import { Button as e, Table as t, TableBody as n, TableCell as r, TableHead as i, TableHeader as a, TableRow as o, Tooltip as s, TooltipContent as c, TooltipProvider as ee, TooltipTrigger as l, Typography as u } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as d } from "./index8.js";
|
|
3
|
+
import { AdditionalOwnerRowStatus as f } from "./index9.js";
|
|
4
|
+
import { AdditionalOwnerDeleteConfirmation as te } from "./index2.js";
|
|
5
|
+
import { AdditionalOwnerInlineEditor as p } from "./index5.js";
|
|
6
|
+
import { AdditionalOwnerReviewPanel as ne } from "./index6.js";
|
|
7
|
+
import { useEffect as re, useRef as m } from "react";
|
|
8
|
+
import { Fragment as ie, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
9
|
+
import { CircleAlertIcon as _, CircleCheckIcon as v, PencilIcon as y, PlusIcon as b, Trash2Icon as x, UserIcon as S, UsersIcon as C } from "lucide-react";
|
|
1
10
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
11
|
+
function w({ ownerRows: _, primaryOwnerName: v, primaryOwnerShareDisplay: S, showPrimaryOwner: C = !0, totalOwnershipError: w, reviewError: D = null, addOwnerDisabled: A, onAddOwner: j, onEditOwner: M, onStartReview: N, onDeleteOwnerRequest: P, deletingOwnerIndex: F, onDeleteOwnerConfirm: I, onDeleteOwnerCancel: L, editingOverlay: R, reviewingOwner: z = null, isSubmitting: B, labels: V, testIds: H }) {
|
|
12
|
+
let U = {
|
|
13
|
+
...d,
|
|
14
|
+
...V
|
|
15
|
+
}, W = R !== null || F !== null || z !== null, G = B || W, K = R !== null && R.rowIndex !== null ? R : null, q = R !== null && R.rowIndex === null ? R : null, J = !C && _.length === 0, Y = m(null), X = m(null), ae = () => {
|
|
16
|
+
X.current = F, L();
|
|
17
|
+
}, Z = K?.rowIndex ?? z?.rowIndex, Q = F === null ? q === null ? K === null ? z === null ? null : `review:${z.rowIndex}` : `edit:${K.rowIndex}` : "add" : null, $ = m({
|
|
18
|
+
key: Q,
|
|
19
|
+
index: Z
|
|
20
|
+
});
|
|
21
|
+
re(() => {
|
|
22
|
+
let e = $.current;
|
|
23
|
+
$.current = {
|
|
24
|
+
key: Q,
|
|
25
|
+
index: Z
|
|
26
|
+
};
|
|
27
|
+
let t = (e, t) => Y.current?.querySelector(`[data-owner-row="${e}"] ${t}`)?.focus(), n = X.current;
|
|
28
|
+
if (n !== null && F === null) {
|
|
29
|
+
X.current = null, t(n, "[data-owner-delete-trigger]");
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
F === null && e.key !== Q && (Q === "add" ? Y.current?.querySelector("[data-owner-add-editor] [data-owner-panel-heading]")?.focus() : Q !== null && Z != null ? t(Z, "[data-owner-panel-heading]") : e.key === "add" ? Y.current?.querySelector("[data-owner-add-trigger]")?.focus() : e.index != null && t(e.index, "[data-owner-row-action]"));
|
|
33
|
+
}, [
|
|
34
|
+
Q,
|
|
35
|
+
Z,
|
|
36
|
+
F
|
|
37
|
+
]);
|
|
38
|
+
let oe = q ? /* @__PURE__ */ h("div", {
|
|
39
|
+
"data-owner-add-editor": "",
|
|
40
|
+
children: /* @__PURE__ */ h(p, {
|
|
41
|
+
heading: U.formHeadingAdd,
|
|
42
|
+
submitLabel: U.addOwnerSubmit,
|
|
43
|
+
editor: q,
|
|
44
|
+
isDisabled: B,
|
|
45
|
+
labels: U,
|
|
46
|
+
testIds: H?.addOwnerEditor
|
|
47
|
+
})
|
|
48
|
+
}) : null;
|
|
49
|
+
return /* @__PURE__ */ g("div", {
|
|
50
|
+
ref: Y,
|
|
51
|
+
className: "ttw:relative ttw:flex ttw:flex-col ttw:gap-6",
|
|
52
|
+
children: [
|
|
53
|
+
/* @__PURE__ */ g("div", {
|
|
54
|
+
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
55
|
+
children: [/* @__PURE__ */ h(u, {
|
|
56
|
+
component: "h3",
|
|
57
|
+
variant: "h6",
|
|
58
|
+
className: "ttw:font-semibold ttw:text-foreground",
|
|
59
|
+
children: U.heading
|
|
60
|
+
}), /* @__PURE__ */ h(u, {
|
|
61
|
+
variant: "body2",
|
|
62
|
+
className: "ttw:text-muted-foreground",
|
|
63
|
+
children: J ? U.emptySubheading : U.subheading
|
|
64
|
+
})]
|
|
65
|
+
}),
|
|
66
|
+
D ? /* @__PURE__ */ h(T, { message: D }) : null,
|
|
67
|
+
q ? oe : J ? /* @__PURE__ */ h(E, {
|
|
68
|
+
labels: U,
|
|
69
|
+
onAddOwner: j,
|
|
70
|
+
disabled: A || B || W,
|
|
71
|
+
addOwnerButtonTestId: H?.addOwnerButton
|
|
72
|
+
}) : /* @__PURE__ */ g("div", {
|
|
73
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
74
|
+
children: [/* @__PURE__ */ h("div", {
|
|
75
|
+
className: "ttw:border-b ttw:border-border",
|
|
76
|
+
children: /* @__PURE__ */ g(t, { children: [/* @__PURE__ */ h(a, { children: /* @__PURE__ */ g(o, {
|
|
77
|
+
className: "ttw:hover:bg-transparent",
|
|
78
|
+
children: [
|
|
79
|
+
/* @__PURE__ */ h(i, {
|
|
80
|
+
className: "ttw:px-4 ttw:py-3",
|
|
81
|
+
children: U.ownerNameColumn
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ h(i, {
|
|
84
|
+
className: "ttw:px-4 ttw:py-3",
|
|
85
|
+
children: U.ownerShareColumn
|
|
86
|
+
}),
|
|
87
|
+
/* @__PURE__ */ h(i, {
|
|
88
|
+
className: "ttw:px-4 ttw:py-3",
|
|
89
|
+
children: /* @__PURE__ */ h("span", {
|
|
90
|
+
className: "ttw:sr-only",
|
|
91
|
+
children: U.ownerActionsColumn
|
|
92
|
+
})
|
|
93
|
+
})
|
|
94
|
+
]
|
|
95
|
+
}) }), /* @__PURE__ */ g(n, { children: [C ? /* @__PURE__ */ g(o, {
|
|
96
|
+
className: "ttw:hover:bg-transparent",
|
|
97
|
+
children: [
|
|
98
|
+
/* @__PURE__ */ h(r, {
|
|
99
|
+
className: "ttw:px-4 ttw:whitespace-normal",
|
|
100
|
+
children: /* @__PURE__ */ h(k, {
|
|
101
|
+
status: f.Complete,
|
|
102
|
+
statusText: U.statusComplete,
|
|
103
|
+
children: v
|
|
104
|
+
})
|
|
105
|
+
}),
|
|
106
|
+
/* @__PURE__ */ h(r, {
|
|
107
|
+
className: "ttw:px-4",
|
|
108
|
+
children: S
|
|
109
|
+
}),
|
|
110
|
+
/* @__PURE__ */ h(r, {
|
|
111
|
+
className: "ttw:px-4 ttw:text-right",
|
|
112
|
+
children: /* @__PURE__ */ h("div", {
|
|
113
|
+
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
114
|
+
children: /* @__PURE__ */ g(ee, { children: [/* @__PURE__ */ g(s, { children: [/* @__PURE__ */ h(l, {
|
|
115
|
+
asChild: !0,
|
|
116
|
+
children: /* @__PURE__ */ h(e, {
|
|
117
|
+
type: "button",
|
|
118
|
+
variant: "ghost",
|
|
119
|
+
size: "icon-sm",
|
|
120
|
+
"aria-label": U.editPrimaryOwnerDisabled,
|
|
121
|
+
"aria-disabled": "true",
|
|
122
|
+
className: "ttw:cursor-not-allowed ttw:opacity-50",
|
|
123
|
+
children: /* @__PURE__ */ h(y, { className: "ttw:size-4" })
|
|
124
|
+
})
|
|
125
|
+
}), /* @__PURE__ */ h(c, {
|
|
126
|
+
className: "ttw:max-w-60",
|
|
127
|
+
children: U.editPrimaryOwnerTooltip
|
|
128
|
+
})] }), /* @__PURE__ */ g(s, { children: [/* @__PURE__ */ h(l, {
|
|
129
|
+
asChild: !0,
|
|
130
|
+
children: /* @__PURE__ */ h(e, {
|
|
131
|
+
type: "button",
|
|
132
|
+
variant: "ghost",
|
|
133
|
+
size: "icon-sm",
|
|
134
|
+
"aria-label": U.removePrimaryOwnerDisabled,
|
|
135
|
+
"aria-disabled": "true",
|
|
136
|
+
className: "ttw:cursor-not-allowed ttw:opacity-50",
|
|
137
|
+
children: /* @__PURE__ */ h(x, { className: "ttw:size-4" })
|
|
138
|
+
})
|
|
139
|
+
}), /* @__PURE__ */ h(c, {
|
|
140
|
+
className: "ttw:max-w-60",
|
|
141
|
+
children: U.removePrimaryOwnerTooltip
|
|
142
|
+
})] })] })
|
|
143
|
+
})
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
}) : null, _.map((t, n) => {
|
|
147
|
+
if (F === n) return /* @__PURE__ */ h(o, {
|
|
148
|
+
"data-owner-row": n,
|
|
149
|
+
className: "ttw:hover:bg-transparent",
|
|
150
|
+
children: /* @__PURE__ */ h(r, {
|
|
151
|
+
colSpan: 3,
|
|
152
|
+
className: "ttw:p-2 ttw:whitespace-normal",
|
|
153
|
+
children: /* @__PURE__ */ h(te, {
|
|
154
|
+
ownerName: t.name,
|
|
155
|
+
labels: U,
|
|
156
|
+
isDisabled: B,
|
|
157
|
+
onCancel: ae,
|
|
158
|
+
onConfirm: I,
|
|
159
|
+
testIds: H?.deleteConfirmation
|
|
160
|
+
})
|
|
161
|
+
})
|
|
162
|
+
}, n);
|
|
163
|
+
if (K?.rowIndex === n) return /* @__PURE__ */ h(o, {
|
|
164
|
+
"data-owner-row": n,
|
|
165
|
+
className: "ttw:hover:bg-transparent",
|
|
166
|
+
children: /* @__PURE__ */ h(r, {
|
|
167
|
+
colSpan: 3,
|
|
168
|
+
className: "ttw:p-2 ttw:whitespace-normal",
|
|
169
|
+
children: /* @__PURE__ */ h(p, {
|
|
170
|
+
heading: U.inlineEditHeadingTemplate(t.name),
|
|
171
|
+
submitLabel: U.saveOwnerSubmit,
|
|
172
|
+
editor: K,
|
|
173
|
+
isDisabled: B,
|
|
174
|
+
labels: U,
|
|
175
|
+
onDelete: () => P(n),
|
|
176
|
+
testIds: H?.inlineEditor
|
|
177
|
+
})
|
|
178
|
+
})
|
|
179
|
+
}, n);
|
|
180
|
+
if (z?.rowIndex === n) return /* @__PURE__ */ h(o, {
|
|
181
|
+
"data-owner-row": n,
|
|
182
|
+
className: "ttw:hover:bg-transparent",
|
|
183
|
+
children: /* @__PURE__ */ h(r, {
|
|
184
|
+
colSpan: 3,
|
|
185
|
+
className: "ttw:p-2 ttw:whitespace-normal",
|
|
186
|
+
children: /* @__PURE__ */ h(ne, {
|
|
187
|
+
ownerName: t.name,
|
|
188
|
+
shareDisplay: t.shareDisplay,
|
|
189
|
+
review: z,
|
|
190
|
+
isDisabled: B,
|
|
191
|
+
labels: U,
|
|
192
|
+
onDelete: () => P(n),
|
|
193
|
+
testIds: H?.reviewCard
|
|
194
|
+
})
|
|
195
|
+
})
|
|
196
|
+
}, n);
|
|
197
|
+
let i = `additional-owner-${n}-status`;
|
|
198
|
+
return /* @__PURE__ */ g(o, {
|
|
199
|
+
"data-owner-row": n,
|
|
200
|
+
className: "ttw:hover:bg-transparent",
|
|
201
|
+
children: [
|
|
202
|
+
/* @__PURE__ */ h(r, {
|
|
203
|
+
className: "ttw:px-4 ttw:whitespace-normal",
|
|
204
|
+
children: /* @__PURE__ */ h(k, {
|
|
205
|
+
status: t.status,
|
|
206
|
+
statusId: i,
|
|
207
|
+
statusText: O(t, U),
|
|
208
|
+
children: t.name
|
|
209
|
+
})
|
|
210
|
+
}),
|
|
211
|
+
/* @__PURE__ */ h(r, {
|
|
212
|
+
className: "ttw:px-4",
|
|
213
|
+
children: t.shareDisplay
|
|
214
|
+
}),
|
|
215
|
+
/* @__PURE__ */ h(r, {
|
|
216
|
+
className: "ttw:px-4 ttw:text-right",
|
|
217
|
+
children: /* @__PURE__ */ h("div", {
|
|
218
|
+
className: "ttw:flex ttw:justify-end ttw:gap-2",
|
|
219
|
+
children: t.status === f.Missing ? /* @__PURE__ */ h(e, {
|
|
220
|
+
type: "button",
|
|
221
|
+
size: "sm",
|
|
222
|
+
"aria-describedby": i,
|
|
223
|
+
onClick: () => M(n),
|
|
224
|
+
disabled: G,
|
|
225
|
+
"data-testid": H?.completeDetailsButton,
|
|
226
|
+
"data-owner-row-action": "",
|
|
227
|
+
"data-needs-attention": "",
|
|
228
|
+
children: U.completeDetails
|
|
229
|
+
}) : t.status === f.Unreviewed ? /* @__PURE__ */ h(e, {
|
|
230
|
+
type: "button",
|
|
231
|
+
variant: "secondary",
|
|
232
|
+
size: "sm",
|
|
233
|
+
"aria-describedby": i,
|
|
234
|
+
onClick: () => N(n),
|
|
235
|
+
disabled: G,
|
|
236
|
+
"data-testid": H?.startReviewButton,
|
|
237
|
+
"data-owner-row-action": "",
|
|
238
|
+
"data-needs-attention": "",
|
|
239
|
+
children: U.startReview
|
|
240
|
+
}) : /* @__PURE__ */ g(ie, { children: [/* @__PURE__ */ h(e, {
|
|
241
|
+
type: "button",
|
|
242
|
+
variant: "ghost",
|
|
243
|
+
size: "icon-sm",
|
|
244
|
+
"aria-label": U.edit,
|
|
245
|
+
onClick: () => M(n),
|
|
246
|
+
disabled: G,
|
|
247
|
+
"data-owner-row-action": "",
|
|
248
|
+
children: /* @__PURE__ */ h(y, { className: "ttw:size-4" })
|
|
249
|
+
}), /* @__PURE__ */ h(e, {
|
|
250
|
+
type: "button",
|
|
251
|
+
variant: "ghost",
|
|
252
|
+
size: "icon-sm",
|
|
253
|
+
"aria-label": U.remove,
|
|
254
|
+
onClick: () => P(n),
|
|
255
|
+
disabled: G,
|
|
256
|
+
"data-owner-delete-trigger": "",
|
|
257
|
+
children: /* @__PURE__ */ h(x, { className: "ttw:size-4" })
|
|
258
|
+
})] })
|
|
259
|
+
})
|
|
260
|
+
})
|
|
261
|
+
]
|
|
262
|
+
}, n);
|
|
263
|
+
})] })] })
|
|
264
|
+
}), W ? null : /* @__PURE__ */ g(e, {
|
|
265
|
+
type: "button",
|
|
266
|
+
variant: "ghost",
|
|
267
|
+
onClick: j,
|
|
268
|
+
disabled: A || B,
|
|
269
|
+
"data-testid": H?.addOwnerButton,
|
|
270
|
+
"data-owner-add-trigger": "",
|
|
271
|
+
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",
|
|
272
|
+
children: [/* @__PURE__ */ h(b, { className: "ttw:size-4" }), U.addOwner]
|
|
273
|
+
})]
|
|
274
|
+
}),
|
|
275
|
+
w ? /* @__PURE__ */ h(T, { message: w }) : null
|
|
276
|
+
]
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
function T({ message: e }) {
|
|
280
|
+
return /* @__PURE__ */ g("div", {
|
|
281
|
+
role: "alert",
|
|
282
|
+
className: "ttw:flex ttw:items-center ttw:gap-3 ttw:rounded-xl ttw:border ttw:border-destructive/30 ttw:bg-destructive/15 ttw:px-6 ttw:py-4 ttw:text-sm ttw:text-destructive",
|
|
283
|
+
children: [/* @__PURE__ */ h(_, {
|
|
284
|
+
"aria-hidden": !0,
|
|
285
|
+
className: "ttw:size-5 ttw:shrink-0"
|
|
286
|
+
}), /* @__PURE__ */ h("span", { children: e })]
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
function E({ labels: t, onAddOwner: n, disabled: r, addOwnerButtonTestId: i }) {
|
|
290
|
+
return /* @__PURE__ */ g("div", {
|
|
291
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-4 ttw:rounded-xl ttw:border ttw:border-dashed ttw:border-border ttw:px-6 ttw:py-12 ttw:text-center",
|
|
292
|
+
children: [
|
|
293
|
+
/* @__PURE__ */ h("div", {
|
|
294
|
+
"aria-hidden": !0,
|
|
295
|
+
className: "ttw:flex ttw:size-16 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-muted",
|
|
296
|
+
children: /* @__PURE__ */ h(C, { className: "ttw:size-6 ttw:text-foreground" })
|
|
297
|
+
}),
|
|
298
|
+
/* @__PURE__ */ h(u, {
|
|
299
|
+
component: "h4",
|
|
300
|
+
variant: "h6",
|
|
301
|
+
className: "ttw:font-medium ttw:text-foreground",
|
|
302
|
+
children: t.emptyOwnersText
|
|
303
|
+
}),
|
|
304
|
+
/* @__PURE__ */ g(e, {
|
|
305
|
+
type: "button",
|
|
306
|
+
variant: "link",
|
|
307
|
+
onClick: n,
|
|
308
|
+
disabled: r,
|
|
309
|
+
"data-testid": i,
|
|
310
|
+
"data-owner-add-trigger": "",
|
|
311
|
+
children: [/* @__PURE__ */ h(b, { className: "ttw:size-4" }), t.emptyOwnersAddOwner]
|
|
312
|
+
})
|
|
313
|
+
]
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
var D = {
|
|
317
|
+
[f.Complete]: /* @__PURE__ */ h(v, { className: "ttw:size-4 ttw:shrink-0 ttw:text-emerald-600" }),
|
|
318
|
+
[f.Missing]: /* @__PURE__ */ h(_, { className: "ttw:size-4 ttw:shrink-0 ttw:text-destructive" }),
|
|
319
|
+
[f.Unreviewed]: /* @__PURE__ */ h(S, { className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground" })
|
|
7
320
|
};
|
|
321
|
+
function O(e, t) {
|
|
322
|
+
switch (e.status) {
|
|
323
|
+
case f.Missing: return e.error ?? t.statusMissing;
|
|
324
|
+
case f.Unreviewed: return t.statusUnreviewed;
|
|
325
|
+
default: return t.statusComplete;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
function k({ status: e, statusId: t, statusText: n, children: r }) {
|
|
329
|
+
return /* @__PURE__ */ g("span", {
|
|
330
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
331
|
+
children: [
|
|
332
|
+
/* @__PURE__ */ h("span", {
|
|
333
|
+
"aria-hidden": !0,
|
|
334
|
+
className: "ttw:flex",
|
|
335
|
+
children: D[e]
|
|
336
|
+
}),
|
|
337
|
+
/* @__PURE__ */ h("span", { children: r }),
|
|
338
|
+
/* @__PURE__ */ h("span", {
|
|
339
|
+
id: t,
|
|
340
|
+
className: "ttw:sr-only",
|
|
341
|
+
children: n
|
|
342
|
+
})
|
|
343
|
+
]
|
|
344
|
+
});
|
|
345
|
+
}
|
|
8
346
|
//#endregion
|
|
9
|
-
export {
|
|
347
|
+
export { f as AdditionalOwnerRowStatus, w as AdditionalOwnersForm };
|
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { APPLICATION_STATUS_CARD_LABELS_EN as n } from "./index10.js";
|
|
3
|
-
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
1
|
+
import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index7.js";
|
|
4
2
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
Warning: "warning",
|
|
8
|
-
Danger: "danger"
|
|
9
|
-
}, o = {
|
|
10
|
-
[a.Brand]: "ttw:border-transparent ttw:bg-primary/10 ttw:text-primary",
|
|
11
|
-
[a.Warning]: "ttw:border-amber-100 ttw:bg-amber-100 ttw:text-amber-700",
|
|
12
|
-
[a.Danger]: "ttw:border-destructive/20 ttw:bg-destructive/20 ttw:text-destructive"
|
|
13
|
-
};
|
|
14
|
-
function s({ chipTone: a, labels: s, action: c, className: l, testIds: u }) {
|
|
15
|
-
let { title: d, bankDisclosure: f, chipLabel: p, heading: m, body: h } = {
|
|
16
|
-
...n,
|
|
17
|
-
...s
|
|
18
|
-
};
|
|
19
|
-
return /* @__PURE__ */ i("section", {
|
|
20
|
-
"data-testid": u?.root,
|
|
21
|
-
"aria-label": d,
|
|
22
|
-
className: t("ttw:flex ttw:w-full ttw:flex-col ttw:items-start ttw:gap-3 ttw:rounded-2xl ttw:border ttw:border-border ttw:bg-card ttw:p-6 ttw:text-card-foreground", l),
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ i("header", {
|
|
25
|
-
className: "ttw:flex ttw:w-full ttw:flex-wrap ttw:items-baseline ttw:justify-between ttw:gap-x-4 ttw:gap-y-1",
|
|
26
|
-
children: [/* @__PURE__ */ r("p", {
|
|
27
|
-
className: "ttw:text-lg ttw:font-semibold",
|
|
28
|
-
children: d
|
|
29
|
-
}), f ? /* @__PURE__ */ r("p", {
|
|
30
|
-
className: "ttw:text-xs ttw:text-muted-foreground",
|
|
31
|
-
children: f
|
|
32
|
-
}) : null]
|
|
33
|
-
}),
|
|
34
|
-
/* @__PURE__ */ i(e, {
|
|
35
|
-
"data-testid": u?.chip,
|
|
36
|
-
variant: "outline",
|
|
37
|
-
className: t("ttw:gap-2 ttw:rounded-full ttw:px-3 ttw:py-1 ttw:text-sm", o[a]),
|
|
38
|
-
children: [/* @__PURE__ */ r("span", {
|
|
39
|
-
"aria-hidden": "true",
|
|
40
|
-
className: "ttw:size-2 ttw:rounded-full ttw:bg-current"
|
|
41
|
-
}), p]
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ i("div", {
|
|
44
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
45
|
-
children: [m ? /* @__PURE__ */ r("p", {
|
|
46
|
-
className: "ttw:text-xl ttw:font-semibold ttw:text-primary",
|
|
47
|
-
children: m
|
|
48
|
-
}) : null, h.map((e) => /* @__PURE__ */ r("p", {
|
|
49
|
-
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
50
|
-
children: e
|
|
51
|
-
}, e))]
|
|
52
|
-
}),
|
|
53
|
-
c ? /* @__PURE__ */ r("div", {
|
|
54
|
-
className: "ttw:pt-2",
|
|
55
|
-
children: c
|
|
56
|
-
}) : null
|
|
57
|
-
]
|
|
58
|
-
});
|
|
3
|
+
function t(e, t) {
|
|
4
|
+
return e.replaceAll("{bankName}", t);
|
|
59
5
|
}
|
|
6
|
+
var n = {
|
|
7
|
+
heading: "Tell us about your business",
|
|
8
|
+
subheading: "Provide your business details to get started.",
|
|
9
|
+
requiredFieldsNote: "Required fields are marked with an asterisk *",
|
|
10
|
+
requiredFieldMarker: " *",
|
|
11
|
+
companyLegalName: "Legal company name",
|
|
12
|
+
companyDbaName: "Doing business as (optional)",
|
|
13
|
+
businessAddress: "Business address",
|
|
14
|
+
city: "City",
|
|
15
|
+
state: "State",
|
|
16
|
+
statePlaceholder: "Select state",
|
|
17
|
+
zipCode: "Postal code",
|
|
18
|
+
zipCodeInvalid: "Postal code must be 5 digits",
|
|
19
|
+
companyPhoneNumber: "Company phone number",
|
|
20
|
+
companyPhoneNumberInvalid: "Phone must be 10 digits",
|
|
21
|
+
requiredFieldError: "This field is required",
|
|
22
|
+
invalidFieldError: "Enter a valid value",
|
|
23
|
+
companyStructure: "Company structure",
|
|
24
|
+
companyStructurePlaceholder: "Select structure",
|
|
25
|
+
website: "Website (optional)",
|
|
26
|
+
websiteInvalid: "Enter a valid website URL (no spaces).",
|
|
27
|
+
taxId: "Tax ID (EIN)",
|
|
28
|
+
taxIdInvalid: "Tax ID must be 9 digits",
|
|
29
|
+
taxIdOnFileTemplate: e,
|
|
30
|
+
naicsCode: "Industry (NAICS code)",
|
|
31
|
+
naicsCodePlaceholder: "Search by code or industry",
|
|
32
|
+
isAuthorizedQuestion: "I am legally authorized to view and manage financial accounts for my company.",
|
|
33
|
+
isAuthorizedYes: "Yes",
|
|
34
|
+
isAuthorizedNo: "No",
|
|
35
|
+
disclosuresHeading: "Accept terms and conditions",
|
|
36
|
+
disclosuresSubheading: "Read and accept the terms below to submit your application.",
|
|
37
|
+
disclosureAgreementLead: "Disclosure agreement.",
|
|
38
|
+
acceptDisclosuresPrefix: "I agree to {bankName}'s ",
|
|
39
|
+
termsOfUse: "Terms of Use",
|
|
40
|
+
privacyPolicy: "Privacy Policy",
|
|
41
|
+
acceptDisclosuresTermsPrivacyJoin: " and ",
|
|
42
|
+
acceptDisclosuresAfterPrivacy: ", and to receive electronic communication about my accounts and services per {bankName}'s ",
|
|
43
|
+
electronicCommunication: "Electronic Communications Agreement",
|
|
44
|
+
acceptDisclosuresAfterElectronic: ", and acknowledge receipt of {bankName}'s ",
|
|
45
|
+
patriotAct: "USA PATRIOT Act disclosure.",
|
|
46
|
+
consentRequiredError: "Tick this box to continue.",
|
|
47
|
+
companyStructureOptions: {
|
|
48
|
+
CORPORATION_PUBLIC: "Public corporation",
|
|
49
|
+
CORPORATION_PRIVATE: "Private corporation",
|
|
50
|
+
CORPORATION_NOT_FOR_PROFIT: "Not-for-profit corporation",
|
|
51
|
+
LLC: "Limited liability company (LLC)",
|
|
52
|
+
LLP: "Limited liability partnership (LLP)",
|
|
53
|
+
PARTNERSHIP: "Partnership",
|
|
54
|
+
SOLE_PROPRIETORSHIP: "Sole proprietorship",
|
|
55
|
+
GOVERNMENT: "Government",
|
|
56
|
+
COOPERATIVE: "Cooperative",
|
|
57
|
+
ASSOCIATION: "Association",
|
|
58
|
+
OTHER: "Other"
|
|
59
|
+
}
|
|
60
|
+
};
|
|
60
61
|
//#endregion
|
|
61
|
-
export { n as
|
|
62
|
+
export { n as BUSINESS_DETAILS_LABELS_EN, t as interpolateBankName };
|
|
@@ -1,35 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
"use client";
|
|
3
|
-
"use client";
|
|
4
|
-
"use client";
|
|
5
|
-
import * as e from "react";
|
|
6
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
7
|
-
import n from "react-confetti";
|
|
1
|
+
import { IDENTIFIER_ON_FILE_TEMPLATE_EN as e } from "./index7.js";
|
|
8
2
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js
|
|
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
|
-
|
|
3
|
+
var t = {
|
|
4
|
+
heading: "Tell us about yourself",
|
|
5
|
+
subheading: "We need this information to verify your identity.",
|
|
6
|
+
requiredFieldsNote: "Required fields are marked with an asterisk *",
|
|
7
|
+
requiredFieldMarker: " *",
|
|
8
|
+
firstName: "First name",
|
|
9
|
+
lastName: "Last name",
|
|
10
|
+
dateOfBirth: "Date of birth",
|
|
11
|
+
dateOfBirthPlaceholder: "MM/DD/YYYY",
|
|
12
|
+
dateOfBirthHint: "For example, 04/23/1985",
|
|
13
|
+
dateOfBirthInvalidError: "Enter a valid date of birth",
|
|
14
|
+
dateOfBirthMinAgeError: "Must be at least 18 years old",
|
|
15
|
+
ssn: "SSN",
|
|
16
|
+
ssnOnFileTemplate: e,
|
|
17
|
+
ssnInvalid: "SSN must be 9 digits",
|
|
18
|
+
ssnShow: "Show",
|
|
19
|
+
ssnHide: "Hide",
|
|
20
|
+
homeAddress: "Home address",
|
|
21
|
+
city: "City",
|
|
22
|
+
state: "State",
|
|
23
|
+
statePlaceholder: "Select state",
|
|
24
|
+
zipCode: "Postal code",
|
|
25
|
+
zipCodeInvalid: "Postal code must be 5 digits",
|
|
26
|
+
mobilePhoneNumber: "Phone",
|
|
27
|
+
mobilePhoneNumberInvalid: "Phone must be 10 digits",
|
|
28
|
+
workEmail: "Work email",
|
|
29
|
+
workEmailInvalid: "Enter a valid email address",
|
|
30
|
+
requiredFieldError: "This field is required",
|
|
31
|
+
invalidFieldError: "Enter a valid value",
|
|
32
|
+
ownsOver25Question: "Do you own 25% or more of the business?",
|
|
33
|
+
ownsOver25SummaryLabel: "Owns 25% or more of the business",
|
|
34
|
+
ownsOver25Yes: "Yes",
|
|
35
|
+
ownsOver25No: "No",
|
|
36
|
+
ownershipPercentage: "Ownership share (minimum 25%)",
|
|
37
|
+
ownershipPercentagePlaceholder: "e.g., 25",
|
|
38
|
+
ownershipPercentageRangeError: "Enter 25 to 100, or select No above if you own less than 25%.",
|
|
39
|
+
percentSuffix: "%"
|
|
40
|
+
};
|
|
34
41
|
//#endregion
|
|
35
|
-
export {
|
|
42
|
+
export { t as PERSONAL_DETAILS_LABELS_EN };
|
|
@@ -1,42 +1,9 @@
|
|
|
1
|
-
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
-
"aria-hidden": !0,
|
|
11
|
-
children: [/* @__PURE__ */ t("g", {
|
|
12
|
-
clipPath: "url(#result-step-fdic-clip)",
|
|
13
|
-
children: [
|
|
14
|
-
/* @__PURE__ */ e("path", {
|
|
15
|
-
d: "M4.85119 17.952H0V0.0942383H9.9788V4.76193H4.85119V7.65267H9.68264V12.3209H4.85119V17.952Z",
|
|
16
|
-
fill: "#667085"
|
|
17
|
-
}),
|
|
18
|
-
/* @__PURE__ */ e("path", {
|
|
19
|
-
d: "M25.9108 9.01442C25.9108 0.834634 18.5742 0.0942383 15.5366 0.0942383H10.6465V17.9352H15.5366L15.529 13.2837V4.68818C18.5377 4.68818 21.0939 5.79964 21.0939 8.98596C21.0939 12.1717 18.5377 13.2837 15.529 13.2837L15.5366 17.9352C19.3164 17.9358 25.9108 17.211 25.9108 9.01442Z",
|
|
20
|
-
fill: "#667085"
|
|
21
|
-
}),
|
|
22
|
-
/* @__PURE__ */ e("path", {
|
|
23
|
-
d: "M31.6022 0.0563965H26.751V17.9513H31.6022V0.0563965Z",
|
|
24
|
-
fill: "#667085"
|
|
25
|
-
}),
|
|
26
|
-
/* @__PURE__ */ e("path", {
|
|
27
|
-
d: "M41.5067 13.2276C39.1763 13.2276 37.2478 11.3287 37.2478 9.0001C37.2478 6.67148 39.1763 4.772 41.5067 4.772C43.6314 4.772 44.7423 5.90205 45.474 7.39039V0.982918C45.474 0.982918 43.326 0.0195312 41.3243 0.0195312C36.8785 0.0195312 32.0615 4.10884 32.0615 9.0001C32.0615 14.9883 36.656 17.9801 41.3243 17.9801C43.3254 17.9801 45.474 17.0179 45.474 17.0179V10.6661C44.5983 12.176 43.6198 13.2276 41.5067 13.2276Z",
|
|
28
|
-
fill: "#667085"
|
|
29
|
-
})
|
|
30
|
-
]
|
|
31
|
-
}), /* @__PURE__ */ e("defs", { children: /* @__PURE__ */ e("clipPath", {
|
|
32
|
-
id: "result-step-fdic-clip",
|
|
33
|
-
children: /* @__PURE__ */ e("rect", {
|
|
34
|
-
width: "45.4737",
|
|
35
|
-
height: "18",
|
|
36
|
-
fill: "white"
|
|
37
|
-
})
|
|
38
|
-
}) })]
|
|
39
|
-
});
|
|
40
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
title: "Business bank account application",
|
|
4
|
+
bankDisclosure: "",
|
|
5
|
+
chipLabel: "Application status",
|
|
6
|
+
body: []
|
|
7
|
+
};
|
|
41
8
|
//#endregion
|
|
42
|
-
export {
|
|
9
|
+
export { e as APPLICATION_STATUS_CARD_LABELS_EN };
|