@tesouro/embedded-components-react 0.5.19 → 0.5.23
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/dist/index.js +1 -1
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index41.js +4 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index42.js +78 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +98 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +3 -49
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index45.js +47 -136
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +136 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +33 -187
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +188 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index49.js +75 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index50.js +22 -232
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index51.js +223 -210
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index52.js +202 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index53.js +126 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index54.js +12 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index55.js +47 -53
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +49 -202
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index57.js +202 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index58.js +32 -234
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +240 -19
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index60.js +19 -434
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +436 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index62.js +4 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index63.js +35 -231
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +233 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index65.js +3 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index66.js +2 -44
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index67.js +46 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +6 -10
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +10 -110
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index71.js +112 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index72.js +3 -127
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +124 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index74.js +8 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +8 -46
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index76.js +43 -18
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index77.js +20 -28
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index78.js +27 -82
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index79.js +83 -47
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index80.js +47 -250
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index81.js +239 -104
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index82.js +110 -206
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index83.js +213 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index84.js +4 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index85.js +6 -113
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index86.js +115 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index87.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index88.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +10 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +16 -20
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +21 -12
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index19.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index20.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +140 -139
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +139 -134
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index10.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index11.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index12.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index13.js +24 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index14.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index15.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index16.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index17.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index18.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index19.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index20.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index21.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index22.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index23.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index3.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js +29 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index7.js +7 -7
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index8.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/data-access/dist/index9.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index10.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index11.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index12.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index14.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index15.js +8 -8
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index16.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index17.js +11 -11
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index2.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index3.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index7.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index8.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index10.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index11.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index12.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index13.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index14.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index15.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index16.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index17.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index18.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index3.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index4.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index5.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index6.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index8.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/rest/zod.gen.js +12 -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/widget-suite/feature/dist/index8.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index11.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index13.js +0 -24
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index2.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index4.js +0 -29
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index5.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/data-access/dist/index6.js +0 -10
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index2.js +0 -9
- /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{team-widget → settings-widget/team}/ui/dist/index.js +0 -0
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { listDepartments as n } from "
|
|
8
|
-
import { listDepartmentsOptions as r } from "
|
|
9
|
-
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "
|
|
10
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { listDepartments as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { listDepartmentsOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { useMemo as o } from "react";
|
|
12
12
|
import { useInfiniteQuery as s } from "@tanstack/react-query";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index17.js
|
|
14
14
|
var c = 100;
|
|
15
15
|
function l({ enabled: l } = {}) {
|
|
16
16
|
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f) && (l === !0 || l === void 0), g = r({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { getDepartment as n } from "
|
|
8
|
-
import { getDepartmentOptions as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getDepartment as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getDepartmentOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useEffect as i, useMemo as a } from "react";
|
|
11
11
|
import { useInfiniteQuery as o } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index18.js
|
|
13
13
|
var s = 100;
|
|
14
14
|
function c({ departmentId: c, enabled: l }) {
|
|
15
15
|
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f && c) && (l === !0 || l === void 0), g = r({
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { bulkUpdateDepartmentMembers as r, createDepartment as i, deactivateDepartment as a, updateDepartment as o } from "
|
|
9
|
-
import { getDepartmentQueryKey as s } from "
|
|
10
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { bulkUpdateDepartmentMembers as r, createDepartment as i, deactivateDepartment as a, updateDepartment as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import { getDepartmentQueryKey as s } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { teamMembersInvalidationKey as c } from "./index2.js";
|
|
12
12
|
import { departmentsInvalidationKey as l } from "./index5.js";
|
|
13
13
|
import { useMutation as u } from "@tanstack/react-query";
|
|
14
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
14
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index19.js
|
|
15
15
|
async function d(t) {
|
|
16
16
|
await Promise.all([e(l(t)), e(c(t))]);
|
|
17
17
|
}
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { getUsersQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index2.js
|
|
5
|
+
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
+
client: n,
|
|
7
|
+
headers: e(r)
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as teamMembersInvalidationKey };
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { listLocations as n } from "
|
|
8
|
-
import { listLocationsOptions as r } from "
|
|
9
|
-
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "
|
|
10
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { listLocations as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { listLocationsOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import { getAllPagesNextPageParam as i, useAutoFetchNextPage as a } from "../../../../shared/data-access/dist/lib/allPages.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { useMemo as o } from "react";
|
|
12
12
|
import { useInfiniteQuery as s } from "@tanstack/react-query";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index21.js
|
|
14
14
|
var c = 100;
|
|
15
15
|
function l({ enabled: l } = {}) {
|
|
16
16
|
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f) && (l === !0 || l === void 0), g = r({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useEmbedApi as e } from "
|
|
6
|
-
import { organizationHeaders as t } from "
|
|
7
|
-
import { getLocation as n } from "
|
|
8
|
-
import { getLocationOptions as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { useEmbedApi as e } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
6
|
+
import { organizationHeaders as t } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
7
|
+
import { getLocation as n } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
8
|
+
import { getLocationOptions as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useEffect as i, useMemo as a } from "react";
|
|
11
11
|
import { useInfiniteQuery as o } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index22.js
|
|
13
13
|
var s = 100;
|
|
14
14
|
function c({ locationId: c, enabled: l }) {
|
|
15
15
|
let { client: u, organizationId: d, widgetToken: f, authEpoch: p } = e(), m = t(d), h = !!(d && f && c) && (l === !0 || l === void 0), g = r({
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { bulkUpdateLocationMembers as r, createLocation as i, deactivateLocation as a, updateLocation as o } from "
|
|
9
|
-
import { getLocationQueryKey as s } from "
|
|
10
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { bulkUpdateLocationMembers as r, createLocation as i, deactivateLocation as a, updateLocation as o } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import { getLocationQueryKey as s } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { teamMembersInvalidationKey as c } from "./index2.js";
|
|
12
12
|
import { locationsInvalidationKey as l } from "./index6.js";
|
|
13
13
|
import { useMutation as u } from "@tanstack/react-query";
|
|
14
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
14
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index23.js
|
|
15
15
|
async function d(t) {
|
|
16
16
|
await Promise.all([e(l(t)), e(c(t))]);
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { organizationHeaders as e } from "
|
|
2
|
-
import { getBankAccountAccessQueryKey as t, getExternalBankAccountAccessQueryKey as n } from "
|
|
3
|
-
import "
|
|
4
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { getBankAccountAccessQueryKey as t, getExternalBankAccountAccessQueryKey as n } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index3.js
|
|
5
5
|
var r = ({ client: n, organizationId: r, bankAccountId: i }) => t({
|
|
6
6
|
client: n,
|
|
7
7
|
headers: e(r),
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
"use client";
|
|
4
|
+
"use client";
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { disableUserMutation as r } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { teamMembersInvalidationKey as i } from "./index2.js";
|
|
11
|
+
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index4.js
|
|
13
|
+
function o() {
|
|
14
|
+
let { client: o, organizationId: s } = t(), c = r({
|
|
15
|
+
client: o,
|
|
16
|
+
headers: n(s)
|
|
17
|
+
});
|
|
18
|
+
return a({
|
|
19
|
+
...c,
|
|
20
|
+
onSuccess: async (...t) => {
|
|
21
|
+
await e(i({
|
|
22
|
+
client: o,
|
|
23
|
+
organizationId: s
|
|
24
|
+
})), await c.onSuccess?.(...t);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as useDeactivateTeamMemberMutation };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { listDepartmentsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index5.js
|
|
5
|
+
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
+
client: n,
|
|
7
|
+
headers: e(r)
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as departmentsInvalidationKey };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { organizationHeaders as e } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
2
|
+
import { listLocationsQueryKey as t } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
3
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
4
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index6.js
|
|
5
|
+
var n = ({ client: n, organizationId: r }) => t({
|
|
6
|
+
client: n,
|
|
7
|
+
headers: e(r)
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as locationsInvalidationKey };
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { bulkUpdateDepartmentMembers as r, bulkUpdateLocationMembers as i, bulkUpdateRoleMembers as a, createUser as o, manageBankAccountAccess as s, updateUser as c } from "
|
|
9
|
-
import { getDepartmentQueryKey as l, getLocationQueryKey as u } from "
|
|
10
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { bulkUpdateDepartmentMembers as r, bulkUpdateLocationMembers as i, bulkUpdateRoleMembers as a, createUser as o, manageBankAccountAccess as s, updateUser as c } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import { getDepartmentQueryKey as l, getLocationQueryKey as u } from "../../../../shared/data-access/dist/lib/rest/@tanstack/react-query.gen.js";
|
|
10
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
11
11
|
import { teamMembersInvalidationKey as d } from "./index2.js";
|
|
12
12
|
import { accountAccessInvalidationKeyForSource as f } from "./index3.js";
|
|
13
13
|
import { departmentsInvalidationKey as p } from "./index5.js";
|
|
14
14
|
import { locationsInvalidationKey as m } from "./index6.js";
|
|
15
15
|
import { useRef as h } from "react";
|
|
16
16
|
import { useMutation as g } from "@tanstack/react-query";
|
|
17
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
17
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index7.js
|
|
18
18
|
function _(e) {
|
|
19
19
|
return e.map((e) => `${e.source}:${e.bankAccountId}`).sort().join(",");
|
|
20
20
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { createUser as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { createUser as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { teamMembersInvalidationKey as i } from "./index2.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index8.js
|
|
13
13
|
function o() {
|
|
14
14
|
let { client: o, organizationId: s } = t(), c = n(s);
|
|
15
15
|
return a({
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { invalidateAllClients as e } from "
|
|
6
|
-
import { useEmbedApi as t } from "
|
|
7
|
-
import { organizationHeaders as n } from "
|
|
8
|
-
import { manageBankAccountAccess as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { invalidateAllClients as e } from "../../../../shared/data-access/dist/lib/clientRegistry.js";
|
|
6
|
+
import { useEmbedApi as t } from "../../../../shared/data-access/dist/lib/EmbedApiContext.js";
|
|
7
|
+
import { organizationHeaders as n } from "../../../../shared/data-access/dist/lib/organizationHeaders.js";
|
|
8
|
+
import { manageBankAccountAccess as r } from "../../../../shared/data-access/dist/lib/rest/sdk.gen.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { accountAccessInvalidationKeyForSource as i } from "./index3.js";
|
|
11
11
|
import { useMutation as a } from "@tanstack/react-query";
|
|
12
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
12
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/data-access/dist/index9.js
|
|
13
13
|
async function o({ client: t, organizationId: n, accounts: r }) {
|
|
14
14
|
await Promise.all(r.map((r) => e(i({
|
|
15
15
|
client: t,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BookText as e, Crown as t, Eye as n, FileText as r, Settings2 as i, User as a, UserCog as o, UserPlus as s, UserStar as c } from "lucide-react";
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index10.js
|
|
3
3
|
var l = {
|
|
4
4
|
crown: t,
|
|
5
5
|
eye: n,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { getInitials as e } from "
|
|
2
|
-
import { filterRolesForOrganization as t, isRoleVisibleForOrganization as n } from "
|
|
3
|
-
import { sortRolesBySortOrdinal as r } from "
|
|
1
|
+
import { getInitials as e } from "../../../../shared/util/dist/lib/getInitials.js";
|
|
2
|
+
import { filterRolesForOrganization as t, isRoleVisibleForOrganization as n } from "../../../../../shared/util-validation/dist/index6.js";
|
|
3
|
+
import { sortRolesBySortOrdinal as r } from "../../../../../shared/util-validation/dist/index23.js";
|
|
4
4
|
import { bareRoleKey as i, resolveOrganizationRoleDescription as a, resolveOrganizationRoleDisplayName as o, resolveOrganizationRoleIcon as s, resolveOrganizationRoleKeyForUser as c, rolesForMemberOrganization as l, stripRoleNamespace as u, toRoleDisplayOptions as d } from "./index9.js";
|
|
5
5
|
import { roleIconForKey as f } from "./index10.js";
|
|
6
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
6
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index11.js
|
|
7
7
|
function p(e) {
|
|
8
8
|
let t = e.status?.trim().toUpperCase() ?? "";
|
|
9
9
|
return !!e.key?.trim() && (t === "ACTIVE" || t === "");
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "
|
|
6
|
-
import { useAllBankAccountsQuery as t } from "
|
|
7
|
-
import { useAllExternalBankAccountsQuery as n } from "
|
|
8
|
-
import { useRolePermissionsQueries as r } from "
|
|
9
|
-
import "
|
|
10
|
-
import "
|
|
11
|
-
import { useAnalyticsTrack as i } from "
|
|
12
|
-
import "
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { useAllBankAccountsQuery as t } from "../../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
7
|
+
import { useAllExternalBankAccountsQuery as n } from "../../../../shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
8
|
+
import { useRolePermissionsQueries as r } from "../../../../shared/data-access/dist/lib/role/useRolePermissionsQueries.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import "../../../../shared/ui/dist/index.js";
|
|
11
|
+
import { useAnalyticsTrack as i } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
12
|
+
import "../../../../shared/feature/dist/index.js";
|
|
13
13
|
import { TeamWidgetAnalyticsEvent as ee } from "./index2.js";
|
|
14
14
|
import { useInviteUserMutation as a } from "../../data-access/dist/index7.js";
|
|
15
15
|
import { useAllTeamMembersQuery as o } from "../../data-access/dist/index14.js";
|
|
@@ -20,7 +20,7 @@ import { toNamedSelectOptions as c, toReportingManagerOptions as ne, toRoleCardO
|
|
|
20
20
|
import { isAccountsSectionVisibleForRole as ie, isAdminPermissionSet as ae, isEmployeePermissionSet as l, toAccountAccessInputs as oe, toAccountAccessOptions as se } from "./index7.js";
|
|
21
21
|
import { resolveAcceptInviteRedirectUri as u } from "./index8.js";
|
|
22
22
|
import { useMemo as d, useState as f } from "react";
|
|
23
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
23
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index12.js
|
|
24
24
|
var p = {
|
|
25
25
|
name: "",
|
|
26
26
|
email: "",
|
|
@@ -10,7 +10,7 @@ import { useLocationMembersQuery as a } from "../../data-access/dist/index22.js"
|
|
|
10
10
|
import { useCreateLocationMutation as o, useDeactivateLocationMutation as s, useLocationMembersMutation as c, useUpdateLocationMutation as l } from "../../data-access/dist/index23.js";
|
|
11
11
|
import "../../data-access/dist/index.js";
|
|
12
12
|
import { useMemo as u } from "react";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index13.js
|
|
14
14
|
function d({ canRead: d, canWrite: f, featureLabels: p }) {
|
|
15
15
|
let m = r({
|
|
16
16
|
Status: "ALL",
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useAllBankAccountsQuery as e } from "
|
|
6
|
-
import { useAllExternalBankAccountsQuery as t } from "
|
|
7
|
-
import { useRolePermissionsQueries as n } from "
|
|
8
|
-
import { useAllOrganizationUsersQuery as r } from "
|
|
9
|
-
import "
|
|
5
|
+
import { useAllBankAccountsQuery as e } from "../../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
6
|
+
import { useAllExternalBankAccountsQuery as t } from "../../../../shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
7
|
+
import { useRolePermissionsQueries as n } from "../../../../shared/data-access/dist/lib/role/useRolePermissionsQueries.js";
|
|
8
|
+
import { useAllOrganizationUsersQuery as r } from "../../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
10
|
import { useUserBankAccountAccessQuery as i } from "../../data-access/dist/index10.js";
|
|
11
11
|
import "../../data-access/dist/index.js";
|
|
12
12
|
import { isMemberInvited as a, resolveMemberRoleId as o } from "./index11.js";
|
|
13
13
|
import { ACCOUNT_ACCESS_ADMIN_PERMISSION_KEY as s, formatAccountAccessLabel as c, isAdminPermissionSet as l, toAccountAccessOptions as u } from "./index7.js";
|
|
14
14
|
import { useMemo as d } from "react";
|
|
15
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
15
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index14.js
|
|
16
16
|
function f({ selectedMember: f, canReadInternalAccounts: p, canReadExternalAccounts: m, featureLabels: h, allRoles: g }) {
|
|
17
17
|
let _ = p && m, v = f?.id, y = !!f && _, b = e({ enabled: y && p }), x = t({ enabled: y && m }), S = a(f), C = o(g, f?.role) ?? "", w = n({
|
|
18
18
|
roleIds: C ? [C] : [],
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { useAllBankAccountsQuery as e } from "
|
|
6
|
-
import { useAllExternalBankAccountsQuery as t } from "
|
|
7
|
-
import { useRolePermissionsQueries as n } from "
|
|
8
|
-
import { useAllOrganizationUsersQuery as r } from "
|
|
9
|
-
import "
|
|
10
|
-
import { useAnalyticsTrack as i } from "
|
|
11
|
-
import "
|
|
5
|
+
import { useAllBankAccountsQuery as e } from "../../../../shared/data-access/dist/lib/bank-account/useAllBankAccountsQuery.js";
|
|
6
|
+
import { useAllExternalBankAccountsQuery as t } from "../../../../shared/data-access/dist/lib/external-bank-account/useAllExternalBankAccountsQuery.js";
|
|
7
|
+
import { useRolePermissionsQueries as n } from "../../../../shared/data-access/dist/lib/role/useRolePermissionsQueries.js";
|
|
8
|
+
import { useAllOrganizationUsersQuery as r } from "../../../../shared/data-access/dist/lib/user/useAllOrganizationUsersQuery.js";
|
|
9
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
10
|
+
import { useAnalyticsTrack as i } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
11
|
+
import "../../../../shared/feature/dist/index.js";
|
|
12
12
|
import { TeamWidgetAnalyticsEvent as ee } from "./index2.js";
|
|
13
13
|
import { useManageBankAccountAccessMutation as a } from "../../data-access/dist/index9.js";
|
|
14
14
|
import { useUserBankAccountAccessQuery as o } from "../../data-access/dist/index10.js";
|
|
@@ -20,7 +20,7 @@ import "../../data-access/dist/index.js";
|
|
|
20
20
|
import { isMemberActionable as ae, isMemberInvited as oe, resolveMemberRoleId as se, toNamedSelectOptions as ce, toReportingManagerOptions as le, toRoleCardOptions as ue } from "./index11.js";
|
|
21
21
|
import { ACCOUNT_ACCESS_ADMIN_PERMISSION_KEY as de, ACCOUNT_ACCESS_VISIBILITY_PERMISSION_KEYS as fe, isAdminPermissionSet as pe, isEmployeePermissionSet as me, toAccountAccessInputs as he, toAccountAccessOptions as ge } from "./index7.js";
|
|
22
22
|
import { useCallback as _e, useEffect as ve, useMemo as s, useState as c } from "react";
|
|
23
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
23
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index15.js
|
|
24
24
|
var ye = {
|
|
25
25
|
name: "",
|
|
26
26
|
role: "",
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { toast as e } from "
|
|
6
|
-
import "
|
|
7
|
-
import { useAnalyticsTrack as t } from "
|
|
8
|
-
import "
|
|
5
|
+
import { toast as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import "../../../../shared/ui/dist/index.js";
|
|
7
|
+
import { useAnalyticsTrack as t } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
8
|
+
import "../../../../shared/feature/dist/index.js";
|
|
9
9
|
import { TeamWidgetAnalyticsEvent as n } from "./index2.js";
|
|
10
10
|
import { useDeactivateTeamMemberMutation as r } from "../../data-access/dist/index4.js";
|
|
11
11
|
import { useResendInviteMutation as i } from "../../data-access/dist/index8.js";
|
|
@@ -13,7 +13,7 @@ import "../../data-access/dist/index.js";
|
|
|
13
13
|
import { isMemberActionable as a, isMemberInvited as o } from "./index11.js";
|
|
14
14
|
import { resolveAcceptInviteRedirectUri as s } from "./index8.js";
|
|
15
15
|
import { useEffect as c, useState as l } from "react";
|
|
16
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
16
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js
|
|
17
17
|
function u({ members: e, canPerform: t, onOpen: n, isEligible: r }) {
|
|
18
18
|
let [i, o] = l(), s = i ? e.find((e) => e.id === i) : void 0, u = s && a(s) && (r?.(s) ?? !0) ? s : void 0, d = !!i && !u;
|
|
19
19
|
return c(() => {
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { hasAnyScope as e } from "
|
|
6
|
-
import { Scope as t } from "
|
|
7
|
-
import { useAllOrganizationRolesQuery as ee } from "
|
|
8
|
-
import "
|
|
9
|
-
import { EmbeddedToaster as n } from "
|
|
10
|
-
import "
|
|
11
|
-
import { useAnalyticsTrack as te } from "
|
|
12
|
-
import { WidgetProvider as r } from "
|
|
13
|
-
import { useWidgetConfig as ne, useWidgetError as re, useWidgetLoading as ie } from "
|
|
14
|
-
import "
|
|
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";
|
|
8
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
9
|
+
import { EmbeddedToaster as n } from "../../../../shared/ui/dist/lib/EmbeddedToaster.js";
|
|
10
|
+
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";
|
|
14
|
+
import "../../../../shared/feature/dist/index.js";
|
|
15
15
|
import { DEFAULT_FEATURE_LABELS as ae } from "./index3.js";
|
|
16
16
|
import { TeamWidgetAnalyticsEvent as oe, WIDGET_NAME as i } from "./index2.js";
|
|
17
17
|
import { useRolesQuery as a } from "../../data-access/dist/index12.js";
|
|
@@ -37,7 +37,7 @@ import "../../ui/dist/index.js";
|
|
|
37
37
|
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
38
38
|
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
39
39
|
import { Ban as Me, Building2 as Ne, MailIcon as Pe, MapPin as Fe, Trash2 as Ie } from "lucide-react";
|
|
40
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
40
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js
|
|
41
41
|
var Le = [
|
|
42
42
|
5,
|
|
43
43
|
10,
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index2.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SETTINGS_WIDGET_NAME as e } from "../../../shared/util/dist/lib/widgetName.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index2.js
|
|
3
|
+
var t = `${e}.team_widget`, n = {
|
|
4
|
+
Mounted: `${t}.mounted`,
|
|
5
|
+
MemberInvited: `${t}.member_invited`,
|
|
6
|
+
MemberUpdated: `${t}.member_updated`,
|
|
7
|
+
MemberDeactivated: `${t}.member_deactivated`
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { n as TeamWidgetAnalyticsEvent, t as WIDGET_NAME };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getInitials as e } from "
|
|
2
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
import { getInitials as e } from "../../../../shared/util/dist/lib/getInitials.js";
|
|
2
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index4.js
|
|
3
3
|
function t(e) {
|
|
4
4
|
let t = e.name?.trim();
|
|
5
5
|
return t ? `${t} (${e.email})` : e.email;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"use client";
|
|
5
5
|
import { diffMemberSelection as e, formatMembersCount as t } from "./index4.js";
|
|
6
6
|
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
7
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
7
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index5.js
|
|
8
8
|
function a(a) {
|
|
9
9
|
let { canRead: o, canWrite: s, directory: c, directoryReady: l, assignedAvatarsByGroupId: u, useListQuery: d, useEditMembers: f, useMutations: p, panelLabels: m, drawerLabels: h, countLabels: g, saveFailedMessage: _, deleteFailedMessage: v } = a, y = d(), b = p(), [x, S] = i("closed"), [C, w] = i(), [T, E] = i(""), [D, O] = i(""), [k, A] = i([]), [j, M] = i(), [N, P] = i(), [F, I] = i(), L = f(x === "edit" ? C : void 0), R = (L.data?.members?.data ?? []).map((e) => e.id), z = o ? y.data?.data ?? [] : [], B = l && (x !== "edit" || !!L.data), V = r(void 0);
|
|
10
10
|
n(() => {
|
|
@@ -10,7 +10,7 @@ import { useDepartmentMembersQuery as a } from "../../data-access/dist/index18.j
|
|
|
10
10
|
import { useCreateDepartmentMutation as o, useDeactivateDepartmentMutation as s, useDepartmentMembersMutation as c, useUpdateDepartmentMutation as l } from "../../data-access/dist/index19.js";
|
|
11
11
|
import "../../data-access/dist/index.js";
|
|
12
12
|
import { useMemo as u } from "react";
|
|
13
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
13
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index6.js
|
|
14
14
|
function d({ canRead: d, canWrite: f, featureLabels: p }) {
|
|
15
15
|
let m = r({
|
|
16
16
|
Status: "ALL",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Scope as e } from "
|
|
2
|
-
import "
|
|
3
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
import { Scope as e } from "../../../../shared/data-access/dist/lib/scopes.js";
|
|
2
|
+
import "../../../../shared/data-access/dist/index.js";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index7.js
|
|
4
4
|
var t = e.BankAccountWriteOrg, n = [e.BankAccountReadOrg, e.ExternalBankAccountReadOrg];
|
|
5
5
|
function r(e) {
|
|
6
6
|
return !!e?.has(t);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index8.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return e ? e.replace(/\/+$/, "") : `${window.location.origin}/accept-invite`;
|
|
4
4
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region ../../libs/tesouro-embedded-components-react/
|
|
1
|
+
//#region ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index9.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
let t = e.status?.toUpperCase() ?? "";
|
|
4
4
|
return t === "ACTIVE" || t === "";
|