@tesouro/embedded-components-react 0.11.141 → 0.11.167

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 (148) hide show
  1. package/NOTICE +24 -0
  2. package/README.md +15 -37
  3. package/dist/experimental/BalanceHistoryWidget.d.ts +0 -11
  4. package/dist/experimental/QuickViewWidget.d.ts +0 -11
  5. package/dist/experimental/RemoteCheckCapture.d.ts +0 -11
  6. package/dist/experimental/index.d.ts +0 -11
  7. package/dist/fixtures/index.d.ts +27 -1
  8. package/dist/index.css +6976 -6246
  9. package/dist/index.d.ts +64 -173
  10. package/dist/index.js +9 -10
  11. package/dist/lib/AcceptDisclosuresWidget.d.ts +0 -11
  12. package/dist/lib/BalancesWidget.d.ts +0 -11
  13. package/dist/lib/BankAccountOnboardingWidget.d.ts +0 -11
  14. package/dist/lib/BankAccountsWidget.d.ts +2 -11
  15. package/dist/lib/BankingComplianceBannerWidget.d.ts +0 -11
  16. package/dist/lib/BillPayWidget.d.ts +0 -11
  17. package/dist/lib/CardDetailsWidget.d.ts +0 -11
  18. package/dist/lib/CounterpartsWidget.d.ts +1 -12
  19. package/dist/lib/CounterpartsWidgetPublic.d.ts +1 -12
  20. package/dist/lib/CreditCardsWidget.d.ts +0 -11
  21. package/dist/lib/DebitCardsWidget.d.ts +0 -11
  22. package/dist/lib/ExpenseManagementWidget.d.ts +1 -12
  23. package/dist/lib/InsightsWidget.d.ts +0 -11
  24. package/dist/lib/LinkedAccountsWidget.d.ts +0 -11
  25. package/dist/lib/OfferWidget.d.ts +0 -11
  26. package/dist/lib/ReceivablesWidget.d.ts +60 -17
  27. package/dist/lib/ReceivablesWidget.js +3 -2
  28. package/dist/lib/SettingsWidget.d.ts +0 -11
  29. package/dist/lib/TransfersWidget.d.ts +0 -11
  30. package/dist/lib/WidgetProvider.d.ts +0 -11
  31. package/dist/lib/WidgetProviderPublic.d.ts +0 -11
  32. package/dist/lib/WidgetSuite.d.ts +60 -15
  33. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/lib/BankAccountOnboardingWidget/BankAccountOnboardingWidget.js +20 -19
  35. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index10.js +8 -8
  36. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index4.js +2 -3
  37. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index10.js +83 -82
  38. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +84 -79
  39. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +2 -1
  40. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/formatters.js +2 -3
  41. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/lib/useBankAccountsWidget.js +4 -4
  42. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/AccountCard.js +51 -46
  43. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/labels.js +2 -1
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index22.js +1 -1
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index25.js +1 -1
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +1 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +1 -1
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index4.js +1 -1
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +1 -1
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +1 -1
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +1 -1
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +1 -1
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index10.js +1 -1
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/feature/dist/index4.js +1 -1
  55. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useActivateCard.js +1 -1
  56. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useCardLock.js +1 -1
  57. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/lib/useEditCardNickname.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/feature/dist/index8.js +1 -1
  59. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsActions.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/approval-policies/feature/dist/index7.js +1 -1
  61. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/ExpenseManagementWidget/ExpenseManagementWidget.js +10 -9
  62. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/lib/TransactionDetails/TransactionDetailsFeature.js +1 -1
  63. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/feature/dist/index2.js +1 -1
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +2 -2
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +66 -74
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -2
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +351 -318
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +126 -133
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +63 -56
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilter.js +78 -72
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/invoicesFilterLabels.js +2 -1
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -1
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +138 -129
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +119 -0
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +37 -28
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +1 -2
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useInvoicesFilter.js +131 -81
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useLocalDayStart.js +15 -0
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +46 -46
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +1 -1
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +440 -438
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +7 -7
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +62 -56
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +47 -16
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +78 -86
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +180 -158
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useRecurringSeriesTable.js +132 -0
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/invoicing.js +4 -0
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/receivables.js +153 -137
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +22 -19
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +6 -4
  96. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index2.js +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +3 -3
  98. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +137 -129
  99. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +21 -46
  100. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +143 -0
  101. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +2 -0
  102. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +47 -0
  103. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +25 -25
  104. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +1 -1
  105. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/lib/ProductsWidget/useProductDelete.js +1 -1
  106. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/mocks/products.js +3 -11
  107. package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/scenarios.js +1 -1
  108. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js +36 -77
  109. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js +11 -13
  110. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js +20 -17
  111. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/feature/dist/lib/RemoteCheckCaptureWidget/useRemoteCheckCaptureWidget.js +1 -1
  112. package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/feature/dist/index7.js +1 -1
  113. package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/mocks/settings.js +7 -0
  114. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index7.js +1 -1
  115. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/feature/dist/index8.js +1 -1
  116. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js +4 -9
  117. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +1 -1
  118. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +2 -3
  119. package/dist/libs/tesouro-embedded-components-react/settings-widget/ui/dist/lib/SettingsWidgetUi/SettingsWidgetUi.js +2 -2
  120. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/feature/dist/lib/useApprovalPolicyRules.js +1 -1
  121. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index3.js +2 -2
  122. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/subEntityForms.js +1 -1
  123. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useDeleteController.js +1 -1
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +43 -43
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +233 -211
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +66 -42
  127. package/dist/libs/tesouro-embedded-components-react/shared/document-status/util/dist/lib/receivableFilledTone.js +1 -1
  128. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/feature/dist/lib/ExpenseRequirementsWidget.js +5 -4
  129. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  130. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/MeasureUnitsManagerContainer.js +1 -1
  131. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/toasts.js +1 -1
  132. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +28 -28
  133. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/EmbeddedToaster.js +33 -32
  134. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/lib/TransfersWidget/useTransferMoneyModalController.js +9 -8
  135. package/dist/node_modules/sonner/dist/index.js +620 -0
  136. package/dist/packages/shared-ui-shadcn/dist/index.js +6072 -6062
  137. package/dist/scenarios/index.d.ts +1 -3
  138. package/dist/scenarios/index.js +17 -20
  139. package/package.json +17 -4
  140. package/dist/lib/CustomersWidget.d.ts +0 -993
  141. package/dist/lib/CustomersWidget.js +0 -2
  142. package/dist/lib/ProductsWidget.d.ts +0 -893
  143. package/dist/lib/ProductsWidget.js +0 -2
  144. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/index.js +0 -1
  145. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/CustomersWidget/CustomersWidget.js +0 -41
  146. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/lib/analytics/events.js +0 -3
  147. package/dist/libs/tesouro-embedded-components-react/customers-widget/feature/dist/scenarios.js +0 -2
  148. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useUtcDayStart.js +0 -15
