@tesouro/embedded-components-react 0.11.209 → 0.11.211
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/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js +47 -48
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js +127 -144
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index16.js +107 -111
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js
CHANGED
|
@@ -14,64 +14,63 @@ import { useResendInviteMutation as a } from "../../data-access/dist/index8.js";
|
|
|
14
14
|
import "../../data-access/dist/index.js";
|
|
15
15
|
import { isMemberActionable as o, isMemberInvited as s } from "./index11.js";
|
|
16
16
|
import { resolveAcceptInviteRedirectUri as c } from "./index8.js";
|
|
17
|
-
import { useEffect as l,
|
|
17
|
+
import { useEffect as l, useRef as u, useState as d } from "react";
|
|
18
18
|
// ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index16.js
|
|
19
|
-
function
|
|
20
|
-
let [
|
|
19
|
+
function f({ members: e, canPerform: t, onOpen: n }) {
|
|
20
|
+
let [r, i] = d(), a = r ? e.find((e) => e.id === r) : void 0, s = a && o(a) ? a : void 0, c = !!r && !s;
|
|
21
21
|
return l(() => {
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
member:
|
|
22
|
+
c && i(void 0);
|
|
23
|
+
}, [c]), {
|
|
24
|
+
member: s,
|
|
25
25
|
open: (r) => {
|
|
26
|
-
t && e.some((e) => e.id === r) && (n(),
|
|
26
|
+
t && e.some((e) => e.id === r) && (n(), i(r));
|
|
27
27
|
},
|
|
28
28
|
onOpenChange: (e) => {
|
|
29
|
-
e ||
|
|
29
|
+
e || i(void 0);
|
|
30
30
|
},
|
|
31
|
-
close: () =>
|
|
31
|
+
close: () => i(void 0)
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
let
|
|
36
|
-
members:
|
|
37
|
-
canPerform: o,
|
|
38
|
-
onOpen: () => h.reset()
|
|
39
|
-
}), v = () => {
|
|
40
|
-
if (!o || !_.member) return;
|
|
41
|
-
let e = _.member.id;
|
|
42
|
-
h.mutate({ path: { userId: e } }, { onSuccess: () => {
|
|
43
|
-
m(r.MemberDeactivated, { memberId: e }), _.close();
|
|
44
|
-
} });
|
|
45
|
-
}, y = d({
|
|
46
|
-
members: u,
|
|
34
|
+
function p({ canDeactivate: l, canResendInvite: d, members: p, featureLabels: m, acceptInviteRedirectUri: h }) {
|
|
35
|
+
let g = n(), _ = i(), v = a(), y = f({
|
|
36
|
+
members: p,
|
|
47
37
|
canPerform: l,
|
|
48
|
-
onOpen: () =>
|
|
49
|
-
|
|
50
|
-
|
|
38
|
+
onOpen: () => _.reset()
|
|
39
|
+
}), b = () => {
|
|
40
|
+
if (!l || !y.member) return;
|
|
41
|
+
let e = y.member.id;
|
|
42
|
+
_.mutate({ path: { userId: e } }, { onSuccess: () => {
|
|
43
|
+
g(r.MemberDeactivated, { memberId: e }), y.close();
|
|
44
|
+
} });
|
|
45
|
+
}, x = u(!1);
|
|
51
46
|
return {
|
|
52
|
-
isDeactivateOpen: !!
|
|
53
|
-
deactivateMemberName:
|
|
54
|
-
deactivateMemberEmail:
|
|
55
|
-
isDeactivating:
|
|
56
|
-
deactivateErrorMessage:
|
|
57
|
-
openDeactivateConfirmation:
|
|
58
|
-
onDeactivateOpenChange:
|
|
59
|
-
onDeactivateConfirm:
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
47
|
+
isDeactivateOpen: !!y.member,
|
|
48
|
+
deactivateMemberName: y.member?.name ?? "",
|
|
49
|
+
deactivateMemberEmail: y.member?.email ?? "",
|
|
50
|
+
isDeactivating: _.isPending,
|
|
51
|
+
deactivateErrorMessage: _.isError ? t(_.error) ? m.deactivateRejectedError : m.deactivateFailedError : void 0,
|
|
52
|
+
openDeactivateConfirmation: y.open,
|
|
53
|
+
onDeactivateOpenChange: y.onOpenChange,
|
|
54
|
+
onDeactivateConfirm: b,
|
|
55
|
+
isResending: v.isPending,
|
|
56
|
+
resendInvite: (t) => {
|
|
57
|
+
if (!d || x.current) return;
|
|
58
|
+
let n = p.find((e) => e.id === t);
|
|
59
|
+
n && o(n) && s(n) && (x.current = !0, v.mutate({
|
|
60
|
+
userId: n.id,
|
|
61
|
+
redirectUri: c(h)
|
|
62
|
+
}, {
|
|
63
|
+
onSuccess: () => {
|
|
64
|
+
e.success(m.resendSuccessToast);
|
|
65
|
+
},
|
|
66
|
+
onError: () => {
|
|
67
|
+
e.error(m.resendFailedError);
|
|
68
|
+
},
|
|
69
|
+
onSettled: () => {
|
|
70
|
+
x.current = !1;
|
|
71
|
+
}
|
|
72
|
+
}));
|
|
74
73
|
}
|
|
75
74
|
};
|
|
76
75
|
}
|
|
77
|
-
export {
|
|
76
|
+
export { p as useTeamActions };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js
CHANGED
|
@@ -13,57 +13,57 @@ import { EmbeddedToaster as ie } from "../../../../shared/ui/dist/lib/EmbeddedTo
|
|
|
13
13
|
import "../../../../shared/ui/dist/index.js";
|
|
14
14
|
import { useAnalyticsTrack as ae } from "../../../../shared/feature/dist/lib/analytics/hooks.js";
|
|
15
15
|
import { WidgetProvider as r } from "../../../../shared/feature/dist/lib/WidgetProvider/WidgetProvider.js";
|
|
16
|
-
import { useWidgetConfig as oe, useWidgetError as se, useWidgetInitStaleForToken as i, useWidgetLoading as
|
|
16
|
+
import { useWidgetConfig as oe, useWidgetError as se, useWidgetInitStaleForToken as i, useWidgetLoading as a } from "../../../../shared/feature/dist/lib/WidgetProvider/hooks.js";
|
|
17
17
|
import "../../../../shared/feature/dist/index.js";
|
|
18
|
-
import { DEFAULT_FEATURE_LABELS as
|
|
19
|
-
import { TeamWidgetAnalyticsEvent as
|
|
20
|
-
import { useRolesQuery as
|
|
21
|
-
import { useTeamMembersQuery as
|
|
22
|
-
import { useAllTeamMembersQuery as
|
|
18
|
+
import { DEFAULT_FEATURE_LABELS as ce } from "./index3.js";
|
|
19
|
+
import { TeamWidgetAnalyticsEvent as le, WIDGET_NAME as ue } from "./index2.js";
|
|
20
|
+
import { useRolesQuery as de } from "../../data-access/dist/index12.js";
|
|
21
|
+
import { useTeamMembersQuery as fe } from "../../data-access/dist/index13.js";
|
|
22
|
+
import { useAllTeamMembersQuery as pe } from "../../data-access/dist/index14.js";
|
|
23
23
|
import "../../data-access/dist/index.js";
|
|
24
|
-
import { useDepartmentsAdmin as
|
|
25
|
-
import { isMemberActionable as
|
|
26
|
-
import { useInviteForm as
|
|
27
|
-
import { useLocationsAdmin as
|
|
28
|
-
import { useMemberAccountAccess as
|
|
29
|
-
import { canEditMemberProfile as
|
|
30
|
-
import { useTeamActions as
|
|
31
|
-
import { DEFAULT_LABELS as
|
|
32
|
-
import { InviteTeamMemberForm as
|
|
33
|
-
import { EditTeamMemberPanel as
|
|
34
|
-
import { GroupAdminDrawer as
|
|
35
|
-
import { GroupAdminPanel as
|
|
36
|
-
import { TeamActionDialog as
|
|
37
|
-
import { TeamMembersTable as
|
|
38
|
-
import { TeamMemberDetails as
|
|
39
|
-
import { TeamTabs as
|
|
24
|
+
import { useDepartmentsAdmin as me } from "./index6.js";
|
|
25
|
+
import { isMemberActionable as he, resolveReportingManager as ge, toAssignableRoles as _e, toDirectReportRows as ve, toRoleDisplayCatalog as ye, toScopedRoles as be, toTeamMemberDetails as xe, toTeamMemberRows as Se } from "./index11.js";
|
|
26
|
+
import { useInviteForm as Ce } from "./index12.js";
|
|
27
|
+
import { useLocationsAdmin as we } from "./index13.js";
|
|
28
|
+
import { useMemberAccountAccess as Te } from "./index14.js";
|
|
29
|
+
import { canEditMemberProfile as Ee, canEditMemberRole as De, useMemberEdit as Oe } from "./index15.js";
|
|
30
|
+
import { useTeamActions as ke } from "./index16.js";
|
|
31
|
+
import { DEFAULT_LABELS as Ae } from "../../ui/dist/index5.js";
|
|
32
|
+
import { InviteTeamMemberForm as je } from "../../ui/dist/index7.js";
|
|
33
|
+
import { EditTeamMemberPanel as Me } from "../../ui/dist/index8.js";
|
|
34
|
+
import { GroupAdminDrawer as Ne } from "../../ui/dist/index10.js";
|
|
35
|
+
import { GroupAdminPanel as Pe } from "../../ui/dist/index12.js";
|
|
36
|
+
import { TeamActionDialog as o } from "../../ui/dist/index13.js";
|
|
37
|
+
import { TeamMembersTable as Fe } from "../../ui/dist/index15.js";
|
|
38
|
+
import { TeamMemberDetails as Ie } from "../../ui/dist/index16.js";
|
|
39
|
+
import { TeamTabs as Le } from "../../ui/dist/index17.js";
|
|
40
40
|
import "../../ui/dist/index.js";
|
|
41
|
-
import { useEffect as
|
|
42
|
-
import { Fragment as
|
|
43
|
-
import { Ban as
|
|
41
|
+
import { useEffect as s, useMemo as c, useState as l } from "react";
|
|
42
|
+
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
43
|
+
import { Ban as Re, Trash2 as ze } from "lucide-react";
|
|
44
44
|
// ../../libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index17.js
|
|
45
|
-
var
|
|
45
|
+
var Be = [
|
|
46
46
|
5,
|
|
47
47
|
10,
|
|
48
48
|
25
|
|
49
|
-
],
|
|
50
|
-
function m({ headerStart: r, headerActionContainer:
|
|
51
|
-
let g =
|
|
52
|
-
...
|
|
49
|
+
], Ve = 10, He = [n.UserReadOrg], p = [n.UserWriteOrg, n.UserWriteAll], Ue = [n.UserWriteAll], We = [n.UserWriteOrg], Ge = [n.UserWriteOrg], Ke = [n.RoleReadOrg], qe = [n.UserWriteOrg], Je = [n.BankAccountReadOrg], Ye = [n.ExternalBankAccountReadOrg], Xe = [n.BankAccountWriteOrg], Ze = [n.DebitCardReadOrg], Qe = [n.DebitCardIssueOrg];
|
|
50
|
+
function m({ headerStart: r, headerActionContainer: ue, labels: m, featureLabels: h, acceptInviteRedirectUri: $e, initialView: et }) {
|
|
51
|
+
let g = c(() => ({
|
|
52
|
+
...ce,
|
|
53
53
|
...h
|
|
54
|
-
}), [h]),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}, [
|
|
58
|
-
let { organizationId:
|
|
54
|
+
}), [h]), tt = ae();
|
|
55
|
+
s(() => {
|
|
56
|
+
tt(le.Mounted);
|
|
57
|
+
}, [tt]);
|
|
58
|
+
let { organizationId: nt, widgetToken: rt, initResponse: _ } = oe(), { organizationStatus: it } = ne(), v = nt ?? (it === ee.Rotating ? _?.organizationId : void 0), y = _?.userId ?? void 0, at = !i(), ot = a(), st = !!se(), b = !!(nt && rt), ct = !!(v && rt), x = c(() => t(_?.scopes, He), [_?.scopes]), S = ct && x && !!_, C = _?.scopes, w = t(C, Ke), lt = t(C, qe), ut = b && t(C, p) && w && lt, T = b && x && t(C, p), dt = b && t(C, Ue), ft = b && t(C, We), pt = b && w && lt, mt = b && t(C, Ge), ht = b && x && t(C, [n.UserWriteOrg]), E = b && t(C, Je), D = b && t(C, Ye), O = b && t(C, Xe) && E && D, gt = b && t(C, Ze) && t(C, Qe), [k, _t] = l("members"), A = me({
|
|
59
59
|
canRead: x && k === "departments",
|
|
60
|
-
canWrite:
|
|
60
|
+
canWrite: ht,
|
|
61
61
|
featureLabels: g
|
|
62
|
-
}), j =
|
|
62
|
+
}), j = we({
|
|
63
63
|
canRead: x && k === "locations",
|
|
64
|
-
canWrite:
|
|
64
|
+
canWrite: ht,
|
|
65
65
|
featureLabels: g
|
|
66
|
-
}),
|
|
66
|
+
}), vt = [
|
|
67
67
|
{
|
|
68
68
|
id: "members",
|
|
69
69
|
label: g.teamMembersTab
|
|
@@ -76,101 +76,101 @@ function m({ headerStart: r, headerActionContainer: de, labels: m, featureLabels
|
|
|
76
76
|
id: "locations",
|
|
77
77
|
label: g.locationsTab
|
|
78
78
|
}
|
|
79
|
-
], [
|
|
79
|
+
], [yt, M] = l(), [N, bt] = l(Ve), [xt, P] = l(0), [F, I] = l(), L = (ut || pt) && w, St = S && w && (!!F || !L), [Ct, wt] = l(), R = fe({
|
|
80
80
|
Limit: N,
|
|
81
81
|
Status: "ALL",
|
|
82
|
-
PaginationToken:
|
|
82
|
+
PaginationToken: yt,
|
|
83
83
|
enabled: S
|
|
84
|
-
}),
|
|
84
|
+
}), Tt = _?.organizationTypes ?? [], z = c(() => ({
|
|
85
85
|
organizationId: v ?? "",
|
|
86
|
-
organizationTypes:
|
|
87
|
-
}), [v,
|
|
86
|
+
organizationTypes: Tt
|
|
87
|
+
}), [v, Tt]), B = re({ enabled: St }), Et = c(() => ye(B.data?.data ?? [], z), [B.data?.data, z]), V = S ? R.data?.data ?? [] : [], H = de({ enabled: L }), U = c(() => _e(H.data?.data ?? [], z), [H.data, z]), Dt = c(() => {
|
|
88
88
|
let e = L ? H.data?.data ?? [] : B.data?.data ?? [];
|
|
89
|
-
return
|
|
89
|
+
return be(e, z);
|
|
90
90
|
}, [
|
|
91
91
|
L,
|
|
92
92
|
H.data,
|
|
93
93
|
B.data,
|
|
94
94
|
z
|
|
95
|
-
]),
|
|
96
|
-
canInvite:
|
|
95
|
+
]), Ot = Et.length > 0 && !B.isResolving && !B.isError, kt = c(() => ye(H.data?.data ?? [], z), [H.data, z]), W = Ot ? Et : kt, At = Se(V, g, I, W, v), jt = !!H.data, Mt = U.length > 0, Nt = ut && jt && Mt, Pt = pt && jt && Mt, G = Ce({
|
|
96
|
+
canInvite: Nt,
|
|
97
97
|
canReadDirectory: x,
|
|
98
98
|
canManageAccountAccess: O,
|
|
99
99
|
canReadInternalAccounts: E,
|
|
100
100
|
canReadExternalAccounts: D,
|
|
101
|
-
canGrantDebitCardAccess:
|
|
101
|
+
canGrantDebitCardAccess: gt,
|
|
102
102
|
roles: U,
|
|
103
103
|
roleCatalog: W,
|
|
104
104
|
organizationId: v,
|
|
105
105
|
featureLabels: g,
|
|
106
|
-
acceptInviteRedirectUri:
|
|
107
|
-
openOnArrival:
|
|
108
|
-
}), K =
|
|
109
|
-
canEditAnyProfile:
|
|
110
|
-
canEditOrgProfile:
|
|
106
|
+
acceptInviteRedirectUri: $e,
|
|
107
|
+
openOnArrival: et === "invite"
|
|
108
|
+
}), K = Oe({
|
|
109
|
+
canEditAnyProfile: dt,
|
|
110
|
+
canEditOrgProfile: ft,
|
|
111
111
|
organizationId: v,
|
|
112
112
|
currentUserId: y,
|
|
113
|
-
canEditRole:
|
|
113
|
+
canEditRole: Pt,
|
|
114
114
|
canReadDirectory: x,
|
|
115
115
|
canManageAccountAccess: O,
|
|
116
116
|
canReadInternalAccounts: E,
|
|
117
117
|
canReadExternalAccounts: D,
|
|
118
118
|
members: V,
|
|
119
119
|
roles: U,
|
|
120
|
-
allRoles:
|
|
120
|
+
allRoles: Dt,
|
|
121
121
|
roleCatalog: W,
|
|
122
122
|
featureLabels: g
|
|
123
|
-
}), q =
|
|
124
|
-
canDeactivate:
|
|
125
|
-
canResendInvite:
|
|
123
|
+
}), q = ke({
|
|
124
|
+
canDeactivate: mt,
|
|
125
|
+
canResendInvite: T,
|
|
126
126
|
members: V,
|
|
127
127
|
featureLabels: g,
|
|
128
|
-
acceptInviteRedirectUri:
|
|
129
|
-
}),
|
|
128
|
+
acceptInviteRedirectUri: $e
|
|
129
|
+
}), Ft = R.data?.nextPaginationToken, It = R.data?.prevPaginationToken, J = F ? V.find((e) => e.id === F) : void 0, Y = pe({ enabled: !!J && x }), Lt = Y.data?.data ?? V, X = J ? ge(Lt, J.reportingManagerUserId) : void 0, Rt = c(() => J && Y.isComplete ? ve(Y.data?.data ?? [], J.id, g, W, v) : [], [
|
|
130
130
|
J,
|
|
131
131
|
Y.isComplete,
|
|
132
132
|
Y.data?.data,
|
|
133
133
|
g,
|
|
134
134
|
W,
|
|
135
135
|
v
|
|
136
|
-
]),
|
|
137
|
-
|
|
138
|
-
|
|
136
|
+
]), zt = !!R.data, Bt = zt && !!F && !J;
|
|
137
|
+
s(() => {
|
|
138
|
+
Bt && I(void 0);
|
|
139
|
+
}, [Bt]);
|
|
140
|
+
let Vt = R.isError;
|
|
141
|
+
s(() => {
|
|
142
|
+
Vt && (M(void 0), P(0));
|
|
139
143
|
}, [Vt]);
|
|
140
|
-
let Ht =
|
|
141
|
-
o(() => {
|
|
142
|
-
Ht && (M(void 0), P(0));
|
|
143
|
-
}, [Ht]);
|
|
144
|
-
let Ut = jt.length, Wt = `${Ut === 0 ? 0 : St * N + 1}–${St * N + Ut}`, Z = ge(J), Gt = !!(J && De({
|
|
144
|
+
let Ht = At.length, Ut = `${Ht === 0 ? 0 : xt * N + 1}–${xt * N + Ht}`, Z = he(J), Wt = !!(J && Ee({
|
|
145
145
|
member: J,
|
|
146
146
|
organizationId: v,
|
|
147
|
-
canEditAnyProfile:
|
|
148
|
-
canEditOrgProfile:
|
|
147
|
+
canEditAnyProfile: dt,
|
|
148
|
+
canEditOrgProfile: ft,
|
|
149
149
|
currentUserId: y
|
|
150
|
-
})),
|
|
150
|
+
})), Gt = !!(J && De({
|
|
151
151
|
member: J,
|
|
152
152
|
organizationId: v,
|
|
153
|
-
canEditRole:
|
|
153
|
+
canEditRole: Pt,
|
|
154
154
|
currentUserId: y
|
|
155
|
-
})),
|
|
155
|
+
})), Kt = O && !!J && J?.id !== y, qt = Wt || Gt || Kt, Q = Te({
|
|
156
156
|
selectedMember: J && Z ? J : void 0,
|
|
157
157
|
canReadInternalAccounts: E,
|
|
158
158
|
canReadExternalAccounts: D,
|
|
159
159
|
featureLabels: g,
|
|
160
|
-
allRoles:
|
|
161
|
-
}), $ =
|
|
160
|
+
allRoles: Dt
|
|
161
|
+
}), $ = c(() => J ? xe(J, g, W, v) : void 0, [
|
|
162
162
|
J,
|
|
163
163
|
g,
|
|
164
164
|
W,
|
|
165
165
|
v
|
|
166
|
-
]),
|
|
167
|
-
return /* @__PURE__ */
|
|
168
|
-
/* @__PURE__ */
|
|
169
|
-
r && (K.isEditOpen || J || G.isInviteOpen) ? /* @__PURE__ */
|
|
166
|
+
]), Jt = !st && (te(it) && !R.data || ot && !_ || S && R.isLoading);
|
|
167
|
+
return /* @__PURE__ */ f(u, { children: [
|
|
168
|
+
/* @__PURE__ */ d(ie, {}),
|
|
169
|
+
r && (K.isEditOpen || J || G.isInviteOpen) ? /* @__PURE__ */ d("div", {
|
|
170
170
|
className: "ttw:mb-4",
|
|
171
171
|
children: r
|
|
172
172
|
}) : null,
|
|
173
|
-
K.isEditOpen ? /* @__PURE__ */
|
|
173
|
+
K.isEditOpen ? /* @__PURE__ */ d(Me, {
|
|
174
174
|
open: K.isEditOpen,
|
|
175
175
|
memberName: K.editMemberName,
|
|
176
176
|
memberEmail: K.editMemberEmail,
|
|
@@ -209,25 +209,26 @@ function m({ headerStart: r, headerActionContainer: de, labels: m, featureLabels
|
|
|
209
209
|
onFormChange: K.onEditFormChange,
|
|
210
210
|
onSubmit: K.onEditSubmit,
|
|
211
211
|
labels: m
|
|
212
|
-
}) : J ? /* @__PURE__ */
|
|
213
|
-
...
|
|
212
|
+
}) : J ? /* @__PURE__ */ d(Ie, {
|
|
213
|
+
...xe(J, g, W, v),
|
|
214
214
|
avatarSeed: J.email,
|
|
215
215
|
reportingManagerName: X?.name,
|
|
216
216
|
reportingManagerInitials: X?.initials,
|
|
217
217
|
reportingManagerSeed: X?.email,
|
|
218
|
-
directReports:
|
|
218
|
+
directReports: Rt,
|
|
219
219
|
accountAccessLabel: Q.detailAccountAccessLabel,
|
|
220
220
|
accountAccessRows: Q.detailAccounts,
|
|
221
221
|
isAccountAccessLoading: Q.detailAccountsLoading,
|
|
222
222
|
isRoleLoading: w && B.isResolving,
|
|
223
223
|
onBackClick: () => {
|
|
224
|
-
|
|
224
|
+
wt(F), I(void 0);
|
|
225
225
|
},
|
|
226
|
-
onEditClick:
|
|
227
|
-
onResendClick:
|
|
228
|
-
|
|
226
|
+
onEditClick: qt && Z ? () => K.openMemberEdit(J.id) : void 0,
|
|
227
|
+
onResendClick: T && (J.status ?? "").trim().toUpperCase() === "INVITED" ? () => q.resendInvite(J.id) : void 0,
|
|
228
|
+
isResending: q.isResending,
|
|
229
|
+
onDeactivateClick: mt && Z && at && J.id !== y ? () => q.openDeactivateConfirmation(J.id) : void 0,
|
|
229
230
|
labels: m
|
|
230
|
-
}) : G.isInviteOpen ? /* @__PURE__ */
|
|
231
|
+
}) : G.isInviteOpen ? /* @__PURE__ */ d(je, {
|
|
231
232
|
form: G.inviteForm,
|
|
232
233
|
roleOptions: G.roleOptions,
|
|
233
234
|
departmentOptions: G.departmentOptions,
|
|
@@ -253,37 +254,37 @@ function m({ headerStart: r, headerActionContainer: de, labels: m, featureLabels
|
|
|
253
254
|
onCancel: G.closeInviteForm,
|
|
254
255
|
onSubmit: G.onInviteSubmit,
|
|
255
256
|
labels: m
|
|
256
|
-
}) : /* @__PURE__ */
|
|
257
|
+
}) : /* @__PURE__ */ d(Le, {
|
|
257
258
|
headerStart: r,
|
|
258
|
-
headerActionContainer:
|
|
259
|
-
headerAction: k === "departments" ? A.panel.onAddClick && (A.panel.rows.length > 0 || A.panel.isLoading || A.panel.isError) ? /* @__PURE__ */
|
|
259
|
+
headerActionContainer: ue,
|
|
260
|
+
headerAction: k === "departments" ? A.panel.onAddClick && (A.panel.rows.length > 0 || A.panel.isLoading || A.panel.isError) ? /* @__PURE__ */ d(e, {
|
|
260
261
|
size: "sm",
|
|
261
262
|
disabled: A.panel.isLoading,
|
|
262
263
|
onClick: A.panel.onAddClick,
|
|
263
264
|
children: A.panel.labels?.addButton
|
|
264
|
-
}) : null : k === "locations" ? j.panel.onAddClick && (j.panel.rows.length > 0 || j.panel.isLoading || j.panel.isError) ? /* @__PURE__ */
|
|
265
|
+
}) : null : k === "locations" ? j.panel.onAddClick && (j.panel.rows.length > 0 || j.panel.isLoading || j.panel.isError) ? /* @__PURE__ */ d(e, {
|
|
265
266
|
size: "sm",
|
|
266
267
|
disabled: j.panel.isLoading,
|
|
267
268
|
onClick: j.panel.onAddClick,
|
|
268
269
|
children: j.panel.labels?.addButton
|
|
269
|
-
}) : null :
|
|
270
|
+
}) : null : Nt ? /* @__PURE__ */ d(e, {
|
|
270
271
|
size: "sm",
|
|
271
|
-
disabled:
|
|
272
|
+
disabled: Jt,
|
|
272
273
|
onClick: G.openInviteForm,
|
|
273
|
-
children: m?.inviteButton ??
|
|
274
|
+
children: m?.inviteButton ?? Ae.inviteButton
|
|
274
275
|
}) : null,
|
|
275
|
-
tabs:
|
|
276
|
+
tabs: vt,
|
|
276
277
|
activeTabId: k,
|
|
277
|
-
onTabChange:
|
|
278
|
-
children: k === "departments" ? /* @__PURE__ */
|
|
279
|
-
/* @__PURE__ */
|
|
278
|
+
onTabChange: _t,
|
|
279
|
+
children: k === "departments" ? /* @__PURE__ */ f(u, { children: [
|
|
280
|
+
/* @__PURE__ */ d(Pe, {
|
|
280
281
|
...A.panel,
|
|
281
282
|
showHeader: !1
|
|
282
283
|
}),
|
|
283
|
-
/* @__PURE__ */
|
|
284
|
-
/* @__PURE__ */
|
|
284
|
+
/* @__PURE__ */ d(Ne, { ...A.drawer }),
|
|
285
|
+
/* @__PURE__ */ d(o, {
|
|
285
286
|
open: A.deleteDialog.open,
|
|
286
|
-
icon: /* @__PURE__ */
|
|
287
|
+
icon: /* @__PURE__ */ d(ze, {
|
|
287
288
|
"aria-hidden": !0,
|
|
288
289
|
className: "ttw:size-6"
|
|
289
290
|
}),
|
|
@@ -297,15 +298,15 @@ function m({ headerStart: r, headerActionContainer: de, labels: m, featureLabels
|
|
|
297
298
|
onConfirm: A.deleteDialog.onConfirm,
|
|
298
299
|
labels: m
|
|
299
300
|
})
|
|
300
|
-
] }) : k === "locations" ? /* @__PURE__ */
|
|
301
|
-
/* @__PURE__ */
|
|
301
|
+
] }) : k === "locations" ? /* @__PURE__ */ f(u, { children: [
|
|
302
|
+
/* @__PURE__ */ d(Pe, {
|
|
302
303
|
...j.panel,
|
|
303
304
|
showHeader: !1
|
|
304
305
|
}),
|
|
305
|
-
/* @__PURE__ */
|
|
306
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ d(Ne, { ...j.drawer }),
|
|
307
|
+
/* @__PURE__ */ d(o, {
|
|
307
308
|
open: j.deleteDialog.open,
|
|
308
|
-
icon: /* @__PURE__ */
|
|
309
|
+
icon: /* @__PURE__ */ d(ze, {
|
|
309
310
|
"aria-hidden": !0,
|
|
310
311
|
className: "ttw:size-6"
|
|
311
312
|
}),
|
|
@@ -319,32 +320,32 @@ function m({ headerStart: r, headerActionContainer: de, labels: m, featureLabels
|
|
|
319
320
|
onConfirm: j.deleteDialog.onConfirm,
|
|
320
321
|
labels: m
|
|
321
322
|
})
|
|
322
|
-
] }) : /* @__PURE__ */
|
|
323
|
-
rows:
|
|
324
|
-
isLoading:
|
|
325
|
-
isError:
|
|
326
|
-
showPagination: S &&
|
|
327
|
-
isPreviousPageDisabled: !
|
|
328
|
-
isNextPageDisabled: !
|
|
323
|
+
] }) : /* @__PURE__ */ d(Fe, {
|
|
324
|
+
rows: At,
|
|
325
|
+
isLoading: Jt,
|
|
326
|
+
isError: st || S && R.isError,
|
|
327
|
+
showPagination: S && zt && !R.isError,
|
|
328
|
+
isPreviousPageDisabled: !It,
|
|
329
|
+
isNextPageDisabled: !Ft,
|
|
329
330
|
pageSize: N,
|
|
330
|
-
pageSizeOptions:
|
|
331
|
-
rangeLabel:
|
|
331
|
+
pageSizeOptions: Be,
|
|
332
|
+
rangeLabel: Ut,
|
|
332
333
|
onPageSizeChange: (e) => {
|
|
333
|
-
|
|
334
|
+
bt(e), M(void 0), P(0);
|
|
334
335
|
},
|
|
335
|
-
autoFocusRowKey:
|
|
336
|
+
autoFocusRowKey: Ct,
|
|
336
337
|
onPreviousPageClick: () => {
|
|
337
|
-
M(
|
|
338
|
+
M(It ?? void 0), P((e) => Math.max(0, e - 1));
|
|
338
339
|
},
|
|
339
340
|
onNextPageClick: () => {
|
|
340
|
-
M(
|
|
341
|
+
M(Ft ?? void 0), P((e) => e + 1);
|
|
341
342
|
},
|
|
342
343
|
labels: m
|
|
343
344
|
})
|
|
344
345
|
}),
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
+
/* @__PURE__ */ d(o, {
|
|
346
347
|
open: q.isDeactivateOpen,
|
|
347
|
-
icon: /* @__PURE__ */
|
|
348
|
+
icon: /* @__PURE__ */ d(Re, {
|
|
348
349
|
"aria-hidden": !0,
|
|
349
350
|
className: "ttw:size-6"
|
|
350
351
|
}),
|
|
@@ -358,30 +359,12 @@ function m({ headerStart: r, headerActionContainer: de, labels: m, featureLabels
|
|
|
358
359
|
onOpenChange: q.onDeactivateOpenChange,
|
|
359
360
|
onConfirm: q.onDeactivateConfirm,
|
|
360
361
|
labels: m
|
|
361
|
-
}),
|
|
362
|
-
/* @__PURE__ */ u(a, {
|
|
363
|
-
open: q.isResendOpen,
|
|
364
|
-
icon: /* @__PURE__ */ u(Be, {
|
|
365
|
-
"aria-hidden": !0,
|
|
366
|
-
className: "ttw:size-6"
|
|
367
|
-
}),
|
|
368
|
-
title: g.resendDialogTitle,
|
|
369
|
-
description: g.resendDialogDescription,
|
|
370
|
-
subjectName: q.resendMemberName,
|
|
371
|
-
subjectDetail: q.resendMemberEmail,
|
|
372
|
-
confirmButtonLabel: g.resendConfirmButton,
|
|
373
|
-
confirmVariant: "default",
|
|
374
|
-
errorMessage: q.resendErrorMessage,
|
|
375
|
-
isConfirming: q.isResending,
|
|
376
|
-
onOpenChange: q.onResendOpenChange,
|
|
377
|
-
onConfirm: q.onResendConfirm,
|
|
378
|
-
labels: m
|
|
379
362
|
})
|
|
380
363
|
] });
|
|
381
364
|
}
|
|
382
|
-
function h({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: ne, gatewayRouting: t, linkComponent: n, uiFramework: re, errorFallback: ie, onError: ae, analytics: oe, disclosuresAcceptance: se, providerLabels: i, ...
|
|
383
|
-
return /* @__PURE__ */
|
|
384
|
-
widgetName:
|
|
365
|
+
function h({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: ne, gatewayRouting: t, linkComponent: n, uiFramework: re, errorFallback: ie, onError: ae, analytics: oe, disclosuresAcceptance: se, providerLabels: i, ...a }) {
|
|
366
|
+
return /* @__PURE__ */ d(r, {
|
|
367
|
+
widgetName: ue,
|
|
385
368
|
baseUrl: e,
|
|
386
369
|
widgetToken: ee,
|
|
387
370
|
organizationId: te,
|
|
@@ -394,7 +377,7 @@ function h({ baseUrl: e, widgetToken: ee, organizationId: te, configClient: ne,
|
|
|
394
377
|
analytics: oe,
|
|
395
378
|
disclosuresAcceptance: se,
|
|
396
379
|
providerLabels: i,
|
|
397
|
-
children: /* @__PURE__ */
|
|
380
|
+
children: /* @__PURE__ */ d(m, { ...a })
|
|
398
381
|
});
|
|
399
382
|
}
|
|
400
383
|
export { h as TeamWidget, h as default };
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js
CHANGED
|
@@ -33,9 +33,6 @@ var e = {
|
|
|
33
33
|
deactivateDialogTitle: "Deactivate user",
|
|
34
34
|
deactivateDialogDescription: "Are you sure you want to completely revoke access to this profile?",
|
|
35
35
|
deactivateConfirmButton: "Confirm",
|
|
36
|
-
resendDialogTitle: "Resend invite",
|
|
37
|
-
resendDialogDescription: "Send a new invitation email so this member can finish setting up their account.",
|
|
38
|
-
resendConfirmButton: "Send invite",
|
|
39
36
|
resendFailedError: "Something went wrong while resending the invite. Please try again.",
|
|
40
37
|
teamMembersTab: "Team members",
|
|
41
38
|
departmentsTab: "Departments",
|
|
@@ -2,242 +2,238 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import { Badge as e, Button as t, DescriptionList as n, DropdownMenu as r, DropdownMenuContent as i, DropdownMenuItem as a,
|
|
6
|
-
import { LoadingRegion as
|
|
5
|
+
import { Badge as e, Button as t, DescriptionList as n, DropdownMenu as r, DropdownMenuContent as i, DropdownMenuItem as a, DropdownMenuTrigger as o, Heading as s, Skeleton as c, Table as l, TableBody as u, TableCell as d, TableHead as f, TableHeader as p, TableRow as m, Tooltip as h, TooltipContent as g, TooltipProvider as _, TooltipTrigger as v } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
6
|
+
import { LoadingRegion as y } from "../../../../shared/ui/dist/lib/LoadingRegion/LoadingRegion.js";
|
|
7
7
|
import "../../../../shared/ui/dist/index.js";
|
|
8
|
-
import { AccountAccessSummaryTable as
|
|
9
|
-
import { DEFAULT_LABELS as
|
|
10
|
-
import { AuthorizedSignerBadge as
|
|
11
|
-
import { useEffect as
|
|
12
|
-
import { Fragment as
|
|
13
|
-
import { ArrowLeftIcon as
|
|
8
|
+
import { AccountAccessSummaryTable as b } from "./index2.js";
|
|
9
|
+
import { DEFAULT_LABELS as x } from "./index5.js";
|
|
10
|
+
import { AuthorizedSignerBadge as S } from "./index14.js";
|
|
11
|
+
import { useEffect as C, useRef as w } from "react";
|
|
12
|
+
import { Fragment as T, jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
13
|
+
import { ArrowLeftIcon as O, MoreVertical as k } from "lucide-react";
|
|
14
14
|
// ../../libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index16.js
|
|
15
|
-
function
|
|
15
|
+
function A({ name: A, email: j, roleCardTitle: M, roleCardDescription: N, isRoleLoading: P = !1, showAuthorizedSignerBadge: F = !1, statusLabel: I, statusTone: L, lastSignInLabel: R, departmentLabel: z, locationLabel: B, reportingManagerName: V, directReports: H = [], accountAccessLabel: U, accountAccessRows: W = [], isAccountAccessLoading: G = !1, onBackClick: K, onEditClick: q, onResendClick: J, isResending: Y = !1, onDeactivateClick: X, labels: Z }) {
|
|
16
16
|
let Q = {
|
|
17
|
-
...
|
|
17
|
+
...x,
|
|
18
18
|
...Z
|
|
19
|
-
}, $ =
|
|
20
|
-
return
|
|
19
|
+
}, $ = w(null);
|
|
20
|
+
return C(() => {
|
|
21
21
|
$.current?.focus();
|
|
22
|
-
}, []), /* @__PURE__ */
|
|
23
|
-
"aria-label":
|
|
22
|
+
}, []), /* @__PURE__ */ D("section", {
|
|
23
|
+
"aria-label": A,
|
|
24
24
|
className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:rounded-md ttw:border ttw:border-border ttw:bg-card ttw:p-6",
|
|
25
25
|
children: [
|
|
26
|
-
/* @__PURE__ */
|
|
26
|
+
/* @__PURE__ */ D("div", {
|
|
27
27
|
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
28
|
-
children: [/* @__PURE__ */
|
|
28
|
+
children: [/* @__PURE__ */ D(t, {
|
|
29
29
|
ref: $,
|
|
30
30
|
variant: "ghost",
|
|
31
31
|
size: "sm",
|
|
32
|
-
onClick:
|
|
33
|
-
children: [/* @__PURE__ */
|
|
34
|
-
}), /* @__PURE__ */
|
|
32
|
+
onClick: K,
|
|
33
|
+
children: [/* @__PURE__ */ E(O, { className: "ttw:size-4" }), Q.detailsBackButton]
|
|
34
|
+
}), /* @__PURE__ */ D("div", {
|
|
35
35
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
36
|
-
children: [
|
|
36
|
+
children: [q && /* @__PURE__ */ E(t, {
|
|
37
37
|
variant: "ghost",
|
|
38
38
|
size: "sm",
|
|
39
|
-
onClick:
|
|
39
|
+
onClick: q,
|
|
40
40
|
children: Q.detailsEditButton
|
|
41
|
-
}),
|
|
41
|
+
}), X && /* @__PURE__ */ D(r, { children: [/* @__PURE__ */ E(_, { children: /* @__PURE__ */ D(h, { children: [/* @__PURE__ */ E(v, {
|
|
42
42
|
asChild: !0,
|
|
43
|
-
children: /* @__PURE__ */
|
|
43
|
+
children: /* @__PURE__ */ E(o, {
|
|
44
44
|
asChild: !0,
|
|
45
|
-
children: /* @__PURE__ */
|
|
45
|
+
children: /* @__PURE__ */ E(t, {
|
|
46
46
|
variant: "ghost",
|
|
47
47
|
size: "icon-sm",
|
|
48
48
|
"aria-label": Q.detailsMoreActions,
|
|
49
|
-
children: /* @__PURE__ */
|
|
49
|
+
children: /* @__PURE__ */ E(k, {
|
|
50
50
|
"aria-hidden": !0,
|
|
51
51
|
className: "ttw:size-4"
|
|
52
52
|
})
|
|
53
53
|
})
|
|
54
54
|
})
|
|
55
|
-
}), /* @__PURE__ */
|
|
55
|
+
}), /* @__PURE__ */ E(g, { children: Q.detailsMoreActions })] }) }), /* @__PURE__ */ E(i, {
|
|
56
56
|
align: "end",
|
|
57
|
-
children:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
Y && X && /* @__PURE__ */ D(o, {}),
|
|
63
|
-
X && /* @__PURE__ */ D(a, {
|
|
64
|
-
variant: "destructive",
|
|
65
|
-
onClick: X,
|
|
66
|
-
children: Q.detailsDeactivateButton
|
|
67
|
-
})
|
|
68
|
-
]
|
|
57
|
+
children: /* @__PURE__ */ E(a, {
|
|
58
|
+
variant: "destructive",
|
|
59
|
+
onClick: X,
|
|
60
|
+
children: Q.detailsDeactivateButton
|
|
61
|
+
})
|
|
69
62
|
})] })]
|
|
70
63
|
})]
|
|
71
64
|
}),
|
|
72
|
-
/* @__PURE__ */
|
|
65
|
+
/* @__PURE__ */ E("div", {
|
|
73
66
|
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
74
|
-
children: /* @__PURE__ */
|
|
67
|
+
children: /* @__PURE__ */ D("div", {
|
|
75
68
|
className: "ttw:min-w-0",
|
|
76
|
-
children: [/* @__PURE__ */
|
|
77
|
-
|
|
69
|
+
children: [/* @__PURE__ */ E(s, {
|
|
70
|
+
variant: "section",
|
|
71
|
+
level: 3,
|
|
72
|
+
children: A
|
|
73
|
+
}), /* @__PURE__ */ D("div", {
|
|
74
|
+
className: "ttw:mt-1 ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-2 ttw:gap-y-1 ttw:text-sm ttw:text-muted-foreground",
|
|
78
75
|
children: [
|
|
79
|
-
/* @__PURE__ */
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
children: j
|
|
76
|
+
/* @__PURE__ */ E(e, {
|
|
77
|
+
tone: L,
|
|
78
|
+
children: I
|
|
83
79
|
}),
|
|
84
|
-
/* @__PURE__ */
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
80
|
+
F && /* @__PURE__ */ E(S, { label: Q.authorizedSignerBadge }),
|
|
81
|
+
R ? /* @__PURE__ */ D(T, { children: [
|
|
82
|
+
/* @__PURE__ */ E("span", {
|
|
83
|
+
"aria-hidden": !0,
|
|
84
|
+
children: "|"
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ E("span", { children: Q.detailsLastSignInLabel }),
|
|
87
|
+
/* @__PURE__ */ E("span", { children: R })
|
|
88
|
+
] }) : null
|
|
89
89
|
]
|
|
90
|
-
}), /* @__PURE__ */ O("div", {
|
|
91
|
-
className: "ttw:mt-1 ttw:flex ttw:items-center ttw:gap-2 ttw:text-sm ttw:text-muted-foreground",
|
|
92
|
-
children: [/* @__PURE__ */ D(e, {
|
|
93
|
-
tone: R,
|
|
94
|
-
children: L
|
|
95
|
-
}), z ? /* @__PURE__ */ O(E, { children: [
|
|
96
|
-
/* @__PURE__ */ D("span", {
|
|
97
|
-
"aria-hidden": !0,
|
|
98
|
-
children: "|"
|
|
99
|
-
}),
|
|
100
|
-
/* @__PURE__ */ D("span", { children: Q.detailsLastSignInLabel }),
|
|
101
|
-
/* @__PURE__ */ D("span", { children: z })
|
|
102
|
-
] }) : null]
|
|
103
90
|
})]
|
|
104
91
|
})
|
|
105
92
|
}),
|
|
106
|
-
/* @__PURE__ */
|
|
93
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E(s, {
|
|
107
94
|
variant: "component",
|
|
108
95
|
level: 4,
|
|
109
96
|
className: "ttw:mb-2",
|
|
110
97
|
children: Q.detailsMemberDetailsHeading
|
|
111
|
-
}), /* @__PURE__ */
|
|
112
|
-
{
|
|
113
|
-
label: Q.detailsNameLabel,
|
|
114
|
-
value: j
|
|
115
|
-
},
|
|
98
|
+
}), /* @__PURE__ */ E(n, { items: [
|
|
116
99
|
{
|
|
117
100
|
label: Q.detailsDepartmentLabel,
|
|
118
|
-
value:
|
|
101
|
+
value: z
|
|
119
102
|
},
|
|
120
103
|
{
|
|
121
104
|
label: Q.detailsEmailLabel,
|
|
122
|
-
value:
|
|
105
|
+
value: J ? /* @__PURE__ */ D("span", {
|
|
106
|
+
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-x-3 ttw:gap-y-1",
|
|
107
|
+
children: [/* @__PURE__ */ E("span", {
|
|
108
|
+
className: "ttw:min-w-0",
|
|
109
|
+
children: j
|
|
110
|
+
}), /* @__PURE__ */ E(t, {
|
|
111
|
+
type: "button",
|
|
112
|
+
variant: "outline",
|
|
113
|
+
size: "sm",
|
|
114
|
+
disabled: Y,
|
|
115
|
+
onClick: J,
|
|
116
|
+
children: Q.detailsResendButton
|
|
117
|
+
})]
|
|
118
|
+
}) : j
|
|
123
119
|
},
|
|
124
120
|
{
|
|
125
121
|
label: Q.detailsLocationLabel,
|
|
126
|
-
value:
|
|
122
|
+
value: B
|
|
127
123
|
}
|
|
128
124
|
] })] }),
|
|
129
|
-
/* @__PURE__ */
|
|
125
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E(s, {
|
|
130
126
|
variant: "component",
|
|
131
127
|
level: 4,
|
|
132
128
|
className: "ttw:mb-2",
|
|
133
129
|
children: Q.detailsReportingManagerLabel
|
|
134
|
-
}),
|
|
130
|
+
}), V ? /* @__PURE__ */ E("div", {
|
|
135
131
|
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
136
|
-
children: /* @__PURE__ */
|
|
132
|
+
children: /* @__PURE__ */ E("span", {
|
|
137
133
|
className: "ttw:text-sm ttw:text-foreground",
|
|
138
|
-
children:
|
|
134
|
+
children: V
|
|
139
135
|
})
|
|
140
|
-
}) : /* @__PURE__ */
|
|
136
|
+
}) : /* @__PURE__ */ E("p", {
|
|
141
137
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
142
138
|
children: Q.detailsReportingManagerNone
|
|
143
139
|
})] }),
|
|
144
|
-
|
|
140
|
+
H.length > 0 ? /* @__PURE__ */ E(T, { children: /* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E(s, {
|
|
145
141
|
variant: "component",
|
|
146
142
|
level: 4,
|
|
147
143
|
className: "ttw:mb-2",
|
|
148
144
|
children: Q.detailsApprovesExpensesHeading
|
|
149
|
-
}), /* @__PURE__ */
|
|
145
|
+
}), /* @__PURE__ */ E("div", {
|
|
150
146
|
className: "ttw:overflow-hidden ttw:rounded-md ttw:border ttw:border-border",
|
|
151
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ D(l, { children: [/* @__PURE__ */ E(p, { children: /* @__PURE__ */ D(m, {
|
|
152
148
|
className: "ttw:bg-muted/50 ttw:hover:bg-muted/50",
|
|
153
149
|
children: [
|
|
154
|
-
/* @__PURE__ */
|
|
155
|
-
/* @__PURE__ */
|
|
156
|
-
/* @__PURE__ */
|
|
157
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ E(f, { children: Q.nameColumn }),
|
|
151
|
+
/* @__PURE__ */ E(f, { children: Q.roleColumn }),
|
|
152
|
+
/* @__PURE__ */ E(f, { children: Q.departmentColumn }),
|
|
153
|
+
/* @__PURE__ */ E(f, { children: Q.statusColumn })
|
|
158
154
|
]
|
|
159
|
-
}) }), /* @__PURE__ */
|
|
160
|
-
/* @__PURE__ */
|
|
155
|
+
}) }), /* @__PURE__ */ E(u, { children: H.map((t) => /* @__PURE__ */ D(m, { children: [
|
|
156
|
+
/* @__PURE__ */ E(d, { children: /* @__PURE__ */ E("div", {
|
|
161
157
|
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
162
|
-
children: /* @__PURE__ */
|
|
158
|
+
children: /* @__PURE__ */ E("span", {
|
|
163
159
|
className: "ttw:truncate ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
164
160
|
children: t.name
|
|
165
161
|
})
|
|
166
162
|
}) }),
|
|
167
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ E(d, { children: /* @__PURE__ */ E(e, {
|
|
168
164
|
variant: "secondary",
|
|
169
165
|
children: t.roleLabel
|
|
170
166
|
}) }),
|
|
171
|
-
/* @__PURE__ */
|
|
167
|
+
/* @__PURE__ */ E(d, {
|
|
172
168
|
className: "ttw:text-muted-foreground",
|
|
173
169
|
children: t.departmentLabel
|
|
174
170
|
}),
|
|
175
|
-
/* @__PURE__ */
|
|
171
|
+
/* @__PURE__ */ E(d, { children: /* @__PURE__ */ E(e, {
|
|
176
172
|
tone: t.statusTone,
|
|
177
173
|
children: t.statusLabel
|
|
178
174
|
}) })
|
|
179
175
|
] }, t.key)) })] })
|
|
180
176
|
})] }) }) : null,
|
|
181
|
-
/* @__PURE__ */
|
|
182
|
-
/* @__PURE__ */
|
|
177
|
+
/* @__PURE__ */ D("div", { children: [
|
|
178
|
+
/* @__PURE__ */ E(s, {
|
|
183
179
|
variant: "component",
|
|
184
180
|
level: 4,
|
|
185
181
|
className: "ttw:mb-2",
|
|
186
182
|
children: Q.rolesSectionHeading
|
|
187
183
|
}),
|
|
188
|
-
/* @__PURE__ */
|
|
184
|
+
/* @__PURE__ */ E("p", {
|
|
189
185
|
className: "ttw:mb-3 ttw:text-sm ttw:text-muted-foreground",
|
|
190
186
|
children: Q.rolesSectionDescription
|
|
191
187
|
}),
|
|
192
|
-
|
|
188
|
+
P ? /* @__PURE__ */ E(y, {
|
|
193
189
|
isLoading: !0,
|
|
194
190
|
loadingLabel: Q.roleLoadingLabel,
|
|
195
|
-
children: /* @__PURE__ */
|
|
191
|
+
children: /* @__PURE__ */ E(c, {
|
|
196
192
|
"aria-hidden": !0,
|
|
197
193
|
className: "ttw:h-12 ttw:w-full"
|
|
198
194
|
})
|
|
199
|
-
}) : /* @__PURE__ */
|
|
195
|
+
}) : /* @__PURE__ */ E("div", {
|
|
200
196
|
className: "ttw:flex ttw:w-full ttw:flex-col ttw:rounded-lg ttw:bg-muted ttw:p-4",
|
|
201
|
-
children: /* @__PURE__ */
|
|
197
|
+
children: /* @__PURE__ */ E("span", {
|
|
202
198
|
className: "ttw:flex ttw:w-full ttw:items-start ttw:gap-3",
|
|
203
|
-
children: /* @__PURE__ */
|
|
199
|
+
children: /* @__PURE__ */ D("span", {
|
|
204
200
|
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-1",
|
|
205
|
-
children: [/* @__PURE__ */
|
|
201
|
+
children: [/* @__PURE__ */ E("span", {
|
|
206
202
|
className: "ttw:text-sm ttw:font-semibold ttw:text-foreground",
|
|
207
|
-
children:
|
|
208
|
-
}),
|
|
203
|
+
children: M
|
|
204
|
+
}), N ? /* @__PURE__ */ E("span", {
|
|
209
205
|
className: "ttw:text-sm ttw:leading-normal ttw:text-muted-foreground",
|
|
210
|
-
children:
|
|
206
|
+
children: N
|
|
211
207
|
}) : null]
|
|
212
208
|
})
|
|
213
209
|
})
|
|
214
210
|
})
|
|
215
211
|
] }),
|
|
216
|
-
/* @__PURE__ */
|
|
212
|
+
/* @__PURE__ */ D("div", { children: [/* @__PURE__ */ E(s, {
|
|
217
213
|
variant: "component",
|
|
218
214
|
level: 4,
|
|
219
215
|
className: "ttw:mb-2",
|
|
220
216
|
children: Q.detailsAccountAccessLabel
|
|
221
|
-
}),
|
|
217
|
+
}), G ? /* @__PURE__ */ E(y, {
|
|
222
218
|
isLoading: !0,
|
|
223
219
|
loadingLabel: Q.roleLoadingLabel,
|
|
224
|
-
children: /* @__PURE__ */
|
|
220
|
+
children: /* @__PURE__ */ E(c, {
|
|
225
221
|
"aria-hidden": !0,
|
|
226
222
|
className: "ttw:h-12 ttw:w-full"
|
|
227
223
|
})
|
|
228
|
-
}) :
|
|
229
|
-
rows:
|
|
224
|
+
}) : W.length > 0 ? /* @__PURE__ */ E(b, {
|
|
225
|
+
rows: W,
|
|
230
226
|
labels: {
|
|
231
227
|
accountNameColumn: Q.accountAccessNameColumn,
|
|
232
228
|
accountNumberColumn: Q.accountAccessNumberColumn,
|
|
233
229
|
accountTypeColumn: Q.accountAccessTypeColumn,
|
|
234
230
|
sourceColumn: Q.accountAccessSourceColumn
|
|
235
231
|
}
|
|
236
|
-
}) : /* @__PURE__ */
|
|
232
|
+
}) : /* @__PURE__ */ E("p", {
|
|
237
233
|
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
238
|
-
children:
|
|
234
|
+
children: U
|
|
239
235
|
})] })
|
|
240
236
|
]
|
|
241
237
|
});
|
|
242
238
|
}
|
|
243
|
-
export {
|
|
239
|
+
export { A as TeamMemberDetails, A as default };
|
|
@@ -16,7 +16,7 @@ var e = {
|
|
|
16
16
|
previousPageButton: "Previous",
|
|
17
17
|
nextPageButton: "Next",
|
|
18
18
|
detailsBackButton: "Back to team",
|
|
19
|
-
detailsMemberDetailsHeading: "
|
|
19
|
+
detailsMemberDetailsHeading: "User details",
|
|
20
20
|
detailsNameLabel: "Name",
|
|
21
21
|
detailsEmailLabel: "Work email address",
|
|
22
22
|
detailsRoleLabel: "Role",
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.211", n = "970ab3de7fb3d3e4842e001aa3f2a5249a04221e", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|