@tesouro/embedded-components-react 0.5.223 → 0.5.225
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 +335 -413
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index21.js +20 -10
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index26.js +251 -251
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
|
@@ -156,30 +156,40 @@ function A({ businessDetails: e, savedBusinessDetails: t, savedOwners: n, dirty:
|
|
|
156
156
|
};
|
|
157
157
|
return Object.keys(p).length > 0 ? p : null;
|
|
158
158
|
}
|
|
159
|
-
var j = (e) => e
|
|
160
|
-
function
|
|
159
|
+
var j = (e) => e;
|
|
160
|
+
function M(e, t) {
|
|
161
|
+
return e.applicant?.workEmailAddress || !m(f.workEmail, t.workEmail) ? e : {
|
|
162
|
+
...e,
|
|
163
|
+
applicant: {
|
|
164
|
+
...e.applicant,
|
|
165
|
+
workEmailAddress: t.workEmail
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
var N = (e, t) => e === "" && !!t;
|
|
170
|
+
function P(e, t, n) {
|
|
161
171
|
let r = { ...e };
|
|
162
172
|
for (let e of Object.keys(n)) n[e] || (r[e] = t[e]);
|
|
163
173
|
return r;
|
|
164
174
|
}
|
|
165
|
-
function
|
|
175
|
+
function F({ current: e, saved: t, dirty: n, ownersWrite: r }) {
|
|
166
176
|
let i = v(e.business) ?? "", a = b(e.business, t.business);
|
|
167
177
|
return {
|
|
168
|
-
business: n.business ?
|
|
178
|
+
business: n.business ? P(e.business, t.business, {
|
|
169
179
|
...a,
|
|
170
180
|
companyDbaName: !0,
|
|
171
181
|
website: m(d.website, e.business.website),
|
|
172
|
-
taxId: a.taxId ||
|
|
182
|
+
taxId: a.taxId || N(e.business.taxId, e.business.taxIdOnFileLast4)
|
|
173
183
|
}) : e.business,
|
|
174
|
-
personal: n.personal ?
|
|
184
|
+
personal: n.personal ? P(e.personal, t.personal, {
|
|
175
185
|
...w(e.personal, i),
|
|
176
|
-
ssn: g(e.personal.ssn) ||
|
|
186
|
+
ssn: g(e.personal.ssn) || N(e.personal.ssn, e.personal.ssnOnFileLast4)
|
|
177
187
|
}) : e.personal,
|
|
178
|
-
owners: r === "cleared" ? [] : r === "list" ? e.owners.filter(O).map((e) =>
|
|
188
|
+
owners: r === "cleared" ? [] : r === "list" ? e.owners.filter(O).map((e) => P(e, e.id && t.owners.find((t) => t.id === e.id) || c, {
|
|
179
189
|
...E(e),
|
|
180
|
-
ssn: g(e.ssn) ||
|
|
190
|
+
ssn: g(e.ssn) || N(e.ssn, e.ssnOnFileLast4)
|
|
181
191
|
})) : t.owners
|
|
182
192
|
};
|
|
183
193
|
}
|
|
184
194
|
//#endregion
|
|
185
|
-
export {
|
|
195
|
+
export { F as acceptDraftedValues, j as asCreateBody, A as buildDraftApplicationBody, D as draftOwners, M as withApplicantWorkEmail };
|