@argusoft/medplat-core 1.0.28 → 1.0.29

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 (91) hide show
  1. package/dist/AccessRights-Zm8Obm4N.js +1284 -0
  2. package/dist/AccessRights-Zm8Obm4N.js.map +1 -0
  3. package/dist/{AddFeatures-C0Z29oSd.js → AddFeatures-v3TmGQee.js} +2 -2
  4. package/dist/{AddFeatures-C0Z29oSd.js.map → AddFeatures-v3TmGQee.js.map} +1 -1
  5. package/dist/AddMenuConfiguration-Ce91MhnU.js +8547 -0
  6. package/dist/AddMenuConfiguration-Ce91MhnU.js.map +1 -0
  7. package/dist/{AddRoleDrawer-CQdzQZLb.js → AddRoleDrawer-0gqAK8N0.js} +62 -63
  8. package/dist/AddRoleDrawer-0gqAK8N0.js.map +1 -0
  9. package/dist/{ChangePasswordModalCore-CDxkeIIM.js → ChangePasswordModalCore-DutQAZOx.js} +2 -2
  10. package/dist/{ChangePasswordModalCore-CDxkeIIM.js.map → ChangePasswordModalCore-DutQAZOx.js.map} +1 -1
  11. package/dist/{ConditionConfig-DSsgGEXS.js → ConditionConfig-B4Ffpgj3.js} +2 -2
  12. package/dist/ConditionConfig-B4Ffpgj3.js.map +1 -0
  13. package/dist/{EntityManagement-GaYsBTvf.js → EntityManagement-CPQL6qBj.js} +2 -2
  14. package/dist/{EntityManagement-GaYsBTvf.js.map → EntityManagement-CPQL6qBj.js.map} +1 -1
  15. package/dist/{EventConfigurations-kNtAj_WM.js → EventConfigurations-BJcURufo.js} +3 -3
  16. package/dist/{EventConfigurations-kNtAj_WM.js.map → EventConfigurations-BJcURufo.js.map} +1 -1
  17. package/dist/{EventsExceptionModal-D4Bf1ilS.js → EventsExceptionModal-BlZtBQoR.js} +2 -2
  18. package/dist/{EventsExceptionModal-D4Bf1ilS.js.map → EventsExceptionModal-BlZtBQoR.js.map} +1 -1
  19. package/dist/{EventsSkeleton-8iiETGcf.js → EventsSkeleton-DK6JDKAK.js} +26 -19
  20. package/dist/EventsSkeleton-DK6JDKAK.js.map +1 -0
  21. package/dist/{FeatureMenu-jl7-Tk6y.js → FeatureMenu-C3503UIX.js} +3 -3
  22. package/dist/{FeatureMenu-jl7-Tk6y.js.map → FeatureMenu-C3503UIX.js.map} +1 -1
  23. package/dist/Features-Dne21RWu.js +14 -0
  24. package/dist/Features-Dne21RWu.js.map +1 -0
  25. package/dist/{ManageNotification-CaBAOhji.js → Google-DQxMfbaL.js} +1725 -2652
  26. package/dist/{ManageNotification-CaBAOhji.js.map → Google-DQxMfbaL.js.map} +1 -1
  27. package/dist/ImmunizationConfigurationBase-DLQVSNnt.js +5895 -0
  28. package/dist/ImmunizationConfigurationBase-DLQVSNnt.js.map +1 -0
  29. package/dist/ImmunizationConfigurationBase.css +1 -1
  30. package/dist/{ManageDynamicFeature-BhONvfC_.js → ManageDynamicFeature-dt096fyj.js} +2 -2
  31. package/dist/{ManageDynamicFeature-BhONvfC_.js.map → ManageDynamicFeature-dt096fyj.js.map} +1 -1
  32. package/dist/{ManageEventConfiguration-DV3I5POA.js → ManageEventConfiguration-BpSJszSX.js} +5 -5
  33. package/dist/{ManageEventConfiguration-DV3I5POA.js.map → ManageEventConfiguration-BpSJszSX.js.map} +1 -1
  34. package/dist/ManageNotification-CfhHlfxA.js +934 -0
  35. package/dist/ManageNotification-CfhHlfxA.js.map +1 -0
  36. package/dist/{ManageRole-CGYfglpo.js → ManageRole-4Y2PP4dQ.js} +32 -30
  37. package/dist/ManageRole-4Y2PP4dQ.js.map +1 -0
  38. package/dist/{ManageUser-AY1EUDLI.js → ManageUser-DDzyd9jm.js} +1728 -1592
  39. package/dist/ManageUser-DDzyd9jm.js.map +1 -0
  40. package/dist/MobileMenuManagement-Cf8IZlla.js +108 -0
  41. package/dist/MobileMenuManagement-Cf8IZlla.js.map +1 -0
  42. package/dist/{MobileTypeEventConfigModal-BxLympIO.js → MobileTypeEventConfigModal-DUkUYACe.js} +2 -2
  43. package/dist/MobileTypeEventConfigModal-DUkUYACe.js.map +1 -0
  44. package/dist/{NotificationList-C3Vb_jKU.js → NotificationList-BMFpNUJG.js} +109 -110
  45. package/dist/NotificationList-BMFpNUJG.js.map +1 -0
  46. package/dist/{OtherTypeEventConfigModal-BeG1GrUi.js → OtherTypeEventConfigModal-CYBfr2XE.js} +570 -478
  47. package/dist/OtherTypeEventConfigModal-CYBfr2XE.js.map +1 -0
  48. package/dist/{RoleManagement-BPl2cE27.js → RoleManagement-DEiBNfT8.js} +100 -101
  49. package/dist/RoleManagement-DEiBNfT8.js.map +1 -0
  50. package/dist/{ServerSyncModal-D_oFpv3C.js → ServerSyncModal-92U3xtqI.js} +84 -85
  51. package/dist/ServerSyncModal-92U3xtqI.js.map +1 -0
  52. package/dist/{SubMenu-DYxAPH2Z.js → SubMenu-B072oEGb.js} +3 -3
  53. package/dist/{SubMenu-DYxAPH2Z.js.map → SubMenu-B072oEGb.js.map} +1 -1
  54. package/dist/{TableDetails-Cf_YfnY2.js → TableDetails-BtafRxXb.js} +1069 -831
  55. package/dist/TableDetails-BtafRxXb.js.map +1 -0
  56. package/dist/{TableList-D6jnIbnz.js → TableList-Dpo6dO7S.js} +2 -2
  57. package/dist/{TableList-D6jnIbnz.js.map → TableList-Dpo6dO7S.js.map} +1 -1
  58. package/dist/{TypeConfiguration-37wp-gsl.js → TypeConfiguration-C3xoP2Nb.js} +2 -2
  59. package/dist/{TypeConfiguration-37wp-gsl.js.map → TypeConfiguration-C3xoP2Nb.js.map} +1 -1
  60. package/dist/{WidgetList-Dw_FmbbE.js → WidgetList-D7YuWfDD.js} +2 -2
  61. package/dist/{WidgetList-Dw_FmbbE.js.map → WidgetList-D7YuWfDD.js.map} +1 -1
  62. package/dist/dashboardLayoutUtils-D1xCAxp3.js +405 -0
  63. package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +1 -0
  64. package/dist/index.js +4 -752
  65. package/dist/index.js.map +1 -1
  66. package/dist/index.lib-C3fwoM3y.js +820 -0
  67. package/dist/index.lib-C3fwoM3y.js.map +1 -0
  68. package/package.json +2 -2
  69. package/dist/AccessRights-CHu27ZOw.js +0 -1262
  70. package/dist/AccessRights-CHu27ZOw.js.map +0 -1
  71. package/dist/AddMenuConfiguration-BSQLl88V.js +0 -6570
  72. package/dist/AddMenuConfiguration-BSQLl88V.js.map +0 -1
  73. package/dist/AddRoleDrawer-CQdzQZLb.js.map +0 -1
  74. package/dist/ConditionConfig-DSsgGEXS.js.map +0 -1
  75. package/dist/EventsSkeleton-8iiETGcf.js.map +0 -1
  76. package/dist/Features-CObdzJp_.js +0 -13
  77. package/dist/Features-CObdzJp_.js.map +0 -1
  78. package/dist/ImmunizationConfigurationBase-DZGqwda2.js +0 -5910
  79. package/dist/ImmunizationConfigurationBase-DZGqwda2.js.map +0 -1
  80. package/dist/ManageRole-CGYfglpo.js.map +0 -1
  81. package/dist/ManageUser-AY1EUDLI.js.map +0 -1
  82. package/dist/MobileMenuManagement-CVAKyKDa.js +0 -112
  83. package/dist/MobileMenuManagement-CVAKyKDa.js.map +0 -1
  84. package/dist/MobileTypeEventConfigModal-BxLympIO.js.map +0 -1
  85. package/dist/NotificationList-C3Vb_jKU.js.map +0 -1
  86. package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +0 -1
  87. package/dist/RoleManagement-BPl2cE27.js.map +0 -1
  88. package/dist/ServerSyncModal-D_oFpv3C.js.map +0 -1
  89. package/dist/TableDetails-Cf_YfnY2.js.map +0 -1
  90. package/dist/dashboardLayoutUtils-Bt5HA96J.js +0 -265
  91. package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +0 -1
