@argusoft/medplat-core 1.0.18 → 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 +98 -96
  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-BqPTExSk.js +0 -5653
  54. package/dist/ImmunizationConfigurationBase-BqPTExSk.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,29 +1,29 @@
1
1
  import { jsxs as p, jsx as e, Fragment as Ze } from "react/jsx-runtime";
2
- import { execute as ve } from "@/common/services/QueryBuilder";
2
+ import { execute as Ie } from "@/common/services/QueryBuilder";
3
3
  import { showToast as ie } from "@/common/toaster/toaster";
4
- import { useDroppable as nt, DndContext as Nt, useDraggable as Mt, DragOverlay as an, rectIntersection as At, closestCenter as sn } from "@dnd-kit/core";
5
- import { SortableContext as De, verticalListSortingStrategy as Ue, arrayMove as Pe, useSortable as rt } from "@dnd-kit/sortable";
6
- import { Box as U, Typography as S, FormControl as Ve, InputLabel as ln, Select as cn, MenuItem as Tt, Tooltip as dn, Paper as xe, IconButton as un, Divider as ot, Button as Ge, Switch as Ot, TextField as Qe, InputAdornment as pn, Accordion as Ye, AccordionSummary as Je, AccordionDetails as Xe, Grid2 as fn, Autocomplete as mn } from "@mui/material";
7
- import v from "@mui/material/Grid2";
4
+ import { useDroppable as rt, DndContext as Nt, useDraggable as Mt, DragOverlay as ir, rectIntersection as At, closestCenter as ar } from "@dnd-kit/core";
5
+ import { SortableContext as De, verticalListSortingStrategy as Ue, arrayMove as Pe, useSortable as nt } from "@dnd-kit/sortable";
6
+ import { Box as U, Typography as v, FormControl as Ve, InputLabel as sr, Select as lr, MenuItem as Tt, Tooltip as cr, Paper as xe, IconButton as dr, Divider as ot, Button as Ge, Switch as Ot, TextField as Qe, InputAdornment as ur, Accordion as Ye, AccordionSummary as Je, AccordionDetails as Xe, Grid2 as pr, Autocomplete as mr } from "@mui/material";
7
+ import I from "@mui/material/Grid2";
8
8
  import { Grid as ye, Box as N } from "@mui/system";
9
- import K, { createContext as hn, useState as k, useCallback as Re, useMemo as Fe, useEffect as Ke } from "react";
10
- import { useForm as gn } from "react-hook-form";
11
- import { useSelector as xn } from "react-redux";
12
- import { useLocation as yn, useNavigate as bn } from "react-router";
13
- import Sn from "@/views/custom-components/CustomDropdown";
14
- import m from "prop-types";
15
- import { FontAwesomeIcon as W } from "@fortawesome/react-fontawesome";
16
- import { faWifi as Cn, faSignal as In, faBatteryFull as vn, faLocationDot as Rn, faRotate as wn, faBell as En, faCircleUser as An, faChevronDown as _t, faMagnifyingGlass as kt, faTimes as Tn, faTrashCan as On } from "@fortawesome/free-solid-svg-icons";
17
- import Nn from "@/assets/img/home.svg";
18
- import Mn from "@/assets/img/programs.svg";
19
- import _n from "@/assets/img/analytics.svg";
20
- import kn from "@/assets/img/family-management.svg";
21
- import { CSS as Fn } from "@dnd-kit/utilities";
9
+ import K, { createContext as hr, useState as _, useCallback as Re, useMemo as Fe, useEffect as Ke } from "react";
10
+ import { useForm as gr } from "react-hook-form";
11
+ import { useSelector as fr } from "react-redux";
12
+ import { useLocation as xr, useNavigate as yr } from "react-router";
13
+ import br from "@/views/custom-components/CustomDropdown";
14
+ import h from "prop-types";
15
+ import { FontAwesomeIcon as z } from "@fortawesome/react-fontawesome";
16
+ import { faWifi as vr, faSignal as Sr, faBatteryFull as Cr, faLocationDot as Ir, faRotate as Rr, faBell as wr, faCircleUser as Er, faChevronDown as kt, faMagnifyingGlass as _t, faTimes as Ar, faTrashCan as Tr } from "@fortawesome/free-solid-svg-icons";
17
+ import Or from "@/assets/img/home.svg";
18
+ import Nr from "@/assets/img/programs.svg";
19
+ import Mr from "@/assets/img/analytics.svg";
20
+ import kr from "@/assets/img/family-management.svg";
21
+ import { CSS as _r } from "@dnd-kit/utilities";
22
22
  import X from "@/common/fontAwesomeIcons/FontAwesomeIcons";
