@tesouro/embedded-components-react 0.5.225 → 0.5.227

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +21 -21
  2. package/dist/index.d.ts +23 -2
  3. package/dist/index.js +1 -1
  4. package/dist/lib/ReceivablesWidget.d.ts +23 -2
  5. package/dist/lib/ReceivablesWidget.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
  7. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
  8. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
  9. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
  10. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
  12. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
  13. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
  27. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
  28. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
  30. package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
  31. package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
  32. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
  33. package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
  34. package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
  35. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
  36. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
  37. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
  38. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
  39. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
  40. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
  41. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
  42. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
  43. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
  44. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
  45. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
  46. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
  47. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
  48. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
  49. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
  50. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
  51. package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +50 -36
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +51 -32
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +20 -1
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +17 -202
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +220 -31
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +32 -145
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -44
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +145 -117
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +46 -58
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +113 -87
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +58 -116
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +98 -225
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +111 -27
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +225 -462
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +34 -41
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +627 -34
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +39 -77
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -112
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +75 -310
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +124 -0
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +324 -0
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +20 -15
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +56 -53
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -29
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +184 -162
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +1 -3
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +78 -69
  84. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
  85. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
  86. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
  87. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
  88. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
  89. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
  90. package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
  91. package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
  92. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
  93. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
  94. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
  95. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
  96. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
  97. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
  98. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
  99. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
  100. package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
  101. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
  102. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
  103. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
  104. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
  105. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +7 -6
  106. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +20 -19
  107. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
  108. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
  109. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
  110. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
  111. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
  112. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
  113. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
  114. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
  115. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
  116. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
  117. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
  118. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
  119. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +210 -199
  120. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +60 -52
  121. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
  122. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
  123. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
  124. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
  125. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
  126. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
  127. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
  128. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
  129. package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
  130. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
  131. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
  132. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
  133. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
  134. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  135. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
  136. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
  137. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
  138. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
  139. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
  140. package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
  141. package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
  142. package/package.json +1 -1
@@ -2,376 +2,378 @@
2
2
  "use client";
3
3
  "use client";
4
4
  "use client";
5
- import { hasAnyScope as e } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
6
- import { Scope as t } from "../../../../shared/data-access/dist/lib/scopes.js";
7
- import { useAllOrganizationRolesQuery as ee } from "../../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
5
+ import { OrganizationStatus as e, isOrganizationOnItsWay as ee } from "../../../../shared/data-access/dist/lib/organizationStatus.js";
6
+ import { useEmbedApi as te } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
7
+ import { hasAnyScope as t } from "../../../../shared/data-access/dist/lib/hasAnyScope.js";
8
+ import { Scope as n } from "../../../../shared/data-access/dist/lib/scopes.js";
9
+ import { useAllOrganizationRolesQuery as r } from "../../../../shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js";
8
10
  import "../../../../shared/data-access/dist/index.js";
9
- import { EmbeddedToaster as n } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
11
+ import { EmbeddedToaster as ne } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
10
12
  import "../../../../shared/ui/dist/index.js";
11
- import { useAnalyticsTrack as te } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
12
- import { WidgetProvider as r } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
13
- import { useWidgetConfig as ne, useWidgetError as re, useWidgetLoading as ie } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
13
+ import { useAnalyticsTrack as re } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
14
+ import { WidgetProvider as i } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
15
+ import { useWidgetConfig as ie, useWidgetError as ae, useWidgetLoading as oe } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
14
16
  import "../../../../shared/feature/dist/index.js";
15
- import { DEFAULT_FEATURE_LABELS as ae } from "./index3.js";
16
- import { TeamWidgetAnalyticsEvent as oe, WIDGET_NAME as i } from "./index2.js";
17
- import { useRolesQuery as a } from "../../data-access/dist/index12.js";
18
- import { useTeamMembersQuery as se } from "../../data-access/dist/index13.js";
19
- import { useAllTeamMembersQuery as ce } from "../../data-access/dist/index14.js";
17
+ import { DEFAULT_FEATURE_LABELS as se } from "./index3.js";
18
+ import { TeamWidgetAnalyticsEvent as a, WIDGET_NAME as o } from "./index2.js";
19
+ import { useRolesQuery as ce } from "../../data-access/dist/index12.js";
20
+ import { useTeamMembersQuery as le } from "../../data-access/dist/index13.js";
21
+ import { useAllTeamMembersQuery as ue } from "../../data-access/dist/index14.js";
20
22
  import "../../data-access/dist/index.js";
