@bigbinary/neeto-rules-frontend 0.1.1 → 0.1.2

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.js CHANGED
@@ -5747,16 +5747,8 @@ var common$1 = {
5747
5747
  actions: "Actions",
5748
5748
  saveChange: "Save changes",
5749
5749
  value: "Value",
5750
- integer: "integer",
5751
- number: "number",
5752
5750
  email: "Email",
5753
- field: "Field",
5754
- verb: "Verb",
5755
- tag: "tag",
5756
- option: "option",
5757
5751
  action: "Action",
5758
- content: "Content",
5759
- ruleName: "Rule name",
5760
5752
  addItem: "Add Item",
5761
5753
  emailId: "Email id",
5762
5754
  emailIds: "Email ids",
@@ -5770,24 +5762,17 @@ var common$1 = {
5770
5762
  or: "or",
5771
5763
  search: "Search",
5772
5764
  as: "as",
5773
- on: "on",
5774
5765
  "delete": "Delete"
5775
5766
  };
5776
5767
  var form = {
5777
5768
  noEvents: "A rule without events will run hourly.",
5778
- chooseEvent: "Choose event",
5779
5769
  addEvent: "Add Event",
5780
- preview: "Preview",
5781
5770
  noCondition: "No tickets matching specified conditions",
5782
- addLogicBlock: "Add Logic Block",
5783
- eventPerformer: "Events Performer",
5784
5771
  subjectText: "Will be generated from the ticket's subject.",
5785
5772
  note: "Note",
5786
- message: "Message",
5787
5773
  thisHappens: "this happens",
5788
5774
  addValue: "add value",
5789
5775
  doThis: "do this",
5790
- addEmails: "add emails",
5791
5776
  selectValues: "select values",
5792
5777
  selectValue: "select value",
5793
5778
  list: "List",
@@ -5797,7 +5782,6 @@ var form = {
5797
5782
  selectDate: "Select date"
5798
5783
  };
5799
5784
  var labels = {
5800
- manageTags: "Manage tags",
5801
5785
  body: "Body",
5802
5786
  selectValues: "Select values",
5803
5787
  multipleValues: "Multiple values",
@@ -5879,17 +5863,13 @@ var labels = {
5879
5863
  checked: "Checked",
5880
5864
  unchecked: "Unchecked"
5881
5865
  };
5882
- var alerts$1 = {
5883
- };
5884
5866
  var placeholders$1 = {
5885
5867
  "if": "If",
5886
- "in": "In",
5887
5868
  multiSelect: "Example: urgent, billing",
5888
5869
  select: "Select",
5889
5870
  emailField: "Type email and press enter",
5890
5871
  selectTags: "Select Tags",
5891
5872
  selectOption: "Select option",
5892
- chooseAction: "Choose action",
5893
5873
  value: "Value"
5894
5874
  };
5895
5875
  var buttons$1 = {
@@ -5910,7 +5890,6 @@ var validations$1 = {
5910
5890
  name: "Name is required",
5911
5891
  subject: "Subject is required",
5912
5892
  content: "Content is required",
5913
- number: "Number is required",
5914
5893
  decimal: "Decimal is required",
5915
5894
  url: "URL is required",
5916
5895
  body: "Body is required"
@@ -5925,7 +5904,6 @@ var validations$1 = {
5925
5904
  tag: "At least one tag is required"
5926
5905
  },
5927
5906
  atLeastOneValue: "At least one value is required",
5928
- cantBeEmpty: "Can't be empty",
5929
5907
  emailList: "Please make sure all emails are valid.",
5930
5908
  positiveInteger: "Value must be a positive integer.",
5931
5909
  positiveNumber: "Value must be a positive number.",
@@ -5933,18 +5911,7 @@ var validations$1 = {
5933
5911
  slack: {
5934
5912
  invalidChannel: "Could not connect to the channel, please select other options.",
5935
5913
  errorInIntegration: "Could not connect to Slack! Please check the integration or remove this action otherwise the automation rule will not be able to function as intended."
5936
- },
5937
- number: "Value must be a number."
5938
- };
5939
- var navLinkLabels = {
5940
- profile: "Profile",
5941
- organizationSettings: "Organization Settings",
5942
- logout: "Logout",
5943
- tickets: "Tickets",
5944
- settings: "Settings",
5945
- reports: "Reports",
5946
- members: "Members",
5947
- customers: "Customers"
5914
+ }
5948
5915
  };
5949
5916
  var conditionVerbs = {
5950
5917
  is: "Is",
@@ -6047,11 +6014,9 @@ var en = {
6047
6014
  common: common$1,
6048
6015
  form: form,
6049
6016
  labels: labels,
6050
- alerts: alerts$1,
6051
6017
  placeholders: placeholders$1,
6052
6018
  buttons: buttons$1,
6053
6019
  validations: validations$1,
6054
- navLinkLabels: navLinkLabels,
6055
6020
  conditionVerbs: conditionVerbs,
6056
6021
  operators: operators,
6057
6022
  note: note,
@@ -62551,7 +62516,7 @@ cov_1rz7url808().s[31]++;
62551
62516
 
62552
62517
  function cov_2kupegl7ql() {
62553
62518
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/EventConditions/Events.jsx";
62554
- var hash = "48007c5a85192891755b1b9f88b45e5d9cb5aa6b";
62519
+ var hash = "23483456014f72294d9cd81bf25d9ebd1044ebf1";
62555
62520
  var global = new Function("return this")();
62556
62521
  var gcv = "__coverage__";
62557
62522
  var coverageData = {
@@ -62573,7 +62538,7 @@ function cov_2kupegl7ql() {
62573
62538
  column: 15
62574
62539
  },
62575
62540
  end: {
62576
- line: 246,
62541
+ line: 247,
62577
62542
  column: 1
62578
62543
  }
62579
62544
  },
@@ -62823,7 +62788,7 @@ function cov_2kupegl7ql() {
62823
62788
  column: 34
62824
62789
  },
62825
62790
  end: {
62826
- line: 86,
62791
+ line: 87,
62827
62792
  column: 3
62828
62793
  }
62829
62794
  },
@@ -62964,27 +62929,27 @@ function cov_2kupegl7ql() {
62964
62929
  },
62965
62930
  end: {
62966
62931
  line: 85,
62967
- column: 44
62932
+ column: 35
62968
62933
  }
62969
62934
  },
62970
62935
  "41": {
62971
62936
  start: {
62972
- line: 88,
62973
- column: 22
62937
+ line: 86,
62938
+ column: 4
62974
62939
  },
62975
62940
  end: {
62976
- line: 91,
62977
- column: 3
62941
+ line: 86,
62942
+ column: 44
62978
62943
  }
62979
62944
  },
62980
62945
  "42": {
62981
62946
  start: {
62982
62947
  line: 89,
62983
- column: 4
62948
+ column: 22
62984
62949
  },
62985
62950
  end: {
62986
- line: 89,
62987
- column: 26
62951
+ line: 92,
62952
+ column: 3
62988
62953
  }
62989
62954
  },
62990
62955
  "43": {
@@ -62994,106 +62959,116 @@ function cov_2kupegl7ql() {
62994
62959
  },
62995
62960
  end: {
62996
62961
  line: 90,
62997
- column: 22
62962
+ column: 26
62998
62963
  }
62999
62964
  },
63000
62965
  "44": {
63001
62966
  start: {
63002
- line: 93,
62967
+ line: 91,
62968
+ column: 4
62969
+ },
62970
+ end: {
62971
+ line: 91,
62972
+ column: 22
62973
+ }
62974
+ },
62975
+ "45": {
62976
+ start: {
62977
+ line: 94,
63003
62978
  column: 2
63004
62979
  },
63005
62980
  end: {
63006
- line: 245,
62981
+ line: 246,
63007
62982
  column: 4
63008
62983
  }
63009
62984
  },
63010
- "45": {
62985
+ "46": {
63011
62986
  start: {
63012
- line: 104,
62987
+ line: 105,
63013
62988
  column: 10
63014
62989
  },
63015
62990
  end: {
63016
- line: 171,
62991
+ line: 172,
63017
62992
  column: 27
63018
62993
  }
63019
62994
  },
63020
- "46": {
62995
+ "47": {
63021
62996
  start: {
63022
- line: 130,
62997
+ line: 131,
63023
62998
  column: 20
63024
62999
  },
63025
63000
  end: {
63026
- line: 130,
63001
+ line: 131,
63027
63002
  column: 70
63028
63003
  }
63029
63004
  },
63030
- "47": {
63005
+ "48": {
63031
63006
  start: {
63032
- line: 146,
63007
+ line: 147,
63033
63008
  column: 35
63034
63009
  },
63035
63010
  end: {
63036
- line: 146,
63011
+ line: 147,
63037
63012
  column: 64
63038
63013
  }
63039
63014
  },
63040
- "48": {
63015
+ "49": {
63041
63016
  start: {
63042
- line: 153,
63017
+ line: 154,
63043
63018
  column: 20
63044
63019
  },
63045
63020
  end: {
63046
- line: 166,
63021
+ line: 167,
63047
63022
  column: 38
63048
63023
  }
63049
63024
  },
63050
- "49": {
63025
+ "50": {
63051
63026
  start: {
63052
- line: 163,
63027
+ line: 164,
63053
63028
  column: 37
63054
63029
  },
63055
63030
  end: {
63056
- line: 163,
63031
+ line: 164,
63057
63032
  column: 68
63058
63033
  }
63059
63034
  },
63060
- "50": {
63035
+ "51": {
63061
63036
  start: {
63062
- line: 192,
63037
+ line: 193,
63063
63038
  column: 16
63064
63039
  },
63065
63040
  end: {
63066
- line: 192,
63041
+ line: 193,
63067
63042
  column: 67
63068
63043
  }
63069
63044
  },
63070
- "51": {
63045
+ "52": {
63071
63046
  start: {
63072
- line: 208,
63047
+ line: 209,
63073
63048
  column: 31
63074
63049
  },
63075
63050
  end: {
63076
- line: 208,
63051
+ line: 209,
63077
63052
  column: 60
63078
63053
  }
63079
63054
  },
63080
- "52": {
63055
+ "53": {
63081
63056
  start: {
63082
- line: 215,
63057
+ line: 216,
63083
63058
  column: 16
63084
63059
  },
63085
63060
  end: {
63086
- line: 228,
63061
+ line: 229,
63087
63062
  column: 34
63088
63063
  }
63089
63064
  },
63090
- "53": {
63065
+ "54": {
63091
63066
  start: {
63092
- line: 225,
63067
+ line: 226,
63093
63068
  column: 33
63094
63069
  },
63095
63070
  end: {
63096
- line: 225,
63071
+ line: 226,
63097
63072
  column: 64
63098
63073
  }
63099
63074
  }
@@ -63114,10 +63089,10 @@ function cov_2kupegl7ql() {
63114
63089
  loc: {
63115
63090
  start: {
63116
63091
  line: 20,
63117
- column: 50
63092
+ column: 65
63118
63093
  },
63119
63094
  end: {
63120
- line: 246,
63095
+ line: 247,
63121
63096
  column: 1
63122
63097
  }
63123
63098
  },
@@ -63165,7 +63140,7 @@ function cov_2kupegl7ql() {
63165
63140
  column: 44
63166
63141
  },
63167
63142
  end: {
63168
- line: 86,
63143
+ line: 87,
63169
63144
  column: 3
63170
63145
  }
63171
63146
  },
@@ -63175,241 +63150,241 @@ function cov_2kupegl7ql() {
63175
63150
  name: "(anonymous_3)",
63176
63151
  decl: {
63177
63152
  start: {
63178
- line: 88,
63153
+ line: 89,
63179
63154
  column: 22
63180
63155
  },
63181
63156
  end: {
63182
- line: 88,
63157
+ line: 89,
63183
63158
  column: 23
63184
63159
  }
63185
63160
  },
63186
63161
  loc: {
63187
63162
  start: {
63188
- line: 88,
63163
+ line: 89,
63189
63164
  column: 28
63190
63165
  },
63191
63166
  end: {
63192
- line: 91,
63167
+ line: 92,
63193
63168
  column: 3
63194
63169
  }
63195
63170
  },
63196
- line: 88
63171
+ line: 89
63197
63172
  },
63198
63173
  "4": {
63199
63174
  name: "(anonymous_4)",
63200
63175
  decl: {
63201
63176
  start: {
63202
- line: 103,
63177
+ line: 104,
63203
63178
  column: 22
63204
63179
  },
63205
63180
  end: {
63206
- line: 103,
63181
+ line: 104,
63207
63182
  column: 23
63208
63183
  }
63209
63184
  },
63210
63185
  loc: {
63211
63186
  start: {
63212
- line: 104,
63187
+ line: 105,
63213
63188
  column: 10
63214
63189
  },
63215
63190
  end: {
63216
- line: 171,
63191
+ line: 172,
63217
63192
  column: 27
63218
63193
  }
63219
63194
  },
63220
- line: 104
63195
+ line: 105
63221
63196
  },
63222
63197
  "5": {
63223
63198
  name: "(anonymous_5)",
63224
63199
  decl: {
63225
63200
  start: {
63226
- line: 129,
63201
+ line: 130,
63227
63202
  column: 27
63228
63203
  },
63229
63204
  end: {
63230
- line: 129,
63205
+ line: 130,
63231
63206
  column: 28
63232
63207
  }
63233
63208
  },
63234
63209
  loc: {
63235
63210
  start: {
63236
- line: 130,
63211
+ line: 131,
63237
63212
  column: 20
63238
63213
  },
63239
63214
  end: {
63240
- line: 130,
63215
+ line: 131,
63241
63216
  column: 70
63242
63217
  }
63243
63218
  },
63244
- line: 130
63219
+ line: 131
63245
63220
  },
63246
63221
  "6": {
63247
63222
  name: "(anonymous_6)",
63248
63223
  decl: {
63249
63224
  start: {
63250
- line: 146,
63225
+ line: 147,
63251
63226
  column: 30
63252
63227
  },
63253
63228
  end: {
63254
- line: 146,
63229
+ line: 147,
63255
63230
  column: 31
63256
63231
  }
63257
63232
  },
63258
63233
  loc: {
63259
63234
  start: {
63260
- line: 146,
63235
+ line: 147,
63261
63236
  column: 35
63262
63237
  },
63263
63238
  end: {
63264
- line: 146,
63239
+ line: 147,
63265
63240
  column: 64
63266
63241
  }
63267
63242
  },
63268
- line: 146
63243
+ line: 147
63269
63244
  },
63270
63245
  "7": {
63271
63246
  name: "(anonymous_7)",
63272
63247
  decl: {
63273
63248
  start: {
63274
- line: 152,
63249
+ line: 153,
63275
63250
  column: 39
63276
63251
  },
63277
63252
  end: {
63278
- line: 152,
63253
+ line: 153,
63279
63254
  column: 40
63280
63255
  }
63281
63256
  },
63282
63257
  loc: {
63283
63258
  start: {
63284
- line: 153,
63259
+ line: 154,
63285
63260
  column: 20
63286
63261
  },
63287
63262
  end: {
63288
- line: 166,
63263
+ line: 167,
63289
63264
  column: 38
63290
63265
  }
63291
63266
  },
63292
- line: 153
63267
+ line: 154
63293
63268
  },
63294
63269
  "8": {
63295
63270
  name: "(anonymous_8)",
63296
63271
  decl: {
63297
63272
  start: {
63298
- line: 163,
63273
+ line: 164,
63299
63274
  column: 31
63300
63275
  },
63301
63276
  end: {
63302
- line: 163,
63277
+ line: 164,
63303
63278
  column: 32
63304
63279
  }
63305
63280
  },
63306
63281
  loc: {
63307
63282
  start: {
63308
- line: 163,
63283
+ line: 164,
63309
63284
  column: 37
63310
63285
  },
63311
63286
  end: {
63312
- line: 163,
63287
+ line: 164,
63313
63288
  column: 68
63314
63289
  }
63315
63290
  },
63316
- line: 163
63291
+ line: 164
63317
63292
  },
63318
63293
  "9": {
63319
63294
  name: "(anonymous_9)",
63320
63295
  decl: {
63321
63296
  start: {
63322
- line: 191,
63297
+ line: 192,
63323
63298
  column: 23
63324
63299
  },
63325
63300
  end: {
63326
- line: 191,
63301
+ line: 192,
63327
63302
  column: 24
63328
63303
  }
63329
63304
  },
63330
63305
  loc: {
63331
63306
  start: {
63332
- line: 192,
63307
+ line: 193,
63333
63308
  column: 16
63334
63309
  },
63335
63310
  end: {
63336
- line: 192,
63311
+ line: 193,
63337
63312
  column: 67
63338
63313
  }
63339
63314
  },
63340
- line: 192
63315
+ line: 193
63341
63316
  },
63342
63317
  "10": {
63343
63318
  name: "(anonymous_10)",
63344
63319
  decl: {
63345
63320
  start: {
63346
- line: 208,
63321
+ line: 209,
63347
63322
  column: 26
63348
63323
  },
63349
63324
  end: {
63350
- line: 208,
63325
+ line: 209,
63351
63326
  column: 27
63352
63327
  }
63353
63328
  },
63354
63329
  loc: {
63355
63330
  start: {
63356
- line: 208,
63331
+ line: 209,
63357
63332
  column: 31
63358
63333
  },
63359
63334
  end: {
63360
- line: 208,
63335
+ line: 209,
63361
63336
  column: 60
63362
63337
  }
63363
63338
  },
63364
- line: 208
63339
+ line: 209
63365
63340
  },
63366
63341
  "11": {
63367
63342
  name: "(anonymous_11)",
63368
63343
  decl: {
63369
63344
  start: {
63370
- line: 214,
63345
+ line: 215,
63371
63346
  column: 35
63372
63347
  },
63373
63348
  end: {
63374
- line: 214,
63349
+ line: 215,
63375
63350
  column: 36
63376
63351
  }
63377
63352
  },
63378
63353
  loc: {
63379
63354
  start: {
63380
- line: 215,
63355
+ line: 216,
63381
63356
  column: 16
63382
63357
  },
63383
63358
  end: {
63384
- line: 228,
63359
+ line: 229,
63385
63360
  column: 34
63386
63361
  }
63387
63362
  },
63388
- line: 215
63363
+ line: 216
63389
63364
  },
63390
63365
  "12": {
63391
63366
  name: "(anonymous_12)",
63392
63367
  decl: {
63393
63368
  start: {
63394
- line: 225,
63369
+ line: 226,
63395
63370
  column: 27
63396
63371
  },
63397
63372
  end: {
63398
- line: 225,
63373
+ line: 226,
63399
63374
  column: 28
63400
63375
  }
63401
63376
  },
63402
63377
  loc: {
63403
63378
  start: {
63404
- line: 225,
63379
+ line: 226,
63405
63380
  column: 33
63406
63381
  },
63407
63382
  end: {
63408
- line: 225,
63383
+ line: 226,
63409
63384
  column: 64
63410
63385
  }
63411
63386
  },
63412
- line: 225
63387
+ line: 226
63413
63388
  }
63414
63389
  },
63415
63390
  branchMap: {
@@ -63878,233 +63853,233 @@ function cov_2kupegl7ql() {
63878
63853
  "14": {
63879
63854
  loc: {
63880
63855
  start: {
63881
- line: 102,
63856
+ line: 103,
63882
63857
  column: 7
63883
63858
  },
63884
63859
  end: {
63885
- line: 238,
63860
+ line: 239,
63886
63861
  column: 7
63887
63862
  }
63888
63863
  },
63889
63864
  type: "cond-expr",
63890
63865
  locations: [{
63891
63866
  start: {
63892
- line: 103,
63867
+ line: 104,
63893
63868
  column: 8
63894
63869
  },
63895
63870
  end: {
63896
- line: 172,
63871
+ line: 173,
63897
63872
  column: 10
63898
63873
  }
63899
63874
  }, {
63900
63875
  start: {
63901
- line: 174,
63876
+ line: 175,
63902
63877
  column: 8
63903
63878
  },
63904
63879
  end: {
63905
- line: 237,
63880
+ line: 238,
63906
63881
  column: 19
63907
63882
  }
63908
63883
  }],
63909
- line: 102
63884
+ line: 103
63910
63885
  },
63911
63886
  "15": {
63912
63887
  loc: {
63913
63888
  start: {
63914
- line: 105,
63889
+ line: 106,
63915
63890
  column: 13
63916
63891
  },
63917
63892
  end: {
63918
- line: 113,
63893
+ line: 114,
63919
63894
  column: 13
63920
63895
  }
63921
63896
  },
63922
63897
  type: "binary-expr",
63923
63898
  locations: [{
63924
63899
  start: {
63925
- line: 105,
63900
+ line: 106,
63926
63901
  column: 13
63927
63902
  },
63928
63903
  end: {
63929
- line: 105,
63904
+ line: 106,
63930
63905
  column: 18
63931
63906
  }
63932
63907
  }, {
63933
63908
  start: {
63934
- line: 106,
63909
+ line: 107,
63935
63910
  column: 14
63936
63911
  },
63937
63912
  end: {
63938
- line: 112,
63913
+ line: 113,
63939
63914
  column: 27
63940
63915
  }
63941
63916
  }],
63942
- line: 105
63917
+ line: 106
63943
63918
  },
63944
63919
  "16": {
63945
63920
  loc: {
63946
63921
  start: {
63947
- line: 130,
63922
+ line: 131,
63948
63923
  column: 36
63949
63924
  },
63950
63925
  end: {
63951
- line: 130,
63926
+ line: 131,
63952
63927
  column: 69
63953
63928
  }
63954
63929
  },
63955
63930
  type: "cond-expr",
63956
63931
  locations: [{
63957
63932
  start: {
63958
- line: 130,
63933
+ line: 131,
63959
63934
  column: 51
63960
63935
  },
63961
63936
  end: {
63962
- line: 130,
63937
+ line: 131,
63963
63938
  column: 55
63964
63939
  }
63965
63940
  }, {
63966
63941
  start: {
63967
- line: 130,
63942
+ line: 131,
63968
63943
  column: 58
63969
63944
  },
63970
63945
  end: {
63971
- line: 130,
63946
+ line: 131,
63972
63947
  column: 69
63973
63948
  }
63974
63949
  }],
63975
- line: 130
63950
+ line: 131
63976
63951
  },
63977
63952
  "17": {
63978
63953
  loc: {
63979
63954
  start: {
63980
- line: 139,
63955
+ line: 140,
63981
63956
  column: 17
63982
63957
  },
63983
63958
  end: {
63984
- line: 148,
63959
+ line: 149,
63985
63960
  column: 17
63986
63961
  }
63987
63962
  },
63988
63963
  type: "binary-expr",
63989
63964
  locations: [{
63990
63965
  start: {
63991
- line: 139,
63966
+ line: 140,
63992
63967
  column: 17
63993
63968
  },
63994
63969
  end: {
63995
- line: 139,
63970
+ line: 140,
63996
63971
  column: 63
63997
63972
  }
63998
63973
  }, {
63999
63974
  start: {
64000
- line: 140,
63975
+ line: 141,
64001
63976
  column: 18
64002
63977
  },
64003
63978
  end: {
64004
- line: 147,
63979
+ line: 148,
64005
63980
  column: 20
64006
63981
  }
64007
63982
  }],
64008
- line: 139
63983
+ line: 140
64009
63984
  },
64010
63985
  "18": {
64011
63986
  loc: {
64012
63987
  start: {
64013
- line: 192,
63988
+ line: 193,
64014
63989
  column: 32
64015
63990
  },
64016
63991
  end: {
64017
- line: 192,
63992
+ line: 193,
64018
63993
  column: 66
64019
63994
  }
64020
63995
  },
64021
63996
  type: "cond-expr",
64022
63997
  locations: [{
64023
63998
  start: {
64024
- line: 192,
63999
+ line: 193,
64025
64000
  column: 47
64026
64001
  },
64027
64002
  end: {
64028
- line: 192,
64003
+ line: 193,
64029
64004
  column: 51
64030
64005
  }
64031
64006
  }, {
64032
64007
  start: {
64033
- line: 192,
64008
+ line: 193,
64034
64009
  column: 54
64035
64010
  },
64036
64011
  end: {
64037
- line: 192,
64012
+ line: 193,
64038
64013
  column: 66
64039
64014
  }
64040
64015
  }],
64041
- line: 192
64016
+ line: 193
64042
64017
  },
64043
64018
  "19": {
64044
64019
  loc: {
64045
64020
  start: {
64046
- line: 201,
64021
+ line: 202,
64047
64022
  column: 13
64048
64023
  },
64049
64024
  end: {
64050
- line: 210,
64025
+ line: 211,
64051
64026
  column: 13
64052
64027
  }
64053
64028
  },
64054
64029
  type: "binary-expr",
64055
64030
  locations: [{
64056
64031
  start: {
64057
- line: 201,
64032
+ line: 202,
64058
64033
  column: 13
64059
64034
  },
64060
64035
  end: {
64061
- line: 201,
64036
+ line: 202,
64062
64037
  column: 59
64063
64038
  }
64064
64039
  }, {
64065
64040
  start: {
64066
- line: 202,
64041
+ line: 203,
64067
64042
  column: 14
64068
64043
  },
64069
64044
  end: {
64070
- line: 209,
64045
+ line: 210,
64071
64046
  column: 16
64072
64047
  }
64073
64048
  }],
64074
- line: 201
64049
+ line: 202
64075
64050
  },
64076
64051
  "20": {
64077
64052
  loc: {
64078
64053
  start: {
64079
- line: 231,
64054
+ line: 232,
64080
64055
  column: 13
64081
64056
  },
64082
64057
  end: {
64083
- line: 235,
64058
+ line: 236,
64084
64059
  column: 13
64085
64060
  }
64086
64061
  },
64087
64062
  type: "binary-expr",
64088
64063
  locations: [{
64089
64064
  start: {
64090
- line: 231,
64065
+ line: 232,
64091
64066
  column: 13
64092
64067
  },
64093
64068
  end: {
64094
- line: 231,
64069
+ line: 232,
64095
64070
  column: 37
64096
64071
  }
64097
64072
  }, {
64098
64073
  start: {
64099
- line: 232,
64074
+ line: 233,
64100
64075
  column: 14
64101
64076
  },
64102
64077
  end: {
64103
- line: 234,
64078
+ line: 235,
64104
64079
  column: 32
64105
64080
  }
64106
64081
  }],
64107
- line: 231
64082
+ line: 232
64108
64083
  }
64109
64084
  },
64110
64085
  s: {
@@ -64161,7 +64136,8 @@ function cov_2kupegl7ql() {
64161
64136
  "50": 0,
64162
64137
  "51": 0,
64163
64138
  "52": 0,
64164
- "53": 0
64139
+ "53": 0,
64140
+ "54": 0
64165
64141
  },
64166
64142
  f: {
64167
64143
  "0": 0,
@@ -64202,7 +64178,7 @@ function cov_2kupegl7ql() {
64202
64178
  "20": [0, 0]
64203
64179
  },
64204
64180
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
64205
- hash: "48007c5a85192891755b1b9f88b45e5d9cb5aa6b"
64181
+ hash: "23483456014f72294d9cd81bf25d9ebd1044ebf1"
64206
64182
  };
64207
64183
  var coverage = global[gcv] || (global[gcv] = {});
64208
64184
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -64227,6 +64203,7 @@ cov_2kupegl7ql().s[1]++;
64227
64203
  var Events$1 = function Events(_ref2) {
64228
64204
  var name = _ref2.name,
64229
64205
  data = _ref2.data,
64206
+ onSelectEvent = _ref2.onSelectEvent,
64230
64207
  performerName = _ref2.performerName;
64231
64208
  cov_2kupegl7ql().f[0]++;
64232
64209
  var _ref3 = (cov_2kupegl7ql().s[2]++, useFormikContext()),
@@ -64345,17 +64322,19 @@ var Events$1 = function Events(_ref2) {
64345
64322
  name: option.value
64346
64323
  }]));
64347
64324
  cov_2kupegl7ql().s[40]++;
64325
+ onSelectEvent === null || onSelectEvent === void 0 ? void 0 : onSelectEvent(name, options);
64326
+ cov_2kupegl7ql().s[41]++;
64348
64327
  setFieldValue("".concat(name, ".value"), options);
64349
64328
  };
64350
- cov_2kupegl7ql().s[41]++;
64329
+ cov_2kupegl7ql().s[42]++;
64351
64330
  var handleClose = function handleClose() {
64352
64331
  cov_2kupegl7ql().f[3]++;
64353
- cov_2kupegl7ql().s[42]++;
64354
- setActiveOption(null);
64355
64332
  cov_2kupegl7ql().s[43]++;
64333
+ setActiveOption(null);
64334
+ cov_2kupegl7ql().s[44]++;
64356
64335
  setSearchTerm("");
64357
64336
  };
64358
- cov_2kupegl7ql().s[44]++;
64337
+ cov_2kupegl7ql().s[45]++;
64359
64338
  return /*#__PURE__*/React.createElement("div", {
64360
64339
  className: "my-auto flex flex-wrap gap-x-2 gap-y-3"
64361
64340
  }, /*#__PURE__*/React.createElement(Typography, {
@@ -64365,7 +64344,7 @@ var Events$1 = function Events(_ref2) {
64365
64344
  }, t("common.when")), allEvents.length ? (cov_2kupegl7ql().b[14][0]++, allEvents.map(function (event, idx) {
64366
64345
  var _event$label;
64367
64346
  cov_2kupegl7ql().f[4]++;
64368
- cov_2kupegl7ql().s[45]++;
64347
+ cov_2kupegl7ql().s[46]++;
64369
64348
  return /*#__PURE__*/React.createElement(React.Fragment, {
64370
64349
  key: idx
64371
64350
  }, (cov_2kupegl7ql().b[15][0]++, !!idx) && (cov_2kupegl7ql().b[15][1]++, /*#__PURE__*/React.createElement(Typography, {
@@ -64385,7 +64364,7 @@ var Events$1 = function Events(_ref2) {
64385
64364
  }),
64386
64365
  onClick: function onClick() {
64387
64366
  cov_2kupegl7ql().f[5]++;
64388
- cov_2kupegl7ql().s[46]++;
64367
+ cov_2kupegl7ql().s[47]++;
64389
64368
  return setActiveOption(activeOption ? (cov_2kupegl7ql().b[16][0]++, null) : (cov_2kupegl7ql().b[16][1]++, event.value));
64390
64369
  }
64391
64370
  }, event === null || event === void 0 ? void 0 : (_event$label = event.label) === null || _event$label === void 0 ? void 0 : _event$label.toLowerCase()),
@@ -64400,14 +64379,14 @@ var Events$1 = function Events(_ref2) {
64400
64379
  value: searchTerm,
64401
64380
  onChange: function onChange(e) {
64402
64381
  cov_2kupegl7ql().f[6]++;
64403
- cov_2kupegl7ql().s[47]++;
64382
+ cov_2kupegl7ql().s[48]++;
64404
64383
  return setSearchTerm(e.target.value);
64405
64384
  }
64406
64385
  })), /*#__PURE__*/React.createElement(OptionsWrapper, {
64407
64386
  hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH
64408
64387
  }, searchedOptions.map(function (option, idx) {
64409
64388
  cov_2kupegl7ql().f[7]++;
64410
- cov_2kupegl7ql().s[48]++;
64389
+ cov_2kupegl7ql().s[49]++;
64411
64390
  return /*#__PURE__*/React.createElement(MenuItem$2.Button, {
64412
64391
  "data-cy": "".concat(joinHyphenCase(option.label), "-menu-item"),
64413
64392
  key: idx,
@@ -64418,7 +64397,7 @@ var Events$1 = function Events(_ref2) {
64418
64397
  }),
64419
64398
  onClick: function onClick() {
64420
64399
  cov_2kupegl7ql().f[8]++;
64421
- cov_2kupegl7ql().s[49]++;
64400
+ cov_2kupegl7ql().s[50]++;
64422
64401
  return handleMultiSelectOption(option);
64423
64402
  }
64424
64403
  }, option.label);
@@ -64438,7 +64417,7 @@ var Events$1 = function Events(_ref2) {
64438
64417
  }),
64439
64418
  onClick: function onClick() {
64440
64419
  cov_2kupegl7ql().f[9]++;
64441
- cov_2kupegl7ql().s[50]++;
64420
+ cov_2kupegl7ql().s[51]++;
64442
64421
  return setActiveOption(activeOption ? (cov_2kupegl7ql().b[18][0]++, null) : (cov_2kupegl7ql().b[18][1]++, defaultLabel));
64443
64422
  }
64444
64423
  }, defaultLabel),
@@ -64453,14 +64432,14 @@ var Events$1 = function Events(_ref2) {
64453
64432
  value: searchTerm,
64454
64433
  onChange: function onChange(e) {
64455
64434
  cov_2kupegl7ql().f[10]++;
64456
- cov_2kupegl7ql().s[51]++;
64435
+ cov_2kupegl7ql().s[52]++;
64457
64436
  return setSearchTerm(e.target.value);
64458
64437
  }
64459
64438
  })), /*#__PURE__*/React.createElement(OptionsWrapper, {
64460
64439
  hasScroll: dropdownOptions.length > MAXIMUM_OPTION_LENGTH
64461
64440
  }, searchedOptions.map(function (option, idx) {
64462
64441
  cov_2kupegl7ql().f[11]++;
64463
- cov_2kupegl7ql().s[52]++;
64442
+ cov_2kupegl7ql().s[53]++;
64464
64443
  return /*#__PURE__*/React.createElement(MenuItem$2.Button, {
64465
64444
  "data-cy": "".concat(joinHyphenCase(option.label), "-menu-item"),
64466
64445
  key: idx,
@@ -64471,7 +64450,7 @@ var Events$1 = function Events(_ref2) {
64471
64450
  }),
64472
64451
  onClick: function onClick() {
64473
64452
  cov_2kupegl7ql().f[12]++;
64474
- cov_2kupegl7ql().s[53]++;
64453
+ cov_2kupegl7ql().s[54]++;
64475
64454
  return handleMultiSelectOption(option);
64476
64455
  }
64477
64456
  }, option.label);
@@ -64484,10 +64463,10 @@ var Events$1 = function Events(_ref2) {
64484
64463
  }));
64485
64464
  };
64486
64465
 
64487
- var _excluded$5 = ["data", "label", "name", "performerName", "conditionsName"];
64466
+ var _excluded$5 = ["data", "label", "name", "performerName", "conditionsName", "onSelectEvent"];
64488
64467
  function cov_12u811mcez() {
64489
64468
  var path = "/home/runner/work/neeto-rules-frontend/neeto-rules-frontend/src/components/NeetoRules/Element/EventConditions/index.jsx";
64490
- var hash = "abebff29dc84e19538cad5ad675263f6e820debb";
64469
+ var hash = "47a7986f3811e066550f22ba4d54668f6d538b0b";
64491
64470
  var global = new Function("return this")();
64492
64471
  var gcv = "__coverage__";
64493
64472
  var coverageData = {
@@ -64499,87 +64478,87 @@ function cov_12u811mcez() {
64499
64478
  column: 24
64500
64479
  },
64501
64480
  end: {
64502
- line: 81,
64481
+ line: 87,
64503
64482
  column: 1
64504
64483
  }
64505
64484
  },
64506
64485
  "1": {
64507
64486
  start: {
64508
- line: 24,
64487
+ line: 25,
64509
64488
  column: 36
64510
64489
  },
64511
64490
  end: {
64512
- line: 24,
64491
+ line: 25,
64513
64492
  column: 54
64514
64493
  }
64515
64494
  },
64516
64495
  "2": {
64517
64496
  start: {
64518
- line: 26,
64497
+ line: 27,
64519
64498
  column: 23
64520
64499
  },
64521
64500
  end: {
64522
- line: 26,
64501
+ line: 27,
64523
64502
  column: 39
64524
64503
  }
64525
64504
  },
64526
64505
  "3": {
64527
64506
  start: {
64528
- line: 27,
64507
+ line: 28,
64529
64508
  column: 25
64530
64509
  },
64531
64510
  end: {
64532
- line: 27,
64511
+ line: 28,
64533
64512
  column: 51
64534
64513
  }
64535
64514
  },
64536
64515
  "4": {
64537
64516
  start: {
64538
- line: 28,
64517
+ line: 29,
64539
64518
  column: 21
64540
64519
  },
64541
64520
  end: {
64542
- line: 28,
64521
+ line: 29,
64543
64522
  column: 55
64544
64523
  }
64545
64524
  },
64546
64525
  "5": {
64547
64526
  start: {
64548
- line: 29,
64527
+ line: 30,
64549
64528
  column: 24
64550
64529
  },
64551
64530
  end: {
64552
- line: 29,
64531
+ line: 30,
64553
64532
  column: 43
64554
64533
  }
64555
64534
  },
64556
64535
  "6": {
64557
64536
  start: {
64558
- line: 31,
64537
+ line: 32,
64559
64538
  column: 29
64560
64539
  },
64561
64540
  end: {
64562
- line: 40,
64541
+ line: 41,
64563
64542
  column: 3
64564
64543
  }
64565
64544
  },
64566
64545
  "7": {
64567
64546
  start: {
64568
- line: 32,
64547
+ line: 33,
64569
64548
  column: 4
64570
64549
  },
64571
64550
  end: {
64572
- line: 39,
64551
+ line: 40,
64573
64552
  column: 7
64574
64553
  }
64575
64554
  },
64576
64555
  "8": {
64577
64556
  start: {
64578
- line: 42,
64557
+ line: 43,
64579
64558
  column: 2
64580
64559
  },
64581
64560
  end: {
64582
- line: 80,
64561
+ line: 86,
64583
64562
  column: 4
64584
64563
  }
64585
64564
  }
@@ -64599,239 +64578,239 @@ function cov_12u811mcez() {
64599
64578
  },
64600
64579
  loc: {
64601
64580
  start: {
64602
- line: 23,
64581
+ line: 24,
64603
64582
  column: 6
64604
64583
  },
64605
64584
  end: {
64606
- line: 81,
64585
+ line: 87,
64607
64586
  column: 1
64608
64587
  }
64609
64588
  },
64610
- line: 23
64589
+ line: 24
64611
64590
  },
64612
64591
  "1": {
64613
64592
  name: "(anonymous_1)",
64614
64593
  decl: {
64615
64594
  start: {
64616
- line: 31,
64595
+ line: 32,
64617
64596
  column: 29
64618
64597
  },
64619
64598
  end: {
64620
- line: 31,
64599
+ line: 32,
64621
64600
  column: 30
64622
64601
  }
64623
64602
  },
64624
64603
  loc: {
64625
64604
  start: {
64626
- line: 31,
64605
+ line: 32,
64627
64606
  column: 35
64628
64607
  },
64629
64608
  end: {
64630
- line: 40,
64609
+ line: 41,
64631
64610
  column: 3
64632
64611
  }
64633
64612
  },
64634
- line: 31
64613
+ line: 32
64635
64614
  }
64636
64615
  },
64637
64616
  branchMap: {
64638
64617
  "0": {
64639
64618
  loc: {
64640
64619
  start: {
64641
- line: 26,
64620
+ line: 27,
64642
64621
  column: 23
64643
64622
  },
64644
64623
  end: {
64645
- line: 26,
64624
+ line: 27,
64646
64625
  column: 39
64647
64626
  }
64648
64627
  },
64649
64628
  type: "binary-expr",
64650
64629
  locations: [{
64651
64630
  start: {
64652
- line: 26,
64631
+ line: 27,
64653
64632
  column: 23
64654
64633
  },
64655
64634
  end: {
64656
- line: 26,
64635
+ line: 27,
64657
64636
  column: 33
64658
64637
  }
64659
64638
  }, {
64660
64639
  start: {
64661
- line: 26,
64640
+ line: 27,
64662
64641
  column: 37
64663
64642
  },
64664
64643
  end: {
64665
- line: 26,
64644
+ line: 27,
64666
64645
  column: 39
64667
64646
  }
64668
64647
  }],
64669
- line: 26
64648
+ line: 27
64670
64649
  },
64671
64650
  "1": {
64672
64651
  loc: {
64673
64652
  start: {
64674
- line: 27,
64653
+ line: 28,
64675
64654
  column: 25
64676
64655
  },
64677
64656
  end: {
64678
- line: 27,
64657
+ line: 28,
64679
64658
  column: 51
64680
64659
  }
64681
64660
  },
64682
64661
  type: "binary-expr",
64683
64662
  locations: [{
64684
64663
  start: {
64685
- line: 27,
64664
+ line: 28,
64686
64665
  column: 25
64687
64666
  },
64688
64667
  end: {
64689
- line: 27,
64668
+ line: 28,
64690
64669
  column: 45
64691
64670
  }
64692
64671
  }, {
64693
64672
  start: {
64694
- line: 27,
64673
+ line: 28,
64695
64674
  column: 49
64696
64675
  },
64697
64676
  end: {
64698
- line: 27,
64677
+ line: 28,
64699
64678
  column: 51
64700
64679
  }
64701
64680
  }],
64702
- line: 27
64681
+ line: 28
64703
64682
  },
64704
64683
  "2": {
64705
64684
  loc: {
64706
64685
  start: {
64707
- line: 28,
64686
+ line: 29,
64708
64687
  column: 21
64709
64688
  },
64710
64689
  end: {
64711
- line: 28,
64690
+ line: 29,
64712
64691
  column: 55
64713
64692
  }
64714
64693
  },
64715
64694
  type: "binary-expr",
64716
64695
  locations: [{
64717
64696
  start: {
64718
- line: 28,
64697
+ line: 29,
64719
64698
  column: 21
64720
64699
  },
64721
64700
  end: {
64722
- line: 28,
64701
+ line: 29,
64723
64702
  column: 49
64724
64703
  }
64725
64704
  }, {
64726
64705
  start: {
64727
- line: 28,
64706
+ line: 29,
64728
64707
  column: 53
64729
64708
  },
64730
64709
  end: {
64731
- line: 28,
64710
+ line: 29,
64732
64711
  column: 55
64733
64712
  }
64734
64713
  }],
64735
- line: 28
64714
+ line: 29
64736
64715
  },
64737
64716
  "3": {
64738
64717
  loc: {
64739
64718
  start: {
64740
- line: 44,
64719
+ line: 45,
64741
64720
  column: 19
64742
64721
  },
64743
64722
  end: {
64744
- line: 44,
64723
+ line: 45,
64745
64724
  column: 47
64746
64725
  }
64747
64726
  },
64748
64727
  type: "binary-expr",
64749
64728
  locations: [{
64750
64729
  start: {
64751
- line: 44,
64730
+ line: 45,
64752
64731
  column: 19
64753
64732
  },
64754
64733
  end: {
64755
- line: 44,
64734
+ line: 45,
64756
64735
  column: 24
64757
64736
  }
64758
64737
  }, {
64759
64738
  start: {
64760
- line: 44,
64739
+ line: 45,
64761
64740
  column: 28
64762
64741
  },
64763
64742
  end: {
64764
- line: 44,
64743
+ line: 45,
64765
64744
  column: 47
64766
64745
  }
64767
64746
  }],
64768
- line: 44
64747
+ line: 45
64769
64748
  },
64770
64749
  "4": {
64771
64750
  loc: {
64772
64751
  start: {
64773
- line: 53,
64752
+ line: 59,
64774
64753
  column: 11
64775
64754
  },
64776
64755
  end: {
64777
- line: 66,
64756
+ line: 72,
64778
64757
  column: 11
64779
64758
  }
64780
64759
  },
64781
64760
  type: "binary-expr",
64782
64761
  locations: [{
64783
64762
  start: {
64784
- line: 53,
64763
+ line: 59,
64785
64764
  column: 11
64786
64765
  },
64787
64766
  end: {
64788
- line: 53,
64767
+ line: 59,
64789
64768
  column: 24
64790
64769
  }
64791
64770
  }, {
64792
64771
  start: {
64793
- line: 54,
64772
+ line: 60,
64794
64773
  column: 12
64795
64774
  },
64796
64775
  end: {
64797
- line: 65,
64776
+ line: 71,
64798
64777
  column: 14
64799
64778
  }
64800
64779
  }],
64801
- line: 53
64780
+ line: 59
64802
64781
  },
64803
64782
  "5": {
64804
64783
  loc: {
64805
64784
  start: {
64806
- line: 68,
64785
+ line: 74,
64807
64786
  column: 9
64808
64787
  },
64809
64788
  end: {
64810
- line: 77,
64789
+ line: 83,
64811
64790
  column: 9
64812
64791
  }
64813
64792
  },
64814
64793
  type: "binary-expr",
64815
64794
  locations: [{
64816
64795
  start: {
64817
- line: 68,
64796
+ line: 74,
64818
64797
  column: 9
64819
64798
  },
64820
64799
  end: {
64821
- line: 68,
64800
+ line: 74,
64822
64801
  column: 23
64823
64802
  }
64824
64803
  }, {
64825
64804
  start: {
64826
- line: 69,
64805
+ line: 75,
64827
64806
  column: 10
64828
64807
  },
64829
64808
  end: {
64830
- line: 76,
64809
+ line: 82,
64831
64810
  column: 16
64832
64811
  }
64833
64812
  }],
64834
- line: 68
64813
+ line: 74
64835
64814
  }
64836
64815
  },
64837
64816
  s: {
@@ -64858,7 +64837,7 @@ function cov_12u811mcez() {
64858
64837
  "5": [0, 0]
64859
64838
  },
64860
64839
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
64861
- hash: "abebff29dc84e19538cad5ad675263f6e820debb"
64840
+ hash: "47a7986f3811e066550f22ba4d54668f6d538b0b"
64862
64841
  };
64863
64842
  var coverage = global[gcv] || (global[gcv] = {});
64864
64843
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -64881,6 +64860,7 @@ var EventConditions = function EventConditions(_ref) {
64881
64860
  name = _ref.name,
64882
64861
  performerName = _ref.performerName,
64883
64862
  conditionsName = _ref.conditionsName,
64863
+ onSelectEvent = _ref.onSelectEvent,
64884
64864
  config = _objectWithoutProperties(_ref, _excluded$5);
64885
64865
  cov_12u811mcez().f[0]++;
64886
64866
  var _ref2 = (cov_12u811mcez().s[1]++, useFormikContext()),
@@ -64914,7 +64894,8 @@ var EventConditions = function EventConditions(_ref) {
64914
64894
  }, /*#__PURE__*/React.createElement(Events$1, {
64915
64895
  data: data,
64916
64896
  name: name,
64917
- performerName: performerName
64897
+ performerName: performerName,
64898
+ onSelectEvent: onSelectEvent
64918
64899
  })), (cov_12u811mcez().b[4][0]++, showAddButton) && (cov_12u811mcez().b[4][1]++, /*#__PURE__*/React.createElement(Button, {
64919
64900
  "data-cy": "add-condition-button",
64920
64901
  "data-test-id": "automation-rules-add-events-button",