@bigbinary/neeto-molecules 1.0.21 → 1.0.23

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.
Files changed (45) hide show
  1. package/README.md +1 -0
  2. package/dist/CustomDomain.cjs.js +1867 -225
  3. package/dist/CustomDomain.cjs.js.map +1 -1
  4. package/dist/CustomDomain.js +1874 -233
  5. package/dist/CustomDomain.js.map +1 -1
  6. package/dist/Header.cjs.js +218 -51
  7. package/dist/Header.cjs.js.map +1 -1
  8. package/dist/Header.js +220 -53
  9. package/dist/Header.js.map +1 -1
  10. package/dist/IpRestriction.cjs.js +77 -57
  11. package/dist/IpRestriction.cjs.js.map +1 -1
  12. package/dist/IpRestriction.js +79 -59
  13. package/dist/IpRestriction.js.map +1 -1
  14. package/dist/NeetoWidget.cjs.js +130 -144
  15. package/dist/NeetoWidget.cjs.js.map +1 -1
  16. package/dist/NeetoWidget.js +130 -144
  17. package/dist/NeetoWidget.js.map +1 -1
  18. package/dist/Rename.cjs.js +1314 -0
  19. package/dist/Rename.cjs.js.map +1 -0
  20. package/dist/Rename.js +1308 -0
  21. package/dist/Rename.js.map +1 -0
  22. package/dist/ResponsiveDevicePicker.cjs.js +547 -0
  23. package/dist/ResponsiveDevicePicker.cjs.js.map +1 -0
  24. package/dist/ResponsiveDevicePicker.js +541 -0
  25. package/dist/ResponsiveDevicePicker.js.map +1 -0
  26. package/dist/ShareViaEmail.cjs.js +155 -98
  27. package/dist/ShareViaEmail.cjs.js.map +1 -1
  28. package/dist/ShareViaEmail.js +155 -98
  29. package/dist/ShareViaEmail.js.map +1 -1
  30. package/dist/Sidebar.cjs.js +51 -35
  31. package/dist/Sidebar.cjs.js.map +1 -1
  32. package/dist/Sidebar.js +53 -37
  33. package/dist/Sidebar.js.map +1 -1
  34. package/dist/SubHeader.cjs.js +1683 -32
  35. package/dist/SubHeader.cjs.js.map +1 -1
  36. package/dist/SubHeader.js +1683 -33
  37. package/dist/SubHeader.js.map +1 -1
  38. package/package.json +5 -3
  39. package/src/translations/en.json +40 -33
  40. package/types/Header.d.ts +2 -0
  41. package/types/Rename.d.ts +59 -0
  42. package/types/ResponsiveDevicePicker.d.ts +30 -0
  43. package/types/ShareViaEmail.d.ts +1 -0
  44. package/types/SubHeader.d.ts +31 -1
  45. package/types/TableWrapper.d.ts +13 -5
package/dist/SubHeader.js CHANGED
@@ -1,4 +1,12 @@
1
- import React from 'react';
1
+ import React, { useState, useEffect } from 'react';
2
+ import i18next from 'i18next';
3
+ import { removeBy, isNotEmpty } from '@bigbinary/neeto-commons-frontend/pure';
4
+ import { useLocalStorage } from '@bigbinary/neeto-commons-frontend/react-utils';
5
+ import { Column, Search, Download, Filter } from '@bigbinary/neeto-icons';
6
+ import { Dropdown, Input, Label, Checkbox, Button } from '@bigbinary/neetoui';
7
+ import { includes, __, filter, trim, toLower, identity, without, append } from 'ramda';
8
+ import { useTranslation } from 'react-i18next';
9
+ import { Filters } from '@bigbinary/neeto-filters-frontend';
2
10
 
3
11
  var classnames$1 = {exports: {}};
4
12
 
@@ -61,14 +69,1643 @@ var classnames$1 = {exports: {}};
61
69
 
62
70
  var classnames = classnames$1.exports;
63
71
 
