@bigbinary/neeto-rules-frontend 2.7.37-beta2 → 2.7.38-beta1

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.
Files changed (52) hide show
  1. package/README.md +2 -0
  2. package/dist/.ready +1 -1
  3. package/dist/NeetoRules.js +1 -1
  4. package/dist/NeetoRulesBuilder.js +2 -2
  5. package/dist/NeetoRulesForm.js +2 -2
  6. package/dist/RulePreview.js +18 -13
  7. package/dist/RulePreview.js.map +1 -1
  8. package/dist/cjs/NeetoRules.js +1 -1
  9. package/dist/cjs/NeetoRulesBuilder.js +2 -2
  10. package/dist/cjs/NeetoRulesForm.js +2 -2
  11. package/dist/cjs/RulePreview.js +18 -13
  12. package/dist/cjs/RulePreview.js.map +1 -1
  13. package/dist/cjs/index.js +2 -2
  14. package/dist/cjs/v2/NeetoRules.js +2 -2
  15. package/dist/cjs/v2/NeetoRulesBuilder.js +2 -2
  16. package/dist/cjs/v2/NeetoRulesForm.js +12 -5
  17. package/dist/cjs/v2/NeetoRulesForm.js.map +1 -1
  18. package/dist/cjs/v2/RulePreview.js +19 -13
  19. package/dist/cjs/v2/RulePreview.js.map +1 -1
  20. package/dist/cjs/v2/RulesReorder.js +1 -1
  21. package/dist/cjs/v2/index.js +3 -3
  22. package/dist/{index-nOyFBBTX.js → index-CRxHZLEZ.js} +3 -2
  23. package/dist/index-CRxHZLEZ.js.map +1 -0
  24. package/dist/{index-5dTL7Uf8.js → index-Cr27L32X.js} +2 -2
  25. package/dist/{index-5dTL7Uf8.js.map → index-Cr27L32X.js.map} +1 -1
  26. package/dist/{index-DeSkVcPm.js → index-D7DIAuwa.js} +2 -2
  27. package/dist/{index-DeSkVcPm.js.map → index-D7DIAuwa.js.map} +1 -1
  28. package/dist/{index-CA1_c_AW.js → index-DA8DSoSK.js} +3 -2
  29. package/dist/index-DA8DSoSK.js.map +1 -0
  30. package/dist/{index-DU1giKOy.js → index-DnUyU-KI.js} +2 -2
  31. package/dist/{index-DU1giKOy.js.map → index-DnUyU-KI.js.map} +1 -1
  32. package/dist/{index-DRTOsVi5.js → index-Omo1J36W.js} +2 -2
  33. package/dist/{index-DRTOsVi5.js.map → index-Omo1J36W.js.map} +1 -1
  34. package/dist/index.js +2 -2
  35. package/dist/{utils-CvvJ6wvi.js → utils-B3roKiff.js} +1 -5
  36. package/dist/utils-B3roKiff.js.map +1 -0
  37. package/dist/{utils-a-9NZPeQ.js → utils-CeTB10_T.js} +3 -6
  38. package/dist/utils-CeTB10_T.js.map +1 -0
  39. package/dist/v2/NeetoRules.js +2 -2
  40. package/dist/v2/NeetoRulesBuilder.js +2 -2
  41. package/dist/v2/NeetoRulesForm.js +12 -5
  42. package/dist/v2/NeetoRulesForm.js.map +1 -1
  43. package/dist/v2/RulePreview.js +19 -13
  44. package/dist/v2/RulePreview.js.map +1 -1
  45. package/dist/v2/RulesReorder.js +1 -1
  46. package/dist/v2/index.js +3 -3
  47. package/package.json +3 -3
  48. package/types.d.ts +1 -0
  49. package/dist/index-CA1_c_AW.js.map +0 -1
  50. package/dist/index-nOyFBBTX.js.map +0 -1
  51. package/dist/utils-CvvJ6wvi.js.map +0 -1
  52. package/dist/utils-a-9NZPeQ.js.map +0 -1
