@tesouro/embedded-components-react 0.5.271 → 0.5.272

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.
Files changed (51) hide show
  1. package/dist/index.css +17 -0
  2. package/dist/index.d.ts +19 -0
  3. package/dist/index.js +4 -4
  4. package/dist/lib/BankAccountOnboardingWidget.d.ts +19 -0
  5. package/dist/lib/BankAccountOnboardingWidget.js +4 -4
  6. package/dist/lib/WidgetSuite.d.ts +19 -0
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/AdditionalOwnersStep.js +94 -73
  8. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +7 -7
  9. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BusinessDetailsStep.js +71 -57
  10. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/PersonalDetailsStep.js +61 -46
  11. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/additionalOwnerDraft.js +22 -24
  12. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/applicationStatusView.js +2 -2
  13. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/businessDetailsPanelMapping.js +28 -32
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/draftApplicationMapping.js +3 -3
  15. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/fieldErrors.js +40 -0
  16. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/labels.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/personalDetailsPanelMapping.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/stepSchemas.js +26 -21
  19. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +18 -18
  20. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +6 -58
  21. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +57 -31
  22. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +31 -38
  23. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +27 -26
  24. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +34 -91
  25. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +96 -12
  26. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +14 -2
  27. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +0 -2
  28. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +4 -185
  29. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +269 -25
  30. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +28 -21
  31. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +21 -68
  32. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +59 -225
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +338 -26
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +29 -26
  35. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +26 -74
  36. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +71 -82
  37. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +85 -8
  38. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +8 -57
  39. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +57 -9
  40. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index3.js +34 -261
  41. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +9 -62
  42. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +64 -0
  43. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index4.js +331 -2
  44. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index5.js +2 -48
  45. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index6.js +53 -139
  46. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index7.js +146 -50
  47. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index8.js +50 -28
  48. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +35 -6
  49. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  50. package/dist/packages/shared-ui-shadcn/dist/index.js +14 -9
  51. package/package.json +1 -1
@@ -1,35 +1,61 @@
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";
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 "./index10.js";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
8
4
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js
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
13
- });
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
- }
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
+ ]
32
58
  });
33
59
  }
34
60
  //#endregion
35
- export { r as ResultStepConfetti };
61
+ export { n as APPLICATION_STATUS_CARD_LABELS_EN, s as ApplicationStatusCard, a as ApplicationStatusTone };
@@ -1,42 +1,35 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
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";
2
8
  //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js
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
- }) })]
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
13
+ });
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
+ }
39
32
  });
40
33
  }
41
34
  //#endregion
42
- export { n as ResultStepFdicLogo };
35
+ export { r as ResultStepConfetti };
@@ -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/index13.js
3
3
  function n() {
4
- return /* @__PURE__ */ e("svg", {
5
- width: "66",
6
- height: "66",
7
- viewBox: "0 0 66 66",
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
- className: "ttw:mb-2",
12
- children: /* @__PURE__ */ t("g", {
13
- style: { mixBlendMode: "multiply" },
11
+ children: [/* @__PURE__ */ t("g", {
12
+ clipPath: "url(#result-step-fdic-clip)",
14
13
  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"
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("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"
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: "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"
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 ResultStepMailIcon };
42
+ export { n as ResultStepFdicLogo };
@@ -1,98 +1,41 @@
1
- import { Button as e, Spinner as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ResultStepConfetti as n } from "./index11.js";
3
- import { ResultStepFdicLogo as r } from "./index12.js";
4
- import { ResultStepMailIcon as i } from "./index13.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/index14.js
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
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__ */ o("p", {
79
- className: "ttw:mb-1 ttw:text-center ttw:text-base",
80
- children: g
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__ */ o(l, {
83
- lead: v,
84
- email: _
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
- ] }) : 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
- ]
36
+ ]
37
+ })
95
38
  });
96
39
  }
97
40
  //#endregion
98
- export { d as ResultStep };
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 "./index12.js";
3
+ import { ResultStepFdicLogo as r } from "./index13.js";
4
+ import { ResultStepMailIcon as i } from "./index14.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/index15.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
- };
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 { e as RESULT_LABELS_EN };
98
+ export { d as ResultStep };
@@ -1,2 +1,14 @@
1
- import "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import "react/jsx-runtime";
1
+ //#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.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,4 +1,2 @@
1
1
  import "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import "react";
3
2
  import "react/jsx-runtime";
4
- import "@radix-ui/react-use-controllable-state";