@tesouro/embedded-components-react 0.11.188 → 0.11.190

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 (55) hide show
  1. package/README.md +12 -8
  2. package/dist/fixtures/index.d.ts +13 -46
  3. package/dist/index.css +3 -0
  4. package/dist/index.d.ts +18 -1
  5. package/dist/index.js +40 -39
  6. package/dist/lib/BankAccountsWidget.d.ts +2 -0
  7. package/dist/lib/BillPayWidget.d.ts +16 -1
  8. package/dist/lib/BillPayWidget.js +3 -1
  9. package/dist/lib/WidgetSuite.d.ts +2 -0
  10. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/lib/BalancesWidget/BalancesWidgetContext.js +2 -2
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index2.js +17 -14
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/labels.js +2 -0
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +9 -3
  16. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +76 -58
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index27.js +4 -4
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +8 -8
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +180 -180
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +62 -62
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +32 -32
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index14.js +7 -7
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index15.js +20 -20
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index33.js +5 -5
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index34.js +16 -16
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index37.js +7 -7
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +3 -1
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +101 -58
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +19 -17
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +2 -0
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +169 -138
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +227 -204
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +208 -204
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +1 -0
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +10 -10
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +212 -212
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index9.js +9 -5
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +3 -1
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillPayWidget.js +43 -39
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +66 -64
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/index.js +1 -0
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index8.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/viewModels.js +9 -9
  45. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +5 -5
  46. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/helpers.js +21 -21
  47. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +20 -20
  48. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +17 -17
  49. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +4 -4
  50. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js +77 -77
  52. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/transferViews.js +2 -2
  53. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +129 -122
  54. package/dist/packages/shared-ui-shadcn/dist/index.js +1 -1
  55. package/package.json +1 -1
@@ -224,9 +224,9 @@ var s = (t, n, r, i) => {
224
224
  throwOnError: !0
225
225
  });
226
226
  return n;
