@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
|
@@ -1,30 +1,98 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Button as e, Spinner as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ResultStepConfetti as n } from "./index15.js";
|
|
3
|
+
import { ResultStepFdicLogo as r } from "./index16.js";
|
|
4
|
+
import { ResultStepMailIcon as i } from "./index17.js";
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { ArrowUpRightIcon as c } from "lucide-react";
|
|
3
7
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js
|
|
4
|
-
function
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
function l({ lead: e, email: t }) {
|
|
9
|
+
return /* @__PURE__ */ s("div", {
|
|
10
|
+
className: "ttw:mb-2 ttw:w-[90%] ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:px-8 ttw:py-6 ttw:text-center",
|
|
11
|
+
children: [/* @__PURE__ */ o("p", {
|
|
12
|
+
className: "ttw:text-base ttw:font-medium ttw:leading-none",
|
|
13
|
+
children: e
|
|
14
|
+
}), /* @__PURE__ */ o("p", {
|
|
15
|
+
className: "ttw:break-all ttw:text-lg ttw:font-semibold ttw:text-primary",
|
|
16
|
+
children: t
|
|
17
|
+
})]
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function u({ line1: e, line2: t }) {
|
|
21
|
+
return /* @__PURE__ */ s("h2", {
|
|
22
|
+
className: "ttw:mb-1 ttw:text-center ttw:text-3xl ttw:font-bold ttw:leading-tight ttw:tracking-tight",
|
|
23
|
+
children: [
|
|
24
|
+
e,
|
|
25
|
+
/* @__PURE__ */ o("br", {}),
|
|
26
|
+
t
|
|
27
|
+
]
|
|
28
|
+
});
|
|
17
29
|
}
|
|
18
|
-
function
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
className: "ttw:
|
|
21
|
-
"data-testid":
|
|
22
|
-
children:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
function d({ status: d, isLoading: f, loadingMessage: p, headingLine1: m, headingLine2: h, body: g, followUpEmail: _, emailBoxLead: v, navigateToDashboardLabel: y, bankLogoSrc: b, bankLogoAlt: x, fdicDisclaimer: S, onNavigateToDashboard: C, testIds: w }) {
|
|
31
|
+
return f ? /* @__PURE__ */ s("div", {
|
|
32
|
+
className: "ttw:flex ttw:min-h-[300px] ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-6 ttw:text-center",
|
|
33
|
+
"data-testid": w?.processing,
|
|
34
|
+
children: [/* @__PURE__ */ o(t, { className: "ttw:size-[65px] ttw:text-primary" }), /* @__PURE__ */ o("p", {
|
|
35
|
+
className: "ttw:text-xl ttw:font-normal",
|
|
36
|
+
children: p
|
|
37
|
+
})]
|
|
38
|
+
}) : /* @__PURE__ */ s("div", {
|
|
39
|
+
className: "ttw:mb-2 ttw:flex ttw:flex-col ttw:items-center ttw:p-8 ttw:text-center",
|
|
40
|
+
"data-testid": d === "success" ? "bank-account-onboarding-result-success" : "bank-account-onboarding-result-pending",
|
|
41
|
+
children: [
|
|
42
|
+
d === "pending" ? /* @__PURE__ */ o("div", {
|
|
43
|
+
className: "ttw:mb-2",
|
|
44
|
+
children: /* @__PURE__ */ o(i, {})
|
|
45
|
+
}) : null,
|
|
46
|
+
b ? /* @__PURE__ */ o("div", {
|
|
47
|
+
className: "ttw:mb-2 ttw:flex ttw:justify-center",
|
|
48
|
+
children: /* @__PURE__ */ o("img", {
|
|
49
|
+
src: b,
|
|
50
|
+
alt: x,
|
|
51
|
+
className: "ttw:h-[50px] ttw:w-auto ttw:object-contain"
|
|
52
|
+
})
|
|
53
|
+
}) : null,
|
|
54
|
+
d === "success" ? /* @__PURE__ */ s(a, { children: [
|
|
55
|
+
/* @__PURE__ */ o(n, {}),
|
|
56
|
+
/* @__PURE__ */ o(u, {
|
|
57
|
+
line1: m,
|
|
58
|
+
line2: h
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ o("p", {
|
|
61
|
+
className: "ttw:mb-2 ttw:text-center ttw:text-base",
|
|
62
|
+
children: g
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ s(e, {
|
|
65
|
+
type: "button",
|
|
66
|
+
size: "lg",
|
|
67
|
+
className: "ttw:mb-1 ttw:w-fit ttw:px-4 ttw:py-2",
|
|
68
|
+
"data-testid": w?.dashboardButton,
|
|
69
|
+
onClick: C,
|
|
70
|
+
children: [y, /* @__PURE__ */ o(c, { className: "ttw:size-4" })]
|
|
71
|
+
})
|
|
72
|
+
] }) : null,
|
|
73
|
+
d === "pending" ? /* @__PURE__ */ s(a, { children: [
|
|
74
|
+
/* @__PURE__ */ o(u, {
|
|
75
|
+
line1: m,
|
|
76
|
+
line2: h
|
|
77
|
+
}),
|
|
78
|
+
/* @__PURE__ */ o("p", {
|
|
79
|
+
className: "ttw:mb-1 ttw:text-center ttw:text-base",
|
|
80
|
+
children: g
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ o(l, {
|
|
83
|
+
lead: v,
|
|
84
|
+
email: _
|
|
85
|
+
})
|
|
86
|
+
] }) : null,
|
|
87
|
+
/* @__PURE__ */ s("div", {
|
|
88
|
+
className: "ttw:mt-1 ttw:flex ttw:items-center ttw:gap-1",
|
|
89
|
+
children: [/* @__PURE__ */ o("p", {
|
|
90
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
91
|
+
children: S
|
|
92
|
+
}), /* @__PURE__ */ o(r, {})]
|
|
93
|
+
})
|
|
94
|
+
]
|
|
27
95
|
});
|
|
28
96
|
}
|
|
29
97
|
//#endregion
|
|
30
|
-
export {
|
|
98
|
+
export { d as ResultStep };
|
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js
|
|
2
2
|
var e = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
zipCode: "Postal code",
|
|
13
|
-
companyPhoneNumber: "Company phone number",
|
|
14
|
-
companyStructure: "Company structure",
|
|
15
|
-
companyStructurePlaceholder: "Select structure",
|
|
16
|
-
website: "Website (optional)",
|
|
17
|
-
websiteInvalid: "Enter a valid website URL (no spaces).",
|
|
18
|
-
taxId: "Tax ID (EIN)",
|
|
19
|
-
naicsCode: "Industry (NAICS code)",
|
|
20
|
-
naicsCodePlaceholder: "Search by code or industry"
|
|
3
|
+
loadingMessage: "Processing your application...",
|
|
4
|
+
successHeadingLine1: "Congratulations,",
|
|
5
|
+
successBody: "Your business bank account has been opened.",
|
|
6
|
+
pendingHeadingLine1: "You're getting close,",
|
|
7
|
+
pendingBody: "We will review your application and contact you soon with any further action that may be required.",
|
|
8
|
+
pendingEmailBoxLead: "We will send a follow up email to",
|
|
9
|
+
navigateToDashboard: "Go to my banking dashboard",
|
|
10
|
+
bankLogoAlt: "{bankName} logo",
|
|
11
|
+
fdicDisclaimer: "Products and services are offered by {bankName}, Member FDIC."
|
|
21
12
|
};
|
|
22
13
|
//#endregion
|
|
23
|
-
export { e as
|
|
14
|
+
export { e as RESULT_LABELS_EN };
|
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js
CHANGED
|
@@ -1,90 +1,73 @@
|
|
|
1
1
|
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
import { Trash2Icon as i, XIcon as a } from "lucide-react";
|
|
2
|
+
import { useEffect as t, useRef as n } from "react";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
|
+
import { Trash2Icon as a } from "lucide-react";
|
|
6
5
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index2.js
|
|
7
|
-
function o({ ownerName: o, labels: s, isDisabled: c, onCancel: l, onConfirm: u,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
6
|
+
function o({ ownerName: o, labels: s, isDisabled: c, onCancel: l, onConfirm: u, testIds: d }) {
|
|
7
|
+
let f = n(null);
|
|
8
|
+
return t(() => {
|
|
9
|
+
f.current?.focus();
|
|
10
|
+
}, []), /* @__PURE__ */ i("div", {
|
|
11
|
+
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:rounded-md ttw:border ttw:border-primary ttw:bg-background ttw:p-6",
|
|
12
|
+
role: "alertdialog",
|
|
13
|
+
"aria-labelledby": "additional-owner-delete-title",
|
|
14
|
+
"aria-describedby": "additional-owner-delete-description",
|
|
15
|
+
"data-testid": d?.root,
|
|
16
|
+
children: [/* @__PURE__ */ i("div", {
|
|
17
|
+
className: "ttw:flex ttw:flex-col ttw:items-center ttw:px-4 ttw:text-center",
|
|
18
|
+
"data-testid": d?.content,
|
|
17
19
|
children: [
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
className: "ttw:relative ttw:
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
20
|
+
/* @__PURE__ */ i("div", {
|
|
21
|
+
className: "ttw:relative ttw:mb-4 ttw:flex ttw:items-center ttw:justify-center",
|
|
22
|
+
children: [/* @__PURE__ */ r("div", {
|
|
23
|
+
className: "ttw:absolute ttw:size-14 ttw:rounded-full ttw:bg-destructive/20 ttw:blur-md",
|
|
24
|
+
"aria-hidden": !0
|
|
25
|
+
}), /* @__PURE__ */ r("div", {
|
|
26
|
+
className: "ttw:relative ttw:flex ttw:size-12 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive/10",
|
|
27
|
+
"aria-hidden": !0,
|
|
28
|
+
children: /* @__PURE__ */ r(a, { className: "ttw:size-5 ttw:text-destructive" })
|
|
29
|
+
})]
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ r("h2", {
|
|
32
|
+
id: "additional-owner-delete-title",
|
|
33
|
+
className: "ttw:mb-2 ttw:text-xl ttw:font-semibold ttw:tracking-tight",
|
|
34
|
+
children: s.deleteOwnerHeading
|
|
30
35
|
}),
|
|
31
|
-
/* @__PURE__ */
|
|
32
|
-
|
|
33
|
-
"
|
|
36
|
+
/* @__PURE__ */ i("p", {
|
|
37
|
+
id: "additional-owner-delete-description",
|
|
38
|
+
className: "ttw:max-w-sm ttw:text-sm ttw:text-muted-foreground",
|
|
34
39
|
children: [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}), /* @__PURE__ */ n("div", {
|
|
41
|
-
className: "ttw:relative ttw:flex ttw:size-14 ttw:items-center ttw:justify-center ttw:rounded-full ttw:bg-destructive/10",
|
|
42
|
-
"aria-hidden": !0,
|
|
43
|
-
children: /* @__PURE__ */ n(i, { className: "ttw:size-6 ttw:text-destructive" })
|
|
44
|
-
})]
|
|
45
|
-
}),
|
|
46
|
-
/* @__PURE__ */ n("h2", {
|
|
47
|
-
id: "additional-owner-delete-title",
|
|
48
|
-
className: "ttw:mb-3 ttw:text-2xl ttw:font-semibold ttw:tracking-tight",
|
|
49
|
-
children: s.deleteOwnerHeading
|
|
40
|
+
s.deleteOwnerPromptBeforeName,
|
|
41
|
+
" ",
|
|
42
|
+
/* @__PURE__ */ r("span", {
|
|
43
|
+
className: "ttw:font-semibold ttw:text-foreground",
|
|
44
|
+
children: o
|
|
50
45
|
}),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
className: "ttw:max-w-sm ttw:text-base ttw:text-muted-foreground",
|
|
54
|
-
children: [
|
|
55
|
-
s.deleteOwnerPromptBeforeName,
|
|
56
|
-
" ",
|
|
57
|
-
/* @__PURE__ */ n("span", {
|
|
58
|
-
className: "ttw:font-semibold ttw:text-foreground",
|
|
59
|
-
children: o
|
|
60
|
-
}),
|
|
61
|
-
" ",
|
|
62
|
-
s.deleteOwnerPromptAfterName
|
|
63
|
-
]
|
|
64
|
-
})
|
|
46
|
+
" ",
|
|
47
|
+
s.deleteOwnerPromptAfterName
|
|
65
48
|
]
|
|
66
|
-
}),
|
|
67
|
-
/* @__PURE__ */ r("div", {
|
|
68
|
-
className: "ttw:flex ttw:shrink-0 ttw:gap-3",
|
|
69
|
-
children: [/* @__PURE__ */ n(e, {
|
|
70
|
-
type: "button",
|
|
71
|
-
variant: "outline",
|
|
72
|
-
onClick: l,
|
|
73
|
-
disabled: c,
|
|
74
|
-
className: "ttw:h-auto ttw:flex-1 ttw:rounded-2xl ttw:border-border ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted",
|
|
75
|
-
children: s.cancel
|
|
76
|
-
}), /* @__PURE__ */ n(e, {
|
|
77
|
-
type: "button",
|
|
78
|
-
variant: "destructive",
|
|
79
|
-
onClick: u,
|
|
80
|
-
disabled: c,
|
|
81
|
-
className: "ttw:h-auto ttw:flex-1 ttw:rounded-2xl ttw:py-3 ttw:text-base ttw:font-medium",
|
|
82
|
-
children: s.deleteOwnerConfirm
|
|
83
|
-
})]
|
|
84
49
|
})
|
|
85
50
|
]
|
|
86
|
-
})
|
|
51
|
+
}), /* @__PURE__ */ i("div", {
|
|
52
|
+
className: "ttw:flex ttw:justify-center ttw:gap-3",
|
|
53
|
+
children: [/* @__PURE__ */ r(e, {
|
|
54
|
+
ref: f,
|
|
55
|
+
type: "button",
|
|
56
|
+
variant: "outline",
|
|
57
|
+
onClick: l,
|
|
58
|
+
disabled: c,
|
|
59
|
+
className: "ttw:h-auto ttw:rounded-2xl ttw:border-border ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium ttw:text-foreground ttw:hover:bg-muted ttw:hover:text-foreground",
|
|
60
|
+
children: s.cancel
|
|
61
|
+
}), /* @__PURE__ */ r(e, {
|
|
62
|
+
type: "button",
|
|
63
|
+
variant: "destructive",
|
|
64
|
+
onClick: u,
|
|
65
|
+
disabled: c,
|
|
66
|
+
className: "ttw:h-auto ttw:rounded-2xl ttw:px-5 ttw:py-3 ttw:text-base ttw:font-medium",
|
|
67
|
+
children: s.deleteOwnerConfirm
|
|
68
|
+
})]
|
|
69
|
+
})]
|
|
87
70
|
});
|
|
88
71
|
}
|
|
89
72
|
//#endregion
|
|
90
|
-
export { o as
|
|
73
|
+
export { o as AdditionalOwnerDeleteConfirmation };
|
|
@@ -1,69 +1,278 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { BusinessDetailsSummary as c } from "./index18.js";
|
|
5
|
-
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
-
import { Pen as d } from "lucide-react";
|
|
1
|
+
import { Combobox as e, Input as t, Label as n, Select as r, SelectContent as i, SelectItem as a, SelectTrigger as o, SelectValue as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { FieldError as c, fieldErrorAria as l, onCompositeBlur as u, selectBlurHandlers as d } from "./index3.js";
|
|
3
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
4
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}) : /* @__PURE__ */ u("section", {
|
|
22
|
-
"data-testid": x?.root,
|
|
23
|
-
className: "ttw:relative ttw:min-w-0 ttw:rounded-lg ttw:bg-surface-subtle ttw:p-4",
|
|
5
|
+
function m({ htmlFor: e, children: t }) {
|
|
6
|
+
return /* @__PURE__ */ f(n, {
|
|
7
|
+
htmlFor: e,
|
|
8
|
+
className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
|
|
9
|
+
children: t
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
var h = "ttw:w-full";
|
|
13
|
+
function g({ fields: n, testIds: g, labels: _, isDisabled: v, taxIdRequired: y, taxIdPlaceholder: b, taxIdHelpText: x }) {
|
|
14
|
+
let S = d(n.state.onBlur), C = d(n.companyStructure.onBlur);
|
|
15
|
+
return /* @__PURE__ */ p("section", {
|
|
16
|
+
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
17
|
+
"data-testid": g?.root,
|
|
24
18
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
className: "ttw:
|
|
27
|
-
children:
|
|
28
|
-
component: "h3",
|
|
29
|
-
variant: "h6",
|
|
30
|
-
className: "ttw:font-semibold ttw:text-foreground",
|
|
31
|
-
children: S.panelTitle
|
|
32
|
-
}), /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ l(i, {
|
|
33
|
-
asChild: !0,
|
|
34
|
-
onFocus: (e) => {
|
|
35
|
-
e.preventDefault();
|
|
36
|
-
},
|
|
37
|
-
children: /* @__PURE__ */ l(e, {
|
|
38
|
-
type: "button",
|
|
39
|
-
variant: "ghost",
|
|
40
|
-
size: "icon-sm",
|
|
41
|
-
onClick: p,
|
|
42
|
-
disabled: _,
|
|
43
|
-
"aria-label": S.editButtonAriaLabel,
|
|
44
|
-
"data-testid": x?.editButton,
|
|
45
|
-
className: "ttw:rounded-lg ttw:bg-muted ttw:text-foreground ttw:hover:bg-primary/10 ttw:hover:text-foreground",
|
|
46
|
-
children: /* @__PURE__ */ l(d, {
|
|
47
|
-
className: "ttw:size-5",
|
|
48
|
-
"aria-hidden": !0
|
|
49
|
-
})
|
|
50
|
-
})
|
|
51
|
-
}), /* @__PURE__ */ l(n, {
|
|
52
|
-
side: "top",
|
|
53
|
-
sideOffset: 4,
|
|
54
|
-
children: S.editTooltip
|
|
55
|
-
})] }) })]
|
|
19
|
+
/* @__PURE__ */ f("p", {
|
|
20
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
21
|
+
children: _.requiredFieldsNote
|
|
56
22
|
}),
|
|
57
|
-
/* @__PURE__ */
|
|
58
|
-
|
|
59
|
-
|
|
23
|
+
/* @__PURE__ */ p("div", { children: [
|
|
24
|
+
/* @__PURE__ */ p(m, {
|
|
25
|
+
htmlFor: "companyLegalName",
|
|
26
|
+
children: [_.companyLegalName, _.requiredFieldMarker]
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ f(t, {
|
|
29
|
+
id: "companyLegalName",
|
|
30
|
+
value: n.companyLegalName.value,
|
|
31
|
+
onChange: (e) => n.companyLegalName.onValueChange(e.target.value),
|
|
32
|
+
onBlur: n.companyLegalName.onBlur,
|
|
33
|
+
...l("companyLegalName", n.companyLegalName.error),
|
|
34
|
+
disabled: v,
|
|
35
|
+
required: !0
|
|
36
|
+
}),
|
|
37
|
+
/* @__PURE__ */ f(c, {
|
|
38
|
+
fieldId: "companyLegalName",
|
|
39
|
+
error: n.companyLegalName.error
|
|
40
|
+
})
|
|
41
|
+
] }),
|
|
42
|
+
/* @__PURE__ */ p("div", { children: [
|
|
43
|
+
/* @__PURE__ */ f(m, {
|
|
44
|
+
htmlFor: "companyDbaName",
|
|
45
|
+
children: _.companyDbaName
|
|
46
|
+
}),
|
|
47
|
+
/* @__PURE__ */ f(t, {
|
|
48
|
+
id: "companyDbaName",
|
|
49
|
+
value: n.companyDbaName.value,
|
|
50
|
+
onChange: (e) => n.companyDbaName.onValueChange(e.target.value),
|
|
51
|
+
onBlur: n.companyDbaName.onBlur,
|
|
52
|
+
...l("companyDbaName", n.companyDbaName.error),
|
|
53
|
+
disabled: v
|
|
54
|
+
}),
|
|
55
|
+
/* @__PURE__ */ f(c, {
|
|
56
|
+
fieldId: "companyDbaName",
|
|
57
|
+
error: n.companyDbaName.error
|
|
58
|
+
})
|
|
59
|
+
] }),
|
|
60
|
+
/* @__PURE__ */ p("div", { children: [
|
|
61
|
+
/* @__PURE__ */ p(m, {
|
|
62
|
+
htmlFor: "businessAddress",
|
|
63
|
+
children: [_.businessAddress, _.requiredFieldMarker]
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ f(t, {
|
|
66
|
+
id: "businessAddress",
|
|
67
|
+
value: n.businessAddress.value,
|
|
68
|
+
onChange: (e) => n.businessAddress.onValueChange(e.target.value),
|
|
69
|
+
onBlur: n.businessAddress.onBlur,
|
|
70
|
+
...l("businessAddress", n.businessAddress.error),
|
|
71
|
+
disabled: v,
|
|
72
|
+
required: !0
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ f(c, {
|
|
75
|
+
fieldId: "businessAddress",
|
|
76
|
+
error: n.businessAddress.error
|
|
77
|
+
})
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ p("div", {
|
|
80
|
+
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ p("div", {
|
|
83
|
+
className: "ttw:min-w-0",
|
|
84
|
+
children: [
|
|
85
|
+
/* @__PURE__ */ p(m, {
|
|
86
|
+
htmlFor: "city",
|
|
87
|
+
children: [_.city, _.requiredFieldMarker]
|
|
88
|
+
}),
|
|
89
|
+
/* @__PURE__ */ f(t, {
|
|
90
|
+
id: "city",
|
|
91
|
+
value: n.city.value,
|
|
92
|
+
onChange: (e) => n.city.onValueChange(e.target.value),
|
|
93
|
+
onBlur: n.city.onBlur,
|
|
94
|
+
...l("city", n.city.error),
|
|
95
|
+
disabled: v,
|
|
96
|
+
required: !0
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ f(c, {
|
|
99
|
+
fieldId: "city",
|
|
100
|
+
error: n.city.error
|
|
101
|
+
})
|
|
102
|
+
]
|
|
103
|
+
}),
|
|
104
|
+
/* @__PURE__ */ p("div", {
|
|
105
|
+
className: "ttw:min-w-0",
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ p(m, {
|
|
108
|
+
htmlFor: "state",
|
|
109
|
+
children: [_.state, _.requiredFieldMarker]
|
|
110
|
+
}),
|
|
111
|
+
/* @__PURE__ */ p(r, {
|
|
112
|
+
value: n.state.value,
|
|
113
|
+
onValueChange: n.state.onValueChange,
|
|
114
|
+
onOpenChange: S.onOpenChange,
|
|
115
|
+
disabled: v,
|
|
116
|
+
children: [/* @__PURE__ */ f(o, {
|
|
117
|
+
id: "state",
|
|
118
|
+
className: h,
|
|
119
|
+
onBlur: S.onTriggerBlur,
|
|
120
|
+
...l("state", n.state.error),
|
|
121
|
+
children: /* @__PURE__ */ f(s, { placeholder: _.statePlaceholder })
|
|
122
|
+
}), /* @__PURE__ */ f(i, { children: n.state.options.map((e) => /* @__PURE__ */ f(a, {
|
|
123
|
+
value: e.value,
|
|
124
|
+
children: e.label
|
|
125
|
+
}, e.value)) })]
|
|
126
|
+
}),
|
|
127
|
+
/* @__PURE__ */ f(c, {
|
|
128
|
+
fieldId: "state",
|
|
129
|
+
error: n.state.error
|
|
130
|
+
})
|
|
131
|
+
]
|
|
132
|
+
}),
|
|
133
|
+
/* @__PURE__ */ p("div", {
|
|
134
|
+
className: "ttw:min-w-0",
|
|
135
|
+
children: [
|
|
136
|
+
/* @__PURE__ */ p(m, {
|
|
137
|
+
htmlFor: "zipCode",
|
|
138
|
+
children: [_.zipCode, _.requiredFieldMarker]
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ f(t, {
|
|
141
|
+
id: "zipCode",
|
|
142
|
+
value: n.zipCode.value,
|
|
143
|
+
onChange: (e) => n.zipCode.onValueChange(e.target.value),
|
|
144
|
+
onBlur: n.zipCode.onBlur,
|
|
145
|
+
...l("zipCode", n.zipCode.error),
|
|
146
|
+
disabled: v,
|
|
147
|
+
required: !0,
|
|
148
|
+
inputMode: "numeric"
|
|
149
|
+
}),
|
|
150
|
+
/* @__PURE__ */ f(c, {
|
|
151
|
+
fieldId: "zipCode",
|
|
152
|
+
error: n.zipCode.error
|
|
153
|
+
})
|
|
154
|
+
]
|
|
155
|
+
})
|
|
156
|
+
]
|
|
60
157
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
158
|
+
/* @__PURE__ */ p("div", { children: [
|
|
159
|
+
/* @__PURE__ */ p(m, {
|
|
160
|
+
htmlFor: "companyPhoneNumber",
|
|
161
|
+
children: [_.companyPhoneNumber, _.requiredFieldMarker]
|
|
162
|
+
}),
|
|
163
|
+
/* @__PURE__ */ f(t, {
|
|
164
|
+
id: "companyPhoneNumber",
|
|
165
|
+
type: "tel",
|
|
166
|
+
value: n.companyPhoneNumber.value,
|
|
167
|
+
onChange: (e) => n.companyPhoneNumber.onValueChange(e.target.value),
|
|
168
|
+
onBlur: n.companyPhoneNumber.onBlur,
|
|
169
|
+
...l("companyPhoneNumber", n.companyPhoneNumber.error),
|
|
170
|
+
disabled: v,
|
|
171
|
+
required: !0
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ f(c, {
|
|
174
|
+
fieldId: "companyPhoneNumber",
|
|
175
|
+
error: n.companyPhoneNumber.error
|
|
176
|
+
})
|
|
177
|
+
] }),
|
|
178
|
+
/* @__PURE__ */ p("div", { children: [
|
|
179
|
+
/* @__PURE__ */ p(m, {
|
|
180
|
+
htmlFor: "companyStructure",
|
|
181
|
+
children: [_.companyStructure, _.requiredFieldMarker]
|
|
182
|
+
}),
|
|
183
|
+
/* @__PURE__ */ p(r, {
|
|
184
|
+
value: n.companyStructure.value,
|
|
185
|
+
onValueChange: n.companyStructure.onValueChange,
|
|
186
|
+
onOpenChange: C.onOpenChange,
|
|
187
|
+
disabled: v,
|
|
188
|
+
children: [/* @__PURE__ */ f(o, {
|
|
189
|
+
id: "companyStructure",
|
|
190
|
+
className: h,
|
|
191
|
+
onBlur: C.onTriggerBlur,
|
|
192
|
+
...l("companyStructure", n.companyStructure.error),
|
|
193
|
+
children: /* @__PURE__ */ f(s, { placeholder: _.companyStructurePlaceholder })
|
|
194
|
+
}), /* @__PURE__ */ f(i, { children: n.companyStructure.options.map((e) => /* @__PURE__ */ f(a, {
|
|
195
|
+
value: e.value,
|
|
196
|
+
children: e.label
|
|
197
|
+
}, e.value)) })]
|
|
198
|
+
}),
|
|
199
|
+
/* @__PURE__ */ f(c, {
|
|
200
|
+
fieldId: "companyStructure",
|
|
201
|
+
error: n.companyStructure.error
|
|
202
|
+
})
|
|
203
|
+
] }),
|
|
204
|
+
/* @__PURE__ */ p("div", { children: [
|
|
205
|
+
/* @__PURE__ */ f(m, {
|
|
206
|
+
htmlFor: "website",
|
|
207
|
+
children: _.website
|
|
208
|
+
}),
|
|
209
|
+
/* @__PURE__ */ f(t, {
|
|
210
|
+
id: "website",
|
|
211
|
+
type: "url",
|
|
212
|
+
value: n.website.value,
|
|
213
|
+
onChange: (e) => n.website.onValueChange(e.target.value),
|
|
214
|
+
onBlur: n.website.onBlur,
|
|
215
|
+
...l("website", n.website.error),
|
|
216
|
+
disabled: v
|
|
217
|
+
}),
|
|
218
|
+
/* @__PURE__ */ f(c, {
|
|
219
|
+
fieldId: "website",
|
|
220
|
+
error: n.website.error
|
|
221
|
+
})
|
|
222
|
+
] }),
|
|
223
|
+
/* @__PURE__ */ p("div", { children: [
|
|
224
|
+
/* @__PURE__ */ p(m, {
|
|
225
|
+
htmlFor: "taxId",
|
|
226
|
+
children: [_.taxId, y ? _.requiredFieldMarker : null]
|
|
227
|
+
}),
|
|
228
|
+
/* @__PURE__ */ f(t, {
|
|
229
|
+
id: "taxId",
|
|
230
|
+
value: n.taxId.value,
|
|
231
|
+
onChange: (e) => n.taxId.onValueChange(e.target.value),
|
|
232
|
+
onBlur: n.taxId.onBlur,
|
|
233
|
+
disabled: v,
|
|
234
|
+
required: y,
|
|
235
|
+
inputMode: "numeric",
|
|
236
|
+
maxLength: 9,
|
|
237
|
+
placeholder: b,
|
|
238
|
+
...l("taxId", n.taxId.error, x ? "taxId-on-file" : void 0)
|
|
239
|
+
}),
|
|
240
|
+
/* @__PURE__ */ f(c, {
|
|
241
|
+
fieldId: "taxId",
|
|
242
|
+
error: n.taxId.error
|
|
243
|
+
}),
|
|
244
|
+
x ? /* @__PURE__ */ f("p", {
|
|
245
|
+
id: "taxId-on-file",
|
|
246
|
+
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
247
|
+
children: x
|
|
248
|
+
}) : null
|
|
249
|
+
] }),
|
|
250
|
+
/* @__PURE__ */ p("div", { children: [
|
|
251
|
+
/* @__PURE__ */ p(m, {
|
|
252
|
+
htmlFor: "naicsCode",
|
|
253
|
+
children: [_.naicsCode, _.requiredFieldMarker]
|
|
254
|
+
}),
|
|
255
|
+
/* @__PURE__ */ f(e, {
|
|
256
|
+
inputId: "naicsCode",
|
|
257
|
+
"data-testid": g?.naicsCombobox,
|
|
258
|
+
invalid: !!n.naicsCode.error,
|
|
259
|
+
describedBy: l("naicsCode", n.naicsCode.error)["aria-describedby"],
|
|
260
|
+
onBlur: u(n.naicsCode.onBlur),
|
|
261
|
+
items: n.naicsCode.options,
|
|
262
|
+
value: n.naicsCode.value,
|
|
263
|
+
onValueChange: (e) => {
|
|
264
|
+
n.naicsCode.onValueChange(Array.isArray(e) ? e[0] ?? "" : e);
|
|
265
|
+
},
|
|
266
|
+
labels: { placeholder: _.naicsCodePlaceholder },
|
|
267
|
+
disabled: v
|
|
268
|
+
}),
|
|
269
|
+
/* @__PURE__ */ f(c, {
|
|
270
|
+
fieldId: "naicsCode",
|
|
271
|
+
error: n.naicsCode.error
|
|
272
|
+
})
|
|
273
|
+
] })
|
|
65
274
|
]
|
|
66
275
|
});
|
|
67
276
|
}
|
|
68
277
|
//#endregion
|
|
69
|
-
export {
|
|
278
|
+
export { g as BusinessDetailsEditForm };
|