@argusoft/medplat-core 1.0.27 → 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.
- package/dist/AccessRights-Zm8Obm4N.js +1284 -0
- package/dist/AccessRights-Zm8Obm4N.js.map +1 -0
- package/dist/{AddFeatures-C0Z29oSd.js → AddFeatures-v3TmGQee.js} +2 -2
- package/dist/{AddFeatures-C0Z29oSd.js.map → AddFeatures-v3TmGQee.js.map} +1 -1
- package/dist/AddMenuConfiguration-Ce91MhnU.js +8547 -0
- package/dist/AddMenuConfiguration-Ce91MhnU.js.map +1 -0
- package/dist/{AddRoleDrawer-CQdzQZLb.js → AddRoleDrawer-0gqAK8N0.js} +62 -63
- package/dist/AddRoleDrawer-0gqAK8N0.js.map +1 -0
- package/dist/{ChangePasswordModalCore-CDxkeIIM.js → ChangePasswordModalCore-DutQAZOx.js} +2 -2
- package/dist/{ChangePasswordModalCore-CDxkeIIM.js.map → ChangePasswordModalCore-DutQAZOx.js.map} +1 -1
- package/dist/{ConditionConfig-DSsgGEXS.js → ConditionConfig-B4Ffpgj3.js} +2 -2
- package/dist/ConditionConfig-B4Ffpgj3.js.map +1 -0
- package/dist/{EntityManagement-GaYsBTvf.js → EntityManagement-CPQL6qBj.js} +2 -2
- package/dist/{EntityManagement-GaYsBTvf.js.map → EntityManagement-CPQL6qBj.js.map} +1 -1
- package/dist/{EventConfigurations-kNtAj_WM.js → EventConfigurations-BJcURufo.js} +3 -3
- package/dist/{EventConfigurations-kNtAj_WM.js.map → EventConfigurations-BJcURufo.js.map} +1 -1
- package/dist/{EventsExceptionModal-D4Bf1ilS.js → EventsExceptionModal-BlZtBQoR.js} +2 -2
- package/dist/{EventsExceptionModal-D4Bf1ilS.js.map → EventsExceptionModal-BlZtBQoR.js.map} +1 -1
- package/dist/{EventsSkeleton-8iiETGcf.js → EventsSkeleton-DK6JDKAK.js} +26 -19
- package/dist/EventsSkeleton-DK6JDKAK.js.map +1 -0
- package/dist/{FeatureMenu-jl7-Tk6y.js → FeatureMenu-C3503UIX.js} +3 -3
- package/dist/{FeatureMenu-jl7-Tk6y.js.map → FeatureMenu-C3503UIX.js.map} +1 -1
- package/dist/Features-Dne21RWu.js +14 -0
- package/dist/Features-Dne21RWu.js.map +1 -0
- package/dist/FileSaver.min-CN9EpL2h.js.map +1 -1
- package/dist/{ManageNotification-CaBAOhji.js → Google-DQxMfbaL.js} +1725 -2652
- package/dist/Google-DQxMfbaL.js.map +1 -0
- package/dist/ImmunizationConfigurationBase-DLQVSNnt.js +5895 -0
- package/dist/ImmunizationConfigurationBase-DLQVSNnt.js.map +1 -0
- package/dist/ImmunizationConfigurationBase.css +1 -1
- package/dist/ImmunizationSkeleton-D2tdv5k-.js.map +1 -1
- package/dist/{ManageDynamicFeature-BhONvfC_.js → ManageDynamicFeature-dt096fyj.js} +2 -2
- package/dist/{ManageDynamicFeature-BhONvfC_.js.map → ManageDynamicFeature-dt096fyj.js.map} +1 -1
- package/dist/{ManageEventConfiguration-DV3I5POA.js → ManageEventConfiguration-BpSJszSX.js} +5 -5
- package/dist/{ManageEventConfiguration-DV3I5POA.js.map → ManageEventConfiguration-BpSJszSX.js.map} +1 -1
- package/dist/ManageNotification-CfhHlfxA.js +934 -0
- package/dist/ManageNotification-CfhHlfxA.js.map +1 -0
- package/dist/{ManageRole-CGYfglpo.js → ManageRole-4Y2PP4dQ.js} +32 -30
- package/dist/ManageRole-4Y2PP4dQ.js.map +1 -0
- package/dist/{ManageUser-AY1EUDLI.js → ManageUser-DDzyd9jm.js} +1728 -1592
- package/dist/ManageUser-DDzyd9jm.js.map +1 -0
- package/dist/MobileMenuManagement-Cf8IZlla.js +108 -0
- package/dist/MobileMenuManagement-Cf8IZlla.js.map +1 -0
- package/dist/{MobileTypeEventConfigModal-BxLympIO.js → MobileTypeEventConfigModal-DUkUYACe.js} +2 -2
- package/dist/MobileTypeEventConfigModal-DUkUYACe.js.map +1 -0
- package/dist/{NotificationList-C3Vb_jKU.js → NotificationList-BMFpNUJG.js} +109 -110
- package/dist/NotificationList-BMFpNUJG.js.map +1 -0
- package/dist/{OtherTypeEventConfigModal-BeG1GrUi.js → OtherTypeEventConfigModal-CYBfr2XE.js} +570 -478
- package/dist/OtherTypeEventConfigModal-CYBfr2XE.js.map +1 -0
- package/dist/{RoleManagement-BPl2cE27.js → RoleManagement-DEiBNfT8.js} +100 -101
- package/dist/RoleManagement-DEiBNfT8.js.map +1 -0
- package/dist/{ServerSyncModal-D_oFpv3C.js → ServerSyncModal-92U3xtqI.js} +84 -85
- package/dist/ServerSyncModal-92U3xtqI.js.map +1 -0
- package/dist/{SubMenu-DYxAPH2Z.js → SubMenu-B072oEGb.js} +3 -3
- package/dist/{SubMenu-DYxAPH2Z.js.map → SubMenu-B072oEGb.js.map} +1 -1
- package/dist/{TableDetails-Cf_YfnY2.js → TableDetails-BtafRxXb.js} +1069 -831
- package/dist/TableDetails-BtafRxXb.js.map +1 -0
- package/dist/{TableList-D6jnIbnz.js → TableList-Dpo6dO7S.js} +2 -2
- package/dist/{TableList-D6jnIbnz.js.map → TableList-Dpo6dO7S.js.map} +1 -1
- package/dist/{TypeConfiguration-37wp-gsl.js → TypeConfiguration-C3xoP2Nb.js} +2 -2
- package/dist/{TypeConfiguration-37wp-gsl.js.map → TypeConfiguration-C3xoP2Nb.js.map} +1 -1
- package/dist/{WidgetList-Dw_FmbbE.js → WidgetList-D7YuWfDD.js} +2 -2
- package/dist/{WidgetList-Dw_FmbbE.js.map → WidgetList-D7YuWfDD.js.map} +1 -1
- package/dist/dashboardLayoutUtils-D1xCAxp3.js +405 -0
- package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +1 -0
- package/dist/i18next-CTOWN_jH.js.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +4 -752
- package/dist/index.js.map +1 -1
- package/dist/index.lib-C3fwoM3y.js +820 -0
- package/dist/index.lib-C3fwoM3y.js.map +1 -0
- package/dist/xlsx.min-D1LFqt_b.js.map +1 -1
- package/package.json +2 -2
- package/dist/AccessRights-CHu27ZOw.js +0 -1262
- package/dist/AccessRights-CHu27ZOw.js.map +0 -1
- package/dist/AddMenuConfiguration-BSQLl88V.js +0 -6570
- package/dist/AddMenuConfiguration-BSQLl88V.js.map +0 -1
- package/dist/AddRoleDrawer-CQdzQZLb.js.map +0 -1
- package/dist/ConditionConfig-DSsgGEXS.js.map +0 -1
- package/dist/EventsSkeleton-8iiETGcf.js.map +0 -1
- package/dist/Features-CObdzJp_.js +0 -13
- package/dist/Features-CObdzJp_.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-BevKZx_l.js +0 -5910
- package/dist/ImmunizationConfigurationBase-BevKZx_l.js.map +0 -1
- package/dist/ManageNotification-CaBAOhji.js.map +0 -1
- package/dist/ManageRole-CGYfglpo.js.map +0 -1
- package/dist/ManageUser-AY1EUDLI.js.map +0 -1
- package/dist/MobileMenuManagement-CVAKyKDa.js +0 -112
- package/dist/MobileMenuManagement-CVAKyKDa.js.map +0 -1
- package/dist/MobileTypeEventConfigModal-BxLympIO.js.map +0 -1
- package/dist/NotificationList-C3Vb_jKU.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +0 -1
- package/dist/RoleManagement-BPl2cE27.js.map +0 -1
- package/dist/ServerSyncModal-D_oFpv3C.js.map +0 -1
- package/dist/TableDetails-Cf_YfnY2.js.map +0 -1
- package/dist/dashboardLayoutUtils-Bt5HA96J.js +0 -265
- 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
|
|
2
|
+
import { execute as we } from "@/common/services/GlobalApis";
|
|
3
3
|
import { showToast as S } from "@/common/toaster/toaster";
|
|
4
|
-
import { Modal as
|
|
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
|
|
10
|
-
import { useForm as
|
|
11
|
-
import { api as
|
|
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 {
|
|
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
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
function
|
|
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,
|
|
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:
|
|
38
|
+
}), { fields: b, remove: ce, append: de, replace: G } = je({
|
|
38
39
|
control: y.control,
|
|
39
40
|
name: "formDetails"
|
|
40
|
-
}),
|
|
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),
|
|
49
|
+
}), G(e), le(o);
|
|
49
50
|
};
|
|
50
|
-
|
|
51
|
+
ke(() => {
|
|
51
52
|
(async () => {
|
|
52
53
|
try {
|
|
53
|
-
await
|
|
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
|
|
63
|
+
const ue = async () => {
|
|
63
64
|
try {
|
|
64
|
-
const t = (await
|
|
65
|
-
t && (
|
|
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
|
-
},
|
|
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
|
|
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
|
-
},
|
|
113
|
+
}, pe = async () => {
|
|
113
114
|
try {
|
|
114
|
-
const t = (await
|
|
115
|
+
const t = (await we({
|
|
115
116
|
code: "fetch_server_details"
|
|
116
117
|
})).data;
|
|
117
|
-
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
|
-
},
|
|
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
|
-
|
|
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 &&
|
|
163
|
+
c !== -1 && ce(c);
|
|
163
164
|
});
|
|
164
165
|
} else
|
|
165
166
|
k(-1), G([]);
|
|
166
|
-
},
|
|
167
|
+
}, ge = () => ie((t) => !t), ye = () => {
|
|
167
168
|
$(!1);
|
|
168
169
|
}, H = async (t, o, e) => {
|
|
169
170
|
try {
|
|
170
|
-
return await
|
|
171
|
+
return await Qe.getEncodedData(t, o, e);
|
|
171
172
|
} catch (s) {
|
|
172
173
|
return console.error(s), null;
|
|
173
174
|
}
|
|
174
|
-
},
|
|
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
|
|
178
|
-
|
|
179
|
-
|
|
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.
|
|
185
|
-
o.
|
|
183
|
+
o.key,
|
|
184
|
+
o.initVector,
|
|
186
185
|
t.password
|
|
187
186
|
), i = t.formDetails.map((a) => {
|
|
188
|
-
let p =
|
|
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
|
-
|
|
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`,
|
|
242
|
-
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
|
|
265
|
+
ve,
|
|
267
266
|
{
|
|
268
267
|
open: R,
|
|
269
|
-
slots: { backdrop:
|
|
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(
|
|
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(
|
|
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
|
-
|
|
319
|
+
K,
|
|
321
320
|
{
|
|
322
321
|
sx: (t) => ({
|
|
323
322
|
color: "#fff",
|
|
324
323
|
zIndex: t.zIndex.drawer + 1
|
|
325
324
|
}),
|
|
326
|
-
open:
|
|
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(
|
|
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:
|
|
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(
|
|
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),
|
|
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),
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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(
|
|
550
|
-
|
|
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:
|
|
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:
|
|
559
|
+
icon: Ge,
|
|
561
560
|
size: "xs"
|
|
562
561
|
}
|
|
563
562
|
) : /* @__PURE__ */ r(
|
|
564
563
|
D,
|
|
565
564
|
{
|
|
566
|
-
icon:
|
|
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(
|
|
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(
|
|
614
|
-
/* @__PURE__ */ r(
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
701
|
+
Ee,
|
|
703
702
|
{
|
|
704
703
|
slotProps: {
|
|
705
704
|
transition: { unmountOnExit: !0 }
|
|
706
705
|
},
|
|
707
706
|
children: [
|
|
708
707
|
/* @__PURE__ */ r(
|
|
709
|
-
|
|
708
|
+
Fe,
|
|
710
709
|
{
|
|
711
710
|
expandIcon: /* @__PURE__ */ r(
|
|
712
711
|
D,
|
|
713
712
|
{
|
|
714
|
-
icon:
|
|
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
|
-
|
|
724
|
+
xe(e.createdOn),
|
|
726
725
|
/* @__PURE__ */ r(
|
|
727
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
759
|
-
|
|
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(
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
833
|
+
rr as default
|
|
835
834
|
};
|
|
836
|
-
//# sourceMappingURL=ServerSyncModal-
|
|
835
|
+
//# sourceMappingURL=ServerSyncModal-92U3xtqI.js.map
|