@tesouro/embedded-components-react 0.5.36 → 0.5.37
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 -14
- package/dist/index.d.ts +41 -3
- package/dist/index.js +5 -5
- package/dist/lib/BankAccountOnboardingWidget.d.ts +41 -3
- package/dist/lib/BankAccountOnboardingWidget.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index10.js +184 -109
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js +29 -174
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +117 -67
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +137 -44
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +77 -107
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +84 -87
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +116 -88
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +99 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +100 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index19.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index20.js +26 -383
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +407 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index6.js +2 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index7.js +22 -6
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index8.js +11 -182
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index9.js +8 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +27 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +34 -91
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +96 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +14 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +4 -175
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +180 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +31 -21
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +21 -65
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +60 -215
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +230 -29
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +32 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +26 -71
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +71 -82
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +87 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +38 -28
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +2 -46
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +48 -139
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +138 -48
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +47 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +32 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +31 -38
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "./
|
|
2
|
-
import { AdditionalOwnersForm as t } from "./
|
|
3
|
-
import { BUSINESS_DETAILS_LABELS_EN as n, interpolateBankName as r } from "./
|
|
4
|
-
import { PERSONAL_DETAILS_LABELS_EN as i } from "./
|
|
5
|
-
import { ResultStep as a } from "./
|
|
6
|
-
import { RESULT_LABELS_EN as o } from "./
|
|
7
|
-
import "./index13.js";
|
|
1
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "./index5.js";
|
|
2
|
+
import { AdditionalOwnersForm as t } from "./index6.js";
|
|
3
|
+
import { BUSINESS_DETAILS_LABELS_EN as n, interpolateBankName as r } from "./index7.js";
|
|
4
|
+
import { PERSONAL_DETAILS_LABELS_EN as i } from "./index8.js";
|
|
5
|
+
import { ResultStep as a } from "./index12.js";
|
|
6
|
+
import { RESULT_LABELS_EN as o } from "./index13.js";
|
|
8
7
|
import "./index14.js";
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
8
|
+
import "./index15.js";
|
|
9
|
+
import { BUSINESS_DETAILS_PANEL_LABELS_EN as s } from "./index18.js";
|
|
10
|
+
import { BusinessDetailsPanel as c } from "./index19.js";
|
|
11
|
+
import { ABOUT_YOU_PANEL_LABELS_EN as l } from "./index22.js";
|
|
12
|
+
import { AboutYouPanel as u } from "./index23.js";
|
|
13
|
+
import { BusinessDisclosuresSection as d } from "./index24.js";
|
|
14
14
|
export { l as ABOUT_YOU_PANEL_LABELS_EN, e as ADDITIONAL_OWNERS_LABELS_EN, u as AboutYouPanel, t as AdditionalOwnersForm, n as BUSINESS_DETAILS_LABELS_EN, s as BUSINESS_DETAILS_PANEL_LABELS_EN, c as BusinessDetailsPanel, d as BusinessDisclosuresSection, i as PERSONAL_DETAILS_LABELS_EN, o as RESULT_LABELS_EN, a as ResultStep, r as interpolateBankName };
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
2
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js
|
|
3
3
|
function n() {
|
|
4
|
-
return /* @__PURE__ */
|
|
5
|
-
width: "
|
|
6
|
-
height: "
|
|
7
|
-
viewBox: "0 0
|
|
4
|
+
return /* @__PURE__ */ t("svg", {
|
|
5
|
+
width: "46",
|
|
6
|
+
height: "18",
|
|
7
|
+
viewBox: "0 0 46 18",
|
|
8
8
|
fill: "none",
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10
10
|
"aria-hidden": !0,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
style: { mixBlendMode: "multiply" },
|
|
11
|
+
children: [/* @__PURE__ */ t("g", {
|
|
12
|
+
clipPath: "url(#result-step-fdic-clip)",
|
|
14
13
|
children: [
|
|
15
|
-
/* @__PURE__ */ e("
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
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"
|
|
22
21
|
}),
|
|
23
|
-
/* @__PURE__ */ e("
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
width: "56",
|
|
27
|
-
height: "56",
|
|
28
|
-
rx: "28",
|
|
29
|
-
className: "ttw:stroke-primary/10",
|
|
30
|
-
strokeWidth: "10"
|
|
22
|
+
/* @__PURE__ */ e("path", {
|
|
23
|
+
d: "M31.6022 0.0563965H26.751V17.9513H31.6022V0.0563965Z",
|
|
24
|
+
fill: "#667085"
|
|
31
25
|
}),
|
|
32
26
|
/* @__PURE__ */ e("path", {
|
|
33
|
-
d: "
|
|
34
|
-
|
|
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"
|
|
35
29
|
})
|
|
36
30
|
]
|
|
37
|
-
})
|
|
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
|
+
}) })]
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
41
|
//#endregion
|
|
41
|
-
export { n as
|
|
42
|
+
export { n as ResultStepFdicLogo };
|
|
@@ -1,98 +1,41 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ResultStepConfetti as n } from "./index8.js";
|
|
3
|
-
import { ResultStepFdicLogo as r } from "./index9.js";
|
|
4
|
-
import { ResultStepMailIcon as i } from "./index10.js";
|
|
5
|
-
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
-
import { ArrowUpRightIcon as c } from "lucide-react";
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
7
2
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js
|
|
8
|
-
function
|
|
9
|
-
return /* @__PURE__ */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
]
|
|
28
|
-
});
|
|
29
|
-
}
|
|
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
|
|
3
|
+
function n() {
|
|
4
|
+
return /* @__PURE__ */ e("svg", {
|
|
5
|
+
width: "66",
|
|
6
|
+
height: "66",
|
|
7
|
+
viewBox: "0 0 66 66",
|
|
8
|
+
fill: "none",
|
|
9
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10
|
+
"aria-hidden": !0,
|
|
11
|
+
className: "ttw:mb-2",
|
|
12
|
+
children: /* @__PURE__ */ t("g", {
|
|
13
|
+
style: { mixBlendMode: "multiply" },
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ e("rect", {
|
|
16
|
+
x: "5",
|
|
17
|
+
y: "5",
|
|
18
|
+
width: "56",
|
|
19
|
+
height: "56",
|
|
20
|
+
rx: "28",
|
|
21
|
+
className: "ttw:fill-primary/25"
|
|
77
22
|
}),
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
-
|
|
80
|
-
|
|
23
|
+
/* @__PURE__ */ e("rect", {
|
|
24
|
+
x: "5",
|
|
25
|
+
y: "5",
|
|
26
|
+
width: "56",
|
|
27
|
+
height: "56",
|
|
28
|
+
rx: "28",
|
|
29
|
+
className: "ttw:stroke-primary/10",
|
|
30
|
+
strokeWidth: "10"
|
|
81
31
|
}),
|
|
82
|
-
/* @__PURE__ */
|
|
83
|
-
|
|
84
|
-
|
|
32
|
+
/* @__PURE__ */ e("path", {
|
|
33
|
+
d: "M24 26.25C23.5781 26.25 23.25 26.625 23.25 27V28.0781L31.3125 34.6875C32.2969 35.4844 33.6562 35.4844 34.6406 34.6875L42.75 28.0781V27C42.75 26.625 42.375 26.25 42 26.25H24ZM23.25 30.9844V39C23.25 39.4219 23.5781 39.75 24 39.75H42C42.375 39.75 42.75 39.4219 42.75 39V30.9844L36.0938 36.4219C34.2656 37.9219 31.6875 37.9219 29.9062 36.4219L23.25 30.9844ZM21 27C21 25.3594 22.3125 24 24 24H42C43.6406 24 45 25.3594 45 27V39C45 40.6875 43.6406 42 42 42H24C22.3125 42 21 40.6875 21 39V27Z",
|
|
34
|
+
className: "ttw:fill-primary"
|
|
85
35
|
})
|
|
86
|
-
]
|
|
87
|
-
|
|
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
|
-
]
|
|
36
|
+
]
|
|
37
|
+
})
|
|
95
38
|
});
|
|
96
39
|
}
|
|
97
40
|
//#endregion
|
|
98
|
-
export {
|
|
41
|
+
export { n as ResultStepMailIcon };
|
|
@@ -1,14 +1,98 @@
|
|
|
1
|
+
import { Button as e, Spinner as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { ResultStepConfetti as n } from "./index9.js";
|
|
3
|
+
import { ResultStepFdicLogo as r } from "./index10.js";
|
|
4
|
+
import { ResultStepMailIcon as i } from "./index11.js";
|
|
5
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
6
|
+
import { ArrowUpRightIcon as c } from "lucide-react";
|
|
1
7
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
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
|
+
});
|
|
29
|
+
}
|
|
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
|
+
]
|
|
95
|
+
});
|
|
96
|
+
}
|
|
13
97
|
//#endregion
|
|
14
|
-
export {
|
|
98
|
+
export { d as ResultStep };
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js
|
|
2
|
+
var e = {
|
|
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."
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { e as RESULT_LABELS_EN };
|
|
@@ -1,175 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return /* @__PURE__ */ c(n, {
|
|
6
|
-
htmlFor: e,
|
|
7
|
-
className: "ttw:mb-1 ttw:block ttw:text-sm ttw:font-medium",
|
|
8
|
-
children: t
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
var d = "ttw:w-full";
|
|
12
|
-
function f({ fields: n, testIds: f, labels: p, isDisabled: m, websiteInvalid: h = !1 }) {
|
|
13
|
-
return /* @__PURE__ */ l("section", {
|
|
14
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
15
|
-
"data-testid": f?.root,
|
|
16
|
-
children: [
|
|
17
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
18
|
-
htmlFor: "companyLegalName",
|
|
19
|
-
children: p.companyLegalName
|
|
20
|
-
}), /* @__PURE__ */ c(t, {
|
|
21
|
-
id: "companyLegalName",
|
|
22
|
-
value: n.companyLegalName.value,
|
|
23
|
-
onChange: (e) => n.companyLegalName.onValueChange(e.target.value),
|
|
24
|
-
disabled: m,
|
|
25
|
-
required: !0
|
|
26
|
-
})] }),
|
|
27
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
28
|
-
htmlFor: "companyDbaName",
|
|
29
|
-
children: p.companyDbaName
|
|
30
|
-
}), /* @__PURE__ */ c(t, {
|
|
31
|
-
id: "companyDbaName",
|
|
32
|
-
value: n.companyDbaName.value,
|
|
33
|
-
onChange: (e) => n.companyDbaName.onValueChange(e.target.value),
|
|
34
|
-
disabled: m
|
|
35
|
-
})] }),
|
|
36
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
37
|
-
htmlFor: "businessAddress",
|
|
38
|
-
children: p.businessAddress
|
|
39
|
-
}), /* @__PURE__ */ c(t, {
|
|
40
|
-
id: "businessAddress",
|
|
41
|
-
value: n.businessAddress.value,
|
|
42
|
-
onChange: (e) => n.businessAddress.onValueChange(e.target.value),
|
|
43
|
-
disabled: m,
|
|
44
|
-
required: !0
|
|
45
|
-
})] }),
|
|
46
|
-
/* @__PURE__ */ l("div", {
|
|
47
|
-
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
48
|
-
children: [
|
|
49
|
-
/* @__PURE__ */ l("div", {
|
|
50
|
-
className: "ttw:min-w-0",
|
|
51
|
-
children: [/* @__PURE__ */ c(u, {
|
|
52
|
-
htmlFor: "city",
|
|
53
|
-
children: p.city
|
|
54
|
-
}), /* @__PURE__ */ c(t, {
|
|
55
|
-
id: "city",
|
|
56
|
-
value: n.city.value,
|
|
57
|
-
onChange: (e) => n.city.onValueChange(e.target.value),
|
|
58
|
-
disabled: m,
|
|
59
|
-
required: !0
|
|
60
|
-
})]
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ l("div", {
|
|
63
|
-
className: "ttw:min-w-0",
|
|
64
|
-
children: [/* @__PURE__ */ c(u, {
|
|
65
|
-
htmlFor: "state",
|
|
66
|
-
children: p.state
|
|
67
|
-
}), /* @__PURE__ */ l(r, {
|
|
68
|
-
value: n.state.value,
|
|
69
|
-
onValueChange: n.state.onValueChange,
|
|
70
|
-
disabled: m,
|
|
71
|
-
children: [/* @__PURE__ */ c(o, {
|
|
72
|
-
id: "state",
|
|
73
|
-
className: d,
|
|
74
|
-
children: /* @__PURE__ */ c(s, { placeholder: p.statePlaceholder })
|
|
75
|
-
}), /* @__PURE__ */ c(i, { children: n.state.options.map((e) => /* @__PURE__ */ c(a, {
|
|
76
|
-
value: e.value,
|
|
77
|
-
children: e.label
|
|
78
|
-
}, e.value)) })]
|
|
79
|
-
})]
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ l("div", {
|
|
82
|
-
className: "ttw:min-w-0",
|
|
83
|
-
children: [/* @__PURE__ */ c(u, {
|
|
84
|
-
htmlFor: "zipCode",
|
|
85
|
-
children: p.zipCode
|
|
86
|
-
}), /* @__PURE__ */ c(t, {
|
|
87
|
-
id: "zipCode",
|
|
88
|
-
value: n.zipCode.value,
|
|
89
|
-
onChange: (e) => n.zipCode.onValueChange(e.target.value),
|
|
90
|
-
disabled: m,
|
|
91
|
-
required: !0,
|
|
92
|
-
inputMode: "numeric"
|
|
93
|
-
})]
|
|
94
|
-
})
|
|
95
|
-
]
|
|
96
|
-
}),
|
|
97
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
98
|
-
htmlFor: "companyPhoneNumber",
|
|
99
|
-
children: p.companyPhoneNumber
|
|
100
|
-
}), /* @__PURE__ */ c(t, {
|
|
101
|
-
id: "companyPhoneNumber",
|
|
102
|
-
type: "tel",
|
|
103
|
-
value: n.companyPhoneNumber.value,
|
|
104
|
-
onChange: (e) => n.companyPhoneNumber.onValueChange(e.target.value),
|
|
105
|
-
disabled: m,
|
|
106
|
-
required: !0
|
|
107
|
-
})] }),
|
|
108
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
109
|
-
htmlFor: "companyStructure",
|
|
110
|
-
children: p.companyStructure
|
|
111
|
-
}), /* @__PURE__ */ l(r, {
|
|
112
|
-
value: n.companyStructure.value,
|
|
113
|
-
onValueChange: n.companyStructure.onValueChange,
|
|
114
|
-
disabled: m,
|
|
115
|
-
children: [/* @__PURE__ */ c(o, {
|
|
116
|
-
id: "companyStructure",
|
|
117
|
-
className: d,
|
|
118
|
-
children: /* @__PURE__ */ c(s, { placeholder: p.companyStructurePlaceholder })
|
|
119
|
-
}), /* @__PURE__ */ c(i, { children: n.companyStructure.options.map((e) => /* @__PURE__ */ c(a, {
|
|
120
|
-
value: e.value,
|
|
121
|
-
children: e.label
|
|
122
|
-
}, e.value)) })]
|
|
123
|
-
})] }),
|
|
124
|
-
/* @__PURE__ */ l("div", { children: [
|
|
125
|
-
/* @__PURE__ */ c(u, {
|
|
126
|
-
htmlFor: "website",
|
|
127
|
-
children: p.website
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ c(t, {
|
|
130
|
-
id: "website",
|
|
131
|
-
type: "url",
|
|
132
|
-
value: n.website.value,
|
|
133
|
-
onChange: (e) => n.website.onValueChange(e.target.value),
|
|
134
|
-
disabled: m,
|
|
135
|
-
"aria-invalid": h || void 0,
|
|
136
|
-
"aria-describedby": h ? "website-error" : void 0
|
|
137
|
-
}),
|
|
138
|
-
h ? /* @__PURE__ */ c("p", {
|
|
139
|
-
id: "website-error",
|
|
140
|
-
className: "ttw:mt-1 ttw:text-sm ttw:text-destructive",
|
|
141
|
-
role: "alert",
|
|
142
|
-
children: p.websiteInvalid
|
|
143
|
-
}) : null
|
|
144
|
-
] }),
|
|
145
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
146
|
-
htmlFor: "taxId",
|
|
147
|
-
children: p.taxId
|
|
148
|
-
}), /* @__PURE__ */ c(t, {
|
|
149
|
-
id: "taxId",
|
|
150
|
-
value: n.taxId.value,
|
|
151
|
-
onChange: (e) => n.taxId.onValueChange(e.target.value),
|
|
152
|
-
disabled: m,
|
|
153
|
-
required: !0,
|
|
154
|
-
inputMode: "numeric",
|
|
155
|
-
maxLength: 9
|
|
156
|
-
})] }),
|
|
157
|
-
/* @__PURE__ */ l("div", { children: [/* @__PURE__ */ c(u, {
|
|
158
|
-
htmlFor: "naicsCode",
|
|
159
|
-
children: p.naicsCode
|
|
160
|
-
}), /* @__PURE__ */ c(e, {
|
|
161
|
-
id: "naicsCode",
|
|
162
|
-
"data-testid": f?.naicsCombobox,
|
|
163
|
-
items: n.naicsCode.options,
|
|
164
|
-
value: n.naicsCode.value,
|
|
165
|
-
onValueChange: (e) => {
|
|
166
|
-
n.naicsCode.onValueChange(Array.isArray(e) ? e[0] ?? "" : e);
|
|
167
|
-
},
|
|
168
|
-
labels: { placeholder: p.naicsCodePlaceholder },
|
|
169
|
-
disabled: m
|
|
170
|
-
})] })
|
|
171
|
-
]
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
//#endregion
|
|
175
|
-
export { f as BusinessDetailsEditForm };
|
|
1
|
+
import "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "@radix-ui/react-use-controllable-state";
|