@tesouro/embedded-components-react 0.2.276 → 0.2.281
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 +17 -14
- package/dist/experimental/WidgetSuite.d.ts +9 -1
- package/dist/experimental/index.d.ts +9 -1
- package/dist/index.css +3 -0
- package/dist/index.d.ts +46 -23
- package/dist/index.js +54 -53
- package/dist/lib/AcceptDisclosuresWidget.d.ts +9 -1
- package/dist/lib/BalancesWidget.d.ts +8 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +9 -1
- package/dist/lib/BankAccountsWidget.d.ts +9 -1
- package/dist/lib/BillPayWidget.d.ts +8 -0
- package/dist/lib/CardDetailsWidget.d.ts +9 -1
- package/dist/lib/CardsWidget.d.ts +9 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +9 -1
- package/dist/lib/CounterpartsWidget.d.ts +9 -1
- package/dist/lib/CreateCardWidget.d.ts +9 -1
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +9 -1
- package/dist/lib/ExpenseManagementWidget.d.ts +9 -1
- package/dist/lib/ExpenseRequirementsWidget.d.ts +9 -1
- package/dist/lib/HelpWidget.d.ts +9 -1
- package/dist/lib/InsightsWidget.d.ts +8 -0
- package/dist/lib/InvoicingWidget.d.ts +9 -1
- package/dist/lib/LinkedAccountsWidget.d.ts +9 -1
- package/dist/lib/ProductsWidget.d.ts +9 -1
- package/dist/lib/ProfileWidget.d.ts +9 -1
- package/dist/lib/ReceiptMatchWidget.d.ts +9 -1
- package/dist/lib/ReceivablesWidget.d.ts +9 -1
- package/dist/lib/SettingsWidget.d.ts +9 -1
- package/dist/lib/TagsWidget.d.ts +9 -1
- package/dist/lib/TeamWidget.d.ts +9 -1
- package/dist/lib/TransfersWidget.d.ts +8 -0
- package/dist/lib/WidgetProvider.d.ts +25 -2
- package/dist/lib/WidgetProvider.js +8 -7
- package/dist/lib/WidgetProviderPublic.d.ts +8 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +54 -53
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +4 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +30 -29
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +24 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +69 -67
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +158 -132
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js +7 -4
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +6 -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 +9 -9
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js +19 -18
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +3 -2
- package/package.json +1 -1
|
@@ -4,12 +4,13 @@ import { getGlobalWidgetConfig as n, setGlobalWidgetConfig as r, updateGlobalWid
|
|
|
4
4
|
import { getGlobalWidgetInitState as a, subscribeToGlobalWidgetInitState as o } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/widgetInitChannel.js";
|
|
5
5
|
import { UIFramework as s } from "../libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/UIContext.js";
|
|
6
6
|
import { registerDesignSystemEnsurer as c, registerUIRenderers as l } from "../libs/tesouro-embedded-components-react/shared/ui/dist/lib/UIContext/uiRendererRegistry.js";
|
|
7
|
+
import { ERROR_STATE_ID as u } from "../libs/tesouro-embedded-components-react/shared/ui/dist/lib/ErrorState/ErrorState.js";
|
|
7
8
|
import "../libs/tesouro-embedded-components-react/shared/ui/dist/index.js";
|
|
8
|
-
import { RootWidgetProvider as
|
|
9
|
-
import { WidgetTokenRefreshProvider as
|
|
10
|
-
import { useWidgetToken as
|
|
11
|
-
import { RefreshingRootWidgetProvider as
|
|
12
|
-
import { useOwnWidgetConfig as
|
|
9
|
+
import { RootWidgetProvider as d } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js";
|
|
10
|
+
import { WidgetTokenRefreshProvider as f } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetTokenRefreshProvider.js";
|
|
11
|
+
import { useWidgetToken as p } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetToken.js";
|
|
12
|
+
import { RefreshingRootWidgetProvider as m } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RefreshingRootWidgetProvider.js";
|
|
13
|
+
import { useDisclosuresAcceptanceSurface as h, useOwnWidgetConfig as g, useRefetchWidget as _, useWidgetConfig as v, useWidgetError as y, useWidgetLoading as b } from "../libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
13
14
|
import "../libs/tesouro-embedded-components-react/shared/feature/dist/index.js";
|
|
14
|
-
import { WidgetProvider as
|
|
15
|
-
export { t as Implementation,
|
|
15
|
+
import { WidgetProvider as x } from "./WidgetProviderPublic.js";
|
|
16
|
+
export { u as ERROR_STATE_ID, t as Implementation, m as RefreshingRootWidgetProvider, d as RootWidgetProvider, s as UIFramework, x as WidgetProvider, f as WidgetTokenRefreshProvider, e as cloneEmbeddedClient, n as getGlobalWidgetConfig, a as getGlobalWidgetInitState, c as registerDesignSystemEnsurer, l as registerUIRenderers, r as setGlobalWidgetConfig, o as subscribeToGlobalWidgetInitState, i as updateGlobalWidgetConfig, h as useDisclosuresAcceptanceSurface, g as useOwnWidgetConfig, _ as useRefetchWidget, v as useWidgetConfig, y as useWidgetError, b as useWidgetLoading, p as useWidgetToken };
|
|
@@ -587,6 +587,14 @@ interface WidgetProviderProps extends WidgetProviderBaseProps {
|
|
|
587
587
|
* thrown from `onError` propagate per `react-error-boundary` semantics.
|
|
588
588
|
*/
|
|
589
589
|
onError?: (error: unknown, info: ErrorInfo) => void;
|
|
590
|
+
/**
|
|
591
|
+
* Accept surface shown when an ACTIVE user owes a new disclosure version.
|
|
592
|
+
* Pass `<AcceptDisclosuresWidget disclosureLinks={…} />` (no invite
|
|
593
|
+
* credentials). Cascades like `linkComponent`. Omit on INVITED — that
|
|
594
|
+
* path still uses invite-link `invitationToken`/`userId` on the host
|
|
595
|
+
* landing page. WidgetProvider cannot import the widget itself (cycle).
|
|
596
|
+
*/
|
|
597
|
+
disclosuresAcceptance?: ReactNode;
|
|
590
598
|
}
|
|
591
599
|
|
|
592
600
|
/**
|
package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js
CHANGED
|
@@ -131,7 +131,7 @@ function C({ invitationToken: e, userId: t, displayedVersion: n, labelOverrides:
|
|
|
131
131
|
errorMessage: h
|
|
132
132
|
});
|
|
133
133
|
}
|
|
134
|
-
function w({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f,
|
|
134
|
+
function w({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, ...m }) {
|
|
135
135
|
return /* @__PURE__ */ y(l, {
|
|
136
136
|
widgetName: t,
|
|
137
137
|
baseUrl: e,
|
|
@@ -145,7 +145,8 @@ function w({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
145
145
|
errorFallback: u,
|
|
146
146
|
onError: d,
|
|
147
147
|
analytics: f,
|
|
148
|
-
|
|
148
|
+
disclosuresAcceptance: p,
|
|
149
|
+
children: /* @__PURE__ */ y(S, { ...m })
|
|
149
150
|
});
|
|
150
151
|
}
|
|
151
152
|
//#endregion
|
|
@@ -23,12 +23,12 @@ import { AdditionalOwnersStep as ae } from "./index13.js";
|
|
|
23
23
|
import { buildCreateApplicationBody as oe, buildUpdateApplicationBody as se } from "./index14.js";
|
|
24
24
|
import { OnboardingAnalyticsEvent as f, WIDGET_NAME as p } from "./index15.js";
|
|
25
25
|
import { DEFAULT_LABELS as m } from "./index16.js";
|
|
26
|
-
import { ApplicationClientSecretProvider as
|
|
27
|
-
import { useCreateApplication as
|
|
28
|
-
import { useUpdateApplication as
|
|
29
|
-
import { useSubmitApplication as
|
|
30
|
-
import { usePollApplicationCompletion as
|
|
31
|
-
import { OnboardingSuppressionReason as
|
|
26
|
+
import { ApplicationClientSecretProvider as h, useApplicationClientSecret as ce } from "../../data-access/dist/index2.js";
|
|
27
|
+
import { useCreateApplication as le } from "../../data-access/dist/index4.js";
|
|
28
|
+
import { useUpdateApplication as ue } from "../../data-access/dist/index6.js";
|
|
29
|
+
import { useSubmitApplication as de } from "../../data-access/dist/index7.js";
|
|
30
|
+
import { usePollApplicationCompletion as fe } from "../../data-access/dist/index8.js";
|
|
31
|
+
import { OnboardingSuppressionReason as pe } from "../../data-access/dist/index9.js";
|
|
32
32
|
import { useOrganizationOnboardingSuppression as me } from "../../data-access/dist/index10.js";
|
|
33
33
|
import "../../data-access/dist/index.js";
|
|
34
34
|
import { useCallback as g, useEffect as _, useMemo as v, useRef as he, useState as y } from "react";
|
|
@@ -80,12 +80,12 @@ function ye(e, t) {
|
|
|
80
80
|
subtitle: n.subheading
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
|
-
function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboard: u, labels: p, initialBusinessDetails:
|
|
84
|
-
let
|
|
83
|
+
function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboard: u, labels: p, initialBusinessDetails: h, initialPersonalDetails: be, initialAdditionalOwners: S, bankLogoSrc: xe, disclosureLinks: Se, marketingContent: C = null, open: Ce, defaultOpen: w, onOpenChange: T }) {
|
|
84
|
+
let E = i();
|
|
85
85
|
_(() => {
|
|
86
|
-
|
|
87
|
-
}, [
|
|
88
|
-
let
|
|
86
|
+
E(f.Mounted);
|
|
87
|
+
}, [E]);
|
|
88
|
+
let D = {
|
|
89
89
|
...m,
|
|
90
90
|
...p,
|
|
91
91
|
stepIndicator: {
|
|
@@ -99,36 +99,36 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
99
99
|
...m.result,
|
|
100
100
|
...p?.result
|
|
101
101
|
}
|
|
102
|
-
},
|
|
103
|
-
|
|
104
|
-
}, [
|
|
105
|
-
|
|
106
|
-
}, [
|
|
107
|
-
|
|
102
|
+
}, O = c().initResponse, { termsHref: we, privacyHref: Te, electronicCommunicationHref: Ee, patriotActHref: De } = Se ?? {}, Oe = C !== null, k = Ce === void 0, [ke, A] = y(!1), [Ae, je] = y(!0), [Me, Ne] = y(() => w ?? !1), Pe = xe ?? C?.bankLogoSrc ?? void 0, Fe = k ? Me : Ce, Ie = w ?? !1, j = g((e) => {
|
|
103
|
+
k && Ne(e), T?.(e);
|
|
104
|
+
}, [T, k]), Le = g(() => {
|
|
105
|
+
E(f.OpenMarketing), A(!0);
|
|
106
|
+
}, [E]), Re = g(() => {
|
|
107
|
+
A(!1);
|
|
108
108
|
}, []), ze = g(() => {
|
|
109
|
-
|
|
110
|
-
}, [j,
|
|
111
|
-
|
|
109
|
+
E(f.BeginOnboarding), A(!1), j(!0);
|
|
110
|
+
}, [j, E]), Be = g(() => {
|
|
111
|
+
je(!1), a();
|
|
112
112
|
}, [a]), Ve = ee(), [M, N] = y(0), [He, Ue] = y(() => ({
|
|
113
113
|
..._e,
|
|
114
|
-
...
|
|
114
|
+
...h
|
|
115
115
|
})), [P, We] = y(() => ({
|
|
116
116
|
...ve,
|
|
117
117
|
...be
|
|
118
|
-
})), [Ge, Ke] = y(() => S ?? []), [F, qe] = y(null), [I, Je] = y(null), [L, Ye] = y(null), [R, Xe] = y(null), [Ze, z] = y(null), [B, V] = y(!1), [H, U] = y(null), W =
|
|
118
|
+
})), [Ge, Ke] = y(() => S ?? []), [F, qe] = y(null), [I, Je] = y(null), [L, Ye] = y(null), [R, Xe] = y(null), [Ze, z] = y(null), [B, V] = y(!1), [H, U] = y(null), W = le(), G = ue(), K = de(), Qe = fe(), { setClientSecret: $e } = ce(), q = me(), J = he(null);
|
|
119
119
|
_(() => () => J.current?.abort(), []);
|
|
120
|
-
let et = v(() => l(
|
|
120
|
+
let et = v(() => l(D.businessDetails.naicsTitles), [D.businessDetails.naicsTitles]), tt = v(() => o(D.businessDetails.stateTitles), [D.businessDetails.stateTitles]), nt = v(() => o(D.personalDetails.stateTitles), [D.personalDetails.stateTitles]), rt = v(() => o(D.additionalOwners.stateTitles), [D.additionalOwners.stateTitles]), Y = B || H !== null, X = O?.status === "ACTIVE" || O?.status === "INACTIVE", it = O?.status === "INVITED", Z = !!O && !Y && (X || it || q.isSuppressed), Q = Z ? X ? pe.UserAlreadyOnboarded : it ? pe.UserInvitedToOrganization : q.reason : null;
|
|
121
121
|
if (_(() => {
|
|
122
|
-
!Z || !Q || (
|
|
122
|
+
!Z || !Q || (E(f.Suppressed, { reason: Q }), console.info(`[onboarding] not shown: ${Q}`));
|
|
123
123
|
}, [
|
|
124
124
|
Z,
|
|
125
125
|
Q,
|
|
126
|
-
|
|
127
|
-
]), !
|
|
126
|
+
E
|
|
127
|
+
]), !O || !Y && (Z || !q.isResolved)) return null;
|
|
128
128
|
let at = F?.companyStructure === "SOLE_PROPRIETORSHIP", ot = [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
D.stepIndicator.business,
|
|
130
|
+
D.stepIndicator.personal,
|
|
131
|
+
D.stepIndicator.ownership
|
|
132
132
|
], st = M === 0 ? F : M === 1 ? I : M === 2 ? L : null, $ = W.isPending || G.isPending || K.isPending || B, ct = () => {
|
|
133
133
|
z(null), N((e) => e === 0 ? 0 : e - 1);
|
|
134
134
|
}, lt = () => {
|
|
@@ -141,7 +141,7 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
141
141
|
try {
|
|
142
142
|
let r = await K.mutateAsync({ path: { id: e } });
|
|
143
143
|
if (t.signal.aborted) return;
|
|
144
|
-
if (!r.id) throw Error(
|
|
144
|
+
if (!r.id) throw Error(D.submitFailedError);
|
|
145
145
|
n = !0, (await Qe(e, { signal: t.signal })).status === "complete" ? (U("success"), Ve(), Be()) : U("pending");
|
|
146
146
|
} catch (e) {
|
|
147
147
|
if (e instanceof DOMException && e.name === "AbortError") return;
|
|
@@ -178,23 +178,23 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
178
178
|
}), await ut(R);
|
|
179
179
|
}
|
|
180
180
|
} catch (e) {
|
|
181
|
-
let t = s(e) ?? (e instanceof Error ? e.message : void 0) ??
|
|
181
|
+
let t = s(e) ?? (e instanceof Error ? e.message : void 0) ?? D.genericRetryError;
|
|
182
182
|
z(t);
|
|
183
183
|
}
|
|
184
|
-
}, ft = ye(Math.min(M, 2),
|
|
184
|
+
}, ft = ye(Math.min(M, 2), D), pt = O.bankName?.trim() || D.fallbackBankName, mt = d(D.shellFdicDisclaimer, pt);
|
|
185
185
|
if (Y) {
|
|
186
|
-
let r = F?.companyLegalName ?? "", i =
|
|
186
|
+
let r = F?.companyLegalName ?? "", i = O.bankName?.trim() || D.fallbackBankName, a = H ?? "pending", o = a === "success", s = {
|
|
187
187
|
...m.result,
|
|
188
|
-
...
|
|
188
|
+
...D.result
|
|
189
189
|
};
|
|
190
190
|
return /* @__PURE__ */ b(e, {
|
|
191
|
-
open:
|
|
191
|
+
open: Fe,
|
|
192
192
|
onOpenChange: j,
|
|
193
193
|
children: /* @__PURE__ */ x(t, {
|
|
194
194
|
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",
|
|
195
195
|
children: [/* @__PURE__ */ b(n, {
|
|
196
196
|
className: "ttw:sr-only",
|
|
197
|
-
children:
|
|
197
|
+
children: D.modalTitle
|
|
198
198
|
}), /* @__PURE__ */ b(te, {
|
|
199
199
|
status: a,
|
|
200
200
|
isLoading: B,
|
|
@@ -205,7 +205,7 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
205
205
|
followUpEmail: I?.workEmail ?? "",
|
|
206
206
|
emailBoxLead: s.pendingEmailBoxLead,
|
|
207
207
|
navigateToDashboardLabel: s.navigateToDashboard,
|
|
208
|
-
bankLogoSrc:
|
|
208
|
+
bankLogoSrc: Pe,
|
|
209
209
|
bankLogoAlt: d(s.bankLogoAlt, i),
|
|
210
210
|
fdicDisclaimer: d(s.fdicDisclaimer, i),
|
|
211
211
|
onNavigateToDashboard: u
|
|
@@ -213,9 +213,9 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
213
213
|
})
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
|
-
let ht = M === 2 ?
|
|
217
|
-
return /* @__PURE__ */ x(ge, { children: [
|
|
218
|
-
open:
|
|
216
|
+
let ht = M === 2 ? D.submit : D.next, gt = st === null || $;
|
|
217
|
+
return /* @__PURE__ */ x(ge, { children: [Oe && Ae && C ? /* @__PURE__ */ b(ne, {
|
|
218
|
+
open: ke,
|
|
219
219
|
isVisible: !0,
|
|
220
220
|
vspLogo: C.vspLogo,
|
|
221
221
|
bankingText: C.bankingText,
|
|
@@ -230,7 +230,7 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
230
230
|
onCloseMarketingModal: Re,
|
|
231
231
|
onPrimaryCtaClick: ze
|
|
232
232
|
}) : null, /* @__PURE__ */ x(r, {
|
|
233
|
-
open:
|
|
233
|
+
open: Fe,
|
|
234
234
|
defaultOpen: Ie,
|
|
235
235
|
onOpenChange: j,
|
|
236
236
|
title: ft.title,
|
|
@@ -248,8 +248,8 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
248
248
|
nextIcon: null,
|
|
249
249
|
errorMessage: Ze,
|
|
250
250
|
labels: {
|
|
251
|
-
backButton: M === 0 ?
|
|
252
|
-
cancelButton:
|
|
251
|
+
backButton: M === 0 ? D.cancel : D.back,
|
|
252
|
+
cancelButton: D.cancel
|
|
253
253
|
},
|
|
254
254
|
children: [
|
|
255
255
|
M === 0 ? /* @__PURE__ */ b(re, {
|
|
@@ -259,12 +259,12 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
259
259
|
naicsOptions: et,
|
|
260
260
|
stateOptions: tt,
|
|
261
261
|
isSubmitting: $,
|
|
262
|
-
labels:
|
|
262
|
+
labels: D.businessDetails,
|
|
263
263
|
bankName: pt,
|
|
264
|
-
termsHref:
|
|
265
|
-
privacyHref:
|
|
266
|
-
electronicCommunicationHref:
|
|
267
|
-
patriotActHref:
|
|
264
|
+
termsHref: we,
|
|
265
|
+
privacyHref: Te,
|
|
266
|
+
electronicCommunicationHref: Ee,
|
|
267
|
+
patriotActHref: De
|
|
268
268
|
}, "business") : null,
|
|
269
269
|
M === 1 ? /* @__PURE__ */ b(ie, {
|
|
270
270
|
value: P,
|
|
@@ -272,7 +272,7 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
272
272
|
onSnapshotChange: Je,
|
|
273
273
|
stateOptions: nt,
|
|
274
274
|
isSubmitting: $,
|
|
275
|
-
labels:
|
|
275
|
+
labels: D.personalDetails
|
|
276
276
|
}, "personal") : null,
|
|
277
277
|
M === 2 ? /* @__PURE__ */ b(ae, {
|
|
278
278
|
owners: Ge,
|
|
@@ -282,12 +282,12 @@ function be({ onEmbeddedOnboardingCompletedSuccessfully: a, onNavigateToDashboar
|
|
|
282
282
|
stateOptions: rt,
|
|
283
283
|
onSnapshotChange: Ye,
|
|
284
284
|
isSubmitting: $,
|
|
285
|
-
labels:
|
|
285
|
+
labels: D.additionalOwners
|
|
286
286
|
}) : null
|
|
287
287
|
]
|
|
288
288
|
})] });
|
|
289
289
|
}
|
|
290
|
-
function S({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, implementation: s, uiFramework: ee, errorFallback: c, onError: l, analytics: u,
|
|
290
|
+
function S({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: o, implementation: s, uiFramework: ee, errorFallback: c, onError: l, analytics: u, disclosuresAcceptance: d, ...te }) {
|
|
291
291
|
return /* @__PURE__ */ b(a, {
|
|
292
292
|
baseUrl: e,
|
|
293
293
|
widgetToken: t,
|
|
@@ -300,13 +300,14 @@ function S({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
300
300
|
errorFallback: c,
|
|
301
301
|
onError: l,
|
|
302
302
|
analytics: u,
|
|
303
|
+
disclosuresAcceptance: d,
|
|
303
304
|
widgetName: p,
|
|
304
|
-
children: /* @__PURE__ */ b(xe, { ...
|
|
305
|
+
children: /* @__PURE__ */ b(xe, { ...te })
|
|
305
306
|
});
|
|
306
307
|
}
|
|
307
308
|
function xe(e) {
|
|
308
309
|
let { initResponse: t } = c(), n = t?.userId ?? null, [r, i] = y(n), [a, o] = y(0);
|
|
309
|
-
return n !== r && (i(n), r !== null && n !== null && o((e) => e + 1)), /* @__PURE__ */ b(
|
|
310
|
+
return n !== r && (i(n), r !== null && n !== null && o((e) => e + 1)), /* @__PURE__ */ b(h, { children: /* @__PURE__ */ b(be, { ...e }, a) }, a);
|
|
310
311
|
}
|
|
311
312
|
//#endregion
|
|
312
313
|
export { S as BankAccountOnboardingWidget, S as default };
|
package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js
CHANGED
|
@@ -45,7 +45,7 @@ function l({ labels: t, accountDetailsLabels: n, featureLabels: l, isBankingTagl
|
|
|
45
45
|
...C
|
|
46
46
|
})] });
|
|
47
47
|
}
|
|
48
|
-
function u({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m,
|
|
48
|
+
function u({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
|
|
49
49
|
return /* @__PURE__ */ s(t, {
|
|
50
50
|
widgetName: n,
|
|
51
51
|
baseUrl: e,
|
|
@@ -59,7 +59,8 @@ function u({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gat
|
|
|
59
59
|
errorFallback: f,
|
|
60
60
|
onError: p,
|
|
61
61
|
analytics: m,
|
|
62
|
-
|
|
62
|
+
disclosuresAcceptance: h,
|
|
63
|
+
children: /* @__PURE__ */ s(l, { ...g })
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
66
|
//#endregion
|
|
@@ -19,7 +19,7 @@ function c(n) {
|
|
|
19
19
|
i(t.Mounted);
|
|
20
20
|
}, [i]), /* @__PURE__ */ o(r, { ...n });
|
|
21
21
|
}
|
|
22
|
-
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g,
|
|
22
|
+
function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, implementation: d, uiFramework: f, errorFallback: p, onError: m, finopsThemeColors: h, analytics: g, disclosuresAcceptance: _, pageTitleComponent: v = s, ...y }) {
|
|
23
23
|
return /* @__PURE__ */ o(i, {
|
|
24
24
|
widgetName: n,
|
|
25
25
|
baseUrl: e,
|
|
@@ -34,9 +34,10 @@ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gat
|
|
|
34
34
|
onError: m,
|
|
35
35
|
finopsThemeColors: h,
|
|
36
36
|
analytics: g,
|
|
37
|
+
disclosuresAcceptance: _,
|
|
37
38
|
children: /* @__PURE__ */ o(c, {
|
|
38
|
-
...
|
|
39
|
-
pageTitleComponent:
|
|
39
|
+
...y,
|
|
40
|
+
pageTitleComponent: v
|
|
40
41
|
})
|
|
41
42
|
});
|
|
42
43
|
}
|
|
@@ -92,7 +92,7 @@ function w({ labels: i, tabsLabels: f, approvalPolicyLabels: w, approvalPolicyCo
|
|
|
92
92
|
}) : null
|
|
93
93
|
] });
|
|
94
94
|
}
|
|
95
|
-
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d,
|
|
95
|
+
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: p, ...m }) {
|
|
96
96
|
return /* @__PURE__ */ b(i, {
|
|
97
97
|
widgetName: f,
|
|
98
98
|
baseUrl: e,
|
|
@@ -106,7 +106,8 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
106
106
|
errorFallback: l,
|
|
107
107
|
onError: u,
|
|
108
108
|
analytics: d,
|
|
109
|
-
|
|
109
|
+
disclosuresAcceptance: p,
|
|
110
|
+
children: /* @__PURE__ */ b(w, { ...m })
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js
CHANGED
|
@@ -83,7 +83,7 @@ function w({ cardId: r, cardProgram: l, onClose: w, labels: T, featureLabels: E,
|
|
|
83
83
|
onRetry: N === d.Supported ? G : void 0
|
|
84
84
|
})] });
|
|
85
85
|
}
|
|
86
|
-
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f,
|
|
86
|
+
function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, ...m }) {
|
|
87
87
|
return /* @__PURE__ */ S(r, {
|
|
88
88
|
widgetName: l,
|
|
89
89
|
baseUrl: e,
|
|
@@ -97,7 +97,8 @@ function T({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
|
|
|
97
97
|
errorFallback: u,
|
|
98
98
|
onError: d,
|
|
99
99
|
analytics: f,
|
|
100
|
-
|
|
100
|
+
disclosuresAcceptance: p,
|
|
101
|
+
children: /* @__PURE__ */ S(w, { ...m })
|
|
101
102
|
});
|
|
102
103
|
}
|
|
103
104
|
//#endregion
|
|
@@ -68,7 +68,7 @@ function m({ cardProgram: e, pagination: t, defaultPagination: m, onPaginationCh
|
|
|
68
68
|
}, V)
|
|
69
69
|
})] });
|
|
70
70
|
}
|
|
71
|
-
function h({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p,
|
|
71
|
+
function h({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, disclosuresAcceptance: h, ...g }) {
|
|
72
72
|
return /* @__PURE__ */ f(e, {
|
|
73
73
|
widgetName: t,
|
|
74
74
|
baseUrl: n,
|
|
@@ -82,7 +82,8 @@ function h({ baseUrl: n, widgetToken: r, organizationId: i, configClient: a, gat
|
|
|
82
82
|
errorFallback: u,
|
|
83
83
|
onError: d,
|
|
84
84
|
analytics: p,
|
|
85
|
-
|
|
85
|
+
disclosuresAcceptance: h,
|
|
86
|
+
children: /* @__PURE__ */ f(m, { ...g })
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
89
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js
CHANGED
|
@@ -198,7 +198,7 @@ function g({ counterpartType: t, pageSizeOptions: s = c, showTitle: g, onViewAll
|
|
|
198
198
|
})
|
|
199
199
|
] });
|
|
200
200
|
}
|
|
201
|
-
function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f,
|
|
201
|
+
function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: o, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, ...h }) {
|
|
202
202
|
return /* @__PURE__ */ m(t, {
|
|
203
203
|
widgetName: s,
|
|
204
204
|
baseUrl: e,
|
|
@@ -212,7 +212,8 @@ function _({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
|
|
|
212
212
|
errorFallback: u,
|
|
213
213
|
onError: d,
|
|
214
214
|
analytics: f,
|
|
215
|
-
|
|
215
|
+
disclosuresAcceptance: p,
|
|
216
|
+
children: /* @__PURE__ */ m(g, { ...h }, h.counterpartType)
|
|
216
217
|
});
|
|
217
218
|
}
|
|
218
219
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
CHANGED
|
@@ -16,16 +16,16 @@ import { CREATE_CARD_WIDGET_LABELS_EN as o } from "../../ui/dist/lib/CreateCardW
|
|
|
16
16
|
import { CreateCardView as s, MailingOptionValue as c } from "../../ui/dist/lib/CreateCardWidget/types.js";
|
|
17
17
|
import { CreateCardWidget as te } from "../../ui/dist/lib/CreateCardWidget/CreateCardWidget.js";
|
|
18
18
|
import "../../ui/dist/index.js";
|
|
19
|
-
import { CardFormatValue as l, buildCreateDebitCardRequest as u, createDebitCardReference as
|
|
20
|
-
import { resolveCreateCardFeatureLabels as
|
|
21
|
-
import { CreateCardWidgetAnalyticsEvent as
|
|
22
|
-
import { getCreateCardPermissions as
|
|
23
|
-
import { useCreateCardCardholderOptions as
|
|
24
|
-
import { useCreateCard as
|
|
25
|
-
import { useCreateDebitCardMutation as
|
|
26
|
-
import { useCreateCardOrganizationQuery as
|
|
19
|
+
import { CardFormatValue as l, buildCreateDebitCardRequest as u, createDebitCardReference as d, formatBusinessAddress as ne, isBusinessAddressComplete as re, isManualAddressComplete as ie } from "./index3.js";
|
|
20
|
+
import { resolveCreateCardFeatureLabels as ae } from "./index4.js";
|
|
21
|
+
import { CreateCardWidgetAnalyticsEvent as oe, WIDGET_NAME as f } from "./index2.js";
|
|
22
|
+
import { getCreateCardPermissions as se } from "./index5.js";
|
|
23
|
+
import { useCreateCardCardholderOptions as ce } from "./index6.js";
|
|
24
|
+
import { useCreateCard as le } from "../../data-access/dist/index2.js";
|
|
25
|
+
import { useCreateDebitCardMutation as ue } from "../../data-access/dist/index4.js";
|
|
26
|
+
import { useCreateCardOrganizationQuery as de } from "../../data-access/dist/index5.js";
|
|
27
27
|
import "../../data-access/dist/index.js";
|
|
28
|
-
import { useEffect as
|
|
28
|
+
import { useEffect as p, useMemo as m, useRef as fe, useState as h } from "react";
|
|
29
29
|
import { Fragment as pe, jsx as g, jsxs as me } from "react/jsx-runtime";
|
|
30
30
|
//#region ../../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
|
|
31
31
|
var _ = {
|
|
@@ -52,53 +52,53 @@ function y(e, t) {
|
|
|
52
52
|
let n = e.nickname?.trim(), r = v(e.accountNumber);
|
|
53
53
|
return n && r ? `${n} (${r})` : n || r || t;
|
|
54
54
|
}
|
|
55
|
-
function b({ cardArtSrc: ee, labels:
|
|
56
|
-
let C = r(), { isReady: w } =
|
|
55
|
+
function b({ cardArtSrc: ee, labels: f, featureLabels: v, className: b, onClose: x, onCancel: ve, onViewCard: S }) {
|
|
56
|
+
let C = r(), { isReady: w } = le(), { initResponse: T, organizationId: E } = a(), D = m(() => se(T?.scopes), [T?.scopes]), O = ae(v), k = {
|
|
57
57
|
...o,
|
|
58
|
-
...
|
|
58
|
+
...f,
|
|
59
59
|
setup: {
|
|
60
60
|
...o.setup,
|
|
61
|
-
...
|
|
61
|
+
...f?.setup
|
|
62
62
|
}
|
|
63
|
-
}, ye =
|
|
63
|
+
}, ye = m(() => [{
|
|
64
64
|
value: l.Virtual,
|
|
65
65
|
label: k.setup.cardFormatVirtual
|
|
66
66
|
}, {
|
|
67
67
|
value: l.Physical,
|
|
68
68
|
label: k.setup.cardFormatPhysical
|
|
69
|
-
}], [k.setup.cardFormatPhysical, k.setup.cardFormatVirtual]), be =
|
|
69
|
+
}], [k.setup.cardFormatPhysical, k.setup.cardFormatVirtual]), be = m(() => i(), []), [xe, A] = h(s.Setup), [j, M] = h(null), [N, P] = h(null), [Se, F] = h(null), [I, L] = h(null), [R, z] = h(_), [B, V] = h(null), [H, U] = h(null), W = () => {
|
|
70
70
|
M(null), P(null), F(null), L(null), z(_), V(null), U(null), A(s.Setup);
|
|
71
|
-
}, G =
|
|
71
|
+
}, G = fe(E);
|
|
72
72
|
E && E !== G.current && (G.current = E, W());
|
|
73
|
-
let K =
|
|
74
|
-
|
|
73
|
+
let K = fe(!0);
|
|
74
|
+
p(() => (K.current = !0, () => {
|
|
75
75
|
K.current = !1;
|
|
76
|
-
}), []),
|
|
77
|
-
C(
|
|
76
|
+
}), []), p(() => {
|
|
77
|
+
C(oe.Mounted);
|
|
78
78
|
}, [C]);
|
|
79
|
-
let { options: Ce, isError: q, refetch: we } =
|
|
79
|
+
let { options: Ce, isError: q, refetch: we } = ce({ enabled: w && D.canReadUsers && D.canReadRoles }), Te = de({ enabled: w && D.canReadOrganization }), J = t({ enabled: w && D.canReadFundingAccounts }), Ee = ue(), Y = !!J.isError && w && D.canReadFundingAccounts, X = m(() => Y ? [] : (J.data?.data ?? []).map((e) => ({
|
|
80
80
|
value: e.id,
|
|
81
81
|
label: y(e, O.untitledFundingAccount)
|
|
82
82
|
})), [
|
|
83
83
|
J.data?.data,
|
|
84
84
|
O.untitledFundingAccount,
|
|
85
85
|
Y
|
|
86
|
-
]), Z = Se ?? (X.length === 1 ? X[0].value : null), Q = Te.data?.address, De =
|
|
86
|
+
]), Z = Se ?? (X.length === 1 ? X[0].value : null), Q = Te.data?.address, De = ne(Q), Oe = re(Q), $ = N === l.Physical, ke = $ && I === c.BusinessAddress && !!De, Ae = $ && I === c.DifferentAddress, je = Y || X.length > 0, Me = !w || !D.canIssue || Ee.isPending || q || Y || !j || !N || !Z || N === l.Physical && (!I || I === c.BusinessAddress && !Oe || I === c.DifferentAddress && !ie(R)), Ne = m(() => {
|
|
87
87
|
let e = _e(H, O);
|
|
88
88
|
return {
|
|
89
|
-
...
|
|
89
|
+
...f,
|
|
90
90
|
success: {
|
|
91
|
-
...
|
|
91
|
+
...f?.success,
|
|
92
92
|
...e
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
}, [
|
|
96
96
|
H,
|
|
97
97
|
O,
|
|
98
|
-
|
|
98
|
+
f
|
|
99
99
|
]), Pe = async () => {
|
|
100
100
|
if (!w) return;
|
|
101
|
-
let t =
|
|
101
|
+
let t = d(), n = u({
|
|
102
102
|
cardholderUserId: j,
|
|
103
103
|
format: N,
|
|
104
104
|
bankAccountId: Z,
|
|
@@ -180,9 +180,9 @@ function b({ cardArtSrc: ee, labels: d, featureLabels: v, className: b, onClose:
|
|
|
180
180
|
} : void 0
|
|
181
181
|
})] });
|
|
182
182
|
}
|
|
183
|
-
function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: te, analytics: l,
|
|
183
|
+
function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: o, uiFramework: s, errorFallback: c, onError: te, analytics: l, disclosuresAcceptance: u, ...d }) {
|
|
184
184
|
return /* @__PURE__ */ g(ee, {
|
|
185
|
-
widgetName:
|
|
185
|
+
widgetName: f,
|
|
186
186
|
baseUrl: e,
|
|
187
187
|
widgetToken: t,
|
|
188
188
|
organizationId: n,
|
|
@@ -194,7 +194,8 @@ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
|
|
|
194
194
|
errorFallback: c,
|
|
195
195
|
onError: te,
|
|
196
196
|
analytics: l,
|
|
197
|
-
|
|
197
|
+
disclosuresAcceptance: u,
|
|
198
|
+
children: /* @__PURE__ */ g(b, { ...d })
|
|
198
199
|
});
|
|
199
200
|
}
|
|
200
201
|
//#endregion
|
|
@@ -201,7 +201,7 @@ function R() {
|
|
|
201
201
|
onDeleteRule: (e) => void le(e)
|
|
202
202
|
})] });
|
|
203
203
|
}
|
|
204
|
-
function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i, configClient: a, gatewayRouting: s, linkComponent: c, implementation: l, uiFramework: u, errorFallback: d, onError: p } = {}) {
|
|
204
|
+
function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i, configClient: a, gatewayRouting: s, linkComponent: c, implementation: l, uiFramework: u, errorFallback: d, onError: p, disclosuresAcceptance: m } = {}) {
|
|
205
205
|
return /* @__PURE__ */ S(o, {
|
|
206
206
|
widgetName: f,
|
|
207
207
|
baseUrl: i,
|
|
@@ -214,6 +214,7 @@ function z({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i,
|
|
|
214
214
|
uiFramework: u,
|
|
215
215
|
errorFallback: d,
|
|
216
216
|
onError: p,
|
|
217
|
+
disclosuresAcceptance: m,
|
|
217
218
|
children: /* @__PURE__ */ S(R, {})
|
|
218
219
|
});
|
|
219
220
|
}
|
package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js
CHANGED
|
@@ -29,7 +29,7 @@ function u({ labels: t, receiptUpload: r, receiptsContent: u, matchingContent: d
|
|
|
29
29
|
requirementsContent: p ?? /* @__PURE__ */ l(o, {})
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
|
-
function d({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m,
|
|
32
|
+
function d({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
|
|
33
33
|
return /* @__PURE__ */ l(t, {
|
|
34
34
|
widgetName: r,
|
|
35
35
|
baseUrl: e,
|
|
@@ -43,7 +43,8 @@ function d({ baseUrl: e, widgetToken: n, organizationId: i, configClient: a, gat
|
|
|
43
43
|
errorFallback: f,
|
|
44
44
|
onError: p,
|
|
45
45
|
analytics: m,
|
|
46
|
-
|
|
46
|
+
disclosuresAcceptance: h,
|
|
47
|
+
children: /* @__PURE__ */ l(u, { ...g })
|
|
47
48
|
});
|
|
48
49
|
}
|
|
49
50
|
//#endregion
|
|
@@ -46,7 +46,7 @@ function m({ isOpen: e, onClose: t, ...n }) {
|
|
|
46
46
|
...n
|
|
47
47
|
}) : null;
|
|
48
48
|
}
|
|
49
|
-
function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f,
|
|
49
|
+
function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: f, disclosuresAcceptance: p, isOpen: h, preSelectedReceiptIds: g, onClose: _, targetTransactionId: v, onSingleTransactionUpdate: y }) {
|
|
50
50
|
return /* @__PURE__ */ d(n, {
|
|
51
51
|
widgetName: o,
|
|
52
52
|
baseUrl: e,
|
|
@@ -59,12 +59,13 @@ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
|
|
|
59
59
|
uiFramework: l,
|
|
60
60
|
errorFallback: u,
|
|
61
61
|
onError: f,
|
|
62
|
+
disclosuresAcceptance: p,
|
|
62
63
|
children: /* @__PURE__ */ d(m, {
|
|
63
|
-
isOpen:
|
|
64
|
-
preSelectedReceiptIds:
|
|
65
|
-
onClose:
|
|
66
|
-
targetTransactionId:
|
|
67
|
-
onSingleTransactionUpdate:
|
|
64
|
+
isOpen: h,
|
|
65
|
+
preSelectedReceiptIds: g,
|
|
66
|
+
onClose: _,
|
|
67
|
+
targetTransactionId: v,
|
|
68
|
+
onSingleTransactionUpdate: y
|
|
68
69
|
})
|
|
69
70
|
});
|
|
70
71
|
}
|
|
@@ -63,7 +63,7 @@ function x() {
|
|
|
63
63
|
})]
|
|
64
64
|
})] });
|
|
65
65
|
}
|
|
66
|
-
function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a, configClient: o, gatewayRouting: s, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p } = {}) {
|
|
66
|
+
function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a, configClient: o, gatewayRouting: s, linkComponent: c, implementation: u, uiFramework: d, errorFallback: f, onError: p, disclosuresAcceptance: m } = {}) {
|
|
67
67
|
return /* @__PURE__ */ h(i, {
|
|
68
68
|
widgetName: l,
|
|
69
69
|
baseUrl: a,
|
|
@@ -76,6 +76,7 @@ function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a,
|
|
|
76
76
|
uiFramework: d,
|
|
77
77
|
errorFallback: f,
|
|
78
78
|
onError: p,
|
|
79
|
+
disclosuresAcceptance: m,
|
|
79
80
|
children: /* @__PURE__ */ h(x, {})
|
|
80
81
|
});
|
|
81
82
|
}
|