@tesouro/embedded-components-react 0.3.25 → 0.3.27

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.
Files changed (64) hide show
  1. package/README.md +3 -0
  2. package/dist/experimental/WidgetSuite.d.ts +32 -3
  3. package/dist/experimental/index.d.ts +32 -3
  4. package/dist/index.d.ts +60 -25
  5. package/dist/lib/AcceptDisclosuresWidget.d.ts +32 -3
  6. package/dist/lib/BalancesWidget.d.ts +31 -2
  7. package/dist/lib/BankAccountOnboardingWidget.d.ts +32 -3
  8. package/dist/lib/BankAccountsWidget.d.ts +32 -3
  9. package/dist/lib/BillPayWidget.d.ts +31 -2
  10. package/dist/lib/CardDetailsWidget.d.ts +32 -3
  11. package/dist/lib/CardsWidget.d.ts +32 -3
  12. package/dist/lib/ChartOfAccountsWidget.d.ts +32 -3
  13. package/dist/lib/CounterpartsWidget.d.ts +32 -3
  14. package/dist/lib/CreateCardWidget.d.ts +32 -3
  15. package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +32 -3
  16. package/dist/lib/ExpenseManagementWidget.d.ts +32 -3
  17. package/dist/lib/ExpenseRequirementsWidget.d.ts +32 -3
  18. package/dist/lib/HelpWidget.d.ts +32 -3
  19. package/dist/lib/InsightsWidget.d.ts +31 -2
  20. package/dist/lib/InvoicingWidget.d.ts +32 -3
  21. package/dist/lib/LinkedAccountsWidget.d.ts +32 -3
  22. package/dist/lib/ProductsWidget.d.ts +32 -3
  23. package/dist/lib/ProfileWidget.d.ts +32 -3
  24. package/dist/lib/ReceiptMatchWidget.d.ts +32 -3
  25. package/dist/lib/ReceivablesWidget.d.ts +32 -3
  26. package/dist/lib/SettingsWidget.d.ts +32 -3
  27. package/dist/lib/TagsWidget.d.ts +32 -3
  28. package/dist/lib/TeamWidget.d.ts +32 -3
  29. package/dist/lib/TransfersWidget.d.ts +31 -2
  30. package/dist/lib/WidgetProvider.d.ts +39 -4
  31. package/dist/lib/WidgetProviderPublic.d.ts +31 -2
  32. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index5.js +3 -2
  33. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index18.js +131 -130
  34. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +3 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +4 -3
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +3 -2
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +10 -10
  38. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +3 -2
  39. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +3 -2
  40. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +3 -2
  41. package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +88 -87
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +7 -6
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +2 -1
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +3 -2
  45. package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +2 -1
  46. package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +5 -4
  47. package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +3 -2
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +3 -2
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +5 -4
  50. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +3 -2
  51. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +3 -2
  52. package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +3 -2
  53. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +3 -2
  54. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +50 -48
  55. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetErrorBoundary.js +13 -13
  56. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +174 -163
  57. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/isDisclosuresAcceptanceRequired.js +12 -1
  58. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/labels.js +7 -1
  59. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/events.js +1 -0
  61. package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +3 -2
  62. package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +3 -2
  63. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index8.js +3 -2
  64. package/package.json +1 -1
@@ -18,26 +18,26 @@ import { CREATE_CARD_WIDGET_LABELS_EN as l } from "../../ui/dist/lib/CreateCardW
18
18
  import { CreateCardView as u, MailingOptionValue as d } from "../../ui/dist/lib/CreateCardWidget/types.js";
19
19
  import { CreateCardWidget as f } from "../../ui/dist/lib/CreateCardWidget/CreateCardWidget.js";
20
20
  import "../../ui/dist/index.js";
