@argusoft/medplat-core 1.0.0
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-sgIhYR30.js +1238 -0
- package/dist/AccessRights-sgIhYR30.js.map +1 -0
- package/dist/AddEditQueryBuilder-BaZxS2Cm.js +289 -0
- package/dist/AddEditQueryBuilder-BaZxS2Cm.js.map +1 -0
- package/dist/AddEditQueryBuilder.css +1 -0
- package/dist/AddFeatures-BxXCC6ex.js +212 -0
- package/dist/AddFeatures-BxXCC6ex.js.map +1 -0
- package/dist/AddLabelModal-DE3ploGD.js +734 -0
- package/dist/AddLabelModal-DE3ploGD.js.map +1 -0
- package/dist/AddMenuConfiguration-QWfpcnuP.js +2237 -0
- package/dist/AddMenuConfiguration-QWfpcnuP.js.map +1 -0
- package/dist/AddMenuConfiguration.css +1 -0
- package/dist/AddRoleDrawer-ZK1eejxI.js +453 -0
- package/dist/AddRoleDrawer-ZK1eejxI.js.map +1 -0
- package/dist/AppModal-BgZyfrd-.js +428 -0
- package/dist/AppModal-BgZyfrd-.js.map +1 -0
- package/dist/ChangePasswordModal-MV7g8tkA.js +176 -0
- package/dist/ChangePasswordModal-MV7g8tkA.js.map +1 -0
- package/dist/ConditionConfig-BqWe0NKO.js +395 -0
- package/dist/ConditionConfig-BqWe0NKO.js.map +1 -0
- package/dist/ConditionConfig.css +1 -0
- package/dist/EntityManagement-D-x6Qzal.js +50 -0
- package/dist/EntityManagement-D-x6Qzal.js.map +1 -0
- package/dist/EventConfigurations-jGCJ4LqP.js +384 -0
- package/dist/EventConfigurations-jGCJ4LqP.js.map +1 -0
- package/dist/EventConfigurations.css +1 -0
- package/dist/EventsExceptionModal-BF6E1Np7.js +200 -0
- package/dist/EventsExceptionModal-BF6E1Np7.js.map +1 -0
- package/dist/EventsSkeleton-BN7_0IGs.js +74 -0
- package/dist/EventsSkeleton-BN7_0IGs.js.map +1 -0
- package/dist/FeatureMenu-BYSRoNm0.js +249 -0
- package/dist/FeatureMenu-BYSRoNm0.js.map +1 -0
- package/dist/Features-CKMmuqcs.js +11 -0
- package/dist/Features-CKMmuqcs.js.map +1 -0
- package/dist/FlywayQuery-Cx2sly6g.js +169 -0
- package/dist/FlywayQuery-Cx2sly6g.js.map +1 -0
- package/dist/ImmunizationConfigurationBase-CdCgDaAl.js +5299 -0
- package/dist/ImmunizationConfigurationBase-CdCgDaAl.js.map +1 -0
- package/dist/ImmunizationConfigurationBase.css +1 -0
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js +335 -0
- package/dist/ImmunizationConfigurationsList-CQnxWa09.js.map +1 -0
- package/dist/ImmunizationSkeleton-D2tdv5k-.js +186 -0
- package/dist/ImmunizationSkeleton-D2tdv5k-.js.map +1 -0
- package/dist/LanguagesModal-rk6IGQwY.js +394 -0
- package/dist/LanguagesModal-rk6IGQwY.js.map +1 -0
- package/dist/ManageDynamicFeature-CeeqiS3K.js +4189 -0
- package/dist/ManageDynamicFeature-CeeqiS3K.js.map +1 -0
- package/dist/ManageEventConfiguration-BRXh51fc.js +1017 -0
- package/dist/ManageEventConfiguration-BRXh51fc.js.map +1 -0
- package/dist/ManageEventConfiguration.css +1 -0
- package/dist/ManageNotification-B4prX-9Z.js +6819 -0
- package/dist/ManageNotification-B4prX-9Z.js.map +1 -0
- package/dist/ManageRole-ByqBmjuc.js +699 -0
- package/dist/ManageRole-ByqBmjuc.js.map +1 -0
- package/dist/ManageTranslation-BTxvSYKb.js +616 -0
- package/dist/ManageTranslation-BTxvSYKb.js.map +1 -0
- package/dist/ManageTranslation.css +1 -0
- package/dist/ManageUser-PHiTNyF8.js +2160 -0
- package/dist/ManageUser-PHiTNyF8.js.map +1 -0
- package/dist/ManageUser.css +1 -0
- package/dist/MobileMenuManagement-DmQU5TTo.js +108 -0
- package/dist/MobileMenuManagement-DmQU5TTo.js.map +1 -0
- package/dist/MobileTypeEventConfigModal-BCp-SF4-.js +783 -0
- package/dist/MobileTypeEventConfigModal-BCp-SF4-.js.map +1 -0
- package/dist/NewServerManagement-5YcAtF-g.js +1002 -0
- package/dist/NewServerManagement-5YcAtF-g.js.map +1 -0
- package/dist/NotificationFlywayQuery-BY8Zzml_.js +244 -0
- package/dist/NotificationFlywayQuery-BY8Zzml_.js.map +1 -0
- package/dist/NotificationList-BkpOrCpM.js +400 -0
- package/dist/NotificationList-BkpOrCpM.js.map +1 -0
- package/dist/OtherTypeEventConfigModal-DPB8IYzj.js +2001 -0
- package/dist/OtherTypeEventConfigModal-DPB8IYzj.js.map +1 -0
- package/dist/QueryBuilder-Cus_mRwZ.js +378 -0
- package/dist/QueryBuilder-Cus_mRwZ.js.map +1 -0
- package/dist/QueryBuilder.css +1 -0
- package/dist/QueryManagement-DXA73N2j.js +671 -0
- package/dist/QueryManagement-DXA73N2j.js.map +1 -0
- package/dist/QueryManagement.css +1 -0
- package/dist/RoleManagement-CLaEJ90J.js +410 -0
- package/dist/RoleManagement-CLaEJ90J.js.map +1 -0
- package/dist/ServerSyncModal-uNjGCQJz.js +869 -0
- package/dist/ServerSyncModal-uNjGCQJz.js.map +1 -0
- package/dist/ShowFlywayQuery-DMsAbtOW.js +130 -0
- package/dist/ShowFlywayQuery-DMsAbtOW.js.map +1 -0
- package/dist/ShowFlywayQuery-DVRCd384.js +259 -0
- package/dist/ShowFlywayQuery-DVRCd384.js.map +1 -0
- package/dist/ShowQueryHistory-BDN0tzHg.js +190 -0
- package/dist/ShowQueryHistory-BDN0tzHg.js.map +1 -0
- package/dist/SubMenu-BHcSNSUF.js +187 -0
- package/dist/SubMenu-BHcSNSUF.js.map +1 -0
- package/dist/TableDetails-DzREeJkm.js +1508 -0
- package/dist/TableDetails-DzREeJkm.js.map +1 -0
- package/dist/TableList-B9hr05Hs.js +428 -0
- package/dist/TableList-B9hr05Hs.js.map +1 -0
- package/dist/TypeConfiguration-BYM8PjV9.js +117 -0
- package/dist/TypeConfiguration-BYM8PjV9.js.map +1 -0
- package/dist/UserList-BxB1tCwM.js +13042 -0
- package/dist/UserList-BxB1tCwM.js.map +1 -0
- package/dist/UserList.css +1 -0
- package/dist/UserListSkeleton-cglK2SaU.js +184 -0
- package/dist/UserListSkeleton-cglK2SaU.js.map +1 -0
- package/dist/WidgetList-BSApErov.js +188 -0
- package/dist/WidgetList-BSApErov.js.map +1 -0
- package/dist/_commonjsHelpers-BItOPCY9.js +29 -0
- package/dist/_commonjsHelpers-BItOPCY9.js.map +1 -0
- package/dist/i18next-CTOWN_jH.js +1394 -0
- package/dist/i18next-CTOWN_jH.js.map +1 -0
- package/dist/index.js +481 -0
- package/dist/index.js.map +1 -0
- package/dist/manageImmunization-B4swS745.js +1204 -0
- package/dist/manageImmunization-B4swS745.js.map +1 -0
- package/dist/manageImmunization.css +1 -0
- package/package.json +79 -0
|
@@ -0,0 +1,869 @@
|
|
|
1
|
+
import { jsx as t, jsxs as i, Fragment as j } from "react/jsx-runtime";
|
|
2
|
+
import { execute as Oe } from "@/common/services/GlobalApis";
|
|
3
|
+
import { showToast as S } from "@/common/toaster/toaster";
|
|
4
|
+
import { Modal as Le, Backdrop as Q, Fade as Ne, Typography as W, IconButton as Z, CircularProgress as ze, Tabs as ee, Tab as P, Divider as B, Chip as I, FormControl as O, FormLabel as L, Autocomplete as Y, TextField as F, Tooltip as Ae, OutlinedInput as Te, InputAdornment as Ee, FormHelperText as Fe, Alert as Re, Checkbox as qe, Accordion as ke, AccordionSummary as Me, AccordionDetails as je, Button as re } from "@mui/material";
|
|
5
|
+
import d from "@mui/material/Grid2";
|
|
6
|
+
import { Box as h } from "@mui/system";
|
|
7
|
+
import { t as x } from "./i18next-CTOWN_jH.js";
|
|
8
|
+
import N from "prop-types";
|
|
9
|
+
import We, { useState as g, useEffect as Pe } from "react";
|
|
10
|
+
import { useForm as Be, useFieldArray as Ye, Controller as z } from "react-hook-form";
|
|
11
|
+
import { api as te } from "@/common/interceptors/AxiosInterceptor";
|
|
12
|
+
import { getSecurityUserList as $e, syncMenuConfigFormsWithServer as _e, downloadFeature as Ve } from "@/common/services/SyncWithServer";
|
|
13
|
+
import { FormConfiguratorService as Ge } from "@/common/services/FormConfiguratorService";
|
|
14
|
+
import { FontAwesomeIcon as D } from "@fortawesome/react-fontawesome";
|
|
15
|
+
import { faXmark as He, faCircleInfo as Je, faEyeSlash as Xe, faEye as Ke, faChevronDown as Qe, faArrowsRotate as Ze, faDownload as er } from "@fortawesome/free-solid-svg-icons";
|
|
16
|
+
import rr from "@/common/services/util/GeneralUtil";
|
|
17
|
+
import tr from "@/views/custom-components/InfoBadge";
|
|
18
|
+
import oe from "@/views/custom-components/AlertPlaceholder";
|
|
19
|
+
import or from "@/views/custom-components/PostgresEditor";
|
|
20
|
+
function sr({
|
|
21
|
+
id: $,
|
|
22
|
+
navigationState: _,
|
|
23
|
+
selectedFeature: R,
|
|
24
|
+
openServerSyncModal: q,
|
|
25
|
+
openModalFunc: V
|
|
26
|
+
}) {
|
|
27
|
+
const [m, se] = g(), [ne, ae] = g([]), [A, ie] = g(), [T, le] = g(), [k, ce] = g(!1), [w, M] = g(-1), [de, y] = g(!1), [E, G] = g({}), [u, H] = g([]), [f, ue] = g("SYNC"), C = Be({
|
|
28
|
+
defaultValues: {
|
|
29
|
+
serverName: "",
|
|
30
|
+
formCode: [],
|
|
31
|
+
formDetails: [],
|
|
32
|
+
userName: "",
|
|
33
|
+
password: "",
|
|
34
|
+
requestMessage: ""
|
|
35
|
+
},
|
|
36
|
+
mode: "onChange"
|
|
37
|
+
}), { fields: b, remove: me, append: fe, replace: J } = Ye({
|
|
38
|
+
control: C.control,
|
|
39
|
+
name: "formDetails"
|
|
40
|
+
}), pe = (r, o) => {
|
|
41
|
+
G({});
|
|
42
|
+
const e = [...b];
|
|
43
|
+
e.forEach((s) => {
|
|
44
|
+
const n = m.find(
|
|
45
|
+
(a) => a.formCode === s.formCode
|
|
46
|
+
);
|
|
47
|
+
s.migrationList = n.migrationListAll, s.migrationListAll = n.migrationListAll;
|
|
48
|
+
}), J(e), ue(o);
|
|
49
|
+
};
|
|
50
|
+
Pe(() => {
|
|
51
|
+
(async () => {
|
|
52
|
+
try {
|
|
53
|
+
await he(), await ye(), await Ce();
|
|
54
|
+
} catch (r) {
|
|
55
|
+
S({
|
|
56
|
+
message: r,
|
|
57
|
+
type: "error"
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
})();
|
|
61
|
+
}, [q]);
|
|
62
|
+
const he = async () => {
|
|
63
|
+
try {
|
|
64
|
+
const r = (await Ge.getAllLinkedFormsByMenuConfigId($)).data;
|
|
65
|
+
r && (ae(r), se(() => {
|
|
66
|
+
const o = r, e = /* @__PURE__ */ new Map();
|
|
67
|
+
return o.forEach((s) => {
|
|
68
|
+
e.has(s.formCode) || e.set(s.formCode, {
|
|
69
|
+
sourceFormCode: s.sourceFormCode,
|
|
70
|
+
formName: s.formName,
|
|
71
|
+
formCode: s.formCode,
|
|
72
|
+
versions: JSON.parse(s.versions).filter(
|
|
73
|
+
(n) => n.version !== "DRAFT"
|
|
74
|
+
),
|
|
75
|
+
formUUID: s.uuid,
|
|
76
|
+
builderType: s.builderType,
|
|
77
|
+
migrationList: s.migrationList,
|
|
78
|
+
migrationListAll: s.migrationList
|
|
79
|
+
});
|
|
80
|
+
}), Array.from(e.values());
|
|
81
|
+
}));
|
|
82
|
+
} catch (r) {
|
|
83
|
+
S({
|
|
84
|
+
message: r,
|
|
85
|
+
type: "error"
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
}, ge = async (r) => {
|
|
89
|
+
if (r && m) {
|
|
90
|
+
const o = m.map((e) => e.formUUID);
|
|
91
|
+
try {
|
|
92
|
+
const e = await te.get(
|
|
93
|
+
"sync/migrationUUIDsByListOfFormMasterUUIDSource",
|
|
94
|
+
{
|
|
95
|
+
params: {
|
|
96
|
+
formMasterUUIDs: o,
|
|
97
|
+
serverCode: r.code
|
|
98
|
+
},
|
|
99
|
+
paramsSerializer: {
|
|
100
|
+
serialize: (s) => Object.entries(s).map(
|
|
101
|
+
([n, a]) => Array.isArray(a) ? a.map((c) => `${n}=${encodeURIComponent(c)}`).join("&") : `${n}=${encodeURIComponent(a)}`
|
|
102
|
+
).join("&")
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
H([...e.data]);
|
|
107
|
+
} catch (e) {
|
|
108
|
+
console.error("Error fetching UUIDs:", e);
|
|
109
|
+
}
|
|
110
|
+
} else
|
|
111
|
+
H([]);
|
|
112
|
+
}, ye = async () => {
|
|
113
|
+
try {
|
|
114
|
+
const r = (await Oe({
|
|
115
|
+
code: "fetch_server_details"
|
|
116
|
+
})).data;
|
|
117
|
+
r.result && ie(r.result);
|
|
118
|
+
} catch (r) {
|
|
119
|
+
S({
|
|
120
|
+
message: r,
|
|
121
|
+
type: "error"
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
}, Ce = async () => {
|
|
125
|
+
try {
|
|
126
|
+
const r = (await $e()).data;
|
|
127
|
+
r && le(() => {
|
|
128
|
+
let e = r.split(","), s = [];
|
|
129
|
+
return e.forEach((n) => {
|
|
130
|
+
s.push({
|
|
131
|
+
id: n,
|
|
132
|
+
label: n
|
|
133
|
+
});
|
|
134
|
+
}), s;
|
|
135
|
+
});
|
|
136
|
+
} catch (r) {
|
|
137
|
+
S({
|
|
138
|
+
message: r,
|
|
139
|
+
type: "error"
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
}, be = () => {
|
|
143
|
+
let r = C.getValues("formCode") || [];
|
|
144
|
+
if (r.length > 0) {
|
|
145
|
+
M(r[0]);
|
|
146
|
+
let o = r.map((a) => {
|
|
147
|
+
var l;
|
|
148
|
+
let c = m == null ? void 0 : m.find((p) => p.formCode === a);
|
|
149
|
+
return c ? {
|
|
150
|
+
formName: c.formName,
|
|
151
|
+
formCode: c.formCode,
|
|
152
|
+
formUUID: c.formUUID,
|
|
153
|
+
migrationList: (l = c.migrationList) == null ? void 0 : l.filter(
|
|
154
|
+
(p) => !u.includes(p.uuid)
|
|
155
|
+
),
|
|
156
|
+
migrationListAll: c.migrationList
|
|
157
|
+
} : null;
|
|
158
|
+
}).filter(Boolean), e = b.map((a) => a.formCode), s = o.filter(
|
|
159
|
+
(a) => !e.includes(a.formCode)
|
|
160
|
+
), n = e.filter(
|
|
161
|
+
(a) => !r.includes(a)
|
|
162
|
+
);
|
|
163
|
+
s.forEach((a) => {
|
|
164
|
+
const l = (m == null ? void 0 : m.find(
|
|
165
|
+
(p) => p.formCode === a.formCode
|
|
166
|
+
)).versions.reduce(
|
|
167
|
+
(p, v) => parseInt(v.version) > parseInt(p.version) ? v : p
|
|
168
|
+
);
|
|
169
|
+
fe({
|
|
170
|
+
formName: a.formName,
|
|
171
|
+
formCode: a.formCode,
|
|
172
|
+
migrationList: a.migrationList,
|
|
173
|
+
migrationListAll: a.migrationList,
|
|
174
|
+
version: l.version,
|
|
175
|
+
formUUID: a.formUUID,
|
|
176
|
+
builderType: a.builderType
|
|
177
|
+
});
|
|
178
|
+
}), n.forEach((a) => {
|
|
179
|
+
let c = b.findIndex((l) => l.formCode === a);
|
|
180
|
+
c !== -1 && me(c);
|
|
181
|
+
});
|
|
182
|
+
} else
|
|
183
|
+
M(-1), J([]);
|
|
184
|
+
}, Se = () => ce((r) => !r), xe = () => {
|
|
185
|
+
V(!1);
|
|
186
|
+
}, X = async (r, o, e) => {
|
|
187
|
+
try {
|
|
188
|
+
return await rr.getEncodedData(r, o, e);
|
|
189
|
+
} catch (s) {
|
|
190
|
+
return console.error(s), null;
|
|
191
|
+
}
|
|
192
|
+
}, De = (r, o) => Object.entries(r).filter(([e]) => !o.includes(e)).sort(([, e], [, s]) => e.createdOn - s.createdOn).map(([e]) => e), we = async (r) => {
|
|
193
|
+
try {
|
|
194
|
+
y(!0);
|
|
195
|
+
const o = await te.get("/login/get-key-and-iv", {
|
|
196
|
+
withCredentials: !0
|
|
197
|
+
}), e = await X(
|
|
198
|
+
o.data.key,
|
|
199
|
+
o.data.initVector,
|
|
200
|
+
r.userName
|
|
201
|
+
), s = await X(
|
|
202
|
+
o.data.key,
|
|
203
|
+
o.data.initVector,
|
|
204
|
+
r.password
|
|
205
|
+
), n = r.formDetails.map((l) => {
|
|
206
|
+
let p = De(
|
|
207
|
+
E[l.formCode] || {},
|
|
208
|
+
u || []
|
|
209
|
+
);
|
|
210
|
+
return {
|
|
211
|
+
formMasterUUID: l.formUUID,
|
|
212
|
+
version: l.version,
|
|
213
|
+
migrationUUIDList: p,
|
|
214
|
+
builderType: l.builderType
|
|
215
|
+
};
|
|
216
|
+
}), a = [];
|
|
217
|
+
ne.forEach((l) => {
|
|
218
|
+
l.sourceFormCode != l.formCode && a.push({ [l.sourceFormCode]: l.formCode });
|
|
219
|
+
});
|
|
220
|
+
const c = {
|
|
221
|
+
menuConfigId: $,
|
|
222
|
+
navigationState: _,
|
|
223
|
+
formConfigsData: n,
|
|
224
|
+
routeGraphMap: a,
|
|
225
|
+
transactionRequestData: {
|
|
226
|
+
serverCode: r.serverName,
|
|
227
|
+
requestMessage: r.requestMessage,
|
|
228
|
+
featureType: "FORM_CONFIGURATOR",
|
|
229
|
+
featureReferenceType: "FEATURE",
|
|
230
|
+
featureReferenceId: _
|
|
231
|
+
},
|
|
232
|
+
authRequestData: {
|
|
233
|
+
userName: e,
|
|
234
|
+
password: s,
|
|
235
|
+
grantType: "password",
|
|
236
|
+
clientId: "imtecho-ui"
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
if (f === "SYNC")
|
|
240
|
+
try {
|
|
241
|
+
y(!0);
|
|
242
|
+
const l = await _e(c);
|
|
243
|
+
y(!1), l.data.isSuccess ? (S({
|
|
244
|
+
type: "success",
|
|
245
|
+
message: "Synced to server successfully."
|
|
246
|
+
}), V(!1)) : (S({
|
|
247
|
+
type: "error",
|
|
248
|
+
message: "Issue in syncing with server."
|
|
249
|
+
}), console.error("error", l.data.error));
|
|
250
|
+
} catch (l) {
|
|
251
|
+
y(!1), S({
|
|
252
|
+
type: "error",
|
|
253
|
+
message: "Sync failed: Unauthorized access"
|
|
254
|
+
}), console.error("error", l);
|
|
255
|
+
}
|
|
256
|
+
if (f === "DOWNLOAD")
|
|
257
|
+
try {
|
|
258
|
+
y(!0);
|
|
259
|
+
const l = await Ve(c), v = `V${Date.now()}__${c.navigationState}__feature.json`, Ie = new Blob([l.data], { type: "application/json" }), K = window.URL.createObjectURL(Ie), U = document.createElement("a");
|
|
260
|
+
U.href = K, U.setAttribute("download", v), document.body.appendChild(U), U.click(), U.remove(), window.URL.revokeObjectURL(K), y(!1);
|
|
261
|
+
} catch (l) {
|
|
262
|
+
y(!1), S({
|
|
263
|
+
type: "error",
|
|
264
|
+
message: "Download failed"
|
|
265
|
+
}), console.error("error", l);
|
|
266
|
+
}
|
|
267
|
+
y(!1);
|
|
268
|
+
} catch (o) {
|
|
269
|
+
y(!1), console.error("error", o);
|
|
270
|
+
}
|
|
271
|
+
}, ve = (r, o, e) => {
|
|
272
|
+
let s = { ...E };
|
|
273
|
+
r.target.checked ? (Object.prototype.hasOwnProperty.call(
|
|
274
|
+
s,
|
|
275
|
+
o
|
|
276
|
+
) || (s[o] = {}), s[o][e.uuid] = e) : delete s[o][e.uuid], G({ ...s });
|
|
277
|
+
}, Ue = (r) => {
|
|
278
|
+
const o = new Date(r), e = String(o.getDate()).padStart(2, "0"), s = String(o.getMonth() + 1).padStart(2, "0"), n = o.getFullYear();
|
|
279
|
+
let a = o.getHours();
|
|
280
|
+
const c = String(o.getMinutes()).padStart(2, "0");
|
|
281
|
+
return a = String(a).padStart(2, "0"), `${e}/${s}/${n} ${a}:${c}`;
|
|
282
|
+
};
|
|
283
|
+
return /* @__PURE__ */ t(
|
|
284
|
+
Le,
|
|
285
|
+
{
|
|
286
|
+
open: q,
|
|
287
|
+
slots: { backdrop: Q },
|
|
288
|
+
slotProps: {
|
|
289
|
+
backdrop: {
|
|
290
|
+
timeout: 500
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
PaperProps: {
|
|
294
|
+
style: {
|
|
295
|
+
borderRadius: "8px"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
children: /* @__PURE__ */ t(Ne, { in: q, children: /* @__PURE__ */ i(
|
|
299
|
+
h,
|
|
300
|
+
{
|
|
301
|
+
sx: {
|
|
302
|
+
position: "absolute",
|
|
303
|
+
top: "50%",
|
|
304
|
+
left: "50%",
|
|
305
|
+
padding: "10px 25px",
|
|
306
|
+
transform: "translate(-50%, -50%)",
|
|
307
|
+
width: "80%",
|
|
308
|
+
maxHeight: "90%",
|
|
309
|
+
scrollbarWidth: "none",
|
|
310
|
+
overflowY: "scroll",
|
|
311
|
+
bgcolor: "background.paper",
|
|
312
|
+
borderRadius: "12px",
|
|
313
|
+
boxShadow: 12,
|
|
314
|
+
transition: "all 0.5s ease !important"
|
|
315
|
+
},
|
|
316
|
+
children: [
|
|
317
|
+
/* @__PURE__ */ i(
|
|
318
|
+
h,
|
|
319
|
+
{
|
|
320
|
+
sx: {
|
|
321
|
+
display: "flex",
|
|
322
|
+
justifyContent: "space-between",
|
|
323
|
+
alignItems: "center"
|
|
324
|
+
},
|
|
325
|
+
children: [
|
|
326
|
+
/* @__PURE__ */ i(W, { variant: "h6", className: "text-customBlue", children: [
|
|
327
|
+
x("Sync"),
|
|
328
|
+
" ",
|
|
329
|
+
R == null ? void 0 : R.name
|
|
330
|
+
] }),
|
|
331
|
+
/* @__PURE__ */ t(Z, { onClick: xe, children: /* @__PURE__ */ t(D, { icon: He }) })
|
|
332
|
+
]
|
|
333
|
+
}
|
|
334
|
+
),
|
|
335
|
+
/* @__PURE__ */ i("form", { noValidate: !0, onSubmit: C.handleSubmit(we), children: [
|
|
336
|
+
/* @__PURE__ */ i(h, { sx: { my: 2 }, children: [
|
|
337
|
+
/* @__PURE__ */ t(
|
|
338
|
+
Q,
|
|
339
|
+
{
|
|
340
|
+
sx: (r) => ({
|
|
341
|
+
color: "#fff",
|
|
342
|
+
zIndex: r.zIndex.drawer + 1
|
|
343
|
+
}),
|
|
344
|
+
open: de,
|
|
345
|
+
children: /* @__PURE__ */ i(
|
|
346
|
+
h,
|
|
347
|
+
{
|
|
348
|
+
sx: {
|
|
349
|
+
backgroundColor: "white",
|
|
350
|
+
p: 3,
|
|
351
|
+
color: "black",
|
|
352
|
+
display: "flex",
|
|
353
|
+
justifyContent: "space-between",
|
|
354
|
+
alignItems: "center",
|
|
355
|
+
borderRadius: "10px"
|
|
356
|
+
},
|
|
357
|
+
children: [
|
|
358
|
+
/* @__PURE__ */ t(ze, { color: "inherit" }),
|
|
359
|
+
/* @__PURE__ */ t(W, { sx: { ml: 2 }, children: "Syncing feature, it may take some time, please wait..." })
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
)
|
|
363
|
+
}
|
|
364
|
+
),
|
|
365
|
+
/* @__PURE__ */ i(d, { container: !0, spacing: 2, children: [
|
|
366
|
+
/* @__PURE__ */ i(d, { size: 5, container: !0, children: [
|
|
367
|
+
/* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ i(
|
|
368
|
+
ee,
|
|
369
|
+
{
|
|
370
|
+
value: f,
|
|
371
|
+
onChange: pe,
|
|
372
|
+
variant: "fullWidth",
|
|
373
|
+
children: [
|
|
374
|
+
/* @__PURE__ */ t(P, { label: "SYNC", value: "SYNC" }),
|
|
375
|
+
/* @__PURE__ */ t(P, { label: "DOWNLOAD", value: "DOWNLOAD" })
|
|
376
|
+
]
|
|
377
|
+
}
|
|
378
|
+
) }),
|
|
379
|
+
["SYNC"].includes(f) && /* @__PURE__ */ i(j, { children: [
|
|
380
|
+
/* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(I, { label: "Server and form details", size: "small" }) }) }),
|
|
381
|
+
/* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ i(O, { fullWidth: !0, children: [
|
|
382
|
+
/* @__PURE__ */ t(L, { required: !0, children: "Select server" }),
|
|
383
|
+
/* @__PURE__ */ t(
|
|
384
|
+
z,
|
|
385
|
+
{
|
|
386
|
+
name: "serverName",
|
|
387
|
+
control: C.control,
|
|
388
|
+
rules: {
|
|
389
|
+
required: {
|
|
390
|
+
value: !0,
|
|
391
|
+
message: "Select server"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
render: ({
|
|
395
|
+
field: { onChange: r, value: o },
|
|
396
|
+
fieldState: { error: e }
|
|
397
|
+
}) => {
|
|
398
|
+
const s = A == null ? void 0 : A.filter(
|
|
399
|
+
(n) => o == null ? void 0 : o.includes(n.code)
|
|
400
|
+
);
|
|
401
|
+
return /* @__PURE__ */ t(
|
|
402
|
+
Y,
|
|
403
|
+
{
|
|
404
|
+
fullWidth: !0,
|
|
405
|
+
size: "small",
|
|
406
|
+
options: A || [],
|
|
407
|
+
getOptionLabel: (n) => n.serverDetails || "",
|
|
408
|
+
value: s,
|
|
409
|
+
getOptionDisabled: (n) => o == null ? void 0 : o.includes(n.code),
|
|
410
|
+
onChange: (n, a) => {
|
|
411
|
+
const c = a == null ? void 0 : a.code;
|
|
412
|
+
r(c), ge(a);
|
|
413
|
+
},
|
|
414
|
+
renderInput: (n) => /* @__PURE__ */ t(
|
|
415
|
+
F,
|
|
416
|
+
{
|
|
417
|
+
...n,
|
|
418
|
+
placeholder: "Select server",
|
|
419
|
+
variant: "outlined",
|
|
420
|
+
error: e,
|
|
421
|
+
helperText: e == null ? void 0 : e.message
|
|
422
|
+
}
|
|
423
|
+
)
|
|
424
|
+
}
|
|
425
|
+
);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
)
|
|
429
|
+
] }) })
|
|
430
|
+
] }),
|
|
431
|
+
["DOWNLOAD", "SYNC"].includes(f) && /* @__PURE__ */ t(j, { children: /* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ i(O, { fullWidth: !0, children: [
|
|
432
|
+
/* @__PURE__ */ i(L, { required: !0, children: [
|
|
433
|
+
x("Select"),
|
|
434
|
+
" ",
|
|
435
|
+
x("forms")
|
|
436
|
+
] }),
|
|
437
|
+
/* @__PURE__ */ t(
|
|
438
|
+
z,
|
|
439
|
+
{
|
|
440
|
+
name: "formCode",
|
|
441
|
+
rules: {
|
|
442
|
+
required: {
|
|
443
|
+
value: !0,
|
|
444
|
+
message: "Select server"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
control: C.control,
|
|
448
|
+
render: ({
|
|
449
|
+
field: { onChange: r, value: o },
|
|
450
|
+
fieldState: { error: e }
|
|
451
|
+
}) => {
|
|
452
|
+
const s = m == null ? void 0 : m.filter(
|
|
453
|
+
(n) => o == null ? void 0 : o.includes(n.formCode)
|
|
454
|
+
);
|
|
455
|
+
return /* @__PURE__ */ t(
|
|
456
|
+
Y,
|
|
457
|
+
{
|
|
458
|
+
multiple: !0,
|
|
459
|
+
size: "small",
|
|
460
|
+
options: m || [],
|
|
461
|
+
disableCloseOnSelect: !0,
|
|
462
|
+
getOptionLabel: (n) => n.formName || "",
|
|
463
|
+
value: s,
|
|
464
|
+
getOptionDisabled: (n) => o == null ? void 0 : o.includes(n.formCode),
|
|
465
|
+
onChange: (n, a) => {
|
|
466
|
+
const c = a.map(
|
|
467
|
+
(l) => l.formCode
|
|
468
|
+
);
|
|
469
|
+
r(c), be();
|
|
470
|
+
},
|
|
471
|
+
renderInput: (n) => /* @__PURE__ */ t(
|
|
472
|
+
F,
|
|
473
|
+
{
|
|
474
|
+
...n,
|
|
475
|
+
placeholder: "Select all forms to sync",
|
|
476
|
+
variant: "outlined",
|
|
477
|
+
error: e,
|
|
478
|
+
helperText: e == null ? void 0 : e.message
|
|
479
|
+
}
|
|
480
|
+
)
|
|
481
|
+
}
|
|
482
|
+
);
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
)
|
|
486
|
+
] }) }) }),
|
|
487
|
+
["SYNC"].includes(f) && /* @__PURE__ */ i(j, { children: [
|
|
488
|
+
/* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(
|
|
489
|
+
I,
|
|
490
|
+
{
|
|
491
|
+
label: /* @__PURE__ */ i(h, { children: [
|
|
492
|
+
/* @__PURE__ */ t(h, { component: "span", sx: { mr: 0.5 }, children: "User authentication details" }),
|
|
493
|
+
/* @__PURE__ */ t(Ae, { title: "Only selected users can perform the sync operation", children: /* @__PURE__ */ t(D, { icon: Je }) })
|
|
494
|
+
] }),
|
|
495
|
+
size: "small"
|
|
496
|
+
}
|
|
497
|
+
) }) }),
|
|
498
|
+
/* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ i(O, { variant: "outlined", fullWidth: !0, children: [
|
|
499
|
+
/* @__PURE__ */ i(L, { required: !0, children: [
|
|
500
|
+
x("Select"),
|
|
501
|
+
" ",
|
|
502
|
+
x("user")
|
|
503
|
+
] }),
|
|
504
|
+
/* @__PURE__ */ t(
|
|
505
|
+
z,
|
|
506
|
+
{
|
|
507
|
+
name: "userName",
|
|
508
|
+
rules: {
|
|
509
|
+
required: {
|
|
510
|
+
value: !0,
|
|
511
|
+
message: "Select username"
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
control: C.control,
|
|
515
|
+
render: ({
|
|
516
|
+
field: { onChange: r, value: o },
|
|
517
|
+
fieldState: { error: e }
|
|
518
|
+
}) => /* @__PURE__ */ t(
|
|
519
|
+
Y,
|
|
520
|
+
{
|
|
521
|
+
size: "small",
|
|
522
|
+
options: T || [],
|
|
523
|
+
getOptionLabel: (s) => (s == null ? void 0 : s.label) || "",
|
|
524
|
+
value: (T == null ? void 0 : T.find(
|
|
525
|
+
(s) => s.id === o
|
|
526
|
+
)) || null,
|
|
527
|
+
onChange: (s, n) => {
|
|
528
|
+
r(n ? n.id : null);
|
|
529
|
+
},
|
|
530
|
+
renderInput: (s) => /* @__PURE__ */ t(
|
|
531
|
+
F,
|
|
532
|
+
{
|
|
533
|
+
...s,
|
|
534
|
+
placeholder: "Select user",
|
|
535
|
+
variant: "outlined",
|
|
536
|
+
error: e,
|
|
537
|
+
helperText: e == null ? void 0 : e.message
|
|
538
|
+
}
|
|
539
|
+
)
|
|
540
|
+
}
|
|
541
|
+
)
|
|
542
|
+
}
|
|
543
|
+
)
|
|
544
|
+
] }) }),
|
|
545
|
+
/* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ i(O, { fullWidth: !0, children: [
|
|
546
|
+
/* @__PURE__ */ t(
|
|
547
|
+
L,
|
|
548
|
+
{
|
|
549
|
+
required: !0,
|
|
550
|
+
color: "text.primary",
|
|
551
|
+
sx: { mb: 0.5 },
|
|
552
|
+
children: x("Password")
|
|
553
|
+
}
|
|
554
|
+
),
|
|
555
|
+
/* @__PURE__ */ t(
|
|
556
|
+
z,
|
|
557
|
+
{
|
|
558
|
+
name: "password",
|
|
559
|
+
rules: {
|
|
560
|
+
required: {
|
|
561
|
+
value: !0,
|
|
562
|
+
message: "Enter password"
|
|
563
|
+
}
|
|
564
|
+
},
|
|
565
|
+
control: C.control,
|
|
566
|
+
errors: C.formState.errors,
|
|
567
|
+
defaultValue: "",
|
|
568
|
+
render: ({
|
|
569
|
+
field: { onChange: r, value: o },
|
|
570
|
+
fieldState: { error: e }
|
|
571
|
+
}) => /* @__PURE__ */ i(h, { sx: { mb: 1 }, children: [
|
|
572
|
+
/* @__PURE__ */ t(
|
|
573
|
+
Te,
|
|
574
|
+
{
|
|
575
|
+
fullWidth: !0,
|
|
576
|
+
type: k ? "text" : "password",
|
|
577
|
+
value: o,
|
|
578
|
+
size: "small",
|
|
579
|
+
placeholder: "Enter password",
|
|
580
|
+
onChange: r,
|
|
581
|
+
error: e,
|
|
582
|
+
endAdornment: /* @__PURE__ */ t(Ee, { position: "end", children: /* @__PURE__ */ t(
|
|
583
|
+
Z,
|
|
584
|
+
{
|
|
585
|
+
"aria-label": k ? "hide the password" : "display the password",
|
|
586
|
+
onClick: Se,
|
|
587
|
+
onMouseDown: (s) => s.preventDefault(),
|
|
588
|
+
onMouseUp: (s) => s.preventDefault(),
|
|
589
|
+
edge: "end",
|
|
590
|
+
children: k ? /* @__PURE__ */ t(
|
|
591
|
+
D,
|
|
592
|
+
{
|
|
593
|
+
icon: Xe,
|
|
594
|
+
size: "xs"
|
|
595
|
+
}
|
|
596
|
+
) : /* @__PURE__ */ t(
|
|
597
|
+
D,
|
|
598
|
+
{
|
|
599
|
+
icon: Ke,
|
|
600
|
+
size: "xs"
|
|
601
|
+
}
|
|
602
|
+
)
|
|
603
|
+
}
|
|
604
|
+
) })
|
|
605
|
+
}
|
|
606
|
+
),
|
|
607
|
+
e && /* @__PURE__ */ t(Fe, { error: e, children: e == null ? void 0 : e.message })
|
|
608
|
+
] })
|
|
609
|
+
}
|
|
610
|
+
)
|
|
611
|
+
] }) }),
|
|
612
|
+
/* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ i(O, { fullWidth: !0, children: [
|
|
613
|
+
/* @__PURE__ */ i(L, { required: !0, children: [
|
|
614
|
+
x("Request"),
|
|
615
|
+
" ",
|
|
616
|
+
x("message")
|
|
617
|
+
] }),
|
|
618
|
+
/* @__PURE__ */ t(
|
|
619
|
+
z,
|
|
620
|
+
{
|
|
621
|
+
name: "requestMessage",
|
|
622
|
+
rules: {
|
|
623
|
+
required: {
|
|
624
|
+
value: !0,
|
|
625
|
+
message: "Enter request message"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
control: C.control,
|
|
629
|
+
render: ({ field: r, fieldState: { error: o } }) => /* @__PURE__ */ t(
|
|
630
|
+
F,
|
|
631
|
+
{
|
|
632
|
+
multiline: !0,
|
|
633
|
+
rows: 4,
|
|
634
|
+
size: "small",
|
|
635
|
+
placeholder: "Enter request message",
|
|
636
|
+
...r,
|
|
637
|
+
error: o,
|
|
638
|
+
helperText: o == null ? void 0 : o.message
|
|
639
|
+
}
|
|
640
|
+
)
|
|
641
|
+
}
|
|
642
|
+
)
|
|
643
|
+
] }) })
|
|
644
|
+
] })
|
|
645
|
+
] }),
|
|
646
|
+
/* @__PURE__ */ t(d, { size: 7, children: /* @__PURE__ */ t(h, { children: b.length > 0 ? /* @__PURE__ */ i(We.Fragment, { children: [
|
|
647
|
+
/* @__PURE__ */ t(Re, { sx: { mt: 1 }, severity: "info", children: "Please select the migration corresponding to the respective form for synchronization" }),
|
|
648
|
+
/* @__PURE__ */ t(
|
|
649
|
+
ee,
|
|
650
|
+
{
|
|
651
|
+
value: w,
|
|
652
|
+
onChange: (r, o) => {
|
|
653
|
+
M(o);
|
|
654
|
+
},
|
|
655
|
+
children: b == null ? void 0 : b.map((r) => /* @__PURE__ */ t(
|
|
656
|
+
P,
|
|
657
|
+
{
|
|
658
|
+
value: r.formCode,
|
|
659
|
+
label: /* @__PURE__ */ t(
|
|
660
|
+
tr,
|
|
661
|
+
{
|
|
662
|
+
label: r.formCode,
|
|
663
|
+
value: `V${r.version}`,
|
|
664
|
+
color: "info.main",
|
|
665
|
+
tooltipValue: `Version ${r.version} of ${r.formName} will be synced`,
|
|
666
|
+
showTooltip: !0,
|
|
667
|
+
valueSize: 30,
|
|
668
|
+
fontSize: "0.8rem"
|
|
669
|
+
}
|
|
670
|
+
)
|
|
671
|
+
},
|
|
672
|
+
r.formUUID
|
|
673
|
+
))
|
|
674
|
+
}
|
|
675
|
+
),
|
|
676
|
+
/* @__PURE__ */ t(B, { sx: { mb: 1 } }),
|
|
677
|
+
w != -1 && (() => {
|
|
678
|
+
var o;
|
|
679
|
+
const r = b.find(
|
|
680
|
+
(e) => e.formCode === w
|
|
681
|
+
);
|
|
682
|
+
return /* @__PURE__ */ i(
|
|
683
|
+
d,
|
|
684
|
+
{
|
|
685
|
+
spacing: 2,
|
|
686
|
+
container: !0,
|
|
687
|
+
sx: { maxHeight: "50vh", overflowY: "scroll" },
|
|
688
|
+
children: [
|
|
689
|
+
(r == null ? void 0 : r.migrationList.length) === 0 && /* @__PURE__ */ t(d, { size: 12, children: /* @__PURE__ */ i(oe, { height: "250px", children: [
|
|
690
|
+
"No migration queries present for (",
|
|
691
|
+
r.formName,
|
|
692
|
+
")"
|
|
693
|
+
] }) }),
|
|
694
|
+
(o = r == null ? void 0 : r.migrationList) == null ? void 0 : o.map(
|
|
695
|
+
(e) => {
|
|
696
|
+
var s, n;
|
|
697
|
+
return /* @__PURE__ */ i(
|
|
698
|
+
d,
|
|
699
|
+
{
|
|
700
|
+
size: 12,
|
|
701
|
+
container: !0,
|
|
702
|
+
children: [
|
|
703
|
+
/* @__PURE__ */ t(d, { size: 1, children: /* @__PURE__ */ t(
|
|
704
|
+
qe,
|
|
705
|
+
{
|
|
706
|
+
value: ((s = Object.keys(
|
|
707
|
+
E[w] || {}
|
|
708
|
+
)) == null ? void 0 : s.includes(e.uuid)) && (!(u != null && u.includes(
|
|
709
|
+
e.uuid
|
|
710
|
+
)) || f == "DOWNLOAD"),
|
|
711
|
+
checked: ((n = Object.keys(
|
|
712
|
+
E[w] || {}
|
|
713
|
+
)) == null ? void 0 : n.includes(e.uuid)) && (!(u != null && u.includes(
|
|
714
|
+
e.uuid
|
|
715
|
+
)) || f == "DOWNLOAD"),
|
|
716
|
+
disabled: (u == null ? void 0 : u.includes(
|
|
717
|
+
e.uuid
|
|
718
|
+
)) && f === "SYNC",
|
|
719
|
+
sx: {
|
|
720
|
+
"& .MuiSvgIcon-root": {
|
|
721
|
+
fontSize: 32
|
|
722
|
+
},
|
|
723
|
+
mr: 1
|
|
724
|
+
},
|
|
725
|
+
onChange: (a) => {
|
|
726
|
+
ve(
|
|
727
|
+
a,
|
|
728
|
+
w,
|
|
729
|
+
e
|
|
730
|
+
);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
) }),
|
|
734
|
+
/* @__PURE__ */ t(d, { size: 11, children: /* @__PURE__ */ i(
|
|
735
|
+
ke,
|
|
736
|
+
{
|
|
737
|
+
slotProps: {
|
|
738
|
+
transition: { unmountOnExit: !0 }
|
|
739
|
+
},
|
|
740
|
+
children: [
|
|
741
|
+
/* @__PURE__ */ t(
|
|
742
|
+
Me,
|
|
743
|
+
{
|
|
744
|
+
expandIcon: /* @__PURE__ */ t(
|
|
745
|
+
D,
|
|
746
|
+
{
|
|
747
|
+
icon: Qe
|
|
748
|
+
}
|
|
749
|
+
),
|
|
750
|
+
"aria-controls": "panel1-content",
|
|
751
|
+
id: "panel1-header",
|
|
752
|
+
sx: {
|
|
753
|
+
backgroundColor: "background.default"
|
|
754
|
+
},
|
|
755
|
+
children: /* @__PURE__ */ i(W, { component: "span", children: [
|
|
756
|
+
"Created on :",
|
|
757
|
+
" ",
|
|
758
|
+
Ue(e.createdOn),
|
|
759
|
+
/* @__PURE__ */ t(
|
|
760
|
+
I,
|
|
761
|
+
{
|
|
762
|
+
sx: { ml: 2 },
|
|
763
|
+
size: "small",
|
|
764
|
+
color: e.isExecuted ? "success" : "warning",
|
|
765
|
+
label: e.isExecuted ? "Executed" : "Not Executed"
|
|
766
|
+
}
|
|
767
|
+
),
|
|
768
|
+
e.isExecuted && e.isError && /* @__PURE__ */ t(
|
|
769
|
+
I,
|
|
770
|
+
{
|
|
771
|
+
sx: { ml: 2 },
|
|
772
|
+
size: "small",
|
|
773
|
+
color: "error",
|
|
774
|
+
label: "Error"
|
|
775
|
+
}
|
|
776
|
+
),
|
|
777
|
+
(u == null ? void 0 : u.includes(
|
|
778
|
+
e.uuid
|
|
779
|
+
)) && f === "SYNC" && /* @__PURE__ */ t(
|
|
780
|
+
I,
|
|
781
|
+
{
|
|
782
|
+
sx: { ml: 2 },
|
|
783
|
+
size: "small",
|
|
784
|
+
color: "info",
|
|
785
|
+
label: "Synced"
|
|
786
|
+
}
|
|
787
|
+
)
|
|
788
|
+
] })
|
|
789
|
+
}
|
|
790
|
+
),
|
|
791
|
+
/* @__PURE__ */ t(je, { children: /* @__PURE__ */ t(
|
|
792
|
+
or,
|
|
793
|
+
{
|
|
794
|
+
mode: "READ_ONLY",
|
|
795
|
+
defaultValue: e == null ? void 0 : e.query
|
|
796
|
+
}
|
|
797
|
+
) })
|
|
798
|
+
]
|
|
799
|
+
}
|
|
800
|
+
) })
|
|
801
|
+
]
|
|
802
|
+
},
|
|
803
|
+
e.uuid
|
|
804
|
+
);
|
|
805
|
+
}
|
|
806
|
+
)
|
|
807
|
+
]
|
|
808
|
+
},
|
|
809
|
+
r.formCode
|
|
810
|
+
);
|
|
811
|
+
})()
|
|
812
|
+
] }) : /* @__PURE__ */ t(h, { sx: { mt: 1 }, children: /* @__PURE__ */ t(oe, { height: "250px", children: "Please select forms to sync" }) }) }) })
|
|
813
|
+
] })
|
|
814
|
+
] }),
|
|
815
|
+
/* @__PURE__ */ i(
|
|
816
|
+
h,
|
|
817
|
+
{
|
|
818
|
+
sx: {
|
|
819
|
+
my: 1,
|
|
820
|
+
display: "flex",
|
|
821
|
+
justifyContent: "end",
|
|
822
|
+
alignItems: "center"
|
|
823
|
+
},
|
|
824
|
+
children: [
|
|
825
|
+
["SYNC"].includes(f) && /* @__PURE__ */ t(
|
|
826
|
+
re,
|
|
827
|
+
{
|
|
828
|
+
type: "submit",
|
|
829
|
+
startIcon: /* @__PURE__ */ t(D, { size: "lg", icon: Ze }),
|
|
830
|
+
color: "success",
|
|
831
|
+
size: "small",
|
|
832
|
+
variant: "contained",
|
|
833
|
+
sx: { mr: 1 },
|
|
834
|
+
children: "Start Syncing"
|
|
835
|
+
}
|
|
836
|
+
),
|
|
837
|
+
["DOWNLOAD"].includes(f) && /* @__PURE__ */ t(
|
|
838
|
+
re,
|
|
839
|
+
{
|
|
840
|
+
type: "submit",
|
|
841
|
+
startIcon: /* @__PURE__ */ t(D, { size: "lg", icon: er }),
|
|
842
|
+
color: "success",
|
|
843
|
+
size: "small",
|
|
844
|
+
variant: "contained",
|
|
845
|
+
sx: { mr: 1 },
|
|
846
|
+
children: "Download Config"
|
|
847
|
+
}
|
|
848
|
+
)
|
|
849
|
+
]
|
|
850
|
+
}
|
|
851
|
+
)
|
|
852
|
+
] })
|
|
853
|
+
]
|
|
854
|
+
}
|
|
855
|
+
) })
|
|
856
|
+
}
|
|
857
|
+
);
|
|
858
|
+
}
|
|
859
|
+
sr.propTypes = {
|
|
860
|
+
id: N.any,
|
|
861
|
+
selectedFeature: N.any,
|
|
862
|
+
navigationState: N.any,
|
|
863
|
+
openServerSyncModal: N.any,
|
|
864
|
+
openModalFunc: N.any
|
|
865
|
+
};
|
|
866
|
+
export {
|
|
867
|
+
sr as default
|
|
868
|
+
};
|
|
869
|
+
//# sourceMappingURL=ServerSyncModal-uNjGCQJz.js.map
|