72
+ function _extends() {
73
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
74
+ for (var i = 1; i < arguments.length; i++) {
75
+ var source = arguments[i];
76
+ for (var key in source) {
77
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
78
+ target[key] = source[key];
79
+ }
80
+ }
81
+ }
82
+ return target;
83
+ };
84
+ return _extends.apply(this, arguments);
85
+ }
86
+
87
+ function _arrayWithHoles(arr) {
88
+ if (Array.isArray(arr)) return arr;
89
+ }
90
+
91
+ function _iterableToArrayLimit(arr, i) {
92
+ var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
93
+ if (null != _i) {
94
+ var _s,
95
+ _e,
96
+ _x,
97
+ _r,
98
+ _arr = [],
99
+ _n = !0,
100
+ _d = !1;
101
+ try {
102
+ if (_x = (_i = _i.call(arr)).next, 0 === i) {
103
+ if (Object(_i) !== _i) return;
104
+ _n = !1;
105
+ } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
106
+ } catch (err) {
107
+ _d = !0, _e = err;
108
+ } finally {
109
+ try {
110
+ if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r)) return;
111
+ } finally {
112
+ if (_d) throw _e;
113
+ }
114
+ }
115
+ return _arr;
116
+ }
117
+ }
118
+
119
+ function _arrayLikeToArray(arr, len) {
120
+ if (len == null || len > arr.length) len = arr.length;
121
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
122
+ return arr2;
123
+ }
124
+
125
+ function _unsupportedIterableToArray(o, minLen) {
126
+ if (!o) return;
127
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
128
+ var n = Object.prototype.toString.call(o).slice(8, -1);
129
+ if (n === "Object" && o.constructor) n = o.constructor.name;
130
+ if (n === "Map" || n === "Set") return Array.from(o);
131
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
132
+ }
133
+
134
+ function _nonIterableRest() {
135
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
136
+ }
137
+
138
+ function _slicedToArray(arr, i) {
139
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
140
+ }
141
+
142
+ function cov_1ceek736tr() {
143
+ var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/utils.js";
144
+ var hash = "4e99c4492583af7874430eafb0a0c33e80d44e9d";
145
+ var global = new Function("return this")();
146
+ var gcv = "__coverage__";
147
+ var coverageData = {
148
+ path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/utils.js",
149
+ statementMap: {
150
+ "0": {
151
+ start: {
152
+ line: 4,
153
+ column: 34
154
+ },
155
+ end: {
156
+ line: 5,
157
+ column: 65
158
+ }
159
+ },
160
+ "1": {
161
+ start: {
162
+ line: 5,
163
+ column: 2
164
+ },
165
+ end: {
166
+ line: 5,
167
+ column: 65
168
+ }
169
+ },
170
+ "2": {
171
+ start: {
172
+ line: 7,
173
+ column: 34
174
+ },
175
+ end: {
176
+ line: 11,
177
+ column: 3
178
+ }
179
+ },
180
+ "3": {
181
+ start: {
182
+ line: 8,
183
+ column: 2
184
+ },
185
+ end: {
186
+ line: 11,
187
+ column: 3
188
+ }
189
+ },
190
+ "4": {
191
+ start: {
192
+ line: 9,
193
+ column: 19
194
+ },
195
+ end: {
196
+ line: 9,
197
+ column: 76
198
+ }
199
+ }
200
+ },
201
+ fnMap: {
202
+ "0": {
203
+ name: "(anonymous_0)",
204
+ decl: {
205
+ start: {
206
+ line: 4,
207
+ column: 34
208
+ },
209
+ end: {
210
+ line: 4,
211
+ column: 35
212
+ }
213
+ },
214
+ loc: {
215
+ start: {
216
+ line: 5,
217
+ column: 2
218
+ },
219
+ end: {
220
+ line: 5,
221
+ column: 65
222
+ }
223
+ },
224
+ line: 5
225
+ },
226
+ "1": {
227
+ name: "(anonymous_1)",
228
+ decl: {
229
+ start: {
230
+ line: 7,
231
+ column: 34
232
+ },
233
+ end: {
234
+ line: 7,
235
+ column: 35
236
+ }
237
+ },
238
+ loc: {
239
+ start: {
240
+ line: 8,
241
+ column: 2
242
+ },
243
+ end: {
244
+ line: 11,
245
+ column: 3
246
+ }
247
+ },
248
+ line: 8
249
+ },
250
+ "2": {
251
+ name: "(anonymous_2)",
252
+ decl: {
253
+ start: {
254
+ line: 9,
255
+ column: 4
256
+ },
257
+ end: {
258
+ line: 9,
259
+ column: 5
260
+ }
261
+ },
262
+ loc: {
263
+ start: {
264
+ line: 9,
265
+ column: 19
266
+ },
267
+ end: {
268
+ line: 9,
269
+ column: 76
270
+ }
271
+ },
272
+ line: 9
273
+ }
274
+ },
275
+ branchMap: {},
276
+ s: {
277
+ "0": 0,
278
+ "1": 0,
279
+ "2": 0,
280
+ "3": 0,
281
+ "4": 0
282
+ },
283
+ f: {
284
+ "0": 0,
285
+ "1": 0,
286
+ "2": 0
287
+ },
288
+ b: {},
289
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
290
+ hash: "4e99c4492583af7874430eafb0a0c33e80d44e9d"
291
+ };
292
+ var coverage = global[gcv] || (global[gcv] = {});
293
+ if (!coverage[path] || coverage[path].hash !== hash) {
294
+ coverage[path] = coverageData;
295
+ }
296
+ var actualCoverage = coverage[path];
297
+ {
298
+ // @ts-ignore
299
+ cov_1ceek736tr = function () {
300
+ return actualCoverage;
301
+ };
302
+ }
303
+ return actualCoverage;
304
+ }
305
+ cov_1ceek736tr();
306
+ cov_1ceek736tr().s[0]++;
307
+ var removeFixedColumns = function removeFixedColumns(fixedColumns, columnData) {
308
+ cov_1ceek736tr().f[0]++;
309
+ cov_1ceek736tr().s[1]++;
310
+ return removeBy({
311
+ dataIndex: includes(__, fixedColumns)
312
+ }, columnData);
313
+ };
314
+ cov_1ceek736tr().s[2]++;
315
+ var filterBySearchTerm = function filterBySearchTerm(searchTerm, columns) {
316
+ cov_1ceek736tr().f[1]++;
317
+ cov_1ceek736tr().s[3]++;
318
+ return filter(function (_ref) {
319
+ var title = _ref.title;
320
+ cov_1ceek736tr().f[2]++;
321
+ cov_1ceek736tr().s[4]++;
322
+ return includes(trim(toLower(searchTerm)), trim(toLower(title)));
323
+ }, columns);
324
+ };
325
+
326
+ function cov_1nk47gzsi8() {
327
+ var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Columns.jsx";
328
+ var hash = "a073b27c47692599de4a6dea8467014f75c0f886";
329
+ var global = new Function("return this")();
330
+ var gcv = "__coverage__";
331
+ var coverageData = {
332
+ path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Columns.jsx",
333
+ statementMap: {
334
+ "0": {
335
+ start: {
336
+ line: 13,
337
+ column: 16
338
+ },
339
+ end: {
340
+ line: 114,
341
+ column: 1
342
+ }
343
+ },
344
+ "1": {
345
+ start: {
346
+ line: 25,
347
+ column: 38
348
+ },
349
+ end: {
350
+ line: 25,
351
+ column: 46
352
+ }
353
+ },
354
+ "2": {
355
+ start: {
356
+ line: 26,
357
+ column: 44
358
+ },
359
+ end: {
360
+ line: 29,
361
+ column: 3
362
+ }
363
+ },
364
+ "3": {
365
+ start: {
366
+ line: 30,
367
+ column: 38
368
+ },
369
+ end: {
370
+ line: 30,
371
+ column: 50
372
+ }
373
+ },
374
+ "4": {
375
+ start: {
376
+ line: 32,
377
+ column: 18
378
+ },
379
+ end: {
380
+ line: 32,
381
+ column: 62
382
+ }
383
+ },
384
+ "5": {
385
+ start: {
386
+ line: 33,
387
+ column: 26
388
+ },
389
+ end: {
390
+ line: 33,
391
+ column: 65
392
+ }
393
+ },
394
+ "6": {
395
+ start: {
396
+ line: 35,
397
+ column: 23
398
+ },
399
+ end: {
400
+ line: 38,
401
+ column: 58
402
+ }
403
+ },
404
+ "7": {
405
+ start: {
406
+ line: 36,
407
+ column: 4
408
+ },
409
+ end: {
410
+ line: 38,
411
+ column: 58
412
+ }
413
+ },
414
+ "8": {
415
+ start: {
416
+ line: 40,
417
+ column: 23
418
+ },
419
+ end: {
420
+ line: 40,
421
+ column: 70
422
+ }
423
+ },
424
+ "9": {
425
+ start: {
426
+ line: 40,
427
+ column: 50
428
+ },
429
+ end: {
430
+ line: 40,
431
+ column: 70
432
+ }
433
+ },
434
+ "10": {
435
+ start: {
436
+ line: 42,
437
+ column: 2
438
+ },
439
+ end: {
440
+ line: 44,
441
+ column: 34
442
+ }
443
+ },
444
+ "11": {
445
+ start: {
446
+ line: 43,
447
+ column: 4
448
+ },
449
+ end: {
450
+ line: 43,
451
+ column: 79
452
+ }
453
+ },
454
+ "12": {
455
+ start: {
456
+ line: 46,
457
+ column: 16
458
+ },
459
+ end: {
460
+ line: 46,
461
+ column: 32
462
+ }
463
+ },
464
+ "13": {
465
+ start: {
466
+ line: 48,
467
+ column: 2
468
+ },
469
+ end: {
470
+ line: 113,
471
+ column: 4
472
+ }
473
+ },
474
+ "14": {
475
+ start: {
476
+ line: 62,
477
+ column: 23
478
+ },
479
+ end: {
480
+ line: 62,
481
+ column: 40
482
+ }
483
+ },
484
+ "15": {
485
+ start: {
486
+ line: 81,
487
+ column: 16
488
+ },
489
+ end: {
490
+ line: 96,
491
+ column: 27
492
+ }
493
+ }
494
+ },
495
+ fnMap: {
496
+ "0": {
497
+ name: "(anonymous_0)",
498
+ decl: {
499
+ start: {
500
+ line: 13,
501
+ column: 16
502
+ },
503
+ end: {
504
+ line: 13,
505
+ column: 17
506
+ }
507
+ },
508
+ loc: {
509
+ start: {
510
+ line: 24,
511
+ column: 6
512
+ },
513
+ end: {
514
+ line: 114,
515
+ column: 1
516
+ }
517
+ },
518
+ line: 24
519
+ },
520
+ "1": {
521
+ name: "(anonymous_1)",
522
+ decl: {
523
+ start: {
524
+ line: 35,
525
+ column: 23
526
+ },
527
+ end: {
528
+ line: 35,
529
+ column: 24
530
+ }
531
+ },
532
+ loc: {
533
+ start: {
534
+ line: 36,
535
+ column: 4
536
+ },
537
+ end: {
538
+ line: 38,
539
+ column: 58
540
+ }
541
+ },
542
+ line: 36
543
+ },
544
+ "2": {
545
+ name: "(anonymous_2)",
546
+ decl: {
547
+ start: {
548
+ line: 40,
549
+ column: 23
550
+ },
551
+ end: {
552
+ line: 40,
553
+ column: 24
554
+ }
555
+ },
556
+ loc: {
557
+ start: {
558
+ line: 40,
559
+ column: 50
560
+ },
561
+ end: {
562
+ line: 40,
563
+ column: 70
564
+ }
565
+ },
566
+ line: 40
567
+ },
568
+ "3": {
569
+ name: "(anonymous_3)",
570
+ decl: {
571
+ start: {
572
+ line: 42,
573
+ column: 12
574
+ },
575
+ end: {
576
+ line: 42,
577
+ column: 13
578
+ }
579
+ },
580
+ loc: {
581
+ start: {
582
+ line: 42,
583
+ column: 18
584
+ },
585
+ end: {
586
+ line: 44,
587
+ column: 3
588
+ }
589
+ },
590
+ line: 42
591
+ },
592
+ "4": {
593
+ name: "(anonymous_4)",
594
+ decl: {
595
+ start: {
596
+ line: 62,
597
+ column: 17
598
+ },
599
+ end: {
600
+ line: 62,
601
+ column: 18
602
+ }
603
+ },
604
+ loc: {
605
+ start: {
606
+ line: 62,
607
+ column: 23
608
+ },
609
+ end: {
610
+ line: 62,
611
+ column: 40
612
+ }
613
+ },
614
+ line: 62
615
+ },
616
+ "5": {
617
+ name: "(anonymous_5)",
618
+ decl: {
619
+ start: {
620
+ line: 80,
621
+ column: 34
622
+ },
623
+ end: {
624
+ line: 80,
625
+ column: 35
626
+ }
627
+ },
628
+ loc: {
629
+ start: {
630
+ line: 81,
631
+ column: 16
632
+ },
633
+ end: {
634
+ line: 96,
635
+ column: 27
636
+ }
637
+ },
638
+ line: 81
639
+ }
640
+ },
641
+ branchMap: {
642
+ "0": {
643
+ loc: {
644
+ start: {
645
+ line: 15,
646
+ column: 2
647
+ },
648
+ end: {
649
+ line: 15,
650
+ column: 20
651
+ }
652
+ },
653
+ type: "default-arg",
654
+ locations: [{
655
+ start: {
656
+ line: 15,
657
+ column: 18
658
+ },
659
+ end: {
660
+ line: 15,
661
+ column: 20
662
+ }
663
+ }],
664
+ line: 15
665
+ },
666
+ "1": {
667
+ loc: {
668
+ start: {
669
+ line: 16,
670
+ column: 2
671
+ },
672
+ end: {
673
+ line: 16,
674
+ column: 17
675
+ }
676
+ },
677
+ type: "default-arg",
678
+ locations: [{
679
+ start: {
680
+ line: 16,
681
+ column: 15
682
+ },
683
+ end: {
684
+ line: 16,
685
+ column: 17
686
+ }
687
+ }],
688
+ line: 16
689
+ },
690
+ "2": {
691
+ loc: {
692
+ start: {
693
+ line: 17,
694
+ column: 2
695
+ },
696
+ end: {
697
+ line: 17,
698
+ column: 20
699
+ }
700
+ },
701
+ type: "default-arg",
702
+ locations: [{
703
+ start: {
704
+ line: 17,
705
+ column: 18
706
+ },
707
+ end: {
708
+ line: 17,
709
+ column: 20
710
+ }
711
+ }],
712
+ line: 17
713
+ },
714
+ "3": {
715
+ loc: {
716
+ start: {
717
+ line: 18,
718
+ column: 2
719
+ },
720
+ end: {
721
+ line: 18,
722
+ column: 19
723
+ }
724
+ },
725
+ type: "default-arg",
726
+ locations: [{
727
+ start: {
728
+ line: 18,
729
+ column: 17
730
+ },
731
+ end: {
732
+ line: 18,
733
+ column: 19
734
+ }
735
+ }],
736
+ line: 18
737
+ },
738
+ "4": {
739
+ loc: {
740
+ start: {
741
+ line: 19,
742
+ column: 2
743
+ },
744
+ end: {
745
+ line: 19,
746
+ column: 22
747
+ }
748
+ },
749
+ type: "default-arg",
750
+ locations: [{
751
+ start: {
752
+ line: 19,
753
+ column: 17
754
+ },
755
+ end: {
756
+ line: 19,
757
+ column: 22
758
+ }
759
+ }],
760
+ line: 19
761
+ },
762
+ "5": {
763
+ loc: {
764
+ start: {
765
+ line: 20,
766
+ column: 2
767
+ },
768
+ end: {
769
+ line: 20,
770
+ column: 22
771
+ }
772
+ },
773
+ type: "default-arg",
774
+ locations: [{
775
+ start: {
776
+ line: 20,
777
+ column: 20
778
+ },
779
+ end: {
780
+ line: 20,
781
+ column: 22
782
+ }
783
+ }],
784
+ line: 20
785
+ },
786
+ "6": {
787
+ loc: {
788
+ start: {
789
+ line: 21,
790
+ column: 2
791
+ },
792
+ end: {
793
+ line: 21,
794
+ column: 65
795
+ }
796
+ },
797
+ type: "default-arg",
798
+ locations: [{
799
+ start: {
800
+ line: 21,
801
+ column: 20
802
+ },
803
+ end: {
804
+ line: 21,
805
+ column: 65
806
+ }
807
+ }],
808
+ line: 21
809
+ },
810
+ "7": {
811
+ loc: {
812
+ start: {
813
+ line: 22,
814
+ column: 2
815
+ },
816
+ end: {
817
+ line: 22,
818
+ column: 21
819
+ }
820
+ },
821
+ type: "default-arg",
822
+ locations: [{
823
+ start: {
824
+ line: 22,
825
+ column: 13
826
+ },
827
+ end: {
828
+ line: 22,
829
+ column: 21
830
+ }
831
+ }],
832
+ line: 22
833
+ },
834
+ "8": {
835
+ loc: {
836
+ start: {
837
+ line: 23,
838
+ column: 2
839
+ },
840
+ end: {
841
+ line: 23,
842
+ column: 18
843
+ }
844
+ },
845
+ type: "default-arg",
846
+ locations: [{
847
+ start: {
848
+ line: 23,
849
+ column: 16
850
+ },
851
+ end: {
852
+ line: 23,
853
+ column: 18
854
+ }
855
+ }],
856
+ line: 23
857
+ },
858
+ "9": {
859
+ loc: {
860
+ start: {
861
+ line: 36,
862
+ column: 4
863
+ },
864
+ end: {
865
+ line: 38,
866
+ column: 58
867
+ }
868
+ },
869
+ type: "cond-expr",
870
+ locations: [{
871
+ start: {
872
+ line: 37,
873
+ column: 8
874
+ },
875
+ end: {
876
+ line: 37,
877
+ column: 61
878
+ }
879
+ }, {
880
+ start: {
881
+ line: 38,
882
+ column: 8
883
+ },
884
+ end: {
885
+ line: 38,
886
+ column: 58
887
+ }
888
+ }],
889
+ line: 36
890
+ },
891
+ "10": {
892
+ loc: {
893
+ start: {
894
+ line: 67,
895
+ column: 13
896
+ },
897
+ end: {
898
+ line: 78,
899
+ column: 13
900
+ }
901
+ },
902
+ type: "binary-expr",
903
+ locations: [{
904
+ start: {
905
+ line: 67,
906
+ column: 13
907
+ },
908
+ end: {
909
+ line: 67,
910
+ column: 25
911
+ }
912
+ }, {
913
+ start: {
914
+ line: 68,
915
+ column: 14
916
+ },
917
+ end: {
918
+ line: 77,
919
+ column: 16
920
+ }
921
+ }],
922
+ line: 67
923
+ },
924
+ "11": {
925
+ loc: {
926
+ start: {
927
+ line: 79,
928
+ column: 13
929
+ },
930
+ end: {
931
+ line: 102,
932
+ column: 13
933
+ }
934
+ },
935
+ type: "cond-expr",
936
+ locations: [{
937
+ start: {
938
+ line: 80,
939
+ column: 14
940
+ },
941
+ end: {
942
+ line: 97,
943
+ column: 16
944
+ }
945
+ }, {
946
+ start: {
947
+ line: 99,
948
+ column: 14
949
+ },
950
+ end: {
951
+ line: 101,
952
+ column: 21
953
+ }
954
+ }],
955
+ line: 79
956
+ },
957
+ "12": {
958
+ loc: {
959
+ start: {
960
+ line: 103,
961
+ column: 13
962
+ },
963
+ end: {
964
+ line: 108,
965
+ column: 13
966
+ }
967
+ },
968
+ type: "binary-expr",
969
+ locations: [{
970
+ start: {
971
+ line: 103,
972
+ column: 13
973
+ },
974
+ end: {
975
+ line: 103,
976
+ column: 26
977
+ }
978
+ }, {
979
+ start: {
980
+ line: 104,
981
+ column: 14
982
+ },
983
+ end: {
984
+ line: 107,
985
+ column: 17
986
+ }
987
+ }],
988
+ line: 103
989
+ }
990
+ },
991
+ s: {
992
+ "0": 0,
993
+ "1": 0,
994
+ "2": 0,
995
+ "3": 0,
996
+ "4": 0,
997
+ "5": 0,
998
+ "6": 0,
999
+ "7": 0,
1000
+ "8": 0,
1001
+ "9": 0,
1002
+ "10": 0,
1003
+ "11": 0,
1004
+ "12": 0,
1005
+ "13": 0,
1006
+ "14": 0,
1007
+ "15": 0
1008
+ },
1009
+ f: {
1010
+ "0": 0,
1011
+ "1": 0,
1012
+ "2": 0,
1013
+ "3": 0,
1014
+ "4": 0,
1015
+ "5": 0
1016
+ },
1017
+ b: {
1018
+ "0": [0],
1019
+ "1": [0],
1020
+ "2": [0],
1021
+ "3": [0],
1022
+ "4": [0],
1023
+ "5": [0],
1024
+ "6": [0],
1025
+ "7": [0],
1026
+ "8": [0],
1027
+ "9": [0, 0],
1028
+ "10": [0, 0],
1029
+ "11": [0, 0],
1030
+ "12": [0, 0]
1031
+ },
1032
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1033
+ hash: "a073b27c47692599de4a6dea8467014f75c0f886"
1034
+ };
1035
+ var coverage = global[gcv] || (global[gcv] = {});
1036
+ if (!coverage[path] || coverage[path].hash !== hash) {
1037
+ coverage[path] = coverageData;
1038
+ }
1039
+ var actualCoverage = coverage[path];
1040
+ {
1041
+ // @ts-ignore
1042
+ cov_1nk47gzsi8 = function () {
1043
+ return actualCoverage;
1044
+ };
1045
+ }
1046
+ return actualCoverage;
1047
+ }
1048
+ cov_1nk47gzsi8();
1049
+ cov_1nk47gzsi8().s[0]++;
1050
+ var Columns = function Columns(_ref) {
1051
+ var actionBlock = _ref.actionBlock,
1052
+ _ref$checkboxProps = _ref.checkboxProps,
1053
+ checkboxProps = _ref$checkboxProps === void 0 ? (cov_1nk47gzsi8().b[0][0]++, {}) : _ref$checkboxProps,
1054
+ _ref$columnData = _ref.columnData,
1055
+ columnData = _ref$columnData === void 0 ? (cov_1nk47gzsi8().b[1][0]++, []) : _ref$columnData,
1056
+ _ref$dropdownProps = _ref.dropdownProps,
1057
+ dropdownProps = _ref$dropdownProps === void 0 ? (cov_1nk47gzsi8().b[2][0]++, {}) : _ref$dropdownProps,
1058
+ _ref$fixedColumns = _ref.fixedColumns,
1059
+ fixedColumns = _ref$fixedColumns === void 0 ? (cov_1nk47gzsi8().b[3][0]++, []) : _ref$fixedColumns,
1060
+ _ref$isSearchable = _ref.isSearchable,
1061
+ isSearchable = _ref$isSearchable === void 0 ? (cov_1nk47gzsi8().b[4][0]++, false) : _ref$isSearchable,
1062
+ _ref$localStorageKey = _ref.localStorageKey,
1063
+ localStorageKey = _ref$localStorageKey === void 0 ? (cov_1nk47gzsi8().b[5][0]++, "") : _ref$localStorageKey,
1064
+ _ref$noColumnMessage = _ref.noColumnMessage,
1065
+ noColumnMessage = _ref$noColumnMessage === void 0 ? (cov_1nk47gzsi8().b[6][0]++, i18next.t("neetoMolecules.columns.noColumns")) : _ref$noColumnMessage,
1066
+ _ref$onChange = _ref.onChange,
1067
+ onChange = _ref$onChange === void 0 ? (cov_1nk47gzsi8().b[7][0]++, identity) : _ref$onChange,
1068
+ _ref$searchProps = _ref.searchProps,
1069
+ searchProps = _ref$searchProps === void 0 ? (cov_1nk47gzsi8().b[8][0]++, {}) : _ref$searchProps;
1070
+ cov_1nk47gzsi8().f[0]++;
1071
+ var _ref2 = (cov_1nk47gzsi8().s[1]++, Dropdown),
1072
+ Divider = _ref2.Divider,
1073
+ Menu = _ref2.Menu,
1074
+ MenuItem = _ref2.MenuItem;
1075
+ var _ref3 = (cov_1nk47gzsi8().s[2]++, useLocalStorage(localStorageKey, [])),
1076
+ _ref4 = _slicedToArray(_ref3, 2),
1077
+ hiddenColumns = _ref4[0],
1078
+ setHiddenColumns = _ref4[1];
1079
+ var _ref5 = (cov_1nk47gzsi8().s[3]++, useState("")),
1080
+ _ref6 = _slicedToArray(_ref5, 2),
1081
+ searchTerm = _ref6[0],
1082
+ setSearchTerm = _ref6[1];
1083
+ var columns = (cov_1nk47gzsi8().s[4]++, removeFixedColumns(fixedColumns, columnData));
1084
+ var filteredColumns = (cov_1nk47gzsi8().s[5]++, filterBySearchTerm(searchTerm, columns));
1085
+ cov_1nk47gzsi8().s[6]++;
1086
+ var handleChange = function handleChange(_ref7) {
1087
+ var _ref7$target = _ref7.target,
1088
+ dataIndex = _ref7$target.name,
1089
+ checked = _ref7$target.checked;
1090
+ cov_1nk47gzsi8().f[1]++;
1091
+ cov_1nk47gzsi8().s[7]++;
1092
+ return checked ? (cov_1nk47gzsi8().b[9][0]++, setHiddenColumns(without([dataIndex], hiddenColumns))) : (cov_1nk47gzsi8().b[9][1]++, setHiddenColumns(append(dataIndex, hiddenColumns)));
1093
+ };
1094
+ cov_1nk47gzsi8().s[8]++;
1095
+ var handleSearch = function handleSearch(_ref8) {
1096
+ var value = _ref8.target.value;
1097
+ cov_1nk47gzsi8().f[2]++;
1098
+ cov_1nk47gzsi8().s[9]++;
1099
+ return setSearchTerm(value);
1100
+ };
1101
+ cov_1nk47gzsi8().s[10]++;
1102
+ useEffect(function () {
1103
+ cov_1nk47gzsi8().f[3]++;
1104
+ cov_1nk47gzsi8().s[11]++;
1105
+ onChange(removeBy({
1106
+ dataIndex: includes(__, hiddenColumns)
1107
+ }, columnData));
1108
+ }, [columnData, hiddenColumns]);
1109
+ var _ref9 = (cov_1nk47gzsi8().s[12]++, useTranslation()),
1110
+ t = _ref9.t;
1111
+ cov_1nk47gzsi8().s[13]++;
1112
+ return /*#__PURE__*/React.createElement("div", {
1113
+ className: "neeto-molecules-subheader__columns"
1114
+ }, /*#__PURE__*/React.createElement(Dropdown, _extends({
1115
+ buttonStyle: "text",
1116
+ closeOnSelect: false,
1117
+ position: "bottom-end",
1118
+ buttonProps: {
1119
+ icon: Column,
1120
+ tooltipProps: {
1121
+ content: t("neetoMolecules.columns.columns"),
1122
+ position: "bottom"
1123
+ },
1124
+ "data-testid": "columns-button"
1125
+ },
1126
+ onClose: function onClose() {
1127
+ cov_1nk47gzsi8().f[4]++;
1128
+ cov_1nk47gzsi8().s[14]++;
1129
+ return setSearchTerm("");
1130
+ }
1131
+ }, dropdownProps), /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement("div", null, (cov_1nk47gzsi8().b[10][0]++, isSearchable) && (cov_1nk47gzsi8().b[10][1]++, /*#__PURE__*/React.createElement(Input, _extends({
1132
+ className: "neeto-ui-px-3 neeto-ui-py-2",
1133
+ "data-cy": "neeto-ui-columns-search",
1134
+ placeholder: t("neetoMolecules.columns.search"),
1135
+ prefix: /*#__PURE__*/React.createElement(Search, null),
1136
+ type: "search",
1137
+ value: searchTerm,
1138
+ onChange: handleSearch
1139
+ }, searchProps))), isNotEmpty(filteredColumns) ? (cov_1nk47gzsi8().b[11][0]++, filteredColumns.map(function (_ref10) {
1140
+ var dataIndex = _ref10.dataIndex,
1141
+ key = _ref10.key,
1142
+ title = _ref10.title;
1143
+ cov_1nk47gzsi8().f[5]++;
1144
+ cov_1nk47gzsi8().s[15]++;
1145
+ return /*#__PURE__*/React.createElement(MenuItem, {
1146
+ key: key
1147
+ }, /*#__PURE__*/React.createElement(Label, {
1148
+ className: "neeto-ui-w-full neeto-ui-px-3 neeto-ui-py-2 hover:neeto-ui-bg-gray-200 neeto-ui-cursor-pointer",
1149
+ htmlFor: dataIndex
1150
+ }, /*#__PURE__*/React.createElement(Checkbox, _extends({
1151
+ checked: !hiddenColumns.includes(dataIndex),
1152
+ "data-cy": "neeto-ui-columns-checkbox",
1153
+ id: dataIndex,
1154
+ label: title,
1155
+ name: dataIndex,
1156
+ onChange: handleChange
1157
+ }, checkboxProps))));
1158
+ })) : (cov_1nk47gzsi8().b[11][1]++, /*#__PURE__*/React.createElement("span", {
1159
+ className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-items-center neeto-ui-p-2"
1160
+ }, noColumnMessage)), (cov_1nk47gzsi8().b[12][0]++, !!actionBlock) && (cov_1nk47gzsi8().b[12][1]++, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Divider, null), actionBlock))))));
1161
+ };
1162
+
1163
+ function cov_td1jpvcmw() {
1164
+ var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Download.jsx";
1165
+ var hash = "bfd5034300eaa044c3c9eed37cbd2988c7b9f42b";
1166
+ var global = new Function("return this")();
1167
+ var gcv = "__coverage__";
1168
+ var coverageData = {
1169
+ path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Download.jsx",
1170
+ statementMap: {
1171
+ "0": {
1172
+ start: {
1173
+ line: 7,
1174
+ column: 23
1175
+ },
1176
+ end: {
1177
+ line: 29,
1178
+ column: 1
1179
+ }
1180
+ },
1181
+ "1": {
1182
+ start: {
1183
+ line: 8,
1184
+ column: 16
1185
+ },
1186
+ end: {
1187
+ line: 8,
1188
+ column: 32
1189
+ }
1190
+ },
1191
+ "2": {
1192
+ start: {
1193
+ line: 10,
1194
+ column: 2
1195
+ },
1196
+ end: {
1197
+ line: 28,
1198
+ column: 4
1199
+ }
1200
+ }
1201
+ },
1202
+ fnMap: {
1203
+ "0": {
1204
+ name: "(anonymous_0)",
1205
+ decl: {
1206
+ start: {
1207
+ line: 7,
1208
+ column: 23
1209
+ },
1210
+ end: {
1211
+ line: 7,
1212
+ column: 24
1213
+ }
1214
+ },
1215
+ loc: {
1216
+ start: {
1217
+ line: 7,
1218
+ column: 47
1219
+ },
1220
+ end: {
1221
+ line: 29,
1222
+ column: 1
1223
+ }
1224
+ },
1225
+ line: 7
1226
+ }
1227
+ },
1228
+ branchMap: {
1229
+ "0": {
1230
+ loc: {
1231
+ start: {
1232
+ line: 22,
1233
+ column: 7
1234
+ },
1235
+ end: {
1236
+ line: 26,
1237
+ column: 7
1238
+ }
1239
+ },
1240
+ type: "binary-expr",
1241
+ locations: [{
1242
+ start: {
1243
+ line: 22,
1244
+ column: 7
1245
+ },
1246
+ end: {
1247
+ line: 22,
1248
+ column: 12
1249
+ }
1250
+ }, {
1251
+ start: {
1252
+ line: 23,
1253
+ column: 8
1254
+ },
1255
+ end: {
1256
+ line: 25,
1257
+ column: 15
1258
+ }
1259
+ }],
1260
+ line: 22
1261
+ }
1262
+ },
1263
+ s: {
1264
+ "0": 0,
1265
+ "1": 0,
1266
+ "2": 0
1267
+ },
1268
+ f: {
1269
+ "0": 0
1270
+ },
1271
+ b: {
1272
+ "0": [0, 0]
1273
+ },
1274
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1275
+ hash: "bfd5034300eaa044c3c9eed37cbd2988c7b9f42b"
1276
+ };
1277
+ var coverage = global[gcv] || (global[gcv] = {});
1278
+ if (!coverage[path] || coverage[path].hash !== hash) {
1279
+ coverage[path] = coverageData;
1280
+ }
1281
+ var actualCoverage = coverage[path];
1282
+ {
1283
+ // @ts-ignore
1284
+ cov_td1jpvcmw = function () {
1285
+ return actualCoverage;
1286
+ };
1287
+ }
1288
+ return actualCoverage;
1289
+ }
1290
+ cov_td1jpvcmw();
1291
+ cov_td1jpvcmw().s[0]++;
1292
+ var DownloadButton = function DownloadButton(_ref) {
1293
+ var count = _ref.count,
1294
+ onClick = _ref.onClick;
1295
+ cov_td1jpvcmw().f[0]++;
1296
+ var _ref2 = (cov_td1jpvcmw().s[1]++, useTranslation()),
1297
+ t = _ref2.t;
1298
+ cov_td1jpvcmw().s[2]++;
1299
+ return /*#__PURE__*/React.createElement("div", {
1300
+ className: "neeto-molecules-subheader__download"
1301
+ }, /*#__PURE__*/React.createElement(Button, {
1302
+ "data-testid": "download-button",
1303
+ icon: Download,
1304
+ style: "text",
1305
+ tooltipProps: {
1306
+ content: t("neetoMolecules.common.download"),
1307
+ position: "bottom"
1308
+ },
1309
+ onClick: onClick
1310
+ }), (cov_td1jpvcmw().b[0][0]++, count) && (cov_td1jpvcmw().b[0][1]++, /*#__PURE__*/React.createElement("span", {
1311
+ className: "neeto-molecules-subheader__download-count"
1312
+ }, count)));
1313
+ };
1314
+
1315
+ function _typeof(obj) {
1316
+ "@babel/helpers - typeof";
1317
+
1318
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
1319
+ return typeof obj;
1320
+ } : function (obj) {
1321
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1322
+ }, _typeof(obj);
1323
+ }
1324
+
1325
+ function _toPrimitive(input, hint) {
1326
+ if (_typeof(input) !== "object" || input === null) return input;
1327
+ var prim = input[Symbol.toPrimitive];
1328
+ if (prim !== undefined) {
1329
+ var res = prim.call(input, hint || "default");
1330
+ if (_typeof(res) !== "object") return res;
1331
+ throw new TypeError("@@toPrimitive must return a primitive value.");
1332
+ }
1333
+ return (hint === "string" ? String : Number)(input);
1334
+ }
1335
+
1336
+ function _toPropertyKey(arg) {
1337
+ var key = _toPrimitive(arg, "string");
1338
+ return _typeof(key) === "symbol" ? key : String(key);
1339
+ }
1340
+
1341
+ function _defineProperty(obj, key, value) {
1342
+ key = _toPropertyKey(key);
1343
+ if (key in obj) {
1344
+ Object.defineProperty(obj, key, {
1345
+ value: value,
1346
+ enumerable: true,
1347
+ configurable: true,
1348
+ writable: true
1349
+ });
1350
+ } else {
1351
+ obj[key] = value;
1352
+ }
1353
+ return obj;
1354
+ }
1355
+
1356
+ function _objectWithoutPropertiesLoose(source, excluded) {
1357
+ if (source == null) return {};
1358
+ var target = {};
1359
+ var sourceKeys = Object.keys(source);
1360
+ var key, i;
1361
+ for (i = 0; i < sourceKeys.length; i++) {
1362
+ key = sourceKeys[i];
1363
+ if (excluded.indexOf(key) >= 0) continue;
1364
+ target[key] = source[key];
1365
+ }
1366
+ return target;
1367
+ }
1368
+
1369
+ function _objectWithoutProperties(source, excluded) {
1370
+ if (source == null) return {};
1371
+ var target = _objectWithoutPropertiesLoose(source, excluded);
1372
+ var key, i;
1373
+ if (Object.getOwnPropertySymbols) {
1374
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1375
+ for (i = 0; i < sourceSymbolKeys.length; i++) {
1376
+ key = sourceSymbolKeys[i];
1377
+ if (excluded.indexOf(key) >= 0) continue;
1378
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1379
+ target[key] = source[key];
1380
+ }
1381
+ }
1382
+ return target;
1383
+ }
1384
+
1385
+ var _excluded = ["buttonProps"];
1386
+ function cov_m5zh4tynr() {
1387
+ var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Filter.jsx";
1388
+ var hash = "ccf07ab7fbe2e20d51a0eb8a8009a0ad5956d118";
1389
+ var global = new Function("return this")();
1390
+ var gcv = "__coverage__";
1391
+ var coverageData = {
1392
+ path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/Filter.jsx",
1393
+ statementMap: {
1394
+ "0": {
1395
+ start: {
1396
+ line: 7,
1397
+ column: 21
1398
+ },
1399
+ end: {
1400
+ line: 28,
1401
+ column: 1
1402
+ }
1403
+ },
1404
+ "1": {
1405
+ start: {
1406
+ line: 8,
1407
+ column: 16
1408
+ },
1409
+ end: {
1410
+ line: 8,
1411
+ column: 32
1412
+ }
1413
+ },
1414
+ "2": {
1415
+ start: {
1416
+ line: 10,
1417
+ column: 2
1418
+ },
1419
+ end: {
1420
+ line: 27,
1421
+ column: 4
1422
+ }
1423
+ }
1424
+ },
1425
+ fnMap: {
1426
+ "0": {
1427
+ name: "(anonymous_0)",
1428
+ decl: {
1429
+ start: {
1430
+ line: 7,
1431
+ column: 21
1432
+ },
1433
+ end: {
1434
+ line: 7,
1435
+ column: 22
1436
+ }
1437
+ },
1438
+ loc: {
1439
+ start: {
1440
+ line: 7,
1441
+ column: 52
1442
+ },
1443
+ end: {
1444
+ line: 28,
1445
+ column: 1
1446
+ }
1447
+ },
1448
+ line: 7
1449
+ }
1450
+ },
1451
+ branchMap: {},
1452
+ s: {
1453
+ "0": 0,
1454
+ "1": 0,
1455
+ "2": 0
1456
+ },
1457
+ f: {
1458
+ "0": 0
1459
+ },
1460
+ b: {},
1461
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1462
+ hash: "ccf07ab7fbe2e20d51a0eb8a8009a0ad5956d118"
1463
+ };
1464
+ var coverage = global[gcv] || (global[gcv] = {});
1465
+ if (!coverage[path] || coverage[path].hash !== hash) {
1466
+ coverage[path] = coverageData;
1467
+ }
1468
+ var actualCoverage = coverage[path];
1469
+ {
1470
+ // @ts-ignore
1471
+ cov_m5zh4tynr = function () {
1472
+ return actualCoverage;
1473
+ };
1474
+ }
1475
+ return actualCoverage;
1476
+ }
1477
+ cov_m5zh4tynr();
1478
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1479
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1480
+ cov_m5zh4tynr().s[0]++;
1481
+ var FilterButton = function FilterButton(_ref) {
1482
+ var buttonProps = _ref.buttonProps,
1483
+ props = _objectWithoutProperties(_ref, _excluded);
1484
+ cov_m5zh4tynr().f[0]++;
1485
+ var _ref2 = (cov_m5zh4tynr().s[1]++, useTranslation()),
1486
+ t = _ref2.t;
1487
+ cov_m5zh4tynr().s[2]++;
1488
+ return /*#__PURE__*/React.createElement("div", {
1489
+ className: "neeto-molecules-subheader__filter"
1490
+ }, /*#__PURE__*/React.createElement(Filters, _extends({
1491
+ buttonProps: _objectSpread({
1492
+ "data-testid": "filter-button",
1493
+ icon: Filter,
1494
+ style: "text",
1495
+ tooltipProps: {
1496
+ content: t("neetoMolecules.common.filter"),
1497
+ position: "bottom"
1498
+ },
1499
+ label: null
1500
+ }, buttonProps)
1501
+ }, props)));
1502
+ };
1503
+
1504
+ function cov_yp8t4aac1() {
1505
+ var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/index.jsx";
1506
+ var hash = "9cc82e2363692514f071479e9badda2e6c36b5c0";
1507
+ var global = new Function("return this")();
1508
+ var gcv = "__coverage__";
1509
+ var coverageData = {
1510
+ path: "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/RightBlock/index.jsx",
1511
+ statementMap: {
1512
+ "0": {
1513
+ start: {
1514
+ line: 7,
1515
+ column: 19
1516
+ },
1517
+ end: {
1518
+ line: 17,
1519
+ column: 1
1520
+ }
1521
+ },
1522
+ "1": {
1523
+ start: {
1524
+ line: 12,
1525
+ column: 2
1526
+ },
1527
+ end: {
1528
+ line: 16,
1529
+ column: 8
1530
+ }
1531
+ }
1532
+ },
1533
+ fnMap: {
1534
+ "0": {
1535
+ name: "(anonymous_0)",
1536
+ decl: {
1537
+ start: {
1538
+ line: 7,
1539
+ column: 19
1540
+ },
1541
+ end: {
1542
+ line: 7,
1543
+ column: 20
1544
+ }
1545
+ },
1546
+ loc: {
1547
+ start: {
1548
+ line: 12,
1549
+ column: 2
1550
+ },
1551
+ end: {
1552
+ line: 16,
1553
+ column: 8
1554
+ }
1555
+ },
1556
+ line: 12
1557
+ }
1558
+ },
1559
+ branchMap: {
1560
+ "0": {
1561
+ loc: {
1562
+ start: {
1563
+ line: 13,
1564
+ column: 5
1565
+ },
1566
+ end: {
1567
+ line: 13,
1568
+ column: 65
1569
+ }
1570
+ },
1571
+ type: "binary-expr",
1572
+ locations: [{
1573
+ start: {
1574
+ line: 13,
1575
+ column: 5
1576
+ },
1577
+ end: {
1578
+ line: 13,
1579
+ column: 24
1580
+ }
1581
+ }, {
1582
+ start: {
1583
+ line: 13,
1584
+ column: 28
1585
+ },
1586
+ end: {
1587
+ line: 13,
1588
+ column: 65
1589
+ }
1590
+ }],
1591
+ line: 13
1592
+ },
1593
+ "1": {
1594
+ loc: {
1595
+ start: {
1596
+ line: 14,
1597
+ column: 5
1598
+ },
1599
+ end: {
1600
+ line: 14,
1601
+ column: 62
1602
+ }
1603
+ },
1604
+ type: "binary-expr",
1605
+ locations: [{
1606
+ start: {
1607
+ line: 14,
1608
+ column: 5
1609
+ },
1610
+ end: {
1611
+ line: 14,
1612
+ column: 23
1613
+ }
1614
+ }, {
1615
+ start: {
1616
+ line: 14,
1617
+ column: 27
1618
+ },
1619
+ end: {
1620
+ line: 14,
1621
+ column: 62
1622
+ }
1623
+ }],
1624
+ line: 14
1625
+ },
1626
+ "2": {
1627
+ loc: {
1628
+ start: {
1629
+ line: 15,
1630
+ column: 5
1631
+ },
1632
+ end: {
1633
+ line: 15,
1634
+ column: 47
1635
+ }
1636
+ },
1637
+ type: "binary-expr",
1638
+ locations: [{
1639
+ start: {
1640
+ line: 15,
1641
+ column: 5
1642
+ },
1643
+ end: {
1644
+ line: 15,
1645
+ column: 16
1646
+ }
1647
+ }, {
1648
+ start: {
1649
+ line: 15,
1650
+ column: 20
1651
+ },
1652
+ end: {
1653
+ line: 15,
1654
+ column: 47
1655
+ }
1656
+ }],
1657
+ line: 15
1658
+ }
1659
+ },
1660
+ s: {
1661
+ "0": 0,
1662
+ "1": 0
1663
+ },
1664
+ f: {
1665
+ "0": 0
1666
+ },
1667
+ b: {
1668
+ "0": [0, 0],
1669
+ "1": [0, 0],
1670
+ "2": [0, 0]
1671
+ },
1672
+ _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
1673
+ hash: "9cc82e2363692514f071479e9badda2e6c36b5c0"
1674
+ };
1675
+ var coverage = global[gcv] || (global[gcv] = {});
1676
+ if (!coverage[path] || coverage[path].hash !== hash) {
1677
+ coverage[path] = coverageData;
1678
+ }
1679
+ var actualCoverage = coverage[path];
1680
+ {
1681
+ // @ts-ignore
1682
+ cov_yp8t4aac1 = function () {
1683
+ return actualCoverage;
1684
+ };
1685
+ }
1686
+ return actualCoverage;
1687
+ }
1688
+ cov_yp8t4aac1();
1689
+ cov_yp8t4aac1().s[0]++;
1690
+ var RightBlock = function RightBlock(_ref) {
1691
+ var downloadButtonProps = _ref.downloadButtonProps,
1692
+ columnsButtonProps = _ref.columnsButtonProps,
1693
+ filterProps = _ref.filterProps;
1694
+ cov_yp8t4aac1().f[0]++;
1695
+ cov_yp8t4aac1().s[1]++;
1696
+ return /*#__PURE__*/React.createElement("div", {
1697
+ className: "neeto-molecules-subheader__right-actions"
1698
+ }, (cov_yp8t4aac1().b[0][0]++, downloadButtonProps) && (cov_yp8t4aac1().b[0][1]++, /*#__PURE__*/React.createElement(DownloadButton, downloadButtonProps)), (cov_yp8t4aac1().b[1][0]++, columnsButtonProps) && (cov_yp8t4aac1().b[1][1]++, /*#__PURE__*/React.createElement(Columns, columnsButtonProps)), (cov_yp8t4aac1().b[2][0]++, filterProps) && (cov_yp8t4aac1().b[2][1]++, /*#__PURE__*/React.createElement(FilterButton, filterProps)));
1699
+ };
1700
+
64
1701
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
65
1702
 
