@argusoft/medplat-core 1.0.28 → 1.0.29
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-Zm8Obm4N.js +1284 -0
- package/dist/AccessRights-Zm8Obm4N.js.map +1 -0
- package/dist/{AddFeatures-C0Z29oSd.js → AddFeatures-v3TmGQee.js} +2 -2
- package/dist/{AddFeatures-C0Z29oSd.js.map → AddFeatures-v3TmGQee.js.map} +1 -1
- package/dist/AddMenuConfiguration-Ce91MhnU.js +8547 -0
- package/dist/AddMenuConfiguration-Ce91MhnU.js.map +1 -0
- package/dist/{AddRoleDrawer-CQdzQZLb.js → AddRoleDrawer-0gqAK8N0.js} +62 -63
- package/dist/AddRoleDrawer-0gqAK8N0.js.map +1 -0
- package/dist/{ChangePasswordModalCore-CDxkeIIM.js → ChangePasswordModalCore-DutQAZOx.js} +2 -2
- package/dist/{ChangePasswordModalCore-CDxkeIIM.js.map → ChangePasswordModalCore-DutQAZOx.js.map} +1 -1
- package/dist/{ConditionConfig-DSsgGEXS.js → ConditionConfig-B4Ffpgj3.js} +2 -2
- package/dist/ConditionConfig-B4Ffpgj3.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/{EventConfigurations-kNtAj_WM.js → EventConfigurations-BJcURufo.js} +3 -3
- package/dist/{EventConfigurations-kNtAj_WM.js.map → EventConfigurations-BJcURufo.js.map} +1 -1
- package/dist/{EventsExceptionModal-D4Bf1ilS.js → EventsExceptionModal-BlZtBQoR.js} +2 -2
- package/dist/{EventsExceptionModal-D4Bf1ilS.js.map → EventsExceptionModal-BlZtBQoR.js.map} +1 -1
- package/dist/{EventsSkeleton-8iiETGcf.js → EventsSkeleton-DK6JDKAK.js} +26 -19
- package/dist/EventsSkeleton-DK6JDKAK.js.map +1 -0
- package/dist/{FeatureMenu-jl7-Tk6y.js → FeatureMenu-C3503UIX.js} +3 -3
- package/dist/{FeatureMenu-jl7-Tk6y.js.map → FeatureMenu-C3503UIX.js.map} +1 -1
- package/dist/Features-Dne21RWu.js +14 -0
- package/dist/Features-Dne21RWu.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/ImmunizationConfigurationBase-DLQVSNnt.js +5895 -0
- package/dist/ImmunizationConfigurationBase-DLQVSNnt.js.map +1 -0
- package/dist/ImmunizationConfigurationBase.css +1 -1
- package/dist/{ManageDynamicFeature-BhONvfC_.js → ManageDynamicFeature-dt096fyj.js} +2 -2
- package/dist/{ManageDynamicFeature-BhONvfC_.js.map → ManageDynamicFeature-dt096fyj.js.map} +1 -1
- package/dist/{ManageEventConfiguration-DV3I5POA.js → ManageEventConfiguration-BpSJszSX.js} +5 -5
- package/dist/{ManageEventConfiguration-DV3I5POA.js.map → ManageEventConfiguration-BpSJszSX.js.map} +1 -1
- package/dist/ManageNotification-CfhHlfxA.js +934 -0
- package/dist/ManageNotification-CfhHlfxA.js.map +1 -0
- package/dist/{ManageRole-CGYfglpo.js → ManageRole-4Y2PP4dQ.js} +32 -30
- package/dist/ManageRole-4Y2PP4dQ.js.map +1 -0
- package/dist/{ManageUser-AY1EUDLI.js → ManageUser-DDzyd9jm.js} +1728 -1592
- package/dist/ManageUser-DDzyd9jm.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-DUkUYACe.js} +2 -2
- package/dist/MobileTypeEventConfigModal-DUkUYACe.js.map +1 -0
- package/dist/{NotificationList-C3Vb_jKU.js → NotificationList-BMFpNUJG.js} +109 -110
- package/dist/NotificationList-BMFpNUJG.js.map +1 -0
- package/dist/{OtherTypeEventConfigModal-BeG1GrUi.js → OtherTypeEventConfigModal-CYBfr2XE.js} +570 -478
- package/dist/OtherTypeEventConfigModal-CYBfr2XE.js.map +1 -0
- package/dist/{RoleManagement-BPl2cE27.js → RoleManagement-DEiBNfT8.js} +100 -101
- package/dist/RoleManagement-DEiBNfT8.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/{SubMenu-DYxAPH2Z.js → SubMenu-B072oEGb.js} +3 -3
- package/dist/{SubMenu-DYxAPH2Z.js.map → SubMenu-B072oEGb.js.map} +1 -1
- 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/{TypeConfiguration-37wp-gsl.js → TypeConfiguration-C3xoP2Nb.js} +2 -2
- package/dist/{TypeConfiguration-37wp-gsl.js.map → TypeConfiguration-C3xoP2Nb.js.map} +1 -1
- 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/dashboardLayoutUtils-D1xCAxp3.js +405 -0
- package/dist/dashboardLayoutUtils-D1xCAxp3.js.map +1 -0
- package/dist/index.js +4 -752
- package/dist/index.js.map +1 -1
- package/dist/index.lib-C3fwoM3y.js +820 -0
- package/dist/index.lib-C3fwoM3y.js.map +1 -0
- package/package.json +2 -2
- package/dist/AccessRights-CHu27ZOw.js +0 -1262
- package/dist/AccessRights-CHu27ZOw.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/ConditionConfig-DSsgGEXS.js.map +0 -1
- package/dist/EventsSkeleton-8iiETGcf.js.map +0 -1
- package/dist/Features-CObdzJp_.js +0 -13
- package/dist/Features-CObdzJp_.js.map +0 -1
- package/dist/ImmunizationConfigurationBase-DZGqwda2.js +0 -5910
- package/dist/ImmunizationConfigurationBase-DZGqwda2.js.map +0 -1
- package/dist/ManageRole-CGYfglpo.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/NotificationList-C3Vb_jKU.js.map +0 -1
- package/dist/OtherTypeEventConfigModal-BeG1GrUi.js.map +0 -1
- package/dist/RoleManagement-BPl2cE27.js.map +0 -1
- package/dist/ServerSyncModal-D_oFpv3C.js.map +0 -1
- package/dist/TableDetails-Cf_YfnY2.js.map +0 -1
- package/dist/dashboardLayoutUtils-Bt5HA96J.js +0 -265
- package/dist/dashboardLayoutUtils-Bt5HA96J.js.map +0 -1
package/dist/{OtherTypeEventConfigModal-BeG1GrUi.js → OtherTypeEventConfigModal-CYBfr2XE.js}
RENAMED
|
@@ -1,74 +1,75 @@
|
|
|
1
|
-
import { jsx as i, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useForm as
|
|
5
|
-
import { yupResolver as
|
|
1
|
+
import { jsx as i, jsxs as l, Fragment as De } from "react/jsx-runtime";
|
|
2
|
+
import V, { memo as Ke, forwardRef as we, useRef as j, useEffect as oe, useState as U } from "react";
|
|
3
|
+
import G from "prop-types";
|
|
4
|
+
import { useForm as je, Controller as y } from "react-hook-form";
|
|
5
|
+
import { yupResolver as Ye } from "@hookform/resolvers/yup";
|
|
6
6
|
import d from "@mui/material/Grid2";
|
|
7
7
|
import * as F from "yup";
|
|
8
|
-
import { useTheme as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { retrieveAllConfigured as
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import "
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
8
|
+
import { useTheme as qe, Modal as Je, Typography as h, IconButton as pe, Box as w, FormControl as p, Select as L, MenuItem as _, FormControlLabel as D, Checkbox as K, Button as te, CircularProgress as Be, TextField as ie, Stack as He } from "@mui/material";
|
|
9
|
+
import ne from "@/views/custom-components/CustomTextArea";
|
|
10
|
+
import P from "@/views/custom-components/CustomTextField";
|
|
11
|
+
import { retrieveAllConfigured as Qe, execute as ve, getNotificationTypeList as Xe } from "@/common/services/GlobalApis";
|
|
12
|
+
import { f as Ge } from "./EventsSkeleton-DK6JDKAK.js";
|
|
13
|
+
import { showToast as re } from "@/common/toaster/toaster";
|
|
14
|
+
import Ze from "@/hooks/useTrackEvent";
|
|
15
|
+
import "./ManageEventConfiguration-BpSJszSX.js";
|
|
16
|
+
import { useTranslateProvider as et } from "@/common/languageTranslator/TranslationContext";
|
|
17
|
+
import { faXmark as tt, faCloudArrowUp as it, faTrash as nt } from "@fortawesome/free-solid-svg-icons";
|
|
18
|
+
import { FontAwesomeIcon as ae } from "@fortawesome/react-fontawesome";
|
|
19
|
+
import rt from "@/views/custom-components/CkEditor/CkEditor";
|
|
20
|
+
function at() {
|
|
21
|
+
const a = {
|
|
21
22
|
resolve: null,
|
|
22
23
|
promise: null
|
|
23
24
|
};
|
|
24
|
-
return
|
|
25
|
-
|
|
26
|
-
}),
|
|
25
|
+
return a.promise = new Promise((r) => {
|
|
26
|
+
a.resolve = r;
|
|
27
|
+
}), a;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
+
function lt(a) {
|
|
29
30
|
let r = null;
|
|
30
|
-
return (...
|
|
31
|
-
current:
|
|
31
|
+
return (...o) => (r || (r = {
|
|
32
|
+
current: a(...o)
|
|
32
33
|
}), r.current);
|
|
33
34
|
}
|
|
34
|
-
const
|
|
35
|
-
function
|
|
36
|
-
const [
|
|
37
|
-
return "e" +
|
|
35
|
+
const T = new Array(256).fill("").map((a, r) => ("0" + r.toString(16)).slice(-2));
|
|
36
|
+
function ot() {
|
|
37
|
+
const [a, r, o, e] = crypto.getRandomValues(new Uint32Array(4));
|
|
38
|
+
return "e" + T[a >> 0 & 255] + T[a >> 8 & 255] + T[a >> 16 & 255] + T[a >> 24 & 255] + T[r >> 0 & 255] + T[r >> 8 & 255] + T[r >> 16 & 255] + T[r >> 24 & 255] + T[o >> 0 & 255] + T[o >> 8 & 255] + T[o >> 16 & 255] + T[o >> 24 & 255] + T[e >> 0 & 255] + T[e >> 8 & 255] + T[e >> 16 & 255] + T[e >> 24 & 255];
|
|
38
39
|
}
|
|
39
|
-
function
|
|
40
|
-
return !!
|
|
40
|
+
function Ce(a) {
|
|
41
|
+
return !!a && /^\d+\.\d+\.\d+/.test(a);
|
|
41
42
|
}
|
|
42
|
-
function
|
|
43
|
-
if (!
|
|
44
|
-
throw new Error(`Invalid semantic version: ${
|
|
45
|
-
const [r,
|
|
43
|
+
function st(a) {
|
|
44
|
+
if (!Ce(a))
|
|
45
|
+
throw new Error(`Invalid semantic version: ${a || "<blank>"}.`);
|
|
46
|
+
const [r, o, e] = a.split(".");
|
|
46
47
|
return {
|
|
47
48
|
major: Number.parseInt(r, 10),
|
|
48
|
-
minor: Number.parseInt(
|
|
49
|
+
minor: Number.parseInt(o, 10),
|
|
49
50
|
patch: Number.parseInt(e, 10)
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
function
|
|
53
|
-
return
|
|
53
|
+
function Ie(a) {
|
|
54
|
+
return a ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((r) => a.includes(r)) : !1;
|
|
54
55
|
}
|
|
55
|
-
function
|
|
56
|
-
return
|
|
56
|
+
function ct(a) {
|
|
57
|
+
return Ce(a) || Ie(a);
|
|
57
58
|
}
|
|
58
|
-
function
|
|
59
|
-
const
|
|
59
|
+
function dt(a, r) {
|
|
60
|
+
const o = a.extraPlugins || [];
|
|
60
61
|
return {
|
|
61
|
-
...
|
|
62
|
+
...a,
|
|
62
63
|
extraPlugins: [
|
|
63
|
-
...
|
|
64
|
-
...r.filter((e) => !
|
|
64
|
+
...o,
|
|
65
|
+
...r.filter((e) => !o.includes(e))
|
|
65
66
|
]
|
|
66
67
|
};
|
|
67
68
|
}
|
|
68
|
-
function
|
|
69
|
-
if (
|
|
69
|
+
function ut(a) {
|
|
70
|
+
if (Ie(a))
|
|
70
71
|
return 3;
|
|
71
|
-
const { major: r } =
|
|
72
|
+
const { major: r } = st(a);
|
|
72
73
|
switch (!0) {
|
|
73
74
|
case r >= 44:
|
|
74
75
|
return 3;
|
|
@@ -78,57 +79,57 @@ function it(o) {
|
|
|
78
79
|
return 1;
|
|
79
80
|
}
|
|
80
81
|
}
|
|
81
|
-
function
|
|
82
|
-
const { CKEDITOR_VERSION:
|
|
83
|
-
return
|
|
82
|
+
function mt() {
|
|
83
|
+
const { CKEDITOR_VERSION: a, CKEDITOR: r } = window;
|
|
84
|
+
return ct(a) ? {
|
|
84
85
|
source: r ? "cdn" : "npm",
|
|
85
|
-
version:
|
|
86
|
+
version: a
|
|
86
87
|
} : null;
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
-
const
|
|
90
|
-
return
|
|
89
|
+
function ht() {
|
|
90
|
+
const a = mt();
|
|
91
|
+
return a ? ut(a.version) : null;
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
switch (r || (r =
|
|
93
|
+
function Ee(a, r) {
|
|
94
|
+
switch (r || (r = ht() || void 0), r) {
|
|
94
95
|
case 1:
|
|
95
96
|
case 2:
|
|
96
|
-
return
|
|
97
|
+
return a === void 0;
|
|
97
98
|
case 3:
|
|
98
|
-
return
|
|
99
|
+
return a === "GPL";
|
|
99
100
|
default:
|
|
100
101
|
return !1;
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
function
|
|
104
|
+
function ft(a, r) {
|
|
104
105
|
return function(e) {
|
|
105
|
-
|
|
106
|
-
|
|
106
|
+
Ee(e.config.get("licenseKey")) || e.on("collectUsageData", (u, { setUsageData: C }) => {
|
|
107
|
+
C(`integration.${a}`, r);
|
|
107
108
|
});
|
|
108
109
|
};
|
|
109
110
|
}
|
|
110
|
-
var
|
|
111
|
+
var gt = Object.defineProperty, Nt = (a, r, o) => r in a ? gt(a, r, { enumerable: !0, configurable: !0, writable: !0, value: o }) : a[r] = o, S = (a, r, o) => Nt(a, typeof r != "symbol" ? r + "" : r, o);
|
|
111
112
|
/**
|
|
112
113
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
113
114
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
114
115
|
*/
|
|
115
|
-
const
|
|
116
|
-
constructor(r,
|
|
116
|
+
const xe = class Te {
|
|
117
|
+
constructor(r, o) {
|
|
117
118
|
S(this, "_lifecycle"), S(this, "_element"), S(this, "_releaseLock", null), S(this, "_value", null), S(this, "_afterMountCallbacks", []), S(this, "_state", {
|
|
118
119
|
destroyedBeforeInitialization: !1,
|
|
119
120
|
mountingInProgress: null
|
|
120
|
-
}), S(this, "release",
|
|
121
|
-
const { _releaseLock: e, _state: u, _element:
|
|
122
|
-
u.mountingInProgress ? u.mountingInProgress.then(() =>
|
|
123
|
-
element:
|
|
121
|
+
}), S(this, "release", lt(() => {
|
|
122
|
+
const { _releaseLock: e, _state: u, _element: C, _lifecycle: N } = this;
|
|
123
|
+
u.mountingInProgress ? u.mountingInProgress.then(() => N.unmount({
|
|
124
|
+
element: C,
|
|
124
125
|
// Mount result might be overridden by watchdog during restart so use instance variable.
|
|
125
126
|
mountResult: this.value
|
|
126
|
-
})).catch((
|
|
127
|
-
console.error("Semaphore unmounting error:",
|
|
127
|
+
})).catch((I) => {
|
|
128
|
+
console.error("Semaphore unmounting error:", I);
|
|
128
129
|
}).then(e.resolve).then(() => {
|
|
129
130
|
this._value = null;
|
|
130
131
|
}) : (u.destroyedBeforeInitialization = !0, e.resolve());
|
|
131
|
-
})), this._element = r, this._lifecycle =
|
|
132
|
+
})), this._element = r, this._lifecycle = o, this._lock();
|
|
132
133
|
}
|
|
133
134
|
/**
|
|
134
135
|
* Getter for {@link #_value}.
|
|
@@ -142,7 +143,7 @@ const Ne = class ve {
|
|
|
142
143
|
* with a different one.
|
|
143
144
|
*/
|
|
144
145
|
unsafeSetValue(r) {
|
|
145
|
-
this._value = r, this._afterMountCallbacks.forEach((
|
|
146
|
+
this._value = r, this._afterMountCallbacks.forEach((o) => o(r)), this._afterMountCallbacks = [];
|
|
146
147
|
}
|
|
147
148
|
/**
|
|
148
149
|
* This registers a callback that will be triggered after the editor has been successfully mounted.
|
|
@@ -153,8 +154,8 @@ const Ne = class ve {
|
|
|
153
154
|
* * If an exception is thrown within the callback, it will be re-thrown in the semaphore.
|
|
154
155
|
*/
|
|
155
156
|
runAfterMount(r) {
|
|
156
|
-
const { _value:
|
|
157
|
-
|
|
157
|
+
const { _value: o, _afterMountCallbacks: e } = this;
|
|
158
|
+
o ? r(o) : e.push(r);
|
|
158
159
|
}
|
|
159
160
|
/**
|
|
160
161
|
* This method is used to inform other components that the {@link #_element} will be used by the editor,
|
|
@@ -175,72 +176,72 @@ const Ne = class ve {
|
|
|
175
176
|
* it will cause problems when we’re trying to set up the {@link LifeCycleEditorElementSemaphore#_semaphores} map entries.
|
|
176
177
|
*/
|
|
177
178
|
_lock() {
|
|
178
|
-
const { _semaphores: r } =
|
|
179
|
-
this._releaseLock =
|
|
180
|
-
const
|
|
181
|
-
|
|
179
|
+
const { _semaphores: r } = Te, { _state: o, _element: e, _lifecycle: u } = this, C = r.get(e) || Promise.resolve(null), N = at();
|
|
180
|
+
this._releaseLock = N;
|
|
181
|
+
const I = C.then(() => o.destroyedBeforeInitialization ? Promise.resolve(void 0) : (o.mountingInProgress = u.mount().then((x) => (x && this.unsafeSetValue(x), x)), o.mountingInProgress)).then(async (x) => {
|
|
182
|
+
x && u.afterMount && await u.afterMount({
|
|
182
183
|
element: e,
|
|
183
|
-
mountResult:
|
|
184
|
+
mountResult: x
|
|
184
185
|
});
|
|
185
|
-
}).then(() =>
|
|
186
|
-
console.error("Semaphore mounting error:",
|
|
186
|
+
}).then(() => N.promise).catch((x) => {
|
|
187
|
+
console.error("Semaphore mounting error:", x);
|
|
187
188
|
}).then(() => {
|
|
188
|
-
r.get(e) ===
|
|
189
|
+
r.get(e) === I && r.delete(e);
|
|
189
190
|
});
|
|
190
|
-
r.set(e,
|
|
191
|
+
r.set(e, I);
|
|
191
192
|
}
|
|
192
193
|
};
|
|
193
|
-
S(
|
|
194
|
-
let
|
|
194
|
+
S(xe, "_semaphores", /* @__PURE__ */ new Map());
|
|
195
|
+
let pt = xe;
|
|
195
196
|
/**
|
|
196
197
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
197
198
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
198
199
|
*/
|
|
199
|
-
const
|
|
200
|
-
function
|
|
200
|
+
const vt = "$__CKEditorReactContextMetadata";
|
|
201
|
+
function bt(a, r) {
|
|
201
202
|
return {
|
|
202
203
|
...r,
|
|
203
|
-
[
|
|
204
|
+
[vt]: a
|
|
204
205
|
};
|
|
205
206
|
}
|
|
206
207
|
/**
|
|
207
208
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
208
209
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
209
210
|
*/
|
|
210
|
-
const
|
|
211
|
+
const wt = V.createContext(null), Ct = (a) => !!a && typeof a == "object" && "status" in a && ["initializing", "initialized", "error"].includes(a.status), _e = (a) => (r) => Ct(r) && r.status === a, be = _e("initializing"), It = (a) => _e("initialized")(a) && a.watchdog.state === "ready";
|
|
211
212
|
/**
|
|
212
213
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
213
214
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
214
215
|
*/
|
|
215
|
-
const
|
|
216
|
+
const Et = ft(
|
|
216
217
|
"react",
|
|
217
218
|
{
|
|
218
219
|
version: "9.5.0",
|
|
219
|
-
frameworkVersion:
|
|
220
|
+
frameworkVersion: V.version
|
|
220
221
|
}
|
|
221
222
|
);
|
|
222
223
|
/**
|
|
223
224
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
224
225
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
225
226
|
*/
|
|
226
|
-
function
|
|
227
|
-
return
|
|
227
|
+
function xt(a) {
|
|
228
|
+
return Ee(a.licenseKey) ? a : dt(a, [
|
|
228
229
|
/**
|
|
229
230
|
* This part of the code is not executed in open-source implementations using a GPL key.
|
|
230
231
|
* It only runs when a specific license key is provided. If you are uncertain whether
|
|
231
232
|
* this applies to your installation, please contact our support team.
|
|
232
233
|
*/
|
|
233
|
-
|
|
234
|
+
Et
|
|
234
235
|
]);
|
|
235
236
|
}
|
|
236
237
|
/**
|
|
237
238
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
238
239
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
239
240
|
*/
|
|
240
|
-
const
|
|
241
|
-
class
|
|
241
|
+
const le = "Lock from React integration (@ckeditor/ckeditor5-react)";
|
|
242
|
+
class ye extends V.Component {
|
|
242
243
|
constructor(r) {
|
|
243
|
-
super(r), S(this, "domContainer",
|
|
244
|
+
super(r), S(this, "domContainer", V.createRef()), S(this, "editorSemaphore", null), this._checkVersion();
|
|
244
245
|
}
|
|
245
246
|
/**
|
|
246
247
|
* Checks if the CKEditor version used in the application is compatible with the component.
|
|
@@ -249,8 +250,8 @@ class pe extends O.Component {
|
|
|
249
250
|
const { CKEDITOR_VERSION: r } = window;
|
|
250
251
|
if (!r)
|
|
251
252
|
return console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.');
|
|
252
|
-
const [
|
|
253
|
-
|
|
253
|
+
const [o] = r.split(".").map(Number);
|
|
254
|
+
o >= 42 || r.startsWith("0.0.0") || console.warn("The <CKEditor> component requires using CKEditor 5 in version 42+ or nightly build.");
|
|
254
255
|
}
|
|
255
256
|
get _semaphoreValue() {
|
|
256
257
|
const { editorSemaphore: r } = this;
|
|
@@ -275,24 +276,24 @@ class pe extends O.Component {
|
|
|
275
276
|
* However, if the component identifier changes, the whole structure should be created once again.
|
|
276
277
|
*/
|
|
277
278
|
shouldComponentUpdate(r) {
|
|
278
|
-
const { props:
|
|
279
|
-
return r.id !==
|
|
280
|
-
this._shouldUpdateEditorData(
|
|
279
|
+
const { props: o, editorSemaphore: e } = this;
|
|
280
|
+
return r.id !== o.id || r.disableWatchdog !== o.disableWatchdog ? !0 : (e && (e.runAfterMount(({ instance: u }) => {
|
|
281
|
+
this._shouldUpdateEditorData(o, r, u) && u.data.set(r.data);
|
|
281
282
|
}), "disabled" in r && e.runAfterMount(({ instance: u }) => {
|
|
282
|
-
r.disabled ? u.enableReadOnlyMode(
|
|
283
|
+
r.disabled ? u.enableReadOnlyMode(le) : u.disableReadOnlyMode(le);
|
|
283
284
|
})), !1);
|
|
284
285
|
}
|
|
285
286
|
/**
|
|
286
287
|
* Initialize the editor when the component is mounted.
|
|
287
288
|
*/
|
|
288
289
|
componentDidMount() {
|
|
289
|
-
|
|
290
|
+
be(this.context) || this._initLifeCycleSemaphore();
|
|
290
291
|
}
|
|
291
292
|
/**
|
|
292
293
|
* Re-render the entire component once again. The old editor will be destroyed and the new one will be created.
|
|
293
294
|
*/
|
|
294
295
|
componentDidUpdate() {
|
|
295
|
-
|
|
296
|
+
be(this.context) || this._initLifeCycleSemaphore();
|
|
296
297
|
}
|
|
297
298
|
/**
|
|
298
299
|
* Destroy the editor before unmounting the component.
|
|
@@ -310,18 +311,18 @@ class pe extends O.Component {
|
|
|
310
311
|
* Unlocks previous editor semaphore and creates new one..
|
|
311
312
|
*/
|
|
312
313
|
_initLifeCycleSemaphore() {
|
|
313
|
-
this._unlockLifeCycleSemaphore(), this.editorSemaphore = new
|
|
314
|
+
this._unlockLifeCycleSemaphore(), this.editorSemaphore = new pt(this.domContainer.current, {
|
|
314
315
|
mount: async () => this._initializeEditor(),
|
|
315
316
|
afterMount: ({ mountResult: r }) => {
|
|
316
|
-
const { onReady:
|
|
317
|
-
|
|
317
|
+
const { onReady: o } = this.props;
|
|
318
|
+
o && this.domContainer.current !== null && o(r.instance);
|
|
318
319
|
},
|
|
319
|
-
unmount: async ({ element: r, mountResult:
|
|
320
|
+
unmount: async ({ element: r, mountResult: o }) => {
|
|
320
321
|
const { onAfterDestroy: e } = this.props;
|
|
321
322
|
try {
|
|
322
|
-
await this._destroyEditor(
|
|
323
|
+
await this._destroyEditor(o), r.innerHTML = "";
|
|
323
324
|
} finally {
|
|
324
|
-
e && e(
|
|
325
|
+
e && e(o.instance);
|
|
325
326
|
}
|
|
326
327
|
}
|
|
327
328
|
});
|
|
@@ -330,7 +331,7 @@ class pe extends O.Component {
|
|
|
330
331
|
* Render a <div> element which will be replaced by CKEditor.
|
|
331
332
|
*/
|
|
332
333
|
render() {
|
|
333
|
-
return /* @__PURE__ */
|
|
334
|
+
return /* @__PURE__ */ V.createElement("div", { ref: this.domContainer });
|
|
334
335
|
}
|
|
335
336
|
/**
|
|
336
337
|
* Initializes the editor by creating a proper watchdog and initializing it with the editor's configuration.
|
|
@@ -341,22 +342,22 @@ class pe extends O.Component {
|
|
|
341
342
|
instance: await this._createEditor(this.domContainer.current, this._getConfig()),
|
|
342
343
|
watchdog: null
|
|
343
344
|
};
|
|
344
|
-
const r =
|
|
345
|
+
const r = It(this.context) ? new Tt(this.context.watchdog) : new this.props.editor.EditorWatchdog(this.props.editor, this.props.watchdogConfig), o = {
|
|
345
346
|
current: 0
|
|
346
347
|
};
|
|
347
348
|
return r.setCreator(async (e, u) => {
|
|
348
|
-
var
|
|
349
|
-
const { editorSemaphore:
|
|
350
|
-
|
|
351
|
-
const
|
|
352
|
-
return
|
|
353
|
-
instance:
|
|
349
|
+
var C;
|
|
350
|
+
const { editorSemaphore: N } = this, { onAfterDestroy: I } = this.props;
|
|
351
|
+
o.current > 0 && I && ((C = N == null ? void 0 : N.value) != null && C.instance) && I(N.value.instance);
|
|
352
|
+
const x = await this._createEditor(e, u);
|
|
353
|
+
return N && o.current > 0 && (N.unsafeSetValue({
|
|
354
|
+
instance: x,
|
|
354
355
|
watchdog: r
|
|
355
356
|
}), setTimeout(() => {
|
|
356
357
|
this.props.onReady && this.props.onReady(r.editor);
|
|
357
|
-
})),
|
|
358
|
-
}), r.on("error", (e, { error: u, causesRestart:
|
|
359
|
-
(this.props.onError || console.error)(u, { phase: "runtime", willEditorRestart:
|
|
358
|
+
})), o.current++, x;
|
|
359
|
+
}), r.on("error", (e, { error: u, causesRestart: C }) => {
|
|
360
|
+
(this.props.onError || console.error)(u, { phase: "runtime", willEditorRestart: C });
|
|
360
361
|
}), await r.create(this.domContainer.current, this._getConfig()).catch((e) => {
|
|
361
362
|
(this.props.onError || console.error)(e, { phase: "initialization", willEditorRestart: !1 });
|
|
362
363
|
}), {
|
|
@@ -370,26 +371,26 @@ class pe extends O.Component {
|
|
|
370
371
|
* @param element The source element.
|
|
371
372
|
* @param config CKEditor 5 editor configuration.
|
|
372
373
|
*/
|
|
373
|
-
_createEditor(r,
|
|
374
|
+
_createEditor(r, o) {
|
|
374
375
|
const { contextItemMetadata: e } = this.props;
|
|
375
|
-
return e && (
|
|
376
|
+
return e && (o = bt(e, o)), this.props.editor.create(
|
|
376
377
|
r,
|
|
377
|
-
|
|
378
|
+
xt(o)
|
|
378
379
|
).then((u) => {
|
|
379
380
|
if ("disabled" in this.props) {
|
|
380
381
|
/* istanbul ignore else -- @preserve */
|
|
381
|
-
this.props.disabled && u.enableReadOnlyMode(
|
|
382
|
+
this.props.disabled && u.enableReadOnlyMode(le);
|
|
382
383
|
}
|
|
383
|
-
const
|
|
384
|
-
return
|
|
384
|
+
const C = u.model.document, N = u.editing.view.document;
|
|
385
|
+
return C.on("change:data", (I) => {
|
|
385
386
|
/* istanbul ignore else -- @preserve */
|
|
386
|
-
this.props.onChange && this.props.onChange(
|
|
387
|
-
}),
|
|
387
|
+
this.props.onChange && this.props.onChange(I, u);
|
|
388
|
+
}), N.on("focus", (I) => {
|
|
388
389
|
/* istanbul ignore else -- @preserve */
|
|
389
|
-
this.props.onFocus && this.props.onFocus(
|
|
390
|
-
}),
|
|
390
|
+
this.props.onFocus && this.props.onFocus(I, u);
|
|
391
|
+
}), N.on("blur", (I) => {
|
|
391
392
|
/* istanbul ignore else -- @preserve */
|
|
392
|
-
this.props.onBlur && this.props.onBlur(
|
|
393
|
+
this.props.onBlur && this.props.onBlur(I, u);
|
|
393
394
|
}), u;
|
|
394
395
|
});
|
|
395
396
|
}
|
|
@@ -397,18 +398,18 @@ class pe extends O.Component {
|
|
|
397
398
|
* Destroys the editor by destroying the watchdog.
|
|
398
399
|
*/
|
|
399
400
|
async _destroyEditor(r) {
|
|
400
|
-
const { watchdog:
|
|
401
|
-
return new Promise((u,
|
|
401
|
+
const { watchdog: o, instance: e } = r;
|
|
402
|
+
return new Promise((u, C) => {
|
|
402
403
|
/* istanbul ignore next -- @preserve */
|
|
403
404
|
setTimeout(async () => {
|
|
404
405
|
try {
|
|
405
|
-
if (
|
|
406
|
-
return await
|
|
406
|
+
if (o)
|
|
407
|
+
return await o.destroy(), u();
|
|
407
408
|
if (e)
|
|
408
409
|
return await e.destroy(), u();
|
|
409
410
|
u();
|
|
410
|
-
} catch (
|
|
411
|
-
console.error(
|
|
411
|
+
} catch (N) {
|
|
412
|
+
console.error(N), C(N);
|
|
412
413
|
}
|
|
413
414
|
});
|
|
414
415
|
});
|
|
@@ -420,8 +421,8 @@ class pe extends O.Component {
|
|
|
420
421
|
* @param nextProps React's properties.
|
|
421
422
|
* @param editor Current editor instance.
|
|
422
423
|
*/
|
|
423
|
-
_shouldUpdateEditorData(r,
|
|
424
|
-
return !(r.data ===
|
|
424
|
+
_shouldUpdateEditorData(r, o, e) {
|
|
425
|
+
return !(r.data === o.data || e.data.get() === o.data);
|
|
425
426
|
}
|
|
426
427
|
/**
|
|
427
428
|
* Returns the editor configuration.
|
|
@@ -436,13 +437,13 @@ class pe extends O.Component {
|
|
|
436
437
|
};
|
|
437
438
|
}
|
|
438
439
|
}
|
|
439
|
-
S(
|
|
440
|
-
class
|
|
440
|
+
S(ye, "contextType", wt);
|
|
441
|
+
class Tt {
|
|
441
442
|
/**
|
|
442
443
|
* @param contextWatchdog The context watchdog instance that will be wrapped into editor watchdog API.
|
|
443
444
|
*/
|
|
444
445
|
constructor(r) {
|
|
445
|
-
S(this, "_contextWatchdog"), S(this, "_id"), S(this, "_creator"), this._contextWatchdog = r, this._id =
|
|
446
|
+
S(this, "_contextWatchdog"), S(this, "_id"), S(this, "_creator"), this._contextWatchdog = r, this._id = ot();
|
|
446
447
|
}
|
|
447
448
|
/**
|
|
448
449
|
* @param creator A watchdog's editor creator function.
|
|
@@ -456,10 +457,10 @@ class Nt {
|
|
|
456
457
|
* @param sourceElementOrData A source element or data for the new editor.
|
|
457
458
|
* @param config CKEditor 5 editor config.
|
|
458
459
|
*/
|
|
459
|
-
create(r,
|
|
460
|
+
create(r, o) {
|
|
460
461
|
return this._contextWatchdog.add({
|
|
461
462
|
sourceElementOrData: r,
|
|
462
|
-
config:
|
|
463
|
+
config: o,
|
|
463
464
|
creator: this._creator,
|
|
464
465
|
id: this._id,
|
|
465
466
|
type: "editor"
|
|
@@ -469,9 +470,9 @@ class Nt {
|
|
|
469
470
|
* Creates a listener that is attached to context watchdog's item and run when the context watchdog fires.
|
|
470
471
|
* Currently works only for the `error` event.
|
|
471
472
|
*/
|
|
472
|
-
on(r,
|
|
473
|
-
this._contextWatchdog.on("itemError", (e, { itemId: u, error:
|
|
474
|
-
u === this._id &&
|
|
473
|
+
on(r, o) {
|
|
474
|
+
this._contextWatchdog.on("itemError", (e, { itemId: u, error: C }) => {
|
|
475
|
+
u === this._id && o(null, { error: C, causesRestart: void 0 });
|
|
475
476
|
});
|
|
476
477
|
}
|
|
477
478
|
destroy() {
|
|
@@ -488,61 +489,61 @@ class Nt {
|
|
|
488
489
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
489
490
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
490
491
|
*/
|
|
491
|
-
function
|
|
492
|
+
function Se(...a) {
|
|
492
493
|
return (r) => {
|
|
493
|
-
|
|
494
|
-
typeof
|
|
494
|
+
a.forEach((o) => {
|
|
495
|
+
typeof o == "function" ? o(r) : o != null && (o.current = r);
|
|
495
496
|
});
|
|
496
497
|
};
|
|
497
498
|
}
|
|
498
|
-
const
|
|
499
|
-
const u =
|
|
500
|
-
return
|
|
501
|
-
let
|
|
502
|
-
return r.runAfterMount(({ instance:
|
|
499
|
+
const _t = Ke(we(({ id: a, semaphore: r, rootName: o }, e) => {
|
|
500
|
+
const u = j(null);
|
|
501
|
+
return oe(() => {
|
|
502
|
+
let C, N;
|
|
503
|
+
return r.runAfterMount(({ instance: I }) => {
|
|
503
504
|
if (!u.current)
|
|
504
505
|
return;
|
|
505
|
-
|
|
506
|
-
const { ui:
|
|
507
|
-
|
|
506
|
+
N = I;
|
|
507
|
+
const { ui: x, model: A } = N, Y = A.document.getRoot(o);
|
|
508
|
+
Y && N.ui.getEditableElement(o) && N.detachEditable(Y), C = x.view.createEditable(o, u.current), x.addEditable(C), I.editing.view.forceRender();
|
|
508
509
|
}), () => {
|
|
509
|
-
if (
|
|
510
|
-
const
|
|
510
|
+
if (N && N.state !== "destroyed" && u.current) {
|
|
511
|
+
const I = N.model.document.getRoot(o);
|
|
511
512
|
/* istanbul ignore else -- @preserve */
|
|
512
|
-
|
|
513
|
+
I && N.detachEditable(I);
|
|
513
514
|
}
|
|
514
515
|
};
|
|
515
|
-
}, [r.revision]), /* @__PURE__ */
|
|
516
|
+
}, [r.revision]), /* @__PURE__ */ V.createElement(
|
|
516
517
|
"div",
|
|
517
518
|
{
|
|
518
519
|
key: r.revision,
|
|
519
|
-
id:
|
|
520
|
-
ref:
|
|
520
|
+
id: a,
|
|
521
|
+
ref: Se(e, u)
|
|
521
522
|
}
|
|
522
523
|
);
|
|
523
524
|
}));
|
|
524
|
-
|
|
525
|
-
const
|
|
526
|
-
const
|
|
527
|
-
return
|
|
528
|
-
const e =
|
|
529
|
-
if (!
|
|
525
|
+
_t.displayName = "EditorEditable";
|
|
526
|
+
const yt = we(({ editor: a }, r) => {
|
|
527
|
+
const o = j(null);
|
|
528
|
+
return oe(() => {
|
|
529
|
+
const e = o.current;
|
|
530
|
+
if (!a || !e)
|
|
530
531
|
return;
|
|
531
|
-
const u =
|
|
532
|
+
const u = a.ui.view.toolbar.element;
|
|
532
533
|
return e.appendChild(u), () => {
|
|
533
534
|
e.contains(u) && e.removeChild(u);
|
|
534
535
|
};
|
|
535
|
-
}, [
|
|
536
|
+
}, [a && a.id]), /* @__PURE__ */ V.createElement("div", { ref: Se(o, r) });
|
|
536
537
|
});
|
|
537
|
-
|
|
538
|
-
const
|
|
539
|
-
open:
|
|
538
|
+
yt.displayName = "EditorToolbarWrapper";
|
|
539
|
+
const St = 5 * 1024 * 1024, Ft = ({
|
|
540
|
+
open: a,
|
|
540
541
|
handleClose: r,
|
|
541
|
-
handleClick:
|
|
542
|
+
handleClick: o,
|
|
542
543
|
type: e
|
|
543
544
|
}) => {
|
|
544
|
-
var
|
|
545
|
-
const u =
|
|
545
|
+
var fe, ge, Ne;
|
|
546
|
+
const u = qe(), C = u.palette.mode === "dark", N = j(null), I = j(!1), x = Ze(), [A, Y] = U([]), [q, Fe] = U([]), [J, ke] = U([]), { translate: c } = et(), [B, $e] = U([]), W = j(null), [Z, se] = U(!1), [ce, H] = U(""), ze = F.object().shape({
|
|
546
547
|
excetionTypes: F.string().test(
|
|
547
548
|
"is-required",
|
|
548
549
|
"Execution type is required",
|
|
@@ -603,145 +604,145 @@ const pt = ({
|
|
|
603
604
|
"is-required",
|
|
604
605
|
"Enter heading",
|
|
605
606
|
function(t) {
|
|
606
|
-
return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" &&
|
|
607
|
+
return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && ee ? !!t : !0;
|
|
607
608
|
}
|
|
608
609
|
),
|
|
609
610
|
template: F.string().test(
|
|
610
611
|
"is-required",
|
|
611
612
|
"Enter Template",
|
|
612
613
|
function(t) {
|
|
613
|
-
return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" &&
|
|
614
|
+
return (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && ee ? !!t : !0;
|
|
614
615
|
}
|
|
615
616
|
)
|
|
616
617
|
}), {
|
|
617
|
-
control:
|
|
618
|
-
handleSubmit:
|
|
619
|
-
reset:
|
|
620
|
-
setValue:
|
|
621
|
-
unregister:
|
|
622
|
-
getValues:
|
|
623
|
-
watch:
|
|
618
|
+
control: b,
|
|
619
|
+
handleSubmit: Me,
|
|
620
|
+
reset: Q,
|
|
621
|
+
setValue: v,
|
|
622
|
+
unregister: de,
|
|
623
|
+
getValues: ue,
|
|
624
|
+
watch: R,
|
|
624
625
|
formState: { errors: f }
|
|
625
|
-
} =
|
|
626
|
+
} = je({
|
|
626
627
|
defaultValues: {},
|
|
627
|
-
resolver:
|
|
628
|
+
resolver: Ye(ze),
|
|
628
629
|
mode: "onChange"
|
|
629
630
|
});
|
|
630
|
-
|
|
631
|
+
oe(() => {
|
|
631
632
|
var t;
|
|
632
|
-
e && (
|
|
633
|
-
var s, m,
|
|
634
|
-
if (n === "index" &&
|
|
635
|
-
const
|
|
636
|
-
(s = Object.keys(
|
|
637
|
-
|
|
633
|
+
e && (Le(), (t = Object.keys(e)) == null || t.forEach((n) => {
|
|
634
|
+
var s, m, g;
|
|
635
|
+
if (n === "index" && v(n, e[n]), n === "smsConfigJson" && e[n]) {
|
|
636
|
+
const E = e[n];
|
|
637
|
+
(s = Object.keys(E)) == null || s.forEach((z) => {
|
|
638
|
+
v(z, E[z]);
|
|
638
639
|
});
|
|
639
640
|
} else if (n === "pushNotificationConfigJson" && e[n]) {
|
|
640
|
-
const
|
|
641
|
-
(m = Object.keys(
|
|
642
|
-
|
|
641
|
+
const E = e[n];
|
|
642
|
+
(m = Object.keys(E)) == null || m.forEach((z) => {
|
|
643
|
+
v(z, E[z]);
|
|
643
644
|
});
|
|
644
645
|
} else if (n === "kafkaConfigJson" && e[n]) {
|
|
645
|
-
const
|
|
646
|
-
(
|
|
647
|
-
|
|
646
|
+
const E = e[n];
|
|
647
|
+
(g = Object.keys(E)) == null || g.forEach((z) => {
|
|
648
|
+
v(z, E[z]);
|
|
648
649
|
});
|
|
649
|
-
} else e[n] !== void 0 && e[n] !== null && (
|
|
650
|
-
}));
|
|
650
|
+
} else e[n] !== void 0 && e[n] !== null && (v(n, e[n]), n === "miniute" && v("minute", e[n]));
|
|
651
|
+
}), e != null && e.emailImageId && H(c("Attachment uploaded")));
|
|
651
652
|
}, [e]);
|
|
652
|
-
const k =
|
|
653
|
+
const k = R("queryMasterParamJson"), me = R("queryCode"), Pe = R("systemFunctionId"), $ = R("functionParams"), Ae = R("trigerWhen"), ee = R("notificationTypeId"), M = R("kafkaParameterJson"), he = R("formType"), Re = async (t) => {
|
|
653
654
|
var m;
|
|
654
|
-
k && k.forEach((
|
|
655
|
-
|
|
655
|
+
k && k.forEach((g, E) => {
|
|
656
|
+
v(`${g.parameterName}${E}`, ""), v(`${g.parameterName}${E}isFixed`, !1);
|
|
656
657
|
});
|
|
657
658
|
let n = [];
|
|
658
|
-
const s =
|
|
659
|
+
const s = A == null ? void 0 : A.find((g) => (g == null ? void 0 : g.code) === t);
|
|
659
660
|
if (s) {
|
|
660
|
-
const
|
|
661
|
-
Array.from(new Set(
|
|
662
|
-
n.push({ parameterName:
|
|
661
|
+
const g = (m = s == null ? void 0 : s.params) == null ? void 0 : m.split(",");
|
|
662
|
+
Array.from(new Set(g)).forEach((z) => {
|
|
663
|
+
n.push({ parameterName: z });
|
|
663
664
|
});
|
|
664
665
|
}
|
|
665
|
-
|
|
666
|
-
},
|
|
667
|
-
$ && $.forEach((m,
|
|
668
|
-
|
|
666
|
+
v("queryMasterParamJson", n);
|
|
667
|
+
}, Ve = (t) => {
|
|
668
|
+
$ && $.forEach((m, g) => {
|
|
669
|
+
v(`${m.parameterName}${g}`, ""), v(`${m.parameterName}${g}isFixed`, !1);
|
|
669
670
|
});
|
|
670
671
|
let n = [];
|
|
671
|
-
const s =
|
|
672
|
-
s && Array.from(new Set(s.parameters)).forEach((
|
|
673
|
-
n.push(
|
|
674
|
-
}),
|
|
675
|
-
},
|
|
676
|
-
const n =
|
|
672
|
+
const s = q.find((m) => m.id === t);
|
|
673
|
+
s && Array.from(new Set(s.parameters)).forEach((g) => {
|
|
674
|
+
n.push(g);
|
|
675
|
+
}), v("functionParams", n);
|
|
676
|
+
}, Oe = (t) => {
|
|
677
|
+
const n = B.find(
|
|
677
678
|
(s) => s.id === t
|
|
678
679
|
);
|
|
679
|
-
n && (
|
|
680
|
-
},
|
|
680
|
+
n && (v("notificationType", n), v("template", n.message), v("heading", n.heading));
|
|
681
|
+
}, O = (t, n, s) => {
|
|
681
682
|
if ((e == null ? void 0 : e.type) === "QUERY") {
|
|
682
683
|
const m = [...k];
|
|
683
|
-
m[t][n] = s,
|
|
684
|
+
m[t][n] = s, v("queryMasterParamJson", m);
|
|
684
685
|
}
|
|
685
686
|
if ((e == null ? void 0 : e.type) === "SYSTEM_FUNCTION") {
|
|
686
687
|
const m = [...$];
|
|
687
|
-
m[t][n] = s,
|
|
688
|
+
m[t][n] = s, v("functionParams", m);
|
|
688
689
|
}
|
|
689
690
|
if ((e == null ? void 0 : e.type) === "KAFKA_SYNC") {
|
|
690
|
-
const m = [...
|
|
691
|
-
m[t][n] = s,
|
|
691
|
+
const m = [...M];
|
|
692
|
+
m[t][n] = s, v("kafkaParameterJson", m);
|
|
692
693
|
}
|
|
693
|
-
},
|
|
694
|
-
const n =
|
|
695
|
-
n && Array.isArray(n) && (n.forEach((m,
|
|
696
|
-
|
|
697
|
-
}),
|
|
698
|
-
const s =
|
|
694
|
+
}, Ue = (t) => {
|
|
695
|
+
const n = ue("kafkaParameterJson");
|
|
696
|
+
n && Array.isArray(n) && (n.forEach((m, g) => {
|
|
697
|
+
de(`${m.parameterName}${g}`), de(`${m.parameterName}${g}isFixed`);
|
|
698
|
+
}), v("kafkaParameterJson", [], { shouldValidate: !0 }));
|
|
699
|
+
const s = J.find(
|
|
699
700
|
(m) => m.form_type === t
|
|
700
701
|
);
|
|
701
702
|
if (s && s.param_types) {
|
|
702
|
-
const m = JSON.parse(s.param_types),
|
|
703
|
-
parameterName:
|
|
703
|
+
const m = JSON.parse(s.param_types), g = Object.keys(m).map((E) => ({
|
|
704
|
+
parameterName: E,
|
|
704
705
|
mappingValue: "",
|
|
705
706
|
isFixed: !1
|
|
706
707
|
}));
|
|
707
|
-
|
|
708
|
+
v("kafkaParameterJson", g, { shouldValidate: !0 });
|
|
708
709
|
} else
|
|
709
|
-
|
|
710
|
-
},
|
|
710
|
+
v("kafkaParameterJson", [], { shouldValidate: !0 });
|
|
711
|
+
}, Le = async () => {
|
|
711
712
|
var t, n;
|
|
712
713
|
try {
|
|
713
714
|
if ((e == null ? void 0 : e.type) === "QUERY") {
|
|
714
|
-
const s = await
|
|
715
|
-
|
|
715
|
+
const s = await Qe(!0);
|
|
716
|
+
Y(s == null ? void 0 : s.data);
|
|
716
717
|
}
|
|
717
718
|
if ((e == null ? void 0 : e.type) === "SYSTEM_FUNCTION") {
|
|
718
|
-
const m = await
|
|
719
|
+
const m = await ve({
|
|
719
720
|
code: "system_function_retrieve_all",
|
|
720
721
|
parameters: {}
|
|
721
|
-
}),
|
|
722
|
-
|
|
722
|
+
}), g = (t = m == null ? void 0 : m.data) == null ? void 0 : t.result.map((E) => (E.parameters = JSON.parse(E.parameters), E));
|
|
723
|
+
Fe(g);
|
|
723
724
|
}
|
|
724
725
|
if ((e == null ? void 0 : e.type) === "PUSH_NOTIFICATION") {
|
|
725
|
-
const s = await
|
|
726
|
-
|
|
726
|
+
const s = await Xe();
|
|
727
|
+
$e(s == null ? void 0 : s.data);
|
|
727
728
|
}
|
|
728
729
|
if ((e == null ? void 0 : e.type) === "KAFKA_SYNC") {
|
|
729
|
-
const s = await
|
|
730
|
+
const s = await ve({
|
|
730
731
|
code: "retrieve_all_kafka_configs",
|
|
731
732
|
parameters: {}
|
|
732
733
|
});
|
|
733
|
-
|
|
734
|
+
ke(((n = s == null ? void 0 : s.data) == null ? void 0 : n.result) || []);
|
|
734
735
|
}
|
|
735
736
|
} catch {
|
|
736
|
-
|
|
737
|
+
re({ message: "Error in loading", type: "error" });
|
|
737
738
|
}
|
|
738
|
-
},
|
|
739
|
-
|
|
740
|
-
form:
|
|
739
|
+
}, X = () => {
|
|
740
|
+
x("conversion_event", {
|
|
741
|
+
form: N.current,
|
|
741
742
|
form_name: "Add Other Type Configuration",
|
|
742
|
-
submit:
|
|
743
|
+
submit: I.current
|
|
743
744
|
}), r();
|
|
744
|
-
},
|
|
745
|
+
}, We = (t) => {
|
|
745
746
|
t = JSON.parse(JSON.stringify(t)), t.minute = Number(t.minute || 0), t.miniute = Number(t.minute || 0), t.type = e == null ? void 0 : e.type, e.type === "SMS" && (t.smsConfigJson = {
|
|
746
747
|
mobileNumberFieldName: t.mobileNumberFieldName,
|
|
747
748
|
isPriority: t.isPriority,
|
|
@@ -759,25 +760,25 @@ const pt = ({
|
|
|
759
760
|
delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
|
|
760
761
|
}), $ == null || $.forEach((n, s) => {
|
|
761
762
|
delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
|
|
762
|
-
}),
|
|
763
|
+
}), M == null || M.forEach((n, s) => {
|
|
763
764
|
delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
|
|
764
|
-
}),
|
|
765
|
+
}), o(t), I.current = !0, X(), H(""), Q();
|
|
765
766
|
};
|
|
766
767
|
return /* @__PURE__ */ i(
|
|
767
|
-
|
|
768
|
+
Je,
|
|
768
769
|
{
|
|
769
770
|
"data-testid": "othertypeeventconfigmodal-modal",
|
|
770
|
-
open:
|
|
771
|
+
open: a,
|
|
771
772
|
className: "flex items-center justify-center",
|
|
772
773
|
onClose: () => {
|
|
773
|
-
|
|
774
|
+
X(), Q();
|
|
774
775
|
},
|
|
775
776
|
sx: {
|
|
776
777
|
"& .MuiBackdrop-root": {
|
|
777
778
|
backgroundColor: "rgba(0, 0, 0, 0.1)"
|
|
778
779
|
}
|
|
779
780
|
},
|
|
780
|
-
children: /* @__PURE__ */
|
|
781
|
+
children: /* @__PURE__ */ l(
|
|
781
782
|
d,
|
|
782
783
|
{
|
|
783
784
|
container: !0,
|
|
@@ -796,13 +797,13 @@ const pt = ({
|
|
|
796
797
|
// Keeps children inside the rounded corners
|
|
797
798
|
},
|
|
798
799
|
children: [
|
|
799
|
-
/* @__PURE__ */
|
|
800
|
+
/* @__PURE__ */ l(
|
|
800
801
|
d,
|
|
801
802
|
{
|
|
802
803
|
className: "manageeventconfiguration-modal-header p-2.5 px-5 flex border-b",
|
|
803
804
|
"data-testid": "othertypeeventconfigmodal-modal-header",
|
|
804
805
|
children: [
|
|
805
|
-
/* @__PURE__ */
|
|
806
|
+
/* @__PURE__ */ l(
|
|
806
807
|
h,
|
|
807
808
|
{
|
|
808
809
|
variant: "body1",
|
|
@@ -817,34 +818,34 @@ const pt = ({
|
|
|
817
818
|
}
|
|
818
819
|
),
|
|
819
820
|
/* @__PURE__ */ i(
|
|
820
|
-
|
|
821
|
+
pe,
|
|
821
822
|
{
|
|
822
823
|
size: "small",
|
|
823
824
|
onClick: () => {
|
|
824
|
-
|
|
825
|
+
X(), Q();
|
|
825
826
|
},
|
|
826
827
|
"data-testid": "othertypeeventconfigmodal-close-button",
|
|
827
|
-
children: /* @__PURE__ */ i(
|
|
828
|
+
children: /* @__PURE__ */ i(ae, { icon: tt })
|
|
828
829
|
}
|
|
829
830
|
)
|
|
830
831
|
]
|
|
831
832
|
}
|
|
832
833
|
),
|
|
833
|
-
/* @__PURE__ */
|
|
834
|
+
/* @__PURE__ */ l(
|
|
834
835
|
"form",
|
|
835
836
|
{
|
|
836
|
-
onSubmit:
|
|
837
|
-
ref:
|
|
837
|
+
onSubmit: Me(We),
|
|
838
|
+
ref: N,
|
|
838
839
|
"data-testid": "othertypeeventconfigmodal-form",
|
|
839
840
|
children: [
|
|
840
|
-
/* @__PURE__ */
|
|
841
|
+
/* @__PURE__ */ l(d, { container: !0, className: " max-h-[60vh] overflow-y-auto w-full", children: [
|
|
841
842
|
/* @__PURE__ */ i(
|
|
842
843
|
d,
|
|
843
844
|
{
|
|
844
845
|
item: !0,
|
|
845
846
|
className: "border-b border-gray-300 p-2.5 flex flex-col items-start",
|
|
846
847
|
size: { xs: 12 },
|
|
847
|
-
children: /* @__PURE__ */ i(
|
|
848
|
+
children: /* @__PURE__ */ i(w, { className: "whitespace-normal w-full break-all p-2.5 flex flex-col items-start", children: /* @__PURE__ */ l(h, { variant: "body2", className: "font-bold", children: [
|
|
848
849
|
c("Available Implicit Parameters"),
|
|
849
850
|
":",
|
|
850
851
|
" ",
|
|
@@ -853,30 +854,30 @@ const pt = ({
|
|
|
853
854
|
] }) })
|
|
854
855
|
}
|
|
855
856
|
),
|
|
856
|
-
/* @__PURE__ */
|
|
857
|
-
(e == null ? void 0 : e.type) === "EXCEPTION" && /* @__PURE__ */
|
|
858
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
859
|
-
|
|
857
|
+
/* @__PURE__ */ l(d, { item: !0, className: "p-2.5 w-full", children: [
|
|
858
|
+
(e == null ? void 0 : e.type) === "EXCEPTION" && /* @__PURE__ */ l(d, { container: !0, spacing: 2, children: [
|
|
859
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
860
|
+
p,
|
|
860
861
|
{
|
|
861
862
|
variant: "outlined",
|
|
862
863
|
className: " w-full",
|
|
863
864
|
"data-testid": "othertypeeventconfigmodal-exceptionType",
|
|
864
865
|
children: [
|
|
865
|
-
/* @__PURE__ */
|
|
866
|
+
/* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
866
867
|
c("Exception"),
|
|
867
868
|
" ",
|
|
868
869
|
c("Type"),
|
|
869
870
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
870
871
|
] }),
|
|
871
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ l(w, { className: " w-full", children: [
|
|
872
873
|
/* @__PURE__ */ i(
|
|
873
874
|
y,
|
|
874
875
|
{
|
|
875
876
|
name: "excetionTypes",
|
|
876
|
-
control:
|
|
877
|
+
control: b,
|
|
877
878
|
defaultValue: "",
|
|
878
879
|
className: " w-full",
|
|
879
|
-
render: ({ field: t }) => /* @__PURE__ */
|
|
880
|
+
render: ({ field: t }) => /* @__PURE__ */ l(
|
|
880
881
|
L,
|
|
881
882
|
{
|
|
882
883
|
className: " w-full",
|
|
@@ -885,13 +886,13 @@ const pt = ({
|
|
|
885
886
|
size: "small",
|
|
886
887
|
"data-testid": "othertypeeventconfigmodal-excetionTypes-select",
|
|
887
888
|
children: [
|
|
888
|
-
/* @__PURE__ */ i(
|
|
889
|
-
/* @__PURE__ */ i(
|
|
890
|
-
/* @__PURE__ */ i(
|
|
889
|
+
/* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
|
|
890
|
+
/* @__PURE__ */ i(_, { value: "ImtechoUserException", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Imtecho User Exception") }) }),
|
|
891
|
+
/* @__PURE__ */ i(_, { value: "ImtechoSystemException", children: /* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
891
892
|
" ",
|
|
892
893
|
c("Imtecho System Exception")
|
|
893
894
|
] }) }),
|
|
894
|
-
/* @__PURE__ */ i(
|
|
895
|
+
/* @__PURE__ */ i(_, { value: "ImtechoMobileException", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Imtecho Mobile Exception") }) })
|
|
895
896
|
]
|
|
896
897
|
}
|
|
897
898
|
)
|
|
@@ -902,27 +903,27 @@ const pt = ({
|
|
|
902
903
|
{
|
|
903
904
|
className: "error-helper",
|
|
904
905
|
"data-testid": "custom-error-message",
|
|
905
|
-
children: (
|
|
906
|
+
children: (fe = f == null ? void 0 : f.excetionTypes) == null ? void 0 : fe.message
|
|
906
907
|
}
|
|
907
908
|
)
|
|
908
909
|
] })
|
|
909
910
|
]
|
|
910
911
|
}
|
|
911
912
|
) }),
|
|
912
|
-
/* @__PURE__ */
|
|
913
|
+
/* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
|
|
913
914
|
" ",
|
|
914
|
-
/* @__PURE__ */
|
|
915
|
-
|
|
915
|
+
/* @__PURE__ */ l(
|
|
916
|
+
p,
|
|
916
917
|
{
|
|
917
918
|
variant: "outlined",
|
|
918
919
|
className: " w-full",
|
|
919
920
|
"data-testid": "othertypeeventconfigmodal-exceptionMessage",
|
|
920
921
|
children: [
|
|
921
922
|
/* @__PURE__ */ i(h, { variant: "body2", children: c("Message") }),
|
|
922
|
-
/* @__PURE__ */ i(
|
|
923
|
-
|
|
923
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
924
|
+
ne,
|
|
924
925
|
{
|
|
925
|
-
control:
|
|
926
|
+
control: b,
|
|
926
927
|
id: "exceptionMessage",
|
|
927
928
|
name: "exceptionMessage",
|
|
928
929
|
errors: f,
|
|
@@ -936,15 +937,15 @@ const pt = ({
|
|
|
936
937
|
)
|
|
937
938
|
] })
|
|
938
939
|
] }),
|
|
939
|
-
(e == null ? void 0 : e.type) === "SMS" && /* @__PURE__ */
|
|
940
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
941
|
-
|
|
940
|
+
(e == null ? void 0 : e.type) === "SMS" && /* @__PURE__ */ l(d, { container: !0, spacing: 2, children: [
|
|
941
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
942
|
+
p,
|
|
942
943
|
{
|
|
943
944
|
variant: "outlined",
|
|
944
945
|
className: " w-full",
|
|
945
946
|
"data-testid": "othertypeeventconfigmodal-mobileNumberFieldName",
|
|
946
947
|
children: [
|
|
947
|
-
/* @__PURE__ */
|
|
948
|
+
/* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
948
949
|
c("SMS"),
|
|
949
950
|
" ",
|
|
950
951
|
c("Phone number"),
|
|
@@ -954,10 +955,10 @@ const pt = ({
|
|
|
954
955
|
c("Name"),
|
|
955
956
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
956
957
|
] }),
|
|
957
|
-
/* @__PURE__ */ i(
|
|
958
|
-
|
|
958
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
959
|
+
P,
|
|
959
960
|
{
|
|
960
|
-
control:
|
|
961
|
+
control: b,
|
|
961
962
|
id: "mobileNumberFieldName",
|
|
962
963
|
name: "mobileNumberFieldName",
|
|
963
964
|
errors: f,
|
|
@@ -969,21 +970,21 @@ const pt = ({
|
|
|
969
970
|
]
|
|
970
971
|
}
|
|
971
972
|
) }),
|
|
972
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
973
|
-
|
|
973
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
974
|
+
p,
|
|
974
975
|
{
|
|
975
976
|
variant: "outlined",
|
|
976
977
|
className: " w-full",
|
|
977
978
|
"data-testid": "othertypeeventconfigmodal-smsTypeField",
|
|
978
979
|
children: [
|
|
979
|
-
/* @__PURE__ */
|
|
980
|
+
/* @__PURE__ */ l(
|
|
980
981
|
d,
|
|
981
982
|
{
|
|
982
983
|
container: !0,
|
|
983
984
|
justifyContent: "space-between",
|
|
984
985
|
alignItems: "center",
|
|
985
986
|
children: [
|
|
986
|
-
/* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */
|
|
987
|
+
/* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
987
988
|
c("SMS"),
|
|
988
989
|
" ",
|
|
989
990
|
c("Type"),
|
|
@@ -993,19 +994,19 @@ const pt = ({
|
|
|
993
994
|
c("Value"),
|
|
994
995
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
995
996
|
] }) }),
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
+
/* @__PURE__ */ l(d, { container: !0, children: [
|
|
997
998
|
" ",
|
|
998
|
-
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
|
|
999
|
+
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(p, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
|
|
999
1000
|
y,
|
|
1000
1001
|
{
|
|
1001
|
-
control:
|
|
1002
|
+
control: b,
|
|
1002
1003
|
name: "isPriority",
|
|
1003
1004
|
defaultValue: !1,
|
|
1004
1005
|
render: ({ field: t }) => /* @__PURE__ */ i(
|
|
1005
|
-
|
|
1006
|
+
D,
|
|
1006
1007
|
{
|
|
1007
1008
|
control: /* @__PURE__ */ i(
|
|
1008
|
-
|
|
1009
|
+
K,
|
|
1009
1010
|
{
|
|
1010
1011
|
checked: t.value,
|
|
1011
1012
|
onChange: (n) => t.onChange(n.target.checked),
|
|
@@ -1017,17 +1018,17 @@ const pt = ({
|
|
|
1017
1018
|
)
|
|
1018
1019
|
}
|
|
1019
1020
|
) }) }),
|
|
1020
|
-
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
|
|
1021
|
+
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(p, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
|
|
1021
1022
|
y,
|
|
1022
1023
|
{
|
|
1023
|
-
control:
|
|
1024
|
+
control: b,
|
|
1024
1025
|
name: "isSmsTypeFixed",
|
|
1025
1026
|
defaultValue: !1,
|
|
1026
1027
|
render: ({ field: t }) => /* @__PURE__ */ i(
|
|
1027
|
-
|
|
1028
|
+
D,
|
|
1028
1029
|
{
|
|
1029
1030
|
control: /* @__PURE__ */ i(
|
|
1030
|
-
|
|
1031
|
+
K,
|
|
1031
1032
|
{
|
|
1032
1033
|
checked: t.value,
|
|
1033
1034
|
onChange: (n) => t.onChange(n.target.checked),
|
|
@@ -1043,10 +1044,10 @@ const pt = ({
|
|
|
1043
1044
|
]
|
|
1044
1045
|
}
|
|
1045
1046
|
),
|
|
1046
|
-
/* @__PURE__ */ i(
|
|
1047
|
-
|
|
1047
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1048
|
+
P,
|
|
1048
1049
|
{
|
|
1049
|
-
control:
|
|
1050
|
+
control: b,
|
|
1050
1051
|
id: "smsTypeField",
|
|
1051
1052
|
name: "smsTypeField",
|
|
1052
1053
|
errors: f,
|
|
@@ -1059,15 +1060,15 @@ const pt = ({
|
|
|
1059
1060
|
}
|
|
1060
1061
|
) })
|
|
1061
1062
|
] }),
|
|
1062
|
-
(e == null ? void 0 : e.type) === "EMAIL" && /* @__PURE__ */
|
|
1063
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
1064
|
-
|
|
1063
|
+
(e == null ? void 0 : e.type) === "EMAIL" && /* @__PURE__ */ l(d, { container: !0, spacing: 2, className: " w-full", children: [
|
|
1064
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
1065
|
+
p,
|
|
1065
1066
|
{
|
|
1066
1067
|
variant: "outlined",
|
|
1067
1068
|
className: " w-full",
|
|
1068
1069
|
"data-testid": "othertypeeventconfigmodal-emailIdField",
|
|
1069
1070
|
children: [
|
|
1070
|
-
/* @__PURE__ */
|
|
1071
|
+
/* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1071
1072
|
c("Email"),
|
|
1072
1073
|
" ",
|
|
1073
1074
|
c("Id"),
|
|
@@ -1077,10 +1078,10 @@ const pt = ({
|
|
|
1077
1078
|
c("Value"),
|
|
1078
1079
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
1079
1080
|
] }),
|
|
1080
|
-
/* @__PURE__ */ i(
|
|
1081
|
-
|
|
1081
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1082
|
+
P,
|
|
1082
1083
|
{
|
|
1083
|
-
control:
|
|
1084
|
+
control: b,
|
|
1084
1085
|
id: "baseDateFieldName",
|
|
1085
1086
|
name: "baseDateFieldName",
|
|
1086
1087
|
errors: f,
|
|
@@ -1092,23 +1093,23 @@ const pt = ({
|
|
|
1092
1093
|
]
|
|
1093
1094
|
}
|
|
1094
1095
|
) }),
|
|
1095
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
1096
|
-
|
|
1096
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
1097
|
+
p,
|
|
1097
1098
|
{
|
|
1098
1099
|
variant: "outlined",
|
|
1099
1100
|
className: " w-full",
|
|
1100
1101
|
"data-testid": "othertypeeventconfigmodal-emailSubjectField",
|
|
1101
1102
|
children: [
|
|
1102
|
-
/* @__PURE__ */
|
|
1103
|
+
/* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1103
1104
|
c("Email"),
|
|
1104
1105
|
" ",
|
|
1105
1106
|
c("Subject"),
|
|
1106
1107
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
1107
1108
|
] }),
|
|
1108
|
-
/* @__PURE__ */ i(
|
|
1109
|
-
|
|
1109
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1110
|
+
P,
|
|
1110
1111
|
{
|
|
1111
|
-
control:
|
|
1112
|
+
control: b,
|
|
1112
1113
|
id: "emailSubject",
|
|
1113
1114
|
name: "emailSubject",
|
|
1114
1115
|
errors: f,
|
|
@@ -1120,8 +1121,86 @@ const pt = ({
|
|
|
1120
1121
|
]
|
|
1121
1122
|
}
|
|
1122
1123
|
) }),
|
|
1123
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
1124
|
-
|
|
1124
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
1125
|
+
p,
|
|
1126
|
+
{
|
|
1127
|
+
variant: "outlined",
|
|
1128
|
+
className: " w-full",
|
|
1129
|
+
"data-testid": "othertypeeventconfigmodal-emailImage",
|
|
1130
|
+
children: [
|
|
1131
|
+
/* @__PURE__ */ l(h, { variant: "body2", className: "mb-1", children: [
|
|
1132
|
+
c("Email Attachment"),
|
|
1133
|
+
" (",
|
|
1134
|
+
c("Image or PDF, max 5MB"),
|
|
1135
|
+
")"
|
|
1136
|
+
] }),
|
|
1137
|
+
/* @__PURE__ */ l(w, { className: "flex items-center gap-3 flex-wrap", children: [
|
|
1138
|
+
/* @__PURE__ */ l(
|
|
1139
|
+
te,
|
|
1140
|
+
{
|
|
1141
|
+
component: "label",
|
|
1142
|
+
variant: "outlined",
|
|
1143
|
+
size: "small",
|
|
1144
|
+
startIcon: Z ? /* @__PURE__ */ i(Be, { size: 14 }) : /* @__PURE__ */ i(ae, { icon: it }),
|
|
1145
|
+
disabled: Z,
|
|
1146
|
+
"data-testid": "othertypeeventconfigmodal-emailImage-upload-button",
|
|
1147
|
+
children: [
|
|
1148
|
+
c(Z ? "Uploading..." : "Upload Attachment"),
|
|
1149
|
+
/* @__PURE__ */ i(
|
|
1150
|
+
"input",
|
|
1151
|
+
{
|
|
1152
|
+
ref: W,
|
|
1153
|
+
type: "file",
|
|
1154
|
+
hidden: !0,
|
|
1155
|
+
accept: "image/jpeg,image/png,image/gif,image/webp,application/pdf",
|
|
1156
|
+
onChange: async (t) => {
|
|
1157
|
+
var s, m;
|
|
1158
|
+
const n = (s = t.target.files) == null ? void 0 : s[0];
|
|
1159
|
+
if (n) {
|
|
1160
|
+
if (n.size > St) {
|
|
1161
|
+
re({
|
|
1162
|
+
message: c("File size must not exceed 5MB"),
|
|
1163
|
+
type: "error"
|
|
1164
|
+
}), W.current && (W.current.value = "");
|
|
1165
|
+
return;
|
|
1166
|
+
}
|
|
1167
|
+
try {
|
|
1168
|
+
se(!0);
|
|
1169
|
+
const { data: g } = await Ge(n, "EVENTS");
|
|
1170
|
+
v("emailImageId", g.id), H(g.actualFileName || g.fileName || n.name), W.current && (W.current.value = "");
|
|
1171
|
+
} catch (g) {
|
|
1172
|
+
console.error("Error uploading email attachment", ((m = g == null ? void 0 : g.response) == null ? void 0 : m.data) || g), re({ message: "Error uploading attachment", type: "error" });
|
|
1173
|
+
} finally {
|
|
1174
|
+
se(!1);
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
}
|
|
1178
|
+
}
|
|
1179
|
+
)
|
|
1180
|
+
]
|
|
1181
|
+
}
|
|
1182
|
+
),
|
|
1183
|
+
ce && /* @__PURE__ */ l(w, { className: "flex items-center gap-2", children: [
|
|
1184
|
+
/* @__PURE__ */ i(h, { variant: "caption", color: "text.secondary", children: ce }),
|
|
1185
|
+
/* @__PURE__ */ i(
|
|
1186
|
+
pe,
|
|
1187
|
+
{
|
|
1188
|
+
size: "small",
|
|
1189
|
+
color: "error",
|
|
1190
|
+
onClick: () => {
|
|
1191
|
+
v("emailImageId", null), H("");
|
|
1192
|
+
},
|
|
1193
|
+
"data-testid": "othertypeeventconfigmodal-emailImage-remove-button",
|
|
1194
|
+
children: /* @__PURE__ */ i(ae, { icon: nt, className: "text-[14px]" })
|
|
1195
|
+
}
|
|
1196
|
+
)
|
|
1197
|
+
] })
|
|
1198
|
+
] })
|
|
1199
|
+
]
|
|
1200
|
+
}
|
|
1201
|
+
) }),
|
|
1202
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
1203
|
+
p,
|
|
1125
1204
|
{
|
|
1126
1205
|
variant: "outlined",
|
|
1127
1206
|
className: " w-[95%] md:w-full overflow-auto",
|
|
@@ -1129,7 +1208,18 @@ const pt = ({
|
|
|
1129
1208
|
children: [
|
|
1130
1209
|
/* @__PURE__ */ i(h, { variant: "body2", children: c("Template") }),
|
|
1131
1210
|
/* @__PURE__ */ i(
|
|
1132
|
-
|
|
1211
|
+
h,
|
|
1212
|
+
{
|
|
1213
|
+
variant: "caption",
|
|
1214
|
+
color: "text.secondary",
|
|
1215
|
+
className: "mb-1",
|
|
1216
|
+
children: c(
|
|
1217
|
+
"Use the </> Source button in the toolbar to view or edit the raw HTML of this email"
|
|
1218
|
+
)
|
|
1219
|
+
}
|
|
1220
|
+
),
|
|
1221
|
+
/* @__PURE__ */ i(
|
|
1222
|
+
w,
|
|
1133
1223
|
{
|
|
1134
1224
|
className: " w-full",
|
|
1135
1225
|
sx: {
|
|
@@ -1147,7 +1237,7 @@ const pt = ({
|
|
|
1147
1237
|
},
|
|
1148
1238
|
// This targets the toolbar
|
|
1149
1239
|
"& .ck.ck-toolbar": {
|
|
1150
|
-
backgroundColor:
|
|
1240
|
+
backgroundColor: C ? "#21262D !important" : "var(--color-gray4) !important",
|
|
1151
1241
|
borderColor: `${u.palette.divider} !important`
|
|
1152
1242
|
},
|
|
1153
1243
|
// This targets the buttons/icons inside the toolbar
|
|
@@ -1155,10 +1245,10 @@ const pt = ({
|
|
|
1155
1245
|
color: `${u.palette.text.primary} !important`,
|
|
1156
1246
|
cursor: "pointer",
|
|
1157
1247
|
"&:hover": {
|
|
1158
|
-
backgroundColor:
|
|
1248
|
+
backgroundColor: C ? "#30363D !important" : "var(--color-gray3) !important"
|
|
1159
1249
|
},
|
|
1160
1250
|
"&.ck-on": {
|
|
1161
|
-
backgroundColor:
|
|
1251
|
+
backgroundColor: C ? "#11B66633 !important" : "var(--color-gray3) !important",
|
|
1162
1252
|
color: `${u.palette.primary.main} !important`
|
|
1163
1253
|
}
|
|
1164
1254
|
},
|
|
@@ -1168,10 +1258,10 @@ const pt = ({
|
|
|
1168
1258
|
}
|
|
1169
1259
|
},
|
|
1170
1260
|
children: /* @__PURE__ */ i(
|
|
1171
|
-
|
|
1261
|
+
ye,
|
|
1172
1262
|
{
|
|
1173
|
-
editor:
|
|
1174
|
-
data:
|
|
1263
|
+
editor: rt,
|
|
1264
|
+
data: ue("template") || "",
|
|
1175
1265
|
config: {
|
|
1176
1266
|
toolbar: [
|
|
1177
1267
|
"heading",
|
|
@@ -1191,12 +1281,14 @@ const pt = ({
|
|
|
1191
1281
|
"blockQuote",
|
|
1192
1282
|
"|",
|
|
1193
1283
|
"undo",
|
|
1194
|
-
"redo"
|
|
1284
|
+
"redo",
|
|
1285
|
+
"|",
|
|
1286
|
+
"sourceEditing"
|
|
1195
1287
|
]
|
|
1196
1288
|
},
|
|
1197
1289
|
onChange: (t, n) => {
|
|
1198
1290
|
const s = n.getData();
|
|
1199
|
-
|
|
1291
|
+
v("template", s);
|
|
1200
1292
|
},
|
|
1201
1293
|
"data-testid": "othertypeeventconfigmodal-template-ckeditor"
|
|
1202
1294
|
}
|
|
@@ -1207,22 +1299,22 @@ const pt = ({
|
|
|
1207
1299
|
}
|
|
1208
1300
|
) })
|
|
1209
1301
|
] }),
|
|
1210
|
-
(e == null ? void 0 : e.type) === "QUERY" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
1211
|
-
|
|
1302
|
+
(e == null ? void 0 : e.type) === "QUERY" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
1303
|
+
p,
|
|
1212
1304
|
{
|
|
1213
1305
|
variant: "outlined",
|
|
1214
1306
|
className: " w-full",
|
|
1215
1307
|
"data-testid": "othertypeeventconfigmodal-querySelect",
|
|
1216
1308
|
children: [
|
|
1217
1309
|
/* @__PURE__ */ i(h, { variant: "body2", children: c("Query") }),
|
|
1218
|
-
/* @__PURE__ */ i(
|
|
1310
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1219
1311
|
y,
|
|
1220
1312
|
{
|
|
1221
1313
|
className: " w-full",
|
|
1222
1314
|
name: "queryCode",
|
|
1223
|
-
control:
|
|
1315
|
+
control: b,
|
|
1224
1316
|
defaultValue: null,
|
|
1225
|
-
render: ({ field: t }) => /* @__PURE__ */
|
|
1317
|
+
render: ({ field: t }) => /* @__PURE__ */ l(
|
|
1226
1318
|
L,
|
|
1227
1319
|
{
|
|
1228
1320
|
...t,
|
|
@@ -1230,12 +1322,12 @@ const pt = ({
|
|
|
1230
1322
|
size: "small",
|
|
1231
1323
|
displayEmpty: !0,
|
|
1232
1324
|
onChange: (n) => {
|
|
1233
|
-
t.onChange(n),
|
|
1325
|
+
t.onChange(n), Re(n.target.value);
|
|
1234
1326
|
},
|
|
1235
1327
|
"data-testid": "othertypeeventconfigmodal-queryCode-select",
|
|
1236
1328
|
children: [
|
|
1237
|
-
/* @__PURE__ */ i(
|
|
1238
|
-
|
|
1329
|
+
/* @__PURE__ */ i(_, { value: null, children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
|
|
1330
|
+
A == null ? void 0 : A.map((n, s) => /* @__PURE__ */ i(_, { value: n == null ? void 0 : n.code, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1239
1331
|
" ",
|
|
1240
1332
|
n == null ? void 0 : n.code
|
|
1241
1333
|
] }) }, s + 1))
|
|
@@ -1247,40 +1339,40 @@ const pt = ({
|
|
|
1247
1339
|
]
|
|
1248
1340
|
}
|
|
1249
1341
|
) }) }),
|
|
1250
|
-
k && (e == null ? void 0 : e.type) === "QUERY" &&
|
|
1342
|
+
k && (e == null ? void 0 : e.type) === "QUERY" && me && /* @__PURE__ */ i(d, { container: !0, className: " w-full", children: k == null ? void 0 : k.map((t, n) => /* @__PURE__ */ i(
|
|
1251
1343
|
d,
|
|
1252
1344
|
{
|
|
1253
1345
|
item: !0,
|
|
1254
1346
|
size: { xs: 12 },
|
|
1255
1347
|
className: " w-full",
|
|
1256
|
-
children: /* @__PURE__ */
|
|
1257
|
-
/* @__PURE__ */
|
|
1348
|
+
children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
|
|
1349
|
+
/* @__PURE__ */ l(
|
|
1258
1350
|
d,
|
|
1259
1351
|
{
|
|
1260
1352
|
container: !0,
|
|
1261
1353
|
justifyContent: "space-between",
|
|
1262
1354
|
alignItems: "center",
|
|
1263
1355
|
children: [
|
|
1264
|
-
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */
|
|
1356
|
+
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ l(h, { variant: "body1", children: [
|
|
1265
1357
|
t == null ? void 0 : t.parameterName,
|
|
1266
1358
|
" ",
|
|
1267
1359
|
c("Mapping")
|
|
1268
1360
|
] }) }),
|
|
1269
|
-
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
|
|
1361
|
+
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(p, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
|
|
1270
1362
|
y,
|
|
1271
1363
|
{
|
|
1272
|
-
control:
|
|
1364
|
+
control: b,
|
|
1273
1365
|
name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
|
|
1274
1366
|
defaultValue: (t == null ? void 0 : t.isFixed) || !1,
|
|
1275
1367
|
render: ({ field: s }) => /* @__PURE__ */ i(
|
|
1276
|
-
|
|
1368
|
+
D,
|
|
1277
1369
|
{
|
|
1278
1370
|
control: /* @__PURE__ */ i(
|
|
1279
|
-
|
|
1371
|
+
K,
|
|
1280
1372
|
{
|
|
1281
1373
|
checked: s.value,
|
|
1282
1374
|
onChange: (m) => {
|
|
1283
|
-
s.onChange(m.target.checked),
|
|
1375
|
+
s.onChange(m.target.checked), O(
|
|
1284
1376
|
n,
|
|
1285
1377
|
"isFixed",
|
|
1286
1378
|
m.target.checked
|
|
@@ -1297,15 +1389,15 @@ const pt = ({
|
|
|
1297
1389
|
]
|
|
1298
1390
|
}
|
|
1299
1391
|
),
|
|
1300
|
-
/* @__PURE__ */ i(
|
|
1392
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1301
1393
|
y,
|
|
1302
1394
|
{
|
|
1303
|
-
control:
|
|
1395
|
+
control: b,
|
|
1304
1396
|
className: " w-full",
|
|
1305
1397
|
name: `${t == null ? void 0 : t.parameterName}${n}`,
|
|
1306
1398
|
defaultValue: t == null ? void 0 : t.mappingValue,
|
|
1307
1399
|
render: ({ field: s }) => /* @__PURE__ */ i(
|
|
1308
|
-
|
|
1400
|
+
ie,
|
|
1309
1401
|
{
|
|
1310
1402
|
variant: "outlined",
|
|
1311
1403
|
size: "small",
|
|
@@ -1313,10 +1405,10 @@ const pt = ({
|
|
|
1313
1405
|
...s,
|
|
1314
1406
|
fullWidth: !0,
|
|
1315
1407
|
onChange: (m) => {
|
|
1316
|
-
|
|
1408
|
+
v(
|
|
1317
1409
|
`${t == null ? void 0 : t.parameterName}${n}`,
|
|
1318
1410
|
m.target.value
|
|
1319
|
-
),
|
|
1411
|
+
), O(
|
|
1320
1412
|
n,
|
|
1321
1413
|
"mappingValue",
|
|
1322
1414
|
m.target.value
|
|
@@ -1331,29 +1423,29 @@ const pt = ({
|
|
|
1331
1423
|
},
|
|
1332
1424
|
n + 1
|
|
1333
1425
|
)) }),
|
|
1334
|
-
(e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
1335
|
-
|
|
1426
|
+
(e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
1427
|
+
p,
|
|
1336
1428
|
{
|
|
1337
1429
|
variant: "outlined",
|
|
1338
1430
|
className: " w-full",
|
|
1339
1431
|
"data-testid": "othertypeeventconfigmodal-systemFunction",
|
|
1340
1432
|
children: [
|
|
1341
1433
|
/* @__PURE__ */ i(h, { variant: "body2", children: c("System Function") }),
|
|
1342
|
-
/* @__PURE__ */ i(
|
|
1434
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1343
1435
|
y,
|
|
1344
1436
|
{
|
|
1345
1437
|
className: " w-full",
|
|
1346
1438
|
name: "systemFunctionId",
|
|
1347
|
-
control:
|
|
1439
|
+
control: b,
|
|
1348
1440
|
defaultValue: "",
|
|
1349
|
-
render: ({ field: t }) => /* @__PURE__ */
|
|
1441
|
+
render: ({ field: t }) => /* @__PURE__ */ l(
|
|
1350
1442
|
L,
|
|
1351
1443
|
{
|
|
1352
1444
|
...t,
|
|
1353
1445
|
className: " w-full",
|
|
1354
1446
|
size: "small",
|
|
1355
1447
|
onChange: (n) => {
|
|
1356
|
-
t.onChange(n),
|
|
1448
|
+
t.onChange(n), Ve(n.target.value);
|
|
1357
1449
|
},
|
|
1358
1450
|
"data-testid": "othertypeeventconfigmodal-systemFunctionId-select",
|
|
1359
1451
|
sx: {
|
|
@@ -1375,8 +1467,8 @@ const pt = ({
|
|
|
1375
1467
|
}
|
|
1376
1468
|
},
|
|
1377
1469
|
children: [
|
|
1378
|
-
/* @__PURE__ */ i(
|
|
1379
|
-
|
|
1470
|
+
/* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("None") }) }),
|
|
1471
|
+
q == null ? void 0 : q.map((n, s) => /* @__PURE__ */ i(_, { value: n == null ? void 0 : n.id, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1380
1472
|
" ",
|
|
1381
1473
|
n == null ? void 0 : n.name,
|
|
1382
1474
|
" (",
|
|
@@ -1391,45 +1483,45 @@ const pt = ({
|
|
|
1391
1483
|
]
|
|
1392
1484
|
}
|
|
1393
1485
|
) }) }),
|
|
1394
|
-
$ && (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" &&
|
|
1486
|
+
$ && (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && Pe && /* @__PURE__ */ i(d, { container: !0, children: $ == null ? void 0 : $.map((t, n) => /* @__PURE__ */ i(
|
|
1395
1487
|
d,
|
|
1396
1488
|
{
|
|
1397
1489
|
item: !0,
|
|
1398
1490
|
size: { xs: 12 },
|
|
1399
1491
|
className: " w-full",
|
|
1400
|
-
children: /* @__PURE__ */
|
|
1401
|
-
/* @__PURE__ */
|
|
1492
|
+
children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
|
|
1493
|
+
/* @__PURE__ */ l(
|
|
1402
1494
|
d,
|
|
1403
1495
|
{
|
|
1404
1496
|
container: !0,
|
|
1405
1497
|
justifyContent: "space-between",
|
|
1406
1498
|
alignItems: "center",
|
|
1407
1499
|
children: [
|
|
1408
|
-
/* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */
|
|
1500
|
+
/* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1409
1501
|
t == null ? void 0 : t.parameterName,
|
|
1410
1502
|
" ",
|
|
1411
1503
|
c("Mapping")
|
|
1412
1504
|
] }) }),
|
|
1413
1505
|
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
|
|
1414
|
-
|
|
1506
|
+
p,
|
|
1415
1507
|
{
|
|
1416
1508
|
component: "fieldset",
|
|
1417
1509
|
className: "mr-2",
|
|
1418
1510
|
children: /* @__PURE__ */ i(
|
|
1419
1511
|
y,
|
|
1420
1512
|
{
|
|
1421
|
-
control:
|
|
1513
|
+
control: b,
|
|
1422
1514
|
name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
|
|
1423
1515
|
defaultValue: (t == null ? void 0 : t.isFixed) || !1,
|
|
1424
1516
|
render: ({ field: s }) => /* @__PURE__ */ i(
|
|
1425
|
-
|
|
1517
|
+
D,
|
|
1426
1518
|
{
|
|
1427
1519
|
control: /* @__PURE__ */ i(
|
|
1428
|
-
|
|
1520
|
+
K,
|
|
1429
1521
|
{
|
|
1430
1522
|
checked: s.value,
|
|
1431
1523
|
onChange: (m) => {
|
|
1432
|
-
s.onChange(m.target.checked),
|
|
1524
|
+
s.onChange(m.target.checked), O(
|
|
1433
1525
|
n,
|
|
1434
1526
|
"isFixed",
|
|
1435
1527
|
m.target.checked
|
|
@@ -1448,15 +1540,15 @@ const pt = ({
|
|
|
1448
1540
|
]
|
|
1449
1541
|
}
|
|
1450
1542
|
),
|
|
1451
|
-
/* @__PURE__ */ i(
|
|
1543
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1452
1544
|
y,
|
|
1453
1545
|
{
|
|
1454
|
-
control:
|
|
1546
|
+
control: b,
|
|
1455
1547
|
className: " w-full",
|
|
1456
1548
|
name: `${t == null ? void 0 : t.parameterName}${n}`,
|
|
1457
1549
|
defaultValue: t == null ? void 0 : t.mappingValue,
|
|
1458
1550
|
render: ({ field: s }) => /* @__PURE__ */ i(
|
|
1459
|
-
|
|
1551
|
+
ie,
|
|
1460
1552
|
{
|
|
1461
1553
|
variant: "outlined",
|
|
1462
1554
|
size: "small",
|
|
@@ -1464,10 +1556,10 @@ const pt = ({
|
|
|
1464
1556
|
...s,
|
|
1465
1557
|
fullWidth: !0,
|
|
1466
1558
|
onChange: (m) => {
|
|
1467
|
-
|
|
1559
|
+
v(
|
|
1468
1560
|
`${t == null ? void 0 : t.parameterName}${n}`,
|
|
1469
1561
|
m.target.value
|
|
1470
|
-
),
|
|
1562
|
+
), O(
|
|
1471
1563
|
n,
|
|
1472
1564
|
"mappingValue",
|
|
1473
1565
|
m.target.value
|
|
@@ -1482,15 +1574,15 @@ const pt = ({
|
|
|
1482
1574
|
},
|
|
1483
1575
|
n + 1
|
|
1484
1576
|
)) }),
|
|
1485
|
-
(e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && /* @__PURE__ */
|
|
1486
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
1487
|
-
|
|
1577
|
+
(e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && /* @__PURE__ */ l(d, { container: !0, spacing: 2, children: [
|
|
1578
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
1579
|
+
p,
|
|
1488
1580
|
{
|
|
1489
1581
|
variant: "outlined",
|
|
1490
1582
|
className: " w-full",
|
|
1491
1583
|
"data-testid": "othertypeeventconfigmodal-userIdFieldName",
|
|
1492
1584
|
children: [
|
|
1493
|
-
/* @__PURE__ */
|
|
1585
|
+
/* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1494
1586
|
c("User"),
|
|
1495
1587
|
" ",
|
|
1496
1588
|
c("Id"),
|
|
@@ -1500,10 +1592,10 @@ const pt = ({
|
|
|
1500
1592
|
c("Name"),
|
|
1501
1593
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
1502
1594
|
] }),
|
|
1503
|
-
/* @__PURE__ */ i(
|
|
1504
|
-
|
|
1595
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1596
|
+
P,
|
|
1505
1597
|
{
|
|
1506
|
-
control:
|
|
1598
|
+
control: b,
|
|
1507
1599
|
id: "userFieldName",
|
|
1508
1600
|
name: "userFieldName",
|
|
1509
1601
|
errors: f,
|
|
@@ -1515,28 +1607,28 @@ const pt = ({
|
|
|
1515
1607
|
]
|
|
1516
1608
|
}
|
|
1517
1609
|
) }),
|
|
1518
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
1519
|
-
|
|
1610
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
1611
|
+
p,
|
|
1520
1612
|
{
|
|
1521
1613
|
variant: "outlined",
|
|
1522
1614
|
className: " w-full",
|
|
1523
1615
|
"data-testid": "othertypeeventconfigmodal-notificationType",
|
|
1524
1616
|
children: [
|
|
1525
|
-
/* @__PURE__ */
|
|
1617
|
+
/* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1526
1618
|
c("Notification"),
|
|
1527
1619
|
" ",
|
|
1528
1620
|
c("Type"),
|
|
1529
1621
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
1530
1622
|
] }),
|
|
1531
|
-
/* @__PURE__ */
|
|
1623
|
+
/* @__PURE__ */ l(w, { className: " w-full", children: [
|
|
1532
1624
|
/* @__PURE__ */ i(
|
|
1533
1625
|
y,
|
|
1534
1626
|
{
|
|
1535
1627
|
className: " w-full",
|
|
1536
1628
|
name: "notificationTypeId",
|
|
1537
|
-
control:
|
|
1629
|
+
control: b,
|
|
1538
1630
|
defaultValue: "",
|
|
1539
|
-
render: ({ field: t }) => /* @__PURE__ */
|
|
1631
|
+
render: ({ field: t }) => /* @__PURE__ */ l(
|
|
1540
1632
|
L,
|
|
1541
1633
|
{
|
|
1542
1634
|
...t,
|
|
@@ -1544,12 +1636,12 @@ const pt = ({
|
|
|
1544
1636
|
size: "small",
|
|
1545
1637
|
error: f == null ? void 0 : f.notificationTypeId,
|
|
1546
1638
|
onChange: (n) => {
|
|
1547
|
-
t.onChange(n),
|
|
1639
|
+
t.onChange(n), Oe(n.target.value);
|
|
1548
1640
|
},
|
|
1549
1641
|
"data-testid": "othertypeeventconfigmodal-notificationtypeid-select",
|
|
1550
1642
|
children: [
|
|
1551
|
-
/* @__PURE__ */ i(
|
|
1552
|
-
|
|
1643
|
+
/* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("None") }) }),
|
|
1644
|
+
B == null ? void 0 : B.map((n, s) => /* @__PURE__ */ i(_, { value: n == null ? void 0 : n.id, children: /* @__PURE__ */ i(h, { variant: "body2", children: n == null ? void 0 : n.type }) }, s + 1))
|
|
1553
1645
|
]
|
|
1554
1646
|
}
|
|
1555
1647
|
)
|
|
@@ -1560,7 +1652,7 @@ const pt = ({
|
|
|
1560
1652
|
{
|
|
1561
1653
|
className: "error-helper",
|
|
1562
1654
|
"data-testid": "custom-error-message",
|
|
1563
|
-
children: (
|
|
1655
|
+
children: (ge = f == null ? void 0 : f.notificationTypeId) == null ? void 0 : ge.message
|
|
1564
1656
|
}
|
|
1565
1657
|
)
|
|
1566
1658
|
] })
|
|
@@ -1568,18 +1660,18 @@ const pt = ({
|
|
|
1568
1660
|
}
|
|
1569
1661
|
) })
|
|
1570
1662
|
] }),
|
|
1571
|
-
(e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" &&
|
|
1572
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
1573
|
-
/* @__PURE__ */
|
|
1663
|
+
(e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && ee && /* @__PURE__ */ l(d, { container: !0, spacing: 2, children: [
|
|
1664
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
|
|
1665
|
+
/* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1574
1666
|
c("Notification"),
|
|
1575
1667
|
" ",
|
|
1576
1668
|
c("Heading"),
|
|
1577
1669
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
1578
1670
|
] }),
|
|
1579
|
-
/* @__PURE__ */ i(
|
|
1580
|
-
|
|
1671
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1672
|
+
P,
|
|
1581
1673
|
{
|
|
1582
|
-
control:
|
|
1674
|
+
control: b,
|
|
1583
1675
|
id: "heading",
|
|
1584
1676
|
name: "heading",
|
|
1585
1677
|
errors: f,
|
|
@@ -1589,14 +1681,14 @@ const pt = ({
|
|
|
1589
1681
|
}
|
|
1590
1682
|
) })
|
|
1591
1683
|
] }) }),
|
|
1592
|
-
/* @__PURE__ */
|
|
1684
|
+
/* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
|
|
1593
1685
|
" ",
|
|
1594
|
-
/* @__PURE__ */
|
|
1686
|
+
/* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
|
|
1595
1687
|
/* @__PURE__ */ i(h, { variant: "body2", children: c("Template") }),
|
|
1596
|
-
/* @__PURE__ */ i(
|
|
1597
|
-
|
|
1688
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1689
|
+
ne,
|
|
1598
1690
|
{
|
|
1599
|
-
control:
|
|
1691
|
+
control: b,
|
|
1600
1692
|
id: "template",
|
|
1601
1693
|
name: "template",
|
|
1602
1694
|
errors: f,
|
|
@@ -1608,26 +1700,26 @@ const pt = ({
|
|
|
1608
1700
|
] })
|
|
1609
1701
|
] })
|
|
1610
1702
|
] }),
|
|
1611
|
-
(e == null ? void 0 : e.type) === "KAFKA_SYNC" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */
|
|
1612
|
-
|
|
1703
|
+
(e == null ? void 0 : e.type) === "KAFKA_SYNC" && /* @__PURE__ */ i(d, { container: !0, children: /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ l(
|
|
1704
|
+
p,
|
|
1613
1705
|
{
|
|
1614
1706
|
variant: "outlined",
|
|
1615
1707
|
className: " w-full",
|
|
1616
1708
|
"data-testid": "othertypeeventconfigmodal-kafkaConfig",
|
|
1617
1709
|
children: [
|
|
1618
|
-
/* @__PURE__ */
|
|
1710
|
+
/* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1619
1711
|
c("Kafka Config"),
|
|
1620
1712
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
1621
1713
|
] }),
|
|
1622
|
-
/* @__PURE__ */ i(
|
|
1714
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1623
1715
|
y,
|
|
1624
1716
|
{
|
|
1625
1717
|
className: " w-full",
|
|
1626
1718
|
name: "formType",
|
|
1627
|
-
control:
|
|
1719
|
+
control: b,
|
|
1628
1720
|
defaultValue: "",
|
|
1629
1721
|
error: f,
|
|
1630
|
-
render: ({ field: t }) => /* @__PURE__ */
|
|
1722
|
+
render: ({ field: t }) => /* @__PURE__ */ l(
|
|
1631
1723
|
L,
|
|
1632
1724
|
{
|
|
1633
1725
|
...t,
|
|
@@ -1635,12 +1727,12 @@ const pt = ({
|
|
|
1635
1727
|
size: "small",
|
|
1636
1728
|
displayEmpty: !0,
|
|
1637
1729
|
onChange: (n) => {
|
|
1638
|
-
t.onChange(n),
|
|
1730
|
+
t.onChange(n), Ue(n.target.value);
|
|
1639
1731
|
},
|
|
1640
1732
|
"data-testid": "othertypeeventconfigmodal-kafkaConfig-select",
|
|
1641
1733
|
children: [
|
|
1642
|
-
/* @__PURE__ */ i(
|
|
1643
|
-
|
|
1734
|
+
/* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
|
|
1735
|
+
J == null ? void 0 : J.map((n, s) => /* @__PURE__ */ i(_, { value: n.form_type, children: /* @__PURE__ */ i(h, { variant: "body2", children: n.form_type }) }, s))
|
|
1644
1736
|
]
|
|
1645
1737
|
}
|
|
1646
1738
|
)
|
|
@@ -1649,45 +1741,45 @@ const pt = ({
|
|
|
1649
1741
|
]
|
|
1650
1742
|
}
|
|
1651
1743
|
) }) }),
|
|
1652
|
-
|
|
1744
|
+
M && (e == null ? void 0 : e.type) === "KAFKA_SYNC" && he && M.length > 0 && /* @__PURE__ */ i(d, { container: !0, className: " w-full", children: M == null ? void 0 : M.map((t, n) => /* @__PURE__ */ i(
|
|
1653
1745
|
d,
|
|
1654
1746
|
{
|
|
1655
1747
|
item: !0,
|
|
1656
1748
|
size: { xs: 12 },
|
|
1657
1749
|
className: " w-full",
|
|
1658
|
-
children: /* @__PURE__ */
|
|
1659
|
-
/* @__PURE__ */
|
|
1750
|
+
children: /* @__PURE__ */ l(p, { variant: "outlined", className: " w-full", children: [
|
|
1751
|
+
/* @__PURE__ */ l(
|
|
1660
1752
|
d,
|
|
1661
1753
|
{
|
|
1662
1754
|
container: !0,
|
|
1663
1755
|
justifyContent: "space-between",
|
|
1664
1756
|
alignItems: "center",
|
|
1665
1757
|
children: [
|
|
1666
|
-
/* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */
|
|
1758
|
+
/* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1667
1759
|
t == null ? void 0 : t.parameterName,
|
|
1668
1760
|
" ",
|
|
1669
1761
|
c("Mapping")
|
|
1670
1762
|
] }) }),
|
|
1671
1763
|
/* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
|
|
1672
|
-
|
|
1764
|
+
p,
|
|
1673
1765
|
{
|
|
1674
1766
|
component: "fieldset",
|
|
1675
1767
|
className: "mr-2",
|
|
1676
1768
|
children: /* @__PURE__ */ i(
|
|
1677
1769
|
y,
|
|
1678
1770
|
{
|
|
1679
|
-
control:
|
|
1771
|
+
control: b,
|
|
1680
1772
|
name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
|
|
1681
1773
|
defaultValue: (t == null ? void 0 : t.isFixed) || !1,
|
|
1682
1774
|
render: ({ field: s }) => /* @__PURE__ */ i(
|
|
1683
|
-
|
|
1775
|
+
D,
|
|
1684
1776
|
{
|
|
1685
1777
|
control: /* @__PURE__ */ i(
|
|
1686
|
-
|
|
1778
|
+
K,
|
|
1687
1779
|
{
|
|
1688
1780
|
checked: s.value,
|
|
1689
1781
|
onChange: (m) => {
|
|
1690
|
-
s.onChange(m.target.checked),
|
|
1782
|
+
s.onChange(m.target.checked), O(
|
|
1691
1783
|
n,
|
|
1692
1784
|
"isFixed",
|
|
1693
1785
|
m.target.checked
|
|
@@ -1706,15 +1798,15 @@ const pt = ({
|
|
|
1706
1798
|
]
|
|
1707
1799
|
}
|
|
1708
1800
|
),
|
|
1709
|
-
/* @__PURE__ */ i(
|
|
1801
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1710
1802
|
y,
|
|
1711
1803
|
{
|
|
1712
|
-
control:
|
|
1804
|
+
control: b,
|
|
1713
1805
|
className: " w-full",
|
|
1714
1806
|
name: `${t == null ? void 0 : t.parameterName}${n}`,
|
|
1715
1807
|
defaultValue: (t == null ? void 0 : t.mappingValue) || "",
|
|
1716
1808
|
render: ({ field: s }) => /* @__PURE__ */ i(
|
|
1717
|
-
|
|
1809
|
+
ie,
|
|
1718
1810
|
{
|
|
1719
1811
|
variant: "outlined",
|
|
1720
1812
|
size: "small",
|
|
@@ -1722,10 +1814,10 @@ const pt = ({
|
|
|
1722
1814
|
...s,
|
|
1723
1815
|
fullWidth: !0,
|
|
1724
1816
|
onChange: (m) => {
|
|
1725
|
-
|
|
1817
|
+
v(
|
|
1726
1818
|
`${t == null ? void 0 : t.parameterName}${n}`,
|
|
1727
1819
|
m.target.value
|
|
1728
|
-
),
|
|
1820
|
+
), O(
|
|
1729
1821
|
n,
|
|
1730
1822
|
"mappingValue",
|
|
1731
1823
|
m.target.value
|
|
@@ -1738,12 +1830,12 @@ const pt = ({
|
|
|
1738
1830
|
) })
|
|
1739
1831
|
] })
|
|
1740
1832
|
},
|
|
1741
|
-
`${
|
|
1833
|
+
`${he}-${t == null ? void 0 : t.parameterName}-${n}`
|
|
1742
1834
|
)) }),
|
|
1743
|
-
((e == null ? void 0 : e.type) === "SMS" || (e == null ? void 0 : e.type) == "QUERY" && !
|
|
1835
|
+
((e == null ? void 0 : e.type) === "SMS" || (e == null ? void 0 : e.type) == "QUERY" && !me) && /* @__PURE__ */ i(d, { container: !0, spacing: 2, children: /* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
|
|
1744
1836
|
" ",
|
|
1745
|
-
/* @__PURE__ */
|
|
1746
|
-
|
|
1837
|
+
/* @__PURE__ */ l(
|
|
1838
|
+
p,
|
|
1747
1839
|
{
|
|
1748
1840
|
variant: "outlined",
|
|
1749
1841
|
className: " w-full",
|
|
@@ -1752,10 +1844,10 @@ const pt = ({
|
|
|
1752
1844
|
/* @__PURE__ */ i(h, { variant: "body2", children: c(
|
|
1753
1845
|
e.type === "QUERY" ? "Query" : "Template"
|
|
1754
1846
|
) }),
|
|
1755
|
-
/* @__PURE__ */ i(
|
|
1756
|
-
|
|
1847
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1848
|
+
ne,
|
|
1757
1849
|
{
|
|
1758
|
-
control:
|
|
1850
|
+
control: b,
|
|
1759
1851
|
id: "template",
|
|
1760
1852
|
name: "template",
|
|
1761
1853
|
label: "",
|
|
@@ -1767,29 +1859,29 @@ const pt = ({
|
|
|
1767
1859
|
}
|
|
1768
1860
|
)
|
|
1769
1861
|
] }) }),
|
|
1770
|
-
(e == null ? void 0 : e.type) != "EXCEPTION" && (e == null ? void 0 : e.type) != "SYSTEM_FUNCTION" && /* @__PURE__ */ i(d, { container: !0, spacing: 2, children: /* @__PURE__ */
|
|
1771
|
-
/* @__PURE__ */
|
|
1772
|
-
|
|
1862
|
+
(e == null ? void 0 : e.type) != "EXCEPTION" && (e == null ? void 0 : e.type) != "SYSTEM_FUNCTION" && /* @__PURE__ */ i(d, { container: !0, spacing: 2, children: /* @__PURE__ */ l(d, { item: !0, size: { xs: 12 }, className: "mt-2 w-full", children: [
|
|
1863
|
+
/* @__PURE__ */ l(
|
|
1864
|
+
p,
|
|
1773
1865
|
{
|
|
1774
1866
|
variant: "outlined",
|
|
1775
1867
|
className: " w-full",
|
|
1776
1868
|
"data-testid": "othertypeeventconfigmodal-triggerWhen",
|
|
1777
1869
|
children: [
|
|
1778
|
-
/* @__PURE__ */
|
|
1870
|
+
/* @__PURE__ */ l(h, { variant: "body2", children: [
|
|
1779
1871
|
c("Trigger"),
|
|
1780
1872
|
" ",
|
|
1781
1873
|
c("When"),
|
|
1782
1874
|
/* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
|
|
1783
1875
|
] }),
|
|
1784
|
-
/* @__PURE__ */
|
|
1876
|
+
/* @__PURE__ */ l(w, { className: " w-full", children: [
|
|
1785
1877
|
/* @__PURE__ */ i(
|
|
1786
1878
|
y,
|
|
1787
1879
|
{
|
|
1788
1880
|
name: "trigerWhen",
|
|
1789
|
-
control:
|
|
1881
|
+
control: b,
|
|
1790
1882
|
defaultValue: "",
|
|
1791
1883
|
className: " w-full",
|
|
1792
|
-
render: ({ field: t }) => /* @__PURE__ */
|
|
1884
|
+
render: ({ field: t }) => /* @__PURE__ */ l(
|
|
1793
1885
|
L,
|
|
1794
1886
|
{
|
|
1795
1887
|
className: " w-full",
|
|
@@ -1799,9 +1891,9 @@ const pt = ({
|
|
|
1799
1891
|
displayEmpty: !0,
|
|
1800
1892
|
"data-testid": "othertypeeventconfigmodal-trigegrwhen-select",
|
|
1801
1893
|
children: [
|
|
1802
|
-
/* @__PURE__ */ i(
|
|
1803
|
-
/* @__PURE__ */ i(
|
|
1804
|
-
/* @__PURE__ */ i(
|
|
1894
|
+
/* @__PURE__ */ i(_, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
|
|
1895
|
+
/* @__PURE__ */ i(_, { value: "IMMEDIATELY", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Immediately") }) }),
|
|
1896
|
+
/* @__PURE__ */ i(_, { value: "AFTER", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("After") }) })
|
|
1805
1897
|
]
|
|
1806
1898
|
}
|
|
1807
1899
|
)
|
|
@@ -1812,26 +1904,26 @@ const pt = ({
|
|
|
1812
1904
|
{
|
|
1813
1905
|
className: "error-helper",
|
|
1814
1906
|
"data-testid": "custom-error-message",
|
|
1815
|
-
children: (
|
|
1907
|
+
children: (Ne = f == null ? void 0 : f.trigerWhen) == null ? void 0 : Ne.message
|
|
1816
1908
|
}
|
|
1817
1909
|
)
|
|
1818
1910
|
] })
|
|
1819
1911
|
]
|
|
1820
1912
|
}
|
|
1821
1913
|
),
|
|
1822
|
-
|
|
1823
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */
|
|
1824
|
-
|
|
1914
|
+
Ae === "AFTER" && /* @__PURE__ */ l(De, { children: [
|
|
1915
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ l(
|
|
1916
|
+
p,
|
|
1825
1917
|
{
|
|
1826
1918
|
variant: "outlined",
|
|
1827
1919
|
className: " w-full",
|
|
1828
1920
|
"data-testid": "othertypeeventconfigmodal-dayField",
|
|
1829
1921
|
children: [
|
|
1830
1922
|
/* @__PURE__ */ i(h, { variant: "body2", children: c("Day") }),
|
|
1831
|
-
/* @__PURE__ */ i(
|
|
1832
|
-
|
|
1923
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1924
|
+
P,
|
|
1833
1925
|
{
|
|
1834
|
-
control:
|
|
1926
|
+
control: b,
|
|
1835
1927
|
id: "day",
|
|
1836
1928
|
name: "day",
|
|
1837
1929
|
errors: f,
|
|
@@ -1844,18 +1936,18 @@ const pt = ({
|
|
|
1844
1936
|
]
|
|
1845
1937
|
}
|
|
1846
1938
|
) }),
|
|
1847
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */
|
|
1848
|
-
|
|
1939
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ l(
|
|
1940
|
+
p,
|
|
1849
1941
|
{
|
|
1850
1942
|
variant: "outlined",
|
|
1851
1943
|
className: " w-full",
|
|
1852
1944
|
"data-testid": "othertypeeventconfigmodal-hourField",
|
|
1853
1945
|
children: [
|
|
1854
1946
|
/* @__PURE__ */ i(h, { variant: "body2", children: c("Hour") }),
|
|
1855
|
-
/* @__PURE__ */ i(
|
|
1856
|
-
|
|
1947
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1948
|
+
P,
|
|
1857
1949
|
{
|
|
1858
|
-
control:
|
|
1950
|
+
control: b,
|
|
1859
1951
|
id: "hour",
|
|
1860
1952
|
name: "hour",
|
|
1861
1953
|
errors: f,
|
|
@@ -1868,18 +1960,18 @@ const pt = ({
|
|
|
1868
1960
|
]
|
|
1869
1961
|
}
|
|
1870
1962
|
) }),
|
|
1871
|
-
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */
|
|
1872
|
-
|
|
1963
|
+
/* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ l(
|
|
1964
|
+
p,
|
|
1873
1965
|
{
|
|
1874
1966
|
variant: "outlined",
|
|
1875
1967
|
className: " w-full",
|
|
1876
1968
|
"data-testid": "othertypeeventconfigmodal-minuteField",
|
|
1877
1969
|
children: [
|
|
1878
1970
|
/* @__PURE__ */ i(h, { variant: "body2", children: c("Minute") }),
|
|
1879
|
-
/* @__PURE__ */ i(
|
|
1880
|
-
|
|
1971
|
+
/* @__PURE__ */ i(w, { className: " w-full", children: /* @__PURE__ */ i(
|
|
1972
|
+
P,
|
|
1881
1973
|
{
|
|
1882
|
-
control:
|
|
1974
|
+
control: b,
|
|
1883
1975
|
id: "minute",
|
|
1884
1976
|
name: "minute",
|
|
1885
1977
|
type: "number",
|
|
@@ -1896,8 +1988,8 @@ const pt = ({
|
|
|
1896
1988
|
] }) })
|
|
1897
1989
|
] })
|
|
1898
1990
|
] }),
|
|
1899
|
-
/* @__PURE__ */
|
|
1900
|
-
|
|
1991
|
+
/* @__PURE__ */ l(
|
|
1992
|
+
He,
|
|
1901
1993
|
{
|
|
1902
1994
|
direction: "row",
|
|
1903
1995
|
className: "mr-5",
|
|
@@ -1907,20 +1999,20 @@ const pt = ({
|
|
|
1907
1999
|
mb: 1,
|
|
1908
2000
|
children: [
|
|
1909
2001
|
/* @__PURE__ */ i(
|
|
1910
|
-
|
|
2002
|
+
te,
|
|
1911
2003
|
{
|
|
1912
2004
|
variant: "contained",
|
|
1913
2005
|
size: "small",
|
|
1914
2006
|
color: "secondary",
|
|
1915
2007
|
onClick: () => {
|
|
1916
|
-
|
|
2008
|
+
X(), Q();
|
|
1917
2009
|
},
|
|
1918
2010
|
"data-testid": "othertypeeventconfigmodal-cancel-button",
|
|
1919
2011
|
children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Cancel") })
|
|
1920
2012
|
}
|
|
1921
2013
|
),
|
|
1922
2014
|
/* @__PURE__ */ i(
|
|
1923
|
-
|
|
2015
|
+
te,
|
|
1924
2016
|
{
|
|
1925
2017
|
size: "small",
|
|
1926
2018
|
type: "submit",
|
|
@@ -1942,13 +2034,13 @@ const pt = ({
|
|
|
1942
2034
|
}
|
|
1943
2035
|
);
|
|
1944
2036
|
};
|
|
1945
|
-
|
|
1946
|
-
open:
|
|
1947
|
-
handleClose:
|
|
1948
|
-
handleClick:
|
|
1949
|
-
type:
|
|
2037
|
+
Ft.propTypes = {
|
|
2038
|
+
open: G.any,
|
|
2039
|
+
handleClose: G.any,
|
|
2040
|
+
handleClick: G.any,
|
|
2041
|
+
type: G.any
|
|
1950
2042
|
};
|
|
1951
2043
|
export {
|
|
1952
|
-
|
|
2044
|
+
Ft as default
|
|
1953
2045
|
};
|
|
1954
|
-
//# sourceMappingURL=OtherTypeEventConfigModal-
|
|
2046
|
+
//# sourceMappingURL=OtherTypeEventConfigModal-CYBfr2XE.js.map
|