@bigbinary/neeto-filters-frontend 2.11.3 → 2.11.5

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
@@ -35923,6 +35923,367 @@ var Block = function Block(_ref) {
35923
35923
  })))));
35924
35924
  };
35925
35925
 
35926
+ function cov_1zv3ink1zs() {
35927
+ var path = "/home/runner/work/neeto-filters-frontend/neeto-filters-frontend/src/components/Bar/ChildBlock.jsx";
35928
+ var hash = "fe5d9d9e242aa9c111c9bffe9543756050d11d2f";
35929
+ var global = new Function("return this")();
35930
+ var gcv = "__coverage__";
35931
+ var coverageData = {
35932
+ path: "/home/runner/work/neeto-filters-frontend/neeto-filters-frontend/src/components/Bar/ChildBlock.jsx",
35933
+ statementMap: {
35934
+ "0": {
35935
+ start: {
35936
+ line: 9,
35937
+ column: 19
35938
+ },
35939
+ end: {
35940
+ line: 49,
35941
+ column: 1
35942
+ }
35943
+ },
35944
+ "1": {
35945
+ start: {
35946
+ line: 10,
35947
+ column: 31
35948
+ },
35949
+ end: {
35950
+ line: 14,
35951
+ column: 3
35952
+ }
35953
+ },
35954
+ "2": {
35955
+ start: {
35956
+ line: 12,
35957
+ column: 10
35958
+ },
35959
+ end: {
35960
+ line: 12,
35961
+ column: 32
35962
+ }
35963
+ },
35964
+ "3": {
35965
+ start: {
35966
+ line: 16,
35967
+ column: 34
35968
+ },
35969
+ end: {
35970
+ line: 20,
35971
+ column: 3
35972
+ }
35973
+ },
35974
+ "4": {
35975
+ start: {
35976
+ line: 18,
35977
+ column: 10
35978
+ },
35979
+ end: {
35980
+ line: 18,
35981
+ column: 33
35982
+ }
35983
+ },
35984
+ "5": {
35985
+ start: {
35986
+ line: 22,
35987
+ column: 2
35988
+ },
35989
+ end: {
35990
+ line: 48,
35991
+ column: 4
35992
+ }
35993
+ },
35994
+ "6": {
35995
+ start: {
35996
+ line: 28,
35997
+ column: 8
35998
+ },
35999
+ end: {
36000
+ line: 28,
36001
+ column: 44
36002
+ }
36003
+ },
36004
+ "7": {
36005
+ start: {
36006
+ line: 29,
36007
+ column: 8
36008
+ },
36009
+ end: {
36010
+ line: 29,
36011
+ column: 47
36012
+ }
36013
+ },
36014
+ "8": {
36015
+ start: {
36016
+ line: 31,
36017
+ column: 21
36018
+ },
36019
+ end: {
36020
+ line: 31,
36021
+ column: 44
36022
+ }
36023
+ },
36024
+ "9": {
36025
+ start: {
36026
+ line: 42,
36027
+ column: 12
36028
+ },
36029
+ end: {
36030
+ line: 42,
36031
+ column: 36
36032
+ }
36033
+ },
36034
+ "10": {
36035
+ start: {
36036
+ line: 43,
36037
+ column: 12
36038
+ },
36039
+ end: {
36040
+ line: 43,
36041
+ column: 35
36042
+ }
36043
+ }
36044
+ },
36045
+ fnMap: {
36046
+ "0": {
36047
+ name: "(anonymous_0)",
36048
+ decl: {
36049
+ start: {
36050
+ line: 9,
36051
+ column: 19
36052
+ },
36053
+ end: {
36054
+ line: 9,
36055
+ column: 20
36056
+ }
36057
+ },
36058
+ loc: {
36059
+ start: {
36060
+ line: 9,
36061
+ column: 66
36062
+ },
36063
+ end: {
36064
+ line: 49,
36065
+ column: 1
36066
+ }
36067
+ },
36068
+ line: 9
36069
+ },
36070
+ "1": {
36071
+ name: "(anonymous_1)",
36072
+ decl: {
36073
+ start: {
36074
+ line: 12,
36075
+ column: 4
36076
+ },
36077
+ end: {
36078
+ line: 12,
36079
+ column: 5
36080
+ }
36081
+ },
36082
+ loc: {
36083
+ start: {
36084
+ line: 12,
36085
+ column: 10
36086
+ },
36087
+ end: {
36088
+ line: 12,
36089
+ column: 32
36090
+ }
36091
+ },
36092
+ line: 12
36093
+ },
36094
+ "2": {
36095
+ name: "(anonymous_2)",
36096
+ decl: {
36097
+ start: {
36098
+ line: 18,
36099
+ column: 4
36100
+ },
36101
+ end: {
36102
+ line: 18,
36103
+ column: 5
36104
+ }
36105
+ },
36106
+ loc: {
36107
+ start: {
36108
+ line: 18,
36109
+ column: 10
36110
+ },
36111
+ end: {
36112
+ line: 18,
36113
+ column: 33
36114
+ }
36115
+ },
36116
+ line: 18
36117
+ },
36118
+ "3": {
36119
+ name: "(anonymous_3)",
36120
+ decl: {
36121
+ start: {
36122
+ line: 27,
36123
+ column: 11
36124
+ },
36125
+ end: {
36126
+ line: 27,
36127
+ column: 12
36128
+ }
36129
+ },
36130
+ loc: {
36131
+ start: {
36132
+ line: 27,
36133
+ column: 19
36134
+ },
36135
+ end: {
36136
+ line: 30,
36137
+ column: 7
36138
+ }
36139
+ },
36140
+ line: 27
36141
+ },
36142
+ "4": {
36143
+ name: "(anonymous_4)",
36144
+ decl: {
36145
+ start: {
36146
+ line: 31,
36147
+ column: 15
36148
+ },
36149
+ end: {
36150
+ line: 31,
36151
+ column: 16
36152
+ }
36153
+ },
36154
+ loc: {
36155
+ start: {
36156
+ line: 31,
36157
+ column: 21
36158
+ },
36159
+ end: {
36160
+ line: 31,
36161
+ column: 44
36162
+ }
36163
+ },
36164
+ line: 31
36165
+ },
36166
+ "5": {
36167
+ name: "(anonymous_5)",
36168
+ decl: {
36169
+ start: {
36170
+ line: 41,
36171
+ column: 19
36172
+ },
36173
+ end: {
36174
+ line: 41,
36175
+ column: 20
36176
+ }
36177
+ },
36178
+ loc: {
36179
+ start: {
36180
+ line: 41,
36181
+ column: 28
36182
+ },
36183
+ end: {
36184
+ line: 44,
36185
+ column: 11
36186
+ }
36187
+ },
36188
+ line: 41
36189
+ }
36190
+ },
36191
+ branchMap: {},
36192
+ s: {
36193
+ "0": 0,
36194
+ "1": 0,
36195
+ "2": 0,
36196
+ "3": 0,
36197
+ "4": 0,
36198
+ "5": 0,
36199
+ "6": 0,
36200
+ "7": 0,
36201
+ "8": 0,
36202
+ "9": 0,
36203
+ "10": 0
36204
+ },
36205
+ f: {
36206
+ "0": 0,
36207
+ "1": 0,
36208
+ "2": 0,
36209
+ "3": 0,
36210
+ "4": 0,
36211
+ "5": 0
36212
+ },
36213
+ b: {},
36214
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
36215
+ hash: "fe5d9d9e242aa9c111c9bffe9543756050d11d2f"
36216
+ };
36217
+ var coverage = global[gcv] || (global[gcv] = {});
36218
+ if (!coverage[path] || coverage[path].hash !== hash) {
36219
+ coverage[path] = coverageData;
36220
+ }
36221
+ var actualCoverage = coverage[path];
36222
+ {
36223
+ // @ts-ignore
36224
+ cov_1zv3ink1zs = function () {
36225
+ return actualCoverage;
36226
+ };
36227
+ }
36228
+ return actualCoverage;
36229
+ }
36230
+ cov_1zv3ink1zs();
36231
+ cov_1zv3ink1zs().s[0]++;
36232
+ var ChildBlock = function ChildBlock(_ref) {
36233
+ var childKey = _ref.childKey,
36234
+ setIsPaneOpen = _ref.setIsPaneOpen,
36235
+ handleDelete = _ref.handleDelete;
36236
+ cov_1zv3ink1zs().f[0]++;
36237
+ var deleteBlockHotKeyRef = (cov_1zv3ink1zs().s[1]++, useHotKeys(SHORTCUTS.deleteBlock.sequence, function () {
36238
+ cov_1zv3ink1zs().f[1]++;
36239
+ cov_1zv3ink1zs().s[2]++;
36240
+ return handleDelete(childKey);
36241
+ }, {
36242
+ mode: "scoped"
36243
+ }));
36244
+ var openFilterPaneHotKeyRef = (cov_1zv3ink1zs().s[3]++, useHotKeys(SHORTCUTS.openFilterPane.sequence, function () {
36245
+ cov_1zv3ink1zs().f[2]++;
36246
+ cov_1zv3ink1zs().s[4]++;
36247
+ return setIsPaneOpen(childKey);
36248
+ }, {
36249
+ mode: "scoped"
36250
+ }));
36251
+ cov_1zv3ink1zs().s[5]++;
36252
+ return /*#__PURE__*/t__default["default"].createElement("div", {
36253
+ className: "neeto-filters-bar__block",
36254
+ "data-cy": "neeto-filters-".concat(childKey, "-block"),
36255
+ tabIndex: 0,
36256
+ ref: function ref(node) {
36257
+ cov_1zv3ink1zs().f[3]++;
36258
+ cov_1zv3ink1zs().s[6]++;
36259
+ deleteBlockHotKeyRef.current = node;
36260
+ cov_1zv3ink1zs().s[7]++;
36261
+ openFilterPaneHotKeyRef.current = node;
36262
+ },
36263
+ onClick: function onClick() {
36264
+ cov_1zv3ink1zs().f[4]++;
36265
+ cov_1zv3ink1zs().s[8]++;
36266
+ return setIsPaneOpen(childKey);
36267
+ }
36268
+ }, /*#__PURE__*/t__default["default"].createElement(neetoui.Typography, {
36269
+ style: "body2",
36270
+ weight: "medium"
36271
+ }, childKey), /*#__PURE__*/t__default["default"].createElement("div", {
36272
+ className: "neeto-filters-bar__block-close"
36273
+ }, /*#__PURE__*/t__default["default"].createElement(neetoIcons.Close, {
36274
+ "data-cy": "neeto-filters-".concat(childKey, "-block-close-btn"),
36275
+ size: 16,
36276
+ strokeWidth: 2,
36277
+ onClick: function onClick(event) {
36278
+ cov_1zv3ink1zs().f[5]++;
36279
+ cov_1zv3ink1zs().s[9]++;
36280
+ event.stopPropagation();
36281
+ cov_1zv3ink1zs().s[10]++;
36282
+ handleDelete(childKey);
36283
+ }
36284
+ })));
36285
+ };
36286
+
35926
36287
  function e$1(e,t){for(var s=0;s<t.length;s++){var i=t[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i);}}new(function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.overlays=[],this.previouslyFocusedElements=[],this.add=this.add.bind(this),this.remove=this.remove.bind(this),this.isTopOverlay=this.isTopOverlay.bind(this),this.hasOverlays=this.hasOverlays.bind(this),this.getFinalFocusInOverlay=this.getFinalFocusInOverlay.bind(this),this.getTopMostOverlay=this.getTopMostOverlay.bind(this);}var s,i;return s=t,(i=[{key:"add",value:function(e,t){this.overlays.push(e),this.previouslyFocusedElements.push(t);}},{key:"remove",value:function(e){this.overlays=this.overlays.filter((function(t){return t!==e}));}},{key:"isTopOverlay",value:function(e){return this.overlays[this.overlays.length-1]===e}},{key:"hasOverlays",value:function(){return this.overlays.length>0}},{key:"getFinalFocusInOverlay",value:function(){return this.previouslyFocusedElements.pop()}},{key:"getTopMostOverlay",value:function(){return this.overlays[this.overlays.length-1]}}])&&e$1(s.prototype,i),Object.defineProperty(s,"prototype",{writable:!1}),t}());
35927
36288
 
35928
36289
  function k$1(){return k$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r]);}return e},k$1.apply(this,arguments)}var P$1,A$1={exports:{}};
@@ -37776,7 +38137,7 @@ var Segment = function Segment(_ref2) {
37776
38137
 
37777
38138
  function cov_1jyxy15ds3() {
37778
38139
  var path = "/home/runner/work/neeto-filters-frontend/neeto-filters-frontend/src/components/Bar/index.jsx";
37779
- var hash = "d84097ebe2b4c00473ece75fee6b84b8d7524469";
38140
+ var hash = "513c5fef581a1f26ee7e3a240d2a23468af80a8c";
37780
38141
  var global = new Function("return this")();
37781
38142
  var gcv = "__coverage__";
37782
38143
  var coverageData = {
@@ -37784,303 +38145,383 @@ function cov_1jyxy15ds3() {
37784
38145
  statementMap: {
37785
38146
  "0": {
37786
38147
  start: {
37787
- line: 15,
38148
+ line: 16,
37788
38149
  column: 12
37789
38150
  },
37790
38151
  end: {
37791
- line: 109,
38152
+ line: 132,
37792
38153
  column: 1
37793
38154
  }
37794
38155
  },
37795
38156
  "1": {
37796
38157
  start: {
37797
38158
  line: 24,
37798
- column: 24
38159
+ column: 23
37799
38160
  },
37800
38161
  end: {
37801
- line: 30,
37802
- column: 3
38162
+ line: 24,
38163
+ column: 66
37803
38164
  }
37804
38165
  },
37805
38166
  "2": {
37806
38167
  start: {
37807
- line: 32,
37808
- column: 18
38168
+ line: 25,
38169
+ column: 24
37809
38170
  },
37810
38171
  end: {
37811
- line: 34,
38172
+ line: 31,
37812
38173
  column: 3
37813
38174
  }
37814
38175
  },
37815
38176
  "3": {
37816
38177
  start: {
37817
- line: 35,
37818
- column: 27
38178
+ line: 33,
38179
+ column: 18
37819
38180
  },
37820
38181
  end: {
37821
38182
  line: 35,
37822
- column: 62
38183
+ column: 3
37823
38184
  }
37824
38185
  },
37825
38186
  "4": {
37826
38187
  start: {
37827
38188
  line: 36,
37828
- column: 18
38189
+ column: 27
37829
38190
  },
37830
38191
  end: {
37831
38192
  line: 36,
37832
- column: 30
38193
+ column: 62
37833
38194
  }
37834
38195
  },
37835
38196
  "5": {
37836
38197
  start: {
37837
38198
  line: 37,
37838
- column: 16
38199
+ column: 18
37839
38200
  },
37840
38201
  end: {
37841
38202
  line: 37,
37842
- column: 32
38203
+ column: 30
37843
38204
  }
37844
38205
  },
37845
38206
  "6": {
37846
38207
  start: {
37847
- line: 39,
37848
- column: 2
38208
+ line: 38,
38209
+ column: 16
37849
38210
  },
37850
38211
  end: {
37851
- line: 45,
37852
- column: 22
38212
+ line: 38,
38213
+ column: 32
37853
38214
  }
37854
38215
  },
37855
38216
  "7": {
37856
38217
  start: {
37857
38218
  line: 40,
37858
- column: 20
38219
+ column: 2
37859
38220
  },
37860
38221
  end: {
37861
- line: 42,
37862
- column: 11
38222
+ line: 46,
38223
+ column: 22
37863
38224
  }
37864
38225
  },
37865
38226
  "8": {
37866
38227
  start: {
37867
38228
  line: 41,
38229
+ column: 20
38230
+ },
38231
+ end: {
38232
+ line: 43,
38233
+ column: 11
38234
+ }
38235
+ },
38236
+ "9": {
38237
+ start: {
38238
+ line: 42,
37868
38239
  column: 6
37869
38240
  },
37870
38241
  end: {
37871
- line: 41,
38242
+ line: 42,
37872
38243
  column: 28
37873
38244
  }
37874
38245
  },
37875
- "9": {
38246
+ "10": {
37876
38247
  start: {
37877
- line: 44,
38248
+ line: 45,
37878
38249
  column: 4
37879
38250
  },
37880
38251
  end: {
37881
- line: 44,
38252
+ line: 45,
37882
38253
  column: 39
37883
38254
  }
37884
38255
  },
37885
- "10": {
38256
+ "11": {
37886
38257
  start: {
37887
- line: 44,
38258
+ line: 45,
37888
38259
  column: 17
37889
38260
  },
37890
38261
  end: {
37891
- line: 44,
38262
+ line: 45,
37892
38263
  column: 38
37893
38264
  }
37894
38265
  },
37895
- "11": {
38266
+ "12": {
37896
38267
  start: {
37897
- line: 47,
38268
+ line: 48,
37898
38269
  column: 23
37899
38270
  },
37900
38271
  end: {
37901
- line: 58,
38272
+ line: 59,
37902
38273
  column: 3
37903
38274
  }
37904
38275
  },
37905
- "12": {
38276
+ "13": {
37906
38277
  start: {
37907
- line: 48,
38278
+ line: 49,
37908
38279
  column: 19
37909
38280
  },
37910
38281
  end: {
37911
- line: 56,
38282
+ line: 57,
37912
38283
  column: 6
37913
38284
  }
37914
38285
  },
37915
- "13": {
38286
+ "14": {
37916
38287
  start: {
37917
- line: 57,
38288
+ line: 58,
37918
38289
  column: 4
37919
38290
  },
37920
38291
  end: {
37921
- line: 57,
38292
+ line: 58,
37922
38293
  column: 37
37923
38294
  }
37924
38295
  },
37925
- "14": {
38296
+ "15": {
37926
38297
  start: {
37927
- line: 60,
38298
+ line: 61,
37928
38299
  column: 23
37929
38300
  },
37930
38301
  end: {
37931
- line: 67,
38302
+ line: 74,
37932
38303
  column: 3
37933
38304
  }
37934
38305
  },
37935
- "15": {
38306
+ "16": {
37936
38307
  start: {
37937
- line: 61,
38308
+ line: 62,
37938
38309
  column: 4
37939
38310
  },
37940
38311
  end: {
37941
- line: 64,
38312
+ line: 65,
37942
38313
  column: 5
37943
38314
  }
37944
38315
  },
37945
- "16": {
38316
+ "17": {
37946
38317
  start: {
37947
- line: 62,
38318
+ line: 63,
37948
38319
  column: 6
37949
38320
  },
37950
38321
  end: {
37951
- line: 62,
38322
+ line: 63,
37952
38323
  column: 27
37953
38324
  }
37954
38325
  },
37955
- "17": {
38326
+ "18": {
37956
38327
  start: {
37957
- line: 63,
38328
+ line: 64,
37958
38329
  column: 6
37959
38330
  },
37960
38331
  end: {
37961
- line: 63,
38332
+ line: 64,
37962
38333
  column: 25
37963
38334
  }
37964
38335
  },
37965
- "18": {
38336
+ "19": {
38337
+ start: {
38338
+ line: 67,
38339
+ column: 4
38340
+ },
38341
+ end: {
38342
+ line: 70,
38343
+ column: 5
38344
+ }
38345
+ },
38346
+ "20": {
38347
+ start: {
38348
+ line: 68,
38349
+ column: 6
38350
+ },
38351
+ end: {
38352
+ line: 68,
38353
+ column: 31
38354
+ }
38355
+ },
38356
+ "21": {
38357
+ start: {
38358
+ line: 69,
38359
+ column: 6
38360
+ },
38361
+ end: {
38362
+ line: 69,
38363
+ column: 56
38364
+ }
38365
+ },
38366
+ "22": {
37966
38367
  start: {
37967
- line: 65,
38368
+ line: 72,
37968
38369
  column: 23
37969
38370
  },
37970
38371
  end: {
37971
- line: 65,
38372
+ line: 72,
37972
38373
  column: 49
37973
38374
  }
37974
38375
  },
37975
- "19": {
38376
+ "23": {
37976
38377
  start: {
37977
- line: 66,
38378
+ line: 73,
37978
38379
  column: 4
37979
38380
  },
37980
38381
  end: {
37981
- line: 66,
38382
+ line: 73,
37982
38383
  column: 29
37983
38384
  }
37984
38385
  },
37985
- "20": {
38386
+ "24": {
37986
38387
  start: {
37987
- line: 69,
38388
+ line: 76,
37988
38389
  column: 25
37989
38390
  },
37990
38391
  end: {
37991
- line: 73,
38392
+ line: 80,
37992
38393
  column: 3
37993
38394
  }
37994
38395
  },
37995
- "21": {
38396
+ "25": {
37996
38397
  start: {
37997
- line: 70,
38398
+ line: 77,
37998
38399
  column: 4
37999
38400
  },
38000
38401
  end: {
38001
- line: 70,
38402
+ line: 77,
38002
38403
  column: 25
38003
38404
  }
38004
38405
  },
38005
- "22": {
38406
+ "26": {
38006
38407
  start: {
38007
- line: 71,
38408
+ line: 78,
38008
38409
  column: 4
38009
38410
  },
38010
38411
  end: {
38011
- line: 71,
38412
+ line: 78,
38012
38413
  column: 23
38013
38414
  }
38014
38415
  },
38015
- "23": {
38416
+ "27": {
38016
38417
  start: {
38017
- line: 72,
38418
+ line: 79,
38018
38419
  column: 4
38019
38420
  },
38020
38421
  end: {
38021
- line: 72,
38422
+ line: 79,
38022
38423
  column: 27
38023
38424
  }
38024
38425
  },
38025
- "24": {
38426
+ "28": {
38026
38427
  start: {
38027
- line: 75,
38028
- column: 26
38428
+ line: 82,
38429
+ column: 33
38029
38430
  },
38030
38431
  end: {
38031
- line: 77,
38432
+ line: 84,
38032
38433
  column: 3
38033
38434
  }
38034
38435
  },
38035
- "25": {
38436
+ "29": {
38036
38437
  start: {
38037
- line: 76,
38038
- column: 39
38438
+ line: 83,
38439
+ column: 4
38039
38440
  },
38040
38441
  end: {
38041
- line: 76,
38042
- column: 67
38442
+ line: 83,
38443
+ column: 25
38043
38444
  }
38044
38445
  },
38045
- "26": {
38446
+ "30": {
38046
38447
  start: {
38047
- line: 79,
38448
+ line: 87,
38449
+ column: 4
38450
+ },
38451
+ end: {
38452
+ line: 89,
38453
+ column: 32
38454
+ }
38455
+ },
38456
+ "31": {
38457
+ start: {
38458
+ line: 88,
38459
+ column: 41
38460
+ },
38461
+ end: {
38462
+ line: 88,
38463
+ column: 69
38464
+ }
38465
+ },
38466
+ "32": {
38467
+ start: {
38468
+ line: 91,
38048
38469
  column: 2
38049
38470
  },
38050
38471
  end: {
38051
- line: 79,
38052
- column: 45
38472
+ line: 91,
38473
+ column: 72
38053
38474
  }
38054
38475
  },
38055
- "27": {
38476
+ "33": {
38056
38477
  start: {
38057
- line: 79,
38058
- column: 33
38478
+ line: 91,
38479
+ column: 60
38059
38480
  },
38060
38481
  end: {
38061
- line: 79,
38062
- column: 45
38482
+ line: 91,
38483
+ column: 72
38063
38484
  }
38064
38485
  },
38065
- "28": {
38486
+ "34": {
38066
38487
  start: {
38067
- line: 81,
38488
+ line: 93,
38068
38489
  column: 2
38069
38490
  },
38070
38491
  end: {
38071
- line: 108,
38492
+ line: 131,
38072
38493
  column: 4
38073
38494
  }
38074
38495
  },
38075
- "29": {
38496
+ "35": {
38076
38497
  start: {
38077
- line: 86,
38498
+ line: 98,
38078
38499
  column: 8
38079
38500
  },
38080
38501
  end: {
38081
- line: 93,
38502
+ line: 105,
38082
38503
  column: 25
38083
38504
  }
38505
+ },
38506
+ "36": {
38507
+ start: {
38508
+ line: 108,
38509
+ column: 28
38510
+ },
38511
+ end: {
38512
+ line: 108,
38513
+ column: 54
38514
+ }
38515
+ },
38516
+ "37": {
38517
+ start: {
38518
+ line: 110,
38519
+ column: 10
38520
+ },
38521
+ end: {
38522
+ line: 117,
38523
+ column: 27
38524
+ }
38084
38525
  }
38085
38526
  },
38086
38527
  fnMap: {
@@ -38088,11 +38529,11 @@ function cov_1jyxy15ds3() {
38088
38529
  name: "(anonymous_0)",
38089
38530
  decl: {
38090
38531
  start: {
38091
- line: 15,
38532
+ line: 16,
38092
38533
  column: 12
38093
38534
  },
38094
38535
  end: {
38095
- line: 15,
38536
+ line: 16,
38096
38537
  column: 13
38097
38538
  }
38098
38539
  },
@@ -38102,7 +38543,7 @@ function cov_1jyxy15ds3() {
38102
38543
  column: 6
38103
38544
  },
38104
38545
  end: {
38105
- line: 109,
38546
+ line: 132,
38106
38547
  column: 1
38107
38548
  }
38108
38549
  },
@@ -38112,410 +38553,482 @@ function cov_1jyxy15ds3() {
38112
38553
  name: "(anonymous_1)",
38113
38554
  decl: {
38114
38555
  start: {
38115
- line: 39,
38556
+ line: 40,
38116
38557
  column: 12
38117
38558
  },
38118
38559
  end: {
38119
- line: 39,
38560
+ line: 40,
38120
38561
  column: 13
38121
38562
  }
38122
38563
  },
38123
38564
  loc: {
38124
38565
  start: {
38125
- line: 39,
38566
+ line: 40,
38126
38567
  column: 18
38127
38568
  },
38128
38569
  end: {
38129
- line: 45,
38570
+ line: 46,
38130
38571
  column: 3
38131
38572
  }
38132
38573
  },
38133
- line: 39
38574
+ line: 40
38134
38575
  },
38135
38576
  "2": {
38136
38577
  name: "(anonymous_2)",
38137
38578
  decl: {
38138
38579
  start: {
38139
- line: 40,
38580
+ line: 41,
38140
38581
  column: 31
38141
38582
  },
38142
38583
  end: {
38143
- line: 40,
38584
+ line: 41,
38144
38585
  column: 32
38145
38586
  }
38146
38587
  },
38147
38588
  loc: {
38148
38589
  start: {
38149
- line: 40,
38590
+ line: 41,
38150
38591
  column: 37
38151
38592
  },
38152
38593
  end: {
38153
- line: 42,
38594
+ line: 43,
38154
38595
  column: 5
38155
38596
  }
38156
38597
  },
38157
- line: 40
38598
+ line: 41
38158
38599
  },
38159
38600
  "3": {
38160
38601
  name: "(anonymous_3)",
38161
38602
  decl: {
38162
38603
  start: {
38163
- line: 44,
38604
+ line: 45,
38164
38605
  column: 11
38165
38606
  },
38166
38607
  end: {
38167
- line: 44,
38608
+ line: 45,
38168
38609
  column: 12
38169
38610
  }
38170
38611
  },
38171
38612
  loc: {
38172
38613
  start: {
38173
- line: 44,
38614
+ line: 45,
38174
38615
  column: 17
38175
38616
  },
38176
38617
  end: {
38177
- line: 44,
38618
+ line: 45,
38178
38619
  column: 38
38179
38620
  }
38180
38621
  },
38181
- line: 44
38622
+ line: 45
38182
38623
  },
38183
38624
  "4": {
38184
38625
  name: "(anonymous_4)",
38185
38626
  decl: {
38186
38627
  start: {
38187
- line: 47,
38628
+ line: 48,
38188
38629
  column: 23
38189
38630
  },
38190
38631
  end: {
38191
- line: 47,
38632
+ line: 48,
38192
38633
  column: 24
38193
38634
  }
38194
38635
  },
38195
38636
  loc: {
38196
38637
  start: {
38197
- line: 47,
38638
+ line: 48,
38198
38639
  column: 51
38199
38640
  },
38200
38641
  end: {
38201
- line: 58,
38642
+ line: 59,
38202
38643
  column: 3
38203
38644
  }
38204
38645
  },
38205
- line: 47
38646
+ line: 48
38206
38647
  },
38207
38648
  "5": {
38208
38649
  name: "(anonymous_5)",
38209
38650
  decl: {
38210
38651
  start: {
38211
- line: 60,
38652
+ line: 61,
38212
38653
  column: 23
38213
38654
  },
38214
38655
  end: {
38215
- line: 60,
38656
+ line: 61,
38216
38657
  column: 24
38217
38658
  }
38218
38659
  },
38219
38660
  loc: {
38220
38661
  start: {
38221
- line: 60,
38662
+ line: 61,
38222
38663
  column: 30
38223
38664
  },
38224
38665
  end: {
38225
- line: 67,
38666
+ line: 74,
38226
38667
  column: 3
38227
38668
  }
38228
38669
  },
38229
- line: 60
38670
+ line: 61
38230
38671
  },
38231
38672
  "6": {
38232
38673
  name: "(anonymous_6)",
38233
38674
  decl: {
38234
38675
  start: {
38235
- line: 69,
38676
+ line: 76,
38236
38677
  column: 25
38237
38678
  },
38238
38679
  end: {
38239
- line: 69,
38680
+ line: 76,
38240
38681
  column: 26
38241
38682
  }
38242
38683
  },
38243
38684
  loc: {
38244
38685
  start: {
38245
- line: 69,
38686
+ line: 76,
38246
38687
  column: 31
38247
38688
  },
38248
38689
  end: {
38249
- line: 73,
38250
- column: 3
38690
+ line: 80,
38691
+ column: 3
38692
+ }
38693
+ },
38694
+ line: 76
38695
+ },
38696
+ "7": {
38697
+ name: "(anonymous_7)",
38698
+ decl: {
38699
+ start: {
38700
+ line: 82,
38701
+ column: 51
38702
+ },
38703
+ end: {
38704
+ line: 82,
38705
+ column: 52
38706
+ }
38707
+ },
38708
+ loc: {
38709
+ start: {
38710
+ line: 83,
38711
+ column: 4
38712
+ },
38713
+ end: {
38714
+ line: 83,
38715
+ column: 25
38716
+ }
38717
+ },
38718
+ line: 83
38719
+ },
38720
+ "8": {
38721
+ name: "(anonymous_8)",
38722
+ decl: {
38723
+ start: {
38724
+ line: 88,
38725
+ column: 6
38726
+ },
38727
+ end: {
38728
+ line: 88,
38729
+ column: 7
38730
+ }
38731
+ },
38732
+ loc: {
38733
+ start: {
38734
+ line: 88,
38735
+ column: 41
38736
+ },
38737
+ end: {
38738
+ line: 88,
38739
+ column: 69
38740
+ }
38741
+ },
38742
+ line: 88
38743
+ },
38744
+ "9": {
38745
+ name: "(anonymous_9)",
38746
+ decl: {
38747
+ start: {
38748
+ line: 97,
38749
+ column: 28
38750
+ },
38751
+ end: {
38752
+ line: 97,
38753
+ column: 29
38754
+ }
38755
+ },
38756
+ loc: {
38757
+ start: {
38758
+ line: 98,
38759
+ column: 8
38760
+ },
38761
+ end: {
38762
+ line: 105,
38763
+ column: 25
38251
38764
  }
38252
38765
  },
38253
- line: 69
38766
+ line: 98
38254
38767
  },
38255
- "7": {
38256
- name: "(anonymous_7)",
38768
+ "10": {
38769
+ name: "(anonymous_10)",
38257
38770
  decl: {
38258
38771
  start: {
38259
- line: 76,
38260
- column: 4
38772
+ line: 108,
38773
+ column: 16
38261
38774
  },
38262
38775
  end: {
38263
- line: 76,
38264
- column: 5
38776
+ line: 108,
38777
+ column: 17
38265
38778
  }
38266
38779
  },
38267
38780
  loc: {
38268
38781
  start: {
38269
- line: 76,
38270
- column: 39
38782
+ line: 108,
38783
+ column: 28
38271
38784
  },
38272
38785
  end: {
38273
- line: 76,
38274
- column: 67
38786
+ line: 108,
38787
+ column: 54
38275
38788
  }
38276
38789
  },
38277
- line: 76
38790
+ line: 108
38278
38791
  },
38279
- "8": {
38280
- name: "(anonymous_8)",
38792
+ "11": {
38793
+ name: "(anonymous_11)",
38281
38794
  decl: {
38282
38795
  start: {
38283
- line: 85,
38284
- column: 28
38796
+ line: 109,
38797
+ column: 13
38285
38798
  },
38286
38799
  end: {
38287
- line: 85,
38288
- column: 29
38800
+ line: 109,
38801
+ column: 14
38289
38802
  }
38290
38803
  },
38291
38804
  loc: {
38292
38805
  start: {
38293
- line: 86,
38294
- column: 8
38806
+ line: 110,
38807
+ column: 10
38295
38808
  },
38296
38809
  end: {
38297
- line: 93,
38298
- column: 25
38810
+ line: 117,
38811
+ column: 27
38299
38812
  }
38300
38813
  },
38301
- line: 86
38814
+ line: 110
38302
38815
  }
38303
38816
  },
38304
38817
  branchMap: {
38305
38818
  "0": {
38306
38819
  loc: {
38307
38820
  start: {
38308
- line: 18,
38821
+ line: 19,
38309
38822
  column: 2
38310
38823
  },
38311
38824
  end: {
38312
- line: 18,
38825
+ line: 19,
38313
38826
  column: 14
38314
38827
  }
38315
38828
  },
38316
38829
  type: "default-arg",
38317
38830
  locations: [{
38318
38831
  start: {
38319
- line: 18,
38832
+ line: 19,
38320
38833
  column: 12
38321
38834
  },
38322
38835
  end: {
38323
- line: 18,
38836
+ line: 19,
38324
38837
  column: 14
38325
38838
  }
38326
38839
  }],
38327
- line: 18
38840
+ line: 19
38328
38841
  },
38329
38842
  "1": {
38330
38843
  loc: {
38331
38844
  start: {
38332
- line: 19,
38845
+ line: 20,
38333
38846
  column: 2
38334
38847
  },
38335
38848
  end: {
38336
- line: 19,
38849
+ line: 20,
38337
38850
  column: 51
38338
38851
  }
38339
38852
  },
38340
38853
  type: "default-arg",
38341
38854
  locations: [{
38342
38855
  start: {
38343
- line: 19,
38856
+ line: 20,
38344
38857
  column: 12
38345
38858
  },
38346
38859
  end: {
38347
- line: 19,
38860
+ line: 20,
38348
38861
  column: 51
38349
38862
  }
38350
38863
  }],
38351
- line: 19
38864
+ line: 20
38352
38865
  },
38353
38866
  "2": {
38354
38867
  loc: {
38355
38868
  start: {
38356
- line: 20,
38869
+ line: 21,
38357
38870
  column: 2
38358
38871
  },
38359
38872
  end: {
38360
- line: 20,
38873
+ line: 21,
38361
38874
  column: 26
38362
38875
  }
38363
38876
  },
38364
38877
  type: "default-arg",
38365
38878
  locations: [{
38366
38879
  start: {
38367
- line: 20,
38880
+ line: 21,
38368
38881
  column: 18
38369
38882
  },
38370
38883
  end: {
38371
- line: 20,
38884
+ line: 21,
38372
38885
  column: 26
38373
38886
  }
38374
38887
  }],
38375
- line: 20
38888
+ line: 21
38376
38889
  },
38377
38890
  "3": {
38378
38891
  loc: {
38379
38892
  start: {
38380
- line: 21,
38893
+ line: 22,
38381
38894
  column: 2
38382
38895
  },
38383
38896
  end: {
38384
- line: 21,
38897
+ line: 22,
38385
38898
  column: 19
38386
38899
  }
38387
38900
  },
38388
38901
  type: "default-arg",
38389
38902
  locations: [{
38390
38903
  start: {
38391
- line: 21,
38904
+ line: 22,
38392
38905
  column: 17
38393
38906
  },
38394
38907
  end: {
38395
- line: 21,
38908
+ line: 22,
38396
38909
  column: 19
38397
38910
  }
38398
38911
  }],
38399
- line: 21
38912
+ line: 22
38400
38913
  },
38401
38914
  "4": {
38402
38915
  loc: {
38403
38916
  start: {
38404
- line: 33,
38917
+ line: 34,
38405
38918
  column: 4
38406
38919
  },
38407
38920
  end: {
38408
- line: 33,
38921
+ line: 34,
38409
38922
  column: 64
38410
38923
  }
38411
38924
  },
38412
38925
  type: "cond-expr",
38413
38926
  locations: [{
38414
38927
  start: {
38415
- line: 33,
38928
+ line: 34,
38416
38929
  column: 27
38417
38930
  },
38418
38931
  end: {
38419
- line: 33,
38932
+ line: 34,
38420
38933
  column: 54
38421
38934
  }
38422
38935
  }, {
38423
38936
  start: {
38424
- line: 33,
38937
+ line: 34,
38425
38938
  column: 57
38426
38939
  },
38427
38940
  end: {
38428
- line: 33,
38941
+ line: 34,
38429
38942
  column: 64
38430
38943
  }
38431
38944
  }],
38432
- line: 33
38945
+ line: 34
38433
38946
  },
38434
38947
  "5": {
38435
38948
  loc: {
38436
38949
  start: {
38437
- line: 51,
38950
+ line: 52,
38438
38951
  column: 8
38439
38952
  },
38440
38953
  end: {
38441
- line: 51,
38954
+ line: 52,
38442
38955
  column: 74
38443
38956
  }
38444
38957
  },
38445
38958
  type: "cond-expr",
38446
38959
  locations: [{
38447
38960
  start: {
38448
- line: 51,
38961
+ line: 52,
38449
38962
  column: 31
38450
38963
  },
38451
38964
  end: {
38452
- line: 51,
38965
+ line: 52,
38453
38966
  column: 61
38454
38967
  }
38455
38968
  }, {
38456
38969
  start: {
38457
- line: 51,
38970
+ line: 52,
38458
38971
  column: 64
38459
38972
  },
38460
38973
  end: {
38461
- line: 51,
38974
+ line: 52,
38462
38975
  column: 74
38463
38976
  }
38464
38977
  }],
38465
- line: 51
38978
+ line: 52
38466
38979
  },
38467
38980
  "6": {
38468
38981
  loc: {
38469
38982
  start: {
38470
- line: 52,
38983
+ line: 53,
38471
38984
  column: 10
38472
38985
  },
38473
38986
  end: {
38474
- line: 55,
38987
+ line: 56,
38475
38988
  column: 7
38476
38989
  }
38477
38990
  },
38478
38991
  type: "binary-expr",
38479
38992
  locations: [{
38480
38993
  start: {
38481
- line: 52,
38994
+ line: 53,
38482
38995
  column: 10
38483
38996
  },
38484
38997
  end: {
38485
- line: 52,
38998
+ line: 53,
38486
38999
  column: 20
38487
39000
  }
38488
39001
  }, {
38489
39002
  start: {
38490
- line: 52,
39003
+ line: 53,
38491
39004
  column: 24
38492
39005
  },
38493
39006
  end: {
38494
- line: 55,
39007
+ line: 56,
38495
39008
  column: 7
38496
39009
  }
38497
39010
  }],
38498
- line: 52
39011
+ line: 53
38499
39012
  },
38500
39013
  "7": {
38501
39014
  loc: {
38502
39015
  start: {
38503
- line: 61,
39016
+ line: 62,
38504
39017
  column: 4
38505
39018
  },
38506
39019
  end: {
38507
- line: 64,
39020
+ line: 65,
38508
39021
  column: 5
38509
39022
  }
38510
39023
  },
38511
39024
  type: "if",
38512
39025
  locations: [{
38513
39026
  start: {
38514
- line: 61,
39027
+ line: 62,
38515
39028
  column: 4
38516
39029
  },
38517
39030
  end: {
38518
- line: 64,
39031
+ line: 65,
38519
39032
  column: 5
38520
39033
  }
38521
39034
  }, {
@@ -38528,139 +39041,238 @@ function cov_1jyxy15ds3() {
38528
39041
  column: undefined
38529
39042
  }
38530
39043
  }],
38531
- line: 61
39044
+ line: 62
38532
39045
  },
38533
39046
  "8": {
38534
39047
  loc: {
38535
39048
  start: {
38536
- line: 76,
38537
- column: 39
39049
+ line: 67,
39050
+ column: 4
38538
39051
  },
38539
39052
  end: {
38540
- line: 76,
38541
- column: 67
39053
+ line: 70,
39054
+ column: 5
39055
+ }
39056
+ },
39057
+ type: "if",
39058
+ locations: [{
39059
+ start: {
39060
+ line: 67,
39061
+ column: 4
39062
+ },
39063
+ end: {
39064
+ line: 70,
39065
+ column: 5
39066
+ }
39067
+ }, {
39068
+ start: {
39069
+ line: undefined,
39070
+ column: undefined
39071
+ },
39072
+ end: {
39073
+ line: undefined,
39074
+ column: undefined
39075
+ }
39076
+ }],
39077
+ line: 67
39078
+ },
39079
+ "9": {
39080
+ loc: {
39081
+ start: {
39082
+ line: 87,
39083
+ column: 4
39084
+ },
39085
+ end: {
39086
+ line: 89,
39087
+ column: 32
38542
39088
  }
38543
39089
  },
38544
39090
  type: "binary-expr",
38545
39091
  locations: [{
38546
39092
  start: {
38547
- line: 76,
38548
- column: 39
39093
+ line: 87,
39094
+ column: 4
38549
39095
  },
38550
39096
  end: {
38551
- line: 76,
38552
- column: 51
39097
+ line: 89,
39098
+ column: 5
39099
+ }
39100
+ }, {
39101
+ start: {
39102
+ line: 89,
39103
+ column: 9
39104
+ },
39105
+ end: {
39106
+ line: 89,
39107
+ column: 32
39108
+ }
39109
+ }],
39110
+ line: 87
39111
+ },
39112
+ "10": {
39113
+ loc: {
39114
+ start: {
39115
+ line: 88,
39116
+ column: 41
39117
+ },
39118
+ end: {
39119
+ line: 88,
39120
+ column: 69
39121
+ }
39122
+ },
39123
+ type: "binary-expr",
39124
+ locations: [{
39125
+ start: {
39126
+ line: 88,
39127
+ column: 41
39128
+ },
39129
+ end: {
39130
+ line: 88,
39131
+ column: 53
39132
+ }
39133
+ }, {
39134
+ start: {
39135
+ line: 88,
39136
+ column: 57
39137
+ },
39138
+ end: {
39139
+ line: 88,
39140
+ column: 69
39141
+ }
39142
+ }],
39143
+ line: 88
39144
+ },
39145
+ "11": {
39146
+ loc: {
39147
+ start: {
39148
+ line: 91,
39149
+ column: 2
39150
+ },
39151
+ end: {
39152
+ line: 91,
39153
+ column: 72
39154
+ }
39155
+ },
39156
+ type: "if",
39157
+ locations: [{
39158
+ start: {
39159
+ line: 91,
39160
+ column: 2
39161
+ },
39162
+ end: {
39163
+ line: 91,
39164
+ column: 72
38553
39165
  }
38554
39166
  }, {
38555
39167
  start: {
38556
- line: 76,
38557
- column: 55
39168
+ line: undefined,
39169
+ column: undefined
38558
39170
  },
38559
39171
  end: {
38560
- line: 76,
38561
- column: 67
39172
+ line: undefined,
39173
+ column: undefined
38562
39174
  }
38563
39175
  }],
38564
- line: 76
39176
+ line: 91
38565
39177
  },
38566
- "9": {
39178
+ "12": {
38567
39179
  loc: {
38568
39180
  start: {
38569
- line: 79,
38570
- column: 2
39181
+ line: 91,
39182
+ column: 6
38571
39183
  },
38572
39184
  end: {
38573
- line: 79,
38574
- column: 45
39185
+ line: 91,
39186
+ column: 58
38575
39187
  }
38576
39188
  },
38577
- type: "if",
39189
+ type: "binary-expr",
38578
39190
  locations: [{
38579
39191
  start: {
38580
- line: 79,
38581
- column: 2
39192
+ line: 91,
39193
+ column: 6
38582
39194
  },
38583
39195
  end: {
38584
- line: 79,
38585
- column: 45
39196
+ line: 91,
39197
+ column: 31
38586
39198
  }
38587
39199
  }, {
38588
39200
  start: {
38589
- line: undefined,
38590
- column: undefined
39201
+ line: 91,
39202
+ column: 35
38591
39203
  },
38592
39204
  end: {
38593
- line: undefined,
38594
- column: undefined
39205
+ line: 91,
39206
+ column: 58
38595
39207
  }
38596
39208
  }],
38597
- line: 79
39209
+ line: 91
38598
39210
  },
38599
- "10": {
39211
+ "13": {
38600
39212
  loc: {
38601
39213
  start: {
38602
- line: 96,
39214
+ line: 119,
38603
39215
  column: 7
38604
39216
  },
38605
39217
  end: {
38606
- line: 98,
39218
+ line: 121,
38607
39219
  column: 7
38608
39220
  }
38609
39221
  },
38610
39222
  type: "binary-expr",
38611
39223
  locations: [{
38612
39224
  start: {
38613
- line: 96,
39225
+ line: 119,
38614
39226
  column: 7
38615
39227
  },
38616
39228
  end: {
38617
- line: 96,
39229
+ line: 119,
38618
39230
  column: 23
38619
39231
  }
38620
39232
  }, {
38621
39233
  start: {
38622
- line: 97,
39234
+ line: 120,
38623
39235
  column: 8
38624
39236
  },
38625
39237
  end: {
38626
- line: 97,
39238
+ line: 120,
38627
39239
  column: 72
38628
39240
  }
38629
39241
  }],
38630
- line: 96
39242
+ line: 119
38631
39243
  },
38632
- "11": {
39244
+ "14": {
38633
39245
  loc: {
38634
39246
  start: {
38635
- line: 99,
39247
+ line: 122,
38636
39248
  column: 7
38637
39249
  },
38638
39250
  end: {
38639
- line: 106,
39251
+ line: 129,
38640
39252
  column: 7
38641
39253
  }
38642
39254
  },
38643
39255
  type: "binary-expr",
38644
39256
  locations: [{
38645
39257
  start: {
38646
- line: 99,
39258
+ line: 122,
38647
39259
  column: 7
38648
39260
  },
38649
39261
  end: {
38650
- line: 99,
39262
+ line: 122,
38651
39263
  column: 23
38652
39264
  }
38653
39265
  }, {
38654
39266
  start: {
38655
- line: 100,
39267
+ line: 123,
38656
39268
  column: 8
38657
39269
  },
38658
39270
  end: {
38659
- line: 105,
39271
+ line: 128,
38660
39272
  column: 10
38661
39273
  }
38662
39274
  }],
38663
- line: 99
39275
+ line: 122
38664
39276
  }
38665
39277
  },
38666
39278
  s: {
@@ -38693,7 +39305,15 @@ function cov_1jyxy15ds3() {
38693
39305
  "26": 0,
38694
39306
  "27": 0,
38695
39307
  "28": 0,
38696
- "29": 0
39308
+ "29": 0,
39309
+ "30": 0,
39310
+ "31": 0,
39311
+ "32": 0,
39312
+ "33": 0,
39313
+ "34": 0,
39314
+ "35": 0,
39315
+ "36": 0,
39316
+ "37": 0
38697
39317
  },
38698
39318
  f: {
38699
39319
  "0": 0,
@@ -38704,7 +39324,10 @@ function cov_1jyxy15ds3() {
38704
39324
  "5": 0,
38705
39325
  "6": 0,
38706
39326
  "7": 0,
38707
- "8": 0
39327
+ "8": 0,
39328
+ "9": 0,
39329
+ "10": 0,
39330
+ "11": 0
38708
39331
  },
38709
39332
  b: {
38710
39333
  "0": [0],
@@ -38718,10 +39341,13 @@ function cov_1jyxy15ds3() {
38718
39341
  "8": [0, 0],
38719
39342
  "9": [0, 0],
38720
39343
  "10": [0, 0],
38721
- "11": [0, 0]
39344
+ "11": [0, 0],
39345
+ "12": [0, 0],
39346
+ "13": [0, 0],
39347
+ "14": [0, 0]
38722
39348
  },
38723
39349
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
38724
- hash: "d84097ebe2b4c00473ece75fee6b84b8d7524469"
39350
+ hash: "513c5fef581a1f26ee7e3a240d2a23468af80a8c"
38725
39351
  };
38726
39352
  var coverage = global[gcv] || (global[gcv] = {});
38727
39353
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -38754,102 +39380,119 @@ var Bar = function Bar(_ref) {
38754
39380
  _ref$setIsPaneOpen = _ref.setIsPaneOpen,
38755
39381
  setIsPaneOpen = _ref$setIsPaneOpen === void 0 ? (cov_1jyxy15ds3().b[2][0]++, ramda.identity) : _ref$setIsPaneOpen,
38756
39382
  _ref$childrenKeys = _ref.childrenKeys,
38757
- childrenKeys = _ref$childrenKeys === void 0 ? (cov_1jyxy15ds3().b[3][0]++, []) : _ref$childrenKeys,
38758
- children = _ref.children;
39383
+ childrenKeys = _ref$childrenKeys === void 0 ? (cov_1jyxy15ds3().b[3][0]++, []) : _ref$childrenKeys;
38759
39384
  cov_1jyxy15ds3().f[0]++;
38760
- var keywordFilter = (cov_1jyxy15ds3().s[1]++, _objectSpread$2({
39385
+ var searchParams = (cov_1jyxy15ds3().s[1]++, new URLSearchParams(window.location.search));
39386
+ var keywordFilter = (cov_1jyxy15ds3().s[2]++, _objectSpread$2({
38761
39387
  key: "keyword",
38762
39388
  type: "text",
38763
39389
  rule: "contains",
38764
39390
  label: "Keyword"
38765
39391
  }, keyword));
38766
- var filters = (cov_1jyxy15ds3().s[2]++, buildFiltersFromSearchParams(keyword.value !== "" ? (cov_1jyxy15ds3().b[4][0]++, [keywordFilter].concat(_toConsumableArray(columns))) : (cov_1jyxy15ds3().b[4][1]++, columns)));
38767
- var nonHiddenFilters = (cov_1jyxy15ds3().s[3]++, removeBy({
39392
+ var filters = (cov_1jyxy15ds3().s[3]++, buildFiltersFromSearchParams(keyword.value !== "" ? (cov_1jyxy15ds3().b[4][0]++, [keywordFilter].concat(_toConsumableArray(columns))) : (cov_1jyxy15ds3().b[4][1]++, columns)));
39393
+ var nonHiddenFilters = (cov_1jyxy15ds3().s[4]++, removeBy({
38768
39394
  hidden: true
38769
39395
  }, filters));
38770
- var history = (cov_1jyxy15ds3().s[4]++, reactRouterDom.useHistory());
38771
- var _ref2 = (cov_1jyxy15ds3().s[5]++, useTranslation()),
39396
+ var history = (cov_1jyxy15ds3().s[5]++, reactRouterDom.useHistory());
39397
+ var _ref2 = (cov_1jyxy15ds3().s[6]++, useTranslation()),
38772
39398
  t = _ref2.t;
38773
- cov_1jyxy15ds3().s[6]++;
39399
+ cov_1jyxy15ds3().s[7]++;
38774
39400
  t$2.useEffect(function () {
38775
39401
  cov_1jyxy15ds3().f[1]++;
38776
- var handler = (cov_1jyxy15ds3().s[7]++, setTimeout(function () {
39402
+ var handler = (cov_1jyxy15ds3().s[8]++, setTimeout(function () {
38777
39403
  cov_1jyxy15ds3().f[2]++;
38778
- cov_1jyxy15ds3().s[8]++;
39404
+ cov_1jyxy15ds3().s[9]++;
38779
39405
  handleSubmit(filters);
38780
39406
  }, 500));
38781
- cov_1jyxy15ds3().s[9]++;
39407
+ cov_1jyxy15ds3().s[10]++;
38782
39408
  return function () {
38783
39409
  cov_1jyxy15ds3().f[3]++;
38784
- cov_1jyxy15ds3().s[10]++;
39410
+ cov_1jyxy15ds3().s[11]++;
38785
39411
  return clearTimeout(handler);
38786
39412
  };
38787
39413
  }, [keyword.value]);
38788
- cov_1jyxy15ds3().s[11]++;
39414
+ cov_1jyxy15ds3().s[12]++;
38789
39415
  var handleSubmit = function handleSubmit(newFilters, isClearAll) {
38790
39416
  cov_1jyxy15ds3().f[4]++;
38791
- var params = (cov_1jyxy15ds3().s[12]++, buildUrlFromFilters(_objectSpread$2({
39417
+ var params = (cov_1jyxy15ds3().s[13]++, buildUrlFromFilters(_objectSpread$2({
38792
39418
  columns: columns,
38793
39419
  filters: keyword.value !== "" ? (cov_1jyxy15ds3().b[5][0]++, [].concat(_toConsumableArray(newFilters), [keywordFilter])) : (cov_1jyxy15ds3().b[5][1]++, newFilters)
38794
39420
  }, (cov_1jyxy15ds3().b[6][0]++, isClearAll) && (cov_1jyxy15ds3().b[6][1]++, {
38795
39421
  isClearAll: true,
38796
39422
  childrenKeys: childrenKeys
38797
39423
  }))));
38798
- cov_1jyxy15ds3().s[13]++;
39424
+ cov_1jyxy15ds3().s[14]++;
38799
39425
  history.push({
38800
39426
  search: params
38801
39427
  });
38802
39428
  };
38803
- cov_1jyxy15ds3().s[14]++;
39429
+ cov_1jyxy15ds3().s[15]++;
38804
39430
  var handleDelete = function handleDelete(key) {
38805
39431
  cov_1jyxy15ds3().f[5]++;
38806
- cov_1jyxy15ds3().s[15]++;
39432
+ cov_1jyxy15ds3().s[16]++;
38807
39433
  if (key === "keyword") {
38808
39434
  cov_1jyxy15ds3().b[7][0]++;
38809
- cov_1jyxy15ds3().s[16]++;
38810
- keyword.setValue("");
38811
39435
  cov_1jyxy15ds3().s[17]++;
39436
+ keyword.setValue("");
39437
+ cov_1jyxy15ds3().s[18]++;
38812
39438
  keyword.value = "";
38813
39439
  } else {
38814
39440
  cov_1jyxy15ds3().b[7][1]++;
38815
39441
  }
38816
- var newFilters = (cov_1jyxy15ds3().s[18]++, removeBy({
39442
+ cov_1jyxy15ds3().s[19]++;
39443
+ if (childrenKeys.includes(key)) {
39444
+ cov_1jyxy15ds3().b[8][0]++;
39445
+ cov_1jyxy15ds3().s[20]++;
39446
+ searchParams["delete"](key);
39447
+ cov_1jyxy15ds3().s[21]++;
39448
+ history.push({
39449
+ search: searchParams.toString()
39450
+ });
39451
+ } else {
39452
+ cov_1jyxy15ds3().b[8][1]++;
39453
+ }
39454
+ var newFilters = (cov_1jyxy15ds3().s[22]++, removeBy({
38817
39455
  key: key
38818
39456
  }, filters));
38819
- cov_1jyxy15ds3().s[19]++;
39457
+ cov_1jyxy15ds3().s[23]++;
38820
39458
  handleSubmit(newFilters);
38821
39459
  };
38822
- cov_1jyxy15ds3().s[20]++;
39460
+ cov_1jyxy15ds3().s[24]++;
38823
39461
  var handleClearAll = function handleClearAll() {
38824
39462
  cov_1jyxy15ds3().f[6]++;
38825
- cov_1jyxy15ds3().s[21]++;
39463
+ cov_1jyxy15ds3().s[25]++;
38826
39464
  keyword.setValue("");
38827
- cov_1jyxy15ds3().s[22]++;
39465
+ cov_1jyxy15ds3().s[26]++;
38828
39466
  keyword.value = "";
38829
- cov_1jyxy15ds3().s[23]++;
39467
+ cov_1jyxy15ds3().s[27]++;
38830
39468
  handleSubmit([], true);
38831
39469
  };
38832
- var hideClearButton = (cov_1jyxy15ds3().s[24]++, nonHiddenFilters.every(function (_ref3) {
38833
- var defaultValue = _ref3.defaultValue,
38834
- isClearable = _ref3.isClearable;
39470
+ var childrenFiltersApplied = (cov_1jyxy15ds3().s[28]++, childrenKeys.some(function (key) {
38835
39471
  cov_1jyxy15ds3().f[7]++;
38836
- cov_1jyxy15ds3().s[25]++;
38837
- return (cov_1jyxy15ds3().b[8][0]++, defaultValue) && (cov_1jyxy15ds3().b[8][1]++, !isClearable);
39472
+ cov_1jyxy15ds3().s[29]++;
39473
+ return searchParams.get(key);
38838
39474
  }));
38839
- cov_1jyxy15ds3().s[26]++;
38840
- if (ramda.isEmpty(nonHiddenFilters)) {
38841
- cov_1jyxy15ds3().b[9][0]++;
38842
- cov_1jyxy15ds3().s[27]++;
39475
+ var hideClearButton = (cov_1jyxy15ds3().s[30]++, (cov_1jyxy15ds3().b[9][0]++, nonHiddenFilters.every(function (_ref3) {
39476
+ var defaultValue = _ref3.defaultValue,
39477
+ isClearable = _ref3.isClearable;
39478
+ cov_1jyxy15ds3().f[8]++;
39479
+ cov_1jyxy15ds3().s[31]++;
39480
+ return (cov_1jyxy15ds3().b[10][0]++, defaultValue) && (cov_1jyxy15ds3().b[10][1]++, !isClearable);
39481
+ })) && (cov_1jyxy15ds3().b[9][1]++, !childrenFiltersApplied));
39482
+ cov_1jyxy15ds3().s[32]++;
39483
+ if ((cov_1jyxy15ds3().b[12][0]++, ramda.isEmpty(nonHiddenFilters)) && (cov_1jyxy15ds3().b[12][1]++, !childrenFiltersApplied)) {
39484
+ cov_1jyxy15ds3().b[11][0]++;
39485
+ cov_1jyxy15ds3().s[33]++;
38843
39486
  return null;
38844
39487
  } else {
38845
- cov_1jyxy15ds3().b[9][1]++;
39488
+ cov_1jyxy15ds3().b[11][1]++;
38846
39489
  }
38847
- cov_1jyxy15ds3().s[28]++;
39490
+ cov_1jyxy15ds3().s[34]++;
38848
39491
  return /*#__PURE__*/t__default["default"].createElement("div", {
38849
39492
  className: classnames__default["default"]("neeto-filters-bar", _defineProperty$4({}, className, className))
38850
39493
  }, nonHiddenFilters.map(function (filter) {
38851
- cov_1jyxy15ds3().f[8]++;
38852
- cov_1jyxy15ds3().s[29]++;
39494
+ cov_1jyxy15ds3().f[9]++;
39495
+ cov_1jyxy15ds3().s[35]++;
38853
39496
  return /*#__PURE__*/t__default["default"].createElement(t__default["default"].Fragment, {
38854
39497
  key: filter.key
38855
39498
  }, /*#__PURE__*/t__default["default"].createElement(Block, {
@@ -38859,11 +39502,27 @@ var Bar = function Bar(_ref) {
38859
39502
  }), /*#__PURE__*/t__default["default"].createElement("div", {
38860
39503
  className: "neeto-filters-bar--separator"
38861
39504
  }));
38862
- }), children, (cov_1jyxy15ds3().b[10][0]++, isNotNil(entity)) && (cov_1jyxy15ds3().b[10][1]++, /*#__PURE__*/t__default["default"].createElement(Segment, {
39505
+ }), childrenKeys.filter(function (childKey) {
39506
+ cov_1jyxy15ds3().f[10]++;
39507
+ cov_1jyxy15ds3().s[36]++;
39508
+ return searchParams.get(childKey);
39509
+ }).map(function (childKey) {
39510
+ cov_1jyxy15ds3().f[11]++;
39511
+ cov_1jyxy15ds3().s[37]++;
39512
+ return /*#__PURE__*/t__default["default"].createElement(t__default["default"].Fragment, {
39513
+ key: childKey
39514
+ }, /*#__PURE__*/t__default["default"].createElement(ChildBlock, {
39515
+ childKey: childKey,
39516
+ handleDelete: handleDelete,
39517
+ setIsPaneOpen: setIsPaneOpen
39518
+ }), /*#__PURE__*/t__default["default"].createElement("div", {
39519
+ className: "neeto-filters-bar--separator"
39520
+ }));
39521
+ }), (cov_1jyxy15ds3().b[13][0]++, isNotNil(entity)) && (cov_1jyxy15ds3().b[13][1]++, /*#__PURE__*/t__default["default"].createElement(Segment, {
38863
39522
  columns: columns,
38864
39523
  entity: entity,
38865
39524
  filters: filters
38866
- })), (cov_1jyxy15ds3().b[11][0]++, !hideClearButton) && (cov_1jyxy15ds3().b[11][1]++, /*#__PURE__*/t__default["default"].createElement(neetoui.Button, {
39525
+ })), (cov_1jyxy15ds3().b[14][0]++, !hideClearButton) && (cov_1jyxy15ds3().b[14][1]++, /*#__PURE__*/t__default["default"].createElement(neetoui.Button, {
38867
39526
  "data-cy": "neeto-filters-bar-clear-btn",
38868
39527
  label: t("common.clearFilters"),
38869
39528
  style: "text",
@@ -49663,7 +50322,7 @@ var Item = function Item(_ref) {
49663
50322
  var _excluded = ["size", "isOpen", "onClose", "columns", "onChange", "isSearchable", "keyword", "onSelectorsChange", "childrenKeys", "children"];
49664
50323
  function cov_fes6hm9vc() {
49665
50324
  var path = "/home/runner/work/neeto-filters-frontend/neeto-filters-frontend/src/components/Pane/index.jsx";
49666
- var hash = "a08e4ae9fe59aa89f97310cdf7295fcac0390a5e";
50325
+ var hash = "da2fc737addf1f27222bfa8949eb480421307402";
49667
50326
  var global = new Function("return this")();
49668
50327
  var gcv = "__coverage__";
49669
50328
  var coverageData = {
@@ -49675,88 +50334,88 @@ function cov_fes6hm9vc() {
49675
50334
  column: 13
49676
50335
  },
49677
50336
  end: {
49678
- line: 166,
50337
+ line: 172,
49679
50338
  column: 1
49680
50339
  }
49681
50340
  },
49682
50341
  "1": {
49683
50342
  start: {
49684
50343
  line: 32,
49685
- column: 38
50344
+ column: 23
49686
50345
  },
49687
50346
  end: {
49688
50347
  line: 32,
49689
- column: 50
50348
+ column: 39
49690
50349
  }
49691
50350
  },
49692
50351
  "2": {
49693
50352
  start: {
49694
50353
  line: 33,
49695
- column: 18
50354
+ column: 38
49696
50355
  },
49697
50356
  end: {
49698
50357
  line: 33,
49699
- column: 30
50358
+ column: 50
49700
50359
  }
49701
50360
  },
49702
50361
  "3": {
49703
50362
  start: {
49704
50363
  line: 34,
49705
- column: 16
50364
+ column: 18
49706
50365
  },
49707
50366
  end: {
49708
50367
  line: 34,
49709
- column: 32
50368
+ column: 30
49710
50369
  }
49711
50370
  },
49712
50371
  "4": {
49713
50372
  start: {
49714
50373
  line: 35,
49715
- column: 57
50374
+ column: 16
49716
50375
  },
49717
50376
  end: {
49718
- line: 38,
49719
- column: 4
50377
+ line: 35,
50378
+ column: 32
49720
50379
  }
49721
50380
  },
49722
50381
  "5": {
49723
50382
  start: {
49724
- line: 40,
49725
- column: 18
50383
+ line: 36,
50384
+ column: 57
49726
50385
  },
49727
50386
  end: {
49728
- line: 45,
50387
+ line: 39,
49729
50388
  column: 4
49730
50389
  }
49731
50390
  },
49732
50391
  "6": {
49733
50392
  start: {
49734
- line: 47,
49735
- column: 24
50393
+ line: 41,
50394
+ column: 18
49736
50395
  },
49737
50396
  end: {
49738
- line: 53,
49739
- column: 3
50397
+ line: 46,
50398
+ column: 4
49740
50399
  }
49741
50400
  },
49742
50401
  "7": {
49743
50402
  start: {
49744
- line: 55,
49745
- column: 25
50403
+ line: 48,
50404
+ column: 24
49746
50405
  },
49747
50406
  end: {
49748
- line: 59,
50407
+ line: 54,
49749
50408
  column: 3
49750
50409
  }
49751
50410
  },
49752
50411
  "8": {
49753
50412
  start: {
49754
50413
  line: 56,
49755
- column: 4
50414
+ column: 25
49756
50415
  },
49757
50416
  end: {
49758
- line: 56,
49759
- column: 25
50417
+ line: 60,
50418
+ column: 3
49760
50419
  }
49761
50420
  },
49762
50421
  "9": {
@@ -49766,7 +50425,7 @@ function cov_fes6hm9vc() {
49766
50425
  },
49767
50426
  end: {
49768
50427
  line: 57,
49769
- column: 23
50428
+ column: 25
49770
50429
  }
49771
50430
  },
49772
50431
  "10": {
@@ -49776,27 +50435,27 @@ function cov_fes6hm9vc() {
49776
50435
  },
49777
50436
  end: {
49778
50437
  line: 58,
49779
- column: 27
50438
+ column: 23
49780
50439
  }
49781
50440
  },
49782
50441
  "11": {
49783
50442
  start: {
49784
- line: 61,
49785
- column: 22
50443
+ line: 59,
50444
+ column: 4
49786
50445
  },
49787
50446
  end: {
49788
- line: 69,
49789
- column: 3
50447
+ line: 59,
50448
+ column: 27
49790
50449
  }
49791
50450
  },
49792
50451
  "12": {
49793
50452
  start: {
49794
50453
  line: 62,
49795
- column: 25
50454
+ column: 22
49796
50455
  },
49797
50456
  end: {
49798
- line: 62,
49799
- column: 41
50457
+ line: 69,
50458
+ column: 3
49800
50459
  }
49801
50460
  },
49802
50461
  "13": {
@@ -49891,61 +50550,91 @@ function cov_fes6hm9vc() {
49891
50550
  },
49892
50551
  "22": {
49893
50552
  start: {
49894
- line: 84,
50553
+ line: 85,
50554
+ column: 4
50555
+ },
50556
+ end: {
50557
+ line: 87,
50558
+ column: 53
50559
+ }
50560
+ },
50561
+ "23": {
50562
+ start: {
50563
+ line: 86,
50564
+ column: 35
50565
+ },
50566
+ end: {
50567
+ line: 86,
50568
+ column: 77
50569
+ }
50570
+ },
50571
+ "24": {
50572
+ start: {
50573
+ line: 87,
50574
+ column: 35
50575
+ },
50576
+ end: {
50577
+ line: 87,
50578
+ column: 52
50579
+ }
50580
+ },
50581
+ "25": {
50582
+ start: {
50583
+ line: 89,
49895
50584
  column: 2
49896
50585
  },
49897
50586
  end: {
49898
- line: 165,
50587
+ line: 171,
49899
50588
  column: 4
49900
50589
  }
49901
50590
  },
49902
- "23": {
50591
+ "26": {
49903
50592
  start: {
49904
- line: 102,
50593
+ line: 107,
49905
50594
  column: 33
49906
50595
  },
49907
50596
  end: {
49908
- line: 102,
50597
+ line: 107,
49909
50598
  column: 66
49910
50599
  }
49911
50600
  },
49912
- "24": {
50601
+ "27": {
49913
50602
  start: {
49914
- line: 106,
50603
+ line: 111,
49915
50604
  column: 12
49916
50605
  },
49917
50606
  end: {
49918
- line: 112,
50607
+ line: 117,
49919
50608
  column: 14
49920
50609
  }
49921
50610
  },
49922
- "25": {
50611
+ "28": {
49923
50612
  start: {
49924
- line: 117,
50613
+ line: 122,
49925
50614
  column: 16
49926
50615
  },
49927
50616
  end: {
49928
- line: 117,
50617
+ line: 122,
49929
50618
  column: 50
49930
50619
  }
49931
50620
  },
49932
- "26": {
50621
+ "29": {
49933
50622
  start: {
49934
- line: 121,
50623
+ line: 126,
49935
50624
  column: 16
49936
50625
  },
49937
50626
  end: {
49938
- line: 135,
50627
+ line: 140,
49939
50628
  column: 33
49940
50629
  }
49941
50630
  },
49942
- "27": {
50631
+ "30": {
49943
50632
  start: {
49944
- line: 127,
50633
+ line: 132,
49945
50634
  column: 20
49946
50635
  },
49947
50636
  end: {
49948
- line: 133,
50637
+ line: 138,
49949
50638
  column: 22
49950
50639
  }
49951
50640
  }
@@ -49969,7 +50658,7 @@ function cov_fes6hm9vc() {
49969
50658
  column: 6
49970
50659
  },
49971
50660
  end: {
49972
- line: 166,
50661
+ line: 172,
49973
50662
  column: 1
49974
50663
  }
49975
50664
  },
@@ -49979,41 +50668,41 @@ function cov_fes6hm9vc() {
49979
50668
  name: "(anonymous_1)",
49980
50669
  decl: {
49981
50670
  start: {
49982
- line: 55,
50671
+ line: 56,
49983
50672
  column: 25
49984
50673
  },
49985
50674
  end: {
49986
- line: 55,
50675
+ line: 56,
49987
50676
  column: 26
49988
50677
  }
49989
50678
  },
49990
50679
  loc: {
49991
50680
  start: {
49992
- line: 55,
50681
+ line: 56,
49993
50682
  column: 31
49994
50683
  },
49995
50684
  end: {
49996
- line: 59,
50685
+ line: 60,
49997
50686
  column: 3
49998
50687
  }
49999
50688
  },
50000
- line: 55
50689
+ line: 56
50001
50690
  },
50002
50691
  "2": {
50003
50692
  name: "(anonymous_2)",
50004
50693
  decl: {
50005
50694
  start: {
50006
- line: 61,
50695
+ line: 62,
50007
50696
  column: 22
50008
50697
  },
50009
50698
  end: {
50010
- line: 61,
50699
+ line: 62,
50011
50700
  column: 23
50012
50701
  }
50013
50702
  },
50014
50703
  loc: {
50015
50704
  start: {
50016
- line: 61,
50705
+ line: 62,
50017
50706
  column: 28
50018
50707
  },
50019
50708
  end: {
@@ -50021,7 +50710,7 @@ function cov_fes6hm9vc() {
50021
50710
  column: 3
50022
50711
  }
50023
50712
  },
50024
- line: 61
50713
+ line: 62
50025
50714
  },
50026
50715
  "3": {
50027
50716
  name: "(anonymous_3)",
@@ -50075,121 +50764,169 @@ function cov_fes6hm9vc() {
50075
50764
  name: "(anonymous_5)",
50076
50765
  decl: {
50077
50766
  start: {
50078
- line: 102,
50767
+ line: 86,
50768
+ column: 6
50769
+ },
50770
+ end: {
50771
+ line: 86,
50772
+ column: 7
50773
+ }
50774
+ },
50775
+ loc: {
50776
+ start: {
50777
+ line: 86,
50778
+ column: 35
50779
+ },
50780
+ end: {
50781
+ line: 86,
50782
+ column: 77
50783
+ }
50784
+ },
50785
+ line: 86
50786
+ },
50787
+ "6": {
50788
+ name: "(anonymous_6)",
50789
+ decl: {
50790
+ start: {
50791
+ line: 87,
50792
+ column: 28
50793
+ },
50794
+ end: {
50795
+ line: 87,
50796
+ column: 29
50797
+ }
50798
+ },
50799
+ loc: {
50800
+ start: {
50801
+ line: 87,
50802
+ column: 35
50803
+ },
50804
+ end: {
50805
+ line: 87,
50806
+ column: 52
50807
+ }
50808
+ },
50809
+ line: 87
50810
+ },
50811
+ "7": {
50812
+ name: "(anonymous_7)",
50813
+ decl: {
50814
+ start: {
50815
+ line: 107,
50079
50816
  column: 24
50080
50817
  },
50081
50818
  end: {
50082
- line: 102,
50819
+ line: 107,
50083
50820
  column: 25
50084
50821
  }
50085
50822
  },
50086
50823
  loc: {
50087
50824
  start: {
50088
- line: 102,
50825
+ line: 107,
50089
50826
  column: 33
50090
50827
  },
50091
50828
  end: {
50092
- line: 102,
50829
+ line: 107,
50093
50830
  column: 66
50094
50831
  }
50095
50832
  },
50096
- line: 102
50833
+ line: 107
50097
50834
  },
50098
- "6": {
50099
- name: "(anonymous_6)",
50835
+ "8": {
50836
+ name: "(anonymous_8)",
50100
50837
  decl: {
50101
50838
  start: {
50102
- line: 105,
50839
+ line: 110,
50103
50840
  column: 32
50104
50841
  },
50105
50842
  end: {
50106
- line: 105,
50843
+ line: 110,
50107
50844
  column: 33
50108
50845
  }
50109
50846
  },
50110
50847
  loc: {
50111
50848
  start: {
50112
- line: 106,
50849
+ line: 111,
50113
50850
  column: 12
50114
50851
  },
50115
50852
  end: {
50116
- line: 112,
50853
+ line: 117,
50117
50854
  column: 14
50118
50855
  }
50119
50856
  },
50120
- line: 106
50857
+ line: 111
50121
50858
  },
50122
- "7": {
50123
- name: "(anonymous_7)",
50859
+ "9": {
50860
+ name: "(anonymous_9)",
50124
50861
  decl: {
50125
50862
  start: {
50126
- line: 116,
50863
+ line: 121,
50127
50864
  column: 57
50128
50865
  },
50129
50866
  end: {
50130
- line: 116,
50867
+ line: 121,
50131
50868
  column: 58
50132
50869
  }
50133
50870
  },
50134
50871
  loc: {
50135
50872
  start: {
50136
- line: 117,
50873
+ line: 122,
50137
50874
  column: 16
50138
50875
  },
50139
50876
  end: {
50140
- line: 117,
50877
+ line: 122,
50141
50878
  column: 50
50142
50879
  }
50143
50880
  },
50144
- line: 117
50881
+ line: 122
50145
50882
  },
50146
- "8": {
50147
- name: "(anonymous_8)",
50883
+ "10": {
50884
+ name: "(anonymous_10)",
50148
50885
  decl: {
50149
50886
  start: {
50150
- line: 120,
50887
+ line: 125,
50151
50888
  column: 34
50152
50889
  },
50153
50890
  end: {
50154
- line: 120,
50891
+ line: 125,
50155
50892
  column: 35
50156
50893
  }
50157
50894
  },
50158
50895
  loc: {
50159
50896
  start: {
50160
- line: 121,
50897
+ line: 126,
50161
50898
  column: 16
50162
50899
  },
50163
50900
  end: {
50164
- line: 135,
50901
+ line: 140,
50165
50902
  column: 33
50166
50903
  }
50167
50904
  },
50168
- line: 121
50905
+ line: 126
50169
50906
  },
50170
- "9": {
50171
- name: "(anonymous_9)",
50907
+ "11": {
50908
+ name: "(anonymous_11)",
50172
50909
  decl: {
50173
50910
  start: {
50174
- line: 126,
50911
+ line: 131,
50175
50912
  column: 31
50176
50913
  },
50177
50914
  end: {
50178
- line: 126,
50915
+ line: 131,
50179
50916
  column: 32
50180
50917
  }
50181
50918
  },
50182
50919
  loc: {
50183
50920
  start: {
50184
- line: 127,
50921
+ line: 132,
50185
50922
  column: 20
50186
50923
  },
50187
50924
  end: {
50188
- line: 133,
50925
+ line: 138,
50189
50926
  column: 22
50190
50927
  }
50191
50928
  },
50192
- line: 127
50929
+ line: 132
50193
50930
  }
50194
50931
  },
50195
50932
  branchMap: {
@@ -50220,50 +50957,50 @@ function cov_fes6hm9vc() {
50220
50957
  "1": {
50221
50958
  loc: {
50222
50959
  start: {
50223
- line: 35,
50960
+ line: 36,
50224
50961
  column: 10
50225
50962
  },
50226
50963
  end: {
50227
- line: 35,
50964
+ line: 36,
50228
50965
  column: 29
50229
50966
  }
50230
50967
  },
50231
50968
  type: "default-arg",
50232
50969
  locations: [{
50233
50970
  start: {
50234
- line: 35,
50971
+ line: 36,
50235
50972
  column: 27
50236
50973
  },
50237
50974
  end: {
50238
- line: 35,
50975
+ line: 36,
50239
50976
  column: 29
50240
50977
  }
50241
50978
  }],
50242
- line: 35
50979
+ line: 36
50243
50980
  },
50244
50981
  "2": {
50245
50982
  loc: {
50246
50983
  start: {
50247
- line: 35,
50984
+ line: 36,
50248
50985
  column: 31
50249
50986
  },
50250
50987
  end: {
50251
- line: 35,
50988
+ line: 36,
50252
50989
  column: 52
50253
50990
  }
50254
50991
  },
50255
50992
  type: "default-arg",
50256
50993
  locations: [{
50257
50994
  start: {
50258
- line: 35,
50995
+ line: 36,
50259
50996
  column: 50
50260
50997
  },
50261
50998
  end: {
50262
- line: 35,
50999
+ line: 36,
50263
51000
  column: 52
50264
51001
  }
50265
51002
  }],
50266
- line: 35
51003
+ line: 36
50267
51004
  },
50268
51005
  "3": {
50269
51006
  loc: {
@@ -50391,110 +51128,176 @@ function cov_fes6hm9vc() {
50391
51128
  "7": {
50392
51129
  loc: {
50393
51130
  start: {
50394
- line: 93,
51131
+ line: 85,
51132
+ column: 4
51133
+ },
51134
+ end: {
51135
+ line: 87,
51136
+ column: 53
51137
+ }
51138
+ },
51139
+ type: "binary-expr",
51140
+ locations: [{
51141
+ start: {
51142
+ line: 85,
51143
+ column: 4
51144
+ },
51145
+ end: {
51146
+ line: 87,
51147
+ column: 5
51148
+ }
51149
+ }, {
51150
+ start: {
51151
+ line: 87,
51152
+ column: 9
51153
+ },
51154
+ end: {
51155
+ line: 87,
51156
+ column: 53
51157
+ }
51158
+ }],
51159
+ line: 85
51160
+ },
51161
+ "8": {
51162
+ loc: {
51163
+ start: {
51164
+ line: 86,
51165
+ column: 35
51166
+ },
51167
+ end: {
51168
+ line: 86,
51169
+ column: 77
51170
+ }
51171
+ },
51172
+ type: "binary-expr",
51173
+ locations: [{
51174
+ start: {
51175
+ line: 86,
51176
+ column: 35
51177
+ },
51178
+ end: {
51179
+ line: 86,
51180
+ column: 51
51181
+ }
51182
+ }, {
51183
+ start: {
51184
+ line: 86,
51185
+ column: 55
51186
+ },
51187
+ end: {
51188
+ line: 86,
51189
+ column: 77
51190
+ }
51191
+ }],
51192
+ line: 86
51193
+ },
51194
+ "9": {
51195
+ loc: {
51196
+ start: {
51197
+ line: 98,
50395
51198
  column: 11
50396
51199
  },
50397
51200
  end: {
50398
- line: 104,
51201
+ line: 109,
50399
51202
  column: 11
50400
51203
  }
50401
51204
  },
50402
51205
  type: "binary-expr",
50403
51206
  locations: [{
50404
51207
  start: {
50405
- line: 93,
51208
+ line: 98,
50406
51209
  column: 11
50407
51210
  },
50408
51211
  end: {
50409
- line: 93,
51212
+ line: 98,
50410
51213
  column: 23
50411
51214
  }
50412
51215
  }, {
50413
51216
  start: {
50414
- line: 94,
51217
+ line: 99,
50415
51218
  column: 12
50416
51219
  },
50417
51220
  end: {
50418
- line: 103,
51221
+ line: 108,
50419
51222
  column: 14
50420
51223
  }
50421
51224
  }],
50422
- line: 93
51225
+ line: 98
50423
51226
  },
50424
- "8": {
51227
+ "10": {
50425
51228
  loc: {
50426
51229
  start: {
50427
- line: 114,
51230
+ line: 119,
50428
51231
  column: 11
50429
51232
  },
50430
51233
  end: {
50431
- line: 138,
51234
+ line: 143,
50432
51235
  column: 11
50433
51236
  }
50434
51237
  },
50435
51238
  type: "binary-expr",
50436
51239
  locations: [{
50437
51240
  start: {
50438
- line: 114,
51241
+ line: 119,
50439
51242
  column: 11
50440
51243
  },
50441
51244
  end: {
50442
- line: 114,
51245
+ line: 119,
50443
51246
  column: 36
50444
51247
  }
50445
51248
  }, {
50446
51249
  start: {
50447
- line: 115,
51250
+ line: 120,
50448
51251
  column: 12
50449
51252
  },
50450
51253
  end: {
50451
- line: 137,
51254
+ line: 142,
50452
51255
  column: 24
50453
51256
  }
50454
51257
  }],
50455
- line: 114
51258
+ line: 119
50456
51259
  },
50457
- "9": {
51260
+ "11": {
50458
51261
  loc: {
50459
51262
  start: {
50460
- line: 139,
51263
+ line: 144,
50461
51264
  column: 11
50462
51265
  },
50463
51266
  end: {
50464
- line: 145,
51267
+ line: 150,
50465
51268
  column: 11
50466
51269
  }
50467
51270
  },
50468
51271
  type: "binary-expr",
50469
51272
  locations: [{
50470
51273
  start: {
50471
- line: 139,
51274
+ line: 144,
50472
51275
  column: 11
50473
51276
  },
50474
51277
  end: {
50475
- line: 139,
51278
+ line: 144,
50476
51279
  column: 36
50477
51280
  }
50478
51281
  }, {
50479
51282
  start: {
50480
- line: 139,
51283
+ line: 144,
50481
51284
  column: 40
50482
51285
  },
50483
51286
  end: {
50484
- line: 139,
51287
+ line: 144,
50485
51288
  column: 63
50486
51289
  }
50487
51290
  }, {
50488
51291
  start: {
50489
- line: 140,
51292
+ line: 145,
50490
51293
  column: 12
50491
51294
  },
50492
51295
  end: {
50493
- line: 144,
51296
+ line: 149,
50494
51297
  column: 25
50495
51298
  }
50496
51299
  }],
50497
- line: 139
51300
+ line: 144
50498
51301
  }
50499
51302
  },
50500
51303
  s: {
@@ -50525,7 +51328,10 @@ function cov_fes6hm9vc() {
50525
51328
  "24": 0,
50526
51329
  "25": 0,
50527
51330
  "26": 0,
50528
- "27": 0
51331
+ "27": 0,
51332
+ "28": 0,
51333
+ "29": 0,
51334
+ "30": 0
50529
51335
  },
50530
51336
  f: {
50531
51337
  "0": 0,
@@ -50537,7 +51343,9 @@ function cov_fes6hm9vc() {
50537
51343
  "6": 0,
50538
51344
  "7": 0,
50539
51345
  "8": 0,
50540
- "9": 0
51346
+ "9": 0,
51347
+ "10": 0,
51348
+ "11": 0
50541
51349
  },
50542
51350
  b: {
50543
51351
  "0": [0],
@@ -50549,10 +51357,12 @@ function cov_fes6hm9vc() {
50549
51357
  "6": [0, 0],
50550
51358
  "7": [0, 0],
50551
51359
  "8": [0, 0],
50552
- "9": [0, 0, 0]
51360
+ "9": [0, 0],
51361
+ "10": [0, 0],
51362
+ "11": [0, 0, 0]
50553
51363
  },
50554
51364
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
50555
- hash: "a08e4ae9fe59aa89f97310cdf7295fcac0390a5e"
51365
+ hash: "da2fc737addf1f27222bfa8949eb480421307402"
50556
51366
  };
50557
51367
  var coverage = global[gcv] || (global[gcv] = {});
50558
51368
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -50585,14 +51395,15 @@ var Pane = function Pane(_ref) {
50585
51395
  children = _ref.children,
50586
51396
  otherProps = _objectWithoutProperties(_ref, _excluded);
50587
51397
  cov_fes6hm9vc().f[0]++;
50588
- var _ref2 = (cov_fes6hm9vc().s[1]++, t$2.useState("")),
51398
+ var searchParams = (cov_fes6hm9vc().s[1]++, getQueryParams());
51399
+ var _ref2 = (cov_fes6hm9vc().s[2]++, t$2.useState("")),
50589
51400
  _ref3 = _slicedToArray(_ref2, 2),
50590
51401
  searchTerm = _ref3[0],
50591
51402
  setSearchTerm = _ref3[1];
50592
- var history = (cov_fes6hm9vc().s[2]++, reactRouterDom.useHistory());
50593
- var _ref4 = (cov_fes6hm9vc().s[3]++, useTranslation()),
51403
+ var history = (cov_fes6hm9vc().s[3]++, reactRouterDom.useHistory());
51404
+ var _ref4 = (cov_fes6hm9vc().s[4]++, useTranslation()),
50594
51405
  t = _ref4.t;
50595
- var _ref5 = (cov_fes6hm9vc().s[4]++, buildFilteredColumns({
51406
+ var _ref5 = (cov_fes6hm9vc().s[5]++, buildFilteredColumns({
50596
51407
  searchTerm: searchTerm,
50597
51408
  columns: columns
50598
51409
  })),
@@ -50600,32 +51411,31 @@ var Pane = function Pane(_ref) {
50600
51411
  groupedColumns = _ref5$groupedColumns === void 0 ? (cov_fes6hm9vc().b[1][0]++, []) : _ref5$groupedColumns,
50601
51412
  _ref5$ungroupedColumn = _ref5.ungroupedColumns,
50602
51413
  ungroupedColumns = _ref5$ungroupedColumn === void 0 ? (cov_fes6hm9vc().b[2][0]++, []) : _ref5$ungroupedColumn;
50603
- var filters = (cov_fes6hm9vc().s[5]++, useFilters({
51414
+ var filters = (cov_fes6hm9vc().s[6]++, useFilters({
50604
51415
  onFiltersChange: onChange,
50605
51416
  columns: columns,
50606
51417
  keyword: keyword,
50607
51418
  onSelectorsChange: onSelectorsChange
50608
51419
  }));
50609
- var keywordFilter = (cov_fes6hm9vc().s[6]++, _objectSpread({
51420
+ var keywordFilter = (cov_fes6hm9vc().s[7]++, _objectSpread({
50610
51421
  key: "keyword",
50611
51422
  type: "text",
50612
51423
  rule: "contains",
50613
51424
  label: "Keyword"
50614
51425
  }, keyword));
50615
- cov_fes6hm9vc().s[7]++;
51426
+ cov_fes6hm9vc().s[8]++;
50616
51427
  var handleClearAll = function handleClearAll() {
50617
51428
  cov_fes6hm9vc().f[1]++;
50618
- cov_fes6hm9vc().s[8]++;
50619
- keyword.setValue("");
50620
51429
  cov_fes6hm9vc().s[9]++;
50621
- keyword.value = "";
51430
+ keyword.setValue("");
50622
51431
  cov_fes6hm9vc().s[10]++;
51432
+ keyword.value = "";
51433
+ cov_fes6hm9vc().s[11]++;
50623
51434
  handleChange([], true);
50624
51435
  };
50625
- cov_fes6hm9vc().s[11]++;
51436
+ cov_fes6hm9vc().s[12]++;
50626
51437
  var handleClose = function handleClose() {
50627
51438
  cov_fes6hm9vc().f[2]++;
50628
- var searchParams = (cov_fes6hm9vc().s[12]++, getQueryParams());
50629
51439
  cov_fes6hm9vc().s[13]++;
50630
51440
  columns.forEach(function (_ref6) {
50631
51441
  var key = _ref6.key;
@@ -50665,7 +51475,18 @@ var Pane = function Pane(_ref) {
50665
51475
  search: params
50666
51476
  });
50667
51477
  };
50668
- cov_fes6hm9vc().s[22]++;
51478
+ var isClearFiltersDisabled = (cov_fes6hm9vc().s[22]++, (cov_fes6hm9vc().b[7][0]++, !filters.some(function (_ref7) {
51479
+ var value = _ref7.value,
51480
+ defaultValue = _ref7.defaultValue;
51481
+ cov_fes6hm9vc().f[5]++;
51482
+ cov_fes6hm9vc().s[23]++;
51483
+ return (cov_fes6hm9vc().b[8][0]++, isPresent(value)) && (cov_fes6hm9vc().b[8][1]++, value !== defaultValue);
51484
+ })) && (cov_fes6hm9vc().b[7][1]++, !childrenKeys.some(function (key) {
51485
+ cov_fes6hm9vc().f[6]++;
51486
+ cov_fes6hm9vc().s[24]++;
51487
+ return searchParams[key];
51488
+ })));
51489
+ cov_fes6hm9vc().s[25]++;
50669
51490
  return /*#__PURE__*/t__default["default"].createElement(Portal, {
50670
51491
  rootId: "neeto-filters-portal"
50671
51492
  }, /*#__PURE__*/t__default["default"].createElement(Slider, _extends$1({
@@ -50679,7 +51500,7 @@ var Pane = function Pane(_ref) {
50679
51500
  weight: "semibold"
50680
51501
  }, t("common.filters"))), /*#__PURE__*/t__default["default"].createElement(Slider.Body, {
50681
51502
  className: "neeto-filters-pane-filter__body neeto-ui-pt-2"
50682
- }, (cov_fes6hm9vc().b[7][0]++, isSearchable) && (cov_fes6hm9vc().b[7][1]++, /*#__PURE__*/t__default["default"].createElement(neetoui.Input, {
51503
+ }, (cov_fes6hm9vc().b[9][0]++, isSearchable) && (cov_fes6hm9vc().b[9][1]++, /*#__PURE__*/t__default["default"].createElement(neetoui.Input, {
50683
51504
  autoFocus: true,
50684
51505
  "data-cy": "neeto-filters-column-search",
50685
51506
  prefix: /*#__PURE__*/t__default["default"].createElement(neetoIcons.Search, null),
@@ -50688,13 +51509,13 @@ var Pane = function Pane(_ref) {
50688
51509
  resources: t("common.filters").toLocaleLowerCase()
50689
51510
  }),
50690
51511
  onChange: function onChange(event) {
50691
- cov_fes6hm9vc().f[5]++;
50692
- cov_fes6hm9vc().s[23]++;
51512
+ cov_fes6hm9vc().f[7]++;
51513
+ cov_fes6hm9vc().s[26]++;
50693
51514
  return setSearchTerm(event.target.value);
50694
51515
  }
50695
51516
  })), ungroupedColumns.map(function (column) {
50696
- cov_fes6hm9vc().f[6]++;
50697
- cov_fes6hm9vc().s[24]++;
51517
+ cov_fes6hm9vc().f[8]++;
51518
+ cov_fes6hm9vc().s[27]++;
50698
51519
  return /*#__PURE__*/t__default["default"].createElement(Item, {
50699
51520
  autoFocus: column.key === isOpen,
50700
51521
  column: column,
@@ -50702,27 +51523,27 @@ var Pane = function Pane(_ref) {
50702
51523
  key: column.key,
50703
51524
  onChange: handleChange
50704
51525
  });
50705
- }), (cov_fes6hm9vc().b[8][0]++, isPresent(groupedColumns)) && (cov_fes6hm9vc().b[8][1]++, /*#__PURE__*/t__default["default"].createElement(neetoui.Accordion, {
50706
- defaultActiveKey: groupedColumns.findIndex(function (_ref7) {
50707
- var columns = _ref7.columns;
50708
- cov_fes6hm9vc().f[7]++;
50709
- cov_fes6hm9vc().s[25]++;
51526
+ }), (cov_fes6hm9vc().b[10][0]++, isPresent(groupedColumns)) && (cov_fes6hm9vc().b[10][1]++, /*#__PURE__*/t__default["default"].createElement(neetoui.Accordion, {
51527
+ defaultActiveKey: groupedColumns.findIndex(function (_ref8) {
51528
+ var columns = _ref8.columns;
51529
+ cov_fes6hm9vc().f[9]++;
51530
+ cov_fes6hm9vc().s[28]++;
50710
51531
  return existsBy({
50711
51532
  key: isOpen
50712
51533
  }, columns);
50713
51534
  })
50714
- }, groupedColumns.map(function (_ref8) {
50715
- var group = _ref8.group,
50716
- columns = _ref8.columns;
50717
- cov_fes6hm9vc().f[8]++;
50718
- cov_fes6hm9vc().s[26]++;
51535
+ }, groupedColumns.map(function (_ref9) {
51536
+ var group = _ref9.group,
51537
+ columns = _ref9.columns;
51538
+ cov_fes6hm9vc().f[10]++;
51539
+ cov_fes6hm9vc().s[29]++;
50719
51540
  return /*#__PURE__*/t__default["default"].createElement(neetoui.Accordion.Item, {
50720
51541
  className: "accordion_item",
50721
51542
  key: group,
50722
51543
  title: group
50723
51544
  }, columns.map(function (column) {
50724
- cov_fes6hm9vc().f[9]++;
50725
- cov_fes6hm9vc().s[27]++;
51545
+ cov_fes6hm9vc().f[11]++;
51546
+ cov_fes6hm9vc().s[30]++;
50726
51547
  return /*#__PURE__*/t__default["default"].createElement(Item, {
50727
51548
  autoFocus: column.key === isOpen,
50728
51549
  column: column,
@@ -50731,7 +51552,7 @@ var Pane = function Pane(_ref) {
50731
51552
  onChange: handleChange
50732
51553
  });
50733
51554
  }));
50734
- }))), (cov_fes6hm9vc().b[9][0]++, ramda.isEmpty(ungroupedColumns)) && (cov_fes6hm9vc().b[9][1]++, ramda.isEmpty(groupedColumns)) && (cov_fes6hm9vc().b[9][2]++, /*#__PURE__*/t__default["default"].createElement(neetoui.Typography, {
51555
+ }))), (cov_fes6hm9vc().b[11][0]++, ramda.isEmpty(ungroupedColumns)) && (cov_fes6hm9vc().b[11][1]++, ramda.isEmpty(groupedColumns)) && (cov_fes6hm9vc().b[11][2]++, /*#__PURE__*/t__default["default"].createElement(neetoui.Typography, {
50735
51556
  style: "body2"
50736
51557
  }, t("messages.noResourcesFound", {
50737
51558
  resources: t("common.columns").toLocaleLowerCase()
@@ -50743,6 +51564,7 @@ var Pane = function Pane(_ref) {
50743
51564
  onClick: onClose
50744
51565
  }), /*#__PURE__*/t__default["default"].createElement(neetoui.Button, {
50745
51566
  "data-cy": "neeto-filters-clear-btn",
51567
+ disabled: isClearFiltersDisabled,
50746
51568
  label: t("common.clearFilters"),
50747
51569
  style: "text",
50748
51570
  onClick: handleClearAll