@tesouro/embedded-components-react 0.5.186 → 0.5.188
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -9
- package/dist/index.css +110 -0
- package/dist/index.d.ts +233 -60
- package/dist/index.js +6 -6
- package/dist/lib/ExpenseManagementWidget.d.ts +189 -11
- package/dist/lib/ExpenseManagementWidget.js +1 -1
- package/dist/lib/UploadReceiptWidget.js +1 -1
- package/dist/lib/WidgetSuite.d.ts +213 -16
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index.js +17 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index10.js +36 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index11.js +71 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index12.js +39 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index13.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index14.js +110 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index16.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +33 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index20.js +28 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index21.js +164 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +25 -18
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +20 -34
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index7.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index.js +10 -7
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index10.js +162 -59
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index11.js +64 -16
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index12.js +73 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index13.js +348 -42
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index14.js +42 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index15.js +143 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index16.js +229 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index17.js +196 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index18.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index19.js +91 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index2.js +89 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index20.js +39 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index21.js +297 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index22.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index23.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +256 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index25.js +22 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index26.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +223 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +2 -254
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index4.js +4 -20
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +262 -8
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index6.js +2 -221
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index7.js +54 -80
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index8.js +24 -254
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index9.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/index.js +34 -13
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +549 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/labels.js +38 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ActionItemsList/ActionItemsList.js +64 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ActionItemsList/labels.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/ExpenseStatusBadge.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/badgeTones.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseStatusBadge/labels.js +13 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesHeader/ExpensesHeader.js +37 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesHeader/labels.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/ExpensesScreen.js +112 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesScreen/labels.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +158 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/labels.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +148 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/labels.js +18 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +107 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/PdfFileViewer.js +37 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/labels.js +11 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchLauncher.js +2 -24
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ReceiptMatchWidget/lib/ReceiptMatchSidebar.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ReceiptMatchWidget/lib/TransactionsMatchStep.js +62 -65
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ReceiptMatchWidget/lib/labels.js +1 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/DeleteReceiptDialog/DeleteReceiptDialog.js +31 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/DeleteReceiptDialog/labels.js +9 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/TransactionDetails.js +268 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/labels.js +21 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/BulkProgress.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/TransactionDetailsActions.js +142 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetailsActions/labels.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/isPdf.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js +116 -94
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js +76 -68
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +181 -179
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index7.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index8.js +66 -66
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +36 -35
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +54 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +268 -206
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +218 -113
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/formatCalendarDate.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index11.js +16 -14
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index4.js +1 -2
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/ExpenseManagementWidgetUi.js +0 -71
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/index.js +0 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpenseManagementWidgetUi/labels.js +0 -10
|
@@ -118,11 +118,11 @@ function P({ id: e, label: t, value: n, options: r, placeholder: i, emptyMessage
|
|
|
118
118
|
]
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
-
function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i, reportingManagerOptions: a, accountAccessOptions: c, departmentsLoading: l = !1, locationsLoading: u = !1, reportingManagersLoading: d = !1, departmentsError: f = !1, locationsError: p = !1, reportingManagersError: m = !1, accountAccessLoading: h = !1, accountAccessError: g = !1, accountAccessMode: w = "hidden", errors: O, submitErrorMessage: k, isSubmitting: M = !1,
|
|
122
|
-
let
|
|
121
|
+
function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i, reportingManagerOptions: a, accountAccessOptions: c, departmentsLoading: l = !1, locationsLoading: u = !1, reportingManagersLoading: d = !1, departmentsError: f = !1, locationsError: p = !1, reportingManagersError: m = !1, accountAccessLoading: h = !1, accountAccessError: g = !1, accountAccessMode: w = "hidden", errors: O, submitErrorMessage: k, isSubmitting: M = !1, isSubmitBlocked: N = !1, onFormChange: F, onBackClick: I, onCancel: L, onSubmit: R, labels: z }) {
|
|
122
|
+
let B = {
|
|
123
123
|
...y,
|
|
124
|
-
...
|
|
125
|
-
},
|
|
124
|
+
...z
|
|
125
|
+
}, V = C(null), H = S(() => c.map((e) => ({
|
|
126
126
|
...e,
|
|
127
127
|
checked: w === "admin" || t.accountAccess.includes(e.value)
|
|
128
128
|
})), [
|
|
@@ -131,31 +131,31 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
131
131
|
t.accountAccess
|
|
132
132
|
]);
|
|
133
133
|
return x(() => {
|
|
134
|
-
|
|
134
|
+
V.current?.focus();
|
|
135
135
|
}, []), /* @__PURE__ */ E("section", {
|
|
136
|
-
"aria-label":
|
|
136
|
+
"aria-label": B.inviteTitle,
|
|
137
137
|
className: "ttw:rounded-md ttw:border ttw:border-border ttw:bg-card ttw:p-4",
|
|
138
138
|
children: [
|
|
139
139
|
/* @__PURE__ */ E(e, {
|
|
140
|
-
ref:
|
|
140
|
+
ref: V,
|
|
141
141
|
variant: "ghost",
|
|
142
142
|
size: "sm",
|
|
143
143
|
disabled: M,
|
|
144
|
-
onClick:
|
|
144
|
+
onClick: I,
|
|
145
145
|
children: [/* @__PURE__ */ T(D, {
|
|
146
146
|
"aria-hidden": !0,
|
|
147
147
|
className: "ttw:size-4"
|
|
148
|
-
}),
|
|
148
|
+
}), B.inviteBackToTeamButton]
|
|
149
149
|
}),
|
|
150
150
|
/* @__PURE__ */ T("h3", {
|
|
151
151
|
className: "ttw:mt-4 ttw:text-lg ttw:font-semibold ttw:text-foreground",
|
|
152
|
-
children:
|
|
152
|
+
children: B.inviteTitle
|
|
153
153
|
}),
|
|
154
154
|
/* @__PURE__ */ T("form", {
|
|
155
155
|
noValidate: !0,
|
|
156
156
|
className: "ttw:mt-4",
|
|
157
157
|
onSubmit: (e) => {
|
|
158
|
-
e.preventDefault(),
|
|
158
|
+
e.preventDefault(), R();
|
|
159
159
|
},
|
|
160
160
|
children: /* @__PURE__ */ E("fieldset", {
|
|
161
161
|
className: "ttw:space-y-6",
|
|
@@ -166,14 +166,14 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
166
166
|
children: [
|
|
167
167
|
/* @__PURE__ */ T("h4", {
|
|
168
168
|
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
169
|
-
children:
|
|
169
|
+
children: B.inviteDetailsSectionHeading
|
|
170
170
|
}),
|
|
171
171
|
/* @__PURE__ */ E("div", {
|
|
172
172
|
className: "ttw:space-y-2",
|
|
173
173
|
children: [
|
|
174
174
|
/* @__PURE__ */ T(s, {
|
|
175
175
|
htmlFor: "team-invite-name",
|
|
176
|
-
children:
|
|
176
|
+
children: B.inviteNameLabel
|
|
177
177
|
}),
|
|
178
178
|
/* @__PURE__ */ T(o, {
|
|
179
179
|
id: "team-invite-name",
|
|
@@ -183,7 +183,7 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
183
183
|
value: t.name,
|
|
184
184
|
"aria-invalid": O?.name ? !0 : void 0,
|
|
185
185
|
"aria-describedby": O?.name ? "team-invite-name-error" : void 0,
|
|
186
|
-
onChange: (e) =>
|
|
186
|
+
onChange: (e) => F({
|
|
187
187
|
...t,
|
|
188
188
|
name: e.target.value
|
|
189
189
|
})
|
|
@@ -199,7 +199,7 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
199
199
|
children: [
|
|
200
200
|
/* @__PURE__ */ T(s, {
|
|
201
201
|
htmlFor: "team-invite-email",
|
|
202
|
-
children:
|
|
202
|
+
children: B.inviteWorkEmailLabel
|
|
203
203
|
}),
|
|
204
204
|
/* @__PURE__ */ T(o, {
|
|
205
205
|
id: "team-invite-email",
|
|
@@ -210,7 +210,7 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
210
210
|
value: t.email,
|
|
211
211
|
"aria-invalid": O?.email ? !0 : void 0,
|
|
212
212
|
"aria-describedby": O?.email ? "team-invite-email-error" : void 0,
|
|
213
|
-
onChange: (e) =>
|
|
213
|
+
onChange: (e) => F({
|
|
214
214
|
...t,
|
|
215
215
|
email: e.target.value
|
|
216
216
|
})
|
|
@@ -225,37 +225,37 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
225
225
|
className: "ttw:grid ttw:grid-cols-1 ttw:gap-4 ttw:sm:grid-cols-2",
|
|
226
226
|
children: [/* @__PURE__ */ T(P, {
|
|
227
227
|
id: "team-invite-department",
|
|
228
|
-
label:
|
|
228
|
+
label: B.inviteDepartmentLabel,
|
|
229
229
|
value: t.department,
|
|
230
230
|
options: r,
|
|
231
|
-
placeholder:
|
|
232
|
-
emptyMessage:
|
|
233
|
-
loadingMessage:
|
|
234
|
-
noneLabel:
|
|
231
|
+
placeholder: B.inviteDepartmentPlaceholder,
|
|
232
|
+
emptyMessage: B.inviteDepartmentEmpty,
|
|
233
|
+
loadingMessage: B.inviteOptionsLoading,
|
|
234
|
+
noneLabel: B.inviteOptionNone,
|
|
235
235
|
isLoading: l,
|
|
236
236
|
isError: f,
|
|
237
|
-
errorMessage:
|
|
238
|
-
errorHelper:
|
|
239
|
-
emptyHelper:
|
|
240
|
-
onValueChange: (e) =>
|
|
237
|
+
errorMessage: B.inviteDepartmentLoadError,
|
|
238
|
+
errorHelper: B.inviteDepartmentLoadErrorHelper,
|
|
239
|
+
emptyHelper: B.inviteDepartmentEmptyHelper,
|
|
240
|
+
onValueChange: (e) => F({
|
|
241
241
|
...t,
|
|
242
242
|
department: e
|
|
243
243
|
})
|
|
244
244
|
}), /* @__PURE__ */ T(P, {
|
|
245
245
|
id: "team-invite-location",
|
|
246
|
-
label:
|
|
246
|
+
label: B.inviteLocationLabel,
|
|
247
247
|
value: t.location,
|
|
248
248
|
options: i,
|
|
249
|
-
placeholder:
|
|
250
|
-
emptyMessage:
|
|
251
|
-
loadingMessage:
|
|
252
|
-
noneLabel:
|
|
249
|
+
placeholder: B.inviteLocationPlaceholder,
|
|
250
|
+
emptyMessage: B.inviteLocationEmpty,
|
|
251
|
+
loadingMessage: B.inviteOptionsLoading,
|
|
252
|
+
noneLabel: B.inviteOptionNone,
|
|
253
253
|
isLoading: u,
|
|
254
254
|
isError: p,
|
|
255
|
-
errorMessage:
|
|
256
|
-
errorHelper:
|
|
257
|
-
emptyHelper:
|
|
258
|
-
onValueChange: (e) =>
|
|
255
|
+
errorMessage: B.inviteLocationLoadError,
|
|
256
|
+
errorHelper: B.inviteLocationLoadErrorHelper,
|
|
257
|
+
emptyHelper: B.inviteLocationEmptyHelper,
|
|
258
|
+
onValueChange: (e) => F({
|
|
259
259
|
...t,
|
|
260
260
|
location: e
|
|
261
261
|
})
|
|
@@ -263,23 +263,23 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
263
263
|
}),
|
|
264
264
|
/* @__PURE__ */ T(P, {
|
|
265
265
|
id: "team-invite-reporting-manager",
|
|
266
|
-
label:
|
|
266
|
+
label: B.inviteReportingManagerLabel,
|
|
267
267
|
value: t.reportingManager,
|
|
268
268
|
options: a,
|
|
269
|
-
placeholder:
|
|
270
|
-
emptyMessage:
|
|
271
|
-
loadingMessage:
|
|
272
|
-
noneLabel:
|
|
269
|
+
placeholder: B.inviteReportingManagerPlaceholder,
|
|
270
|
+
emptyMessage: B.inviteReportingManagerEmpty,
|
|
271
|
+
loadingMessage: B.inviteOptionsLoading,
|
|
272
|
+
noneLabel: B.inviteOptionNone,
|
|
273
273
|
isLoading: d,
|
|
274
274
|
isError: m,
|
|
275
|
-
errorMessage:
|
|
276
|
-
errorHelper:
|
|
277
|
-
emptyHelper:
|
|
278
|
-
readyHelper:
|
|
275
|
+
errorMessage: B.inviteReportingManagerLoadError,
|
|
276
|
+
errorHelper: B.inviteReportingManagerLoadErrorHelper,
|
|
277
|
+
emptyHelper: B.inviteReportingManagerEmptyHelper,
|
|
278
|
+
readyHelper: B.inviteReportingManagerHelper,
|
|
279
279
|
searchable: !0,
|
|
280
|
-
searchPlaceholder:
|
|
281
|
-
noResultsLabel:
|
|
282
|
-
onValueChange: (e) =>
|
|
280
|
+
searchPlaceholder: B.inviteReportingManagerSearchPlaceholder,
|
|
281
|
+
noResultsLabel: B.inviteReportingManagerNoResults,
|
|
282
|
+
onValueChange: (e) => F({
|
|
283
283
|
...t,
|
|
284
284
|
reportingManager: e
|
|
285
285
|
})
|
|
@@ -292,11 +292,11 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
292
292
|
/* @__PURE__ */ T("div", {
|
|
293
293
|
id: "team-invite-role-heading",
|
|
294
294
|
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
295
|
-
children:
|
|
295
|
+
children: B.inviteRoleSectionHeading
|
|
296
296
|
}),
|
|
297
297
|
/* @__PURE__ */ T("p", {
|
|
298
298
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
299
|
-
children:
|
|
299
|
+
children: B.inviteRoleSectionDescription
|
|
300
300
|
}),
|
|
301
301
|
/* @__PURE__ */ T("div", {
|
|
302
302
|
className: "ttw:mt-3",
|
|
@@ -304,7 +304,7 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
304
304
|
idPrefix: "team-invite-role",
|
|
305
305
|
options: n,
|
|
306
306
|
value: t.role,
|
|
307
|
-
onValueChange: (e) =>
|
|
307
|
+
onValueChange: (e) => F({
|
|
308
308
|
...t,
|
|
309
309
|
role: e
|
|
310
310
|
}),
|
|
@@ -324,10 +324,10 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
324
324
|
children: [/* @__PURE__ */ T("div", {
|
|
325
325
|
id: "team-invite-account-access-heading",
|
|
326
326
|
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
327
|
-
children:
|
|
327
|
+
children: B.inviteAccountAccessSectionHeading
|
|
328
328
|
}), /* @__PURE__ */ T("p", {
|
|
329
329
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
330
|
-
children:
|
|
330
|
+
children: B.manageAccessEmployeeNote
|
|
331
331
|
})]
|
|
332
332
|
}),
|
|
333
333
|
(w === "picker" || w === "admin") && /* @__PURE__ */ E("div", {
|
|
@@ -336,30 +336,30 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
336
336
|
/* @__PURE__ */ T("div", {
|
|
337
337
|
id: "team-invite-account-access-heading",
|
|
338
338
|
className: "ttw:text-base ttw:font-semibold ttw:text-foreground",
|
|
339
|
-
children:
|
|
339
|
+
children: B.inviteAccountAccessSectionHeading
|
|
340
340
|
}),
|
|
341
341
|
/* @__PURE__ */ T("p", {
|
|
342
342
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
343
|
-
children:
|
|
343
|
+
children: B.inviteAccountAccessSectionDescription
|
|
344
344
|
}),
|
|
345
|
-
g ? /* @__PURE__ */ T(_, { children:
|
|
345
|
+
g ? /* @__PURE__ */ T(_, { children: B.inviteAccountAccessLoadError }) : h ? /* @__PURE__ */ T("p", {
|
|
346
346
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
347
|
-
children:
|
|
347
|
+
children: B.inviteOptionsLoading
|
|
348
348
|
}) : /* @__PURE__ */ T(v, {
|
|
349
|
-
rows:
|
|
349
|
+
rows: H,
|
|
350
350
|
onToggle: (e, n) => {
|
|
351
|
-
|
|
351
|
+
F({
|
|
352
352
|
...t,
|
|
353
353
|
accountAccess: n ? [...t.accountAccess, e] : t.accountAccess.filter((t) => t !== e)
|
|
354
354
|
});
|
|
355
355
|
},
|
|
356
356
|
disabled: w === "admin",
|
|
357
|
-
note: w === "admin" ?
|
|
358
|
-
emptyMessage:
|
|
357
|
+
note: w === "admin" ? B.inviteAccountAccessAdminNote : void 0,
|
|
358
|
+
emptyMessage: B.inviteAccountAccessEmpty,
|
|
359
359
|
labels: {
|
|
360
|
-
accountNameColumn:
|
|
361
|
-
accessColumn:
|
|
362
|
-
toggleAriaLabel:
|
|
360
|
+
accountNameColumn: B.accountAccessNameColumn,
|
|
361
|
+
accessColumn: B.accountAccessAccessColumn,
|
|
362
|
+
toggleAriaLabel: B.accountAccessToggleLabel
|
|
363
363
|
}
|
|
364
364
|
})
|
|
365
365
|
]
|
|
@@ -370,13 +370,13 @@ function F({ form: t, roleOptions: n, departmentOptions: r, locationOptions: i,
|
|
|
370
370
|
children: [/* @__PURE__ */ T(e, {
|
|
371
371
|
type: "button",
|
|
372
372
|
variant: "ghost",
|
|
373
|
-
onClick:
|
|
374
|
-
children:
|
|
373
|
+
onClick: L,
|
|
374
|
+
children: B.inviteCancelButton
|
|
375
375
|
}), /* @__PURE__ */ E(e, {
|
|
376
376
|
type: "submit",
|
|
377
377
|
loading: M,
|
|
378
|
-
disabled: l || u || d || (w === "picker" || w === "admin") && (h || g),
|
|
379
|
-
children: [
|
|
378
|
+
disabled: N || l || u || d || (w === "picker" || w === "admin") && (h || g),
|
|
379
|
+
children: [B.inviteSubmitButton, /* @__PURE__ */ T(A, {
|
|
380
380
|
"aria-hidden": !0,
|
|
381
381
|
className: "ttw:size-4"
|
|
382
382
|
})]
|
|
@@ -1,42 +1,43 @@
|
|
|
1
1
|
import "./lib/finopsApiVersion.js";
|
|
2
2
|
import "./lib/rest/client.gen.js";
|
|
3
|
-
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteMeasureUnitsId as d, deletePayablesId as f, deletePayablesIdFile as p, deleteProductsId as m, deleteReceivablesId as h, downloadBankAccountTransactions as g, getApplicationStatus as _, getApprovalPolicies as v, getApprovalRequests as y, getBankAccountAccess as b, getBankAccountStatement as x, getCounterparts as S, getDepartment as C, getDepositableBankAccounts as w, getExternalBankAccountAccess as T, getLocation as E, getPayables as D, getPayablesId as O, getPayablesIdHistory as k, getPayablesIdLineItems as A, getPaymentRecords as j,
|
|
4
|
-
import { activateCreditCardMutation as
|
|
5
|
-
import { authEpochPlaceholder as
|
|
6
|
-
import { applicationStatusInvalidationKey as
|
|
7
|
-
import { createClientSecretInstaller as
|
|
8
|
-
import { cancelAllClients as
|
|
9
|
-
import { cloneEmbeddedClient as
|
|
3
|
+
import { bulkUpdateDepartmentMembers as e, bulkUpdateLocationMembers as t, bulkUpdateRoleMembers as n, createDepartment as r, createLocation as i, createUser as a, deactivateDepartment as o, deactivateLocation as s, deleteCounterpartsId as c, deleteCounterpartsIdBankAccountsId as l, deleteEntitiesIdLogo as u, deleteMeasureUnitsId as d, deletePayablesId as f, deletePayablesIdFile as p, deleteProductsId as m, deleteReceivablesId as h, downloadBankAccountTransactions as g, getApplicationStatus as _, getApprovalPolicies as v, getApprovalRequests as y, getBankAccountAccess as b, getBankAccountStatement as x, getCounterparts as S, getDepartment as C, getDepositableBankAccounts as w, getExternalBankAccountAccess as T, getLocation as E, getPayables as D, getPayablesId as O, getPayablesIdHistory as k, getPayablesIdLineItems as A, getPaymentRecords as j, getReceipts as M, getReceivables as N, getUsers as P, listDepartments as F, listLocations as I, listRoles as L, manageBankAccountAccess as R, manageDebitCardAccess as z, patchCounterpartsId as B, patchCounterpartsIdAddressesId as V, patchCounterpartsIdBankAccountsId as H, patchEntitiesIdSettings as U, patchMeasureUnitsId as W, patchPayablesId as G, patchProductsId as K, patchReceivablesId as q, patchTransactionsId as J, postApprovalRequestsIdApprove as Y, postApprovalRequestsIdReject as X, postCounterparts as Z, postCounterpartsIdAddresses as Q, postCounterpartsIdBankAccounts as $, postCounterpartsIdBankAccountsIdMakeDefault as ee, postMeasureUnits as te, postPayables as ne, postPayablesIdApprovePaymentOperation as re, postPayablesIdAttachFile as ie, postPayablesIdCancel as ae, postPayablesIdDuplicatesIdConfirm as oe, postPayablesIdDuplicatesIdDismiss as se, postPayablesIdMarkAsPaid as ce, postPayablesIdReject as le, postPayablesIdReopen as ue, postPayablesIdSchedulePayment as de, postPayablesIdSubmitForApproval as fe, postPayablesIdValidate as pe, postPayablesUploadFromFile as me, postPaymentIntentsIdCancel as he, postProducts as ge, postReceivables as _e, postReceivablesIdAccept as ve, postReceivablesIdCancel as ye, postReceivablesIdClone as be, postReceivablesIdDecline as xe, postReceivablesIdIssue as Se, postReceivablesIdMarkAsPaid as Ce, postReceivablesIdMarkAsPartiallyPaid as we, postReceivablesIdMarkAsUncollectible as Te, postReceivablesIdSend as Ee, postTransactionsIdApprove as De, postTransactionsIdReject as Oe, postTransactionsIdReopen as ke, postTransactionsIdSubmit as Ae, putEntitiesIdLogo as je, putPayablesIdLineItems as Me, updateDepartment as Ne, updateLocation as Pe, updateUser as Fe } from "./lib/rest/sdk.gen.js";
|
|
4
|
+
import { activateCreditCardMutation as Ie, activateDebitCardMutation as Le, connectExternalBankAccountMutation as Re, createAchMoneyMovementMutation as ze, createApplicationMutation as Be, createBankAccountMutation as Ve, createBookTransferMutation as He, createCheckDepositMutation as Ue, createDebitCardMutation as We, createVelocityControlMutation as Ge, deleteApprovalPoliciesIdMutation as Ke, deleteBankAccountApplicationMutation as qe, deleteLedgerAccountsIdMutation as Je, deleteReceiptsIdMutation as Ye, disableUserMutation as Xe, getAnalyticsPayablesOptions as Ze, getAnalyticsPayablesQueryKey as Qe, getAnalyticsReceiptsOptions as $e, getAnalyticsReceiptsQueryKey as et, getAnalyticsReceivablesOptions as tt, getAnalyticsTransactionsOptions as nt, getAnalyticsTransactionsQueryKey as rt, getApprovalPoliciesOptions as it, getApprovalPoliciesQueryKey as at, getApprovalRequestsOptions as ot, getApprovalRequestsQueryKey as st, getBankAccountAccessQueryKey as ct, getBankAccountApplicationOptions as lt, getBankAccountOptions as ut, getBankAccountQueryKey as dt, getBankAccountStatementsOptions as ft, getBankAccountTransactionsOptions as pt, getBankAccountTransactionsQueryKey as mt, getBankAccountTransfersOptions as ht, getBankAccountTransfersQueryKey as gt, getBankAccountsQueryKey as _t, getCounterpartsIdAddressesOptions as vt, getCounterpartsIdAddressesQueryKey as yt, getCounterpartsIdBankAccountsOptions as bt, getCounterpartsIdBankAccountsQueryKey as xt, getCounterpartsIdOptions as St, getCounterpartsIdQueryKey as Ct, getCounterpartsOptions as wt, getCounterpartsQueryKey as Tt, getCreditCardByIdOptions as Et, getCreditCardByIdQueryKey as Dt, getCreditCardsOptions as Ot, getCreditCardsQueryKey as kt, getDebitCardByIdOptions as At, getDebitCardByIdQueryKey as jt, getDebitCardCredentialsOptions as Mt, getDebitCardsOptions as Nt, getDebitCardsQueryKey as Pt, getDepartmentOptions as Ft, getDepartmentQueryKey as It, getDepositableBankAccountsOptions as Lt, getDocumentsIdNextNumbersOptions as Rt, getDocumentsIdNextNumbersQueryKey as zt, getEntitiesIdSettingsOptions as Bt, getEntitiesIdSettingsQueryKey as Vt, getEntityUsersMyEntityOptions as Ht, getEntityUsersMyEntityQueryKey as Ut, getEntityUsersOptions as Wt, getExternalBankAccountAccessQueryKey as Gt, getExternalBankAccountsOptions as Kt, getExternalBankAccountsQueryKey as qt, getLedgerAccountsQueryKey as Jt, getLocationOptions as Yt, getLocationQueryKey as Xt, getMeasureUnitsOptions as Zt, getMeasureUnitsQueryKey as Qt, getOrganizationOptions as $t, getPayablesIdHistoryOptions as en, getPayablesIdHistoryQueryKey as tn, getPayablesIdLineItemsOptions as nn, getPayablesIdLineItemsQueryKey as rn, getPayablesIdOptions as an, getPayablesIdQueryKey as on, getPayablesIdSuggestionsOptions as sn, getPayablesOptions as cn, getPayablesQueryKey as ln, getPaymentRecordsOptions as un, getPaymentRecordsQueryKey as dn, getProductsIdOptions as fn, getProductsIdQueryKey as pn, getProductsOptions as mn, getProductsQueryKey as hn, getReceiptsIdQueryKey as gn, getReceiptsOptions as _n, getReceiptsQueryKey as vn, getReceivablesIdHistoryOptions as yn, getReceivablesIdHistoryQueryKey as bn, getReceivablesIdMailsOptions as xn, getReceivablesIdMailsQueryKey as Sn, getReceivablesIdOptions as Cn, getReceivablesIdPdfLinkOptions as wn, getReceivablesIdPdfLinkQueryKey as Tn, getReceivablesIdQueryKey as En, getReceivablesOptions as Dn, getReceivablesQueryKey as On, getTransactionsIdExpenseHistoryOptions as kn, getTransactionsIdExpenseHistoryQueryKey as An, getTransactionsIdOptions as jn, getTransactionsIdQueryKey as Mn, getTransactionsOptions as Nn, getTransactionsQueryKey as Pn, getTransactionsValidationsOptions as Fn, getTransactionsValidationsQueryKey as In, getUsersOptions as Ln, getUsersQueryKey as Rn, getVelocityControlsQueryKey as zn, grantBankAccountAccessMutation as Bn, grantExternalBankAccountAccessMutation as Vn, linkExternalBankAccountMutation as Hn, listDepartmentsOptions as Un, listDepartmentsQueryKey as Wn, listLocationsOptions as Gn, listLocationsQueryKey as Kn, listRolesQueryKey as qn, manageDebitCardAccessMutation as Jn, patchApprovalPoliciesIdMutation as Yn, patchLedgerAccountsIdMutation as Xn, patchReceiptsIdMutation as Zn, postApprovalPoliciesMutation as Qn, postLedgerAccountsMutation as $n, postReceiptsUploadFromFileMutation as er, putTransactionsValidationsMutation as tr, setDebitCardLockStatusMutation as nr, submitApplicationMutation as rr, unlinkExternalBankAccountMutation as ir, updateApplicationMutation as ar, updateBankAccountMutation as or, updateDebitCardMutation as sr, updateExternalBankAccountMutation as cr, validateExternalBankAccountMutation as lr, verifyDebitCardMutation as ur } from "./lib/rest/@tanstack/react-query.gen.js";
|
|
5
|
+
import { authEpochPlaceholder as dr, withAuthEpoch as fr } from "./lib/withAuthEpoch.js";
|
|
6
|
+
import { applicationStatusInvalidationKey as pr, applicationStatusQueryOptions as mr } from "./lib/applicationStatusQueryOptions.js";
|
|
7
|
+
import { createClientSecretInstaller as hr } from "./lib/scopedClientSecret.js";
|
|
8
|
+
import { cancelAllClients as gr, invalidateAllClients as _r, registerQueryClient as vr, removeInactiveFromAllClients as yr, setAllClientsQueriesData as br, unregisterQueryClient as xr } from "./lib/clientRegistry.js";
|
|
9
|
+
import { cloneEmbeddedClient as Sr, createEmbeddedClient as Cr } from "./lib/createEmbeddedClient.js";
|
|
10
10
|
import "./lib/widgetGatewayHosts.js";
|
|
11
|
-
import { attachTransportInterceptors as
|
|
12
|
-
import { EmbedApiProvider as
|
|
13
|
-
import { optionalOrganizationHeaders as
|
|
14
|
-
import { fetchWidgetInit as
|
|
15
|
-
import { hasAnyScope as
|
|
11
|
+
import { attachTransportInterceptors as wr } from "./lib/transportInterceptors.js";
|
|
12
|
+
import { EmbedApiProvider as Tr, useEmbedApi as Er } from "./lib/EmbedApiContext.js";
|
|
13
|
+
import { optionalOrganizationHeaders as Dr, organizationHeaders as Or } from "./lib/organizationHeaders.js";
|
|
14
|
+
import { fetchWidgetInit as kr } from "./lib/fetchWidgetInit.js";
|
|
15
|
+
import { hasAnyScope as Ar } from "./lib/hasAnyScope.js";
|
|
16
16
|
import "./lib/queryKeys.js";
|
|
17
|
-
import { useCurrentUserQuery as
|
|
18
|
-
import { useMailboxAddress as
|
|
17
|
+
import { useCurrentUserQuery as jr } from "./lib/useCurrentUserQuery.js";
|
|
18
|
+
import { useMailboxAddress as Mr } from "./lib/useMailboxAddress.js";
|
|
19
19
|
import "./lib/apiErrorStatus.js";
|
|
20
|
-
import { isApiConflictError as
|
|
21
|
-
import { isApiForbiddenError as
|
|
22
|
-
import { isApiNotFoundError as
|
|
23
|
-
import { isApiUnprocessableError as
|
|
20
|
+
import { isApiConflictError as Nr } from "./lib/isApiConflictError.js";
|
|
21
|
+
import { isApiForbiddenError as Pr } from "./lib/isApiForbiddenError.js";
|
|
22
|
+
import { isApiNotFoundError as Fr } from "./lib/isApiNotFoundError.js";
|
|
23
|
+
import { isApiUnprocessableError as Ir } from "./lib/isApiUnprocessableError.js";
|
|
24
24
|
import "./lib/isUserDataNotFoundError.js";
|
|
25
|
-
import { useGetUserDataQuery as
|
|
26
|
-
import { useUpsertUserDataMutation as
|
|
25
|
+
import { useGetUserDataQuery as Lr } from "./lib/useGetUserDataQuery.js";
|
|
26
|
+
import { useUpsertUserDataMutation as Rr } from "./lib/useUpsertUserDataMutation.js";
|
|
27
27
|
import "./lib/rest/zod.gen.js";
|
|
28
|
-
import { Scope as
|
|
29
|
-
import { getAllPagesNextPageParam as
|
|
30
|
-
import { useAllBankAccountsQuery as
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
|
|
28
|
+
import { Scope as zr, isScope as Br } from "./lib/scopes.js";
|
|
29
|
+
import { getAllPagesNextPageParam as Vr, getAllPagesNextPaginationTokenParam as Hr, isAllPagesResolving as Ur, useAutoFetchNextPage as Wr } from "./lib/allPages.js";
|
|
30
|
+
import { useAllBankAccountsQuery as Gr } from "./lib/bank-account/useAllBankAccountsQuery.js";
|
|
31
|
+
import { useAllDebitCardsQuery as Kr } from "./lib/debit-card/useAllDebitCardsQuery.js";
|
|
32
|
+
import { useAllExternalBankAccountsQuery as qr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
33
|
+
import { useAllMerchantCategoryGroupsQuery as Jr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
|
|
34
|
+
import { useAllLedgerAccountsQuery as Yr, useLedgerAccountsQuery as Xr } from "./lib/reference-data/useLedgerAccountsQuery.js";
|
|
35
|
+
import { usePaymentTermsQuery as Zr } from "./lib/reference-data/usePaymentTermsQuery.js";
|
|
36
|
+
import { useAllOrganizationRolesQuery as Qr } from "./lib/role/useAllOrganizationRolesQuery.js";
|
|
37
|
+
import { useRolePermissionsQueries as $r } from "./lib/role/useRolePermissionsQueries.js";
|
|
38
|
+
import { useAllOrganizationUsersQuery as ei } from "./lib/user/useAllOrganizationUsersQuery.js";
|
|
39
|
+
import { useAcceptWidgetDisclosures as ti } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
|
|
40
|
+
import { useDisclosuresQuery as ni } from "./lib/disclosures/useDisclosuresQuery.js";
|
|
41
|
+
import { OnboardingSuppressionReason as ri } from "./lib/onboardingSuppressionReason.js";
|
|
42
|
+
import { useOrganizationOnboardingSuppression as ii } from "./lib/useOrganizationOnboardingSuppression.js";
|
|
43
|
+
export { Tr as EmbedApiProvider, ri as OnboardingSuppressionReason, zr as Scope, Ie as activateCreditCardMutation, Le as activateDebitCardMutation, pr as applicationStatusInvalidationKey, mr as applicationStatusQueryOptions, wr as attachTransportInterceptors, dr as authEpochPlaceholder, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, gr as cancelAllClients, Sr as cloneEmbeddedClient, Re as connectExternalBankAccountMutation, ze as createAchMoneyMovementMutation, Be as createApplicationMutation, Ve as createBankAccountMutation, He as createBookTransferMutation, Ue as createCheckDepositMutation, hr as createClientSecretInstaller, We as createDebitCardMutation, r as createDepartment, Cr as createEmbeddedClient, i as createLocation, a as createUser, Ge as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, Ke as deleteApprovalPoliciesIdMutation, qe as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, Je as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, Ye as deleteReceiptsIdMutation, h as deleteReceivablesId, Xe as disableUserMutation, g as downloadBankAccountTransactions, kr as fetchWidgetInit, Vr as getAllPagesNextPageParam, Hr as getAllPagesNextPaginationTokenParam, Ze as getAnalyticsPayablesOptions, Qe as getAnalyticsPayablesQueryKey, $e as getAnalyticsReceiptsOptions, et as getAnalyticsReceiptsQueryKey, tt as getAnalyticsReceivablesOptions, nt as getAnalyticsTransactionsOptions, rt as getAnalyticsTransactionsQueryKey, _ as getApplicationStatus, v as getApprovalPolicies, it as getApprovalPoliciesOptions, at as getApprovalPoliciesQueryKey, y as getApprovalRequests, ot as getApprovalRequestsOptions, st as getApprovalRequestsQueryKey, b as getBankAccountAccess, ct as getBankAccountAccessQueryKey, lt as getBankAccountApplicationOptions, ut as getBankAccountOptions, dt as getBankAccountQueryKey, x as getBankAccountStatement, ft as getBankAccountStatementsOptions, pt as getBankAccountTransactionsOptions, mt as getBankAccountTransactionsQueryKey, ht as getBankAccountTransfersOptions, gt as getBankAccountTransfersQueryKey, _t as getBankAccountsQueryKey, S as getCounterparts, vt as getCounterpartsIdAddressesOptions, yt as getCounterpartsIdAddressesQueryKey, bt as getCounterpartsIdBankAccountsOptions, xt as getCounterpartsIdBankAccountsQueryKey, St as getCounterpartsIdOptions, Ct as getCounterpartsIdQueryKey, wt as getCounterpartsOptions, Tt as getCounterpartsQueryKey, Et as getCreditCardByIdOptions, Dt as getCreditCardByIdQueryKey, Ot as getCreditCardsOptions, kt as getCreditCardsQueryKey, At as getDebitCardByIdOptions, jt as getDebitCardByIdQueryKey, Mt as getDebitCardCredentialsOptions, Nt as getDebitCardsOptions, Pt as getDebitCardsQueryKey, C as getDepartment, Ft as getDepartmentOptions, It as getDepartmentQueryKey, w as getDepositableBankAccounts, Lt as getDepositableBankAccountsOptions, Rt as getDocumentsIdNextNumbersOptions, zt as getDocumentsIdNextNumbersQueryKey, Bt as getEntitiesIdSettingsOptions, Vt as getEntitiesIdSettingsQueryKey, Ht as getEntityUsersMyEntityOptions, Ut as getEntityUsersMyEntityQueryKey, Wt as getEntityUsersOptions, T as getExternalBankAccountAccess, Gt as getExternalBankAccountAccessQueryKey, Kt as getExternalBankAccountsOptions, qt as getExternalBankAccountsQueryKey, Jt as getLedgerAccountsQueryKey, E as getLocation, Yt as getLocationOptions, Xt as getLocationQueryKey, Zt as getMeasureUnitsOptions, Qt as getMeasureUnitsQueryKey, $t as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, en as getPayablesIdHistoryOptions, tn as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, nn as getPayablesIdLineItemsOptions, rn as getPayablesIdLineItemsQueryKey, an as getPayablesIdOptions, on as getPayablesIdQueryKey, sn as getPayablesIdSuggestionsOptions, cn as getPayablesOptions, ln as getPayablesQueryKey, j as getPaymentRecords, un as getPaymentRecordsOptions, dn as getPaymentRecordsQueryKey, fn as getProductsIdOptions, pn as getProductsIdQueryKey, mn as getProductsOptions, hn as getProductsQueryKey, M as getReceipts, gn as getReceiptsIdQueryKey, _n as getReceiptsOptions, vn as getReceiptsQueryKey, N as getReceivables, yn as getReceivablesIdHistoryOptions, bn as getReceivablesIdHistoryQueryKey, xn as getReceivablesIdMailsOptions, Sn as getReceivablesIdMailsQueryKey, Cn as getReceivablesIdOptions, wn as getReceivablesIdPdfLinkOptions, Tn as getReceivablesIdPdfLinkQueryKey, En as getReceivablesIdQueryKey, Dn as getReceivablesOptions, On as getReceivablesQueryKey, kn as getTransactionsIdExpenseHistoryOptions, An as getTransactionsIdExpenseHistoryQueryKey, jn as getTransactionsIdOptions, Mn as getTransactionsIdQueryKey, Nn as getTransactionsOptions, Pn as getTransactionsQueryKey, Fn as getTransactionsValidationsOptions, In as getTransactionsValidationsQueryKey, P as getUsers, Ln as getUsersOptions, Rn as getUsersQueryKey, zn as getVelocityControlsQueryKey, Bn as grantBankAccountAccessMutation, Vn as grantExternalBankAccountAccessMutation, Ar as hasAnyScope, _r as invalidateAllClients, Ur as isAllPagesResolving, Nr as isApiConflictError, Pr as isApiForbiddenError, Fr as isApiNotFoundError, Ir as isApiUnprocessableError, Br as isScope, Hn as linkExternalBankAccountMutation, F as listDepartments, Un as listDepartmentsOptions, Wn as listDepartmentsQueryKey, I as listLocations, Gn as listLocationsOptions, Kn as listLocationsQueryKey, L as listRoles, qn as listRolesQueryKey, R as manageBankAccountAccess, z as manageDebitCardAccess, Jn as manageDebitCardAccessMutation, Dr as optionalOrganizationHeaders, Or as organizationHeaders, Yn as patchApprovalPoliciesIdMutation, B as patchCounterpartsId, V as patchCounterpartsIdAddressesId, H as patchCounterpartsIdBankAccountsId, U as patchEntitiesIdSettings, Xn as patchLedgerAccountsIdMutation, W as patchMeasureUnitsId, G as patchPayablesId, K as patchProductsId, Zn as patchReceiptsIdMutation, q as patchReceivablesId, J as patchTransactionsId, Qn as postApprovalPoliciesMutation, Y as postApprovalRequestsIdApprove, X as postApprovalRequestsIdReject, Z as postCounterparts, Q as postCounterpartsIdAddresses, $ as postCounterpartsIdBankAccounts, ee as postCounterpartsIdBankAccountsIdMakeDefault, $n as postLedgerAccountsMutation, te as postMeasureUnits, ne as postPayables, re as postPayablesIdApprovePaymentOperation, ie as postPayablesIdAttachFile, ae as postPayablesIdCancel, oe as postPayablesIdDuplicatesIdConfirm, se as postPayablesIdDuplicatesIdDismiss, ce as postPayablesIdMarkAsPaid, le as postPayablesIdReject, ue as postPayablesIdReopen, de as postPayablesIdSchedulePayment, fe as postPayablesIdSubmitForApproval, pe as postPayablesIdValidate, me as postPayablesUploadFromFile, he as postPaymentIntentsIdCancel, ge as postProducts, er as postReceiptsUploadFromFileMutation, _e as postReceivables, ve as postReceivablesIdAccept, ye as postReceivablesIdCancel, be as postReceivablesIdClone, xe as postReceivablesIdDecline, Se as postReceivablesIdIssue, Ce as postReceivablesIdMarkAsPaid, we as postReceivablesIdMarkAsPartiallyPaid, Te as postReceivablesIdMarkAsUncollectible, Ee as postReceivablesIdSend, De as postTransactionsIdApprove, Oe as postTransactionsIdReject, ke as postTransactionsIdReopen, Ae as postTransactionsIdSubmit, je as putEntitiesIdLogo, Me as putPayablesIdLineItems, tr as putTransactionsValidationsMutation, vr as registerQueryClient, yr as removeInactiveFromAllClients, br as setAllClientsQueriesData, nr as setDebitCardLockStatusMutation, rr as submitApplicationMutation, ir as unlinkExternalBankAccountMutation, xr as unregisterQueryClient, ar as updateApplicationMutation, or as updateBankAccountMutation, sr as updateDebitCardMutation, Ne as updateDepartment, cr as updateExternalBankAccountMutation, Pe as updateLocation, Fe as updateUser, ti as useAcceptWidgetDisclosures, Gr as useAllBankAccountsQuery, Kr as useAllDebitCardsQuery, qr as useAllExternalBankAccountsQuery, Yr as useAllLedgerAccountsQuery, Jr as useAllMerchantCategoryGroupsQuery, Qr as useAllOrganizationRolesQuery, ei as useAllOrganizationUsersQuery, Wr as useAutoFetchNextPage, jr as useCurrentUserQuery, ni as useDisclosuresQuery, Er as useEmbedApi, Lr as useGetUserDataQuery, Xr as useLedgerAccountsQuery, Mr as useMailboxAddress, ii as useOrganizationOnboardingSuppression, Zr as usePaymentTermsQuery, $r as useRolePermissionsQueries, Rr as useUpsertUserDataMutation, lr as validateExternalBankAccountMutation, ur as verifyDebitCardMutation, fr as withAuthEpoch };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { getDebitCards as e } from "../rest/sdk.gen.js";
|
|
6
|
+
import { getDebitCardsOptions as t } from "../rest/@tanstack/react-query.gen.js";
|
|
7
|
+
import { authEpochPlaceholder as n } from "../withAuthEpoch.js";
|
|
8
|
+
import { useEmbedApi as r } from "../EmbedApiContext.js";
|
|
9
|
+
import { organizationHeaders as i } from "../organizationHeaders.js";
|
|
10
|
+
import { getAllPagesNextPageParam as a, useAutoFetchNextPage as o } from "../allPages.js";
|
|
11
|
+
import { useMemo as s } from "react";
|
|
12
|
+
import { useInfiniteQuery as c } from "@tanstack/react-query";
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js
|
|
14
|
+
var l = 100;
|
|
15
|
+
function u({ enabled: u } = {}) {
|
|
16
|
+
let { client: d, organizationId: f, widgetToken: p, authEpoch: m, organizationPending: h } = r(), g = i(f), _ = !!(f && p) && (u === !0 || u === void 0), v = [...t({
|
|
17
|
+
client: d,
|
|
18
|
+
headers: g,
|
|
19
|
+
query: { limit: l }
|
|
20
|
+
}).queryKey, "all"], y = c({
|
|
21
|
+
queryKey: [...v, { authEpoch: m }],
|
|
22
|
+
placeholderData: n(v, h),
|
|
23
|
+
enabled: _,
|
|
24
|
+
initialPageParam: void 0,
|
|
25
|
+
queryFn: async ({ signal: t, pageParam: n }) => {
|
|
26
|
+
let { data: r } = await e({
|
|
27
|
+
client: d,
|
|
28
|
+
headers: g,
|
|
29
|
+
query: {
|
|
30
|
+
limit: l,
|
|
31
|
+
...n ? { paginationToken: n } : {}
|
|
32
|
+
},
|
|
33
|
+
signal: t,
|
|
34
|
+
throwOnError: !0
|
|
35
|
+
});
|
|
36
|
+
return r;
|
|
37
|
+
},
|
|
38
|
+
getNextPageParam: a
|
|
39
|
+
});
|
|
40
|
+
o(y, _);
|
|
41
|
+
let b = s(() => {
|
|
42
|
+
if (y.data) return {
|
|
43
|
+
data: y.data.pages.flatMap((e) => e.data ?? []),
|
|
44
|
+
nextPaginationToken: null,
|
|
45
|
+
prevPaginationToken: null
|
|
46
|
+
};
|
|
47
|
+
}, [y.data]);
|
|
48
|
+
return {
|
|
49
|
+
...y,
|
|
50
|
+
data: b
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
//#endregion
|
|
54
|
+
export { u as useAllDebitCardsQuery };
|