@argusoft/medplat-core 1.0.0 → 1.0.1

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.
@@ -1,4 +1,4 @@
1
- import { jsx as n, jsxs as a, Fragment as Me } from "react/jsx-runtime";
1
+ import { jsx as i, jsxs as a, Fragment as Me } from "react/jsx-runtime";
2
2
  import O, { memo as Re, forwardRef as me, useRef as Q, useEffect as te, useState as B } from "react";
3
3
  import H from "prop-types";
4
4
  import { useForm as Ve, Controller as y } from "react-hook-form";
@@ -11,15 +11,11 @@ import M from "@/views/custom-components/CustomTextField";
11
11
  import { retrieveAllConfigured as De, execute as de, getNotificationTypeList as Ke } from "@/common/services/GlobalApis";
12
12
  import { showToast as je } from "@/common/toaster/toaster";
13
13
  import qe from "@/hooks/useTrackEvent";
14
- import "./ManageEventConfiguration-BRXh51fc.js";
14
+ import "./ManageEventConfiguration-BJxS2Su0.js";
15
15
  import { useTranslateProvider as Ye } from "@/common/languageTranslator/TranslationContext";
16
16
  import { faXmark as Je } from "@fortawesome/free-solid-svg-icons";
17
17
  import { FontAwesomeIcon as Be } from "@fortawesome/react-fontawesome";
18
18
  import He from "@/views/custom-components/CkEditor/CkEditor";
19
- /**
20
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
21
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
22
- */
23
19
  function Qe() {
24
20
  const o = {
25
21
  resolve: null,
@@ -29,61 +25,21 @@ function Qe() {
29
25
  o.resolve = r;
30
26
  }), o;
31
27
  }
32
- /**
33
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
34
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
35
- */
36
28
  function Xe(o) {
37
29
  let r = null;
38
30
  return (...l) => (r || (r = {
39
31
  current: o(...l)
40
32
  }), r.current);
41
33
  }
42
- /**
43
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
44
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
45
- */
46
34
  const I = new Array(256).fill("").map((o, r) => ("0" + r.toString(16)).slice(-2));
47
35
  function Ge() {
48
36
  const [o, r, l, e] = crypto.getRandomValues(new Uint32Array(4));
49
37
  return "e" + I[o >> 0 & 255] + I[o >> 8 & 255] + I[o >> 16 & 255] + I[o >> 24 & 255] + I[r >> 0 & 255] + I[r >> 8 & 255] + I[r >> 16 & 255] + I[r >> 24 & 255] + I[l >> 0 & 255] + I[l >> 8 & 255] + I[l >> 16 & 255] + I[l >> 24 & 255] + I[e >> 0 & 255] + I[e >> 8 & 255] + I[e >> 16 & 255] + I[e >> 24 & 255];
50
38
  }
51
- /**
52
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
53
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
54
- */
55
- function Ze(o, r) {
56
- const l = o.extraPlugins || [];
57
- return {
58
- ...o,
59
- extraPlugins: [
60
- ...l,
61
- ...r.filter((e) => !l.includes(e))
62
- ]
63
- };
64
- }
65
- /**
66
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
67
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
68
- */
69
39
  function he(o) {
70
40
  return !!o && /^\d+\.\d+\.\d+/.test(o);
71
41
  }
