@argusoft/medplat-core 1.0.28 → 1.0.30
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-xrday-L1.js +1023 -0
- package/dist/AccessRights-xrday-L1.js.map +1 -0
- package/dist/AddEditQueryBuilder-D-iQiVIe.js +365 -0
- package/dist/AddEditQueryBuilder-D-iQiVIe.js.map +1 -0
- package/dist/{AddFeatures-C0Z29oSd.js → AddFeatures-D1sU8RjY.js} +2 -2
- package/dist/{AddFeatures-C0Z29oSd.js.map → AddFeatures-D1sU8RjY.js.map} +1 -1
- package/dist/AddLabelModal-Bq-wRqv9.js +631 -0
- package/dist/AddLabelModal-Bq-wRqv9.js.map +1 -0
- package/dist/AddMenuConfiguration-e5BVXhmw.js +8547 -0
- package/dist/AddMenuConfiguration-e5BVXhmw.js.map +1 -0
- package/dist/{AddRoleDrawer-CQdzQZLb.js → AddRoleDrawer-0gqAK8N0.js} +62 -63
- package/dist/AddRoleDrawer-0gqAK8N0.js.map +1 -0
- package/dist/AppModal-CCtrQ5Tr.js +394 -0
- package/dist/AppModal-CCtrQ5Tr.js.map +1 -0
- package/dist/BrandsPage-DmRW5bhm-Bk1szrjI.js +387 -0
- package/dist/BrandsPage-DmRW5bhm-Bk1szrjI.js.map +1 -0
- package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js +391 -0
- package/dist/CategoriesPage-BsS5IQh3-B03lWRY5.js.map +1 -0
- package/dist/{ChangePasswordModalCore-CDxkeIIM.js → ChangePasswordModalCore-BPsJquTS.js} +1606 -1611
- package/dist/ChangePasswordModalCore-BPsJquTS.js.map +1 -0
- package/dist/{ConditionConfig-DSsgGEXS.js → ConditionConfig-Ddz9halE.js} +2 -2
- package/dist/ConditionConfig-Ddz9halE.js.map +1 -0
- package/dist/DashboardPage-C3bKc5na-sBd9Yqbi.js +435 -0
- package/dist/DashboardPage-C3bKc5na-sBd9Yqbi.js.map +1 -0
- package/dist/{EntityManagement-GaYsBTvf.js → EntityManagement-CPQL6qBj.js} +2 -2
- package/dist/{EntityManagement-GaYsBTvf.js.map → EntityManagement-CPQL6qBj.js.map} +1 -1
- package/dist/EventConfig-BmLemzX3.js +26 -0
- package/dist/EventConfig-BmLemzX3.js.map +1 -0
- package/dist/{EventConfigurations-kNtAj_WM.js → EventConfigurations-Bzh1qWXU.js} +31 -30
- package/dist/{EventConfigurations-kNtAj_WM.js.map → EventConfigurations-Bzh1qWXU.js.map} +1 -1
- package/dist/{EventsExceptionModal-D4Bf1ilS.js → EventsExceptionModal-B2SRrnB1.js} +2 -2
- package/dist/{EventsExceptionModal-D4Bf1ilS.js.map → EventsExceptionModal-B2SRrnB1.js.map} +1 -1
- package/dist/EventsSkeleton-BIcPks4T.js +61 -0
- package/dist/EventsSkeleton-BIcPks4T.js.map +1 -0
- package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js +79 -0
- package/dist/FacilityPicker-BiZeupmP-CyPHmj6b.js.map +1 -0
- package/dist/FeatureMenu-DYJmDt7q.js +521 -0
- package/dist/FeatureMenu-DYJmDt7q.js.map +1 -0
- package/dist/Features-Dne21RWu.js +14 -0
- package/dist/Features-Dne21RWu.js.map +1 -0
- package/dist/{FhirServerList-Dkq7Kbes.js → FhirServerList-DuTwnngN.js} +19 -19
- package/dist/{FhirServerList-Dkq7Kbes.js.map → FhirServerList-DuTwnngN.js.map} +1 -1
- package/dist/{FhirServerWizard-Db6Hm4bQ.js → FhirServerWizard-DZI8Olku.js} +15 -15
- package/dist/{FhirServerWizard-Db6Hm4bQ.js.map → FhirServerWizard-DZI8Olku.js.map} +1 -1
- package/dist/FlywayQuery-CQygj51V.js +179 -0
- package/dist/FlywayQuery-CQygj51V.js.map +1 -0
- package/dist/{ManageNotification-CaBAOhji.js → Google-DQxMfbaL.js} +1725 -2652
- package/dist/{ManageNotification-CaBAOhji.js.map → Google-DQxMfbaL.js.map} +1 -1
- package/dist/GrantPermissionModal-BDN66Atn.js +236 -0
- package/dist/GrantPermissionModal-BDN66Atn.js.map +1 -0
- package/dist/ImmunizationConfigurationBase-Di1KO3oW.js +7639 -0
- package/dist/ImmunizationConfigurationBase-Di1KO3oW.js.map +1 -0
- package/dist/ImmunizationConfigurationBase.css +1 -1
- package/dist/ImmunizationConfigurationsList-TZcLDEci.js +369 -0
- package/dist/ImmunizationConfigurationsList-TZcLDEci.js.map +1 -0
- package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js +665 -0
- package/dist/InventoryPage-C_AxSy7A-QLvlL4rE.js.map +1 -0
- package/dist/LanguagesModal-B3NTebYT.js +352 -0
- package/dist/LanguagesModal-B3NTebYT.js.map +1 -0
- package/dist/ManageDynamicFeature-BU0I45dd.js +4475 -0
- package/dist/ManageDynamicFeature-BU0I45dd.js.map +1 -0
- package/dist/{ManageEventConfiguration-DV3I5POA.js → ManageEventConfiguration-CoYcpjR9.js} +465 -397
- package/dist/ManageEventConfiguration-CoYcpjR9.js.map +1 -0
- package/dist/ManageNotification-C5MhV77Q.js +934 -0
- package/dist/ManageNotification-C5MhV77Q.js.map +1 -0
- package/dist/{ManageRole-CGYfglpo.js → ManageRole-CNZBRKGU.js} +32 -30
- package/dist/ManageRole-CNZBRKGU.js.map +1 -0
- package/dist/ManageTranslation-vRiptUAP.js +833 -0
- package/dist/ManageTranslation-vRiptUAP.js.map +1 -0
- package/dist/ManageTranslation.css +1 -1
- package/dist/{ManageUser-AY1EUDLI.js → ManageUser-DCFkUMV9.js} +1722 -1586
- package/dist/ManageUser-DCFkUMV9.js.map +1 -0
- package/dist/MemberProfileCard-BdUNgHRB-VywqQdFF.js +272 -0
- package/dist/MemberProfileCard-BdUNgHRB-VywqQdFF.js.map +1 -0
- package/dist/MobileAnalytics-pQoE8cG1.js +16888 -0
- package/dist/MobileAnalytics-pQoE8cG1.js.map +1 -0
- package/dist/MobileMenuManagement-Cf8IZlla.js +108 -0
- package/dist/MobileMenuManagement-Cf8IZlla.js.map +1 -0
- package/dist/{MobileTypeEventConfigModal-BxLympIO.js → MobileTypeEventConfigModal-BeveaX0C.js} +2 -2
- package/dist/MobileTypeEventConfigModal-BeveaX0C.js.map +1 -0
- package/dist/NotificationFlywayQuery-BAHVjf6N.js +247 -0
- package/dist/NotificationFlywayQuery-BAHVjf6N.js.map +1 -0
- package/dist/{NotificationList-C3Vb_jKU.js → NotificationList-DEyRZEuM.js} +109 -110
- package/dist/NotificationList-DEyRZEuM.js.map +1 -0
- package/dist/{OtherTypeEventConfigModal-BeG1GrUi.js → OtherTypeEventConfigModal-CM6VkdmY.js} +570 -478
- package/dist/OtherTypeEventConfigModal-CM6VkdmY.js.map +1 -0
- package/dist/PaymentCreatePage-CIVe0P0p-25BQVpOX.js +482 -0
- package/dist/PaymentCreatePage-CIVe0P0p-25BQVpOX.js.map +1 -0
- package/dist/PaymentsPage-BvPe5Q9F-D2gfziwW.js +157 -0
- package/dist/PaymentsPage-BvPe5Q9F-D2gfziwW.js.map +1 -0
- package/dist/PermissionsModal-CCYkcKlC.js +151 -0
- package/dist/PermissionsModal-CCYkcKlC.js.map +1 -0
- package/dist/PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js +119 -0
- package/dist/PickupBatchLinesEditor-DHmcAG23-DL2p6IKJ.js.map +1 -0
- package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js +783 -0
- package/dist/PickupCreatePage-CB0Sl0Hb-Mmj7zESG.js.map +1 -0
- package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js +818 -0
- package/dist/PickupsPage-Ctpghavs-CUp4uIZq.js.map +1 -0
- package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js +599 -0
- package/dist/PmGuard-b10TGXEi-G3N0G_Wg.js.map +1 -0
- package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js +1302 -0
- package/dist/ProductEditPage-C1thoKHu-URQaZ6st.js.map +1 -0
- package/dist/ProductsPage-CupVmOD4-D45a_hf-.js +252 -0
- package/dist/ProductsPage-CupVmOD4-D45a_hf-.js.map +1 -0
- package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js +648 -0
- package/dist/PurchaseCreatePage-YD3NmhPQ-2j4etSjM.js.map +1 -0
- package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js +1577 -0
- package/dist/PurchaseRequestDetailPage-Dg_MRY_N-D1bgTEAn.js.map +1 -0
- package/dist/PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js +279 -0
- package/dist/PurchaseRequestsPage-DPAPzpmm-mDH2IrTl.js.map +1 -0
- package/dist/PurchasesPage-It1GHiXl-eH4IsF_U.js +293 -0
- package/dist/PurchasesPage-It1GHiXl-eH4IsF_U.js.map +1 -0
- package/dist/QueryBuilder-CXaBe6sr.js +478 -0
- package/dist/QueryBuilder-CXaBe6sr.js.map +1 -0
- package/dist/{RoleManagement-BPl2cE27.js → RoleManagement-s8iNx2Mu.js} +131 -142
- package/dist/RoleManagement-s8iNx2Mu.js.map +1 -0
- package/dist/Roles-BIyiic67.js +14 -0
- package/dist/Roles-BIyiic67.js.map +1 -0
- package/dist/SaleCreatePage-C9kFmTvm-B3Y0o4CX.js +544 -0
- package/dist/SaleCreatePage-C9kFmTvm-B3Y0o4CX.js.map +1 -0
- package/dist/SalesPage-D18DCseD-BxktGDRQ.js +315 -0
- package/dist/SalesPage-D18DCseD-BxktGDRQ.js.map +1 -0
- package/dist/{ServerSyncModal-D_oFpv3C.js → ServerSyncModal-92U3xtqI.js} +84 -85
- package/dist/ServerSyncModal-92U3xtqI.js.map +1 -0
- package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js +747 -0
- package/dist/SettingsPage-VsxI-ano-DcmtUUEj.js.map +1 -0
- package/dist/ShowFlywayQuery-D10Olk5Z.js +154 -0
- package/dist/ShowFlywayQuery-D10Olk5Z.js.map +1 -0
- package/dist/{ShowFlywayQuery-DVRCd384.js → ShowFlywayQuery-D1y_4A1u.js} +161 -121
- package/dist/ShowFlywayQuery-D1y_4A1u.js.map +1 -0
- package/dist/ShowQueryHistory-DRBKYDKk.js +313 -0
- package/dist/ShowQueryHistory-DRBKYDKk.js.map +1 -0
- package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js +721 -0
- package/dist/StorageUnitsPage-7EqwuMOI-BwUso1Th.js.map +1 -0
- package/dist/SubMenu-eEDhZUvh.js +317 -0
- package/dist/SubMenu-eEDhZUvh.js.map +1 -0
- package/dist/{TableDetails-Cf_YfnY2.js → TableDetails-BtafRxXb.js} +1069 -831
- package/dist/TableDetails-BtafRxXb.js.map +1 -0
- package/dist/{TableList-D6jnIbnz.js → TableList-Dpo6dO7S.js} +2 -2
- package/dist/{TableList-D6jnIbnz.js.map → TableList-Dpo6dO7S.js.map} +1 -1
- package/dist/TransactionsPage-DrH53pVS-BkhIGB6C.js +746 -0
- package/dist/TransactionsPage-DrH53pVS-BkhIGB6C.js.map +1 -0
- package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js +315 -0
- package/dist/TransferCreatePage-CuvoMrYH-DTTfHjz-.js.map +1 -0
- package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js +476 -0
- package/dist/TransfersPage-Cf701t8s-BBbN7cBf.js.map +1 -0
- package/dist/{TypeConfiguration-37wp-gsl.js → TypeConfiguration-3O6ABrK-.js} +2 -2
- package/dist/{TypeConfiguration-37wp-gsl.js.map → TypeConfiguration-3O6ABrK-.js.map} +1 -1
- package/dist/{UserList-Bc8gYxRL.js → UserList-DgPxsnj2.js} +253 -236
- package/dist/{UserList-Bc8gYxRL.js.map → UserList-DgPxsnj2.js.map} +1 -1
- package/dist/Users-Bpc4Sazd.js +41 -0
- package/dist/Users-Bpc4Sazd.js.map +1 -0
- package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js +321 -0
- package/dist/VialsPage-8oAc1yFv-Cl3FUXBJ.js.map +1 -0
- package/dist/{WidgetList-Dw_FmbbE.js → WidgetList-D7YuWfDD.js} +2 -2
- package/dist/{WidgetList-Dw_FmbbE.js.map → WidgetList-D7YuWfDD.js.map} +1 -1
- package/dist/constants-ClZJY2x1-MkSWn6TZ.js +434 -0
- package/dist/constants-ClZJY2x1-MkSWn6TZ.js.map +1 -0
- package/dist/dashboardLayoutUtils-D1xCAxp3.js +405 -0
- package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +1 -0
- package/dist/format-UOyOu75i-D0GyylyQ.js +63 -0
- package/dist/format-UOyOu75i-D0GyylyQ.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +4 -752
- package/dist/index.js.map +1 -1
- package/dist/index.lib-Dn8PMkeD.js +862 -0
- package/dist/index.lib-Dn8PMkeD.js.map +1 -0
- package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js +28 -0
- package/dist/useFieldErrors-hDG8ox_x-DbSAzrGo.js.map +1 -0
- package/dist/validation-BzlHnL-r-CCJm2utQ.js +125 -0
- package/dist/validation-BzlHnL-r-CCJm2utQ.js.map +1 -0
- package/package.json +5 -4
- package/dist/AccessRights-CHu27ZOw.js +0 -1262
- package/dist/AccessRights-CHu27ZOw.js.map +0 -1
- package/dist/AddEditQueryBuilder-Brdnm6rQ.js +0 -313
- package/dist/AddEditQueryBuilder-Brdnm6rQ.js.map +0 -1
- package/dist/AddLabelModal-DFllBVcd.js +0 -734
- package/dist/AddLabelModal-DFllBVcd.js.map +0 -1
- package/dist/AddMenuConfiguration-BSQLl88V.js +0 -6570
- package/dist/AddMenuConfiguration-BSQLl88V.js.map +0 -1
- package/dist/AddRoleDrawer-CQdzQZLb.js.map +0 -1
- package/dist/AppModal-CtG2GjD_.js +0 -428
- package/dist/AppModal-CtG2GjD_.js.map +0 -1
- package/dist/ChangePasswordModalCore-CDxkeIIM.js.map +0 -1
- package/dist/ConditionConfig-DSsgGEXS.js.map +0 -1
- package/dist/EventsSkeleton-8iiETGcf.js +0 -76
- package/dist/EventsSkeleton-8iiETGcf.js.map +0 -1
- package/dist/FeatureMenu-jl7-Tk6y.js +0 -265
- package/dist/FeatureMenu-jl7-Tk6y.js.map +0 -1
- package/dist/Features-CObdzJp_.js +0 -13
- package/dist/Features-CObdzJp_.js.map +0 -1
- package/dist/FlywayQuery-Cx2sly6g.js +0 -169
- package/dist/FlywayQuery-Cx2sly6g.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DZGqwda2.js +0 -5910
- package/dist/ImmunizationConfigurationBase-DZGqwda2.js.map +0 -1
- package/dist/ImmunizationConfigurationsList-DdSZicTP.js +0 -344
- package/dist/ImmunizationConfigurationsList-DdSZicTP.js.map +0 -1
- package/dist/LanguagesModal-D6VfaGrl.js +0 -394
- package/dist/LanguagesModal-D6VfaGrl.js.map +0 -1
- package/dist/ManageDynamicFeature-BhONvfC_.js +0 -4189
- package/dist/ManageDynamicFeature-BhONvfC_.js.map +0 -1
- package/dist/ManageEventConfiguration-DV3I5POA.js.map +0 -1
- package/dist/ManageRole-CGYfglpo.js.map +0 -1
- package/dist/ManageTranslation-B4C9-lWD.js +0 -625
- package/dist/ManageTranslation-B4C9-lWD.js.map +0 -1
- package/dist/ManageUser-AY1EUDLI.js.map +0 -1
- package/dist/MobileMenuManagement-CVAKyKDa.js +0 -112
- package/dist/MobileMenuManagement-CVAKyKDa.js.map +0 -1
- package/dist/MobileTypeEventConfigModal-BxLympIO.js.map +0 -1
- package/dist/NotificationFlywayQuery-BY8Zzml_.js +0 -244
- package/dist/NotificationFlywayQuery-BY8Zzml_.js.map +0 -1
- package/dist/NotificationList-C3Vb_jKU.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +0 -1
- package/dist/QueryBuilder-z7eqfd7D.js +0 -383
- package/dist/QueryBuilder-z7eqfd7D.js.map +0 -1
- package/dist/RoleManagement-BPl2cE27.js.map +0 -1
- package/dist/ServerSyncModal-D_oFpv3C.js.map +0 -1
- package/dist/ShowFlywayQuery-DVRCd384.js.map +0 -1
- package/dist/ShowFlywayQuery-tj42YQAS.js +0 -130
- package/dist/ShowFlywayQuery-tj42YQAS.js.map +0 -1
- package/dist/ShowQueryHistory-BDN0tzHg.js +0 -190
- package/dist/ShowQueryHistory-BDN0tzHg.js.map +0 -1
- package/dist/SubMenu-DYxAPH2Z.js +0 -191
- package/dist/SubMenu-DYxAPH2Z.js.map +0 -1
- package/dist/TableDetails-Cf_YfnY2.js.map +0 -1
- package/dist/Users-CsJ08Kjm.js +0 -40
- package/dist/Users-CsJ08Kjm.js.map +0 -1
- package/dist/dashboardLayoutUtils-Bt5HA96J.js +0 -265
- package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +0 -1
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { b as
|
|
3
|
-
import { retrieveAllNotifications as
|
|
4
|
-
import { showToast as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { yupResolver as
|
|
8
|
-
import
|
|
9
|
-
import { Card as
|
|
10
|
-
import
|
|
11
|
-
import { useRef as
|
|
12
|
-
import { useForm as
|
|
13
|
-
import { useNavigate as
|
|
14
|
-
import { useParams as
|
|
15
|
-
import * as
|
|
16
|
-
import { useTranslateProvider as
|
|
17
|
-
import
|
|
1
|
+
import { jsxs as l, Fragment as ct, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { b as dt, c as ut, d as mt, u as ft, s as gt } from "./EventConfig-BmLemzX3.js";
|
|
3
|
+
import { retrieveAllNotifications as ht, getReportsList as pt } from "@/common/services/GlobalApis";
|
|
4
|
+
import { showToast as Y } from "@/common/toaster/toaster";
|
|
5
|
+
import Ie from "@/views/custom-components/CustomTextArea";
|
|
6
|
+
import k from "@/views/custom-components/CustomTextField";
|
|
7
|
+
import { yupResolver as vt } from "@hookform/resolvers/yup";
|
|
8
|
+
import yt from "@/views/custom-components/CustomDropdown";
|
|
9
|
+
import { Card as bt, CardHeader as Ct, CardContent as Nt, FormControl as E, Typography as m, Box as w, Select as H, MenuItem as b, Divider as ae, Button as j, TableContainer as Tt, Paper as Et, Table as wt, TableHead as xt, TableRow as Me, TableCell as _, TableBody as It, CardActions as Mt } from "@mui/material";
|
|
10
|
+
import v from "@mui/material/Grid2";
|
|
11
|
+
import { useRef as De, useState as g, useEffect as Re, Suspense as qe, lazy as ne } from "react";
|
|
12
|
+
import { useForm as Dt, Controller as V } from "react-hook-form";
|
|
13
|
+
import { useNavigate as Rt } from "react-router";
|
|
14
|
+
import { useParams as qt } from "react-router-dom";
|
|
15
|
+
import * as x from "yup";
|
|
16
|
+
import { useTranslateProvider as St } from "@/common/languageTranslator/TranslationContext";
|
|
17
|
+
import At from "@/hooks/useTrackEvent";
|
|
18
|
+
import { M as Ot } from "./EventsSkeleton-BIcPks4T.js";
|
|
18
19
|
import { FontAwesomeIcon as $ } from "@fortawesome/react-fontawesome";
|
|
19
|
-
import { faPen as
|
|
20
|
-
import './ManageEventConfiguration.css';const
|
|
21
|
-
() => import("./MobileTypeEventConfigModal-
|
|
22
|
-
),
|
|
23
|
-
() => import("./OtherTypeEventConfigModal-
|
|
20
|
+
import { faPen as _t, faTrash as Se, faPlus as Ae } from "@fortawesome/free-solid-svg-icons";
|
|
21
|
+
import './ManageEventConfiguration.css';const Lt = ne(() => import("./ConditionConfig-Ddz9halE.js")), zt = ne(
|
|
22
|
+
() => import("./MobileTypeEventConfigModal-BeveaX0C.js")
|
|
23
|
+
), kt = ne(
|
|
24
|
+
() => import("./OtherTypeEventConfigModal-CM6VkdmY.js")
|
|
24
25
|
);
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
const { translate:
|
|
26
|
+
function ia() {
|
|
27
|
+
var Te, Ee, we;
|
|
28
|
+
const { translate: o } = St(), ie = De(null), re = De(!1), { id: O } = qt(), le = Rt(), [U, Oe] = g(null), [oe, _e] = g(null), [se, Le] = g({}), [C, I] = g(
|
|
28
29
|
[]
|
|
29
|
-
), [
|
|
30
|
-
name:
|
|
31
|
-
eventType:
|
|
32
|
-
recursionInterval:
|
|
33
|
-
is: () =>
|
|
30
|
+
), [ce, ze] = g(null), [K, ke] = g(null), [$e, de] = g(null), [Ue, Pe] = g(null), [M, L] = g(null), [We, ue] = g(null), [Be, Fe] = g(null), [D, R] = g(null), [me, Ye] = g(!1), [fe, ge] = g(!1), [he, Q] = g(!1), [P, q] = g([]), [He, W] = g(!1), [je, Ve] = g([]), Ke = window.getComputedStyle(document.body).lineHeight, pe = () => Ye(!me), Qe = x.object().shape({
|
|
31
|
+
name: x.string().required("Enter Name"),
|
|
32
|
+
eventType: x.string().required("Select Event Type"),
|
|
33
|
+
recursionInterval: x.number().typeError("Recursion Interval must be a number").when([], {
|
|
34
|
+
is: () => h === "RECURSION",
|
|
34
35
|
then: (e) => e.required("Recursion Interval is required").moreThan(0, "Recursion Interval must be greater than or equal to 1").lessThan(1441, "Recursion Interval must be less than or equal to 1440"),
|
|
35
36
|
otherwise: (e) => e.notRequired()
|
|
36
37
|
}),
|
|
37
|
-
trigerWhen:
|
|
38
|
+
trigerWhen: x.string().test(
|
|
38
39
|
"is-required",
|
|
39
40
|
"trigerWhen is required",
|
|
40
41
|
function(e) {
|
|
41
|
-
return
|
|
42
|
+
return h === "TIMMER_BASED" ? !!e : !0;
|
|
42
43
|
}
|
|
43
44
|
),
|
|
44
|
-
day:
|
|
45
|
-
return
|
|
45
|
+
day: x.string().test("is-required", "day is required", function(e) {
|
|
46
|
+
return h === "TIMMER_BASED" && (p === "AFTER" || p === "MONTHLY") ? !!e : !0;
|
|
46
47
|
}),
|
|
47
|
-
hour:
|
|
48
|
+
hour: x.string().test(
|
|
48
49
|
"is-required",
|
|
49
50
|
"hour is required",
|
|
50
51
|
function(e) {
|
|
51
|
-
return
|
|
52
|
+
return h === "TIMMER_BASED" && (p === "AFTER" || p === "MONTHLY" || p === "DAILY") ? !!e : !0;
|
|
52
53
|
}
|
|
53
54
|
),
|
|
54
|
-
minute:
|
|
55
|
+
minute: x.string().notRequired()
|
|
55
56
|
// notificationConfigDetails: Yup.array().of(
|
|
56
57
|
// Yup.object().shape({
|
|
57
58
|
// query: Yup.string().required('Query is required'), // Ensure query is present
|
|
@@ -60,15 +61,15 @@ function Qt() {
|
|
|
60
61
|
// })
|
|
61
62
|
// ),
|
|
62
63
|
}), {
|
|
63
|
-
control:
|
|
64
|
-
handleSubmit:
|
|
65
|
-
setValue:
|
|
66
|
-
setError:
|
|
67
|
-
clearErrors:
|
|
68
|
-
getValues:
|
|
69
|
-
watch:
|
|
70
|
-
formState: { errors:
|
|
71
|
-
} =
|
|
64
|
+
control: N,
|
|
65
|
+
handleSubmit: Je,
|
|
66
|
+
setValue: B,
|
|
67
|
+
setError: J,
|
|
68
|
+
clearErrors: G,
|
|
69
|
+
getValues: ve,
|
|
70
|
+
watch: ye,
|
|
71
|
+
formState: { errors: d }
|
|
72
|
+
} = Dt({
|
|
72
73
|
defaultValues: {
|
|
73
74
|
name: "",
|
|
74
75
|
description: "",
|
|
@@ -76,192 +77,259 @@ function Qt() {
|
|
|
76
77
|
recursionInterval: 0,
|
|
77
78
|
minute: 0
|
|
78
79
|
},
|
|
79
|
-
resolver:
|
|
80
|
+
resolver: vt(Qe),
|
|
80
81
|
mode: "onChange"
|
|
81
|
-
}),
|
|
82
|
-
let
|
|
83
|
-
|
|
84
|
-
let e =
|
|
82
|
+
}), h = ye("eventType");
|
|
83
|
+
let p = ye("trigerWhen");
|
|
84
|
+
Re(() => {
|
|
85
|
+
let e = ie.current;
|
|
85
86
|
return () => {
|
|
86
|
-
|
|
87
|
+
Z("conversion_event", {
|
|
87
88
|
form: e,
|
|
88
89
|
form_name: "Manage Event Configuration",
|
|
89
|
-
submit:
|
|
90
|
+
submit: re.current
|
|
90
91
|
});
|
|
91
92
|
};
|
|
92
93
|
}, []);
|
|
93
|
-
const
|
|
94
|
+
const Ge = async (e) => {
|
|
94
95
|
try {
|
|
95
|
-
if (
|
|
96
|
-
e.minute = Number(e.minute || 0), e.notificationConfigDetails =
|
|
97
|
-
const a =
|
|
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),
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
const
|
|
102
|
-
var
|
|
96
|
+
if (C.length > 0) {
|
|
97
|
+
e.minute = Number(e.minute || 0), e.notificationConfigDetails = C;
|
|
98
|
+
const a = h === "TIMMER_BASED", i = h === "FORM_SUBMITTED", n = h === "MANUAL", c = h === "RECURSION";
|
|
99
|
+
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), c ? (delete e.formTypeId, e.trigerWhen = "RECURSION") : delete e.recursionInterval;
|
|
100
|
+
const y = ["AFTER", "MONTHLY", "WEEKLY"], T = ["AFTER", "MONTHLY", "DAILY", "WEEKLY"];
|
|
101
|
+
y.includes(p) || delete e.day, T.includes(p) || (delete e.day, delete e.hour), p === "IMMEDIATELY" && (delete e.day, delete e.hour, delete e.minute);
|
|
102
|
+
const S = C.map((s) => {
|
|
103
|
+
var r;
|
|
103
104
|
return {
|
|
104
|
-
...
|
|
105
|
-
conditions: (
|
|
106
|
-
...
|
|
107
|
-
notificaitonConfigsType:
|
|
108
|
-
...
|
|
109
|
-
queryCode:
|
|
110
|
-
})) :
|
|
105
|
+
...s,
|
|
106
|
+
conditions: (r = s.conditions) == null ? void 0 : r.map((u) => ({
|
|
107
|
+
...u,
|
|
108
|
+
notificaitonConfigsType: u.notificaitonConfigsType ? u.notificaitonConfigsType.map((f) => ({
|
|
109
|
+
...f,
|
|
110
|
+
queryCode: f.queryCode === "" ? null : f.queryCode
|
|
111
|
+
})) : u.notificaitonConfigsType
|
|
111
112
|
}))
|
|
112
113
|
};
|
|
113
114
|
});
|
|
114
|
-
e.notificationConfigDetails =
|
|
115
|
+
e.notificationConfigDetails = S, O ? await ft(e) : await gt(e), Z("button_click", {
|
|
115
116
|
button_name: "manageeventconfiguration-save-button",
|
|
116
117
|
button_type: "submit",
|
|
117
118
|
button_id: "manageeventconfiguration-save-button"
|
|
118
|
-
}),
|
|
119
|
-
message:
|
|
119
|
+
}), Y({
|
|
120
|
+
message: O ? "Event Configuration Updated successfully" : "submit successfully",
|
|
120
121
|
type: "success"
|
|
121
|
-
}),
|
|
122
|
+
}), re.current = !0, le("/ui/medplat/notification/all");
|
|
122
123
|
} else
|
|
123
|
-
|
|
124
|
+
Y({
|
|
124
125
|
message: "Please add atleast query / condition for the configuration",
|
|
125
126
|
type: "warn"
|
|
126
127
|
});
|
|
127
128
|
} catch {
|
|
128
|
-
|
|
129
|
+
Y({ message: "submit problem", type: "error" }), W((a) => !a);
|
|
129
130
|
}
|
|
130
131
|
};
|
|
131
|
-
|
|
132
|
-
|
|
132
|
+
Re(() => {
|
|
133
|
+
Xe();
|
|
133
134
|
}, []);
|
|
134
|
-
const
|
|
135
|
+
const Xe = async () => {
|
|
135
136
|
var e, a, i, n;
|
|
136
137
|
try {
|
|
137
|
-
|
|
138
|
-
const
|
|
139
|
-
|
|
140
|
-
const
|
|
141
|
-
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
(e =
|
|
145
|
-
|
|
146
|
-
}),
|
|
147
|
-
const { data:
|
|
148
|
-
if (
|
|
149
|
-
const
|
|
150
|
-
(i = (a =
|
|
151
|
-
|
|
138
|
+
W((r) => !r);
|
|
139
|
+
const c = await dt({ is_active: !0 });
|
|
140
|
+
Oe(c == null ? void 0 : c.data);
|
|
141
|
+
const y = await ut();
|
|
142
|
+
_e(y == null ? void 0 : y.data);
|
|
143
|
+
const T = await ht(!0);
|
|
144
|
+
let S = {};
|
|
145
|
+
(e = T == null ? void 0 : T.data) == null || e.forEach((r) => {
|
|
146
|
+
S[r == null ? void 0 : r.id] = r == null ? void 0 : r.notificationName;
|
|
147
|
+
}), Le(S);
|
|
148
|
+
const { data: s } = await pt();
|
|
149
|
+
if (Ve(s || []), O) {
|
|
150
|
+
const r = await mt(O);
|
|
151
|
+
(i = (a = r == null ? void 0 : r.data) == null ? void 0 : a.notificationConfigDetails) == null || i.forEach((f) => {
|
|
152
|
+
be(f);
|
|
152
153
|
});
|
|
153
|
-
let
|
|
154
|
-
(n = Object.keys(
|
|
155
|
-
|
|
156
|
-
}),
|
|
154
|
+
let u = r == null ? void 0 : r.data;
|
|
155
|
+
(n = Object.keys(u)) == null || n.forEach((f) => {
|
|
156
|
+
u[f] !== void 0 && u[f] !== null && B(f, u[f]);
|
|
157
|
+
}), I((u == null ? void 0 : u.notificationConfigDetails) || []);
|
|
157
158
|
}
|
|
158
|
-
|
|
159
|
-
} catch (
|
|
160
|
-
|
|
159
|
+
W((r) => !r);
|
|
160
|
+
} catch (c) {
|
|
161
|
+
Y({
|
|
161
162
|
message: "Error in loading manage events",
|
|
162
|
-
type: `Error:${
|
|
163
|
-
}),
|
|
163
|
+
type: `Error:${c == null ? void 0 : c.message}`
|
|
164
|
+
}), W((y) => !y);
|
|
164
165
|
}
|
|
165
|
-
},
|
|
166
|
+
}, be = (e) => {
|
|
166
167
|
e.implicitParam = ["#resourceId#"];
|
|
167
|
-
const a =
|
|
168
|
+
const a = [
|
|
169
|
+
"from",
|
|
170
|
+
"where",
|
|
171
|
+
"group",
|
|
172
|
+
"having",
|
|
173
|
+
"order",
|
|
174
|
+
"limit",
|
|
175
|
+
"offset",
|
|
176
|
+
"union",
|
|
177
|
+
"intersect",
|
|
178
|
+
"except",
|
|
179
|
+
"window",
|
|
180
|
+
"fetch",
|
|
181
|
+
"into",
|
|
182
|
+
"returning"
|
|
183
|
+
];
|
|
168
184
|
if (e != null && e.query) {
|
|
169
|
-
|
|
170
|
-
let
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
185
|
+
let i = "", n = null;
|
|
186
|
+
for (let s = 0; s < e.query.length; s++) {
|
|
187
|
+
const r = e.query[s], u = e.query[s + 1];
|
|
188
|
+
if (n)
|
|
189
|
+
i += r, r === n && (n = null);
|
|
190
|
+
else if (r === "'" || r === '"')
|
|
191
|
+
n = r, i += r;
|
|
192
|
+
else if (r === "-" && u === "-") {
|
|
193
|
+
for (; s < e.query.length && e.query[s] !== `
|
|
194
|
+
`; )
|
|
195
|
+
s++;
|
|
196
|
+
i += `
|
|
197
|
+
`;
|
|
198
|
+
} else if (r === "/" && u === "*") {
|
|
199
|
+
for (s += 2; s < e.query.length && !(e.query[s] === "*" && e.query[s + 1] === "/"); )
|
|
200
|
+
s++;
|
|
201
|
+
s++, i += " ";
|
|
202
|
+
} else
|
|
203
|
+
i += r;
|
|
204
|
+
}
|
|
205
|
+
let c = 0;
|
|
206
|
+
n = null;
|
|
207
|
+
let y = -1, T = -1;
|
|
208
|
+
const S = [];
|
|
209
|
+
for (let s = 0; s < i.length; s++) {
|
|
210
|
+
const r = i[s];
|
|
211
|
+
if (n)
|
|
212
|
+
r === n && (n = null);
|
|
213
|
+
else if (r === "'" || r === '"')
|
|
214
|
+
n = r;
|
|
215
|
+
else if (r === "(")
|
|
216
|
+
c++;
|
|
217
|
+
else if (r === ")")
|
|
218
|
+
c--;
|
|
219
|
+
else if (c === 0) {
|
|
220
|
+
if (r === ";" && y >= 0) {
|
|
221
|
+
T = s;
|
|
222
|
+
break;
|
|
223
|
+
} else if (r === "," && y >= 0)
|
|
224
|
+
S.push(s);
|
|
225
|
+
else if (/[a-z_]/i.test(r) && !/[\w.]/.test(i[s - 1] || "")) {
|
|
226
|
+
const u = (i.slice(s).match(/^[a-z_]+/i) || [""])[0];
|
|
227
|
+
if (y < 0)
|
|
228
|
+
u.toLowerCase() === "select" && (y = s + u.length), s += u.length - 1;
|
|
229
|
+
else if (a.includes(u.toLowerCase())) {
|
|
230
|
+
T = s;
|
|
231
|
+
break;
|
|
183
232
|
} else
|
|
184
|
-
|
|
233
|
+
s += u.length - 1;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
if (y >= 0) {
|
|
238
|
+
T < 0 && (T = i.length);
|
|
239
|
+
const s = [];
|
|
240
|
+
let r = y;
|
|
241
|
+
S.filter((u) => u < T).forEach((u) => {
|
|
242
|
+
s.push(i.substring(r, u)), r = u + 1;
|
|
243
|
+
}), s.push(i.substring(r, T)), s.forEach((u) => {
|
|
244
|
+
const f = u.replace(/^\s*(distinct\s+on\s*\([\s\S]*?\)|distinct|all)\s+/i, "").trim();
|
|
245
|
+
if (f && f !== "*" && !f.endsWith(".*")) {
|
|
246
|
+
let ee = 0, F = null, te = -1;
|
|
247
|
+
for (let z = 0; z < f.length; z++) {
|
|
248
|
+
const A = f[z];
|
|
249
|
+
F ? A === F && (F = null) : A === "'" || A === '"' ? F = A : A === "(" ? ee++ : A === ")" ? ee-- : ee === 0 && /\s/.test(A) && /^as\s/i.test(f.substring(z + 1)) && (te = z + 1);
|
|
250
|
+
}
|
|
251
|
+
const xe = (te >= 0 ? f.substring(te + 3).trim() : f.replace(/\s+/g, " ").trim()).replace(/^"|"$/g, "");
|
|
252
|
+
/^[a-z_][\w$]*(\.[a-z_][\w$]*)*$/i.test(xe) && e.implicitParam.push("#" + xe + "#");
|
|
185
253
|
}
|
|
186
254
|
});
|
|
187
255
|
}
|
|
188
256
|
}
|
|
189
|
-
},
|
|
190
|
-
const a =
|
|
257
|
+
}, Ze = (e) => {
|
|
258
|
+
const a = C == null ? void 0 : C.filter(
|
|
191
259
|
(i, n) => n !== e
|
|
192
260
|
);
|
|
193
|
-
|
|
194
|
-
},
|
|
195
|
-
const i = [...
|
|
196
|
-
i[e].conditions = n,
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
const i = [...
|
|
201
|
-
i[e].query = a,
|
|
202
|
-
},
|
|
203
|
-
let e = [...
|
|
204
|
-
|
|
261
|
+
I(a);
|
|
262
|
+
}, et = (e, a) => {
|
|
263
|
+
const i = [...C], n = i[e].conditions.filter((c, y) => y !== a);
|
|
264
|
+
i[e].conditions = n, I(i);
|
|
265
|
+
}, X = async (e, a, i, n) => {
|
|
266
|
+
ke(e), ze(a), i ? (de(i), ue(!0), L(JSON.parse(JSON.stringify(i))), q((i == null ? void 0 : i.notificaitonConfigsType) || []), Pe(n)) : (de({}), L({}), q([]), ue(!1)), R({}), pe();
|
|
267
|
+
}, tt = (e, a) => {
|
|
268
|
+
const i = [...C];
|
|
269
|
+
i[e].query = a, I(i);
|
|
270
|
+
}, at = async () => {
|
|
271
|
+
let e = [...C], a = !0;
|
|
272
|
+
C.forEach((i, n) => {
|
|
205
273
|
if (i.query === "") {
|
|
206
274
|
a = !1;
|
|
207
|
-
const
|
|
208
|
-
|
|
275
|
+
const c = `notificationConfigDetails.${n}.query`;
|
|
276
|
+
J(c, { type: "manual", message: "Query Required" });
|
|
209
277
|
}
|
|
210
|
-
}), a && (e.push({ query: "", conditions: [], queryParam: null }),
|
|
211
|
-
},
|
|
212
|
-
e ? (e.index = a,
|
|
278
|
+
}), a && (e.push({ query: "", conditions: [], queryParam: null }), I(e));
|
|
279
|
+
}, Ce = async (e, a) => {
|
|
280
|
+
e ? (e.index = a, Fe(e), R({
|
|
213
281
|
...JSON.parse(JSON.stringify(e)),
|
|
214
|
-
implicitParam:
|
|
215
|
-
}),
|
|
216
|
-
},
|
|
217
|
-
|
|
218
|
-
},
|
|
219
|
-
if (
|
|
220
|
-
const a =
|
|
221
|
-
|
|
282
|
+
implicitParam: K.implicitParam
|
|
283
|
+
}), ge(!0)) : (R({ ...D, implicitParam: K.implicitParam }), ge(!1)), nt();
|
|
284
|
+
}, nt = () => {
|
|
285
|
+
Q((e) => !e);
|
|
286
|
+
}, Ne = (e) => {
|
|
287
|
+
if (fe) {
|
|
288
|
+
const a = P.map((i, n) => n === e.index ? { ...i, ...e } : i);
|
|
289
|
+
q(a);
|
|
222
290
|
} else
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
},
|
|
226
|
-
|
|
291
|
+
q([...P, e]);
|
|
292
|
+
lt(e);
|
|
293
|
+
}, it = (e) => {
|
|
294
|
+
q(
|
|
227
295
|
(a) => a.filter((i, n) => n !== e)
|
|
228
296
|
);
|
|
229
|
-
},
|
|
230
|
-
|
|
231
|
-
},
|
|
232
|
-
let a = { ...
|
|
233
|
-
|
|
234
|
-
},
|
|
235
|
-
if (
|
|
236
|
-
const a = [...
|
|
237
|
-
L({ ...
|
|
238
|
-
let i = { ...
|
|
239
|
-
a[
|
|
297
|
+
}, rt = (e) => {
|
|
298
|
+
Ce(P[e], e);
|
|
299
|
+
}, lt = (e) => {
|
|
300
|
+
let a = { ...M };
|
|
301
|
+
M.notificaitonConfigsType || (a.notificaitonConfigsType = []), fe ? a.notificaitonConfigsType[Be.index] = e : a.notificaitonConfigsType.push(e), L(a), R({});
|
|
302
|
+
}, Z = At(), ot = (e) => {
|
|
303
|
+
if (We) {
|
|
304
|
+
const a = [...C];
|
|
305
|
+
L({ ...M, ...e });
|
|
306
|
+
let i = { ...M, ...e };
|
|
307
|
+
a[ce].conditions[Ue] = i, I(a), q([]);
|
|
240
308
|
} else {
|
|
241
|
-
const a = [...
|
|
242
|
-
L({ ...
|
|
243
|
-
let i = { ...
|
|
244
|
-
a[
|
|
309
|
+
const a = [...C];
|
|
310
|
+
L({ ...M, ...e });
|
|
311
|
+
let i = { ...M, ...e };
|
|
312
|
+
a[ce].conditions.push(i), I(a), q([]);
|
|
245
313
|
}
|
|
246
|
-
},
|
|
247
|
-
|
|
314
|
+
}, st = (e) => {
|
|
315
|
+
R({ ...D, ...e });
|
|
248
316
|
};
|
|
249
|
-
return /* @__PURE__ */
|
|
250
|
-
/* @__PURE__ */ t(
|
|
251
|
-
|
|
317
|
+
return /* @__PURE__ */ l(ct, { children: [
|
|
318
|
+
/* @__PURE__ */ t(Ot, { isLoading: He, children: /* @__PURE__ */ l(
|
|
319
|
+
bt,
|
|
252
320
|
{
|
|
253
321
|
className: "manage-eventConfiguration-type-body",
|
|
254
322
|
component: "form",
|
|
255
|
-
ref:
|
|
256
|
-
onSubmit:
|
|
323
|
+
ref: ie,
|
|
324
|
+
onSubmit: Je(Ge),
|
|
257
325
|
"data-testid": "manageeventconfiguration-form",
|
|
258
326
|
children: [
|
|
259
327
|
/* @__PURE__ */ t(
|
|
260
|
-
|
|
328
|
+
Ct,
|
|
261
329
|
{
|
|
262
330
|
className: "p-2.5 px-5 flex border-b text-customBlue",
|
|
263
|
-
subheader:
|
|
264
|
-
`${
|
|
331
|
+
subheader: o(
|
|
332
|
+
`${O ? "UPDATE" : "ADD"} EVENT CONFIGURATION`
|
|
265
333
|
),
|
|
266
334
|
slotProps: {
|
|
267
335
|
subheader: { className: "font-medium text-lg text-customBlue" }
|
|
@@ -269,26 +337,26 @@ function Qt() {
|
|
|
269
337
|
"data-testid": "manageeventconfiguration-cardheader-subheader"
|
|
270
338
|
}
|
|
271
339
|
),
|
|
272
|
-
/* @__PURE__ */
|
|
273
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ l(Nt, { "data-testid": "manageeventconfiguration-cardcontent", children: [
|
|
341
|
+
/* @__PURE__ */ l(v, { container: !0, spacing: 2, children: [
|
|
274
342
|
/* @__PURE__ */ t(
|
|
275
|
-
|
|
343
|
+
v,
|
|
276
344
|
{
|
|
277
345
|
item: !0,
|
|
278
346
|
size: { xs: 12, sm: 6 },
|
|
279
347
|
"data-testid": "manageeventconfiguration-name-field",
|
|
280
|
-
children: /* @__PURE__ */
|
|
281
|
-
/* @__PURE__ */
|
|
282
|
-
|
|
348
|
+
children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
349
|
+
/* @__PURE__ */ l(m, { variant: "body2", children: [
|
|
350
|
+
o("Name"),
|
|
283
351
|
/* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
|
|
284
352
|
] }),
|
|
285
|
-
/* @__PURE__ */ t(
|
|
286
|
-
|
|
353
|
+
/* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
|
|
354
|
+
k,
|
|
287
355
|
{
|
|
288
|
-
control:
|
|
356
|
+
control: N,
|
|
289
357
|
id: "name",
|
|
290
358
|
name: "name",
|
|
291
|
-
errors:
|
|
359
|
+
errors: d,
|
|
292
360
|
label: "",
|
|
293
361
|
size: "small",
|
|
294
362
|
dataTestId: "manageeventconfiguration-name-textfield"
|
|
@@ -298,20 +366,20 @@ function Qt() {
|
|
|
298
366
|
}
|
|
299
367
|
),
|
|
300
368
|
/* @__PURE__ */ t(
|
|
301
|
-
|
|
369
|
+
v,
|
|
302
370
|
{
|
|
303
371
|
item: !0,
|
|
304
372
|
size: { xs: 12, sm: 6 },
|
|
305
373
|
"data-testid": "manageeventconfiguration-description-field",
|
|
306
|
-
children: /* @__PURE__ */
|
|
307
|
-
/* @__PURE__ */ t(
|
|
308
|
-
/* @__PURE__ */ t(
|
|
309
|
-
|
|
374
|
+
children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
375
|
+
/* @__PURE__ */ t(m, { variant: "body2", children: o("Description") }),
|
|
376
|
+
/* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
|
|
377
|
+
Ie,
|
|
310
378
|
{
|
|
311
|
-
control:
|
|
379
|
+
control: N,
|
|
312
380
|
id: "description",
|
|
313
381
|
name: "description",
|
|
314
|
-
errors:
|
|
382
|
+
errors: d,
|
|
315
383
|
label: "",
|
|
316
384
|
minRows: 2,
|
|
317
385
|
"data-testid": "manageeventconfiguration-description-textarea"
|
|
@@ -321,73 +389,73 @@ function Qt() {
|
|
|
321
389
|
}
|
|
322
390
|
),
|
|
323
391
|
/* @__PURE__ */ t(
|
|
324
|
-
|
|
392
|
+
v,
|
|
325
393
|
{
|
|
326
394
|
item: !0,
|
|
327
395
|
size: { xs: 12, sm: 6 },
|
|
328
396
|
"data-testid": "manageeventconfiguration-eventtype-field",
|
|
329
|
-
children: /* @__PURE__ */
|
|
330
|
-
/* @__PURE__ */
|
|
331
|
-
|
|
397
|
+
children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
398
|
+
/* @__PURE__ */ l(m, { variant: "body2", children: [
|
|
399
|
+
o("Event Type"),
|
|
332
400
|
/* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
|
|
333
401
|
] }),
|
|
334
|
-
/* @__PURE__ */
|
|
402
|
+
/* @__PURE__ */ l(w, { className: "w-full", children: [
|
|
335
403
|
/* @__PURE__ */ t(
|
|
336
|
-
|
|
404
|
+
V,
|
|
337
405
|
{
|
|
338
406
|
name: "eventType",
|
|
339
|
-
control:
|
|
407
|
+
control: N,
|
|
340
408
|
defaultValue: "",
|
|
341
409
|
className: "w-full",
|
|
342
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
343
|
-
|
|
410
|
+
render: ({ field: e }) => /* @__PURE__ */ l(
|
|
411
|
+
H,
|
|
344
412
|
{
|
|
345
413
|
className: "w-full",
|
|
346
414
|
labelId: "event-type-label",
|
|
347
415
|
id: "reportgroup",
|
|
348
416
|
...e,
|
|
349
|
-
error:
|
|
417
|
+
error: d.eventType,
|
|
350
418
|
size: "small",
|
|
351
419
|
"data-testid": "manageeventconfiguration-eventtype-select",
|
|
352
420
|
children: [
|
|
353
|
-
/* @__PURE__ */ t(
|
|
354
|
-
/* @__PURE__ */ t(
|
|
355
|
-
/* @__PURE__ */ t(
|
|
356
|
-
/* @__PURE__ */ t(
|
|
421
|
+
/* @__PURE__ */ t(b, { value: "FORM_SUBMITTED", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Form Submitted") }) }),
|
|
422
|
+
/* @__PURE__ */ t(b, { value: "TIMMER_BASED", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Timer Based") }) }),
|
|
423
|
+
/* @__PURE__ */ t(b, { value: "MANUAL", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Manual") }) }),
|
|
424
|
+
/* @__PURE__ */ t(b, { value: "RECURSION", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Recursion") }) })
|
|
357
425
|
]
|
|
358
426
|
}
|
|
359
427
|
)
|
|
360
428
|
}
|
|
361
429
|
),
|
|
362
|
-
(
|
|
430
|
+
(d == null ? void 0 : d.eventType) && /* @__PURE__ */ t(
|
|
363
431
|
"p",
|
|
364
432
|
{
|
|
365
433
|
className: "error-helper-manage-event",
|
|
366
434
|
"data-testid": "custom-error-message",
|
|
367
|
-
children: (
|
|
435
|
+
children: (Te = d == null ? void 0 : d.eventType) == null ? void 0 : Te.message
|
|
368
436
|
}
|
|
369
437
|
)
|
|
370
438
|
] })
|
|
371
439
|
] })
|
|
372
440
|
}
|
|
373
441
|
),
|
|
374
|
-
|
|
375
|
-
|
|
442
|
+
h === "FORM_SUBMITTED" && /* @__PURE__ */ t(
|
|
443
|
+
v,
|
|
376
444
|
{
|
|
377
445
|
item: !0,
|
|
378
446
|
size: { xs: 12, sm: 6 },
|
|
379
447
|
"data-testid": "manageeventconfiguration-formtype-field",
|
|
380
|
-
children: /* @__PURE__ */
|
|
381
|
-
/* @__PURE__ */ t(
|
|
382
|
-
/* @__PURE__ */ t(
|
|
383
|
-
|
|
448
|
+
children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
449
|
+
/* @__PURE__ */ t(m, { variant: "body2", children: o("Form Type") }),
|
|
450
|
+
/* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
|
|
451
|
+
V,
|
|
384
452
|
{
|
|
385
453
|
className: "w-full",
|
|
386
454
|
name: "formTypeId",
|
|
387
|
-
control:
|
|
455
|
+
control: N,
|
|
388
456
|
defaultValue: "",
|
|
389
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
390
|
-
|
|
457
|
+
render: ({ field: e }) => /* @__PURE__ */ l(
|
|
458
|
+
H,
|
|
391
459
|
{
|
|
392
460
|
...e,
|
|
393
461
|
className: "w-full",
|
|
@@ -397,21 +465,21 @@ function Qt() {
|
|
|
397
465
|
onChange: (a) => {
|
|
398
466
|
const i = a.target.value;
|
|
399
467
|
e.onChange(i);
|
|
400
|
-
const n =
|
|
401
|
-
(
|
|
468
|
+
const n = U.find(
|
|
469
|
+
(c) => c.id === i
|
|
402
470
|
);
|
|
403
|
-
|
|
471
|
+
B(
|
|
404
472
|
"eventTypeDetailCode",
|
|
405
473
|
n == null ? void 0 : n.code
|
|
406
|
-
),
|
|
474
|
+
), B(
|
|
407
475
|
"eventTypeDetailId",
|
|
408
476
|
(n == null ? void 0 : n.detaiId) || null
|
|
409
477
|
);
|
|
410
478
|
},
|
|
411
479
|
"data-testid": "manageeventconfiguration-formtype-select",
|
|
412
480
|
children: [
|
|
413
|
-
/* @__PURE__ */ t(
|
|
414
|
-
|
|
481
|
+
/* @__PURE__ */ t(b, { value: "", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Select") }) }),
|
|
482
|
+
U == null ? void 0 : U.map((a) => /* @__PURE__ */ t(b, { value: a.id, children: /* @__PURE__ */ t(m, { variant: "body2", children: o(a.name) }) }, a.id))
|
|
415
483
|
]
|
|
416
484
|
}
|
|
417
485
|
)
|
|
@@ -420,78 +488,78 @@ function Qt() {
|
|
|
420
488
|
] })
|
|
421
489
|
}
|
|
422
490
|
),
|
|
423
|
-
|
|
424
|
-
|
|
491
|
+
h === "TIMMER_BASED" && /* @__PURE__ */ t(
|
|
492
|
+
v,
|
|
425
493
|
{
|
|
426
494
|
item: !0,
|
|
427
495
|
size: { xs: 12, sm: 6 },
|
|
428
496
|
"data-testid": "manageeventconfiguration-triggerwhen-field",
|
|
429
|
-
children: /* @__PURE__ */
|
|
430
|
-
/* @__PURE__ */
|
|
431
|
-
|
|
497
|
+
children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
498
|
+
/* @__PURE__ */ l(m, { variant: "body2", children: [
|
|
499
|
+
o("Trigger When"),
|
|
432
500
|
/* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
|
|
433
501
|
] }),
|
|
434
|
-
/* @__PURE__ */
|
|
502
|
+
/* @__PURE__ */ l(w, { className: "w-full", children: [
|
|
435
503
|
/* @__PURE__ */ t(
|
|
436
|
-
|
|
504
|
+
V,
|
|
437
505
|
{
|
|
438
506
|
name: "trigerWhen",
|
|
439
|
-
control:
|
|
507
|
+
control: N,
|
|
440
508
|
defaultValue: "",
|
|
441
509
|
className: "w-full",
|
|
442
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
443
|
-
|
|
510
|
+
render: ({ field: e }) => /* @__PURE__ */ l(
|
|
511
|
+
H,
|
|
444
512
|
{
|
|
445
513
|
className: "w-full",
|
|
446
514
|
...e,
|
|
447
515
|
value: e.value,
|
|
448
|
-
error:
|
|
516
|
+
error: d.trigerWhen,
|
|
449
517
|
size: "small",
|
|
450
518
|
"data-testid": "manageeventconfiguration-triggerwhen-select",
|
|
451
519
|
children: [
|
|
452
|
-
/* @__PURE__ */ t(
|
|
453
|
-
/* @__PURE__ */ t(
|
|
454
|
-
/* @__PURE__ */ t(
|
|
455
|
-
/* @__PURE__ */ t(
|
|
456
|
-
/* @__PURE__ */ t(
|
|
457
|
-
/* @__PURE__ */ t(
|
|
458
|
-
/* @__PURE__ */ t(
|
|
459
|
-
/* @__PURE__ */ t(
|
|
520
|
+
/* @__PURE__ */ t(b, { value: "", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Select") }) }),
|
|
521
|
+
/* @__PURE__ */ t(b, { value: "IMMEDIATELY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Immediately") }) }),
|
|
522
|
+
/* @__PURE__ */ t(b, { value: "AFTER", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("After") }) }),
|
|
523
|
+
/* @__PURE__ */ t(b, { value: "MONTHLY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Monthly") }) }),
|
|
524
|
+
/* @__PURE__ */ t(b, { value: "WEEKLY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Weekly") }) }),
|
|
525
|
+
/* @__PURE__ */ t(b, { value: "DAILY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Daily") }) }),
|
|
526
|
+
/* @__PURE__ */ t(b, { value: "HOURLY", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Hourly") }) }),
|
|
527
|
+
/* @__PURE__ */ t(b, { value: "MINUTE", children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Minutely") }) })
|
|
460
528
|
]
|
|
461
529
|
}
|
|
462
530
|
)
|
|
463
531
|
}
|
|
464
532
|
),
|
|
465
|
-
(
|
|
533
|
+
(d == null ? void 0 : d.trigerWhen) && /* @__PURE__ */ t(
|
|
466
534
|
"p",
|
|
467
535
|
{
|
|
468
536
|
className: "error-helper-manage-event",
|
|
469
537
|
"data-testid": "custom-error-message",
|
|
470
|
-
children: (
|
|
538
|
+
children: (Ee = d == null ? void 0 : d.trigerWhen) == null ? void 0 : Ee.message
|
|
471
539
|
}
|
|
472
540
|
)
|
|
473
541
|
] })
|
|
474
542
|
] })
|
|
475
543
|
}
|
|
476
544
|
),
|
|
477
|
-
|
|
478
|
-
|
|
545
|
+
h === "TIMMER_BASED" && (p === "AFTER" || p === "MONTHLY" || p === "WEEKLY") && /* @__PURE__ */ t(
|
|
546
|
+
v,
|
|
479
547
|
{
|
|
480
548
|
item: !0,
|
|
481
549
|
size: { xs: 12, sm: 6 },
|
|
482
550
|
"data-testid": "manageeventconfiguration-day-field",
|
|
483
|
-
children: /* @__PURE__ */
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
-
|
|
551
|
+
children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
552
|
+
/* @__PURE__ */ l(m, { variant: "body2", children: [
|
|
553
|
+
o("day"),
|
|
486
554
|
/* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
|
|
487
555
|
] }),
|
|
488
556
|
/* @__PURE__ */ t(
|
|
489
|
-
|
|
557
|
+
k,
|
|
490
558
|
{
|
|
491
|
-
control:
|
|
559
|
+
control: N,
|
|
492
560
|
id: "day",
|
|
493
561
|
name: "day",
|
|
494
|
-
errors:
|
|
562
|
+
errors: d,
|
|
495
563
|
type: "number",
|
|
496
564
|
label: "",
|
|
497
565
|
size: "small",
|
|
@@ -501,25 +569,25 @@ function Qt() {
|
|
|
501
569
|
] })
|
|
502
570
|
}
|
|
503
571
|
),
|
|
504
|
-
|
|
505
|
-
|
|
572
|
+
h === "TIMMER_BASED" && (p === "AFTER" || p === "MONTHLY" || p === "DAILY" || p === "WEEKLY") && /* @__PURE__ */ t(
|
|
573
|
+
v,
|
|
506
574
|
{
|
|
507
575
|
item: !0,
|
|
508
576
|
size: { xs: 12, sm: 6 },
|
|
509
577
|
"data-testid": "manageeventconfiguration-hour-field",
|
|
510
|
-
children: /* @__PURE__ */
|
|
511
|
-
/* @__PURE__ */
|
|
512
|
-
|
|
578
|
+
children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
579
|
+
/* @__PURE__ */ l(m, { variant: "body2", children: [
|
|
580
|
+
o("Hour"),
|
|
513
581
|
/* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
|
|
514
582
|
] }),
|
|
515
583
|
/* @__PURE__ */ t(
|
|
516
|
-
|
|
584
|
+
k,
|
|
517
585
|
{
|
|
518
|
-
control:
|
|
586
|
+
control: N,
|
|
519
587
|
id: "hour",
|
|
520
588
|
name: "hour",
|
|
521
589
|
type: "number",
|
|
522
|
-
errors:
|
|
590
|
+
errors: d,
|
|
523
591
|
label: "",
|
|
524
592
|
size: "small",
|
|
525
593
|
dataTestId: "manageeventconfiguration-hour-textfield"
|
|
@@ -528,21 +596,21 @@ function Qt() {
|
|
|
528
596
|
] })
|
|
529
597
|
}
|
|
530
598
|
),
|
|
531
|
-
|
|
532
|
-
|
|
599
|
+
h === "TIMMER_BASED" && p && p !== "IMMEDIATELY" && /* @__PURE__ */ t(
|
|
600
|
+
v,
|
|
533
601
|
{
|
|
534
602
|
item: !0,
|
|
535
603
|
size: { xs: 12, sm: 6 },
|
|
536
604
|
"data-testid": "manageeventconfiguration-minute-field",
|
|
537
|
-
children: /* @__PURE__ */
|
|
538
|
-
/* @__PURE__ */ t(
|
|
605
|
+
children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
606
|
+
/* @__PURE__ */ t(m, { variant: "body2", children: o("Minute") }),
|
|
539
607
|
/* @__PURE__ */ t(
|
|
540
|
-
|
|
608
|
+
k,
|
|
541
609
|
{
|
|
542
|
-
control:
|
|
610
|
+
control: N,
|
|
543
611
|
id: "minute",
|
|
544
612
|
name: "minute",
|
|
545
|
-
errors:
|
|
613
|
+
errors: d,
|
|
546
614
|
type: "number",
|
|
547
615
|
label: "",
|
|
548
616
|
size: "small",
|
|
@@ -552,78 +620,78 @@ function Qt() {
|
|
|
552
620
|
] })
|
|
553
621
|
}
|
|
554
622
|
),
|
|
555
|
-
|
|
556
|
-
/* @__PURE__ */
|
|
557
|
-
|
|
623
|
+
h === "RECURSION" && /* @__PURE__ */ t(v, { item: !0, size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
624
|
+
/* @__PURE__ */ l(m, { variant: "body2", children: [
|
|
625
|
+
o("Recursion Interval (in Minutes)"),
|
|
558
626
|
/* @__PURE__ */ t("span", { className: "text-red-500 ml-1", children: "*" })
|
|
559
627
|
] }),
|
|
560
|
-
/* @__PURE__ */ t(
|
|
561
|
-
|
|
628
|
+
/* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
|
|
629
|
+
k,
|
|
562
630
|
{
|
|
563
631
|
type: "number",
|
|
564
|
-
control:
|
|
632
|
+
control: N,
|
|
565
633
|
id: "recursionInterval",
|
|
566
634
|
name: "recursionInterval",
|
|
567
|
-
errors:
|
|
635
|
+
errors: d,
|
|
568
636
|
label: "",
|
|
569
637
|
size: "small",
|
|
570
638
|
dataTestId: "manageeventconfiguration-recursionInterval-textfield"
|
|
571
639
|
}
|
|
572
640
|
) })
|
|
573
641
|
] }) }),
|
|
574
|
-
(
|
|
575
|
-
/* @__PURE__ */ t(
|
|
576
|
-
/* @__PURE__ */ t(
|
|
577
|
-
|
|
642
|
+
(h === "TIMMER_BASED" || h === "RECURSION") && /* @__PURE__ */ t(v, { item: !0, size: { xs: 12, sm: 6 }, children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
643
|
+
/* @__PURE__ */ t(m, { variant: "body2", children: o("Reports") }),
|
|
644
|
+
/* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
|
|
645
|
+
yt,
|
|
578
646
|
{
|
|
579
647
|
id: "reportUUID",
|
|
580
648
|
name: "reportUUID",
|
|
581
649
|
displayName: "name",
|
|
582
650
|
optionValue: "uuid",
|
|
583
651
|
multiple: !0,
|
|
584
|
-
control:
|
|
585
|
-
options:
|
|
652
|
+
control: N,
|
|
653
|
+
options: je
|
|
586
654
|
}
|
|
587
655
|
) })
|
|
588
656
|
] }) }),
|
|
589
|
-
|
|
590
|
-
|
|
657
|
+
h === "MANUAL" && /* @__PURE__ */ t(
|
|
658
|
+
v,
|
|
591
659
|
{
|
|
592
660
|
item: !0,
|
|
593
661
|
size: { xs: 12, sm: 6 },
|
|
594
662
|
"data-testid": "manageeventconfiguration-event-field",
|
|
595
|
-
children: /* @__PURE__ */
|
|
596
|
-
/* @__PURE__ */ t(
|
|
597
|
-
/* @__PURE__ */
|
|
663
|
+
children: /* @__PURE__ */ l(E, { variant: "outlined", className: "w-full", children: [
|
|
664
|
+
/* @__PURE__ */ t(m, { variant: "body2", children: o("Event") }),
|
|
665
|
+
/* @__PURE__ */ l(w, { className: "w-full", children: [
|
|
598
666
|
/* @__PURE__ */ t(
|
|
599
|
-
|
|
667
|
+
V,
|
|
600
668
|
{
|
|
601
669
|
name: "eventTypeDetailCode",
|
|
602
|
-
control:
|
|
670
|
+
control: N,
|
|
603
671
|
className: "w-full",
|
|
604
|
-
render: ({ field: e }) => /* @__PURE__ */
|
|
605
|
-
|
|
672
|
+
render: ({ field: e }) => /* @__PURE__ */ l(
|
|
673
|
+
H,
|
|
606
674
|
{
|
|
607
675
|
className: "w-full",
|
|
608
676
|
...e,
|
|
609
677
|
value: e.value,
|
|
610
|
-
error:
|
|
678
|
+
error: d.eventTypeDetailCode,
|
|
611
679
|
size: "small",
|
|
612
680
|
"data-testid": "manageeventconfiguration-eventtype-detail-select",
|
|
613
681
|
children: [
|
|
614
|
-
/* @__PURE__ */ t(
|
|
615
|
-
|
|
682
|
+
/* @__PURE__ */ t(b, { value: "", children: o("None") }),
|
|
683
|
+
oe && Object.entries(oe).map(([a, i]) => /* @__PURE__ */ t(b, { value: a, children: i }, a))
|
|
616
684
|
]
|
|
617
685
|
}
|
|
618
686
|
)
|
|
619
687
|
}
|
|
620
688
|
),
|
|
621
|
-
(
|
|
689
|
+
(d == null ? void 0 : d.eventTypeDetailCode) && /* @__PURE__ */ t(
|
|
622
690
|
"p",
|
|
623
691
|
{
|
|
624
692
|
className: "error-helper-manage-event",
|
|
625
693
|
"data-testid": "manageeventconfiguration-eventtype-detail-error",
|
|
626
|
-
children: (
|
|
694
|
+
children: (we = d == null ? void 0 : d.eventTypeDetailCode) == null ? void 0 : we.message
|
|
627
695
|
}
|
|
628
696
|
)
|
|
629
697
|
] })
|
|
@@ -631,9 +699,9 @@ function Qt() {
|
|
|
631
699
|
}
|
|
632
700
|
)
|
|
633
701
|
] }),
|
|
634
|
-
/* @__PURE__ */ t(
|
|
635
|
-
/* @__PURE__ */
|
|
636
|
-
|
|
702
|
+
/* @__PURE__ */ t(ae, { className: "m-[20px_3px]" }),
|
|
703
|
+
/* @__PURE__ */ l(
|
|
704
|
+
v,
|
|
637
705
|
{
|
|
638
706
|
container: !0,
|
|
639
707
|
spacing: 5,
|
|
@@ -641,70 +709,70 @@ function Qt() {
|
|
|
641
709
|
alignItems: "center",
|
|
642
710
|
"data-testid": "manageeventconfiguration-add-configuration",
|
|
643
711
|
children: [
|
|
644
|
-
/* @__PURE__ */ t(
|
|
645
|
-
/* @__PURE__ */ t(
|
|
646
|
-
|
|
712
|
+
/* @__PURE__ */ t(v, { item: !0, children: /* @__PURE__ */ t(m, { variant: "body2", children: o("Add Configuration") }) }),
|
|
713
|
+
/* @__PURE__ */ t(v, { item: !0, children: /* @__PURE__ */ t(
|
|
714
|
+
j,
|
|
647
715
|
{
|
|
648
716
|
size: "small",
|
|
649
717
|
variant: "contained",
|
|
650
|
-
onClick:
|
|
718
|
+
onClick: at,
|
|
651
719
|
"data-testid": "manageeventconfiguration-add-button",
|
|
652
|
-
children:
|
|
720
|
+
children: o("Add")
|
|
653
721
|
}
|
|
654
722
|
) })
|
|
655
723
|
]
|
|
656
724
|
}
|
|
657
725
|
),
|
|
658
|
-
/* @__PURE__ */ t(
|
|
659
|
-
|
|
726
|
+
/* @__PURE__ */ t(v, { container: !0, className: "w-full mt-5", children: /* @__PURE__ */ t(v, { item: !0, className: "w-full", children: /* @__PURE__ */ t(
|
|
727
|
+
Tt,
|
|
660
728
|
{
|
|
661
|
-
component:
|
|
729
|
+
component: Et,
|
|
662
730
|
className: "w-full",
|
|
663
731
|
"data-testid": "manageeventconfiguration-table-container",
|
|
664
|
-
children: /* @__PURE__ */
|
|
665
|
-
/* @__PURE__ */ t(
|
|
666
|
-
|
|
732
|
+
children: /* @__PURE__ */ l(wt, { sx: { minWidth: 800 }, children: [
|
|
733
|
+
/* @__PURE__ */ t(xt, { children: /* @__PURE__ */ l(
|
|
734
|
+
Me,
|
|
667
735
|
{
|
|
668
736
|
sx: {
|
|
669
737
|
backgroundColor: (e) => e.palette.mode === "dark" ? e.palette.custom.tableHeader : "var(--color-gray4)"
|
|
670
738
|
},
|
|
671
739
|
children: [
|
|
672
740
|
/* @__PURE__ */ t(
|
|
673
|
-
|
|
741
|
+
_,
|
|
674
742
|
{
|
|
675
743
|
className: "border border-gray-300 align-top text-[13px]",
|
|
676
744
|
"data-testid": "manageeventconfiguration-table-header-query",
|
|
677
|
-
children:
|
|
745
|
+
children: o("Query")
|
|
678
746
|
}
|
|
679
747
|
),
|
|
680
748
|
/* @__PURE__ */ t(
|
|
681
|
-
|
|
749
|
+
_,
|
|
682
750
|
{
|
|
683
751
|
className: "border border-gray-300 align-top text-[13px]",
|
|
684
752
|
"data-testid": "manageeventconfiguration-table-header-condition",
|
|
685
|
-
children:
|
|
753
|
+
children: o("Condition")
|
|
686
754
|
}
|
|
687
755
|
),
|
|
688
756
|
/* @__PURE__ */ t(
|
|
689
|
-
|
|
757
|
+
_,
|
|
690
758
|
{
|
|
691
759
|
className: "border border-gray-300 align-top text-[13px]",
|
|
692
760
|
"data-testid": "manageeventconfiguration-table-header-action",
|
|
693
|
-
children:
|
|
761
|
+
children: o("Actions")
|
|
694
762
|
}
|
|
695
763
|
)
|
|
696
764
|
]
|
|
697
765
|
}
|
|
698
766
|
) }),
|
|
699
|
-
/* @__PURE__ */ t(
|
|
767
|
+
/* @__PURE__ */ t(It, { children: C == null ? void 0 : C.map((e, a) => {
|
|
700
768
|
var i;
|
|
701
|
-
return /* @__PURE__ */
|
|
702
|
-
|
|
769
|
+
return /* @__PURE__ */ l(
|
|
770
|
+
Me,
|
|
703
771
|
{
|
|
704
772
|
sx: {
|
|
705
773
|
backgroundColor: (n) => {
|
|
706
|
-
const
|
|
707
|
-
return a % 2 === 0 ?
|
|
774
|
+
const c = n.palette.mode === "dark";
|
|
775
|
+
return a % 2 === 0 ? c ? n.palette.background.paper : "#fff" : c ? "#1C2128" : "var(--color-gray4)";
|
|
708
776
|
},
|
|
709
777
|
// Adding a hover state that works in both modes
|
|
710
778
|
"&:hover": {
|
|
@@ -714,43 +782,43 @@ function Qt() {
|
|
|
714
782
|
"data-testid": `manageeventconfiguration-table-row-${a}`,
|
|
715
783
|
children: [
|
|
716
784
|
/* @__PURE__ */ t(
|
|
717
|
-
|
|
785
|
+
_,
|
|
718
786
|
{
|
|
719
787
|
className: "border border-gray-300 align-top",
|
|
720
|
-
style: { lineHeight:
|
|
788
|
+
style: { lineHeight: Ke },
|
|
721
789
|
"data-testid": `manageeventconfiguration-table-row-${a}-query`,
|
|
722
|
-
children: /* @__PURE__ */
|
|
790
|
+
children: /* @__PURE__ */ l("div", { className: "flex flex-col items-start min-w-[300px]", children: [
|
|
723
791
|
/* @__PURE__ */ t(
|
|
724
|
-
|
|
792
|
+
E,
|
|
725
793
|
{
|
|
726
794
|
variant: "outlined",
|
|
727
795
|
className: "w-full",
|
|
728
|
-
children: /* @__PURE__ */ t(
|
|
729
|
-
|
|
796
|
+
children: /* @__PURE__ */ t(w, { className: "w-full", children: /* @__PURE__ */ t(
|
|
797
|
+
Ie,
|
|
730
798
|
{
|
|
731
799
|
required: !0,
|
|
732
|
-
control:
|
|
800
|
+
control: N,
|
|
733
801
|
id: `notificationConfigDetails.${a}.query`,
|
|
734
802
|
name: `notificationConfigDetails.${a}.query`,
|
|
735
|
-
errors:
|
|
803
|
+
errors: d,
|
|
736
804
|
value: e.query,
|
|
737
805
|
onChange: (n) => {
|
|
738
|
-
|
|
806
|
+
B(
|
|
739
807
|
`notificationConfigDetails.${a}.query`,
|
|
740
808
|
n.target.value
|
|
741
|
-
),
|
|
742
|
-
const
|
|
743
|
-
|
|
809
|
+
), tt(a, n.target.value);
|
|
810
|
+
const c = `notificationConfigDetails.${a}.query`;
|
|
811
|
+
ve(c) === "" ? J(c, {
|
|
744
812
|
type: "manual",
|
|
745
813
|
message: "Query Required"
|
|
746
|
-
}) :
|
|
814
|
+
}) : G(c);
|
|
747
815
|
},
|
|
748
816
|
onBlur: () => {
|
|
749
817
|
const n = `notificationConfigDetails.${a}.query`;
|
|
750
|
-
|
|
818
|
+
ve(n) === "" ? J(n, {
|
|
751
819
|
type: "manual",
|
|
752
820
|
message: "Query Required"
|
|
753
|
-
}) :
|
|
821
|
+
}) : G(n), be(e);
|
|
754
822
|
},
|
|
755
823
|
label: "",
|
|
756
824
|
minRows: 5,
|
|
@@ -775,7 +843,7 @@ function Qt() {
|
|
|
775
843
|
}
|
|
776
844
|
),
|
|
777
845
|
/* @__PURE__ */ t(
|
|
778
|
-
|
|
846
|
+
_,
|
|
779
847
|
{
|
|
780
848
|
className: "border border-gray-300 align-top",
|
|
781
849
|
"data-testid": `manageeventconfiguration-table-row-${a}-condition`,
|
|
@@ -789,12 +857,12 @@ function Qt() {
|
|
|
789
857
|
width: "100%"
|
|
790
858
|
},
|
|
791
859
|
children: ((i = e == null ? void 0 : e.conditions) == null ? void 0 : i.length) > 0 ? e == null ? void 0 : e.conditions.map(
|
|
792
|
-
(n,
|
|
860
|
+
(n, c) => /* @__PURE__ */ l(
|
|
793
861
|
"div",
|
|
794
862
|
{
|
|
795
863
|
style: { width: "100%" },
|
|
796
864
|
children: [
|
|
797
|
-
/* @__PURE__ */
|
|
865
|
+
/* @__PURE__ */ l(
|
|
798
866
|
"div",
|
|
799
867
|
{
|
|
800
868
|
style: {
|
|
@@ -805,7 +873,7 @@ function Qt() {
|
|
|
805
873
|
"data-testid": "manageeventconfiguration-condition-rows",
|
|
806
874
|
children: [
|
|
807
875
|
/* @__PURE__ */ t(
|
|
808
|
-
|
|
876
|
+
m,
|
|
809
877
|
{
|
|
810
878
|
className: "mr-1",
|
|
811
879
|
variant: "body2",
|
|
@@ -816,33 +884,33 @@ function Qt() {
|
|
|
816
884
|
$,
|
|
817
885
|
{
|
|
818
886
|
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
|
-
icon:
|
|
820
|
-
onClick: () =>
|
|
887
|
+
icon: _t,
|
|
888
|
+
onClick: () => X(
|
|
821
889
|
e,
|
|
822
890
|
a,
|
|
823
891
|
n,
|
|
824
|
-
|
|
892
|
+
c
|
|
825
893
|
),
|
|
826
|
-
"data-testid": `manageeventconfiguration-table-row-${a}-condition-edit-${
|
|
894
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-condition-edit-${c}`
|
|
827
895
|
}
|
|
828
896
|
),
|
|
829
897
|
/* @__PURE__ */ t(
|
|
830
898
|
$,
|
|
831
899
|
{
|
|
832
|
-
icon:
|
|
900
|
+
icon: Se,
|
|
833
901
|
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
|
-
onClick: () =>
|
|
902
|
+
onClick: () => et(
|
|
835
903
|
a,
|
|
836
|
-
|
|
904
|
+
c
|
|
837
905
|
),
|
|
838
|
-
"data-testid": `manageeventconfiguration-table-row-${a}-condition-delete-${
|
|
906
|
+
"data-testid": `manageeventconfiguration-table-row-${a}-condition-delete-${c}`
|
|
839
907
|
}
|
|
840
908
|
),
|
|
841
|
-
|
|
909
|
+
c === (e == null ? void 0 : e.conditions.length) - 1 && /* @__PURE__ */ t(
|
|
842
910
|
$,
|
|
843
911
|
{
|
|
844
|
-
icon:
|
|
845
|
-
onClick: () =>
|
|
912
|
+
icon: Ae,
|
|
913
|
+
onClick: () => X(e, a),
|
|
846
914
|
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
915
|
"data-testid": `manageeventconfiguration-table-row-${a}-condition-add`
|
|
848
916
|
}
|
|
@@ -850,22 +918,22 @@ function Qt() {
|
|
|
850
918
|
]
|
|
851
919
|
}
|
|
852
920
|
),
|
|
853
|
-
|
|
921
|
+
c < (e == null ? void 0 : e.conditions.length) - 1 && /* @__PURE__ */ t(ae, { className: "w-full m-[10px_0px]" })
|
|
854
922
|
]
|
|
855
923
|
},
|
|
856
|
-
|
|
924
|
+
c + 1
|
|
857
925
|
)
|
|
858
|
-
) : /* @__PURE__ */
|
|
926
|
+
) : /* @__PURE__ */ l(
|
|
859
927
|
"div",
|
|
860
928
|
{
|
|
861
929
|
className: "flex flex-row items-center justify-between w-full mt-2 sm:mt-0 text-[14px]",
|
|
862
930
|
children: [
|
|
863
|
-
/* @__PURE__ */ t("span", { className: "mr-3 flex-1", children:
|
|
931
|
+
/* @__PURE__ */ t("span", { className: "mr-3 flex-1", children: o("No Condition Added") }),
|
|
864
932
|
/* @__PURE__ */ t("div", { className: "flex items-center gap-3", children: /* @__PURE__ */ t(
|
|
865
933
|
$,
|
|
866
934
|
{
|
|
867
|
-
icon:
|
|
868
|
-
onClick: () =>
|
|
935
|
+
icon: Ae,
|
|
936
|
+
onClick: () => X(e, a),
|
|
869
937
|
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
938
|
"data-testid": `manageeventconfiguration-table-row-${a}-condition-add-empty`
|
|
871
939
|
}
|
|
@@ -878,7 +946,7 @@ function Qt() {
|
|
|
878
946
|
}
|
|
879
947
|
),
|
|
880
948
|
/* @__PURE__ */ t(
|
|
881
|
-
|
|
949
|
+
_,
|
|
882
950
|
{
|
|
883
951
|
className: "border border-gray-300 align-top",
|
|
884
952
|
"data-testid": `manageeventconfiguration-table-row-${a}-action`,
|
|
@@ -891,12 +959,12 @@ function Qt() {
|
|
|
891
959
|
alignItems: "flex-start"
|
|
892
960
|
},
|
|
893
961
|
children: /* @__PURE__ */ t(
|
|
894
|
-
|
|
962
|
+
j,
|
|
895
963
|
{
|
|
896
964
|
onClick: () => {
|
|
897
|
-
|
|
965
|
+
Ze(a);
|
|
898
966
|
const n = `notificationConfigDetails.${a}.query`;
|
|
899
|
-
|
|
967
|
+
G(n);
|
|
900
968
|
},
|
|
901
969
|
size: "small",
|
|
902
970
|
"aria-label": "delete",
|
|
@@ -904,7 +972,7 @@ function Qt() {
|
|
|
904
972
|
children: /* @__PURE__ */ t(
|
|
905
973
|
$,
|
|
906
974
|
{
|
|
907
|
-
icon:
|
|
975
|
+
icon: Se,
|
|
908
976
|
className: "text-[19px] text-[var(--color-error)]"
|
|
909
977
|
}
|
|
910
978
|
)
|
|
@@ -923,15 +991,15 @@ function Qt() {
|
|
|
923
991
|
}
|
|
924
992
|
) }) })
|
|
925
993
|
] }),
|
|
926
|
-
/* @__PURE__ */ t(
|
|
927
|
-
/* @__PURE__ */
|
|
928
|
-
|
|
994
|
+
/* @__PURE__ */ t(ae, { className: "m-[8px_0px]" }),
|
|
995
|
+
/* @__PURE__ */ l(
|
|
996
|
+
Mt,
|
|
929
997
|
{
|
|
930
998
|
className: "flex flex-col sm:flex-row justify-end gap-2",
|
|
931
999
|
"data-testid": "manageeventconfiguration-cardactions",
|
|
932
1000
|
children: [
|
|
933
1001
|
/* @__PURE__ */ t(
|
|
934
|
-
|
|
1002
|
+
j,
|
|
935
1003
|
{
|
|
936
1004
|
variant: "contained",
|
|
937
1005
|
color: "secondary",
|
|
@@ -939,18 +1007,18 @@ function Qt() {
|
|
|
939
1007
|
size: "small",
|
|
940
1008
|
className: "w-full sm:w-auto",
|
|
941
1009
|
onClick: () => {
|
|
942
|
-
|
|
1010
|
+
Z("button_click", {
|
|
943
1011
|
button_name: "manageeventconfiguration-back-button",
|
|
944
1012
|
button_type: "cancel",
|
|
945
1013
|
button_id: "manageeventconfiguration-back-button"
|
|
946
|
-
}),
|
|
1014
|
+
}), le("/ui/medplat/notification/all");
|
|
947
1015
|
},
|
|
948
1016
|
"data-testid": "manageeventconfiguration-back-button",
|
|
949
|
-
children:
|
|
1017
|
+
children: o("Cancel")
|
|
950
1018
|
}
|
|
951
1019
|
),
|
|
952
1020
|
/* @__PURE__ */ t(
|
|
953
|
-
|
|
1021
|
+
j,
|
|
954
1022
|
{
|
|
955
1023
|
size: "small",
|
|
956
1024
|
variant: "contained",
|
|
@@ -958,7 +1026,7 @@ function Qt() {
|
|
|
958
1026
|
color: "primary",
|
|
959
1027
|
className: "w-full sm:w-auto m-0",
|
|
960
1028
|
"data-testid": "manageeventconfiguration-save-button",
|
|
961
|
-
children:
|
|
1029
|
+
children: o(`${O ? "Update" : "Save"}`)
|
|
962
1030
|
}
|
|
963
1031
|
)
|
|
964
1032
|
]
|
|
@@ -967,44 +1035,44 @@ function Qt() {
|
|
|
967
1035
|
]
|
|
968
1036
|
}
|
|
969
1037
|
) }),
|
|
970
|
-
/* @__PURE__ */ t(
|
|
971
|
-
|
|
1038
|
+
/* @__PURE__ */ t(qe, { children: /* @__PURE__ */ t(
|
|
1039
|
+
Lt,
|
|
972
1040
|
{
|
|
973
|
-
selectedConfig:
|
|
974
|
-
notificationtypeMap:
|
|
975
|
-
selectedCondition:
|
|
976
|
-
newCondition:
|
|
977
|
-
handleTypeConfigurationDelete:
|
|
978
|
-
handleTypeConfigurationEdit:
|
|
979
|
-
addTypeConfig:
|
|
980
|
-
setNewConditionData:
|
|
981
|
-
typeConfigurationData:
|
|
982
|
-
setNewTypeData:
|
|
983
|
-
overlayOpen:
|
|
984
|
-
handleOverlayState:
|
|
1041
|
+
selectedConfig: K,
|
|
1042
|
+
notificationtypeMap: se,
|
|
1043
|
+
selectedCondition: $e,
|
|
1044
|
+
newCondition: M,
|
|
1045
|
+
handleTypeConfigurationDelete: it,
|
|
1046
|
+
handleTypeConfigurationEdit: rt,
|
|
1047
|
+
addTypeConfig: Ce,
|
|
1048
|
+
setNewConditionData: ot,
|
|
1049
|
+
typeConfigurationData: P,
|
|
1050
|
+
setNewTypeData: st,
|
|
1051
|
+
overlayOpen: me,
|
|
1052
|
+
handleOverlayState: pe,
|
|
985
1053
|
"data-testid": "manageeventconfiguration-conditionconfig"
|
|
986
1054
|
}
|
|
987
1055
|
) }),
|
|
988
|
-
/* @__PURE__ */ t(
|
|
989
|
-
|
|
1056
|
+
/* @__PURE__ */ t(qe, { children: (D == null ? void 0 : D.type) === "MOBILE" ? /* @__PURE__ */ t(
|
|
1057
|
+
zt,
|
|
990
1058
|
{
|
|
991
|
-
type:
|
|
992
|
-
open:
|
|
993
|
-
notificationtypeMap:
|
|
994
|
-
handleClick:
|
|
1059
|
+
type: D,
|
|
1060
|
+
open: he,
|
|
1061
|
+
notificationtypeMap: se,
|
|
1062
|
+
handleClick: Ne,
|
|
995
1063
|
handleClose: () => {
|
|
996
|
-
|
|
1064
|
+
Q((e) => !e), R({});
|
|
997
1065
|
},
|
|
998
1066
|
"data-testid": "manageeventconfiguration-mobiletypeeventconfigmodal"
|
|
999
1067
|
}
|
|
1000
1068
|
) : /* @__PURE__ */ t(
|
|
1001
|
-
|
|
1069
|
+
kt,
|
|
1002
1070
|
{
|
|
1003
|
-
type:
|
|
1004
|
-
open:
|
|
1005
|
-
handleClick:
|
|
1071
|
+
type: D,
|
|
1072
|
+
open: he,
|
|
1073
|
+
handleClick: Ne,
|
|
1006
1074
|
handleClose: () => {
|
|
1007
|
-
|
|
1075
|
+
Q((e) => !e), R({});
|
|
1008
1076
|
},
|
|
1009
1077
|
"data-testid": "manageeventconfiguration-othertypeeventconfigmodal"
|
|
1010
1078
|
}
|
|
@@ -1012,6 +1080,6 @@ function Qt() {
|
|
|
1012
1080
|
] });
|
|
1013
1081
|
}
|
|
1014
1082
|
export {
|
|
1015
|
-
|
|
1083
|
+
ia as default
|
|
1016
1084
|
};
|
|
1017
|
-
//# sourceMappingURL=ManageEventConfiguration-
|
|
1085
|
+
//# sourceMappingURL=ManageEventConfiguration-CoYcpjR9.js.map
|