23
- import { generateUUID as ge } from "@/utils/UUIDgenerator";
24
- import Pn from "@/views/custom-components/CustomConfirmationModal";
25
- import './AddMenuConfiguration.css';const Gn = hn(), Dn = ({ id: o, children: c, componentType: d }) => {
26
- const { attributes: b, listeners: E, setNodeRef: u, isDragging: y } = rt({
23
+ import { generateUUID as fe } from "@/utils/UUIDgenerator";
24
+ import Fr from "@/views/custom-components/CustomConfirmationModal";
25
+ import './AddMenuConfiguration.css';const Pr = hr(), Gr = ({ id: o, children: c, componentType: d }) => {
26
+ const { attributes: b, listeners: E, setNodeRef: u, isDragging: y } = nt({
27
27
  id: o,
28
28
  data: { sortable: !0, type: d }
29
29
  }), R = {
@@ -34,7 +34,7 @@ import './AddMenuConfiguration.css';const Gn = hn(), Dn = ({ id: o, children: c,
34
34
  style: { ...c.props.style, ...R },
35
35
  dnd: { listeners: E, attributes: b }
36
36
  });
37
- }, Un = ({ id: o, children: c, componentType: d }) => {
37
+ }, Dr = ({ id: o, children: c, componentType: d }) => {
38
38
  const { attributes: b, listeners: E, setNodeRef: u, isDragging: y } = Mt({
39
39
  id: o,
40
40
  data: {
@@ -51,7 +51,7 @@ import './AddMenuConfiguration.css';const Gn = hn(), Dn = ({ id: o, children: c,
51
51
  ...b
52
52
  });
53
53
  }, Ft = ({ id: o, children: c, sectionId: d, featureName: b }) => {
54
- const { attributes: E, listeners: u, setNodeRef: y, isDragging: R } = rt({
54
+ const { attributes: E, listeners: u, setNodeRef: y, isDragging: R } = nt({
55
55
  id: o,
56
56
  data: {
57
57
  sortable: !0,
@@ -83,7 +83,7 @@ import './AddMenuConfiguration.css';const Gn = hn(), Dn = ({ id: o, children: c,
83
83
  p: 1.5,
84
84
  border: "1px solid #ccc",
85
85
  borderRadius: "8px",
86
- backgroundColor: "#fff",
86
+ backgroundColor: "var(--color-background2)",
87
87
  display: "flex",
88
88
  alignItems: "center",
89
89
  mt: 1,
@@ -92,16 +92,16 @@ import './AddMenuConfiguration.css';const Gn = hn(), Dn = ({ id: o, children: c,
92
92
  },
93
93
  ...b,
94
94
  children: [
95
- /* @__PURE__ */ e(W, { icon: kt, style: { marginRight: "8px", color: "#888" } }),
96
- /* @__PURE__ */ e(S, { variant: "body2", color: "textSecondary", sx: { flexGrow: 1 }, children: "Search..." })
95
+ /* @__PURE__ */ e(z, { icon: _t, style: { marginRight: "8px", color: "#888" } }),
96
+ /* @__PURE__ */ e(v, { variant: "body2", color: "textSecondary", sx: { flexGrow: 1 }, children: "Search..." })
97
97
  ]
98
98
  }
99
99
  ));
100
100
  it.displayName = "MobileSearchBar";
101
101
  it.propTypes = {
102
- id: m.any,
103
- style: m.any,
104
- handleSectionClick: m.any
102
+ id: h.any,
103
+ style: h.any,
104
+ handleSectionClick: h.any
105
105
  };
106
106
  const at = K.forwardRef(
107
107
  ({
@@ -120,9 +120,9 @@ const at = K.forwardRef(
120
120
  A.preventDefault(), b(o);
121
121
  }, M = (A) => {
122
122
  A.stopPropagation();
123
- }, ne = (A, j) => {
123
+ }, re = (A, j) => {
124
124
  A.preventDefault(), A.stopPropagation(), R && R(A, j);
125
- }, { setNodeRef: ae, isOver: ue } = nt({
125
+ }, { setNodeRef: ae, isOver: ue } = rt({
126
126
  id: `section-drop-zone-${o}`,
127
127
  data: {
128
128
  type: "SECTION_DROP_ZONE",
@@ -143,7 +143,7 @@ const at = K.forwardRef(
143
143
  alignItems: "flex-start",
144
144
  justifyContent: "flex-start",
145
145
  p: 1,
146
- border: ue ? "1px dashed #073149" : "0.1px solid #A9BCCD",
146
+ border: ue ? "1px dashed var(--color-tableHeader)" : "0.1px solid #A9BCCD",
147
147
  cursor: "pointer",
148
148
  backgroundColor: "#e6f0ff",
149
149
  borderRadius: "14px",
@@ -161,7 +161,7 @@ const at = K.forwardRef(
161
161
  width: "100%",
162
162
  mb: 0.5
163
163
  },
164
- children: /* @__PURE__ */ e(S, { variant: "body2", sx: { fontWeight: "bold", color: "#073149", flexGrow: 1 }, children: d || `Section ${c + 1}` })
164
+ children: /* @__PURE__ */ e(v, { variant: "body2", sx: { fontWeight: "bold", color: "var(--color-text)", flexGrow: 1 }, children: d || `Section ${c + 1}` })
165
165
  }
166
166
  ),
167
167
  /* @__PURE__ */ e(
@@ -171,7 +171,7 @@ const at = K.forwardRef(
171
171
  sx: {
172
172
  width: "100%",
173
173
  minHeight: "40px",
174
- border: `${ue ? "1px dashed #073149" : ""}`,
174
+ border: `${ue ? "1px dashed var(--color-tableHeader)" : ""}`,
175
175
  borderRadius: "4px",
176
176
  textAlign: "center",
177
177
  display: "flex",
@@ -205,7 +205,7 @@ const at = K.forwardRef(
205
205
  U,
206
206
  {
207
207
  onClick: (P) => A.type === "FEATURE" && M(P),
208
- onContextMenu: (P) => A.type === "GROUP" && ne(P, A),
208
+ onContextMenu: (P) => A.type === "GROUP" && re(P, A),
209
209
  sx: {
210
210
  display: "flex",
211
211
  flexDirection: "column",
@@ -218,7 +218,7 @@ const at = K.forwardRef(
218
218
  minWidth: 0,
219
219
  overflow: "hidden",
220
220
  "&:hover": {
221
- backgroundColor: "#f5f5f5"
221
+ backgroundColor: "var(--color-gray4)"
222
222
  }
223
223
  },
224
224
  children: [
@@ -227,7 +227,7 @@ const at = K.forwardRef(
227
227
  y
228
228
  ),
229
229
  /* @__PURE__ */ e(
230
- S,
230
+ v,
231
231
  {
232
232
  variant: "body2",
233
233
  sx: {
@@ -236,7 +236,7 @@ const at = K.forwardRef(
236
236
  lineHeight: 1.2,
237
237
  width: "100%",
238
238
  fontSize: "0.7rem",
239
- color: "#073149",
239
+ color: "var(--color-text)",
240
240
  fontWeight: "bold",
241
241
  letterSpacing: 0.2,
242
242
  whiteSpace: "normal",
@@ -247,12 +247,12 @@ const at = K.forwardRef(
247
247
  }
248
248
  ),
249
249
  j && /* @__PURE__ */ e(U, { sx: { ml: 0.5, display: "flex", alignItems: "center" }, children: /* @__PURE__ */ e(
250
- W,
250
+ z,
251
251
  {
252
- icon: _t,
252
+ icon: kt,
253
253
  sx: {
254
254
  fontSize: "0.7rem",
255
- color: "#073149",
255
+ color: "var(--color-text)",
256
256
  transition: "transform 0.2s",
257
257
  transform: be ? "rotate(180deg)" : "rotate(0deg)"
258
258
  }
@@ -266,7 +266,7 @@ const at = K.forwardRef(
266
266
  },
267
267
  A.instanceId
268
268
  );
269
- }) }) }) : /* @__PURE__ */ e(S, { variant: "caption", color: "textSecondary", children: ue ? "Drop Feature Here" : "Drag features here later." })
269
+ }) }) }) : /* @__PURE__ */ e(v, { variant: "caption", color: "textSecondary", children: ue ? "Drop Feature Here" : "Drag features here later." })
270
270
  }
271
271
  )
272
272
  ]
@@ -276,21 +276,21 @@ const at = K.forwardRef(
276
276
  );
277
277
  at.displayName = "MobileSection";
278
278
  at.propTypes = {
279
- id: m.any,
280
- arrayIndex: m.any,
281
- sectionTitle: m.any,
282
- handleSectionClick: m.any,
283
- dnd: m.any,
284
- sectionFeatures: m.any,
285
- SvgIconBox: m.any,
286
- onGroupClick: m.any,
287
- activeGroupId: m.any
279
+ id: h.any,
280
+ arrayIndex: h.any,
281
+ sectionTitle: h.any,
282
+ handleSectionClick: h.any,
283
+ dnd: h.any,
284
+ sectionFeatures: h.any,
285
+ SvgIconBox: h.any,
286
+ onGroupClick: h.any,
287
+ activeGroupId: h.any
288
288
  };
289
289
  const Pt = ({ feature: o, SvgIconBox: c, handleFeatureClick: d }) => {
290
- const { attributes: b, listeners: E, setNodeRef: u, transform: y, transition: R, isDragging: F } = rt({
290
+ const { attributes: b, listeners: E, setNodeRef: u, transform: y, transition: R, isDragging: F } = nt({
291
291
  id: o.uuid || o.id
292
292
  }), Q = {
293
- transform: Fn.Transform.toString(y),
293
+ transform: _r.Transform.toString(y),
294
294
  transition: R,
295
295
  zIndex: F ? 2e3 : 1,
296
296
  opacity: F ? 0.8 : 1,
@@ -332,15 +332,15 @@ const Pt = ({ feature: o, SvgIconBox: c, handleFeatureClick: d }) => {
332
332
  overflow: "hidden",
333
333
  borderRadius: "8px",
334
334
  "&:hover": {
335
- backgroundColor: "#f5f5f5"
335
+ backgroundColor: "var(--color-gray4)"
336
336
  }
337
337
  },
338
338
  children: [
339
339
  /* @__PURE__ */ e(U, { sx: { mt: 0.5, mb: 0.5, display: "flex", alignItems: "center" }, children: ((T, te) => {
340
340
  let M = null;
341
341
  if (typeof T == "object" && T !== null ? T.type === "svg" && typeof T.content == "string" ? M = T.content : typeof T.svg == "string" && (M = T.svg) : typeof T == "string" ? M = T : typeof o.icon == "object" && o.icon !== null && (M = o.icon.content || o.icon.svg), typeof M == "string" && M.includes("<svg")) {
342
- const ne = M.match(/<svg[\s\S]*<\/svg>/i);
343
- ne && (M = ne[0]);
342
+ const re = M.match(/<svg[\s\S]*<\/svg>/i);
343
+ re && (M = re[0]);
344
344
  }
345
345
  return M ? /* @__PURE__ */ e(U, { sx: { height: "24px", width: "24px", display: "flex", justifyContent: "center", alignItems: "center" }, children: /* @__PURE__ */ e(te, { svg: M }) }) : /* @__PURE__ */ e(
346
346
  U,
@@ -351,7 +351,7 @@ const Pt = ({ feature: o, SvgIconBox: c, handleFeatureClick: d }) => {
351
351
  display: "flex",
352
352
  justifyContent: "center",
353
353
  alignItems: "center",
354
- color: "#b0bec5",
354
+ color: "var(--color-gray3)",
355
355
  border: "1px solid",
356
356
  borderRadius: "4px",
357
357
  fontSize: "0.8rem"
@@ -361,7 +361,7 @@ const Pt = ({ feature: o, SvgIconBox: c, handleFeatureClick: d }) => {
361
361
  );
362
362
  })(o.icon, c) }),
363
363
  /* @__PURE__ */ e(
364
- S,
364
+ v,
365
365
  {
366
366
  variant: "body2",
367
367
  sx: {
@@ -370,7 +370,7 @@ const Pt = ({ feature: o, SvgIconBox: c, handleFeatureClick: d }) => {
370
370
  lineHeight: 1.2,
371
371
  width: "100%",
372
372
  fontSize: "0.7rem",
373
- color: "#073149",
373
+ color: "var(--color-text)",
374
374
  fontWeight: "bold",
375
375
  letterSpacing: 0.2,
376
376
  whiteSpace: "normal",
@@ -388,9 +388,9 @@ const Pt = ({ feature: o, SvgIconBox: c, handleFeatureClick: d }) => {
388
388
  );
389
389
  };
390
390
  Pt.propTypes = {
391
- feature: m.any,
392
- SvgIconBox: m.any,
393
- handleFeatureClick: m.any
391
+ feature: h.any,
392
+ SvgIconBox: h.any,
393
+ handleFeatureClick: h.any
394
394
  };
395
395
  function Gt({
396
396
  tabStatus: o,
@@ -407,41 +407,41 @@ function Gt({
407
407
  setCurrentLayoutComponents: de,
408
408
  programFeatures: T
409
409
  }) {
410
- const te = "mobile-content", M = u === "programs" ? "PROGRAMS_ROOT_DROP_ZONE" : "LAYOUT_ROOT_DROP_ZONE", { setNodeRef: ne, isOver: ae } = nt({
410
+ const te = "mobile-content", M = u === "programs" ? "PROGRAMS_ROOT_DROP_ZONE" : "LAYOUT_ROOT_DROP_ZONE", { setNodeRef: re, isOver: ae } = rt({
411
411
  id: te,
412
412
  data: {
413
413
  type: M,
414
414
  sectionId: te
415
415
  }
416
416
  }), A = [
417
- { id: "home", label: "Home", icon: Nn, alt: "Home" },
418
- { id: "programs", label: "Programs", icon: Mn, alt: "Programs" },
419
- { id: "analytics", label: "Analytics", icon: _n, alt: "Analytics" },
420
- { id: "familyManagement", label: "Family Management", icon: kn, alt: "Family Management" }
421
- ].filter((f) => o[f.id]), j = c.find((f) => f.type === d.SEARCH_BAR), be = c.filter((f) => f.type === d.SECTION), [P, se] = k({
417
+ { id: "home", label: "Home", icon: Or, alt: "Home" },
418
+ { id: "programs", label: "Programs", icon: Nr, alt: "Programs" },
419
+ { id: "analytics", label: "Analytics", icon: Mr, alt: "Analytics" },
420
+ { id: "familyManagement", label: "Family Management", icon: kr, alt: "Family Management" }
421
+ ].filter((m) => o[m.id]), j = c.find((m) => m.type === d.SEARCH_BAR), be = c.filter((m) => m.type === d.SECTION), [P, se] = _({
422
422
  anchorEl: null,
423
423
  groupData: null
424
424
  }), $ = Re(
425
- (f, G) => {
426
- var H;
427
- const q = f.currentTarget;
428
- ((H = P.groupData) == null ? void 0 : H.instanceId) === G.instanceId ? Se() : se({
425
+ (m, G) => {
426
+ var W;
427
+ const q = m.currentTarget;
428
+ ((W = P.groupData) == null ? void 0 : W.instanceId) === G.instanceId ? ve() : se({
429
429
  anchorEl: q,
430
430
  groupData: G
431
431
  });
432
432
  },
433
433
  [P.groupData]
434
- ), Se = Re(() => {
434
+ ), ve = Re(() => {
435
435
  se({ anchorEl: null, groupData: null });
436
- }, []), Be = (f) => {
437
- var H;
438
- const G = f.type === "GROUP", q = G && ((H = P.groupData) == null ? void 0 : H.instanceId) === f.instanceId;
436
+ }, []), Be = (m) => {
437
+ var W;
438
+ const G = m.type === "GROUP", q = G && ((W = P.groupData) == null ? void 0 : W.instanceId) === m.instanceId;
439
439
  return /* @__PURE__ */ e(
440
440
  Ft,
441
441
  {
442
- id: f.instanceId,
442
+ id: m.instanceId,
443
443
  sectionId: null,
444
- featureName: f.name,
444
+ featureName: m.name,
445
445
  children: /* @__PURE__ */ e(
446
446
  ye,
447
447
  {
@@ -458,8 +458,8 @@ function Gt({
458
458
  children: /* @__PURE__ */ p(
459
459
  U,
460
460
  {
461
- onClick: (L) => f.type === "FEATURE" && L.stopPropagation(),
462
- onContextMenu: (L) => f.type === "GROUP" && $(L, f),
461
+ onClick: (L) => m.type === "FEATURE" && L.stopPropagation(),
462
+ onContextMenu: (L) => m.type === "GROUP" && $(L, m),
463
463
  sx: {
464
464
  display: "flex",
465
465
  flexDirection: "column",
@@ -472,13 +472,13 @@ function Gt({
472
472
  minWidth: 0,
473
473
  overflow: "hidden",
474
474
  "&:hover": {
475
- backgroundColor: "#f5f5f5"
475
+ backgroundColor: "var(--color-gray4)"
476
476
  }
477
477
  },
478
478
  children: [
479
- Ut(Object.prototype.hasOwnProperty.call(f, "icon") ? f.icon : null, ee),
479
+ Ut(Object.prototype.hasOwnProperty.call(m, "icon") ? m.icon : null, ee),
480
480
  /* @__PURE__ */ e(
481
- S,
481
+ v,
482
482
  {
483
483
  variant: "body2",
484
484
  sx: {
@@ -487,23 +487,23 @@ function Gt({
487
487
  lineHeight: 1.2,
488
488
  width: "100%",
489
489
  fontSize: "0.7rem",
490
- color: "#073149",
490
+ color: "var(--color-text)",
491
491
  fontWeight: "bold",
492
492
  letterSpacing: 0.2,
493
493
  whiteSpace: "normal",
494
494
  wordBreak: "break-word",
495
495
  overflowWrap: "break-word"
496
496
  },
497
- children: Dt(f.name)
497
+ children: Dt(m.name)
498
498
  }
499
499
  ),
500
500
  G && /* @__PURE__ */ e(U, { sx: { ml: 0.5, display: "flex", alignItems: "center" }, children: /* @__PURE__ */ e(
501
- W,
501
+ z,
502
502
  {
503
- icon: _t,
503
+ icon: kt,
504
504
  sx: {
505
505
  fontSize: "0.7rem",
506
- color: "#073149",
506
+ color: "var(--color-text)",
507
507
  transition: "transform 0.2s",
508
508
  transform: q ? "rotate(180deg)" : "rotate(0deg)"
509
509
  }
@@ -515,69 +515,69 @@ function Gt({
515
515
  }
516
516
  )
517
517
  },
518
- f.instanceId
518
+ m.instanceId
519
519
  );
520
- }, ze = (f) => {
521
- const { active: G, over: q } = f;
520
+ }, He = (m) => {
521
+ const { active: G, over: q } = m;
522
522
  if (!q || G.id === q.id || !P.groupData)
523
523
  return;
524
- const H = P.groupData.instanceId;
524
+ const W = P.groupData.instanceId;
525
525
  let L = null;
526
- de((Ce) => Ce.map((pe) => pe.features ? {
526
+ de((Se) => Se.map((pe) => pe.features ? {
527
527
  ...pe,
528
528
  features: pe.features.map((B) => {
529
- if (B.instanceId === H && B.type === "GROUP" && B.menus) {
530
- const fe = B.menus.findIndex((Y) => (Y.uuid || Y.instanceId) === G.id), Ie = B.menus.findIndex((Y) => (Y.uuid || Y.instanceId) === q.id);
531
- if (fe !== -1 && Ie !== -1) {
532
- const Y = Pe(B.menus, fe, Ie);
529
+ if (B.instanceId === W && B.type === "GROUP" && B.menus) {
530
+ const me = B.menus.findIndex((Y) => (Y.uuid || Y.instanceId) === G.id), Ce = B.menus.findIndex((Y) => (Y.uuid || Y.instanceId) === q.id);
531
+ if (me !== -1 && Ce !== -1) {
532
+ const Y = Pe(B.menus, me, Ce);
533
533
  return L = { ...B, menus: Y }, L;
534
534
  }
535
535
  }
536
536
  return B;
537
537
  })
538
- } : pe)), L && se((Ce) => ({
539
- ...Ce,
538
+ } : pe)), L && se((Se) => ({
539
+ ...Se,
540
540
  groupData: L
541
541
  }));
542
542
  }, Ae = () => {
543
- Se();
544
- }, Te = (f, G) => {
545
- var H;
546
- const q = f.id === E;
547
- return /* @__PURE__ */ e(Dn, { id: f.id, componentType: d.SECTION, isSortable: !0, children: /* @__PURE__ */ e(
543
+ ve();
544
+ }, Te = (m, G) => {
545
+ var W;
546
+ const q = m.id === E;
547
+ return /* @__PURE__ */ e(Gr, { id: m.id, componentType: d.SECTION, isSortable: !0, children: /* @__PURE__ */ e(
548
548
  at,
549
549
  {
550
- id: f.id,
550
+ id: m.id,
551
551
  arrayIndex: G,
552
- sectionTitle: f.title,
552
+ sectionTitle: m.title,
553
553
  handleSectionClick: b,
554
- sectionFeatures: f.features,
554
+ sectionFeatures: m.features,
555
555
  isActive: q,
556
556
  SvgIconBox: ee,
557
557
  onGroupClick: $,
558
- activeGroupId: (H = P.groupData) == null ? void 0 : H.instanceId
558
+ activeGroupId: (W = P.groupData) == null ? void 0 : W.instanceId
559
559
  }
560
- ) }, f.id);
560
+ ) }, m.id);
561
561
  };
562
562
  return /* @__PURE__ */ p("div", { className: "mobile-screen-v2", id: "mobile-screen", children: [
563
563
  /* @__PURE__ */ p("div", { className: "status-bar-v2", children: [
564
564
  /* @__PURE__ */ e("span", { className: "time-v2", children: "12:16" }),
565
565
  /* @__PURE__ */ e("div", { className: "notch-v2" }),
566
566
  /* @__PURE__ */ p("div", { className: "right-status-icons-v2", children: [
567
- /* @__PURE__ */ e("span", { "aria-label": "wifi", children: /* @__PURE__ */ e(W, { icon: Cn }) }),
568
- /* @__PURE__ */ e("span", { "aria-label": "signal", children: /* @__PURE__ */ e(W, { icon: In }) }),
569
- /* @__PURE__ */ e("span", { "aria-label": "battery", className: "battery-icon", children: /* @__PURE__ */ e(W, { icon: vn }) })
567
+ /* @__PURE__ */ e("span", { "aria-label": "wifi", children: /* @__PURE__ */ e(z, { icon: vr }) }),
568
+ /* @__PURE__ */ e("span", { "aria-label": "signal", children: /* @__PURE__ */ e(z, { icon: Sr }) }),
569
+ /* @__PURE__ */ e("span", { "aria-label": "battery", className: "battery-icon", children: /* @__PURE__ */ e(z, { icon: Cr }) })
570
570
  ] })
571
571
  ] }),
572
572
  /* @__PURE__ */ p("div", { className: "header-v2", children: [
573
573
  /* @__PURE__ */ p("div", { className: "location-v2", children: [
574
- /* @__PURE__ */ e(W, { icon: Rn }),
574
+ /* @__PURE__ */ e(z, { icon: Ir }),
575
575
  /* @__PURE__ */ e("span", { className: "location-text-v2", children: "પાલડી-કાંકજ" })
576
576
  ] }),
577
577
  /* @__PURE__ */ p("div", { className: "header-actions-v2", children: [
578
- /* @__PURE__ */ e("span", { className: "action-icon-v2 rotate-icon", role: "button", "aria-label": "refresh", children: /* @__PURE__ */ e(W, { icon: wn }) }),
579
- /* @__PURE__ */ e("span", { className: "action-icon-v2 notification-outline", role: "button", "aria-label": "notifications", children: /* @__PURE__ */ e(W, { icon: En }) }),
580
- /* @__PURE__ */ e("span", { className: "action-icon-v2 profile-icon", role: "button", "aria-label": "profile", children: /* @__PURE__ */ e(W, { icon: An }) })
578
+ /* @__PURE__ */ e("span", { className: "action-icon-v2 rotate-icon", role: "button", "aria-label": "refresh", children: /* @__PURE__ */ e(z, { icon: Rr }) }),
579
+ /* @__PURE__ */ e("span", { className: "action-icon-v2 notification-outline", role: "button", "aria-label": "notifications", children: /* @__PURE__ */ e(z, { icon: wr }) }),
580
+ /* @__PURE__ */ e("span", { className: "action-icon-v2 profile-icon", role: "button", "aria-label": "profile", children: /* @__PURE__ */ e(z, { icon: Er }) })
581
581
  ] })
582
582
  ] }),
583
583
  /* @__PURE__ */ e(
@@ -585,10 +585,10 @@ function Gt({
585
585
  {
586
586
  className: "content-v2",
587
587
  id: "mobile-content",
588
- ref: u !== "familyManagement" ? ne : null,
588
+ ref: u !== "familyManagement" ? re : null,
589
589
  style: {
590
- border: u !== "familyManagement" && ae ? "2px dashed #073149" : "none",
591
- backgroundColor: u !== "familyManagement" && ae ? "#f0f4f8" : "transparent",
590
+ border: u !== "familyManagement" && ae ? "2px dashed var(--color-tableHeader)" : "none",
591
+ backgroundColor: u !== "familyManagement" && ae ? "var(--color-gray4)" : "transparent",
592
592
  minHeight: "300px",
593
593
  maxHeight: "calc(100% - 110px)",
594
594
  overflowY: "auto",
@@ -609,11 +609,11 @@ function Gt({
609
609
  height: "100%"
610
610
  },
611
611
  children: [
612
- /* @__PURE__ */ e(S, { variant: "body1", sx: { mb: 2, fontWeight: "bold" }, children: "Select Form for Family Management" }),
612
+ /* @__PURE__ */ e(v, { variant: "body1", sx: { mb: 2, fontWeight: "bold" }, children: "Select Form for Family Management" }),
613
613
  /* @__PURE__ */ p(Ve, { fullWidth: !0, sx: { maxWidth: "90%", mb: 2 }, children: [
614
- /* @__PURE__ */ e(ln, { id: "form-selector-label", children: "Form Name" }),
614
+ /* @__PURE__ */ e(sr, { id: "form-selector-label", children: "Form Name" }),
615
615
  /* @__PURE__ */ p(
616
- cn,
616
+ lr,
617
617
  {
618
618
  labelId: "form-selector-label",
619
619
  id: "form-selector",
@@ -628,7 +628,7 @@ function Gt({
628
628
  }
629
629
  },
630
630
  children: [
631
- R == null ? void 0 : R.map((f) => /* @__PURE__ */ e(Tt, { value: f.code, children: f.name }, f.code)),
631
+ R == null ? void 0 : R.map((m) => /* @__PURE__ */ e(Tt, { value: m.code, children: m.name }, m.code)),
632
632
  (R == null ? void 0 : R.length) === 0 && /* @__PURE__ */ e(Tt, { disabled: !0, children: "No Forms Available" })
633
633
  ]
634
634
  }
@@ -636,8 +636,8 @@ function Gt({
636
636
  ] })
637
637
  ]
638
638
  }
639
- ) : u === "programs" ? /* @__PURE__ */ e(Ze, { children: T && T.length > 0 ? /* @__PURE__ */ e(De, { items: T.map((f) => f.instanceId), strategy: Ue, children: /* @__PURE__ */ e(ye, { container: !0, spacing: 1, sx: { width: "100%", m: 0 }, children: T.map((f) => Be(f)) }) }) : /* @__PURE__ */ e(S, { variant: "body2", color: "textSecondary", sx: { mt: 5, textAlign: "center" }, children: ae ? "Drop features here (Groups are not allowed)." : "Drag features directly onto the screen." }) }) : /* @__PURE__ */ p(Ze, { children: [
640
- j && /* @__PURE__ */ e(Un, { id: j.id, componentType: d.SEARCH_BAR, children: /* @__PURE__ */ e(
639
+ ) : u === "programs" ? /* @__PURE__ */ e(Ze, { children: T && T.length > 0 ? /* @__PURE__ */ e(De, { items: T.map((m) => m.instanceId), strategy: Ue, children: /* @__PURE__ */ e(ye, { container: !0, spacing: 1, sx: { width: "100%", m: 0 }, children: T.map((m) => Be(m)) }) }) : /* @__PURE__ */ e(v, { variant: "body2", color: "textSecondary", sx: { mt: 5, textAlign: "center" }, children: ae ? "Drop features here (Groups are not allowed)." : "Drag features directly onto the screen." }) }) : /* @__PURE__ */ p(Ze, { children: [
640
+ j && /* @__PURE__ */ e(Dr, { id: j.id, componentType: d.SEARCH_BAR, children: /* @__PURE__ */ e(
641
641
  it,
642
642
  {
643
643
  id: j.id,
@@ -645,51 +645,51 @@ function Gt({
645
645
  handleSectionClick: b
646
646
  }
647
647
  ) }),
648
- be.map((f, G) => Te(f, G)),
649
- c.length === 0 && /* @__PURE__ */ e(S, { variant: "body2", color: "textSecondary", sx: { mt: 5, textAlign: "center" }, children: "Drag components here to build the layout." })
648
+ be.map((m, G) => Te(m, G)),
649
+ c.length === 0 && /* @__PURE__ */ e(v, { variant: "body2", color: "textSecondary", sx: { mt: 5, textAlign: "center" }, children: "Drag components here to build the layout." })
650
650
  ] })
651
651
  }
652
652
  ),
653
- P.groupData && P.anchorEl && /* @__PURE__ */ e("div", { onPointerDown: (f) => f.stopPropagation(), children: /* @__PURE__ */ e(Nt, { onDragEnd: ze, children: /* @__PURE__ */ e(
653
+ P.groupData && P.anchorEl && /* @__PURE__ */ e("div", { onPointerDown: (m) => m.stopPropagation(), children: /* @__PURE__ */ e(Nt, { onDragEnd: He, children: /* @__PURE__ */ e(
654
654
  Bt,
655
655
  {
656
656
  groupData: P.groupData,
657
657
  anchorEl: P.anchorEl,
658
- onClose: Se,
658
+ onClose: ve,
659
659
  SvgIconBox: ee,
660
660
  handleFeatureClick: Ae
661
661
  }
662
662
  ) }) }),
663
663
  /* @__PURE__ */ p("div", { className: "bottom-nav-v2", children: [
664
- /* @__PURE__ */ e("div", { className: "nav-bar-v2", children: A.map((f) => /* @__PURE__ */ e(dn, { title: f.label, placement: "bottom", arrow: !0, children: /* @__PURE__ */ e(
664
+ /* @__PURE__ */ e("div", { className: "nav-bar-v2", children: A.map((m) => /* @__PURE__ */ e(cr, { title: m.label, placement: "bottom", arrow: !0, children: /* @__PURE__ */ e(
665
665
  "div",
666
666
  {
667
- className: `nav-item-v2 ${u === f.id ? "active-v2" : ""}`,
667
+ className: `nav-item-v2 ${u === m.id ? "active-v2" : ""}`,
668
668
  role: "button",
669
- "aria-label": f.label,
670
- onClick: () => y(f.id),
671
- children: /* @__PURE__ */ e("img", { src: f.icon, alt: f.alt })
669
+ "aria-label": m.label,
670
+ onClick: () => y(m.id),
671
+ children: /* @__PURE__ */ e("img", { src: m.icon, alt: m.alt })
672
672
  },
673
- f.id
674
- ) }, f.id)) }),
673
+ m.id
674
+ ) }, m.id)) }),
675
675
  /* @__PURE__ */ e("div", { className: "home-indicator-v2" })
676
676
  ] })
677
677
  ] });
678
678
  }
679
679
  Gt.propTypes = {
680
- tabStatus: m.any.isRequired,
681
- layoutComponents: m.any,
682
- componentTypes: m.any,
683
- handleSectionClick: m.any,
684
- activeElementId: m.any,
685
- activeTabId: m.any,
686
- handleTabSwitch: m.any,
687
- formList: m.any,
688
- selectedForm: m.any,
689
- onFormSelect: m.any,
690
- SvgIconBox: m.any,
691
- setCurrentLayoutComponents: m.any,
692
- programFeatures: m.any
680
+ tabStatus: h.any.isRequired,
681
+ layoutComponents: h.any,
682
+ componentTypes: h.any,
683
+ handleSectionClick: h.any,
684
+ activeElementId: h.any,
685
+ activeTabId: h.any,
686
+ handleTabSwitch: h.any,
687
+ formList: h.any,
688
+ selectedForm: h.any,
689
+ onFormSelect: h.any,
690
+ SvgIconBox: h.any,
691
+ setCurrentLayoutComponents: h.any,
692
+ programFeatures: h.any
693
693
  };
694
694
  const Dt = (o) => {
695
695
  const c = o.split(" ");
@@ -720,7 +720,7 @@ const Dt = (o) => {
720
720
  {
721
721
  sx: {
722
722
  fontSize: "1.2rem",
723
- color: "#b0bec5",
723
+ color: "var(--color-gray3)",
724
724
  border: "1px solid",
725
725
  borderRadius: "50%",
726
726
  height: "36px",
@@ -749,7 +749,7 @@ const Dt = (o) => {
749
749
  p: 2,
750
750
  borderRadius: "12px",
751
751
  boxShadow: "0 8px 30px rgba(0,0,0,0.25)",
752
- backgroundColor: "#f9f9f9",
752
+ backgroundColor: "var(--color-gray4)",
753
753
  zIndex: 1500,
754
754
  maxHeight: "400px",
755
755
  overflowY: "auto",
@@ -757,8 +757,8 @@ const Dt = (o) => {
757
757
  },
758
758
  children: [
759
759
  /* @__PURE__ */ p(U, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center", mb: 1 }, children: [
760
- /* @__PURE__ */ e(S, { variant: "h6", sx: { color: "#073149", fontWeight: "bold", fontSize: "1rem" }, children: o.name }),
761
- /* @__PURE__ */ e(un, { onClick: d, size: "small", sx: { color: "#073149", p: 0.5 }, children: /* @__PURE__ */ e(W, { icon: Tn }) })
760
+ /* @__PURE__ */ e(v, { variant: "h6", sx: { color: "var(--color-text)", fontWeight: "bold", fontSize: "1rem" }, children: o.name }),
761
+ /* @__PURE__ */ e(dr, { onClick: d, size: "small", sx: { color: "var(--color-text)", p: 0.5 }, children: /* @__PURE__ */ e(z, { icon: Ar }) })
762
762
  ] }),
763
763
  /* @__PURE__ */ e(ot, {}),
764
764
  u.length > 0 ? /* @__PURE__ */ e(De, { items: u.map((R) => R.uuid || R.instanceId), strategy: Ue, children: /* @__PURE__ */ e(ye, { container: !0, spacing: 1, children: u.map((R) => /* @__PURE__ */ e(
@@ -769,21 +769,21 @@ const Dt = (o) => {
769
769
  handleFeatureClick: E
770
770
  },
771
771
  R.uuid || R.instanceId
772
- )) }) }) : /* @__PURE__ */ e(S, { variant: "body2", color: "textSecondary", sx: { fontStyle: "italic", p: 1 }, children: "This menu is empty." })
772
+ )) }) }) : /* @__PURE__ */ e(v, { variant: "body2", color: "textSecondary", sx: { fontStyle: "italic", p: 1 }, children: "This menu is empty." })
773
773
  ]
774
774
  }
775
775
  );
776
776
  };
777
777
  Bt.propTypes = {
778
- groupData: m.any,
779
- anchorEl: m.any,
780
- onClose: m.any,
781
- SvgIconBox: m.any,
782
- handleFeatureClick: m.any
778
+ groupData: h.any,
779
+ anchorEl: h.any,
780
+ onClose: h.any,
781
+ SvgIconBox: h.any,
782
+ handleFeatureClick: h.any
783
783
  };
784
- function cr() {
785
- var ht, gt;
786
- const o = yn(), c = o.state, d = Fe(() => new URLSearchParams(o.search), [o.search]), b = bn(), [E, u] = k([]), [y, R] = k(!1), [F, Q] = k([]), [ee, de] = k([]), [T, te] = k({}), [M, ne] = k([]), [ae, ue] = k(!0), [A, j] = k(!0), [be, P] = k(!1), { user: se } = xn((t) => t.Authenticate), $ = gn({
784
+ function cn() {
785
+ var gt, ft;
786
+ const o = xr(), c = o.state, d = Fe(() => new URLSearchParams(o.search), [o.search]), b = yr(), [E, u] = _([]), [y, R] = _(!1), [F, Q] = _([]), [ee, de] = _([]), [T, te] = _({}), [M, re] = _([]), [ae, ue] = _(!0), [A, j] = _(!0), [be, P] = _(!1), { user: se } = fr((t) => t.Authenticate), $ = gr({
787
787
  defaultValues: {
788
788
  role: "",
789
789
  isAttendanceRequired: !1
@@ -791,18 +791,18 @@ function cr() {
791
791
  mode: "onChange"
792
792
  });
793
793
  Ke(() => {
794
- (async () => (await ze(), await Se(), await Be(), d.get("id") && (c != null && c.mobileMenuList) ? (R(!0), $.setValue("role", c.roleId), await Ae(c.roleId)) : R(!1)))();
794
+ (async () => (await He(), await ve(), await Be(), d.get("id") && (c != null && c.mobileMenuList) ? (R(!0), $.setValue("role", c.roleId), await Ae(c.roleId)) : R(!1)))();
795
795
  }, []), Ke(() => {
796
796
  var t;
797
797
  if (Object.keys(T).length > 0 && d.get("id") && (c != null && c.mobileMenuList)) {
798
- const { appConfiguration: n, tabStatus: r, selectedForm: a, isAttendanceRequired: i } = q(
798
+ const { appConfiguration: r, tabStatus: n, selectedForm: a, isAttendanceRequired: i } = q(
799
799
  (t = c == null ? void 0 : c.mobileMenuList) == null ? void 0 : t.configJson
800
800
  );
801
- J(n), Ie(r), ct(a), $.setValue("isAttendanceRequired", i);
801
+ J(r), Ce(n), ct(a), $.setValue("isAttendanceRequired", i);
802
802
  }
803
803
  }, [T]);
804
- const Se = async () => {
805
- const r = (await ve({
804
+ const ve = async () => {
805
+ const n = (await Ie({
806
806
  code: "medplat_form_get_all_form_details",
807
807
  parameters: {}
808
808
  })).data.result.map((a, i) => ({
@@ -811,16 +811,16 @@ function cr() {
811
811
  code: a.form_code,
812
812
  uuid: a.uuid || `temp-uuid-${i}`
813
813
  }));
814
- Q(r);
814
+ Q(n);
815
815
  }, Be = async () => {
816
- const n = (await ve({
816
+ const r = (await Ie({
817
817
  code: "get_all_mobile_query",
818
818
  parameters: {}
819
819
  })).data.result;
820
- de(n);
821
- }, ze = async () => {
820
+ de(r);
821
+ }, He = async () => {
822
822
  try {
823
- const t = (await ve({
823
+ const t = (await Ie({
824
824
  code: "RETRIEVE_MENU_CONFIG_ROLE_V2"
825
825
  })).data;
826
826
  t.result && u(t.result);
@@ -833,46 +833,46 @@ function cr() {
833
833
  }, Ae = async (t) => {
834
834
  if (t)
835
835
  try {
836
- const n = (await ve({
836
+ const r = (await Ie({
837
837
  code: "fetch_linked_menus_by_role_id",
838
838
  parameters: {
839
839
  id: t
840
840
  }
841
841
  })).data;
842
- n.result && H(n.result);
843
- } catch (n) {
842
+ r.result && W(r.result);
843
+ } catch (r) {
844
844
  ie({
845
- message: n,
845
+ message: r,
846
846
  type: "error"
847
847
  });
848
848
  }
849
- }, Te = (t, n, r) => {
850
- const a = n[t];
849
+ }, Te = (t, r, n) => {
850
+ const a = r[t];
851
851
  if (a) return a;
852
- const i = r.find((s) => s.type === "GROUP" && s.id === t);
852
+ const i = n.find((s) => s.type === "GROUP" && s.id === t);
853
853
  return i || null;
854
- }, f = (t, n, r, a) => {
855
- const i = Te(t.id, r, a);
854
+ }, m = (t, r, n, a) => {
855
+ const i = Te(t.id, n, a);
856
856
  if (!i) return null;
857
- const s = ge();
857
+ const s = fe();
858
858
  if (i.type === "GROUP") {
859
- const l = t.menus.map((C) => {
860
- const Z = Te(C.id, r, a);
859
+ const l = t.menus.map((S) => {
860
+ const Z = Te(S.id, n, a);
861
861
  return Z ? {
862
862
  ...Z,
863
- uuid: ge(),
863
+ uuid: fe(),
864
864
  isGroupMember: !0,
865
865
  groupId: t.id
866
866
  } : null;
867
- }).filter((C) => C !== null);
867
+ }).filter((S) => S !== null);
868
868
  return l.length === 0 ? null : {
869
869
  ...i,
870
870
  id: s,
871
- instanceId: `${n}_GROUP_${s}`,
871
+ instanceId: `${r}_GROUP_${s}`,
872
872
  menus: l
873
873
  };
874
874
  } else if (i.type === "FEATURE") {
875
- const l = n === "PROGRAMS_ROOT" ? n : `${n}_${i.id}`;
875
+ const l = r === "PROGRAMS_ROOT" ? r : `${r}_${i.id}`;
876
876
  return {
877
877
  ...i,
878
878
  id: i.id,
@@ -881,57 +881,57 @@ function cr() {
881
881
  };
882
882
  }
883
883
  return null;
884
- }, G = (t, n, r, a) => {
884
+ }, G = (t, r, n, a) => {
885
885
  if (!t || !Array.isArray(t)) return [];
886
886
  if (t.every((i) => i.id && !i.type && !i.features)) {
887
- const i = n === "programs" ? "PROGRAMS_ROOT" : n;
888
- return t.map((s) => f(s, i, r, a)).filter((s) => s !== null);
887
+ const i = r === "programs" ? "PROGRAMS_ROOT" : r;
888
+ return t.map((s) => m(s, i, n, a)).filter((s) => s !== null);
889
889
  }
890
890
  return t.map((i) => {
891
- const s = ge();
891
+ const s = fe();
892
892
  if (i.type === "SEARCH_BAR")
893
893
  return { ...i, id: s };
894
894
  if (i.type === "SECTION") {
895
- const l = `comp-${s}`, C = i.features.map((Z) => f(Z, l, r, a)).filter((Z) => Z !== null);
896
- return { type: i.type, title: i.title, id: l, features: C };
895
+ const l = `comp-${s}`, S = i.features.map((Z) => m(Z, l, n, a)).filter((Z) => Z !== null);
896
+ return { type: i.type, title: i.title, id: l, features: S };
897
897
  }
898
898
  return null;
899
899
  }).filter((i) => i !== null);
900
900
  }, q = (t) => {
901
901
  var s;
902
- const n = {}, r = {};
902
+ const r = {}, n = {};
903
903
  let a = null;
904
904
  const i = ((s = t == null ? void 0 : t.isAttendanceRequired) == null ? void 0 : s.value) || !1;
905
905
  for (const l in t) {
906
- const C = t[l];
907
- if (r[l] = C.active, C.active)
908
- if (l === "home" && C.layout)
909
- n[l] = G(C.layout, l, T, M);
910
- else if (l === "programs" && (C != null && C.features)) {
911
- const Z = G(C.features, l, T, M);
912
- n[l] = {
906
+ const S = t[l];
907
+ if (n[l] = S.active, S.active)
908
+ if (l === "home" && S.layout)
909
+ r[l] = G(S.layout, l, T, M);
910
+ else if (l === "programs" && (S != null && S.features)) {
911
+ const Z = G(S.features, l, T, M);
912
+ r[l] = {
913
913
  features: Z
914
914
  };
915
- } else C != null && C.features ? n[l] = G(C == null ? void 0 : C.features, l, T, M) : l === "familyManagement" && C.formCode && (a = {
916
- formName: `Form for ${C.formCode}`,
917
- code: C.formCode,
918
- formUuid: ge()
915
+ } else S != null && S.features ? r[l] = G(S == null ? void 0 : S.features, l, T, M) : l === "familyManagement" && S.formCode && (a = {
916
+ formName: `Form for ${S.formCode}`,
917
+ code: S.formCode,
918
+ formUuid: fe()
919
919
  });
920
920
  else
921
- l === "programs" ? n[l] = { features: [] } : n[l] = [];
921
+ l === "programs" ? r[l] = { features: [] } : r[l] = [];
922
922
  }
923
923
  return {
924
- appConfiguration: n,
925
- tabStatus: r,
924
+ appConfiguration: r,
925
+ tabStatus: n,
926
926
  selectedForm: a,
927
927
  isAttendanceRequired: i
928
928
  };
929
- }, H = (t) => {
930
- const n = [], r = {};
929
+ }, W = (t) => {
930
+ const r = [], n = {};
931
931
  t.forEach((a) => {
932
932
  const s = JSON.parse(a.menus || "[]").map((l) => {
933
- const C = {
934
- uuid: ge(),
933
+ const S = {
934
+ uuid: fe(),
935
935
  id: l.id ? parseInt(l.id) : null,
936
936
  name: l.name || "",
937
937
  icon: l.icon || "",
@@ -939,21 +939,21 @@ function cr() {
939
939
  isGroupMember: a.id != null,
940
940
  groupId: a.id || null
941
941
  };
942
- return r[C.id] = C, C;
942
+ return n[S.id] = S, S;
943
943
  });
944
- a.id != null ? n.push({
945
- uuid: ge(),
944
+ a.id != null ? r.push({
945
+ uuid: fe(),
946
946
  id: a.id,
947
947
  name: a.name,
948
948
  icon: a.icon || "",
949
949
  type: "GROUP",
950
950
  menus: s
951
- }) : n.push(...s);
952
- }), te(r), ne(n);
951
+ }) : r.push(...s);
952
+ }), te(n), re(r);
953
953
  }, L = (t) => {
954
- var n, r;
954
+ var r, n;
955
955
  if (t.type === "GROUP") {
956
- const a = (r = (n = t.menus) == null ? void 0 : n[0]) == null ? void 0 : r.groupId;
956
+ const a = (n = (r = t.menus) == null ? void 0 : r[0]) == null ? void 0 : n.groupId;
957
957
  return a ? {
958
958
  id: a,
959
959
  menus: t.menus.map((i) => ({
@@ -965,54 +965,54 @@ function cr() {
965
965
  id: t.id
966
966
  };
967
967
  return null;
968
- }, Ce = (t) => !t || !Array.isArray(t) ? [] : t.map((n) => {
969
- if (n.type === "SEARCH_BAR")
968
+ }, Se = (t) => !t || !Array.isArray(t) ? [] : t.map((r) => {
969
+ if (r.type === "SEARCH_BAR")
970
970
  return {
971
- type: n.type,
972
- queryName: n.queryName
971
+ type: r.type,
972
+ queryName: r.queryName
973
973
  };
974
- if (n.type === "SECTION") {
975
- const r = n == null ? void 0 : n.features.map(L).filter((a) => a !== null);
974
+ if (r.type === "SECTION") {
975
+ const n = r == null ? void 0 : r.features.map(L).filter((a) => a !== null);
976
976
  return {
977
- type: n.type,
978
- title: n.title,
979
- features: r
977
+ type: r.type,
978
+ title: r.title,
979
+ features: n
980
980
  };
981
981
  }
982
982
  return null;
983
- }).filter((n) => n !== null), lt = () => {
983
+ }).filter((r) => r !== null), lt = () => {
984
984
  const t = {
985
985
  isAttendanceRequired: { value: $.getValues("isAttendanceRequired") }
986
986
  };
987
- return B.forEach((n) => {
987
+ return B.forEach((r) => {
988
988
  var s;
989
- const r = n.id, a = fe[r], i = {
989
+ const n = r.id, a = me[n], i = {
990
990
  active: a
991
991
  };
992
992
  if (a) {
993
- if (r === "familyManagement" && We)
994
- i.formCode = We.code;
995
- else if (r === "home") {
996
- const l = he[r] || [];
997
- i.layout = Ce(l);
998
- } else if (r === "programs") {
999
- const l = ((s = he[r]) == null ? void 0 : s.features) || [];
1000
- l.length > 0 && (i.features = l.map(L).filter((C) => C !== null));
1001
- } else if (r !== "analytics") {
1002
- const l = he[r] || [];
1003
- Array.isArray(l) && (i.features = l.map(L).filter((C) => C !== null));
993
+ if (n === "familyManagement" && ze)
994
+ i.formCode = ze.code;
995
+ else if (n === "home") {
996
+ const l = ge[n] || [];
997
+ i.layout = Se(l);
998
+ } else if (n === "programs") {
999
+ const l = ((s = ge[n]) == null ? void 0 : s.features) || [];
1000
+ l.length > 0 && (i.features = l.map(L).filter((S) => S !== null));
1001
+ } else if (n !== "analytics") {
1002
+ const l = ge[n] || [];
1003
+ Array.isArray(l) && (i.features = l.map(L).filter((S) => S !== null));
1004
1004
  }
1005
1005
  }
1006
- t[r] = i;
1006
+ t[n] = i;
1007
1007
  }), t;
1008
1008
  }, pe = async (t) => {
1009
- const n = lt(), r = JSON.stringify(n), a = {
1009
+ const r = lt(), n = JSON.stringify(r), a = {
1010
1010
  roleId: t.role,
1011
1011
  userId: se == null ? void 0 : se.id,
1012
- config_json: r
1012
+ config_json: n
1013
1013
  };
1014
1014
  try {
1015
- (await ve({
1015
+ (await Ie({
1016
1016
  code: "save_mobile_menu_role_relation",
1017
1017
  parameters: a
1018
1018
  })).data.result && (ie({
@@ -1030,22 +1030,22 @@ function cr() {
1030
1030
  { id: "programs", name: "Programs" },
1031
1031
  { id: "analytics", name: "Analytics" },
1032
1032
  { id: "familyManagement", name: "Family Management" }
1033
- ], [fe, Ie] = k({
1033
+ ], [me, Ce] = _({
1034
1034
  home: !0,
1035
1035
  programs: !0,
1036
1036
  analytics: !0,
1037
1037
  familyManagement: !0
1038
1038
  }), Y = (t) => {
1039
- Ie((n) => {
1040
- const r = {
1041
- ...n,
1042
- [t]: !n[t]
1039
+ Ce((r) => {
1040
+ const n = {
1041
+ ...r,
1042
+ [t]: !r[t]
1043
1043
  };
1044
- if (t === z && !r[t]) {
1045
- const i = B.find((s) => s.id !== t && r[s.id] === !0);
1046
- i ? Oe(i.id) : r.home ? Oe("home") : Oe(B[0].id);
1044
+ if (t === H && !n[t]) {
1045
+ const i = B.find((s) => s.id !== t && n[s.id] === !0);
1046
+ i ? Oe(i.id) : n.home ? Oe("home") : Oe(B[0].id);
1047
1047
  }
1048
- return r;
1048
+ return n;
1049
1049
  });
1050
1050
  }, w = {
1051
1051
  SEARCH_BAR: "SEARCH_BAR",
@@ -1053,197 +1053,197 @@ function cr() {
1053
1053
  FEATURE: "FEATURE",
1054
1054
  SECTION_DROP_ZONE: "SECTION_DROP_ZONE",
1055
1055
  GROUP: "GROUP"
1056
- }, [We, ct] = k(null), Ht = (t) => {
1057
- const n = t.target.value, r = F.find((a) => a.code === n);
1058
- ct(r);
1059
- }, [me, He] = k(null), [dt, ut] = k(null), [z, Oe] = k("home"), [he, J] = k(() => {
1056
+ }, [ze, ct] = _(null), Wt = (t) => {
1057
+ const r = t.target.value, n = F.find((a) => a.code === r);
1058
+ ct(n);
1059
+ }, [he, We] = _(null), [dt, ut] = _(null), [H, Oe] = _("home"), [ge, J] = _(() => {
1060
1060
  const t = {};
1061
- return B.forEach((n) => {
1062
- t[n.id] = [];
1061
+ return B.forEach((r) => {
1062
+ t[r.id] = [];
1063
1063
  }), t;
1064
- }), [Le, Lt] = k(""), [jt, $t] = k(null), le = ((ht = he.programs) == null ? void 0 : ht.features) || [], qt = (t) => {
1065
- $t((n) => n === t ? null : t);
1066
- }, pt = he[z], re = Array.isArray(pt) ? pt : [], je = Fe(() => {
1064
+ }), [Le, Lt] = _(""), [jt, $t] = _(null), le = ((gt = ge.programs) == null ? void 0 : gt.features) || [], qt = (t) => {
1065
+ $t((r) => r === t ? null : t);
1066
+ }, pt = ge[H], ne = Array.isArray(pt) ? pt : [], je = Fe(() => {
1067
1067
  const t = Le.toLowerCase();
1068
- return M.map((n) => {
1069
- if (n.type === "GROUP") {
1070
- const r = n.menus.filter((a) => a.name.toLowerCase().includes(t));
1071
- return n.name.toLowerCase().includes(t) || r.length > 0 ? { ...n, menus: r } : null;
1068
+ return M.map((r) => {
1069
+ if (r.type === "GROUP") {
1070
+ const n = r.menus.filter((a) => a.name.toLowerCase().includes(t));
1071
+ return r.name.toLowerCase().includes(t) || n.length > 0 ? { ...r, menus: n } : null;
1072
1072
  }
1073
- return n.name.toLowerCase().includes(t) ? n : null;
1073
+ return r.name.toLowerCase().includes(t) ? r : null;
1074
1074
  }).filter(Boolean);
1075
1075
  }, [M, Le]), { separatedGroups: Ne, separatedFeatures: Me } = Fe(() => {
1076
- const t = je.filter((r) => r.type === "GROUP"), n = je.filter((r) => r.type !== "GROUP");
1077
- return { separatedGroups: t, separatedFeatures: n };
1076
+ const t = je.filter((n) => n.type === "GROUP"), r = je.filter((n) => n.type !== "GROUP");
1077
+ return { separatedGroups: t, separatedFeatures: r };
1078
1078
  }, [je]), oe = Re(
1079
1079
  (t) => {
1080
- J((n) => ({
1081
- ...n,
1082
- [z]: typeof t == "function" ? t(n[z] || []) : t
1080
+ J((r) => ({
1081
+ ...r,
1082
+ [H]: typeof t == "function" ? t(r[H] || []) : t
1083
1083
  }));
1084
1084
  },
1085
- [z]
1085
+ [H]
1086
1086
  ), Zt = Re((t) => {
1087
1087
  Oe(t);
1088
- }, []), Vt = (t, n, r) => {
1089
- oe((a) => a.map((i) => i.id === t ? { ...i, [n]: r } : i));
1088
+ }, []), Vt = (t, r, n) => {
1089
+ oe((a) => a.map((i) => i.id === t ? { ...i, [r]: n } : i));
1090
1090
  }, Qt = (t) => {
1091
- He(t.active.id);
1091
+ We(t.active.id);
1092
1092
  }, Yt = Re(
1093
1093
  (t) => {
1094
- var C, Z, xt, yt, bt, St, Ct, It, vt, Rt, wt, Et;
1095
- const { active: n, over: r } = t;
1096
- if (!n || !n.data.current) {
1097
- He(null);
1094
+ var S, Z, xt, yt, bt, vt, St, Ct, It, Rt, wt, Et;
1095
+ const { active: r, over: n } = t;
1096
+ if (!r || !r.data.current) {
1097
+ We(null);
1098
1098
  return;
1099
1099
  }
1100
- const a = (C = r == null ? void 0 : r.data.current) == null ? void 0 : C.type, i = (Z = r == null ? void 0 : r.data.current) == null ? void 0 : Z.sectionId, s = (xt = n.data.current) == null ? void 0 : xt.sectionId, l = (yt = n.data.current) == null ? void 0 : yt.type;
1101
- if (He(null), !r && z === "programs" && l === w.FEATURE) {
1102
- const g = n.data.current.data;
1103
- if (!g) return;
1104
- J((h) => {
1105
- const x = h.programs || {}, I = (x == null ? void 0 : x.features) || [], O = {
1106
- id: g.id,
1107
- name: g.name,
1108
- instanceId: `PROGRAMS_ROOT_${g.id}_${crypto.randomUUID()}`,
1100
+ const a = (S = n == null ? void 0 : n.data.current) == null ? void 0 : S.type, i = (Z = n == null ? void 0 : n.data.current) == null ? void 0 : Z.sectionId, s = (xt = r.data.current) == null ? void 0 : xt.sectionId, l = (yt = r.data.current) == null ? void 0 : yt.type;
1101
+ if (We(null), !n && H === "programs" && l === w.FEATURE) {
1102
+ const f = r.data.current.data;
1103
+ if (!f) return;
1104
+ J((g) => {
1105
+ const x = g.programs || {}, C = (x == null ? void 0 : x.features) || [], O = {
1106
+ id: f.id,
1107
+ name: f.name,
1108
+ instanceId: `PROGRAMS_ROOT_${f.id}_${crypto.randomUUID()}`,
1109
1109
  type: "FEATURE",
1110
1110
  icon: {
1111
- id: `svg-icon-${g.id}`,
1112
- content: g.icon,
1111
+ id: `svg-icon-${f.id}`,
1112
+ content: f.icon,
1113
1113
  type: "svg"
1114
1114
  }
1115
1115
  };
1116
1116
  return {
1117
- ...h,
1117
+ ...g,
1118
1118
  programs: {
1119
1119
  ...x,
1120
- features: [...I, O]
1120
+ features: [...C, O]
1121
1121
  }
1122
1122
  };
1123
1123
  });
1124
1124
  return;
1125
1125
  }
1126
- if ((r == null ? void 0 : r.id) === "trash-zone") {
1127
- const g = n.id, h = n.data.current.sectionId;
1128
- l === "FEATURE_TILE" ? h ? oe(
1129
- (x) => x.map((I) => {
1130
- if (I.id === h && (I != null && I.features)) {
1131
- const O = I == null ? void 0 : I.features.filter((_) => _.instanceId !== g);
1132
- return { ...I, features: O };
1126
+ if ((n == null ? void 0 : n.id) === "trash-zone") {
1127
+ const f = r.id, g = r.data.current.sectionId;
1128
+ l === "FEATURE_TILE" ? g ? oe(
1129
+ (x) => x.map((C) => {
1130
+ if (C.id === g && (C != null && C.features)) {
1131
+ const O = C == null ? void 0 : C.features.filter((k) => k.instanceId !== f);
1132
+ return { ...C, features: O };
1133
1133
  }
1134
- return I;
1134
+ return C;
1135
1135
  })
1136
- ) : z === "programs" && J((x) => {
1137
- const I = x.programs || {}, _ = ((I == null ? void 0 : I.features) || []).filter((D) => D.instanceId !== g);
1136
+ ) : H === "programs" && J((x) => {
1137
+ const C = x.programs || {}, k = ((C == null ? void 0 : C.features) || []).filter((D) => D.instanceId !== f);
1138
1138
  return {
1139
1139
  ...x,
1140
1140
  programs: {
1141
- ...I,
1142
- features: _
1141
+ ...C,
1142
+ features: k
1143
1143
  }
1144
1144
  };
1145
- }) : (l === w.SECTION || l === w.SEARCH_BAR) && oe((x) => x.filter((I) => I.id !== n.id));
1145
+ }) : (l === w.SECTION || l === w.SEARCH_BAR) && oe((x) => x.filter((C) => C.id !== r.id));
1146
1146
  return;
1147
1147
  }
1148
1148
  if (l === "FEATURE_TILE" && a === "FEATURE_TILE") {
1149
- if (!s && z === "programs") {
1150
- J((g) => {
1151
- const h = g.programs || {}, x = (h == null ? void 0 : h.features) || [], I = x.findIndex((D) => D.instanceId === n.id), O = x.findIndex((D) => D.instanceId === r.id);
1152
- if (I === -1 || O === -1)
1153
- return g;
1154
- const _ = Pe(x, I, O);
1149
+ if (!s && H === "programs") {
1150
+ J((f) => {
1151
+ const g = f.programs || {}, x = (g == null ? void 0 : g.features) || [], C = x.findIndex((D) => D.instanceId === r.id), O = x.findIndex((D) => D.instanceId === n.id);
1152
+ if (C === -1 || O === -1)
1153
+ return f;
1154
+ const k = Pe(x, C, O);
1155
1155
  return {
1156
- ...g,
1156
+ ...f,
1157
1157
  programs: {
1158
- ...h,
1159
- features: _
1158
+ ...g,
1159
+ features: k
1160
1160
  }
1161
1161
  };
1162
1162
  });
1163
1163
  return;
1164
1164
  }
1165
- s === i && n.id !== r.id && oe(
1166
- (g) => g.map((h) => {
1167
- if (h.id === s) {
1168
- const x = h == null ? void 0 : h.features, I = x.findIndex((D) => D.instanceId === n.id), O = x.findIndex((D) => D.instanceId === r.id);
1169
- if (I === -1 || O === -1) return h;
1170
- const _ = Pe(x, I, O);
1171
- return { ...h, features: _ };
1165
+ s === i && r.id !== n.id && oe(
1166
+ (f) => f.map((g) => {
1167
+ if (g.id === s) {
1168
+ const x = g == null ? void 0 : g.features, C = x.findIndex((D) => D.instanceId === r.id), O = x.findIndex((D) => D.instanceId === n.id);
1169
+ if (C === -1 || O === -1) return g;
1170
+ const k = Pe(x, C, O);
1171
+ return { ...g, features: k };
1172
1172
  }
1173
- return h;
1173
+ return g;
1174
1174
  })
1175
1175
  );
1176
1176
  return;
1177
1177
  }
1178
1178
  if (l === w.GROUP && a === w.SECTION_DROP_ZONE) {
1179
- const g = n.data.current.data, h = (bt = r == null ? void 0 : r.data.current) == null ? void 0 : bt.sectionId;
1180
- g && h && J((x) => {
1181
- const I = x[z] || [], O = I.findIndex((ke) => ke.id === h);
1179
+ const f = r.data.current.data, g = (bt = n == null ? void 0 : n.data.current) == null ? void 0 : bt.sectionId;
1180
+ f && g && J((x) => {
1181
+ const C = x[H] || [], O = C.findIndex((_e) => _e.id === g);
1182
1182
  if (O === -1) return x;
1183
- const _ = I[O], D = String(g.uuid);
1184
- if (_ == null ? void 0 : _.features.some((ke) => ke.type === "GROUP" && String(ke.uuid) === D))
1183
+ const k = C[O], D = String(f.uuid);
1184
+ if (k == null ? void 0 : k.features.some((_e) => _e.type === "GROUP" && String(_e.uuid) === D))
1185
1185
  return ie({
1186
1186
  type: "warn",
1187
- message: `Group ${g.name} is already in this section.`
1187
+ message: `Group ${f.name} is already in this section.`
1188
1188
  }), x;
1189
1189
  const qe = {
1190
- id: g.uuid,
1191
- name: g.name,
1192
- instanceId: `${h}_GROUP_${g.uuid}_${crypto.randomUUID()}`,
1190
+ id: f.uuid,
1191
+ name: f.name,
1192
+ instanceId: `${g}_GROUP_${f.uuid}_${crypto.randomUUID()}`,
1193
1193
  type: "GROUP",
1194
- menus: g.menus || [],
1195
- icon: g.icon
1196
- }, _e = {
1197
- ..._,
1198
- features: [..._.features, qe]
1199
- }, ce = [...I];
1200
- return ce[O] = _e, { ...x, [z]: ce };
1194
+ menus: f.menus || [],
1195
+ icon: f.icon
1196
+ }, ke = {
1197
+ ...k,
1198
+ features: [...k.features, qe]
1199
+ }, ce = [...C];
1200
+ return ce[O] = ke, { ...x, [H]: ce };
1201
1201
  });
1202
1202
  return;
1203
1203
  }
1204
1204
  if (l === w.FEATURE && a === w.SECTION_DROP_ZONE) {
1205
- const g = n.data.current.data, h = (St = r == null ? void 0 : r.data.current) == null ? void 0 : St.sectionId;
1206
- g && h && J((x) => {
1207
- const I = x[z] || [], O = I.findIndex((ce) => ce.id === h);
1205
+ const f = r.data.current.data, g = (vt = n == null ? void 0 : n.data.current) == null ? void 0 : vt.sectionId;
1206
+ f && g && J((x) => {
1207
+ const C = x[H] || [], O = C.findIndex((ce) => ce.id === g);
1208
1208
  if (O === -1) return x;
1209
- const _ = I[O];
1210
- if (_ == null ? void 0 : _.features.some((ce) => ce.id === g.id && ce.type === "FEATURE"))
1209
+ const k = C[O];
1210
+ if (k == null ? void 0 : k.features.some((ce) => ce.id === f.id && ce.type === "FEATURE"))
1211
1211
  return ie({
1212
1212
  type: "warn",
1213
- message: `Feature ${g.name} is already in this section.`
1213
+ message: `Feature ${f.name} is already in this section.`
1214
1214
  }), x;
1215
1215
  const V = {
1216
- id: g.id,
1217
- name: g.name,
1218
- instanceId: `${h}_${g.id}_${crypto.randomUUID()}`,
1216
+ id: f.id,
1217
+ name: f.name,
1218
+ instanceId: `${g}_${f.id}_${crypto.randomUUID()}`,
1219
1219
  type: "FEATURE",
1220
1220
  icon: {
1221
- id: `svg-icon-${g.id}`,
1222
- content: g.icon,
1221
+ id: `svg-icon-${f.id}`,
1222
+ content: f.icon,
1223
1223
  type: "svg"
1224
1224
  }
1225
1225
  }, qe = {
1226
- ..._,
1227
- features: [..._.features, V]
1228
- }, _e = [...I];
1229
- return _e[O] = qe, { ...x, [z]: _e };
1226
+ ...k,
1227
+ features: [...k.features, V]
1228
+ }, ke = [...C];
1229
+ return ke[O] = qe, { ...x, [H]: ke };
1230
1230
  });
1231
1231
  return;
1232
1232
  }
1233
- if (!((Ct = n.data.current) != null && Ct.sortable && !((It = r == null ? void 0 : r.data.current) != null && It.sortable) && (r == null ? void 0 : r.id) === "mobile-content")) {
1234
- if ((vt = r == null ? void 0 : r.data.current) != null && vt.sortable && ((Rt = n.data.current) == null ? void 0 : Rt.type) === w.SECTION && n.id !== r.id) {
1235
- oe((g) => {
1236
- const h = g.find((V) => V.type === w.SEARCH_BAR), x = g.filter((V) => V.type !== w.SEARCH_BAR), I = x.findIndex((V) => V.id === n.id), O = x.findIndex((V) => V.id === r.id);
1237
- if (I === -1 || O === -1)
1238
- return g;
1239
- let D = Pe(x, I, O);
1240
- return h && (D = [h, ...D]), D;
1233
+ if (!((St = r.data.current) != null && St.sortable && !((Ct = n == null ? void 0 : n.data.current) != null && Ct.sortable) && (n == null ? void 0 : n.id) === "mobile-content")) {
1234
+ if ((It = n == null ? void 0 : n.data.current) != null && It.sortable && ((Rt = r.data.current) == null ? void 0 : Rt.type) === w.SECTION && r.id !== n.id) {
1235
+ oe((f) => {
1236
+ const g = f.find((V) => V.type === w.SEARCH_BAR), x = f.filter((V) => V.type !== w.SEARCH_BAR), C = x.findIndex((V) => V.id === r.id), O = x.findIndex((V) => V.id === n.id);
1237
+ if (C === -1 || O === -1)
1238
+ return f;
1239
+ let D = Pe(x, C, O);
1240
+ return g && (D = [g, ...D]), D;
1241
1241
  });
1242
1242
  return;
1243
1243
  }
1244
- if ((r == null ? void 0 : r.id) === "mobile-content" && l) {
1245
- const g = (wt = r.data.current) == null ? void 0 : wt.type;
1246
- if (g === "PROGRAMS_ROOT_DROP_ZONE") {
1244
+ if ((n == null ? void 0 : n.id) === "mobile-content" && l) {
1245
+ const f = (wt = n.data.current) == null ? void 0 : wt.type;
1246
+ if (f === "PROGRAMS_ROOT_DROP_ZONE") {
1247
1247
  if (l === w.GROUP) {
1248
1248
  ie({
1249
1249
  type: "warn",
@@ -1252,8 +1252,8 @@ function cr() {
1252
1252
  return;
1253
1253
  }
1254
1254
  if (l === w.FEATURE) {
1255
- const h = n.data.current.data;
1256
- if (!h) return;
1255
+ const g = r.data.current.data;
1256
+ if (!g) return;
1257
1257
  J((x) => ({
1258
1258
  ...x,
1259
1259
  programs: {
@@ -1261,13 +1261,13 @@ function cr() {
1261
1261
  features: [
1262
1262
  ...x.programs.features,
1263
1263
  {
1264
- id: h.id,
1265
- name: h.name,
1266
- instanceId: `PROGRAMS_ROOT_${h.id}_${crypto.randomUUID()}`,
1264
+ id: g.id,
1265
+ name: g.name,
1266
+ instanceId: `PROGRAMS_ROOT_${g.id}_${crypto.randomUUID()}`,
1267
1267
  type: "FEATURE",
1268
1268
  icon: {
1269
- id: `svg-icon-${h.id}`,
1270
- content: h.icon,
1269
+ id: `svg-icon-${g.id}`,
1270
+ content: g.icon,
1271
1271
  type: "svg"
1272
1272
  }
1273
1273
  }
@@ -1277,19 +1277,19 @@ function cr() {
1277
1277
  return;
1278
1278
  }
1279
1279
  }
1280
- if ((Et = n.data.current) != null && Et.sortable && g === "LAYOUT_ROOT_DROP_ZONE")
1280
+ if ((Et = r.data.current) != null && Et.sortable && f === "LAYOUT_ROOT_DROP_ZONE")
1281
1281
  return;
1282
- if (g === "LAYOUT_ROOT_DROP_ZONE") {
1283
- oe((h) => {
1282
+ if (f === "LAYOUT_ROOT_DROP_ZONE") {
1283
+ oe((g) => {
1284
1284
  if (l === w.SEARCH_BAR)
1285
- return h.some((O) => O.type === w.SEARCH_BAR) ? (ie({
1285
+ return g.some((O) => O.type === w.SEARCH_BAR) ? (ie({
1286
1286
  type: "info",
1287
1287
  message: "Only one Search Bar is allowed."
1288
- }), h) : [{
1288
+ }), g) : [{
1289
1289
  id: `comp-${Date.now()}`,
1290
1290
  type: w.SEARCH_BAR,
1291
1291
  queryName: "Query Name"
1292
- }, ...h];
1292
+ }, ...g];
1293
1293
  if (l === w.SECTION) {
1294
1294
  const x = {
1295
1295
  id: `comp-${Date.now()}`,
@@ -1297,52 +1297,52 @@ function cr() {
1297
1297
  title: "Section",
1298
1298
  features: []
1299
1299
  };
1300
- return [...h, x];
1300
+ return [...g, x];
1301
1301
  }
1302
- return h;
1302
+ return g;
1303
1303
  });
1304
1304
  return;
1305
1305
  }
1306
1306
  }
1307
1307
  }
1308
1308
  },
1309
- [oe, J, z, w]
1310
- ), ft = "350px", Jt = () => /* @__PURE__ */ p(
1309
+ [oe, J, H, w]
1310
+ ), mt = "350px", Jt = () => /* @__PURE__ */ p(
1311
1311
  N,
1312
1312
  {
1313
1313
  sx: {
1314
- width: ft,
1314
+ width: mt,
1315
1315
  p: 1.5,
1316
1316
  border: "1px solid #ccc",
1317
1317
  borderRadius: "8px",
1318
- backgroundColor: "#fff",
1318
+ backgroundColor: "var(--color-background2)",
1319
1319
  display: "flex",
1320
1320
  alignItems: "center",
1321
1321
  boxShadow: "0 1px 10px rgba(0,0,0,0.3)"
1322
1322
  },
1323
1323
  children: [
1324
- /* @__PURE__ */ e(W, { icon: kt, style: { marginRight: "8px", color: "#888" } }),
1325
- /* @__PURE__ */ e(S, { variant: "body2", color: "textSecondary", sx: { flexGrow: 1 }, children: "Search..." })
1324
+ /* @__PURE__ */ e(z, { icon: _t, style: { marginRight: "8px", color: "#888" } }),
1325
+ /* @__PURE__ */ e(v, { variant: "body2", color: "textSecondary", sx: { flexGrow: 1 }, children: "Search..." })
1326
1326
  ]
1327
1327
  }
1328
1328
  ), Xt = () => /* @__PURE__ */ e(
1329
1329
  N,
1330
1330
  {
1331
1331
  sx: {
1332
- width: ft,
1332
+ width: mt,
1333
1333
  minHeight: "100px",
1334
1334
  backgroundColor: "#e6f0ff",
1335
- border: "1px dashed #073149",
1335
+ border: "1px dashed var(--color-tableHeader)",
1336
1336
  borderRadius: "4px",
1337
1337
  display: "flex",
1338
1338
  alignItems: "center",
1339
1339
  justifyContent: "center",
1340
1340
  boxShadow: "0 1px 10px rgba(0,0,0,0.3)",
1341
- color: "#073149"
1341
+ color: "var(--color-text)"
1342
1342
  },
1343
- children: /* @__PURE__ */ e(S, { variant: "caption", sx: { fontWeight: "bold" }, children: "Section Dragging" })
1343
+ children: /* @__PURE__ */ e(v, { variant: "caption", sx: { fontWeight: "bold" }, children: "Section Dragging" })
1344
1344
  }
1345
- ), $e = ({ feature: t }) => /* @__PURE__ */ e(v, { item: !0, xs: 4, sm: 4, children: /* @__PURE__ */ p(
1345
+ ), $e = ({ feature: t }) => /* @__PURE__ */ e(I, { item: !0, xs: 4, sm: 4, children: /* @__PURE__ */ p(
1346
1346
  N,
1347
1347
  {
1348
1348
  sx: {
@@ -1358,7 +1358,7 @@ function cr() {
1358
1358
  children: [
1359
1359
  Ee(t.icon),
1360
1360
  /* @__PURE__ */ e(
1361
- S,
1361
+ v,
1362
1362
  {
1363
1363
  variant: "caption",
1364
1364
  sx: {
@@ -1375,17 +1375,17 @@ function cr() {
1375
1375
  }
1376
1376
  ) });
1377
1377
  $e.propTypes = {
1378
- feature: m.any
1378
+ feature: h.any
1379
1379
  };
1380
- const mt = ({ feature: t }) => /* @__PURE__ */ p(
1380
+ const ht = ({ feature: t }) => /* @__PURE__ */ p(
1381
1381
  N,
1382
1382
  {
1383
1383
  sx: {
1384
1384
  width: "fit-content",
1385
1385
  p: "10px",
1386
1386
  pl: "10px",
1387
- backgroundColor: "#fff",
1388
- border: "1px solid #e0e0e0",
1387
+ backgroundColor: "var(--color-background2)",
1388
+ border: "1px solid var(--color-gray3)",
1389
1389
  borderRadius: "4px",
1390
1390
  boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)",
1391
1391
  cursor: "grab",
@@ -1394,12 +1394,12 @@ function cr() {
1394
1394
  transition: "all 0.1s",
1395
1395
  mt: "4px",
1396
1396
  "&:hover": {
1397
- backgroundColor: "#f5f5f5",
1398
- borderColor: "#b0bec5"
1397
+ backgroundColor: "var(--color-gray4)",
1398
+ borderColor: "var(--color-gray3)"
1399
1399
  }
1400
1400
  },
1401
1401
  children: [
1402
- ((r, a) => {
1402
+ ((n, a) => {
1403
1403
  const i = Ee(t.icon, "18px");
1404
1404
  return i && i.type === N ? K.cloneElement(i, {
1405
1405
  sx: {
@@ -1408,50 +1408,50 @@ function cr() {
1408
1408
  width: "18px",
1409
1409
  marginRight: "8px"
1410
1410
  }
1411
- }) : /* @__PURE__ */ e(N, { sx: { mr: "8px", display: "flex", alignItems: "center" }, children: Ee(r, a) });
1411
+ }) : /* @__PURE__ */ e(N, { sx: { mr: "8px", display: "flex", alignItems: "center" }, children: Ee(n, a) });
1412
1412
  })(t.icon, "18px"),
1413
- /* @__PURE__ */ e(S, { variant: "body2", sx: { fontWeight: "normal", color: "#333" }, children: t == null ? void 0 : t.name })
1413
+ /* @__PURE__ */ e(v, { variant: "body2", sx: { fontWeight: "normal", color: "#333" }, children: t == null ? void 0 : t.name })
1414
1414
  ]
1415
1415
  }
1416
1416
  );
1417
- mt.propTypes = {
1418
- feature: m.any
1417
+ ht.propTypes = {
1418
+ feature: h.any
1419
1419
  };
1420
1420
  const Kt = (t) => {
1421
- const r = M.flatMap((s) => s.type === w.GROUP ? [s, ...s.menus] : [s]).find((s) => (s.uuid || s.id) === t);
1422
- if (r) {
1421
+ const n = M.flatMap((s) => s.type === w.GROUP ? [s, ...s.menus] : [s]).find((s) => (s.uuid || s.id) === t);
1422
+ if (n) {
1423
1423
  let s;
1424
- return r.type ? s = r.type : r.menus ? s = w.GROUP : s = w.FEATURE, {
1424
+ return n.type ? s = n.type : n.menus ? s = w.GROUP : s = w.FEATURE, {
1425
1425
  type: s,
1426
- data: r
1426
+ data: n
1427
1427
  };
1428
1428
  }
1429
1429
  const a = le == null ? void 0 : le.find((s) => s.instanceId === t);
1430
1430
  if (a)
1431
1431
  return { type: "FEATURE_TILE", data: a };
1432
- const i = re.find((s) => s.id === t);
1432
+ const i = ne.find((s) => s.id === t);
1433
1433
  if (i) return { type: i.type, data: i };
1434
- for (const s of re)
1434
+ for (const s of ne)
1435
1435
  if (s != null && s.features) {
1436
- const l = s == null ? void 0 : s.features.find((C) => C.instanceId === t);
1436
+ const l = s == null ? void 0 : s.features.find((S) => S.instanceId === t);
1437
1437
  if (l)
1438
1438
  return { type: "FEATURE_TILE", data: l };
1439
1439
  }
1440
1440
  return null;
1441
- }, en = re.find((t) => t.id === dt), tn = (t) => {
1442
- const n = Kt(t);
1443
- return n ? n.type === w.SEARCH_BAR ? /* @__PURE__ */ e(Jt, {}) : n.type === w.SECTION ? /* @__PURE__ */ e(Xt, {}) : n.type === w.FEATURE ? /* @__PURE__ */ e(mt, { feature: n.data }) : n.type === w.GROUP ? /* @__PURE__ */ e($e, { feature: n.data }) : n.type === "FEATURE_TILE" ? /* @__PURE__ */ e($e, { feature: n.data }) : null : null;
1444
- }, nn = Fe(() => {
1445
- if (!me) return !1;
1446
- const t = re.some((a) => a.id === me), n = re.some((a) => {
1441
+ }, er = ne.find((t) => t.id === dt), tr = (t) => {
1442
+ const r = Kt(t);
1443
+ return r ? r.type === w.SEARCH_BAR ? /* @__PURE__ */ e(Jt, {}) : r.type === w.SECTION ? /* @__PURE__ */ e(Xt, {}) : r.type === w.FEATURE ? /* @__PURE__ */ e(ht, { feature: r.data }) : r.type === w.GROUP ? /* @__PURE__ */ e($e, { feature: r.data }) : r.type === "FEATURE_TILE" ? /* @__PURE__ */ e($e, { feature: r.data }) : null : null;
1444
+ }, rr = Fe(() => {
1445
+ if (!he) return !1;
1446
+ const t = ne.some((a) => a.id === he), r = ne.some((a) => {
1447
1447
  var i;
1448
- return (i = a == null ? void 0 : a.features) == null ? void 0 : i.some((s) => s.instanceId === me);
1449
- }), r = le == null ? void 0 : le.some((a) => a.instanceId === me);
1450
- return t || n || r;
1451
- }, [me, re, le]), rn = re.filter((t) => t.type === w.SECTION).map((t) => t.id), on = (t) => {
1452
- var r, a;
1453
- const n = (a = (r = t.active) == null ? void 0 : r.data.current) == null ? void 0 : a.type;
1454
- if (n === w.FEATURE) {
1448
+ return (i = a == null ? void 0 : a.features) == null ? void 0 : i.some((s) => s.instanceId === he);
1449
+ }), n = le == null ? void 0 : le.some((a) => a.instanceId === he);
1450
+ return t || r || n;
1451
+ }, [he, ne, le]), nr = ne.filter((t) => t.type === w.SECTION).map((t) => t.id), or = (t) => {
1452
+ var n, a;
1453
+ const r = (a = (n = t.active) == null ? void 0 : n.data.current) == null ? void 0 : a.type;
1454
+ if (r === w.FEATURE) {
1455
1455
  const i = t.droppableContainers.filter(
1456
1456
  (s) => {
1457
1457
  var l;
@@ -1463,7 +1463,7 @@ function cr() {
1463
1463
  droppableContainers: i
1464
1464
  });
1465
1465
  }
1466
- if (n === w.SECTION) {
1466
+ if (r === w.SECTION) {
1467
1467
  const i = t.droppableContainers.filter((s) => {
1468
1468
  var l;
1469
1469
  return !(s.id === t.active.id || ((l = s.data.current) == null ? void 0 : l.type) === "SECTION_DROP_ZONE");
@@ -1473,30 +1473,30 @@ function cr() {
1473
1473
  droppableContainers: i
1474
1474
  });
1475
1475
  }
1476
- return sn(t);
1476
+ return ar(t);
1477
1477
  };
1478
1478
  return /* @__PURE__ */ p(Ze, { children: [
1479
- /* @__PURE__ */ e(Gn.Provider, { children: /* @__PURE__ */ e("form", { noValidate: !0, onSubmit: $.handleSubmit(pe), children: /* @__PURE__ */ p(
1479
+ /* @__PURE__ */ e(Pr.Provider, { children: /* @__PURE__ */ e("form", { noValidate: !0, onSubmit: $.handleSubmit(pe), children: /* @__PURE__ */ p(
1480
1480
  Nt,
1481
1481
  {
1482
1482
  onDragStart: Qt,
1483
1483
  onDragEnd: Yt,
1484
- collisionDetection: on,
1484
+ collisionDetection: or,
1485
1485
  children: [
1486
- /* @__PURE__ */ p(v, { container: !0, spacing: 1, children: [
1487
- /* @__PURE__ */ e(v, { size: 1 }),
1488
- /* @__PURE__ */ e(v, { size: 6, children: /* @__PURE__ */ p(
1489
- v,
1486
+ /* @__PURE__ */ p(I, { container: !0, spacing: 1, children: [
1487
+ /* @__PURE__ */ e(I, { size: 1 }),
1488
+ /* @__PURE__ */ e(I, { size: 6, children: /* @__PURE__ */ p(
1489
+ I,
1490
1490
  {
1491
1491
  sx: {
1492
1492
  padding: "2px",
1493
1493
  margin: "6px 0px"
1494
1494
  },
1495
1495
  children: [
1496
- /* @__PURE__ */ p(v, { container: !0, sx: { justifyContent: "space-between" }, children: [
1497
- /* @__PURE__ */ e(v, { size: 2 }),
1498
- /* @__PURE__ */ e(S, { variant: "subtitle1", sx: { fontWeight: "bold", marginLeft: "5px", mb: 1 }, children: "Mobile View" }),
1499
- /* @__PURE__ */ p(v, { container: !0, spacing: 1, children: [
1496
+ /* @__PURE__ */ p(I, { container: !0, sx: { justifyContent: "space-between" }, children: [
1497
+ /* @__PURE__ */ e(I, { size: 2 }),
1498
+ /* @__PURE__ */ e(v, { variant: "subtitle1", sx: { fontWeight: "bold", marginLeft: "5px", mb: 1 }, children: "Mobile View" }),
1499
+ /* @__PURE__ */ p(I, { container: !0, spacing: 1, children: [
1500
1500
  /* @__PURE__ */ e(
1501
1501
  Ge,
1502
1502
  {
@@ -1522,41 +1522,41 @@ function cr() {
1522
1522
  )
1523
1523
  ] })
1524
1524
  ] }),
1525
- /* @__PURE__ */ e(v, { sx: { height: "100%", maxHeight: "100%", overflowY: "auto" }, children: /* @__PURE__ */ e(De, { items: rn, strategy: Ue, children: /* @__PURE__ */ e(
1525
+ /* @__PURE__ */ e(I, { sx: { height: "100%", maxHeight: "100%", overflowY: "auto" }, children: /* @__PURE__ */ e(De, { items: nr, strategy: Ue, children: /* @__PURE__ */ e(
1526
1526
  Gt,
1527
1527
  {
1528
- tabStatus: fe,
1529
- layoutComponents: re,
1528
+ tabStatus: me,
1529
+ layoutComponents: ne,
1530
1530
  componentTypes: w,
1531
1531
  handleSectionClick: ut,
1532
1532
  activeElementId: dt,
1533
- activeTabId: z,
1533
+ activeTabId: H,
1534
1534
  handleTabSwitch: Zt,
1535
1535
  formList: F,
1536
- selectedForm: We,
1537
- onFormSelect: Ht,
1536
+ selectedForm: ze,
1537
+ onFormSelect: Wt,
1538
1538
  SvgIconBox: st,
1539
1539
  setCurrentLayoutComponents: oe,
1540
- programFeatures: ((gt = he.programs) == null ? void 0 : gt.features) || []
1540
+ programFeatures: ((ft = ge.programs) == null ? void 0 : ft.features) || []
1541
1541
  }
1542
1542
  ) }) }),
1543
- /* @__PURE__ */ e(v, { container: !0, spacing: 2, justifyContent: "space-around", sx: { my: "1.25rem" }, children: B.map((t) => /* @__PURE__ */ e(v, { item: !0, xs: 12, sm: 6, md: 3, children: /* @__PURE__ */ p(v, { container: !0, alignItems: "center", justifyContent: "space-between", children: [
1544
- /* @__PURE__ */ e(S, { variant: "body2", sx: { fontWeight: "bolder" }, children: t.name }),
1543
+ /* @__PURE__ */ e(I, { container: !0, spacing: 2, justifyContent: "space-around", sx: { my: "1.25rem" }, children: B.map((t) => /* @__PURE__ */ e(I, { item: !0, xs: 12, sm: 6, md: 3, children: /* @__PURE__ */ p(I, { container: !0, alignItems: "center", justifyContent: "space-between", children: [
1544
+ /* @__PURE__ */ e(v, { variant: "body2", sx: { fontWeight: "bolder" }, children: t.name }),
1545
1545
  /* @__PURE__ */ e(
1546
1546
  Ot,
1547
1547
  {
1548
- checked: fe[t.id],
1548
+ checked: me[t.id],
1549
1549
  onChange: () => Y(t.id),
1550
1550
  name: t.name,
1551
1551
  sx: {
1552
1552
  "& .MuiSwitch-switchBase.Mui-checked": {
1553
- color: "#073149",
1553
+ color: "var(--color-text)",
1554
1554
  "&:hover": {
1555
1555
  backgroundColor: "rgba(7, 49, 73, 0.08)"
1556
1556
  }
1557
1557
  },
1558
1558
  "& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track": {
1559
- backgroundColor: "#073149",
1559
+ backgroundColor: "var(--color-tableHeader)",
1560
1560
  opacity: 0.7
1561
1561
  }
1562
1562
  }
@@ -1566,24 +1566,24 @@ function cr() {
1566
1566
  ]
1567
1567
  }
1568
1568
  ) }),
1569
- /* @__PURE__ */ e(v, { size: 1 }),
1570
- /* @__PURE__ */ p(v, { size: 4, children: [
1571
- /* @__PURE__ */ e(v, { size: 12, children: /* @__PURE__ */ p(xe, { sx: { padding: "2px", margin: "6px 0px" }, children: [
1572
- /* @__PURE__ */ e(v, { className: "justify-between items-center", container: !0, children: /* @__PURE__ */ e(S, { variant: "subtitle1", sx: { fontWeight: "bold", marginLeft: "5px" }, children: "Menu Relation" }) }),
1573
- /* @__PURE__ */ p(v, { container: !0, children: [
1574
- /* @__PURE__ */ e(v, { size: 12, children: /* @__PURE__ */ p(
1569
+ /* @__PURE__ */ e(I, { size: 1 }),
1570
+ /* @__PURE__ */ p(I, { size: 4, children: [
1571
+ /* @__PURE__ */ e(I, { size: 12, children: /* @__PURE__ */ p(xe, { sx: { padding: "2px", margin: "6px 0px" }, children: [
1572
+ /* @__PURE__ */ e(I, { className: "justify-between items-center", container: !0, children: /* @__PURE__ */ e(v, { variant: "subtitle1", sx: { fontWeight: "bold", marginLeft: "5px" }, children: "Menu Relation" }) }),
1573
+ /* @__PURE__ */ p(I, { container: !0, children: [
1574
+ /* @__PURE__ */ e(I, { size: 12, children: /* @__PURE__ */ p(
1575
1575
  Ve,
1576
1576
  {
1577
1577
  variant: "outlined",
1578
1578
  className: "ml-3 mb-1 flex flex-row items-center align-items w-[90%]",
1579
1579
  children: [
1580
- /* @__PURE__ */ p(S, { variant: "body2", children: [
1580
+ /* @__PURE__ */ p(v, { variant: "body2", children: [
1581
1581
  "Select Role",
1582
1582
  /* @__PURE__ */ e("span", { className: "text-red-500 ml-1", children: "*" }),
1583
1583
  " :"
1584
1584
  ] }),
1585
1585
  /* @__PURE__ */ e(N, { className: "w-[60%] ms-3", children: /* @__PURE__ */ e(
1586
- Sn,
1586
+ br,
1587
1587
  {
1588
1588
  control: $.control,
1589
1589
  size: "small",
@@ -1603,13 +1603,13 @@ function cr() {
1603
1603
  ]
1604
1604
  }
1605
1605
  ) }),
1606
- /* @__PURE__ */ e(v, { size: 12, children: /* @__PURE__ */ p(
1606
+ /* @__PURE__ */ e(I, { size: 12, children: /* @__PURE__ */ p(
1607
1607
  Ve,
1608
1608
  {
1609
1609
  variant: "standard",
1610
1610
  className: "ml-3 mb-3 flex flex-row items-center align-items w-[90%]",
1611
1611
  children: [
1612
- /* @__PURE__ */ e(S, { variant: "body2", children: "Attendance Required? :" }),
1612
+ /* @__PURE__ */ e(v, { variant: "body2", children: "Attendance Required? :" }),
1613
1613
  /* @__PURE__ */ e(N, { className: "w-[60%] ms-3", children: /* @__PURE__ */ e(
1614
1614
  Ot,
1615
1615
  {
@@ -1617,13 +1617,13 @@ function cr() {
1617
1617
  onChange: (t) => $.setValue("isAttendanceRequired", t.target.checked),
1618
1618
  sx: {
1619
1619
  "& .MuiSwitch-switchBase.Mui-checked": {
1620
- color: "#073149",
1620
+ color: "var(--color-text)",
1621
1621
  "&:hover": {
1622
1622
  backgroundColor: "rgba(7, 49, 73, 0.08)"
1623
1623
  }
1624
1624
  },
1625
1625
  "& .MuiSwitch-switchBase.Mui-checked + .MuiSwitch-track": {
1626
- backgroundColor: "#073149",
1626
+ backgroundColor: "var(--color-tableHeader)",
1627
1627
  opacity: 0.7
1628
1628
  }
1629
1629
  }
@@ -1634,7 +1634,7 @@ function cr() {
1634
1634
  ) })
1635
1635
  ] })
1636
1636
  ] }) }),
1637
- /* @__PURE__ */ e(v, { size: 12, children: /* @__PURE__ */ p(
1637
+ /* @__PURE__ */ e(I, { size: 12, children: /* @__PURE__ */ p(
1638
1638
  xe,
1639
1639
  {
1640
1640
  sx: {
@@ -1644,28 +1644,28 @@ function cr() {
1644
1644
  transition: "height 0.3s ease-in-out"
1645
1645
  },
1646
1646
  children: [
1647
- /* @__PURE__ */ e(S, { variant: "subtitle1", sx: { fontWeight: "bold", marginLeft: "5px", mb: 1 }, children: "Draggable Components" }),
1648
- /* @__PURE__ */ p(v, { container: !0, spacing: 2, justifyContent: "space-around", sx: { p: 1 }, children: [
1649
- /* @__PURE__ */ e(we, { id: "draggable-search", componentType: w.SEARCH_BAR, children: /* @__PURE__ */ e(v, { item: !0, xs: 6, sm: 4, size: 6, children: /* @__PURE__ */ p(
1647
+ /* @__PURE__ */ e(v, { variant: "subtitle1", sx: { fontWeight: "bold", marginLeft: "5px", mb: 1 }, children: "Draggable Components" }),
1648
+ /* @__PURE__ */ p(I, { container: !0, spacing: 2, justifyContent: "space-around", sx: { p: 1 }, children: [
1649
+ /* @__PURE__ */ e(we, { id: "draggable-search", componentType: w.SEARCH_BAR, children: /* @__PURE__ */ e(I, { item: !0, xs: 6, sm: 4, size: 6, children: /* @__PURE__ */ p(
1650
1650
  N,
1651
1651
  {
1652
1652
  sx: {
1653
1653
  width: "100%",
1654
1654
  height: "50px",
1655
1655
  p: "8px 10px",
1656
- backgroundColor: "#f0f4f8",
1657
- border: "1px solid #e0e0e0",
1656
+ backgroundColor: "var(--color-gray4)",
1657
+ border: "1px solid var(--color-gray3)",
1658
1658
  borderRadius: "8px",
1659
1659
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)",
1660
1660
  cursor: "grab",
1661
1661
  display: "flex",
1662
1662
  alignItems: "center",
1663
1663
  justifyContent: "flex-start",
1664
- color: "#073149",
1664
+ color: "var(--color-text)",
1665
1665
  transition: "all 0.2s ease-in-out",
1666
1666
  "&:hover": {
1667
1667
  backgroundColor: "#e0eaf1",
1668
- borderColor: "#b0bec5",
1668
+ borderColor: "var(--color-gray3)",
1669
1669
  boxShadow: "0 2px 5px rgba(0, 0, 0, 0.15)"
1670
1670
  }
1671
1671
  },
@@ -1677,43 +1677,43 @@ function cr() {
1677
1677
  style: { fontSize: "1.2rem", marginRight: "8px" }
1678
1678
  }
1679
1679
  ),
1680
- /* @__PURE__ */ e(S, { variant: "body2", sx: { fontWeight: "bold", lineHeight: 1 }, children: "Search Bar" })
1680
+ /* @__PURE__ */ e(v, { variant: "body2", sx: { fontWeight: "bold", lineHeight: 1 }, children: "Search Bar" })
1681
1681
  ]
1682
1682
  }
1683
1683
  ) }) }),
1684
- /* @__PURE__ */ e(we, { id: "draggable-section", componentType: w.SECTION, children: /* @__PURE__ */ e(v, { item: !0, xs: 6, sm: 4, size: 6, children: /* @__PURE__ */ p(
1684
+ /* @__PURE__ */ e(we, { id: "draggable-section", componentType: w.SECTION, children: /* @__PURE__ */ e(I, { item: !0, xs: 6, sm: 4, size: 6, children: /* @__PURE__ */ p(
1685
1685
  N,
1686
1686
  {
1687
1687
  sx: {
1688
1688
  width: "100%",
1689
1689
  height: "50px",
1690
1690
  p: "8px 10px",
1691
- backgroundColor: "#f0f4f8",
1692
- border: "1px solid #e0e0e0",
1691
+ backgroundColor: "var(--color-gray4)",
1692
+ border: "1px solid var(--color-gray3)",
1693
1693
  borderRadius: "8px",
1694
1694
  boxShadow: "0 1px 3px rgba(0, 0, 0, 0.1)",
1695
1695
  cursor: "grab",
1696
1696
  display: "flex",
1697
1697
  alignItems: "center",
1698
1698
  justifyContent: "flex-start",
1699
- color: "#073149",
1699
+ color: "var(--color-text)",
1700
1700
  transition: "all 0.2s ease-in-out",
1701
1701
  "&:hover": {
1702
1702
  backgroundColor: "#c5e1ff",
1703
- borderColor: "#073149",
1703
+ borderColor: "var(--color-tableHeader)",
1704
1704
  boxShadow: "0 2px 5px rgba(0, 0, 0, 0.15)"
1705
1705
  }
1706
1706
  },
1707
1707
  children: [
1708
1708
  /* @__PURE__ */ e(X, { iconName: "faBox", style: { fontSize: "1.2rem", marginRight: "8px" } }),
1709
- /* @__PURE__ */ e(S, { variant: "body2", sx: { fontWeight: "bold", lineHeight: 1 }, children: "Section" })
1709
+ /* @__PURE__ */ e(v, { variant: "body2", sx: { fontWeight: "bold", lineHeight: 1 }, children: "Section" })
1710
1710
  ]
1711
1711
  }
1712
1712
  ) }) })
1713
1713
  ] }),
1714
- /* @__PURE__ */ e(v, { children: /* @__PURE__ */ e(zt, { isDraggingSortable: nn }) }),
1714
+ /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(Ht, { isDraggingSortable: rr }) }),
1715
1715
  /* @__PURE__ */ e(ot, { sx: { mt: 2 } }),
1716
- /* @__PURE__ */ e(v, { size: 12, children: /* @__PURE__ */ p(
1716
+ /* @__PURE__ */ e(I, { size: 12, children: /* @__PURE__ */ p(
1717
1717
  N,
1718
1718
  {
1719
1719
  sx: {
@@ -1724,7 +1724,7 @@ function cr() {
1724
1724
  transition: "height 0.3s ease-in-out"
1725
1725
  },
1726
1726
  children: [
1727
- /* @__PURE__ */ e(S, { variant: "subtitle1", sx: { fontWeight: "bold", marginLeft: "5px", mb: 1 }, children: "Available Features" }),
1727
+ /* @__PURE__ */ e(v, { variant: "subtitle1", sx: { fontWeight: "bold", marginLeft: "5px", mb: 1 }, children: "Available Features" }),
1728
1728
  /* @__PURE__ */ e(
1729
1729
  Qe,
1730
1730
  {
@@ -1736,7 +1736,7 @@ function cr() {
1736
1736
  value: Le,
1737
1737
  onChange: (t) => Lt(t.target.value),
1738
1738
  InputProps: {
1739
- startAdornment: /* @__PURE__ */ e(pn, { position: "start", children: /* @__PURE__ */ e(X, { iconName: "faMagnifyingGlass" }) })
1739
+ startAdornment: /* @__PURE__ */ e(ur, { position: "start", children: /* @__PURE__ */ e(X, { iconName: "faMagnifyingGlass" }) })
1740
1740
  }
1741
1741
  }
1742
1742
  ),
@@ -1748,9 +1748,9 @@ function cr() {
1748
1748
  overflowY: "auto",
1749
1749
  padding: "0 8px"
1750
1750
  },
1751
- children: /* @__PURE__ */ p(v, { container: !0, direction: "column", spacing: 0, sx: { px: 1 }, children: [
1751
+ children: /* @__PURE__ */ p(I, { container: !0, direction: "column", spacing: 0, sx: { px: 1 }, children: [
1752
1752
  Ne.length > 0 && /* @__PURE__ */ e(
1753
- v,
1753
+ I,
1754
1754
  {
1755
1755
  item: !0,
1756
1756
  xs: 12,
@@ -1765,7 +1765,7 @@ function cr() {
1765
1765
  boxShadow: "0 2px 4px rgba(0,0,0,0.05)",
1766
1766
  border: "1px solid #c5e1ff",
1767
1767
  borderRadius: "4px!important",
1768
- backgroundColor: "#fff"
1768
+ backgroundColor: "var(--color-background2)"
1769
1769
  },
1770
1770
  expanded: ae,
1771
1771
  onChange: () => ue((t) => !t),
@@ -1782,7 +1782,7 @@ function cr() {
1782
1782
  "& .MuiAccordionSummary-content": { margin: "0" },
1783
1783
  p: "0 10px"
1784
1784
  },
1785
- children: /* @__PURE__ */ p(S, { variant: "subtitle2", sx: { fontWeight: "bold", color: "#3f51b5" }, children: [
1785
+ children: /* @__PURE__ */ p(v, { variant: "subtitle2", sx: { fontWeight: "bold", color: "#3f51b5" }, children: [
1786
1786
  /* @__PURE__ */ e(X, { iconName: "faLayerGroup", style: { marginRight: "6px" } }),
1787
1787
  "Menu Groups (",
1788
1788
  Ne.length,
@@ -1790,7 +1790,7 @@ function cr() {
1790
1790
  ] })
1791
1791
  }
1792
1792
  ),
1793
- /* @__PURE__ */ e(Xe, { sx: { p: "8px", pt: 1, backgroundColor: "#f9f9f9" }, children: /* @__PURE__ */ e(v, { container: !0, spacing: 0.5, direction: "column", children: Ne.map((t) => /* @__PURE__ */ e(
1793
+ /* @__PURE__ */ e(Xe, { sx: { p: "8px", pt: 1, backgroundColor: "var(--color-gray4)" }, children: /* @__PURE__ */ e(I, { container: !0, spacing: 0.5, direction: "column", children: Ne.map((t) => /* @__PURE__ */ e(
1794
1794
  tt,
1795
1795
  {
1796
1796
  item: t,
@@ -1805,7 +1805,7 @@ function cr() {
1805
1805
  )
1806
1806
  }
1807
1807
  ),
1808
- Me.length > 0 && /* @__PURE__ */ e(v, { item: !0, xs: 12, children: /* @__PURE__ */ p(
1808
+ Me.length > 0 && /* @__PURE__ */ e(I, { item: !0, xs: 12, children: /* @__PURE__ */ p(
1809
1809
  Ye,
1810
1810
  {
1811
1811
  sx: {
@@ -1815,7 +1815,7 @@ function cr() {
1815
1815
  border: "1px solid #c8e6c9",
1816
1816
  mb: 1,
1817
1817
  borderRadius: "4px!important",
1818
- backgroundColor: "#fff"
1818
+ backgroundColor: "var(--color-background2)"
1819
1819
  },
1820
1820
  expanded: A,
1821
1821
  onChange: () => j((t) => !t),
@@ -1832,7 +1832,7 @@ function cr() {
1832
1832
  "& .MuiAccordionSummary-content": { margin: "0" },
1833
1833
  p: "0 10px"
1834
1834
  },
1835
- children: /* @__PURE__ */ p(S, { variant: "subtitle2", sx: { fontWeight: "bold", color: "#009688" }, children: [
1835
+ children: /* @__PURE__ */ p(v, { variant: "subtitle2", sx: { fontWeight: "bold", color: "#009688" }, children: [
1836
1836
  /* @__PURE__ */ e(X, { iconName: "faPuzzlePiece", style: { marginRight: "6px" } }),
1837
1837
  "Standalone Features (",
1838
1838
  Me.length,
@@ -1840,7 +1840,7 @@ function cr() {
1840
1840
  ] })
1841
1841
  }
1842
1842
  ),
1843
- /* @__PURE__ */ e(Xe, { sx: { p: "8px", pt: 1, backgroundColor: "#ffffff" }, children: /* @__PURE__ */ e(v, { container: !0, spacing: 0.5, direction: "column", children: Me.map((t) => /* @__PURE__ */ e(
1843
+ /* @__PURE__ */ e(Xe, { sx: { p: "8px", pt: 1, backgroundColor: "var(--color-background2)" }, children: /* @__PURE__ */ e(I, { container: !0, spacing: 0.5, direction: "column", children: Me.map((t) => /* @__PURE__ */ e(
1844
1844
  tt,
1845
1845
  {
1846
1846
  item: t,
@@ -1851,7 +1851,7 @@ function cr() {
1851
1851
  ]
1852
1852
  }
1853
1853
  ) }),
1854
- Ne.length === 0 && Me.length === 0 && /* @__PURE__ */ e(S, { variant: "body2", sx: { p: 2, color: "#9e9e9e", textAlign: "center" }, children: "No groups or features match your search criteria." })
1854
+ Ne.length === 0 && Me.length === 0 && /* @__PURE__ */ e(v, { variant: "body2", sx: { p: 2, color: "var(--color-gray1)", textAlign: "center" }, children: "No groups or features match your search criteria." })
1855
1855
  ] })
1856
1856
  }
1857
1857
  )
@@ -1861,10 +1861,10 @@ function cr() {
1861
1861
  ]
1862
1862
  }
1863
1863
  ) }),
1864
- /* @__PURE__ */ e(v, { size: 12, sx: { mt: 1 }, children: /* @__PURE__ */ e(
1865
- Wt,
1864
+ /* @__PURE__ */ e(I, { size: 12, sx: { mt: 1 }, children: /* @__PURE__ */ e(
1865
+ zt,
1866
1866
  {
1867
- activeComponent: en,
1867
+ activeComponent: er,
1868
1868
  onUpdate: Vt,
1869
1869
  onDeselect: () => ut(null),
1870
1870
  mobileQueries: ee
@@ -1872,12 +1872,12 @@ function cr() {
1872
1872
  ) })
1873
1873
  ] })
1874
1874
  ] }),
1875
- /* @__PURE__ */ e(an, { children: tn(me) })
1875
+ /* @__PURE__ */ e(ir, { children: tr(he) })
1876
1876
  ]
1877
1877
  }
1878
1878
  ) }) }),
1879
1879
  /* @__PURE__ */ e(
1880
- Pn,
1880
+ Fr,
1881
1881
  {
1882
1882
  open: be,
1883
1883
  handleClose: () => {
@@ -1909,9 +1909,9 @@ function we({ id: o, children: c, componentType: d, dragData: b = null }) {
1909
1909
  ...E
1910
1910
  });
1911
1911
  }
1912
- m.node, m.number.isRequired, m.number.isRequired;
1913
- const zt = ({ isDraggingSortable: o }) => {
1914
- const { setNodeRef: c, isOver: d } = nt({
1912
+ h.node, h.number.isRequired, h.number.isRequired;
1913
+ const Ht = ({ isDraggingSortable: o }) => {
1914
+ const { setNodeRef: c, isOver: d } = rt({
1915
1915
  id: "trash-zone"
1916
1916
  });
1917
1917
  return o ? /* @__PURE__ */ p(
@@ -1936,29 +1936,29 @@ const zt = ({ isDraggingSortable: o }) => {
1936
1936
  transition: "background-color 0.2s"
1937
1937
  },
1938
1938
  children: [
1939
- /* @__PURE__ */ e(W, { icon: On, style: { marginRight: "10px" } }),
1940
- /* @__PURE__ */ e(S, { variant: "body1", children: d ? "Release to Delete" : "Drag Here to Delete" })
1939
+ /* @__PURE__ */ e(z, { icon: Tr, style: { marginRight: "10px" } }),
1940
+ /* @__PURE__ */ e(v, { variant: "body1", children: d ? "Release to Delete" : "Drag Here to Delete" })
1941
1941
  ]
1942
1942
  }
1943
1943
  ) : null;
1944
1944
  };
1945
- zt.propTypes = {
1946
- isDraggingSortable: m.any
1945
+ Ht.propTypes = {
1946
+ isDraggingSortable: h.any
1947
1947
  };
1948
- const Wt = ({ activeComponent: o, onUpdate: c, onDeselect: d, mobileQueries: b }) => {
1948
+ const zt = ({ activeComponent: o, onUpdate: c, onDeselect: d, mobileQueries: b }) => {
1949
1949
  if (!o)
1950
1950
  return /* @__PURE__ */ p(
1951
1951
  xe,
1952
1952
  {
1953
1953
  sx: {
1954
1954
  p: 1,
1955
- backgroundColor: "#f5f5f5",
1955
+ backgroundColor: "var(--color-gray4)",
1956
1956
  textAlign: "center"
1957
1957
  },
1958
1958
  children: [
1959
- /* @__PURE__ */ e(S, { variant: "subtitle1", sx: { fontWeight: "bold", mb: 1, color: "#073149" }, children: "Component Configuration" }),
1959
+ /* @__PURE__ */ e(v, { variant: "subtitle1", sx: { fontWeight: "bold", mb: 1, color: "var(--color-text)" }, children: "Component Configuration" }),
1960
1960
  /* @__PURE__ */ e(ot, { sx: { mb: 1 } }),
1961
- /* @__PURE__ */ p(S, { variant: "body1", children: [
1961
+ /* @__PURE__ */ p(v, { variant: "body1", children: [
1962
1962
  "To add or edit ",
1963
1963
  /* @__PURE__ */ e("b", { children: "Section Title" }),
1964
1964
  " or ",
@@ -1966,10 +1966,10 @@ const Wt = ({ activeComponent: o, onUpdate: c, onDeselect: d, mobileQueries: b }
1966
1966
  ":"
1967
1967
  ] }),
1968
1968
  /* @__PURE__ */ p(N, { sx: { display: "flex", alignItems: "center", justifyContent: "center", mb: 1 }, children: [
1969
- /* @__PURE__ */ e(S, { variant: "body1", color: "primary", children: "Right-Click" }),
1970
- /* @__PURE__ */ e(S, { variant: "body1", sx: { ml: 1 }, children: "on the selected component card" })
1969
+ /* @__PURE__ */ e(v, { variant: "body1", color: "primary", children: "Right-Click" }),
1970
+ /* @__PURE__ */ e(v, { variant: "body1", sx: { ml: 1 }, children: "on the selected component card" })
1971
1971
  ] }),
1972
- /* @__PURE__ */ e(S, { variant: "caption", color: "textSecondary", children: "This will open the menu to access the **Configuration Panel**." })
1972
+ /* @__PURE__ */ e(v, { variant: "caption", color: "textSecondary", children: "This will open the menu to access the **Configuration Panel**." })
1973
1973
  ]
1974
1974
  }
1975
1975
  );
@@ -1977,9 +1977,9 @@ const Wt = ({ activeComponent: o, onUpdate: c, onDeselect: d, mobileQueries: b }
1977
1977
  const E = b.map((u) => u.code);
1978
1978
  if (o.type === "SEARCH_BAR")
1979
1979
  return /* @__PURE__ */ p(xe, { sx: { p: 2, height: "100%" }, children: [
1980
- /* @__PURE__ */ e(S, { variant: "h6", sx: { mb: 2 }, children: "Search Bar Configuration" }),
1980
+ /* @__PURE__ */ e(v, { variant: "h6", sx: { mb: 2 }, children: "Search Bar Configuration" }),
1981
1981
  /* @__PURE__ */ e(
1982
- mn,
1982
+ mr,
1983
1983
  {
1984
1984
  disablePortal: !0,
1985
1985
  id: "query-name-autocomplete",
@@ -1998,7 +1998,7 @@ const Wt = ({ activeComponent: o, onUpdate: c, onDeselect: d, mobileQueries: b }
1998
1998
  ] });
1999
1999
  }
2000
2000
  return o.type === "SECTION" ? /* @__PURE__ */ p(xe, { sx: { p: 2, height: "100%" }, children: [
2001
- /* @__PURE__ */ e(S, { variant: "h6", sx: { mb: 2 }, children: "Section Configuration" }),
2001
+ /* @__PURE__ */ e(v, { variant: "h6", sx: { mb: 2 }, children: "Section Configuration" }),
2002
2002
  /* @__PURE__ */ e(
2003
2003
  Qe,
2004
2004
  {
@@ -2013,14 +2013,14 @@ const Wt = ({ activeComponent: o, onUpdate: c, onDeselect: d, mobileQueries: b }
2013
2013
  /* @__PURE__ */ e(Ge, { onClick: d, variant: "outlined", color: "gray", children: "Close" })
2014
2014
  ] }) : null;
2015
2015
  };
2016
- Wt.propTypes = {
2017
- activeComponent: m.any,
2018
- onUpdate: m.any,
2019
- onDeselect: m.any,
2020
- mobileQueries: m.any
2016
+ zt.propTypes = {
2017
+ activeComponent: h.any,
2018
+ onUpdate: h.any,
2019
+ onDeselect: h.any,
2020
+ mobileQueries: h.any
2021
2021
  };
2022
2022
  function st({ svg: o }) {
2023
- const [c, d] = k("");
2023
+ const [c, d] = _("");
2024
2024
  return Ke(() => {
2025
2025
  if (o) {
2026
2026
  const u = new DOMParser().parseFromString(o, "image/svg+xml").documentElement;
@@ -2033,7 +2033,7 @@ function st({ svg: o }) {
2033
2033
  d(R);
2034
2034
  }
2035
2035
  }, [o]), /* @__PURE__ */ e(
2036
- fn,
2036
+ pr,
2037
2037
  {
2038
2038
  size: 2,
2039
2039
  sx: {
@@ -2048,7 +2048,7 @@ function st({ svg: o }) {
2048
2048
  borderRadius: "3%",
2049
2049
  transition: "background-color 0.3s ease",
2050
2050
  "&:hover": {
2051
- backgroundColor: "#e0e0e0",
2051
+ backgroundColor: "var(--color-gray3)",
2052
2052
  cursor: "pointer"
2053
2053
  },
2054
2054
  overflow: "hidden"
@@ -2058,7 +2058,7 @@ function st({ svg: o }) {
2058
2058
  );
2059
2059
  }
2060
2060
  st.propTypes = {
2061
- svg: m.string.isRequired
2061
+ svg: h.string.isRequired
2062
2062
  };
2063
2063
  const Ee = (o, c = "36px") => {
2064
2064
  let d = null;
@@ -2083,7 +2083,7 @@ const Ee = (o, c = "36px") => {
2083
2083
  {
2084
2084
  sx: {
2085
2085
  fontSize: "1.2rem",
2086
- color: "#b0bec5",
2086
+ color: "var(--color-gray3)",
2087
2087
  border: "1px solid",
2088
2088
  borderRadius: "50%",
2089
2089
  height: "36px",
@@ -2103,8 +2103,8 @@ const Ee = (o, c = "36px") => {
2103
2103
  width: "fit-content",
2104
2104
  p: "10px",
2105
2105
  pl: c ? "20px" : "10px",
2106
- backgroundColor: "#fff",
2107
- border: "1px solid #e0e0e0",
2106
+ backgroundColor: "var(--color-background2)",
2107
+ border: "1px solid var(--color-gray3)",
2108
2108
  borderRadius: "4px",
2109
2109
  boxShadow: "0 1px 2px rgba(0, 0, 0, 0.05)",
2110
2110
  cursor: "grab",
@@ -2113,8 +2113,8 @@ const Ee = (o, c = "36px") => {
2113
2113
  transition: "all 0.1s",
2114
2114
  mt: "4px",
2115
2115
  "&:hover": {
2116
- backgroundColor: "#f5f5f5",
2117
- borderColor: "#b0bec5"
2116
+ backgroundColor: "var(--color-gray4)",
2117
+ borderColor: "var(--color-gray3)"
2118
2118
  }
2119
2119
  },
2120
2120
  children: [
@@ -2129,26 +2129,26 @@ const Ee = (o, c = "36px") => {
2129
2129
  }
2130
2130
  }) : /* @__PURE__ */ e(N, { sx: { mr: "8px", display: "flex", alignItems: "center" }, children: Ee(b, E) });
2131
2131
  })(o.icon, "18px"),
2132
- /* @__PURE__ */ e(S, { variant: "body2", sx: { fontWeight: "normal", color: "#333" }, children: o == null ? void 0 : o.name })
2132
+ /* @__PURE__ */ e(v, { variant: "body2", sx: { fontWeight: "normal", color: "#333" }, children: o == null ? void 0 : o.name })
2133
2133
  ]
2134
2134
  }
2135
2135
  );
2136
2136
  et.propTypes = {
2137
- feature: m.any,
2138
- isGroupMember: m.any
2137
+ feature: h.any,
2138
+ isGroupMember: h.any
2139
2139
  };
2140
2140
  const tt = ({ item: o, COMPONENT_TYPES: c, activeGroupId: d, onGroupToggle: b }) => {
2141
2141
  const E = d === o.uuid, u = (y) => {
2142
2142
  y.stopPropagation();
2143
2143
  };
2144
- return o.type !== "GROUP" ? /* @__PURE__ */ e(we, { id: o.uuid, componentType: c.FEATURE, dragData: o, children: /* @__PURE__ */ e(v, { item: !0, xs: 12, children: /* @__PURE__ */ e(et, { feature: o }) }, o.id) }, o.uuid) : /* @__PURE__ */ p(
2144
+ return o.type !== "GROUP" ? /* @__PURE__ */ e(we, { id: o.uuid, componentType: c.FEATURE, dragData: o, children: /* @__PURE__ */ e(I, { item: !0, xs: 12, children: /* @__PURE__ */ e(et, { feature: o }) }, o.id) }, o.uuid) : /* @__PURE__ */ p(
2145
2145
  Ye,
2146
2146
  {
2147
2147
  sx: {
2148
2148
  m: 0,
2149
2149
  "&:before": { display: "none" },
2150
2150
  boxShadow: "none",
2151
- border: "1px solid #e0e0e0",
2151
+ border: "1px solid var(--color-gray3)",
2152
2152
  mb: 1,
2153
2153
  borderRadius: "4px!important"
2154
2154
  },
@@ -2165,7 +2165,7 @@ const tt = ({ item: o, COMPONENT_TYPES: c, activeGroupId: d, onGroupToggle: b })
2165
2165
  iconName: "faChevronDown",
2166
2166
  style: {
2167
2167
  fontSize: "1rem",
2168
- color: "#073149",
2168
+ color: "var(--color-text)",
2169
2169
  transform: E ? "rotate(360deg)" : "rotate(0deg)",
2170
2170
  transition: "transform 0.2s"
2171
2171
  }
@@ -2195,13 +2195,13 @@ const tt = ({ item: o, COMPONENT_TYPES: c, activeGroupId: d, onGroupToggle: b })
2195
2195
  onClick: (y) => y.stopPropagation(),
2196
2196
  onMouseDown: (y) => y.stopPropagation(),
2197
2197
  onTouchStart: (y) => y.stopPropagation(),
2198
- children: /* @__PURE__ */ e(X, { iconName: "faBars", style: { fontSize: "0.8rem", color: "#073149" } })
2198
+ children: /* @__PURE__ */ e(X, { iconName: "faBars", style: { fontSize: "0.8rem", color: "var(--color-text)" } })
2199
2199
  }
2200
2200
  )
2201
2201
  },
2202
2202
  `drag-handle-${o.uuid}`
2203
2203
  ),
2204
- /* @__PURE__ */ p(S, { variant: "subtitle2", sx: { fontWeight: "bold", color: "#073149", flexGrow: 1 }, children: [
2204
+ /* @__PURE__ */ p(v, { variant: "subtitle2", sx: { fontWeight: "bold", color: "var(--color-text)", flexGrow: 1 }, children: [
2205
2205
  o.name,
2206
2206
  " (",
2207
2207
  o.menus.length,
@@ -2210,13 +2210,13 @@ const tt = ({ item: o, COMPONENT_TYPES: c, activeGroupId: d, onGroupToggle: b })
2210
2210
  ] })
2211
2211
  }
2212
2212
  ),
2213
- /* @__PURE__ */ e(Xe, { sx: { p: "8px", pt: 1, backgroundColor: "#f9f9f9" }, children: /* @__PURE__ */ e(v, { container: !0, spacing: 0.5, children: o.menus.map((y) => /* @__PURE__ */ e(
2213
+ /* @__PURE__ */ e(Xe, { sx: { p: "8px", pt: 1, backgroundColor: "var(--color-gray4)" }, children: /* @__PURE__ */ e(I, { container: !0, spacing: 0.5, children: o.menus.map((y) => /* @__PURE__ */ e(
2214
2214
  we,
2215
2215
  {
2216
2216
  id: y.uuid,
2217
2217
  componentType: c.FEATURE,
2218
2218
  dragData: y,
2219
- children: /* @__PURE__ */ e(v, { item: !0, xs: 12, children: /* @__PURE__ */ e(et, { feature: y, isGroupMember: !0 }) }, y.id)
2219
+ children: /* @__PURE__ */ e(I, { item: !0, xs: 12, children: /* @__PURE__ */ e(et, { feature: y, isGroupMember: !0 }) }, y.id)
2220
2220
  },
2221
2221
  y.uuid
2222
2222
  )) }) })
@@ -2226,12 +2226,12 @@ const tt = ({ item: o, COMPONENT_TYPES: c, activeGroupId: d, onGroupToggle: b })
2226
2226
  );
2227
2227
  };
2228
2228
  tt.propTypes = {
2229
- item: m.any,
2230
- COMPONENT_TYPES: m.any,
2231
- activeGroupId: m.any,
2232
- onGroupToggle: m.any
2229
+ item: h.any,
2230
+ COMPONENT_TYPES: h.any,
2231
+ activeGroupId: h.any,
2232
+ onGroupToggle: h.any
2233
2233
  };
2234
2234
  export {
2235
- cr as default
2235
+ cn as default
2236
2236
  };
2237
- //# sourceMappingURL=AddMenuConfiguration-QWfpcnuP.js.map
2237
+ //# sourceMappingURL=AddMenuConfiguration-DsnY0Rws.js.map