@tesouro/embedded-components-react 0.2.266 → 0.2.269
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 +15 -12
- package/dist/experimental/WidgetSuite.d.ts +25 -1
- package/dist/experimental/index.d.ts +25 -1
- package/dist/index.css +45 -9
- package/dist/index.d.ts +46 -22
- package/dist/index.js +1 -1
- package/dist/lib/AcceptDisclosuresWidget.d.ts +25 -1
- package/dist/lib/BalancesWidget.d.ts +24 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +25 -1
- package/dist/lib/BankAccountsWidget.d.ts +25 -1
- package/dist/lib/BillPayWidget.d.ts +24 -0
- package/dist/lib/BillPayWidget.js +1 -1
- package/dist/lib/CardDetailsWidget.d.ts +25 -1
- package/dist/lib/CardsWidget.d.ts +25 -1
- package/dist/lib/ChartOfAccountsWidget.d.ts +25 -1
- package/dist/lib/CounterpartsWidget.d.ts +25 -1
- package/dist/lib/CreateCardWidget.d.ts +25 -1
- package/dist/lib/ExpenseApprovalPoliciesWidget.d.ts +25 -1
- package/dist/lib/ExpenseManagementWidget.d.ts +25 -1
- package/dist/lib/ExpenseRequirementsWidget.d.ts +25 -1
- package/dist/lib/HelpWidget.d.ts +25 -1
- package/dist/lib/InsightsWidget.d.ts +24 -0
- package/dist/lib/InvoicingWidget.d.ts +25 -1
- package/dist/lib/LinkedAccountsWidget.d.ts +25 -1
- package/dist/lib/ProductsWidget.d.ts +25 -1
- package/dist/lib/ProfileWidget.d.ts +25 -1
- package/dist/lib/ReceiptMatchWidget.d.ts +25 -1
- package/dist/lib/ReceivablesWidget.d.ts +25 -1
- package/dist/lib/SettingsWidget.d.ts +25 -1
- package/dist/lib/TagsWidget.d.ts +25 -1
- package/dist/lib/TeamWidget.d.ts +25 -1
- package/dist/lib/TransfersWidget.d.ts +24 -0
- package/dist/lib/WidgetProvider.d.ts +25 -1
- package/dist/lib/WidgetProviderPublic.d.ts +24 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/index4.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/feature/dist/index17.js +122 -121
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index10.js +99 -7
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +7 -97
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index12.js +99 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index14.js +2 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index15.js +44 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index16.js +1 -50
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index17.js +48 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +9 -5
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index19.js +8 -91
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +6 -2
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index20.js +7 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index21.js +100 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index22.js +3 -9
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index23.js +6 -83
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index24.js +9 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +83 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index26.js +2 -111
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +8 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index28.js +104 -16
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index29.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index30.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +37 -27
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index7.js +15 -116
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index8.js +126 -31
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index9.js +32 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +34 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index15.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +261 -181
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +32 -33
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index7.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/card-details-widget/feature/dist/index6.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/cards-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/create-card-widget/feature/dist/index7.js +94 -93
- package/dist/libs/tesouro-embedded-components-react/expense-approval-policies-widget/feature/dist/lib/ExpenseApprovalPoliciesWidgetFeature.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/feature/dist/index3.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/expense-receipt-match-widget/feature/dist/lib/ReceiptMatchWidget.js +12 -11
- package/dist/libs/tesouro-embedded-components-react/expense-requirements-widget/feature/dist/lib/ExpenseRequirementsWidget.js +7 -6
- package/dist/libs/tesouro-embedded-components-react/gl-code-table-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/help-widget/feature/dist/index3.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index3.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/index9.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/products-widget/feature/dist/index8.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/profile-widget/feature/dist/index4.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/settings-widget/feature/dist/index6.js +10 -9
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +22 -21
- package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/lib/widgetGatewayHosts.js +14 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/RootWidgetProvider.js +76 -67
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/WidgetProvider/WidgetProvider.js +107 -101
- 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/feature/dist/lib/analytics/client.js +12 -4
- package/dist/libs/tesouro-embedded-components-react/tags-widget/feature/dist/index11.js +9 -8
- package/dist/libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js +106 -105
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/index6.js +9 -8
- package/package.json +1 -1
|
@@ -15,73 +15,73 @@ import { useWidgetConfig as re, useWidgetError as ie, useWidgetLoading as ae } f
|
|
|
15
15
|
import "../../../shared/feature/dist/index.js";
|
|
16
16
|
import { DEFAULT_FEATURE_LABELS as oe } from "./index3.js";
|
|
17
17
|
import { TeamWidgetAnalyticsEvent as i, WIDGET_NAME as a } from "./index2.js";
|
|
18
|
-
import { useRolesQuery as
|
|
19
|
-
import { useTeamMembersQuery as
|
|
20
|
-
import { useAllTeamMembersQuery as
|
|
18
|
+
import { useRolesQuery as o } from "../../data-access/dist/index12.js";
|
|
19
|
+
import { useTeamMembersQuery as se } from "../../data-access/dist/index13.js";
|
|
20
|
+
import { useAllTeamMembersQuery as ce } from "../../data-access/dist/index14.js";
|
|
21
21
|
import "../../data-access/dist/index.js";
|
|
22
|
-
import { useDepartmentsAdmin as
|
|
23
|
-
import { isMemberActionable as
|
|
24
|
-
import { useInviteForm as
|
|
25
|
-
import { useLocationsAdmin as
|
|
26
|
-
import { useMemberAccountAccess as
|
|
27
|
-
import { canEditMemberProfile as
|
|
28
|
-
import { useTeamActions as
|
|
29
|
-
import { InviteTeamMemberForm as
|
|
30
|
-
import { EditTeamMemberPanel as
|
|
31
|
-
import { GroupAdminDrawer as
|
|
32
|
-
import { GroupAdminPanel as
|
|
33
|
-
import { TeamActionDialog as
|
|
34
|
-
import { TeamMembersTable as
|
|
35
|
-
import { TeamMemberDetails as
|
|
36
|
-
import { TeamTabs as
|
|
22
|
+
import { useDepartmentsAdmin as le } from "./index6.js";
|
|
23
|
+
import { isMemberActionable as ue, resolveReportingManager as de, toAssignableRoles as fe, toDirectReportRows as pe, toRoleDisplayCatalog as me, toTeamMemberDetails as he, toTeamMemberRows as ge } from "./index11.js";
|
|
24
|
+
import { useInviteForm as _e } from "./index12.js";
|
|
25
|
+
import { useLocationsAdmin as ve } from "./index13.js";
|
|
26
|
+
import { useMemberAccountAccess as ye } from "./index14.js";
|
|
27
|
+
import { canEditMemberProfile as be, canEditMemberRole as xe, useMemberEdit as Se } from "./index15.js";
|
|
28
|
+
import { useTeamActions as Ce } from "./index16.js";
|
|
29
|
+
import { InviteTeamMemberForm as we } from "../../ui/dist/index8.js";
|
|
30
|
+
import { EditTeamMemberPanel as Te } from "../../ui/dist/index10.js";
|
|
31
|
+
import { GroupAdminDrawer as Ee } from "../../ui/dist/index12.js";
|
|
32
|
+
import { GroupAdminPanel as De } from "../../ui/dist/index14.js";
|
|
33
|
+
import { TeamActionDialog as s } from "../../ui/dist/index15.js";
|
|
34
|
+
import { TeamMembersTable as Oe } from "../../ui/dist/index16.js";
|
|
35
|
+
import { TeamMemberDetails as ke } from "../../ui/dist/index17.js";
|
|
36
|
+
import { TeamTabs as Ae } from "../../ui/dist/index18.js";
|
|
37
37
|
import "../../ui/dist/index.js";
|
|
38
|
-
import { useEffect as
|
|
39
|
-
import { Fragment as
|
|
40
|
-
import { Ban as
|
|
38
|
+
import { useEffect as c, useMemo as l, useState as u } from "react";
|
|
39
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
40
|
+
import { Ban as je, Building2 as Me, MailIcon as Ne, MapPin as Pe, Trash2 as Fe } from "lucide-react";
|
|
41
41
|
//#region ../../libs/tesouro-embedded-components-react/team-widget/feature/dist/index17.js
|
|
42
|
-
var
|
|
42
|
+
var Ie = [
|
|
43
43
|
5,
|
|
44
44
|
10,
|
|
45
45
|
25
|
|
46
|
-
],
|
|
47
|
-
function
|
|
48
|
-
let
|
|
46
|
+
], Le = 10, Re = [t.UserReadOrg], m = [t.UserWriteOrg, t.UserWriteAll], ze = [t.UserWriteAll], Be = [t.UserWriteOrg], Ve = [t.UserWriteOrg], He = [t.RoleReadOrg], Ue = [t.UserWriteOrg], We = [t.BankAccountReadOrg], Ge = [t.ExternalBankAccountReadOrg], Ke = [t.BankAccountWriteOrg];
|
|
47
|
+
function h({ labels: r, featureLabels: a, title: h, acceptInviteRedirectUri: g }) {
|
|
48
|
+
let _ = l(() => ({
|
|
49
49
|
...oe,
|
|
50
50
|
...a
|
|
51
|
-
}), [a]),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}, [
|
|
55
|
-
let { organizationId: v, widgetToken: Je, initResponse: y } = re(), b = y?.userId ?? void 0, Ye = ae(), Xe = !!ie(), x = !!(v && Je), S =
|
|
51
|
+
}), [a]), qe = ne();
|
|
52
|
+
c(() => {
|
|
53
|
+
qe(i.Mounted);
|
|
54
|
+
}, [qe]);
|
|
55
|
+
let { organizationId: v, widgetToken: Je, initResponse: y } = re(), b = y?.userId ?? void 0, Ye = ae(), Xe = !!ie(), x = !!(v && Je), S = l(() => e(y?.scopes, Re), [y?.scopes]), C = x && S && !!y, w = y?.scopes, T = e(w, He), Ze = e(w, Ue), Qe = x && e(w, m) && T && Ze, $e = x && S && e(w, m), et = x && e(w, ze), tt = x && e(w, Be), nt = x && T && Ze, rt = x && e(w, Ve), it = x && S && e(w, [t.UserWriteOrg]), E = x && e(w, We), D = x && e(w, Ge), O = x && e(w, Ke) && E && D, [k, at] = u("members"), A = le({
|
|
56
56
|
canRead: S && k === "departments",
|
|
57
57
|
canWrite: it,
|
|
58
|
-
featureLabels:
|
|
59
|
-
}), j =
|
|
58
|
+
featureLabels: _
|
|
59
|
+
}), j = ve({
|
|
60
60
|
canRead: S && k === "locations",
|
|
61
61
|
canWrite: it,
|
|
62
|
-
featureLabels:
|
|
62
|
+
featureLabels: _
|
|
63
63
|
}), ot = [
|
|
64
64
|
{
|
|
65
65
|
id: "members",
|
|
66
|
-
label:
|
|
66
|
+
label: _.teamMembersTab
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
id: "departments",
|
|
70
|
-
label:
|
|
70
|
+
label: _.departmentsTab
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
id: "locations",
|
|
74
|
-
label:
|
|
74
|
+
label: _.locationsTab
|
|
75
75
|
}
|
|
76
|
-
], [st, M] =
|
|
76
|
+
], [st, M] = u(), [N, ct] = u(Le), [lt, P] = u(0), [F, I] = u(), ut = (Qe || nt) && T, dt = C && T && (!!F || !ut), [ft, pt] = u(), L = se({
|
|
77
77
|
Limit: N,
|
|
78
78
|
Status: "ALL",
|
|
79
79
|
PaginationToken: st,
|
|
80
80
|
enabled: C
|
|
81
|
-
}), mt = y?.organizationTypes ?? [], R =
|
|
81
|
+
}), mt = y?.organizationTypes ?? [], R = l(() => ({
|
|
82
82
|
organizationId: v ?? "",
|
|
83
83
|
organizationTypes: mt
|
|
84
|
-
}), [v, mt]), z = ee({ enabled: dt }), ht =
|
|
84
|
+
}), [v, mt]), z = ee({ enabled: dt }), ht = l(() => me(z.data?.data ?? [], R), [z.data?.data, R]), B = C ? L.data?.data ?? [] : [], V = o({ enabled: ut }), H = l(() => fe(V.data?.data ?? [], R), [V.data, R]), gt = ht.length > 0 && !z.isResolving && !z.isError, _t = l(() => me(V.data?.data ?? [], R), [V.data, R]), U = gt ? ht : _t, vt = ge(B, _, I, U, v), yt = !!V.data, bt = H.length > 0, xt = Qe && yt && bt, St = nt && yt && bt, W = _e({
|
|
85
85
|
canInvite: xt,
|
|
86
86
|
canReadDirectory: S,
|
|
87
87
|
canManageAccountAccess: O,
|
|
@@ -90,9 +90,9 @@ function m({ labels: r, featureLabels: a, title: m, acceptInviteRedirectUri: h }
|
|
|
90
90
|
roles: H,
|
|
91
91
|
roleCatalog: U,
|
|
92
92
|
organizationId: v,
|
|
93
|
-
featureLabels:
|
|
94
|
-
acceptInviteRedirectUri:
|
|
95
|
-
}), G =
|
|
93
|
+
featureLabels: _,
|
|
94
|
+
acceptInviteRedirectUri: g
|
|
95
|
+
}), G = Se({
|
|
96
96
|
canEditAnyProfile: et,
|
|
97
97
|
canEditOrgProfile: tt,
|
|
98
98
|
organizationId: v,
|
|
@@ -105,54 +105,54 @@ function m({ labels: r, featureLabels: a, title: m, acceptInviteRedirectUri: h }
|
|
|
105
105
|
members: B,
|
|
106
106
|
roles: H,
|
|
107
107
|
roleCatalog: U,
|
|
108
|
-
featureLabels:
|
|
109
|
-
}), K =
|
|
108
|
+
featureLabels: _
|
|
109
|
+
}), K = Ce({
|
|
110
110
|
canDeactivate: rt,
|
|
111
111
|
canResendInvite: $e,
|
|
112
112
|
members: B,
|
|
113
|
-
featureLabels:
|
|
114
|
-
acceptInviteRedirectUri:
|
|
115
|
-
}), Ct = L.data?.nextPaginationToken, wt = L.data?.prevPaginationToken, q = F ? B.find((e) => e.id === F) : void 0, J =
|
|
113
|
+
featureLabels: _,
|
|
114
|
+
acceptInviteRedirectUri: g
|
|
115
|
+
}), Ct = L.data?.nextPaginationToken, wt = L.data?.prevPaginationToken, q = F ? B.find((e) => e.id === F) : void 0, J = ce({ enabled: !!q && S }), Tt = J.data?.data ?? B, Y = q ? de(Tt, q.reportingManagerUserId) : void 0, Et = l(() => q && J.isComplete ? pe(J.data?.data ?? [], q.id, _, U, v) : [], [
|
|
116
116
|
q,
|
|
117
117
|
J.isComplete,
|
|
118
118
|
J.data?.data,
|
|
119
|
-
|
|
119
|
+
_,
|
|
120
120
|
U,
|
|
121
121
|
v
|
|
122
122
|
]), Dt = !!L.data, Ot = Dt && !!F && !q;
|
|
123
|
-
|
|
123
|
+
c(() => {
|
|
124
124
|
Ot && I(void 0);
|
|
125
125
|
}, [Ot]);
|
|
126
126
|
let kt = L.isError;
|
|
127
|
-
|
|
127
|
+
c(() => {
|
|
128
128
|
kt && (M(void 0), P(0));
|
|
129
129
|
}, [kt]);
|
|
130
|
-
let X = vt.length, At = X === 0 ? 0 : lt * N + 1, jt = lt * N + X, Mt = `${
|
|
130
|
+
let X = vt.length, At = X === 0 ? 0 : lt * N + 1, jt = lt * N + X, Mt = `${_.viewingRangeLabel} ${At}-${jt}`, Z = ue(q), Nt = !!(q && be({
|
|
131
131
|
member: q,
|
|
132
132
|
organizationId: v,
|
|
133
133
|
canEditAnyProfile: et,
|
|
134
134
|
canEditOrgProfile: tt,
|
|
135
135
|
currentUserId: b
|
|
136
|
-
})), Pt = !!(q &&
|
|
136
|
+
})), Pt = !!(q && xe({
|
|
137
137
|
member: q,
|
|
138
138
|
organizationId: v,
|
|
139
139
|
canEditRole: St,
|
|
140
140
|
currentUserId: b
|
|
141
|
-
})), Ft = O && !!q && q?.id !== b, It = Nt || Pt || Ft, Q =
|
|
141
|
+
})), Ft = O && !!q && q?.id !== b, It = Nt || Pt || Ft, Q = ye({
|
|
142
142
|
selectedMember: q && Z ? q : void 0,
|
|
143
143
|
canReadInternalAccounts: E,
|
|
144
144
|
canReadExternalAccounts: D,
|
|
145
|
-
featureLabels:
|
|
146
|
-
}), $ =
|
|
145
|
+
featureLabels: _
|
|
146
|
+
}), $ = l(() => q ? he(q, _, U, v) : void 0, [
|
|
147
147
|
q,
|
|
148
|
-
|
|
148
|
+
_,
|
|
149
149
|
U,
|
|
150
150
|
v
|
|
151
151
|
]);
|
|
152
|
-
return /* @__PURE__ */
|
|
153
|
-
/* @__PURE__ */
|
|
154
|
-
|
|
155
|
-
G.isEditOpen ? /* @__PURE__ */
|
|
152
|
+
return /* @__PURE__ */ p(d, { children: [
|
|
153
|
+
/* @__PURE__ */ f(n, {}),
|
|
154
|
+
h ? /* @__PURE__ */ f(te, { children: h }) : null,
|
|
155
|
+
G.isEditOpen ? /* @__PURE__ */ f(Te, {
|
|
156
156
|
open: G.isEditOpen,
|
|
157
157
|
memberName: G.editMemberName,
|
|
158
158
|
memberEmail: G.editMemberEmail,
|
|
@@ -190,8 +190,8 @@ function m({ labels: r, featureLabels: a, title: m, acceptInviteRedirectUri: h }
|
|
|
190
190
|
onFormChange: G.onEditFormChange,
|
|
191
191
|
onSubmit: G.onEditSubmit,
|
|
192
192
|
labels: r
|
|
193
|
-
}) : q ? /* @__PURE__ */
|
|
194
|
-
...
|
|
193
|
+
}) : q ? /* @__PURE__ */ f(ke, {
|
|
194
|
+
...he(q, _, U, v),
|
|
195
195
|
avatarSeed: q.email,
|
|
196
196
|
reportingManagerName: Y?.name,
|
|
197
197
|
reportingManagerInitials: Y?.initials,
|
|
@@ -208,7 +208,7 @@ function m({ labels: r, featureLabels: a, title: m, acceptInviteRedirectUri: h }
|
|
|
208
208
|
onResendClick: $e && (q.status ?? "").trim().toUpperCase() === "INVITED" ? () => K.openResendConfirmation(q.id) : void 0,
|
|
209
209
|
onDeactivateClick: rt && Z ? () => K.openDeactivateConfirmation(q.id) : void 0,
|
|
210
210
|
labels: r
|
|
211
|
-
}) : W.isInviteOpen ? /* @__PURE__ */
|
|
211
|
+
}) : W.isInviteOpen ? /* @__PURE__ */ f(we, {
|
|
212
212
|
form: W.inviteForm,
|
|
213
213
|
roleOptions: W.roleOptions,
|
|
214
214
|
departmentOptions: W.departmentOptions,
|
|
@@ -232,57 +232,57 @@ function m({ labels: r, featureLabels: a, title: m, acceptInviteRedirectUri: h }
|
|
|
232
232
|
onCancel: W.closeInviteForm,
|
|
233
233
|
onSubmit: W.onInviteSubmit,
|
|
234
234
|
labels: r
|
|
235
|
-
}) : /* @__PURE__ */
|
|
235
|
+
}) : /* @__PURE__ */ f("div", {
|
|
236
236
|
className: "ttw:space-y-4 ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-6",
|
|
237
|
-
children: /* @__PURE__ */
|
|
237
|
+
children: /* @__PURE__ */ f(Ae, {
|
|
238
238
|
tabs: ot,
|
|
239
239
|
activeTabId: k,
|
|
240
240
|
onTabChange: at,
|
|
241
|
-
children: k === "departments" ? /* @__PURE__ */
|
|
242
|
-
/* @__PURE__ */
|
|
243
|
-
icon: /* @__PURE__ */
|
|
241
|
+
children: k === "departments" ? /* @__PURE__ */ p(d, { children: [
|
|
242
|
+
/* @__PURE__ */ f(De, {
|
|
243
|
+
icon: /* @__PURE__ */ f(Me, { className: "ttw:size-4" }),
|
|
244
244
|
...A.panel
|
|
245
245
|
}),
|
|
246
|
-
/* @__PURE__ */
|
|
247
|
-
/* @__PURE__ */
|
|
246
|
+
/* @__PURE__ */ f(Ee, { ...A.drawer }),
|
|
247
|
+
/* @__PURE__ */ f(s, {
|
|
248
248
|
open: A.deleteDialog.open,
|
|
249
|
-
icon: /* @__PURE__ */
|
|
249
|
+
icon: /* @__PURE__ */ f(Fe, {
|
|
250
250
|
"aria-hidden": !0,
|
|
251
251
|
className: "ttw:size-6"
|
|
252
252
|
}),
|
|
253
|
-
title:
|
|
254
|
-
description:
|
|
253
|
+
title: _.departmentDeleteDialogTitle,
|
|
254
|
+
description: _.departmentDeleteDialogDescription,
|
|
255
255
|
subjectName: A.deleteDialog.subjectName,
|
|
256
|
-
confirmButtonLabel:
|
|
256
|
+
confirmButtonLabel: _.departmentDeleteConfirmButton,
|
|
257
257
|
errorMessage: A.deleteDialog.errorMessage,
|
|
258
258
|
isConfirming: A.deleteDialog.isConfirming,
|
|
259
259
|
onOpenChange: A.deleteDialog.onOpenChange,
|
|
260
260
|
onConfirm: A.deleteDialog.onConfirm,
|
|
261
261
|
labels: r
|
|
262
262
|
})
|
|
263
|
-
] }) : k === "locations" ? /* @__PURE__ */
|
|
264
|
-
/* @__PURE__ */
|
|
265
|
-
icon: /* @__PURE__ */
|
|
263
|
+
] }) : k === "locations" ? /* @__PURE__ */ p(d, { children: [
|
|
264
|
+
/* @__PURE__ */ f(De, {
|
|
265
|
+
icon: /* @__PURE__ */ f(Pe, { className: "ttw:size-4" }),
|
|
266
266
|
...j.panel
|
|
267
267
|
}),
|
|
268
|
-
/* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
268
|
+
/* @__PURE__ */ f(Ee, { ...j.drawer }),
|
|
269
|
+
/* @__PURE__ */ f(s, {
|
|
270
270
|
open: j.deleteDialog.open,
|
|
271
|
-
icon: /* @__PURE__ */
|
|
271
|
+
icon: /* @__PURE__ */ f(Fe, {
|
|
272
272
|
"aria-hidden": !0,
|
|
273
273
|
className: "ttw:size-6"
|
|
274
274
|
}),
|
|
275
|
-
title:
|
|
276
|
-
description:
|
|
275
|
+
title: _.locationDeleteDialogTitle,
|
|
276
|
+
description: _.locationDeleteDialogDescription,
|
|
277
277
|
subjectName: j.deleteDialog.subjectName,
|
|
278
|
-
confirmButtonLabel:
|
|
278
|
+
confirmButtonLabel: _.locationDeleteConfirmButton,
|
|
279
279
|
errorMessage: j.deleteDialog.errorMessage,
|
|
280
280
|
isConfirming: j.deleteDialog.isConfirming,
|
|
281
281
|
onOpenChange: j.deleteDialog.onOpenChange,
|
|
282
282
|
onConfirm: j.deleteDialog.onConfirm,
|
|
283
283
|
labels: r
|
|
284
284
|
})
|
|
285
|
-
] }) : /* @__PURE__ */
|
|
285
|
+
] }) : /* @__PURE__ */ f(Oe, {
|
|
286
286
|
rows: vt,
|
|
287
287
|
isLoading: !Xe && (!x || Ye && !y || C && L.isLoading),
|
|
288
288
|
isError: Xe || C && L.isError,
|
|
@@ -290,7 +290,7 @@ function m({ labels: r, featureLabels: a, title: m, acceptInviteRedirectUri: h }
|
|
|
290
290
|
isPreviousPageDisabled: !wt,
|
|
291
291
|
isNextPageDisabled: !Ct,
|
|
292
292
|
pageSize: N,
|
|
293
|
-
pageSizeOptions:
|
|
293
|
+
pageSizeOptions: Ie,
|
|
294
294
|
rangeLabel: Mt,
|
|
295
295
|
onPageSizeChange: (e) => {
|
|
296
296
|
ct(e), M(void 0), P(0);
|
|
@@ -307,34 +307,34 @@ function m({ labels: r, featureLabels: a, title: m, acceptInviteRedirectUri: h }
|
|
|
307
307
|
})
|
|
308
308
|
})
|
|
309
309
|
}),
|
|
310
|
-
/* @__PURE__ */
|
|
310
|
+
/* @__PURE__ */ f(s, {
|
|
311
311
|
open: K.isDeactivateOpen,
|
|
312
|
-
icon: /* @__PURE__ */
|
|
312
|
+
icon: /* @__PURE__ */ f(je, {
|
|
313
313
|
"aria-hidden": !0,
|
|
314
314
|
className: "ttw:size-6"
|
|
315
315
|
}),
|
|
316
|
-
title:
|
|
317
|
-
description:
|
|
316
|
+
title: _.deactivateDialogTitle,
|
|
317
|
+
description: _.deactivateDialogDescription,
|
|
318
318
|
subjectName: K.deactivateMemberName,
|
|
319
319
|
subjectDetail: K.deactivateMemberEmail,
|
|
320
|
-
confirmButtonLabel:
|
|
320
|
+
confirmButtonLabel: _.deactivateConfirmButton,
|
|
321
321
|
errorMessage: K.deactivateErrorMessage,
|
|
322
322
|
isConfirming: K.isDeactivating,
|
|
323
323
|
onOpenChange: K.onDeactivateOpenChange,
|
|
324
324
|
onConfirm: K.onDeactivateConfirm,
|
|
325
325
|
labels: r
|
|
326
326
|
}),
|
|
327
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ f(s, {
|
|
328
328
|
open: K.isResendOpen,
|
|
329
|
-
icon: /* @__PURE__ */
|
|
329
|
+
icon: /* @__PURE__ */ f(Ne, {
|
|
330
330
|
"aria-hidden": !0,
|
|
331
331
|
className: "ttw:size-6"
|
|
332
332
|
}),
|
|
333
|
-
title:
|
|
334
|
-
description:
|
|
333
|
+
title: _.resendDialogTitle,
|
|
334
|
+
description: _.resendDialogDescription,
|
|
335
335
|
subjectName: K.resendMemberName,
|
|
336
336
|
subjectDetail: K.resendMemberEmail,
|
|
337
|
-
confirmButtonLabel:
|
|
337
|
+
confirmButtonLabel: _.resendConfirmButton,
|
|
338
338
|
confirmVariant: "default",
|
|
339
339
|
errorMessage: K.resendErrorMessage,
|
|
340
340
|
isConfirming: K.isResending,
|
|
@@ -344,21 +344,22 @@ function m({ labels: r, featureLabels: a, title: m, acceptInviteRedirectUri: h }
|
|
|
344
344
|
})
|
|
345
345
|
] });
|
|
346
346
|
}
|
|
347
|
-
function
|
|
348
|
-
return /* @__PURE__ */
|
|
347
|
+
function g({ baseUrl: e, widgetToken: t, organizationId: ee, configClient: n, gatewayRouting: te, linkComponent: ne, implementation: re, uiFramework: ie, errorFallback: ae, onError: oe, analytics: i, ...o }) {
|
|
348
|
+
return /* @__PURE__ */ f(r, {
|
|
349
349
|
widgetName: a,
|
|
350
350
|
baseUrl: e,
|
|
351
351
|
widgetToken: t,
|
|
352
352
|
organizationId: ee,
|
|
353
353
|
configClient: n,
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
354
|
+
gatewayRouting: te,
|
|
355
|
+
linkComponent: ne,
|
|
356
|
+
implementation: re,
|
|
357
|
+
uiFramework: ie,
|
|
358
|
+
errorFallback: ae,
|
|
359
|
+
onError: oe,
|
|
360
|
+
analytics: i,
|
|
361
|
+
children: /* @__PURE__ */ f(h, { ...o })
|
|
361
362
|
});
|
|
362
363
|
}
|
|
363
364
|
//#endregion
|
|
364
|
-
export {
|
|
365
|
+
export { g as TeamWidget, g as default };
|
|
@@ -9,7 +9,7 @@ import { CardProgram as n } from "../../../shared/feature/dist/lib/card/cardProg
|
|
|
9
9
|
import "../../../shared/feature/dist/index.js";
|
|
10
10
|
import { BankAccountsWidget as r } from "../../../bank-accounts-widget/feature/dist/index8.js";
|
|
11
11
|
import "../../../bank-accounts-widget/feature/dist/index.js";
|
|
12
|
-
import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/
|
|
12
|
+
import { BillPayWidget as i } from "../../../bill-pay-widget/feature/dist/index30.js";
|
|
13
13
|
import "../../../bill-pay-widget/feature/dist/index.js";
|
|
14
14
|
import { CardsWidget as a } from "../../../cards-widget/feature/dist/index8.js";
|
|
15
15
|
import "../../../cards-widget/feature/dist/index.js";
|
|
@@ -122,20 +122,21 @@ function D({ sections: r, disclosureLinks: m, labels: D, sectionLabels: O, secti
|
|
|
122
122
|
labels: D
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
|
-
function O({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i,
|
|
125
|
+
function O({ baseUrl: e, widgetToken: t, organizationId: n, configClient: i, gatewayRouting: a, linkComponent: o, implementation: s, uiFramework: c, errorFallback: l, onError: u, analytics: d, ...f }) {
|
|
126
126
|
return /* @__PURE__ */ w(r, {
|
|
127
127
|
widgetName: m,
|
|
128
128
|
baseUrl: e,
|
|
129
129
|
widgetToken: t,
|
|
130
130
|
organizationId: n,
|
|
131
131
|
configClient: i,
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
132
|
+
gatewayRouting: a,
|
|
133
|
+
linkComponent: o,
|
|
134
|
+
implementation: s,
|
|
135
|
+
uiFramework: c,
|
|
136
|
+
errorFallback: l,
|
|
137
|
+
onError: u,
|
|
138
|
+
analytics: d,
|
|
139
|
+
children: /* @__PURE__ */ w(D, { ...f })
|
|
139
140
|
});
|
|
140
141
|
}
|
|
141
142
|
//#endregion
|