@@ -1,30 +1,31 @@
1
1
  import { jsx as r, jsxs as l, Fragment as M } from "react/jsx-runtime";
2
- import { execute as ve } from "@/common/services/GlobalApis";
2
+ import { execute as we } from "@/common/services/GlobalApis";
3
3
  import { showToast as S } from "@/common/toaster/toaster";
4
- import { Modal as Ue, Backdrop as X, Fade as Ie, Typography as j, IconButton as K, CircularProgress as Oe, Tabs as Q, Tab as W, Divider as P, Chip as I, FormControl as O, FormLabel as N, Autocomplete as Z, TextField as E, Tooltip as Ne, OutlinedInput as ze, InputAdornment as Le, FormHelperText as Ae, Alert as Te, Checkbox as Ee, Accordion as Fe, AccordionSummary as Re, AccordionDetails as qe, Button as ee } from "@mui/material";
4
+ import { Modal as ve, Backdrop as K, Fade as Ie, Typography as j, IconButton as X, CircularProgress as Ue, Tabs as Q, Tab as W, Divider as P, Chip as U, FormControl as O, FormLabel as N, Autocomplete as Z, TextField as E, Tooltip as Oe, OutlinedInput as Ne, InputAdornment as ze, FormHelperText as Le, Alert as Ae, Checkbox as Te, Accordion as Ee, AccordionSummary as Fe, AccordionDetails as Re, Button as ee } from "@mui/material";
5
5
  import d from "@mui/material/Grid2";