72
- /**
73
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
74
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
75
- */
76
- function fe(o) {
77
- return o ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((r) => o.includes(r)) : !1;
78
- }
79
- function et(o) {
80
- return he(o) || fe(o);
81
- }
82
- /**
83
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
84
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
85
- */
86
- function tt(o) {
42
+ function Ze(o) {
87
43
  if (!he(o))
88
44
  throw new Error(`Invalid semantic version: ${o || "<blank>"}.`);
89
45
  const [r, l, e] = o.split(".");
@@ -93,14 +49,26 @@ function tt(o) {
93
49
  patch: Number.parseInt(e, 10)
94
50
  };
95
51
  }
96
- /**
97
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
98
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
99
- */
100
- function nt(o) {
52
+ function fe(o) {
53
+ return o ? ["nightly", "alpha", "internal", "nightly-", "staging"].some((r) => o.includes(r)) : !1;
54
+ }
55
+ function et(o) {
56
+ return he(o) || fe(o);
57
+ }
58
+ function tt(o, r) {
59
+ const l = o.extraPlugins || [];
60
+ return {
61
+ ...o,
62
+ extraPlugins: [
63
+ ...l,
64
+ ...r.filter((e) => !l.includes(e))
65
+ ]
66
+ };
67
+ }
68
+ function it(o) {
101
69
  if (fe(o))
102
70
  return 3;
103
- const { major: r } = tt(o);
71
+ const { major: r } = Ze(o);
104
72
  switch (!0) {
105
73
  case r >= 44:
106
74
  return 3;
@@ -110,29 +78,17 @@ function nt(o) {
110
78
  return 1;
111
79
  }
112
80
  }
113
- /**
114
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
115
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
116
- */
117
- function it() {
81
+ function nt() {
118
82
  const { CKEDITOR_VERSION: o, CKEDITOR: r } = window;
119
83
  return et(o) ? {
120
84
  source: r ? "cdn" : "npm",
121
85
  version: o
122
86
  } : null;
123
87
  }
124
- /**
125
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
126
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
127
- */
128
88
  function rt() {
129
- const o = it();
130
- return o ? nt(o.version) : null;
89
+ const o = nt();
90
+ return o ? it(o.version) : null;
131
91
  }
132
- /**
133
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
134
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
135
- */
136
92
  function ge(o, r) {
137
93
  switch (r || (r = rt() || void 0), r) {
138
94
  case 1:
@@ -144,10 +100,6 @@ function ge(o, r) {
144
100
  return !1;
145
101
  }
146
102
  }
147
- /**
148
- * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
149
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
150
- */
151
103
  function ot(o, r) {
152
104
  return function(e) {
153
105
  ge(e.config.get("licenseKey")) || e.on("collectUsageData", (u, { setUsageData: b }) => {
@@ -272,7 +224,7 @@ const ft = ot(
272
224
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
273
225
  */
274
226
  function gt(o) {
275
- return ge(o.licenseKey) ? o : Ze(o, [
227
+ return ge(o.licenseKey) ? o : tt(o, [
276
228
  /**
277
229
  * This part of the code is not executed in open-source implementations using a GPL key.
278
230
  * It only runs when a specific license key is provided. If you are uncertain whether
@@ -666,8 +618,8 @@ const bt = ({
666
618
  handleSubmit: Ie,
667
619
  reset: Y,
668
620
  setValue: p,
669
- unregister: ne,
670
- getValues: ie,
621
+ unregister: ie,
622
+ getValues: ne,
671
623
  watch: V,
672
624
  formState: { errors: f }
673
625
  } = Ve({
@@ -677,24 +629,24 @@ const bt = ({
677
629
  });
678
630
  te(() => {
679
631
  var t;
680
- e && (Pe(), (t = Object.keys(e)) == null || t.forEach((i) => {
632
+ e && (Pe(), (t = Object.keys(e)) == null || t.forEach((n) => {
681
633
  var s, m, w;
682
- if (i === "index" && p(i, e[i]), i === "smsConfigJson" && e[i]) {
683
- const x = e[i];
634
+ if (n === "index" && p(n, e[n]), n === "smsConfigJson" && e[n]) {
635
+ const x = e[n];
684
636
  (s = Object.keys(x)) == null || s.forEach((P) => {
685
637
  p(P, x[P]);
686
638
  });
687
- } else if (i === "pushNotificationConfigJson" && e[i]) {
688
- const x = e[i];
639
+ } else if (n === "pushNotificationConfigJson" && e[n]) {
640
+ const x = e[n];
689
641
  (m = Object.keys(x)) == null || m.forEach((P) => {
690
642
  p(P, x[P]);
691
643
  });
692
- } else if (i === "kafkaConfigJson" && e[i]) {
693
- const x = e[i];
644
+ } else if (n === "kafkaConfigJson" && e[n]) {
645
+ const x = e[n];
694
646
  (w = Object.keys(x)) == null || w.forEach((P) => {
695
647
  p(P, x[P]);
696
648
  });
697
- } else e[i] !== void 0 && e[i] !== null && p(i, e[i]);
649
+ } else e[n] !== void 0 && e[n] !== null && p(n, e[n]);
698
650
  }));
699
651
  }, [e]);
700
652
  const k = V("queryMasterParamJson"), re = V("queryCode"), Te = V("systemFunctionId"), $ = V("functionParams"), ye = V("trigerWhen"), X = V("notificationTypeId"), z = V("kafkaParameterJson"), oe = V("formType"), Se = async (t) => {
@@ -702,46 +654,46 @@ const bt = ({
702
654
  k && k.forEach((w, x) => {
703
655
  p(`${w.parameterName}${x}`, ""), p(`${w.parameterName}${x}isFixed`, !1);
704
656
  });
705
- let i = [];
657
+ let n = [];
706
658
  const s = R == null ? void 0 : R.find((w) => (w == null ? void 0 : w.code) === t);
707
659
  if (s) {
708
660
  const w = (m = s == null ? void 0 : s.params) == null ? void 0 : m.split(",");
709
661
  Array.from(new Set(w)).forEach((P) => {
710
- i.push({ parameterName: P });
662
+ n.push({ parameterName: P });
711
663
  });
712
664
  }
713
- p("queryMasterParamJson", i);
665
+ p("queryMasterParamJson", n);
714
666
  }, Fe = (t) => {
715
667
  $ && $.forEach((m, w) => {
716
668
  p(`${m.parameterName}${w}`, ""), p(`${m.parameterName}${w}isFixed`, !1);
717
669
  });
718
- let i = [];
670
+ let n = [];
719
671
  const s = K.find((m) => m.id === t);
720
672
  s && Array.from(new Set(s.parameters)).forEach((w) => {
721
- i.push(w);
722
- }), p("functionParams", i);
673
+ n.push(w);
674
+ }), p("functionParams", n);
723
675
  }, ke = (t) => {
724
- const i = q.find(
676
+ const n = q.find(
725
677
  (s) => s.id === t
726
678
  );
727
- i && (p("notificationType", i), p("template", i.message), p("heading", i.heading));
728
- }, A = (t, i, s) => {
679
+ n && (p("notificationType", n), p("template", n.message), p("heading", n.heading));
680
+ }, A = (t, n, s) => {
729
681
  if ((e == null ? void 0 : e.type) === "QUERY") {
730
682
  const m = [...k];
731
- m[t][i] = s, p("queryMasterParamJson", m);
683
+ m[t][n] = s, p("queryMasterParamJson", m);
732
684
  }
733
685
  if ((e == null ? void 0 : e.type) === "SYSTEM_FUNCTION") {
734
686
  const m = [...$];
735
- m[t][i] = s, p("functionParams", m);
687
+ m[t][n] = s, p("functionParams", m);
736
688
  }
737
689
  if ((e == null ? void 0 : e.type) === "KAFKA_SYNC") {
738
690
  const m = [...z];
739
- m[t][i] = s, p("kafkaParameterJson", m);
691
+ m[t][n] = s, p("kafkaParameterJson", m);
740
692
  }
741
693
  }, $e = (t) => {
742
- const i = ie("kafkaParameterJson");
743
- i && Array.isArray(i) && (i.forEach((m, w) => {
744
- ne(`${m.parameterName}${w}`), ne(`${m.parameterName}${w}isFixed`);
694
+ const n = ne("kafkaParameterJson");
695
+ n && Array.isArray(n) && (n.forEach((m, w) => {
696
+ ie(`${m.parameterName}${w}`), ie(`${m.parameterName}${w}isFixed`);
745
697
  }), p("kafkaParameterJson", [], { shouldValidate: !0 }));
746
698
  const s = j.find(
747
699
  (m) => m.form_type === t
@@ -756,7 +708,7 @@ const bt = ({
756
708
  } else
757
709
  p("kafkaParameterJson", [], { shouldValidate: !0 });
758
710
  }, Pe = async () => {
759
- var t, i;
711
+ var t, n;
760
712
  try {
761
713
  if ((e == null ? void 0 : e.type) === "QUERY") {
762
714
  const s = await De(!0);
@@ -778,7 +730,7 @@ const bt = ({
778
730
  code: "retrieve_all_kafka_configs",
779
731
  parameters: {}
780
732
  });
781
- Ee(((i = s == null ? void 0 : s.data) == null ? void 0 : i.result) || []);
733
+ Ee(((n = s == null ? void 0 : s.data) == null ? void 0 : n.result) || []);
782
734
  }
783
735
  } catch {
784
736
  je({ message: "Error in loading", type: "error" });
@@ -803,15 +755,15 @@ const bt = ({
803
755
  }, delete t.notificationTypeId, delete t.userFieldName, delete t.heading, delete t.template), e.type === "KAFKA_SYNC" && (t.kafkaConfigJson = {
804
756
  formType: t.formType,
805
757
  kafkaParameterJson: t.kafkaParameterJson
806
- }), k == null || k.forEach((i, s) => {
807
- delete t[`${i == null ? void 0 : i.parameterName}${s}`], delete t[`${i == null ? void 0 : i.parameterName}${s}isFixed`];
808
- }), $ == null || $.forEach((i, s) => {
809
- delete t[`${i == null ? void 0 : i.parameterName}${s}`], delete t[`${i == null ? void 0 : i.parameterName}${s}isFixed`];
810
- }), z == null || z.forEach((i, s) => {
811
- delete t[`${i == null ? void 0 : i.parameterName}${s}`], delete t[`${i == null ? void 0 : i.parameterName}${s}isFixed`];
758
+ }), k == null || k.forEach((n, s) => {
759
+ delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
760
+ }), $ == null || $.forEach((n, s) => {
761
+ delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
762
+ }), z == null || z.forEach((n, s) => {
763
+ delete t[`${n == null ? void 0 : n.parameterName}${s}`], delete t[`${n == null ? void 0 : n.parameterName}${s}isFixed`];
812
764
  }), l(t), E.current = !0, J(), Y();
813
765
  };
814
- return /* @__PURE__ */ n(
766
+ return /* @__PURE__ */ i(
815
767
  Le,
816
768
  {
817
769
  "data-testid": "othertypeeventconfigmodal-modal",
@@ -864,7 +816,7 @@ const bt = ({
864
816
  ]
865
817
  }
866
818
  ),
867
- /* @__PURE__ */ n(
819
+ /* @__PURE__ */ i(
868
820
  Ue,
869
821
  {
870
822
  size: "small",
@@ -872,7 +824,7 @@ const bt = ({
872
824
  J(), Y();
873
825
  },
874
826
  "data-testid": "othertypeeventconfigmodal-close-button",
875
- children: /* @__PURE__ */ n(Be, { icon: Je })
827
+ children: /* @__PURE__ */ i(Be, { icon: Je })
876
828
  }
877
829
  )
878
830
  ]
@@ -886,13 +838,13 @@ const bt = ({
886
838
  "data-testid": "othertypeeventconfigmodal-form",
887
839
  children: [
888
840
  /* @__PURE__ */ a(d, { container: !0, className: " max-h-[60vh] overflow-y-auto w-full", children: [
889
- /* @__PURE__ */ n(
841
+ /* @__PURE__ */ i(
890
842
  d,
891
843
  {
892
844
  item: !0,
893
845
  className: "border-b border-gray-300 p-2.5 flex flex-col items-start",
894
846
  size: { xs: 12 },
895
- children: /* @__PURE__ */ n(C, { className: "whitespace-normal w-full break-all p-2.5 flex flex-col items-start", children: /* @__PURE__ */ a(h, { variant: "body2", className: "font-bold", children: [
847
+ children: /* @__PURE__ */ i(C, { className: "whitespace-normal w-full break-all p-2.5 flex flex-col items-start", children: /* @__PURE__ */ a(h, { variant: "body2", className: "font-bold", children: [
896
848
  c("Available Implicit Parameters"),
897
849
  ":",
898
850
  " ",
@@ -903,7 +855,7 @@ const bt = ({
903
855
  ),
904
856
  /* @__PURE__ */ a(d, { item: !0, className: "p-2.5 w-full", children: [
905
857
  (e == null ? void 0 : e.type) === "EXCEPTION" && /* @__PURE__ */ a(d, { container: !0, spacing: 2, children: [
906
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
858
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
907
859
  N,
908
860
  {
909
861
  variant: "outlined",
@@ -914,10 +866,10 @@ const bt = ({
914
866
  c("Exception"),
915
867
  " ",
916
868
  c("Type"),
917
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
869
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
918
870
  ] }),
919
871
  /* @__PURE__ */ a(C, { className: " w-full", children: [
920
- /* @__PURE__ */ n(
872
+ /* @__PURE__ */ i(
921
873
  y,
922
874
  {
923
875
  name: "excetionTypes",
@@ -933,19 +885,19 @@ const bt = ({
933
885
  size: "small",
934
886
  "data-testid": "othertypeeventconfigmodal-excetionTypes-select",
935
887
  children: [
936
- /* @__PURE__ */ n(T, { value: "", children: /* @__PURE__ */ n(h, { variant: "body2", children: c("Select") }) }),
937
- /* @__PURE__ */ n(T, { value: "ImtechoUserException", children: /* @__PURE__ */ n(h, { variant: "body2", children: c("Imtecho User Exception") }) }),
938
- /* @__PURE__ */ n(T, { value: "ImtechoSystemException", children: /* @__PURE__ */ a(h, { variant: "body2", children: [
888
+ /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
889
+ /* @__PURE__ */ i(T, { value: "ImtechoUserException", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Imtecho User Exception") }) }),
890
+ /* @__PURE__ */ i(T, { value: "ImtechoSystemException", children: /* @__PURE__ */ a(h, { variant: "body2", children: [
939
891
  " ",
940
892
  c("Imtecho System Exception")
941
893
  ] }) }),
942
- /* @__PURE__ */ n(T, { value: "ImtechoMobileException", children: /* @__PURE__ */ n(h, { variant: "body2", children: c("Imtecho Mobile Exception") }) })
894
+ /* @__PURE__ */ i(T, { value: "ImtechoMobileException", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Imtecho Mobile Exception") }) })
943
895
  ]
944
896
  }
945
897
  )
946
898
  }
947
899
  ),
948
- (f == null ? void 0 : f.excetionTypes) && /* @__PURE__ */ n(
900
+ (f == null ? void 0 : f.excetionTypes) && /* @__PURE__ */ i(
949
901
  "p",
950
902
  {
951
903
  className: "error-helper",
@@ -966,8 +918,8 @@ const bt = ({
966
918
  className: " w-full",
967
919
  "data-testid": "othertypeeventconfigmodal-exceptionMessage",
968
920
  children: [
969
- /* @__PURE__ */ n(h, { variant: "body2", children: c("Message") }),
970
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
921
+ /* @__PURE__ */ i(h, { variant: "body2", children: c("Message") }),
922
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
971
923
  Z,
972
924
  {
973
925
  control: v,
@@ -985,7 +937,7 @@ const bt = ({
985
937
  ] })
986
938
  ] }),
987
939
  (e == null ? void 0 : e.type) === "SMS" && /* @__PURE__ */ a(d, { container: !0, spacing: 2, children: [
988
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
940
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
989
941
  N,
990
942
  {
991
943
  variant: "outlined",
@@ -1000,9 +952,9 @@ const bt = ({
1000
952
  c("Field"),
1001
953
  " ",
1002
954
  c("Name"),
1003
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
955
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1004
956
  ] }),
1005
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
957
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1006
958
  M,
1007
959
  {
1008
960
  control: v,
@@ -1017,7 +969,7 @@ const bt = ({
1017
969
  ]
1018
970
  }
1019
971
  ) }),
1020
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
972
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1021
973
  N,
1022
974
  {
1023
975
  variant: "outlined",
@@ -1031,7 +983,7 @@ const bt = ({
1031
983
  justifyContent: "space-between",
1032
984
  alignItems: "center",
1033
985
  children: [
1034
- /* @__PURE__ */ n(d, { item: !0, xs: !0, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
986
+ /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1035
987
  c("SMS"),
1036
988
  " ",
1037
989
  c("Type"),
@@ -1039,24 +991,24 @@ const bt = ({
1039
991
  c("Field"),
1040
992
  " ",
1041
993
  c("Value"),
1042
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
994
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1043
995
  ] }) }),
1044
996
  /* @__PURE__ */ a(d, { container: !0, children: [
1045
997
  " ",
1046
- /* @__PURE__ */ n(d, { item: !0, children: /* @__PURE__ */ n(N, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ n(
998
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(N, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1047
999
  y,
1048
1000
  {
1049
1001
  control: v,
1050
1002
  name: "isPriority",
1051
1003
  defaultValue: !1,
1052
- render: ({ field: t }) => /* @__PURE__ */ n(
1004
+ render: ({ field: t }) => /* @__PURE__ */ i(
1053
1005
  U,
1054
1006
  {
1055
- control: /* @__PURE__ */ n(
1007
+ control: /* @__PURE__ */ i(
1056
1008
  W,
1057
1009
  {
1058
1010
  checked: t.value,
1059
- onChange: (i) => t.onChange(i.target.checked),
1011
+ onChange: (n) => t.onChange(n.target.checked),
1060
1012
  "data-testid": "othertypeeventconfigmodal-isPriority-checkbox"
1061
1013
  }
1062
1014
  ),
@@ -1065,20 +1017,20 @@ const bt = ({
1065
1017
  )
1066
1018
  }
1067
1019
  ) }) }),
1068
- /* @__PURE__ */ n(d, { item: !0, children: /* @__PURE__ */ n(N, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ n(
1020
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(N, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1069
1021
  y,
1070
1022
  {
1071
1023
  control: v,
1072
1024
  name: "isSmsTypeFixed",
1073
1025
  defaultValue: !1,
1074
- render: ({ field: t }) => /* @__PURE__ */ n(
1026
+ render: ({ field: t }) => /* @__PURE__ */ i(
1075
1027
  U,
1076
1028
  {
1077
- control: /* @__PURE__ */ n(
1029
+ control: /* @__PURE__ */ i(
1078
1030
  W,
1079
1031
  {
1080
1032
  checked: t.value,
1081
- onChange: (i) => t.onChange(i.target.checked),
1033
+ onChange: (n) => t.onChange(n.target.checked),
1082
1034
  "data-testid": "othertypeeventconfigmodal-isSmsTypeFixed-checkbox"
1083
1035
  }
1084
1036
  ),
@@ -1091,7 +1043,7 @@ const bt = ({
1091
1043
  ]
1092
1044
  }
1093
1045
  ),
1094
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1046
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1095
1047
  M,
1096
1048
  {
1097
1049
  control: v,
@@ -1108,7 +1060,7 @@ const bt = ({
1108
1060
  ) })
1109
1061
  ] }),
1110
1062
  (e == null ? void 0 : e.type) === "EMAIL" && /* @__PURE__ */ a(d, { container: !0, spacing: 2, className: " w-full", children: [
1111
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1063
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1112
1064
  N,
1113
1065
  {
1114
1066
  variant: "outlined",
@@ -1123,9 +1075,9 @@ const bt = ({
1123
1075
  c("Field"),
1124
1076
  " ",
1125
1077
  c("Value"),
1126
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1078
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1127
1079
  ] }),
1128
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1080
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1129
1081
  M,
1130
1082
  {
1131
1083
  control: v,
@@ -1140,7 +1092,7 @@ const bt = ({
1140
1092
  ]
1141
1093
  }
1142
1094
  ) }),
1143
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1095
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1144
1096
  N,
1145
1097
  {
1146
1098
  variant: "outlined",
@@ -1151,9 +1103,9 @@ const bt = ({
1151
1103
  c("Email"),
1152
1104
  " ",
1153
1105
  c("Subject"),
1154
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1106
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1155
1107
  ] }),
1156
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1108
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1157
1109
  M,
1158
1110
  {
1159
1111
  control: v,
@@ -1168,15 +1120,15 @@ const bt = ({
1168
1120
  ]
1169
1121
  }
1170
1122
  ) }),
1171
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1123
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1172
1124
  N,
1173
1125
  {
1174
1126
  variant: "outlined",
1175
1127
  className: " w-[95%] md:w-full overflow-auto",
1176
1128
  "data-testid": "othertypeeventconfigmodal-template",
1177
1129
  children: [
1178
- /* @__PURE__ */ n(h, { variant: "body2", children: c("Template") }),
1179
- /* @__PURE__ */ n(
1130
+ /* @__PURE__ */ i(h, { variant: "body2", children: c("Template") }),
1131
+ /* @__PURE__ */ i(
1180
1132
  C,
1181
1133
  {
1182
1134
  className: " w-full",
@@ -1215,11 +1167,11 @@ const bt = ({
1215
1167
  color: `${u.palette.text.secondary} !important`
1216
1168
  }
1217
1169
  },
1218
- children: /* @__PURE__ */ n(
1170
+ children: /* @__PURE__ */ i(
1219
1171
  be,
1220
1172
  {
1221
1173
  editor: He,
1222
- data: ie("template") || "",
1174
+ data: ne("template") || "",
1223
1175
  config: {
1224
1176
  toolbar: [
1225
1177
  "heading",
@@ -1241,8 +1193,8 @@ const bt = ({
1241
1193
  "redo"
1242
1194
  ]
1243
1195
  },
1244
- onChange: (t, i) => {
1245
- const s = i.getData();
1196
+ onChange: (t, n) => {
1197
+ const s = n.getData();
1246
1198
  p("template", s);
1247
1199
  },
1248
1200
  "data-testid": "othertypeeventconfigmodal-template-ckeditor"
@@ -1254,15 +1206,15 @@ const bt = ({
1254
1206
  }
1255
1207
  ) })
1256
1208
  ] }),
1257
- (e == null ? void 0 : e.type) === "QUERY" && /* @__PURE__ */ n(d, { container: !0, children: /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1209
+ (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__ */ a(
1258
1210
  N,
1259
1211
  {
1260
1212
  variant: "outlined",
1261
1213
  className: " w-full",
1262
1214
  "data-testid": "othertypeeventconfigmodal-querySelect",
1263
1215
  children: [
1264
- /* @__PURE__ */ n(h, { variant: "body2", children: c("Query") }),
1265
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1216
+ /* @__PURE__ */ i(h, { variant: "body2", children: c("Query") }),
1217
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1266
1218
  y,
1267
1219
  {
1268
1220
  className: " w-full",
@@ -1276,15 +1228,15 @@ const bt = ({
1276
1228
  className: " w-full",
1277
1229
  size: "small",
1278
1230
  displayEmpty: !0,
1279
- onChange: (i) => {
1280
- t.onChange(i), Se(i.target.value);
1231
+ onChange: (n) => {
1232
+ t.onChange(n), Se(n.target.value);
1281
1233
  },
1282
1234
  "data-testid": "othertypeeventconfigmodal-queryCode-select",
1283
1235
  children: [
1284
- /* @__PURE__ */ n(T, { value: null, children: /* @__PURE__ */ n(h, { variant: "body2", children: c("Select") }) }),
1285
- R == null ? void 0 : R.map((i, s) => /* @__PURE__ */ n(T, { value: i == null ? void 0 : i.code, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1236
+ /* @__PURE__ */ i(T, { value: null, children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
1237
+ R == null ? void 0 : R.map((n, s) => /* @__PURE__ */ i(T, { value: n == null ? void 0 : n.code, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1286
1238
  " ",
1287
- i == null ? void 0 : i.code
1239
+ n == null ? void 0 : n.code
1288
1240
  ] }) }, s + 1))
1289
1241
  ]
1290
1242
  }
@@ -1294,7 +1246,7 @@ const bt = ({
1294
1246
  ]
1295
1247
  }
1296
1248
  ) }) }),
1297
- k && (e == null ? void 0 : e.type) === "QUERY" && re && /* @__PURE__ */ n(d, { container: !0, className: " w-full", children: k == null ? void 0 : k.map((t, i) => /* @__PURE__ */ n(
1249
+ k && (e == null ? void 0 : e.type) === "QUERY" && re && /* @__PURE__ */ i(d, { container: !0, className: " w-full", children: k == null ? void 0 : k.map((t, n) => /* @__PURE__ */ i(
1298
1250
  d,
1299
1251
  {
1300
1252
  item: !0,
@@ -1308,27 +1260,27 @@ const bt = ({
1308
1260
  justifyContent: "space-between",
1309
1261
  alignItems: "center",
1310
1262
  children: [
1311
- /* @__PURE__ */ n(d, { item: !0, children: /* @__PURE__ */ a(h, { variant: "body1", children: [
1263
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ a(h, { variant: "body1", children: [
1312
1264
  t == null ? void 0 : t.parameterName,
1313
1265
  " ",
1314
1266
  c("Mapping")
1315
1267
  ] }) }),
1316
- /* @__PURE__ */ n(d, { item: !0, children: /* @__PURE__ */ n(N, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ n(
1268
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(N, { component: "fieldset", className: "mr-2", children: /* @__PURE__ */ i(
1317
1269
  y,
1318
1270
  {
1319
1271
  control: v,
1320
- name: `${t == null ? void 0 : t.parameterName}${i}isFixed`,
1272
+ name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
1321
1273
  defaultValue: (t == null ? void 0 : t.isFixed) || !1,
1322
- render: ({ field: s }) => /* @__PURE__ */ n(
1274
+ render: ({ field: s }) => /* @__PURE__ */ i(
1323
1275
  U,
1324
1276
  {
1325
- control: /* @__PURE__ */ n(
1277
+ control: /* @__PURE__ */ i(
1326
1278
  W,
1327
1279
  {
1328
1280
  checked: s.value,
1329
1281
  onChange: (m) => {
1330
1282
  s.onChange(m.target.checked), A(
1331
- i,
1283
+ n,
1332
1284
  "isFixed",
1333
1285
  m.target.checked
1334
1286
  );
@@ -1344,14 +1296,14 @@ const bt = ({
1344
1296
  ]
1345
1297
  }
1346
1298
  ),
1347
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1299
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1348
1300
  y,
1349
1301
  {
1350
1302
  control: v,
1351
1303
  className: " w-full",
1352
- name: `${t == null ? void 0 : t.parameterName}${i}`,
1304
+ name: `${t == null ? void 0 : t.parameterName}${n}`,
1353
1305
  defaultValue: t == null ? void 0 : t.mappingValue,
1354
- render: ({ field: s }) => /* @__PURE__ */ n(
1306
+ render: ({ field: s }) => /* @__PURE__ */ i(
1355
1307
  G,
1356
1308
  {
1357
1309
  variant: "outlined",
@@ -1361,32 +1313,32 @@ const bt = ({
1361
1313
  fullWidth: !0,
1362
1314
  onChange: (m) => {
1363
1315
  p(
1364
- `${t == null ? void 0 : t.parameterName}${i}`,
1316
+ `${t == null ? void 0 : t.parameterName}${n}`,
1365
1317
  m.target.value
1366
1318
  ), A(
1367
- i,
1319
+ n,
1368
1320
  "mappingValue",
1369
1321
  m.target.value
1370
1322
  );
1371
1323
  },
1372
- "data-testid": `othertypeeventconfigmodal-${t == null ? void 0 : t.parameterName}${i}-textfiled`
1324
+ "data-testid": `othertypeeventconfigmodal-${t == null ? void 0 : t.parameterName}${n}-textfiled`
1373
1325
  }
1374
1326
  )
1375
1327
  }
1376
1328
  ) })
1377
1329
  ] })
1378
1330
  },
1379
- i + 1
1331
+ n + 1
1380
1332
  )) }),
1381
- (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && /* @__PURE__ */ n(d, { container: !0, children: /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1333
+ (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__ */ a(
1382
1334
  N,
1383
1335
  {
1384
1336
  variant: "outlined",
1385
1337
  className: " w-full",
1386
1338
  "data-testid": "othertypeeventconfigmodal-systemFunction",
1387
1339
  children: [
1388
- /* @__PURE__ */ n(h, { variant: "body2", children: c("System Function") }),
1389
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1340
+ /* @__PURE__ */ i(h, { variant: "body2", children: c("System Function") }),
1341
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1390
1342
  y,
1391
1343
  {
1392
1344
  className: " w-full",
@@ -1399,8 +1351,8 @@ const bt = ({
1399
1351
  ...t,
1400
1352
  className: " w-full",
1401
1353
  size: "small",
1402
- onChange: (i) => {
1403
- t.onChange(i), Fe(i.target.value);
1354
+ onChange: (n) => {
1355
+ t.onChange(n), Fe(n.target.value);
1404
1356
  },
1405
1357
  "data-testid": "othertypeeventconfigmodal-systemFunctionId-select",
1406
1358
  sx: {
@@ -1422,12 +1374,12 @@ const bt = ({
1422
1374
  }
1423
1375
  },
1424
1376
  children: [
1425
- /* @__PURE__ */ n(T, { value: "", children: /* @__PURE__ */ n(h, { variant: "body2", children: c("None") }) }),
1426
- K == null ? void 0 : K.map((i, s) => /* @__PURE__ */ n(T, { value: i == null ? void 0 : i.id, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1377
+ /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("None") }) }),
1378
+ K == null ? void 0 : K.map((n, s) => /* @__PURE__ */ i(T, { value: n == null ? void 0 : n.id, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1427
1379
  " ",
1428
- i == null ? void 0 : i.name,
1380
+ n == null ? void 0 : n.name,
1429
1381
  " (",
1430
- i == null ? void 0 : i.className,
1382
+ n == null ? void 0 : n.className,
1431
1383
  ")"
1432
1384
  ] }) }, s + 1))
1433
1385
  ]
@@ -1438,7 +1390,7 @@ const bt = ({
1438
1390
  ]
1439
1391
  }
1440
1392
  ) }) }),
1441
- $ && (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && Te && /* @__PURE__ */ n(d, { container: !0, children: $ == null ? void 0 : $.map((t, i) => /* @__PURE__ */ n(
1393
+ $ && (e == null ? void 0 : e.type) === "SYSTEM_FUNCTION" && Te && /* @__PURE__ */ i(d, { container: !0, children: $ == null ? void 0 : $.map((t, n) => /* @__PURE__ */ i(
1442
1394
  d,
1443
1395
  {
1444
1396
  item: !0,
@@ -1452,32 +1404,32 @@ const bt = ({
1452
1404
  justifyContent: "space-between",
1453
1405
  alignItems: "center",
1454
1406
  children: [
1455
- /* @__PURE__ */ n(d, { item: !0, xs: !0, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1407
+ /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1456
1408
  t == null ? void 0 : t.parameterName,
1457
1409
  " ",
1458
1410
  c("Mapping")
1459
1411
  ] }) }),
1460
- /* @__PURE__ */ n(d, { item: !0, children: /* @__PURE__ */ n(
1412
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
1461
1413
  N,
1462
1414
  {
1463
1415
  component: "fieldset",
1464
1416
  className: "mr-2",
1465
- children: /* @__PURE__ */ n(
1417
+ children: /* @__PURE__ */ i(
1466
1418
  y,
1467
1419
  {
1468
1420
  control: v,
1469
- name: `${t == null ? void 0 : t.parameterName}${i}isFixed`,
1421
+ name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
1470
1422
  defaultValue: (t == null ? void 0 : t.isFixed) || !1,
1471
- render: ({ field: s }) => /* @__PURE__ */ n(
1423
+ render: ({ field: s }) => /* @__PURE__ */ i(
1472
1424
  U,
1473
1425
  {
1474
- control: /* @__PURE__ */ n(
1426
+ control: /* @__PURE__ */ i(
1475
1427
  W,
1476
1428
  {
1477
1429
  checked: s.value,
1478
1430
  onChange: (m) => {
1479
1431
  s.onChange(m.target.checked), A(
1480
- i,
1432
+ n,
1481
1433
  "isFixed",
1482
1434
  m.target.checked
1483
1435
  );
@@ -1495,14 +1447,14 @@ const bt = ({
1495
1447
  ]
1496
1448
  }
1497
1449
  ),
1498
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1450
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1499
1451
  y,
1500
1452
  {
1501
1453
  control: v,
1502
1454
  className: " w-full",
1503
- name: `${t == null ? void 0 : t.parameterName}${i}`,
1455
+ name: `${t == null ? void 0 : t.parameterName}${n}`,
1504
1456
  defaultValue: t == null ? void 0 : t.mappingValue,
1505
- render: ({ field: s }) => /* @__PURE__ */ n(
1457
+ render: ({ field: s }) => /* @__PURE__ */ i(
1506
1458
  G,
1507
1459
  {
1508
1460
  variant: "outlined",
@@ -1512,25 +1464,25 @@ const bt = ({
1512
1464
  fullWidth: !0,
1513
1465
  onChange: (m) => {
1514
1466
  p(
1515
- `${t == null ? void 0 : t.parameterName}${i}`,
1467
+ `${t == null ? void 0 : t.parameterName}${n}`,
1516
1468
  m.target.value
1517
1469
  ), A(
1518
- i,
1470
+ n,
1519
1471
  "mappingValue",
1520
1472
  m.target.value
1521
1473
  );
1522
1474
  },
1523
- "data-testid": `othertypeeventconfigmodal-${t == null ? void 0 : t.parameterName}${i}-textfiled`
1475
+ "data-testid": `othertypeeventconfigmodal-${t == null ? void 0 : t.parameterName}${n}-textfiled`
1524
1476
  }
1525
1477
  )
1526
1478
  }
1527
1479
  ) })
1528
1480
  ] })
1529
1481
  },
1530
- i + 1
1482
+ n + 1
1531
1483
  )) }),
1532
1484
  (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && /* @__PURE__ */ a(d, { container: !0, spacing: 2, children: [
1533
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1485
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1534
1486
  N,
1535
1487
  {
1536
1488
  variant: "outlined",
@@ -1545,9 +1497,9 @@ const bt = ({
1545
1497
  c("Field"),
1546
1498
  " ",
1547
1499
  c("Name"),
1548
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1500
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1549
1501
  ] }),
1550
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1502
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1551
1503
  M,
1552
1504
  {
1553
1505
  control: v,
@@ -1562,7 +1514,7 @@ const bt = ({
1562
1514
  ]
1563
1515
  }
1564
1516
  ) }),
1565
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1517
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1566
1518
  N,
1567
1519
  {
1568
1520
  variant: "outlined",
@@ -1573,10 +1525,10 @@ const bt = ({
1573
1525
  c("Notification"),
1574
1526
  " ",
1575
1527
  c("Type"),
1576
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1528
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1577
1529
  ] }),
1578
1530
  /* @__PURE__ */ a(C, { className: " w-full", children: [
1579
- /* @__PURE__ */ n(
1531
+ /* @__PURE__ */ i(
1580
1532
  y,
1581
1533
  {
1582
1534
  className: " w-full",
@@ -1590,19 +1542,19 @@ const bt = ({
1590
1542
  className: " w-full",
1591
1543
  size: "small",
1592
1544
  error: f == null ? void 0 : f.notificationTypeId,
1593
- onChange: (i) => {
1594
- t.onChange(i), ke(i.target.value);
1545
+ onChange: (n) => {
1546
+ t.onChange(n), ke(n.target.value);
1595
1547
  },
1596
1548
  "data-testid": "othertypeeventconfigmodal-notificationtypeid-select",
1597
1549
  children: [
1598
- /* @__PURE__ */ n(T, { value: "", children: /* @__PURE__ */ n(h, { variant: "body2", children: c("None") }) }),
1599
- q == null ? void 0 : q.map((i, s) => /* @__PURE__ */ n(T, { value: i == null ? void 0 : i.id, children: /* @__PURE__ */ n(h, { variant: "body2", children: i == null ? void 0 : i.type }) }, s + 1))
1550
+ /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("None") }) }),
1551
+ q == null ? void 0 : q.map((n, s) => /* @__PURE__ */ i(T, { value: n == null ? void 0 : n.id, children: /* @__PURE__ */ i(h, { variant: "body2", children: n == null ? void 0 : n.type }) }, s + 1))
1600
1552
  ]
1601
1553
  }
1602
1554
  )
1603
1555
  }
1604
1556
  ),
1605
- (f == null ? void 0 : f.notificationTypeId) && /* @__PURE__ */ n(
1557
+ (f == null ? void 0 : f.notificationTypeId) && /* @__PURE__ */ i(
1606
1558
  "p",
1607
1559
  {
1608
1560
  className: "error-helper",
@@ -1616,14 +1568,14 @@ const bt = ({
1616
1568
  ) })
1617
1569
  ] }),
1618
1570
  (e == null ? void 0 : e.type) === "PUSH_NOTIFICATION" && X && /* @__PURE__ */ a(d, { container: !0, spacing: 2, children: [
1619
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(N, { variant: "outlined", className: " w-full", children: [
1571
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(N, { variant: "outlined", className: " w-full", children: [
1620
1572
  /* @__PURE__ */ a(h, { variant: "body2", children: [
1621
1573
  c("Notification"),
1622
1574
  " ",
1623
1575
  c("Heading"),
1624
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1576
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1625
1577
  ] }),
1626
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1578
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1627
1579
  M,
1628
1580
  {
1629
1581
  control: v,
@@ -1639,8 +1591,8 @@ const bt = ({
1639
1591
  /* @__PURE__ */ a(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
1640
1592
  " ",
1641
1593
  /* @__PURE__ */ a(N, { variant: "outlined", className: " w-full", children: [
1642
- /* @__PURE__ */ n(h, { variant: "body2", children: c("Template") }),
1643
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1594
+ /* @__PURE__ */ i(h, { variant: "body2", children: c("Template") }),
1595
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1644
1596
  Z,
1645
1597
  {
1646
1598
  control: v,
@@ -1655,7 +1607,7 @@ const bt = ({
1655
1607
  ] })
1656
1608
  ] })
1657
1609
  ] }),
1658
- (e == null ? void 0 : e.type) === "KAFKA_SYNC" && /* @__PURE__ */ n(d, { container: !0, children: /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, className: " w-full", children: /* @__PURE__ */ a(
1610
+ (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__ */ a(
1659
1611
  N,
1660
1612
  {
1661
1613
  variant: "outlined",
@@ -1664,9 +1616,9 @@ const bt = ({
1664
1616
  children: [
1665
1617
  /* @__PURE__ */ a(h, { variant: "body2", children: [
1666
1618
  c("Kafka Config"),
1667
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1619
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1668
1620
  ] }),
1669
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1621
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1670
1622
  y,
1671
1623
  {
1672
1624
  className: " w-full",
@@ -1681,13 +1633,13 @@ const bt = ({
1681
1633
  className: " w-full",
1682
1634
  size: "small",
1683
1635
  displayEmpty: !0,
1684
- onChange: (i) => {
1685
- t.onChange(i), $e(i.target.value);
1636
+ onChange: (n) => {
1637
+ t.onChange(n), $e(n.target.value);
1686
1638
  },
1687
1639
  "data-testid": "othertypeeventconfigmodal-kafkaConfig-select",
1688
1640
  children: [
1689
- /* @__PURE__ */ n(T, { value: "", children: /* @__PURE__ */ n(h, { variant: "body2", children: c("Select") }) }),
1690
- j == null ? void 0 : j.map((i, s) => /* @__PURE__ */ n(T, { value: i.form_type, children: /* @__PURE__ */ n(h, { variant: "body2", children: i.form_type }) }, s))
1641
+ /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
1642
+ j == null ? void 0 : j.map((n, s) => /* @__PURE__ */ i(T, { value: n.form_type, children: /* @__PURE__ */ i(h, { variant: "body2", children: n.form_type }) }, s))
1691
1643
  ]
1692
1644
  }
1693
1645
  )
@@ -1696,7 +1648,7 @@ const bt = ({
1696
1648
  ]
1697
1649
  }
1698
1650
  ) }) }),
1699
- z && (e == null ? void 0 : e.type) === "KAFKA_SYNC" && oe && z.length > 0 && /* @__PURE__ */ n(d, { container: !0, className: " w-full", children: z == null ? void 0 : z.map((t, i) => /* @__PURE__ */ n(
1651
+ z && (e == null ? void 0 : e.type) === "KAFKA_SYNC" && oe && z.length > 0 && /* @__PURE__ */ i(d, { container: !0, className: " w-full", children: z == null ? void 0 : z.map((t, n) => /* @__PURE__ */ i(
1700
1652
  d,
1701
1653
  {
1702
1654
  item: !0,
@@ -1710,32 +1662,32 @@ const bt = ({
1710
1662
  justifyContent: "space-between",
1711
1663
  alignItems: "center",
1712
1664
  children: [
1713
- /* @__PURE__ */ n(d, { item: !0, xs: !0, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1665
+ /* @__PURE__ */ i(d, { item: !0, xs: !0, children: /* @__PURE__ */ a(h, { variant: "body2", children: [
1714
1666
  t == null ? void 0 : t.parameterName,
1715
1667
  " ",
1716
1668
  c("Mapping")
1717
1669
  ] }) }),
1718
- /* @__PURE__ */ n(d, { item: !0, children: /* @__PURE__ */ n(
1670
+ /* @__PURE__ */ i(d, { item: !0, children: /* @__PURE__ */ i(
1719
1671
  N,
1720
1672
  {
1721
1673
  component: "fieldset",
1722
1674
  className: "mr-2",
1723
- children: /* @__PURE__ */ n(
1675
+ children: /* @__PURE__ */ i(
1724
1676
  y,
1725
1677
  {
1726
1678
  control: v,
1727
- name: `${t == null ? void 0 : t.parameterName}${i}isFixed`,
1679
+ name: `${t == null ? void 0 : t.parameterName}${n}isFixed`,
1728
1680
  defaultValue: (t == null ? void 0 : t.isFixed) || !1,
1729
- render: ({ field: s }) => /* @__PURE__ */ n(
1681
+ render: ({ field: s }) => /* @__PURE__ */ i(
1730
1682
  U,
1731
1683
  {
1732
- control: /* @__PURE__ */ n(
1684
+ control: /* @__PURE__ */ i(
1733
1685
  W,
1734
1686
  {
1735
1687
  checked: s.value,
1736
1688
  onChange: (m) => {
1737
1689
  s.onChange(m.target.checked), A(
1738
- i,
1690
+ n,
1739
1691
  "isFixed",
1740
1692
  m.target.checked
1741
1693
  );
@@ -1753,14 +1705,14 @@ const bt = ({
1753
1705
  ]
1754
1706
  }
1755
1707
  ),
1756
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1708
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1757
1709
  y,
1758
1710
  {
1759
1711
  control: v,
1760
1712
  className: " w-full",
1761
- name: `${t == null ? void 0 : t.parameterName}${i}`,
1713
+ name: `${t == null ? void 0 : t.parameterName}${n}`,
1762
1714
  defaultValue: (t == null ? void 0 : t.mappingValue) || "",
1763
- render: ({ field: s }) => /* @__PURE__ */ n(
1715
+ render: ({ field: s }) => /* @__PURE__ */ i(
1764
1716
  G,
1765
1717
  {
1766
1718
  variant: "outlined",
@@ -1770,24 +1722,24 @@ const bt = ({
1770
1722
  fullWidth: !0,
1771
1723
  onChange: (m) => {
1772
1724
  p(
1773
- `${t == null ? void 0 : t.parameterName}${i}`,
1725
+ `${t == null ? void 0 : t.parameterName}${n}`,
1774
1726
  m.target.value
1775
1727
  ), A(
1776
- i,
1728
+ n,
1777
1729
  "mappingValue",
1778
1730
  m.target.value
1779
1731
  );
1780
1732
  },
1781
- "data-testid": `othertypeeventconfigmodal-kafka-${t == null ? void 0 : t.parameterName}${i}-textfield`
1733
+ "data-testid": `othertypeeventconfigmodal-kafka-${t == null ? void 0 : t.parameterName}${n}-textfield`
1782
1734
  }
1783
1735
  )
1784
1736
  }
1785
1737
  ) })
1786
1738
  ] })
1787
1739
  },
1788
- `${oe}-${t == null ? void 0 : t.parameterName}-${i}`
1740
+ `${oe}-${t == null ? void 0 : t.parameterName}-${n}`
1789
1741
  )) }),
1790
- ((e == null ? void 0 : e.type) === "SMS" || (e == null ? void 0 : e.type) == "QUERY" && !re) && /* @__PURE__ */ n(d, { container: !0, spacing: 2, children: /* @__PURE__ */ a(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
1742
+ ((e == null ? void 0 : e.type) === "SMS" || (e == null ? void 0 : e.type) == "QUERY" && !re) && /* @__PURE__ */ i(d, { container: !0, spacing: 2, children: /* @__PURE__ */ a(d, { item: !0, size: { xs: 12 }, className: " w-full", children: [
1791
1743
  " ",
1792
1744
  /* @__PURE__ */ a(
1793
1745
  N,
@@ -1796,10 +1748,10 @@ const bt = ({
1796
1748
  className: " w-full",
1797
1749
  "data-testid": e.type === "QUERY" ? "othertypeeventconfigmodal-queryArea" : "othertypeeventconfigmodal-template",
1798
1750
  children: [
1799
- /* @__PURE__ */ n(h, { variant: "body2", children: c(
1751
+ /* @__PURE__ */ i(h, { variant: "body2", children: c(
1800
1752
  e.type === "QUERY" ? "Query" : "Template"
1801
1753
  ) }),
1802
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1754
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1803
1755
  Z,
1804
1756
  {
1805
1757
  control: v,
@@ -1814,7 +1766,7 @@ const bt = ({
1814
1766
  }
1815
1767
  )
1816
1768
  ] }) }),
1817
- (e == null ? void 0 : e.type) != "EXCEPTION" && (e == null ? void 0 : e.type) != "SYSTEM_FUNCTION" && /* @__PURE__ */ n(d, { container: !0, spacing: 2, children: /* @__PURE__ */ a(d, { item: !0, size: { xs: 12 }, className: "mt-2 w-full", children: [
1769
+ (e == null ? void 0 : e.type) != "EXCEPTION" && (e == null ? void 0 : e.type) != "SYSTEM_FUNCTION" && /* @__PURE__ */ i(d, { container: !0, spacing: 2, children: /* @__PURE__ */ a(d, { item: !0, size: { xs: 12 }, className: "mt-2 w-full", children: [
1818
1770
  /* @__PURE__ */ a(
1819
1771
  N,
1820
1772
  {
@@ -1826,10 +1778,10 @@ const bt = ({
1826
1778
  c("Trigger"),
1827
1779
  " ",
1828
1780
  c("When"),
1829
- /* @__PURE__ */ n("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1781
+ /* @__PURE__ */ i("span", { style: { color: "red", marginLeft: 4 }, children: "*" })
1830
1782
  ] }),
1831
1783
  /* @__PURE__ */ a(C, { className: " w-full", children: [
1832
- /* @__PURE__ */ n(
1784
+ /* @__PURE__ */ i(
1833
1785
  y,
1834
1786
  {
1835
1787
  name: "trigerWhen",
@@ -1846,15 +1798,15 @@ const bt = ({
1846
1798
  displayEmpty: !0,
1847
1799
  "data-testid": "othertypeeventconfigmodal-trigegrwhen-select",
1848
1800
  children: [
1849
- /* @__PURE__ */ n(T, { value: "", children: /* @__PURE__ */ n(h, { variant: "body2", children: c("Select") }) }),
1850
- /* @__PURE__ */ n(T, { value: "IMMEDIATELY", children: /* @__PURE__ */ n(h, { variant: "body2", children: c("Immediately") }) }),
1851
- /* @__PURE__ */ n(T, { value: "AFTER", children: /* @__PURE__ */ n(h, { variant: "body2", children: c("After") }) })
1801
+ /* @__PURE__ */ i(T, { value: "", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Select") }) }),
1802
+ /* @__PURE__ */ i(T, { value: "IMMEDIATELY", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Immediately") }) }),
1803
+ /* @__PURE__ */ i(T, { value: "AFTER", children: /* @__PURE__ */ i(h, { variant: "body2", children: c("After") }) })
1852
1804
  ]
1853
1805
  }
1854
1806
  )
1855
1807
  }
1856
1808
  ),
1857
- (f == null ? void 0 : f.trigerWhen) && /* @__PURE__ */ n(
1809
+ (f == null ? void 0 : f.trigerWhen) && /* @__PURE__ */ i(
1858
1810
  "p",
1859
1811
  {
1860
1812
  className: "error-helper",
@@ -1867,15 +1819,15 @@ const bt = ({
1867
1819
  }
1868
1820
  ),
1869
1821
  ye === "AFTER" && /* @__PURE__ */ a(Me, { children: [
1870
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ a(
1822
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ a(
1871
1823
  N,
1872
1824
  {
1873
1825
  variant: "outlined",
1874
1826
  className: " w-full",
1875
1827
  "data-testid": "othertypeeventconfigmodal-dayField",
1876
1828
  children: [
1877
- /* @__PURE__ */ n(h, { variant: "body2", children: c("Day") }),
1878
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1829
+ /* @__PURE__ */ i(h, { variant: "body2", children: c("Day") }),
1830
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1879
1831
  M,
1880
1832
  {
1881
1833
  control: v,
@@ -1891,15 +1843,15 @@ const bt = ({
1891
1843
  ]
1892
1844
  }
1893
1845
  ) }),
1894
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ a(
1846
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ a(
1895
1847
  N,
1896
1848
  {
1897
1849
  variant: "outlined",
1898
1850
  className: " w-full",
1899
1851
  "data-testid": "othertypeeventconfigmodal-hourField",
1900
1852
  children: [
1901
- /* @__PURE__ */ n(h, { variant: "body2", children: c("Hour") }),
1902
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1853
+ /* @__PURE__ */ i(h, { variant: "body2", children: c("Hour") }),
1854
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1903
1855
  M,
1904
1856
  {
1905
1857
  control: v,
@@ -1915,15 +1867,15 @@ const bt = ({
1915
1867
  ]
1916
1868
  }
1917
1869
  ) }),
1918
- /* @__PURE__ */ n(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ a(
1870
+ /* @__PURE__ */ i(d, { item: !0, size: { xs: 12 }, children: /* @__PURE__ */ a(
1919
1871
  N,
1920
1872
  {
1921
1873
  variant: "outlined",
1922
1874
  className: " w-full",
1923
1875
  "data-testid": "othertypeeventconfigmodal-minuteField",
1924
1876
  children: [
1925
- /* @__PURE__ */ n(h, { variant: "body2", children: c("Minute") }),
1926
- /* @__PURE__ */ n(C, { className: " w-full", children: /* @__PURE__ */ n(
1877
+ /* @__PURE__ */ i(h, { variant: "body2", children: c("Minute") }),
1878
+ /* @__PURE__ */ i(C, { className: " w-full", children: /* @__PURE__ */ i(
1927
1879
  M,
1928
1880
  {
1929
1881
  control: v,
@@ -1953,7 +1905,7 @@ const bt = ({
1953
1905
  mt: 1,
1954
1906
  mb: 1,
1955
1907
  children: [
1956
- /* @__PURE__ */ n(
1908
+ /* @__PURE__ */ i(
1957
1909
  ce,
1958
1910
  {
1959
1911
  variant: "contained",
@@ -1963,10 +1915,10 @@ const bt = ({
1963
1915
  J(), Y();
1964
1916
  },
1965
1917
  "data-testid": "othertypeeventconfigmodal-cancel-button",
1966
- children: /* @__PURE__ */ n(h, { variant: "body2", children: c("Cancel") })
1918
+ children: /* @__PURE__ */ i(h, { variant: "body2", children: c("Cancel") })
1967
1919
  }
1968
1920
  ),
1969
- /* @__PURE__ */ n(
1921
+ /* @__PURE__ */ i(
1970
1922
  ce,
1971
1923
  {
1972
1924
  size: "small",
@@ -1998,4 +1950,4 @@ bt.propTypes = {
1998
1950
  export {
1999
1951
  bt as default
2000
1952
  };
2001
- //# sourceMappingURL=OtherTypeEventConfigModal-DPB8IYzj.js.map
1953
+ //# sourceMappingURL=OtherTypeEventConfigModal-ZnCGWm9v.js.map