@argusoft/medplat-core 1.0.17 → 1.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/{AddMenuConfiguration-QWfpcnuP.js → AddMenuConfiguration-DsnY0Rws.js} +544 -544
  2. package/dist/AddMenuConfiguration-DsnY0Rws.js.map +1 -0
  3. package/dist/{AddRoleDrawer-SvntLdRu.js → AddRoleDrawer-Bc655LQU.js} +17 -17
  4. package/dist/{AddRoleDrawer-SvntLdRu.js.map → AddRoleDrawer-Bc655LQU.js.map} +1 -1
  5. package/dist/ChangePasswordModalCore-50EzprTk.js +5495 -0
  6. package/dist/ChangePasswordModalCore-50EzprTk.js.map +1 -0
  7. package/dist/{ConditionConfig-DB0FqwgG.js → ConditionConfig-D2hOAa4n.js} +2 -2
  8. package/dist/{ConditionConfig-DB0FqwgG.js.map → ConditionConfig-D2hOAa4n.js.map} +1 -1
  9. package/dist/{EntityManagement-DQKXnEzz.js → EntityManagement-D4nG7wUX.js} +2 -2
  10. package/dist/{EntityManagement-DQKXnEzz.js.map → EntityManagement-D4nG7wUX.js.map} +1 -1
  11. package/dist/ImmunizationConfigurationBase-C5wnjI_-.js +5706 -0
  12. package/dist/ImmunizationConfigurationBase-C5wnjI_-.js.map +1 -0
  13. package/dist/ImmunizationConfigurationBase.css +1 -1
  14. package/dist/{ManageDynamicFeature-CsIett5x.js → ManageDynamicFeature-i6ARKe36.js} +2 -2
  15. package/dist/{ManageDynamicFeature-CsIett5x.js.map → ManageDynamicFeature-i6ARKe36.js.map} +1 -1
  16. package/dist/{ManageEventConfiguration-0YBDaxOI.js → ManageEventConfiguration-CHugu2vQ.js} +92 -92
  17. package/dist/ManageEventConfiguration-CHugu2vQ.js.map +1 -0
  18. package/dist/{ManageUser-eBS0yC5k.js → ManageUser-C6dlK-Mr.js} +3 -4
  19. package/dist/{ManageUser-eBS0yC5k.js.map → ManageUser-C6dlK-Mr.js.map} +1 -1
  20. package/dist/{MobileMenuManagement-BmrO-7MN.js → MobileMenuManagement-CV6QCeos.js} +15 -15
  21. package/dist/MobileMenuManagement-CV6QCeos.js.map +1 -0
  22. package/dist/{MobileTypeEventConfigModal-Ltm529jG.js → MobileTypeEventConfigModal-2w0WQ3WY.js} +2 -2
  23. package/dist/{MobileTypeEventConfigModal-Ltm529jG.js.map → MobileTypeEventConfigModal-2w0WQ3WY.js.map} +1 -1
  24. package/dist/{NewServerManagement-5YcAtF-g.js → NewServerManagement-Cxe0dV0O.js} +5 -5
  25. package/dist/NewServerManagement-Cxe0dV0O.js.map +1 -0
  26. package/dist/{OtherTypeEventConfigModal-dXt2qDg_.js → OtherTypeEventConfigModal-D1p8M39y.js} +43 -43
  27. package/dist/{OtherTypeEventConfigModal-dXt2qDg_.js.map → OtherTypeEventConfigModal-D1p8M39y.js.map} +1 -1
  28. package/dist/{QueryManagement-DGHV_-d5.js → QueryManagement-CRykYGum.js} +3 -3
  29. package/dist/QueryManagement-CRykYGum.js.map +1 -0
  30. package/dist/SecurityAuditLogList-Dod711KT.js +874 -0
  31. package/dist/SecurityAuditLogList-Dod711KT.js.map +1 -0
  32. package/dist/{TableDetails-DztbjsIA.js → TableDetails-Cf_YfnY2.js} +235 -235
  33. package/dist/TableDetails-Cf_YfnY2.js.map +1 -0
  34. package/dist/{TableList-DYwotUDO.js → TableList-HGbEN4bv.js} +28 -28
  35. package/dist/TableList-HGbEN4bv.js.map +1 -0
  36. package/dist/{TypeConfiguration-DYbBG_hZ.js → TypeConfiguration-D-3xNcyd.js} +2 -2
  37. package/dist/{TypeConfiguration-DYbBG_hZ.js.map → TypeConfiguration-D-3xNcyd.js.map} +1 -1
  38. package/dist/{UserList-BAeAFeXZ.js → UserList-D7GL7jvO.js} +420 -421
  39. package/dist/UserList-D7GL7jvO.js.map +1 -0
  40. package/dist/{WidgetList-D-fIf3N2.js → WidgetList-B3Sm9weK.js} +2 -2
  41. package/dist/{WidgetList-D-fIf3N2.js.map → WidgetList-B3Sm9weK.js.map} +1 -1
  42. package/dist/index-D9YNFPn9.js +1439 -0
  43. package/dist/index-D9YNFPn9.js.map +1 -0
  44. package/dist/index.css +1 -1
  45. package/dist/index.js +189 -174
  46. package/dist/index.js.map +1 -1
  47. package/dist/{index-BFznsakV.js → pdfmake-Cf-381ou.js} +13951 -15385
  48. package/dist/pdfmake-Cf-381ou.js.map +1 -0
  49. package/package.json +1 -1
  50. package/dist/AddMenuConfiguration-QWfpcnuP.js.map +0 -1
  51. package/dist/ChangePasswordModalCore-ClND1mel.js +0 -181
  52. package/dist/ChangePasswordModalCore-ClND1mel.js.map +0 -1
  53. package/dist/ImmunizationConfigurationBase-VqVvVR57.js +0 -5389
  54. package/dist/ImmunizationConfigurationBase-VqVvVR57.js.map +0 -1
  55. package/dist/ManageEventConfiguration-0YBDaxOI.js.map +0 -1
  56. package/dist/MobileMenuManagement-BmrO-7MN.js.map +0 -1
  57. package/dist/NewServerManagement-5YcAtF-g.js.map +0 -1
  58. package/dist/QueryManagement-DGHV_-d5.js.map +0 -1
  59. package/dist/SecurityAuditLogList-DHTcOtbx.js +0 -748
  60. package/dist/SecurityAuditLogList-DHTcOtbx.js.map +0 -1
  61. package/dist/TableDetails-DztbjsIA.js.map +0 -1
  62. package/dist/TableList-DYwotUDO.js.map +0 -1
  63. package/dist/UserList-BAeAFeXZ.js.map +0 -1
  64. package/dist/index-BFznsakV.js.map +0 -1
@@ -1,191 +1,191 @@
1
- import { jsx as a, jsxs as p, Fragment as ue } from "react/jsx-runtime";
2
- import { useTranslateProvider as rt } from "@/common/languageTranslator/TranslationContext";
3
- import { U as Lt, a as Mt, g as it, b as Rt, c as $t, t as Ft, d as Ht, e as Ze } from "./UserListSkeleton-DhIJ5X3y.js";
4
- import { showToast as v } from "@/common/toaster/toaster.jsx";
5
- import Vt from "@/hooks/usePagination.js";
6
- import { getAssignedFeatures as jt } from "@/utils/feature.js";
7
- import et from "@/views/custom-components/CustomConfirmationModal.jsx";
8
- import Dt from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
9
- import zt from "@/views/custom-components/SideOverlay.jsx";
1
+ import { jsx as a, jsxs as p, Fragment as ye } from "react/jsx-runtime";
2
+ import { useTranslateProvider as st } from "@/common/languageTranslator/TranslationContext";
3
+ import { U as wt, a as Bt, g as rt, b as Lt, c as Mt, t as Rt, d as $t, e as Xe } from "./UserListSkeleton-DhIJ5X3y.js";
4
+ import { showToast as T } from "@/common/toaster/toaster.jsx";
5
+ import Ht from "@/hooks/usePagination.js";
6
+ import { getAssignedFeatures as Ft } from "@/utils/feature.js";
7
+ import Ze from "@/views/custom-components/CustomConfirmationModal.jsx";
8
+ import Vt from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
9
+ import jt from "@/views/custom-components/SideOverlay.jsx";
10
10
  import f from "prop-types";
11
- import { useState as d, useEffect as Q, Suspense as Yt, lazy as Gt, useRef as tt, useMemo as qt, useCallback as Jt } from "react";
12
- import { InputLabel as Se, Switch as Qt, Button as Ue, Box as _, Card as Kt, Typography as at, TextField as Pt, CircularProgress as ot, Tooltip as Wt } from "@mui/material";
13
- import B from "@mui/material/Grid2";
14
- import lt from "@/views/custom-components/CustomDropdown";
15
- import { useForm as Xt, FormProvider as Zt } from "react-hook-form";
16
- import ct from "@/hooks/useTrackEvent";
17
- import { showToast as ea } from "@/common/toaster/toaster";
18
- import { useDispatch as dt, useSelector as ta } from "react-redux";
11
+ import { useState as d, useEffect as q, Suspense as Dt, lazy as zt, useRef as et, useMemo as Yt, useCallback as Gt } from "react";
12
+ import { InputLabel as Ue, Switch as qt, Button as Se, Box as E, Card as Jt, Typography as tt, TextField as Qt, CircularProgress as at, Tooltip as Kt } from "@mui/material";
13
+ import _ from "@mui/material/Grid2";
14
+ import ot from "@/views/custom-components/CustomDropdown";
15
+ import { useForm as Pt, FormProvider as Wt } from "react-hook-form";
16
+ import it from "@/hooks/useTrackEvent";
17
+ import { showToast as Xt } from "@/common/toaster/toaster";
18
+ import { useDispatch as ct, useSelector as Zt } from "react-redux";
19
19
  import { setUserDetails as Ae } from "@/store/reducers/AuthenticationReducer";
