@bigbinary/neeto-rules-frontend 0.2.5 → 0.3.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.
package/dist/index.cjs.js CHANGED
@@ -16,6 +16,7 @@ var ramda = require('ramda');
16
16
  var dayjs = require('dayjs');
17
17
  var neetoEditor = require('@bigbinary/neeto-editor');
18
18
  var yup = require('yup');
19
+ var PageLoader = require('neetomolecules/PageLoader');
19
20
  var utils = require('@bigbinary/neeto-commons-frontend/utils');
20
21
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
21
22
 
@@ -45,6 +46,7 @@ var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
45
46
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
46
47
  var dayjs__namespace = /*#__PURE__*/_interopNamespace(dayjs);
47
48
  var yup__namespace = /*#__PURE__*/_interopNamespace(yup);
49
+ var PageLoader__default = /*#__PURE__*/_interopDefaultLegacy(PageLoader);
48
50
 
49
51
  function _objectDestructuringEmpty(obj) {
50
52
  if (obj == null) throw new TypeError("Cannot destructure " + obj);
@@ -5801,7 +5803,9 @@ var common$1 = {
5801
5803
  or: "or",
5802
5804
  search: "Search",
5803
5805
  as: "as",
5804
- "delete": "Delete"
5806
+ "delete": "Delete",
5807
+ viewMore: "View more",
5808
+ viewLess: "View less"
5805
5809
  };
5806
5810
  var form = {
5807
5811
  noEvents: "A rule without events will run hourly.",
@@ -5901,7 +5905,8 @@ var labels = {
5901
5905
  unassigned: "Unassigned",
5902
5906
  checked: "Checked",
5903
5907
  unchecked: "Unchecked",
5904
- text: "Text"
5908
+ text: "Text",
5909
+ ruleSummary: "Automation rule summary"
5905
5910
  };
5906
5911
  var placeholders$1 = {
5907
5912
  "if": "If",
@@ -15747,7 +15752,7 @@ function cov_1l1zuel3qt() {
15747
15752
  }
15748
15753
  cov_1l1zuel3qt();
15749
15754
  cov_1l1zuel3qt().s[0]++;
15750
- var Title = function Title(_ref) {
15755
+ var Title$1 = function Title(_ref) {
15751
15756
  var title = _ref.title,
15752
15757
  children = _ref.children;
15753
15758
  cov_1l1zuel3qt().f[0]++;
@@ -16589,7 +16594,7 @@ var Actions$1 = function Actions(_ref) {
16589
16594
  setScrollToBottom(true);
16590
16595
  };
16591
16596
  cov_3lq6cjh4u().s[18]++;
16592
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Title, {
16597
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(Title$1, {
16593
16598
  title: t("common.actions")
16594
16599
  }, /*#__PURE__*/React__default["default"].createElement(formik.FieldArray, {
16595
16600
  name: "actions",
@@ -26549,7 +26554,7 @@ var Conditions$1 = function Conditions(_ref2) {
26549
26554
  return index ? (cov_2otqdci4wd().b[4][0]++, t("placeholders.if").toLowerCase()) : (cov_2otqdci4wd().b[4][1]++, t("placeholders.if"));
26550
26555
  };
26551
26556
  cov_2otqdci4wd().s[22]++;
26552
- return /*#__PURE__*/React__default["default"].createElement(Title, {
26557
+ return /*#__PURE__*/React__default["default"].createElement(Title$1, {
26553
26558
  title: t("common.conditions")
26554
26559
  }, /*#__PURE__*/React__default["default"].createElement(formik.FieldArray, {
26555
26560
  name: "conditions",
@@ -31387,7 +31392,7 @@ var Events$2 = function Events() {
31387
31392
  arrayHelper.remove(index);
31388
31393
  };
31389
31394
  cov_dprwv7svz().s[12]++;
31390
- return /*#__PURE__*/React__default["default"].createElement(Title, {
31395
+ return /*#__PURE__*/React__default["default"].createElement(Title$1, {
31391
31396
  title: t("common.events")
31392
31397
  }, /*#__PURE__*/React__default["default"].createElement(formik.FieldArray, {
31393
31398
  name: "events",
@@ -33925,489 +33930,83 @@ var NeetoRules$2 = function NeetoRules(_ref) {
33925
33930
  return /*#__PURE__*/React__default["default"].createElement(BrowserRouter, null, /*#__PURE__*/React__default["default"].createElement(Main, rest));
33926
33931
  };
33927
33932
 
33928
- function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
33929
- try {
33930
- var info = gen[key](arg);
33931
- var value = info.value;
33932
- } catch (error) {
33933
- reject(error);
33934
- return;
33935
- }
33936
- if (info.done) {
33937
- resolve(value);
33938
- } else {
33939
- Promise.resolve(value).then(_next, _throw);
33940
- }
33941
- }
33942
- function _asyncToGenerator(fn) {
33943
- return function () {
33944
- var self = this,
33945
- args = arguments;
33946
- return new Promise(function (resolve, reject) {
33947
- var gen = fn.apply(self, args);
33948
- function _next(value) {
33949
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
33950
- }
33951
- function _throw(err) {
33952
- asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
33953
- }
33954
- _next(undefined);
33955
- });
33956
- };
33957
- }
33958
-
33959
- var regeneratorRuntime$1 = {exports: {}};
33960
-
33961
- var _typeof = {exports: {}};
33962
-
33963
- (function (module) {
33964
- function _typeof(obj) {
33965
- "@babel/helpers - typeof";
33966
-
33967
- return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
33968
- return typeof obj;
33969
- } : function (obj) {
33970
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
33971
- }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
33972
- }
33973
- module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
33974
- })(_typeof);
33975
-
33976
- (function (module) {
33977
- var _typeof$1 = _typeof.exports["default"];
33978
- function _regeneratorRuntime() {
33979
-
33980
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
33981
- module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
33982
- return exports;
33983
- }, module.exports.__esModule = true, module.exports["default"] = module.exports;
33984
- var exports = {},
33985
- Op = Object.prototype,
33986
- hasOwn = Op.hasOwnProperty,
33987
- defineProperty = Object.defineProperty || function (obj, key, desc) {
33988
- obj[key] = desc.value;
33989
- },
33990
- $Symbol = "function" == typeof Symbol ? Symbol : {},
33991
- iteratorSymbol = $Symbol.iterator || "@@iterator",
33992
- asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
33993
- toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
33994
- function define(obj, key, value) {
33995
- return Object.defineProperty(obj, key, {
33996
- value: value,
33997
- enumerable: !0,
33998
- configurable: !0,
33999
- writable: !0
34000
- }), obj[key];
34001
- }
34002
- try {
34003
- define({}, "");
34004
- } catch (err) {
34005
- define = function define(obj, key, value) {
34006
- return obj[key] = value;
34007
- };
34008
- }
34009
- function wrap(innerFn, outerFn, self, tryLocsList) {
34010
- var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
34011
- generator = Object.create(protoGenerator.prototype),
34012
- context = new Context(tryLocsList || []);
34013
- return defineProperty(generator, "_invoke", {
34014
- value: makeInvokeMethod(innerFn, self, context)
34015
- }), generator;
34016
- }
34017
- function tryCatch(fn, obj, arg) {
34018
- try {
34019
- return {
34020
- type: "normal",
34021
- arg: fn.call(obj, arg)
34022
- };
34023
- } catch (err) {
34024
- return {
34025
- type: "throw",
34026
- arg: err
34027
- };
34028
- }
34029
- }
34030
- exports.wrap = wrap;
34031
- var ContinueSentinel = {};
34032
- function Generator() {}
34033
- function GeneratorFunction() {}
34034
- function GeneratorFunctionPrototype() {}
34035
- var IteratorPrototype = {};
34036
- define(IteratorPrototype, iteratorSymbol, function () {
34037
- return this;
34038
- });
34039
- var getProto = Object.getPrototypeOf,
34040
- NativeIteratorPrototype = getProto && getProto(getProto(values([])));
34041
- NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
34042
- var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
34043
- function defineIteratorMethods(prototype) {
34044
- ["next", "throw", "return"].forEach(function (method) {
34045
- define(prototype, method, function (arg) {
34046
- return this._invoke(method, arg);
34047
- });
34048
- });
34049
- }
34050
- function AsyncIterator(generator, PromiseImpl) {
34051
- function invoke(method, arg, resolve, reject) {
34052
- var record = tryCatch(generator[method], generator, arg);
34053
- if ("throw" !== record.type) {
34054
- var result = record.arg,
34055
- value = result.value;
34056
- return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
34057
- invoke("next", value, resolve, reject);
34058
- }, function (err) {
34059
- invoke("throw", err, resolve, reject);
34060
- }) : PromiseImpl.resolve(value).then(function (unwrapped) {
34061
- result.value = unwrapped, resolve(result);
34062
- }, function (error) {
34063
- return invoke("throw", error, resolve, reject);
34064
- });
34065
- }
34066
- reject(record.arg);
34067
- }
34068
- var previousPromise;
34069
- defineProperty(this, "_invoke", {
34070
- value: function value(method, arg) {
34071
- function callInvokeWithMethodAndArg() {
34072
- return new PromiseImpl(function (resolve, reject) {
34073
- invoke(method, arg, resolve, reject);
34074
- });
34075
- }
34076
- return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
34077
- }
34078
- });
34079
- }
34080
- function makeInvokeMethod(innerFn, self, context) {
34081
- var state = "suspendedStart";
34082
- return function (method, arg) {
34083
- if ("executing" === state) throw new Error("Generator is already running");
34084
- if ("completed" === state) {
34085
- if ("throw" === method) throw arg;
34086
- return doneResult();
34087
- }
34088
- for (context.method = method, context.arg = arg;;) {
34089
- var delegate = context.delegate;
34090
- if (delegate) {
34091
- var delegateResult = maybeInvokeDelegate(delegate, context);
34092
- if (delegateResult) {
34093
- if (delegateResult === ContinueSentinel) continue;
34094
- return delegateResult;
34095
- }
34096
- }
34097
- if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
34098
- if ("suspendedStart" === state) throw state = "completed", context.arg;
34099
- context.dispatchException(context.arg);
34100
- } else "return" === context.method && context.abrupt("return", context.arg);
34101
- state = "executing";
34102
- var record = tryCatch(innerFn, self, context);
34103
- if ("normal" === record.type) {
34104
- if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
34105
- return {
34106
- value: record.arg,
34107
- done: context.done
34108
- };
34109
- }
34110
- "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
34111
- }
34112
- };
34113
- }
34114
- function maybeInvokeDelegate(delegate, context) {
34115
- var methodName = context.method,
34116
- method = delegate.iterator[methodName];
34117
- if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
34118
- var record = tryCatch(method, delegate.iterator, context.arg);
34119
- if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
34120
- var info = record.arg;
34121
- return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
34122
- }
34123
- function pushTryEntry(locs) {
34124
- var entry = {
34125
- tryLoc: locs[0]
34126
- };
34127
- 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
34128
- }
34129
- function resetTryEntry(entry) {
34130
- var record = entry.completion || {};
34131
- record.type = "normal", delete record.arg, entry.completion = record;
34132
- }
34133
- function Context(tryLocsList) {
34134
- this.tryEntries = [{
34135
- tryLoc: "root"
34136
- }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
34137
- }
34138
- function values(iterable) {
34139
- if (iterable) {
34140
- var iteratorMethod = iterable[iteratorSymbol];
34141
- if (iteratorMethod) return iteratorMethod.call(iterable);
34142
- if ("function" == typeof iterable.next) return iterable;
34143
- if (!isNaN(iterable.length)) {
34144
- var i = -1,
34145
- next = function next() {
34146
- for (; ++i < iterable.length;) {
34147
- if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
34148
- }
34149
- return next.value = undefined, next.done = !0, next;
34150
- };
34151
- return next.next = next;
34152
- }
34153
- }
34154
- return {
34155
- next: doneResult
34156
- };
34157
- }
34158
- function doneResult() {
34159
- return {
34160
- value: undefined,
34161
- done: !0
34162
- };
34163
- }
34164
- return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
34165
- value: GeneratorFunctionPrototype,
34166
- configurable: !0
34167
- }), defineProperty(GeneratorFunctionPrototype, "constructor", {
34168
- value: GeneratorFunction,
34169
- configurable: !0
34170
- }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
34171
- var ctor = "function" == typeof genFun && genFun.constructor;
34172
- return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
34173
- }, exports.mark = function (genFun) {
34174
- return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
34175
- }, exports.awrap = function (arg) {
34176
- return {
34177
- __await: arg
34178
- };
34179
- }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
34180
- return this;
34181
- }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
34182
- void 0 === PromiseImpl && (PromiseImpl = Promise);
34183
- var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
34184
- return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
34185
- return result.done ? result.value : iter.next();
34186
- });
34187
- }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
34188
- return this;
34189
- }), define(Gp, "toString", function () {
34190
- return "[object Generator]";
34191
- }), exports.keys = function (val) {
34192
- var object = Object(val),
34193
- keys = [];
34194
- for (var key in object) {
34195
- keys.push(key);
34196
- }
34197
- return keys.reverse(), function next() {
34198
- for (; keys.length;) {
34199
- var key = keys.pop();
34200
- if (key in object) return next.value = key, next.done = !1, next;
34201
- }
34202
- return next.done = !0, next;
34203
- };
34204
- }, exports.values = values, Context.prototype = {
34205
- constructor: Context,
34206
- reset: function reset(skipTempReset) {
34207
- if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
34208
- "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
34209
- }
34210
- },
34211
- stop: function stop() {
34212
- this.done = !0;
34213
- var rootRecord = this.tryEntries[0].completion;
34214
- if ("throw" === rootRecord.type) throw rootRecord.arg;
34215
- return this.rval;
34216
- },
34217
- dispatchException: function dispatchException(exception) {
34218
- if (this.done) throw exception;
34219
- var context = this;
34220
- function handle(loc, caught) {
34221
- return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
34222
- }
34223
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
34224
- var entry = this.tryEntries[i],
34225
- record = entry.completion;
34226
- if ("root" === entry.tryLoc) return handle("end");
34227
- if (entry.tryLoc <= this.prev) {
34228
- var hasCatch = hasOwn.call(entry, "catchLoc"),
34229
- hasFinally = hasOwn.call(entry, "finallyLoc");
34230
- if (hasCatch && hasFinally) {
34231
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
34232
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
34233
- } else if (hasCatch) {
34234
- if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
34235
- } else {
34236
- if (!hasFinally) throw new Error("try statement without catch or finally");
34237
- if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
34238
- }
34239
- }
34240
- }
34241
- },
34242
- abrupt: function abrupt(type, arg) {
34243
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
34244
- var entry = this.tryEntries[i];
34245
- if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
34246
- var finallyEntry = entry;
34247
- break;
34248
- }
34249
- }
34250
- finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
34251
- var record = finallyEntry ? finallyEntry.completion : {};
34252
- return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
34253
- },
34254
- complete: function complete(record, afterLoc) {
34255
- if ("throw" === record.type) throw record.arg;
34256
- return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
34257
- },
34258
- finish: function finish(finallyLoc) {
34259
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
34260
- var entry = this.tryEntries[i];
34261
- if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
34262
- }
34263
- },
34264
- "catch": function _catch(tryLoc) {
34265
- for (var i = this.tryEntries.length - 1; i >= 0; --i) {
34266
- var entry = this.tryEntries[i];
34267
- if (entry.tryLoc === tryLoc) {
34268
- var record = entry.completion;
34269
- if ("throw" === record.type) {
34270
- var thrown = record.arg;
34271
- resetTryEntry(entry);
34272
- }
34273
- return thrown;
34274
- }
34275
- }
34276
- throw new Error("illegal catch attempt");
34277
- },
34278
- delegateYield: function delegateYield(iterable, resultName, nextLoc) {
34279
- return this.delegate = {
34280
- iterator: values(iterable),
34281
- resultName: resultName,
34282
- nextLoc: nextLoc
34283
- }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
34284
- }
34285
- }, exports;
34286
- }
34287
- module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
34288
- })(regeneratorRuntime$1);
34289
-
34290
- // TODO(Babel 8): Remove this file.
34291
-
34292
- var runtime = regeneratorRuntime$1.exports();
34293
- var regenerator = runtime;
34294
-
34295
- // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
34296
- try {
34297
- regeneratorRuntime = runtime;
34298
- } catch (accidentalStrictMode) {
34299
- if ((typeof globalThis === "undefined" ? "undefined" : _typeof$2(globalThis)) === "object") {
34300
- globalThis.regeneratorRuntime = runtime;
34301
- } else {
34302
- Function("r", "regeneratorRuntime = r")(runtime);
34303
- }
34304
- }
34305
-
34306
- function cov_k2snexiez() {
34307
- var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/constants.js";
34308
- var hash = "a62a7b0d81cfcce07b53d50e2f5aad6922fc1011";
33933
+ function cov_13jp1hsz0e() {
33934
+ var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/Card.jsx";
33935
+ var hash = "060ed8cb86ad2890593771245657ef35803f1a4f";
34309
33936
  var global = new Function("return this")();
34310
33937
  var gcv = "__coverage__";
34311
33938
  var coverageData = {
34312
- path: "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/constants.js",
33939
+ path: "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/Card.jsx",
34313
33940
  statementMap: {
34314
33941
  "0": {
34315
33942
  start: {
34316
- line: 3,
34317
- column: 21
33943
+ line: 6,
33944
+ column: 14
34318
33945
  },
34319
33946
  end: {
34320
- line: 18,
33947
+ line: 15,
34321
33948
  column: 1
34322
33949
  }
34323
33950
  },
34324
33951
  "1": {
34325
33952
  start: {
34326
- line: 20,
34327
- column: 33
33953
+ line: 7,
33954
+ column: 2
34328
33955
  },
34329
33956
  end: {
34330
- line: 31,
34331
- column: 1
33957
+ line: 14,
33958
+ column: 5
34332
33959
  }
34333
33960
  },
34334
33961
  "2": {
34335
33962
  start: {
34336
- line: 33,
34337
- column: 16
34338
- },
34339
- end: {
34340
- line: 36,
34341
- column: 1
34342
- }
34343
- },
34344
- "3": {
34345
- start: {
34346
- line: 38,
34347
- column: 28
34348
- },
34349
- end: {
34350
- line: 41,
34351
- column: 1
34352
- }
34353
- },
34354
- "4": {
34355
- start: {
34356
- line: 43,
34357
- column: 22
34358
- },
34359
- end: {
34360
- line: 43,
34361
- column: 67
34362
- }
34363
- },
34364
- "5": {
34365
- start: {
34366
- line: 45,
34367
- column: 20
33963
+ line: 17,
33964
+ column: 0
34368
33965
  },
34369
33966
  end: {
34370
- line: 45,
34371
- column: 48
33967
+ line: 20,
33968
+ column: 2
34372
33969
  }
34373
- },
34374
- "6": {
34375
- start: {
34376
- line: 47,
34377
- column: 30
33970
+ }
33971
+ },
33972
+ fnMap: {
33973
+ "0": {
33974
+ name: "(anonymous_0)",
33975
+ decl: {
33976
+ start: {
33977
+ line: 6,
33978
+ column: 14
33979
+ },
33980
+ end: {
33981
+ line: 6,
33982
+ column: 15
33983
+ }
34378
33984
  },
34379
- end: {
34380
- line: 47,
34381
- column: 31
34382
- }
34383
- },
34384
- "7": {
34385
- start: {
34386
- line: 49,
34387
- column: 27
33985
+ loc: {
33986
+ start: {
33987
+ line: 7,
33988
+ column: 2
33989
+ },
33990
+ end: {
33991
+ line: 14,
33992
+ column: 5
33993
+ }
34388
33994
  },
34389
- end: {
34390
- line: 49,
34391
- column: 65
34392
- }
33995
+ line: 7
34393
33996
  }
34394
33997
  },
34395
- fnMap: {},
34396
33998
  branchMap: {},
34397
33999
  s: {
34398
34000
  "0": 0,
34399
34001
  "1": 0,
34400
- "2": 0,
34401
- "3": 0,
34402
- "4": 0,
34403
- "5": 0,
34404
- "6": 0,
34405
- "7": 0
34002
+ "2": 0
34003
+ },
34004
+ f: {
34005
+ "0": 0
34406
34006
  },
34407
- f: {},
34408
34007
  b: {},
34409
34008
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34410
- hash: "a62a7b0d81cfcce07b53d50e2f5aad6922fc1011"
34009
+ hash: "060ed8cb86ad2890593771245657ef35803f1a4f"
34411
34010
  };
34412
34011
  var coverage = global[gcv] || (global[gcv] = {});
34413
34012
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -34416,31 +34015,3317 @@ function cov_k2snexiez() {
34416
34015
  var actualCoverage = coverage[path];
34417
34016
  {
34418
34017
  // @ts-ignore
34419
- cov_k2snexiez = function () {
34018
+ cov_13jp1hsz0e = function () {
34420
34019
  return actualCoverage;
34421
34020
  };
34422
34021
  }
34423
34022
  return actualCoverage;
34424
34023
  }
34425
- cov_k2snexiez();
34426
- var ACTION_TYPES = (cov_k2snexiez().s[0]++, {
34427
- emailToIds: "emailToIds",
34428
- email: "email",
34429
- emailTo: "emailTo",
34430
- dropdown: "dropdown",
34431
- list: "list",
34432
- multiSelect: "multiSelect",
34433
- note: "note",
34434
- text: "text",
34435
- number: "number",
34436
- decimal: "decimal",
34437
- regex: "regex",
34438
- textarea: "textarea",
34439
- date: "date",
34440
- longText: "longText"
34441
- });
34442
- var LIST_FIELD_TOOLTIP_PROPS = (cov_k2snexiez().s[1]++, {
34443
- save: {
34024
+ cov_13jp1hsz0e();
34025
+ cov_13jp1hsz0e().s[0]++;
34026
+ var Title = function Title(_ref) {
34027
+ var title = _ref.title,
34028
+ children = _ref.children;
34029
+ cov_13jp1hsz0e().f[0]++;
34030
+ cov_13jp1hsz0e().s[1]++;
34031
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
34032
+ className: "neeto-ui-text-gray-800",
34033
+ style: "h5",
34034
+ weight: "semibold"
34035
+ }, title), /*#__PURE__*/React__default["default"].createElement("div", {
34036
+ className: "neeto-ui-bg-gray-100 neeto-ui-rounded-sm my-3 p-4"
34037
+ }, children));
34038
+ };
34039
+ cov_13jp1hsz0e().s[2]++;
34040
+
34041
+ function cov_1yo87bzjl0() {
34042
+ var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/MultiSelectValues.jsx";
34043
+ var hash = "ebc82c77b82c7a6b1fe37565159b52052ceca263";
34044
+ var global = new Function("return this")();
34045
+ var gcv = "__coverage__";
34046
+ var coverageData = {
34047
+ path: "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/MultiSelectValues.jsx",
34048
+ statementMap: {
34049
+ "0": {
34050
+ start: {
34051
+ line: 5,
34052
+ column: 26
34053
+ },
34054
+ end: {
34055
+ line: 28,
34056
+ column: 1
34057
+ }
34058
+ },
34059
+ "1": {
34060
+ start: {
34061
+ line: 6,
34062
+ column: 2
34063
+ },
34064
+ end: {
34065
+ line: 27,
34066
+ column: 5
34067
+ }
34068
+ },
34069
+ "2": {
34070
+ start: {
34071
+ line: 8,
34072
+ column: 6
34073
+ },
34074
+ end: {
34075
+ line: 25,
34076
+ column: 23
34077
+ }
34078
+ }
34079
+ },
34080
+ fnMap: {
34081
+ "0": {
34082
+ name: "(anonymous_0)",
34083
+ decl: {
34084
+ start: {
34085
+ line: 5,
34086
+ column: 26
34087
+ },
34088
+ end: {
34089
+ line: 5,
34090
+ column: 27
34091
+ }
34092
+ },
34093
+ loc: {
34094
+ start: {
34095
+ line: 6,
34096
+ column: 2
34097
+ },
34098
+ end: {
34099
+ line: 27,
34100
+ column: 5
34101
+ }
34102
+ },
34103
+ line: 6
34104
+ },
34105
+ "1": {
34106
+ name: "(anonymous_1)",
34107
+ decl: {
34108
+ start: {
34109
+ line: 7,
34110
+ column: 17
34111
+ },
34112
+ end: {
34113
+ line: 7,
34114
+ column: 18
34115
+ }
34116
+ },
34117
+ loc: {
34118
+ start: {
34119
+ line: 8,
34120
+ column: 6
34121
+ },
34122
+ end: {
34123
+ line: 25,
34124
+ column: 23
34125
+ }
34126
+ },
34127
+ line: 8
34128
+ }
34129
+ },
34130
+ branchMap: {
34131
+ "0": {
34132
+ loc: {
34133
+ start: {
34134
+ line: 9,
34135
+ column: 9
34136
+ },
34137
+ end: {
34138
+ line: 17,
34139
+ column: 9
34140
+ }
34141
+ },
34142
+ type: "binary-expr",
34143
+ locations: [{
34144
+ start: {
34145
+ line: 9,
34146
+ column: 9
34147
+ },
34148
+ end: {
34149
+ line: 9,
34150
+ column: 14
34151
+ }
34152
+ }, {
34153
+ start: {
34154
+ line: 10,
34155
+ column: 10
34156
+ },
34157
+ end: {
34158
+ line: 16,
34159
+ column: 23
34160
+ }
34161
+ }],
34162
+ line: 9
34163
+ }
34164
+ },
34165
+ s: {
34166
+ "0": 0,
34167
+ "1": 0,
34168
+ "2": 0
34169
+ },
34170
+ f: {
34171
+ "0": 0,
34172
+ "1": 0
34173
+ },
34174
+ b: {
34175
+ "0": [0, 0]
34176
+ },
34177
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34178
+ hash: "ebc82c77b82c7a6b1fe37565159b52052ceca263"
34179
+ };
34180
+ var coverage = global[gcv] || (global[gcv] = {});
34181
+ if (!coverage[path] || coverage[path].hash !== hash) {
34182
+ coverage[path] = coverageData;
34183
+ }
34184
+ var actualCoverage = coverage[path];
34185
+ {
34186
+ // @ts-ignore
34187
+ cov_1yo87bzjl0 = function () {
34188
+ return actualCoverage;
34189
+ };
34190
+ }
34191
+ return actualCoverage;
34192
+ }
34193
+ cov_1yo87bzjl0();
34194
+ cov_1yo87bzjl0().s[0]++;
34195
+ var MultiSelectValues = function MultiSelectValues(_ref) {
34196
+ var separator = _ref.separator,
34197
+ values = _ref.values;
34198
+ cov_1yo87bzjl0().f[0]++;
34199
+ cov_1yo87bzjl0().s[1]++;
34200
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, values === null || values === void 0 ? void 0 : values.map(function (value, idx) {
34201
+ cov_1yo87bzjl0().f[1]++;
34202
+ cov_1yo87bzjl0().s[2]++;
34203
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
34204
+ key: idx
34205
+ }, (cov_1yo87bzjl0().b[0][0]++, !!idx) && (cov_1yo87bzjl0().b[0][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
34206
+ className: "neeto-ui-text-gray-700",
34207
+ style: "h5",
34208
+ weight: "normal"
34209
+ }, separator)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
34210
+ className: "neeto-ui-text-gray-800",
34211
+ style: "h5",
34212
+ weight: "semibold"
34213
+ }, value.toLowerCase()));
34214
+ }));
34215
+ };
34216
+
34217
+ function cov_l89oqcaez() {
34218
+ var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/utils.js";
34219
+ var hash = "67d71dfe37d2327777bd145bf79ff7779c4b115d";
34220
+ var global = new Function("return this")();
34221
+ var gcv = "__coverage__";
34222
+ var coverageData = {
34223
+ path: "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/utils.js",
34224
+ statementMap: {
34225
+ "0": {
34226
+ start: {
34227
+ line: 3,
34228
+ column: 37
34229
+ },
34230
+ end: {
34231
+ line: 7,
34232
+ column: 25
34233
+ }
34234
+ },
34235
+ "1": {
34236
+ start: {
34237
+ line: 4,
34238
+ column: 2
34239
+ },
34240
+ end: {
34241
+ line: 7,
34242
+ column: 25
34243
+ }
34244
+ }
34245
+ },
34246
+ fnMap: {
34247
+ "0": {
34248
+ name: "(anonymous_0)",
34249
+ decl: {
34250
+ start: {
34251
+ line: 3,
34252
+ column: 37
34253
+ },
34254
+ end: {
34255
+ line: 3,
34256
+ column: 38
34257
+ }
34258
+ },
34259
+ loc: {
34260
+ start: {
34261
+ line: 4,
34262
+ column: 2
34263
+ },
34264
+ end: {
34265
+ line: 7,
34266
+ column: 25
34267
+ }
34268
+ },
34269
+ line: 4
34270
+ }
34271
+ },
34272
+ branchMap: {},
34273
+ s: {
34274
+ "0": 0,
34275
+ "1": 0
34276
+ },
34277
+ f: {
34278
+ "0": 0
34279
+ },
34280
+ b: {},
34281
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
34282
+ hash: "67d71dfe37d2327777bd145bf79ff7779c4b115d"
34283
+ };
34284
+ var coverage = global[gcv] || (global[gcv] = {});
34285
+ if (!coverage[path] || coverage[path].hash !== hash) {
34286
+ coverage[path] = coverageData;
34287
+ }
34288
+ var actualCoverage = coverage[path];
34289
+ {
34290
+ // @ts-ignore
34291
+ cov_l89oqcaez = function () {
34292
+ return actualCoverage;
34293
+ };
34294
+ }
34295
+ return actualCoverage;
34296
+ }
34297
+ cov_l89oqcaez();
34298
+ cov_l89oqcaez().s[0]++;
34299
+ var getEntityDisplayValue = function getEntityDisplayValue(entitiy, entitiyOption) {
34300
+ var _findBy, _findBy$label;
34301
+ cov_l89oqcaez().f[0]++;
34302
+ cov_l89oqcaez().s[1]++;
34303
+ return (_findBy = pure.findBy({
34304
+ value: entitiy.metadata.value
34305
+ }, entitiyOption.dropdownOptions)) === null || _findBy === void 0 ? void 0 : (_findBy$label = _findBy.label) === null || _findBy$label === void 0 ? void 0 : _findBy$label.toLowerCase();
34306
+ };
34307
+
34308
+ function cov_12s3p009b2() {
34309
+ var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/ActionsDetail.jsx";
34310
+ var hash = "f649e2bb358ba3c6a0dec691b8f1c0f6ace29061";
34311
+ var global = new Function("return this")();
34312
+ var gcv = "__coverage__";
34313
+ var coverageData = {
34314
+ path: "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/ActionsDetail.jsx",
34315
+ statementMap: {
34316
+ "0": {
34317
+ start: {
34318
+ line: 13,
34319
+ column: 22
34320
+ },
34321
+ end: {
34322
+ line: 103,
34323
+ column: 1
34324
+ }
34325
+ },
34326
+ "1": {
34327
+ start: {
34328
+ line: 14,
34329
+ column: 34
34330
+ },
34331
+ end: {
34332
+ line: 14,
34333
+ column: 49
34334
+ }
34335
+ },
34336
+ "2": {
34337
+ start: {
34338
+ line: 15,
34339
+ column: 16
34340
+ },
34341
+ end: {
34342
+ line: 15,
34343
+ column: 32
34344
+ }
34345
+ },
34346
+ "3": {
34347
+ start: {
34348
+ line: 17,
34349
+ column: 22
34350
+ },
34351
+ end: {
34352
+ line: 17,
34353
+ column: 35
34354
+ }
34355
+ },
34356
+ "4": {
34357
+ start: {
34358
+ line: 19,
34359
+ column: 4
34360
+ },
34361
+ end: {
34362
+ line: 19,
34363
+ column: 78
34364
+ }
34365
+ },
34366
+ "5": {
34367
+ start: {
34368
+ line: 21,
34369
+ column: 19
34370
+ },
34371
+ end: {
34372
+ line: 24,
34373
+ column: 24
34374
+ }
34375
+ },
34376
+ "6": {
34377
+ start: {
34378
+ line: 22,
34379
+ column: 4
34380
+ },
34381
+ end: {
34382
+ line: 24,
34383
+ column: 24
34384
+ }
34385
+ },
34386
+ "7": {
34387
+ start: {
34388
+ line: 26,
34389
+ column: 29
34390
+ },
34391
+ end: {
34392
+ line: 56,
34393
+ column: 3
34394
+ }
34395
+ },
34396
+ "8": {
34397
+ start: {
34398
+ line: 27,
34399
+ column: 4
34400
+ },
34401
+ end: {
34402
+ line: 37,
34403
+ column: 5
34404
+ }
34405
+ },
34406
+ "9": {
34407
+ start: {
34408
+ line: 28,
34409
+ column: 6
34410
+ },
34411
+ end: {
34412
+ line: 36,
34413
+ column: 8
34414
+ }
34415
+ },
34416
+ "10": {
34417
+ start: {
34418
+ line: 39,
34419
+ column: 4
34420
+ },
34421
+ end: {
34422
+ line: 53,
34423
+ column: 5
34424
+ }
34425
+ },
34426
+ "11": {
34427
+ start: {
34428
+ line: 40,
34429
+ column: 21
34430
+ },
34431
+ end: {
34432
+ line: 45,
34433
+ column: 7
34434
+ }
34435
+ },
34436
+ "12": {
34437
+ start: {
34438
+ line: 43,
34439
+ column: 10
34440
+ },
34441
+ end: {
34442
+ line: 43,
34443
+ column: 47
34444
+ }
34445
+ },
34446
+ "13": {
34447
+ start: {
34448
+ line: 47,
34449
+ column: 6
34450
+ },
34451
+ end: {
34452
+ line: 52,
34453
+ column: 8
34454
+ }
34455
+ },
34456
+ "14": {
34457
+ start: {
34458
+ line: 55,
34459
+ column: 4
34460
+ },
34461
+ end: {
34462
+ line: 55,
34463
+ column: 16
34464
+ }
34465
+ },
34466
+ "15": {
34467
+ start: {
34468
+ line: 58,
34469
+ column: 23
34470
+ },
34471
+ end: {
34472
+ line: 74,
34473
+ column: 3
34474
+ }
34475
+ },
34476
+ "16": {
34477
+ start: {
34478
+ line: 59,
34479
+ column: 25
34480
+ },
34481
+ end: {
34482
+ line: 59,
34483
+ column: 78
34484
+ }
34485
+ },
34486
+ "17": {
34487
+ start: {
34488
+ line: 60,
34489
+ column: 4
34490
+ },
34491
+ end: {
34492
+ line: 60,
34493
+ column: 35
34494
+ }
34495
+ },
34496
+ "18": {
34497
+ start: {
34498
+ line: 60,
34499
+ column: 23
34500
+ },
34501
+ end: {
34502
+ line: 60,
34503
+ column: 35
34504
+ }
34505
+ },
34506
+ "19": {
34507
+ start: {
34508
+ line: 62,
34509
+ column: 4
34510
+ },
34511
+ end: {
34512
+ line: 73,
34513
+ column: 6
34514
+ }
34515
+ },
34516
+ "20": {
34517
+ start: {
34518
+ line: 76,
34519
+ column: 2
34520
+ },
34521
+ end: {
34522
+ line: 102,
34523
+ column: 4
34524
+ }
34525
+ },
34526
+ "21": {
34527
+ start: {
34528
+ line: 79,
34529
+ column: 8
34530
+ },
34531
+ end: {
34532
+ line: 88,
34533
+ column: 14
34534
+ }
34535
+ },
34536
+ "22": {
34537
+ start: {
34538
+ line: 97,
34539
+ column: 27
34540
+ },
34541
+ end: {
34542
+ line: 97,
34543
+ column: 63
34544
+ }
34545
+ },
34546
+ "23": {
34547
+ start: {
34548
+ line: 97,
34549
+ column: 52
34550
+ },
34551
+ end: {
34552
+ line: 97,
34553
+ column: 62
34554
+ }
34555
+ }
34556
+ },
34557
+ fnMap: {
34558
+ "0": {
34559
+ name: "(anonymous_0)",
34560
+ decl: {
34561
+ start: {
34562
+ line: 13,
34563
+ column: 22
34564
+ },
34565
+ end: {
34566
+ line: 13,
34567
+ column: 23
34568
+ }
34569
+ },
34570
+ loc: {
34571
+ start: {
34572
+ line: 13,
34573
+ column: 39
34574
+ },
34575
+ end: {
34576
+ line: 103,
34577
+ column: 1
34578
+ }
34579
+ },
34580
+ line: 13
34581
+ },
34582
+ "1": {
34583
+ name: "(anonymous_1)",
34584
+ decl: {
34585
+ start: {
34586
+ line: 21,
34587
+ column: 19
34588
+ },
34589
+ end: {
34590
+ line: 21,
34591
+ column: 20
34592
+ }
34593
+ },
34594
+ loc: {
34595
+ start: {
34596
+ line: 22,
34597
+ column: 4
34598
+ },
34599
+ end: {
34600
+ line: 24,
34601
+ column: 24
34602
+ }
34603
+ },
34604
+ line: 22
34605
+ },
34606
+ "2": {
34607
+ name: "(anonymous_2)",
34608
+ decl: {
34609
+ start: {
34610
+ line: 26,
34611
+ column: 29
34612
+ },
34613
+ end: {
34614
+ line: 26,
34615
+ column: 30
34616
+ }
34617
+ },
34618
+ loc: {
34619
+ start: {
34620
+ line: 26,
34621
+ column: 55
34622
+ },
34623
+ end: {
34624
+ line: 56,
34625
+ column: 3
34626
+ }
34627
+ },
34628
+ line: 26
34629
+ },
34630
+ "3": {
34631
+ name: "(anonymous_3)",
34632
+ decl: {
34633
+ start: {
34634
+ line: 42,
34635
+ column: 44
34636
+ },
34637
+ end: {
34638
+ line: 42,
34639
+ column: 45
34640
+ }
34641
+ },
34642
+ loc: {
34643
+ start: {
34644
+ line: 43,
34645
+ column: 10
34646
+ },
34647
+ end: {
34648
+ line: 43,
34649
+ column: 47
34650
+ }
34651
+ },
34652
+ line: 43
34653
+ },
34654
+ "4": {
34655
+ name: "(anonymous_4)",
34656
+ decl: {
34657
+ start: {
34658
+ line: 58,
34659
+ column: 23
34660
+ },
34661
+ end: {
34662
+ line: 58,
34663
+ column: 24
34664
+ }
34665
+ },
34666
+ loc: {
34667
+ start: {
34668
+ line: 58,
34669
+ column: 33
34670
+ },
34671
+ end: {
34672
+ line: 74,
34673
+ column: 3
34674
+ }
34675
+ },
34676
+ line: 58
34677
+ },
34678
+ "5": {
34679
+ name: "(anonymous_5)",
34680
+ decl: {
34681
+ start: {
34682
+ line: 78,
34683
+ column: 22
34684
+ },
34685
+ end: {
34686
+ line: 78,
34687
+ column: 23
34688
+ }
34689
+ },
34690
+ loc: {
34691
+ start: {
34692
+ line: 79,
34693
+ column: 8
34694
+ },
34695
+ end: {
34696
+ line: 88,
34697
+ column: 14
34698
+ }
34699
+ },
34700
+ line: 79
34701
+ },
34702
+ "6": {
34703
+ name: "(anonymous_6)",
34704
+ decl: {
34705
+ start: {
34706
+ line: 97,
34707
+ column: 21
34708
+ },
34709
+ end: {
34710
+ line: 97,
34711
+ column: 22
34712
+ }
34713
+ },
34714
+ loc: {
34715
+ start: {
34716
+ line: 97,
34717
+ column: 27
34718
+ },
34719
+ end: {
34720
+ line: 97,
34721
+ column: 63
34722
+ }
34723
+ },
34724
+ line: 97
34725
+ },
34726
+ "7": {
34727
+ name: "(anonymous_7)",
34728
+ decl: {
34729
+ start: {
34730
+ line: 97,
34731
+ column: 39
34732
+ },
34733
+ end: {
34734
+ line: 97,
34735
+ column: 40
34736
+ }
34737
+ },
34738
+ loc: {
34739
+ start: {
34740
+ line: 97,
34741
+ column: 52
34742
+ },
34743
+ end: {
34744
+ line: 97,
34745
+ column: 62
34746
+ }
34747
+ },
34748
+ line: 97
34749
+ }
34750
+ },
34751
+ branchMap: {
34752
+ "0": {
34753
+ loc: {
34754
+ start: {
34755
+ line: 19,
34756
+ column: 4
34757
+ },
34758
+ end: {
34759
+ line: 19,
34760
+ column: 78
34761
+ }
34762
+ },
34763
+ type: "cond-expr",
34764
+ locations: [{
34765
+ start: {
34766
+ line: 19,
34767
+ column: 41
34768
+ },
34769
+ end: {
34770
+ line: 19,
34771
+ column: 52
34772
+ }
34773
+ }, {
34774
+ start: {
34775
+ line: 19,
34776
+ column: 55
34777
+ },
34778
+ end: {
34779
+ line: 19,
34780
+ column: 78
34781
+ }
34782
+ }],
34783
+ line: 19
34784
+ },
34785
+ "1": {
34786
+ loc: {
34787
+ start: {
34788
+ line: 19,
34789
+ column: 4
34790
+ },
34791
+ end: {
34792
+ line: 19,
34793
+ column: 38
34794
+ }
34795
+ },
34796
+ type: "binary-expr",
34797
+ locations: [{
34798
+ start: {
34799
+ line: 19,
34800
+ column: 4
34801
+ },
34802
+ end: {
34803
+ line: 19,
34804
+ column: 12
34805
+ }
34806
+ }, {
34807
+ start: {
34808
+ line: 19,
34809
+ column: 16
34810
+ },
34811
+ end: {
34812
+ line: 19,
34813
+ column: 38
34814
+ }
34815
+ }],
34816
+ line: 19
34817
+ },
34818
+ "2": {
34819
+ loc: {
34820
+ start: {
34821
+ line: 22,
34822
+ column: 4
34823
+ },
34824
+ end: {
34825
+ line: 24,
34826
+ column: 24
34827
+ }
34828
+ },
34829
+ type: "cond-expr",
34830
+ locations: [{
34831
+ start: {
34832
+ line: 23,
34833
+ column: 8
34834
+ },
34835
+ end: {
34836
+ line: 23,
34837
+ column: 65
34838
+ }
34839
+ }, {
34840
+ start: {
34841
+ line: 24,
34842
+ column: 8
34843
+ },
34844
+ end: {
34845
+ line: 24,
34846
+ column: 24
34847
+ }
34848
+ }],
34849
+ line: 22
34850
+ },
34851
+ "3": {
34852
+ loc: {
34853
+ start: {
34854
+ line: 27,
34855
+ column: 4
34856
+ },
34857
+ end: {
34858
+ line: 37,
34859
+ column: 5
34860
+ }
34861
+ },
34862
+ type: "if",
34863
+ locations: [{
34864
+ start: {
34865
+ line: 27,
34866
+ column: 4
34867
+ },
34868
+ end: {
34869
+ line: 37,
34870
+ column: 5
34871
+ }
34872
+ }, {
34873
+ start: {
34874
+ line: undefined,
34875
+ column: undefined
34876
+ },
34877
+ end: {
34878
+ line: undefined,
34879
+ column: undefined
34880
+ }
34881
+ }],
34882
+ line: 27
34883
+ },
34884
+ "4": {
34885
+ loc: {
34886
+ start: {
34887
+ line: 39,
34888
+ column: 4
34889
+ },
34890
+ end: {
34891
+ line: 53,
34892
+ column: 5
34893
+ }
34894
+ },
34895
+ type: "if",
34896
+ locations: [{
34897
+ start: {
34898
+ line: 39,
34899
+ column: 4
34900
+ },
34901
+ end: {
34902
+ line: 53,
34903
+ column: 5
34904
+ }
34905
+ }, {
34906
+ start: {
34907
+ line: undefined,
34908
+ column: undefined
34909
+ },
34910
+ end: {
34911
+ line: undefined,
34912
+ column: undefined
34913
+ }
34914
+ }],
34915
+ line: 39
34916
+ },
34917
+ "5": {
34918
+ loc: {
34919
+ start: {
34920
+ line: 60,
34921
+ column: 4
34922
+ },
34923
+ end: {
34924
+ line: 60,
34925
+ column: 35
34926
+ }
34927
+ },
34928
+ type: "if",
34929
+ locations: [{
34930
+ start: {
34931
+ line: 60,
34932
+ column: 4
34933
+ },
34934
+ end: {
34935
+ line: 60,
34936
+ column: 35
34937
+ }
34938
+ }, {
34939
+ start: {
34940
+ line: undefined,
34941
+ column: undefined
34942
+ },
34943
+ end: {
34944
+ line: undefined,
34945
+ column: undefined
34946
+ }
34947
+ }],
34948
+ line: 60
34949
+ },
34950
+ "6": {
34951
+ loc: {
34952
+ start: {
34953
+ line: 90,
34954
+ column: 7
34955
+ },
34956
+ end: {
34957
+ line: 100,
34958
+ column: 7
34959
+ }
34960
+ },
34961
+ type: "binary-expr",
34962
+ locations: [{
34963
+ start: {
34964
+ line: 90,
34965
+ column: 7
34966
+ },
34967
+ end: {
34968
+ line: 90,
34969
+ column: 29
34970
+ }
34971
+ }, {
34972
+ start: {
34973
+ line: 91,
34974
+ column: 8
34975
+ },
34976
+ end: {
34977
+ line: 99,
34978
+ column: 14
34979
+ }
34980
+ }],
34981
+ line: 90
34982
+ },
34983
+ "7": {
34984
+ loc: {
34985
+ start: {
34986
+ line: 93,
34987
+ column: 18
34988
+ },
34989
+ end: {
34990
+ line: 93,
34991
+ column: 39
34992
+ }
34993
+ },
34994
+ type: "cond-expr",
34995
+ locations: [{
34996
+ start: {
34997
+ line: 93,
34998
+ column: 30
34999
+ },
35000
+ end: {
35001
+ line: 93,
35002
+ column: 34
35003
+ }
35004
+ }, {
35005
+ start: {
35006
+ line: 93,
35007
+ column: 37
35008
+ },
35009
+ end: {
35010
+ line: 93,
35011
+ column: 39
35012
+ }
35013
+ }],
35014
+ line: 93
35015
+ },
35016
+ "8": {
35017
+ loc: {
35018
+ start: {
35019
+ line: 94,
35020
+ column: 19
35021
+ },
35022
+ end: {
35023
+ line: 94,
35024
+ column: 74
35025
+ }
35026
+ },
35027
+ type: "cond-expr",
35028
+ locations: [{
35029
+ start: {
35030
+ line: 94,
35031
+ column: 31
35032
+ },
35033
+ end: {
35034
+ line: 94,
35035
+ column: 51
35036
+ }
35037
+ }, {
35038
+ start: {
35039
+ line: 94,
35040
+ column: 54
35041
+ },
35042
+ end: {
35043
+ line: 94,
35044
+ column: 74
35045
+ }
35046
+ }],
35047
+ line: 94
35048
+ }
35049
+ },
35050
+ s: {
35051
+ "0": 0,
35052
+ "1": 0,
35053
+ "2": 0,
35054
+ "3": 0,
35055
+ "4": 0,
35056
+ "5": 0,
35057
+ "6": 0,
35058
+ "7": 0,
35059
+ "8": 0,
35060
+ "9": 0,
35061
+ "10": 0,
35062
+ "11": 0,
35063
+ "12": 0,
35064
+ "13": 0,
35065
+ "14": 0,
35066
+ "15": 0,
35067
+ "16": 0,
35068
+ "17": 0,
35069
+ "18": 0,
35070
+ "19": 0,
35071
+ "20": 0,
35072
+ "21": 0,
35073
+ "22": 0,
35074
+ "23": 0
35075
+ },
35076
+ f: {
35077
+ "0": 0,
35078
+ "1": 0,
35079
+ "2": 0,
35080
+ "3": 0,
35081
+ "4": 0,
35082
+ "5": 0,
35083
+ "6": 0,
35084
+ "7": 0
35085
+ },
35086
+ b: {
35087
+ "0": [0, 0],
35088
+ "1": [0, 0],
35089
+ "2": [0, 0],
35090
+ "3": [0, 0],
35091
+ "4": [0, 0],
35092
+ "5": [0, 0],
35093
+ "6": [0, 0],
35094
+ "7": [0, 0],
35095
+ "8": [0, 0]
35096
+ },
35097
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
35098
+ hash: "f649e2bb358ba3c6a0dec691b8f1c0f6ace29061"
35099
+ };
35100
+ var coverage = global[gcv] || (global[gcv] = {});
35101
+ if (!coverage[path] || coverage[path].hash !== hash) {
35102
+ coverage[path] = coverageData;
35103
+ }
35104
+ var actualCoverage = coverage[path];
35105
+ {
35106
+ // @ts-ignore
35107
+ cov_12s3p009b2 = function () {
35108
+ return actualCoverage;
35109
+ };
35110
+ }
35111
+ return actualCoverage;
35112
+ }
35113
+ cov_12s3p009b2();
35114
+ cov_12s3p009b2().s[0]++;
35115
+ var ActionsDetail = function ActionsDetail(_ref) {
35116
+ var actions = _ref.actions;
35117
+ cov_12s3p009b2().f[0]++;
35118
+ var _ref2 = (cov_12s3p009b2().s[1]++, React.useState(false)),
35119
+ _ref3 = _slicedToArray(_ref2, 2),
35120
+ viewMore = _ref3[0],
35121
+ setViewMore = _ref3[1];
35122
+ var _ref4 = (cov_12s3p009b2().s[2]++, useTranslation()),
35123
+ t = _ref4.t;
35124
+ var actionsList = (cov_12s3p009b2().s[3]++, actions.value);
35125
+ var allActions = (cov_12s3p009b2().s[4]++, (cov_12s3p009b2().b[1][0]++, viewMore) && (cov_12s3p009b2().b[1][1]++, actionsList.length > 4) ? (cov_12s3p009b2().b[0][0]++, actionsList) : (cov_12s3p009b2().b[0][1]++, actionsList.slice(0, 4)));
35126
+ cov_12s3p009b2().s[5]++;
35127
+ var getLabel = function getLabel(index) {
35128
+ cov_12s3p009b2().f[1]++;
35129
+ cov_12s3p009b2().s[6]++;
35130
+ return index ? (cov_12s3p009b2().b[2][0]++, t("common.and", {
35131
+ what: t("common.then").toLowerCase()
35132
+ })) : (cov_12s3p009b2().b[2][1]++, t("common.then"));
35133
+ };
35134
+ cov_12s3p009b2().s[7]++;
35135
+ var renderActionValues = function renderActionValues(action, actionOption) {
35136
+ cov_12s3p009b2().f[2]++;
35137
+ cov_12s3p009b2().s[8]++;
35138
+ if (actionOption.type === "dropdown") {
35139
+ cov_12s3p009b2().b[3][0]++;
35140
+ cov_12s3p009b2().s[9]++;
35141
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35142
+ className: "neeto-ui-text-gray-800",
35143
+ style: "h5",
35144
+ weight: "semibold"
35145
+ }, getEntityDisplayValue(action, actionOption));
35146
+ } else {
35147
+ cov_12s3p009b2().b[3][1]++;
35148
+ }
35149
+ cov_12s3p009b2().s[10]++;
35150
+ if (actionOption.type === "multiSelect") {
35151
+ cov_12s3p009b2().b[4][0]++;
35152
+ var values = (cov_12s3p009b2().s[11]++, ramda.pluck("label", actionOption.dropdownOptions.filter(function (_ref5) {
35153
+ var value = _ref5.value;
35154
+ cov_12s3p009b2().f[3]++;
35155
+ cov_12s3p009b2().s[12]++;
35156
+ return action.metadata.value.includes(value);
35157
+ })));
35158
+ cov_12s3p009b2().s[13]++;
35159
+ return /*#__PURE__*/React__default["default"].createElement(MultiSelectValues, {
35160
+ separator: t("common.and", {
35161
+ what: ""
35162
+ }),
35163
+ values: values
35164
+ });
35165
+ } else {
35166
+ cov_12s3p009b2().b[4][1]++;
35167
+ }
35168
+ cov_12s3p009b2().s[14]++;
35169
+ return null;
35170
+ };
35171
+ cov_12s3p009b2().s[15]++;
35172
+ var renderAction = function renderAction(action) {
35173
+ cov_12s3p009b2().f[4]++;
35174
+ var actionOption = (cov_12s3p009b2().s[16]++, pure.findBy({
35175
+ value: action.name
35176
+ }, actions.actionOptions));
35177
+ cov_12s3p009b2().s[17]++;
35178
+ if (!actionOption) {
35179
+ cov_12s3p009b2().b[5][0]++;
35180
+ cov_12s3p009b2().s[18]++;
35181
+ return null;
35182
+ } else {
35183
+ cov_12s3p009b2().b[5][1]++;
35184
+ }
35185
+ cov_12s3p009b2().s[19]++;
35186
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35187
+ className: "neeto-ui-text-gray-800",
35188
+ style: "h5",
35189
+ weight: "semibold"
35190
+ }, actionOption === null || actionOption === void 0 ? void 0 : actionOption.label.toLowerCase()), renderActionValues(action, actionOption));
35191
+ };
35192
+ cov_12s3p009b2().s[20]++;
35193
+ return /*#__PURE__*/React__default["default"].createElement(Title, {
35194
+ title: t("common.then")
35195
+ }, allActions.map(function (action, index) {
35196
+ cov_12s3p009b2().f[5]++;
35197
+ cov_12s3p009b2().s[21]++;
35198
+ return /*#__PURE__*/React__default["default"].createElement("div", {
35199
+ className: "mb-2 flex flex-wrap gap-x-1 gap-y-2",
35200
+ key: action.name
35201
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35202
+ className: "neeto-ui-text-gray-700",
35203
+ style: "h5",
35204
+ weight: "normal"
35205
+ }, getLabel(index)), renderAction(action));
35206
+ }), (cov_12s3p009b2().b[6][0]++, actionsList.length > 4) && (cov_12s3p009b2().b[6][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
35207
+ className: "mt-3 w-full"
35208
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
35209
+ icon: !viewMore ? (cov_12s3p009b2().b[7][0]++, neetoIcons.Down) : (cov_12s3p009b2().b[7][1]++, neetoIcons.Up),
35210
+ label: !viewMore ? (cov_12s3p009b2().b[8][0]++, t("common.viewMore")) : (cov_12s3p009b2().b[8][1]++, t("common.viewLess")),
35211
+ size: "small",
35212
+ style: "link",
35213
+ onClick: function onClick() {
35214
+ cov_12s3p009b2().f[6]++;
35215
+ cov_12s3p009b2().s[22]++;
35216
+ return setViewMore(function (prevState) {
35217
+ cov_12s3p009b2().f[7]++;
35218
+ cov_12s3p009b2().s[23]++;
35219
+ return !prevState;
35220
+ });
35221
+ }
35222
+ }))));
35223
+ };
35224
+
35225
+ function cov_h01t9qzwy() {
35226
+ var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/ConditionsDetail.jsx";
35227
+ var hash = "fc61378f8f3779c202fa96af72a7593a3f420615";
35228
+ var global = new Function("return this")();
35229
+ var gcv = "__coverage__";
35230
+ var coverageData = {
35231
+ path: "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/ConditionsDetail.jsx",
35232
+ statementMap: {
35233
+ "0": {
35234
+ start: {
35235
+ line: 11,
35236
+ column: 25
35237
+ },
35238
+ end: {
35239
+ line: 118,
35240
+ column: 1
35241
+ }
35242
+ },
35243
+ "1": {
35244
+ start: {
35245
+ line: 12,
35246
+ column: 27
35247
+ },
35248
+ end: {
35249
+ line: 13,
35250
+ column: 45
35251
+ }
35252
+ },
35253
+ "2": {
35254
+ start: {
35255
+ line: 13,
35256
+ column: 4
35257
+ },
35258
+ end: {
35259
+ line: 13,
35260
+ column: 45
35261
+ }
35262
+ },
35263
+ "3": {
35264
+ start: {
35265
+ line: 15,
35266
+ column: 32
35267
+ },
35268
+ end: {
35269
+ line: 52,
35270
+ column: 3
35271
+ }
35272
+ },
35273
+ "4": {
35274
+ start: {
35275
+ line: 16,
35276
+ column: 4
35277
+ },
35278
+ end: {
35279
+ line: 26,
35280
+ column: 5
35281
+ }
35282
+ },
35283
+ "5": {
35284
+ start: {
35285
+ line: 17,
35286
+ column: 6
35287
+ },
35288
+ end: {
35289
+ line: 25,
35290
+ column: 8
35291
+ }
35292
+ },
35293
+ "6": {
35294
+ start: {
35295
+ line: 28,
35296
+ column: 4
35297
+ },
35298
+ end: {
35299
+ line: 37,
35300
+ column: 5
35301
+ }
35302
+ },
35303
+ "7": {
35304
+ start: {
35305
+ line: 29,
35306
+ column: 21
35307
+ },
35308
+ end: {
35309
+ line: 34,
35310
+ column: 7
35311
+ }
35312
+ },
35313
+ "8": {
35314
+ start: {
35315
+ line: 32,
35316
+ column: 10
35317
+ },
35318
+ end: {
35319
+ line: 32,
35320
+ column: 51
35321
+ }
35322
+ },
35323
+ "9": {
35324
+ start: {
35325
+ line: 36,
35326
+ column: 6
35327
+ },
35328
+ end: {
35329
+ line: 36,
35330
+ column: 78
35331
+ }
35332
+ },
35333
+ "10": {
35334
+ start: {
35335
+ line: 39,
35336
+ column: 4
35337
+ },
35338
+ end: {
35339
+ line: 49,
35340
+ column: 5
35341
+ }
35342
+ },
35343
+ "11": {
35344
+ start: {
35345
+ line: 40,
35346
+ column: 6
35347
+ },
35348
+ end: {
35349
+ line: 48,
35350
+ column: 8
35351
+ }
35352
+ },
35353
+ "12": {
35354
+ start: {
35355
+ line: 51,
35356
+ column: 4
35357
+ },
35358
+ end: {
35359
+ line: 51,
35360
+ column: 16
35361
+ }
35362
+ },
35363
+ "13": {
35364
+ start: {
35365
+ line: 54,
35366
+ column: 26
35367
+ },
35368
+ end: {
35369
+ line: 82,
35370
+ column: 3
35371
+ }
35372
+ },
35373
+ "14": {
35374
+ start: {
35375
+ line: 55,
35376
+ column: 28
35377
+ },
35378
+ end: {
35379
+ line: 58,
35380
+ column: 5
35381
+ }
35382
+ },
35383
+ "15": {
35384
+ start: {
35385
+ line: 59,
35386
+ column: 4
35387
+ },
35388
+ end: {
35389
+ line: 59,
35390
+ column: 38
35391
+ }
35392
+ },
35393
+ "16": {
35394
+ start: {
35395
+ line: 59,
35396
+ column: 26
35397
+ },
35398
+ end: {
35399
+ line: 59,
35400
+ column: 38
35401
+ }
35402
+ },
35403
+ "17": {
35404
+ start: {
35405
+ line: 61,
35406
+ column: 26
35407
+ },
35408
+ end: {
35409
+ line: 61,
35410
+ column: 71
35411
+ }
35412
+ },
35413
+ "18": {
35414
+ start: {
35415
+ line: 63,
35416
+ column: 4
35417
+ },
35418
+ end: {
35419
+ line: 81,
35420
+ column: 6
35421
+ }
35422
+ },
35423
+ "19": {
35424
+ start: {
35425
+ line: 84,
35426
+ column: 2
35427
+ },
35428
+ end: {
35429
+ line: 117,
35430
+ column: 4
35431
+ }
35432
+ },
35433
+ "20": {
35434
+ start: {
35435
+ line: 87,
35436
+ column: 8
35437
+ },
35438
+ end: {
35439
+ line: 114,
35440
+ column: 14
35441
+ }
35442
+ }
35443
+ },
35444
+ fnMap: {
35445
+ "0": {
35446
+ name: "(anonymous_0)",
35447
+ decl: {
35448
+ start: {
35449
+ line: 11,
35450
+ column: 25
35451
+ },
35452
+ end: {
35453
+ line: 11,
35454
+ column: 26
35455
+ }
35456
+ },
35457
+ loc: {
35458
+ start: {
35459
+ line: 11,
35460
+ column: 79
35461
+ },
35462
+ end: {
35463
+ line: 118,
35464
+ column: 1
35465
+ }
35466
+ },
35467
+ line: 11
35468
+ },
35469
+ "1": {
35470
+ name: "(anonymous_1)",
35471
+ decl: {
35472
+ start: {
35473
+ line: 12,
35474
+ column: 27
35475
+ },
35476
+ end: {
35477
+ line: 12,
35478
+ column: 28
35479
+ }
35480
+ },
35481
+ loc: {
35482
+ start: {
35483
+ line: 13,
35484
+ column: 4
35485
+ },
35486
+ end: {
35487
+ line: 13,
35488
+ column: 45
35489
+ }
35490
+ },
35491
+ line: 13
35492
+ },
35493
+ "2": {
35494
+ name: "(anonymous_2)",
35495
+ decl: {
35496
+ start: {
35497
+ line: 15,
35498
+ column: 32
35499
+ },
35500
+ end: {
35501
+ line: 15,
35502
+ column: 33
35503
+ }
35504
+ },
35505
+ loc: {
35506
+ start: {
35507
+ line: 15,
35508
+ column: 64
35509
+ },
35510
+ end: {
35511
+ line: 52,
35512
+ column: 3
35513
+ }
35514
+ },
35515
+ line: 15
35516
+ },
35517
+ "3": {
35518
+ name: "(anonymous_3)",
35519
+ decl: {
35520
+ start: {
35521
+ line: 31,
35522
+ column: 47
35523
+ },
35524
+ end: {
35525
+ line: 31,
35526
+ column: 48
35527
+ }
35528
+ },
35529
+ loc: {
35530
+ start: {
35531
+ line: 32,
35532
+ column: 10
35533
+ },
35534
+ end: {
35535
+ line: 32,
35536
+ column: 51
35537
+ }
35538
+ },
35539
+ line: 32
35540
+ },
35541
+ "4": {
35542
+ name: "(anonymous_4)",
35543
+ decl: {
35544
+ start: {
35545
+ line: 54,
35546
+ column: 26
35547
+ },
35548
+ end: {
35549
+ line: 54,
35550
+ column: 27
35551
+ }
35552
+ },
35553
+ loc: {
35554
+ start: {
35555
+ line: 54,
35556
+ column: 39
35557
+ },
35558
+ end: {
35559
+ line: 82,
35560
+ column: 3
35561
+ }
35562
+ },
35563
+ line: 54
35564
+ },
35565
+ "5": {
35566
+ name: "(anonymous_5)",
35567
+ decl: {
35568
+ start: {
35569
+ line: 86,
35570
+ column: 22
35571
+ },
35572
+ end: {
35573
+ line: 86,
35574
+ column: 23
35575
+ }
35576
+ },
35577
+ loc: {
35578
+ start: {
35579
+ line: 87,
35580
+ column: 8
35581
+ },
35582
+ end: {
35583
+ line: 114,
35584
+ column: 14
35585
+ }
35586
+ },
35587
+ line: 87
35588
+ }
35589
+ },
35590
+ branchMap: {
35591
+ "0": {
35592
+ loc: {
35593
+ start: {
35594
+ line: 13,
35595
+ column: 4
35596
+ },
35597
+ end: {
35598
+ line: 13,
35599
+ column: 45
35600
+ }
35601
+ },
35602
+ type: "cond-expr",
35603
+ locations: [{
35604
+ start: {
35605
+ line: 13,
35606
+ column: 33
35607
+ },
35608
+ end: {
35609
+ line: 13,
35610
+ column: 37
35611
+ }
35612
+ }, {
35613
+ start: {
35614
+ line: 13,
35615
+ column: 40
35616
+ },
35617
+ end: {
35618
+ line: 13,
35619
+ column: 45
35620
+ }
35621
+ }],
35622
+ line: 13
35623
+ },
35624
+ "1": {
35625
+ loc: {
35626
+ start: {
35627
+ line: 16,
35628
+ column: 4
35629
+ },
35630
+ end: {
35631
+ line: 26,
35632
+ column: 5
35633
+ }
35634
+ },
35635
+ type: "if",
35636
+ locations: [{
35637
+ start: {
35638
+ line: 16,
35639
+ column: 4
35640
+ },
35641
+ end: {
35642
+ line: 26,
35643
+ column: 5
35644
+ }
35645
+ }, {
35646
+ start: {
35647
+ line: undefined,
35648
+ column: undefined
35649
+ },
35650
+ end: {
35651
+ line: undefined,
35652
+ column: undefined
35653
+ }
35654
+ }],
35655
+ line: 16
35656
+ },
35657
+ "2": {
35658
+ loc: {
35659
+ start: {
35660
+ line: 28,
35661
+ column: 4
35662
+ },
35663
+ end: {
35664
+ line: 37,
35665
+ column: 5
35666
+ }
35667
+ },
35668
+ type: "if",
35669
+ locations: [{
35670
+ start: {
35671
+ line: 28,
35672
+ column: 4
35673
+ },
35674
+ end: {
35675
+ line: 37,
35676
+ column: 5
35677
+ }
35678
+ }, {
35679
+ start: {
35680
+ line: undefined,
35681
+ column: undefined
35682
+ },
35683
+ end: {
35684
+ line: undefined,
35685
+ column: undefined
35686
+ }
35687
+ }],
35688
+ line: 28
35689
+ },
35690
+ "3": {
35691
+ loc: {
35692
+ start: {
35693
+ line: 39,
35694
+ column: 4
35695
+ },
35696
+ end: {
35697
+ line: 49,
35698
+ column: 5
35699
+ }
35700
+ },
35701
+ type: "if",
35702
+ locations: [{
35703
+ start: {
35704
+ line: 39,
35705
+ column: 4
35706
+ },
35707
+ end: {
35708
+ line: 49,
35709
+ column: 5
35710
+ }
35711
+ }, {
35712
+ start: {
35713
+ line: undefined,
35714
+ column: undefined
35715
+ },
35716
+ end: {
35717
+ line: undefined,
35718
+ column: undefined
35719
+ }
35720
+ }],
35721
+ line: 39
35722
+ },
35723
+ "4": {
35724
+ loc: {
35725
+ start: {
35726
+ line: 59,
35727
+ column: 4
35728
+ },
35729
+ end: {
35730
+ line: 59,
35731
+ column: 38
35732
+ }
35733
+ },
35734
+ type: "if",
35735
+ locations: [{
35736
+ start: {
35737
+ line: 59,
35738
+ column: 4
35739
+ },
35740
+ end: {
35741
+ line: 59,
35742
+ column: 38
35743
+ }
35744
+ }, {
35745
+ start: {
35746
+ line: undefined,
35747
+ column: undefined
35748
+ },
35749
+ end: {
35750
+ line: undefined,
35751
+ column: undefined
35752
+ }
35753
+ }],
35754
+ line: 59
35755
+ },
35756
+ "5": {
35757
+ loc: {
35758
+ start: {
35759
+ line: 88,
35760
+ column: 11
35761
+ },
35762
+ end: {
35763
+ line: 96,
35764
+ column: 11
35765
+ }
35766
+ },
35767
+ type: "binary-expr",
35768
+ locations: [{
35769
+ start: {
35770
+ line: 88,
35771
+ column: 11
35772
+ },
35773
+ end: {
35774
+ line: 88,
35775
+ column: 17
35776
+ }
35777
+ }, {
35778
+ start: {
35779
+ line: 89,
35780
+ column: 12
35781
+ },
35782
+ end: {
35783
+ line: 95,
35784
+ column: 25
35785
+ }
35786
+ }],
35787
+ line: 88
35788
+ },
35789
+ "6": {
35790
+ loc: {
35791
+ start: {
35792
+ line: 97,
35793
+ column: 11
35794
+ },
35795
+ end: {
35796
+ line: 105,
35797
+ column: 11
35798
+ }
35799
+ },
35800
+ type: "binary-expr",
35801
+ locations: [{
35802
+ start: {
35803
+ line: 97,
35804
+ column: 11
35805
+ },
35806
+ end: {
35807
+ line: 97,
35808
+ column: 18
35809
+ }
35810
+ }, {
35811
+ start: {
35812
+ line: 98,
35813
+ column: 12
35814
+ },
35815
+ end: {
35816
+ line: 104,
35817
+ column: 25
35818
+ }
35819
+ }],
35820
+ line: 97
35821
+ }
35822
+ },
35823
+ s: {
35824
+ "0": 0,
35825
+ "1": 0,
35826
+ "2": 0,
35827
+ "3": 0,
35828
+ "4": 0,
35829
+ "5": 0,
35830
+ "6": 0,
35831
+ "7": 0,
35832
+ "8": 0,
35833
+ "9": 0,
35834
+ "10": 0,
35835
+ "11": 0,
35836
+ "12": 0,
35837
+ "13": 0,
35838
+ "14": 0,
35839
+ "15": 0,
35840
+ "16": 0,
35841
+ "17": 0,
35842
+ "18": 0,
35843
+ "19": 0,
35844
+ "20": 0
35845
+ },
35846
+ f: {
35847
+ "0": 0,
35848
+ "1": 0,
35849
+ "2": 0,
35850
+ "3": 0,
35851
+ "4": 0,
35852
+ "5": 0
35853
+ },
35854
+ b: {
35855
+ "0": [0, 0],
35856
+ "1": [0, 0],
35857
+ "2": [0, 0],
35858
+ "3": [0, 0],
35859
+ "4": [0, 0],
35860
+ "5": [0, 0],
35861
+ "6": [0, 0]
35862
+ },
35863
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
35864
+ hash: "fc61378f8f3779c202fa96af72a7593a3f420615"
35865
+ };
35866
+ var coverage = global[gcv] || (global[gcv] = {});
35867
+ if (!coverage[path] || coverage[path].hash !== hash) {
35868
+ coverage[path] = coverageData;
35869
+ }
35870
+ var actualCoverage = coverage[path];
35871
+ {
35872
+ // @ts-ignore
35873
+ cov_h01t9qzwy = function () {
35874
+ return actualCoverage;
35875
+ };
35876
+ }
35877
+ return actualCoverage;
35878
+ }
35879
+ cov_h01t9qzwy();
35880
+ cov_h01t9qzwy().s[0]++;
35881
+ var ConditionsDetail = function ConditionsDetail(_ref) {
35882
+ var conditions = _ref.conditions,
35883
+ conditionOptions = _ref.conditionOptions,
35884
+ conditionVerbs = _ref.conditionVerbs;
35885
+ cov_h01t9qzwy().f[0]++;
35886
+ cov_h01t9qzwy().s[1]++;
35887
+ var getLogicOperator = function getLogicOperator(joinType) {
35888
+ cov_h01t9qzwy().f[1]++;
35889
+ cov_h01t9qzwy().s[2]++;
35890
+ return joinType === "or_operator" ? (cov_h01t9qzwy().b[0][0]++, "or") : (cov_h01t9qzwy().b[0][1]++, "and");
35891
+ };
35892
+ cov_h01t9qzwy().s[3]++;
35893
+ var renderConditionValues = function renderConditionValues(condition, conditionOption) {
35894
+ cov_h01t9qzwy().f[2]++;
35895
+ cov_h01t9qzwy().s[4]++;
35896
+ if (["email", "text", "number"].includes(conditionOption.type)) {
35897
+ var _condition$metadata$v;
35898
+ cov_h01t9qzwy().b[1][0]++;
35899
+ cov_h01t9qzwy().s[5]++;
35900
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35901
+ className: "neeto-ui-text-gray-800",
35902
+ style: "h5",
35903
+ weight: "semibold"
35904
+ }, (_condition$metadata$v = condition.metadata.value) === null || _condition$metadata$v === void 0 ? void 0 : _condition$metadata$v.toLowerCase());
35905
+ } else {
35906
+ cov_h01t9qzwy().b[1][1]++;
35907
+ }
35908
+ cov_h01t9qzwy().s[6]++;
35909
+ if (conditionOption.type === "multi-select") {
35910
+ cov_h01t9qzwy().b[2][0]++;
35911
+ var values = (cov_h01t9qzwy().s[7]++, ramda.pluck("label", conditionOption.dropdownOptions.filter(function (_ref2) {
35912
+ var value = _ref2.value;
35913
+ cov_h01t9qzwy().f[3]++;
35914
+ cov_h01t9qzwy().s[8]++;
35915
+ return condition.metadata.values.includes(value);
35916
+ })));
35917
+ cov_h01t9qzwy().s[9]++;
35918
+ return /*#__PURE__*/React__default["default"].createElement(MultiSelectValues, {
35919
+ separator: t("common.or"),
35920
+ values: values
35921
+ });
35922
+ } else {
35923
+ cov_h01t9qzwy().b[2][1]++;
35924
+ }
35925
+ cov_h01t9qzwy().s[10]++;
35926
+ if (conditionOption.type === "dropdown") {
35927
+ cov_h01t9qzwy().b[3][0]++;
35928
+ cov_h01t9qzwy().s[11]++;
35929
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35930
+ className: "neeto-ui-text-gray-800",
35931
+ style: "h5",
35932
+ weight: "semibold"
35933
+ }, getEntityDisplayValue(condition, conditionOption));
35934
+ } else {
35935
+ cov_h01t9qzwy().b[3][1]++;
35936
+ }
35937
+ cov_h01t9qzwy().s[12]++;
35938
+ return null;
35939
+ };
35940
+ cov_h01t9qzwy().s[13]++;
35941
+ var renderCondition = function renderCondition(condition) {
35942
+ var _conditionVerbs$condi;
35943
+ cov_h01t9qzwy().f[4]++;
35944
+ var conditionOption = (cov_h01t9qzwy().s[14]++, pure.findBy({
35945
+ value: condition.field
35946
+ }, conditionOptions));
35947
+ cov_h01t9qzwy().s[15]++;
35948
+ if (!conditionOption) {
35949
+ cov_h01t9qzwy().b[4][0]++;
35950
+ cov_h01t9qzwy().s[16]++;
35951
+ return null;
35952
+ } else {
35953
+ cov_h01t9qzwy().b[4][1]++;
35954
+ }
35955
+ var conditionVerb = (cov_h01t9qzwy().s[17]++, (_conditionVerbs$condi = conditionVerbs[condition.verb]) === null || _conditionVerbs$condi === void 0 ? void 0 : _conditionVerbs$condi.toLowerCase());
35956
+ cov_h01t9qzwy().s[18]++;
35957
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35958
+ className: "neeto-ui-text-gray-800",
35959
+ style: "h5",
35960
+ weight: "semibold"
35961
+ }, conditionOption === null || conditionOption === void 0 ? void 0 : conditionOption.label.toLowerCase()), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35962
+ className: "neeto-ui-text-gray-800",
35963
+ style: "h5",
35964
+ weight: "semibold"
35965
+ }, conditionVerb), renderConditionValues(condition, conditionOption));
35966
+ };
35967
+ cov_h01t9qzwy().s[19]++;
35968
+ return /*#__PURE__*/React__default["default"].createElement("div", {
35969
+ className: "mt-2"
35970
+ }, conditions.map(function (condition, index) {
35971
+ cov_h01t9qzwy().f[5]++;
35972
+ cov_h01t9qzwy().s[20]++;
35973
+ return /*#__PURE__*/React__default["default"].createElement("div", {
35974
+ className: "mb-2 flex flex-wrap gap-x-2 gap-y-2",
35975
+ key: condition.id
35976
+ }, (cov_h01t9qzwy().b[5][0]++, !index) && (cov_h01t9qzwy().b[5][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35977
+ className: "neeto-ui-text-gray-700",
35978
+ style: "h5",
35979
+ weight: "normal"
35980
+ }, t("common.and", {
35981
+ what: ""
35982
+ }))), (cov_h01t9qzwy().b[6][0]++, !!index) && (cov_h01t9qzwy().b[6][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35983
+ className: "neeto-ui-text-gray-800",
35984
+ style: "h5",
35985
+ weight: "semibold"
35986
+ }, getLogicOperator(condition.joinType))), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
35987
+ className: "neeto-ui-text-gray-700",
35988
+ style: "h5",
35989
+ weight: "normal"
35990
+ }, t("common.when").toLowerCase()), renderCondition(condition));
35991
+ }));
35992
+ };
35993
+
35994
+ function cov_rr7czlpcc() {
35995
+ var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/EventsDetail.jsx";
35996
+ var hash = "027ffb7dc7b431626e71008ddc8edc3a2d938d8a";
35997
+ var global = new Function("return this")();
35998
+ var gcv = "__coverage__";
35999
+ var coverageData = {
36000
+ path: "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/EventsDetail.jsx",
36001
+ statementMap: {
36002
+ "0": {
36003
+ start: {
36004
+ line: 12,
36005
+ column: 21
36006
+ },
36007
+ end: {
36008
+ line: 96,
36009
+ column: 1
36010
+ }
36011
+ },
36012
+ "1": {
36013
+ start: {
36014
+ line: 13,
36015
+ column: 34
36016
+ },
36017
+ end: {
36018
+ line: 13,
36019
+ column: 49
36020
+ }
36021
+ },
36022
+ "2": {
36023
+ start: {
36024
+ line: 15,
36025
+ column: 21
36026
+ },
36027
+ end: {
36028
+ line: 15,
36029
+ column: 48
36030
+ }
36031
+ },
36032
+ "3": {
36033
+ start: {
36034
+ line: 16,
36035
+ column: 20
36036
+ },
36037
+ end: {
36038
+ line: 18,
36039
+ column: 3
36040
+ }
36041
+ },
36042
+ "4": {
36043
+ start: {
36044
+ line: 17,
36045
+ column: 4
36046
+ },
36047
+ end: {
36048
+ line: 17,
36049
+ column: 37
36050
+ }
36051
+ },
36052
+ "5": {
36053
+ start: {
36054
+ line: 20,
36055
+ column: 25
36056
+ },
36057
+ end: {
36058
+ line: 20,
36059
+ column: 41
36060
+ }
36061
+ },
36062
+ "6": {
36063
+ start: {
36064
+ line: 22,
36065
+ column: 4
36066
+ },
36067
+ end: {
36068
+ line: 24,
36069
+ column: 34
36070
+ }
36071
+ },
36072
+ "7": {
36073
+ start: {
36074
+ line: 26,
36075
+ column: 27
36076
+ },
36077
+ end: {
36078
+ line: 29,
36079
+ column: 3
36080
+ }
36081
+ },
36082
+ "8": {
36083
+ start: {
36084
+ line: 31,
36085
+ column: 2
36086
+ },
36087
+ end: {
36088
+ line: 95,
36089
+ column: 4
36090
+ }
36091
+ },
36092
+ "9": {
36093
+ start: {
36094
+ line: 35,
36095
+ column: 10
36096
+ },
36097
+ end: {
36098
+ line: 61,
36099
+ column: 16
36100
+ }
36101
+ },
36102
+ "10": {
36103
+ start: {
36104
+ line: 90,
36105
+ column: 27
36106
+ },
36107
+ end: {
36108
+ line: 90,
36109
+ column: 63
36110
+ }
36111
+ },
36112
+ "11": {
36113
+ start: {
36114
+ line: 90,
36115
+ column: 52
36116
+ },
36117
+ end: {
36118
+ line: 90,
36119
+ column: 62
36120
+ }
36121
+ }
36122
+ },
36123
+ fnMap: {
36124
+ "0": {
36125
+ name: "(anonymous_0)",
36126
+ decl: {
36127
+ start: {
36128
+ line: 12,
36129
+ column: 21
36130
+ },
36131
+ end: {
36132
+ line: 12,
36133
+ column: 22
36134
+ }
36135
+ },
36136
+ loc: {
36137
+ start: {
36138
+ line: 12,
36139
+ column: 60
36140
+ },
36141
+ end: {
36142
+ line: 96,
36143
+ column: 1
36144
+ }
36145
+ },
36146
+ line: 12
36147
+ },
36148
+ "1": {
36149
+ name: "(anonymous_1)",
36150
+ decl: {
36151
+ start: {
36152
+ line: 16,
36153
+ column: 47
36154
+ },
36155
+ end: {
36156
+ line: 16,
36157
+ column: 48
36158
+ }
36159
+ },
36160
+ loc: {
36161
+ start: {
36162
+ line: 17,
36163
+ column: 4
36164
+ },
36165
+ end: {
36166
+ line: 17,
36167
+ column: 37
36168
+ }
36169
+ },
36170
+ line: 17
36171
+ },
36172
+ "2": {
36173
+ name: "(anonymous_2)",
36174
+ decl: {
36175
+ start: {
36176
+ line: 34,
36177
+ column: 23
36178
+ },
36179
+ end: {
36180
+ line: 34,
36181
+ column: 24
36182
+ }
36183
+ },
36184
+ loc: {
36185
+ start: {
36186
+ line: 35,
36187
+ column: 10
36188
+ },
36189
+ end: {
36190
+ line: 61,
36191
+ column: 16
36192
+ }
36193
+ },
36194
+ line: 35
36195
+ },
36196
+ "3": {
36197
+ name: "(anonymous_3)",
36198
+ decl: {
36199
+ start: {
36200
+ line: 90,
36201
+ column: 21
36202
+ },
36203
+ end: {
36204
+ line: 90,
36205
+ column: 22
36206
+ }
36207
+ },
36208
+ loc: {
36209
+ start: {
36210
+ line: 90,
36211
+ column: 27
36212
+ },
36213
+ end: {
36214
+ line: 90,
36215
+ column: 63
36216
+ }
36217
+ },
36218
+ line: 90
36219
+ },
36220
+ "4": {
36221
+ name: "(anonymous_4)",
36222
+ decl: {
36223
+ start: {
36224
+ line: 90,
36225
+ column: 39
36226
+ },
36227
+ end: {
36228
+ line: 90,
36229
+ column: 40
36230
+ }
36231
+ },
36232
+ loc: {
36233
+ start: {
36234
+ line: 90,
36235
+ column: 52
36236
+ },
36237
+ end: {
36238
+ line: 90,
36239
+ column: 62
36240
+ }
36241
+ },
36242
+ line: 90
36243
+ }
36244
+ },
36245
+ branchMap: {
36246
+ "0": {
36247
+ loc: {
36248
+ start: {
36249
+ line: 22,
36250
+ column: 4
36251
+ },
36252
+ end: {
36253
+ line: 24,
36254
+ column: 34
36255
+ }
36256
+ },
36257
+ type: "cond-expr",
36258
+ locations: [{
36259
+ start: {
36260
+ line: 23,
36261
+ column: 8
36262
+ },
36263
+ end: {
36264
+ line: 23,
36265
+ column: 22
36266
+ }
36267
+ }, {
36268
+ start: {
36269
+ line: 24,
36270
+ column: 8
36271
+ },
36272
+ end: {
36273
+ line: 24,
36274
+ column: 34
36275
+ }
36276
+ }],
36277
+ line: 22
36278
+ },
36279
+ "1": {
36280
+ loc: {
36281
+ start: {
36282
+ line: 22,
36283
+ column: 4
36284
+ },
36285
+ end: {
36286
+ line: 22,
36287
+ column: 41
36288
+ }
36289
+ },
36290
+ type: "binary-expr",
36291
+ locations: [{
36292
+ start: {
36293
+ line: 22,
36294
+ column: 4
36295
+ },
36296
+ end: {
36297
+ line: 22,
36298
+ column: 12
36299
+ }
36300
+ }, {
36301
+ start: {
36302
+ line: 22,
36303
+ column: 16
36304
+ },
36305
+ end: {
36306
+ line: 22,
36307
+ column: 41
36308
+ }
36309
+ }],
36310
+ line: 22
36311
+ },
36312
+ "2": {
36313
+ loc: {
36314
+ start: {
36315
+ line: 36,
36316
+ column: 13
36317
+ },
36318
+ end: {
36319
+ line: 44,
36320
+ column: 13
36321
+ }
36322
+ },
36323
+ type: "binary-expr",
36324
+ locations: [{
36325
+ start: {
36326
+ line: 36,
36327
+ column: 13
36328
+ },
36329
+ end: {
36330
+ line: 36,
36331
+ column: 19
36332
+ }
36333
+ }, {
36334
+ start: {
36335
+ line: 37,
36336
+ column: 14
36337
+ },
36338
+ end: {
36339
+ line: 43,
36340
+ column: 27
36341
+ }
36342
+ }],
36343
+ line: 36
36344
+ },
36345
+ "3": {
36346
+ loc: {
36347
+ start: {
36348
+ line: 45,
36349
+ column: 13
36350
+ },
36351
+ end: {
36352
+ line: 53,
36353
+ column: 13
36354
+ }
36355
+ },
36356
+ type: "binary-expr",
36357
+ locations: [{
36358
+ start: {
36359
+ line: 45,
36360
+ column: 13
36361
+ },
36362
+ end: {
36363
+ line: 45,
36364
+ column: 20
36365
+ }
36366
+ }, {
36367
+ start: {
36368
+ line: 46,
36369
+ column: 14
36370
+ },
36371
+ end: {
36372
+ line: 52,
36373
+ column: 27
36374
+ }
36375
+ }],
36376
+ line: 45
36377
+ },
36378
+ "4": {
36379
+ loc: {
36380
+ start: {
36381
+ line: 83,
36382
+ column: 7
36383
+ },
36384
+ end: {
36385
+ line: 93,
36386
+ column: 7
36387
+ }
36388
+ },
36389
+ type: "binary-expr",
36390
+ locations: [{
36391
+ start: {
36392
+ line: 83,
36393
+ column: 7
36394
+ },
36395
+ end: {
36396
+ line: 83,
36397
+ column: 32
36398
+ }
36399
+ }, {
36400
+ start: {
36401
+ line: 84,
36402
+ column: 8
36403
+ },
36404
+ end: {
36405
+ line: 92,
36406
+ column: 14
36407
+ }
36408
+ }],
36409
+ line: 83
36410
+ },
36411
+ "5": {
36412
+ loc: {
36413
+ start: {
36414
+ line: 86,
36415
+ column: 18
36416
+ },
36417
+ end: {
36418
+ line: 86,
36419
+ column: 39
36420
+ }
36421
+ },
36422
+ type: "cond-expr",
36423
+ locations: [{
36424
+ start: {
36425
+ line: 86,
36426
+ column: 30
36427
+ },
36428
+ end: {
36429
+ line: 86,
36430
+ column: 34
36431
+ }
36432
+ }, {
36433
+ start: {
36434
+ line: 86,
36435
+ column: 37
36436
+ },
36437
+ end: {
36438
+ line: 86,
36439
+ column: 39
36440
+ }
36441
+ }],
36442
+ line: 86
36443
+ },
36444
+ "6": {
36445
+ loc: {
36446
+ start: {
36447
+ line: 87,
36448
+ column: 19
36449
+ },
36450
+ end: {
36451
+ line: 87,
36452
+ column: 74
36453
+ }
36454
+ },
36455
+ type: "cond-expr",
36456
+ locations: [{
36457
+ start: {
36458
+ line: 87,
36459
+ column: 31
36460
+ },
36461
+ end: {
36462
+ line: 87,
36463
+ column: 51
36464
+ }
36465
+ }, {
36466
+ start: {
36467
+ line: 87,
36468
+ column: 54
36469
+ },
36470
+ end: {
36471
+ line: 87,
36472
+ column: 74
36473
+ }
36474
+ }],
36475
+ line: 87
36476
+ }
36477
+ },
36478
+ s: {
36479
+ "0": 0,
36480
+ "1": 0,
36481
+ "2": 0,
36482
+ "3": 0,
36483
+ "4": 0,
36484
+ "5": 0,
36485
+ "6": 0,
36486
+ "7": 0,
36487
+ "8": 0,
36488
+ "9": 0,
36489
+ "10": 0,
36490
+ "11": 0
36491
+ },
36492
+ f: {
36493
+ "0": 0,
36494
+ "1": 0,
36495
+ "2": 0,
36496
+ "3": 0,
36497
+ "4": 0
36498
+ },
36499
+ b: {
36500
+ "0": [0, 0],
36501
+ "1": [0, 0],
36502
+ "2": [0, 0],
36503
+ "3": [0, 0],
36504
+ "4": [0, 0],
36505
+ "5": [0, 0],
36506
+ "6": [0, 0]
36507
+ },
36508
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
36509
+ hash: "027ffb7dc7b431626e71008ddc8edc3a2d938d8a"
36510
+ };
36511
+ var coverage = global[gcv] || (global[gcv] = {});
36512
+ if (!coverage[path] || coverage[path].hash !== hash) {
36513
+ coverage[path] = coverageData;
36514
+ }
36515
+ var actualCoverage = coverage[path];
36516
+ {
36517
+ // @ts-ignore
36518
+ cov_rr7czlpcc = function () {
36519
+ return actualCoverage;
36520
+ };
36521
+ }
36522
+ return actualCoverage;
36523
+ }
36524
+ cov_rr7czlpcc();
36525
+ cov_rr7czlpcc().s[0]++;
36526
+ var EventsDetail = function EventsDetail(_ref) {
36527
+ var _currentPerformer$lab;
36528
+ var events = _ref.events,
36529
+ performer = _ref.performer,
36530
+ conditions = _ref.conditions;
36531
+ cov_rr7czlpcc().f[0]++;
36532
+ var _ref2 = (cov_rr7czlpcc().s[1]++, React.useState(false)),
36533
+ _ref3 = _slicedToArray(_ref2, 2),
36534
+ viewMore = _ref3[0],
36535
+ setViewMore = _ref3[1];
36536
+ var eventNames = (cov_rr7czlpcc().s[2]++, ramda.pluck("name", events.value));
36537
+ var allEvents = (cov_rr7czlpcc().s[3]++, events.eventOptions.filter(function (event) {
36538
+ cov_rr7czlpcc().f[1]++;
36539
+ cov_rr7czlpcc().s[4]++;
36540
+ return eventNames === null || eventNames === void 0 ? void 0 : eventNames.includes(event.value);
36541
+ }));
36542
+ var conditionsList = (cov_rr7czlpcc().s[5]++, conditions.value);
36543
+ var allConditions = (cov_rr7czlpcc().s[6]++, (cov_rr7czlpcc().b[1][0]++, viewMore) && (cov_rr7czlpcc().b[1][1]++, conditionsList.length > 3) ? (cov_rr7czlpcc().b[0][0]++, conditionsList) : (cov_rr7czlpcc().b[0][1]++, conditionsList.slice(0, 3)));
36544
+ var currentPerformer = (cov_rr7czlpcc().s[7]++, pure.findBy({
36545
+ value: performer.value
36546
+ }, performer.options));
36547
+ cov_rr7czlpcc().s[8]++;
36548
+ return /*#__PURE__*/React__default["default"].createElement(Title, {
36549
+ title: t("common.when")
36550
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
36551
+ className: "flex flex-wrap gap-x-2 gap-y-2"
36552
+ }, allEvents.map(function (event, index) {
36553
+ cov_rr7czlpcc().f[2]++;
36554
+ cov_rr7czlpcc().s[9]++;
36555
+ return /*#__PURE__*/React__default["default"].createElement("div", {
36556
+ className: "flex gap-x-2",
36557
+ key: index
36558
+ }, (cov_rr7czlpcc().b[2][0]++, !index) && (cov_rr7czlpcc().b[2][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36559
+ className: "neeto-ui-text-gray-700 my-auto",
36560
+ style: "h5",
36561
+ weight: "normal"
36562
+ }, t("common.when"))), (cov_rr7czlpcc().b[3][0]++, !!index) && (cov_rr7czlpcc().b[3][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36563
+ className: "neeto-ui-text-gray-700 my-auto",
36564
+ style: "h5",
36565
+ weight: "normal"
36566
+ }, t("common.or"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36567
+ className: "neeto-ui-text-gray-800",
36568
+ style: "h5",
36569
+ weight: "semibold"
36570
+ }, event.label.toLowerCase()));
36571
+ }), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36572
+ className: "neeto-ui-text-gray-700",
36573
+ style: "h5",
36574
+ weight: "normal"
36575
+ }, t("common.by")), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36576
+ className: "neeto-ui-text-gray-800",
36577
+ style: "h5",
36578
+ weight: "semibold"
36579
+ }, currentPerformer === null || currentPerformer === void 0 ? void 0 : (_currentPerformer$lab = currentPerformer.label) === null || _currentPerformer$lab === void 0 ? void 0 : _currentPerformer$lab.toLowerCase())), /*#__PURE__*/React__default["default"].createElement(ConditionsDetail, {
36580
+ conditionOptions: conditions.conditionOptions,
36581
+ conditionVerbs: conditions.verbs,
36582
+ conditions: allConditions
36583
+ }), (cov_rr7czlpcc().b[4][0]++, conditionsList.length > 3) && (cov_rr7czlpcc().b[4][1]++, /*#__PURE__*/React__default["default"].createElement("div", {
36584
+ className: "mt-3 w-full"
36585
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
36586
+ icon: !viewMore ? (cov_rr7czlpcc().b[5][0]++, neetoIcons.Down) : (cov_rr7czlpcc().b[5][1]++, neetoIcons.Up),
36587
+ label: !viewMore ? (cov_rr7czlpcc().b[6][0]++, t("common.viewMore")) : (cov_rr7czlpcc().b[6][1]++, t("common.viewLess")),
36588
+ size: "small",
36589
+ style: "link",
36590
+ onClick: function onClick() {
36591
+ cov_rr7czlpcc().f[3]++;
36592
+ cov_rr7czlpcc().s[10]++;
36593
+ return setViewMore(function (prevState) {
36594
+ cov_rr7czlpcc().f[4]++;
36595
+ cov_rr7czlpcc().s[11]++;
36596
+ return !prevState;
36597
+ });
36598
+ }
36599
+ }))));
36600
+ };
36601
+
36602
+ function cov_229plf36at() {
36603
+ var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/index.jsx";
36604
+ var hash = "3462c6a4c7347e110f00d280be805931b49100da";
36605
+ var global = new Function("return this")();
36606
+ var gcv = "__coverage__";
36607
+ var coverageData = {
36608
+ path: "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/RulePreview/index.jsx",
36609
+ statementMap: {
36610
+ "0": {
36611
+ start: {
36612
+ line: 10,
36613
+ column: 20
36614
+ },
36615
+ end: {
36616
+ line: 73,
36617
+ column: 1
36618
+ }
36619
+ },
36620
+ "1": {
36621
+ start: {
36622
+ line: 11,
36623
+ column: 16
36624
+ },
36625
+ end: {
36626
+ line: 11,
36627
+ column: 32
36628
+ }
36629
+ },
36630
+ "2": {
36631
+ start: {
36632
+ line: 13,
36633
+ column: 2
36634
+ },
36635
+ end: {
36636
+ line: 13,
36637
+ column: 39
36638
+ }
36639
+ },
36640
+ "3": {
36641
+ start: {
36642
+ line: 13,
36643
+ column: 17
36644
+ },
36645
+ end: {
36646
+ line: 13,
36647
+ column: 39
36648
+ }
36649
+ },
36650
+ "4": {
36651
+ start: {
36652
+ line: 15,
36653
+ column: 2
36654
+ },
36655
+ end: {
36656
+ line: 72,
36657
+ column: 4
36658
+ }
36659
+ }
36660
+ },
36661
+ fnMap: {
36662
+ "0": {
36663
+ name: "(anonymous_0)",
36664
+ decl: {
36665
+ start: {
36666
+ line: 10,
36667
+ column: 20
36668
+ },
36669
+ end: {
36670
+ line: 10,
36671
+ column: 21
36672
+ }
36673
+ },
36674
+ loc: {
36675
+ start: {
36676
+ line: 10,
36677
+ column: 69
36678
+ },
36679
+ end: {
36680
+ line: 73,
36681
+ column: 1
36682
+ }
36683
+ },
36684
+ line: 10
36685
+ }
36686
+ },
36687
+ branchMap: {
36688
+ "0": {
36689
+ loc: {
36690
+ start: {
36691
+ line: 13,
36692
+ column: 2
36693
+ },
36694
+ end: {
36695
+ line: 13,
36696
+ column: 39
36697
+ }
36698
+ },
36699
+ type: "if",
36700
+ locations: [{
36701
+ start: {
36702
+ line: 13,
36703
+ column: 2
36704
+ },
36705
+ end: {
36706
+ line: 13,
36707
+ column: 39
36708
+ }
36709
+ }, {
36710
+ start: {
36711
+ line: undefined,
36712
+ column: undefined
36713
+ },
36714
+ end: {
36715
+ line: undefined,
36716
+ column: undefined
36717
+ }
36718
+ }],
36719
+ line: 13
36720
+ }
36721
+ },
36722
+ s: {
36723
+ "0": 0,
36724
+ "1": 0,
36725
+ "2": 0,
36726
+ "3": 0,
36727
+ "4": 0
36728
+ },
36729
+ f: {
36730
+ "0": 0
36731
+ },
36732
+ b: {
36733
+ "0": [0, 0]
36734
+ },
36735
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
36736
+ hash: "3462c6a4c7347e110f00d280be805931b49100da"
36737
+ };
36738
+ var coverage = global[gcv] || (global[gcv] = {});
36739
+ if (!coverage[path] || coverage[path].hash !== hash) {
36740
+ coverage[path] = coverageData;
36741
+ }
36742
+ var actualCoverage = coverage[path];
36743
+ {
36744
+ // @ts-ignore
36745
+ cov_229plf36at = function () {
36746
+ return actualCoverage;
36747
+ };
36748
+ }
36749
+ return actualCoverage;
36750
+ }
36751
+ cov_229plf36at();
36752
+ cov_229plf36at().s[0]++;
36753
+ var RulePreview = function RulePreview(_ref) {
36754
+ var isLoading = _ref.isLoading,
36755
+ ruleDetails = _ref.ruleDetails,
36756
+ isOpen = _ref.isOpen,
36757
+ onClose = _ref.onClose;
36758
+ cov_229plf36at().f[0]++;
36759
+ var _ref2 = (cov_229plf36at().s[1]++, useTranslation()),
36760
+ t = _ref2.t;
36761
+ cov_229plf36at().s[2]++;
36762
+ if (isLoading) {
36763
+ cov_229plf36at().b[0][0]++;
36764
+ cov_229plf36at().s[3]++;
36765
+ return /*#__PURE__*/React__default["default"].createElement(PageLoader__default["default"], null);
36766
+ } else {
36767
+ cov_229plf36at().b[0][1]++;
36768
+ }
36769
+ cov_229plf36at().s[4]++;
36770
+ return /*#__PURE__*/React__default["default"].createElement(neetoui.Pane, {
36771
+ isOpen: isOpen,
36772
+ onClose: onClose
36773
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36774
+ style: "h2",
36775
+ weight: "semibold"
36776
+ }, t("labels.ruleSummary"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
36777
+ className: "w-full"
36778
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
36779
+ className: "neeto-ui-rounded mb-4 border p-4"
36780
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
36781
+ className: "mb-3 flex flex-wrap justify-between gap-x-4"
36782
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36783
+ className: "neeto-ui-text-gray-700 my-auto",
36784
+ style: "h5",
36785
+ weight: "semibold"
36786
+ }, t("common.name")), /*#__PURE__*/React__default["default"].createElement("div", {
36787
+ className: "flex w-72 flex-wrap"
36788
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36789
+ className: "neeto-ui-text-gray-800 my-auto",
36790
+ style: "h5",
36791
+ weight: "normal"
36792
+ }, ruleDetails.name.value))), /*#__PURE__*/React__default["default"].createElement("hr", null), /*#__PURE__*/React__default["default"].createElement("div", {
36793
+ className: "my-3 flex flex-wrap justify-between gap-x-2"
36794
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36795
+ className: "neeto-ui-text-gray-700 my-auto",
36796
+ style: "h5",
36797
+ weight: "semibold"
36798
+ }, t("common.description")), /*#__PURE__*/React__default["default"].createElement("div", {
36799
+ className: "flex w-72 flex-wrap"
36800
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
36801
+ className: "neeto-ui-text-gray-800 my-auto",
36802
+ style: "h5",
36803
+ weight: "normal"
36804
+ }, ruleDetails.description.value)))), /*#__PURE__*/React__default["default"].createElement(EventsDetail, {
36805
+ conditions: ruleDetails.conditions,
36806
+ events: ruleDetails.events,
36807
+ performer: ruleDetails.performer
36808
+ }), /*#__PURE__*/React__default["default"].createElement(ActionsDetail, {
36809
+ actions: ruleDetails.actions
36810
+ }))));
36811
+ };
36812
+
36813
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
36814
+ try {
36815
+ var info = gen[key](arg);
36816
+ var value = info.value;
36817
+ } catch (error) {
36818
+ reject(error);
36819
+ return;
36820
+ }
36821
+ if (info.done) {
36822
+ resolve(value);
36823
+ } else {
36824
+ Promise.resolve(value).then(_next, _throw);
36825
+ }
36826
+ }
36827
+ function _asyncToGenerator(fn) {
36828
+ return function () {
36829
+ var self = this,
36830
+ args = arguments;
36831
+ return new Promise(function (resolve, reject) {
36832
+ var gen = fn.apply(self, args);
36833
+ function _next(value) {
36834
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
36835
+ }
36836
+ function _throw(err) {
36837
+ asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
36838
+ }
36839
+ _next(undefined);
36840
+ });
36841
+ };
36842
+ }
36843
+
36844
+ var regeneratorRuntime$1 = {exports: {}};
36845
+
36846
+ var _typeof = {exports: {}};
36847
+
36848
+ (function (module) {
36849
+ function _typeof(obj) {
36850
+ "@babel/helpers - typeof";
36851
+
36852
+ return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
36853
+ return typeof obj;
36854
+ } : function (obj) {
36855
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
36856
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj);
36857
+ }
36858
+ module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports;
36859
+ })(_typeof);
36860
+
36861
+ (function (module) {
36862
+ var _typeof$1 = _typeof.exports["default"];
36863
+ function _regeneratorRuntime() {
36864
+
36865
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
36866
+ module.exports = _regeneratorRuntime = function _regeneratorRuntime() {
36867
+ return exports;
36868
+ }, module.exports.__esModule = true, module.exports["default"] = module.exports;
36869
+ var exports = {},
36870
+ Op = Object.prototype,
36871
+ hasOwn = Op.hasOwnProperty,
36872
+ defineProperty = Object.defineProperty || function (obj, key, desc) {
36873
+ obj[key] = desc.value;
36874
+ },
36875
+ $Symbol = "function" == typeof Symbol ? Symbol : {},
36876
+ iteratorSymbol = $Symbol.iterator || "@@iterator",
36877
+ asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
36878
+ toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
36879
+ function define(obj, key, value) {
36880
+ return Object.defineProperty(obj, key, {
36881
+ value: value,
36882
+ enumerable: !0,
36883
+ configurable: !0,
36884
+ writable: !0
36885
+ }), obj[key];
36886
+ }
36887
+ try {
36888
+ define({}, "");
36889
+ } catch (err) {
36890
+ define = function define(obj, key, value) {
36891
+ return obj[key] = value;
36892
+ };
36893
+ }
36894
+ function wrap(innerFn, outerFn, self, tryLocsList) {
36895
+ var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
36896
+ generator = Object.create(protoGenerator.prototype),
36897
+ context = new Context(tryLocsList || []);
36898
+ return defineProperty(generator, "_invoke", {
36899
+ value: makeInvokeMethod(innerFn, self, context)
36900
+ }), generator;
36901
+ }
36902
+ function tryCatch(fn, obj, arg) {
36903
+ try {
36904
+ return {
36905
+ type: "normal",
36906
+ arg: fn.call(obj, arg)
36907
+ };
36908
+ } catch (err) {
36909
+ return {
36910
+ type: "throw",
36911
+ arg: err
36912
+ };
36913
+ }
36914
+ }
36915
+ exports.wrap = wrap;
36916
+ var ContinueSentinel = {};
36917
+ function Generator() {}
36918
+ function GeneratorFunction() {}
36919
+ function GeneratorFunctionPrototype() {}
36920
+ var IteratorPrototype = {};
36921
+ define(IteratorPrototype, iteratorSymbol, function () {
36922
+ return this;
36923
+ });
36924
+ var getProto = Object.getPrototypeOf,
36925
+ NativeIteratorPrototype = getProto && getProto(getProto(values([])));
36926
+ NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
36927
+ var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
36928
+ function defineIteratorMethods(prototype) {
36929
+ ["next", "throw", "return"].forEach(function (method) {
36930
+ define(prototype, method, function (arg) {
36931
+ return this._invoke(method, arg);
36932
+ });
36933
+ });
36934
+ }
36935
+ function AsyncIterator(generator, PromiseImpl) {
36936
+ function invoke(method, arg, resolve, reject) {
36937
+ var record = tryCatch(generator[method], generator, arg);
36938
+ if ("throw" !== record.type) {
36939
+ var result = record.arg,
36940
+ value = result.value;
36941
+ return value && "object" == _typeof$1(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
36942
+ invoke("next", value, resolve, reject);
36943
+ }, function (err) {
36944
+ invoke("throw", err, resolve, reject);
36945
+ }) : PromiseImpl.resolve(value).then(function (unwrapped) {
36946
+ result.value = unwrapped, resolve(result);
36947
+ }, function (error) {
36948
+ return invoke("throw", error, resolve, reject);
36949
+ });
36950
+ }
36951
+ reject(record.arg);
36952
+ }
36953
+ var previousPromise;
36954
+ defineProperty(this, "_invoke", {
36955
+ value: function value(method, arg) {
36956
+ function callInvokeWithMethodAndArg() {
36957
+ return new PromiseImpl(function (resolve, reject) {
36958
+ invoke(method, arg, resolve, reject);
36959
+ });
36960
+ }
36961
+ return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
36962
+ }
36963
+ });
36964
+ }
36965
+ function makeInvokeMethod(innerFn, self, context) {
36966
+ var state = "suspendedStart";
36967
+ return function (method, arg) {
36968
+ if ("executing" === state) throw new Error("Generator is already running");
36969
+ if ("completed" === state) {
36970
+ if ("throw" === method) throw arg;
36971
+ return doneResult();
36972
+ }
36973
+ for (context.method = method, context.arg = arg;;) {
36974
+ var delegate = context.delegate;
36975
+ if (delegate) {
36976
+ var delegateResult = maybeInvokeDelegate(delegate, context);
36977
+ if (delegateResult) {
36978
+ if (delegateResult === ContinueSentinel) continue;
36979
+ return delegateResult;
36980
+ }
36981
+ }
36982
+ if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
36983
+ if ("suspendedStart" === state) throw state = "completed", context.arg;
36984
+ context.dispatchException(context.arg);
36985
+ } else "return" === context.method && context.abrupt("return", context.arg);
36986
+ state = "executing";
36987
+ var record = tryCatch(innerFn, self, context);
36988
+ if ("normal" === record.type) {
36989
+ if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
36990
+ return {
36991
+ value: record.arg,
36992
+ done: context.done
36993
+ };
36994
+ }
36995
+ "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
36996
+ }
36997
+ };
36998
+ }
36999
+ function maybeInvokeDelegate(delegate, context) {
37000
+ var methodName = context.method,
37001
+ method = delegate.iterator[methodName];
37002
+ if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
37003
+ var record = tryCatch(method, delegate.iterator, context.arg);
37004
+ if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
37005
+ var info = record.arg;
37006
+ return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
37007
+ }
37008
+ function pushTryEntry(locs) {
37009
+ var entry = {
37010
+ tryLoc: locs[0]
37011
+ };
37012
+ 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
37013
+ }
37014
+ function resetTryEntry(entry) {
37015
+ var record = entry.completion || {};
37016
+ record.type = "normal", delete record.arg, entry.completion = record;
37017
+ }
37018
+ function Context(tryLocsList) {
37019
+ this.tryEntries = [{
37020
+ tryLoc: "root"
37021
+ }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
37022
+ }
37023
+ function values(iterable) {
37024
+ if (iterable) {
37025
+ var iteratorMethod = iterable[iteratorSymbol];
37026
+ if (iteratorMethod) return iteratorMethod.call(iterable);
37027
+ if ("function" == typeof iterable.next) return iterable;
37028
+ if (!isNaN(iterable.length)) {
37029
+ var i = -1,
37030
+ next = function next() {
37031
+ for (; ++i < iterable.length;) {
37032
+ if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
37033
+ }
37034
+ return next.value = undefined, next.done = !0, next;
37035
+ };
37036
+ return next.next = next;
37037
+ }
37038
+ }
37039
+ return {
37040
+ next: doneResult
37041
+ };
37042
+ }
37043
+ function doneResult() {
37044
+ return {
37045
+ value: undefined,
37046
+ done: !0
37047
+ };
37048
+ }
37049
+ return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
37050
+ value: GeneratorFunctionPrototype,
37051
+ configurable: !0
37052
+ }), defineProperty(GeneratorFunctionPrototype, "constructor", {
37053
+ value: GeneratorFunction,
37054
+ configurable: !0
37055
+ }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
37056
+ var ctor = "function" == typeof genFun && genFun.constructor;
37057
+ return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
37058
+ }, exports.mark = function (genFun) {
37059
+ return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
37060
+ }, exports.awrap = function (arg) {
37061
+ return {
37062
+ __await: arg
37063
+ };
37064
+ }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
37065
+ return this;
37066
+ }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
37067
+ void 0 === PromiseImpl && (PromiseImpl = Promise);
37068
+ var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
37069
+ return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
37070
+ return result.done ? result.value : iter.next();
37071
+ });
37072
+ }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
37073
+ return this;
37074
+ }), define(Gp, "toString", function () {
37075
+ return "[object Generator]";
37076
+ }), exports.keys = function (val) {
37077
+ var object = Object(val),
37078
+ keys = [];
37079
+ for (var key in object) {
37080
+ keys.push(key);
37081
+ }
37082
+ return keys.reverse(), function next() {
37083
+ for (; keys.length;) {
37084
+ var key = keys.pop();
37085
+ if (key in object) return next.value = key, next.done = !1, next;
37086
+ }
37087
+ return next.done = !0, next;
37088
+ };
37089
+ }, exports.values = values, Context.prototype = {
37090
+ constructor: Context,
37091
+ reset: function reset(skipTempReset) {
37092
+ if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) {
37093
+ "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
37094
+ }
37095
+ },
37096
+ stop: function stop() {
37097
+ this.done = !0;
37098
+ var rootRecord = this.tryEntries[0].completion;
37099
+ if ("throw" === rootRecord.type) throw rootRecord.arg;
37100
+ return this.rval;
37101
+ },
37102
+ dispatchException: function dispatchException(exception) {
37103
+ if (this.done) throw exception;
37104
+ var context = this;
37105
+ function handle(loc, caught) {
37106
+ return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
37107
+ }
37108
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
37109
+ var entry = this.tryEntries[i],
37110
+ record = entry.completion;
37111
+ if ("root" === entry.tryLoc) return handle("end");
37112
+ if (entry.tryLoc <= this.prev) {
37113
+ var hasCatch = hasOwn.call(entry, "catchLoc"),
37114
+ hasFinally = hasOwn.call(entry, "finallyLoc");
37115
+ if (hasCatch && hasFinally) {
37116
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
37117
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
37118
+ } else if (hasCatch) {
37119
+ if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
37120
+ } else {
37121
+ if (!hasFinally) throw new Error("try statement without catch or finally");
37122
+ if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
37123
+ }
37124
+ }
37125
+ }
37126
+ },
37127
+ abrupt: function abrupt(type, arg) {
37128
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
37129
+ var entry = this.tryEntries[i];
37130
+ if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
37131
+ var finallyEntry = entry;
37132
+ break;
37133
+ }
37134
+ }
37135
+ finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
37136
+ var record = finallyEntry ? finallyEntry.completion : {};
37137
+ return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
37138
+ },
37139
+ complete: function complete(record, afterLoc) {
37140
+ if ("throw" === record.type) throw record.arg;
37141
+ return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
37142
+ },
37143
+ finish: function finish(finallyLoc) {
37144
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
37145
+ var entry = this.tryEntries[i];
37146
+ if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
37147
+ }
37148
+ },
37149
+ "catch": function _catch(tryLoc) {
37150
+ for (var i = this.tryEntries.length - 1; i >= 0; --i) {
37151
+ var entry = this.tryEntries[i];
37152
+ if (entry.tryLoc === tryLoc) {
37153
+ var record = entry.completion;
37154
+ if ("throw" === record.type) {
37155
+ var thrown = record.arg;
37156
+ resetTryEntry(entry);
37157
+ }
37158
+ return thrown;
37159
+ }
37160
+ }
37161
+ throw new Error("illegal catch attempt");
37162
+ },
37163
+ delegateYield: function delegateYield(iterable, resultName, nextLoc) {
37164
+ return this.delegate = {
37165
+ iterator: values(iterable),
37166
+ resultName: resultName,
37167
+ nextLoc: nextLoc
37168
+ }, "next" === this.method && (this.arg = undefined), ContinueSentinel;
37169
+ }
37170
+ }, exports;
37171
+ }
37172
+ module.exports = _regeneratorRuntime, module.exports.__esModule = true, module.exports["default"] = module.exports;
37173
+ })(regeneratorRuntime$1);
37174
+
37175
+ // TODO(Babel 8): Remove this file.
37176
+
37177
+ var runtime = regeneratorRuntime$1.exports();
37178
+ var regenerator = runtime;
37179
+
37180
+ // Copied from https://github.com/facebook/regenerator/blob/main/packages/runtime/runtime.js#L736=
37181
+ try {
37182
+ regeneratorRuntime = runtime;
37183
+ } catch (accidentalStrictMode) {
37184
+ if ((typeof globalThis === "undefined" ? "undefined" : _typeof$2(globalThis)) === "object") {
37185
+ globalThis.regeneratorRuntime = runtime;
37186
+ } else {
37187
+ Function("r", "regeneratorRuntime = r")(runtime);
37188
+ }
37189
+ }
37190
+
37191
+ function cov_k2snexiez() {
37192
+ var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/constants.js";
37193
+ var hash = "a62a7b0d81cfcce07b53d50e2f5aad6922fc1011";
37194
+ var global = new Function("return this")();
37195
+ var gcv = "__coverage__";
37196
+ var coverageData = {
37197
+ path: "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/constants.js",
37198
+ statementMap: {
37199
+ "0": {
37200
+ start: {
37201
+ line: 3,
37202
+ column: 21
37203
+ },
37204
+ end: {
37205
+ line: 18,
37206
+ column: 1
37207
+ }
37208
+ },
37209
+ "1": {
37210
+ start: {
37211
+ line: 20,
37212
+ column: 33
37213
+ },
37214
+ end: {
37215
+ line: 31,
37216
+ column: 1
37217
+ }
37218
+ },
37219
+ "2": {
37220
+ start: {
37221
+ line: 33,
37222
+ column: 16
37223
+ },
37224
+ end: {
37225
+ line: 36,
37226
+ column: 1
37227
+ }
37228
+ },
37229
+ "3": {
37230
+ start: {
37231
+ line: 38,
37232
+ column: 28
37233
+ },
37234
+ end: {
37235
+ line: 41,
37236
+ column: 1
37237
+ }
37238
+ },
37239
+ "4": {
37240
+ start: {
37241
+ line: 43,
37242
+ column: 22
37243
+ },
37244
+ end: {
37245
+ line: 43,
37246
+ column: 67
37247
+ }
37248
+ },
37249
+ "5": {
37250
+ start: {
37251
+ line: 45,
37252
+ column: 20
37253
+ },
37254
+ end: {
37255
+ line: 45,
37256
+ column: 48
37257
+ }
37258
+ },
37259
+ "6": {
37260
+ start: {
37261
+ line: 47,
37262
+ column: 30
37263
+ },
37264
+ end: {
37265
+ line: 47,
37266
+ column: 31
37267
+ }
37268
+ },
37269
+ "7": {
37270
+ start: {
37271
+ line: 49,
37272
+ column: 27
37273
+ },
37274
+ end: {
37275
+ line: 49,
37276
+ column: 65
37277
+ }
37278
+ }
37279
+ },
37280
+ fnMap: {},
37281
+ branchMap: {},
37282
+ s: {
37283
+ "0": 0,
37284
+ "1": 0,
37285
+ "2": 0,
37286
+ "3": 0,
37287
+ "4": 0,
37288
+ "5": 0,
37289
+ "6": 0,
37290
+ "7": 0
37291
+ },
37292
+ f: {},
37293
+ b: {},
37294
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
37295
+ hash: "a62a7b0d81cfcce07b53d50e2f5aad6922fc1011"
37296
+ };
37297
+ var coverage = global[gcv] || (global[gcv] = {});
37298
+ if (!coverage[path] || coverage[path].hash !== hash) {
37299
+ coverage[path] = coverageData;
37300
+ }
37301
+ var actualCoverage = coverage[path];
37302
+ {
37303
+ // @ts-ignore
37304
+ cov_k2snexiez = function () {
37305
+ return actualCoverage;
37306
+ };
37307
+ }
37308
+ return actualCoverage;
37309
+ }
37310
+ cov_k2snexiez();
37311
+ var ACTION_TYPES = (cov_k2snexiez().s[0]++, {
37312
+ emailToIds: "emailToIds",
37313
+ email: "email",
37314
+ emailTo: "emailTo",
37315
+ dropdown: "dropdown",
37316
+ list: "list",
37317
+ multiSelect: "multiSelect",
37318
+ note: "note",
37319
+ text: "text",
37320
+ number: "number",
37321
+ decimal: "decimal",
37322
+ regex: "regex",
37323
+ textarea: "textarea",
37324
+ date: "date",
37325
+ longText: "longText"
37326
+ });
37327
+ var LIST_FIELD_TOOLTIP_PROPS = (cov_k2snexiez().s[1]++, {
37328
+ save: {
34444
37329
  content: t("buttons.save"),
34445
37330
  position: "top",
34446
37331
  delay: 300
@@ -41929,7 +44814,7 @@ var getSlackChannelErrors = function getSlackChannelErrors(slackChannels, action
41929
44814
 
41930
44815
  function cov_ydtn5b3nu() {
41931
44816
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/ActionSubItem/Fields/DropdownField.jsx";
41932
- var hash = "4bfaf367b7f98c3365bcf2170fdae32ec4959128";
44817
+ var hash = "f757258b10f39c22c2519e0f955df06c0555bce5";
41933
44818
  var global = new Function("return this")();
41934
44819
  var gcv = "__coverage__";
41935
44820
  var coverageData = {
@@ -41951,7 +44836,7 @@ function cov_ydtn5b3nu() {
41951
44836
  column: 22
41952
44837
  },
41953
44838
  end: {
41954
- line: 155,
44839
+ line: 156,
41955
44840
  column: 1
41956
44841
  }
41957
44842
  },
@@ -42111,7 +44996,7 @@ function cov_ydtn5b3nu() {
42111
44996
  column: 36
42112
44997
  },
42113
44998
  end: {
42114
- line: 68,
44999
+ line: 69,
42115
45000
  column: 3
42116
45001
  }
42117
45002
  },
@@ -42121,7 +45006,7 @@ function cov_ydtn5b3nu() {
42121
45006
  column: 4
42122
45007
  },
42123
45008
  end: {
42124
- line: 67,
45009
+ line: 68,
42125
45010
  column: 5
42126
45011
  }
42127
45012
  },
@@ -42141,7 +45026,7 @@ function cov_ydtn5b3nu() {
42141
45026
  column: 6
42142
45027
  },
42143
45028
  end: {
42144
- line: 64,
45029
+ line: 65,
42145
45030
  column: 7
42146
45031
  }
42147
45032
  },
@@ -42167,121 +45052,131 @@ function cov_ydtn5b3nu() {
42167
45052
  },
42168
45053
  "23": {
42169
45054
  start: {
42170
- line: 66,
45055
+ line: 64,
45056
+ column: 8
45057
+ },
45058
+ end: {
45059
+ line: 64,
45060
+ column: 34
45061
+ }
45062
+ },
45063
+ "24": {
45064
+ start: {
45065
+ line: 67,
42171
45066
  column: 6
42172
45067
  },
42173
45068
  end: {
42174
- line: 66,
45069
+ line: 67,
42175
45070
  column: 56
42176
45071
  }
42177
45072
  },
42178
- "24": {
45073
+ "25": {
42179
45074
  start: {
42180
- line: 70,
45075
+ line: 71,
42181
45076
  column: 2
42182
45077
  },
42183
45078
  end: {
42184
- line: 72,
45079
+ line: 73,
42185
45080
  column: 38
42186
45081
  }
42187
45082
  },
42188
- "25": {
45083
+ "26": {
42189
45084
  start: {
42190
- line: 71,
45085
+ line: 72,
42191
45086
  column: 4
42192
45087
  },
42193
45088
  end: {
42194
- line: 71,
45089
+ line: 72,
42195
45090
  column: 32
42196
45091
  }
42197
45092
  },
42198
- "26": {
45093
+ "27": {
42199
45094
  start: {
42200
- line: 74,
45095
+ line: 75,
42201
45096
  column: 2
42202
45097
  },
42203
45098
  end: {
42204
- line: 154,
45099
+ line: 155,
42205
45100
  column: 4
42206
45101
  }
42207
45102
  },
42208
- "27": {
45103
+ "28": {
42209
45104
  start: {
42210
- line: 102,
45105
+ line: 103,
42211
45106
  column: 14
42212
45107
  },
42213
45108
  end: {
42214
- line: 102,
45109
+ line: 103,
42215
45110
  column: 80
42216
45111
  }
42217
45112
  },
42218
- "28": {
45113
+ "29": {
42219
45114
  start: {
42220
- line: 103,
45115
+ line: 104,
42221
45116
  column: 14
42222
45117
  },
42223
45118
  end: {
42224
- line: 103,
45119
+ line: 104,
42225
45120
  column: 51
42226
45121
  }
42227
45122
  },
42228
- "29": {
45123
+ "30": {
42229
45124
  start: {
42230
- line: 103,
45125
+ line: 104,
42231
45126
  column: 39
42232
45127
  },
42233
45128
  end: {
42234
- line: 103,
45129
+ line: 104,
42235
45130
  column: 49
42236
45131
  }
42237
45132
  },
42238
- "30": {
45133
+ "31": {
42239
45134
  start: {
42240
- line: 120,
45135
+ line: 121,
42241
45136
  column: 29
42242
45137
  },
42243
45138
  end: {
42244
- line: 120,
45139
+ line: 121,
42245
45140
  column: 58
42246
45141
  }
42247
45142
  },
42248
- "31": {
45143
+ "32": {
42249
45144
  start: {
42250
- line: 121,
45145
+ line: 122,
42251
45146
  column: 28
42252
45147
  },
42253
45148
  end: {
42254
- line: 121,
45149
+ line: 122,
42255
45150
  column: 47
42256
45151
  }
42257
45152
  },
42258
- "32": {
45153
+ "33": {
42259
45154
  start: {
42260
- line: 128,
45155
+ line: 129,
42261
45156
  column: 14
42262
45157
  },
42263
45158
  end: {
42264
- line: 143,
45159
+ line: 144,
42265
45160
  column: 32
42266
45161
  }
42267
45162
  },
42268
- "33": {
45163
+ "34": {
42269
45164
  start: {
42270
- line: 140,
45165
+ line: 141,
42271
45166
  column: 31
42272
45167
  },
42273
45168
  end: {
42274
- line: 140,
45169
+ line: 141,
42275
45170
  column: 57
42276
45171
  }
42277
45172
  },
42278
- "34": {
45173
+ "35": {
42279
45174
  start: {
42280
- line: 157,
45175
+ line: 158,
42281
45176
  column: 0
42282
45177
  },
42283
45178
  end: {
42284
- line: 161,
45179
+ line: 162,
42285
45180
  column: 2
42286
45181
  }
42287
45182
  }
@@ -42305,7 +45200,7 @@ function cov_ydtn5b3nu() {
42305
45200
  column: 75
42306
45201
  },
42307
45202
  end: {
42308
- line: 155,
45203
+ line: 156,
42309
45204
  column: 1
42310
45205
  }
42311
45206
  },
@@ -42377,7 +45272,7 @@ function cov_ydtn5b3nu() {
42377
45272
  column: 42
42378
45273
  },
42379
45274
  end: {
42380
- line: 68,
45275
+ line: 69,
42381
45276
  column: 3
42382
45277
  }
42383
45278
  },
@@ -42387,169 +45282,169 @@ function cov_ydtn5b3nu() {
42387
45282
  name: "(anonymous_4)",
42388
45283
  decl: {
42389
45284
  start: {
42390
- line: 70,
45285
+ line: 71,
42391
45286
  column: 12
42392
45287
  },
42393
45288
  end: {
42394
- line: 70,
45289
+ line: 71,
42395
45290
  column: 13
42396
45291
  }
42397
45292
  },
42398
45293
  loc: {
42399
45294
  start: {
42400
- line: 70,
45295
+ line: 71,
42401
45296
  column: 18
42402
45297
  },
42403
45298
  end: {
42404
- line: 72,
45299
+ line: 73,
42405
45300
  column: 3
42406
45301
  }
42407
45302
  },
42408
- line: 70
45303
+ line: 71
42409
45304
  },
42410
45305
  "5": {
42411
45306
  name: "(anonymous_5)",
42412
45307
  decl: {
42413
45308
  start: {
42414
- line: 101,
45309
+ line: 102,
42415
45310
  column: 21
42416
45311
  },
42417
45312
  end: {
42418
- line: 101,
45313
+ line: 102,
42419
45314
  column: 22
42420
45315
  }
42421
45316
  },
42422
45317
  loc: {
42423
45318
  start: {
42424
- line: 101,
45319
+ line: 102,
42425
45320
  column: 27
42426
45321
  },
42427
45322
  end: {
42428
- line: 104,
45323
+ line: 105,
42429
45324
  column: 13
42430
45325
  }
42431
45326
  },
42432
- line: 101
45327
+ line: 102
42433
45328
  },
42434
45329
  "6": {
42435
45330
  name: "(anonymous_6)",
42436
45331
  decl: {
42437
45332
  start: {
42438
- line: 103,
45333
+ line: 104,
42439
45334
  column: 26
42440
45335
  },
42441
45336
  end: {
42442
- line: 103,
45337
+ line: 104,
42443
45338
  column: 27
42444
45339
  }
42445
45340
  },
42446
45341
  loc: {
42447
45342
  start: {
42448
- line: 103,
45343
+ line: 104,
42449
45344
  column: 39
42450
45345
  },
42451
45346
  end: {
42452
- line: 103,
45347
+ line: 104,
42453
45348
  column: 49
42454
45349
  }
42455
45350
  },
42456
- line: 103
45351
+ line: 104
42457
45352
  },
42458
45353
  "7": {
42459
45354
  name: "(anonymous_7)",
42460
45355
  decl: {
42461
45356
  start: {
42462
- line: 120,
45357
+ line: 121,
42463
45358
  column: 24
42464
45359
  },
42465
45360
  end: {
42466
- line: 120,
45361
+ line: 121,
42467
45362
  column: 25
42468
45363
  }
42469
45364
  },
42470
45365
  loc: {
42471
45366
  start: {
42472
- line: 120,
45367
+ line: 121,
42473
45368
  column: 29
42474
45369
  },
42475
45370
  end: {
42476
- line: 120,
45371
+ line: 121,
42477
45372
  column: 58
42478
45373
  }
42479
45374
  },
42480
- line: 120
45375
+ line: 121
42481
45376
  },
42482
45377
  "8": {
42483
45378
  name: "(anonymous_8)",
42484
45379
  decl: {
42485
45380
  start: {
42486
- line: 121,
45381
+ line: 122,
42487
45382
  column: 23
42488
45383
  },
42489
45384
  end: {
42490
- line: 121,
45385
+ line: 122,
42491
45386
  column: 24
42492
45387
  }
42493
45388
  },
42494
45389
  loc: {
42495
45390
  start: {
42496
- line: 121,
45391
+ line: 122,
42497
45392
  column: 28
42498
45393
  },
42499
45394
  end: {
42500
- line: 121,
45395
+ line: 122,
42501
45396
  column: 47
42502
45397
  }
42503
45398
  },
42504
- line: 121
45399
+ line: 122
42505
45400
  },
42506
45401
  "9": {
42507
45402
  name: "(anonymous_9)",
42508
45403
  decl: {
42509
45404
  start: {
42510
- line: 127,
45405
+ line: 128,
42511
45406
  column: 33
42512
45407
  },
42513
45408
  end: {
42514
- line: 127,
45409
+ line: 128,
42515
45410
  column: 34
42516
45411
  }
42517
45412
  },
42518
45413
  loc: {
42519
45414
  start: {
42520
- line: 128,
45415
+ line: 129,
42521
45416
  column: 14
42522
45417
  },
42523
45418
  end: {
42524
- line: 143,
45419
+ line: 144,
42525
45420
  column: 32
42526
45421
  }
42527
45422
  },
42528
- line: 128
45423
+ line: 129
42529
45424
  },
42530
45425
  "10": {
42531
45426
  name: "(anonymous_10)",
42532
45427
  decl: {
42533
45428
  start: {
42534
- line: 140,
45429
+ line: 141,
42535
45430
  column: 25
42536
45431
  },
42537
45432
  end: {
42538
- line: 140,
45433
+ line: 141,
42539
45434
  column: 26
42540
45435
  }
42541
45436
  },
42542
45437
  loc: {
42543
45438
  start: {
42544
- line: 140,
45439
+ line: 141,
42545
45440
  column: 31
42546
45441
  },
42547
45442
  end: {
42548
- line: 140,
45443
+ line: 141,
42549
45444
  column: 57
42550
45445
  }
42551
45446
  },
42552
- line: 140
45447
+ line: 141
42553
45448
  }
42554
45449
  },
42555
45450
  branchMap: {
@@ -42677,7 +45572,7 @@ function cov_ydtn5b3nu() {
42677
45572
  column: 4
42678
45573
  },
42679
45574
  end: {
42680
- line: 67,
45575
+ line: 68,
42681
45576
  column: 5
42682
45577
  }
42683
45578
  },
@@ -42688,16 +45583,16 @@ function cov_ydtn5b3nu() {
42688
45583
  column: 4
42689
45584
  },
42690
45585
  end: {
42691
- line: 67,
45586
+ line: 68,
42692
45587
  column: 5
42693
45588
  }
42694
45589
  }, {
42695
45590
  start: {
42696
- line: 65,
45591
+ line: 66,
42697
45592
  column: 11
42698
45593
  },
42699
45594
  end: {
42700
- line: 67,
45595
+ line: 68,
42701
45596
  column: 5
42702
45597
  }
42703
45598
  }],
@@ -42710,7 +45605,7 @@ function cov_ydtn5b3nu() {
42710
45605
  column: 6
42711
45606
  },
42712
45607
  end: {
42713
- line: 64,
45608
+ line: 65,
42714
45609
  column: 7
42715
45610
  }
42716
45611
  },
@@ -42721,7 +45616,7 @@ function cov_ydtn5b3nu() {
42721
45616
  column: 6
42722
45617
  },
42723
45618
  end: {
42724
- line: 64,
45619
+ line: 65,
42725
45620
  column: 7
42726
45621
  }
42727
45622
  }, {
@@ -42730,7 +45625,7 @@ function cov_ydtn5b3nu() {
42730
45625
  column: 13
42731
45626
  },
42732
45627
  end: {
42733
- line: 64,
45628
+ line: 65,
42734
45629
  column: 7
42735
45630
  }
42736
45631
  }],
@@ -42739,134 +45634,134 @@ function cov_ydtn5b3nu() {
42739
45634
  "5": {
42740
45635
  loc: {
42741
45636
  start: {
42742
- line: 76,
45637
+ line: 77,
42743
45638
  column: 7
42744
45639
  },
42745
45640
  end: {
42746
- line: 85,
45641
+ line: 86,
42747
45642
  column: 7
42748
45643
  }
42749
45644
  },
42750
45645
  type: "binary-expr",
42751
45646
  locations: [{
42752
45647
  start: {
42753
- line: 76,
45648
+ line: 77,
42754
45649
  column: 7
42755
45650
  },
42756
45651
  end: {
42757
- line: 76,
45652
+ line: 77,
42758
45653
  column: 35
42759
45654
  }
42760
45655
  }, {
42761
45656
  start: {
42762
- line: 77,
45657
+ line: 78,
42763
45658
  column: 8
42764
45659
  },
42765
45660
  end: {
42766
- line: 84,
45661
+ line: 85,
42767
45662
  column: 21
42768
45663
  }
42769
45664
  }],
42770
- line: 76
45665
+ line: 77
42771
45666
  },
42772
45667
  "6": {
42773
45668
  loc: {
42774
45669
  start: {
42775
- line: 112,
45670
+ line: 113,
42776
45671
  column: 11
42777
45672
  },
42778
45673
  end: {
42779
- line: 123,
45674
+ line: 124,
42780
45675
  column: 11
42781
45676
  }
42782
45677
  },
42783
45678
  type: "binary-expr",
42784
45679
  locations: [{
42785
45680
  start: {
42786
- line: 112,
45681
+ line: 113,
42787
45682
  column: 11
42788
45683
  },
42789
45684
  end: {
42790
- line: 112,
45685
+ line: 113,
42791
45686
  column: 57
42792
45687
  }
42793
45688
  }, {
42794
45689
  start: {
42795
- line: 113,
45690
+ line: 114,
42796
45691
  column: 12
42797
45692
  },
42798
45693
  end: {
42799
- line: 122,
45694
+ line: 123,
42800
45695
  column: 14
42801
45696
  }
42802
45697
  }],
42803
- line: 112
45698
+ line: 113
42804
45699
  },
42805
45700
  "7": {
42806
45701
  loc: {
42807
45702
  start: {
42808
- line: 136,
45703
+ line: 137,
42809
45704
  column: 18
42810
45705
  },
42811
45706
  end: {
42812
- line: 138,
45707
+ line: 139,
42813
45708
  column: 19
42814
45709
  }
42815
45710
  },
42816
45711
  type: "binary-expr",
42817
45712
  locations: [{
42818
45713
  start: {
42819
- line: 136,
45714
+ line: 137,
42820
45715
  column: 18
42821
45716
  },
42822
45717
  end: {
42823
- line: 136,
45718
+ line: 137,
42824
45719
  column: 62
42825
45720
  }
42826
45721
  }, {
42827
45722
  start: {
42828
- line: 137,
45723
+ line: 138,
42829
45724
  column: 20
42830
45725
  },
42831
45726
  end: {
42832
- line: 137,
45727
+ line: 138,
42833
45728
  column: 67
42834
45729
  }
42835
45730
  }],
42836
- line: 136
45731
+ line: 137
42837
45732
  },
42838
45733
  "8": {
42839
45734
  loc: {
42840
45735
  start: {
42841
- line: 146,
45736
+ line: 147,
42842
45737
  column: 11
42843
45738
  },
42844
45739
  end: {
42845
- line: 150,
45740
+ line: 151,
42846
45741
  column: 11
42847
45742
  }
42848
45743
  },
42849
45744
  type: "binary-expr",
42850
45745
  locations: [{
42851
45746
  start: {
42852
- line: 146,
45747
+ line: 147,
42853
45748
  column: 11
42854
45749
  },
42855
45750
  end: {
42856
- line: 146,
45751
+ line: 147,
42857
45752
  column: 35
42858
45753
  }
42859
45754
  }, {
42860
45755
  start: {
42861
- line: 147,
45756
+ line: 148,
42862
45757
  column: 12
42863
45758
  },
42864
45759
  end: {
42865
- line: 149,
45760
+ line: 150,
42866
45761
  column: 30
42867
45762
  }
42868
45763
  }],
42869
- line: 146
45764
+ line: 147
42870
45765
  }
42871
45766
  },
42872
45767
  s: {
@@ -42904,7 +45799,8 @@ function cov_ydtn5b3nu() {
42904
45799
  "31": 0,
42905
45800
  "32": 0,
42906
45801
  "33": 0,
42907
- "34": 0
45802
+ "34": 0,
45803
+ "35": 0
42908
45804
  },
42909
45805
  f: {
42910
45806
  "0": 0,
@@ -42931,7 +45827,7 @@ function cov_ydtn5b3nu() {
42931
45827
  "8": [0, 0]
42932
45828
  },
42933
45829
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
42934
- hash: "4bfaf367b7f98c3365bcf2170fdae32ec4959128"
45830
+ hash: "f757258b10f39c22c2519e0f955df06c0555bce5"
42935
45831
  };
42936
45832
  var coverage = global[gcv] || (global[gcv] = {});
42937
45833
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -43019,22 +45915,24 @@ var DropdownField$1 = function DropdownField(_ref2) {
43019
45915
  setDefaultSelectedOption({
43020
45916
  label: defaultLabel
43021
45917
  });
45918
+ cov_ydtn5b3nu().s[23]++;
45919
+ setFieldValue(name, null);
43022
45920
  }
43023
45921
  } else {
43024
45922
  cov_ydtn5b3nu().b[3][1]++;
43025
- cov_ydtn5b3nu().s[23]++;
45923
+ cov_ydtn5b3nu().s[24]++;
43026
45924
  setDefaultSelectedOption({
43027
45925
  label: defaultLabel
43028
45926
  });
43029
45927
  }
43030
45928
  };
43031
- cov_ydtn5b3nu().s[24]++;
45929
+ cov_ydtn5b3nu().s[25]++;
43032
45930
  React.useEffect(function () {
43033
45931
  cov_ydtn5b3nu().f[4]++;
43034
- cov_ydtn5b3nu().s[25]++;
45932
+ cov_ydtn5b3nu().s[26]++;
43035
45933
  findDefaultSelectedOption();
43036
45934
  }, [defaultValue, dropdownOptions]);
43037
- cov_ydtn5b3nu().s[26]++;
45935
+ cov_ydtn5b3nu().s[27]++;
43038
45936
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (cov_ydtn5b3nu().b[5][0]++, !selectedField.hideSeparator) && (cov_ydtn5b3nu().b[5][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
43039
45937
  className: "neeto-ui-text-gray-700 mt-1",
43040
45938
  "data-cy": "action-dropdown-seperator-text",
@@ -43053,12 +45951,12 @@ var DropdownField$1 = function DropdownField(_ref2) {
43053
45951
  }),
43054
45952
  onClick: function onClick() {
43055
45953
  cov_ydtn5b3nu().f[5]++;
43056
- cov_ydtn5b3nu().s[27]++;
43057
- setTouched(ramda.assocPath(["actions", "value", index], true, touched));
43058
45954
  cov_ydtn5b3nu().s[28]++;
45955
+ setTouched(ramda.assocPath(["actions", "value", index], true, touched));
45956
+ cov_ydtn5b3nu().s[29]++;
43059
45957
  setIsActive(function (prevState) {
43060
45958
  cov_ydtn5b3nu().f[6]++;
43061
- cov_ydtn5b3nu().s[29]++;
45959
+ cov_ydtn5b3nu().s[30]++;
43062
45960
  return !prevState;
43063
45961
  });
43064
45962
  }
@@ -43075,19 +45973,19 @@ var DropdownField$1 = function DropdownField(_ref2) {
43075
45973
  value: searchTerm,
43076
45974
  onChange: function onChange(e) {
43077
45975
  cov_ydtn5b3nu().f[7]++;
43078
- cov_ydtn5b3nu().s[30]++;
45976
+ cov_ydtn5b3nu().s[31]++;
43079
45977
  return setSearchTerm(e.target.value);
43080
45978
  },
43081
45979
  onClick: function onClick(e) {
43082
45980
  cov_ydtn5b3nu().f[8]++;
43083
- cov_ydtn5b3nu().s[31]++;
45981
+ cov_ydtn5b3nu().s[32]++;
43084
45982
  return e.stopPropagation();
43085
45983
  }
43086
45984
  })), /*#__PURE__*/React__default["default"].createElement(OptionsWrapper, {
43087
45985
  hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH$3
43088
45986
  }, searchedOptions.map(function (option, idx) {
43089
45987
  cov_ydtn5b3nu().f[9]++;
43090
- cov_ydtn5b3nu().s[32]++;
45988
+ cov_ydtn5b3nu().s[33]++;
43091
45989
  return /*#__PURE__*/React__default["default"].createElement(MenuItem$9.Button, {
43092
45990
  "data-cy": "".concat(utils.joinHyphenCase(option.label), "-menu-item"),
43093
45991
  key: idx,
@@ -43099,7 +45997,7 @@ var DropdownField$1 = function DropdownField(_ref2) {
43099
45997
  })),
43100
45998
  onClick: function onClick() {
43101
45999
  cov_ydtn5b3nu().f[10]++;
43102
- cov_ydtn5b3nu().s[33]++;
46000
+ cov_ydtn5b3nu().s[34]++;
43103
46001
  return handleSelectOption(option);
43104
46002
  }
43105
46003
  }, option.label);
@@ -43107,7 +46005,7 @@ var DropdownField$1 = function DropdownField(_ref2) {
43107
46005
  "data-cy": "no-options-menu-item"
43108
46006
  }, t("common.noOptions"))))));
43109
46007
  };
43110
- cov_ydtn5b3nu().s[34]++;
46008
+ cov_ydtn5b3nu().s[35]++;
43111
46009
 
43112
46010
  function cov_1ifnsi25f3() {
43113
46011
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/ActionSubItem/Fields/EditorAction.jsx";
@@ -71101,5 +73999,6 @@ cov_2lkzw7diw1();
71101
73999
  exports.ActionForm = Actions$1;
71102
74000
  exports.ConditionForm = Conditions$1;
71103
74001
  exports.NeetoRulesForm = NeetoRules;
74002
+ exports.RulePreview = RulePreview;
71104
74003
  exports["default"] = NeetoRules$2;
71105
74004
  //# sourceMappingURL=index.cjs.js.map