@argusoft/medplat-core 1.0.17 → 1.0.19
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/{AddMenuConfiguration-QWfpcnuP.js → AddMenuConfiguration-DsnY0Rws.js} +544 -544
- package/dist/AddMenuConfiguration-DsnY0Rws.js.map +1 -0
- package/dist/{AddRoleDrawer-SvntLdRu.js → AddRoleDrawer-Bc655LQU.js} +17 -17
- package/dist/{AddRoleDrawer-SvntLdRu.js.map → AddRoleDrawer-Bc655LQU.js.map} +1 -1
- package/dist/ChangePasswordModalCore-50EzprTk.js +5495 -0
- package/dist/ChangePasswordModalCore-50EzprTk.js.map +1 -0
- package/dist/{ConditionConfig-DB0FqwgG.js → ConditionConfig-D2hOAa4n.js} +2 -2
- package/dist/{ConditionConfig-DB0FqwgG.js.map → ConditionConfig-D2hOAa4n.js.map} +1 -1
- package/dist/{EntityManagement-DQKXnEzz.js → EntityManagement-D4nG7wUX.js} +2 -2
- package/dist/{EntityManagement-DQKXnEzz.js.map → EntityManagement-D4nG7wUX.js.map} +1 -1
- package/dist/ImmunizationConfigurationBase-C5wnjI_-.js +5706 -0
- package/dist/ImmunizationConfigurationBase-C5wnjI_-.js.map +1 -0
- package/dist/ImmunizationConfigurationBase.css +1 -1
- package/dist/{ManageDynamicFeature-CsIett5x.js → ManageDynamicFeature-i6ARKe36.js} +2 -2
- package/dist/{ManageDynamicFeature-CsIett5x.js.map → ManageDynamicFeature-i6ARKe36.js.map} +1 -1
- package/dist/{ManageEventConfiguration-0YBDaxOI.js → ManageEventConfiguration-CHugu2vQ.js} +92 -92
- package/dist/ManageEventConfiguration-CHugu2vQ.js.map +1 -0
- package/dist/{ManageUser-eBS0yC5k.js → ManageUser-C6dlK-Mr.js} +3 -4
- package/dist/{ManageUser-eBS0yC5k.js.map → ManageUser-C6dlK-Mr.js.map} +1 -1
- package/dist/{MobileMenuManagement-BmrO-7MN.js → MobileMenuManagement-CV6QCeos.js} +15 -15
- package/dist/MobileMenuManagement-CV6QCeos.js.map +1 -0
- package/dist/{MobileTypeEventConfigModal-Ltm529jG.js → MobileTypeEventConfigModal-2w0WQ3WY.js} +2 -2
- package/dist/{MobileTypeEventConfigModal-Ltm529jG.js.map → MobileTypeEventConfigModal-2w0WQ3WY.js.map} +1 -1
- package/dist/{NewServerManagement-5YcAtF-g.js → NewServerManagement-Cxe0dV0O.js} +5 -5
- package/dist/NewServerManagement-Cxe0dV0O.js.map +1 -0
- package/dist/{OtherTypeEventConfigModal-dXt2qDg_.js → OtherTypeEventConfigModal-D1p8M39y.js} +43 -43
- package/dist/{OtherTypeEventConfigModal-dXt2qDg_.js.map → OtherTypeEventConfigModal-D1p8M39y.js.map} +1 -1
- package/dist/{QueryManagement-DGHV_-d5.js → QueryManagement-CRykYGum.js} +3 -3
- package/dist/QueryManagement-CRykYGum.js.map +1 -0
- package/dist/SecurityAuditLogList-Dod711KT.js +874 -0
- package/dist/SecurityAuditLogList-Dod711KT.js.map +1 -0
- package/dist/{TableDetails-DztbjsIA.js → TableDetails-Cf_YfnY2.js} +235 -235
- package/dist/TableDetails-Cf_YfnY2.js.map +1 -0
- package/dist/{TableList-DYwotUDO.js → TableList-HGbEN4bv.js} +28 -28
- package/dist/TableList-HGbEN4bv.js.map +1 -0
- package/dist/{TypeConfiguration-DYbBG_hZ.js → TypeConfiguration-D-3xNcyd.js} +2 -2
- package/dist/{TypeConfiguration-DYbBG_hZ.js.map → TypeConfiguration-D-3xNcyd.js.map} +1 -1
- package/dist/{UserList-BAeAFeXZ.js → UserList-D7GL7jvO.js} +420 -421
- package/dist/UserList-D7GL7jvO.js.map +1 -0
- package/dist/{WidgetList-D-fIf3N2.js → WidgetList-B3Sm9weK.js} +2 -2
- package/dist/{WidgetList-D-fIf3N2.js.map → WidgetList-B3Sm9weK.js.map} +1 -1
- package/dist/index-D9YNFPn9.js +1439 -0
- package/dist/index-D9YNFPn9.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +189 -174
- package/dist/index.js.map +1 -1
- package/dist/{index-BFznsakV.js → pdfmake-Cf-381ou.js} +13951 -15385
- package/dist/pdfmake-Cf-381ou.js.map +1 -0
- package/package.json +1 -1
- package/dist/AddMenuConfiguration-QWfpcnuP.js.map +0 -1
- package/dist/ChangePasswordModalCore-ClND1mel.js +0 -181
- package/dist/ChangePasswordModalCore-ClND1mel.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-VqVvVR57.js +0 -5389
- package/dist/ImmunizationConfigurationBase-VqVvVR57.js.map +0 -1
- package/dist/ManageEventConfiguration-0YBDaxOI.js.map +0 -1
- package/dist/MobileMenuManagement-BmrO-7MN.js.map +0 -1
- package/dist/NewServerManagement-5YcAtF-g.js.map +0 -1
- package/dist/QueryManagement-DGHV_-d5.js.map +0 -1
- package/dist/SecurityAuditLogList-DHTcOtbx.js +0 -748
- package/dist/SecurityAuditLogList-DHTcOtbx.js.map +0 -1
- package/dist/TableDetails-DztbjsIA.js.map +0 -1
- package/dist/TableList-DYwotUDO.js.map +0 -1
- package/dist/UserList-BAeAFeXZ.js.map +0 -1
- package/dist/index-BFznsakV.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { jsxs as r, Fragment as
|
|
1
|
+
import { jsxs as r, Fragment as nt, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { b as it, c as rt, d as lt, M as ot, u as st, s as ct } from "./EventsSkeleton-DCXwwPbb.js";
|
|
3
3
|
import { retrieveAllNotifications as dt, getReportsList as ut } from "@/common/services/GlobalApis";
|
|
4
4
|
import { showToast as F } from "@/common/toaster/toaster";
|
|
@@ -17,14 +17,14 @@ import { useTranslateProvider as It } from "@/common/languageTranslator/Translat
|
|
|
17
17
|
import Mt from "@/hooks/useTrackEvent";
|
|
18
18
|
import { FontAwesomeIcon as $ } from "@fortawesome/react-fontawesome";
|
|
19
19
|
import { faPen as Dt, faTrash as xe, faPlus as Ie } from "@fortawesome/free-solid-svg-icons";
|
|
20
|
-
import './ManageEventConfiguration.css';const Rt = X(() => import("./ConditionConfig-
|
|
21
|
-
() => import("./MobileTypeEventConfigModal-
|
|
20
|
+
import './ManageEventConfiguration.css';const Rt = X(() => import("./ConditionConfig-D2hOAa4n.js")), qt = X(
|
|
21
|
+
() => import("./MobileTypeEventConfigModal-2w0WQ3WY.js")
|
|
22
22
|
), St = X(
|
|
23
|
-
() => import("./OtherTypeEventConfigModal-
|
|
23
|
+
() => import("./OtherTypeEventConfigModal-D1p8M39y.js")
|
|
24
24
|
);
|
|
25
25
|
function Qt() {
|
|
26
26
|
var ve, ye, be;
|
|
27
|
-
const { translate: l } = It(), Z = Ne(null), ee = Ne(!1), { id: A } = xt(), te = wt(), [z, Me] = u(null), [
|
|
27
|
+
const { translate: l } = It(), Z = Ne(null), ee = Ne(!1), { id: A } = xt(), te = wt(), [z, Me] = u(null), [ae, De] = u(null), [ne, Re] = u({}), [v, M] = u(
|
|
28
28
|
[]
|
|
29
29
|
), [ie, qe] = u(null), [H, Se] = u(null), [Ae, re] = u(null), [Oe, Le] = u(null), [D, L] = u(null), [_e, le] = u(null), [$e, ze] = u(null), [R, q] = u(null), [oe, ke] = u(!1), [se, ce] = u(!1), [de, j] = u(!1), [k, S] = u([]), [Ue, U] = u(!1), [Pe, Fe] = u([]), Be = window.getComputedStyle(document.body).lineHeight, ue = () => ke(!oe), We = I.object().shape({
|
|
30
30
|
name: I.string().required("Enter Name"),
|
|
@@ -94,8 +94,8 @@ function Qt() {
|
|
|
94
94
|
try {
|
|
95
95
|
if (v.length > 0) {
|
|
96
96
|
e.minute = Number(e.minute || 0), e.notificationConfigDetails = v;
|
|
97
|
-
const
|
|
98
|
-
|
|
97
|
+
const a = m === "TIMMER_BASED", i = m === "FORM_SUBMITTED", n = m === "MANUAL", o = m === "RECURSION";
|
|
98
|
+
a || (delete e.trigerWhen, delete e.day, delete e.hour, delete e.minute), i || delete e.formTypeId, !i && !n && (delete e.eventTypeDetailCode, delete e.eventTypeDetailId), o ? (delete e.formTypeId, e.trigerWhen = "RECURSION") : delete e.recursionInterval;
|
|
99
99
|
const g = ["AFTER", "MONTHLY", "WEEKLY"], E = ["AFTER", "MONTHLY", "DAILY", "WEEKLY"];
|
|
100
100
|
g.includes(f) || delete e.day, E.includes(f) || (delete e.day, delete e.hour), f === "IMMEDIATELY" && (delete e.day, delete e.hour, delete e.minute);
|
|
101
101
|
const w = v.map((y) => {
|
|
@@ -125,14 +125,14 @@ function Qt() {
|
|
|
125
125
|
type: "warn"
|
|
126
126
|
});
|
|
127
127
|
} catch {
|
|
128
|
-
F({ message: "submit problem", type: "error" }), U((
|
|
128
|
+
F({ message: "submit problem", type: "error" }), U((a) => !a);
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
Ee(() => {
|
|
132
132
|
je();
|
|
133
133
|
}, []);
|
|
134
134
|
const je = async () => {
|
|
135
|
-
var e,
|
|
135
|
+
var e, a, i, n;
|
|
136
136
|
try {
|
|
137
137
|
U((d) => !d);
|
|
138
138
|
const o = await it({ is_active: !0 });
|
|
@@ -147,11 +147,11 @@ function Qt() {
|
|
|
147
147
|
const { data: y } = await ut();
|
|
148
148
|
if (Fe(y || []), A) {
|
|
149
149
|
const d = await lt(A);
|
|
150
|
-
(i = (
|
|
150
|
+
(i = (a = d == null ? void 0 : d.data) == null ? void 0 : a.notificationConfigDetails) == null || i.forEach((N) => {
|
|
151
151
|
ge(N);
|
|
152
152
|
});
|
|
153
153
|
let b = d == null ? void 0 : d.data;
|
|
154
|
-
(
|
|
154
|
+
(n = Object.keys(b)) == null || n.forEach((N) => {
|
|
155
155
|
b[N] !== void 0 && b[N] !== null && P(N, b[N]);
|
|
156
156
|
}), M((b == null ? void 0 : b.notificationConfigDetails) || []);
|
|
157
157
|
}
|
|
@@ -164,12 +164,12 @@ function Qt() {
|
|
|
164
164
|
}
|
|
165
165
|
}, ge = (e) => {
|
|
166
166
|
e.implicitParam = ["#resourceId#"];
|
|
167
|
-
const
|
|
167
|
+
const a = /\bFROM\b/gi, i = /\bSELECT\b/gi;
|
|
168
168
|
if (e != null && e.query) {
|
|
169
|
-
const
|
|
169
|
+
const n = (e.query.match(a) || []).length, o = (e.query.match(i) || []).length;
|
|
170
170
|
let g;
|
|
171
171
|
if (o > 0) {
|
|
172
|
-
|
|
172
|
+
n > 1 && n === o ? g = e.query.substring(6, e.query.search(/\bfrom\b(?!(.|\n)*(from))/i)).match(/(\w*\(.*?\) as \w*|[^\(\),]+)(?=\s*,|\s*$)/g) : n !== o ? g = e.query.substring(6).match(/(\w*\(.*?\) as \w*|[^\(\),]+)(?=\s*,|\s*$)/gi) : n === 1 && n === o ? g = e.query.substring(6, e.query.toLowerCase().indexOf("from")).match(/(\w*\(.*?\) as \w*|[^\(\),]+)(?=\s*,|\s*$)/gi) : g = e.query.substring(6).match(/(\w*\(.*?\) as \w*|[^\(\),]+)(?=\s*,|\s*$)/gi);
|
|
173
173
|
const E = g == null ? void 0 : g.filter(
|
|
174
174
|
(w) => w.trim().length > 0
|
|
175
175
|
);
|
|
@@ -187,29 +187,29 @@ function Qt() {
|
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
189
|
}, Ve = (e) => {
|
|
190
|
-
const
|
|
191
|
-
(i,
|
|
190
|
+
const a = v == null ? void 0 : v.filter(
|
|
191
|
+
(i, n) => n !== e
|
|
192
192
|
);
|
|
193
|
-
M(
|
|
194
|
-
}, Ke = (e,
|
|
195
|
-
const i = [...v],
|
|
196
|
-
i[e].conditions =
|
|
197
|
-
}, J = async (e,
|
|
198
|
-
Se(e), qe(
|
|
199
|
-
}, Je = (e,
|
|
193
|
+
M(a);
|
|
194
|
+
}, Ke = (e, a) => {
|
|
195
|
+
const i = [...v], n = i[e].conditions.filter((o, g) => g !== a);
|
|
196
|
+
i[e].conditions = n, M(i);
|
|
197
|
+
}, J = async (e, a, i, n) => {
|
|
198
|
+
Se(e), qe(a), i ? (re(i), le(!0), L(JSON.parse(JSON.stringify(i))), S((i == null ? void 0 : i.notificaitonConfigsType) || []), Le(n)) : (re({}), L({}), S([]), le(!1)), q({}), ue();
|
|
199
|
+
}, Je = (e, a) => {
|
|
200
200
|
const i = [...v];
|
|
201
|
-
i[e].query =
|
|
201
|
+
i[e].query = a, M(i);
|
|
202
202
|
}, Qe = async () => {
|
|
203
|
-
let e = [...v],
|
|
204
|
-
v.forEach((i,
|
|
203
|
+
let e = [...v], a = !0;
|
|
204
|
+
v.forEach((i, n) => {
|
|
205
205
|
if (i.query === "") {
|
|
206
|
-
|
|
207
|
-
const o = `notificationConfigDetails.${
|
|
206
|
+
a = !1;
|
|
207
|
+
const o = `notificationConfigDetails.${n}.query`;
|
|
208
208
|
V(o, { type: "manual", message: "Query Required" });
|
|
209
209
|
}
|
|
210
|
-
}),
|
|
211
|
-
}, he = async (e,
|
|
212
|
-
e ? (e.index =
|
|
210
|
+
}), a && (e.push({ query: "", conditions: [], queryParam: null }), M(e));
|
|
211
|
+
}, he = async (e, a) => {
|
|
212
|
+
e ? (e.index = a, ze(e), q({
|
|
213
213
|
...JSON.parse(JSON.stringify(e)),
|
|
214
214
|
implicitParam: H.implicitParam
|
|
215
215
|
}), ce(!0)) : (q({ ...R, implicitParam: H.implicitParam }), ce(!1)), Ge();
|
|
@@ -217,36 +217,36 @@ function Qt() {
|
|
|
217
217
|
j((e) => !e);
|
|
218
218
|
}, pe = (e) => {
|
|
219
219
|
if (se) {
|
|
220
|
-
const
|
|
221
|
-
S(
|
|
220
|
+
const a = k.map((i, n) => n === e.index ? { ...i, ...e } : i);
|
|
221
|
+
S(a);
|
|
222
222
|
} else
|
|
223
223
|
S([...k, e]);
|
|
224
224
|
et(e);
|
|
225
225
|
}, Xe = (e) => {
|
|
226
226
|
S(
|
|
227
|
-
(
|
|
227
|
+
(a) => a.filter((i, n) => n !== e)
|
|
228
228
|
);
|
|
229
229
|
}, Ze = (e) => {
|
|
230
230
|
he(k[e], e);
|
|
231
231
|
}, et = (e) => {
|
|
232
|
-
let
|
|
233
|
-
D.notificaitonConfigsType || (
|
|
232
|
+
let a = { ...D };
|
|
233
|
+
D.notificaitonConfigsType || (a.notificaitonConfigsType = []), se ? a.notificaitonConfigsType[$e.index] = e : a.notificaitonConfigsType.push(e), L(a), q({});
|
|
234
234
|
}, Q = Mt(), tt = (e) => {
|
|
235
235
|
if (_e) {
|
|
236
|
-
const
|
|
236
|
+
const a = [...v];
|
|
237
237
|
L({ ...D, ...e });
|
|
238
238
|
let i = { ...D, ...e };
|
|
239
|
-
|
|
239
|
+
a[ie].conditions[Oe] = i, M(a), S([]);
|
|
240
240
|
} else {
|
|
241
|
-
const
|
|
241
|
+
const a = [...v];
|
|
242
242
|
L({ ...D, ...e });
|
|
243
243
|
let i = { ...D, ...e };
|
|
244
|
-
|
|
244
|
+
a[ie].conditions.push(i), M(a), S([]);
|
|
245
245
|
}
|
|
246
|
-
},
|
|
246
|
+
}, at = (e) => {
|
|
247
247
|
q({ ...R, ...e });
|
|
248
248
|
};
|
|
249
|
-
return /* @__PURE__ */ r(
|
|
249
|
+
return /* @__PURE__ */ r(nt, { children: [
|
|
250
250
|
/* @__PURE__ */ t(ot, { isLoading: Ue, children: /* @__PURE__ */ r(
|
|
251
251
|
gt,
|
|
252
252
|
{
|
|
@@ -394,24 +394,24 @@ function Qt() {
|
|
|
394
394
|
labelId: "event-type-label",
|
|
395
395
|
displayEmpty: !0,
|
|
396
396
|
size: "small",
|
|
397
|
-
onChange: (
|
|
398
|
-
const i =
|
|
397
|
+
onChange: (a) => {
|
|
398
|
+
const i = a.target.value;
|
|
399
399
|
e.onChange(i);
|
|
400
|
-
const
|
|
400
|
+
const n = z.find(
|
|
401
401
|
(o) => o.id === i
|
|
402
402
|
);
|
|
403
403
|
P(
|
|
404
404
|
"eventTypeDetailCode",
|
|
405
|
-
|
|
405
|
+
n == null ? void 0 : n.code
|
|
406
406
|
), P(
|
|
407
407
|
"eventTypeDetailId",
|
|
408
|
-
(
|
|
408
|
+
(n == null ? void 0 : n.detaiId) || null
|
|
409
409
|
);
|
|
410
410
|
},
|
|
411
411
|
"data-testid": "manageeventconfiguration-formtype-select",
|
|
412
412
|
children: [
|
|
413
413
|
/* @__PURE__ */ t(p, { value: "", children: /* @__PURE__ */ t(c, { variant: "body2", children: l("Select") }) }),
|
|
414
|
-
z == null ? void 0 : z.map((
|
|
414
|
+
z == null ? void 0 : z.map((a) => /* @__PURE__ */ t(p, { value: a.id, children: /* @__PURE__ */ t(c, { variant: "body2", children: l(a.name) }) }, a.id))
|
|
415
415
|
]
|
|
416
416
|
}
|
|
417
417
|
)
|
|
@@ -612,7 +612,7 @@ function Qt() {
|
|
|
612
612
|
"data-testid": "manageeventconfiguration-eventtype-detail-select",
|
|
613
613
|
children: [
|
|
614
614
|
/* @__PURE__ */ t(p, { value: "", children: l("None") }),
|
|
615
|
-
|
|
615
|
+
ae && Object.entries(ae).map(([a, i]) => /* @__PURE__ */ t(p, { value: a, children: i }, a))
|
|
616
616
|
]
|
|
617
617
|
}
|
|
618
618
|
)
|
|
@@ -666,7 +666,7 @@ function Qt() {
|
|
|
666
666
|
Te,
|
|
667
667
|
{
|
|
668
668
|
sx: {
|
|
669
|
-
backgroundColor: (e) => e.palette.mode === "dark" ? e.palette.custom.tableHeader : "
|
|
669
|
+
backgroundColor: (e) => e.palette.mode === "dark" ? e.palette.custom.tableHeader : "var(--color-gray4)"
|
|
670
670
|
},
|
|
671
671
|
children: [
|
|
672
672
|
/* @__PURE__ */ t(
|
|
@@ -696,29 +696,29 @@ function Qt() {
|
|
|
696
696
|
]
|
|
697
697
|
}
|
|
698
698
|
) }),
|
|
699
|
-
/* @__PURE__ */ t(Tt, { children: v == null ? void 0 : v.map((e,
|
|
699
|
+
/* @__PURE__ */ t(Tt, { children: v == null ? void 0 : v.map((e, a) => {
|
|
700
700
|
var i;
|
|
701
701
|
return /* @__PURE__ */ r(
|
|
702
702
|
Te,
|
|
703
703
|
{
|
|
704
704
|
sx: {
|
|
705
|
-
backgroundColor: (
|
|
706
|
-
const o =
|
|
707
|
-
return
|
|
705
|
+
backgroundColor: (n) => {
|
|
706
|
+
const o = n.palette.mode === "dark";
|
|
707
|
+
return a % 2 === 0 ? o ? n.palette.background.paper : "#fff" : o ? "#1C2128" : "var(--color-gray4)";
|
|
708
708
|
},
|
|
709
709
|
// Adding a hover state that works in both modes
|
|
710
710
|
"&:hover": {
|
|
711
|
-
backgroundColor: (
|
|
711
|
+
backgroundColor: (n) => n.palette.mode === "dark" ? "#21262D" : "var(--color-gray4)"
|
|
712
712
|
}
|
|
713
713
|
},
|
|
714
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
714
|
+
"data-testid": `manageeventconfiguration-table-row-${a}`,
|
|
715
715
|
children: [
|
|
716
716
|
/* @__PURE__ */ t(
|
|
717
717
|
O,
|
|
718
718
|
{
|
|
719
719
|
className: "border border-gray-300 align-top",
|
|
720
720
|
style: { lineHeight: Be },
|
|
721
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
721
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-query`,
|
|
722
722
|
children: /* @__PURE__ */ r("div", { className: "flex flex-col items-start min-w-[300px]", children: [
|
|
723
723
|
/* @__PURE__ */ t(
|
|
724
724
|
T,
|
|
@@ -730,32 +730,32 @@ function Qt() {
|
|
|
730
730
|
{
|
|
731
731
|
required: !0,
|
|
732
732
|
control: C,
|
|
733
|
-
id: `notificationConfigDetails.${
|
|
734
|
-
name: `notificationConfigDetails.${
|
|
733
|
+
id: `notificationConfigDetails.${a}.query`,
|
|
734
|
+
name: `notificationConfigDetails.${a}.query`,
|
|
735
735
|
errors: s,
|
|
736
736
|
value: e.query,
|
|
737
|
-
onChange: (
|
|
737
|
+
onChange: (n) => {
|
|
738
738
|
P(
|
|
739
|
-
`notificationConfigDetails.${
|
|
740
|
-
|
|
741
|
-
), Je(
|
|
742
|
-
const o = `notificationConfigDetails.${
|
|
739
|
+
`notificationConfigDetails.${a}.query`,
|
|
740
|
+
n.target.value
|
|
741
|
+
), Je(a, n.target.value);
|
|
742
|
+
const o = `notificationConfigDetails.${a}.query`;
|
|
743
743
|
me(o) === "" ? V(o, {
|
|
744
744
|
type: "manual",
|
|
745
745
|
message: "Query Required"
|
|
746
746
|
}) : K(o);
|
|
747
747
|
},
|
|
748
748
|
onBlur: () => {
|
|
749
|
-
const
|
|
750
|
-
me(
|
|
749
|
+
const n = `notificationConfigDetails.${a}.query`;
|
|
750
|
+
me(n) === "" ? V(n, {
|
|
751
751
|
type: "manual",
|
|
752
752
|
message: "Query Required"
|
|
753
|
-
}) : K(
|
|
753
|
+
}) : K(n), ge(e);
|
|
754
754
|
},
|
|
755
755
|
label: "",
|
|
756
756
|
minRows: 5,
|
|
757
757
|
maxRows: 20,
|
|
758
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
758
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-query-textarea`
|
|
759
759
|
}
|
|
760
760
|
) })
|
|
761
761
|
}
|
|
@@ -778,7 +778,7 @@ function Qt() {
|
|
|
778
778
|
O,
|
|
779
779
|
{
|
|
780
780
|
className: "border border-gray-300 align-top",
|
|
781
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
781
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-condition`,
|
|
782
782
|
children: /* @__PURE__ */ t(
|
|
783
783
|
"div",
|
|
784
784
|
{
|
|
@@ -789,7 +789,7 @@ function Qt() {
|
|
|
789
789
|
width: "100%"
|
|
790
790
|
},
|
|
791
791
|
children: ((i = e == null ? void 0 : e.conditions) == null ? void 0 : i.length) > 0 ? e == null ? void 0 : e.conditions.map(
|
|
792
|
-
(
|
|
792
|
+
(n, o) => /* @__PURE__ */ r(
|
|
793
793
|
"div",
|
|
794
794
|
{
|
|
795
795
|
style: { width: "100%" },
|
|
@@ -809,42 +809,42 @@ function Qt() {
|
|
|
809
809
|
{
|
|
810
810
|
className: "mr-1",
|
|
811
811
|
variant: "body2",
|
|
812
|
-
children: (
|
|
812
|
+
children: (n == null ? void 0 : n.condition) || "No condition specified"
|
|
813
813
|
}
|
|
814
814
|
),
|
|
815
815
|
/* @__PURE__ */ t(
|
|
816
816
|
$,
|
|
817
817
|
{
|
|
818
|
-
className: "bg-[
|
|
818
|
+
className: "bg-[var(--color-gray3)] text-gray-600 rounded-full p-[10px] w-[14px] h-[14px] mx-1 cursor-pointer hover:bg-gray-300 hover:text-[#11B666] transition-all",
|
|
819
819
|
icon: Dt,
|
|
820
820
|
onClick: () => J(
|
|
821
821
|
e,
|
|
822
|
-
n,
|
|
823
822
|
a,
|
|
823
|
+
n,
|
|
824
824
|
o
|
|
825
825
|
),
|
|
826
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
826
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-condition-edit-${o}`
|
|
827
827
|
}
|
|
828
828
|
),
|
|
829
829
|
/* @__PURE__ */ t(
|
|
830
830
|
$,
|
|
831
831
|
{
|
|
832
832
|
icon: xe,
|
|
833
|
-
className: "bg-[
|
|
833
|
+
className: "bg-[var(--color-gray3)] text-gray-600 rounded-full p-[10px] w-[14px] h-[14px] mx-1 cursor-pointer hover:bg-gray-300 hover:text-[var(--color-error)] transition-all",
|
|
834
834
|
onClick: () => Ke(
|
|
835
|
-
|
|
835
|
+
a,
|
|
836
836
|
o
|
|
837
837
|
),
|
|
838
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
838
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-condition-delete-${o}`
|
|
839
839
|
}
|
|
840
840
|
),
|
|
841
841
|
o === (e == null ? void 0 : e.conditions.length) - 1 && /* @__PURE__ */ t(
|
|
842
842
|
$,
|
|
843
843
|
{
|
|
844
844
|
icon: Ie,
|
|
845
|
-
onClick: () => J(e,
|
|
846
|
-
className: "bg-[
|
|
847
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
845
|
+
onClick: () => J(e, a),
|
|
846
|
+
className: "bg-[var(--color-gray3)] text-gray-600 rounded-full p-[10px] w-[14px] h-[14px] mx-1 cursor-pointer hover:bg-gray-300 hover:text-[var(--color-primary)] transition-all",
|
|
847
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-condition-add`
|
|
848
848
|
}
|
|
849
849
|
)
|
|
850
850
|
]
|
|
@@ -865,9 +865,9 @@ function Qt() {
|
|
|
865
865
|
$,
|
|
866
866
|
{
|
|
867
867
|
icon: Ie,
|
|
868
|
-
onClick: () => J(e,
|
|
868
|
+
onClick: () => J(e, a),
|
|
869
869
|
className: "bg-gray-200 text-gray-600 rounded-full p-2 w-[16px] h-[16px] cursor-pointer hover:bg-gray-300 hover:text-[var(--color-primary)] transition-all",
|
|
870
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
870
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-condition-add-empty`
|
|
871
871
|
}
|
|
872
872
|
) })
|
|
873
873
|
]
|
|
@@ -881,7 +881,7 @@ function Qt() {
|
|
|
881
881
|
O,
|
|
882
882
|
{
|
|
883
883
|
className: "border border-gray-300 align-top",
|
|
884
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
884
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-action`,
|
|
885
885
|
children: /* @__PURE__ */ t(
|
|
886
886
|
"div",
|
|
887
887
|
{
|
|
@@ -894,13 +894,13 @@ function Qt() {
|
|
|
894
894
|
W,
|
|
895
895
|
{
|
|
896
896
|
onClick: () => {
|
|
897
|
-
Ve(
|
|
898
|
-
const
|
|
899
|
-
K(
|
|
897
|
+
Ve(a);
|
|
898
|
+
const n = `notificationConfigDetails.${a}.query`;
|
|
899
|
+
K(n);
|
|
900
900
|
},
|
|
901
901
|
size: "small",
|
|
902
902
|
"aria-label": "delete",
|
|
903
|
-
"data-testid": `manageeventconfiguration-table-row-${
|
|
903
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-action-delete`,
|
|
904
904
|
children: /* @__PURE__ */ t(
|
|
905
905
|
$,
|
|
906
906
|
{
|
|
@@ -916,7 +916,7 @@ function Qt() {
|
|
|
916
916
|
)
|
|
917
917
|
]
|
|
918
918
|
},
|
|
919
|
-
|
|
919
|
+
a + 1
|
|
920
920
|
);
|
|
921
921
|
}) })
|
|
922
922
|
] })
|
|
@@ -971,7 +971,7 @@ function Qt() {
|
|
|
971
971
|
Rt,
|
|
972
972
|
{
|
|
973
973
|
selectedConfig: H,
|
|
974
|
-
notificationtypeMap:
|
|
974
|
+
notificationtypeMap: ne,
|
|
975
975
|
selectedCondition: Ae,
|
|
976
976
|
newCondition: D,
|
|
977
977
|
handleTypeConfigurationDelete: Xe,
|
|
@@ -979,7 +979,7 @@ function Qt() {
|
|
|
979
979
|
addTypeConfig: he,
|
|
980
980
|
setNewConditionData: tt,
|
|
981
981
|
typeConfigurationData: k,
|
|
982
|
-
setNewTypeData:
|
|
982
|
+
setNewTypeData: at,
|
|
983
983
|
overlayOpen: oe,
|
|
984
984
|
handleOverlayState: ue,
|
|
985
985
|
"data-testid": "manageeventconfiguration-conditionconfig"
|
|
@@ -990,7 +990,7 @@ function Qt() {
|
|
|
990
990
|
{
|
|
991
991
|
type: R,
|
|
992
992
|
open: de,
|
|
993
|
-
notificationtypeMap:
|
|
993
|
+
notificationtypeMap: ne,
|
|
994
994
|
handleClick: pe,
|
|
995
995
|
handleClose: () => {
|
|
996
996
|
j((e) => !e), q({});
|
|
@@ -1014,4 +1014,4 @@ function Qt() {
|
|
|
1014
1014
|
export {
|
|
1015
1015
|
Qt as default
|
|
1016
1016
|
};
|
|
1017
|
-
//# sourceMappingURL=ManageEventConfiguration-
|
|
1017
|
+
//# sourceMappingURL=ManageEventConfiguration-CHugu2vQ.js.map
|