@finqu/cool 1.1.3 → 1.1.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.
@@ -1,263 +1,4150 @@
1
1
  /*!
2
- * Cool UI sectiontabs.js v1.1.2 (https://finqu.fi)
2
+ * Cool UI sectiontabs.js v1.1.3 (https://finqu.fi)
3
3
  * Copyright 2011-2019 Finqu Oy
4
4
  * Licensed under the ISC license - (http://opensource.org/licenses/ISC)
5
5
  */
6
6
  (function (global, factory) {
7
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
8
- typeof define === 'function' && define.amd ? define(['jquery'], factory) :
9
- (global = global || self, global.SectionTabs = factory());
7
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery')) :
8
+ typeof define === 'function' && define.amd ? define(['jquery'], factory) :
9
+ (global = global || self, global.SectionTabs = factory());
10
10
  }(this, function () { 'use strict';
11
11
 
12
- const debounce = function (func, wait, immediate) {
13
- let timeout;
14
- return function () {
15
- let context = this;
16
- let args = arguments;
12
+ function _inheritsLoose(subClass, superClass) {
13
+ subClass.prototype = Object.create(superClass.prototype);
14
+ subClass.prototype.constructor = subClass;
15
+ subClass.__proto__ = superClass;
16
+ }
17
17
 
18
- let later = function () {
19
- timeout = null;
18
+ var cov_1aq59bicqw = function () {
19
+ var path = "/Users/miikka/Finqu/virtualmachine/finqu-lib/finqu-ui/js/src/util/index.js";
20
+ var hash = "41e71577115787f991a6e874aa95ed3aa5f5e01f";
20
21
 
21
- if (!immediate) {
22
- func.apply(context, args);
23
- }
24
- };
22
+ var Function = function () {}.constructor;
25
23
 
26
- let callNow = immediate && !timeout;
27
- clearTimeout(timeout);
28
- timeout = setTimeout(later, wait);
24
+ var global = new Function("return this")();
25
+ var gcv = "__coverage__";
26
+ var coverageData = {
27
+ path: "/Users/miikka/Finqu/virtualmachine/finqu-lib/finqu-ui/js/src/util/index.js",
28
+ statementMap: {
29
+ "0": {
30
+ start: {
31
+ line: 3,
32
+ column: 17
33
+ },
34
+ end: {
35
+ line: 30,
36
+ column: 1
37
+ }
38
+ },
39
+ "1": {
40
+ start: {
41
+ line: 7,
42
+ column: 1
43
+ },
44
+ end: {
45
+ line: 29,
46
+ column: 3
47
+ }
48
+ },
49
+ "2": {
50
+ start: {
51
+ line: 9,
52
+ column: 16
53
+ },
54
+ end: {
55
+ line: 9,
56
+ column: 20
57
+ }
58
+ },
59
+ "3": {
60
+ start: {
61
+ line: 10,
62
+ column: 13
63
+ },
64
+ end: {
65
+ line: 10,
66
+ column: 22
67
+ }
68
+ },
69
+ "4": {
70
+ start: {
71
+ line: 11,
72
+ column: 14
73
+ },
74
+ end: {
75
+ line: 18,
76
+ column: 3
77
+ }
78
+ },
79
+ "5": {
80
+ start: {
81
+ line: 13,
82
+ column: 3
83
+ },
84
+ end: {
85
+ line: 13,
86
+ column: 18
87
+ }
88
+ },
89
+ "6": {
90
+ start: {
91
+ line: 15,
92
+ column: 3
93
+ },
94
+ end: {
95
+ line: 17,
96
+ column: 4
97
+ }
98
+ },
99
+ "7": {
100
+ start: {
101
+ line: 16,
102
+ column: 4
103
+ },
104
+ end: {
105
+ line: 16,
106
+ column: 29
107
+ }
108
+ },
109
+ "8": {
110
+ start: {
111
+ line: 20,
112
+ column: 16
113
+ },
114
+ end: {
115
+ line: 20,
116
+ column: 37
117
+ }
118
+ },
119
+ "9": {
120
+ start: {
121
+ line: 22,
122
+ column: 2
123
+ },
124
+ end: {
125
+ line: 22,
126
+ column: 24
127
+ }
128
+ },
129
+ "10": {
130
+ start: {
131
+ line: 24,
132
+ column: 2
133
+ },
134
+ end: {
135
+ line: 24,
136
+ column: 36
137
+ }
138
+ },
139
+ "11": {
140
+ start: {
141
+ line: 26,
142
+ column: 2
143
+ },
144
+ end: {
145
+ line: 28,
146
+ column: 3
147
+ }
148
+ },
149
+ "12": {
150
+ start: {
151
+ line: 27,
152
+ column: 3
153
+ },
154
+ end: {
155
+ line: 27,
156
+ column: 29
157
+ }
158
+ },
159
+ "13": {
160
+ start: {
161
+ line: 32,
162
+ column: 24
163
+ },
164
+ end: {
165
+ line: 38,
166
+ column: 1
167
+ }
168
+ },
169
+ "14": {
170
+ start: {
171
+ line: 34,
172
+ column: 1
173
+ },
174
+ end: {
175
+ line: 37,
176
+ column: 3
177
+ }
178
+ },
179
+ "15": {
180
+ start: {
181
+ line: 36,
182
+ column: 2
183
+ },
184
+ end: {
185
+ line: 36,
186
+ column: 41
187
+ }
188
+ },
189
+ "16": {
190
+ start: {
191
+ line: 40,
192
+ column: 20
193
+ },
194
+ end: {
195
+ line: 45,
196
+ column: 1
197
+ }
198
+ },
199
+ "17": {
200
+ start: {
201
+ line: 42,
202
+ column: 14
203
+ },
204
+ end: {
205
+ line: 42,
206
+ column: 39
207
+ }
208
+ },
209
+ "18": {
210
+ start: {
211
+ line: 44,
212
+ column: 1
213
+ },
214
+ end: {
215
+ line: 44,
216
+ column: 82
217
+ }
218
+ },
219
+ "19": {
220
+ start: {
221
+ line: 47,
222
+ column: 19
223
+ },
224
+ end: {
225
+ line: 70,
226
+ column: 1
227
+ }
228
+ },
229
+ "20": {
230
+ start: {
231
+ line: 49,
232
+ column: 4
233
+ },
234
+ end: {
235
+ line: 51,
236
+ column: 2
237
+ }
238
+ },
239
+ "21": {
240
+ start: {
241
+ line: 50,
242
+ column: 5
243
+ },
244
+ end: {
245
+ line: 50,
246
+ column: 17
247
+ }
248
+ },
249
+ "22": {
250
+ start: {
251
+ line: 53,
252
+ column: 1
253
+ },
254
+ end: {
255
+ line: 65,
256
+ column: 2
257
+ }
258
+ },
259
+ "23": {
260
+ start: {
261
+ line: 55,
262
+ column: 10
263
+ },
264
+ end: {
265
+ line: 57,
266
+ column: 4
267
+ }
268
+ },
269
+ "24": {
270
+ start: {
271
+ line: 56,
272
+ column: 3
273
+ },
274
+ end: {
275
+ line: 56,
276
+ column: 36
277
+ }
278
+ },
279
+ "25": {
280
+ start: {
281
+ line: 59,
282
+ column: 10
283
+ },
284
+ end: {
285
+ line: 61,
286
+ column: 4
287
+ }
288
+ },
289
+ "26": {
290
+ start: {
291
+ line: 60,
292
+ column: 3
293
+ },
294
+ end: {
295
+ line: 60,
296
+ column: 55
297
+ }
298
+ },
299
+ "27": {
300
+ start: {
301
+ line: 62,
302
+ column: 10
303
+ },
304
+ end: {
305
+ line: 64,
306
+ column: 4
307
+ }
308
+ },
309
+ "28": {
310
+ start: {
311
+ line: 63,
312
+ column: 3
313
+ },
314
+ end: {
315
+ line: 63,
316
+ column: 68
317
+ }
318
+ },
319
+ "29": {
320
+ start: {
321
+ line: 67,
322
+ column: 4
323
+ },
324
+ end: {
325
+ line: 69,
326
+ column: 6
327
+ }
328
+ },
329
+ "30": {
330
+ start: {
331
+ line: 68,
332
+ column: 2
333
+ },
334
+ end: {
335
+ line: 68,
336
+ column: 40
337
+ }
338
+ },
339
+ "31": {
340
+ start: {
341
+ line: 72,
342
+ column: 13
343
+ },
344
+ end: {
345
+ line: 95,
346
+ column: 1
347
+ }
348
+ },
349
+ "32": {
350
+ start: {
351
+ line: 74,
352
+ column: 1
353
+ },
354
+ end: {
355
+ line: 74,
356
+ column: 42
357
+ }
358
+ },
359
+ "33": {
360
+ start: {
361
+ line: 79,
362
+ column: 1
363
+ },
364
+ end: {
365
+ line: 92,
366
+ column: 2
367
+ }
368
+ },
369
+ "34": {
370
+ start: {
371
+ line: 81,
372
+ column: 2
373
+ },
374
+ end: {
375
+ line: 83,
376
+ column: 3
377
+ }
378
+ },
379
+ "35": {
380
+ start: {
381
+ line: 82,
382
+ column: 3
383
+ },
384
+ end: {
385
+ line: 82,
386
+ column: 28
387
+ }
388
+ },
389
+ "36": {
390
+ start: {
391
+ line: 87,
392
+ column: 13
393
+ },
394
+ end: {
395
+ line: 87,
396
+ column: 29
397
+ }
398
+ },
399
+ "37": {
400
+ start: {
401
+ line: 89,
402
+ column: 2
403
+ },
404
+ end: {
405
+ line: 91,
406
+ column: 3
407
+ }
408
+ },
409
+ "38": {
410
+ start: {
411
+ line: 90,
412
+ column: 3
413
+ },
414
+ end: {
415
+ line: 90,
416
+ column: 40
417
+ }
418
+ },
419
+ "39": {
420
+ start: {
421
+ line: 94,
422
+ column: 1
423
+ },
424
+ end: {
425
+ line: 94,
426
+ column: 12
427
+ }
428
+ },
429
+ "40": {
430
+ start: {
431
+ line: 97,
432
+ column: 20
433
+ },
434
+ end: {
435
+ line: 106,
436
+ column: 1
437
+ }
438
+ },
439
+ "41": {
440
+ start: {
441
+ line: 99,
442
+ column: 14
443
+ },
444
+ end: {
445
+ line: 99,
446
+ column: 19
447
+ }
448
+ },
449
+ "42": {
450
+ start: {
451
+ line: 101,
452
+ column: 1
453
+ },
454
+ end: {
455
+ line: 103,
456
+ column: 2
457
+ }
458
+ },
459
+ "43": {
460
+ start: {
461
+ line: 102,
462
+ column: 2
463
+ },
464
+ end: {
465
+ line: 102,
466
+ column: 16
467
+ }
468
+ },
469
+ "44": {
470
+ start: {
471
+ line: 105,
472
+ column: 1
473
+ },
474
+ end: {
475
+ line: 105,
476
+ column: 15
477
+ }
478
+ }
479
+ },
480
+ fnMap: {
481
+ "0": {
482
+ name: "(anonymous_0)",
483
+ decl: {
484
+ start: {
485
+ line: 3,
486
+ column: 17
487
+ },
488
+ end: {
489
+ line: 3,
490
+ column: 18
491
+ }
492
+ },
493
+ loc: {
494
+ start: {
495
+ line: 3,
496
+ column: 50
497
+ },
498
+ end: {
499
+ line: 30,
500
+ column: 1
501
+ }
502
+ },
503
+ line: 3
504
+ },
505
+ "1": {
506
+ name: "(anonymous_1)",
507
+ decl: {
508
+ start: {
509
+ line: 7,
510
+ column: 8
511
+ },
512
+ end: {
513
+ line: 7,
514
+ column: 9
515
+ }
516
+ },
517
+ loc: {
518
+ start: {
519
+ line: 7,
520
+ column: 19
521
+ },
522
+ end: {
523
+ line: 29,
524
+ column: 2
525
+ }
526
+ },
527
+ line: 7
528
+ },
529
+ "2": {
530
+ name: "(anonymous_2)",
531
+ decl: {
532
+ start: {
533
+ line: 11,
534
+ column: 14
535
+ },
536
+ end: {
537
+ line: 11,
538
+ column: 15
539
+ }
540
+ },
541
+ loc: {
542
+ start: {
543
+ line: 11,
544
+ column: 25
545
+ },
546
+ end: {
547
+ line: 18,
548
+ column: 3
549
+ }
550
+ },
551
+ line: 11
552
+ },
553
+ "3": {
554
+ name: "(anonymous_3)",
555
+ decl: {
556
+ start: {
557
+ line: 32,
558
+ column: 24
559
+ },
560
+ end: {
561
+ line: 32,
562
+ column: 25
563
+ }
564
+ },
565
+ loc: {
566
+ start: {
567
+ line: 32,
568
+ column: 38
569
+ },
570
+ end: {
571
+ line: 38,
572
+ column: 1
573
+ }
574
+ },
575
+ line: 32
576
+ },
577
+ "4": {
578
+ name: "(anonymous_4)",
579
+ decl: {
580
+ start: {
581
+ line: 34,
582
+ column: 8
583
+ },
584
+ end: {
585
+ line: 34,
586
+ column: 9
587
+ }
588
+ },
589
+ loc: {
590
+ start: {
591
+ line: 34,
592
+ column: 22
593
+ },
594
+ end: {
595
+ line: 37,
596
+ column: 2
597
+ }
598
+ },
599
+ line: 34
600
+ },
601
+ "5": {
602
+ name: "(anonymous_5)",
603
+ decl: {
604
+ start: {
605
+ line: 40,
606
+ column: 20
607
+ },
608
+ end: {
609
+ line: 40,
610
+ column: 21
611
+ }
612
+ },
613
+ loc: {
614
+ start: {
615
+ line: 40,
616
+ column: 41
617
+ },
618
+ end: {
619
+ line: 45,
620
+ column: 1
621
+ }
622
+ },
623
+ line: 40
624
+ },
625
+ "6": {
626
+ name: "(anonymous_6)",
627
+ decl: {
628
+ start: {
629
+ line: 47,
630
+ column: 19
631
+ },
632
+ end: {
633
+ line: 47,
634
+ column: 20
635
+ }
636
+ },
637
+ loc: {
638
+ start: {
639
+ line: 47,
640
+ column: 53
641
+ },
642
+ end: {
643
+ line: 70,
644
+ column: 1
645
+ }
646
+ },
647
+ line: 47
648
+ },
649
+ "7": {
650
+ name: "(anonymous_7)",
651
+ decl: {
652
+ start: {
653
+ line: 55,
654
+ column: 17
655
+ },
656
+ end: {
657
+ line: 55,
658
+ column: 18
659
+ }
660
+ },
661
+ loc: {
662
+ start: {
663
+ line: 55,
664
+ column: 33
665
+ },
666
+ end: {
667
+ line: 57,
668
+ column: 3
669
+ }
670
+ },
671
+ line: 55
672
+ },
673
+ "8": {
674
+ name: "(anonymous_8)",
675
+ decl: {
676
+ start: {
677
+ line: 59,
678
+ column: 17
679
+ },
680
+ end: {
681
+ line: 59,
682
+ column: 18
683
+ }
684
+ },
685
+ loc: {
686
+ start: {
687
+ line: 59,
688
+ column: 52
689
+ },
690
+ end: {
691
+ line: 61,
692
+ column: 3
693
+ }
694
+ },
695
+ line: 59
696
+ },
697
+ "9": {
698
+ name: "(anonymous_9)",
699
+ decl: {
700
+ start: {
701
+ line: 62,
702
+ column: 17
703
+ },
704
+ end: {
705
+ line: 62,
706
+ column: 18
707
+ }
708
+ },
709
+ loc: {
710
+ start: {
711
+ line: 62,
712
+ column: 65
713
+ },
714
+ end: {
715
+ line: 64,
716
+ column: 3
717
+ }
718
+ },
719
+ line: 62
720
+ },
721
+ "10": {
722
+ name: "(anonymous_10)",
723
+ decl: {
724
+ start: {
725
+ line: 67,
726
+ column: 11
727
+ },
728
+ end: {
729
+ line: 67,
730
+ column: 12
731
+ }
732
+ },
733
+ loc: {
734
+ start: {
735
+ line: 67,
736
+ column: 22
737
+ },
738
+ end: {
739
+ line: 69,
740
+ column: 5
741
+ }
742
+ },
743
+ line: 67
744
+ },
745
+ "11": {
746
+ name: "(anonymous_11)",
747
+ decl: {
748
+ start: {
749
+ line: 72,
750
+ column: 13
751
+ },
752
+ end: {
753
+ line: 72,
754
+ column: 14
755
+ }
756
+ },
757
+ loc: {
758
+ start: {
759
+ line: 72,
760
+ column: 46
761
+ },
762
+ end: {
763
+ line: 95,
764
+ column: 1
765
+ }
766
+ },
767
+ line: 72
768
+ },
769
+ "12": {
770
+ name: "(anonymous_12)",
771
+ decl: {
772
+ start: {
773
+ line: 97,
774
+ column: 20
775
+ },
776
+ end: {
777
+ line: 97,
778
+ column: 21
779
+ }
780
+ },
781
+ loc: {
782
+ start: {
783
+ line: 97,
784
+ column: 32
785
+ },
786
+ end: {
787
+ line: 106,
788
+ column: 1
789
+ }
790
+ },
791
+ line: 97
792
+ }
793
+ },
794
+ branchMap: {
795
+ "0": {
796
+ loc: {
797
+ start: {
798
+ line: 15,
799
+ column: 3
800
+ },
801
+ end: {
802
+ line: 17,
803
+ column: 4
804
+ }
805
+ },
806
+ type: "if",
807
+ locations: [{
808
+ start: {
809
+ line: 15,
810
+ column: 3
811
+ },
812
+ end: {
813
+ line: 17,
814
+ column: 4
815
+ }
816
+ }, {
817
+ start: {
818
+ line: 15,
819
+ column: 3
820
+ },
821
+ end: {
822
+ line: 17,
823
+ column: 4
824
+ }
825
+ }],
826
+ line: 15
827
+ },
828
+ "1": {
829
+ loc: {
830
+ start: {
831
+ line: 20,
832
+ column: 16
833
+ },
834
+ end: {
835
+ line: 20,
836
+ column: 37
837
+ }
838
+ },
839
+ type: "binary-expr",
840
+ locations: [{
841
+ start: {
842
+ line: 20,
843
+ column: 16
844
+ },
845
+ end: {
846
+ line: 20,
847
+ column: 25
848
+ }
849
+ }, {
850
+ start: {
851
+ line: 20,
852
+ column: 29
853
+ },
854
+ end: {
855
+ line: 20,
856
+ column: 37
857
+ }
858
+ }],
859
+ line: 20
860
+ },
861
+ "2": {
862
+ loc: {
863
+ start: {
864
+ line: 26,
865
+ column: 2
866
+ },
867
+ end: {
868
+ line: 28,
869
+ column: 3
870
+ }
871
+ },
872
+ type: "if",
873
+ locations: [{
874
+ start: {
875
+ line: 26,
876
+ column: 2
877
+ },
878
+ end: {
879
+ line: 28,
880
+ column: 3
881
+ }
882
+ }, {
883
+ start: {
884
+ line: 26,
885
+ column: 2
886
+ },
887
+ end: {
888
+ line: 28,
889
+ column: 3
890
+ }
891
+ }],
892
+ line: 26
893
+ },
894
+ "3": {
895
+ loc: {
896
+ start: {
897
+ line: 36,
898
+ column: 9
899
+ },
900
+ end: {
901
+ line: 36,
902
+ column: 40
903
+ }
904
+ },
905
+ type: "cond-expr",
906
+ locations: [{
907
+ start: {
908
+ line: 36,
909
+ column: 23
910
+ },
911
+ end: {
912
+ line: 36,
913
+ column: 29
914
+ }
915
+ }, {
916
+ start: {
917
+ line: 36,
918
+ column: 32
919
+ },
920
+ end: {
921
+ line: 36,
922
+ column: 40
923
+ }
924
+ }],
925
+ line: 36
926
+ },
927
+ "4": {
928
+ loc: {
929
+ start: {
930
+ line: 44,
931
+ column: 8
932
+ },
933
+ end: {
934
+ line: 44,
935
+ column: 81
936
+ }
937
+ },
938
+ type: "binary-expr",
939
+ locations: [{
940
+ start: {
941
+ line: 44,
942
+ column: 8
943
+ },
944
+ end: {
945
+ line: 44,
946
+ column: 33
947
+ }
948
+ }, {
949
+ start: {
950
+ line: 44,
951
+ column: 37
952
+ },
953
+ end: {
954
+ line: 44,
955
+ column: 48
956
+ }
957
+ }, {
958
+ start: {
959
+ line: 44,
960
+ column: 52
961
+ },
962
+ end: {
963
+ line: 44,
964
+ column: 81
965
+ }
966
+ }],
967
+ line: 44
968
+ },
969
+ "5": {
970
+ loc: {
971
+ start: {
972
+ line: 49,
973
+ column: 4
974
+ },
975
+ end: {
976
+ line: 51,
977
+ column: 2
978
+ }
979
+ },
980
+ type: "if",
981
+ locations: [{
982
+ start: {
983
+ line: 49,
984
+ column: 4
985
+ },
986
+ end: {
987
+ line: 51,
988
+ column: 2
989
+ }
990
+ }, {
991
+ start: {
992
+ line: 49,
993
+ column: 4
994
+ },
995
+ end: {
996
+ line: 51,
997
+ column: 2
998
+ }
999
+ }],
1000
+ line: 49
1001
+ },
1002
+ "6": {
1003
+ loc: {
1004
+ start: {
1005
+ line: 53,
1006
+ column: 1
1007
+ },
1008
+ end: {
1009
+ line: 65,
1010
+ column: 2
1011
+ }
1012
+ },
1013
+ type: "switch",
1014
+ locations: [{
1015
+ start: {
1016
+ line: 55,
1017
+ column: 2
1018
+ },
1019
+ end: {
1020
+ line: 57,
1021
+ column: 4
1022
+ }
1023
+ }, {
1024
+ start: {
1025
+ line: 59,
1026
+ column: 2
1027
+ },
1028
+ end: {
1029
+ line: 61,
1030
+ column: 4
1031
+ }
1032
+ }, {
1033
+ start: {
1034
+ line: 62,
1035
+ column: 2
1036
+ },
1037
+ end: {
1038
+ line: 64,
1039
+ column: 4
1040
+ }
1041
+ }],
1042
+ line: 53
1043
+ },
1044
+ "7": {
1045
+ loc: {
1046
+ start: {
1047
+ line: 53,
1048
+ column: 9
1049
+ },
1050
+ end: {
1051
+ line: 53,
1052
+ column: 40
1053
+ }
1054
+ },
1055
+ type: "cond-expr",
1056
+ locations: [{
1057
+ start: {
1058
+ line: 53,
1059
+ column: 28
1060
+ },
1061
+ end: {
1062
+ line: 53,
1063
+ column: 29
1064
+ }
1065
+ }, {
1066
+ start: {
1067
+ line: 53,
1068
+ column: 32
1069
+ },
1070
+ end: {
1071
+ line: 53,
1072
+ column: 40
1073
+ }
1074
+ }],
1075
+ line: 53
1076
+ },
1077
+ "8": {
1078
+ loc: {
1079
+ start: {
1080
+ line: 79,
1081
+ column: 1
1082
+ },
1083
+ end: {
1084
+ line: 92,
1085
+ column: 2
1086
+ }
1087
+ },
1088
+ type: "if",
1089
+ locations: [{
1090
+ start: {
1091
+ line: 79,
1092
+ column: 1
1093
+ },
1094
+ end: {
1095
+ line: 92,
1096
+ column: 2
1097
+ }
1098
+ }, {
1099
+ start: {
1100
+ line: 79,
1101
+ column: 1
1102
+ },
1103
+ end: {
1104
+ line: 92,
1105
+ column: 2
1106
+ }
1107
+ }],
1108
+ line: 79
1109
+ },
1110
+ "9": {
1111
+ loc: {
1112
+ start: {
1113
+ line: 101,
1114
+ column: 1
1115
+ },
1116
+ end: {
1117
+ line: 103,
1118
+ column: 2
1119
+ }
1120
+ },
1121
+ type: "if",
1122
+ locations: [{
1123
+ start: {
1124
+ line: 101,
1125
+ column: 1
1126
+ },
1127
+ end: {
1128
+ line: 103,
1129
+ column: 2
1130
+ }
1131
+ }, {
1132
+ start: {
1133
+ line: 101,
1134
+ column: 1
1135
+ },
1136
+ end: {
1137
+ line: 103,
1138
+ column: 2
1139
+ }
1140
+ }],
1141
+ line: 101
1142
+ },
1143
+ "10": {
1144
+ loc: {
1145
+ start: {
1146
+ line: 101,
1147
+ column: 5
1148
+ },
1149
+ end: {
1150
+ line: 101,
1151
+ column: 92
1152
+ }
1153
+ },
1154
+ type: "binary-expr",
1155
+ locations: [{
1156
+ start: {
1157
+ line: 101,
1158
+ column: 6
1159
+ },
1160
+ end: {
1161
+ line: 101,
1162
+ column: 30
1163
+ }
1164
+ }, {
1165
+ start: {
1166
+ line: 101,
1167
+ column: 35
1168
+ },
1169
+ end: {
1170
+ line: 101,
1171
+ column: 55
1172
+ }
1173
+ }, {
1174
+ start: {
1175
+ line: 101,
1176
+ column: 59
1177
+ },
1178
+ end: {
1179
+ line: 101,
1180
+ column: 92
1181
+ }
1182
+ }],
1183
+ line: 101
1184
+ }
1185
+ },
1186
+ s: {
1187
+ "0": 0,
1188
+ "1": 0,
1189
+ "2": 0,
1190
+ "3": 0,
1191
+ "4": 0,
1192
+ "5": 0,
1193
+ "6": 0,
1194
+ "7": 0,
1195
+ "8": 0,
1196
+ "9": 0,
1197
+ "10": 0,
1198
+ "11": 0,
1199
+ "12": 0,
1200
+ "13": 0,
1201
+ "14": 0,
1202
+ "15": 0,
1203
+ "16": 0,
1204
+ "17": 0,
1205
+ "18": 0,
1206
+ "19": 0,
1207
+ "20": 0,
1208
+ "21": 0,
1209
+ "22": 0,
1210
+ "23": 0,
1211
+ "24": 0,
1212
+ "25": 0,
1213
+ "26": 0,
1214
+ "27": 0,
1215
+ "28": 0,
1216
+ "29": 0,
1217
+ "30": 0,
1218
+ "31": 0,
1219
+ "32": 0,
1220
+ "33": 0,
1221
+ "34": 0,
1222
+ "35": 0,
1223
+ "36": 0,
1224
+ "37": 0,
1225
+ "38": 0,
1226
+ "39": 0,
1227
+ "40": 0,
1228
+ "41": 0,
1229
+ "42": 0,
1230
+ "43": 0,
1231
+ "44": 0
1232
+ },
1233
+ f: {
1234
+ "0": 0,
1235
+ "1": 0,
1236
+ "2": 0,
1237
+ "3": 0,
1238
+ "4": 0,
1239
+ "5": 0,
1240
+ "6": 0,
1241
+ "7": 0,
1242
+ "8": 0,
1243
+ "9": 0,
1244
+ "10": 0,
1245
+ "11": 0,
1246
+ "12": 0
1247
+ },
1248
+ b: {
1249
+ "0": [0, 0],
1250
+ "1": [0, 0],
1251
+ "2": [0, 0],
1252
+ "3": [0, 0],
1253
+ "4": [0, 0, 0],
1254
+ "5": [0, 0],
1255
+ "6": [0, 0, 0],
1256
+ "7": [0, 0],
1257
+ "8": [0, 0],
1258
+ "9": [0, 0],
1259
+ "10": [0, 0, 0]
1260
+ },
1261
+ _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184"
1262
+ };
1263
+ var coverage = global[gcv] || (global[gcv] = {});
29
1264
 
30
- if (callNow) {
31
- func.apply(context, args);
32
- }
33
- };
34
- };
1265
+ if (coverage[path] && coverage[path].hash === hash) {
1266
+ return coverage[path];
1267
+ }
35
1268
 
36
- class AbstractUIComponent {
37
- // Init callback
38
- onInit() {
39
- let onInit = this.opts.onInit;
1269
+ coverageData.hash = hash;
1270
+ return coverage[path] = coverageData;
1271
+ }();
1272
+ cov_1aq59bicqw.s[0]++;
40
1273
 
41
- if (typeof onInit === 'function') {
42
- onInit.call(this.el);
43
- }
44
- } // Update callback
1274
+ var debounce = function debounce(func, wait, immediate) {
1275
+ cov_1aq59bicqw.f[0]++;
1276
+ var timeout;
1277
+ cov_1aq59bicqw.s[1]++;
1278
+ return function () {
1279
+ cov_1aq59bicqw.f[1]++;
1280
+ var context = (cov_1aq59bicqw.s[2]++, this);
1281
+ var args = (cov_1aq59bicqw.s[3]++, arguments);
1282
+ cov_1aq59bicqw.s[4]++;
45
1283
 
1284
+ var later = function later() {
1285
+ cov_1aq59bicqw.f[2]++;
1286
+ cov_1aq59bicqw.s[5]++;
1287
+ timeout = null;
1288
+ cov_1aq59bicqw.s[6]++;
46
1289
 
47
- onUpdate() {
48
- let onUpdate = this.opts.onUpdate;
1290
+ if (!immediate) {
1291
+ cov_1aq59bicqw.b[0][0]++;
1292
+ cov_1aq59bicqw.s[7]++;
1293
+ func.apply(context, args);
1294
+ } else {
1295
+ cov_1aq59bicqw.b[0][1]++;
1296
+ }
1297
+ };
49
1298
 
50
- if (typeof onUpdate === 'function') {
51
- onUpdate.call(this.el);
52
- }
53
- } // Destroy callback
1299
+ var callNow = (cov_1aq59bicqw.s[8]++, (cov_1aq59bicqw.b[1][0]++, immediate) && (cov_1aq59bicqw.b[1][1]++, !timeout));
1300
+ cov_1aq59bicqw.s[9]++;
1301
+ clearTimeout(timeout);
1302
+ cov_1aq59bicqw.s[10]++;
1303
+ timeout = setTimeout(later, wait);
1304
+ cov_1aq59bicqw.s[11]++;
54
1305
 
1306
+ if (callNow) {
1307
+ cov_1aq59bicqw.b[2][0]++;
1308
+ cov_1aq59bicqw.s[12]++;
1309
+ func.apply(context, args);
1310
+ } else {
1311
+ cov_1aq59bicqw.b[2][1]++;
1312
+ }
1313
+ };
1314
+ };
55
1315
 
56
- onDestroy() {
57
- let onDestroy = this.opts.onDestroy;
1316
+ cov_1aq59bicqw.s[13]++;
58
1317
 
59
- if (typeof onDestroy === 'function') {
60
- onDestroy.call(this.el);
61
- }
62
- } // Show callback
1318
+ cov_1aq59bicqw.s[16]++;
63
1319
 
1320
+ cov_1aq59bicqw.s[19]++;
64
1321
 
65
- onShow() {
66
- let onShow = this.opts.onShow;
1322
+ cov_1aq59bicqw.s[31]++;
67
1323
 
68
- if (typeof onShow === 'function') {
69
- onShow.call(this.el);
70
- }
71
- } // Close callback
1324
+ cov_1aq59bicqw.s[40]++;
72
1325
 
1326
+ var cov_kukkvdmxo = function () {
1327
+ var path = "/Users/miikka/Finqu/virtualmachine/finqu-lib/finqu-ui/js/src/abstract-ui-component.js";
1328
+ var hash = "59ba3af58ef1755d975863fa46008161dd501d5b";
73
1329
 
74
- onClose() {
75
- let onClose = this.opts.onClose;
1330
+ var Function = function () {}.constructor;
76
1331
 
77
- if (typeof onClose === 'function') {
78
- onClose.call(this.el);
79
- }
80
- } // Debug log
1332
+ var global = new Function("return this")();
1333
+ var gcv = "__coverage__";
1334
+ var coverageData = {
1335
+ path: "/Users/miikka/Finqu/virtualmachine/finqu-lib/finqu-ui/js/src/abstract-ui-component.js",
1336
+ statementMap: {
1337
+ "0": {
1338
+ start: {
1339
+ line: 6,
1340
+ column: 21
1341
+ },
1342
+ end: {
1343
+ line: 6,
1344
+ column: 37
1345
+ }
1346
+ },
1347
+ "1": {
1348
+ start: {
1349
+ line: 8,
1350
+ column: 8
1351
+ },
1352
+ end: {
1353
+ line: 11,
1354
+ column: 9
1355
+ }
1356
+ },
1357
+ "2": {
1358
+ start: {
1359
+ line: 10,
1360
+ column: 12
1361
+ },
1362
+ end: {
1363
+ line: 10,
1364
+ column: 33
1365
+ }
1366
+ },
1367
+ "3": {
1368
+ start: {
1369
+ line: 17,
1370
+ column: 23
1371
+ },
1372
+ end: {
1373
+ line: 17,
1374
+ column: 41
1375
+ }
1376
+ },
1377
+ "4": {
1378
+ start: {
1379
+ line: 19,
1380
+ column: 8
1381
+ },
1382
+ end: {
1383
+ line: 22,
1384
+ column: 9
1385
+ }
1386
+ },
1387
+ "5": {
1388
+ start: {
1389
+ line: 21,
1390
+ column: 12
1391
+ },
1392
+ end: {
1393
+ line: 21,
1394
+ column: 35
1395
+ }
1396
+ },
1397
+ "6": {
1398
+ start: {
1399
+ line: 28,
1400
+ column: 24
1401
+ },
1402
+ end: {
1403
+ line: 28,
1404
+ column: 43
1405
+ }
1406
+ },
1407
+ "7": {
1408
+ start: {
1409
+ line: 30,
1410
+ column: 8
1411
+ },
1412
+ end: {
1413
+ line: 33,
1414
+ column: 9
1415
+ }
1416
+ },
1417
+ "8": {
1418
+ start: {
1419
+ line: 32,
1420
+ column: 12
1421
+ },
1422
+ end: {
1423
+ line: 32,
1424
+ column: 36
1425
+ }
1426
+ },
1427
+ "9": {
1428
+ start: {
1429
+ line: 39,
1430
+ column: 21
1431
+ },
1432
+ end: {
1433
+ line: 39,
1434
+ column: 37
1435
+ }
1436
+ },
1437
+ "10": {
1438
+ start: {
1439
+ line: 41,
1440
+ column: 8
1441
+ },
1442
+ end: {
1443
+ line: 44,
1444
+ column: 9
1445
+ }
1446
+ },
1447
+ "11": {
1448
+ start: {
1449
+ line: 43,
1450
+ column: 12
1451
+ },
1452
+ end: {
1453
+ line: 43,
1454
+ column: 33
1455
+ }
1456
+ },
1457
+ "12": {
1458
+ start: {
1459
+ line: 50,
1460
+ column: 22
1461
+ },
1462
+ end: {
1463
+ line: 50,
1464
+ column: 39
1465
+ }
1466
+ },
1467
+ "13": {
1468
+ start: {
1469
+ line: 52,
1470
+ column: 8
1471
+ },
1472
+ end: {
1473
+ line: 55,
1474
+ column: 9
1475
+ }
1476
+ },
1477
+ "14": {
1478
+ start: {
1479
+ line: 54,
1480
+ column: 12
1481
+ },
1482
+ end: {
1483
+ line: 54,
1484
+ column: 34
1485
+ }
1486
+ },
1487
+ "15": {
1488
+ start: {
1489
+ line: 61,
1490
+ column: 5
1491
+ },
1492
+ end: {
1493
+ line: 68,
1494
+ column: 6
1495
+ }
1496
+ },
1497
+ "16": {
1498
+ start: {
1499
+ line: 63,
1500
+ column: 12
1501
+ },
1502
+ end: {
1503
+ line: 67,
1504
+ column: 13
1505
+ }
1506
+ },
1507
+ "17": {
1508
+ start: {
1509
+ line: 64,
1510
+ column: 16
1511
+ },
1512
+ end: {
1513
+ line: 64,
1514
+ column: 36
1515
+ }
1516
+ },
1517
+ "18": {
1518
+ start: {
1519
+ line: 66,
1520
+ column: 10
1521
+ },
1522
+ end: {
1523
+ line: 66,
1524
+ column: 31
1525
+ }
1526
+ }
1527
+ },
1528
+ fnMap: {
1529
+ "0": {
1530
+ name: "(anonymous_0)",
1531
+ decl: {
1532
+ start: {
1533
+ line: 4,
1534
+ column: 4
1535
+ },
1536
+ end: {
1537
+ line: 4,
1538
+ column: 5
1539
+ }
1540
+ },
1541
+ loc: {
1542
+ start: {
1543
+ line: 4,
1544
+ column: 13
1545
+ },
1546
+ end: {
1547
+ line: 12,
1548
+ column: 5
1549
+ }
1550
+ },
1551
+ line: 4
1552
+ },
1553
+ "1": {
1554
+ name: "(anonymous_1)",
1555
+ decl: {
1556
+ start: {
1557
+ line: 15,
1558
+ column: 4
1559
+ },
1560
+ end: {
1561
+ line: 15,
1562
+ column: 5
1563
+ }
1564
+ },
1565
+ loc: {
1566
+ start: {
1567
+ line: 15,
1568
+ column: 15
1569
+ },
1570
+ end: {
1571
+ line: 23,
1572
+ column: 5
1573
+ }
1574
+ },
1575
+ line: 15
1576
+ },
1577
+ "2": {
1578
+ name: "(anonymous_2)",
1579
+ decl: {
1580
+ start: {
1581
+ line: 26,
1582
+ column: 4
1583
+ },
1584
+ end: {
1585
+ line: 26,
1586
+ column: 5
1587
+ }
1588
+ },
1589
+ loc: {
1590
+ start: {
1591
+ line: 26,
1592
+ column: 16
1593
+ },
1594
+ end: {
1595
+ line: 34,
1596
+ column: 5
1597
+ }
1598
+ },
1599
+ line: 26
1600
+ },
1601
+ "3": {
1602
+ name: "(anonymous_3)",
1603
+ decl: {
1604
+ start: {
1605
+ line: 37,
1606
+ column: 4
1607
+ },
1608
+ end: {
1609
+ line: 37,
1610
+ column: 5
1611
+ }
1612
+ },
1613
+ loc: {
1614
+ start: {
1615
+ line: 37,
1616
+ column: 13
1617
+ },
1618
+ end: {
1619
+ line: 45,
1620
+ column: 5
1621
+ }
1622
+ },
1623
+ line: 37
1624
+ },
1625
+ "4": {
1626
+ name: "(anonymous_4)",
1627
+ decl: {
1628
+ start: {
1629
+ line: 48,
1630
+ column: 4
1631
+ },
1632
+ end: {
1633
+ line: 48,
1634
+ column: 5
1635
+ }
1636
+ },
1637
+ loc: {
1638
+ start: {
1639
+ line: 48,
1640
+ column: 14
1641
+ },
1642
+ end: {
1643
+ line: 56,
1644
+ column: 5
1645
+ }
1646
+ },
1647
+ line: 48
1648
+ },
1649
+ "5": {
1650
+ name: "(anonymous_5)",
1651
+ decl: {
1652
+ start: {
1653
+ line: 59,
1654
+ column: 4
1655
+ },
1656
+ end: {
1657
+ line: 59,
1658
+ column: 5
1659
+ }
1660
+ },
1661
+ loc: {
1662
+ start: {
1663
+ line: 59,
1664
+ column: 17
1665
+ },
1666
+ end: {
1667
+ line: 69,
1668
+ column: 5
1669
+ }
1670
+ },
1671
+ line: 59
1672
+ }
1673
+ },
1674
+ branchMap: {
1675
+ "0": {
1676
+ loc: {
1677
+ start: {
1678
+ line: 8,
1679
+ column: 8
1680
+ },
1681
+ end: {
1682
+ line: 11,
1683
+ column: 9
1684
+ }
1685
+ },
1686
+ type: "if",
1687
+ locations: [{
1688
+ start: {
1689
+ line: 8,
1690
+ column: 8
1691
+ },
1692
+ end: {
1693
+ line: 11,
1694
+ column: 9
1695
+ }
1696
+ }, {
1697
+ start: {
1698
+ line: 8,
1699
+ column: 8
1700
+ },
1701
+ end: {
1702
+ line: 11,
1703
+ column: 9
1704
+ }
1705
+ }],
1706
+ line: 8
1707
+ },
1708
+ "1": {
1709
+ loc: {
1710
+ start: {
1711
+ line: 19,
1712
+ column: 8
1713
+ },
1714
+ end: {
1715
+ line: 22,
1716
+ column: 9
1717
+ }
1718
+ },
1719
+ type: "if",
1720
+ locations: [{
1721
+ start: {
1722
+ line: 19,
1723
+ column: 8
1724
+ },
1725
+ end: {
1726
+ line: 22,
1727
+ column: 9
1728
+ }
1729
+ }, {
1730
+ start: {
1731
+ line: 19,
1732
+ column: 8
1733
+ },
1734
+ end: {
1735
+ line: 22,
1736
+ column: 9
1737
+ }
1738
+ }],
1739
+ line: 19
1740
+ },
1741
+ "2": {
1742
+ loc: {
1743
+ start: {
1744
+ line: 30,
1745
+ column: 8
1746
+ },
1747
+ end: {
1748
+ line: 33,
1749
+ column: 9
1750
+ }
1751
+ },
1752
+ type: "if",
1753
+ locations: [{
1754
+ start: {
1755
+ line: 30,
1756
+ column: 8
1757
+ },
1758
+ end: {
1759
+ line: 33,
1760
+ column: 9
1761
+ }
1762
+ }, {
1763
+ start: {
1764
+ line: 30,
1765
+ column: 8
1766
+ },
1767
+ end: {
1768
+ line: 33,
1769
+ column: 9
1770
+ }
1771
+ }],
1772
+ line: 30
1773
+ },
1774
+ "3": {
1775
+ loc: {
1776
+ start: {
1777
+ line: 41,
1778
+ column: 8
1779
+ },
1780
+ end: {
1781
+ line: 44,
1782
+ column: 9
1783
+ }
1784
+ },
1785
+ type: "if",
1786
+ locations: [{
1787
+ start: {
1788
+ line: 41,
1789
+ column: 8
1790
+ },
1791
+ end: {
1792
+ line: 44,
1793
+ column: 9
1794
+ }
1795
+ }, {
1796
+ start: {
1797
+ line: 41,
1798
+ column: 8
1799
+ },
1800
+ end: {
1801
+ line: 44,
1802
+ column: 9
1803
+ }
1804
+ }],
1805
+ line: 41
1806
+ },
1807
+ "4": {
1808
+ loc: {
1809
+ start: {
1810
+ line: 52,
1811
+ column: 8
1812
+ },
1813
+ end: {
1814
+ line: 55,
1815
+ column: 9
1816
+ }
1817
+ },
1818
+ type: "if",
1819
+ locations: [{
1820
+ start: {
1821
+ line: 52,
1822
+ column: 8
1823
+ },
1824
+ end: {
1825
+ line: 55,
1826
+ column: 9
1827
+ }
1828
+ }, {
1829
+ start: {
1830
+ line: 52,
1831
+ column: 8
1832
+ },
1833
+ end: {
1834
+ line: 55,
1835
+ column: 9
1836
+ }
1837
+ }],
1838
+ line: 52
1839
+ },
1840
+ "5": {
1841
+ loc: {
1842
+ start: {
1843
+ line: 61,
1844
+ column: 5
1845
+ },
1846
+ end: {
1847
+ line: 68,
1848
+ column: 6
1849
+ }
1850
+ },
1851
+ type: "if",
1852
+ locations: [{
1853
+ start: {
1854
+ line: 61,
1855
+ column: 5
1856
+ },
1857
+ end: {
1858
+ line: 68,
1859
+ column: 6
1860
+ }
1861
+ }, {
1862
+ start: {
1863
+ line: 61,
1864
+ column: 5
1865
+ },
1866
+ end: {
1867
+ line: 68,
1868
+ column: 6
1869
+ }
1870
+ }],
1871
+ line: 61
1872
+ },
1873
+ "6": {
1874
+ loc: {
1875
+ start: {
1876
+ line: 63,
1877
+ column: 12
1878
+ },
1879
+ end: {
1880
+ line: 67,
1881
+ column: 13
1882
+ }
1883
+ },
1884
+ type: "if",
1885
+ locations: [{
1886
+ start: {
1887
+ line: 63,
1888
+ column: 12
1889
+ },
1890
+ end: {
1891
+ line: 67,
1892
+ column: 13
1893
+ }
1894
+ }, {
1895
+ start: {
1896
+ line: 63,
1897
+ column: 12
1898
+ },
1899
+ end: {
1900
+ line: 67,
1901
+ column: 13
1902
+ }
1903
+ }],
1904
+ line: 63
1905
+ }
1906
+ },
1907
+ s: {
1908
+ "0": 0,
1909
+ "1": 0,
1910
+ "2": 0,
1911
+ "3": 0,
1912
+ "4": 0,
1913
+ "5": 0,
1914
+ "6": 0,
1915
+ "7": 0,
1916
+ "8": 0,
1917
+ "9": 0,
1918
+ "10": 0,
1919
+ "11": 0,
1920
+ "12": 0,
1921
+ "13": 0,
1922
+ "14": 0,
1923
+ "15": 0,
1924
+ "16": 0,
1925
+ "17": 0,
1926
+ "18": 0
1927
+ },
1928
+ f: {
1929
+ "0": 0,
1930
+ "1": 0,
1931
+ "2": 0,
1932
+ "3": 0,
1933
+ "4": 0,
1934
+ "5": 0
1935
+ },
1936
+ b: {
1937
+ "0": [0, 0],
1938
+ "1": [0, 0],
1939
+ "2": [0, 0],
1940
+ "3": [0, 0],
1941
+ "4": [0, 0],
1942
+ "5": [0, 0],
1943
+ "6": [0, 0]
1944
+ },
1945
+ _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184"
1946
+ };
1947
+ var coverage = global[gcv] || (global[gcv] = {});
81
1948
 
1949
+ if (coverage[path] && coverage[path].hash === hash) {
1950
+ return coverage[path];
1951
+ }
82
1952
 
83
- log(...args) {
84
- if (this.debug) {
85
- if (typeof this.debug === 'function') {
86
- this.debug(...args);
87
- } else {
88
- console.log(...args);
89
- }
90
- }
91
- }
1953
+ coverageData.hash = hash;
1954
+ return coverage[path] = coverageData;
1955
+ }();
92
1956
 
93
- }
1957
+ var AbstractUIComponent =
1958
+ /*#__PURE__*/
1959
+ function () {
1960
+ function AbstractUIComponent() {}
94
1961
 
95
- const NAME = 'coolSectionTabs';
96
- const DATA_KEY = 'plugin_coolSectionTabs';
1962
+ var _proto = AbstractUIComponent.prototype;
97
1963
 
98
- class SectionTabs extends AbstractUIComponent {
99
- constructor(el, opts) {
100
- super();
101
- this.opts = {};
102
-
103
- if (window.Cool.settings.sectionTabs) {
104
- $.extend(true, this.opts, $.fn[NAME].defaults, window.Cool.settings.sectionTabs, opts);
105
- } else {
106
- $.extend(true, this.opts, $.fn[NAME].defaults, opts);
107
- }
108
-
109
- this.el = el;
110
- this.debug = this.opts.debug;
111
- this.init();
112
- } // Init plugin
113
-
114
-
115
- init() {
116
- this.buildCache();
117
- this.bindEvents();
118
- this.checkForChanges();
119
- this.onInit();
120
- } // Remove plugin instance completely
121
-
122
-
123
- destroy() {
124
- this.unbindEvents();
125
- this.$el.removeData(DATA_KEY);
126
- this.onDestroy();
127
- } // Update plugin data
128
-
129
-
130
- update() {
131
- this.buildCache();
132
- this.onUpdate();
133
- } // Cache DOM nodes for performance
134
-
135
-
136
- buildCache() {
137
- this.$el = $(this.el);
138
- this.$dropdownContainer = this.$el.find('.dropdown-container');
139
- this.$dropdownList = this.$el.find('.dropdown-list');
140
- this.tabsCount = this.$el.find('> .tab-item').length;
141
- this.tabs = this.$el.find('> .tab-item:visible');
142
- $.each(this.tabs, function (i, el) {
143
- $(el).data('width', $(el).outerWidth(true));
144
- });
145
- this.log(this.$el);
146
- this.log(this.$dropdownContainer);
147
- this.log(this.$dropdownList);
148
- this.log(this.tabsCount);
149
- } // Bind events that trigger methods
150
-
151
-
152
- bindEvents() {
153
- $(window).on('resize', debounce(() => {
154
- this.checkForChanges();
155
- }, 250));
156
- } // Unbind events that trigger methods
157
-
158
-
159
- unbindEvents() {
160
- this.$el.off('.' + this._name);
161
- } // Move to list
162
-
163
-
164
- moveToList(el) {
165
- $(el).insertBefore(this.$dropdownContainer);
166
- this.checkForChanges();
167
- } // Move to dropdown
168
-
169
-
170
- moveToDropdown(el) {
171
- $(el).appendTo(this.$dropdownList);
172
- this.checkForChanges();
173
- } // Overflow status
174
-
175
-
176
- overflowStatus() {
177
- if (this.$el[0].offsetWidth < this.$el[0].scrollWidth) {
178
- return true;
179
- } else {
180
- return false;
181
- }
182
- } // CheckForChanges
183
-
184
-
185
- checkForChanges() {
186
- let dropdownItems = this.$dropdownList.children();
187
- let moveableTabs = this.$el.find('> .tab-item').not(this.$dropdownContainer);
188
- let tabs = this.$el.find('> .tab-item:visible');
189
- let usedSpace = 0;
190
- $.each(tabs, function (i, el) {
191
- usedSpace += $(el).outerWidth(true);
192
- });
193
- let freeSpace = this.$el[0].offsetWidth - usedSpace;
194
-
195
- if (dropdownItems.length > 0) {
196
- if (!this.$dropdownContainer.hasClass('visible')) {
197
- this.$dropdownContainer.addClass('visible');
198
- }
199
- } else {
200
- if (this.$dropdownContainer.hasClass('visible')) {
201
- this.$dropdownContainer.removeClass('visible');
202
- }
203
- }
204
-
205
- if (this.overflowStatus() == true) {
206
- if (moveableTabs.length > 0) {
207
- this.moveToDropdown(moveableTabs.last());
208
- }
209
- } else {
210
- if (dropdownItems.length > 0) {
211
- if (freeSpace > dropdownItems.last().data('width')) {
212
- this.moveToList(dropdownItems.last());
213
- }
214
- }
215
- }
216
- }
217
-
218
- static _jQueryInterface(config) {
219
- return this.each(function () {
220
- let data = $(this).data(DATA_KEY);
221
-
222
- const _config = typeof config === 'object' && config;
223
-
224
- if (!data) {
225
- data = new SectionTabs(this, _config);
226
- $(this).data(DATA_KEY, data);
227
- }
228
-
229
- if (typeof config === 'string') {
230
- if (typeof data[config] === 'undefined') {
231
- throw new TypeError(`No method named "${config}"`);
232
- }
233
-
234
- data[config]();
235
- }
236
- });
237
- }
238
-
239
- }
240
-
241
- if (typeof $ !== 'undefined') {
242
- // jQuery
243
- const JQUERY_NO_CONFLICT = $.fn[NAME];
244
- $.fn[NAME] = SectionTabs._jQueryInterface;
245
- $.fn[NAME].Constructor = SectionTabs;
246
-
247
- $.fn[NAME].noConflict = () => {
248
- $.fn[NAME] = JQUERY_NO_CONFLICT;
249
- return SectionTabs._jQueryInterface;
250
- };
251
-
252
- $.fn[NAME].defaults = {
253
- onInit: null,
254
- onUpdate: null,
255
- onDestroy: null,
256
- debug: false
257
- };
258
- }
259
-
260
- return SectionTabs;
1964
+ // Init callback
1965
+ _proto.onInit = function onInit() {
1966
+ cov_kukkvdmxo.f[0]++;
1967
+ var onInit = (cov_kukkvdmxo.s[0]++, this.opts.onInit);
1968
+ cov_kukkvdmxo.s[1]++;
1969
+
1970
+ if (typeof onInit === 'function') {
1971
+ cov_kukkvdmxo.b[0][0]++;
1972
+ cov_kukkvdmxo.s[2]++;
1973
+ onInit.call(this.el);
1974
+ } else {
1975
+ cov_kukkvdmxo.b[0][1]++;
1976
+ }
1977
+ } // Update callback
1978
+ ;
1979
+
1980
+ _proto.onUpdate = function onUpdate() {
1981
+ cov_kukkvdmxo.f[1]++;
1982
+ var onUpdate = (cov_kukkvdmxo.s[3]++, this.opts.onUpdate);
1983
+ cov_kukkvdmxo.s[4]++;
1984
+
1985
+ if (typeof onUpdate === 'function') {
1986
+ cov_kukkvdmxo.b[1][0]++;
1987
+ cov_kukkvdmxo.s[5]++;
1988
+ onUpdate.call(this.el);
1989
+ } else {
1990
+ cov_kukkvdmxo.b[1][1]++;
1991
+ }
1992
+ } // Destroy callback
1993
+ ;
1994
+
1995
+ _proto.onDestroy = function onDestroy() {
1996
+ cov_kukkvdmxo.f[2]++;
1997
+ var onDestroy = (cov_kukkvdmxo.s[6]++, this.opts.onDestroy);
1998
+ cov_kukkvdmxo.s[7]++;
1999
+
2000
+ if (typeof onDestroy === 'function') {
2001
+ cov_kukkvdmxo.b[2][0]++;
2002
+ cov_kukkvdmxo.s[8]++;
2003
+ onDestroy.call(this.el);
2004
+ } else {
2005
+ cov_kukkvdmxo.b[2][1]++;
2006
+ }
2007
+ } // Show callback
2008
+ ;
2009
+
2010
+ _proto.onShow = function onShow() {
2011
+ cov_kukkvdmxo.f[3]++;
2012
+ var onShow = (cov_kukkvdmxo.s[9]++, this.opts.onShow);
2013
+ cov_kukkvdmxo.s[10]++;
2014
+
2015
+ if (typeof onShow === 'function') {
2016
+ cov_kukkvdmxo.b[3][0]++;
2017
+ cov_kukkvdmxo.s[11]++;
2018
+ onShow.call(this.el);
2019
+ } else {
2020
+ cov_kukkvdmxo.b[3][1]++;
2021
+ }
2022
+ } // Close callback
2023
+ ;
2024
+
2025
+ _proto.onClose = function onClose() {
2026
+ cov_kukkvdmxo.f[4]++;
2027
+ var onClose = (cov_kukkvdmxo.s[12]++, this.opts.onClose);
2028
+ cov_kukkvdmxo.s[13]++;
2029
+
2030
+ if (typeof onClose === 'function') {
2031
+ cov_kukkvdmxo.b[4][0]++;
2032
+ cov_kukkvdmxo.s[14]++;
2033
+ onClose.call(this.el);
2034
+ } else {
2035
+ cov_kukkvdmxo.b[4][1]++;
2036
+ }
2037
+ } // Debug log
2038
+ ;
2039
+
2040
+ _proto.log = function log() {
2041
+ cov_kukkvdmxo.f[5]++;
2042
+ cov_kukkvdmxo.s[15]++;
2043
+
2044
+ if (this.debug) {
2045
+ cov_kukkvdmxo.b[5][0]++;
2046
+ cov_kukkvdmxo.s[16]++;
2047
+
2048
+ if (typeof this.debug === 'function') {
2049
+ cov_kukkvdmxo.b[6][0]++;
2050
+ cov_kukkvdmxo.s[17]++;
2051
+ this.debug.apply(this, arguments);
2052
+ } else {
2053
+ var _console;
2054
+
2055
+ cov_kukkvdmxo.b[6][1]++;
2056
+ cov_kukkvdmxo.s[18]++;
2057
+
2058
+ (_console = console).log.apply(_console, arguments);
2059
+ }
2060
+ } else {
2061
+ cov_kukkvdmxo.b[5][1]++;
2062
+ }
2063
+ };
2064
+
2065
+ return AbstractUIComponent;
2066
+ }();
2067
+
2068
+ var cov_1egtcjhr6x = function () {
2069
+ var path = "/Users/miikka/Finqu/virtualmachine/finqu-lib/finqu-ui/js/src/section-tabs.js";
2070
+ var hash = "eaf8af94ef8bddf6c8d66d29d4499c53fbd08247";
2071
+
2072
+ var Function = function () {}.constructor;
2073
+
2074
+ var global = new Function("return this")();
2075
+ var gcv = "__coverage__";
2076
+ var coverageData = {
2077
+ path: "/Users/miikka/Finqu/virtualmachine/finqu-lib/finqu-ui/js/src/section-tabs.js",
2078
+ statementMap: {
2079
+ "0": {
2080
+ start: {
2081
+ line: 5,
2082
+ column: 13
2083
+ },
2084
+ end: {
2085
+ line: 5,
2086
+ column: 30
2087
+ }
2088
+ },
2089
+ "1": {
2090
+ start: {
2091
+ line: 6,
2092
+ column: 17
2093
+ },
2094
+ end: {
2095
+ line: 6,
2096
+ column: 41
2097
+ }
2098
+ },
2099
+ "2": {
2100
+ start: {
2101
+ line: 12,
2102
+ column: 8
2103
+ },
2104
+ end: {
2105
+ line: 12,
2106
+ column: 16
2107
+ }
2108
+ },
2109
+ "3": {
2110
+ start: {
2111
+ line: 14,
2112
+ column: 8
2113
+ },
2114
+ end: {
2115
+ line: 14,
2116
+ column: 23
2117
+ }
2118
+ },
2119
+ "4": {
2120
+ start: {
2121
+ line: 16,
2122
+ column: 8
2123
+ },
2124
+ end: {
2125
+ line: 23,
2126
+ column: 9
2127
+ }
2128
+ },
2129
+ "5": {
2130
+ start: {
2131
+ line: 18,
2132
+ column: 12
2133
+ },
2134
+ end: {
2135
+ line: 18,
2136
+ column: 99
2137
+ }
2138
+ },
2139
+ "6": {
2140
+ start: {
2141
+ line: 22,
2142
+ column: 12
2143
+ },
2144
+ end: {
2145
+ line: 22,
2146
+ column: 65
2147
+ }
2148
+ },
2149
+ "7": {
2150
+ start: {
2151
+ line: 25,
2152
+ column: 8
2153
+ },
2154
+ end: {
2155
+ line: 25,
2156
+ column: 21
2157
+ }
2158
+ },
2159
+ "8": {
2160
+ start: {
2161
+ line: 26,
2162
+ column: 8
2163
+ },
2164
+ end: {
2165
+ line: 26,
2166
+ column: 37
2167
+ }
2168
+ },
2169
+ "9": {
2170
+ start: {
2171
+ line: 27,
2172
+ column: 8
2173
+ },
2174
+ end: {
2175
+ line: 27,
2176
+ column: 20
2177
+ }
2178
+ },
2179
+ "10": {
2180
+ start: {
2181
+ line: 33,
2182
+ column: 8
2183
+ },
2184
+ end: {
2185
+ line: 33,
2186
+ column: 26
2187
+ }
2188
+ },
2189
+ "11": {
2190
+ start: {
2191
+ line: 34,
2192
+ column: 8
2193
+ },
2194
+ end: {
2195
+ line: 34,
2196
+ column: 26
2197
+ }
2198
+ },
2199
+ "12": {
2200
+ start: {
2201
+ line: 35,
2202
+ column: 8
2203
+ },
2204
+ end: {
2205
+ line: 35,
2206
+ column: 31
2207
+ }
2208
+ },
2209
+ "13": {
2210
+ start: {
2211
+ line: 36,
2212
+ column: 8
2213
+ },
2214
+ end: {
2215
+ line: 36,
2216
+ column: 22
2217
+ }
2218
+ },
2219
+ "14": {
2220
+ start: {
2221
+ line: 42,
2222
+ column: 8
2223
+ },
2224
+ end: {
2225
+ line: 42,
2226
+ column: 28
2227
+ }
2228
+ },
2229
+ "15": {
2230
+ start: {
2231
+ line: 43,
2232
+ column: 8
2233
+ },
2234
+ end: {
2235
+ line: 43,
2236
+ column: 38
2237
+ }
2238
+ },
2239
+ "16": {
2240
+ start: {
2241
+ line: 44,
2242
+ column: 8
2243
+ },
2244
+ end: {
2245
+ line: 44,
2246
+ column: 25
2247
+ }
2248
+ },
2249
+ "17": {
2250
+ start: {
2251
+ line: 50,
2252
+ column: 8
2253
+ },
2254
+ end: {
2255
+ line: 50,
2256
+ column: 26
2257
+ }
2258
+ },
2259
+ "18": {
2260
+ start: {
2261
+ line: 51,
2262
+ column: 8
2263
+ },
2264
+ end: {
2265
+ line: 51,
2266
+ column: 24
2267
+ }
2268
+ },
2269
+ "19": {
2270
+ start: {
2271
+ line: 57,
2272
+ column: 8
2273
+ },
2274
+ end: {
2275
+ line: 57,
2276
+ column: 30
2277
+ }
2278
+ },
2279
+ "20": {
2280
+ start: {
2281
+ line: 58,
2282
+ column: 8
2283
+ },
2284
+ end: {
2285
+ line: 58,
2286
+ column: 71
2287
+ }
2288
+ },
2289
+ "21": {
2290
+ start: {
2291
+ line: 59,
2292
+ column: 8
2293
+ },
2294
+ end: {
2295
+ line: 59,
2296
+ column: 61
2297
+ }
2298
+ },
2299
+ "22": {
2300
+ start: {
2301
+ line: 60,
2302
+ column: 8
2303
+ },
2304
+ end: {
2305
+ line: 60,
2306
+ column: 61
2307
+ }
2308
+ },
2309
+ "23": {
2310
+ start: {
2311
+ line: 61,
2312
+ column: 8
2313
+ },
2314
+ end: {
2315
+ line: 61,
2316
+ column: 57
2317
+ }
2318
+ },
2319
+ "24": {
2320
+ start: {
2321
+ line: 63,
2322
+ column: 8
2323
+ },
2324
+ end: {
2325
+ line: 65,
2326
+ column: 11
2327
+ }
2328
+ },
2329
+ "25": {
2330
+ start: {
2331
+ line: 64,
2332
+ column: 12
2333
+ },
2334
+ end: {
2335
+ line: 64,
2336
+ column: 56
2337
+ }
2338
+ },
2339
+ "26": {
2340
+ start: {
2341
+ line: 67,
2342
+ column: 8
2343
+ },
2344
+ end: {
2345
+ line: 67,
2346
+ column: 27
2347
+ }
2348
+ },
2349
+ "27": {
2350
+ start: {
2351
+ line: 68,
2352
+ column: 8
2353
+ },
2354
+ end: {
2355
+ line: 68,
2356
+ column: 42
2357
+ }
2358
+ },
2359
+ "28": {
2360
+ start: {
2361
+ line: 69,
2362
+ column: 8
2363
+ },
2364
+ end: {
2365
+ line: 69,
2366
+ column: 37
2367
+ }
2368
+ },
2369
+ "29": {
2370
+ start: {
2371
+ line: 70,
2372
+ column: 8
2373
+ },
2374
+ end: {
2375
+ line: 70,
2376
+ column: 33
2377
+ }
2378
+ },
2379
+ "30": {
2380
+ start: {
2381
+ line: 76,
2382
+ column: 8
2383
+ },
2384
+ end: {
2385
+ line: 78,
2386
+ column: 17
2387
+ }
2388
+ },
2389
+ "31": {
2390
+ start: {
2391
+ line: 77,
2392
+ column: 12
2393
+ },
2394
+ end: {
2395
+ line: 77,
2396
+ column: 35
2397
+ }
2398
+ },
2399
+ "32": {
2400
+ start: {
2401
+ line: 84,
2402
+ column: 8
2403
+ },
2404
+ end: {
2405
+ line: 84,
2406
+ column: 37
2407
+ }
2408
+ },
2409
+ "33": {
2410
+ start: {
2411
+ line: 90,
2412
+ column: 8
2413
+ },
2414
+ end: {
2415
+ line: 90,
2416
+ column: 52
2417
+ }
2418
+ },
2419
+ "34": {
2420
+ start: {
2421
+ line: 92,
2422
+ column: 8
2423
+ },
2424
+ end: {
2425
+ line: 92,
2426
+ column: 31
2427
+ }
2428
+ },
2429
+ "35": {
2430
+ start: {
2431
+ line: 98,
2432
+ column: 8
2433
+ },
2434
+ end: {
2435
+ line: 98,
2436
+ column: 43
2437
+ }
2438
+ },
2439
+ "36": {
2440
+ start: {
2441
+ line: 100,
2442
+ column: 8
2443
+ },
2444
+ end: {
2445
+ line: 100,
2446
+ column: 31
2447
+ }
2448
+ },
2449
+ "37": {
2450
+ start: {
2451
+ line: 106,
2452
+ column: 8
2453
+ },
2454
+ end: {
2455
+ line: 110,
2456
+ column: 9
2457
+ }
2458
+ },
2459
+ "38": {
2460
+ start: {
2461
+ line: 107,
2462
+ column: 12
2463
+ },
2464
+ end: {
2465
+ line: 107,
2466
+ column: 24
2467
+ }
2468
+ },
2469
+ "39": {
2470
+ start: {
2471
+ line: 109,
2472
+ column: 12
2473
+ },
2474
+ end: {
2475
+ line: 109,
2476
+ column: 25
2477
+ }
2478
+ },
2479
+ "40": {
2480
+ start: {
2481
+ line: 116,
2482
+ column: 28
2483
+ },
2484
+ end: {
2485
+ line: 116,
2486
+ column: 57
2487
+ }
2488
+ },
2489
+ "41": {
2490
+ start: {
2491
+ line: 117,
2492
+ column: 27
2493
+ },
2494
+ end: {
2495
+ line: 117,
2496
+ column: 84
2497
+ }
2498
+ },
2499
+ "42": {
2500
+ start: {
2501
+ line: 118,
2502
+ column: 19
2503
+ },
2504
+ end: {
2505
+ line: 118,
2506
+ column: 55
2507
+ }
2508
+ },
2509
+ "43": {
2510
+ start: {
2511
+ line: 119,
2512
+ column: 24
2513
+ },
2514
+ end: {
2515
+ line: 119,
2516
+ column: 25
2517
+ }
2518
+ },
2519
+ "44": {
2520
+ start: {
2521
+ line: 121,
2522
+ column: 8
2523
+ },
2524
+ end: {
2525
+ line: 123,
2526
+ column: 11
2527
+ }
2528
+ },
2529
+ "45": {
2530
+ start: {
2531
+ line: 122,
2532
+ column: 12
2533
+ },
2534
+ end: {
2535
+ line: 122,
2536
+ column: 48
2537
+ }
2538
+ },
2539
+ "46": {
2540
+ start: {
2541
+ line: 125,
2542
+ column: 24
2543
+ },
2544
+ end: {
2545
+ line: 125,
2546
+ column: 59
2547
+ }
2548
+ },
2549
+ "47": {
2550
+ start: {
2551
+ line: 127,
2552
+ column: 8
2553
+ },
2554
+ end: {
2555
+ line: 138,
2556
+ column: 9
2557
+ }
2558
+ },
2559
+ "48": {
2560
+ start: {
2561
+ line: 129,
2562
+ column: 12
2563
+ },
2564
+ end: {
2565
+ line: 131,
2566
+ column: 13
2567
+ }
2568
+ },
2569
+ "49": {
2570
+ start: {
2571
+ line: 130,
2572
+ column: 16
2573
+ },
2574
+ end: {
2575
+ line: 130,
2576
+ column: 60
2577
+ }
2578
+ },
2579
+ "50": {
2580
+ start: {
2581
+ line: 135,
2582
+ column: 12
2583
+ },
2584
+ end: {
2585
+ line: 137,
2586
+ column: 13
2587
+ }
2588
+ },
2589
+ "51": {
2590
+ start: {
2591
+ line: 136,
2592
+ column: 16
2593
+ },
2594
+ end: {
2595
+ line: 136,
2596
+ column: 63
2597
+ }
2598
+ },
2599
+ "52": {
2600
+ start: {
2601
+ line: 140,
2602
+ column: 8
2603
+ },
2604
+ end: {
2605
+ line: 154,
2606
+ column: 9
2607
+ }
2608
+ },
2609
+ "53": {
2610
+ start: {
2611
+ line: 142,
2612
+ column: 12
2613
+ },
2614
+ end: {
2615
+ line: 144,
2616
+ column: 13
2617
+ }
2618
+ },
2619
+ "54": {
2620
+ start: {
2621
+ line: 143,
2622
+ column: 16
2623
+ },
2624
+ end: {
2625
+ line: 143,
2626
+ column: 57
2627
+ }
2628
+ },
2629
+ "55": {
2630
+ start: {
2631
+ line: 148,
2632
+ column: 12
2633
+ },
2634
+ end: {
2635
+ line: 153,
2636
+ column: 13
2637
+ }
2638
+ },
2639
+ "56": {
2640
+ start: {
2641
+ line: 150,
2642
+ column: 16
2643
+ },
2644
+ end: {
2645
+ line: 152,
2646
+ column: 17
2647
+ }
2648
+ },
2649
+ "57": {
2650
+ start: {
2651
+ line: 151,
2652
+ column: 20
2653
+ },
2654
+ end: {
2655
+ line: 151,
2656
+ column: 58
2657
+ }
2658
+ },
2659
+ "58": {
2660
+ start: {
2661
+ line: 159,
2662
+ column: 8
2663
+ },
2664
+ end: {
2665
+ line: 177,
2666
+ column: 11
2667
+ }
2668
+ },
2669
+ "59": {
2670
+ start: {
2671
+ line: 161,
2672
+ column: 23
2673
+ },
2674
+ end: {
2675
+ line: 161,
2676
+ column: 45
2677
+ }
2678
+ },
2679
+ "60": {
2680
+ start: {
2681
+ line: 162,
2682
+ column: 28
2683
+ },
2684
+ end: {
2685
+ line: 162,
2686
+ column: 64
2687
+ }
2688
+ },
2689
+ "61": {
2690
+ start: {
2691
+ line: 164,
2692
+ column: 12
2693
+ },
2694
+ end: {
2695
+ line: 167,
2696
+ column: 13
2697
+ }
2698
+ },
2699
+ "62": {
2700
+ start: {
2701
+ line: 165,
2702
+ column: 16
2703
+ },
2704
+ end: {
2705
+ line: 165,
2706
+ column: 54
2707
+ }
2708
+ },
2709
+ "63": {
2710
+ start: {
2711
+ line: 166,
2712
+ column: 16
2713
+ },
2714
+ end: {
2715
+ line: 166,
2716
+ column: 45
2717
+ }
2718
+ },
2719
+ "64": {
2720
+ start: {
2721
+ line: 169,
2722
+ column: 12
2723
+ },
2724
+ end: {
2725
+ line: 176,
2726
+ column: 13
2727
+ }
2728
+ },
2729
+ "65": {
2730
+ start: {
2731
+ line: 171,
2732
+ column: 16
2733
+ },
2734
+ end: {
2735
+ line: 173,
2736
+ column: 17
2737
+ }
2738
+ },
2739
+ "66": {
2740
+ start: {
2741
+ line: 172,
2742
+ column: 20
2743
+ },
2744
+ end: {
2745
+ line: 172,
2746
+ column: 70
2747
+ }
2748
+ },
2749
+ "67": {
2750
+ start: {
2751
+ line: 175,
2752
+ column: 16
2753
+ },
2754
+ end: {
2755
+ line: 175,
2756
+ column: 30
2757
+ }
2758
+ },
2759
+ "68": {
2760
+ start: {
2761
+ line: 181,
2762
+ column: 0
2763
+ },
2764
+ end: {
2765
+ line: 202,
2766
+ column: 1
2767
+ }
2768
+ },
2769
+ "69": {
2770
+ start: {
2771
+ line: 184,
2772
+ column: 31
2773
+ },
2774
+ end: {
2775
+ line: 184,
2776
+ column: 41
2777
+ }
2778
+ },
2779
+ "70": {
2780
+ start: {
2781
+ line: 186,
2782
+ column: 4
2783
+ },
2784
+ end: {
2785
+ line: 186,
2786
+ column: 46
2787
+ }
2788
+ },
2789
+ "71": {
2790
+ start: {
2791
+ line: 187,
2792
+ column: 4
2793
+ },
2794
+ end: {
2795
+ line: 187,
2796
+ column: 41
2797
+ }
2798
+ },
2799
+ "72": {
2800
+ start: {
2801
+ line: 189,
2802
+ column: 4
2803
+ },
2804
+ end: {
2805
+ line: 194,
2806
+ column: 5
2807
+ }
2808
+ },
2809
+ "73": {
2810
+ start: {
2811
+ line: 191,
2812
+ column: 8
2813
+ },
2814
+ end: {
2815
+ line: 191,
2816
+ column: 39
2817
+ }
2818
+ },
2819
+ "74": {
2820
+ start: {
2821
+ line: 193,
2822
+ column: 8
2823
+ },
2824
+ end: {
2825
+ line: 193,
2826
+ column: 43
2827
+ }
2828
+ },
2829
+ "75": {
2830
+ start: {
2831
+ line: 196,
2832
+ column: 4
2833
+ },
2834
+ end: {
2835
+ line: 201,
2836
+ column: 5
2837
+ }
2838
+ }
2839
+ },
2840
+ fnMap: {
2841
+ "0": {
2842
+ name: "(anonymous_0)",
2843
+ decl: {
2844
+ start: {
2845
+ line: 10,
2846
+ column: 4
2847
+ },
2848
+ end: {
2849
+ line: 10,
2850
+ column: 5
2851
+ }
2852
+ },
2853
+ loc: {
2854
+ start: {
2855
+ line: 10,
2856
+ column: 26
2857
+ },
2858
+ end: {
2859
+ line: 28,
2860
+ column: 5
2861
+ }
2862
+ },
2863
+ line: 10
2864
+ },
2865
+ "1": {
2866
+ name: "(anonymous_1)",
2867
+ decl: {
2868
+ start: {
2869
+ line: 31,
2870
+ column: 4
2871
+ },
2872
+ end: {
2873
+ line: 31,
2874
+ column: 5
2875
+ }
2876
+ },
2877
+ loc: {
2878
+ start: {
2879
+ line: 31,
2880
+ column: 11
2881
+ },
2882
+ end: {
2883
+ line: 37,
2884
+ column: 5
2885
+ }
2886
+ },
2887
+ line: 31
2888
+ },
2889
+ "2": {
2890
+ name: "(anonymous_2)",
2891
+ decl: {
2892
+ start: {
2893
+ line: 40,
2894
+ column: 4
2895
+ },
2896
+ end: {
2897
+ line: 40,
2898
+ column: 5
2899
+ }
2900
+ },
2901
+ loc: {
2902
+ start: {
2903
+ line: 40,
2904
+ column: 14
2905
+ },
2906
+ end: {
2907
+ line: 45,
2908
+ column: 5
2909
+ }
2910
+ },
2911
+ line: 40
2912
+ },
2913
+ "3": {
2914
+ name: "(anonymous_3)",
2915
+ decl: {
2916
+ start: {
2917
+ line: 48,
2918
+ column: 4
2919
+ },
2920
+ end: {
2921
+ line: 48,
2922
+ column: 5
2923
+ }
2924
+ },
2925
+ loc: {
2926
+ start: {
2927
+ line: 48,
2928
+ column: 13
2929
+ },
2930
+ end: {
2931
+ line: 52,
2932
+ column: 5
2933
+ }
2934
+ },
2935
+ line: 48
2936
+ },
2937
+ "4": {
2938
+ name: "(anonymous_4)",
2939
+ decl: {
2940
+ start: {
2941
+ line: 55,
2942
+ column: 4
2943
+ },
2944
+ end: {
2945
+ line: 55,
2946
+ column: 5
2947
+ }
2948
+ },
2949
+ loc: {
2950
+ start: {
2951
+ line: 55,
2952
+ column: 17
2953
+ },
2954
+ end: {
2955
+ line: 71,
2956
+ column: 5
2957
+ }
2958
+ },
2959
+ line: 55
2960
+ },
2961
+ "5": {
2962
+ name: "(anonymous_5)",
2963
+ decl: {
2964
+ start: {
2965
+ line: 63,
2966
+ column: 26
2967
+ },
2968
+ end: {
2969
+ line: 63,
2970
+ column: 27
2971
+ }
2972
+ },
2973
+ loc: {
2974
+ start: {
2975
+ line: 63,
2976
+ column: 42
2977
+ },
2978
+ end: {
2979
+ line: 65,
2980
+ column: 9
2981
+ }
2982
+ },
2983
+ line: 63
2984
+ },
2985
+ "6": {
2986
+ name: "(anonymous_6)",
2987
+ decl: {
2988
+ start: {
2989
+ line: 74,
2990
+ column: 4
2991
+ },
2992
+ end: {
2993
+ line: 74,
2994
+ column: 5
2995
+ }
2996
+ },
2997
+ loc: {
2998
+ start: {
2999
+ line: 74,
3000
+ column: 17
3001
+ },
3002
+ end: {
3003
+ line: 79,
3004
+ column: 5
3005
+ }
3006
+ },
3007
+ line: 74
3008
+ },
3009
+ "7": {
3010
+ name: "(anonymous_7)",
3011
+ decl: {
3012
+ start: {
3013
+ line: 76,
3014
+ column: 40
3015
+ },
3016
+ end: {
3017
+ line: 76,
3018
+ column: 41
3019
+ }
3020
+ },
3021
+ loc: {
3022
+ start: {
3023
+ line: 76,
3024
+ column: 46
3025
+ },
3026
+ end: {
3027
+ line: 78,
3028
+ column: 9
3029
+ }
3030
+ },
3031
+ line: 76
3032
+ },
3033
+ "8": {
3034
+ name: "(anonymous_8)",
3035
+ decl: {
3036
+ start: {
3037
+ line: 82,
3038
+ column: 4
3039
+ },
3040
+ end: {
3041
+ line: 82,
3042
+ column: 5
3043
+ }
3044
+ },
3045
+ loc: {
3046
+ start: {
3047
+ line: 82,
3048
+ column: 19
3049
+ },
3050
+ end: {
3051
+ line: 85,
3052
+ column: 5
3053
+ }
3054
+ },
3055
+ line: 82
3056
+ },
3057
+ "9": {
3058
+ name: "(anonymous_9)",
3059
+ decl: {
3060
+ start: {
3061
+ line: 88,
3062
+ column: 4
3063
+ },
3064
+ end: {
3065
+ line: 88,
3066
+ column: 5
3067
+ }
3068
+ },
3069
+ loc: {
3070
+ start: {
3071
+ line: 88,
3072
+ column: 19
3073
+ },
3074
+ end: {
3075
+ line: 93,
3076
+ column: 5
3077
+ }
3078
+ },
3079
+ line: 88
3080
+ },
3081
+ "10": {
3082
+ name: "(anonymous_10)",
3083
+ decl: {
3084
+ start: {
3085
+ line: 96,
3086
+ column: 4
3087
+ },
3088
+ end: {
3089
+ line: 96,
3090
+ column: 5
3091
+ }
3092
+ },
3093
+ loc: {
3094
+ start: {
3095
+ line: 96,
3096
+ column: 23
3097
+ },
3098
+ end: {
3099
+ line: 101,
3100
+ column: 5
3101
+ }
3102
+ },
3103
+ line: 96
3104
+ },
3105
+ "11": {
3106
+ name: "(anonymous_11)",
3107
+ decl: {
3108
+ start: {
3109
+ line: 104,
3110
+ column: 4
3111
+ },
3112
+ end: {
3113
+ line: 104,
3114
+ column: 5
3115
+ }
3116
+ },
3117
+ loc: {
3118
+ start: {
3119
+ line: 104,
3120
+ column: 21
3121
+ },
3122
+ end: {
3123
+ line: 111,
3124
+ column: 5
3125
+ }
3126
+ },
3127
+ line: 104
3128
+ },
3129
+ "12": {
3130
+ name: "(anonymous_12)",
3131
+ decl: {
3132
+ start: {
3133
+ line: 114,
3134
+ column: 4
3135
+ },
3136
+ end: {
3137
+ line: 114,
3138
+ column: 5
3139
+ }
3140
+ },
3141
+ loc: {
3142
+ start: {
3143
+ line: 114,
3144
+ column: 22
3145
+ },
3146
+ end: {
3147
+ line: 155,
3148
+ column: 5
3149
+ }
3150
+ },
3151
+ line: 114
3152
+ },
3153
+ "13": {
3154
+ name: "(anonymous_13)",
3155
+ decl: {
3156
+ start: {
3157
+ line: 121,
3158
+ column: 21
3159
+ },
3160
+ end: {
3161
+ line: 121,
3162
+ column: 22
3163
+ }
3164
+ },
3165
+ loc: {
3166
+ start: {
3167
+ line: 121,
3168
+ column: 37
3169
+ },
3170
+ end: {
3171
+ line: 123,
3172
+ column: 9
3173
+ }
3174
+ },
3175
+ line: 121
3176
+ },
3177
+ "14": {
3178
+ name: "(anonymous_14)",
3179
+ decl: {
3180
+ start: {
3181
+ line: 157,
3182
+ column: 4
3183
+ },
3184
+ end: {
3185
+ line: 157,
3186
+ column: 5
3187
+ }
3188
+ },
3189
+ loc: {
3190
+ start: {
3191
+ line: 157,
3192
+ column: 36
3193
+ },
3194
+ end: {
3195
+ line: 178,
3196
+ column: 5
3197
+ }
3198
+ },
3199
+ line: 157
3200
+ },
3201
+ "15": {
3202
+ name: "(anonymous_15)",
3203
+ decl: {
3204
+ start: {
3205
+ line: 159,
3206
+ column: 25
3207
+ },
3208
+ end: {
3209
+ line: 159,
3210
+ column: 26
3211
+ }
3212
+ },
3213
+ loc: {
3214
+ start: {
3215
+ line: 159,
3216
+ column: 36
3217
+ },
3218
+ end: {
3219
+ line: 177,
3220
+ column: 9
3221
+ }
3222
+ },
3223
+ line: 159
3224
+ },
3225
+ "16": {
3226
+ name: "(anonymous_16)",
3227
+ decl: {
3228
+ start: {
3229
+ line: 189,
3230
+ column: 28
3231
+ },
3232
+ end: {
3233
+ line: 189,
3234
+ column: 29
3235
+ }
3236
+ },
3237
+ loc: {
3238
+ start: {
3239
+ line: 189,
3240
+ column: 34
3241
+ },
3242
+ end: {
3243
+ line: 194,
3244
+ column: 5
3245
+ }
3246
+ },
3247
+ line: 189
3248
+ }
3249
+ },
3250
+ branchMap: {
3251
+ "0": {
3252
+ loc: {
3253
+ start: {
3254
+ line: 16,
3255
+ column: 8
3256
+ },
3257
+ end: {
3258
+ line: 23,
3259
+ column: 9
3260
+ }
3261
+ },
3262
+ type: "if",
3263
+ locations: [{
3264
+ start: {
3265
+ line: 16,
3266
+ column: 8
3267
+ },
3268
+ end: {
3269
+ line: 23,
3270
+ column: 9
3271
+ }
3272
+ }, {
3273
+ start: {
3274
+ line: 16,
3275
+ column: 8
3276
+ },
3277
+ end: {
3278
+ line: 23,
3279
+ column: 9
3280
+ }
3281
+ }],
3282
+ line: 16
3283
+ },
3284
+ "1": {
3285
+ loc: {
3286
+ start: {
3287
+ line: 106,
3288
+ column: 8
3289
+ },
3290
+ end: {
3291
+ line: 110,
3292
+ column: 9
3293
+ }
3294
+ },
3295
+ type: "if",
3296
+ locations: [{
3297
+ start: {
3298
+ line: 106,
3299
+ column: 8
3300
+ },
3301
+ end: {
3302
+ line: 110,
3303
+ column: 9
3304
+ }
3305
+ }, {
3306
+ start: {
3307
+ line: 106,
3308
+ column: 8
3309
+ },
3310
+ end: {
3311
+ line: 110,
3312
+ column: 9
3313
+ }
3314
+ }],
3315
+ line: 106
3316
+ },
3317
+ "2": {
3318
+ loc: {
3319
+ start: {
3320
+ line: 127,
3321
+ column: 8
3322
+ },
3323
+ end: {
3324
+ line: 138,
3325
+ column: 9
3326
+ }
3327
+ },
3328
+ type: "if",
3329
+ locations: [{
3330
+ start: {
3331
+ line: 127,
3332
+ column: 8
3333
+ },
3334
+ end: {
3335
+ line: 138,
3336
+ column: 9
3337
+ }
3338
+ }, {
3339
+ start: {
3340
+ line: 127,
3341
+ column: 8
3342
+ },
3343
+ end: {
3344
+ line: 138,
3345
+ column: 9
3346
+ }
3347
+ }],
3348
+ line: 127
3349
+ },
3350
+ "3": {
3351
+ loc: {
3352
+ start: {
3353
+ line: 129,
3354
+ column: 12
3355
+ },
3356
+ end: {
3357
+ line: 131,
3358
+ column: 13
3359
+ }
3360
+ },
3361
+ type: "if",
3362
+ locations: [{
3363
+ start: {
3364
+ line: 129,
3365
+ column: 12
3366
+ },
3367
+ end: {
3368
+ line: 131,
3369
+ column: 13
3370
+ }
3371
+ }, {
3372
+ start: {
3373
+ line: 129,
3374
+ column: 12
3375
+ },
3376
+ end: {
3377
+ line: 131,
3378
+ column: 13
3379
+ }
3380
+ }],
3381
+ line: 129
3382
+ },
3383
+ "4": {
3384
+ loc: {
3385
+ start: {
3386
+ line: 135,
3387
+ column: 12
3388
+ },
3389
+ end: {
3390
+ line: 137,
3391
+ column: 13
3392
+ }
3393
+ },
3394
+ type: "if",
3395
+ locations: [{
3396
+ start: {
3397
+ line: 135,
3398
+ column: 12
3399
+ },
3400
+ end: {
3401
+ line: 137,
3402
+ column: 13
3403
+ }
3404
+ }, {
3405
+ start: {
3406
+ line: 135,
3407
+ column: 12
3408
+ },
3409
+ end: {
3410
+ line: 137,
3411
+ column: 13
3412
+ }
3413
+ }],
3414
+ line: 135
3415
+ },
3416
+ "5": {
3417
+ loc: {
3418
+ start: {
3419
+ line: 140,
3420
+ column: 8
3421
+ },
3422
+ end: {
3423
+ line: 154,
3424
+ column: 9
3425
+ }
3426
+ },
3427
+ type: "if",
3428
+ locations: [{
3429
+ start: {
3430
+ line: 140,
3431
+ column: 8
3432
+ },
3433
+ end: {
3434
+ line: 154,
3435
+ column: 9
3436
+ }
3437
+ }, {
3438
+ start: {
3439
+ line: 140,
3440
+ column: 8
3441
+ },
3442
+ end: {
3443
+ line: 154,
3444
+ column: 9
3445
+ }
3446
+ }],
3447
+ line: 140
3448
+ },
3449
+ "6": {
3450
+ loc: {
3451
+ start: {
3452
+ line: 142,
3453
+ column: 12
3454
+ },
3455
+ end: {
3456
+ line: 144,
3457
+ column: 13
3458
+ }
3459
+ },
3460
+ type: "if",
3461
+ locations: [{
3462
+ start: {
3463
+ line: 142,
3464
+ column: 12
3465
+ },
3466
+ end: {
3467
+ line: 144,
3468
+ column: 13
3469
+ }
3470
+ }, {
3471
+ start: {
3472
+ line: 142,
3473
+ column: 12
3474
+ },
3475
+ end: {
3476
+ line: 144,
3477
+ column: 13
3478
+ }
3479
+ }],
3480
+ line: 142
3481
+ },
3482
+ "7": {
3483
+ loc: {
3484
+ start: {
3485
+ line: 148,
3486
+ column: 12
3487
+ },
3488
+ end: {
3489
+ line: 153,
3490
+ column: 13
3491
+ }
3492
+ },
3493
+ type: "if",
3494
+ locations: [{
3495
+ start: {
3496
+ line: 148,
3497
+ column: 12
3498
+ },
3499
+ end: {
3500
+ line: 153,
3501
+ column: 13
3502
+ }
3503
+ }, {
3504
+ start: {
3505
+ line: 148,
3506
+ column: 12
3507
+ },
3508
+ end: {
3509
+ line: 153,
3510
+ column: 13
3511
+ }
3512
+ }],
3513
+ line: 148
3514
+ },
3515
+ "8": {
3516
+ loc: {
3517
+ start: {
3518
+ line: 150,
3519
+ column: 16
3520
+ },
3521
+ end: {
3522
+ line: 152,
3523
+ column: 17
3524
+ }
3525
+ },
3526
+ type: "if",
3527
+ locations: [{
3528
+ start: {
3529
+ line: 150,
3530
+ column: 16
3531
+ },
3532
+ end: {
3533
+ line: 152,
3534
+ column: 17
3535
+ }
3536
+ }, {
3537
+ start: {
3538
+ line: 150,
3539
+ column: 16
3540
+ },
3541
+ end: {
3542
+ line: 152,
3543
+ column: 17
3544
+ }
3545
+ }],
3546
+ line: 150
3547
+ },
3548
+ "9": {
3549
+ loc: {
3550
+ start: {
3551
+ line: 162,
3552
+ column: 28
3553
+ },
3554
+ end: {
3555
+ line: 162,
3556
+ column: 64
3557
+ }
3558
+ },
3559
+ type: "binary-expr",
3560
+ locations: [{
3561
+ start: {
3562
+ line: 162,
3563
+ column: 28
3564
+ },
3565
+ end: {
3566
+ line: 162,
3567
+ column: 54
3568
+ }
3569
+ }, {
3570
+ start: {
3571
+ line: 162,
3572
+ column: 58
3573
+ },
3574
+ end: {
3575
+ line: 162,
3576
+ column: 64
3577
+ }
3578
+ }],
3579
+ line: 162
3580
+ },
3581
+ "10": {
3582
+ loc: {
3583
+ start: {
3584
+ line: 164,
3585
+ column: 12
3586
+ },
3587
+ end: {
3588
+ line: 167,
3589
+ column: 13
3590
+ }
3591
+ },
3592
+ type: "if",
3593
+ locations: [{
3594
+ start: {
3595
+ line: 164,
3596
+ column: 12
3597
+ },
3598
+ end: {
3599
+ line: 167,
3600
+ column: 13
3601
+ }
3602
+ }, {
3603
+ start: {
3604
+ line: 164,
3605
+ column: 12
3606
+ },
3607
+ end: {
3608
+ line: 167,
3609
+ column: 13
3610
+ }
3611
+ }],
3612
+ line: 164
3613
+ },
3614
+ "11": {
3615
+ loc: {
3616
+ start: {
3617
+ line: 169,
3618
+ column: 12
3619
+ },
3620
+ end: {
3621
+ line: 176,
3622
+ column: 13
3623
+ }
3624
+ },
3625
+ type: "if",
3626
+ locations: [{
3627
+ start: {
3628
+ line: 169,
3629
+ column: 12
3630
+ },
3631
+ end: {
3632
+ line: 176,
3633
+ column: 13
3634
+ }
3635
+ }, {
3636
+ start: {
3637
+ line: 169,
3638
+ column: 12
3639
+ },
3640
+ end: {
3641
+ line: 176,
3642
+ column: 13
3643
+ }
3644
+ }],
3645
+ line: 169
3646
+ },
3647
+ "12": {
3648
+ loc: {
3649
+ start: {
3650
+ line: 171,
3651
+ column: 16
3652
+ },
3653
+ end: {
3654
+ line: 173,
3655
+ column: 17
3656
+ }
3657
+ },
3658
+ type: "if",
3659
+ locations: [{
3660
+ start: {
3661
+ line: 171,
3662
+ column: 16
3663
+ },
3664
+ end: {
3665
+ line: 173,
3666
+ column: 17
3667
+ }
3668
+ }, {
3669
+ start: {
3670
+ line: 171,
3671
+ column: 16
3672
+ },
3673
+ end: {
3674
+ line: 173,
3675
+ column: 17
3676
+ }
3677
+ }],
3678
+ line: 171
3679
+ },
3680
+ "13": {
3681
+ loc: {
3682
+ start: {
3683
+ line: 181,
3684
+ column: 0
3685
+ },
3686
+ end: {
3687
+ line: 202,
3688
+ column: 1
3689
+ }
3690
+ },
3691
+ type: "if",
3692
+ locations: [{
3693
+ start: {
3694
+ line: 181,
3695
+ column: 0
3696
+ },
3697
+ end: {
3698
+ line: 202,
3699
+ column: 1
3700
+ }
3701
+ }, {
3702
+ start: {
3703
+ line: 181,
3704
+ column: 0
3705
+ },
3706
+ end: {
3707
+ line: 202,
3708
+ column: 1
3709
+ }
3710
+ }],
3711
+ line: 181
3712
+ }
3713
+ },
3714
+ s: {
3715
+ "0": 0,
3716
+ "1": 0,
3717
+ "2": 0,
3718
+ "3": 0,
3719
+ "4": 0,
3720
+ "5": 0,
3721
+ "6": 0,
3722
+ "7": 0,
3723
+ "8": 0,
3724
+ "9": 0,
3725
+ "10": 0,
3726
+ "11": 0,
3727
+ "12": 0,
3728
+ "13": 0,
3729
+ "14": 0,
3730
+ "15": 0,
3731
+ "16": 0,
3732
+ "17": 0,
3733
+ "18": 0,
3734
+ "19": 0,
3735
+ "20": 0,
3736
+ "21": 0,
3737
+ "22": 0,
3738
+ "23": 0,
3739
+ "24": 0,
3740
+ "25": 0,
3741
+ "26": 0,
3742
+ "27": 0,
3743
+ "28": 0,
3744
+ "29": 0,
3745
+ "30": 0,
3746
+ "31": 0,
3747
+ "32": 0,
3748
+ "33": 0,
3749
+ "34": 0,
3750
+ "35": 0,
3751
+ "36": 0,
3752
+ "37": 0,
3753
+ "38": 0,
3754
+ "39": 0,
3755
+ "40": 0,
3756
+ "41": 0,
3757
+ "42": 0,
3758
+ "43": 0,
3759
+ "44": 0,
3760
+ "45": 0,
3761
+ "46": 0,
3762
+ "47": 0,
3763
+ "48": 0,
3764
+ "49": 0,
3765
+ "50": 0,
3766
+ "51": 0,
3767
+ "52": 0,
3768
+ "53": 0,
3769
+ "54": 0,
3770
+ "55": 0,
3771
+ "56": 0,
3772
+ "57": 0,
3773
+ "58": 0,
3774
+ "59": 0,
3775
+ "60": 0,
3776
+ "61": 0,
3777
+ "62": 0,
3778
+ "63": 0,
3779
+ "64": 0,
3780
+ "65": 0,
3781
+ "66": 0,
3782
+ "67": 0,
3783
+ "68": 0,
3784
+ "69": 0,
3785
+ "70": 0,
3786
+ "71": 0,
3787
+ "72": 0,
3788
+ "73": 0,
3789
+ "74": 0,
3790
+ "75": 0
3791
+ },
3792
+ f: {
3793
+ "0": 0,
3794
+ "1": 0,
3795
+ "2": 0,
3796
+ "3": 0,
3797
+ "4": 0,
3798
+ "5": 0,
3799
+ "6": 0,
3800
+ "7": 0,
3801
+ "8": 0,
3802
+ "9": 0,
3803
+ "10": 0,
3804
+ "11": 0,
3805
+ "12": 0,
3806
+ "13": 0,
3807
+ "14": 0,
3808
+ "15": 0,
3809
+ "16": 0
3810
+ },
3811
+ b: {
3812
+ "0": [0, 0],
3813
+ "1": [0, 0],
3814
+ "2": [0, 0],
3815
+ "3": [0, 0],
3816
+ "4": [0, 0],
3817
+ "5": [0, 0],
3818
+ "6": [0, 0],
3819
+ "7": [0, 0],
3820
+ "8": [0, 0],
3821
+ "9": [0, 0],
3822
+ "10": [0, 0],
3823
+ "11": [0, 0],
3824
+ "12": [0, 0],
3825
+ "13": [0, 0]
3826
+ },
3827
+ _coverageSchema: "43e27e138ebf9cfc5966b082cf9a028302ed4184"
3828
+ };
3829
+ var coverage = global[gcv] || (global[gcv] = {});
3830
+
3831
+ if (coverage[path] && coverage[path].hash === hash) {
3832
+ return coverage[path];
3833
+ }
3834
+
3835
+ coverageData.hash = hash;
3836
+ return coverage[path] = coverageData;
3837
+ }();
3838
+ var NAME = (cov_1egtcjhr6x.s[0]++, 'coolSectionTabs');
3839
+ var DATA_KEY = (cov_1egtcjhr6x.s[1]++, 'plugin_coolSectionTabs');
3840
+
3841
+ var SectionTabs =
3842
+ /*#__PURE__*/
3843
+ function (_AbstractUIComponent) {
3844
+ _inheritsLoose(SectionTabs, _AbstractUIComponent);
3845
+
3846
+ function SectionTabs(el, opts) {
3847
+ var _this;
3848
+
3849
+ cov_1egtcjhr6x.f[0]++;
3850
+ cov_1egtcjhr6x.s[2]++;
3851
+ _this = _AbstractUIComponent.call(this) || this;
3852
+ cov_1egtcjhr6x.s[3]++;
3853
+ _this.opts = {};
3854
+ cov_1egtcjhr6x.s[4]++;
3855
+
3856
+ if (window.Cool.settings.sectionTabs) {
3857
+ cov_1egtcjhr6x.b[0][0]++;
3858
+ cov_1egtcjhr6x.s[5]++;
3859
+ $.extend(true, _this.opts, $.fn[NAME].defaults, window.Cool.settings.sectionTabs, opts);
3860
+ } else {
3861
+ cov_1egtcjhr6x.b[0][1]++;
3862
+ cov_1egtcjhr6x.s[6]++;
3863
+ $.extend(true, _this.opts, $.fn[NAME].defaults, opts);
3864
+ }
3865
+
3866
+ cov_1egtcjhr6x.s[7]++;
3867
+ _this.el = el;
3868
+ cov_1egtcjhr6x.s[8]++;
3869
+ _this.debug = _this.opts.debug;
3870
+ cov_1egtcjhr6x.s[9]++;
3871
+
3872
+ _this.init();
3873
+
3874
+ return _this;
3875
+ } // Init plugin
3876
+
3877
+
3878
+ var _proto = SectionTabs.prototype;
3879
+
3880
+ _proto.init = function init() {
3881
+ cov_1egtcjhr6x.f[1]++;
3882
+ cov_1egtcjhr6x.s[10]++;
3883
+ this.buildCache();
3884
+ cov_1egtcjhr6x.s[11]++;
3885
+ this.bindEvents();
3886
+ cov_1egtcjhr6x.s[12]++;
3887
+ this.checkForChanges();
3888
+ cov_1egtcjhr6x.s[13]++;
3889
+ this.onInit();
3890
+ } // Remove plugin instance completely
3891
+ ;
3892
+
3893
+ _proto.destroy = function destroy() {
3894
+ cov_1egtcjhr6x.f[2]++;
3895
+ cov_1egtcjhr6x.s[14]++;
3896
+ this.unbindEvents();
3897
+ cov_1egtcjhr6x.s[15]++;
3898
+ this.$el.removeData(DATA_KEY);
3899
+ cov_1egtcjhr6x.s[16]++;
3900
+ this.onDestroy();
3901
+ } // Update plugin data
3902
+ ;
3903
+
3904
+ _proto.update = function update() {
3905
+ cov_1egtcjhr6x.f[3]++;
3906
+ cov_1egtcjhr6x.s[17]++;
3907
+ this.buildCache();
3908
+ cov_1egtcjhr6x.s[18]++;
3909
+ this.onUpdate();
3910
+ } // Cache DOM nodes for performance
3911
+ ;
3912
+
3913
+ _proto.buildCache = function buildCache() {
3914
+ cov_1egtcjhr6x.f[4]++;
3915
+ cov_1egtcjhr6x.s[19]++;
3916
+ this.$el = $(this.el);
3917
+ cov_1egtcjhr6x.s[20]++;
3918
+ this.$dropdownContainer = this.$el.find('.dropdown-container');
3919
+ cov_1egtcjhr6x.s[21]++;
3920
+ this.$dropdownList = this.$el.find('.dropdown-list');
3921
+ cov_1egtcjhr6x.s[22]++;
3922
+ this.tabsCount = this.$el.find('> .tab-item').length;
3923
+ cov_1egtcjhr6x.s[23]++;
3924
+ this.tabs = this.$el.find('> .tab-item:visible');
3925
+ cov_1egtcjhr6x.s[24]++;
3926
+ $.each(this.tabs, function (i, el) {
3927
+ cov_1egtcjhr6x.f[5]++;
3928
+ cov_1egtcjhr6x.s[25]++;
3929
+ $(el).data('width', $(el).outerWidth(true));
3930
+ });
3931
+ cov_1egtcjhr6x.s[26]++;
3932
+ this.log(this.$el);
3933
+ cov_1egtcjhr6x.s[27]++;
3934
+ this.log(this.$dropdownContainer);
3935
+ cov_1egtcjhr6x.s[28]++;
3936
+ this.log(this.$dropdownList);
3937
+ cov_1egtcjhr6x.s[29]++;
3938
+ this.log(this.tabsCount);
3939
+ } // Bind events that trigger methods
3940
+ ;
3941
+
3942
+ _proto.bindEvents = function bindEvents() {
3943
+ var _this2 = this;
3944
+
3945
+ cov_1egtcjhr6x.f[6]++;
3946
+ cov_1egtcjhr6x.s[30]++;
3947
+ $(window).on('resize', debounce(function () {
3948
+ cov_1egtcjhr6x.f[7]++;
3949
+ cov_1egtcjhr6x.s[31]++;
3950
+
3951
+ _this2.checkForChanges();
3952
+ }, 250));
3953
+ } // Unbind events that trigger methods
3954
+ ;
3955
+
3956
+ _proto.unbindEvents = function unbindEvents() {
3957
+ cov_1egtcjhr6x.f[8]++;
3958
+ cov_1egtcjhr6x.s[32]++;
3959
+ this.$el.off('.' + this._name);
3960
+ } // Move to list
3961
+ ;
3962
+
3963
+ _proto.moveToList = function moveToList(el) {
3964
+ cov_1egtcjhr6x.f[9]++;
3965
+ cov_1egtcjhr6x.s[33]++;
3966
+ $(el).insertBefore(this.$dropdownContainer);
3967
+ cov_1egtcjhr6x.s[34]++;
3968
+ this.checkForChanges();
3969
+ } // Move to dropdown
3970
+ ;
3971
+
3972
+ _proto.moveToDropdown = function moveToDropdown(el) {
3973
+ cov_1egtcjhr6x.f[10]++;
3974
+ cov_1egtcjhr6x.s[35]++;
3975
+ $(el).appendTo(this.$dropdownList);
3976
+ cov_1egtcjhr6x.s[36]++;
3977
+ this.checkForChanges();
3978
+ } // Overflow status
3979
+ ;
3980
+
3981
+ _proto.overflowStatus = function overflowStatus() {
3982
+ cov_1egtcjhr6x.f[11]++;
3983
+ cov_1egtcjhr6x.s[37]++;
3984
+
3985
+ if (this.$el[0].offsetWidth < this.$el[0].scrollWidth) {
3986
+ cov_1egtcjhr6x.b[1][0]++;
3987
+ cov_1egtcjhr6x.s[38]++;
3988
+ return true;
3989
+ } else {
3990
+ cov_1egtcjhr6x.b[1][1]++;
3991
+ cov_1egtcjhr6x.s[39]++;
3992
+ return false;
3993
+ }
3994
+ } // CheckForChanges
3995
+ ;
3996
+
3997
+ _proto.checkForChanges = function checkForChanges() {
3998
+ cov_1egtcjhr6x.f[12]++;
3999
+ var dropdownItems = (cov_1egtcjhr6x.s[40]++, this.$dropdownList.children());
4000
+ var moveableTabs = (cov_1egtcjhr6x.s[41]++, this.$el.find('> .tab-item').not(this.$dropdownContainer));
4001
+ var tabs = (cov_1egtcjhr6x.s[42]++, this.$el.find('> .tab-item:visible'));
4002
+ var usedSpace = (cov_1egtcjhr6x.s[43]++, 0);
4003
+ cov_1egtcjhr6x.s[44]++;
4004
+ $.each(tabs, function (i, el) {
4005
+ cov_1egtcjhr6x.f[13]++;
4006
+ cov_1egtcjhr6x.s[45]++;
4007
+ usedSpace += $(el).outerWidth(true);
4008
+ });
4009
+ var freeSpace = (cov_1egtcjhr6x.s[46]++, this.$el[0].offsetWidth - usedSpace);
4010
+ cov_1egtcjhr6x.s[47]++;
4011
+
4012
+ if (dropdownItems.length > 0) {
4013
+ cov_1egtcjhr6x.b[2][0]++;
4014
+ cov_1egtcjhr6x.s[48]++;
4015
+
4016
+ if (!this.$dropdownContainer.hasClass('visible')) {
4017
+ cov_1egtcjhr6x.b[3][0]++;
4018
+ cov_1egtcjhr6x.s[49]++;
4019
+ this.$dropdownContainer.addClass('visible');
4020
+ } else {
4021
+ cov_1egtcjhr6x.b[3][1]++;
4022
+ }
4023
+ } else {
4024
+ cov_1egtcjhr6x.b[2][1]++;
4025
+ cov_1egtcjhr6x.s[50]++;
4026
+
4027
+ if (this.$dropdownContainer.hasClass('visible')) {
4028
+ cov_1egtcjhr6x.b[4][0]++;
4029
+ cov_1egtcjhr6x.s[51]++;
4030
+ this.$dropdownContainer.removeClass('visible');
4031
+ } else {
4032
+ cov_1egtcjhr6x.b[4][1]++;
4033
+ }
4034
+ }
4035
+
4036
+ cov_1egtcjhr6x.s[52]++;
4037
+
4038
+ if (this.overflowStatus() == true) {
4039
+ cov_1egtcjhr6x.b[5][0]++;
4040
+ cov_1egtcjhr6x.s[53]++;
4041
+
4042
+ if (moveableTabs.length > 0) {
4043
+ cov_1egtcjhr6x.b[6][0]++;
4044
+ cov_1egtcjhr6x.s[54]++;
4045
+ this.moveToDropdown(moveableTabs.last());
4046
+ } else {
4047
+ cov_1egtcjhr6x.b[6][1]++;
4048
+ }
4049
+ } else {
4050
+ cov_1egtcjhr6x.b[5][1]++;
4051
+ cov_1egtcjhr6x.s[55]++;
4052
+
4053
+ if (dropdownItems.length > 0) {
4054
+ cov_1egtcjhr6x.b[7][0]++;
4055
+ cov_1egtcjhr6x.s[56]++;
4056
+
4057
+ if (freeSpace > dropdownItems.last().data('width')) {
4058
+ cov_1egtcjhr6x.b[8][0]++;
4059
+ cov_1egtcjhr6x.s[57]++;
4060
+ this.moveToList(dropdownItems.last());
4061
+ } else {
4062
+ cov_1egtcjhr6x.b[8][1]++;
4063
+ }
4064
+ } else {
4065
+ cov_1egtcjhr6x.b[7][1]++;
4066
+ }
4067
+ }
4068
+ };
4069
+
4070
+ SectionTabs._jQueryInterface = function _jQueryInterface(config) {
4071
+ cov_1egtcjhr6x.f[14]++;
4072
+ cov_1egtcjhr6x.s[58]++;
4073
+ return this.each(function () {
4074
+ cov_1egtcjhr6x.f[15]++;
4075
+ var data = (cov_1egtcjhr6x.s[59]++, $(this).data(DATA_KEY));
4076
+
4077
+ var _config = (cov_1egtcjhr6x.s[60]++, (cov_1egtcjhr6x.b[9][0]++, typeof config === 'object') && (cov_1egtcjhr6x.b[9][1]++, config));
4078
+
4079
+ cov_1egtcjhr6x.s[61]++;
4080
+
4081
+ if (!data) {
4082
+ cov_1egtcjhr6x.b[10][0]++;
4083
+ cov_1egtcjhr6x.s[62]++;
4084
+ data = new SectionTabs(this, _config);
4085
+ cov_1egtcjhr6x.s[63]++;
4086
+ $(this).data(DATA_KEY, data);
4087
+ } else {
4088
+ cov_1egtcjhr6x.b[10][1]++;
4089
+ }
4090
+
4091
+ cov_1egtcjhr6x.s[64]++;
4092
+
4093
+ if (typeof config === 'string') {
4094
+ cov_1egtcjhr6x.b[11][0]++;
4095
+ cov_1egtcjhr6x.s[65]++;
4096
+
4097
+ if (typeof data[config] === 'undefined') {
4098
+ cov_1egtcjhr6x.b[12][0]++;
4099
+ cov_1egtcjhr6x.s[66]++;
4100
+ throw new TypeError("No method named \"" + config + "\"");
4101
+ } else {
4102
+ cov_1egtcjhr6x.b[12][1]++;
4103
+ }
4104
+
4105
+ cov_1egtcjhr6x.s[67]++;
4106
+ data[config]();
4107
+ } else {
4108
+ cov_1egtcjhr6x.b[11][1]++;
4109
+ }
4110
+ });
4111
+ };
4112
+
4113
+ return SectionTabs;
4114
+ }(AbstractUIComponent);
4115
+
4116
+ cov_1egtcjhr6x.s[68]++;
4117
+
4118
+ if (typeof $ !== 'undefined') {
4119
+ cov_1egtcjhr6x.b[13][0]++;
4120
+ // jQuery
4121
+ var JQUERY_NO_CONFLICT = (cov_1egtcjhr6x.s[69]++, $.fn[NAME]);
4122
+ cov_1egtcjhr6x.s[70]++;
4123
+ $.fn[NAME] = SectionTabs._jQueryInterface;
4124
+ cov_1egtcjhr6x.s[71]++;
4125
+ $.fn[NAME].Constructor = SectionTabs;
4126
+ cov_1egtcjhr6x.s[72]++;
4127
+
4128
+ $.fn[NAME].noConflict = function () {
4129
+ cov_1egtcjhr6x.f[16]++;
4130
+ cov_1egtcjhr6x.s[73]++;
4131
+ $.fn[NAME] = JQUERY_NO_CONFLICT;
4132
+ cov_1egtcjhr6x.s[74]++;
4133
+ return SectionTabs._jQueryInterface;
4134
+ };
4135
+
4136
+ cov_1egtcjhr6x.s[75]++;
4137
+ $.fn[NAME].defaults = {
4138
+ onInit: null,
4139
+ onUpdate: null,
4140
+ onDestroy: null,
4141
+ debug: false
4142
+ };
4143
+ } else {
4144
+ cov_1egtcjhr6x.b[13][1]++;
4145
+ }
4146
+
4147
+ return SectionTabs;
261
4148
 
262
4149
  }));
263
4150
  //# sourceMappingURL=sectiontabs.js.map