@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.
- package/README.md +21 -21
- package/dist/index.d.ts +23 -2
- package/dist/index.js +1 -1
- package/dist/lib/ReceivablesWidget.d.ts +23 -2
- package/dist/lib/ReceivablesWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balances-widget/feature/dist/index3.js +41 -39
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/feature/dist/index9.js +150 -147
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/data-access/dist/index5.js +46 -51
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index7.js +130 -128
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index18.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index21.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index22.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index4.js +36 -37
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-upload/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index2.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index13.js +154 -150
- package/dist/libs/tesouro-embedded-components-react/cards-widget/create-card/data-access/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index9.js +151 -149
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index2.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index15.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index17.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index8.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index24.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index27.js +89 -87
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index5.js +133 -130
- package/dist/libs/tesouro-embedded-components-react/insights-widget/feature/dist/index8.js +36 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +50 -36
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +51 -32
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +20 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +17 -202
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +220 -31
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +32 -145
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +126 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +145 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +46 -58
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +113 -87
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +58 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +98 -225
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +111 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index25.js +225 -462
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index26.js +34 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index27.js +627 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index28.js +39 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index29.js +34 -112
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index30.js +75 -310
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index31.js +124 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index32.js +324 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +20 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index8.js +56 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +33 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +184 -162
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index4.js +1 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +78 -69
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +209 -207
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index4.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index5.js +10 -5
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/data-access/dist/index6.js +11 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/invoice-settings/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/profile/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index12.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index14.js +30 -28
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js +28 -26
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js +37 -34
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +294 -292
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js +58 -58
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/data-access/dist/lib/approvalPoliciesApi.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index5.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/data-access/dist/index7.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +20 -19
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +40 -39
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/EmbedApiContext.js +14 -13
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/allPages.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/applicationStatusQueryOptions.js +16 -15
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/debit-card/useAllDebitCardsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/disclosures/useDisclosuresQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/merchant-category-group/useAllMerchantCategoryGroupsQuery.js +28 -29
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/organizationStatus.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/useLedgerAccountsQuery.js +26 -27
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/reference-data/usePaymentTermsQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js +210 -199
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/sdk.gen.js +60 -52
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useAllOrganizationRolesQuery.js +31 -32
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/role/useRolePermissionsQueries.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useCurrentUserQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useGetUserDataQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMailboxAddress.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/useMyEntityQuery.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js +33 -34
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/withAuthEpoch.js +33 -22
- package/dist/libs/tesouro-embedded-components-react/shared/expense-requirements/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +43 -32
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +138 -127
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/deriveOrganizationStatus.js +6 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/useWidgetFetch.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index10.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index2.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/data-access/dist/index9.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/data-access/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/feature/dist/index6.js +60 -58
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js
CHANGED
|
@@ -2,376 +2,378 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
|
11
|
+
import { EmbeddedToaster as ne } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
10
12
|
import "../../../../shared/ui/dist/index.js";
|
|
11
|
-
import { useAnalyticsTrack as
|
|
12
|
-
import { WidgetProvider as
|
|
13
|
-
import { useWidgetConfig as
|
|
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
|
|
16
|
-
import { TeamWidgetAnalyticsEvent as
|
|
17
|
-
import { useRolesQuery as
|
|
18
|
-
import { useTeamMembersQuery as
|
|
19
|
-
import { useAllTeamMembersQuery as
|
|
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
|
|
22
|
-
import { isMemberActionable as
|
|
23
|
-
import { useInviteForm as
|
|
24
|
-
import { useLocationsAdmin as
|
|
25
|
-
import { useMemberAccountAccess as
|
|
26
|
-
import { canEditMemberProfile as
|
|
27
|
-
import { useTeamActions as
|
|
28
|
-
import { InviteTeamMemberForm as
|
|
29
|
-
import { EditTeamMemberPanel as
|
|
30
|
-
import { GroupAdminDrawer as
|
|
31
|
-
import { GroupAdminPanel as
|
|
32
|
-
import { TeamActionDialog as
|
|
33
|
-
import { TeamMembersTable as
|
|
34
|
-
import { TeamMemberDetails as
|
|
35
|
-
import { TeamTabs as
|
|
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
|
|
38
|
-
import { Fragment as
|
|
39
|
-
import { Ban as
|
|
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
|
|
43
|
+
var ze = [
|
|
42
44
|
5,
|
|
43
45
|
10,
|
|
44
46
|
25
|
|
45
|
-
],
|
|
46
|
-
function
|
|
47
|
-
let
|
|
48
|
-
...
|
|
49
|
-
...
|
|
50
|
-
}), [
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}, [
|
|
54
|
-
let { organizationId:
|
|
55
|
-
canRead: x &&
|
|
56
|
-
canWrite:
|
|
57
|
-
featureLabels:
|
|
58
|
-
}),
|
|
59
|
-
canRead: x &&
|
|
60
|
-
canWrite:
|
|
61
|
-
featureLabels:
|
|
62
|
-
}),
|
|
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:
|
|
67
|
+
label: g.teamMembersTab
|
|
66
68
|
},
|
|
67
69
|
{
|
|
68
70
|
id: "departments",
|
|
69
|
-
label:
|
|
71
|
+
label: g.departmentsTab
|
|
70
72
|
},
|
|
71
73
|
{
|
|
72
74
|
id: "locations",
|
|
73
|
-
label:
|
|
75
|
+
label: g.locationsTab
|
|
74
76
|
}
|
|
75
|
-
], [
|
|
76
|
-
Limit:
|
|
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:
|
|
80
|
+
PaginationToken: gt,
|
|
79
81
|
enabled: S
|
|
80
|
-
}),
|
|
81
|
-
organizationId:
|
|
82
|
-
organizationTypes:
|
|
83
|
-
}), [
|
|
84
|
-
let e =
|
|
85
|
-
return
|
|
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
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
]),
|
|
92
|
-
canInvite:
|
|
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:
|
|
95
|
-
canReadInternalAccounts:
|
|
96
|
-
canReadExternalAccounts:
|
|
97
|
-
canGrantDebitCardAccess:
|
|
98
|
-
roles:
|
|
99
|
-
roleCatalog:
|
|
100
|
-
organizationId:
|
|
101
|
-
featureLabels:
|
|
102
|
-
acceptInviteRedirectUri:
|
|
103
|
-
}),
|
|
104
|
-
canEditAnyProfile:
|
|
105
|
-
canEditOrgProfile:
|
|
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:
|
|
110
|
+
canEditRole: jt,
|
|
109
111
|
canReadDirectory: x,
|
|
110
|
-
canManageAccountAccess:
|
|
111
|
-
canReadInternalAccounts:
|
|
112
|
-
canReadExternalAccounts:
|
|
113
|
-
members:
|
|
114
|
-
roles:
|
|
115
|
-
allRoles:
|
|
116
|
-
roleCatalog:
|
|
117
|
-
featureLabels:
|
|
118
|
-
}),
|
|
119
|
-
canDeactivate:
|
|
120
|
-
canResendInvite:
|
|
121
|
-
members:
|
|
122
|
-
featureLabels:
|
|
123
|
-
acceptInviteRedirectUri:
|
|
124
|
-
}),
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
]),
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}, [
|
|
135
|
-
let
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}, [
|
|
139
|
-
let
|
|
140
|
-
member:
|
|
141
|
-
organizationId:
|
|
142
|
-
canEditAnyProfile:
|
|
143
|
-
canEditOrgProfile:
|
|
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
|
-
})),
|
|
146
|
-
member:
|
|
147
|
-
organizationId:
|
|
148
|
-
canEditRole:
|
|
147
|
+
})), Ut = !!(q && we({
|
|
148
|
+
member: q,
|
|
149
|
+
organizationId: v,
|
|
150
|
+
canEditRole: jt,
|
|
149
151
|
currentUserId: y
|
|
150
|
-
})),
|
|
151
|
-
selectedMember:
|
|
152
|
-
canReadInternalAccounts:
|
|
153
|
-
canReadExternalAccounts:
|
|
154
|
-
featureLabels:
|
|
155
|
-
allRoles:
|
|
156
|
-
}), $ =
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
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__ */
|
|
163
|
-
/* @__PURE__ */
|
|
164
|
-
|
|
165
|
-
open:
|
|
166
|
-
memberName:
|
|
167
|
-
memberEmail:
|
|
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:
|
|
171
|
+
avatarSeed: q?.email,
|
|
170
172
|
roleBadgeLabel: $?.roleCardTitle,
|
|
171
173
|
statusLabel: $?.statusLabel,
|
|
172
174
|
statusTone: $?.statusTone,
|
|
173
175
|
lastSignInLabel: $?.lastSignInLabel,
|
|
174
|
-
form:
|
|
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
|
-
|
|
234
|
-
|
|
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
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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__ */
|
|
248
|
-
tabs:
|
|
249
|
-
activeTabId:
|
|
250
|
-
onTabChange:
|
|
251
|
-
children:
|
|
252
|
-
/* @__PURE__ */
|
|
253
|
-
icon: /* @__PURE__ */
|
|
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__ */
|
|
257
|
-
/* @__PURE__ */
|
|
280
|
+
/* @__PURE__ */ f(ke, { ...A.drawer }),
|
|
281
|
+
/* @__PURE__ */ f(s, {
|
|
258
282
|
open: A.deleteDialog.open,
|
|
259
|
-
icon: /* @__PURE__ */
|
|
283
|
+
icon: /* @__PURE__ */ f(Re, {
|
|
260
284
|
"aria-hidden": !0,
|
|
261
285
|
className: "ttw:size-6"
|
|
262
286
|
}),
|
|
263
|
-
title:
|
|
264
|
-
description:
|
|
287
|
+
title: g.locationDeleteDialogTitle,
|
|
288
|
+
description: g.locationDeleteDialogDescription,
|
|
265
289
|
subjectName: A.deleteDialog.subjectName,
|
|
266
|
-
confirmButtonLabel:
|
|
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:
|
|
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__ */
|
|
296
|
-
rows:
|
|
297
|
-
isLoading: !
|
|
298
|
-
isError:
|
|
299
|
-
showPagination: S &&
|
|
300
|
-
isPreviousPageDisabled: !
|
|
301
|
-
isNextPageDisabled: !
|
|
302
|
-
pageSize:
|
|
303
|
-
pageSizeOptions:
|
|
304
|
-
rangeLabel:
|
|
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
|
-
|
|
308
|
+
_t(e), j(void 0), N(0);
|
|
307
309
|
},
|
|
308
|
-
autoFocusRowKey:
|
|
310
|
+
autoFocusRowKey: bt,
|
|
309
311
|
onPreviousPageClick: () => {
|
|
310
|
-
|
|
312
|
+
j(Nt ?? void 0), N((e) => Math.max(0, e - 1));
|
|
311
313
|
},
|
|
312
314
|
onNextPageClick: () => {
|
|
313
|
-
|
|
315
|
+
j(Mt ?? void 0), N((e) => e + 1);
|
|
314
316
|
},
|
|
315
|
-
onInviteClick:
|
|
316
|
-
labels:
|
|
317
|
+
onInviteClick: At ? W.openInviteForm : void 0,
|
|
318
|
+
labels: i
|
|
317
319
|
})
|
|
318
320
|
})
|
|
319
321
|
}),
|
|
320
|
-
/* @__PURE__ */
|
|
321
|
-
open:
|
|
322
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
327
|
-
description:
|
|
328
|
-
subjectName:
|
|
329
|
-
subjectDetail:
|
|
330
|
-
confirmButtonLabel:
|
|
331
|
-
errorMessage:
|
|
332
|
-
isConfirming:
|
|
333
|
-
onOpenChange:
|
|
334
|
-
onConfirm:
|
|
335
|
-
labels:
|
|
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__ */
|
|
338
|
-
open:
|
|
339
|
-
icon: /* @__PURE__ */
|
|
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:
|
|
344
|
-
description:
|
|
345
|
-
subjectName:
|
|
346
|
-
subjectDetail:
|
|
347
|
-
confirmButtonLabel:
|
|
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:
|
|
350
|
-
isConfirming:
|
|
351
|
-
onOpenChange:
|
|
352
|
-
onConfirm:
|
|
353
|
-
labels:
|
|
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
|
|
358
|
-
return /* @__PURE__ */
|
|
359
|
-
widgetName:
|
|
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:
|
|
362
|
-
organizationId:
|
|
363
|
-
configClient:
|
|
364
|
-
gatewayRouting:
|
|
365
|
-
linkComponent:
|
|
366
|
-
implementation:
|
|
367
|
-
uiFramework:
|
|
368
|
-
errorFallback:
|
|
369
|
-
onError:
|
|
370
|
-
analytics:
|
|
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:
|
|
373
|
-
children: /* @__PURE__ */
|
|
374
|
+
providerLabels: a,
|
|
375
|
+
children: /* @__PURE__ */ f(h, { ...ce })
|
|
374
376
|
});
|
|
375
377
|
}
|
|
376
378
|
//#endregion
|
|
377
|
-
export {
|
|
379
|
+
export { g as TeamWidget, g as default };
|