@bigbinary/neeto-rules-frontend 2.5.4 → 2.5.7

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.
@@ -59,7 +59,7 @@ import 'zustand';
59
59
 
60
60
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
61
61
 
62
- var css = ".neeto-filters-error-boundary{align-items:center;background-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-sm);display:flex;gap:16px;margin-bottom:12px;padding:8px 20px}.neeto-filters-error-boundary p{color:rgb(var(--neeto-ui-gray-800))}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3NyYy9zdHlsZXNoZWV0cy9jb21wb25lbnRzL19lcnJvci1ib3VuZGFyeS5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3JjL3N0eWxlc2hlZXRzL21haW4uc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw4QkFJRSxrQkFBQSxDQUdBLDhDQUFBLENBREEsd0NBQUEsQ0FIQSxZQUFBLENBRUEsUUFBQSxDQUhBLGtCQUFBLENBREEsZ0JDT0YsQ0RDRSxnQ0FDRSxtQ0NDSiIsInNvdXJjZXNDb250ZW50IjpbIi5uZWV0by1maWx0ZXJzLWVycm9yLWJvdW5kYXJ5IHtcbiAgcGFkZGluZzogOHB4IDIwcHg7XG4gIG1hcmdpbi1ib3R0b206IDEycHg7XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGdhcDogMTZweDtcbiAgYm9yZGVyLXJhZGl1czogdmFyKC0tbmVldG8tdWktcm91bmRlZC1zbSk7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYih2YXIoLS1uZWV0by11aS1ncmF5LTEwMCkpO1xuXG4gIHAge1xuICAgIGNvbG9yOiByZ2IodmFyKC0tbmVldG8tdWktZ3JheS04MDApKTtcbiAgfVxufVxuIiwiLm5lZXRvLWZpbHRlcnMtZXJyb3ItYm91bmRhcnkge1xuICBwYWRkaW5nOiA4cHggMjBweDtcbiAgbWFyZ2luLWJvdHRvbTogMTJweDtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgZ2FwOiAxNnB4O1xuICBib3JkZXItcmFkaXVzOiB2YXIoLS1uZWV0by11aS1yb3VuZGVkLXNtKTtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiKHZhcigtLW5lZXRvLXVpLWdyYXktMTAwKSk7XG59XG4ubmVldG8tZmlsdGVycy1lcnJvci1ib3VuZGFyeSBwIHtcbiAgY29sb3I6IHJnYih2YXIoLS1uZWV0by11aS1ncmF5LTgwMCkpO1xufSJdfQ== */";
62
+ var css = ".neeto-filters-error-boundary{align-items:center;background-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-sm);display:flex;gap:1rem;margin-bottom:.75rem;padding:.5rem 1.25rem}.neeto-filters-error-boundary p{color:rgb(var(--neeto-ui-gray-800))}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3NyYy9zdHlsZXNoZWV0cy9jb21wb25lbnRzL19lcnJvci1ib3VuZGFyeS5zY3NzIiwiYXBwL2phdmFzY3JpcHQvc3JjL3N0eWxlc2hlZXRzL21haW4uc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw4QkFJRSxrQkFBQSxDQUdBLDhDQUFBLENBREEsd0NBQUEsQ0FIQSxZQUFBLENBRUEsUUFBQSxDQUhBLG9CQUFBLENBREEscUJDT0YsQ0RDRSxnQ0FDRSxtQ0NDSiIsInNvdXJjZXNDb250ZW50IjpbIi5uZWV0by1maWx0ZXJzLWVycm9yLWJvdW5kYXJ5IHtcbiAgcGFkZGluZzogMC41cmVtIDEuMjVyZW07XG4gIG1hcmdpbi1ib3R0b206IDAuNzVyZW07XG4gIGRpc3BsYXk6IGZsZXg7XG4gIGFsaWduLWl0ZW1zOiBjZW50ZXI7XG4gIGdhcDogMXJlbTtcbiAgYm9yZGVyLXJhZGl1czogdmFyKC0tbmVldG8tdWktcm91bmRlZC1zbSk7XG4gIGJhY2tncm91bmQtY29sb3I6IHJnYih2YXIoLS1uZWV0by11aS1ncmF5LTEwMCkpO1xuXG4gIHAge1xuICAgIGNvbG9yOiByZ2IodmFyKC0tbmVldG8tdWktZ3JheS04MDApKTtcbiAgfVxufVxuIiwiLm5lZXRvLWZpbHRlcnMtZXJyb3ItYm91bmRhcnkge1xuICBwYWRkaW5nOiAwLjVyZW0gMS4yNXJlbTtcbiAgbWFyZ2luLWJvdHRvbTogMC43NXJlbTtcbiAgZGlzcGxheTogZmxleDtcbiAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgZ2FwOiAxcmVtO1xuICBib3JkZXItcmFkaXVzOiB2YXIoLS1uZWV0by11aS1yb3VuZGVkLXNtKTtcbiAgYmFja2dyb3VuZC1jb2xvcjogcmdiKHZhcigtLW5lZXRvLXVpLWdyYXktMTAwKSk7XG59XG4ubmVldG8tZmlsdGVycy1lcnJvci1ib3VuZGFyeSBwIHtcbiAgY29sb3I6IHJnYih2YXIoLS1uZWV0by11aS1ncmF5LTgwMCkpO1xufSJdfQ== */";
63
63
  n(css,{});
64
64
 