66
- var css = ".neeto-molecules-subheader{align-items:center;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--neeto-ui-sub-header-bottom-margin);min-height:var(--neeto-ui-sub-header-height);width:100%}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper{display:flex;flex-grow:1}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left{align-items:center;display:flex;flex-direction:row;justify-content:flex-start}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left .neeto-molecules-input__prefix{color:rgb(var(--neeto-ui-gray-400))}.neeto-molecules-subheader .neeto-molecules-subheader__right{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-end}";
1703
+ var css = ".neeto-molecules-subheader{align-items:center;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:row;justify-content:space-between;margin-bottom:var(--neeto-ui-sub-header-bottom-margin);min-height:var(--neeto-ui-sub-header-height);width:100%}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper{display:flex;flex-grow:1}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left{align-items:center;display:flex;flex-direction:row;justify-content:flex-start}.neeto-molecules-subheader .neeto-molecules-subheader__left-wrapper .neeto-molecules-subheader__left .neeto-molecules-input__prefix{color:rgb(var(--neeto-ui-gray-400))}.neeto-molecules-subheader .neeto-molecules-subheader__right{align-items:center;display:flex;flex-direction:row;gap:12px;justify-content:flex-end}.neeto-molecules-subheader .neeto-molecules-subheader__right-actions{align-items:center;display:flex;flex-direction:row;gap:8px;justify-content:flex-end}.neeto-molecules-subheader .neeto-molecules-subheader__right-actions>:not([hidden])~:not([hidden]){border-left:thin solid rgb(var(--neeto-ui-gray-300));padding-left:8px}.neeto-molecules-subheader__download{position:relative}.neeto-molecules-subheader__download-count{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:inline-flex;font-size:10px;justify-content:center;min-height:16px;min-width:16px;position:absolute;right:-2px;text-align:center;top:-2px;z-index:1}";
67
1704
  n(css,{});
