@bigbinary/neeto-filters-frontend 2.11.4 → 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.js CHANGED
@@ -35891,6 +35891,367 @@ var Block = function Block(_ref) {
35891
35891
  })))));
35892
35892
  };
35893
35893
 
35894
+ function cov_1zv3ink1zs() {
35895
+ var path = "/home/runner/work/neeto-filters-frontend/neeto-filters-frontend/src/components/Bar/ChildBlock.jsx";
35896
+ var hash = "fe5d9d9e242aa9c111c9bffe9543756050d11d2f";
35897
+ var global = new Function("return this")();
35898
+ var gcv = "__coverage__";
35899
+ var coverageData = {
35900
+ path: "/home/runner/work/neeto-filters-frontend/neeto-filters-frontend/src/components/Bar/ChildBlock.jsx",
35901
+ statementMap: {
35902
+ "0": {
35903
+ start: {
35904
+ line: 9,
35905
+ column: 19
35906
+ },
35907
+ end: {
35908
+ line: 49,
35909
+ column: 1
35910
+ }
35911
+ },
35912
+ "1": {
35913
+ start: {
35914
+ line: 10,
35915
+ column: 31
35916
+ },
35917
+ end: {
35918
+ line: 14,
35919
+ column: 3
35920
+ }
35921
+ },
35922
+ "2": {
35923
+ start: {
35924
+ line: 12,
35925
+ column: 10
35926
+ },
35927
+ end: {
35928
+ line: 12,
35929
+ column: 32
35930
+ }
35931
+ },
35932
+ "3": {
35933
+ start: {
35934
+ line: 16,
35935
+ column: 34
35936
+ },
35937
+ end: {
35938
+ line: 20,
35939
+ column: 3
35940
+ }
35941
+ },
35942
+ "4": {
35943
+ start: {
35944
+ line: 18,
35945
+ column: 10
35946
+ },
35947
+ end: {
35948
+ line: 18,
35949
+ column: 33
35950
+ }
35951
+ },
35952
+ "5": {
35953
+ start: {
35954
+ line: 22,
35955
+ column: 2
35956
+ },
35957
+ end: {
35958
+ line: 48,
35959
+ column: 4
35960
+ }
35961
+ },
35962
+ "6": {
35963
+ start: {
35964
+ line: 28,
35965
+ column: 8
35966
+ },
35967
+ end: {
35968
+ line: 28,
35969
+ column: 44
35970
+ }
35971
+ },
35972
+ "7": {
35973
+ start: {
35974
+ line: 29,
35975
+ column: 8
35976
+ },
35977
+ end: {
35978
+ line: 29,
35979
+ column: 47
35980
+ }
35981
+ },
35982
+ "8": {
35983
+ start: {
35984
+ line: 31,
35985
+ column: 21
35986
+ },
35987
+ end: {
35988
+ line: 31,
35989
+ column: 44
35990
+ }
35991
+ },
35992
+ "9": {
35993
+ start: {
35994
+ line: 42,
35995
+ column: 12
35996
+ },
35997
+ end: {
35998
+ line: 42,
35999
+ column: 36
36000
+ }
36001
+ },
36002
+ "10": {
36003
+ start: {
36004
+ line: 43,
36005
+ column: 12
36006
+ },
36007
+ end: {
36008
+ line: 43,
36009
+ column: 35
36010
+ }
36011
+ }
36012
+ },
36013
+ fnMap: {
36014
+ "0": {
36015
+ name: "(anonymous_0)",
36016
+ decl: {
36017
+ start: {
36018
+ line: 9,
36019
+ column: 19
36020
+ },
36021
+ end: {
36022
+ line: 9,
36023
+ column: 20
36024
+ }
36025
+ },
36026
+ loc: {
36027
+ start: {
36028
+ line: 9,
36029
+ column: 66
36030
+ },
36031
+ end: {
36032
+ line: 49,
36033
+ column: 1
36034
+ }
36035
+ },
36036
+ line: 9
36037
+ },
36038
+ "1": {
36039
+ name: "(anonymous_1)",
36040
+ decl: {
36041
+ start: {
36042
+ line: 12,
36043
+ column: 4
36044
+ },
36045
+ end: {
36046
+ line: 12,
36047
+ column: 5
36048
+ }
36049
+ },
36050
+ loc: {
36051
+ start: {
36052
+ line: 12,
36053
+ column: 10
36054
+ },
36055
+ end: {
36056
+ line: 12,
36057
+ column: 32
36058
+ }
36059
+ },
36060
+ line: 12
36061
+ },
36062
+ "2": {
36063
+ name: "(anonymous_2)",
36064
+ decl: {
36065
+ start: {
36066
+ line: 18,
36067
+ column: 4
36068
+ },
36069
+ end: {
36070
+ line: 18,
36071
+ column: 5
36072
+ }
36073
+ },
36074
+ loc: {
36075
+ start: {
36076
+ line: 18,
36077
+ column: 10
36078
+ },
36079
+ end: {
36080
+ line: 18,
36081
+ column: 33
36082
+ }
36083
+ },
36084
+ line: 18
36085
+ },
36086
+ "3": {
36087
+ name: "(anonymous_3)",
36088
+ decl: {
36089
+ start: {
36090
+ line: 27,
36091
+ column: 11
36092
+ },
36093
+ end: {
36094
+ line: 27,
36095
+ column: 12
36096
+ }
36097
+ },
36098
+ loc: {
36099
+ start: {
36100
+ line: 27,
36101
+ column: 19
36102
+ },
36103
+ end: {
36104
+ line: 30,
36105
+ column: 7
36106
+ }
36107
+ },
36108
+ line: 27
36109
+ },
36110
+ "4": {
36111
+ name: "(anonymous_4)",
36112
+ decl: {
36113
+ start: {
36114
+ line: 31,
36115
+ column: 15
36116
+ },
36117
+ end: {
36118
+ line: 31,
36119
+ column: 16
36120
+ }
36121
+ },
36122
+ loc: {
36123
+ start: {
36124
+ line: 31,
36125
+ column: 21
36126
+ },
36127
+ end: {
36128
+ line: 31,
36129
+ column: 44
36130
+ }
36131
+ },
36132
+ line: 31
36133
+ },
36134
+ "5": {
36135
+ name: "(anonymous_5)",
36136
+ decl: {
36137
+ start: {
36138
+ line: 41,
36139
+ column: 19
36140
+ },
36141
+ end: {
36142
+ line: 41,
36143
+ column: 20
36144
+ }
36145
+ },
36146
+ loc: {
36147
+ start: {
36148
+ line: 41,
36149
+ column: 28
36150
+ },
36151
+ end: {
36152
+ line: 44,
36153
+ column: 11
36154
+ }
36155
+ },
36156
+ line: 41
36157
+ }
36158
+ },
36159
+ branchMap: {},
36160
+ s: {
36161
+ "0": 0,
36162
+ "1": 0,
36163
+ "2": 0,
36164
+ "3": 0,
36165
+ "4": 0,
36166
+ "5": 0,
36167
+ "6": 0,
36168
+ "7": 0,
36169
+ "8": 0,
36170
+ "9": 0,
36171
+ "10": 0
36172
+ },
36173
+ f: {
36174
+ "0": 0,
36175
+ "1": 0,
36176
+ "2": 0,
36177
+ "3": 0,
36178
+ "4": 0,
36179
+ "5": 0
36180
+ },
36181
+ b: {},
36182
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
36183
+ hash: "fe5d9d9e242aa9c111c9bffe9543756050d11d2f"
36184
+ };
36185
+ var coverage = global[gcv] || (global[gcv] = {});
36186
+ if (!coverage[path] || coverage[path].hash !== hash) {
36187
+ coverage[path] = coverageData;
36188
+ }
36189
+ var actualCoverage = coverage[path];
36190
+ {
36191
+ // @ts-ignore
36192
+ cov_1zv3ink1zs = function () {
36193
+ return actualCoverage;
36194
+ };
36195
+ }
36196
+ return actualCoverage;
36197
+ }
36198
+ cov_1zv3ink1zs();
36199
+ cov_1zv3ink1zs().s[0]++;
36200
+ var ChildBlock = function ChildBlock(_ref) {
36201
+ var childKey = _ref.childKey,
36202
+ setIsPaneOpen = _ref.setIsPaneOpen,
36203
+ handleDelete = _ref.handleDelete;
36204
+ cov_1zv3ink1zs().f[0]++;
36205
+ var deleteBlockHotKeyRef = (cov_1zv3ink1zs().s[1]++, useHotKeys(SHORTCUTS.deleteBlock.sequence, function () {
36206
+ cov_1zv3ink1zs().f[1]++;
36207
+ cov_1zv3ink1zs().s[2]++;
36208
+ return handleDelete(childKey);
36209
+ }, {
36210
+ mode: "scoped"
36211
+ }));
36212
+ var openFilterPaneHotKeyRef = (cov_1zv3ink1zs().s[3]++, useHotKeys(SHORTCUTS.openFilterPane.sequence, function () {
36213
+ cov_1zv3ink1zs().f[2]++;
36214
+ cov_1zv3ink1zs().s[4]++;
36215
+ return setIsPaneOpen(childKey);
36216
+ }, {
36217
+ mode: "scoped"
36218
+ }));
36219
+ cov_1zv3ink1zs().s[5]++;
36220
+ return /*#__PURE__*/t__default.createElement("div", {
36221
+ className: "neeto-filters-bar__block",
36222
+ "data-cy": "neeto-filters-".concat(childKey, "-block"),
36223
+ tabIndex: 0,
36224
+ ref: function ref(node) {
36225
+ cov_1zv3ink1zs().f[3]++;
36226
+ cov_1zv3ink1zs().s[6]++;
36227
+ deleteBlockHotKeyRef.current = node;
36228
+ cov_1zv3ink1zs().s[7]++;
36229
+ openFilterPaneHotKeyRef.current = node;
36230
+ },
36231
+ onClick: function onClick() {
36232
+ cov_1zv3ink1zs().f[4]++;
36233
+ cov_1zv3ink1zs().s[8]++;
36234
+ return setIsPaneOpen(childKey);
36235
+ }
36236
+ }, /*#__PURE__*/t__default.createElement(Typography, {
36237
+ style: "body2",
36238
+ weight: "medium"
36239
+ }, childKey), /*#__PURE__*/t__default.createElement("div", {
36240
+ className: "neeto-filters-bar__block-close"
36241
+ }, /*#__PURE__*/t__default.createElement(Close, {
36242
+ "data-cy": "neeto-filters-".concat(childKey, "-block-close-btn"),
36243
+ size: 16,
36244
+ strokeWidth: 2,
36245
+ onClick: function onClick(event) {
36246
+ cov_1zv3ink1zs().f[5]++;
36247
+ cov_1zv3ink1zs().s[9]++;
36248
+ event.stopPropagation();
36249
+ cov_1zv3ink1zs().s[10]++;
36250
+ handleDelete(childKey);
36251
+ }
36252
+ })));
36253
+ };
36254
+
35894
36255
  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}());
