@argusoft/medplat-core 1.0.19 → 1.0.21

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 (71) hide show
  1. package/dist/{AccessRights-Bvd5Bm5K.js → AccessRights-CupmTG3T.js} +2 -2
  2. package/dist/{AccessRights-Bvd5Bm5K.js.map → AccessRights-CupmTG3T.js.map} +1 -1
  3. package/dist/{AddEditQueryBuilder-Bcjl5mXE.js → AddEditQueryBuilder-C8ZSkOF0.js} +60 -60
  4. package/dist/AddEditQueryBuilder-C8ZSkOF0.js.map +1 -0
  5. package/dist/{AddFeatures-CE5rBxEG.js → AddFeatures-CTVs_Gr9.js} +2 -2
  6. package/dist/{AddFeatures-CE5rBxEG.js.map → AddFeatures-CTVs_Gr9.js.map} +1 -1
  7. package/dist/{AddRoleDrawer-Bc655LQU.js → AddRoleDrawer-CQdzQZLb.js} +36 -36
  8. package/dist/AddRoleDrawer-CQdzQZLb.js.map +1 -0
  9. package/dist/{ChangePasswordModalCore-50EzprTk.js → ChangePasswordModalCore-DotONnMz.js} +459 -458
  10. package/dist/{ChangePasswordModalCore-50EzprTk.js.map → ChangePasswordModalCore-DotONnMz.js.map} +1 -1
  11. package/dist/{ConditionConfig-D2hOAa4n.js → ConditionConfig-C3rF2wXU.js} +2 -2
  12. package/dist/{ConditionConfig-D2hOAa4n.js.map → ConditionConfig-C3rF2wXU.js.map} +1 -1
  13. package/dist/{EventConfigurations-D8juDb29.js → EventConfigurations-BGffjVC7.js} +3 -3
  14. package/dist/{EventConfigurations-D8juDb29.js.map → EventConfigurations-BGffjVC7.js.map} +1 -1
  15. package/dist/{EventsExceptionModal-DsvngLi8.js → EventsExceptionModal-D4Bf1ilS.js} +2 -2
  16. package/dist/{EventsExceptionModal-DsvngLi8.js.map → EventsExceptionModal-D4Bf1ilS.js.map} +1 -1
  17. package/dist/EventsSkeleton-8iiETGcf.js +76 -0
  18. package/dist/EventsSkeleton-8iiETGcf.js.map +1 -0
  19. package/dist/{FeatureMenu-CLX8VNZ-.js → FeatureMenu-DUZL32RI.js} +3 -3
  20. package/dist/{FeatureMenu-CLX8VNZ-.js.map → FeatureMenu-DUZL32RI.js.map} +1 -1
  21. package/dist/Features-CObdzJp_.js +13 -0
  22. package/dist/Features-CObdzJp_.js.map +1 -0
  23. package/dist/{ImmunizationConfigurationBase-C5wnjI_-.js → ImmunizationConfigurationBase-CUQGVlhB.js} +741 -731
  24. package/dist/ImmunizationConfigurationBase-CUQGVlhB.js.map +1 -0
  25. package/dist/ImmunizationConfigurationBase.css +1 -1
  26. package/dist/{ManageDynamicFeature-i6ARKe36.js → ManageDynamicFeature-BhONvfC_.js} +2 -2
  27. package/dist/{ManageDynamicFeature-i6ARKe36.js.map → ManageDynamicFeature-BhONvfC_.js.map} +1 -1
  28. package/dist/{ManageEventConfiguration-CHugu2vQ.js → ManageEventConfiguration-BntUc_YI.js} +5 -5
  29. package/dist/{ManageEventConfiguration-CHugu2vQ.js.map → ManageEventConfiguration-BntUc_YI.js.map} +1 -1
  30. package/dist/{ManageNotification-BUAvg5Ge.js → ManageNotification-CSl02Wq7.js} +2 -2
  31. package/dist/{ManageNotification-BUAvg5Ge.js.map → ManageNotification-CSl02Wq7.js.map} +1 -1
  32. package/dist/{ManageRole-Cbs9dUhc.js → ManageRole-CZAk-IlM.js} +222 -229
  33. package/dist/ManageRole-CZAk-IlM.js.map +1 -0
  34. package/dist/{ManageUser-C6dlK-Mr.js → ManageUser-Ca1BsI1u.js} +2 -2
  35. package/dist/{ManageUser-C6dlK-Mr.js.map → ManageUser-Ca1BsI1u.js.map} +1 -1
  36. package/dist/{MobileTypeEventConfigModal-2w0WQ3WY.js → MobileTypeEventConfigModal-BNjZ8pnq.js} +2 -2
  37. package/dist/{MobileTypeEventConfigModal-2w0WQ3WY.js.map → MobileTypeEventConfigModal-BNjZ8pnq.js.map} +1 -1
  38. package/dist/{NotificationList-CUZSWp2J.js → NotificationList-D1U1LYnz.js} +140 -139
  39. package/dist/NotificationList-D1U1LYnz.js.map +1 -0
  40. package/dist/{OtherTypeEventConfigModal-D1p8M39y.js → OtherTypeEventConfigModal-DiVhWDpG.js} +2 -2
  41. package/dist/{OtherTypeEventConfigModal-D1p8M39y.js.map → OtherTypeEventConfigModal-DiVhWDpG.js.map} +1 -1
  42. package/dist/{QueryBuilder-DXexUIe8.js → QueryBuilder-DI0wCJbz.js} +85 -84
  43. package/dist/QueryBuilder-DI0wCJbz.js.map +1 -0
  44. package/dist/{RoleManagement-BThAL5LO.js → RoleManagement-B9WgZGEj.js} +182 -168
  45. package/dist/RoleManagement-B9WgZGEj.js.map +1 -0
  46. package/dist/{ShowFlywayQuery-BkyA6QaA.js → ShowFlywayQuery-tj42YQAS.js} +33 -33
  47. package/dist/ShowFlywayQuery-tj42YQAS.js.map +1 -0
  48. package/dist/{SubMenu-BGznOP2a.js → SubMenu-CM_4wNCR.js} +2 -2
  49. package/dist/{SubMenu-BGznOP2a.js.map → SubMenu-CM_4wNCR.js.map} +1 -1
  50. package/dist/{TypeConfiguration-D-3xNcyd.js → TypeConfiguration-CupQxH9Y.js} +28 -28
  51. package/dist/TypeConfiguration-CupQxH9Y.js.map +1 -0
  52. package/dist/{UserList-D7GL7jvO.js → UserList-BzHsbYel.js} +186 -185
  53. package/dist/UserList-BzHsbYel.js.map +1 -0
  54. package/dist/{WidgetList-B3Sm9weK.js → WidgetList-B7X8Awkg.js} +2 -2
  55. package/dist/{WidgetList-B3Sm9weK.js.map → WidgetList-B7X8Awkg.js.map} +1 -1
  56. package/dist/index.js +10 -10
  57. package/package.json +1 -1
  58. package/dist/AddEditQueryBuilder-Bcjl5mXE.js.map +0 -1
  59. package/dist/AddRoleDrawer-Bc655LQU.js.map +0 -1
  60. package/dist/EventsSkeleton-DCXwwPbb.js +0 -76
  61. package/dist/EventsSkeleton-DCXwwPbb.js.map +0 -1
  62. package/dist/Features-Cpf1PDx0.js +0 -13
  63. package/dist/Features-Cpf1PDx0.js.map +0 -1
  64. package/dist/ImmunizationConfigurationBase-C5wnjI_-.js.map +0 -1
  65. package/dist/ManageRole-Cbs9dUhc.js.map +0 -1
  66. package/dist/NotificationList-CUZSWp2J.js.map +0 -1
  67. package/dist/QueryBuilder-DXexUIe8.js.map +0 -1
  68. package/dist/RoleManagement-BThAL5LO.js.map +0 -1
  69. package/dist/ShowFlywayQuery-BkyA6QaA.js.map +0 -1
  70. package/dist/TypeConfiguration-D-3xNcyd.js.map +0 -1
  71. package/dist/UserList-D7GL7jvO.js.map +0 -1