68
1705
 
69
1706
  function cov_mkycqaehe() {
70
1707
  var path = "/home/runner/work/neeto-molecules/neeto-molecules/src/components/SubHeader/index.jsx";
71
- var hash = "add11ac729f682ff4016960d57fa604d2fbbbcaa";
1708
+ var hash = "f99fde5ef8dd8b7cb1893834760b2fabb55416b1";
72
1709
  var global = new Function("return this")();
73
1710
  var gcv = "__coverage__";
74
1711
  var coverageData = {
@@ -76,23 +1713,33 @@ function cov_mkycqaehe() {
76
1713
  statementMap: {
77
1714
  "0": {
78
1715
  start: {
79
- line: 7,
1716
+ line: 8,
80
1717
  column: 18
81
1718
  },
82
1719
  end: {
83
- line: 21,
1720
+ line: 22,
84
1721
  column: 1
85
1722
  }
86
1723
  },
87
1724
  "1": {
88
1725
  start: {
89
- line: 8,
1726
+ line: 9,
90
1727
  column: 2
91
1728
  },
92
1729
  end: {
93
- line: 20,
1730
+ line: 21,
94
1731
  column: 8
95
1732
  }
1733
+ },
1734
+ "2": {
1735
+ start: {
1736
+ line: 24,
1737
+ column: 0
1738
+ },
1739
+ end: {
1740
+ line: 24,
1741
+ column: 34
1742
+ }
96
1743
  }
97
1744
  },
98
1745
  fnMap: {
@@ -100,122 +1747,123 @@ function cov_mkycqaehe() {
100
1747
  name: "(anonymous_0)",
101
1748
  decl: {
102
1749
  start: {
103
- line: 7,
1750
+ line: 8,
104
1751
  column: 18
105
1752
  },
106
1753
  end: {
107
- line: 7,
1754
+ line: 8,
108
1755
  column: 19
109
1756
  }
110
1757
  },
111
1758
  loc: {
112
1759
  start: {
113
- line: 8,
1760
+ line: 9,
114
1761
  column: 2
115
1762
  },
116
1763
  end: {
117
- line: 20,
1764
+ line: 21,
118
1765
  column: 8
119
1766
  }
120
1767
  },
121
- line: 8
1768
+ line: 9
122
1769
  }
123
1770
  },
124
1771
  branchMap: {
125
1772
  "0": {
126
1773
  loc: {
127
1774
  start: {
128
- line: 7,
1775
+ line: 8,
129
1776
  column: 21
130
1777
  },
131
1778
  end: {
132
- line: 7,
1779
+ line: 8,
133
1780
  column: 35
134
1781
  }
135
1782
  },
136
1783
  type: "default-arg",
137
1784
  locations: [{
138
1785
  start: {
139
- line: 7,
1786
+ line: 8,
140
1787
  column: 33
141
1788
  },
142
1789
  end: {
143
- line: 7,
1790
+ line: 8,
144
1791
  column: 35
145
1792
  }
146
1793
  }],
147
- line: 7
1794
+ line: 8
148
1795
  },
149
1796
  "1": {
150
1797
  loc: {
151
1798
  start: {
152
- line: 13,
1799
+ line: 14,
153
1800
  column: 7
154
1801
  },
155
1802
  end: {
156
- line: 15,
1803
+ line: 16,
157
1804
  column: 7
158
1805
  }
159
1806
  },
160
1807
  type: "binary-expr",
161
1808
  locations: [{
162
1809
  start: {
163
- line: 13,
1810
+ line: 14,
164
1811
  column: 7
165
1812
  },
166
1813
  end: {
167
- line: 13,
1814
+ line: 14,
168
1815
  column: 22
169
1816
  }
170
1817
  }, {
171
1818
  start: {
172
- line: 14,
1819
+ line: 15,
173
1820
  column: 8
174
1821
  },
175
1822
  end: {
176
- line: 14,
1823
+ line: 15,
177
1824
  column: 80
178
1825
  }
179
1826
  }],
180
- line: 13
1827
+ line: 14
181
1828
  },
182
1829
  "2": {
183
1830
  loc: {
184
1831
  start: {
185
- line: 17,
1832
+ line: 18,
186
1833
  column: 5
187
1834
  },
188
1835
  end: {
189
- line: 19,
1836
+ line: 20,
190
1837
  column: 5
191
1838
  }
192
1839
  },
193
1840
  type: "binary-expr",
194
1841
  locations: [{
195
1842
  start: {
196
- line: 17,
1843
+ line: 18,
197
1844
  column: 5
198
1845
  },
199
1846
  end: {
200
- line: 17,
1847
+ line: 18,
201
1848
  column: 21
202
1849
  }
203
1850
  }, {
204
1851
  start: {
205
- line: 18,
1852
+ line: 19,
206
1853
  column: 6
207
1854
  },
208
1855
  end: {
209
- line: 18,
1856
+ line: 19,
210
1857
  column: 80
211
1858
  }
212
1859
  }],
213
- line: 17
1860
+ line: 18
214
1861
  }
215
1862
  },
216
1863
  s: {
217
1864
  "0": 0,
218
- "1": 0
1865
+ "1": 0,
1866
+ "2": 0
219
1867
  },
220
1868
  f: {
221
1869
  "0": 0
@@ -226,7 +1874,7 @@ function cov_mkycqaehe() {
226
1874
  "2": [0, 0]
227
1875
  },
228
1876
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
229
- hash: "add11ac729f682ff4016960d57fa604d2fbbbcaa"
1877
+ hash: "f99fde5ef8dd8b7cb1893834760b2fabb55416b1"
230
1878
  };
231
1879
  var coverage = global[gcv] || (global[gcv] = {});
232
1880
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -261,6 +1909,8 @@ var SubHeader = function SubHeader(_ref) {
261
1909
  className: "neeto-molecules-subheader__right"
262
1910
  }, rightActionBlock)));
263
1911
  };
1912
+ cov_mkycqaehe().s[2]++;
1913
+ SubHeader.RightBlock = RightBlock;
264
1914
 
265
1915
  export { SubHeader as default };
266
1916
  //# sourceMappingURL=SubHeader.js.map