@tesouro/embedded-components-react 0.5.215 → 0.5.216
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/dist/index.d.ts +56 -2
- package/dist/index.js +13 -12
- package/dist/lib/BankAccountOnboardingWidget.d.ts +56 -2
- package/dist/lib/BankAccountOnboardingWidget.js +4 -3
- package/dist/lib/MarketingWidget.js +1 -1
- package/dist/lib/WidgetSuite.d.ts +53 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index11.js +72 -72
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index13.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index14.js +60 -60
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index15.js +12 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index16.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js +71 -5
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +95 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index24.js +6 -17
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +16 -616
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index26.js +669 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +15 -13
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index10.js +52 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index11.js +31 -37
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index12.js +33 -89
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index13.js +39 -12
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index14.js +98 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index15.js +14 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index16.js +2 -185
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index17.js +4 -30
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index18.js +183 -21
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index19.js +26 -66
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index20.js +21 -233
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index21.js +66 -27
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index22.js +233 -26
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index23.js +27 -72
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index24.js +26 -85
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +74 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index26.js +83 -55
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +6 -7
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +37 -42
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index29.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index30.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index9.js +7 -33
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index5.js +16 -19
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index6.js +157 -16
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/onboardingSuppressionReason.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +2 -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/feature/dist/lib/application/bankAccountApplication.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index16.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js +0 -161
|
@@ -1,37 +1,99 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnboardingSuppressionReason as e } from "../../../shared/data-access/dist/lib/onboardingSuppressionReason.js";
|
|
2
|
+
import "../../../shared/data-access/dist/index.js";
|
|
3
|
+
import { deniedNoticeExpiresAt as t } from "../../../shared/feature/dist/lib/application/bankAccountApplication.js";
|
|
4
|
+
import "../../../shared/feature/dist/index.js";
|
|
5
|
+
import { interpolateBankName as n } from "../../ui/dist/index7.js";
|
|
6
|
+
import { ApplicationStatusTone as r } from "../../ui/dist/index10.js";
|
|
2
7
|
import "../../ui/dist/index.js";
|
|
8
|
+
import { APPLICATION_STATUS_LABELS_EN as i } from "./index22.js";
|
|
3
9
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
personalDetails: {},
|
|
13
|
-
additionalOwners: {},
|
|
14
|
-
result: e,
|
|
15
|
-
unsavedApplicationDialog: {},
|
|
16
|
-
deleteApplicationDialog: {},
|
|
17
|
-
back: "Back",
|
|
18
|
-
cancel: "Cancel",
|
|
19
|
-
next: "Next",
|
|
20
|
-
submit: "Submit application",
|
|
21
|
-
saveAndClose: "Save and close",
|
|
22
|
-
deleteApplication: "Cancel and delete application",
|
|
23
|
-
applicationDeletedToast: "Application deleted.",
|
|
24
|
-
applicationSavedToast: "Application saved. You can continue later.",
|
|
25
|
-
businessReviewTitle: "Review your business details",
|
|
26
|
-
businessReviewSubtitle: "Take a moment to make sure your business information is correct.",
|
|
27
|
-
personalReviewTitle: "Review your personal details",
|
|
28
|
-
personalReviewSubtitle: "Take a moment to make sure your personal information is correct.",
|
|
29
|
-
modalTitle: "Bank account onboarding",
|
|
30
|
-
submitFailedError: "Unable to submit application. Please try again.",
|
|
31
|
-
genericRetryError: "Please try again.",
|
|
32
|
-
saveDraftNothingValidError: "Fix the highlighted fields before saving, or discard your changes.",
|
|
33
|
-
fallbackBankName: "Member Bank",
|
|
34
|
-
shellFdicDisclaimer: "Products and services are offered by {bankName}, N.A., Member FDIC."
|
|
10
|
+
var a = {
|
|
11
|
+
Form: "form",
|
|
12
|
+
DraftStartedByOther: "draftStartedByOther",
|
|
13
|
+
SubmittedByYou: "submittedByYou",
|
|
14
|
+
SubmittedByOther: "submittedByOther",
|
|
15
|
+
DeniedByYou: "deniedByYou",
|
|
16
|
+
DeniedByOther: "deniedByOther",
|
|
17
|
+
Hidden: "hidden"
|
|
35
18
|
};
|
|
19
|
+
function o(e) {
|
|
20
|
+
return e !== a.Form && e !== a.Hidden;
|
|
21
|
+
}
|
|
22
|
+
function s(e, n = Date.now()) {
|
|
23
|
+
if (!e) return a.Form;
|
|
24
|
+
let r = e.ownership === "STARTED_BY_YOU";
|
|
25
|
+
switch (e.status) {
|
|
26
|
+
case "COMPLETE": return a.Hidden;
|
|
27
|
+
case "DRAFT": return r ? a.Form : a.DraftStartedByOther;
|
|
28
|
+
case "SUBMITTED": return r ? a.SubmittedByYou : a.SubmittedByOther;
|
|
29
|
+
case "DENIED": {
|
|
30
|
+
let i = t(e);
|
|
31
|
+
return i !== null && n > i ? a.Hidden : r ? a.DeniedByYou : a.DeniedByOther;
|
|
32
|
+
}
|
|
33
|
+
case "DELETED":
|
|
34
|
+
case "CANCELED": return a.Form;
|
|
35
|
+
default: return a.Hidden;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function c(t) {
|
|
39
|
+
switch (t?.status) {
|
|
40
|
+
case "COMPLETE": return e.OrganizationApplicationComplete;
|
|
41
|
+
case "DENIED": return e.OrganizationApplicationDenialExpired;
|
|
42
|
+
default: return e.OrganizationApplicationStatusUnrecognized;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
var l = {
|
|
46
|
+
[a.DraftStartedByOther]: "draftStartedByOther",
|
|
47
|
+
[a.SubmittedByYou]: "submittedByYou",
|
|
48
|
+
[a.SubmittedByOther]: "submittedByOther",
|
|
49
|
+
[a.DeniedByYou]: "deniedByYou",
|
|
50
|
+
[a.DeniedByOther]: "deniedByOther"
|
|
51
|
+
}, u = {
|
|
52
|
+
[a.DraftStartedByOther]: r.Brand,
|
|
53
|
+
[a.SubmittedByYou]: r.Warning,
|
|
54
|
+
[a.SubmittedByOther]: r.Warning,
|
|
55
|
+
[a.DeniedByYou]: r.Danger,
|
|
56
|
+
[a.DeniedByOther]: r.Danger
|
|
57
|
+
};
|
|
58
|
+
function d(e) {
|
|
59
|
+
let t = i, n = (n) => ({
|
|
60
|
+
...t[n],
|
|
61
|
+
...e?.[n]
|
|
62
|
+
});
|
|
63
|
+
return {
|
|
64
|
+
title: e?.title ?? t.title,
|
|
65
|
+
bankDisclosure: e?.bankDisclosure ?? t.bankDisclosure,
|
|
66
|
+
close: e?.close ?? t.close,
|
|
67
|
+
formatDate: e?.formatDate ?? t.formatDate,
|
|
68
|
+
draftStartedByOther: n("draftStartedByOther"),
|
|
69
|
+
submittedByYou: n("submittedByYou"),
|
|
70
|
+
submittedByOther: n("submittedByOther"),
|
|
71
|
+
deniedByYou: n("deniedByYou"),
|
|
72
|
+
deniedByOther: n("deniedByOther")
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function f(e, t, n) {
|
|
76
|
+
let r = (e) => e ? n(e) : void 0;
|
|
77
|
+
return {
|
|
78
|
+
bankName: t,
|
|
79
|
+
applicantName: [e?.applicantFirstName, e?.applicantLastName].map((e) => e?.trim()).filter(Boolean).join(" ") || void 0,
|
|
80
|
+
startedOn: r(e?.createdAt),
|
|
81
|
+
submittedOn: r(e?.submittedAt),
|
|
82
|
+
deniedOn: r(e?.deniedAt)
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
function p(e, t, r, i) {
|
|
86
|
+
let a = i[l[e]], o = f(t, r, i.formatDate);
|
|
87
|
+
return {
|
|
88
|
+
chipTone: u[e],
|
|
89
|
+
labels: {
|
|
90
|
+
title: i.title,
|
|
91
|
+
bankDisclosure: n(i.bankDisclosure, r),
|
|
92
|
+
chipLabel: a.chipLabel,
|
|
93
|
+
heading: a.heading?.(o),
|
|
94
|
+
body: a.body(o)
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
36
98
|
//#endregion
|
|
37
|
-
export {
|
|
99
|
+
export { a as OnboardingApplicationView, p as applicationStatusNoticeFor, c as hiddenViewReason, o as isNoticeView, d as mergeApplicationStatusLabels, s as onboardingApplicationViewFor };
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index24.js
|
|
2
|
-
var e =
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
function n(e, t) {
|
|
8
|
-
let n = { ...e };
|
|
9
|
-
for (let e of t) delete n[e];
|
|
10
|
-
return n;
|
|
11
|
-
}
|
|
12
|
-
function r(t) {
|
|
13
|
-
return t ? n(t, e) : void 0;
|
|
14
|
-
}
|
|
15
|
-
function i(e) {
|
|
16
|
-
return n(e, t);
|
|
17
|
-
}
|
|
2
|
+
var e = {
|
|
3
|
+
Mounted: "onboarding.mounted",
|
|
4
|
+
Suppressed: "onboarding.suppressed",
|
|
5
|
+
ApplicationStatusShown: "onboarding.application_status_shown"
|
|
6
|
+
}, t = "onboarding";
|
|
18
7
|
//#endregion
|
|
19
|
-
export {
|
|
8
|
+
export { e as OnboardingAnalyticsEvent, t as WIDGET_NAME };
|