@@ -1,36 +1,37 @@
1
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";
2
+ import { useTranslateProvider as nt } from "@/common/languageTranslator/TranslationContext";
3
+ import { U as _t, a as wt, g as st, b as Bt, c as Lt, t as Mt, d as Rt, e as We } from "./UserListSkeleton-DhIJ5X3y.js";
4
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";
5
+ import $t from "@/hooks/usePagination.js";
6
+ import { getAssignedFeatures as Ht } from "@/utils/feature.js";
7
+ import Xe from "@/views/custom-components/CustomConfirmationModal.jsx";
8
+ import Ft from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
9
+ import Vt from "@/views/custom-components/SideOverlay.jsx";
10
10
  import f from "prop-types";
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";
11
+ import { useState as d, useEffect as G, Suspense as jt, lazy as Dt, useRef as Ze, useMemo as zt, useCallback as Yt } from "react";
12
+ import { InputLabel as ke, Switch as qt, Button as Ue, Box as E, Card as Gt, Typography as et, TextField as Jt, CircularProgress as tt, Tooltip as Qt } from "@mui/material";
13
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
- import { setUserDetails as Ae } from "@/store/reducers/AuthenticationReducer";
20
- import { useLocation as dt, useNavigate as ea } from "react-router";
21
- import xe from "@/common/services/util/GeneralUtil";
14
+ import at from "@/views/custom-components/CustomDropdown";
15
+ import { useForm as Kt, FormProvider as Pt } from "react-hook-form";
16
+ import rt from "@/hooks/useTrackEvent";
17
+ import { showToast as Wt } from "@/common/toaster/toaster";
18
+ import { useDispatch as it, useSelector as Xt } from "react-redux";
19
+ import { setUserDetails as Se } from "@/store/reducers/AuthenticationReducer";
20
+ import { useLocation as ct, useNavigate as Zt } from "react-router";
21
+ import ea from "@/common/config/implementationConfig";
22
22
  import { useTheme as ta, alpha as k } from "@mui/material/styles";
