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