@tesouro/embedded-components-react 0.5.294 → 0.5.296
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/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +23 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index28.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index29.js +247 -216
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +21 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index24.js +87 -89
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartForm.js +110 -112
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +6 -6
- 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/analytics/interceptor.js +55 -41
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetTokenManager.js +51 -30
- package/package.json +1 -1
|
@@ -48,5 +48,27 @@ function c(e) {
|
|
|
48
48
|
}
|
|
49
49
|
}, "create", void 0, "vendor"));
|
|
50
50
|
}
|
|
51
|
+
function l(e, t, n) {
|
|
52
|
+
let r = (e) => i(e) || void 0, { address: a } = e;
|
|
53
|
+
return {
|
|
54
|
+
...n,
|
|
55
|
+
name: r(e.entityType === "individual" ? `${e.firstName} ${e.lastName}` : e.legalName),
|
|
56
|
+
email: r(e.email),
|
|
57
|
+
phone: r(e.phone),
|
|
58
|
+
address: {
|
|
59
|
+
...n?.address,
|
|
60
|
+
line1: r(a.line1),
|
|
61
|
+
line2: r(a.line2),
|
|
62
|
+
city: r(a.city),
|
|
63
|
+
state: r(a.state),
|
|
64
|
+
postal_code: r(a.postalCode)
|
|
65
|
+
},
|
|
66
|
+
bank_account: {
|
|
67
|
+
account_holder_name: r(t.accountHolderName),
|
|
68
|
+
routing_number: r(t.routingNumber),
|
|
69
|
+
account_number: r(t.accountNumber)
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
}
|
|
51
73
|
//#endregion
|
|
52
|
-
export { s as buildVendorPrefill, c as canAutoCreateVendor };
|
|
74
|
+
export { s as buildVendorPrefill, c as canAutoCreateVendor, l as toCounterpartRawData };
|
|
@@ -21,6 +21,7 @@ function d({ mode: d, values: f, errors: p, onChange: m, onAddressChange: h, sec
|
|
|
21
21
|
bankAccount: void 0
|
|
22
22
|
}) + i(S?.errors), O = x?.query.trim() ?? "", k = f.entityType === "individual" ? `${f.firstName} ${f.lastName}`.trim() : f.legalName, A = x && d === "create" ? /* @__PURE__ */ l(o, {
|
|
23
23
|
...x,
|
|
24
|
+
onAddVendor: O && O !== k.trim() ? x.onAddVendor : void 0,
|
|
24
25
|
selectedLabel: k,
|
|
25
26
|
badge: w.newVendorBadge,
|
|
26
27
|
helperText: w.unmatchedVendorHelper,
|
|
@@ -28,7 +29,7 @@ function d({ mode: d, values: f, errors: p, onChange: m, onAddressChange: h, sec
|
|
|
28
29
|
addVendorDescription: w.addAsNewVendorDescription,
|
|
29
30
|
labels: {
|
|
30
31
|
fieldLabel: w.vendorFieldLabel,
|
|
31
|
-
addVendorAction: w.addAsNewVendor(O
|
|
32
|
+
addVendorAction: w.addAsNewVendor(O)
|
|
32
33
|
}
|
|
33
34
|
}) : null;
|
|
34
35
|
return /* @__PURE__ */ u("div", {
|