@argusoft/medplat-form-engine 1.0.15 → 1.0.17

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 (132) hide show
  1. package/dist/AccessRights-BMRM1u9S-D1Gc0rKI.js +1228 -0
  2. package/dist/AccessRights-BMRM1u9S-D1Gc0rKI.js.map +1 -0
  3. package/dist/AddEditQueryBuilder-7JRplV5J-DHgS6TYG.js +313 -0
  4. package/dist/AddEditQueryBuilder-7JRplV5J-DHgS6TYG.js.map +1 -0
  5. package/dist/AddEditQueryBuilder-7JRplV5J.css +1 -0
  6. package/dist/AddFeatures-CkTu7sOI-BGplSFp6.js +212 -0
  7. package/dist/AddFeatures-CkTu7sOI-BGplSFp6.js.map +1 -0
  8. package/dist/AddLabelModal-DE3ploGD-OOyaGC02.js +734 -0
  9. package/dist/AddLabelModal-DE3ploGD-OOyaGC02.js.map +1 -0
  10. package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js +5389 -0
  11. package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js.map +1 -0
  12. package/dist/AddMenuConfiguration-QWfpcnuP.css +1 -0
  13. package/dist/AddRoleDrawer-ZK1eejxI-BM6rfhh5.js +453 -0
  14. package/dist/AddRoleDrawer-ZK1eejxI-BM6rfhh5.js.map +1 -0
  15. package/dist/AppModal-BgZyfrd--BO3wW4ma.js +428 -0
  16. package/dist/AppModal-BgZyfrd--BO3wW4ma.js.map +1 -0
  17. package/dist/ChangePasswordModalCore-DIe4rzW--Dz71RCI6.js +176 -0
  18. package/dist/ChangePasswordModalCore-DIe4rzW--Dz71RCI6.js.map +1 -0
  19. package/dist/ConditionConfig-GDCXIg3C-DuEy85LD.js +395 -0
  20. package/dist/ConditionConfig-GDCXIg3C-DuEy85LD.js.map +1 -0
  21. package/dist/ConditionConfig-GDCXIg3C.css +1 -0
  22. package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js +50 -0
  23. package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js.map +1 -0
  24. package/dist/EventConfigurations-jGCJ4LqP-CJBCGp6J.js +384 -0
  25. package/dist/EventConfigurations-jGCJ4LqP-CJBCGp6J.js.map +1 -0
  26. package/dist/EventConfigurations-jGCJ4LqP.css +1 -0
  27. package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js +200 -0
  28. package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js.map +1 -0
  29. package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js +74 -0
  30. package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js.map +1 -0
  31. package/dist/FeatureMenu-Ds6lFg4w-ShGx4okQ.js +249 -0
  32. package/dist/FeatureMenu-Ds6lFg4w-ShGx4okQ.js.map +1 -0
  33. package/dist/Features-Cshdl06N-CZ02Tt89.js +12 -0
  34. package/dist/Features-Cshdl06N-CZ02Tt89.js.map +1 -0
  35. package/dist/FileSaver.min-CN9EpL2h-N-3OFAd7.js +77 -0
  36. package/dist/FileSaver.min-CN9EpL2h-N-3OFAd7.js.map +1 -0
  37. package/dist/FlywayQuery-Cx2sly6g-DdhUw6bN.js +169 -0
  38. package/dist/FlywayQuery-Cx2sly6g-DdhUw6bN.js.map +1 -0
  39. package/dist/ImmunizationConfigurationBase-DZ8EqXlF-B4x4_1v0.js +5162 -0
  40. package/dist/ImmunizationConfigurationBase-DZ8EqXlF-B4x4_1v0.js.map +1 -0
  41. package/dist/ImmunizationConfigurationBase-DZ8EqXlF.css +1 -0
  42. package/dist/ImmunizationConfigurationsList-CQnxWa09-Bbr0iyGy.js +335 -0
  43. package/dist/ImmunizationConfigurationsList-CQnxWa09-Bbr0iyGy.js.map +1 -0
  44. package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js +186 -0
  45. package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js.map +1 -0
  46. package/dist/LanguagesModal-rk6IGQwY-B0Jtpivu.js +394 -0
  47. package/dist/LanguagesModal-rk6IGQwY-B0Jtpivu.js.map +1 -0
  48. package/dist/ManageDynamicFeature-C2I7Ho7i-Bbxkpw0S.js +4189 -0
  49. package/dist/ManageDynamicFeature-C2I7Ho7i-Bbxkpw0S.js.map +1 -0
  50. package/dist/ManageEventConfiguration-BJxS2Su0-CRATBMym.js +1017 -0
  51. package/dist/ManageEventConfiguration-BJxS2Su0-CRATBMym.js.map +1 -0
  52. package/dist/ManageEventConfiguration-BJxS2Su0.css +1 -0
  53. package/dist/ManageNotification-DMN2szWy-DQvdrfwC.js +6819 -0
  54. package/dist/ManageNotification-DMN2szWy-DQvdrfwC.js.map +1 -0
  55. package/dist/ManageRole-CuXmWQyp-Cy15Mlax.js +728 -0
  56. package/dist/ManageRole-CuXmWQyp-Cy15Mlax.js.map +1 -0
  57. package/dist/ManageTranslation-BTxvSYKb-CdO4Fk7f.js +616 -0
  58. package/dist/ManageTranslation-BTxvSYKb-CdO4Fk7f.js.map +1 -0
  59. package/dist/ManageTranslation-BTxvSYKb.css +1 -0
  60. package/dist/ManageUser-Dr3ptCYp-CzLX1rCi.js +2179 -0
  61. package/dist/ManageUser-Dr3ptCYp-CzLX1rCi.js.map +1 -0
  62. package/dist/ManageUser-Dr3ptCYp.css +1 -0
  63. package/dist/MedplatFormWrapper-CfKQpZOJ.js +52228 -0
  64. package/dist/MedplatFormWrapper-CfKQpZOJ.js.map +1 -0
  65. package/dist/MedplatFormWrapper.css +1 -0
  66. package/dist/MobileMenuManagement-BmrO-7MN-xFkU87j6.js +111 -0
  67. package/dist/MobileMenuManagement-BmrO-7MN-xFkU87j6.js.map +1 -0
  68. package/dist/MobileTypeEventConfigModal-ChhO_A4f-DfJDqFB9.js +783 -0
  69. package/dist/MobileTypeEventConfigModal-ChhO_A4f-DfJDqFB9.js.map +1 -0
  70. package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js +1002 -0
  71. package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js.map +1 -0
  72. package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js +244 -0
  73. package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js.map +1 -0
  74. package/dist/NotificationList-BqibwMaM-D4mMbj4h.js +400 -0
  75. package/dist/NotificationList-BqibwMaM-D4mMbj4h.js.map +1 -0
  76. package/dist/OtherTypeEventConfigModal-ZnCGWm9v-D7x0QObl.js +1953 -0
  77. package/dist/OtherTypeEventConfigModal-ZnCGWm9v-D7x0QObl.js.map +1 -0
  78. package/dist/QueryBuilder-BPfavHH9-M3wgeHB3.js +378 -0
  79. package/dist/QueryBuilder-BPfavHH9-M3wgeHB3.js.map +1 -0
  80. package/dist/QueryBuilder-BPfavHH9.css +1 -0
  81. package/dist/QueryManagement-DXA73N2j-C2RCVmd2.js +671 -0
  82. package/dist/QueryManagement-DXA73N2j-C2RCVmd2.js.map +1 -0
  83. package/dist/QueryManagement-DXA73N2j.css +1 -0
  84. package/dist/RoleManagement-C0feJCuq-DIGwGqOD.js +410 -0
  85. package/dist/RoleManagement-C0feJCuq-DIGwGqOD.js.map +1 -0
  86. package/dist/SecurityAuditLogList-DHTcOtbx-VvwDlRuu.js +746 -0
  87. package/dist/SecurityAuditLogList-DHTcOtbx-VvwDlRuu.js.map +1 -0
  88. package/dist/ServerSyncModal-D_oFpv3C-C6c3_3lx.js +836 -0
  89. package/dist/ServerSyncModal-D_oFpv3C-C6c3_3lx.js.map +1 -0
  90. package/dist/ShowFlywayQuery-BkyA6QaA-2t9pZjcx.js +130 -0
  91. package/dist/ShowFlywayQuery-BkyA6QaA-2t9pZjcx.js.map +1 -0
  92. package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js +259 -0
  93. package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js.map +1 -0
  94. package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js +190 -0
  95. package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js.map +1 -0
  96. package/dist/SubMenu-DAfZC9Xi-B0BQYLdI.js +188 -0
  97. package/dist/SubMenu-DAfZC9Xi-B0BQYLdI.js.map +1 -0
  98. package/dist/TableDetails-DzREeJkm-B-WEBbQz.js +1508 -0
  99. package/dist/TableDetails-DzREeJkm-B-WEBbQz.js.map +1 -0
  100. package/dist/TableList-B9hr05Hs-BIsMbnIV.js +428 -0
  101. package/dist/TableList-B9hr05Hs-BIsMbnIV.js.map +1 -0
  102. package/dist/TypeConfiguration-C-lk8Szs-DkvHWHhr.js +117 -0
  103. package/dist/TypeConfiguration-C-lk8Szs-DkvHWHhr.js.map +1 -0
  104. package/dist/UserList-S5Q76wO7-Cj5u_K4_.js +1104 -0
  105. package/dist/UserList-S5Q76wO7-Cj5u_K4_.js.map +1 -0
  106. package/dist/UserList-S5Q76wO7.css +1 -0
  107. package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js +184 -0
  108. package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js.map +1 -0
  109. package/dist/WidgetList-BSApErov-Z61Kpq4T.js +188 -0
  110. package/dist/WidgetList-BSApErov-Z61Kpq4T.js.map +1 -0
  111. package/dist/_commonjsHelpers-B4e78b8K-B9tZyK9c.js +29 -0
  112. package/dist/_commonjsHelpers-B4e78b8K-B9tZyK9c.js.map +1 -0
  113. package/dist/default-DlLB_mdl.js +11341 -0
  114. package/dist/default-DlLB_mdl.js.map +1 -0
  115. package/dist/default.css +1 -0
  116. package/dist/i18next-CTOWN_jH-BKKbdDel.js +1389 -0
  117. package/dist/i18next-CTOWN_jH-BKKbdDel.js.map +1 -0
  118. package/dist/index-B4r0wjBD.js +563 -0
  119. package/dist/index-B4r0wjBD.js.map +1 -0
  120. package/dist/index-BFznsakV-CzCTrTvj.js +42638 -0
  121. package/dist/index-BFznsakV-CzCTrTvj.js.map +1 -0
  122. package/dist/index-Dta_LKti.js +744 -0
  123. package/dist/index-Dta_LKti.js.map +1 -0
  124. package/dist/index.css +1 -1
  125. package/dist/index.js +6 -52390
  126. package/dist/index.js.map +1 -1
  127. package/dist/manageImmunization-B4swS745-JldexHrO.js +1204 -0
  128. package/dist/manageImmunization-B4swS745-JldexHrO.js.map +1 -0
  129. package/dist/manageImmunization-B4swS745.css +1 -0
  130. package/dist/xlsx.min-D1LFqt_b-BGwkpd8r.js +11869 -0
  131. package/dist/xlsx.min-D1LFqt_b-BGwkpd8r.js.map +1 -0
  132. package/package.json +1 -4