35895
36256
 
35896
36257
  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:{}};
@@ -37744,7 +38105,7 @@ var Segment = function Segment(_ref2) {
37744
38105
 
37745
38106
  function cov_1jyxy15ds3() {
37746
38107
  var path = "/home/runner/work/neeto-filters-frontend/neeto-filters-frontend/src/components/Bar/index.jsx";
37747
- var hash = "d84097ebe2b4c00473ece75fee6b84b8d7524469";
38108
+ var hash = "513c5fef581a1f26ee7e3a240d2a23468af80a8c";
37748
38109
  var global = new Function("return this")();
37749
38110
  var gcv = "__coverage__";
37750
38111
  var coverageData = {
@@ -37752,302 +38113,382 @@ function cov_1jyxy15ds3() {
37752
38113
  statementMap: {
37753
38114
  "0": {
37754
38115
  start: {
37755
- line: 15,
38116
+ line: 16,
37756
38117
  column: 12
37757
38118
  },
37758
38119
  end: {
37759
- line: 109,
38120
+ line: 132,
37760
38121
  column: 1
37761
38122
  }
37762
38123
  },
37763
38124
  "1": {
37764
38125
  start: {
37765
38126
  line: 24,
37766
- column: 24
38127
+ column: 23
37767
38128
  },
37768
38129
  end: {
37769
- line: 30,
37770
- column: 3
38130
+ line: 24,
38131
+ column: 66
37771
38132
  }
37772
38133
  },
37773
38134
  "2": {
37774
38135
  start: {
37775
- line: 32,
37776
- column: 18
38136
+ line: 25,
38137
+ column: 24
37777
38138
  },
37778
38139
  end: {
37779
- line: 34,
38140
+ line: 31,
37780
38141
  column: 3
37781
38142
  }
37782
38143
  },
37783
38144
  "3": {
37784
38145
  start: {
37785
- line: 35,
37786
- column: 27
38146
+ line: 33,
38147
+ column: 18
37787
38148
  },
37788
38149
  end: {
37789
38150
  line: 35,
37790
- column: 62
38151
+ column: 3
37791
38152
  }
37792
38153
  },
37793
38154
  "4": {
37794
38155
  start: {
37795
38156
  line: 36,
37796
- column: 18
38157
+ column: 27
37797
38158
  },
37798
38159
  end: {
37799
38160
  line: 36,
37800
- column: 30
38161
+ column: 62
37801
38162
  }
37802
38163
  },
37803
38164
  "5": {
37804
38165
  start: {
37805
38166
  line: 37,
37806
- column: 16
38167
+ column: 18
37807
38168
  },
37808
38169
  end: {
37809
38170
  line: 37,
37810
- column: 32
38171
+ column: 30
37811
38172
  }
37812
38173
  },
37813
38174
  "6": {
37814
38175
  start: {
37815
- line: 39,
37816
- column: 2
38176
+ line: 38,
38177
+ column: 16
37817
38178
  },
37818
38179
  end: {
37819
- line: 45,
37820
- column: 22
38180
+ line: 38,
38181
+ column: 32
37821
38182
  }
37822
38183
  },
37823
38184
  "7": {
37824
38185
  start: {
37825
38186
  line: 40,
37826
- column: 20
38187
+ column: 2
37827
38188
  },
37828
38189
  end: {
37829
- line: 42,
37830
- column: 11
38190
+ line: 46,
38191
+ column: 22
37831
38192
  }
37832
38193
  },
37833
38194
  "8": {
37834
38195
  start: {
37835
38196
  line: 41,
38197
+ column: 20
38198
+ },
38199
+ end: {
38200
+ line: 43,
38201
+ column: 11
38202
+ }
38203
+ },
38204
+ "9": {
38205
+ start: {
38206
+ line: 42,
37836
38207
  column: 6
37837
38208
  },
37838
38209
  end: {
37839
- line: 41,
38210
+ line: 42,
37840
38211
  column: 28
37841
38212
  }
37842
38213
  },
37843
- "9": {
38214
+ "10": {
37844
38215
  start: {
37845
- line: 44,
38216
+ line: 45,
37846
38217
  column: 4
37847
38218
  },
37848
38219
  end: {
37849
- line: 44,
38220
+ line: 45,
37850
38221
  column: 39
37851
38222
  }
37852
38223
  },
37853
- "10": {
38224
+ "11": {
37854
38225
  start: {
37855
- line: 44,
38226
+ line: 45,
37856
38227
  column: 17
37857
38228
  },
37858
38229
  end: {
37859
- line: 44,
38230
+ line: 45,
37860
38231
  column: 38
37861
38232
  }
37862
38233
  },
37863
- "11": {
38234
+ "12": {
37864
38235
  start: {
37865
- line: 47,
38236
+ line: 48,
37866
38237
  column: 23
37867
38238
  },
37868
38239
  end: {
37869
- line: 58,
38240
+ line: 59,
37870
38241
  column: 3
37871
38242
  }
37872
38243
  },
37873
- "12": {
38244
+ "13": {
37874
38245
  start: {
37875
- line: 48,
38246
+ line: 49,
37876
38247
  column: 19
37877
38248
  },
37878
38249
  end: {
37879
- line: 56,
38250
+ line: 57,
37880
38251
  column: 6
37881
38252
  }
37882
38253
  },
37883
- "13": {
38254
+ "14": {
37884
38255
  start: {
37885
- line: 57,
38256
+ line: 58,
37886
38257
  column: 4
37887
38258
  },
37888
38259
  end: {
37889
- line: 57,
38260
+ line: 58,
37890
38261
  column: 37
37891
38262
  }
37892
38263
  },
37893
- "14": {
38264
+ "15": {
37894
38265
  start: {
37895
- line: 60,
38266
+ line: 61,
37896
38267
  column: 23
37897
38268
  },
37898
38269
  end: {
37899
- line: 67,
38270
+ line: 74,
37900
38271
  column: 3
37901
38272
  }
37902
38273
  },
37903
- "15": {
38274
+ "16": {
37904
38275
  start: {
37905
- line: 61,
38276
+ line: 62,
37906
38277
  column: 4
37907
38278
  },
37908
38279
  end: {
37909
- line: 64,
38280
+ line: 65,
37910
38281
  column: 5
37911
38282
  }
37912
38283
  },
37913
- "16": {
38284
+ "17": {
37914
38285
  start: {
37915
- line: 62,
38286
+ line: 63,
37916
38287
  column: 6
37917
38288
  },
37918
38289
  end: {
37919
- line: 62,
38290
+ line: 63,
37920
38291
  column: 27
37921
38292
  }
37922
38293
  },
37923
- "17": {
38294
+ "18": {
37924
38295
  start: {
37925
- line: 63,
38296
+ line: 64,
37926
38297
  column: 6
37927
38298
  },
37928
38299
  end: {
37929
- line: 63,
38300
+ line: 64,
37930
38301
  column: 25
37931
38302
  }
37932
38303
  },
37933
- "18": {
38304
+ "19": {
37934
38305
  start: {
37935
- line: 65,
38306
+ line: 67,
38307
+ column: 4
38308
+ },
38309
+ end: {
38310
+ line: 70,
38311
+ column: 5
38312
+ }
38313
+ },
38314
+ "20": {
38315
+ start: {
38316
+ line: 68,
38317
+ column: 6
38318
+ },
38319
+ end: {
38320
+ line: 68,
38321
+ column: 31
38322
+ }
38323
+ },
38324
+ "21": {
38325
+ start: {
38326
+ line: 69,
38327
+ column: 6
38328
+ },
38329
+ end: {
38330
+ line: 69,
38331
+ column: 56
38332
+ }
38333
+ },
38334
+ "22": {
38335
+ start: {
38336
+ line: 72,
37936
38337
  column: 23
37937
38338
  },
37938
38339
  end: {
37939
- line: 65,
38340
+ line: 72,
37940
38341
  column: 49
37941
38342
  }
37942
38343
  },
37943
- "19": {
38344
+ "23": {
37944
38345
  start: {
37945
- line: 66,
38346
+ line: 73,
37946
38347
  column: 4
37947
38348
  },
37948
38349
  end: {
37949
- line: 66,
38350
+ line: 73,
37950
38351
  column: 29
37951
38352
  }
37952
38353
  },
37953
- "20": {
38354
+ "24": {
37954
38355
  start: {
37955
- line: 69,
38356
+ line: 76,
37956
38357
  column: 25
37957
38358
  },
37958
38359
  end: {
37959
- line: 73,
38360
+ line: 80,
37960
38361
  column: 3
37961
38362
  }
37962
38363
  },
37963
- "21": {
38364
+ "25": {
37964
38365
  start: {
37965
- line: 70,
38366
+ line: 77,
37966
38367
  column: 4
37967
38368
  },
37968
38369
  end: {
37969
- line: 70,
38370
+ line: 77,
37970
38371
  column: 25
37971
38372
  }
37972
38373
  },
37973
- "22": {
38374
+ "26": {
37974
38375
  start: {
37975
- line: 71,
38376
+ line: 78,
37976
38377
  column: 4
37977
38378
  },
37978
38379
  end: {
37979
- line: 71,
38380
+ line: 78,
37980
38381
  column: 23
37981
38382
  }
37982
38383
  },
37983
- "23": {
38384
+ "27": {
37984
38385
  start: {
37985
- line: 72,
38386
+ line: 79,
37986
38387
  column: 4
37987
38388
  },
37988
38389
  end: {
37989
- line: 72,
38390
+ line: 79,
37990
38391
  column: 27
37991
38392
  }
37992
38393
  },
37993
- "24": {
38394
+ "28": {
37994
38395
  start: {
37995
- line: 75,
37996
- column: 26
38396
+ line: 82,
38397
+ column: 33
37997
38398
  },
37998
38399
  end: {
37999
- line: 77,
38400
+ line: 84,
38000
38401
  column: 3
38001
38402
  }
38002
38403
  },
38003
- "25": {
38404
+ "29": {
38004
38405
  start: {
38005
- line: 76,
38006
- column: 39
38406
+ line: 83,
38407
+ column: 4
38007
38408
  },
38008
38409
  end: {
38009
- line: 76,
38010
- column: 67
38410
+ line: 83,
38411
+ column: 25
38412
+ }
38413
+ },
38414
+ "30": {
38415
+ start: {
38416
+ line: 87,
38417
+ column: 4
38418
+ },
38419
+ end: {
38420
+ line: 89,
38421
+ column: 32
38422
+ }
38423
+ },
38424
+ "31": {
38425
+ start: {
38426
+ line: 88,
38427
+ column: 41
38428
+ },
38429
+ end: {
38430
+ line: 88,
38431
+ column: 69
38432
+ }
38433
+ },
38434
+ "32": {
38435
+ start: {
38436
+ line: 91,
38437
+ column: 2
38438
+ },
38439
+ end: {
38440
+ line: 91,
38441
+ column: 72
38442
+ }
38443
+ },
38444
+ "33": {
38445
+ start: {
38446
+ line: 91,
38447
+ column: 60
38448
+ },
38449
+ end: {
38450
+ line: 91,
38451
+ column: 72
38011
38452
  }
38012
38453
  },
38013
- "26": {
38454
+ "34": {
38014
38455
  start: {
38015
- line: 79,
38456
+ line: 93,
38016
38457
  column: 2
38017
38458
  },
38018
38459
  end: {
38019
- line: 79,
38020
- column: 45
38460
+ line: 131,
38461
+ column: 4
38021
38462
  }
38022
38463
  },
38023
- "27": {
38464
+ "35": {
38024
38465
  start: {
38025
- line: 79,
38026
- column: 33
38466
+ line: 98,
38467
+ column: 8
38027
38468
  },
38028
38469
  end: {
38029
- line: 79,
38030
- column: 45
38470
+ line: 105,
38471
+ column: 25
38031
38472
  }
38032
38473
  },
38033
- "28": {
38474
+ "36": {
38034
38475
  start: {
38035
- line: 81,
38036
- column: 2
38476
+ line: 108,
38477
+ column: 28
38037
38478
  },
38038
38479
  end: {
38039
38480
  line: 108,
38040
- column: 4
38481
+ column: 54
38041
38482
  }
38042
38483
  },
38043
- "29": {
38484
+ "37": {
38044
38485
  start: {
38045
- line: 86,
38046
- column: 8
38486
+ line: 110,
38487
+ column: 10
38047
38488
  },
38048
38489
  end: {
38049
- line: 93,
38050
- column: 25
38490
+ line: 117,
38491
+ column: 27
38051
38492
  }
38052
38493
  }
38053
38494
  },
@@ -38056,11 +38497,11 @@ function cov_1jyxy15ds3() {
38056
38497
  name: "(anonymous_0)",
38057
38498
  decl: {
38058
38499
  start: {
38059
- line: 15,
38500
+ line: 16,
38060
38501
  column: 12
38061
38502
  },
38062
38503
  end: {
38063
- line: 15,
38504
+ line: 16,
38064
38505
  column: 13
38065
38506
  }
38066
38507
  },
@@ -38070,7 +38511,7 @@ function cov_1jyxy15ds3() {
38070
38511
  column: 6
38071
38512
  },
38072
38513
  end: {
38073
- line: 109,
38514
+ line: 132,
38074
38515
  column: 1
38075
38516
  }
38076
38517
  },
@@ -38080,410 +38521,482 @@ function cov_1jyxy15ds3() {
38080
38521
  name: "(anonymous_1)",
38081
38522
  decl: {
38082
38523
  start: {
38083
- line: 39,
38524
+ line: 40,
38084
38525
  column: 12
38085
38526
  },
38086
38527
  end: {
38087
- line: 39,
38528
+ line: 40,
38088
38529
  column: 13
38089
38530
  }
38090
38531
  },
38091
38532
  loc: {
38092
38533
  start: {
38093
- line: 39,
38534
+ line: 40,
38094
38535
  column: 18
38095
38536
  },
38096
38537
  end: {
38097
- line: 45,
38538
+ line: 46,
38098
38539
  column: 3
38099
38540
  }
38100
38541
  },
38101
- line: 39
38542
+ line: 40
38102
38543
  },
38103
38544
  "2": {
38104
38545
  name: "(anonymous_2)",
38105
38546
  decl: {
38106
38547
  start: {
38107
- line: 40,
38548
+ line: 41,
38108
38549
  column: 31
38109
38550
  },
38110
38551
  end: {
38111
- line: 40,
38552
+ line: 41,
38112
38553
  column: 32
38113
38554
  }
38114
38555
  },
38115
38556
  loc: {
38116
38557
  start: {
38117
- line: 40,
38558
+ line: 41,
38118
38559
  column: 37
38119
38560
  },
38120
38561
  end: {
38121
- line: 42,
38562
+ line: 43,
38122
38563
  column: 5
38123
38564
  }
38124
38565
  },
38125
- line: 40
38566
+ line: 41
38126
38567
  },
38127
38568
  "3": {
38128
38569
  name: "(anonymous_3)",
38129
38570
  decl: {
38130
38571
  start: {
38131
- line: 44,
38572
+ line: 45,
38132
38573
  column: 11
38133
38574
  },
38134
38575
  end: {
38135
- line: 44,
38576
+ line: 45,
38136
38577
  column: 12
38137
38578
  }
38138
38579
  },
38139
38580
  loc: {
38140
38581
  start: {
38141
- line: 44,
38582
+ line: 45,
38142
38583
  column: 17
38143
38584
  },
38144
38585
  end: {
38145
- line: 44,
38586
+ line: 45,
38146
38587
  column: 38
38147
38588
  }
38148
38589
  },
38149
- line: 44
38590
+ line: 45
38150
38591
  },
38151
38592
  "4": {
38152
38593
  name: "(anonymous_4)",
38153
38594
  decl: {
38154
38595
  start: {
38155
- line: 47,
38596
+ line: 48,
38156
38597
  column: 23
38157
38598
  },
38158
38599
  end: {
38159
- line: 47,
38600
+ line: 48,
38160
38601
  column: 24
38161
38602
  }
38162
38603
  },
38163
38604
  loc: {
38164
38605
  start: {
38165
- line: 47,
38606
+ line: 48,
38166
38607
  column: 51
38167
38608
  },
38168
38609
  end: {
38169
- line: 58,
38610
+ line: 59,
38170
38611
  column: 3
38171
38612
  }
38172
38613
  },
38173
- line: 47
38614
+ line: 48
38174
38615
  },
38175
38616
  "5": {
38176
38617
  name: "(anonymous_5)",
38177
38618
  decl: {
38178
38619
  start: {
38179
- line: 60,
38620
+ line: 61,
38180
38621
  column: 23
38181
38622
  },
38182
38623
  end: {
38183
- line: 60,
38624
+ line: 61,
38184
38625
  column: 24
38185
38626
  }
38186
38627
  },
38187
38628
  loc: {
38188
38629
  start: {
38189
- line: 60,
38630
+ line: 61,
38190
38631
  column: 30
38191
38632
  },
38192
38633
  end: {
38193
- line: 67,
38634
+ line: 74,
38194
38635
  column: 3
38195
38636
  }
38196
38637
  },
38197
- line: 60
38638
+ line: 61
38198
38639
  },
38199
38640
  "6": {
38200
38641
  name: "(anonymous_6)",
38201
38642
  decl: {
38202
38643
  start: {
38203
- line: 69,
38644
+ line: 76,
38204
38645
  column: 25
38205
38646
  },
38206
38647
  end: {
38207
- line: 69,
38648
+ line: 76,
38208
38649
  column: 26
38209
38650
  }
38210
38651
  },
38211
38652
  loc: {
38212
38653
  start: {
38213
- line: 69,
38654
+ line: 76,
38214
38655
  column: 31
38215
38656
  },
38216
38657
  end: {
38217
- line: 73,
38658
+ line: 80,
38218
38659
  column: 3
38219
38660
  }
38220
38661
  },
38221
- line: 69
38662
+ line: 76
38222
38663
  },
38223
38664
  "7": {
38224
38665
  name: "(anonymous_7)",
38225
38666
  decl: {
38226
38667
  start: {
38227
- line: 76,
38228
- column: 4
38668
+ line: 82,
38669
+ column: 51
38229
38670
  },
38230
38671
  end: {
38231
- line: 76,
38232
- column: 5
38672
+ line: 82,
38673
+ column: 52
38233
38674
  }
38234
38675
  },
38235
38676
  loc: {
38236
38677
  start: {
38237
- line: 76,
38238
- column: 39
38678
+ line: 83,
38679
+ column: 4
38239
38680
  },
38240
38681
  end: {
38241
- line: 76,
38242
- column: 67
38682
+ line: 83,
38683
+ column: 25
38243
38684
  }
38244
38685
  },
38245
- line: 76
38686
+ line: 83
38246
38687
  },
38247
38688
  "8": {
38248
38689
  name: "(anonymous_8)",
38249
38690
  decl: {
38250
38691
  start: {
38251
- line: 85,
38692
+ line: 88,
38693
+ column: 6
38694
+ },
38695
+ end: {
38696
+ line: 88,
38697
+ column: 7
38698
+ }
38699
+ },
38700
+ loc: {
38701
+ start: {
38702
+ line: 88,
38703
+ column: 41
38704
+ },
38705
+ end: {
38706
+ line: 88,
38707
+ column: 69
38708
+ }
38709
+ },
38710
+ line: 88
38711
+ },
38712
+ "9": {
38713
+ name: "(anonymous_9)",
38714
+ decl: {
38715
+ start: {
38716
+ line: 97,
38252
38717
  column: 28
38253
38718
  },
38254
38719
  end: {
38255
- line: 85,
38720
+ line: 97,
38256
38721
  column: 29
38257
38722
  }
38258
38723
  },
38259
38724
  loc: {
38260
38725
  start: {
38261
- line: 86,
38726
+ line: 98,
38262
38727
  column: 8
38263
38728
  },
38264
38729
  end: {
38265
- line: 93,
38730
+ line: 105,
38266
38731
  column: 25
38267
38732
  }
38268
38733
  },
38269
- line: 86
38734
+ line: 98
38735
+ },
38736
+ "10": {
38737
+ name: "(anonymous_10)",
38738
+ decl: {
38739
+ start: {
38740
+ line: 108,
38741
+ column: 16
38742
+ },
38743
+ end: {
38744
+ line: 108,
38745
+ column: 17
38746
+ }
38747
+ },
38748
+ loc: {
38749
+ start: {
38750
+ line: 108,
38751
+ column: 28
38752
+ },
38753
+ end: {
38754
+ line: 108,
38755
+ column: 54
38756
+ }
38757
+ },
38758
+ line: 108
38759
+ },
38760
+ "11": {
38761
+ name: "(anonymous_11)",
38762
+ decl: {
38763
+ start: {
38764
+ line: 109,
38765
+ column: 13
38766
+ },
38767
+ end: {
38768
+ line: 109,
38769
+ column: 14
38770
+ }
38771
+ },
38772
+ loc: {
38773
+ start: {
38774
+ line: 110,
38775
+ column: 10
38776
+ },
38777
+ end: {
38778
+ line: 117,
38779
+ column: 27
38780
+ }
38781
+ },
38782
+ line: 110
38270
38783
  }
38271
38784
  },
38272
38785
  branchMap: {
38273
38786
  "0": {
38274
38787
  loc: {
38275
38788
  start: {
38276
- line: 18,
38789
+ line: 19,
38277
38790
  column: 2
38278
38791
  },
38279
38792
  end: {
38280
- line: 18,
38793
+ line: 19,
38281
38794
  column: 14
38282
38795
  }
38283
38796
  },
38284
38797
  type: "default-arg",
38285
38798
  locations: [{
38286
38799
  start: {
38287
- line: 18,
38800
+ line: 19,
38288
38801
  column: 12
38289
38802
  },
38290
38803
  end: {
38291
- line: 18,
38804
+ line: 19,
38292
38805
  column: 14
38293
38806
  }
38294
38807
  }],
38295
- line: 18
38808
+ line: 19
38296
38809
  },
38297
38810
  "1": {
38298
38811
  loc: {
38299
38812
  start: {
38300
- line: 19,
38813
+ line: 20,
38301
38814
  column: 2
38302
38815
  },
38303
38816
  end: {
38304
- line: 19,
38817
+ line: 20,
38305
38818
  column: 51
38306
38819
  }
38307
38820
  },
38308
38821
  type: "default-arg",
38309
38822
  locations: [{
38310
38823
  start: {
38311
- line: 19,
38824
+ line: 20,
38312
38825
  column: 12
38313
38826
  },
38314
38827
  end: {
38315
- line: 19,
38828
+ line: 20,
38316
38829
  column: 51
38317
38830
  }
38318
38831
  }],
38319
- line: 19
38832
+ line: 20
38320
38833
  },
38321
38834
  "2": {
38322
38835
  loc: {
38323
38836
  start: {
38324
- line: 20,
38837
+ line: 21,
38325
38838
  column: 2
38326
38839
  },
38327
38840
  end: {
38328
- line: 20,
38841
+ line: 21,
38329
38842
  column: 26
38330
38843
  }
38331
38844
  },
38332
38845
  type: "default-arg",
38333
38846
  locations: [{
38334
38847
  start: {
38335
- line: 20,
38848
+ line: 21,
38336
38849
  column: 18
38337
38850
  },
38338
38851
  end: {
38339
- line: 20,
38852
+ line: 21,
38340
38853
  column: 26
38341
38854
  }
38342
38855
  }],
38343
- line: 20
38856
+ line: 21
38344
38857
  },
38345
38858
  "3": {
38346
38859
  loc: {
38347
38860
  start: {
38348
- line: 21,
38861
+ line: 22,
38349
38862
  column: 2
38350
38863
  },
38351
38864
  end: {
38352
- line: 21,
38865
+ line: 22,
38353
38866
  column: 19
38354
38867
  }
38355
38868
  },
38356
38869
  type: "default-arg",
38357
38870
  locations: [{
38358
38871
  start: {
38359
- line: 21,
38872
+ line: 22,
38360
38873
  column: 17
38361
38874
  },
38362
38875
  end: {
38363
- line: 21,
38876
+ line: 22,
38364
38877
  column: 19
38365
38878
  }
38366
38879
  }],
38367
- line: 21
38880
+ line: 22
38368
38881
  },
38369
38882
  "4": {
38370
38883
  loc: {
38371
38884
  start: {
38372
- line: 33,
38885
+ line: 34,
38373
38886
  column: 4
38374
38887
  },
38375
38888
  end: {
38376
- line: 33,
38889
+ line: 34,
38377
38890
  column: 64
38378
38891
  }
38379
38892
  },
38380
38893
  type: "cond-expr",
38381
38894
  locations: [{
38382
38895
  start: {
38383
- line: 33,
38896
+ line: 34,
38384
38897
  column: 27
38385
38898
  },
38386
38899
  end: {
38387
- line: 33,
38900
+ line: 34,
38388
38901
  column: 54
38389
38902
  }
38390
38903
  }, {
38391
38904
  start: {
38392
- line: 33,
38905
+ line: 34,
38393
38906
  column: 57
38394
38907
  },
38395
38908
  end: {
38396
- line: 33,
38909
+ line: 34,
38397
38910
  column: 64
38398
38911
  }
38399
38912
  }],
38400
- line: 33
38913
+ line: 34
38401
38914
  },
38402
38915
  "5": {
38403
38916
  loc: {
38404
38917
  start: {
38405
- line: 51,
38918
+ line: 52,
38406
38919
  column: 8
38407
38920
  },
38408
38921
  end: {
38409
- line: 51,
38922
+ line: 52,
38410
38923
  column: 74
38411
38924
  }
38412
38925
  },
38413
38926
  type: "cond-expr",
38414
38927
  locations: [{
38415
38928
  start: {
38416
- line: 51,
38929
+ line: 52,
38417
38930
  column: 31
38418
38931
  },
38419
38932
  end: {
38420
- line: 51,
38933
+ line: 52,
38421
38934
  column: 61
38422
38935
  }
38423
38936
  }, {
38424
38937
  start: {
38425
- line: 51,
38938
+ line: 52,
38426
38939
  column: 64
38427
38940
  },
38428
38941
  end: {
38429
- line: 51,
38942
+ line: 52,
38430
38943
  column: 74
38431
38944
  }
38432
38945
  }],
38433
- line: 51
38946
+ line: 52
38434
38947
  },
38435
38948
  "6": {
38436
38949
  loc: {
38437
38950
  start: {
38438
- line: 52,
38951
+ line: 53,
38439
38952
  column: 10
38440
38953
  },
38441
38954
  end: {
38442
- line: 55,
38955
+ line: 56,
38443
38956
  column: 7
38444
38957
  }
38445
38958
  },
38446
38959
  type: "binary-expr",
38447
38960
  locations: [{
38448
38961
  start: {
38449
- line: 52,
38962
+ line: 53,
38450
38963
  column: 10
38451
38964
  },
38452
38965
  end: {
38453
- line: 52,
38966
+ line: 53,
38454
38967
  column: 20
38455
38968
  }
38456
38969
  }, {
38457
38970
  start: {
38458
- line: 52,
38971
+ line: 53,
38459
38972
  column: 24
38460
38973
  },
38461
38974
  end: {
38462
- line: 55,
38975
+ line: 56,
38463
38976
  column: 7
38464
38977
  }
38465
38978
  }],
38466
- line: 52
38979
+ line: 53
38467
38980
  },
38468
38981
  "7": {
38469
38982
  loc: {
38470
38983
  start: {
38471
- line: 61,
38984
+ line: 62,
38472
38985
  column: 4
38473
38986
  },
38474
38987
  end: {
38475
- line: 64,
38988
+ line: 65,
38476
38989
  column: 5
38477
38990
  }
38478
38991
  },
38479
38992
  type: "if",
38480
38993
  locations: [{
38481
38994
  start: {
38482
- line: 61,
38995
+ line: 62,
38483
38996
  column: 4
38484
38997
  },
38485
38998
  end: {
38486
- line: 64,
38999
+ line: 65,
38487
39000
  column: 5
38488
39001
  }
38489
39002
  }, {
@@ -38496,61 +39009,127 @@ function cov_1jyxy15ds3() {
38496
39009
  column: undefined
38497
39010
  }
38498
39011
  }],
38499
- line: 61
39012
+ line: 62
38500
39013
  },
38501
39014
  "8": {
38502
39015
  loc: {
38503
39016
  start: {
38504
- line: 76,
38505
- column: 39
39017
+ line: 67,
39018
+ column: 4
38506
39019
  },
38507
39020
  end: {
38508
- line: 76,
38509
- column: 67
39021
+ line: 70,
39022
+ column: 5
38510
39023
  }
38511
39024
  },
38512
- type: "binary-expr",
39025
+ type: "if",
38513
39026
  locations: [{
38514
39027
  start: {
38515
- line: 76,
38516
- column: 39
39028
+ line: 67,
39029
+ column: 4
38517
39030
  },
38518
39031
  end: {
38519
- line: 76,
38520
- column: 51
39032
+ line: 70,
39033
+ column: 5
38521
39034
  }
38522
39035
  }, {
38523
39036
  start: {
38524
- line: 76,
38525
- column: 55
39037
+ line: undefined,
39038
+ column: undefined
38526
39039
  },
38527
39040
  end: {
38528
- line: 76,
38529
- column: 67
39041
+ line: undefined,
39042
+ column: undefined
38530
39043
  }
38531
39044
  }],
38532
- line: 76
39045
+ line: 67
38533
39046
  },
38534
39047
  "9": {
38535
39048
  loc: {
38536
39049
  start: {
38537
- line: 79,
39050
+ line: 87,
39051
+ column: 4
39052
+ },
39053
+ end: {
39054
+ line: 89,
39055
+ column: 32
39056
+ }
39057
+ },
39058
+ type: "binary-expr",
39059
+ locations: [{
39060
+ start: {
39061
+ line: 87,
39062
+ column: 4
39063
+ },
39064
+ end: {
39065
+ line: 89,
39066
+ column: 5
39067
+ }
39068
+ }, {
39069
+ start: {
39070
+ line: 89,
39071
+ column: 9
39072
+ },
39073
+ end: {
39074
+ line: 89,
39075
+ column: 32
39076
+ }
39077
+ }],
39078
+ line: 87
39079
+ },
39080
+ "10": {
39081
+ loc: {
39082
+ start: {
39083
+ line: 88,
39084
+ column: 41
39085
+ },
39086
+ end: {
39087
+ line: 88,
39088
+ column: 69
39089
+ }
39090
+ },
39091
+ type: "binary-expr",
39092
+ locations: [{
39093
+ start: {
39094
+ line: 88,
39095
+ column: 41
39096
+ },
39097
+ end: {
39098
+ line: 88,
39099
+ column: 53
39100
+ }
39101
+ }, {
39102
+ start: {
39103
+ line: 88,
39104
+ column: 57
39105
+ },
39106
+ end: {
39107
+ line: 88,
39108
+ column: 69
39109
+ }
39110
+ }],
39111
+ line: 88
39112
+ },
39113
+ "11": {
39114
+ loc: {
39115
+ start: {
39116
+ line: 91,
38538
39117
  column: 2
38539
39118
  },
38540
39119
  end: {
38541
- line: 79,
38542
- column: 45
39120
+ line: 91,
39121
+ column: 72
38543
39122
  }
38544
39123
  },
38545
39124
  type: "if",
38546
39125
  locations: [{
38547
39126
  start: {
38548
- line: 79,
39127
+ line: 91,
38549
39128
  column: 2
38550
39129
  },
38551
39130
  end: {
38552
- line: 79,
38553
- column: 45
39131
+ line: 91,
39132
+ column: 72
38554
39133
  }
38555
39134
  }, {
38556
39135
  start: {
@@ -38562,73 +39141,106 @@ function cov_1jyxy15ds3() {
38562
39141
  column: undefined
38563
39142
  }
38564
39143
  }],
38565
- line: 79
39144
+ line: 91
38566
39145
  },
38567
- "10": {
39146
+ "12": {
38568
39147
  loc: {
38569
39148
  start: {
38570
- line: 96,
39149
+ line: 91,
39150
+ column: 6
39151
+ },
39152
+ end: {
39153
+ line: 91,
39154
+ column: 58
39155
+ }
39156
+ },
39157
+ type: "binary-expr",
39158
+ locations: [{
39159
+ start: {
39160
+ line: 91,
39161
+ column: 6
39162
+ },
39163
+ end: {
39164
+ line: 91,
39165
+ column: 31
39166
+ }
39167
+ }, {
39168
+ start: {
39169
+ line: 91,
39170
+ column: 35
39171
+ },
39172
+ end: {
39173
+ line: 91,
39174
+ column: 58
39175
+ }
39176
+ }],
39177
+ line: 91
39178
+ },
39179
+ "13": {
39180
+ loc: {
39181
+ start: {
39182
+ line: 119,
38571
39183
  column: 7
38572
39184
  },
38573
39185
  end: {
38574
- line: 98,
39186
+ line: 121,
38575
39187
  column: 7
38576
39188
  }
38577
39189
  },
38578
39190
  type: "binary-expr",
38579
39191
  locations: [{
38580
39192
  start: {
38581
- line: 96,
39193
+ line: 119,
38582
39194
  column: 7
38583
39195
  },
38584
39196
  end: {
38585
- line: 96,
39197
+ line: 119,
38586
39198
  column: 23
38587
39199
  }
38588
39200
  }, {
38589
39201
  start: {
38590
- line: 97,
39202
+ line: 120,
38591
39203
  column: 8
38592
39204
  },
38593
39205
  end: {
38594
- line: 97,
39206
+ line: 120,
38595
39207
  column: 72
38596
39208
  }
38597
39209
  }],
38598
- line: 96
39210
+ line: 119
38599
39211
  },
38600
- "11": {
39212
+ "14": {
38601
39213
  loc: {
38602
39214
  start: {
38603
- line: 99,
39215
+ line: 122,
38604
39216
  column: 7
38605
39217
  },
38606
39218
  end: {
38607
- line: 106,
39219
+ line: 129,
38608
39220
  column: 7
38609
39221
  }
38610
39222
  },
38611
39223
  type: "binary-expr",
38612
39224
  locations: [{
38613
39225
  start: {
38614
- line: 99,
39226
+ line: 122,
38615
39227
  column: 7
38616
39228
  },
38617
39229
  end: {
38618
- line: 99,
39230
+ line: 122,
38619
39231
  column: 23
38620
39232
  }
38621
39233
  }, {
38622
39234
  start: {
38623
- line: 100,
39235
+ line: 123,
38624
39236
  column: 8
38625
39237
  },
38626
39238
  end: {
38627
- line: 105,
39239
+ line: 128,
38628
39240
  column: 10
38629
39241
  }
38630
39242
  }],
38631
- line: 99
39243
+ line: 122
38632
39244
  }
38633
39245
  },
38634
39246
  s: {
@@ -38661,7 +39273,15 @@ function cov_1jyxy15ds3() {
38661
39273
  "26": 0,
38662
39274
  "27": 0,
38663
39275
  "28": 0,
38664
- "29": 0
39276
+ "29": 0,
39277
+ "30": 0,
39278
+ "31": 0,
39279
+ "32": 0,
39280
+ "33": 0,
39281
+ "34": 0,
39282
+ "35": 0,
39283
+ "36": 0,
39284
+ "37": 0
38665
39285
  },
38666
39286
  f: {
38667
39287
  "0": 0,
@@ -38672,7 +39292,10 @@ function cov_1jyxy15ds3() {
38672
39292
  "5": 0,
38673
39293
  "6": 0,
38674
39294
  "7": 0,
38675
- "8": 0
39295
+ "8": 0,
39296
+ "9": 0,
39297
+ "10": 0,
39298
+ "11": 0
38676
39299
  },
38677
39300
  b: {
38678
39301
  "0": [0],
@@ -38686,10 +39309,13 @@ function cov_1jyxy15ds3() {
38686
39309
  "8": [0, 0],
38687
39310
  "9": [0, 0],
38688
39311
  "10": [0, 0],
38689
- "11": [0, 0]
39312
+ "11": [0, 0],
39313
+ "12": [0, 0],
39314
+ "13": [0, 0],
39315
+ "14": [0, 0]
38690
39316
  },
38691
39317
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
38692
- hash: "d84097ebe2b4c00473ece75fee6b84b8d7524469"
39318
+ hash: "513c5fef581a1f26ee7e3a240d2a23468af80a8c"
38693
39319
  };
38694
39320
  var coverage = global[gcv] || (global[gcv] = {});
38695
39321
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -38722,102 +39348,119 @@ var Bar = function Bar(_ref) {
38722
39348
  _ref$setIsPaneOpen = _ref.setIsPaneOpen,
38723
39349
  setIsPaneOpen = _ref$setIsPaneOpen === void 0 ? (cov_1jyxy15ds3().b[2][0]++, identity) : _ref$setIsPaneOpen,
38724
39350
  _ref$childrenKeys = _ref.childrenKeys,
38725
- childrenKeys = _ref$childrenKeys === void 0 ? (cov_1jyxy15ds3().b[3][0]++, []) : _ref$childrenKeys,
38726
- children = _ref.children;
39351
+ childrenKeys = _ref$childrenKeys === void 0 ? (cov_1jyxy15ds3().b[3][0]++, []) : _ref$childrenKeys;
38727
39352
  cov_1jyxy15ds3().f[0]++;
38728
- var keywordFilter = (cov_1jyxy15ds3().s[1]++, _objectSpread$2({
39353
+ var searchParams = (cov_1jyxy15ds3().s[1]++, new URLSearchParams(window.location.search));
39354
+ var keywordFilter = (cov_1jyxy15ds3().s[2]++, _objectSpread$2({
38729
39355
  key: "keyword",
38730
39356
  type: "text",
38731
39357
  rule: "contains",
38732
39358
  label: "Keyword"
38733
39359
  }, keyword));
38734
- var filters = (cov_1jyxy15ds3().s[2]++, buildFiltersFromSearchParams(keyword.value !== "" ? (cov_1jyxy15ds3().b[4][0]++, [keywordFilter].concat(_toConsumableArray(columns))) : (cov_1jyxy15ds3().b[4][1]++, columns)));
38735
- var nonHiddenFilters = (cov_1jyxy15ds3().s[3]++, removeBy({
39360
+ var filters = (cov_1jyxy15ds3().s[3]++, buildFiltersFromSearchParams(keyword.value !== "" ? (cov_1jyxy15ds3().b[4][0]++, [keywordFilter].concat(_toConsumableArray(columns))) : (cov_1jyxy15ds3().b[4][1]++, columns)));
39361
+ var nonHiddenFilters = (cov_1jyxy15ds3().s[4]++, removeBy({
38736
39362
  hidden: true
38737
39363
  }, filters));
38738
- var history = (cov_1jyxy15ds3().s[4]++, useHistory());
38739
- var _ref2 = (cov_1jyxy15ds3().s[5]++, useTranslation()),
39364
+ var history = (cov_1jyxy15ds3().s[5]++, useHistory());
39365
+ var _ref2 = (cov_1jyxy15ds3().s[6]++, useTranslation()),
38740
39366
  t = _ref2.t;
38741
- cov_1jyxy15ds3().s[6]++;
39367
+ cov_1jyxy15ds3().s[7]++;
38742
39368
  useEffect(function () {
38743
39369
  cov_1jyxy15ds3().f[1]++;
38744
- var handler = (cov_1jyxy15ds3().s[7]++, setTimeout(function () {
39370
+ var handler = (cov_1jyxy15ds3().s[8]++, setTimeout(function () {
38745
39371
  cov_1jyxy15ds3().f[2]++;
38746
- cov_1jyxy15ds3().s[8]++;
39372
+ cov_1jyxy15ds3().s[9]++;
38747
39373
  handleSubmit(filters);
38748
39374
  }, 500));
38749
- cov_1jyxy15ds3().s[9]++;
39375
+ cov_1jyxy15ds3().s[10]++;
38750
39376
  return function () {
38751
39377
  cov_1jyxy15ds3().f[3]++;
38752
- cov_1jyxy15ds3().s[10]++;
39378
+ cov_1jyxy15ds3().s[11]++;
38753
39379
  return clearTimeout(handler);
38754
39380
  };
38755
39381
  }, [keyword.value]);
38756
- cov_1jyxy15ds3().s[11]++;
39382
+ cov_1jyxy15ds3().s[12]++;
38757
39383
  var handleSubmit = function handleSubmit(newFilters, isClearAll) {
38758
39384
  cov_1jyxy15ds3().f[4]++;
38759
- var params = (cov_1jyxy15ds3().s[12]++, buildUrlFromFilters(_objectSpread$2({
39385
+ var params = (cov_1jyxy15ds3().s[13]++, buildUrlFromFilters(_objectSpread$2({
38760
39386
  columns: columns,
38761
39387
  filters: keyword.value !== "" ? (cov_1jyxy15ds3().b[5][0]++, [].concat(_toConsumableArray(newFilters), [keywordFilter])) : (cov_1jyxy15ds3().b[5][1]++, newFilters)
38762
39388
  }, (cov_1jyxy15ds3().b[6][0]++, isClearAll) && (cov_1jyxy15ds3().b[6][1]++, {
38763
39389
  isClearAll: true,
38764
39390
  childrenKeys: childrenKeys
38765
39391
  }))));
38766
- cov_1jyxy15ds3().s[13]++;
39392
+ cov_1jyxy15ds3().s[14]++;
38767
39393
  history.push({
38768
39394
  search: params
38769
39395
  });
38770
39396
  };
38771
- cov_1jyxy15ds3().s[14]++;
39397
+ cov_1jyxy15ds3().s[15]++;
38772
39398
  var handleDelete = function handleDelete(key) {
38773
39399
  cov_1jyxy15ds3().f[5]++;
38774
- cov_1jyxy15ds3().s[15]++;
39400
+ cov_1jyxy15ds3().s[16]++;
38775
39401
  if (key === "keyword") {
38776
39402
  cov_1jyxy15ds3().b[7][0]++;
38777
- cov_1jyxy15ds3().s[16]++;
38778
- keyword.setValue("");
38779
39403
  cov_1jyxy15ds3().s[17]++;
39404
+ keyword.setValue("");
39405
+ cov_1jyxy15ds3().s[18]++;
38780
39406
  keyword.value = "";
38781
39407
  } else {
38782
39408
  cov_1jyxy15ds3().b[7][1]++;
38783
39409
  }
38784
- var newFilters = (cov_1jyxy15ds3().s[18]++, removeBy({
39410
+ cov_1jyxy15ds3().s[19]++;
39411
+ if (childrenKeys.includes(key)) {
39412
+ cov_1jyxy15ds3().b[8][0]++;
39413
+ cov_1jyxy15ds3().s[20]++;
39414
+ searchParams["delete"](key);
39415
+ cov_1jyxy15ds3().s[21]++;
39416
+ history.push({
39417
+ search: searchParams.toString()
39418
+ });
39419
+ } else {
39420
+ cov_1jyxy15ds3().b[8][1]++;
39421
+ }
39422
+ var newFilters = (cov_1jyxy15ds3().s[22]++, removeBy({
38785
39423
  key: key
38786
39424
  }, filters));
38787
- cov_1jyxy15ds3().s[19]++;
39425
+ cov_1jyxy15ds3().s[23]++;
38788
39426
  handleSubmit(newFilters);
38789
39427
  };
38790
- cov_1jyxy15ds3().s[20]++;
39428
+ cov_1jyxy15ds3().s[24]++;
38791
39429
  var handleClearAll = function handleClearAll() {
38792
39430
  cov_1jyxy15ds3().f[6]++;
38793
- cov_1jyxy15ds3().s[21]++;
39431
+ cov_1jyxy15ds3().s[25]++;
38794
39432
  keyword.setValue("");
38795
- cov_1jyxy15ds3().s[22]++;
39433
+ cov_1jyxy15ds3().s[26]++;
38796
39434
  keyword.value = "";
38797
- cov_1jyxy15ds3().s[23]++;
39435
+ cov_1jyxy15ds3().s[27]++;
38798
39436
  handleSubmit([], true);
38799
39437
  };
38800
- var hideClearButton = (cov_1jyxy15ds3().s[24]++, nonHiddenFilters.every(function (_ref3) {
38801
- var defaultValue = _ref3.defaultValue,
38802
- isClearable = _ref3.isClearable;
39438
+ var childrenFiltersApplied = (cov_1jyxy15ds3().s[28]++, childrenKeys.some(function (key) {
38803
39439
  cov_1jyxy15ds3().f[7]++;
38804
- cov_1jyxy15ds3().s[25]++;
38805
- return (cov_1jyxy15ds3().b[8][0]++, defaultValue) && (cov_1jyxy15ds3().b[8][1]++, !isClearable);
39440
+ cov_1jyxy15ds3().s[29]++;
39441
+ return searchParams.get(key);
38806
39442
  }));
38807
- cov_1jyxy15ds3().s[26]++;
38808
- if (isEmpty(nonHiddenFilters)) {
38809
- cov_1jyxy15ds3().b[9][0]++;
38810
- cov_1jyxy15ds3().s[27]++;
39443
+ var hideClearButton = (cov_1jyxy15ds3().s[30]++, (cov_1jyxy15ds3().b[9][0]++, nonHiddenFilters.every(function (_ref3) {
39444
+ var defaultValue = _ref3.defaultValue,
39445
+ isClearable = _ref3.isClearable;
39446
+ cov_1jyxy15ds3().f[8]++;
39447
+ cov_1jyxy15ds3().s[31]++;
39448
+ return (cov_1jyxy15ds3().b[10][0]++, defaultValue) && (cov_1jyxy15ds3().b[10][1]++, !isClearable);
39449
+ })) && (cov_1jyxy15ds3().b[9][1]++, !childrenFiltersApplied));
39450
+ cov_1jyxy15ds3().s[32]++;
39451
+ if ((cov_1jyxy15ds3().b[12][0]++, isEmpty(nonHiddenFilters)) && (cov_1jyxy15ds3().b[12][1]++, !childrenFiltersApplied)) {
39452
+ cov_1jyxy15ds3().b[11][0]++;
39453
+ cov_1jyxy15ds3().s[33]++;
38811
39454
  return null;
38812
39455
  } else {
38813
- cov_1jyxy15ds3().b[9][1]++;
39456
+ cov_1jyxy15ds3().b[11][1]++;
38814
39457
  }
38815
- cov_1jyxy15ds3().s[28]++;
39458
+ cov_1jyxy15ds3().s[34]++;
38816
39459
  return /*#__PURE__*/t__default.createElement("div", {
38817
39460
  className: classnames("neeto-filters-bar", _defineProperty$4({}, className, className))
38818
39461
  }, nonHiddenFilters.map(function (filter) {
38819
- cov_1jyxy15ds3().f[8]++;
38820
- cov_1jyxy15ds3().s[29]++;
39462
+ cov_1jyxy15ds3().f[9]++;
39463
+ cov_1jyxy15ds3().s[35]++;
38821
39464
  return /*#__PURE__*/t__default.createElement(t__default.Fragment, {
38822
39465
  key: filter.key
38823
39466
  }, /*#__PURE__*/t__default.createElement(Block, {
@@ -38827,11 +39470,27 @@ var Bar = function Bar(_ref) {
38827
39470
  }), /*#__PURE__*/t__default.createElement("div", {
38828
39471
  className: "neeto-filters-bar--separator"
38829
39472
  }));
38830
- }), children, (cov_1jyxy15ds3().b[10][0]++, isNotNil(entity)) && (cov_1jyxy15ds3().b[10][1]++, /*#__PURE__*/t__default.createElement(Segment, {
39473
+ }), childrenKeys.filter(function (childKey) {
39474
+ cov_1jyxy15ds3().f[10]++;
39475
+ cov_1jyxy15ds3().s[36]++;
39476
+ return searchParams.get(childKey);
39477
+ }).map(function (childKey) {
39478
+ cov_1jyxy15ds3().f[11]++;
39479
+ cov_1jyxy15ds3().s[37]++;
39480
+ return /*#__PURE__*/t__default.createElement(t__default.Fragment, {
39481
+ key: childKey
39482
+ }, /*#__PURE__*/t__default.createElement(ChildBlock, {
39483
+ childKey: childKey,
39484
+ handleDelete: handleDelete,
39485
+ setIsPaneOpen: setIsPaneOpen
39486
+ }), /*#__PURE__*/t__default.createElement("div", {
39487
+ className: "neeto-filters-bar--separator"
39488
+ }));
39489
+ }), (cov_1jyxy15ds3().b[13][0]++, isNotNil(entity)) && (cov_1jyxy15ds3().b[13][1]++, /*#__PURE__*/t__default.createElement(Segment, {
38831
39490
  columns: columns,
38832
39491
  entity: entity,
38833
39492
  filters: filters
38834
- })), (cov_1jyxy15ds3().b[11][0]++, !hideClearButton) && (cov_1jyxy15ds3().b[11][1]++, /*#__PURE__*/t__default.createElement(Button, {
39493
+ })), (cov_1jyxy15ds3().b[14][0]++, !hideClearButton) && (cov_1jyxy15ds3().b[14][1]++, /*#__PURE__*/t__default.createElement(Button, {
38835
39494
  "data-cy": "neeto-filters-bar-clear-btn",
38836
39495
  label: t("common.clearFilters"),
38837
39496
  style: "text",