package/dist/index.js CHANGED
@@ -34,7 +34,7 @@ import '@babel/runtime/helpers/objectWithoutProperties';
34
34
  import 'axios';
35
35
  import '@bigbinary/neeto-molecules/Header';
36
36
  import '@bigbinary/neetoui/Button';
37
- import './utils-a-9NZPeQ.js';
37
+ import './utils-CeTB10_T.js';
38
38
  import '@bigbinary/neeto-commons-frontend/initializers';
39
39
  import '@bigbinary/neeto-commons-frontend/utils';
40
40
  import 'zustand/shallow';
@@ -54,7 +54,7 @@ import 'react-router-dom';
54
54
  import '@babel/runtime/helpers/objectDestructuringEmpty';
55
55
  import './keyboardShortcuts-CsMwT9YF.js';
56
56
  import 'classnames';
57
- import './index-5dTL7Uf8.js';
57
+ import './index-Cr27L32X.js';
58
58
  import '@babel/runtime/helpers/typeof';
59
59
  import 'yup';
60
60
  import '@bigbinary/neeto-icons/Search';
@@ -15,9 +15,6 @@ var TIME_FORMAT = "HH:mm";
15
15
  var LOCALIZED_TIME_FORMAT = "LT";
16
16
  var LOCALIZED_DATE_TIME_FORMAT = "ll LT";
17
17
 
