@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,41 +1,61 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { APPLICATION_STATUS_CARD_LABELS_EN as n } from "./index13.js";
|
|
3
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
2
4
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
5
|
+
var a = {
|
|
6
|
+
Brand: "brand",
|
|
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
|
+
]
|
|
38
58
|
});
|
|
39
59
|
}
|
|
40
60
|
//#endregion
|
|
41
|
-
export { n as
|
|
61
|
+
export { n as APPLICATION_STATUS_CARD_LABELS_EN, s as ApplicationStatusCard, a as ApplicationStatusTone };
|
|
@@ -1,98 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
1
|
+
"use client";
|
|
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";
|
|
7
8
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js
|
|
8
|
-
function
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
})]
|
|
9
|
+
function r() {
|
|
10
|
+
let [r, i] = e.useState({
|
|
11
|
+
width: typeof window < "u" ? window.innerWidth : 0,
|
|
12
|
+
height: typeof window < "u" ? window.innerHeight : 0
|
|
18
13
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
]
|
|
14
|
+
return e.useEffect(() => {
|
|
15
|
+
let e = () => {
|
|
16
|
+
i({
|
|
17
|
+
width: window.innerWidth,
|
|
18
|
+
height: window.innerHeight
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
return window.addEventListener("resize", e), () => window.removeEventListener("resize", e);
|
|
22
|
+
}, []), /* @__PURE__ */ t(n, {
|
|
23
|
+
width: r.width,
|
|
24
|
+
height: r.height,
|
|
25
|
+
recycle: !1,
|
|
26
|
+
gravity: .6,
|
|
27
|
+
numberOfPieces: 400,
|
|
28
|
+
initialVelocityY: {
|
|
29
|
+
min: 10,
|
|
30
|
+
max: 12
|
|
31
|
+
}
|
|
95
32
|
});
|
|
96
33
|
}
|
|
97
34
|
//#endregion
|
|
98
|
-
export {
|
|
35
|
+
export { r as ResultStepConfetti };
|
|
@@ -1,14 +1,42 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
1
2
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
function n() {
|
|
4
|
+
return /* @__PURE__ */ t("svg", {
|
|
5
|
+
width: "46",
|
|
6
|
+
height: "18",
|
|
7
|
+
viewBox: "0 0 46 18",
|
|
8
|
+
fill: "none",
|
|
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
|
+
}
|
|
13
41
|
//#endregion
|
|
14
|
-
export {
|
|
42
|
+
export { n as ResultStepFdicLogo };
|
|
@@ -1,274 +1,41 @@
|
|
|
1
|
-
import {
|
|
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";
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
4
2
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
] }),
|
|
38
|
-
/* @__PURE__ */ p("div", { children: [
|
|
39
|
-
/* @__PURE__ */ f(m, {
|
|
40
|
-
htmlFor: "companyDbaName",
|
|
41
|
-
children: _.companyDbaName
|
|
42
|
-
}),
|
|
43
|
-
/* @__PURE__ */ f(t, {
|
|
44
|
-
id: "companyDbaName",
|
|
45
|
-
value: n.companyDbaName.value,
|
|
46
|
-
onChange: (e) => n.companyDbaName.onValueChange(e.target.value),
|
|
47
|
-
onBlur: n.companyDbaName.onBlur,
|
|
48
|
-
...l("companyDbaName", n.companyDbaName.error),
|
|
49
|
-
disabled: v
|
|
50
|
-
}),
|
|
51
|
-
/* @__PURE__ */ f(c, {
|
|
52
|
-
fieldId: "companyDbaName",
|
|
53
|
-
error: n.companyDbaName.error
|
|
54
|
-
})
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ p("div", { children: [
|
|
57
|
-
/* @__PURE__ */ f(m, {
|
|
58
|
-
htmlFor: "businessAddress",
|
|
59
|
-
children: _.businessAddress
|
|
60
|
-
}),
|
|
61
|
-
/* @__PURE__ */ f(t, {
|
|
62
|
-
id: "businessAddress",
|
|
63
|
-
value: n.businessAddress.value,
|
|
64
|
-
onChange: (e) => n.businessAddress.onValueChange(e.target.value),
|
|
65
|
-
onBlur: n.businessAddress.onBlur,
|
|
66
|
-
...l("businessAddress", n.businessAddress.error),
|
|
67
|
-
disabled: v,
|
|
68
|
-
required: !0
|
|
69
|
-
}),
|
|
70
|
-
/* @__PURE__ */ f(c, {
|
|
71
|
-
fieldId: "businessAddress",
|
|
72
|
-
error: n.businessAddress.error
|
|
73
|
-
})
|
|
74
|
-
] }),
|
|
75
|
-
/* @__PURE__ */ p("div", {
|
|
76
|
-
className: "ttw:grid ttw:grid-cols-3 ttw:gap-4",
|
|
77
|
-
children: [
|
|
78
|
-
/* @__PURE__ */ p("div", {
|
|
79
|
-
className: "ttw:min-w-0",
|
|
80
|
-
children: [
|
|
81
|
-
/* @__PURE__ */ f(m, {
|
|
82
|
-
htmlFor: "city",
|
|
83
|
-
children: _.city
|
|
84
|
-
}),
|
|
85
|
-
/* @__PURE__ */ f(t, {
|
|
86
|
-
id: "city",
|
|
87
|
-
value: n.city.value,
|
|
88
|
-
onChange: (e) => n.city.onValueChange(e.target.value),
|
|
89
|
-
onBlur: n.city.onBlur,
|
|
90
|
-
...l("city", n.city.error),
|
|
91
|
-
disabled: v,
|
|
92
|
-
required: !0
|
|
93
|
-
}),
|
|
94
|
-
/* @__PURE__ */ f(c, {
|
|
95
|
-
fieldId: "city",
|
|
96
|
-
error: n.city.error
|
|
97
|
-
})
|
|
98
|
-
]
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ p("div", {
|
|
101
|
-
className: "ttw:min-w-0",
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ f(m, {
|
|
104
|
-
htmlFor: "state",
|
|
105
|
-
children: _.state
|
|
106
|
-
}),
|
|
107
|
-
/* @__PURE__ */ p(r, {
|
|
108
|
-
value: n.state.value,
|
|
109
|
-
onValueChange: n.state.onValueChange,
|
|
110
|
-
onOpenChange: S.onOpenChange,
|
|
111
|
-
disabled: v,
|
|
112
|
-
children: [/* @__PURE__ */ f(o, {
|
|
113
|
-
id: "state",
|
|
114
|
-
className: h,
|
|
115
|
-
onBlur: S.onTriggerBlur,
|
|
116
|
-
...l("state", n.state.error),
|
|
117
|
-
children: /* @__PURE__ */ f(s, { placeholder: _.statePlaceholder })
|
|
118
|
-
}), /* @__PURE__ */ f(i, { children: n.state.options.map((e) => /* @__PURE__ */ f(a, {
|
|
119
|
-
value: e.value,
|
|
120
|
-
children: e.label
|
|
121
|
-
}, e.value)) })]
|
|
122
|
-
}),
|
|
123
|
-
/* @__PURE__ */ f(c, {
|
|
124
|
-
fieldId: "state",
|
|
125
|
-
error: n.state.error
|
|
126
|
-
})
|
|
127
|
-
]
|
|
128
|
-
}),
|
|
129
|
-
/* @__PURE__ */ p("div", {
|
|
130
|
-
className: "ttw:min-w-0",
|
|
131
|
-
children: [
|
|
132
|
-
/* @__PURE__ */ f(m, {
|
|
133
|
-
htmlFor: "zipCode",
|
|
134
|
-
children: _.zipCode
|
|
135
|
-
}),
|
|
136
|
-
/* @__PURE__ */ f(t, {
|
|
137
|
-
id: "zipCode",
|
|
138
|
-
value: n.zipCode.value,
|
|
139
|
-
onChange: (e) => n.zipCode.onValueChange(e.target.value),
|
|
140
|
-
onBlur: n.zipCode.onBlur,
|
|
141
|
-
...l("zipCode", n.zipCode.error),
|
|
142
|
-
disabled: v,
|
|
143
|
-
required: !0,
|
|
144
|
-
inputMode: "numeric"
|
|
145
|
-
}),
|
|
146
|
-
/* @__PURE__ */ f(c, {
|
|
147
|
-
fieldId: "zipCode",
|
|
148
|
-
error: n.zipCode.error
|
|
149
|
-
})
|
|
150
|
-
]
|
|
151
|
-
})
|
|
152
|
-
]
|
|
153
|
-
}),
|
|
154
|
-
/* @__PURE__ */ p("div", { children: [
|
|
155
|
-
/* @__PURE__ */ f(m, {
|
|
156
|
-
htmlFor: "companyPhoneNumber",
|
|
157
|
-
children: _.companyPhoneNumber
|
|
158
|
-
}),
|
|
159
|
-
/* @__PURE__ */ f(t, {
|
|
160
|
-
id: "companyPhoneNumber",
|
|
161
|
-
type: "tel",
|
|
162
|
-
value: n.companyPhoneNumber.value,
|
|
163
|
-
onChange: (e) => n.companyPhoneNumber.onValueChange(e.target.value),
|
|
164
|
-
onBlur: n.companyPhoneNumber.onBlur,
|
|
165
|
-
...l("companyPhoneNumber", n.companyPhoneNumber.error),
|
|
166
|
-
disabled: v,
|
|
167
|
-
required: !0
|
|
168
|
-
}),
|
|
169
|
-
/* @__PURE__ */ f(c, {
|
|
170
|
-
fieldId: "companyPhoneNumber",
|
|
171
|
-
error: n.companyPhoneNumber.error
|
|
172
|
-
})
|
|
173
|
-
] }),
|
|
174
|
-
/* @__PURE__ */ p("div", { children: [
|
|
175
|
-
/* @__PURE__ */ f(m, {
|
|
176
|
-
htmlFor: "companyStructure",
|
|
177
|
-
children: _.companyStructure
|
|
178
|
-
}),
|
|
179
|
-
/* @__PURE__ */ p(r, {
|
|
180
|
-
value: n.companyStructure.value,
|
|
181
|
-
onValueChange: n.companyStructure.onValueChange,
|
|
182
|
-
onOpenChange: C.onOpenChange,
|
|
183
|
-
disabled: v,
|
|
184
|
-
children: [/* @__PURE__ */ f(o, {
|
|
185
|
-
id: "companyStructure",
|
|
186
|
-
className: h,
|
|
187
|
-
onBlur: C.onTriggerBlur,
|
|
188
|
-
...l("companyStructure", n.companyStructure.error),
|
|
189
|
-
children: /* @__PURE__ */ f(s, { placeholder: _.companyStructurePlaceholder })
|
|
190
|
-
}), /* @__PURE__ */ f(i, { children: n.companyStructure.options.map((e) => /* @__PURE__ */ f(a, {
|
|
191
|
-
value: e.value,
|
|
192
|
-
children: e.label
|
|
193
|
-
}, e.value)) })]
|
|
194
|
-
}),
|
|
195
|
-
/* @__PURE__ */ f(c, {
|
|
196
|
-
fieldId: "companyStructure",
|
|
197
|
-
error: n.companyStructure.error
|
|
198
|
-
})
|
|
199
|
-
] }),
|
|
200
|
-
/* @__PURE__ */ p("div", { children: [
|
|
201
|
-
/* @__PURE__ */ f(m, {
|
|
202
|
-
htmlFor: "website",
|
|
203
|
-
children: _.website
|
|
204
|
-
}),
|
|
205
|
-
/* @__PURE__ */ f(t, {
|
|
206
|
-
id: "website",
|
|
207
|
-
type: "url",
|
|
208
|
-
value: n.website.value,
|
|
209
|
-
onChange: (e) => n.website.onValueChange(e.target.value),
|
|
210
|
-
onBlur: n.website.onBlur,
|
|
211
|
-
...l("website", n.website.error),
|
|
212
|
-
disabled: v
|
|
213
|
-
}),
|
|
214
|
-
/* @__PURE__ */ f(c, {
|
|
215
|
-
fieldId: "website",
|
|
216
|
-
error: n.website.error
|
|
217
|
-
})
|
|
218
|
-
] }),
|
|
219
|
-
/* @__PURE__ */ p("div", { children: [
|
|
220
|
-
/* @__PURE__ */ f(m, {
|
|
221
|
-
htmlFor: "taxId",
|
|
222
|
-
children: _.taxId
|
|
223
|
-
}),
|
|
224
|
-
/* @__PURE__ */ f(t, {
|
|
225
|
-
id: "taxId",
|
|
226
|
-
value: n.taxId.value,
|
|
227
|
-
onChange: (e) => n.taxId.onValueChange(e.target.value),
|
|
228
|
-
onBlur: n.taxId.onBlur,
|
|
229
|
-
disabled: v,
|
|
230
|
-
required: y,
|
|
231
|
-
inputMode: "numeric",
|
|
232
|
-
maxLength: 9,
|
|
233
|
-
placeholder: b,
|
|
234
|
-
...l("taxId", n.taxId.error, x ? "taxId-on-file" : void 0)
|
|
235
|
-
}),
|
|
236
|
-
/* @__PURE__ */ f(c, {
|
|
237
|
-
fieldId: "taxId",
|
|
238
|
-
error: n.taxId.error
|
|
239
|
-
}),
|
|
240
|
-
x ? /* @__PURE__ */ f("p", {
|
|
241
|
-
id: "taxId-on-file",
|
|
242
|
-
className: "ttw:mt-1 ttw:text-xs ttw:text-muted-foreground",
|
|
243
|
-
children: x
|
|
244
|
-
}) : null
|
|
245
|
-
] }),
|
|
246
|
-
/* @__PURE__ */ p("div", { children: [
|
|
247
|
-
/* @__PURE__ */ f(m, {
|
|
248
|
-
htmlFor: "naicsCode",
|
|
249
|
-
children: _.naicsCode
|
|
250
|
-
}),
|
|
251
|
-
/* @__PURE__ */ f(e, {
|
|
252
|
-
inputId: "naicsCode",
|
|
253
|
-
"data-testid": g?.naicsCombobox,
|
|
254
|
-
invalid: !!n.naicsCode.error,
|
|
255
|
-
describedBy: l("naicsCode", n.naicsCode.error)["aria-describedby"],
|
|
256
|
-
onBlur: u(n.naicsCode.onBlur),
|
|
257
|
-
items: n.naicsCode.options,
|
|
258
|
-
value: n.naicsCode.value,
|
|
259
|
-
onValueChange: (e) => {
|
|
260
|
-
n.naicsCode.onValueChange(Array.isArray(e) ? e[0] ?? "" : e);
|
|
261
|
-
},
|
|
262
|
-
labels: { placeholder: _.naicsCodePlaceholder },
|
|
263
|
-
disabled: v
|
|
264
|
-
}),
|
|
265
|
-
/* @__PURE__ */ f(c, {
|
|
266
|
-
fieldId: "naicsCode",
|
|
267
|
-
error: n.naicsCode.error
|
|
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"
|
|
22
|
+
}),
|
|
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"
|
|
31
|
+
}),
|
|
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"
|
|
268
35
|
})
|
|
269
|
-
]
|
|
270
|
-
|
|
36
|
+
]
|
|
37
|
+
})
|
|
271
38
|
});
|
|
272
39
|
}
|
|
273
40
|
//#endregion
|
|
274
|
-
export {
|
|
41
|
+
export { n as ResultStepMailIcon };
|