21
- import { CardFormatValue as p, buildCreateDebitCardRequest as ee, createDebitCardReference as te, formatBusinessAddress as ne, isBusinessAddressComplete as re, isManualAddressComplete as ie } from "./index3.js";
22
- import { resolveCreateCardFeatureLabels as ae } from "./index4.js";
23
- import { CreateCardWidgetAnalyticsEvent as oe, WIDGET_NAME as se } from "./index2.js";
24
- import { getCreateCardPermissions as ce } from "./index5.js";
25
- import { useCreateCardCardholderOptions as le } from "./index6.js";
26
- import { useCreateCard as ue } from "../../data-access/dist/index2.js";
27
- import { useCreateDebitCardMutation as de } from "../../data-access/dist/index4.js";
28
- import { useManageDebitCardAccessMutation as fe } from "../../data-access/dist/index5.js";
29
- import { useCreateCardOrganizationQuery as pe } from "../../data-access/dist/index6.js";
21
+ import { CardFormatValue as p, buildCreateDebitCardRequest as m, createDebitCardReference as ee, formatBusinessAddress as te, isBusinessAddressComplete as ne, isManualAddressComplete as re } from "./index3.js";
22
+ import { resolveCreateCardFeatureLabels as ie } from "./index4.js";
23
+ import { CreateCardWidgetAnalyticsEvent as ae, WIDGET_NAME as oe } from "./index2.js";
24
+ import { getCreateCardPermissions as se } from "./index5.js";
25
+ import { useCreateCardCardholderOptions as ce } from "./index6.js";
26
+ import { useCreateCard as le } from "../../data-access/dist/index2.js";
27
+ import { useCreateDebitCardMutation as ue } from "../../data-access/dist/index4.js";
28
+ import { useManageDebitCardAccessMutation as de } from "../../data-access/dist/index5.js";
29
+ import { useCreateCardOrganizationQuery as fe } from "../../data-access/dist/index6.js";
30
30
  import "../../data-access/dist/index.js";