227
- } }), y = (e) => s("getDebitCardById", e), Tn = (e) => o({
227
+ } }), y = (e) => s("getDebitCardSpendSummary", e), Tn = (e) => o({
228
228
  queryFn: async ({ queryKey: t, signal: n }) => {
229
- let { data: r } = await Me({
229
+ let { data: r } = await Pe({
230
230
  ...e,
231
231
  ...t[0],
232
232
  signal: n,
@@ -235,21 +235,32 @@ var s = (t, n, r, i) => {
235
235
  return r;
236
236
  },
237
237
  queryKey: y(e)
238
- }), En = (e) => ({ mutationFn: async (t) => {
238
+ }), b = (e) => s("getDebitCardById", e), En = (e) => o({
239
+ queryFn: async ({ queryKey: t, signal: n }) => {
240
+ let { data: r } = await Me({
241
+ ...e,
242
+ ...t[0],
243
+ signal: n,
244
+ throwOnError: !0
245
+ });
246
+ return r;
247
+ },
248
+ queryKey: b(e)
249
+ }), Dn = (e) => ({ mutationFn: async (t) => {
239
250
  let { data: n } = await Wt({
240
251
  ...e,
241
252
  ...t,
242
253
  throwOnError: !0
243
254
  });
244
255
  return n;
245
- } }), Dn = (e) => ({ mutationFn: async (t) => {
256
+ } }), On = (e) => ({ mutationFn: async (t) => {
246
257
  let { data: r } = await n({
247
258
  ...e,
248
259
  ...t,
249
260
  throwOnError: !0
250
261
  });
251
262
  return r;
252
- } }), b = (e) => s("getDebitCardCredentials", e), On = (e) => o({
263
+ } }), x = (e) => s("getDebitCardCredentials", e), kn = (e) => o({
253
264
  queryFn: async ({ queryKey: t, signal: n }) => {
254
265
  let { data: r } = await Ne({
255
266
  ...e,
@@ -259,26 +270,15 @@ var s = (t, n, r, i) => {
259
270
  });
260
271
  return r;
261
272
  },
262
- queryKey: b(e)
263
- }), kn = (e) => ({ mutationFn: async (t) => {
273
+ queryKey: x(e)
274
+ }), An = (e) => ({ mutationFn: async (t) => {
264
275
  let { data: n } = await zt({
265
276
  ...e,
266
277
  ...t,
267
278
  throwOnError: !0
268
279
  });
269
280
  return n;
270
- } }), x = (e) => s("getDebitCardSpendSummary", e), An = (e) => o({
271
- queryFn: async ({ queryKey: t, signal: n }) => {
272
- let { data: r } = await Pe({
273
- ...e,
274
- ...t[0],
275
- signal: n,
276
- throwOnError: !0
277
- });
278
- return r;
279
- },
280
- queryKey: x(e)
281
- }), jn = (e) => ({ mutationFn: async (t) => {
281
+ } }), jn = (e) => ({ mutationFn: async (t) => {
282
282
  let { data: n } = await Jt({
283
283
  ...e,
284
284
  ...t,
@@ -1053,4 +1053,4 @@ var s = (t, n, r, i) => {
1053
1053
  });
1054
1054
  return n;
1055
1055
  } });
1056
- export { xn as activateCreditCardMutation, Dn as activateDebitCardMutation, Nn as connectExternalBankAccountMutation, Vn as createAchMoneyMovementMutation, en as createApplicationMutation, sn as createBankAccountMutation, Hn as createBookTransferMutation, hn as createCheckDepositMutation, Cn as createDebitCardMutation, $t as createVelocityControlMutation, Yn as deleteApprovalPoliciesIdMutation, tn as deleteBankAccountApplicationMutation, gr as deleteLedgerAccountsIdMutation, Rr as deleteReceiptsIdMutation, Ai as disableUserMutation, ln as getAggregateHistoricalBalancesQueryKey, Un as getAnalyticsPayablesOptions, w as getAnalyticsPayablesQueryKey, Wn as getAnalyticsReceiptsOptions, T as getAnalyticsReceiptsQueryKey, Gn as getAnalyticsReceivablesOptions, E as getAnalyticsReceivablesQueryKey, Kn as getAnalyticsTransactionsOptions, D as getAnalyticsTransactionsQueryKey, Yt as getApplicationStatusOptions, c as getApplicationStatusQueryKey, Qn as getApprovalPoliciesIdProcessesIdStepsOptions, A as getApprovalPoliciesIdProcessesIdStepsQueryKey, Zn as getApprovalPoliciesIdProcessesOptions, k as getApprovalPoliciesIdProcessesQueryKey, qn as getApprovalPoliciesOptions, O as getApprovalPoliciesQueryKey, $n as getApprovalRequestsOptions, j as getApprovalRequestsQueryKey, pn as getBankAccountAccessQueryKey, nn as getBankAccountApplicationOptions, l as getBankAccountApplicationQueryKey, gn as getBankAccountHistoricalBalancesQueryKey, dn as getBankAccountOptions, p as getBankAccountQueryKey, _n as getBankAccountStatementsOptions, m as getBankAccountStatementsQueryKey, vn as getBankAccountTransactionsOptions, h as getBankAccountTransactionsQueryKey, on as getBankAccountsOptions, u as getBankAccountsQueryKey, tr as getBankDetailsIdOptions, N as getBankDetailsIdQueryKey, er as getBankDetailsOptions, M as getBankDetailsQueryKey, ir as getCounterpartsIdAddressesOptions, I as getCounterpartsIdAddressesQueryKey, ar as getCounterpartsIdBankAccountsOptions, L as getCounterpartsIdBankAccountsQueryKey, rr as getCounterpartsIdOptions, F as getCounterpartsIdQueryKey, nr as getCounterpartsOptions, P as getCounterpartsQueryKey, bn as getCreditCardByIdOptions, _ as getCreditCardByIdQueryKey, yn as getCreditCardsOptions, g as getCreditCardsQueryKey, Tn as getDebitCardByIdOptions, y as getDebitCardByIdQueryKey, On as getDebitCardCredentialsOptions, b as getDebitCardCredentialsQueryKey, An as getDebitCardSpendSummaryOptions, x as getDebitCardSpendSummaryQueryKey, Sn as getDebitCardsOptions, v as getDebitCardsQueryKey, pi as getDepartmentOptions, fi as getDepartmentQueryKey, cn as getDepositableBankAccountsOptions, d as getDepositableBankAccountsQueryKey, or as getDocumentsIdNextNumbersOptions, R as getDocumentsIdNextNumbersQueryKey, sr as getEntitiesIdPaymentMethodsOptions, z as getEntitiesIdPaymentMethodsQueryKey, cr as getEntitiesIdSettingsOptions, B as getEntitiesIdSettingsQueryKey, ur as getEntityUsersMeOptions, H as getEntityUsersMeQueryKey, dr as getEntityUsersMyEntityOptions, U as getEntityUsersMyEntityQueryKey, lr as getEntityUsersOptions, V as getEntityUsersQueryKey, Ln as getExternalBankAccountAccessQueryKey, Fn as getExternalBankAccountOptions, C as getExternalBankAccountQueryKey, Mn as getExternalBankAccountsOptions, S as getExternalBankAccountsQueryKey, fr as getFilesQueryKey, mr as getLedgerAccountsOptions, pr as getLedgerAccountsQueryKey, _i as getLocationOptions, gi as getLocationQueryKey, vr as getMailboxesOptions, W as getMailboxesQueryKey, ki as getMeOptions, Oi as getMeQueryKey, yr as getMeasureUnitsOptions, G as getMeasureUnitsQueryKey, Zt as getMerchantCategoryGroupsOptions, Xt as getMerchantCategoryGroupsQueryKey, vi as getOrganizationOptions, $ as getOrganizationQueryKey, un as getOrganizationTransfersOptions, f as getOrganizationTransfersQueryKey, br as getOverdueRemindersOptions, K as getOverdueRemindersQueryKey, Cr as getPayablesIdHistoryOptions, Y as getPayablesIdHistoryQueryKey, wr as getPayablesIdLineItemsOptions, X as getPayablesIdLineItemsQueryKey, Sr as getPayablesIdOptions, J as getPayablesIdQueryKey, Tr as getPayablesIdSuggestionsOptions, Z as getPayablesIdSuggestionsQueryKey, xr as getPayablesOptions, q as getPayablesQueryKey, Er as getPaymentRecordsOptions, Q as getPaymentRecordsQueryKey, Or as getPaymentRemindersOptions, Dr as getPaymentRemindersQueryKey, Ar as getPaymentTermsOptions, kr as getPaymentTermsQueryKey, Pr as getProductsIdOptions, Nr as getProductsIdQueryKey, Mr as getProductsOptions, jr as getProductsQueryKey, zr as getReceiptsIdQueryKey, Ir as getReceiptsOptions, Fr as getReceiptsQueryKey, qr as getReceivablesIdHistoryQueryKey, Jr as getReceivablesIdMailsQueryKey, Kr as getReceivablesIdOptions, Xr as getReceivablesIdPdfLinkOptions, Yr as getReceivablesIdPdfLinkQueryKey, Gr as getReceivablesIdQueryKey, Hr as getReceivablesOptions, Vr as getReceivablesQueryKey, Wr as getReceivablesRequiredFieldsOptions, Ur as getReceivablesRequiredFieldsQueryKey, ei as getRecurrencesIdOptions, $r as getRecurrencesIdQueryKey, Qr as getRecurrencesOptions, Zr as getRecurrencesQueryKey, li as getTransactionsIdExpenseHistoryOptions, ci as getTransactionsIdExpenseHistoryQueryKey, si as getTransactionsIdOptions, oi as getTransactionsIdQueryKey, ni as getTransactionsOptions, ti as getTransactionsQueryKey, ii as getTransactionsValidationsOptions, ri as getTransactionsValidationsQueryKey, wi as getUserDataOptions, Ci as getUserDataQueryKey, Di as getUsersOptions, Ei as getUsersQueryKey, Qt as getVelocityControlsQueryKey, mn as grantBankAccountAccessMutation, Rn as grantExternalBankAccountAccessMutation, zn as linkExternalBankAccountMutation, di as listDepartmentsOptions, ui as listDepartmentsQueryKey, hi as listLocationsOptions, mi as listLocationsQueryKey, Si as listRolePermissionsOptions, xi as listRolePermissionsQueryKey, bi as listRolesOptions, yi as listRolesQueryKey, wn as manageDebitCardAccessMutation, Xn as patchApprovalPoliciesIdMutation, _r as patchLedgerAccountsIdMutation, Br as patchReceiptsIdMutation, Jn as postApprovalPoliciesMutation, hr as postLedgerAccountsMutation, Lr as postReceiptsUploadFromFileMutation, ai as putTransactionsValidationsMutation, kn as setDebitCardLockStatusMutation, an as submitApplicationMutation, Pn as unlinkExternalBankAccountMutation, rn as updateApplicationMutation, fn as updateBankAccountMutation, En as updateDebitCardMutation, In as updateExternalBankAccountMutation, Ti as upsertUserDataMutation, Bn as validateExternalBankAccountMutation, jn as verifyDebitCardMutation };
1056
+ export { xn as activateCreditCardMutation, On as activateDebitCardMutation, Nn as connectExternalBankAccountMutation, Vn as createAchMoneyMovementMutation, en as createApplicationMutation, sn as createBankAccountMutation, Hn as createBookTransferMutation, hn as createCheckDepositMutation, Cn as createDebitCardMutation, $t as createVelocityControlMutation, Yn as deleteApprovalPoliciesIdMutation, tn as deleteBankAccountApplicationMutation, gr as deleteLedgerAccountsIdMutation, Rr as deleteReceiptsIdMutation, Ai as disableUserMutation, ln as getAggregateHistoricalBalancesQueryKey, Un as getAnalyticsPayablesOptions, w as getAnalyticsPayablesQueryKey, Wn as getAnalyticsReceiptsOptions, T as getAnalyticsReceiptsQueryKey, Gn as getAnalyticsReceivablesOptions, E as getAnalyticsReceivablesQueryKey, Kn as getAnalyticsTransactionsOptions, D as getAnalyticsTransactionsQueryKey, Yt as getApplicationStatusOptions, c as getApplicationStatusQueryKey, Qn as getApprovalPoliciesIdProcessesIdStepsOptions, A as getApprovalPoliciesIdProcessesIdStepsQueryKey, Zn as getApprovalPoliciesIdProcessesOptions, k as getApprovalPoliciesIdProcessesQueryKey, qn as getApprovalPoliciesOptions, O as getApprovalPoliciesQueryKey, $n as getApprovalRequestsOptions, j as getApprovalRequestsQueryKey, pn as getBankAccountAccessQueryKey, nn as getBankAccountApplicationOptions, l as getBankAccountApplicationQueryKey, gn as getBankAccountHistoricalBalancesQueryKey, dn as getBankAccountOptions, p as getBankAccountQueryKey, _n as getBankAccountStatementsOptions, m as getBankAccountStatementsQueryKey, vn as getBankAccountTransactionsOptions, h as getBankAccountTransactionsQueryKey, on as getBankAccountsOptions, u as getBankAccountsQueryKey, tr as getBankDetailsIdOptions, N as getBankDetailsIdQueryKey, er as getBankDetailsOptions, M as getBankDetailsQueryKey, ir as getCounterpartsIdAddressesOptions, I as getCounterpartsIdAddressesQueryKey, ar as getCounterpartsIdBankAccountsOptions, L as getCounterpartsIdBankAccountsQueryKey, rr as getCounterpartsIdOptions, F as getCounterpartsIdQueryKey, nr as getCounterpartsOptions, P as getCounterpartsQueryKey, bn as getCreditCardByIdOptions, _ as getCreditCardByIdQueryKey, yn as getCreditCardsOptions, g as getCreditCardsQueryKey, En as getDebitCardByIdOptions, b as getDebitCardByIdQueryKey, kn as getDebitCardCredentialsOptions, x as getDebitCardCredentialsQueryKey, Tn as getDebitCardSpendSummaryOptions, y as getDebitCardSpendSummaryQueryKey, Sn as getDebitCardsOptions, v as getDebitCardsQueryKey, pi as getDepartmentOptions, fi as getDepartmentQueryKey, cn as getDepositableBankAccountsOptions, d as getDepositableBankAccountsQueryKey, or as getDocumentsIdNextNumbersOptions, R as getDocumentsIdNextNumbersQueryKey, sr as getEntitiesIdPaymentMethodsOptions, z as getEntitiesIdPaymentMethodsQueryKey, cr as getEntitiesIdSettingsOptions, B as getEntitiesIdSettingsQueryKey, ur as getEntityUsersMeOptions, H as getEntityUsersMeQueryKey, dr as getEntityUsersMyEntityOptions, U as getEntityUsersMyEntityQueryKey, lr as getEntityUsersOptions, V as getEntityUsersQueryKey, Ln as getExternalBankAccountAccessQueryKey, Fn as getExternalBankAccountOptions, C as getExternalBankAccountQueryKey, Mn as getExternalBankAccountsOptions, S as getExternalBankAccountsQueryKey, fr as getFilesQueryKey, mr as getLedgerAccountsOptions, pr as getLedgerAccountsQueryKey, _i as getLocationOptions, gi as getLocationQueryKey, vr as getMailboxesOptions, W as getMailboxesQueryKey, ki as getMeOptions, Oi as getMeQueryKey, yr as getMeasureUnitsOptions, G as getMeasureUnitsQueryKey, Zt as getMerchantCategoryGroupsOptions, Xt as getMerchantCategoryGroupsQueryKey, vi as getOrganizationOptions, $ as getOrganizationQueryKey, un as getOrganizationTransfersOptions, f as getOrganizationTransfersQueryKey, br as getOverdueRemindersOptions, K as getOverdueRemindersQueryKey, Cr as getPayablesIdHistoryOptions, Y as getPayablesIdHistoryQueryKey, wr as getPayablesIdLineItemsOptions, X as getPayablesIdLineItemsQueryKey, Sr as getPayablesIdOptions, J as getPayablesIdQueryKey, Tr as getPayablesIdSuggestionsOptions, Z as getPayablesIdSuggestionsQueryKey, xr as getPayablesOptions, q as getPayablesQueryKey, Er as getPaymentRecordsOptions, Q as getPaymentRecordsQueryKey, Or as getPaymentRemindersOptions, Dr as getPaymentRemindersQueryKey, Ar as getPaymentTermsOptions, kr as getPaymentTermsQueryKey, Pr as getProductsIdOptions, Nr as getProductsIdQueryKey, Mr as getProductsOptions, jr as getProductsQueryKey, zr as getReceiptsIdQueryKey, Ir as getReceiptsOptions, Fr as getReceiptsQueryKey, qr as getReceivablesIdHistoryQueryKey, Jr as getReceivablesIdMailsQueryKey, Kr as getReceivablesIdOptions, Xr as getReceivablesIdPdfLinkOptions, Yr as getReceivablesIdPdfLinkQueryKey, Gr as getReceivablesIdQueryKey, Hr as getReceivablesOptions, Vr as getReceivablesQueryKey, Wr as getReceivablesRequiredFieldsOptions, Ur as getReceivablesRequiredFieldsQueryKey, ei as getRecurrencesIdOptions, $r as getRecurrencesIdQueryKey, Qr as getRecurrencesOptions, Zr as getRecurrencesQueryKey, li as getTransactionsIdExpenseHistoryOptions, ci as getTransactionsIdExpenseHistoryQueryKey, si as getTransactionsIdOptions, oi as getTransactionsIdQueryKey, ni as getTransactionsOptions, ti as getTransactionsQueryKey, ii as getTransactionsValidationsOptions, ri as getTransactionsValidationsQueryKey, wi as getUserDataOptions, Ci as getUserDataQueryKey, Di as getUsersOptions, Ei as getUsersQueryKey, Qt as getVelocityControlsQueryKey, mn as grantBankAccountAccessMutation, Rn as grantExternalBankAccountAccessMutation, zn as linkExternalBankAccountMutation, di as listDepartmentsOptions, ui as listDepartmentsQueryKey, hi as listLocationsOptions, mi as listLocationsQueryKey, Si as listRolePermissionsOptions, xi as listRolePermissionsQueryKey, bi as listRolesOptions, yi as listRolesQueryKey, wn as manageDebitCardAccessMutation, Xn as patchApprovalPoliciesIdMutation, _r as patchLedgerAccountsIdMutation, Br as patchReceiptsIdMutation, Jn as postApprovalPoliciesMutation, hr as postLedgerAccountsMutation, Lr as postReceiptsUploadFromFileMutation, ai as putTransactionsValidationsMutation, An as setDebitCardLockStatusMutation, an as submitApplicationMutation, Pn as unlinkExternalBankAccountMutation, rn as updateApplicationMutation, fn as updateBankAccountMutation, Dn as updateDebitCardMutation, In as updateExternalBankAccountMutation, Ti as upsertUserDataMutation, Bn as validateExternalBankAccountMutation, jn as verifyDebitCardMutation };
@@ -391,6 +391,18 @@ var n = (e) => (e.client ?? t).post({
391
391
  ...e.headers
392
392
  }
393
393
  }), P = (e) => (e.client ?? t).get({
394
+ security: [{
395
+ key: "APPToken",
396
+ scheme: "bearer",
397
+ type: "http"
398
+ }, {
399
+ key: "USERToken",
400
+ scheme: "bearer",
401
+ type: "http"
402
+ }],
403
+ url: "/embedded-banking/v1/debit-cards/spend-summary",
404
+ ...e
405
+ }), F = (e) => (e.client ?? t).get({
394
406
  security: [{
395
407
  key: "APPToken",
396
408
  scheme: "bearer",
@@ -402,7 +414,7 @@ var n = (e) => (e.client ?? t).post({
402
414
  }],
403
415
  url: "/embedded-banking/v1/debit-cards/{id}",
404
416
  ...e
405
- }), F = (e) => (e.client ?? t).patch({
417
+ }), I = (e) => (e.client ?? t).patch({
406
418
  security: [{
407
419
  key: "APPToken",
408
420
  scheme: "bearer",
@@ -418,7 +430,7 @@ var n = (e) => (e.client ?? t).post({
418
430
  "Content-Type": "application/json",
419
431
  ...e.headers
420
432
  }
421
- }), I = (e) => (e.client ?? t).post({
433
+ }), L = (e) => (e.client ?? t).post({
422
434
  security: [{
423
435
  key: "APPToken",
424
436
  scheme: "bearer",
@@ -430,7 +442,7 @@ var n = (e) => (e.client ?? t).post({
430
442
  }],
431
443
  url: "/embedded-banking/v1/debit-cards/{id}/activate",
432
444
  ...e
433
- }), L = (e) => (e.client ?? t).get({
445
+ }), R = (e) => (e.client ?? t).get({
434
446
  security: [{
435
447
  key: "APPToken",
436
448
  scheme: "bearer",
@@ -442,7 +454,7 @@ var n = (e) => (e.client ?? t).post({
442
454
  }],
443
455
  url: "/embedded-banking/v1/debit-cards/{id}/credentials",
444
456
  ...e
445
- }), R = (e) => (e.client ?? t).post({
457
+ }), z = (e) => (e.client ?? t).post({
446
458
  security: [{
447
459
  key: "APPToken",
448
460
  scheme: "bearer",
@@ -458,18 +470,6 @@ var n = (e) => (e.client ?? t).post({
458
470
  "Content-Type": "application/json",
459
471
  ...e.headers
460
472
  }
461
- }), z = (e) => (e.client ?? t).get({
462
- security: [{
463
- key: "APPToken",
464
- scheme: "bearer",
465
- type: "http"
466
- }, {
467
- key: "USERToken",
468
- scheme: "bearer",
469
- type: "http"
470
- }],
471
- url: "/embedded-banking/v1/debit-cards/spend-summary",
472
- ...e
473
473
  }), B = (e) => (e.client ?? t).post({
474
474
  security: [{
475
475
  key: "APPToken",
@@ -2112,4 +2112,4 @@ var n = (e) => (e.client ?? t).post({
2112
2112
  ...e.headers
2113
2113
  }
2114
2114
  });
2115
- export { A as activateCreditCard, I as activateDebitCard, gn as bulkUpdateDepartmentMembers, Cn as bulkUpdateLocationMembers, En as bulkUpdateRoleMembers, H as connectExternalBankAccount, X as createAchMoneyMovement, s as createApplication, p as createBankAccount, Z as createBookTransfer, S as createCheckDeposit, M as createDebitCard, fn as createDepartment, yn as createLocation, jn as createUser, o as createVelocityControl, pn as deactivateDepartment, bn as deactivateLocation, ie as deleteApprovalPoliciesId, c as deleteBankAccountApplication, ge as deleteCounterpartsId, we as deleteCounterpartsIdBankAccountsId, De as deleteEntitiesIdLogo, Ie as deleteFilesId, ze as deleteLedgerAccountsId, We as deleteMeasureUnitsId, Ze as deletePayablesId, at as deletePayablesIdFile, wt as deleteProductsId, kt as deleteReceiptsId, Pt as deleteReceivablesId, Pn as disableUser, D as downloadBankAccountTransactions, g as getAggregateHistoricalBalances, Q as getAnalyticsPayables, $ as getAnalyticsReceipts, ee as getAnalyticsReceivables, te as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, ne as getApprovalPolicies, oe as getApprovalPoliciesIdProcesses, se as getApprovalPoliciesIdProcessesIdSteps, ce as getApprovalRequests, v as getBankAccount, b as getBankAccountAccess, l as getBankAccountApplication, C as getBankAccountHistoricalBalances, T as getBankAccountStatement, w as getBankAccountStatements, E as getBankAccountTransactions, f as getBankAccounts, de as getBankDetails, pe as getBankDetailsId, me as getCounterparts, _e as getCounterpartsId, ye as getCounterpartsIdAddresses, Se as getCounterpartsIdBankAccounts, k as getCreditCardById, O as getCreditCards, P as getDebitCardById, L as getDebitCardCredentials, z as getDebitCardSpendSummary, j as getDebitCards, mn as getDepartment, h as getDepositableBankAccounts, _n as getDisclosures, Ee as getDocumentsIdNextNumbers, ke as getEntitiesIdPaymentMethods, Ae as getEntitiesIdSettings, Me as getEntityUsers, Ne as getEntityUsersMe, Pe as getEntityUsersMyEntity, W as getExternalBankAccount, K as getExternalBankAccountAccess, V as getExternalBankAccounts, Le as getLedgerAccounts, xn as getLocation, Ve as getMailboxes, Mn as getMe, He as getMeasureUnits, a as getMerchantCategoryGroups, wn as getOrganization, _ as getOrganizationTransfers, Ke as getOverdueReminders, Je as getPayables, Qe as getPayablesId, ot as getPayablesIdHistory, st as getPayablesIdLineItems, mt as getPayablesIdSuggestions, _t as getPaymentRecords, yt as getPaymentReminders, xt as getPaymentTerms, St as getProducts, Tt as getProductsId, Dt as getReceipts, jt as getReceivables, Ft as getReceivablesId, Vt as getReceivablesIdHistory, Gt as getReceivablesIdPdfLink, Nt as getReceivablesRequiredFields, qt as getRecurrences, Yt as getRecurrencesId, en as getTransactions, rn as getTransactionsId, sn as getTransactionsIdExpenseHistory, tn as getTransactionsValidations, On as getUserData, An as getUsers, x as grantBankAccountAccess, q as grantExternalBankAccountAccess, J as linkExternalBankAccount, dn as listDepartments, vn as listLocations, Dn as listRolePermissions, Tn as listRoles, m as manageBankAccountAccess, N as manageDebitCardAccess, ae as patchApprovalPoliciesId, ve as patchCounterpartsId, xe as patchCounterpartsIdAddressesId, Te as patchCounterpartsIdBankAccountsId, je as patchEntitiesIdSettings, Be as patchLedgerAccountsId, Ge as patchMeasureUnitsId, $e as patchPayablesId, Et as patchProductsId, At as patchReceiptsId, It as patchReceivablesId, Xt as patchRecurrencesId, an as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, re as postApprovalPolicies, le as postApprovalRequestsIdApprove, ue as postApprovalRequestsIdReject, fe as postBankDetails, he as postCounterparts, be as postCounterpartsIdAddresses, Ce as postCounterpartsIdBankAccounts, Fe as postFiles, Re as postLedgerAccounts, Ue as postMeasureUnits, qe as postOverdueReminders, Ye as postPayables, et as postPayablesIdApprovePaymentOperation, tt as postPayablesIdAttachFile, nt as postPayablesIdCancel, rt as postPayablesIdDuplicatesIdConfirm, it as postPayablesIdDuplicatesIdDismiss, lt as postPayablesIdMarkAsPaid, ut as postPayablesIdReject, dt as postPayablesIdReopen, ft as postPayablesIdSchedulePayment, pt as postPayablesIdSubmitForApproval, ht as postPayablesIdValidate, Xe as postPayablesUploadFromFile, gt as postPaymentIntentsIdCancel, vt as postPaymentRecords, bt as postPaymentReminders, Ct as postProducts, Ot as postReceiptsUploadFromFile, Mt as postReceivables, Lt as postReceivablesIdAccept, Rt as postReceivablesIdCancel, zt as postReceivablesIdClone, Bt as postReceivablesIdDecline, Ht as postReceivablesIdIssue, Ut as postReceivablesIdMarkAsPaid, Wt as postReceivablesIdMarkAsUncollectible, Kt as postReceivablesIdSend, Jt as postRecurrences, Zt as postRecurrencesIdCancel, Qt as postRecurrencesIdPause, $t as postRecurrencesIdResume, on as postTransactionsIdApprove, cn as postTransactionsIdReject, ln as postTransactionsIdReopen, un as postTransactionsIdSubmit, Oe as putEntitiesIdLogo, ct as putPayablesIdLineItems, nn as putTransactionsValidations, Fn as resendUserInvitation, R as setDebitCardLockStatus, d as submitApplication, U as unlinkExternalBankAccount, u as updateApplication, y as updateBankAccount, F as updateDebitCard, hn as updateDepartment, G as updateExternalBankAccount, Sn as updateLocation, Nn as updateUser, kn as upsertUserData, Y as validateExternalBankAccount, B as verifyDebitCard };
2115
+ export { A as activateCreditCard, L as activateDebitCard, gn as bulkUpdateDepartmentMembers, Cn as bulkUpdateLocationMembers, En as bulkUpdateRoleMembers, H as connectExternalBankAccount, X as createAchMoneyMovement, s as createApplication, p as createBankAccount, Z as createBookTransfer, S as createCheckDeposit, M as createDebitCard, fn as createDepartment, yn as createLocation, jn as createUser, o as createVelocityControl, pn as deactivateDepartment, bn as deactivateLocation, ie as deleteApprovalPoliciesId, c as deleteBankAccountApplication, ge as deleteCounterpartsId, we as deleteCounterpartsIdBankAccountsId, De as deleteEntitiesIdLogo, Ie as deleteFilesId, ze as deleteLedgerAccountsId, We as deleteMeasureUnitsId, Ze as deletePayablesId, at as deletePayablesIdFile, wt as deleteProductsId, kt as deleteReceiptsId, Pt as deleteReceivablesId, Pn as disableUser, D as downloadBankAccountTransactions, g as getAggregateHistoricalBalances, Q as getAnalyticsPayables, $ as getAnalyticsReceipts, ee as getAnalyticsReceivables, te as getAnalyticsTransactions, r as getApiWidgetGatewayInit, i as getApplicationStatus, ne as getApprovalPolicies, oe as getApprovalPoliciesIdProcesses, se as getApprovalPoliciesIdProcessesIdSteps, ce as getApprovalRequests, v as getBankAccount, b as getBankAccountAccess, l as getBankAccountApplication, C as getBankAccountHistoricalBalances, T as getBankAccountStatement, w as getBankAccountStatements, E as getBankAccountTransactions, f as getBankAccounts, de as getBankDetails, pe as getBankDetailsId, me as getCounterparts, _e as getCounterpartsId, ye as getCounterpartsIdAddresses, Se as getCounterpartsIdBankAccounts, k as getCreditCardById, O as getCreditCards, F as getDebitCardById, R as getDebitCardCredentials, P as getDebitCardSpendSummary, j as getDebitCards, mn as getDepartment, h as getDepositableBankAccounts, _n as getDisclosures, Ee as getDocumentsIdNextNumbers, ke as getEntitiesIdPaymentMethods, Ae as getEntitiesIdSettings, Me as getEntityUsers, Ne as getEntityUsersMe, Pe as getEntityUsersMyEntity, W as getExternalBankAccount, K as getExternalBankAccountAccess, V as getExternalBankAccounts, Le as getLedgerAccounts, xn as getLocation, Ve as getMailboxes, Mn as getMe, He as getMeasureUnits, a as getMerchantCategoryGroups, wn as getOrganization, _ as getOrganizationTransfers, Ke as getOverdueReminders, Je as getPayables, Qe as getPayablesId, ot as getPayablesIdHistory, st as getPayablesIdLineItems, mt as getPayablesIdSuggestions, _t as getPaymentRecords, yt as getPaymentReminders, xt as getPaymentTerms, St as getProducts, Tt as getProductsId, Dt as getReceipts, jt as getReceivables, Ft as getReceivablesId, Vt as getReceivablesIdHistory, Gt as getReceivablesIdPdfLink, Nt as getReceivablesRequiredFields, qt as getRecurrences, Yt as getRecurrencesId, en as getTransactions, rn as getTransactionsId, sn as getTransactionsIdExpenseHistory, tn as getTransactionsValidations, On as getUserData, An as getUsers, x as grantBankAccountAccess, q as grantExternalBankAccountAccess, J as linkExternalBankAccount, dn as listDepartments, vn as listLocations, Dn as listRolePermissions, Tn as listRoles, m as manageBankAccountAccess, N as manageDebitCardAccess, ae as patchApprovalPoliciesId, ve as patchCounterpartsId, xe as patchCounterpartsIdAddressesId, Te as patchCounterpartsIdBankAccountsId, je as patchEntitiesIdSettings, Be as patchLedgerAccountsId, Ge as patchMeasureUnitsId, $e as patchPayablesId, Et as patchProductsId, At as patchReceiptsId, It as patchReceivablesId, Xt as patchRecurrencesId, an as patchTransactionsId, n as postApiWidgetGatewayDisclosureAcceptance, re as postApprovalPolicies, le as postApprovalRequestsIdApprove, ue as postApprovalRequestsIdReject, fe as postBankDetails, he as postCounterparts, be as postCounterpartsIdAddresses, Ce as postCounterpartsIdBankAccounts, Fe as postFiles, Re as postLedgerAccounts, Ue as postMeasureUnits, qe as postOverdueReminders, Ye as postPayables, et as postPayablesIdApprovePaymentOperation, tt as postPayablesIdAttachFile, nt as postPayablesIdCancel, rt as postPayablesIdDuplicatesIdConfirm, it as postPayablesIdDuplicatesIdDismiss, lt as postPayablesIdMarkAsPaid, ut as postPayablesIdReject, dt as postPayablesIdReopen, ft as postPayablesIdSchedulePayment, pt as postPayablesIdSubmitForApproval, ht as postPayablesIdValidate, Xe as postPayablesUploadFromFile, gt as postPaymentIntentsIdCancel, vt as postPaymentRecords, bt as postPaymentReminders, Ct as postProducts, Ot as postReceiptsUploadFromFile, Mt as postReceivables, Lt as postReceivablesIdAccept, Rt as postReceivablesIdCancel, zt as postReceivablesIdClone, Bt as postReceivablesIdDecline, Ht as postReceivablesIdIssue, Ut as postReceivablesIdMarkAsPaid, Wt as postReceivablesIdMarkAsUncollectible, Kt as postReceivablesIdSend, Jt as postRecurrences, Zt as postRecurrencesIdCancel, Qt as postRecurrencesIdPause, $t as postRecurrencesIdResume, on as postTransactionsIdApprove, cn as postTransactionsIdReject, ln as postTransactionsIdReopen, un as postTransactionsIdSubmit, Oe as putEntitiesIdLogo, ct as putPayablesIdLineItems, nn as putTransactionsValidations, Fn as resendUserInvitation, z as setDebitCardLockStatus, d as submitApplication, U as unlinkExternalBankAccount, u as updateApplication, y as updateBankAccount, I as updateDebitCard, hn as updateDepartment, G as updateExternalBankAccount, Sn as updateLocation, Nn as updateUser, kn as upsertUserData, Y as validateExternalBankAccount, B as verifyDebitCard };
@@ -1,6 +1,6 @@
1
1
  import { Badge as e, cn as t } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { receivableFilledTone as n } from "../../util/dist/lib/receivableFilledTone.js";
3
- import { RECEIVABLE_STATUS_BADGE_LABELS_EN as r } from "./index6.js";
2
+ import { RECEIVABLE_STATUS_BADGE_LABELS_EN as n } from "./index6.js";
3
+ import { receivableFilledTone as r } from "../../util/dist/lib/receivableFilledTone.js";
4
4
  import { jsxs as i } from "react/jsx-runtime";
5
5
  // ../../libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js
6
6
  var a = {
@@ -19,12 +19,12 @@ var a = {
19
19
  };
20
20
  function s({ status: s, label: c, tone: l = "neutral", variant: u = "outline", filledTone: d, labels: f, icon: p }) {
21
21
  let m = {
22
- ...r,
22
+ ...n,
23
23
  ...f
24
24
  }, h = c ?? (s && Object.hasOwn(m, s) ? m[s] : void 0) ?? m.unknown;
25
25
  return /* @__PURE__ */ i(e, {
26
26
  variant: "outline",
27
- className: t(p && "ttw:gap-1", u === "filled" ? ["ttw:border-transparent", o[d ?? n(s)]] : a[l]),
27
+ className: t(p && "ttw:gap-1", u === "filled" ? ["ttw:border-transparent", o[d ?? r(s)]] : a[l]),
28
28
  children: [p, h]
29
29
  });
30
30
  }
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.188", n = "af5b5fcbad8da2e73c0362a44fb0118cf4a98fb6", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.190", n = "40f83a2d94b1766c68f653cda59b5ec456a348f3", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -5,111 +5,111 @@
5
5
  import { TESOURO_NEW_EMBEDDED_BANK_ACCOUNT_CREATED_SUCCESS_EVENT as e, TESOURO_NEW_EXTERNAL_BANK_ACCOUNT_LINKED_SUCCESS_EVENT as t } from "../../../../../shared/util/dist/lib/widgetDomEvents.js";
6
6
  import "../../../../../shared/util/dist/index.js";
7
7
  import { isOrganizationOnItsWay as ee } from "../../../../../shared/data-access/dist/lib/organizationStatus.js";
8
- import { useEmbedApi as n } from "../../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
- import { Scope as r } from "../../../../../shared/data-access/dist/lib/scopes.js";
8
+ import { useEmbedApi as te } from "../../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
+ import { Scope as n } from "../../../../../shared/data-access/dist/lib/scopes.js";
10
10
  import "../../../../../shared/data-access/dist/index.js";
11
- import { useAnalyticsTrack as te } from "../../../../../shared/feature/dist/lib/analytics/hooks.js";
12
- import { useWidgetConfig as ne } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
11
+ import { useAnalyticsTrack as r } from "../../../../../shared/feature/dist/lib/analytics/hooks.js";
12
+ import { useWidgetConfig as i } from "../../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
13
13
  import "../../../../../shared/feature/dist/index.js";
14
- import { DEFAULT_FEATURE_LABELS as i } from "./featureLabels.js";
15
- import { TRANSFERS_ANALYTICS_EVENTS as re } from "../analytics/events.js";
16
- import { isPaginatedAccountsQueryInFlight as a } from "../../../../data-access/dist/index2.js";
17
- import { useTransferBankAccountsQuery as ie } from "../../../../data-access/dist/index4.js";
18
- import { useTransferExternalAccountsQuery as ae } from "../../../../data-access/dist/index5.js";
19
- import { useOrganizationTransfersQuery as oe } from "../../../../data-access/dist/index6.js";
14
+ import { DEFAULT_FEATURE_LABELS as a } from "./featureLabels.js";
15
+ import { TRANSFERS_ANALYTICS_EVENTS as ne } from "../analytics/events.js";
16
+ import { isPaginatedAccountsQueryInFlight as o } from "../../../../data-access/dist/index2.js";
17
+ import { useTransferBankAccountsQuery as re } from "../../../../data-access/dist/index4.js";
18
+ import { useTransferExternalAccountsQuery as ie } from "../../../../data-access/dist/index5.js";
19
+ import { useOrganizationTransfersQuery as s } from "../../../../data-access/dist/index6.js";
20
20
  import "../../../../data-access/dist/index.js";
21
- import { useTransferMoneyModalController as se } from "./useTransferMoneyModalController.js";
22
- import { buildAccountDirectory as ce, mapTransferToDetailView as o, mapTransferToRowView as s } from "./transferViews.js";
21
+ import { useTransferMoneyModalController as ae } from "./useTransferMoneyModalController.js";
22
+ import { buildAccountDirectory as oe, mapTransferToDetailView as se, mapTransferToRowView as ce } from "./transferViews.js";
23
23
  import { transfersWidgetTestIds as c } from "./testIds.js";
24
24
  import { TRANSFERS_PAGE_SIZE_OPTIONS as le, useTransfersPageState as ue } from "./useTransfersPageState.js";
25
25
  import { TRANSFERS_WIDGET_LABELS_EN as de } from "../../../../ui/dist/lib/TransfersWidget/labels.js";
26
26
  import { TransfersWidget as fe } from "../../../../ui/dist/lib/TransfersWidget/TransfersWidget.js";
27
27
  import "../../../../ui/dist/index.js";
28
- import { useCallback as pe, useEffect as l, useMemo as u, useState as d } from "react";
29
- import { jsx as f } from "react/jsx-runtime";
28
+ import { useCallback as pe, useEffect as l, useMemo as me, useState as u } from "react";
29
+ import { jsx as he } from "react/jsx-runtime";
30
30
  // ../../libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/TransfersWidgetInner.js
31
- var p = [r.TransferWriteOrg, r.BankAccountReadOrg], m = [t, e];
32
- function h({ labels: e, featureLabels: t, isTransferMoneyOpen: h, defaultIsTransferMoneyOpen: me, onTransferMoneyOpenChange: he, onLinkAccountClick: g }) {
33
- let _ = {
34
- ...i,
31
+ var d = [n.TransferWriteOrg, n.BankAccountReadOrg], f = [t, e];
32
+ function p({ labels: e, featureLabels: t, isTransferMoneyOpen: p, defaultIsTransferMoneyOpen: ge, onTransferMoneyOpenChange: m, onLinkAccountClick: h }) {
33
+ let g = {
34
+ ...a,
35
35
  ...t
36
- }, v = {
36
+ }, _ = {
37
37
  ...de,
38
38
  ...e,
39
39
  ...t?.routeSeparator === void 0 ? {} : { listAccountsSeparator: t.routeSeparator }
40
- }, y = te(), { initResponse: b } = ne(), { organizationId: ge, organizationStatus: _e } = n(), ve = ee(_e);
40
+ }, v = r(), { initResponse: y } = i(), { organizationId: _e, organizationStatus: ve } = te(), ye = ee(ve);
41
41
  l(() => {
42
- y(re.Mounted);
43
- }, [y]);
44
- let x = b?.scopes ?? [], S = x.includes(r.ExternalBankAccountReadOrg), ye = x.includes(r.PaymentRailAch), C = S && ye, w = p.every((e) => x.includes(e)), T = ue({
45
- organizationId: ge,
46
- userId: b?.userId
47
- }), { data: E, isLoading: D, isError: O, isPlaceholderData: k, refetch: A } = oe({
48
- limit: T.pageSize,
49
- pagination_token: T.paginationToken
50
- }), j = ie(), { data: M, isError: N, refetch: P } = j, F = ae({ enabled: S }), { data: I, isError: be, refetch: L } = F, R = M?.data ?? [], z = u(() => C ? (I?.data ?? []).filter((e) => e.verificationStatus === "VERIFIED" && e.accountStatus === "ACTIVE") : [], [C, I?.data]), xe = I?.data, B = ce(R, xe ?? [], v), V = E?.data, H = (V ?? []).map((e) => s(e, B, v, _)), [Se, U] = d(), W = `${T.pageSize}:${T.paginationToken ?? ""}`, [Ce, we] = d(W);
51
- W !== Ce && (we(W), U(void 0));
52
- let G = V?.find((e) => e.id === Se), Te = G ? o(G, B, v, _) : void 0, K = E?.nextPaginationToken ?? void 0, q = E?.prevPaginationToken ?? void 0, [J, Ee] = d(T);
53
- k || J.pageIndex === T.pageIndex && J.pageSize === T.pageSize || Ee(T);
54
- let Y = J.pageIndex * J.pageSize, De = {
55
- pageSize: T.pageSize,
42
+ v(ne.Mounted);
43
+ }, [v]);
44
+ let b = y?.scopes ?? [], x = b.includes(n.ExternalBankAccountReadOrg), be = b.includes(n.PaymentRailAch), S = x && be, C = d.every((e) => b.includes(e)), w = ue({
45
+ organizationId: _e,
46
+ userId: y?.userId
47
+ }), { data: T, isLoading: E, isError: D, isPlaceholderData: O, refetch: k } = s({
48
+ limit: w.pageSize,
49
+ pagination_token: w.paginationToken
50
+ }), A = re(), { data: j, isError: M, refetch: N } = A, P = ie({ enabled: x }), { data: F, isError: xe, refetch: I } = P, L = j?.data ?? [], R = me(() => S ? (F?.data ?? []).filter((e) => e.verificationStatus === "VERIFIED" && e.accountStatus === "ACTIVE") : [], [S, F?.data]), Se = F?.data, z = oe(L, Se ?? [], _), B = T?.data, V = (B ?? []).map((e) => ce(e, z, _, g)), [Ce, H] = u(), U = `${w.pageSize}:${w.paginationToken ?? ""}`, [we, Te] = u(U);
51
+ U !== we && (Te(U), H(void 0));
52
+ let W = B?.find((e) => e.id === Ce), Ee = W ? se(W, z, _, g) : void 0, G = T?.nextPaginationToken ?? void 0, K = T?.prevPaginationToken ?? void 0, [q, De] = u(w);
53
+ O || q.pageIndex === w.pageIndex && q.pageSize === w.pageSize || De(w);
54
+ let J = q.pageIndex * q.pageSize, Oe = {
55
+ pageSize: w.pageSize,
56
56
  pageSizeOptions: le,
57
- rangeLabel: `${_.viewingRangeLabel} ${H.length === 0 ? "0-0" : `${Y + 1}-${Y + H.length}`}`,
58
- isPreviousDisabled: !q,
59
- isNextDisabled: !K,
60
- isDisabled: k,
61
- onPageSizeChange: T.changePageSize,
57
+ rangeLabel: `${g.viewingRangeLabel} ${V.length === 0 ? "0-0" : `${J + 1}-${J + V.length}`}`,
58
+ isPreviousDisabled: !K,
59
+ isNextDisabled: !G,
60
+ isDisabled: O,
61
+ onPageSizeChange: w.changePageSize,
62
62
  onPreviousPageClick: () => {
63
- q && T.goToPreviousPage(q);
63
+ K && w.goToPreviousPage(K);
64
64
  },
65
65
  onNextPageClick: () => {
66
- K && T.goToNextPage(K);
66
+ G && w.goToNextPage(G);
67
67
  }
68
- }, X = pe(() => {
69
- A(), P(), S && L();
68
+ }, Y = pe(() => {
69
+ k(), N(), x && I();
70
70
  }, [
71
- S,
72
- P,
73
- L,
74
- A
71
+ x,
72
+ N,
73
+ I,
74
+ k
75
75
  ]);
76
76
  l(() => {
77
77
  let e = () => {
78
- X();
78
+ Y();
79
79
  };
80
- for (let t of m) window.addEventListener(t, e);
80
+ for (let t of f) window.addEventListener(t, e);
81
81
  return () => {
82
- for (let t of m) window.removeEventListener(t, e);
82
+ for (let t of f) window.removeEventListener(t, e);
83
83
  };
84
- }, [X]);
85
- let { modalProps: Z, openModal: Oe } = se({
86
- labels: v,
87
- featureLabels: _,
88
- embeddedBankAccounts: R,
89
- verifiedExternalBankAccounts: z,
90
- track: y,
91
- isTransferMoneyOpen: h,
92
- defaultIsTransferMoneyOpen: me,
93
- onTransferMoneyOpenChange: he
94
- }), ke = a(j), Ae = S && a(F), je = ve && !M || D || ke || Ae, Q = O || N || S && be, Me = R.length + z.length, $ = !(R.length > 0) || Me <= 1;
95
- return /* @__PURE__ */ f(fe, {
96
- transferRows: H,
97
- pagination: De,
98
- selectedRowKey: G?.id,
99
- onRowClick: U,
100
- transferDetail: Te,
101
- onTransferDetailClose: () => U(void 0),
102
- onLinkAccountClick: g ? () => {
103
- U(void 0), g();
84
+ }, [Y]);
85
+ let { modalProps: ke, openModal: Ae } = ae({
86
+ labels: _,
87
+ featureLabels: g,
88
+ embeddedBankAccounts: L,
89
+ verifiedExternalBankAccounts: R,
90
+ track: v,
91
+ isTransferMoneyOpen: p,
92
+ defaultIsTransferMoneyOpen: ge,
93
+ onTransferMoneyOpenChange: m
94
+ }), je = o(A), Me = x && o(P), X = ye && !j || E || je || Me, Z = D || M || x && xe, Q = L.filter((e) => e.status === "ACTIVE" && !!e.accountNumber), Ne = Q.length + R.length, $ = !(Q.length > 0) || Ne <= 1;
95
+ return /* @__PURE__ */ he(fe, {
96
+ transferRows: V,
97
+ pagination: Oe,
98
+ selectedRowKey: W?.id,
99
+ onRowClick: H,
100
+ transferDetail: Ee,
101
+ onTransferDetailClose: () => H(void 0),
102
+ onLinkAccountClick: h ? () => {
103
+ H(void 0), h();
104
104
  } : void 0,
105
- isLoading: je,
106
- isError: Q,
107
- onRetry: Q ? () => void X() : void 0,
108
- showTransferMoneyCta: w,
105
+ isLoading: X,
106
+ isError: Z,
107
+ onRetry: Z ? () => void Y() : void 0,
108
+ showTransferMoneyCta: C,
109
109
  isTransferMoneyCtaDisabled: $,
110
- onTransferMoneyClick: w && !$ ? () => Oe() : void 0,
110
+ onTransferMoneyClick: C && !$ ? () => Ae() : void 0,
111
111
  transferMoneyModal: {
112
- ...Z,
112
+ ...ke,
113
113
  testIds: {
114
114
  root: c.modal,
115
115
  closeButton: c.modalCloseButton,
@@ -141,4 +141,4 @@ function h({ labels: e, featureLabels: t, isTransferMoneyOpen: h, defaultIsTrans
141
141
  }
142
142
  });
143
143
  }
144
- export { h as TransfersWidgetInner };
144
+ export { p as TransfersWidgetInner };
@@ -8,7 +8,7 @@ function r(e, t, n) {
8
8
  for (let t of e) r.set(t.id, {
9
9
  kind: "internal",
10
10
  name: t.nickname?.trim() || n.accountFallbackName,
11
- last4: t.accountNumber.slice(-4)
11
+ last4: t.accountNumber?.slice(-4)
12
12
  });
13
13
  for (let e of t) r.set(e.id, {
14
14
  kind: "external",
@@ -23,7 +23,7 @@ function i(e, t, n) {
23
23
  kind: i,
24
24
  kindLabel: i === "internal" ? n.accountKindInternal : n.accountKindExternal,
25
25
  name: r?.name ?? (e.nickname?.trim() || n.externalAccountFallbackName),
26
- ...r && { number: { last4: r.last4 } }
26
+ ...r?.last4 && { number: { last4: r.last4 } }
27
27
  };
28
28
  }
29
29
  var a = (t, n) => t.number ? `${t.name} ${e(n.accountMaskTemplate, { last4: t.number.last4 })}` : t.name, o = {