@tesouro/embedded-components-react 0.5.182 → 0.5.183
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.css +6 -0
- package/dist/index.d.ts +30 -1
- package/dist/lib/BankAccountOnboardingWidget.d.ts +30 -1
- package/dist/lib/WidgetSuite.d.ts +30 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index10.js +3 -32
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index11.js +24 -33
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +44 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index8.js +13 -36
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index9.js +43 -3
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index12.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index23.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js +339 -301
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index.js +3 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index27.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index28.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +34 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +188 -181
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +162 -154
- 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/lib/OnboardingShell/OnboardingShell.js +67 -55
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/labels.js +1 -0
- package/package.json +1 -1
|
@@ -22,33 +22,35 @@ import "../../../shared/feature/dist/index.js";
|
|
|
22
22
|
import { identifierLast4 as ae, isIdentifierEnteredOrStored as oe } from "./index7.js";
|
|
23
23
|
import { bankAccountOnboardingTestIds as p } from "./index12.js";
|
|
24
24
|
import { ADDITIONAL_OWNERS_LABELS_EN as m } from "../../ui/dist/index5.js";
|
|
25
|
-
import { interpolateBankName as
|
|
26
|
-
import { ResultStep as
|
|
27
|
-
import { UnsavedApplicationDialog as
|
|
25
|
+
import { interpolateBankName as se } from "../../ui/dist/index7.js";
|
|
26
|
+
import { ResultStep as ce } from "../../ui/dist/index12.js";
|
|
27
|
+
import { UnsavedApplicationDialog as le } from "../../ui/dist/index26.js";
|
|
28
|
+
import { DeleteApplicationDialog as ue } from "../../ui/dist/index28.js";
|
|
28
29
|
import "../../ui/dist/index.js";
|
|
29
|
-
import { BusinessDetailsStep as
|
|
30
|
-
import { PersonalDetailsStep as
|
|
31
|
-
import { valuesKey as
|
|
32
|
-
import { AdditionalOwnersStep as
|
|
33
|
-
import { buildCreateApplicationBody as
|
|
34
|
-
import { buildOnboardingPrefill as
|
|
35
|
-
import { acceptDraftedValues as
|
|
36
|
-
import { OnboardingAnalyticsEvent as
|
|
37
|
-
import { DEFAULT_LABELS as
|
|
38
|
-
import { withoutResumeOnlyOwnerFields as
|
|
39
|
-
import { ApplicationClientSecretProvider as
|
|
40
|
-
import { useCreateApplication as
|
|
41
|
-
import { useUpdateApplication as
|
|
42
|
-
import { useSubmitApplication as
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
30
|
+
import { BusinessDetailsStep as de } from "./index13.js";
|
|
31
|
+
import { PersonalDetailsStep as fe } from "./index15.js";
|
|
32
|
+
import { valuesKey as h } from "./index17.js";
|
|
33
|
+
import { AdditionalOwnersStep as pe } from "./index18.js";
|
|
34
|
+
import { buildCreateApplicationBody as me, buildUpdateApplicationBody as he } from "./index19.js";
|
|
35
|
+
import { buildOnboardingPrefill as ge } from "./index20.js";
|
|
36
|
+
import { acceptDraftedValues as _e, asCreateBody as ve, buildDraftApplicationBody as ye, draftOwners as be } from "./index21.js";
|
|
37
|
+
import { OnboardingAnalyticsEvent as xe, WIDGET_NAME as Se } from "./index22.js";
|
|
38
|
+
import { DEFAULT_LABELS as g } from "./index23.js";
|
|
39
|
+
import { withoutResumeOnlyOwnerFields as Ce, withoutStoredIdentifierMarkers as we } from "./index24.js";
|
|
40
|
+
import { ApplicationClientSecretProvider as Te, useApplicationClientSecret as Ee } from "../../data-access/dist/index3.js";
|
|
41
|
+
import { useCreateApplication as De } from "../../data-access/dist/index5.js";
|
|
42
|
+
import { useUpdateApplication as Oe } from "../../data-access/dist/index6.js";
|
|
43
|
+
import { useSubmitApplication as ke } from "../../data-access/dist/index7.js";
|
|
44
|
+
import { useDeleteApplication as Ae } from "../../data-access/dist/index8.js";
|
|
45
|
+
import { usePollApplicationCompletion as je } from "../../data-access/dist/index9.js";
|
|
46
|
+
import { useResumableBankAccountApplication as Me } from "../../data-access/dist/index11.js";
|
|
47
|
+
import { useStartedBankAccountApplication as Ne } from "../../data-access/dist/index12.js";
|
|
46
48
|
import "../../data-access/dist/index.js";
|
|
47
|
-
import { useCallback as
|
|
48
|
-
import { Fragment as
|
|
49
|
+
import { useCallback as Pe, useEffect as _, useMemo as v, useRef as Fe, useState as y } from "react";
|
|
50
|
+
import { Fragment as Ie, jsx as b, jsxs as Le } from "react/jsx-runtime";
|
|
49
51
|
//#region ../../libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index25.js
|
|
50
|
-
var
|
|
51
|
-
function
|
|
52
|
+
var Re = "DRAFT", ze = [], x = (e) => oe(e, void 0);
|
|
53
|
+
function Be(e) {
|
|
52
54
|
return {
|
|
53
55
|
...e,
|
|
54
56
|
taxId: "",
|
|
@@ -56,17 +58,17 @@ function Ie(e) {
|
|
|
56
58
|
taxIdOnFileStructure: e.companyStructure === "" ? void 0 : e.companyStructure
|
|
57
59
|
};
|
|
58
60
|
}
|
|
59
|
-
function
|
|
61
|
+
function S(e) {
|
|
60
62
|
return {
|
|
61
63
|
...e,
|
|
62
64
|
ssn: "",
|
|
63
65
|
ssnOnFileLast4: ae(e.ssn)
|
|
64
66
|
};
|
|
65
67
|
}
|
|
66
|
-
function
|
|
68
|
+
function Ve(e, t) {
|
|
67
69
|
return t ? t.index === null ? [...e, t.owner] : e.map((e, n) => n === t.index ? t.owner : e) : e;
|
|
68
70
|
}
|
|
69
|
-
var
|
|
71
|
+
var He = {
|
|
70
72
|
companyLegalName: "",
|
|
71
73
|
companyDbaName: "",
|
|
72
74
|
businessAddress: "",
|
|
@@ -80,7 +82,7 @@ var Re = {
|
|
|
80
82
|
naicsCode: "",
|
|
81
83
|
isAuthorized: null,
|
|
82
84
|
isCheckboxChecked: !1
|
|
83
|
-
},
|
|
85
|
+
}, Ue = {
|
|
84
86
|
firstName: "",
|
|
85
87
|
lastName: "",
|
|
86
88
|
dateOfBirth: void 0,
|
|
@@ -94,7 +96,7 @@ var Re = {
|
|
|
94
96
|
ownsOver25Percent: null,
|
|
95
97
|
ownershipPercentage: null
|
|
96
98
|
};
|
|
97
|
-
function
|
|
99
|
+
function We(e, t) {
|
|
98
100
|
if (e === 0) return {
|
|
99
101
|
title: t.businessReviewTitle,
|
|
100
102
|
subtitle: t.businessReviewSubtitle
|
|
@@ -112,59 +114,60 @@ function Be(e, t) {
|
|
|
112
114
|
subtitle: n.subheading
|
|
113
115
|
};
|
|
114
116
|
}
|
|
115
|
-
function
|
|
116
|
-
let
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}, [
|
|
120
|
-
let
|
|
121
|
-
...
|
|
117
|
+
function Ge({ onEmbeddedOnboardingCompletedSuccessfully: d, onNavigateToDashboard: oe, labels: m, initialBusinessDetails: ge, initialPersonalDetails: Se, initialAdditionalOwners: we, initialApplicationId: Te = null, initialBoundAuthEpoch: Me, onEditableDraftChange: Ne, onApplicationDeleted: Re, bankLogoSrc: Ge, disclosureLinks: Ke, open: qe, defaultOpen: Je, onOpenChange: C, isFullScreenInline: w = !1 }) {
|
|
118
|
+
let T = ee(), { authEpoch: Ye } = i();
|
|
119
|
+
_(() => {
|
|
120
|
+
T(xe.Mounted);
|
|
121
|
+
}, [T]);
|
|
122
|
+
let E = {
|
|
123
|
+
...g,
|
|
122
124
|
...m,
|
|
123
125
|
stepIndicator: {
|
|
124
|
-
...
|
|
126
|
+
...g.stepIndicator,
|
|
125
127
|
...m?.stepIndicator
|
|
126
128
|
},
|
|
127
129
|
businessDetails: m?.businessDetails ?? {},
|
|
128
130
|
personalDetails: m?.personalDetails ?? {},
|
|
129
131
|
additionalOwners: m?.additionalOwners ?? {},
|
|
130
132
|
result: {
|
|
131
|
-
...
|
|
133
|
+
...g.result,
|
|
132
134
|
...m?.result
|
|
133
135
|
},
|
|
134
|
-
unsavedApplicationDialog: m?.unsavedApplicationDialog ?? {}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
136
|
+
unsavedApplicationDialog: m?.unsavedApplicationDialog ?? {},
|
|
137
|
+
deleteApplicationDialog: m?.deleteApplicationDialog ?? {}
|
|
138
|
+
}, D = re().initResponse, { termsHref: Xe, privacyHref: Ze, electronicCommunicationHref: Qe, patriotActHref: $e } = Ke ?? {}, et = qe === void 0, [tt, nt] = y(() => Je ?? !1), rt = et ? tt : qe, it = Je ?? !1, O = Pe((e) => {
|
|
139
|
+
et && nt(e), C?.(e);
|
|
140
|
+
}, [C, et]), at = Pe(() => {
|
|
138
141
|
d();
|
|
139
|
-
}, [d]),
|
|
140
|
-
...
|
|
141
|
-
...
|
|
142
|
-
})), [
|
|
143
|
-
...
|
|
144
|
-
...
|
|
145
|
-
})), [
|
|
146
|
-
business:
|
|
147
|
-
personal:
|
|
148
|
-
owners:
|
|
149
|
-
})), [
|
|
150
|
-
|
|
151
|
-
if (!
|
|
142
|
+
}, [d]), ot = ne(), [k, st] = y(0), [A, j] = y(() => ({
|
|
143
|
+
...He,
|
|
144
|
+
...ge
|
|
145
|
+
})), [M, N] = y(() => ({
|
|
146
|
+
...Ue,
|
|
147
|
+
...Se
|
|
148
|
+
})), [P, F] = y(() => we ?? []), [I, ct] = y(() => ({
|
|
149
|
+
business: A,
|
|
150
|
+
personal: M,
|
|
151
|
+
owners: P
|
|
152
|
+
})), [lt, ut] = y(null);
|
|
153
|
+
_(() => {
|
|
154
|
+
if (!lt) return;
|
|
152
155
|
let e = {
|
|
153
|
-
business:
|
|
154
|
-
personal:
|
|
155
|
-
owners:
|
|
156
|
+
business: A,
|
|
157
|
+
personal: M,
|
|
158
|
+
owners: P
|
|
156
159
|
};
|
|
157
|
-
|
|
160
|
+
ct((t) => lt.next(e, t)), ut(null);
|
|
158
161
|
}, [
|
|
159
|
-
|
|
162
|
+
lt,
|
|
163
|
+
A,
|
|
160
164
|
M,
|
|
161
|
-
P
|
|
162
|
-
I
|
|
165
|
+
P
|
|
163
166
|
]);
|
|
164
|
-
let
|
|
167
|
+
let dt = (e, { owners: t = "none" } = {}) => ut({ next: (n, r) => ({
|
|
165
168
|
business: e.includes("business") ? n.business : r.business,
|
|
166
169
|
personal: e.includes("personal") ? n.personal : r.personal,
|
|
167
|
-
owners: t === "cleared" ?
|
|
170
|
+
owners: t === "cleared" ? ze : t === "restored" ? _e({
|
|
168
171
|
current: n,
|
|
169
172
|
saved: r,
|
|
170
173
|
dirty: {
|
|
@@ -174,264 +177,279 @@ function Ve({ onEmbeddedOnboardingCompletedSuccessfully: d, onNavigateToDashboar
|
|
|
174
177
|
},
|
|
175
178
|
ownersWrite: "list"
|
|
176
179
|
}).owners : e.includes("owners") ? n.owners : r.owners
|
|
177
|
-
}) }), [
|
|
180
|
+
}) }), [ft, pt] = y(null), [mt, ht] = y(0), [gt, L] = y(!1), [_t, vt] = y(!1), [R, yt] = y(null), [z, bt] = y(null), [xt, St] = y(null), [B, Ct] = y(Te), [wt, Tt] = y(!1), [V, Et] = y({}), Dt = (e) => Et((t) => ({
|
|
178
181
|
...t,
|
|
179
|
-
...e.taxId &&
|
|
182
|
+
...e.taxId && x(e.taxId) && e.taxIdStructure ? {
|
|
180
183
|
taxId: e.taxId,
|
|
181
184
|
taxIdStructure: e.taxIdStructure
|
|
182
185
|
} : {},
|
|
183
|
-
...e.ssn &&
|
|
184
|
-
})),
|
|
185
|
-
let { taxId: t, taxIdStructure: n } =
|
|
186
|
-
|
|
186
|
+
...e.ssn && x(e.ssn) ? { ssn: e.ssn } : {}
|
|
187
|
+
})), Ot = (e) => {
|
|
188
|
+
let { taxId: t, taxIdStructure: n } = V, r = t !== void 0 && n !== void 0 && e.companyStructure !== A.companyStructure && e.companyStructure !== "" && e.companyStructure === "SOLE_PROPRIETORSHIP" != (n === "SOLE_PROPRIETORSHIP");
|
|
189
|
+
j(r ? {
|
|
187
190
|
...e,
|
|
188
191
|
taxId: e.taxId === t ? "" : e.taxId,
|
|
189
192
|
taxIdOnFileLast4: ae(t),
|
|
190
193
|
taxIdOnFileStructure: n
|
|
191
194
|
} : e);
|
|
192
|
-
}, [
|
|
193
|
-
|
|
194
|
-
let
|
|
195
|
-
|
|
196
|
-
|
|
195
|
+
}, [kt, At] = y(Me ?? Ye), [jt, H] = y(null), [Mt, Nt] = y(!1), [Pt, U] = y(!1);
|
|
196
|
+
!w && !rt && Pt && U(!1);
|
|
197
|
+
let [Ft, It] = y(!1), [Lt, Rt] = y(null), zt = De(), W = Oe(), Bt = ke(), Vt = Ae(), Ht = je(), { setClientSecret: Ut } = Ee(), { data: Wt, refetch: Gt } = o(), { mutateAsync: Kt } = a(), qt = c(), Jt = Fe(null);
|
|
198
|
+
_(() => () => Jt.current?.abort(), []);
|
|
199
|
+
let Yt = v(() => ie(E.businessDetails.naicsTitles), [E.businessDetails.naicsTitles]), Xt = v(() => f(E.businessDetails.stateTitles), [E.businessDetails.stateTitles]), Zt = v(() => f(E.personalDetails.stateTitles), [E.personalDetails.stateTitles]), Qt = v(() => f(E.additionalOwners.stateTitles), [E.additionalOwners.stateTitles]), G = Ft || Lt !== null, $t = D?.status === "ACTIVE" || D?.status === "INACTIVE", en = D?.status === "INVITED", K = !!D && !G && ($t || en || qt.isSuppressed), q = K ? $t ? s.UserAlreadyOnboarded : en ? s.UserInvitedToOrganization : qt.reason : null;
|
|
200
|
+
_(() => {
|
|
201
|
+
K && q && (T(xe.Suppressed, { reason: q }), console.info(`[onboarding] not shown: ${q}`));
|
|
197
202
|
}, [
|
|
203
|
+
K,
|
|
198
204
|
q,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
authEpoch: wt
|
|
205
|
+
T
|
|
206
|
+
]), _(() => {
|
|
207
|
+
Ne?.(G || B === null ? null : {
|
|
208
|
+
applicationId: B,
|
|
209
|
+
authEpoch: kt
|
|
205
210
|
});
|
|
206
211
|
}, [
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
212
|
+
Ne,
|
|
213
|
+
G,
|
|
214
|
+
B,
|
|
215
|
+
kt
|
|
211
216
|
]);
|
|
212
|
-
let
|
|
213
|
-
if (
|
|
214
|
-
let
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
],
|
|
219
|
-
|
|
220
|
-
},
|
|
221
|
-
business:
|
|
222
|
-
personal:
|
|
223
|
-
owners:
|
|
224
|
-
},
|
|
225
|
-
business: (e) =>
|
|
226
|
-
personal: (e) =>
|
|
227
|
-
owners: (e) => e.map((e) => e.id &&
|
|
228
|
-
},
|
|
229
|
-
business:
|
|
230
|
-
personal:
|
|
231
|
-
owners:
|
|
232
|
-
})),
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
e ?
|
|
236
|
-
},
|
|
237
|
-
|
|
217
|
+
let tn = Fe(Ye);
|
|
218
|
+
if (tn.current = Ye, !D || !G && (K || !qt.isResolved)) return null;
|
|
219
|
+
let J = R?.companyStructure === "SOLE_PROPRIETORSHIP", nn = [
|
|
220
|
+
E.stepIndicator.business,
|
|
221
|
+
E.stepIndicator.personal,
|
|
222
|
+
E.stepIndicator.ownership
|
|
223
|
+
], rn = k === 0 ? R : k === 1 ? z : k === 2 ? xt : null, Y = zt.isPending || W.isPending || Bt.isPending || Vt.isPending || Ft, an = () => {
|
|
224
|
+
H(null), st((e) => e === 0 ? 0 : e - 1);
|
|
225
|
+
}, X = {
|
|
226
|
+
business: h(A) !== h(I.business),
|
|
227
|
+
personal: h(M) !== h(I.personal),
|
|
228
|
+
owners: h(A.companyStructure === "SOLE_PROPRIETORSHIP" ? ze : Ve(P, ft)) !== h(I.owners)
|
|
229
|
+
}, on = X.business || X.personal || X.owners, Z = {
|
|
230
|
+
business: (e) => V.taxId && e.taxId === V.taxId ? Be(e) : e,
|
|
231
|
+
personal: (e) => V.ssn && e.ssn === V.ssn ? S(e) : e,
|
|
232
|
+
owners: (e) => e.map((e) => e.id && x(e.ssn) ? S(e) : e)
|
|
233
|
+
}, sn = () => ct((e) => ({
|
|
234
|
+
business: Z.business(e.business),
|
|
235
|
+
personal: Z.personal(e.personal),
|
|
236
|
+
owners: Z.owners(e.owners)
|
|
237
|
+
})), cn = () => {
|
|
238
|
+
Y || (on ? L(!0) : (j(Z.business), N(Z.personal), F(Z.owners), sn(), O(!1)));
|
|
239
|
+
}, ln = (e) => {
|
|
240
|
+
e ? O(!0) : cn();
|
|
241
|
+
}, un = cn, dn = async (e) => {
|
|
242
|
+
It(!0), O(!0);
|
|
238
243
|
let t = new AbortController();
|
|
239
|
-
|
|
244
|
+
Jt.current = t;
|
|
240
245
|
let n = !1;
|
|
241
246
|
try {
|
|
242
|
-
let r = await
|
|
247
|
+
let r = await Bt.mutateAsync({ path: { id: e } });
|
|
243
248
|
if (t.signal.aborted) return;
|
|
244
|
-
if (!r.id) throw Error(
|
|
245
|
-
if (n = !0, (await
|
|
246
|
-
let e =
|
|
247
|
-
if (e === void 0 && (e = (await
|
|
249
|
+
if (!r.id) throw Error(E.submitFailedError);
|
|
250
|
+
if (n = !0, (await Ht(e, { signal: t.signal })).status === "complete") {
|
|
251
|
+
let e = Wt;
|
|
252
|
+
if (e === void 0 && (e = (await Gt()).data), t.signal.aborted) return;
|
|
248
253
|
if (e !== void 0) try {
|
|
249
|
-
await
|
|
254
|
+
await Kt({ displayedVersion: e.version ?? null });
|
|
250
255
|
} catch {}
|
|
251
256
|
if (t.signal.aborted) return;
|
|
252
|
-
|
|
253
|
-
} else
|
|
257
|
+
Rt("success"), ot(), at();
|
|
258
|
+
} else Rt("pending");
|
|
254
259
|
} catch (e) {
|
|
255
260
|
if (e instanceof DOMException && e.name === "AbortError") return;
|
|
256
261
|
if (!n) throw e;
|
|
257
|
-
|
|
262
|
+
Rt("pending");
|
|
258
263
|
} finally {
|
|
259
|
-
|
|
264
|
+
Jt.current = null, It(!1);
|
|
260
265
|
}
|
|
261
|
-
},
|
|
262
|
-
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
-
},
|
|
266
|
-
|
|
267
|
-
},
|
|
268
|
-
|
|
269
|
-
},
|
|
270
|
-
let t =
|
|
271
|
-
return
|
|
272
|
-
},
|
|
273
|
-
let e =
|
|
274
|
-
if (
|
|
275
|
-
if (!
|
|
276
|
-
let e =
|
|
277
|
-
return e ? await
|
|
266
|
+
}, Q = ({ evenWithoutMarker: e = !1 } = {}) => {
|
|
267
|
+
j((t) => (t.taxIdOnFileLast4 || e) && x(t.taxId) ? Be(t) : t);
|
|
268
|
+
}, fn = ({ evenWithoutMarker: e = !1 } = {}) => {
|
|
269
|
+
N((t) => (t.ssnOnFileLast4 || e) && x(t.ssn) ? S(t) : t);
|
|
270
|
+
}, pn = ({ evenWithoutMarker: e = !1 } = {}) => {
|
|
271
|
+
F((t) => t.map((t) => (t.ssnOnFileLast4 || e && t.id) && x(t.ssn) ? S(t) : t));
|
|
272
|
+
}, mn = () => {
|
|
273
|
+
F((e) => e.map(Ce));
|
|
274
|
+
}, hn = async (e) => {
|
|
275
|
+
let t = tn.current, n = await zt.mutateAsync({ body: e });
|
|
276
|
+
return Ct(n.id), At(t), n.clientSecret && Ut(n.id, n.clientSecret), n.id;
|
|
277
|
+
}, gn = async () => {
|
|
278
|
+
let e = I.business.companyStructure === "SOLE_PROPRIETORSHIP" && !J ? be(P) : [], t = e.length > 0 ? { businessOwners: e } : {};
|
|
279
|
+
if (k === 0) {
|
|
280
|
+
if (!R) return null;
|
|
281
|
+
let e = B;
|
|
282
|
+
return e ? await W.mutateAsync({
|
|
278
283
|
path: { id: e },
|
|
279
284
|
body: {
|
|
280
|
-
...
|
|
281
|
-
businessDetails:
|
|
282
|
-
carryConsent: !
|
|
285
|
+
...he({
|
|
286
|
+
businessDetails: R,
|
|
287
|
+
carryConsent: !wt
|
|
283
288
|
}),
|
|
284
289
|
...t
|
|
285
290
|
}
|
|
286
|
-
}) : (e = await
|
|
287
|
-
taxId:
|
|
288
|
-
taxIdStructure:
|
|
289
|
-
}),
|
|
291
|
+
}) : (e = await hn(me(R)), Tt(!0)), Dt({
|
|
292
|
+
taxId: R.taxId,
|
|
293
|
+
taxIdStructure: R.companyStructure
|
|
294
|
+
}), Q(), J && mn(), dt(["business"], { owners: J ? "cleared" : t.businessOwners ? "restored" : "none" }), e;
|
|
290
295
|
}
|
|
291
|
-
return
|
|
292
|
-
path: { id:
|
|
296
|
+
return k === 1 ? !z || !R || !B ? null : (await W.mutateAsync({
|
|
297
|
+
path: { id: B },
|
|
293
298
|
body: {
|
|
294
|
-
...
|
|
295
|
-
businessDetails:
|
|
296
|
-
applicant:
|
|
297
|
-
carryConsent: !
|
|
299
|
+
...he({
|
|
300
|
+
businessDetails: R,
|
|
301
|
+
applicant: z,
|
|
302
|
+
carryConsent: !wt
|
|
298
303
|
}),
|
|
299
304
|
...t
|
|
300
305
|
}
|
|
301
|
-
}),
|
|
302
|
-
taxId:
|
|
303
|
-
taxIdStructure:
|
|
304
|
-
ssn:
|
|
305
|
-
}),
|
|
306
|
-
path: { id:
|
|
307
|
-
body:
|
|
308
|
-
}),
|
|
309
|
-
},
|
|
310
|
-
|
|
306
|
+
}), Dt({
|
|
307
|
+
taxId: R.taxId,
|
|
308
|
+
taxIdStructure: R.companyStructure,
|
|
309
|
+
ssn: z.ssn
|
|
310
|
+
}), Q(), fn(), dt(["business", "personal"], { owners: J ? "cleared" : t.businessOwners ? "restored" : "none" }), B) : k === 2 ? !xt || !B ? null : (await W.mutateAsync({
|
|
311
|
+
path: { id: B },
|
|
312
|
+
body: he({ businessOwners: xt })
|
|
313
|
+
}), pn(), dt(["owners"]), B) : null;
|
|
314
|
+
}, $ = (e) => te(e) ?? (e instanceof Error ? e.message : void 0) ?? E.genericRetryError, _n = async () => {
|
|
315
|
+
H(null);
|
|
311
316
|
try {
|
|
312
|
-
let e = await
|
|
317
|
+
let e = await gn();
|
|
313
318
|
if (e === null) return;
|
|
314
|
-
|
|
319
|
+
k === 2 ? await dn(e) : st(k + 1);
|
|
315
320
|
} catch (e) {
|
|
316
|
-
|
|
321
|
+
H($(e));
|
|
317
322
|
}
|
|
318
|
-
},
|
|
319
|
-
|
|
323
|
+
}, vn = async () => {
|
|
324
|
+
H(null), Nt(!0);
|
|
320
325
|
try {
|
|
321
|
-
if (await
|
|
322
|
-
|
|
326
|
+
if (await gn() === null) return;
|
|
327
|
+
Q({ evenWithoutMarker: !0 }), k >= 1 && fn({ evenWithoutMarker: !0 }), k === 2 && pn({ evenWithoutMarker: !0 }), r.success(E.applicationSavedToast), O(!1);
|
|
323
328
|
} catch (e) {
|
|
324
|
-
r.error(
|
|
329
|
+
r.error($(e));
|
|
325
330
|
} finally {
|
|
326
|
-
|
|
331
|
+
Nt(!1);
|
|
327
332
|
}
|
|
328
|
-
},
|
|
329
|
-
let e =
|
|
330
|
-
businessDetails:
|
|
331
|
-
applicant:
|
|
333
|
+
}, yn = async () => {
|
|
334
|
+
let e = Ve(P, ft), t = ye({
|
|
335
|
+
businessDetails: A,
|
|
336
|
+
applicant: M,
|
|
332
337
|
businessOwners: e,
|
|
333
|
-
savedBusinessDetails:
|
|
334
|
-
savedOwners:
|
|
335
|
-
dirty:
|
|
336
|
-
}), n =
|
|
337
|
-
|
|
338
|
+
savedBusinessDetails: I.business,
|
|
339
|
+
savedOwners: I.owners,
|
|
340
|
+
dirty: X
|
|
341
|
+
}), n = X;
|
|
342
|
+
vt(!0);
|
|
338
343
|
try {
|
|
339
344
|
if (!t) {
|
|
340
|
-
r.error(
|
|
345
|
+
r.error(E.saveDraftNothingValidError);
|
|
341
346
|
return;
|
|
342
347
|
}
|
|
343
|
-
let i = !
|
|
344
|
-
|
|
345
|
-
path: { id:
|
|
348
|
+
let i = !B;
|
|
349
|
+
B ? await W.mutateAsync({
|
|
350
|
+
path: { id: B },
|
|
346
351
|
body: t
|
|
347
|
-
}) : await
|
|
352
|
+
}) : await hn(ve(t)), ft && F(e), r.success(E.applicationSavedToast);
|
|
348
353
|
let a = t;
|
|
349
|
-
i && a.applicant?.isLegallyAuthorized && a.applicant?.hasAcceptedDisclosures &&
|
|
354
|
+
i && a.applicant?.isLegallyAuthorized && a.applicant?.hasAcceptedDisclosures && Tt(!0), Dt({
|
|
350
355
|
taxId: a.businessDetails?.taxId?.value,
|
|
351
|
-
taxIdStructure:
|
|
356
|
+
taxIdStructure: A.companyStructure,
|
|
352
357
|
ssn: a.applicant?.personalIdentificationNumber?.value
|
|
353
|
-
}), a.businessDetails?.taxId !== void 0 &&
|
|
358
|
+
}), a.businessDetails?.taxId !== void 0 && Q({ evenWithoutMarker: !0 }), a.applicant?.personalIdentificationNumber !== void 0 && fn({ evenWithoutMarker: !0 }), Array.isArray(a.businessOwners) && pn({ evenWithoutMarker: !0 }), a.businessOwners === null && e.length > 0 && mn();
|
|
354
359
|
let o = Array.isArray(a.businessOwners) ? "list" : a.businessOwners === null ? "cleared" : "none";
|
|
355
|
-
|
|
360
|
+
ut({ next: (e, t) => _e({
|
|
356
361
|
current: e,
|
|
357
362
|
saved: t,
|
|
358
363
|
dirty: n,
|
|
359
364
|
ownersWrite: o
|
|
360
|
-
}) }),
|
|
365
|
+
}) }), pt(null), ht((e) => e + 1), L(!1), O(!1);
|
|
361
366
|
} catch (e) {
|
|
362
|
-
r.error(
|
|
367
|
+
r.error($(e));
|
|
363
368
|
} finally {
|
|
364
|
-
|
|
369
|
+
vt(!1);
|
|
365
370
|
}
|
|
366
|
-
},
|
|
367
|
-
|
|
368
|
-
},
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
}, bn = () => {
|
|
372
|
+
j(Z.business(I.business)), N(Z.personal(I.personal)), F(Z.owners(I.owners)), sn(), pt(null), ht((e) => e + 1), H(null), L(!1), O(!1);
|
|
373
|
+
}, xn = async () => {
|
|
374
|
+
if (B !== null) {
|
|
375
|
+
try {
|
|
376
|
+
await Vt.mutateAsync({ path: { id: B } });
|
|
377
|
+
} catch (e) {
|
|
378
|
+
r.error($(e));
|
|
379
|
+
return;
|
|
380
|
+
}
|
|
381
|
+
r.success(E.applicationDeletedToast);
|
|
382
|
+
}
|
|
383
|
+
U(!1), O(!1), Re?.();
|
|
384
|
+
}, Sn = We(Math.min(k, 2), E), Cn = D.bankName?.trim() || E.fallbackBankName, wn = se(E.shellFdicDisclaimer, Cn);
|
|
385
|
+
if (G) {
|
|
386
|
+
let r = R?.companyLegalName ?? "", i = D.bankName?.trim() || E.fallbackBankName, a = Lt ?? "pending", o = a === "success", s = {
|
|
387
|
+
...g.result,
|
|
388
|
+
...E.result
|
|
389
|
+
}, c = /* @__PURE__ */ b(ce, {
|
|
374
390
|
testIds: {
|
|
375
391
|
processing: p.resultProcessing,
|
|
376
392
|
dashboardButton: p.resultDashboardButton
|
|
377
393
|
},
|
|
378
394
|
status: a,
|
|
379
|
-
isLoading:
|
|
395
|
+
isLoading: Ft,
|
|
380
396
|
loadingMessage: s.loadingMessage,
|
|
381
397
|
headingLine1: o ? s.successHeadingLine1 : s.pendingHeadingLine1,
|
|
382
398
|
headingLine2: `${r}!`,
|
|
383
399
|
body: o ? s.successBody : s.pendingBody,
|
|
384
|
-
followUpEmail:
|
|
400
|
+
followUpEmail: z?.workEmail ?? "",
|
|
385
401
|
emailBoxLead: s.pendingEmailBoxLead,
|
|
386
402
|
navigateToDashboardLabel: s.navigateToDashboard,
|
|
387
|
-
bankLogoSrc:
|
|
388
|
-
bankLogoAlt:
|
|
389
|
-
fdicDisclaimer:
|
|
403
|
+
bankLogoSrc: Ge,
|
|
404
|
+
bankLogoAlt: se(s.bankLogoAlt, i),
|
|
405
|
+
fdicDisclaimer: se(s.fdicDisclaimer, i),
|
|
390
406
|
onNavigateToDashboard: oe
|
|
391
407
|
});
|
|
392
|
-
return
|
|
408
|
+
return w ? /* @__PURE__ */ b("div", {
|
|
393
409
|
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",
|
|
394
410
|
children: c
|
|
395
|
-
}) : /* @__PURE__ */
|
|
396
|
-
open:
|
|
397
|
-
onOpenChange:
|
|
398
|
-
children: /* @__PURE__ */
|
|
411
|
+
}) : /* @__PURE__ */ b(e, {
|
|
412
|
+
open: rt,
|
|
413
|
+
onOpenChange: O,
|
|
414
|
+
children: /* @__PURE__ */ Le(t, {
|
|
399
415
|
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",
|
|
400
|
-
children: [/* @__PURE__ */
|
|
416
|
+
children: [/* @__PURE__ */ b(n, {
|
|
401
417
|
className: "ttw:sr-only",
|
|
402
|
-
children:
|
|
418
|
+
children: E.modalTitle
|
|
403
419
|
}), c]
|
|
404
420
|
})
|
|
405
421
|
});
|
|
406
422
|
}
|
|
407
|
-
let
|
|
408
|
-
return /* @__PURE__ */
|
|
409
|
-
/* @__PURE__ */
|
|
410
|
-
open:
|
|
411
|
-
defaultOpen:
|
|
412
|
-
onOpenChange:
|
|
413
|
-
isFullScreenInline:
|
|
414
|
-
title:
|
|
415
|
-
subtitle:
|
|
416
|
-
stepLabels:
|
|
417
|
-
activeStep:
|
|
418
|
-
disclaimerText:
|
|
419
|
-
onBack:
|
|
420
|
-
onCancel:
|
|
421
|
-
onNext:
|
|
422
|
-
onSaveAndClose:
|
|
423
|
+
let Tn = k === 2 ? E.submit : E.next, En = rn === null || Y;
|
|
424
|
+
return /* @__PURE__ */ Le(Ie, { children: [
|
|
425
|
+
/* @__PURE__ */ Le(u, {
|
|
426
|
+
open: rt,
|
|
427
|
+
defaultOpen: it,
|
|
428
|
+
onOpenChange: ln,
|
|
429
|
+
isFullScreenInline: w,
|
|
430
|
+
title: Sn.title,
|
|
431
|
+
subtitle: Sn.subtitle,
|
|
432
|
+
stepLabels: nn,
|
|
433
|
+
activeStep: k,
|
|
434
|
+
disclaimerText: wn,
|
|
435
|
+
onBack: k === 0 ? un : an,
|
|
436
|
+
onCancel: k > 0 ? un : void 0,
|
|
437
|
+
onNext: _n,
|
|
438
|
+
onSaveAndClose: vn,
|
|
439
|
+
onDelete: () => U(!0),
|
|
423
440
|
showDismissButton: !1,
|
|
424
|
-
isNextDisabled:
|
|
425
|
-
isNextLoading:
|
|
426
|
-
isSaveAndCloseDisabled:
|
|
427
|
-
isSaveAndCloseLoading:
|
|
428
|
-
nextLabel:
|
|
441
|
+
isNextDisabled: En,
|
|
442
|
+
isNextLoading: Y && !Mt,
|
|
443
|
+
isSaveAndCloseDisabled: En,
|
|
444
|
+
isSaveAndCloseLoading: Mt,
|
|
445
|
+
nextLabel: Tn,
|
|
429
446
|
nextIcon: null,
|
|
430
|
-
errorMessage:
|
|
447
|
+
errorMessage: jt,
|
|
431
448
|
labels: {
|
|
432
|
-
backButton:
|
|
433
|
-
cancelButton:
|
|
434
|
-
saveAndCloseButton:
|
|
449
|
+
backButton: k === 0 ? E.cancel : E.back,
|
|
450
|
+
cancelButton: E.cancel,
|
|
451
|
+
saveAndCloseButton: E.saveAndClose,
|
|
452
|
+
deleteButton: E.deleteApplication
|
|
435
453
|
},
|
|
436
454
|
testIds: {
|
|
437
455
|
root: p.shell,
|
|
@@ -439,6 +457,7 @@ function Ve({ onEmbeddedOnboardingCompletedSuccessfully: d, onNavigateToDashboar
|
|
|
439
457
|
back: p.shellBack,
|
|
440
458
|
cancel: p.shellCancel,
|
|
441
459
|
saveAndClose: p.shellSaveAndClose,
|
|
460
|
+
delete: p.shellDelete,
|
|
442
461
|
next: p.shellNext,
|
|
443
462
|
scrollRegion: {
|
|
444
463
|
root: p.shellScrollRegion,
|
|
@@ -447,48 +466,48 @@ function Ve({ onEmbeddedOnboardingCompletedSuccessfully: d, onNavigateToDashboar
|
|
|
447
466
|
}
|
|
448
467
|
},
|
|
449
468
|
children: [
|
|
450
|
-
|
|
451
|
-
value:
|
|
452
|
-
onValueChange:
|
|
453
|
-
onSnapshotChange:
|
|
454
|
-
naicsOptions:
|
|
455
|
-
stateOptions:
|
|
456
|
-
isSubmitting:
|
|
457
|
-
labels:
|
|
458
|
-
bankName:
|
|
459
|
-
termsHref:
|
|
460
|
-
privacyHref:
|
|
461
|
-
electronicCommunicationHref:
|
|
462
|
-
patriotActHref:
|
|
469
|
+
k === 0 ? /* @__PURE__ */ b(de, {
|
|
470
|
+
value: A,
|
|
471
|
+
onValueChange: Ot,
|
|
472
|
+
onSnapshotChange: yt,
|
|
473
|
+
naicsOptions: Yt,
|
|
474
|
+
stateOptions: Xt,
|
|
475
|
+
isSubmitting: Y,
|
|
476
|
+
labels: E.businessDetails,
|
|
477
|
+
bankName: Cn,
|
|
478
|
+
termsHref: Xe,
|
|
479
|
+
privacyHref: Ze,
|
|
480
|
+
electronicCommunicationHref: Qe,
|
|
481
|
+
patriotActHref: $e
|
|
463
482
|
}, "business") : null,
|
|
464
|
-
|
|
465
|
-
value:
|
|
466
|
-
onValueChange:
|
|
467
|
-
onSnapshotChange:
|
|
468
|
-
stateOptions:
|
|
469
|
-
isSubmitting:
|
|
470
|
-
labels:
|
|
483
|
+
k === 1 ? /* @__PURE__ */ b(fe, {
|
|
484
|
+
value: M,
|
|
485
|
+
onValueChange: N,
|
|
486
|
+
onSnapshotChange: bt,
|
|
487
|
+
stateOptions: Zt,
|
|
488
|
+
isSubmitting: Y,
|
|
489
|
+
labels: E.personalDetails
|
|
471
490
|
}, "personal") : null,
|
|
472
|
-
|
|
473
|
-
owners:
|
|
474
|
-
onOwnersChange:
|
|
475
|
-
primaryOwnerName: `${
|
|
476
|
-
primaryOwnerPercentage:
|
|
477
|
-
stateOptions:
|
|
478
|
-
onSnapshotChange:
|
|
479
|
-
onPendingOwnerChange:
|
|
480
|
-
isSubmitting:
|
|
481
|
-
labels:
|
|
482
|
-
},
|
|
491
|
+
k === 2 ? /* @__PURE__ */ b(pe, {
|
|
492
|
+
owners: J ? ze : P,
|
|
493
|
+
onOwnersChange: F,
|
|
494
|
+
primaryOwnerName: `${M.firstName} ${M.lastName}`.trim(),
|
|
495
|
+
primaryOwnerPercentage: J ? 100 : z?.ownsOver25Percent === !0 ? z.ownershipPercentage ?? 0 : 0,
|
|
496
|
+
stateOptions: Qt,
|
|
497
|
+
onSnapshotChange: St,
|
|
498
|
+
onPendingOwnerChange: pt,
|
|
499
|
+
isSubmitting: Y,
|
|
500
|
+
labels: E.additionalOwners
|
|
501
|
+
}, mt) : null
|
|
483
502
|
]
|
|
484
503
|
}),
|
|
485
|
-
/* @__PURE__ */
|
|
486
|
-
open:
|
|
487
|
-
onSaveDraft:
|
|
488
|
-
onDiscard:
|
|
489
|
-
onCancel: () =>
|
|
490
|
-
isSaving:
|
|
491
|
-
labels:
|
|
504
|
+
/* @__PURE__ */ b(le, {
|
|
505
|
+
open: gt,
|
|
506
|
+
onSaveDraft: yn,
|
|
507
|
+
onDiscard: bn,
|
|
508
|
+
onCancel: () => L(!1),
|
|
509
|
+
isSaving: _t,
|
|
510
|
+
labels: E.unsavedApplicationDialog,
|
|
492
511
|
testIds: {
|
|
493
512
|
root: p.unsavedDialog,
|
|
494
513
|
saveDraft: p.unsavedDialogSaveDraft,
|
|
@@ -496,11 +515,26 @@ function Ve({ onEmbeddedOnboardingCompletedSuccessfully: d, onNavigateToDashboar
|
|
|
496
515
|
close: p.unsavedDialogClose
|
|
497
516
|
}
|
|
498
517
|
}),
|
|
499
|
-
/* @__PURE__ */
|
|
518
|
+
/* @__PURE__ */ b(ue, {
|
|
519
|
+
open: Pt,
|
|
520
|
+
onConfirm: xn,
|
|
521
|
+
onCancel: () => U(!1),
|
|
522
|
+
isDeleting: Vt.isPending,
|
|
523
|
+
labels: {
|
|
524
|
+
descriptionEmphasis: E.saveAndClose,
|
|
525
|
+
...E.deleteApplicationDialog
|
|
526
|
+
},
|
|
527
|
+
testIds: {
|
|
528
|
+
root: p.deleteDialog,
|
|
529
|
+
confirm: p.deleteDialogConfirm,
|
|
530
|
+
cancel: p.deleteDialogCancel
|
|
531
|
+
}
|
|
532
|
+
}),
|
|
533
|
+
/* @__PURE__ */ b(l, {})
|
|
500
534
|
] });
|
|
501
535
|
}
|
|
502
|
-
function
|
|
503
|
-
return /* @__PURE__ */
|
|
536
|
+
function Ke({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: l, analytics: u, disclosuresAcceptance: ee, providerLabels: f, ...te }) {
|
|
537
|
+
return /* @__PURE__ */ b(d, {
|
|
504
538
|
baseUrl: e,
|
|
505
539
|
widgetToken: t,
|
|
506
540
|
organizationId: n,
|
|
@@ -514,41 +548,45 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
514
548
|
analytics: u,
|
|
515
549
|
disclosuresAcceptance: ee,
|
|
516
550
|
providerLabels: f,
|
|
517
|
-
widgetName:
|
|
518
|
-
children: /* @__PURE__ */
|
|
551
|
+
widgetName: Se,
|
|
552
|
+
children: /* @__PURE__ */ b(qe, { ...te })
|
|
519
553
|
});
|
|
520
554
|
}
|
|
521
|
-
function
|
|
522
|
-
let { initResponse: t } = re(), { client: n } = i(), r = t?.userId ?? null, [a, o] =
|
|
555
|
+
function qe(e) {
|
|
556
|
+
let { initResponse: t } = re(), { client: n } = i(), r = t?.userId ?? null, [a, o] = y(r), [s, c] = y(0);
|
|
523
557
|
r !== a && (o(r), a !== null && r !== null && c((e) => e + 1));
|
|
524
|
-
let [l, u] =
|
|
525
|
-
return n !== l && (u(n), c((e) => e + 1)), /* @__PURE__ */
|
|
558
|
+
let [l, u] = y(n);
|
|
559
|
+
return n !== l && (u(n), c((e) => e + 1)), /* @__PURE__ */ b(Je, { ...e }, s);
|
|
526
560
|
}
|
|
527
|
-
function
|
|
528
|
-
let { authEpoch: t } = i(), { ownApplicationIds: n } =
|
|
529
|
-
|
|
561
|
+
function Je(e) {
|
|
562
|
+
let { authEpoch: t } = i(), { ownApplicationIds: n } = Me(), [r, a] = y(null), [o, s] = y(0), [c, l] = y(!1), u = Pe(() => {
|
|
563
|
+
a(null), l(!0), s((e) => e + 1);
|
|
564
|
+
}, []);
|
|
565
|
+
return r !== null && t !== r.authEpoch && n !== null && !n.includes(r.applicationId) && (a(null), s((e) => e + 1)), /* @__PURE__ */ b(Te, { children: /* @__PURE__ */ b(w, {
|
|
530
566
|
...e,
|
|
531
|
-
|
|
567
|
+
defaultOpen: !c && e.defaultOpen,
|
|
568
|
+
onEditableDraftChange: a,
|
|
569
|
+
onApplicationDeleted: u
|
|
532
570
|
}, o) }, o);
|
|
533
571
|
}
|
|
534
|
-
var
|
|
535
|
-
function
|
|
536
|
-
let { authEpoch: t } = i(), { applicationId: n, clientSecret: r, isResolved: a } =
|
|
537
|
-
if (
|
|
572
|
+
var C = { canRender: !1 };
|
|
573
|
+
function w(e) {
|
|
574
|
+
let { authEpoch: t } = i(), { applicationId: n, clientSecret: r, isResolved: a } = Me(), { application: o, isResolved: s, isUnavailable: c } = Ne(n, r), [l, u] = y(null);
|
|
575
|
+
if (_(() => {
|
|
538
576
|
if (l?.canRender !== !0 && a && s) {
|
|
539
577
|
if (c) {
|
|
540
|
-
u(
|
|
578
|
+
u(C);
|
|
541
579
|
return;
|
|
542
580
|
}
|
|
543
|
-
if (o !== null && o.status !== void 0 && o.status !==
|
|
544
|
-
u(
|
|
581
|
+
if (o !== null && o.status !== void 0 && o.status !== Re) {
|
|
582
|
+
u(C);
|
|
545
583
|
return;
|
|
546
584
|
}
|
|
547
585
|
u({
|
|
548
586
|
canRender: !0,
|
|
549
587
|
applicationId: o === null ? null : n,
|
|
550
588
|
authEpoch: t,
|
|
551
|
-
prefill:
|
|
589
|
+
prefill: ge(o)
|
|
552
590
|
});
|
|
553
591
|
}
|
|
554
592
|
}, [
|
|
@@ -561,20 +599,20 @@ function D(e) {
|
|
|
561
599
|
n
|
|
562
600
|
]), l === null || !l.canRender) return null;
|
|
563
601
|
let { applicationId: ee, authEpoch: d, prefill: f } = l;
|
|
564
|
-
return /* @__PURE__ */
|
|
602
|
+
return /* @__PURE__ */ b(Ge, {
|
|
565
603
|
...e,
|
|
566
604
|
initialApplicationId: ee,
|
|
567
605
|
initialBoundAuthEpoch: d,
|
|
568
606
|
initialBusinessDetails: {
|
|
569
|
-
...
|
|
607
|
+
...we(e.initialBusinessDetails),
|
|
570
608
|
...f?.businessDetails
|
|
571
609
|
},
|
|
572
610
|
initialPersonalDetails: {
|
|
573
|
-
...
|
|
611
|
+
...we(e.initialPersonalDetails),
|
|
574
612
|
...f?.personalDetails
|
|
575
613
|
},
|
|
576
|
-
initialAdditionalOwners: f?.additionalOwners ?? e.initialAdditionalOwners?.map(
|
|
614
|
+
initialAdditionalOwners: f?.additionalOwners ?? e.initialAdditionalOwners?.map(Ce)
|
|
577
615
|
});
|
|
578
616
|
}
|
|
579
617
|
//#endregion
|
|
580
|
-
export {
|
|
618
|
+
export { Ke as BankAccountOnboardingWidget, Ke as default };
|