31
- import { useEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
32
- import { Fragment as me, jsx as v, jsxs as he } from "react/jsx-runtime";
31
+ import { useEffect as h, useMemo as g, useRef as _, useState as v } from "react";
32
+ import { Fragment as pe, jsx as y, jsxs as me } from "react/jsx-runtime";
33
33
  //#region ../../libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js
34
- var ge = t.DebitCardIssueOrg, _e = {
34
+ var he = t.DebitCardIssueOrg, ge = {
35
35
  street: "",
36
36
  city: "",
37
37
  state: "",
38
38
  zip: ""
39
- }, ve = 3e3, y = 5e3;
40
- function ye(e, t) {
39
+ }, _e = 3e3, b = 5e3;
40
+ function ve(e, t) {
41
41
  if (e === "PENDING_ACTIVATION") return {
42
42
  title: t.success.pendingActivationTitle,
43
43
  description: t.success.pendingActivationDescription
@@ -47,58 +47,58 @@ function ye(e, t) {
47
47
  description: t.success.createdDescription
48
48
  };
49
49
  }
50
- function b(e) {
50
+ function x(e) {
51
51
  let t = e?.trim().slice(-4);
52
52
  return t ? `••••${t}` : void 0;
53
53
  }
54
- function x(e, t) {
55
- let n = e.nickname?.trim(), r = b(e.accountNumber);
54
+ function S(e, t) {
55
+ let n = e.nickname?.trim(), r = x(e.accountNumber);
56
56
  return n && r ? `${n} (${r})` : n || r || t;
57
57
  }
58
- function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose: S, onCancel: C, onViewCard: w }) {
59
- let T = a(), { isReady: E } = ue(), { initResponse: D, organizationId: O } = c(), k = h(() => ce(D?.scopes), [D?.scopes]), A = ae(se), j = {
58
+ function C({ cardArtSrc: t, labels: o, featureLabels: oe, className: x, onClose: C, onCancel: w, onViewCard: T }) {
59
+ let E = a(), { isReady: D } = le(), { initResponse: O, organizationId: k } = c(), A = g(() => se(O?.scopes), [O?.scopes]), j = ie(oe), M = {
60
60
  ...l,
61
61
  ...o,
62
62
  setup: {
63
63
  ...l.setup,
64
64
  ...o?.setup
65
65
  }
66
- }, be = h(() => [{
66
+ }, ye = g(() => [{
67
67
  value: p.Virtual,
68
- label: j.setup.cardFormatVirtual
68
+ label: M.setup.cardFormatVirtual
69
69
  }, {
70
70
  value: p.Physical,
71
- label: j.setup.cardFormatPhysical
72
- }], [j.setup.cardFormatPhysical, j.setup.cardFormatVirtual]), xe = h(() => s(), []), [Se, M] = _(u.Setup), [N, P] = _(null), [F, I] = _(null), [Ce, L] = _(null), [R, z] = _(null), [B, V] = _(_e), [H, we] = _(null), [Te, Ee] = _(null), De = () => {
73
- P(null), I(null), L(null), z(null), V(_e), we(null), Ee(null), M(u.Setup);
74
- }, Oe = g(O);
75
- O && O !== Oe.current && (Oe.current = O, De());
76
- let U = g(!0);
77
- m(() => (U.current = !0, () => {
71
+ label: M.setup.cardFormatPhysical
72
+ }], [M.setup.cardFormatPhysical, M.setup.cardFormatVirtual]), be = g(() => s(), []), [xe, N] = v(u.Setup), [P, F] = v(null), [I, L] = v(null), [Se, R] = v(null), [z, B] = v(null), [V, H] = v(ge), [Ce, we] = v(null), [Te, Ee] = v(null), De = () => {
73
+ F(null), L(null), R(null), B(null), H(ge), we(null), Ee(null), N(u.Setup);
74
+ }, Oe = _(k);
75
+ k && k !== Oe.current && (Oe.current = k, De());
76
+ let U = _(!0);
77
+ h(() => (U.current = !0, () => {
78
78
  U.current = !1;
79
- }), []), m(() => {
80
- T(oe.Mounted);
81
- }, [T]);
82
- let { options: ke, isError: W, refetch: Ae } = le({ enabled: E && k.canReadUsers }), G = r({
83
- enabled: E && k.canReadUsers,
84
- permissions: [ge]
85
- }), je = h(() => !E || !k.canReadUsers || G.isResolving || G.isError ? [] : (G.data?.data ?? []).filter((e) => e.organizationId === O).map((e) => e.id), [
79
+ }), []), h(() => {
80
+ E(ae.Mounted);
81
+ }, [E]);
82
+ let { options: ke, isError: W, refetch: Ae } = ce({ enabled: D && A.canReadUsers }), G = r({
83
+ enabled: D && A.canReadUsers,
84
+ permissions: [he]
85
+ }), je = g(() => !D || !A.canReadUsers || G.isResolving || G.isError ? [] : (G.data?.data ?? []).filter((e) => e.organizationId === k).map((e) => e.id), [
86
86
  G.data?.data,
87
87
  G.isError,
88
88
  G.isResolving,
89
- E,
90
- O,
91
- k.canReadUsers
92
- ]), K = !!G.isError && E && k.canReadUsers, Me = E && k.canReadUsers && G.isResolving, q = g(null);
93
- m(() => {
89
+ D,
90
+ k,
91
+ A.canReadUsers
92
+ ]), K = !!G.isError && D && A.canReadUsers, Me = D && A.canReadUsers && G.isResolving, q = _(null);
93
+ h(() => {
94
94
  if (!K) {
95
95
  q.current !== null && (e.dismiss(q.current), q.current = null);
96
96
  return;
97
97
  }
98
- return q.current = e.error(A.toast.debitCardIssuersError, {
98
+ return q.current = e.error(j.toast.debitCardIssuersError, {
99
99
  duration: Infinity,
100
100
  action: {
101
- label: A.toast.retry,
101
+ label: j.toast.retry,
102
102
  onClick: () => {
103
103
  G.refetch();
104
104
  }
@@ -108,19 +108,19 @@ function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose:
108
108
  };
109
109
  }, [
110
110
  G.refetch,
111
- A.toast.debitCardIssuersError,
112
- A.toast.retry,
111
+ j.toast.debitCardIssuersError,
112
+ j.toast.retry,
113
113
  K
114
114
  ]);
115
- let Ne = pe({ enabled: E && k.canReadOrganization }), J = n({ enabled: E && k.canReadFundingAccounts }), Pe = de(), Fe = fe(), Y = !!J.isError && E && k.canReadFundingAccounts, X = h(() => Y ? [] : (J.data?.data ?? []).map((e) => ({
115
+ let Ne = fe({ enabled: D && A.canReadOrganization }), J = n({ enabled: D && A.canReadFundingAccounts }), Pe = ue(), Fe = de(), Y = !!J.isError && D && A.canReadFundingAccounts, X = g(() => Y ? [] : (J.data?.data ?? []).map((e) => ({
116
116
  value: e.id,
117
- label: x(e, A.untitledFundingAccount)
117
+ label: S(e, j.untitledFundingAccount)
118
118
  })), [
119
119
  J.data?.data,
120
- A.untitledFundingAccount,
120
+ j.untitledFundingAccount,
121
121
  Y
122
- ]), Z = Ce ?? (X.length === 1 ? X[0].value : null), Q = Ne.data?.address, Ie = ne(Q), Le = re(Q), $ = F === p.Physical, Re = $ && R === d.BusinessAddress && !!Ie, ze = $ && R === d.DifferentAddress, Be = Y || X.length > 0, Ve = !E || !k.canIssue || Pe.isPending || W || Y || K || Me || !N || !F || !Z || F === p.Physical && (!R || R === d.BusinessAddress && !Le || R === d.DifferentAddress && !ie(B)), He = h(() => {
123
- let e = ye(Te, A);
122
+ ]), Z = Se ?? (X.length === 1 ? X[0].value : null), Q = Ne.data?.address, Ie = te(Q), Le = ne(Q), $ = I === p.Physical, Re = $ && z === d.BusinessAddress && !!Ie, ze = $ && z === d.DifferentAddress, Be = Y || X.length > 0, Ve = !D || !A.canIssue || Pe.isPending || W || Y || K || Me || !P || !I || !Z || I === p.Physical && (!z || z === d.BusinessAddress && !Le || z === d.DifferentAddress && !re(V)), He = g(() => {
123
+ let e = ve(Te, j);
124
124
  return {
125
125
  ...o,
126
126
  success: {
@@ -130,22 +130,22 @@ function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose:
130
130
  };
131
131
  }, [
132
132
  Te,
133
- A,
133
+ j,
134
134
  o
135
135
  ]), Ue = async () => {
136
- if (!E) return;
137
- let t = te(), n = ee({
138
- cardholderUserId: N,
139
- format: F,
136
+ if (!D) return;
137
+ let t = ee(), n = m({
138
+ cardholderUserId: P,
139
+ format: I,
140
140
  bankAccountId: Z,
141
141
  reference: t,
142
- mailingOption: R,
142
+ mailingOption: z,
143
143
  orgAddress: Q,
144
- manualAddress: B
144
+ manualAddress: V
145
145
  });
146
146
  if (!n) return;
147
- M(u.Preparing);
148
- let r = e.loading(A.toast.creating);
147
+ N(u.Preparing);
148
+ let r = e.loading(j.toast.creating);
149
149
  try {
150
150
  let t = await Pe.mutateAsync({ body: n });
151
151
  if (!U.current) {
@@ -163,9 +163,9 @@ function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose:
163
163
  e.dismiss(r);
164
164
  return;
165
165
  }
166
- M(u.Success), e.warning(A.toast.companyAdminAccessWarning, {
166
+ N(u.Success), e.warning(j.toast.companyAdminAccessWarning, {
167
167
  id: r,
168
- duration: y
168
+ duration: b
169
169
  });
170
170
  return;
171
171
  }
@@ -173,73 +173,73 @@ function S({ cardArtSrc: t, labels: o, featureLabels: se, className: b, onClose:
173
173
  e.dismiss(r);
174
174
  return;
175
175
  }
176
- M(u.Success), e.success(A.toast.success, {
176
+ N(u.Success), e.success(j.toast.success, {
177
177
  id: r,
178
- duration: ve
178
+ duration: _e
179
179
  });
180
180
  } catch {
181
181
  if (!U.current) {
182
182
  e.dismiss(r);
183
183
  return;
184
184
  }
185
- M(u.Setup), e.error(A.toast.error, {
185
+ N(u.Setup), e.error(j.toast.error, {
186
186
  id: r,
187
- duration: y
187
+ duration: b
188
188
  });
189
189
  }
190
190
  };
191
- return /* @__PURE__ */ he(me, { children: [/* @__PURE__ */ v(i, {}), /* @__PURE__ */ v(f, {
192
- view: Se,
191
+ return /* @__PURE__ */ me(pe, { children: [/* @__PURE__ */ y(i, {}), /* @__PURE__ */ y(f, {
192
+ view: xe,
193
193
  cardArtSrc: t,
194
194
  labels: He,
195
- className: b,
195
+ className: x,
196
196
  cardholderOptions: ke,
197
- selectedCardholder: N,
198
- onCardholderSelect: P,
197
+ selectedCardholder: P,
198
+ onCardholderSelect: F,
199
199
  isCardholderError: W,
200
200
  onCardholderRetry: W ? Ae : void 0,
201
- cardFormatOptions: be,
202
- selectedCardFormat: F,
201
+ cardFormatOptions: ye,
202
+ selectedCardFormat: I,
203
203
  onCardFormatSelect: (e) => {
204
- I(e), z(null);
204
+ L(e), B(null);
205
205
  },
206
206
  isFundingAccountVisible: Be,
207
207
  fundingAccountOptions: X,
208
208
  selectedFundingAccount: Z,
209
- onFundingAccountSelect: L,
209
+ onFundingAccountSelect: R,
210
210
  isFundingAccountError: Y,
211
211
  onFundingAccountRetry: Y ? () => {
212
212
  J.refetch();
213
213
  } : void 0,
214
214
  isMailingSectionVisible: $,
215
- selectedMailingOption: R,
216
- onMailingOptionSelect: z,
215
+ selectedMailingOption: z,
216
+ onMailingOptionSelect: B,
217
217
  businessAddress: Ie,
218
218
  isBusinessAddressVisible: Re,
219
219
  isManualAddressVisible: ze,
220
- manualAddress: B,
221
- onManualAddressChange: (e) => V((t) => ({
220
+ manualAddress: V,
221
+ onManualAddressChange: (e) => H((t) => ({
222
222
  ...t,
223
223
  ...e
224
224
  })),
225
- stateOptions: xe,
225
+ stateOptions: be,
226
226
  isCreateDisabled: Ve,
227
227
  onCreateClick: () => {
228
228
  Ue();
229
229
  },
230
230
  onCancelClick: () => {
231
- C?.(), S?.();
231
+ w?.(), C?.();
232
232
  },
233
- onClose: S,
233
+ onClose: C,
234
234
  onCreateAnotherClick: De,
235
- onViewCardClick: w && H ? () => {
236
- w(H);
235
+ onViewCardClick: T && Ce ? () => {
236
+ T(Ce);
237
237
  } : void 0
238
238
  })] });
239
239
  }
240
- function C({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, ...p }) {
241
- return /* @__PURE__ */ v(o, {
242
- widgetName: se,
240
+ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, disclosuresAcceptance: f, providerLabels: p, ...m }) {
241
+ return /* @__PURE__ */ y(o, {
242
+ widgetName: oe,
243
243
  baseUrl: e,
244
244
  widgetToken: t,
245
245
  organizationId: n,
@@ -252,8 +252,9 @@ function C({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
252
252
  onError: u,
253
253
  analytics: d,
254
254
  disclosuresAcceptance: f,
255
- children: /* @__PURE__ */ v(S, { ...p })
255
+ providerLabels: p,
256
+ children: /* @__PURE__ */ y(C, { ...m })
256
257
  });
257
258
  }
258
259
  //#endregion
259
- export { C as CreateCardWidget, x as formatFundingAccountLabel };
260
+ export { w as CreateCardWidget, S as formatFundingAccountLabel };
@@ -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, disclosuresAcceptance: p, isOpen: h, preSelectedReceiptIds: g, onClose: _, targetTransactionId: v, onSingleTransactionUpdate: y }) {
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, providerLabels: h, isOpen: g, preSelectedReceiptIds: _, onClose: v, targetTransactionId: y, onSingleTransactionUpdate: b }) {
50
50
  return /* @__PURE__ */ d(n, {
51
51
  widgetName: o,
52
52
  baseUrl: e,
@@ -60,12 +60,13 @@ function h({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
60
60
  errorFallback: u,
61
61
  onError: f,
62
62
  disclosuresAcceptance: p,
63
+ providerLabels: h,
63
64
  children: /* @__PURE__ */ d(m, {
64
- isOpen: h,
65
- preSelectedReceiptIds: g,
66
- onClose: _,
67
- targetTransactionId: v,
68
- onSingleTransactionUpdate: y
65
+ isOpen: g,
66
+ preSelectedReceiptIds: _,
67
+ onClose: v,
68
+ targetTransactionId: y,
69
+ onSingleTransactionUpdate: b
69
70
  })
70
71
  });
71
72
  }
@@ -210,7 +210,7 @@ function z() {
210
210
  }
211
211
  })] });
212
212
  }
213
- function B({ 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 } = {}) {
213
+ function B({ 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, providerLabels: h } = {}) {
214
214
  return /* @__PURE__ */ C(o, {
215
215
  widgetName: f,
216
216
  baseUrl: i,
@@ -224,6 +224,7 @@ function B({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: i,
224
224
  errorFallback: d,
225
225
  onError: p,
226
226
  disclosuresAcceptance: m,
227
+ providerLabels: h,
227
228
  children: /* @__PURE__ */ C(z, {})
228
229
  });
229
230
  }
@@ -27,7 +27,7 @@ function u({ labels: t, receiptUpload: o, receiptsContent: u, matchingContent: d
27
27
  requirementsContent: p ?? /* @__PURE__ */ l(s, {})
28
28
  });
29
29
  }
30
- function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
30
+ function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
31
31
  return /* @__PURE__ */ l(t, {
32
32
  widgetName: o,
33
33
  baseUrl: e,
@@ -42,7 +42,8 @@ function d({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
42
42
  onError: p,
43
43
  analytics: m,
44
44
  disclosuresAcceptance: h,
45
- children: /* @__PURE__ */ l(u, { ...g })
45
+ providerLabels: g,
46
+ children: /* @__PURE__ */ l(u, { ..._ })
46
47
  });
47
48
  }
48
49
  //#endregion
@@ -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, disclosuresAcceptance: m } = {}) {
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, providerLabels: g } = {}) {
67
67
  return /* @__PURE__ */ h(i, {
68
68
  widgetName: l,
69
69
  baseUrl: a,
@@ -77,6 +77,7 @@ function S({ token: e, orgId: t, widgetToken: n, organizationId: r, baseUrl: a,
77
77
  errorFallback: f,
78
78
  onError: p,
79
79
  disclosuresAcceptance: m,
80
+ providerLabels: g,
80
81
  children: /* @__PURE__ */ h(x, {})
81
82
  });
82
83
  }
@@ -111,7 +111,7 @@ function b({ onEdit: r, onDelete: o, onAdd: b, screenLabels: x, formLabels: S, d
111
111
  })
112
112
  ] })] });
113
113
  }
114
- function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, errorFallback: f, onError: p, ...m }) {
114
+ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, analytics: u, disclosuresAcceptance: d, providerLabels: f, errorFallback: p, onError: m, ...h }) {
115
115
  return /* @__PURE__ */ _(r, {
116
116
  widgetName: o,
117
117
  baseUrl: e,
@@ -124,9 +124,10 @@ function x({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gat
124
124
  uiFramework: l,
125
125
  analytics: u,
126
126
  disclosuresAcceptance: d,
127
- errorFallback: f,
128
- onError: p,
129
- children: /* @__PURE__ */ _(b, { ...m })
127
+ providerLabels: f,
128
+ errorFallback: p,
129
+ onError: m,
130
+ children: /* @__PURE__ */ _(b, { ...h })
130
131
  });
131
132
  }
132
133
  //#endregion
@@ -29,7 +29,7 @@ function u({ faq: n = o, bankName: a, ...u }) {
29
29
  ...u
30
30
  });
31
31
  }
32
- function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
32
+ function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
33
33
  return /* @__PURE__ */ l(n, {
34
34
  widgetName: a,
35
35
  baseUrl: e,
@@ -44,7 +44,8 @@ function d({ baseUrl: e, widgetToken: t, organizationId: r, configClient: i, gat
44
44
  onError: p,
45
45
  analytics: m,
46
46
  disclosuresAcceptance: h,
47
- children: /* @__PURE__ */ l(u, { ...g })
47
+ providerLabels: g,
48
+ children: /* @__PURE__ */ l(u, { ..._ })
48
49
  });
49
50
  }
50
51
  //#endregion
@@ -212,7 +212,7 @@ function S({ counterpartFormLabels: t, counterpartMessageLabels: a, defaultTab:
212
212
  })
213
213
  ] });
214
214
  }
215
- function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, ...m }) {
215
+ function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: p, providerLabels: m, ...h }) {
216
216
  return /* @__PURE__ */ b(t, {
217
217
  widgetName: a,
218
218
  baseUrl: e,
@@ -227,7 +227,8 @@ function C({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
227
227
  onError: d,
228
228
  analytics: f,
229
229
  disclosuresAcceptance: p,
230
- children: /* @__PURE__ */ b(S, { ...m })
230
+ providerLabels: m,
231
+ children: /* @__PURE__ */ b(S, { ...h })
231
232
  });
232
233
  }
233
234
  //#endregion
@@ -19,7 +19,7 @@ function c(n) {
19
19
  i(r.Mounted);
20
20
  }, [i]), /* @__PURE__ */ o(t, { ...n });
21
21
  }
22
- function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, disclosuresAcceptance: h, pageTitleComponent: g = s, uiFramework: _, ...v }) {
22
+ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gatewayRouting: l, linkComponent: u, errorFallback: d, onError: f, finopsThemeColors: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, pageTitleComponent: _ = s, uiFramework: v, ...y }) {
23
23
  return /* @__PURE__ */ o(n, {
24
24
  widgetName: i,
25
25
  baseUrl: e,
@@ -33,10 +33,11 @@ function l({ baseUrl: e, widgetToken: t, organizationId: r, configClient: a, gat
33
33
  finopsThemeColors: p,
34
34
  analytics: m,
35
35
  disclosuresAcceptance: h,
36
- uiFramework: _,
36
+ providerLabels: g,
37
+ uiFramework: v,
37
38
  children: /* @__PURE__ */ o(c, {
38
- ...v,
39
- pageTitleComponent: g
39
+ ...y,
40
+ pageTitleComponent: _
40
41
  })
41
42
  });
42
43
  }
@@ -22,7 +22,7 @@ function c({ labels: t, featureLabels: n }) {
22
22
  ...c
23
23
  })] });
24
24
  }
25
- function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, ...g }) {
25
+ function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gatewayRouting: s, linkComponent: l, implementation: u, uiFramework: d, errorFallback: f, onError: p, analytics: m, disclosuresAcceptance: h, providerLabels: g, ..._ }) {
26
26
  return /* @__PURE__ */ o(t, {
27
27
  widgetName: n,
28
28
  baseUrl: e,
@@ -37,7 +37,8 @@ function l({ baseUrl: e, widgetToken: r, organizationId: i, configClient: a, gat
37
37
  onError: p,
38
38
  analytics: m,
39
39
  disclosuresAcceptance: h,
40
- children: /* @__PURE__ */ o(c, { ...g })
40
+ providerLabels: g,
41
+ children: /* @__PURE__ */ o(c, { ..._ })
41
42
  });
42
43
  }
43
44
  //#endregion
@@ -103,7 +103,7 @@ function h({ pageSizeOptions: t = o, screenLabels: a, formLabels: h, detailsLabe
103
103
  })
104
104
  ] });
105
105
  }
106
- function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, ...g }) {
106
+ function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: o, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: f, disclosuresAcceptance: m, providerLabels: g, ..._ }) {
107
107
  return /* @__PURE__ */ p(t, {
108
108
  widgetName: a,
109
109
  baseUrl: e,
@@ -118,7 +118,8 @@ function g({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
118
118
  onError: d,
119
119
  analytics: f,
120
120
  disclosuresAcceptance: m,
121
- children: /* @__PURE__ */ p(h, { ...g })
121
+ providerLabels: g,
122
+ children: /* @__PURE__ */ p(h, { ..._ })
122
123
  });
123
124
  }
124
125
  //#endregion
@@ -100,7 +100,7 @@ function v({ labels: t, featureLabels: o, contactUrl: v }) {
100
100
  isError: k
101
101
  });
102
102
  }