@@ -0,0 +1,746 @@
1
+ import { jsx as t, jsxs as x } from "react/jsx-runtime";
2
+ import { useTranslateProvider as ce } from "@/common/languageTranslator/TranslationContext";
3
+ import { showToast as k } from "@/common/toaster/toaster.jsx";
4
+ import Se from "@/hooks/usePagination.js";
5
+ import De from "@/views/custom-components/CustomizedTable/CustomizedTableV2";
6
+ import Ce from "@/views/custom-components/SideOverlay.jsx";
7
+ import { useState as g, useEffect as ee, useMemo as we, useCallback as Ie } from "react";
8
+ import { Tooltip as Ee, Box as _, Typography as E, IconButton as ke, CircularProgress as ue, Dialog as Re, DialogTitle as $e, DialogContent as Oe, Button as te, useTheme as Me, alpha as S, TextField as L } from "@mui/material";
9
+ import { FontAwesomeIcon as w } from "@fortawesome/react-fontawesome";
10
+ import { faEye as Pe, faChartLine as Ye, faSync as ze, faFilePdf as pe, faFileExcel as Ue, faCalendar as Le, faSearch as We } from "@fortawesome/free-solid-svg-icons";
11
+ import { d as Be } from "./default-DlLB_mdl.js";
12
+ import { useTheme as Fe, alpha as X } from "@mui/material/styles";
13
+ import { execute as je } from "@/common/services/GlobalApis";
14
+ import d from "@mui/material/Grid2";
15
+ import { A as Ge } from "./FileSaver.min-CN9EpL2h-N-3OFAd7.js";
16
+ import Ve from "@/hooks/useTrackEvent";
17
+ import { E as j } from "./xlsx.min-D1LFqt_b-BGwkpd8r.js";
18
+ import Je from "@/hooks/useDownloadPdf.js";
19
+ import { C } from "./index-Dta_LKti.js";
20
+ import Z from "moment";
21
+ function qe({
22
+ filter: A,
23
+ setFilter: l,
24
+ handleOverlayState: R
25
+ }) {
26
+ const { translate: N } = ce(), o = Me(), W = o.palette.mode === "dark", [y, $] = g(A), [B, I] = g(!1), [G, O] = g([
27
+ {
28
+ startDate: A.startTime ? new Date(A.startTime) : /* @__PURE__ */ new Date(),
29
+ endDate: A.endTime ? new Date(A.endTime) : /* @__PURE__ */ new Date(),
30
+ key: "selection"
31
+ }
32
+ ]);
33
+ ee(() => {
34
+ $(A), O([
35
+ {
36
+ startDate: A.startTime ? new Date(A.startTime) : /* @__PURE__ */ new Date(),
37
+ endDate: A.endTime ? new Date(A.endTime) : /* @__PURE__ */ new Date(),
38
+ key: "selection"
39
+ }
40
+ ]);
41
+ }, [A]);
42
+ const V = (n) => {
43
+ const { selection: b } = n;
44
+ O([b]);
45
+ const P = b.startDate ? M(b.startDate) : null, Y = b.endDate ? M(b.endDate) : null;
46
+ $((z) => ({
47
+ ...z,
48
+ startTime: P,
49
+ endTime: Y
50
+ }));
51
+ }, M = (n) => {
52
+ if (!n) return null;
53
+ const b = new Date(n);
54
+ return `${b.getFullYear()}-${String(b.getMonth() + 1).padStart(2, "0")}-${String(b.getDate()).padStart(2, "0")}`;
55
+ }, F = () => {
56
+ if (!y.startTime && !y.endTime) return "Select date range";
57
+ const n = y.startTime ? new Date(y.startTime).toLocaleDateString() : "", b = y.endTime ? new Date(y.endTime).toLocaleDateString() : "";
58
+ return `${n} - ${b}`;
59
+ }, u = (n, b) => {
60
+ $((P) => ({ ...P, [n]: b }));
61
+ }, J = () => {
62
+ l(y), R();
63
+ }, h = {
64
+ "& .MuiInputLabel-root": {
65
+ color: o.palette.text.secondary,
66
+ fontSize: "0.85rem",
67
+ fontWeight: 500,
68
+ transform: "translate(0, -1.5px) scale(1)",
69
+ "&.Mui-focused": { color: o.palette.primary.main }
70
+ },
71
+ "& .MuiInputBase-root": {
72
+ backgroundColor: S(o.palette.text.primary, 0.05),
73
+ borderRadius: "12px",
74
+ color: o.palette.text.primary,
75
+ marginTop: "20px",
76
+ "& fieldset": {
77
+ borderColor: S(o.palette.text.primary, 0.1),
78
+ borderRadius: "12px"
79
+ },
80
+ "&:hover fieldset": { borderColor: S(o.palette.text.primary, 0.3) },
81
+ "&.Mui-focused fieldset": { borderColor: o.palette.primary.main, borderWidth: "2px" }
82
+ },
83
+ "& .MuiInputBase-input": {
84
+ padding: "10px 14px",
85
+ colorScheme: W ? "dark" : "light"
86
+ }
87
+ };
88
+ return /* @__PURE__ */ x(_, { className: "flex flex-col gap-6 p-6", children: [
89
+ /* @__PURE__ */ x(_, { className: "flex flex-col gap-1.5 pt-1", children: [
90
+ /* @__PURE__ */ t(E, { variant: "caption", sx: { color: o.palette.text.secondary, fontWeight: 500, fontSize: "0.85rem", transform: "translate(0, -1.5px)" }, children: N("Date Range") }),
91
+ /* @__PURE__ */ x(
92
+ _,
93
+ {
94
+ onClick: () => I(!B),
95
+ className: "flex items-center justify-between gap-2 px-3 py-2.5 rounded-xl cursor-pointer transition-all",
96
+ sx: {
97
+ backgroundColor: S(o.palette.text.primary, 0.05),
98
+ border: `1px solid ${S(o.palette.text.primary, 0.1)}`,
99
+ "&:hover": { borderColor: S(o.palette.text.primary, 0.3) }
100
+ },
101
+ children: [
102
+ /* @__PURE__ */ t(E, { variant: "body2", sx: { color: o.palette.text.primary, fontSize: "0.875rem" }, children: F() }),
103
+ /* @__PURE__ */ t(w, { icon: Le, className: "opacity-50 text-sm" })
104
+ ]
105
+ }
106
+ ),
107
+ B && /* @__PURE__ */ t(
108
+ _,
109
+ {
110
+ className: "mt-2 p-2 rounded-xl flex justify-center overflow-hidden border",
111
+ sx: {
112
+ backgroundColor: o.palette.background.paper,
113
+ borderColor: S(o.palette.text.primary, 0.1),
114
+ "& .rdrCalendarWrapper": {
115
+ backgroundColor: o.palette.background.paper,
116
+ color: o.palette.text.primary
117
+ },
118
+ "& .rdrDateDisplayWrapper": {
119
+ backgroundColor: S(o.palette.text.primary, 0.05)
120
+ },
121
+ "& .rdrMonthAndYearWrapper": {
122
+ color: o.palette.text.primary
123
+ },
124
+ "& .rdrMonthName": {
125
+ color: o.palette.text.primary
126
+ },
127
+ "& .rdrDayNumber span": {
128
+ color: o.palette.text.primary
129
+ },
130
+ "& .rdrDayDisabled": {
131
+ backgroundColor: "transparent",
132
+ "& .rdrDayNumber span": {
133
+ color: S(o.palette.text.primary, 0.25)
134
+ }
135
+ },
136
+ "& .rdrDayPassive": {
137
+ "& .rdrDayNumber span": {
138
+ color: S(o.palette.text.primary, 0.3)
139
+ }
140
+ }
141
+ },
142
+ children: /* @__PURE__ */ t(
143
+ Be.DateRange,
144
+ {
145
+ editableDateInputs: !1,
146
+ onChange: V,
147
+ moveRangeOnFirstSelection: !1,
148
+ ranges: G,
149
+ rangeColors: [o.palette.primary.main]
150
+ }
151
+ )
152
+ }
153
+ )
154
+ ] }),
155
+ /* @__PURE__ */ x(_, { className: "flex flex-col gap-4 pt-2", children: [
156
+ /* @__PURE__ */ t(
157
+ L,
158
+ {
159
+ label: N("User ID"),
160
+ placeholder: N("e.g. 101"),
161
+ value: y.userId || "",
162
+ onChange: (n) => u("userId", n.target.value),
163
+ fullWidth: !0,
164
+ size: "small",
165
+ slotProps: { inputLabel: { shrink: !0 } },
166
+ sx: h
167
+ }
168
+ ),
169
+ /* @__PURE__ */ t(
170
+ L,
171
+ {
172
+ label: N("IP Address"),
173
+ placeholder: "192.168.1.1",
174
+ value: y.ip || "",
175
+ onChange: (n) => u("ip", n.target.value),
176
+ fullWidth: !0,
177
+ size: "small",
178
+ slotProps: { inputLabel: { shrink: !0 } },
179
+ sx: h
180
+ }
181
+ ),
182
+ /* @__PURE__ */ t(
183
+ L,
184
+ {
185
+ label: N("Session ID"),
186
+ placeholder: N("e.g. E561890..."),
187
+ value: y.sessionId || "",
188
+ onChange: (n) => u("sessionId", n.target.value),
189
+ fullWidth: !0,
190
+ size: "small",
191
+ slotProps: { inputLabel: { shrink: !0 } },
192
+ sx: h
193
+ }
194
+ ),
195
+ /* @__PURE__ */ t(
196
+ L,
197
+ {
198
+ label: N("Event Type"),
199
+ placeholder: "LOGIN_SUCCESS",
200
+ value: y.eventType || "",
201
+ onChange: (n) => u("eventType", n.target.value),
202
+ fullWidth: !0,
203
+ size: "small",
204
+ slotProps: { inputLabel: { shrink: !0 } },
205
+ sx: h
206
+ }
207
+ ),
208
+ /* @__PURE__ */ t(
209
+ L,
210
+ {
211
+ label: N("Resource Path"),
212
+ placeholder: "/api/v1/...",
213
+ value: y.resource || "",
214
+ onChange: (n) => u("resource", n.target.value),
215
+ fullWidth: !0,
216
+ size: "small",
217
+ slotProps: { inputLabel: { shrink: !0 } },
218
+ sx: h
219
+ }
220
+ )
221
+ ] }),
222
+ /* @__PURE__ */ t(_, { className: "flex justify-stretch mt-4", children: /* @__PURE__ */ t(
223
+ te,
224
+ {
225
+ variant: "contained",
226
+ onClick: J,
227
+ fullWidth: !0,
228
+ startIcon: /* @__PURE__ */ t(w, { icon: We }),
229
+ sx: {
230
+ backgroundColor: o.palette.primary.main,
231
+ height: "45px",
232
+ borderRadius: "12px",
233
+ fontWeight: "bold",
234
+ textTransform: "uppercase",
235
+ letterSpacing: "1px",
236
+ "&:hover": { backgroundColor: o.palette.primary.dark }
237
+ },
238
+ children: N("Apply Filters")
239
+ }
240
+ ) })
241
+ ] });
242
+ }
243
+ function bt() {
244
+ const A = (e) => {
245
+ if (!e) return "N/A";
246
+ const i = Z(), s = Z(e), a = Z.duration(i.diff(s)), p = a.years(), r = a.months(), c = a.days(), m = a.hours(), v = a.minutes(), D = a.seconds();
247
+ if (p > 0) return `${p} year${p > 1 ? "s" : ""} ago`;
248
+ if (r > 0) return `${r} month${r > 1 ? "s" : ""} ago`;
249
+ if (c > 0) return `${c} day${c > 1 ? "s" : ""} ago`;
250
+ let T = [];
251
+ return m > 0 && T.push(`${m} hour${m > 1 ? "s" : ""}`), v > 0 && T.push(`${v} minute${v > 1 ? "s" : ""}`), D > 0 && m === 0 && T.push(`${D} second${D > 1 ? "s" : ""}`), T.length === 0 ? "Just now" : T.join(" ") + " ago";
252
+ };
253
+ Ve();
254
+ const l = Fe(), R = l.palette.mode === "dark", [N, o] = g(!1), [W, y] = g(""), [$, B] = g(""), [I, G] = g([]), [O, V] = g(!0), [M, F] = g(!1), [u, J] = g({
255
+ sortColumn: "timestamp",
256
+ sortOrder: "desc"
257
+ }), [h, n] = g({
258
+ startTime: null,
259
+ endTime: null,
260
+ userId: null,
261
+ username: null,
262
+ ip: null,
263
+ sessionId: null,
264
+ eventType: null,
265
+ resource: null
266
+ }), b = 50, { translate: P } = ce(), [Y, z] = g(!1), [me, q] = g(!1), [re, he] = g(null);
267
+ ee(() => {
268
+ const e = setTimeout(() => {
269
+ B(W);
270
+ }, 1e3);
271
+ return () => clearTimeout(e);
272
+ }, [W]);
273
+ const be = we(
274
+ () => [
275
+ { field: "Sr. No.", label: "#", align: "left" },
276
+ {
277
+ field: "timestamp",
278
+ label: "Time".toUpperCase(),
279
+ sortable: !0,
280
+ sortOrder: u.sortColumn === "timestamp" ? u.sortOrder : "asc",
281
+ align: "left",
282
+ render: (e) => /* @__PURE__ */ t(Ee, { title: A(e == null ? void 0 : e.timestamp), arrow: !0, placement: "top", children: /* @__PURE__ */ t(_, { className: "flex items-center h-full cursor-pointer", children: C(e == null ? void 0 : e.timestamp).format("DD/MM/YYYY hh:mm:ss A") }) })
283
+ },
284
+ {
285
+ field: "session_id",
286
+ label: "Session ID".toUpperCase(),
287
+ align: "left",
288
+ render: (e) => /* @__PURE__ */ t(E, { variant: "caption", className: "font-mono opacity-70", children: (e == null ? void 0 : e.session_id) || "N/A" })
289
+ },
290
+ {
291
+ field: "user_id",
292
+ label: "User ID".toUpperCase(),
293
+ sortable: !0,
294
+ sortOrder: u.sortColumn === "user_id" ? u.sortOrder : "asc",
295
+ align: "left",
296
+ render: (e) => /* @__PURE__ */ t(E, { variant: "body2", className: "font-bold", sx: { color: l.palette.text.primary }, children: (e == null ? void 0 : e.user_id) || "System" })
297
+ },
298
+ {
299
+ field: "resource",
300
+ label: "Resource".toUpperCase(),
301
+ sortable: !0,
302
+ sortOrder: u.sortColumn === "resource" ? u.sortOrder : "asc",
303
+ align: "left",
304
+ render: (e) => /* @__PURE__ */ t(_, { className: "max-w-xs truncate font-mono text-[0.7rem] opacity-80", title: e == null ? void 0 : e.resource, children: (e == null ? void 0 : e.resource) || "N/A" })
305
+ },
306
+ {
307
+ field: "Actions",
308
+ label: "View Details".toUpperCase(),
309
+ align: "center"
310
+ }
311
+ ],
312
+ [u]
313
+ ), fe = Ie(
314
+ (e) => [
315
+ {
316
+ label: "",
317
+ icon: /* @__PURE__ */ t(w, { icon: Pe, size: "lg", title: "View Event Details" }),
318
+ onClick: () => {
319
+ he(e), q(!0);
320
+ },
321
+ iconColor: l.palette.primary.main,
322
+ backgroundColor: X(l.palette.primary.main, 0.1),
323
+ hoverBackgroundColor: l.palette.primary.main,
324
+ hoverIconColor: "white",
325
+ borderColor: l.palette.primary.main
326
+ },
327
+ {
328
+ label: "Trace Detailed Session Logs",
329
+ icon: /* @__PURE__ */ t(w, { icon: Ye, size: "lg", title: "Filter Activity Analytics by this Session ID" }),
330
+ onClick: () => {
331
+ if (e.session_id) {
332
+ const i = window.location.origin + window.location.pathname.split("/medplat/")[0];
333
+ let s = {};
334
+ try {
335
+ e.attributes && (s = JSON.parse(e.attributes));
336
+ } catch {
337
+ }
338
+ e.user_id && (s.user_id = e.user_id);
339
+ const a = `&attributes=${encodeURIComponent(JSON.stringify(s))}`, p = `${i}/medplat/manage/activityAnalytics?sessionId=${e.session_id}${a}`;
340
+ window.open(p, "_blank");
341
+ } else
342
+ k({ message: "No Session ID available for this log", type: "warning" });
343
+ },
344
+ iconColor: l.palette.secondary.main,
345
+ backgroundColor: X(l.palette.secondary.main, 0.1),
346
+ hoverBackgroundColor: l.palette.secondary.main,
347
+ hoverIconColor: "white",
348
+ borderColor: l.palette.secondary.main
349
+ }
350
+ ],
351
+ [l]
352
+ ), ve = async (e) => {
353
+ const i = u.sortColumn === e.field && u.sortOrder === "asc" ? "desc" : "asc";
354
+ J({ sortColumn: e.field, sortOrder: i });
355
+ }, ae = () => {
356
+ F(!M);
357
+ }, ge = () => {
358
+ n({
359
+ startTime: null,
360
+ endTime: null,
361
+ userId: null,
362
+ username: null,
363
+ ip: null,
364
+ sessionId: null,
365
+ eventType: null,
366
+ resource: null
367
+ }), y(""), F(!1);
368
+ };
369
+ async function ye(e, i) {
370
+ var s;
371
+ try {
372
+ i && z(!0);
373
+ const a = {
374
+ limit: e.limit,
375
+ offset: e.offset,
376
+ userId: h.userId || null,
377
+ ip: h.ip || null,
378
+ sessionId: h.sessionId || null,
379
+ eventType: h.eventType || null,
380
+ resource: h.resource || null,
381
+ startTime: h.startTime ? C(h.startTime).startOf("day").valueOf() : null,
382
+ endTime: h.endTime ? C(h.endTime).endOf("day").valueOf() : null,
383
+ sortBy: u.sortColumn,
384
+ sortOrder: u.sortOrder
385
+ }, p = await je(
386
+ {
387
+ code: "GET_SECURITY_AUDIT_LOGS",
388
+ parameters: a
389
+ },
390
+ { showLoader: !1 }
391
+ ), r = (((s = p == null ? void 0 : p.data) == null ? void 0 : s.result) || []).map((c) => {
392
+ let m = null;
393
+ if (c.attributes)
394
+ try {
395
+ m = JSON.parse(c.attributes);
396
+ } catch {
397
+ }
398
+ return { ...c, parsedAttributes: m };
399
+ });
400
+ return i && z(!1), r;
401
+ } catch (a) {
402
+ return k({ message: `Error fetching logs: ${a.message}`, type: "error" }), z(!1), [];
403
+ }
404
+ }
405
+ const {
406
+ data: H,
407
+ fetchNextPage: xe,
408
+ hasNextPage: le
409
+ } = Se({
410
+ key: [
411
+ "security_audit_logs",
412
+ $,
413
+ u.sortOrder,
414
+ u.sortColumn,
415
+ h,
416
+ N
417
+ ],
418
+ queryFn: ({ pageParam: e }) => {
419
+ const i = !(e != null && e.offset) || (e == null ? void 0 : e.offset) === 0;
420
+ return ye(e, i);
421
+ },
422
+ limit: b
423
+ });
424
+ ee(() => {
425
+ var e;
426
+ const i = ((e = H == null ? void 0 : H.pages) == null ? void 0 : e.flat()) || [];
427
+ V(i.length > 0 ? le : !1), G(i);
428
+ }, [H, le]);
429
+ const [oe, Q] = g(!1), Ae = async () => {
430
+ try {
431
+ let e = function(r) {
432
+ const c = new ArrayBuffer(r.length), m = new Uint8Array(c);
433
+ for (let v = 0; v !== r.length; ++v) m[v] = r.charCodeAt(v) & 255;
434
+ return c;
435
+ };
436
+ if (I.length === 0) {
437
+ k({ message: "No data to export", type: "warning" });
438
+ return;
439
+ }
440
+ Q(!0);
441
+ const i = [
442
+ ["SECURITY AUDIT LOGS REPORT"],
443
+ [`Server Instance: ${window.location.hostname || "NA"}`],
444
+ [],
445
+ // blank spacer row
446
+ // Table Headers
447
+ [
448
+ "No.",
449
+ "TIME",
450
+ "EVENT CATEGORY",
451
+ "EVENT TYPE",
452
+ "SEVERITY",
453
+ "USER ID",
454
+ "USERNAME",
455
+ "NAME",
456
+ "ROLE ID",
457
+ "IP ADDRESS",
458
+ "SESSION ID",
459
+ "HTTP METHOD",
460
+ "RESOURCE",
461
+ "RESPONSE CODE",
462
+ "USER AGENT"
463
+ ]
464
+ ];
465
+ I.forEach((r, c) => {
466
+ var m, v, D, T, U;
467
+ i.push([
468
+ c + 1,
469
+ C(r == null ? void 0 : r.timestamp).format("DD/MM/YYYY hh:mm:ss A"),
470
+ (r == null ? void 0 : r.event_category) || "NA",
471
+ (r == null ? void 0 : r.event_type) || "NA",
472
+ (r == null ? void 0 : r.severity) || "NA",
473
+ (r == null ? void 0 : r.user_id) || "NA",
474
+ ((m = r == null ? void 0 : r.parsedAttributes) == null ? void 0 : m.user_name) || "NA",
475
+ ((v = r == null ? void 0 : r.parsedAttributes) == null ? void 0 : v.name) || "NA",
476
+ ((D = r == null ? void 0 : r.parsedAttributes) == null ? void 0 : D.role_id) || "NA",
477
+ ((T = r == null ? void 0 : r.parsedAttributes) == null ? void 0 : T.ip) || (r == null ? void 0 : r.ip_address) || "NA",
478
+ (r == null ? void 0 : r.session_id) || "NA",
479
+ (r == null ? void 0 : r.http_method) || "NA",
480
+ (r == null ? void 0 : r.resource) || "NA",
481
+ (r == null ? void 0 : r.response_code) || "NA",
482
+ ((U = r == null ? void 0 : r.parsedAttributes) == null ? void 0 : U.user_agent) || (r == null ? void 0 : r.user_agent) || "NA"
483
+ ]);
484
+ });
485
+ const s = j.utils.aoa_to_sheet(i), a = j.utils.book_new();
486
+ j.utils.book_append_sheet(a, s, "Logs");
487
+ const p = j.write(a, { bookType: "xlsx", type: "binary" });
488
+ Ge.saveAs(new Blob([e(p)], { type: "application/octet-stream" }), `SecurityAuditLogs-${(/* @__PURE__ */ new Date()).getTime()}.xlsx`), Q(!1);
489
+ } catch {
490
+ Q(!1), k({ message: "Error in downloading excel", type: "error" });
491
+ }
492
+ }, ie = Je(), [se, K] = g(!1), Ne = async () => {
493
+ try {
494
+ if (I.length === 0) {
495
+ k({ message: "No data to export", type: "warning" });
496
+ return;
497
+ }
498
+ K(!0);
499
+ const e = ["TIME", "CATEGORY", "TYPE", "USER ID", "USERNAME", "IP", "STATUS", "METHOD", "URI"], i = ["timeStr", "event_category", "event_type", "user_id", "username", "ip_address", "response_code", "http_method", "request_uri"], s = I.map((a) => {
500
+ var p, r;
501
+ return {
502
+ timeStr: C(a.timestamp).format("DD/MM/YYYY hh:mm:ss A"),
503
+ event_category: a.event_category || "NA",
504
+ event_type: a.event_type || "NA",
505
+ user_id: a.user_id || "NA",
506
+ username: ((p = a.parsedAttributes) == null ? void 0 : p.user_name) || "NA",
507
+ ip_address: ((r = a.parsedAttributes) == null ? void 0 : r.ip) || a.ip_address || "NA",
508
+ response_code: a.response_code || "NA",
509
+ http_method: a.http_method || "NA",
510
+ request_uri: a.resource || "NA"
511
+ };
512
+ });
513
+ ie({
514
+ title: [
515
+ "SECURITY AUDIT LOGS REPORT",
516
+ `Server Instance: ${window.location.hostname || "NA"}`
517
+ ],
518
+ columns: e,
519
+ keys: i,
520
+ data: s,
521
+ fileName: `AuditLogs-${(/* @__PURE__ */ new Date()).getTime()}`,
522
+ headerText: "Security Audit Logs",
523
+ footerText: "Audit Log Report",
524
+ orientation: "landscape"
525
+ }), K(!1);
526
+ } catch (e) {
527
+ K(!1), console.error(e), k({ message: "Error in downloading pdf", type: "error" });
528
+ }
529
+ }, Te = (e) => {
530
+ var i, s, a, p, r, c, m;
531
+ if (!e) return;
532
+ const v = [
533
+ { label: "User ID", value: String(e.user_id || "N/A") },
534
+ { label: "Username", value: String(((i = e.parsedAttributes) == null ? void 0 : i.user_name) || "N/A") },
535
+ { label: "Name", value: String(((s = e.parsedAttributes) == null ? void 0 : s.name) || "N/A") },
536
+ { label: "Role ID", value: String(((a = e.parsedAttributes) == null ? void 0 : a.role_id) || "N/A") },
537
+ { label: "Role Name", value: String(((p = e.parsedAttributes) == null ? void 0 : p.role_name) || "N/A") },
538
+ { label: "Role Code", value: String(((r = e.parsedAttributes) == null ? void 0 : r.role_code) || "N/A") },
539
+ { label: "Event Timestamp", value: C(e.timestamp).format("DD/MM/YYYY hh:mm:ss A") },
540
+ { label: "Event Category", value: String(e.event_category || "N/A") },
541
+ { label: "Event Type", value: String(e.event_type || "N/A") },
542
+ { label: "Severity", value: String(e.severity || "N/A") },
543
+ { label: "IP Address", value: String(((c = e.parsedAttributes) == null ? void 0 : c.ip) || e.ip_address || "N/A") },
544
+ { label: "Session ID", value: String(e.session_id || "N/A") },
545
+ { label: "HTTP Method", value: String(e.http_method || "N/A") },
546
+ { label: "Request URI", value: String(e.resource || "N/A") },
547
+ { label: "Response Code", value: String(e.response_code || "N/A") },
548
+ { label: "Server Instance", value: String(window.location.hostname || "N/A") },
549
+ { label: "User Agent", value: String(((m = e.parsedAttributes) == null ? void 0 : m.user_agent) || e.user_agent || "N/A") }
550
+ ];
551
+ ie({
552
+ columns: ["Field", "Value"],
553
+ keys: ["label", "value"],
554
+ data: v,
555
+ fileName: `AuditLog_Detail_${e.id || (/* @__PURE__ */ new Date()).getTime()}`,
556
+ headerText: `Security Audit Log - Entry #${e.id || ""}`,
557
+ footerText: `Generated on ${(/* @__PURE__ */ new Date()).toLocaleString()}`,
558
+ orientation: "portrait"
559
+ });
560
+ }, _e = (e) => {
561
+ var i, s, a, p, r, c, m, v, D, T, U, ne, de;
562
+ return e ? (C(e.timestamp).format("DD/MM/YYYY hh:mm:ss A"), e.event_category, e.event_type, e.severity, e.user_id, (i = e.parsedAttributes) == null || i.user_name, (s = e.parsedAttributes) == null || s.name, (a = e.parsedAttributes) == null || a.role_id, (p = e.parsedAttributes) == null || p.role_name, (r = e.parsedAttributes) == null || r.role_code, (c = e.parsedAttributes) != null && c.ip || e.ip_address, e.session_id, e.http_method, e.resource, e.response_code, /* @__PURE__ */ x(d, { container: !0, spacing: 2, children: [
563
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Event Category", value: e.event_category }) }),
564
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Event Type", value: e.event_type }) }),
565
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "User ID", value: e.user_id }) }),
566
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Username", value: ((m = e.parsedAttributes) == null ? void 0 : m.user_name) || "N/A" }) }),
567
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Name", value: ((v = e.parsedAttributes) == null ? void 0 : v.name) || "N/A" }) }),
568
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Role ID", value: ((D = e.parsedAttributes) == null ? void 0 : D.role_id) || "N/A" }) }),
569
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Role Name", value: ((T = e.parsedAttributes) == null ? void 0 : T.role_name) || "N/A" }) }),
570
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Role Code", value: ((U = e.parsedAttributes) == null ? void 0 : U.role_code) || "N/A" }) }),
571
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "HTTP Method", value: e.http_method }) }),
572
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Resource", value: e.resource }) }),
573
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Response Code", value: e.response_code }) }),
574
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Severity", value: e.severity }) }),
575
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "IP Address", value: ((ne = e.parsedAttributes) == null ? void 0 : ne.ip) || e.ip_address || "N/A" }) }),
576
+ /* @__PURE__ */ t(d, { size: 6, children: /* @__PURE__ */ t(f, { label: "Timestamp", value: C(e.timestamp).format("DD/MM/YYYY hh:mm:ss A") }) }),
577
+ /* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ t(f, { label: "Session ID", value: e.session_id || "N/A" }) }),
578
+ /* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ t(f, { label: "User Agent", value: ((de = e.parsedAttributes) == null ? void 0 : de.user_agent) || e.user_agent || "N/A" }) })
579
+ ] })) : null;
580
+ }, f = ({ label: e, value: i, isCode: s }) => /* @__PURE__ */ x(_, { sx: { mb: 1, borderBottom: `1px solid ${l.palette.divider}`, pb: 0.5 }, children: [
581
+ /* @__PURE__ */ t(E, { variant: "caption", sx: { color: l.palette.text.secondary, textTransform: "uppercase", fontWeight: "bold", fontSize: "0.65rem" }, children: e }),
582
+ /* @__PURE__ */ t(
583
+ E,
584
+ {
585
+ variant: "body2",
586
+ sx: {
587
+ color: l.palette.text.primary,
588
+ wordBreak: "break-word",
589
+ whiteSpace: s ? "pre-wrap" : "normal",
590
+ fontFamily: s ? "monospace" : "inherit",
591
+ fontSize: s ? "0.75rem" : "0.875rem"
592
+ },
593
+ children: String(i || "N/A")
594
+ }
595
+ )
596
+ ] });
597
+ return /* @__PURE__ */ x(d, { className: "w-[98%] mt-4", children: [
598
+ /* @__PURE__ */ x(
599
+ d,
600
+ {
601
+ container: !0,
602
+ spacing: 2,
603
+ className: "mb-4 justify-between items-center",
604
+ children: [
605
+ /* @__PURE__ */ t(d, { size: { xs: 12, md: 4 }, children: /* @__PURE__ */ t(
606
+ E,
607
+ {
608
+ variant: "h6",
609
+ sx: { fontWeight: "bold", color: l.palette.primary.main, textTransform: "uppercase" },
610
+ children: P("Security Audit Logs")
611
+ }
612
+ ) }),
613
+ /* @__PURE__ */ x(d, { size: { xs: 12, md: 8 }, className: "flex flex-col md:flex-row gap-3 justify-end items-center", children: [
614
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-3 w-full md:w-auto", children: /* @__PURE__ */ t(
615
+ ke,
616
+ {
617
+ color: "primary",
618
+ onClick: () => o((e) => !e),
619
+ className: "rounded-xl border border-slate-200 dark:border-slate-800 shadow-sm",
620
+ sx: {
621
+ backgroundColor: X(l.palette.primary.main, 0.1),
622
+ width: 40,
623
+ height: 40,
624
+ "&:hover": { backgroundColor: l.palette.primary.main, color: "white" }
625
+ },
626
+ children: /* @__PURE__ */ t(w, { icon: ze, className: "text-sm" })
627
+ }
628
+ ) }),
629
+ /* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ x("div", { className: `flex items-center rounded-2xl p-1 shadow-sm transition-all border ${R ? "bg-slate-900 border-slate-800" : "bg-white border-slate-200"}`, children: [
630
+ /* @__PURE__ */ x(
631
+ "button",
632
+ {
633
+ disabled: se || Y,
634
+ onClick: Ne,
635
+ 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"}`,
636
+ children: [
637
+ se ? /* @__PURE__ */ t(ue, { size: 14, sx: { color: "inherit" } }) : /* @__PURE__ */ t(w, { icon: pe }),
638
+ "Pdf"
639
+ ]
640
+ }
641
+ ),
642
+ /* @__PURE__ */ x(
643
+ "button",
644
+ {
645
+ disabled: oe || Y,
646
+ onClick: Ae,
647
+ 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-[#243A50] text-white hover:bg-[#1a2b3c]"}`,
648
+ children: [
649
+ oe ? /* @__PURE__ */ t(ue, { size: 14, sx: { color: "inherit" } }) : /* @__PURE__ */ t(w, { icon: Ue }),
650
+ "Excel Data"
651
+ ]
652
+ }
653
+ )
654
+ ] }) })
655
+ ] })
656
+ ]
657
+ }
658
+ ),
659
+ /* @__PURE__ */ t(
660
+ De,
661
+ {
662
+ columns: be,
663
+ tableData: I,
664
+ actions: fe,
665
+ paginationConfig: {
666
+ pagination: !0,
667
+ paginationType: "infinite-scroll",
668
+ rowsPerPageInTable: b,
669
+ hasMore: O,
670
+ loadMore: () => O && xe({ cancelRefetch: !1 })
671
+ },
672
+ isLoading: Y,
673
+ handleSort: ve
674
+ }
675
+ ),
676
+ /* @__PURE__ */ t(
677
+ Ce,
678
+ {
679
+ title: "Audit Filter",
680
+ resetButtonLabel: "Reset",
681
+ onResetClick: ge,
682
+ FormBody: qe,
683
+ handleOverlayState: ae,
684
+ overlayOpen: M,
685
+ dataTestId: "security-audit-log-filter",
686
+ ModalProps: {
687
+ sx: {
688
+ "& .MuiDrawer-paper": {
689
+ backgroundColor: l.palette.background.paper,
690
+ color: l.palette.text.primary,
691
+ "& .p-2\\.5": {
692
+ backgroundColor: l.palette.background.paper,
693
+ borderBottom: `1px solid ${l.palette.divider}`,
694
+ color: l.palette.primary.main,
695
+ fontWeight: "bold",
696
+ letterSpacing: "1px"
697
+ }
698
+ }
699
+ }
700
+ },
701
+ formProps: {
702
+ filter: h,
703
+ setFilter: n,
704
+ handleOverlayState: ae
705
+ }
706
+ }
707
+ ),
708
+ /* @__PURE__ */ x(
709
+ Re,
710
+ {
711
+ open: me,
712
+ onClose: () => q(!1),
713
+ maxWidth: "sm",
714
+ fullWidth: !0,
715
+ PaperProps: {
716
+ sx: {
717
+ backgroundColor: l.palette.background.paper,
718
+ color: l.palette.text.primary
719
+ }
720
+ },
721
+ children: [
722
+ /* @__PURE__ */ t($e, { sx: { borderBottom: `1px solid ${l.palette.divider}`, fontWeight: "bold", color: l.palette.primary.main }, children: "Log Entry Details" }),
723
+ /* @__PURE__ */ t(Oe, { dividers: !0, sx: { borderColor: l.palette.divider }, children: /* @__PURE__ */ t(_, { className: "p-2", children: _e(re) }) }),
724
+ /* @__PURE__ */ x(_, { sx: { p: 2, display: "flex", justifyContent: "flex-end", gap: 2 }, children: [
725
+ /* @__PURE__ */ t(
726
+ te,
727
+ {
728
+ onClick: () => Te(re),
729
+ variant: "outlined",
730
+ color: "primary",
731
+ startIcon: /* @__PURE__ */ t(w, { icon: pe }),
732
+ sx: { borderRadius: "12px" },
733
+ children: "Download PDF"
734
+ }
735
+ ),
736
+ /* @__PURE__ */ t(te, { onClick: () => q(!1), variant: "contained", color: "primary", sx: { borderRadius: "12px" }, children: "Close" })
737
+ ] })
738
+ ]
739
+ }
740
+ )
741
+ ] });
742
+ }
743
+ export {
744
+ bt as default
745
+ };
746
+ //# sourceMappingURL=SecurityAuditLogList-DHTcOtbx-VvwDlRuu.js.map