23
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";
24
+ import { faPen as oa, faBars as la, faFilePdf as ot, faFileExcel as lt, 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
25
  import { FontAwesomeIcon as V } from "@fortawesome/react-fontawesome";
26
26
  import { F as ma } from "./FileSaver.min-CN9EpL2h.js";
27
- import { x as W } from "./xlsx.min-D1LFqt_b.js";
27
+ import { x as P } from "./xlsx.min-D1LFqt_b.js";
28
28
  import fa from "@/hooks/useDownloadPdf.js";
29
29
  import be from "@/views/custom-components/CustomStatsComponent.jsx";
30
- import './UserList.css';const pa = zt(
30
+ import "@/common/services/util/GeneralUtil.js";
31
+ import './UserList.css';const pa = Dt(
31
32
  () => import("@/views/feature-components/LocationDirective/LocationDirectiveV2")
32
- ), mt = ({
33
- handleOverlayState: J,
33
+ ), dt = ({
34
+ handleOverlayState: W,
34
35
  setIsLoading: M,
35
36
  isLoading: X,
36
37
  setLocationId: re,
@@ -44,28 +45,28 @@ import './UserList.css';const pa = zt(
44
45
  setUserFilterPreference: D,
45
46
  user: U,
46
47
  setFilterRequired: m,
47
- locationIdRef: Ne,
48
- locations: Ce,
48
+ locationIdRef: xe,
49
+ locations: Ne,
49
50
  setLocations: te,
50
51
  setAdminRoleIdsStats: n
51
52
  }) => {
52
- const [R, ce] = d([]), B = it(), { translate: y } = st(), de = Pt({ mode: "onChange" }), ae = ct(), u = dt(), {
53
+ const [R, ce] = d([]), B = rt(), { translate: y } = nt(), de = Kt({ mode: "onChange" }), ae = it(), u = ct(), {
53
54
  control: oe,
54
55
  handleSubmit: O,
55
56
  formState: { errors: le },
56
57
  getValues: me,
57
- setValue: Q,
58
+ setValue: J,
58
59
  clearErrors: $
59
60
  } = de, fe = async () => {
60
61
  var I, H, S, g;
61
62
  try {
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));
63
+ const { data: L } = await st({}, { showLoader: !1 });
64
+ ce(L), j != null && j.id && J("roleId", j.id), ee && J("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 && (J("roleId", (S = U == null ? void 0 : U.userFilterPreference) == null ? void 0 : S.roleid), J("status", (g = U == null ? void 0 : U.userFilterPreference) == null ? void 0 : g.status));
64
65
  } catch (L) {
65
66
  console.error(L);
66
67
  }
67
68
  };
68
- q(() => {
69
+ G(() => {
69
70
  fe();
70
71
  }, []);
71
72
  const pe = async () => {
@@ -90,7 +91,7 @@ import './UserList.css';const pa = zt(
90
91
  (F) => F.id === me("roleId")
91
92
  );
92
93
  z != null && z.id ? (g.roleid = z.id, Z(z)) : Z(null), D(g), ae(
93
- Ae({
94
+ Se({
94
95
  ...U,
95
96
  userFilterPreference: {
96
97
  ...g,
@@ -101,12 +102,12 @@ import './UserList.css';const pa = zt(
101
102
  ), B("filter", {
102
103
  filter_type: ["location", "role", "status"],
103
104
  ...g
104
- }), M((F) => !F), J();
105
+ }), M((F) => !F), W();
105
106
  } catch (S) {
106
- Xt({ message: `error : ${S == null ? void 0 : S.message}`, type: "error" }), M((g) => !g);
107
+ Wt({ message: `error : ${S == null ? void 0 : S.message}`, type: "error" }), M((g) => !g);
107
108
  }
108
109
  };
109
- return /* @__PURE__ */ a(Wt, { ...de, children: /* @__PURE__ */ p(
110
+ return /* @__PURE__ */ a(Pt, { ...de, children: /* @__PURE__ */ p(
110
111
  _,
111
112
  {
112
113
  className: "m-[1rem]",
@@ -121,8 +122,8 @@ import './UserList.css';const pa = zt(
121
122
  "data-testid": "userfilterform-container-grid",
122
123
  noValidate: !0,
123
124
  children: [
124
- /* @__PURE__ */ a(wt, { isLoading: X, children: /* @__PURE__ */ p(_, { className: "flex items-center", children: [
125
- /* @__PURE__ */ p(Ue, { children: [
125
+ /* @__PURE__ */ a(_t, { isLoading: X, children: /* @__PURE__ */ p(_, { className: "flex items-center", children: [
126
+ /* @__PURE__ */ p(ke, { children: [
126
127
  y("Location Filter Required"),
127
128
  " :"
128
129
  ] }),
@@ -132,12 +133,12 @@ import './UserList.css';const pa = zt(
132
133
  defaultChecked: !0,
133
134
  checked: w,
134
135
  onChange: (I) => {
135
- m(I.target.checked), I.target.checked || (Ne.current = null, $("level1"));
136
+ m(I.target.checked), I.target.checked || (xe.current = null, $("level1"));
136
137
  }
137
138
  }
138
139
  )
139
140
  ] }) }),
140
- w === !0 && /* @__PURE__ */ a(Dt, { children: /* @__PURE__ */ a(
141
+ w === !0 && /* @__PURE__ */ a(jt, { children: /* @__PURE__ */ a(
141
142
  pa,
142
143
  {
143
144
  childForm: !0,
@@ -145,15 +146,15 @@ import './UserList.css';const pa = zt(
145
146
  setSelectedLocation: v,
146
147
  templateType: "inline",
147
148
  disabled: X,
148
- locations: Ce,
149
+ locations: Ne,
149
150
  setLocations: te,
150
- fetchAccordingToUserAoi: !!xe.isBahaar
151
+ fetchAccordingToUserAoi: ea.user.filterLocationsByUserAoi
151
152
  }
152
153
  ) }),
153
- /* @__PURE__ */ a(Bt, { isLoading: X, children: /* @__PURE__ */ p(_, { children: [
154
- /* @__PURE__ */ a(Ue, { "data-testid": "userfilterform-role-label", children: y("Role") }),
154
+ /* @__PURE__ */ a(wt, { isLoading: X, children: /* @__PURE__ */ p(_, { children: [
155
+ /* @__PURE__ */ a(ke, { "data-testid": "userfilterform-role-label", children: y("Role") }),
155
156
  /* @__PURE__ */ a(
156
- ot,
157
+ at,
157
158
  {
158
159
  control: oe,
159
160
  name: "roleId",
@@ -166,7 +167,7 @@ import './UserList.css';const pa = zt(
166
167
  }
167
168
  ),
168
169
  /* @__PURE__ */ a(
169
- Ue,
170
+ ke,
170
171
  {
171
172
  className: "mt-2",
172
173
  "data-testid": "userfilterform-status-label",
@@ -174,7 +175,7 @@ import './UserList.css';const pa = zt(
174
175
  }
175
176
  ),
176
177
  /* @__PURE__ */ a(
177
- ot,
178
+ at,
178
179
  {
179
180
  control: oe,
180
181
  name: "status",
@@ -194,17 +195,17 @@ import './UserList.css';const pa = zt(
194
195
  "data-testid": "userfilterform-buttons-container",
195
196
  children: [
196
197
  /* @__PURE__ */ a(_, { item: !0, "data-testid": "userfilterform-closebutton-item", children: /* @__PURE__ */ a(
197
- Se,
198
+ Ue,
198
199
  {
199
200
  variant: "contained",
200
201
  color: "secondary",
201
- onClick: () => J(),
202
+ onClick: () => W(),
202
203
  "data-testid": "userfilterform-close-button",
203
204
  children: y("Close")
204
205
  }
205
206
  ) }),
206
207
  /* @__PURE__ */ a(_, { item: !0, "data-testid": "userfilterform-searchbutton-item", children: /* @__PURE__ */ a(
207
- Se,
208
+ Ue,
208
209
  {
209
210
  variant: "contained",
210
211
  type: "submit",
@@ -220,7 +221,7 @@ import './UserList.css';const pa = zt(
220
221
  }
221
222
  ) });
222
223
  };
223
- mt.propTypes = {
224
+ dt.propTypes = {
224
225
  handleOverlayState: f.any,
225
226
  setUsersData: f.any,
226
227
  setIsLoading: f.any,
@@ -243,27 +244,27 @@ mt.propTypes = {
243
244
  setLocations: f.any,
244
245
  setAdminRoleIdsStats: f.any
245
246
  };
246
- function za() {
247
- var Ye, Ge, qe, Je, Qe, Ke;
248
- const J = ea(), M = it(), [X, re] = d([]);
247
+ function Ya() {
248
+ var ze, Ye, qe, Ge, Je, Qe;
249
+ const W = Zt(), M = rt(), [X, re] = d([]);
249
250
  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(() => {
251
+ const [v, w] = d([]), [D, U] = d([]), [m, xe] = d(null), [Ne, te] = d(!1), n = ta(), R = n.palette.mode === "dark", [ce, B] = d(0), [y, de] = d({}), ae = Ze(y);
252
+ G(() => {
252
253
  ae.current = y;
253
254
  }, [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
+ const [u, oe] = d(null), [O, le] = d(""), [me, J] = d(""), [$, fe] = d([]), [pe, I] = d(!0), [H, S] = d(!1), [g, L] = d({
255
256
  sortColumn: "userName",
256
257
  sortOrder: "asc"
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) || {},
258
+ }), [z, F] = d(!1), Ae = 50, { translate: ne } = nt(), [ue, Y] = d(!1), [he, Ee] = d(null), [b, Oe] = d(null), [q, Q] = d(null), A = ct(), _e = it(), { user: x } = Xt((e) => e == null ? void 0 : e.Authenticate), [mt, we] = d(
259
+ ((ze = x == null ? void 0 : x.userFilterPreference) == null ? void 0 : ze.locationId) || null
260
+ ), Be = Ze(mt), [ft, Le] = d(
261
+ ((Ye = A == null ? void 0 : A.state) == null ? void 0 : Ye.fromManageUser) === !0 && ((qe = x == null ? void 0 : x.userFilterPreference) == null ? void 0 : qe.selectedLocation) || {},
261
262
  {}
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) => {
263
+ ), [pt, Me] = d(
264
+ ((Ge = A == null ? void 0 : A.state) == null ? void 0 : Ge.fromManageUser) === !0 && ((Je = x == null ? void 0 : x.userFilterPreference) == null ? void 0 : Je.filterRequired) || !1
265
+ ), [s, K] = d(
266
+ ((Qe = A == null ? void 0 : A.state) == null ? void 0 : Qe.fromManageUser) === !0 && (x == null ? void 0 : x.userFilterPreference) || {}
267
+ ), [ut, Re] = d(0), [ht, $e] = d([]), gt = zt(() => $ == null ? void 0 : $.map((e, o) => {
267
268
  let t = "";
268
269
  return e != null && e.title && (t += e.title + " "), e != null && e.firstName && (t += e.firstName + " "), e != null && e.lastName && (t += e.lastName), {
269
270
  ...e,
@@ -271,7 +272,7 @@ function za() {
271
272
  firstName: t.trim()
272
273
  };
273
274
  }), [$, R]);
274
- q(() => {
275
+ G(() => {
275
276
  (async () => {
276
277
  var o, t;
277
278
  try {
@@ -288,14 +289,14 @@ function za() {
288
289
  },
289
290
  { showLoader: !1 }
290
291
  );
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
+ (o = r == null ? void 0 : r.data) != null && o.result && ((t = r == null ? void 0 : r.data) == null ? void 0 : t.result.length) > 0 && xe(r.data.result[0]), te(!1);
292
293
  }
293
294
  } catch (r) {
294
295
  te(!1), console.error("Error fetching user stats:", r);
295
296
  }
296
297
  })();
297
298
  }, [s, D]);
298
- const ve = [
299
+ const Ce = [
299
300
  { field: "Sr. No.", label: "#", align: "left" },
300
301
  {
301
302
  field: "userName",
@@ -437,7 +438,7 @@ function za() {
437
438
  className: "flex items-center text-md pl-2",
438
439
  sx: { color: n.palette.text.primary },
439
440
  children: /* @__PURE__ */ a(
440
- Kt,
441
+ Qt,
441
442
  {
442
443
  arrow: !0,
443
444
  placement: "top",
@@ -536,15 +537,15 @@ function za() {
536
537
  label: "Actions".toUpperCase(),
537
538
  align: "left"
538
539
  }
539
- ], [bt, Fe] = d(ve);
540
- q(() => {
541
- Fe(ve);
540
+ ], [yt, He] = d(Ce);
541
+ G(() => {
542
+ He(Ce);
542
543
  }, [R]);
543
- const xt = async () => {
544
+ const bt = async () => {
544
545
  var o, t, r, i;
545
546
  const e = u.displayState !== "ACTIVE";
546
547
  try {
547
- await Rt(u, { is_active: e }), B(0), F((c) => !c), T({
548
+ await Mt(u, { is_active: e }), B(0), F((c) => !c), T({
548
549
  message: "User State Updated Successfully",
549
550
  type: "success"
550
551
  });
@@ -559,12 +560,12 @@ function za() {
559
560
  type: "error"
560
561
  });
561
562
  }
562
- }, Nt = async () => {
563
+ }, xt = async () => {
563
564
  try {
564
- const e = await $t({
565
- userId: xe.isTecho ? u == null ? void 0 : u.userId : u == null ? void 0 : u.id
565
+ const e = await Rt({
566
+ userId: (u == null ? void 0 : u.userId) ?? (u == null ? void 0 : u.id)
566
567
  });
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
+ e && (fe((o) => o.map((t) => (t == null ? void 0 : t.userId) === ((u == null ? void 0 : u.userId) ?? (u == null ? void 0 : u.id)) ? { ...t, loginCode: e.data } : t)), T({
568
569
  message: `You have successfully generated your login code. Your login code is : ${e.data}`,
569
570
  type: "success"
570
571
  }));
@@ -573,7 +574,7 @@ function za() {
573
574
  } finally {
574
575
  B(0);
575
576
  }
576
- }, Ct = (e) => xe.isTecho ? J(`/ui/medplat/manage/user/${e.userId}`) : J(`/ui/medplat/manage/user/${e.id}`), vt = Gt(
577
+ }, Nt = (e) => W(`/ui/medplat/manage/user/${(e == null ? void 0 : e.userId) ?? (e == null ? void 0 : e.id)}`), Ct = Yt(
577
578
  (e) => {
578
579
  var o;
579
580
  return [
@@ -581,7 +582,7 @@ function za() {
581
582
  label: "",
582
583
  icon: /* @__PURE__ */ a(V, { icon: oa, "data-testid": "userlist-button-edit" }),
583
584
  onClick: () => {
584
- Ct(e);
585
+ Nt(e);
585
586
  },
586
587
  iconColor: n.palette.secondary.main,
587
588
  backgroundColor: k(n.palette.secondary.main, 0.1),
@@ -618,37 +619,37 @@ function za() {
618
619
  ].filter(Boolean);
619
620
  },
620
621
  [ne]
621
- ), It = async (e) => {
622
+ ), vt = async (e) => {
622
623
  const o = e.sortOrder === "asc" ? "desc" : "asc";
623
- Fe(
624
+ He(
624
625
  (t) => t.map((r) => r.field === e.field ? { ...r, sortOrder: o } : r)
625
626
  ), L({ sortColumn: e.field, sortOrder: o });
626
- }, Ve = () => {
627
+ }, Fe = () => {
627
628
  M("button_click", {
628
629
  button_name: "User Filter-open-button",
629
630
  button_type: "filter_open",
630
631
  button_id: "userlist-overlay-filter"
631
632
  }), S(!H);
632
633
  };
633
- q(() => {
634
+ G(() => {
634
635
  const e = setTimeout(() => {
635
- Q(O);
636
+ J(O);
636
637
  }, 1e3);
637
638
  return () => clearTimeout(e);
638
639
  }, [O]);
639
- async function Tt(e, o) {
640
+ async function It(e, o) {
640
641
  var t, r;
641
642
  try {
642
643
  if ((t = ae.current) != null && t["view.manage.users"]) {
643
644
  o && Y((c) => !c);
644
- const i = await Xe({
645
+ const i = await We({
645
646
  limit: e.limit,
646
647
  offset: e.offset,
647
648
  locationId: (s == null ? void 0 : s.locationId) || he,
648
649
  order: g.sortOrder,
649
650
  orderby: g.sortColumn,
650
651
  roleIds: v == null ? void 0 : v.join(","),
651
- status: s != null && s.status ? s == null ? void 0 : s.status : G || "BOTH",
652
+ status: s != null && s.status ? s == null ? void 0 : s.status : q || "BOTH",
652
653
  ...s != null && s.roleid ? { roleid: s == null ? void 0 : s.roleid } : (b == null ? void 0 : b.id) && { roleid: b.id },
653
654
  ...O && { searchString: O }
654
655
  });
@@ -664,9 +665,9 @@ function za() {
664
665
  }
665
666
  const {
666
667
  data: ge,
667
- fetchNextPage: kt,
668
- hasNextPage: Ut
669
- } = Ht({
668
+ fetchNextPage: Tt,
669
+ hasNextPage: kt
670
+ } = $t({
670
671
  key: [
671
672
  "users",
672
673
  me,
@@ -675,50 +676,50 @@ function za() {
675
676
  z,
676
677
  he,
677
678
  b == null ? void 0 : b.id,
678
- G,
679
+ q,
679
680
  y,
680
681
  v
681
682
  ],
682
683
  queryFn: ({ pageParam: e }) => {
683
684
  const o = !(e != null && e.offset) || (e == null ? void 0 : e.offset) === 0;
684
- return Tt(e, o);
685
+ return It(e, o);
685
686
  },
686
- limit: Ee
687
+ limit: Ae
687
688
  });
688
- q(() => {
689
+ G(() => {
689
690
  (async () => {
690
691
  var o;
691
692
  try {
692
- const { data: t } = await rt({}, { showLoader: !1 }), r = t == null ? void 0 : t.filter((l) => {
693
+ const { data: t } = await st({}, { showLoader: !1 }), r = t == null ? void 0 : t.filter((l) => {
693
694
  var N, h;
694
695
  return (h = (N = l == null ? void 0 : l.name) == null ? void 0 : N.toLowerCase()) == null ? void 0 : h.includes("admin");
695
696
  }).map((l) => l.id);
696
697
  re(r);
697
698
  const i = t == null ? void 0 : t.map((l) => l.id);
698
699
  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);
700
+ const { data: c } = await Ht("techo.manage.users");
701
+ c && de(JSON.parse(c)), (o = A == null ? void 0 : A.state) != null && o.fromManageUser || _e(Se({ ...x, userFilterPreference: {} })), Y(!1);
701
702
  } catch (t) {
702
703
  Y(!1), console.error("Error loading initial data:", t);
703
704
  }
704
705
  })();
705
- }, []), q(() => {
706
+ }, []), G(() => {
706
707
  var o;
707
708
  const e = ((o = ge == null ? void 0 : ge.pages) == null ? void 0 : o.flat()) || [];
708
- I(Ut), fe(e);
709
+ I(kt), fe(e);
709
710
  }, [ge]);
710
- const je = async () => {
711
+ const Ve = async () => {
711
712
  try {
712
713
  let o = 0, t = [], r = !0;
713
714
  for (; r; ) {
714
- const i = await Xe({
715
+ const i = await We({
715
716
  limit: 5e4,
716
717
  offset: o,
717
718
  locationId: (s == null ? void 0 : s.locationId) || he,
718
719
  order: g.sortOrder,
719
720
  orderby: g.sortColumn,
720
721
  roleIds: v == null ? void 0 : v.join(","),
721
- status: s != null && s.status ? s == null ? void 0 : s.status : G || "BOTH",
722
+ status: s != null && s.status ? s == null ? void 0 : s.status : q || "BOTH",
722
723
  ...s != null && s.roleid ? { roleid: s == null ? void 0 : s.roleid } : (b == null ? void 0 : b.id) && { roleid: b.id },
723
724
  ...O && { searchString: O }
724
725
  }), c = (i == null ? void 0 : i.data) || [];
@@ -728,31 +729,31 @@ function za() {
728
729
  } catch (e) {
729
730
  return console.error(e), T({ message: "Error in retriving all Users", type: "error" }), [];
730
731
  }
731
- }, St = async (e) => {
732
+ }, Ut = async (e) => {
732
733
  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 = W.utils.json_to_sheet(e), c = {
734
+ const o = /* @__PURE__ */ new Date(), t = o.getMonth() + 1, r = `UserList-${o.getDate()}/${t}/${o.getFullYear().toString().substr(-2)}-${o.getHours()}:${o.getMinutes()}`, i = P.utils.json_to_sheet(e), c = {
734
735
  font: { bold: !0 },
735
736
  alignment: { horizontal: "center" }
736
737
  };
737
738
  if (e.length > 0) {
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);
739
+ const se = P.utils.decode_range(i["!ref"]);
740
+ for (let Te = se.s.c; Te <= se.e.c; ++Te) {
741
+ const Pe = i[P.utils.encode_cell({ r: 0, c: Te })];
742
+ Pe && (Pe.s = c);
742
743
  }
743
744
  }
744
- const l = W.utils.book_new();
745
- W.utils.book_append_sheet(l, i, "Sheet1");
746
- const N = W.write(l, {
745
+ const l = P.utils.book_new();
746
+ P.utils.book_append_sheet(l, i, "Sheet1");
747
+ const N = P.write(l, {
747
748
  bookType: "xlsx",
748
749
  type: "array"
749
750
  }), h = new Blob([N], {
750
751
  type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
751
- }), Pe = (h.size / (1024 * 1024)).toFixed(2);
752
+ }), Ke = (h.size / (1024 * 1024)).toFixed(2);
752
753
  ma.saveAs(h, `${r}.xlsx`), M("file_download", {
753
754
  file_type: "excel",
754
755
  file_name: `${r}.xlsx`,
755
- file_size: `${Pe} MB`,
756
+ file_size: `${Ke} MB`,
756
757
  filter_parameters: {
757
758
  taskTypeId: $.id
758
759
  },
@@ -761,10 +762,10 @@ function za() {
761
762
  } catch (o) {
762
763
  console.error("Error generating Excel file:", o), T({ message: "Error generating Excel file", type: "error" });
763
764
  }
764
- }, [De, Ie] = d(!1), At = async () => {
765
+ }, [je, ve] = d(!1), St = async () => {
765
766
  try {
766
- Ie(!0);
767
- const e = await je();
767
+ ve(!0);
768
+ const e = await Ve();
768
769
  let o = [];
769
770
  e && e.length > 0 && (o = e.map((t, r) => {
770
771
  var N;
@@ -787,20 +788,20 @@ function za() {
787
788
  return Object.keys(l).forEach((h) => {
788
789
  h === "id" ? delete l[h] : l[h] === null ? l[h] = "" : typeof l[h] == "boolean" && (l[h] = l[h] ? "Yes" : "No");
789
790
  }), l;
790
- })), St(o), Ie(!1);
791
+ })), Ut(o), ve(!1);
791
792
  } catch (e) {
792
- Ie(!1), console.log(e), T({
793
+ ve(!1), console.log(e), T({
793
794
  message: "Error in downloading excel",
794
795
  type: "error"
795
796
  });
796
797
  }
797
- }, Et = fa(), [ze, Te] = d(!1), Ot = async () => {
798
+ }, At = fa(), [De, Ie] = d(!1), Et = async () => {
798
799
  try {
799
- Te(!0);
800
- const e = await je();
800
+ Ie(!0);
801
+ const e = await Ve();
801
802
  if (!e || e.length === 0) return;
802
803
  let o = [], t = [];
803
- o.push("NAME"), t.push("name"), ve.filter(
804
+ o.push("NAME"), t.push("name"), Ce.filter(
804
805
  (l) => l.field !== "Actions" && l.field !== "index" && l.field !== "Sr. No."
805
806
  ).forEach((l) => {
806
807
  o.push(l.label), t.push(l.field);
@@ -819,7 +820,7 @@ function za() {
819
820
  };
820
821
  });
821
822
  const i = /* @__PURE__ */ new Date(), c = i.getMonth() + 1;
822
- Et({
823
+ At({
823
824
  columns: o,
824
825
  keys: t,
825
826
  data: r,
@@ -827,51 +828,51 @@ function za() {
827
828
  headerText: "User List",
828
829
  footerText: "User List",
829
830
  orientation: o.length > 7 ? "landscape" : "portrait"
830
- }), Te(!1);
831
+ }), Ie(!1);
831
832
  } catch (e) {
832
- Te(!1), console.error(e);
833
+ Ie(!1), console.error(e);
833
834
  }
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();
835
+ }, Ot = () => {
836
+ Ee(null), Oe(null), Q("BOTH"), K({}), Me(!1), $e([]), w([]), _e(Se({ ...x, userFilterPreference: {} })), we(null), Le({}), Re((e) => e + 1), Be.current = null, Fe();
836
837
  };
837
838
  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,
839
+ Gt,
839
840
  {
840
841
  className: "h-80 w-150 flex justify-center items-center",
841
842
  "data-testid": "userlist-no-permission",
842
- children: /* @__PURE__ */ a(tt, { variant: "h5", className: "text-customBlue", children: "You dont have permission to view Users" })
843
+ children: /* @__PURE__ */ a(et, { variant: "h5", className: "text-customBlue", children: "You dont have permission to view Users" })
843
844
  }
844
845
  ) }) : /* @__PURE__ */ p(_, { className: "w-[98%] mt-4 ", children: [
845
846
  /* @__PURE__ */ a(
846
- Ze,
847
+ Xe,
847
848
  {
848
849
  open: ce === 1,
849
850
  handleClose: () => B(0),
850
- handleClick: xt,
851
+ handleClick: bt,
851
852
  title: "CONFIRM ACTION",
852
853
  description: "Are you sure you want toggle the state of this user type?",
853
854
  dataTestId: "userlist-modal-status-confirmation"
854
855
  }
855
856
  ),
856
857
  /* @__PURE__ */ a(
857
- Ze,
858
+ Xe,
858
859
  {
859
860
  open: ce === 2,
860
861
  handleClose: () => B(0),
861
- handleClick: Nt,
862
+ handleClick: xt,
862
863
  title: "CONFIRM ACTION",
863
864
  description: "Are you sure you want to Generate SOH code ?",
864
865
  dataTestId: "userlist-modal-generate-soh-confirmation"
865
866
  }
866
867
  ),
867
- /* @__PURE__ */ a(Lt, { isLoading: ue, children: /* @__PURE__ */ p(
868
+ /* @__PURE__ */ a(Bt, { isLoading: ue, children: /* @__PURE__ */ p(
868
869
  _,
869
870
  {
870
871
  container: !0,
871
872
  className: "flex flex-col md:flex-row mb-2 justify-between items-start md:items-center space-y-2 md:space-y-0",
872
873
  children: [
873
874
  /* @__PURE__ */ a(_, { children: /* @__PURE__ */ a(
874
- tt,
875
+ et,
875
876
  {
876
877
  variant: "body2",
877
878
  className: "font-bold font-sans text-lg text-[var(--color-customBlue)] uppercase text-customBlue",
@@ -881,7 +882,7 @@ function za() {
881
882
  ) }),
882
883
  /* @__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
884
  /* @__PURE__ */ a(_, { className: "w-full md:w-auto", children: /* @__PURE__ */ a(
884
- Qt,
885
+ Jt,
885
886
  {
886
887
  name: "searchQuery",
887
888
  id: "searchQuery",
@@ -910,15 +911,15 @@ function za() {
910
911
  /* @__PURE__ */ a(
911
912
  "button",
912
913
  {
913
- disabled: ze,
914
- onClick: Ot,
914
+ disabled: De,
915
+ onClick: Et,
915
916
  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" }),
917
+ children: De ? /* @__PURE__ */ p(ye, { children: [
918
+ /* @__PURE__ */ a(tt, { size: 14, sx: { color: "inherit" } }),
919
+ /* @__PURE__ */ a(V, { icon: ot, className: "mr-1" }),
919
920
  "Pdf"
920
921
  ] }) : /* @__PURE__ */ p(ye, { children: [
921
- /* @__PURE__ */ a(V, { icon: lt, className: "mr-1" }),
922
+ /* @__PURE__ */ a(V, { icon: ot, className: "mr-1" }),
922
923
  "Pdf"
923
924
  ] })
924
925
  }
@@ -926,15 +927,15 @@ function za() {
926
927
  /* @__PURE__ */ a(
927
928
  "button",
928
929
  {
929
- disabled: De,
930
- onClick: () => At(),
930
+ disabled: je,
931
+ onClick: () => St(),
931
932
  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" }),
933
+ children: je ? /* @__PURE__ */ p(ye, { children: [
934
+ /* @__PURE__ */ a(tt, { size: 14, sx: { color: "inherit" } }),
935
+ /* @__PURE__ */ a(V, { icon: lt, className: "mr-1" }),
935
936
  "Excel Data"
936
937
  ] }) : /* @__PURE__ */ p(ye, { children: [
937
- /* @__PURE__ */ a(V, { icon: nt, className: "mr-1" }),
938
+ /* @__PURE__ */ a(V, { icon: lt, className: "mr-1" }),
938
939
  "Excel Data"
939
940
  ] })
940
941
  }
@@ -943,7 +944,7 @@ function za() {
943
944
  }
944
945
  ),
945
946
  (y == null ? void 0 : y["create.manage.users"]) && /* @__PURE__ */ a(
946
- Se,
947
+ Ue,
947
948
  {
948
949
  variant: "contained",
949
950
  className: "w-auto ml-auto",
@@ -952,7 +953,7 @@ function za() {
952
953
  button_name: "add_user",
953
954
  button_type: "navigate",
954
955
  button_id: "userlist-button-add"
955
- }), J("/ui/medplat/manage/user");
956
+ }), W("/ui/medplat/manage/user");
956
957
  },
957
958
  size: "small",
958
959
  "data-testid": "userlist-button-add",
@@ -964,7 +965,7 @@ function za() {
964
965
  ]
965
966
  }
966
967
  ) }),
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: [
968
+ /* @__PURE__ */ a(Lt, { isLoading: Ne, 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: [
968
969
  /* @__PURE__ */ a(
969
970
  be,
970
971
  {
@@ -972,12 +973,12 @@ function za() {
972
973
  value: (m == null ? void 0 : m.total_users) || 0,
973
974
  icon: na,
974
975
  bottomIndicator: Z,
975
- selected: G === "BOTH" && v.length === 0,
976
+ selected: q === "BOTH" && v.length === 0,
976
977
  selectedBgColor: Z,
977
978
  selectedTitleColor: C,
978
979
  selectedValueColor: C,
979
980
  onClick: () => {
980
- (m == null ? void 0 : m.total_users) > 0 ? (w([]), K("BOTH"), P((e) => ({
981
+ (m == null ? void 0 : m.total_users) > 0 ? (w([]), Q("BOTH"), K((e) => ({
981
982
  ...e,
982
983
  status: "BOTH"
983
984
  }))) : T({ message: "No users found", type: "warning" });
@@ -991,12 +992,12 @@ function za() {
991
992
  value: (m == null ? void 0 : m.active_count) || 0,
992
993
  icon: sa,
993
994
  bottomIndicator: j,
994
- selected: G === "ACTIVE" && v.length === 0,
995
+ selected: q === "ACTIVE" && v.length === 0,
995
996
  selectedBgColor: j,
996
997
  selectedTitleColor: C,
997
998
  selectedValueColor: C,
998
999
  onClick: () => {
999
- (m == null ? void 0 : m.active_count) > 0 ? (w([]), K("ACTIVE"), P((e) => ({
1000
+ (m == null ? void 0 : m.active_count) > 0 ? (w([]), Q("ACTIVE"), K((e) => ({
1000
1001
  ...e,
1001
1002
  status: "ACTIVE"
1002
1003
  }))) : T({
@@ -1013,12 +1014,12 @@ function za() {
1013
1014
  value: (m == null ? void 0 : m.inactive_count) || 0,
1014
1015
  icon: ra,
1015
1016
  bottomIndicator: ee,
1016
- selected: G === "INACTIVE" && v.length === 0,
1017
+ selected: q === "INACTIVE" && v.length === 0,
1017
1018
  selectedBgColor: ee,
1018
1019
  selectedTitleColor: C,
1019
1020
  selectedValueColor: C,
1020
1021
  onClick: () => {
1021
- (m == null ? void 0 : m.inactive_count) > 0 ? (w([]), K("INACTIVE"), P((e) => ({
1022
+ (m == null ? void 0 : m.inactive_count) > 0 ? (w([]), Q("INACTIVE"), K((e) => ({
1022
1023
  ...e,
1023
1024
  status: "INACTIVE"
1024
1025
  }))) : T({
@@ -1040,7 +1041,7 @@ function za() {
1040
1041
  selectedTitleColor: C,
1041
1042
  selectedValueColor: C,
1042
1043
  onClick: () => {
1043
- (m == null ? void 0 : m.admin_role_count) > 0 ? (K("BOTH"), P((e) => ({
1044
+ (m == null ? void 0 : m.admin_role_count) > 0 ? (Q("BOTH"), K((e) => ({
1044
1045
  ...e,
1045
1046
  status: "BOTH"
1046
1047
  })), w(X)) : T({
@@ -1052,62 +1053,62 @@ function za() {
1052
1053
  )
1053
1054
  ] }) }),
1054
1055
  /* @__PURE__ */ a(
1055
- Vt,
1056
+ Ft,
1056
1057
  {
1057
- columns: bt,
1058
- tableData: yt,
1059
- actions: vt,
1058
+ columns: yt,
1059
+ tableData: gt,
1060
+ actions: Ct,
1060
1061
  paginationConfig: {
1061
1062
  pagination: !0,
1062
1063
  paginationType: "infinite-scroll",
1063
- rowsPerPageInTable: Ee,
1064
+ rowsPerPageInTable: Ae,
1064
1065
  hasMore: pe,
1065
- loadMore: () => pe && kt({ cancelRefetch: !1 })
1066
+ loadMore: () => pe && Tt({ cancelRefetch: !1 })
1066
1067
  },
1067
1068
  styleConfig: { cellStyle: { maxLines: 2 } },
1068
1069
  isLoading: $ ? ue : !0,
1069
- handleSort: It,
1070
+ handleSort: vt,
1070
1071
  dataTestId: "userlist-table-customized"
1071
1072
  }
1072
1073
  ),
1073
1074
  /* @__PURE__ */ a(
1074
- jt,
1075
+ Vt,
1075
1076
  {
1076
1077
  title: "User Filter",
1077
1078
  resetButtonLabel: "Reset",
1078
- onResetClick: _t,
1079
- FormBody: mt,
1080
- handleOverlayState: Ve,
1079
+ onResetClick: Ot,
1080
+ FormBody: dt,
1081
+ handleOverlayState: Fe,
1081
1082
  overlayOpen: H,
1082
1083
  dataTestId: "userlist-overlay-filter",
1083
1084
  formProps: {
1084
1085
  setAdminRoleIdsStats: w,
1085
1086
  setIsLoading: Y,
1086
1087
  isLoading: ue,
1087
- setLocationId: Oe,
1088
- setRoleDetails: _e,
1088
+ setLocationId: Ee,
1089
+ setRoleDetails: Oe,
1089
1090
  roleDetails: b,
1090
- status: G,
1091
- setStatus: K,
1092
- setSelectedLocation: Me,
1093
- selectedLocation: pt,
1094
- filterRequired: ut,
1095
- setFilterRequired: Re,
1096
- setUserFilterPreference: P,
1091
+ status: q,
1092
+ setStatus: Q,
1093
+ setSelectedLocation: Le,
1094
+ selectedLocation: ft,
1095
+ filterRequired: pt,
1096
+ setFilterRequired: Me,
1097
+ setUserFilterPreference: K,
1097
1098
  user: x,
1098
1099
  userFilterPreference: s,
1099
- locationIdRef: Le,
1100
- setSelectedLocationId: Be,
1101
- resetLocationDirective: ht,
1102
- setResetLocationDirective: $e,
1103
- locations: gt,
1104
- setLocations: He
1100
+ locationIdRef: Be,
1101
+ setSelectedLocationId: we,
1102
+ resetLocationDirective: ut,
1103
+ setResetLocationDirective: Re,
1104
+ locations: ht,
1105
+ setLocations: $e
1105
1106
  }
1106
1107
  }
1107
1108
  )
1108
1109
  ] });
1109
1110
  }
1110
1111
  export {
1111
- za as default
1112
+ Ya as default
1112
1113
  };
1113
- //# sourceMappingURL=UserList-D7GL7jvO.js.map
1114
+ //# sourceMappingURL=UserList-BzHsbYel.js.map