21
- import { useDepartmentsAdmin as le } from "./index6.js";
22
- import { isMemberActionable as ue, resolveReportingManager as de, toAssignableRoles as fe, toDirectReportRows as pe, toRoleDisplayCatalog as me, toScopedRoles as he, toTeamMemberDetails as ge, toTeamMemberRows as _e } from "./index11.js";
23
- import { useInviteForm as ve } from "./index12.js";
24
- import { useLocationsAdmin as ye } from "./index13.js";
25
- import { useMemberAccountAccess as be } from "./index14.js";
26
- import { canEditMemberProfile as xe, canEditMemberRole as Se, useMemberEdit as Ce } from "./index15.js";
27
- import { useTeamActions as we } from "./index16.js";
28
- import { InviteTeamMemberForm as Te } from "../../ui/dist/index8.js";
29
- import { EditTeamMemberPanel as Ee } from "../../ui/dist/index10.js";
30
- import { GroupAdminDrawer as De } from "../../ui/dist/index12.js";
31
- import { GroupAdminPanel as Oe } from "../../ui/dist/index14.js";
32
- import { TeamActionDialog as o } from "../../ui/dist/index15.js";
33
- import { TeamMembersTable as ke } from "../../ui/dist/index16.js";
34
- import { TeamMemberDetails as Ae } from "../../ui/dist/index17.js";
35
- import { TeamTabs as je } from "../../ui/dist/index18.js";
23
+ import { useDepartmentsAdmin as de } from "./index6.js";
24
+ import { isMemberActionable as fe, resolveReportingManager as pe, toAssignableRoles as me, toDirectReportRows as he, toRoleDisplayCatalog as ge, toScopedRoles as _e, toTeamMemberDetails as ve, toTeamMemberRows as ye } from "./index11.js";
25
+ import { useInviteForm as be } from "./index12.js";
26
+ import { useLocationsAdmin as xe } from "./index13.js";
27
+ import { useMemberAccountAccess as Se } from "./index14.js";
28
+ import { canEditMemberProfile as Ce, canEditMemberRole as we, useMemberEdit as Te } from "./index15.js";
29
+ import { useTeamActions as Ee } from "./index16.js";
30
+ import { InviteTeamMemberForm as De } from "../../ui/dist/index8.js";
31
+ import { EditTeamMemberPanel as Oe } from "../../ui/dist/index10.js";
32
+ import { GroupAdminDrawer as ke } from "../../ui/dist/index12.js";
33
+ import { GroupAdminPanel as Ae } from "../../ui/dist/index14.js";
34
+ import { TeamActionDialog as s } from "../../ui/dist/index15.js";
35
+ import { TeamMembersTable as je } from "../../ui/dist/index16.js";
36
+ import { TeamMemberDetails as Me } from "../../ui/dist/index17.js";
37
+ import { TeamTabs as Ne } from "../../ui/dist/index18.js";
36
38
  import "../../ui/dist/index.js";
37
- import { useEffect as s, useMemo as c, useState as l } from "react";
38
- import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
39
- import { Ban as Me, Building2 as Ne, MailIcon as Pe, MapPin as Fe, Trash2 as Ie } from "lucide-react";
39
+ import { useEffect as c, useMemo as l, useState as u } from "react";
40
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
41
+ import { Ban as Pe, Building2 as Fe, MailIcon as Ie, MapPin as Le, Trash2 as Re } from "lucide-react";
40
42
  //#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js
