@tesouro/embedded-components-react 0.5.185 → 0.5.187

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.
@@ -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, onFormChange: N, onBackClick: F, onCancel: I, onSubmit: L, labels: R }) {
122
- let z = {
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
- ...R
125
- }, B = C(null), V = S(() => c.map((e) => ({
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
- B.current?.focus();
134
+ V.current?.focus();
135
135
  }, []), /* @__PURE__ */ E("section", {
136
- "aria-label": z.inviteTitle,
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: B,
140
+ ref: V,
141
141
  variant: "ghost",
142
142
  size: "sm",
143
143
  disabled: M,
144
- onClick: F,
144
+ onClick: I,
145
145
  children: [/* @__PURE__ */ T(D, {
146
146
  "aria-hidden": !0,
147
147
  className: "ttw:size-4"
148
- }), z.inviteBackToTeamButton]
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: z.inviteTitle
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(), L();
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: z.inviteDetailsSectionHeading
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: z.inviteNameLabel
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) => N({
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: z.inviteWorkEmailLabel
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) => N({
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: z.inviteDepartmentLabel,
228
+ label: B.inviteDepartmentLabel,
229
229
  value: t.department,
230
230
  options: r,
231
- placeholder: z.inviteDepartmentPlaceholder,
232
- emptyMessage: z.inviteDepartmentEmpty,
233
- loadingMessage: z.inviteOptionsLoading,
234
- noneLabel: z.inviteOptionNone,
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: z.inviteDepartmentLoadError,
238
- errorHelper: z.inviteDepartmentLoadErrorHelper,
239
- emptyHelper: z.inviteDepartmentEmptyHelper,
240
- onValueChange: (e) => N({
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: z.inviteLocationLabel,
246
+ label: B.inviteLocationLabel,
247
247
  value: t.location,
248
248
  options: i,
249
- placeholder: z.inviteLocationPlaceholder,
250
- emptyMessage: z.inviteLocationEmpty,
251
- loadingMessage: z.inviteOptionsLoading,
252
- noneLabel: z.inviteOptionNone,
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: z.inviteLocationLoadError,
256
- errorHelper: z.inviteLocationLoadErrorHelper,
257
- emptyHelper: z.inviteLocationEmptyHelper,
258
- onValueChange: (e) => N({
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: z.inviteReportingManagerLabel,
266
+ label: B.inviteReportingManagerLabel,
267
267
  value: t.reportingManager,
268
268
  options: a,
269
- placeholder: z.inviteReportingManagerPlaceholder,
270
- emptyMessage: z.inviteReportingManagerEmpty,
271
- loadingMessage: z.inviteOptionsLoading,
272
- noneLabel: z.inviteOptionNone,
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: z.inviteReportingManagerLoadError,
276
- errorHelper: z.inviteReportingManagerLoadErrorHelper,
277
- emptyHelper: z.inviteReportingManagerEmptyHelper,
278
- readyHelper: z.inviteReportingManagerHelper,
275
+ errorMessage: B.inviteReportingManagerLoadError,
276
+ errorHelper: B.inviteReportingManagerLoadErrorHelper,
277
+ emptyHelper: B.inviteReportingManagerEmptyHelper,
278
+ readyHelper: B.inviteReportingManagerHelper,
279
279
  searchable: !0,
280
- searchPlaceholder: z.inviteReportingManagerSearchPlaceholder,
281
- noResultsLabel: z.inviteReportingManagerNoResults,
282
- onValueChange: (e) => N({
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: z.inviteRoleSectionHeading
295
+ children: B.inviteRoleSectionHeading
296
296
  }),
297
297
  /* @__PURE__ */ T("p", {
298
298
  className: "ttw:text-sm ttw:text-muted-foreground",
299
- children: z.inviteRoleSectionDescription
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) => N({
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: z.inviteAccountAccessSectionHeading
327
+ children: B.inviteAccountAccessSectionHeading
328
328
  }), /* @__PURE__ */ T("p", {
329
329
  className: "ttw:text-sm ttw:text-muted-foreground",
330
- children: z.manageAccessEmployeeNote
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: z.inviteAccountAccessSectionHeading
339
+ children: B.inviteAccountAccessSectionHeading
340
340
  }),
341
341
  /* @__PURE__ */ T("p", {
342
342
  className: "ttw:text-sm ttw:text-muted-foreground",
343
- children: z.inviteAccountAccessSectionDescription
343
+ children: B.inviteAccountAccessSectionDescription
344
344
  }),
345
- g ? /* @__PURE__ */ T(_, { children: z.inviteAccountAccessLoadError }) : h ? /* @__PURE__ */ T("p", {
345
+ g ? /* @__PURE__ */ T(_, { children: B.inviteAccountAccessLoadError }) : h ? /* @__PURE__ */ T("p", {
346
346
  className: "ttw:text-sm ttw:text-muted-foreground",
347
- children: z.inviteOptionsLoading
347
+ children: B.inviteOptionsLoading
348
348
  }) : /* @__PURE__ */ T(v, {
349
- rows: V,
349
+ rows: H,
350
350
  onToggle: (e, n) => {
351
- N({
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" ? z.inviteAccountAccessAdminNote : void 0,
358
- emptyMessage: z.inviteAccountAccessEmpty,
357
+ note: w === "admin" ? B.inviteAccountAccessAdminNote : void 0,
358
+ emptyMessage: B.inviteAccountAccessEmpty,
359
359
  labels: {
360
- accountNameColumn: z.accountAccessNameColumn,
361
- accessColumn: z.accountAccessAccessColumn,
362
- toggleAriaLabel: z.accountAccessToggleLabel
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: I,
374
- children: z.inviteCancelButton
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: [z.inviteSubmitButton, /* @__PURE__ */ T(A, {
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, getReceivables as M, getUsers as N, listDepartments as P, listLocations as F, listRoles as I, manageBankAccountAccess as L, patchCounterpartsId as R, patchCounterpartsIdAddressesId as z, patchCounterpartsIdBankAccountsId as B, patchEntitiesIdSettings as V, patchMeasureUnitsId as H, patchPayablesId as U, patchProductsId as W, patchReceivablesId as G, postApprovalRequestsIdApprove as K, postApprovalRequestsIdReject as q, postCounterparts as J, postCounterpartsIdAddresses as Y, postCounterpartsIdBankAccounts as X, postCounterpartsIdBankAccountsIdMakeDefault as Z, postMeasureUnits as Q, postPayables as $, postPayablesIdApprovePaymentOperation as ee, postPayablesIdAttachFile as te, postPayablesIdCancel as ne, postPayablesIdDuplicatesIdConfirm as re, postPayablesIdDuplicatesIdDismiss as ie, postPayablesIdMarkAsPaid as ae, postPayablesIdReject as oe, postPayablesIdReopen as se, postPayablesIdSchedulePayment as ce, postPayablesIdSubmitForApproval as le, postPayablesIdValidate as ue, postPayablesUploadFromFile as de, postPaymentIntentsIdCancel as fe, postProducts as pe, postReceivables as me, postReceivablesIdAccept as he, postReceivablesIdCancel as ge, postReceivablesIdClone as _e, postReceivablesIdDecline as ve, postReceivablesIdIssue as ye, postReceivablesIdMarkAsPaid as be, postReceivablesIdMarkAsPartiallyPaid as xe, postReceivablesIdMarkAsUncollectible as Se, postReceivablesIdSend as Ce, putEntitiesIdLogo as we, putPayablesIdLineItems as Te, updateDepartment as Ee, updateLocation as De, updateUser as Oe } from "./lib/rest/sdk.gen.js";
4
- import { activateCreditCardMutation as ke, activateDebitCardMutation as Ae, connectExternalBankAccountMutation as je, createAchMoneyMovementMutation as Me, createApplicationMutation as Ne, createBankAccountMutation as Pe, createBookTransferMutation as Fe, createCheckDepositMutation as Ie, createDebitCardMutation as Le, createVelocityControlMutation as Re, deleteApprovalPoliciesIdMutation as ze, deleteBankAccountApplicationMutation as Be, deleteLedgerAccountsIdMutation as Ve, deleteReceiptsIdMutation as He, disableUserMutation as Ue, getAnalyticsPayablesOptions as We, getAnalyticsPayablesQueryKey as Ge, getAnalyticsReceivablesOptions as Ke, getApprovalPoliciesOptions as qe, getApprovalPoliciesQueryKey as Je, getApprovalRequestsOptions as Ye, getApprovalRequestsQueryKey as Xe, getBankAccountAccessQueryKey as Ze, getBankAccountApplicationOptions as Qe, getBankAccountOptions as $e, getBankAccountQueryKey as et, getBankAccountStatementsOptions as tt, getBankAccountTransactionsOptions as nt, getBankAccountTransactionsQueryKey as rt, getBankAccountTransfersOptions as it, getBankAccountTransfersQueryKey as at, getBankAccountsQueryKey as ot, getCounterpartsIdAddressesOptions as st, getCounterpartsIdAddressesQueryKey as ct, getCounterpartsIdBankAccountsOptions as lt, getCounterpartsIdBankAccountsQueryKey as ut, getCounterpartsIdOptions as dt, getCounterpartsIdQueryKey as ft, getCounterpartsOptions as pt, getCounterpartsQueryKey as mt, getCreditCardByIdOptions as ht, getCreditCardByIdQueryKey as gt, getCreditCardsOptions as _t, getCreditCardsQueryKey as vt, getDebitCardByIdOptions as yt, getDebitCardByIdQueryKey as bt, getDebitCardCredentialsOptions as xt, getDebitCardsOptions as St, getDebitCardsQueryKey as Ct, getDepartmentOptions as wt, getDepartmentQueryKey as Tt, getDepositableBankAccountsOptions as Et, getDocumentsIdNextNumbersOptions as Dt, getDocumentsIdNextNumbersQueryKey as Ot, getEntitiesIdSettingsOptions as kt, getEntitiesIdSettingsQueryKey as At, getEntityUsersMyEntityOptions as jt, getEntityUsersMyEntityQueryKey as Mt, getExternalBankAccountAccessQueryKey as Nt, getExternalBankAccountsOptions as Pt, getExternalBankAccountsQueryKey as Ft, getLedgerAccountsQueryKey as It, getLocationOptions as Lt, getLocationQueryKey as Rt, getMeasureUnitsOptions as zt, getMeasureUnitsQueryKey as Bt, getOrganizationOptions as Vt, getPayablesIdHistoryOptions as Ht, getPayablesIdHistoryQueryKey as Ut, getPayablesIdLineItemsOptions as Wt, getPayablesIdLineItemsQueryKey as Gt, getPayablesIdOptions as Kt, getPayablesIdQueryKey as qt, getPayablesIdSuggestionsOptions as Jt, getPayablesOptions as Yt, getPayablesQueryKey as Xt, getPaymentRecordsOptions as Zt, getPaymentRecordsQueryKey as Qt, getProductsIdOptions as $t, getProductsIdQueryKey as en, getProductsOptions as tn, getProductsQueryKey as nn, getReceiptsIdQueryKey as rn, getReceiptsOptions as an, getReceiptsQueryKey as on, getReceivablesIdHistoryOptions as sn, getReceivablesIdHistoryQueryKey as cn, getReceivablesIdMailsOptions as ln, getReceivablesIdMailsQueryKey as un, getReceivablesIdOptions as dn, getReceivablesIdPdfLinkOptions as fn, getReceivablesIdPdfLinkQueryKey as pn, getReceivablesIdQueryKey as mn, getReceivablesOptions as hn, getReceivablesQueryKey as gn, getTransactionsIdQueryKey as _n, getTransactionsOptions as vn, getTransactionsQueryKey as yn, getTransactionsValidationsOptions as bn, getTransactionsValidationsQueryKey as xn, getUsersOptions as Sn, getUsersQueryKey as Cn, getVelocityControlsQueryKey as wn, grantBankAccountAccessMutation as Tn, grantExternalBankAccountAccessMutation as En, linkExternalBankAccountMutation as Dn, listDepartmentsOptions as On, listDepartmentsQueryKey as kn, listLocationsOptions as An, listLocationsQueryKey as jn, listRolesQueryKey as Mn, manageDebitCardAccessMutation as Nn, patchApprovalPoliciesIdMutation as Pn, patchLedgerAccountsIdMutation as Fn, patchReceiptsIdMutation as In, postApprovalPoliciesMutation as Ln, postLedgerAccountsMutation as Rn, putTransactionsValidationsMutation as zn, setDebitCardLockStatusMutation as Bn, submitApplicationMutation as Vn, unlinkExternalBankAccountMutation as Hn, updateApplicationMutation as Un, updateBankAccountMutation as Wn, updateDebitCardMutation as Gn, updateExternalBankAccountMutation as Kn, validateExternalBankAccountMutation as qn, verifyDebitCardMutation as Jn } from "./lib/rest/@tanstack/react-query.gen.js";
5
- import { authEpochPlaceholder as Yn, withAuthEpoch as Xn } from "./lib/withAuthEpoch.js";
6
- import { applicationStatusInvalidationKey as Zn, applicationStatusQueryOptions as Qn } from "./lib/applicationStatusQueryOptions.js";
7
- import { createClientSecretInstaller as $n } from "./lib/scopedClientSecret.js";
8
- import { cancelAllClients as er, invalidateAllClients as tr, registerQueryClient as nr, removeInactiveFromAllClients as rr, setAllClientsQueriesData as ir, unregisterQueryClient as ar } from "./lib/clientRegistry.js";
9
- import { cloneEmbeddedClient as or, createEmbeddedClient as sr } from "./lib/createEmbeddedClient.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, getReceivables as M, getUsers as N, listDepartments as P, listLocations as F, listRoles as I, manageBankAccountAccess as L, manageDebitCardAccess as R, patchCounterpartsId as z, patchCounterpartsIdAddressesId as B, patchCounterpartsIdBankAccountsId as V, patchEntitiesIdSettings as H, patchMeasureUnitsId as U, patchPayablesId as W, patchProductsId as G, patchReceivablesId as K, postApprovalRequestsIdApprove as q, postApprovalRequestsIdReject as J, postCounterparts as Y, postCounterpartsIdAddresses as X, postCounterpartsIdBankAccounts as Z, postCounterpartsIdBankAccountsIdMakeDefault as Q, postMeasureUnits as $, postPayables as ee, postPayablesIdApprovePaymentOperation as te, postPayablesIdAttachFile as ne, postPayablesIdCancel as re, postPayablesIdDuplicatesIdConfirm as ie, postPayablesIdDuplicatesIdDismiss as ae, postPayablesIdMarkAsPaid as oe, postPayablesIdReject as se, postPayablesIdReopen as ce, postPayablesIdSchedulePayment as le, postPayablesIdSubmitForApproval as ue, postPayablesIdValidate as de, postPayablesUploadFromFile as fe, postPaymentIntentsIdCancel as pe, postProducts as me, postReceivables as he, postReceivablesIdAccept as ge, postReceivablesIdCancel as _e, postReceivablesIdClone as ve, postReceivablesIdDecline as ye, postReceivablesIdIssue as be, postReceivablesIdMarkAsPaid as xe, postReceivablesIdMarkAsPartiallyPaid as Se, postReceivablesIdMarkAsUncollectible as Ce, postReceivablesIdSend as we, putEntitiesIdLogo as Te, putPayablesIdLineItems as Ee, updateDepartment as De, updateLocation as Oe, updateUser as ke } from "./lib/rest/sdk.gen.js";
4
+ import { activateCreditCardMutation as Ae, activateDebitCardMutation as je, connectExternalBankAccountMutation as Me, createAchMoneyMovementMutation as Ne, createApplicationMutation as Pe, createBankAccountMutation as Fe, createBookTransferMutation as Ie, createCheckDepositMutation as Le, createDebitCardMutation as Re, createVelocityControlMutation as ze, deleteApprovalPoliciesIdMutation as Be, deleteBankAccountApplicationMutation as Ve, deleteLedgerAccountsIdMutation as He, deleteReceiptsIdMutation as Ue, disableUserMutation as We, getAnalyticsPayablesOptions as Ge, getAnalyticsPayablesQueryKey as Ke, getAnalyticsReceivablesOptions as qe, getApprovalPoliciesOptions as Je, getApprovalPoliciesQueryKey as Ye, getApprovalRequestsOptions as Xe, getApprovalRequestsQueryKey as Ze, getBankAccountAccessQueryKey as Qe, getBankAccountApplicationOptions as $e, getBankAccountOptions as et, getBankAccountQueryKey as tt, getBankAccountStatementsOptions as nt, getBankAccountTransactionsOptions as rt, getBankAccountTransactionsQueryKey as it, getBankAccountTransfersOptions as at, getBankAccountTransfersQueryKey as ot, getBankAccountsQueryKey as st, getCounterpartsIdAddressesOptions as ct, getCounterpartsIdAddressesQueryKey as lt, getCounterpartsIdBankAccountsOptions as ut, getCounterpartsIdBankAccountsQueryKey as dt, getCounterpartsIdOptions as ft, getCounterpartsIdQueryKey as pt, getCounterpartsOptions as mt, getCounterpartsQueryKey as ht, getCreditCardByIdOptions as gt, getCreditCardByIdQueryKey as _t, getCreditCardsOptions as vt, getCreditCardsQueryKey as yt, getDebitCardByIdOptions as bt, getDebitCardByIdQueryKey as xt, getDebitCardCredentialsOptions as St, getDebitCardsOptions as Ct, getDebitCardsQueryKey as wt, getDepartmentOptions as Tt, getDepartmentQueryKey as Et, getDepositableBankAccountsOptions as Dt, getDocumentsIdNextNumbersOptions as Ot, getDocumentsIdNextNumbersQueryKey as kt, getEntitiesIdSettingsOptions as At, getEntitiesIdSettingsQueryKey as jt, getEntityUsersMyEntityOptions as Mt, getEntityUsersMyEntityQueryKey as Nt, getExternalBankAccountAccessQueryKey as Pt, getExternalBankAccountsOptions as Ft, getExternalBankAccountsQueryKey as It, getLedgerAccountsQueryKey as Lt, getLocationOptions as Rt, getLocationQueryKey as zt, getMeasureUnitsOptions as Bt, getMeasureUnitsQueryKey as Vt, getOrganizationOptions as Ht, getPayablesIdHistoryOptions as Ut, getPayablesIdHistoryQueryKey as Wt, getPayablesIdLineItemsOptions as Gt, getPayablesIdLineItemsQueryKey as Kt, getPayablesIdOptions as qt, getPayablesIdQueryKey as Jt, getPayablesIdSuggestionsOptions as Yt, getPayablesOptions as Xt, getPayablesQueryKey as Zt, getPaymentRecordsOptions as Qt, getPaymentRecordsQueryKey as $t, getProductsIdOptions as en, getProductsIdQueryKey as tn, getProductsOptions as nn, getProductsQueryKey as rn, getReceiptsIdQueryKey as an, getReceiptsOptions as on, getReceiptsQueryKey as sn, getReceivablesIdHistoryOptions as cn, getReceivablesIdHistoryQueryKey as ln, getReceivablesIdMailsOptions as un, getReceivablesIdMailsQueryKey as dn, getReceivablesIdOptions as fn, getReceivablesIdPdfLinkOptions as pn, getReceivablesIdPdfLinkQueryKey as mn, getReceivablesIdQueryKey as hn, getReceivablesOptions as gn, getReceivablesQueryKey as _n, getTransactionsIdQueryKey as vn, getTransactionsOptions as yn, getTransactionsQueryKey as bn, getTransactionsValidationsOptions as xn, getTransactionsValidationsQueryKey as Sn, getUsersOptions as Cn, getUsersQueryKey as wn, getVelocityControlsQueryKey as Tn, grantBankAccountAccessMutation as En, grantExternalBankAccountAccessMutation as Dn, linkExternalBankAccountMutation as On, listDepartmentsOptions as kn, listDepartmentsQueryKey as An, listLocationsOptions as jn, listLocationsQueryKey as Mn, listRolesQueryKey as Nn, manageDebitCardAccessMutation as Pn, patchApprovalPoliciesIdMutation as Fn, patchLedgerAccountsIdMutation as In, patchReceiptsIdMutation as Ln, postApprovalPoliciesMutation as Rn, postLedgerAccountsMutation as zn, putTransactionsValidationsMutation as Bn, setDebitCardLockStatusMutation as Vn, submitApplicationMutation as Hn, unlinkExternalBankAccountMutation as Un, updateApplicationMutation as Wn, updateBankAccountMutation as Gn, updateDebitCardMutation as Kn, updateExternalBankAccountMutation as qn, validateExternalBankAccountMutation as Jn, verifyDebitCardMutation as Yn } from "./lib/rest/@tanstack/react-query.gen.js";
5
+ import { authEpochPlaceholder as Xn, withAuthEpoch as Zn } from "./lib/withAuthEpoch.js";
6
+ import { applicationStatusInvalidationKey as Qn, applicationStatusQueryOptions as $n } from "./lib/applicationStatusQueryOptions.js";
7
+ import { createClientSecretInstaller as er } from "./lib/scopedClientSecret.js";
8
+ import { cancelAllClients as tr, invalidateAllClients as nr, registerQueryClient as rr, removeInactiveFromAllClients as ir, setAllClientsQueriesData as ar, unregisterQueryClient as or } 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 cr } from "./lib/transportInterceptors.js";
12
- import { EmbedApiProvider as lr, useEmbedApi as ur } from "./lib/EmbedApiContext.js";
13
- import { optionalOrganizationHeaders as dr, organizationHeaders as fr } from "./lib/organizationHeaders.js";
14
- import { fetchWidgetInit as pr } from "./lib/fetchWidgetInit.js";
15
- import { hasAnyScope as mr } from "./lib/hasAnyScope.js";
11
+ import { attachTransportInterceptors as lr } from "./lib/transportInterceptors.js";
12
+ import { EmbedApiProvider as ur, useEmbedApi as dr } from "./lib/EmbedApiContext.js";
13
+ import { optionalOrganizationHeaders as fr, organizationHeaders as pr } from "./lib/organizationHeaders.js";
14
+ import { fetchWidgetInit as mr } from "./lib/fetchWidgetInit.js";
15
+ import { hasAnyScope as hr } from "./lib/hasAnyScope.js";
16
16
  import "./lib/queryKeys.js";
17
- import { useCurrentUserQuery as hr } from "./lib/useCurrentUserQuery.js";
18
- import { useMailboxAddress as gr } from "./lib/useMailboxAddress.js";
17
+ import { useCurrentUserQuery as gr } from "./lib/useCurrentUserQuery.js";
18
+ import { useMailboxAddress as _r } from "./lib/useMailboxAddress.js";
19
19
  import "./lib/apiErrorStatus.js";
20
- import { isApiConflictError as _r } from "./lib/isApiConflictError.js";
21
- import { isApiForbiddenError as vr } from "./lib/isApiForbiddenError.js";
22
- import { isApiNotFoundError as yr } from "./lib/isApiNotFoundError.js";
23
- import { isApiUnprocessableError as br } from "./lib/isApiUnprocessableError.js";
20
+ import { isApiConflictError as vr } from "./lib/isApiConflictError.js";
21
+ import { isApiForbiddenError as yr } from "./lib/isApiForbiddenError.js";
22
+ import { isApiNotFoundError as br } from "./lib/isApiNotFoundError.js";
23
+ import { isApiUnprocessableError as xr } from "./lib/isApiUnprocessableError.js";
24
24
  import "./lib/isUserDataNotFoundError.js";
25
- import { useGetUserDataQuery as xr } from "./lib/useGetUserDataQuery.js";
26
- import { useUpsertUserDataMutation as Sr } from "./lib/useUpsertUserDataMutation.js";
25
+ import { useGetUserDataQuery as Sr } from "./lib/useGetUserDataQuery.js";
26
+ import { useUpsertUserDataMutation as Cr } from "./lib/useUpsertUserDataMutation.js";
27
27
  import "./lib/rest/zod.gen.js";
28
- import { Scope as Cr, isScope as wr } from "./lib/scopes.js";
29
- import { getAllPagesNextPageParam as Tr, getAllPagesNextPaginationTokenParam as Er, isAllPagesResolving as Dr, useAutoFetchNextPage as Or } from "./lib/allPages.js";
30
- import { useAllBankAccountsQuery as kr } from "./lib/bank-account/useAllBankAccountsQuery.js";
31
- import { useAllExternalBankAccountsQuery as Ar } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
32
- import { useAllMerchantCategoryGroupsQuery as jr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
33
- import { useAllLedgerAccountsQuery as Mr, useLedgerAccountsQuery as Nr } from "./lib/reference-data/useLedgerAccountsQuery.js";
34
- import { usePaymentTermsQuery as Pr } from "./lib/reference-data/usePaymentTermsQuery.js";
35
- import { useAllOrganizationRolesQuery as Fr } from "./lib/role/useAllOrganizationRolesQuery.js";
36
- import { useRolePermissionsQueries as Ir } from "./lib/role/useRolePermissionsQueries.js";
37
- import { useAllOrganizationUsersQuery as Lr } from "./lib/user/useAllOrganizationUsersQuery.js";
38
- import { useAcceptWidgetDisclosures as Rr } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
39
- import { useDisclosuresQuery as zr } from "./lib/disclosures/useDisclosuresQuery.js";
40
- import { OnboardingSuppressionReason as Br } from "./lib/onboardingSuppressionReason.js";
41
- import { useOrganizationOnboardingSuppression as Vr } from "./lib/useOrganizationOnboardingSuppression.js";
42
- export { lr as EmbedApiProvider, Br as OnboardingSuppressionReason, Cr as Scope, ke as activateCreditCardMutation, Ae as activateDebitCardMutation, Zn as applicationStatusInvalidationKey, Qn as applicationStatusQueryOptions, cr as attachTransportInterceptors, Yn as authEpochPlaceholder, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, er as cancelAllClients, or as cloneEmbeddedClient, je as connectExternalBankAccountMutation, Me as createAchMoneyMovementMutation, Ne as createApplicationMutation, Pe as createBankAccountMutation, Fe as createBookTransferMutation, Ie as createCheckDepositMutation, $n as createClientSecretInstaller, Le as createDebitCardMutation, r as createDepartment, sr as createEmbeddedClient, i as createLocation, a as createUser, Re as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, ze as deleteApprovalPoliciesIdMutation, Be as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, Ve as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, He as deleteReceiptsIdMutation, h as deleteReceivablesId, Ue as disableUserMutation, g as downloadBankAccountTransactions, pr as fetchWidgetInit, Tr as getAllPagesNextPageParam, Er as getAllPagesNextPaginationTokenParam, We as getAnalyticsPayablesOptions, Ge as getAnalyticsPayablesQueryKey, Ke as getAnalyticsReceivablesOptions, _ as getApplicationStatus, v as getApprovalPolicies, qe as getApprovalPoliciesOptions, Je as getApprovalPoliciesQueryKey, y as getApprovalRequests, Ye as getApprovalRequestsOptions, Xe as getApprovalRequestsQueryKey, b as getBankAccountAccess, Ze as getBankAccountAccessQueryKey, Qe as getBankAccountApplicationOptions, $e as getBankAccountOptions, et as getBankAccountQueryKey, x as getBankAccountStatement, tt as getBankAccountStatementsOptions, nt as getBankAccountTransactionsOptions, rt as getBankAccountTransactionsQueryKey, it as getBankAccountTransfersOptions, at as getBankAccountTransfersQueryKey, ot as getBankAccountsQueryKey, S as getCounterparts, st as getCounterpartsIdAddressesOptions, ct as getCounterpartsIdAddressesQueryKey, lt as getCounterpartsIdBankAccountsOptions, ut as getCounterpartsIdBankAccountsQueryKey, dt as getCounterpartsIdOptions, ft as getCounterpartsIdQueryKey, pt as getCounterpartsOptions, mt as getCounterpartsQueryKey, ht as getCreditCardByIdOptions, gt as getCreditCardByIdQueryKey, _t as getCreditCardsOptions, vt as getCreditCardsQueryKey, yt as getDebitCardByIdOptions, bt as getDebitCardByIdQueryKey, xt as getDebitCardCredentialsOptions, St as getDebitCardsOptions, Ct as getDebitCardsQueryKey, C as getDepartment, wt as getDepartmentOptions, Tt as getDepartmentQueryKey, w as getDepositableBankAccounts, Et as getDepositableBankAccountsOptions, Dt as getDocumentsIdNextNumbersOptions, Ot as getDocumentsIdNextNumbersQueryKey, kt as getEntitiesIdSettingsOptions, At as getEntitiesIdSettingsQueryKey, jt as getEntityUsersMyEntityOptions, Mt as getEntityUsersMyEntityQueryKey, T as getExternalBankAccountAccess, Nt as getExternalBankAccountAccessQueryKey, Pt as getExternalBankAccountsOptions, Ft as getExternalBankAccountsQueryKey, It as getLedgerAccountsQueryKey, E as getLocation, Lt as getLocationOptions, Rt as getLocationQueryKey, zt as getMeasureUnitsOptions, Bt as getMeasureUnitsQueryKey, Vt as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, Ht as getPayablesIdHistoryOptions, Ut as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, Wt as getPayablesIdLineItemsOptions, Gt as getPayablesIdLineItemsQueryKey, Kt as getPayablesIdOptions, qt as getPayablesIdQueryKey, Jt as getPayablesIdSuggestionsOptions, Yt as getPayablesOptions, Xt as getPayablesQueryKey, j as getPaymentRecords, Zt as getPaymentRecordsOptions, Qt as getPaymentRecordsQueryKey, $t as getProductsIdOptions, en as getProductsIdQueryKey, tn as getProductsOptions, nn as getProductsQueryKey, rn as getReceiptsIdQueryKey, an as getReceiptsOptions, on as getReceiptsQueryKey, M as getReceivables, sn as getReceivablesIdHistoryOptions, cn as getReceivablesIdHistoryQueryKey, ln as getReceivablesIdMailsOptions, un as getReceivablesIdMailsQueryKey, dn as getReceivablesIdOptions, fn as getReceivablesIdPdfLinkOptions, pn as getReceivablesIdPdfLinkQueryKey, mn as getReceivablesIdQueryKey, hn as getReceivablesOptions, gn as getReceivablesQueryKey, _n as getTransactionsIdQueryKey, vn as getTransactionsOptions, yn as getTransactionsQueryKey, bn as getTransactionsValidationsOptions, xn as getTransactionsValidationsQueryKey, N as getUsers, Sn as getUsersOptions, Cn as getUsersQueryKey, wn as getVelocityControlsQueryKey, Tn as grantBankAccountAccessMutation, En as grantExternalBankAccountAccessMutation, mr as hasAnyScope, tr as invalidateAllClients, Dr as isAllPagesResolving, _r as isApiConflictError, vr as isApiForbiddenError, yr as isApiNotFoundError, br as isApiUnprocessableError, wr as isScope, Dn as linkExternalBankAccountMutation, P as listDepartments, On as listDepartmentsOptions, kn as listDepartmentsQueryKey, F as listLocations, An as listLocationsOptions, jn as listLocationsQueryKey, I as listRoles, Mn as listRolesQueryKey, L as manageBankAccountAccess, Nn as manageDebitCardAccessMutation, dr as optionalOrganizationHeaders, fr as organizationHeaders, Pn as patchApprovalPoliciesIdMutation, R as patchCounterpartsId, z as patchCounterpartsIdAddressesId, B as patchCounterpartsIdBankAccountsId, V as patchEntitiesIdSettings, Fn as patchLedgerAccountsIdMutation, H as patchMeasureUnitsId, U as patchPayablesId, W as patchProductsId, In as patchReceiptsIdMutation, G as patchReceivablesId, Ln as postApprovalPoliciesMutation, K as postApprovalRequestsIdApprove, q as postApprovalRequestsIdReject, J as postCounterparts, Y as postCounterpartsIdAddresses, X as postCounterpartsIdBankAccounts, Z as postCounterpartsIdBankAccountsIdMakeDefault, Rn as postLedgerAccountsMutation, Q as postMeasureUnits, $ as postPayables, ee as postPayablesIdApprovePaymentOperation, te as postPayablesIdAttachFile, ne as postPayablesIdCancel, re as postPayablesIdDuplicatesIdConfirm, ie as postPayablesIdDuplicatesIdDismiss, ae as postPayablesIdMarkAsPaid, oe as postPayablesIdReject, se as postPayablesIdReopen, ce as postPayablesIdSchedulePayment, le as postPayablesIdSubmitForApproval, ue as postPayablesIdValidate, de as postPayablesUploadFromFile, fe as postPaymentIntentsIdCancel, pe as postProducts, me as postReceivables, he as postReceivablesIdAccept, ge as postReceivablesIdCancel, _e as postReceivablesIdClone, ve as postReceivablesIdDecline, ye as postReceivablesIdIssue, be as postReceivablesIdMarkAsPaid, xe as postReceivablesIdMarkAsPartiallyPaid, Se as postReceivablesIdMarkAsUncollectible, Ce as postReceivablesIdSend, we as putEntitiesIdLogo, Te as putPayablesIdLineItems, zn as putTransactionsValidationsMutation, nr as registerQueryClient, rr as removeInactiveFromAllClients, ir as setAllClientsQueriesData, Bn as setDebitCardLockStatusMutation, Vn as submitApplicationMutation, Hn as unlinkExternalBankAccountMutation, ar as unregisterQueryClient, Un as updateApplicationMutation, Wn as updateBankAccountMutation, Gn as updateDebitCardMutation, Ee as updateDepartment, Kn as updateExternalBankAccountMutation, De as updateLocation, Oe as updateUser, Rr as useAcceptWidgetDisclosures, kr as useAllBankAccountsQuery, Ar as useAllExternalBankAccountsQuery, Mr as useAllLedgerAccountsQuery, jr as useAllMerchantCategoryGroupsQuery, Fr as useAllOrganizationRolesQuery, Lr as useAllOrganizationUsersQuery, Or as useAutoFetchNextPage, hr as useCurrentUserQuery, zr as useDisclosuresQuery, ur as useEmbedApi, xr as useGetUserDataQuery, Nr as useLedgerAccountsQuery, gr as useMailboxAddress, Vr as useOrganizationOnboardingSuppression, Pr as usePaymentTermsQuery, Ir as useRolePermissionsQueries, Sr as useUpsertUserDataMutation, qn as validateExternalBankAccountMutation, Jn as verifyDebitCardMutation, Xn as withAuthEpoch };
28
+ import { Scope as wr, isScope as Tr } from "./lib/scopes.js";
29
+ import { getAllPagesNextPageParam as Er, getAllPagesNextPaginationTokenParam as Dr, isAllPagesResolving as Or, useAutoFetchNextPage as kr } from "./lib/allPages.js";
30
+ import { useAllBankAccountsQuery as Ar } from "./lib/bank-account/useAllBankAccountsQuery.js";
31
+ import { useAllDebitCardsQuery as jr } from "./lib/debit-card/useAllDebitCardsQuery.js";
32
+ import { useAllExternalBankAccountsQuery as Mr } from "./lib/external-bank-account/useAllExternalBankAccountsQuery.js";
33
+ import { useAllMerchantCategoryGroupsQuery as Nr } from "./lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js";
34
+ import { useAllLedgerAccountsQuery as Pr, useLedgerAccountsQuery as Fr } from "./lib/reference-data/useLedgerAccountsQuery.js";
35
+ import { usePaymentTermsQuery as Ir } from "./lib/reference-data/usePaymentTermsQuery.js";
36
+ import { useAllOrganizationRolesQuery as Lr } from "./lib/role/useAllOrganizationRolesQuery.js";
37
+ import { useRolePermissionsQueries as Rr } from "./lib/role/useRolePermissionsQueries.js";
38
+ import { useAllOrganizationUsersQuery as zr } from "./lib/user/useAllOrganizationUsersQuery.js";
39
+ import { useAcceptWidgetDisclosures as Br } from "./lib/disclosures/useAcceptWidgetDisclosures.js";
40
+ import { useDisclosuresQuery as Vr } from "./lib/disclosures/useDisclosuresQuery.js";
41
+ import { OnboardingSuppressionReason as Hr } from "./lib/onboardingSuppressionReason.js";
42
+ import { useOrganizationOnboardingSuppression as Ur } from "./lib/useOrganizationOnboardingSuppression.js";
43
+ export { ur as EmbedApiProvider, Hr as OnboardingSuppressionReason, wr as Scope, Ae as activateCreditCardMutation, je as activateDebitCardMutation, Qn as applicationStatusInvalidationKey, $n as applicationStatusQueryOptions, lr as attachTransportInterceptors, Xn as authEpochPlaceholder, e as bulkUpdateDepartmentMembers, t as bulkUpdateLocationMembers, n as bulkUpdateRoleMembers, tr as cancelAllClients, sr as cloneEmbeddedClient, Me as connectExternalBankAccountMutation, Ne as createAchMoneyMovementMutation, Pe as createApplicationMutation, Fe as createBankAccountMutation, Ie as createBookTransferMutation, Le as createCheckDepositMutation, er as createClientSecretInstaller, Re as createDebitCardMutation, r as createDepartment, cr as createEmbeddedClient, i as createLocation, a as createUser, ze as createVelocityControlMutation, o as deactivateDepartment, s as deactivateLocation, Be as deleteApprovalPoliciesIdMutation, Ve as deleteBankAccountApplicationMutation, c as deleteCounterpartsId, l as deleteCounterpartsIdBankAccountsId, u as deleteEntitiesIdLogo, He as deleteLedgerAccountsIdMutation, d as deleteMeasureUnitsId, f as deletePayablesId, p as deletePayablesIdFile, m as deleteProductsId, Ue as deleteReceiptsIdMutation, h as deleteReceivablesId, We as disableUserMutation, g as downloadBankAccountTransactions, mr as fetchWidgetInit, Er as getAllPagesNextPageParam, Dr as getAllPagesNextPaginationTokenParam, Ge as getAnalyticsPayablesOptions, Ke as getAnalyticsPayablesQueryKey, qe as getAnalyticsReceivablesOptions, _ as getApplicationStatus, v as getApprovalPolicies, Je as getApprovalPoliciesOptions, Ye as getApprovalPoliciesQueryKey, y as getApprovalRequests, Xe as getApprovalRequestsOptions, Ze as getApprovalRequestsQueryKey, b as getBankAccountAccess, Qe as getBankAccountAccessQueryKey, $e as getBankAccountApplicationOptions, et as getBankAccountOptions, tt as getBankAccountQueryKey, x as getBankAccountStatement, nt as getBankAccountStatementsOptions, rt as getBankAccountTransactionsOptions, it as getBankAccountTransactionsQueryKey, at as getBankAccountTransfersOptions, ot as getBankAccountTransfersQueryKey, st as getBankAccountsQueryKey, S as getCounterparts, ct as getCounterpartsIdAddressesOptions, lt as getCounterpartsIdAddressesQueryKey, ut as getCounterpartsIdBankAccountsOptions, dt as getCounterpartsIdBankAccountsQueryKey, ft as getCounterpartsIdOptions, pt as getCounterpartsIdQueryKey, mt as getCounterpartsOptions, ht as getCounterpartsQueryKey, gt as getCreditCardByIdOptions, _t as getCreditCardByIdQueryKey, vt as getCreditCardsOptions, yt as getCreditCardsQueryKey, bt as getDebitCardByIdOptions, xt as getDebitCardByIdQueryKey, St as getDebitCardCredentialsOptions, Ct as getDebitCardsOptions, wt as getDebitCardsQueryKey, C as getDepartment, Tt as getDepartmentOptions, Et as getDepartmentQueryKey, w as getDepositableBankAccounts, Dt as getDepositableBankAccountsOptions, Ot as getDocumentsIdNextNumbersOptions, kt as getDocumentsIdNextNumbersQueryKey, At as getEntitiesIdSettingsOptions, jt as getEntitiesIdSettingsQueryKey, Mt as getEntityUsersMyEntityOptions, Nt as getEntityUsersMyEntityQueryKey, T as getExternalBankAccountAccess, Pt as getExternalBankAccountAccessQueryKey, Ft as getExternalBankAccountsOptions, It as getExternalBankAccountsQueryKey, Lt as getLedgerAccountsQueryKey, E as getLocation, Rt as getLocationOptions, zt as getLocationQueryKey, Bt as getMeasureUnitsOptions, Vt as getMeasureUnitsQueryKey, Ht as getOrganizationOptions, D as getPayables, O as getPayablesId, k as getPayablesIdHistory, Ut as getPayablesIdHistoryOptions, Wt as getPayablesIdHistoryQueryKey, A as getPayablesIdLineItems, Gt as getPayablesIdLineItemsOptions, Kt as getPayablesIdLineItemsQueryKey, qt as getPayablesIdOptions, Jt as getPayablesIdQueryKey, Yt as getPayablesIdSuggestionsOptions, Xt as getPayablesOptions, Zt as getPayablesQueryKey, j as getPaymentRecords, Qt as getPaymentRecordsOptions, $t as getPaymentRecordsQueryKey, en as getProductsIdOptions, tn as getProductsIdQueryKey, nn as getProductsOptions, rn as getProductsQueryKey, an as getReceiptsIdQueryKey, on as getReceiptsOptions, sn as getReceiptsQueryKey, M as getReceivables, cn as getReceivablesIdHistoryOptions, ln as getReceivablesIdHistoryQueryKey, un as getReceivablesIdMailsOptions, dn as getReceivablesIdMailsQueryKey, fn as getReceivablesIdOptions, pn as getReceivablesIdPdfLinkOptions, mn as getReceivablesIdPdfLinkQueryKey, hn as getReceivablesIdQueryKey, gn as getReceivablesOptions, _n as getReceivablesQueryKey, vn as getTransactionsIdQueryKey, yn as getTransactionsOptions, bn as getTransactionsQueryKey, xn as getTransactionsValidationsOptions, Sn as getTransactionsValidationsQueryKey, N as getUsers, Cn as getUsersOptions, wn as getUsersQueryKey, Tn as getVelocityControlsQueryKey, En as grantBankAccountAccessMutation, Dn as grantExternalBankAccountAccessMutation, hr as hasAnyScope, nr as invalidateAllClients, Or as isAllPagesResolving, vr as isApiConflictError, yr as isApiForbiddenError, br as isApiNotFoundError, xr as isApiUnprocessableError, Tr as isScope, On as linkExternalBankAccountMutation, P as listDepartments, kn as listDepartmentsOptions, An as listDepartmentsQueryKey, F as listLocations, jn as listLocationsOptions, Mn as listLocationsQueryKey, I as listRoles, Nn as listRolesQueryKey, L as manageBankAccountAccess, R as manageDebitCardAccess, Pn as manageDebitCardAccessMutation, fr as optionalOrganizationHeaders, pr as organizationHeaders, Fn as patchApprovalPoliciesIdMutation, z as patchCounterpartsId, B as patchCounterpartsIdAddressesId, V as patchCounterpartsIdBankAccountsId, H as patchEntitiesIdSettings, In as patchLedgerAccountsIdMutation, U as patchMeasureUnitsId, W as patchPayablesId, G as patchProductsId, Ln as patchReceiptsIdMutation, K as patchReceivablesId, Rn as postApprovalPoliciesMutation, q as postApprovalRequestsIdApprove, J as postApprovalRequestsIdReject, Y as postCounterparts, X as postCounterpartsIdAddresses, Z as postCounterpartsIdBankAccounts, Q as postCounterpartsIdBankAccountsIdMakeDefault, zn as postLedgerAccountsMutation, $ as postMeasureUnits, ee as postPayables, te as postPayablesIdApprovePaymentOperation, ne as postPayablesIdAttachFile, re as postPayablesIdCancel, ie as postPayablesIdDuplicatesIdConfirm, ae as postPayablesIdDuplicatesIdDismiss, oe as postPayablesIdMarkAsPaid, se as postPayablesIdReject, ce as postPayablesIdReopen, le as postPayablesIdSchedulePayment, ue as postPayablesIdSubmitForApproval, de as postPayablesIdValidate, fe as postPayablesUploadFromFile, pe as postPaymentIntentsIdCancel, me as postProducts, he as postReceivables, ge as postReceivablesIdAccept, _e as postReceivablesIdCancel, ve as postReceivablesIdClone, ye as postReceivablesIdDecline, be as postReceivablesIdIssue, xe as postReceivablesIdMarkAsPaid, Se as postReceivablesIdMarkAsPartiallyPaid, Ce as postReceivablesIdMarkAsUncollectible, we as postReceivablesIdSend, Te as putEntitiesIdLogo, Ee as putPayablesIdLineItems, Bn as putTransactionsValidationsMutation, rr as registerQueryClient, ir as removeInactiveFromAllClients, ar as setAllClientsQueriesData, Vn as setDebitCardLockStatusMutation, Hn as submitApplicationMutation, Un as unlinkExternalBankAccountMutation, or as unregisterQueryClient, Wn as updateApplicationMutation, Gn as updateBankAccountMutation, Kn as updateDebitCardMutation, De as updateDepartment, qn as updateExternalBankAccountMutation, Oe as updateLocation, ke as updateUser, Br as useAcceptWidgetDisclosures, Ar as useAllBankAccountsQuery, jr as useAllDebitCardsQuery, Mr as useAllExternalBankAccountsQuery, Pr as useAllLedgerAccountsQuery, Nr as useAllMerchantCategoryGroupsQuery, Lr as useAllOrganizationRolesQuery, zr as useAllOrganizationUsersQuery, kr as useAutoFetchNextPage, gr as useCurrentUserQuery, Vr as useDisclosuresQuery, dr as useEmbedApi, Sr as useGetUserDataQuery, Fr as useLedgerAccountsQuery, _r as useMailboxAddress, Ur as useOrganizationOnboardingSuppression, Ir as usePaymentTermsQuery, Rr as useRolePermissionsQueries, Cr as useUpsertUserDataMutation, Jn as validateExternalBankAccountMutation, Yn as verifyDebitCardMutation, Zn 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 };
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.5.185", n = "6bae487bac397ada26d87e792182c8ad272c420e", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.5.187", n = "8de8844504391c536ac22614ee06e0af462a864e", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -14,19 +14,19 @@ import "../../../cards-widget/feature/dist/index.js";
14
14
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
15
15
  //#region ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/index9.js
16
16
  function c() {
17
- let { grantedScopes: c, labels: l, cardArtSrc: u } = e(), d = l.sections.cards;
17
+ let { grantedScopes: c, labels: l, cardArtSrc: u } = e(), d = l.sections.cards, f = t(c, [n.CreditCardReadOrg]), p = t(c, [n.DebitCardReadOrg]), m = f && p;
18
18
  return /* @__PURE__ */ s("div", {
19
19
  className: "ttw:grid ttw:gap-8",
20
- children: [t(c, [n.CreditCardReadOrg]) && /* @__PURE__ */ o(i, {
20
+ children: [f && /* @__PURE__ */ o(i, {
21
21
  ...d.creditCards,
22
- headerStart: /* @__PURE__ */ o(r, {
22
+ headerStart: m && /* @__PURE__ */ o(r, {
23
23
  className: "ttw:mb-0",
24
24
  children: d.creditCardsTitle
25
25
  })
26
- }), t(c, [n.DebitCardReadOrg]) && /* @__PURE__ */ o(a, {
26
+ }), p && /* @__PURE__ */ o(a, {
27
27
  ...d.debitCards,
28
28
  cardArtSrc: u,
29
- headerStart: /* @__PURE__ */ o(r, {
29
+ headerStart: m && /* @__PURE__ */ o(r, {
30
30
  className: "ttw:mb-0",
31
31
  children: d.debitCardsTitle
32
32
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.5.185",
3
+ "version": "0.5.187",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {