@bigbinary/neeto-rules-frontend 0.0.91 → 0.0.93

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
@@ -6,8 +6,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
6
6
 
7
7
  var React = require('react');
8
8
  var formik = require('formik');
9
+ var Scrollable = require('neetomolecules/Scrollable');
9
10
  var formik$1 = require('@bigbinary/neetoui/formik');
10
- var layouts = require('@bigbinary/neetoui/layouts');
11
11
  var neetoIcons = require('@bigbinary/neeto-icons');
12
12
  var neetoui = require('@bigbinary/neetoui');
13
13
  var classNames = require('classnames');
@@ -40,6 +40,7 @@ function _interopNamespace(e) {
40
40
  }
41
41
 
42
42
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
43
+ var Scrollable__default = /*#__PURE__*/_interopDefaultLegacy(Scrollable);
43
44
  var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
44
45
  var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
45
46
  var dayjs__namespace = /*#__PURE__*/_interopNamespace(dayjs);
@@ -33719,7 +33720,7 @@ var RulesForm = function RulesForm(_ref) {
33719
33720
  });
33720
33721
  };
33721
33722
  cov_1zqova0fyt().s[12]++;
33722
- return /*#__PURE__*/React__default["default"].createElement(layouts.Scrollable, {
33723
+ return /*#__PURE__*/React__default["default"].createElement(Scrollable__default["default"], {
33723
33724
  className: "w-full py-8"
33724
33725
  }, /*#__PURE__*/React__default["default"].createElement("div", {
33725
33726
  className: "mx-auto max-w-3xl md:px-0 lg:px-6"
@@ -42270,7 +42271,7 @@ var InputField$2 = function InputField(_ref) {
42270
42271
 
42271
42272
  function cov_25nnzrwa0x() {
42272
42273
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/ActionSubItem/Fields/EmailFields.jsx";
42273
- var hash = "9fa35858f63807c163dd8b2a7c4b4b1e94f02782";
42274
+ var hash = "25f59464e0f4ae63b21a16cf361e73db5500be37";
42274
42275
  var global = new Function("return this")();
42275
42276
  var gcv = "__coverage__";
42276
42277
  var coverageData = {
@@ -42282,7 +42283,7 @@ function cov_25nnzrwa0x() {
42282
42283
  column: 20
42283
42284
  },
42284
42285
  end: {
42285
- line: 122,
42286
+ line: 123,
42286
42287
  column: 1
42287
42288
  }
42288
42289
  },
@@ -42358,71 +42359,81 @@ function cov_25nnzrwa0x() {
42358
42359
  },
42359
42360
  "8": {
42360
42361
  start: {
42361
- line: 35,
42362
+ line: 34,
42363
+ column: 23
42364
+ },
42365
+ end: {
42366
+ line: 34,
42367
+ column: 75
42368
+ }
42369
+ },
42370
+ "9": {
42371
+ start: {
42372
+ line: 36,
42362
42373
  column: 2
42363
42374
  },
42364
42375
  end: {
42365
- line: 121,
42376
+ line: 122,
42366
42377
  column: 4
42367
42378
  }
42368
42379
  },
42369
- "9": {
42380
+ "10": {
42370
42381
  start: {
42371
- line: 56,
42382
+ line: 57,
42372
42383
  column: 23
42373
42384
  },
42374
42385
  end: {
42375
- line: 56,
42386
+ line: 57,
42376
42387
  column: 59
42377
42388
  }
42378
42389
  },
42379
- "10": {
42390
+ "11": {
42380
42391
  start: {
42381
- line: 56,
42392
+ line: 57,
42382
42393
  column: 48
42383
42394
  },
42384
42395
  end: {
42385
- line: 56,
42396
+ line: 57,
42386
42397
  column: 58
42387
42398
  }
42388
42399
  },
42389
- "11": {
42400
+ "12": {
42390
42401
  start: {
42391
- line: 64,
42402
+ line: 65,
42392
42403
  column: 23
42393
42404
  },
42394
42405
  end: {
42395
- line: 64,
42406
+ line: 65,
42396
42407
  column: 41
42397
42408
  }
42398
42409
  },
42399
- "12": {
42410
+ "13": {
42400
42411
  start: {
42401
- line: 111,
42412
+ line: 112,
42402
42413
  column: 27
42403
42414
  },
42404
42415
  end: {
42405
- line: 111,
42416
+ line: 112,
42406
42417
  column: 45
42407
42418
  }
42408
42419
  },
42409
- "13": {
42420
+ "14": {
42410
42421
  start: {
42411
- line: 116,
42422
+ line: 117,
42412
42423
  column: 27
42413
42424
  },
42414
42425
  end: {
42415
- line: 116,
42426
+ line: 117,
42416
42427
  column: 45
42417
42428
  }
42418
42429
  },
42419
- "14": {
42430
+ "15": {
42420
42431
  start: {
42421
- line: 124,
42432
+ line: 125,
42422
42433
  column: 0
42423
42434
  },
42424
42435
  end: {
42425
- line: 128,
42436
+ line: 129,
42426
42437
  column: 2
42427
42438
  }
42428
42439
  }
@@ -42446,7 +42457,7 @@ function cov_25nnzrwa0x() {
42446
42457
  column: 6
42447
42458
  },
42448
42459
  end: {
42449
- line: 122,
42460
+ line: 123,
42450
42461
  column: 1
42451
42462
  }
42452
42463
  },
@@ -42480,121 +42491,121 @@ function cov_25nnzrwa0x() {
42480
42491
  name: "(anonymous_2)",
42481
42492
  decl: {
42482
42493
  start: {
42483
- line: 56,
42494
+ line: 57,
42484
42495
  column: 17
42485
42496
  },
42486
42497
  end: {
42487
- line: 56,
42498
+ line: 57,
42488
42499
  column: 18
42489
42500
  }
42490
42501
  },
42491
42502
  loc: {
42492
42503
  start: {
42493
- line: 56,
42504
+ line: 57,
42494
42505
  column: 23
42495
42506
  },
42496
42507
  end: {
42497
- line: 56,
42508
+ line: 57,
42498
42509
  column: 59
42499
42510
  }
42500
42511
  },
42501
- line: 56
42512
+ line: 57
42502
42513
  },
42503
42514
  "3": {
42504
42515
  name: "(anonymous_3)",
42505
42516
  decl: {
42506
42517
  start: {
42507
- line: 56,
42518
+ line: 57,
42508
42519
  column: 35
42509
42520
  },
42510
42521
  end: {
42511
- line: 56,
42522
+ line: 57,
42512
42523
  column: 36
42513
42524
  }
42514
42525
  },
42515
42526
  loc: {
42516
42527
  start: {
42517
- line: 56,
42528
+ line: 57,
42518
42529
  column: 48
42519
42530
  },
42520
42531
  end: {
42521
- line: 56,
42532
+ line: 57,
42522
42533
  column: 58
42523
42534
  }
42524
42535
  },
42525
- line: 56
42536
+ line: 57
42526
42537
  },
42527
42538
  "4": {
42528
42539
  name: "(anonymous_4)",
42529
42540
  decl: {
42530
42541
  start: {
42531
- line: 64,
42542
+ line: 65,
42532
42543
  column: 17
42533
42544
  },
42534
42545
  end: {
42535
- line: 64,
42546
+ line: 65,
42536
42547
  column: 18
42537
42548
  }
42538
42549
  },
42539
42550
  loc: {
42540
42551
  start: {
42541
- line: 64,
42552
+ line: 65,
42542
42553
  column: 23
42543
42554
  },
42544
42555
  end: {
42545
- line: 64,
42556
+ line: 65,
42546
42557
  column: 41
42547
42558
  }
42548
42559
  },
42549
- line: 64
42560
+ line: 65
42550
42561
  },
42551
42562
  "5": {
42552
42563
  name: "(anonymous_5)",
42553
42564
  decl: {
42554
42565
  start: {
42555
- line: 111,
42566
+ line: 112,
42556
42567
  column: 21
42557
42568
  },
42558
42569
  end: {
42559
- line: 111,
42570
+ line: 112,
42560
42571
  column: 22
42561
42572
  }
42562
42573
  },
42563
42574
  loc: {
42564
42575
  start: {
42565
- line: 111,
42576
+ line: 112,
42566
42577
  column: 27
42567
42578
  },
42568
42579
  end: {
42569
- line: 111,
42580
+ line: 112,
42570
42581
  column: 45
42571
42582
  }
42572
42583
  },
42573
- line: 111
42584
+ line: 112
42574
42585
  },
42575
42586
  "6": {
42576
42587
  name: "(anonymous_6)",
42577
42588
  decl: {
42578
42589
  start: {
42579
- line: 116,
42590
+ line: 117,
42580
42591
  column: 21
42581
42592
  },
42582
42593
  end: {
42583
- line: 116,
42594
+ line: 117,
42584
42595
  column: 22
42585
42596
  }
42586
42597
  },
42587
42598
  loc: {
42588
42599
  start: {
42589
- line: 116,
42600
+ line: 117,
42590
42601
  column: 27
42591
42602
  },
42592
42603
  end: {
42593
- line: 116,
42604
+ line: 117,
42594
42605
  column: 45
42595
42606
  }
42596
42607
  },
42597
- line: 116
42608
+ line: 117
42598
42609
  }
42599
42610
  },
42600
42611
  branchMap: {
@@ -42715,167 +42726,200 @@ function cov_25nnzrwa0x() {
42715
42726
  "4": {
42716
42727
  loc: {
42717
42728
  start: {
42718
- line: 78,
42729
+ line: 34,
42730
+ column: 23
42731
+ },
42732
+ end: {
42733
+ line: 34,
42734
+ column: 75
42735
+ }
42736
+ },
42737
+ type: "binary-expr",
42738
+ locations: [{
42739
+ start: {
42740
+ line: 34,
42741
+ column: 23
42742
+ },
42743
+ end: {
42744
+ line: 34,
42745
+ column: 54
42746
+ }
42747
+ }, {
42748
+ start: {
42749
+ line: 34,
42750
+ column: 58
42751
+ },
42752
+ end: {
42753
+ line: 34,
42754
+ column: 75
42755
+ }
42756
+ }],
42757
+ line: 34
42758
+ },
42759
+ "5": {
42760
+ loc: {
42761
+ start: {
42762
+ line: 79,
42719
42763
  column: 13
42720
42764
  },
42721
42765
  end: {
42722
- line: 84,
42766
+ line: 85,
42723
42767
  column: 13
42724
42768
  }
42725
42769
  },
42726
42770
  type: "binary-expr",
42727
42771
  locations: [{
42728
42772
  start: {
42729
- line: 78,
42773
+ line: 79,
42730
42774
  column: 13
42731
42775
  },
42732
42776
  end: {
42733
- line: 78,
42777
+ line: 79,
42734
42778
  column: 27
42735
42779
  }
42736
42780
  }, {
42737
42781
  start: {
42738
- line: 79,
42782
+ line: 80,
42739
42783
  column: 14
42740
42784
  },
42741
42785
  end: {
42742
- line: 83,
42786
+ line: 84,
42743
42787
  column: 16
42744
42788
  }
42745
42789
  }],
42746
- line: 78
42790
+ line: 79
42747
42791
  },
42748
- "5": {
42792
+ "6": {
42749
42793
  loc: {
42750
42794
  start: {
42751
- line: 85,
42795
+ line: 86,
42752
42796
  column: 13
42753
42797
  },
42754
42798
  end: {
42755
- line: 93,
42799
+ line: 94,
42756
42800
  column: 13
42757
42801
  }
42758
42802
  },
42759
42803
  type: "binary-expr",
42760
42804
  locations: [{
42761
42805
  start: {
42762
- line: 85,
42806
+ line: 86,
42763
42807
  column: 13
42764
42808
  },
42765
42809
  end: {
42766
- line: 85,
42810
+ line: 86,
42767
42811
  column: 39
42768
42812
  }
42769
42813
  }, {
42770
42814
  start: {
42771
- line: 86,
42815
+ line: 87,
42772
42816
  column: 14
42773
42817
  },
42774
42818
  end: {
42775
- line: 92,
42819
+ line: 93,
42776
42820
  column: 16
42777
42821
  }
42778
42822
  }],
42779
- line: 85
42823
+ line: 86
42780
42824
  },
42781
- "6": {
42825
+ "7": {
42782
42826
  loc: {
42783
42827
  start: {
42784
- line: 89,
42828
+ line: 90,
42785
42829
  column: 33
42786
42830
  },
42787
42831
  end: {
42788
- line: 89,
42832
+ line: 90,
42789
42833
  column: 72
42790
42834
  }
42791
42835
  },
42792
42836
  type: "cond-expr",
42793
42837
  locations: [{
42794
42838
  start: {
42795
- line: 89,
42839
+ line: 90,
42796
42840
  column: 50
42797
42841
  },
42798
42842
  end: {
42799
- line: 89,
42843
+ line: 90,
42800
42844
  column: 54
42801
42845
  }
42802
42846
  }, {
42803
42847
  start: {
42804
- line: 89,
42848
+ line: 90,
42805
42849
  column: 57
42806
42850
  },
42807
42851
  end: {
42808
- line: 89,
42852
+ line: 90,
42809
42853
  column: 72
42810
42854
  }
42811
42855
  }],
42812
- line: 89
42856
+ line: 90
42813
42857
  },
42814
- "7": {
42858
+ "8": {
42815
42859
  loc: {
42816
42860
  start: {
42817
- line: 100,
42861
+ line: 101,
42818
42862
  column: 16
42819
42863
  },
42820
42864
  end: {
42821
- line: 102,
42865
+ line: 103,
42822
42866
  column: 35
42823
42867
  }
42824
42868
  },
42825
42869
  type: "cond-expr",
42826
42870
  locations: [{
42827
42871
  start: {
42828
- line: 101,
42872
+ line: 102,
42829
42873
  column: 20
42830
42874
  },
42831
42875
  end: {
42832
- line: 101,
42876
+ line: 102,
42833
42877
  column: 24
42834
42878
  }
42835
42879
  }, {
42836
42880
  start: {
42837
- line: 102,
42881
+ line: 103,
42838
42882
  column: 20
42839
42883
  },
42840
42884
  end: {
42841
- line: 102,
42885
+ line: 103,
42842
42886
  column: 35
42843
42887
  }
42844
42888
  }],
42845
- line: 100
42889
+ line: 101
42846
42890
  },
42847
- "8": {
42891
+ "9": {
42848
42892
  loc: {
42849
42893
  start: {
42850
- line: 100,
42894
+ line: 101,
42851
42895
  column: 16
42852
42896
  },
42853
42897
  end: {
42854
- line: 100,
42898
+ line: 101,
42855
42899
  column: 60
42856
42900
  }
42857
42901
  },
42858
42902
  type: "binary-expr",
42859
42903
  locations: [{
42860
42904
  start: {
42861
- line: 100,
42905
+ line: 101,
42862
42906
  column: 16
42863
42907
  },
42864
42908
  end: {
42865
- line: 100,
42909
+ line: 101,
42866
42910
  column: 30
42867
42911
  }
42868
42912
  }, {
42869
42913
  start: {
42870
- line: 100,
42914
+ line: 101,
42871
42915
  column: 34
42872
42916
  },
42873
42917
  end: {
42874
- line: 100,
42918
+ line: 101,
42875
42919
  column: 60
42876
42920
  }
42877
42921
  }],
42878
- line: 100
42922
+ line: 101
42879
42923
  }
42880
42924
  },
42881
42925
  s: {
@@ -42893,7 +42937,8 @@ function cov_25nnzrwa0x() {
42893
42937
  "11": 0,
42894
42938
  "12": 0,
42895
42939
  "13": 0,
42896
- "14": 0
42940
+ "14": 0,
42941
+ "15": 0
42897
42942
  },
42898
42943
  f: {
42899
42944
  "0": 0,
@@ -42913,10 +42958,11 @@ function cov_25nnzrwa0x() {
42913
42958
  "5": [0, 0],
42914
42959
  "6": [0, 0],
42915
42960
  "7": [0, 0],
42916
- "8": [0, 0]
42961
+ "8": [0, 0],
42962
+ "9": [0, 0]
42917
42963
  },
42918
42964
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
42919
- hash: "9fa35858f63807c163dd8b2a7c4b4b1e94f02782"
42965
+ hash: "25f59464e0f4ae63b21a16cf361e73db5500be37"
42920
42966
  };
42921
42967
  var coverage = global[gcv] || (global[gcv] = {});
42922
42968
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -42959,7 +43005,8 @@ var EmailFields = function EmailFields(_ref) {
42959
43005
  });
42960
43006
  var isValid = (cov_25nnzrwa0x().s[6]++, (cov_25nnzrwa0x().b[2][0]++, errors.actions) && (cov_25nnzrwa0x().b[2][1]++, !ramda.isNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : _errors$actions.value[index])));
42961
43007
  var separator = (cov_25nnzrwa0x().s[7]++, (cov_25nnzrwa0x().b[3][0]++, selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || (cov_25nnzrwa0x().b[3][1]++, t("common.as")));
42962
- cov_25nnzrwa0x().s[8]++;
43008
+ var defaultLabel = (cov_25nnzrwa0x().s[8]++, (cov_25nnzrwa0x().b[4][0]++, selectedField === null || selectedField === void 0 ? void 0 : selectedField.emailPlaceholder) || (cov_25nnzrwa0x().b[4][1]++, t("common.email")));
43009
+ cov_25nnzrwa0x().s[9]++;
42963
43010
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
42964
43011
  className: "neeto-ui-text-gray-700",
42965
43012
  "data-cy": "action-email-seperator-text",
@@ -42975,20 +43022,20 @@ var EmailFields = function EmailFields(_ref) {
42975
43022
  }),
42976
43023
  onClick: function onClick() {
42977
43024
  cov_25nnzrwa0x().f[2]++;
42978
- cov_25nnzrwa0x().s[9]++;
43025
+ cov_25nnzrwa0x().s[10]++;
42979
43026
  return setShowPane(function (prevState) {
42980
43027
  cov_25nnzrwa0x().f[3]++;
42981
- cov_25nnzrwa0x().s[10]++;
43028
+ cov_25nnzrwa0x().s[11]++;
42982
43029
  return !prevState;
42983
43030
  });
42984
43031
  }
42985
- }, t("common.email").toLowerCase()), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane, {
43032
+ }, defaultLabel.toLowerCase()), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane, {
42986
43033
  initialFocusRef: initialFocusRef,
42987
43034
  isOpen: showPane,
42988
43035
  size: "large",
42989
43036
  onClose: function onClose() {
42990
43037
  cov_25nnzrwa0x().f[4]++;
42991
- cov_25nnzrwa0x().s[11]++;
43038
+ cov_25nnzrwa0x().s[12]++;
42992
43039
  return setShowPane(false);
42993
43040
  }
42994
43041
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
@@ -42996,16 +43043,16 @@ var EmailFields = function EmailFields(_ref) {
42996
43043
  "data-cy": "email-action-pane-header-title",
42997
43044
  style: "h3",
42998
43045
  weight: "semibold"
42999
- }, t("common.email"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
43046
+ }, defaultLabel)), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
43000
43047
  className: "w-full"
43001
- }, (cov_25nnzrwa0x().b[4][0]++, isEmailIdField) && (cov_25nnzrwa0x().b[4][1]++, /*#__PURE__*/React__default["default"].createElement(EmailIdFields, {
43048
+ }, (cov_25nnzrwa0x().b[5][0]++, isEmailIdField) && (cov_25nnzrwa0x().b[5][1]++, /*#__PURE__*/React__default["default"].createElement(EmailIdFields, {
43002
43049
  emails: emails,
43003
43050
  initialFocusRef: initialFocusRef,
43004
43051
  name: "".concat(name, ".emails")
43005
- })), (cov_25nnzrwa0x().b[5][0]++, !selectedField.hideSubject) && (cov_25nnzrwa0x().b[5][1]++, /*#__PURE__*/React__default["default"].createElement(InputField$2, {
43052
+ })), (cov_25nnzrwa0x().b[6][0]++, !selectedField.hideSubject) && (cov_25nnzrwa0x().b[6][1]++, /*#__PURE__*/React__default["default"].createElement(InputField$2, {
43006
43053
  className: "mb-4",
43007
43054
  "data-cy": "email-action-subject-text-field",
43008
- initialFocusRef: isEmailIdField ? (cov_25nnzrwa0x().b[6][0]++, null) : (cov_25nnzrwa0x().b[6][1]++, initialFocusRef),
43055
+ initialFocusRef: isEmailIdField ? (cov_25nnzrwa0x().b[7][0]++, null) : (cov_25nnzrwa0x().b[7][1]++, initialFocusRef),
43009
43056
  label: t("labels.subject"),
43010
43057
  name: "".concat(name, ".subject")
43011
43058
  })), /*#__PURE__*/React__default["default"].createElement(EditorAction, {
@@ -43013,7 +43060,7 @@ var EmailFields = function EmailFields(_ref) {
43013
43060
  name: "".concat(name, ".body"),
43014
43061
  value: (_action$metadata = action.metadata) === null || _action$metadata === void 0 ? void 0 : _action$metadata.body,
43015
43062
  variables: selectedField === null || selectedField === void 0 ? void 0 : selectedField.variables,
43016
- initialFocusRef: (cov_25nnzrwa0x().b[8][0]++, isEmailIdField) || (cov_25nnzrwa0x().b[8][1]++, !selectedField.hideSubject) ? (cov_25nnzrwa0x().b[7][0]++, null) : (cov_25nnzrwa0x().b[7][1]++, initialFocusRef)
43063
+ initialFocusRef: (cov_25nnzrwa0x().b[9][0]++, isEmailIdField) || (cov_25nnzrwa0x().b[9][1]++, !selectedField.hideSubject) ? (cov_25nnzrwa0x().b[8][0]++, null) : (cov_25nnzrwa0x().b[8][1]++, initialFocusRef)
43017
43064
  }))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Footer, {
43018
43065
  className: "flex items-center space-x-2"
43019
43066
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -43021,7 +43068,7 @@ var EmailFields = function EmailFields(_ref) {
43021
43068
  label: t("common.saveChange"),
43022
43069
  onClick: function onClick() {
43023
43070
  cov_25nnzrwa0x().f[5]++;
43024
- cov_25nnzrwa0x().s[12]++;
43071
+ cov_25nnzrwa0x().s[13]++;
43025
43072
  return setShowPane(false);
43026
43073
  }
43027
43074
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -43029,12 +43076,12 @@ var EmailFields = function EmailFields(_ref) {
43029
43076
  style: "text",
43030
43077
  onClick: function onClick() {
43031
43078
  cov_25nnzrwa0x().f[6]++;
43032
- cov_25nnzrwa0x().s[13]++;
43079
+ cov_25nnzrwa0x().s[14]++;
43033
43080
  return setShowPane(false);
43034
43081
  }
43035
43082
  }))));
43036
43083
  };
43037
- cov_25nnzrwa0x().s[14]++;
43084
+ cov_25nnzrwa0x().s[15]++;
43038
43085
 
43039
43086
  function cov_23z8cpnund() {
43040
43087
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/ActionSubItem/Fields/Input.jsx";
@@ -46926,7 +46973,7 @@ cov_1kb2dc1ax5().s[29]++;
46926
46973
 
46927
46974
  function cov_17c75usisi() {
46928
46975
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/ActionSubItem/Fields/NoteField.jsx";
46929
- var hash = "39bb1c86bd8589331af381439b9282f0449e814a";
46976
+ var hash = "b3342b80e51674625b102849c8c65b665dde062c";
46930
46977
  var global = new Function("return this")();
46931
46978
  var gcv = "__coverage__";
46932
46979
  var coverageData = {
@@ -46938,7 +46985,7 @@ function cov_17c75usisi() {
46938
46985
  column: 18
46939
46986
  },
46940
46987
  end: {
46941
- line: 90,
46988
+ line: 91,
46942
46989
  column: 1
46943
46990
  }
46944
46991
  },
@@ -47024,61 +47071,71 @@ function cov_17c75usisi() {
47024
47071
  },
47025
47072
  "9": {
47026
47073
  start: {
47027
- line: 26,
47074
+ line: 25,
47075
+ column: 23
47076
+ },
47077
+ end: {
47078
+ line: 25,
47079
+ column: 67
47080
+ }
47081
+ },
47082
+ "10": {
47083
+ start: {
47084
+ line: 27,
47028
47085
  column: 2
47029
47086
  },
47030
47087
  end: {
47031
- line: 89,
47088
+ line: 90,
47032
47089
  column: 4
47033
47090
  }
47034
47091
  },
47035
- "10": {
47092
+ "11": {
47036
47093
  start: {
47037
- line: 47,
47094
+ line: 48,
47038
47095
  column: 23
47039
47096
  },
47040
47097
  end: {
47041
- line: 47,
47098
+ line: 48,
47042
47099
  column: 59
47043
47100
  }
47044
47101
  },
47045
- "11": {
47102
+ "12": {
47046
47103
  start: {
47047
- line: 47,
47104
+ line: 48,
47048
47105
  column: 48
47049
47106
  },
47050
47107
  end: {
47051
- line: 47,
47108
+ line: 48,
47052
47109
  column: 58
47053
47110
  }
47054
47111
  },
47055
- "12": {
47112
+ "13": {
47056
47113
  start: {
47057
- line: 55,
47114
+ line: 56,
47058
47115
  column: 23
47059
47116
  },
47060
47117
  end: {
47061
- line: 55,
47118
+ line: 56,
47062
47119
  column: 41
47063
47120
  }
47064
47121
  },
47065
- "13": {
47122
+ "14": {
47066
47123
  start: {
47067
- line: 79,
47124
+ line: 80,
47068
47125
  column: 27
47069
47126
  },
47070
47127
  end: {
47071
- line: 79,
47128
+ line: 80,
47072
47129
  column: 45
47073
47130
  }
47074
47131
  },
47075
- "14": {
47132
+ "15": {
47076
47133
  start: {
47077
- line: 84,
47134
+ line: 85,
47078
47135
  column: 27
47079
47136
  },
47080
47137
  end: {
47081
- line: 84,
47138
+ line: 85,
47082
47139
  column: 45
47083
47140
  }
47084
47141
  }
@@ -47102,7 +47159,7 @@ function cov_17c75usisi() {
47102
47159
  column: 66
47103
47160
  },
47104
47161
  end: {
47105
- line: 90,
47162
+ line: 91,
47106
47163
  column: 1
47107
47164
  }
47108
47165
  },
@@ -47136,121 +47193,121 @@ function cov_17c75usisi() {
47136
47193
  name: "(anonymous_2)",
47137
47194
  decl: {
47138
47195
  start: {
47139
- line: 47,
47196
+ line: 48,
47140
47197
  column: 17
47141
47198
  },
47142
47199
  end: {
47143
- line: 47,
47200
+ line: 48,
47144
47201
  column: 18
47145
47202
  }
47146
47203
  },
47147
47204
  loc: {
47148
47205
  start: {
47149
- line: 47,
47206
+ line: 48,
47150
47207
  column: 23
47151
47208
  },
47152
47209
  end: {
47153
- line: 47,
47210
+ line: 48,
47154
47211
  column: 59
47155
47212
  }
47156
47213
  },
47157
- line: 47
47214
+ line: 48
47158
47215
  },
47159
47216
  "3": {
47160
47217
  name: "(anonymous_3)",
47161
47218
  decl: {
47162
47219
  start: {
47163
- line: 47,
47220
+ line: 48,
47164
47221
  column: 35
47165
47222
  },
47166
47223
  end: {
47167
- line: 47,
47224
+ line: 48,
47168
47225
  column: 36
47169
47226
  }
47170
47227
  },
47171
47228
  loc: {
47172
47229
  start: {
47173
- line: 47,
47230
+ line: 48,
47174
47231
  column: 48
47175
47232
  },
47176
47233
  end: {
47177
- line: 47,
47234
+ line: 48,
47178
47235
  column: 58
47179
47236
  }
47180
47237
  },
47181
- line: 47
47238
+ line: 48
47182
47239
  },
47183
47240
  "4": {
47184
47241
  name: "(anonymous_4)",
47185
47242
  decl: {
47186
47243
  start: {
47187
- line: 55,
47244
+ line: 56,
47188
47245
  column: 17
47189
47246
  },
47190
47247
  end: {
47191
- line: 55,
47248
+ line: 56,
47192
47249
  column: 18
47193
47250
  }
47194
47251
  },
47195
47252
  loc: {
47196
47253
  start: {
47197
- line: 55,
47254
+ line: 56,
47198
47255
  column: 23
47199
47256
  },
47200
47257
  end: {
47201
- line: 55,
47258
+ line: 56,
47202
47259
  column: 41
47203
47260
  }
47204
47261
  },
47205
- line: 55
47262
+ line: 56
47206
47263
  },
47207
47264
  "5": {
47208
47265
  name: "(anonymous_5)",
47209
47266
  decl: {
47210
47267
  start: {
47211
- line: 79,
47268
+ line: 80,
47212
47269
  column: 21
47213
47270
  },
47214
47271
  end: {
47215
- line: 79,
47272
+ line: 80,
47216
47273
  column: 22
47217
47274
  }
47218
47275
  },
47219
47276
  loc: {
47220
47277
  start: {
47221
- line: 79,
47278
+ line: 80,
47222
47279
  column: 27
47223
47280
  },
47224
47281
  end: {
47225
- line: 79,
47282
+ line: 80,
47226
47283
  column: 45
47227
47284
  }
47228
47285
  },
47229
- line: 79
47286
+ line: 80
47230
47287
  },
47231
47288
  "6": {
47232
47289
  name: "(anonymous_6)",
47233
47290
  decl: {
47234
47291
  start: {
47235
- line: 84,
47292
+ line: 85,
47236
47293
  column: 21
47237
47294
  },
47238
47295
  end: {
47239
- line: 84,
47296
+ line: 85,
47240
47297
  column: 22
47241
47298
  }
47242
47299
  },
47243
47300
  loc: {
47244
47301
  start: {
47245
- line: 84,
47302
+ line: 85,
47246
47303
  column: 27
47247
47304
  },
47248
47305
  end: {
47249
- line: 84,
47306
+ line: 85,
47250
47307
  column: 45
47251
47308
  }
47252
47309
  },
47253
- line: 84
47310
+ line: 85
47254
47311
  }
47255
47312
  },
47256
47313
  branchMap: {
@@ -47376,6 +47433,39 @@ function cov_17c75usisi() {
47376
47433
  }
47377
47434
  }],
47378
47435
  line: 24
47436
+ },
47437
+ "4": {
47438
+ loc: {
47439
+ start: {
47440
+ line: 25,
47441
+ column: 23
47442
+ },
47443
+ end: {
47444
+ line: 25,
47445
+ column: 67
47446
+ }
47447
+ },
47448
+ type: "binary-expr",
47449
+ locations: [{
47450
+ start: {
47451
+ line: 25,
47452
+ column: 23
47453
+ },
47454
+ end: {
47455
+ line: 25,
47456
+ column: 49
47457
+ }
47458
+ }, {
47459
+ start: {
47460
+ line: 25,
47461
+ column: 53
47462
+ },
47463
+ end: {
47464
+ line: 25,
47465
+ column: 67
47466
+ }
47467
+ }],
47468
+ line: 25
47379
47469
  }
47380
47470
  },
47381
47471
  s: {
@@ -47393,7 +47483,8 @@ function cov_17c75usisi() {
47393
47483
  "11": 0,
47394
47484
  "12": 0,
47395
47485
  "13": 0,
47396
- "14": 0
47486
+ "14": 0,
47487
+ "15": 0
47397
47488
  },
47398
47489
  f: {
47399
47490
  "0": 0,
@@ -47408,10 +47499,11 @@ function cov_17c75usisi() {
47408
47499
  "0": [0],
47409
47500
  "1": [0, 0],
47410
47501
  "2": [0, 0],
47411
- "3": [0, 0]
47502
+ "3": [0, 0],
47503
+ "4": [0, 0]
47412
47504
  },
47413
47505
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
47414
- hash: "39bb1c86bd8589331af381439b9282f0449e814a"
47506
+ hash: "b3342b80e51674625b102849c8c65b665dde062c"
47415
47507
  };
47416
47508
  var coverage = global[gcv] || (global[gcv] = {});
47417
47509
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -47452,7 +47544,8 @@ var NoteField = function NoteField(_ref) {
47452
47544
  var isValid = (cov_17c75usisi().s[6]++, (cov_17c75usisi().b[1][0]++, errors.actions) && (cov_17c75usisi().b[1][1]++, !ramda.isNil((_errors$actions = errors.actions) === null || _errors$actions === void 0 ? void 0 : _errors$actions.value[index])));
47453
47545
  var separator = (cov_17c75usisi().s[7]++, (cov_17c75usisi().b[2][0]++, selectedField === null || selectedField === void 0 ? void 0 : (_selectedField$separa = selectedField.separator) === null || _selectedField$separa === void 0 ? void 0 : _selectedField$separa.toLowerCase()) || (cov_17c75usisi().b[2][1]++, t("common.as")));
47454
47546
  var variables = (cov_17c75usisi().s[8]++, (cov_17c75usisi().b[3][0]++, selectedField === null || selectedField === void 0 ? void 0 : selectedField.variables) || (cov_17c75usisi().b[3][1]++, []));
47455
- cov_17c75usisi().s[9]++;
47547
+ var defaultLabel = (cov_17c75usisi().s[9]++, (cov_17c75usisi().b[4][0]++, selectedField === null || selectedField === void 0 ? void 0 : selectedField.placeholder) || (cov_17c75usisi().b[4][1]++, t("form.note")));
47548
+ cov_17c75usisi().s[10]++;
47456
47549
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
47457
47550
  className: "neeto-ui-text-gray-700",
47458
47551
  "data-cy": "note-action-separator-text",
@@ -47468,20 +47561,20 @@ var NoteField = function NoteField(_ref) {
47468
47561
  }),
47469
47562
  onClick: function onClick() {
47470
47563
  cov_17c75usisi().f[2]++;
47471
- cov_17c75usisi().s[10]++;
47564
+ cov_17c75usisi().s[11]++;
47472
47565
  return setShowPane(function (prevState) {
47473
47566
  cov_17c75usisi().f[3]++;
47474
- cov_17c75usisi().s[11]++;
47567
+ cov_17c75usisi().s[12]++;
47475
47568
  return !prevState;
47476
47569
  });
47477
47570
  }
47478
- }, t("form.note").toLowerCase()), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane, {
47571
+ }, defaultLabel.toLowerCase()), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane, {
47479
47572
  initialFocusRef: initialFocusRef,
47480
47573
  isOpen: showPane,
47481
47574
  size: "large",
47482
47575
  onClose: function onClose() {
47483
47576
  cov_17c75usisi().f[4]++;
47484
- cov_17c75usisi().s[12]++;
47577
+ cov_17c75usisi().s[13]++;
47485
47578
  return setShowPane(false);
47486
47579
  }
47487
47580
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Header, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
@@ -47489,7 +47582,7 @@ var NoteField = function NoteField(_ref) {
47489
47582
  "data-cy": "note-action-pane-header-title",
47490
47583
  style: "h3",
47491
47584
  weight: "semibold"
47492
- }, t("form.note"))), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement(EditorAction, {
47585
+ }, defaultLabel)), /*#__PURE__*/React__default["default"].createElement(neetoui.Pane.Body, null, /*#__PURE__*/React__default["default"].createElement(EditorAction, {
47493
47586
  initialFocusRef: initialFocusRef,
47494
47587
  name: name,
47495
47588
  value: value,
@@ -47501,7 +47594,7 @@ var NoteField = function NoteField(_ref) {
47501
47594
  label: t("common.saveChange"),
47502
47595
  onClick: function onClick() {
47503
47596
  cov_17c75usisi().f[5]++;
47504
- cov_17c75usisi().s[13]++;
47597
+ cov_17c75usisi().s[14]++;
47505
47598
  return setShowPane(false);
47506
47599
  }
47507
47600
  }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
@@ -47509,7 +47602,7 @@ var NoteField = function NoteField(_ref) {
47509
47602
  style: "text",
47510
47603
  onClick: function onClick() {
47511
47604
  cov_17c75usisi().f[6]++;
47512
- cov_17c75usisi().s[14]++;
47605
+ cov_17c75usisi().s[15]++;
47513
47606
  return setShowPane(false);
47514
47607
  }
47515
47608
  }))));
@@ -49866,7 +49959,7 @@ cov_1lt42kj0z1().s[2]++;
49866
49959
 
49867
49960
  function cov_1s0frck14v() {
49868
49961
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/Actions/index.jsx";
49869
- var hash = "fb0dcc17523aca85d6f8faab4a4f34c362f8fb75";
49962
+ var hash = "2fe3e6b7a4fd5bc351b1b0f406e03f8598c63dce";
49870
49963
  var global = new Function("return this")();
49871
49964
  var gcv = "__coverage__";
49872
49965
  var coverageData = {
@@ -49878,157 +49971,157 @@ function cov_1s0frck14v() {
49878
49971
  column: 16
49879
49972
  },
49880
49973
  end: {
49881
- line: 87,
49974
+ line: 89,
49882
49975
  column: 1
49883
49976
  }
49884
49977
  },
49885
49978
  "1": {
49886
49979
  start: {
49887
- line: 20,
49980
+ line: 21,
49888
49981
  column: 36
49889
49982
  },
49890
49983
  end: {
49891
- line: 20,
49984
+ line: 21,
49892
49985
  column: 54
49893
49986
  }
49894
49987
  },
49895
49988
  "2": {
49896
49989
  start: {
49897
- line: 22,
49990
+ line: 23,
49898
49991
  column: 23
49899
49992
  },
49900
49993
  end: {
49901
- line: 22,
49994
+ line: 23,
49902
49995
  column: 39
49903
49996
  }
49904
49997
  },
49905
49998
  "3": {
49906
49999
  start: {
49907
- line: 23,
50000
+ line: 24,
49908
50001
  column: 18
49909
50002
  },
49910
50003
  end: {
49911
- line: 23,
50004
+ line: 24,
49912
50005
  column: 42
49913
50006
  }
49914
50007
  },
49915
50008
  "4": {
49916
50009
  start: {
49917
- line: 25,
50010
+ line: 26,
49918
50011
  column: 21
49919
50012
  },
49920
50013
  end: {
49921
- line: 30,
50014
+ line: 32,
49922
50015
  column: 3
49923
50016
  }
49924
50017
  },
49925
50018
  "5": {
49926
50019
  start: {
49927
- line: 27,
50020
+ line: 28,
49928
50021
  column: 6
49929
50022
  },
49930
50023
  end: {
49931
- line: 28,
49932
- column: 58
50024
+ line: 30,
50025
+ column: 19
49933
50026
  }
49934
50027
  },
49935
50028
  "6": {
49936
50029
  start: {
49937
- line: 32,
50030
+ line: 34,
49938
50031
  column: 29
49939
50032
  },
49940
50033
  end: {
49941
- line: 40,
50034
+ line: 42,
49942
50035
  column: 3
49943
50036
  }
49944
50037
  },
49945
50038
  "7": {
49946
50039
  start: {
49947
- line: 33,
50040
+ line: 35,
49948
50041
  column: 4
49949
50042
  },
49950
50043
  end: {
49951
- line: 38,
50044
+ line: 40,
49952
50045
  column: 5
49953
50046
  }
49954
50047
  },
49955
50048
  "8": {
49956
50049
  start: {
49957
- line: 34,
50050
+ line: 36,
49958
50051
  column: 6
49959
50052
  },
49960
50053
  end: {
49961
- line: 37,
50054
+ line: 39,
49962
50055
  column: 9
49963
50056
  }
49964
50057
  },
49965
50058
  "9": {
49966
50059
  start: {
49967
- line: 39,
50060
+ line: 41,
49968
50061
  column: 4
49969
50062
  },
49970
50063
  end: {
49971
- line: 39,
50064
+ line: 41,
49972
50065
  column: 31
49973
50066
  }
49974
50067
  },
49975
50068
  "10": {
49976
50069
  start: {
49977
- line: 42,
50070
+ line: 44,
49978
50071
  column: 2
49979
50072
  },
49980
50073
  end: {
49981
- line: 86,
50074
+ line: 88,
49982
50075
  column: 4
49983
50076
  }
49984
50077
  },
49985
50078
  "11": {
49986
50079
  start: {
49987
- line: 46,
50080
+ line: 48,
49988
50081
  column: 10
49989
50082
  },
49990
50083
  end: {
49991
- line: 82,
50084
+ line: 84,
49992
50085
  column: 13
49993
50086
  }
49994
50087
  },
49995
50088
  "12": {
49996
50089
  start: {
49997
- line: 48,
50090
+ line: 50,
49998
50091
  column: 14
49999
50092
  },
50000
50093
  end: {
50001
- line: 80,
50094
+ line: 82,
50002
50095
  column: 20
50003
50096
  }
50004
50097
  },
50005
50098
  "13": {
50006
50099
  start: {
50007
- line: 65,
50100
+ line: 67,
50008
50101
  column: 37
50009
50102
  },
50010
50103
  end: {
50011
- line: 65,
50104
+ line: 67,
50012
50105
  column: 75
50013
50106
  }
50014
50107
  },
50015
50108
  "14": {
50016
50109
  start: {
50017
- line: 75,
50110
+ line: 77,
50018
50111
  column: 24
50019
50112
  },
50020
50113
  end: {
50021
- line: 75,
50114
+ line: 77,
50022
50115
  column: 71
50023
50116
  }
50024
50117
  },
50025
50118
  "15": {
50026
50119
  start: {
50027
- line: 89,
50120
+ line: 91,
50028
50121
  column: 0
50029
50122
  },
50030
50123
  end: {
50031
- line: 95,
50124
+ line: 97,
50032
50125
  column: 2
50033
50126
  }
50034
50127
  }
@@ -50048,280 +50141,313 @@ function cov_1s0frck14v() {
50048
50141
  },
50049
50142
  loc: {
50050
50143
  start: {
50051
- line: 19,
50144
+ line: 20,
50052
50145
  column: 6
50053
50146
  },
50054
50147
  end: {
50055
- line: 87,
50148
+ line: 89,
50056
50149
  column: 1
50057
50150
  }
50058
50151
  },
50059
- line: 19
50152
+ line: 20
50060
50153
  },
50061
50154
  "1": {
50062
50155
  name: "(anonymous_1)",
50063
50156
  decl: {
50064
50157
  start: {
50065
- line: 26,
50158
+ line: 27,
50066
50159
  column: 4
50067
50160
  },
50068
50161
  end: {
50069
- line: 26,
50162
+ line: 27,
50070
50163
  column: 5
50071
50164
  }
50072
50165
  },
50073
50166
  loc: {
50074
50167
  start: {
50075
- line: 27,
50168
+ line: 28,
50076
50169
  column: 6
50077
50170
  },
50078
50171
  end: {
50079
- line: 28,
50080
- column: 58
50172
+ line: 30,
50173
+ column: 19
50081
50174
  }
50082
50175
  },
50083
- line: 27
50176
+ line: 28
50084
50177
  },
50085
50178
  "2": {
50086
50179
  name: "(anonymous_2)",
50087
50180
  decl: {
50088
50181
  start: {
50089
- line: 32,
50182
+ line: 34,
50090
50183
  column: 29
50091
50184
  },
50092
50185
  end: {
50093
- line: 32,
50186
+ line: 34,
50094
50187
  column: 30
50095
50188
  }
50096
50189
  },
50097
50190
  loc: {
50098
50191
  start: {
50099
- line: 32,
50192
+ line: 34,
50100
50193
  column: 62
50101
50194
  },
50102
50195
  end: {
50103
- line: 40,
50196
+ line: 42,
50104
50197
  column: 3
50105
50198
  }
50106
50199
  },
50107
- line: 32
50200
+ line: 34
50108
50201
  },
50109
50202
  "3": {
50110
50203
  name: "(anonymous_3)",
50111
50204
  decl: {
50112
50205
  start: {
50113
- line: 45,
50206
+ line: 47,
50114
50207
  column: 9
50115
50208
  },
50116
50209
  end: {
50117
- line: 45,
50210
+ line: 47,
50118
50211
  column: 10
50119
50212
  }
50120
50213
  },
50121
50214
  loc: {
50122
50215
  start: {
50123
- line: 46,
50216
+ line: 48,
50124
50217
  column: 10
50125
50218
  },
50126
50219
  end: {
50127
- line: 82,
50220
+ line: 84,
50128
50221
  column: 13
50129
50222
  }
50130
50223
  },
50131
- line: 46
50224
+ line: 48
50132
50225
  },
50133
50226
  "4": {
50134
50227
  name: "(anonymous_4)",
50135
50228
  decl: {
50136
50229
  start: {
50137
- line: 47,
50230
+ line: 49,
50138
50231
  column: 25
50139
50232
  },
50140
50233
  end: {
50141
- line: 47,
50234
+ line: 49,
50142
50235
  column: 26
50143
50236
  }
50144
50237
  },
50145
50238
  loc: {
50146
50239
  start: {
50147
- line: 48,
50240
+ line: 50,
50148
50241
  column: 14
50149
50242
  },
50150
50243
  end: {
50151
- line: 80,
50244
+ line: 82,
50152
50245
  column: 20
50153
50246
  }
50154
50247
  },
50155
- line: 48
50248
+ line: 50
50156
50249
  },
50157
50250
  "5": {
50158
50251
  name: "(anonymous_5)",
50159
50252
  decl: {
50160
50253
  start: {
50161
- line: 65,
50254
+ line: 67,
50162
50255
  column: 31
50163
50256
  },
50164
50257
  end: {
50165
- line: 65,
50258
+ line: 67,
50166
50259
  column: 32
50167
50260
  }
50168
50261
  },
50169
50262
  loc: {
50170
50263
  start: {
50171
- line: 65,
50264
+ line: 67,
50172
50265
  column: 37
50173
50266
  },
50174
50267
  end: {
50175
- line: 65,
50268
+ line: 67,
50176
50269
  column: 75
50177
50270
  }
50178
50271
  },
50179
- line: 65
50272
+ line: 67
50180
50273
  },
50181
50274
  "6": {
50182
50275
  name: "(anonymous_6)",
50183
50276
  decl: {
50184
50277
  start: {
50185
- line: 74,
50278
+ line: 76,
50186
50279
  column: 31
50187
50280
  },
50188
50281
  end: {
50189
- line: 74,
50282
+ line: 76,
50190
50283
  column: 32
50191
50284
  }
50192
50285
  },
50193
50286
  loc: {
50194
50287
  start: {
50195
- line: 75,
50288
+ line: 77,
50196
50289
  column: 24
50197
50290
  },
50198
50291
  end: {
50199
- line: 75,
50292
+ line: 77,
50200
50293
  column: 71
50201
50294
  }
50202
50295
  },
50203
- line: 75
50296
+ line: 77
50204
50297
  }
50205
50298
  },
50206
50299
  branchMap: {
50207
50300
  "0": {
50208
50301
  loc: {
50209
50302
  start: {
50210
- line: 22,
50303
+ line: 19,
50304
+ column: 2
50305
+ },
50306
+ end: {
50307
+ line: 19,
50308
+ column: 22
50309
+ }
50310
+ },
50311
+ type: "default-arg",
50312
+ locations: [{
50313
+ start: {
50314
+ line: 19,
50315
+ column: 18
50316
+ },
50317
+ end: {
50318
+ line: 19,
50319
+ column: 22
50320
+ }
50321
+ }],
50322
+ line: 19
50323
+ },
50324
+ "1": {
50325
+ loc: {
50326
+ start: {
50327
+ line: 23,
50211
50328
  column: 23
50212
50329
  },
50213
50330
  end: {
50214
- line: 22,
50331
+ line: 23,
50215
50332
  column: 39
50216
50333
  }
50217
50334
  },
50218
50335
  type: "binary-expr",
50219
50336
  locations: [{
50220
50337
  start: {
50221
- line: 22,
50338
+ line: 23,
50222
50339
  column: 23
50223
50340
  },
50224
50341
  end: {
50225
- line: 22,
50342
+ line: 23,
50226
50343
  column: 33
50227
50344
  }
50228
50345
  }, {
50229
50346
  start: {
50230
- line: 22,
50347
+ line: 23,
50231
50348
  column: 37
50232
50349
  },
50233
50350
  end: {
50234
- line: 22,
50351
+ line: 23,
50235
50352
  column: 39
50236
50353
  }
50237
50354
  }],
50238
- line: 22
50355
+ line: 23
50239
50356
  },
50240
- "1": {
50357
+ "2": {
50241
50358
  loc: {
50242
50359
  start: {
50243
- line: 23,
50360
+ line: 24,
50244
50361
  column: 18
50245
50362
  },
50246
50363
  end: {
50247
- line: 23,
50364
+ line: 24,
50248
50365
  column: 42
50249
50366
  }
50250
50367
  },
50251
50368
  type: "binary-expr",
50252
50369
  locations: [{
50253
50370
  start: {
50254
- line: 23,
50371
+ line: 24,
50255
50372
  column: 18
50256
50373
  },
50257
50374
  end: {
50258
- line: 23,
50375
+ line: 24,
50259
50376
  column: 36
50260
50377
  }
50261
50378
  }, {
50262
50379
  start: {
50263
- line: 23,
50380
+ line: 24,
50264
50381
  column: 40
50265
50382
  },
50266
50383
  end: {
50267
- line: 23,
50384
+ line: 24,
50268
50385
  column: 42
50269
50386
  }
50270
50387
  }],
50271
- line: 23
50388
+ line: 24
50272
50389
  },
50273
- "2": {
50390
+ "3": {
50274
50391
  loc: {
50275
50392
  start: {
50276
- line: 27,
50393
+ line: 28,
50277
50394
  column: 6
50278
50395
  },
50279
50396
  end: {
50280
- line: 28,
50281
- column: 58
50397
+ line: 30,
50398
+ column: 19
50282
50399
  }
50283
50400
  },
50284
50401
  type: "binary-expr",
50285
50402
  locations: [{
50286
50403
  start: {
50287
- line: 27,
50404
+ line: 28,
50288
50405
  column: 6
50289
50406
  },
50290
50407
  end: {
50291
- line: 27,
50292
- column: 41
50408
+ line: 28,
50409
+ column: 42
50293
50410
  }
50294
50411
  }, {
50295
50412
  start: {
50296
- line: 28,
50413
+ line: 29,
50297
50414
  column: 6
50298
50415
  },
50299
50416
  end: {
50300
- line: 28,
50417
+ line: 29,
50301
50418
  column: 58
50302
50419
  }
50420
+ }, {
50421
+ start: {
50422
+ line: 30,
50423
+ column: 6
50424
+ },
50425
+ end: {
50426
+ line: 30,
50427
+ column: 19
50428
+ }
50303
50429
  }],
50304
- line: 27
50430
+ line: 28
50305
50431
  },
50306
- "3": {
50432
+ "4": {
50307
50433
  loc: {
50308
50434
  start: {
50309
- line: 33,
50435
+ line: 35,
50310
50436
  column: 4
50311
50437
  },
50312
50438
  end: {
50313
- line: 38,
50439
+ line: 40,
50314
50440
  column: 5
50315
50441
  }
50316
50442
  },
50317
50443
  type: "if",
50318
50444
  locations: [{
50319
50445
  start: {
50320
- line: 33,
50446
+ line: 35,
50321
50447
  column: 4
50322
50448
  },
50323
50449
  end: {
50324
- line: 38,
50450
+ line: 40,
50325
50451
  column: 5
50326
50452
  }
50327
50453
  }, {
@@ -50334,148 +50460,148 @@ function cov_1s0frck14v() {
50334
50460
  column: undefined
50335
50461
  }
50336
50462
  }],
50337
- line: 33
50463
+ line: 35
50338
50464
  },
50339
- "4": {
50465
+ "5": {
50340
50466
  loc: {
50341
50467
  start: {
50342
- line: 35,
50468
+ line: 37,
50343
50469
  column: 12
50344
50470
  },
50345
50471
  end: {
50346
- line: 35,
50472
+ line: 37,
50347
50473
  column: 38
50348
50474
  }
50349
50475
  },
50350
50476
  type: "binary-expr",
50351
50477
  locations: [{
50352
50478
  start: {
50353
- line: 35,
50479
+ line: 37,
50354
50480
  column: 12
50355
50481
  },
50356
50482
  end: {
50357
- line: 35,
50483
+ line: 37,
50358
50484
  column: 32
50359
50485
  }
50360
50486
  }, {
50361
50487
  start: {
50362
- line: 35,
50488
+ line: 37,
50363
50489
  column: 36
50364
50490
  },
50365
50491
  end: {
50366
- line: 35,
50492
+ line: 37,
50367
50493
  column: 38
50368
50494
  }
50369
50495
  }],
50370
- line: 35
50496
+ line: 37
50371
50497
  },
50372
- "5": {
50498
+ "6": {
50373
50499
  loc: {
50374
50500
  start: {
50375
- line: 43,
50501
+ line: 45,
50376
50502
  column: 17
50377
50503
  },
50378
50504
  end: {
50379
- line: 43,
50505
+ line: 45,
50380
50506
  column: 45
50381
50507
  }
50382
50508
  },
50383
50509
  type: "binary-expr",
50384
50510
  locations: [{
50385
50511
  start: {
50386
- line: 43,
50512
+ line: 45,
50387
50513
  column: 17
50388
50514
  },
50389
50515
  end: {
50390
- line: 43,
50516
+ line: 45,
50391
50517
  column: 22
50392
50518
  }
50393
50519
  }, {
50394
50520
  start: {
50395
- line: 43,
50521
+ line: 45,
50396
50522
  column: 26
50397
50523
  },
50398
50524
  end: {
50399
- line: 43,
50525
+ line: 45,
50400
50526
  column: 45
50401
50527
  }
50402
50528
  }],
50403
- line: 43
50529
+ line: 45
50404
50530
  },
50405
- "6": {
50531
+ "7": {
50406
50532
  loc: {
50407
50533
  start: {
50408
- line: 59,
50534
+ line: 61,
50409
50535
  column: 19
50410
50536
  },
50411
50537
  end: {
50412
- line: 67,
50538
+ line: 69,
50413
50539
  column: 19
50414
50540
  }
50415
50541
  },
50416
50542
  type: "binary-expr",
50417
50543
  locations: [{
50418
50544
  start: {
50419
- line: 59,
50545
+ line: 61,
50420
50546
  column: 19
50421
50547
  },
50422
50548
  end: {
50423
- line: 59,
50549
+ line: 61,
50424
50550
  column: 29
50425
50551
  }
50426
50552
  }, {
50427
50553
  start: {
50428
- line: 59,
50554
+ line: 61,
50429
50555
  column: 33
50430
50556
  },
50431
50557
  end: {
50432
- line: 59,
50558
+ line: 61,
50433
50559
  column: 61
50434
50560
  }
50435
50561
  }, {
50436
50562
  start: {
50437
- line: 60,
50563
+ line: 62,
50438
50564
  column: 20
50439
50565
  },
50440
50566
  end: {
50441
- line: 66,
50567
+ line: 68,
50442
50568
  column: 22
50443
50569
  }
50444
50570
  }],
50445
- line: 59
50571
+ line: 61
50446
50572
  },
50447
- "7": {
50573
+ "8": {
50448
50574
  loc: {
50449
50575
  start: {
50450
- line: 68,
50576
+ line: 70,
50451
50577
  column: 19
50452
50578
  },
50453
50579
  end: {
50454
- line: 78,
50580
+ line: 80,
50455
50581
  column: 19
50456
50582
  }
50457
50583
  },
50458
50584
  type: "binary-expr",
50459
50585
  locations: [{
50460
50586
  start: {
50461
- line: 68,
50587
+ line: 70,
50462
50588
  column: 19
50463
50589
  },
50464
50590
  end: {
50465
- line: 68,
50591
+ line: 70,
50466
50592
  column: 37
50467
50593
  }
50468
50594
  }, {
50469
50595
  start: {
50470
- line: 69,
50596
+ line: 71,
50471
50597
  column: 20
50472
50598
  },
50473
50599
  end: {
50474
- line: 77,
50600
+ line: 79,
50475
50601
  column: 22
50476
50602
  }
50477
50603
  }],
50478
- line: 68
50604
+ line: 70
50479
50605
  }
50480
50606
  },
50481
50607
  s: {
@@ -50506,17 +50632,18 @@ function cov_1s0frck14v() {
50506
50632
  "6": 0
50507
50633
  },
50508
50634
  b: {
50509
- "0": [0, 0],
50635
+ "0": [0],
50510
50636
  "1": [0, 0],
50511
50637
  "2": [0, 0],
50512
- "3": [0, 0],
50638
+ "3": [0, 0, 0],
50513
50639
  "4": [0, 0],
50514
50640
  "5": [0, 0],
50515
- "6": [0, 0, 0],
50516
- "7": [0, 0]
50641
+ "6": [0, 0],
50642
+ "7": [0, 0, 0],
50643
+ "8": [0, 0]
50517
50644
  },
50518
50645
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
50519
- hash: "fb0dcc17523aca85d6f8faab4a4f34c362f8fb75"
50646
+ hash: "2fe3e6b7a4fd5bc351b1b0f406e03f8598c63dce"
50520
50647
  };
50521
50648
  var coverage = global[gcv] || (global[gcv] = {});
50522
50649
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -50540,37 +50667,40 @@ var Actions = function Actions(_ref) {
50540
50667
  label = _ref.label,
50541
50668
  data = _ref.data,
50542
50669
  onSelectAction = _ref.onSelectAction,
50543
- selectedActionOptions = _ref.selectedActionOptions;
50670
+ selectedActionOptions = _ref.selectedActionOptions,
50671
+ _ref$showAddButton = _ref.showAddButton,
50672
+ showAddButton = _ref$showAddButton === void 0 ? (cov_1s0frck14v().b[0][0]++, true) : _ref$showAddButton;
50544
50673
  cov_1s0frck14v().f[0]++;
50545
50674
  var _ref2 = (cov_1s0frck14v().s[1]++, formik.useFormikContext()),
50546
50675
  values = _ref2.values,
50547
50676
  setFieldValue = _ref2.setFieldValue;
50548
- var elementProps = (cov_1s0frck14v().s[2]++, (cov_1s0frck14v().b[0][0]++, data[name]) || (cov_1s0frck14v().b[0][1]++, {}));
50549
- var actions = (cov_1s0frck14v().s[3]++, (cov_1s0frck14v().b[1][0]++, values[name].value) || (cov_1s0frck14v().b[1][1]++, []));
50677
+ var elementProps = (cov_1s0frck14v().s[2]++, (cov_1s0frck14v().b[1][0]++, data[name]) || (cov_1s0frck14v().b[1][1]++, {}));
50678
+ var actions = (cov_1s0frck14v().s[3]++, (cov_1s0frck14v().b[2][0]++, values[name].value) || (cov_1s0frck14v().b[2][1]++, []));
50550
50679
  var showButton = (cov_1s0frck14v().s[4]++, React.useMemo(function () {
50680
+ var _actions;
50551
50681
  cov_1s0frck14v().f[1]++;
50552
50682
  cov_1s0frck14v().s[5]++;
50553
- return (cov_1s0frck14v().b[2][0]++, !!actions[(actions === null || actions === void 0 ? void 0 : actions.length) - 1].name) && (cov_1s0frck14v().b[2][1]++, elementProps.actionOptions.length !== actions.length);
50683
+ return (cov_1s0frck14v().b[3][0]++, !!((_actions = actions[(actions === null || actions === void 0 ? void 0 : actions.length) - 1]) !== null && _actions !== void 0 && _actions.name)) && (cov_1s0frck14v().b[3][1]++, elementProps.actionOptions.length !== actions.length) && (cov_1s0frck14v().b[3][2]++, showAddButton);
50554
50684
  }, [actions]));
50555
50685
  cov_1s0frck14v().s[6]++;
50556
50686
  var handleRemoveAction = function handleRemoveAction(index, action, arrayHelpers) {
50557
50687
  cov_1s0frck14v().f[2]++;
50558
50688
  cov_1s0frck14v().s[7]++;
50559
50689
  if (action.id) {
50560
- cov_1s0frck14v().b[3][0]++;
50690
+ cov_1s0frck14v().b[4][0]++;
50561
50691
  cov_1s0frck14v().s[8]++;
50562
- setFieldValue("".concat(name, ".deleted"), [].concat(_toConsumableArray((cov_1s0frck14v().b[4][0]++, values[name].deleted) || (cov_1s0frck14v().b[4][1]++, [])), [_objectSpread$3(_objectSpread$3({}, action), {}, {
50692
+ setFieldValue("".concat(name, ".deleted"), [].concat(_toConsumableArray((cov_1s0frck14v().b[5][0]++, values[name].deleted) || (cov_1s0frck14v().b[5][1]++, [])), [_objectSpread$3(_objectSpread$3({}, action), {}, {
50563
50693
  _destroy: true
50564
50694
  })]));
50565
50695
  } else {
50566
- cov_1s0frck14v().b[3][1]++;
50696
+ cov_1s0frck14v().b[4][1]++;
50567
50697
  }
50568
50698
  cov_1s0frck14v().s[9]++;
50569
50699
  arrayHelpers.remove(index);
50570
50700
  };
50571
50701
  cov_1s0frck14v().s[10]++;
50572
50702
  return /*#__PURE__*/React__default["default"].createElement(Card, {
50573
- title: (cov_1s0frck14v().b[5][0]++, label) || (cov_1s0frck14v().b[5][1]++, elementProps === null || elementProps === void 0 ? void 0 : elementProps.label)
50703
+ title: (cov_1s0frck14v().b[6][0]++, label) || (cov_1s0frck14v().b[6][1]++, elementProps === null || elementProps === void 0 ? void 0 : elementProps.label)
50574
50704
  }, /*#__PURE__*/React__default["default"].createElement(formik.FieldArray, {
50575
50705
  name: "".concat(name, ".value")
50576
50706
  }, function (arrayHelpers) {
@@ -50592,7 +50722,7 @@ var Actions = function Actions(_ref) {
50592
50722
  onSelectAction: onSelectAction
50593
50723
  }), /*#__PURE__*/React__default["default"].createElement("div", {
50594
50724
  className: "-mx-1 flex flex-wrap"
50595
- }, (cov_1s0frck14v().b[6][0]++, showButton) && (cov_1s0frck14v().b[6][1]++, index === actions.length - 1) && (cov_1s0frck14v().b[6][2]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
50725
+ }, (cov_1s0frck14v().b[7][0]++, showButton) && (cov_1s0frck14v().b[7][1]++, index === actions.length - 1) && (cov_1s0frck14v().b[7][2]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
50596
50726
  "data-cy": "add-action-button",
50597
50727
  icon: neetoIcons.Plus,
50598
50728
  size: 24,
@@ -50602,7 +50732,7 @@ var Actions = function Actions(_ref) {
50602
50732
  cov_1s0frck14v().s[13]++;
50603
50733
  return arrayHelpers.push(DEFAULT_RULE_ACTION);
50604
50734
  }
50605
- })), (cov_1s0frck14v().b[7][0]++, actions.length > 1) && (cov_1s0frck14v().b[7][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
50735
+ })), (cov_1s0frck14v().b[8][0]++, actions.length > 1) && (cov_1s0frck14v().b[8][1]++, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
50606
50736
  "data-cy": "delete-action-button",
50607
50737
  icon: neetoIcons.Delete,
50608
50738
  size: 24,