20
- import { useLocation as mt, useNavigate as aa } from "react-router";
21
- import ge from "@/common/services/util/GeneralUtil";
22
- import { useTheme as oa, alpha as T } from "@mui/material/styles";
23
- import { execute as la } from "@/common/services/QueryBuilder";
24
- import { faPen as na, faBars as sa, faFilePdf as nt, faFileExcel as st, faUsers as ra, faCheckCircle as ia, faTimesCircle as ca, faUserShield as da, faPhone as ma, faHospital as fa } from "@fortawesome/free-solid-svg-icons";
25
- import { FontAwesomeIcon as D } from "@fortawesome/react-fontawesome";
26
- import { F as pa } from "./FileSaver.min-CN9EpL2h.js";
27
- import { x as ae } from "./xlsx.min-D1LFqt_b.js";
28
- import ua from "@/hooks/useDownloadPdf.js";
29
- import he from "@/views/custom-components/CustomStatsComponent.jsx";
30
- import './UserList.css';const ha = Gt(
20
+ import { useLocation as dt, useNavigate as ea } from "react-router";
21
+ import xe from "@/common/services/util/GeneralUtil";
22
+ import { useTheme as ta, alpha as k } from "@mui/material/styles";
23
+ import { execute as aa } from "@/common/services/QueryBuilder";
24
+ import { faPen as oa, faBars as la, faFilePdf as lt, faFileExcel as nt, faUsers as na, faCheckCircle as sa, faTimesCircle as ra, faUserShield as ia, faPhone as ca, faHospital as da } from "@fortawesome/free-solid-svg-icons";
25
+ import { FontAwesomeIcon as V } from "@fortawesome/react-fontawesome";
26
+ import { F as ma } from "./FileSaver.min-CN9EpL2h.js";
27
+ import { x as W } from "./xlsx.min-D1LFqt_b.js";
28
+ import fa from "@/hooks/useDownloadPdf.js";
29
+ import be from "@/views/custom-components/CustomStatsComponent.jsx";
30
+ import './UserList.css';const pa = zt(
31
31
  () => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")
32
- ), ft = ({
33
- handleOverlayState: K,
34
- setIsLoading: R,
35
- isLoading: oe,
36
- setLocationId: ie,
37
- setRoleDetails: w,
38
- roleDetails: z,
39
- status: le,
40
- setStatus: ce,
41
- selectedLocation: $,
42
- setSelectedLocation: de,
43
- filterRequired: k,
44
- setUserFilterPreference: C,
45
- user: h,
46
- setFilterRequired: Y,
47
- locationIdRef: ye,
48
- locations: m,
49
- setLocations: be,
50
- setAdminRoleIdsStats: xe
32
+ ), mt = ({
33
+ handleOverlayState: J,
34
+ setIsLoading: M,
35
+ isLoading: X,
36
+ setLocationId: re,
37
+ setRoleDetails: Z,
38
+ roleDetails: j,
39
+ status: ee,
40
+ setStatus: ie,
41
+ selectedLocation: C,
42
+ setSelectedLocation: v,
43
+ filterRequired: w,
44
+ setUserFilterPreference: D,
45
+ user: U,
46
+ setFilterRequired: m,
47
+ locationIdRef: Ne,
48
+ locations: Ce,
49
+ setLocations: te,
50
+ setAdminRoleIdsStats: n
51
51
  }) => {
52
- const [P, n] = d([]), F = ct(), { translate: H } = rt(), L = Xt({ mode: "onChange" }), S = dt(), ne = mt(), {
53
- control: W,
54
- handleSubmit: g,
55
- formState: { errors: X },
56
- getValues: U,
57
- setValue: Z,
58
- clearErrors: Ne
59
- } = L, Ce = async () => {
60
- var N, j, A, I;
52
+ const [R, ce] = d([]), B = it(), { translate: y } = st(), de = Pt({ mode: "onChange" }), ae = ct(), u = dt(), {
53
+ control: oe,
54
+ handleSubmit: O,
55
+ formState: { errors: le },
56
+ getValues: me,
57
+ setValue: Q,
58
+ clearErrors: $
59
+ } = de, fe = async () => {
60
+ var I, H, S, g;
61
61
  try {
62
- const { data: M } = await it({}, { showLoader: !1 });
63
- n(M), z != null && z.id && Z("roleId", z.id), le && Z("status", le), ((N = Object.keys((h == null ? void 0 : h.userFilterPreference) || {})) == null ? void 0 : N.length) > 0 && ((j = ne == null ? void 0 : ne.state) == null ? void 0 : j.fromManageUser) === !0 && (Z("roleId", (A = h == null ? void 0 : h.userFilterPreference) == null ? void 0 : A.roleid), Z("status", (I = h == null ? void 0 : h.userFilterPreference) == null ? void 0 : I.status));
64
- } catch (M) {
65
- console.error(M);
62
+ const { data: L } = await rt({}, { showLoader: !1 });
63
+ ce(L), j != null && j.id && Q("roleId", j.id), ee && Q("status", ee), ((I = Object.keys((U == null ? void 0 : U.userFilterPreference) || {})) == null ? void 0 : I.length) > 0 && ((H = u == null ? void 0 : u.state) == null ? void 0 : H.fromManageUser) === !0 && (Q("roleId", (S = U == null ? void 0 : U.userFilterPreference) == null ? void 0 : S.roleid), Q("status", (g = U == null ? void 0 : U.userFilterPreference) == null ? void 0 : g.status));
64
+ } catch (L) {
65
+ console.error(L);
66
66
  }
67
67
  };
68
- Q(() => {
69
- Ce();
68
+ q(() => {
69
+ fe();
70
70
  }, []);
71
- const V = async () => {
72
- var N, j;
71
+ const pe = async () => {
72
+ var I, H;
73
73
  try {
74
- R((G) => !G), xe([]), F("button_click", {
74
+ M((F) => !F), n([]), B("button_click", {
75
75
  button_name: "User Filter-filter-button",
76
76
  button_type: "filter",
77
77
  button_id: "userfilterform-search-button"
78
78
  });
79
- const A = U("status") || "BOTH";
80
- A && ce(A);
81
- const I = {
79
+ const S = me("status") || "BOTH";
80
+ S && ie(S);
81
+ const g = {
82
82
  limit: 50,
83
83
  offset: 0,
84
84
  order: "asc",
85
85
  orderby: "userName",
86
- status: A
87
- }, M = (j = (N = $ == null ? void 0 : $.finalSelected) == null ? void 0 : N.optionSelected) == null ? void 0 : j.id;
88
- M ? (I.locationId = M, ie(M)) : ie(null);
89
- const E = P.find(
90
- (G) => G.id === U("roleId")
86
+ status: S
87
+ }, L = (H = (I = C == null ? void 0 : C.finalSelected) == null ? void 0 : I.optionSelected) == null ? void 0 : H.id;
88
+ L ? (g.locationId = L, re(L)) : re(null);
89
+ const z = R.find(
90
+ (F) => F.id === me("roleId")
91
91
  );
92
- E != null && E.id ? (I.roleid = E.id, w(E)) : w(null), C(I), S(
92
+ z != null && z.id ? (g.roleid = z.id, Z(z)) : Z(null), D(g), ae(
93
93
  Ae({
94
- ...h,
94
+ ...U,
95
95
  userFilterPreference: {
96
- ...I,
97
- filterRequired: k,
98
- selectedLocation: $
96
+ ...g,
97
+ filterRequired: w,
98
+ selectedLocation: C
99
99
  }
100
100
  })
101
- ), F("filter", {
101
+ ), B("filter", {
102
102
  filter_type: ["location", "role", "status"],
103
- ...I
104
- }), R((G) => !G), K();
105
- } catch (A) {
106
- ea({ message: `error : ${A == null ? void 0 : A.message}`, type: "error" }), R((I) => !I);
103
+ ...g
104
+ }), M((F) => !F), J();
105
+ } catch (S) {
106
+ Xt({ message: `error : ${S == null ? void 0 : S.message}`, type: "error" }), M((g) => !g);
107
107
  }
108
108
  };
109
- return /* @__PURE__ */ a(Zt, { ...L, children: /* @__PURE__ */ p(
110
- B,
109
+ return /* @__PURE__ */ a(Wt, { ...de, children: /* @__PURE__ */ p(
110
+ _,
111
111
  {
112
112
  className: "m-[1rem]",
113
113
  component: "form",
114
- onSubmit: (N) => {
115
- if (Object.keys(X).length > 0) {
116
- N.preventDefault();
114
+ onSubmit: (I) => {
115
+ if (Object.keys(le).length > 0) {
116
+ I.preventDefault();
117
117
  return;
118
118
  }
119
- g(V)(N);
119
+ O(pe)(I);
120
120
  },
121
121
  "data-testid": "userfilterform-container-grid",
122
122
  noValidate: !0,
123
123
  children: [
124
- /* @__PURE__ */ a(Lt, { isLoading: oe, children: /* @__PURE__ */ p(B, { className: "flex items-center", children: [
125
- /* @__PURE__ */ p(Se, { children: [
126
- H("Location Filter Required"),
124
+ /* @__PURE__ */ a(wt, { isLoading: X, children: /* @__PURE__ */ p(_, { className: "flex items-center", children: [
125
+ /* @__PURE__ */ p(Ue, { children: [
126
+ y("Location Filter Required"),
127
127
  " :"
128
128
  ] }),
129
129
  /* @__PURE__ */ a(
130
- Qt,
130
+ qt,
131
131
  {
132
132
  defaultChecked: !0,
133
- checked: k,
134
- onChange: (N) => {
135
- Y(N.target.checked), N.target.checked || (ye.current = null, Ne("level1"));
133
+ checked: w,
134
+ onChange: (I) => {
135
+ m(I.target.checked), I.target.checked || (Ne.current = null, $("level1"));
136
136
  }
137
137
  }
138
138
  )
139
139
  ] }) }),
140
- k === !0 && /* @__PURE__ */ a(Yt, { children: /* @__PURE__ */ a(
141
- ha,
140
+ w === !0 && /* @__PURE__ */ a(Dt, { children: /* @__PURE__ */ a(
141
+ pa,
142
142
  {
143
143
  childForm: !0,
144
- selectedLocation: $,
145
- setSelectedLocation: de,
144
+ selectedLocation: C,
145
+ setSelectedLocation: v,
146
146
  templateType: "inline",
147
- disabled: oe,
148
- locations: m,
149
- setLocations: be,
150
- fetchAccordingToUserAoi: !!ge.isBahaar
147
+ disabled: X,
148
+ locations: Ce,
149
+ setLocations: te,
150
+ fetchAccordingToUserAoi: !!xe.isBahaar
151
151
  }
152
152
  ) }),
153
- /* @__PURE__ */ a(Mt, { isLoading: oe, children: /* @__PURE__ */ p(B, { children: [
154
- /* @__PURE__ */ a(Se, { "data-testid": "userfilterform-role-label", children: H("Role") }),
153
+ /* @__PURE__ */ a(Bt, { isLoading: X, children: /* @__PURE__ */ p(_, { children: [
154
+ /* @__PURE__ */ a(Ue, { "data-testid": "userfilterform-role-label", children: y("Role") }),
155
155
  /* @__PURE__ */ a(
156
- lt,
156
+ ot,
157
157
  {
158
- control: W,
158
+ control: oe,
159
159
  name: "roleId",
160
- options: P,
160
+ options: R,
161
161
  displayName: "name",
162
162
  optionValue: "id",
163
- errors: X,
163
+ errors: le,
164
164
  dataTestId: "userfilterform-role-dropdown",
165
165
  className: "mb-[0.3125rem]"
166
166
  }
167
167
  ),
168
168
  /* @__PURE__ */ a(
169
- Se,
169
+ Ue,
170
170
  {
171
171
  className: "mt-2",
172
172
  "data-testid": "userfilterform-status-label",
173
- children: H("Status")
173
+ children: y("Status")
174
174
  }
175
175
  ),
176
176
  /* @__PURE__ */ a(
177
- lt,
177
+ ot,
178
178
  {
179
- control: W,
179
+ control: oe,
180
180
  name: "status",
181
181
  defaultValue: "BOTH",
182
182
  options: ["ACTIVE", "INACTIVE", "BOTH"],
183
- errors: X,
183
+ errors: le,
184
184
  dataTestId: "userfilterform-status-dropdown"
185
185
  }
186
186
  ),
187
187
  /* @__PURE__ */ p(
188
- B,
188
+ _,
189
189
  {
190
190
  container: !0,
191
191
  spacing: 1,
@@ -193,23 +193,23 @@ import './UserList.css';const ha = Gt(
193
193
  justifyContent: "flex-end",
194
194
  "data-testid": "userfilterform-buttons-container",
195
195
  children: [
196
- /* @__PURE__ */ a(B, { item: !0, "data-testid": "userfilterform-closebutton-item", children: /* @__PURE__ */ a(
197
- Ue,
196
+ /* @__PURE__ */ a(_, { item: !0, "data-testid": "userfilterform-closebutton-item", children: /* @__PURE__ */ a(
197
+ Se,
198
198
  {
199
199
  variant: "contained",
200
200
  color: "secondary",
201
- onClick: () => K(),
201
+ onClick: () => J(),
202
202
  "data-testid": "userfilterform-close-button",
203
- children: H("Close")
203
+ children: y("Close")
204
204
  }
205
205
  ) }),
206
- /* @__PURE__ */ a(B, { item: !0, "data-testid": "userfilterform-searchbutton-item", children: /* @__PURE__ */ a(
207
- Ue,
206
+ /* @__PURE__ */ a(_, { item: !0, "data-testid": "userfilterform-searchbutton-item", children: /* @__PURE__ */ a(
207
+ Se,
208
208
  {
209
209
  variant: "contained",
210
210
  type: "submit",
211
211
  "data-testid": "userfilterform-search-button",
212
- children: H("Search")
212
+ children: y("Search")
213
213
  }
214
214
  ) })
215
215
  ]
@@ -220,7 +220,7 @@ import './UserList.css';const ha = Gt(
220
220
  }
221
221
  ) });
222
222
  };
223
- ft.propTypes = {
223
+ mt.propTypes = {
224
224
  handleOverlayState: f.any,
225
225
  setUsersData: f.any,
226
226
  setIsLoading: f.any,
@@ -243,59 +243,59 @@ ft.propTypes = {
243
243
  setLocations: f.any,
244
244
  setAdminRoleIdsStats: f.any
245
245
  };
246
- function Ga() {
247
- var Ge, qe, Je, Qe, Ke, Pe;
248
- const K = aa(), R = ct(), [oe, ie] = d([]), [w, z] = d([]);
249
- let le = "#8688ecff", ce = "#10b981", $ = "#f43f5e", de = "#f59e0b", k = "#ffffffff";
250
- const [C, h] = d([]), [Y, ye] = d([]), [m, be] = d(null), [xe, P] = d(!1), n = oa(), F = n.palette.mode === "dark", [H, L] = d(0), [S, ne] = d({}), W = tt(S);
251
- Q(() => {
252
- W.current = S;
253
- }, [S]);
254
- const [g, X] = d(null), [U, Z] = d(""), [Ne, Ce] = d(""), [V, N] = d([]), [j, A] = d(!0), [I, M] = d(!1), [E, G] = d({
246
+ function za() {
247
+ var Ye, Ge, qe, Je, Qe, Ke;
248
+ const J = ea(), M = it(), [X, re] = d([]);
249
+ let Z = "#8688ecff", j = "#10b981", ee = "#f43f5e", ie = "#f59e0b", C = "#ffffffff";
250
+ const [v, w] = d([]), [D, U] = d([]), [m, Ne] = d(null), [Ce, te] = d(!1), n = ta(), R = n.palette.mode === "dark", [ce, B] = d(0), [y, de] = d({}), ae = et(y);
251
+ q(() => {
252
+ ae.current = y;
253
+ }, [y]);
254
+ const [u, oe] = d(null), [O, le] = d(""), [me, Q] = d(""), [$, fe] = d([]), [pe, I] = d(!0), [H, S] = d(!1), [g, L] = d({
255
255
  sortColumn: "userName",
256
256
  sortOrder: "asc"
257
- }), [pt, Ee] = d(!1), Oe = 50, { translate: se } = rt(), [me, q] = d(!1), [fe, _e] = d(null), [y, we] = d(null), [J, ee] = d(null), O = mt(), Be = dt(), { user: b } = ta((e) => e == null ? void 0 : e.Authenticate), [ut, Le] = d(
258
- ((Ge = b == null ? void 0 : b.userFilterPreference) == null ? void 0 : Ge.locationId) || null
259
- ), Me = tt(ut), [ht, Re] = d(
260
- ((qe = O == null ? void 0 : O.state) == null ? void 0 : qe.fromManageUser) === !0 && ((Je = b == null ? void 0 : b.userFilterPreference) == null ? void 0 : Je.selectedLocation) || {},
257
+ }), [z, F] = d(!1), Ee = 50, { translate: ne } = st(), [ue, Y] = d(!1), [he, Oe] = d(null), [b, _e] = d(null), [G, K] = d(null), A = dt(), we = ct(), { user: x } = Zt((e) => e == null ? void 0 : e.Authenticate), [ft, Be] = d(
258
+ ((Ye = x == null ? void 0 : x.userFilterPreference) == null ? void 0 : Ye.locationId) || null
259
+ ), Le = et(ft), [pt, Me] = d(
260
+ ((Ge = A == null ? void 0 : A.state) == null ? void 0 : Ge.fromManageUser) === !0 && ((qe = x == null ? void 0 : x.userFilterPreference) == null ? void 0 : qe.selectedLocation) || {},
261
261
  {}
262
- ), [gt, $e] = d(
263
- ((Qe = O == null ? void 0 : O.state) == null ? void 0 : Qe.fromManageUser) === !0 && ((Ke = b == null ? void 0 : b.userFilterPreference) == null ? void 0 : Ke.filterRequired) || !1
264
- ), [s, te] = d(
265
- ((Pe = O == null ? void 0 : O.state) == null ? void 0 : Pe.fromManageUser) === !0 && (b == null ? void 0 : b.userFilterPreference) || {}
266
- ), [yt, Fe] = d(0), [bt, He] = d([]), xt = qt(() => V == null ? void 0 : V.map((e, o) => {
262
+ ), [ut, Re] = d(
263
+ ((Je = A == null ? void 0 : A.state) == null ? void 0 : Je.fromManageUser) === !0 && ((Qe = x == null ? void 0 : x.userFilterPreference) == null ? void 0 : Qe.filterRequired) || !1
264
+ ), [s, P] = d(
265
+ ((Ke = A == null ? void 0 : A.state) == null ? void 0 : Ke.fromManageUser) === !0 && (x == null ? void 0 : x.userFilterPreference) || {}
266
+ ), [ht, $e] = d(0), [gt, He] = d([]), yt = Yt(() => $ == null ? void 0 : $.map((e, o) => {
267
267
  let t = "";
268
268
  return e != null && e.title && (t += e.title + " "), e != null && e.firstName && (t += e.firstName + " "), e != null && e.lastName && (t += e.lastName), {
269
269
  ...e,
270
270
  index: o + 1,
271
271
  firstName: t.trim()
272
272
  };
273
- }), [V, F]);
274
- Q(() => {
273
+ }), [$, R]);
274
+ q(() => {
275
275
  (async () => {
276
276
  var o, t;
277
277
  try {
278
- if (Y.length > 0) {
279
- P(!0);
280
- const r = await la(
278
+ if (D.length > 0) {
279
+ te(!0);
280
+ const r = await aa(
281
281
  {
282
282
  code: "GET_USERS_STATS",
283
283
  parameters: {
284
- locationId: (s == null ? void 0 : s.locationId) || fe,
285
- roleid: (s == null ? void 0 : s.roleid) || (y == null ? void 0 : y.id) || null,
286
- roleIds: Y == null ? void 0 : Y.join(",")
284
+ locationId: (s == null ? void 0 : s.locationId) || he,
285
+ roleid: (s == null ? void 0 : s.roleid) || (b == null ? void 0 : b.id) || null,
286
+ roleIds: D == null ? void 0 : D.join(",")
287
287
  }
288
288
  },
289
289
  { showLoader: !1 }
290
290
  );
291
- (o = r == null ? void 0 : r.data) != null && o.result && ((t = r == null ? void 0 : r.data) == null ? void 0 : t.result.length) > 0 && be(r.data.result[0]), P(!1);
291
+ (o = r == null ? void 0 : r.data) != null && o.result && ((t = r == null ? void 0 : r.data) == null ? void 0 : t.result.length) > 0 && Ne(r.data.result[0]), te(!1);
292
292
  }
293
293
  } catch (r) {
294
- P(!1), console.error("Error fetching user stats:", r);
294
+ te(!1), console.error("Error fetching user stats:", r);
295
295
  }
296
296
  })();
297
- }, [s, Y]);
298
- const Ie = [
297
+ }, [s, D]);
298
+ const ve = [
299
299
  { field: "Sr. No.", label: "#", align: "left" },
300
300
  {
301
301
  field: "userName",
@@ -307,12 +307,12 @@ function Ga() {
307
307
  var o;
308
308
  return /* @__PURE__ */ p("div", { className: "flex items-center w-48 gap-4 h-full", children: [
309
309
  /* @__PURE__ */ a(
310
- _,
310
+ E,
311
311
  {
312
312
  className: "w-[15%] h-10 rounded-2xl flex items-center justify-center font-black text-xs shadow-sm transition-transform duration-300 group-hover:scale-110",
313
313
  sx: {
314
- background: `linear-gradient(to bottom right, ${T(n.palette.primary.main, 0.05)}, ${T(n.palette.primary.main, 0.2)})`,
315
- border: `1px solid ${T(n.palette.primary.main, 0.2)}`,
314
+ background: `linear-gradient(to bottom right, ${k(n.palette.primary.main, 0.05)}, ${k(n.palette.primary.main, 0.2)})`,
315
+ border: `1px solid ${k(n.palette.primary.main, 0.2)}`,
316
316
  color: n.palette.primary.main
317
317
  },
318
318
  children: (o = e == null ? void 0 : e.firstName) == null ? void 0 : o.split(" ").filter((t) => !["Mr", "Ms", "Mrs"].includes(t)).map((t) => t[0]).join("").toUpperCase()
@@ -320,7 +320,7 @@ function Ga() {
320
320
  ),
321
321
  /* @__PURE__ */ p("div", { className: "w-[80%] flex flex-col h-full justify-center pt-2", children: [
322
322
  /* @__PURE__ */ a(
323
- _,
323
+ E,
324
324
  {
325
325
  component: "span",
326
326
  className: "text-sm font-black leading-tight transition-colors duration-300",
@@ -335,7 +335,7 @@ function Ga() {
335
335
  }
336
336
  ),
337
337
  /* @__PURE__ */ p(
338
- _,
338
+ E,
339
339
  {
340
340
  component: "span",
341
341
  className: "text-md font-bold font-mono flex items-center gap-1.5 transition-colors duration-300",
@@ -345,7 +345,7 @@ function Ga() {
345
345
  },
346
346
  children: [
347
347
  /* @__PURE__ */ a(
348
- _,
348
+ E,
349
349
  {
350
350
  component: "span",
351
351
  className: "w-1.5 h-1.5 rounded-full transition-colors duration-300",
@@ -371,22 +371,22 @@ function Ga() {
371
371
  sortOrder: "asc",
372
372
  render: (e) => /* @__PURE__ */ a("div", { className: "flex items-center w-32 gap-4 h-full", children: /* @__PURE__ */ p("div", { className: "flex items-center text-md tracking-tight", children: [
373
373
  /* @__PURE__ */ a(
374
- _,
374
+ E,
375
375
  {
376
376
  className: "w-7 h-7 rounded-xl flex items-center justify-center mr-2 shadow-sm transition-all duration-300",
377
377
  sx: {
378
- backgroundColor: n.palette.mode === "dark" ? T(n.palette.common.white, 0.05) : "rgb(248, 250, 252)",
378
+ backgroundColor: n.palette.mode === "dark" ? k(n.palette.common.white, 0.05) : "rgb(248, 250, 252)",
379
379
  color: n.palette.text.disabled,
380
380
  ".group:hover &": {
381
381
  backgroundColor: n.palette.primary.main,
382
382
  color: "white"
383
383
  }
384
384
  },
385
- children: /* @__PURE__ */ a(D, { icon: ma, className: "text-xs" })
385
+ children: /* @__PURE__ */ a(V, { icon: ca, className: "text-xs" })
386
386
  }
387
387
  ),
388
388
  /* @__PURE__ */ a(
389
- _,
389
+ E,
390
390
  {
391
391
  component: "span",
392
392
  className: "transition-colors duration-300",
@@ -408,14 +408,14 @@ function Ga() {
408
408
  sortOrder: "asc",
409
409
  align: "left",
410
410
  render: (e) => /* @__PURE__ */ a("div", { className: "flex items-center w-auto h-full", children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-1.5", children: /* @__PURE__ */ a(
411
- _,
411
+ E,
412
412
  {
413
413
  component: "span",
414
414
  className: "px-2.5 rounded-lg text-[0.6rem] font-black uppercase tracking-widest w-fit whitespace-nowrap",
415
415
  sx: {
416
- backgroundColor: T(n.palette.primary.main, 0.1),
416
+ backgroundColor: k(n.palette.primary.main, 0.1),
417
417
  color: n.palette.primary.main,
418
- border: `1px solid ${T(n.palette.primary.main, 0.2)}`
418
+ border: `1px solid ${k(n.palette.primary.main, 0.2)}`
419
419
  },
420
420
  children: e == null ? void 0 : e.roleName
421
421
  }
@@ -432,12 +432,12 @@ function Ga() {
432
432
  ", "
433
433
  );
434
434
  return /* @__PURE__ */ a("div", { className: "flex items-center w-48 h-full", children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-1.5 w-full min-w-0", children: /* @__PURE__ */ a(
435
- _,
435
+ E,
436
436
  {
437
437
  className: "flex items-center text-md pl-2",
438
438
  sx: { color: n.palette.text.primary },
439
439
  children: /* @__PURE__ */ a(
440
- Wt,
440
+ Kt,
441
441
  {
442
442
  arrow: !0,
443
443
  placement: "top",
@@ -472,21 +472,21 @@ function Ga() {
472
472
  var o;
473
473
  return /* @__PURE__ */ p("div", { className: "flex items-center gap-3 h-full", children: [
474
474
  /* @__PURE__ */ a(
475
- _,
475
+ E,
476
476
  {
477
477
  className: "w-8 h-8 rounded-lg flex items-center justify-center transition-all duration-300",
478
478
  sx: {
479
479
  color: n.palette.text.disabled,
480
480
  ".group:hover &": {
481
481
  color: n.palette.primary.main,
482
- backgroundColor: T(n.palette.primary.main, 0.1)
482
+ backgroundColor: k(n.palette.primary.main, 0.1)
483
483
  }
484
484
  },
485
- children: /* @__PURE__ */ a(D, { icon: fa })
485
+ children: /* @__PURE__ */ a(V, { icon: da })
486
486
  }
487
487
  ),
488
488
  /* @__PURE__ */ a(
489
- _,
489
+ E,
490
490
  {
491
491
  component: "span",
492
492
  className: "text-sm transition-colors duration-300",
@@ -510,13 +510,13 @@ function Ga() {
510
510
  render: (e) => {
511
511
  const o = (e == null ? void 0 : e.displayState) === "ACTIVE";
512
512
  return /* @__PURE__ */ a("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ p(
513
- _,
513
+ E,
514
514
  {
515
515
  className: "inline-flex items-center justify-center rounded-full text-[0.8rem] font-black border transition-all duration-500 shadow-sm px-3 w-auto min-w-[110px]",
516
516
  sx: {
517
- backgroundColor: o ? n.palette.mode === "dark" ? T(n.palette.success.main, 0.15) : "rgb(236, 253, 245)" : n.palette.mode === "dark" ? T(n.palette.error.main, 0.15) : "rgb(254, 242, 242)",
517
+ backgroundColor: o ? n.palette.mode === "dark" ? k(n.palette.success.main, 0.15) : "rgb(236, 253, 245)" : n.palette.mode === "dark" ? k(n.palette.error.main, 0.15) : "rgb(254, 242, 242)",
518
518
  color: o ? n.palette.mode === "dark" ? n.palette.success.light : "rgb(4, 120, 87)" : n.palette.mode === "dark" ? n.palette.error.light : "rgb(248, 113, 113)",
519
- borderColor: o ? T(n.palette.success.main, 0.3) : T(n.palette.error.main, 0.3)
519
+ borderColor: o ? k(n.palette.success.main, 0.3) : k(n.palette.error.main, 0.3)
520
520
  },
521
521
  children: [
522
522
  /* @__PURE__ */ a(
@@ -536,55 +536,55 @@ function Ga() {
536
536
  label: "Actions".toUpperCase(),
537
537
  align: "left"
538
538
  }
539
- ], [Nt, Ve] = d(Ie);
540
- Q(() => {
541
- Ve(Ie);
542
- }, [F]);
543
- const Ct = async () => {
539
+ ], [bt, Fe] = d(ve);
540
+ q(() => {
541
+ Fe(ve);
542
+ }, [R]);
543
+ const xt = async () => {
544
544
  var o, t, r, i;
545
- const e = g.displayState !== "ACTIVE";
545
+ const e = u.displayState !== "ACTIVE";
546
546
  try {
547
- await Ft(g, { is_active: e }), L(0), Ee((c) => !c), v({
547
+ await Rt(u, { is_active: e }), B(0), F((c) => !c), T({
548
548
  message: "User State Updated Successfully",
549
549
  type: "success"
550
550
  });
551
551
  } catch (c) {
552
- L(0), Ee((u) => !u);
553
- const l = (t = (o = c == null ? void 0 : c.response) == null ? void 0 : o.data) == null ? void 0 : t.errorcode, x = ((i = (r = c == null ? void 0 : c.response) == null ? void 0 : r.data) == null ? void 0 : i.message) || (c == null ? void 0 : c.message) || "Something went wrong";
554
- console.log(l, x), l === 400 ? v({
555
- message: `${x}`,
552
+ B(0), F((h) => !h);
553
+ const l = (t = (o = c == null ? void 0 : c.response) == null ? void 0 : o.data) == null ? void 0 : t.errorcode, N = ((i = (r = c == null ? void 0 : c.response) == null ? void 0 : r.data) == null ? void 0 : i.message) || (c == null ? void 0 : c.message) || "Something went wrong";
554
+ console.log(l, N), l === 400 ? T({
555
+ message: `${N}`,
556
556
  type: "error"
557
- }) : v({
557
+ }) : T({
558
558
  message: "Error in Updating User State.",
559
559
  type: "error"
560
560
  });
561
561
  }
562
- }, It = async () => {
562
+ }, Nt = async () => {
563
563
  try {
564
- const e = await Ht({
565
- userId: ge.isTecho ? g == null ? void 0 : g.userId : g == null ? void 0 : g.id
564
+ const e = await $t({
565
+ userId: xe.isTecho ? u == null ? void 0 : u.userId : u == null ? void 0 : u.id
566
566
  });
567
- e && (N((o) => o.map((t) => (t == null ? void 0 : t.userId) === (ge.isTecho ? g == null ? void 0 : g.userId : g == null ? void 0 : g.id) ? { ...t, loginCode: e.data } : t)), v({
567
+ e && (fe((o) => o.map((t) => (t == null ? void 0 : t.userId) === (xe.isTecho ? u == null ? void 0 : u.userId : u == null ? void 0 : u.id) ? { ...t, loginCode: e.data } : t)), T({
568
568
  message: `You have successfully generated your login code. Your login code is : ${e.data}`,
569
569
  type: "success"
570
570
  }));
571
571
  } catch (e) {
572
- v({ message: `${e.response.data.message}`, type: "error" });
572
+ T({ message: `${e.response.data.message}`, type: "error" });
573
573
  } finally {
574
- L(0);
574
+ B(0);
575
575
  }
576
- }, vt = (e) => ge.isTecho ? K(`/ui/medplat/manage/user/${e.userId}`) : K(`/ui/medplat/manage/user/${e.id}`), Tt = Jt(
576
+ }, Ct = (e) => xe.isTecho ? J(`/ui/medplat/manage/user/${e.userId}`) : J(`/ui/medplat/manage/user/${e.id}`), vt = Gt(
577
577
  (e) => {
578
578
  var o;
579
579
  return [
580
- ((o = W.current) == null ? void 0 : o["update.manage.users"]) && {
580
+ ((o = ae.current) == null ? void 0 : o["update.manage.users"]) && {
581
581
  label: "",
582
- icon: /* @__PURE__ */ a(D, { icon: na, "data-testid": "userlist-button-edit" }),
582
+ icon: /* @__PURE__ */ a(V, { icon: oa, "data-testid": "userlist-button-edit" }),
583
583
  onClick: () => {
584
- vt(e);
584
+ Ct(e);
585
585
  },
586
586
  iconColor: n.palette.secondary.main,
587
- backgroundColor: T(n.palette.secondary.main, 0.1),
587
+ backgroundColor: k(n.palette.secondary.main, 0.1),
588
588
  hoverBackgroundColor: n.palette.secondary.main,
589
589
  hoverIconColor: "white",
590
590
  borderColor: n.palette.secondary.main,
@@ -592,185 +592,184 @@ function Ga() {
592
592
  },
593
593
  {
594
594
  label: "",
595
- icon: /* @__PURE__ */ a(D, { icon: sa, "data-testid": "userlist-button-menu" }),
595
+ icon: /* @__PURE__ */ a(V, { icon: la, "data-testid": "userlist-button-menu" }),
596
596
  iconColor: n.palette.primary.main,
597
- backgroundColor: T(n.palette.primary.main, 0.1),
597
+ backgroundColor: k(n.palette.primary.main, 0.1),
598
598
  hoverBackgroundColor: n.palette.primary.main,
599
599
  hoverIconColor: "white",
600
600
  borderColor: n.palette.primary.main,
601
601
  menuItems: [
602
602
  {
603
- label: se(
603
+ label: ne(
604
604
  e.displayState === "ACTIVE" ? "Mark as Inactive" : "Mark as Active"
605
605
  ),
606
606
  onClick: () => {
607
- L(1), X(e);
607
+ B(1), oe(e);
608
608
  }
609
609
  },
610
610
  e.displayState === "ACTIVE" && !(e != null && e.loginCode) && {
611
- label: se("Generate SOH Code"),
611
+ label: ne("Generate SOH Code"),
612
612
  onClick: () => {
613
- L(2), X(e);
613
+ B(2), oe(e);
614
614
  }
615
615
  }
616
616
  ].filter(Boolean)
617
617
  }
618
618
  ].filter(Boolean);
619
619
  },
620
- [se]
621
- ), kt = async (e) => {
620
+ [ne]
621
+ ), It = async (e) => {
622
622
  const o = e.sortOrder === "asc" ? "desc" : "asc";
623
- Ve(
623
+ Fe(
624
624
  (t) => t.map((r) => r.field === e.field ? { ...r, sortOrder: o } : r)
625
- ), G({ sortColumn: e.field, sortOrder: o });
626
- }, je = () => {
627
- R("button_click", {
625
+ ), L({ sortColumn: e.field, sortOrder: o });
626
+ }, Ve = () => {
627
+ M("button_click", {
628
628
  button_name: "User Filter-open-button",
629
629
  button_type: "filter_open",
630
630
  button_id: "userlist-overlay-filter"
631
- }), M(!I);
631
+ }), S(!H);
632
632
  };
633
- Q(() => {
633
+ q(() => {
634
634
  const e = setTimeout(() => {
635
- Ce(U);
635
+ Q(O);
636
636
  }, 1e3);
637
637
  return () => clearTimeout(e);
638
- }, [U]);
639
- async function St(e, o) {
638
+ }, [O]);
639
+ async function Tt(e, o) {
640
640
  var t, r;
641
641
  try {
642
- if ((t = W.current) != null && t["view.manage.users"]) {
643
- o && q((c) => !c);
644
- const i = await Ze({
642
+ if ((t = ae.current) != null && t["view.manage.users"]) {
643
+ o && Y((c) => !c);
644
+ const i = await Xe({
645
645
  limit: e.limit,
646
646
  offset: e.offset,
647
- locationId: (s == null ? void 0 : s.locationId) || fe,
648
- order: E.sortOrder,
649
- orderby: E.sortColumn,
650
- roleIds: C == null ? void 0 : C.join(","),
651
- status: s != null && s.status ? s == null ? void 0 : s.status : J || "BOTH",
652
- ...s != null && s.roleid ? { roleid: s == null ? void 0 : s.roleid } : (y == null ? void 0 : y.id) && { roleid: y.id },
653
- ...U && { searchString: U }
647
+ locationId: (s == null ? void 0 : s.locationId) || he,
648
+ order: g.sortOrder,
649
+ orderby: g.sortColumn,
650
+ roleIds: v == null ? void 0 : v.join(","),
651
+ status: s != null && s.status ? s == null ? void 0 : s.status : G || "BOTH",
652
+ ...s != null && s.roleid ? { roleid: s == null ? void 0 : s.roleid } : (b == null ? void 0 : b.id) && { roleid: b.id },
653
+ ...O && { searchString: O }
654
654
  });
655
- return U !== "" && R("search_tracking", {
656
- searchTerm: U,
655
+ return O !== "" && M("search_tracking", {
656
+ searchTerm: O,
657
657
  results_count: (r = i == null ? void 0 : i.data) == null ? void 0 : r.length,
658
658
  search_type: "Page Search"
659
- }), o && q((c) => !c), i.data;
659
+ }), o && Y((c) => !c), i.data;
660
660
  }
661
661
  } catch (i) {
662
- v({ message: `error ${i}`, type: "error" }), q((c) => !c);
662
+ T({ message: `error ${i}`, type: "error" }), Y((c) => !c);
663
663
  }
664
664
  }
665
665
  const {
666
- data: pe,
667
- fetchNextPage: Ut,
668
- hasNextPage: At
669
- } = Vt({
666
+ data: ge,
667
+ fetchNextPage: kt,
668
+ hasNextPage: Ut
669
+ } = Ht({
670
670
  key: [
671
671
  "users",
672
- Ne,
673
- E.sortOrder,
674
- E.sortColumn,
675
- pt,
676
- fe,
677
- y == null ? void 0 : y.id,
678
- J,
679
- S,
680
- C
672
+ me,
673
+ g.sortOrder,
674
+ g.sortColumn,
675
+ z,
676
+ he,
677
+ b == null ? void 0 : b.id,
678
+ G,
679
+ y,
680
+ v
681
681
  ],
682
682
  queryFn: ({ pageParam: e }) => {
683
683
  const o = !(e != null && e.offset) || (e == null ? void 0 : e.offset) === 0;
684
- return St(e, o);
684
+ return Tt(e, o);
685
685
  },
686
- limit: Oe
686
+ limit: Ee
687
687
  });
688
- Q(() => {
688
+ q(() => {
689
689
  (async () => {
690
690
  var o;
691
691
  try {
692
- const { data: t } = await it({}, { showLoader: !1 }), r = t == null ? void 0 : t.filter((l) => {
693
- var x, u;
694
- return (u = (x = l == null ? void 0 : l.name) == null ? void 0 : x.toLowerCase()) == null ? void 0 : u.includes("admin");
692
+ const { data: t } = await rt({}, { showLoader: !1 }), r = t == null ? void 0 : t.filter((l) => {
693
+ var N, h;
694
+ return (h = (N = l == null ? void 0 : l.name) == null ? void 0 : N.toLowerCase()) == null ? void 0 : h.includes("admin");
695
695
  }).map((l) => l.id);
696
- ie(r);
696
+ re(r);
697
697
  const i = t == null ? void 0 : t.map((l) => l.id);
698
- ye(i), q(!0);
699
- const { data: c } = await jt("techo.manage.users");
700
- c && ne(JSON.parse(c)), (o = O == null ? void 0 : O.state) != null && o.fromManageUser || Be(Ae({ ...b, userFilterPreference: {} })), q(!1);
698
+ U(i), Y(!0);
699
+ const { data: c } = await Ft("techo.manage.users");
700
+ c && de(JSON.parse(c)), (o = A == null ? void 0 : A.state) != null && o.fromManageUser || we(Ae({ ...x, userFilterPreference: {} })), Y(!1);
701
701
  } catch (t) {
702
- q(!1), console.error("Error loading initial data:", t);
702
+ Y(!1), console.error("Error loading initial data:", t);
703
703
  }
704
704
  })();
705
- }, []), Q(() => {
705
+ }, []), q(() => {
706
706
  var o;
707
- const e = ((o = pe == null ? void 0 : pe.pages) == null ? void 0 : o.flat()) || [];
708
- A(At), N(e);
709
- }, [pe]);
710
- const De = async () => {
707
+ const e = ((o = ge == null ? void 0 : ge.pages) == null ? void 0 : o.flat()) || [];
708
+ I(Ut), fe(e);
709
+ }, [ge]);
710
+ const je = async () => {
711
711
  try {
712
712
  let o = 0, t = [], r = !0;
713
713
  for (; r; ) {
714
- const i = await Ze({
714
+ const i = await Xe({
715
715
  limit: 5e4,
716
716
  offset: o,
717
- locationId: (s == null ? void 0 : s.locationId) || fe,
718
- order: E.sortOrder,
719
- orderby: E.sortColumn,
720
- roleIds: C == null ? void 0 : C.join(","),
721
- status: s != null && s.status ? s == null ? void 0 : s.status : J || "BOTH",
722
- ...s != null && s.roleid ? { roleid: s == null ? void 0 : s.roleid } : (y == null ? void 0 : y.id) && { roleid: y.id },
723
- ...U && { searchString: U }
717
+ locationId: (s == null ? void 0 : s.locationId) || he,
718
+ order: g.sortOrder,
719
+ orderby: g.sortColumn,
720
+ roleIds: v == null ? void 0 : v.join(","),
721
+ status: s != null && s.status ? s == null ? void 0 : s.status : G || "BOTH",
722
+ ...s != null && s.roleid ? { roleid: s == null ? void 0 : s.roleid } : (b == null ? void 0 : b.id) && { roleid: b.id },
723
+ ...O && { searchString: O }
724
724
  }), c = (i == null ? void 0 : i.data) || [];
725
725
  t = [...t, ...c], c.length < 5e4 ? r = !1 : o += 5e4;
726
726
  }
727
727
  return t;
728
728
  } catch (e) {
729
- return console.error(e), v({ message: "Error in retriving all Users", type: "error" }), [];
729
+ return console.error(e), T({ message: "Error in retriving all Users", type: "error" }), [];
730
730
  }
731
- }, Et = async (e) => {
731
+ }, St = async (e) => {
732
732
  try {
733
- const o = /* @__PURE__ */ new Date(), t = o.getMonth() + 1, r = `UserList-${o.getDate()}/${t}/${o.getFullYear().toString().substr(-2)}-${o.getHours()}:${o.getMinutes()}`, i = ae.utils.json_to_sheet(e), c = {
733
+ const o = /* @__PURE__ */ new Date(), t = o.getMonth() + 1, r = `UserList-${o.getDate()}/${t}/${o.getFullYear().toString().substr(-2)}-${o.getHours()}:${o.getMinutes()}`, i = W.utils.json_to_sheet(e), c = {
734
734
  font: { bold: !0 },
735
735
  alignment: { horizontal: "center" }
736
736
  };
737
737
  if (e.length > 0) {
738
- const re = ae.utils.decode_range(i["!ref"]);
739
- for (let ke = re.s.c; ke <= re.e.c; ++ke) {
740
- const Xe = i[ae.utils.encode_cell({ r: 0, c: ke })];
741
- Xe && (Xe.s = c);
738
+ const se = W.utils.decode_range(i["!ref"]);
739
+ for (let ke = se.s.c; ke <= se.e.c; ++ke) {
740
+ const We = i[W.utils.encode_cell({ r: 0, c: ke })];
741
+ We && (We.s = c);
742
742
  }
743
743
  }
744
- const l = ae.utils.book_new();
745
- ae.utils.book_append_sheet(l, i, "Sheet1");
746
- const x = ae.write(l, {
744
+ const l = W.utils.book_new();
745
+ W.utils.book_append_sheet(l, i, "Sheet1");
746
+ const N = W.write(l, {
747
747
  bookType: "xlsx",
748
748
  type: "array"
749
- }), u = new Blob([x], {
749
+ }), h = new Blob([N], {
750
750
  type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
751
- }), We = (u.size / (1024 * 1024)).toFixed(2);
752
- pa.saveAs(u, `${r}.xlsx`), R("file_download", {
751
+ }), Pe = (h.size / (1024 * 1024)).toFixed(2);
752
+ ma.saveAs(h, `${r}.xlsx`), M("file_download", {
753
753
  file_type: "excel",
754
754
  file_name: `${r}.xlsx`,
755
- file_size: `${We} MB`,
755
+ file_size: `${Pe} MB`,
756
756
  filter_parameters: {
757
- taskTypeId: V.id
757
+ taskTypeId: $.id
758
758
  },
759
759
  download_status: "success"
760
760
  });
761
761
  } catch (o) {
762
- console.error("Error generating Excel file:", o), v({ message: "Error generating Excel file", type: "error" });
762
+ console.error("Error generating Excel file:", o), T({ message: "Error generating Excel file", type: "error" });
763
763
  }
764
- }, [ze, ve] = d(!1), Ot = async () => {
764
+ }, [De, Ie] = d(!1), At = async () => {
765
765
  try {
766
- ve(!0);
767
- let e;
768
- (w == null ? void 0 : w.length) === 0 ? (e = await De(), z(e)) : e = w;
766
+ Ie(!0);
767
+ const e = await je();
769
768
  let o = [];
770
769
  e && e.length > 0 && (o = e.map((t, r) => {
771
- var x;
770
+ var N;
772
771
  let i = "", c;
773
- t != null && t.title && (i += t.title + " "), t != null && t.firstName && (i += t.firstName + " "), t != null && t.lastName && (i += t.lastName), t != null && t.areaOfIntervention && (c = (x = t == null ? void 0 : t.areaOfIntervention) == null ? void 0 : x.replace(
772
+ t != null && t.title && (i += t.title + " "), t != null && t.firstName && (i += t.firstName + " "), t != null && t.lastName && (i += t.lastName), t != null && t.areaOfIntervention && (c = (N = t == null ? void 0 : t.areaOfIntervention) == null ? void 0 : N.replace(
774
773
  /<br\s*\/?>/gi,
775
774
  `,
776
775
  `
@@ -785,42 +784,42 @@ function Ga() {
785
784
  "HEALTH INFRASTRUCTURE": (t == null ? void 0 : t.healthFacilityName) || "NA",
786
785
  "USER STATUS": (t == null ? void 0 : t.displayState) || "NA"
787
786
  };
788
- return Object.keys(l).forEach((u) => {
789
- u === "id" ? delete l[u] : l[u] === null ? l[u] = "" : typeof l[u] == "boolean" && (l[u] = l[u] ? "Yes" : "No");
787
+ return Object.keys(l).forEach((h) => {
788
+ h === "id" ? delete l[h] : l[h] === null ? l[h] = "" : typeof l[h] == "boolean" && (l[h] = l[h] ? "Yes" : "No");
790
789
  }), l;
791
- })), Et(o), ve(!1);
790
+ })), St(o), Ie(!1);
792
791
  } catch (e) {
793
- ve(!1), console.log(e), v({
792
+ Ie(!1), console.log(e), T({
794
793
  message: "Error in downloading excel",
795
794
  type: "error"
796
795
  });
797
796
  }
798
- }, _t = ua(), [Ye, Te] = d(!1), wt = async () => {
797
+ }, Et = fa(), [ze, Te] = d(!1), Ot = async () => {
799
798
  try {
800
799
  Te(!0);
801
- let e = [];
802
- if ((w == null ? void 0 : w.length) === 0 ? (e = await De(), z(e)) : e = w, !e || e.length === 0) return;
800
+ const e = await je();
801
+ if (!e || e.length === 0) return;
803
802
  let o = [], t = [];
804
- o.push("NAME"), t.push("name"), Ie.filter(
803
+ o.push("NAME"), t.push("name"), ve.filter(
805
804
  (l) => l.field !== "Actions" && l.field !== "index" && l.field !== "Sr. No."
806
805
  ).forEach((l) => {
807
806
  o.push(l.label), t.push(l.field);
808
807
  });
809
808
  let r = e.map((l) => {
810
- var re;
811
- let x = "", u;
812
- return l != null && l.title && (x += l.title + " "), l != null && l.firstName && (x += l.firstName + " "), l != null && l.lastName && (x += l.lastName), l != null && l.areaOfIntervention && (u = (re = l == null ? void 0 : l.areaOfIntervention) == null ? void 0 : re.replace(
809
+ var se;
810
+ let N = "", h;
811
+ return l != null && l.title && (N += l.title + " "), l != null && l.firstName && (N += l.firstName + " "), l != null && l.lastName && (N += l.lastName), l != null && l.areaOfIntervention && (h = (se = l == null ? void 0 : l.areaOfIntervention) == null ? void 0 : se.replace(
813
812
  /<br\s*\/?>/gi,
814
813
  `,
815
814
  `
816
815
  )), {
817
816
  ...l,
818
- name: x || "NA",
819
- areaOfIntervention: u
817
+ name: N || "NA",
818
+ areaOfIntervention: h
820
819
  };
821
820
  });
822
821
  const i = /* @__PURE__ */ new Date(), c = i.getMonth() + 1;
823
- _t({
822
+ Et({
824
823
  columns: o,
825
824
  keys: t,
826
825
  data: r,
@@ -832,57 +831,57 @@ function Ga() {
832
831
  } catch (e) {
833
832
  Te(!1), console.error(e);
834
833
  }
835
- }, Bt = () => {
836
- _e(null), we(null), ee("BOTH"), te({}), $e(!1), He([]), h([]), Be(Ae({ ...b, userFilterPreference: {} })), Le(null), Re({}), Fe((e) => e + 1), Me.current = null, je();
834
+ }, _t = () => {
835
+ Oe(null), _e(null), K("BOTH"), P({}), Re(!1), He([]), w([]), we(Ae({ ...x, userFilterPreference: {} })), Be(null), Me({}), $e((e) => e + 1), Le.current = null, Ve();
837
836
  };
838
- return !me && !(S != null && S["view.manage.users"]) ? /* @__PURE__ */ a(_, { className: "flex justify-center items-center w-full h-[80vh]", children: /* @__PURE__ */ a(
839
- Kt,
837
+ return !ue && !(y != null && y["view.manage.users"]) ? /* @__PURE__ */ a(E, { className: "flex justify-center items-center w-full h-[80vh]", children: /* @__PURE__ */ a(
838
+ Jt,
840
839
  {
841
840
  className: "h-80 w-150 flex justify-center items-center",
842
841
  "data-testid": "userlist-no-permission",
843
- children: /* @__PURE__ */ a(at, { variant: "h5", className: "text-customBlue", children: "You dont have permission to view Users" })
842
+ children: /* @__PURE__ */ a(tt, { variant: "h5", className: "text-customBlue", children: "You dont have permission to view Users" })
844
843
  }
845
- ) }) : /* @__PURE__ */ p(B, { className: "w-[98%] mt-4 ", children: [
844
+ ) }) : /* @__PURE__ */ p(_, { className: "w-[98%] mt-4 ", children: [
846
845
  /* @__PURE__ */ a(
847
- et,
846
+ Ze,
848
847
  {
849
- open: H === 1,
850
- handleClose: () => L(0),
851
- handleClick: Ct,
848
+ open: ce === 1,
849
+ handleClose: () => B(0),
850
+ handleClick: xt,
852
851
  title: "CONFIRM ACTION",
853
852
  description: "Are you sure you want toggle the state of this user type?",
854
853
  dataTestId: "userlist-modal-status-confirmation"
855
854
  }
856
855
  ),
857
856
  /* @__PURE__ */ a(
858
- et,
857
+ Ze,
859
858
  {
860
- open: H === 2,
861
- handleClose: () => L(0),
862
- handleClick: It,
859
+ open: ce === 2,
860
+ handleClose: () => B(0),
861
+ handleClick: Nt,
863
862
  title: "CONFIRM ACTION",
864
863
  description: "Are you sure you want to Generate SOH code ?",
865
864
  dataTestId: "userlist-modal-generate-soh-confirmation"
866
865
  }
867
866
  ),
868
- /* @__PURE__ */ a(Rt, { isLoading: me, children: /* @__PURE__ */ p(
869
- B,
867
+ /* @__PURE__ */ a(Lt, { isLoading: ue, children: /* @__PURE__ */ p(
868
+ _,
870
869
  {
871
870
  container: !0,
872
871
  className: "flex flex-col md:flex-row mb-2 justify-between items-start md:items-center space-y-2 md:space-y-0",
873
872
  children: [
874
- /* @__PURE__ */ a(B, { children: /* @__PURE__ */ a(
875
- at,
873
+ /* @__PURE__ */ a(_, { children: /* @__PURE__ */ a(
874
+ tt,
876
875
  {
877
876
  variant: "body2",
878
877
  className: "font-bold font-sans text-lg text-[var(--color-customBlue)] uppercase text-customBlue",
879
878
  "data-testid": "notification-list-typography-title",
880
- children: se("User List")
879
+ children: ne("User List")
881
880
  }
882
881
  ) }),
883
- /* @__PURE__ */ p(B, { className: "flex flex-col md:flex-row w-full md:w-auto space-y-2 md:space-y-0 md:space-x-3", children: [
884
- /* @__PURE__ */ a(B, { className: "w-full md:w-auto", children: /* @__PURE__ */ a(
885
- Pt,
882
+ /* @__PURE__ */ p(_, { className: "flex flex-col md:flex-row w-full md:w-auto space-y-2 md:space-y-0 md:space-x-3", children: [
883
+ /* @__PURE__ */ a(_, { className: "w-full md:w-auto", children: /* @__PURE__ */ a(
884
+ Qt,
886
885
  {
887
886
  name: "searchQuery",
888
887
  id: "searchQuery",
@@ -891,9 +890,9 @@ function Ga() {
891
890
  size: "small",
892
891
  onChange: (e) => {
893
892
  var o;
894
- return Z((o = e.target) == null ? void 0 : o.value);
893
+ return le((o = e.target) == null ? void 0 : o.value);
895
894
  },
896
- value: U,
895
+ value: O,
897
896
  "data-testid": "userlist-textfield-search",
898
897
  sx: {
899
898
  "& .MuiInputBase-root": {
@@ -906,20 +905,20 @@ function Ga() {
906
905
  /* @__PURE__ */ p(
907
906
  "div",
908
907
  {
909
- className: `flex items-center rounded-2xl p-1 shadow-sm transition-all duration-300 border ${F ? "bg-slate-900 border-slate-800" : "bg-white border-slate-200"}`,
908
+ className: `flex items-center rounded-2xl p-1 shadow-sm transition-all duration-300 border ${R ? "bg-slate-900 border-slate-800" : "bg-white border-slate-200"}`,
910
909
  children: [
911
910
  /* @__PURE__ */ a(
912
911
  "button",
913
912
  {
914
- disabled: Ye,
915
- onClick: wt,
916
- className: `px-4 py-2 rounded-xl transition-all flex items-center gap-2 text-xs font-black uppercase tracking-wider ${F ? "text-slate-400 hover:text-slate-100 hover:bg-slate-800" : "text-slate-600 hover:text-red-600 hover:bg-slate-50"}`,
917
- children: Ye ? /* @__PURE__ */ p(ue, { children: [
918
- /* @__PURE__ */ a(ot, { size: 14, sx: { color: "inherit" } }),
919
- /* @__PURE__ */ a(D, { icon: nt, className: "mr-1" }),
913
+ disabled: ze,
914
+ onClick: Ot,
915
+ className: `px-4 py-2 rounded-xl transition-all flex items-center gap-2 text-xs font-black uppercase tracking-wider ${R ? "text-slate-400 hover:text-slate-100 hover:bg-slate-800" : "text-slate-600 hover:text-red-600 hover:bg-slate-50"}`,
916
+ children: ze ? /* @__PURE__ */ p(ye, { children: [
917
+ /* @__PURE__ */ a(at, { size: 14, sx: { color: "inherit" } }),
918
+ /* @__PURE__ */ a(V, { icon: lt, className: "mr-1" }),
920
919
  "Pdf"
921
- ] }) : /* @__PURE__ */ p(ue, { children: [
922
- /* @__PURE__ */ a(D, { icon: nt, className: "mr-1" }),
920
+ ] }) : /* @__PURE__ */ p(ye, { children: [
921
+ /* @__PURE__ */ a(V, { icon: lt, className: "mr-1" }),
923
922
  "Pdf"
924
923
  ] })
925
924
  }
@@ -927,15 +926,15 @@ function Ga() {
927
926
  /* @__PURE__ */ a(
928
927
  "button",
929
928
  {
930
- disabled: ze,
931
- onClick: () => Ot(),
932
- className: `px-4 py-2 rounded-xl transition-all flex items-center gap-2 text-xs font-black uppercase tracking-wider ml-1 ${F ? "bg-slate-800 text-slate-100 hover:bg-slate-700" : "bg-[#243A50] text-white hover:bg-[#1a2b3c]"}`,
933
- children: ze ? /* @__PURE__ */ p(ue, { children: [
934
- /* @__PURE__ */ a(ot, { size: 14, sx: { color: "inherit" } }),
935
- /* @__PURE__ */ a(D, { icon: st, className: "mr-1" }),
929
+ disabled: De,
930
+ onClick: () => At(),
931
+ className: `px-4 py-2 rounded-xl transition-all flex items-center gap-2 text-xs font-black uppercase tracking-wider ml-1 ${R ? "bg-slate-800 text-slate-100 hover:bg-slate-700" : "bg-[var(--color-tableHeader)] text-white hover:bg-[var(--color-tableHeader)]"}`,
932
+ children: De ? /* @__PURE__ */ p(ye, { children: [
933
+ /* @__PURE__ */ a(at, { size: 14, sx: { color: "inherit" } }),
934
+ /* @__PURE__ */ a(V, { icon: nt, className: "mr-1" }),
936
935
  "Excel Data"
937
- ] }) : /* @__PURE__ */ p(ue, { children: [
938
- /* @__PURE__ */ a(D, { icon: st, className: "mr-1" }),
936
+ ] }) : /* @__PURE__ */ p(ye, { children: [
937
+ /* @__PURE__ */ a(V, { icon: nt, className: "mr-1" }),
939
938
  "Excel Data"
940
939
  ] })
941
940
  }
@@ -943,21 +942,21 @@ function Ga() {
943
942
  ]
944
943
  }
945
944
  ),
946
- (S == null ? void 0 : S["create.manage.users"]) && /* @__PURE__ */ a(
947
- Ue,
945
+ (y == null ? void 0 : y["create.manage.users"]) && /* @__PURE__ */ a(
946
+ Se,
948
947
  {
949
948
  variant: "contained",
950
949
  className: "w-auto ml-auto",
951
950
  onClick: () => {
952
- R("button_click", {
951
+ M("button_click", {
953
952
  button_name: "add_user",
954
953
  button_type: "navigate",
955
954
  button_id: "userlist-button-add"
956
- }), K("/ui/medplat/manage/user");
955
+ }), J("/ui/medplat/manage/user");
957
956
  },
958
957
  size: "small",
959
958
  "data-testid": "userlist-button-add",
960
- children: se("Add")
959
+ children: ne("Add")
961
960
  }
962
961
  )
963
962
  ] })
@@ -965,42 +964,42 @@ function Ga() {
965
964
  ]
966
965
  }
967
966
  ) }),
968
- /* @__PURE__ */ a($t, { isLoading: xe, children: m && /* @__PURE__ */ p("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4 mb-4", children: [
967
+ /* @__PURE__ */ a(Mt, { isLoading: Ce, children: m && /* @__PURE__ */ p("div", { className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mt-4 mb-4", children: [
969
968
  /* @__PURE__ */ a(
970
- he,
969
+ be,
971
970
  {
972
971
  title: "Total Users",
973
972
  value: (m == null ? void 0 : m.total_users) || 0,
974
- icon: ra,
975
- bottomIndicator: le,
976
- selected: J === "BOTH" && C.length === 0,
977
- selectedBgColor: le,
978
- selectedTitleColor: k,
979
- selectedValueColor: k,
973
+ icon: na,
974
+ bottomIndicator: Z,
975
+ selected: G === "BOTH" && v.length === 0,
976
+ selectedBgColor: Z,
977
+ selectedTitleColor: C,
978
+ selectedValueColor: C,
980
979
  onClick: () => {
981
- (m == null ? void 0 : m.total_users) > 0 ? (h([]), ee("BOTH"), te((e) => ({
980
+ (m == null ? void 0 : m.total_users) > 0 ? (w([]), K("BOTH"), P((e) => ({
982
981
  ...e,
983
982
  status: "BOTH"
984
- }))) : v({ message: "No users found", type: "warning" });
983
+ }))) : T({ message: "No users found", type: "warning" });
985
984
  }
986
985
  }
987
986
  ),
988
987
  /* @__PURE__ */ a(
989
- he,
988
+ be,
990
989
  {
991
990
  title: "Active Users",
992
991
  value: (m == null ? void 0 : m.active_count) || 0,
993
- icon: ia,
994
- bottomIndicator: ce,
995
- selected: J === "ACTIVE" && C.length === 0,
996
- selectedBgColor: ce,
997
- selectedTitleColor: k,
998
- selectedValueColor: k,
992
+ icon: sa,
993
+ bottomIndicator: j,
994
+ selected: G === "ACTIVE" && v.length === 0,
995
+ selectedBgColor: j,
996
+ selectedTitleColor: C,
997
+ selectedValueColor: C,
999
998
  onClick: () => {
1000
- (m == null ? void 0 : m.active_count) > 0 ? (h([]), ee("ACTIVE"), te((e) => ({
999
+ (m == null ? void 0 : m.active_count) > 0 ? (w([]), K("ACTIVE"), P((e) => ({
1001
1000
  ...e,
1002
1001
  status: "ACTIVE"
1003
- }))) : v({
1002
+ }))) : T({
1004
1003
  message: "No active users found",
1005
1004
  type: "warning"
1006
1005
  });
@@ -1008,21 +1007,21 @@ function Ga() {
1008
1007
  }
1009
1008
  ),
1010
1009
  /* @__PURE__ */ a(
1011
- he,
1010
+ be,
1012
1011
  {
1013
1012
  title: "Inactive Users",
1014
1013
  value: (m == null ? void 0 : m.inactive_count) || 0,
1015
- icon: ca,
1016
- bottomIndicator: $,
1017
- selected: J === "INACTIVE" && C.length === 0,
1018
- selectedBgColor: $,
1019
- selectedTitleColor: k,
1020
- selectedValueColor: k,
1014
+ icon: ra,
1015
+ bottomIndicator: ee,
1016
+ selected: G === "INACTIVE" && v.length === 0,
1017
+ selectedBgColor: ee,
1018
+ selectedTitleColor: C,
1019
+ selectedValueColor: C,
1021
1020
  onClick: () => {
1022
- (m == null ? void 0 : m.inactive_count) > 0 ? (h([]), ee("INACTIVE"), te((e) => ({
1021
+ (m == null ? void 0 : m.inactive_count) > 0 ? (w([]), K("INACTIVE"), P((e) => ({
1023
1022
  ...e,
1024
1023
  status: "INACTIVE"
1025
- }))) : v({
1024
+ }))) : T({
1026
1025
  message: "No inactive users found",
1027
1026
  type: "warning"
1028
1027
  });
@@ -1030,21 +1029,21 @@ function Ga() {
1030
1029
  }
1031
1030
  ),
1032
1031
  /* @__PURE__ */ a(
1033
- he,
1032
+ be,
1034
1033
  {
1035
1034
  title: "Admins",
1036
1035
  value: (m == null ? void 0 : m.admin_role_count) || 0,
1037
- icon: da,
1038
- bottomIndicator: de,
1039
- selected: C.length > 0,
1040
- selectedBgColor: de,
1041
- selectedTitleColor: k,
1042
- selectedValueColor: k,
1036
+ icon: ia,
1037
+ bottomIndicator: ie,
1038
+ selected: v.length > 0,
1039
+ selectedBgColor: ie,
1040
+ selectedTitleColor: C,
1041
+ selectedValueColor: C,
1043
1042
  onClick: () => {
1044
- (m == null ? void 0 : m.admin_role_count) > 0 ? (ee("BOTH"), te((e) => ({
1043
+ (m == null ? void 0 : m.admin_role_count) > 0 ? (K("BOTH"), P((e) => ({
1045
1044
  ...e,
1046
1045
  status: "BOTH"
1047
- })), h(oe)) : v({
1046
+ })), w(X)) : T({
1048
1047
  message: "No active users found",
1049
1048
  type: "warning"
1050
1049
  });
@@ -1053,55 +1052,55 @@ function Ga() {
1053
1052
  )
1054
1053
  ] }) }),
1055
1054
  /* @__PURE__ */ a(
1056
- Dt,
1055
+ Vt,
1057
1056
  {
1058
- columns: Nt,
1059
- tableData: xt,
1060
- actions: Tt,
1057
+ columns: bt,
1058
+ tableData: yt,
1059
+ actions: vt,
1061
1060
  paginationConfig: {
1062
1061
  pagination: !0,
1063
1062
  paginationType: "infinite-scroll",
1064
- rowsPerPageInTable: Oe,
1065
- hasMore: j,
1066
- loadMore: () => j && Ut({ cancelRefetch: !1 })
1063
+ rowsPerPageInTable: Ee,
1064
+ hasMore: pe,
1065
+ loadMore: () => pe && kt({ cancelRefetch: !1 })
1067
1066
  },
1068
1067
  styleConfig: { cellStyle: { maxLines: 2 } },
1069
- isLoading: V ? me : !0,
1070
- handleSort: kt,
1068
+ isLoading: $ ? ue : !0,
1069
+ handleSort: It,
1071
1070
  dataTestId: "userlist-table-customized"
1072
1071
  }
1073
1072
  ),
1074
1073
  /* @__PURE__ */ a(
1075
- zt,
1074
+ jt,
1076
1075
  {
1077
1076
  title: "User Filter",
1078
1077
  resetButtonLabel: "Reset",
1079
- onResetClick: Bt,
1080
- FormBody: ft,
1081
- handleOverlayState: je,
1082
- overlayOpen: I,
1078
+ onResetClick: _t,
1079
+ FormBody: mt,
1080
+ handleOverlayState: Ve,
1081
+ overlayOpen: H,
1083
1082
  dataTestId: "userlist-overlay-filter",
1084
1083
  formProps: {
1085
- setAdminRoleIdsStats: h,
1086
- setIsLoading: q,
1087
- isLoading: me,
1088
- setLocationId: _e,
1089
- setRoleDetails: we,
1090
- roleDetails: y,
1091
- status: J,
1092
- setStatus: ee,
1093
- setSelectedLocation: Re,
1094
- selectedLocation: ht,
1095
- filterRequired: gt,
1096
- setFilterRequired: $e,
1097
- setUserFilterPreference: te,
1098
- user: b,
1084
+ setAdminRoleIdsStats: w,
1085
+ setIsLoading: Y,
1086
+ isLoading: ue,
1087
+ setLocationId: Oe,
1088
+ setRoleDetails: _e,
1089
+ roleDetails: b,
1090
+ status: G,
1091
+ setStatus: K,
1092
+ setSelectedLocation: Me,
1093
+ selectedLocation: pt,
1094
+ filterRequired: ut,
1095
+ setFilterRequired: Re,
1096
+ setUserFilterPreference: P,
1097
+ user: x,
1099
1098
  userFilterPreference: s,
1100
- locationIdRef: Me,
1101
- setSelectedLocationId: Le,
1102
- resetLocationDirective: yt,
1103
- setResetLocationDirective: Fe,
1104
- locations: bt,
1099
+ locationIdRef: Le,
1100
+ setSelectedLocationId: Be,
1101
+ resetLocationDirective: ht,
1102
+ setResetLocationDirective: $e,
1103
+ locations: gt,
1105
1104
  setLocations: He
1106
1105
  }
1107
1106
  }
@@ -1109,6 +1108,6 @@ function Ga() {
1109
1108
  ] });
1110
1109
  }
1111
1110
  export {
1112
- Ga as default
1111
+ za as default
1113
1112
  };
1114
- //# sourceMappingURL=UserList-BAeAFeXZ.js.map
1113
+ //# sourceMappingURL=UserList-D7GL7jvO.js.map