@tesouro/embedded-components-react 0.7.73 → 0.8.0
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/approval-policy/feature/dist/lib/labels.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/policyViewModel.js +8 -9
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +127 -141
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/util/dist/lib/validatePolicyDraft.js +1 -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/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
|
@@ -2,77 +2,84 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Button as e,
|
|
6
|
-
import { getStateOptions as
|
|
7
|
-
import { useEmbedApi as
|
|
8
|
-
import { personDisclosure as
|
|
9
|
-
import { useAcceptWidgetDisclosures as
|
|
10
|
-
import { useDisclosuresQuery as
|
|
11
|
-
import { OnboardingSuppressionReason as
|
|
12
|
-
import { useOrganizationOnboardingSuppression as
|
|
13
|
-
import { useOrganizationApplicationStatus as
|
|
5
|
+
import { Button as e, Separator as t, toast as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { getStateOptions as r } from "../../../../../shared/util/dist/lib/usStates.js";
|
|
7
|
+
import { useEmbedApi as i } from "../../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
8
|
+
import { personDisclosure as a } from "../../../../../shared/data-access/dist/lib/disclosures/personDisclosure.js";
|
|
9
|
+
import { useAcceptWidgetDisclosures as o } from "../../../../../shared/data-access/dist/lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
10
|
+
import { useDisclosuresQuery as s } from "../../../../../shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js";
|
|
11
|
+
import { OnboardingSuppressionReason as c } from "../../../../../shared/data-access/dist/lib/onboardingSuppressionReason.js";
|
|
12
|
+
import { useOrganizationOnboardingSuppression as l } from "../../../../../shared/data-access/dist/lib/useOrganizationOnboardingSuppression.js";
|
|
13
|
+
import { useOrganizationApplicationStatus as u } from "../../../../../shared/data-access/dist/lib/useOrganizationApplicationStatus.js";
|
|
14
14
|
import "../../../../../shared/data-access/dist/index.js";
|
|
15
|
-
import { EmbeddedToaster as
|
|
16
|
-
import { OnboardingShell as
|
|
15
|
+
import { EmbeddedToaster as ee } from "../../../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
16
|
+
import { OnboardingShell as te } from "../../../../../shared/ui/dist/lib/OnboardingShell/OnboardingShell.js";
|
|
17
17
|
import "../../../../../shared/ui/dist/index.js";
|
|
18
|
-
import { useAnalyticsTrack as
|
|
19
|
-
import { WidgetProvider as
|
|
20
|
-
import { useRefetchWidget as
|
|
21
|
-
import { getNaicsOptions as
|
|
22
|
-
import { deniedNoticeExpiresAt as
|
|
18
|
+
import { useAnalyticsTrack as d } from "../../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
19
|
+
import { WidgetProvider as ne } from "../../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
20
|
+
import { useRefetchWidget as re, useWidgetConfig as ie, useWidgetInitStaleForToken as ae, useWidgetLoading as oe } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
21
|
+
import { getNaicsOptions as se } from "../../../../../shared/feature/dist/lib/naicsCodeMap.js";
|
|
22
|
+
import { deniedNoticeExpiresAt as ce, selectBankAccountApplication as le } from "../../../../../shared/feature/dist/lib/application/bankAccountApplication.js";
|
|
23
23
|
import "../../../../../shared/feature/dist/index.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { UnsavedApplicationDialog as _e } from "../../../../ui/dist/index27.js";
|
|
29
|
-
import { DeleteApplicationDialog as ve } from "../../../../ui/dist/index29.js";
|
|
24
|
+
import { interpolateBankName as ue } from "../../../../ui/dist/index11.js";
|
|
25
|
+
import { ApplicationStatusCard as de } from "../../../../ui/dist/index14.js";
|
|
26
|
+
import { ResultStep as fe } from "../../../../ui/dist/index18.js";
|
|
27
|
+
import { DeleteApplicationDialog as pe } from "../../../../ui/dist/index32.js";
|
|
30
28
|
import "../../../../ui/dist/index.js";
|
|
31
29
|
import { DEFAULT_LABELS as f } from "./labels.js";
|
|
32
|
-
import { OnboardingApplicationView as
|
|
33
|
-
import { identifierLast4 as
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
30
|
+
import { OnboardingApplicationView as me, applicationStatusNoticeFor as he, hiddenViewReason as ge, isNoticeView as _e, mergeApplicationStatusLabels as ve, onboardingApplicationViewFor as ye } from "./applicationStatusView.js";
|
|
31
|
+
import { identifierLast4 as be, isIdentifierEnteredOrStored as xe } from "./fieldInput/storedIdentifier.js";
|
|
32
|
+
import { isConsentGiven as Se } from "./stepSchemas.js";
|
|
33
|
+
import { bankAccountOnboardingTestIds as p } from "./testIds.js";
|
|
34
|
+
import { BusinessDetailsStep as Ce } from "./BusinessDetailsStep.js";
|
|
35
|
+
import { PersonalDetailsStep as we } from "./PersonalDetailsStep.js";
|
|
36
|
+
import { ReviewStep as Te } from "./ReviewStep.js";
|
|
37
|
+
import { TermsStep as Ee } from "./TermsStep.js";
|
|
38
|
+
import { valuesKey as m } from "./valuesKey.js";
|
|
39
|
+
import { AdditionalOwnersStep as De } from "./AdditionalOwnersStep.js";
|
|
40
|
+
import { buildCreateApplicationBody as Oe, buildUpdateApplicationBody as h } from "./apiMapping.js";
|
|
41
|
+
import { buildOnboardingPrefill as ke } from "./buildOnboardingPrefill.js";
|
|
42
|
+
import { acceptDraftedValues as Ae, asCreateBody as je, buildDraftApplicationBody as Me, withApplicantWorkEmail as Ne } from "./draftApplicationMapping.js";
|
|
43
|
+
import { OnboardingAnalyticsEvent as Pe, WIDGET_NAME as g } from "../analytics/events.js";
|
|
44
|
+
import { withoutResumeOnlyOwnerFields as Fe, withoutStoredIdentifierMarkers as Ie } from "./hostInitialValues.js";
|
|
45
|
+
import { ApplicationClientSecretProvider as Le, useApplicationClientSecret as Re } from "../../../../data-access/dist/index3.js";
|
|
46
|
+
import { useCreateApplication as ze } from "../../../../data-access/dist/index5.js";
|
|
47
|
+
import { useUpdateApplication as Be } from "../../../../data-access/dist/index6.js";
|
|
48
|
+
import { useSubmitApplication as Ve } from "../../../../data-access/dist/index7.js";
|
|
49
|
+
import { useDeleteApplication as He } from "../../../../data-access/dist/index8.js";
|
|
50
|
+
import { usePollApplicationCompletion as Ue } from "../../../../data-access/dist/index9.js";
|
|
51
|
+
import { useResumableBankAccountApplication as We } from "../../../../data-access/dist/index11.js";
|
|
52
|
+
import { useStartedBankAccountApplication as Ge } from "../../../../data-access/dist/index12.js";
|
|
52
53
|
import "../../../../data-access/dist/index.js";
|
|
53
|
-
import { useCallback as
|
|
54
|
-
import { Fragment as
|
|
54
|
+
import { useCallback as Ke, useEffect as _, useMemo as v, useReducer as qe, useRef as y, useState as b } from "react";
|
|
55
|
+
import { Fragment as Je, jsx as x, jsxs as Ye } from "react/jsx-runtime";
|
|
55
56
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js
|
|
56
|
-
var
|
|
57
|
-
function
|
|
57
|
+
var Xe = 2 ** 31 - 1, Ze = "DRAFT", Qe = [], S = (e) => xe(e, void 0);
|
|
58
|
+
function $e(e) {
|
|
58
59
|
return {
|
|
59
60
|
...e,
|
|
60
61
|
taxId: "",
|
|
61
|
-
taxIdOnFileLast4:
|
|
62
|
+
taxIdOnFileLast4: be(e.taxId),
|
|
62
63
|
taxIdOnFileStructure: e.companyStructure === "" ? void 0 : e.companyStructure
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
|
-
function
|
|
66
|
+
function et(e) {
|
|
66
67
|
return {
|
|
67
68
|
...e,
|
|
68
69
|
ssn: "",
|
|
69
|
-
ssnOnFileLast4:
|
|
70
|
+
ssnOnFileLast4: be(e.ssn)
|
|
70
71
|
};
|
|
71
72
|
}
|
|
72
|
-
function
|
|
73
|
-
return t ?
|
|
73
|
+
function tt(e, t) {
|
|
74
|
+
return t ? t.index === null ? [...e, {
|
|
75
|
+
...t.owner,
|
|
76
|
+
reviewed: !1
|
|
77
|
+
}] : e.map((e, n) => n === t.index ? t.owner : e) : e;
|
|
78
|
+
}
|
|
79
|
+
function nt(e) {
|
|
80
|
+
return e.map(({ reviewed: e, ...t }) => t);
|
|
74
81
|
}
|
|
75
|
-
var
|
|
82
|
+
var rt = {
|
|
76
83
|
companyLegalName: "",
|
|
77
84
|
companyDbaName: "",
|
|
78
85
|
businessAddress: "",
|
|
@@ -86,7 +93,7 @@ var ot = {
|
|
|
86
93
|
naicsCode: "",
|
|
87
94
|
isAuthorized: null,
|
|
88
95
|
isCheckboxChecked: !1
|
|
89
|
-
},
|
|
96
|
+
}, it = {
|
|
90
97
|
firstName: "",
|
|
91
98
|
lastName: "",
|
|
92
99
|
dateOfBirth: void 0,
|
|
@@ -99,530 +106,537 @@ var ot = {
|
|
|
99
106
|
workEmail: "",
|
|
100
107
|
ownsOver25Percent: null,
|
|
101
108
|
ownershipPercentage: null
|
|
109
|
+
}, C = {
|
|
110
|
+
personal: 0,
|
|
111
|
+
business: 1,
|
|
112
|
+
review: 2,
|
|
113
|
+
terms: 3
|
|
102
114
|
};
|
|
103
|
-
function
|
|
104
|
-
|
|
105
|
-
title: t.businessReviewTitle,
|
|
106
|
-
subtitle: t.businessReviewSubtitle
|
|
107
|
-
};
|
|
108
|
-
if (e === 1) return {
|
|
115
|
+
function at(e, t) {
|
|
116
|
+
return e === C.personal ? {
|
|
109
117
|
title: t.personalReviewTitle,
|
|
110
118
|
subtitle: t.personalReviewSubtitle
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
} : e === C.business ? {
|
|
120
|
+
title: t.businessReviewTitle,
|
|
121
|
+
subtitle: t.businessReviewSubtitle
|
|
122
|
+
} : e === C.review ? {
|
|
123
|
+
title: t.reviewTitle,
|
|
124
|
+
subtitle: t.reviewSubtitle
|
|
125
|
+
} : {
|
|
126
|
+
title: t.termsTitle,
|
|
127
|
+
subtitle: t.termsSubtitle
|
|
119
128
|
};
|
|
120
129
|
}
|
|
121
|
-
function
|
|
122
|
-
let
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}, [
|
|
126
|
-
let
|
|
130
|
+
function ot({ onEmbeddedOnboardingCompletedSuccessfully: ne, onNavigateToDashboard: xe, onSuppressed: ke, labels: g, initialBusinessDetails: Ie, initialPersonalDetails: Le, initialAdditionalOwners: We, initialApplicationId: Ge = null, initialBoundAuthEpoch: Ze, onEditableDraftChange: ot, onApplicationDeleted: st, onNoticeReplacedByForm: ct, bankLogoSrc: lt, disclosureLinks: ut, showApplicationStatusRefresh: dt = !1, onResultPhaseChange: ft }) {
|
|
131
|
+
let w = d(), { authEpoch: pt } = i();
|
|
132
|
+
_(() => {
|
|
133
|
+
w(Pe.Mounted);
|
|
134
|
+
}, [w]);
|
|
135
|
+
let T = {
|
|
127
136
|
...f,
|
|
128
|
-
...
|
|
129
|
-
deleteFailedError:
|
|
137
|
+
...g,
|
|
138
|
+
deleteFailedError: g?.deleteFailedError ?? f.deleteFailedError,
|
|
130
139
|
stepIndicator: {
|
|
131
140
|
...f.stepIndicator,
|
|
132
|
-
...
|
|
141
|
+
...g?.stepIndicator
|
|
142
|
+
},
|
|
143
|
+
nextToStep: {
|
|
144
|
+
...f.nextToStep,
|
|
145
|
+
...g?.nextToStep
|
|
146
|
+
},
|
|
147
|
+
backToStepAriaLabel: {
|
|
148
|
+
...f.backToStepAriaLabel,
|
|
149
|
+
...g?.backToStepAriaLabel
|
|
133
150
|
},
|
|
134
|
-
businessDetails:
|
|
135
|
-
personalDetails:
|
|
136
|
-
additionalOwners:
|
|
151
|
+
businessDetails: g?.businessDetails ?? {},
|
|
152
|
+
personalDetails: g?.personalDetails ?? {},
|
|
153
|
+
additionalOwners: g?.additionalOwners ?? {},
|
|
154
|
+
applicationReview: g?.applicationReview ?? {},
|
|
137
155
|
result: {
|
|
138
156
|
...f.result,
|
|
139
|
-
...
|
|
157
|
+
...g?.result
|
|
140
158
|
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
...
|
|
150
|
-
...
|
|
151
|
-
})), [
|
|
152
|
-
...st,
|
|
153
|
-
...Re
|
|
154
|
-
})), [j, M] = y(() => Be ?? []), [N, jt] = y(() => ({
|
|
159
|
+
deleteApplicationDialog: g?.deleteApplicationDialog ?? {},
|
|
160
|
+
applicationStatus: ve(g?.applicationStatus)
|
|
161
|
+
}, E = ie().initResponse, { termsHref: mt, privacyHref: ht, electronicCommunicationHref: gt, patriotActHref: _t } = ut ?? {}, vt = Ke(() => {
|
|
162
|
+
ne();
|
|
163
|
+
}, [ne]), yt = re(), [D, O] = b(C.personal), [k, A] = b(() => ({
|
|
164
|
+
...rt,
|
|
165
|
+
...Ie
|
|
166
|
+
})), [j, bt] = b(() => ({
|
|
167
|
+
...it,
|
|
168
|
+
...Le
|
|
169
|
+
})), [M, N] = b(() => We ?? []), [P, xt] = b(() => ({
|
|
155
170
|
business: k,
|
|
156
|
-
personal:
|
|
157
|
-
owners:
|
|
158
|
-
})), [
|
|
159
|
-
|
|
160
|
-
if (!
|
|
171
|
+
personal: j,
|
|
172
|
+
owners: M
|
|
173
|
+
})), [St, Ct] = b(null);
|
|
174
|
+
_(() => {
|
|
175
|
+
if (!St) return;
|
|
161
176
|
let e = {
|
|
162
177
|
business: k,
|
|
163
|
-
personal:
|
|
164
|
-
owners:
|
|
178
|
+
personal: j,
|
|
179
|
+
owners: M
|
|
165
180
|
};
|
|
166
|
-
|
|
181
|
+
xt((t) => St.next(e, t)), Ct(null);
|
|
167
182
|
}, [
|
|
168
|
-
|
|
183
|
+
St,
|
|
169
184
|
k,
|
|
170
|
-
|
|
171
|
-
|
|
185
|
+
j,
|
|
186
|
+
M
|
|
172
187
|
]);
|
|
173
|
-
let
|
|
188
|
+
let wt = (e, { ownersCleared: t = !1 } = {}) => Ct({ next: (n, r) => ({
|
|
174
189
|
business: e.includes("business") ? n.business : r.business,
|
|
175
190
|
personal: e.includes("personal") ? n.personal : r.personal,
|
|
176
|
-
owners: t
|
|
177
|
-
|
|
178
|
-
saved: r,
|
|
179
|
-
dirty: {
|
|
180
|
-
business: !1,
|
|
181
|
-
personal: !1,
|
|
182
|
-
owners: !1
|
|
183
|
-
},
|
|
184
|
-
ownersWrite: "list"
|
|
185
|
-
}).owners : e.includes("owners") ? n.owners : r.owners
|
|
186
|
-
}) }), [Ft, It] = y(null), [Lt, Rt] = y(0), [zt, Bt] = y(!1), [Vt, Ht] = y(!1), [P, Ut] = y(null), [F, Wt] = y(null), [Gt, Kt] = y(null), [I, qt] = y(Ve), [Jt, Yt] = y(!1), [L, Xt] = y({}), Zt = (e) => Xt((t) => ({
|
|
191
|
+
owners: t ? Qe : e.includes("owners") ? n.owners : r.owners
|
|
192
|
+
}) }), [F, Tt] = b(null), [Et, Dt] = b(0), [Ot, kt] = b(!1), [I, At] = b(null), [L, jt] = b(null), [Mt, Nt] = b(null), [R, Pt] = b(Ge), [Ft, It] = b({}), Lt = (e) => It((t) => ({
|
|
187
193
|
...t,
|
|
188
|
-
...e.taxId &&
|
|
194
|
+
...e.taxId && S(e.taxId) && e.taxIdStructure ? {
|
|
189
195
|
taxId: e.taxId,
|
|
190
196
|
taxIdStructure: e.taxIdStructure
|
|
191
197
|
} : {},
|
|
192
|
-
...e.ssn &&
|
|
193
|
-
})),
|
|
194
|
-
let { taxId: t, taxIdStructure: n } =
|
|
195
|
-
|
|
198
|
+
...e.ssn && S(e.ssn) ? { ssn: e.ssn } : {}
|
|
199
|
+
})), Rt = (e) => {
|
|
200
|
+
let { taxId: t, taxIdStructure: n } = Ft, r = t !== void 0 && n !== void 0 && e.companyStructure !== k.companyStructure && e.companyStructure !== "" && e.companyStructure === "SOLE_PROPRIETORSHIP" != (n === "SOLE_PROPRIETORSHIP");
|
|
201
|
+
A(r ? {
|
|
196
202
|
...e,
|
|
197
203
|
taxId: e.taxId === t ? "" : e.taxId,
|
|
198
|
-
taxIdOnFileLast4:
|
|
204
|
+
taxIdOnFileLast4: be(t),
|
|
199
205
|
taxIdOnFileStructure: n
|
|
200
206
|
} : e);
|
|
201
|
-
}, [
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
}, [zt, Bt] = b(Ze ?? pt), [Vt, z] = b(null), [Ht, Ut] = b(null), [Wt, Gt] = b(0), Kt = y(null);
|
|
208
|
+
_(() => {
|
|
209
|
+
if (Wt === 0) return;
|
|
210
|
+
let e = Kt.current;
|
|
211
|
+
(e?.querySelector("[aria-invalid=\"true\"]") ?? e?.querySelector("[data-needs-attention]"))?.focus();
|
|
212
|
+
}, [Wt]);
|
|
213
|
+
let [qt, Jt] = b(!1), [Yt, Xt] = b(!1), [Zt, Qt] = b(!1), [$t, en] = b(null), tn = ze(), B = Be(), nn = Ve(), rn = He(), an = Ue(), { setClientSecret: on } = Re(), { data: sn, refetch: cn } = s(), { mutateAsync: ln } = o(), un = l(), V = u(), dn = ae(), [fn, pn] = qe((e) => e + 1, 0), mn = v(() => le(V.applications), [V.applications]), hn = y(null);
|
|
214
|
+
V.isResolved && (hn.current = { application: mn });
|
|
215
|
+
let H = V.isResolved ? mn : hn.current?.application ?? null, gn = ce(H), U = ye(H), _n = V.isResolved || hn.current !== null && U === me.Form;
|
|
216
|
+
_(() => {
|
|
217
|
+
if (gn === null) return;
|
|
218
|
+
let e = gn - Date.now();
|
|
209
219
|
if (e < 0) return;
|
|
210
|
-
let t = setTimeout(
|
|
220
|
+
let t = setTimeout(pn, Math.min(e + 1, Xe));
|
|
211
221
|
return () => clearTimeout(t);
|
|
212
|
-
}, [
|
|
213
|
-
let
|
|
214
|
-
|
|
215
|
-
let
|
|
216
|
-
|
|
217
|
-
if (
|
|
218
|
-
}, [
|
|
219
|
-
let
|
|
220
|
-
|
|
221
|
-
let J =
|
|
222
|
-
|
|
223
|
-
let
|
|
224
|
-
|
|
225
|
-
|
|
222
|
+
}, [gn, fn]);
|
|
223
|
+
let vn = y(null);
|
|
224
|
+
_(() => () => vn.current?.abort(), []);
|
|
225
|
+
let yn = v(() => se(T.businessDetails.naicsTitles), [T.businessDetails.naicsTitles]), bn = v(() => r(T.businessDetails.stateTitles), [T.businessDetails.stateTitles]), xn = v(() => r(T.personalDetails.stateTitles), [T.personalDetails.stateTitles]), Sn = v(() => r(T.additionalOwners.stateTitles), [T.additionalOwners.stateTitles]), W = Zt || $t !== null, Cn = y(ft);
|
|
226
|
+
Cn.current = ft, _(() => {
|
|
227
|
+
if (W) return Cn.current?.(!0), () => Cn.current?.(!1);
|
|
228
|
+
}, [W]);
|
|
229
|
+
let wn = E?.status === "ACTIVE" || E?.status === "INACTIVE", Tn = E?.status === "INVITED", En = wn || Tn, G = un.isResolved && _n, Dn = E && !W && !En && G && _e(U) ? U : null, On = !!E && !W && Dn === null && (En || G && (un.isSuppressed || U === me.Hidden)), K = On ? wn ? c.UserAlreadyOnboarded : Tn ? c.UserInvitedToOrganization : U === me.Hidden ? ge(H) : un.reason ?? ge(H) : null, kn = !!E && G && !W, [An, jn] = b(!1), Mn = An && On && !En && K !== c.OrganizationApplicationDenialExpired, q = Dn ?? (Mn ? "unavailable" : null);
|
|
230
|
+
kn && An !== (q !== null) && jn(q !== null);
|
|
231
|
+
let J = Mn && K === c.OrganizationApplicationComplete, Nn = oe(), [Y, Pn] = b("idle"), [Fn, In] = b(!1);
|
|
232
|
+
kn && J !== Fn && (In(J), J && Pn("requested")), Y === "requested" && Nn && Pn("inFlight"), Y === "inFlight" && !Nn && Pn("idle");
|
|
233
|
+
let Ln = J && Y !== "idle", Rn = y(ke);
|
|
234
|
+
Rn.current = ke;
|
|
235
|
+
let zn = On && q === null;
|
|
236
|
+
_(() => {
|
|
237
|
+
zn && K && (w(Pe.Suppressed, { reason: K }), console.info(`[onboarding] not shown: ${K}`), Rn.current?.(K));
|
|
226
238
|
}, [
|
|
227
|
-
|
|
239
|
+
zn,
|
|
228
240
|
K,
|
|
229
|
-
|
|
241
|
+
w
|
|
230
242
|
]);
|
|
231
|
-
let
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}, [
|
|
235
|
-
let
|
|
236
|
-
|
|
237
|
-
let
|
|
238
|
-
|
|
239
|
-
if (!
|
|
240
|
-
let e =
|
|
241
|
-
|
|
243
|
+
let Bn = dn ? null : Dn;
|
|
244
|
+
_(() => {
|
|
245
|
+
Bn && w(Pe.ApplicationStatusShown, { view: Bn });
|
|
246
|
+
}, [Bn, w]);
|
|
247
|
+
let Vn = y(q), Hn = y(ct);
|
|
248
|
+
Hn.current = ct;
|
|
249
|
+
let Un = y(yt);
|
|
250
|
+
Un.current = yt, _(() => {
|
|
251
|
+
if (!G || W) return;
|
|
252
|
+
let e = Vn.current !== null;
|
|
253
|
+
Vn.current = q, e && q === null && U === me.Form && Hn.current?.();
|
|
242
254
|
}, [
|
|
243
|
-
H,
|
|
244
255
|
U,
|
|
245
256
|
W,
|
|
257
|
+
G,
|
|
246
258
|
q
|
|
247
|
-
]),
|
|
248
|
-
Y === "requested" &&
|
|
249
|
-
}, [Y]),
|
|
250
|
-
|
|
251
|
-
applicationId:
|
|
252
|
-
authEpoch:
|
|
259
|
+
]), _(() => {
|
|
260
|
+
Y === "requested" && Un.current();
|
|
261
|
+
}, [Y]), _(() => {
|
|
262
|
+
ot?.(W || R === null ? null : {
|
|
263
|
+
applicationId: R,
|
|
264
|
+
authEpoch: zt
|
|
253
265
|
});
|
|
254
266
|
}, [
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
267
|
+
ot,
|
|
268
|
+
W,
|
|
269
|
+
R,
|
|
270
|
+
zt
|
|
259
271
|
]);
|
|
260
|
-
let
|
|
261
|
-
if (
|
|
262
|
-
if (!
|
|
263
|
-
if (
|
|
272
|
+
let Wn = y(pt);
|
|
273
|
+
if (Wn.current = pt, !E) return null;
|
|
274
|
+
if (!W) {
|
|
275
|
+
if (On && !q || Ln || !G) return null;
|
|
264
276
|
if (q) {
|
|
265
|
-
if (
|
|
266
|
-
let
|
|
267
|
-
...
|
|
268
|
-
className:
|
|
277
|
+
if (dn) return null;
|
|
278
|
+
let t = he(q, H, E.bankName?.trim() || T.fallbackBankName, T.applicationStatus), n = /* @__PURE__ */ x(de, {
|
|
279
|
+
...t,
|
|
280
|
+
className: "ttw:max-w-2xl",
|
|
269
281
|
testIds: {
|
|
270
|
-
root:
|
|
271
|
-
chip:
|
|
282
|
+
root: p.statusCard,
|
|
283
|
+
chip: p.statusCardChip
|
|
272
284
|
},
|
|
273
|
-
action:
|
|
285
|
+
action: dt ? /* @__PURE__ */ x(e, {
|
|
274
286
|
variant: "outline",
|
|
275
|
-
onClick: J ? () =>
|
|
276
|
-
"data-testid":
|
|
277
|
-
children:
|
|
287
|
+
onClick: J ? () => Pn("requested") : un.refetch,
|
|
288
|
+
"data-testid": p.statusCardCheckAgain,
|
|
289
|
+
children: T.applicationStatus.checkAgain
|
|
278
290
|
}) : void 0
|
|
279
291
|
});
|
|
280
|
-
return
|
|
292
|
+
return /* @__PURE__ */ x("div", {
|
|
281
293
|
className: "ttw:grid ttw:h-full ttw:w-full ttw:place-items-center ttw:overflow-auto ttw:bg-background ttw:p-6",
|
|
282
|
-
children:
|
|
283
|
-
}) : /* @__PURE__ */ b(t, {
|
|
284
|
-
open: E,
|
|
285
|
-
onOpenChange: D,
|
|
286
|
-
children: /* @__PURE__ */ $e(n, {
|
|
287
|
-
showCloseButton: !0,
|
|
288
|
-
closeButtonTestId: m.statusCardClose,
|
|
289
|
-
labels: { close: w.applicationStatus.close },
|
|
290
|
-
className: "ttw:max-h-[90vh] ttw:w-[720px] ttw:max-w-[calc(100vw-2rem)] ttw:gap-0 ttw:overflow-y-auto ttw:rounded-2xl ttw:border-0 ttw:p-0",
|
|
291
|
-
children: [/* @__PURE__ */ b(r, {
|
|
292
|
-
className: "ttw:sr-only",
|
|
293
|
-
children: w.modalTitle
|
|
294
|
-
}), o]
|
|
295
|
-
})
|
|
294
|
+
children: n
|
|
296
295
|
});
|
|
297
296
|
}
|
|
298
297
|
}
|
|
299
|
-
let X =
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
298
|
+
let X = k.companyStructure === "SOLE_PROPRIETORSHIP", Gn = [
|
|
299
|
+
T.stepIndicator.personal,
|
|
300
|
+
T.stepIndicator.business,
|
|
301
|
+
T.stepIndicator.review,
|
|
302
|
+
T.stepIndicator.terms
|
|
303
|
+
], Kn = L !== null && I !== null && Mt !== null, qn = D === C.personal ? L !== null : D === C.business ? I !== null && Mt !== null : D === C.review ? Kn : Kn && Se(k), Z = tn.isPending || B.isPending || nn.isPending || rn.isPending || Zt, Jn = () => {
|
|
304
|
+
A((e) => e.isAuthorized === null && !e.isCheckboxChecked ? e : {
|
|
305
|
+
...e,
|
|
306
|
+
isAuthorized: null,
|
|
307
|
+
isCheckboxChecked: !1
|
|
308
|
+
});
|
|
309
|
+
}, Yn = () => {
|
|
310
|
+
z(null), Jn(), O(C.personal);
|
|
311
|
+
}, Xn = () => {
|
|
312
|
+
z(null), Jn(), O(C.business);
|
|
313
|
+
}, Zn = () => {
|
|
314
|
+
z(null), D === C.review && Jn(), F && N(tt(M, F)), O((e) => e === C.personal ? e : e - 1);
|
|
305
315
|
}, Q = {
|
|
306
|
-
business:
|
|
307
|
-
personal:
|
|
308
|
-
owners:
|
|
309
|
-
},
|
|
310
|
-
|
|
311
|
-
personal: (e) => L.ssn && e.ssn === L.ssn ? it(e) : e,
|
|
312
|
-
owners: (e) => e.map((e) => e.id && x(e.ssn) ? it(e) : e)
|
|
313
|
-
}, tr = () => jt((e) => ({
|
|
314
|
-
business: $.business(e.business),
|
|
315
|
-
personal: $.personal(e.personal),
|
|
316
|
-
owners: $.owners(e.owners)
|
|
317
|
-
})), nr = () => {
|
|
318
|
-
Z || (er ? Bt(!0) : (kt($.business), At($.personal), M($.owners), tr(), D(!1)));
|
|
319
|
-
}, rr = (e) => {
|
|
320
|
-
e ? D(!0) : nr();
|
|
321
|
-
}, ir = nr, ar = async (e) => {
|
|
322
|
-
cn(!0), D(!0);
|
|
316
|
+
business: m(k) !== m(P.business),
|
|
317
|
+
personal: m(j) !== m(P.personal),
|
|
318
|
+
owners: m(nt(k.companyStructure === "SOLE_PROPRIETORSHIP" ? Qe : tt(M, F))) !== m(nt(P.owners))
|
|
319
|
+
}, Qn = async (e) => {
|
|
320
|
+
Qt(!0);
|
|
323
321
|
let t = new AbortController();
|
|
324
|
-
|
|
322
|
+
vn.current = t;
|
|
325
323
|
let n = !1;
|
|
326
324
|
try {
|
|
327
|
-
let r = await
|
|
325
|
+
let r = await nn.mutateAsync({ path: { id: e } });
|
|
328
326
|
if (t.signal.aborted) return;
|
|
329
|
-
if (!r.id) throw Error(
|
|
330
|
-
if (n = !0, (await
|
|
331
|
-
let e =
|
|
332
|
-
if (e === void 0 && (e = (await
|
|
327
|
+
if (!r.id) throw Error(T.submitFailedError);
|
|
328
|
+
if (n = !0, (await an(e, { signal: t.signal })).status === "complete") {
|
|
329
|
+
let e = sn;
|
|
330
|
+
if (e === void 0 && (e = (await cn()).data), t.signal.aborted) return;
|
|
333
331
|
if (e !== void 0) try {
|
|
334
|
-
await
|
|
332
|
+
await ln({ displayedVersion: a(e)?.disclosureId ?? null });
|
|
335
333
|
} catch {}
|
|
336
334
|
if (t.signal.aborted) return;
|
|
337
|
-
|
|
338
|
-
} else
|
|
335
|
+
en("success"), yt(), vt();
|
|
336
|
+
} else en("pending");
|
|
339
337
|
} catch (e) {
|
|
340
338
|
if (e instanceof DOMException && e.name === "AbortError") return;
|
|
341
339
|
if (!n) throw e;
|
|
342
|
-
|
|
340
|
+
en("pending");
|
|
343
341
|
} finally {
|
|
344
|
-
|
|
342
|
+
vn.current = null, Qt(!1);
|
|
345
343
|
}
|
|
346
|
-
},
|
|
347
|
-
|
|
348
|
-
},
|
|
349
|
-
|
|
350
|
-
},
|
|
351
|
-
|
|
352
|
-
},
|
|
353
|
-
|
|
354
|
-
},
|
|
355
|
-
let t =
|
|
356
|
-
return
|
|
357
|
-
},
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
344
|
+
}, $n = ({ evenWithoutMarker: e = !1 } = {}) => {
|
|
345
|
+
A((t) => (t.taxIdOnFileLast4 || e) && S(t.taxId) ? $e(t) : t);
|
|
346
|
+
}, er = ({ evenWithoutMarker: e = !1 } = {}) => {
|
|
347
|
+
bt((t) => (t.ssnOnFileLast4 || e) && S(t.ssn) ? et(t) : t);
|
|
348
|
+
}, tr = ({ evenWithoutMarker: e = !1 } = {}) => {
|
|
349
|
+
N((t) => t.map((t) => (t.ssnOnFileLast4 || e && t.id) && S(t.ssn) ? et(t) : t));
|
|
350
|
+
}, nr = () => {
|
|
351
|
+
N((e) => e.map(Fe));
|
|
352
|
+
}, rr = async (e) => {
|
|
353
|
+
let t = Wn.current, n = await tn.mutateAsync({ body: Ne(e, j) });
|
|
354
|
+
return Pt(n.id), Bt(t), n.clientSecret && on(n.id, n.clientSecret), n.id;
|
|
355
|
+
}, ir = async () => {
|
|
356
|
+
if (D === C.personal) {
|
|
357
|
+
if (!L) return null;
|
|
358
|
+
let e = P.business.companyStructure === "SOLE_PROPRIETORSHIP", t = R;
|
|
359
|
+
return t ? await B.mutateAsync({
|
|
360
|
+
path: { id: t },
|
|
361
|
+
body: h({
|
|
362
|
+
applicant: L,
|
|
363
|
+
isSoleProprietor: e
|
|
364
|
+
})
|
|
365
|
+
}) : t = await rr(Oe({
|
|
366
|
+
applicant: L,
|
|
367
|
+
isSoleProprietor: e
|
|
368
|
+
})), Lt({ ssn: L.ssn }), er(), wt(["personal"]), t;
|
|
369
|
+
}
|
|
370
|
+
if (D === C.business) {
|
|
371
|
+
if (!L || !I || !Mt) return null;
|
|
372
|
+
let e = {
|
|
373
|
+
businessDetails: I,
|
|
374
|
+
applicant: L,
|
|
375
|
+
businessOwners: Mt
|
|
376
|
+
}, t = R;
|
|
377
|
+
return t ? await B.mutateAsync({
|
|
378
|
+
path: { id: t },
|
|
379
|
+
body: h(e)
|
|
380
|
+
}) : t = await rr(h(e)), Lt({
|
|
381
|
+
taxId: I.taxId,
|
|
382
|
+
taxIdStructure: I.companyStructure,
|
|
383
|
+
ssn: L.ssn
|
|
384
|
+
}), $n(), er(), X ? nr() : tr(), wt([
|
|
385
|
+
"business",
|
|
386
|
+
"personal",
|
|
387
|
+
"owners"
|
|
388
|
+
], { ownersCleared: X }), t;
|
|
389
|
+
}
|
|
390
|
+
return D === C.review ? Kn ? R : null : !R || !Se(k) ? null : (await B.mutateAsync({
|
|
391
|
+
path: { id: R },
|
|
392
|
+
body: h({ consent: {
|
|
393
|
+
isLegallyAuthorized: !0,
|
|
394
|
+
hasAcceptedDisclosures: !0
|
|
395
|
+
} })
|
|
396
|
+
}), wt(["business"]), R);
|
|
397
|
+
}, ar = async () => {
|
|
398
|
+
if (z(null), !qn) {
|
|
399
|
+
Ut(D), Gt((e) => e + 1);
|
|
400
|
+
return;
|
|
375
401
|
}
|
|
376
|
-
return O === 1 ? !F || !P || !I ? null : (await z.mutateAsync({
|
|
377
|
-
path: { id: I },
|
|
378
|
-
body: {
|
|
379
|
-
...Ae({
|
|
380
|
-
businessDetails: P,
|
|
381
|
-
applicant: F,
|
|
382
|
-
carryConsent: !Jt
|
|
383
|
-
}),
|
|
384
|
-
...t
|
|
385
|
-
}
|
|
386
|
-
}), Zt({
|
|
387
|
-
taxId: P.taxId,
|
|
388
|
-
taxIdStructure: P.companyStructure,
|
|
389
|
-
ssn: F.ssn
|
|
390
|
-
}), or(), sr(), Pt(["business", "personal"], { owners: X ? "cleared" : t.businessOwners ? "restored" : "none" }), I) : O === 2 ? !Gt || !I ? null : (await z.mutateAsync({
|
|
391
|
-
path: { id: I },
|
|
392
|
-
body: Ae({ businessOwners: Gt })
|
|
393
|
-
}), cr(), Pt(["owners"]), I) : null;
|
|
394
|
-
}, fr = async () => {
|
|
395
|
-
R(null);
|
|
396
402
|
let e;
|
|
397
403
|
try {
|
|
398
|
-
e = await
|
|
404
|
+
e = await ir();
|
|
399
405
|
} catch {
|
|
400
|
-
|
|
406
|
+
z(T.genericRetryError);
|
|
401
407
|
return;
|
|
402
408
|
}
|
|
403
409
|
if (e !== null) {
|
|
404
|
-
if (
|
|
405
|
-
await
|
|
410
|
+
if (Ut(null), D === C.terms) try {
|
|
411
|
+
await Qn(e);
|
|
406
412
|
} catch {
|
|
407
|
-
|
|
413
|
+
z(T.submitFailedError);
|
|
408
414
|
}
|
|
409
|
-
else
|
|
415
|
+
else O(D + 1);
|
|
410
416
|
}
|
|
411
|
-
},
|
|
412
|
-
|
|
417
|
+
}, or = async () => {
|
|
418
|
+
z(null), Jt(!0);
|
|
413
419
|
try {
|
|
414
|
-
if (await
|
|
415
|
-
|
|
420
|
+
if (await ir() === null) return;
|
|
421
|
+
er({ evenWithoutMarker: !0 }), D >= C.business && ($n({ evenWithoutMarker: !0 }), tr({ evenWithoutMarker: !0 })), n.success(T.applicationSavedToast);
|
|
416
422
|
} catch {
|
|
417
|
-
|
|
423
|
+
n.error(T.genericRetryError);
|
|
418
424
|
} finally {
|
|
419
|
-
|
|
425
|
+
Jt(!1);
|
|
420
426
|
}
|
|
421
|
-
},
|
|
422
|
-
let e =
|
|
427
|
+
}, sr = async () => {
|
|
428
|
+
let e = tt(M, F), t = Me({
|
|
423
429
|
businessDetails: k,
|
|
424
|
-
applicant:
|
|
430
|
+
applicant: j,
|
|
425
431
|
businessOwners: e,
|
|
426
|
-
savedBusinessDetails:
|
|
427
|
-
savedOwners:
|
|
432
|
+
savedBusinessDetails: P.business,
|
|
433
|
+
savedOwners: P.owners,
|
|
428
434
|
dirty: Q
|
|
429
|
-
}),
|
|
430
|
-
|
|
435
|
+
}), r = Q;
|
|
436
|
+
kt(!0);
|
|
431
437
|
try {
|
|
432
438
|
if (!t) {
|
|
433
|
-
|
|
439
|
+
n.error(T.saveDraftNothingValidError);
|
|
434
440
|
return;
|
|
435
441
|
}
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
path: { id: I },
|
|
442
|
+
R ? await B.mutateAsync({
|
|
443
|
+
path: { id: R },
|
|
439
444
|
body: t
|
|
440
|
-
}) : await
|
|
445
|
+
}) : await rr(je(t)), F && N(e), n.success(T.applicationSavedToast);
|
|
441
446
|
let i = t;
|
|
442
|
-
|
|
447
|
+
Lt({
|
|
443
448
|
taxId: i.businessDetails?.taxId?.value,
|
|
444
449
|
taxIdStructure: k.companyStructure,
|
|
445
450
|
ssn: i.applicant?.personalIdentificationNumber?.value
|
|
446
|
-
}), i.businessDetails?.taxId !== void 0 &&
|
|
447
|
-
let
|
|
448
|
-
|
|
451
|
+
}), i.businessDetails?.taxId !== void 0 && $n({ evenWithoutMarker: !0 }), i.applicant?.personalIdentificationNumber !== void 0 && er({ evenWithoutMarker: !0 }), Array.isArray(i.businessOwners) && tr({ evenWithoutMarker: !0 }), i.businessOwners === null && e.length > 0 && nr();
|
|
452
|
+
let a = Array.isArray(i.businessOwners) ? "list" : i.businessOwners === null ? "cleared" : "none";
|
|
453
|
+
Ct({ next: (e, t) => Ae({
|
|
449
454
|
current: e,
|
|
450
455
|
saved: t,
|
|
451
|
-
dirty:
|
|
452
|
-
ownersWrite:
|
|
453
|
-
}) }),
|
|
456
|
+
dirty: r,
|
|
457
|
+
ownersWrite: a
|
|
458
|
+
}) }), Tt(null), Dt((e) => e + 1);
|
|
454
459
|
} catch {
|
|
455
|
-
|
|
460
|
+
n.error(T.genericRetryError);
|
|
456
461
|
} finally {
|
|
457
|
-
|
|
462
|
+
kt(!1);
|
|
458
463
|
}
|
|
459
|
-
},
|
|
460
|
-
|
|
461
|
-
}, gr = async () => {
|
|
462
|
-
if (I !== null) {
|
|
464
|
+
}, cr = async () => {
|
|
465
|
+
if (R !== null) {
|
|
463
466
|
try {
|
|
464
|
-
await
|
|
467
|
+
await rn.mutateAsync({ path: { id: R } });
|
|
465
468
|
} catch {
|
|
466
|
-
|
|
469
|
+
n.error(T.deleteFailedError);
|
|
467
470
|
return;
|
|
468
471
|
}
|
|
469
|
-
|
|
472
|
+
n.success(T.applicationDeletedToast);
|
|
470
473
|
}
|
|
471
|
-
|
|
472
|
-
},
|
|
473
|
-
if (
|
|
474
|
-
let e =
|
|
474
|
+
Xt(!1), st?.();
|
|
475
|
+
}, lr = at(D, T), ur = E.bankName?.trim() || T.fallbackBankName, dr = ue(T.shellFdicDisclaimer, ur);
|
|
476
|
+
if (W) {
|
|
477
|
+
let e = I?.companyLegalName ?? "", t = E.bankName?.trim() || T.fallbackBankName, n = $t ?? "pending", r = n === "success", i = {
|
|
475
478
|
...f.result,
|
|
476
|
-
...
|
|
477
|
-
},
|
|
479
|
+
...T.result
|
|
480
|
+
}, a = /* @__PURE__ */ x(fe, {
|
|
478
481
|
testIds: {
|
|
479
|
-
processing:
|
|
480
|
-
dashboardButton:
|
|
482
|
+
processing: p.resultProcessing,
|
|
483
|
+
dashboardButton: p.resultDashboardButton
|
|
481
484
|
},
|
|
482
|
-
status:
|
|
483
|
-
isLoading:
|
|
484
|
-
loadingMessage:
|
|
485
|
-
headingLine1:
|
|
485
|
+
status: n,
|
|
486
|
+
isLoading: Zt,
|
|
487
|
+
loadingMessage: i.loadingMessage,
|
|
488
|
+
headingLine1: r ? i.successHeadingLine1 : i.pendingHeadingLine1,
|
|
486
489
|
headingLine2: `${e}!`,
|
|
487
|
-
body:
|
|
488
|
-
followUpEmail:
|
|
489
|
-
emailBoxLead:
|
|
490
|
-
navigateToDashboardLabel:
|
|
491
|
-
bankLogoSrc:
|
|
492
|
-
bankLogoAlt:
|
|
493
|
-
fdicDisclaimer:
|
|
494
|
-
onNavigateToDashboard:
|
|
490
|
+
body: r ? i.successBody : i.pendingBody,
|
|
491
|
+
followUpEmail: L?.workEmail ?? "",
|
|
492
|
+
emailBoxLead: i.pendingEmailBoxLead,
|
|
493
|
+
navigateToDashboardLabel: i.navigateToDashboard,
|
|
494
|
+
bankLogoSrc: lt,
|
|
495
|
+
bankLogoAlt: ue(i.bankLogoAlt, t),
|
|
496
|
+
fdicDisclaimer: ue(i.fdicDisclaimer, t),
|
|
497
|
+
onNavigateToDashboard: xe
|
|
495
498
|
});
|
|
496
|
-
return
|
|
499
|
+
return /* @__PURE__ */ x("div", {
|
|
497
500
|
className: "ttw:grid ttw:h-full ttw:w-full ttw:grid-rows-[1fr] ttw:place-items-center ttw:gap-0 ttw:overflow-auto ttw:bg-background",
|
|
498
|
-
children:
|
|
499
|
-
}) : /* @__PURE__ */ b(t, {
|
|
500
|
-
open: E,
|
|
501
|
-
onOpenChange: D,
|
|
502
|
-
children: /* @__PURE__ */ $e(n, {
|
|
503
|
-
className: "ttw:grid ttw:max-h-[95vh] ttw:w-[720px] ttw:max-w-[calc(100vw-2rem)] ttw:grid-rows-[1fr] ttw:gap-0 ttw:overflow-hidden ttw:rounded-2xl ttw:p-0",
|
|
504
|
-
children: [/* @__PURE__ */ b(r, {
|
|
505
|
-
className: "ttw:sr-only",
|
|
506
|
-
children: w.modalTitle
|
|
507
|
-
}), c]
|
|
508
|
-
})
|
|
501
|
+
children: a
|
|
509
502
|
});
|
|
510
503
|
}
|
|
511
|
-
let
|
|
512
|
-
return /* @__PURE__ */
|
|
513
|
-
/* @__PURE__ */
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
isNextLoading: Z && !nn,
|
|
531
|
-
isSaveAndCloseDisabled: xr,
|
|
532
|
-
isSaveAndCloseLoading: nn,
|
|
533
|
-
nextLabel: br,
|
|
504
|
+
let fr = D === C.personal ? T.nextToStep.business : D === C.business ? T.nextToStep.review : D === C.review ? T.nextToStep.terms : T.submit, pr = D === C.business ? T.backToStepAriaLabel.personal : D === C.review ? T.backToStepAriaLabel.business : D === C.terms ? T.backToStepAriaLabel.review : void 0, mr = Z, $ = Ht === D, hr = Q.business || Q.personal || Q.owners, gr = qn ? or : sr, _r = Z || Ot || !qn && !hr, vr = `${j.firstName} ${j.lastName}`.trim(), yr = X ? 100 : L?.ownsOver25Percent === !0 ? L.ownershipPercentage ?? 0 : 0, br = X ? Qe : M, xr = Ht === C.business && D === C.business && br.some((e) => !e.reviewed) ? T.ownersNeedReviewError : null;
|
|
505
|
+
return /* @__PURE__ */ Ye(Je, { children: [
|
|
506
|
+
/* @__PURE__ */ x(te, {
|
|
507
|
+
title: lr.title,
|
|
508
|
+
subtitle: lr.subtitle,
|
|
509
|
+
stepLabels: Gn,
|
|
510
|
+
activeStep: D,
|
|
511
|
+
disclaimerText: dr,
|
|
512
|
+
onBack: Zn,
|
|
513
|
+
showBackButton: D !== C.personal,
|
|
514
|
+
backAriaLabel: pr,
|
|
515
|
+
onNext: ar,
|
|
516
|
+
onSaveAndClose: gr,
|
|
517
|
+
onDelete: () => Xt(!0),
|
|
518
|
+
isNextDisabled: mr,
|
|
519
|
+
isNextLoading: Z && !qt,
|
|
520
|
+
isSaveAndCloseDisabled: _r,
|
|
521
|
+
isSaveAndCloseLoading: qt || Ot,
|
|
522
|
+
nextLabel: fr,
|
|
534
523
|
nextIcon: null,
|
|
535
|
-
|
|
524
|
+
nextTone: D === C.terms ? "success" : "primary",
|
|
525
|
+
isTitleVisuallyHidden: D === C.terms,
|
|
526
|
+
errorMessage: Vt,
|
|
536
527
|
labels: {
|
|
537
|
-
backButton:
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
deleteButton: w.deleteApplication
|
|
528
|
+
backButton: T.back,
|
|
529
|
+
saveAndCloseButton: T.saveAndClose,
|
|
530
|
+
deleteButton: T.deleteApplication
|
|
541
531
|
},
|
|
542
532
|
testIds: {
|
|
543
|
-
root:
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
delete: m.shellDelete,
|
|
549
|
-
next: m.shellNext,
|
|
533
|
+
root: p.shell,
|
|
534
|
+
back: p.shellBack,
|
|
535
|
+
saveAndClose: p.shellSaveAndClose,
|
|
536
|
+
delete: p.shellDelete,
|
|
537
|
+
next: p.shellNext,
|
|
550
538
|
scrollRegion: {
|
|
551
|
-
root:
|
|
552
|
-
fade:
|
|
553
|
-
hint:
|
|
539
|
+
root: p.shellScrollRegion,
|
|
540
|
+
fade: p.shellScrollFade,
|
|
541
|
+
hint: p.shellScrollHint
|
|
554
542
|
}
|
|
555
543
|
},
|
|
556
|
-
children:
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
544
|
+
children: /* @__PURE__ */ Ye("div", {
|
|
545
|
+
ref: Kt,
|
|
546
|
+
className: "ttw:contents",
|
|
547
|
+
children: [
|
|
548
|
+
D === C.personal ? /* @__PURE__ */ x("div", {
|
|
549
|
+
className: "ttw:max-w-2xl",
|
|
550
|
+
children: /* @__PURE__ */ x(we, {
|
|
551
|
+
value: j,
|
|
552
|
+
onValueChange: bt,
|
|
553
|
+
onSnapshotChange: jt,
|
|
554
|
+
stateOptions: xn,
|
|
555
|
+
isSubmitting: Z,
|
|
556
|
+
showAllErrors: $,
|
|
557
|
+
labels: T.personalDetails
|
|
558
|
+
}, "personal")
|
|
559
|
+
}) : null,
|
|
560
|
+
D === C.business ? /* @__PURE__ */ Ye("div", {
|
|
561
|
+
className: "ttw:flex ttw:max-w-2xl ttw:flex-col ttw:gap-10",
|
|
562
|
+
children: [
|
|
563
|
+
/* @__PURE__ */ x(Ce, {
|
|
564
|
+
value: k,
|
|
565
|
+
onValueChange: Rt,
|
|
566
|
+
onSnapshotChange: At,
|
|
567
|
+
naicsOptions: yn,
|
|
568
|
+
stateOptions: bn,
|
|
569
|
+
isSubmitting: Z,
|
|
570
|
+
showAllErrors: $,
|
|
571
|
+
labels: T.businessDetails
|
|
572
|
+
}, "business"),
|
|
573
|
+
/* @__PURE__ */ x(t, {}),
|
|
574
|
+
/* @__PURE__ */ x(De, {
|
|
575
|
+
owners: br,
|
|
576
|
+
onOwnersChange: N,
|
|
577
|
+
primaryOwnerName: vr,
|
|
578
|
+
primaryOwnerPercentage: yr,
|
|
579
|
+
stateOptions: Sn,
|
|
580
|
+
onSnapshotChange: Nt,
|
|
581
|
+
onPendingOwnerChange: Tt,
|
|
582
|
+
isSubmitting: Z,
|
|
583
|
+
showAllErrors: $,
|
|
584
|
+
revealErrorsAttempt: Wt,
|
|
585
|
+
reviewError: xr,
|
|
586
|
+
labels: T.additionalOwners
|
|
587
|
+
}, `${Et}-${X}`)
|
|
588
|
+
]
|
|
589
|
+
}) : null,
|
|
590
|
+
D === C.review ? /* @__PURE__ */ x(Te, {
|
|
591
|
+
personalDetails: j,
|
|
592
|
+
businessDetails: k,
|
|
593
|
+
additionalOwners: br,
|
|
594
|
+
primaryOwnerName: vr,
|
|
595
|
+
primaryOwnerPercentage: yr,
|
|
596
|
+
personalStateOptions: xn,
|
|
597
|
+
businessStateOptions: bn,
|
|
598
|
+
naicsOptions: yn,
|
|
599
|
+
onEditPersonal: Yn,
|
|
600
|
+
onEditBusiness: Xn,
|
|
601
|
+
ownersEditAriaLabel: T.reviewOwnersEditAriaLabel,
|
|
602
|
+
isSubmitting: Z,
|
|
603
|
+
labels: T
|
|
604
|
+
}) : null,
|
|
605
|
+
D === C.terms ? /* @__PURE__ */ x(Ee, {
|
|
606
|
+
value: k,
|
|
607
|
+
onValueChange: A,
|
|
608
|
+
isSubmitting: Z,
|
|
609
|
+
showAllErrors: $,
|
|
610
|
+
labels: T.businessDetails,
|
|
611
|
+
bankName: ur,
|
|
612
|
+
termsHref: mt,
|
|
613
|
+
privacyHref: ht,
|
|
614
|
+
electronicCommunicationHref: gt,
|
|
615
|
+
patriotActHref: _t
|
|
616
|
+
}) : null
|
|
617
|
+
]
|
|
618
|
+
})
|
|
605
619
|
}),
|
|
606
|
-
/* @__PURE__ */
|
|
607
|
-
open:
|
|
608
|
-
onConfirm:
|
|
609
|
-
onCancel: () =>
|
|
610
|
-
isDeleting:
|
|
620
|
+
/* @__PURE__ */ x(pe, {
|
|
621
|
+
open: Yt,
|
|
622
|
+
onConfirm: cr,
|
|
623
|
+
onCancel: () => Xt(!1),
|
|
624
|
+
isDeleting: rn.isPending,
|
|
611
625
|
labels: {
|
|
612
|
-
descriptionEmphasis:
|
|
613
|
-
...
|
|
626
|
+
descriptionEmphasis: T.saveAndClose,
|
|
627
|
+
...T.deleteApplicationDialog
|
|
614
628
|
},
|
|
615
629
|
testIds: {
|
|
616
|
-
root:
|
|
617
|
-
confirm:
|
|
618
|
-
cancel:
|
|
630
|
+
root: p.deleteDialog,
|
|
631
|
+
confirm: p.deleteDialogConfirm,
|
|
632
|
+
cancel: p.deleteDialogCancel
|
|
619
633
|
}
|
|
620
634
|
}),
|
|
621
|
-
/* @__PURE__ */
|
|
635
|
+
/* @__PURE__ */ x(ee, {})
|
|
622
636
|
] });
|
|
623
637
|
}
|
|
624
|
-
function
|
|
625
|
-
return /* @__PURE__ */
|
|
638
|
+
function st({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, uiFramework: o, errorFallback: s, onError: c, analytics: l, disclosuresAcceptance: u, providerLabels: ee, ...te }) {
|
|
639
|
+
return /* @__PURE__ */ x(ne, {
|
|
626
640
|
baseUrl: e,
|
|
627
641
|
widgetToken: t,
|
|
628
642
|
organizationId: n,
|
|
@@ -634,75 +648,74 @@ function ut({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, ga
|
|
|
634
648
|
onError: c,
|
|
635
649
|
analytics: l,
|
|
636
650
|
disclosuresAcceptance: u,
|
|
637
|
-
providerLabels:
|
|
638
|
-
widgetName:
|
|
639
|
-
children: /* @__PURE__ */
|
|
651
|
+
providerLabels: ee,
|
|
652
|
+
widgetName: g,
|
|
653
|
+
children: /* @__PURE__ */ x(ct, { ...te })
|
|
640
654
|
});
|
|
641
655
|
}
|
|
642
|
-
function
|
|
643
|
-
let { initResponse: t } =
|
|
644
|
-
r !==
|
|
645
|
-
let [l, u] =
|
|
646
|
-
return n !== l && (u(n), c((e) => e + 1)), /* @__PURE__ */
|
|
656
|
+
function ct(e) {
|
|
657
|
+
let { initResponse: t } = ie(), { client: n } = i(), r = t?.userId ?? null, [a, o] = b(r), [s, c] = b(0);
|
|
658
|
+
r !== a && (o(r), a !== null && r !== null && c((e) => e + 1));
|
|
659
|
+
let [l, u] = b(n);
|
|
660
|
+
return n !== l && (u(n), c((e) => e + 1)), /* @__PURE__ */ x(lt, { ...e }, s);
|
|
647
661
|
}
|
|
648
|
-
function
|
|
649
|
-
let { authEpoch: t } =
|
|
650
|
-
|
|
651
|
-
}, []),
|
|
652
|
-
|
|
662
|
+
function lt(e) {
|
|
663
|
+
let { authEpoch: t } = i(), { ownApplicationIds: n } = We(), [r, a] = b(null), [o, s] = b(0), c = Ke(() => {
|
|
664
|
+
a(null), s((e) => e + 1);
|
|
665
|
+
}, []), l = Ke(() => {
|
|
666
|
+
a(null), s((e) => e + 1);
|
|
653
667
|
}, []);
|
|
654
|
-
return r !== null && t !== r.authEpoch && n !== null && !n.includes(r.applicationId) && (
|
|
668
|
+
return r !== null && t !== r.authEpoch && n !== null && !n.includes(r.applicationId) && (a(null), s((e) => e + 1)), /* @__PURE__ */ x(Le, { children: /* @__PURE__ */ x(dt, {
|
|
655
669
|
...e,
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
}, a) }, a);
|
|
670
|
+
onEditableDraftChange: a,
|
|
671
|
+
onApplicationDeleted: l,
|
|
672
|
+
onNoticeReplacedByForm: c
|
|
673
|
+
}, o) }, o);
|
|
661
674
|
}
|
|
662
|
-
var
|
|
663
|
-
function
|
|
664
|
-
let { authEpoch: t } =
|
|
665
|
-
if (
|
|
666
|
-
if (l?.canRender !== !0 &&
|
|
675
|
+
var ut = { canRender: !1 };
|
|
676
|
+
function dt(e) {
|
|
677
|
+
let { authEpoch: t } = i(), { applicationId: n, clientSecret: r, isResolved: a } = We(), { application: o, isResolved: s, isUnavailable: c } = Ge(n, r), [l, u] = b(null);
|
|
678
|
+
if (_(() => {
|
|
679
|
+
if (l?.canRender !== !0 && a && s) {
|
|
667
680
|
if (c) {
|
|
668
|
-
u(
|
|
681
|
+
u(ut);
|
|
669
682
|
return;
|
|
670
683
|
}
|
|
671
|
-
if (
|
|
672
|
-
u(
|
|
684
|
+
if (o !== null && o.status !== void 0 && o.status !== Ze) {
|
|
685
|
+
u(ut);
|
|
673
686
|
return;
|
|
674
687
|
}
|
|
675
688
|
u({
|
|
676
689
|
canRender: !0,
|
|
677
|
-
applicationId:
|
|
690
|
+
applicationId: o === null ? null : n,
|
|
678
691
|
authEpoch: t,
|
|
679
|
-
prefill:
|
|
692
|
+
prefill: ke(o)
|
|
680
693
|
});
|
|
681
694
|
}
|
|
682
695
|
}, [
|
|
683
696
|
t,
|
|
684
697
|
l,
|
|
685
|
-
i,
|
|
686
|
-
o,
|
|
687
|
-
c,
|
|
688
698
|
a,
|
|
699
|
+
s,
|
|
700
|
+
c,
|
|
701
|
+
o,
|
|
689
702
|
n
|
|
690
703
|
]), l === null || !l.canRender) return null;
|
|
691
|
-
let { applicationId:
|
|
692
|
-
return /* @__PURE__ */
|
|
704
|
+
let { applicationId: ee, authEpoch: te, prefill: d } = l;
|
|
705
|
+
return /* @__PURE__ */ x(ot, {
|
|
693
706
|
...e,
|
|
694
|
-
initialApplicationId:
|
|
695
|
-
initialBoundAuthEpoch:
|
|
707
|
+
initialApplicationId: ee,
|
|
708
|
+
initialBoundAuthEpoch: te,
|
|
696
709
|
initialBusinessDetails: {
|
|
697
|
-
...
|
|
698
|
-
...
|
|
710
|
+
...Ie(e.initialBusinessDetails),
|
|
711
|
+
...d?.businessDetails
|
|
699
712
|
},
|
|
700
713
|
initialPersonalDetails: {
|
|
701
|
-
...
|
|
702
|
-
...
|
|
714
|
+
...Ie(e.initialPersonalDetails),
|
|
715
|
+
...d?.personalDetails
|
|
703
716
|
},
|
|
704
|
-
initialAdditionalOwners:
|
|
717
|
+
initialAdditionalOwners: d?.additionalOwners ?? e.initialAdditionalOwners?.map(Fe)
|
|
705
718
|
});
|
|
706
719
|
}
|
|
707
720
|
//#endregion
|
|
708
|
-
export {
|
|
721
|
+
export { st as BankAccountOnboardingWidget, st as default, c as OnboardingSuppressionReason };
|