18
- var toLowerCaseValue = function toLowerCaseValue(value) {
19
- return ramda.isNil(value) ? value : String(value).toLowerCase();
20
- };
21
18
  var createRoutes = function createRoutes(basePath) {
22
19
  return {
23
20
  index: basePath,
@@ -82,5 +79,4 @@ exports.dotPath = dotPath;
82
79
  exports.getDateTimeFormattedValue = getDateTimeFormattedValue;
83
80
  exports.getDateTimeValue = getDateTimeValue;
84
81
  exports.getSeparator = getSeparator;
85
- exports.toLowerCaseValue = toLowerCaseValue;
86
- //# sourceMappingURL=utils-CvvJ6wvi.js.map
82
+ //# sourceMappingURL=utils-B3roKiff.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-B3roKiff.js","sources":["../app/javascript/src/constants/dateTime.js","../app/javascript/src/utils.js"],"sourcesContent":["export const DATE_TIME_TYPES = {\n datetime: \"datetime\",\n date: \"date\",\n time: \"time\",\n};\n\nexport const DATE_FORMAT = \"YYYY-MM-DD\";\nexport const DATE_TIME_FORMAT = \"YYYY-MM-DD HH:mm\";\nexport const TIME_FORMAT = \"HH:mm\";\n\nexport const LOCALIZED_TIME_FORMAT = \"LT\";\nexport const LOCALIZED_DATE_TIME_FORMAT = \"ll LT\";\n","import { globalProps } from \"neetocommons/initializers\";\nimport { dayjs, dateFormat } from \"neetocommons/utils\";\nimport { path, split, useWith } from \"ramda\";\n\nimport {\n DATE_TIME_TYPES,\n LOCALIZED_TIME_FORMAT,\n LOCALIZED_DATE_TIME_FORMAT,\n} from \"./constants/dateTime\";\n\nexport const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n\nexport const getDateTimeValue = ({ date, format, type, timezone }) => {\n if (!date) return \"\";\n\n if (type === DATE_TIME_TYPES.date) return dayjs(date);\n\n return dayjs.tz(date, format, timezone).tz(globalProps.user?.timeZone);\n};\n\nexport const getDateTimeFormattedValue = ({ date, format, type, timezone }) => {\n if (!date) return \"\";\n\n if (type === DATE_TIME_TYPES.date) return dateFormat.date(date);\n\n const parsedDate = getDateTimeValue({ date, format, type, timezone });\n\n if (type === DATE_TIME_TYPES.time) {\n return parsedDate.format(LOCALIZED_TIME_FORMAT);\n }\n\n if (type === DATE_TIME_TYPES.datetime) {\n return parsedDate.format(LOCALIZED_DATE_TIME_FORMAT);\n }\n\n return date;\n};\n\n// eslint-disable-next-line react-hooks/rules-of-hooks\nexport const dotPath = useWith(path, [split(\".\")]);\n"],"names":["DATE_TIME_TYPES","datetime","date","time","DATE_FORMAT","DATE_TIME_FORMAT","TIME_FORMAT","LOCALIZED_TIME_FORMAT","LOCALIZED_DATE_TIME_FORMAT","createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","toLowerCase","getDateTimeValue","_ref2","_globalProps$user","format","type","timezone","dayjs","tz","globalProps","user","timeZone","getDateTimeFormattedValue","_ref3","dateFormat","parsedDate","dotPath","useWith","path","split"],"mappings":";;;;;;AAAO,IAAMA,eAAe,GAAG;AAC7BC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE;AACR;AAEO,IAAMC,WAAW,GAAG;AACpB,IAAMC,gBAAgB,GAAG;AACzB,IAAMC,WAAW,GAAG;AAEpB,IAAMC,qBAAqB,GAAG,IAAI;AAClC,I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B,qBAAqB,CAAC;AACjD,EAAA;AAEA,EAAA,IAAIuB,IAAI,KAAK9B,eAAe,CAACC,QAAQ,EAAE;AACrC,IAAA,OAAOuC,UAAU,CAACX,MAAM,CAACrB,0BAA0B,CAAC;AACtD,EAAA;AAEA,EAAA,OAAON,IAAI;AACb;;AAEA;AACO,IAAMuC,OAAO,GAAGC,aAAO,CAACC,UAAI,EAAE,CAACC,WAAK,CAAC,GAAG,CAAC,CAAC;;;;;;;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
2
2
  import { dayjs, dateFormat } from '@bigbinary/neeto-commons-frontend/utils';
3
- import { useWith, path, split, isNil } from 'ramda';
3
+ import { useWith, path, split } from 'ramda';
4
4
 
5
5
  var DATE_TIME_TYPES = {
6
6
  datetime: "datetime",
@@ -13,9 +13,6 @@ var TIME_FORMAT = "HH:mm";
13
13
  var LOCALIZED_TIME_FORMAT = "LT";
14
14
  var LOCALIZED_DATE_TIME_FORMAT = "ll LT";
15
15
 
16
- var toLowerCaseValue = function toLowerCaseValue(value) {
17
- return isNil(value) ? value : String(value).toLowerCase();
18
- };
19
16
  var createRoutes = function createRoutes(basePath) {
20
17
  return {
21
18
  index: basePath,
@@ -71,5 +68,5 @@ var getDateTimeFormattedValue = function getDateTimeFormattedValue(_ref3) {
71
68
  // eslint-disable-next-line react-hooks/rules-of-hooks
72
69
  var dotPath = useWith(path, [split(".")]);
73
70
 
74
- export { DATE_FORMAT as D, TIME_FORMAT as T, getDateTimeFormattedValue as a, getDateTimeValue as b, createRoutes as c, DATE_TIME_TYPES as d, DATE_TIME_FORMAT as e, dotPath as f, getSeparator as g, toLowerCaseValue as t };
75
- //# sourceMappingURL=utils-a-9NZPeQ.js.map
71
+ export { DATE_FORMAT as D, TIME_FORMAT as T, getDateTimeFormattedValue as a, getDateTimeValue as b, createRoutes as c, DATE_TIME_TYPES as d, DATE_TIME_FORMAT as e, dotPath as f, getSeparator as g };
72
+ //# sourceMappingURL=utils-CeTB10_T.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils-CeTB10_T.js","sources":["../app/javascript/src/constants/dateTime.js","../app/javascript/src/utils.js"],"sourcesContent":["export const DATE_TIME_TYPES = {\n datetime: \"datetime\",\n date: \"date\",\n time: \"time\",\n};\n\nexport const DATE_FORMAT = \"YYYY-MM-DD\";\nexport const DATE_TIME_FORMAT = \"YYYY-MM-DD HH:mm\";\nexport const TIME_FORMAT = \"HH:mm\";\n\nexport const LOCALIZED_TIME_FORMAT = \"LT\";\nexport const LOCALIZED_DATE_TIME_FORMAT = \"ll LT\";\n","import { globalProps } from \"neetocommons/initializers\";\nimport { dayjs, dateFormat } from \"neetocommons/utils\";\nimport { path, split, useWith } from \"ramda\";\n\nimport {\n DATE_TIME_TYPES,\n LOCALIZED_TIME_FORMAT,\n LOCALIZED_DATE_TIME_FORMAT,\n} from \"./constants/dateTime\";\n\nexport const createRoutes = basePath => ({\n index: basePath,\n new: `${basePath}/new`,\n edit: `${basePath}/:ruleId/edit`,\n});\n\nexport const getSeparator = ({\n defaultSeparator,\n index = 0,\n selectedField,\n}) => {\n if (!selectedField || !selectedField.separator) return defaultSeparator;\n\n if (!Array.isArray(selectedField.separator)) {\n return selectedField.separator?.toLowerCase();\n }\n\n return selectedField.separator[index]?.toLowerCase() ?? defaultSeparator;\n};\n\nexport const getDateTimeValue = ({ date, format, type, timezone }) => {\n if (!date) return \"\";\n\n if (type === DATE_TIME_TYPES.date) return dayjs(date);\n\n return dayjs.tz(date, format, timezone).tz(globalProps.user?.timeZone);\n};\n\nexport const getDateTimeFormattedValue = ({ date, format, type, timezone }) => {\n if (!date) return \"\";\n\n if (type === DATE_TIME_TYPES.date) return dateFormat.date(date);\n\n const parsedDate = getDateTimeValue({ date, format, type, timezone });\n\n if (type === DATE_TIME_TYPES.time) {\n return parsedDate.format(LOCALIZED_TIME_FORMAT);\n }\n\n if (type === DATE_TIME_TYPES.datetime) {\n return parsedDate.format(LOCALIZED_DATE_TIME_FORMAT);\n }\n\n return date;\n};\n\n// eslint-disable-next-line react-hooks/rules-of-hooks\nexport const dotPath = useWith(path, [split(\".\")]);\n"],"names":["DATE_TIME_TYPES","datetime","date","time","DATE_FORMAT","DATE_TIME_FORMAT","TIME_FORMAT","LOCALIZED_TIME_FORMAT","LOCALIZED_DATE_TIME_FORMAT","createRoutes","basePath","index","concat","edit","getSeparator","_ref","_selectedField$separa2","_selectedField$separa3","defaultSeparator","_ref$index","selectedField","separator","Array","isArray","_selectedField$separa","toLowerCase","getDateTimeValue","_ref2","_globalProps$user","format","type","timezone","dayjs","tz","globalProps","user","timeZone","getDateTimeFormattedValue","_ref3","dateFormat","parsedDate","dotPath","useWith","path","split"],"mappings":";;;;AAAO,IAAMA,eAAe,GAAG;AAC7BC,EAAAA,QAAQ,EAAE,UAAU;AACpBC,EAAAA,IAAI,EAAE,MAAM;AACZC,EAAAA,IAAI,EAAE;AACR;AAEO,IAAMC,WAAW,GAAG;AACpB,IAAMC,gBAAgB,GAAG;AACzB,IAAMC,WAAW,GAAG;AAEpB,IAAMC,qBAAqB,GAAG,IAAI;AAClC,IAAMC,0BAA0B,GAAG,OAAO;;ICDpCC,YAAY,GAAG,SAAfA,YAAYA,CAAGC,QAAQ,EAAA;EAAA,OAAK;AACvCC,IAAAA,KAAK,EAAED,QAAQ;IACf,KAAA,EAAA,EAAA,CAAAE,MAAA,CAAQF,QAAQ,EAAA,MAAA,CAAM;IACtBG,IAAI,EAAA,EAAA,CAAAD,MAAA,CAAKF,QAAQ,EAAA,eAAA;GAClB;AAAA;IAEYI,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAInB;EAAA,IAAAC,sBAAA,EAAAC,sBAAA;AAAA,EAAA,IAHJC,gBAAgB,GAAAH,IAAA,CAAhBG,gBAAgB;IAAAC,UAAA,GAAAJ,IAAA,CAChBJ,KAAK;AAALA,IAAAA,KAAK,GAAAQ,UAAA,KAAA,MAAA,GAAG,CAAC,GA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Q,QAAQ,CAAC;AACxE;IAEaC,yBAAyB,GAAG,SAA5BA,yBAAyBA,CAAAC,KAAA,EAAyC;AAAA,EAAA,IAAnCpC,IAAI,GAAAoC,KAAA,CAAJpC,IAAI;IAAE2B,MAAM,GAAAS,KAAA,CAANT,MAAM;IAAEC,IAAI,GAAAQ,KAAA,CAAJR,IAAI;IAAEC,QAAQ,GAAAO,KAAA,CAARP,QAAQ;AACtE,EAAA,IAAI,CAAC7B,IAAI,EAAE,OAAO,EAAE;AAEpB,EAAA,IAAI4B,IAAI,KAAK9B,eAAe,CAACE,IAAI,EAAE,OAAOqC,UAAU,CAACrC,IAAI,CAACA,IAAI,CAAC;EAE/D,IAAMsC,UAAU,GAAGd,gBAAgB,CAAC;AAAExB,IAAAA,IAAI,EAAJA,IAAI;AAAE2B,IAAAA,MAAM,EAANA,MAAM;AAAEC,IAAAA,IAAI,EAAJA,IAAI;AAAEC,IAAAA,QAAQ,EAARA;AAAS,GAAC,CAAC;AAErE,EAAA,IAAID,IAAI,KAAK9B,eAAe,CAACG,IAAI,EAAE;AACjC,IAAA,OAAOqC,UAAU,CAACX,MAAM,CAACtB,qBAAqB,CAAC;AACjD,EAAA;AAEA,EAAA,IAAIuB,IAAI,KAAK9B,eAAe,CAACC,QAAQ,EAAE;AACrC,IAAA,OAAOuC,UAAU,CAACX,MAAM,CAACrB,0BAA0B,CAAC;AACtD,EAAA;AAEA,EAAA,OAAON,IAAI;AACb;;AAEA;AACO,IAAMuC,OAAO,GAAGC,OAAO,CAACC,IAAI,EAAE,CAACC,KAAK,CAAC,GAAG,CAAC,CAAC;;;;"}
@@ -6,10 +6,10 @@ import { DEFAULT_PAGE_SIZE } from '@bigbinary/neeto-commons-frontend/v2/constant
6
6
  import { withT, useQueryParams } from '@bigbinary/neeto-commons-frontend/v2/react-utils';
7
7
  import Container from '@bigbinary/neeto-molecules/v2/Container';
8
8
  import { b as useUpdateAutomationRule, c as useCloneAutomationRule, d as useDeleteAutomationRule, u as useFetchAutomationRules } from '../useAutomationRulesApi-C9I3wUZ8.js';
9
- import { I as INITIAL_RULES_DATA, R as RulesReorder } from '../index-CA1_c_AW.js';
9
+ import { I as INITIAL_RULES_DATA, R as RulesReorder } from '../index-DA8DSoSK.js';
10
10
  import { Button, Typography, Switch, Spinner, DataTable, Alert, Empty } from '@bigbinary/neeto-atoms';
11
11
  import Header$2 from '@bigbinary/neeto-molecules/v2/Header';
12
- import { c as createRoutes } from '../utils-a-9NZPeQ.js';
12
+ import { c as createRoutes } from '../utils-CeTB10_T.js';
13
13
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
14
14
  import { useShallow } from 'zustand/shallow';
15
15
  import { Workflow } from 'lucide-react';
@@ -11,7 +11,7 @@ import { isNotEmpty, toLabelAndValue, removeBy, findBy, isPresent, isNot, noop }
11
11
  import Container from '@bigbinary/neeto-molecules/v2/Container';
12
12
  import Header from '@bigbinary/neeto-molecules/v2/Header';
13
13
  import { useTranslation } from 'react-i18next';
14
- import { r as useHasFieldChanged, s as areValuesEqual, t as useResetSaveAsTemplateOnHide, v as SelectTemplateField, E as EditorAction, w as SaveAsTemplate, x as setEditorContent, y as ApiFields, L as ListField, o as Panel, z as ErrorCallout, B as SmsFields, M as MIN_DELAY_VALUE, C as MAX_DELAY_VALUE, G as PhoneNumberField, l as formatData, u as usePollRuleName, T as TouchErrors, n as ScrollToErrorField, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE, m as buildPayload } from '../index-DeSkVcPm.js';
14
+ import { r as useHasFieldChanged, s as areValuesEqual, t as useResetSaveAsTemplateOnHide, v as SelectTemplateField, E as EditorAction, w as SaveAsTemplate, x as setEditorContent, y as ApiFields, L as ListField, o as Panel, z as ErrorCallout, B as SmsFields, M as MIN_DELAY_VALUE, C as MAX_DELAY_VALUE, G as PhoneNumberField, l as formatData, u as usePollRuleName, T as TouchErrors, n as ScrollToErrorField, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE, m as buildPayload } from '../index-D7DIAuwa.js';
15
15
  import { u as useCustomDataStore } from '../useCustomDataStore-CEbhXugO.js';
16
16
  import { u as useUtilityStore } from '../useUtilityStore-BVCulMEC.js';
17
17
  import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
@@ -28,7 +28,7 @@ import _asyncToGenerator from '@babel/runtime/helpers/asyncToGenerator';
28
28
  import useHotkeys from '@bigbinary/neeto-hotkeys';
29
29
  import Search from '@bigbinary/neeto-icons/Search';
30
30
  import { dayjs } from '@bigbinary/neeto-commons-frontend/v2/utils';
31
- import { D as DATE_FORMAT, b as getDateTimeValue, d as DATE_TIME_TYPES, T as TIME_FORMAT, e as DATE_TIME_FORMAT } from '../utils-a-9NZPeQ.js';
31
+ import { D as DATE_FORMAT, b as getDateTimeValue, d as DATE_TIME_TYPES, T as TIME_FORMAT, e as DATE_TIME_FORMAT } from '../utils-CeTB10_T.js';
32
32
  import Up from '@bigbinary/neeto-icons/Up';
33
33
  import Down from '@bigbinary/neeto-icons/Down';
34
34
  import Info from '@bigbinary/neeto-icons/Info';
@@ -13,7 +13,7 @@ import { useTranslation } from 'react-i18next';
13
13
  import { u as useUtilityStore } from '../useUtilityStore-BVCulMEC.js';
14
14
  import classNames from 'classnames';
15
15
  import { isNotNil, isEmpty, pluck } from 'ramda';
16
- import { g as getActionOptions, a as getFieldDetails, b as getSlackChannelErrors, c as getOptionsKey, d as getActionLabel, A as ActionSubItem, F as FIELDS_WITH_OPTIONS, P as PANEL_TYPES, D as DEFAULT_RULE_ACTION, e as getLogicalOperatorOptions, f as getFieldDetails$1, h as getVerbOptions, R as RadioField$1, S as SelectField$1, V as ValueField, i as DEFAULT_DELAY, j as getAllEvents, O as OPERATORS$1, k as STATUS_KEYS, l as formatData, u as usePollRuleName, T as TouchErrors, m as buildPayload, n as ScrollToErrorField, o as Panel, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE } from '../index-DeSkVcPm.js';
16
+ import { g as getActionOptions, a as getFieldDetails, b as getSlackChannelErrors, c as getOptionsKey, d as getActionLabel, A as ActionSubItem, F as FIELDS_WITH_OPTIONS, P as PANEL_TYPES, D as DEFAULT_RULE_ACTION, e as getLogicalOperatorOptions, f as getFieldDetails$1, h as getVerbOptions, R as RadioField$1, S as SelectField$1, V as ValueField, i as DEFAULT_DELAY, j as getAllEvents, O as OPERATORS$1, k as STATUS_KEYS, l as formatData, u as usePollRuleName, T as TouchErrors, m as buildPayload, n as ScrollToErrorField, o as Panel, p as getValidationSchema, q as DEFAULT_INITIAL_VALUE } from '../index-D7DIAuwa.js';
17
17
  import { a as useActiveField, u as useCustomDataStore } from '../useCustomDataStore-CEbhXugO.js';
18
18
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
19
19
  import { joinHyphenCase } from '@bigbinary/neeto-commons-frontend/v2/utils';
@@ -35,7 +35,7 @@ import '../index-9h4B7JZZ.js';
35
35
  import 'yup';
36
36
  import '@monaco-editor/react';
37
37
  import '@bigbinary/neeto-molecules/v2/DynamicVariables';
38
- import '../utils-a-9NZPeQ.js';
38
+ import '../utils-CeTB10_T.js';
39
39
  import '@bigbinary/neeto-commons-frontend/initializers';
40
40
  import '@bigbinary/neeto-commons-frontend/utils';
41
41
  import '@bigbinary/neeto-editor/v2/FormikEditor';
@@ -1198,7 +1198,10 @@ var TextareaField = function TextareaField(_ref) {
1198
1198
 
1199
1199
  var ENABLED = STATUS_KEYS.ENABLED,
1200
1200
  DISABLED = STATUS_KEYS.DISABLED;
1201
- var Status = function Status() {
1201
+ var Status = function Status(_ref) {
1202
+ var _helpText$active, _helpText$inactive;
1203
+ var _ref$helpText = _ref.helpText,
1204
+ helpText = _ref$helpText === void 0 ? {} : _ref$helpText;
1202
1205
  var _useFormikContext = useFormikContext(),
1203
1206
  status = _useFormikContext.values.status,
1204
1207
  setFieldValue = _useFormikContext.setFieldValue;
@@ -1216,7 +1219,7 @@ var Status = function Status() {
1216
1219
  helpIconProps: {
1217
1220
  icon: CircleHelp,
1218
1221
  tooltipProps: {
1219
- content: status.value === ENABLED ? t("neetoRules.tooltips.rule.active") : t("neetoRules.tooltips.rule.inactive")
1222
+ content: defaultValue === ENABLED ? (_helpText$active = helpText === null || helpText === void 0 ? void 0 : helpText.active) !== null && _helpText$active !== void 0 ? _helpText$active : t("neetoRules.tooltips.rule.active") : (_helpText$inactive = helpText === null || helpText === void 0 ? void 0 : helpText.inactive) !== null && _helpText$inactive !== void 0 ? _helpText$inactive : t("neetoRules.tooltips.rule.inactive")
1220
1223
  }
1221
1224
  }
1222
1225
  },
@@ -1244,6 +1247,8 @@ var Form = function Form(_ref) {
1244
1247
  handleCancel = _ref$handleCancel === void 0 ? noop : _ref$handleCancel,
1245
1248
  _ref$showStatusSwitch = _ref.showStatusSwitch,
1246
1249
  showStatusSwitch = _ref$showStatusSwitch === void 0 ? true : _ref$showStatusSwitch,
1250
+ _ref$statusHelpText = _ref.statusHelpText,
1251
+ statusHelpText = _ref$statusHelpText === void 0 ? {} : _ref$statusHelpText,
1247
1252
  _ref$payloadKey = _ref.payloadKey,
1248
1253
  payloadKey = _ref$payloadKey === void 0 ? "rule" : _ref$payloadKey,
1249
1254
  _ref$isNameGeneration = _ref.isNameGenerationDisabled,
@@ -1354,7 +1359,9 @@ var Form = function Form(_ref) {
1354
1359
  onClick: handleCancelNameGeneration
1355
1360
  })]
1356
1361
  })]
1357
- }), showStatusSwitch && /*#__PURE__*/jsx(Status, {})]
1362
+ }), showStatusSwitch && /*#__PURE__*/jsx(Status, {
1363
+ helpText: statusHelpText
1364
+ })]
1358
1365
  }), typeof _children === "function" ? _children === null || _children === void 0 ? void 0 : _children(_objectSpread$1({
1359
1366
  values: values,
1360
1367
  formattedValues: buildPayload(data, values),