41
- var Le = [
43
+ var ze = [
42
44
  5,
43
45
  10,
44
46
  25
45
- ], Re = 10, ze = [t.UserReadOrg], p = [t.UserWriteOrg, t.UserWriteAll], Be = [t.UserWriteAll], Ve = [t.UserWriteOrg], He = [t.UserWriteOrg], Ue = [t.RoleReadOrg], We = [t.UserWriteOrg], Ge = [t.BankAccountReadOrg], Ke = [t.ExternalBankAccountReadOrg], qe = [t.BankAccountWriteOrg], Je = [t.DebitCardReadOrg], Ye = [t.DebitCardIssueOrg];
46
- function m({ labels: r, featureLabels: i, acceptInviteRedirectUri: m }) {
47
- let h = c(() => ({
48
- ...ae,
49
- ...i
50
- }), [i]), g = te();
51
- s(() => {
52
- g(oe.Mounted);
53
- }, [g]);
54
- let { organizationId: _, widgetToken: Xe, initResponse: v } = ne(), y = v?.userId ?? void 0, Ze = ie(), Qe = !!re(), b = !!(_ && Xe), x = c(() => e(v?.scopes, ze), [v?.scopes]), S = b && x && !!v, C = v?.scopes, w = e(C, Ue), $e = e(C, We), et = b && e(C, p) && w && $e, T = b && x && e(C, p), tt = b && e(C, Be), nt = b && e(C, Ve), rt = b && w && $e, it = b && e(C, He), at = b && x && e(C, [t.UserWriteOrg]), E = b && e(C, Ge), D = b && e(C, Ke), O = b && e(C, qe) && E && D, ot = b && e(C, Je) && e(C, Ye), [k, st] = l("members"), A = le({
55
- canRead: x && k === "departments",
56
- canWrite: at,
57
- featureLabels: h
58
- }), j = ye({
59
- canRead: x && k === "locations",
60
- canWrite: at,
61
- featureLabels: h
62
- }), ct = [
47
+ ], Be = 10, Ve = [n.UserReadOrg], m = [n.UserWriteOrg, n.UserWriteAll], He = [n.UserWriteAll], Ue = [n.UserWriteOrg], We = [n.UserWriteOrg], Ge = [n.RoleReadOrg], Ke = [n.UserWriteOrg], qe = [n.BankAccountReadOrg], Je = [n.ExternalBankAccountReadOrg], Ye = [n.BankAccountWriteOrg], Xe = [n.DebitCardReadOrg], Ze = [n.DebitCardIssueOrg];
48
+ function h({ labels: i, featureLabels: o, acceptInviteRedirectUri: h }) {
49
+ let g = l(() => ({
50
+ ...se,
51
+ ...o
52
+ }), [o]), Qe = re();
53
+ c(() => {
54
+ Qe(a.Mounted);
55
+ }, [Qe]);
56
+ let { organizationId: $e, widgetToken: et, initResponse: _ } = ie(), { organizationStatus: tt } = te(), v = $e ?? (tt === e.Rotating ? _?.organizationId : void 0), y = _?.userId ?? void 0, nt = oe(), rt = !!ae(), b = !!($e && et), it = !!(v && et), x = l(() => t(_?.scopes, Ve), [_?.scopes]), S = it && x && !!_, C = _?.scopes, w = t(C, Ge), at = t(C, Ke), ot = b && t(C, m) && w && at, st = b && x && t(C, m), ct = b && t(C, He), lt = b && t(C, Ue), ut = b && w && at, dt = b && t(C, We), ft = b && x && t(C, [n.UserWriteOrg]), T = b && t(C, qe), E = b && t(C, Je), D = b && t(C, Ye) && T && E, pt = b && t(C, Xe) && t(C, Ze), [O, mt] = u("members"), k = de({
57
+ canRead: x && O === "departments",
58
+ canWrite: ft,
59
+ featureLabels: g
60
+ }), A = xe({
61
+ canRead: x && O === "locations",
62
+ canWrite: ft,
63
+ featureLabels: g
64
+ }), ht = [
63
65
  {
64
66
  id: "members",
65
- label: h.teamMembersTab
67
+ label: g.teamMembersTab
66
68
  },
67
69
  {
68
70
  id: "departments",
69
- label: h.departmentsTab
71
+ label: g.departmentsTab
70
72
  },
71
73
  {
72
74
  id: "locations",
73
- label: h.locationsTab
75
+ label: g.locationsTab
74
76
  }
75
- ], [lt, M] = l(), [N, ut] = l(Re), [dt, P] = l(0), [F, I] = l(), L = (et || rt) && w, ft = S && w && (!!F || !L), [pt, mt] = l(), R = se({
76
- Limit: N,
77
+ ], [gt, j] = u(), [M, _t] = u(Be), [vt, N] = u(0), [P, F] = u(), I = (ot || ut) && w, yt = S && w && (!!P || !I), [bt, xt] = u(), L = le({
78
+ Limit: M,
77
79
  Status: "ALL",
78
- PaginationToken: lt,
80
+ PaginationToken: gt,
79
81
  enabled: S
80
- }), ht = v?.organizationTypes ?? [], z = c(() => ({
81
- organizationId: _ ?? "",
82
- organizationTypes: ht
83
- }), [_, ht]), B = ee({ enabled: ft }), gt = c(() => me(B.data?.data ?? [], z), [B.data?.data, z]), V = S ? R.data?.data ?? [] : [], H = a({ enabled: L }), U = c(() => fe(H.data?.data ?? [], z), [H.data, z]), _t = c(() => {
84
- let e = L ? H.data?.data ?? [] : B.data?.data ?? [];
85
- return he(e, z);
82
+ }), St = _?.organizationTypes ?? [], R = l(() => ({
83
+ organizationId: v ?? "",
84
+ organizationTypes: St
85
+ }), [v, St]), z = r({ enabled: yt }), Ct = l(() => ge(z.data?.data ?? [], R), [z.data?.data, R]), B = S ? L.data?.data ?? [] : [], V = ce({ enabled: I }), H = l(() => me(V.data?.data ?? [], R), [V.data, R]), wt = l(() => {
86
+ let e = I ? V.data?.data ?? [] : z.data?.data ?? [];
87
+ return _e(e, R);
86
88
  }, [
87
- L,
88
- H.data,
89
- B.data,
90
- z
91
- ]), vt = gt.length > 0 && !B.isResolving && !B.isError, yt = c(() => me(H.data?.data ?? [], z), [H.data, z]), W = vt ? gt : yt, bt = _e(V, h, I, W, _), xt = !!H.data, St = U.length > 0, Ct = et && xt && St, wt = rt && xt && St, G = ve({
92
- canInvite: Ct,
89
+ I,
90
+ V.data,
91
+ z.data,
92
+ R
93
+ ]), Tt = Ct.length > 0 && !z.isResolving && !z.isError, Et = l(() => ge(V.data?.data ?? [], R), [V.data, R]), U = Tt ? Ct : Et, Dt = ye(B, g, F, U, v), Ot = !!V.data, kt = H.length > 0, At = ot && Ot && kt, jt = ut && Ot && kt, W = be({
94
+ canInvite: At,
93
95
  canReadDirectory: x,
94
- canManageAccountAccess: O,
95
- canReadInternalAccounts: E,
96
- canReadExternalAccounts: D,
97
- canGrantDebitCardAccess: ot,
98
- roles: U,
99
- roleCatalog: W,
100
- organizationId: _,
101
- featureLabels: h,
102
- acceptInviteRedirectUri: m
103
- }), K = Ce({
104
- canEditAnyProfile: tt,
105
- canEditOrgProfile: nt,
106
- organizationId: _,
96
+ canManageAccountAccess: D,
97
+ canReadInternalAccounts: T,
98
+ canReadExternalAccounts: E,
99
+ canGrantDebitCardAccess: pt,
100
+ roles: H,
101
+ roleCatalog: U,
102
+ organizationId: v,
103
+ featureLabels: g,
104
+ acceptInviteRedirectUri: h
105
+ }), G = Te({
106
+ canEditAnyProfile: ct,
107
+ canEditOrgProfile: lt,
108
+ organizationId: v,
107
109
  currentUserId: y,
108
- canEditRole: wt,
110
+ canEditRole: jt,
109
111
  canReadDirectory: x,
110
- canManageAccountAccess: O,
111
- canReadInternalAccounts: E,
112
- canReadExternalAccounts: D,
113
- members: V,
114
- roles: U,
115
- allRoles: _t,
116
- roleCatalog: W,
117
- featureLabels: h
118
- }), q = we({
119
- canDeactivate: it,
120
- canResendInvite: T,
121
- members: V,
122
- featureLabels: h,
123
- acceptInviteRedirectUri: m
124
- }), Tt = R.data?.nextPaginationToken, Et = R.data?.prevPaginationToken, J = F ? V.find((e) => e.id === F) : void 0, Y = ce({ enabled: !!J && x }), Dt = Y.data?.data ?? V, X = J ? de(Dt, J.reportingManagerUserId) : void 0, Ot = c(() => J && Y.isComplete ? pe(Y.data?.data ?? [], J.id, h, W, _) : [], [
125
- J,
126
- Y.isComplete,
127
- Y.data?.data,
128
- h,
129
- W,
130
- _
131
- ]), kt = !!R.data, At = kt && !!F && !J;
132
- s(() => {
133
- At && I(void 0);
134
- }, [At]);
135
- let jt = R.isError;
136
- s(() => {
137
- jt && (M(void 0), P(0));
138
- }, [jt]);
139
- let Mt = bt.length, Nt = Mt === 0 ? 0 : dt * N + 1, Pt = dt * N + Mt, Ft = `${h.viewingRangeLabel} ${Nt}-${Pt}`, Z = ue(J), It = !!(J && xe({
140
- member: J,
141
- organizationId: _,
142
- canEditAnyProfile: tt,
143
- canEditOrgProfile: nt,
112
+ canManageAccountAccess: D,
113
+ canReadInternalAccounts: T,
114
+ canReadExternalAccounts: E,
115
+ members: B,
116
+ roles: H,
117
+ allRoles: wt,
118
+ roleCatalog: U,
119
+ featureLabels: g
120
+ }), K = Ee({
121
+ canDeactivate: dt,
122
+ canResendInvite: st,
123
+ members: B,
124
+ featureLabels: g,
125
+ acceptInviteRedirectUri: h
126
+ }), Mt = L.data?.nextPaginationToken, Nt = L.data?.prevPaginationToken, q = P ? B.find((e) => e.id === P) : void 0, J = ue({ enabled: !!q && x }), Pt = J.data?.data ?? B, Y = q ? pe(Pt, q.reportingManagerUserId) : void 0, Ft = l(() => q && J.isComplete ? he(J.data?.data ?? [], q.id, g, U, v) : [], [
127
+ q,
128
+ J.isComplete,
129
+ J.data?.data,
130
+ g,
131
+ U,
132
+ v
133
+ ]), It = !!L.data, X = It && !!P && !q;
134
+ c(() => {
135
+ X && F(void 0);
136
+ }, [X]);
137
+ let Lt = L.isError;
138
+ c(() => {
139
+ Lt && (j(void 0), N(0));
140
+ }, [Lt]);
141
+ let Rt = Dt.length, zt = Rt === 0 ? 0 : vt * M + 1, Bt = vt * M + Rt, Vt = `${g.viewingRangeLabel} ${zt}-${Bt}`, Z = fe(q), Ht = !!(q && Ce({
142
+ member: q,
143
+ organizationId: v,
144
+ canEditAnyProfile: ct,
145
+ canEditOrgProfile: lt,
144
146
  currentUserId: y
145
- })), Lt = !!(J && Se({
146
- member: J,
147
- organizationId: _,
148
- canEditRole: wt,
147
+ })), Ut = !!(q && we({
148
+ member: q,
149
+ organizationId: v,
150
+ canEditRole: jt,
149
151
  currentUserId: y
150
- })), Rt = O && !!J && J?.id !== y, zt = It || Lt || Rt, Q = be({
151
- selectedMember: J && Z ? J : void 0,
152
- canReadInternalAccounts: E,
153
- canReadExternalAccounts: D,
154
- featureLabels: h,
155
- allRoles: _t
156
- }), $ = c(() => J ? ge(J, h, W, _) : void 0, [
157
- J,
158
- h,
159
- W,
160
- _
152
+ })), Wt = D && !!q && q?.id !== y, Gt = Ht || Ut || Wt, Q = Se({
153
+ selectedMember: q && Z ? q : void 0,
154
+ canReadInternalAccounts: T,
155
+ canReadExternalAccounts: E,
156
+ featureLabels: g,
157
+ allRoles: wt
158
+ }), $ = l(() => q ? ve(q, g, U, v) : void 0, [
159
+ q,
160
+ g,
161
+ U,
162
+ v
161
163
  ]);
162
- return /* @__PURE__ */ f(u, { children: [
163
- /* @__PURE__ */ d(n, {}),
164
- K.isEditOpen ? /* @__PURE__ */ d(Ee, {
165
- open: K.isEditOpen,
166
- memberName: K.editMemberName,
167
- memberEmail: K.editMemberEmail,
164
+ return /* @__PURE__ */ p(d, { children: [
165
+ /* @__PURE__ */ f(ne, {}),
166
+ G.isEditOpen ? /* @__PURE__ */ f(Oe, {
167
+ open: G.isEditOpen,
168
+ memberName: G.editMemberName,
169
+ memberEmail: G.editMemberEmail,
168
170
  memberInitials: $?.initials,
169
- avatarSeed: J?.email,
171
+ avatarSeed: q?.email,
170
172
  roleBadgeLabel: $?.roleCardTitle,
171
173
  statusLabel: $?.statusLabel,
172
174
  statusTone: $?.statusTone,
173
175
  lastSignInLabel: $?.lastSignInLabel,
174
- form: K.editForm,
175
- roleOptions: K.roleOptions,
176
- departmentOptions: K.departmentOptions,
177
- locationOptions: K.locationOptions,
178
- reportingManagerOptions: K.reportingManagerOptions,
179
- departmentsLoading: K.departmentsLoading,
180
- locationsLoading: K.locationsLoading,
181
- reportingManagersLoading: K.reportingManagersLoading,
182
- departmentsError: K.departmentsError,
183
- locationsError: K.locationsError,
184
- reportingManagersError: K.reportingManagersError,
185
- errors: K.editErrors,
186
- submitErrorMessage: K.editErrorMessage,
187
- isSubmitting: K.isSavingEdit,
188
- isNameDisabled: K.isEditNameDisabled,
189
- isRoleDisabled: K.isEditRoleDisabled,
190
- isGroupDisabled: K.isEditGroupDisabled,
191
- isReportingManagerDisabled: K.isEditReportingManagerDisabled,
192
- isSaveDisabled: K.isEditSaveDisabled,
193
- accountAccessMode: K.accountAccessMode,
194
- accountAccessRows: K.accountAccessRows,
195
- onAccountAccessToggle: K.onAccountAccessToggle,
196
- isAccountAccessLoading: K.isAccountAccessLoading,
197
- accountAccessErrorMessage: K.accountAccessErrorMessage,
198
- onOpenChange: K.onEditOpenChange,
199
- onFormChange: K.onEditFormChange,
200
- onSubmit: K.onEditSubmit,
201
- labels: r
202
- }) : J ? /* @__PURE__ */ d(Ae, {
203
- ...ge(J, h, W, _),
204
- avatarSeed: J.email,
205
- reportingManagerName: X?.name,
206
- reportingManagerInitials: X?.initials,
207
- reportingManagerSeed: X?.email,
208
- directReports: Ot,
209
- accountAccessLabel: Q.detailAccountAccessLabel,
210
- accountAccessRows: Q.detailAccounts,
211
- isAccountAccessLoading: Q.detailAccountsLoading,
212
- isRoleLoading: w && B.isResolving,
213
- onBackClick: () => {
214
- mt(F), I(void 0);
215
- },
216
- onEditClick: zt && Z ? () => K.openMemberEdit(J.id) : void 0,
217
- onResendClick: T && (J.status ?? "").trim().toUpperCase() === "INVITED" ? () => q.openResendConfirmation(J.id) : void 0,
218
- onDeactivateClick: it && Z ? () => q.openDeactivateConfirmation(J.id) : void 0,
219
- labels: r
220
- }) : G.isInviteOpen ? /* @__PURE__ */ d(Te, {
221
- form: G.inviteForm,
176
+ form: G.editForm,
222
177
  roleOptions: G.roleOptions,
223
178
  departmentOptions: G.departmentOptions,
224
179
  locationOptions: G.locationOptions,
225
180
  reportingManagerOptions: G.reportingManagerOptions,
226
- accountAccessOptions: G.accountAccessOptions,
227
181
  departmentsLoading: G.departmentsLoading,
228
182
  locationsLoading: G.locationsLoading,
229
183
  reportingManagersLoading: G.reportingManagersLoading,
230
184
  departmentsError: G.departmentsError,
231
185
  locationsError: G.locationsError,
232
186
  reportingManagersError: G.reportingManagersError,
233
- accountAccessLoading: G.accountAccessLoading,
234
- accountAccessError: G.accountAccessError,
187
+ errors: G.editErrors,
188
+ submitErrorMessage: G.editErrorMessage,
189
+ isSubmitting: G.isSavingEdit,
190
+ isNameDisabled: G.isEditNameDisabled,
191
+ isRoleDisabled: G.isEditRoleDisabled,
192
+ isGroupDisabled: G.isEditGroupDisabled,
193
+ isReportingManagerDisabled: G.isEditReportingManagerDisabled,
194
+ isSaveDisabled: G.isEditSaveDisabled,
235
195
  accountAccessMode: G.accountAccessMode,
236
- errors: G.inviteErrors,
237
- submitErrorMessage: G.inviteErrorMessage,
238
- isSubmitting: G.isInviting,
239
- isSubmitBlocked: G.isInviteSubmitBlocked,
240
- onFormChange: G.onInviteFormChange,
241
- onBackClick: G.closeInviteForm,
242
- onCancel: G.closeInviteForm,
243
- onSubmit: G.onInviteSubmit,
244
- labels: r
245
- }) : /* @__PURE__ */ d("div", {
196
+ accountAccessRows: G.accountAccessRows,
197
+ onAccountAccessToggle: G.onAccountAccessToggle,
198
+ isAccountAccessLoading: G.isAccountAccessLoading,
199
+ accountAccessErrorMessage: G.accountAccessErrorMessage,
200
+ onOpenChange: G.onEditOpenChange,
201
+ onFormChange: G.onEditFormChange,
202
+ onSubmit: G.onEditSubmit,
203
+ labels: i
204
+ }) : q ? /* @__PURE__ */ f(Me, {
205
+ ...ve(q, g, U, v),
206
+ avatarSeed: q.email,
207
+ reportingManagerName: Y?.name,
208
+ reportingManagerInitials: Y?.initials,
209
+ reportingManagerSeed: Y?.email,
210
+ directReports: Ft,
211
+ accountAccessLabel: Q.detailAccountAccessLabel,
212
+ accountAccessRows: Q.detailAccounts,
213
+ isAccountAccessLoading: Q.detailAccountsLoading,
214
+ isRoleLoading: w && z.isResolving,
215
+ onBackClick: () => {
216
+ xt(P), F(void 0);
217
+ },
218
+ onEditClick: Gt && Z ? () => G.openMemberEdit(q.id) : void 0,
219
+ onResendClick: st && (q.status ?? "").trim().toUpperCase() === "INVITED" ? () => K.openResendConfirmation(q.id) : void 0,
220
+ onDeactivateClick: dt && Z ? () => K.openDeactivateConfirmation(q.id) : void 0,
221
+ labels: i
222
+ }) : W.isInviteOpen ? /* @__PURE__ */ f(De, {
223
+ form: W.inviteForm,
224
+ roleOptions: W.roleOptions,
225
+ departmentOptions: W.departmentOptions,
226
+ locationOptions: W.locationOptions,
227
+ reportingManagerOptions: W.reportingManagerOptions,
228
+ accountAccessOptions: W.accountAccessOptions,
229
+ departmentsLoading: W.departmentsLoading,
230
+ locationsLoading: W.locationsLoading,
231
+ reportingManagersLoading: W.reportingManagersLoading,
232
+ departmentsError: W.departmentsError,
233
+ locationsError: W.locationsError,
234
+ reportingManagersError: W.reportingManagersError,
235
+ accountAccessLoading: W.accountAccessLoading,
236
+ accountAccessError: W.accountAccessError,
237
+ accountAccessMode: W.accountAccessMode,
238
+ errors: W.inviteErrors,
239
+ submitErrorMessage: W.inviteErrorMessage,
240
+ isSubmitting: W.isInviting,
241
+ isSubmitBlocked: W.isInviteSubmitBlocked,
242
+ onFormChange: W.onInviteFormChange,
243
+ onBackClick: W.closeInviteForm,
244
+ onCancel: W.closeInviteForm,
245
+ onSubmit: W.onInviteSubmit,
246
+ labels: i
247
+ }) : /* @__PURE__ */ f("div", {
246
248
  className: "ttw:space-y-4 ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-6",
247
- children: /* @__PURE__ */ d(je, {
248
- tabs: ct,
249
- activeTabId: k,
250
- onTabChange: st,
251
- children: k === "departments" ? /* @__PURE__ */ f(u, { children: [
252
- /* @__PURE__ */ d(Oe, {
253
- icon: /* @__PURE__ */ d(Ne, { className: "ttw:size-4" }),
249
+ children: /* @__PURE__ */ f(Ne, {
250
+ tabs: ht,
251
+ activeTabId: O,
252
+ onTabChange: mt,
253
+ children: O === "departments" ? /* @__PURE__ */ p(d, { children: [
254
+ /* @__PURE__ */ f(Ae, {
255
+ icon: /* @__PURE__ */ f(Fe, { className: "ttw:size-4" }),
256
+ ...k.panel
257
+ }),
258
+ /* @__PURE__ */ f(ke, { ...k.drawer }),
259
+ /* @__PURE__ */ f(s, {
260
+ open: k.deleteDialog.open,
261
+ icon: /* @__PURE__ */ f(Re, {
262
+ "aria-hidden": !0,
263
+ className: "ttw:size-6"
264
+ }),
265
+ title: g.departmentDeleteDialogTitle,
266
+ description: g.departmentDeleteDialogDescription,
267
+ subjectName: k.deleteDialog.subjectName,
268
+ confirmButtonLabel: g.departmentDeleteConfirmButton,
269
+ errorMessage: k.deleteDialog.errorMessage,
270
+ isConfirming: k.deleteDialog.isConfirming,
271
+ onOpenChange: k.deleteDialog.onOpenChange,
272
+ onConfirm: k.deleteDialog.onConfirm,
273
+ labels: i
274
+ })
275
+ ] }) : O === "locations" ? /* @__PURE__ */ p(d, { children: [
276
+ /* @__PURE__ */ f(Ae, {
277
+ icon: /* @__PURE__ */ f(Le, { className: "ttw:size-4" }),
254
278
  ...A.panel
255
279
  }),
256
- /* @__PURE__ */ d(De, { ...A.drawer }),
257
- /* @__PURE__ */ d(o, {
280
+ /* @__PURE__ */ f(ke, { ...A.drawer }),
281
+ /* @__PURE__ */ f(s, {
258
282
  open: A.deleteDialog.open,
259
- icon: /* @__PURE__ */ d(Ie, {
283
+ icon: /* @__PURE__ */ f(Re, {
260
284
  "aria-hidden": !0,
261
285
  className: "ttw:size-6"
262
286
  }),
263
- title: h.departmentDeleteDialogTitle,
264
- description: h.departmentDeleteDialogDescription,
287
+ title: g.locationDeleteDialogTitle,
288
+ description: g.locationDeleteDialogDescription,
265
289
  subjectName: A.deleteDialog.subjectName,
266
- confirmButtonLabel: h.departmentDeleteConfirmButton,
290
+ confirmButtonLabel: g.locationDeleteConfirmButton,
267
291
  errorMessage: A.deleteDialog.errorMessage,
268
292
  isConfirming: A.deleteDialog.isConfirming,
269
293
  onOpenChange: A.deleteDialog.onOpenChange,
270
294
  onConfirm: A.deleteDialog.onConfirm,
271
- labels: r
272
- })
273
- ] }) : k === "locations" ? /* @__PURE__ */ f(u, { children: [
274
- /* @__PURE__ */ d(Oe, {
275
- icon: /* @__PURE__ */ d(Fe, { className: "ttw:size-4" }),
276
- ...j.panel
277
- }),
278
- /* @__PURE__ */ d(De, { ...j.drawer }),
279
- /* @__PURE__ */ d(o, {
280
- open: j.deleteDialog.open,
281
- icon: /* @__PURE__ */ d(Ie, {
282
- "aria-hidden": !0,
283
- className: "ttw:size-6"
284
- }),
285
- title: h.locationDeleteDialogTitle,
286
- description: h.locationDeleteDialogDescription,
287
- subjectName: j.deleteDialog.subjectName,
288
- confirmButtonLabel: h.locationDeleteConfirmButton,
289
- errorMessage: j.deleteDialog.errorMessage,
290
- isConfirming: j.deleteDialog.isConfirming,
291
- onOpenChange: j.deleteDialog.onOpenChange,
292
- onConfirm: j.deleteDialog.onConfirm,
293
- labels: r
295
+ labels: i
294
296
  })
295
- ] }) : /* @__PURE__ */ d(ke, {
296
- rows: bt,
297
- isLoading: !Qe && (!b || Ze && !v || S && R.isLoading),
298
- isError: Qe || S && R.isError,
299
- showPagination: S && kt && !R.isError,
300
- isPreviousPageDisabled: !Et,
301
- isNextPageDisabled: !Tt,
302
- pageSize: N,
303
- pageSizeOptions: Le,
304
- rangeLabel: Ft,
297
+ ] }) : /* @__PURE__ */ f(je, {
298
+ rows: Dt,
299
+ isLoading: !rt && (ee(tt) && !L.data || nt && !_ || S && L.isLoading),
300
+ isError: rt || S && L.isError,
301
+ showPagination: S && It && !L.isError,
302
+ isPreviousPageDisabled: !Nt,
303
+ isNextPageDisabled: !Mt,
304
+ pageSize: M,
305
+ pageSizeOptions: ze,
306
+ rangeLabel: Vt,
305
307
  onPageSizeChange: (e) => {
306
- ut(e), M(void 0), P(0);
308
+ _t(e), j(void 0), N(0);
307
309
  },
308
- autoFocusRowKey: pt,
310
+ autoFocusRowKey: bt,
309
311
  onPreviousPageClick: () => {
310
- M(Et ?? void 0), P((e) => Math.max(0, e - 1));
312
+ j(Nt ?? void 0), N((e) => Math.max(0, e - 1));
311
313
  },
312
314
  onNextPageClick: () => {
313
- M(Tt ?? void 0), P((e) => e + 1);
315
+ j(Mt ?? void 0), N((e) => e + 1);
314
316
  },
315
- onInviteClick: Ct ? G.openInviteForm : void 0,
316
- labels: r
317
+ onInviteClick: At ? W.openInviteForm : void 0,
318
+ labels: i
317
319
  })
318
320
  })
319
321
  }),
320
- /* @__PURE__ */ d(o, {
321
- open: q.isDeactivateOpen,
322
- icon: /* @__PURE__ */ d(Me, {
322
+ /* @__PURE__ */ f(s, {
323
+ open: K.isDeactivateOpen,
324
+ icon: /* @__PURE__ */ f(Pe, {
323
325
  "aria-hidden": !0,
324
326
  className: "ttw:size-6"
325
327
  }),
326
- title: h.deactivateDialogTitle,
327
- description: h.deactivateDialogDescription,
328
- subjectName: q.deactivateMemberName,
329
- subjectDetail: q.deactivateMemberEmail,
330
- confirmButtonLabel: h.deactivateConfirmButton,
331
- errorMessage: q.deactivateErrorMessage,
332
- isConfirming: q.isDeactivating,
333
- onOpenChange: q.onDeactivateOpenChange,
334
- onConfirm: q.onDeactivateConfirm,
335
- labels: r
328
+ title: g.deactivateDialogTitle,
329
+ description: g.deactivateDialogDescription,
330
+ subjectName: K.deactivateMemberName,
331
+ subjectDetail: K.deactivateMemberEmail,
332
+ confirmButtonLabel: g.deactivateConfirmButton,
333
+ errorMessage: K.deactivateErrorMessage,
334
+ isConfirming: K.isDeactivating,
335
+ onOpenChange: K.onDeactivateOpenChange,
336
+ onConfirm: K.onDeactivateConfirm,
337
+ labels: i
336
338
  }),
337
- /* @__PURE__ */ d(o, {
338
- open: q.isResendOpen,
339
- icon: /* @__PURE__ */ d(Pe, {
339
+ /* @__PURE__ */ f(s, {
340
+ open: K.isResendOpen,
341
+ icon: /* @__PURE__ */ f(Ie, {
340
342
  "aria-hidden": !0,
341
343
  className: "ttw:size-6"
342
344
  }),
343
- title: h.resendDialogTitle,
344
- description: h.resendDialogDescription,
345
- subjectName: q.resendMemberName,
346
- subjectDetail: q.resendMemberEmail,
347
- confirmButtonLabel: h.resendConfirmButton,
345
+ title: g.resendDialogTitle,
346
+ description: g.resendDialogDescription,
347
+ subjectName: K.resendMemberName,
348
+ subjectDetail: K.resendMemberEmail,
349
+ confirmButtonLabel: g.resendConfirmButton,
348
350
  confirmVariant: "default",
349
- errorMessage: q.resendErrorMessage,
350
- isConfirming: q.isResending,
351
- onOpenChange: q.onResendOpenChange,
352
- onConfirm: q.onResendConfirm,
353
- labels: r
351
+ errorMessage: K.resendErrorMessage,
352
+ isConfirming: K.isResending,
353
+ onOpenChange: K.onResendOpenChange,
354
+ onConfirm: K.onResendConfirm,
355
+ labels: i
354
356
  })
355
357
  ] });
356
358
  }
357
- function h({ baseUrl: e, widgetToken: t, organizationId: ee, configClient: n, gatewayRouting: te, linkComponent: ne, implementation: re, uiFramework: ie, errorFallback: ae, onError: oe, analytics: a, disclosuresAcceptance: se, providerLabels: ce, ...le }) {
358
- return /* @__PURE__ */ d(r, {
359
- widgetName: i,
359
+ function g({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: t, gatewayRouting: n, linkComponent: r, implementation: ne, uiFramework: re, errorFallback: ie, onError: ae, analytics: oe, disclosuresAcceptance: se, providerLabels: a, ...ce }) {
360
+ return /* @__PURE__ */ f(i, {
361
+ widgetName: o,
360
362
  baseUrl: e,
361
- widgetToken: t,
362
- organizationId: ee,
363
- configClient: n,
364
- gatewayRouting: te,
365
- linkComponent: ne,
366
- implementation: re,
367
- uiFramework: ie,
368
- errorFallback: ae,
369
- onError: oe,
370
- analytics: a,
363
+ widgetToken: ee,
364
+ organizationId: te,
365
+ configClient: t,
366
+ gatewayRouting: n,
367
+ linkComponent: r,
368
+ implementation: ne,
369
+ uiFramework: re,
370
+ errorFallback: ie,
371
+ onError: ae,
372
+ analytics: oe,
371
373
  disclosuresAcceptance: se,
372
- providerLabels: ce,
373
- children: /* @__PURE__ */ d(m, { ...le })
374
+ providerLabels: a,
375
+ children: /* @__PURE__ */ f(h, { ...ce })
374
376
  });
375
377
  }
376
378
  //#endregion
377
- export { h as TeamWidget, h as default };
379
+ export { g as TeamWidget, g as default };