6
6
  import { Box as h } from "@mui/system";
7
7
  import { t as x } from "./i18next-CTOWN_jH.js";
8
8
  import z from "prop-types";
9
- import ke, { useState as C, useEffect as Me } from "react";
10
- import { useForm as je, useFieldArray as We, Controller as L } from "react-hook-form";
11
- import { api as re } from "@/common/interceptors/AxiosInterceptor";
9
+ import qe, { useState as C, useEffect as ke } from "react";
10
+ import { useForm as Me, useFieldArray as je, Controller as L } from "react-hook-form";
11
+ import { api as We } from "@/common/interceptors/AxiosInterceptor";
12
12
  import { syncMenuConfigFormsWithServer as Pe, downloadFeature as Be } from "@/common/services/SyncWithServer";
13
- import { FormConfiguratorService as Ye } from "@/common/services/FormConfiguratorService";
13
+ import { getKeyAndIV as Ye } from "@/common/services/AuthenticateService";
14
+ import { FormConfiguratorService as $e } from "@/common/services/FormConfiguratorService";
14
15
  import { FontAwesomeIcon as D } from "@fortawesome/react-fontawesome";
15
- import { faXmark as $e, faCircleInfo as _e, faEyeSlash as Ve, faEye as Ge, faChevronDown as He, faArrowsRotate as Je, faDownload as Xe } from "@fortawesome/free-solid-svg-icons";
16
- import Ke from "@/common/services/util/GeneralUtil";
17
- import Qe from "@/views/custom-components/InfoBadge";
18
- import te from "@/views/custom-components/AlertPlaceholder";
19
- import Ze from "@/views/custom-components/PostgresEditor";
20
- function er({
16
+ import { faXmark as _e, faCircleInfo as Ve, faEyeSlash as Ge, faEye as He, faChevronDown as Je, faArrowsRotate as Ke, faDownload as Xe } from "@fortawesome/free-solid-svg-icons";
17
+ import Qe from "@/common/services/util/GeneralUtil";
18
+ import Ze from "@/views/custom-components/InfoBadge";
19
+ import re from "@/views/custom-components/AlertPlaceholder";
20
+ import er from "@/views/custom-components/PostgresEditor";
21
+ function rr({
21
22
  id: B,
22
23
  navigationState: Y,
23
24
  selectedFeature: F,
24
25
  openServerSyncModal: R,
25
26
  openModalFunc: $
26
27
  }) {
27
- const [u, oe] = C(), [se, ne] = C([]), [A, ie] = C(), [q, ae] = C(!1), [w, k] = C(-1), [le, g] = C(!1), [T, _] = C({}), [m, V] = C([]), [f, ce] = C("SYNC"), y = je({
28
+ const [u, te] = C(), [oe, se] = C([]), [A, ne] = C(), [q, ie] = C(!1), [w, k] = C(-1), [ae, g] = C(!1), [T, _] = C({}), [m, V] = C([]), [f, le] = C("SYNC"), y = Me({
28
29
  defaultValues: {
29
30
  serverName: "",
30
31
  formCode: [],
@@ -34,10 +35,10 @@ function er({
34
35
  requestMessage: ""
35
36
  },
36
37
  mode: "onChange"
37
- }), { fields: b, remove: de, append: me, replace: G } = We({
38
+ }), { fields: b, remove: ce, append: de, replace: G } = je({
38
39
  control: y.control,
39
40
  name: "formDetails"
40
- }), ue = (t, o) => {
41
+ }), me = (t, o) => {
41
42
  _({});
42
43
  const e = [...b];
43
44
  e.forEach((s) => {
@@ -45,12 +46,12 @@ function er({
45
46
  (n) => n.formCode === s.formCode
46
47
  );
47
48
  s.migrationList = i.migrationListAll, s.migrationListAll = i.migrationListAll;
48
- }), G(e), ce(o);
49
+ }), G(e), le(o);
49
50
  };
50
- Me(() => {
51
+ ke(() => {
51
52
  (async () => {
52
53
  try {
53
- await fe(), await he();
54
+ await ue(), await pe();
54
55
  } catch (t) {
55
56
  S({
56
57
  message: t,
@@ -59,10 +60,10 @@ function er({
59
60
  }
60
61
  })();
61
62
  }, [R]);
62
- const fe = async () => {
63
+ const ue = async () => {
63
64
  try {
64
- const t = (await Ye.getAllLinkedFormsByMenuConfigId(B)).data;
65
- t && (ne(t), oe(() => {
65
+ const t = (await $e.getAllLinkedFormsByMenuConfigId(B)).data;
66
+ t && (se(t), te(() => {
66
67
  const o = t, e = /* @__PURE__ */ new Map();
67
68
  return o.forEach((s) => {
68
69
  e.has(s.formCode) || e.set(s.formCode, {
@@ -85,11 +86,11 @@ function er({
85
86
  type: "error"
86
87
  });
87
88
  }
88
- }, pe = async (t) => {
89
+ }, fe = async (t) => {
89
90
  if (t && u) {
90
91
  const o = u.map((e) => e.formUUID);
91
92
  try {
92
- const e = await re.get(
93
+ const e = await We.get(
93
94
  "sync/migrationUUIDsByListOfFormMasterUUIDSource",
94
95
  {
95
96
  params: {
@@ -109,19 +110,19 @@ function er({
109
110
  }
110
111
  } else
111
112
  V([]);
112
- }, he = async () => {
113
+ }, pe = async () => {
113
114
  try {
114
- const t = (await ve({
115
+ const t = (await we({
115
116
  code: "fetch_server_details"
116
117
  })).data;
117
- t.result && ie(t.result);
118
+ t.result && ne(t.result);
118
119
  } catch (t) {
119
120
  S({
120
121
  message: t,
121
122
  type: "error"
122
123
  });
123
124
  }
124
- }, ge = () => {
125
+ }, he = () => {
125
126
  let t = y.getValues("formCode") || [];
126
127
  if (t.length > 0) {
127
128
  k(t[0]);
@@ -148,7 +149,7 @@ function er({
148
149
  )).versions.reduce(
149
150
  (p, v) => parseInt(v.version) > parseInt(p.version) ? v : p
150
151
  );
151
- me({
152
+ de({
152
153
  formName: n.formName,
153
154
  formCode: n.formCode,
154
155
  migrationList: n.migrationList,
@@ -159,33 +160,31 @@ function er({
159
160
  });
160
161
  }), i.forEach((n) => {
161
162
  let c = b.findIndex((a) => a.formCode === n);
162
- c !== -1 && de(c);
163
+ c !== -1 && ce(c);
163
164
  });
164
165
  } else
165
166
  k(-1), G([]);
166
- }, ye = () => ae((t) => !t), Ce = () => {
167
+ }, ge = () => ie((t) => !t), ye = () => {
167
168
  $(!1);
168
169
  }, H = async (t, o, e) => {
169
170
  try {
170
- return await Ke.getEncodedData(t, o, e);
171
+ return await Qe.getEncodedData(t, o, e);
171
172
  } catch (s) {
172
173
  return console.error(s), null;
173
174
  }
174
- }, be = (t, o) => Object.entries(t).filter(([e]) => !o.includes(e)).sort(([, e], [, s]) => e.createdOn - s.createdOn).map(([e]) => e), Se = async (t) => {
175
+ }, Ce = (t, o) => Object.entries(t).filter(([e]) => !o.includes(e)).sort(([, e], [, s]) => e.createdOn - s.createdOn).map(([e]) => e), be = async (t) => {
175
176
  try {
176
177
  g(!0);
177
- const o = await re.get("/login/get-key-and-iv", {
178
- withCredentials: !0
179
- }), e = await H(
180
- o.data.key,
181
- o.data.initVector,
178
+ const o = await Ye(), e = await H(
179
+ o.key,
180
+ o.initVector,
182
181
  t.userName
183
182
  ), s = await H(
184
- o.data.key,
185
- o.data.initVector,
183
+ o.key,
184
+ o.initVector,
186
185
  t.password
187
186
  ), i = t.formDetails.map((a) => {
188
- let p = be(
187
+ let p = Ce(
189
188
  T[a.formCode] || {},
190
189
  m || []
191
190
  );
@@ -196,7 +195,7 @@ function er({
196
195
  builderType: a.builderType
197
196
  };
198
197
  }), n = [];
199
- se.forEach((a) => {
198
+ oe.forEach((a) => {
200
199
  a.sourceFormCode != a.formCode && n.push({ [a.sourceFormCode]: a.formCode });
201
200
  });
202
201
  const c = {
@@ -238,8 +237,8 @@ function er({
238
237
  if (f === "DOWNLOAD")
239
238
  try {
240
239
  g(!0);
241
- const a = await Be(c), v = `V${Date.now()}__${c.navigationState}__feature.json`, we = new Blob([a.data], { type: "application/json" }), J = window.URL.createObjectURL(we), U = document.createElement("a");
242
- U.href = J, U.setAttribute("download", v), document.body.appendChild(U), U.click(), U.remove(), window.URL.revokeObjectURL(J), g(!1);
240
+ const a = await Be(c), v = `V${Date.now()}__${c.navigationState}__feature.json`, De = new Blob([a.data], { type: "application/json" }), J = window.URL.createObjectURL(De), I = document.createElement("a");
241
+ I.href = J, I.setAttribute("download", v), document.body.appendChild(I), I.click(), I.remove(), window.URL.revokeObjectURL(J), g(!1);
243
242
  } catch (a) {
244
243
  g(!1), S({
245
244
  type: "error",
@@ -250,23 +249,23 @@ function er({
250
249
  } catch (o) {
251
250
  g(!1), console.error("error", o);
252
251
  }
253
- }, xe = (t, o, e) => {
252
+ }, Se = (t, o, e) => {
254
253
  let s = { ...T };
255
254
  t.target.checked ? (Object.prototype.hasOwnProperty.call(
256
255
  s,
257
256
  o
258
257
  ) || (s[o] = {}), s[o][e.uuid] = e) : delete s[o][e.uuid], _({ ...s });
259
- }, De = (t) => {
258
+ }, xe = (t) => {
260
259
  const o = new Date(t), e = String(o.getDate()).padStart(2, "0"), s = String(o.getMonth() + 1).padStart(2, "0"), i = o.getFullYear();
261
260
  let n = o.getHours();
262
261
  const c = String(o.getMinutes()).padStart(2, "0");
263
262
  return n = String(n).padStart(2, "0"), `${e}/${s}/${i} ${n}:${c}`;
264
263
  };
265
264
  return /* @__PURE__ */ r(
266
- Ue,
265
+ ve,
267
266
  {
268
267
  open: R,
269
- slots: { backdrop: X },
268
+ slots: { backdrop: K },
270
269
  slotProps: {
271
270
  backdrop: {
272
271
  timeout: 500
@@ -310,20 +309,20 @@ function er({
310
309
  " ",
311
310
  F == null ? void 0 : F.name
312
311
  ] }),
313
- /* @__PURE__ */ r(K, { onClick: Ce, children: /* @__PURE__ */ r(D, { icon: $e }) })
312
+ /* @__PURE__ */ r(X, { onClick: ye, children: /* @__PURE__ */ r(D, { icon: _e }) })
314
313
  ]
315
314
  }
316
315
  ),
317
- /* @__PURE__ */ l("form", { noValidate: !0, onSubmit: y.handleSubmit(Se), children: [
316
+ /* @__PURE__ */ l("form", { noValidate: !0, onSubmit: y.handleSubmit(be), children: [
318
317
  /* @__PURE__ */ l(h, { sx: { my: 2 }, children: [
319
318
  /* @__PURE__ */ r(
320
- X,
319
+ K,
321
320
  {
322
321
  sx: (t) => ({
323
322
  color: "#fff",
324
323
  zIndex: t.zIndex.drawer + 1
325
324
  }),
326
- open: le,
325
+ open: ae,
327
326
  children: /* @__PURE__ */ l(
328
327
  h,
329
328
  {
@@ -337,7 +336,7 @@ function er({
337
336
  borderRadius: "10px"
338
337
  },
339
338
  children: [
340
- /* @__PURE__ */ r(Oe, { color: "inherit" }),
339
+ /* @__PURE__ */ r(Ue, { color: "inherit" }),
341
340
  /* @__PURE__ */ r(j, { sx: { ml: 2 }, children: "Syncing feature, it may take some time, please wait..." })
342
341
  ]
343
342
  }
@@ -350,7 +349,7 @@ function er({
350
349
  Q,
351
350
  {
352
351
  value: f,
353
- onChange: ue,
352
+ onChange: me,
354
353
  variant: "fullWidth",
355
354
  children: [
356
355
  /* @__PURE__ */ r(W, { label: "SYNC", value: "SYNC" }),
@@ -359,7 +358,7 @@ function er({
359
358
  }
360
359
  ) }),
361
360
  ["SYNC"].includes(f) && /* @__PURE__ */ l(M, { children: [
362
- /* @__PURE__ */ r(d, { size: 12, children: /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r(I, { label: "Server and form details", size: "small" }) }) }),
361
+ /* @__PURE__ */ r(d, { size: 12, children: /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r(U, { label: "Server and form details", size: "small" }) }) }),
363
362
  /* @__PURE__ */ r(d, { size: 12, children: /* @__PURE__ */ l(O, { fullWidth: !0, children: [
364
363
  /* @__PURE__ */ r(N, { required: !0, children: "Select server" }),
365
364
  /* @__PURE__ */ r(
@@ -391,7 +390,7 @@ function er({
391
390
  getOptionDisabled: (i) => o == null ? void 0 : o.includes(i.code),
392
391
  onChange: (i, n) => {
393
392
  const c = n == null ? void 0 : n.code;
394
- t(c), pe(n);
393
+ t(c), fe(n);
395
394
  },
396
395
  renderInput: (i) => /* @__PURE__ */ r(
397
396
  E,
@@ -448,7 +447,7 @@ function er({
448
447
  const c = n.map(
449
448
  (a) => a.formCode
450
449
  );
451
- t(c), ge();
450
+ t(c), he();
452
451
  },
453
452
  renderInput: (i) => /* @__PURE__ */ r(
454
453
  E,
@@ -468,11 +467,11 @@ function er({
468
467
  ] }) }) }),
469
468
  ["SYNC"].includes(f) && /* @__PURE__ */ l(M, { children: [
470
469
  /* @__PURE__ */ r(d, { size: 12, children: /* @__PURE__ */ r(P, { children: /* @__PURE__ */ r(
471
- I,
470
+ U,
472
471
  {
473
472
  label: /* @__PURE__ */ l(h, { children: [
474
473
  /* @__PURE__ */ r(h, { component: "span", sx: { mr: 0.5 }, children: "User authentication details" }),
475
- /* @__PURE__ */ r(Ne, { title: "Users with admin role can perform the sync operation", children: /* @__PURE__ */ r(D, { icon: _e }) })
474
+ /* @__PURE__ */ r(Oe, { title: "Users with admin role can perform the sync operation", children: /* @__PURE__ */ r(D, { icon: Ve }) })
476
475
  ] }),
477
476
  size: "small"
478
477
  }
@@ -536,7 +535,7 @@ function er({
536
535
  fieldState: { error: e }
537
536
  }) => /* @__PURE__ */ l(h, { sx: { mb: 1 }, children: [
538
537
  /* @__PURE__ */ r(
539
- ze,
538
+ Ne,
540
539
  {
541
540
  fullWidth: !0,
542
541
  type: q ? "text" : "password",
@@ -546,24 +545,24 @@ function er({
546
545
  onChange: t,
547
546
  error: e,
548
547
  autoComplete: "off",
549
- endAdornment: /* @__PURE__ */ r(Le, { position: "end", children: /* @__PURE__ */ r(
550
- K,
548
+ endAdornment: /* @__PURE__ */ r(ze, { position: "end", children: /* @__PURE__ */ r(
549
+ X,
551
550
  {
552
551
  "aria-label": q ? "hide the password" : "display the password",
553
- onClick: ye,
552
+ onClick: ge,
554
553
  onMouseDown: (s) => s.preventDefault(),
555
554
  onMouseUp: (s) => s.preventDefault(),
556
555
  edge: "end",
557
556
  children: q ? /* @__PURE__ */ r(
558
557
  D,
559
558
  {
560
- icon: Ve,
559
+ icon: Ge,
561
560
  size: "xs"
562
561
  }
563
562
  ) : /* @__PURE__ */ r(
564
563
  D,
565
564
  {
566
- icon: Ge,
565
+ icon: He,
567
566
  size: "xs"
568
567
  }
569
568
  )
@@ -571,7 +570,7 @@ function er({
571
570
  ) })
572
571
  }
573
572
  ),
574
- e && /* @__PURE__ */ r(Ae, { error: e, children: e == null ? void 0 : e.message })
573
+ e && /* @__PURE__ */ r(Le, { error: e, children: e == null ? void 0 : e.message })
575
574
  ] })
576
575
  }
577
576
  )
@@ -610,8 +609,8 @@ function er({
610
609
  ] }) })
611
610
  ] })
612
611
  ] }),
613
- /* @__PURE__ */ r(d, { size: 7, children: /* @__PURE__ */ r(h, { children: b.length > 0 ? /* @__PURE__ */ l(ke.Fragment, { children: [
614
- /* @__PURE__ */ r(Te, { sx: { mt: 1 }, severity: "info", children: "Please select the migration corresponding to the respective form for synchronization" }),
612
+ /* @__PURE__ */ r(d, { size: 7, children: /* @__PURE__ */ r(h, { children: b.length > 0 ? /* @__PURE__ */ l(qe.Fragment, { children: [
613
+ /* @__PURE__ */ r(Ae, { sx: { mt: 1 }, severity: "info", children: "Please select the migration corresponding to the respective form for synchronization" }),
615
614
  /* @__PURE__ */ r(
616
615
  Q,
617
616
  {
@@ -624,7 +623,7 @@ function er({
624
623
  {
625
624
  value: t.formCode,
626
625
  label: /* @__PURE__ */ r(
627
- Qe,
626
+ Ze,
628
627
  {
629
628
  label: t.formCode,
630
629
  value: `V${t.version}`,
@@ -653,7 +652,7 @@ function er({
653
652
  container: !0,
654
653
  sx: { maxHeight: "50vh", overflowY: "scroll" },
655
654
  children: [
656
- (t == null ? void 0 : t.migrationList.length) === 0 && /* @__PURE__ */ r(d, { size: 12, children: /* @__PURE__ */ l(te, { height: "250px", children: [
655
+ (t == null ? void 0 : t.migrationList.length) === 0 && /* @__PURE__ */ r(d, { size: 12, children: /* @__PURE__ */ l(re, { height: "250px", children: [
657
656
  "No migration queries present for (",
658
657
  t.formName,
659
658
  ")"
@@ -668,7 +667,7 @@ function er({
668
667
  container: !0,
669
668
  children: [
670
669
  /* @__PURE__ */ r(d, { size: 1, children: /* @__PURE__ */ r(
671
- Ee,
670
+ Te,
672
671
  {
673
672
  value: ((s = Object.keys(
674
673
  T[w] || {}
@@ -690,7 +689,7 @@ function er({
690
689
  mr: 1
691
690
  },
692
691
  onChange: (n) => {
693
- xe(
692
+ Se(
694
693
  n,
695
694
  w,
696
695
  e
@@ -699,19 +698,19 @@ function er({
699
698
  }
700
699
  ) }),
701
700
  /* @__PURE__ */ r(d, { size: 11, children: /* @__PURE__ */ l(
702
- Fe,
701
+ Ee,
703
702
  {
704
703
  slotProps: {
705
704
  transition: { unmountOnExit: !0 }
706
705
  },
707
706
  children: [
708
707
  /* @__PURE__ */ r(
709
- Re,
708
+ Fe,
710
709
  {
711
710
  expandIcon: /* @__PURE__ */ r(
712
711
  D,
713
712
  {
714
- icon: He
713
+ icon: Je
715
714
  }
716
715
  ),
717
716
  "aria-controls": "panel1-content",
@@ -722,9 +721,9 @@ function er({
722
721
  children: /* @__PURE__ */ l(j, { component: "span", children: [
723
722
  "Created on :",
724
723
  " ",
725
- De(e.createdOn),
724
+ xe(e.createdOn),
726
725
  /* @__PURE__ */ r(
727
- I,
726
+ U,
728
727
  {
729
728
  sx: { ml: 2 },
730
729
  size: "small",
@@ -733,7 +732,7 @@ function er({
733
732
  }
734
733
  ),
735
734
  e.isExecuted && e.isError && /* @__PURE__ */ r(
736
- I,
735
+ U,
737
736
  {
738
737
  sx: { ml: 2 },
739
738
  size: "small",
@@ -744,7 +743,7 @@ function er({
744
743
  (m == null ? void 0 : m.includes(
745
744
  e.uuid
746
745
  )) && f === "SYNC" && /* @__PURE__ */ r(
747
- I,
746
+ U,
748
747
  {
749
748
  sx: { ml: 2 },
750
749
  size: "small",
@@ -755,8 +754,8 @@ function er({
755
754
  ] })
756
755
  }
757
756
  ),
758
- /* @__PURE__ */ r(qe, { children: /* @__PURE__ */ r(
759
- Ze,
757
+ /* @__PURE__ */ r(Re, { children: /* @__PURE__ */ r(
758
+ er,
760
759
  {
761
760
  mode: "READ_ONLY",
762
761
  defaultValue: e == null ? void 0 : e.query
@@ -776,7 +775,7 @@ function er({
776
775
  t.formCode
777
776
  );
778
777
  })()
779
- ] }) : /* @__PURE__ */ r(h, { sx: { mt: 1 }, children: /* @__PURE__ */ r(te, { height: "250px", children: "Please select forms to sync" }) }) }) })
778
+ ] }) : /* @__PURE__ */ r(h, { sx: { mt: 1 }, children: /* @__PURE__ */ r(re, { height: "250px", children: "Please select forms to sync" }) }) }) })
780
779
  ] })
781
780
  ] }),
782
781
  /* @__PURE__ */ l(
@@ -793,7 +792,7 @@ function er({
793
792
  ee,
794
793
  {
795
794
  type: "submit",
796
- startIcon: /* @__PURE__ */ r(D, { size: "lg", icon: Je }),
795
+ startIcon: /* @__PURE__ */ r(D, { size: "lg", icon: Ke }),
797
796
  color: "success",
798
797
  size: "small",
799
798
  variant: "contained",
@@ -823,7 +822,7 @@ function er({
823
822
  }
824
823
  );
825
824
  }
826
- er.propTypes = {
825
+ rr.propTypes = {
827
826
  id: z.any,
828
827
  selectedFeature: z.any,
829
828
  navigationState: z.any,
@@ -831,6 +830,6 @@ er.propTypes = {
831
830
  openModalFunc: z.any
832
831
  };
833
832
  export {
834
- er as default
833
+ rr as default
835
834
  };
836
- //# sourceMappingURL=ServerSyncModal-D_oFpv3C.js.map
835
+ //# sourceMappingURL=ServerSyncModal-92U3xtqI.js.map