@bigbinary/neeto-image-uploader-frontend 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +593 -223
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +593 -223
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -16551,9 +16551,387 @@ var useFetchUnsplashImages = function useFetchUnsplashImages(_ref2) {
|
|
|
16551
16551
|
}, options));
|
|
16552
16552
|
};
|
|
16553
16553
|
|
|
16554
|
+
function cov_1wbab1h362() {
|
|
16555
|
+
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/utils.js";
|
|
16556
|
+
var hash = "66b3965aaef6c28dd83ad09a011d0cbfd61ea0a0";
|
|
16557
|
+
var global = new Function("return this")();
|
|
16558
|
+
var gcv = "__coverage__";
|
|
16559
|
+
var coverageData = {
|
|
16560
|
+
path: "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageUploader/utils.js",
|
|
16561
|
+
statementMap: {
|
|
16562
|
+
"0": {
|
|
16563
|
+
start: {
|
|
16564
|
+
line: 13,
|
|
16565
|
+
column: 38
|
|
16566
|
+
},
|
|
16567
|
+
end: {
|
|
16568
|
+
line: 38,
|
|
16569
|
+
column: 4
|
|
16570
|
+
}
|
|
16571
|
+
},
|
|
16572
|
+
"1": {
|
|
16573
|
+
start: {
|
|
16574
|
+
line: 14,
|
|
16575
|
+
column: 2
|
|
16576
|
+
},
|
|
16577
|
+
end: {
|
|
16578
|
+
line: 38,
|
|
16579
|
+
column: 4
|
|
16580
|
+
}
|
|
16581
|
+
},
|
|
16582
|
+
"2": {
|
|
16583
|
+
start: {
|
|
16584
|
+
line: 15,
|
|
16585
|
+
column: 19
|
|
16586
|
+
},
|
|
16587
|
+
end: {
|
|
16588
|
+
line: 15,
|
|
16589
|
+
column: 64
|
|
16590
|
+
}
|
|
16591
|
+
},
|
|
16592
|
+
"3": {
|
|
16593
|
+
start: {
|
|
16594
|
+
line: 16,
|
|
16595
|
+
column: 4
|
|
16596
|
+
},
|
|
16597
|
+
end: {
|
|
16598
|
+
line: 37,
|
|
16599
|
+
column: 7
|
|
16600
|
+
}
|
|
16601
|
+
},
|
|
16602
|
+
"4": {
|
|
16603
|
+
start: {
|
|
16604
|
+
line: 17,
|
|
16605
|
+
column: 6
|
|
16606
|
+
},
|
|
16607
|
+
end: {
|
|
16608
|
+
line: 21,
|
|
16609
|
+
column: 7
|
|
16610
|
+
}
|
|
16611
|
+
},
|
|
16612
|
+
"5": {
|
|
16613
|
+
start: {
|
|
16614
|
+
line: 18,
|
|
16615
|
+
column: 8
|
|
16616
|
+
},
|
|
16617
|
+
end: {
|
|
16618
|
+
line: 18,
|
|
16619
|
+
column: 22
|
|
16620
|
+
}
|
|
16621
|
+
},
|
|
16622
|
+
"6": {
|
|
16623
|
+
start: {
|
|
16624
|
+
line: 20,
|
|
16625
|
+
column: 8
|
|
16626
|
+
},
|
|
16627
|
+
end: {
|
|
16628
|
+
line: 20,
|
|
16629
|
+
column: 15
|
|
16630
|
+
}
|
|
16631
|
+
},
|
|
16632
|
+
"7": {
|
|
16633
|
+
start: {
|
|
16634
|
+
line: 23,
|
|
16635
|
+
column: 22
|
|
16636
|
+
},
|
|
16637
|
+
end: {
|
|
16638
|
+
line: 33,
|
|
16639
|
+
column: 7
|
|
16640
|
+
}
|
|
16641
|
+
},
|
|
16642
|
+
"8": {
|
|
16643
|
+
start: {
|
|
16644
|
+
line: 34,
|
|
16645
|
+
column: 6
|
|
16646
|
+
},
|
|
16647
|
+
end: {
|
|
16648
|
+
line: 34,
|
|
16649
|
+
column: 39
|
|
16650
|
+
}
|
|
16651
|
+
},
|
|
16652
|
+
"9": {
|
|
16653
|
+
start: {
|
|
16654
|
+
line: 36,
|
|
16655
|
+
column: 6
|
|
16656
|
+
},
|
|
16657
|
+
end: {
|
|
16658
|
+
line: 36,
|
|
16659
|
+
column: 73
|
|
16660
|
+
}
|
|
16661
|
+
},
|
|
16662
|
+
"10": {
|
|
16663
|
+
start: {
|
|
16664
|
+
line: 40,
|
|
16665
|
+
column: 34
|
|
16666
|
+
},
|
|
16667
|
+
end: {
|
|
16668
|
+
line: 52,
|
|
16669
|
+
column: 1
|
|
16670
|
+
}
|
|
16671
|
+
},
|
|
16672
|
+
"11": {
|
|
16673
|
+
start: {
|
|
16674
|
+
line: 41,
|
|
16675
|
+
column: 19
|
|
16676
|
+
},
|
|
16677
|
+
end: {
|
|
16678
|
+
line: 41,
|
|
16679
|
+
column: 53
|
|
16680
|
+
}
|
|
16681
|
+
},
|
|
16682
|
+
"12": {
|
|
16683
|
+
start: {
|
|
16684
|
+
line: 43,
|
|
16685
|
+
column: 2
|
|
16686
|
+
},
|
|
16687
|
+
end: {
|
|
16688
|
+
line: 51,
|
|
16689
|
+
column: 5
|
|
16690
|
+
}
|
|
16691
|
+
}
|
|
16692
|
+
},
|
|
16693
|
+
fnMap: {
|
|
16694
|
+
"0": {
|
|
16695
|
+
name: "(anonymous_0)",
|
|
16696
|
+
decl: {
|
|
16697
|
+
start: {
|
|
16698
|
+
line: 13,
|
|
16699
|
+
column: 38
|
|
16700
|
+
},
|
|
16701
|
+
end: {
|
|
16702
|
+
line: 13,
|
|
16703
|
+
column: 39
|
|
16704
|
+
}
|
|
16705
|
+
},
|
|
16706
|
+
loc: {
|
|
16707
|
+
start: {
|
|
16708
|
+
line: 14,
|
|
16709
|
+
column: 2
|
|
16710
|
+
},
|
|
16711
|
+
end: {
|
|
16712
|
+
line: 38,
|
|
16713
|
+
column: 4
|
|
16714
|
+
}
|
|
16715
|
+
},
|
|
16716
|
+
line: 14
|
|
16717
|
+
},
|
|
16718
|
+
"1": {
|
|
16719
|
+
name: "(anonymous_1)",
|
|
16720
|
+
decl: {
|
|
16721
|
+
start: {
|
|
16722
|
+
line: 14,
|
|
16723
|
+
column: 14
|
|
16724
|
+
},
|
|
16725
|
+
end: {
|
|
16726
|
+
line: 14,
|
|
16727
|
+
column: 15
|
|
16728
|
+
}
|
|
16729
|
+
},
|
|
16730
|
+
loc: {
|
|
16731
|
+
start: {
|
|
16732
|
+
line: 14,
|
|
16733
|
+
column: 35
|
|
16734
|
+
},
|
|
16735
|
+
end: {
|
|
16736
|
+
line: 38,
|
|
16737
|
+
column: 3
|
|
16738
|
+
}
|
|
16739
|
+
},
|
|
16740
|
+
line: 14
|
|
16741
|
+
},
|
|
16742
|
+
"2": {
|
|
16743
|
+
name: "(anonymous_2)",
|
|
16744
|
+
decl: {
|
|
16745
|
+
start: {
|
|
16746
|
+
line: 16,
|
|
16747
|
+
column: 18
|
|
16748
|
+
},
|
|
16749
|
+
end: {
|
|
16750
|
+
line: 16,
|
|
16751
|
+
column: 19
|
|
16752
|
+
}
|
|
16753
|
+
},
|
|
16754
|
+
loc: {
|
|
16755
|
+
start: {
|
|
16756
|
+
line: 16,
|
|
16757
|
+
column: 35
|
|
16758
|
+
},
|
|
16759
|
+
end: {
|
|
16760
|
+
line: 37,
|
|
16761
|
+
column: 5
|
|
16762
|
+
}
|
|
16763
|
+
},
|
|
16764
|
+
line: 16
|
|
16765
|
+
},
|
|
16766
|
+
"3": {
|
|
16767
|
+
name: "(anonymous_3)",
|
|
16768
|
+
decl: {
|
|
16769
|
+
start: {
|
|
16770
|
+
line: 40,
|
|
16771
|
+
column: 34
|
|
16772
|
+
},
|
|
16773
|
+
end: {
|
|
16774
|
+
line: 40,
|
|
16775
|
+
column: 35
|
|
16776
|
+
}
|
|
16777
|
+
},
|
|
16778
|
+
loc: {
|
|
16779
|
+
start: {
|
|
16780
|
+
line: 40,
|
|
16781
|
+
column: 48
|
|
16782
|
+
},
|
|
16783
|
+
end: {
|
|
16784
|
+
line: 52,
|
|
16785
|
+
column: 1
|
|
16786
|
+
}
|
|
16787
|
+
},
|
|
16788
|
+
line: 40
|
|
16789
|
+
}
|
|
16790
|
+
},
|
|
16791
|
+
branchMap: {
|
|
16792
|
+
"0": {
|
|
16793
|
+
loc: {
|
|
16794
|
+
start: {
|
|
16795
|
+
line: 17,
|
|
16796
|
+
column: 6
|
|
16797
|
+
},
|
|
16798
|
+
end: {
|
|
16799
|
+
line: 21,
|
|
16800
|
+
column: 7
|
|
16801
|
+
}
|
|
16802
|
+
},
|
|
16803
|
+
type: "if",
|
|
16804
|
+
locations: [{
|
|
16805
|
+
start: {
|
|
16806
|
+
line: 17,
|
|
16807
|
+
column: 6
|
|
16808
|
+
},
|
|
16809
|
+
end: {
|
|
16810
|
+
line: 21,
|
|
16811
|
+
column: 7
|
|
16812
|
+
}
|
|
16813
|
+
}, {
|
|
16814
|
+
start: {
|
|
16815
|
+
line: undefined,
|
|
16816
|
+
column: undefined
|
|
16817
|
+
},
|
|
16818
|
+
end: {
|
|
16819
|
+
line: undefined,
|
|
16820
|
+
column: undefined
|
|
16821
|
+
}
|
|
16822
|
+
}],
|
|
16823
|
+
line: 17
|
|
16824
|
+
},
|
|
16825
|
+
"1": {
|
|
16826
|
+
loc: {
|
|
16827
|
+
start: {
|
|
16828
|
+
line: 46,
|
|
16829
|
+
column: 12
|
|
16830
|
+
},
|
|
16831
|
+
end: {
|
|
16832
|
+
line: 46,
|
|
16833
|
+
column: 67
|
|
16834
|
+
}
|
|
16835
|
+
},
|
|
16836
|
+
type: "binary-expr",
|
|
16837
|
+
locations: [{
|
|
16838
|
+
start: {
|
|
16839
|
+
line: 46,
|
|
16840
|
+
column: 12
|
|
16841
|
+
},
|
|
16842
|
+
end: {
|
|
16843
|
+
line: 46,
|
|
16844
|
+
column: 39
|
|
16845
|
+
}
|
|
16846
|
+
}, {
|
|
16847
|
+
start: {
|
|
16848
|
+
line: 46,
|
|
16849
|
+
column: 43
|
|
16850
|
+
},
|
|
16851
|
+
end: {
|
|
16852
|
+
line: 46,
|
|
16853
|
+
column: 67
|
|
16854
|
+
}
|
|
16855
|
+
}],
|
|
16856
|
+
line: 46
|
|
16857
|
+
}
|
|
16858
|
+
},
|
|
16859
|
+
s: {
|
|
16860
|
+
"0": 0,
|
|
16861
|
+
"1": 0,
|
|
16862
|
+
"2": 0,
|
|
16863
|
+
"3": 0,
|
|
16864
|
+
"4": 0,
|
|
16865
|
+
"5": 0,
|
|
16866
|
+
"6": 0,
|
|
16867
|
+
"7": 0,
|
|
16868
|
+
"8": 0,
|
|
16869
|
+
"9": 0,
|
|
16870
|
+
"10": 0,
|
|
16871
|
+
"11": 0,
|
|
16872
|
+
"12": 0
|
|
16873
|
+
},
|
|
16874
|
+
f: {
|
|
16875
|
+
"0": 0,
|
|
16876
|
+
"1": 0,
|
|
16877
|
+
"2": 0,
|
|
16878
|
+
"3": 0
|
|
16879
|
+
},
|
|
16880
|
+
b: {
|
|
16881
|
+
"0": [0, 0],
|
|
16882
|
+
"1": [0, 0]
|
|
16883
|
+
},
|
|
16884
|
+
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
16885
|
+
hash: "66b3965aaef6c28dd83ad09a011d0cbfd61ea0a0"
|
|
16886
|
+
};
|
|
16887
|
+
var coverage = global[gcv] || (global[gcv] = {});
|
|
16888
|
+
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
16889
|
+
coverage[path] = coverageData;
|
|
16890
|
+
}
|
|
16891
|
+
var actualCoverage = coverage[path];
|
|
16892
|
+
{
|
|
16893
|
+
// @ts-ignore
|
|
16894
|
+
cov_1wbab1h362 = function () {
|
|
16895
|
+
return actualCoverage;
|
|
16896
|
+
};
|
|
16897
|
+
}
|
|
16898
|
+
return actualCoverage;
|
|
16899
|
+
}
|
|
16900
|
+
cov_1wbab1h362();
|
|
16901
|
+
cov_1wbab1h362().s[0]++;
|
|
16902
|
+
cov_1wbab1h362().s[10]++;
|
|
16903
|
+
var uploadWithImageKit = /*#__PURE__*/function () {
|
|
16904
|
+
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(file) {
|
|
16905
|
+
var imagekit;
|
|
16906
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
16907
|
+
while (1) switch (_context.prev = _context.next) {
|
|
16908
|
+
case 0:
|
|
16909
|
+
cov_1wbab1h362().f[3]++;
|
|
16910
|
+
imagekit = (cov_1wbab1h362().s[11]++, new ImageKit(globalProps.imageKit));
|
|
16911
|
+
cov_1wbab1h362().s[12]++;
|
|
16912
|
+
return _context.abrupt("return", imagekit.upload({
|
|
16913
|
+
file: file,
|
|
16914
|
+
fileName: UNSPLASH_DEFAULT_NAME,
|
|
16915
|
+
folder: (cov_1wbab1h362().b[1][0]++, globalProps.imageKit.folder) || (cov_1wbab1h362().b[1][1]++, IMAGE_KIT_DEFAULT_FOLDER),
|
|
16916
|
+
customMetadata: {
|
|
16917
|
+
organizationSubdomain: globalProps.organization.subdomain,
|
|
16918
|
+
appName: globalProps.appName
|
|
16919
|
+
}
|
|
16920
|
+
}));
|
|
16921
|
+
case 4:
|
|
16922
|
+
case "end":
|
|
16923
|
+
return _context.stop();
|
|
16924
|
+
}
|
|
16925
|
+
}, _callee);
|
|
16926
|
+
}));
|
|
16927
|
+
return function uploadWithImageKit(_x) {
|
|
16928
|
+
return _ref.apply(this, arguments);
|
|
16929
|
+
};
|
|
16930
|
+
}();
|
|
16931
|
+
|
|
16554
16932
|
function cov_28odpwq50i() {
|
|
16555
16933
|
var path = "/home/runner/work/neeto-image-uploader-nano/neeto-image-uploader-nano/app/javascript/src/components/ImageLibrary/Unsplash.jsx";
|
|
16556
|
-
var hash = "
|
|
16934
|
+
var hash = "b70797aa9557e8a1a440d24896c69b322f4ac0ae";
|
|
16557
16935
|
var global = new Function("return this")();
|
|
16558
16936
|
var gcv = "__coverage__";
|
|
16559
16937
|
var coverageData = {
|
|
@@ -16561,361 +16939,351 @@ function cov_28odpwq50i() {
|
|
|
16561
16939
|
statementMap: {
|
|
16562
16940
|
"0": {
|
|
16563
16941
|
start: {
|
|
16564
|
-
line:
|
|
16942
|
+
line: 23,
|
|
16565
16943
|
column: 24
|
|
16566
16944
|
},
|
|
16567
16945
|
end: {
|
|
16568
|
-
line:
|
|
16946
|
+
line: 108,
|
|
16569
16947
|
column: 1
|
|
16570
16948
|
}
|
|
16571
16949
|
},
|
|
16572
16950
|
"1": {
|
|
16573
16951
|
start: {
|
|
16574
|
-
line:
|
|
16952
|
+
line: 24,
|
|
16575
16953
|
column: 32
|
|
16576
16954
|
},
|
|
16577
16955
|
end: {
|
|
16578
|
-
line:
|
|
16956
|
+
line: 24,
|
|
16579
16957
|
column: 46
|
|
16580
16958
|
}
|
|
16581
16959
|
},
|
|
16582
16960
|
"2": {
|
|
16583
16961
|
start: {
|
|
16584
|
-
line:
|
|
16962
|
+
line: 25,
|
|
16585
16963
|
column: 30
|
|
16586
16964
|
},
|
|
16587
16965
|
end: {
|
|
16588
|
-
line:
|
|
16966
|
+
line: 25,
|
|
16589
16967
|
column: 42
|
|
16590
16968
|
}
|
|
16591
16969
|
},
|
|
16592
16970
|
"3": {
|
|
16593
16971
|
start: {
|
|
16594
|
-
line:
|
|
16972
|
+
line: 26,
|
|
16595
16973
|
column: 30
|
|
16596
16974
|
},
|
|
16597
16975
|
end: {
|
|
16598
|
-
line:
|
|
16976
|
+
line: 26,
|
|
16599
16977
|
column: 41
|
|
16600
16978
|
}
|
|
16601
16979
|
},
|
|
16602
16980
|
"4": {
|
|
16603
16981
|
start: {
|
|
16604
|
-
line:
|
|
16982
|
+
line: 27,
|
|
16605
16983
|
column: 28
|
|
16606
16984
|
},
|
|
16607
16985
|
end: {
|
|
16608
|
-
line:
|
|
16986
|
+
line: 27,
|
|
16609
16987
|
column: 43
|
|
16610
16988
|
}
|
|
16611
16989
|
},
|
|
16612
16990
|
"5": {
|
|
16613
16991
|
start: {
|
|
16614
|
-
line:
|
|
16992
|
+
line: 29,
|
|
16615
16993
|
column: 20
|
|
16616
16994
|
},
|
|
16617
16995
|
end: {
|
|
16618
|
-
line:
|
|
16996
|
+
line: 34,
|
|
16619
16997
|
column: 3
|
|
16620
16998
|
}
|
|
16621
16999
|
},
|
|
16622
17000
|
"6": {
|
|
16623
17001
|
start: {
|
|
16624
|
-
line:
|
|
17002
|
+
line: 30,
|
|
16625
17003
|
column: 4
|
|
16626
17004
|
},
|
|
16627
17005
|
end: {
|
|
16628
|
-
line:
|
|
17006
|
+
line: 30,
|
|
16629
17007
|
column: 76
|
|
16630
17008
|
}
|
|
16631
17009
|
},
|
|
16632
17010
|
"7": {
|
|
16633
17011
|
start: {
|
|
16634
|
-
line:
|
|
17012
|
+
line: 32,
|
|
16635
17013
|
column: 4
|
|
16636
17014
|
},
|
|
16637
17015
|
end: {
|
|
16638
|
-
line:
|
|
17016
|
+
line: 32,
|
|
16639
17017
|
column: 19
|
|
16640
17018
|
}
|
|
16641
17019
|
},
|
|
16642
17020
|
"8": {
|
|
16643
17021
|
start: {
|
|
16644
|
-
line:
|
|
17022
|
+
line: 33,
|
|
16645
17023
|
column: 4
|
|
16646
17024
|
},
|
|
16647
17025
|
end: {
|
|
16648
|
-
line:
|
|
17026
|
+
line: 33,
|
|
16649
17027
|
column: 36
|
|
16650
17028
|
}
|
|
16651
17029
|
},
|
|
16652
17030
|
"9": {
|
|
16653
17031
|
start: {
|
|
16654
|
-
line:
|
|
17032
|
+
line: 36,
|
|
16655
17033
|
column: 36
|
|
16656
17034
|
},
|
|
16657
17035
|
end: {
|
|
16658
|
-
line:
|
|
17036
|
+
line: 59,
|
|
16659
17037
|
column: 3
|
|
16660
17038
|
}
|
|
16661
17039
|
},
|
|
16662
17040
|
"10": {
|
|
16663
17041
|
start: {
|
|
16664
|
-
line:
|
|
17042
|
+
line: 37,
|
|
16665
17043
|
column: 4
|
|
16666
17044
|
},
|
|
16667
17045
|
end: {
|
|
16668
|
-
line:
|
|
17046
|
+
line: 58,
|
|
16669
17047
|
column: 5
|
|
16670
17048
|
}
|
|
16671
17049
|
},
|
|
16672
17050
|
"11": {
|
|
16673
17051
|
start: {
|
|
16674
|
-
line:
|
|
17052
|
+
line: 38,
|
|
16675
17053
|
column: 6
|
|
16676
17054
|
},
|
|
16677
17055
|
end: {
|
|
16678
|
-
line:
|
|
17056
|
+
line: 38,
|
|
16679
17057
|
column: 27
|
|
16680
17058
|
}
|
|
16681
17059
|
},
|
|
16682
17060
|
"12": {
|
|
16683
17061
|
start: {
|
|
16684
|
-
line:
|
|
17062
|
+
line: 39,
|
|
16685
17063
|
column: 23
|
|
16686
17064
|
},
|
|
16687
17065
|
end: {
|
|
16688
|
-
line:
|
|
17066
|
+
line: 42,
|
|
16689
17067
|
column: 7
|
|
16690
17068
|
}
|
|
16691
17069
|
},
|
|
16692
17070
|
"13": {
|
|
16693
17071
|
start: {
|
|
16694
|
-
line:
|
|
17072
|
+
line: 44,
|
|
16695
17073
|
column: 19
|
|
16696
17074
|
},
|
|
16697
17075
|
end: {
|
|
16698
|
-
line:
|
|
17076
|
+
line: 46,
|
|
16699
17077
|
column: 8
|
|
16700
17078
|
}
|
|
16701
17079
|
},
|
|
16702
17080
|
"14": {
|
|
16703
17081
|
start: {
|
|
16704
|
-
line:
|
|
16705
|
-
column:
|
|
17082
|
+
line: 49,
|
|
17083
|
+
column: 8
|
|
16706
17084
|
},
|
|
16707
17085
|
end: {
|
|
16708
|
-
line:
|
|
16709
|
-
column:
|
|
17086
|
+
line: 51,
|
|
17087
|
+
column: 42
|
|
16710
17088
|
}
|
|
16711
17089
|
},
|
|
16712
17090
|
"15": {
|
|
16713
17091
|
start: {
|
|
16714
|
-
line:
|
|
16715
|
-
column: 21
|
|
16716
|
-
},
|
|
16717
|
-
end: {
|
|
16718
|
-
line: 56,
|
|
16719
|
-
column: 8
|
|
16720
|
-
}
|
|
16721
|
-
},
|
|
16722
|
-
"16": {
|
|
16723
|
-
start: {
|
|
16724
|
-
line: 57,
|
|
17092
|
+
line: 53,
|
|
16725
17093
|
column: 6
|
|
16726
17094
|
},
|
|
16727
17095
|
end: {
|
|
16728
|
-
line:
|
|
17096
|
+
line: 53,
|
|
16729
17097
|
column: 23
|
|
16730
17098
|
}
|
|
16731
17099
|
},
|
|
16732
|
-
"
|
|
17100
|
+
"16": {
|
|
16733
17101
|
start: {
|
|
16734
|
-
line:
|
|
17102
|
+
line: 55,
|
|
16735
17103
|
column: 6
|
|
16736
17104
|
},
|
|
16737
17105
|
end: {
|
|
16738
|
-
line:
|
|
17106
|
+
line: 55,
|
|
16739
17107
|
column: 26
|
|
16740
17108
|
}
|
|
16741
17109
|
},
|
|
16742
|
-
"
|
|
17110
|
+
"17": {
|
|
16743
17111
|
start: {
|
|
16744
|
-
line:
|
|
17112
|
+
line: 57,
|
|
16745
17113
|
column: 6
|
|
16746
17114
|
},
|
|
16747
17115
|
end: {
|
|
16748
|
-
line:
|
|
17116
|
+
line: 57,
|
|
16749
17117
|
column: 28
|
|
16750
17118
|
}
|
|
16751
17119
|
},
|
|
16752
|
-
"
|
|
17120
|
+
"18": {
|
|
16753
17121
|
start: {
|
|
16754
|
-
line:
|
|
17122
|
+
line: 61,
|
|
16755
17123
|
column: 18
|
|
16756
17124
|
},
|
|
16757
17125
|
end: {
|
|
16758
|
-
line:
|
|
17126
|
+
line: 61,
|
|
16759
17127
|
column: 38
|
|
16760
17128
|
}
|
|
16761
17129
|
},
|
|
16762
|
-
"
|
|
17130
|
+
"19": {
|
|
16763
17131
|
start: {
|
|
16764
|
-
line:
|
|
17132
|
+
line: 61,
|
|
16765
17133
|
column: 24
|
|
16766
17134
|
},
|
|
16767
17135
|
end: {
|
|
16768
|
-
line:
|
|
17136
|
+
line: 61,
|
|
16769
17137
|
column: 38
|
|
16770
17138
|
}
|
|
16771
17139
|
},
|
|
16772
|
-
"
|
|
17140
|
+
"20": {
|
|
16773
17141
|
start: {
|
|
16774
|
-
line:
|
|
17142
|
+
line: 63,
|
|
16775
17143
|
column: 16
|
|
16776
17144
|
},
|
|
16777
17145
|
end: {
|
|
16778
|
-
line:
|
|
17146
|
+
line: 63,
|
|
16779
17147
|
column: 32
|
|
16780
17148
|
}
|
|
16781
17149
|
},
|
|
16782
|
-
"
|
|
17150
|
+
"21": {
|
|
16783
17151
|
start: {
|
|
16784
|
-
line:
|
|
17152
|
+
line: 65,
|
|
16785
17153
|
column: 34
|
|
16786
17154
|
},
|
|
16787
17155
|
end: {
|
|
16788
|
-
line:
|
|
17156
|
+
line: 74,
|
|
16789
17157
|
column: 3
|
|
16790
17158
|
}
|
|
16791
17159
|
},
|
|
16792
|
-
"
|
|
17160
|
+
"22": {
|
|
16793
17161
|
start: {
|
|
16794
|
-
line:
|
|
17162
|
+
line: 76,
|
|
16795
17163
|
column: 19
|
|
16796
17164
|
},
|
|
16797
17165
|
end: {
|
|
16798
|
-
line:
|
|
17166
|
+
line: 83,
|
|
16799
17167
|
column: 9
|
|
16800
17168
|
}
|
|
16801
17169
|
},
|
|
16802
|
-
"
|
|
17170
|
+
"23": {
|
|
16803
17171
|
start: {
|
|
16804
|
-
line:
|
|
17172
|
+
line: 77,
|
|
16805
17173
|
column: 4
|
|
16806
17174
|
},
|
|
16807
17175
|
end: {
|
|
16808
|
-
line:
|
|
17176
|
+
line: 77,
|
|
16809
17177
|
column: 39
|
|
16810
17178
|
}
|
|
16811
17179
|
},
|
|
16812
|
-
"
|
|
17180
|
+
"24": {
|
|
16813
17181
|
start: {
|
|
16814
|
-
line:
|
|
17182
|
+
line: 77,
|
|
16815
17183
|
column: 32
|
|
16816
17184
|
},
|
|
16817
17185
|
end: {
|
|
16818
|
-
line:
|
|
17186
|
+
line: 77,
|
|
16819
17187
|
column: 39
|
|
16820
17188
|
}
|
|
16821
17189
|
},
|
|
16822
|
-
"
|
|
17190
|
+
"25": {
|
|
16823
17191
|
start: {
|
|
16824
|
-
line:
|
|
17192
|
+
line: 79,
|
|
16825
17193
|
column: 4
|
|
16826
17194
|
},
|
|
16827
17195
|
end: {
|
|
16828
|
-
line:
|
|
17196
|
+
line: 82,
|
|
16829
17197
|
column: 5
|
|
16830
17198
|
}
|
|
16831
17199
|
},
|
|
16832
|
-
"
|
|
17200
|
+
"26": {
|
|
16833
17201
|
start: {
|
|
16834
|
-
line:
|
|
17202
|
+
line: 80,
|
|
16835
17203
|
column: 6
|
|
16836
17204
|
},
|
|
16837
17205
|
end: {
|
|
16838
|
-
line:
|
|
17206
|
+
line: 80,
|
|
16839
17207
|
column: 22
|
|
16840
17208
|
}
|
|
16841
17209
|
},
|
|
16842
|
-
"
|
|
17210
|
+
"27": {
|
|
16843
17211
|
start: {
|
|
16844
|
-
line:
|
|
17212
|
+
line: 81,
|
|
16845
17213
|
column: 6
|
|
16846
17214
|
},
|
|
16847
17215
|
end: {
|
|
16848
|
-
line:
|
|
17216
|
+
line: 81,
|
|
16849
17217
|
column: 16
|
|
16850
17218
|
}
|
|
16851
17219
|
},
|
|
16852
|
-
"
|
|
17220
|
+
"28": {
|
|
16853
17221
|
start: {
|
|
16854
|
-
line:
|
|
17222
|
+
line: 85,
|
|
16855
17223
|
column: 2
|
|
16856
17224
|
},
|
|
16857
17225
|
end: {
|
|
16858
|
-
line:
|
|
17226
|
+
line: 89,
|
|
16859
17227
|
column: 23
|
|
16860
17228
|
}
|
|
16861
17229
|
},
|
|
16862
|
-
"
|
|
17230
|
+
"29": {
|
|
16863
17231
|
start: {
|
|
16864
|
-
line:
|
|
17232
|
+
line: 86,
|
|
16865
17233
|
column: 4
|
|
16866
17234
|
},
|
|
16867
17235
|
end: {
|
|
16868
|
-
line:
|
|
17236
|
+
line: 86,
|
|
16869
17237
|
column: 17
|
|
16870
17238
|
}
|
|
16871
17239
|
},
|
|
16872
|
-
"
|
|
17240
|
+
"30": {
|
|
16873
17241
|
start: {
|
|
16874
|
-
line:
|
|
17242
|
+
line: 87,
|
|
16875
17243
|
column: 4
|
|
16876
17244
|
},
|
|
16877
17245
|
end: {
|
|
16878
|
-
line:
|
|
17246
|
+
line: 87,
|
|
16879
17247
|
column: 18
|
|
16880
17248
|
}
|
|
16881
17249
|
},
|
|
16882
|
-
"
|
|
17250
|
+
"31": {
|
|
16883
17251
|
start: {
|
|
16884
|
-
line:
|
|
17252
|
+
line: 88,
|
|
16885
17253
|
column: 4
|
|
16886
17254
|
},
|
|
16887
17255
|
end: {
|
|
16888
|
-
line:
|
|
17256
|
+
line: 88,
|
|
16889
17257
|
column: 14
|
|
16890
17258
|
}
|
|
16891
17259
|
},
|
|
16892
|
-
"
|
|
17260
|
+
"32": {
|
|
16893
17261
|
start: {
|
|
16894
|
-
line:
|
|
17262
|
+
line: 91,
|
|
16895
17263
|
column: 2
|
|
16896
17264
|
},
|
|
16897
17265
|
end: {
|
|
16898
|
-
line:
|
|
17266
|
+
line: 97,
|
|
16899
17267
|
column: 3
|
|
16900
17268
|
}
|
|
16901
17269
|
},
|
|
16902
|
-
"
|
|
17270
|
+
"33": {
|
|
16903
17271
|
start: {
|
|
16904
|
-
line:
|
|
17272
|
+
line: 92,
|
|
16905
17273
|
column: 4
|
|
16906
17274
|
},
|
|
16907
17275
|
end: {
|
|
16908
|
-
line:
|
|
17276
|
+
line: 96,
|
|
16909
17277
|
column: 6
|
|
16910
17278
|
}
|
|
16911
17279
|
},
|
|
16912
|
-
"
|
|
17280
|
+
"34": {
|
|
16913
17281
|
start: {
|
|
16914
|
-
line:
|
|
17282
|
+
line: 99,
|
|
16915
17283
|
column: 2
|
|
16916
17284
|
},
|
|
16917
17285
|
end: {
|
|
16918
|
-
line:
|
|
17286
|
+
line: 107,
|
|
16919
17287
|
column: 4
|
|
16920
17288
|
}
|
|
16921
17289
|
}
|
|
@@ -16925,257 +17293,257 @@ function cov_28odpwq50i() {
|
|
|
16925
17293
|
name: "(anonymous_0)",
|
|
16926
17294
|
decl: {
|
|
16927
17295
|
start: {
|
|
16928
|
-
line:
|
|
17296
|
+
line: 23,
|
|
16929
17297
|
column: 24
|
|
16930
17298
|
},
|
|
16931
17299
|
end: {
|
|
16932
|
-
line:
|
|
17300
|
+
line: 23,
|
|
16933
17301
|
column: 25
|
|
16934
17302
|
}
|
|
16935
17303
|
},
|
|
16936
17304
|
loc: {
|
|
16937
17305
|
start: {
|
|
16938
|
-
line:
|
|
17306
|
+
line: 23,
|
|
16939
17307
|
column: 74
|
|
16940
17308
|
},
|
|
16941
17309
|
end: {
|
|
16942
|
-
line:
|
|
17310
|
+
line: 108,
|
|
16943
17311
|
column: 1
|
|
16944
17312
|
}
|
|
16945
17313
|
},
|
|
16946
|
-
line:
|
|
17314
|
+
line: 23
|
|
16947
17315
|
},
|
|
16948
17316
|
"1": {
|
|
16949
17317
|
name: "(anonymous_1)",
|
|
16950
17318
|
decl: {
|
|
16951
17319
|
start: {
|
|
16952
|
-
line:
|
|
17320
|
+
line: 29,
|
|
16953
17321
|
column: 20
|
|
16954
17322
|
},
|
|
16955
17323
|
end: {
|
|
16956
|
-
line:
|
|
17324
|
+
line: 29,
|
|
16957
17325
|
column: 21
|
|
16958
17326
|
}
|
|
16959
17327
|
},
|
|
16960
17328
|
loc: {
|
|
16961
17329
|
start: {
|
|
16962
|
-
line:
|
|
17330
|
+
line: 29,
|
|
16963
17331
|
column: 54
|
|
16964
17332
|
},
|
|
16965
17333
|
end: {
|
|
16966
|
-
line:
|
|
17334
|
+
line: 34,
|
|
16967
17335
|
column: 3
|
|
16968
17336
|
}
|
|
16969
17337
|
},
|
|
16970
|
-
line:
|
|
17338
|
+
line: 29
|
|
16971
17339
|
},
|
|
16972
17340
|
"2": {
|
|
16973
17341
|
name: "(anonymous_2)",
|
|
16974
17342
|
decl: {
|
|
16975
17343
|
start: {
|
|
16976
|
-
line:
|
|
17344
|
+
line: 36,
|
|
16977
17345
|
column: 36
|
|
16978
17346
|
},
|
|
16979
17347
|
end: {
|
|
16980
|
-
line:
|
|
17348
|
+
line: 36,
|
|
16981
17349
|
column: 37
|
|
16982
17350
|
}
|
|
16983
17351
|
},
|
|
16984
17352
|
loc: {
|
|
16985
17353
|
start: {
|
|
16986
|
-
line:
|
|
17354
|
+
line: 36,
|
|
16987
17355
|
column: 51
|
|
16988
17356
|
},
|
|
16989
17357
|
end: {
|
|
16990
|
-
line:
|
|
17358
|
+
line: 59,
|
|
16991
17359
|
column: 3
|
|
16992
17360
|
}
|
|
16993
17361
|
},
|
|
16994
|
-
line:
|
|
17362
|
+
line: 36
|
|
16995
17363
|
},
|
|
16996
17364
|
"3": {
|
|
16997
17365
|
name: "(anonymous_3)",
|
|
16998
17366
|
decl: {
|
|
16999
17367
|
start: {
|
|
17000
|
-
line:
|
|
17368
|
+
line: 61,
|
|
17001
17369
|
column: 18
|
|
17002
17370
|
},
|
|
17003
17371
|
end: {
|
|
17004
|
-
line:
|
|
17372
|
+
line: 61,
|
|
17005
17373
|
column: 19
|
|
17006
17374
|
}
|
|
17007
17375
|
},
|
|
17008
17376
|
loc: {
|
|
17009
17377
|
start: {
|
|
17010
|
-
line:
|
|
17378
|
+
line: 61,
|
|
17011
17379
|
column: 24
|
|
17012
17380
|
},
|
|
17013
17381
|
end: {
|
|
17014
|
-
line:
|
|
17382
|
+
line: 61,
|
|
17015
17383
|
column: 38
|
|
17016
17384
|
}
|
|
17017
17385
|
},
|
|
17018
|
-
line:
|
|
17386
|
+
line: 61
|
|
17019
17387
|
},
|
|
17020
17388
|
"4": {
|
|
17021
17389
|
name: "(anonymous_4)",
|
|
17022
17390
|
decl: {
|
|
17023
17391
|
start: {
|
|
17024
|
-
line:
|
|
17392
|
+
line: 76,
|
|
17025
17393
|
column: 35
|
|
17026
17394
|
},
|
|
17027
17395
|
end: {
|
|
17028
|
-
line:
|
|
17396
|
+
line: 76,
|
|
17029
17397
|
column: 36
|
|
17030
17398
|
}
|
|
17031
17399
|
},
|
|
17032
17400
|
loc: {
|
|
17033
17401
|
start: {
|
|
17034
|
-
line:
|
|
17402
|
+
line: 76,
|
|
17035
17403
|
column: 41
|
|
17036
17404
|
},
|
|
17037
17405
|
end: {
|
|
17038
|
-
line:
|
|
17406
|
+
line: 83,
|
|
17039
17407
|
column: 3
|
|
17040
17408
|
}
|
|
17041
17409
|
},
|
|
17042
|
-
line:
|
|
17410
|
+
line: 76
|
|
17043
17411
|
},
|
|
17044
17412
|
"5": {
|
|
17045
17413
|
name: "(anonymous_5)",
|
|
17046
17414
|
decl: {
|
|
17047
17415
|
start: {
|
|
17048
|
-
line:
|
|
17416
|
+
line: 85,
|
|
17049
17417
|
column: 12
|
|
17050
17418
|
},
|
|
17051
17419
|
end: {
|
|
17052
|
-
line:
|
|
17420
|
+
line: 85,
|
|
17053
17421
|
column: 13
|
|
17054
17422
|
}
|
|
17055
17423
|
},
|
|
17056
17424
|
loc: {
|
|
17057
17425
|
start: {
|
|
17058
|
-
line:
|
|
17426
|
+
line: 85,
|
|
17059
17427
|
column: 18
|
|
17060
17428
|
},
|
|
17061
17429
|
end: {
|
|
17062
|
-
line:
|
|
17430
|
+
line: 89,
|
|
17063
17431
|
column: 3
|
|
17064
17432
|
}
|
|
17065
17433
|
},
|
|
17066
|
-
line:
|
|
17434
|
+
line: 85
|
|
17067
17435
|
}
|
|
17068
17436
|
},
|
|
17069
17437
|
branchMap: {
|
|
17070
17438
|
"0": {
|
|
17071
17439
|
loc: {
|
|
17072
17440
|
start: {
|
|
17073
|
-
line:
|
|
17441
|
+
line: 29,
|
|
17074
17442
|
column: 23
|
|
17075
17443
|
},
|
|
17076
17444
|
end: {
|
|
17077
|
-
line:
|
|
17445
|
+
line: 29,
|
|
17078
17446
|
column: 35
|
|
17079
17447
|
}
|
|
17080
17448
|
},
|
|
17081
17449
|
type: "default-arg",
|
|
17082
17450
|
locations: [{
|
|
17083
17451
|
start: {
|
|
17084
|
-
line:
|
|
17452
|
+
line: 29,
|
|
17085
17453
|
column: 33
|
|
17086
17454
|
},
|
|
17087
17455
|
end: {
|
|
17088
|
-
line:
|
|
17456
|
+
line: 29,
|
|
17089
17457
|
column: 35
|
|
17090
17458
|
}
|
|
17091
17459
|
}],
|
|
17092
|
-
line:
|
|
17460
|
+
line: 29
|
|
17093
17461
|
},
|
|
17094
17462
|
"1": {
|
|
17095
17463
|
loc: {
|
|
17096
17464
|
start: {
|
|
17097
|
-
line:
|
|
17465
|
+
line: 30,
|
|
17098
17466
|
column: 4
|
|
17099
17467
|
},
|
|
17100
17468
|
end: {
|
|
17101
|
-
line:
|
|
17469
|
+
line: 30,
|
|
17102
17470
|
column: 75
|
|
17103
17471
|
}
|
|
17104
17472
|
},
|
|
17105
17473
|
type: "cond-expr",
|
|
17106
17474
|
locations: [{
|
|
17107
17475
|
start: {
|
|
17108
|
-
line:
|
|
17476
|
+
line: 30,
|
|
17109
17477
|
column: 24
|
|
17110
17478
|
},
|
|
17111
17479
|
end: {
|
|
17112
|
-
line:
|
|
17480
|
+
line: 30,
|
|
17113
17481
|
column: 42
|
|
17114
17482
|
}
|
|
17115
17483
|
}, {
|
|
17116
17484
|
start: {
|
|
17117
|
-
line:
|
|
17485
|
+
line: 30,
|
|
17118
17486
|
column: 45
|
|
17119
17487
|
},
|
|
17120
17488
|
end: {
|
|
17121
|
-
line:
|
|
17489
|
+
line: 30,
|
|
17122
17490
|
column: 75
|
|
17123
17491
|
}
|
|
17124
17492
|
}],
|
|
17125
|
-
line:
|
|
17493
|
+
line: 30
|
|
17126
17494
|
},
|
|
17127
17495
|
"2": {
|
|
17128
17496
|
loc: {
|
|
17129
17497
|
start: {
|
|
17130
|
-
line:
|
|
17131
|
-
column:
|
|
17498
|
+
line: 49,
|
|
17499
|
+
column: 8
|
|
17132
17500
|
},
|
|
17133
17501
|
end: {
|
|
17134
17502
|
line: 51,
|
|
17135
|
-
column:
|
|
17503
|
+
column: 42
|
|
17136
17504
|
}
|
|
17137
17505
|
},
|
|
17138
|
-
type: "
|
|
17506
|
+
type: "cond-expr",
|
|
17139
17507
|
locations: [{
|
|
17140
17508
|
start: {
|
|
17141
|
-
line:
|
|
17142
|
-
column:
|
|
17509
|
+
line: 50,
|
|
17510
|
+
column: 12
|
|
17143
17511
|
},
|
|
17144
17512
|
end: {
|
|
17145
|
-
line:
|
|
17146
|
-
column:
|
|
17513
|
+
line: 50,
|
|
17514
|
+
column: 46
|
|
17147
17515
|
}
|
|
17148
17516
|
}, {
|
|
17149
17517
|
start: {
|
|
17150
17518
|
line: 51,
|
|
17151
|
-
column:
|
|
17519
|
+
column: 12
|
|
17152
17520
|
},
|
|
17153
17521
|
end: {
|
|
17154
17522
|
line: 51,
|
|
17155
|
-
column:
|
|
17523
|
+
column: 42
|
|
17156
17524
|
}
|
|
17157
17525
|
}],
|
|
17158
|
-
line:
|
|
17526
|
+
line: 49
|
|
17159
17527
|
},
|
|
17160
17528
|
"3": {
|
|
17161
17529
|
loc: {
|
|
17162
17530
|
start: {
|
|
17163
|
-
line:
|
|
17531
|
+
line: 77,
|
|
17164
17532
|
column: 4
|
|
17165
17533
|
},
|
|
17166
17534
|
end: {
|
|
17167
|
-
line:
|
|
17535
|
+
line: 77,
|
|
17168
17536
|
column: 39
|
|
17169
17537
|
}
|
|
17170
17538
|
},
|
|
17171
17539
|
type: "if",
|
|
17172
17540
|
locations: [{
|
|
17173
17541
|
start: {
|
|
17174
|
-
line:
|
|
17542
|
+
line: 77,
|
|
17175
17543
|
column: 4
|
|
17176
17544
|
},
|
|
17177
17545
|
end: {
|
|
17178
|
-
line:
|
|
17546
|
+
line: 77,
|
|
17179
17547
|
column: 39
|
|
17180
17548
|
}
|
|
17181
17549
|
}, {
|
|
@@ -17188,60 +17556,60 @@ function cov_28odpwq50i() {
|
|
|
17188
17556
|
column: undefined
|
|
17189
17557
|
}
|
|
17190
17558
|
}],
|
|
17191
|
-
line:
|
|
17559
|
+
line: 77
|
|
17192
17560
|
},
|
|
17193
17561
|
"4": {
|
|
17194
17562
|
loc: {
|
|
17195
17563
|
start: {
|
|
17196
|
-
line:
|
|
17564
|
+
line: 77,
|
|
17197
17565
|
column: 8
|
|
17198
17566
|
},
|
|
17199
17567
|
end: {
|
|
17200
|
-
line:
|
|
17568
|
+
line: 77,
|
|
17201
17569
|
column: 30
|
|
17202
17570
|
}
|
|
17203
17571
|
},
|
|
17204
17572
|
type: "binary-expr",
|
|
17205
17573
|
locations: [{
|
|
17206
17574
|
start: {
|
|
17207
|
-
line:
|
|
17575
|
+
line: 77,
|
|
17208
17576
|
column: 8
|
|
17209
17577
|
},
|
|
17210
17578
|
end: {
|
|
17211
|
-
line:
|
|
17579
|
+
line: 77,
|
|
17212
17580
|
column: 18
|
|
17213
17581
|
}
|
|
17214
17582
|
}, {
|
|
17215
17583
|
start: {
|
|
17216
|
-
line:
|
|
17584
|
+
line: 77,
|
|
17217
17585
|
column: 22
|
|
17218
17586
|
},
|
|
17219
17587
|
end: {
|
|
17220
|
-
line:
|
|
17588
|
+
line: 77,
|
|
17221
17589
|
column: 30
|
|
17222
17590
|
}
|
|
17223
17591
|
}],
|
|
17224
|
-
line:
|
|
17592
|
+
line: 77
|
|
17225
17593
|
},
|
|
17226
17594
|
"5": {
|
|
17227
17595
|
loc: {
|
|
17228
17596
|
start: {
|
|
17229
|
-
line:
|
|
17597
|
+
line: 79,
|
|
17230
17598
|
column: 4
|
|
17231
17599
|
},
|
|
17232
17600
|
end: {
|
|
17233
|
-
line:
|
|
17601
|
+
line: 82,
|
|
17234
17602
|
column: 5
|
|
17235
17603
|
}
|
|
17236
17604
|
},
|
|
17237
17605
|
type: "if",
|
|
17238
17606
|
locations: [{
|
|
17239
17607
|
start: {
|
|
17240
|
-
line:
|
|
17608
|
+
line: 79,
|
|
17241
17609
|
column: 4
|
|
17242
17610
|
},
|
|
17243
17611
|
end: {
|
|
17244
|
-
line:
|
|
17612
|
+
line: 82,
|
|
17245
17613
|
column: 5
|
|
17246
17614
|
}
|
|
17247
17615
|
}, {
|
|
@@ -17254,27 +17622,27 @@ function cov_28odpwq50i() {
|
|
|
17254
17622
|
column: undefined
|
|
17255
17623
|
}
|
|
17256
17624
|
}],
|
|
17257
|
-
line:
|
|
17625
|
+
line: 79
|
|
17258
17626
|
},
|
|
17259
17627
|
"6": {
|
|
17260
17628
|
loc: {
|
|
17261
17629
|
start: {
|
|
17262
|
-
line:
|
|
17630
|
+
line: 91,
|
|
17263
17631
|
column: 2
|
|
17264
17632
|
},
|
|
17265
17633
|
end: {
|
|
17266
|
-
line:
|
|
17634
|
+
line: 97,
|
|
17267
17635
|
column: 3
|
|
17268
17636
|
}
|
|
17269
17637
|
},
|
|
17270
17638
|
type: "if",
|
|
17271
17639
|
locations: [{
|
|
17272
17640
|
start: {
|
|
17273
|
-
line:
|
|
17641
|
+
line: 91,
|
|
17274
17642
|
column: 2
|
|
17275
17643
|
},
|
|
17276
17644
|
end: {
|
|
17277
|
-
line:
|
|
17645
|
+
line: 97,
|
|
17278
17646
|
column: 3
|
|
17279
17647
|
}
|
|
17280
17648
|
}, {
|
|
@@ -17287,7 +17655,7 @@ function cov_28odpwq50i() {
|
|
|
17287
17655
|
column: undefined
|
|
17288
17656
|
}
|
|
17289
17657
|
}],
|
|
17290
|
-
line:
|
|
17658
|
+
line: 91
|
|
17291
17659
|
}
|
|
17292
17660
|
},
|
|
17293
17661
|
s: {
|
|
@@ -17325,8 +17693,7 @@ function cov_28odpwq50i() {
|
|
|
17325
17693
|
"31": 0,
|
|
17326
17694
|
"32": 0,
|
|
17327
17695
|
"33": 0,
|
|
17328
|
-
"34": 0
|
|
17329
|
-
"35": 0
|
|
17696
|
+
"34": 0
|
|
17330
17697
|
},
|
|
17331
17698
|
f: {
|
|
17332
17699
|
"0": 0,
|
|
@@ -17346,7 +17713,7 @@ function cov_28odpwq50i() {
|
|
|
17346
17713
|
"6": [0, 0]
|
|
17347
17714
|
},
|
|
17348
17715
|
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
|
|
17349
|
-
hash: "
|
|
17716
|
+
hash: "b70797aa9557e8a1a440d24896c69b322f4ac0ae"
|
|
17350
17717
|
};
|
|
17351
17718
|
var coverage = global[gcv] || (global[gcv] = {});
|
|
17352
17719
|
if (!coverage[path] || coverage[path].hash !== hash) {
|
|
@@ -17400,7 +17767,7 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
17400
17767
|
cov_28odpwq50i().s[9]++;
|
|
17401
17768
|
var handleUnsplashImageSelect = /*#__PURE__*/function () {
|
|
17402
17769
|
var _ref11 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(image) {
|
|
17403
|
-
var _image$urls, response, file,
|
|
17770
|
+
var _image$urls, response, file, result;
|
|
17404
17771
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
17405
17772
|
while (1) switch (_context.prev = _context.next) {
|
|
17406
17773
|
case 0:
|
|
@@ -17417,53 +17784,56 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
17417
17784
|
file = (cov_28odpwq50i().s[13]++, new File([response.data], UNSPLASH_DEFAULT_NAME, {
|
|
17418
17785
|
type: response.data.type
|
|
17419
17786
|
}));
|
|
17420
|
-
|
|
17787
|
+
cov_28odpwq50i().s[14]++;
|
|
17788
|
+
{
|
|
17789
|
+
_context.next = 18;
|
|
17790
|
+
break;
|
|
17791
|
+
}
|
|
17792
|
+
case 15:
|
|
17793
|
+
_context.t0 = _context.sent;
|
|
17794
|
+
_context.next = 22;
|
|
17795
|
+
break;
|
|
17796
|
+
case 18:
|
|
17797
|
+
cov_28odpwq50i().b[2][1]++;
|
|
17798
|
+
_context.next = 21;
|
|
17799
|
+
return uploadWithImageKit(file);
|
|
17800
|
+
case 21:
|
|
17801
|
+
_context.t0 = _context.sent;
|
|
17802
|
+
case 22:
|
|
17803
|
+
result = _context.t0;
|
|
17421
17804
|
cov_28odpwq50i().s[15]++;
|
|
17422
|
-
_context.next = 14;
|
|
17423
|
-
return imagekit.upload({
|
|
17424
|
-
file: file,
|
|
17425
|
-
fileName: UNSPLASH_DEFAULT_NAME,
|
|
17426
|
-
folder: (cov_28odpwq50i().b[2][0]++, globalProps.imageKit.folder) || (cov_28odpwq50i().b[2][1]++, IMAGE_KIT_DEFAULT_FOLDER),
|
|
17427
|
-
customMetadata: {
|
|
17428
|
-
organizationSubdomain: globalProps.organization.subdomain,
|
|
17429
|
-
appName: globalProps.appName
|
|
17430
|
-
}
|
|
17431
|
-
});
|
|
17432
|
-
case 14:
|
|
17433
|
-
result = _context.sent;
|
|
17434
|
-
cov_28odpwq50i().s[16]++;
|
|
17435
17805
|
setImage(result);
|
|
17436
|
-
_context.next =
|
|
17806
|
+
_context.next = 31;
|
|
17437
17807
|
break;
|
|
17438
|
-
case
|
|
17439
|
-
_context.prev =
|
|
17440
|
-
_context.
|
|
17808
|
+
case 27:
|
|
17809
|
+
_context.prev = 27;
|
|
17810
|
+
_context.t1 = _context["catch"](2);
|
|
17811
|
+
cov_28odpwq50i().s[16]++;
|
|
17812
|
+
Toastr.error(_context.t1);
|
|
17813
|
+
case 31:
|
|
17814
|
+
_context.prev = 31;
|
|
17441
17815
|
cov_28odpwq50i().s[17]++;
|
|
17442
|
-
Toastr.error(_context.t0);
|
|
17443
|
-
case 23:
|
|
17444
|
-
_context.prev = 23;
|
|
17445
|
-
cov_28odpwq50i().s[18]++;
|
|
17446
17816
|
setIsUploading(false);
|
|
17447
|
-
return _context.finish(
|
|
17448
|
-
case
|
|
17817
|
+
return _context.finish(31);
|
|
17818
|
+
case 35:
|
|
17449
17819
|
case "end":
|
|
17450
17820
|
return _context.stop();
|
|
17451
17821
|
}
|
|
17452
|
-
}, _callee, null, [[2,
|
|
17822
|
+
}, _callee, null, [[2, 27, 31, 35]]);
|
|
17453
17823
|
}));
|
|
17454
17824
|
return function handleUnsplashImageSelect(_x) {
|
|
17455
17825
|
return _ref11.apply(this, arguments);
|
|
17456
17826
|
};
|
|
17457
17827
|
}();
|
|
17458
|
-
cov_28odpwq50i().s[
|
|
17828
|
+
cov_28odpwq50i().s[18]++;
|
|
17459
17829
|
var onError = function onError() {
|
|
17460
17830
|
cov_28odpwq50i().f[3]++;
|
|
17461
|
-
cov_28odpwq50i().s[
|
|
17831
|
+
cov_28odpwq50i().s[19]++;
|
|
17462
17832
|
return setError(true);
|
|
17463
17833
|
};
|
|
17464
|
-
var _ref12 = (cov_28odpwq50i().s[
|
|
17834
|
+
var _ref12 = (cov_28odpwq50i().s[20]++, useTranslation()),
|
|
17465
17835
|
t = _ref12.t;
|
|
17466
|
-
var _ref13 = (cov_28odpwq50i().s[
|
|
17836
|
+
var _ref13 = (cov_28odpwq50i().s[21]++, useFetchUnsplashImages({
|
|
17467
17837
|
query: debouncedQuery,
|
|
17468
17838
|
pageNo: pageNo
|
|
17469
17839
|
}, {
|
|
@@ -17472,41 +17842,41 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
17472
17842
|
})),
|
|
17473
17843
|
refetch = _ref13.refetch,
|
|
17474
17844
|
isFetching = _ref13.isFetching;
|
|
17475
|
-
var loadMore = (cov_28odpwq50i().s[
|
|
17845
|
+
var loadMore = (cov_28odpwq50i().s[22]++, useFuncDebounce(function () {
|
|
17476
17846
|
cov_28odpwq50i().f[4]++;
|
|
17477
|
-
cov_28odpwq50i().s[
|
|
17847
|
+
cov_28odpwq50i().s[23]++;
|
|
17478
17848
|
if ((cov_28odpwq50i().b[4][0]++, isFetching) || (cov_28odpwq50i().b[4][1]++, !hasMore)) {
|
|
17479
17849
|
cov_28odpwq50i().b[3][0]++;
|
|
17480
|
-
cov_28odpwq50i().s[
|
|
17850
|
+
cov_28odpwq50i().s[24]++;
|
|
17481
17851
|
return;
|
|
17482
17852
|
} else {
|
|
17483
17853
|
cov_28odpwq50i().b[3][1]++;
|
|
17484
17854
|
}
|
|
17485
|
-
cov_28odpwq50i().s[
|
|
17855
|
+
cov_28odpwq50i().s[25]++;
|
|
17486
17856
|
if (pageNo > 1) {
|
|
17487
17857
|
cov_28odpwq50i().b[5][0]++;
|
|
17488
|
-
cov_28odpwq50i().s[
|
|
17858
|
+
cov_28odpwq50i().s[26]++;
|
|
17489
17859
|
setError(false);
|
|
17490
|
-
cov_28odpwq50i().s[
|
|
17860
|
+
cov_28odpwq50i().s[27]++;
|
|
17491
17861
|
refetch();
|
|
17492
17862
|
} else {
|
|
17493
17863
|
cov_28odpwq50i().b[5][1]++;
|
|
17494
17864
|
}
|
|
17495
17865
|
}, 500));
|
|
17496
|
-
cov_28odpwq50i().s[
|
|
17866
|
+
cov_28odpwq50i().s[28]++;
|
|
17497
17867
|
useEffect(function () {
|
|
17498
17868
|
cov_28odpwq50i().f[5]++;
|
|
17499
|
-
cov_28odpwq50i().s[
|
|
17869
|
+
cov_28odpwq50i().s[29]++;
|
|
17500
17870
|
setPageNo(1);
|
|
17501
|
-
cov_28odpwq50i().s[
|
|
17871
|
+
cov_28odpwq50i().s[30]++;
|
|
17502
17872
|
setImages([]);
|
|
17503
|
-
cov_28odpwq50i().s[
|
|
17873
|
+
cov_28odpwq50i().s[31]++;
|
|
17504
17874
|
refetch();
|
|
17505
17875
|
}, [debouncedQuery]);
|
|
17506
|
-
cov_28odpwq50i().s[
|
|
17876
|
+
cov_28odpwq50i().s[32]++;
|
|
17507
17877
|
if (error) {
|
|
17508
17878
|
cov_28odpwq50i().b[6][0]++;
|
|
17509
|
-
cov_28odpwq50i().s[
|
|
17879
|
+
cov_28odpwq50i().s[33]++;
|
|
17510
17880
|
return /*#__PURE__*/React.createElement(Typography, {
|
|
17511
17881
|
className: "mt-9 flex justify-center",
|
|
17512
17882
|
style: "body2"
|
|
@@ -17514,7 +17884,7 @@ var UnsplashLibrary = function UnsplashLibrary(_ref) {
|
|
|
17514
17884
|
} else {
|
|
17515
17885
|
cov_28odpwq50i().b[6][1]++;
|
|
17516
17886
|
}
|
|
17517
|
-
cov_28odpwq50i().s[
|
|
17887
|
+
cov_28odpwq50i().s[34]++;
|
|
17518
17888
|
return /*#__PURE__*/React.createElement(InfiniteScroller, {
|
|
17519
17889
|
handleUnsplashImageSelect: handleUnsplashImageSelect,
|
|
17520
17890
|
hasMore: hasMore,
|