@argusoft/medplat-form-engine 1.0.15 → 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 @@
|
|
|
1
|
+
.mobile-screen-v2{width:350px;height:750px;border:1px solid #ccc;margin:10px auto;border-radius:40px;overflow:hidden;position:relative;background-color:#e7f0fb;display:flex;flex-direction:column}.status-bar-v2{height:25px;display:flex;justify-content:space-between;align-items:center;padding:0 10px;font-size:10px;color:#073149;position:relative}.time-v2{font-weight:700;margin-left:3%;margin-top:3%}.notch-v2{width:20px;height:20px;background-color:#000;border-radius:50%;position:absolute;left:50%;margin-top:2%;transform:translate(-50%);top:0;z-index:10}.right-status-icons-v2{display:flex;align-items:center;justify-content:center;margin-right:3%;margin-top:3%;color:#444;font-size:10px}.right-status-icons-v2 span{margin-left:4px}.right-status-icons-v2 svg{color:#073149;font-weight:bolder}.right-status-icons-v2 .battery-icon{rotate:-90deg;padding-left:3px}.header-v2{padding:10px 15px 5px;display:flex;justify-content:space-between;align-items:center;margin-bottom:5px}.location-v2{display:flex;align-items:center;font-size:12px;color:#073149;font-weight:500}.location-text-v2{margin-left:5px;font-size:13px;color:#073149;font-weight:700}.header-actions-v2{display:flex;align-items:center}.action-icon-v2{width:20px;height:20px;display:flex;justify-content:center;align-items:center;border-radius:50%;margin-left:10px;color:#073149;font-size:17px}.rotate-icon{rotate:60deg}.profile-icon{font-size:18px}.content-v2{flex-grow:1;padding:10px}.bottom-nav-v2{width:100%;padding-bottom:10px}.nav-bar-v2{width:70%;height:61px;margin:25px auto;background-color:#fff;border-radius:28px;box-shadow:0 2px 5px #0000001a;display:flex;justify-content:space-around;align-items:center;padding:0 10px}.nav-item-v2{width:40px;height:40px;display:flex;justify-content:center;align-items:center;cursor:pointer}.active-v2{background-color:#073149;border-radius:50%}.nav-item-v2 img{width:25px;height:25px}.home-indicator-v2{width:80px;height:3px;background-color:#444;border-radius:5px;margin:5px auto 0}.notification-outline svg path{fill:transparent;stroke:#073149;stroke-width:50}.notification-outline{font-size:15px;color:#073149}
|
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { Drawer as fe, Typography as s, Button as P, Table as S, TableHead as F, TableRow as x, TableCell as i, TableBody as V, Divider as be } from "@mui/material";
|
|
3
|
+
import { Grid as h, Box as ve, Stack as we } from "@mui/system";
|
|
4
|
+
import k from "prop-types";
|
|
5
|
+
import K from "@/views/custom-components/CustomTextField";
|
|
6
|
+
import { useForm as ge } from "react-hook-form";
|
|
7
|
+
import * as Q from "yup";
|
|
8
|
+
import { yupResolver as ye } from "@hookform/resolvers/yup";
|
|
9
|
+
import Ne, { useRef as X, useState as $, useEffect as z } from "react";
|
|
10
|
+
import Y from "@/views/custom-components/CustomConfirmationModal";
|
|
11
|
+
import { showToast as E } from "@/common/toaster/toaster";
|
|
12
|
+
import xe from "@/views/custom-components/CustomCheckBox";
|
|
13
|
+
import { api as Ce } from "@/common/interceptors/AxiosInterceptor";
|
|
14
|
+
import Ae from "@/hooks/useTrackEvent";
|
|
15
|
+
import Z from "@/views/custom-components/CustomAutoComplete";
|
|
16
|
+
import { useTranslateProvider as Le } from "@/common/languageTranslator/TranslationContext";
|
|
17
|
+
import { faTrash as ee } from "@fortawesome/free-solid-svg-icons";
|
|
18
|
+
import { FontAwesomeIcon as re } from "@fortawesome/react-fontawesome";
|
|
19
|
+
const Te = (L) => Ce.post("/notificationtype", L);
|
|
20
|
+
function Ie({ open: L, handleClose: _, data: f, roleData: v }) {
|
|
21
|
+
var j, B;
|
|
22
|
+
const T = X(null), M = X(!1), [D, R] = $([]), [w, U] = $(null), [W, y] = $(0), [ae, le] = $(null), { translate: n } = Le(), oe = Q.object().shape({
|
|
23
|
+
name: Q.string().required("Enter Name")
|
|
24
|
+
});
|
|
25
|
+
z(() => {
|
|
26
|
+
if (T.current) {
|
|
27
|
+
let a = T.current;
|
|
28
|
+
return () => {
|
|
29
|
+
O("conversion_event", {
|
|
30
|
+
form: a,
|
|
31
|
+
form_name: "Add Widget Role",
|
|
32
|
+
submit: M.current
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}, [T.current]);
|
|
37
|
+
const {
|
|
38
|
+
control: C,
|
|
39
|
+
formState: { errors: I },
|
|
40
|
+
handleSubmit: te,
|
|
41
|
+
setValue: c,
|
|
42
|
+
getValues: g,
|
|
43
|
+
watch: de,
|
|
44
|
+
reset: ne
|
|
45
|
+
} = ge({
|
|
46
|
+
defaultValues: { selectedPerformer: [] },
|
|
47
|
+
mode: "onChange",
|
|
48
|
+
resolver: ye(oe)
|
|
49
|
+
}), m = de();
|
|
50
|
+
z(() => {
|
|
51
|
+
var a;
|
|
52
|
+
c("name", f.notificationName), (a = f == null ? void 0 : f.roles) != null && a.length && c(
|
|
53
|
+
"roles",
|
|
54
|
+
f.roles ? f.roles.map((r) => v == null ? void 0 : v.find((l) => l.name === r)).filter((r) => r !== void 0) : []
|
|
55
|
+
), f.escalationLevels || (f.escalationLevels = []), c("escalationLevels", f.escalationLevels);
|
|
56
|
+
}, [L]);
|
|
57
|
+
const ie = (a, r) => {
|
|
58
|
+
const l = a == null ? void 0 : a.map((o) => o.id);
|
|
59
|
+
c(`selectedPerformer[${r}].roles`, l);
|
|
60
|
+
}, se = (a, r, l) => {
|
|
61
|
+
const o = g("escalationLevels");
|
|
62
|
+
o[r].performAction[l] = a, c("escalationLevels", o);
|
|
63
|
+
}, ce = () => {
|
|
64
|
+
const a = m.roles || [], r = [...a];
|
|
65
|
+
D.forEach((l) => {
|
|
66
|
+
a.some((o) => o.id === l.id) || r.push(l);
|
|
67
|
+
}), c("roles", r), R([]);
|
|
68
|
+
};
|
|
69
|
+
z(() => {
|
|
70
|
+
const a = g("selectedPerformer"), r = (m == null ? void 0 : m.roles) || [], l = a.map((o) => {
|
|
71
|
+
const p = ((o == null ? void 0 : o.roles) || []).filter(
|
|
72
|
+
(u) => r.some((N) => N.id === u)
|
|
73
|
+
);
|
|
74
|
+
return { ...o, roles: p };
|
|
75
|
+
});
|
|
76
|
+
c("selectedPerformer", l, { shouldValidate: !0 });
|
|
77
|
+
}, [m.roles]);
|
|
78
|
+
const me = (a, r) => {
|
|
79
|
+
const l = g("escalationLevels"), o = g("selectedPerformer");
|
|
80
|
+
l[r].roles = [
|
|
81
|
+
.../* @__PURE__ */ new Set([
|
|
82
|
+
...l[r].roles,
|
|
83
|
+
...o[r].roles
|
|
84
|
+
])
|
|
85
|
+
], o[r].roles.forEach((p) => {
|
|
86
|
+
l[r].performAction[p] = l[r].performAction[p] || !1;
|
|
87
|
+
}), o[r].roles = [], c("escalationLevels", l), c("selectedPerformer", o);
|
|
88
|
+
}, pe = () => {
|
|
89
|
+
try {
|
|
90
|
+
const a = g("roles").filter((l) => l.id !== w);
|
|
91
|
+
c("roles", [...a]);
|
|
92
|
+
const r = g("escalationLevels").map(
|
|
93
|
+
(l) => {
|
|
94
|
+
const o = l.roles.filter(
|
|
95
|
+
(N) => N !== w
|
|
96
|
+
), { [w]: p, ...u } = l.performAction;
|
|
97
|
+
return {
|
|
98
|
+
...l,
|
|
99
|
+
roles: o,
|
|
100
|
+
performAction: u
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
c("escalationLevels", r), y(0);
|
|
105
|
+
} catch (a) {
|
|
106
|
+
E({ message: a, type: "error" });
|
|
107
|
+
}
|
|
108
|
+
}, ue = (a, r) => {
|
|
109
|
+
try {
|
|
110
|
+
const l = g("escalationLevels");
|
|
111
|
+
l[r].roles = l[r].roles.filter(
|
|
112
|
+
(u) => u !== w
|
|
113
|
+
);
|
|
114
|
+
const { [w]: o, ...p } = l[r].performAction;
|
|
115
|
+
l[r].performAction = p, c("escalationValues", [...l]), y(0);
|
|
116
|
+
} catch (l) {
|
|
117
|
+
E({ message: l, type: "error" });
|
|
118
|
+
}
|
|
119
|
+
}, O = Ae(), he = async (a) => {
|
|
120
|
+
try {
|
|
121
|
+
O("button_click", {
|
|
122
|
+
button_name: f ? "update widget button" : "add widget button",
|
|
123
|
+
button_type: "submit",
|
|
124
|
+
button_id: "addroledrawer-button-submit"
|
|
125
|
+
});
|
|
126
|
+
const { roles: r = [], escalationLevels: l } = a, o = r.map((u) => u.id), p = { ...f, escalationLevels: l, roles: o };
|
|
127
|
+
await Te(p).catch((u) => {
|
|
128
|
+
console.error("error in updating notification", u);
|
|
129
|
+
}), E({ message: "Widget Updated Successfully", type: "success" }), M.current = !0, _(!0);
|
|
130
|
+
} catch (r) {
|
|
131
|
+
console.error(r);
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
return /* @__PURE__ */ e(
|
|
135
|
+
fe,
|
|
136
|
+
{
|
|
137
|
+
open: L,
|
|
138
|
+
anchor: "right",
|
|
139
|
+
onClose: _,
|
|
140
|
+
className: "z-[1300]",
|
|
141
|
+
"data-testid": "addroledrawer-drawer-container",
|
|
142
|
+
children: /* @__PURE__ */ t(
|
|
143
|
+
h,
|
|
144
|
+
{
|
|
145
|
+
container: !0,
|
|
146
|
+
className: "flex flex-col w-full md:w-[600px] ",
|
|
147
|
+
ref: T,
|
|
148
|
+
children: [
|
|
149
|
+
/* @__PURE__ */ e(
|
|
150
|
+
h,
|
|
151
|
+
{
|
|
152
|
+
p: 1,
|
|
153
|
+
alignContent: "flex-start",
|
|
154
|
+
className: "p-2.5 px-5 flex border-b font-medium text-lg",
|
|
155
|
+
"data-testid": "addroledrawer-grid-header uppercase",
|
|
156
|
+
children: n("Assign Role")
|
|
157
|
+
}
|
|
158
|
+
),
|
|
159
|
+
/* @__PURE__ */ t(
|
|
160
|
+
h,
|
|
161
|
+
{
|
|
162
|
+
container: !0,
|
|
163
|
+
display: "flex",
|
|
164
|
+
flexDirection: "column",
|
|
165
|
+
p: 1,
|
|
166
|
+
"data-testid": "addroledrawer-grid-content",
|
|
167
|
+
children: [
|
|
168
|
+
/* @__PURE__ */ t(h, { "data-testid": "addroledrawer-grid-name", children: [
|
|
169
|
+
/* @__PURE__ */ t(s, { variant: "body2", children: [
|
|
170
|
+
n("Name"),
|
|
171
|
+
/* @__PURE__ */ e("span", { className: "text-red-500 ml-1", children: "*" })
|
|
172
|
+
] }),
|
|
173
|
+
/* @__PURE__ */ e(
|
|
174
|
+
K,
|
|
175
|
+
{
|
|
176
|
+
id: "name",
|
|
177
|
+
control: C,
|
|
178
|
+
name: "name",
|
|
179
|
+
errors: I,
|
|
180
|
+
InputProps: {
|
|
181
|
+
readOnly: !0
|
|
182
|
+
},
|
|
183
|
+
dataTestId: "addroledrawer-textfield-name"
|
|
184
|
+
}
|
|
185
|
+
)
|
|
186
|
+
] }),
|
|
187
|
+
/* @__PURE__ */ t(h, { "data-testid": "addroledrawer-grid-actionby", children: [
|
|
188
|
+
/* @__PURE__ */ e(s, { variant: "body2", mt: 1, children: n("Select Role") }),
|
|
189
|
+
/* @__PURE__ */ t(h, { container: !0, display: "flex", flexDirection: "row", children: [
|
|
190
|
+
/* @__PURE__ */ e(h, { width: "70%", mr: 2, children: /* @__PURE__ */ e(
|
|
191
|
+
Z,
|
|
192
|
+
{
|
|
193
|
+
name: "role",
|
|
194
|
+
control: C,
|
|
195
|
+
value: D,
|
|
196
|
+
options: v,
|
|
197
|
+
getOptionLabel: (a) => a.name,
|
|
198
|
+
errors: I,
|
|
199
|
+
dataTestId: "addroledrawer-select-roles",
|
|
200
|
+
onChange: (a, r) => R(r)
|
|
201
|
+
}
|
|
202
|
+
) }),
|
|
203
|
+
/* @__PURE__ */ e(h, { className: "pt-2", children: /* @__PURE__ */ e(
|
|
204
|
+
P,
|
|
205
|
+
{
|
|
206
|
+
variant: "contained",
|
|
207
|
+
size: "small",
|
|
208
|
+
disabled: !D.length,
|
|
209
|
+
onClick: ce,
|
|
210
|
+
"data-testid": "addroledrawer-button-add",
|
|
211
|
+
children: n("Assign")
|
|
212
|
+
}
|
|
213
|
+
) })
|
|
214
|
+
] })
|
|
215
|
+
] }),
|
|
216
|
+
/* @__PURE__ */ e(h, { "data-testid": "addroledrawer-grid-table", children: /* @__PURE__ */ t(
|
|
217
|
+
S,
|
|
218
|
+
{
|
|
219
|
+
"data-testid": "addroledrawer-table",
|
|
220
|
+
className: "border border-gray-300",
|
|
221
|
+
children: [
|
|
222
|
+
/* @__PURE__ */ e(F, { children: /* @__PURE__ */ t(x, { children: [
|
|
223
|
+
/* @__PURE__ */ e(i, { className: "border-r border-gray-300 p-2", children: /* @__PURE__ */ e(s, { variant: "body2", className: "font-bold", children: `${n("Role")}${n("name")} (${n("Assigned to")})` }) }),
|
|
224
|
+
/* @__PURE__ */ e(i, { className: "p-2", children: /* @__PURE__ */ e(s, { variant: "body2", className: "font-bold", children: n("Delete") }) })
|
|
225
|
+
] }) }),
|
|
226
|
+
/* @__PURE__ */ e(V, { children: (j = m == null ? void 0 : m.roles) == null ? void 0 : j.map((a, r) => /* @__PURE__ */ t(
|
|
227
|
+
x,
|
|
228
|
+
{
|
|
229
|
+
"data-testid": "addroledrawer-tablerow-roles",
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ e(i, { className: "border border-gray-300 p-2", children: /* @__PURE__ */ e(s, { variant: "caption", children: a.name }) }),
|
|
232
|
+
/* @__PURE__ */ t(i, { className: "p-2", children: [
|
|
233
|
+
/* @__PURE__ */ e(
|
|
234
|
+
re,
|
|
235
|
+
{
|
|
236
|
+
icon: ee,
|
|
237
|
+
className: "text-[18px] text-[var(--color-error)]",
|
|
238
|
+
onClick: () => {
|
|
239
|
+
y(1), U(a.id);
|
|
240
|
+
},
|
|
241
|
+
"data-testid": "addroledrawer-icon-delete"
|
|
242
|
+
}
|
|
243
|
+
),
|
|
244
|
+
/* @__PURE__ */ e(
|
|
245
|
+
Y,
|
|
246
|
+
{
|
|
247
|
+
open: W === 1 && w === a.id,
|
|
248
|
+
handleClose: () => y(0),
|
|
249
|
+
handleClick: (l) => pe(),
|
|
250
|
+
title: "CONFIRM ACTION",
|
|
251
|
+
description: "Are you sure you want to delete this role? It will also delete role from each escalation level.",
|
|
252
|
+
dataTestId: "addroledrawer-modal-confirmdelete"
|
|
253
|
+
}
|
|
254
|
+
)
|
|
255
|
+
] })
|
|
256
|
+
]
|
|
257
|
+
},
|
|
258
|
+
a.id
|
|
259
|
+
)) })
|
|
260
|
+
]
|
|
261
|
+
}
|
|
262
|
+
) }),
|
|
263
|
+
(B = m.escalationLevels) == null ? void 0 : B.map((a, r) => {
|
|
264
|
+
var l, o, p, u, N, q, G, H;
|
|
265
|
+
return /* @__PURE__ */ t(Ne.Fragment, { children: [
|
|
266
|
+
/* @__PURE__ */ e(h, { "data-testid": "addroledrawer-grid-escalationlevel", children: /* @__PURE__ */ t(S, { className: "border border-gray-300", children: [
|
|
267
|
+
/* @__PURE__ */ e(F, { children: /* @__PURE__ */ t(x, { children: [
|
|
268
|
+
/* @__PURE__ */ e(i, { className: "border-r border-gray-300 p-2 w-80", children: /* @__PURE__ */ e(s, { variant: "body2", className: "font-bold", children: n("Escalation Level") }) }),
|
|
269
|
+
/* @__PURE__ */ e(i, { className: "border-r border-gray-300 p-2 w-60", children: /* @__PURE__ */ e(s, { variant: "body2", className: "font-bold", children: n("Performer") }) }),
|
|
270
|
+
/* @__PURE__ */ e(i, { className: "p-2 w-40 ", children: /* @__PURE__ */ e(s, { variant: "body2", className: "font-bold", children: n("Action") }) })
|
|
271
|
+
] }) }),
|
|
272
|
+
/* @__PURE__ */ e(V, { children: /* @__PURE__ */ t(x, { "data-testid": "addroledrawer-tablerow-escalationperformer", children: [
|
|
273
|
+
/* @__PURE__ */ e(i, { className: "border-r border-gray-300 p-2", children: /* @__PURE__ */ e(
|
|
274
|
+
K,
|
|
275
|
+
{
|
|
276
|
+
id: "escalationLevel",
|
|
277
|
+
control: C,
|
|
278
|
+
name: `escalationLevelData[${r}].name`,
|
|
279
|
+
defaultValue: a == null ? void 0 : a.name,
|
|
280
|
+
errors: I,
|
|
281
|
+
disabled: !0,
|
|
282
|
+
dataTestId: "addroledrawer-textfield-escalationlevel"
|
|
283
|
+
}
|
|
284
|
+
) }),
|
|
285
|
+
/* @__PURE__ */ e(i, { className: "border-r border-gray-300 p-2", children: /* @__PURE__ */ e(
|
|
286
|
+
Z,
|
|
287
|
+
{
|
|
288
|
+
control: C,
|
|
289
|
+
value: (o = (l = m.selectedPerformer) == null ? void 0 : l[r]) != null && o.roles ? (u = (p = m.selectedPerformer[r]) == null ? void 0 : p.roles) == null ? void 0 : u.map(
|
|
290
|
+
(d) => v.find((b) => b.id === d)
|
|
291
|
+
) : [],
|
|
292
|
+
name: `selectedPerformer[${r}].roles`,
|
|
293
|
+
options: (N = m == null ? void 0 : m.roles) == null ? void 0 : N.map(
|
|
294
|
+
(d) => v.find((b) => b.id === d.id)
|
|
295
|
+
),
|
|
296
|
+
getOptionLabel: (d) => d == null ? void 0 : d.name,
|
|
297
|
+
onChange: (d, b) => ie(b, r),
|
|
298
|
+
dataTestId: "addroledrawer-select-performer",
|
|
299
|
+
errors: I
|
|
300
|
+
}
|
|
301
|
+
) }),
|
|
302
|
+
/* @__PURE__ */ e(i, { children: /* @__PURE__ */ e(
|
|
303
|
+
P,
|
|
304
|
+
{
|
|
305
|
+
variant: "contained",
|
|
306
|
+
size: "small",
|
|
307
|
+
disabled: !((G = (q = m.selectedPerformer[r]) == null ? void 0 : q.roles) != null && G.length),
|
|
308
|
+
onClick: (d) => me(d, r),
|
|
309
|
+
"data-testid": "addroledrawer-button-addperformer",
|
|
310
|
+
children: n("Add")
|
|
311
|
+
}
|
|
312
|
+
) })
|
|
313
|
+
] }) })
|
|
314
|
+
] }) }),
|
|
315
|
+
/* @__PURE__ */ e(h, { children: a.roles.length ? /* @__PURE__ */ t(
|
|
316
|
+
S,
|
|
317
|
+
{
|
|
318
|
+
className: "border border-gray-300",
|
|
319
|
+
"data-testid": "addroledrawer-table-performactionroles",
|
|
320
|
+
children: [
|
|
321
|
+
/* @__PURE__ */ e(F, { children: /* @__PURE__ */ t(x, { children: [
|
|
322
|
+
/* @__PURE__ */ e(i, { className: "border border-gray-300 p-2", children: /* @__PURE__ */ e(s, { variant: "body2", className: "font-bold", children: n("Name") }) }),
|
|
323
|
+
/* @__PURE__ */ e(i, { className: "border border-gray-300 p-2", children: /* @__PURE__ */ e(s, { variant: "body2", className: "font-bold", children: n("Roles with perform action") }) }),
|
|
324
|
+
/* @__PURE__ */ e(i, { className: "p-2", children: /* @__PURE__ */ e(s, { variant: "body2", className: "font-bold", children: n("Delete") }) })
|
|
325
|
+
] }) }),
|
|
326
|
+
/* @__PURE__ */ e(V, { children: (H = a.roles) == null ? void 0 : H.filter(
|
|
327
|
+
(d) => v.find((b) => b.id === d)
|
|
328
|
+
).map((d, b) => {
|
|
329
|
+
var J;
|
|
330
|
+
return /* @__PURE__ */ t(
|
|
331
|
+
x,
|
|
332
|
+
{
|
|
333
|
+
"data-testid": "addroledrawer-tablerow-roleactions",
|
|
334
|
+
children: [
|
|
335
|
+
b === 0 && /* @__PURE__ */ e(
|
|
336
|
+
i,
|
|
337
|
+
{
|
|
338
|
+
className: "border border-gray-300 p-2",
|
|
339
|
+
rowSpan: a.roles.length,
|
|
340
|
+
children: a.name
|
|
341
|
+
}
|
|
342
|
+
),
|
|
343
|
+
/* @__PURE__ */ e(i, { className: "border border-gray-300 p-2", children: /* @__PURE__ */ t(ve, { className: "flex items-center", children: [
|
|
344
|
+
/* @__PURE__ */ e(
|
|
345
|
+
xe,
|
|
346
|
+
{
|
|
347
|
+
name: `${r}-${b}`,
|
|
348
|
+
control: C,
|
|
349
|
+
isFullWidth: !1,
|
|
350
|
+
checked: a.performAction[d],
|
|
351
|
+
onChange: (A) => se(A, r, d),
|
|
352
|
+
"data-testid": "addroledrawer-checkbox-performaction"
|
|
353
|
+
}
|
|
354
|
+
),
|
|
355
|
+
/* @__PURE__ */ e(s, { variant: "caption", children: (J = v.find((A) => A.id === d)) == null ? void 0 : J.name })
|
|
356
|
+
] }) }),
|
|
357
|
+
/* @__PURE__ */ t(i, { className: "border border-gray-300 p-2", children: [
|
|
358
|
+
/* @__PURE__ */ e(
|
|
359
|
+
re,
|
|
360
|
+
{
|
|
361
|
+
icon: ee,
|
|
362
|
+
className: "text-[18px] text-[var(--color-error)]",
|
|
363
|
+
onClick: () => {
|
|
364
|
+
y(2), U(d), le(r);
|
|
365
|
+
},
|
|
366
|
+
"data-testid": "addroledrawer-icon-deleterole"
|
|
367
|
+
}
|
|
368
|
+
),
|
|
369
|
+
/* @__PURE__ */ e(
|
|
370
|
+
Y,
|
|
371
|
+
{
|
|
372
|
+
open: W === 2 && w === d && ae === r,
|
|
373
|
+
handleClose: () => y(0),
|
|
374
|
+
handleClick: (A) => {
|
|
375
|
+
ue(A, r);
|
|
376
|
+
},
|
|
377
|
+
title: "CONFIRM ACTION",
|
|
378
|
+
description: "Are you sure you want to delete this role?",
|
|
379
|
+
dataTestId: "addroledrawer-modal-confirmdeleterole"
|
|
380
|
+
}
|
|
381
|
+
)
|
|
382
|
+
] })
|
|
383
|
+
]
|
|
384
|
+
},
|
|
385
|
+
d
|
|
386
|
+
);
|
|
387
|
+
}) })
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
) : null })
|
|
391
|
+
] }, a.id);
|
|
392
|
+
})
|
|
393
|
+
]
|
|
394
|
+
}
|
|
395
|
+
),
|
|
396
|
+
/* @__PURE__ */ e(be, { "data-testid": "addroledrawer-divider" }),
|
|
397
|
+
/* @__PURE__ */ t(
|
|
398
|
+
we,
|
|
399
|
+
{
|
|
400
|
+
direction: "row",
|
|
401
|
+
spacing: 2,
|
|
402
|
+
justifyContent: "flex-end",
|
|
403
|
+
mt: 2,
|
|
404
|
+
mb: 1.5,
|
|
405
|
+
children: [
|
|
406
|
+
/* @__PURE__ */ e(
|
|
407
|
+
P,
|
|
408
|
+
{
|
|
409
|
+
variant: "contained",
|
|
410
|
+
color: "secondary",
|
|
411
|
+
size: "small",
|
|
412
|
+
onClick: () => {
|
|
413
|
+
O("button_click", {
|
|
414
|
+
button_name: "cancel widget button",
|
|
415
|
+
button_type: "cancel",
|
|
416
|
+
button_id: "addroledrawer-button-close"
|
|
417
|
+
}), ne(), R([]), _();
|
|
418
|
+
},
|
|
419
|
+
"data-testid": "addroledrawer-button-close",
|
|
420
|
+
children: /* @__PURE__ */ e(s, { variant: "caption", children: `${n("Close")}` })
|
|
421
|
+
}
|
|
422
|
+
),
|
|
423
|
+
/* @__PURE__ */ e(
|
|
424
|
+
P,
|
|
425
|
+
{
|
|
426
|
+
variant: "contained",
|
|
427
|
+
color: "primary",
|
|
428
|
+
className: "mr-2",
|
|
429
|
+
size: "small",
|
|
430
|
+
onClick: te(he),
|
|
431
|
+
"data-testid": "addroledrawer-button-submit",
|
|
432
|
+
children: n("Update")
|
|
433
|
+
}
|
|
434
|
+
)
|
|
435
|
+
]
|
|
436
|
+
}
|
|
437
|
+
)
|
|
438
|
+
]
|
|
439
|
+
}
|
|
440
|
+
)
|
|
441
|
+
}
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
Ie.propTypes = {
|
|
445
|
+
open: k.any,
|
|
446
|
+
handleClose: k.func,
|
|
447
|
+
data: k.any,
|
|
448
|
+
roleData: k.any
|
|
449
|
+
};
|
|
450
|
+
export {
|
|
451
|
+
Ie as default
|
|
452
|
+
};
|
|
453
|
+
//# sourceMappingURL=AddRoleDrawer-ZK1eejxI-BM6rfhh5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddRoleDrawer-ZK1eejxI-BM6rfhh5.js","sources":["../../core/dist/AddRoleDrawer-ZK1eejxI.js"],"sourcesContent":["import { jsx as e, jsxs as l } from \"react/jsx-runtime\";\nimport { Drawer as he, Typography as m, Button as x, Table as L, TableHead as z, TableRow as N, TableCell as c, TableBody as j, Divider as be } from \"@mui/material\";\nimport { Grid as h, Box as ye, Stack as ge } from \"@mui/system\";\nimport S from \"prop-types\";\nimport Q from \"@/views/custom-components/CustomTextField\";\nimport { useForm as we } from \"react-hook-form\";\nimport * as X from \"yup\";\nimport { yupResolver as ve } from \"@hookform/resolvers/yup\";\nimport Ne, { useRef as Y, useState as E, useEffect as B } from \"react\";\nimport Z from \"@/views/custom-components/CustomConfirmationModal\";\nimport { showToast as W } from \"@/common/toaster/toaster\";\nimport Ce from \"@/views/custom-components/CustomCheckBox\";\nimport { api as Ae } from \"@/common/interceptors/AxiosInterceptor\";\nimport Te from \"@/hooks/useTrackEvent\";\nimport D from \"@/views/custom-components/CustomAutoComplete\";\nimport { useTranslateProvider as Re } from \"@/common/languageTranslator/TranslationContext\";\nimport { faTrash as ee } from \"@fortawesome/free-solid-svg-icons\";\nimport { FontAwesomeIcon as re } from \"@fortawesome/react-fontawesome\";\nconst Pe = (R) => Ae.post(\"/notificationtype\", R);\nfunction Ie({ open: R, handleClose: _, data: f, roleData: y }) {\n var G, H;\n const P = Y(null), F = Y(!1), [O, $] = E([]), [g, U] = E(null), [q, v] = E(0), [oe, te] = E(null), { translate: n } = Re(), ae = X.object().shape({\n name: X.string().required(\"Enter Name\")\n });\n B(() => {\n if (P.current) {\n let o = P.current;\n return () => {\n M(\"conversion_event\", {\n form: o,\n form_name: \"Add Widget Role\",\n submit: F.current\n });\n };\n }\n }, [P.current]);\n const {\n control: C,\n formState: { errors: I },\n handleSubmit: le,\n setValue: p,\n getValues: w,\n watch: de,\n reset: se\n } = we({\n defaultValues: { selectedPerformer: [] },\n mode: \"onChange\",\n resolver: ve(ae)\n }), i = de();\n B(() => {\n var o;\n p(\"name\", f.notificationName), (o = f == null ? void 0 : f.roles) != null && o.length && p(\n \"roles\",\n f.roles ? f.roles.map((r) => y == null ? void 0 : y.find((t) => t.name === r)).filter((r) => r !== void 0) : []\n ), f.escalationLevels || (f.escalationLevels = []), p(\"escalationLevels\", f.escalationLevels);\n }, [R]);\n const ne = (o, r) => {\n const t = o == null ? void 0 : o.map((a) => a.id);\n p(`selectedPerformer[${r}].roles`, t);\n }, ce = (o, r, t) => {\n const a = w(\"escalationLevels\");\n a[r].performAction[t] = o, p(\"escalationLevels\", a);\n }, ie = () => {\n const o = i.roles || [], r = [...o];\n O.forEach((t) => {\n o.some((d) => d.id === t.id) || r.push(t);\n }), p(\"roles\", r), $([]);\n };\n B(() => {\n const o = w(\"selectedPerformer\"), r = (i == null ? void 0 : i.roles) || [], t = o.map((a) => {\n const d = ((a == null ? void 0 : a.roles) || []).filter(\n (u) => r.some((A) => A.id === u)\n );\n return { ...a, roles: d };\n });\n p(\"selectedPerformer\", t, { shouldValidate: !0 });\n }, [i.roles]);\n const me = (o, r) => {\n const t = w(\"escalationLevels\"), a = w(\"selectedPerformer\");\n t[r].roles = [\n .../* @__PURE__ */ new Set([\n ...t[r].roles,\n ...a[r].roles\n ])\n ], a[r].roles.forEach((d) => {\n t[r].performAction[d] = t[r].performAction[d] || !1;\n }), a[r].roles = [], p(\"escalationLevels\", t), p(\"selectedPerformer\", a);\n }, pe = () => {\n try {\n const r = w(\"roles\").filter((d) => d.id !== g);\n p(\"roles\", [...r]);\n const a = w(\"escalationLevels\").map(\n (d) => {\n const u = d.roles.filter(\n (V) => V !== g\n ), { [g]: A, ...k } = d.performAction;\n return {\n ...d,\n roles: u,\n performAction: k\n };\n }\n );\n p(\"escalationLevels\", a), v(0);\n } catch (o) {\n W({ message: o, type: \"error\" });\n }\n }, ue = (o, r) => {\n try {\n const t = w(\"escalationLevels\");\n t[r].roles = t[r].roles.filter(\n (u) => u !== g\n );\n const { [g]: a, ...d } = t[r].performAction;\n t[r].performAction = d, p(\"escalationValues\", [...t]), v(0);\n } catch (t) {\n W({ message: t, type: \"error\" });\n }\n }, M = Te(), fe = async (o) => {\n try {\n M(\"button_click\", {\n button_name: f ? \"update widget button\" : \"add widget button\",\n button_type: \"submit\",\n button_id: \"addroledrawer-button-submit\"\n });\n const { roles: r = [], escalationLevels: t } = o, a = r.map((u) => u.id), d = { ...f, escalationLevels: t, roles: a };\n await Pe(d).catch((u) => {\n console.error(\"error in updating notification\", u);\n }), W({ message: \"Widget Updated Successfully\", type: \"success\" }), F.current = !0, _(!0);\n } catch (r) {\n console.error(r);\n }\n };\n return /* @__PURE__ */ e(\n he,\n {\n open: R,\n anchor: \"right\",\n onClose: _,\n className: \"z-[1300]\",\n \"data-testid\": \"addroledrawer-drawer-container\",\n children: /* @__PURE__ */ l(\n h,\n {\n container: !0,\n className: \"flex flex-col w-full md:w-[600px] \",\n ref: P,\n children: [\n /* @__PURE__ */ e(\n h,\n {\n p: 1,\n alignContent: \"flex-start\",\n className: \"p-2.5 px-5 flex border-b font-medium text-lg\",\n \"data-testid\": \"addroledrawer-grid-header uppercase\",\n children: n(\"Assign Role\")\n }\n ),\n /* @__PURE__ */ l(\n h,\n {\n container: !0,\n display: \"flex\",\n flexDirection: \"column\",\n p: 1,\n \"data-testid\": \"addroledrawer-grid-content\",\n children: [\n /* @__PURE__ */ l(h, { \"data-testid\": \"addroledrawer-grid-name\", children: [\n /* @__PURE__ */ l(m, { variant: \"body2\", children: [\n n(\"Name\"),\n /* @__PURE__ */ e(\"span\", { className: \"text-red-500 ml-1\", children: \"*\" })\n ] }),\n /* @__PURE__ */ e(\n Q,\n {\n id: \"name\",\n control: C,\n name: \"name\",\n errors: I,\n InputProps: {\n readOnly: !0\n },\n dataTestId: \"addroledrawer-textfield-name\"\n }\n )\n ] }),\n /* @__PURE__ */ l(h, { \"data-testid\": \"addroledrawer-grid-actionby\", children: [\n /* @__PURE__ */ e(m, { variant: \"body2\", mt: 1, children: n(\"Select Role\") }),\n /* @__PURE__ */ l(h, { container: !0, display: \"flex\", flexDirection: \"row\", children: [\n /* @__PURE__ */ e(h, { width: \"70%\", mr: 2, children: /* @__PURE__ */ e(\n D,\n {\n name: \"role\",\n control: C,\n value: O,\n options: y,\n getOptionLabel: (o) => o.name,\n errors: I,\n dataTestId: \"addroledrawer-select-roles\",\n onChange: (o, r) => $(r)\n }\n ) }),\n /* @__PURE__ */ e(h, { className: \"pt-2\", children: /* @__PURE__ */ e(\n x,\n {\n variant: \"contained\",\n size: \"small\",\n disabled: !O.length,\n onClick: ie,\n \"data-testid\": \"addroledrawer-button-add\",\n children: n(\"Assign\")\n }\n ) })\n ] })\n ] }),\n /* @__PURE__ */ e(h, { \"data-testid\": \"addroledrawer-grid-table\", children: /* @__PURE__ */ l(\n L,\n {\n \"data-testid\": \"addroledrawer-table\",\n className: \"border border-gray-300\",\n children: [\n /* @__PURE__ */ e(z, { children: /* @__PURE__ */ l(N, { children: [\n /* @__PURE__ */ e(c, { className: \"border-r border-gray-300 p-2\", children: /* @__PURE__ */ e(m, { variant: \"body2\", className: \"font-bold\", children: `${n(\"Role\")}${n(\"name\")} (${n(\"Assigned to\")})` }) }),\n /* @__PURE__ */ e(c, { className: \"p-2\", children: /* @__PURE__ */ e(m, { variant: \"body2\", className: \"font-bold\", children: n(\"Delete\") }) })\n ] }) }),\n /* @__PURE__ */ e(j, { children: (G = i == null ? void 0 : i.roles) == null ? void 0 : G.map((o, r) => /* @__PURE__ */ l(\n N,\n {\n \"data-testid\": \"addroledrawer-tablerow-roles\",\n children: [\n /* @__PURE__ */ e(c, { className: \"border border-gray-300 p-2\", children: /* @__PURE__ */ e(m, { variant: \"caption\", children: o.name }) }),\n /* @__PURE__ */ l(c, { className: \"p-2\", children: [\n /* @__PURE__ */ e(\n re,\n {\n icon: ee,\n className: \"text-[18px] text-[var(--color-error)]\",\n onClick: () => {\n v(1), U(o.id);\n },\n \"data-testid\": \"addroledrawer-icon-delete\"\n }\n ),\n /* @__PURE__ */ e(\n Z,\n {\n open: q === 1 && g === o.id,\n handleClose: () => v(0),\n handleClick: (t) => pe(),\n title: \"CONFIRM ACTION\",\n description: \"Are you sure you want to delete this role? It will also delete role from each escalation level.\",\n dataTestId: \"addroledrawer-modal-confirmdelete\"\n }\n )\n ] })\n ]\n },\n o.id\n )) })\n ]\n }\n ) }),\n (H = i.escalationLevels) == null ? void 0 : H.map((o, r) => {\n var t, a, d, u, A, k, V, J;\n return /* @__PURE__ */ l(Ne.Fragment, { children: [\n /* @__PURE__ */ e(h, { \"data-testid\": \"addroledrawer-grid-escalationlevel\", children: /* @__PURE__ */ l(L, { className: \"border border-gray-300\", children: [\n /* @__PURE__ */ e(z, { children: /* @__PURE__ */ l(N, { children: [\n /* @__PURE__ */ e(c, { className: \"border-r border-gray-300 p-2 w-80\", children: /* @__PURE__ */ e(m, { variant: \"body2\", className: \"font-bold\", children: n(\"Escalation Level\") }) }),\n /* @__PURE__ */ e(c, { className: \"border-r border-gray-300 p-2 w-60\", children: /* @__PURE__ */ e(m, { variant: \"body2\", className: \"font-bold\", children: n(\"Performer\") }) }),\n /* @__PURE__ */ e(c, { className: \"p-2 w-40 \", children: /* @__PURE__ */ e(m, { variant: \"body2\", className: \"font-bold\", children: n(\"Action\") }) })\n ] }) }),\n /* @__PURE__ */ e(j, { children: /* @__PURE__ */ l(N, { \"data-testid\": \"addroledrawer-tablerow-escalationperformer\", children: [\n /* @__PURE__ */ e(c, { className: \"border-r border-gray-300 p-2\", children: /* @__PURE__ */ e(\n Q,\n {\n id: \"escalationLevel\",\n control: C,\n name: `escalationLevelData[${r}].name`,\n defaultValue: o == null ? void 0 : o.name,\n errors: I,\n disabled: !0,\n dataTestId: \"addroledrawer-textfield-escalationlevel\"\n }\n ) }),\n /* @__PURE__ */ e(c, { className: \"border-r border-gray-300 p-2\", children: /* @__PURE__ */ e(\n D,\n {\n control: C,\n value: (a = (t = i.selectedPerformer) == null ? void 0 : t[r]) != null && a.roles ? (u = (d = i.selectedPerformer[r]) == null ? void 0 : d.roles) == null ? void 0 : u.map(\n (s) => y.find((b) => b.id === s)\n ) : [],\n name: `selectedPerformer[${r}].roles`,\n options: (A = i == null ? void 0 : i.roles) == null ? void 0 : A.map(\n (s) => y.find((b) => b.id === s.id)\n ),\n getOptionLabel: (s) => s == null ? void 0 : s.name,\n onChange: (s, b) => ne(b, r),\n dataTestId: \"addroledrawer-select-performer\",\n errors: I\n }\n ) }),\n /* @__PURE__ */ e(c, { children: /* @__PURE__ */ e(\n x,\n {\n variant: \"contained\",\n size: \"small\",\n disabled: !((V = (k = i.selectedPerformer[r]) == null ? void 0 : k.roles) != null && V.length),\n onClick: (s) => me(s, r),\n \"data-testid\": \"addroledrawer-button-addperformer\",\n children: n(\"Add\")\n }\n ) })\n ] }) })\n ] }) }),\n /* @__PURE__ */ e(h, { children: o.roles.length ? /* @__PURE__ */ l(\n L,\n {\n className: \"border border-gray-300\",\n \"data-testid\": \"addroledrawer-table-performactionroles\",\n children: [\n /* @__PURE__ */ e(z, { children: /* @__PURE__ */ l(N, { children: [\n /* @__PURE__ */ e(c, { className: \"border border-gray-300 p-2\", children: /* @__PURE__ */ e(m, { variant: \"body2\", className: \"font-bold\", children: n(\"Name\") }) }),\n /* @__PURE__ */ e(c, { className: \"border border-gray-300 p-2\", children: /* @__PURE__ */ e(m, { variant: \"body2\", className: \"font-bold\", children: n(\"Roles with perform action\") }) }),\n /* @__PURE__ */ e(c, { className: \"p-2\", children: /* @__PURE__ */ e(m, { variant: \"body2\", className: \"font-bold\", children: n(\"Delete\") }) })\n ] }) }),\n /* @__PURE__ */ e(j, { children: (J = o.roles) == null ? void 0 : J.filter(\n (s) => y.find((b) => b.id === s)\n ).map((s, b) => {\n var K;\n return /* @__PURE__ */ l(\n N,\n {\n \"data-testid\": \"addroledrawer-tablerow-roleactions\",\n children: [\n b === 0 && /* @__PURE__ */ e(\n c,\n {\n className: \"border border-gray-300 p-2\",\n rowSpan: o.roles.length,\n children: o.name\n }\n ),\n /* @__PURE__ */ e(c, { className: \"border border-gray-300 p-2\", children: /* @__PURE__ */ l(ye, { className: \"flex items-center\", children: [\n /* @__PURE__ */ e(\n Ce,\n {\n name: `${r}-${b}`,\n control: C,\n isFullWidth: !1,\n checked: o.performAction[s],\n onChange: (T) => ce(T, r, s),\n \"data-testid\": \"addroledrawer-checkbox-performaction\"\n }\n ),\n /* @__PURE__ */ e(m, { variant: \"caption\", children: (K = y.find((T) => T.id === s)) == null ? void 0 : K.name })\n ] }) }),\n /* @__PURE__ */ l(c, { className: \"border border-gray-300 p-2\", children: [\n /* @__PURE__ */ e(\n re,\n {\n icon: ee,\n className: \"text-[18px] text-[var(--color-error)]\",\n onClick: () => {\n v(2), U(s), te(r);\n },\n \"data-testid\": \"addroledrawer-icon-deleterole\"\n }\n ),\n /* @__PURE__ */ e(\n Z,\n {\n open: q === 2 && g === s && oe === r,\n handleClose: () => v(0),\n handleClick: (T) => {\n ue(T, r);\n },\n title: \"CONFIRM ACTION\",\n description: \"Are you sure you want to delete this role?\",\n dataTestId: \"addroledrawer-modal-confirmdeleterole\"\n }\n )\n ] })\n ]\n },\n s\n );\n }) })\n ]\n }\n ) : null })\n ] }, o.id);\n })\n ]\n }\n ),\n /* @__PURE__ */ e(be, { \"data-testid\": \"addroledrawer-divider\" }),\n /* @__PURE__ */ l(\n ge,\n {\n direction: \"row\",\n spacing: 2,\n justifyContent: \"flex-end\",\n mt: 2,\n mb: 1.5,\n children: [\n /* @__PURE__ */ e(\n x,\n {\n variant: \"contained\",\n color: \"secondary\",\n size: \"small\",\n onClick: () => {\n M(\"button_click\", {\n button_name: \"cancel widget button\",\n button_type: \"cancel\",\n button_id: \"addroledrawer-button-close\"\n }), se(), $([]), _();\n },\n \"data-testid\": \"addroledrawer-button-close\",\n children: /* @__PURE__ */ e(m, { variant: \"caption\", children: `${n(\"Close\")}` })\n }\n ),\n /* @__PURE__ */ e(\n x,\n {\n variant: \"contained\",\n color: \"primary\",\n className: \"mr-2\",\n size: \"small\",\n onClick: le(fe),\n \"data-testid\": \"addroledrawer-button-submit\",\n children: n(\"Update\")\n }\n )\n ]\n }\n )\n ]\n }\n )\n }\n );\n}\nIe.propTypes = {\n open: S.any,\n handleClose: S.func,\n data: S.any,\n roleData: S.any\n};\nexport {\n Ie as default\n};\n//# sourceMappingURL=AddRoleDrawer-ZK1eejxI.js.map\n"],"names":["Pe","R","Ae","y","G","H","P","Y","F","O","$","E","g","q","v","oe","te","Re","ae","X","B","o","M","I","le","p","w","se","we","ve","i","t","ne","a","ce","ie","d","A","r","u","V","k","W","Te","fe","e","he","l","h","m","Q","D","x","L","z","N","c","j","re","ee","Z","J","Ne","s","K","ye","Ce","T","be","ge","S"],"mappings":";;;;;;;;;;;;;;;;;;AAkBA,MAAMA,KAAK,CAACC,MAAMC,GAAG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