@argusoft/medplat-form-engine 1.0.14 → 1.0.16
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-BMRM1u9S-D1Gc0rKI.js +1228 -0
- package/dist/AccessRights-BMRM1u9S-D1Gc0rKI.js.map +1 -0
- package/dist/AddEditQueryBuilder-7JRplV5J-DHgS6TYG.js +313 -0
- package/dist/AddEditQueryBuilder-7JRplV5J-DHgS6TYG.js.map +1 -0
- package/dist/AddEditQueryBuilder-7JRplV5J.css +1 -0
- package/dist/AddFeatures-CkTu7sOI-BGplSFp6.js +212 -0
- package/dist/AddFeatures-CkTu7sOI-BGplSFp6.js.map +1 -0
- package/dist/AddLabelModal-DE3ploGD-OOyaGC02.js +734 -0
- package/dist/AddLabelModal-DE3ploGD-OOyaGC02.js.map +1 -0
- package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js +5389 -0
- package/dist/AddMenuConfiguration-QWfpcnuP-TAM2c68S.js.map +1 -0
- package/dist/AddMenuConfiguration-QWfpcnuP.css +1 -0
- package/dist/AddRoleDrawer-ZK1eejxI-BM6rfhh5.js +453 -0
- package/dist/AddRoleDrawer-ZK1eejxI-BM6rfhh5.js.map +1 -0
- package/dist/AppModal-BgZyfrd--BO3wW4ma.js +428 -0
- package/dist/AppModal-BgZyfrd--BO3wW4ma.js.map +1 -0
- package/dist/ChangePasswordModalCore-DIe4rzW--CSDVIGsb.js +176 -0
- package/dist/ChangePasswordModalCore-DIe4rzW--CSDVIGsb.js.map +1 -0
- package/dist/ConditionConfig-GDCXIg3C-DuEy85LD.js +395 -0
- package/dist/ConditionConfig-GDCXIg3C-DuEy85LD.js.map +1 -0
- package/dist/ConditionConfig-GDCXIg3C.css +1 -0
- package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js +50 -0
- package/dist/EntityManagement-D-x6Qzal-BE01iKNR.js.map +1 -0
- package/dist/EventConfigurations-jGCJ4LqP-CJBCGp6J.js +384 -0
- package/dist/EventConfigurations-jGCJ4LqP-CJBCGp6J.js.map +1 -0
- package/dist/EventConfigurations-jGCJ4LqP.css +1 -0
- package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js +200 -0
- package/dist/EventsExceptionModal-BF6E1Np7-DHT7pQsx.js.map +1 -0
- package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js +74 -0
- package/dist/EventsSkeleton-BN7_0IGs-BAnd1Vug.js.map +1 -0
- package/dist/FeatureMenu-Ds6lFg4w-ShGx4okQ.js +249 -0
- package/dist/FeatureMenu-Ds6lFg4w-ShGx4okQ.js.map +1 -0
- package/dist/Features-Cshdl06N-CZ02Tt89.js +12 -0
- package/dist/Features-Cshdl06N-CZ02Tt89.js.map +1 -0
- package/dist/FileSaver.min-CN9EpL2h-N-3OFAd7.js +77 -0
- package/dist/FileSaver.min-CN9EpL2h-N-3OFAd7.js.map +1 -0
- package/dist/FlywayQuery-Cx2sly6g-DdhUw6bN.js +169 -0
- package/dist/FlywayQuery-Cx2sly6g-DdhUw6bN.js.map +1 -0
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF-B2XcYTYJ.js +5162 -0
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF-B2XcYTYJ.js.map +1 -0
- package/dist/ImmunizationConfigurationBase-DZ8EqXlF.css +1 -0
- package/dist/ImmunizationConfigurationsList-CQnxWa09-Bbr0iyGy.js +335 -0
- package/dist/ImmunizationConfigurationsList-CQnxWa09-Bbr0iyGy.js.map +1 -0
- package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js +186 -0
- package/dist/ImmunizationSkeleton-D2tdv5k--B7SY-gnr.js.map +1 -0
- package/dist/LanguagesModal-rk6IGQwY-B0Jtpivu.js +394 -0
- package/dist/LanguagesModal-rk6IGQwY-B0Jtpivu.js.map +1 -0
- package/dist/ManageDynamicFeature-C2I7Ho7i-Bbxkpw0S.js +4189 -0
- package/dist/ManageDynamicFeature-C2I7Ho7i-Bbxkpw0S.js.map +1 -0
- package/dist/ManageEventConfiguration-BJxS2Su0-CRATBMym.js +1017 -0
- package/dist/ManageEventConfiguration-BJxS2Su0-CRATBMym.js.map +1 -0
- package/dist/ManageEventConfiguration-BJxS2Su0.css +1 -0
- package/dist/ManageNotification-DMN2szWy-DQvdrfwC.js +6819 -0
- package/dist/ManageNotification-DMN2szWy-DQvdrfwC.js.map +1 -0
- package/dist/ManageRole-CuXmWQyp-Cy15Mlax.js +728 -0
- package/dist/ManageRole-CuXmWQyp-Cy15Mlax.js.map +1 -0
- package/dist/ManageTranslation-BTxvSYKb-CdO4Fk7f.js +616 -0
- package/dist/ManageTranslation-BTxvSYKb-CdO4Fk7f.js.map +1 -0
- package/dist/ManageTranslation-BTxvSYKb.css +1 -0
- package/dist/ManageUser-Dr3ptCYp-CJBp0yVr.js +2179 -0
- package/dist/ManageUser-Dr3ptCYp-CJBp0yVr.js.map +1 -0
- package/dist/ManageUser-Dr3ptCYp.css +1 -0
- package/dist/MedplatFormWrapper-SwW0rdxN.js +52363 -0
- package/dist/MedplatFormWrapper-SwW0rdxN.js.map +1 -0
- package/dist/MedplatFormWrapper.css +1 -0
- package/dist/MobileMenuManagement-BmrO-7MN-xFkU87j6.js +111 -0
- package/dist/MobileMenuManagement-BmrO-7MN-xFkU87j6.js.map +1 -0
- package/dist/MobileTypeEventConfigModal-ChhO_A4f-DfJDqFB9.js +783 -0
- package/dist/MobileTypeEventConfigModal-ChhO_A4f-DfJDqFB9.js.map +1 -0
- package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js +1002 -0
- package/dist/NewServerManagement-5YcAtF-g-DHV6PFTR.js.map +1 -0
- package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js +244 -0
- package/dist/NotificationFlywayQuery-BY8Zzml_-C7G-28dx.js.map +1 -0
- package/dist/NotificationList-BqibwMaM-D4mMbj4h.js +400 -0
- package/dist/NotificationList-BqibwMaM-D4mMbj4h.js.map +1 -0
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v-D7x0QObl.js +1953 -0
- package/dist/OtherTypeEventConfigModal-ZnCGWm9v-D7x0QObl.js.map +1 -0
- package/dist/QueryBuilder-BPfavHH9-M3wgeHB3.js +378 -0
- package/dist/QueryBuilder-BPfavHH9-M3wgeHB3.js.map +1 -0
- package/dist/QueryBuilder-BPfavHH9.css +1 -0
- package/dist/QueryManagement-DXA73N2j-De9XnBKC.js +671 -0
- package/dist/QueryManagement-DXA73N2j-De9XnBKC.js.map +1 -0
- package/dist/QueryManagement-DXA73N2j.css +1 -0
- package/dist/RoleManagement-C0feJCuq-DIGwGqOD.js +410 -0
- package/dist/RoleManagement-C0feJCuq-DIGwGqOD.js.map +1 -0
- package/dist/SecurityAuditLogList-DHTcOtbx-BSjPID73.js +746 -0
- package/dist/SecurityAuditLogList-DHTcOtbx-BSjPID73.js.map +1 -0
- package/dist/ServerSyncModal-D_oFpv3C-C6c3_3lx.js +836 -0
- package/dist/ServerSyncModal-D_oFpv3C-C6c3_3lx.js.map +1 -0
- package/dist/ShowFlywayQuery-BkyA6QaA-2t9pZjcx.js +130 -0
- package/dist/ShowFlywayQuery-BkyA6QaA-2t9pZjcx.js.map +1 -0
- package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js +259 -0
- package/dist/ShowFlywayQuery-DVRCd384-BypXcNWX.js.map +1 -0
- package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js +190 -0
- package/dist/ShowQueryHistory-BDN0tzHg-17BxK88Z.js.map +1 -0
- package/dist/SubMenu-DAfZC9Xi-B0BQYLdI.js +188 -0
- package/dist/SubMenu-DAfZC9Xi-B0BQYLdI.js.map +1 -0
- package/dist/TableDetails-DzREeJkm-B-WEBbQz.js +1508 -0
- package/dist/TableDetails-DzREeJkm-B-WEBbQz.js.map +1 -0
- package/dist/TableList-B9hr05Hs-BIsMbnIV.js +428 -0
- package/dist/TableList-B9hr05Hs-BIsMbnIV.js.map +1 -0
- package/dist/TypeConfiguration-C-lk8Szs-DkvHWHhr.js +117 -0
- package/dist/TypeConfiguration-C-lk8Szs-DkvHWHhr.js.map +1 -0
- package/dist/UserList-S5Q76wO7-Cj5u_K4_.js +1104 -0
- package/dist/UserList-S5Q76wO7-Cj5u_K4_.js.map +1 -0
- package/dist/UserList-S5Q76wO7.css +1 -0
- package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js +184 -0
- package/dist/UserListSkeleton-cglK2SaU-B_Tj5gUp.js.map +1 -0
- package/dist/WidgetList-BSApErov-Z61Kpq4T.js +188 -0
- package/dist/WidgetList-BSApErov-Z61Kpq4T.js.map +1 -0
- package/dist/_commonjsHelpers-B4e78b8K-B9tZyK9c.js +29 -0
- package/dist/_commonjsHelpers-B4e78b8K-B9tZyK9c.js.map +1 -0
- package/dist/dayjs.min-BiUMMz0V.js +285 -0
- package/dist/dayjs.min-BiUMMz0V.js.map +1 -0
- package/dist/default-B6sHblIG.js +11341 -0
- package/dist/default-B6sHblIG.js.map +1 -0
- package/dist/default.css +1 -0
- package/dist/i18next-CTOWN_jH-BKKbdDel.js +1389 -0
- package/dist/i18next-CTOWN_jH-BKKbdDel.js.map +1 -0
- package/dist/index-B4r0wjBD.js +563 -0
- package/dist/index-B4r0wjBD.js.map +1 -0
- package/dist/index-BFznsakV-BsOSEQZI.js +42638 -0
- package/dist/index-BFznsakV-BsOSEQZI.js.map +1 -0
- package/dist/index-DNrIMQFT.js +567 -0
- package/dist/index-DNrIMQFT.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +3 -52390
- package/dist/index.js.map +1 -1
- package/dist/manageImmunization-B4swS745-JldexHrO.js +1204 -0
- package/dist/manageImmunization-B4swS745-JldexHrO.js.map +1 -0
- package/dist/manageImmunization-B4swS745.css +1 -0
- package/dist/xlsx.min-D1LFqt_b-BGwkpd8r.js +11869 -0
- package/dist/xlsx.min-D1LFqt_b-BGwkpd8r.js.map +1 -0
- package/package.json +1 -4
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { api as i } from "@/common/interceptors/AxiosInterceptor";
|
|
2
|
+
import { jsxs as s, jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import l from "prop-types";
|
|
4
|
+
import "react";
|
|
5
|
+
import { useSelector as m } from "react-redux";
|
|
6
|
+
import { getUseSkeleton as n } from "@/store/reducers/SkeletonReducer";
|
|
7
|
+
const v = (a = !0) => i.get(`/eventconfig?isActive=${a}`, { isActive: a }), h = (a) => i.put("/eventconfig", a, {
|
|
8
|
+
headers: {
|
|
9
|
+
"Content-Type": "application/json;charset=UTF-8",
|
|
10
|
+
Title: "Login"
|
|
11
|
+
}
|
|
12
|
+
}), f = (a) => i.get(`/eventconfig/run/${a}`), y = () => i.get("/eventconfig/manualevents"), N = (a) => i.post("/eventconfig", a), b = (a) => i.get(`eventconfig/${a}`), w = (a) => i.get("/form", a), j = () => m(n) ? /* @__PURE__ */ s("div", { className: "flex flex-col gap-2", children: [
|
|
13
|
+
/* @__PURE__ */ s("div", { className: "flex justify-between gap-2 mb-[10px]", children: [
|
|
14
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
15
|
+
/* @__PURE__ */ s("div", { className: "flex space-x-2", children: [
|
|
16
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
17
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
18
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" }),
|
|
19
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]" })
|
|
20
|
+
] })
|
|
21
|
+
] }),
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-full h-100" })
|
|
23
|
+
] }) : null, p = ({ children: a, isLoading: d }) => !m(n) || !d ? a : /* @__PURE__ */ s("div", { className: "my-6", children: [
|
|
24
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[250px] h-[40px] ml-5" }),
|
|
25
|
+
/* @__PURE__ */ s("div", { className: "flex gap-10 flex-wrap p-5", children: [
|
|
26
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]" }),
|
|
27
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-[120px]" }),
|
|
28
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]" })
|
|
29
|
+
] }),
|
|
30
|
+
/* @__PURE__ */ s("div", { className: "flex flex-col p-5", children: [
|
|
31
|
+
/* @__PURE__ */ s("div", { className: "flex justify-between", children: [
|
|
32
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[150px] h-[40px]" }),
|
|
33
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]" })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[40px] mt-10" })
|
|
36
|
+
] }),
|
|
37
|
+
/* @__PURE__ */ s("div", { className: "flex justify-end gap-5 pr-5", children: [
|
|
38
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]" }),
|
|
39
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]" })
|
|
40
|
+
] })
|
|
41
|
+
] });
|
|
42
|
+
p.propTypes = {
|
|
43
|
+
children: l.any,
|
|
44
|
+
isLoading: l.any
|
|
45
|
+
};
|
|
46
|
+
const r = ({ children: a, isLoading: d }) => !m(n) || !d ? a : /* @__PURE__ */ s("div", { className: "w-full h-[220px] flex flex-col justify-between animate-pulse", children: [
|
|
47
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[28px] w-[180px] mb-4" }),
|
|
48
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[80px] w-full mb-4" }),
|
|
49
|
+
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4 mb-2", children: [
|
|
50
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[140px]" }),
|
|
51
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[180px]" })
|
|
52
|
+
] }),
|
|
53
|
+
/* @__PURE__ */ s("div", { className: "flex flex-row space-x-4", children: [
|
|
54
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[140px]" }),
|
|
55
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 rounded-sm h-[20px] w-[180px]" })
|
|
56
|
+
] })
|
|
57
|
+
] });
|
|
58
|
+
r.propTypes = {
|
|
59
|
+
children: l.any,
|
|
60
|
+
isLoading: l.any
|
|
61
|
+
};
|
|
62
|
+
export {
|
|
63
|
+
y as N,
|
|
64
|
+
w as S,
|
|
65
|
+
N as b,
|
|
66
|
+
v as f,
|
|
67
|
+
h,
|
|
68
|
+
j as k,
|
|
69
|
+
p as m,
|
|
70
|
+
r as o,
|
|
71
|
+
b as w,
|
|
72
|
+
f as y
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=EventsSkeleton-BN7_0IGs-BAnd1Vug.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventsSkeleton-BN7_0IGs-BAnd1Vug.js","sources":["../../core/dist/EventsSkeleton-BN7_0IGs.js"],"sourcesContent":["import { api as n } from \"@/common/interceptors/AxiosInterceptor\";\nimport { jsxs as s, jsx as e } from \"react/jsx-runtime\";\nimport l from \"prop-types\";\nimport \"react\";\nimport { useSelector as t } from \"react-redux\";\nimport { getUseSkeleton as i } from \"@/store/reducers/SkeletonReducer\";\nconst f = (a = !0) => n.get(`/eventconfig?isActive=${a}`, { isActive: a }), h = (a) => n.put(\"/eventconfig\", a, {\n headers: {\n \"Content-Type\": \"application/json;charset=UTF-8\",\n Title: \"Login\"\n }\n}), y = (a) => n.get(`/eventconfig/run/${a}`), N = () => n.get(\"/eventconfig/manualevents\"), b = (a) => n.post(\"/eventconfig\", a), w = (a) => n.get(`eventconfig/${a}`), S = (a) => n.get(\"/form\", a), k = () => t(i) ? /* @__PURE__ */ s(\"div\", { className: \"flex flex-col gap-2\", children: [\n /* @__PURE__ */ s(\"div\", { className: \"flex justify-between gap-2 mb-[10px]\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\" }),\n /* @__PURE__ */ s(\"div\", { className: \"flex space-x-2\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[130px] h-[40px]\" })\n ] })\n ] }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-full h-100\" })\n] }) : null, m = ({ children: a, isLoading: r }) => !t(i) || !r ? a : /* @__PURE__ */ s(\"div\", { className: \"my-6\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[250px] h-[40px] ml-5\" }),\n /* @__PURE__ */ s(\"div\", { className: \"flex gap-10 flex-wrap p-5\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[45%] h-[120px]\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[45%] h-[40px]\" })\n ] }),\n /* @__PURE__ */ s(\"div\", { className: \"flex flex-col p-5\", children: [\n /* @__PURE__ */ s(\"div\", { className: \"flex justify-between\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[150px] h-[40px]\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]\" })\n ] }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[40px] mt-10\" })\n ] }),\n /* @__PURE__ */ s(\"div\", { className: \"flex justify-end gap-5 pr-5\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm w-[90px] h-[40px]\" })\n ] })\n] });\nm.propTypes = {\n children: l.any,\n isLoading: l.any\n};\nconst o = ({ children: a, isLoading: r }) => !t(i) || !r ? a : /* @__PURE__ */ s(\"div\", { className: \"w-full h-[220px] flex flex-col justify-between animate-pulse\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 rounded-sm h-[28px] w-[180px] mb-4\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 rounded-sm h-[80px] w-full mb-4\" }),\n /* @__PURE__ */ s(\"div\", { className: \"flex flex-row space-x-4 mb-2\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 rounded-sm h-[20px] w-[140px]\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 rounded-sm h-[20px] w-[180px]\" })\n ] }),\n /* @__PURE__ */ s(\"div\", { className: \"flex flex-row space-x-4\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 rounded-sm h-[20px] w-[140px]\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 rounded-sm h-[20px] w-[180px]\" })\n ] })\n] });\no.propTypes = {\n children: l.any,\n isLoading: l.any\n};\nexport {\n k as E,\n m as M,\n y as a,\n S as b,\n N as c,\n w as d,\n o as e,\n f as r,\n b as s,\n h as t\n};\n//# sourceMappingURL=EventsSkeleton-BN7_0IGs.js.map\n"],"names":["f","n","y","N","b","w","S","k","t","i","s","e","m","r","l","o"],"mappings":";;;;;;AAMK,MAACA,IAAI,CAAC,IAAI,OAAOC,EAAE,IAAI,yBAAyB,CAAC,IAAI,EAAE,UAAU,EAAC,CAAE,GAAG,IAAI,CAAC,MAAMA,EAAE,IAAI,gBAAgB,GAAG;AAAA,EAC9G,SAAS;AAAA,IACP,gBAAgB;AAAA,IAChB,OAAO;AAAA,EACX;AACA,CAAC,GAAGC,IAAI,CAAC,MAAMD,EAAE,IAAI,oBAAoB,CAAC,EAAE,GAAGE,IAAI,MAAMF,EAAE,IAAI,2BAA2B,GAAGG,IAAI,CAAC,MAAMH,EAAE,KAAK,gBAAgB,CAAC,GAAGI,IAAI,CAAC,MAAMJ,EAAE,IAAI,eAAe,CAAC,EAAE,GAAGK,IAAI,CAAC,MAAML,EAAE,IAAI,SAAS,CAAC,GAAGM,IAAI,MAAMC,EAAEC,CAAC,IAAoBC,gBAAAA,EAAE,OAAO,EAAE,WAAW,uBAAuB,UAAU;AAAA,EAC7QA,gBAAAA,EAAE,OAAO,EAAE,WAAW,wCAAwC,UAAU;AAAA,IACtEC,gBAAAA,EAAE,OAAO,EAAE,WAAW,0DAAyD,CAAE;AAAA,IACjFD,gBAAAA,EAAE,OAAO,EAAE,WAAW,kBAAkB,UAAU;AAAA,MAChDC,gBAAAA,EAAE,OAAO,EAAE,WAAW,0DAAyD,CAAE;AAAA,MACjFA,gBAAAA,EAAE,OAAO,EAAE,WAAW,0DAAyD,CAAE;AAAA,MACjFA,gBAAAA,EAAE,OAAO,EAAE,WAAW,0DAAyD,CAAE;AAAA,MACjFA,gBAAAA,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,WAAWA,EAAE;AACf;AACK,MAACC,IAAI,CAAC,EAAE,UAAU,GAAG,WAAWF,EAAC,MAAO,CAACL,EAAEC,CAAC,KAAK,CAACI,IAAI,IAAoBH,gBAAAA,EAAE,OAAO,EAAE,WAAW,gEAAgE,UAAU;AAAA,EAC7JC,gBAAAA,EAAE,OAAO,EAAE,WAAW,iDAAgD,CAAE;AAAA,EACxEA,gBAAAA,EAAE,OAAO,EAAE,WAAW,8CAA6C,CAAE;AAAA,EACrED,gBAAAA,EAAE,OAAO,EAAE,WAAW,gCAAgC,UAAU;AAAA,IAC9DC,gBAAAA,EAAE,OAAO,EAAE,WAAW,4CAA2C,CAAE;AAAA,IACnEA,gBAAAA,EAAE,OAAO,EAAE,WAAW,4CAA2C,CAAE;AAAA,EACvF,GAAK;AAAA,EACaD,gBAAAA,EAAE,OAAO,EAAE,WAAW,2BAA2B,UAAU;AAAA,IACzDC,gBAAAA,EAAE,OAAO,EAAE,WAAW,4CAA2C,CAAE;AAAA,IACnEA,gBAAAA,EAAE,OAAO,EAAE,WAAW,4CAA2C,CAAE;AAAA,EACvF,EAAG,CAAE;AACL,EAAC,CAAE;AACHI,EAAE,YAAY;AAAA,EACZ,UAAUD,EAAE;AAAA,EACZ,WAAWA,EAAE;AACf;"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t, Fragment as H } from "react/jsx-runtime";
|
|
2
|
+
import { useState as x, useMemo as v, useCallback as I, useEffect as J, startTransition as K, Suspense as _, lazy as j } from "react";
|
|
3
|
+
import { useTranslateProvider as Q } from "@/common/languageTranslator/TranslationContext";
|
|
4
|
+
import { m as W } from "./Features-Cshdl06N-CZ02Tt89.js";
|
|
5
|
+
import { showToast as X } from "@/common/toaster/toaster";
|
|
6
|
+
import Y from "@/hooks/useTrackEvent";
|
|
7
|
+
import { useTheme as Z, Card as ee, Tabs as ae, Tab as se, Button as G, Typography as L } from "@mui/material";
|
|
8
|
+
import u from "@mui/material/Grid2";
|
|
9
|
+
import { useSelector as i, useDispatch as te } from "react-redux";
|
|
10
|
+
import { useNavigate as re } from "react-router-dom";
|
|
11
|
+
import { Box as le } from "@mui/system";
|
|
12
|
+
import { FontAwesomeIcon as ne } from "@fortawesome/react-fontawesome";
|
|
13
|
+
import { faGear as ie } from "@fortawesome/free-solid-svg-icons";
|
|
14
|
+
import c from "prop-types";
|
|
15
|
+
import { getUseSkeleton as y } from "@/store/reducers/SkeletonReducer";
|
|
16
|
+
import { setSubMenuFeatureVal as oe, setSubMenuGroupName as me, setSubMenuId as de } from "@/store/reducers/FeatureReducer";
|
|
17
|
+
const N = ({ children: p, isLoading: l }) => !i(y) || !l ? p : /* @__PURE__ */ e("div", { className: "flex flex-col mt-6", children: /* @__PURE__ */ t("div", { className: "w-full justify-between flex-wrap flex flex-row", children: [
|
|
18
|
+
/* @__PURE__ */ t("div", { className: "flex-wrap flex flex-row", children: [
|
|
19
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" }),
|
|
20
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" }),
|
|
21
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" }),
|
|
22
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" }),
|
|
23
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2" })
|
|
24
|
+
] }),
|
|
25
|
+
/* @__PURE__ */ t("div", { className: "flex", children: [
|
|
26
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[32px] w-[120px] m-0.5" }),
|
|
27
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[32px] w-[130px] m-0.5" }),
|
|
28
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[32px] w-[100px] m-0.5" })
|
|
29
|
+
] })
|
|
30
|
+
] }) });
|
|
31
|
+
N.propTypes = {
|
|
32
|
+
children: c.any,
|
|
33
|
+
isLoading: c.any
|
|
34
|
+
};
|
|
35
|
+
c.any, c.any;
|
|
36
|
+
const ue = ({ children: p, isLoading: l }) => !i(y) || !l ? p : /* @__PURE__ */ t("div", { className: "w-full p-2", children: [
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[40px] w-full mb-2" }),
|
|
38
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[60px] w-full mb-2" }),
|
|
39
|
+
/* @__PURE__ */ e("div", { className: "bg-gray-300 animate-pulse rounded-sm h-[280px] w-full" })
|
|
40
|
+
] });
|
|
41
|
+
ue.propTypes = {
|
|
42
|
+
children: c.any,
|
|
43
|
+
isLoading: c.any
|
|
44
|
+
};
|
|
45
|
+
const ce = j(() => import("./AccessRights-BMRM1u9S-D1Gc0rKI.js")), pe = j(() => import("./SubMenu-DAfZC9Xi-B0BQYLdI.js"));
|
|
46
|
+
function fe() {
|
|
47
|
+
const p = i(y), l = Z(), b = te(), [w, P] = x([]), [n, $] = x(0), o = i((a) => {
|
|
48
|
+
var s;
|
|
49
|
+
return (s = a == null ? void 0 : a.FeatureReducer) == null ? void 0 : s.subMenuId;
|
|
50
|
+
}), M = i(
|
|
51
|
+
(a) => {
|
|
52
|
+
var s;
|
|
53
|
+
return (s = a == null ? void 0 : a.FeatureReducer) == null ? void 0 : s.subMenuGroupName;
|
|
54
|
+
}
|
|
55
|
+
), R = i(
|
|
56
|
+
(a) => {
|
|
57
|
+
var s;
|
|
58
|
+
return (s = a == null ? void 0 : a.FeatureReducer) == null ? void 0 : s.subMenuFeatureVal;
|
|
59
|
+
}
|
|
60
|
+
), g = re(), { user: S } = i((a) => a.Authenticate), { translate: m } = Q(), [d, h] = x(!1), F = Y(), [T, V] = x({}), k = (S == null ? void 0 : S.features) || {}, r = v(
|
|
61
|
+
() => Object.keys(k).filter((a) => a !== "mch"),
|
|
62
|
+
[k]
|
|
63
|
+
), z = l.palette.mode === "dark" ? l.palette.divider : l.palette.grey[200], B = I((a, s) => {
|
|
64
|
+
$(s);
|
|
65
|
+
}, []), O = I(() => {
|
|
66
|
+
F("button_click", {
|
|
67
|
+
button_name: "featuremenu-add-button",
|
|
68
|
+
button_type: "navigate",
|
|
69
|
+
button_id: "featuremenu-add-button"
|
|
70
|
+
}), g("addDynamicFeature");
|
|
71
|
+
}, [g, F]);
|
|
72
|
+
J(() => {
|
|
73
|
+
(async () => {
|
|
74
|
+
var a, s;
|
|
75
|
+
if (!(!r.length || n >= r.length))
|
|
76
|
+
try {
|
|
77
|
+
h(!0);
|
|
78
|
+
const { data: f } = await W(r[n]), A = f.sort((D, q) => {
|
|
79
|
+
var C;
|
|
80
|
+
return (C = D.name) == null ? void 0 : C.localeCompare(q.name);
|
|
81
|
+
});
|
|
82
|
+
K(() => {
|
|
83
|
+
P(A), A.length > 0, h(!1);
|
|
84
|
+
});
|
|
85
|
+
} catch (f) {
|
|
86
|
+
X({
|
|
87
|
+
message: `Error : ${(s = (a = f == null ? void 0 : f.response) == null ? void 0 : a.data) == null ? void 0 : s.message}`,
|
|
88
|
+
type: "error"
|
|
89
|
+
}), h(!1);
|
|
90
|
+
}
|
|
91
|
+
})();
|
|
92
|
+
}, [n, r]);
|
|
93
|
+
const E = v(
|
|
94
|
+
() => /* @__PURE__ */ e(_, { fallback: /* @__PURE__ */ e(N, {}), children: /* @__PURE__ */ e(
|
|
95
|
+
pe,
|
|
96
|
+
{
|
|
97
|
+
"data-testid": "featuremenu-submenu",
|
|
98
|
+
data: w,
|
|
99
|
+
subMenuId: o,
|
|
100
|
+
setSubMenuId: (a) => {
|
|
101
|
+
b(de(a));
|
|
102
|
+
},
|
|
103
|
+
setSubMenuGroupName: (a) => {
|
|
104
|
+
b(me(a));
|
|
105
|
+
},
|
|
106
|
+
setSubMenuFeatureVal: (a) => {
|
|
107
|
+
b(oe(a));
|
|
108
|
+
},
|
|
109
|
+
type: r[n],
|
|
110
|
+
isLoading: d,
|
|
111
|
+
isNewAPI: T,
|
|
112
|
+
subMenuGroupName: M
|
|
113
|
+
}
|
|
114
|
+
) }),
|
|
115
|
+
[w, o, n, d, r, T]
|
|
116
|
+
), U = v(
|
|
117
|
+
() => /* @__PURE__ */ e(
|
|
118
|
+
_,
|
|
119
|
+
{
|
|
120
|
+
fallback: /* @__PURE__ */ e("div", { className: "p-2 text-sm text-gray-500", children: "Loading Access Rights..." }),
|
|
121
|
+
children: /* @__PURE__ */ e(
|
|
122
|
+
ce,
|
|
123
|
+
{
|
|
124
|
+
"data-testid": "featuremenu-access-rights",
|
|
125
|
+
subMenuId: o,
|
|
126
|
+
subMenuGroupName: M,
|
|
127
|
+
subMenuFeatureVal: R,
|
|
128
|
+
selectedTab: r[n],
|
|
129
|
+
parentLoading: d,
|
|
130
|
+
onNewAPIChange: V
|
|
131
|
+
}
|
|
132
|
+
)
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
[o, d]
|
|
136
|
+
);
|
|
137
|
+
return /* @__PURE__ */ t(ee, { variant: "elevation", className: "p-3 mt-6 flex flex-col shadow-2xl", children: [
|
|
138
|
+
/* @__PURE__ */ e(N, { isLoading: d, children: /* @__PURE__ */ t(u, { className: "w-full justify-between flex-wrap flex flex-row", children: [
|
|
139
|
+
/* @__PURE__ */ e(u, { className: "flex-wrap flex flex-row", children: /* @__PURE__ */ e(
|
|
140
|
+
ae,
|
|
141
|
+
{
|
|
142
|
+
value: n,
|
|
143
|
+
onChange: B,
|
|
144
|
+
variant: "scrollable",
|
|
145
|
+
scrollButtons: "auto",
|
|
146
|
+
children: r.map((a, s) => /* @__PURE__ */ e(
|
|
147
|
+
se,
|
|
148
|
+
{
|
|
149
|
+
label: a.toUpperCase(),
|
|
150
|
+
"data-testid": `featuremenu-button-${s}`,
|
|
151
|
+
id: `feature-tab-${s}`
|
|
152
|
+
},
|
|
153
|
+
a
|
|
154
|
+
))
|
|
155
|
+
}
|
|
156
|
+
) }),
|
|
157
|
+
/* @__PURE__ */ t(u, { className: "flex gap-2 items-center ml-auto", children: [
|
|
158
|
+
/* @__PURE__ */ t(
|
|
159
|
+
G,
|
|
160
|
+
{
|
|
161
|
+
size: "small",
|
|
162
|
+
className: "mb-1 ml-0.5",
|
|
163
|
+
variant: "contained",
|
|
164
|
+
onClick: () => g("/ui/medplat/report/all/groups"),
|
|
165
|
+
sx: {
|
|
166
|
+
mt: { xs: "15px", md: "0px" }
|
|
167
|
+
},
|
|
168
|
+
children: [
|
|
169
|
+
m("Manage"),
|
|
170
|
+
" ",
|
|
171
|
+
m("Menu"),
|
|
172
|
+
" ",
|
|
173
|
+
m("Group")
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
),
|
|
177
|
+
/* @__PURE__ */ t(
|
|
178
|
+
G,
|
|
179
|
+
{
|
|
180
|
+
size: "small",
|
|
181
|
+
"data-testid": "featuremenu-add-button",
|
|
182
|
+
className: "mb-1 ml-0.5",
|
|
183
|
+
variant: "contained",
|
|
184
|
+
onClick: O,
|
|
185
|
+
sx: {
|
|
186
|
+
mt: { xs: "15px", md: "0px" }
|
|
187
|
+
},
|
|
188
|
+
children: [
|
|
189
|
+
m("Add"),
|
|
190
|
+
" ",
|
|
191
|
+
m("Feature")
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
)
|
|
195
|
+
] })
|
|
196
|
+
] }) }),
|
|
197
|
+
/* @__PURE__ */ t(u, { container: !0, spacing: 2, className: "w-full py-3 rounded-sm", children: [
|
|
198
|
+
/* @__PURE__ */ e(
|
|
199
|
+
u,
|
|
200
|
+
{
|
|
201
|
+
size: { xs: 12, sm: 12, md: 3 },
|
|
202
|
+
className: "flex",
|
|
203
|
+
sx: { border: `1px solid ${z}` },
|
|
204
|
+
children: E
|
|
205
|
+
}
|
|
206
|
+
),
|
|
207
|
+
/* @__PURE__ */ t(
|
|
208
|
+
u,
|
|
209
|
+
{
|
|
210
|
+
size: { xs: 12, sm: 12, md: 9 },
|
|
211
|
+
className: "flex flex-col",
|
|
212
|
+
sx: { border: `1px solid ${z}` },
|
|
213
|
+
children: [
|
|
214
|
+
d && p ? /* @__PURE__ */ e("div", { className: "flex flex-col p-2", children: /* @__PURE__ */ e("div", { className: "bg-slate-200 dark:bg-slate-800 animate-pulse rounded-sm h-[30px] w-[180px]" }) }) : /* @__PURE__ */ t(le, { className: "flex items-center p-2", children: [
|
|
215
|
+
/* @__PURE__ */ e(ne, { icon: ie, size: "lg", className: "mr-2" }),
|
|
216
|
+
/* @__PURE__ */ e(L, { variant: "body2", className: "font-bold font-sans pt-1", children: m("Access Rights") })
|
|
217
|
+
] }),
|
|
218
|
+
o && U,
|
|
219
|
+
!o && /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(
|
|
220
|
+
L,
|
|
221
|
+
{
|
|
222
|
+
variant: "body2",
|
|
223
|
+
className: "p-2",
|
|
224
|
+
"data-testid": "featuremenu-no-feature-selected",
|
|
225
|
+
sx: {
|
|
226
|
+
textAlign: "center",
|
|
227
|
+
position: "relative",
|
|
228
|
+
top: "10%",
|
|
229
|
+
fontSize: "25px",
|
|
230
|
+
color: "grey"
|
|
231
|
+
},
|
|
232
|
+
children: "Please select a feature!"
|
|
233
|
+
}
|
|
234
|
+
) })
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
)
|
|
238
|
+
] })
|
|
239
|
+
] });
|
|
240
|
+
}
|
|
241
|
+
const Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
242
|
+
__proto__: null,
|
|
243
|
+
default: fe
|
|
244
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
245
|
+
export {
|
|
246
|
+
Ie as F,
|
|
247
|
+
ue as S
|
|
248
|
+
};
|
|
249
|
+
//# sourceMappingURL=FeatureMenu-Ds6lFg4w-ShGx4okQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FeatureMenu-Ds6lFg4w-ShGx4okQ.js","sources":["../../core/dist/FeatureMenu-Ds6lFg4w.js"],"sourcesContent":["import { jsx as e, jsxs as s, Fragment as J } from \"react/jsx-runtime\";\nimport { useState as b, useMemo as y, useCallback as _, useEffect as K, Suspense as j, startTransition as Q, lazy as L } from \"react\";\nimport { useTranslateProvider as W } from \"@/common/languageTranslator/TranslationContext\";\nimport { g as X } from \"./Features-Cshdl06N.js\";\nimport { showToast as Y } from \"@/common/toaster/toaster\";\nimport Z from \"@/hooks/useTrackEvent\";\nimport { useTheme as ee, Card as ae, Tabs as te, Tab as se, Button as D, Typography as G } from \"@mui/material\";\nimport d from \"@mui/material/Grid2\";\nimport { useSelector as u, useDispatch as ne } from \"react-redux\";\nimport { useNavigate as re } from \"react-router-dom\";\nimport { Box as le } from \"@mui/system\";\nimport { FontAwesomeIcon as oe } from \"@fortawesome/react-fontawesome\";\nimport { faGear as ue } from \"@fortawesome/free-solid-svg-icons\";\nimport p from \"prop-types\";\nimport { getUseSkeleton as w } from \"@/store/reducers/SkeletonReducer\";\nimport { setSubMenuFeatureVal as ie, setSubMenuGroupName as me, setSubMenuId as ce } from \"@/store/reducers/FeatureReducer\";\nconst v = ({ children: r, isLoading: l }) => !u(w) || !l ? r : /* @__PURE__ */ e(\"div\", { className: \"flex flex-col mt-6\", children: /* @__PURE__ */ s(\"div\", { className: \"w-full justify-between flex-wrap flex flex-row\", children: [\n /* @__PURE__ */ s(\"div\", { className: \"flex-wrap flex flex-row\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[45px] w-[85px] mr-2 mb-2\" })\n ] }),\n /* @__PURE__ */ s(\"div\", { className: \"flex\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[32px] w-[120px] m-0.5\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[32px] w-[130px] m-0.5\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[32px] w-[100px] m-0.5\" })\n ] })\n] }) });\nv.propTypes = {\n children: p.any,\n isLoading: p.any\n};\np.any, p.any;\nconst de = ({ children: r, isLoading: l }) => !u(w) || !l ? r : /* @__PURE__ */ s(\"div\", { className: \"w-full p-2\", children: [\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[40px] w-full mb-2\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[60px] w-full mb-2\" }),\n /* @__PURE__ */ e(\"div\", { className: \"bg-gray-300 animate-pulse rounded-sm h-[280px] w-full\" })\n] });\nde.propTypes = {\n children: p.any,\n isLoading: p.any\n};\nconst pe = L(() => import(\"./AccessRights-BMRM1u9S.js\")), fe = L(() => import(\"./SubMenu-DAfZC9Xi.js\"));\nfunction xe() {\n const r = u(w), l = ee(), f = ne(), [S, P] = b([]), [o, R] = b(0), i = u((a) => {\n var t;\n return (t = a == null ? void 0 : a.FeatureReducer) == null ? void 0 : t.subMenuId;\n }), M = u(\n (a) => {\n var t;\n return (t = a == null ? void 0 : a.FeatureReducer) == null ? void 0 : t.subMenuGroupName;\n }\n ), $ = u(\n (a) => {\n var t;\n return (t = a == null ? void 0 : a.FeatureReducer) == null ? void 0 : t.subMenuFeatureVal;\n }\n ), g = re(), { user: h } = u((a) => a.Authenticate), { translate: m } = W(), [c, N] = b(!1), k = Z(), [F, B] = b({}), I = (h == null ? void 0 : h.features) || {}, n = y(\n () => Object.keys(I).filter((a) => a !== \"mch\"),\n [I]\n ), T = l.palette.mode === \"dark\" ? l.palette.divider : l.palette.grey[200], E = _((a, t) => {\n R(t);\n }, []), V = _(() => {\n k(\"button_click\", {\n button_name: \"featuremenu-add-button\",\n button_type: \"navigate\",\n button_id: \"featuremenu-add-button\"\n }), g(\"addDynamicFeature\");\n }, [g, k]);\n K(() => {\n (async () => {\n var t, C;\n if (!(!n.length || o >= n.length))\n try {\n N(!0);\n const { data: x } = await X(n[o]), A = x.sort((q, H) => {\n var z;\n return (z = q.name) == null ? void 0 : z.localeCompare(H.name);\n });\n Q(() => {\n P(A), A.length > 0, N(!1);\n });\n } catch (x) {\n Y({\n message: `Error : ${(C = (t = x == null ? void 0 : x.response) == null ? void 0 : t.data) == null ? void 0 : C.message}`,\n type: \"error\"\n }), N(!1);\n }\n })();\n }, [o, n]);\n const O = y(\n () => /* @__PURE__ */ e(j, { fallback: /* @__PURE__ */ e(v, {}), children: /* @__PURE__ */ e(\n fe,\n {\n \"data-testid\": \"featuremenu-submenu\",\n data: S,\n subMenuId: i,\n setSubMenuId: (a) => {\n f(ce(a));\n },\n setSubMenuGroupName: (a) => {\n f(me(a));\n },\n setSubMenuFeatureVal: (a) => {\n f(ie(a));\n },\n type: n[o],\n isLoading: c,\n isNewAPI: F,\n subMenuGroupName: M\n }\n ) }),\n [S, i, o, c, n, F]\n ), U = y(\n () => /* @__PURE__ */ e(\n j,\n {\n fallback: /* @__PURE__ */ e(\"div\", { className: \"p-2 text-sm text-gray-500\", children: \"Loading Access Rights...\" }),\n children: /* @__PURE__ */ e(\n pe,\n {\n \"data-testid\": \"featuremenu-access-rights\",\n subMenuId: i,\n subMenuGroupName: M,\n subMenuFeatureVal: $,\n selectedTab: n[o],\n parentLoading: c,\n onNewAPIChange: B\n }\n )\n }\n ),\n [i, c]\n );\n return /* @__PURE__ */ s(ae, { variant: \"elevation\", className: \"p-3 mt-6 flex flex-col shadow-2xl\", children: [\n /* @__PURE__ */ e(v, { isLoading: c, children: /* @__PURE__ */ s(d, { className: \"w-full justify-between flex-wrap flex flex-row\", children: [\n /* @__PURE__ */ e(d, { className: \"flex-wrap flex flex-row\", children: /* @__PURE__ */ e(\n te,\n {\n value: o,\n onChange: E,\n variant: \"scrollable\",\n scrollButtons: \"auto\",\n children: n.map((a, t) => /* @__PURE__ */ e(\n se,\n {\n label: a.toUpperCase(),\n \"data-testid\": `featuremenu-button-${t}`,\n id: `feature-tab-${t}`\n },\n a\n ))\n }\n ) }),\n /* @__PURE__ */ s(d, { className: \"flex gap-2 items-center ml-auto\", children: [\n /* @__PURE__ */ s(\n D,\n {\n size: \"small\",\n className: \"mb-1 ml-0.5\",\n variant: \"contained\",\n onClick: () => g(\"/ui/medplat/report/all/groups\"),\n sx: {\n mt: { xs: \"15px\", md: \"0px\" }\n },\n children: [\n m(\"Manage\"),\n \" \",\n m(\"Menu\"),\n \" \",\n m(\"Group\")\n ]\n }\n ),\n /* @__PURE__ */ s(\n D,\n {\n size: \"small\",\n \"data-testid\": \"featuremenu-add-button\",\n className: \"mb-1 ml-0.5\",\n variant: \"contained\",\n onClick: V,\n sx: {\n mt: { xs: \"15px\", md: \"0px\" }\n },\n children: [\n m(\"Add\"),\n \" \",\n m(\"Feature\")\n ]\n }\n )\n ] })\n ] }) }),\n /* @__PURE__ */ s(d, { container: !0, spacing: 2, className: \"w-full py-3 rounded-sm\", children: [\n /* @__PURE__ */ e(\n d,\n {\n size: { xs: 12, sm: 12, md: 3 },\n className: \"flex\",\n sx: { border: `1px solid ${T}` },\n children: O\n }\n ),\n /* @__PURE__ */ s(\n d,\n {\n size: { xs: 12, sm: 12, md: 9 },\n className: \"flex flex-col\",\n sx: { border: `1px solid ${T}` },\n children: [\n c && r ? /* @__PURE__ */ e(\"div\", { className: \"flex flex-col p-2\", children: /* @__PURE__ */ e(\"div\", { className: \"bg-slate-200 dark:bg-slate-800 animate-pulse rounded-sm h-[30px] w-[180px]\" }) }) : /* @__PURE__ */ s(le, { className: \"flex items-center p-2\", children: [\n /* @__PURE__ */ e(oe, { icon: ue, size: \"lg\", className: \"mr-2\" }),\n /* @__PURE__ */ e(G, { variant: \"body2\", className: \"font-bold font-sans pt-1\", children: m(\"Access Rights\") })\n ] }),\n i && U,\n !i && /* @__PURE__ */ e(J, { children: /* @__PURE__ */ e(\n G,\n {\n variant: \"body2\",\n className: \"p-2\",\n \"data-testid\": \"featuremenu-no-feature-selected\",\n sx: {\n textAlign: \"center\",\n position: \"relative\",\n top: \"10%\",\n fontSize: \"25px\",\n color: \"grey\"\n },\n children: \"Please select a feature!\"\n }\n ) })\n ]\n }\n )\n ] })\n ] });\n}\nconst _e = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({\n __proto__: null,\n default: xe\n}, Symbol.toStringTag, { value: \"Module\" }));\nexport {\n _e as F,\n de as S\n};\n//# sourceMappingURL=FeatureMenu-Ds6lFg4w.js.map\n"],"names":["v","r","u","w","e","s","p","de","pe","L","fe","xe","ee","f","ne","S","b","o","R","i","t","$","re","h","m","W","c","N","k","Z","F","B","I","n","y","T","E","_","V","K","C","x","X","q","H","z","Q","Y","O","j","ce","me","ie","ae","d","te","se","D","le","oe","ue","G","J","_e"],"mappings":";;;;;;;;;;;;;;;;AAgBA,MAAMA,IAAI,CAAC,EAAE,UAAUC,GAAG,WAAW,EAAC,MAAO,CAACC,EAAEC,CAAC,KAAK,CAAC,IAAIF,IAAoBG,gBAAAA,EAAE,OAAO,EAAE,WAAW,sBAAsB,UAA0BC,gBAAAA,EAAE,OAAO,EAAE,WAAW,kDAAkD,UAAU;AAAA,EACrNA,gBAAAA,EAAE,OAAO,EAAE,WAAW,2BAA2B,UAAU;AAAA,IACzDD,gBAAAA,EAAE,OAAO,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xiosInterceptor";
|
|
2
|
+
const u = (e) => n.get(`menuconfig/configtypes/${e}`), i = (e) => n.get(`menuconfig/configtypesV2/${e}`), t = (e) => n.get(`/menuconfig/${e}`), g = (e) => n.delete(`/menuconfig/usermenuitem/${e}`), f = (e) => n.post("/menuconfig/updateusermenuitem", { ...e, showLoader: !1 }), s = (e, o) => n.post(`/menuconfig/updateusermenuitems?menuConfigId=${e}`, o), c = (e, o) => n.post(`/menuconfig/menuitem?menuConfigId=${e}`, { ...o });
|
|
3
|
+
export {
|
|
4
|
+
g as a,
|
|
5
|
+
s as c,
|
|
6
|
+
f as g,
|
|
7
|
+
c as i,
|
|
8
|
+
t as m,
|
|
9
|
+
i as o,
|
|
10
|
+
u
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=Features-Cshdl06N-CZ02Tt89.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Features-Cshdl06N-CZ02Tt89.js","sources":["../../core/dist/Features-Cshdl06N.js"],"sourcesContent":["import { api as t } from \"@/common/interceptors/AxiosInterceptor\";\nconst u = (e) => t.get(`menuconfig/configtypes/${e}`), o = (e) => t.get(`menuconfig/configtypesV2/${e}`), m = (e) => t.get(`/menuconfig/${e}`), a = (e) => t.delete(`/menuconfig/usermenuitem/${e}`), g = (e) => t.post(\"/menuconfig/updateusermenuitem\", { ...e, showLoader: !1 }), c = (e, n) => t.post(`/menuconfig/updateusermenuitems?menuConfigId=${e}`, n), i = (e, n) => t.post(`/menuconfig/menuitem?menuConfigId=${e}`, { ...n });\nexport {\n o as a,\n u as b,\n g as c,\n a as d,\n m as g,\n i as p,\n c as u\n};\n//# sourceMappingURL=Features-Cshdl06N.js.map\n"],"names":["t","o","m","a","g","c","n","i"],"mappings":";AACK,MAAC,IAAI,CAAC,MAAMA,EAAE,IAAI,0BAA0B,CAAC,EAAE,GAAGC,IAAI,CAAC,MAAMD,EAAE,IAAI,4BAA4B,CAAC,EAAE,GAAGE,IAAI,CAAC,MAAMF,EAAE,IAAI,eAAe,CAAC,EAAE,GAAGG,IAAI,CAAC,MAAMH,EAAE,OAAO,4BAA4B,CAAC,EAAE,GAAGI,IAAI,CAAC,MAAMJ,EAAE,KAAK,kCAAkC,EAAE,GAAG,GAAG,YAAY,GAAE,CAAE,GAAGK,IAAI,CAAC,GAAGC,MAAMN,EAAE,KAAK,gDAAgD,CAAC,IAAIM,CAAC,GAAGC,IAAI,CAAC,GAAGD,MAAMN,EAAE,KAAK,qCAAqC,CAAC,IAAI,EAAE,GAAGM,EAAC,CAAE;"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { u } from "./_commonjsHelpers-B4e78b8K-B9tZyK9c.js";
|
|
2
|
+
var p = { exports: {} }, L = p.exports, y;
|
|
3
|
+
function R() {
|
|
4
|
+
return y || (y = 1, (function(h, A) {
|
|
5
|
+
(function(v, i) {
|
|
6
|
+
i();
|
|
7
|
+
})(L, function() {
|
|
8
|
+
function v(e, t) {
|
|
9
|
+
return typeof t > "u" ? t = { autoBom: !1 } : typeof t != "object" && (console.warn("Deprecated: Expected third argument to be a object"), t = { autoBom: !t }), t.autoBom && /^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type) ? new Blob(["\uFEFF", e], { type: e.type }) : e;
|
|
10
|
+
}
|
|
11
|
+
function i(e, t, r) {
|
|
12
|
+
var o = new XMLHttpRequest();
|
|
13
|
+
o.open("GET", e), o.responseType = "blob", o.onload = function() {
|
|
14
|
+
l(o.response, t, r);
|
|
15
|
+
}, o.onerror = function() {
|
|
16
|
+
console.error("could not download file");
|
|
17
|
+
}, o.send();
|
|
18
|
+
}
|
|
19
|
+
function w(e) {
|
|
20
|
+
var t = new XMLHttpRequest();
|
|
21
|
+
t.open("HEAD", e, !1);
|
|
22
|
+
try {
|
|
23
|
+
t.send();
|
|
24
|
+
} catch {
|
|
25
|
+
}
|
|
26
|
+
return 200 <= t.status && 299 >= t.status;
|
|
27
|
+
}
|
|
28
|
+
function c(e) {
|
|
29
|
+
try {
|
|
30
|
+
e.dispatchEvent(new MouseEvent("click"));
|
|
31
|
+
} catch {
|
|
32
|
+
var t = document.createEvent("MouseEvents");
|
|
33
|
+
t.initMouseEvent("click", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
var a = typeof window == "object" && window.window === window ? window : typeof self == "object" && self.self === self ? self : typeof u == "object" && u.global === u ? u : void 0, m = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), l = a.saveAs || (typeof window != "object" || window !== a ? function() {
|
|
37
|
+
} : "download" in HTMLAnchorElement.prototype && !m ? function(e, t, r) {
|
|
38
|
+
var o = a.URL || a.webkitURL, n = document.createElement("a");
|
|
39
|
+
t = t || e.name || "download", n.download = t, n.rel = "noopener", typeof e == "string" ? (n.href = e, n.origin === location.origin ? c(n) : w(n.href) ? i(e, t, r) : c(n, n.target = "_blank")) : (n.href = o.createObjectURL(e), setTimeout(function() {
|
|
40
|
+
o.revokeObjectURL(n.href);
|
|
41
|
+
}, 4e4), setTimeout(function() {
|
|
42
|
+
c(n);
|
|
43
|
+
}, 0));
|
|
44
|
+
} : "msSaveOrOpenBlob" in navigator ? function(e, t, r) {
|
|
45
|
+
if (t = t || e.name || "download", typeof e != "string") navigator.msSaveOrOpenBlob(v(e, r), t);
|
|
46
|
+
else if (w(e)) i(e, t, r);
|
|
47
|
+
else {
|
|
48
|
+
var o = document.createElement("a");
|
|
49
|
+
o.href = e, o.target = "_blank", setTimeout(function() {
|
|
50
|
+
c(o);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
} : function(e, t, r, o) {
|
|
54
|
+
if (o = o || open("", "_blank"), o && (o.document.title = o.document.body.innerText = "downloading..."), typeof e == "string") return i(e, t, r);
|
|
55
|
+
var n = e.type === "application/octet-stream", E = /constructor/i.test(a.HTMLElement) || a.safari, b = /CriOS\/[\d]+/.test(navigator.userAgent);
|
|
56
|
+
if ((b || n && E || m) && typeof FileReader < "u") {
|
|
57
|
+
var f = new FileReader();
|
|
58
|
+
f.onloadend = function() {
|
|
59
|
+
var s = f.result;
|
|
60
|
+
s = b ? s : s.replace(/^data:[^;]*;/, "data:attachment/file;"), o ? o.location.href = s : location = s, o = null;
|
|
61
|
+
}, f.readAsDataURL(e);
|
|
62
|
+
} else {
|
|
63
|
+
var g = a.URL || a.webkitURL, d = g.createObjectURL(e);
|
|
64
|
+
o ? o.location = d : location.href = d, o = null, setTimeout(function() {
|
|
65
|
+
g.revokeObjectURL(d);
|
|
66
|
+
}, 4e4);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
a.saveAs = l.saveAs = l, h.exports = l;
|
|
70
|
+
});
|
|
71
|
+
})(p)), p.exports;
|
|
72
|
+
}
|
|
73
|
+
var x = R();
|
|
74
|
+
export {
|
|
75
|
+
x as A
|
|
76
|
+
};
|
|
77
|
+
//# sourceMappingURL=FileSaver.min-CN9EpL2h-N-3OFAd7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileSaver.min-CN9EpL2h-N-3OFAd7.js","sources":["../../core/dist/FileSaver.min-CN9EpL2h.js"],"sourcesContent":["import { c as u } from \"./_commonjsHelpers-B4e78b8K.js\";\nvar f = { exports: {} }, j = f.exports, E;\nfunction x() {\n return E || (E = 1, (function(R, L) {\n (function(v, i) {\n i();\n })(j, function() {\n function v(e, t) {\n return typeof t > \"u\" ? t = { autoBom: !1 } : typeof t != \"object\" && (console.warn(\"Deprecated: Expected third argument to be a object\"), t = { autoBom: !t }), t.autoBom && /^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(e.type) ? new Blob([\"\\uFEFF\", e], { type: e.type }) : e;\n }\n function i(e, t, r) {\n var n = new XMLHttpRequest();\n n.open(\"GET\", e), n.responseType = \"blob\", n.onload = function() {\n l(n.response, t, r);\n }, n.onerror = function() {\n console.error(\"could not download file\");\n }, n.send();\n }\n function m(e) {\n var t = new XMLHttpRequest();\n t.open(\"HEAD\", e, !1);\n try {\n t.send();\n } catch {\n }\n return 200 <= t.status && 299 >= t.status;\n }\n function c(e) {\n try {\n e.dispatchEvent(new MouseEvent(\"click\"));\n } catch {\n var t = document.createEvent(\"MouseEvents\");\n t.initMouseEvent(\"click\", !0, !0, window, 0, 0, 0, 80, 20, !1, !1, !1, !1, 0, null), e.dispatchEvent(t);\n }\n }\n var a = typeof window == \"object\" && window.window === window ? window : typeof self == \"object\" && self.self === self ? self : typeof u == \"object\" && u.global === u ? u : void 0, w = a.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent), l = a.saveAs || (typeof window != \"object\" || window !== a ? function() {\n } : \"download\" in HTMLAnchorElement.prototype && !w ? function(e, t, r) {\n var n = a.URL || a.webkitURL, o = document.createElement(\"a\");\n t = t || e.name || \"download\", o.download = t, o.rel = \"noopener\", typeof e == \"string\" ? (o.href = e, o.origin === location.origin ? c(o) : m(o.href) ? i(e, t, r) : c(o, o.target = \"_blank\")) : (o.href = n.createObjectURL(e), setTimeout(function() {\n n.revokeObjectURL(o.href);\n }, 4e4), setTimeout(function() {\n c(o);\n }, 0));\n } : \"msSaveOrOpenBlob\" in navigator ? function(e, t, r) {\n if (t = t || e.name || \"download\", typeof e != \"string\") navigator.msSaveOrOpenBlob(v(e, r), t);\n else if (m(e)) i(e, t, r);\n else {\n var n = document.createElement(\"a\");\n n.href = e, n.target = \"_blank\", setTimeout(function() {\n c(n);\n });\n }\n } : function(e, t, r, n) {\n if (n = n || open(\"\", \"_blank\"), n && (n.document.title = n.document.body.innerText = \"downloading...\"), typeof e == \"string\") return i(e, t, r);\n var o = e.type === \"application/octet-stream\", b = /constructor/i.test(a.HTMLElement) || a.safari, y = /CriOS\\/[\\d]+/.test(navigator.userAgent);\n if ((y || o && b || w) && typeof FileReader < \"u\") {\n var d = new FileReader();\n d.onloadend = function() {\n var s = d.result;\n s = y ? s : s.replace(/^data:[^;]*;/, \"data:attachment/file;\"), n ? n.location.href = s : location = s, n = null;\n }, d.readAsDataURL(e);\n } else {\n var h = a.URL || a.webkitURL, p = h.createObjectURL(e);\n n ? n.location = p : location.href = p, n = null, setTimeout(function() {\n h.revokeObjectURL(p);\n }, 4e4);\n }\n });\n a.saveAs = l.saveAs = l, R.exports = l;\n });\n })(f)), f.exports;\n}\nvar A = x();\nexport {\n A as F\n};\n//# sourceMappingURL=FileSaver.min-CN9EpL2h.js.map\n"],"names":["f","j","E","x","R","L","n","m","w","o","b","y","d","h","p","A"],"mappings":";AACA,IAAIA,IAAI,EAAE,SAAS,CAAA,EAAE,GAAIC,IAAID,EAAE,SAASE;AACxC,SAASC,IAAI;AACX,SAAOD,MAAMA,IAAI,IAAI,SAASE,GAAGC,GAAG;AAClC,KAAC,SAAS,GAAG,GAAG;AACd,QAAC;AAAA,IACH,GAAGJ,GAAG,WAAW;AACf,eAAS,EAAE,GAAG,GAAG;AACf,eAAO,OAAO,IAAI,MAAM,IAAI,EAAE,SAAS,OAAO,OAAO,KAAK,aAAa,QAAQ,KAAK,oDAAoD,GAAG,IAAI,EAAE,SAAS,CAAC,EAAC,IAAK,EAAE,WAAW,6EAA6E,KAAK,EAAE,IAAI,IAAI,IAAI,KAAK,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,KAAI,CAAE,IAAI;AAAA,MACxT;AACA,eAAS,EAAE,GAAG,GAAG,GAAG;AAClB,YAAIK,IAAI,IAAI,eAAc;AAC1B,QAAAA,EAAE,KAAK,OAAO,CAAC,GAAGA,EAAE,eAAe,QAAQA,EAAE,SAAS,WAAW;AAC/D,YAAEA,EAAE,UAAU,GAAG,CAAC;AAAA,QACpB,GAAGA,EAAE,UAAU,WAAW;AACxB,kBAAQ,MAAM,yBAAyB;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