65
65
  var OptionsWrapper = function OptionsWrapper(_ref) {
@@ -125,7 +125,7 @@ var PaneFooterBlock = function PaneFooterBlock(_ref) {
125
125
  };
126
126
 
127
127
  var LongTextField = function LongTextField(_ref) {
128
- var _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedField$separa;
128
+ var _errors$actions, _touched$actions, _selectedField$separa;
129
129
  var name = _ref.name,
130
130
  _ref$value = _ref.value,
131
131
  value = _ref$value === void 0 ? "" : _ref$value,
@@ -145,8 +145,8 @@ var LongTextField = function LongTextField(_ref) {
145
145
  useOnButtonPressed(initialFocusRef, function () {
146
146
  return setShowPane(false);
147
147
  });
148
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
149
- var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || defaultSeparator;
148
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
149
+ var separator = (selectedField === null || selectedField === void 0 || (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || defaultSeparator;
150
150
  var label = (selectedField === null || selectedField === void 0 ? void 0 : selectedField.placeholder) || defaultLabel;
151
151
  var rows = (selectedField === null || selectedField === void 0 ? void 0 : selectedField.rows) || DEFAULT_LONG_TEXT_ROWS;
152
152
  return /*#__PURE__*/jsxs(Fragment, {
@@ -324,7 +324,7 @@ var SelectTemplateField = function SelectTemplateField(_ref) {
324
324
  var template = findBy({
325
325
  id: option.value
326
326
  }, templates);
327
- onChange === null || onChange === void 0 ? void 0 : onChange(template);
327
+ onChange === null || onChange === void 0 || onChange(template);
328
328
  };
329
329
  return /*#__PURE__*/jsx(Select, {
330
330
  isClearable: true,
@@ -343,7 +343,7 @@ var SelectTemplateField = function SelectTemplateField(_ref) {
343
343
  };
344
344
 
345
345
  var ApiFields = function ApiFields(_ref) {
346
- var _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedField$separa;
346
+ var _errors$actions, _touched$actions, _selectedField$separa;
347
347
  var name = _ref.name,
348
348
  selectedField = _ref.selectedField,
349
349
  index = _ref.index;
@@ -361,8 +361,8 @@ var ApiFields = function ApiFields(_ref) {
361
361
  useOnButtonPressed(initialFocusRef, function () {
362
362
  return setShowPane(false);
363
363
  });
364
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
365
- var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.as");
364
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
365
+ var separator = (selectedField === null || selectedField === void 0 || (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.as");
366
366
  var defaultLabel = (selectedField === null || selectedField === void 0 ? void 0 : selectedField.dataPlaceholder) || t("neetoRules.common.data");
367
367
  var templates = selectedField === null || selectedField === void 0 ? void 0 : selectedField.templates;
368
368
  var isTemplateSelectionEnabled = isPresent(templates);
@@ -436,7 +436,7 @@ var ApiFields = function ApiFields(_ref) {
436
436
  };
437
437
 
438
438
  var CustomAction = function CustomAction(_ref) {
439
- var _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedField$separa;
439
+ var _errors$actions, _touched$actions, _selectedField$separa;
440
440
  var ActionComponent = _ref.ActionComponent,
441
441
  name = _ref.name,
442
442
  action = _ref.action,
@@ -455,8 +455,8 @@ var CustomAction = function CustomAction(_ref) {
455
455
  useOnButtonPressed(initialFocusRef, function () {
456
456
  return setShowPane(false);
457
457
  });
458
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
459
- var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.as");
458
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
459
+ var separator = (selectedField === null || selectedField === void 0 || (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.as");
460
460
  var defaultLabel = selectedField === null || selectedField === void 0 ? void 0 : selectedField.placeholder;
461
461
  return /*#__PURE__*/jsxs(Fragment, {
462
462
  children: [/*#__PURE__*/jsx(Typography, {
@@ -505,7 +505,7 @@ var CustomAction = function CustomAction(_ref) {
505
505
  };
506
506
 
507
507
  var DateField$1 = function DateField(_ref) {
508
- var _actions$value$index$, _selectedField$separa, _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu;
508
+ var _actions$value$index$, _selectedField$separa, _errors$actions, _touched$actions;
509
509
  var name = _ref.name,
510
510
  index = _ref.index,
511
511
  selectedField = _ref.selectedField;
@@ -523,8 +523,8 @@ var DateField$1 = function DateField(_ref) {
523
523
  t = _useTranslation.t;
524
524
  var valueTerm = (_actions$value$index$ = actions.value[index].metadata) === null || _actions$value$index$ === void 0 ? void 0 : _actions$value$index$.value;
525
525
  var label = valueTerm || t("neetoRules.form.selectDate");
526
- var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.to");
527
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
526
+ var separator = (selectedField === null || selectedField === void 0 || (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.to");
527
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
528
528
  return /*#__PURE__*/jsxs(Fragment, {
529
529
  children: [!selectedField.hideSeparator && /*#__PURE__*/jsx(Typography, {
530
530
  className: "neeto-ui-text-gray-700",
@@ -674,7 +674,7 @@ var getSlackChannelErrors = function getSlackChannelErrors(_ref2) {
674
674
  if (action !== null && action !== void 0 && (_action$metadata = action.metadata) !== null && _action$metadata !== void 0 && _action$metadata.value) {
675
675
  var selectedOption = opts.find(function (op) {
676
676
  var _action$metadata2;
677
- return (op === null || op === void 0 ? void 0 : op.value) === (action === null || action === void 0 ? void 0 : (_action$metadata2 = action.metadata) === null || _action$metadata2 === void 0 ? void 0 : _action$metadata2.value);
677
+ return (op === null || op === void 0 ? void 0 : op.value) === (action === null || action === void 0 || (_action$metadata2 = action.metadata) === null || _action$metadata2 === void 0 ? void 0 : _action$metadata2.value);
678
678
  });
679
679
  if (!selectedOption) {
680
680
  return {
@@ -691,7 +691,7 @@ var getSlackChannelErrors = function getSlackChannelErrors(_ref2) {
691
691
  var Menu$9 = Dropdown$1.Menu,
692
692
  MenuItem$9 = Dropdown$1.MenuItem;
693
693
  var DropdownField$1 = function DropdownField(_ref) {
694
- var _actions$value$index$, _actions$value$index, _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _defaultSelectedOptio;
694
+ var _actions$value$index$, _actions$value$index, _errors$actions, _touched$actions, _defaultSelectedOptio;
695
695
  var dropdownOptions = _ref.dropdownOptions,
696
696
  name = _ref.name,
697
697
  index = _ref.index,
@@ -721,7 +721,7 @@ var DropdownField$1 = function DropdownField(_ref) {
721
721
  setSearchTerm = _useState6[1];
722
722
  var defaultValue = ((_actions$value$index$ = actions.value[index].metadata) === null || _actions$value$index$ === void 0 ? void 0 : _actions$value$index$.value) || ((_actions$value$index = actions.value[index]) === null || _actions$value$index === void 0 ? void 0 : _actions$value$index.value);
723
723
  var searchedOptions = getSearchedOptions$3(dropdownOptions, searchTerm);
724
- var isValueSelected = defaultSelectedOption.label === defaultLabel && errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
724
+ var isValueSelected = defaultSelectedOption.label === defaultLabel && errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
725
725
  var separator = getSeparator({
726
726
  defaultSeparator: t("neetoRules.common.to"),
727
727
  selectedField: selectedField
@@ -768,7 +768,7 @@ var DropdownField$1 = function DropdownField(_ref) {
768
768
  className: "neeto-ui-bg-gray-100",
769
769
  customTarget: /*#__PURE__*/jsx(Button, {
770
770
  "data-cy": "action-dropdown-button",
771
- label: defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : (_defaultSelectedOptio = defaultSelectedOption.label) === null || _defaultSelectedOptio === void 0 ? void 0 : _defaultSelectedOptio.toLowerCase(),
771
+ label: defaultSelectedOption === null || defaultSelectedOption === void 0 || (_defaultSelectedOptio = defaultSelectedOption.label) === null || _defaultSelectedOptio === void 0 ? void 0 : _defaultSelectedOptio.toLowerCase(),
772
772
  style: "link",
773
773
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
774
774
  "neeto-ui-text-accent-800": isActive,
@@ -894,7 +894,7 @@ var EmailIdFields = function EmailIdFields(_ref) {
894
894
  };
895
895
 
896
896
  var EmailFields = function EmailFields(_ref) {
897
- var _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _action$metadata;
897
+ var _errors$actions, _touched$actions, _action$metadata;
898
898
  var _ref$isEmailIdField = _ref.isEmailIdField,
899
899
  isEmailIdField = _ref$isEmailIdField === void 0 ? false : _ref$isEmailIdField,
900
900
  name = _ref.name,
@@ -920,7 +920,7 @@ var EmailFields = function EmailFields(_ref) {
920
920
  useOnButtonPressed(initialFocusRef, function () {
921
921
  return setShowPane(false);
922
922
  });
923
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
923
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
924
924
  var separator = getSeparator({
925
925
  defaultSeparator: t("neetoRules.common.as"),
926
926
  index: separatorIndex,
@@ -1031,7 +1031,7 @@ var useCloseInputField = function useCloseInputField(ref, showInput, handler) {
1031
1031
  handler();
1032
1032
  }
1033
1033
  };
1034
- (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.addEventListener("keydown", listener);
1034
+ (_ref$current = ref.current) === null || _ref$current === void 0 || _ref$current.addEventListener("keydown", listener);
1035
1035
  return function () {
1036
1036
  var _ref$current2;
1037
1037
  return (_ref$current2 = ref.current) === null || _ref$current2 === void 0 ? void 0 : _ref$current2.removeEventListener("keydown", listener);
@@ -1045,7 +1045,7 @@ var useCloseInputField = function useCloseInputField(ref, showInput, handler) {
1045
1045
  };
1046
1046
 
1047
1047
  var Input = function Input(_ref) {
1048
- var _action$metadata, _selectedField$separa, _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu;
1048
+ var _action$metadata, _selectedField$separa, _errors$actions, _touched$actions;
1049
1049
  var name = _ref.name,
1050
1050
  index = _ref.index,
1051
1051
  selectedField = _ref.selectedField;
@@ -1066,8 +1066,8 @@ var Input = function Input(_ref) {
1066
1066
  var action = actions.value[index];
1067
1067
  var valueTerm = (_action$metadata = action.metadata) === null || _action$metadata === void 0 ? void 0 : _action$metadata.value;
1068
1068
  var label = valueTerm && isNotEmpty(valueTerm === null || valueTerm === void 0 ? void 0 : valueTerm.trim()) ? valueTerm : t("neetoRules.form.addValue");
1069
- var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.to");
1070
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
1069
+ var separator = (selectedField === null || selectedField === void 0 || (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.to");
1070
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
1071
1071
  useEffect(function () {
1072
1072
  setShowInput(false);
1073
1073
  }, [action.name]);
@@ -1211,7 +1211,7 @@ var InlineInput = /*#__PURE__*/forwardRef(function (props, ref) {
1211
1211
  InlineInput.displayName = "InlineInput";
1212
1212
 
1213
1213
  var ListField = function ListField(_ref) {
1214
- var _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedField$separa;
1214
+ var _errors$actions, _touched$actions, _selectedField$separa;
1215
1215
  var name = _ref.name,
1216
1216
  _ref$values = _ref.values,
1217
1217
  values = _ref$values === void 0 ? [] : _ref$values,
@@ -1234,8 +1234,8 @@ var ListField = function ListField(_ref) {
1234
1234
  useOnButtonPressed(initialFocusRef, function () {
1235
1235
  return setShowPane(false);
1236
1236
  });
1237
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
1238
- var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.to");
1237
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
1238
+ var separator = (selectedField === null || selectedField === void 0 || (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.to");
1239
1239
  return /*#__PURE__*/jsxs(Fragment, {
1240
1240
  children: [/*#__PURE__*/jsx(Typography, {
1241
1241
  className: "neeto-ui-text-gray-700",
@@ -1342,7 +1342,7 @@ var ListField = function ListField(_ref) {
1342
1342
  var Menu$8 = Dropdown$1.Menu,
1343
1343
  MenuItem$8 = Dropdown$1.MenuItem;
1344
1344
  var MultiSelect$1 = function MultiSelect(_ref) {
1345
- var _selectedField$placeh, _selectedField$separa, _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu;
1345
+ var _selectedField$placeh, _selectedField$separa, _errors$actions, _touched$actions;
1346
1346
  var _ref$values = _ref.values,
1347
1347
  values = _ref$values === void 0 ? [] : _ref$values,
1348
1348
  _ref$dropDownOptions = _ref.dropDownOptions,
@@ -1371,10 +1371,10 @@ var MultiSelect$1 = function MultiSelect(_ref) {
1371
1371
  });
1372
1372
  }, [values, dropDownOptions]);
1373
1373
  var selectedOptions = getSelectedOptions(allOptions);
1374
- var defaultLabel = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$placeh = selectedField.placeholder) === null || _selectedField$placeh === void 0 ? void 0 : _selectedField$placeh.toLowerCase()) || t("neetoRules.form.selectValues");
1374
+ var defaultLabel = (selectedField === null || selectedField === void 0 || (_selectedField$placeh = selectedField.placeholder) === null || _selectedField$placeh === void 0 ? void 0 : _selectedField$placeh.toLowerCase()) || t("neetoRules.form.selectValues");
1375
1375
  var searchedOptions = getSearchedOptions$3(dropDownOptions, searchTerm);
1376
- var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.to");
1377
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
1376
+ var separator = (selectedField === null || selectedField === void 0 || (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.to");
1377
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
1378
1378
  var handleSelectOption = function handleSelectOption(option) {
1379
1379
  var options = values.includes(option.value) ? without([option.value], values) : append(option.value, values);
1380
1380
  setFieldValue(name, options);
@@ -1475,7 +1475,7 @@ var MultiSelect$1 = function MultiSelect(_ref) {
1475
1475
  };
1476
1476
 
1477
1477
  var NoteField = function NoteField(_ref) {
1478
- var _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedField$separa;
1478
+ var _errors$actions, _touched$actions, _selectedField$separa;
1479
1479
  var name = _ref.name,
1480
1480
  _ref$value = _ref.value,
1481
1481
  value = _ref$value === void 0 ? "" : _ref$value,
@@ -1494,8 +1494,8 @@ var NoteField = function NoteField(_ref) {
1494
1494
  useOnButtonPressed(initialFocusRef, function () {
1495
1495
  return setShowPane(false);
1496
1496
  });
1497
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
1498
- var separator = (selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.as");
1497
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
1498
+ var separator = (selectedField === null || selectedField === void 0 || (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || t("neetoRules.common.as");
1499
1499
  var variables = (selectedField === null || selectedField === void 0 ? void 0 : selectedField.variables) || [];
1500
1500
  var defaultLabel = (selectedField === null || selectedField === void 0 ? void 0 : selectedField.placeholder) || t("neetoRules.form.note");
1501
1501
  return /*#__PURE__*/jsxs(Fragment, {
@@ -1801,7 +1801,7 @@ var PhoneNumberField = function PhoneNumberField(_ref) {
1801
1801
  };
1802
1802
 
1803
1803
  var SmsFields = function SmsFields(_ref) {
1804
- var _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _action$metadata;
1804
+ var _errors$actions, _touched$actions, _action$metadata;
1805
1805
  var name = _ref.name,
1806
1806
  action = _ref.action,
1807
1807
  selectedField = _ref.selectedField,
@@ -1827,7 +1827,7 @@ var SmsFields = function SmsFields(_ref) {
1827
1827
  useOnButtonPressed(initialFocusRef, function () {
1828
1828
  return setShowPane(false);
1829
1829
  });
1830
- var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
1830
+ var isValid = errors.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
1831
1831
  var separator = getSeparator({
1832
1832
  defaultSeparator: t("neetoRules.common.as"),
1833
1833
  index: separatorIndex,
@@ -2409,7 +2409,7 @@ var DEFAULT_INITIAL_VALUE = {
2409
2409
  var Menu$7 = Dropdown$1.Menu,
2410
2410
  MenuItem$7 = Dropdown$1.MenuItem;
2411
2411
  var ActionItem = function ActionItem(_ref) {
2412
- var _errors$actions, _errors$actions$value, _touched$actions, _touched$actions$valu, _selectedOption$label;
2412
+ var _errors$actions, _touched$actions, _selectedOption$label;
2413
2413
  var name = _ref.name,
2414
2414
  action = _ref.action,
2415
2415
  index = _ref.index,
@@ -2452,11 +2452,11 @@ var ActionItem = function ActionItem(_ref) {
2452
2452
  return getFieldDetails$1(action.name, actionOptions);
2453
2453
  }, [action, actionOptions]);
2454
2454
  var searchedOptions = getSearchedOptions$3(actionOptions, searchTerm);
2455
- var isActionSelected = (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) === t("neetoRules.form.doThis") && errors.actions && touched.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : (_errors$actions$value = _errors$actions.value) === null || _errors$actions$value === void 0 ? void 0 : _errors$actions$value[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 ? void 0 : (_touched$actions$valu = _touched$actions.value) === null || _touched$actions$valu === void 0 ? void 0 : _touched$actions$valu[index]);
2455
+ var isActionSelected = (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) === t("neetoRules.form.doThis") && errors.actions && touched.actions && isNotNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 || (_errors$actions = _errors$actions.value) === null || _errors$actions === void 0 ? void 0 : _errors$actions[index]) && isNotNil((_touched$actions = touched.actions) === null || _touched$actions === void 0 || (_touched$actions = _touched$actions.value) === null || _touched$actions === void 0 ? void 0 : _touched$actions[index]);
2456
2456
  var handleSelectOption = function handleSelectOption(option) {
2457
2457
  setFieldValue("".concat(name, ".name"), option.value);
2458
2458
  setFieldValue("".concat(name, ".metadata"), {});
2459
- onSelectAction === null || onSelectAction === void 0 ? void 0 : onSelectAction(name, option);
2459
+ onSelectAction === null || onSelectAction === void 0 || onSelectAction(name, option);
2460
2460
  setSearchTerm("");
2461
2461
  };
2462
2462
  var handleClose = function handleClose() {
@@ -2527,7 +2527,7 @@ var ActionItem = function ActionItem(_ref) {
2527
2527
  position: "bottom-start",
2528
2528
  customTarget: /*#__PURE__*/jsx(Button, {
2529
2529
  "data-cy": "action-dropdown-button",
2530
- label: selectedOption === null || selectedOption === void 0 ? void 0 : (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
2530
+ label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
2531
2531
  style: "link",
2532
2532
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
2533
2533
  "neeto-ui-text-accent-800": isActive,
@@ -2784,7 +2784,7 @@ var DropdownField = function DropdownField(_ref) {
2784
2784
  position: "bottom-start",
2785
2785
  customTarget: /*#__PURE__*/jsx(Button, {
2786
2786
  "data-cy": "condition-".concat(fieldType, "-dropdown-button"),
2787
- label: selectedOption === null || selectedOption === void 0 ? void 0 : (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
2787
+ label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
2788
2788
  style: "link",
2789
2789
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
2790
2790
  "neeto-ui-text-accent-800": isSelected
@@ -2840,7 +2840,7 @@ var DropdownField = function DropdownField(_ref) {
2840
2840
  var Menu$5 = Dropdown$1.Menu,
2841
2841
  MenuItem$5 = Dropdown$1.MenuItem;
2842
2842
  var Dropdown = function Dropdown(_ref) {
2843
- var _conditions$value$ind, _errors$conditions, _errors$conditions$va, _touched$conditions, _touched$conditions$v, _defaultSelectedOptio;
2843
+ var _conditions$value$ind, _errors$conditions, _touched$conditions, _defaultSelectedOptio;
2844
2844
  var name = _ref.name,
2845
2845
  options = _ref.options,
2846
2846
  index = _ref.index;
@@ -2869,7 +2869,7 @@ var Dropdown = function Dropdown(_ref) {
2869
2869
  setSearchTerm = _useState6[1];
2870
2870
  var defaultValue = (_conditions$value$ind = conditions.value[index].metadata) === null || _conditions$value$ind === void 0 ? void 0 : _conditions$value$ind.value;
2871
2871
  var searchedOptions = getSearchedOptions$2(options, searchTerm);
2872
- var isValueSelected = (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.label) === defaultLabel && errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 ? void 0 : (_errors$conditions$va = _errors$conditions.value) === null || _errors$conditions$va === void 0 ? void 0 : _errors$conditions$va[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 ? void 0 : (_touched$conditions$v = _touched$conditions.value) === null || _touched$conditions$v === void 0 ? void 0 : _touched$conditions$v[index]);
2872
+ var isValueSelected = (defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : defaultSelectedOption.label) === defaultLabel && errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 || (_errors$conditions = _errors$conditions.value) === null || _errors$conditions === void 0 ? void 0 : _errors$conditions[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 || (_touched$conditions = _touched$conditions.value) === null || _touched$conditions === void 0 ? void 0 : _touched$conditions[index]);
2873
2873
  var handleClose = function handleClose() {
2874
2874
  setIsActive(false);
2875
2875
  setSearchTerm("");
@@ -2904,7 +2904,7 @@ var Dropdown = function Dropdown(_ref) {
2904
2904
  className: "neeto-ui-bg-gray-100",
2905
2905
  customTarget: /*#__PURE__*/jsx(Button, {
2906
2906
  "data-cy": "condition-value-dropdown-button",
2907
- label: defaultSelectedOption === null || defaultSelectedOption === void 0 ? void 0 : (_defaultSelectedOptio = defaultSelectedOption.label) === null || _defaultSelectedOptio === void 0 ? void 0 : _defaultSelectedOptio.toLowerCase(),
2907
+ label: defaultSelectedOption === null || defaultSelectedOption === void 0 || (_defaultSelectedOptio = defaultSelectedOption.label) === null || _defaultSelectedOptio === void 0 ? void 0 : _defaultSelectedOptio.toLowerCase(),
2908
2908
  style: "link",
2909
2909
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
2910
2910
  "neeto-ui-text-accent-800": isActive,
@@ -2958,7 +2958,7 @@ var Dropdown = function Dropdown(_ref) {
2958
2958
  };
2959
2959
 
2960
2960
  var InputField$1 = function InputField(_ref) {
2961
- var _condition$metadata, _condition$metadata$v, _errors$conditions, _errors$conditions$va, _touched$conditions, _touched$conditions$v;
2961
+ var _condition$metadata, _errors$conditions, _touched$conditions;
2962
2962
  var name = _ref.name,
2963
2963
  index = _ref.index,
2964
2964
  placeholder = _ref.placeholder;
@@ -2977,9 +2977,9 @@ var InputField$1 = function InputField(_ref) {
2977
2977
  return setShowInput(false);
2978
2978
  });
2979
2979
  var condition = conditions.value[index];
2980
- var valueTerm = (_condition$metadata = condition.metadata) === null || _condition$metadata === void 0 ? void 0 : (_condition$metadata$v = _condition$metadata.value) === null || _condition$metadata$v === void 0 ? void 0 : _condition$metadata$v.toString();
2980
+ var valueTerm = (_condition$metadata = condition.metadata) === null || _condition$metadata === void 0 || (_condition$metadata = _condition$metadata.value) === null || _condition$metadata === void 0 ? void 0 : _condition$metadata.toString();
2981
2981
  var label = valueTerm && valueTerm !== null && valueTerm !== void 0 && valueTerm.trim().length ? valueTerm : t("neetoRules.form.addValue");
2982
- var isValid = errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 ? void 0 : (_errors$conditions$va = _errors$conditions.value) === null || _errors$conditions$va === void 0 ? void 0 : _errors$conditions$va[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 ? void 0 : (_touched$conditions$v = _touched$conditions.value) === null || _touched$conditions$v === void 0 ? void 0 : _touched$conditions$v[index]);
2982
+ var isValid = errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 || (_errors$conditions = _errors$conditions.value) === null || _errors$conditions === void 0 ? void 0 : _errors$conditions[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 || (_touched$conditions = _touched$conditions.value) === null || _touched$conditions === void 0 ? void 0 : _touched$conditions[index]);
2983
2983
  useEffect(function () {
2984
2984
  setShowInput(false);
2985
2985
  }, [condition.verb]);
@@ -3013,7 +3013,7 @@ var InputField$1 = function InputField(_ref) {
3013
3013
  var Menu$4 = Dropdown$1.Menu,
3014
3014
  MenuItem$4 = Dropdown$1.MenuItem;
3015
3015
  var MultiSelect = function MultiSelect(_ref) {
3016
- var _conditions$value$ind, _conditions$value$ind2, _errors$conditions, _errors$conditions$va, _touched$conditions, _touched$conditions$v;
3016
+ var _conditions$value$ind, _errors$conditions, _touched$conditions;
3017
3017
  var name = _ref.name,
3018
3018
  dropDownOptions = _ref.dropDownOptions,
3019
3019
  index = _ref.index;
@@ -3033,14 +3033,14 @@ var MultiSelect = function MultiSelect(_ref) {
3033
3033
  setSearchTerm = _useState4[1];
3034
3034
  var _useTranslation = useTranslation(),
3035
3035
  t = _useTranslation.t;
3036
- var values = (_conditions$value$ind = conditions.value[index]) === null || _conditions$value$ind === void 0 ? void 0 : (_conditions$value$ind2 = _conditions$value$ind.metadata) === null || _conditions$value$ind2 === void 0 ? void 0 : _conditions$value$ind2.values;
3036
+ var values = (_conditions$value$ind = conditions.value[index]) === null || _conditions$value$ind === void 0 || (_conditions$value$ind = _conditions$value$ind.metadata) === null || _conditions$value$ind === void 0 ? void 0 : _conditions$value$ind.values;
3037
3037
  var selectedOptions = values || [];
3038
3038
  var defaultLabel = t("neetoRules.form.selectValues");
3039
3039
  var options = dropDownOptions === null || dropDownOptions === void 0 ? void 0 : dropDownOptions.filter(function (option) {
3040
3040
  return selectedOptions === null || selectedOptions === void 0 ? void 0 : selectedOptions.includes(option.value);
3041
3041
  });
3042
3042
  var searchedOptions = getSearchedOptions$2(dropDownOptions, searchTerm);
3043
- var isValid = errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 ? void 0 : (_errors$conditions$va = _errors$conditions.value) === null || _errors$conditions$va === void 0 ? void 0 : _errors$conditions$va[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 ? void 0 : (_touched$conditions$v = _touched$conditions.value) === null || _touched$conditions$v === void 0 ? void 0 : _touched$conditions$v[index]);
3043
+ var isValid = errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 || (_errors$conditions = _errors$conditions.value) === null || _errors$conditions === void 0 ? void 0 : _errors$conditions[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 || (_touched$conditions = _touched$conditions.value) === null || _touched$conditions === void 0 ? void 0 : _touched$conditions[index]);
3044
3044
  var handleMultiSelectOption = function handleMultiSelectOption(value) {
3045
3045
  var options = selectedOptions !== null && selectedOptions !== void 0 && selectedOptions.includes(value) ? without([value], selectedOptions) : append(value, selectedOptions);
3046
3046
  setFieldValue(name, options);
@@ -3066,7 +3066,7 @@ var MultiSelect = function MultiSelect(_ref) {
3066
3066
  children: t("neetoRules.common.or")
3067
3067
  }), /*#__PURE__*/jsx(Button, {
3068
3068
  "data-cy": "condition-value-multi-select-field",
3069
- label: option === null || option === void 0 ? void 0 : (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3069
+ label: option === null || option === void 0 || (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toLowerCase(),
3070
3070
  style: "link",
3071
3071
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3072
3072
  "neeto-ui-text-accent-800": activeOption === option.value
@@ -3132,7 +3132,7 @@ var _excluded$7 = ["name", "index"];
3132
3132
  function ownKeys$d(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3133
3133
  function _objectSpread$d(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$d(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$d(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3134
3134
  var MultiSelectCreate = function MultiSelectCreate(_ref) {
3135
- var _conditions$value$ind, _conditions$value$ind2, _errors$conditions, _errors$conditions$va, _touched$conditions, _touched$conditions$v;
3135
+ var _conditions$value$ind, _errors$conditions, _touched$conditions;
3136
3136
  var name = _ref.name,
3137
3137
  index = _ref.index,
3138
3138
  props = _objectWithoutProperties(_ref, _excluded$7);
@@ -3152,10 +3152,10 @@ var MultiSelectCreate = function MultiSelectCreate(_ref) {
3152
3152
  useOnButtonPressed(initialFocusRef, function () {
3153
3153
  return setShowPane(false);
3154
3154
  });
3155
- var values = (_conditions$value$ind = conditions.value[index]) === null || _conditions$value$ind === void 0 ? void 0 : (_conditions$value$ind2 = _conditions$value$ind.metadata) === null || _conditions$value$ind2 === void 0 ? void 0 : _conditions$value$ind2.values;
3155
+ var values = (_conditions$value$ind = conditions.value[index]) === null || _conditions$value$ind === void 0 || (_conditions$value$ind = _conditions$value$ind.metadata) === null || _conditions$value$ind === void 0 ? void 0 : _conditions$value$ind.values;
3156
3156
  var allOptions = getAllOptions(values);
3157
3157
  var defaultLabel = t("neetoRules.form.selectValues");
3158
- var isValid = errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 ? void 0 : (_errors$conditions$va = _errors$conditions.value) === null || _errors$conditions$va === void 0 ? void 0 : _errors$conditions$va[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 ? void 0 : (_touched$conditions$v = _touched$conditions.value) === null || _touched$conditions$v === void 0 ? void 0 : _touched$conditions$v[index]);
3158
+ var isValid = errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 || (_errors$conditions = _errors$conditions.value) === null || _errors$conditions === void 0 ? void 0 : _errors$conditions[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 || (_touched$conditions = _touched$conditions.value) === null || _touched$conditions === void 0 ? void 0 : _touched$conditions[index]);
3159
3159
  return /*#__PURE__*/jsxs(Fragment, {
3160
3160
  children: [isEmpty(allOptions) && /*#__PURE__*/jsx(Button, {
3161
3161
  "data-cy": "condition-value-multi-select-create-button",
@@ -3227,7 +3227,7 @@ var MultiSelectCreate = function MultiSelectCreate(_ref) {
3227
3227
  };
3228
3228
 
3229
3229
  var DateField = function DateField(_ref) {
3230
- var _conditions$value$ind, _errors$conditions, _errors$conditions$va, _touched$conditions, _touched$conditions$v;
3230
+ var _conditions$value$ind, _errors$conditions, _touched$conditions;
3231
3231
  var name = _ref.name,
3232
3232
  index = _ref.index,
3233
3233
  conditionName = _ref.conditionName,
@@ -3247,7 +3247,7 @@ var DateField = function DateField(_ref) {
3247
3247
  t = _useTranslation.t;
3248
3248
  var valueTerm = (_conditions$value$ind = conditions.value[index].metadata) === null || _conditions$value$ind === void 0 ? void 0 : _conditions$value$ind.value;
3249
3249
  var label = valueTerm || t("neetoRules.form.selectDate");
3250
- var isValid = errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 ? void 0 : (_errors$conditions$va = _errors$conditions.value) === null || _errors$conditions$va === void 0 ? void 0 : _errors$conditions$va[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 ? void 0 : (_touched$conditions$v = _touched$conditions.value) === null || _touched$conditions$v === void 0 ? void 0 : _touched$conditions$v[index]);
3250
+ var isValid = errors.conditions && isNotNil((_errors$conditions = errors.conditions) === null || _errors$conditions === void 0 || (_errors$conditions = _errors$conditions.value) === null || _errors$conditions === void 0 ? void 0 : _errors$conditions[index]) && isNotNil((_touched$conditions = touched.conditions) === null || _touched$conditions === void 0 || (_touched$conditions = _touched$conditions.value) === null || _touched$conditions === void 0 ? void 0 : _touched$conditions[index]);
3251
3251
  var handleValidate = /*#__PURE__*/function () {
3252
3252
  var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
3253
3253
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -3421,7 +3421,7 @@ var ConditionItem = function ConditionItem(_ref) {
3421
3421
  setFieldValue("".concat(name, ".verb"), fieldDetails === null || fieldDetails === void 0 ? void 0 : fieldDetails.allowMatching[0]);
3422
3422
  setFieldValue("".concat(name, ".kind"), fieldDetails === null || fieldDetails === void 0 ? void 0 : fieldDetails.kind);
3423
3423
  setFieldValue("".concat(name, ".metadata"), {});
3424
- onSelectCondition === null || onSelectCondition === void 0 ? void 0 : onSelectCondition(name, option);
3424
+ onSelectCondition === null || onSelectCondition === void 0 || onSelectCondition(name, option);
3425
3425
  };
3426
3426
  var handleVerbChange = function handleVerbChange(_ref2) {
3427
3427
  var value = _ref2.value;
@@ -3509,7 +3509,7 @@ var Conditions = function Conditions(_ref) {
3509
3509
  arrayHelpers.push({
3510
3510
  field: elementProps === null || elementProps === void 0 ? void 0 : elementProps.conditionOptions[0].value,
3511
3511
  kind: elementProps === null || elementProps === void 0 ? void 0 : elementProps.conditionOptions[0].kind,
3512
- verb: elementProps === null || elementProps === void 0 ? void 0 : (_elementProps$conditi = elementProps.conditionOptions[0]) === null || _elementProps$conditi === void 0 ? void 0 : _elementProps$conditi.allowMatching[0],
3512
+ verb: elementProps === null || elementProps === void 0 || (_elementProps$conditi = elementProps.conditionOptions[0]) === null || _elementProps$conditi === void 0 ? void 0 : _elementProps$conditi.allowMatching[0],
3513
3513
  joinType: logicOperation,
3514
3514
  metadata: {}
3515
3515
  });
@@ -3808,7 +3808,7 @@ var Performer$1 = function Performer(_ref) {
3808
3808
  className: "neeto-ui-bg-gray-100",
3809
3809
  customTarget: /*#__PURE__*/jsx(Button, {
3810
3810
  "data-cy": "event-performer-dropdown",
3811
- label: selectedOption === null || selectedOption === void 0 ? void 0 : (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
3811
+ label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
3812
3812
  style: "link",
3813
3813
  className: classNames(" neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3814
3814
  "neeto-ui-text-accent-800": isSelected,
@@ -3951,7 +3951,7 @@ var Events$1 = function Events(_ref) {
3951
3951
  }, options) : [].concat(_toConsumableArray(options), [{
3952
3952
  name: option.value
3953
3953
  }]);
3954
- onSelectEvent === null || onSelectEvent === void 0 ? void 0 : onSelectEvent(name, options);
3954
+ onSelectEvent === null || onSelectEvent === void 0 || onSelectEvent(name, options);
3955
3955
  setFieldValue("".concat(name, ".value"), options);
3956
3956
  };
3957
3957
  var handleClose = function handleClose() {
@@ -3983,7 +3983,7 @@ var Events$1 = function Events(_ref) {
3983
3983
  children: t("neetoRules.common.or")
3984
3984
  }), /*#__PURE__*/jsx(Button, {
3985
3985
  "data-cy": "condition-value-multi-select-field",
3986
- label: event === null || event === void 0 ? void 0 : (_event$label = event.label) === null || _event$label === void 0 ? void 0 : _event$label.toLowerCase(),
3986
+ label: event === null || event === void 0 || (_event$label = event.label) === null || _event$label === void 0 ? void 0 : _event$label.toLowerCase(),
3987
3987
  style: "link",
3988
3988
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
3989
3989
  "neeto-ui-text-accent-800": activeOption === event.value
@@ -4077,7 +4077,7 @@ var EventConditions = function EventConditions(_ref) {
4077
4077
  setFieldValue("".concat(conditionsName, ".value"), [{
4078
4078
  field: conditionProps === null || conditionProps === void 0 ? void 0 : conditionProps.conditionOptions[0].value,
4079
4079
  kind: conditionProps === null || conditionProps === void 0 ? void 0 : conditionProps.conditionOptions[0].kind,
4080
- verb: conditionProps === null || conditionProps === void 0 ? void 0 : (_conditionProps$condi = conditionProps.conditionOptions[0]) === null || _conditionProps$condi === void 0 ? void 0 : _conditionProps$condi.allowMatching[0],
4080
+ verb: conditionProps === null || conditionProps === void 0 || (_conditionProps$condi = conditionProps.conditionOptions[0]) === null || _conditionProps$condi === void 0 ? void 0 : _conditionProps$condi.allowMatching[0],
4081
4081
  joinType: OPERATORS.or,
4082
4082
  metadata: {}
4083
4083
  }]);
@@ -4181,7 +4181,7 @@ var EventItem = function EventItem(_ref) {
4181
4181
  var events = values[parentName].value || [];
4182
4182
  var handleEventChange = function handleEventChange(option) {
4183
4183
  setFieldValue(name, option.value);
4184
- onSelectEvent === null || onSelectEvent === void 0 ? void 0 : onSelectEvent(name, option);
4184
+ onSelectEvent === null || onSelectEvent === void 0 || onSelectEvent(name, option);
4185
4185
  setSelectedOption(option.label);
4186
4186
  };
4187
4187
  var eventOptions = useMemo(function () {
@@ -4333,7 +4333,7 @@ var Performer = function Performer(_ref) {
4333
4333
  closeOnSelect: false,
4334
4334
  customTarget: /*#__PURE__*/jsx(Button, {
4335
4335
  "data-cy": "event-performer-dropdown",
4336
- label: selectedOption === null || selectedOption === void 0 ? void 0 : (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
4336
+ label: selectedOption === null || selectedOption === void 0 || (_selectedOption$label = selectedOption.label) === null || _selectedOption$label === void 0 ? void 0 : _selectedOption$label.toLowerCase(),
4337
4337
  style: "link",
4338
4338
  className: classNames("neeto-ui-text-gray-800 neeto-ui-font-semibold underline", {
4339
4339
  "neeto-ui-text-accent-800": isSelected,
@@ -4787,7 +4787,7 @@ var ScrollToErrorField = function ScrollToErrorField(_ref) {
4787
4787
  var errorFormElement = findBy({
4788
4788
  name: fieldErrorNames
4789
4789
  }, _toConsumableArray(formRef.current.elements));
4790
- errorFormElement === null || errorFormElement === void 0 ? void 0 : errorFormElement.scrollIntoView({
4790
+ errorFormElement === null || errorFormElement === void 0 || errorFormElement.scrollIntoView({
4791
4791
  behavior: "smooth",
4792
4792
  block: "center"
4793
4793
  });