@tesouro/embedded-components-react 0.5.214 → 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 +144 -3
- package/dist/index.js +14 -13
- 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/ReceivablesWidget.d.ts +88 -1
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/lib/WidgetSuite.d.ts +53 -0
- package/dist/libs/shared/util-validation/dist/index5.js +7 -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/invoicing-widget/data-access/dist/index.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +63 -67
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +160 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index2.js +32 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +25 -200
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +175 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +1 -101
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +92 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +44 -100
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +93 -421
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +442 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +166 -157
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +150 -204
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +202 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +145 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +44 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +113 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +83 -357
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +111 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +449 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +68 -281
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +115 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +314 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +34 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +444 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +113 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +2 -92
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +95 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +3 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +24 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +3 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +18 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +1 -264
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +258 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +38 -62
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +61 -463
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +457 -89
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +91 -234
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +89 -82
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +22 -338
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +236 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +26 -204
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +249 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +93 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +344 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +208 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index5.js +29 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +183 -137
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +23 -2
- 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/index.js +40 -40
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/onboardingSuppressionReason.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +167 -156
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -34
- 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/dist/packages/shared-ui-shadcn/dist/index.js +13 -13
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/marketing-widget/feature/dist/index7.js +0 -161
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { ADDITIONAL_OWNERS_LABELS_EN as n } from "../../ui/dist/index5.js";
|
|
8
|
-
import { AdditionalOwnersForm as r } from "../../ui/dist/index6.js";
|
|
5
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../ui/dist/index5.js";
|
|
6
|
+
import { AdditionalOwnersForm as t } from "../../ui/dist/index6.js";
|
|
9
7
|
import "../../ui/dist/index.js";
|
|
8
|
+
import { bankAccountOnboardingTestIds as n } from "./index12.js";
|
|
9
|
+
import { buildAdditionalOwnerSchema as r } from "./index10.js";
|
|
10
10
|
import { valuesKey as i } from "./index17.js";
|
|
11
11
|
import { EMPTY_ADDITIONAL_OWNER as a, buildAdditionalOwnerEditDisplay as o, buildAdditionalOwnerEditFields as s, normalizeAdditionalOwnerDraft as c } from "./index16.js";
|
|
12
12
|
import { useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
@@ -26,9 +26,9 @@ function g(e) {
|
|
|
26
26
|
}
|
|
27
27
|
function _({ owners: h, onOwnersChange: _, primaryOwnerName: v, primaryOwnerPercentage: y, stateOptions: b, onSnapshotChange: x, onPendingOwnerChange: S, isSubmitting: C, labels: w }) {
|
|
28
28
|
let T = u(() => ({
|
|
29
|
-
...
|
|
29
|
+
...e,
|
|
30
30
|
...w
|
|
31
|
-
}), [w]), E = u(() =>
|
|
31
|
+
}), [w]), E = u(() => r(T), [T]), [D, O] = f(null), [k, A] = f(null), [j, M] = f(null), [N, P] = f(null), [F, I] = f(!1), L = (e) => {
|
|
32
32
|
O(c(e));
|
|
33
33
|
}, R = y + h.reduce((e, t) => e + m(t), 0), z = R > 100 ? T.totalOwnershipExceedsTemplate(R) : null, B = R > 75, V = `${y}%`, H = y >= 25, U = h.every((e) => E.safeParse(e).success), W = D !== null && E.safeParse(D).success, G = U && z === null && D === null && N === null ? h : null, K = JSON.stringify({ snapshot: G?.map((e) => ({
|
|
34
34
|
...e,
|
|
@@ -84,7 +84,7 @@ function _({ owners: h, onOwnersChange: _, primaryOwnerName: v, primaryOwnerPerc
|
|
|
84
84
|
O(null), A(null), I(!1);
|
|
85
85
|
}
|
|
86
86
|
} : null;
|
|
87
|
-
return /* @__PURE__ */ p(
|
|
87
|
+
return /* @__PURE__ */ p(t, {
|
|
88
88
|
ownerRows: h.map(g),
|
|
89
89
|
primaryOwnerName: v,
|
|
90
90
|
primaryOwnerShareDisplay: V,
|
|
@@ -101,11 +101,11 @@ function _({ owners: h, onOwnersChange: _, primaryOwnerName: v, primaryOwnerPerc
|
|
|
101
101
|
isSubmitting: C,
|
|
102
102
|
labels: w,
|
|
103
103
|
testIds: {
|
|
104
|
-
addOwnerButton:
|
|
105
|
-
overlay: { root:
|
|
104
|
+
addOwnerButton: n.addOwnerButton,
|
|
105
|
+
overlay: { root: n.shellOverlay },
|
|
106
106
|
deleteOverlay: {
|
|
107
|
-
root:
|
|
108
|
-
content:
|
|
107
|
+
root: n.ownerDeleteOverlay,
|
|
108
|
+
content: n.ownerDeleteContent
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { BUSINESS_DETAILS_LABELS_EN as o } from "../../ui/dist/index7.js";
|
|
5
|
-
import { PERSONAL_DETAILS_LABELS_EN as s } from "../../ui/dist/index8.js";
|
|
1
|
+
import { ADDITIONAL_OWNERS_LABELS_EN as e } from "../../ui/dist/index5.js";
|
|
2
|
+
import { BUSINESS_DETAILS_LABELS_EN as t } from "../../ui/dist/index7.js";
|
|
3
|
+
import { PERSONAL_DETAILS_LABELS_EN as n } from "../../ui/dist/index8.js";
|
|
6
4
|
import "../../ui/dist/index.js";
|
|
5
|
+
import { isIdentifierEnteredOrStored as r, usableStoredTaxIdLast4 as i } from "./index7.js";
|
|
6
|
+
import { buildAdditionalOwnerSchema as a, buildBusinessDetailsPanelFieldsSchema as o, buildPersonalDetailsSchema as s } from "./index10.js";
|
|
7
7
|
import { EMPTY_ADDITIONAL_OWNER as c } from "./index16.js";
|
|
8
8
|
import { formatBirthDate as l, stripPhone as u } from "./index19.js";
|
|
9
9
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js
|
|
10
|
-
var d =
|
|
10
|
+
var d = o(t).shape, f = s(n).shape, p = a(e).shape, m = (e, t) => e.safeParse(t).success;
|
|
11
11
|
function h(e) {
|
|
12
12
|
return Object.keys(e).length === 0 ? {} : {
|
|
13
13
|
...e,
|
|
14
14
|
countryCode: "USA"
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
var g = (
|
|
17
|
+
var g = (e) => r(e, void 0);
|
|
18
18
|
function _(e) {
|
|
19
|
-
return !(e.taxIdOnFileLast4 && !
|
|
19
|
+
return !(e.taxIdOnFileLast4 && !i(e)) || g(e.taxId);
|
|
20
20
|
}
|
|
21
21
|
function v(e) {
|
|
22
22
|
return _(e) ? e.companyStructure : e.taxIdOnFileStructure;
|
|
@@ -1,7 +1,73 @@
|
|
|
1
|
+
import { RESULT_LABELS_EN as e } from "../../ui/dist/index15.js";
|
|
2
|
+
import "../../ui/dist/index.js";
|
|
1
3
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index22.js
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
function t({ applicantName: e, submittedOn: t }) {
|
|
5
|
+
return e && t ? [`Submitted by ${e} on ${t}.`] : e ? [`Submitted by ${e}.`] : t ? [`Submitted on ${t}.`] : [];
|
|
6
|
+
}
|
|
7
|
+
var n = {
|
|
8
|
+
title: "Business bank account application",
|
|
9
|
+
bankDisclosure: "{bankName}, Member FDIC",
|
|
10
|
+
close: "Close",
|
|
11
|
+
formatDate: (e) => new Date(e).toLocaleDateString("en-US", {
|
|
12
|
+
month: "short",
|
|
13
|
+
day: "numeric",
|
|
14
|
+
year: "numeric"
|
|
15
|
+
}),
|
|
16
|
+
draftStartedByOther: {
|
|
17
|
+
chipLabel: "Application in progress",
|
|
18
|
+
heading: ({ startedOn: e }) => e ? `An application is already in progress as of ${e}.` : "An application is already in progress.",
|
|
19
|
+
body: () => ["Only the user who started the application can finish it. If someone else needs to apply instead, the original applicant can cancel theirs so someone else can start one."]
|
|
20
|
+
},
|
|
21
|
+
submittedByYou: {
|
|
22
|
+
chipLabel: "Under review",
|
|
23
|
+
heading: ({ bankName: e }) => `Your application is with ${e}.`,
|
|
24
|
+
body: ({ submittedOn: e }) => [e ? `Submitted ${e}. Reviews usually take 1–3 business days.` : "Reviews usually take 1–3 business days.", "Nothing is needed from you right now. We'll email you if anything else is needed."]
|
|
25
|
+
},
|
|
26
|
+
submittedByOther: {
|
|
27
|
+
chipLabel: "Under review",
|
|
28
|
+
heading: ({ bankName: e }) => `Your business's application is with ${e}.`,
|
|
29
|
+
body: (e) => [...t(e), `${e.applicantName ?? "The applicant"} will be contacted with updates.`]
|
|
30
|
+
},
|
|
31
|
+
deniedByYou: {
|
|
32
|
+
chipLabel: "Not approved",
|
|
33
|
+
body: ({ deniedOn: e }) => [e ? `Application denied on ${e}. Details have been sent to your email.` : "Application denied. Details have been sent to your email."]
|
|
34
|
+
},
|
|
35
|
+
deniedByOther: {
|
|
36
|
+
chipLabel: "Not approved",
|
|
37
|
+
body: ({ bankName: e, applicantName: t }) => [`${e} was unable to approve your business's application.`, `${t ?? "The applicant"} has the details.`]
|
|
38
|
+
}
|
|
39
|
+
}, r = {
|
|
40
|
+
stepIndicator: {
|
|
41
|
+
business: "Business",
|
|
42
|
+
personal: "Personal",
|
|
43
|
+
ownership: "Ownership",
|
|
44
|
+
done: "Done"
|
|
45
|
+
},
|
|
46
|
+
businessDetails: {},
|
|
47
|
+
personalDetails: {},
|
|
48
|
+
additionalOwners: {},
|
|
49
|
+
result: e,
|
|
50
|
+
unsavedApplicationDialog: {},
|
|
51
|
+
deleteApplicationDialog: {},
|
|
52
|
+
back: "Back",
|
|
53
|
+
cancel: "Cancel",
|
|
54
|
+
next: "Next",
|
|
55
|
+
submit: "Submit application",
|
|
56
|
+
saveAndClose: "Save and close",
|
|
57
|
+
deleteApplication: "Cancel and delete application",
|
|
58
|
+
applicationDeletedToast: "Application deleted.",
|
|
59
|
+
applicationSavedToast: "Application saved. You can continue later.",
|
|
60
|
+
businessReviewTitle: "Review your business details",
|
|
61
|
+
businessReviewSubtitle: "Take a moment to make sure your business information is correct.",
|
|
62
|
+
personalReviewTitle: "Review your personal details",
|
|
63
|
+
personalReviewSubtitle: "Take a moment to make sure your personal information is correct.",
|
|
64
|
+
modalTitle: "Bank account onboarding",
|
|
65
|
+
submitFailedError: "Unable to submit application. Please try again.",
|
|
66
|
+
genericRetryError: "Please try again.",
|
|
67
|
+
saveDraftNothingValidError: "Fix the highlighted fields before saving, or discard your changes.",
|
|
68
|
+
fallbackBankName: "Member Bank",
|
|
69
|
+
shellFdicDisclaimer: "Products and services are offered by {bankName}, N.A., Member FDIC.",
|
|
70
|
+
applicationStatus: n
|
|
71
|
+
};
|
|
6
72
|
//#endregion
|
|
7
|
-
export {
|
|
73
|
+
export { n as APPLICATION_STATUS_LABELS_EN, r as DEFAULT_LABELS };
|
|
@@ -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 };
|