103
- function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, disclosuresAcceptance: m, ...h }) {
103
+ function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gatewayRouting: a, linkComponent: s, implementation: c, uiFramework: l, errorFallback: u, onError: d, analytics: p, disclosuresAcceptance: m, providerLabels: h, ...g }) {
104
104
  return /* @__PURE__ */ f(t, {
105
105
  widgetName: o,
106
106
  baseUrl: e,
@@ -115,7 +115,8 @@ function y({ baseUrl: e, widgetToken: n, organizationId: r, configClient: i, gat
115
115
  onError: d,
116
116
  analytics: p,
117
117
  disclosuresAcceptance: m,
118
- children: /* @__PURE__ */ f(v, { ...h })
118
+ providerLabels: h,
119
+ children: /* @__PURE__ */ f(v, { ...g })
119
120
  });
120
121
  }
121
122
  //#endregion
@@ -108,7 +108,7 @@ function C({ labels: t, featureLabels: o, acceptInviteRedirectUri: m, helpContac
108
108
  onSectionChange: G
109
109
  });
110
110
  }
111
- function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, disclosuresAcceptance: p, ...h }) {
111
+ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gatewayRouting: i, linkComponent: a, implementation: s, uiFramework: c, errorFallback: l, onError: u, finopsThemeColors: d, analytics: f, disclosuresAcceptance: p, providerLabels: h, ...g }) {
112
112
  return /* @__PURE__ */ b(o, {
113
113
  widgetName: m,
114
114
  baseUrl: e,
@@ -124,7 +124,8 @@ function w({ baseUrl: e, widgetToken: t, organizationId: n, configClient: r, gat
124
124
  finopsThemeColors: d,
125
125
  analytics: f,
126
126
  disclosuresAcceptance: p,
127
- children: /* @__PURE__ */ b(C, { ...h })
127
+ providerLabels: h,
128
+ children: /* @__PURE__ */ b(C, { ...g })
128
129
  });
129
130
  }
130
131
  //#endregion