@@ -0,0 +1,143 @@
1
+ import { Badge as e, DataTable as t, DataTableSortableHeader as n, Skeleton as r, cn as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { EmptyState as a } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
3
+ import { ErrorState as o } from "../../../shared/ui/dist/lib/ErrorState/ErrorState.js";
4
+ import { NoAccessState as s } from "../../../shared/ui/dist/lib/StatePanel/NoAccessState.js";
5
+ import "../../../shared/ui/dist/index.js";
6
+ import { TabRowAction as c } from "./index8.js";
7
+ import { RECURRING_SERIES_SCREEN_LABELS_EN as l } from "./index61.js";
8
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
9
+ // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js
10
+ var f = [
11
+ 10,
12
+ 25,
13
+ 50,
14
+ 100
15
+ ], p = [];
16
+ function m({ row: e }) {
17
+ return e.customerState === "resolving" ? /* @__PURE__ */ u(r, { className: "ttw:h-4 ttw:w-full" }) : e.customerState === "missing" ? /* @__PURE__ */ u("span", {
18
+ className: "ttw:opacity-40",
19
+ children: e.customerLabel
20
+ }) : /* @__PURE__ */ u("span", { children: e.customerLabel });
21
+ }
22
+ function h({ row: e }) {
23
+ return /* @__PURE__ */ u("span", {
24
+ className: i(e.nextInvoiceMuted && "ttw:text-muted-foreground"),
25
+ children: e.nextInvoiceLabel
26
+ });
27
+ }
28
+ function g({ row: t }) {
29
+ return t.status.kind === "loading" ? /* @__PURE__ */ u(r, { className: "ttw:h-4 ttw:w-full" }) : t.status.kind === "blank" ? null : /* @__PURE__ */ u(e, {
30
+ tone: t.status.tone,
31
+ children: t.status.label
32
+ });
33
+ }
34
+ function _({ rows: e, isLoading: r, isError: i, isAccessRestricted: _, sorting: v, onSortingChange: y, pageSize: b, onPageSizeChange: x, pageSizeOptions: S = f, hasNextPage: C, hasPrevPage: w, onNextPage: T, onPrevPage: E, filterBar: D, isFiltering: O, onClearFilters: k, onCreateClick: A, headerActionContainer: j, onRowClick: M, onRetry: N, labels: P }) {
35
+ let F = {
36
+ ...l,
37
+ ...P
38
+ }, I = [
39
+ {
40
+ accessorKey: "customerLabel",
41
+ header: F.columnCustomer,
42
+ cell: ({ row: e }) => /* @__PURE__ */ u(m, { row: e.original }),
43
+ minSize: 180
44
+ },
45
+ {
46
+ accessorKey: "repeatsLabel",
47
+ header: F.columnRepeats
48
+ },
49
+ {
50
+ accessorKey: "nextInvoiceLabel",
51
+ header: F.columnNextInvoice,
52
+ cell: ({ row: e }) => /* @__PURE__ */ u(h, { row: e.original })
53
+ },
54
+ {
55
+ id: "status",
56
+ header: F.columnStatus,
57
+ cell: ({ row: e }) => /* @__PURE__ */ u(g, { row: e.original })
58
+ },
59
+ {
60
+ accessorKey: "amountLabel",
61
+ enableSorting: !0,
62
+ header: ({ column: e }) => /* @__PURE__ */ u("div", {
63
+ className: "ttw:flex ttw:justify-end",
64
+ children: /* @__PURE__ */ u(n, {
65
+ column: e,
66
+ title: F.columnAmount
67
+ })
68
+ }),
69
+ cell: ({ row: e }) => /* @__PURE__ */ u("div", {
70
+ className: "ttw:text-right ttw:tabular-nums",
71
+ children: e.original.amountLabel
72
+ })
73
+ }
74
+ ], L = (e) => /* @__PURE__ */ d("div", {
75
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
76
+ children: [
77
+ /* @__PURE__ */ d("div", {
78
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
79
+ children: [/* @__PURE__ */ u("span", {
80
+ className: "ttw:min-w-0 ttw:flex-1 ttw:font-medium",
81
+ children: /* @__PURE__ */ u(m, { row: e })
82
+ }), /* @__PURE__ */ u("span", {
83
+ className: "ttw:tabular-nums",
84
+ children: e.amountLabel
85
+ })]
86
+ }),
87
+ [{
88
+ label: F.columnRepeats,
89
+ value: e.repeatsLabel
90
+ }, {
91
+ label: F.columnNextInvoice,
92
+ value: /* @__PURE__ */ u(h, { row: e })
93
+ }].map((e) => /* @__PURE__ */ d("div", {
94
+ className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
95
+ children: [/* @__PURE__ */ u("span", {
96
+ className: "ttw:text-muted-foreground",
97
+ children: e.label
98
+ }), /* @__PURE__ */ u("span", { children: e.value })]
99
+ }, e.label)),
100
+ /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(g, { row: e }) })
101
+ ]
102
+ }), R = !_ && !i && !O && e.length === 0;
103
+ return /* @__PURE__ */ d("div", {
104
+ className: "ttw:flex ttw:flex-col ttw:gap-4",
105
+ children: [A && !R && /* @__PURE__ */ u(c, {
106
+ container: j,
107
+ label: F.createButton,
108
+ onClick: A
109
+ }), _ ? /* @__PURE__ */ u(s, {
110
+ title: F.accessRestrictedTitle,
111
+ description: F.accessRestrictedDescription
112
+ }) : /* @__PURE__ */ u(t, {
113
+ columns: I,
114
+ data: i ? p : e,
115
+ isLoading: r,
116
+ sorting: v,
117
+ onSortingChange: y,
118
+ pageSize: b,
119
+ onPageSizeChange: x,
120
+ pageSizeOptions: S,
121
+ hasNextPage: !i && C,
122
+ hasPrevPage: !i && w,
123
+ onNextPage: T,
124
+ onPrevPage: E,
125
+ onRowClick: M,
126
+ rowAriaLabel: (e) => F.openRow(e.customerLabel),
127
+ filterComponent: D,
128
+ renderCard: L,
129
+ children: i ? /* @__PURE__ */ u(o, {
130
+ title: F.errorTitle,
131
+ description: F.errorDescription,
132
+ retryLabel: N ? F.errorRetry : void 0,
133
+ onRetry: N
134
+ }) : /* @__PURE__ */ u(a, {
135
+ title: O ? F.filterEmptyTitle : F.emptyTitle,
136
+ description: O ? void 0 : F.emptyDescription,
137
+ actionLabel: O ? F.filterEmptyAction : F.createButton,
138
+ onAction: O ? k : A
139
+ })
140
+ })]
141
+ });
142
+ }
143
+ export { _ as RecurringSeriesScreen, _ as default };
@@ -0,0 +1,2 @@
1
+ import "./index61.js";
2
+ import "./index62.js";
@@ -0,0 +1,47 @@
1
+ import { AlertDialog as e, AlertDialogContent as t, AlertDialogDescription as n, AlertDialogFooter as r, AlertDialogHeader as i, AlertDialogTitle as a, Button as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { UNSAVED_INVOICE_DIALOG_LABELS_EN as s } from "./index18.js";
3
+ import { jsx as c, jsxs as l } from "react/jsx-runtime";
4
+ import { XIcon as u } from "lucide-react";
5
+ // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js
6
+ function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, isSaveDraftDisabled: g, labels: _ }) {
7
+ let v = {
8
+ ...s,
9
+ ..._
10
+ };
11
+ return /* @__PURE__ */ c(e, {
12
+ open: d,
13
+ onOpenChange: (e) => {
14
+ !e && !h && m();
15
+ },
16
+ children: /* @__PURE__ */ l(t, {
17
+ showCloseButton: !1,
18
+ children: [
19
+ /* @__PURE__ */ l("button", {
20
+ type: "button",
21
+ onClick: m,
22
+ disabled: h,
23
+ className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
24
+ children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
25
+ className: "ttw:sr-only",
26
+ children: v.unsavedCloseButton
27
+ })]
28
+ }),
29
+ /* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: v.unsavedTitle }), /* @__PURE__ */ c(n, { children: v.unsavedDescription })] }),
30
+ /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
31
+ type: "button",
32
+ variant: "outline",
33
+ onClick: p,
34
+ disabled: h,
35
+ children: v.unsavedDiscardButton
36
+ }), /* @__PURE__ */ c(o, {
37
+ type: "button",
38
+ loading: h,
39
+ disabled: h || g,
40
+ onClick: f,
41
+ children: v.unsavedSaveDraftButton
42
+ })] })
43
+ ]
44
+ })
45
+ });
46
+ }
47
+ export { d as UnsavedInvoiceDialog, d as default };
@@ -10,9 +10,28 @@ function p({ headerStart: p, tabs: m, selectedTabId: h, onTabChange: g, onSettin
10
10
  };
11
11
  return /* @__PURE__ */ d("div", {
12
12
  className: "ttw:flex ttw:flex-col ttw:gap-4",
13
- children: [p && /* @__PURE__ */ u("div", {
14
- className: "ttw:flex ttw:flex-col ttw:gap-2",
15
- children: p
13
+ children: [(p || _) && /* @__PURE__ */ d("div", {
14
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-4",
15
+ children: [/* @__PURE__ */ u("div", {
16
+ className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-2",
17
+ children: p
18
+ }), _ && /* @__PURE__ */ u(s, { children: /* @__PURE__ */ d(a, { children: [/* @__PURE__ */ u(c, {
19
+ asChild: !0,
20
+ children: /* @__PURE__ */ u(e, {
21
+ type: "button",
22
+ variant: "ghost",
23
+ size: "icon",
24
+ "aria-label": b.settingsButton,
25
+ onClick: _,
26
+ children: /* @__PURE__ */ u(f, {
27
+ className: "ttw:size-4",
28
+ "aria-hidden": !0
29
+ })
30
+ })
31
+ }), /* @__PURE__ */ u(o, {
32
+ sideOffset: 4,
33
+ children: b.settingsButton
34
+ })] }) })]
16
35
  }), /* @__PURE__ */ d(t, {
17
36
  value: h,
18
37
  onValueChange: g,
@@ -25,28 +44,9 @@ function p({ headerStart: p, tabs: m, selectedTabId: h, onTabChange: g, onSettin
25
44
  value: e.id,
26
45
  children: e.label
27
46
  }, e.id))
28
- }), /* @__PURE__ */ d("div", {
29
- className: "ttw:flex ttw:items-center ttw:gap-2",
30
- children: [_ && /* @__PURE__ */ u(s, { children: /* @__PURE__ */ d(a, { children: [/* @__PURE__ */ u(c, {
31
- asChild: !0,
32
- children: /* @__PURE__ */ u(e, {
33
- type: "button",
34
- variant: "ghost",
35
- size: "icon",
36
- "aria-label": b.settingsButton,
37
- onClick: _,
38
- children: /* @__PURE__ */ u(f, {
39
- className: "ttw:size-4",
40
- "aria-hidden": !0
41
- })
42
- })
43
- }), /* @__PURE__ */ u(o, {
44
- sideOffset: 4,
45
- children: b.settingsButton
46
- })] }) }), /* @__PURE__ */ u("div", {
47
- ref: v,
48
- className: "ttw:contents"
49
- })]
47
+ }), /* @__PURE__ */ u("div", {
48
+ ref: v,
49
+ className: "ttw:flex ttw:items-center ttw:gap-2"
50
50
  })]
51
51
  }), m.map((e) => /* @__PURE__ */ u(n, {
52
52
  value: e.id,
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
5
+ import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
6
6
  import { TESOURO_NEW_EXTERNAL_BANK_ACCOUNT_LINKED_SUCCESS_EVENT as t, emitWidgetDomEvent as n } from "../../../../shared/util/dist/lib/widgetDomEvents.js";
7
7
  import { extractApiErrorMessage as r } from "../../../../shared/util/dist/lib/apiErrors.js";
8
8
  import "../../../../shared/util/dist/index.js";
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
5
+ import { toast as e } from "../../../../../../../node_modules/sonner/dist/index.js";
6
6
  import { extractApiErrorMessage as t } from "../../../../../shared/util/dist/lib/apiErrors.js";
7
7
  import "../../../../../shared/ui/dist/index.js";
8
8
  import { formatDeleteError as n } from "../../../../../shared/product-catalog/feature/dist/lib/helpers.js";
@@ -178,14 +178,6 @@ function I(e, t, { products: n = k, scopes: r = y, ...i } = {}) {
178
178
  var L = (e, t = {}) => I(e, {
179
179
  label: r[e].label,
180
180
  blurb: v.blurbs[e]
181
- }, t), R = [
182
- L("populated"),
183
- L("empty", { products: [] }),
184
- L("loading", { list: "held" }),
185
- L("error", { list: "failing" }),
186
- L("paginated", { products: [...k, ...A] }),
187
- L("control-hidden", { scopes: [e.InvoiceReadOrg] }),
188
- I("access-restricted", v.scenarios["access-restricted"], { scopes: [e.CounterpartReadOrg] }),
189
- I("product-not-found", v.scenarios["product-not-found"], { detailMissing: !0 })
190
- ];
191
- export { E as MEASURE_UNITS, k as PRODUCTS, F as productRoutes, j as productWorld, R as productsScenarios };
181
+ }, t);
182
+ L("populated"), L("empty", { products: [] }), L("loading", { list: "held" }), L("error", { list: "failing" }), L("paginated", { products: [...k, ...A] }), L("control-hidden", { scopes: [e.InvoiceReadOrg] }), I("access-restricted", v.scenarios["access-restricted"], { scopes: [e.CounterpartReadOrg] }), I("product-not-found", v.scenarios["product-not-found"], { detailMissing: !0 });
183
+ export { E as MEASURE_UNITS, k as PRODUCTS, F as productRoutes, j as productWorld };
@@ -1 +1 @@
1
- export { productRoutes, productWorld, productsScenarios } from "./mocks/products.js";
1
+ export { productRoutes, productWorld } from "./mocks/products.js";
@@ -2,97 +2,56 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { getDebitCardTransactions as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
- import { getDebitCardTransactionsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
7
- import { withAuthEpoch as n } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
8
- import { useEmbedApi as r } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
9
- import { organizationHeaders as i } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
10
- import { useAllDebitCardsQuery as a } from "../../../../shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js";
5
+ import { getDebitCardSpendSummaryOptions as e } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
6
+ import { withAuthEpoch as t } from "../../../../shared/data-access/dist/lib/withAuthEpoch.js";
7
+ import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
+ import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
9
+ import { useAllDebitCardsQuery as i } from "../../../../shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js";
11
10
  import "../../../../shared/data-access/dist/index.js";
12
- import { useQueries as o } from "@tanstack/react-query";
11
+ import { useQuery as a } from "@tanstack/react-query";
13
12
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/cards/data-access/dist/index2.js
14
- var s = 100, c = {
13
+ var o = {
15
14
  staleTime: 6e4,
16
15
  refetchOnWindowFocus: !0
17
- }, l = {
18
- staleTime: 3e5,
19
- refetchOnWindowFocus: !1
20
- }, u = {
16
+ }, s = {
21
17
  retry: 2,
22
18
  retryDelay: 300
23
19
  };
24
- function d(e) {
25
- return {
26
- transactions: e.every((e) => e.data !== void 0) ? e.flatMap((e) => e.data ?? []) : void 0,
27
- isLoading: e.some((e) => e.isLoading),
28
- isFetching: e.some((e) => e.isFetching),
29
- isError: e.some((e) => e.isError),
30
- refetch: () => Promise.all(e.map((e) => e.refetch()))
31
- };
32
- }
33
- async function f(e) {
34
- let t = [], n = /* @__PURE__ */ new Set(), r;
35
- do {
36
- let i = await e(r);
37
- t.push(...i.data), r && n.add(r), r = i.nextPaginationToken ?? void 0;
38
- } while (r && !n.has(r));
39
- return t;
40
- }
41
- function p(e) {
20
+ function c(e) {
42
21
  return e.data !== void 0 && !e.isPlaceholderData && !e.hasNextPage && !e.isFetchingNextPage;
43
22
  }
44
- function m(e) {
45
- return e.data !== void 0 && !e.isError && !p(e);
23
+ function l(e) {
24
+ return e.data !== void 0 && !e.isError && !c(e);
46
25
  }
47
- function h({ enabled: h = !0 } = {}) {
48
- let { client: g, organizationId: _, widgetToken: v, authEpoch: y, organizationStatus: b } = r(), x = a({
49
- enabled: h,
50
- ...c,
51
- ...u
52
- }), S = p(x) ? x.data?.data : void 0, C = i(_), w = o({
53
- queries: (S ?? []).map((r) => ({
54
- ...n({
55
- queryKey: [...t({
56
- client: g,
57
- headers: C,
58
- path: { id: r.id },
59
- query: { limit: s }
60
- }), "all-pages"],
61
- queryFn: ({ signal: t }) => f(async (n) => {
62
- let { data: i } = await e({
63
- client: g,
64
- headers: C,
65
- path: { id: r.id },
66
- query: {
67
- limit: s,
68
- ...n ? { paginationToken: n } : {}
69
- },
70
- signal: t,
71
- throwOnError: !0
72
- });
73
- return i;
74
- })
75
- }, {
76
- authEpoch: y,
77
- organizationStatus: b
78
- }),
79
- ...l,
80
- ...u,
81
- enabled: !!(_ && v) && h
82
- })),
83
- combine: d
26
+ function u({ since: u, enabled: d = !0 } = {}) {
27
+ let { client: f, organizationId: p, widgetToken: m, authEpoch: h, organizationStatus: g } = n(), _ = i({
28
+ enabled: d,
29
+ ...o,
30
+ ...s
31
+ }), v = c(_) ? _.data?.data : void 0, y = a({
32
+ ...t(e({
33
+ client: f,
34
+ headers: r(p),
35
+ query: { since: u ?? "" }
36
+ }), {
37
+ authEpoch: h,
38
+ organizationStatus: g
39
+ }),
40
+ ...o,
41
+ ...s,
42
+ enabled: !!(p && m && u) && d
84
43
  });
85
44
  return {
86
- data: S && w.transactions ? {
87
- cards: S,
88
- transactions: w.transactions
45
+ data: v && y.data ? {
46
+ cards: v,
47
+ totals: y.data.totals
89
48
  } : void 0,
90
- isLoading: x.isLoading || m(x) || w.isLoading,
91
- isFetching: x.isFetching || w.isFetching,
92
- isError: x.isError || w.isError,
49
+ isLoading: _.isLoading || l(_) || y.isLoading,
50
+ isFetching: _.isFetching || y.isFetching,
51
+ isError: _.isError || y.isError,
93
52
  refetch: async () => {
94
- await x.refetch(), await w.refetch();
53
+ await Promise.all([_.refetch(), y.refetch()]);
95
54
  }
96
55
  };
97
56
  }
98
- export { p as isCardListComplete, m as isCardListPaging, f as readAllPages, h as useCardSpendReads };
57
+ export { c as isCardListComplete, l as isCardListPaging, u as useCardSpendReads };
@@ -1,17 +1,15 @@
1
1
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/summarizeCardSpend.js
2
- var e = ["PENDING", "SETTLED"], t = (e) => {
3
- let t = new Date(e);
4
- return `${t.getFullYear()}-${String(t.getMonth() + 1).padStart(2, "0")}`;
5
- }, n = (e) => e.settledAmount ?? e.authorizedAmount;
6
- function r({ cards: r, transactions: i }, a) {
7
- let o = a.slice(0, 7), s = i.filter((r) => e.includes(r.state) && n(r).currencyCode === "USD" && t(r.authorizedAt) === o).reduce((e, t) => {
8
- let r = Number(n(t).value);
9
- return t.type === "REFUND" ? e - r : e + r;
10
- }, 0);
2
+ var e = (e) => String(e).padStart(2, "0");
3
+ function t(t) {
4
+ let n = Number(t.slice(0, 4)), r = Number(t.slice(5, 7)), i = -new Date(n, r - 1, 1).getTimezoneOffset(), a = i < 0 ? "-" : "+", o = Math.abs(i);
5
+ return `${t.slice(0, 7)}-01T00:00:00${a}${e(Math.floor(o / 60))}:${e(o % 60)}`;
6
+ }
7
+ function n({ cards: e, totals: t }) {
8
+ let n = t.find((e) => e.currencyCode === "USD");
11
9
  return {
12
- hasCards: r.length > 0,
13
- cardCount: r.filter((e) => e.cardStatus !== "CLOSED").length,
14
- spendAmount: s
10
+ hasCards: e.length > 0,
11
+ cardCount: e.filter((e) => e.cardStatus !== "CLOSED").length,
12
+ spendAmount: n ? Number(n.value) : 0
15
13
  };
16
14
  }
17
- export { r as summarizeCardSpend };
15
+ export { t as startOfLocalMonth, n as summarizeCardSpend };
@@ -6,24 +6,27 @@ import { useEmbedApi as e } from "../../../../../../shared/data-access/dist/lib/
6
6
  import "../../../../../../shared/data-access/dist/index.js";
7
7
  import { useLocalCalendarDay as t } from "../../../../../../shared/feature/dist/lib/calendar/useLocalCalendarDay.js";
8
8
  import "../../../../../../shared/feature/dist/index.js";
9
- import { summarizeCardSpend as n } from "./summarizeCardSpend.js";
10
- import { useCardSpendReads as r } from "../../../../data-access/dist/index2.js";
9
+ import { startOfLocalMonth as n, summarizeCardSpend as r } from "./summarizeCardSpend.js";
10
+ import { useCardSpendReads as i } from "../../../../data-access/dist/index2.js";
11
11
  import "../../../../data-access/dist/index.js";
12
- import { useMemo as i, useState as a } from "react";
12
+ import { useMemo as a, useState as o } from "react";
13
13
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/useCardSpendSummary.js
14
- var o = (e, t) => Object.keys(e).every((n) => e[n] === t[n]);
15
- function s({ enabled: s } = {}) {
16
- let c = t(), l = r({ enabled: s }), { organizationId: u, authEpoch: d } = e(), f = i(() => l.data && c ? n(l.data, c) : void 0, [l.data, c]), [p, m] = a(), h = c?.slice(0, 7), g = p !== void 0 && p.organizationId === u && p.authEpoch === d && p.month === h, _ = f !== void 0 && (!l.isFetching && !l.isError || !g), v = g ? p.summary : f;
17
- return _ && !(g && o(p.summary, f)) && (m({
18
- organizationId: u,
19
- authEpoch: d,
20
- month: h,
21
- summary: f
22
- }), v = f), {
23
- ...l,
24
- data: v,
25
- today: c,
26
- isLoading: (l.isLoading || c === void 0) && !v
14
+ var s = (e, t) => Object.keys(e).every((n) => e[n] === t[n]);
15
+ function c({ enabled: c } = {}) {
16
+ let l = t(), u = l === void 0 ? void 0 : n(l), d = i({
17
+ since: u,
18
+ enabled: c
19
+ }), { organizationId: f, authEpoch: p } = e(), m = a(() => d.data ? r(d.data) : void 0, [d.data]), [h, g] = o(), _ = l?.slice(0, 7), v = h !== void 0 && h.organizationId === f && h.authEpoch === p && h.month === _, y = m !== void 0 && (!d.isFetching && !d.isError || !v), b = v ? h.summary : m;
20
+ return y && !(v && s(h.summary, m)) && (g({
21
+ organizationId: f,
22
+ authEpoch: p,
23
+ month: _,
24
+ summary: m
25
+ }), b = m), {
26
+ ...d,
27
+ data: b,
28
+ today: l,
29
+ isLoading: (d.isLoading || l === void 0) && !b
27
30
  };
28
31
  }
29
- export { s as useCardSpendSummary };
32
+ export { c as useCardSpendSummary };
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
5
+ import { toast as e } from "../../../../../../../node_modules/sonner/dist/index.js";
6
6
  import { amountOutputToMajorUnits as t, minorExponentForCurrency as n } from "../../../../../shared/util/dist/lib/amountOutputToMajorUnits.js";
7
7
  import { formatCalendarDate as r } from "../../../../../shared/util/dist/lib/formatCalendarDate.js";
8
8
  import { formatMoneyExact as i } from "../../../../../shared/util/dist/lib/formatMoneyExact.js";
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
5
+ import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
6
6
  import { extractApiErrorMessage as t } from "../../../../shared/util/dist/lib/apiErrors.js";
7
7
  import "../../../../shared/util/dist/index.js";
8
8
  import "../../../../shared/ui/dist/index.js";
@@ -155,6 +155,13 @@ function L({ canWrite: e }) {
155
155
  let i = t.find((e) => e.id === n);
156
156
  return i ? b(i) : S(404, "Not Found", "No such user.");
157
157
  }),
158
+ p("POST", "/users/:id/resend-invitation", (e, { id: n }) => {
159
+ let r = t.find((e) => e.id === n);
160
+ return r ? b({
161
+ email: r.email,
162
+ userId: r.id
163
+ }) : S(404, "Not Found", "No such user.");
164
+ }),
158
165
  p("POST", "/users/:id/disable", (e, { id: n }) => (t = t.map((e) => e.id === n ? {
159
166
  ...e,
160
167
  status: "INACTIVE"
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
5
+ import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
6
6
  import "../../../../shared/ui/dist/index.js";
7
7
  import { INVOICE_SETTINGS_MESSAGE_LABELS_EN as t } from "./index5.js";
8
8
  import { buildDocumentRendering as n, getBankDisplayValue as r } from "./index3.js";
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
5
+ import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
6
6
  import "../../../../shared/ui/dist/index.js";
7
7
  import { INVOICE_SETTINGS_MESSAGE_LABELS_EN as t } from "./index5.js";
8
8
  import { useUploadEntityLogoMutation as n } from "../../data-access/dist/index6.js";
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { createUser as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
5
+ import { resendUserInvitation as e } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
6
6
  import { invalidateAllClients as t } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
7
7
  import { useEmbedApi as n } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
8
8
  import { organizationHeaders as r } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
@@ -13,17 +13,12 @@ import { useMutation as a } from "@tanstack/react-query";
13
13
  function o() {
14
14
  let { client: o, organizationId: s } = n(), c = r(s);
15
15
  return a({
16
- mutationFn: async ({ name: t, email: n, redirectUri: r }) => {
16
+ mutationFn: async ({ userId: t, redirectUri: n }) => {
17
17
  await e({
18
18
  client: o,
19
19
  headers: c,
20
- body: {
21
- name: t,
22
- email: n,
23
- status: "INVITED",
24
- permissionIds: [],
25
- redirectUri: r
26
- },
20
+ path: { userId: t },
21
+ body: { redirectUri: n },
27
22
  throwOnError: !0
28
23
  });
29
24
  },
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
5
+ import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
6
6
  import { isAllPagesResolving as t } from "../../../../shared/data-access/dist/lib/allPages.js";
7
7
  import { useAllBankAccountsQuery as n } from "../../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
8
8
  import { useAllDebitCardsQuery as r } from "../../../../shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js";
@@ -2,7 +2,7 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
5
+ import { toast as e } from "../../../../../../node_modules/sonner/dist/index.js";
6
6
  import { isApiUnprocessableError as t } from "../../../../shared/data-access/dist/lib/isApiUnprocessableError.js";
7
7
  import "../../../../shared/data-access/dist/index.js";
8
8
  import "../../../../shared/ui/dist/index.js";
@@ -66,8 +66,7 @@ function f({ canDeactivate: o, canResendInvite: l, members: u, featureLabels: f,
66
66
  onResendOpenChange: y.onOpenChange,
67
67
  onResendConfirm: () => {
68
68
  l && y.member && g.mutate({
69
- name: y.member.name,
70
- email: y.member.email,
69
+ userId: y.member.id,
71
70
  redirectUri: c(p)
72
71
  }, { onSuccess: () => {
73
72
  e.success(f.resendSuccessToast), y.close();